From b6a83b4fa8b871c296077a625e0ae375b2567f2f Mon Sep 17 00:00:00 2001 From: "renovate-rancher[bot]" <119870437+renovate-rancher[bot]@users.noreply.github.com> Date: Sat, 20 Jun 2026 06:06:38 +0000 Subject: [PATCH] Update module modernc.org/libc to v1.73.1 --- go.mod | 9 +- go.sum | 39 +- .../github.com/ncruces/go-strftime/.gitignore | 15 + vendor/github.com/ncruces/go-strftime/LICENSE | 21 + .../github.com/ncruces/go-strftime/README.md | 5 + .../github.com/ncruces/go-strftime/parser.go | 107 + vendor/github.com/ncruces/go-strftime/pkg.go | 96 + .../ncruces/go-strftime/specifiers.go | 241 + .../ncruces/go-strftime/strftime.go | 346 + .../github.com/remyoudompheng/bigfft/README | 11 + vendor/modernc.org/libc/.gitignore | 7 + vendor/modernc.org/libc/AUTHORS | 6 + vendor/modernc.org/libc/CLAUDE.md | 106 + vendor/modernc.org/libc/CONTRIBUTING.md | 31 + vendor/modernc.org/libc/CONTRIBUTORS | 10 + vendor/modernc.org/libc/GEMINI.md | 56 + vendor/modernc.org/libc/HACKING | 3 - vendor/modernc.org/libc/LICENSE-3RD-PARTY.md | 305 + vendor/modernc.org/libc/LICENSE-GO | 27 - vendor/modernc.org/libc/Makefile | 280 +- vendor/modernc.org/libc/README.md | 21 +- vendor/modernc.org/libc/abi0_linux_amd64.go | 5765 + vendor/modernc.org/libc/abi0_linux_amd64.s | 28760 +++ vendor/modernc.org/libc/aliases.go | 109 + vendor/modernc.org/libc/asm_386.s | 77 + vendor/modernc.org/libc/atomic.go | 117 + vendor/modernc.org/libc/atomic32.go | 16 + vendor/modernc.org/libc/atomic64.go | 16 + vendor/modernc.org/libc/build_all_targets.sh | 44 +- vendor/modernc.org/libc/builder.json | 9 + vendor/modernc.org/libc/builtin.go | 443 + vendor/modernc.org/libc/builtin32.go | 29 + vendor/modernc.org/libc/builtin64.go | 29 + vendor/modernc.org/libc/builtin_all.go | 13 + vendor/modernc.org/libc/capi_darwin_amd64.go | 1 + vendor/modernc.org/libc/capi_darwin_arm64.go | 1 + vendor/modernc.org/libc/capi_freebsd_386.go | 2 + vendor/modernc.org/libc/capi_freebsd_amd64.go | 2 + vendor/modernc.org/libc/capi_freebsd_arm.go | 2 + vendor/modernc.org/libc/capi_freebsd_arm64.go | 2 + vendor/modernc.org/libc/capi_illumos_amd64.go | 528 + vendor/modernc.org/libc/capi_linux_386.go | 3 + vendor/modernc.org/libc/capi_linux_amd64.go | 3 + vendor/modernc.org/libc/capi_linux_arm.go | 3 + vendor/modernc.org/libc/capi_linux_arm64.go | 3 + vendor/modernc.org/libc/capi_linux_loong64.go | 528 + .../modernc.org/libc/capi_linux_mips64le.go | 528 + vendor/modernc.org/libc/capi_linux_ppc64le.go | 3 + vendor/modernc.org/libc/capi_linux_riscv64.go | 3 + vendor/modernc.org/libc/capi_linux_s390x.go | 3 + vendor/modernc.org/libc/capi_netbsd_amd64.go | 2 + vendor/modernc.org/libc/capi_netbsd_arm.go | 2 + vendor/modernc.org/libc/capi_openbsd_386.go | 2 + vendor/modernc.org/libc/capi_openbsd_amd64.go | 2 + vendor/modernc.org/libc/capi_openbsd_arm64.go | 2 + vendor/modernc.org/libc/capi_windows_386.go | 1 + vendor/modernc.org/libc/capi_windows_amd64.go | 1 + vendor/modernc.org/libc/capi_windows_arm64.go | 1 + vendor/modernc.org/libc/ccgo.go | 18 + vendor/modernc.org/libc/ccgo_linux_386.go | 156975 +++++++++++++++ vendor/modernc.org/libc/ccgo_linux_amd64.go | 154743 ++++++++++++++ vendor/modernc.org/libc/ccgo_linux_arm.go | 156589 ++++++++++++++ vendor/modernc.org/libc/ccgo_linux_arm64.go | 154065 ++++++++++++++ vendor/modernc.org/libc/ccgo_linux_loong64.go | 154112 ++++++++++++++ vendor/modernc.org/libc/ccgo_linux_ppc64le.go | 155093 ++++++++++++++ vendor/modernc.org/libc/ccgo_linux_riscv64.go | 154016 ++++++++++++++ vendor/modernc.org/libc/ccgo_linux_s390x.go | 154471 ++++++++++++++ .../libc/errno/capi_illumos_amd64.go | 5 + .../libc/errno/capi_linux_loong64.go | 5 + .../libc/errno/capi_linux_mips64le.go | 5 + .../libc/errno/errno_illumos_amd64.go | 167 + .../libc/errno/errno_linux_loong64.go | 198 + .../libc/errno/errno_linux_mips64le.go | 187 + vendor/modernc.org/libc/etc.go | 74 +- vendor/modernc.org/libc/etc_musl.go | 69 + .../libc/fcntl/capi_illumos_amd64.go | 5 + .../libc/fcntl/capi_linux_loong64.go | 5 + .../libc/fcntl/capi_linux_mips64le.go | 5 + .../libc/fcntl/fcntl_illumos_amd64.go | 3242 + .../libc/fcntl/fcntl_linux_loong64.go | 1332 + .../libc/fcntl/fcntl_linux_mips64le.go | 1087 + .../libc/fts/capi_illumos_amd64.go | 5 + .../libc/fts/capi_linux_loong64.go | 5 + .../libc/fts/capi_linux_mips64le.go | 5 + .../modernc.org/libc/fts/fts_illumos_amd64.go | 3038 + .../modernc.org/libc/fts/fts_linux_loong64.go | 2098 + .../libc/fts/fts_linux_mips64le.go | 1904 + .../libc/grp/capi_illumos_amd64.go | 5 + .../libc/grp/capi_linux_loong64.go | 5 + .../libc/grp/capi_linux_mips64le.go | 5 + .../modernc.org/libc/grp/grp_illumos_amd64.go | 3181 + .../modernc.org/libc/grp/grp_linux_loong64.go | 942 + .../libc/grp/grp_linux_mips64le.go | 783 + .../libc/honnef.co/go/netdb/LICENSE | 20 - .../libc/honnef.co/go/netdb/netdb.go | 6 +- vendor/modernc.org/libc/int128.go | 12 +- vendor/modernc.org/libc/ioutil_illumos.go | 70 + vendor/modernc.org/libc/ioutil_linux.go | 2 + .../libc/langinfo/capi_illumos_amd64.go | 5 + .../libc/langinfo/capi_linux_loong64.go | 5 + .../libc/langinfo/capi_linux_mips64le.go | 5 + .../libc/langinfo/langinfo_illumos_amd64.go | 834 + .../libc/langinfo/langinfo_linux_loong64.go | 1201 + .../libc/langinfo/langinfo_linux_mips64le.go | 1058 + vendor/modernc.org/libc/libc.go | 2467 +- vendor/modernc.org/libc/libc32.go | 63 +- vendor/modernc.org/libc/libc64.go | 63 +- vendor/modernc.org/libc/libc_386.go | 40 + vendor/modernc.org/libc/libc_all.go | 122 + vendor/modernc.org/libc/libc_amd64.go | 40 + vendor/modernc.org/libc/libc_arm.go | 40 + vendor/modernc.org/libc/libc_arm64.go | 40 + vendor/modernc.org/libc/libc_darwin.go | 946 +- vendor/modernc.org/libc/libc_darwin_amd64.go | 98 +- vendor/modernc.org/libc/libc_darwin_arm64.go | 86 + vendor/modernc.org/libc/libc_freebsd.go | 1042 +- vendor/modernc.org/libc/libc_freebsd_386.go | 87 +- vendor/modernc.org/libc/libc_freebsd_amd64.go | 316 +- vendor/modernc.org/libc/libc_freebsd_arm.go | 87 +- vendor/modernc.org/libc/libc_freebsd_arm64.go | 258 +- vendor/modernc.org/libc/libc_illumos.go | 2119 + vendor/modernc.org/libc/libc_illumos_amd64.go | 794 + vendor/modernc.org/libc/libc_linux.go | 1589 - vendor/modernc.org/libc/libc_linux_386.go | 457 - vendor/modernc.org/libc/libc_linux_amd64.go | 300 + vendor/modernc.org/libc/libc_linux_arm.go | 449 - vendor/modernc.org/libc/libc_linux_arm64.go | 439 - ...inux_ppc64le.go => libc_linux_mips64le.go} | 313 +- vendor/modernc.org/libc/libc_linux_riscv64.go | 413 - vendor/modernc.org/libc/libc_linux_s390x.go | 466 - vendor/modernc.org/libc/libc_linux_statfs.go | 13 + vendor/modernc.org/libc/libc_mips64le.go | 38 + vendor/modernc.org/libc/libc_musl.go | 1119 + .../modernc.org/libc/libc_musl_linux_386.go | 52 + .../modernc.org/libc/libc_musl_linux_amd64.go | 29 + .../modernc.org/libc/libc_musl_linux_arm.go | 70 + .../modernc.org/libc/libc_musl_linux_arm64.go | 29 + .../libc/libc_musl_linux_loong64.go | 29 + .../libc/libc_musl_linux_ppc64le.go | 12 + .../libc/libc_musl_linux_riscv64.go | 12 + .../modernc.org/libc/libc_musl_linux_s390x.go | 50 + vendor/modernc.org/libc/libc_netbsd.go | 532 +- vendor/modernc.org/libc/libc_netbsd_amd64.go | 101 +- vendor/modernc.org/libc/libc_netbsd_arm.go | 81 +- vendor/modernc.org/libc/libc_openbsd.go | 1560 +- vendor/modernc.org/libc/libc_openbsd_386.go | 621 - vendor/modernc.org/libc/libc_openbsd_amd64.go | 623 - vendor/modernc.org/libc/libc_openbsd_arm64.go | 623 - vendor/modernc.org/libc/libc_unix.go | 503 +- vendor/modernc.org/libc/libc_unix1.go | 27 + vendor/modernc.org/libc/libc_unix2.go | 26 + vendor/modernc.org/libc/libc_unix3.go | 46 + vendor/modernc.org/libc/libc_windows.go | 2506 +- vendor/modernc.org/libc/libc_windows_386.go | 240 +- vendor/modernc.org/libc/libc_windows_386.s | 29 + vendor/modernc.org/libc/libc_windows_amd64.go | 175 +- vendor/modernc.org/libc/libc_windows_arm64.go | 168 +- vendor/modernc.org/libc/libc_windows_arm64.s | 20 + .../libc/limits/capi_illumos_amd64.go | 5 + .../libc/limits/capi_linux_loong64.go | 5 + .../libc/limits/capi_linux_mips64le.go | 5 + .../libc/limits/limits_illumos_amd64.go | 1234 + .../libc/limits/limits_linux_loong64.go | 1159 + .../libc/limits/limits_linux_mips64le.go | 943 + vendor/modernc.org/libc/mem.go | 68 +- vendor/modernc.org/libc/mem_brk.go | 46 +- vendor/modernc.org/libc/mem_brk_musl.go | 319 + vendor/modernc.org/libc/mem_expvar.go | 12 + vendor/modernc.org/libc/mem_musl.go | 170 + vendor/modernc.org/libc/memgrind.go | 93 +- vendor/modernc.org/libc/memgrind_musl.go | 363 + vendor/modernc.org/libc/musl_darwin_amd64.go | 258 +- vendor/modernc.org/libc/musl_darwin_arm64.go | 252 + vendor/modernc.org/libc/musl_freebsd_386.go | 167 +- vendor/modernc.org/libc/musl_freebsd_amd64.go | 165 + vendor/modernc.org/libc/musl_freebsd_arm.go | 165 + vendor/modernc.org/libc/musl_freebsd_arm64.go | 165 + ...linux_riscv64.go => musl_illumos_amd64.go} | 975 +- vendor/modernc.org/libc/musl_linux_386.go | 6885 - vendor/modernc.org/libc/musl_linux_arm.go | 6918 - vendor/modernc.org/libc/musl_linux_arm64.go | 7028 - ..._linux_amd64.go => musl_linux_mips64le.go} | 275 +- vendor/modernc.org/libc/musl_linux_ppc64le.go | 7012 - vendor/modernc.org/libc/musl_linux_s390x.go | 6968 - vendor/modernc.org/libc/musl_netbsd_amd64.go | 141 + vendor/modernc.org/libc/musl_netbsd_arm.go | 141 + vendor/modernc.org/libc/musl_openbsd_386.go | 168 + vendor/modernc.org/libc/musl_openbsd_amd64.go | 168 + vendor/modernc.org/libc/musl_openbsd_arm64.go | 168 + vendor/modernc.org/libc/musl_windows_386.go | 98 +- vendor/modernc.org/libc/musl_windows_amd64.go | 93 +- vendor/modernc.org/libc/musl_windows_arm64.go | 93 +- .../libc/netdb/capi_illumos_amd64.go | 5 + .../libc/netdb/capi_linux_loong64.go | 5 + .../libc/netdb/capi_linux_mips64le.go | 5 + .../libc/netdb/netdb_illumos_amd64.go | 5631 + .../libc/netdb/netdb_linux_loong64.go | 3267 + .../libc/netdb/netdb_linux_mips64le.go | 3081 + .../libc/netinet/in/capi_illumos_amd64.go | 5 + .../libc/netinet/in/capi_linux_loong64.go | 5 + .../libc/netinet/in/capi_linux_mips64le.go | 5 + .../libc/netinet/in/in_illumos_amd64.go | 4038 + .../libc/netinet/in/in_linux_loong64.go | 2976 + .../libc/netinet/in/in_linux_mips64le.go | 2790 + .../libc/poll/capi_illumos_amd64.go | 5 + .../libc/poll/capi_linux_loong64.go | 5 + .../libc/poll/capi_linux_mips64le.go | 5 + .../libc/poll/poll_illumos_amd64.go | 4081 + .../libc/poll/poll_linux_loong64.go | 684 + .../libc/poll/poll_linux_mips64le.go | 540 + vendor/modernc.org/libc/printf.go | 77 +- vendor/modernc.org/libc/pthread.go | 166 +- .../libc/pthread/capi_illumos_amd64.go | 5 + .../libc/pthread/capi_linux_loong64.go | 5 + .../libc/pthread/capi_linux_mips64le.go | 5 + .../libc/pthread/pthread_illumos_amd64.go | 3059 + .../libc/pthread/pthread_linux_loong64.go | 2128 + .../libc/pthread/pthread_linux_mips64le.go | 1873 + vendor/modernc.org/libc/pthread_all.go | 26 +- vendor/modernc.org/libc/pthread_musl.go | 547 + .../libc/pwd/capi_illumos_amd64.go | 5 + .../libc/pwd/capi_linux_loong64.go | 5 + .../libc/pwd/capi_linux_mips64le.go | 5 + .../modernc.org/libc/pwd/pwd_illumos_amd64.go | 3188 + .../modernc.org/libc/pwd/pwd_linux_loong64.go | 948 + .../libc/pwd/pwd_linux_mips64le.go | 789 + vendor/modernc.org/libc/rtl.go | 2200 + vendor/modernc.org/libc/scanf.go | 411 +- .../libc/signal/capi_illumos_amd64.go | 5 + .../libc/signal/capi_linux_loong64.go | 5 + .../libc/signal/capi_linux_mips64le.go | 5 + .../libc/signal/more_illumos_amd64.go | 12 + .../libc/signal/more_linux_loong64.go | 12 + .../libc/signal/more_linux_mips64le.go | 12 + .../libc/signal/signal_illumos_amd64.go | 4146 + .../libc/signal/signal_linux_loong64.go | 2495 + .../libc/signal/signal_linux_mips64le.go | 2198 + vendor/modernc.org/libc/stdatomic.go | 1114 + .../libc/stdio/capi_illumos_amd64.go | 5 + .../libc/stdio/capi_linux_loong64.go | 5 + .../libc/stdio/capi_linux_mips64le.go | 5 + .../libc/stdio/stdio_illumos_amd64.go | 1020 + .../libc/stdio/stdio_linux_loong64.go | 588 + .../libc/stdio/stdio_linux_mips64le.go | 540 + .../libc/stdlib/capi_illumos_amd64.go | 5 + .../libc/stdlib/capi_linux_loong64.go | 5 + .../libc/stdlib/capi_linux_mips64le.go | 5 + .../libc/stdlib/stdlib_illumos_amd64.go | 1092 + .../libc/stdlib/stdlib_linux_loong64.go | 1539 + .../libc/stdlib/stdlib_linux_mips64le.go | 1541 + vendor/modernc.org/libc/straceoff.go | 10 + vendor/modernc.org/libc/straceon.go | 10 + vendor/modernc.org/libc/surface.new | 9310 + vendor/modernc.org/libc/surface.old | 9189 + vendor/modernc.org/libc/sync.go | 5 + .../libc/sys/socket/capi_illumos_amd64.go | 5 + .../libc/sys/socket/capi_linux_loong64.go | 5 + .../libc/sys/socket/capi_linux_mips64le.go | 5 + .../libc/sys/socket/socket_illumos_amd64.go | 5226 + .../libc/sys/socket/socket_linux_loong64.go | 1892 + .../libc/sys/socket/socket_linux_mips64le.go | 1848 + .../libc/sys/stat/capi_illumos_amd64.go | 5 + .../libc/sys/stat/capi_linux_loong64.go | 5 + .../libc/sys/stat/capi_linux_mips64le.go | 5 + .../libc/sys/stat/stat_illumos_amd64.go | 2941 + .../libc/sys/stat/stat_linux_loong64.go | 1152 + .../libc/sys/stat/stat_linux_mips64le.go | 947 + .../libc/sys/types/capi_illumos_amd64.go | 5 + .../libc/sys/types/capi_linux_loong64.go | 5 + .../libc/sys/types/capi_linux_mips64le.go | 5 + .../libc/sys/types/types_illumos_amd64.go | 2693 + .../libc/sys/types/types_linux_loong64.go | 1658 + .../libc/sys/types/types_linux_mips64le.go | 1511 + vendor/modernc.org/libc/syscall_musl.go | 90 + .../libc/termios/capi_illumos_amd64.go | 5 + .../libc/termios/capi_linux_loong64.go | 5 + .../libc/termios/capi_linux_mips64le.go | 5 + .../libc/termios/termios_illumos_amd64.go | 2689 + .../libc/termios/termios_linux_loong64.go | 1184 + .../libc/termios/termios_linux_mips64le.go | 1024 + .../libc/time/capi_illumos_amd64.go | 5 + .../libc/time/capi_linux_loong64.go | 5 + .../libc/time/capi_linux_mips64le.go | 5 + .../libc/time/time_illumos_amd64.go | 1468 + .../modernc.org/libc/time/time_linux_386.go | 1 + .../modernc.org/libc/time/time_linux_amd64.go | 3 + .../modernc.org/libc/time/time_linux_arm.go | 1 + .../modernc.org/libc/time/time_linux_arm64.go | 1 + .../libc/time/time_linux_loong64.go | 705 + .../libc/time/time_linux_mips64le.go | 682 + .../libc/time/time_linux_ppc64le.go | 1 + .../libc/time/time_linux_riscv64.go | 1 + .../modernc.org/libc/time/time_linux_s390x.go | 1 + vendor/modernc.org/libc/tls_linux_amd64.go | 33 + vendor/modernc.org/libc/tls_linux_amd64.s | 40 + .../libc/unistd/capi_illumos_amd64.go | 5 + .../libc/unistd/capi_linux_loong64.go | 5 + .../libc/unistd/capi_linux_mips64le.go | 5 + .../libc/unistd/unistd_illumos_amd64.go | 3180 + .../libc/unistd/unistd_linux_loong64.go | 1765 + .../libc/unistd/unistd_linux_mips64le.go | 1592 + .../libc/utime/capi_illumos_amd64.go | 5 + .../libc/utime/capi_linux_loong64.go | 5 + .../libc/utime/capi_linux_mips64le.go | 5 + .../libc/utime/utime_illumos_amd64.go | 2801 + .../libc/utime/utime_linux_loong64.go | 940 + .../libc/utime/utime_linux_mips64le.go | 781 + .../libc/uuid/uuid/capi_illumos_amd64.go | 5 + .../libc/uuid/uuid/capi_linux_loong64.go | 5 + .../libc/uuid/uuid/capi_linux_mips64le.go | 5 + .../libc/uuid/uuid/uuid_illumos_amd64.go | 2967 + .../libc/uuid/uuid/uuid_linux_loong64.go | 1986 + .../libc/uuid/uuid/uuid_linux_mips64le.go | 1986 + .../libc/wctype/capi_illumos_amd64.go | 5 + .../libc/wctype/capi_linux_loong64.go | 5 + .../libc/wctype/capi_linux_mips64le.go | 5 + .../libc/wctype/wctype_illumos_amd64.go | 1763 + .../libc/wctype/wctype_linux_loong64.go | 1111 + .../libc/wctype/wctype_linux_mips64le.go | 953 + vendor/modernc.org/mathutil/Makefile | 2 +- vendor/modernc.org/mathutil/builder.json | 6 + vendor/modernc.org/mathutil/mathutil.go | 84 +- vendor/modernc.org/mathutil/rat.go | 7 +- vendor/modernc.org/mathutil/rnd.go | 12 +- vendor/modernc.org/memory/AUTHORS | 4 +- vendor/modernc.org/memory/CONTRIBUTORS | 4 +- vendor/modernc.org/memory/LICENSE-LOGO | 1 + vendor/modernc.org/memory/Makefile | 36 +- vendor/modernc.org/memory/README.md | 4 +- vendor/modernc.org/memory/builder.json | 6 + vendor/modernc.org/memory/logo.png | Bin 0 -> 11369 bytes vendor/modernc.org/memory/memory.go | 163 +- vendor/modernc.org/memory/memory64.go | 4 +- vendor/modernc.org/memory/mmap_darwin.go | 19 - vendor/modernc.org/memory/mmap_freebsd_32.go | 22 - vendor/modernc.org/memory/mmap_freebsd_64.go | 22 - .../modernc.org/memory/mmap_illumos_amd64.go | 91 - vendor/modernc.org/memory/mmap_linux_32.go | 35 - vendor/modernc.org/memory/mmap_linux_64.go | 26 - vendor/modernc.org/memory/mmap_linux_s390x.go | 23 - vendor/modernc.org/memory/mmap_netbsd_32.go | 22 - vendor/modernc.org/memory/mmap_netbsd_64.go | 22 - vendor/modernc.org/memory/mmap_openbsd.go | 19 - vendor/modernc.org/memory/mmap_unix.go | 37 +- vendor/modernc.org/memory/mmap_windows.go | 4 +- vendor/modules.txt | 17 +- 346 files changed, 1450582 insertions(+), 42967 deletions(-) create mode 100644 vendor/github.com/ncruces/go-strftime/.gitignore create mode 100644 vendor/github.com/ncruces/go-strftime/LICENSE create mode 100644 vendor/github.com/ncruces/go-strftime/README.md create mode 100644 vendor/github.com/ncruces/go-strftime/parser.go create mode 100644 vendor/github.com/ncruces/go-strftime/pkg.go create mode 100644 vendor/github.com/ncruces/go-strftime/specifiers.go create mode 100644 vendor/github.com/ncruces/go-strftime/strftime.go create mode 100644 vendor/modernc.org/libc/.gitignore create mode 100644 vendor/modernc.org/libc/CLAUDE.md create mode 100644 vendor/modernc.org/libc/CONTRIBUTING.md create mode 100644 vendor/modernc.org/libc/GEMINI.md delete mode 100644 vendor/modernc.org/libc/HACKING create mode 100644 vendor/modernc.org/libc/LICENSE-3RD-PARTY.md delete mode 100644 vendor/modernc.org/libc/LICENSE-GO create mode 100644 vendor/modernc.org/libc/abi0_linux_amd64.go create mode 100644 vendor/modernc.org/libc/abi0_linux_amd64.s create mode 100644 vendor/modernc.org/libc/aliases.go create mode 100644 vendor/modernc.org/libc/asm_386.s create mode 100644 vendor/modernc.org/libc/atomic.go create mode 100644 vendor/modernc.org/libc/atomic32.go create mode 100644 vendor/modernc.org/libc/atomic64.go create mode 100644 vendor/modernc.org/libc/builder.json create mode 100644 vendor/modernc.org/libc/builtin.go create mode 100644 vendor/modernc.org/libc/builtin32.go create mode 100644 vendor/modernc.org/libc/builtin64.go create mode 100644 vendor/modernc.org/libc/builtin_all.go create mode 100644 vendor/modernc.org/libc/capi_illumos_amd64.go create mode 100644 vendor/modernc.org/libc/capi_linux_loong64.go create mode 100644 vendor/modernc.org/libc/capi_linux_mips64le.go create mode 100644 vendor/modernc.org/libc/ccgo_linux_386.go create mode 100644 vendor/modernc.org/libc/ccgo_linux_amd64.go create mode 100644 vendor/modernc.org/libc/ccgo_linux_arm.go create mode 100644 vendor/modernc.org/libc/ccgo_linux_arm64.go create mode 100644 vendor/modernc.org/libc/ccgo_linux_loong64.go create mode 100644 vendor/modernc.org/libc/ccgo_linux_ppc64le.go create mode 100644 vendor/modernc.org/libc/ccgo_linux_riscv64.go create mode 100644 vendor/modernc.org/libc/ccgo_linux_s390x.go create mode 100644 vendor/modernc.org/libc/errno/capi_illumos_amd64.go create mode 100644 vendor/modernc.org/libc/errno/capi_linux_loong64.go create mode 100644 vendor/modernc.org/libc/errno/capi_linux_mips64le.go create mode 100644 vendor/modernc.org/libc/errno/errno_illumos_amd64.go create mode 100644 vendor/modernc.org/libc/errno/errno_linux_loong64.go create mode 100644 vendor/modernc.org/libc/errno/errno_linux_mips64le.go create mode 100644 vendor/modernc.org/libc/etc_musl.go create mode 100644 vendor/modernc.org/libc/fcntl/capi_illumos_amd64.go create mode 100644 vendor/modernc.org/libc/fcntl/capi_linux_loong64.go create mode 100644 vendor/modernc.org/libc/fcntl/capi_linux_mips64le.go create mode 100644 vendor/modernc.org/libc/fcntl/fcntl_illumos_amd64.go create mode 100644 vendor/modernc.org/libc/fcntl/fcntl_linux_loong64.go create mode 100644 vendor/modernc.org/libc/fcntl/fcntl_linux_mips64le.go create mode 100644 vendor/modernc.org/libc/fts/capi_illumos_amd64.go create mode 100644 vendor/modernc.org/libc/fts/capi_linux_loong64.go create mode 100644 vendor/modernc.org/libc/fts/capi_linux_mips64le.go create mode 100644 vendor/modernc.org/libc/fts/fts_illumos_amd64.go create mode 100644 vendor/modernc.org/libc/fts/fts_linux_loong64.go create mode 100644 vendor/modernc.org/libc/fts/fts_linux_mips64le.go create mode 100644 vendor/modernc.org/libc/grp/capi_illumos_amd64.go create mode 100644 vendor/modernc.org/libc/grp/capi_linux_loong64.go create mode 100644 vendor/modernc.org/libc/grp/capi_linux_mips64le.go create mode 100644 vendor/modernc.org/libc/grp/grp_illumos_amd64.go create mode 100644 vendor/modernc.org/libc/grp/grp_linux_loong64.go create mode 100644 vendor/modernc.org/libc/grp/grp_linux_mips64le.go delete mode 100644 vendor/modernc.org/libc/honnef.co/go/netdb/LICENSE create mode 100644 vendor/modernc.org/libc/ioutil_illumos.go create mode 100644 vendor/modernc.org/libc/langinfo/capi_illumos_amd64.go create mode 100644 vendor/modernc.org/libc/langinfo/capi_linux_loong64.go create mode 100644 vendor/modernc.org/libc/langinfo/capi_linux_mips64le.go create mode 100644 vendor/modernc.org/libc/langinfo/langinfo_illumos_amd64.go create mode 100644 vendor/modernc.org/libc/langinfo/langinfo_linux_loong64.go create mode 100644 vendor/modernc.org/libc/langinfo/langinfo_linux_mips64le.go create mode 100644 vendor/modernc.org/libc/libc_386.go create mode 100644 vendor/modernc.org/libc/libc_all.go create mode 100644 vendor/modernc.org/libc/libc_amd64.go create mode 100644 vendor/modernc.org/libc/libc_arm.go create mode 100644 vendor/modernc.org/libc/libc_arm64.go create mode 100644 vendor/modernc.org/libc/libc_illumos.go create mode 100644 vendor/modernc.org/libc/libc_illumos_amd64.go delete mode 100644 vendor/modernc.org/libc/libc_linux_386.go delete mode 100644 vendor/modernc.org/libc/libc_linux_arm.go delete mode 100644 vendor/modernc.org/libc/libc_linux_arm64.go rename vendor/modernc.org/libc/{libc_linux_ppc64le.go => libc_linux_mips64le.go} (64%) delete mode 100644 vendor/modernc.org/libc/libc_linux_riscv64.go delete mode 100644 vendor/modernc.org/libc/libc_linux_s390x.go create mode 100644 vendor/modernc.org/libc/libc_linux_statfs.go create mode 100644 vendor/modernc.org/libc/libc_mips64le.go create mode 100644 vendor/modernc.org/libc/libc_musl.go create mode 100644 vendor/modernc.org/libc/libc_musl_linux_386.go create mode 100644 vendor/modernc.org/libc/libc_musl_linux_amd64.go create mode 100644 vendor/modernc.org/libc/libc_musl_linux_arm.go create mode 100644 vendor/modernc.org/libc/libc_musl_linux_arm64.go create mode 100644 vendor/modernc.org/libc/libc_musl_linux_loong64.go create mode 100644 vendor/modernc.org/libc/libc_musl_linux_ppc64le.go create mode 100644 vendor/modernc.org/libc/libc_musl_linux_riscv64.go create mode 100644 vendor/modernc.org/libc/libc_musl_linux_s390x.go create mode 100644 vendor/modernc.org/libc/libc_unix1.go create mode 100644 vendor/modernc.org/libc/libc_unix2.go create mode 100644 vendor/modernc.org/libc/libc_unix3.go create mode 100644 vendor/modernc.org/libc/libc_windows_386.s create mode 100644 vendor/modernc.org/libc/libc_windows_arm64.s create mode 100644 vendor/modernc.org/libc/limits/capi_illumos_amd64.go create mode 100644 vendor/modernc.org/libc/limits/capi_linux_loong64.go create mode 100644 vendor/modernc.org/libc/limits/capi_linux_mips64le.go create mode 100644 vendor/modernc.org/libc/limits/limits_illumos_amd64.go create mode 100644 vendor/modernc.org/libc/limits/limits_linux_loong64.go create mode 100644 vendor/modernc.org/libc/limits/limits_linux_mips64le.go create mode 100644 vendor/modernc.org/libc/mem_brk_musl.go create mode 100644 vendor/modernc.org/libc/mem_expvar.go create mode 100644 vendor/modernc.org/libc/mem_musl.go create mode 100644 vendor/modernc.org/libc/memgrind_musl.go rename vendor/modernc.org/libc/{musl_linux_riscv64.go => musl_illumos_amd64.go} (87%) delete mode 100644 vendor/modernc.org/libc/musl_linux_386.go delete mode 100644 vendor/modernc.org/libc/musl_linux_arm.go delete mode 100644 vendor/modernc.org/libc/musl_linux_arm64.go rename vendor/modernc.org/libc/{musl_linux_amd64.go => musl_linux_mips64le.go} (96%) delete mode 100644 vendor/modernc.org/libc/musl_linux_ppc64le.go delete mode 100644 vendor/modernc.org/libc/musl_linux_s390x.go create mode 100644 vendor/modernc.org/libc/netdb/capi_illumos_amd64.go create mode 100644 vendor/modernc.org/libc/netdb/capi_linux_loong64.go create mode 100644 vendor/modernc.org/libc/netdb/capi_linux_mips64le.go create mode 100644 vendor/modernc.org/libc/netdb/netdb_illumos_amd64.go create mode 100644 vendor/modernc.org/libc/netdb/netdb_linux_loong64.go create mode 100644 vendor/modernc.org/libc/netdb/netdb_linux_mips64le.go create mode 100644 vendor/modernc.org/libc/netinet/in/capi_illumos_amd64.go create mode 100644 vendor/modernc.org/libc/netinet/in/capi_linux_loong64.go create mode 100644 vendor/modernc.org/libc/netinet/in/capi_linux_mips64le.go create mode 100644 vendor/modernc.org/libc/netinet/in/in_illumos_amd64.go create mode 100644 vendor/modernc.org/libc/netinet/in/in_linux_loong64.go create mode 100644 vendor/modernc.org/libc/netinet/in/in_linux_mips64le.go create mode 100644 vendor/modernc.org/libc/poll/capi_illumos_amd64.go create mode 100644 vendor/modernc.org/libc/poll/capi_linux_loong64.go create mode 100644 vendor/modernc.org/libc/poll/capi_linux_mips64le.go create mode 100644 vendor/modernc.org/libc/poll/poll_illumos_amd64.go create mode 100644 vendor/modernc.org/libc/poll/poll_linux_loong64.go create mode 100644 vendor/modernc.org/libc/poll/poll_linux_mips64le.go create mode 100644 vendor/modernc.org/libc/pthread/capi_illumos_amd64.go create mode 100644 vendor/modernc.org/libc/pthread/capi_linux_loong64.go create mode 100644 vendor/modernc.org/libc/pthread/capi_linux_mips64le.go create mode 100644 vendor/modernc.org/libc/pthread/pthread_illumos_amd64.go create mode 100644 vendor/modernc.org/libc/pthread/pthread_linux_loong64.go create mode 100644 vendor/modernc.org/libc/pthread/pthread_linux_mips64le.go create mode 100644 vendor/modernc.org/libc/pthread_musl.go create mode 100644 vendor/modernc.org/libc/pwd/capi_illumos_amd64.go create mode 100644 vendor/modernc.org/libc/pwd/capi_linux_loong64.go create mode 100644 vendor/modernc.org/libc/pwd/capi_linux_mips64le.go create mode 100644 vendor/modernc.org/libc/pwd/pwd_illumos_amd64.go create mode 100644 vendor/modernc.org/libc/pwd/pwd_linux_loong64.go create mode 100644 vendor/modernc.org/libc/pwd/pwd_linux_mips64le.go create mode 100644 vendor/modernc.org/libc/rtl.go create mode 100644 vendor/modernc.org/libc/signal/capi_illumos_amd64.go create mode 100644 vendor/modernc.org/libc/signal/capi_linux_loong64.go create mode 100644 vendor/modernc.org/libc/signal/capi_linux_mips64le.go create mode 100644 vendor/modernc.org/libc/signal/more_illumos_amd64.go create mode 100644 vendor/modernc.org/libc/signal/more_linux_loong64.go create mode 100644 vendor/modernc.org/libc/signal/more_linux_mips64le.go create mode 100644 vendor/modernc.org/libc/signal/signal_illumos_amd64.go create mode 100644 vendor/modernc.org/libc/signal/signal_linux_loong64.go create mode 100644 vendor/modernc.org/libc/signal/signal_linux_mips64le.go create mode 100644 vendor/modernc.org/libc/stdatomic.go create mode 100644 vendor/modernc.org/libc/stdio/capi_illumos_amd64.go create mode 100644 vendor/modernc.org/libc/stdio/capi_linux_loong64.go create mode 100644 vendor/modernc.org/libc/stdio/capi_linux_mips64le.go create mode 100644 vendor/modernc.org/libc/stdio/stdio_illumos_amd64.go create mode 100644 vendor/modernc.org/libc/stdio/stdio_linux_loong64.go create mode 100644 vendor/modernc.org/libc/stdio/stdio_linux_mips64le.go create mode 100644 vendor/modernc.org/libc/stdlib/capi_illumos_amd64.go create mode 100644 vendor/modernc.org/libc/stdlib/capi_linux_loong64.go create mode 100644 vendor/modernc.org/libc/stdlib/capi_linux_mips64le.go create mode 100644 vendor/modernc.org/libc/stdlib/stdlib_illumos_amd64.go create mode 100644 vendor/modernc.org/libc/stdlib/stdlib_linux_loong64.go create mode 100644 vendor/modernc.org/libc/stdlib/stdlib_linux_mips64le.go create mode 100644 vendor/modernc.org/libc/straceoff.go create mode 100644 vendor/modernc.org/libc/straceon.go create mode 100644 vendor/modernc.org/libc/surface.new create mode 100644 vendor/modernc.org/libc/surface.old create mode 100644 vendor/modernc.org/libc/sys/socket/capi_illumos_amd64.go create mode 100644 vendor/modernc.org/libc/sys/socket/capi_linux_loong64.go create mode 100644 vendor/modernc.org/libc/sys/socket/capi_linux_mips64le.go create mode 100644 vendor/modernc.org/libc/sys/socket/socket_illumos_amd64.go create mode 100644 vendor/modernc.org/libc/sys/socket/socket_linux_loong64.go create mode 100644 vendor/modernc.org/libc/sys/socket/socket_linux_mips64le.go create mode 100644 vendor/modernc.org/libc/sys/stat/capi_illumos_amd64.go create mode 100644 vendor/modernc.org/libc/sys/stat/capi_linux_loong64.go create mode 100644 vendor/modernc.org/libc/sys/stat/capi_linux_mips64le.go create mode 100644 vendor/modernc.org/libc/sys/stat/stat_illumos_amd64.go create mode 100644 vendor/modernc.org/libc/sys/stat/stat_linux_loong64.go create mode 100644 vendor/modernc.org/libc/sys/stat/stat_linux_mips64le.go create mode 100644 vendor/modernc.org/libc/sys/types/capi_illumos_amd64.go create mode 100644 vendor/modernc.org/libc/sys/types/capi_linux_loong64.go create mode 100644 vendor/modernc.org/libc/sys/types/capi_linux_mips64le.go create mode 100644 vendor/modernc.org/libc/sys/types/types_illumos_amd64.go create mode 100644 vendor/modernc.org/libc/sys/types/types_linux_loong64.go create mode 100644 vendor/modernc.org/libc/sys/types/types_linux_mips64le.go create mode 100644 vendor/modernc.org/libc/syscall_musl.go create mode 100644 vendor/modernc.org/libc/termios/capi_illumos_amd64.go create mode 100644 vendor/modernc.org/libc/termios/capi_linux_loong64.go create mode 100644 vendor/modernc.org/libc/termios/capi_linux_mips64le.go create mode 100644 vendor/modernc.org/libc/termios/termios_illumos_amd64.go create mode 100644 vendor/modernc.org/libc/termios/termios_linux_loong64.go create mode 100644 vendor/modernc.org/libc/termios/termios_linux_mips64le.go create mode 100644 vendor/modernc.org/libc/time/capi_illumos_amd64.go create mode 100644 vendor/modernc.org/libc/time/capi_linux_loong64.go create mode 100644 vendor/modernc.org/libc/time/capi_linux_mips64le.go create mode 100644 vendor/modernc.org/libc/time/time_illumos_amd64.go create mode 100644 vendor/modernc.org/libc/time/time_linux_loong64.go create mode 100644 vendor/modernc.org/libc/time/time_linux_mips64le.go create mode 100644 vendor/modernc.org/libc/tls_linux_amd64.go create mode 100644 vendor/modernc.org/libc/tls_linux_amd64.s create mode 100644 vendor/modernc.org/libc/unistd/capi_illumos_amd64.go create mode 100644 vendor/modernc.org/libc/unistd/capi_linux_loong64.go create mode 100644 vendor/modernc.org/libc/unistd/capi_linux_mips64le.go create mode 100644 vendor/modernc.org/libc/unistd/unistd_illumos_amd64.go create mode 100644 vendor/modernc.org/libc/unistd/unistd_linux_loong64.go create mode 100644 vendor/modernc.org/libc/unistd/unistd_linux_mips64le.go create mode 100644 vendor/modernc.org/libc/utime/capi_illumos_amd64.go create mode 100644 vendor/modernc.org/libc/utime/capi_linux_loong64.go create mode 100644 vendor/modernc.org/libc/utime/capi_linux_mips64le.go create mode 100644 vendor/modernc.org/libc/utime/utime_illumos_amd64.go create mode 100644 vendor/modernc.org/libc/utime/utime_linux_loong64.go create mode 100644 vendor/modernc.org/libc/utime/utime_linux_mips64le.go create mode 100644 vendor/modernc.org/libc/uuid/uuid/capi_illumos_amd64.go create mode 100644 vendor/modernc.org/libc/uuid/uuid/capi_linux_loong64.go create mode 100644 vendor/modernc.org/libc/uuid/uuid/capi_linux_mips64le.go create mode 100644 vendor/modernc.org/libc/uuid/uuid/uuid_illumos_amd64.go create mode 100644 vendor/modernc.org/libc/uuid/uuid/uuid_linux_loong64.go create mode 100644 vendor/modernc.org/libc/uuid/uuid/uuid_linux_mips64le.go create mode 100644 vendor/modernc.org/libc/wctype/capi_illumos_amd64.go create mode 100644 vendor/modernc.org/libc/wctype/capi_linux_loong64.go create mode 100644 vendor/modernc.org/libc/wctype/capi_linux_mips64le.go create mode 100644 vendor/modernc.org/libc/wctype/wctype_illumos_amd64.go create mode 100644 vendor/modernc.org/libc/wctype/wctype_linux_loong64.go create mode 100644 vendor/modernc.org/libc/wctype/wctype_linux_mips64le.go create mode 100644 vendor/modernc.org/mathutil/builder.json create mode 100644 vendor/modernc.org/memory/LICENSE-LOGO create mode 100644 vendor/modernc.org/memory/builder.json create mode 100644 vendor/modernc.org/memory/logo.png delete mode 100644 vendor/modernc.org/memory/mmap_darwin.go delete mode 100644 vendor/modernc.org/memory/mmap_freebsd_32.go delete mode 100644 vendor/modernc.org/memory/mmap_freebsd_64.go delete mode 100644 vendor/modernc.org/memory/mmap_illumos_amd64.go delete mode 100644 vendor/modernc.org/memory/mmap_linux_32.go delete mode 100644 vendor/modernc.org/memory/mmap_linux_64.go delete mode 100644 vendor/modernc.org/memory/mmap_linux_s390x.go delete mode 100644 vendor/modernc.org/memory/mmap_netbsd_32.go delete mode 100644 vendor/modernc.org/memory/mmap_netbsd_64.go delete mode 100644 vendor/modernc.org/memory/mmap_openbsd.go diff --git a/go.mod b/go.mod index 0a93718e4..65badf65e 100644 --- a/go.mod +++ b/go.mod @@ -129,6 +129,7 @@ require ( github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect github.com/modern-go/reflect2 v1.0.3-0.20250322232337-35a7c28c31ee // indirect github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect + github.com/ncruces/go-strftime v1.0.0 // indirect github.com/nozzle/throttler v0.0.0-20180817012639-2ea982251481 // indirect github.com/oklog/ulid/v2 v2.1.1 // indirect github.com/opencontainers/image-spec v1.1.1 // indirect @@ -137,7 +138,7 @@ require ( github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect github.com/pkg/errors v0.9.1 // indirect github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect - github.com/remyoudompheng/bigfft v0.0.0-20230126093431-47fa9a501578 // indirect + github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect github.com/rivo/uniseg v0.4.7 // indirect github.com/sassoftware/relic v7.2.1+incompatible // indirect github.com/secure-systems-lab/go-securesystemslib v0.10.0 // indirect @@ -194,9 +195,9 @@ require ( k8s.io/klog/v2 v2.130.1 // indirect k8s.io/kube-openapi v0.0.0-20250910181357-589584f1c912 // indirect k8s.io/utils v0.0.0-20251002143259-bc988d571ff4 // indirect - modernc.org/libc v1.22.2 // indirect - modernc.org/mathutil v1.5.0 // indirect - modernc.org/memory v1.5.0 // indirect + modernc.org/libc v1.73.1 // indirect + modernc.org/mathutil v1.7.1 // indirect + modernc.org/memory v1.11.0 // indirect modernc.org/sqlite v1.20.3 // indirect sigs.k8s.io/json v0.0.0-20250730193827-2d320260d730 // indirect sigs.k8s.io/randfill v1.0.0 // indirect diff --git a/go.sum b/go.sum index e307fe795..90c410fa9 100644 --- a/go.sum +++ b/go.sum @@ -446,6 +446,8 @@ github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 h1:C3w9PqII01/Oq github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ= github.com/natefinch/atomic v1.0.1 h1:ZPYKxkqQOx3KZ+RsbnP/YsgvxWQPGxjC0oBt2AhwV0A= github.com/natefinch/atomic v1.0.1/go.mod h1:N/D/ELrljoqDyT3rZrsUmtsuzvHkeB/wWjHV22AZRbM= +github.com/ncruces/go-strftime v1.0.0 h1:HMFp8mLCTPp341M/ZnA4qaf7ZlsbTc+miZjCLOFAw7w= +github.com/ncruces/go-strftime v1.0.0/go.mod h1:Fwc5htZGVVkseilnfgOVb9mKy6w1naJmn9CehxcKcls= github.com/neuvector/neuvector v0.0.0-20260406013240-eba858444676 h1:wXR1r1gGl0fWBIMKadfDXpkskBEyknPtzfa9yMTnEhc= github.com/neuvector/neuvector v0.0.0-20260406013240-eba858444676/go.mod h1:0cbVsNu8ZQ+Gc0kNi8ixPmdkunSJ1lwOqKFxtUQUcIE= github.com/nozzle/throttler v0.0.0-20180817012639-2ea982251481 h1:Up6+btDp321ZG5/zdSLo48H9Iaq0UQGthrhWC6pCxzE= @@ -505,9 +507,8 @@ github.com/prometheus/procfs v0.19.2/go.mod h1:M0aotyiemPhBCM0z5w87kL22CxfcH05Zp github.com/quay/clair/v2 v2.1.8 h1:F3C4CTno0UaGYOajWg19orY4sZe1YBYszL5o7UP6Lc8= github.com/quay/clair/v2 v2.1.8/go.mod h1:W98TX5hlrJA0+InaAtyM0R7x8e5SVonTSTj/Pj7ZGiY= github.com/remind101/migrate v0.0.0-20160423010909-d22d647232c2/go.mod h1:rhSvwcijY9wfmrBYrfCvapX8/xOTV46NAUjBRgUyJqc= -github.com/remyoudompheng/bigfft v0.0.0-20200410134404-eec4a21b6bb0/go.mod h1:qqbHyh8v60DhA7CoWK5oRCqLrMHRGoxYCSS9EjAz6Eo= -github.com/remyoudompheng/bigfft v0.0.0-20230126093431-47fa9a501578 h1:VstopitMQi3hZP0fzvnsLmzXZdQGc4bEcgu24cp+d4M= -github.com/remyoudompheng/bigfft v0.0.0-20230126093431-47fa9a501578/go.mod h1:qqbHyh8v60DhA7CoWK5oRCqLrMHRGoxYCSS9EjAz6Eo= +github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec h1:W09IVJc94icq4NjY3clb7Lk8O1qJ8BdBEF8z0ibU0rE= +github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec/go.mod h1:qqbHyh8v60DhA7CoWK5oRCqLrMHRGoxYCSS9EjAz6Eo= github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.4.7 h1:WUdvkW8uEhrYfLC4ZzdpI2ztxP1I582+49Oc5Mq64VQ= github.com/rivo/uniseg v0.4.7/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88= @@ -818,14 +819,34 @@ k8s.io/kube-openapi v0.0.0-20250910181357-589584f1c912 h1:Y3gxNAuB0OBLImH611+UDZ k8s.io/kube-openapi v0.0.0-20250910181357-589584f1c912/go.mod h1:kdmbQkyfwUagLfXIad1y2TdrjPFWp2Q89B3qkRwf/pQ= k8s.io/utils v0.0.0-20251002143259-bc988d571ff4 h1:SjGebBtkBqHFOli+05xYbK8YF1Dzkbzn+gDM4X9T4Ck= k8s.io/utils v0.0.0-20251002143259-bc988d571ff4/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0= -modernc.org/libc v1.22.2 h1:4U7v51GyhlWqQmwCHj28Rdq2Yzwk55ovjFrdPjs8Hb0= -modernc.org/libc v1.22.2/go.mod h1:uvQavJ1pZ0hIoC/jfqNoMLURIMhKzINIWypNM17puug= -modernc.org/mathutil v1.5.0 h1:rV0Ko/6SfM+8G+yKiyI830l3Wuz1zRutdslNoQ0kfiQ= -modernc.org/mathutil v1.5.0/go.mod h1:mZW8CKdRPY1v87qxC/wUdX5O1qDzXMP5TH3wjfpga6E= -modernc.org/memory v1.5.0 h1:N+/8c5rE6EqugZwHii4IFsaJ7MUhoWX07J5tC/iI5Ds= -modernc.org/memory v1.5.0/go.mod h1:PkUhL0Mugw21sHPeskwZW4D6VscE/GQJOnIpCnW6pSU= +modernc.org/cc/v4 v4.28.4 h1:Hd/4Es+MBj+/7hSdZaisNyu6bv3V0Dp2MdllyfqaH+c= +modernc.org/cc/v4 v4.28.4/go.mod h1:OnovgIhbbMXMu1aISnJ0wvVD1KnW+cAUJkIrAWh+kVI= +modernc.org/ccgo/v4 v4.34.4 h1:OVnSOWQjVKOYkFxoHYB+qQmSHK5gqMqARM+K9DpR/Ws= +modernc.org/ccgo/v4 v4.34.4/go.mod h1:qdKqE8FNIYyysougB1RX9MxCzp5oJOcQXSobANJ4TuE= +modernc.org/fileutil v1.4.0 h1:j6ZzNTftVS054gi281TyLjHPp6CPHr2KCxEXjEbD6SM= +modernc.org/fileutil v1.4.0/go.mod h1:EqdKFDxiByqxLk8ozOxObDSfcVOv/54xDs/DUHdvCUU= +modernc.org/gc/v2 v2.6.5 h1:nyqdV8q46KvTpZlsw66kWqwXRHdjIlJOhG6kxiV/9xI= +modernc.org/gc/v2 v2.6.5/go.mod h1:YgIahr1ypgfe7chRuJi2gD7DBQiKSLMPgBQe9oIiito= +modernc.org/gc/v3 v3.1.3 h1:6QAplYyVO+KdPW3pGnqmJDUxtkec8ooEWvks/hhU3lc= +modernc.org/gc/v3 v3.1.3/go.mod h1:HFK/6AGESC7Ex+EZJhJ2Gni6cTaYpSMmU/cT9RmlfYY= +modernc.org/goabi0 v0.2.0 h1:HvEowk7LxcPd0eq6mVOAEMai46V+i7Jrj13t4AzuNks= +modernc.org/goabi0 v0.2.0/go.mod h1:CEFRnnJhKvWT1c1JTI3Avm+tgOWbkOu5oPA8eH8LnMI= +modernc.org/libc v1.73.1 h1:HMa/TQJY2Z8ZjqBRbVJMLjBhmxTOwN2aMcxNrT01Dbc= +modernc.org/libc v1.73.1/go.mod h1:DXZ3eO8qMCNn2SnmTNCiC71nJ9Rcq3PsnpU6Vc4rWK8= +modernc.org/mathutil v1.7.1 h1:GCZVGXdaN8gTqB1Mf/usp1Y/hSqgI2vAGGP4jZMCxOU= +modernc.org/mathutil v1.7.1/go.mod h1:4p5IwJITfppl0G4sUEDtCr4DthTaT47/N3aT6MhfgJg= +modernc.org/memory v1.11.0 h1:o4QC8aMQzmcwCK3t3Ux/ZHmwFPzE6hf2Y5LbkRs+hbI= +modernc.org/memory v1.11.0/go.mod h1:/JP4VbVC+K5sU2wZi9bHoq2MAkCnrt2r98UGeSK7Mjw= +modernc.org/opt v0.2.0 h1:tGyef5ApycA7FSEOMraay9SaTk5zmbx7Tu+cJs4QKZg= +modernc.org/opt v0.2.0/go.mod h1:03fq9lsNfvkYSfxrfUhZCWPk1lm4cq4N+Bh//bEtgns= +modernc.org/sortutil v1.2.1 h1:+xyoGf15mM3NMlPDnFqrteY07klSFxLElE2PVuWIJ7w= +modernc.org/sortutil v1.2.1/go.mod h1:7ZI3a3REbai7gzCLcotuw9AC4VZVpYMjDzETGsSMqJE= modernc.org/sqlite v1.20.3 h1:SqGJMMxjj1PHusLxdYxeQSodg7Jxn9WWkaAQjKrntZs= modernc.org/sqlite v1.20.3/go.mod h1:zKcGyrICaxNTMEHSr1HQ2GUraP0j+845GYw37+EyT6A= +modernc.org/strutil v1.2.1 h1:UneZBkQA+DX2Rp35KcM69cSsNES9ly8mQWD71HKlOA0= +modernc.org/strutil v1.2.1/go.mod h1:EHkiggD70koQxjVdSBM3JKM7k6L0FbGE5eymy9i3B9A= +modernc.org/token v1.1.0 h1:Xl7Ap9dKaEs5kLoOQeQmPWevfnk/DM5qcLcYlA8ys6Y= +modernc.org/token v1.1.0/go.mod h1:UGzOrNV1mAFSEB63lOFHIpNRUVMvYTc6yu1SMY/XTDM= pgregory.net/rapid v1.2.0 h1:keKAYRcjm+e1F0oAuU5F5+YPAWcyxNNRK2wud503Gnk= pgregory.net/rapid v1.2.0/go.mod h1:PY5XlDGj0+V1FCq0o192FdRhpKHGTRIWBgqjDBTrq04= sigs.k8s.io/json v0.0.0-20250730193827-2d320260d730 h1:IpInykpT6ceI+QxKBbEflcR5EXP7sU1kvOlxwZh5txg= diff --git a/vendor/github.com/ncruces/go-strftime/.gitignore b/vendor/github.com/ncruces/go-strftime/.gitignore new file mode 100644 index 000000000..66fd13c90 --- /dev/null +++ b/vendor/github.com/ncruces/go-strftime/.gitignore @@ -0,0 +1,15 @@ +# Binaries for programs and plugins +*.exe +*.exe~ +*.dll +*.so +*.dylib + +# Test binary, built with `go test -c` +*.test + +# Output of the go coverage tool, specifically when used with LiteIDE +*.out + +# Dependency directories (remove the comment below to include it) +# vendor/ diff --git a/vendor/github.com/ncruces/go-strftime/LICENSE b/vendor/github.com/ncruces/go-strftime/LICENSE new file mode 100644 index 000000000..7f0f5534c --- /dev/null +++ b/vendor/github.com/ncruces/go-strftime/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2022 Nuno Cruces + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/vendor/github.com/ncruces/go-strftime/README.md b/vendor/github.com/ncruces/go-strftime/README.md new file mode 100644 index 000000000..5b0573cf0 --- /dev/null +++ b/vendor/github.com/ncruces/go-strftime/README.md @@ -0,0 +1,5 @@ +# `strftime`/`strptime` compatible time formatting and parsing for Go + +[![Go Reference](https://pkg.go.dev/badge/image)](https://pkg.go.dev/github.com/ncruces/go-strftime) +[![Go Report](https://goreportcard.com/badge/github.com/ncruces/go-strftime)](https://goreportcard.com/report/github.com/ncruces/go-strftime) +[![Go Coverage](https://github.com/ncruces/go-strftime/wiki/coverage.svg)](https://raw.githack.com/wiki/ncruces/go-strftime/coverage.html) \ No newline at end of file diff --git a/vendor/github.com/ncruces/go-strftime/parser.go b/vendor/github.com/ncruces/go-strftime/parser.go new file mode 100644 index 000000000..b006de38a --- /dev/null +++ b/vendor/github.com/ncruces/go-strftime/parser.go @@ -0,0 +1,107 @@ +package strftime + +import "unicode/utf8" + +type parser struct { + format func(spec, flag byte) error + literal func(byte) error +} + +func (p *parser) parse(fmt string) error { + const ( + initial = iota + percent + flagged + modified + ) + + var flag, modifier byte + var err error + state := initial + start := 0 + for i, b := range []byte(fmt) { + switch state { + default: + if b == '%' { + state = percent + start = i + continue + } + err = p.literal(b) + + case percent: + if b == '-' || b == ':' { + state = flagged + flag = b + continue + } + if b == 'E' || b == 'O' { + state = modified + modifier = b + flag = 0 + continue + } + err = p.format(b, 0) + state = initial + + case flagged: + if b == 'E' || b == 'O' { + state = modified + modifier = b + continue + } + err = p.format(b, flag) + state = initial + + case modified: + if okModifier(modifier, b) { + err = p.format(b, flag) + } else { + err = p.literals(fmt[start : i+1]) + } + state = initial + } + + if err != nil { + if err, ok := err.(formatError); ok { + err.setDirective(fmt, start, i) + return err + } + return err + } + } + + if state != initial { + return p.literals(fmt[start:]) + } + return nil +} + +func (p *parser) literals(literal string) error { + for _, b := range []byte(literal) { + if err := p.literal(b); err != nil { + return err + } + } + return nil +} + +type literalErr string + +func (e literalErr) Error() string { + return "strftime: unsupported literal: " + string(e) +} + +type formatError struct { + message string + directive string +} + +func (e formatError) Error() string { + return "strftime: unsupported directive: " + e.directive + " " + e.message +} + +func (e *formatError) setDirective(str string, i, j int) { + _, n := utf8.DecodeRuneInString(str[j:]) + e.directive = str[i : j+n] +} diff --git a/vendor/github.com/ncruces/go-strftime/pkg.go b/vendor/github.com/ncruces/go-strftime/pkg.go new file mode 100644 index 000000000..6b151b04e --- /dev/null +++ b/vendor/github.com/ncruces/go-strftime/pkg.go @@ -0,0 +1,96 @@ +/* +Package strftime provides strftime/strptime compatible time formatting and parsing. + +The following formatting specifiers are available: + + Date (Year, Month, Day): + %Y - Year with century (can be negative, 4 digits at least) + -0001, 0000, 1995, 2009, 14292, etc. + %C - year / 100 (round down, 20 in 2009) + %y - year % 100 (00..99) + + %m - Month of the year, zero-padded (01..12) + %-m no-padded (1..12) + %B - Full month name (January) + %b - Abbreviated month name (Jan) + %h - Equivalent to %b + + %d - Day of the month, zero-padded (01..31) + %-d no-padded (1..31) + %e - Day of the month, blank-padded ( 1..31) + + %j - Day of the year (001..366) + %-j no-padded (1..366) + + Time (Hour, Minute, Second, Subsecond): + %H - Hour of the day, 24-hour clock, zero-padded (00..23) + %-H no-padded (0..23) + %k - Hour of the day, 24-hour clock, blank-padded ( 0..23) + %I - Hour of the day, 12-hour clock, zero-padded (01..12) + %-I no-padded (1..12) + %l - Hour of the day, 12-hour clock, blank-padded ( 1..12) + %P - Meridian indicator, lowercase (am or pm) + %p - Meridian indicator, uppercase (AM or PM) + + %M - Minute of the hour (00..59) + %-M no-padded (0..59) + + %S - Second of the minute (00..60) + %-S no-padded (0..60) + + %L - Millisecond of the second (000..999) + %f - Microsecond of the second (000000..999999) + %N - Nanosecond of the second (000000000..999999999) + + Time zone: + %z - Time zone as hour and minute offset from UTC (e.g. +0900) + %:z - hour and minute offset from UTC with a colon (e.g. +09:00) + %Z - Time zone abbreviation (e.g. MST) + + Weekday: + %A - Full weekday name (Sunday) + %a - Abbreviated weekday name (Sun) + %u - Day of the week (Monday is 1, 1..7) + %w - Day of the week (Sunday is 0, 0..6) + + ISO 8601 week-based year and week number: + Week 1 of YYYY starts with a Monday and includes YYYY-01-04. + The days in the year before the first week are in the last week of + the previous year. + %G - Week-based year + %g - Last 2 digits of the week-based year (00..99) + %V - Week number of the week-based year (01..53) + %-V no-padded (1..53) + + Week number: + Week 1 of YYYY starts with a Sunday or Monday (according to %U or %W). + The days in the year before the first week are in week 0. + %U - Week number of the year. The week starts with Sunday. (00..53) + %-U no-padded (0..53) + %W - Week number of the year. The week starts with Monday. (00..53) + %-W no-padded (0..53) + + Seconds since the Unix Epoch: + %s - Number of seconds since 1970-01-01 00:00:00 UTC. + %Q - Number of milliseconds since 1970-01-01 00:00:00 UTC. + + Literal string: + %n - Newline character (\n) + %t - Tab character (\t) + %% - Literal % character + + Combination: + %c - date and time (%a %b %e %T %Y) + %D - Date (%m/%d/%y) + %F - ISO 8601 date format (%Y-%m-%d) + %v - VMS date (%e-%b-%Y) + %x - Same as %D + %X - Same as %T + %r - 12-hour time (%I:%M:%S %p) + %R - 24-hour time (%H:%M) + %T - 24-hour time (%H:%M:%S) + %+ - date(1) (%a %b %e %H:%M:%S %Z %Y) + +The modifiers “E” and “O” are ignored. +*/ +package strftime diff --git a/vendor/github.com/ncruces/go-strftime/specifiers.go b/vendor/github.com/ncruces/go-strftime/specifiers.go new file mode 100644 index 000000000..065f77963 --- /dev/null +++ b/vendor/github.com/ncruces/go-strftime/specifiers.go @@ -0,0 +1,241 @@ +package strftime + +import "strings" + +// https://strftime.org/ +func goLayout(spec, flag byte, parsing bool) string { + switch spec { + default: + return "" + + case 'B': + return "January" + case 'b', 'h': + return "Jan" + case 'm': + if flag == '-' || parsing { + return "1" + } + return "01" + case 'A': + return "Monday" + case 'a': + return "Mon" + case 'e': + return "_2" + case 'd': + if flag == '-' || parsing { + return "2" + } + return "02" + case 'j': + if flag == '-' { + if parsing { + return "__2" + } + return "" + } + return "002" + case 'I': + if flag == '-' || parsing { + return "3" + } + return "03" + case 'H': + if flag == '-' && !parsing { + return "" + } + return "15" + case 'M': + if flag == '-' || parsing { + return "4" + } + return "04" + case 'S': + if flag == '-' || parsing { + return "5" + } + return "05" + case 'y': + return "06" + case 'Y': + return "2006" + case 'p': + return "PM" + case 'P': + return "pm" + case 'Z': + return "MST" + case 'z': + if flag == ':' { + if parsing { + return "Z07:00" + } + return "-07:00" + } + if parsing { + return "Z0700" + } + return "-0700" + + case '+': + if parsing { + return "Mon Jan _2 15:4:5 MST 2006" + } + return "Mon Jan _2 15:04:05 MST 2006" + case 'c': + if parsing { + return "Mon Jan _2 15:4:5 2006" + } + return "Mon Jan _2 15:04:05 2006" + case 'v': + return "_2-Jan-2006" + case 'F': + if parsing { + return "2006-1-2" + } + return "2006-01-02" + case 'D', 'x': + if parsing { + return "1/2/06" + } + return "01/02/06" + case 'r': + if parsing { + return "3:4:5 PM" + } + return "03:04:05 PM" + case 'T', 'X': + if parsing { + return "15:4:5" + } + return "15:04:05" + case 'R': + if parsing { + return "15:4" + } + return "15:04" + + case '%': + return "%" + case 't': + return "\t" + case 'n': + return "\n" + } +} + +// https://nsdateformatter.com/ +func uts35Pattern(spec, flag byte) string { + switch spec { + default: + return "" + + case 'B': + return "MMMM" + case 'b', 'h': + return "MMM" + case 'm': + if flag == '-' { + return "M" + } + return "MM" + case 'A': + return "EEEE" + case 'a': + return "E" + case 'd': + if flag == '-' { + return "d" + } + return "dd" + case 'j': + if flag == '-' { + return "D" + } + return "DDD" + case 'I': + if flag == '-' { + return "h" + } + return "hh" + case 'H': + if flag == '-' { + return "H" + } + return "HH" + case 'M': + if flag == '-' { + return "m" + } + return "mm" + case 'S': + if flag == '-' { + return "s" + } + return "ss" + case 'y': + return "yy" + case 'Y': + return "yyyy" + case 'g': + return "YY" + case 'G': + return "YYYY" + case 'V': + if flag == '-' { + return "w" + } + return "ww" + case 'p': + return "a" + case 'Z': + return "zzz" + case 'z': + if flag == ':' { + return "xxx" + } + return "xx" + case 'L': + return "SSS" + case 'f': + return "SSSSSS" + case 'N': + return "SSSSSSSSS" + + case '+': + return "E MMM d HH:mm:ss zzz yyyy" + case 'c': + return "E MMM d HH:mm:ss yyyy" + case 'v': + return "d-MMM-yyyy" + case 'F': + return "yyyy-MM-dd" + case 'D', 'x': + return "MM/dd/yy" + case 'r': + return "hh:mm:ss a" + case 'T', 'X': + return "HH:mm:ss" + case 'R': + return "HH:mm" + + case '%': + return "%" + case 't': + return "\t" + case 'n': + return "\n" + } +} + +// http://man.he.net/man3/strftime +func okModifier(mod, spec byte) bool { + if mod == 'E' { + return strings.Contains("cCxXyY", string(spec)) + } + if mod == 'O' { + return strings.Contains("deHImMSuUVwWy", string(spec)) + } + return false +} diff --git a/vendor/github.com/ncruces/go-strftime/strftime.go b/vendor/github.com/ncruces/go-strftime/strftime.go new file mode 100644 index 000000000..4a5afc9d8 --- /dev/null +++ b/vendor/github.com/ncruces/go-strftime/strftime.go @@ -0,0 +1,346 @@ +package strftime + +import ( + "bytes" + "strconv" + "time" +) + +// Format returns a textual representation of the time value +// formatted according to the strftime format specification. +func Format(fmt string, t time.Time) string { + buf := buffer(fmt) + return string(AppendFormat(buf, fmt, t)) +} + +// AppendFormat is like Format, but appends the textual representation +// to dst and returns the extended buffer. +func AppendFormat(dst []byte, fmt string, t time.Time) []byte { + var parser parser + + parser.literal = func(b byte) error { + dst = append(dst, b) + return nil + } + + parser.format = func(spec, flag byte) error { + switch spec { + case 'A': + dst = append(dst, t.Weekday().String()...) + return nil + case 'a': + dst = append(dst, t.Weekday().String()[:3]...) + return nil + case 'B': + dst = append(dst, t.Month().String()...) + return nil + case 'b', 'h': + dst = append(dst, t.Month().String()[:3]...) + return nil + case 'm': + dst = appendInt2(dst, int(t.Month()), flag) + return nil + case 'd': + dst = appendInt2(dst, int(t.Day()), flag) + return nil + case 'e': + dst = appendInt2(dst, int(t.Day()), ' ') + return nil + case 'I': + dst = append12Hour(dst, t, flag) + return nil + case 'l': + dst = append12Hour(dst, t, ' ') + return nil + case 'H': + dst = appendInt2(dst, t.Hour(), flag) + return nil + case 'k': + dst = appendInt2(dst, t.Hour(), ' ') + return nil + case 'M': + dst = appendInt2(dst, t.Minute(), flag) + return nil + case 'S': + dst = appendInt2(dst, t.Second(), flag) + return nil + case 'L': + dst = append(dst, t.Format(".000")[1:]...) + return nil + case 'f': + dst = append(dst, t.Format(".000000")[1:]...) + return nil + case 'N': + dst = append(dst, t.Format(".000000000")[1:]...) + return nil + case 'y': + dst = t.AppendFormat(dst, "06") + return nil + case 'Y': + dst = t.AppendFormat(dst, "2006") + return nil + case 'C': + dst = t.AppendFormat(dst, "2006") + dst = dst[:len(dst)-2] + return nil + case 'U': + dst = appendWeekNumber(dst, t, flag, true) + return nil + case 'W': + dst = appendWeekNumber(dst, t, flag, false) + return nil + case 'V': + _, w := t.ISOWeek() + dst = appendInt2(dst, w, flag) + return nil + case 'g': + y, _ := t.ISOWeek() + dst = year(y).AppendFormat(dst, "06") + return nil + case 'G': + y, _ := t.ISOWeek() + dst = year(y).AppendFormat(dst, "2006") + return nil + case 's': + dst = strconv.AppendInt(dst, t.Unix(), 10) + return nil + case 'Q': + dst = strconv.AppendInt(dst, t.UnixMilli(), 10) + return nil + case 'w': + w := t.Weekday() + dst = appendInt1(dst, int(w)) + return nil + case 'u': + if w := t.Weekday(); w == 0 { + dst = append(dst, '7') + } else { + dst = appendInt1(dst, int(w)) + } + return nil + case 'j': + if flag == '-' { + dst = strconv.AppendInt(dst, int64(t.YearDay()), 10) + } else { + dst = t.AppendFormat(dst, "002") + } + return nil + } + + if layout := goLayout(spec, flag, false); layout != "" { + dst = t.AppendFormat(dst, layout) + return nil + } + + dst = append(dst, '%') + if flag != 0 { + dst = append(dst, flag) + } + dst = append(dst, spec) + return nil + } + + parser.parse(fmt) + return dst +} + +// Parse converts a textual representation of time to the time value it represents +// according to the strptime format specification. +// +// The following specifiers are not supported for parsing: +// +// %g %k %l %s %u %w %C %G %Q %U %V %W +// +// You must also avoid digits and these letter sequences +// in fmt literals: +// +// Jan Mon MST PM pm +func Parse(fmt, value string) (time.Time, error) { + pattern, err := layout(fmt, true) + if err != nil { + return time.Time{}, err + } + return time.Parse(pattern, value) +} + +// Layout converts a strftime format specification +// to a Go time pattern specification. +// +// The following specifiers are not supported by Go patterns: +// +// %f %g %k %l %s %u %w %C %G %L %N %Q %U %V %W +// +// You must also avoid digits and these letter sequences +// in fmt literals: +// +// Jan Mon MST PM pm +func Layout(fmt string) (string, error) { + return layout(fmt, false) +} + +func layout(fmt string, parsing bool) (string, error) { + dst := buffer(fmt) + var parser parser + + parser.literal = func(b byte) error { + if '0' <= b && b <= '9' { + return literalErr(b) + } + dst = append(dst, b) + if b == 'M' || b == 'T' || b == 'm' || b == 'n' { + switch { + case bytes.HasSuffix(dst, []byte("Jan")): + return literalErr("Jan") + case bytes.HasSuffix(dst, []byte("Mon")): + return literalErr("Mon") + case bytes.HasSuffix(dst, []byte("MST")): + return literalErr("MST") + case bytes.HasSuffix(dst, []byte("PM")): + return literalErr("PM") + case bytes.HasSuffix(dst, []byte("pm")): + return literalErr("pm") + } + } + return nil + } + + parser.format = func(spec, flag byte) error { + if layout := goLayout(spec, flag, parsing); layout != "" { + dst = append(dst, layout...) + return nil + } + + switch spec { + default: + return formatError{} + + case 'L', 'f', 'N': + if bytes.HasSuffix(dst, []byte(".")) || bytes.HasSuffix(dst, []byte(",")) { + switch spec { + default: + dst = append(dst, "000"...) + case 'f': + dst = append(dst, "000000"...) + case 'N': + dst = append(dst, "000000000"...) + } + return nil + } + return formatError{message: "must follow '.' or ','"} + } + } + + if err := parser.parse(fmt); err != nil { + return "", err + } + return string(dst), nil +} + +// UTS35 converts a strftime format specification +// to a Unicode Technical Standard #35 Date Format Pattern. +// +// The following specifiers are not supported by UTS35: +// +// %e %k %l %u %w %C %P %U %W +func UTS35(fmt string) (string, error) { + const quote = '\'' + var quoted bool + dst := buffer(fmt) + + var parser parser + + parser.literal = func(b byte) error { + if b == quote { + dst = append(dst, quote, quote) + return nil + } + if !quoted && ('a' <= b && b <= 'z' || 'A' <= b && b <= 'Z') { + dst = append(dst, quote) + quoted = true + } + dst = append(dst, b) + return nil + } + + parser.format = func(spec, flag byte) error { + if quoted { + dst = append(dst, quote) + quoted = false + } + if pattern := uts35Pattern(spec, flag); pattern != "" { + dst = append(dst, pattern...) + return nil + } + return formatError{} + } + + if err := parser.parse(fmt); err != nil { + return "", err + } + if quoted { + dst = append(dst, quote) + } + return string(dst), nil +} + +func buffer(format string) (buf []byte) { + const bufSize = 64 + max := len(format) + 10 + if max < bufSize { + var b [bufSize]byte + buf = b[:0] + } else { + buf = make([]byte, 0, max) + } + return +} + +func year(y int) time.Time { + return time.Date(y, time.January, 1, 0, 0, 0, 0, time.UTC) +} + +func appendWeekNumber(dst []byte, t time.Time, flag byte, sunday bool) []byte { + offset := int(t.Weekday()) + if sunday { + offset = 6 - offset + } else if offset != 0 { + offset = 7 - offset + } + return appendInt2(dst, (t.YearDay()+offset)/7, flag) +} + +func append12Hour(dst []byte, t time.Time, flag byte) []byte { + h := t.Hour() + if h == 0 { + h = 12 + } else if h > 12 { + h -= 12 + } + return appendInt2(dst, h, flag) +} + +func appendInt1(dst []byte, i int) []byte { + return append(dst, byte('0'+i)) +} + +func appendInt2(dst []byte, i int, flag byte) []byte { + if flag == 0 || i >= 10 { + return append(dst, smallsString[i*2:i*2+2]...) + } + if flag == ' ' { + dst = append(dst, flag) + } + return appendInt1(dst, i) +} + +const smallsString = "" + + "00010203040506070809" + + "10111213141516171819" + + "20212223242526272829" + + "30313233343536373839" + + "40414243444546474849" + + "50515253545556575859" + + "60616263646566676869" + + "70717273747576777879" + + "80818283848586878889" + + "90919293949596979899" diff --git a/vendor/github.com/remyoudompheng/bigfft/README b/vendor/github.com/remyoudompheng/bigfft/README index 303c61772..0fcd39d96 100644 --- a/vendor/github.com/remyoudompheng/bigfft/README +++ b/vendor/github.com/remyoudompheng/bigfft/README @@ -1,3 +1,14 @@ +This library is a toy proof-of-concept implementation of the +well-known Schonhage-Strassen method for multiplying integers. +It is not expected to have a real life usecase outside number +theory computations, nor is it expected to be used in any production +system. + +If you are using it in your project, you may want to carefully +examine the actual requirement or problem you are trying to solve. + +# Comparison with the standard library and GMP + Benchmarking math/big vs. bigfft Number size old ns/op new ns/op delta diff --git a/vendor/modernc.org/libc/.gitignore b/vendor/modernc.org/libc/.gitignore new file mode 100644 index 000000000..81db0e063 --- /dev/null +++ b/vendor/modernc.org/libc/.gitignore @@ -0,0 +1,7 @@ +*.gz +*.zip +go.work +go.sum +musl-* +COPYRIGHT-MUSL +.claude/ diff --git a/vendor/modernc.org/libc/AUTHORS b/vendor/modernc.org/libc/AUTHORS index bba82908f..5306d90db 100644 --- a/vendor/modernc.org/libc/AUTHORS +++ b/vendor/modernc.org/libc/AUTHORS @@ -10,8 +10,14 @@ Dan Kortschak Dan Peterson +David Leadbeater +Fabrice Colliot Jan Mercl <0xjnml@gmail.com> Jason DeBettencourt +Jasper Siepkes Koichi Shiraishi Marius Orcsik +Olivier Mengué +Patricio Whittingslow +Scot C Bontrager Steffen Butzer diff --git a/vendor/modernc.org/libc/CLAUDE.md b/vendor/modernc.org/libc/CLAUDE.md new file mode 100644 index 000000000..31436c1d4 --- /dev/null +++ b/vendor/modernc.org/libc/CLAUDE.md @@ -0,0 +1,106 @@ +# CLAUDE.md + +This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository. + +## What this is + +`modernc.org/libc` is a partial reimplementation of C libc in pure Go. It is the **runtime** for C programs translated to Go by the `modernc.org/ccgo` transpiler (notably `modernc.org/sqlite`). It is not a standalone library for general use; its API tracks the needs of ccgo-generated code and may change incompatibly between versions. + +Compatibility note: callers of this package (e.g. `modernc.org/sqlite`) must use the libc version that matches their generated code (see the consumer's `go.mod`). Do not bump the libc version of a downstream consumer in isolation without re-translating its C sources. + +## Architectural split: musl-derived vs hand-written + +This is the most important thing to understand before editing any file. There are two completely separate code paths selected by build constraint: + +1. **musl-derived (linux/amd64, arm64, loong64, ppc64le, s390x, riscv64, 386, arm)** — the libc implementation is generated by transpiling musl-libc's C source to Go via `ccgo/v4`. The canonical build tag is: + ``` + //go:build linux && (amd64 || arm64 || loong64 || ppc64le || s390x || riscv64 || 386 || arm) + ``` + Generated files for this path: `ccgo_linux_*.go` (~4 MB each, the bulk of the musl translation), the per-arch `musl_*.go` files written by older tooling, and on amd64 the assembly stubs in `abi0_linux_amd64.{go,s}` (generated by `qbecc --abi0wrap`). The hand-written glue lives in `libc_musl.go`, `etc_musl.go`, `mem_brk_musl.go`, `mem_musl.go`, `memgrind_musl.go`, `pthread_musl.go`, `syscall_musl.go`, `aliases.go`, `atomic.go`, `atomic{32,64}.go`, `builtin{32,64}.go`, `libc_linux_statfs.go`. + +2. **Hand-written (darwin, freebsd, netbsd, openbsd, illumos, windows, linux/mips64le)** — the libc surface is implemented by hand in Go, with the negated build constraint: + ``` + //go:build !(linux && (amd64 || arm64 || loong64 || ppc64le || s390x || riscv64 || 386 || arm)) + ``` + Main files: `libc.go`, `libc_unix.go`, `libc_unix{1,2,3}.go`, `libc_.go`, `libc__.go`, `libc_windows*.go`, `pthread.go`, `mem.go`, `memgrind.go`, `mem_brk.go`. These ports also pull in an older set of ccgo/v3-generated `musl__.go` files for the platform-independent pieces (strtod, math, network, etc.). + +When you make a change you almost always need to make it in both code paths. Look at the existing build tag of the file you're editing — if it has the long `linux && (amd64 || ...)` form, you're in the musl path, and there's a sibling file with the negated tag that needs the parallel change. + +## Common commands + +Build / sanity check: +- `go build ./...` — current platform only +- `make editor` — fast iteration: compile tests to /dev/null, build generator, lint generated asm +- `make build_all_targets` — full cross-compile sweep across all supported GOOS/GOARCH × build tags (slow; required before submitting per `CONTRIBUTING.md`) +- `make vet` — vet, filtering out known abi0 false positives + +Tests: +- `make short-test` — `go test -short` plus log-grep summary +- `make test` — full test, 24h timeout +- `make xtest` — full test with `-tags=ccgo.dmesg,ccgo.assert` (verbose ccgo debugging) +- `make libc-test` — runs only `TestLibc`, which transpiles and runs the musl libc-test suite under `testdata/nsz.repo.hu/libc-test` +- `make xlibc` — `TestLibc` with debug tags +- `make membrk-test` — full test with `-tags=libc.membrk` (the sbrk-style debug allocator) +- Run one test: `go test -v -run TestStrtod -count=1` +- Filter `TestLibc` subtests: `go test -v -run TestLibc -re ''` (the `-re` flag is defined in `all_musl_test.go`) + +Regenerate musl-derived code: +- `make generate` — downloads the pinned musl tarball if needed, re-translates it via `go run generator.go` into `$DIR` (default `/tmp/libc`), then rebuilds and short-tests. **Only works on linux.** Output files (`ccgo_linux_*.go`, etc.) are committed to the repo and should not be hand-edited. +- `make dev` — same as `generate` but with `GO_GENERATE_DEV=1` and `-tags=ccgo.dmesg,ccgo.assert` for ccgo debugging +- Cross-arch generation: set `GO_GENERATE_GOARCH=arm64` etc. The `builder.json` `autogen` regex lists which arches CI auto-regenerates; recent commits like `pi32 auto generate` are these. +- Pinned musl version: `internal/archive/archive.go` (currently `musl-7ada6dde6f9dc6a2836c3d92c2f762d35fd229e0`). + +## Build tags + +Functional tags (passed via `-tags=`): +- `libc.membrk` — replaces malloc with a fixed-size sbrk-style allocator (1 GiB on 64-bit), `free` becomes a no-op, heap pre-filled with PRNG bytes. Used to surface use-after-free in downstream code. +- `libc.memgrind` — wraps the allocator with an audit table; `MemAuditStart` / `MemAuditReport` detect leaks. Adds overhead. +- `libc.dmesg` — appends a per-pid log to `/tmp/libc.log` of major libc events. +- `libc.strace` — flips `__ccgo_strace` to `true` so every `Xfoo` entry prints a trace line. Heavy. +- `libc.memexpvar` — exposes allocator stats through `expvar`. +- `ccgo.dmesg`, `ccgo.assert` — consumed by ccgo during generation, not at runtime. + +`libc.membrk` and `libc.memgrind` are mutually exclusive (the file build tags enforce it). + +## Symbol naming conventions + +ccgo encodes C identifiers with prefixes; the same scheme is used in hand-written files for consistency: +- `Xfoo` — externally visible C function `foo` (e.g. `Xmalloc`, `Xputchar`) +- `Yfoo` — abi0-wrapped entry to `Xfoo` (linux/amd64 only, in `abi0_linux_amd64.go`) +- `Tfoo_t` — typedef'd C type `foo_t` (e.g. `Tsize_t`, `Tssize_t`) +- `Sfoo` — struct tag `foo`, `Ufoo` — union tag, `Ffield` — struct field +- `X__foo` / `X___foo` — C identifiers starting with `_` get folded; both `__errno_location` and `___errno_location` exist +- Lowercase `xfoo`, `_foo` — internal helpers + +`capi__.go` lists every exported symbol — these are the source-of-truth files ccgo consults when linking against this libc. If you add a new `Xfoo`, add it to the relevant `capi_*.go` files too (the generators do this automatically for the musl path). + +## TLS — thread-local state + +A `*TLS` represents a C "thread". Every `Xfoo` takes one as the first argument. `TLS` is **not safe for concurrent use** — one goroutine per `TLS`. + +- Inside an `Xmain`-style entry point: `Start(main)` creates the main TLS, locks the goroutine to the OS thread, and runs `main`. +- Library callers (e.g. sqlite): call `NewTLS()` per goroutine, `defer tls.Close()`. The first `NewTLS()` is the "main" thread and is *not* OS-thread-locked. +- Pthread support: `Xpthread_create` spawns a goroutine with its own TLS. The musl pthread path (`pthread_musl.go`) and the hand-written path (`pthread.go`) implement this separately. +- `tls_linux_amd64.{go,s}` — assembly stubs that let abi0-translated code reach `tls.Alloc` / `tls.Free` without going through Go calling conventions. + +## Subpackages + +The repo contains a constellation of subpackages under `errno/`, `fcntl/`, `pthread/`, `signal/`, `stdio/`, `stdlib/`, `sys/{types,socket,stat,vfs,random}`, `time/`, `unistd/`, `pwd/`, `grp/`, `netdb/`, `netinet/`, etc. They are thin: mostly typedefs and integer constants for use by ccgo-generated callers. They are not meant to be imported by general Go code. + +`internal/archive` — declares the pinned musl version; `internal/autogen` and `internal/overlay` — supporting files for the generator. + +## What is generated vs hand-written + +Code generated (do not hand-edit; regenerate via `make generate`): +- `ccgo_linux_*.go` — the bulk of the musl translation, one per Linux arch +- `musl__.go` — older ccgo/v3 generation for non-Linux ports and some helpers +- `abi0_linux_amd64.{go,s}` — qbecc-generated abi0 wrappers +- `capi_*.go` — exported-symbol manifests (regenerated by ccgo) + +Anything else (`libc.go`, `libc_musl.go`, `libc_.go`, `libc_unix*.go`, `mem*.go`, `pthread*.go`, `aliases.go`, etc.) is hand-written. + +`generate.go` and `genheaders.go` are old (`//go:build ignore`) ccgo/v3 helpers, kept around but mostly superseded by `generator.go` (ccgo/v4). + +## Debugging artifacts in the tree + +Several large files in the repo root are debug logs / surface dumps (`log`, `log-test`, `log-generate`, `surface.old`, `surface.new`). They are tracked but stale; do not depend on their contents. diff --git a/vendor/modernc.org/libc/CONTRIBUTING.md b/vendor/modernc.org/libc/CONTRIBUTING.md new file mode 100644 index 000000000..984d1879d --- /dev/null +++ b/vendor/modernc.org/libc/CONTRIBUTING.md @@ -0,0 +1,31 @@ +# Contributing to this repository + +Thank you for your interest in contributing! To help keep the project stable across its many targets, please follow these guidelines when submitting a pull request or merge request. + +### Verification + +Before submitting your changes, please ensure that they do not break the build for different architectures or build tags. + +Run the following script in your local environment: + +```bash + $ ./build_all_targets.sh +``` + +Please verify that all targets you can test pass before opening your request. + +### Authors and Contributors + +If you would like yourself and/or your company to be officially recognized in the project: + + * Optionally, please include a change to the AUTHORS and/or CONTRIBUTORS files within your merge request. + +### The Process + + * Fork the repository (or host a public branch if you do not have a gitlab.com account). + * Implement your changes, keeping them as focused as possible. + * Submit your request with a clear description of the problem solved, the dependency improved, etc. + +---- + +We appreciate your help in making the Go ecosystem more robust! diff --git a/vendor/modernc.org/libc/CONTRIBUTORS b/vendor/modernc.org/libc/CONTRIBUTORS index 2bed7daf0..a5f99bbca 100644 --- a/vendor/modernc.org/libc/CONTRIBUTORS +++ b/vendor/modernc.org/libc/CONTRIBUTORS @@ -6,12 +6,22 @@ # # Please keep the list sorted. +Bjørn Wiegell Dan Kortschak Dan Peterson +David Leadbeater +Fabrice Colliot Jaap Aarts Jan Mercl <0xjnml@gmail.com> Jason DeBettencourt +Jasper Siepkes Koichi Shiraishi +Leonardo Taccari Marius Orcsik +Olivier Mengué +Patricio Whittingslow +Roman Khafizianov +Scot C Bontrager Steffen Butzer +W. Michael Petullo ZHU Zijia diff --git a/vendor/modernc.org/libc/GEMINI.md b/vendor/modernc.org/libc/GEMINI.md new file mode 100644 index 000000000..8fe4784c5 --- /dev/null +++ b/vendor/modernc.org/libc/GEMINI.md @@ -0,0 +1,56 @@ +# GEMINI.md + +This file provides guidance for the Gemini AI assistant when working with the `modernc.org/libc` repository. + +## Overview +`modernc.org/libc` is a partial reimplementation of C libc in pure Go. It acts as the runtime for C programs transpiled to Go by the `modernc.org/ccgo` transpiler (used notably by `modernc.org/sqlite`). It is not intended as a general-purpose standalone library. + +**Key Rule:** The API tracks the needs of `ccgo`-generated code. Callers must use the libc version matching their generated code. Do not bump the libc version of downstream consumers without re-translating their C sources. + +## Architecture +The codebase is split into two completely separate code paths, selected by build constraints: + +1. **musl-derived (Linux)** + - Targeted via: `//go:build linux && (amd64 || arm64 || loong64 || ppc64le || s390x || riscv64 || 386 || arm)` + - Generated files: `ccgo_linux_*.go` (~4MB each), per-arch `musl_*.go`, and assembly stubs `abi0_linux_amd64.{go,s}`. **Do not hand-edit generated files**. + - Hand-written glue files: `libc_musl.go`, `etc_musl.go`, `mem_brk_musl.go`, `mem_musl.go`, `memgrind_musl.go`, `pthread_musl.go`, `syscall_musl.go`, `aliases.go`, `atomic.go`, `atomic{32,64}.go`, `builtin{32,64}.go`, `libc_linux_statfs.go`. + +2. **Hand-written (non-Linux / mips64le)** + - Targeted via negated constraints. + - Main files: `libc.go`, `libc_unix.go`, `libc_.go`, `libc_windows*.go`, `pthread.go`, `mem.go`. + - These platforms use handwritten implementations combined with some older `ccgo/v3`-generated `musl__.go` pieces. + +**Important:** When making a change, you usually need to update *both* code paths (the musl path and the hand-written path). + +## Common Commands +- **Build/Lint**: + - `go build ./...` + - `make editor` (fast iteration) + - `make build_all_targets` (full cross-compile, required before submitting) +- **Tests**: + - `make short-test` + - `make test` (full test) + - `make libc-test` (musl libc-test suite) + - `go test -v -run ` +- **Generate** (Linux only): + - `make generate` (downloads musl, translates via `ccgo`, rebuilds, and tests) + +## Build Tags +- `libc.membrk`: Sbrk-style allocator for detecting use-after-free. +- `libc.memgrind`: Allocator audit table for leak detection. +- `libc.dmesg`: Per-pid logging to `/tmp/libc.log`. +- `libc.strace`: Traces C function entries. +- *Note: `libc.membrk` and `libc.memgrind` are mutually exclusive.* + +## Symbol Naming Conventions +- `Xfoo`: Externally visible C function `foo`. +- `Yfoo`: abi0-wrapped entry to `Xfoo` (linux/amd64). +- `Tfoo_t`: Typedef'd C type `foo_t`. +- `Sfoo` / `Ufoo`: Struct / Union tags. +- `Ffield`: Struct field. + +If you add a new `Xfoo` symbol in hand-written files, ensure it is added to the relevant `capi__.go` files. + +## Thread Local State (TLS) +- `*TLS` represents a C "thread". It is passed as the first argument to every `Xfoo` function. +- `TLS` is **not safe for concurrent use**. Use one goroutine per TLS. diff --git a/vendor/modernc.org/libc/HACKING b/vendor/modernc.org/libc/HACKING deleted file mode 100644 index c76a6ce43..000000000 --- a/vendor/modernc.org/libc/HACKING +++ /dev/null @@ -1,3 +0,0 @@ -Install: - - $ go get modernc.org/libc diff --git a/vendor/modernc.org/libc/LICENSE-3RD-PARTY.md b/vendor/modernc.org/libc/LICENSE-3RD-PARTY.md new file mode 100644 index 000000000..04bebedb8 --- /dev/null +++ b/vendor/modernc.org/libc/LICENSE-3RD-PARTY.md @@ -0,0 +1,305 @@ +# Third-Party Software Notices + +This repository contains code and assets acquired from third-party sources. +While the main project is licensed under the BSD-3 License, the components +listed below are subject to their own specific license terms and copyright +notices. + +The following is a list of third-party software included in this repository, +their locations, and their respective licenses. + + +---- + +## Go + +* **URL:** https://github.com/golang/go +---- + +Copyright (c) 2009 The Go Authors. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + + * Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above +copyright notice, this list of conditions and the following disclaimer +in the documentation and/or other materials provided with the +distribution. + * Neither the name of Google Inc. nor the names of its +contributors may be used to endorse or promote products derived from +this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +---- + +## musl libc + +* **URL:** https://musl.libc.org/ + +---- + +musl as a whole is licensed under the following standard MIT license: + +---------------------------------------------------------------------- +Copyright © 2005-2020 Rich Felker, et al. + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +---------------------------------------------------------------------- + +Authors/contributors include: + +A. Wilcox +Ada Worcester +Alex Dowad +Alex Suykov +Alexander Monakov +Andre McCurdy +Andrew Kelley +Anthony G. Basile +Aric Belsito +Arvid Picciani +Bartosz Brachaczek +Benjamin Peterson +Bobby Bingham +Boris Brezillon +Brent Cook +Chris Spiegel +Clément Vasseur +Daniel Micay +Daniel Sabogal +Daurnimator +David Carlier +David Edelsohn +Denys Vlasenko +Dmitry Ivanov +Dmitry V. Levin +Drew DeVault +Emil Renner Berthing +Fangrui Song +Felix Fietkau +Felix Janda +Gianluca Anzolin +Hauke Mehrtens +He X +Hiltjo Posthuma +Isaac Dunham +Jaydeep Patil +Jens Gustedt +Jeremy Huntwork +Jo-Philipp Wich +Joakim Sindholt +John Spencer +Julien Ramseier +Justin Cormack +Kaarle Ritvanen +Khem Raj +Kylie McClain +Leah Neukirchen +Luca Barbato +Luka Perkov +M Farkas-Dyck (Strake) +Mahesh Bodapati +Markus Wichmann +Masanori Ogino +Michael Clark +Michael Forney +Mikhail Kremnyov +Natanael Copa +Nicholas J. Kain +orc +Pascal Cuoq +Patrick Oppenlander +Petr Hosek +Petr Skocik +Pierre Carrier +Reini Urban +Rich Felker +Richard Pennington +Ryan Fairfax +Samuel Holland +Segev Finer +Shiz +sin +Solar Designer +Stefan Kristiansson +Stefan O'Rear +Szabolcs Nagy +Timo Teräs +Trutz Behn +Valentin Ochs +Will Dietz +William Haddon +William Pitcock + +Portions of this software are derived from third-party works licensed +under terms compatible with the above MIT license: + +The TRE regular expression implementation (src/regex/reg* and +src/regex/tre*) is Copyright © 2001-2008 Ville Laurikari and licensed +under a 2-clause BSD license (license text in the source files). The +included version has been heavily modified by Rich Felker in 2012, in +the interests of size, simplicity, and namespace cleanliness. + +Much of the math library code (src/math/* and src/complex/*) is +Copyright © 1993,2004 Sun Microsystems or +Copyright © 2003-2011 David Schultz or +Copyright © 2003-2009 Steven G. Kargl or +Copyright © 2003-2009 Bruce D. Evans or +Copyright © 2008 Stephen L. Moshier or +Copyright © 2017-2018 Arm Limited +and labelled as such in comments in the individual source files. All +have been licensed under extremely permissive terms. + +The ARM memcpy code (src/string/arm/memcpy.S) is Copyright © 2008 +The Android Open Source Project and is licensed under a two-clause BSD +license. It was taken from Bionic libc, used on Android. + +The AArch64 memcpy and memset code (src/string/aarch64/*) are +Copyright © 1999-2019, Arm Limited. + +The implementation of DES for crypt (src/crypt/crypt_des.c) is +Copyright © 1994 David Burren. It is licensed under a BSD license. + +The implementation of blowfish crypt (src/crypt/crypt_blowfish.c) was +originally written by Solar Designer and placed into the public +domain. The code also comes with a fallback permissive license for use +in jurisdictions that may not recognize the public domain. + +The smoothsort implementation (src/stdlib/qsort.c) is Copyright © 2011 +Valentin Ochs and is licensed under an MIT-style license. + +The x86_64 port was written by Nicholas J. Kain and is licensed under +the standard MIT terms. + +The mips and microblaze ports were originally written by Richard +Pennington for use in the ellcc project. The original code was adapted +by Rich Felker for build system and code conventions during upstream +integration. It is licensed under the standard MIT terms. + +The mips64 port was contributed by Imagination Technologies and is +licensed under the standard MIT terms. + +The powerpc port was also originally written by Richard Pennington, +and later supplemented and integrated by John Spencer. It is licensed +under the standard MIT terms. + +All other files which have no copyright comments are original works +produced specifically for use as part of this library, written either +by Rich Felker, the main author of the library, or by one or more +contibutors listed above. Details on authorship of individual files +can be found in the git version control history of the project. The +omission of copyright and license comments in each file is in the +interest of source tree size. + +In addition, permission is hereby granted for all public header files +(include/* and arch/*/bits/*) and crt files intended to be linked into +applications (crt/*, ldso/dlstart.c, and arch/*/crt_arch.h) to omit +the copyright notice and permission notice otherwise required by the +license, and to use these files without any requirement of +attribution. These files include substantial contributions from: + +Bobby Bingham +John Spencer +Nicholas J. Kain +Rich Felker +Richard Pennington +Stefan Kristiansson +Szabolcs Nagy + +all of whom have explicitly granted such permission. + +This file previously contained text expressing a belief that most of +the files covered by the above exception were sufficiently trivial not +to be subject to copyright, resulting in confusion over whether it +negated the permissions granted in the license. In the spirit of +permissive licensing, and of not having licensing issues being an +obstacle to adoption, that text has been removed. + +---- + +## go-netdb + +* **URL:** https://github.com/dominikh/go-netdb + +---- + +Copyright (c) 2012 Dominik Honnef + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +---- + +## NixOS/nixpkgs + +* **URL:** https://github.com/NixOS/nixpkgs + +---- + +Copyright (c) 2003-2025 Eelco Dolstra and the Nixpkgs/NixOS contributors + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/vendor/modernc.org/libc/LICENSE-GO b/vendor/modernc.org/libc/LICENSE-GO deleted file mode 100644 index 6a66aea5e..000000000 --- a/vendor/modernc.org/libc/LICENSE-GO +++ /dev/null @@ -1,27 +0,0 @@ -Copyright (c) 2009 The Go Authors. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are -met: - - * Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer -in the documentation and/or other materials provided with the -distribution. - * Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from -this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/vendor/modernc.org/libc/Makefile b/vendor/modernc.org/libc/Makefile index e9c5b256b..507d4ef95 100644 --- a/vendor/modernc.org/libc/Makefile +++ b/vendor/modernc.org/libc/Makefile @@ -1,191 +1,119 @@ -# Copyright 2019 The Libc Authors. All rights reserved. +# Copyright 2024 The Libc Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. -.PHONY: all bench build_all_targets clean cover cpu editor internalError later mem nuke todo edit devbench \ - darwin_amd64 \ - darwin_arm64 \ - linux_386 \ - linux_amd64 \ - linux_arm \ - linux_arm64 \ - - -grep=--include=*.go --include=*.l --include=*.y --include=*.yy --include=*.qbe --include=*.ssa -ngrep='internalError\|TODOOK' -log=log-$(shell go env GOOS)-$(shell go env GOARCH) - -all: - date - go version 2>&1 | tee $(log) - go generate - gofmt -l -s -w *.go - go install -v ./... - go test - go test 2>&1 -timeout 1h | tee -a $(log) - # go vet -unsafeptr=false 2>&1 | grep -v $(ngrep) || true - # golint 2>&1 | grep -v $(ngrep) || true - # make todo - # misspell *.go - # staticcheck || true - grep -n 'FAIL\|PASS' $(log) - go version - date 2>&1 | tee -a $(log) - -build_all_targets: - ./build_all_targets.sh - echo done +.PHONY: all build_all_targets check clean download edit editor generate dev membrk-test test work xtest short-test xlibc libc-test surface vet -darwin_amd64: - @echo "Should be executed only on darwin/amd64." - go generate 2>&1 | tee log-generate - go build -v ./... - -darwin_arm64: - @echo "Should be executed only on darwin/arm64." - go generate 2>&1 | tee log-generate - go build -v ./... - -# only on freebsd/amd64 -freebsd_amd64: - @echo "Should be executed only on freebsd/amd64." - go generate 2>&1 | tee log-generate - go build -v ./... - -# only on freebsd/386 -freebsd_386: - @echo "Should be executed only on freebsd/386." - go generate 2>&1 | tee log-generate - go build -v ./... - -# only on freebsd/arm -freebsd_arm: - @echo "Should be executed only on freebsd/arm." - go generate 2>&1 | tee log-generate - go build -v ./... - -freebsd_arm64: - go run addport.go freebsd_amd64 freebsd_arm64 - go build -v ./... - -# only on netbsd/amd64 -netbsd_amd64: - @echo "Should be executed only on netbsd/amd64." - go generate 2>&1 | tee log-generate - go build -v ./... - -# only on netbsd/arm -netbsd_arm: - @echo "Should be executed only on netbsd/arm." - go generate 2>&1 | tee log-generate - go build -v ./... - -linux_amd64: - @echo "Should be executed only on linux/amd64." - go generate 2>&1 | tee log-generate - go build -v ./... - -linux_386: - CCGO_CPP=i686-linux-gnu-cpp TARGET_GOOS=linux TARGET_GOARCH=386 go generate - GOOS=linux GOARCH=386 go build -v ./... - -linux_arm: - CCGO_CPP=arm-linux-gnueabi-cpp TARGET_GOOS=linux TARGET_GOARCH=arm go generate - GOOS=linux GOARCH=arm go build -v ./... - -linux_arm64: - CCGO_CPP=aarch64-linux-gnu-cpp TARGET_GOOS=linux TARGET_GOARCH=arm64 go generate - GOOS=linux GOARCH=arm64 go build -v ./... - -linux_s390x: - CCGO_CPP=s390x-linux-gnu-cpp TARGET_GOOS=linux TARGET_GOARCH=s390x go generate - GOOS=linux GOARCH=s390x go build -v ./... - -linux_ppc64le: - CCGO_CPP=powerpc64le-linux-gnu-cpp TARGET_GOOS=linux TARGET_GOARCH=ppc64le go generate - GOOS=linux GOARCH=ppc64le go build -v ./... - -# only on openbsd/amd64 -openbsd_amd64: - @echo "Should be executed only on openbsd/amd64." - go generate 2>&1 | tee log-generate - go build -v ./... - # -# only on openbsd/386 -openbsd_386: - @echo "Should be executed only on openbsd/386." - go generate 2>&1 | tee log-generate - go build -v ./... - -# only on openbsd/arm64 -openbsd_arm64: - @echo "Should be executed only on openbsd/arm64." - go generate 2>&1 | tee log-generate - go build -v ./... - -windows_amd64: - @echo "Should be executed only on windows/amd64." - go generate 2>&1 | tee log-generate - go build -v ./... - -windows_arm64: - @echo "Should be executed only on windows/arm64." - go generate 2>&1 | tee log-generate - go build -v ./... - -windows_386: - @echo "Should be executed only on linux/amd64." - CCGO_CPP=i686-w64-mingw32-cpp TARGET_GOOS=windows TARGET_GOARCH=386 go generate - GOOS=windows GOARCH=386 go build -v ./... - -all_targets: linux_amd64 linux_386 linux_arm linux_arm64 linux_s390x # windows_amd64 windows_386 - echo done +SHELL=/bin/bash -o pipefail -devbench: - date 2>&1 | tee log-devbench - go test -timeout 24h -dev -run @ -bench . 2>&1 | tee -a log-devbench - grep -n 'FAIL\|SKIP' log-devbench || true +DIR = /tmp/libc +TAR = musl-7ada6dde6f9dc6a2836c3d92c2f762d35fd229e0.tar.gz +URL = https://git.musl-libc.org/cgit/musl/snapshot/$(TAR) -bench: - date 2>&1 | tee log-bench - go test -timeout 24h -v -run '^[^E]' -bench . 2>&1 | tee -a log-bench - grep -n 'FAIL\|SKIP' log-bench || true +all: editor + golint 2>&1 + staticcheck 2>&1 + +build_all_targets: vet + ./build_all_targets.sh + echo done clean: + rm -f log-* cpu.test mem.test *.out + git clean -fd + find testdata/nsz.repo.hu/ -name \*.go -delete + make -C testdata/nsz.repo.hu/libc-test/ cleanall go clean - rm -f *~ *.test *.out -cover: - t=$(shell mktemp) ; go test -coverprofile $$t && go tool cover -html $$t && unlink $$t +check: + staticcheck 2>&1 | grep -v U1000 -cpu: clean - go test -run @ -bench . -cpuprofile cpu.out - go tool pprof -lines *.test cpu.out +download: + @if [ ! -f $(TAR) ]; then wget $(URL) ; fi edit: - @touch log - @if [ -f "Session.vim" ]; then gvim -S & else gvim -p Makefile *.go & fi + @if [ -f "Session.vim" ]; then gvim -S & else gvim -p Makefile go.mod builder.json & fi editor: - go generate 2>&1 | tee log - gofmt -l -s -w *.go - go test -short 2>&1 | tee -a log - go install -v ./... - -later: - @grep -n $(grep) LATER * || true - @grep -n $(grep) MAYBE * || true - -mem: clean - go test -v -run ParserCS -memprofile mem.out -timeout 24h - go tool pprof -lines -web -alloc_space *.test mem.out - -nuke: clean - go clean -i - -todo: - @grep -nr $(grep) ^[[:space:]]*_[[:space:]]*=[[:space:]][[:alpha:]][[:alnum:]]* * | grep -v $(ngrep) || true - @grep -nr $(grep) 'TODO\|panic' * | grep -v $(ngrep) || true - @grep -nr $(grep) BUG * | grep -v $(ngrep) || true - @grep -nr $(grep) [^[:alpha:]]println * | grep -v $(ngrep) || true - @grep -nir $(grep) 'work.*progress' || true + # gofmt -l -s -w *.go + go test -c -o /dev/null + go build -o /dev/null -v generator*.go + go vet 2>&1 | grep -n 'asm_' || true + +generate: download + mkdir -p $(DIR) || true + rm -rf $(DIR)/* + GO_GENERATE_DIR=$(DIR) go run generator*.go + go build -v + go test -v -short -count=1 ./... + git status + +dev: download + mkdir -p $(DIR) || true + rm -rf $(DIR)/* + echo -n > /tmp/ccgo.log + GO_GENERATE_DIR=$(DIR) GO_GENERATE_DEV=1 go run -tags=ccgo.dmesg,ccgo.assert generator*.go + go build -v + go test -v -short -count=1 ./... + git status + +membrk-test: + echo -n > /tmp/ccgo.log + touch log-test + cp log-test log-test0 + go test -v -timeout 24h -count=1 -tags=libc.membrk 2>&1 | tee log-test + grep -a 'TRC\|TODO\|ERRORF\|FAIL' log-test || true 2>&1 | tee -a log-test + +test: + go test -v -timeout 24h -count=1 + +short-test: + echo -n > /tmp/ccgo.log + touch log-test + cp log-test log-test0 + go test -v -timeout 24h -count=1 -short 2>&1 | tee log-test + grep -a 'TRC\|TODO\|ERRORF\|FAIL' log-test || true 2>&1 | tee -a log-test + +xlibc: + echo -n > /tmp/ccgo.log + touch log-test + cp log-test log-test0 + go test -v -timeout 24h -count=1 -tags=ccgo.dmesg,ccgo.assert 2>&1 -run TestLibc | tee log-test + grep -a 'TRC\|TODO\|ERRORF\|FAIL' log-test || true 2>&1 | tee -a log-test + +xpthread: + echo -n > /tmp/ccgo.log + touch log-test + cp log-test log-test0 + go test -v -timeout 24h -count=1 2>&1 -run TestLibc -re pthread | tee log-test + grep -a 'TRC\|TODO\|ERRORF\|FAIL' log-test || true 2>&1 | tee -a log-test + +libc-test: + echo -n > /tmp/ccgo.log + touch log-test + cp log-test log-test0 + go test -v -timeout 24h -count=1 2>&1 -run TestLibc | tee log-test + # grep -a 'TRC\|TODO\|ERRORF\|FAIL' log-test || true 2>&1 | tee -a log-test + grep -o 'undefined: \<.*\>' log-test | sort -u + +xtest: + echo -n > /tmp/ccgo.log + touch log-test + cp log-test log-test0 + go test -v -timeout 24h -count=1 -tags=ccgo.dmesg,ccgo.assert 2>&1 | tee log-test + grep -a 'TRC\|TODO\|ERRORF\|FAIL' log-test || true 2>&1 | tee -a log-test + +work: + rm -f go.work* + go work init + go work use . + go work use ../ccgo/v4 + go work use ../ccgo/v3 + go work use ../cc/v4 + +surface: + surface > surface.new + surface surface.old surface.new > log-todo-surface || true + +vet: + go vet 2>&1 | grep abi0 | grep -v 'misuse' || true diff --git a/vendor/modernc.org/libc/README.md b/vendor/modernc.org/libc/README.md index f2e9f3189..9908cb46a 100644 --- a/vendor/modernc.org/libc/README.md +++ b/vendor/modernc.org/libc/README.md @@ -1,20 +1,9 @@ # libc -Package libc provides C-runtime services. Work in progress. +[![LiberaPay](https://liberapay.com/assets/widgets/donate.svg)](https://liberapay.com/jnml/donate) +[![receives](https://img.shields.io/liberapay/receives/jnml.svg?logo=liberapay)](https://liberapay.com/jnml/donate) +[![patrons](https://img.shields.io/liberapay/patrons/jnml.svg?logo=liberapay)](https://liberapay.com/jnml/donate) -This package is a continuation of the Crt package in modernc.org/crt/v3. +[![Go Reference](https://pkg.go.dev/badge/modernc.org/libc.svg)](https://pkg.go.dev/modernc.org/libc) -Installation - - $ go get [-u] modernc.org/libc - -Documentation: [godoc.org/modernc.org/libc](http://godoc.org/modernc.org/libc) - -Building with `make` requires the following Go packages - -* github.com/golang/lint/golint -* github.com/mdempsky/maligned -* github.com/mdempsky/unconvert -* honnef.co/go/tools/cmd/unused -* honnef.co/go/tools/cmd/gosimple -* github.com/client9/misspell/cmd/misspell +Package libc is a partial reimplementation of C libc in pure Go. diff --git a/vendor/modernc.org/libc/abi0_linux_amd64.go b/vendor/modernc.org/libc/abi0_linux_amd64.go new file mode 100644 index 000000000..e8a26f11d --- /dev/null +++ b/vendor/modernc.org/libc/abi0_linux_amd64.go @@ -0,0 +1,5765 @@ +// Code generated for linux/amd64 by 'qbecc --abi0wrap .', DO NOT EDIT. + +package libc + +import "unsafe" + +var _ unsafe.Pointer + +//go:noescape +func Y_Exit(tls *TLS, ec int32) + +//go:noescape +func Y_IO_feof_unlocked(tls *TLS, f uintptr) (r int32) + +//go:noescape +func Y_IO_ferror_unlocked(tls *TLS, f uintptr) (r int32) + +//go:noescape +func Y_IO_getc(tls *TLS, f1 uintptr) (r int32) + +//go:noescape +func Y_IO_getc_unlocked(tls *TLS, f uintptr) (r int32) + +//go:noescape +func Y_IO_putc(tls *TLS, c1 int32, f1 uintptr) (r int32) + +//go:noescape +func Y_IO_putc_unlocked(tls *TLS, c int32, f uintptr) (r int32) + +//go:noescape +func Y___errno_location(tls *TLS) (r uintptr) + +//go:noescape +func Y__aio_close(tls *TLS, fd int32) (_2 int32) + +//go:noescape +func Y__asctime_r(tls *TLS, tm uintptr, buf uintptr) (r uintptr) + +//go:noescape +func Y__assert_fail(tls *TLS, expr uintptr, file uintptr, line int32, func1 uintptr) + +//go:noescape +func Y__atomic_compare_exchangeInt16(t *TLS, ptr, expected, desired uintptr, weak, success, failure int32) (_3 int32) + +//go:noescape +func Y__atomic_compare_exchangeInt32(t *TLS, ptr, expected, desired uintptr, weak, success, failure int32) (_3 int32) + +//go:noescape +func Y__atomic_compare_exchangeInt64(t *TLS, ptr, expected, desired uintptr, weak, success, failure int32) (_3 int32) + +//go:noescape +func Y__atomic_compare_exchangeInt8(t *TLS, ptr, expected, desired uintptr, weak, success, failure int32) (_3 int32) + +//go:noescape +func Y__atomic_compare_exchangeUint16(t *TLS, ptr, expected, desired uintptr, weak, success, failure int32) (_3 int32) + +//go:noescape +func Y__atomic_compare_exchangeUint32(t *TLS, ptr, expected, desired uintptr, weak, success, failure int32) (_3 int32) + +//go:noescape +func Y__atomic_compare_exchangeUint64(t *TLS, ptr, expected, desired uintptr, weak, success, failure int32) (_3 int32) + +//go:noescape +func Y__atomic_compare_exchangeUint8(t *TLS, ptr, expected, desired uintptr, weak, success, failure int32) (_3 int32) + +//go:noescape +func Y__atomic_exchangeInt16(t *TLS, ptr, val, ret uintptr, _ int32) + +//go:noescape +func Y__atomic_exchangeInt32(t *TLS, ptr, val, ret uintptr, _ int32) + +//go:noescape +func Y__atomic_exchangeInt64(t *TLS, ptr, val, ret uintptr, _ int32) + +//go:noescape +func Y__atomic_exchangeInt8(t *TLS, ptr, val, ret uintptr, _ int32) + +//go:noescape +func Y__atomic_exchangeUint16(t *TLS, ptr, val, ret uintptr, _ int32) + +//go:noescape +func Y__atomic_exchangeUint32(t *TLS, ptr, val, ret uintptr, _ int32) + +//go:noescape +func Y__atomic_exchangeUint64(t *TLS, ptr, val, ret uintptr, _ int32) + +//go:noescape +func Y__atomic_exchangeUint8(t *TLS, ptr, val, ret uintptr, _ int32) + +//go:noescape +func Y__atomic_fetch_addInt16(t *TLS, ptr uintptr, val int16, _ int32) (r int16) + +//go:noescape +func Y__atomic_fetch_addInt32(t *TLS, ptr uintptr, val int32, _ int32) (r int32) + +//go:noescape +func Y__atomic_fetch_addInt64(t *TLS, ptr uintptr, val int64, _ int32) (r int64) + +//go:noescape +func Y__atomic_fetch_addInt8(t *TLS, ptr uintptr, val int8, _ int32) (r int8) + +//go:noescape +func Y__atomic_fetch_addUint16(t *TLS, ptr uintptr, val uint16, _ int32) (r uint16) + +//go:noescape +func Y__atomic_fetch_addUint32(t *TLS, ptr uintptr, val uint32, _ int32) (r uint32) + +//go:noescape +func Y__atomic_fetch_addUint64(t *TLS, ptr uintptr, val uint64, _ int32) (r uint64) + +//go:noescape +func Y__atomic_fetch_addUint8(t *TLS, ptr uintptr, val uint8, _ int32) (r uint8) + +//go:noescape +func Y__atomic_fetch_andInt16(t *TLS, ptr uintptr, val int16, _ int32) (r int16) + +//go:noescape +func Y__atomic_fetch_andInt32(t *TLS, ptr uintptr, val int32, _ int32) (r int32) + +//go:noescape +func Y__atomic_fetch_andInt64(t *TLS, ptr uintptr, val int64, _ int32) (r int64) + +//go:noescape +func Y__atomic_fetch_andInt8(t *TLS, ptr uintptr, val int8, _ int32) (r int8) + +//go:noescape +func Y__atomic_fetch_andUint16(t *TLS, ptr uintptr, val uint16, _ int32) (r uint16) + +//go:noescape +func Y__atomic_fetch_andUint32(t *TLS, ptr uintptr, val uint32, _ int32) (r uint32) + +//go:noescape +func Y__atomic_fetch_andUint64(t *TLS, ptr uintptr, val uint64, _ int32) (r uint64) + +//go:noescape +func Y__atomic_fetch_andUint8(t *TLS, ptr uintptr, val uint8, _ int32) (r uint8) + +//go:noescape +func Y__atomic_fetch_orInt16(t *TLS, ptr uintptr, val int16, _ int32) (r int16) + +//go:noescape +func Y__atomic_fetch_orInt32(t *TLS, ptr uintptr, val int32, _ int32) (r int32) + +//go:noescape +func Y__atomic_fetch_orInt64(t *TLS, ptr uintptr, val int64, _ int32) (r int64) + +//go:noescape +func Y__atomic_fetch_orInt8(t *TLS, ptr uintptr, val int8, _ int32) (r int8) + +//go:noescape +func Y__atomic_fetch_orUint16(t *TLS, ptr uintptr, val uint16, _ int32) (r uint16) + +//go:noescape +func Y__atomic_fetch_orUint32(t *TLS, ptr uintptr, val uint32, _ int32) (r uint32) + +//go:noescape +func Y__atomic_fetch_orUint64(t *TLS, ptr uintptr, val uint64, _ int32) (r uint64) + +//go:noescape +func Y__atomic_fetch_orUint8(t *TLS, ptr uintptr, val uint8, _ int32) (r uint8) + +//go:noescape +func Y__atomic_fetch_subInt16(t *TLS, ptr uintptr, val int16, _ int32) (r int16) + +//go:noescape +func Y__atomic_fetch_subInt32(t *TLS, ptr uintptr, val int32, _ int32) (r int32) + +//go:noescape +func Y__atomic_fetch_subInt64(t *TLS, ptr uintptr, val int64, _ int32) (r int64) + +//go:noescape +func Y__atomic_fetch_subInt8(t *TLS, ptr uintptr, val int8, _ int32) (r int8) + +//go:noescape +func Y__atomic_fetch_subUint16(t *TLS, ptr uintptr, val uint16, _ int32) (r uint16) + +//go:noescape +func Y__atomic_fetch_subUint32(t *TLS, ptr uintptr, val uint32, _ int32) (r uint32) + +//go:noescape +func Y__atomic_fetch_subUint64(t *TLS, ptr uintptr, val uint64, _ int32) (r uint64) + +//go:noescape +func Y__atomic_fetch_subUint8(t *TLS, ptr uintptr, val uint8, _ int32) (r uint8) + +//go:noescape +func Y__atomic_fetch_xorInt16(t *TLS, ptr uintptr, val int16, _ int32) (r int16) + +//go:noescape +func Y__atomic_fetch_xorInt32(t *TLS, ptr uintptr, val int32, _ int32) (r int32) + +//go:noescape +func Y__atomic_fetch_xorInt64(t *TLS, ptr uintptr, val int64, _ int32) (r int64) + +//go:noescape +func Y__atomic_fetch_xorInt8(t *TLS, ptr uintptr, val int8, _ int32) (r int8) + +//go:noescape +func Y__atomic_fetch_xorUint16(t *TLS, ptr uintptr, val uint16, _ int32) (r uint16) + +//go:noescape +func Y__atomic_fetch_xorUint32(t *TLS, ptr uintptr, val uint32, _ int32) (r uint32) + +//go:noescape +func Y__atomic_fetch_xorUint64(t *TLS, ptr uintptr, val uint64, _ int32) (r uint64) + +//go:noescape +func Y__atomic_fetch_xorUint8(t *TLS, ptr uintptr, val uint8, _ int32) (r uint8) + +//go:noescape +func Y__atomic_loadInt16(t *TLS, ptr, ret uintptr, memorder int32) + +//go:noescape +func Y__atomic_loadInt32(t *TLS, ptr, ret uintptr, memorder int32) + +//go:noescape +func Y__atomic_loadInt64(t *TLS, ptr, ret uintptr, memorder int32) + +//go:noescape +func Y__atomic_loadInt8(t *TLS, ptr, ret uintptr, memorder int32) + +//go:noescape +func Y__atomic_loadUint16(t *TLS, ptr, ret uintptr, memorder int32) + +//go:noescape +func Y__atomic_loadUint32(t *TLS, ptr, ret uintptr, memorder int32) + +//go:noescape +func Y__atomic_loadUint64(t *TLS, ptr, ret uintptr, memorder int32) + +//go:noescape +func Y__atomic_loadUint8(t *TLS, ptr, ret uintptr, memorder int32) + +//go:noescape +func Y__atomic_storeInt16(t *TLS, ptr, val uintptr, memorder int32) + +//go:noescape +func Y__atomic_storeInt32(t *TLS, ptr, val uintptr, memorder int32) + +//go:noescape +func Y__atomic_storeInt64(t *TLS, ptr, val uintptr, memorder int32) + +//go:noescape +func Y__atomic_storeInt8(t *TLS, ptr, val uintptr, memorder int32) + +//go:noescape +func Y__atomic_storeUint16(t *TLS, ptr, val uintptr, memorder int32) + +//go:noescape +func Y__atomic_storeUint32(t *TLS, ptr, val uintptr, memorder int32) + +//go:noescape +func Y__atomic_storeUint64(t *TLS, ptr, val uintptr, memorder int32) + +//go:noescape +func Y__atomic_storeUint8(t *TLS, ptr, val uintptr, memorder int32) + +//go:noescape +func Y__block_all_sigs(tls *TLS, set uintptr) + +//go:noescape +func Y__block_app_sigs(tls *TLS, set uintptr) + +//go:noescape +func Y__builtin___memcpy_chk(t *TLS, dest, src uintptr, n, os Tsize_t) (r uintptr) + +//go:noescape +func Y__builtin___memmove_chk(t *TLS, dest, src uintptr, n, os Tsize_t) (_3 uintptr) + +//go:noescape +func Y__builtin___memset_chk(t *TLS, s uintptr, c int32, n, os Tsize_t) (_4 uintptr) + +//go:noescape +func Y__builtin___snprintf_chk(t *TLS, str uintptr, maxlen Tsize_t, flag int32, os Tsize_t, format, args uintptr) (r int32) + +//go:noescape +func Y__builtin___sprintf_chk(t *TLS, s uintptr, flag int32, os Tsize_t, format, args uintptr) (r int32) + +//go:noescape +func Y__builtin___strcat_chk(t *TLS, dest, src uintptr, os Tsize_t) (r uintptr) + +//go:noescape +func Y__builtin___strcpy_chk(t *TLS, dest, src uintptr, os Tsize_t) (_3 uintptr) + +//go:noescape +func Y__builtin___strncpy_chk(t *TLS, dest, src uintptr, n, os Tsize_t) (r uintptr) + +//go:noescape +func Y__builtin___vsnprintf_chk(t *TLS, str uintptr, maxlen Tsize_t, flag int32, os Tsize_t, format, args uintptr) (r int32) + +//go:noescape +func Y__builtin_abort(t *TLS) + +//go:noescape +func Y__builtin_abs(t *TLS, j int32) (_2 int32) + +//go:noescape +func Y__builtin_add_overflowInt64(t *TLS, a, b int64, res uintptr) (_3 int32) + +//go:noescape +func Y__builtin_add_overflowUint32(t *TLS, a, b uint32, res uintptr) (_3 int32) + +//go:noescape +func Y__builtin_add_overflowUint64(t *TLS, a, b uint64, res uintptr) (_3 int32) + +//go:noescape +func Y__builtin_alloca(tls *TLS, size Tsize_t) (_2 uintptr) + +//go:noescape +func Y__builtin_bswap16(t *TLS, x uint16) (_2 uint16) + +//go:noescape +func Y__builtin_bswap32(t *TLS, x uint32) (_2 uint32) + +//go:noescape +func Y__builtin_bswap64(t *TLS, x uint64) (_2 uint64) + +//go:noescape +func Y__builtin_bzero(t *TLS, s uintptr, n Tsize_t) + +//go:noescape +func Y__builtin_clz(t *TLS, n uint32) (_2 int32) + +//go:noescape +func Y__builtin_clzl(t *TLS, n ulong) (_2 int32) + +//go:noescape +func Y__builtin_clzll(t *TLS, n uint64) (_2 int32) + +//go:noescape +func Y__builtin_copysign(t *TLS, x, y float64) (_2 float64) + +//go:noescape +func Y__builtin_copysignf(t *TLS, x, y float32) (_2 float32) + +//go:noescape +func Y__builtin_copysignl(t *TLS, x, y float64) (_2 float64) + +//go:noescape +func Y__builtin_ctz(t *TLS, n uint32) (_2 int32) + +//go:noescape +func Y__builtin_ctzl(tls *TLS, x ulong) (_2 int32) + +//go:noescape +func Y__builtin_exit(t *TLS, status int32) + +//go:noescape +func Y__builtin_expect(t *TLS, exp, c long) (_2 long) + +//go:noescape +func Y__builtin_fabs(t *TLS, x float64) (_2 float64) + +//go:noescape +func Y__builtin_fabsf(t *TLS, x float32) (_2 float32) + +//go:noescape +func Y__builtin_fabsl(t *TLS, x float64) (_2 float64) + +//go:noescape +func Y__builtin_ffs(tls *TLS, i int32) (r int32) + +//go:noescape +func Y__builtin_fma(tls *TLS, x, y, z float64) (r float64) + +//go:noescape +func Y__builtin_fmax(tls *TLS, x float64, y float64) (r float64) + +//go:noescape +func Y__builtin_fmin(tls *TLS, x float64, y float64) (r float64) + +//go:noescape +func Y__builtin_free(t *TLS, ptr uintptr) + +//go:noescape +func Y__builtin_getentropy(t *TLS, buf uintptr, n Tsize_t) (_3 int32) + +//go:noescape +func Y__builtin_huge_val(t *TLS) (_1 float64) + +//go:noescape +func Y__builtin_huge_valf(t *TLS) (_1 float32) + +//go:noescape +func Y__builtin_hypot(tls *TLS, x float64, y float64) (r float64) + +//go:noescape +func Y__builtin_inf(t *TLS) (_1 float64) + +//go:noescape +func Y__builtin_inff(tls *TLS) (_1 float32) + +//go:noescape +func Y__builtin_infl(t *TLS) (_1 float64) + +//go:noescape +func Y__builtin_isblank(tls *TLS, c int32) (r int32) + +//go:noescape +func Y__builtin_isnan(t *TLS, x float64) (_2 int32) + +//go:noescape +func Y__builtin_isnanf(t *TLS, x float32) (_2 int32) + +//go:noescape +func Y__builtin_isnanl(t *TLS, x float64) (_2 int32) + +//go:noescape +func Y__builtin_isprint(tls *TLS, c int32) (r int32) + +//go:noescape +func Y__builtin_isunordered(t *TLS, a, b float64) (_2 int32) + +//go:noescape +func Y__builtin_llabs(tls *TLS, a int64) (_2 int64) + +//go:noescape +func Y__builtin_log2(t *TLS, x float64) (_2 float64) + +//go:noescape +func Y__builtin_lrint(tls *TLS, x float64) (r long) + +//go:noescape +func Y__builtin_lrintf(tls *TLS, x float32) (r long) + +//go:noescape +func Y__builtin_lround(tls *TLS, x float64) (r long) + +//go:noescape +func Y__builtin_malloc(t *TLS, size Tsize_t) (_2 uintptr) + +//go:noescape +func Y__builtin_memcmp(t *TLS, s1, s2 uintptr, n Tsize_t) (_3 int32) + +//go:noescape +func Y__builtin_memcpy(t *TLS, dest, src uintptr, n Tsize_t) (r uintptr) + +//go:noescape +func Y__builtin_memset(t *TLS, s uintptr, c int32, n Tsize_t) (_4 uintptr) + +//go:noescape +func Y__builtin_mmap(t *TLS, addr uintptr, length Tsize_t, prot, flags, fd int32, offset Toff_t) (_5 uintptr) + +//go:noescape +func Y__builtin_mul_overflowInt64(t *TLS, a, b int64, res uintptr) (_3 int32) + +//go:noescape +func Y__builtin_mul_overflowUint128(t *TLS, a, b Uint128, res uintptr) (_3 int32) + +//go:noescape +func Y__builtin_mul_overflowUint64(t *TLS, a, b uint64, res uintptr) (_3 int32) + +//go:noescape +func Y__builtin_nan(t *TLS, s uintptr) (_2 float64) + +//go:noescape +func Y__builtin_nanf(tls *TLS, s uintptr) (_2 float32) + +//go:noescape +func Y__builtin_nanl(t *TLS, s uintptr) (_2 float64) + +//go:noescape +func Y__builtin_object_size(t *TLS, p uintptr, typ int32) (_3 Tsize_t) + +//go:noescape +func Y__builtin_popcount(t *TLS, x uint32) (_2 int32) + +//go:noescape +func Y__builtin_popcountl(t *TLS, x ulong) (_2 int32) + +//go:noescape +func Y__builtin_popcountll(t *TLS, x uint64) (_2 int32) + +//go:noescape +func Y__builtin_prefetch(t *TLS, addr, args uintptr) + +//go:noescape +func Y__builtin_printf(tls *TLS, fmt uintptr, va uintptr) (r int32) + +//go:noescape +func Y__builtin_rintf(tls *TLS, x float32) (r float32) + +//go:noescape +func Y__builtin_round(tls *TLS, x float64) (r float64) + +//go:noescape +func Y__builtin_roundf(tls *TLS, x float32) (r float32) + +//go:noescape +func Y__builtin_snprintf(t *TLS, str uintptr, size Tsize_t, format, args uintptr) (_4 int32) + +//go:noescape +func Y__builtin_sprintf(t *TLS, str, format, args uintptr) (r int32) + +//go:noescape +func Y__builtin_strchr(t *TLS, s uintptr, c int32) (_3 uintptr) + +//go:noescape +func Y__builtin_strcmp(t *TLS, s1, s2 uintptr) (_2 int32) + +//go:noescape +func Y__builtin_strcpy(t *TLS, dest, src uintptr) (_2 uintptr) + +//go:noescape +func Y__builtin_strlen(t *TLS, s uintptr) (_2 Tsize_t) + +//go:noescape +func Y__builtin_sub_overflowInt64(t *TLS, a, b int64, res uintptr) (_3 int32) + +//go:noescape +func Y__builtin_trap(t *TLS) + +//go:noescape +func Y__builtin_trunc(tls *TLS, x float64) (r float64) + +//go:noescape +func Y__builtin_unreachable(t *TLS) + +//go:noescape +func Y__builtin_vsnprintf(t *TLS, str uintptr, size Tsize_t, format, va uintptr) (_4 int32) + +//go:noescape +func Y__c11_atomic_compare_exchange_strongInt16(t *TLS, ptr, expected uintptr, desired int16, success, failure int32) (_4 int32) + +//go:noescape +func Y__c11_atomic_compare_exchange_strongInt32(t *TLS, ptr, expected uintptr, desired, success, failure int32) (_3 int32) + +//go:noescape +func Y__c11_atomic_compare_exchange_strongInt64(t *TLS, ptr, expected uintptr, desired int64, success, failure int32) (_4 int32) + +//go:noescape +func Y__c11_atomic_compare_exchange_strongInt8(t *TLS, ptr, expected uintptr, desired int8, success, failure int32) (_4 int32) + +//go:noescape +func Y__c11_atomic_compare_exchange_strongUint16(t *TLS, ptr, expected uintptr, desired uint16, success, failure int32) (_4 int32) + +//go:noescape +func Y__c11_atomic_compare_exchange_strongUint32(t *TLS, ptr, expected uintptr, desired uint32, success, failure int32) (_4 int32) + +//go:noescape +func Y__c11_atomic_compare_exchange_strongUint64(t *TLS, ptr, expected uintptr, desired uint64, success, failure int32) (_4 int32) + +//go:noescape +func Y__c11_atomic_compare_exchange_strongUint8(t *TLS, ptr, expected uintptr, desired uint8, success, failure int32) (_4 int32) + +//go:noescape +func Y__c11_atomic_exchangeInt16(t *TLS, ptr uintptr, val int16, _ int32) (r int16) + +//go:noescape +func Y__c11_atomic_exchangeInt32(t *TLS, ptr uintptr, val int32, _ int32) (r int32) + +//go:noescape +func Y__c11_atomic_exchangeInt64(t *TLS, ptr uintptr, val int64, _ int32) (r int64) + +//go:noescape +func Y__c11_atomic_exchangeInt8(t *TLS, ptr uintptr, val int8, _ int32) (r int8) + +//go:noescape +func Y__c11_atomic_exchangeUint16(t *TLS, ptr uintptr, val uint16, _ int32) (r uint16) + +//go:noescape +func Y__c11_atomic_exchangeUint32(t *TLS, ptr uintptr, val uint32, _ int32) (r uint32) + +//go:noescape +func Y__c11_atomic_exchangeUint64(t *TLS, ptr uintptr, val uint64, _ int32) (r uint64) + +//go:noescape +func Y__c11_atomic_exchangeUint8(t *TLS, ptr uintptr, val uint8, _ int32) (r uint8) + +//go:noescape +func Y__c11_atomic_fetch_addInt16(t *TLS, ptr uintptr, val int16, _ int32) (r int16) + +//go:noescape +func Y__c11_atomic_fetch_addInt32(t *TLS, ptr uintptr, val int32, _ int32) (r int32) + +//go:noescape +func Y__c11_atomic_fetch_addInt64(t *TLS, ptr uintptr, val int64, _ int32) (r int64) + +//go:noescape +func Y__c11_atomic_fetch_addInt8(t *TLS, ptr uintptr, val int8, _ int32) (r int8) + +//go:noescape +func Y__c11_atomic_fetch_addUint16(t *TLS, ptr uintptr, val uint16, _ int32) (r uint16) + +//go:noescape +func Y__c11_atomic_fetch_addUint32(t *TLS, ptr uintptr, val uint32, _ int32) (r uint32) + +//go:noescape +func Y__c11_atomic_fetch_addUint64(t *TLS, ptr uintptr, val uint64, _ int32) (r uint64) + +//go:noescape +func Y__c11_atomic_fetch_addUint8(t *TLS, ptr uintptr, val uint8, _ int32) (r uint8) + +//go:noescape +func Y__c11_atomic_fetch_andInt16(t *TLS, ptr uintptr, val int16, _ int32) (r int16) + +//go:noescape +func Y__c11_atomic_fetch_andInt32(t *TLS, ptr uintptr, val int32, _ int32) (r int32) + +//go:noescape +func Y__c11_atomic_fetch_andInt64(t *TLS, ptr uintptr, val int64, _ int32) (r int64) + +//go:noescape +func Y__c11_atomic_fetch_andInt8(t *TLS, ptr uintptr, val int8, _ int32) (r int8) + +//go:noescape +func Y__c11_atomic_fetch_andUint16(t *TLS, ptr uintptr, val uint16, _ int32) (r uint16) + +//go:noescape +func Y__c11_atomic_fetch_andUint32(t *TLS, ptr uintptr, val uint32, _ int32) (r uint32) + +//go:noescape +func Y__c11_atomic_fetch_andUint64(t *TLS, ptr uintptr, val uint64, _ int32) (r uint64) + +//go:noescape +func Y__c11_atomic_fetch_andUint8(t *TLS, ptr uintptr, val uint8, _ int32) (r uint8) + +//go:noescape +func Y__c11_atomic_fetch_orInt16(t *TLS, ptr uintptr, val int16, _ int32) (r int16) + +//go:noescape +func Y__c11_atomic_fetch_orInt32(t *TLS, ptr uintptr, val int32, _ int32) (r int32) + +//go:noescape +func Y__c11_atomic_fetch_orInt64(t *TLS, ptr uintptr, val int64, _ int32) (r int64) + +//go:noescape +func Y__c11_atomic_fetch_orInt8(t *TLS, ptr uintptr, val int8, _ int32) (r int8) + +//go:noescape +func Y__c11_atomic_fetch_orUint16(t *TLS, ptr uintptr, val uint16, _ int32) (r uint16) + +//go:noescape +func Y__c11_atomic_fetch_orUint32(t *TLS, ptr uintptr, val uint32, _ int32) (r uint32) + +//go:noescape +func Y__c11_atomic_fetch_orUint64(t *TLS, ptr uintptr, val uint64, _ int32) (r uint64) + +//go:noescape +func Y__c11_atomic_fetch_orUint8(t *TLS, ptr uintptr, val uint8, _ int32) (r uint8) + +//go:noescape +func Y__c11_atomic_fetch_subInt16(t *TLS, ptr uintptr, val int16, _ int32) (r int16) + +//go:noescape +func Y__c11_atomic_fetch_subInt32(t *TLS, ptr uintptr, val int32, _ int32) (r int32) + +//go:noescape +func Y__c11_atomic_fetch_subInt64(t *TLS, ptr uintptr, val int64, _ int32) (r int64) + +//go:noescape +func Y__c11_atomic_fetch_subInt8(t *TLS, ptr uintptr, val int8, _ int32) (r int8) + +//go:noescape +func Y__c11_atomic_fetch_subUint16(t *TLS, ptr uintptr, val uint16, _ int32) (r uint16) + +//go:noescape +func Y__c11_atomic_fetch_subUint32(t *TLS, ptr uintptr, val uint32, _ int32) (r uint32) + +//go:noescape +func Y__c11_atomic_fetch_subUint64(t *TLS, ptr uintptr, val uint64, _ int32) (r uint64) + +//go:noescape +func Y__c11_atomic_fetch_subUint8(t *TLS, ptr uintptr, val uint8, _ int32) (r uint8) + +//go:noescape +func Y__c11_atomic_fetch_xorInt16(t *TLS, ptr uintptr, val int16, _ int32) (r int16) + +//go:noescape +func Y__c11_atomic_fetch_xorInt32(t *TLS, ptr uintptr, val int32, _ int32) (r int32) + +//go:noescape +func Y__c11_atomic_fetch_xorInt64(t *TLS, ptr uintptr, val int64, _ int32) (r int64) + +//go:noescape +func Y__c11_atomic_fetch_xorInt8(t *TLS, ptr uintptr, val int8, _ int32) (r int8) + +//go:noescape +func Y__c11_atomic_fetch_xorUint16(t *TLS, ptr uintptr, val uint16, _ int32) (r uint16) + +//go:noescape +func Y__c11_atomic_fetch_xorUint32(t *TLS, ptr uintptr, val uint32, _ int32) (r uint32) + +//go:noescape +func Y__c11_atomic_fetch_xorUint64(t *TLS, ptr uintptr, val uint64, _ int32) (r uint64) + +//go:noescape +func Y__c11_atomic_fetch_xorUint8(t *TLS, ptr uintptr, val uint8, _ int32) (r uint8) + +//go:noescape +func Y__c11_atomic_loadInt16(t *TLS, ptr uintptr, memorder int32) (r int16) + +//go:noescape +func Y__c11_atomic_loadInt32(t *TLS, ptr uintptr, memorder int32) (r int32) + +//go:noescape +func Y__c11_atomic_loadInt64(t *TLS, ptr uintptr, memorder int32) (r int64) + +//go:noescape +func Y__c11_atomic_loadInt8(t *TLS, ptr uintptr, memorder int32) (r int8) + +//go:noescape +func Y__c11_atomic_loadUint16(t *TLS, ptr uintptr, memorder int32) (r uint16) + +//go:noescape +func Y__c11_atomic_loadUint32(t *TLS, ptr uintptr, memorder int32) (r uint32) + +//go:noescape +func Y__c11_atomic_loadUint64(t *TLS, ptr uintptr, memorder int32) (r uint64) + +//go:noescape +func Y__c11_atomic_loadUint8(t *TLS, ptr uintptr, memorder int32) (r uint8) + +//go:noescape +func Y__c11_atomic_storeInt16(t *TLS, ptr uintptr, val int16, memorder int32) + +//go:noescape +func Y__c11_atomic_storeInt32(t *TLS, ptr uintptr, val int32, memorder int32) + +//go:noescape +func Y__c11_atomic_storeInt64(t *TLS, ptr uintptr, val int64, memorder int32) + +//go:noescape +func Y__c11_atomic_storeInt8(t *TLS, ptr uintptr, val int8, memorder int32) + +//go:noescape +func Y__c11_atomic_storeUint16(t *TLS, ptr uintptr, val uint16, memorder int32) + +//go:noescape +func Y__c11_atomic_storeUint32(t *TLS, ptr uintptr, val uint32, memorder int32) + +//go:noescape +func Y__c11_atomic_storeUint64(t *TLS, ptr uintptr, val uint64, memorder int32) + +//go:noescape +func Y__c11_atomic_storeUint8(t *TLS, ptr uintptr, val uint8, memorder int32) + +//go:noescape +func Y__ccgo_dmesg(t *TLS, fmt uintptr, va uintptr) + +//go:noescape +func Y__ccgo_getMutexType(tls *TLS, m uintptr) (_2 int32) + +//go:noescape +func Y__ccgo_in6addr_anyp(t *TLS) (_1 uintptr) + +//go:noescape +func Y__ccgo_pthreadAttrGetDetachState(tls *TLS, a uintptr) (_2 int32) + +//go:noescape +func Y__ccgo_pthreadMutexattrGettype(tls *TLS, a uintptr) (_2 int32) + +//go:noescape +func Y__ccgo_sqlite3_log(t *TLS, iErrCode int32, zFormat uintptr, args uintptr) + +//go:noescape +func Y__clock_gettime(tls *TLS, clk Tclockid_t, ts uintptr) (r1 int32) + +//go:noescape +func Y__clock_nanosleep(tls *TLS, clk Tclockid_t, flags int32, req uintptr, rem uintptr) (r int32) + +//go:noescape +func Y__cmsg_nxthdr(t *TLS, msgh, cmsg uintptr) (_2 uintptr) + +//go:noescape +func Y__convert_scm_timestamps(tls *TLS, msg uintptr, csize Tsocklen_t) + +//go:noescape +func Y__cos(tls *TLS, x float64, y float64) (r1 float64) + +//go:noescape +func Y__cosdf(tls *TLS, x float64) (r1 float32) + +//go:noescape +func Y__crypt_blowfish(tls *TLS, key uintptr, setting uintptr, output uintptr) (r uintptr) + +//go:noescape +func Y__crypt_des(tls *TLS, key uintptr, setting uintptr, output uintptr) (r uintptr) + +//go:noescape +func Y__crypt_md5(tls *TLS, key uintptr, setting uintptr, output uintptr) (r uintptr) + +//go:noescape +func Y__crypt_r(tls *TLS, key uintptr, salt uintptr, data uintptr) (r uintptr) + +//go:noescape +func Y__crypt_sha256(tls *TLS, key uintptr, setting uintptr, output uintptr) (r uintptr) + +//go:noescape +func Y__crypt_sha512(tls *TLS, key uintptr, setting uintptr, output uintptr) (r uintptr) + +//go:noescape +func Y__ctype_b_loc(tls *TLS) (r uintptr) + +//go:noescape +func Y__ctype_get_mb_cur_max(tls *TLS) (r Tsize_t) + +//go:noescape +func Y__ctype_tolower_loc(tls *TLS) (r uintptr) + +//go:noescape +func Y__ctype_toupper_loc(tls *TLS) (r uintptr) + +//go:noescape +func Y__des_setkey(tls *TLS, key uintptr, ekey uintptr) + +//go:noescape +func Y__dn_expand(tls *TLS, base uintptr, end uintptr, src uintptr, dest uintptr, space int32) (r int32) + +//go:noescape +func Y__dns_parse(tls *TLS, r uintptr, rlen int32, __ccgo_fp_callback uintptr, ctx uintptr) (r1 int32) + +//go:noescape +func __ccgo_abi0___dns_parse_2(_0 *TLS, _1 uintptr, _2 int32, _3 uintptr, _4 int32, _5 uintptr, _6 int32, __ccgo_fp uintptr) (_7 int32) + +func __ccgo_abiInternal___dns_parse_2(tls *TLS, dest, abi0CodePtr uintptr) { + f := func(_0 *TLS, _1 uintptr, _2 int32, _3 uintptr, _4 int32, _5 uintptr, _6 int32) (_7 int32) { + return __ccgo_abi0___dns_parse_2(_0, _1, _2, _3, _4, _5, _6, abi0CodePtr) + } + *(*[2]uintptr)(unsafe.Pointer(dest)) = *(*[2]uintptr)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(&f)))) +} + +//go:noescape +func Y__do_des(tls *TLS, l_in Tuint32_t, r_in Tuint32_t, l_out uintptr, r_out uintptr, count Tuint32_t, saltbits Tuint32_t, ekey uintptr) + +//go:noescape +func Y__do_orphaned_stdio_locks(tls *TLS) + +//go:noescape +func Y__dup3(tls *TLS, old int32, new1 int32, flags int32) (r1 int32) + +//go:noescape +func Y__duplocale(tls *TLS, old Tlocale_t) (r Tlocale_t) + +//go:noescape +func Y__env_rm_add(tls *TLS, old uintptr, new1 uintptr) + +//go:noescape +func Y__errno_location(tls *TLS) (r uintptr) + +//go:noescape +func Y__execvpe(tls *TLS, file uintptr, argv uintptr, envp uintptr) (r int32) + +//go:noescape +func Y__expo2(tls *TLS, x float64, sign float64) (r float64) + +//go:noescape +func Y__expo2f(tls *TLS, x float32, sign float32) (r float32) + +//go:noescape +func Y__fbufsize(tls *TLS, f uintptr) (r Tsize_t) + +//go:noescape +func Y__fclose_ca(tls *TLS, f uintptr) (r int32) + +//go:noescape +func Y__fdopen(tls *TLS, fd int32, mode uintptr) (r uintptr) + +//go:noescape +func Y__fesetround(tls *TLS, r int32) (r1 int32) + +//go:noescape +func Y__fgetwc_unlocked(tls *TLS, f uintptr) (r Twint_t) + +//go:noescape +func Y__flbf(tls *TLS, f uintptr) (r int32) + +//go:noescape +func Y__floatscan(tls *TLS, f uintptr, prec int32, pok int32) (r float64) + +//go:noescape +func Y__fmodeflags(tls *TLS, mode uintptr) (r int32) + +//go:noescape +func Y__fopen_rb_ca(tls *TLS, filename uintptr, f uintptr, buf uintptr, len1 Tsize_t) (r uintptr) + +//go:noescape +func Y__fpclassify(tls *TLS, x float64) (r int32) + +//go:noescape +func Y__fpclassifyf(tls *TLS, x float32) (r int32) + +//go:noescape +func Y__fpclassifyl(tls *TLS, x float64) (r int32) + +//go:noescape +func Y__fpending(tls *TLS, f uintptr) (r Tsize_t) + +//go:noescape +func Y__fpurge(tls *TLS, f uintptr) (r int32) + +//go:noescape +func Y__fputwc_unlocked(tls *TLS, c Twchar_t, f uintptr) (r Twint_t) + +//go:noescape +func Y__freadable(tls *TLS, f uintptr) (r int32) + +//go:noescape +func Y__freadahead(tls *TLS, f uintptr) (r Tsize_t) + +//go:noescape +func Y__freading(tls *TLS, f uintptr) (r int32) + +//go:noescape +func Y__freadptr(tls *TLS, f uintptr, sizep uintptr) (r uintptr) + +//go:noescape +func Y__freadptrinc(tls *TLS, f uintptr, inc Tsize_t) + +//go:noescape +func Y__freelocale(tls *TLS, l Tlocale_t) + +//go:noescape +func Y__fseeko(tls *TLS, f uintptr, off Toff_t, whence int32) (r int32) + +//go:noescape +func Y__fseeko_unlocked(tls *TLS, f uintptr, off Toff_t, whence int32) (r int32) + +//go:noescape +func Y__fseterr(tls *TLS, f uintptr) + +//go:noescape +func Y__fsetlocking(tls *TLS, f uintptr, type1 int32) (r int32) + +//go:noescape +func Y__fstat(tls *TLS, fd int32, st uintptr) (r int32) + +//go:noescape +func Y__fstatat(tls *TLS, fd int32, path uintptr, st uintptr, flag int32) (r int32) + +//go:noescape +func Y__ftello(tls *TLS, f uintptr) (r Toff_t) + +//go:noescape +func Y__ftello_unlocked(tls *TLS, f uintptr) (r Toff_t) + +//go:noescape +func Y__funcs_on_quick_exit(tls *TLS) + +//go:noescape +func Y__futimesat(tls *TLS, dirfd int32, pathname uintptr, times uintptr) (r int32) + +//go:noescape +func Y__fwritable(tls *TLS, f uintptr) (r int32) + +//go:noescape +func Y__fwritex(tls *TLS, s uintptr, l Tsize_t, f uintptr) (r Tsize_t) + +//go:noescape +func Y__fwriting(tls *TLS, f uintptr) (r int32) + +//go:noescape +func Y__fxstat(tls *TLS, ver int32, fd int32, buf uintptr) (r int32) + +//go:noescape +func Y__fxstatat(tls *TLS, ver int32, fd int32, path uintptr, buf uintptr, flag int32) (r int32) + +//go:noescape +func Y__get_handler_set(tls *TLS, set uintptr) + +//go:noescape +func Y__get_locale(tls *TLS, cat int32, val uintptr) (r uintptr) + +//go:noescape +func Y__get_resolv_conf(tls *TLS, conf uintptr, search uintptr, search_sz Tsize_t) (r int32) + +//go:noescape +func Y__getauxval(tls *TLS, item uint64) (r uint64) + +//go:noescape +func Y__getdelim(tls *TLS, s uintptr, n uintptr, delim int32, f uintptr) (r Tssize_t) + +//go:noescape +func Y__getgr_a(tls *TLS, name uintptr, gid Tgid_t, gr uintptr, buf uintptr, size uintptr, mem uintptr, nmem uintptr, res uintptr) (r int32) + +//go:noescape +func Y__getgrent_a(tls *TLS, f uintptr, gr uintptr, line uintptr, size uintptr, mem uintptr, nmem uintptr, res uintptr) (r int32) + +//go:noescape +func Y__getopt_msg(tls *TLS, a uintptr, b uintptr, c uintptr, l Tsize_t) + +//go:noescape +func Y__getpw_a(tls *TLS, name uintptr, uid Tuid_t, pw uintptr, buf uintptr, size uintptr, res uintptr) (r int32) + +//go:noescape +func Y__getpwent_a(tls *TLS, f uintptr, pw uintptr, line uintptr, size uintptr, res uintptr) (r int32) + +//go:noescape +func Y__gettextdomain(tls *TLS) (r uintptr) + +//go:noescape +func Y__gmtime_r(tls *TLS, t uintptr, tm uintptr) (r uintptr) + +//go:noescape +func Y__h_errno_location(tls *TLS) (r uintptr) + +//go:noescape +func Y__inet_aton(tls *TLS, s0 uintptr, dest uintptr) (r int32) + +//go:noescape +func Y__init_ssp(tls *TLS, entropy uintptr) + +//go:noescape +func Y__intscan(tls *TLS, f uintptr, base uint32, pok int32, lim uint64) (r uint64) + +//go:noescape +func Y__isalnum_l(tls *TLS, c int32, l Tlocale_t) (r int32) + +//go:noescape +func Y__isalpha_l(tls *TLS, c int32, l Tlocale_t) (r int32) + +//go:noescape +func Y__isblank_l(tls *TLS, c int32, l Tlocale_t) (r int32) + +//go:noescape +func Y__iscntrl_l(tls *TLS, c int32, l Tlocale_t) (r int32) + +//go:noescape +func Y__isdigit_l(tls *TLS, c int32, l Tlocale_t) (r int32) + +//go:noescape +func Y__isfinite(tls *TLS, d float64) (_2 int32) + +//go:noescape +func Y__isfinitef(tls *TLS, f float32) (_2 int32) + +//go:noescape +func Y__isfinitel(tls *TLS, d float64) (_2 int32) + +//go:noescape +func Y__isgraph_l(tls *TLS, c int32, l Tlocale_t) (r int32) + +//go:noescape +func Y__islower_l(tls *TLS, c int32, l Tlocale_t) (r int32) + +//go:noescape +func Y__isnan(t *TLS, x float64) (_2 int32) + +//go:noescape +func Y__isnanf(t *TLS, arg float32) (_2 int32) + +//go:noescape +func Y__isnanl(t *TLS, arg float64) (_2 int32) + +//go:noescape +func Y__isoc99_fscanf(tls *TLS, f uintptr, fmt uintptr, va uintptr) (r int32) + +//go:noescape +func Y__isoc99_fwscanf(tls *TLS, f uintptr, fmt uintptr, va uintptr) (r int32) + +//go:noescape +func Y__isoc99_scanf(tls *TLS, fmt uintptr, va uintptr) (r int32) + +//go:noescape +func Y__isoc99_sscanf(tls *TLS, s uintptr, fmt uintptr, va uintptr) (r int32) + +//go:noescape +func Y__isoc99_swscanf(tls *TLS, s uintptr, fmt uintptr, va uintptr) (r int32) + +//go:noescape +func Y__isoc99_vfscanf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) + +//go:noescape +func Y__isoc99_vfwscanf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) + +//go:noescape +func Y__isoc99_vscanf(tls *TLS, fmt uintptr, ap Tva_list) (r int32) + +//go:noescape +func Y__isoc99_vsscanf(tls *TLS, s uintptr, fmt uintptr, ap Tva_list) (r int32) + +//go:noescape +func Y__isoc99_vswscanf(tls *TLS, s uintptr, fmt uintptr, ap Tva_list) (r int32) + +//go:noescape +func Y__isoc99_vwscanf(tls *TLS, fmt uintptr, ap Tva_list) (r int32) + +//go:noescape +func Y__isoc99_wscanf(tls *TLS, fmt uintptr, va uintptr) (r int32) + +//go:noescape +func Y__isprint_l(tls *TLS, c int32, l Tlocale_t) (r int32) + +//go:noescape +func Y__ispunct_l(tls *TLS, c int32, l Tlocale_t) (r int32) + +//go:noescape +func Y__isspace_l(tls *TLS, c int32, l Tlocale_t) (r int32) + +//go:noescape +func Y__isupper_l(tls *TLS, c int32, l Tlocale_t) (r int32) + +//go:noescape +func Y__iswalnum_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) + +//go:noescape +func Y__iswalpha_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) + +//go:noescape +func Y__iswblank_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) + +//go:noescape +func Y__iswcntrl_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) + +//go:noescape +func Y__iswctype_l(tls *TLS, c Twint_t, t Twctype_t, l Tlocale_t) (r int32) + +//go:noescape +func Y__iswdigit_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) + +//go:noescape +func Y__iswgraph_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) + +//go:noescape +func Y__iswlower_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) + +//go:noescape +func Y__iswprint_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) + +//go:noescape +func Y__iswpunct_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) + +//go:noescape +func Y__iswspace_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) + +//go:noescape +func Y__iswupper_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) + +//go:noescape +func Y__iswxdigit_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) + +//go:noescape +func Y__isxdigit_l(tls *TLS, c int32, l Tlocale_t) (r int32) + +//go:noescape +func Y__lctrans(tls *TLS, msg uintptr, lm uintptr) (r uintptr) + +//go:noescape +func Y__lctrans_cur(tls *TLS, msg uintptr) (r uintptr) + +//go:noescape +func Y__lctrans_impl(tls *TLS, msg uintptr, lm uintptr) (r uintptr) + +//go:noescape +func Y__ldexp_cexp(tls *TLS, z complex128, expt int32) (r complex128) + +//go:noescape +func Y__ldexp_cexpf(tls *TLS, z complex64, expt int32) (r complex64) + +//go:noescape +func Y__lgamma_r(tls *TLS, x float64, signgamp uintptr) (r1 float64) + +//go:noescape +func Y__lgammaf_r(tls *TLS, x float32, signgamp uintptr) (r1 float32) + +//go:noescape +func Y__lgammal_r(tls *TLS, x float64, sg uintptr) (r float64) + +//go:noescape +func Y__libc_current_sigrtmax(tls *TLS) (r int32) + +//go:noescape +func Y__libc_current_sigrtmin(tls *TLS) (r int32) + +//go:noescape +func Y__libc_sigaction(tls *TLS, sig int32, sa uintptr, old uintptr) (r1 int32) + +//go:noescape +func Y__loc_is_allocated(tls *TLS, loc Tlocale_t) (r int32) + +//go:noescape +func Y__localtime_r(tls *TLS, t uintptr, tm uintptr) (r uintptr) + +//go:noescape +func Y__lockfile(tls *TLS, file uintptr) (_2 int32) + +//go:noescape +func Y__lookup_ipliteral(tls *TLS, buf uintptr, name uintptr, family int32) (r int32) + +//go:noescape +func Y__lookup_name(tls *TLS, buf uintptr, canon uintptr, name uintptr, family int32, flags int32) (r int32) + +//go:noescape +func Y__lookup_serv(tls *TLS, buf uintptr, name uintptr, proto int32, socktype int32, flags int32) (r int32) + +//go:noescape +func Y__lseek(tls *TLS, fd int32, offset Toff_t, whence int32) (r Toff_t) + +//go:noescape +func Y__lsysinfo(tls *TLS, info uintptr) (r int32) + +//go:noescape +func Y__lxstat(tls *TLS, ver int32, path uintptr, buf uintptr) (r int32) + +//go:noescape +func Y__madvise(tls *TLS, addr uintptr, len1 Tsize_t, advice int32) (r int32) + +//go:noescape +func Y__map_file(tls *TLS, pathname uintptr, size uintptr) (r uintptr) + +//go:noescape +func Y__math_divzero(tls *TLS, sign Tuint32_t) (r float64) + +//go:noescape +func Y__math_divzerof(tls *TLS, sign Tuint32_t) (r float32) + +//go:noescape +func Y__math_invalid(tls *TLS, x float64) (r float64) + +//go:noescape +func Y__math_invalidf(tls *TLS, x float32) (r float32) + +//go:noescape +func Y__math_oflow(tls *TLS, sign Tuint32_t) (r float64) + +//go:noescape +func Y__math_oflowf(tls *TLS, sign Tuint32_t) (r float32) + +//go:noescape +func Y__math_uflow(tls *TLS, sign Tuint32_t) (r float64) + +//go:noescape +func Y__math_uflowf(tls *TLS, sign Tuint32_t) (r float32) + +//go:noescape +func Y__math_xflow(tls *TLS, sign Tuint32_t, y2 float64) (r float64) + +//go:noescape +func Y__math_xflowf(tls *TLS, sign Tuint32_t, y2 float32) (r float32) + +//go:noescape +func Y__memrchr(tls *TLS, m uintptr, c int32, n Tsize_t) (r uintptr) + +//go:noescape +func Y__mkostemps(tls *TLS, template uintptr, len1 int32, flags int32) (r int32) + +//go:noescape +func Y__mmap(tls *TLS, start uintptr, len1 Tsize_t, prot int32, flags int32, fd int32, off Toff_t) (r uintptr) + +//go:noescape +func Y__mo_lookup(tls *TLS, p uintptr, size Tsize_t, s uintptr) (r uintptr) + +//go:noescape +func Y__month_to_secs(tls *TLS, month int32, is_leap int32) (r int32) + +//go:noescape +func Y__mprotect(tls *TLS, addr uintptr, len1 Tsize_t, prot int32) (r int32) + +//go:noescape +func Y__mremap(tls *TLS, old_addr uintptr, old_len Tsize_t, new_len Tsize_t, flags int32, va uintptr) (r uintptr) + +//go:noescape +func Y__munmap(tls *TLS, start uintptr, len1 Tsize_t) (r int32) + +//go:noescape +func Y__newlocale(tls *TLS, mask int32, name uintptr, loc Tlocale_t) (r Tlocale_t) + +//go:noescape +func Y__nl_langinfo(tls *TLS, item Tnl_item) (r uintptr) + +//go:noescape +func Y__nl_langinfo_l(tls *TLS, item Tnl_item, loc Tlocale_t) (r uintptr) + +//go:noescape +func Y__nscd_query(tls *TLS, req Tint32_t, key uintptr, buf uintptr, len1 Tsize_t, swap uintptr) (r uintptr) + +//go:noescape +func Y__ofl_add(tls *TLS, f uintptr) (r uintptr) + +//go:noescape +func Y__ofl_lock(tls *TLS) (r uintptr) + +//go:noescape +func Y__ofl_unlock(tls *TLS) + +//go:noescape +func Y__overflow(tls *TLS, f uintptr, _c int32) (r int32) + +//go:noescape +func Y__pleval(tls *TLS, s uintptr, n uint64) (r uint64) + +//go:noescape +func Y__posix_getopt(tls *TLS, argc int32, argv uintptr, optstring uintptr) (r int32) + +//go:noescape +func Y__procfdname(tls *TLS, buf uintptr, fd uint32) + +//go:noescape +func Y__ptsname_r(tls *TLS, fd int32, buf uintptr, len1 Tsize_t) (r int32) + +//go:noescape +func Y__putenv(tls *TLS, s uintptr, l Tsize_t, r uintptr) (r1 int32) + +//go:noescape +func Y__qsort_r(tls *TLS, base uintptr, nel Tsize_t, width Tsize_t, __ccgo_fp_cmp Tcmpfun, arg uintptr) + +//go:noescape +func __ccgo_abi0___qsort_r_3(_0 *TLS, _1 uintptr, _2 uintptr, _3 uintptr, __ccgo_fp uintptr) (_4 int32) + +func __ccgo_abiInternal___qsort_r_3(tls *TLS, dest, abi0CodePtr uintptr) { + f := func(_0 *TLS, _1 uintptr, _2 uintptr, _3 uintptr) (_4 int32) { + return __ccgo_abi0___qsort_r_3(_0, _1, _2, _3, abi0CodePtr) + } + *(*[2]uintptr)(unsafe.Pointer(dest)) = *(*[2]uintptr)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(&f)))) +} + +//go:noescape +func Y__rand48_step(tls *TLS, xi uintptr, lc uintptr) (r Tuint64_t) + +//go:noescape +func Y__register_locked_file(tls *TLS, f uintptr, self Tpthread_t) + +//go:noescape +func Y__rem_pio2(tls *TLS, x float64, y uintptr) (r1 int32) + +//go:noescape +func Y__rem_pio2_large(tls *TLS, x uintptr, y uintptr, e0 int32, nx int32, prec int32) (r int32) + +//go:noescape +func Y__rem_pio2f(tls *TLS, x float32, y uintptr) (r int32) + +//go:noescape +func Y__res_mkquery(tls *TLS, op int32, dname uintptr, class int32, type1 int32, data uintptr, datalen int32, newrr uintptr, buf uintptr, buflen int32) (r int32) + +//go:noescape +func Y__res_msend(tls *TLS, nqueries int32, queries uintptr, qlens uintptr, answers uintptr, alens uintptr, asize int32) (r int32) + +//go:noescape +func Y__res_msend_rc(tls *TLS, nqueries int32, queries uintptr, qlens uintptr, answers uintptr, alens uintptr, asize int32, conf uintptr) (r1 int32) + +//go:noescape +func Y__res_send(tls *TLS, _msg uintptr, _msglen int32, _answer uintptr, _anslen int32) (r1 int32) + +//go:noescape +func Y__res_state(tls *TLS) (r uintptr) + +//go:noescape +func Y__reset_tls(tls *TLS) + +//go:noescape +func Y__restore(tls *TLS) + +//go:noescape +func Y__restore_rt(tls *TLS) + +//go:noescape +func Y__restore_sigs(tls *TLS, set uintptr) + +//go:noescape +func Y__rtnetlink_enumerate(tls *TLS, link_af int32, addr_af int32, __ccgo_fp_cb uintptr, ctx uintptr) (r1 int32) + +//go:noescape +func __ccgo_abi0___rtnetlink_enumerate_2(_0 *TLS, _1 uintptr, _2 uintptr, __ccgo_fp uintptr) (_3 int32) + +func __ccgo_abiInternal___rtnetlink_enumerate_2(tls *TLS, dest, abi0CodePtr uintptr) { + f := func(_0 *TLS, _1 uintptr, _2 uintptr) (_3 int32) { + return __ccgo_abi0___rtnetlink_enumerate_2(_0, _1, _2, abi0CodePtr) + } + *(*[2]uintptr)(unsafe.Pointer(dest)) = *(*[2]uintptr)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(&f)))) +} + +//go:noescape +func Y__secs_to_tm(tls *TLS, t int64, tm uintptr) (r int32) + +//go:noescape +func Y__secs_to_zone(tls *TLS, t int64, local int32, isdst uintptr, offset uintptr, oppoff uintptr, zonename uintptr) + +//go:noescape +func Y__setxid(tls *TLS, nr int32, id int32, eid int32, sid int32) (r int32) + +//go:noescape +func Y__shgetc(tls *TLS, f uintptr) (r int32) + +//go:noescape +func Y__shlim(tls *TLS, f uintptr, lim Toff_t) + +//go:noescape +func Y__shm_mapname(tls *TLS, name uintptr, buf uintptr) (r uintptr) + +//go:noescape +func Y__sigaction(tls *TLS, sig int32, sa uintptr, old uintptr) (r1 int32) + +//go:noescape +func Y__signbit(tls *TLS, x float64) (r int32) + +//go:noescape +func Y__signbitf(tls *TLS, x float32) (r int32) + +//go:noescape +func Y__signbitl(tls *TLS, x float64) (r int32) + +//go:noescape +func Y__sigsetjmp_tail(tls *TLS, jb uintptr, ret int32) (r int32) + +//go:noescape +func Y__sin(tls *TLS, x float64, y float64, iy int32) (r1 float64) + +//go:noescape +func Y__sindf(tls *TLS, x float64) (r1 float32) + +//go:noescape +func Y__stack_chk_fail(tls *TLS) + +//go:noescape +func Y__stack_chk_fail_local(tls *TLS) + +//go:noescape +func Y__stdio_close(tls *TLS, f uintptr) (r int32) + +//go:noescape +func Y__stdio_exit(tls *TLS) + +//go:noescape +func Y__stdio_exit_needed(tls *TLS) + +//go:noescape +func Y__stdio_read(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) + +//go:noescape +func Y__stdio_seek(tls *TLS, f uintptr, off Toff_t, whence int32) (r Toff_t) + +//go:noescape +func Y__stdio_write(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) + +//go:noescape +func Y__stdout_write(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) + +//go:noescape +func Y__stpcpy(tls *TLS, d uintptr, s uintptr) (r uintptr) + +//go:noescape +func Y__stpncpy(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) + +//go:noescape +func Y__strcasecmp_l(tls *TLS, l uintptr, r uintptr, loc Tlocale_t) (r1 int32) + +//go:noescape +func Y__strchrnul(tls *TLS, s uintptr, c int32) (r uintptr) + +//go:noescape +func Y__strcoll_l(tls *TLS, l uintptr, r uintptr, loc Tlocale_t) (r1 int32) + +//go:noescape +func Y__strerror_l(tls *TLS, e int32, loc Tlocale_t) (r uintptr) + +//go:noescape +func Y__strftime_fmt_1(tls *TLS, s uintptr, l uintptr, f int32, tm uintptr, loc Tlocale_t, pad int32) (r uintptr) + +//go:noescape +func Y__strftime_l(tls *TLS, s uintptr, n Tsize_t, f uintptr, tm uintptr, loc Tlocale_t) (r Tsize_t) + +//go:noescape +func Y__strncasecmp_l(tls *TLS, l uintptr, r uintptr, n Tsize_t, loc Tlocale_t) (r1 int32) + +//go:noescape +func Y__strtod_l(tls *TLS, s uintptr, p uintptr, l Tlocale_t) (r float64) + +//go:noescape +func Y__strtof_l(tls *TLS, s uintptr, p uintptr, l Tlocale_t) (r float32) + +//go:noescape +func Y__strtoimax_internal(tls *TLS, s uintptr, p uintptr, base int32) (r Tintmax_t) + +//go:noescape +func Y__strtol_internal(tls *TLS, s uintptr, p uintptr, base int32) (r int64) + +//go:noescape +func Y__strtold_l(tls *TLS, s uintptr, p uintptr, l Tlocale_t) (r float64) + +//go:noescape +func Y__strtoll_internal(tls *TLS, s uintptr, p uintptr, base int32) (r int64) + +//go:noescape +func Y__strtoul_internal(tls *TLS, s uintptr, p uintptr, base int32) (r uint64) + +//go:noescape +func Y__strtoull_internal(tls *TLS, s uintptr, p uintptr, base int32) (r uint64) + +//go:noescape +func Y__strtoumax_internal(tls *TLS, s uintptr, p uintptr, base int32) (r Tuintmax_t) + +//go:noescape +func Y__strxfrm_l(tls *TLS, dest uintptr, src uintptr, n Tsize_t, loc Tlocale_t) (r Tsize_t) + +//go:noescape +func Y__sync_synchronize(t *TLS) + +//go:noescape +func Y__sync_val_compare_and_swapInt16(t *TLS, ptr uintptr, oldval, newval int16) (r int16) + +//go:noescape +func Y__sync_val_compare_and_swapInt32(t *TLS, ptr uintptr, oldval, newval int32) (r int32) + +//go:noescape +func Y__sync_val_compare_and_swapInt64(t *TLS, ptr uintptr, oldval, newval int64) (r int64) + +//go:noescape +func Y__sync_val_compare_and_swapInt8(t *TLS, ptr uintptr, oldval, newval int8) (r int8) + +//go:noescape +func Y__sync_val_compare_and_swapUint16(t *TLS, ptr uintptr, oldval, newval uint16) (r uint16) + +//go:noescape +func Y__sync_val_compare_and_swapUint32(t *TLS, ptr uintptr, oldval, newval uint32) (r uint32) + +//go:noescape +func Y__sync_val_compare_and_swapUint64(t *TLS, ptr uintptr, oldval, newval uint64) (r uint64) + +//go:noescape +func Y__sync_val_compare_and_swapUint8(t *TLS, ptr uintptr, oldval, newval uint8) (r uint8) + +//go:noescape +func Y__syscall0(tls *TLS, n long) (_2 long) + +//go:noescape +func Y__syscall1(tls *TLS, n, a1 long) (_2 long) + +//go:noescape +func Y__syscall2(tls *TLS, n, a1, a2 long) (_2 long) + +//go:noescape +func Y__syscall3(tls *TLS, n, a1, a2, a3 long) (_2 long) + +//go:noescape +func Y__syscall4(tls *TLS, n, a1, a2, a3, a4 long) (_2 long) + +//go:noescape +func Y__syscall5(tls *TLS, n, a1, a2, a3, a4, a5 long) (_2 long) + +//go:noescape +func Y__syscall6(tls *TLS, n, a1, a2, a3, a4, a5, a6 long) (_2 long) + +//go:noescape +func Y__syscall_ret(tls *TLS, r uint64) (r1 int64) + +//go:noescape +func Y__tan(tls *TLS, x float64, y float64, odd int32) (r1 float64) + +//go:noescape +func Y__tandf(tls *TLS, x float64, odd int32) (r1 float32) + +//go:noescape +func Y__tm_to_secs(tls *TLS, tm uintptr) (r int64) + +//go:noescape +func Y__tm_to_tzname(tls *TLS, tm uintptr) (r uintptr) + +//go:noescape +func Y__tolower_l(tls *TLS, c int32, l Tlocale_t) (r int32) + +//go:noescape +func Y__toread(tls *TLS, f uintptr) (r int32) + +//go:noescape +func Y__toread_needs_stdio_exit(tls *TLS) + +//go:noescape +func Y__toupper_l(tls *TLS, c int32, l Tlocale_t) (r int32) + +//go:noescape +func Y__towctrans_l(tls *TLS, c Twint_t, t Twctrans_t, l Tlocale_t) (r Twint_t) + +//go:noescape +func Y__towlower_l(tls *TLS, c Twint_t, l Tlocale_t) (r Twint_t) + +//go:noescape +func Y__towrite(tls *TLS, f uintptr) (r int32) + +//go:noescape +func Y__towrite_needs_stdio_exit(tls *TLS) + +//go:noescape +func Y__towupper_l(tls *TLS, c Twint_t, l Tlocale_t) (r Twint_t) + +//go:noescape +func Y__tre_mem_alloc_impl(tls *TLS, mem Ttre_mem_t, provided int32, provided_block uintptr, zero int32, size Tsize_t) (r uintptr) + +//go:noescape +func Y__tre_mem_destroy(tls *TLS, mem Ttre_mem_t) + +//go:noescape +func Y__tre_mem_new_impl(tls *TLS, provided int32, provided_block uintptr) (r Ttre_mem_t) + +//go:noescape +func Y__tsearch_balance(tls *TLS, p uintptr) (r int32) + +//go:noescape +func Y__uflow(tls *TLS, f uintptr) (r int32) + +//go:noescape +func Y__unlist_locked_file(tls *TLS, f uintptr) + +//go:noescape +func Y__unlockfile(tls *TLS, file uintptr) + +//go:noescape +func Y__uselocale(tls *TLS, new1 Tlocale_t) (r Tlocale_t) + +//go:noescape +func Y__vm_wait(tls *TLS) + +//go:noescape +func Y__wcscoll_l(tls *TLS, l uintptr, r uintptr, locale Tlocale_t) (r1 int32) + +//go:noescape +func Y__wcsftime_l(tls *TLS, s uintptr, n Tsize_t, f uintptr, tm uintptr, loc Tlocale_t) (r Tsize_t) + +//go:noescape +func Y__wcsxfrm_l(tls *TLS, dest uintptr, src uintptr, n Tsize_t, loc Tlocale_t) (r Tsize_t) + +//go:noescape +func Y__wctrans_l(tls *TLS, s uintptr, l Tlocale_t) (r Twctrans_t) + +//go:noescape +func Y__wctype_l(tls *TLS, s uintptr, l Tlocale_t) (r Twctype_t) + +//go:noescape +func Y__xmknod(tls *TLS, ver int32, path uintptr, mode Tmode_t, dev uintptr) (r int32) + +//go:noescape +func Y__xmknodat(tls *TLS, ver int32, fd int32, path uintptr, mode Tmode_t, dev uintptr) (r int32) + +//go:noescape +func Y__xpg_basename(tls *TLS, s uintptr) (r uintptr) + +//go:noescape +func Y__xpg_strerror_r(tls *TLS, err int32, buf uintptr, buflen Tsize_t) (r int32) + +//go:noescape +func Y__xstat(tls *TLS, ver int32, path uintptr, buf uintptr) (r int32) + +//go:noescape +func Y__year_to_secs(tls *TLS, year int64, is_leap uintptr) (r int64) + +//go:noescape +func Y_exit(tls *TLS, status int32) + +//go:noescape +func Y_flushlbf(tls *TLS) + +//go:noescape +func Y_longjmp(t *TLS, env uintptr, val int32) + +//go:noescape +func Y_obstack_begin(t *TLS, obstack uintptr, size, alignment int32, chunkfun, freefun uintptr) (_4 int32) + +//go:noescape +func Y_obstack_newchunk(t *TLS, obstack uintptr, length int32) (_3 int32) + +//go:noescape +func Y_pthread_cleanup_pop(tls *TLS, _ uintptr, run int32) + +//go:noescape +func Y_pthread_cleanup_push(tls *TLS, _, f, x uintptr) + +//go:noescape +func Y_setjmp(t *TLS, env uintptr) (_2 int32) + +//go:noescape +func Ya64l(tls *TLS, s uintptr) (r int64) + +//go:noescape +func Yabort(tls *TLS) + +//go:noescape +func Yabs(tls *TLS, a int32) (r int32) + +//go:noescape +func Yaccept(tls *TLS, fd int32, addr uintptr, len1 uintptr) (r1 int32) + +//go:noescape +func Yaccept4(tls *TLS, fd int32, addr uintptr, len1 uintptr, flg int32) (r1 int32) + +//go:noescape +func Yaccess(tls *TLS, filename uintptr, amode int32) (r int32) + +//go:noescape +func Yacct(tls *TLS, filename uintptr) (r int32) + +//go:noescape +func Yacos(tls *TLS, x float64) (r float64) + +//go:noescape +func Yacosf(tls *TLS, x float32) (r float32) + +//go:noescape +func Yacosh(tls *TLS, x float64) (r float64) + +//go:noescape +func Yacoshf(tls *TLS, x float32) (r float32) + +//go:noescape +func Yacoshl(tls *TLS, x float64) (r float64) + +//go:noescape +func Yacosl(tls *TLS, x float64) (r float64) + +//go:noescape +func Yaddmntent(tls *TLS, f uintptr, mnt uintptr) (r int32) + +//go:noescape +func Yadjtime(tls *TLS, in uintptr, out uintptr) (r int32) + +//go:noescape +func Yadjtimex(tls *TLS, tx uintptr) (r int32) + +//go:noescape +func Yalarm(tls *TLS, seconds uint32) (r uint32) + +//go:noescape +func Yalloca(tls *TLS, size Tsize_t) (_2 uintptr) + +//go:noescape +func Yalphasort(tls *TLS, a uintptr, b uintptr) (r int32) + +//go:noescape +func Yarch_prctl(tls *TLS, code int32, addr uint64) (r int32) + +//go:noescape +func Yasctime(tls *TLS, tm uintptr) (r uintptr) + +//go:noescape +func Yasctime_r(tls *TLS, tm uintptr, buf uintptr) (r uintptr) + +//go:noescape +func Yasin(tls *TLS, x float64) (r1 float64) + +//go:noescape +func Yasinf(tls *TLS, x float32) (r float32) + +//go:noescape +func Yasinh(tls *TLS, x3 float64) (r float64) + +//go:noescape +func Yasinhf(tls *TLS, x3 float32) (r float32) + +//go:noescape +func Yasinhl(tls *TLS, x float64) (r float64) + +//go:noescape +func Yasinl(tls *TLS, x float64) (r float64) + +//go:noescape +func Yasprintf(tls *TLS, s uintptr, fmt uintptr, va uintptr) (r int32) + +//go:noescape +func Yat_quick_exit(tls *TLS, __ccgo_fp_func uintptr) (r1 int32) + +//go:noescape +func __ccgo_abi0_at_quick_exit_0(_0 *TLS, __ccgo_fp uintptr) + +func __ccgo_abiInternal_at_quick_exit_0(tls *TLS, dest, abi0CodePtr uintptr) { + f := func(_0 *TLS) { + __ccgo_abi0_at_quick_exit_0(_0, abi0CodePtr) + } + *(*[2]uintptr)(unsafe.Pointer(dest)) = *(*[2]uintptr)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(&f)))) +} + +//go:noescape +func Yatan(tls *TLS, x3 float64) (r float64) + +//go:noescape +func Yatan2(tls *TLS, y float64, x float64) (r float64) + +//go:noescape +func Yatan2f(tls *TLS, y float32, x float32) (r float32) + +//go:noescape +func Yatan2l(tls *TLS, y float64, x float64) (r float64) + +//go:noescape +func Yatanf(tls *TLS, x3 float32) (r float32) + +//go:noescape +func Yatanh(tls *TLS, x3 float64) (r float64) + +//go:noescape +func Yatanhf(tls *TLS, x3 float32) (r float32) + +//go:noescape +func Yatanhl(tls *TLS, x float64) (r float64) + +//go:noescape +func Yatanl(tls *TLS, x float64) (r float64) + +//go:noescape +func Yatexit(tls *TLS, func_ uintptr) (r int32) + +//go:noescape +func Yatof(tls *TLS, s uintptr) (r float64) + +//go:noescape +func Yatoi(tls *TLS, s uintptr) (r int32) + +//go:noescape +func Yatol(tls *TLS, s uintptr) (r int64) + +//go:noescape +func Yatoll(tls *TLS, s uintptr) (r int64) + +//go:noescape +func Ybacktrace(t *TLS, buf uintptr, size int32) (_3 int32) + +//go:noescape +func Ybacktrace_symbols_fd(t *TLS, buffer uintptr, size, fd int32) + +//go:noescape +func Ybasename(tls *TLS, s uintptr) (r uintptr) + +//go:noescape +func Ybcmp(tls *TLS, s1 uintptr, s2 uintptr, n Tsize_t) (r int32) + +//go:noescape +func Ybcopy(tls *TLS, s1 uintptr, s2 uintptr, n Tsize_t) + +//go:noescape +func Ybind(tls *TLS, fd int32, addr uintptr, len1 Tsocklen_t) (r1 int32) + +//go:noescape +func Ybind_textdomain_codeset(tls *TLS, domainname uintptr, codeset uintptr) (r uintptr) + +//go:noescape +func Ybindtextdomain(tls *TLS, domainname uintptr, dirname uintptr) (r uintptr) + +//go:noescape +func Ybrk(tls *TLS, end uintptr) (r int32) + +//go:noescape +func Ybsearch(tls *TLS, key uintptr, base uintptr, nel Tsize_t, width Tsize_t, __ccgo_fp_cmp uintptr) (r uintptr) + +//go:noescape +func __ccgo_abi0_bsearch_4(_0 *TLS, _1 uintptr, _2 uintptr, __ccgo_fp uintptr) (_3 int32) + +func __ccgo_abiInternal_bsearch_4(tls *TLS, dest, abi0CodePtr uintptr) { + f := func(_0 *TLS, _1 uintptr, _2 uintptr) (_3 int32) { + return __ccgo_abi0_bsearch_4(_0, _1, _2, abi0CodePtr) + } + *(*[2]uintptr)(unsafe.Pointer(dest)) = *(*[2]uintptr)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(&f)))) +} + +//go:noescape +func Ybtowc(tls *TLS, c int32) (r Twint_t) + +//go:noescape +func Ybzero(tls *TLS, s uintptr, n Tsize_t) + +//go:noescape +func Yc16rtomb(tls *TLS, s uintptr, c16 Tchar16_t, ps uintptr) (r Tsize_t) + +//go:noescape +func Yc32rtomb(tls *TLS, s uintptr, c32 Tchar32_t, ps uintptr) (r Tsize_t) + +//go:noescape +func Ycabs(tls *TLS, z complex128) (r float64) + +//go:noescape +func Ycabsf(tls *TLS, z complex64) (r float32) + +//go:noescape +func Ycabsl(tls *TLS, z complex128) (r float64) + +//go:noescape +func Ycacos(tls *TLS, z complex128) (r complex128) + +//go:noescape +func Ycacosf(tls *TLS, z complex64) (r complex64) + +//go:noescape +func Ycacosh(tls *TLS, z complex128) (r complex128) + +//go:noescape +func Ycacoshf(tls *TLS, z complex64) (r complex64) + +//go:noescape +func Ycacoshl(tls *TLS, z complex128) (r complex128) + +//go:noescape +func Ycacosl(tls *TLS, z complex128) (r complex128) + +//go:noescape +func Ycalloc(tls *TLS, m Tsize_t, n Tsize_t) (r uintptr) + +//go:noescape +func Ycapget(tls *TLS, a uintptr, b uintptr) (r int32) + +//go:noescape +func Ycapset(tls *TLS, a uintptr, b uintptr) (r int32) + +//go:noescape +func Ycarg(tls *TLS, z complex128) (r float64) + +//go:noescape +func Ycargf(tls *TLS, z complex64) (r float32) + +//go:noescape +func Ycargl(tls *TLS, z complex128) (r float64) + +//go:noescape +func Ycasin(tls *TLS, z complex128) (r1 complex128) + +//go:noescape +func Ycasinf(tls *TLS, z complex64) (r1 complex64) + +//go:noescape +func Ycasinh(tls *TLS, z complex128) (r complex128) + +//go:noescape +func Ycasinhf(tls *TLS, z complex64) (r complex64) + +//go:noescape +func Ycasinhl(tls *TLS, z complex128) (r complex128) + +//go:noescape +func Ycasinl(tls *TLS, z complex128) (r complex128) + +//go:noescape +func Ycatan(tls *TLS, z complex128) (r complex128) + +//go:noescape +func Ycatanf(tls *TLS, z complex64) (r complex64) + +//go:noescape +func Ycatanh(tls *TLS, z complex128) (r complex128) + +//go:noescape +func Ycatanhf(tls *TLS, z complex64) (r complex64) + +//go:noescape +func Ycatanhl(tls *TLS, z complex128) (r complex128) + +//go:noescape +func Ycatanl(tls *TLS, z complex128) (r complex128) + +//go:noescape +func Ycatclose(tls *TLS, catd Tnl_catd) (r int32) + +//go:noescape +func Ycatgets(tls *TLS, catd Tnl_catd, set_id int32, msg_id int32, s uintptr) (r uintptr) + +//go:noescape +func Ycatopen(tls *TLS, name uintptr, oflag int32) (r Tnl_catd) + +//go:noescape +func Ycbrt(tls *TLS, x float64) (r1 float64) + +//go:noescape +func Ycbrtf(tls *TLS, x float32) (r1 float32) + +//go:noescape +func Ycbrtl(tls *TLS, x float64) (r float64) + +//go:noescape +func Yccos(tls *TLS, z complex128) (r complex128) + +//go:noescape +func Yccosf(tls *TLS, z complex64) (r complex64) + +//go:noescape +func Yccosh(tls *TLS, z complex128) (r complex128) + +//go:noescape +func Yccoshf(tls *TLS, z complex64) (r complex64) + +//go:noescape +func Yccoshl(tls *TLS, z complex128) (r complex128) + +//go:noescape +func Yccosl(tls *TLS, z complex128) (r complex128) + +//go:noescape +func Yceil(tls *TLS, x3 float64) (r float64) + +//go:noescape +func Yceilf(tls *TLS, x3 float32) (r float32) + +//go:noescape +func Yceill(tls *TLS, x float64) (r float64) + +//go:noescape +func Ycexp(tls *TLS, z complex128) (r complex128) + +//go:noescape +func Ycexpf(tls *TLS, z complex64) (r complex64) + +//go:noescape +func Ycexpl(tls *TLS, z complex128) (r complex128) + +//go:noescape +func Ycfgetispeed(tls *TLS, tio uintptr) (r Tspeed_t) + +//go:noescape +func Ycfgetospeed(tls *TLS, tio uintptr) (r Tspeed_t) + +//go:noescape +func Ycfmakeraw(tls *TLS, t uintptr) + +//go:noescape +func Ycfsetispeed(tls *TLS, tio uintptr, speed Tspeed_t) (r int32) + +//go:noescape +func Ycfsetospeed(tls *TLS, tio uintptr, speed Tspeed_t) (r int32) + +//go:noescape +func Ycfsetspeed(tls *TLS, tio uintptr, speed Tspeed_t) (r int32) + +//go:noescape +func Ychdir(tls *TLS, path uintptr) (r int32) + +//go:noescape +func Ychmod(tls *TLS, path uintptr, mode Tmode_t) (r int32) + +//go:noescape +func Ychown(tls *TLS, path uintptr, uid Tuid_t, gid Tgid_t) (r int32) + +//go:noescape +func Ychroot(tls *TLS, path uintptr) (r int32) + +//go:noescape +func Ycimag(tls *TLS, z complex128) (r float64) + +//go:noescape +func Ycimagf(tls *TLS, z complex64) (r float32) + +//go:noescape +func Ycimagl(tls *TLS, z complex128) (r float64) + +//go:noescape +func Yclearenv(tls *TLS) (r int32) + +//go:noescape +func Yclearerr(tls *TLS, f uintptr) + +//go:noescape +func Yclearerr_unlocked(tls *TLS, f uintptr) + +//go:noescape +func Yclock(tls *TLS) (r Tclock_t) + +//go:noescape +func Yclock_adjtime(tls *TLS, clock_id Tclockid_t, utx uintptr) (r1 int32) + +//go:noescape +func Yclock_getcpuclockid(tls *TLS, pid Tpid_t, clk uintptr) (r int32) + +//go:noescape +func Yclock_getres(tls *TLS, clk Tclockid_t, ts uintptr) (r int32) + +//go:noescape +func Yclock_gettime(tls *TLS, clk Tclockid_t, ts uintptr) (r int32) + +//go:noescape +func Yclock_nanosleep(tls *TLS, clk Tclockid_t, flags int32, req uintptr, rem uintptr) (r int32) + +//go:noescape +func Yclock_settime(tls *TLS, clk Tclockid_t, ts uintptr) (r int32) + +//go:noescape +func Yclog(tls *TLS, z complex128) (r1 complex128) + +//go:noescape +func Yclogf(tls *TLS, z complex64) (r1 complex64) + +//go:noescape +func Yclogl(tls *TLS, z complex128) (r complex128) + +//go:noescape +func Yclose(tls *TLS, fd int32) (r1 int32) + +//go:noescape +func Yclosedir(tls *TLS, dir uintptr) (r int32) + +//go:noescape +func Ycloselog(tls *TLS) + +//go:noescape +func Yconfstr(tls *TLS, name int32, buf uintptr, len1 Tsize_t) (r Tsize_t) + +//go:noescape +func Yconj(tls *TLS, z complex128) (r complex128) + +//go:noescape +func Yconjf(tls *TLS, z complex64) (r complex64) + +//go:noescape +func Yconjl(tls *TLS, z complex128) (r complex128) + +//go:noescape +func Yconnect(tls *TLS, fd int32, addr uintptr, len1 Tsocklen_t) (r1 int32) + +//go:noescape +func Ycopy_file_range(tls *TLS, fd_in int32, off_in uintptr, fd_out int32, off_out uintptr, len1 Tsize_t, flags uint32) (r Tssize_t) + +//go:noescape +func Ycopysign(tls *TLS, x float64, y float64) (r float64) + +//go:noescape +func Ycopysignf(tls *TLS, x float32, y float32) (r float32) + +//go:noescape +func Ycopysignl(tls *TLS, x float64, y float64) (r float64) + +//go:noescape +func Ycos(tls *TLS, x3 float64) (r float64) + +//go:noescape +func Ycosf(tls *TLS, x3 float32) (r float32) + +//go:noescape +func Ycosh(tls *TLS, x3 float64) (r float64) + +//go:noescape +func Ycoshf(tls *TLS, x3 float32) (r float32) + +//go:noescape +func Ycoshl(tls *TLS, x float64) (r float64) + +//go:noescape +func Ycosl(tls *TLS, x float64) (r float64) + +//go:noescape +func Ycpow(tls *TLS, z complex128, c complex128) (r complex128) + +//go:noescape +func Ycpowf(tls *TLS, z complex64, c complex64) (r complex64) + +//go:noescape +func Ycpowl(tls *TLS, z complex128, c complex128) (r complex128) + +//go:noescape +func Ycproj(tls *TLS, z complex128) (r complex128) + +//go:noescape +func Ycprojf(tls *TLS, z complex64) (r complex64) + +//go:noescape +func Ycprojl(tls *TLS, z complex128) (r complex128) + +//go:noescape +func Ycreal(tls *TLS, z complex128) (r float64) + +//go:noescape +func Ycrealf(tls *TLS, z complex64) (r float32) + +//go:noescape +func Ycreall(tls *TLS, z complex128) (r float64) + +//go:noescape +func Ycreat(tls *TLS, filename uintptr, mode Tmode_t) (r int32) + +//go:noescape +func Ycrypt(tls *TLS, key uintptr, salt uintptr) (r uintptr) + +//go:noescape +func Ycrypt_r(tls *TLS, key uintptr, salt uintptr, data uintptr) (r uintptr) + +//go:noescape +func Ycsin(tls *TLS, z complex128) (r complex128) + +//go:noescape +func Ycsinf(tls *TLS, z complex64) (r complex64) + +//go:noescape +func Ycsinh(tls *TLS, z complex128) (r complex128) + +//go:noescape +func Ycsinhf(tls *TLS, z complex64) (r complex64) + +//go:noescape +func Ycsinhl(tls *TLS, z complex128) (r complex128) + +//go:noescape +func Ycsinl(tls *TLS, z complex128) (r complex128) + +//go:noescape +func Ycsqrt(tls *TLS, z complex128) (r complex128) + +//go:noescape +func Ycsqrtf(tls *TLS, z complex64) (r complex64) + +//go:noescape +func Ycsqrtl(tls *TLS, z complex128) (r complex128) + +//go:noescape +func Yctan(tls *TLS, z complex128) (r complex128) + +//go:noescape +func Yctanf(tls *TLS, z complex64) (r complex64) + +//go:noescape +func Yctanh(tls *TLS, z complex128) (r complex128) + +//go:noescape +func Yctanhf(tls *TLS, z complex64) (r complex64) + +//go:noescape +func Yctanhl(tls *TLS, z complex128) (r complex128) + +//go:noescape +func Yctanl(tls *TLS, z complex128) (r complex128) + +//go:noescape +func Yctermid(tls *TLS, s uintptr) (r uintptr) + +//go:noescape +func Yctime(tls *TLS, t uintptr) (r uintptr) + +//go:noescape +func Yctime_r(tls *TLS, t uintptr, buf uintptr) (r uintptr) + +//go:noescape +func Ycuserid(tls *TLS, buf uintptr) (r uintptr) + +//go:noescape +func Ydcgettext(tls *TLS, domainname uintptr, msgid uintptr, category int32) (r uintptr) + +//go:noescape +func Ydcngettext(tls *TLS, domainname uintptr, msgid1 uintptr, msgid2 uintptr, n uint64, category int32) (r1 uintptr) + +//go:noescape +func Ydelete_module(tls *TLS, a uintptr, b uint32) (r int32) + +//go:noescape +func Ydgettext(tls *TLS, domainname uintptr, msgid uintptr) (r uintptr) + +//go:noescape +func Ydifftime(tls *TLS, t1 Ttime_t, t0 Ttime_t) (r float64) + +//go:noescape +func Ydirfd(tls *TLS, d uintptr) (r int32) + +//go:noescape +func Ydirname(tls *TLS, s uintptr) (r uintptr) + +//go:noescape +func Ydiv(tls *TLS, num int32, den int32) (r Tdiv_t) + +//go:noescape +func Ydlclose(t *TLS, handle uintptr) (_2 int32) + +//go:noescape +func Ydlerror(t *TLS) (_1 uintptr) + +//go:noescape +func Ydlopen(t *TLS, filename uintptr, flags int32) (_3 uintptr) + +//go:noescape +func Ydlsym(t *TLS, handle, symbol uintptr) (_2 uintptr) + +//go:noescape +func Ydn_comp(tls *TLS, src uintptr, dst uintptr, space int32, dnptrs uintptr, lastdnptr uintptr) (r int32) + +//go:noescape +func Ydn_expand(tls *TLS, base uintptr, end uintptr, src uintptr, dest uintptr, space int32) (r int32) + +//go:noescape +func Ydn_skipname(tls *TLS, s uintptr, end uintptr) (r int32) + +//go:noescape +func Ydngettext(tls *TLS, domainname uintptr, msgid1 uintptr, msgid2 uintptr, n uint64) (r uintptr) + +//go:noescape +func Ydprintf(tls *TLS, fd int32, fmt uintptr, va uintptr) (r int32) + +//go:noescape +func Ydrand48(tls *TLS) (r float64) + +//go:noescape +func Ydrem(tls *TLS, x float64, y float64) (r float64) + +//go:noescape +func Ydremf(tls *TLS, x float32, y float32) (r float32) + +//go:noescape +func Ydup(tls *TLS, fd int32) (r int32) + +//go:noescape +func Ydup2(tls *TLS, old int32, new1 int32) (r1 int32) + +//go:noescape +func Ydup3(tls *TLS, old int32, new1 int32, flags int32) (r int32) + +//go:noescape +func Yduplocale(tls *TLS, old Tlocale_t) (r Tlocale_t) + +//go:noescape +func Yeaccess(tls *TLS, filename uintptr, amode int32) (r int32) + +//go:noescape +func Yecvt(tls *TLS, x float64, n int32, dp uintptr, sign uintptr) (r uintptr) + +//go:noescape +func Yencrypt(tls *TLS, block uintptr, edflag int32) + +//go:noescape +func Yendgrent(tls *TLS) + +//go:noescape +func Yendhostent(tls *TLS) + +//go:noescape +func Yendmntent(tls *TLS, f uintptr) (r int32) + +//go:noescape +func Yendnetent(tls *TLS) + +//go:noescape +func Yendprotoent(tls *TLS) + +//go:noescape +func Yendpwent(tls *TLS) + +//go:noescape +func Yendservent(tls *TLS) + +//go:noescape +func Yendspent(tls *TLS) + +//go:noescape +func Yendusershell(tls *TLS) + +//go:noescape +func Yendutent(tls *TLS) + +//go:noescape +func Yendutxent(tls *TLS) + +//go:noescape +func Yepoll_create(tls *TLS, size int32) (r int32) + +//go:noescape +func Yepoll_create1(tls *TLS, flags int32) (r1 int32) + +//go:noescape +func Yepoll_ctl(tls *TLS, fd int32, op int32, fd2 int32, ev uintptr) (r int32) + +//go:noescape +func Yepoll_pwait(tls *TLS, fd int32, ev uintptr, cnt int32, to int32, sigs uintptr) (r1 int32) + +//go:noescape +func Yepoll_wait(tls *TLS, fd int32, ev uintptr, cnt int32, to int32) (r int32) + +//go:noescape +func Yerand48(tls *TLS, s uintptr) (r float64) + +//go:noescape +func Yerf(tls *TLS, x float64) (r1 float64) + +//go:noescape +func Yerfc(tls *TLS, x float64) (r1 float64) + +//go:noescape +func Yerfcf(tls *TLS, x float32) (r1 float32) + +//go:noescape +func Yerfcl(tls *TLS, x float64) (r float64) + +//go:noescape +func Yerff(tls *TLS, x float32) (r1 float32) + +//go:noescape +func Yerfl(tls *TLS, x float64) (r float64) + +//go:noescape +func Yerr(tls *TLS, status int32, fmt uintptr, va uintptr) + +//go:noescape +func Yerrx(tls *TLS, status int32, fmt uintptr, va uintptr) + +//go:noescape +func Yether_aton(tls *TLS, x uintptr) (r uintptr) + +//go:noescape +func Yether_aton_r(tls *TLS, x uintptr, p_a uintptr) (r uintptr) + +//go:noescape +func Yether_hostton(tls *TLS, hostname uintptr, e uintptr) (r int32) + +//go:noescape +func Yether_line(tls *TLS, l uintptr, e uintptr, hostname uintptr) (r int32) + +//go:noescape +func Yether_ntoa(tls *TLS, p_a uintptr) (r uintptr) + +//go:noescape +func Yether_ntoa_r(tls *TLS, p_a uintptr, x uintptr) (r uintptr) + +//go:noescape +func Yether_ntohost(tls *TLS, hostname uintptr, e uintptr) (r int32) + +//go:noescape +func Yeuidaccess(tls *TLS, filename uintptr, amode int32) (r int32) + +//go:noescape +func Yeventfd(tls *TLS, count uint32, flags int32) (r1 int32) + +//go:noescape +func Yeventfd_read(tls *TLS, fd int32, value uintptr) (r int32) + +//go:noescape +func Yeventfd_write(tls *TLS, fd int32, _value Teventfd_t) (r int32) + +//go:noescape +func Yexecl(tls *TLS, path uintptr, argv0 uintptr, va uintptr) (r int32) + +//go:noescape +func Yexecle(tls *TLS, path uintptr, argv0 uintptr, va uintptr) (r int32) + +//go:noescape +func Yexeclp(tls *TLS, file uintptr, argv0 uintptr, va uintptr) (r int32) + +//go:noescape +func Yexecv(tls *TLS, path uintptr, argv uintptr) (r int32) + +//go:noescape +func Yexecve(tls *TLS, path uintptr, argv uintptr, envp uintptr) (r int32) + +//go:noescape +func Yexecvp(tls *TLS, file uintptr, argv uintptr) (r int32) + +//go:noescape +func Yexecvpe(tls *TLS, file uintptr, argv uintptr, envp uintptr) (r int32) + +//go:noescape +func Yexit(tls *TLS, code int32) + +//go:noescape +func Yexp(tls *TLS, x1 float64) (r1 float64) + +//go:noescape +func Yexp10(tls *TLS, x float64) (r float64) + +//go:noescape +func Yexp10f(tls *TLS, x float32) (r float32) + +//go:noescape +func Yexp10l(tls *TLS, x float64) (r float64) + +//go:noescape +func Yexp2(tls *TLS, x1 float64) (r1 float64) + +//go:noescape +func Yexp2f(tls *TLS, x2 float32) (r1 float32) + +//go:noescape +func Yexp2l(tls *TLS, x float64) (r float64) + +//go:noescape +func Yexpf(tls *TLS, x2 float32) (r1 float32) + +//go:noescape +func Yexpl(tls *TLS, x float64) (r float64) + +//go:noescape +func Yexplicit_bzero(tls *TLS, d uintptr, n Tsize_t) + +//go:noescape +func Yexpm1(tls *TLS, x3 float64) (r float64) + +//go:noescape +func Yexpm1f(tls *TLS, x3 float32) (r float32) + +//go:noescape +func Yexpm1l(tls *TLS, x float64) (r float64) + +//go:noescape +func Yfabs(tls *TLS, x float64) (r float64) + +//go:noescape +func Yfabsf(tls *TLS, x float32) (r float32) + +//go:noescape +func Yfabsl(tls *TLS, x float64) (r float64) + +//go:noescape +func Yfaccessat(tls *TLS, fd int32, filename uintptr, amode int32, flag int32) (r int32) + +//go:noescape +func Yfallocate(tls *TLS, fd int32, mode int32, base Toff_t, len1 Toff_t) (r int32) + +//go:noescape +func Yfanotify_init(tls *TLS, flags uint32, event_f_flags uint32) (r int32) + +//go:noescape +func Yfanotify_mark(tls *TLS, fanotify_fd int32, flags uint32, mask uint64, dfd int32, pathname uintptr) (r int32) + +//go:noescape +func Yfchdir(tls *TLS, fd int32) (r int32) + +//go:noescape +func Yfchmod(tls *TLS, fd int32, mode Tmode_t) (r int32) + +//go:noescape +func Yfchmodat(tls *TLS, fd int32, path uintptr, mode Tmode_t, flag int32) (r int32) + +//go:noescape +func Yfchown(tls *TLS, fd int32, uid Tuid_t, gid Tgid_t) (r int32) + +//go:noescape +func Yfchownat(tls *TLS, fd int32, path uintptr, uid Tuid_t, gid Tgid_t, flag int32) (r int32) + +//go:noescape +func Yfclose(tls *TLS, f uintptr) (r1 int32) + +//go:noescape +func Yfcntl(tls *TLS, fd int32, cmd int32, va uintptr) (r int32) + +//go:noescape +func Yfcntl64(tls *TLS, fd int32, cmd int32, va uintptr) (r int32) + +//go:noescape +func Yfcvt(tls *TLS, x float64, n int32, dp uintptr, sign uintptr) (r uintptr) + +//go:noescape +func Yfdatasync(tls *TLS, fd int32) (r int32) + +//go:noescape +func Yfdim(tls *TLS, x float64, y float64) (r float64) + +//go:noescape +func Yfdimf(tls *TLS, x float32, y float32) (r float32) + +//go:noescape +func Yfdiml(tls *TLS, x float64, y float64) (r float64) + +//go:noescape +func Yfdopen(tls *TLS, fd int32, mode uintptr) (r uintptr) + +//go:noescape +func Yfdopendir(tls *TLS, fd int32) (r uintptr) + +//go:noescape +func Yfeclearexcept(tls *TLS, mask int32) (r int32) + +//go:noescape +func Yfegetenv(tls *TLS, envp uintptr) (r int32) + +//go:noescape +func Yfegetround(tls *TLS) (r int32) + +//go:noescape +func Yfeof(tls *TLS, f uintptr) (r int32) + +//go:noescape +func Yfeof_unlocked(tls *TLS, f uintptr) (r int32) + +//go:noescape +func Yferaiseexcept(tls *TLS, mask int32) (r int32) + +//go:noescape +func Yferror(tls *TLS, f uintptr) (r int32) + +//go:noescape +func Yferror_unlocked(tls *TLS, f uintptr) (r int32) + +//go:noescape +func Yfesetenv(tls *TLS, envp uintptr) (r int32) + +//go:noescape +func Yfetestexcept(tls *TLS, mask int32) (r int32) + +//go:noescape +func Yfexecve(tls *TLS, fd int32, argv uintptr, envp uintptr) (r1 int32) + +//go:noescape +func Yfflush(tls *TLS, f uintptr) (r1 int32) + +//go:noescape +func Yfflush_unlocked(tls *TLS, f uintptr) (r int32) + +//go:noescape +func Yffs(tls *TLS, i int32) (r int32) + +//go:noescape +func Yffsl(tls *TLS, i int64) (r int32) + +//go:noescape +func Yffsll(tls *TLS, i int64) (r int32) + +//go:noescape +func Yfgetc(tls *TLS, f1 uintptr) (r int32) + +//go:noescape +func Yfgetc_unlocked(tls *TLS, f uintptr) (r int32) + +//go:noescape +func Yfgetgrent(tls *TLS, f uintptr) (r uintptr) + +//go:noescape +func Yfgetln(tls *TLS, f uintptr, plen uintptr) (r uintptr) + +//go:noescape +func Yfgetpos(tls *TLS, f uintptr, pos uintptr) (r int32) + +//go:noescape +func Yfgetpwent(tls *TLS, f uintptr) (r uintptr) + +//go:noescape +func Yfgets(tls *TLS, s uintptr, n int32, f uintptr) (r uintptr) + +//go:noescape +func Yfgets_unlocked(tls *TLS, s uintptr, n int32, f uintptr) (r uintptr) + +//go:noescape +func Yfgetwc(tls *TLS, f uintptr) (r Twint_t) + +//go:noescape +func Yfgetwc_unlocked(tls *TLS, f uintptr) (r Twint_t) + +//go:noescape +func Yfgetws(tls *TLS, s uintptr, n int32, f uintptr) (r uintptr) + +//go:noescape +func Yfgetws_unlocked(tls *TLS, s uintptr, n int32, f uintptr) (r uintptr) + +//go:noescape +func Yfgetxattr(tls *TLS, filedes int32, name uintptr, value uintptr, size Tsize_t) (r Tssize_t) + +//go:noescape +func Yfileno(tls *TLS, f uintptr) (r int32) + +//go:noescape +func Yfileno_unlocked(tls *TLS, f uintptr) (r int32) + +//go:noescape +func Yfinite(tls *TLS, x float64) (r int32) + +//go:noescape +func Yfinitef(tls *TLS, x float32) (r int32) + +//go:noescape +func Yflistxattr(tls *TLS, filedes int32, list uintptr, size Tsize_t) (r Tssize_t) + +//go:noescape +func Yflock(tls *TLS, fd int32, op int32) (r int32) + +//go:noescape +func Yflockfile(tls *TLS, f uintptr) + +//go:noescape +func Yfloor(tls *TLS, x3 float64) (r float64) + +//go:noescape +func Yfloorf(tls *TLS, x3 float32) (r float32) + +//go:noescape +func Yfloorl(tls *TLS, x float64) (r float64) + +//go:noescape +func Yfma(tls *TLS, x1 float64, y float64, z float64) (r1 float64) + +//go:noescape +func Yfmal(tls *TLS, x float64, y float64, z float64) (r float64) + +//go:noescape +func Yfmax(tls *TLS, x float64, y float64) (r float64) + +//go:noescape +func Yfmaxf(tls *TLS, x float32, y float32) (r float32) + +//go:noescape +func Yfmaxl(tls *TLS, x float64, y float64) (r float64) + +//go:noescape +func Yfmemopen(tls *TLS, buf uintptr, size Tsize_t, mode uintptr) (r uintptr) + +//go:noescape +func Yfmin(tls *TLS, x float64, y float64) (r float64) + +//go:noescape +func Yfminf(tls *TLS, x float32, y float32) (r float32) + +//go:noescape +func Yfminl(tls *TLS, x float64, y float64) (r float64) + +//go:noescape +func Yfmod(tls *TLS, x float64, y float64) (r float64) + +//go:noescape +func Yfmodf(tls *TLS, x float32, y float32) (r float32) + +//go:noescape +func Yfmodl(tls *TLS, x float64, y float64) (r float64) + +//go:noescape +func Yfmtmsg(tls *TLS, classification int64, label uintptr, severity int32, text uintptr, action uintptr, tag uintptr) (r int32) + +//go:noescape +func Yfnmatch(tls *TLS, pat uintptr, str uintptr, flags int32) (r int32) + +//go:noescape +func Yfopen(tls *TLS, filename uintptr, mode uintptr) (r uintptr) + +//go:noescape +func Yfopen64(tls *TLS, filename uintptr, mode uintptr) (r uintptr) + +//go:noescape +func Yfopencookie(tls *TLS, cookie uintptr, mode uintptr, iofuncs Tcookie_io_functions_t) (r uintptr) + +//go:noescape +func Yfork(t *TLS) (_1 int32) + +//go:noescape +func Yfpathconf(tls *TLS, fd int32, name int32) (r int64) + +//go:noescape +func Yfprintf(tls *TLS, f uintptr, fmt uintptr, va uintptr) (r int32) + +//go:noescape +func Yfpurge(tls *TLS, f uintptr) (r int32) + +//go:noescape +func Yfputc(tls *TLS, c1 int32, f1 uintptr) (r int32) + +//go:noescape +func Yfputc_unlocked(tls *TLS, c int32, f uintptr) (r int32) + +//go:noescape +func Yfputs(tls *TLS, s uintptr, f uintptr) (r int32) + +//go:noescape +func Yfputs_unlocked(tls *TLS, s uintptr, f uintptr) (r int32) + +//go:noescape +func Yfputwc(tls *TLS, c Twchar_t, f uintptr) (r Twint_t) + +//go:noescape +func Yfputwc_unlocked(tls *TLS, c Twchar_t, f uintptr) (r Twint_t) + +//go:noescape +func Yfputws(tls *TLS, _ws uintptr, f uintptr) (r int32) + +//go:noescape +func Yfputws_unlocked(tls *TLS, _ws uintptr, f uintptr) (r int32) + +//go:noescape +func Yfread(tls *TLS, destv uintptr, size Tsize_t, nmemb Tsize_t, f uintptr) (r Tsize_t) + +//go:noescape +func Yfread_unlocked(tls *TLS, destv uintptr, size Tsize_t, nmemb Tsize_t, f uintptr) (r Tsize_t) + +//go:noescape +func Yfree(tls *TLS, p uintptr) + +//go:noescape +func Yfreeaddrinfo(tls *TLS, p uintptr) + +//go:noescape +func Yfreeifaddrs(tls *TLS, ifp uintptr) + +//go:noescape +func Yfreelocale(tls *TLS, l Tlocale_t) + +//go:noescape +func Yfremovexattr(tls *TLS, fd int32, name uintptr) (r int32) + +//go:noescape +func Yfreopen(tls *TLS, filename uintptr, mode uintptr, f uintptr) (r uintptr) + +//go:noescape +func Yfrexp(tls *TLS, x float64, e uintptr) (r float64) + +//go:noescape +func Yfrexpf(tls *TLS, x float32, e uintptr) (r float32) + +//go:noescape +func Yfrexpl(tls *TLS, x float64, e uintptr) (r float64) + +//go:noescape +func Yfscanf(tls *TLS, f uintptr, fmt uintptr, va uintptr) (r int32) + +//go:noescape +func Yfseek(tls *TLS, f uintptr, off int64, whence int32) (r int32) + +//go:noescape +func Yfseeko(tls *TLS, f uintptr, off Toff_t, whence int32) (r int32) + +//go:noescape +func Yfsetpos(tls *TLS, f uintptr, pos uintptr) (r int32) + +//go:noescape +func Yfsetxattr(tls *TLS, filedes int32, name uintptr, value uintptr, size Tsize_t, flags int32) (r int32) + +//go:noescape +func Yfstat(tls *TLS, fd int32, st uintptr) (r int32) + +//go:noescape +func Yfstat64(tls *TLS, fd int32, st uintptr) (r int32) + +//go:noescape +func Yfstatat(tls *TLS, fd int32, path uintptr, st uintptr, flag int32) (r int32) + +//go:noescape +func Yfstatfs(tls *TLS, fd int32, buf uintptr) (r int32) + +//go:noescape +func Yfstatvfs(tls *TLS, fd int32, buf uintptr) (r int32) + +//go:noescape +func Yfsync(tls *TLS, fd int32) (r int32) + +//go:noescape +func Yftell(tls *TLS, f uintptr) (r int64) + +//go:noescape +func Yftello(tls *TLS, f uintptr) (r Toff_t) + +//go:noescape +func Yftime(tls *TLS, tp uintptr) (r int32) + +//go:noescape +func Yftok(tls *TLS, path uintptr, id int32) (r Tkey_t) + +//go:noescape +func Yftruncate(tls *TLS, fd int32, length Toff_t) (r int32) + +//go:noescape +func Yftruncate64(tls *TLS, fd int32, length Toff_t) (r int32) + +//go:noescape +func Yftrylockfile(tls *TLS, f uintptr) (r int32) + +//go:noescape +func Yfts64_close(t *TLS, ftsp uintptr) (_2 int32) + +//go:noescape +func Yfts64_open(t *TLS, path_argv uintptr, options int32, compar uintptr) (_4 uintptr) + +//go:noescape +func Yfts64_read(t *TLS, ftsp uintptr) (_2 uintptr) + +//go:noescape +func Yfts_close(t *TLS, ftsp uintptr) (_2 int32) + +//go:noescape +func Yfts_open(t *TLS, path_argv uintptr, options int32, compar uintptr) (_4 uintptr) + +//go:noescape +func Yfts_read(t *TLS, ftsp uintptr) (_2 uintptr) + +//go:noescape +func Yftw(tls *TLS, path uintptr, __ccgo_fp_fn uintptr, fd_limit int32) (r int32) + +//go:noescape +func __ccgo_abi0_ftw_1(_0 *TLS, _1 uintptr, _2 uintptr, _3 int32, __ccgo_fp uintptr) (_4 int32) + +func __ccgo_abiInternal_ftw_1(tls *TLS, dest, abi0CodePtr uintptr) { + f := func(_0 *TLS, _1 uintptr, _2 uintptr, _3 int32) (_4 int32) { + return __ccgo_abi0_ftw_1(_0, _1, _2, _3, abi0CodePtr) + } + *(*[2]uintptr)(unsafe.Pointer(dest)) = *(*[2]uintptr)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(&f)))) +} + +//go:noescape +func Yfunlockfile(tls *TLS, f uintptr) + +//go:noescape +func Yfutimens(tls *TLS, fd int32, times uintptr) (r int32) + +//go:noescape +func Yfutimes(tls *TLS, fd int32, tv uintptr) (r int32) + +//go:noescape +func Yfutimesat(tls *TLS, dirfd int32, pathname uintptr, times uintptr) (r int32) + +//go:noescape +func Yfwide(tls *TLS, f uintptr, mode int32) (r int32) + +//go:noescape +func Yfwprintf(tls *TLS, f uintptr, fmt uintptr, va uintptr) (r int32) + +//go:noescape +func Yfwrite(tls *TLS, src uintptr, size Tsize_t, nmemb Tsize_t, f uintptr) (r Tsize_t) + +//go:noescape +func Yfwrite_unlocked(tls *TLS, src uintptr, size Tsize_t, nmemb Tsize_t, f uintptr) (r Tsize_t) + +//go:noescape +func Yfwscanf(tls *TLS, f uintptr, fmt uintptr, va uintptr) (r int32) + +//go:noescape +func Ygai_strerror(tls *TLS, ecode int32) (r uintptr) + +//go:noescape +func Ygcvt(tls *TLS, x float64, n int32, b uintptr) (r uintptr) + +//go:noescape +func Yget_avphys_pages(tls *TLS) (r int64) + +//go:noescape +func Yget_current_dir_name(tls *TLS) (r uintptr) + +//go:noescape +func Yget_nprocs(tls *TLS) (r int32) + +//go:noescape +func Yget_nprocs_conf(tls *TLS) (r int32) + +//go:noescape +func Yget_phys_pages(tls *TLS) (r int64) + +//go:noescape +func Ygetaddrinfo(tls *TLS, host uintptr, serv uintptr, hint uintptr, res uintptr) (r1 int32) + +//go:noescape +func Ygetauxval(tls *TLS, item uint64) (r uint64) + +//go:noescape +func Ygetc(tls *TLS, f1 uintptr) (r int32) + +//go:noescape +func Ygetc_unlocked(tls *TLS, f uintptr) (r int32) + +//go:noescape +func Ygetchar(tls *TLS) (r int32) + +//go:noescape +func Ygetchar_unlocked(tls *TLS) (r int32) + +//go:noescape +func Ygetcwd(tls *TLS, buf uintptr, size Tsize_t) (r uintptr) + +//go:noescape +func Ygetdate(tls *TLS, s uintptr) (r uintptr) + +//go:noescape +func Ygetdelim(tls *TLS, s uintptr, n uintptr, delim int32, f uintptr) (r Tssize_t) + +//go:noescape +func Ygetdents(tls *TLS, fd int32, buf uintptr, len1 Tsize_t) (r int32) + +//go:noescape +func Ygetdomainname(tls *TLS, name uintptr, len1 Tsize_t) (r int32) + +//go:noescape +func Ygetdtablesize(tls *TLS) (r int32) + +//go:noescape +func Ygetegid(tls *TLS) (r Tgid_t) + +//go:noescape +func Ygetentropy(tls *TLS, buffer uintptr, len1 Tsize_t) (r int32) + +//go:noescape +func Ygetenv(tls *TLS, name uintptr) (r uintptr) + +//go:noescape +func Ygeteuid(tls *TLS) (r Tuid_t) + +//go:noescape +func Ygetgid(tls *TLS) (r Tgid_t) + +//go:noescape +func Ygetgrent(tls *TLS) (r uintptr) + +//go:noescape +func Ygetgrgid(tls *TLS, gid Tgid_t) (r uintptr) + +//go:noescape +func Ygetgrgid_r(tls *TLS, gid Tgid_t, gr uintptr, buf uintptr, size Tsize_t, res uintptr) (r int32) + +//go:noescape +func Ygetgrnam(tls *TLS, name uintptr) (r uintptr) + +//go:noescape +func Ygetgrnam_r(tls *TLS, name uintptr, gr uintptr, buf uintptr, size Tsize_t, res uintptr) (r int32) + +//go:noescape +func Ygetgrouplist(tls *TLS, user uintptr, gid Tgid_t, groups uintptr, ngroups uintptr) (r int32) + +//go:noescape +func Ygetgroups(tls *TLS, count int32, list uintptr) (r int32) + +//go:noescape +func Ygethostbyaddr(tls *TLS, a uintptr, l Tsocklen_t, af int32) (r uintptr) + +//go:noescape +func Ygethostbyaddr_r(tls *TLS, a uintptr, l Tsocklen_t, af int32, h uintptr, buf uintptr, buflen Tsize_t, res uintptr, err uintptr) (r int32) + +//go:noescape +func Ygethostbyname(tls *TLS, name uintptr) (r uintptr) + +//go:noescape +func Ygethostbyname2(tls *TLS, name uintptr, af int32) (r uintptr) + +//go:noescape +func Ygethostbyname2_r(tls *TLS, name uintptr, af int32, h uintptr, buf uintptr, buflen Tsize_t, res uintptr, err uintptr) (r int32) + +//go:noescape +func Ygethostbyname_r(tls *TLS, name uintptr, h uintptr, buf uintptr, buflen Tsize_t, res uintptr, err uintptr) (r int32) + +//go:noescape +func Ygethostent(tls *TLS) (r uintptr) + +//go:noescape +func Ygethostid(tls *TLS) (r int64) + +//go:noescape +func Ygethostname(tls *TLS, name uintptr, len1 Tsize_t) (r int32) + +//go:noescape +func Ygetifaddrs(tls *TLS, ifap uintptr) (r1 int32) + +//go:noescape +func Ygetitimer(tls *TLS, which int32, old uintptr) (r1 int32) + +//go:noescape +func Ygetline(tls *TLS, s uintptr, n uintptr, f uintptr) (r Tssize_t) + +//go:noescape +func Ygetloadavg(tls *TLS, a uintptr, n int32) (r int32) + +//go:noescape +func Ygetlogin(tls *TLS) (r uintptr) + +//go:noescape +func Ygetlogin_r(tls *TLS, name uintptr, size Tsize_t) (r int32) + +//go:noescape +func Ygetmntent(tls *TLS, f uintptr) (r uintptr) + +//go:noescape +func Ygetmntent_r(tls *TLS, f uintptr, mnt uintptr, linebuf uintptr, buflen int32) (r uintptr) + +//go:noescape +func Ygetnameinfo(tls *TLS, sa uintptr, sl Tsocklen_t, node uintptr, nodelen Tsocklen_t, serv uintptr, servlen Tsocklen_t, flags int32) (r int32) + +//go:noescape +func Ygetnetbyaddr(tls *TLS, net Tuint32_t, type1 int32) (r uintptr) + +//go:noescape +func Ygetnetbyname(tls *TLS, name uintptr) (r uintptr) + +//go:noescape +func Ygetnetent(tls *TLS) (r uintptr) + +//go:noescape +func Ygetopt(tls *TLS, argc int32, argv uintptr, optstring uintptr) (r int32) + +//go:noescape +func Ygetopt_long(tls *TLS, argc int32, argv uintptr, optstring uintptr, longopts uintptr, idx uintptr) (r int32) + +//go:noescape +func Ygetopt_long_only(tls *TLS, argc int32, argv uintptr, optstring uintptr, longopts uintptr, idx uintptr) (r int32) + +//go:noescape +func Ygetpagesize(tls *TLS) (r int32) + +//go:noescape +func Ygetpass(tls *TLS, prompt uintptr) (r uintptr) + +//go:noescape +func Ygetpeername(tls *TLS, fd int32, addr uintptr, len1 uintptr) (r1 int32) + +//go:noescape +func Ygetpgid(tls *TLS, pid Tpid_t) (r Tpid_t) + +//go:noescape +func Ygetpgrp(tls *TLS) (r Tpid_t) + +//go:noescape +func Ygetpid(tls *TLS) (r Tpid_t) + +//go:noescape +func Ygetppid(tls *TLS) (r Tpid_t) + +//go:noescape +func Ygetpriority(tls *TLS, which int32, who Tid_t) (r int32) + +//go:noescape +func Ygetprotobyname(tls *TLS, name uintptr) (r uintptr) + +//go:noescape +func Ygetprotobynumber(tls *TLS, num int32) (r uintptr) + +//go:noescape +func Ygetprotoent(tls *TLS) (r uintptr) + +//go:noescape +func Ygetpwent(tls *TLS) (r uintptr) + +//go:noescape +func Ygetpwnam(tls *TLS, name uintptr) (r uintptr) + +//go:noescape +func Ygetpwnam_r(tls *TLS, name uintptr, pw uintptr, buf uintptr, size Tsize_t, res uintptr) (r int32) + +//go:noescape +func Ygetpwuid(tls *TLS, uid Tuid_t) (r uintptr) + +//go:noescape +func Ygetpwuid_r(tls *TLS, uid Tuid_t, pw uintptr, buf uintptr, size Tsize_t, res uintptr) (r int32) + +//go:noescape +func Ygetrandom(tls *TLS, buf uintptr, buflen Tsize_t, flags uint32) (r Tssize_t) + +//go:noescape +func Ygetresgid(tls *TLS, rgid uintptr, egid uintptr, sgid uintptr) (r int32) + +//go:noescape +func Ygetresuid(tls *TLS, ruid uintptr, euid uintptr, suid uintptr) (r int32) + +//go:noescape +func Ygetrlimit(tls *TLS, resource int32, rlim uintptr) (r int32) + +//go:noescape +func Ygetrlimit64(tls *TLS, resource int32, rlim uintptr) (r int32) + +//go:noescape +func Ygetrusage(tls *TLS, who int32, ru uintptr) (r1 int32) + +//go:noescape +func Ygets(tls *TLS, s uintptr) (r uintptr) + +//go:noescape +func Ygetservbyname(tls *TLS, name uintptr, prots uintptr) (r uintptr) + +//go:noescape +func Ygetservbyname_r(tls *TLS, name uintptr, prots uintptr, se uintptr, buf uintptr, buflen Tsize_t, res uintptr) (r int32) + +//go:noescape +func Ygetservent(tls *TLS) (r uintptr) + +//go:noescape +func Ygetsid(tls *TLS, pid Tpid_t) (r Tpid_t) + +//go:noescape +func Ygetsockname(tls *TLS, fd int32, addr uintptr, len1 uintptr) (r1 int32) + +//go:noescape +func Ygetsockopt(tls *TLS, fd int32, level int32, optname int32, optval uintptr, optlen uintptr) (r2 int32) + +//go:noescape +func Ygetspent(tls *TLS) (r uintptr) + +//go:noescape +func Ygetsubopt(tls *TLS, opt uintptr, keys uintptr, val uintptr) (r int32) + +//go:noescape +func Ygettext(tls *TLS, msgid uintptr) (r uintptr) + +//go:noescape +func Ygettimeofday(tls *TLS, tv uintptr, tz uintptr) (r int32) + +//go:noescape +func Ygetuid(tls *TLS) (r Tuid_t) + +//go:noescape +func Ygetusershell(tls *TLS) (r uintptr) + +//go:noescape +func Ygetutent(tls *TLS) (r uintptr) + +//go:noescape +func Ygetutid(tls *TLS, ut uintptr) (r uintptr) + +//go:noescape +func Ygetutline(tls *TLS, ut uintptr) (r uintptr) + +//go:noescape +func Ygetutxent(tls *TLS) (r uintptr) + +//go:noescape +func Ygetutxid(tls *TLS, ut uintptr) (r uintptr) + +//go:noescape +func Ygetutxline(tls *TLS, ut uintptr) (r uintptr) + +//go:noescape +func Ygetw(tls *TLS, f uintptr) (r int32) + +//go:noescape +func Ygetwc(tls *TLS, f uintptr) (r Twint_t) + +//go:noescape +func Ygetwc_unlocked(tls *TLS, f uintptr) (r Twint_t) + +//go:noescape +func Ygetwchar(tls *TLS) (r Twint_t) + +//go:noescape +func Ygetwchar_unlocked(tls *TLS) (r Twint_t) + +//go:noescape +func Ygetxattr(tls *TLS, path uintptr, name uintptr, value uintptr, size Tsize_t) (r Tssize_t) + +//go:noescape +func Yglob(tls *TLS, pat uintptr, flags int32, __ccgo_fp_errfunc uintptr, g_ uintptr) (r int32) + +//go:noescape +func __ccgo_abi0_glob_2(_0 *TLS, _1 uintptr, _2 int32, __ccgo_fp uintptr) (_3 int32) + +func __ccgo_abiInternal_glob_2(tls *TLS, dest, abi0CodePtr uintptr) { + f := func(_0 *TLS, _1 uintptr, _2 int32) (_3 int32) { + return __ccgo_abi0_glob_2(_0, _1, _2, abi0CodePtr) + } + *(*[2]uintptr)(unsafe.Pointer(dest)) = *(*[2]uintptr)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(&f)))) +} + +//go:noescape +func Yglobfree(tls *TLS, g_ uintptr) + +//go:noescape +func Ygmtime(tls *TLS, t uintptr) (r uintptr) + +//go:noescape +func Ygmtime_r(tls *TLS, t uintptr, tm uintptr) (r uintptr) + +//go:noescape +func Ygrantpt(tls *TLS, fd int32) (r int32) + +//go:noescape +func Yhasmntopt(tls *TLS, mnt uintptr, opt uintptr) (r uintptr) + +//go:noescape +func Yhcreate(tls *TLS, nel Tsize_t) (r int32) + +//go:noescape +func Yhdestroy(tls *TLS) + +//go:noescape +func Yherror(tls *TLS, msg uintptr) + +//go:noescape +func Yhsearch(tls *TLS, item TENTRY, action TACTION) (r uintptr) + +//go:noescape +func Yhstrerror(tls *TLS, ecode int32) (r uintptr) + +//go:noescape +func Yhtonl(tls *TLS, n Tuint32_t) (r Tuint32_t) + +//go:noescape +func Yhtons(tls *TLS, n Tuint16_t) (r Tuint16_t) + +//go:noescape +func Yhypot(tls *TLS, x float64, y float64) (r float64) + +//go:noescape +func Yhypotf(tls *TLS, x float32, y float32) (r float32) + +//go:noescape +func Yhypotl(tls *TLS, x float64, y float64) (r float64) + +//go:noescape +func Yiconv(tls *TLS, cd Ticonv_t, in uintptr, inb uintptr, out uintptr, outb uintptr) (r Tsize_t) + +//go:noescape +func Yiconv_close(tls *TLS, cd Ticonv_t) (r int32) + +//go:noescape +func Yiconv_open(tls *TLS, to uintptr, from uintptr) (r Ticonv_t) + +//go:noescape +func Yif_freenameindex(tls *TLS, idx uintptr) + +//go:noescape +func Yif_indextoname(tls *TLS, index uint32, name uintptr) (r1 uintptr) + +//go:noescape +func Yif_nameindex(tls *TLS) (r uintptr) + +//go:noescape +func Yif_nametoindex(tls *TLS, name uintptr) (r1 uint32) + +//go:noescape +func Yilogb(tls *TLS, x3 float64) (r int32) + +//go:noescape +func Yilogbf(tls *TLS, x3 float32) (r int32) + +//go:noescape +func Yilogbl(tls *TLS, x float64) (r int32) + +//go:noescape +func Yimaxabs(tls *TLS, a Tintmax_t) (r Tintmax_t) + +//go:noescape +func Yimaxdiv(tls *TLS, num Tintmax_t, den Tintmax_t) (r Timaxdiv_t) + +//go:noescape +func Yindex(tls *TLS, s uintptr, c int32) (r uintptr) + +//go:noescape +func Yinet_addr(tls *TLS, p uintptr) (r Tin_addr_t) + +//go:noescape +func Yinet_aton(tls *TLS, s0 uintptr, dest uintptr) (r int32) + +//go:noescape +func Yinet_lnaof(tls *TLS, in Tin_addr) (r Tin_addr_t) + +//go:noescape +func Yinet_makeaddr(tls *TLS, n Tin_addr_t, h Tin_addr_t) (r Tin_addr) + +//go:noescape +func Yinet_netof(tls *TLS, in Tin_addr) (r Tin_addr_t) + +//go:noescape +func Yinet_network(tls *TLS, p uintptr) (r Tin_addr_t) + +//go:noescape +func Yinet_ntoa(tls *TLS, _in Tin_addr) (r uintptr) + +//go:noescape +func Yinet_ntop(tls *TLS, af int32, a0 uintptr, s uintptr, l Tsocklen_t) (r uintptr) + +//go:noescape +func Yinet_pton(tls *TLS, af int32, s uintptr, a0 uintptr) (r int32) + +//go:noescape +func Yinit_module(tls *TLS, a uintptr, b uint64, c uintptr) (r int32) + +//go:noescape +func Yinitstate(tls *TLS, seed uint32, state uintptr, size Tsize_t) (r uintptr) + +//go:noescape +func Yinitstate_r(t *TLS, seed uint32, statebuf uintptr, statelen Tsize_t, buf uintptr) (_5 int32) + +//go:noescape +func Yinotify_add_watch(tls *TLS, fd int32, pathname uintptr, mask Tuint32_t) (r int32) + +//go:noescape +func Yinotify_init(tls *TLS) (r int32) + +//go:noescape +func Yinotify_init1(tls *TLS, flags int32) (r1 int32) + +//go:noescape +func Yinotify_rm_watch(tls *TLS, fd int32, wd int32) (r int32) + +//go:noescape +func Yinsque(tls *TLS, element uintptr, pred uintptr) + +//go:noescape +func Yioctl(tls *TLS, fd int32, req int32, va uintptr) (r1 int32) + +//go:noescape +func Yioperm(tls *TLS, from uint64, num uint64, turn_on int32) (r int32) + +//go:noescape +func Yiopl(tls *TLS, level int32) (r int32) + +//go:noescape +func Yisalnum(tls *TLS, c int32) (r int32) + +//go:noescape +func Yisalnum_l(tls *TLS, c int32, l Tlocale_t) (r int32) + +//go:noescape +func Yisalpha(tls *TLS, c int32) (r int32) + +//go:noescape +func Yisalpha_l(tls *TLS, c int32, l Tlocale_t) (r int32) + +//go:noescape +func Yisascii(tls *TLS, c int32) (r int32) + +//go:noescape +func Yisastream(tls *TLS, fd int32) (r int32) + +//go:noescape +func Yisatty(tls *TLS, fd int32) (r1 int32) + +//go:noescape +func Yisblank(tls *TLS, c int32) (r int32) + +//go:noescape +func Yisblank_l(tls *TLS, c int32, l Tlocale_t) (r int32) + +//go:noescape +func Yiscntrl(tls *TLS, c int32) (r int32) + +//go:noescape +func Yiscntrl_l(tls *TLS, c int32, l Tlocale_t) (r int32) + +//go:noescape +func Yisdigit(tls *TLS, c int32) (r int32) + +//go:noescape +func Yisdigit_l(tls *TLS, c int32, l Tlocale_t) (r int32) + +//go:noescape +func Yisgraph(tls *TLS, c int32) (r int32) + +//go:noescape +func Yisgraph_l(tls *TLS, c int32, l Tlocale_t) (r int32) + +//go:noescape +func Yislower(tls *TLS, c int32) (r int32) + +//go:noescape +func Yislower_l(tls *TLS, c int32, l Tlocale_t) (r int32) + +//go:noescape +func Yisnan(t *TLS, x float64) (_2 int32) + +//go:noescape +func Yisnanf(t *TLS, arg float32) (_2 int32) + +//go:noescape +func Yisnanl(t *TLS, arg float64) (_2 int32) + +//go:noescape +func Yisprint(tls *TLS, c int32) (r int32) + +//go:noescape +func Yisprint_l(tls *TLS, c int32, l Tlocale_t) (r int32) + +//go:noescape +func Yispunct(tls *TLS, c int32) (r int32) + +//go:noescape +func Yispunct_l(tls *TLS, c int32, l Tlocale_t) (r int32) + +//go:noescape +func Yissetugid(tls *TLS) (r int32) + +//go:noescape +func Yisspace(tls *TLS, c int32) (r int32) + +//go:noescape +func Yisspace_l(tls *TLS, c int32, l Tlocale_t) (r int32) + +//go:noescape +func Yisupper(tls *TLS, c int32) (r int32) + +//go:noescape +func Yisupper_l(tls *TLS, c int32, l Tlocale_t) (r int32) + +//go:noescape +func Yiswalnum(tls *TLS, wc Twint_t) (r int32) + +//go:noescape +func Yiswalnum_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) + +//go:noescape +func Yiswalpha(tls *TLS, wc Twint_t) (r int32) + +//go:noescape +func Yiswalpha_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) + +//go:noescape +func Yiswblank(tls *TLS, wc Twint_t) (r int32) + +//go:noescape +func Yiswblank_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) + +//go:noescape +func Yiswcntrl(tls *TLS, wc Twint_t) (r int32) + +//go:noescape +func Yiswcntrl_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) + +//go:noescape +func Yiswctype(tls *TLS, wc Twint_t, type1 Twctype_t) (r int32) + +//go:noescape +func Yiswctype_l(tls *TLS, c Twint_t, t Twctype_t, l Tlocale_t) (r int32) + +//go:noescape +func Yiswdigit(tls *TLS, wc Twint_t) (r int32) + +//go:noescape +func Yiswdigit_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) + +//go:noescape +func Yiswgraph(tls *TLS, wc Twint_t) (r int32) + +//go:noescape +func Yiswgraph_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) + +//go:noescape +func Yiswlower(tls *TLS, wc Twint_t) (r int32) + +//go:noescape +func Yiswlower_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) + +//go:noescape +func Yiswprint(tls *TLS, wc Twint_t) (r int32) + +//go:noescape +func Yiswprint_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) + +//go:noescape +func Yiswpunct(tls *TLS, wc Twint_t) (r int32) + +//go:noescape +func Yiswpunct_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) + +//go:noescape +func Yiswspace(tls *TLS, wc Twint_t) (r int32) + +//go:noescape +func Yiswspace_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) + +//go:noescape +func Yiswupper(tls *TLS, wc Twint_t) (r int32) + +//go:noescape +func Yiswupper_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) + +//go:noescape +func Yiswxdigit(tls *TLS, wc Twint_t) (r int32) + +//go:noescape +func Yiswxdigit_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) + +//go:noescape +func Yisxdigit(tls *TLS, c int32) (r int32) + +//go:noescape +func Yisxdigit_l(tls *TLS, c int32, l Tlocale_t) (r int32) + +//go:noescape +func Yj0(tls *TLS, x float64) (r1 float64) + +//go:noescape +func Yj0f(tls *TLS, x float32) (r1 float32) + +//go:noescape +func Yj1(tls *TLS, x float64) (r1 float64) + +//go:noescape +func Yj1f(tls *TLS, x float32) (r1 float32) + +//go:noescape +func Yjn(tls *TLS, n int32, x float64) (r float64) + +//go:noescape +func Yjnf(tls *TLS, n int32, x float32) (r float32) + +//go:noescape +func Yjrand48(tls *TLS, s uintptr) (r int64) + +//go:noescape +func Ykill(tls *TLS, pid Tpid_t, sig int32) (r int32) + +//go:noescape +func Ykillpg(tls *TLS, pgid Tpid_t, sig int32) (r int32) + +//go:noescape +func Yklogctl(tls *TLS, type1 int32, buf uintptr, len1 int32) (r int32) + +//go:noescape +func Yl64a(tls *TLS, x0 int64) (r uintptr) + +//go:noescape +func Ylabs(tls *TLS, a int64) (r int64) + +//go:noescape +func Ylchmod(tls *TLS, path uintptr, mode Tmode_t) (r int32) + +//go:noescape +func Ylchown(tls *TLS, path uintptr, uid Tuid_t, gid Tgid_t) (r int32) + +//go:noescape +func Ylckpwdf(tls *TLS) (r int32) + +//go:noescape +func Ylcong48(tls *TLS, p uintptr) + +//go:noescape +func Yldexp(tls *TLS, x float64, n int32) (r float64) + +//go:noescape +func Yldexpf(tls *TLS, x float32, n int32) (r float32) + +//go:noescape +func Yldexpl(tls *TLS, x float64, n int32) (r float64) + +//go:noescape +func Yldiv(tls *TLS, num int64, den int64) (r Tldiv_t) + +//go:noescape +func Ylfind(tls *TLS, key uintptr, base uintptr, nelp uintptr, width Tsize_t, __ccgo_fp_compar uintptr) (r uintptr) + +//go:noescape +func __ccgo_abi0_lfind_4(_0 *TLS, _1 uintptr, _2 uintptr, __ccgo_fp uintptr) (_3 int32) + +func __ccgo_abiInternal_lfind_4(tls *TLS, dest, abi0CodePtr uintptr) { + f := func(_0 *TLS, _1 uintptr, _2 uintptr) (_3 int32) { + return __ccgo_abi0_lfind_4(_0, _1, _2, abi0CodePtr) + } + *(*[2]uintptr)(unsafe.Pointer(dest)) = *(*[2]uintptr)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(&f)))) +} + +//go:noescape +func Ylgamma(tls *TLS, x float64) (r float64) + +//go:noescape +func Ylgamma_r(tls *TLS, x float64, signgamp uintptr) (r float64) + +//go:noescape +func Ylgammaf(tls *TLS, x float32) (r float32) + +//go:noescape +func Ylgammaf_r(tls *TLS, x float32, signgamp uintptr) (r float32) + +//go:noescape +func Ylgammal(tls *TLS, x float64) (r float64) + +//go:noescape +func Ylgammal_r(tls *TLS, x float64, sg uintptr) (r float64) + +//go:noescape +func Ylgetxattr(tls *TLS, path uintptr, name uintptr, value uintptr, size Tsize_t) (r Tssize_t) + +//go:noescape +func Ylink(tls *TLS, existing uintptr, new1 uintptr) (r int32) + +//go:noescape +func Ylinkat(tls *TLS, fd1 int32, existing uintptr, fd2 int32, new1 uintptr, flag int32) (r int32) + +//go:noescape +func Ylisten(tls *TLS, fd int32, backlog int32) (r1 int32) + +//go:noescape +func Ylistxattr(tls *TLS, path uintptr, list uintptr, size Tsize_t) (r Tssize_t) + +//go:noescape +func Yllabs(tls *TLS, a int64) (r int64) + +//go:noescape +func Ylldiv(tls *TLS, num int64, den int64) (r Tlldiv_t) + +//go:noescape +func Yllistxattr(tls *TLS, path uintptr, list uintptr, size Tsize_t) (r Tssize_t) + +//go:noescape +func Yllrint(tls *TLS, x float64) (r int64) + +//go:noescape +func Yllrintf(tls *TLS, x float32) (r int64) + +//go:noescape +func Yllrintl(tls *TLS, x float64) (r int64) + +//go:noescape +func Yllround(tls *TLS, x float64) (r int64) + +//go:noescape +func Yllroundf(tls *TLS, x float32) (r int64) + +//go:noescape +func Yllroundl(tls *TLS, x float64) (r int64) + +//go:noescape +func Ylocaleconv(tls *TLS) (r uintptr) + +//go:noescape +func Ylocaltime(tls *TLS, t uintptr) (r uintptr) + +//go:noescape +func Ylocaltime_r(tls *TLS, t uintptr, tm uintptr) (r uintptr) + +//go:noescape +func Ylockf(tls *TLS, fd int32, op int32, size Toff_t) (r int32) + +//go:noescape +func Ylog(tls *TLS, x1 float64) (r1 float64) + +//go:noescape +func Ylog10(tls *TLS, x float64) (r float64) + +//go:noescape +func Ylog10f(tls *TLS, x float32) (r float32) + +//go:noescape +func Ylog10l(tls *TLS, x float64) (r float64) + +//go:noescape +func Ylog1p(tls *TLS, x3 float64) (r float64) + +//go:noescape +func Ylog1pf(tls *TLS, x3 float32) (r float32) + +//go:noescape +func Ylog1pl(tls *TLS, x float64) (r float64) + +//go:noescape +func Ylog2(tls *TLS, x1 float64) (r1 float64) + +//go:noescape +func Ylog2f(tls *TLS, x1 float32) (r1 float32) + +//go:noescape +func Ylog2l(tls *TLS, x float64) (r float64) + +//go:noescape +func Ylogb(tls *TLS, x float64) (r float64) + +//go:noescape +func Ylogbf(tls *TLS, x float32) (r float32) + +//go:noescape +func Ylogbl(tls *TLS, x float64) (r float64) + +//go:noescape +func Ylogf(tls *TLS, x1 float32) (r1 float32) + +//go:noescape +func Ylogin_tty(tls *TLS, fd int32) (r int32) + +//go:noescape +func Ylogl(tls *TLS, x float64) (r float64) + +//go:noescape +func Ylongjmp(t *TLS, env uintptr, val int32) + +//go:noescape +func Ylrand48(tls *TLS) (r int64) + +//go:noescape +func Ylremovexattr(tls *TLS, path uintptr, name uintptr) (r int32) + +//go:noescape +func Ylrint(tls *TLS, x float64) (r int64) + +//go:noescape +func Ylrintf(tls *TLS, x float32) (r int64) + +//go:noescape +func Ylrintl(tls *TLS, x float64) (r int64) + +//go:noescape +func Ylround(tls *TLS, x float64) (r int64) + +//go:noescape +func Ylroundf(tls *TLS, x float32) (r int64) + +//go:noescape +func Ylroundl(tls *TLS, x float64) (r int64) + +//go:noescape +func Ylsearch(tls *TLS, key uintptr, base uintptr, nelp uintptr, width Tsize_t, __ccgo_fp_compar uintptr) (r uintptr) + +//go:noescape +func __ccgo_abi0_lsearch_4(_0 *TLS, _1 uintptr, _2 uintptr, __ccgo_fp uintptr) (_3 int32) + +func __ccgo_abiInternal_lsearch_4(tls *TLS, dest, abi0CodePtr uintptr) { + f := func(_0 *TLS, _1 uintptr, _2 uintptr) (_3 int32) { + return __ccgo_abi0_lsearch_4(_0, _1, _2, abi0CodePtr) + } + *(*[2]uintptr)(unsafe.Pointer(dest)) = *(*[2]uintptr)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(&f)))) +} + +//go:noescape +func Ylseek(tls *TLS, fd int32, offset Toff_t, whence int32) (r Toff_t) + +//go:noescape +func Ylseek64(tls *TLS, fd int32, offset Toff_t, whence int32) (r Toff_t) + +//go:noescape +func Ylsetxattr(tls *TLS, path uintptr, name uintptr, value uintptr, size Tsize_t, flags int32) (r int32) + +//go:noescape +func Ylstat(tls *TLS, path uintptr, buf uintptr) (r int32) + +//go:noescape +func Ylstat64(tls *TLS, path uintptr, buf uintptr) (r int32) + +//go:noescape +func Ylutimes(tls *TLS, filename uintptr, tv uintptr) (r int32) + +//go:noescape +func Ymadvise(tls *TLS, addr uintptr, len1 Tsize_t, advice int32) (r int32) + +//go:noescape +func Ymalloc(tls *TLS, n Tsize_t) (r uintptr) + +//go:noescape +func Ymalloc_usable_size(tls *TLS, p uintptr) (r Tsize_t) + +//go:noescape +func Ymblen(tls *TLS, s uintptr, n Tsize_t) (r int32) + +//go:noescape +func Ymbrlen(tls *TLS, s uintptr, n Tsize_t, st uintptr) (r Tsize_t) + +//go:noescape +func Ymbrtoc16(tls *TLS, pc16 uintptr, s uintptr, n Tsize_t, ps uintptr) (r Tsize_t) + +//go:noescape +func Ymbrtoc32(tls *TLS, pc32 uintptr, s uintptr, n Tsize_t, ps uintptr) (r Tsize_t) + +//go:noescape +func Ymbrtowc(tls *TLS, wc uintptr, src uintptr, n Tsize_t, st uintptr) (r Tsize_t) + +//go:noescape +func Ymbsinit(tls *TLS, st uintptr) (r int32) + +//go:noescape +func Ymbsnrtowcs(tls *TLS, wcs uintptr, src uintptr, n Tsize_t, wn Tsize_t, st uintptr) (r Tsize_t) + +//go:noescape +func Ymbsrtowcs(tls *TLS, ws uintptr, src uintptr, wn Tsize_t, st uintptr) (r Tsize_t) + +//go:noescape +func Ymbstowcs(tls *TLS, ws uintptr, _s uintptr, wn Tsize_t) (r Tsize_t) + +//go:noescape +func Ymbtowc(tls *TLS, wc uintptr, src uintptr, n Tsize_t) (r int32) + +//go:noescape +func Ymemccpy(tls *TLS, dest uintptr, src uintptr, c int32, n Tsize_t) (r uintptr) + +//go:noescape +func Ymemchr(tls *TLS, src uintptr, c int32, n Tsize_t) (r uintptr) + +//go:noescape +func Ymemcmp(tls *TLS, vl uintptr, vr uintptr, n Tsize_t) (r1 int32) + +//go:noescape +func Ymemcpy(tls *TLS, dest uintptr, src uintptr, n Tsize_t) (r uintptr) + +//go:noescape +func Ymemfd_create(tls *TLS, name uintptr, flags uint32) (r int32) + +//go:noescape +func Ymemmem(tls *TLS, h0 uintptr, k Tsize_t, n0 uintptr, l Tsize_t) (r uintptr) + +//go:noescape +func Ymemmove(tls *TLS, dest uintptr, src uintptr, n Tsize_t) (r uintptr) + +//go:noescape +func Ymempcpy(tls *TLS, dest uintptr, src uintptr, n Tsize_t) (r uintptr) + +//go:noescape +func Ymemrchr(tls *TLS, m uintptr, c int32, n Tsize_t) (r uintptr) + +//go:noescape +func Ymemset(tls *TLS, dest uintptr, c int32, n Tsize_t) (r uintptr) + +//go:noescape +func Ymincore(tls *TLS, addr uintptr, len1 Tsize_t, vec uintptr) (r int32) + +//go:noescape +func Ymkdir(tls *TLS, path uintptr, mode Tmode_t) (r int32) + +//go:noescape +func Ymkdirat(tls *TLS, fd int32, path uintptr, mode Tmode_t) (r int32) + +//go:noescape +func Ymkdtemp(tls *TLS, template uintptr) (r uintptr) + +//go:noescape +func Ymkfifo(tls *TLS, path uintptr, mode Tmode_t) (r int32) + +//go:noescape +func Ymkfifoat(tls *TLS, fd int32, path uintptr, mode Tmode_t) (r int32) + +//go:noescape +func Ymknod(tls *TLS, path uintptr, mode Tmode_t, dev Tdev_t) (r int32) + +//go:noescape +func Ymknodat(tls *TLS, fd int32, path uintptr, mode Tmode_t, dev Tdev_t) (r int32) + +//go:noescape +func Ymkostemp(tls *TLS, template uintptr, flags int32) (r int32) + +//go:noescape +func Ymkostemps(tls *TLS, template uintptr, len1 int32, flags int32) (r int32) + +//go:noescape +func Ymkstemp(tls *TLS, template uintptr) (r int32) + +//go:noescape +func Ymkstemp64(tls *TLS, template uintptr) (r int32) + +//go:noescape +func Ymkstemps(tls *TLS, template uintptr, len1 int32) (r int32) + +//go:noescape +func Ymkstemps64(tls *TLS, template uintptr, len1 int32) (r int32) + +//go:noescape +func Ymktemp(tls *TLS, template uintptr) (r uintptr) + +//go:noescape +func Ymktime(tls *TLS, tm uintptr) (r Ttime_t) + +//go:noescape +func Ymlock(tls *TLS, addr uintptr, len1 Tsize_t) (r int32) + +//go:noescape +func Ymlock2(tls *TLS, addr uintptr, len1 Tsize_t, flags uint32) (r int32) + +//go:noescape +func Ymlockall(tls *TLS, flags int32) (r int32) + +//go:noescape +func Ymmap(tls *TLS, start uintptr, len1 Tsize_t, prot int32, flags int32, fd int32, off Toff_t) (r uintptr) + +//go:noescape +func Ymmap64(tls *TLS, start uintptr, len1 Tsize_t, prot int32, flags int32, fd int32, off Toff_t) (r uintptr) + +//go:noescape +func Ymodf(tls *TLS, x float64, iptr uintptr) (r float64) + +//go:noescape +func Ymodff(tls *TLS, x float32, iptr uintptr) (r float32) + +//go:noescape +func Ymodfl(tls *TLS, x float64, iptr uintptr) (r1 float64) + +//go:noescape +func Ymount(tls *TLS, special uintptr, dir uintptr, fstype uintptr, flags uint64, data uintptr) (r int32) + +//go:noescape +func Ymprotect(tls *TLS, addr uintptr, len1 Tsize_t, prot int32) (r int32) + +//go:noescape +func Ymrand48(tls *TLS) (r int64) + +//go:noescape +func Ymremap(tls *TLS, old_addr uintptr, old_len Tsize_t, new_len Tsize_t, flags int32, va uintptr) (r uintptr) + +//go:noescape +func Ymsgctl(tls *TLS, q int32, cmd int32, buf uintptr) (r1 int32) + +//go:noescape +func Ymsgget(tls *TLS, k Tkey_t, flag int32) (r int32) + +//go:noescape +func Ymsgrcv(tls *TLS, q int32, m uintptr, len1 Tsize_t, type1 int64, flag int32) (r Tssize_t) + +//go:noescape +func Ymsgsnd(tls *TLS, q int32, m uintptr, len1 Tsize_t, flag int32) (r int32) + +//go:noescape +func Ymsync(tls *TLS, start uintptr, len1 Tsize_t, flags int32) (r int32) + +//go:noescape +func Ymunlock(tls *TLS, addr uintptr, len1 Tsize_t) (r int32) + +//go:noescape +func Ymunlockall(tls *TLS) (r int32) + +//go:noescape +func Ymunmap(tls *TLS, start uintptr, len1 Tsize_t) (r int32) + +//go:noescape +func Yname_to_handle_at(tls *TLS, dirfd int32, pathname uintptr, handle uintptr, mount_id uintptr, flags int32) (r int32) + +//go:noescape +func Ynan(tls *TLS, s uintptr) (r float64) + +//go:noescape +func Ynanf(tls *TLS, s uintptr) (r float32) + +//go:noescape +func Ynanl(tls *TLS, s uintptr) (r float64) + +//go:noescape +func Ynanosleep(tls *TLS, req uintptr, rem uintptr) (r int32) + +//go:noescape +func Ynewlocale(tls *TLS, mask int32, name uintptr, loc Tlocale_t) (r Tlocale_t) + +//go:noescape +func Ynextafter(tls *TLS, x3 float64, y3 float64) (r float64) + +//go:noescape +func Ynextafterf(tls *TLS, x3 float32, y3 float32) (r float32) + +//go:noescape +func Ynextafterl(tls *TLS, x float64, y float64) (r float64) + +//go:noescape +func Ynexttoward(tls *TLS, x float64, y float64) (r float64) + +//go:noescape +func Ynexttowardf(tls *TLS, x3 float32, y3 float64) (r float32) + +//go:noescape +func Ynexttowardl(tls *TLS, x float64, y float64) (r float64) + +//go:noescape +func Ynftw(tls *TLS, path uintptr, __ccgo_fp_fn uintptr, fd_limit int32, flags int32) (r1 int32) + +//go:noescape +func __ccgo_abi0_nftw_1(_0 *TLS, _1 uintptr, _2 uintptr, _3 int32, _4 uintptr, __ccgo_fp uintptr) (_5 int32) + +func __ccgo_abiInternal_nftw_1(tls *TLS, dest, abi0CodePtr uintptr) { + f := func(_0 *TLS, _1 uintptr, _2 uintptr, _3 int32, _4 uintptr) (_5 int32) { + return __ccgo_abi0_nftw_1(_0, _1, _2, _3, _4, abi0CodePtr) + } + *(*[2]uintptr)(unsafe.Pointer(dest)) = *(*[2]uintptr)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(&f)))) +} + +//go:noescape +func Yngettext(tls *TLS, msgid1 uintptr, msgid2 uintptr, n uint64) (r uintptr) + +//go:noescape +func Ynice(tls *TLS, inc int32) (r int32) + +//go:noescape +func Ynl_langinfo(tls *TLS, item Tnl_item) (r uintptr) + +//go:noescape +func Ynl_langinfo_l(tls *TLS, item Tnl_item, loc Tlocale_t) (r uintptr) + +//go:noescape +func Ynrand48(tls *TLS, s uintptr) (r int64) + +//go:noescape +func Yns_get16(tls *TLS, cp uintptr) (r uint32) + +//go:noescape +func Yns_get32(tls *TLS, cp uintptr) (r uint64) + +//go:noescape +func Yns_initparse(tls *TLS, msg uintptr, msglen int32, handle uintptr) (r1 int32) + +//go:noescape +func Yns_name_uncompress(tls *TLS, msg uintptr, eom uintptr, src uintptr, dst uintptr, dstsiz Tsize_t) (r1 int32) + +//go:noescape +func Yns_parserr(tls *TLS, handle uintptr, section Tns_sect, rrnum int32, rr uintptr) (r1 int32) + +//go:noescape +func Yns_put16(tls *TLS, s uint32, cp uintptr) + +//go:noescape +func Yns_put32(tls *TLS, l uint64, cp uintptr) + +//go:noescape +func Yns_skiprr(tls *TLS, ptr uintptr, eom uintptr, section Tns_sect, count int32) (r1 int32) + +//go:noescape +func Yntohl(tls *TLS, n Tuint32_t) (r Tuint32_t) + +//go:noescape +func Yntohs(tls *TLS, n Tuint16_t) (r Tuint16_t) + +//go:noescape +func Yobstack_free(t *TLS, obstack, obj uintptr) + +//go:noescape +func Yobstack_vprintf(t *TLS, obstack, template, va uintptr) (_2 int32) + +//go:noescape +func Yopen(tls *TLS, filename uintptr, flags int32, va uintptr) (r int32) + +//go:noescape +func Yopen64(tls *TLS, filename uintptr, flags int32, va uintptr) (r int32) + +//go:noescape +func Yopen_by_handle_at(tls *TLS, mount_fd int32, handle uintptr, flags int32) (r int32) + +//go:noescape +func Yopen_memstream(tls *TLS, bufp uintptr, sizep uintptr) (r uintptr) + +//go:noescape +func Yopen_wmemstream(tls *TLS, bufp uintptr, sizep uintptr) (r uintptr) + +//go:noescape +func Yopenat(tls *TLS, fd int32, filename uintptr, flags int32, va uintptr) (r int32) + +//go:noescape +func Yopendir(tls *TLS, name uintptr) (r uintptr) + +//go:noescape +func Yopenlog(tls *TLS, ident uintptr, opt int32, facility int32) + +//go:noescape +func Yopenpty(tls *TLS, pm uintptr, ps uintptr, name uintptr, tio uintptr, ws uintptr) (r int32) + +//go:noescape +func Ypathconf(tls *TLS, path uintptr, name int32) (r int64) + +//go:noescape +func Ypause(tls *TLS) (r int32) + +//go:noescape +func Ypclose(tls *TLS, f uintptr) (r1 int32) + +//go:noescape +func Yperror(tls *TLS, msg uintptr) + +//go:noescape +func Ypersonality(tls *TLS, persona uint64) (r int32) + +//go:noescape +func Ypipe(tls *TLS, fd uintptr) (r int32) + +//go:noescape +func Ypipe2(tls *TLS, fd uintptr, flag int32) (r int32) + +//go:noescape +func Ypivot_root(tls *TLS, new1 uintptr, old uintptr) (r int32) + +//go:noescape +func Ypoll(tls *TLS, fds uintptr, n Tnfds_t, timeout int32) (r int32) + +//go:noescape +func Ypopen(t *TLS, command, type1 uintptr) (_2 uintptr) + +//go:noescape +func Yposix_close(tls *TLS, fd int32, flags int32) (r int32) + +//go:noescape +func Yposix_fadvise(tls *TLS, fd int32, base Toff_t, len1 Toff_t, advice int32) (r int32) + +//go:noescape +func Yposix_fallocate(tls *TLS, fd int32, base Toff_t, len1 Toff_t) (r int32) + +//go:noescape +func Yposix_madvise(tls *TLS, addr uintptr, len1 Tsize_t, advice int32) (r int32) + +//go:noescape +func Yposix_openpt(tls *TLS, flags int32) (r1 int32) + +//go:noescape +func Yposix_spawn_file_actions_addchdir_np(tls *TLS, fa uintptr, path uintptr) (r int32) + +//go:noescape +func Yposix_spawn_file_actions_addclose(tls *TLS, fa uintptr, fd int32) (r int32) + +//go:noescape +func Yposix_spawn_file_actions_adddup2(tls *TLS, fa uintptr, srcfd int32, fd int32) (r int32) + +//go:noescape +func Yposix_spawn_file_actions_addfchdir_np(tls *TLS, fa uintptr, fd int32) (r int32) + +//go:noescape +func Yposix_spawn_file_actions_addopen(tls *TLS, fa uintptr, fd int32, path uintptr, flags int32, mode Tmode_t) (r int32) + +//go:noescape +func Yposix_spawn_file_actions_destroy(tls *TLS, fa uintptr) (r int32) + +//go:noescape +func Yposix_spawn_file_actions_init(tls *TLS, fa uintptr) (r int32) + +//go:noescape +func Yposix_spawnattr_destroy(tls *TLS, attr uintptr) (r int32) + +//go:noescape +func Yposix_spawnattr_getflags(tls *TLS, attr uintptr, flags uintptr) (r int32) + +//go:noescape +func Yposix_spawnattr_getpgroup(tls *TLS, attr uintptr, pgrp uintptr) (r int32) + +//go:noescape +func Yposix_spawnattr_getschedparam(tls *TLS, attr uintptr, schedparam uintptr) (r int32) + +//go:noescape +func Yposix_spawnattr_getschedpolicy(tls *TLS, attr uintptr, policy uintptr) (r int32) + +//go:noescape +func Yposix_spawnattr_getsigdefault(tls *TLS, attr uintptr, def uintptr) (r int32) + +//go:noescape +func Yposix_spawnattr_getsigmask(tls *TLS, attr uintptr, mask uintptr) (r int32) + +//go:noescape +func Yposix_spawnattr_init(tls *TLS, attr uintptr) (r int32) + +//go:noescape +func Yposix_spawnattr_setflags(tls *TLS, attr uintptr, flags int16) (r int32) + +//go:noescape +func Yposix_spawnattr_setpgroup(tls *TLS, attr uintptr, pgrp Tpid_t) (r int32) + +//go:noescape +func Yposix_spawnattr_setschedparam(tls *TLS, attr uintptr, schedparam uintptr) (r int32) + +//go:noescape +func Yposix_spawnattr_setschedpolicy(tls *TLS, attr uintptr, policy int32) (r int32) + +//go:noescape +func Yposix_spawnattr_setsigdefault(tls *TLS, attr uintptr, def uintptr) (r int32) + +//go:noescape +func Yposix_spawnattr_setsigmask(tls *TLS, attr uintptr, mask uintptr) (r int32) + +//go:noescape +func Ypow(tls *TLS, x1 float64, y1 float64) (r float64) + +//go:noescape +func Ypow10(tls *TLS, x float64) (r float64) + +//go:noescape +func Ypow10f(tls *TLS, x float32) (r float32) + +//go:noescape +func Ypow10l(tls *TLS, x float64) (r float64) + +//go:noescape +func Ypowf(tls *TLS, x1 float32, y1 float32) (r float32) + +//go:noescape +func Ypowl(tls *TLS, x float64, y float64) (r float64) + +//go:noescape +func Yppoll(tls *TLS, fds uintptr, n Tnfds_t, to uintptr, mask uintptr) (r int32) + +//go:noescape +func Yprctl(tls *TLS, op int32, va uintptr) (r int32) + +//go:noescape +func Ypread(tls *TLS, fd int32, buf uintptr, size Tsize_t, ofs Toff_t) (r Tssize_t) + +//go:noescape +func Ypreadv(tls *TLS, fd int32, iov uintptr, count int32, ofs Toff_t) (r Tssize_t) + +//go:noescape +func Ypreadv2(tls *TLS, fd int32, iov uintptr, count int32, ofs Toff_t, flags int32) (r Tssize_t) + +//go:noescape +func Yprintf(tls *TLS, fmt uintptr, va uintptr) (r int32) + +//go:noescape +func Yprlimit(tls *TLS, pid Tpid_t, resource int32, new_limit uintptr, old_limit uintptr) (r1 int32) + +//go:noescape +func Yprocess_vm_readv(tls *TLS, pid Tpid_t, lvec uintptr, liovcnt uint64, rvec uintptr, riovcnt uint64, flags uint64) (r Tssize_t) + +//go:noescape +func Yprocess_vm_writev(tls *TLS, pid Tpid_t, lvec uintptr, liovcnt uint64, rvec uintptr, riovcnt uint64, flags uint64) (r Tssize_t) + +//go:noescape +func Ypselect(tls *TLS, n int32, rfds uintptr, wfds uintptr, efds uintptr, ts uintptr, mask uintptr) (r int32) + +//go:noescape +func Ypsiginfo(tls *TLS, si uintptr, msg uintptr) + +//go:noescape +func Ypsignal(tls *TLS, sig int32, msg uintptr) + +//go:noescape +func Ypthread_atfork(tls *TLS, prepare, parent, child uintptr) (_2 int32) + +//go:noescape +func Ypthread_attr_destroy(tls *TLS, a uintptr) (_2 int32) + +//go:noescape +func Ypthread_attr_getdetachstate(tls *TLS, a uintptr, state uintptr) (_3 int32) + +//go:noescape +func Ypthread_attr_init(tls *TLS, a uintptr) (_2 int32) + +//go:noescape +func Ypthread_attr_setdetachstate(tls *TLS, a uintptr, state int32) (r int32) + +//go:noescape +func Ypthread_attr_setscope(tls *TLS, a uintptr, scope int32) (_3 int32) + +//go:noescape +func Ypthread_attr_setstacksize(tls *TLS, a uintptr, stacksite Tsize_t) (_3 int32) + +//go:noescape +func Ypthread_cleanup_pop(tls *TLS, run int32) + +//go:noescape +func Ypthread_cleanup_push(tls *TLS, f, x uintptr) + +//go:noescape +func Ypthread_cond_broadcast(tls *TLS, c uintptr) (_2 int32) + +//go:noescape +func Ypthread_cond_destroy(tls *TLS, c uintptr) (_2 int32) + +//go:noescape +func Ypthread_cond_init(tls *TLS, c, a uintptr) (_2 int32) + +//go:noescape +func Ypthread_cond_signal(tls *TLS, c uintptr) (_2 int32) + +//go:noescape +func Ypthread_cond_timedwait(tls *TLS, c, m, ts uintptr) (r int32) + +//go:noescape +func Ypthread_cond_wait(tls *TLS, c, m uintptr) (_2 int32) + +//go:noescape +func Ypthread_create(tls *TLS, res, attrp, entry, arg uintptr) (_2 int32) + +//go:noescape +func Ypthread_detach(tls *TLS, t uintptr) (_2 int32) + +//go:noescape +func Ypthread_equal(tls *TLS, t, u uintptr) (_2 int32) + +//go:noescape +func Ypthread_exit(tls *TLS, result uintptr) + +//go:noescape +func Ypthread_getspecific(tls *TLS, k Tpthread_key_t) (_2 uintptr) + +//go:noescape +func Ypthread_join(tls *TLS, t Tpthread_t, res uintptr) (r int32) + +//go:noescape +func Ypthread_key_create(tls *TLS, k uintptr, dtor uintptr) (_3 int32) + +//go:noescape +func Ypthread_key_delete(tls *TLS, k Tpthread_key_t) (_2 int32) + +//go:noescape +func Ypthread_mutex_destroy(tls *TLS, m uintptr) (_2 int32) + +//go:noescape +func Ypthread_mutex_init(tls *TLS, m, a uintptr) (_2 int32) + +//go:noescape +func Ypthread_mutex_lock(tls *TLS, m uintptr) (_2 int32) + +//go:noescape +func Ypthread_mutex_trylock(tls *TLS, m uintptr) (_2 int32) + +//go:noescape +func Ypthread_mutex_unlock(tls *TLS, m uintptr) (_2 int32) + +//go:noescape +func Ypthread_mutexattr_destroy(tls *TLS, a uintptr) (_2 int32) + +//go:noescape +func Ypthread_mutexattr_init(tls *TLS, a uintptr) (_2 int32) + +//go:noescape +func Ypthread_mutexattr_settype(tls *TLS, a uintptr, typ int32) (_3 int32) + +//go:noescape +func Ypthread_self(tls *TLS) (_1 uintptr) + +//go:noescape +func Ypthread_setcancelstate(tls *TLS, new int32, old uintptr) (_3 int32) + +//go:noescape +func Ypthread_setspecific(tls *TLS, k Tpthread_key_t, x uintptr) (_3 int32) + +//go:noescape +func Ypthread_sigmask(tls *TLS, now int32, set, old uintptr) (_3 int32) + +//go:noescape +func Yptrace(tls *TLS, req int32, va uintptr) (r int64) + +//go:noescape +func Yptsname(tls *TLS, fd int32) (r uintptr) + +//go:noescape +func Yptsname_r(tls *TLS, fd int32, buf uintptr, len1 Tsize_t) (r int32) + +//go:noescape +func Yputc(tls *TLS, c1 int32, f1 uintptr) (r int32) + +//go:noescape +func Yputc_unlocked(tls *TLS, c int32, f uintptr) (r int32) + +//go:noescape +func Yputchar(tls *TLS, c1 int32) (r int32) + +//go:noescape +func Yputchar_unlocked(tls *TLS, c int32) (r int32) + +//go:noescape +func Yputenv(tls *TLS, s uintptr) (r int32) + +//go:noescape +func Yputgrent(tls *TLS, gr uintptr, f uintptr) (r1 int32) + +//go:noescape +func Yputpwent(tls *TLS, pw uintptr, f uintptr) (r int32) + +//go:noescape +func Yputs(tls *TLS, s uintptr) (r1 int32) + +//go:noescape +func Yputspent(tls *TLS, sp uintptr, f uintptr) (r int32) + +//go:noescape +func Ypututline(tls *TLS, ut uintptr) (r uintptr) + +//go:noescape +func Ypututxline(tls *TLS, ut uintptr) (r uintptr) + +//go:noescape +func Yputw(tls *TLS, _x int32, f uintptr) (r int32) + +//go:noescape +func Yputwc(tls *TLS, c Twchar_t, f uintptr) (r Twint_t) + +//go:noescape +func Yputwc_unlocked(tls *TLS, c Twchar_t, f uintptr) (r Twint_t) + +//go:noescape +func Yputwchar(tls *TLS, c Twchar_t) (r Twint_t) + +//go:noescape +func Yputwchar_unlocked(tls *TLS, c Twchar_t) (r Twint_t) + +//go:noescape +func Ypwrite(tls *TLS, fd int32, buf uintptr, size Tsize_t, ofs Toff_t) (r Tssize_t) + +//go:noescape +func Ypwritev(tls *TLS, fd int32, iov uintptr, count int32, ofs Toff_t) (r Tssize_t) + +//go:noescape +func Ypwritev2(tls *TLS, fd int32, iov uintptr, count int32, ofs Toff_t, flags int32) (r Tssize_t) + +//go:noescape +func Yqsort(tls *TLS, base uintptr, nel Tsize_t, width Tsize_t, __ccgo_fp_cmp Tcmpfun) + +//go:noescape +func __ccgo_abi0_qsort_3(_0 *TLS, _1 uintptr, _2 uintptr, __ccgo_fp uintptr) (_3 int32) + +func __ccgo_abiInternal_qsort_3(tls *TLS, dest, abi0CodePtr uintptr) { + f := func(_0 *TLS, _1 uintptr, _2 uintptr) (_3 int32) { + return __ccgo_abi0_qsort_3(_0, _1, _2, abi0CodePtr) + } + *(*[2]uintptr)(unsafe.Pointer(dest)) = *(*[2]uintptr)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(&f)))) +} + +//go:noescape +func Yqsort_r(tls *TLS, base uintptr, nel Tsize_t, width Tsize_t, __ccgo_fp_cmp Tcmpfun, arg uintptr) + +//go:noescape +func __ccgo_abi0_qsort_r_3(_0 *TLS, _1 uintptr, _2 uintptr, _3 uintptr, __ccgo_fp uintptr) (_4 int32) + +func __ccgo_abiInternal_qsort_r_3(tls *TLS, dest, abi0CodePtr uintptr) { + f := func(_0 *TLS, _1 uintptr, _2 uintptr, _3 uintptr) (_4 int32) { + return __ccgo_abi0_qsort_r_3(_0, _1, _2, _3, abi0CodePtr) + } + *(*[2]uintptr)(unsafe.Pointer(dest)) = *(*[2]uintptr)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(&f)))) +} + +//go:noescape +func Yquick_exit(tls *TLS, code int32) + +//go:noescape +func Yquotactl(tls *TLS, cmd int32, special uintptr, id int32, addr uintptr) (r int32) + +//go:noescape +func Yraise(tls *TLS, sig int32) (r int32) + +//go:noescape +func Yrand(tls *TLS) (r int32) + +//go:noescape +func Yrand_r(tls *TLS, seed uintptr) (r int32) + +//go:noescape +func Yrandom(tls *TLS) (r int64) + +//go:noescape +func Yrandom_r(t *TLS, buf, result uintptr) (_2 int32) + +//go:noescape +func Yread(tls *TLS, fd int32, buf uintptr, count Tsize_t) (r Tssize_t) + +//go:noescape +func Yreadahead(tls *TLS, fd int32, pos Toff_t, len1 Tsize_t) (r Tssize_t) + +//go:noescape +func Yreaddir(tls *TLS, dir uintptr) (r uintptr) + +//go:noescape +func Yreaddir64(tls *TLS, dir uintptr) (r uintptr) + +//go:noescape +func Yreaddir_r(tls *TLS, dir uintptr, buf uintptr, result uintptr) (r int32) + +//go:noescape +func Yreadlink(tls *TLS, path uintptr, buf uintptr, bufsize Tsize_t) (r1 Tssize_t) + +//go:noescape +func Yreadlinkat(tls *TLS, fd int32, path uintptr, buf uintptr, bufsize Tsize_t) (r1 Tssize_t) + +//go:noescape +func Yreadv(tls *TLS, fd int32, iov uintptr, count int32) (r Tssize_t) + +//go:noescape +func Yrealloc(tls *TLS, p uintptr, n Tsize_t) (r uintptr) + +//go:noescape +func Yreallocarray(tls *TLS, ptr uintptr, m Tsize_t, n Tsize_t) (r uintptr) + +//go:noescape +func Yrealpath(tls *TLS, filename uintptr, resolved uintptr) (r uintptr) + +//go:noescape +func Yreboot(tls *TLS, type1 int32) (r int32) + +//go:noescape +func Yrecv(tls *TLS, fd int32, buf uintptr, len1 Tsize_t, flags int32) (r Tssize_t) + +//go:noescape +func Yrecvfrom(tls *TLS, fd int32, buf uintptr, len1 Tsize_t, flags int32, addr uintptr, alen uintptr) (r1 Tssize_t) + +//go:noescape +func Yrecvmmsg(tls *TLS, fd int32, msgvec uintptr, vlen uint32, flags uint32, timeout uintptr) (r int32) + +//go:noescape +func Yrecvmsg(tls *TLS, fd int32, msg uintptr, flags int32) (r2 Tssize_t) + +//go:noescape +func Yregcomp(tls *TLS, preg uintptr, regex uintptr, cflags int32) (r int32) + +//go:noescape +func Yregerror(tls *TLS, e int32, preg uintptr, buf uintptr, size Tsize_t) (r Tsize_t) + +//go:noescape +func Yregexec(tls *TLS, preg uintptr, string1 uintptr, nmatch Tsize_t, pmatch uintptr, eflags int32) (r int32) + +//go:noescape +func Yregfree(tls *TLS, preg uintptr) + +//go:noescape +func Yremainder(tls *TLS, x float64, y float64) (r float64) + +//go:noescape +func Yremainderf(tls *TLS, x float32, y float32) (r float32) + +//go:noescape +func Yremainderl(tls *TLS, x float64, y float64) (r float64) + +//go:noescape +func Yremap_file_pages(tls *TLS, addr uintptr, size Tsize_t, prot int32, pgoff Tsize_t, flags int32) (r int32) + +//go:noescape +func Yremove(tls *TLS, path uintptr) (r1 int32) + +//go:noescape +func Yremovexattr(tls *TLS, path uintptr, name uintptr) (r int32) + +//go:noescape +func Yremque(tls *TLS, element uintptr) + +//go:noescape +func Yremquo(tls *TLS, x float64, y float64, quo uintptr) (r float64) + +//go:noescape +func Yremquof(tls *TLS, x float32, y float32, quo uintptr) (r float32) + +//go:noescape +func Yremquol(tls *TLS, x float64, y float64, quo uintptr) (r float64) + +//go:noescape +func Yrename(tls *TLS, old uintptr, new1 uintptr) (r int32) + +//go:noescape +func Yrenameat(tls *TLS, oldfd int32, old uintptr, newfd int32, new1 uintptr) (r int32) + +//go:noescape +func Yrenameat2(t *TLS, olddirfd int32, oldpath uintptr, newdirfd int32, newpath uintptr, flags int32) (_6 int32) + +//go:noescape +func Yres_init(tls *TLS) (r int32) + +//go:noescape +func Yres_mkquery(tls *TLS, op int32, dname uintptr, class int32, type1 int32, data uintptr, datalen int32, newrr uintptr, buf uintptr, buflen int32) (r int32) + +//go:noescape +func Yres_send(tls *TLS, _msg uintptr, _msglen int32, _answer uintptr, _anslen int32) (r int32) + +//go:noescape +func Yrewind(tls *TLS, f uintptr) + +//go:noescape +func Yrewinddir(tls *TLS, dir uintptr) + +//go:noescape +func Yrindex(tls *TLS, s uintptr, c int32) (r uintptr) + +//go:noescape +func Yrint(tls *TLS, x float64) (r float64) + +//go:noescape +func Yrintf(tls *TLS, x float32) (r float32) + +//go:noescape +func Yrintl(tls *TLS, x float64) (r float64) + +//go:noescape +func Yrmdir(tls *TLS, path uintptr) (r int32) + +//go:noescape +func Yround(tls *TLS, x3 float64) (r float64) + +//go:noescape +func Yroundf(tls *TLS, x3 float32) (r float32) + +//go:noescape +func Yroundl(tls *TLS, x float64) (r float64) + +//go:noescape +func Ysbrk(tls *TLS, inc Tintptr_t) (r uintptr) + +//go:noescape +func Yscalb(tls *TLS, x float64, fn float64) (r float64) + +//go:noescape +func Yscalbf(tls *TLS, x float32, fn float32) (r float32) + +//go:noescape +func Yscalbln(tls *TLS, x float64, n int64) (r float64) + +//go:noescape +func Yscalblnf(tls *TLS, x float32, n int64) (r float32) + +//go:noescape +func Yscalblnl(tls *TLS, x float64, n int64) (r float64) + +//go:noescape +func Yscalbn(tls *TLS, x float64, n int32) (r float64) + +//go:noescape +func Yscalbnf(tls *TLS, x float32, n int32) (r float32) + +//go:noescape +func Yscalbnl(tls *TLS, x float64, n int32) (r float64) + +//go:noescape +func Yscandir(tls *TLS, path uintptr, res uintptr, __ccgo_fp_sel uintptr, __ccgo_fp_cmp uintptr) (r int32) + +//go:noescape +func __ccgo_abi0_scandir_2(_0 *TLS, _1 uintptr, __ccgo_fp uintptr) (_2 int32) + +func __ccgo_abiInternal_scandir_2(tls *TLS, dest, abi0CodePtr uintptr) { + f := func(_0 *TLS, _1 uintptr) (_2 int32) { + return __ccgo_abi0_scandir_2(_0, _1, abi0CodePtr) + } + *(*[2]uintptr)(unsafe.Pointer(dest)) = *(*[2]uintptr)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(&f)))) +} + +//go:noescape +func __ccgo_abi0_scandir_3(_0 *TLS, _1 uintptr, _2 uintptr, __ccgo_fp uintptr) (_3 int32) + +func __ccgo_abiInternal_scandir_3(tls *TLS, dest, abi0CodePtr uintptr) { + f := func(_0 *TLS, _1 uintptr, _2 uintptr) (_3 int32) { + return __ccgo_abi0_scandir_3(_0, _1, _2, abi0CodePtr) + } + *(*[2]uintptr)(unsafe.Pointer(dest)) = *(*[2]uintptr)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(&f)))) +} + +//go:noescape +func Yscanf(tls *TLS, fmt uintptr, va uintptr) (r int32) + +//go:noescape +func Ysched_yield(tls *TLS) (_1 int32) + +//go:noescape +func Ysecure_getenv(tls *TLS, name uintptr) (r uintptr) + +//go:noescape +func Yseed48(tls *TLS, s uintptr) (r uintptr) + +//go:noescape +func Yseekdir(tls *TLS, dir uintptr, off int64) + +//go:noescape +func Yselect(tls *TLS, n int32, rfds uintptr, wfds uintptr, efds uintptr, tv uintptr) (r int32) + +//go:noescape +func Ysemctl(tls *TLS, id int32, num int32, cmd int32, va uintptr) (r1 int32) + +//go:noescape +func Ysemget(tls *TLS, key Tkey_t, n int32, fl int32) (r int32) + +//go:noescape +func Ysemop(tls *TLS, id int32, buf uintptr, n Tsize_t) (r int32) + +//go:noescape +func Ysemtimedop(tls *TLS, id int32, buf uintptr, n Tsize_t, ts uintptr) (r int32) + +//go:noescape +func Ysend(tls *TLS, fd int32, buf uintptr, len1 Tsize_t, flags int32) (r Tssize_t) + +//go:noescape +func Ysendfile(tls *TLS, out_fd int32, in_fd int32, ofs uintptr, count Tsize_t) (r Tssize_t) + +//go:noescape +func Ysendmmsg(tls *TLS, fd int32, msgvec uintptr, vlen uint32, flags uint32) (r1 int32) + +//go:noescape +func Ysendmsg(tls *TLS, fd int32, msg uintptr, flags int32) (r1 Tssize_t) + +//go:noescape +func Ysendto(tls *TLS, fd int32, buf uintptr, len1 Tsize_t, flags int32, addr uintptr, alen Tsocklen_t) (r1 Tssize_t) + +//go:noescape +func Ysetbuf(tls *TLS, f uintptr, buf uintptr) + +//go:noescape +func Ysetbuffer(tls *TLS, f uintptr, buf uintptr, size Tsize_t) + +//go:noescape +func Ysetdomainname(tls *TLS, name uintptr, len1 Tsize_t) (r int32) + +//go:noescape +func Ysetenv(tls *TLS, var1 uintptr, value uintptr, overwrite int32) (r int32) + +//go:noescape +func Ysetfsgid(tls *TLS, gid Tgid_t) (r int32) + +//go:noescape +func Ysetfsuid(tls *TLS, uid Tuid_t) (r int32) + +//go:noescape +func Ysetgid(tls *TLS, gid Tgid_t) (r int32) + +//go:noescape +func Ysetgrent(tls *TLS) + +//go:noescape +func Ysethostent(tls *TLS, x int32) + +//go:noescape +func Ysethostname(tls *TLS, name uintptr, len1 Tsize_t) (r int32) + +//go:noescape +func Ysetitimer(tls *TLS, which int32, new1 uintptr, old uintptr) (r1 int32) + +//go:noescape +func Ysetjmp(t *TLS, env uintptr) (_2 int32) + +//go:noescape +func Ysetkey(tls *TLS, key uintptr) + +//go:noescape +func Ysetlinebuf(tls *TLS, f uintptr) + +//go:noescape +func Ysetlocale(tls *TLS, cat int32, name uintptr) (r uintptr) + +//go:noescape +func Ysetlogmask(tls *TLS, maskpri int32) (r int32) + +//go:noescape +func Ysetmntent(tls *TLS, name uintptr, mode uintptr) (r uintptr) + +//go:noescape +func Ysetnetent(tls *TLS, x int32) + +//go:noescape +func Ysetns(tls *TLS, fd int32, nstype int32) (r int32) + +//go:noescape +func Ysetpgid(tls *TLS, pid Tpid_t, pgid Tpid_t) (r int32) + +//go:noescape +func Ysetpgrp(tls *TLS) (r Tpid_t) + +//go:noescape +func Ysetpriority(tls *TLS, which int32, who Tid_t, prio int32) (r int32) + +//go:noescape +func Ysetprotoent(tls *TLS, stayopen int32) + +//go:noescape +func Ysetpwent(tls *TLS) + +//go:noescape +func Ysetrlimit(tls *TLS, resource int32, rlim uintptr) (r int32) + +//go:noescape +func Ysetrlimit64(tls *TLS, resource int32, rlim uintptr) (r int32) + +//go:noescape +func Ysetservent(tls *TLS, stayopen int32) + +//go:noescape +func Ysetsid(tls *TLS) (r Tpid_t) + +//go:noescape +func Ysetsockopt(tls *TLS, fd int32, level int32, optname int32, optval uintptr, optlen Tsocklen_t) (r2 int32) + +//go:noescape +func Ysetspent(tls *TLS) + +//go:noescape +func Ysetstate(tls *TLS, state uintptr) (r uintptr) + +//go:noescape +func Ysettimeofday(tls *TLS, tv uintptr, tz uintptr) (r int32) + +//go:noescape +func Ysetuid(tls *TLS, uid Tuid_t) (r int32) + +//go:noescape +func Ysetusershell(tls *TLS) + +//go:noescape +func Ysetutent(tls *TLS) + +//go:noescape +func Ysetutxent(tls *TLS) + +//go:noescape +func Ysetvbuf(tls *TLS, f uintptr, buf uintptr, type1 int32, size Tsize_t) (r int32) + +//go:noescape +func Ysetxattr(tls *TLS, path uintptr, name uintptr, value uintptr, size Tsize_t, flags int32) (r int32) + +//go:noescape +func Yshm_open(tls *TLS, name uintptr, flag int32, mode Tmode_t) (r int32) + +//go:noescape +func Yshm_unlink(tls *TLS, name uintptr) (r int32) + +//go:noescape +func Yshmat(tls *TLS, id int32, addr uintptr, flag int32) (r uintptr) + +//go:noescape +func Yshmctl(tls *TLS, id int32, cmd int32, buf uintptr) (r1 int32) + +//go:noescape +func Yshmdt(tls *TLS, addr uintptr) (r int32) + +//go:noescape +func Yshmget(tls *TLS, key Tkey_t, size Tsize_t, flag int32) (r int32) + +//go:noescape +func Yshutdown(tls *TLS, fd int32, how int32) (r1 int32) + +//go:noescape +func Ysigaction(tls *TLS, sig int32, sa uintptr, old uintptr) (r int32) + +//go:noescape +func Ysigaddset(tls *TLS, set uintptr, sig int32) (r int32) + +//go:noescape +func Ysigaltstack(tls *TLS, ss uintptr, old uintptr) (r int32) + +//go:noescape +func Ysigandset(tls *TLS, dest uintptr, left uintptr, right uintptr) (r1 int32) + +//go:noescape +func Ysigdelset(tls *TLS, set uintptr, sig int32) (r int32) + +//go:noescape +func Ysigemptyset(tls *TLS, set uintptr) (r int32) + +//go:noescape +func Ysigfillset(tls *TLS, set uintptr) (r int32) + +//go:noescape +func Ysigisemptyset(tls *TLS, set uintptr) (r int32) + +//go:noescape +func Ysigismember(tls *TLS, set uintptr, sig int32) (r int32) + +//go:noescape +func Ysignal(tls *TLS, signum int32, handler uintptr) (r uintptr) + +//go:noescape +func Ysignalfd(tls *TLS, fd int32, sigs uintptr, flags int32) (r int32) + +//go:noescape +func Ysignificand(tls *TLS, x float64) (r float64) + +//go:noescape +func Ysignificandf(tls *TLS, x float32) (r float32) + +//go:noescape +func Ysigorset(tls *TLS, dest uintptr, left uintptr, right uintptr) (r1 int32) + +//go:noescape +func Ysigpending(tls *TLS, set uintptr) (r int32) + +//go:noescape +func Ysigprocmask(tls *TLS, how int32, set uintptr, old uintptr) (r1 int32) + +//go:noescape +func Ysigqueue(tls *TLS, pid Tpid_t, sig int32, value Tsigval) (r1 int32) + +//go:noescape +func Ysigsuspend(tls *TLS, mask uintptr) (r int32) + +//go:noescape +func Ysigtimedwait(tls *TLS, mask uintptr, si uintptr, timeout uintptr) (r int32) + +//go:noescape +func Ysigwait(tls *TLS, mask uintptr, sig uintptr) (r int32) + +//go:noescape +func Ysigwaitinfo(tls *TLS, mask uintptr, si uintptr) (r int32) + +//go:noescape +func Ysin(tls *TLS, x3 float64) (r float64) + +//go:noescape +func Ysincos(tls *TLS, x3 float64, sin uintptr, cos uintptr) + +//go:noescape +func Ysincosf(tls *TLS, x3 float32, sin uintptr, cos uintptr) + +//go:noescape +func Ysincosl(tls *TLS, x float64, sin uintptr, cos uintptr) + +//go:noescape +func Ysinf(tls *TLS, x3 float32) (r float32) + +//go:noescape +func Ysinh(tls *TLS, x float64) (r float64) + +//go:noescape +func Ysinhf(tls *TLS, x float32) (r float32) + +//go:noescape +func Ysinhl(tls *TLS, x float64) (r float64) + +//go:noescape +func Ysinl(tls *TLS, x float64) (r float64) + +//go:noescape +func Ysleep(tls *TLS, seconds uint32) (r uint32) + +//go:noescape +func Ysnprintf(tls *TLS, s uintptr, n Tsize_t, fmt uintptr, va uintptr) (r int32) + +//go:noescape +func Ysockatmark(tls *TLS, s int32) (r int32) + +//go:noescape +func Ysocket(tls *TLS, domain int32, type1 int32, protocol int32) (r1 int32) + +//go:noescape +func Ysocketpair(tls *TLS, domain int32, type1 int32, protocol int32, fd uintptr) (r2 int32) + +//go:noescape +func Ysplice(tls *TLS, fd_in int32, off_in uintptr, fd_out int32, off_out uintptr, len1 Tsize_t, flags uint32) (r Tssize_t) + +//go:noescape +func Ysprintf(tls *TLS, s uintptr, fmt uintptr, va uintptr) (r int32) + +//go:noescape +func Ysqrt(tls *TLS, x1 float64) (r1 float64) + +//go:noescape +func Ysqrtf(tls *TLS, x1 float32) (r1 float32) + +//go:noescape +func Ysqrtl(tls *TLS, x float64) (r float64) + +//go:noescape +func Ysrand(tls *TLS, s uint32) + +//go:noescape +func Ysrand48(tls *TLS, seed int64) + +//go:noescape +func Ysrandom(tls *TLS, seed uint32) + +//go:noescape +func Ysscanf(tls *TLS, s uintptr, fmt uintptr, va uintptr) (r int32) + +//go:noescape +func Ystat(tls *TLS, path uintptr, buf uintptr) (r int32) + +//go:noescape +func Ystat64(tls *TLS, path uintptr, buf uintptr) (r int32) + +//go:noescape +func Ystatvfs(tls *TLS, path uintptr, buf uintptr) (r int32) + +//go:noescape +func Ystatx(tls *TLS, dirfd int32, path uintptr, flags int32, mask uint32, stx uintptr) (r int32) + +//go:noescape +func Ystime(tls *TLS, t uintptr) (r int32) + +//go:noescape +func Ystpcpy(tls *TLS, d uintptr, s uintptr) (r uintptr) + +//go:noescape +func Ystpncpy(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) + +//go:noescape +func Ystrcasecmp(tls *TLS, _l uintptr, _r uintptr) (r1 int32) + +//go:noescape +func Ystrcasecmp_l(tls *TLS, l uintptr, r uintptr, loc Tlocale_t) (r1 int32) + +//go:noescape +func Ystrcasestr(tls *TLS, h uintptr, n uintptr) (r uintptr) + +//go:noescape +func Ystrcat(tls *TLS, dest uintptr, src uintptr) (r uintptr) + +//go:noescape +func Ystrchr(tls *TLS, s uintptr, c int32) (r1 uintptr) + +//go:noescape +func Ystrchrnul(tls *TLS, s uintptr, c int32) (r uintptr) + +//go:noescape +func Ystrcmp(tls *TLS, l uintptr, r uintptr) (r1 int32) + +//go:noescape +func Ystrcoll(tls *TLS, l uintptr, r uintptr) (r1 int32) + +//go:noescape +func Ystrcoll_l(tls *TLS, l uintptr, r uintptr, loc Tlocale_t) (r1 int32) + +//go:noescape +func Ystrcpy(tls *TLS, dest uintptr, src uintptr) (r uintptr) + +//go:noescape +func Ystrcspn(tls *TLS, s uintptr, c uintptr) (r Tsize_t) + +//go:noescape +func Ystrdup(tls *TLS, s uintptr) (r uintptr) + +//go:noescape +func Ystrerror(tls *TLS, e int32) (r uintptr) + +//go:noescape +func Ystrerror_l(tls *TLS, e int32, loc Tlocale_t) (r uintptr) + +//go:noescape +func Ystrerror_r(tls *TLS, err int32, buf uintptr, buflen Tsize_t) (r int32) + +//go:noescape +func Ystrfmon(tls *TLS, s uintptr, n Tsize_t, fmt uintptr, va uintptr) (r Tssize_t) + +//go:noescape +func Ystrfmon_l(tls *TLS, s uintptr, n Tsize_t, loc Tlocale_t, fmt uintptr, va uintptr) (r Tssize_t) + +//go:noescape +func Ystrftime(tls *TLS, s uintptr, n Tsize_t, f uintptr, tm uintptr) (r Tsize_t) + +//go:noescape +func Ystrftime_l(tls *TLS, s uintptr, n Tsize_t, f uintptr, tm uintptr, loc Tlocale_t) (r Tsize_t) + +//go:noescape +func Ystrlcat(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r Tsize_t) + +//go:noescape +func Ystrlcpy(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r Tsize_t) + +//go:noescape +func Ystrlen(t *TLS, s uintptr) (r Tsize_t) + +//go:noescape +func Ystrncasecmp(tls *TLS, _l uintptr, _r uintptr, n Tsize_t) (r1 int32) + +//go:noescape +func Ystrncasecmp_l(tls *TLS, l uintptr, r uintptr, n Tsize_t, loc Tlocale_t) (r1 int32) + +//go:noescape +func Ystrncat(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) + +//go:noescape +func Ystrncmp(tls *TLS, _l uintptr, _r uintptr, n Tsize_t) (r1 int32) + +//go:noescape +func Ystrncpy(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) + +//go:noescape +func Ystrndup(tls *TLS, s uintptr, n Tsize_t) (r uintptr) + +//go:noescape +func Ystrnlen(tls *TLS, s uintptr, n Tsize_t) (r Tsize_t) + +//go:noescape +func Ystrpbrk(tls *TLS, s uintptr, b uintptr) (r uintptr) + +//go:noescape +func Ystrptime(tls *TLS, s uintptr, f uintptr, tm uintptr) (r uintptr) + +//go:noescape +func Ystrrchr(tls *TLS, s uintptr, c int32) (r uintptr) + +//go:noescape +func Ystrsep(tls *TLS, str uintptr, sep uintptr) (r uintptr) + +//go:noescape +func Ystrsignal(tls *TLS, signum int32) (r uintptr) + +//go:noescape +func Ystrspn(tls *TLS, s uintptr, c uintptr) (r Tsize_t) + +//go:noescape +func Ystrstr(tls *TLS, h uintptr, n uintptr) (r uintptr) + +//go:noescape +func Ystrtod(tls *TLS, s uintptr, p uintptr) (r float64) + +//go:noescape +func Ystrtod_l(tls *TLS, s uintptr, p uintptr, l Tlocale_t) (r float64) + +//go:noescape +func Ystrtof(tls *TLS, s uintptr, p uintptr) (r float32) + +//go:noescape +func Ystrtof_l(tls *TLS, s uintptr, p uintptr, l Tlocale_t) (r float32) + +//go:noescape +func Ystrtoimax(tls *TLS, s uintptr, p uintptr, base int32) (r Tintmax_t) + +//go:noescape +func Ystrtok(tls *TLS, s uintptr, sep uintptr) (r uintptr) + +//go:noescape +func Ystrtok_r(tls *TLS, s uintptr, sep uintptr, p uintptr) (r uintptr) + +//go:noescape +func Ystrtol(tls *TLS, s uintptr, p uintptr, base int32) (r int64) + +//go:noescape +func Ystrtold(tls *TLS, s uintptr, p uintptr) (r float64) + +//go:noescape +func Ystrtold_l(tls *TLS, s uintptr, p uintptr, l Tlocale_t) (r float64) + +//go:noescape +func Ystrtoll(tls *TLS, s uintptr, p uintptr, base int32) (r int64) + +//go:noescape +func Ystrtoul(tls *TLS, s uintptr, p uintptr, base int32) (r uint64) + +//go:noescape +func Ystrtoull(tls *TLS, s uintptr, p uintptr, base int32) (r uint64) + +//go:noescape +func Ystrtoumax(tls *TLS, s uintptr, p uintptr, base int32) (r Tuintmax_t) + +//go:noescape +func Ystrverscmp(tls *TLS, l0 uintptr, r0 uintptr) (r1 int32) + +//go:noescape +func Ystrxfrm(tls *TLS, dest uintptr, src uintptr, n Tsize_t) (r Tsize_t) + +//go:noescape +func Ystrxfrm_l(tls *TLS, dest uintptr, src uintptr, n Tsize_t, loc Tlocale_t) (r Tsize_t) + +//go:noescape +func Yswab(tls *TLS, _src uintptr, _dest uintptr, n Tssize_t) + +//go:noescape +func Yswapoff(tls *TLS, path uintptr) (r int32) + +//go:noescape +func Yswapon(tls *TLS, path uintptr, flags int32) (r int32) + +//go:noescape +func Yswprintf(tls *TLS, s uintptr, n Tsize_t, fmt uintptr, va uintptr) (r int32) + +//go:noescape +func Yswscanf(tls *TLS, s uintptr, fmt uintptr, va uintptr) (r int32) + +//go:noescape +func Ysymlink(tls *TLS, existing uintptr, new1 uintptr) (r int32) + +//go:noescape +func Ysymlinkat(tls *TLS, existing uintptr, fd int32, new1 uintptr) (r int32) + +//go:noescape +func Ysync(tls *TLS) + +//go:noescape +func Ysync_file_range(tls *TLS, fd int32, pos Toff_t, len1 Toff_t, flags uint32) (r int32) + +//go:noescape +func Ysyncfs(tls *TLS, fd int32) (r int32) + +//go:noescape +func Ysyscall(tls *TLS, n int64, va uintptr) (r int64) + +//go:noescape +func Ysysconf(tls *TLS, name int32) (r int64) + +//go:noescape +func Ysysctlbyname(t *TLS, name, oldp, oldlenp, newp uintptr, newlen Tsize_t) (_3 int32) + +//go:noescape +func Ysysinfo(tls *TLS, info uintptr) (r int32) + +//go:noescape +func Ysyslog(tls *TLS, priority int32, message uintptr, va uintptr) + +//go:noescape +func Ysystem(t *TLS, command uintptr) (_2 int32) + +//go:noescape +func Ytan(tls *TLS, x3 float64) (r float64) + +//go:noescape +func Ytanf(tls *TLS, x3 float32) (r float32) + +//go:noescape +func Ytanh(tls *TLS, x3 float64) (r float64) + +//go:noescape +func Ytanhf(tls *TLS, x3 float32) (r float32) + +//go:noescape +func Ytanhl(tls *TLS, x float64) (r float64) + +//go:noescape +func Ytanl(tls *TLS, x float64) (r float64) + +//go:noescape +func Ytcdrain(tls *TLS, fd int32) (r int32) + +//go:noescape +func Ytcflow(tls *TLS, fd int32, action int32) (r int32) + +//go:noescape +func Ytcflush(tls *TLS, fd int32, queue int32) (r int32) + +//go:noescape +func Ytcgetattr(tls *TLS, fd int32, tio uintptr) (r int32) + +//go:noescape +func Ytcgetpgrp(tls *TLS, fd int32) (r Tpid_t) + +//go:noescape +func Ytcgetsid(tls *TLS, fd int32) (r Tpid_t) + +//go:noescape +func Ytcgetwinsize(tls *TLS, fd int32, wsz uintptr) (r int32) + +//go:noescape +func Ytcsendbreak(tls *TLS, fd int32, dur int32) (r int32) + +//go:noescape +func Ytcsetattr(tls *TLS, fd int32, act int32, tio uintptr) (r int32) + +//go:noescape +func Ytcsetpgrp(tls *TLS, fd int32, pgrp Tpid_t) (r int32) + +//go:noescape +func Ytcsetwinsize(tls *TLS, fd int32, wsz uintptr) (r int32) + +//go:noescape +func Ytdelete(tls *TLS, key uintptr, rootp uintptr, __ccgo_fp_cmp uintptr) (r uintptr) + +//go:noescape +func __ccgo_abi0_tdelete_2(_0 *TLS, _1 uintptr, _2 uintptr, __ccgo_fp uintptr) (_3 int32) + +func __ccgo_abiInternal_tdelete_2(tls *TLS, dest, abi0CodePtr uintptr) { + f := func(_0 *TLS, _1 uintptr, _2 uintptr) (_3 int32) { + return __ccgo_abi0_tdelete_2(_0, _1, _2, abi0CodePtr) + } + *(*[2]uintptr)(unsafe.Pointer(dest)) = *(*[2]uintptr)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(&f)))) +} + +//go:noescape +func Ytdestroy(tls *TLS, root uintptr, __ccgo_fp_freekey uintptr) + +//go:noescape +func __ccgo_abi0_tdestroy_1(_0 *TLS, _1 uintptr, __ccgo_fp uintptr) + +func __ccgo_abiInternal_tdestroy_1(tls *TLS, dest, abi0CodePtr uintptr) { + f := func(_0 *TLS, _1 uintptr) { + __ccgo_abi0_tdestroy_1(_0, _1, abi0CodePtr) + } + *(*[2]uintptr)(unsafe.Pointer(dest)) = *(*[2]uintptr)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(&f)))) +} + +//go:noescape +func Ytee(tls *TLS, src int32, dest int32, len1 Tsize_t, flags uint32) (r Tssize_t) + +//go:noescape +func Ytelldir(tls *TLS, dir uintptr) (r int64) + +//go:noescape +func Ytempnam(tls *TLS, dir uintptr, pfx uintptr) (r1 uintptr) + +//go:noescape +func Ytextdomain(tls *TLS, domainname uintptr) (r uintptr) + +//go:noescape +func Ytfind(tls *TLS, key uintptr, rootp uintptr, __ccgo_fp_cmp uintptr) (r uintptr) + +//go:noescape +func __ccgo_abi0_tfind_2(_0 *TLS, _1 uintptr, _2 uintptr, __ccgo_fp uintptr) (_3 int32) + +func __ccgo_abiInternal_tfind_2(tls *TLS, dest, abi0CodePtr uintptr) { + f := func(_0 *TLS, _1 uintptr, _2 uintptr) (_3 int32) { + return __ccgo_abi0_tfind_2(_0, _1, _2, abi0CodePtr) + } + *(*[2]uintptr)(unsafe.Pointer(dest)) = *(*[2]uintptr)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(&f)))) +} + +//go:noescape +func Ytgamma(tls *TLS, x3 float64) (r1 float64) + +//go:noescape +func Ytgammaf(tls *TLS, x float32) (r float32) + +//go:noescape +func Ytgammal(tls *TLS, x float64) (r float64) + +//go:noescape +func Ytime(tls *TLS, t uintptr) (r Ttime_t) + +//go:noescape +func Ytimegm(tls *TLS, tm uintptr) (r Ttime_t) + +//go:noescape +func Ytimer_delete(tls *TLS, t Ttimer_t) (r int32) + +//go:noescape +func Ytimer_getoverrun(tls *TLS, t Ttimer_t) (r int32) + +//go:noescape +func Ytimer_gettime(tls *TLS, t Ttimer_t, val uintptr) (r int32) + +//go:noescape +func Ytimer_settime(tls *TLS, t Ttimer_t, flags int32, val uintptr, old uintptr) (r int32) + +//go:noescape +func Ytimerfd_create(tls *TLS, clockid int32, flags int32) (r int32) + +//go:noescape +func Ytimerfd_gettime(tls *TLS, fd int32, cur uintptr) (r int32) + +//go:noescape +func Ytimerfd_settime(tls *TLS, fd int32, flags int32, new1 uintptr, old uintptr) (r int32) + +//go:noescape +func Ytimes(tls *TLS, tms uintptr) (r Tclock_t) + +//go:noescape +func Ytimespec_get(tls *TLS, ts uintptr, base int32) (r int32) + +//go:noescape +func Ytmpfile(tls *TLS) (r uintptr) + +//go:noescape +func Ytmpnam(tls *TLS, buf uintptr) (r1 uintptr) + +//go:noescape +func Ytoascii(tls *TLS, c int32) (r int32) + +//go:noescape +func Ytolower(tls *TLS, c int32) (r int32) + +//go:noescape +func Ytolower_l(tls *TLS, c int32, l Tlocale_t) (r int32) + +//go:noescape +func Ytoupper(tls *TLS, c int32) (r int32) + +//go:noescape +func Ytoupper_l(tls *TLS, c int32, l Tlocale_t) (r int32) + +//go:noescape +func Ytowctrans(tls *TLS, wc Twint_t, trans Twctrans_t) (r Twint_t) + +//go:noescape +func Ytowctrans_l(tls *TLS, c Twint_t, t Twctrans_t, l Tlocale_t) (r Twint_t) + +//go:noescape +func Ytowlower(tls *TLS, wc Twint_t) (r Twint_t) + +//go:noescape +func Ytowlower_l(tls *TLS, c Twint_t, l Tlocale_t) (r Twint_t) + +//go:noescape +func Ytowupper(tls *TLS, wc Twint_t) (r Twint_t) + +//go:noescape +func Ytowupper_l(tls *TLS, c Twint_t, l Tlocale_t) (r Twint_t) + +//go:noescape +func Ytrunc(tls *TLS, x3 float64) (r float64) + +//go:noescape +func Ytruncate(tls *TLS, path uintptr, length Toff_t) (r int32) + +//go:noescape +func Ytruncf(tls *TLS, x3 float32) (r float32) + +//go:noescape +func Ytruncl(tls *TLS, x float64) (r float64) + +//go:noescape +func Ytsearch(tls *TLS, key uintptr, rootp uintptr, __ccgo_fp_cmp uintptr) (r1 uintptr) + +//go:noescape +func __ccgo_abi0_tsearch_2(_0 *TLS, _1 uintptr, _2 uintptr, __ccgo_fp uintptr) (_3 int32) + +func __ccgo_abiInternal_tsearch_2(tls *TLS, dest, abi0CodePtr uintptr) { + f := func(_0 *TLS, _1 uintptr, _2 uintptr) (_3 int32) { + return __ccgo_abi0_tsearch_2(_0, _1, _2, abi0CodePtr) + } + *(*[2]uintptr)(unsafe.Pointer(dest)) = *(*[2]uintptr)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(&f)))) +} + +//go:noescape +func Yttyname(tls *TLS, fd int32) (r uintptr) + +//go:noescape +func Yttyname_r(tls *TLS, fd int32, name uintptr, size Tsize_t) (r int32) + +//go:noescape +func Ytwalk(tls *TLS, root uintptr, __ccgo_fp_action uintptr) + +//go:noescape +func __ccgo_abi0_twalk_1(_0 *TLS, _1 uintptr, _2 int32, _3 int32, __ccgo_fp uintptr) + +func __ccgo_abiInternal_twalk_1(tls *TLS, dest, abi0CodePtr uintptr) { + f := func(_0 *TLS, _1 uintptr, _2 int32, _3 int32) { + __ccgo_abi0_twalk_1(_0, _1, _2, _3, abi0CodePtr) + } + *(*[2]uintptr)(unsafe.Pointer(dest)) = *(*[2]uintptr)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(&f)))) +} + +//go:noescape +func Ytzset(tls *TLS) + +//go:noescape +func Yualarm(tls *TLS, value uint32, interval uint32) (r uint32) + +//go:noescape +func Yulckpwdf(tls *TLS) (r int32) + +//go:noescape +func Yulimit(tls *TLS, cmd int32, va uintptr) (r int64) + +//go:noescape +func Yumask(tls *TLS, mode Tmode_t) (r Tmode_t) + +//go:noescape +func Yumount(tls *TLS, special uintptr) (r int32) + +//go:noescape +func Yumount2(tls *TLS, special uintptr, flags int32) (r int32) + +//go:noescape +func Yuname(tls *TLS, uts uintptr) (r int32) + +//go:noescape +func Yungetc(tls *TLS, c int32, f uintptr) (r int32) + +//go:noescape +func Yungetwc(tls *TLS, c Twint_t, f uintptr) (r Twint_t) + +//go:noescape +func Yunlink(tls *TLS, path uintptr) (r int32) + +//go:noescape +func Yunlinkat(tls *TLS, fd int32, path uintptr, flag int32) (r int32) + +//go:noescape +func Yunlockpt(tls *TLS, fd int32) (r int32) + +//go:noescape +func Yunsetenv(tls *TLS, name uintptr) (r int32) + +//go:noescape +func Yunshare(tls *TLS, flags int32) (r int32) + +//go:noescape +func Yupdwtmp(tls *TLS, f uintptr, u uintptr) + +//go:noescape +func Yupdwtmpx(tls *TLS, f uintptr, u uintptr) + +//go:noescape +func Yuselocale(tls *TLS, new1 Tlocale_t) (r Tlocale_t) + +//go:noescape +func Yusleep(tls *TLS, useconds uint32) (r int32) + +//go:noescape +func Yutime(tls *TLS, path uintptr, times uintptr) (r int32) + +//go:noescape +func Yutimensat(tls *TLS, fd int32, path uintptr, times uintptr, flags int32) (r1 int32) + +//go:noescape +func Yutimes(tls *TLS, path uintptr, times uintptr) (r int32) + +//go:noescape +func Yuuid_copy(t *TLS, dst, src uintptr) + +//go:noescape +func Yuuid_generate_random(t *TLS, out uintptr) + +//go:noescape +func Yuuid_parse(t *TLS, in uintptr, uu uintptr) (_3 int32) + +//go:noescape +func Yuuid_unparse(t *TLS, uu, out uintptr) + +//go:noescape +func Yvasprintf(tls *TLS, s uintptr, fmt uintptr, ap Tva_list) (r int32) + +//go:noescape +func Yvdprintf(tls *TLS, fd int32, fmt uintptr, ap Tva_list) (r int32) + +//go:noescape +func Yverr(tls *TLS, status int32, fmt uintptr, ap Tva_list) + +//go:noescape +func Yverrx(tls *TLS, status int32, fmt uintptr, ap Tva_list) + +//go:noescape +func Yversionsort(tls *TLS, a uintptr, b uintptr) (r int32) + +//go:noescape +func Yvfork(tls *TLS) (r Tpid_t) + +//go:noescape +func Yvfprintf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) + +//go:noescape +func Yvfscanf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) + +//go:noescape +func Yvfwprintf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) + +//go:noescape +func Yvfwscanf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) + +//go:noescape +func Yvhangup(tls *TLS) (r int32) + +//go:noescape +func Yvmsplice(tls *TLS, fd int32, iov uintptr, cnt Tsize_t, flags uint32) (r Tssize_t) + +//go:noescape +func Yvprintf(tls *TLS, fmt uintptr, ap Tva_list) (r int32) + +//go:noescape +func Yvscanf(tls *TLS, fmt uintptr, ap Tva_list) (r int32) + +//go:noescape +func Yvsnprintf(tls *TLS, s uintptr, n Tsize_t, fmt uintptr, ap Tva_list) (r int32) + +//go:noescape +func Yvsprintf(tls *TLS, s uintptr, fmt uintptr, ap Tva_list) (r int32) + +//go:noescape +func Yvsscanf(tls *TLS, s uintptr, fmt uintptr, ap Tva_list) (r int32) + +//go:noescape +func Yvswprintf(tls *TLS, s uintptr, n Tsize_t, fmt uintptr, ap Tva_list) (r1 int32) + +//go:noescape +func Yvswscanf(tls *TLS, s uintptr, fmt uintptr, ap Tva_list) (r int32) + +//go:noescape +func Yvwarn(tls *TLS, fmt uintptr, ap Tva_list) + +//go:noescape +func Yvwarnx(tls *TLS, fmt uintptr, ap Tva_list) + +//go:noescape +func Yvwprintf(tls *TLS, fmt uintptr, ap Tva_list) (r int32) + +//go:noescape +func Yvwscanf(tls *TLS, fmt uintptr, ap Tva_list) (r int32) + +//go:noescape +func Ywait(tls *TLS, status uintptr) (r Tpid_t) + +//go:noescape +func Ywait3(tls *TLS, status uintptr, options int32, usage uintptr) (r Tpid_t) + +//go:noescape +func Ywait4(tls *TLS, pid Tpid_t, status uintptr, options int32, ru uintptr) (r1 Tpid_t) + +//go:noescape +func Ywaitid(tls *TLS, type1 Tidtype_t, id Tid_t, info uintptr, options int32) (r int32) + +//go:noescape +func Ywaitpid(tls *TLS, pid Tpid_t, status uintptr, options int32) (r Tpid_t) + +//go:noescape +func Ywarn(tls *TLS, fmt uintptr, va uintptr) + +//go:noescape +func Ywarnx(tls *TLS, fmt uintptr, va uintptr) + +//go:noescape +func Ywcpcpy(tls *TLS, d uintptr, s uintptr) (r uintptr) + +//go:noescape +func Ywcpncpy(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) + +//go:noescape +func Ywcrtomb(tls *TLS, s uintptr, wc Twchar_t, st uintptr) (r Tsize_t) + +//go:noescape +func Ywcscasecmp(tls *TLS, l uintptr, r uintptr) (r1 int32) + +//go:noescape +func Ywcscasecmp_l(tls *TLS, l uintptr, r uintptr, locale Tlocale_t) (r1 int32) + +//go:noescape +func Ywcscat(tls *TLS, dest uintptr, src uintptr) (r uintptr) + +//go:noescape +func Ywcschr(tls *TLS, s uintptr, c Twchar_t) (r uintptr) + +//go:noescape +func Ywcscmp(tls *TLS, l uintptr, r uintptr) (r1 int32) + +//go:noescape +func Ywcscoll(tls *TLS, l uintptr, r uintptr) (r1 int32) + +//go:noescape +func Ywcscoll_l(tls *TLS, l uintptr, r uintptr, locale Tlocale_t) (r1 int32) + +//go:noescape +func Ywcscpy(tls *TLS, d uintptr, s uintptr) (r uintptr) + +//go:noescape +func Ywcscspn(tls *TLS, s uintptr, c uintptr) (r Tsize_t) + +//go:noescape +func Ywcsdup(tls *TLS, s uintptr) (r uintptr) + +//go:noescape +func Ywcsftime(tls *TLS, wcs uintptr, n Tsize_t, f uintptr, tm uintptr) (r Tsize_t) + +//go:noescape +func Ywcsftime_l(tls *TLS, s uintptr, n Tsize_t, f uintptr, tm uintptr, loc Tlocale_t) (r Tsize_t) + +//go:noescape +func Ywcslen(tls *TLS, s uintptr) (r Tsize_t) + +//go:noescape +func Ywcsncasecmp(tls *TLS, l uintptr, r uintptr, n Tsize_t) (r1 int32) + +//go:noescape +func Ywcsncasecmp_l(tls *TLS, l uintptr, r uintptr, n Tsize_t, locale Tlocale_t) (r1 int32) + +//go:noescape +func Ywcsncat(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) + +//go:noescape +func Ywcsncmp(tls *TLS, l uintptr, r uintptr, n Tsize_t) (r1 int32) + +//go:noescape +func Ywcsncpy(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) + +//go:noescape +func Ywcsnlen(tls *TLS, s uintptr, n Tsize_t) (r Tsize_t) + +//go:noescape +func Ywcsnrtombs(tls *TLS, dst uintptr, wcs uintptr, wn Tsize_t, n Tsize_t, st uintptr) (r Tsize_t) + +//go:noescape +func Ywcspbrk(tls *TLS, s uintptr, b uintptr) (r uintptr) + +//go:noescape +func Ywcsrchr(tls *TLS, s uintptr, c Twchar_t) (r uintptr) + +//go:noescape +func Ywcsrtombs(tls *TLS, s uintptr, ws uintptr, n Tsize_t, st uintptr) (r Tsize_t) + +//go:noescape +func Ywcsspn(tls *TLS, s uintptr, c uintptr) (r Tsize_t) + +//go:noescape +func Ywcsstr(tls *TLS, h uintptr, n uintptr) (r uintptr) + +//go:noescape +func Ywcstod(tls *TLS, s uintptr, p uintptr) (r float64) + +//go:noescape +func Ywcstof(tls *TLS, s uintptr, p uintptr) (r float32) + +//go:noescape +func Ywcstoimax(tls *TLS, s uintptr, p uintptr, base int32) (r Tintmax_t) + +//go:noescape +func Ywcstok(tls *TLS, s uintptr, sep uintptr, p uintptr) (r uintptr) + +//go:noescape +func Ywcstol(tls *TLS, s uintptr, p uintptr, base int32) (r int64) + +//go:noescape +func Ywcstold(tls *TLS, s uintptr, p uintptr) (r float64) + +//go:noescape +func Ywcstoll(tls *TLS, s uintptr, p uintptr, base int32) (r int64) + +//go:noescape +func Ywcstombs(tls *TLS, s uintptr, ws uintptr, n Tsize_t) (r Tsize_t) + +//go:noescape +func Ywcstoul(tls *TLS, s uintptr, p uintptr, base int32) (r uint64) + +//go:noescape +func Ywcstoull(tls *TLS, s uintptr, p uintptr, base int32) (r uint64) + +//go:noescape +func Ywcstoumax(tls *TLS, s uintptr, p uintptr, base int32) (r Tuintmax_t) + +//go:noescape +func Ywcswcs(tls *TLS, haystack uintptr, needle uintptr) (r uintptr) + +//go:noescape +func Ywcswidth(tls *TLS, wcs uintptr, n Tsize_t) (r int32) + +//go:noescape +func Ywcsxfrm(tls *TLS, dest uintptr, src uintptr, n Tsize_t) (r Tsize_t) + +//go:noescape +func Ywcsxfrm_l(tls *TLS, dest uintptr, src uintptr, n Tsize_t, loc Tlocale_t) (r Tsize_t) + +//go:noescape +func Ywctob(tls *TLS, c Twint_t) (r int32) + +//go:noescape +func Ywctomb(tls *TLS, s uintptr, wc Twchar_t) (r int32) + +//go:noescape +func Ywctrans(tls *TLS, class uintptr) (r Twctrans_t) + +//go:noescape +func Ywctrans_l(tls *TLS, s uintptr, l Tlocale_t) (r Twctrans_t) + +//go:noescape +func Ywctype(tls *TLS, s uintptr) (r Twctype_t) + +//go:noescape +func Ywctype_l(tls *TLS, s uintptr, l Tlocale_t) (r Twctype_t) + +//go:noescape +func Ywcwidth(tls *TLS, wc Twchar_t) (r int32) + +//go:noescape +func Ywmemchr(tls *TLS, s uintptr, c Twchar_t, n Tsize_t) (r uintptr) + +//go:noescape +func Ywmemcmp(tls *TLS, l uintptr, r uintptr, n Tsize_t) (r1 int32) + +//go:noescape +func Ywmemcpy(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) + +//go:noescape +func Ywmemmove(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) + +//go:noescape +func Ywmemset(tls *TLS, d uintptr, c Twchar_t, n Tsize_t) (r uintptr) + +//go:noescape +func Ywprintf(tls *TLS, fmt uintptr, va uintptr) (r int32) + +//go:noescape +func Ywrite(tls *TLS, fd int32, buf uintptr, count Tsize_t) (r Tssize_t) + +//go:noescape +func Ywritev(tls *TLS, fd int32, iov uintptr, count int32) (r Tssize_t) + +//go:noescape +func Ywscanf(tls *TLS, fmt uintptr, va uintptr) (r int32) + +//go:noescape +func Yy0(tls *TLS, x float64) (r float64) + +//go:noescape +func Yy0f(tls *TLS, x float32) (r float32) + +//go:noescape +func Yy1(tls *TLS, x float64) (r float64) + +//go:noescape +func Yy1f(tls *TLS, x float32) (r float32) + +//go:noescape +func Yyn(tls *TLS, n int32, x float64) (r float64) + +//go:noescape +func Yynf(tls *TLS, n int32, x float32) (r float32) diff --git a/vendor/modernc.org/libc/abi0_linux_amd64.s b/vendor/modernc.org/libc/abi0_linux_amd64.s new file mode 100644 index 000000000..14b7b0fc1 --- /dev/null +++ b/vendor/modernc.org/libc/abi0_linux_amd64.s @@ -0,0 +1,28760 @@ +// Code generated for linux/amd64 by 'qbecc --abi0wrap .', DO NOT EDIT. + +#include "funcdata.h" +#include "textflag.h" + +// func Y_Exit(tls *TLS, ec int32) +TEXT ·Y_Exit(SB),$16-12 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL ec+8(FP), AX + MOVL AX, 8(SP) + CALL ·X_Exit(SB) + RET + +// func Y_IO_feof_unlocked(tls *TLS, f uintptr) (r int32) +TEXT ·Y_IO_feof_unlocked(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X_IO_feof_unlocked(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Y_IO_ferror_unlocked(tls *TLS, f uintptr) (r int32) +TEXT ·Y_IO_ferror_unlocked(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X_IO_ferror_unlocked(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Y_IO_getc(tls *TLS, f1 uintptr) (r int32) +TEXT ·Y_IO_getc(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f1+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X_IO_getc(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Y_IO_getc_unlocked(tls *TLS, f uintptr) (r int32) +TEXT ·Y_IO_getc_unlocked(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X_IO_getc_unlocked(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Y_IO_putc(tls *TLS, c1 int32, f1 uintptr) (r int32) +TEXT ·Y_IO_putc(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c1+8(FP), AX + MOVL AX, 8(SP) + MOVQ f1+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X_IO_putc(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Y_IO_putc_unlocked(tls *TLS, c int32, f uintptr) (r int32) +TEXT ·Y_IO_putc_unlocked(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + MOVQ f+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X_IO_putc_unlocked(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Y___errno_location(tls *TLS) (r uintptr) +TEXT ·Y___errno_location(SB),$16-16 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·X___errno_location(SB) + MOVQ 8(SP), AX + MOVQ AX, r+8(FP) + RET + +// func Y__aio_close(tls *TLS, fd int32) (_2 int32) +TEXT ·Y__aio_close(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + CALL ·X__aio_close(SB) + MOVL 16(SP), AX + MOVL AX, _2+16(FP) + RET + +// func Y__asctime_r(tls *TLS, tm uintptr, buf uintptr) (r uintptr) +TEXT ·Y__asctime_r(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ tm+8(FP), AX + MOVQ AX, 8(SP) + MOVQ buf+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__asctime_r(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Y__assert_fail(tls *TLS, expr uintptr, file uintptr, line int32, func1 uintptr) +TEXT ·Y__assert_fail(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ expr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ file+16(FP), AX + MOVQ AX, 16(SP) + MOVL line+24(FP), AX + MOVL AX, 24(SP) + MOVQ func1+32(FP), AX + MOVQ AX, 32(SP) + CALL ·X__assert_fail(SB) + RET + +// func Y__atomic_compare_exchangeInt16(t *TLS, ptr, expected, desired uintptr, weak, success, failure int32) (_3 int32) +TEXT ·Y__atomic_compare_exchangeInt16(SB),$56-52 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ expected+16(FP), AX + MOVQ AX, 16(SP) + MOVQ desired+24(FP), AX + MOVQ AX, 24(SP) + MOVL weak+32(FP), AX + MOVL AX, 32(SP) + MOVL success+36(FP), AX + MOVL AX, 36(SP) + MOVL failure+40(FP), AX + MOVL AX, 40(SP) + CALL ·X__atomic_compare_exchangeInt16(SB) + MOVL 48(SP), AX + MOVL AX, _3+48(FP) + RET + +// func Y__atomic_compare_exchangeInt32(t *TLS, ptr, expected, desired uintptr, weak, success, failure int32) (_3 int32) +TEXT ·Y__atomic_compare_exchangeInt32(SB),$56-52 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ expected+16(FP), AX + MOVQ AX, 16(SP) + MOVQ desired+24(FP), AX + MOVQ AX, 24(SP) + MOVL weak+32(FP), AX + MOVL AX, 32(SP) + MOVL success+36(FP), AX + MOVL AX, 36(SP) + MOVL failure+40(FP), AX + MOVL AX, 40(SP) + CALL ·X__atomic_compare_exchangeInt32(SB) + MOVL 48(SP), AX + MOVL AX, _3+48(FP) + RET + +// func Y__atomic_compare_exchangeInt64(t *TLS, ptr, expected, desired uintptr, weak, success, failure int32) (_3 int32) +TEXT ·Y__atomic_compare_exchangeInt64(SB),$56-52 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ expected+16(FP), AX + MOVQ AX, 16(SP) + MOVQ desired+24(FP), AX + MOVQ AX, 24(SP) + MOVL weak+32(FP), AX + MOVL AX, 32(SP) + MOVL success+36(FP), AX + MOVL AX, 36(SP) + MOVL failure+40(FP), AX + MOVL AX, 40(SP) + CALL ·X__atomic_compare_exchangeInt64(SB) + MOVL 48(SP), AX + MOVL AX, _3+48(FP) + RET + +// func Y__atomic_compare_exchangeInt8(t *TLS, ptr, expected, desired uintptr, weak, success, failure int32) (_3 int32) +TEXT ·Y__atomic_compare_exchangeInt8(SB),$56-52 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ expected+16(FP), AX + MOVQ AX, 16(SP) + MOVQ desired+24(FP), AX + MOVQ AX, 24(SP) + MOVL weak+32(FP), AX + MOVL AX, 32(SP) + MOVL success+36(FP), AX + MOVL AX, 36(SP) + MOVL failure+40(FP), AX + MOVL AX, 40(SP) + CALL ·X__atomic_compare_exchangeInt8(SB) + MOVL 48(SP), AX + MOVL AX, _3+48(FP) + RET + +// func Y__atomic_compare_exchangeUint16(t *TLS, ptr, expected, desired uintptr, weak, success, failure int32) (_3 int32) +TEXT ·Y__atomic_compare_exchangeUint16(SB),$56-52 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ expected+16(FP), AX + MOVQ AX, 16(SP) + MOVQ desired+24(FP), AX + MOVQ AX, 24(SP) + MOVL weak+32(FP), AX + MOVL AX, 32(SP) + MOVL success+36(FP), AX + MOVL AX, 36(SP) + MOVL failure+40(FP), AX + MOVL AX, 40(SP) + CALL ·X__atomic_compare_exchangeUint16(SB) + MOVL 48(SP), AX + MOVL AX, _3+48(FP) + RET + +// func Y__atomic_compare_exchangeUint32(t *TLS, ptr, expected, desired uintptr, weak, success, failure int32) (_3 int32) +TEXT ·Y__atomic_compare_exchangeUint32(SB),$56-52 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ expected+16(FP), AX + MOVQ AX, 16(SP) + MOVQ desired+24(FP), AX + MOVQ AX, 24(SP) + MOVL weak+32(FP), AX + MOVL AX, 32(SP) + MOVL success+36(FP), AX + MOVL AX, 36(SP) + MOVL failure+40(FP), AX + MOVL AX, 40(SP) + CALL ·X__atomic_compare_exchangeUint32(SB) + MOVL 48(SP), AX + MOVL AX, _3+48(FP) + RET + +// func Y__atomic_compare_exchangeUint64(t *TLS, ptr, expected, desired uintptr, weak, success, failure int32) (_3 int32) +TEXT ·Y__atomic_compare_exchangeUint64(SB),$56-52 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ expected+16(FP), AX + MOVQ AX, 16(SP) + MOVQ desired+24(FP), AX + MOVQ AX, 24(SP) + MOVL weak+32(FP), AX + MOVL AX, 32(SP) + MOVL success+36(FP), AX + MOVL AX, 36(SP) + MOVL failure+40(FP), AX + MOVL AX, 40(SP) + CALL ·X__atomic_compare_exchangeUint64(SB) + MOVL 48(SP), AX + MOVL AX, _3+48(FP) + RET + +// func Y__atomic_compare_exchangeUint8(t *TLS, ptr, expected, desired uintptr, weak, success, failure int32) (_3 int32) +TEXT ·Y__atomic_compare_exchangeUint8(SB),$56-52 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ expected+16(FP), AX + MOVQ AX, 16(SP) + MOVQ desired+24(FP), AX + MOVQ AX, 24(SP) + MOVL weak+32(FP), AX + MOVL AX, 32(SP) + MOVL success+36(FP), AX + MOVL AX, 36(SP) + MOVL failure+40(FP), AX + MOVL AX, 40(SP) + CALL ·X__atomic_compare_exchangeUint8(SB) + MOVL 48(SP), AX + MOVL AX, _3+48(FP) + RET + +// func Y__atomic_exchangeInt16(t *TLS, ptr, val, ret uintptr, _ int32) +TEXT ·Y__atomic_exchangeInt16(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ val+16(FP), AX + MOVQ AX, 16(SP) + MOVQ ret+24(FP), AX + MOVQ AX, 24(SP) + MOVL _+32(FP), AX + MOVL AX, 32(SP) + CALL ·X__atomic_exchangeInt16(SB) + RET + +// func Y__atomic_exchangeInt32(t *TLS, ptr, val, ret uintptr, _ int32) +TEXT ·Y__atomic_exchangeInt32(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ val+16(FP), AX + MOVQ AX, 16(SP) + MOVQ ret+24(FP), AX + MOVQ AX, 24(SP) + MOVL _+32(FP), AX + MOVL AX, 32(SP) + CALL ·X__atomic_exchangeInt32(SB) + RET + +// func Y__atomic_exchangeInt64(t *TLS, ptr, val, ret uintptr, _ int32) +TEXT ·Y__atomic_exchangeInt64(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ val+16(FP), AX + MOVQ AX, 16(SP) + MOVQ ret+24(FP), AX + MOVQ AX, 24(SP) + MOVL _+32(FP), AX + MOVL AX, 32(SP) + CALL ·X__atomic_exchangeInt64(SB) + RET + +// func Y__atomic_exchangeInt8(t *TLS, ptr, val, ret uintptr, _ int32) +TEXT ·Y__atomic_exchangeInt8(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ val+16(FP), AX + MOVQ AX, 16(SP) + MOVQ ret+24(FP), AX + MOVQ AX, 24(SP) + MOVL _+32(FP), AX + MOVL AX, 32(SP) + CALL ·X__atomic_exchangeInt8(SB) + RET + +// func Y__atomic_exchangeUint16(t *TLS, ptr, val, ret uintptr, _ int32) +TEXT ·Y__atomic_exchangeUint16(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ val+16(FP), AX + MOVQ AX, 16(SP) + MOVQ ret+24(FP), AX + MOVQ AX, 24(SP) + MOVL _+32(FP), AX + MOVL AX, 32(SP) + CALL ·X__atomic_exchangeUint16(SB) + RET + +// func Y__atomic_exchangeUint32(t *TLS, ptr, val, ret uintptr, _ int32) +TEXT ·Y__atomic_exchangeUint32(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ val+16(FP), AX + MOVQ AX, 16(SP) + MOVQ ret+24(FP), AX + MOVQ AX, 24(SP) + MOVL _+32(FP), AX + MOVL AX, 32(SP) + CALL ·X__atomic_exchangeUint32(SB) + RET + +// func Y__atomic_exchangeUint64(t *TLS, ptr, val, ret uintptr, _ int32) +TEXT ·Y__atomic_exchangeUint64(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ val+16(FP), AX + MOVQ AX, 16(SP) + MOVQ ret+24(FP), AX + MOVQ AX, 24(SP) + MOVL _+32(FP), AX + MOVL AX, 32(SP) + CALL ·X__atomic_exchangeUint64(SB) + RET + +// func Y__atomic_exchangeUint8(t *TLS, ptr, val, ret uintptr, _ int32) +TEXT ·Y__atomic_exchangeUint8(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ val+16(FP), AX + MOVQ AX, 16(SP) + MOVQ ret+24(FP), AX + MOVQ AX, 24(SP) + MOVL _+32(FP), AX + MOVL AX, 32(SP) + CALL ·X__atomic_exchangeUint8(SB) + RET + +// func Y__atomic_fetch_addInt16(t *TLS, ptr uintptr, val int16, _ int32) (r int16) +TEXT ·Y__atomic_fetch_addInt16(SB),$32-26 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVW val+16(FP), AX + MOVW AX, 16(SP) + MOVL _+20(FP), AX + MOVL AX, 20(SP) + CALL ·X__atomic_fetch_addInt16(SB) + MOVW 24(SP), AX + MOVW AX, r+24(FP) + RET + +// func Y__atomic_fetch_addInt32(t *TLS, ptr uintptr, val int32, _ int32) (r int32) +TEXT ·Y__atomic_fetch_addInt32(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVL val+16(FP), AX + MOVL AX, 16(SP) + MOVL _+20(FP), AX + MOVL AX, 20(SP) + CALL ·X__atomic_fetch_addInt32(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Y__atomic_fetch_addInt64(t *TLS, ptr uintptr, val int64, _ int32) (r int64) +TEXT ·Y__atomic_fetch_addInt64(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ val+16(FP), AX + MOVQ AX, 16(SP) + MOVL _+24(FP), AX + MOVL AX, 24(SP) + CALL ·X__atomic_fetch_addInt64(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Y__atomic_fetch_addInt8(t *TLS, ptr uintptr, val int8, _ int32) (r int8) +TEXT ·Y__atomic_fetch_addInt8(SB),$32-25 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVB val+16(FP), AX + MOVB AX, 16(SP) + MOVL _+20(FP), AX + MOVL AX, 20(SP) + CALL ·X__atomic_fetch_addInt8(SB) + MOVB 24(SP), AX + MOVB AX, r+24(FP) + RET + +// func Y__atomic_fetch_addUint16(t *TLS, ptr uintptr, val uint16, _ int32) (r uint16) +TEXT ·Y__atomic_fetch_addUint16(SB),$32-26 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVW val+16(FP), AX + MOVW AX, 16(SP) + MOVL _+20(FP), AX + MOVL AX, 20(SP) + CALL ·X__atomic_fetch_addUint16(SB) + MOVW 24(SP), AX + MOVW AX, r+24(FP) + RET + +// func Y__atomic_fetch_addUint32(t *TLS, ptr uintptr, val uint32, _ int32) (r uint32) +TEXT ·Y__atomic_fetch_addUint32(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVL val+16(FP), AX + MOVL AX, 16(SP) + MOVL _+20(FP), AX + MOVL AX, 20(SP) + CALL ·X__atomic_fetch_addUint32(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Y__atomic_fetch_addUint64(t *TLS, ptr uintptr, val uint64, _ int32) (r uint64) +TEXT ·Y__atomic_fetch_addUint64(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ val+16(FP), AX + MOVQ AX, 16(SP) + MOVL _+24(FP), AX + MOVL AX, 24(SP) + CALL ·X__atomic_fetch_addUint64(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Y__atomic_fetch_addUint8(t *TLS, ptr uintptr, val uint8, _ int32) (r uint8) +TEXT ·Y__atomic_fetch_addUint8(SB),$32-25 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVB val+16(FP), AX + MOVB AX, 16(SP) + MOVL _+20(FP), AX + MOVL AX, 20(SP) + CALL ·X__atomic_fetch_addUint8(SB) + MOVB 24(SP), AX + MOVB AX, r+24(FP) + RET + +// func Y__atomic_fetch_andInt16(t *TLS, ptr uintptr, val int16, _ int32) (r int16) +TEXT ·Y__atomic_fetch_andInt16(SB),$32-26 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVW val+16(FP), AX + MOVW AX, 16(SP) + MOVL _+20(FP), AX + MOVL AX, 20(SP) + CALL ·X__atomic_fetch_andInt16(SB) + MOVW 24(SP), AX + MOVW AX, r+24(FP) + RET + +// func Y__atomic_fetch_andInt32(t *TLS, ptr uintptr, val int32, _ int32) (r int32) +TEXT ·Y__atomic_fetch_andInt32(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVL val+16(FP), AX + MOVL AX, 16(SP) + MOVL _+20(FP), AX + MOVL AX, 20(SP) + CALL ·X__atomic_fetch_andInt32(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Y__atomic_fetch_andInt64(t *TLS, ptr uintptr, val int64, _ int32) (r int64) +TEXT ·Y__atomic_fetch_andInt64(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ val+16(FP), AX + MOVQ AX, 16(SP) + MOVL _+24(FP), AX + MOVL AX, 24(SP) + CALL ·X__atomic_fetch_andInt64(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Y__atomic_fetch_andInt8(t *TLS, ptr uintptr, val int8, _ int32) (r int8) +TEXT ·Y__atomic_fetch_andInt8(SB),$32-25 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVB val+16(FP), AX + MOVB AX, 16(SP) + MOVL _+20(FP), AX + MOVL AX, 20(SP) + CALL ·X__atomic_fetch_andInt8(SB) + MOVB 24(SP), AX + MOVB AX, r+24(FP) + RET + +// func Y__atomic_fetch_andUint16(t *TLS, ptr uintptr, val uint16, _ int32) (r uint16) +TEXT ·Y__atomic_fetch_andUint16(SB),$32-26 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVW val+16(FP), AX + MOVW AX, 16(SP) + MOVL _+20(FP), AX + MOVL AX, 20(SP) + CALL ·X__atomic_fetch_andUint16(SB) + MOVW 24(SP), AX + MOVW AX, r+24(FP) + RET + +// func Y__atomic_fetch_andUint32(t *TLS, ptr uintptr, val uint32, _ int32) (r uint32) +TEXT ·Y__atomic_fetch_andUint32(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVL val+16(FP), AX + MOVL AX, 16(SP) + MOVL _+20(FP), AX + MOVL AX, 20(SP) + CALL ·X__atomic_fetch_andUint32(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Y__atomic_fetch_andUint64(t *TLS, ptr uintptr, val uint64, _ int32) (r uint64) +TEXT ·Y__atomic_fetch_andUint64(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ val+16(FP), AX + MOVQ AX, 16(SP) + MOVL _+24(FP), AX + MOVL AX, 24(SP) + CALL ·X__atomic_fetch_andUint64(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Y__atomic_fetch_andUint8(t *TLS, ptr uintptr, val uint8, _ int32) (r uint8) +TEXT ·Y__atomic_fetch_andUint8(SB),$32-25 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVB val+16(FP), AX + MOVB AX, 16(SP) + MOVL _+20(FP), AX + MOVL AX, 20(SP) + CALL ·X__atomic_fetch_andUint8(SB) + MOVB 24(SP), AX + MOVB AX, r+24(FP) + RET + +// func Y__atomic_fetch_orInt16(t *TLS, ptr uintptr, val int16, _ int32) (r int16) +TEXT ·Y__atomic_fetch_orInt16(SB),$32-26 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVW val+16(FP), AX + MOVW AX, 16(SP) + MOVL _+20(FP), AX + MOVL AX, 20(SP) + CALL ·X__atomic_fetch_orInt16(SB) + MOVW 24(SP), AX + MOVW AX, r+24(FP) + RET + +// func Y__atomic_fetch_orInt32(t *TLS, ptr uintptr, val int32, _ int32) (r int32) +TEXT ·Y__atomic_fetch_orInt32(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVL val+16(FP), AX + MOVL AX, 16(SP) + MOVL _+20(FP), AX + MOVL AX, 20(SP) + CALL ·X__atomic_fetch_orInt32(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Y__atomic_fetch_orInt64(t *TLS, ptr uintptr, val int64, _ int32) (r int64) +TEXT ·Y__atomic_fetch_orInt64(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ val+16(FP), AX + MOVQ AX, 16(SP) + MOVL _+24(FP), AX + MOVL AX, 24(SP) + CALL ·X__atomic_fetch_orInt64(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Y__atomic_fetch_orInt8(t *TLS, ptr uintptr, val int8, _ int32) (r int8) +TEXT ·Y__atomic_fetch_orInt8(SB),$32-25 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVB val+16(FP), AX + MOVB AX, 16(SP) + MOVL _+20(FP), AX + MOVL AX, 20(SP) + CALL ·X__atomic_fetch_orInt8(SB) + MOVB 24(SP), AX + MOVB AX, r+24(FP) + RET + +// func Y__atomic_fetch_orUint16(t *TLS, ptr uintptr, val uint16, _ int32) (r uint16) +TEXT ·Y__atomic_fetch_orUint16(SB),$32-26 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVW val+16(FP), AX + MOVW AX, 16(SP) + MOVL _+20(FP), AX + MOVL AX, 20(SP) + CALL ·X__atomic_fetch_orUint16(SB) + MOVW 24(SP), AX + MOVW AX, r+24(FP) + RET + +// func Y__atomic_fetch_orUint32(t *TLS, ptr uintptr, val uint32, _ int32) (r uint32) +TEXT ·Y__atomic_fetch_orUint32(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVL val+16(FP), AX + MOVL AX, 16(SP) + MOVL _+20(FP), AX + MOVL AX, 20(SP) + CALL ·X__atomic_fetch_orUint32(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Y__atomic_fetch_orUint64(t *TLS, ptr uintptr, val uint64, _ int32) (r uint64) +TEXT ·Y__atomic_fetch_orUint64(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ val+16(FP), AX + MOVQ AX, 16(SP) + MOVL _+24(FP), AX + MOVL AX, 24(SP) + CALL ·X__atomic_fetch_orUint64(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Y__atomic_fetch_orUint8(t *TLS, ptr uintptr, val uint8, _ int32) (r uint8) +TEXT ·Y__atomic_fetch_orUint8(SB),$32-25 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVB val+16(FP), AX + MOVB AX, 16(SP) + MOVL _+20(FP), AX + MOVL AX, 20(SP) + CALL ·X__atomic_fetch_orUint8(SB) + MOVB 24(SP), AX + MOVB AX, r+24(FP) + RET + +// func Y__atomic_fetch_subInt16(t *TLS, ptr uintptr, val int16, _ int32) (r int16) +TEXT ·Y__atomic_fetch_subInt16(SB),$32-26 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVW val+16(FP), AX + MOVW AX, 16(SP) + MOVL _+20(FP), AX + MOVL AX, 20(SP) + CALL ·X__atomic_fetch_subInt16(SB) + MOVW 24(SP), AX + MOVW AX, r+24(FP) + RET + +// func Y__atomic_fetch_subInt32(t *TLS, ptr uintptr, val int32, _ int32) (r int32) +TEXT ·Y__atomic_fetch_subInt32(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVL val+16(FP), AX + MOVL AX, 16(SP) + MOVL _+20(FP), AX + MOVL AX, 20(SP) + CALL ·X__atomic_fetch_subInt32(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Y__atomic_fetch_subInt64(t *TLS, ptr uintptr, val int64, _ int32) (r int64) +TEXT ·Y__atomic_fetch_subInt64(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ val+16(FP), AX + MOVQ AX, 16(SP) + MOVL _+24(FP), AX + MOVL AX, 24(SP) + CALL ·X__atomic_fetch_subInt64(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Y__atomic_fetch_subInt8(t *TLS, ptr uintptr, val int8, _ int32) (r int8) +TEXT ·Y__atomic_fetch_subInt8(SB),$32-25 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVB val+16(FP), AX + MOVB AX, 16(SP) + MOVL _+20(FP), AX + MOVL AX, 20(SP) + CALL ·X__atomic_fetch_subInt8(SB) + MOVB 24(SP), AX + MOVB AX, r+24(FP) + RET + +// func Y__atomic_fetch_subUint16(t *TLS, ptr uintptr, val uint16, _ int32) (r uint16) +TEXT ·Y__atomic_fetch_subUint16(SB),$32-26 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVW val+16(FP), AX + MOVW AX, 16(SP) + MOVL _+20(FP), AX + MOVL AX, 20(SP) + CALL ·X__atomic_fetch_subUint16(SB) + MOVW 24(SP), AX + MOVW AX, r+24(FP) + RET + +// func Y__atomic_fetch_subUint32(t *TLS, ptr uintptr, val uint32, _ int32) (r uint32) +TEXT ·Y__atomic_fetch_subUint32(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVL val+16(FP), AX + MOVL AX, 16(SP) + MOVL _+20(FP), AX + MOVL AX, 20(SP) + CALL ·X__atomic_fetch_subUint32(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Y__atomic_fetch_subUint64(t *TLS, ptr uintptr, val uint64, _ int32) (r uint64) +TEXT ·Y__atomic_fetch_subUint64(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ val+16(FP), AX + MOVQ AX, 16(SP) + MOVL _+24(FP), AX + MOVL AX, 24(SP) + CALL ·X__atomic_fetch_subUint64(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Y__atomic_fetch_subUint8(t *TLS, ptr uintptr, val uint8, _ int32) (r uint8) +TEXT ·Y__atomic_fetch_subUint8(SB),$32-25 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVB val+16(FP), AX + MOVB AX, 16(SP) + MOVL _+20(FP), AX + MOVL AX, 20(SP) + CALL ·X__atomic_fetch_subUint8(SB) + MOVB 24(SP), AX + MOVB AX, r+24(FP) + RET + +// func Y__atomic_fetch_xorInt16(t *TLS, ptr uintptr, val int16, _ int32) (r int16) +TEXT ·Y__atomic_fetch_xorInt16(SB),$32-26 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVW val+16(FP), AX + MOVW AX, 16(SP) + MOVL _+20(FP), AX + MOVL AX, 20(SP) + CALL ·X__atomic_fetch_xorInt16(SB) + MOVW 24(SP), AX + MOVW AX, r+24(FP) + RET + +// func Y__atomic_fetch_xorInt32(t *TLS, ptr uintptr, val int32, _ int32) (r int32) +TEXT ·Y__atomic_fetch_xorInt32(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVL val+16(FP), AX + MOVL AX, 16(SP) + MOVL _+20(FP), AX + MOVL AX, 20(SP) + CALL ·X__atomic_fetch_xorInt32(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Y__atomic_fetch_xorInt64(t *TLS, ptr uintptr, val int64, _ int32) (r int64) +TEXT ·Y__atomic_fetch_xorInt64(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ val+16(FP), AX + MOVQ AX, 16(SP) + MOVL _+24(FP), AX + MOVL AX, 24(SP) + CALL ·X__atomic_fetch_xorInt64(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Y__atomic_fetch_xorInt8(t *TLS, ptr uintptr, val int8, _ int32) (r int8) +TEXT ·Y__atomic_fetch_xorInt8(SB),$32-25 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVB val+16(FP), AX + MOVB AX, 16(SP) + MOVL _+20(FP), AX + MOVL AX, 20(SP) + CALL ·X__atomic_fetch_xorInt8(SB) + MOVB 24(SP), AX + MOVB AX, r+24(FP) + RET + +// func Y__atomic_fetch_xorUint16(t *TLS, ptr uintptr, val uint16, _ int32) (r uint16) +TEXT ·Y__atomic_fetch_xorUint16(SB),$32-26 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVW val+16(FP), AX + MOVW AX, 16(SP) + MOVL _+20(FP), AX + MOVL AX, 20(SP) + CALL ·X__atomic_fetch_xorUint16(SB) + MOVW 24(SP), AX + MOVW AX, r+24(FP) + RET + +// func Y__atomic_fetch_xorUint32(t *TLS, ptr uintptr, val uint32, _ int32) (r uint32) +TEXT ·Y__atomic_fetch_xorUint32(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVL val+16(FP), AX + MOVL AX, 16(SP) + MOVL _+20(FP), AX + MOVL AX, 20(SP) + CALL ·X__atomic_fetch_xorUint32(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Y__atomic_fetch_xorUint64(t *TLS, ptr uintptr, val uint64, _ int32) (r uint64) +TEXT ·Y__atomic_fetch_xorUint64(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ val+16(FP), AX + MOVQ AX, 16(SP) + MOVL _+24(FP), AX + MOVL AX, 24(SP) + CALL ·X__atomic_fetch_xorUint64(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Y__atomic_fetch_xorUint8(t *TLS, ptr uintptr, val uint8, _ int32) (r uint8) +TEXT ·Y__atomic_fetch_xorUint8(SB),$32-25 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVB val+16(FP), AX + MOVB AX, 16(SP) + MOVL _+20(FP), AX + MOVL AX, 20(SP) + CALL ·X__atomic_fetch_xorUint8(SB) + MOVB 24(SP), AX + MOVB AX, r+24(FP) + RET + +// func Y__atomic_loadInt16(t *TLS, ptr, ret uintptr, memorder int32) +TEXT ·Y__atomic_loadInt16(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ ret+16(FP), AX + MOVQ AX, 16(SP) + MOVL memorder+24(FP), AX + MOVL AX, 24(SP) + CALL ·X__atomic_loadInt16(SB) + RET + +// func Y__atomic_loadInt32(t *TLS, ptr, ret uintptr, memorder int32) +TEXT ·Y__atomic_loadInt32(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ ret+16(FP), AX + MOVQ AX, 16(SP) + MOVL memorder+24(FP), AX + MOVL AX, 24(SP) + CALL ·X__atomic_loadInt32(SB) + RET + +// func Y__atomic_loadInt64(t *TLS, ptr, ret uintptr, memorder int32) +TEXT ·Y__atomic_loadInt64(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ ret+16(FP), AX + MOVQ AX, 16(SP) + MOVL memorder+24(FP), AX + MOVL AX, 24(SP) + CALL ·X__atomic_loadInt64(SB) + RET + +// func Y__atomic_loadInt8(t *TLS, ptr, ret uintptr, memorder int32) +TEXT ·Y__atomic_loadInt8(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ ret+16(FP), AX + MOVQ AX, 16(SP) + MOVL memorder+24(FP), AX + MOVL AX, 24(SP) + CALL ·X__atomic_loadInt8(SB) + RET + +// func Y__atomic_loadUint16(t *TLS, ptr, ret uintptr, memorder int32) +TEXT ·Y__atomic_loadUint16(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ ret+16(FP), AX + MOVQ AX, 16(SP) + MOVL memorder+24(FP), AX + MOVL AX, 24(SP) + CALL ·X__atomic_loadUint16(SB) + RET + +// func Y__atomic_loadUint32(t *TLS, ptr, ret uintptr, memorder int32) +TEXT ·Y__atomic_loadUint32(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ ret+16(FP), AX + MOVQ AX, 16(SP) + MOVL memorder+24(FP), AX + MOVL AX, 24(SP) + CALL ·X__atomic_loadUint32(SB) + RET + +// func Y__atomic_loadUint64(t *TLS, ptr, ret uintptr, memorder int32) +TEXT ·Y__atomic_loadUint64(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ ret+16(FP), AX + MOVQ AX, 16(SP) + MOVL memorder+24(FP), AX + MOVL AX, 24(SP) + CALL ·X__atomic_loadUint64(SB) + RET + +// func Y__atomic_loadUint8(t *TLS, ptr, ret uintptr, memorder int32) +TEXT ·Y__atomic_loadUint8(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ ret+16(FP), AX + MOVQ AX, 16(SP) + MOVL memorder+24(FP), AX + MOVL AX, 24(SP) + CALL ·X__atomic_loadUint8(SB) + RET + +// func Y__atomic_storeInt16(t *TLS, ptr, val uintptr, memorder int32) +TEXT ·Y__atomic_storeInt16(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ val+16(FP), AX + MOVQ AX, 16(SP) + MOVL memorder+24(FP), AX + MOVL AX, 24(SP) + CALL ·X__atomic_storeInt16(SB) + RET + +// func Y__atomic_storeInt32(t *TLS, ptr, val uintptr, memorder int32) +TEXT ·Y__atomic_storeInt32(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ val+16(FP), AX + MOVQ AX, 16(SP) + MOVL memorder+24(FP), AX + MOVL AX, 24(SP) + CALL ·X__atomic_storeInt32(SB) + RET + +// func Y__atomic_storeInt64(t *TLS, ptr, val uintptr, memorder int32) +TEXT ·Y__atomic_storeInt64(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ val+16(FP), AX + MOVQ AX, 16(SP) + MOVL memorder+24(FP), AX + MOVL AX, 24(SP) + CALL ·X__atomic_storeInt64(SB) + RET + +// func Y__atomic_storeInt8(t *TLS, ptr, val uintptr, memorder int32) +TEXT ·Y__atomic_storeInt8(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ val+16(FP), AX + MOVQ AX, 16(SP) + MOVL memorder+24(FP), AX + MOVL AX, 24(SP) + CALL ·X__atomic_storeInt8(SB) + RET + +// func Y__atomic_storeUint16(t *TLS, ptr, val uintptr, memorder int32) +TEXT ·Y__atomic_storeUint16(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ val+16(FP), AX + MOVQ AX, 16(SP) + MOVL memorder+24(FP), AX + MOVL AX, 24(SP) + CALL ·X__atomic_storeUint16(SB) + RET + +// func Y__atomic_storeUint32(t *TLS, ptr, val uintptr, memorder int32) +TEXT ·Y__atomic_storeUint32(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ val+16(FP), AX + MOVQ AX, 16(SP) + MOVL memorder+24(FP), AX + MOVL AX, 24(SP) + CALL ·X__atomic_storeUint32(SB) + RET + +// func Y__atomic_storeUint64(t *TLS, ptr, val uintptr, memorder int32) +TEXT ·Y__atomic_storeUint64(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ val+16(FP), AX + MOVQ AX, 16(SP) + MOVL memorder+24(FP), AX + MOVL AX, 24(SP) + CALL ·X__atomic_storeUint64(SB) + RET + +// func Y__atomic_storeUint8(t *TLS, ptr, val uintptr, memorder int32) +TEXT ·Y__atomic_storeUint8(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ val+16(FP), AX + MOVQ AX, 16(SP) + MOVL memorder+24(FP), AX + MOVL AX, 24(SP) + CALL ·X__atomic_storeUint8(SB) + RET + +// func Y__block_all_sigs(tls *TLS, set uintptr) +TEXT ·Y__block_all_sigs(SB),$16-16 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ set+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X__block_all_sigs(SB) + RET + +// func Y__block_app_sigs(tls *TLS, set uintptr) +TEXT ·Y__block_app_sigs(SB),$16-16 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ set+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X__block_app_sigs(SB) + RET + +// func Y__builtin___memcpy_chk(t *TLS, dest, src uintptr, n, os Tsize_t) (r uintptr) +TEXT ·Y__builtin___memcpy_chk(SB),$48-48 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ dest+8(FP), AX + MOVQ AX, 8(SP) + MOVQ src+16(FP), AX + MOVQ AX, 16(SP) + MOVQ n+24(FP), AX + MOVQ AX, 24(SP) + MOVQ os+32(FP), AX + MOVQ AX, 32(SP) + CALL ·X__builtin___memcpy_chk(SB) + MOVQ 40(SP), AX + MOVQ AX, r+40(FP) + RET + +// func Y__builtin___memmove_chk(t *TLS, dest, src uintptr, n, os Tsize_t) (_3 uintptr) +TEXT ·Y__builtin___memmove_chk(SB),$48-48 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ dest+8(FP), AX + MOVQ AX, 8(SP) + MOVQ src+16(FP), AX + MOVQ AX, 16(SP) + MOVQ n+24(FP), AX + MOVQ AX, 24(SP) + MOVQ os+32(FP), AX + MOVQ AX, 32(SP) + CALL ·X__builtin___memmove_chk(SB) + MOVQ 40(SP), AX + MOVQ AX, _3+40(FP) + RET + +// func Y__builtin___memset_chk(t *TLS, s uintptr, c int32, n, os Tsize_t) (_4 uintptr) +TEXT ·Y__builtin___memset_chk(SB),$48-48 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVL c+16(FP), AX + MOVL AX, 16(SP) + MOVQ n+24(FP), AX + MOVQ AX, 24(SP) + MOVQ os+32(FP), AX + MOVQ AX, 32(SP) + CALL ·X__builtin___memset_chk(SB) + MOVQ 40(SP), AX + MOVQ AX, _4+40(FP) + RET + +// func Y__builtin___snprintf_chk(t *TLS, str uintptr, maxlen Tsize_t, flag int32, os Tsize_t, format, args uintptr) (r int32) +TEXT ·Y__builtin___snprintf_chk(SB),$64-60 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ str+8(FP), AX + MOVQ AX, 8(SP) + MOVQ maxlen+16(FP), AX + MOVQ AX, 16(SP) + MOVL flag+24(FP), AX + MOVL AX, 24(SP) + MOVQ os+32(FP), AX + MOVQ AX, 32(SP) + MOVQ format+40(FP), AX + MOVQ AX, 40(SP) + MOVQ args+48(FP), AX + MOVQ AX, 48(SP) + CALL ·X__builtin___snprintf_chk(SB) + MOVL 56(SP), AX + MOVL AX, r+56(FP) + RET + +// func Y__builtin___sprintf_chk(t *TLS, s uintptr, flag int32, os Tsize_t, format, args uintptr) (r int32) +TEXT ·Y__builtin___sprintf_chk(SB),$56-52 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVL flag+16(FP), AX + MOVL AX, 16(SP) + MOVQ os+24(FP), AX + MOVQ AX, 24(SP) + MOVQ format+32(FP), AX + MOVQ AX, 32(SP) + MOVQ args+40(FP), AX + MOVQ AX, 40(SP) + CALL ·X__builtin___sprintf_chk(SB) + MOVL 48(SP), AX + MOVL AX, r+48(FP) + RET + +// func Y__builtin___strcat_chk(t *TLS, dest, src uintptr, os Tsize_t) (r uintptr) +TEXT ·Y__builtin___strcat_chk(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ dest+8(FP), AX + MOVQ AX, 8(SP) + MOVQ src+16(FP), AX + MOVQ AX, 16(SP) + MOVQ os+24(FP), AX + MOVQ AX, 24(SP) + CALL ·X__builtin___strcat_chk(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Y__builtin___strcpy_chk(t *TLS, dest, src uintptr, os Tsize_t) (_3 uintptr) +TEXT ·Y__builtin___strcpy_chk(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ dest+8(FP), AX + MOVQ AX, 8(SP) + MOVQ src+16(FP), AX + MOVQ AX, 16(SP) + MOVQ os+24(FP), AX + MOVQ AX, 24(SP) + CALL ·X__builtin___strcpy_chk(SB) + MOVQ 32(SP), AX + MOVQ AX, _3+32(FP) + RET + +// func Y__builtin___strncpy_chk(t *TLS, dest, src uintptr, n, os Tsize_t) (r uintptr) +TEXT ·Y__builtin___strncpy_chk(SB),$48-48 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ dest+8(FP), AX + MOVQ AX, 8(SP) + MOVQ src+16(FP), AX + MOVQ AX, 16(SP) + MOVQ n+24(FP), AX + MOVQ AX, 24(SP) + MOVQ os+32(FP), AX + MOVQ AX, 32(SP) + CALL ·X__builtin___strncpy_chk(SB) + MOVQ 40(SP), AX + MOVQ AX, r+40(FP) + RET + +// func Y__builtin___vsnprintf_chk(t *TLS, str uintptr, maxlen Tsize_t, flag int32, os Tsize_t, format, args uintptr) (r int32) +TEXT ·Y__builtin___vsnprintf_chk(SB),$64-60 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ str+8(FP), AX + MOVQ AX, 8(SP) + MOVQ maxlen+16(FP), AX + MOVQ AX, 16(SP) + MOVL flag+24(FP), AX + MOVL AX, 24(SP) + MOVQ os+32(FP), AX + MOVQ AX, 32(SP) + MOVQ format+40(FP), AX + MOVQ AX, 40(SP) + MOVQ args+48(FP), AX + MOVQ AX, 48(SP) + CALL ·X__builtin___vsnprintf_chk(SB) + MOVL 56(SP), AX + MOVL AX, r+56(FP) + RET + +// func Y__builtin_abort(t *TLS) +TEXT ·Y__builtin_abort(SB),$8-8 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + CALL ·X__builtin_abort(SB) + RET + +// func Y__builtin_abs(t *TLS, j int32) (_2 int32) +TEXT ·Y__builtin_abs(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVL j+8(FP), AX + MOVL AX, 8(SP) + CALL ·X__builtin_abs(SB) + MOVL 16(SP), AX + MOVL AX, _2+16(FP) + RET + +// func Y__builtin_add_overflowInt64(t *TLS, a, b int64, res uintptr) (_3 int32) +TEXT ·Y__builtin_add_overflowInt64(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ a+8(FP), AX + MOVQ AX, 8(SP) + MOVQ b+16(FP), AX + MOVQ AX, 16(SP) + MOVQ res+24(FP), AX + MOVQ AX, 24(SP) + CALL ·X__builtin_add_overflowInt64(SB) + MOVL 32(SP), AX + MOVL AX, _3+32(FP) + RET + +// func Y__builtin_add_overflowUint32(t *TLS, a, b uint32, res uintptr) (_3 int32) +TEXT ·Y__builtin_add_overflowUint32(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVL a+8(FP), AX + MOVL AX, 8(SP) + MOVL b+12(FP), AX + MOVL AX, 12(SP) + MOVQ res+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__builtin_add_overflowUint32(SB) + MOVL 24(SP), AX + MOVL AX, _3+24(FP) + RET + +// func Y__builtin_add_overflowUint64(t *TLS, a, b uint64, res uintptr) (_3 int32) +TEXT ·Y__builtin_add_overflowUint64(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ a+8(FP), AX + MOVQ AX, 8(SP) + MOVQ b+16(FP), AX + MOVQ AX, 16(SP) + MOVQ res+24(FP), AX + MOVQ AX, 24(SP) + CALL ·X__builtin_add_overflowUint64(SB) + MOVL 32(SP), AX + MOVL AX, _3+32(FP) + RET + +// func Y__builtin_alloca(tls *TLS, size Tsize_t) (_2 uintptr) +TEXT ·Y__builtin_alloca(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ size+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X__builtin_alloca(SB) + MOVQ 16(SP), AX + MOVQ AX, _2+16(FP) + RET + +// func Y__builtin_bswap16(t *TLS, x uint16) (_2 uint16) +TEXT ·Y__builtin_bswap16(SB),$24-18 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVW x+8(FP), AX + MOVW AX, 8(SP) + CALL ·X__builtin_bswap16(SB) + MOVW 16(SP), AX + MOVW AX, _2+16(FP) + RET + +// func Y__builtin_bswap32(t *TLS, x uint32) (_2 uint32) +TEXT ·Y__builtin_bswap32(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVL x+8(FP), AX + MOVL AX, 8(SP) + CALL ·X__builtin_bswap32(SB) + MOVL 16(SP), AX + MOVL AX, _2+16(FP) + RET + +// func Y__builtin_bswap64(t *TLS, x uint64) (_2 uint64) +TEXT ·Y__builtin_bswap64(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X__builtin_bswap64(SB) + MOVQ 16(SP), AX + MOVQ AX, _2+16(FP) + RET + +// func Y__builtin_bzero(t *TLS, s uintptr, n Tsize_t) +TEXT ·Y__builtin_bzero(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ n+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__builtin_bzero(SB) + RET + +// func Y__builtin_clz(t *TLS, n uint32) (_2 int32) +TEXT ·Y__builtin_clz(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVL n+8(FP), AX + MOVL AX, 8(SP) + CALL ·X__builtin_clz(SB) + MOVL 16(SP), AX + MOVL AX, _2+16(FP) + RET + +// func Y__builtin_clzl(t *TLS, n ulong) (_2 int32) +TEXT ·Y__builtin_clzl(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ n+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X__builtin_clzl(SB) + MOVL 16(SP), AX + MOVL AX, _2+16(FP) + RET + +// func Y__builtin_clzll(t *TLS, n uint64) (_2 int32) +TEXT ·Y__builtin_clzll(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ n+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X__builtin_clzll(SB) + MOVL 16(SP), AX + MOVL AX, _2+16(FP) + RET + +// func Y__builtin_copysign(t *TLS, x, y float64) (_2 float64) +TEXT ·Y__builtin_copysign(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + MOVQ y+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__builtin_copysign(SB) + MOVQ 24(SP), AX + MOVQ AX, _2+24(FP) + RET + +// func Y__builtin_copysignf(t *TLS, x, y float32) (_2 float32) +TEXT ·Y__builtin_copysignf(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVL x+8(FP), AX + MOVL AX, 8(SP) + MOVL y+12(FP), AX + MOVL AX, 12(SP) + CALL ·X__builtin_copysignf(SB) + MOVL 16(SP), AX + MOVL AX, _2+16(FP) + RET + +// func Y__builtin_copysignl(t *TLS, x, y float64) (_2 float64) +TEXT ·Y__builtin_copysignl(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + MOVQ y+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__builtin_copysignl(SB) + MOVQ 24(SP), AX + MOVQ AX, _2+24(FP) + RET + +// func Y__builtin_ctz(t *TLS, n uint32) (_2 int32) +TEXT ·Y__builtin_ctz(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVL n+8(FP), AX + MOVL AX, 8(SP) + CALL ·X__builtin_ctz(SB) + MOVL 16(SP), AX + MOVL AX, _2+16(FP) + RET + +// func Y__builtin_ctzl(tls *TLS, x ulong) (_2 int32) +TEXT ·Y__builtin_ctzl(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X__builtin_ctzl(SB) + MOVL 16(SP), AX + MOVL AX, _2+16(FP) + RET + +// func Y__builtin_exit(t *TLS, status int32) +TEXT ·Y__builtin_exit(SB),$16-12 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVL status+8(FP), AX + MOVL AX, 8(SP) + CALL ·X__builtin_exit(SB) + RET + +// func Y__builtin_expect(t *TLS, exp, c long) (_2 long) +TEXT ·Y__builtin_expect(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ exp+8(FP), AX + MOVQ AX, 8(SP) + MOVQ c+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__builtin_expect(SB) + MOVQ 24(SP), AX + MOVQ AX, _2+24(FP) + RET + +// func Y__builtin_fabs(t *TLS, x float64) (_2 float64) +TEXT ·Y__builtin_fabs(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X__builtin_fabs(SB) + MOVQ 16(SP), AX + MOVQ AX, _2+16(FP) + RET + +// func Y__builtin_fabsf(t *TLS, x float32) (_2 float32) +TEXT ·Y__builtin_fabsf(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVL x+8(FP), AX + MOVL AX, 8(SP) + CALL ·X__builtin_fabsf(SB) + MOVL 16(SP), AX + MOVL AX, _2+16(FP) + RET + +// func Y__builtin_fabsl(t *TLS, x float64) (_2 float64) +TEXT ·Y__builtin_fabsl(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X__builtin_fabsl(SB) + MOVQ 16(SP), AX + MOVQ AX, _2+16(FP) + RET + +// func Y__builtin_ffs(tls *TLS, i int32) (r int32) +TEXT ·Y__builtin_ffs(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL i+8(FP), AX + MOVL AX, 8(SP) + CALL ·X__builtin_ffs(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Y__builtin_fma(tls *TLS, x, y, z float64) (r float64) +TEXT ·Y__builtin_fma(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + MOVQ y+16(FP), AX + MOVQ AX, 16(SP) + MOVQ z+24(FP), AX + MOVQ AX, 24(SP) + CALL ·X__builtin_fma(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Y__builtin_fmax(tls *TLS, x float64, y float64) (r float64) +TEXT ·Y__builtin_fmax(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + MOVQ y+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__builtin_fmax(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Y__builtin_fmin(tls *TLS, x float64, y float64) (r float64) +TEXT ·Y__builtin_fmin(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + MOVQ y+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__builtin_fmin(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Y__builtin_free(t *TLS, ptr uintptr) +TEXT ·Y__builtin_free(SB),$16-16 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X__builtin_free(SB) + RET + +// func Y__builtin_getentropy(t *TLS, buf uintptr, n Tsize_t) (_3 int32) +TEXT ·Y__builtin_getentropy(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ buf+8(FP), AX + MOVQ AX, 8(SP) + MOVQ n+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__builtin_getentropy(SB) + MOVL 24(SP), AX + MOVL AX, _3+24(FP) + RET + +// func Y__builtin_huge_val(t *TLS) (_1 float64) +TEXT ·Y__builtin_huge_val(SB),$16-16 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + CALL ·X__builtin_huge_val(SB) + MOVQ 8(SP), AX + MOVQ AX, _1+8(FP) + RET + +// func Y__builtin_huge_valf(t *TLS) (_1 float32) +TEXT ·Y__builtin_huge_valf(SB),$16-12 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + CALL ·X__builtin_huge_valf(SB) + MOVL 8(SP), AX + MOVL AX, _1+8(FP) + RET + +// func Y__builtin_hypot(tls *TLS, x float64, y float64) (r float64) +TEXT ·Y__builtin_hypot(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + MOVQ y+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__builtin_hypot(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Y__builtin_inf(t *TLS) (_1 float64) +TEXT ·Y__builtin_inf(SB),$16-16 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + CALL ·X__builtin_inf(SB) + MOVQ 8(SP), AX + MOVQ AX, _1+8(FP) + RET + +// func Y__builtin_inff(tls *TLS) (_1 float32) +TEXT ·Y__builtin_inff(SB),$16-12 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·X__builtin_inff(SB) + MOVL 8(SP), AX + MOVL AX, _1+8(FP) + RET + +// func Y__builtin_infl(t *TLS) (_1 float64) +TEXT ·Y__builtin_infl(SB),$16-16 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + CALL ·X__builtin_infl(SB) + MOVQ 8(SP), AX + MOVQ AX, _1+8(FP) + RET + +// func Y__builtin_isblank(tls *TLS, c int32) (r int32) +TEXT ·Y__builtin_isblank(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + CALL ·X__builtin_isblank(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Y__builtin_isnan(t *TLS, x float64) (_2 int32) +TEXT ·Y__builtin_isnan(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X__builtin_isnan(SB) + MOVL 16(SP), AX + MOVL AX, _2+16(FP) + RET + +// func Y__builtin_isnanf(t *TLS, x float32) (_2 int32) +TEXT ·Y__builtin_isnanf(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVL x+8(FP), AX + MOVL AX, 8(SP) + CALL ·X__builtin_isnanf(SB) + MOVL 16(SP), AX + MOVL AX, _2+16(FP) + RET + +// func Y__builtin_isnanl(t *TLS, x float64) (_2 int32) +TEXT ·Y__builtin_isnanl(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X__builtin_isnanl(SB) + MOVL 16(SP), AX + MOVL AX, _2+16(FP) + RET + +// func Y__builtin_isprint(tls *TLS, c int32) (r int32) +TEXT ·Y__builtin_isprint(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + CALL ·X__builtin_isprint(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Y__builtin_isunordered(t *TLS, a, b float64) (_2 int32) +TEXT ·Y__builtin_isunordered(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ a+8(FP), AX + MOVQ AX, 8(SP) + MOVQ b+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__builtin_isunordered(SB) + MOVL 24(SP), AX + MOVL AX, _2+24(FP) + RET + +// func Y__builtin_llabs(tls *TLS, a int64) (_2 int64) +TEXT ·Y__builtin_llabs(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ a+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X__builtin_llabs(SB) + MOVQ 16(SP), AX + MOVQ AX, _2+16(FP) + RET + +// func Y__builtin_log2(t *TLS, x float64) (_2 float64) +TEXT ·Y__builtin_log2(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X__builtin_log2(SB) + MOVQ 16(SP), AX + MOVQ AX, _2+16(FP) + RET + +// func Y__builtin_lrint(tls *TLS, x float64) (r long) +TEXT ·Y__builtin_lrint(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X__builtin_lrint(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Y__builtin_lrintf(tls *TLS, x float32) (r long) +TEXT ·Y__builtin_lrintf(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL x+8(FP), AX + MOVL AX, 8(SP) + CALL ·X__builtin_lrintf(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Y__builtin_lround(tls *TLS, x float64) (r long) +TEXT ·Y__builtin_lround(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X__builtin_lround(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Y__builtin_malloc(t *TLS, size Tsize_t) (_2 uintptr) +TEXT ·Y__builtin_malloc(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ size+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X__builtin_malloc(SB) + MOVQ 16(SP), AX + MOVQ AX, _2+16(FP) + RET + +// func Y__builtin_memcmp(t *TLS, s1, s2 uintptr, n Tsize_t) (_3 int32) +TEXT ·Y__builtin_memcmp(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s1+8(FP), AX + MOVQ AX, 8(SP) + MOVQ s2+16(FP), AX + MOVQ AX, 16(SP) + MOVQ n+24(FP), AX + MOVQ AX, 24(SP) + CALL ·X__builtin_memcmp(SB) + MOVL 32(SP), AX + MOVL AX, _3+32(FP) + RET + +// func Y__builtin_memcpy(t *TLS, dest, src uintptr, n Tsize_t) (r uintptr) +TEXT ·Y__builtin_memcpy(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ dest+8(FP), AX + MOVQ AX, 8(SP) + MOVQ src+16(FP), AX + MOVQ AX, 16(SP) + MOVQ n+24(FP), AX + MOVQ AX, 24(SP) + CALL ·X__builtin_memcpy(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Y__builtin_memset(t *TLS, s uintptr, c int32, n Tsize_t) (_4 uintptr) +TEXT ·Y__builtin_memset(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVL c+16(FP), AX + MOVL AX, 16(SP) + MOVQ n+24(FP), AX + MOVQ AX, 24(SP) + CALL ·X__builtin_memset(SB) + MOVQ 32(SP), AX + MOVQ AX, _4+32(FP) + RET + +// func Y__builtin_mmap(t *TLS, addr uintptr, length Tsize_t, prot, flags, fd int32, offset Toff_t) (_5 uintptr) +TEXT ·Y__builtin_mmap(SB),$56-56 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ addr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ length+16(FP), AX + MOVQ AX, 16(SP) + MOVL prot+24(FP), AX + MOVL AX, 24(SP) + MOVL flags+28(FP), AX + MOVL AX, 28(SP) + MOVL fd+32(FP), AX + MOVL AX, 32(SP) + MOVQ offset+40(FP), AX + MOVQ AX, 40(SP) + CALL ·X__builtin_mmap(SB) + MOVQ 48(SP), AX + MOVQ AX, _5+48(FP) + RET + +// func Y__builtin_mul_overflowInt64(t *TLS, a, b int64, res uintptr) (_3 int32) +TEXT ·Y__builtin_mul_overflowInt64(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ a+8(FP), AX + MOVQ AX, 8(SP) + MOVQ b+16(FP), AX + MOVQ AX, 16(SP) + MOVQ res+24(FP), AX + MOVQ AX, 24(SP) + CALL ·X__builtin_mul_overflowInt64(SB) + MOVL 32(SP), AX + MOVL AX, _3+32(FP) + RET + +// func Y__builtin_mul_overflowUint128(t *TLS, a, b Uint128, res uintptr) (_3 int32) +TEXT ·Y__builtin_mul_overflowUint128(SB),$56-52 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ a_Lo+8(FP), AX + MOVQ AX, 8(SP) + MOVQ a_Hi+16(FP), AX + MOVQ AX, 16(SP) + MOVQ b_Lo+24(FP), AX + MOVQ AX, 24(SP) + MOVQ b_Hi+32(FP), AX + MOVQ AX, 32(SP) + MOVQ res+40(FP), AX + MOVQ AX, 40(SP) + CALL ·X__builtin_mul_overflowUint128(SB) + MOVL 48(SP), AX + MOVL AX, _3+48(FP) + RET + +// func Y__builtin_mul_overflowUint64(t *TLS, a, b uint64, res uintptr) (_3 int32) +TEXT ·Y__builtin_mul_overflowUint64(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ a+8(FP), AX + MOVQ AX, 8(SP) + MOVQ b+16(FP), AX + MOVQ AX, 16(SP) + MOVQ res+24(FP), AX + MOVQ AX, 24(SP) + CALL ·X__builtin_mul_overflowUint64(SB) + MOVL 32(SP), AX + MOVL AX, _3+32(FP) + RET + +// func Y__builtin_nan(t *TLS, s uintptr) (_2 float64) +TEXT ·Y__builtin_nan(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X__builtin_nan(SB) + MOVQ 16(SP), AX + MOVQ AX, _2+16(FP) + RET + +// func Y__builtin_nanf(tls *TLS, s uintptr) (_2 float32) +TEXT ·Y__builtin_nanf(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X__builtin_nanf(SB) + MOVL 16(SP), AX + MOVL AX, _2+16(FP) + RET + +// func Y__builtin_nanl(t *TLS, s uintptr) (_2 float64) +TEXT ·Y__builtin_nanl(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X__builtin_nanl(SB) + MOVQ 16(SP), AX + MOVQ AX, _2+16(FP) + RET + +// func Y__builtin_object_size(t *TLS, p uintptr, typ int32) (_3 Tsize_t) +TEXT ·Y__builtin_object_size(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ p+8(FP), AX + MOVQ AX, 8(SP) + MOVL typ+16(FP), AX + MOVL AX, 16(SP) + CALL ·X__builtin_object_size(SB) + MOVQ 24(SP), AX + MOVQ AX, _3+24(FP) + RET + +// func Y__builtin_popcount(t *TLS, x uint32) (_2 int32) +TEXT ·Y__builtin_popcount(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVL x+8(FP), AX + MOVL AX, 8(SP) + CALL ·X__builtin_popcount(SB) + MOVL 16(SP), AX + MOVL AX, _2+16(FP) + RET + +// func Y__builtin_popcountl(t *TLS, x ulong) (_2 int32) +TEXT ·Y__builtin_popcountl(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X__builtin_popcountl(SB) + MOVL 16(SP), AX + MOVL AX, _2+16(FP) + RET + +// func Y__builtin_popcountll(t *TLS, x uint64) (_2 int32) +TEXT ·Y__builtin_popcountll(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X__builtin_popcountll(SB) + MOVL 16(SP), AX + MOVL AX, _2+16(FP) + RET + +// func Y__builtin_prefetch(t *TLS, addr, args uintptr) +TEXT ·Y__builtin_prefetch(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ addr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ args+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__builtin_prefetch(SB) + RET + +// func Y__builtin_printf(tls *TLS, fmt uintptr, va uintptr) (r int32) +TEXT ·Y__builtin_printf(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ fmt+8(FP), AX + MOVQ AX, 8(SP) + MOVQ va+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__builtin_printf(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Y__builtin_rintf(tls *TLS, x float32) (r float32) +TEXT ·Y__builtin_rintf(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL x+8(FP), AX + MOVL AX, 8(SP) + CALL ·X__builtin_rintf(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Y__builtin_round(tls *TLS, x float64) (r float64) +TEXT ·Y__builtin_round(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X__builtin_round(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Y__builtin_roundf(tls *TLS, x float32) (r float32) +TEXT ·Y__builtin_roundf(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL x+8(FP), AX + MOVL AX, 8(SP) + CALL ·X__builtin_roundf(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Y__builtin_snprintf(t *TLS, str uintptr, size Tsize_t, format, args uintptr) (_4 int32) +TEXT ·Y__builtin_snprintf(SB),$48-44 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ str+8(FP), AX + MOVQ AX, 8(SP) + MOVQ size+16(FP), AX + MOVQ AX, 16(SP) + MOVQ format+24(FP), AX + MOVQ AX, 24(SP) + MOVQ args+32(FP), AX + MOVQ AX, 32(SP) + CALL ·X__builtin_snprintf(SB) + MOVL 40(SP), AX + MOVL AX, _4+40(FP) + RET + +// func Y__builtin_sprintf(t *TLS, str, format, args uintptr) (r int32) +TEXT ·Y__builtin_sprintf(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ str+8(FP), AX + MOVQ AX, 8(SP) + MOVQ format+16(FP), AX + MOVQ AX, 16(SP) + MOVQ args+24(FP), AX + MOVQ AX, 24(SP) + CALL ·X__builtin_sprintf(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Y__builtin_strchr(t *TLS, s uintptr, c int32) (_3 uintptr) +TEXT ·Y__builtin_strchr(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVL c+16(FP), AX + MOVL AX, 16(SP) + CALL ·X__builtin_strchr(SB) + MOVQ 24(SP), AX + MOVQ AX, _3+24(FP) + RET + +// func Y__builtin_strcmp(t *TLS, s1, s2 uintptr) (_2 int32) +TEXT ·Y__builtin_strcmp(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s1+8(FP), AX + MOVQ AX, 8(SP) + MOVQ s2+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__builtin_strcmp(SB) + MOVL 24(SP), AX + MOVL AX, _2+24(FP) + RET + +// func Y__builtin_strcpy(t *TLS, dest, src uintptr) (_2 uintptr) +TEXT ·Y__builtin_strcpy(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ dest+8(FP), AX + MOVQ AX, 8(SP) + MOVQ src+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__builtin_strcpy(SB) + MOVQ 24(SP), AX + MOVQ AX, _2+24(FP) + RET + +// func Y__builtin_strlen(t *TLS, s uintptr) (_2 Tsize_t) +TEXT ·Y__builtin_strlen(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X__builtin_strlen(SB) + MOVQ 16(SP), AX + MOVQ AX, _2+16(FP) + RET + +// func Y__builtin_sub_overflowInt64(t *TLS, a, b int64, res uintptr) (_3 int32) +TEXT ·Y__builtin_sub_overflowInt64(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ a+8(FP), AX + MOVQ AX, 8(SP) + MOVQ b+16(FP), AX + MOVQ AX, 16(SP) + MOVQ res+24(FP), AX + MOVQ AX, 24(SP) + CALL ·X__builtin_sub_overflowInt64(SB) + MOVL 32(SP), AX + MOVL AX, _3+32(FP) + RET + +// func Y__builtin_trap(t *TLS) +TEXT ·Y__builtin_trap(SB),$8-8 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + CALL ·X__builtin_trap(SB) + RET + +// func Y__builtin_trunc(tls *TLS, x float64) (r float64) +TEXT ·Y__builtin_trunc(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X__builtin_trunc(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Y__builtin_unreachable(t *TLS) +TEXT ·Y__builtin_unreachable(SB),$8-8 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + CALL ·X__builtin_unreachable(SB) + RET + +// func Y__builtin_vsnprintf(t *TLS, str uintptr, size Tsize_t, format, va uintptr) (_4 int32) +TEXT ·Y__builtin_vsnprintf(SB),$48-44 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ str+8(FP), AX + MOVQ AX, 8(SP) + MOVQ size+16(FP), AX + MOVQ AX, 16(SP) + MOVQ format+24(FP), AX + MOVQ AX, 24(SP) + MOVQ va+32(FP), AX + MOVQ AX, 32(SP) + CALL ·X__builtin_vsnprintf(SB) + MOVL 40(SP), AX + MOVL AX, _4+40(FP) + RET + +// func Y__c11_atomic_compare_exchange_strongInt16(t *TLS, ptr, expected uintptr, desired int16, success, failure int32) (_4 int32) +TEXT ·Y__c11_atomic_compare_exchange_strongInt16(SB),$48-44 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ expected+16(FP), AX + MOVQ AX, 16(SP) + MOVW desired+24(FP), AX + MOVW AX, 24(SP) + MOVL success+28(FP), AX + MOVL AX, 28(SP) + MOVL failure+32(FP), AX + MOVL AX, 32(SP) + CALL ·X__c11_atomic_compare_exchange_strongInt16(SB) + MOVL 40(SP), AX + MOVL AX, _4+40(FP) + RET + +// func Y__c11_atomic_compare_exchange_strongInt32(t *TLS, ptr, expected uintptr, desired, success, failure int32) (_3 int32) +TEXT ·Y__c11_atomic_compare_exchange_strongInt32(SB),$48-44 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ expected+16(FP), AX + MOVQ AX, 16(SP) + MOVL desired+24(FP), AX + MOVL AX, 24(SP) + MOVL success+28(FP), AX + MOVL AX, 28(SP) + MOVL failure+32(FP), AX + MOVL AX, 32(SP) + CALL ·X__c11_atomic_compare_exchange_strongInt32(SB) + MOVL 40(SP), AX + MOVL AX, _3+40(FP) + RET + +// func Y__c11_atomic_compare_exchange_strongInt64(t *TLS, ptr, expected uintptr, desired int64, success, failure int32) (_4 int32) +TEXT ·Y__c11_atomic_compare_exchange_strongInt64(SB),$48-44 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ expected+16(FP), AX + MOVQ AX, 16(SP) + MOVQ desired+24(FP), AX + MOVQ AX, 24(SP) + MOVL success+32(FP), AX + MOVL AX, 32(SP) + MOVL failure+36(FP), AX + MOVL AX, 36(SP) + CALL ·X__c11_atomic_compare_exchange_strongInt64(SB) + MOVL 40(SP), AX + MOVL AX, _4+40(FP) + RET + +// func Y__c11_atomic_compare_exchange_strongInt8(t *TLS, ptr, expected uintptr, desired int8, success, failure int32) (_4 int32) +TEXT ·Y__c11_atomic_compare_exchange_strongInt8(SB),$48-44 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ expected+16(FP), AX + MOVQ AX, 16(SP) + MOVB desired+24(FP), AX + MOVB AX, 24(SP) + MOVL success+28(FP), AX + MOVL AX, 28(SP) + MOVL failure+32(FP), AX + MOVL AX, 32(SP) + CALL ·X__c11_atomic_compare_exchange_strongInt8(SB) + MOVL 40(SP), AX + MOVL AX, _4+40(FP) + RET + +// func Y__c11_atomic_compare_exchange_strongUint16(t *TLS, ptr, expected uintptr, desired uint16, success, failure int32) (_4 int32) +TEXT ·Y__c11_atomic_compare_exchange_strongUint16(SB),$48-44 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ expected+16(FP), AX + MOVQ AX, 16(SP) + MOVW desired+24(FP), AX + MOVW AX, 24(SP) + MOVL success+28(FP), AX + MOVL AX, 28(SP) + MOVL failure+32(FP), AX + MOVL AX, 32(SP) + CALL ·X__c11_atomic_compare_exchange_strongUint16(SB) + MOVL 40(SP), AX + MOVL AX, _4+40(FP) + RET + +// func Y__c11_atomic_compare_exchange_strongUint32(t *TLS, ptr, expected uintptr, desired uint32, success, failure int32) (_4 int32) +TEXT ·Y__c11_atomic_compare_exchange_strongUint32(SB),$48-44 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ expected+16(FP), AX + MOVQ AX, 16(SP) + MOVL desired+24(FP), AX + MOVL AX, 24(SP) + MOVL success+28(FP), AX + MOVL AX, 28(SP) + MOVL failure+32(FP), AX + MOVL AX, 32(SP) + CALL ·X__c11_atomic_compare_exchange_strongUint32(SB) + MOVL 40(SP), AX + MOVL AX, _4+40(FP) + RET + +// func Y__c11_atomic_compare_exchange_strongUint64(t *TLS, ptr, expected uintptr, desired uint64, success, failure int32) (_4 int32) +TEXT ·Y__c11_atomic_compare_exchange_strongUint64(SB),$48-44 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ expected+16(FP), AX + MOVQ AX, 16(SP) + MOVQ desired+24(FP), AX + MOVQ AX, 24(SP) + MOVL success+32(FP), AX + MOVL AX, 32(SP) + MOVL failure+36(FP), AX + MOVL AX, 36(SP) + CALL ·X__c11_atomic_compare_exchange_strongUint64(SB) + MOVL 40(SP), AX + MOVL AX, _4+40(FP) + RET + +// func Y__c11_atomic_compare_exchange_strongUint8(t *TLS, ptr, expected uintptr, desired uint8, success, failure int32) (_4 int32) +TEXT ·Y__c11_atomic_compare_exchange_strongUint8(SB),$48-44 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ expected+16(FP), AX + MOVQ AX, 16(SP) + MOVB desired+24(FP), AX + MOVB AX, 24(SP) + MOVL success+28(FP), AX + MOVL AX, 28(SP) + MOVL failure+32(FP), AX + MOVL AX, 32(SP) + CALL ·X__c11_atomic_compare_exchange_strongUint8(SB) + MOVL 40(SP), AX + MOVL AX, _4+40(FP) + RET + +// func Y__c11_atomic_exchangeInt16(t *TLS, ptr uintptr, val int16, _ int32) (r int16) +TEXT ·Y__c11_atomic_exchangeInt16(SB),$32-26 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVW val+16(FP), AX + MOVW AX, 16(SP) + MOVL _+20(FP), AX + MOVL AX, 20(SP) + CALL ·X__c11_atomic_exchangeInt16(SB) + MOVW 24(SP), AX + MOVW AX, r+24(FP) + RET + +// func Y__c11_atomic_exchangeInt32(t *TLS, ptr uintptr, val int32, _ int32) (r int32) +TEXT ·Y__c11_atomic_exchangeInt32(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVL val+16(FP), AX + MOVL AX, 16(SP) + MOVL _+20(FP), AX + MOVL AX, 20(SP) + CALL ·X__c11_atomic_exchangeInt32(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Y__c11_atomic_exchangeInt64(t *TLS, ptr uintptr, val int64, _ int32) (r int64) +TEXT ·Y__c11_atomic_exchangeInt64(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ val+16(FP), AX + MOVQ AX, 16(SP) + MOVL _+24(FP), AX + MOVL AX, 24(SP) + CALL ·X__c11_atomic_exchangeInt64(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Y__c11_atomic_exchangeInt8(t *TLS, ptr uintptr, val int8, _ int32) (r int8) +TEXT ·Y__c11_atomic_exchangeInt8(SB),$32-25 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVB val+16(FP), AX + MOVB AX, 16(SP) + MOVL _+20(FP), AX + MOVL AX, 20(SP) + CALL ·X__c11_atomic_exchangeInt8(SB) + MOVB 24(SP), AX + MOVB AX, r+24(FP) + RET + +// func Y__c11_atomic_exchangeUint16(t *TLS, ptr uintptr, val uint16, _ int32) (r uint16) +TEXT ·Y__c11_atomic_exchangeUint16(SB),$32-26 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVW val+16(FP), AX + MOVW AX, 16(SP) + MOVL _+20(FP), AX + MOVL AX, 20(SP) + CALL ·X__c11_atomic_exchangeUint16(SB) + MOVW 24(SP), AX + MOVW AX, r+24(FP) + RET + +// func Y__c11_atomic_exchangeUint32(t *TLS, ptr uintptr, val uint32, _ int32) (r uint32) +TEXT ·Y__c11_atomic_exchangeUint32(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVL val+16(FP), AX + MOVL AX, 16(SP) + MOVL _+20(FP), AX + MOVL AX, 20(SP) + CALL ·X__c11_atomic_exchangeUint32(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Y__c11_atomic_exchangeUint64(t *TLS, ptr uintptr, val uint64, _ int32) (r uint64) +TEXT ·Y__c11_atomic_exchangeUint64(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ val+16(FP), AX + MOVQ AX, 16(SP) + MOVL _+24(FP), AX + MOVL AX, 24(SP) + CALL ·X__c11_atomic_exchangeUint64(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Y__c11_atomic_exchangeUint8(t *TLS, ptr uintptr, val uint8, _ int32) (r uint8) +TEXT ·Y__c11_atomic_exchangeUint8(SB),$32-25 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVB val+16(FP), AX + MOVB AX, 16(SP) + MOVL _+20(FP), AX + MOVL AX, 20(SP) + CALL ·X__c11_atomic_exchangeUint8(SB) + MOVB 24(SP), AX + MOVB AX, r+24(FP) + RET + +// func Y__c11_atomic_fetch_addInt16(t *TLS, ptr uintptr, val int16, _ int32) (r int16) +TEXT ·Y__c11_atomic_fetch_addInt16(SB),$32-26 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVW val+16(FP), AX + MOVW AX, 16(SP) + MOVL _+20(FP), AX + MOVL AX, 20(SP) + CALL ·X__c11_atomic_fetch_addInt16(SB) + MOVW 24(SP), AX + MOVW AX, r+24(FP) + RET + +// func Y__c11_atomic_fetch_addInt32(t *TLS, ptr uintptr, val int32, _ int32) (r int32) +TEXT ·Y__c11_atomic_fetch_addInt32(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVL val+16(FP), AX + MOVL AX, 16(SP) + MOVL _+20(FP), AX + MOVL AX, 20(SP) + CALL ·X__c11_atomic_fetch_addInt32(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Y__c11_atomic_fetch_addInt64(t *TLS, ptr uintptr, val int64, _ int32) (r int64) +TEXT ·Y__c11_atomic_fetch_addInt64(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ val+16(FP), AX + MOVQ AX, 16(SP) + MOVL _+24(FP), AX + MOVL AX, 24(SP) + CALL ·X__c11_atomic_fetch_addInt64(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Y__c11_atomic_fetch_addInt8(t *TLS, ptr uintptr, val int8, _ int32) (r int8) +TEXT ·Y__c11_atomic_fetch_addInt8(SB),$32-25 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVB val+16(FP), AX + MOVB AX, 16(SP) + MOVL _+20(FP), AX + MOVL AX, 20(SP) + CALL ·X__c11_atomic_fetch_addInt8(SB) + MOVB 24(SP), AX + MOVB AX, r+24(FP) + RET + +// func Y__c11_atomic_fetch_addUint16(t *TLS, ptr uintptr, val uint16, _ int32) (r uint16) +TEXT ·Y__c11_atomic_fetch_addUint16(SB),$32-26 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVW val+16(FP), AX + MOVW AX, 16(SP) + MOVL _+20(FP), AX + MOVL AX, 20(SP) + CALL ·X__c11_atomic_fetch_addUint16(SB) + MOVW 24(SP), AX + MOVW AX, r+24(FP) + RET + +// func Y__c11_atomic_fetch_addUint32(t *TLS, ptr uintptr, val uint32, _ int32) (r uint32) +TEXT ·Y__c11_atomic_fetch_addUint32(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVL val+16(FP), AX + MOVL AX, 16(SP) + MOVL _+20(FP), AX + MOVL AX, 20(SP) + CALL ·X__c11_atomic_fetch_addUint32(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Y__c11_atomic_fetch_addUint64(t *TLS, ptr uintptr, val uint64, _ int32) (r uint64) +TEXT ·Y__c11_atomic_fetch_addUint64(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ val+16(FP), AX + MOVQ AX, 16(SP) + MOVL _+24(FP), AX + MOVL AX, 24(SP) + CALL ·X__c11_atomic_fetch_addUint64(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Y__c11_atomic_fetch_addUint8(t *TLS, ptr uintptr, val uint8, _ int32) (r uint8) +TEXT ·Y__c11_atomic_fetch_addUint8(SB),$32-25 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVB val+16(FP), AX + MOVB AX, 16(SP) + MOVL _+20(FP), AX + MOVL AX, 20(SP) + CALL ·X__c11_atomic_fetch_addUint8(SB) + MOVB 24(SP), AX + MOVB AX, r+24(FP) + RET + +// func Y__c11_atomic_fetch_andInt16(t *TLS, ptr uintptr, val int16, _ int32) (r int16) +TEXT ·Y__c11_atomic_fetch_andInt16(SB),$32-26 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVW val+16(FP), AX + MOVW AX, 16(SP) + MOVL _+20(FP), AX + MOVL AX, 20(SP) + CALL ·X__c11_atomic_fetch_andInt16(SB) + MOVW 24(SP), AX + MOVW AX, r+24(FP) + RET + +// func Y__c11_atomic_fetch_andInt32(t *TLS, ptr uintptr, val int32, _ int32) (r int32) +TEXT ·Y__c11_atomic_fetch_andInt32(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVL val+16(FP), AX + MOVL AX, 16(SP) + MOVL _+20(FP), AX + MOVL AX, 20(SP) + CALL ·X__c11_atomic_fetch_andInt32(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Y__c11_atomic_fetch_andInt64(t *TLS, ptr uintptr, val int64, _ int32) (r int64) +TEXT ·Y__c11_atomic_fetch_andInt64(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ val+16(FP), AX + MOVQ AX, 16(SP) + MOVL _+24(FP), AX + MOVL AX, 24(SP) + CALL ·X__c11_atomic_fetch_andInt64(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Y__c11_atomic_fetch_andInt8(t *TLS, ptr uintptr, val int8, _ int32) (r int8) +TEXT ·Y__c11_atomic_fetch_andInt8(SB),$32-25 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVB val+16(FP), AX + MOVB AX, 16(SP) + MOVL _+20(FP), AX + MOVL AX, 20(SP) + CALL ·X__c11_atomic_fetch_andInt8(SB) + MOVB 24(SP), AX + MOVB AX, r+24(FP) + RET + +// func Y__c11_atomic_fetch_andUint16(t *TLS, ptr uintptr, val uint16, _ int32) (r uint16) +TEXT ·Y__c11_atomic_fetch_andUint16(SB),$32-26 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVW val+16(FP), AX + MOVW AX, 16(SP) + MOVL _+20(FP), AX + MOVL AX, 20(SP) + CALL ·X__c11_atomic_fetch_andUint16(SB) + MOVW 24(SP), AX + MOVW AX, r+24(FP) + RET + +// func Y__c11_atomic_fetch_andUint32(t *TLS, ptr uintptr, val uint32, _ int32) (r uint32) +TEXT ·Y__c11_atomic_fetch_andUint32(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVL val+16(FP), AX + MOVL AX, 16(SP) + MOVL _+20(FP), AX + MOVL AX, 20(SP) + CALL ·X__c11_atomic_fetch_andUint32(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Y__c11_atomic_fetch_andUint64(t *TLS, ptr uintptr, val uint64, _ int32) (r uint64) +TEXT ·Y__c11_atomic_fetch_andUint64(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ val+16(FP), AX + MOVQ AX, 16(SP) + MOVL _+24(FP), AX + MOVL AX, 24(SP) + CALL ·X__c11_atomic_fetch_andUint64(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Y__c11_atomic_fetch_andUint8(t *TLS, ptr uintptr, val uint8, _ int32) (r uint8) +TEXT ·Y__c11_atomic_fetch_andUint8(SB),$32-25 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVB val+16(FP), AX + MOVB AX, 16(SP) + MOVL _+20(FP), AX + MOVL AX, 20(SP) + CALL ·X__c11_atomic_fetch_andUint8(SB) + MOVB 24(SP), AX + MOVB AX, r+24(FP) + RET + +// func Y__c11_atomic_fetch_orInt16(t *TLS, ptr uintptr, val int16, _ int32) (r int16) +TEXT ·Y__c11_atomic_fetch_orInt16(SB),$32-26 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVW val+16(FP), AX + MOVW AX, 16(SP) + MOVL _+20(FP), AX + MOVL AX, 20(SP) + CALL ·X__c11_atomic_fetch_orInt16(SB) + MOVW 24(SP), AX + MOVW AX, r+24(FP) + RET + +// func Y__c11_atomic_fetch_orInt32(t *TLS, ptr uintptr, val int32, _ int32) (r int32) +TEXT ·Y__c11_atomic_fetch_orInt32(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVL val+16(FP), AX + MOVL AX, 16(SP) + MOVL _+20(FP), AX + MOVL AX, 20(SP) + CALL ·X__c11_atomic_fetch_orInt32(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Y__c11_atomic_fetch_orInt64(t *TLS, ptr uintptr, val int64, _ int32) (r int64) +TEXT ·Y__c11_atomic_fetch_orInt64(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ val+16(FP), AX + MOVQ AX, 16(SP) + MOVL _+24(FP), AX + MOVL AX, 24(SP) + CALL ·X__c11_atomic_fetch_orInt64(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Y__c11_atomic_fetch_orInt8(t *TLS, ptr uintptr, val int8, _ int32) (r int8) +TEXT ·Y__c11_atomic_fetch_orInt8(SB),$32-25 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVB val+16(FP), AX + MOVB AX, 16(SP) + MOVL _+20(FP), AX + MOVL AX, 20(SP) + CALL ·X__c11_atomic_fetch_orInt8(SB) + MOVB 24(SP), AX + MOVB AX, r+24(FP) + RET + +// func Y__c11_atomic_fetch_orUint16(t *TLS, ptr uintptr, val uint16, _ int32) (r uint16) +TEXT ·Y__c11_atomic_fetch_orUint16(SB),$32-26 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVW val+16(FP), AX + MOVW AX, 16(SP) + MOVL _+20(FP), AX + MOVL AX, 20(SP) + CALL ·X__c11_atomic_fetch_orUint16(SB) + MOVW 24(SP), AX + MOVW AX, r+24(FP) + RET + +// func Y__c11_atomic_fetch_orUint32(t *TLS, ptr uintptr, val uint32, _ int32) (r uint32) +TEXT ·Y__c11_atomic_fetch_orUint32(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVL val+16(FP), AX + MOVL AX, 16(SP) + MOVL _+20(FP), AX + MOVL AX, 20(SP) + CALL ·X__c11_atomic_fetch_orUint32(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Y__c11_atomic_fetch_orUint64(t *TLS, ptr uintptr, val uint64, _ int32) (r uint64) +TEXT ·Y__c11_atomic_fetch_orUint64(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ val+16(FP), AX + MOVQ AX, 16(SP) + MOVL _+24(FP), AX + MOVL AX, 24(SP) + CALL ·X__c11_atomic_fetch_orUint64(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Y__c11_atomic_fetch_orUint8(t *TLS, ptr uintptr, val uint8, _ int32) (r uint8) +TEXT ·Y__c11_atomic_fetch_orUint8(SB),$32-25 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVB val+16(FP), AX + MOVB AX, 16(SP) + MOVL _+20(FP), AX + MOVL AX, 20(SP) + CALL ·X__c11_atomic_fetch_orUint8(SB) + MOVB 24(SP), AX + MOVB AX, r+24(FP) + RET + +// func Y__c11_atomic_fetch_subInt16(t *TLS, ptr uintptr, val int16, _ int32) (r int16) +TEXT ·Y__c11_atomic_fetch_subInt16(SB),$32-26 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVW val+16(FP), AX + MOVW AX, 16(SP) + MOVL _+20(FP), AX + MOVL AX, 20(SP) + CALL ·X__c11_atomic_fetch_subInt16(SB) + MOVW 24(SP), AX + MOVW AX, r+24(FP) + RET + +// func Y__c11_atomic_fetch_subInt32(t *TLS, ptr uintptr, val int32, _ int32) (r int32) +TEXT ·Y__c11_atomic_fetch_subInt32(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVL val+16(FP), AX + MOVL AX, 16(SP) + MOVL _+20(FP), AX + MOVL AX, 20(SP) + CALL ·X__c11_atomic_fetch_subInt32(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Y__c11_atomic_fetch_subInt64(t *TLS, ptr uintptr, val int64, _ int32) (r int64) +TEXT ·Y__c11_atomic_fetch_subInt64(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ val+16(FP), AX + MOVQ AX, 16(SP) + MOVL _+24(FP), AX + MOVL AX, 24(SP) + CALL ·X__c11_atomic_fetch_subInt64(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Y__c11_atomic_fetch_subInt8(t *TLS, ptr uintptr, val int8, _ int32) (r int8) +TEXT ·Y__c11_atomic_fetch_subInt8(SB),$32-25 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVB val+16(FP), AX + MOVB AX, 16(SP) + MOVL _+20(FP), AX + MOVL AX, 20(SP) + CALL ·X__c11_atomic_fetch_subInt8(SB) + MOVB 24(SP), AX + MOVB AX, r+24(FP) + RET + +// func Y__c11_atomic_fetch_subUint16(t *TLS, ptr uintptr, val uint16, _ int32) (r uint16) +TEXT ·Y__c11_atomic_fetch_subUint16(SB),$32-26 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVW val+16(FP), AX + MOVW AX, 16(SP) + MOVL _+20(FP), AX + MOVL AX, 20(SP) + CALL ·X__c11_atomic_fetch_subUint16(SB) + MOVW 24(SP), AX + MOVW AX, r+24(FP) + RET + +// func Y__c11_atomic_fetch_subUint32(t *TLS, ptr uintptr, val uint32, _ int32) (r uint32) +TEXT ·Y__c11_atomic_fetch_subUint32(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVL val+16(FP), AX + MOVL AX, 16(SP) + MOVL _+20(FP), AX + MOVL AX, 20(SP) + CALL ·X__c11_atomic_fetch_subUint32(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Y__c11_atomic_fetch_subUint64(t *TLS, ptr uintptr, val uint64, _ int32) (r uint64) +TEXT ·Y__c11_atomic_fetch_subUint64(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ val+16(FP), AX + MOVQ AX, 16(SP) + MOVL _+24(FP), AX + MOVL AX, 24(SP) + CALL ·X__c11_atomic_fetch_subUint64(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Y__c11_atomic_fetch_subUint8(t *TLS, ptr uintptr, val uint8, _ int32) (r uint8) +TEXT ·Y__c11_atomic_fetch_subUint8(SB),$32-25 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVB val+16(FP), AX + MOVB AX, 16(SP) + MOVL _+20(FP), AX + MOVL AX, 20(SP) + CALL ·X__c11_atomic_fetch_subUint8(SB) + MOVB 24(SP), AX + MOVB AX, r+24(FP) + RET + +// func Y__c11_atomic_fetch_xorInt16(t *TLS, ptr uintptr, val int16, _ int32) (r int16) +TEXT ·Y__c11_atomic_fetch_xorInt16(SB),$32-26 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVW val+16(FP), AX + MOVW AX, 16(SP) + MOVL _+20(FP), AX + MOVL AX, 20(SP) + CALL ·X__c11_atomic_fetch_xorInt16(SB) + MOVW 24(SP), AX + MOVW AX, r+24(FP) + RET + +// func Y__c11_atomic_fetch_xorInt32(t *TLS, ptr uintptr, val int32, _ int32) (r int32) +TEXT ·Y__c11_atomic_fetch_xorInt32(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVL val+16(FP), AX + MOVL AX, 16(SP) + MOVL _+20(FP), AX + MOVL AX, 20(SP) + CALL ·X__c11_atomic_fetch_xorInt32(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Y__c11_atomic_fetch_xorInt64(t *TLS, ptr uintptr, val int64, _ int32) (r int64) +TEXT ·Y__c11_atomic_fetch_xorInt64(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ val+16(FP), AX + MOVQ AX, 16(SP) + MOVL _+24(FP), AX + MOVL AX, 24(SP) + CALL ·X__c11_atomic_fetch_xorInt64(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Y__c11_atomic_fetch_xorInt8(t *TLS, ptr uintptr, val int8, _ int32) (r int8) +TEXT ·Y__c11_atomic_fetch_xorInt8(SB),$32-25 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVB val+16(FP), AX + MOVB AX, 16(SP) + MOVL _+20(FP), AX + MOVL AX, 20(SP) + CALL ·X__c11_atomic_fetch_xorInt8(SB) + MOVB 24(SP), AX + MOVB AX, r+24(FP) + RET + +// func Y__c11_atomic_fetch_xorUint16(t *TLS, ptr uintptr, val uint16, _ int32) (r uint16) +TEXT ·Y__c11_atomic_fetch_xorUint16(SB),$32-26 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVW val+16(FP), AX + MOVW AX, 16(SP) + MOVL _+20(FP), AX + MOVL AX, 20(SP) + CALL ·X__c11_atomic_fetch_xorUint16(SB) + MOVW 24(SP), AX + MOVW AX, r+24(FP) + RET + +// func Y__c11_atomic_fetch_xorUint32(t *TLS, ptr uintptr, val uint32, _ int32) (r uint32) +TEXT ·Y__c11_atomic_fetch_xorUint32(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVL val+16(FP), AX + MOVL AX, 16(SP) + MOVL _+20(FP), AX + MOVL AX, 20(SP) + CALL ·X__c11_atomic_fetch_xorUint32(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Y__c11_atomic_fetch_xorUint64(t *TLS, ptr uintptr, val uint64, _ int32) (r uint64) +TEXT ·Y__c11_atomic_fetch_xorUint64(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ val+16(FP), AX + MOVQ AX, 16(SP) + MOVL _+24(FP), AX + MOVL AX, 24(SP) + CALL ·X__c11_atomic_fetch_xorUint64(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Y__c11_atomic_fetch_xorUint8(t *TLS, ptr uintptr, val uint8, _ int32) (r uint8) +TEXT ·Y__c11_atomic_fetch_xorUint8(SB),$32-25 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVB val+16(FP), AX + MOVB AX, 16(SP) + MOVL _+20(FP), AX + MOVL AX, 20(SP) + CALL ·X__c11_atomic_fetch_xorUint8(SB) + MOVB 24(SP), AX + MOVB AX, r+24(FP) + RET + +// func Y__c11_atomic_loadInt16(t *TLS, ptr uintptr, memorder int32) (r int16) +TEXT ·Y__c11_atomic_loadInt16(SB),$32-26 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVL memorder+16(FP), AX + MOVL AX, 16(SP) + CALL ·X__c11_atomic_loadInt16(SB) + MOVW 24(SP), AX + MOVW AX, r+24(FP) + RET + +// func Y__c11_atomic_loadInt32(t *TLS, ptr uintptr, memorder int32) (r int32) +TEXT ·Y__c11_atomic_loadInt32(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVL memorder+16(FP), AX + MOVL AX, 16(SP) + CALL ·X__c11_atomic_loadInt32(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Y__c11_atomic_loadInt64(t *TLS, ptr uintptr, memorder int32) (r int64) +TEXT ·Y__c11_atomic_loadInt64(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVL memorder+16(FP), AX + MOVL AX, 16(SP) + CALL ·X__c11_atomic_loadInt64(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Y__c11_atomic_loadInt8(t *TLS, ptr uintptr, memorder int32) (r int8) +TEXT ·Y__c11_atomic_loadInt8(SB),$32-25 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVL memorder+16(FP), AX + MOVL AX, 16(SP) + CALL ·X__c11_atomic_loadInt8(SB) + MOVB 24(SP), AX + MOVB AX, r+24(FP) + RET + +// func Y__c11_atomic_loadUint16(t *TLS, ptr uintptr, memorder int32) (r uint16) +TEXT ·Y__c11_atomic_loadUint16(SB),$32-26 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVL memorder+16(FP), AX + MOVL AX, 16(SP) + CALL ·X__c11_atomic_loadUint16(SB) + MOVW 24(SP), AX + MOVW AX, r+24(FP) + RET + +// func Y__c11_atomic_loadUint32(t *TLS, ptr uintptr, memorder int32) (r uint32) +TEXT ·Y__c11_atomic_loadUint32(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVL memorder+16(FP), AX + MOVL AX, 16(SP) + CALL ·X__c11_atomic_loadUint32(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Y__c11_atomic_loadUint64(t *TLS, ptr uintptr, memorder int32) (r uint64) +TEXT ·Y__c11_atomic_loadUint64(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVL memorder+16(FP), AX + MOVL AX, 16(SP) + CALL ·X__c11_atomic_loadUint64(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Y__c11_atomic_loadUint8(t *TLS, ptr uintptr, memorder int32) (r uint8) +TEXT ·Y__c11_atomic_loadUint8(SB),$32-25 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVL memorder+16(FP), AX + MOVL AX, 16(SP) + CALL ·X__c11_atomic_loadUint8(SB) + MOVB 24(SP), AX + MOVB AX, r+24(FP) + RET + +// func Y__c11_atomic_storeInt16(t *TLS, ptr uintptr, val int16, memorder int32) +TEXT ·Y__c11_atomic_storeInt16(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVW val+16(FP), AX + MOVW AX, 16(SP) + MOVL memorder+20(FP), AX + MOVL AX, 20(SP) + CALL ·X__c11_atomic_storeInt16(SB) + RET + +// func Y__c11_atomic_storeInt32(t *TLS, ptr uintptr, val int32, memorder int32) +TEXT ·Y__c11_atomic_storeInt32(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVL val+16(FP), AX + MOVL AX, 16(SP) + MOVL memorder+20(FP), AX + MOVL AX, 20(SP) + CALL ·X__c11_atomic_storeInt32(SB) + RET + +// func Y__c11_atomic_storeInt64(t *TLS, ptr uintptr, val int64, memorder int32) +TEXT ·Y__c11_atomic_storeInt64(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ val+16(FP), AX + MOVQ AX, 16(SP) + MOVL memorder+24(FP), AX + MOVL AX, 24(SP) + CALL ·X__c11_atomic_storeInt64(SB) + RET + +// func Y__c11_atomic_storeInt8(t *TLS, ptr uintptr, val int8, memorder int32) +TEXT ·Y__c11_atomic_storeInt8(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVB val+16(FP), AX + MOVB AX, 16(SP) + MOVL memorder+20(FP), AX + MOVL AX, 20(SP) + CALL ·X__c11_atomic_storeInt8(SB) + RET + +// func Y__c11_atomic_storeUint16(t *TLS, ptr uintptr, val uint16, memorder int32) +TEXT ·Y__c11_atomic_storeUint16(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVW val+16(FP), AX + MOVW AX, 16(SP) + MOVL memorder+20(FP), AX + MOVL AX, 20(SP) + CALL ·X__c11_atomic_storeUint16(SB) + RET + +// func Y__c11_atomic_storeUint32(t *TLS, ptr uintptr, val uint32, memorder int32) +TEXT ·Y__c11_atomic_storeUint32(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVL val+16(FP), AX + MOVL AX, 16(SP) + MOVL memorder+20(FP), AX + MOVL AX, 20(SP) + CALL ·X__c11_atomic_storeUint32(SB) + RET + +// func Y__c11_atomic_storeUint64(t *TLS, ptr uintptr, val uint64, memorder int32) +TEXT ·Y__c11_atomic_storeUint64(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ val+16(FP), AX + MOVQ AX, 16(SP) + MOVL memorder+24(FP), AX + MOVL AX, 24(SP) + CALL ·X__c11_atomic_storeUint64(SB) + RET + +// func Y__c11_atomic_storeUint8(t *TLS, ptr uintptr, val uint8, memorder int32) +TEXT ·Y__c11_atomic_storeUint8(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVB val+16(FP), AX + MOVB AX, 16(SP) + MOVL memorder+20(FP), AX + MOVL AX, 20(SP) + CALL ·X__c11_atomic_storeUint8(SB) + RET + +// func Y__ccgo_dmesg(t *TLS, fmt uintptr, va uintptr) +TEXT ·Y__ccgo_dmesg(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ fmt+8(FP), AX + MOVQ AX, 8(SP) + MOVQ va+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__ccgo_dmesg(SB) + RET + +// func Y__ccgo_getMutexType(tls *TLS, m uintptr) (_2 int32) +TEXT ·Y__ccgo_getMutexType(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ m+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X__ccgo_getMutexType(SB) + MOVL 16(SP), AX + MOVL AX, _2+16(FP) + RET + +// func Y__ccgo_in6addr_anyp(t *TLS) (_1 uintptr) +TEXT ·Y__ccgo_in6addr_anyp(SB),$16-16 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + CALL ·X__ccgo_in6addr_anyp(SB) + MOVQ 8(SP), AX + MOVQ AX, _1+8(FP) + RET + +// func Y__ccgo_pthreadAttrGetDetachState(tls *TLS, a uintptr) (_2 int32) +TEXT ·Y__ccgo_pthreadAttrGetDetachState(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ a+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X__ccgo_pthreadAttrGetDetachState(SB) + MOVL 16(SP), AX + MOVL AX, _2+16(FP) + RET + +// func Y__ccgo_pthreadMutexattrGettype(tls *TLS, a uintptr) (_2 int32) +TEXT ·Y__ccgo_pthreadMutexattrGettype(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ a+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X__ccgo_pthreadMutexattrGettype(SB) + MOVL 16(SP), AX + MOVL AX, _2+16(FP) + RET + +// func Y__ccgo_sqlite3_log(t *TLS, iErrCode int32, zFormat uintptr, args uintptr) +TEXT ·Y__ccgo_sqlite3_log(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVL iErrCode+8(FP), AX + MOVL AX, 8(SP) + MOVQ zFormat+16(FP), AX + MOVQ AX, 16(SP) + MOVQ args+24(FP), AX + MOVQ AX, 24(SP) + CALL ·X__ccgo_sqlite3_log(SB) + RET + +// func Y__clock_gettime(tls *TLS, clk Tclockid_t, ts uintptr) (r1 int32) +TEXT ·Y__clock_gettime(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL clk+8(FP), AX + MOVL AX, 8(SP) + MOVQ ts+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__clock_gettime(SB) + MOVL 24(SP), AX + MOVL AX, r1+24(FP) + RET + +// func Y__clock_nanosleep(tls *TLS, clk Tclockid_t, flags int32, req uintptr, rem uintptr) (r int32) +TEXT ·Y__clock_nanosleep(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL clk+8(FP), AX + MOVL AX, 8(SP) + MOVL flags+12(FP), AX + MOVL AX, 12(SP) + MOVQ req+16(FP), AX + MOVQ AX, 16(SP) + MOVQ rem+24(FP), AX + MOVQ AX, 24(SP) + CALL ·X__clock_nanosleep(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Y__cmsg_nxthdr(t *TLS, msgh, cmsg uintptr) (_2 uintptr) +TEXT ·Y__cmsg_nxthdr(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ msgh+8(FP), AX + MOVQ AX, 8(SP) + MOVQ cmsg+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__cmsg_nxthdr(SB) + MOVQ 24(SP), AX + MOVQ AX, _2+24(FP) + RET + +// func Y__convert_scm_timestamps(tls *TLS, msg uintptr, csize Tsocklen_t) +TEXT ·Y__convert_scm_timestamps(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ msg+8(FP), AX + MOVQ AX, 8(SP) + MOVL csize+16(FP), AX + MOVL AX, 16(SP) + CALL ·X__convert_scm_timestamps(SB) + RET + +// func Y__cos(tls *TLS, x float64, y float64) (r1 float64) +TEXT ·Y__cos(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + MOVQ y+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__cos(SB) + MOVQ 24(SP), AX + MOVQ AX, r1+24(FP) + RET + +// func Y__cosdf(tls *TLS, x float64) (r1 float32) +TEXT ·Y__cosdf(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X__cosdf(SB) + MOVL 16(SP), AX + MOVL AX, r1+16(FP) + RET + +// func Y__crypt_blowfish(tls *TLS, key uintptr, setting uintptr, output uintptr) (r uintptr) +TEXT ·Y__crypt_blowfish(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ key+8(FP), AX + MOVQ AX, 8(SP) + MOVQ setting+16(FP), AX + MOVQ AX, 16(SP) + MOVQ output+24(FP), AX + MOVQ AX, 24(SP) + CALL ·X__crypt_blowfish(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Y__crypt_des(tls *TLS, key uintptr, setting uintptr, output uintptr) (r uintptr) +TEXT ·Y__crypt_des(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ key+8(FP), AX + MOVQ AX, 8(SP) + MOVQ setting+16(FP), AX + MOVQ AX, 16(SP) + MOVQ output+24(FP), AX + MOVQ AX, 24(SP) + CALL ·X__crypt_des(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Y__crypt_md5(tls *TLS, key uintptr, setting uintptr, output uintptr) (r uintptr) +TEXT ·Y__crypt_md5(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ key+8(FP), AX + MOVQ AX, 8(SP) + MOVQ setting+16(FP), AX + MOVQ AX, 16(SP) + MOVQ output+24(FP), AX + MOVQ AX, 24(SP) + CALL ·X__crypt_md5(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Y__crypt_r(tls *TLS, key uintptr, salt uintptr, data uintptr) (r uintptr) +TEXT ·Y__crypt_r(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ key+8(FP), AX + MOVQ AX, 8(SP) + MOVQ salt+16(FP), AX + MOVQ AX, 16(SP) + MOVQ data+24(FP), AX + MOVQ AX, 24(SP) + CALL ·X__crypt_r(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Y__crypt_sha256(tls *TLS, key uintptr, setting uintptr, output uintptr) (r uintptr) +TEXT ·Y__crypt_sha256(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ key+8(FP), AX + MOVQ AX, 8(SP) + MOVQ setting+16(FP), AX + MOVQ AX, 16(SP) + MOVQ output+24(FP), AX + MOVQ AX, 24(SP) + CALL ·X__crypt_sha256(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Y__crypt_sha512(tls *TLS, key uintptr, setting uintptr, output uintptr) (r uintptr) +TEXT ·Y__crypt_sha512(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ key+8(FP), AX + MOVQ AX, 8(SP) + MOVQ setting+16(FP), AX + MOVQ AX, 16(SP) + MOVQ output+24(FP), AX + MOVQ AX, 24(SP) + CALL ·X__crypt_sha512(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Y__ctype_b_loc(tls *TLS) (r uintptr) +TEXT ·Y__ctype_b_loc(SB),$16-16 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·X__ctype_b_loc(SB) + MOVQ 8(SP), AX + MOVQ AX, r+8(FP) + RET + +// func Y__ctype_get_mb_cur_max(tls *TLS) (r Tsize_t) +TEXT ·Y__ctype_get_mb_cur_max(SB),$16-16 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·X__ctype_get_mb_cur_max(SB) + MOVQ 8(SP), AX + MOVQ AX, r+8(FP) + RET + +// func Y__ctype_tolower_loc(tls *TLS) (r uintptr) +TEXT ·Y__ctype_tolower_loc(SB),$16-16 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·X__ctype_tolower_loc(SB) + MOVQ 8(SP), AX + MOVQ AX, r+8(FP) + RET + +// func Y__ctype_toupper_loc(tls *TLS) (r uintptr) +TEXT ·Y__ctype_toupper_loc(SB),$16-16 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·X__ctype_toupper_loc(SB) + MOVQ 8(SP), AX + MOVQ AX, r+8(FP) + RET + +// func Y__des_setkey(tls *TLS, key uintptr, ekey uintptr) +TEXT ·Y__des_setkey(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ key+8(FP), AX + MOVQ AX, 8(SP) + MOVQ ekey+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__des_setkey(SB) + RET + +// func Y__dn_expand(tls *TLS, base uintptr, end uintptr, src uintptr, dest uintptr, space int32) (r int32) +TEXT ·Y__dn_expand(SB),$56-52 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ base+8(FP), AX + MOVQ AX, 8(SP) + MOVQ end+16(FP), AX + MOVQ AX, 16(SP) + MOVQ src+24(FP), AX + MOVQ AX, 24(SP) + MOVQ dest+32(FP), AX + MOVQ AX, 32(SP) + MOVL space+40(FP), AX + MOVL AX, 40(SP) + CALL ·X__dn_expand(SB) + MOVL 48(SP), AX + MOVL AX, r+48(FP) + RET + +// func Y__dns_parse(tls *TLS, r uintptr, rlen int32, __ccgo_fp_callback uintptr, ctx uintptr) (r1 int32) +TEXT ·Y__dns_parse(SB),$56-44 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX // alloc all ABI trampolines + MOVQ AX, 0(SP) + MOVQ $16, 8(SP) // 16*(number of func ptrs in signature) + CALL modernc·org∕libc·TLSAlloc(SB) + MOVQ 16(SP), AX + MOVQ AX, -8(BP) // Trampolines[0] + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ -8(BP), AX + ADDQ $0, AX // 16*(0-based ordinal number of the func ptr in signature) + MOVQ AX, 8(SP) + MOVQ __ccgo_fp_callback+24(FP), AX // ABI0 code ptr + MOVQ AX, 16(SP) + CALL ·__ccgo_abiInternal___dns_parse_2(SB) // Create the closure for calling __ccgo_fp_callback + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ r+8(FP), AX + MOVQ AX, 8(SP) + MOVL rlen+16(FP), AX + MOVL AX, 16(SP) + MOVQ -8(BP), AX // Trampolines[0] + ADDQ $0, AX // 16*(0-based ordinal number of the func ptr in signature) + MOVQ AX, 24(SP) + MOVQ ctx+32(FP), AX + MOVQ AX, 32(SP) + CALL ·X__dns_parse(SB) + MOVL 40(SP), AX + MOVL AX, r1+40(FP) + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ $0, 8(SP) + CALL modernc·org∕libc·TLSFree(SB) + RET + +TEXT ·__ccgo_abi0___dns_parse_2(SB),$72-68 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ _0+0(FP), AX + MOVQ AX, 0(SP) + MOVQ _1+8(FP), AX + MOVQ AX, 8(SP) + MOVL _2+16(FP), AX + MOVL AX, 16(SP) + MOVQ _3+24(FP), AX + MOVQ AX, 24(SP) + MOVL _4+32(FP), AX + MOVL AX, 32(SP) + MOVQ _5+40(FP), AX + MOVQ AX, 40(SP) + MOVL _6+48(FP), AX + MOVL AX, 48(SP) + MOVQ __ccgo_fp+56(FP), AX + CALL *AX // Call the ABI0 code ptr + MOVL 56(SP), AX + MOVL AX, _7+64(FP) + RET + +// func Y__do_des(tls *TLS, l_in Tuint32_t, r_in Tuint32_t, l_out uintptr, r_out uintptr, count Tuint32_t, saltbits Tuint32_t, ekey uintptr) +TEXT ·Y__do_des(SB),$48-48 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL l_in+8(FP), AX + MOVL AX, 8(SP) + MOVL r_in+12(FP), AX + MOVL AX, 12(SP) + MOVQ l_out+16(FP), AX + MOVQ AX, 16(SP) + MOVQ r_out+24(FP), AX + MOVQ AX, 24(SP) + MOVL count+32(FP), AX + MOVL AX, 32(SP) + MOVL saltbits+36(FP), AX + MOVL AX, 36(SP) + MOVQ ekey+40(FP), AX + MOVQ AX, 40(SP) + CALL ·X__do_des(SB) + RET + +// func Y__do_orphaned_stdio_locks(tls *TLS) +TEXT ·Y__do_orphaned_stdio_locks(SB),$8-8 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·X__do_orphaned_stdio_locks(SB) + RET + +// func Y__dup3(tls *TLS, old int32, new1 int32, flags int32) (r1 int32) +TEXT ·Y__dup3(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL old+8(FP), AX + MOVL AX, 8(SP) + MOVL new1+12(FP), AX + MOVL AX, 12(SP) + MOVL flags+16(FP), AX + MOVL AX, 16(SP) + CALL ·X__dup3(SB) + MOVL 24(SP), AX + MOVL AX, r1+24(FP) + RET + +// func Y__duplocale(tls *TLS, old Tlocale_t) (r Tlocale_t) +TEXT ·Y__duplocale(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ old+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X__duplocale(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Y__env_rm_add(tls *TLS, old uintptr, new1 uintptr) +TEXT ·Y__env_rm_add(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ old+8(FP), AX + MOVQ AX, 8(SP) + MOVQ new1+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__env_rm_add(SB) + RET + +// func Y__errno_location(tls *TLS) (r uintptr) +TEXT ·Y__errno_location(SB),$16-16 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·X__errno_location(SB) + MOVQ 8(SP), AX + MOVQ AX, r+8(FP) + RET + +// func Y__execvpe(tls *TLS, file uintptr, argv uintptr, envp uintptr) (r int32) +TEXT ·Y__execvpe(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ file+8(FP), AX + MOVQ AX, 8(SP) + MOVQ argv+16(FP), AX + MOVQ AX, 16(SP) + MOVQ envp+24(FP), AX + MOVQ AX, 24(SP) + CALL ·X__execvpe(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Y__expo2(tls *TLS, x float64, sign float64) (r float64) +TEXT ·Y__expo2(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + MOVQ sign+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__expo2(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Y__expo2f(tls *TLS, x float32, sign float32) (r float32) +TEXT ·Y__expo2f(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL x+8(FP), AX + MOVL AX, 8(SP) + MOVL sign+12(FP), AX + MOVL AX, 12(SP) + CALL ·X__expo2f(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Y__fbufsize(tls *TLS, f uintptr) (r Tsize_t) +TEXT ·Y__fbufsize(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X__fbufsize(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Y__fclose_ca(tls *TLS, f uintptr) (r int32) +TEXT ·Y__fclose_ca(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X__fclose_ca(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Y__fdopen(tls *TLS, fd int32, mode uintptr) (r uintptr) +TEXT ·Y__fdopen(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVQ mode+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__fdopen(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Y__fesetround(tls *TLS, r int32) (r1 int32) +TEXT ·Y__fesetround(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL r+8(FP), AX + MOVL AX, 8(SP) + CALL ·X__fesetround(SB) + MOVL 16(SP), AX + MOVL AX, r1+16(FP) + RET + +// func Y__fgetwc_unlocked(tls *TLS, f uintptr) (r Twint_t) +TEXT ·Y__fgetwc_unlocked(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X__fgetwc_unlocked(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Y__flbf(tls *TLS, f uintptr) (r int32) +TEXT ·Y__flbf(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X__flbf(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Y__floatscan(tls *TLS, f uintptr, prec int32, pok int32) (r float64) +TEXT ·Y__floatscan(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + MOVL prec+16(FP), AX + MOVL AX, 16(SP) + MOVL pok+20(FP), AX + MOVL AX, 20(SP) + CALL ·X__floatscan(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Y__fmodeflags(tls *TLS, mode uintptr) (r int32) +TEXT ·Y__fmodeflags(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ mode+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X__fmodeflags(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Y__fopen_rb_ca(tls *TLS, filename uintptr, f uintptr, buf uintptr, len1 Tsize_t) (r uintptr) +TEXT ·Y__fopen_rb_ca(SB),$48-48 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ filename+8(FP), AX + MOVQ AX, 8(SP) + MOVQ f+16(FP), AX + MOVQ AX, 16(SP) + MOVQ buf+24(FP), AX + MOVQ AX, 24(SP) + MOVQ len1+32(FP), AX + MOVQ AX, 32(SP) + CALL ·X__fopen_rb_ca(SB) + MOVQ 40(SP), AX + MOVQ AX, r+40(FP) + RET + +// func Y__fpclassify(tls *TLS, x float64) (r int32) +TEXT ·Y__fpclassify(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X__fpclassify(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Y__fpclassifyf(tls *TLS, x float32) (r int32) +TEXT ·Y__fpclassifyf(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL x+8(FP), AX + MOVL AX, 8(SP) + CALL ·X__fpclassifyf(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Y__fpclassifyl(tls *TLS, x float64) (r int32) +TEXT ·Y__fpclassifyl(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X__fpclassifyl(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Y__fpending(tls *TLS, f uintptr) (r Tsize_t) +TEXT ·Y__fpending(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X__fpending(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Y__fpurge(tls *TLS, f uintptr) (r int32) +TEXT ·Y__fpurge(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X__fpurge(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Y__fputwc_unlocked(tls *TLS, c Twchar_t, f uintptr) (r Twint_t) +TEXT ·Y__fputwc_unlocked(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + MOVQ f+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__fputwc_unlocked(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Y__freadable(tls *TLS, f uintptr) (r int32) +TEXT ·Y__freadable(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X__freadable(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Y__freadahead(tls *TLS, f uintptr) (r Tsize_t) +TEXT ·Y__freadahead(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X__freadahead(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Y__freading(tls *TLS, f uintptr) (r int32) +TEXT ·Y__freading(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X__freading(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Y__freadptr(tls *TLS, f uintptr, sizep uintptr) (r uintptr) +TEXT ·Y__freadptr(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + MOVQ sizep+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__freadptr(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Y__freadptrinc(tls *TLS, f uintptr, inc Tsize_t) +TEXT ·Y__freadptrinc(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + MOVQ inc+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__freadptrinc(SB) + RET + +// func Y__freelocale(tls *TLS, l Tlocale_t) +TEXT ·Y__freelocale(SB),$16-16 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ l+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X__freelocale(SB) + RET + +// func Y__fseeko(tls *TLS, f uintptr, off Toff_t, whence int32) (r int32) +TEXT ·Y__fseeko(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + MOVQ off+16(FP), AX + MOVQ AX, 16(SP) + MOVL whence+24(FP), AX + MOVL AX, 24(SP) + CALL ·X__fseeko(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Y__fseeko_unlocked(tls *TLS, f uintptr, off Toff_t, whence int32) (r int32) +TEXT ·Y__fseeko_unlocked(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + MOVQ off+16(FP), AX + MOVQ AX, 16(SP) + MOVL whence+24(FP), AX + MOVL AX, 24(SP) + CALL ·X__fseeko_unlocked(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Y__fseterr(tls *TLS, f uintptr) +TEXT ·Y__fseterr(SB),$16-16 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X__fseterr(SB) + RET + +// func Y__fsetlocking(tls *TLS, f uintptr, type1 int32) (r int32) +TEXT ·Y__fsetlocking(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + MOVL type1+16(FP), AX + MOVL AX, 16(SP) + CALL ·X__fsetlocking(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Y__fstat(tls *TLS, fd int32, st uintptr) (r int32) +TEXT ·Y__fstat(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVQ st+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__fstat(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Y__fstatat(tls *TLS, fd int32, path uintptr, st uintptr, flag int32) (r int32) +TEXT ·Y__fstatat(SB),$48-44 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVQ path+16(FP), AX + MOVQ AX, 16(SP) + MOVQ st+24(FP), AX + MOVQ AX, 24(SP) + MOVL flag+32(FP), AX + MOVL AX, 32(SP) + CALL ·X__fstatat(SB) + MOVL 40(SP), AX + MOVL AX, r+40(FP) + RET + +// func Y__ftello(tls *TLS, f uintptr) (r Toff_t) +TEXT ·Y__ftello(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X__ftello(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Y__ftello_unlocked(tls *TLS, f uintptr) (r Toff_t) +TEXT ·Y__ftello_unlocked(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X__ftello_unlocked(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Y__funcs_on_quick_exit(tls *TLS) +TEXT ·Y__funcs_on_quick_exit(SB),$8-8 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·X__funcs_on_quick_exit(SB) + RET + +// func Y__futimesat(tls *TLS, dirfd int32, pathname uintptr, times uintptr) (r int32) +TEXT ·Y__futimesat(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL dirfd+8(FP), AX + MOVL AX, 8(SP) + MOVQ pathname+16(FP), AX + MOVQ AX, 16(SP) + MOVQ times+24(FP), AX + MOVQ AX, 24(SP) + CALL ·X__futimesat(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Y__fwritable(tls *TLS, f uintptr) (r int32) +TEXT ·Y__fwritable(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X__fwritable(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Y__fwritex(tls *TLS, s uintptr, l Tsize_t, f uintptr) (r Tsize_t) +TEXT ·Y__fwritex(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ l+16(FP), AX + MOVQ AX, 16(SP) + MOVQ f+24(FP), AX + MOVQ AX, 24(SP) + CALL ·X__fwritex(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Y__fwriting(tls *TLS, f uintptr) (r int32) +TEXT ·Y__fwriting(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X__fwriting(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Y__fxstat(tls *TLS, ver int32, fd int32, buf uintptr) (r int32) +TEXT ·Y__fxstat(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL ver+8(FP), AX + MOVL AX, 8(SP) + MOVL fd+12(FP), AX + MOVL AX, 12(SP) + MOVQ buf+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__fxstat(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Y__fxstatat(tls *TLS, ver int32, fd int32, path uintptr, buf uintptr, flag int32) (r int32) +TEXT ·Y__fxstatat(SB),$48-44 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL ver+8(FP), AX + MOVL AX, 8(SP) + MOVL fd+12(FP), AX + MOVL AX, 12(SP) + MOVQ path+16(FP), AX + MOVQ AX, 16(SP) + MOVQ buf+24(FP), AX + MOVQ AX, 24(SP) + MOVL flag+32(FP), AX + MOVL AX, 32(SP) + CALL ·X__fxstatat(SB) + MOVL 40(SP), AX + MOVL AX, r+40(FP) + RET + +// func Y__get_handler_set(tls *TLS, set uintptr) +TEXT ·Y__get_handler_set(SB),$16-16 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ set+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X__get_handler_set(SB) + RET + +// func Y__get_locale(tls *TLS, cat int32, val uintptr) (r uintptr) +TEXT ·Y__get_locale(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL cat+8(FP), AX + MOVL AX, 8(SP) + MOVQ val+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__get_locale(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Y__get_resolv_conf(tls *TLS, conf uintptr, search uintptr, search_sz Tsize_t) (r int32) +TEXT ·Y__get_resolv_conf(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ conf+8(FP), AX + MOVQ AX, 8(SP) + MOVQ search+16(FP), AX + MOVQ AX, 16(SP) + MOVQ search_sz+24(FP), AX + MOVQ AX, 24(SP) + CALL ·X__get_resolv_conf(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Y__getauxval(tls *TLS, item uint64) (r uint64) +TEXT ·Y__getauxval(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ item+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X__getauxval(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Y__getdelim(tls *TLS, s uintptr, n uintptr, delim int32, f uintptr) (r Tssize_t) +TEXT ·Y__getdelim(SB),$48-48 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ n+16(FP), AX + MOVQ AX, 16(SP) + MOVL delim+24(FP), AX + MOVL AX, 24(SP) + MOVQ f+32(FP), AX + MOVQ AX, 32(SP) + CALL ·X__getdelim(SB) + MOVQ 40(SP), AX + MOVQ AX, r+40(FP) + RET + +// func Y__getgr_a(tls *TLS, name uintptr, gid Tgid_t, gr uintptr, buf uintptr, size uintptr, mem uintptr, nmem uintptr, res uintptr) (r int32) +TEXT ·Y__getgr_a(SB),$80-76 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ name+8(FP), AX + MOVQ AX, 8(SP) + MOVL gid+16(FP), AX + MOVL AX, 16(SP) + MOVQ gr+24(FP), AX + MOVQ AX, 24(SP) + MOVQ buf+32(FP), AX + MOVQ AX, 32(SP) + MOVQ size+40(FP), AX + MOVQ AX, 40(SP) + MOVQ mem+48(FP), AX + MOVQ AX, 48(SP) + MOVQ nmem+56(FP), AX + MOVQ AX, 56(SP) + MOVQ res+64(FP), AX + MOVQ AX, 64(SP) + CALL ·X__getgr_a(SB) + MOVL 72(SP), AX + MOVL AX, r+72(FP) + RET + +// func Y__getgrent_a(tls *TLS, f uintptr, gr uintptr, line uintptr, size uintptr, mem uintptr, nmem uintptr, res uintptr) (r int32) +TEXT ·Y__getgrent_a(SB),$72-68 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + MOVQ gr+16(FP), AX + MOVQ AX, 16(SP) + MOVQ line+24(FP), AX + MOVQ AX, 24(SP) + MOVQ size+32(FP), AX + MOVQ AX, 32(SP) + MOVQ mem+40(FP), AX + MOVQ AX, 40(SP) + MOVQ nmem+48(FP), AX + MOVQ AX, 48(SP) + MOVQ res+56(FP), AX + MOVQ AX, 56(SP) + CALL ·X__getgrent_a(SB) + MOVL 64(SP), AX + MOVL AX, r+64(FP) + RET + +// func Y__getopt_msg(tls *TLS, a uintptr, b uintptr, c uintptr, l Tsize_t) +TEXT ·Y__getopt_msg(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ a+8(FP), AX + MOVQ AX, 8(SP) + MOVQ b+16(FP), AX + MOVQ AX, 16(SP) + MOVQ c+24(FP), AX + MOVQ AX, 24(SP) + MOVQ l+32(FP), AX + MOVQ AX, 32(SP) + CALL ·X__getopt_msg(SB) + RET + +// func Y__getpw_a(tls *TLS, name uintptr, uid Tuid_t, pw uintptr, buf uintptr, size uintptr, res uintptr) (r int32) +TEXT ·Y__getpw_a(SB),$64-60 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ name+8(FP), AX + MOVQ AX, 8(SP) + MOVL uid+16(FP), AX + MOVL AX, 16(SP) + MOVQ pw+24(FP), AX + MOVQ AX, 24(SP) + MOVQ buf+32(FP), AX + MOVQ AX, 32(SP) + MOVQ size+40(FP), AX + MOVQ AX, 40(SP) + MOVQ res+48(FP), AX + MOVQ AX, 48(SP) + CALL ·X__getpw_a(SB) + MOVL 56(SP), AX + MOVL AX, r+56(FP) + RET + +// func Y__getpwent_a(tls *TLS, f uintptr, pw uintptr, line uintptr, size uintptr, res uintptr) (r int32) +TEXT ·Y__getpwent_a(SB),$56-52 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + MOVQ pw+16(FP), AX + MOVQ AX, 16(SP) + MOVQ line+24(FP), AX + MOVQ AX, 24(SP) + MOVQ size+32(FP), AX + MOVQ AX, 32(SP) + MOVQ res+40(FP), AX + MOVQ AX, 40(SP) + CALL ·X__getpwent_a(SB) + MOVL 48(SP), AX + MOVL AX, r+48(FP) + RET + +// func Y__gettextdomain(tls *TLS) (r uintptr) +TEXT ·Y__gettextdomain(SB),$16-16 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·X__gettextdomain(SB) + MOVQ 8(SP), AX + MOVQ AX, r+8(FP) + RET + +// func Y__gmtime_r(tls *TLS, t uintptr, tm uintptr) (r uintptr) +TEXT ·Y__gmtime_r(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ t+8(FP), AX + MOVQ AX, 8(SP) + MOVQ tm+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__gmtime_r(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Y__h_errno_location(tls *TLS) (r uintptr) +TEXT ·Y__h_errno_location(SB),$16-16 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·X__h_errno_location(SB) + MOVQ 8(SP), AX + MOVQ AX, r+8(FP) + RET + +// func Y__inet_aton(tls *TLS, s0 uintptr, dest uintptr) (r int32) +TEXT ·Y__inet_aton(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s0+8(FP), AX + MOVQ AX, 8(SP) + MOVQ dest+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__inet_aton(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Y__init_ssp(tls *TLS, entropy uintptr) +TEXT ·Y__init_ssp(SB),$16-16 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ entropy+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X__init_ssp(SB) + RET + +// func Y__intscan(tls *TLS, f uintptr, base uint32, pok int32, lim uint64) (r uint64) +TEXT ·Y__intscan(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + MOVL base+16(FP), AX + MOVL AX, 16(SP) + MOVL pok+20(FP), AX + MOVL AX, 20(SP) + MOVQ lim+24(FP), AX + MOVQ AX, 24(SP) + CALL ·X__intscan(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Y__isalnum_l(tls *TLS, c int32, l Tlocale_t) (r int32) +TEXT ·Y__isalnum_l(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + MOVQ l+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__isalnum_l(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Y__isalpha_l(tls *TLS, c int32, l Tlocale_t) (r int32) +TEXT ·Y__isalpha_l(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + MOVQ l+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__isalpha_l(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Y__isblank_l(tls *TLS, c int32, l Tlocale_t) (r int32) +TEXT ·Y__isblank_l(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + MOVQ l+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__isblank_l(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Y__iscntrl_l(tls *TLS, c int32, l Tlocale_t) (r int32) +TEXT ·Y__iscntrl_l(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + MOVQ l+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__iscntrl_l(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Y__isdigit_l(tls *TLS, c int32, l Tlocale_t) (r int32) +TEXT ·Y__isdigit_l(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + MOVQ l+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__isdigit_l(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Y__isfinite(tls *TLS, d float64) (_2 int32) +TEXT ·Y__isfinite(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ d+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X__isfinite(SB) + MOVL 16(SP), AX + MOVL AX, _2+16(FP) + RET + +// func Y__isfinitef(tls *TLS, f float32) (_2 int32) +TEXT ·Y__isfinitef(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL f+8(FP), AX + MOVL AX, 8(SP) + CALL ·X__isfinitef(SB) + MOVL 16(SP), AX + MOVL AX, _2+16(FP) + RET + +// func Y__isfinitel(tls *TLS, d float64) (_2 int32) +TEXT ·Y__isfinitel(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ d+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X__isfinitel(SB) + MOVL 16(SP), AX + MOVL AX, _2+16(FP) + RET + +// func Y__isgraph_l(tls *TLS, c int32, l Tlocale_t) (r int32) +TEXT ·Y__isgraph_l(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + MOVQ l+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__isgraph_l(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Y__islower_l(tls *TLS, c int32, l Tlocale_t) (r int32) +TEXT ·Y__islower_l(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + MOVQ l+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__islower_l(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Y__isnan(t *TLS, x float64) (_2 int32) +TEXT ·Y__isnan(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X__isnan(SB) + MOVL 16(SP), AX + MOVL AX, _2+16(FP) + RET + +// func Y__isnanf(t *TLS, arg float32) (_2 int32) +TEXT ·Y__isnanf(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVL arg+8(FP), AX + MOVL AX, 8(SP) + CALL ·X__isnanf(SB) + MOVL 16(SP), AX + MOVL AX, _2+16(FP) + RET + +// func Y__isnanl(t *TLS, arg float64) (_2 int32) +TEXT ·Y__isnanl(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ arg+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X__isnanl(SB) + MOVL 16(SP), AX + MOVL AX, _2+16(FP) + RET + +// func Y__isoc99_fscanf(tls *TLS, f uintptr, fmt uintptr, va uintptr) (r int32) +TEXT ·Y__isoc99_fscanf(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + MOVQ fmt+16(FP), AX + MOVQ AX, 16(SP) + MOVQ va+24(FP), AX + MOVQ AX, 24(SP) + CALL ·X__isoc99_fscanf(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Y__isoc99_fwscanf(tls *TLS, f uintptr, fmt uintptr, va uintptr) (r int32) +TEXT ·Y__isoc99_fwscanf(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + MOVQ fmt+16(FP), AX + MOVQ AX, 16(SP) + MOVQ va+24(FP), AX + MOVQ AX, 24(SP) + CALL ·X__isoc99_fwscanf(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Y__isoc99_scanf(tls *TLS, fmt uintptr, va uintptr) (r int32) +TEXT ·Y__isoc99_scanf(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ fmt+8(FP), AX + MOVQ AX, 8(SP) + MOVQ va+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__isoc99_scanf(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Y__isoc99_sscanf(tls *TLS, s uintptr, fmt uintptr, va uintptr) (r int32) +TEXT ·Y__isoc99_sscanf(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ fmt+16(FP), AX + MOVQ AX, 16(SP) + MOVQ va+24(FP), AX + MOVQ AX, 24(SP) + CALL ·X__isoc99_sscanf(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Y__isoc99_swscanf(tls *TLS, s uintptr, fmt uintptr, va uintptr) (r int32) +TEXT ·Y__isoc99_swscanf(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ fmt+16(FP), AX + MOVQ AX, 16(SP) + MOVQ va+24(FP), AX + MOVQ AX, 24(SP) + CALL ·X__isoc99_swscanf(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Y__isoc99_vfscanf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) +TEXT ·Y__isoc99_vfscanf(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + MOVQ fmt+16(FP), AX + MOVQ AX, 16(SP) + MOVQ ap+24(FP), AX + MOVQ AX, 24(SP) + CALL ·X__isoc99_vfscanf(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Y__isoc99_vfwscanf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) +TEXT ·Y__isoc99_vfwscanf(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + MOVQ fmt+16(FP), AX + MOVQ AX, 16(SP) + MOVQ ap+24(FP), AX + MOVQ AX, 24(SP) + CALL ·X__isoc99_vfwscanf(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Y__isoc99_vscanf(tls *TLS, fmt uintptr, ap Tva_list) (r int32) +TEXT ·Y__isoc99_vscanf(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ fmt+8(FP), AX + MOVQ AX, 8(SP) + MOVQ ap+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__isoc99_vscanf(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Y__isoc99_vsscanf(tls *TLS, s uintptr, fmt uintptr, ap Tva_list) (r int32) +TEXT ·Y__isoc99_vsscanf(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ fmt+16(FP), AX + MOVQ AX, 16(SP) + MOVQ ap+24(FP), AX + MOVQ AX, 24(SP) + CALL ·X__isoc99_vsscanf(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Y__isoc99_vswscanf(tls *TLS, s uintptr, fmt uintptr, ap Tva_list) (r int32) +TEXT ·Y__isoc99_vswscanf(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ fmt+16(FP), AX + MOVQ AX, 16(SP) + MOVQ ap+24(FP), AX + MOVQ AX, 24(SP) + CALL ·X__isoc99_vswscanf(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Y__isoc99_vwscanf(tls *TLS, fmt uintptr, ap Tva_list) (r int32) +TEXT ·Y__isoc99_vwscanf(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ fmt+8(FP), AX + MOVQ AX, 8(SP) + MOVQ ap+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__isoc99_vwscanf(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Y__isoc99_wscanf(tls *TLS, fmt uintptr, va uintptr) (r int32) +TEXT ·Y__isoc99_wscanf(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ fmt+8(FP), AX + MOVQ AX, 8(SP) + MOVQ va+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__isoc99_wscanf(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Y__isprint_l(tls *TLS, c int32, l Tlocale_t) (r int32) +TEXT ·Y__isprint_l(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + MOVQ l+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__isprint_l(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Y__ispunct_l(tls *TLS, c int32, l Tlocale_t) (r int32) +TEXT ·Y__ispunct_l(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + MOVQ l+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__ispunct_l(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Y__isspace_l(tls *TLS, c int32, l Tlocale_t) (r int32) +TEXT ·Y__isspace_l(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + MOVQ l+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__isspace_l(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Y__isupper_l(tls *TLS, c int32, l Tlocale_t) (r int32) +TEXT ·Y__isupper_l(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + MOVQ l+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__isupper_l(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Y__iswalnum_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) +TEXT ·Y__iswalnum_l(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + MOVQ l+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__iswalnum_l(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Y__iswalpha_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) +TEXT ·Y__iswalpha_l(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + MOVQ l+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__iswalpha_l(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Y__iswblank_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) +TEXT ·Y__iswblank_l(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + MOVQ l+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__iswblank_l(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Y__iswcntrl_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) +TEXT ·Y__iswcntrl_l(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + MOVQ l+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__iswcntrl_l(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Y__iswctype_l(tls *TLS, c Twint_t, t Twctype_t, l Tlocale_t) (r int32) +TEXT ·Y__iswctype_l(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + MOVQ t+16(FP), AX + MOVQ AX, 16(SP) + MOVQ l+24(FP), AX + MOVQ AX, 24(SP) + CALL ·X__iswctype_l(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Y__iswdigit_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) +TEXT ·Y__iswdigit_l(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + MOVQ l+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__iswdigit_l(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Y__iswgraph_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) +TEXT ·Y__iswgraph_l(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + MOVQ l+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__iswgraph_l(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Y__iswlower_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) +TEXT ·Y__iswlower_l(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + MOVQ l+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__iswlower_l(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Y__iswprint_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) +TEXT ·Y__iswprint_l(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + MOVQ l+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__iswprint_l(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Y__iswpunct_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) +TEXT ·Y__iswpunct_l(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + MOVQ l+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__iswpunct_l(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Y__iswspace_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) +TEXT ·Y__iswspace_l(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + MOVQ l+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__iswspace_l(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Y__iswupper_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) +TEXT ·Y__iswupper_l(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + MOVQ l+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__iswupper_l(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Y__iswxdigit_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) +TEXT ·Y__iswxdigit_l(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + MOVQ l+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__iswxdigit_l(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Y__isxdigit_l(tls *TLS, c int32, l Tlocale_t) (r int32) +TEXT ·Y__isxdigit_l(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + MOVQ l+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__isxdigit_l(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Y__lctrans(tls *TLS, msg uintptr, lm uintptr) (r uintptr) +TEXT ·Y__lctrans(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ msg+8(FP), AX + MOVQ AX, 8(SP) + MOVQ lm+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__lctrans(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Y__lctrans_cur(tls *TLS, msg uintptr) (r uintptr) +TEXT ·Y__lctrans_cur(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ msg+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X__lctrans_cur(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Y__lctrans_impl(tls *TLS, msg uintptr, lm uintptr) (r uintptr) +TEXT ·Y__lctrans_impl(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ msg+8(FP), AX + MOVQ AX, 8(SP) + MOVQ lm+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__lctrans_impl(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Y__ldexp_cexp(tls *TLS, z complex128, expt int32) (r complex128) +TEXT ·Y__ldexp_cexp(SB),$48-48 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ z_real+8(FP), AX + MOVQ AX, 8(SP) + MOVQ z_imag+16(FP), AX + MOVQ AX, 16(SP) + MOVL expt+24(FP), AX + MOVL AX, 24(SP) + CALL ·X__ldexp_cexp(SB) + MOVQ 32(SP), AX + MOVQ AX, r_real+32(FP) + MOVQ 40(SP), AX + MOVQ AX, r_imag+40(FP) + RET + +// func Y__ldexp_cexpf(tls *TLS, z complex64, expt int32) (r complex64) +TEXT ·Y__ldexp_cexpf(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL z_real+8(FP), AX + MOVL AX, 8(SP) + MOVL z_imag+12(FP), AX + MOVL AX, 12(SP) + MOVL expt+16(FP), AX + MOVL AX, 16(SP) + CALL ·X__ldexp_cexpf(SB) + MOVL 24(SP), AX + MOVL AX, r_real+24(FP) + MOVL 28(SP), AX + MOVL AX, r_imag+28(FP) + RET + +// func Y__lgamma_r(tls *TLS, x float64, signgamp uintptr) (r1 float64) +TEXT ·Y__lgamma_r(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + MOVQ signgamp+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__lgamma_r(SB) + MOVQ 24(SP), AX + MOVQ AX, r1+24(FP) + RET + +// func Y__lgammaf_r(tls *TLS, x float32, signgamp uintptr) (r1 float32) +TEXT ·Y__lgammaf_r(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL x+8(FP), AX + MOVL AX, 8(SP) + MOVQ signgamp+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__lgammaf_r(SB) + MOVL 24(SP), AX + MOVL AX, r1+24(FP) + RET + +// func Y__lgammal_r(tls *TLS, x float64, sg uintptr) (r float64) +TEXT ·Y__lgammal_r(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + MOVQ sg+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__lgammal_r(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Y__libc_current_sigrtmax(tls *TLS) (r int32) +TEXT ·Y__libc_current_sigrtmax(SB),$16-12 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·X__libc_current_sigrtmax(SB) + MOVL 8(SP), AX + MOVL AX, r+8(FP) + RET + +// func Y__libc_current_sigrtmin(tls *TLS) (r int32) +TEXT ·Y__libc_current_sigrtmin(SB),$16-12 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·X__libc_current_sigrtmin(SB) + MOVL 8(SP), AX + MOVL AX, r+8(FP) + RET + +// func Y__libc_sigaction(tls *TLS, sig int32, sa uintptr, old uintptr) (r1 int32) +TEXT ·Y__libc_sigaction(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL sig+8(FP), AX + MOVL AX, 8(SP) + MOVQ sa+16(FP), AX + MOVQ AX, 16(SP) + MOVQ old+24(FP), AX + MOVQ AX, 24(SP) + CALL ·X__libc_sigaction(SB) + MOVL 32(SP), AX + MOVL AX, r1+32(FP) + RET + +// func Y__loc_is_allocated(tls *TLS, loc Tlocale_t) (r int32) +TEXT ·Y__loc_is_allocated(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ loc+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X__loc_is_allocated(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Y__localtime_r(tls *TLS, t uintptr, tm uintptr) (r uintptr) +TEXT ·Y__localtime_r(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ t+8(FP), AX + MOVQ AX, 8(SP) + MOVQ tm+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__localtime_r(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Y__lockfile(tls *TLS, file uintptr) (_2 int32) +TEXT ·Y__lockfile(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ file+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X__lockfile(SB) + MOVL 16(SP), AX + MOVL AX, _2+16(FP) + RET + +// func Y__lookup_ipliteral(tls *TLS, buf uintptr, name uintptr, family int32) (r int32) +TEXT ·Y__lookup_ipliteral(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ buf+8(FP), AX + MOVQ AX, 8(SP) + MOVQ name+16(FP), AX + MOVQ AX, 16(SP) + MOVL family+24(FP), AX + MOVL AX, 24(SP) + CALL ·X__lookup_ipliteral(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Y__lookup_name(tls *TLS, buf uintptr, canon uintptr, name uintptr, family int32, flags int32) (r int32) +TEXT ·Y__lookup_name(SB),$48-44 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ buf+8(FP), AX + MOVQ AX, 8(SP) + MOVQ canon+16(FP), AX + MOVQ AX, 16(SP) + MOVQ name+24(FP), AX + MOVQ AX, 24(SP) + MOVL family+32(FP), AX + MOVL AX, 32(SP) + MOVL flags+36(FP), AX + MOVL AX, 36(SP) + CALL ·X__lookup_name(SB) + MOVL 40(SP), AX + MOVL AX, r+40(FP) + RET + +// func Y__lookup_serv(tls *TLS, buf uintptr, name uintptr, proto int32, socktype int32, flags int32) (r int32) +TEXT ·Y__lookup_serv(SB),$48-44 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ buf+8(FP), AX + MOVQ AX, 8(SP) + MOVQ name+16(FP), AX + MOVQ AX, 16(SP) + MOVL proto+24(FP), AX + MOVL AX, 24(SP) + MOVL socktype+28(FP), AX + MOVL AX, 28(SP) + MOVL flags+32(FP), AX + MOVL AX, 32(SP) + CALL ·X__lookup_serv(SB) + MOVL 40(SP), AX + MOVL AX, r+40(FP) + RET + +// func Y__lseek(tls *TLS, fd int32, offset Toff_t, whence int32) (r Toff_t) +TEXT ·Y__lseek(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVQ offset+16(FP), AX + MOVQ AX, 16(SP) + MOVL whence+24(FP), AX + MOVL AX, 24(SP) + CALL ·X__lseek(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Y__lsysinfo(tls *TLS, info uintptr) (r int32) +TEXT ·Y__lsysinfo(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ info+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X__lsysinfo(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Y__lxstat(tls *TLS, ver int32, path uintptr, buf uintptr) (r int32) +TEXT ·Y__lxstat(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL ver+8(FP), AX + MOVL AX, 8(SP) + MOVQ path+16(FP), AX + MOVQ AX, 16(SP) + MOVQ buf+24(FP), AX + MOVQ AX, 24(SP) + CALL ·X__lxstat(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Y__madvise(tls *TLS, addr uintptr, len1 Tsize_t, advice int32) (r int32) +TEXT ·Y__madvise(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ addr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ len1+16(FP), AX + MOVQ AX, 16(SP) + MOVL advice+24(FP), AX + MOVL AX, 24(SP) + CALL ·X__madvise(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Y__map_file(tls *TLS, pathname uintptr, size uintptr) (r uintptr) +TEXT ·Y__map_file(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ pathname+8(FP), AX + MOVQ AX, 8(SP) + MOVQ size+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__map_file(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Y__math_divzero(tls *TLS, sign Tuint32_t) (r float64) +TEXT ·Y__math_divzero(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL sign+8(FP), AX + MOVL AX, 8(SP) + CALL ·X__math_divzero(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Y__math_divzerof(tls *TLS, sign Tuint32_t) (r float32) +TEXT ·Y__math_divzerof(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL sign+8(FP), AX + MOVL AX, 8(SP) + CALL ·X__math_divzerof(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Y__math_invalid(tls *TLS, x float64) (r float64) +TEXT ·Y__math_invalid(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X__math_invalid(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Y__math_invalidf(tls *TLS, x float32) (r float32) +TEXT ·Y__math_invalidf(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL x+8(FP), AX + MOVL AX, 8(SP) + CALL ·X__math_invalidf(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Y__math_oflow(tls *TLS, sign Tuint32_t) (r float64) +TEXT ·Y__math_oflow(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL sign+8(FP), AX + MOVL AX, 8(SP) + CALL ·X__math_oflow(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Y__math_oflowf(tls *TLS, sign Tuint32_t) (r float32) +TEXT ·Y__math_oflowf(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL sign+8(FP), AX + MOVL AX, 8(SP) + CALL ·X__math_oflowf(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Y__math_uflow(tls *TLS, sign Tuint32_t) (r float64) +TEXT ·Y__math_uflow(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL sign+8(FP), AX + MOVL AX, 8(SP) + CALL ·X__math_uflow(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Y__math_uflowf(tls *TLS, sign Tuint32_t) (r float32) +TEXT ·Y__math_uflowf(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL sign+8(FP), AX + MOVL AX, 8(SP) + CALL ·X__math_uflowf(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Y__math_xflow(tls *TLS, sign Tuint32_t, y2 float64) (r float64) +TEXT ·Y__math_xflow(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL sign+8(FP), AX + MOVL AX, 8(SP) + MOVQ y2+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__math_xflow(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Y__math_xflowf(tls *TLS, sign Tuint32_t, y2 float32) (r float32) +TEXT ·Y__math_xflowf(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL sign+8(FP), AX + MOVL AX, 8(SP) + MOVL y2+12(FP), AX + MOVL AX, 12(SP) + CALL ·X__math_xflowf(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Y__memrchr(tls *TLS, m uintptr, c int32, n Tsize_t) (r uintptr) +TEXT ·Y__memrchr(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ m+8(FP), AX + MOVQ AX, 8(SP) + MOVL c+16(FP), AX + MOVL AX, 16(SP) + MOVQ n+24(FP), AX + MOVQ AX, 24(SP) + CALL ·X__memrchr(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Y__mkostemps(tls *TLS, template uintptr, len1 int32, flags int32) (r int32) +TEXT ·Y__mkostemps(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ template+8(FP), AX + MOVQ AX, 8(SP) + MOVL len1+16(FP), AX + MOVL AX, 16(SP) + MOVL flags+20(FP), AX + MOVL AX, 20(SP) + CALL ·X__mkostemps(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Y__mmap(tls *TLS, start uintptr, len1 Tsize_t, prot int32, flags int32, fd int32, off Toff_t) (r uintptr) +TEXT ·Y__mmap(SB),$56-56 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ start+8(FP), AX + MOVQ AX, 8(SP) + MOVQ len1+16(FP), AX + MOVQ AX, 16(SP) + MOVL prot+24(FP), AX + MOVL AX, 24(SP) + MOVL flags+28(FP), AX + MOVL AX, 28(SP) + MOVL fd+32(FP), AX + MOVL AX, 32(SP) + MOVQ off+40(FP), AX + MOVQ AX, 40(SP) + CALL ·X__mmap(SB) + MOVQ 48(SP), AX + MOVQ AX, r+48(FP) + RET + +// func Y__mo_lookup(tls *TLS, p uintptr, size Tsize_t, s uintptr) (r uintptr) +TEXT ·Y__mo_lookup(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ p+8(FP), AX + MOVQ AX, 8(SP) + MOVQ size+16(FP), AX + MOVQ AX, 16(SP) + MOVQ s+24(FP), AX + MOVQ AX, 24(SP) + CALL ·X__mo_lookup(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Y__month_to_secs(tls *TLS, month int32, is_leap int32) (r int32) +TEXT ·Y__month_to_secs(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL month+8(FP), AX + MOVL AX, 8(SP) + MOVL is_leap+12(FP), AX + MOVL AX, 12(SP) + CALL ·X__month_to_secs(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Y__mprotect(tls *TLS, addr uintptr, len1 Tsize_t, prot int32) (r int32) +TEXT ·Y__mprotect(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ addr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ len1+16(FP), AX + MOVQ AX, 16(SP) + MOVL prot+24(FP), AX + MOVL AX, 24(SP) + CALL ·X__mprotect(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Y__mremap(tls *TLS, old_addr uintptr, old_len Tsize_t, new_len Tsize_t, flags int32, va uintptr) (r uintptr) +TEXT ·Y__mremap(SB),$56-56 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ old_addr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ old_len+16(FP), AX + MOVQ AX, 16(SP) + MOVQ new_len+24(FP), AX + MOVQ AX, 24(SP) + MOVL flags+32(FP), AX + MOVL AX, 32(SP) + MOVQ va+40(FP), AX + MOVQ AX, 40(SP) + CALL ·X__mremap(SB) + MOVQ 48(SP), AX + MOVQ AX, r+48(FP) + RET + +// func Y__munmap(tls *TLS, start uintptr, len1 Tsize_t) (r int32) +TEXT ·Y__munmap(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ start+8(FP), AX + MOVQ AX, 8(SP) + MOVQ len1+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__munmap(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Y__newlocale(tls *TLS, mask int32, name uintptr, loc Tlocale_t) (r Tlocale_t) +TEXT ·Y__newlocale(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL mask+8(FP), AX + MOVL AX, 8(SP) + MOVQ name+16(FP), AX + MOVQ AX, 16(SP) + MOVQ loc+24(FP), AX + MOVQ AX, 24(SP) + CALL ·X__newlocale(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Y__nl_langinfo(tls *TLS, item Tnl_item) (r uintptr) +TEXT ·Y__nl_langinfo(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL item+8(FP), AX + MOVL AX, 8(SP) + CALL ·X__nl_langinfo(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Y__nl_langinfo_l(tls *TLS, item Tnl_item, loc Tlocale_t) (r uintptr) +TEXT ·Y__nl_langinfo_l(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL item+8(FP), AX + MOVL AX, 8(SP) + MOVQ loc+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__nl_langinfo_l(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Y__nscd_query(tls *TLS, req Tint32_t, key uintptr, buf uintptr, len1 Tsize_t, swap uintptr) (r uintptr) +TEXT ·Y__nscd_query(SB),$56-56 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL req+8(FP), AX + MOVL AX, 8(SP) + MOVQ key+16(FP), AX + MOVQ AX, 16(SP) + MOVQ buf+24(FP), AX + MOVQ AX, 24(SP) + MOVQ len1+32(FP), AX + MOVQ AX, 32(SP) + MOVQ swap+40(FP), AX + MOVQ AX, 40(SP) + CALL ·X__nscd_query(SB) + MOVQ 48(SP), AX + MOVQ AX, r+48(FP) + RET + +// func Y__ofl_add(tls *TLS, f uintptr) (r uintptr) +TEXT ·Y__ofl_add(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X__ofl_add(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Y__ofl_lock(tls *TLS) (r uintptr) +TEXT ·Y__ofl_lock(SB),$16-16 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·X__ofl_lock(SB) + MOVQ 8(SP), AX + MOVQ AX, r+8(FP) + RET + +// func Y__ofl_unlock(tls *TLS) +TEXT ·Y__ofl_unlock(SB),$8-8 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·X__ofl_unlock(SB) + RET + +// func Y__overflow(tls *TLS, f uintptr, _c int32) (r int32) +TEXT ·Y__overflow(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + MOVL _c+16(FP), AX + MOVL AX, 16(SP) + CALL ·X__overflow(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Y__pleval(tls *TLS, s uintptr, n uint64) (r uint64) +TEXT ·Y__pleval(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ n+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__pleval(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Y__posix_getopt(tls *TLS, argc int32, argv uintptr, optstring uintptr) (r int32) +TEXT ·Y__posix_getopt(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL argc+8(FP), AX + MOVL AX, 8(SP) + MOVQ argv+16(FP), AX + MOVQ AX, 16(SP) + MOVQ optstring+24(FP), AX + MOVQ AX, 24(SP) + CALL ·X__posix_getopt(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Y__procfdname(tls *TLS, buf uintptr, fd uint32) +TEXT ·Y__procfdname(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ buf+8(FP), AX + MOVQ AX, 8(SP) + MOVL fd+16(FP), AX + MOVL AX, 16(SP) + CALL ·X__procfdname(SB) + RET + +// func Y__ptsname_r(tls *TLS, fd int32, buf uintptr, len1 Tsize_t) (r int32) +TEXT ·Y__ptsname_r(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVQ buf+16(FP), AX + MOVQ AX, 16(SP) + MOVQ len1+24(FP), AX + MOVQ AX, 24(SP) + CALL ·X__ptsname_r(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Y__putenv(tls *TLS, s uintptr, l Tsize_t, r uintptr) (r1 int32) +TEXT ·Y__putenv(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ l+16(FP), AX + MOVQ AX, 16(SP) + MOVQ r+24(FP), AX + MOVQ AX, 24(SP) + CALL ·X__putenv(SB) + MOVL 32(SP), AX + MOVL AX, r1+32(FP) + RET + +// func Y__qsort_r(tls *TLS, base uintptr, nel Tsize_t, width Tsize_t, __ccgo_fp_cmp Tcmpfun, arg uintptr) +TEXT ·Y__qsort_r(SB),$56-48 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX // alloc all ABI trampolines + MOVQ AX, 0(SP) + MOVQ $16, 8(SP) // 16*(number of func ptrs in signature) + CALL modernc·org∕libc·TLSAlloc(SB) + MOVQ 16(SP), AX + MOVQ AX, -8(BP) // Trampolines[0] + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ -8(BP), AX + ADDQ $0, AX // 16*(0-based ordinal number of the func ptr in signature) + MOVQ AX, 8(SP) + MOVQ __ccgo_fp_cmp+32(FP), AX // ABI0 code ptr + MOVQ AX, 16(SP) + CALL ·__ccgo_abiInternal___qsort_r_3(SB) // Create the closure for calling __ccgo_fp_cmp + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ base+8(FP), AX + MOVQ AX, 8(SP) + MOVQ nel+16(FP), AX + MOVQ AX, 16(SP) + MOVQ width+24(FP), AX + MOVQ AX, 24(SP) + MOVQ -8(BP), AX // Trampolines[0] + ADDQ $0, AX // 16*(0-based ordinal number of the func ptr in signature) + MOVQ AX, 32(SP) + MOVQ arg+40(FP), AX + MOVQ AX, 40(SP) + CALL ·X__qsort_r(SB) + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ $0, 8(SP) + CALL modernc·org∕libc·TLSFree(SB) + RET + +TEXT ·__ccgo_abi0___qsort_r_3(SB),$48-44 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ _0+0(FP), AX + MOVQ AX, 0(SP) + MOVQ _1+8(FP), AX + MOVQ AX, 8(SP) + MOVQ _2+16(FP), AX + MOVQ AX, 16(SP) + MOVQ _3+24(FP), AX + MOVQ AX, 24(SP) + MOVQ __ccgo_fp+32(FP), AX + CALL *AX // Call the ABI0 code ptr + MOVL 32(SP), AX + MOVL AX, _4+40(FP) + RET + +// func Y__rand48_step(tls *TLS, xi uintptr, lc uintptr) (r Tuint64_t) +TEXT ·Y__rand48_step(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ xi+8(FP), AX + MOVQ AX, 8(SP) + MOVQ lc+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__rand48_step(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Y__register_locked_file(tls *TLS, f uintptr, self Tpthread_t) +TEXT ·Y__register_locked_file(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + MOVQ self+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__register_locked_file(SB) + RET + +// func Y__rem_pio2(tls *TLS, x float64, y uintptr) (r1 int32) +TEXT ·Y__rem_pio2(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + MOVQ y+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__rem_pio2(SB) + MOVL 24(SP), AX + MOVL AX, r1+24(FP) + RET + +// func Y__rem_pio2_large(tls *TLS, x uintptr, y uintptr, e0 int32, nx int32, prec int32) (r int32) +TEXT ·Y__rem_pio2_large(SB),$48-44 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + MOVQ y+16(FP), AX + MOVQ AX, 16(SP) + MOVL e0+24(FP), AX + MOVL AX, 24(SP) + MOVL nx+28(FP), AX + MOVL AX, 28(SP) + MOVL prec+32(FP), AX + MOVL AX, 32(SP) + CALL ·X__rem_pio2_large(SB) + MOVL 40(SP), AX + MOVL AX, r+40(FP) + RET + +// func Y__rem_pio2f(tls *TLS, x float32, y uintptr) (r int32) +TEXT ·Y__rem_pio2f(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL x+8(FP), AX + MOVL AX, 8(SP) + MOVQ y+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__rem_pio2f(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Y__res_mkquery(tls *TLS, op int32, dname uintptr, class int32, type1 int32, data uintptr, datalen int32, newrr uintptr, buf uintptr, buflen int32) (r int32) +TEXT ·Y__res_mkquery(SB),$80-76 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL op+8(FP), AX + MOVL AX, 8(SP) + MOVQ dname+16(FP), AX + MOVQ AX, 16(SP) + MOVL class+24(FP), AX + MOVL AX, 24(SP) + MOVL type1+28(FP), AX + MOVL AX, 28(SP) + MOVQ data+32(FP), AX + MOVQ AX, 32(SP) + MOVL datalen+40(FP), AX + MOVL AX, 40(SP) + MOVQ newrr+48(FP), AX + MOVQ AX, 48(SP) + MOVQ buf+56(FP), AX + MOVQ AX, 56(SP) + MOVL buflen+64(FP), AX + MOVL AX, 64(SP) + CALL ·X__res_mkquery(SB) + MOVL 72(SP), AX + MOVL AX, r+72(FP) + RET + +// func Y__res_msend(tls *TLS, nqueries int32, queries uintptr, qlens uintptr, answers uintptr, alens uintptr, asize int32) (r int32) +TEXT ·Y__res_msend(SB),$64-60 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL nqueries+8(FP), AX + MOVL AX, 8(SP) + MOVQ queries+16(FP), AX + MOVQ AX, 16(SP) + MOVQ qlens+24(FP), AX + MOVQ AX, 24(SP) + MOVQ answers+32(FP), AX + MOVQ AX, 32(SP) + MOVQ alens+40(FP), AX + MOVQ AX, 40(SP) + MOVL asize+48(FP), AX + MOVL AX, 48(SP) + CALL ·X__res_msend(SB) + MOVL 56(SP), AX + MOVL AX, r+56(FP) + RET + +// func Y__res_msend_rc(tls *TLS, nqueries int32, queries uintptr, qlens uintptr, answers uintptr, alens uintptr, asize int32, conf uintptr) (r1 int32) +TEXT ·Y__res_msend_rc(SB),$72-68 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL nqueries+8(FP), AX + MOVL AX, 8(SP) + MOVQ queries+16(FP), AX + MOVQ AX, 16(SP) + MOVQ qlens+24(FP), AX + MOVQ AX, 24(SP) + MOVQ answers+32(FP), AX + MOVQ AX, 32(SP) + MOVQ alens+40(FP), AX + MOVQ AX, 40(SP) + MOVL asize+48(FP), AX + MOVL AX, 48(SP) + MOVQ conf+56(FP), AX + MOVQ AX, 56(SP) + CALL ·X__res_msend_rc(SB) + MOVL 64(SP), AX + MOVL AX, r1+64(FP) + RET + +// func Y__res_send(tls *TLS, _msg uintptr, _msglen int32, _answer uintptr, _anslen int32) (r1 int32) +TEXT ·Y__res_send(SB),$48-44 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ _msg+8(FP), AX + MOVQ AX, 8(SP) + MOVL _msglen+16(FP), AX + MOVL AX, 16(SP) + MOVQ _answer+24(FP), AX + MOVQ AX, 24(SP) + MOVL _anslen+32(FP), AX + MOVL AX, 32(SP) + CALL ·X__res_send(SB) + MOVL 40(SP), AX + MOVL AX, r1+40(FP) + RET + +// func Y__res_state(tls *TLS) (r uintptr) +TEXT ·Y__res_state(SB),$16-16 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·X__res_state(SB) + MOVQ 8(SP), AX + MOVQ AX, r+8(FP) + RET + +// func Y__reset_tls(tls *TLS) +TEXT ·Y__reset_tls(SB),$8-8 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·X__reset_tls(SB) + RET + +// func Y__restore(tls *TLS) +TEXT ·Y__restore(SB),$8-8 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·X__restore(SB) + RET + +// func Y__restore_rt(tls *TLS) +TEXT ·Y__restore_rt(SB),$8-8 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·X__restore_rt(SB) + RET + +// func Y__restore_sigs(tls *TLS, set uintptr) +TEXT ·Y__restore_sigs(SB),$16-16 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ set+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X__restore_sigs(SB) + RET + +// func Y__rtnetlink_enumerate(tls *TLS, link_af int32, addr_af int32, __ccgo_fp_cb uintptr, ctx uintptr) (r1 int32) +TEXT ·Y__rtnetlink_enumerate(SB),$48-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX // alloc all ABI trampolines + MOVQ AX, 0(SP) + MOVQ $16, 8(SP) // 16*(number of func ptrs in signature) + CALL modernc·org∕libc·TLSAlloc(SB) + MOVQ 16(SP), AX + MOVQ AX, -8(BP) // Trampolines[0] + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ -8(BP), AX + ADDQ $0, AX // 16*(0-based ordinal number of the func ptr in signature) + MOVQ AX, 8(SP) + MOVQ __ccgo_fp_cb+16(FP), AX // ABI0 code ptr + MOVQ AX, 16(SP) + CALL ·__ccgo_abiInternal___rtnetlink_enumerate_2(SB) // Create the closure for calling __ccgo_fp_cb + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL link_af+8(FP), AX + MOVL AX, 8(SP) + MOVL addr_af+12(FP), AX + MOVL AX, 12(SP) + MOVQ -8(BP), AX // Trampolines[0] + ADDQ $0, AX // 16*(0-based ordinal number of the func ptr in signature) + MOVQ AX, 24(SP) + MOVQ ctx+24(FP), AX + MOVQ AX, 24(SP) + CALL ·X__rtnetlink_enumerate(SB) + MOVL 32(SP), AX + MOVL AX, r1+32(FP) + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ $0, 8(SP) + CALL modernc·org∕libc·TLSFree(SB) + RET + +TEXT ·__ccgo_abi0___rtnetlink_enumerate_2(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ _0+0(FP), AX + MOVQ AX, 0(SP) + MOVQ _1+8(FP), AX + MOVQ AX, 8(SP) + MOVQ _2+16(FP), AX + MOVQ AX, 16(SP) + MOVQ __ccgo_fp+24(FP), AX + CALL *AX // Call the ABI0 code ptr + MOVL 24(SP), AX + MOVL AX, _3+32(FP) + RET + +// func Y__secs_to_tm(tls *TLS, t int64, tm uintptr) (r int32) +TEXT ·Y__secs_to_tm(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ t+8(FP), AX + MOVQ AX, 8(SP) + MOVQ tm+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__secs_to_tm(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Y__secs_to_zone(tls *TLS, t int64, local int32, isdst uintptr, offset uintptr, oppoff uintptr, zonename uintptr) +TEXT ·Y__secs_to_zone(SB),$56-56 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ t+8(FP), AX + MOVQ AX, 8(SP) + MOVL local+16(FP), AX + MOVL AX, 16(SP) + MOVQ isdst+24(FP), AX + MOVQ AX, 24(SP) + MOVQ offset+32(FP), AX + MOVQ AX, 32(SP) + MOVQ oppoff+40(FP), AX + MOVQ AX, 40(SP) + MOVQ zonename+48(FP), AX + MOVQ AX, 48(SP) + CALL ·X__secs_to_zone(SB) + RET + +// func Y__setxid(tls *TLS, nr int32, id int32, eid int32, sid int32) (r int32) +TEXT ·Y__setxid(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL nr+8(FP), AX + MOVL AX, 8(SP) + MOVL id+12(FP), AX + MOVL AX, 12(SP) + MOVL eid+16(FP), AX + MOVL AX, 16(SP) + MOVL sid+20(FP), AX + MOVL AX, 20(SP) + CALL ·X__setxid(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Y__shgetc(tls *TLS, f uintptr) (r int32) +TEXT ·Y__shgetc(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X__shgetc(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Y__shlim(tls *TLS, f uintptr, lim Toff_t) +TEXT ·Y__shlim(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + MOVQ lim+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__shlim(SB) + RET + +// func Y__shm_mapname(tls *TLS, name uintptr, buf uintptr) (r uintptr) +TEXT ·Y__shm_mapname(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ name+8(FP), AX + MOVQ AX, 8(SP) + MOVQ buf+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__shm_mapname(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Y__sigaction(tls *TLS, sig int32, sa uintptr, old uintptr) (r1 int32) +TEXT ·Y__sigaction(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL sig+8(FP), AX + MOVL AX, 8(SP) + MOVQ sa+16(FP), AX + MOVQ AX, 16(SP) + MOVQ old+24(FP), AX + MOVQ AX, 24(SP) + CALL ·X__sigaction(SB) + MOVL 32(SP), AX + MOVL AX, r1+32(FP) + RET + +// func Y__signbit(tls *TLS, x float64) (r int32) +TEXT ·Y__signbit(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X__signbit(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Y__signbitf(tls *TLS, x float32) (r int32) +TEXT ·Y__signbitf(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL x+8(FP), AX + MOVL AX, 8(SP) + CALL ·X__signbitf(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Y__signbitl(tls *TLS, x float64) (r int32) +TEXT ·Y__signbitl(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X__signbitl(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Y__sigsetjmp_tail(tls *TLS, jb uintptr, ret int32) (r int32) +TEXT ·Y__sigsetjmp_tail(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ jb+8(FP), AX + MOVQ AX, 8(SP) + MOVL ret+16(FP), AX + MOVL AX, 16(SP) + CALL ·X__sigsetjmp_tail(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Y__sin(tls *TLS, x float64, y float64, iy int32) (r1 float64) +TEXT ·Y__sin(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + MOVQ y+16(FP), AX + MOVQ AX, 16(SP) + MOVL iy+24(FP), AX + MOVL AX, 24(SP) + CALL ·X__sin(SB) + MOVQ 32(SP), AX + MOVQ AX, r1+32(FP) + RET + +// func Y__sindf(tls *TLS, x float64) (r1 float32) +TEXT ·Y__sindf(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X__sindf(SB) + MOVL 16(SP), AX + MOVL AX, r1+16(FP) + RET + +// func Y__stack_chk_fail(tls *TLS) +TEXT ·Y__stack_chk_fail(SB),$8-8 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·X__stack_chk_fail(SB) + RET + +// func Y__stack_chk_fail_local(tls *TLS) +TEXT ·Y__stack_chk_fail_local(SB),$8-8 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·X__stack_chk_fail_local(SB) + RET + +// func Y__stdio_close(tls *TLS, f uintptr) (r int32) +TEXT ·Y__stdio_close(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X__stdio_close(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Y__stdio_exit(tls *TLS) +TEXT ·Y__stdio_exit(SB),$8-8 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·X__stdio_exit(SB) + RET + +// func Y__stdio_exit_needed(tls *TLS) +TEXT ·Y__stdio_exit_needed(SB),$8-8 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·X__stdio_exit_needed(SB) + RET + +// func Y__stdio_read(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) +TEXT ·Y__stdio_read(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + MOVQ buf+16(FP), AX + MOVQ AX, 16(SP) + MOVQ len1+24(FP), AX + MOVQ AX, 24(SP) + CALL ·X__stdio_read(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Y__stdio_seek(tls *TLS, f uintptr, off Toff_t, whence int32) (r Toff_t) +TEXT ·Y__stdio_seek(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + MOVQ off+16(FP), AX + MOVQ AX, 16(SP) + MOVL whence+24(FP), AX + MOVL AX, 24(SP) + CALL ·X__stdio_seek(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Y__stdio_write(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) +TEXT ·Y__stdio_write(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + MOVQ buf+16(FP), AX + MOVQ AX, 16(SP) + MOVQ len1+24(FP), AX + MOVQ AX, 24(SP) + CALL ·X__stdio_write(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Y__stdout_write(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) +TEXT ·Y__stdout_write(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + MOVQ buf+16(FP), AX + MOVQ AX, 16(SP) + MOVQ len1+24(FP), AX + MOVQ AX, 24(SP) + CALL ·X__stdout_write(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Y__stpcpy(tls *TLS, d uintptr, s uintptr) (r uintptr) +TEXT ·Y__stpcpy(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ d+8(FP), AX + MOVQ AX, 8(SP) + MOVQ s+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__stpcpy(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Y__stpncpy(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) +TEXT ·Y__stpncpy(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ d+8(FP), AX + MOVQ AX, 8(SP) + MOVQ s+16(FP), AX + MOVQ AX, 16(SP) + MOVQ n+24(FP), AX + MOVQ AX, 24(SP) + CALL ·X__stpncpy(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Y__strcasecmp_l(tls *TLS, l uintptr, r uintptr, loc Tlocale_t) (r1 int32) +TEXT ·Y__strcasecmp_l(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ l+8(FP), AX + MOVQ AX, 8(SP) + MOVQ r+16(FP), AX + MOVQ AX, 16(SP) + MOVQ loc+24(FP), AX + MOVQ AX, 24(SP) + CALL ·X__strcasecmp_l(SB) + MOVL 32(SP), AX + MOVL AX, r1+32(FP) + RET + +// func Y__strchrnul(tls *TLS, s uintptr, c int32) (r uintptr) +TEXT ·Y__strchrnul(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVL c+16(FP), AX + MOVL AX, 16(SP) + CALL ·X__strchrnul(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Y__strcoll_l(tls *TLS, l uintptr, r uintptr, loc Tlocale_t) (r1 int32) +TEXT ·Y__strcoll_l(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ l+8(FP), AX + MOVQ AX, 8(SP) + MOVQ r+16(FP), AX + MOVQ AX, 16(SP) + MOVQ loc+24(FP), AX + MOVQ AX, 24(SP) + CALL ·X__strcoll_l(SB) + MOVL 32(SP), AX + MOVL AX, r1+32(FP) + RET + +// func Y__strerror_l(tls *TLS, e int32, loc Tlocale_t) (r uintptr) +TEXT ·Y__strerror_l(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL e+8(FP), AX + MOVL AX, 8(SP) + MOVQ loc+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__strerror_l(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Y__strftime_fmt_1(tls *TLS, s uintptr, l uintptr, f int32, tm uintptr, loc Tlocale_t, pad int32) (r uintptr) +TEXT ·Y__strftime_fmt_1(SB),$64-64 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ l+16(FP), AX + MOVQ AX, 16(SP) + MOVL f+24(FP), AX + MOVL AX, 24(SP) + MOVQ tm+32(FP), AX + MOVQ AX, 32(SP) + MOVQ loc+40(FP), AX + MOVQ AX, 40(SP) + MOVL pad+48(FP), AX + MOVL AX, 48(SP) + CALL ·X__strftime_fmt_1(SB) + MOVQ 56(SP), AX + MOVQ AX, r+56(FP) + RET + +// func Y__strftime_l(tls *TLS, s uintptr, n Tsize_t, f uintptr, tm uintptr, loc Tlocale_t) (r Tsize_t) +TEXT ·Y__strftime_l(SB),$56-56 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ n+16(FP), AX + MOVQ AX, 16(SP) + MOVQ f+24(FP), AX + MOVQ AX, 24(SP) + MOVQ tm+32(FP), AX + MOVQ AX, 32(SP) + MOVQ loc+40(FP), AX + MOVQ AX, 40(SP) + CALL ·X__strftime_l(SB) + MOVQ 48(SP), AX + MOVQ AX, r+48(FP) + RET + +// func Y__strncasecmp_l(tls *TLS, l uintptr, r uintptr, n Tsize_t, loc Tlocale_t) (r1 int32) +TEXT ·Y__strncasecmp_l(SB),$48-44 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ l+8(FP), AX + MOVQ AX, 8(SP) + MOVQ r+16(FP), AX + MOVQ AX, 16(SP) + MOVQ n+24(FP), AX + MOVQ AX, 24(SP) + MOVQ loc+32(FP), AX + MOVQ AX, 32(SP) + CALL ·X__strncasecmp_l(SB) + MOVL 40(SP), AX + MOVL AX, r1+40(FP) + RET + +// func Y__strtod_l(tls *TLS, s uintptr, p uintptr, l Tlocale_t) (r float64) +TEXT ·Y__strtod_l(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ p+16(FP), AX + MOVQ AX, 16(SP) + MOVQ l+24(FP), AX + MOVQ AX, 24(SP) + CALL ·X__strtod_l(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Y__strtof_l(tls *TLS, s uintptr, p uintptr, l Tlocale_t) (r float32) +TEXT ·Y__strtof_l(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ p+16(FP), AX + MOVQ AX, 16(SP) + MOVQ l+24(FP), AX + MOVQ AX, 24(SP) + CALL ·X__strtof_l(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Y__strtoimax_internal(tls *TLS, s uintptr, p uintptr, base int32) (r Tintmax_t) +TEXT ·Y__strtoimax_internal(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ p+16(FP), AX + MOVQ AX, 16(SP) + MOVL base+24(FP), AX + MOVL AX, 24(SP) + CALL ·X__strtoimax_internal(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Y__strtol_internal(tls *TLS, s uintptr, p uintptr, base int32) (r int64) +TEXT ·Y__strtol_internal(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ p+16(FP), AX + MOVQ AX, 16(SP) + MOVL base+24(FP), AX + MOVL AX, 24(SP) + CALL ·X__strtol_internal(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Y__strtold_l(tls *TLS, s uintptr, p uintptr, l Tlocale_t) (r float64) +TEXT ·Y__strtold_l(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ p+16(FP), AX + MOVQ AX, 16(SP) + MOVQ l+24(FP), AX + MOVQ AX, 24(SP) + CALL ·X__strtold_l(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Y__strtoll_internal(tls *TLS, s uintptr, p uintptr, base int32) (r int64) +TEXT ·Y__strtoll_internal(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ p+16(FP), AX + MOVQ AX, 16(SP) + MOVL base+24(FP), AX + MOVL AX, 24(SP) + CALL ·X__strtoll_internal(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Y__strtoul_internal(tls *TLS, s uintptr, p uintptr, base int32) (r uint64) +TEXT ·Y__strtoul_internal(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ p+16(FP), AX + MOVQ AX, 16(SP) + MOVL base+24(FP), AX + MOVL AX, 24(SP) + CALL ·X__strtoul_internal(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Y__strtoull_internal(tls *TLS, s uintptr, p uintptr, base int32) (r uint64) +TEXT ·Y__strtoull_internal(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ p+16(FP), AX + MOVQ AX, 16(SP) + MOVL base+24(FP), AX + MOVL AX, 24(SP) + CALL ·X__strtoull_internal(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Y__strtoumax_internal(tls *TLS, s uintptr, p uintptr, base int32) (r Tuintmax_t) +TEXT ·Y__strtoumax_internal(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ p+16(FP), AX + MOVQ AX, 16(SP) + MOVL base+24(FP), AX + MOVL AX, 24(SP) + CALL ·X__strtoumax_internal(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Y__strxfrm_l(tls *TLS, dest uintptr, src uintptr, n Tsize_t, loc Tlocale_t) (r Tsize_t) +TEXT ·Y__strxfrm_l(SB),$48-48 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ dest+8(FP), AX + MOVQ AX, 8(SP) + MOVQ src+16(FP), AX + MOVQ AX, 16(SP) + MOVQ n+24(FP), AX + MOVQ AX, 24(SP) + MOVQ loc+32(FP), AX + MOVQ AX, 32(SP) + CALL ·X__strxfrm_l(SB) + MOVQ 40(SP), AX + MOVQ AX, r+40(FP) + RET + +// func Y__sync_synchronize(t *TLS) +TEXT ·Y__sync_synchronize(SB),$8-8 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + CALL ·X__sync_synchronize(SB) + RET + +// func Y__sync_val_compare_and_swapInt16(t *TLS, ptr uintptr, oldval, newval int16) (r int16) +TEXT ·Y__sync_val_compare_and_swapInt16(SB),$32-26 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVW oldval+16(FP), AX + MOVW AX, 16(SP) + MOVW newval+18(FP), AX + MOVW AX, 18(SP) + CALL ·X__sync_val_compare_and_swapInt16(SB) + MOVW 24(SP), AX + MOVW AX, r+24(FP) + RET + +// func Y__sync_val_compare_and_swapInt32(t *TLS, ptr uintptr, oldval, newval int32) (r int32) +TEXT ·Y__sync_val_compare_and_swapInt32(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVL oldval+16(FP), AX + MOVL AX, 16(SP) + MOVL newval+20(FP), AX + MOVL AX, 20(SP) + CALL ·X__sync_val_compare_and_swapInt32(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Y__sync_val_compare_and_swapInt64(t *TLS, ptr uintptr, oldval, newval int64) (r int64) +TEXT ·Y__sync_val_compare_and_swapInt64(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ oldval+16(FP), AX + MOVQ AX, 16(SP) + MOVQ newval+24(FP), AX + MOVQ AX, 24(SP) + CALL ·X__sync_val_compare_and_swapInt64(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Y__sync_val_compare_and_swapInt8(t *TLS, ptr uintptr, oldval, newval int8) (r int8) +TEXT ·Y__sync_val_compare_and_swapInt8(SB),$32-25 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVB oldval+16(FP), AX + MOVB AX, 16(SP) + MOVB newval+17(FP), AX + MOVB AX, 17(SP) + CALL ·X__sync_val_compare_and_swapInt8(SB) + MOVB 24(SP), AX + MOVB AX, r+24(FP) + RET + +// func Y__sync_val_compare_and_swapUint16(t *TLS, ptr uintptr, oldval, newval uint16) (r uint16) +TEXT ·Y__sync_val_compare_and_swapUint16(SB),$32-26 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVW oldval+16(FP), AX + MOVW AX, 16(SP) + MOVW newval+18(FP), AX + MOVW AX, 18(SP) + CALL ·X__sync_val_compare_and_swapUint16(SB) + MOVW 24(SP), AX + MOVW AX, r+24(FP) + RET + +// func Y__sync_val_compare_and_swapUint32(t *TLS, ptr uintptr, oldval, newval uint32) (r uint32) +TEXT ·Y__sync_val_compare_and_swapUint32(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVL oldval+16(FP), AX + MOVL AX, 16(SP) + MOVL newval+20(FP), AX + MOVL AX, 20(SP) + CALL ·X__sync_val_compare_and_swapUint32(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Y__sync_val_compare_and_swapUint64(t *TLS, ptr uintptr, oldval, newval uint64) (r uint64) +TEXT ·Y__sync_val_compare_and_swapUint64(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ oldval+16(FP), AX + MOVQ AX, 16(SP) + MOVQ newval+24(FP), AX + MOVQ AX, 24(SP) + CALL ·X__sync_val_compare_and_swapUint64(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Y__sync_val_compare_and_swapUint8(t *TLS, ptr uintptr, oldval, newval uint8) (r uint8) +TEXT ·Y__sync_val_compare_and_swapUint8(SB),$32-25 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVB oldval+16(FP), AX + MOVB AX, 16(SP) + MOVB newval+17(FP), AX + MOVB AX, 17(SP) + CALL ·X__sync_val_compare_and_swapUint8(SB) + MOVB 24(SP), AX + MOVB AX, r+24(FP) + RET + +// func Y__syscall0(tls *TLS, n long) (_2 long) +TEXT ·Y__syscall0(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ n+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X__syscall0(SB) + MOVQ 16(SP), AX + MOVQ AX, _2+16(FP) + RET + +// func Y__syscall1(tls *TLS, n, a1 long) (_2 long) +TEXT ·Y__syscall1(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ n+8(FP), AX + MOVQ AX, 8(SP) + MOVQ a1+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__syscall1(SB) + MOVQ 24(SP), AX + MOVQ AX, _2+24(FP) + RET + +// func Y__syscall2(tls *TLS, n, a1, a2 long) (_2 long) +TEXT ·Y__syscall2(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ n+8(FP), AX + MOVQ AX, 8(SP) + MOVQ a1+16(FP), AX + MOVQ AX, 16(SP) + MOVQ a2+24(FP), AX + MOVQ AX, 24(SP) + CALL ·X__syscall2(SB) + MOVQ 32(SP), AX + MOVQ AX, _2+32(FP) + RET + +// func Y__syscall3(tls *TLS, n, a1, a2, a3 long) (_2 long) +TEXT ·Y__syscall3(SB),$48-48 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ n+8(FP), AX + MOVQ AX, 8(SP) + MOVQ a1+16(FP), AX + MOVQ AX, 16(SP) + MOVQ a2+24(FP), AX + MOVQ AX, 24(SP) + MOVQ a3+32(FP), AX + MOVQ AX, 32(SP) + CALL ·X__syscall3(SB) + MOVQ 40(SP), AX + MOVQ AX, _2+40(FP) + RET + +// func Y__syscall4(tls *TLS, n, a1, a2, a3, a4 long) (_2 long) +TEXT ·Y__syscall4(SB),$56-56 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ n+8(FP), AX + MOVQ AX, 8(SP) + MOVQ a1+16(FP), AX + MOVQ AX, 16(SP) + MOVQ a2+24(FP), AX + MOVQ AX, 24(SP) + MOVQ a3+32(FP), AX + MOVQ AX, 32(SP) + MOVQ a4+40(FP), AX + MOVQ AX, 40(SP) + CALL ·X__syscall4(SB) + MOVQ 48(SP), AX + MOVQ AX, _2+48(FP) + RET + +// func Y__syscall5(tls *TLS, n, a1, a2, a3, a4, a5 long) (_2 long) +TEXT ·Y__syscall5(SB),$64-64 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ n+8(FP), AX + MOVQ AX, 8(SP) + MOVQ a1+16(FP), AX + MOVQ AX, 16(SP) + MOVQ a2+24(FP), AX + MOVQ AX, 24(SP) + MOVQ a3+32(FP), AX + MOVQ AX, 32(SP) + MOVQ a4+40(FP), AX + MOVQ AX, 40(SP) + MOVQ a5+48(FP), AX + MOVQ AX, 48(SP) + CALL ·X__syscall5(SB) + MOVQ 56(SP), AX + MOVQ AX, _2+56(FP) + RET + +// func Y__syscall6(tls *TLS, n, a1, a2, a3, a4, a5, a6 long) (_2 long) +TEXT ·Y__syscall6(SB),$72-72 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ n+8(FP), AX + MOVQ AX, 8(SP) + MOVQ a1+16(FP), AX + MOVQ AX, 16(SP) + MOVQ a2+24(FP), AX + MOVQ AX, 24(SP) + MOVQ a3+32(FP), AX + MOVQ AX, 32(SP) + MOVQ a4+40(FP), AX + MOVQ AX, 40(SP) + MOVQ a5+48(FP), AX + MOVQ AX, 48(SP) + MOVQ a6+56(FP), AX + MOVQ AX, 56(SP) + CALL ·X__syscall6(SB) + MOVQ 64(SP), AX + MOVQ AX, _2+64(FP) + RET + +// func Y__syscall_ret(tls *TLS, r uint64) (r1 int64) +TEXT ·Y__syscall_ret(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ r+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X__syscall_ret(SB) + MOVQ 16(SP), AX + MOVQ AX, r1+16(FP) + RET + +// func Y__tan(tls *TLS, x float64, y float64, odd int32) (r1 float64) +TEXT ·Y__tan(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + MOVQ y+16(FP), AX + MOVQ AX, 16(SP) + MOVL odd+24(FP), AX + MOVL AX, 24(SP) + CALL ·X__tan(SB) + MOVQ 32(SP), AX + MOVQ AX, r1+32(FP) + RET + +// func Y__tandf(tls *TLS, x float64, odd int32) (r1 float32) +TEXT ·Y__tandf(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + MOVL odd+16(FP), AX + MOVL AX, 16(SP) + CALL ·X__tandf(SB) + MOVL 24(SP), AX + MOVL AX, r1+24(FP) + RET + +// func Y__tm_to_secs(tls *TLS, tm uintptr) (r int64) +TEXT ·Y__tm_to_secs(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ tm+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X__tm_to_secs(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Y__tm_to_tzname(tls *TLS, tm uintptr) (r uintptr) +TEXT ·Y__tm_to_tzname(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ tm+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X__tm_to_tzname(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Y__tolower_l(tls *TLS, c int32, l Tlocale_t) (r int32) +TEXT ·Y__tolower_l(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + MOVQ l+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__tolower_l(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Y__toread(tls *TLS, f uintptr) (r int32) +TEXT ·Y__toread(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X__toread(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Y__toread_needs_stdio_exit(tls *TLS) +TEXT ·Y__toread_needs_stdio_exit(SB),$8-8 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·X__toread_needs_stdio_exit(SB) + RET + +// func Y__toupper_l(tls *TLS, c int32, l Tlocale_t) (r int32) +TEXT ·Y__toupper_l(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + MOVQ l+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__toupper_l(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Y__towctrans_l(tls *TLS, c Twint_t, t Twctrans_t, l Tlocale_t) (r Twint_t) +TEXT ·Y__towctrans_l(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + MOVQ t+16(FP), AX + MOVQ AX, 16(SP) + MOVQ l+24(FP), AX + MOVQ AX, 24(SP) + CALL ·X__towctrans_l(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Y__towlower_l(tls *TLS, c Twint_t, l Tlocale_t) (r Twint_t) +TEXT ·Y__towlower_l(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + MOVQ l+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__towlower_l(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Y__towrite(tls *TLS, f uintptr) (r int32) +TEXT ·Y__towrite(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X__towrite(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Y__towrite_needs_stdio_exit(tls *TLS) +TEXT ·Y__towrite_needs_stdio_exit(SB),$8-8 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·X__towrite_needs_stdio_exit(SB) + RET + +// func Y__towupper_l(tls *TLS, c Twint_t, l Tlocale_t) (r Twint_t) +TEXT ·Y__towupper_l(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + MOVQ l+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__towupper_l(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Y__tre_mem_alloc_impl(tls *TLS, mem Ttre_mem_t, provided int32, provided_block uintptr, zero int32, size Tsize_t) (r uintptr) +TEXT ·Y__tre_mem_alloc_impl(SB),$56-56 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ mem+8(FP), AX + MOVQ AX, 8(SP) + MOVL provided+16(FP), AX + MOVL AX, 16(SP) + MOVQ provided_block+24(FP), AX + MOVQ AX, 24(SP) + MOVL zero+32(FP), AX + MOVL AX, 32(SP) + MOVQ size+40(FP), AX + MOVQ AX, 40(SP) + CALL ·X__tre_mem_alloc_impl(SB) + MOVQ 48(SP), AX + MOVQ AX, r+48(FP) + RET + +// func Y__tre_mem_destroy(tls *TLS, mem Ttre_mem_t) +TEXT ·Y__tre_mem_destroy(SB),$16-16 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ mem+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X__tre_mem_destroy(SB) + RET + +// func Y__tre_mem_new_impl(tls *TLS, provided int32, provided_block uintptr) (r Ttre_mem_t) +TEXT ·Y__tre_mem_new_impl(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL provided+8(FP), AX + MOVL AX, 8(SP) + MOVQ provided_block+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__tre_mem_new_impl(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Y__tsearch_balance(tls *TLS, p uintptr) (r int32) +TEXT ·Y__tsearch_balance(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ p+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X__tsearch_balance(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Y__uflow(tls *TLS, f uintptr) (r int32) +TEXT ·Y__uflow(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X__uflow(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Y__unlist_locked_file(tls *TLS, f uintptr) +TEXT ·Y__unlist_locked_file(SB),$16-16 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X__unlist_locked_file(SB) + RET + +// func Y__unlockfile(tls *TLS, file uintptr) +TEXT ·Y__unlockfile(SB),$16-16 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ file+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X__unlockfile(SB) + RET + +// func Y__uselocale(tls *TLS, new1 Tlocale_t) (r Tlocale_t) +TEXT ·Y__uselocale(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ new1+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X__uselocale(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Y__vm_wait(tls *TLS) +TEXT ·Y__vm_wait(SB),$8-8 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·X__vm_wait(SB) + RET + +// func Y__wcscoll_l(tls *TLS, l uintptr, r uintptr, locale Tlocale_t) (r1 int32) +TEXT ·Y__wcscoll_l(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ l+8(FP), AX + MOVQ AX, 8(SP) + MOVQ r+16(FP), AX + MOVQ AX, 16(SP) + MOVQ locale+24(FP), AX + MOVQ AX, 24(SP) + CALL ·X__wcscoll_l(SB) + MOVL 32(SP), AX + MOVL AX, r1+32(FP) + RET + +// func Y__wcsftime_l(tls *TLS, s uintptr, n Tsize_t, f uintptr, tm uintptr, loc Tlocale_t) (r Tsize_t) +TEXT ·Y__wcsftime_l(SB),$56-56 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ n+16(FP), AX + MOVQ AX, 16(SP) + MOVQ f+24(FP), AX + MOVQ AX, 24(SP) + MOVQ tm+32(FP), AX + MOVQ AX, 32(SP) + MOVQ loc+40(FP), AX + MOVQ AX, 40(SP) + CALL ·X__wcsftime_l(SB) + MOVQ 48(SP), AX + MOVQ AX, r+48(FP) + RET + +// func Y__wcsxfrm_l(tls *TLS, dest uintptr, src uintptr, n Tsize_t, loc Tlocale_t) (r Tsize_t) +TEXT ·Y__wcsxfrm_l(SB),$48-48 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ dest+8(FP), AX + MOVQ AX, 8(SP) + MOVQ src+16(FP), AX + MOVQ AX, 16(SP) + MOVQ n+24(FP), AX + MOVQ AX, 24(SP) + MOVQ loc+32(FP), AX + MOVQ AX, 32(SP) + CALL ·X__wcsxfrm_l(SB) + MOVQ 40(SP), AX + MOVQ AX, r+40(FP) + RET + +// func Y__wctrans_l(tls *TLS, s uintptr, l Tlocale_t) (r Twctrans_t) +TEXT ·Y__wctrans_l(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ l+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__wctrans_l(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Y__wctype_l(tls *TLS, s uintptr, l Tlocale_t) (r Twctype_t) +TEXT ·Y__wctype_l(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ l+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__wctype_l(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Y__xmknod(tls *TLS, ver int32, path uintptr, mode Tmode_t, dev uintptr) (r int32) +TEXT ·Y__xmknod(SB),$48-44 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL ver+8(FP), AX + MOVL AX, 8(SP) + MOVQ path+16(FP), AX + MOVQ AX, 16(SP) + MOVL mode+24(FP), AX + MOVL AX, 24(SP) + MOVQ dev+32(FP), AX + MOVQ AX, 32(SP) + CALL ·X__xmknod(SB) + MOVL 40(SP), AX + MOVL AX, r+40(FP) + RET + +// func Y__xmknodat(tls *TLS, ver int32, fd int32, path uintptr, mode Tmode_t, dev uintptr) (r int32) +TEXT ·Y__xmknodat(SB),$48-44 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL ver+8(FP), AX + MOVL AX, 8(SP) + MOVL fd+12(FP), AX + MOVL AX, 12(SP) + MOVQ path+16(FP), AX + MOVQ AX, 16(SP) + MOVL mode+24(FP), AX + MOVL AX, 24(SP) + MOVQ dev+32(FP), AX + MOVQ AX, 32(SP) + CALL ·X__xmknodat(SB) + MOVL 40(SP), AX + MOVL AX, r+40(FP) + RET + +// func Y__xpg_basename(tls *TLS, s uintptr) (r uintptr) +TEXT ·Y__xpg_basename(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X__xpg_basename(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Y__xpg_strerror_r(tls *TLS, err int32, buf uintptr, buflen Tsize_t) (r int32) +TEXT ·Y__xpg_strerror_r(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL err+8(FP), AX + MOVL AX, 8(SP) + MOVQ buf+16(FP), AX + MOVQ AX, 16(SP) + MOVQ buflen+24(FP), AX + MOVQ AX, 24(SP) + CALL ·X__xpg_strerror_r(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Y__xstat(tls *TLS, ver int32, path uintptr, buf uintptr) (r int32) +TEXT ·Y__xstat(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL ver+8(FP), AX + MOVL AX, 8(SP) + MOVQ path+16(FP), AX + MOVQ AX, 16(SP) + MOVQ buf+24(FP), AX + MOVQ AX, 24(SP) + CALL ·X__xstat(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Y__year_to_secs(tls *TLS, year int64, is_leap uintptr) (r int64) +TEXT ·Y__year_to_secs(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ year+8(FP), AX + MOVQ AX, 8(SP) + MOVQ is_leap+16(FP), AX + MOVQ AX, 16(SP) + CALL ·X__year_to_secs(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Y_exit(tls *TLS, status int32) +TEXT ·Y_exit(SB),$16-12 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL status+8(FP), AX + MOVL AX, 8(SP) + CALL ·X_exit(SB) + RET + +// func Y_flushlbf(tls *TLS) +TEXT ·Y_flushlbf(SB),$8-8 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·X_flushlbf(SB) + RET + +// func Y_longjmp(t *TLS, env uintptr, val int32) +TEXT ·Y_longjmp(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ env+8(FP), AX + MOVQ AX, 8(SP) + MOVL val+16(FP), AX + MOVL AX, 16(SP) + CALL ·X_longjmp(SB) + RET + +// func Y_obstack_begin(t *TLS, obstack uintptr, size, alignment int32, chunkfun, freefun uintptr) (_4 int32) +TEXT ·Y_obstack_begin(SB),$48-44 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ obstack+8(FP), AX + MOVQ AX, 8(SP) + MOVL size+16(FP), AX + MOVL AX, 16(SP) + MOVL alignment+20(FP), AX + MOVL AX, 20(SP) + MOVQ chunkfun+24(FP), AX + MOVQ AX, 24(SP) + MOVQ freefun+32(FP), AX + MOVQ AX, 32(SP) + CALL ·X_obstack_begin(SB) + MOVL 40(SP), AX + MOVL AX, _4+40(FP) + RET + +// func Y_obstack_newchunk(t *TLS, obstack uintptr, length int32) (_3 int32) +TEXT ·Y_obstack_newchunk(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ obstack+8(FP), AX + MOVQ AX, 8(SP) + MOVL length+16(FP), AX + MOVL AX, 16(SP) + CALL ·X_obstack_newchunk(SB) + MOVL 24(SP), AX + MOVL AX, _3+24(FP) + RET + +// func Y_pthread_cleanup_pop(tls *TLS, _ uintptr, run int32) +TEXT ·Y_pthread_cleanup_pop(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ _+8(FP), AX + MOVQ AX, 8(SP) + MOVL run+16(FP), AX + MOVL AX, 16(SP) + CALL ·X_pthread_cleanup_pop(SB) + RET + +// func Y_pthread_cleanup_push(tls *TLS, _, f, x uintptr) +TEXT ·Y_pthread_cleanup_push(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ _+8(FP), AX + MOVQ AX, 8(SP) + MOVQ f+16(FP), AX + MOVQ AX, 16(SP) + MOVQ x+24(FP), AX + MOVQ AX, 24(SP) + CALL ·X_pthread_cleanup_push(SB) + RET + +// func Y_setjmp(t *TLS, env uintptr) (_2 int32) +TEXT ·Y_setjmp(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ env+8(FP), AX + MOVQ AX, 8(SP) + CALL ·X_setjmp(SB) + MOVL 16(SP), AX + MOVL AX, _2+16(FP) + RET + +// func Ya64l(tls *TLS, s uintptr) (r int64) +TEXT ·Ya64l(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xa64l(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Yabort(tls *TLS) +TEXT ·Yabort(SB),$8-8 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·Xabort(SB) + RET + +// func Yabs(tls *TLS, a int32) (r int32) +TEXT ·Yabs(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL a+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xabs(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yaccept(tls *TLS, fd int32, addr uintptr, len1 uintptr) (r1 int32) +TEXT ·Yaccept(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVQ addr+16(FP), AX + MOVQ AX, 16(SP) + MOVQ len1+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xaccept(SB) + MOVL 32(SP), AX + MOVL AX, r1+32(FP) + RET + +// func Yaccept4(tls *TLS, fd int32, addr uintptr, len1 uintptr, flg int32) (r1 int32) +TEXT ·Yaccept4(SB),$48-44 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVQ addr+16(FP), AX + MOVQ AX, 16(SP) + MOVQ len1+24(FP), AX + MOVQ AX, 24(SP) + MOVL flg+32(FP), AX + MOVL AX, 32(SP) + CALL ·Xaccept4(SB) + MOVL 40(SP), AX + MOVL AX, r1+40(FP) + RET + +// func Yaccess(tls *TLS, filename uintptr, amode int32) (r int32) +TEXT ·Yaccess(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ filename+8(FP), AX + MOVQ AX, 8(SP) + MOVL amode+16(FP), AX + MOVL AX, 16(SP) + CALL ·Xaccess(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yacct(tls *TLS, filename uintptr) (r int32) +TEXT ·Yacct(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ filename+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xacct(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yacos(tls *TLS, x float64) (r float64) +TEXT ·Yacos(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xacos(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Yacosf(tls *TLS, x float32) (r float32) +TEXT ·Yacosf(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL x+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xacosf(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yacosh(tls *TLS, x float64) (r float64) +TEXT ·Yacosh(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xacosh(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Yacoshf(tls *TLS, x float32) (r float32) +TEXT ·Yacoshf(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL x+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xacoshf(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yacoshl(tls *TLS, x float64) (r float64) +TEXT ·Yacoshl(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xacoshl(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Yacosl(tls *TLS, x float64) (r float64) +TEXT ·Yacosl(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xacosl(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Yaddmntent(tls *TLS, f uintptr, mnt uintptr) (r int32) +TEXT ·Yaddmntent(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + MOVQ mnt+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xaddmntent(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yadjtime(tls *TLS, in uintptr, out uintptr) (r int32) +TEXT ·Yadjtime(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ in+8(FP), AX + MOVQ AX, 8(SP) + MOVQ out+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xadjtime(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yadjtimex(tls *TLS, tx uintptr) (r int32) +TEXT ·Yadjtimex(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ tx+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xadjtimex(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yalarm(tls *TLS, seconds uint32) (r uint32) +TEXT ·Yalarm(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL seconds+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xalarm(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yalloca(tls *TLS, size Tsize_t) (_2 uintptr) +TEXT ·Yalloca(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ size+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xalloca(SB) + MOVQ 16(SP), AX + MOVQ AX, _2+16(FP) + RET + +// func Yalphasort(tls *TLS, a uintptr, b uintptr) (r int32) +TEXT ·Yalphasort(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ a+8(FP), AX + MOVQ AX, 8(SP) + MOVQ b+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xalphasort(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yarch_prctl(tls *TLS, code int32, addr uint64) (r int32) +TEXT ·Yarch_prctl(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL code+8(FP), AX + MOVL AX, 8(SP) + MOVQ addr+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xarch_prctl(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yasctime(tls *TLS, tm uintptr) (r uintptr) +TEXT ·Yasctime(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ tm+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xasctime(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Yasctime_r(tls *TLS, tm uintptr, buf uintptr) (r uintptr) +TEXT ·Yasctime_r(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ tm+8(FP), AX + MOVQ AX, 8(SP) + MOVQ buf+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xasctime_r(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Yasin(tls *TLS, x float64) (r1 float64) +TEXT ·Yasin(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xasin(SB) + MOVQ 16(SP), AX + MOVQ AX, r1+16(FP) + RET + +// func Yasinf(tls *TLS, x float32) (r float32) +TEXT ·Yasinf(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL x+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xasinf(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yasinh(tls *TLS, x3 float64) (r float64) +TEXT ·Yasinh(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x3+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xasinh(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Yasinhf(tls *TLS, x3 float32) (r float32) +TEXT ·Yasinhf(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL x3+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xasinhf(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yasinhl(tls *TLS, x float64) (r float64) +TEXT ·Yasinhl(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xasinhl(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Yasinl(tls *TLS, x float64) (r float64) +TEXT ·Yasinl(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xasinl(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Yasprintf(tls *TLS, s uintptr, fmt uintptr, va uintptr) (r int32) +TEXT ·Yasprintf(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ fmt+16(FP), AX + MOVQ AX, 16(SP) + MOVQ va+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xasprintf(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Yat_quick_exit(tls *TLS, __ccgo_fp_func uintptr) (r1 int32) +TEXT ·Yat_quick_exit(SB),$32-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX // alloc all ABI trampolines + MOVQ AX, 0(SP) + MOVQ $16, 8(SP) // 16*(number of func ptrs in signature) + CALL modernc·org∕libc·TLSAlloc(SB) + MOVQ 16(SP), AX + MOVQ AX, -8(BP) // Trampolines[0] + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ -8(BP), AX + ADDQ $0, AX // 16*(0-based ordinal number of the func ptr in signature) + MOVQ AX, 8(SP) + MOVQ __ccgo_fp_func+8(FP), AX // ABI0 code ptr + MOVQ AX, 16(SP) + CALL ·__ccgo_abiInternal_at_quick_exit_0(SB) // Create the closure for calling __ccgo_fp_func + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ -8(BP), AX // Trampolines[0] + ADDQ $0, AX // 16*(0-based ordinal number of the func ptr in signature) + MOVQ AX, 8(SP) + CALL ·Xat_quick_exit(SB) + MOVL 16(SP), AX + MOVL AX, r1+16(FP) + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ $0, 8(SP) + CALL modernc·org∕libc·TLSFree(SB) + RET + +TEXT ·__ccgo_abi0_at_quick_exit_0(SB),$16-16 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ _0+0(FP), AX + MOVQ AX, 0(SP) + MOVQ __ccgo_fp+8(FP), AX + CALL *AX // Call the ABI0 code ptr + RET + +// func Yatan(tls *TLS, x3 float64) (r float64) +TEXT ·Yatan(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x3+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xatan(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Yatan2(tls *TLS, y float64, x float64) (r float64) +TEXT ·Yatan2(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ y+8(FP), AX + MOVQ AX, 8(SP) + MOVQ x+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xatan2(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Yatan2f(tls *TLS, y float32, x float32) (r float32) +TEXT ·Yatan2f(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL y+8(FP), AX + MOVL AX, 8(SP) + MOVL x+12(FP), AX + MOVL AX, 12(SP) + CALL ·Xatan2f(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yatan2l(tls *TLS, y float64, x float64) (r float64) +TEXT ·Yatan2l(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ y+8(FP), AX + MOVQ AX, 8(SP) + MOVQ x+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xatan2l(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Yatanf(tls *TLS, x3 float32) (r float32) +TEXT ·Yatanf(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL x3+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xatanf(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yatanh(tls *TLS, x3 float64) (r float64) +TEXT ·Yatanh(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x3+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xatanh(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Yatanhf(tls *TLS, x3 float32) (r float32) +TEXT ·Yatanhf(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL x3+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xatanhf(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yatanhl(tls *TLS, x float64) (r float64) +TEXT ·Yatanhl(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xatanhl(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Yatanl(tls *TLS, x float64) (r float64) +TEXT ·Yatanl(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xatanl(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Yatexit(tls *TLS, func_ uintptr) (r int32) +TEXT ·Yatexit(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ func_+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xatexit(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yatof(tls *TLS, s uintptr) (r float64) +TEXT ·Yatof(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xatof(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Yatoi(tls *TLS, s uintptr) (r int32) +TEXT ·Yatoi(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xatoi(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yatol(tls *TLS, s uintptr) (r int64) +TEXT ·Yatol(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xatol(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Yatoll(tls *TLS, s uintptr) (r int64) +TEXT ·Yatoll(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xatoll(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ybacktrace(t *TLS, buf uintptr, size int32) (_3 int32) +TEXT ·Ybacktrace(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ buf+8(FP), AX + MOVQ AX, 8(SP) + MOVL size+16(FP), AX + MOVL AX, 16(SP) + CALL ·Xbacktrace(SB) + MOVL 24(SP), AX + MOVL AX, _3+24(FP) + RET + +// func Ybacktrace_symbols_fd(t *TLS, buffer uintptr, size, fd int32) +TEXT ·Ybacktrace_symbols_fd(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ buffer+8(FP), AX + MOVQ AX, 8(SP) + MOVL size+16(FP), AX + MOVL AX, 16(SP) + MOVL fd+20(FP), AX + MOVL AX, 20(SP) + CALL ·Xbacktrace_symbols_fd(SB) + RET + +// func Ybasename(tls *TLS, s uintptr) (r uintptr) +TEXT ·Ybasename(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xbasename(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ybcmp(tls *TLS, s1 uintptr, s2 uintptr, n Tsize_t) (r int32) +TEXT ·Ybcmp(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s1+8(FP), AX + MOVQ AX, 8(SP) + MOVQ s2+16(FP), AX + MOVQ AX, 16(SP) + MOVQ n+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xbcmp(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Ybcopy(tls *TLS, s1 uintptr, s2 uintptr, n Tsize_t) +TEXT ·Ybcopy(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s1+8(FP), AX + MOVQ AX, 8(SP) + MOVQ s2+16(FP), AX + MOVQ AX, 16(SP) + MOVQ n+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xbcopy(SB) + RET + +// func Ybind(tls *TLS, fd int32, addr uintptr, len1 Tsocklen_t) (r1 int32) +TEXT ·Ybind(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVQ addr+16(FP), AX + MOVQ AX, 16(SP) + MOVL len1+24(FP), AX + MOVL AX, 24(SP) + CALL ·Xbind(SB) + MOVL 32(SP), AX + MOVL AX, r1+32(FP) + RET + +// func Ybind_textdomain_codeset(tls *TLS, domainname uintptr, codeset uintptr) (r uintptr) +TEXT ·Ybind_textdomain_codeset(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ domainname+8(FP), AX + MOVQ AX, 8(SP) + MOVQ codeset+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xbind_textdomain_codeset(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Ybindtextdomain(tls *TLS, domainname uintptr, dirname uintptr) (r uintptr) +TEXT ·Ybindtextdomain(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ domainname+8(FP), AX + MOVQ AX, 8(SP) + MOVQ dirname+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xbindtextdomain(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Ybrk(tls *TLS, end uintptr) (r int32) +TEXT ·Ybrk(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ end+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xbrk(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ybsearch(tls *TLS, key uintptr, base uintptr, nel Tsize_t, width Tsize_t, __ccgo_fp_cmp uintptr) (r uintptr) +TEXT ·Ybsearch(SB),$64-56 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX // alloc all ABI trampolines + MOVQ AX, 0(SP) + MOVQ $16, 8(SP) // 16*(number of func ptrs in signature) + CALL modernc·org∕libc·TLSAlloc(SB) + MOVQ 16(SP), AX + MOVQ AX, -8(BP) // Trampolines[0] + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ -8(BP), AX + ADDQ $0, AX // 16*(0-based ordinal number of the func ptr in signature) + MOVQ AX, 8(SP) + MOVQ __ccgo_fp_cmp+40(FP), AX // ABI0 code ptr + MOVQ AX, 16(SP) + CALL ·__ccgo_abiInternal_bsearch_4(SB) // Create the closure for calling __ccgo_fp_cmp + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ key+8(FP), AX + MOVQ AX, 8(SP) + MOVQ base+16(FP), AX + MOVQ AX, 16(SP) + MOVQ nel+24(FP), AX + MOVQ AX, 24(SP) + MOVQ width+32(FP), AX + MOVQ AX, 32(SP) + MOVQ -8(BP), AX // Trampolines[0] + ADDQ $0, AX // 16*(0-based ordinal number of the func ptr in signature) + MOVQ AX, 40(SP) + CALL ·Xbsearch(SB) + MOVQ 48(SP), AX + MOVQ AX, r+48(FP) + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ $0, 8(SP) + CALL modernc·org∕libc·TLSFree(SB) + RET + +TEXT ·__ccgo_abi0_bsearch_4(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ _0+0(FP), AX + MOVQ AX, 0(SP) + MOVQ _1+8(FP), AX + MOVQ AX, 8(SP) + MOVQ _2+16(FP), AX + MOVQ AX, 16(SP) + MOVQ __ccgo_fp+24(FP), AX + CALL *AX // Call the ABI0 code ptr + MOVL 24(SP), AX + MOVL AX, _3+32(FP) + RET + +// func Ybtowc(tls *TLS, c int32) (r Twint_t) +TEXT ·Ybtowc(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xbtowc(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ybzero(tls *TLS, s uintptr, n Tsize_t) +TEXT ·Ybzero(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ n+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xbzero(SB) + RET + +// func Yc16rtomb(tls *TLS, s uintptr, c16 Tchar16_t, ps uintptr) (r Tsize_t) +TEXT ·Yc16rtomb(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVW c16+16(FP), AX + MOVW AX, 16(SP) + MOVQ ps+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xc16rtomb(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Yc32rtomb(tls *TLS, s uintptr, c32 Tchar32_t, ps uintptr) (r Tsize_t) +TEXT ·Yc32rtomb(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVL c32+16(FP), AX + MOVL AX, 16(SP) + MOVQ ps+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xc32rtomb(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Ycabs(tls *TLS, z complex128) (r float64) +TEXT ·Ycabs(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ z_real+8(FP), AX + MOVQ AX, 8(SP) + MOVQ z_imag+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xcabs(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Ycabsf(tls *TLS, z complex64) (r float32) +TEXT ·Ycabsf(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL z_real+8(FP), AX + MOVL AX, 8(SP) + MOVL z_imag+12(FP), AX + MOVL AX, 12(SP) + CALL ·Xcabsf(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ycabsl(tls *TLS, z complex128) (r float64) +TEXT ·Ycabsl(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ z_real+8(FP), AX + MOVQ AX, 8(SP) + MOVQ z_imag+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xcabsl(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Ycacos(tls *TLS, z complex128) (r complex128) +TEXT ·Ycacos(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ z_real+8(FP), AX + MOVQ AX, 8(SP) + MOVQ z_imag+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xcacos(SB) + MOVQ 24(SP), AX + MOVQ AX, r_real+24(FP) + MOVQ 32(SP), AX + MOVQ AX, r_imag+32(FP) + RET + +// func Ycacosf(tls *TLS, z complex64) (r complex64) +TEXT ·Ycacosf(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL z_real+8(FP), AX + MOVL AX, 8(SP) + MOVL z_imag+12(FP), AX + MOVL AX, 12(SP) + CALL ·Xcacosf(SB) + MOVL 16(SP), AX + MOVL AX, r_real+16(FP) + MOVL 20(SP), AX + MOVL AX, r_imag+20(FP) + RET + +// func Ycacosh(tls *TLS, z complex128) (r complex128) +TEXT ·Ycacosh(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ z_real+8(FP), AX + MOVQ AX, 8(SP) + MOVQ z_imag+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xcacosh(SB) + MOVQ 24(SP), AX + MOVQ AX, r_real+24(FP) + MOVQ 32(SP), AX + MOVQ AX, r_imag+32(FP) + RET + +// func Ycacoshf(tls *TLS, z complex64) (r complex64) +TEXT ·Ycacoshf(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL z_real+8(FP), AX + MOVL AX, 8(SP) + MOVL z_imag+12(FP), AX + MOVL AX, 12(SP) + CALL ·Xcacoshf(SB) + MOVL 16(SP), AX + MOVL AX, r_real+16(FP) + MOVL 20(SP), AX + MOVL AX, r_imag+20(FP) + RET + +// func Ycacoshl(tls *TLS, z complex128) (r complex128) +TEXT ·Ycacoshl(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ z_real+8(FP), AX + MOVQ AX, 8(SP) + MOVQ z_imag+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xcacoshl(SB) + MOVQ 24(SP), AX + MOVQ AX, r_real+24(FP) + MOVQ 32(SP), AX + MOVQ AX, r_imag+32(FP) + RET + +// func Ycacosl(tls *TLS, z complex128) (r complex128) +TEXT ·Ycacosl(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ z_real+8(FP), AX + MOVQ AX, 8(SP) + MOVQ z_imag+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xcacosl(SB) + MOVQ 24(SP), AX + MOVQ AX, r_real+24(FP) + MOVQ 32(SP), AX + MOVQ AX, r_imag+32(FP) + RET + +// func Ycalloc(tls *TLS, m Tsize_t, n Tsize_t) (r uintptr) +TEXT ·Ycalloc(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ m+8(FP), AX + MOVQ AX, 8(SP) + MOVQ n+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xcalloc(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Ycapget(tls *TLS, a uintptr, b uintptr) (r int32) +TEXT ·Ycapget(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ a+8(FP), AX + MOVQ AX, 8(SP) + MOVQ b+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xcapget(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ycapset(tls *TLS, a uintptr, b uintptr) (r int32) +TEXT ·Ycapset(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ a+8(FP), AX + MOVQ AX, 8(SP) + MOVQ b+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xcapset(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ycarg(tls *TLS, z complex128) (r float64) +TEXT ·Ycarg(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ z_real+8(FP), AX + MOVQ AX, 8(SP) + MOVQ z_imag+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xcarg(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Ycargf(tls *TLS, z complex64) (r float32) +TEXT ·Ycargf(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL z_real+8(FP), AX + MOVL AX, 8(SP) + MOVL z_imag+12(FP), AX + MOVL AX, 12(SP) + CALL ·Xcargf(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ycargl(tls *TLS, z complex128) (r float64) +TEXT ·Ycargl(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ z_real+8(FP), AX + MOVQ AX, 8(SP) + MOVQ z_imag+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xcargl(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Ycasin(tls *TLS, z complex128) (r1 complex128) +TEXT ·Ycasin(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ z_real+8(FP), AX + MOVQ AX, 8(SP) + MOVQ z_imag+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xcasin(SB) + MOVQ 24(SP), AX + MOVQ AX, r1_real+24(FP) + MOVQ 32(SP), AX + MOVQ AX, r1_imag+32(FP) + RET + +// func Ycasinf(tls *TLS, z complex64) (r1 complex64) +TEXT ·Ycasinf(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL z_real+8(FP), AX + MOVL AX, 8(SP) + MOVL z_imag+12(FP), AX + MOVL AX, 12(SP) + CALL ·Xcasinf(SB) + MOVL 16(SP), AX + MOVL AX, r1_real+16(FP) + MOVL 20(SP), AX + MOVL AX, r1_imag+20(FP) + RET + +// func Ycasinh(tls *TLS, z complex128) (r complex128) +TEXT ·Ycasinh(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ z_real+8(FP), AX + MOVQ AX, 8(SP) + MOVQ z_imag+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xcasinh(SB) + MOVQ 24(SP), AX + MOVQ AX, r_real+24(FP) + MOVQ 32(SP), AX + MOVQ AX, r_imag+32(FP) + RET + +// func Ycasinhf(tls *TLS, z complex64) (r complex64) +TEXT ·Ycasinhf(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL z_real+8(FP), AX + MOVL AX, 8(SP) + MOVL z_imag+12(FP), AX + MOVL AX, 12(SP) + CALL ·Xcasinhf(SB) + MOVL 16(SP), AX + MOVL AX, r_real+16(FP) + MOVL 20(SP), AX + MOVL AX, r_imag+20(FP) + RET + +// func Ycasinhl(tls *TLS, z complex128) (r complex128) +TEXT ·Ycasinhl(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ z_real+8(FP), AX + MOVQ AX, 8(SP) + MOVQ z_imag+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xcasinhl(SB) + MOVQ 24(SP), AX + MOVQ AX, r_real+24(FP) + MOVQ 32(SP), AX + MOVQ AX, r_imag+32(FP) + RET + +// func Ycasinl(tls *TLS, z complex128) (r complex128) +TEXT ·Ycasinl(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ z_real+8(FP), AX + MOVQ AX, 8(SP) + MOVQ z_imag+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xcasinl(SB) + MOVQ 24(SP), AX + MOVQ AX, r_real+24(FP) + MOVQ 32(SP), AX + MOVQ AX, r_imag+32(FP) + RET + +// func Ycatan(tls *TLS, z complex128) (r complex128) +TEXT ·Ycatan(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ z_real+8(FP), AX + MOVQ AX, 8(SP) + MOVQ z_imag+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xcatan(SB) + MOVQ 24(SP), AX + MOVQ AX, r_real+24(FP) + MOVQ 32(SP), AX + MOVQ AX, r_imag+32(FP) + RET + +// func Ycatanf(tls *TLS, z complex64) (r complex64) +TEXT ·Ycatanf(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL z_real+8(FP), AX + MOVL AX, 8(SP) + MOVL z_imag+12(FP), AX + MOVL AX, 12(SP) + CALL ·Xcatanf(SB) + MOVL 16(SP), AX + MOVL AX, r_real+16(FP) + MOVL 20(SP), AX + MOVL AX, r_imag+20(FP) + RET + +// func Ycatanh(tls *TLS, z complex128) (r complex128) +TEXT ·Ycatanh(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ z_real+8(FP), AX + MOVQ AX, 8(SP) + MOVQ z_imag+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xcatanh(SB) + MOVQ 24(SP), AX + MOVQ AX, r_real+24(FP) + MOVQ 32(SP), AX + MOVQ AX, r_imag+32(FP) + RET + +// func Ycatanhf(tls *TLS, z complex64) (r complex64) +TEXT ·Ycatanhf(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL z_real+8(FP), AX + MOVL AX, 8(SP) + MOVL z_imag+12(FP), AX + MOVL AX, 12(SP) + CALL ·Xcatanhf(SB) + MOVL 16(SP), AX + MOVL AX, r_real+16(FP) + MOVL 20(SP), AX + MOVL AX, r_imag+20(FP) + RET + +// func Ycatanhl(tls *TLS, z complex128) (r complex128) +TEXT ·Ycatanhl(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ z_real+8(FP), AX + MOVQ AX, 8(SP) + MOVQ z_imag+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xcatanhl(SB) + MOVQ 24(SP), AX + MOVQ AX, r_real+24(FP) + MOVQ 32(SP), AX + MOVQ AX, r_imag+32(FP) + RET + +// func Ycatanl(tls *TLS, z complex128) (r complex128) +TEXT ·Ycatanl(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ z_real+8(FP), AX + MOVQ AX, 8(SP) + MOVQ z_imag+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xcatanl(SB) + MOVQ 24(SP), AX + MOVQ AX, r_real+24(FP) + MOVQ 32(SP), AX + MOVQ AX, r_imag+32(FP) + RET + +// func Ycatclose(tls *TLS, catd Tnl_catd) (r int32) +TEXT ·Ycatclose(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ catd+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xcatclose(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ycatgets(tls *TLS, catd Tnl_catd, set_id int32, msg_id int32, s uintptr) (r uintptr) +TEXT ·Ycatgets(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ catd+8(FP), AX + MOVQ AX, 8(SP) + MOVL set_id+16(FP), AX + MOVL AX, 16(SP) + MOVL msg_id+20(FP), AX + MOVL AX, 20(SP) + MOVQ s+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xcatgets(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Ycatopen(tls *TLS, name uintptr, oflag int32) (r Tnl_catd) +TEXT ·Ycatopen(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ name+8(FP), AX + MOVQ AX, 8(SP) + MOVL oflag+16(FP), AX + MOVL AX, 16(SP) + CALL ·Xcatopen(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Ycbrt(tls *TLS, x float64) (r1 float64) +TEXT ·Ycbrt(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xcbrt(SB) + MOVQ 16(SP), AX + MOVQ AX, r1+16(FP) + RET + +// func Ycbrtf(tls *TLS, x float32) (r1 float32) +TEXT ·Ycbrtf(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL x+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xcbrtf(SB) + MOVL 16(SP), AX + MOVL AX, r1+16(FP) + RET + +// func Ycbrtl(tls *TLS, x float64) (r float64) +TEXT ·Ycbrtl(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xcbrtl(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Yccos(tls *TLS, z complex128) (r complex128) +TEXT ·Yccos(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ z_real+8(FP), AX + MOVQ AX, 8(SP) + MOVQ z_imag+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xccos(SB) + MOVQ 24(SP), AX + MOVQ AX, r_real+24(FP) + MOVQ 32(SP), AX + MOVQ AX, r_imag+32(FP) + RET + +// func Yccosf(tls *TLS, z complex64) (r complex64) +TEXT ·Yccosf(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL z_real+8(FP), AX + MOVL AX, 8(SP) + MOVL z_imag+12(FP), AX + MOVL AX, 12(SP) + CALL ·Xccosf(SB) + MOVL 16(SP), AX + MOVL AX, r_real+16(FP) + MOVL 20(SP), AX + MOVL AX, r_imag+20(FP) + RET + +// func Yccosh(tls *TLS, z complex128) (r complex128) +TEXT ·Yccosh(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ z_real+8(FP), AX + MOVQ AX, 8(SP) + MOVQ z_imag+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xccosh(SB) + MOVQ 24(SP), AX + MOVQ AX, r_real+24(FP) + MOVQ 32(SP), AX + MOVQ AX, r_imag+32(FP) + RET + +// func Yccoshf(tls *TLS, z complex64) (r complex64) +TEXT ·Yccoshf(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL z_real+8(FP), AX + MOVL AX, 8(SP) + MOVL z_imag+12(FP), AX + MOVL AX, 12(SP) + CALL ·Xccoshf(SB) + MOVL 16(SP), AX + MOVL AX, r_real+16(FP) + MOVL 20(SP), AX + MOVL AX, r_imag+20(FP) + RET + +// func Yccoshl(tls *TLS, z complex128) (r complex128) +TEXT ·Yccoshl(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ z_real+8(FP), AX + MOVQ AX, 8(SP) + MOVQ z_imag+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xccoshl(SB) + MOVQ 24(SP), AX + MOVQ AX, r_real+24(FP) + MOVQ 32(SP), AX + MOVQ AX, r_imag+32(FP) + RET + +// func Yccosl(tls *TLS, z complex128) (r complex128) +TEXT ·Yccosl(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ z_real+8(FP), AX + MOVQ AX, 8(SP) + MOVQ z_imag+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xccosl(SB) + MOVQ 24(SP), AX + MOVQ AX, r_real+24(FP) + MOVQ 32(SP), AX + MOVQ AX, r_imag+32(FP) + RET + +// func Yceil(tls *TLS, x3 float64) (r float64) +TEXT ·Yceil(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x3+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xceil(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Yceilf(tls *TLS, x3 float32) (r float32) +TEXT ·Yceilf(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL x3+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xceilf(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yceill(tls *TLS, x float64) (r float64) +TEXT ·Yceill(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xceill(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ycexp(tls *TLS, z complex128) (r complex128) +TEXT ·Ycexp(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ z_real+8(FP), AX + MOVQ AX, 8(SP) + MOVQ z_imag+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xcexp(SB) + MOVQ 24(SP), AX + MOVQ AX, r_real+24(FP) + MOVQ 32(SP), AX + MOVQ AX, r_imag+32(FP) + RET + +// func Ycexpf(tls *TLS, z complex64) (r complex64) +TEXT ·Ycexpf(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL z_real+8(FP), AX + MOVL AX, 8(SP) + MOVL z_imag+12(FP), AX + MOVL AX, 12(SP) + CALL ·Xcexpf(SB) + MOVL 16(SP), AX + MOVL AX, r_real+16(FP) + MOVL 20(SP), AX + MOVL AX, r_imag+20(FP) + RET + +// func Ycexpl(tls *TLS, z complex128) (r complex128) +TEXT ·Ycexpl(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ z_real+8(FP), AX + MOVQ AX, 8(SP) + MOVQ z_imag+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xcexpl(SB) + MOVQ 24(SP), AX + MOVQ AX, r_real+24(FP) + MOVQ 32(SP), AX + MOVQ AX, r_imag+32(FP) + RET + +// func Ycfgetispeed(tls *TLS, tio uintptr) (r Tspeed_t) +TEXT ·Ycfgetispeed(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ tio+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xcfgetispeed(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ycfgetospeed(tls *TLS, tio uintptr) (r Tspeed_t) +TEXT ·Ycfgetospeed(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ tio+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xcfgetospeed(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ycfmakeraw(tls *TLS, t uintptr) +TEXT ·Ycfmakeraw(SB),$16-16 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ t+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xcfmakeraw(SB) + RET + +// func Ycfsetispeed(tls *TLS, tio uintptr, speed Tspeed_t) (r int32) +TEXT ·Ycfsetispeed(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ tio+8(FP), AX + MOVQ AX, 8(SP) + MOVL speed+16(FP), AX + MOVL AX, 16(SP) + CALL ·Xcfsetispeed(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ycfsetospeed(tls *TLS, tio uintptr, speed Tspeed_t) (r int32) +TEXT ·Ycfsetospeed(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ tio+8(FP), AX + MOVQ AX, 8(SP) + MOVL speed+16(FP), AX + MOVL AX, 16(SP) + CALL ·Xcfsetospeed(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ycfsetspeed(tls *TLS, tio uintptr, speed Tspeed_t) (r int32) +TEXT ·Ycfsetspeed(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ tio+8(FP), AX + MOVQ AX, 8(SP) + MOVL speed+16(FP), AX + MOVL AX, 16(SP) + CALL ·Xcfsetspeed(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ychdir(tls *TLS, path uintptr) (r int32) +TEXT ·Ychdir(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ path+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xchdir(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ychmod(tls *TLS, path uintptr, mode Tmode_t) (r int32) +TEXT ·Ychmod(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ path+8(FP), AX + MOVQ AX, 8(SP) + MOVL mode+16(FP), AX + MOVL AX, 16(SP) + CALL ·Xchmod(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ychown(tls *TLS, path uintptr, uid Tuid_t, gid Tgid_t) (r int32) +TEXT ·Ychown(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ path+8(FP), AX + MOVQ AX, 8(SP) + MOVL uid+16(FP), AX + MOVL AX, 16(SP) + MOVL gid+20(FP), AX + MOVL AX, 20(SP) + CALL ·Xchown(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ychroot(tls *TLS, path uintptr) (r int32) +TEXT ·Ychroot(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ path+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xchroot(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ycimag(tls *TLS, z complex128) (r float64) +TEXT ·Ycimag(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ z_real+8(FP), AX + MOVQ AX, 8(SP) + MOVQ z_imag+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xcimag(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Ycimagf(tls *TLS, z complex64) (r float32) +TEXT ·Ycimagf(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL z_real+8(FP), AX + MOVL AX, 8(SP) + MOVL z_imag+12(FP), AX + MOVL AX, 12(SP) + CALL ·Xcimagf(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ycimagl(tls *TLS, z complex128) (r float64) +TEXT ·Ycimagl(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ z_real+8(FP), AX + MOVQ AX, 8(SP) + MOVQ z_imag+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xcimagl(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Yclearenv(tls *TLS) (r int32) +TEXT ·Yclearenv(SB),$16-12 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·Xclearenv(SB) + MOVL 8(SP), AX + MOVL AX, r+8(FP) + RET + +// func Yclearerr(tls *TLS, f uintptr) +TEXT ·Yclearerr(SB),$16-16 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xclearerr(SB) + RET + +// func Yclearerr_unlocked(tls *TLS, f uintptr) +TEXT ·Yclearerr_unlocked(SB),$16-16 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xclearerr_unlocked(SB) + RET + +// func Yclock(tls *TLS) (r Tclock_t) +TEXT ·Yclock(SB),$16-16 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·Xclock(SB) + MOVQ 8(SP), AX + MOVQ AX, r+8(FP) + RET + +// func Yclock_adjtime(tls *TLS, clock_id Tclockid_t, utx uintptr) (r1 int32) +TEXT ·Yclock_adjtime(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL clock_id+8(FP), AX + MOVL AX, 8(SP) + MOVQ utx+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xclock_adjtime(SB) + MOVL 24(SP), AX + MOVL AX, r1+24(FP) + RET + +// func Yclock_getcpuclockid(tls *TLS, pid Tpid_t, clk uintptr) (r int32) +TEXT ·Yclock_getcpuclockid(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL pid+8(FP), AX + MOVL AX, 8(SP) + MOVQ clk+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xclock_getcpuclockid(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yclock_getres(tls *TLS, clk Tclockid_t, ts uintptr) (r int32) +TEXT ·Yclock_getres(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL clk+8(FP), AX + MOVL AX, 8(SP) + MOVQ ts+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xclock_getres(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yclock_gettime(tls *TLS, clk Tclockid_t, ts uintptr) (r int32) +TEXT ·Yclock_gettime(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL clk+8(FP), AX + MOVL AX, 8(SP) + MOVQ ts+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xclock_gettime(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yclock_nanosleep(tls *TLS, clk Tclockid_t, flags int32, req uintptr, rem uintptr) (r int32) +TEXT ·Yclock_nanosleep(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL clk+8(FP), AX + MOVL AX, 8(SP) + MOVL flags+12(FP), AX + MOVL AX, 12(SP) + MOVQ req+16(FP), AX + MOVQ AX, 16(SP) + MOVQ rem+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xclock_nanosleep(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Yclock_settime(tls *TLS, clk Tclockid_t, ts uintptr) (r int32) +TEXT ·Yclock_settime(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL clk+8(FP), AX + MOVL AX, 8(SP) + MOVQ ts+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xclock_settime(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yclog(tls *TLS, z complex128) (r1 complex128) +TEXT ·Yclog(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ z_real+8(FP), AX + MOVQ AX, 8(SP) + MOVQ z_imag+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xclog(SB) + MOVQ 24(SP), AX + MOVQ AX, r1_real+24(FP) + MOVQ 32(SP), AX + MOVQ AX, r1_imag+32(FP) + RET + +// func Yclogf(tls *TLS, z complex64) (r1 complex64) +TEXT ·Yclogf(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL z_real+8(FP), AX + MOVL AX, 8(SP) + MOVL z_imag+12(FP), AX + MOVL AX, 12(SP) + CALL ·Xclogf(SB) + MOVL 16(SP), AX + MOVL AX, r1_real+16(FP) + MOVL 20(SP), AX + MOVL AX, r1_imag+20(FP) + RET + +// func Yclogl(tls *TLS, z complex128) (r complex128) +TEXT ·Yclogl(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ z_real+8(FP), AX + MOVQ AX, 8(SP) + MOVQ z_imag+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xclogl(SB) + MOVQ 24(SP), AX + MOVQ AX, r_real+24(FP) + MOVQ 32(SP), AX + MOVQ AX, r_imag+32(FP) + RET + +// func Yclose(tls *TLS, fd int32) (r1 int32) +TEXT ·Yclose(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xclose(SB) + MOVL 16(SP), AX + MOVL AX, r1+16(FP) + RET + +// func Yclosedir(tls *TLS, dir uintptr) (r int32) +TEXT ·Yclosedir(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ dir+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xclosedir(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ycloselog(tls *TLS) +TEXT ·Ycloselog(SB),$8-8 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·Xcloselog(SB) + RET + +// func Yconfstr(tls *TLS, name int32, buf uintptr, len1 Tsize_t) (r Tsize_t) +TEXT ·Yconfstr(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL name+8(FP), AX + MOVL AX, 8(SP) + MOVQ buf+16(FP), AX + MOVQ AX, 16(SP) + MOVQ len1+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xconfstr(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Yconj(tls *TLS, z complex128) (r complex128) +TEXT ·Yconj(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ z_real+8(FP), AX + MOVQ AX, 8(SP) + MOVQ z_imag+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xconj(SB) + MOVQ 24(SP), AX + MOVQ AX, r_real+24(FP) + MOVQ 32(SP), AX + MOVQ AX, r_imag+32(FP) + RET + +// func Yconjf(tls *TLS, z complex64) (r complex64) +TEXT ·Yconjf(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL z_real+8(FP), AX + MOVL AX, 8(SP) + MOVL z_imag+12(FP), AX + MOVL AX, 12(SP) + CALL ·Xconjf(SB) + MOVL 16(SP), AX + MOVL AX, r_real+16(FP) + MOVL 20(SP), AX + MOVL AX, r_imag+20(FP) + RET + +// func Yconjl(tls *TLS, z complex128) (r complex128) +TEXT ·Yconjl(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ z_real+8(FP), AX + MOVQ AX, 8(SP) + MOVQ z_imag+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xconjl(SB) + MOVQ 24(SP), AX + MOVQ AX, r_real+24(FP) + MOVQ 32(SP), AX + MOVQ AX, r_imag+32(FP) + RET + +// func Yconnect(tls *TLS, fd int32, addr uintptr, len1 Tsocklen_t) (r1 int32) +TEXT ·Yconnect(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVQ addr+16(FP), AX + MOVQ AX, 16(SP) + MOVL len1+24(FP), AX + MOVL AX, 24(SP) + CALL ·Xconnect(SB) + MOVL 32(SP), AX + MOVL AX, r1+32(FP) + RET + +// func Ycopy_file_range(tls *TLS, fd_in int32, off_in uintptr, fd_out int32, off_out uintptr, len1 Tsize_t, flags uint32) (r Tssize_t) +TEXT ·Ycopy_file_range(SB),$64-64 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd_in+8(FP), AX + MOVL AX, 8(SP) + MOVQ off_in+16(FP), AX + MOVQ AX, 16(SP) + MOVL fd_out+24(FP), AX + MOVL AX, 24(SP) + MOVQ off_out+32(FP), AX + MOVQ AX, 32(SP) + MOVQ len1+40(FP), AX + MOVQ AX, 40(SP) + MOVL flags+48(FP), AX + MOVL AX, 48(SP) + CALL ·Xcopy_file_range(SB) + MOVQ 56(SP), AX + MOVQ AX, r+56(FP) + RET + +// func Ycopysign(tls *TLS, x float64, y float64) (r float64) +TEXT ·Ycopysign(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + MOVQ y+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xcopysign(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Ycopysignf(tls *TLS, x float32, y float32) (r float32) +TEXT ·Ycopysignf(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL x+8(FP), AX + MOVL AX, 8(SP) + MOVL y+12(FP), AX + MOVL AX, 12(SP) + CALL ·Xcopysignf(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ycopysignl(tls *TLS, x float64, y float64) (r float64) +TEXT ·Ycopysignl(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + MOVQ y+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xcopysignl(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Ycos(tls *TLS, x3 float64) (r float64) +TEXT ·Ycos(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x3+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xcos(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ycosf(tls *TLS, x3 float32) (r float32) +TEXT ·Ycosf(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL x3+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xcosf(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ycosh(tls *TLS, x3 float64) (r float64) +TEXT ·Ycosh(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x3+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xcosh(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ycoshf(tls *TLS, x3 float32) (r float32) +TEXT ·Ycoshf(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL x3+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xcoshf(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ycoshl(tls *TLS, x float64) (r float64) +TEXT ·Ycoshl(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xcoshl(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ycosl(tls *TLS, x float64) (r float64) +TEXT ·Ycosl(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xcosl(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ycpow(tls *TLS, z complex128, c complex128) (r complex128) +TEXT ·Ycpow(SB),$56-56 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ z_real+8(FP), AX + MOVQ AX, 8(SP) + MOVQ z_imag+16(FP), AX + MOVQ AX, 16(SP) + MOVQ c_real+24(FP), AX + MOVQ AX, 24(SP) + MOVQ c_imag+32(FP), AX + MOVQ AX, 32(SP) + CALL ·Xcpow(SB) + MOVQ 40(SP), AX + MOVQ AX, r_real+40(FP) + MOVQ 48(SP), AX + MOVQ AX, r_imag+48(FP) + RET + +// func Ycpowf(tls *TLS, z complex64, c complex64) (r complex64) +TEXT ·Ycpowf(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL z_real+8(FP), AX + MOVL AX, 8(SP) + MOVL z_imag+12(FP), AX + MOVL AX, 12(SP) + MOVL c_real+16(FP), AX + MOVL AX, 16(SP) + MOVL c_imag+20(FP), AX + MOVL AX, 20(SP) + CALL ·Xcpowf(SB) + MOVL 24(SP), AX + MOVL AX, r_real+24(FP) + MOVL 28(SP), AX + MOVL AX, r_imag+28(FP) + RET + +// func Ycpowl(tls *TLS, z complex128, c complex128) (r complex128) +TEXT ·Ycpowl(SB),$56-56 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ z_real+8(FP), AX + MOVQ AX, 8(SP) + MOVQ z_imag+16(FP), AX + MOVQ AX, 16(SP) + MOVQ c_real+24(FP), AX + MOVQ AX, 24(SP) + MOVQ c_imag+32(FP), AX + MOVQ AX, 32(SP) + CALL ·Xcpowl(SB) + MOVQ 40(SP), AX + MOVQ AX, r_real+40(FP) + MOVQ 48(SP), AX + MOVQ AX, r_imag+48(FP) + RET + +// func Ycproj(tls *TLS, z complex128) (r complex128) +TEXT ·Ycproj(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ z_real+8(FP), AX + MOVQ AX, 8(SP) + MOVQ z_imag+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xcproj(SB) + MOVQ 24(SP), AX + MOVQ AX, r_real+24(FP) + MOVQ 32(SP), AX + MOVQ AX, r_imag+32(FP) + RET + +// func Ycprojf(tls *TLS, z complex64) (r complex64) +TEXT ·Ycprojf(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL z_real+8(FP), AX + MOVL AX, 8(SP) + MOVL z_imag+12(FP), AX + MOVL AX, 12(SP) + CALL ·Xcprojf(SB) + MOVL 16(SP), AX + MOVL AX, r_real+16(FP) + MOVL 20(SP), AX + MOVL AX, r_imag+20(FP) + RET + +// func Ycprojl(tls *TLS, z complex128) (r complex128) +TEXT ·Ycprojl(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ z_real+8(FP), AX + MOVQ AX, 8(SP) + MOVQ z_imag+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xcprojl(SB) + MOVQ 24(SP), AX + MOVQ AX, r_real+24(FP) + MOVQ 32(SP), AX + MOVQ AX, r_imag+32(FP) + RET + +// func Ycreal(tls *TLS, z complex128) (r float64) +TEXT ·Ycreal(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ z_real+8(FP), AX + MOVQ AX, 8(SP) + MOVQ z_imag+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xcreal(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Ycrealf(tls *TLS, z complex64) (r float32) +TEXT ·Ycrealf(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL z_real+8(FP), AX + MOVL AX, 8(SP) + MOVL z_imag+12(FP), AX + MOVL AX, 12(SP) + CALL ·Xcrealf(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ycreall(tls *TLS, z complex128) (r float64) +TEXT ·Ycreall(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ z_real+8(FP), AX + MOVQ AX, 8(SP) + MOVQ z_imag+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xcreall(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Ycreat(tls *TLS, filename uintptr, mode Tmode_t) (r int32) +TEXT ·Ycreat(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ filename+8(FP), AX + MOVQ AX, 8(SP) + MOVL mode+16(FP), AX + MOVL AX, 16(SP) + CALL ·Xcreat(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ycrypt(tls *TLS, key uintptr, salt uintptr) (r uintptr) +TEXT ·Ycrypt(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ key+8(FP), AX + MOVQ AX, 8(SP) + MOVQ salt+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xcrypt(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Ycrypt_r(tls *TLS, key uintptr, salt uintptr, data uintptr) (r uintptr) +TEXT ·Ycrypt_r(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ key+8(FP), AX + MOVQ AX, 8(SP) + MOVQ salt+16(FP), AX + MOVQ AX, 16(SP) + MOVQ data+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xcrypt_r(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Ycsin(tls *TLS, z complex128) (r complex128) +TEXT ·Ycsin(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ z_real+8(FP), AX + MOVQ AX, 8(SP) + MOVQ z_imag+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xcsin(SB) + MOVQ 24(SP), AX + MOVQ AX, r_real+24(FP) + MOVQ 32(SP), AX + MOVQ AX, r_imag+32(FP) + RET + +// func Ycsinf(tls *TLS, z complex64) (r complex64) +TEXT ·Ycsinf(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL z_real+8(FP), AX + MOVL AX, 8(SP) + MOVL z_imag+12(FP), AX + MOVL AX, 12(SP) + CALL ·Xcsinf(SB) + MOVL 16(SP), AX + MOVL AX, r_real+16(FP) + MOVL 20(SP), AX + MOVL AX, r_imag+20(FP) + RET + +// func Ycsinh(tls *TLS, z complex128) (r complex128) +TEXT ·Ycsinh(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ z_real+8(FP), AX + MOVQ AX, 8(SP) + MOVQ z_imag+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xcsinh(SB) + MOVQ 24(SP), AX + MOVQ AX, r_real+24(FP) + MOVQ 32(SP), AX + MOVQ AX, r_imag+32(FP) + RET + +// func Ycsinhf(tls *TLS, z complex64) (r complex64) +TEXT ·Ycsinhf(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL z_real+8(FP), AX + MOVL AX, 8(SP) + MOVL z_imag+12(FP), AX + MOVL AX, 12(SP) + CALL ·Xcsinhf(SB) + MOVL 16(SP), AX + MOVL AX, r_real+16(FP) + MOVL 20(SP), AX + MOVL AX, r_imag+20(FP) + RET + +// func Ycsinhl(tls *TLS, z complex128) (r complex128) +TEXT ·Ycsinhl(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ z_real+8(FP), AX + MOVQ AX, 8(SP) + MOVQ z_imag+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xcsinhl(SB) + MOVQ 24(SP), AX + MOVQ AX, r_real+24(FP) + MOVQ 32(SP), AX + MOVQ AX, r_imag+32(FP) + RET + +// func Ycsinl(tls *TLS, z complex128) (r complex128) +TEXT ·Ycsinl(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ z_real+8(FP), AX + MOVQ AX, 8(SP) + MOVQ z_imag+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xcsinl(SB) + MOVQ 24(SP), AX + MOVQ AX, r_real+24(FP) + MOVQ 32(SP), AX + MOVQ AX, r_imag+32(FP) + RET + +// func Ycsqrt(tls *TLS, z complex128) (r complex128) +TEXT ·Ycsqrt(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ z_real+8(FP), AX + MOVQ AX, 8(SP) + MOVQ z_imag+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xcsqrt(SB) + MOVQ 24(SP), AX + MOVQ AX, r_real+24(FP) + MOVQ 32(SP), AX + MOVQ AX, r_imag+32(FP) + RET + +// func Ycsqrtf(tls *TLS, z complex64) (r complex64) +TEXT ·Ycsqrtf(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL z_real+8(FP), AX + MOVL AX, 8(SP) + MOVL z_imag+12(FP), AX + MOVL AX, 12(SP) + CALL ·Xcsqrtf(SB) + MOVL 16(SP), AX + MOVL AX, r_real+16(FP) + MOVL 20(SP), AX + MOVL AX, r_imag+20(FP) + RET + +// func Ycsqrtl(tls *TLS, z complex128) (r complex128) +TEXT ·Ycsqrtl(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ z_real+8(FP), AX + MOVQ AX, 8(SP) + MOVQ z_imag+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xcsqrtl(SB) + MOVQ 24(SP), AX + MOVQ AX, r_real+24(FP) + MOVQ 32(SP), AX + MOVQ AX, r_imag+32(FP) + RET + +// func Yctan(tls *TLS, z complex128) (r complex128) +TEXT ·Yctan(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ z_real+8(FP), AX + MOVQ AX, 8(SP) + MOVQ z_imag+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xctan(SB) + MOVQ 24(SP), AX + MOVQ AX, r_real+24(FP) + MOVQ 32(SP), AX + MOVQ AX, r_imag+32(FP) + RET + +// func Yctanf(tls *TLS, z complex64) (r complex64) +TEXT ·Yctanf(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL z_real+8(FP), AX + MOVL AX, 8(SP) + MOVL z_imag+12(FP), AX + MOVL AX, 12(SP) + CALL ·Xctanf(SB) + MOVL 16(SP), AX + MOVL AX, r_real+16(FP) + MOVL 20(SP), AX + MOVL AX, r_imag+20(FP) + RET + +// func Yctanh(tls *TLS, z complex128) (r complex128) +TEXT ·Yctanh(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ z_real+8(FP), AX + MOVQ AX, 8(SP) + MOVQ z_imag+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xctanh(SB) + MOVQ 24(SP), AX + MOVQ AX, r_real+24(FP) + MOVQ 32(SP), AX + MOVQ AX, r_imag+32(FP) + RET + +// func Yctanhf(tls *TLS, z complex64) (r complex64) +TEXT ·Yctanhf(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL z_real+8(FP), AX + MOVL AX, 8(SP) + MOVL z_imag+12(FP), AX + MOVL AX, 12(SP) + CALL ·Xctanhf(SB) + MOVL 16(SP), AX + MOVL AX, r_real+16(FP) + MOVL 20(SP), AX + MOVL AX, r_imag+20(FP) + RET + +// func Yctanhl(tls *TLS, z complex128) (r complex128) +TEXT ·Yctanhl(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ z_real+8(FP), AX + MOVQ AX, 8(SP) + MOVQ z_imag+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xctanhl(SB) + MOVQ 24(SP), AX + MOVQ AX, r_real+24(FP) + MOVQ 32(SP), AX + MOVQ AX, r_imag+32(FP) + RET + +// func Yctanl(tls *TLS, z complex128) (r complex128) +TEXT ·Yctanl(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ z_real+8(FP), AX + MOVQ AX, 8(SP) + MOVQ z_imag+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xctanl(SB) + MOVQ 24(SP), AX + MOVQ AX, r_real+24(FP) + MOVQ 32(SP), AX + MOVQ AX, r_imag+32(FP) + RET + +// func Yctermid(tls *TLS, s uintptr) (r uintptr) +TEXT ·Yctermid(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xctermid(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Yctime(tls *TLS, t uintptr) (r uintptr) +TEXT ·Yctime(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ t+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xctime(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Yctime_r(tls *TLS, t uintptr, buf uintptr) (r uintptr) +TEXT ·Yctime_r(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ t+8(FP), AX + MOVQ AX, 8(SP) + MOVQ buf+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xctime_r(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Ycuserid(tls *TLS, buf uintptr) (r uintptr) +TEXT ·Ycuserid(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ buf+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xcuserid(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ydcgettext(tls *TLS, domainname uintptr, msgid uintptr, category int32) (r uintptr) +TEXT ·Ydcgettext(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ domainname+8(FP), AX + MOVQ AX, 8(SP) + MOVQ msgid+16(FP), AX + MOVQ AX, 16(SP) + MOVL category+24(FP), AX + MOVL AX, 24(SP) + CALL ·Xdcgettext(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Ydcngettext(tls *TLS, domainname uintptr, msgid1 uintptr, msgid2 uintptr, n uint64, category int32) (r1 uintptr) +TEXT ·Ydcngettext(SB),$56-56 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ domainname+8(FP), AX + MOVQ AX, 8(SP) + MOVQ msgid1+16(FP), AX + MOVQ AX, 16(SP) + MOVQ msgid2+24(FP), AX + MOVQ AX, 24(SP) + MOVQ n+32(FP), AX + MOVQ AX, 32(SP) + MOVL category+40(FP), AX + MOVL AX, 40(SP) + CALL ·Xdcngettext(SB) + MOVQ 48(SP), AX + MOVQ AX, r1+48(FP) + RET + +// func Ydelete_module(tls *TLS, a uintptr, b uint32) (r int32) +TEXT ·Ydelete_module(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ a+8(FP), AX + MOVQ AX, 8(SP) + MOVL b+16(FP), AX + MOVL AX, 16(SP) + CALL ·Xdelete_module(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ydgettext(tls *TLS, domainname uintptr, msgid uintptr) (r uintptr) +TEXT ·Ydgettext(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ domainname+8(FP), AX + MOVQ AX, 8(SP) + MOVQ msgid+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xdgettext(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Ydifftime(tls *TLS, t1 Ttime_t, t0 Ttime_t) (r float64) +TEXT ·Ydifftime(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ t1+8(FP), AX + MOVQ AX, 8(SP) + MOVQ t0+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xdifftime(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Ydirfd(tls *TLS, d uintptr) (r int32) +TEXT ·Ydirfd(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ d+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xdirfd(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ydirname(tls *TLS, s uintptr) (r uintptr) +TEXT ·Ydirname(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xdirname(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ydiv(tls *TLS, num int32, den int32) (r Tdiv_t) +TEXT ·Ydiv(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL num+8(FP), AX + MOVL AX, 8(SP) + MOVL den+12(FP), AX + MOVL AX, 12(SP) + CALL ·Xdiv(SB) + MOVL 16(SP), AX + MOVL AX, r_Fquot+16(FP) + MOVL 20(SP), AX + MOVL AX, r_Frem+20(FP) + RET + +// func Ydlclose(t *TLS, handle uintptr) (_2 int32) +TEXT ·Ydlclose(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ handle+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xdlclose(SB) + MOVL 16(SP), AX + MOVL AX, _2+16(FP) + RET + +// func Ydlerror(t *TLS) (_1 uintptr) +TEXT ·Ydlerror(SB),$16-16 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + CALL ·Xdlerror(SB) + MOVQ 8(SP), AX + MOVQ AX, _1+8(FP) + RET + +// func Ydlopen(t *TLS, filename uintptr, flags int32) (_3 uintptr) +TEXT ·Ydlopen(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ filename+8(FP), AX + MOVQ AX, 8(SP) + MOVL flags+16(FP), AX + MOVL AX, 16(SP) + CALL ·Xdlopen(SB) + MOVQ 24(SP), AX + MOVQ AX, _3+24(FP) + RET + +// func Ydlsym(t *TLS, handle, symbol uintptr) (_2 uintptr) +TEXT ·Ydlsym(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ handle+8(FP), AX + MOVQ AX, 8(SP) + MOVQ symbol+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xdlsym(SB) + MOVQ 24(SP), AX + MOVQ AX, _2+24(FP) + RET + +// func Ydn_comp(tls *TLS, src uintptr, dst uintptr, space int32, dnptrs uintptr, lastdnptr uintptr) (r int32) +TEXT ·Ydn_comp(SB),$56-52 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ src+8(FP), AX + MOVQ AX, 8(SP) + MOVQ dst+16(FP), AX + MOVQ AX, 16(SP) + MOVL space+24(FP), AX + MOVL AX, 24(SP) + MOVQ dnptrs+32(FP), AX + MOVQ AX, 32(SP) + MOVQ lastdnptr+40(FP), AX + MOVQ AX, 40(SP) + CALL ·Xdn_comp(SB) + MOVL 48(SP), AX + MOVL AX, r+48(FP) + RET + +// func Ydn_expand(tls *TLS, base uintptr, end uintptr, src uintptr, dest uintptr, space int32) (r int32) +TEXT ·Ydn_expand(SB),$56-52 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ base+8(FP), AX + MOVQ AX, 8(SP) + MOVQ end+16(FP), AX + MOVQ AX, 16(SP) + MOVQ src+24(FP), AX + MOVQ AX, 24(SP) + MOVQ dest+32(FP), AX + MOVQ AX, 32(SP) + MOVL space+40(FP), AX + MOVL AX, 40(SP) + CALL ·Xdn_expand(SB) + MOVL 48(SP), AX + MOVL AX, r+48(FP) + RET + +// func Ydn_skipname(tls *TLS, s uintptr, end uintptr) (r int32) +TEXT ·Ydn_skipname(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ end+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xdn_skipname(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ydngettext(tls *TLS, domainname uintptr, msgid1 uintptr, msgid2 uintptr, n uint64) (r uintptr) +TEXT ·Ydngettext(SB),$48-48 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ domainname+8(FP), AX + MOVQ AX, 8(SP) + MOVQ msgid1+16(FP), AX + MOVQ AX, 16(SP) + MOVQ msgid2+24(FP), AX + MOVQ AX, 24(SP) + MOVQ n+32(FP), AX + MOVQ AX, 32(SP) + CALL ·Xdngettext(SB) + MOVQ 40(SP), AX + MOVQ AX, r+40(FP) + RET + +// func Ydprintf(tls *TLS, fd int32, fmt uintptr, va uintptr) (r int32) +TEXT ·Ydprintf(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVQ fmt+16(FP), AX + MOVQ AX, 16(SP) + MOVQ va+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xdprintf(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Ydrand48(tls *TLS) (r float64) +TEXT ·Ydrand48(SB),$16-16 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·Xdrand48(SB) + MOVQ 8(SP), AX + MOVQ AX, r+8(FP) + RET + +// func Ydrem(tls *TLS, x float64, y float64) (r float64) +TEXT ·Ydrem(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + MOVQ y+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xdrem(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Ydremf(tls *TLS, x float32, y float32) (r float32) +TEXT ·Ydremf(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL x+8(FP), AX + MOVL AX, 8(SP) + MOVL y+12(FP), AX + MOVL AX, 12(SP) + CALL ·Xdremf(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ydup(tls *TLS, fd int32) (r int32) +TEXT ·Ydup(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xdup(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ydup2(tls *TLS, old int32, new1 int32) (r1 int32) +TEXT ·Ydup2(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL old+8(FP), AX + MOVL AX, 8(SP) + MOVL new1+12(FP), AX + MOVL AX, 12(SP) + CALL ·Xdup2(SB) + MOVL 16(SP), AX + MOVL AX, r1+16(FP) + RET + +// func Ydup3(tls *TLS, old int32, new1 int32, flags int32) (r int32) +TEXT ·Ydup3(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL old+8(FP), AX + MOVL AX, 8(SP) + MOVL new1+12(FP), AX + MOVL AX, 12(SP) + MOVL flags+16(FP), AX + MOVL AX, 16(SP) + CALL ·Xdup3(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yduplocale(tls *TLS, old Tlocale_t) (r Tlocale_t) +TEXT ·Yduplocale(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ old+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xduplocale(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Yeaccess(tls *TLS, filename uintptr, amode int32) (r int32) +TEXT ·Yeaccess(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ filename+8(FP), AX + MOVQ AX, 8(SP) + MOVL amode+16(FP), AX + MOVL AX, 16(SP) + CALL ·Xeaccess(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yecvt(tls *TLS, x float64, n int32, dp uintptr, sign uintptr) (r uintptr) +TEXT ·Yecvt(SB),$48-48 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + MOVL n+16(FP), AX + MOVL AX, 16(SP) + MOVQ dp+24(FP), AX + MOVQ AX, 24(SP) + MOVQ sign+32(FP), AX + MOVQ AX, 32(SP) + CALL ·Xecvt(SB) + MOVQ 40(SP), AX + MOVQ AX, r+40(FP) + RET + +// func Yencrypt(tls *TLS, block uintptr, edflag int32) +TEXT ·Yencrypt(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ block+8(FP), AX + MOVQ AX, 8(SP) + MOVL edflag+16(FP), AX + MOVL AX, 16(SP) + CALL ·Xencrypt(SB) + RET + +// func Yendgrent(tls *TLS) +TEXT ·Yendgrent(SB),$8-8 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·Xendgrent(SB) + RET + +// func Yendhostent(tls *TLS) +TEXT ·Yendhostent(SB),$8-8 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·Xendhostent(SB) + RET + +// func Yendmntent(tls *TLS, f uintptr) (r int32) +TEXT ·Yendmntent(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xendmntent(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yendnetent(tls *TLS) +TEXT ·Yendnetent(SB),$8-8 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·Xendnetent(SB) + RET + +// func Yendprotoent(tls *TLS) +TEXT ·Yendprotoent(SB),$8-8 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·Xendprotoent(SB) + RET + +// func Yendpwent(tls *TLS) +TEXT ·Yendpwent(SB),$8-8 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·Xendpwent(SB) + RET + +// func Yendservent(tls *TLS) +TEXT ·Yendservent(SB),$8-8 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·Xendservent(SB) + RET + +// func Yendspent(tls *TLS) +TEXT ·Yendspent(SB),$8-8 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·Xendspent(SB) + RET + +// func Yendusershell(tls *TLS) +TEXT ·Yendusershell(SB),$8-8 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·Xendusershell(SB) + RET + +// func Yendutent(tls *TLS) +TEXT ·Yendutent(SB),$8-8 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·Xendutent(SB) + RET + +// func Yendutxent(tls *TLS) +TEXT ·Yendutxent(SB),$8-8 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·Xendutxent(SB) + RET + +// func Yepoll_create(tls *TLS, size int32) (r int32) +TEXT ·Yepoll_create(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL size+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xepoll_create(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yepoll_create1(tls *TLS, flags int32) (r1 int32) +TEXT ·Yepoll_create1(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL flags+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xepoll_create1(SB) + MOVL 16(SP), AX + MOVL AX, r1+16(FP) + RET + +// func Yepoll_ctl(tls *TLS, fd int32, op int32, fd2 int32, ev uintptr) (r int32) +TEXT ·Yepoll_ctl(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVL op+12(FP), AX + MOVL AX, 12(SP) + MOVL fd2+16(FP), AX + MOVL AX, 16(SP) + MOVQ ev+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xepoll_ctl(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Yepoll_pwait(tls *TLS, fd int32, ev uintptr, cnt int32, to int32, sigs uintptr) (r1 int32) +TEXT ·Yepoll_pwait(SB),$48-44 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVQ ev+16(FP), AX + MOVQ AX, 16(SP) + MOVL cnt+24(FP), AX + MOVL AX, 24(SP) + MOVL to+28(FP), AX + MOVL AX, 28(SP) + MOVQ sigs+32(FP), AX + MOVQ AX, 32(SP) + CALL ·Xepoll_pwait(SB) + MOVL 40(SP), AX + MOVL AX, r1+40(FP) + RET + +// func Yepoll_wait(tls *TLS, fd int32, ev uintptr, cnt int32, to int32) (r int32) +TEXT ·Yepoll_wait(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVQ ev+16(FP), AX + MOVQ AX, 16(SP) + MOVL cnt+24(FP), AX + MOVL AX, 24(SP) + MOVL to+28(FP), AX + MOVL AX, 28(SP) + CALL ·Xepoll_wait(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Yerand48(tls *TLS, s uintptr) (r float64) +TEXT ·Yerand48(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xerand48(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Yerf(tls *TLS, x float64) (r1 float64) +TEXT ·Yerf(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xerf(SB) + MOVQ 16(SP), AX + MOVQ AX, r1+16(FP) + RET + +// func Yerfc(tls *TLS, x float64) (r1 float64) +TEXT ·Yerfc(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xerfc(SB) + MOVQ 16(SP), AX + MOVQ AX, r1+16(FP) + RET + +// func Yerfcf(tls *TLS, x float32) (r1 float32) +TEXT ·Yerfcf(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL x+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xerfcf(SB) + MOVL 16(SP), AX + MOVL AX, r1+16(FP) + RET + +// func Yerfcl(tls *TLS, x float64) (r float64) +TEXT ·Yerfcl(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xerfcl(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Yerff(tls *TLS, x float32) (r1 float32) +TEXT ·Yerff(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL x+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xerff(SB) + MOVL 16(SP), AX + MOVL AX, r1+16(FP) + RET + +// func Yerfl(tls *TLS, x float64) (r float64) +TEXT ·Yerfl(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xerfl(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Yerr(tls *TLS, status int32, fmt uintptr, va uintptr) +TEXT ·Yerr(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL status+8(FP), AX + MOVL AX, 8(SP) + MOVQ fmt+16(FP), AX + MOVQ AX, 16(SP) + MOVQ va+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xerr(SB) + RET + +// func Yerrx(tls *TLS, status int32, fmt uintptr, va uintptr) +TEXT ·Yerrx(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL status+8(FP), AX + MOVL AX, 8(SP) + MOVQ fmt+16(FP), AX + MOVQ AX, 16(SP) + MOVQ va+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xerrx(SB) + RET + +// func Yether_aton(tls *TLS, x uintptr) (r uintptr) +TEXT ·Yether_aton(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xether_aton(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Yether_aton_r(tls *TLS, x uintptr, p_a uintptr) (r uintptr) +TEXT ·Yether_aton_r(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + MOVQ p_a+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xether_aton_r(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Yether_hostton(tls *TLS, hostname uintptr, e uintptr) (r int32) +TEXT ·Yether_hostton(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ hostname+8(FP), AX + MOVQ AX, 8(SP) + MOVQ e+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xether_hostton(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yether_line(tls *TLS, l uintptr, e uintptr, hostname uintptr) (r int32) +TEXT ·Yether_line(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ l+8(FP), AX + MOVQ AX, 8(SP) + MOVQ e+16(FP), AX + MOVQ AX, 16(SP) + MOVQ hostname+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xether_line(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Yether_ntoa(tls *TLS, p_a uintptr) (r uintptr) +TEXT ·Yether_ntoa(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ p_a+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xether_ntoa(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Yether_ntoa_r(tls *TLS, p_a uintptr, x uintptr) (r uintptr) +TEXT ·Yether_ntoa_r(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ p_a+8(FP), AX + MOVQ AX, 8(SP) + MOVQ x+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xether_ntoa_r(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Yether_ntohost(tls *TLS, hostname uintptr, e uintptr) (r int32) +TEXT ·Yether_ntohost(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ hostname+8(FP), AX + MOVQ AX, 8(SP) + MOVQ e+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xether_ntohost(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yeuidaccess(tls *TLS, filename uintptr, amode int32) (r int32) +TEXT ·Yeuidaccess(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ filename+8(FP), AX + MOVQ AX, 8(SP) + MOVL amode+16(FP), AX + MOVL AX, 16(SP) + CALL ·Xeuidaccess(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yeventfd(tls *TLS, count uint32, flags int32) (r1 int32) +TEXT ·Yeventfd(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL count+8(FP), AX + MOVL AX, 8(SP) + MOVL flags+12(FP), AX + MOVL AX, 12(SP) + CALL ·Xeventfd(SB) + MOVL 16(SP), AX + MOVL AX, r1+16(FP) + RET + +// func Yeventfd_read(tls *TLS, fd int32, value uintptr) (r int32) +TEXT ·Yeventfd_read(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVQ value+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xeventfd_read(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yeventfd_write(tls *TLS, fd int32, _value Teventfd_t) (r int32) +TEXT ·Yeventfd_write(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVQ _value+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xeventfd_write(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yexecl(tls *TLS, path uintptr, argv0 uintptr, va uintptr) (r int32) +TEXT ·Yexecl(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ path+8(FP), AX + MOVQ AX, 8(SP) + MOVQ argv0+16(FP), AX + MOVQ AX, 16(SP) + MOVQ va+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xexecl(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Yexecle(tls *TLS, path uintptr, argv0 uintptr, va uintptr) (r int32) +TEXT ·Yexecle(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ path+8(FP), AX + MOVQ AX, 8(SP) + MOVQ argv0+16(FP), AX + MOVQ AX, 16(SP) + MOVQ va+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xexecle(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Yexeclp(tls *TLS, file uintptr, argv0 uintptr, va uintptr) (r int32) +TEXT ·Yexeclp(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ file+8(FP), AX + MOVQ AX, 8(SP) + MOVQ argv0+16(FP), AX + MOVQ AX, 16(SP) + MOVQ va+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xexeclp(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Yexecv(tls *TLS, path uintptr, argv uintptr) (r int32) +TEXT ·Yexecv(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ path+8(FP), AX + MOVQ AX, 8(SP) + MOVQ argv+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xexecv(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yexecve(tls *TLS, path uintptr, argv uintptr, envp uintptr) (r int32) +TEXT ·Yexecve(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ path+8(FP), AX + MOVQ AX, 8(SP) + MOVQ argv+16(FP), AX + MOVQ AX, 16(SP) + MOVQ envp+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xexecve(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Yexecvp(tls *TLS, file uintptr, argv uintptr) (r int32) +TEXT ·Yexecvp(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ file+8(FP), AX + MOVQ AX, 8(SP) + MOVQ argv+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xexecvp(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yexecvpe(tls *TLS, file uintptr, argv uintptr, envp uintptr) (r int32) +TEXT ·Yexecvpe(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ file+8(FP), AX + MOVQ AX, 8(SP) + MOVQ argv+16(FP), AX + MOVQ AX, 16(SP) + MOVQ envp+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xexecvpe(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Yexit(tls *TLS, code int32) +TEXT ·Yexit(SB),$16-12 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL code+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xexit(SB) + RET + +// func Yexp(tls *TLS, x1 float64) (r1 float64) +TEXT ·Yexp(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x1+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xexp(SB) + MOVQ 16(SP), AX + MOVQ AX, r1+16(FP) + RET + +// func Yexp10(tls *TLS, x float64) (r float64) +TEXT ·Yexp10(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xexp10(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Yexp10f(tls *TLS, x float32) (r float32) +TEXT ·Yexp10f(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL x+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xexp10f(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yexp10l(tls *TLS, x float64) (r float64) +TEXT ·Yexp10l(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xexp10l(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Yexp2(tls *TLS, x1 float64) (r1 float64) +TEXT ·Yexp2(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x1+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xexp2(SB) + MOVQ 16(SP), AX + MOVQ AX, r1+16(FP) + RET + +// func Yexp2f(tls *TLS, x2 float32) (r1 float32) +TEXT ·Yexp2f(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL x2+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xexp2f(SB) + MOVL 16(SP), AX + MOVL AX, r1+16(FP) + RET + +// func Yexp2l(tls *TLS, x float64) (r float64) +TEXT ·Yexp2l(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xexp2l(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Yexpf(tls *TLS, x2 float32) (r1 float32) +TEXT ·Yexpf(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL x2+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xexpf(SB) + MOVL 16(SP), AX + MOVL AX, r1+16(FP) + RET + +// func Yexpl(tls *TLS, x float64) (r float64) +TEXT ·Yexpl(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xexpl(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Yexplicit_bzero(tls *TLS, d uintptr, n Tsize_t) +TEXT ·Yexplicit_bzero(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ d+8(FP), AX + MOVQ AX, 8(SP) + MOVQ n+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xexplicit_bzero(SB) + RET + +// func Yexpm1(tls *TLS, x3 float64) (r float64) +TEXT ·Yexpm1(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x3+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xexpm1(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Yexpm1f(tls *TLS, x3 float32) (r float32) +TEXT ·Yexpm1f(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL x3+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xexpm1f(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yexpm1l(tls *TLS, x float64) (r float64) +TEXT ·Yexpm1l(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xexpm1l(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Yfabs(tls *TLS, x float64) (r float64) +TEXT ·Yfabs(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xfabs(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Yfabsf(tls *TLS, x float32) (r float32) +TEXT ·Yfabsf(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL x+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xfabsf(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yfabsl(tls *TLS, x float64) (r float64) +TEXT ·Yfabsl(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xfabsl(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Yfaccessat(tls *TLS, fd int32, filename uintptr, amode int32, flag int32) (r int32) +TEXT ·Yfaccessat(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVQ filename+16(FP), AX + MOVQ AX, 16(SP) + MOVL amode+24(FP), AX + MOVL AX, 24(SP) + MOVL flag+28(FP), AX + MOVL AX, 28(SP) + CALL ·Xfaccessat(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Yfallocate(tls *TLS, fd int32, mode int32, base Toff_t, len1 Toff_t) (r int32) +TEXT ·Yfallocate(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVL mode+12(FP), AX + MOVL AX, 12(SP) + MOVQ base+16(FP), AX + MOVQ AX, 16(SP) + MOVQ len1+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xfallocate(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Yfanotify_init(tls *TLS, flags uint32, event_f_flags uint32) (r int32) +TEXT ·Yfanotify_init(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL flags+8(FP), AX + MOVL AX, 8(SP) + MOVL event_f_flags+12(FP), AX + MOVL AX, 12(SP) + CALL ·Xfanotify_init(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yfanotify_mark(tls *TLS, fanotify_fd int32, flags uint32, mask uint64, dfd int32, pathname uintptr) (r int32) +TEXT ·Yfanotify_mark(SB),$48-44 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fanotify_fd+8(FP), AX + MOVL AX, 8(SP) + MOVL flags+12(FP), AX + MOVL AX, 12(SP) + MOVQ mask+16(FP), AX + MOVQ AX, 16(SP) + MOVL dfd+24(FP), AX + MOVL AX, 24(SP) + MOVQ pathname+32(FP), AX + MOVQ AX, 32(SP) + CALL ·Xfanotify_mark(SB) + MOVL 40(SP), AX + MOVL AX, r+40(FP) + RET + +// func Yfchdir(tls *TLS, fd int32) (r int32) +TEXT ·Yfchdir(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xfchdir(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yfchmod(tls *TLS, fd int32, mode Tmode_t) (r int32) +TEXT ·Yfchmod(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVL mode+12(FP), AX + MOVL AX, 12(SP) + CALL ·Xfchmod(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yfchmodat(tls *TLS, fd int32, path uintptr, mode Tmode_t, flag int32) (r int32) +TEXT ·Yfchmodat(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVQ path+16(FP), AX + MOVQ AX, 16(SP) + MOVL mode+24(FP), AX + MOVL AX, 24(SP) + MOVL flag+28(FP), AX + MOVL AX, 28(SP) + CALL ·Xfchmodat(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Yfchown(tls *TLS, fd int32, uid Tuid_t, gid Tgid_t) (r int32) +TEXT ·Yfchown(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVL uid+12(FP), AX + MOVL AX, 12(SP) + MOVL gid+16(FP), AX + MOVL AX, 16(SP) + CALL ·Xfchown(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yfchownat(tls *TLS, fd int32, path uintptr, uid Tuid_t, gid Tgid_t, flag int32) (r int32) +TEXT ·Yfchownat(SB),$48-44 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVQ path+16(FP), AX + MOVQ AX, 16(SP) + MOVL uid+24(FP), AX + MOVL AX, 24(SP) + MOVL gid+28(FP), AX + MOVL AX, 28(SP) + MOVL flag+32(FP), AX + MOVL AX, 32(SP) + CALL ·Xfchownat(SB) + MOVL 40(SP), AX + MOVL AX, r+40(FP) + RET + +// func Yfclose(tls *TLS, f uintptr) (r1 int32) +TEXT ·Yfclose(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xfclose(SB) + MOVL 16(SP), AX + MOVL AX, r1+16(FP) + RET + +// func Yfcntl(tls *TLS, fd int32, cmd int32, va uintptr) (r int32) +TEXT ·Yfcntl(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVL cmd+12(FP), AX + MOVL AX, 12(SP) + MOVQ va+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xfcntl(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yfcntl64(tls *TLS, fd int32, cmd int32, va uintptr) (r int32) +TEXT ·Yfcntl64(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVL cmd+12(FP), AX + MOVL AX, 12(SP) + MOVQ va+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xfcntl64(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yfcvt(tls *TLS, x float64, n int32, dp uintptr, sign uintptr) (r uintptr) +TEXT ·Yfcvt(SB),$48-48 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + MOVL n+16(FP), AX + MOVL AX, 16(SP) + MOVQ dp+24(FP), AX + MOVQ AX, 24(SP) + MOVQ sign+32(FP), AX + MOVQ AX, 32(SP) + CALL ·Xfcvt(SB) + MOVQ 40(SP), AX + MOVQ AX, r+40(FP) + RET + +// func Yfdatasync(tls *TLS, fd int32) (r int32) +TEXT ·Yfdatasync(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xfdatasync(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yfdim(tls *TLS, x float64, y float64) (r float64) +TEXT ·Yfdim(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + MOVQ y+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xfdim(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Yfdimf(tls *TLS, x float32, y float32) (r float32) +TEXT ·Yfdimf(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL x+8(FP), AX + MOVL AX, 8(SP) + MOVL y+12(FP), AX + MOVL AX, 12(SP) + CALL ·Xfdimf(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yfdiml(tls *TLS, x float64, y float64) (r float64) +TEXT ·Yfdiml(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + MOVQ y+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xfdiml(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Yfdopen(tls *TLS, fd int32, mode uintptr) (r uintptr) +TEXT ·Yfdopen(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVQ mode+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xfdopen(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Yfdopendir(tls *TLS, fd int32) (r uintptr) +TEXT ·Yfdopendir(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xfdopendir(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Yfeclearexcept(tls *TLS, mask int32) (r int32) +TEXT ·Yfeclearexcept(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL mask+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xfeclearexcept(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yfegetenv(tls *TLS, envp uintptr) (r int32) +TEXT ·Yfegetenv(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ envp+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xfegetenv(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yfegetround(tls *TLS) (r int32) +TEXT ·Yfegetround(SB),$16-12 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·Xfegetround(SB) + MOVL 8(SP), AX + MOVL AX, r+8(FP) + RET + +// func Yfeof(tls *TLS, f uintptr) (r int32) +TEXT ·Yfeof(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xfeof(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yfeof_unlocked(tls *TLS, f uintptr) (r int32) +TEXT ·Yfeof_unlocked(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xfeof_unlocked(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yferaiseexcept(tls *TLS, mask int32) (r int32) +TEXT ·Yferaiseexcept(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL mask+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xferaiseexcept(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yferror(tls *TLS, f uintptr) (r int32) +TEXT ·Yferror(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xferror(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yferror_unlocked(tls *TLS, f uintptr) (r int32) +TEXT ·Yferror_unlocked(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xferror_unlocked(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yfesetenv(tls *TLS, envp uintptr) (r int32) +TEXT ·Yfesetenv(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ envp+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xfesetenv(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yfetestexcept(tls *TLS, mask int32) (r int32) +TEXT ·Yfetestexcept(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL mask+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xfetestexcept(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yfexecve(tls *TLS, fd int32, argv uintptr, envp uintptr) (r1 int32) +TEXT ·Yfexecve(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVQ argv+16(FP), AX + MOVQ AX, 16(SP) + MOVQ envp+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xfexecve(SB) + MOVL 32(SP), AX + MOVL AX, r1+32(FP) + RET + +// func Yfflush(tls *TLS, f uintptr) (r1 int32) +TEXT ·Yfflush(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xfflush(SB) + MOVL 16(SP), AX + MOVL AX, r1+16(FP) + RET + +// func Yfflush_unlocked(tls *TLS, f uintptr) (r int32) +TEXT ·Yfflush_unlocked(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xfflush_unlocked(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yffs(tls *TLS, i int32) (r int32) +TEXT ·Yffs(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL i+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xffs(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yffsl(tls *TLS, i int64) (r int32) +TEXT ·Yffsl(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ i+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xffsl(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yffsll(tls *TLS, i int64) (r int32) +TEXT ·Yffsll(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ i+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xffsll(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yfgetc(tls *TLS, f1 uintptr) (r int32) +TEXT ·Yfgetc(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f1+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xfgetc(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yfgetc_unlocked(tls *TLS, f uintptr) (r int32) +TEXT ·Yfgetc_unlocked(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xfgetc_unlocked(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yfgetgrent(tls *TLS, f uintptr) (r uintptr) +TEXT ·Yfgetgrent(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xfgetgrent(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Yfgetln(tls *TLS, f uintptr, plen uintptr) (r uintptr) +TEXT ·Yfgetln(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + MOVQ plen+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xfgetln(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Yfgetpos(tls *TLS, f uintptr, pos uintptr) (r int32) +TEXT ·Yfgetpos(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + MOVQ pos+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xfgetpos(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yfgetpwent(tls *TLS, f uintptr) (r uintptr) +TEXT ·Yfgetpwent(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xfgetpwent(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Yfgets(tls *TLS, s uintptr, n int32, f uintptr) (r uintptr) +TEXT ·Yfgets(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVL n+16(FP), AX + MOVL AX, 16(SP) + MOVQ f+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xfgets(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Yfgets_unlocked(tls *TLS, s uintptr, n int32, f uintptr) (r uintptr) +TEXT ·Yfgets_unlocked(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVL n+16(FP), AX + MOVL AX, 16(SP) + MOVQ f+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xfgets_unlocked(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Yfgetwc(tls *TLS, f uintptr) (r Twint_t) +TEXT ·Yfgetwc(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xfgetwc(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yfgetwc_unlocked(tls *TLS, f uintptr) (r Twint_t) +TEXT ·Yfgetwc_unlocked(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xfgetwc_unlocked(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yfgetws(tls *TLS, s uintptr, n int32, f uintptr) (r uintptr) +TEXT ·Yfgetws(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVL n+16(FP), AX + MOVL AX, 16(SP) + MOVQ f+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xfgetws(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Yfgetws_unlocked(tls *TLS, s uintptr, n int32, f uintptr) (r uintptr) +TEXT ·Yfgetws_unlocked(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVL n+16(FP), AX + MOVL AX, 16(SP) + MOVQ f+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xfgetws_unlocked(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Yfgetxattr(tls *TLS, filedes int32, name uintptr, value uintptr, size Tsize_t) (r Tssize_t) +TEXT ·Yfgetxattr(SB),$48-48 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL filedes+8(FP), AX + MOVL AX, 8(SP) + MOVQ name+16(FP), AX + MOVQ AX, 16(SP) + MOVQ value+24(FP), AX + MOVQ AX, 24(SP) + MOVQ size+32(FP), AX + MOVQ AX, 32(SP) + CALL ·Xfgetxattr(SB) + MOVQ 40(SP), AX + MOVQ AX, r+40(FP) + RET + +// func Yfileno(tls *TLS, f uintptr) (r int32) +TEXT ·Yfileno(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xfileno(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yfileno_unlocked(tls *TLS, f uintptr) (r int32) +TEXT ·Yfileno_unlocked(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xfileno_unlocked(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yfinite(tls *TLS, x float64) (r int32) +TEXT ·Yfinite(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xfinite(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yfinitef(tls *TLS, x float32) (r int32) +TEXT ·Yfinitef(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL x+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xfinitef(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yflistxattr(tls *TLS, filedes int32, list uintptr, size Tsize_t) (r Tssize_t) +TEXT ·Yflistxattr(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL filedes+8(FP), AX + MOVL AX, 8(SP) + MOVQ list+16(FP), AX + MOVQ AX, 16(SP) + MOVQ size+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xflistxattr(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Yflock(tls *TLS, fd int32, op int32) (r int32) +TEXT ·Yflock(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVL op+12(FP), AX + MOVL AX, 12(SP) + CALL ·Xflock(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yflockfile(tls *TLS, f uintptr) +TEXT ·Yflockfile(SB),$16-16 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xflockfile(SB) + RET + +// func Yfloor(tls *TLS, x3 float64) (r float64) +TEXT ·Yfloor(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x3+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xfloor(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Yfloorf(tls *TLS, x3 float32) (r float32) +TEXT ·Yfloorf(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL x3+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xfloorf(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yfloorl(tls *TLS, x float64) (r float64) +TEXT ·Yfloorl(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xfloorl(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Yfma(tls *TLS, x1 float64, y float64, z float64) (r1 float64) +TEXT ·Yfma(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x1+8(FP), AX + MOVQ AX, 8(SP) + MOVQ y+16(FP), AX + MOVQ AX, 16(SP) + MOVQ z+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xfma(SB) + MOVQ 32(SP), AX + MOVQ AX, r1+32(FP) + RET + +// func Yfmal(tls *TLS, x float64, y float64, z float64) (r float64) +TEXT ·Yfmal(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + MOVQ y+16(FP), AX + MOVQ AX, 16(SP) + MOVQ z+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xfmal(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Yfmax(tls *TLS, x float64, y float64) (r float64) +TEXT ·Yfmax(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + MOVQ y+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xfmax(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Yfmaxf(tls *TLS, x float32, y float32) (r float32) +TEXT ·Yfmaxf(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL x+8(FP), AX + MOVL AX, 8(SP) + MOVL y+12(FP), AX + MOVL AX, 12(SP) + CALL ·Xfmaxf(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yfmaxl(tls *TLS, x float64, y float64) (r float64) +TEXT ·Yfmaxl(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + MOVQ y+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xfmaxl(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Yfmemopen(tls *TLS, buf uintptr, size Tsize_t, mode uintptr) (r uintptr) +TEXT ·Yfmemopen(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ buf+8(FP), AX + MOVQ AX, 8(SP) + MOVQ size+16(FP), AX + MOVQ AX, 16(SP) + MOVQ mode+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xfmemopen(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Yfmin(tls *TLS, x float64, y float64) (r float64) +TEXT ·Yfmin(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + MOVQ y+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xfmin(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Yfminf(tls *TLS, x float32, y float32) (r float32) +TEXT ·Yfminf(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL x+8(FP), AX + MOVL AX, 8(SP) + MOVL y+12(FP), AX + MOVL AX, 12(SP) + CALL ·Xfminf(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yfminl(tls *TLS, x float64, y float64) (r float64) +TEXT ·Yfminl(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + MOVQ y+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xfminl(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Yfmod(tls *TLS, x float64, y float64) (r float64) +TEXT ·Yfmod(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + MOVQ y+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xfmod(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Yfmodf(tls *TLS, x float32, y float32) (r float32) +TEXT ·Yfmodf(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL x+8(FP), AX + MOVL AX, 8(SP) + MOVL y+12(FP), AX + MOVL AX, 12(SP) + CALL ·Xfmodf(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yfmodl(tls *TLS, x float64, y float64) (r float64) +TEXT ·Yfmodl(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + MOVQ y+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xfmodl(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Yfmtmsg(tls *TLS, classification int64, label uintptr, severity int32, text uintptr, action uintptr, tag uintptr) (r int32) +TEXT ·Yfmtmsg(SB),$64-60 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ classification+8(FP), AX + MOVQ AX, 8(SP) + MOVQ label+16(FP), AX + MOVQ AX, 16(SP) + MOVL severity+24(FP), AX + MOVL AX, 24(SP) + MOVQ text+32(FP), AX + MOVQ AX, 32(SP) + MOVQ action+40(FP), AX + MOVQ AX, 40(SP) + MOVQ tag+48(FP), AX + MOVQ AX, 48(SP) + CALL ·Xfmtmsg(SB) + MOVL 56(SP), AX + MOVL AX, r+56(FP) + RET + +// func Yfnmatch(tls *TLS, pat uintptr, str uintptr, flags int32) (r int32) +TEXT ·Yfnmatch(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ pat+8(FP), AX + MOVQ AX, 8(SP) + MOVQ str+16(FP), AX + MOVQ AX, 16(SP) + MOVL flags+24(FP), AX + MOVL AX, 24(SP) + CALL ·Xfnmatch(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Yfopen(tls *TLS, filename uintptr, mode uintptr) (r uintptr) +TEXT ·Yfopen(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ filename+8(FP), AX + MOVQ AX, 8(SP) + MOVQ mode+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xfopen(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Yfopen64(tls *TLS, filename uintptr, mode uintptr) (r uintptr) +TEXT ·Yfopen64(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ filename+8(FP), AX + MOVQ AX, 8(SP) + MOVQ mode+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xfopen64(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Yfopencookie(tls *TLS, cookie uintptr, mode uintptr, iofuncs Tcookie_io_functions_t) (r uintptr) +TEXT ·Yfopencookie(SB),$64-64 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ cookie+8(FP), AX + MOVQ AX, 8(SP) + MOVQ mode+16(FP), AX + MOVQ AX, 16(SP) + MOVQ iofuncs_Fread+24(FP), AX + MOVQ AX, 24(SP) + MOVQ iofuncs_Fwrite+32(FP), AX + MOVQ AX, 32(SP) + MOVQ iofuncs_Fseek+40(FP), AX + MOVQ AX, 40(SP) + MOVQ iofuncs_Fclose1+48(FP), AX + MOVQ AX, 48(SP) + CALL ·Xfopencookie(SB) + MOVQ 56(SP), AX + MOVQ AX, r+56(FP) + RET + +// func Yfork(t *TLS) (_1 int32) +TEXT ·Yfork(SB),$16-12 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + CALL ·Xfork(SB) + MOVL 8(SP), AX + MOVL AX, _1+8(FP) + RET + +// func Yfpathconf(tls *TLS, fd int32, name int32) (r int64) +TEXT ·Yfpathconf(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVL name+12(FP), AX + MOVL AX, 12(SP) + CALL ·Xfpathconf(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Yfprintf(tls *TLS, f uintptr, fmt uintptr, va uintptr) (r int32) +TEXT ·Yfprintf(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + MOVQ fmt+16(FP), AX + MOVQ AX, 16(SP) + MOVQ va+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xfprintf(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Yfpurge(tls *TLS, f uintptr) (r int32) +TEXT ·Yfpurge(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xfpurge(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yfputc(tls *TLS, c1 int32, f1 uintptr) (r int32) +TEXT ·Yfputc(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c1+8(FP), AX + MOVL AX, 8(SP) + MOVQ f1+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xfputc(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yfputc_unlocked(tls *TLS, c int32, f uintptr) (r int32) +TEXT ·Yfputc_unlocked(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + MOVQ f+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xfputc_unlocked(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yfputs(tls *TLS, s uintptr, f uintptr) (r int32) +TEXT ·Yfputs(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ f+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xfputs(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yfputs_unlocked(tls *TLS, s uintptr, f uintptr) (r int32) +TEXT ·Yfputs_unlocked(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ f+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xfputs_unlocked(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yfputwc(tls *TLS, c Twchar_t, f uintptr) (r Twint_t) +TEXT ·Yfputwc(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + MOVQ f+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xfputwc(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yfputwc_unlocked(tls *TLS, c Twchar_t, f uintptr) (r Twint_t) +TEXT ·Yfputwc_unlocked(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + MOVQ f+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xfputwc_unlocked(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yfputws(tls *TLS, _ws uintptr, f uintptr) (r int32) +TEXT ·Yfputws(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ _ws+8(FP), AX + MOVQ AX, 8(SP) + MOVQ f+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xfputws(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yfputws_unlocked(tls *TLS, _ws uintptr, f uintptr) (r int32) +TEXT ·Yfputws_unlocked(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ _ws+8(FP), AX + MOVQ AX, 8(SP) + MOVQ f+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xfputws_unlocked(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yfread(tls *TLS, destv uintptr, size Tsize_t, nmemb Tsize_t, f uintptr) (r Tsize_t) +TEXT ·Yfread(SB),$48-48 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ destv+8(FP), AX + MOVQ AX, 8(SP) + MOVQ size+16(FP), AX + MOVQ AX, 16(SP) + MOVQ nmemb+24(FP), AX + MOVQ AX, 24(SP) + MOVQ f+32(FP), AX + MOVQ AX, 32(SP) + CALL ·Xfread(SB) + MOVQ 40(SP), AX + MOVQ AX, r+40(FP) + RET + +// func Yfread_unlocked(tls *TLS, destv uintptr, size Tsize_t, nmemb Tsize_t, f uintptr) (r Tsize_t) +TEXT ·Yfread_unlocked(SB),$48-48 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ destv+8(FP), AX + MOVQ AX, 8(SP) + MOVQ size+16(FP), AX + MOVQ AX, 16(SP) + MOVQ nmemb+24(FP), AX + MOVQ AX, 24(SP) + MOVQ f+32(FP), AX + MOVQ AX, 32(SP) + CALL ·Xfread_unlocked(SB) + MOVQ 40(SP), AX + MOVQ AX, r+40(FP) + RET + +// func Yfree(tls *TLS, p uintptr) +TEXT ·Yfree(SB),$16-16 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ p+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xfree(SB) + RET + +// func Yfreeaddrinfo(tls *TLS, p uintptr) +TEXT ·Yfreeaddrinfo(SB),$16-16 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ p+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xfreeaddrinfo(SB) + RET + +// func Yfreeifaddrs(tls *TLS, ifp uintptr) +TEXT ·Yfreeifaddrs(SB),$16-16 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ifp+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xfreeifaddrs(SB) + RET + +// func Yfreelocale(tls *TLS, l Tlocale_t) +TEXT ·Yfreelocale(SB),$16-16 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ l+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xfreelocale(SB) + RET + +// func Yfremovexattr(tls *TLS, fd int32, name uintptr) (r int32) +TEXT ·Yfremovexattr(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVQ name+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xfremovexattr(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yfreopen(tls *TLS, filename uintptr, mode uintptr, f uintptr) (r uintptr) +TEXT ·Yfreopen(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ filename+8(FP), AX + MOVQ AX, 8(SP) + MOVQ mode+16(FP), AX + MOVQ AX, 16(SP) + MOVQ f+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xfreopen(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Yfrexp(tls *TLS, x float64, e uintptr) (r float64) +TEXT ·Yfrexp(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + MOVQ e+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xfrexp(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Yfrexpf(tls *TLS, x float32, e uintptr) (r float32) +TEXT ·Yfrexpf(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL x+8(FP), AX + MOVL AX, 8(SP) + MOVQ e+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xfrexpf(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yfrexpl(tls *TLS, x float64, e uintptr) (r float64) +TEXT ·Yfrexpl(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + MOVQ e+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xfrexpl(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Yfscanf(tls *TLS, f uintptr, fmt uintptr, va uintptr) (r int32) +TEXT ·Yfscanf(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + MOVQ fmt+16(FP), AX + MOVQ AX, 16(SP) + MOVQ va+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xfscanf(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Yfseek(tls *TLS, f uintptr, off int64, whence int32) (r int32) +TEXT ·Yfseek(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + MOVQ off+16(FP), AX + MOVQ AX, 16(SP) + MOVL whence+24(FP), AX + MOVL AX, 24(SP) + CALL ·Xfseek(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Yfseeko(tls *TLS, f uintptr, off Toff_t, whence int32) (r int32) +TEXT ·Yfseeko(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + MOVQ off+16(FP), AX + MOVQ AX, 16(SP) + MOVL whence+24(FP), AX + MOVL AX, 24(SP) + CALL ·Xfseeko(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Yfsetpos(tls *TLS, f uintptr, pos uintptr) (r int32) +TEXT ·Yfsetpos(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + MOVQ pos+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xfsetpos(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yfsetxattr(tls *TLS, filedes int32, name uintptr, value uintptr, size Tsize_t, flags int32) (r int32) +TEXT ·Yfsetxattr(SB),$56-52 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL filedes+8(FP), AX + MOVL AX, 8(SP) + MOVQ name+16(FP), AX + MOVQ AX, 16(SP) + MOVQ value+24(FP), AX + MOVQ AX, 24(SP) + MOVQ size+32(FP), AX + MOVQ AX, 32(SP) + MOVL flags+40(FP), AX + MOVL AX, 40(SP) + CALL ·Xfsetxattr(SB) + MOVL 48(SP), AX + MOVL AX, r+48(FP) + RET + +// func Yfstat(tls *TLS, fd int32, st uintptr) (r int32) +TEXT ·Yfstat(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVQ st+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xfstat(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yfstat64(tls *TLS, fd int32, st uintptr) (r int32) +TEXT ·Yfstat64(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVQ st+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xfstat64(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yfstatat(tls *TLS, fd int32, path uintptr, st uintptr, flag int32) (r int32) +TEXT ·Yfstatat(SB),$48-44 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVQ path+16(FP), AX + MOVQ AX, 16(SP) + MOVQ st+24(FP), AX + MOVQ AX, 24(SP) + MOVL flag+32(FP), AX + MOVL AX, 32(SP) + CALL ·Xfstatat(SB) + MOVL 40(SP), AX + MOVL AX, r+40(FP) + RET + +// func Yfstatfs(tls *TLS, fd int32, buf uintptr) (r int32) +TEXT ·Yfstatfs(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVQ buf+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xfstatfs(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yfstatvfs(tls *TLS, fd int32, buf uintptr) (r int32) +TEXT ·Yfstatvfs(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVQ buf+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xfstatvfs(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yfsync(tls *TLS, fd int32) (r int32) +TEXT ·Yfsync(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xfsync(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yftell(tls *TLS, f uintptr) (r int64) +TEXT ·Yftell(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xftell(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Yftello(tls *TLS, f uintptr) (r Toff_t) +TEXT ·Yftello(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xftello(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Yftime(tls *TLS, tp uintptr) (r int32) +TEXT ·Yftime(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ tp+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xftime(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yftok(tls *TLS, path uintptr, id int32) (r Tkey_t) +TEXT ·Yftok(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ path+8(FP), AX + MOVQ AX, 8(SP) + MOVL id+16(FP), AX + MOVL AX, 16(SP) + CALL ·Xftok(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yftruncate(tls *TLS, fd int32, length Toff_t) (r int32) +TEXT ·Yftruncate(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVQ length+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xftruncate(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yftruncate64(tls *TLS, fd int32, length Toff_t) (r int32) +TEXT ·Yftruncate64(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVQ length+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xftruncate64(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yftrylockfile(tls *TLS, f uintptr) (r int32) +TEXT ·Yftrylockfile(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xftrylockfile(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yfts64_close(t *TLS, ftsp uintptr) (_2 int32) +TEXT ·Yfts64_close(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ftsp+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xfts64_close(SB) + MOVL 16(SP), AX + MOVL AX, _2+16(FP) + RET + +// func Yfts64_open(t *TLS, path_argv uintptr, options int32, compar uintptr) (_4 uintptr) +TEXT ·Yfts64_open(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ path_argv+8(FP), AX + MOVQ AX, 8(SP) + MOVL options+16(FP), AX + MOVL AX, 16(SP) + MOVQ compar+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xfts64_open(SB) + MOVQ 32(SP), AX + MOVQ AX, _4+32(FP) + RET + +// func Yfts64_read(t *TLS, ftsp uintptr) (_2 uintptr) +TEXT ·Yfts64_read(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ftsp+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xfts64_read(SB) + MOVQ 16(SP), AX + MOVQ AX, _2+16(FP) + RET + +// func Yfts_close(t *TLS, ftsp uintptr) (_2 int32) +TEXT ·Yfts_close(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ftsp+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xfts_close(SB) + MOVL 16(SP), AX + MOVL AX, _2+16(FP) + RET + +// func Yfts_open(t *TLS, path_argv uintptr, options int32, compar uintptr) (_4 uintptr) +TEXT ·Yfts_open(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ path_argv+8(FP), AX + MOVQ AX, 8(SP) + MOVL options+16(FP), AX + MOVL AX, 16(SP) + MOVQ compar+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xfts_open(SB) + MOVQ 32(SP), AX + MOVQ AX, _4+32(FP) + RET + +// func Yfts_read(t *TLS, ftsp uintptr) (_2 uintptr) +TEXT ·Yfts_read(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ftsp+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xfts_read(SB) + MOVQ 16(SP), AX + MOVQ AX, _2+16(FP) + RET + +// func Yftw(tls *TLS, path uintptr, __ccgo_fp_fn uintptr, fd_limit int32) (r int32) +TEXT ·Yftw(SB),$48-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX // alloc all ABI trampolines + MOVQ AX, 0(SP) + MOVQ $16, 8(SP) // 16*(number of func ptrs in signature) + CALL modernc·org∕libc·TLSAlloc(SB) + MOVQ 16(SP), AX + MOVQ AX, -8(BP) // Trampolines[0] + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ -8(BP), AX + ADDQ $0, AX // 16*(0-based ordinal number of the func ptr in signature) + MOVQ AX, 8(SP) + MOVQ __ccgo_fp_fn+16(FP), AX // ABI0 code ptr + MOVQ AX, 16(SP) + CALL ·__ccgo_abiInternal_ftw_1(SB) // Create the closure for calling __ccgo_fp_fn + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ path+8(FP), AX + MOVQ AX, 8(SP) + MOVQ -8(BP), AX // Trampolines[0] + ADDQ $0, AX // 16*(0-based ordinal number of the func ptr in signature) + MOVQ AX, 16(SP) + MOVL fd_limit+24(FP), AX + MOVL AX, 24(SP) + CALL ·Xftw(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ $0, 8(SP) + CALL modernc·org∕libc·TLSFree(SB) + RET + +TEXT ·__ccgo_abi0_ftw_1(SB),$48-44 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ _0+0(FP), AX + MOVQ AX, 0(SP) + MOVQ _1+8(FP), AX + MOVQ AX, 8(SP) + MOVQ _2+16(FP), AX + MOVQ AX, 16(SP) + MOVL _3+24(FP), AX + MOVL AX, 24(SP) + MOVQ __ccgo_fp+32(FP), AX + CALL *AX // Call the ABI0 code ptr + MOVL 32(SP), AX + MOVL AX, _4+40(FP) + RET + +// func Yfunlockfile(tls *TLS, f uintptr) +TEXT ·Yfunlockfile(SB),$16-16 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xfunlockfile(SB) + RET + +// func Yfutimens(tls *TLS, fd int32, times uintptr) (r int32) +TEXT ·Yfutimens(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVQ times+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xfutimens(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yfutimes(tls *TLS, fd int32, tv uintptr) (r int32) +TEXT ·Yfutimes(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVQ tv+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xfutimes(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yfutimesat(tls *TLS, dirfd int32, pathname uintptr, times uintptr) (r int32) +TEXT ·Yfutimesat(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL dirfd+8(FP), AX + MOVL AX, 8(SP) + MOVQ pathname+16(FP), AX + MOVQ AX, 16(SP) + MOVQ times+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xfutimesat(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Yfwide(tls *TLS, f uintptr, mode int32) (r int32) +TEXT ·Yfwide(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + MOVL mode+16(FP), AX + MOVL AX, 16(SP) + CALL ·Xfwide(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yfwprintf(tls *TLS, f uintptr, fmt uintptr, va uintptr) (r int32) +TEXT ·Yfwprintf(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + MOVQ fmt+16(FP), AX + MOVQ AX, 16(SP) + MOVQ va+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xfwprintf(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Yfwrite(tls *TLS, src uintptr, size Tsize_t, nmemb Tsize_t, f uintptr) (r Tsize_t) +TEXT ·Yfwrite(SB),$48-48 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ src+8(FP), AX + MOVQ AX, 8(SP) + MOVQ size+16(FP), AX + MOVQ AX, 16(SP) + MOVQ nmemb+24(FP), AX + MOVQ AX, 24(SP) + MOVQ f+32(FP), AX + MOVQ AX, 32(SP) + CALL ·Xfwrite(SB) + MOVQ 40(SP), AX + MOVQ AX, r+40(FP) + RET + +// func Yfwrite_unlocked(tls *TLS, src uintptr, size Tsize_t, nmemb Tsize_t, f uintptr) (r Tsize_t) +TEXT ·Yfwrite_unlocked(SB),$48-48 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ src+8(FP), AX + MOVQ AX, 8(SP) + MOVQ size+16(FP), AX + MOVQ AX, 16(SP) + MOVQ nmemb+24(FP), AX + MOVQ AX, 24(SP) + MOVQ f+32(FP), AX + MOVQ AX, 32(SP) + CALL ·Xfwrite_unlocked(SB) + MOVQ 40(SP), AX + MOVQ AX, r+40(FP) + RET + +// func Yfwscanf(tls *TLS, f uintptr, fmt uintptr, va uintptr) (r int32) +TEXT ·Yfwscanf(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + MOVQ fmt+16(FP), AX + MOVQ AX, 16(SP) + MOVQ va+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xfwscanf(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Ygai_strerror(tls *TLS, ecode int32) (r uintptr) +TEXT ·Ygai_strerror(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL ecode+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xgai_strerror(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ygcvt(tls *TLS, x float64, n int32, b uintptr) (r uintptr) +TEXT ·Ygcvt(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + MOVL n+16(FP), AX + MOVL AX, 16(SP) + MOVQ b+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xgcvt(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Yget_avphys_pages(tls *TLS) (r int64) +TEXT ·Yget_avphys_pages(SB),$16-16 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·Xget_avphys_pages(SB) + MOVQ 8(SP), AX + MOVQ AX, r+8(FP) + RET + +// func Yget_current_dir_name(tls *TLS) (r uintptr) +TEXT ·Yget_current_dir_name(SB),$16-16 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·Xget_current_dir_name(SB) + MOVQ 8(SP), AX + MOVQ AX, r+8(FP) + RET + +// func Yget_nprocs(tls *TLS) (r int32) +TEXT ·Yget_nprocs(SB),$16-12 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·Xget_nprocs(SB) + MOVL 8(SP), AX + MOVL AX, r+8(FP) + RET + +// func Yget_nprocs_conf(tls *TLS) (r int32) +TEXT ·Yget_nprocs_conf(SB),$16-12 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·Xget_nprocs_conf(SB) + MOVL 8(SP), AX + MOVL AX, r+8(FP) + RET + +// func Yget_phys_pages(tls *TLS) (r int64) +TEXT ·Yget_phys_pages(SB),$16-16 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·Xget_phys_pages(SB) + MOVQ 8(SP), AX + MOVQ AX, r+8(FP) + RET + +// func Ygetaddrinfo(tls *TLS, host uintptr, serv uintptr, hint uintptr, res uintptr) (r1 int32) +TEXT ·Ygetaddrinfo(SB),$48-44 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ host+8(FP), AX + MOVQ AX, 8(SP) + MOVQ serv+16(FP), AX + MOVQ AX, 16(SP) + MOVQ hint+24(FP), AX + MOVQ AX, 24(SP) + MOVQ res+32(FP), AX + MOVQ AX, 32(SP) + CALL ·Xgetaddrinfo(SB) + MOVL 40(SP), AX + MOVL AX, r1+40(FP) + RET + +// func Ygetauxval(tls *TLS, item uint64) (r uint64) +TEXT ·Ygetauxval(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ item+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xgetauxval(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ygetc(tls *TLS, f1 uintptr) (r int32) +TEXT ·Ygetc(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f1+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xgetc(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ygetc_unlocked(tls *TLS, f uintptr) (r int32) +TEXT ·Ygetc_unlocked(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xgetc_unlocked(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ygetchar(tls *TLS) (r int32) +TEXT ·Ygetchar(SB),$16-12 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·Xgetchar(SB) + MOVL 8(SP), AX + MOVL AX, r+8(FP) + RET + +// func Ygetchar_unlocked(tls *TLS) (r int32) +TEXT ·Ygetchar_unlocked(SB),$16-12 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·Xgetchar_unlocked(SB) + MOVL 8(SP), AX + MOVL AX, r+8(FP) + RET + +// func Ygetcwd(tls *TLS, buf uintptr, size Tsize_t) (r uintptr) +TEXT ·Ygetcwd(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ buf+8(FP), AX + MOVQ AX, 8(SP) + MOVQ size+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xgetcwd(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Ygetdate(tls *TLS, s uintptr) (r uintptr) +TEXT ·Ygetdate(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xgetdate(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ygetdelim(tls *TLS, s uintptr, n uintptr, delim int32, f uintptr) (r Tssize_t) +TEXT ·Ygetdelim(SB),$48-48 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ n+16(FP), AX + MOVQ AX, 16(SP) + MOVL delim+24(FP), AX + MOVL AX, 24(SP) + MOVQ f+32(FP), AX + MOVQ AX, 32(SP) + CALL ·Xgetdelim(SB) + MOVQ 40(SP), AX + MOVQ AX, r+40(FP) + RET + +// func Ygetdents(tls *TLS, fd int32, buf uintptr, len1 Tsize_t) (r int32) +TEXT ·Ygetdents(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVQ buf+16(FP), AX + MOVQ AX, 16(SP) + MOVQ len1+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xgetdents(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Ygetdomainname(tls *TLS, name uintptr, len1 Tsize_t) (r int32) +TEXT ·Ygetdomainname(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ name+8(FP), AX + MOVQ AX, 8(SP) + MOVQ len1+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xgetdomainname(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ygetdtablesize(tls *TLS) (r int32) +TEXT ·Ygetdtablesize(SB),$16-12 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·Xgetdtablesize(SB) + MOVL 8(SP), AX + MOVL AX, r+8(FP) + RET + +// func Ygetegid(tls *TLS) (r Tgid_t) +TEXT ·Ygetegid(SB),$16-12 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·Xgetegid(SB) + MOVL 8(SP), AX + MOVL AX, r+8(FP) + RET + +// func Ygetentropy(tls *TLS, buffer uintptr, len1 Tsize_t) (r int32) +TEXT ·Ygetentropy(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ buffer+8(FP), AX + MOVQ AX, 8(SP) + MOVQ len1+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xgetentropy(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ygetenv(tls *TLS, name uintptr) (r uintptr) +TEXT ·Ygetenv(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ name+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xgetenv(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ygeteuid(tls *TLS) (r Tuid_t) +TEXT ·Ygeteuid(SB),$16-12 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·Xgeteuid(SB) + MOVL 8(SP), AX + MOVL AX, r+8(FP) + RET + +// func Ygetgid(tls *TLS) (r Tgid_t) +TEXT ·Ygetgid(SB),$16-12 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·Xgetgid(SB) + MOVL 8(SP), AX + MOVL AX, r+8(FP) + RET + +// func Ygetgrent(tls *TLS) (r uintptr) +TEXT ·Ygetgrent(SB),$16-16 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·Xgetgrent(SB) + MOVQ 8(SP), AX + MOVQ AX, r+8(FP) + RET + +// func Ygetgrgid(tls *TLS, gid Tgid_t) (r uintptr) +TEXT ·Ygetgrgid(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL gid+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xgetgrgid(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ygetgrgid_r(tls *TLS, gid Tgid_t, gr uintptr, buf uintptr, size Tsize_t, res uintptr) (r int32) +TEXT ·Ygetgrgid_r(SB),$56-52 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL gid+8(FP), AX + MOVL AX, 8(SP) + MOVQ gr+16(FP), AX + MOVQ AX, 16(SP) + MOVQ buf+24(FP), AX + MOVQ AX, 24(SP) + MOVQ size+32(FP), AX + MOVQ AX, 32(SP) + MOVQ res+40(FP), AX + MOVQ AX, 40(SP) + CALL ·Xgetgrgid_r(SB) + MOVL 48(SP), AX + MOVL AX, r+48(FP) + RET + +// func Ygetgrnam(tls *TLS, name uintptr) (r uintptr) +TEXT ·Ygetgrnam(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ name+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xgetgrnam(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ygetgrnam_r(tls *TLS, name uintptr, gr uintptr, buf uintptr, size Tsize_t, res uintptr) (r int32) +TEXT ·Ygetgrnam_r(SB),$56-52 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ name+8(FP), AX + MOVQ AX, 8(SP) + MOVQ gr+16(FP), AX + MOVQ AX, 16(SP) + MOVQ buf+24(FP), AX + MOVQ AX, 24(SP) + MOVQ size+32(FP), AX + MOVQ AX, 32(SP) + MOVQ res+40(FP), AX + MOVQ AX, 40(SP) + CALL ·Xgetgrnam_r(SB) + MOVL 48(SP), AX + MOVL AX, r+48(FP) + RET + +// func Ygetgrouplist(tls *TLS, user uintptr, gid Tgid_t, groups uintptr, ngroups uintptr) (r int32) +TEXT ·Ygetgrouplist(SB),$48-44 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ user+8(FP), AX + MOVQ AX, 8(SP) + MOVL gid+16(FP), AX + MOVL AX, 16(SP) + MOVQ groups+24(FP), AX + MOVQ AX, 24(SP) + MOVQ ngroups+32(FP), AX + MOVQ AX, 32(SP) + CALL ·Xgetgrouplist(SB) + MOVL 40(SP), AX + MOVL AX, r+40(FP) + RET + +// func Ygetgroups(tls *TLS, count int32, list uintptr) (r int32) +TEXT ·Ygetgroups(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL count+8(FP), AX + MOVL AX, 8(SP) + MOVQ list+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xgetgroups(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ygethostbyaddr(tls *TLS, a uintptr, l Tsocklen_t, af int32) (r uintptr) +TEXT ·Ygethostbyaddr(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ a+8(FP), AX + MOVQ AX, 8(SP) + MOVL l+16(FP), AX + MOVL AX, 16(SP) + MOVL af+20(FP), AX + MOVL AX, 20(SP) + CALL ·Xgethostbyaddr(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Ygethostbyaddr_r(tls *TLS, a uintptr, l Tsocklen_t, af int32, h uintptr, buf uintptr, buflen Tsize_t, res uintptr, err uintptr) (r int32) +TEXT ·Ygethostbyaddr_r(SB),$72-68 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ a+8(FP), AX + MOVQ AX, 8(SP) + MOVL l+16(FP), AX + MOVL AX, 16(SP) + MOVL af+20(FP), AX + MOVL AX, 20(SP) + MOVQ h+24(FP), AX + MOVQ AX, 24(SP) + MOVQ buf+32(FP), AX + MOVQ AX, 32(SP) + MOVQ buflen+40(FP), AX + MOVQ AX, 40(SP) + MOVQ res+48(FP), AX + MOVQ AX, 48(SP) + MOVQ err+56(FP), AX + MOVQ AX, 56(SP) + CALL ·Xgethostbyaddr_r(SB) + MOVL 64(SP), AX + MOVL AX, r+64(FP) + RET + +// func Ygethostbyname(tls *TLS, name uintptr) (r uintptr) +TEXT ·Ygethostbyname(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ name+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xgethostbyname(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ygethostbyname2(tls *TLS, name uintptr, af int32) (r uintptr) +TEXT ·Ygethostbyname2(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ name+8(FP), AX + MOVQ AX, 8(SP) + MOVL af+16(FP), AX + MOVL AX, 16(SP) + CALL ·Xgethostbyname2(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Ygethostbyname2_r(tls *TLS, name uintptr, af int32, h uintptr, buf uintptr, buflen Tsize_t, res uintptr, err uintptr) (r int32) +TEXT ·Ygethostbyname2_r(SB),$72-68 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ name+8(FP), AX + MOVQ AX, 8(SP) + MOVL af+16(FP), AX + MOVL AX, 16(SP) + MOVQ h+24(FP), AX + MOVQ AX, 24(SP) + MOVQ buf+32(FP), AX + MOVQ AX, 32(SP) + MOVQ buflen+40(FP), AX + MOVQ AX, 40(SP) + MOVQ res+48(FP), AX + MOVQ AX, 48(SP) + MOVQ err+56(FP), AX + MOVQ AX, 56(SP) + CALL ·Xgethostbyname2_r(SB) + MOVL 64(SP), AX + MOVL AX, r+64(FP) + RET + +// func Ygethostbyname_r(tls *TLS, name uintptr, h uintptr, buf uintptr, buflen Tsize_t, res uintptr, err uintptr) (r int32) +TEXT ·Ygethostbyname_r(SB),$64-60 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ name+8(FP), AX + MOVQ AX, 8(SP) + MOVQ h+16(FP), AX + MOVQ AX, 16(SP) + MOVQ buf+24(FP), AX + MOVQ AX, 24(SP) + MOVQ buflen+32(FP), AX + MOVQ AX, 32(SP) + MOVQ res+40(FP), AX + MOVQ AX, 40(SP) + MOVQ err+48(FP), AX + MOVQ AX, 48(SP) + CALL ·Xgethostbyname_r(SB) + MOVL 56(SP), AX + MOVL AX, r+56(FP) + RET + +// func Ygethostent(tls *TLS) (r uintptr) +TEXT ·Ygethostent(SB),$16-16 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·Xgethostent(SB) + MOVQ 8(SP), AX + MOVQ AX, r+8(FP) + RET + +// func Ygethostid(tls *TLS) (r int64) +TEXT ·Ygethostid(SB),$16-16 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·Xgethostid(SB) + MOVQ 8(SP), AX + MOVQ AX, r+8(FP) + RET + +// func Ygethostname(tls *TLS, name uintptr, len1 Tsize_t) (r int32) +TEXT ·Ygethostname(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ name+8(FP), AX + MOVQ AX, 8(SP) + MOVQ len1+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xgethostname(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ygetifaddrs(tls *TLS, ifap uintptr) (r1 int32) +TEXT ·Ygetifaddrs(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ifap+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xgetifaddrs(SB) + MOVL 16(SP), AX + MOVL AX, r1+16(FP) + RET + +// func Ygetitimer(tls *TLS, which int32, old uintptr) (r1 int32) +TEXT ·Ygetitimer(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL which+8(FP), AX + MOVL AX, 8(SP) + MOVQ old+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xgetitimer(SB) + MOVL 24(SP), AX + MOVL AX, r1+24(FP) + RET + +// func Ygetline(tls *TLS, s uintptr, n uintptr, f uintptr) (r Tssize_t) +TEXT ·Ygetline(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ n+16(FP), AX + MOVQ AX, 16(SP) + MOVQ f+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xgetline(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Ygetloadavg(tls *TLS, a uintptr, n int32) (r int32) +TEXT ·Ygetloadavg(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ a+8(FP), AX + MOVQ AX, 8(SP) + MOVL n+16(FP), AX + MOVL AX, 16(SP) + CALL ·Xgetloadavg(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ygetlogin(tls *TLS) (r uintptr) +TEXT ·Ygetlogin(SB),$16-16 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·Xgetlogin(SB) + MOVQ 8(SP), AX + MOVQ AX, r+8(FP) + RET + +// func Ygetlogin_r(tls *TLS, name uintptr, size Tsize_t) (r int32) +TEXT ·Ygetlogin_r(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ name+8(FP), AX + MOVQ AX, 8(SP) + MOVQ size+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xgetlogin_r(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ygetmntent(tls *TLS, f uintptr) (r uintptr) +TEXT ·Ygetmntent(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xgetmntent(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ygetmntent_r(tls *TLS, f uintptr, mnt uintptr, linebuf uintptr, buflen int32) (r uintptr) +TEXT ·Ygetmntent_r(SB),$48-48 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + MOVQ mnt+16(FP), AX + MOVQ AX, 16(SP) + MOVQ linebuf+24(FP), AX + MOVQ AX, 24(SP) + MOVL buflen+32(FP), AX + MOVL AX, 32(SP) + CALL ·Xgetmntent_r(SB) + MOVQ 40(SP), AX + MOVQ AX, r+40(FP) + RET + +// func Ygetnameinfo(tls *TLS, sa uintptr, sl Tsocklen_t, node uintptr, nodelen Tsocklen_t, serv uintptr, servlen Tsocklen_t, flags int32) (r int32) +TEXT ·Ygetnameinfo(SB),$64-60 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ sa+8(FP), AX + MOVQ AX, 8(SP) + MOVL sl+16(FP), AX + MOVL AX, 16(SP) + MOVQ node+24(FP), AX + MOVQ AX, 24(SP) + MOVL nodelen+32(FP), AX + MOVL AX, 32(SP) + MOVQ serv+40(FP), AX + MOVQ AX, 40(SP) + MOVL servlen+48(FP), AX + MOVL AX, 48(SP) + MOVL flags+52(FP), AX + MOVL AX, 52(SP) + CALL ·Xgetnameinfo(SB) + MOVL 56(SP), AX + MOVL AX, r+56(FP) + RET + +// func Ygetnetbyaddr(tls *TLS, net Tuint32_t, type1 int32) (r uintptr) +TEXT ·Ygetnetbyaddr(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL net+8(FP), AX + MOVL AX, 8(SP) + MOVL type1+12(FP), AX + MOVL AX, 12(SP) + CALL ·Xgetnetbyaddr(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ygetnetbyname(tls *TLS, name uintptr) (r uintptr) +TEXT ·Ygetnetbyname(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ name+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xgetnetbyname(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ygetnetent(tls *TLS) (r uintptr) +TEXT ·Ygetnetent(SB),$16-16 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·Xgetnetent(SB) + MOVQ 8(SP), AX + MOVQ AX, r+8(FP) + RET + +// func Ygetopt(tls *TLS, argc int32, argv uintptr, optstring uintptr) (r int32) +TEXT ·Ygetopt(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL argc+8(FP), AX + MOVL AX, 8(SP) + MOVQ argv+16(FP), AX + MOVQ AX, 16(SP) + MOVQ optstring+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xgetopt(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Ygetopt_long(tls *TLS, argc int32, argv uintptr, optstring uintptr, longopts uintptr, idx uintptr) (r int32) +TEXT ·Ygetopt_long(SB),$56-52 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL argc+8(FP), AX + MOVL AX, 8(SP) + MOVQ argv+16(FP), AX + MOVQ AX, 16(SP) + MOVQ optstring+24(FP), AX + MOVQ AX, 24(SP) + MOVQ longopts+32(FP), AX + MOVQ AX, 32(SP) + MOVQ idx+40(FP), AX + MOVQ AX, 40(SP) + CALL ·Xgetopt_long(SB) + MOVL 48(SP), AX + MOVL AX, r+48(FP) + RET + +// func Ygetopt_long_only(tls *TLS, argc int32, argv uintptr, optstring uintptr, longopts uintptr, idx uintptr) (r int32) +TEXT ·Ygetopt_long_only(SB),$56-52 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL argc+8(FP), AX + MOVL AX, 8(SP) + MOVQ argv+16(FP), AX + MOVQ AX, 16(SP) + MOVQ optstring+24(FP), AX + MOVQ AX, 24(SP) + MOVQ longopts+32(FP), AX + MOVQ AX, 32(SP) + MOVQ idx+40(FP), AX + MOVQ AX, 40(SP) + CALL ·Xgetopt_long_only(SB) + MOVL 48(SP), AX + MOVL AX, r+48(FP) + RET + +// func Ygetpagesize(tls *TLS) (r int32) +TEXT ·Ygetpagesize(SB),$16-12 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·Xgetpagesize(SB) + MOVL 8(SP), AX + MOVL AX, r+8(FP) + RET + +// func Ygetpass(tls *TLS, prompt uintptr) (r uintptr) +TEXT ·Ygetpass(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ prompt+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xgetpass(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ygetpeername(tls *TLS, fd int32, addr uintptr, len1 uintptr) (r1 int32) +TEXT ·Ygetpeername(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVQ addr+16(FP), AX + MOVQ AX, 16(SP) + MOVQ len1+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xgetpeername(SB) + MOVL 32(SP), AX + MOVL AX, r1+32(FP) + RET + +// func Ygetpgid(tls *TLS, pid Tpid_t) (r Tpid_t) +TEXT ·Ygetpgid(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL pid+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xgetpgid(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ygetpgrp(tls *TLS) (r Tpid_t) +TEXT ·Ygetpgrp(SB),$16-12 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·Xgetpgrp(SB) + MOVL 8(SP), AX + MOVL AX, r+8(FP) + RET + +// func Ygetpid(tls *TLS) (r Tpid_t) +TEXT ·Ygetpid(SB),$16-12 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·Xgetpid(SB) + MOVL 8(SP), AX + MOVL AX, r+8(FP) + RET + +// func Ygetppid(tls *TLS) (r Tpid_t) +TEXT ·Ygetppid(SB),$16-12 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·Xgetppid(SB) + MOVL 8(SP), AX + MOVL AX, r+8(FP) + RET + +// func Ygetpriority(tls *TLS, which int32, who Tid_t) (r int32) +TEXT ·Ygetpriority(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL which+8(FP), AX + MOVL AX, 8(SP) + MOVL who+12(FP), AX + MOVL AX, 12(SP) + CALL ·Xgetpriority(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ygetprotobyname(tls *TLS, name uintptr) (r uintptr) +TEXT ·Ygetprotobyname(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ name+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xgetprotobyname(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ygetprotobynumber(tls *TLS, num int32) (r uintptr) +TEXT ·Ygetprotobynumber(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL num+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xgetprotobynumber(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ygetprotoent(tls *TLS) (r uintptr) +TEXT ·Ygetprotoent(SB),$16-16 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·Xgetprotoent(SB) + MOVQ 8(SP), AX + MOVQ AX, r+8(FP) + RET + +// func Ygetpwent(tls *TLS) (r uintptr) +TEXT ·Ygetpwent(SB),$16-16 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·Xgetpwent(SB) + MOVQ 8(SP), AX + MOVQ AX, r+8(FP) + RET + +// func Ygetpwnam(tls *TLS, name uintptr) (r uintptr) +TEXT ·Ygetpwnam(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ name+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xgetpwnam(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ygetpwnam_r(tls *TLS, name uintptr, pw uintptr, buf uintptr, size Tsize_t, res uintptr) (r int32) +TEXT ·Ygetpwnam_r(SB),$56-52 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ name+8(FP), AX + MOVQ AX, 8(SP) + MOVQ pw+16(FP), AX + MOVQ AX, 16(SP) + MOVQ buf+24(FP), AX + MOVQ AX, 24(SP) + MOVQ size+32(FP), AX + MOVQ AX, 32(SP) + MOVQ res+40(FP), AX + MOVQ AX, 40(SP) + CALL ·Xgetpwnam_r(SB) + MOVL 48(SP), AX + MOVL AX, r+48(FP) + RET + +// func Ygetpwuid(tls *TLS, uid Tuid_t) (r uintptr) +TEXT ·Ygetpwuid(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL uid+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xgetpwuid(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ygetpwuid_r(tls *TLS, uid Tuid_t, pw uintptr, buf uintptr, size Tsize_t, res uintptr) (r int32) +TEXT ·Ygetpwuid_r(SB),$56-52 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL uid+8(FP), AX + MOVL AX, 8(SP) + MOVQ pw+16(FP), AX + MOVQ AX, 16(SP) + MOVQ buf+24(FP), AX + MOVQ AX, 24(SP) + MOVQ size+32(FP), AX + MOVQ AX, 32(SP) + MOVQ res+40(FP), AX + MOVQ AX, 40(SP) + CALL ·Xgetpwuid_r(SB) + MOVL 48(SP), AX + MOVL AX, r+48(FP) + RET + +// func Ygetrandom(tls *TLS, buf uintptr, buflen Tsize_t, flags uint32) (r Tssize_t) +TEXT ·Ygetrandom(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ buf+8(FP), AX + MOVQ AX, 8(SP) + MOVQ buflen+16(FP), AX + MOVQ AX, 16(SP) + MOVL flags+24(FP), AX + MOVL AX, 24(SP) + CALL ·Xgetrandom(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Ygetresgid(tls *TLS, rgid uintptr, egid uintptr, sgid uintptr) (r int32) +TEXT ·Ygetresgid(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ rgid+8(FP), AX + MOVQ AX, 8(SP) + MOVQ egid+16(FP), AX + MOVQ AX, 16(SP) + MOVQ sgid+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xgetresgid(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Ygetresuid(tls *TLS, ruid uintptr, euid uintptr, suid uintptr) (r int32) +TEXT ·Ygetresuid(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ruid+8(FP), AX + MOVQ AX, 8(SP) + MOVQ euid+16(FP), AX + MOVQ AX, 16(SP) + MOVQ suid+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xgetresuid(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Ygetrlimit(tls *TLS, resource int32, rlim uintptr) (r int32) +TEXT ·Ygetrlimit(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL resource+8(FP), AX + MOVL AX, 8(SP) + MOVQ rlim+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xgetrlimit(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ygetrlimit64(tls *TLS, resource int32, rlim uintptr) (r int32) +TEXT ·Ygetrlimit64(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL resource+8(FP), AX + MOVL AX, 8(SP) + MOVQ rlim+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xgetrlimit64(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ygetrusage(tls *TLS, who int32, ru uintptr) (r1 int32) +TEXT ·Ygetrusage(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL who+8(FP), AX + MOVL AX, 8(SP) + MOVQ ru+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xgetrusage(SB) + MOVL 24(SP), AX + MOVL AX, r1+24(FP) + RET + +// func Ygets(tls *TLS, s uintptr) (r uintptr) +TEXT ·Ygets(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xgets(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ygetservbyname(tls *TLS, name uintptr, prots uintptr) (r uintptr) +TEXT ·Ygetservbyname(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ name+8(FP), AX + MOVQ AX, 8(SP) + MOVQ prots+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xgetservbyname(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Ygetservbyname_r(tls *TLS, name uintptr, prots uintptr, se uintptr, buf uintptr, buflen Tsize_t, res uintptr) (r int32) +TEXT ·Ygetservbyname_r(SB),$64-60 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ name+8(FP), AX + MOVQ AX, 8(SP) + MOVQ prots+16(FP), AX + MOVQ AX, 16(SP) + MOVQ se+24(FP), AX + MOVQ AX, 24(SP) + MOVQ buf+32(FP), AX + MOVQ AX, 32(SP) + MOVQ buflen+40(FP), AX + MOVQ AX, 40(SP) + MOVQ res+48(FP), AX + MOVQ AX, 48(SP) + CALL ·Xgetservbyname_r(SB) + MOVL 56(SP), AX + MOVL AX, r+56(FP) + RET + +// func Ygetservent(tls *TLS) (r uintptr) +TEXT ·Ygetservent(SB),$16-16 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·Xgetservent(SB) + MOVQ 8(SP), AX + MOVQ AX, r+8(FP) + RET + +// func Ygetsid(tls *TLS, pid Tpid_t) (r Tpid_t) +TEXT ·Ygetsid(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL pid+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xgetsid(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ygetsockname(tls *TLS, fd int32, addr uintptr, len1 uintptr) (r1 int32) +TEXT ·Ygetsockname(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVQ addr+16(FP), AX + MOVQ AX, 16(SP) + MOVQ len1+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xgetsockname(SB) + MOVL 32(SP), AX + MOVL AX, r1+32(FP) + RET + +// func Ygetsockopt(tls *TLS, fd int32, level int32, optname int32, optval uintptr, optlen uintptr) (r2 int32) +TEXT ·Ygetsockopt(SB),$48-44 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVL level+12(FP), AX + MOVL AX, 12(SP) + MOVL optname+16(FP), AX + MOVL AX, 16(SP) + MOVQ optval+24(FP), AX + MOVQ AX, 24(SP) + MOVQ optlen+32(FP), AX + MOVQ AX, 32(SP) + CALL ·Xgetsockopt(SB) + MOVL 40(SP), AX + MOVL AX, r2+40(FP) + RET + +// func Ygetspent(tls *TLS) (r uintptr) +TEXT ·Ygetspent(SB),$16-16 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·Xgetspent(SB) + MOVQ 8(SP), AX + MOVQ AX, r+8(FP) + RET + +// func Ygetsubopt(tls *TLS, opt uintptr, keys uintptr, val uintptr) (r int32) +TEXT ·Ygetsubopt(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ opt+8(FP), AX + MOVQ AX, 8(SP) + MOVQ keys+16(FP), AX + MOVQ AX, 16(SP) + MOVQ val+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xgetsubopt(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Ygettext(tls *TLS, msgid uintptr) (r uintptr) +TEXT ·Ygettext(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ msgid+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xgettext(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ygettimeofday(tls *TLS, tv uintptr, tz uintptr) (r int32) +TEXT ·Ygettimeofday(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ tv+8(FP), AX + MOVQ AX, 8(SP) + MOVQ tz+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xgettimeofday(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ygetuid(tls *TLS) (r Tuid_t) +TEXT ·Ygetuid(SB),$16-12 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·Xgetuid(SB) + MOVL 8(SP), AX + MOVL AX, r+8(FP) + RET + +// func Ygetusershell(tls *TLS) (r uintptr) +TEXT ·Ygetusershell(SB),$16-16 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·Xgetusershell(SB) + MOVQ 8(SP), AX + MOVQ AX, r+8(FP) + RET + +// func Ygetutent(tls *TLS) (r uintptr) +TEXT ·Ygetutent(SB),$16-16 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·Xgetutent(SB) + MOVQ 8(SP), AX + MOVQ AX, r+8(FP) + RET + +// func Ygetutid(tls *TLS, ut uintptr) (r uintptr) +TEXT ·Ygetutid(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ut+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xgetutid(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ygetutline(tls *TLS, ut uintptr) (r uintptr) +TEXT ·Ygetutline(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ut+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xgetutline(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ygetutxent(tls *TLS) (r uintptr) +TEXT ·Ygetutxent(SB),$16-16 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·Xgetutxent(SB) + MOVQ 8(SP), AX + MOVQ AX, r+8(FP) + RET + +// func Ygetutxid(tls *TLS, ut uintptr) (r uintptr) +TEXT ·Ygetutxid(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ut+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xgetutxid(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ygetutxline(tls *TLS, ut uintptr) (r uintptr) +TEXT ·Ygetutxline(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ut+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xgetutxline(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ygetw(tls *TLS, f uintptr) (r int32) +TEXT ·Ygetw(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xgetw(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ygetwc(tls *TLS, f uintptr) (r Twint_t) +TEXT ·Ygetwc(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xgetwc(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ygetwc_unlocked(tls *TLS, f uintptr) (r Twint_t) +TEXT ·Ygetwc_unlocked(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xgetwc_unlocked(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ygetwchar(tls *TLS) (r Twint_t) +TEXT ·Ygetwchar(SB),$16-12 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·Xgetwchar(SB) + MOVL 8(SP), AX + MOVL AX, r+8(FP) + RET + +// func Ygetwchar_unlocked(tls *TLS) (r Twint_t) +TEXT ·Ygetwchar_unlocked(SB),$16-12 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·Xgetwchar_unlocked(SB) + MOVL 8(SP), AX + MOVL AX, r+8(FP) + RET + +// func Ygetxattr(tls *TLS, path uintptr, name uintptr, value uintptr, size Tsize_t) (r Tssize_t) +TEXT ·Ygetxattr(SB),$48-48 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ path+8(FP), AX + MOVQ AX, 8(SP) + MOVQ name+16(FP), AX + MOVQ AX, 16(SP) + MOVQ value+24(FP), AX + MOVQ AX, 24(SP) + MOVQ size+32(FP), AX + MOVQ AX, 32(SP) + CALL ·Xgetxattr(SB) + MOVQ 40(SP), AX + MOVQ AX, r+40(FP) + RET + +// func Yglob(tls *TLS, pat uintptr, flags int32, __ccgo_fp_errfunc uintptr, g_ uintptr) (r int32) +TEXT ·Yglob(SB),$56-44 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX // alloc all ABI trampolines + MOVQ AX, 0(SP) + MOVQ $16, 8(SP) // 16*(number of func ptrs in signature) + CALL modernc·org∕libc·TLSAlloc(SB) + MOVQ 16(SP), AX + MOVQ AX, -8(BP) // Trampolines[0] + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ -8(BP), AX + ADDQ $0, AX // 16*(0-based ordinal number of the func ptr in signature) + MOVQ AX, 8(SP) + MOVQ __ccgo_fp_errfunc+24(FP), AX // ABI0 code ptr + MOVQ AX, 16(SP) + CALL ·__ccgo_abiInternal_glob_2(SB) // Create the closure for calling __ccgo_fp_errfunc + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ pat+8(FP), AX + MOVQ AX, 8(SP) + MOVL flags+16(FP), AX + MOVL AX, 16(SP) + MOVQ -8(BP), AX // Trampolines[0] + ADDQ $0, AX // 16*(0-based ordinal number of the func ptr in signature) + MOVQ AX, 24(SP) + MOVQ g_+32(FP), AX + MOVQ AX, 32(SP) + CALL ·Xglob(SB) + MOVL 40(SP), AX + MOVL AX, r+40(FP) + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ $0, 8(SP) + CALL modernc·org∕libc·TLSFree(SB) + RET + +TEXT ·__ccgo_abi0_glob_2(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ _0+0(FP), AX + MOVQ AX, 0(SP) + MOVQ _1+8(FP), AX + MOVQ AX, 8(SP) + MOVL _2+16(FP), AX + MOVL AX, 16(SP) + MOVQ __ccgo_fp+24(FP), AX + CALL *AX // Call the ABI0 code ptr + MOVL 24(SP), AX + MOVL AX, _3+32(FP) + RET + +// func Yglobfree(tls *TLS, g_ uintptr) +TEXT ·Yglobfree(SB),$16-16 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ g_+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xglobfree(SB) + RET + +// func Ygmtime(tls *TLS, t uintptr) (r uintptr) +TEXT ·Ygmtime(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ t+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xgmtime(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ygmtime_r(tls *TLS, t uintptr, tm uintptr) (r uintptr) +TEXT ·Ygmtime_r(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ t+8(FP), AX + MOVQ AX, 8(SP) + MOVQ tm+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xgmtime_r(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Ygrantpt(tls *TLS, fd int32) (r int32) +TEXT ·Ygrantpt(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xgrantpt(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yhasmntopt(tls *TLS, mnt uintptr, opt uintptr) (r uintptr) +TEXT ·Yhasmntopt(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ mnt+8(FP), AX + MOVQ AX, 8(SP) + MOVQ opt+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xhasmntopt(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Yhcreate(tls *TLS, nel Tsize_t) (r int32) +TEXT ·Yhcreate(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ nel+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xhcreate(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yhdestroy(tls *TLS) +TEXT ·Yhdestroy(SB),$8-8 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·Xhdestroy(SB) + RET + +// func Yherror(tls *TLS, msg uintptr) +TEXT ·Yherror(SB),$16-16 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ msg+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xherror(SB) + RET + +// func Yhsearch(tls *TLS, item TENTRY, action TACTION) (r uintptr) +TEXT ·Yhsearch(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ item_Fkey+8(FP), AX + MOVQ AX, 8(SP) + MOVQ item_Fdata+16(FP), AX + MOVQ AX, 16(SP) + MOVL action+24(FP), AX + MOVL AX, 24(SP) + CALL ·Xhsearch(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Yhstrerror(tls *TLS, ecode int32) (r uintptr) +TEXT ·Yhstrerror(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL ecode+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xhstrerror(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Yhtonl(tls *TLS, n Tuint32_t) (r Tuint32_t) +TEXT ·Yhtonl(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL n+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xhtonl(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yhtons(tls *TLS, n Tuint16_t) (r Tuint16_t) +TEXT ·Yhtons(SB),$24-18 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVW n+8(FP), AX + MOVW AX, 8(SP) + CALL ·Xhtons(SB) + MOVW 16(SP), AX + MOVW AX, r+16(FP) + RET + +// func Yhypot(tls *TLS, x float64, y float64) (r float64) +TEXT ·Yhypot(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + MOVQ y+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xhypot(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Yhypotf(tls *TLS, x float32, y float32) (r float32) +TEXT ·Yhypotf(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL x+8(FP), AX + MOVL AX, 8(SP) + MOVL y+12(FP), AX + MOVL AX, 12(SP) + CALL ·Xhypotf(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yhypotl(tls *TLS, x float64, y float64) (r float64) +TEXT ·Yhypotl(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + MOVQ y+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xhypotl(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Yiconv(tls *TLS, cd Ticonv_t, in uintptr, inb uintptr, out uintptr, outb uintptr) (r Tsize_t) +TEXT ·Yiconv(SB),$56-56 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ cd+8(FP), AX + MOVQ AX, 8(SP) + MOVQ in+16(FP), AX + MOVQ AX, 16(SP) + MOVQ inb+24(FP), AX + MOVQ AX, 24(SP) + MOVQ out+32(FP), AX + MOVQ AX, 32(SP) + MOVQ outb+40(FP), AX + MOVQ AX, 40(SP) + CALL ·Xiconv(SB) + MOVQ 48(SP), AX + MOVQ AX, r+48(FP) + RET + +// func Yiconv_close(tls *TLS, cd Ticonv_t) (r int32) +TEXT ·Yiconv_close(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ cd+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xiconv_close(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yiconv_open(tls *TLS, to uintptr, from uintptr) (r Ticonv_t) +TEXT ·Yiconv_open(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ to+8(FP), AX + MOVQ AX, 8(SP) + MOVQ from+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xiconv_open(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Yif_freenameindex(tls *TLS, idx uintptr) +TEXT ·Yif_freenameindex(SB),$16-16 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ idx+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xif_freenameindex(SB) + RET + +// func Yif_indextoname(tls *TLS, index uint32, name uintptr) (r1 uintptr) +TEXT ·Yif_indextoname(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL index+8(FP), AX + MOVL AX, 8(SP) + MOVQ name+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xif_indextoname(SB) + MOVQ 24(SP), AX + MOVQ AX, r1+24(FP) + RET + +// func Yif_nameindex(tls *TLS) (r uintptr) +TEXT ·Yif_nameindex(SB),$16-16 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·Xif_nameindex(SB) + MOVQ 8(SP), AX + MOVQ AX, r+8(FP) + RET + +// func Yif_nametoindex(tls *TLS, name uintptr) (r1 uint32) +TEXT ·Yif_nametoindex(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ name+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xif_nametoindex(SB) + MOVL 16(SP), AX + MOVL AX, r1+16(FP) + RET + +// func Yilogb(tls *TLS, x3 float64) (r int32) +TEXT ·Yilogb(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x3+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xilogb(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yilogbf(tls *TLS, x3 float32) (r int32) +TEXT ·Yilogbf(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL x3+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xilogbf(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yilogbl(tls *TLS, x float64) (r int32) +TEXT ·Yilogbl(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xilogbl(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yimaxabs(tls *TLS, a Tintmax_t) (r Tintmax_t) +TEXT ·Yimaxabs(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ a+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Ximaxabs(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Yimaxdiv(tls *TLS, num Tintmax_t, den Tintmax_t) (r Timaxdiv_t) +TEXT ·Yimaxdiv(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ num+8(FP), AX + MOVQ AX, 8(SP) + MOVQ den+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Ximaxdiv(SB) + MOVQ 24(SP), AX + MOVQ AX, r_Fquot+24(FP) + MOVQ 32(SP), AX + MOVQ AX, r_Frem+32(FP) + RET + +// func Yindex(tls *TLS, s uintptr, c int32) (r uintptr) +TEXT ·Yindex(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVL c+16(FP), AX + MOVL AX, 16(SP) + CALL ·Xindex(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Yinet_addr(tls *TLS, p uintptr) (r Tin_addr_t) +TEXT ·Yinet_addr(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ p+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xinet_addr(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yinet_aton(tls *TLS, s0 uintptr, dest uintptr) (r int32) +TEXT ·Yinet_aton(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s0+8(FP), AX + MOVQ AX, 8(SP) + MOVQ dest+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xinet_aton(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yinet_lnaof(tls *TLS, in Tin_addr) (r Tin_addr_t) +TEXT ·Yinet_lnaof(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL in_Fs_addr+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xinet_lnaof(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yinet_makeaddr(tls *TLS, n Tin_addr_t, h Tin_addr_t) (r Tin_addr) +TEXT ·Yinet_makeaddr(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL n+8(FP), AX + MOVL AX, 8(SP) + MOVL h+12(FP), AX + MOVL AX, 12(SP) + CALL ·Xinet_makeaddr(SB) + MOVL 16(SP), AX + MOVL AX, r_Fs_addr+16(FP) + RET + +// func Yinet_netof(tls *TLS, in Tin_addr) (r Tin_addr_t) +TEXT ·Yinet_netof(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL in_Fs_addr+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xinet_netof(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yinet_network(tls *TLS, p uintptr) (r Tin_addr_t) +TEXT ·Yinet_network(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ p+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xinet_network(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yinet_ntoa(tls *TLS, _in Tin_addr) (r uintptr) +TEXT ·Yinet_ntoa(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL _in_Fs_addr+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xinet_ntoa(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Yinet_ntop(tls *TLS, af int32, a0 uintptr, s uintptr, l Tsocklen_t) (r uintptr) +TEXT ·Yinet_ntop(SB),$48-48 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL af+8(FP), AX + MOVL AX, 8(SP) + MOVQ a0+16(FP), AX + MOVQ AX, 16(SP) + MOVQ s+24(FP), AX + MOVQ AX, 24(SP) + MOVL l+32(FP), AX + MOVL AX, 32(SP) + CALL ·Xinet_ntop(SB) + MOVQ 40(SP), AX + MOVQ AX, r+40(FP) + RET + +// func Yinet_pton(tls *TLS, af int32, s uintptr, a0 uintptr) (r int32) +TEXT ·Yinet_pton(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL af+8(FP), AX + MOVL AX, 8(SP) + MOVQ s+16(FP), AX + MOVQ AX, 16(SP) + MOVQ a0+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xinet_pton(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Yinit_module(tls *TLS, a uintptr, b uint64, c uintptr) (r int32) +TEXT ·Yinit_module(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ a+8(FP), AX + MOVQ AX, 8(SP) + MOVQ b+16(FP), AX + MOVQ AX, 16(SP) + MOVQ c+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xinit_module(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Yinitstate(tls *TLS, seed uint32, state uintptr, size Tsize_t) (r uintptr) +TEXT ·Yinitstate(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL seed+8(FP), AX + MOVL AX, 8(SP) + MOVQ state+16(FP), AX + MOVQ AX, 16(SP) + MOVQ size+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xinitstate(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Yinitstate_r(t *TLS, seed uint32, statebuf uintptr, statelen Tsize_t, buf uintptr) (_5 int32) +TEXT ·Yinitstate_r(SB),$48-44 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVL seed+8(FP), AX + MOVL AX, 8(SP) + MOVQ statebuf+16(FP), AX + MOVQ AX, 16(SP) + MOVQ statelen+24(FP), AX + MOVQ AX, 24(SP) + MOVQ buf+32(FP), AX + MOVQ AX, 32(SP) + CALL ·Xinitstate_r(SB) + MOVL 40(SP), AX + MOVL AX, _5+40(FP) + RET + +// func Yinotify_add_watch(tls *TLS, fd int32, pathname uintptr, mask Tuint32_t) (r int32) +TEXT ·Yinotify_add_watch(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVQ pathname+16(FP), AX + MOVQ AX, 16(SP) + MOVL mask+24(FP), AX + MOVL AX, 24(SP) + CALL ·Xinotify_add_watch(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Yinotify_init(tls *TLS) (r int32) +TEXT ·Yinotify_init(SB),$16-12 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·Xinotify_init(SB) + MOVL 8(SP), AX + MOVL AX, r+8(FP) + RET + +// func Yinotify_init1(tls *TLS, flags int32) (r1 int32) +TEXT ·Yinotify_init1(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL flags+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xinotify_init1(SB) + MOVL 16(SP), AX + MOVL AX, r1+16(FP) + RET + +// func Yinotify_rm_watch(tls *TLS, fd int32, wd int32) (r int32) +TEXT ·Yinotify_rm_watch(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVL wd+12(FP), AX + MOVL AX, 12(SP) + CALL ·Xinotify_rm_watch(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yinsque(tls *TLS, element uintptr, pred uintptr) +TEXT ·Yinsque(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ element+8(FP), AX + MOVQ AX, 8(SP) + MOVQ pred+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xinsque(SB) + RET + +// func Yioctl(tls *TLS, fd int32, req int32, va uintptr) (r1 int32) +TEXT ·Yioctl(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVL req+12(FP), AX + MOVL AX, 12(SP) + MOVQ va+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xioctl(SB) + MOVL 24(SP), AX + MOVL AX, r1+24(FP) + RET + +// func Yioperm(tls *TLS, from uint64, num uint64, turn_on int32) (r int32) +TEXT ·Yioperm(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ from+8(FP), AX + MOVQ AX, 8(SP) + MOVQ num+16(FP), AX + MOVQ AX, 16(SP) + MOVL turn_on+24(FP), AX + MOVL AX, 24(SP) + CALL ·Xioperm(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Yiopl(tls *TLS, level int32) (r int32) +TEXT ·Yiopl(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL level+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xiopl(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yisalnum(tls *TLS, c int32) (r int32) +TEXT ·Yisalnum(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xisalnum(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yisalnum_l(tls *TLS, c int32, l Tlocale_t) (r int32) +TEXT ·Yisalnum_l(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + MOVQ l+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xisalnum_l(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yisalpha(tls *TLS, c int32) (r int32) +TEXT ·Yisalpha(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xisalpha(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yisalpha_l(tls *TLS, c int32, l Tlocale_t) (r int32) +TEXT ·Yisalpha_l(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + MOVQ l+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xisalpha_l(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yisascii(tls *TLS, c int32) (r int32) +TEXT ·Yisascii(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xisascii(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yisastream(tls *TLS, fd int32) (r int32) +TEXT ·Yisastream(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xisastream(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yisatty(tls *TLS, fd int32) (r1 int32) +TEXT ·Yisatty(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xisatty(SB) + MOVL 16(SP), AX + MOVL AX, r1+16(FP) + RET + +// func Yisblank(tls *TLS, c int32) (r int32) +TEXT ·Yisblank(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xisblank(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yisblank_l(tls *TLS, c int32, l Tlocale_t) (r int32) +TEXT ·Yisblank_l(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + MOVQ l+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xisblank_l(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yiscntrl(tls *TLS, c int32) (r int32) +TEXT ·Yiscntrl(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xiscntrl(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yiscntrl_l(tls *TLS, c int32, l Tlocale_t) (r int32) +TEXT ·Yiscntrl_l(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + MOVQ l+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xiscntrl_l(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yisdigit(tls *TLS, c int32) (r int32) +TEXT ·Yisdigit(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xisdigit(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yisdigit_l(tls *TLS, c int32, l Tlocale_t) (r int32) +TEXT ·Yisdigit_l(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + MOVQ l+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xisdigit_l(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yisgraph(tls *TLS, c int32) (r int32) +TEXT ·Yisgraph(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xisgraph(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yisgraph_l(tls *TLS, c int32, l Tlocale_t) (r int32) +TEXT ·Yisgraph_l(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + MOVQ l+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xisgraph_l(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yislower(tls *TLS, c int32) (r int32) +TEXT ·Yislower(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xislower(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yislower_l(tls *TLS, c int32, l Tlocale_t) (r int32) +TEXT ·Yislower_l(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + MOVQ l+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xislower_l(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yisnan(t *TLS, x float64) (_2 int32) +TEXT ·Yisnan(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xisnan(SB) + MOVL 16(SP), AX + MOVL AX, _2+16(FP) + RET + +// func Yisnanf(t *TLS, arg float32) (_2 int32) +TEXT ·Yisnanf(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVL arg+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xisnanf(SB) + MOVL 16(SP), AX + MOVL AX, _2+16(FP) + RET + +// func Yisnanl(t *TLS, arg float64) (_2 int32) +TEXT ·Yisnanl(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ arg+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xisnanl(SB) + MOVL 16(SP), AX + MOVL AX, _2+16(FP) + RET + +// func Yisprint(tls *TLS, c int32) (r int32) +TEXT ·Yisprint(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xisprint(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yisprint_l(tls *TLS, c int32, l Tlocale_t) (r int32) +TEXT ·Yisprint_l(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + MOVQ l+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xisprint_l(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yispunct(tls *TLS, c int32) (r int32) +TEXT ·Yispunct(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xispunct(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yispunct_l(tls *TLS, c int32, l Tlocale_t) (r int32) +TEXT ·Yispunct_l(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + MOVQ l+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xispunct_l(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yissetugid(tls *TLS) (r int32) +TEXT ·Yissetugid(SB),$16-12 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·Xissetugid(SB) + MOVL 8(SP), AX + MOVL AX, r+8(FP) + RET + +// func Yisspace(tls *TLS, c int32) (r int32) +TEXT ·Yisspace(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xisspace(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yisspace_l(tls *TLS, c int32, l Tlocale_t) (r int32) +TEXT ·Yisspace_l(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + MOVQ l+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xisspace_l(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yisupper(tls *TLS, c int32) (r int32) +TEXT ·Yisupper(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xisupper(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yisupper_l(tls *TLS, c int32, l Tlocale_t) (r int32) +TEXT ·Yisupper_l(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + MOVQ l+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xisupper_l(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yiswalnum(tls *TLS, wc Twint_t) (r int32) +TEXT ·Yiswalnum(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL wc+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xiswalnum(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yiswalnum_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) +TEXT ·Yiswalnum_l(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + MOVQ l+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xiswalnum_l(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yiswalpha(tls *TLS, wc Twint_t) (r int32) +TEXT ·Yiswalpha(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL wc+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xiswalpha(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yiswalpha_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) +TEXT ·Yiswalpha_l(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + MOVQ l+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xiswalpha_l(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yiswblank(tls *TLS, wc Twint_t) (r int32) +TEXT ·Yiswblank(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL wc+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xiswblank(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yiswblank_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) +TEXT ·Yiswblank_l(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + MOVQ l+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xiswblank_l(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yiswcntrl(tls *TLS, wc Twint_t) (r int32) +TEXT ·Yiswcntrl(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL wc+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xiswcntrl(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yiswcntrl_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) +TEXT ·Yiswcntrl_l(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + MOVQ l+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xiswcntrl_l(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yiswctype(tls *TLS, wc Twint_t, type1 Twctype_t) (r int32) +TEXT ·Yiswctype(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL wc+8(FP), AX + MOVL AX, 8(SP) + MOVQ type1+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xiswctype(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yiswctype_l(tls *TLS, c Twint_t, t Twctype_t, l Tlocale_t) (r int32) +TEXT ·Yiswctype_l(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + MOVQ t+16(FP), AX + MOVQ AX, 16(SP) + MOVQ l+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xiswctype_l(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Yiswdigit(tls *TLS, wc Twint_t) (r int32) +TEXT ·Yiswdigit(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL wc+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xiswdigit(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yiswdigit_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) +TEXT ·Yiswdigit_l(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + MOVQ l+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xiswdigit_l(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yiswgraph(tls *TLS, wc Twint_t) (r int32) +TEXT ·Yiswgraph(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL wc+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xiswgraph(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yiswgraph_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) +TEXT ·Yiswgraph_l(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + MOVQ l+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xiswgraph_l(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yiswlower(tls *TLS, wc Twint_t) (r int32) +TEXT ·Yiswlower(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL wc+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xiswlower(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yiswlower_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) +TEXT ·Yiswlower_l(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + MOVQ l+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xiswlower_l(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yiswprint(tls *TLS, wc Twint_t) (r int32) +TEXT ·Yiswprint(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL wc+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xiswprint(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yiswprint_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) +TEXT ·Yiswprint_l(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + MOVQ l+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xiswprint_l(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yiswpunct(tls *TLS, wc Twint_t) (r int32) +TEXT ·Yiswpunct(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL wc+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xiswpunct(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yiswpunct_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) +TEXT ·Yiswpunct_l(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + MOVQ l+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xiswpunct_l(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yiswspace(tls *TLS, wc Twint_t) (r int32) +TEXT ·Yiswspace(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL wc+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xiswspace(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yiswspace_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) +TEXT ·Yiswspace_l(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + MOVQ l+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xiswspace_l(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yiswupper(tls *TLS, wc Twint_t) (r int32) +TEXT ·Yiswupper(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL wc+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xiswupper(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yiswupper_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) +TEXT ·Yiswupper_l(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + MOVQ l+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xiswupper_l(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yiswxdigit(tls *TLS, wc Twint_t) (r int32) +TEXT ·Yiswxdigit(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL wc+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xiswxdigit(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yiswxdigit_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) +TEXT ·Yiswxdigit_l(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + MOVQ l+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xiswxdigit_l(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yisxdigit(tls *TLS, c int32) (r int32) +TEXT ·Yisxdigit(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xisxdigit(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yisxdigit_l(tls *TLS, c int32, l Tlocale_t) (r int32) +TEXT ·Yisxdigit_l(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + MOVQ l+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xisxdigit_l(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yj0(tls *TLS, x float64) (r1 float64) +TEXT ·Yj0(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xj0(SB) + MOVQ 16(SP), AX + MOVQ AX, r1+16(FP) + RET + +// func Yj0f(tls *TLS, x float32) (r1 float32) +TEXT ·Yj0f(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL x+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xj0f(SB) + MOVL 16(SP), AX + MOVL AX, r1+16(FP) + RET + +// func Yj1(tls *TLS, x float64) (r1 float64) +TEXT ·Yj1(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xj1(SB) + MOVQ 16(SP), AX + MOVQ AX, r1+16(FP) + RET + +// func Yj1f(tls *TLS, x float32) (r1 float32) +TEXT ·Yj1f(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL x+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xj1f(SB) + MOVL 16(SP), AX + MOVL AX, r1+16(FP) + RET + +// func Yjn(tls *TLS, n int32, x float64) (r float64) +TEXT ·Yjn(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL n+8(FP), AX + MOVL AX, 8(SP) + MOVQ x+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xjn(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Yjnf(tls *TLS, n int32, x float32) (r float32) +TEXT ·Yjnf(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL n+8(FP), AX + MOVL AX, 8(SP) + MOVL x+12(FP), AX + MOVL AX, 12(SP) + CALL ·Xjnf(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yjrand48(tls *TLS, s uintptr) (r int64) +TEXT ·Yjrand48(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xjrand48(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ykill(tls *TLS, pid Tpid_t, sig int32) (r int32) +TEXT ·Ykill(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL pid+8(FP), AX + MOVL AX, 8(SP) + MOVL sig+12(FP), AX + MOVL AX, 12(SP) + CALL ·Xkill(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ykillpg(tls *TLS, pgid Tpid_t, sig int32) (r int32) +TEXT ·Ykillpg(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL pgid+8(FP), AX + MOVL AX, 8(SP) + MOVL sig+12(FP), AX + MOVL AX, 12(SP) + CALL ·Xkillpg(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yklogctl(tls *TLS, type1 int32, buf uintptr, len1 int32) (r int32) +TEXT ·Yklogctl(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL type1+8(FP), AX + MOVL AX, 8(SP) + MOVQ buf+16(FP), AX + MOVQ AX, 16(SP) + MOVL len1+24(FP), AX + MOVL AX, 24(SP) + CALL ·Xklogctl(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Yl64a(tls *TLS, x0 int64) (r uintptr) +TEXT ·Yl64a(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x0+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xl64a(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ylabs(tls *TLS, a int64) (r int64) +TEXT ·Ylabs(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ a+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xlabs(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ylchmod(tls *TLS, path uintptr, mode Tmode_t) (r int32) +TEXT ·Ylchmod(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ path+8(FP), AX + MOVQ AX, 8(SP) + MOVL mode+16(FP), AX + MOVL AX, 16(SP) + CALL ·Xlchmod(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ylchown(tls *TLS, path uintptr, uid Tuid_t, gid Tgid_t) (r int32) +TEXT ·Ylchown(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ path+8(FP), AX + MOVQ AX, 8(SP) + MOVL uid+16(FP), AX + MOVL AX, 16(SP) + MOVL gid+20(FP), AX + MOVL AX, 20(SP) + CALL ·Xlchown(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ylckpwdf(tls *TLS) (r int32) +TEXT ·Ylckpwdf(SB),$16-12 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·Xlckpwdf(SB) + MOVL 8(SP), AX + MOVL AX, r+8(FP) + RET + +// func Ylcong48(tls *TLS, p uintptr) +TEXT ·Ylcong48(SB),$16-16 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ p+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xlcong48(SB) + RET + +// func Yldexp(tls *TLS, x float64, n int32) (r float64) +TEXT ·Yldexp(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + MOVL n+16(FP), AX + MOVL AX, 16(SP) + CALL ·Xldexp(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Yldexpf(tls *TLS, x float32, n int32) (r float32) +TEXT ·Yldexpf(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL x+8(FP), AX + MOVL AX, 8(SP) + MOVL n+12(FP), AX + MOVL AX, 12(SP) + CALL ·Xldexpf(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yldexpl(tls *TLS, x float64, n int32) (r float64) +TEXT ·Yldexpl(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + MOVL n+16(FP), AX + MOVL AX, 16(SP) + CALL ·Xldexpl(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Yldiv(tls *TLS, num int64, den int64) (r Tldiv_t) +TEXT ·Yldiv(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ num+8(FP), AX + MOVQ AX, 8(SP) + MOVQ den+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xldiv(SB) + MOVQ 24(SP), AX + MOVQ AX, r_Fquot+24(FP) + MOVQ 32(SP), AX + MOVQ AX, r_Frem+32(FP) + RET + +// func Ylfind(tls *TLS, key uintptr, base uintptr, nelp uintptr, width Tsize_t, __ccgo_fp_compar uintptr) (r uintptr) +TEXT ·Ylfind(SB),$64-56 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX // alloc all ABI trampolines + MOVQ AX, 0(SP) + MOVQ $16, 8(SP) // 16*(number of func ptrs in signature) + CALL modernc·org∕libc·TLSAlloc(SB) + MOVQ 16(SP), AX + MOVQ AX, -8(BP) // Trampolines[0] + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ -8(BP), AX + ADDQ $0, AX // 16*(0-based ordinal number of the func ptr in signature) + MOVQ AX, 8(SP) + MOVQ __ccgo_fp_compar+40(FP), AX // ABI0 code ptr + MOVQ AX, 16(SP) + CALL ·__ccgo_abiInternal_lfind_4(SB) // Create the closure for calling __ccgo_fp_compar + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ key+8(FP), AX + MOVQ AX, 8(SP) + MOVQ base+16(FP), AX + MOVQ AX, 16(SP) + MOVQ nelp+24(FP), AX + MOVQ AX, 24(SP) + MOVQ width+32(FP), AX + MOVQ AX, 32(SP) + MOVQ -8(BP), AX // Trampolines[0] + ADDQ $0, AX // 16*(0-based ordinal number of the func ptr in signature) + MOVQ AX, 40(SP) + CALL ·Xlfind(SB) + MOVQ 48(SP), AX + MOVQ AX, r+48(FP) + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ $0, 8(SP) + CALL modernc·org∕libc·TLSFree(SB) + RET + +TEXT ·__ccgo_abi0_lfind_4(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ _0+0(FP), AX + MOVQ AX, 0(SP) + MOVQ _1+8(FP), AX + MOVQ AX, 8(SP) + MOVQ _2+16(FP), AX + MOVQ AX, 16(SP) + MOVQ __ccgo_fp+24(FP), AX + CALL *AX // Call the ABI0 code ptr + MOVL 24(SP), AX + MOVL AX, _3+32(FP) + RET + +// func Ylgamma(tls *TLS, x float64) (r float64) +TEXT ·Ylgamma(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xlgamma(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ylgamma_r(tls *TLS, x float64, signgamp uintptr) (r float64) +TEXT ·Ylgamma_r(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + MOVQ signgamp+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xlgamma_r(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Ylgammaf(tls *TLS, x float32) (r float32) +TEXT ·Ylgammaf(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL x+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xlgammaf(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ylgammaf_r(tls *TLS, x float32, signgamp uintptr) (r float32) +TEXT ·Ylgammaf_r(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL x+8(FP), AX + MOVL AX, 8(SP) + MOVQ signgamp+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xlgammaf_r(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ylgammal(tls *TLS, x float64) (r float64) +TEXT ·Ylgammal(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xlgammal(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ylgammal_r(tls *TLS, x float64, sg uintptr) (r float64) +TEXT ·Ylgammal_r(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + MOVQ sg+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xlgammal_r(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Ylgetxattr(tls *TLS, path uintptr, name uintptr, value uintptr, size Tsize_t) (r Tssize_t) +TEXT ·Ylgetxattr(SB),$48-48 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ path+8(FP), AX + MOVQ AX, 8(SP) + MOVQ name+16(FP), AX + MOVQ AX, 16(SP) + MOVQ value+24(FP), AX + MOVQ AX, 24(SP) + MOVQ size+32(FP), AX + MOVQ AX, 32(SP) + CALL ·Xlgetxattr(SB) + MOVQ 40(SP), AX + MOVQ AX, r+40(FP) + RET + +// func Ylink(tls *TLS, existing uintptr, new1 uintptr) (r int32) +TEXT ·Ylink(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ existing+8(FP), AX + MOVQ AX, 8(SP) + MOVQ new1+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xlink(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ylinkat(tls *TLS, fd1 int32, existing uintptr, fd2 int32, new1 uintptr, flag int32) (r int32) +TEXT ·Ylinkat(SB),$56-52 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd1+8(FP), AX + MOVL AX, 8(SP) + MOVQ existing+16(FP), AX + MOVQ AX, 16(SP) + MOVL fd2+24(FP), AX + MOVL AX, 24(SP) + MOVQ new1+32(FP), AX + MOVQ AX, 32(SP) + MOVL flag+40(FP), AX + MOVL AX, 40(SP) + CALL ·Xlinkat(SB) + MOVL 48(SP), AX + MOVL AX, r+48(FP) + RET + +// func Ylisten(tls *TLS, fd int32, backlog int32) (r1 int32) +TEXT ·Ylisten(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVL backlog+12(FP), AX + MOVL AX, 12(SP) + CALL ·Xlisten(SB) + MOVL 16(SP), AX + MOVL AX, r1+16(FP) + RET + +// func Ylistxattr(tls *TLS, path uintptr, list uintptr, size Tsize_t) (r Tssize_t) +TEXT ·Ylistxattr(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ path+8(FP), AX + MOVQ AX, 8(SP) + MOVQ list+16(FP), AX + MOVQ AX, 16(SP) + MOVQ size+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xlistxattr(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Yllabs(tls *TLS, a int64) (r int64) +TEXT ·Yllabs(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ a+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xllabs(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ylldiv(tls *TLS, num int64, den int64) (r Tlldiv_t) +TEXT ·Ylldiv(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ num+8(FP), AX + MOVQ AX, 8(SP) + MOVQ den+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xlldiv(SB) + MOVQ 24(SP), AX + MOVQ AX, r_Fquot+24(FP) + MOVQ 32(SP), AX + MOVQ AX, r_Frem+32(FP) + RET + +// func Yllistxattr(tls *TLS, path uintptr, list uintptr, size Tsize_t) (r Tssize_t) +TEXT ·Yllistxattr(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ path+8(FP), AX + MOVQ AX, 8(SP) + MOVQ list+16(FP), AX + MOVQ AX, 16(SP) + MOVQ size+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xllistxattr(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Yllrint(tls *TLS, x float64) (r int64) +TEXT ·Yllrint(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xllrint(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Yllrintf(tls *TLS, x float32) (r int64) +TEXT ·Yllrintf(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL x+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xllrintf(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Yllrintl(tls *TLS, x float64) (r int64) +TEXT ·Yllrintl(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xllrintl(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Yllround(tls *TLS, x float64) (r int64) +TEXT ·Yllround(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xllround(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Yllroundf(tls *TLS, x float32) (r int64) +TEXT ·Yllroundf(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL x+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xllroundf(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Yllroundl(tls *TLS, x float64) (r int64) +TEXT ·Yllroundl(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xllroundl(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ylocaleconv(tls *TLS) (r uintptr) +TEXT ·Ylocaleconv(SB),$16-16 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·Xlocaleconv(SB) + MOVQ 8(SP), AX + MOVQ AX, r+8(FP) + RET + +// func Ylocaltime(tls *TLS, t uintptr) (r uintptr) +TEXT ·Ylocaltime(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ t+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xlocaltime(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ylocaltime_r(tls *TLS, t uintptr, tm uintptr) (r uintptr) +TEXT ·Ylocaltime_r(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ t+8(FP), AX + MOVQ AX, 8(SP) + MOVQ tm+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xlocaltime_r(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Ylockf(tls *TLS, fd int32, op int32, size Toff_t) (r int32) +TEXT ·Ylockf(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVL op+12(FP), AX + MOVL AX, 12(SP) + MOVQ size+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xlockf(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ylog(tls *TLS, x1 float64) (r1 float64) +TEXT ·Ylog(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x1+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xlog(SB) + MOVQ 16(SP), AX + MOVQ AX, r1+16(FP) + RET + +// func Ylog10(tls *TLS, x float64) (r float64) +TEXT ·Ylog10(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xlog10(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ylog10f(tls *TLS, x float32) (r float32) +TEXT ·Ylog10f(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL x+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xlog10f(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ylog10l(tls *TLS, x float64) (r float64) +TEXT ·Ylog10l(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xlog10l(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ylog1p(tls *TLS, x3 float64) (r float64) +TEXT ·Ylog1p(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x3+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xlog1p(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ylog1pf(tls *TLS, x3 float32) (r float32) +TEXT ·Ylog1pf(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL x3+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xlog1pf(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ylog1pl(tls *TLS, x float64) (r float64) +TEXT ·Ylog1pl(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xlog1pl(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ylog2(tls *TLS, x1 float64) (r1 float64) +TEXT ·Ylog2(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x1+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xlog2(SB) + MOVQ 16(SP), AX + MOVQ AX, r1+16(FP) + RET + +// func Ylog2f(tls *TLS, x1 float32) (r1 float32) +TEXT ·Ylog2f(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL x1+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xlog2f(SB) + MOVL 16(SP), AX + MOVL AX, r1+16(FP) + RET + +// func Ylog2l(tls *TLS, x float64) (r float64) +TEXT ·Ylog2l(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xlog2l(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ylogb(tls *TLS, x float64) (r float64) +TEXT ·Ylogb(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xlogb(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ylogbf(tls *TLS, x float32) (r float32) +TEXT ·Ylogbf(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL x+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xlogbf(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ylogbl(tls *TLS, x float64) (r float64) +TEXT ·Ylogbl(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xlogbl(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ylogf(tls *TLS, x1 float32) (r1 float32) +TEXT ·Ylogf(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL x1+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xlogf(SB) + MOVL 16(SP), AX + MOVL AX, r1+16(FP) + RET + +// func Ylogin_tty(tls *TLS, fd int32) (r int32) +TEXT ·Ylogin_tty(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xlogin_tty(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ylogl(tls *TLS, x float64) (r float64) +TEXT ·Ylogl(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xlogl(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ylongjmp(t *TLS, env uintptr, val int32) +TEXT ·Ylongjmp(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ env+8(FP), AX + MOVQ AX, 8(SP) + MOVL val+16(FP), AX + MOVL AX, 16(SP) + CALL ·Xlongjmp(SB) + RET + +// func Ylrand48(tls *TLS) (r int64) +TEXT ·Ylrand48(SB),$16-16 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·Xlrand48(SB) + MOVQ 8(SP), AX + MOVQ AX, r+8(FP) + RET + +// func Ylremovexattr(tls *TLS, path uintptr, name uintptr) (r int32) +TEXT ·Ylremovexattr(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ path+8(FP), AX + MOVQ AX, 8(SP) + MOVQ name+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xlremovexattr(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ylrint(tls *TLS, x float64) (r int64) +TEXT ·Ylrint(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xlrint(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ylrintf(tls *TLS, x float32) (r int64) +TEXT ·Ylrintf(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL x+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xlrintf(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ylrintl(tls *TLS, x float64) (r int64) +TEXT ·Ylrintl(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xlrintl(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ylround(tls *TLS, x float64) (r int64) +TEXT ·Ylround(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xlround(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ylroundf(tls *TLS, x float32) (r int64) +TEXT ·Ylroundf(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL x+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xlroundf(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ylroundl(tls *TLS, x float64) (r int64) +TEXT ·Ylroundl(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xlroundl(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ylsearch(tls *TLS, key uintptr, base uintptr, nelp uintptr, width Tsize_t, __ccgo_fp_compar uintptr) (r uintptr) +TEXT ·Ylsearch(SB),$64-56 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX // alloc all ABI trampolines + MOVQ AX, 0(SP) + MOVQ $16, 8(SP) // 16*(number of func ptrs in signature) + CALL modernc·org∕libc·TLSAlloc(SB) + MOVQ 16(SP), AX + MOVQ AX, -8(BP) // Trampolines[0] + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ -8(BP), AX + ADDQ $0, AX // 16*(0-based ordinal number of the func ptr in signature) + MOVQ AX, 8(SP) + MOVQ __ccgo_fp_compar+40(FP), AX // ABI0 code ptr + MOVQ AX, 16(SP) + CALL ·__ccgo_abiInternal_lsearch_4(SB) // Create the closure for calling __ccgo_fp_compar + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ key+8(FP), AX + MOVQ AX, 8(SP) + MOVQ base+16(FP), AX + MOVQ AX, 16(SP) + MOVQ nelp+24(FP), AX + MOVQ AX, 24(SP) + MOVQ width+32(FP), AX + MOVQ AX, 32(SP) + MOVQ -8(BP), AX // Trampolines[0] + ADDQ $0, AX // 16*(0-based ordinal number of the func ptr in signature) + MOVQ AX, 40(SP) + CALL ·Xlsearch(SB) + MOVQ 48(SP), AX + MOVQ AX, r+48(FP) + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ $0, 8(SP) + CALL modernc·org∕libc·TLSFree(SB) + RET + +TEXT ·__ccgo_abi0_lsearch_4(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ _0+0(FP), AX + MOVQ AX, 0(SP) + MOVQ _1+8(FP), AX + MOVQ AX, 8(SP) + MOVQ _2+16(FP), AX + MOVQ AX, 16(SP) + MOVQ __ccgo_fp+24(FP), AX + CALL *AX // Call the ABI0 code ptr + MOVL 24(SP), AX + MOVL AX, _3+32(FP) + RET + +// func Ylseek(tls *TLS, fd int32, offset Toff_t, whence int32) (r Toff_t) +TEXT ·Ylseek(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVQ offset+16(FP), AX + MOVQ AX, 16(SP) + MOVL whence+24(FP), AX + MOVL AX, 24(SP) + CALL ·Xlseek(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Ylseek64(tls *TLS, fd int32, offset Toff_t, whence int32) (r Toff_t) +TEXT ·Ylseek64(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVQ offset+16(FP), AX + MOVQ AX, 16(SP) + MOVL whence+24(FP), AX + MOVL AX, 24(SP) + CALL ·Xlseek64(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Ylsetxattr(tls *TLS, path uintptr, name uintptr, value uintptr, size Tsize_t, flags int32) (r int32) +TEXT ·Ylsetxattr(SB),$56-52 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ path+8(FP), AX + MOVQ AX, 8(SP) + MOVQ name+16(FP), AX + MOVQ AX, 16(SP) + MOVQ value+24(FP), AX + MOVQ AX, 24(SP) + MOVQ size+32(FP), AX + MOVQ AX, 32(SP) + MOVL flags+40(FP), AX + MOVL AX, 40(SP) + CALL ·Xlsetxattr(SB) + MOVL 48(SP), AX + MOVL AX, r+48(FP) + RET + +// func Ylstat(tls *TLS, path uintptr, buf uintptr) (r int32) +TEXT ·Ylstat(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ path+8(FP), AX + MOVQ AX, 8(SP) + MOVQ buf+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xlstat(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ylstat64(tls *TLS, path uintptr, buf uintptr) (r int32) +TEXT ·Ylstat64(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ path+8(FP), AX + MOVQ AX, 8(SP) + MOVQ buf+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xlstat64(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ylutimes(tls *TLS, filename uintptr, tv uintptr) (r int32) +TEXT ·Ylutimes(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ filename+8(FP), AX + MOVQ AX, 8(SP) + MOVQ tv+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xlutimes(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ymadvise(tls *TLS, addr uintptr, len1 Tsize_t, advice int32) (r int32) +TEXT ·Ymadvise(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ addr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ len1+16(FP), AX + MOVQ AX, 16(SP) + MOVL advice+24(FP), AX + MOVL AX, 24(SP) + CALL ·Xmadvise(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Ymalloc(tls *TLS, n Tsize_t) (r uintptr) +TEXT ·Ymalloc(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ n+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xmalloc(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ymalloc_usable_size(tls *TLS, p uintptr) (r Tsize_t) +TEXT ·Ymalloc_usable_size(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ p+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xmalloc_usable_size(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ymblen(tls *TLS, s uintptr, n Tsize_t) (r int32) +TEXT ·Ymblen(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ n+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xmblen(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ymbrlen(tls *TLS, s uintptr, n Tsize_t, st uintptr) (r Tsize_t) +TEXT ·Ymbrlen(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ n+16(FP), AX + MOVQ AX, 16(SP) + MOVQ st+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xmbrlen(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Ymbrtoc16(tls *TLS, pc16 uintptr, s uintptr, n Tsize_t, ps uintptr) (r Tsize_t) +TEXT ·Ymbrtoc16(SB),$48-48 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ pc16+8(FP), AX + MOVQ AX, 8(SP) + MOVQ s+16(FP), AX + MOVQ AX, 16(SP) + MOVQ n+24(FP), AX + MOVQ AX, 24(SP) + MOVQ ps+32(FP), AX + MOVQ AX, 32(SP) + CALL ·Xmbrtoc16(SB) + MOVQ 40(SP), AX + MOVQ AX, r+40(FP) + RET + +// func Ymbrtoc32(tls *TLS, pc32 uintptr, s uintptr, n Tsize_t, ps uintptr) (r Tsize_t) +TEXT ·Ymbrtoc32(SB),$48-48 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ pc32+8(FP), AX + MOVQ AX, 8(SP) + MOVQ s+16(FP), AX + MOVQ AX, 16(SP) + MOVQ n+24(FP), AX + MOVQ AX, 24(SP) + MOVQ ps+32(FP), AX + MOVQ AX, 32(SP) + CALL ·Xmbrtoc32(SB) + MOVQ 40(SP), AX + MOVQ AX, r+40(FP) + RET + +// func Ymbrtowc(tls *TLS, wc uintptr, src uintptr, n Tsize_t, st uintptr) (r Tsize_t) +TEXT ·Ymbrtowc(SB),$48-48 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ wc+8(FP), AX + MOVQ AX, 8(SP) + MOVQ src+16(FP), AX + MOVQ AX, 16(SP) + MOVQ n+24(FP), AX + MOVQ AX, 24(SP) + MOVQ st+32(FP), AX + MOVQ AX, 32(SP) + CALL ·Xmbrtowc(SB) + MOVQ 40(SP), AX + MOVQ AX, r+40(FP) + RET + +// func Ymbsinit(tls *TLS, st uintptr) (r int32) +TEXT ·Ymbsinit(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ st+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xmbsinit(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ymbsnrtowcs(tls *TLS, wcs uintptr, src uintptr, n Tsize_t, wn Tsize_t, st uintptr) (r Tsize_t) +TEXT ·Ymbsnrtowcs(SB),$56-56 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ wcs+8(FP), AX + MOVQ AX, 8(SP) + MOVQ src+16(FP), AX + MOVQ AX, 16(SP) + MOVQ n+24(FP), AX + MOVQ AX, 24(SP) + MOVQ wn+32(FP), AX + MOVQ AX, 32(SP) + MOVQ st+40(FP), AX + MOVQ AX, 40(SP) + CALL ·Xmbsnrtowcs(SB) + MOVQ 48(SP), AX + MOVQ AX, r+48(FP) + RET + +// func Ymbsrtowcs(tls *TLS, ws uintptr, src uintptr, wn Tsize_t, st uintptr) (r Tsize_t) +TEXT ·Ymbsrtowcs(SB),$48-48 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ws+8(FP), AX + MOVQ AX, 8(SP) + MOVQ src+16(FP), AX + MOVQ AX, 16(SP) + MOVQ wn+24(FP), AX + MOVQ AX, 24(SP) + MOVQ st+32(FP), AX + MOVQ AX, 32(SP) + CALL ·Xmbsrtowcs(SB) + MOVQ 40(SP), AX + MOVQ AX, r+40(FP) + RET + +// func Ymbstowcs(tls *TLS, ws uintptr, _s uintptr, wn Tsize_t) (r Tsize_t) +TEXT ·Ymbstowcs(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ws+8(FP), AX + MOVQ AX, 8(SP) + MOVQ _s+16(FP), AX + MOVQ AX, 16(SP) + MOVQ wn+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xmbstowcs(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Ymbtowc(tls *TLS, wc uintptr, src uintptr, n Tsize_t) (r int32) +TEXT ·Ymbtowc(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ wc+8(FP), AX + MOVQ AX, 8(SP) + MOVQ src+16(FP), AX + MOVQ AX, 16(SP) + MOVQ n+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xmbtowc(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Ymemccpy(tls *TLS, dest uintptr, src uintptr, c int32, n Tsize_t) (r uintptr) +TEXT ·Ymemccpy(SB),$48-48 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ dest+8(FP), AX + MOVQ AX, 8(SP) + MOVQ src+16(FP), AX + MOVQ AX, 16(SP) + MOVL c+24(FP), AX + MOVL AX, 24(SP) + MOVQ n+32(FP), AX + MOVQ AX, 32(SP) + CALL ·Xmemccpy(SB) + MOVQ 40(SP), AX + MOVQ AX, r+40(FP) + RET + +// func Ymemchr(tls *TLS, src uintptr, c int32, n Tsize_t) (r uintptr) +TEXT ·Ymemchr(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ src+8(FP), AX + MOVQ AX, 8(SP) + MOVL c+16(FP), AX + MOVL AX, 16(SP) + MOVQ n+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xmemchr(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Ymemcmp(tls *TLS, vl uintptr, vr uintptr, n Tsize_t) (r1 int32) +TEXT ·Ymemcmp(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ vl+8(FP), AX + MOVQ AX, 8(SP) + MOVQ vr+16(FP), AX + MOVQ AX, 16(SP) + MOVQ n+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xmemcmp(SB) + MOVL 32(SP), AX + MOVL AX, r1+32(FP) + RET + +// func Ymemcpy(tls *TLS, dest uintptr, src uintptr, n Tsize_t) (r uintptr) +TEXT ·Ymemcpy(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ dest+8(FP), AX + MOVQ AX, 8(SP) + MOVQ src+16(FP), AX + MOVQ AX, 16(SP) + MOVQ n+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xmemcpy(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Ymemfd_create(tls *TLS, name uintptr, flags uint32) (r int32) +TEXT ·Ymemfd_create(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ name+8(FP), AX + MOVQ AX, 8(SP) + MOVL flags+16(FP), AX + MOVL AX, 16(SP) + CALL ·Xmemfd_create(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ymemmem(tls *TLS, h0 uintptr, k Tsize_t, n0 uintptr, l Tsize_t) (r uintptr) +TEXT ·Ymemmem(SB),$48-48 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ h0+8(FP), AX + MOVQ AX, 8(SP) + MOVQ k+16(FP), AX + MOVQ AX, 16(SP) + MOVQ n0+24(FP), AX + MOVQ AX, 24(SP) + MOVQ l+32(FP), AX + MOVQ AX, 32(SP) + CALL ·Xmemmem(SB) + MOVQ 40(SP), AX + MOVQ AX, r+40(FP) + RET + +// func Ymemmove(tls *TLS, dest uintptr, src uintptr, n Tsize_t) (r uintptr) +TEXT ·Ymemmove(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ dest+8(FP), AX + MOVQ AX, 8(SP) + MOVQ src+16(FP), AX + MOVQ AX, 16(SP) + MOVQ n+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xmemmove(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Ymempcpy(tls *TLS, dest uintptr, src uintptr, n Tsize_t) (r uintptr) +TEXT ·Ymempcpy(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ dest+8(FP), AX + MOVQ AX, 8(SP) + MOVQ src+16(FP), AX + MOVQ AX, 16(SP) + MOVQ n+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xmempcpy(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Ymemrchr(tls *TLS, m uintptr, c int32, n Tsize_t) (r uintptr) +TEXT ·Ymemrchr(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ m+8(FP), AX + MOVQ AX, 8(SP) + MOVL c+16(FP), AX + MOVL AX, 16(SP) + MOVQ n+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xmemrchr(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Ymemset(tls *TLS, dest uintptr, c int32, n Tsize_t) (r uintptr) +TEXT ·Ymemset(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ dest+8(FP), AX + MOVQ AX, 8(SP) + MOVL c+16(FP), AX + MOVL AX, 16(SP) + MOVQ n+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xmemset(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Ymincore(tls *TLS, addr uintptr, len1 Tsize_t, vec uintptr) (r int32) +TEXT ·Ymincore(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ addr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ len1+16(FP), AX + MOVQ AX, 16(SP) + MOVQ vec+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xmincore(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Ymkdir(tls *TLS, path uintptr, mode Tmode_t) (r int32) +TEXT ·Ymkdir(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ path+8(FP), AX + MOVQ AX, 8(SP) + MOVL mode+16(FP), AX + MOVL AX, 16(SP) + CALL ·Xmkdir(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ymkdirat(tls *TLS, fd int32, path uintptr, mode Tmode_t) (r int32) +TEXT ·Ymkdirat(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVQ path+16(FP), AX + MOVQ AX, 16(SP) + MOVL mode+24(FP), AX + MOVL AX, 24(SP) + CALL ·Xmkdirat(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Ymkdtemp(tls *TLS, template uintptr) (r uintptr) +TEXT ·Ymkdtemp(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ template+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xmkdtemp(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ymkfifo(tls *TLS, path uintptr, mode Tmode_t) (r int32) +TEXT ·Ymkfifo(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ path+8(FP), AX + MOVQ AX, 8(SP) + MOVL mode+16(FP), AX + MOVL AX, 16(SP) + CALL ·Xmkfifo(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ymkfifoat(tls *TLS, fd int32, path uintptr, mode Tmode_t) (r int32) +TEXT ·Ymkfifoat(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVQ path+16(FP), AX + MOVQ AX, 16(SP) + MOVL mode+24(FP), AX + MOVL AX, 24(SP) + CALL ·Xmkfifoat(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Ymknod(tls *TLS, path uintptr, mode Tmode_t, dev Tdev_t) (r int32) +TEXT ·Ymknod(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ path+8(FP), AX + MOVQ AX, 8(SP) + MOVL mode+16(FP), AX + MOVL AX, 16(SP) + MOVQ dev+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xmknod(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Ymknodat(tls *TLS, fd int32, path uintptr, mode Tmode_t, dev Tdev_t) (r int32) +TEXT ·Ymknodat(SB),$48-44 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVQ path+16(FP), AX + MOVQ AX, 16(SP) + MOVL mode+24(FP), AX + MOVL AX, 24(SP) + MOVQ dev+32(FP), AX + MOVQ AX, 32(SP) + CALL ·Xmknodat(SB) + MOVL 40(SP), AX + MOVL AX, r+40(FP) + RET + +// func Ymkostemp(tls *TLS, template uintptr, flags int32) (r int32) +TEXT ·Ymkostemp(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ template+8(FP), AX + MOVQ AX, 8(SP) + MOVL flags+16(FP), AX + MOVL AX, 16(SP) + CALL ·Xmkostemp(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ymkostemps(tls *TLS, template uintptr, len1 int32, flags int32) (r int32) +TEXT ·Ymkostemps(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ template+8(FP), AX + MOVQ AX, 8(SP) + MOVL len1+16(FP), AX + MOVL AX, 16(SP) + MOVL flags+20(FP), AX + MOVL AX, 20(SP) + CALL ·Xmkostemps(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ymkstemp(tls *TLS, template uintptr) (r int32) +TEXT ·Ymkstemp(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ template+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xmkstemp(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ymkstemp64(tls *TLS, template uintptr) (r int32) +TEXT ·Ymkstemp64(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ template+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xmkstemp64(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ymkstemps(tls *TLS, template uintptr, len1 int32) (r int32) +TEXT ·Ymkstemps(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ template+8(FP), AX + MOVQ AX, 8(SP) + MOVL len1+16(FP), AX + MOVL AX, 16(SP) + CALL ·Xmkstemps(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ymkstemps64(tls *TLS, template uintptr, len1 int32) (r int32) +TEXT ·Ymkstemps64(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ template+8(FP), AX + MOVQ AX, 8(SP) + MOVL len1+16(FP), AX + MOVL AX, 16(SP) + CALL ·Xmkstemps64(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ymktemp(tls *TLS, template uintptr) (r uintptr) +TEXT ·Ymktemp(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ template+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xmktemp(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ymktime(tls *TLS, tm uintptr) (r Ttime_t) +TEXT ·Ymktime(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ tm+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xmktime(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ymlock(tls *TLS, addr uintptr, len1 Tsize_t) (r int32) +TEXT ·Ymlock(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ addr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ len1+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xmlock(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ymlock2(tls *TLS, addr uintptr, len1 Tsize_t, flags uint32) (r int32) +TEXT ·Ymlock2(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ addr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ len1+16(FP), AX + MOVQ AX, 16(SP) + MOVL flags+24(FP), AX + MOVL AX, 24(SP) + CALL ·Xmlock2(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Ymlockall(tls *TLS, flags int32) (r int32) +TEXT ·Ymlockall(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL flags+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xmlockall(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ymmap(tls *TLS, start uintptr, len1 Tsize_t, prot int32, flags int32, fd int32, off Toff_t) (r uintptr) +TEXT ·Ymmap(SB),$56-56 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ start+8(FP), AX + MOVQ AX, 8(SP) + MOVQ len1+16(FP), AX + MOVQ AX, 16(SP) + MOVL prot+24(FP), AX + MOVL AX, 24(SP) + MOVL flags+28(FP), AX + MOVL AX, 28(SP) + MOVL fd+32(FP), AX + MOVL AX, 32(SP) + MOVQ off+40(FP), AX + MOVQ AX, 40(SP) + CALL ·Xmmap(SB) + MOVQ 48(SP), AX + MOVQ AX, r+48(FP) + RET + +// func Ymmap64(tls *TLS, start uintptr, len1 Tsize_t, prot int32, flags int32, fd int32, off Toff_t) (r uintptr) +TEXT ·Ymmap64(SB),$56-56 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ start+8(FP), AX + MOVQ AX, 8(SP) + MOVQ len1+16(FP), AX + MOVQ AX, 16(SP) + MOVL prot+24(FP), AX + MOVL AX, 24(SP) + MOVL flags+28(FP), AX + MOVL AX, 28(SP) + MOVL fd+32(FP), AX + MOVL AX, 32(SP) + MOVQ off+40(FP), AX + MOVQ AX, 40(SP) + CALL ·Xmmap64(SB) + MOVQ 48(SP), AX + MOVQ AX, r+48(FP) + RET + +// func Ymodf(tls *TLS, x float64, iptr uintptr) (r float64) +TEXT ·Ymodf(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + MOVQ iptr+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xmodf(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Ymodff(tls *TLS, x float32, iptr uintptr) (r float32) +TEXT ·Ymodff(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL x+8(FP), AX + MOVL AX, 8(SP) + MOVQ iptr+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xmodff(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ymodfl(tls *TLS, x float64, iptr uintptr) (r1 float64) +TEXT ·Ymodfl(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + MOVQ iptr+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xmodfl(SB) + MOVQ 24(SP), AX + MOVQ AX, r1+24(FP) + RET + +// func Ymount(tls *TLS, special uintptr, dir uintptr, fstype uintptr, flags uint64, data uintptr) (r int32) +TEXT ·Ymount(SB),$56-52 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ special+8(FP), AX + MOVQ AX, 8(SP) + MOVQ dir+16(FP), AX + MOVQ AX, 16(SP) + MOVQ fstype+24(FP), AX + MOVQ AX, 24(SP) + MOVQ flags+32(FP), AX + MOVQ AX, 32(SP) + MOVQ data+40(FP), AX + MOVQ AX, 40(SP) + CALL ·Xmount(SB) + MOVL 48(SP), AX + MOVL AX, r+48(FP) + RET + +// func Ymprotect(tls *TLS, addr uintptr, len1 Tsize_t, prot int32) (r int32) +TEXT ·Ymprotect(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ addr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ len1+16(FP), AX + MOVQ AX, 16(SP) + MOVL prot+24(FP), AX + MOVL AX, 24(SP) + CALL ·Xmprotect(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Ymrand48(tls *TLS) (r int64) +TEXT ·Ymrand48(SB),$16-16 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·Xmrand48(SB) + MOVQ 8(SP), AX + MOVQ AX, r+8(FP) + RET + +// func Ymremap(tls *TLS, old_addr uintptr, old_len Tsize_t, new_len Tsize_t, flags int32, va uintptr) (r uintptr) +TEXT ·Ymremap(SB),$56-56 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ old_addr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ old_len+16(FP), AX + MOVQ AX, 16(SP) + MOVQ new_len+24(FP), AX + MOVQ AX, 24(SP) + MOVL flags+32(FP), AX + MOVL AX, 32(SP) + MOVQ va+40(FP), AX + MOVQ AX, 40(SP) + CALL ·Xmremap(SB) + MOVQ 48(SP), AX + MOVQ AX, r+48(FP) + RET + +// func Ymsgctl(tls *TLS, q int32, cmd int32, buf uintptr) (r1 int32) +TEXT ·Ymsgctl(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL q+8(FP), AX + MOVL AX, 8(SP) + MOVL cmd+12(FP), AX + MOVL AX, 12(SP) + MOVQ buf+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xmsgctl(SB) + MOVL 24(SP), AX + MOVL AX, r1+24(FP) + RET + +// func Ymsgget(tls *TLS, k Tkey_t, flag int32) (r int32) +TEXT ·Ymsgget(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL k+8(FP), AX + MOVL AX, 8(SP) + MOVL flag+12(FP), AX + MOVL AX, 12(SP) + CALL ·Xmsgget(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ymsgrcv(tls *TLS, q int32, m uintptr, len1 Tsize_t, type1 int64, flag int32) (r Tssize_t) +TEXT ·Ymsgrcv(SB),$56-56 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL q+8(FP), AX + MOVL AX, 8(SP) + MOVQ m+16(FP), AX + MOVQ AX, 16(SP) + MOVQ len1+24(FP), AX + MOVQ AX, 24(SP) + MOVQ type1+32(FP), AX + MOVQ AX, 32(SP) + MOVL flag+40(FP), AX + MOVL AX, 40(SP) + CALL ·Xmsgrcv(SB) + MOVQ 48(SP), AX + MOVQ AX, r+48(FP) + RET + +// func Ymsgsnd(tls *TLS, q int32, m uintptr, len1 Tsize_t, flag int32) (r int32) +TEXT ·Ymsgsnd(SB),$48-44 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL q+8(FP), AX + MOVL AX, 8(SP) + MOVQ m+16(FP), AX + MOVQ AX, 16(SP) + MOVQ len1+24(FP), AX + MOVQ AX, 24(SP) + MOVL flag+32(FP), AX + MOVL AX, 32(SP) + CALL ·Xmsgsnd(SB) + MOVL 40(SP), AX + MOVL AX, r+40(FP) + RET + +// func Ymsync(tls *TLS, start uintptr, len1 Tsize_t, flags int32) (r int32) +TEXT ·Ymsync(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ start+8(FP), AX + MOVQ AX, 8(SP) + MOVQ len1+16(FP), AX + MOVQ AX, 16(SP) + MOVL flags+24(FP), AX + MOVL AX, 24(SP) + CALL ·Xmsync(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Ymunlock(tls *TLS, addr uintptr, len1 Tsize_t) (r int32) +TEXT ·Ymunlock(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ addr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ len1+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xmunlock(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ymunlockall(tls *TLS) (r int32) +TEXT ·Ymunlockall(SB),$16-12 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·Xmunlockall(SB) + MOVL 8(SP), AX + MOVL AX, r+8(FP) + RET + +// func Ymunmap(tls *TLS, start uintptr, len1 Tsize_t) (r int32) +TEXT ·Ymunmap(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ start+8(FP), AX + MOVQ AX, 8(SP) + MOVQ len1+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xmunmap(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yname_to_handle_at(tls *TLS, dirfd int32, pathname uintptr, handle uintptr, mount_id uintptr, flags int32) (r int32) +TEXT ·Yname_to_handle_at(SB),$56-52 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL dirfd+8(FP), AX + MOVL AX, 8(SP) + MOVQ pathname+16(FP), AX + MOVQ AX, 16(SP) + MOVQ handle+24(FP), AX + MOVQ AX, 24(SP) + MOVQ mount_id+32(FP), AX + MOVQ AX, 32(SP) + MOVL flags+40(FP), AX + MOVL AX, 40(SP) + CALL ·Xname_to_handle_at(SB) + MOVL 48(SP), AX + MOVL AX, r+48(FP) + RET + +// func Ynan(tls *TLS, s uintptr) (r float64) +TEXT ·Ynan(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xnan(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ynanf(tls *TLS, s uintptr) (r float32) +TEXT ·Ynanf(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xnanf(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ynanl(tls *TLS, s uintptr) (r float64) +TEXT ·Ynanl(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xnanl(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ynanosleep(tls *TLS, req uintptr, rem uintptr) (r int32) +TEXT ·Ynanosleep(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ req+8(FP), AX + MOVQ AX, 8(SP) + MOVQ rem+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xnanosleep(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ynewlocale(tls *TLS, mask int32, name uintptr, loc Tlocale_t) (r Tlocale_t) +TEXT ·Ynewlocale(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL mask+8(FP), AX + MOVL AX, 8(SP) + MOVQ name+16(FP), AX + MOVQ AX, 16(SP) + MOVQ loc+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xnewlocale(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Ynextafter(tls *TLS, x3 float64, y3 float64) (r float64) +TEXT ·Ynextafter(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x3+8(FP), AX + MOVQ AX, 8(SP) + MOVQ y3+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xnextafter(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Ynextafterf(tls *TLS, x3 float32, y3 float32) (r float32) +TEXT ·Ynextafterf(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL x3+8(FP), AX + MOVL AX, 8(SP) + MOVL y3+12(FP), AX + MOVL AX, 12(SP) + CALL ·Xnextafterf(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ynextafterl(tls *TLS, x float64, y float64) (r float64) +TEXT ·Ynextafterl(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + MOVQ y+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xnextafterl(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Ynexttoward(tls *TLS, x float64, y float64) (r float64) +TEXT ·Ynexttoward(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + MOVQ y+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xnexttoward(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Ynexttowardf(tls *TLS, x3 float32, y3 float64) (r float32) +TEXT ·Ynexttowardf(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL x3+8(FP), AX + MOVL AX, 8(SP) + MOVQ y3+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xnexttowardf(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ynexttowardl(tls *TLS, x float64, y float64) (r float64) +TEXT ·Ynexttowardl(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + MOVQ y+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xnexttowardl(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Ynftw(tls *TLS, path uintptr, __ccgo_fp_fn uintptr, fd_limit int32, flags int32) (r1 int32) +TEXT ·Ynftw(SB),$48-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX // alloc all ABI trampolines + MOVQ AX, 0(SP) + MOVQ $16, 8(SP) // 16*(number of func ptrs in signature) + CALL modernc·org∕libc·TLSAlloc(SB) + MOVQ 16(SP), AX + MOVQ AX, -8(BP) // Trampolines[0] + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ -8(BP), AX + ADDQ $0, AX // 16*(0-based ordinal number of the func ptr in signature) + MOVQ AX, 8(SP) + MOVQ __ccgo_fp_fn+16(FP), AX // ABI0 code ptr + MOVQ AX, 16(SP) + CALL ·__ccgo_abiInternal_nftw_1(SB) // Create the closure for calling __ccgo_fp_fn + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ path+8(FP), AX + MOVQ AX, 8(SP) + MOVQ -8(BP), AX // Trampolines[0] + ADDQ $0, AX // 16*(0-based ordinal number of the func ptr in signature) + MOVQ AX, 16(SP) + MOVL fd_limit+24(FP), AX + MOVL AX, 24(SP) + MOVL flags+28(FP), AX + MOVL AX, 28(SP) + CALL ·Xnftw(SB) + MOVL 32(SP), AX + MOVL AX, r1+32(FP) + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ $0, 8(SP) + CALL modernc·org∕libc·TLSFree(SB) + RET + +TEXT ·__ccgo_abi0_nftw_1(SB),$56-52 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ _0+0(FP), AX + MOVQ AX, 0(SP) + MOVQ _1+8(FP), AX + MOVQ AX, 8(SP) + MOVQ _2+16(FP), AX + MOVQ AX, 16(SP) + MOVL _3+24(FP), AX + MOVL AX, 24(SP) + MOVQ _4+32(FP), AX + MOVQ AX, 32(SP) + MOVQ __ccgo_fp+40(FP), AX + CALL *AX // Call the ABI0 code ptr + MOVL 40(SP), AX + MOVL AX, _5+48(FP) + RET + +// func Yngettext(tls *TLS, msgid1 uintptr, msgid2 uintptr, n uint64) (r uintptr) +TEXT ·Yngettext(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ msgid1+8(FP), AX + MOVQ AX, 8(SP) + MOVQ msgid2+16(FP), AX + MOVQ AX, 16(SP) + MOVQ n+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xngettext(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Ynice(tls *TLS, inc int32) (r int32) +TEXT ·Ynice(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL inc+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xnice(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ynl_langinfo(tls *TLS, item Tnl_item) (r uintptr) +TEXT ·Ynl_langinfo(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL item+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xnl_langinfo(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ynl_langinfo_l(tls *TLS, item Tnl_item, loc Tlocale_t) (r uintptr) +TEXT ·Ynl_langinfo_l(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL item+8(FP), AX + MOVL AX, 8(SP) + MOVQ loc+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xnl_langinfo_l(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Ynrand48(tls *TLS, s uintptr) (r int64) +TEXT ·Ynrand48(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xnrand48(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Yns_get16(tls *TLS, cp uintptr) (r uint32) +TEXT ·Yns_get16(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ cp+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xns_get16(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yns_get32(tls *TLS, cp uintptr) (r uint64) +TEXT ·Yns_get32(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ cp+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xns_get32(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Yns_initparse(tls *TLS, msg uintptr, msglen int32, handle uintptr) (r1 int32) +TEXT ·Yns_initparse(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ msg+8(FP), AX + MOVQ AX, 8(SP) + MOVL msglen+16(FP), AX + MOVL AX, 16(SP) + MOVQ handle+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xns_initparse(SB) + MOVL 32(SP), AX + MOVL AX, r1+32(FP) + RET + +// func Yns_name_uncompress(tls *TLS, msg uintptr, eom uintptr, src uintptr, dst uintptr, dstsiz Tsize_t) (r1 int32) +TEXT ·Yns_name_uncompress(SB),$56-52 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ msg+8(FP), AX + MOVQ AX, 8(SP) + MOVQ eom+16(FP), AX + MOVQ AX, 16(SP) + MOVQ src+24(FP), AX + MOVQ AX, 24(SP) + MOVQ dst+32(FP), AX + MOVQ AX, 32(SP) + MOVQ dstsiz+40(FP), AX + MOVQ AX, 40(SP) + CALL ·Xns_name_uncompress(SB) + MOVL 48(SP), AX + MOVL AX, r1+48(FP) + RET + +// func Yns_parserr(tls *TLS, handle uintptr, section Tns_sect, rrnum int32, rr uintptr) (r1 int32) +TEXT ·Yns_parserr(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ handle+8(FP), AX + MOVQ AX, 8(SP) + MOVL section+16(FP), AX + MOVL AX, 16(SP) + MOVL rrnum+20(FP), AX + MOVL AX, 20(SP) + MOVQ rr+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xns_parserr(SB) + MOVL 32(SP), AX + MOVL AX, r1+32(FP) + RET + +// func Yns_put16(tls *TLS, s uint32, cp uintptr) +TEXT ·Yns_put16(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL s+8(FP), AX + MOVL AX, 8(SP) + MOVQ cp+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xns_put16(SB) + RET + +// func Yns_put32(tls *TLS, l uint64, cp uintptr) +TEXT ·Yns_put32(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ l+8(FP), AX + MOVQ AX, 8(SP) + MOVQ cp+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xns_put32(SB) + RET + +// func Yns_skiprr(tls *TLS, ptr uintptr, eom uintptr, section Tns_sect, count int32) (r1 int32) +TEXT ·Yns_skiprr(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ eom+16(FP), AX + MOVQ AX, 16(SP) + MOVL section+24(FP), AX + MOVL AX, 24(SP) + MOVL count+28(FP), AX + MOVL AX, 28(SP) + CALL ·Xns_skiprr(SB) + MOVL 32(SP), AX + MOVL AX, r1+32(FP) + RET + +// func Yntohl(tls *TLS, n Tuint32_t) (r Tuint32_t) +TEXT ·Yntohl(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL n+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xntohl(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yntohs(tls *TLS, n Tuint16_t) (r Tuint16_t) +TEXT ·Yntohs(SB),$24-18 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVW n+8(FP), AX + MOVW AX, 8(SP) + CALL ·Xntohs(SB) + MOVW 16(SP), AX + MOVW AX, r+16(FP) + RET + +// func Yobstack_free(t *TLS, obstack, obj uintptr) +TEXT ·Yobstack_free(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ obstack+8(FP), AX + MOVQ AX, 8(SP) + MOVQ obj+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xobstack_free(SB) + RET + +// func Yobstack_vprintf(t *TLS, obstack, template, va uintptr) (_2 int32) +TEXT ·Yobstack_vprintf(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ obstack+8(FP), AX + MOVQ AX, 8(SP) + MOVQ template+16(FP), AX + MOVQ AX, 16(SP) + MOVQ va+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xobstack_vprintf(SB) + MOVL 32(SP), AX + MOVL AX, _2+32(FP) + RET + +// func Yopen(tls *TLS, filename uintptr, flags int32, va uintptr) (r int32) +TEXT ·Yopen(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ filename+8(FP), AX + MOVQ AX, 8(SP) + MOVL flags+16(FP), AX + MOVL AX, 16(SP) + MOVQ va+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xopen(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Yopen64(tls *TLS, filename uintptr, flags int32, va uintptr) (r int32) +TEXT ·Yopen64(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ filename+8(FP), AX + MOVQ AX, 8(SP) + MOVL flags+16(FP), AX + MOVL AX, 16(SP) + MOVQ va+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xopen64(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Yopen_by_handle_at(tls *TLS, mount_fd int32, handle uintptr, flags int32) (r int32) +TEXT ·Yopen_by_handle_at(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL mount_fd+8(FP), AX + MOVL AX, 8(SP) + MOVQ handle+16(FP), AX + MOVQ AX, 16(SP) + MOVL flags+24(FP), AX + MOVL AX, 24(SP) + CALL ·Xopen_by_handle_at(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Yopen_memstream(tls *TLS, bufp uintptr, sizep uintptr) (r uintptr) +TEXT ·Yopen_memstream(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ bufp+8(FP), AX + MOVQ AX, 8(SP) + MOVQ sizep+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xopen_memstream(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Yopen_wmemstream(tls *TLS, bufp uintptr, sizep uintptr) (r uintptr) +TEXT ·Yopen_wmemstream(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ bufp+8(FP), AX + MOVQ AX, 8(SP) + MOVQ sizep+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xopen_wmemstream(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Yopenat(tls *TLS, fd int32, filename uintptr, flags int32, va uintptr) (r int32) +TEXT ·Yopenat(SB),$48-44 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVQ filename+16(FP), AX + MOVQ AX, 16(SP) + MOVL flags+24(FP), AX + MOVL AX, 24(SP) + MOVQ va+32(FP), AX + MOVQ AX, 32(SP) + CALL ·Xopenat(SB) + MOVL 40(SP), AX + MOVL AX, r+40(FP) + RET + +// func Yopendir(tls *TLS, name uintptr) (r uintptr) +TEXT ·Yopendir(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ name+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xopendir(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Yopenlog(tls *TLS, ident uintptr, opt int32, facility int32) +TEXT ·Yopenlog(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ident+8(FP), AX + MOVQ AX, 8(SP) + MOVL opt+16(FP), AX + MOVL AX, 16(SP) + MOVL facility+20(FP), AX + MOVL AX, 20(SP) + CALL ·Xopenlog(SB) + RET + +// func Yopenpty(tls *TLS, pm uintptr, ps uintptr, name uintptr, tio uintptr, ws uintptr) (r int32) +TEXT ·Yopenpty(SB),$56-52 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ pm+8(FP), AX + MOVQ AX, 8(SP) + MOVQ ps+16(FP), AX + MOVQ AX, 16(SP) + MOVQ name+24(FP), AX + MOVQ AX, 24(SP) + MOVQ tio+32(FP), AX + MOVQ AX, 32(SP) + MOVQ ws+40(FP), AX + MOVQ AX, 40(SP) + CALL ·Xopenpty(SB) + MOVL 48(SP), AX + MOVL AX, r+48(FP) + RET + +// func Ypathconf(tls *TLS, path uintptr, name int32) (r int64) +TEXT ·Ypathconf(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ path+8(FP), AX + MOVQ AX, 8(SP) + MOVL name+16(FP), AX + MOVL AX, 16(SP) + CALL ·Xpathconf(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Ypause(tls *TLS) (r int32) +TEXT ·Ypause(SB),$16-12 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·Xpause(SB) + MOVL 8(SP), AX + MOVL AX, r+8(FP) + RET + +// func Ypclose(tls *TLS, f uintptr) (r1 int32) +TEXT ·Ypclose(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xpclose(SB) + MOVL 16(SP), AX + MOVL AX, r1+16(FP) + RET + +// func Yperror(tls *TLS, msg uintptr) +TEXT ·Yperror(SB),$16-16 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ msg+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xperror(SB) + RET + +// func Ypersonality(tls *TLS, persona uint64) (r int32) +TEXT ·Ypersonality(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ persona+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xpersonality(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ypipe(tls *TLS, fd uintptr) (r int32) +TEXT ·Ypipe(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ fd+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xpipe(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ypipe2(tls *TLS, fd uintptr, flag int32) (r int32) +TEXT ·Ypipe2(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ fd+8(FP), AX + MOVQ AX, 8(SP) + MOVL flag+16(FP), AX + MOVL AX, 16(SP) + CALL ·Xpipe2(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ypivot_root(tls *TLS, new1 uintptr, old uintptr) (r int32) +TEXT ·Ypivot_root(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ new1+8(FP), AX + MOVQ AX, 8(SP) + MOVQ old+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xpivot_root(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ypoll(tls *TLS, fds uintptr, n Tnfds_t, timeout int32) (r int32) +TEXT ·Ypoll(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ fds+8(FP), AX + MOVQ AX, 8(SP) + MOVQ n+16(FP), AX + MOVQ AX, 16(SP) + MOVL timeout+24(FP), AX + MOVL AX, 24(SP) + CALL ·Xpoll(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Ypopen(t *TLS, command, type1 uintptr) (_2 uintptr) +TEXT ·Ypopen(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ command+8(FP), AX + MOVQ AX, 8(SP) + MOVQ type1+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xpopen(SB) + MOVQ 24(SP), AX + MOVQ AX, _2+24(FP) + RET + +// func Yposix_close(tls *TLS, fd int32, flags int32) (r int32) +TEXT ·Yposix_close(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVL flags+12(FP), AX + MOVL AX, 12(SP) + CALL ·Xposix_close(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yposix_fadvise(tls *TLS, fd int32, base Toff_t, len1 Toff_t, advice int32) (r int32) +TEXT ·Yposix_fadvise(SB),$48-44 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVQ base+16(FP), AX + MOVQ AX, 16(SP) + MOVQ len1+24(FP), AX + MOVQ AX, 24(SP) + MOVL advice+32(FP), AX + MOVL AX, 32(SP) + CALL ·Xposix_fadvise(SB) + MOVL 40(SP), AX + MOVL AX, r+40(FP) + RET + +// func Yposix_fallocate(tls *TLS, fd int32, base Toff_t, len1 Toff_t) (r int32) +TEXT ·Yposix_fallocate(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVQ base+16(FP), AX + MOVQ AX, 16(SP) + MOVQ len1+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xposix_fallocate(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Yposix_madvise(tls *TLS, addr uintptr, len1 Tsize_t, advice int32) (r int32) +TEXT ·Yposix_madvise(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ addr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ len1+16(FP), AX + MOVQ AX, 16(SP) + MOVL advice+24(FP), AX + MOVL AX, 24(SP) + CALL ·Xposix_madvise(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Yposix_openpt(tls *TLS, flags int32) (r1 int32) +TEXT ·Yposix_openpt(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL flags+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xposix_openpt(SB) + MOVL 16(SP), AX + MOVL AX, r1+16(FP) + RET + +// func Yposix_spawn_file_actions_addchdir_np(tls *TLS, fa uintptr, path uintptr) (r int32) +TEXT ·Yposix_spawn_file_actions_addchdir_np(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ fa+8(FP), AX + MOVQ AX, 8(SP) + MOVQ path+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xposix_spawn_file_actions_addchdir_np(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yposix_spawn_file_actions_addclose(tls *TLS, fa uintptr, fd int32) (r int32) +TEXT ·Yposix_spawn_file_actions_addclose(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ fa+8(FP), AX + MOVQ AX, 8(SP) + MOVL fd+16(FP), AX + MOVL AX, 16(SP) + CALL ·Xposix_spawn_file_actions_addclose(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yposix_spawn_file_actions_adddup2(tls *TLS, fa uintptr, srcfd int32, fd int32) (r int32) +TEXT ·Yposix_spawn_file_actions_adddup2(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ fa+8(FP), AX + MOVQ AX, 8(SP) + MOVL srcfd+16(FP), AX + MOVL AX, 16(SP) + MOVL fd+20(FP), AX + MOVL AX, 20(SP) + CALL ·Xposix_spawn_file_actions_adddup2(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yposix_spawn_file_actions_addfchdir_np(tls *TLS, fa uintptr, fd int32) (r int32) +TEXT ·Yposix_spawn_file_actions_addfchdir_np(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ fa+8(FP), AX + MOVQ AX, 8(SP) + MOVL fd+16(FP), AX + MOVL AX, 16(SP) + CALL ·Xposix_spawn_file_actions_addfchdir_np(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yposix_spawn_file_actions_addopen(tls *TLS, fa uintptr, fd int32, path uintptr, flags int32, mode Tmode_t) (r int32) +TEXT ·Yposix_spawn_file_actions_addopen(SB),$48-44 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ fa+8(FP), AX + MOVQ AX, 8(SP) + MOVL fd+16(FP), AX + MOVL AX, 16(SP) + MOVQ path+24(FP), AX + MOVQ AX, 24(SP) + MOVL flags+32(FP), AX + MOVL AX, 32(SP) + MOVL mode+36(FP), AX + MOVL AX, 36(SP) + CALL ·Xposix_spawn_file_actions_addopen(SB) + MOVL 40(SP), AX + MOVL AX, r+40(FP) + RET + +// func Yposix_spawn_file_actions_destroy(tls *TLS, fa uintptr) (r int32) +TEXT ·Yposix_spawn_file_actions_destroy(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ fa+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xposix_spawn_file_actions_destroy(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yposix_spawn_file_actions_init(tls *TLS, fa uintptr) (r int32) +TEXT ·Yposix_spawn_file_actions_init(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ fa+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xposix_spawn_file_actions_init(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yposix_spawnattr_destroy(tls *TLS, attr uintptr) (r int32) +TEXT ·Yposix_spawnattr_destroy(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ attr+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xposix_spawnattr_destroy(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yposix_spawnattr_getflags(tls *TLS, attr uintptr, flags uintptr) (r int32) +TEXT ·Yposix_spawnattr_getflags(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ attr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ flags+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xposix_spawnattr_getflags(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yposix_spawnattr_getpgroup(tls *TLS, attr uintptr, pgrp uintptr) (r int32) +TEXT ·Yposix_spawnattr_getpgroup(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ attr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ pgrp+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xposix_spawnattr_getpgroup(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yposix_spawnattr_getschedparam(tls *TLS, attr uintptr, schedparam uintptr) (r int32) +TEXT ·Yposix_spawnattr_getschedparam(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ attr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ schedparam+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xposix_spawnattr_getschedparam(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yposix_spawnattr_getschedpolicy(tls *TLS, attr uintptr, policy uintptr) (r int32) +TEXT ·Yposix_spawnattr_getschedpolicy(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ attr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ policy+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xposix_spawnattr_getschedpolicy(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yposix_spawnattr_getsigdefault(tls *TLS, attr uintptr, def uintptr) (r int32) +TEXT ·Yposix_spawnattr_getsigdefault(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ attr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ def+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xposix_spawnattr_getsigdefault(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yposix_spawnattr_getsigmask(tls *TLS, attr uintptr, mask uintptr) (r int32) +TEXT ·Yposix_spawnattr_getsigmask(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ attr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ mask+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xposix_spawnattr_getsigmask(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yposix_spawnattr_init(tls *TLS, attr uintptr) (r int32) +TEXT ·Yposix_spawnattr_init(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ attr+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xposix_spawnattr_init(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yposix_spawnattr_setflags(tls *TLS, attr uintptr, flags int16) (r int32) +TEXT ·Yposix_spawnattr_setflags(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ attr+8(FP), AX + MOVQ AX, 8(SP) + MOVW flags+16(FP), AX + MOVW AX, 16(SP) + CALL ·Xposix_spawnattr_setflags(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yposix_spawnattr_setpgroup(tls *TLS, attr uintptr, pgrp Tpid_t) (r int32) +TEXT ·Yposix_spawnattr_setpgroup(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ attr+8(FP), AX + MOVQ AX, 8(SP) + MOVL pgrp+16(FP), AX + MOVL AX, 16(SP) + CALL ·Xposix_spawnattr_setpgroup(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yposix_spawnattr_setschedparam(tls *TLS, attr uintptr, schedparam uintptr) (r int32) +TEXT ·Yposix_spawnattr_setschedparam(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ attr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ schedparam+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xposix_spawnattr_setschedparam(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yposix_spawnattr_setschedpolicy(tls *TLS, attr uintptr, policy int32) (r int32) +TEXT ·Yposix_spawnattr_setschedpolicy(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ attr+8(FP), AX + MOVQ AX, 8(SP) + MOVL policy+16(FP), AX + MOVL AX, 16(SP) + CALL ·Xposix_spawnattr_setschedpolicy(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yposix_spawnattr_setsigdefault(tls *TLS, attr uintptr, def uintptr) (r int32) +TEXT ·Yposix_spawnattr_setsigdefault(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ attr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ def+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xposix_spawnattr_setsigdefault(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yposix_spawnattr_setsigmask(tls *TLS, attr uintptr, mask uintptr) (r int32) +TEXT ·Yposix_spawnattr_setsigmask(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ attr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ mask+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xposix_spawnattr_setsigmask(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ypow(tls *TLS, x1 float64, y1 float64) (r float64) +TEXT ·Ypow(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x1+8(FP), AX + MOVQ AX, 8(SP) + MOVQ y1+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xpow(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Ypow10(tls *TLS, x float64) (r float64) +TEXT ·Ypow10(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xpow10(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ypow10f(tls *TLS, x float32) (r float32) +TEXT ·Ypow10f(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL x+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xpow10f(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ypow10l(tls *TLS, x float64) (r float64) +TEXT ·Ypow10l(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xpow10l(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ypowf(tls *TLS, x1 float32, y1 float32) (r float32) +TEXT ·Ypowf(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL x1+8(FP), AX + MOVL AX, 8(SP) + MOVL y1+12(FP), AX + MOVL AX, 12(SP) + CALL ·Xpowf(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ypowl(tls *TLS, x float64, y float64) (r float64) +TEXT ·Ypowl(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + MOVQ y+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xpowl(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Yppoll(tls *TLS, fds uintptr, n Tnfds_t, to uintptr, mask uintptr) (r int32) +TEXT ·Yppoll(SB),$48-44 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ fds+8(FP), AX + MOVQ AX, 8(SP) + MOVQ n+16(FP), AX + MOVQ AX, 16(SP) + MOVQ to+24(FP), AX + MOVQ AX, 24(SP) + MOVQ mask+32(FP), AX + MOVQ AX, 32(SP) + CALL ·Xppoll(SB) + MOVL 40(SP), AX + MOVL AX, r+40(FP) + RET + +// func Yprctl(tls *TLS, op int32, va uintptr) (r int32) +TEXT ·Yprctl(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL op+8(FP), AX + MOVL AX, 8(SP) + MOVQ va+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xprctl(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ypread(tls *TLS, fd int32, buf uintptr, size Tsize_t, ofs Toff_t) (r Tssize_t) +TEXT ·Ypread(SB),$48-48 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVQ buf+16(FP), AX + MOVQ AX, 16(SP) + MOVQ size+24(FP), AX + MOVQ AX, 24(SP) + MOVQ ofs+32(FP), AX + MOVQ AX, 32(SP) + CALL ·Xpread(SB) + MOVQ 40(SP), AX + MOVQ AX, r+40(FP) + RET + +// func Ypreadv(tls *TLS, fd int32, iov uintptr, count int32, ofs Toff_t) (r Tssize_t) +TEXT ·Ypreadv(SB),$48-48 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVQ iov+16(FP), AX + MOVQ AX, 16(SP) + MOVL count+24(FP), AX + MOVL AX, 24(SP) + MOVQ ofs+32(FP), AX + MOVQ AX, 32(SP) + CALL ·Xpreadv(SB) + MOVQ 40(SP), AX + MOVQ AX, r+40(FP) + RET + +// func Ypreadv2(tls *TLS, fd int32, iov uintptr, count int32, ofs Toff_t, flags int32) (r Tssize_t) +TEXT ·Ypreadv2(SB),$56-56 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVQ iov+16(FP), AX + MOVQ AX, 16(SP) + MOVL count+24(FP), AX + MOVL AX, 24(SP) + MOVQ ofs+32(FP), AX + MOVQ AX, 32(SP) + MOVL flags+40(FP), AX + MOVL AX, 40(SP) + CALL ·Xpreadv2(SB) + MOVQ 48(SP), AX + MOVQ AX, r+48(FP) + RET + +// func Yprintf(tls *TLS, fmt uintptr, va uintptr) (r int32) +TEXT ·Yprintf(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ fmt+8(FP), AX + MOVQ AX, 8(SP) + MOVQ va+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xprintf(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yprlimit(tls *TLS, pid Tpid_t, resource int32, new_limit uintptr, old_limit uintptr) (r1 int32) +TEXT ·Yprlimit(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL pid+8(FP), AX + MOVL AX, 8(SP) + MOVL resource+12(FP), AX + MOVL AX, 12(SP) + MOVQ new_limit+16(FP), AX + MOVQ AX, 16(SP) + MOVQ old_limit+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xprlimit(SB) + MOVL 32(SP), AX + MOVL AX, r1+32(FP) + RET + +// func Yprocess_vm_readv(tls *TLS, pid Tpid_t, lvec uintptr, liovcnt uint64, rvec uintptr, riovcnt uint64, flags uint64) (r Tssize_t) +TEXT ·Yprocess_vm_readv(SB),$64-64 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL pid+8(FP), AX + MOVL AX, 8(SP) + MOVQ lvec+16(FP), AX + MOVQ AX, 16(SP) + MOVQ liovcnt+24(FP), AX + MOVQ AX, 24(SP) + MOVQ rvec+32(FP), AX + MOVQ AX, 32(SP) + MOVQ riovcnt+40(FP), AX + MOVQ AX, 40(SP) + MOVQ flags+48(FP), AX + MOVQ AX, 48(SP) + CALL ·Xprocess_vm_readv(SB) + MOVQ 56(SP), AX + MOVQ AX, r+56(FP) + RET + +// func Yprocess_vm_writev(tls *TLS, pid Tpid_t, lvec uintptr, liovcnt uint64, rvec uintptr, riovcnt uint64, flags uint64) (r Tssize_t) +TEXT ·Yprocess_vm_writev(SB),$64-64 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL pid+8(FP), AX + MOVL AX, 8(SP) + MOVQ lvec+16(FP), AX + MOVQ AX, 16(SP) + MOVQ liovcnt+24(FP), AX + MOVQ AX, 24(SP) + MOVQ rvec+32(FP), AX + MOVQ AX, 32(SP) + MOVQ riovcnt+40(FP), AX + MOVQ AX, 40(SP) + MOVQ flags+48(FP), AX + MOVQ AX, 48(SP) + CALL ·Xprocess_vm_writev(SB) + MOVQ 56(SP), AX + MOVQ AX, r+56(FP) + RET + +// func Ypselect(tls *TLS, n int32, rfds uintptr, wfds uintptr, efds uintptr, ts uintptr, mask uintptr) (r int32) +TEXT ·Ypselect(SB),$64-60 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL n+8(FP), AX + MOVL AX, 8(SP) + MOVQ rfds+16(FP), AX + MOVQ AX, 16(SP) + MOVQ wfds+24(FP), AX + MOVQ AX, 24(SP) + MOVQ efds+32(FP), AX + MOVQ AX, 32(SP) + MOVQ ts+40(FP), AX + MOVQ AX, 40(SP) + MOVQ mask+48(FP), AX + MOVQ AX, 48(SP) + CALL ·Xpselect(SB) + MOVL 56(SP), AX + MOVL AX, r+56(FP) + RET + +// func Ypsiginfo(tls *TLS, si uintptr, msg uintptr) +TEXT ·Ypsiginfo(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ si+8(FP), AX + MOVQ AX, 8(SP) + MOVQ msg+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xpsiginfo(SB) + RET + +// func Ypsignal(tls *TLS, sig int32, msg uintptr) +TEXT ·Ypsignal(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL sig+8(FP), AX + MOVL AX, 8(SP) + MOVQ msg+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xpsignal(SB) + RET + +// func Ypthread_atfork(tls *TLS, prepare, parent, child uintptr) (_2 int32) +TEXT ·Ypthread_atfork(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ prepare+8(FP), AX + MOVQ AX, 8(SP) + MOVQ parent+16(FP), AX + MOVQ AX, 16(SP) + MOVQ child+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xpthread_atfork(SB) + MOVL 32(SP), AX + MOVL AX, _2+32(FP) + RET + +// func Ypthread_attr_destroy(tls *TLS, a uintptr) (_2 int32) +TEXT ·Ypthread_attr_destroy(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ a+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xpthread_attr_destroy(SB) + MOVL 16(SP), AX + MOVL AX, _2+16(FP) + RET + +// func Ypthread_attr_getdetachstate(tls *TLS, a uintptr, state uintptr) (_3 int32) +TEXT ·Ypthread_attr_getdetachstate(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ a+8(FP), AX + MOVQ AX, 8(SP) + MOVQ state+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xpthread_attr_getdetachstate(SB) + MOVL 24(SP), AX + MOVL AX, _3+24(FP) + RET + +// func Ypthread_attr_init(tls *TLS, a uintptr) (_2 int32) +TEXT ·Ypthread_attr_init(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ a+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xpthread_attr_init(SB) + MOVL 16(SP), AX + MOVL AX, _2+16(FP) + RET + +// func Ypthread_attr_setdetachstate(tls *TLS, a uintptr, state int32) (r int32) +TEXT ·Ypthread_attr_setdetachstate(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ a+8(FP), AX + MOVQ AX, 8(SP) + MOVL state+16(FP), AX + MOVL AX, 16(SP) + CALL ·Xpthread_attr_setdetachstate(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ypthread_attr_setscope(tls *TLS, a uintptr, scope int32) (_3 int32) +TEXT ·Ypthread_attr_setscope(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ a+8(FP), AX + MOVQ AX, 8(SP) + MOVL scope+16(FP), AX + MOVL AX, 16(SP) + CALL ·Xpthread_attr_setscope(SB) + MOVL 24(SP), AX + MOVL AX, _3+24(FP) + RET + +// func Ypthread_attr_setstacksize(tls *TLS, a uintptr, stacksite Tsize_t) (_3 int32) +TEXT ·Ypthread_attr_setstacksize(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ a+8(FP), AX + MOVQ AX, 8(SP) + MOVQ stacksite+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xpthread_attr_setstacksize(SB) + MOVL 24(SP), AX + MOVL AX, _3+24(FP) + RET + +// func Ypthread_cleanup_pop(tls *TLS, run int32) +TEXT ·Ypthread_cleanup_pop(SB),$16-12 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL run+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xpthread_cleanup_pop(SB) + RET + +// func Ypthread_cleanup_push(tls *TLS, f, x uintptr) +TEXT ·Ypthread_cleanup_push(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + MOVQ x+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xpthread_cleanup_push(SB) + RET + +// func Ypthread_cond_broadcast(tls *TLS, c uintptr) (_2 int32) +TEXT ·Ypthread_cond_broadcast(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ c+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xpthread_cond_broadcast(SB) + MOVL 16(SP), AX + MOVL AX, _2+16(FP) + RET + +// func Ypthread_cond_destroy(tls *TLS, c uintptr) (_2 int32) +TEXT ·Ypthread_cond_destroy(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ c+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xpthread_cond_destroy(SB) + MOVL 16(SP), AX + MOVL AX, _2+16(FP) + RET + +// func Ypthread_cond_init(tls *TLS, c, a uintptr) (_2 int32) +TEXT ·Ypthread_cond_init(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ c+8(FP), AX + MOVQ AX, 8(SP) + MOVQ a+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xpthread_cond_init(SB) + MOVL 24(SP), AX + MOVL AX, _2+24(FP) + RET + +// func Ypthread_cond_signal(tls *TLS, c uintptr) (_2 int32) +TEXT ·Ypthread_cond_signal(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ c+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xpthread_cond_signal(SB) + MOVL 16(SP), AX + MOVL AX, _2+16(FP) + RET + +// func Ypthread_cond_timedwait(tls *TLS, c, m, ts uintptr) (r int32) +TEXT ·Ypthread_cond_timedwait(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ c+8(FP), AX + MOVQ AX, 8(SP) + MOVQ m+16(FP), AX + MOVQ AX, 16(SP) + MOVQ ts+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xpthread_cond_timedwait(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Ypthread_cond_wait(tls *TLS, c, m uintptr) (_2 int32) +TEXT ·Ypthread_cond_wait(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ c+8(FP), AX + MOVQ AX, 8(SP) + MOVQ m+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xpthread_cond_wait(SB) + MOVL 24(SP), AX + MOVL AX, _2+24(FP) + RET + +// func Ypthread_create(tls *TLS, res, attrp, entry, arg uintptr) (_2 int32) +TEXT ·Ypthread_create(SB),$48-44 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ res+8(FP), AX + MOVQ AX, 8(SP) + MOVQ attrp+16(FP), AX + MOVQ AX, 16(SP) + MOVQ entry+24(FP), AX + MOVQ AX, 24(SP) + MOVQ arg+32(FP), AX + MOVQ AX, 32(SP) + CALL ·Xpthread_create(SB) + MOVL 40(SP), AX + MOVL AX, _2+40(FP) + RET + +// func Ypthread_detach(tls *TLS, t uintptr) (_2 int32) +TEXT ·Ypthread_detach(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ t+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xpthread_detach(SB) + MOVL 16(SP), AX + MOVL AX, _2+16(FP) + RET + +// func Ypthread_equal(tls *TLS, t, u uintptr) (_2 int32) +TEXT ·Ypthread_equal(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ t+8(FP), AX + MOVQ AX, 8(SP) + MOVQ u+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xpthread_equal(SB) + MOVL 24(SP), AX + MOVL AX, _2+24(FP) + RET + +// func Ypthread_exit(tls *TLS, result uintptr) +TEXT ·Ypthread_exit(SB),$16-16 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ result+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xpthread_exit(SB) + RET + +// func Ypthread_getspecific(tls *TLS, k Tpthread_key_t) (_2 uintptr) +TEXT ·Ypthread_getspecific(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL k+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xpthread_getspecific(SB) + MOVQ 16(SP), AX + MOVQ AX, _2+16(FP) + RET + +// func Ypthread_join(tls *TLS, t Tpthread_t, res uintptr) (r int32) +TEXT ·Ypthread_join(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ t+8(FP), AX + MOVQ AX, 8(SP) + MOVQ res+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xpthread_join(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ypthread_key_create(tls *TLS, k uintptr, dtor uintptr) (_3 int32) +TEXT ·Ypthread_key_create(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ k+8(FP), AX + MOVQ AX, 8(SP) + MOVQ dtor+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xpthread_key_create(SB) + MOVL 24(SP), AX + MOVL AX, _3+24(FP) + RET + +// func Ypthread_key_delete(tls *TLS, k Tpthread_key_t) (_2 int32) +TEXT ·Ypthread_key_delete(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL k+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xpthread_key_delete(SB) + MOVL 16(SP), AX + MOVL AX, _2+16(FP) + RET + +// func Ypthread_mutex_destroy(tls *TLS, m uintptr) (_2 int32) +TEXT ·Ypthread_mutex_destroy(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ m+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xpthread_mutex_destroy(SB) + MOVL 16(SP), AX + MOVL AX, _2+16(FP) + RET + +// func Ypthread_mutex_init(tls *TLS, m, a uintptr) (_2 int32) +TEXT ·Ypthread_mutex_init(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ m+8(FP), AX + MOVQ AX, 8(SP) + MOVQ a+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xpthread_mutex_init(SB) + MOVL 24(SP), AX + MOVL AX, _2+24(FP) + RET + +// func Ypthread_mutex_lock(tls *TLS, m uintptr) (_2 int32) +TEXT ·Ypthread_mutex_lock(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ m+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xpthread_mutex_lock(SB) + MOVL 16(SP), AX + MOVL AX, _2+16(FP) + RET + +// func Ypthread_mutex_trylock(tls *TLS, m uintptr) (_2 int32) +TEXT ·Ypthread_mutex_trylock(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ m+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xpthread_mutex_trylock(SB) + MOVL 16(SP), AX + MOVL AX, _2+16(FP) + RET + +// func Ypthread_mutex_unlock(tls *TLS, m uintptr) (_2 int32) +TEXT ·Ypthread_mutex_unlock(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ m+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xpthread_mutex_unlock(SB) + MOVL 16(SP), AX + MOVL AX, _2+16(FP) + RET + +// func Ypthread_mutexattr_destroy(tls *TLS, a uintptr) (_2 int32) +TEXT ·Ypthread_mutexattr_destroy(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ a+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xpthread_mutexattr_destroy(SB) + MOVL 16(SP), AX + MOVL AX, _2+16(FP) + RET + +// func Ypthread_mutexattr_init(tls *TLS, a uintptr) (_2 int32) +TEXT ·Ypthread_mutexattr_init(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ a+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xpthread_mutexattr_init(SB) + MOVL 16(SP), AX + MOVL AX, _2+16(FP) + RET + +// func Ypthread_mutexattr_settype(tls *TLS, a uintptr, typ int32) (_3 int32) +TEXT ·Ypthread_mutexattr_settype(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ a+8(FP), AX + MOVQ AX, 8(SP) + MOVL typ+16(FP), AX + MOVL AX, 16(SP) + CALL ·Xpthread_mutexattr_settype(SB) + MOVL 24(SP), AX + MOVL AX, _3+24(FP) + RET + +// func Ypthread_self(tls *TLS) (_1 uintptr) +TEXT ·Ypthread_self(SB),$16-16 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·Xpthread_self(SB) + MOVQ 8(SP), AX + MOVQ AX, _1+8(FP) + RET + +// func Ypthread_setcancelstate(tls *TLS, new int32, old uintptr) (_3 int32) +TEXT ·Ypthread_setcancelstate(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL new+8(FP), AX + MOVL AX, 8(SP) + MOVQ old+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xpthread_setcancelstate(SB) + MOVL 24(SP), AX + MOVL AX, _3+24(FP) + RET + +// func Ypthread_setspecific(tls *TLS, k Tpthread_key_t, x uintptr) (_3 int32) +TEXT ·Ypthread_setspecific(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL k+8(FP), AX + MOVL AX, 8(SP) + MOVQ x+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xpthread_setspecific(SB) + MOVL 24(SP), AX + MOVL AX, _3+24(FP) + RET + +// func Ypthread_sigmask(tls *TLS, now int32, set, old uintptr) (_3 int32) +TEXT ·Ypthread_sigmask(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL now+8(FP), AX + MOVL AX, 8(SP) + MOVQ set+16(FP), AX + MOVQ AX, 16(SP) + MOVQ old+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xpthread_sigmask(SB) + MOVL 32(SP), AX + MOVL AX, _3+32(FP) + RET + +// func Yptrace(tls *TLS, req int32, va uintptr) (r int64) +TEXT ·Yptrace(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL req+8(FP), AX + MOVL AX, 8(SP) + MOVQ va+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xptrace(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Yptsname(tls *TLS, fd int32) (r uintptr) +TEXT ·Yptsname(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xptsname(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Yptsname_r(tls *TLS, fd int32, buf uintptr, len1 Tsize_t) (r int32) +TEXT ·Yptsname_r(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVQ buf+16(FP), AX + MOVQ AX, 16(SP) + MOVQ len1+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xptsname_r(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Yputc(tls *TLS, c1 int32, f1 uintptr) (r int32) +TEXT ·Yputc(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c1+8(FP), AX + MOVL AX, 8(SP) + MOVQ f1+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xputc(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yputc_unlocked(tls *TLS, c int32, f uintptr) (r int32) +TEXT ·Yputc_unlocked(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + MOVQ f+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xputc_unlocked(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yputchar(tls *TLS, c1 int32) (r int32) +TEXT ·Yputchar(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c1+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xputchar(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yputchar_unlocked(tls *TLS, c int32) (r int32) +TEXT ·Yputchar_unlocked(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xputchar_unlocked(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yputenv(tls *TLS, s uintptr) (r int32) +TEXT ·Yputenv(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xputenv(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yputgrent(tls *TLS, gr uintptr, f uintptr) (r1 int32) +TEXT ·Yputgrent(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ gr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ f+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xputgrent(SB) + MOVL 24(SP), AX + MOVL AX, r1+24(FP) + RET + +// func Yputpwent(tls *TLS, pw uintptr, f uintptr) (r int32) +TEXT ·Yputpwent(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ pw+8(FP), AX + MOVQ AX, 8(SP) + MOVQ f+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xputpwent(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yputs(tls *TLS, s uintptr) (r1 int32) +TEXT ·Yputs(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xputs(SB) + MOVL 16(SP), AX + MOVL AX, r1+16(FP) + RET + +// func Yputspent(tls *TLS, sp uintptr, f uintptr) (r int32) +TEXT ·Yputspent(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ sp+8(FP), AX + MOVQ AX, 8(SP) + MOVQ f+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xputspent(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ypututline(tls *TLS, ut uintptr) (r uintptr) +TEXT ·Ypututline(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ut+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xpututline(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ypututxline(tls *TLS, ut uintptr) (r uintptr) +TEXT ·Ypututxline(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ut+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xpututxline(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Yputw(tls *TLS, _x int32, f uintptr) (r int32) +TEXT ·Yputw(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL _x+8(FP), AX + MOVL AX, 8(SP) + MOVQ f+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xputw(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yputwc(tls *TLS, c Twchar_t, f uintptr) (r Twint_t) +TEXT ·Yputwc(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + MOVQ f+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xputwc(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yputwc_unlocked(tls *TLS, c Twchar_t, f uintptr) (r Twint_t) +TEXT ·Yputwc_unlocked(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + MOVQ f+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xputwc_unlocked(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yputwchar(tls *TLS, c Twchar_t) (r Twint_t) +TEXT ·Yputwchar(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xputwchar(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yputwchar_unlocked(tls *TLS, c Twchar_t) (r Twint_t) +TEXT ·Yputwchar_unlocked(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xputwchar_unlocked(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ypwrite(tls *TLS, fd int32, buf uintptr, size Tsize_t, ofs Toff_t) (r Tssize_t) +TEXT ·Ypwrite(SB),$48-48 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVQ buf+16(FP), AX + MOVQ AX, 16(SP) + MOVQ size+24(FP), AX + MOVQ AX, 24(SP) + MOVQ ofs+32(FP), AX + MOVQ AX, 32(SP) + CALL ·Xpwrite(SB) + MOVQ 40(SP), AX + MOVQ AX, r+40(FP) + RET + +// func Ypwritev(tls *TLS, fd int32, iov uintptr, count int32, ofs Toff_t) (r Tssize_t) +TEXT ·Ypwritev(SB),$48-48 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVQ iov+16(FP), AX + MOVQ AX, 16(SP) + MOVL count+24(FP), AX + MOVL AX, 24(SP) + MOVQ ofs+32(FP), AX + MOVQ AX, 32(SP) + CALL ·Xpwritev(SB) + MOVQ 40(SP), AX + MOVQ AX, r+40(FP) + RET + +// func Ypwritev2(tls *TLS, fd int32, iov uintptr, count int32, ofs Toff_t, flags int32) (r Tssize_t) +TEXT ·Ypwritev2(SB),$56-56 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVQ iov+16(FP), AX + MOVQ AX, 16(SP) + MOVL count+24(FP), AX + MOVL AX, 24(SP) + MOVQ ofs+32(FP), AX + MOVQ AX, 32(SP) + MOVL flags+40(FP), AX + MOVL AX, 40(SP) + CALL ·Xpwritev2(SB) + MOVQ 48(SP), AX + MOVQ AX, r+48(FP) + RET + +// func Yqsort(tls *TLS, base uintptr, nel Tsize_t, width Tsize_t, __ccgo_fp_cmp Tcmpfun) +TEXT ·Yqsort(SB),$48-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX // alloc all ABI trampolines + MOVQ AX, 0(SP) + MOVQ $16, 8(SP) // 16*(number of func ptrs in signature) + CALL modernc·org∕libc·TLSAlloc(SB) + MOVQ 16(SP), AX + MOVQ AX, -8(BP) // Trampolines[0] + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ -8(BP), AX + ADDQ $0, AX // 16*(0-based ordinal number of the func ptr in signature) + MOVQ AX, 8(SP) + MOVQ __ccgo_fp_cmp+32(FP), AX // ABI0 code ptr + MOVQ AX, 16(SP) + CALL ·__ccgo_abiInternal_qsort_3(SB) // Create the closure for calling __ccgo_fp_cmp + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ base+8(FP), AX + MOVQ AX, 8(SP) + MOVQ nel+16(FP), AX + MOVQ AX, 16(SP) + MOVQ width+24(FP), AX + MOVQ AX, 24(SP) + MOVQ -8(BP), AX // Trampolines[0] + ADDQ $0, AX // 16*(0-based ordinal number of the func ptr in signature) + MOVQ AX, 32(SP) + CALL ·Xqsort(SB) + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ $0, 8(SP) + CALL modernc·org∕libc·TLSFree(SB) + RET + +TEXT ·__ccgo_abi0_qsort_3(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ _0+0(FP), AX + MOVQ AX, 0(SP) + MOVQ _1+8(FP), AX + MOVQ AX, 8(SP) + MOVQ _2+16(FP), AX + MOVQ AX, 16(SP) + MOVQ __ccgo_fp+24(FP), AX + CALL *AX // Call the ABI0 code ptr + MOVL 24(SP), AX + MOVL AX, _3+32(FP) + RET + +// func Yqsort_r(tls *TLS, base uintptr, nel Tsize_t, width Tsize_t, __ccgo_fp_cmp Tcmpfun, arg uintptr) +TEXT ·Yqsort_r(SB),$56-48 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX // alloc all ABI trampolines + MOVQ AX, 0(SP) + MOVQ $16, 8(SP) // 16*(number of func ptrs in signature) + CALL modernc·org∕libc·TLSAlloc(SB) + MOVQ 16(SP), AX + MOVQ AX, -8(BP) // Trampolines[0] + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ -8(BP), AX + ADDQ $0, AX // 16*(0-based ordinal number of the func ptr in signature) + MOVQ AX, 8(SP) + MOVQ __ccgo_fp_cmp+32(FP), AX // ABI0 code ptr + MOVQ AX, 16(SP) + CALL ·__ccgo_abiInternal_qsort_r_3(SB) // Create the closure for calling __ccgo_fp_cmp + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ base+8(FP), AX + MOVQ AX, 8(SP) + MOVQ nel+16(FP), AX + MOVQ AX, 16(SP) + MOVQ width+24(FP), AX + MOVQ AX, 24(SP) + MOVQ -8(BP), AX // Trampolines[0] + ADDQ $0, AX // 16*(0-based ordinal number of the func ptr in signature) + MOVQ AX, 32(SP) + MOVQ arg+40(FP), AX + MOVQ AX, 40(SP) + CALL ·Xqsort_r(SB) + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ $0, 8(SP) + CALL modernc·org∕libc·TLSFree(SB) + RET + +TEXT ·__ccgo_abi0_qsort_r_3(SB),$48-44 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ _0+0(FP), AX + MOVQ AX, 0(SP) + MOVQ _1+8(FP), AX + MOVQ AX, 8(SP) + MOVQ _2+16(FP), AX + MOVQ AX, 16(SP) + MOVQ _3+24(FP), AX + MOVQ AX, 24(SP) + MOVQ __ccgo_fp+32(FP), AX + CALL *AX // Call the ABI0 code ptr + MOVL 32(SP), AX + MOVL AX, _4+40(FP) + RET + +// func Yquick_exit(tls *TLS, code int32) +TEXT ·Yquick_exit(SB),$16-12 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL code+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xquick_exit(SB) + RET + +// func Yquotactl(tls *TLS, cmd int32, special uintptr, id int32, addr uintptr) (r int32) +TEXT ·Yquotactl(SB),$48-44 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL cmd+8(FP), AX + MOVL AX, 8(SP) + MOVQ special+16(FP), AX + MOVQ AX, 16(SP) + MOVL id+24(FP), AX + MOVL AX, 24(SP) + MOVQ addr+32(FP), AX + MOVQ AX, 32(SP) + CALL ·Xquotactl(SB) + MOVL 40(SP), AX + MOVL AX, r+40(FP) + RET + +// func Yraise(tls *TLS, sig int32) (r int32) +TEXT ·Yraise(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL sig+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xraise(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yrand(tls *TLS) (r int32) +TEXT ·Yrand(SB),$16-12 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·Xrand(SB) + MOVL 8(SP), AX + MOVL AX, r+8(FP) + RET + +// func Yrand_r(tls *TLS, seed uintptr) (r int32) +TEXT ·Yrand_r(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ seed+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xrand_r(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yrandom(tls *TLS) (r int64) +TEXT ·Yrandom(SB),$16-16 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·Xrandom(SB) + MOVQ 8(SP), AX + MOVQ AX, r+8(FP) + RET + +// func Yrandom_r(t *TLS, buf, result uintptr) (_2 int32) +TEXT ·Yrandom_r(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ buf+8(FP), AX + MOVQ AX, 8(SP) + MOVQ result+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xrandom_r(SB) + MOVL 24(SP), AX + MOVL AX, _2+24(FP) + RET + +// func Yread(tls *TLS, fd int32, buf uintptr, count Tsize_t) (r Tssize_t) +TEXT ·Yread(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVQ buf+16(FP), AX + MOVQ AX, 16(SP) + MOVQ count+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xread(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Yreadahead(tls *TLS, fd int32, pos Toff_t, len1 Tsize_t) (r Tssize_t) +TEXT ·Yreadahead(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVQ pos+16(FP), AX + MOVQ AX, 16(SP) + MOVQ len1+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xreadahead(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Yreaddir(tls *TLS, dir uintptr) (r uintptr) +TEXT ·Yreaddir(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ dir+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xreaddir(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Yreaddir64(tls *TLS, dir uintptr) (r uintptr) +TEXT ·Yreaddir64(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ dir+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xreaddir64(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Yreaddir_r(tls *TLS, dir uintptr, buf uintptr, result uintptr) (r int32) +TEXT ·Yreaddir_r(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ dir+8(FP), AX + MOVQ AX, 8(SP) + MOVQ buf+16(FP), AX + MOVQ AX, 16(SP) + MOVQ result+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xreaddir_r(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Yreadlink(tls *TLS, path uintptr, buf uintptr, bufsize Tsize_t) (r1 Tssize_t) +TEXT ·Yreadlink(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ path+8(FP), AX + MOVQ AX, 8(SP) + MOVQ buf+16(FP), AX + MOVQ AX, 16(SP) + MOVQ bufsize+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xreadlink(SB) + MOVQ 32(SP), AX + MOVQ AX, r1+32(FP) + RET + +// func Yreadlinkat(tls *TLS, fd int32, path uintptr, buf uintptr, bufsize Tsize_t) (r1 Tssize_t) +TEXT ·Yreadlinkat(SB),$48-48 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVQ path+16(FP), AX + MOVQ AX, 16(SP) + MOVQ buf+24(FP), AX + MOVQ AX, 24(SP) + MOVQ bufsize+32(FP), AX + MOVQ AX, 32(SP) + CALL ·Xreadlinkat(SB) + MOVQ 40(SP), AX + MOVQ AX, r1+40(FP) + RET + +// func Yreadv(tls *TLS, fd int32, iov uintptr, count int32) (r Tssize_t) +TEXT ·Yreadv(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVQ iov+16(FP), AX + MOVQ AX, 16(SP) + MOVL count+24(FP), AX + MOVL AX, 24(SP) + CALL ·Xreadv(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Yrealloc(tls *TLS, p uintptr, n Tsize_t) (r uintptr) +TEXT ·Yrealloc(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ p+8(FP), AX + MOVQ AX, 8(SP) + MOVQ n+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xrealloc(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Yreallocarray(tls *TLS, ptr uintptr, m Tsize_t, n Tsize_t) (r uintptr) +TEXT ·Yreallocarray(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ptr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ m+16(FP), AX + MOVQ AX, 16(SP) + MOVQ n+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xreallocarray(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Yrealpath(tls *TLS, filename uintptr, resolved uintptr) (r uintptr) +TEXT ·Yrealpath(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ filename+8(FP), AX + MOVQ AX, 8(SP) + MOVQ resolved+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xrealpath(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Yreboot(tls *TLS, type1 int32) (r int32) +TEXT ·Yreboot(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL type1+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xreboot(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yrecv(tls *TLS, fd int32, buf uintptr, len1 Tsize_t, flags int32) (r Tssize_t) +TEXT ·Yrecv(SB),$48-48 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVQ buf+16(FP), AX + MOVQ AX, 16(SP) + MOVQ len1+24(FP), AX + MOVQ AX, 24(SP) + MOVL flags+32(FP), AX + MOVL AX, 32(SP) + CALL ·Xrecv(SB) + MOVQ 40(SP), AX + MOVQ AX, r+40(FP) + RET + +// func Yrecvfrom(tls *TLS, fd int32, buf uintptr, len1 Tsize_t, flags int32, addr uintptr, alen uintptr) (r1 Tssize_t) +TEXT ·Yrecvfrom(SB),$64-64 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVQ buf+16(FP), AX + MOVQ AX, 16(SP) + MOVQ len1+24(FP), AX + MOVQ AX, 24(SP) + MOVL flags+32(FP), AX + MOVL AX, 32(SP) + MOVQ addr+40(FP), AX + MOVQ AX, 40(SP) + MOVQ alen+48(FP), AX + MOVQ AX, 48(SP) + CALL ·Xrecvfrom(SB) + MOVQ 56(SP), AX + MOVQ AX, r1+56(FP) + RET + +// func Yrecvmmsg(tls *TLS, fd int32, msgvec uintptr, vlen uint32, flags uint32, timeout uintptr) (r int32) +TEXT ·Yrecvmmsg(SB),$48-44 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVQ msgvec+16(FP), AX + MOVQ AX, 16(SP) + MOVL vlen+24(FP), AX + MOVL AX, 24(SP) + MOVL flags+28(FP), AX + MOVL AX, 28(SP) + MOVQ timeout+32(FP), AX + MOVQ AX, 32(SP) + CALL ·Xrecvmmsg(SB) + MOVL 40(SP), AX + MOVL AX, r+40(FP) + RET + +// func Yrecvmsg(tls *TLS, fd int32, msg uintptr, flags int32) (r2 Tssize_t) +TEXT ·Yrecvmsg(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVQ msg+16(FP), AX + MOVQ AX, 16(SP) + MOVL flags+24(FP), AX + MOVL AX, 24(SP) + CALL ·Xrecvmsg(SB) + MOVQ 32(SP), AX + MOVQ AX, r2+32(FP) + RET + +// func Yregcomp(tls *TLS, preg uintptr, regex uintptr, cflags int32) (r int32) +TEXT ·Yregcomp(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ preg+8(FP), AX + MOVQ AX, 8(SP) + MOVQ regex+16(FP), AX + MOVQ AX, 16(SP) + MOVL cflags+24(FP), AX + MOVL AX, 24(SP) + CALL ·Xregcomp(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Yregerror(tls *TLS, e int32, preg uintptr, buf uintptr, size Tsize_t) (r Tsize_t) +TEXT ·Yregerror(SB),$48-48 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL e+8(FP), AX + MOVL AX, 8(SP) + MOVQ preg+16(FP), AX + MOVQ AX, 16(SP) + MOVQ buf+24(FP), AX + MOVQ AX, 24(SP) + MOVQ size+32(FP), AX + MOVQ AX, 32(SP) + CALL ·Xregerror(SB) + MOVQ 40(SP), AX + MOVQ AX, r+40(FP) + RET + +// func Yregexec(tls *TLS, preg uintptr, string1 uintptr, nmatch Tsize_t, pmatch uintptr, eflags int32) (r int32) +TEXT ·Yregexec(SB),$56-52 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ preg+8(FP), AX + MOVQ AX, 8(SP) + MOVQ string1+16(FP), AX + MOVQ AX, 16(SP) + MOVQ nmatch+24(FP), AX + MOVQ AX, 24(SP) + MOVQ pmatch+32(FP), AX + MOVQ AX, 32(SP) + MOVL eflags+40(FP), AX + MOVL AX, 40(SP) + CALL ·Xregexec(SB) + MOVL 48(SP), AX + MOVL AX, r+48(FP) + RET + +// func Yregfree(tls *TLS, preg uintptr) +TEXT ·Yregfree(SB),$16-16 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ preg+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xregfree(SB) + RET + +// func Yremainder(tls *TLS, x float64, y float64) (r float64) +TEXT ·Yremainder(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + MOVQ y+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xremainder(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Yremainderf(tls *TLS, x float32, y float32) (r float32) +TEXT ·Yremainderf(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL x+8(FP), AX + MOVL AX, 8(SP) + MOVL y+12(FP), AX + MOVL AX, 12(SP) + CALL ·Xremainderf(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yremainderl(tls *TLS, x float64, y float64) (r float64) +TEXT ·Yremainderl(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + MOVQ y+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xremainderl(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Yremap_file_pages(tls *TLS, addr uintptr, size Tsize_t, prot int32, pgoff Tsize_t, flags int32) (r int32) +TEXT ·Yremap_file_pages(SB),$56-52 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ addr+8(FP), AX + MOVQ AX, 8(SP) + MOVQ size+16(FP), AX + MOVQ AX, 16(SP) + MOVL prot+24(FP), AX + MOVL AX, 24(SP) + MOVQ pgoff+32(FP), AX + MOVQ AX, 32(SP) + MOVL flags+40(FP), AX + MOVL AX, 40(SP) + CALL ·Xremap_file_pages(SB) + MOVL 48(SP), AX + MOVL AX, r+48(FP) + RET + +// func Yremove(tls *TLS, path uintptr) (r1 int32) +TEXT ·Yremove(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ path+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xremove(SB) + MOVL 16(SP), AX + MOVL AX, r1+16(FP) + RET + +// func Yremovexattr(tls *TLS, path uintptr, name uintptr) (r int32) +TEXT ·Yremovexattr(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ path+8(FP), AX + MOVQ AX, 8(SP) + MOVQ name+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xremovexattr(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yremque(tls *TLS, element uintptr) +TEXT ·Yremque(SB),$16-16 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ element+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xremque(SB) + RET + +// func Yremquo(tls *TLS, x float64, y float64, quo uintptr) (r float64) +TEXT ·Yremquo(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + MOVQ y+16(FP), AX + MOVQ AX, 16(SP) + MOVQ quo+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xremquo(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Yremquof(tls *TLS, x float32, y float32, quo uintptr) (r float32) +TEXT ·Yremquof(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL x+8(FP), AX + MOVL AX, 8(SP) + MOVL y+12(FP), AX + MOVL AX, 12(SP) + MOVQ quo+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xremquof(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yremquol(tls *TLS, x float64, y float64, quo uintptr) (r float64) +TEXT ·Yremquol(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + MOVQ y+16(FP), AX + MOVQ AX, 16(SP) + MOVQ quo+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xremquol(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Yrename(tls *TLS, old uintptr, new1 uintptr) (r int32) +TEXT ·Yrename(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ old+8(FP), AX + MOVQ AX, 8(SP) + MOVQ new1+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xrename(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yrenameat(tls *TLS, oldfd int32, old uintptr, newfd int32, new1 uintptr) (r int32) +TEXT ·Yrenameat(SB),$48-44 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL oldfd+8(FP), AX + MOVL AX, 8(SP) + MOVQ old+16(FP), AX + MOVQ AX, 16(SP) + MOVL newfd+24(FP), AX + MOVL AX, 24(SP) + MOVQ new1+32(FP), AX + MOVQ AX, 32(SP) + CALL ·Xrenameat(SB) + MOVL 40(SP), AX + MOVL AX, r+40(FP) + RET + +// func Yrenameat2(t *TLS, olddirfd int32, oldpath uintptr, newdirfd int32, newpath uintptr, flags int32) (_6 int32) +TEXT ·Yrenameat2(SB),$56-52 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVL olddirfd+8(FP), AX + MOVL AX, 8(SP) + MOVQ oldpath+16(FP), AX + MOVQ AX, 16(SP) + MOVL newdirfd+24(FP), AX + MOVL AX, 24(SP) + MOVQ newpath+32(FP), AX + MOVQ AX, 32(SP) + MOVL flags+40(FP), AX + MOVL AX, 40(SP) + CALL ·Xrenameat2(SB) + MOVL 48(SP), AX + MOVL AX, _6+48(FP) + RET + +// func Yres_init(tls *TLS) (r int32) +TEXT ·Yres_init(SB),$16-12 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·Xres_init(SB) + MOVL 8(SP), AX + MOVL AX, r+8(FP) + RET + +// func Yres_mkquery(tls *TLS, op int32, dname uintptr, class int32, type1 int32, data uintptr, datalen int32, newrr uintptr, buf uintptr, buflen int32) (r int32) +TEXT ·Yres_mkquery(SB),$80-76 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL op+8(FP), AX + MOVL AX, 8(SP) + MOVQ dname+16(FP), AX + MOVQ AX, 16(SP) + MOVL class+24(FP), AX + MOVL AX, 24(SP) + MOVL type1+28(FP), AX + MOVL AX, 28(SP) + MOVQ data+32(FP), AX + MOVQ AX, 32(SP) + MOVL datalen+40(FP), AX + MOVL AX, 40(SP) + MOVQ newrr+48(FP), AX + MOVQ AX, 48(SP) + MOVQ buf+56(FP), AX + MOVQ AX, 56(SP) + MOVL buflen+64(FP), AX + MOVL AX, 64(SP) + CALL ·Xres_mkquery(SB) + MOVL 72(SP), AX + MOVL AX, r+72(FP) + RET + +// func Yres_send(tls *TLS, _msg uintptr, _msglen int32, _answer uintptr, _anslen int32) (r int32) +TEXT ·Yres_send(SB),$48-44 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ _msg+8(FP), AX + MOVQ AX, 8(SP) + MOVL _msglen+16(FP), AX + MOVL AX, 16(SP) + MOVQ _answer+24(FP), AX + MOVQ AX, 24(SP) + MOVL _anslen+32(FP), AX + MOVL AX, 32(SP) + CALL ·Xres_send(SB) + MOVL 40(SP), AX + MOVL AX, r+40(FP) + RET + +// func Yrewind(tls *TLS, f uintptr) +TEXT ·Yrewind(SB),$16-16 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xrewind(SB) + RET + +// func Yrewinddir(tls *TLS, dir uintptr) +TEXT ·Yrewinddir(SB),$16-16 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ dir+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xrewinddir(SB) + RET + +// func Yrindex(tls *TLS, s uintptr, c int32) (r uintptr) +TEXT ·Yrindex(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVL c+16(FP), AX + MOVL AX, 16(SP) + CALL ·Xrindex(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Yrint(tls *TLS, x float64) (r float64) +TEXT ·Yrint(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xrint(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Yrintf(tls *TLS, x float32) (r float32) +TEXT ·Yrintf(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL x+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xrintf(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yrintl(tls *TLS, x float64) (r float64) +TEXT ·Yrintl(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xrintl(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Yrmdir(tls *TLS, path uintptr) (r int32) +TEXT ·Yrmdir(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ path+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xrmdir(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yround(tls *TLS, x3 float64) (r float64) +TEXT ·Yround(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x3+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xround(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Yroundf(tls *TLS, x3 float32) (r float32) +TEXT ·Yroundf(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL x3+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xroundf(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yroundl(tls *TLS, x float64) (r float64) +TEXT ·Yroundl(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xroundl(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ysbrk(tls *TLS, inc Tintptr_t) (r uintptr) +TEXT ·Ysbrk(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ inc+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xsbrk(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Yscalb(tls *TLS, x float64, fn float64) (r float64) +TEXT ·Yscalb(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + MOVQ fn+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xscalb(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Yscalbf(tls *TLS, x float32, fn float32) (r float32) +TEXT ·Yscalbf(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL x+8(FP), AX + MOVL AX, 8(SP) + MOVL fn+12(FP), AX + MOVL AX, 12(SP) + CALL ·Xscalbf(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yscalbln(tls *TLS, x float64, n int64) (r float64) +TEXT ·Yscalbln(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + MOVQ n+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xscalbln(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Yscalblnf(tls *TLS, x float32, n int64) (r float32) +TEXT ·Yscalblnf(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL x+8(FP), AX + MOVL AX, 8(SP) + MOVQ n+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xscalblnf(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yscalblnl(tls *TLS, x float64, n int64) (r float64) +TEXT ·Yscalblnl(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + MOVQ n+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xscalblnl(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Yscalbn(tls *TLS, x float64, n int32) (r float64) +TEXT ·Yscalbn(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + MOVL n+16(FP), AX + MOVL AX, 16(SP) + CALL ·Xscalbn(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Yscalbnf(tls *TLS, x float32, n int32) (r float32) +TEXT ·Yscalbnf(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL x+8(FP), AX + MOVL AX, 8(SP) + MOVL n+12(FP), AX + MOVL AX, 12(SP) + CALL ·Xscalbnf(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yscalbnl(tls *TLS, x float64, n int32) (r float64) +TEXT ·Yscalbnl(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + MOVL n+16(FP), AX + MOVL AX, 16(SP) + CALL ·Xscalbnl(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Yscandir(tls *TLS, path uintptr, res uintptr, __ccgo_fp_sel uintptr, __ccgo_fp_cmp uintptr) (r int32) +TEXT ·Yscandir(SB),$56-44 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX // alloc all ABI trampolines + MOVQ AX, 0(SP) + MOVQ $32, 8(SP) // 16*(number of func ptrs in signature) + CALL modernc·org∕libc·TLSAlloc(SB) + MOVQ 16(SP), AX + MOVQ AX, -8(BP) // Trampolines[0] + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ -8(BP), AX + ADDQ $0, AX // 16*(0-based ordinal number of the func ptr in signature) + MOVQ AX, 8(SP) + MOVQ __ccgo_fp_sel+24(FP), AX // ABI0 code ptr + MOVQ AX, 16(SP) + CALL ·__ccgo_abiInternal_scandir_2(SB) // Create the closure for calling __ccgo_fp_sel + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ -8(BP), AX + ADDQ $16, AX // 16*(0-based ordinal number of the func ptr in signature) + MOVQ AX, 8(SP) + MOVQ __ccgo_fp_cmp+32(FP), AX // ABI0 code ptr + MOVQ AX, 16(SP) + CALL ·__ccgo_abiInternal_scandir_3(SB) // Create the closure for calling __ccgo_fp_cmp + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ path+8(FP), AX + MOVQ AX, 8(SP) + MOVQ res+16(FP), AX + MOVQ AX, 16(SP) + MOVQ -8(BP), AX // Trampolines[0] + ADDQ $0, AX // 16*(0-based ordinal number of the func ptr in signature) + MOVQ AX, 24(SP) + MOVQ -8(BP), AX // Trampolines[0] + ADDQ $16, AX // 16*(0-based ordinal number of the func ptr in signature) + MOVQ AX, 32(SP) + CALL ·Xscandir(SB) + MOVL 40(SP), AX + MOVL AX, r+40(FP) + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ $0, 8(SP) + CALL modernc·org∕libc·TLSFree(SB) + RET + +TEXT ·__ccgo_abi0_scandir_2(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ _0+0(FP), AX + MOVQ AX, 0(SP) + MOVQ _1+8(FP), AX + MOVQ AX, 8(SP) + MOVQ __ccgo_fp+16(FP), AX + CALL *AX // Call the ABI0 code ptr + MOVL 16(SP), AX + MOVL AX, _2+24(FP) + RET + +TEXT ·__ccgo_abi0_scandir_3(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ _0+0(FP), AX + MOVQ AX, 0(SP) + MOVQ _1+8(FP), AX + MOVQ AX, 8(SP) + MOVQ _2+16(FP), AX + MOVQ AX, 16(SP) + MOVQ __ccgo_fp+24(FP), AX + CALL *AX // Call the ABI0 code ptr + MOVL 24(SP), AX + MOVL AX, _3+32(FP) + RET + +// func Yscanf(tls *TLS, fmt uintptr, va uintptr) (r int32) +TEXT ·Yscanf(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ fmt+8(FP), AX + MOVQ AX, 8(SP) + MOVQ va+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xscanf(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ysched_yield(tls *TLS) (_1 int32) +TEXT ·Ysched_yield(SB),$16-12 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·Xsched_yield(SB) + MOVL 8(SP), AX + MOVL AX, _1+8(FP) + RET + +// func Ysecure_getenv(tls *TLS, name uintptr) (r uintptr) +TEXT ·Ysecure_getenv(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ name+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xsecure_getenv(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Yseed48(tls *TLS, s uintptr) (r uintptr) +TEXT ·Yseed48(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xseed48(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Yseekdir(tls *TLS, dir uintptr, off int64) +TEXT ·Yseekdir(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ dir+8(FP), AX + MOVQ AX, 8(SP) + MOVQ off+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xseekdir(SB) + RET + +// func Yselect(tls *TLS, n int32, rfds uintptr, wfds uintptr, efds uintptr, tv uintptr) (r int32) +TEXT ·Yselect(SB),$56-52 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL n+8(FP), AX + MOVL AX, 8(SP) + MOVQ rfds+16(FP), AX + MOVQ AX, 16(SP) + MOVQ wfds+24(FP), AX + MOVQ AX, 24(SP) + MOVQ efds+32(FP), AX + MOVQ AX, 32(SP) + MOVQ tv+40(FP), AX + MOVQ AX, 40(SP) + CALL ·Xselect(SB) + MOVL 48(SP), AX + MOVL AX, r+48(FP) + RET + +// func Ysemctl(tls *TLS, id int32, num int32, cmd int32, va uintptr) (r1 int32) +TEXT ·Ysemctl(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL id+8(FP), AX + MOVL AX, 8(SP) + MOVL num+12(FP), AX + MOVL AX, 12(SP) + MOVL cmd+16(FP), AX + MOVL AX, 16(SP) + MOVQ va+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xsemctl(SB) + MOVL 32(SP), AX + MOVL AX, r1+32(FP) + RET + +// func Ysemget(tls *TLS, key Tkey_t, n int32, fl int32) (r int32) +TEXT ·Ysemget(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL key+8(FP), AX + MOVL AX, 8(SP) + MOVL n+12(FP), AX + MOVL AX, 12(SP) + MOVL fl+16(FP), AX + MOVL AX, 16(SP) + CALL ·Xsemget(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ysemop(tls *TLS, id int32, buf uintptr, n Tsize_t) (r int32) +TEXT ·Ysemop(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL id+8(FP), AX + MOVL AX, 8(SP) + MOVQ buf+16(FP), AX + MOVQ AX, 16(SP) + MOVQ n+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xsemop(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Ysemtimedop(tls *TLS, id int32, buf uintptr, n Tsize_t, ts uintptr) (r int32) +TEXT ·Ysemtimedop(SB),$48-44 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL id+8(FP), AX + MOVL AX, 8(SP) + MOVQ buf+16(FP), AX + MOVQ AX, 16(SP) + MOVQ n+24(FP), AX + MOVQ AX, 24(SP) + MOVQ ts+32(FP), AX + MOVQ AX, 32(SP) + CALL ·Xsemtimedop(SB) + MOVL 40(SP), AX + MOVL AX, r+40(FP) + RET + +// func Ysend(tls *TLS, fd int32, buf uintptr, len1 Tsize_t, flags int32) (r Tssize_t) +TEXT ·Ysend(SB),$48-48 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVQ buf+16(FP), AX + MOVQ AX, 16(SP) + MOVQ len1+24(FP), AX + MOVQ AX, 24(SP) + MOVL flags+32(FP), AX + MOVL AX, 32(SP) + CALL ·Xsend(SB) + MOVQ 40(SP), AX + MOVQ AX, r+40(FP) + RET + +// func Ysendfile(tls *TLS, out_fd int32, in_fd int32, ofs uintptr, count Tsize_t) (r Tssize_t) +TEXT ·Ysendfile(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL out_fd+8(FP), AX + MOVL AX, 8(SP) + MOVL in_fd+12(FP), AX + MOVL AX, 12(SP) + MOVQ ofs+16(FP), AX + MOVQ AX, 16(SP) + MOVQ count+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xsendfile(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Ysendmmsg(tls *TLS, fd int32, msgvec uintptr, vlen uint32, flags uint32) (r1 int32) +TEXT ·Ysendmmsg(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVQ msgvec+16(FP), AX + MOVQ AX, 16(SP) + MOVL vlen+24(FP), AX + MOVL AX, 24(SP) + MOVL flags+28(FP), AX + MOVL AX, 28(SP) + CALL ·Xsendmmsg(SB) + MOVL 32(SP), AX + MOVL AX, r1+32(FP) + RET + +// func Ysendmsg(tls *TLS, fd int32, msg uintptr, flags int32) (r1 Tssize_t) +TEXT ·Ysendmsg(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVQ msg+16(FP), AX + MOVQ AX, 16(SP) + MOVL flags+24(FP), AX + MOVL AX, 24(SP) + CALL ·Xsendmsg(SB) + MOVQ 32(SP), AX + MOVQ AX, r1+32(FP) + RET + +// func Ysendto(tls *TLS, fd int32, buf uintptr, len1 Tsize_t, flags int32, addr uintptr, alen Tsocklen_t) (r1 Tssize_t) +TEXT ·Ysendto(SB),$64-64 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVQ buf+16(FP), AX + MOVQ AX, 16(SP) + MOVQ len1+24(FP), AX + MOVQ AX, 24(SP) + MOVL flags+32(FP), AX + MOVL AX, 32(SP) + MOVQ addr+40(FP), AX + MOVQ AX, 40(SP) + MOVL alen+48(FP), AX + MOVL AX, 48(SP) + CALL ·Xsendto(SB) + MOVQ 56(SP), AX + MOVQ AX, r1+56(FP) + RET + +// func Ysetbuf(tls *TLS, f uintptr, buf uintptr) +TEXT ·Ysetbuf(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + MOVQ buf+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xsetbuf(SB) + RET + +// func Ysetbuffer(tls *TLS, f uintptr, buf uintptr, size Tsize_t) +TEXT ·Ysetbuffer(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + MOVQ buf+16(FP), AX + MOVQ AX, 16(SP) + MOVQ size+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xsetbuffer(SB) + RET + +// func Ysetdomainname(tls *TLS, name uintptr, len1 Tsize_t) (r int32) +TEXT ·Ysetdomainname(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ name+8(FP), AX + MOVQ AX, 8(SP) + MOVQ len1+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xsetdomainname(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ysetenv(tls *TLS, var1 uintptr, value uintptr, overwrite int32) (r int32) +TEXT ·Ysetenv(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ var1+8(FP), AX + MOVQ AX, 8(SP) + MOVQ value+16(FP), AX + MOVQ AX, 16(SP) + MOVL overwrite+24(FP), AX + MOVL AX, 24(SP) + CALL ·Xsetenv(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Ysetfsgid(tls *TLS, gid Tgid_t) (r int32) +TEXT ·Ysetfsgid(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL gid+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xsetfsgid(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ysetfsuid(tls *TLS, uid Tuid_t) (r int32) +TEXT ·Ysetfsuid(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL uid+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xsetfsuid(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ysetgid(tls *TLS, gid Tgid_t) (r int32) +TEXT ·Ysetgid(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL gid+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xsetgid(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ysetgrent(tls *TLS) +TEXT ·Ysetgrent(SB),$8-8 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·Xsetgrent(SB) + RET + +// func Ysethostent(tls *TLS, x int32) +TEXT ·Ysethostent(SB),$16-12 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL x+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xsethostent(SB) + RET + +// func Ysethostname(tls *TLS, name uintptr, len1 Tsize_t) (r int32) +TEXT ·Ysethostname(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ name+8(FP), AX + MOVQ AX, 8(SP) + MOVQ len1+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xsethostname(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ysetitimer(tls *TLS, which int32, new1 uintptr, old uintptr) (r1 int32) +TEXT ·Ysetitimer(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL which+8(FP), AX + MOVL AX, 8(SP) + MOVQ new1+16(FP), AX + MOVQ AX, 16(SP) + MOVQ old+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xsetitimer(SB) + MOVL 32(SP), AX + MOVL AX, r1+32(FP) + RET + +// func Ysetjmp(t *TLS, env uintptr) (_2 int32) +TEXT ·Ysetjmp(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ env+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xsetjmp(SB) + MOVL 16(SP), AX + MOVL AX, _2+16(FP) + RET + +// func Ysetkey(tls *TLS, key uintptr) +TEXT ·Ysetkey(SB),$16-16 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ key+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xsetkey(SB) + RET + +// func Ysetlinebuf(tls *TLS, f uintptr) +TEXT ·Ysetlinebuf(SB),$16-16 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xsetlinebuf(SB) + RET + +// func Ysetlocale(tls *TLS, cat int32, name uintptr) (r uintptr) +TEXT ·Ysetlocale(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL cat+8(FP), AX + MOVL AX, 8(SP) + MOVQ name+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xsetlocale(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Ysetlogmask(tls *TLS, maskpri int32) (r int32) +TEXT ·Ysetlogmask(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL maskpri+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xsetlogmask(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ysetmntent(tls *TLS, name uintptr, mode uintptr) (r uintptr) +TEXT ·Ysetmntent(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ name+8(FP), AX + MOVQ AX, 8(SP) + MOVQ mode+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xsetmntent(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Ysetnetent(tls *TLS, x int32) +TEXT ·Ysetnetent(SB),$16-12 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL x+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xsetnetent(SB) + RET + +// func Ysetns(tls *TLS, fd int32, nstype int32) (r int32) +TEXT ·Ysetns(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVL nstype+12(FP), AX + MOVL AX, 12(SP) + CALL ·Xsetns(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ysetpgid(tls *TLS, pid Tpid_t, pgid Tpid_t) (r int32) +TEXT ·Ysetpgid(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL pid+8(FP), AX + MOVL AX, 8(SP) + MOVL pgid+12(FP), AX + MOVL AX, 12(SP) + CALL ·Xsetpgid(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ysetpgrp(tls *TLS) (r Tpid_t) +TEXT ·Ysetpgrp(SB),$16-12 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·Xsetpgrp(SB) + MOVL 8(SP), AX + MOVL AX, r+8(FP) + RET + +// func Ysetpriority(tls *TLS, which int32, who Tid_t, prio int32) (r int32) +TEXT ·Ysetpriority(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL which+8(FP), AX + MOVL AX, 8(SP) + MOVL who+12(FP), AX + MOVL AX, 12(SP) + MOVL prio+16(FP), AX + MOVL AX, 16(SP) + CALL ·Xsetpriority(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ysetprotoent(tls *TLS, stayopen int32) +TEXT ·Ysetprotoent(SB),$16-12 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL stayopen+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xsetprotoent(SB) + RET + +// func Ysetpwent(tls *TLS) +TEXT ·Ysetpwent(SB),$8-8 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·Xsetpwent(SB) + RET + +// func Ysetrlimit(tls *TLS, resource int32, rlim uintptr) (r int32) +TEXT ·Ysetrlimit(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL resource+8(FP), AX + MOVL AX, 8(SP) + MOVQ rlim+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xsetrlimit(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ysetrlimit64(tls *TLS, resource int32, rlim uintptr) (r int32) +TEXT ·Ysetrlimit64(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL resource+8(FP), AX + MOVL AX, 8(SP) + MOVQ rlim+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xsetrlimit64(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ysetservent(tls *TLS, stayopen int32) +TEXT ·Ysetservent(SB),$16-12 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL stayopen+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xsetservent(SB) + RET + +// func Ysetsid(tls *TLS) (r Tpid_t) +TEXT ·Ysetsid(SB),$16-12 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·Xsetsid(SB) + MOVL 8(SP), AX + MOVL AX, r+8(FP) + RET + +// func Ysetsockopt(tls *TLS, fd int32, level int32, optname int32, optval uintptr, optlen Tsocklen_t) (r2 int32) +TEXT ·Ysetsockopt(SB),$48-44 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVL level+12(FP), AX + MOVL AX, 12(SP) + MOVL optname+16(FP), AX + MOVL AX, 16(SP) + MOVQ optval+24(FP), AX + MOVQ AX, 24(SP) + MOVL optlen+32(FP), AX + MOVL AX, 32(SP) + CALL ·Xsetsockopt(SB) + MOVL 40(SP), AX + MOVL AX, r2+40(FP) + RET + +// func Ysetspent(tls *TLS) +TEXT ·Ysetspent(SB),$8-8 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·Xsetspent(SB) + RET + +// func Ysetstate(tls *TLS, state uintptr) (r uintptr) +TEXT ·Ysetstate(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ state+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xsetstate(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ysettimeofday(tls *TLS, tv uintptr, tz uintptr) (r int32) +TEXT ·Ysettimeofday(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ tv+8(FP), AX + MOVQ AX, 8(SP) + MOVQ tz+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xsettimeofday(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ysetuid(tls *TLS, uid Tuid_t) (r int32) +TEXT ·Ysetuid(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL uid+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xsetuid(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ysetusershell(tls *TLS) +TEXT ·Ysetusershell(SB),$8-8 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·Xsetusershell(SB) + RET + +// func Ysetutent(tls *TLS) +TEXT ·Ysetutent(SB),$8-8 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·Xsetutent(SB) + RET + +// func Ysetutxent(tls *TLS) +TEXT ·Ysetutxent(SB),$8-8 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·Xsetutxent(SB) + RET + +// func Ysetvbuf(tls *TLS, f uintptr, buf uintptr, type1 int32, size Tsize_t) (r int32) +TEXT ·Ysetvbuf(SB),$48-44 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + MOVQ buf+16(FP), AX + MOVQ AX, 16(SP) + MOVL type1+24(FP), AX + MOVL AX, 24(SP) + MOVQ size+32(FP), AX + MOVQ AX, 32(SP) + CALL ·Xsetvbuf(SB) + MOVL 40(SP), AX + MOVL AX, r+40(FP) + RET + +// func Ysetxattr(tls *TLS, path uintptr, name uintptr, value uintptr, size Tsize_t, flags int32) (r int32) +TEXT ·Ysetxattr(SB),$56-52 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ path+8(FP), AX + MOVQ AX, 8(SP) + MOVQ name+16(FP), AX + MOVQ AX, 16(SP) + MOVQ value+24(FP), AX + MOVQ AX, 24(SP) + MOVQ size+32(FP), AX + MOVQ AX, 32(SP) + MOVL flags+40(FP), AX + MOVL AX, 40(SP) + CALL ·Xsetxattr(SB) + MOVL 48(SP), AX + MOVL AX, r+48(FP) + RET + +// func Yshm_open(tls *TLS, name uintptr, flag int32, mode Tmode_t) (r int32) +TEXT ·Yshm_open(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ name+8(FP), AX + MOVQ AX, 8(SP) + MOVL flag+16(FP), AX + MOVL AX, 16(SP) + MOVL mode+20(FP), AX + MOVL AX, 20(SP) + CALL ·Xshm_open(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yshm_unlink(tls *TLS, name uintptr) (r int32) +TEXT ·Yshm_unlink(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ name+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xshm_unlink(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yshmat(tls *TLS, id int32, addr uintptr, flag int32) (r uintptr) +TEXT ·Yshmat(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL id+8(FP), AX + MOVL AX, 8(SP) + MOVQ addr+16(FP), AX + MOVQ AX, 16(SP) + MOVL flag+24(FP), AX + MOVL AX, 24(SP) + CALL ·Xshmat(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Yshmctl(tls *TLS, id int32, cmd int32, buf uintptr) (r1 int32) +TEXT ·Yshmctl(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL id+8(FP), AX + MOVL AX, 8(SP) + MOVL cmd+12(FP), AX + MOVL AX, 12(SP) + MOVQ buf+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xshmctl(SB) + MOVL 24(SP), AX + MOVL AX, r1+24(FP) + RET + +// func Yshmdt(tls *TLS, addr uintptr) (r int32) +TEXT ·Yshmdt(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ addr+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xshmdt(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yshmget(tls *TLS, key Tkey_t, size Tsize_t, flag int32) (r int32) +TEXT ·Yshmget(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL key+8(FP), AX + MOVL AX, 8(SP) + MOVQ size+16(FP), AX + MOVQ AX, 16(SP) + MOVL flag+24(FP), AX + MOVL AX, 24(SP) + CALL ·Xshmget(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Yshutdown(tls *TLS, fd int32, how int32) (r1 int32) +TEXT ·Yshutdown(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVL how+12(FP), AX + MOVL AX, 12(SP) + CALL ·Xshutdown(SB) + MOVL 16(SP), AX + MOVL AX, r1+16(FP) + RET + +// func Ysigaction(tls *TLS, sig int32, sa uintptr, old uintptr) (r int32) +TEXT ·Ysigaction(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL sig+8(FP), AX + MOVL AX, 8(SP) + MOVQ sa+16(FP), AX + MOVQ AX, 16(SP) + MOVQ old+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xsigaction(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Ysigaddset(tls *TLS, set uintptr, sig int32) (r int32) +TEXT ·Ysigaddset(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ set+8(FP), AX + MOVQ AX, 8(SP) + MOVL sig+16(FP), AX + MOVL AX, 16(SP) + CALL ·Xsigaddset(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ysigaltstack(tls *TLS, ss uintptr, old uintptr) (r int32) +TEXT ·Ysigaltstack(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ss+8(FP), AX + MOVQ AX, 8(SP) + MOVQ old+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xsigaltstack(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ysigandset(tls *TLS, dest uintptr, left uintptr, right uintptr) (r1 int32) +TEXT ·Ysigandset(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ dest+8(FP), AX + MOVQ AX, 8(SP) + MOVQ left+16(FP), AX + MOVQ AX, 16(SP) + MOVQ right+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xsigandset(SB) + MOVL 32(SP), AX + MOVL AX, r1+32(FP) + RET + +// func Ysigdelset(tls *TLS, set uintptr, sig int32) (r int32) +TEXT ·Ysigdelset(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ set+8(FP), AX + MOVQ AX, 8(SP) + MOVL sig+16(FP), AX + MOVL AX, 16(SP) + CALL ·Xsigdelset(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ysigemptyset(tls *TLS, set uintptr) (r int32) +TEXT ·Ysigemptyset(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ set+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xsigemptyset(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ysigfillset(tls *TLS, set uintptr) (r int32) +TEXT ·Ysigfillset(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ set+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xsigfillset(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ysigisemptyset(tls *TLS, set uintptr) (r int32) +TEXT ·Ysigisemptyset(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ set+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xsigisemptyset(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ysigismember(tls *TLS, set uintptr, sig int32) (r int32) +TEXT ·Ysigismember(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ set+8(FP), AX + MOVQ AX, 8(SP) + MOVL sig+16(FP), AX + MOVL AX, 16(SP) + CALL ·Xsigismember(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ysignal(tls *TLS, signum int32, handler uintptr) (r uintptr) +TEXT ·Ysignal(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL signum+8(FP), AX + MOVL AX, 8(SP) + MOVQ handler+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xsignal(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Ysignalfd(tls *TLS, fd int32, sigs uintptr, flags int32) (r int32) +TEXT ·Ysignalfd(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVQ sigs+16(FP), AX + MOVQ AX, 16(SP) + MOVL flags+24(FP), AX + MOVL AX, 24(SP) + CALL ·Xsignalfd(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Ysignificand(tls *TLS, x float64) (r float64) +TEXT ·Ysignificand(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xsignificand(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ysignificandf(tls *TLS, x float32) (r float32) +TEXT ·Ysignificandf(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL x+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xsignificandf(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ysigorset(tls *TLS, dest uintptr, left uintptr, right uintptr) (r1 int32) +TEXT ·Ysigorset(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ dest+8(FP), AX + MOVQ AX, 8(SP) + MOVQ left+16(FP), AX + MOVQ AX, 16(SP) + MOVQ right+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xsigorset(SB) + MOVL 32(SP), AX + MOVL AX, r1+32(FP) + RET + +// func Ysigpending(tls *TLS, set uintptr) (r int32) +TEXT ·Ysigpending(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ set+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xsigpending(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ysigprocmask(tls *TLS, how int32, set uintptr, old uintptr) (r1 int32) +TEXT ·Ysigprocmask(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL how+8(FP), AX + MOVL AX, 8(SP) + MOVQ set+16(FP), AX + MOVQ AX, 16(SP) + MOVQ old+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xsigprocmask(SB) + MOVL 32(SP), AX + MOVL AX, r1+32(FP) + RET + +// func Ysigqueue(tls *TLS, pid Tpid_t, sig int32, value Tsigval) (r1 int32) +TEXT ·Ysigqueue(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL pid+8(FP), AX + MOVL AX, 8(SP) + MOVL sig+12(FP), AX + MOVL AX, 12(SP) + MOVL value_Fsival_int+16(FP), AX + MOVL AX, 16(SP) + MOVB value_F__ccgo_pad2_0+20(FP), AX + MOVB AX, 20(SP) + MOVB value_F__ccgo_pad2_1+21(FP), AX + MOVB AX, 21(SP) + MOVB value_F__ccgo_pad2_2+22(FP), AX + MOVB AX, 22(SP) + MOVB value_F__ccgo_pad2_3+23(FP), AX + MOVB AX, 23(SP) + CALL ·Xsigqueue(SB) + MOVL 24(SP), AX + MOVL AX, r1+24(FP) + RET + +// func Ysigsuspend(tls *TLS, mask uintptr) (r int32) +TEXT ·Ysigsuspend(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ mask+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xsigsuspend(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ysigtimedwait(tls *TLS, mask uintptr, si uintptr, timeout uintptr) (r int32) +TEXT ·Ysigtimedwait(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ mask+8(FP), AX + MOVQ AX, 8(SP) + MOVQ si+16(FP), AX + MOVQ AX, 16(SP) + MOVQ timeout+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xsigtimedwait(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Ysigwait(tls *TLS, mask uintptr, sig uintptr) (r int32) +TEXT ·Ysigwait(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ mask+8(FP), AX + MOVQ AX, 8(SP) + MOVQ sig+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xsigwait(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ysigwaitinfo(tls *TLS, mask uintptr, si uintptr) (r int32) +TEXT ·Ysigwaitinfo(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ mask+8(FP), AX + MOVQ AX, 8(SP) + MOVQ si+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xsigwaitinfo(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ysin(tls *TLS, x3 float64) (r float64) +TEXT ·Ysin(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x3+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xsin(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ysincos(tls *TLS, x3 float64, sin uintptr, cos uintptr) +TEXT ·Ysincos(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x3+8(FP), AX + MOVQ AX, 8(SP) + MOVQ sin+16(FP), AX + MOVQ AX, 16(SP) + MOVQ cos+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xsincos(SB) + RET + +// func Ysincosf(tls *TLS, x3 float32, sin uintptr, cos uintptr) +TEXT ·Ysincosf(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL x3+8(FP), AX + MOVL AX, 8(SP) + MOVQ sin+16(FP), AX + MOVQ AX, 16(SP) + MOVQ cos+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xsincosf(SB) + RET + +// func Ysincosl(tls *TLS, x float64, sin uintptr, cos uintptr) +TEXT ·Ysincosl(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + MOVQ sin+16(FP), AX + MOVQ AX, 16(SP) + MOVQ cos+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xsincosl(SB) + RET + +// func Ysinf(tls *TLS, x3 float32) (r float32) +TEXT ·Ysinf(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL x3+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xsinf(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ysinh(tls *TLS, x float64) (r float64) +TEXT ·Ysinh(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xsinh(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ysinhf(tls *TLS, x float32) (r float32) +TEXT ·Ysinhf(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL x+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xsinhf(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ysinhl(tls *TLS, x float64) (r float64) +TEXT ·Ysinhl(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xsinhl(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ysinl(tls *TLS, x float64) (r float64) +TEXT ·Ysinl(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xsinl(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ysleep(tls *TLS, seconds uint32) (r uint32) +TEXT ·Ysleep(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL seconds+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xsleep(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ysnprintf(tls *TLS, s uintptr, n Tsize_t, fmt uintptr, va uintptr) (r int32) +TEXT ·Ysnprintf(SB),$48-44 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ n+16(FP), AX + MOVQ AX, 16(SP) + MOVQ fmt+24(FP), AX + MOVQ AX, 24(SP) + MOVQ va+32(FP), AX + MOVQ AX, 32(SP) + CALL ·Xsnprintf(SB) + MOVL 40(SP), AX + MOVL AX, r+40(FP) + RET + +// func Ysockatmark(tls *TLS, s int32) (r int32) +TEXT ·Ysockatmark(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL s+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xsockatmark(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ysocket(tls *TLS, domain int32, type1 int32, protocol int32) (r1 int32) +TEXT ·Ysocket(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL domain+8(FP), AX + MOVL AX, 8(SP) + MOVL type1+12(FP), AX + MOVL AX, 12(SP) + MOVL protocol+16(FP), AX + MOVL AX, 16(SP) + CALL ·Xsocket(SB) + MOVL 24(SP), AX + MOVL AX, r1+24(FP) + RET + +// func Ysocketpair(tls *TLS, domain int32, type1 int32, protocol int32, fd uintptr) (r2 int32) +TEXT ·Ysocketpair(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL domain+8(FP), AX + MOVL AX, 8(SP) + MOVL type1+12(FP), AX + MOVL AX, 12(SP) + MOVL protocol+16(FP), AX + MOVL AX, 16(SP) + MOVQ fd+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xsocketpair(SB) + MOVL 32(SP), AX + MOVL AX, r2+32(FP) + RET + +// func Ysplice(tls *TLS, fd_in int32, off_in uintptr, fd_out int32, off_out uintptr, len1 Tsize_t, flags uint32) (r Tssize_t) +TEXT ·Ysplice(SB),$64-64 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd_in+8(FP), AX + MOVL AX, 8(SP) + MOVQ off_in+16(FP), AX + MOVQ AX, 16(SP) + MOVL fd_out+24(FP), AX + MOVL AX, 24(SP) + MOVQ off_out+32(FP), AX + MOVQ AX, 32(SP) + MOVQ len1+40(FP), AX + MOVQ AX, 40(SP) + MOVL flags+48(FP), AX + MOVL AX, 48(SP) + CALL ·Xsplice(SB) + MOVQ 56(SP), AX + MOVQ AX, r+56(FP) + RET + +// func Ysprintf(tls *TLS, s uintptr, fmt uintptr, va uintptr) (r int32) +TEXT ·Ysprintf(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ fmt+16(FP), AX + MOVQ AX, 16(SP) + MOVQ va+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xsprintf(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Ysqrt(tls *TLS, x1 float64) (r1 float64) +TEXT ·Ysqrt(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x1+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xsqrt(SB) + MOVQ 16(SP), AX + MOVQ AX, r1+16(FP) + RET + +// func Ysqrtf(tls *TLS, x1 float32) (r1 float32) +TEXT ·Ysqrtf(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL x1+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xsqrtf(SB) + MOVL 16(SP), AX + MOVL AX, r1+16(FP) + RET + +// func Ysqrtl(tls *TLS, x float64) (r float64) +TEXT ·Ysqrtl(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xsqrtl(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ysrand(tls *TLS, s uint32) +TEXT ·Ysrand(SB),$16-12 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL s+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xsrand(SB) + RET + +// func Ysrand48(tls *TLS, seed int64) +TEXT ·Ysrand48(SB),$16-16 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ seed+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xsrand48(SB) + RET + +// func Ysrandom(tls *TLS, seed uint32) +TEXT ·Ysrandom(SB),$16-12 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL seed+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xsrandom(SB) + RET + +// func Ysscanf(tls *TLS, s uintptr, fmt uintptr, va uintptr) (r int32) +TEXT ·Ysscanf(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ fmt+16(FP), AX + MOVQ AX, 16(SP) + MOVQ va+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xsscanf(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Ystat(tls *TLS, path uintptr, buf uintptr) (r int32) +TEXT ·Ystat(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ path+8(FP), AX + MOVQ AX, 8(SP) + MOVQ buf+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xstat(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ystat64(tls *TLS, path uintptr, buf uintptr) (r int32) +TEXT ·Ystat64(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ path+8(FP), AX + MOVQ AX, 8(SP) + MOVQ buf+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xstat64(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ystatvfs(tls *TLS, path uintptr, buf uintptr) (r int32) +TEXT ·Ystatvfs(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ path+8(FP), AX + MOVQ AX, 8(SP) + MOVQ buf+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xstatvfs(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ystatx(tls *TLS, dirfd int32, path uintptr, flags int32, mask uint32, stx uintptr) (r int32) +TEXT ·Ystatx(SB),$48-44 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL dirfd+8(FP), AX + MOVL AX, 8(SP) + MOVQ path+16(FP), AX + MOVQ AX, 16(SP) + MOVL flags+24(FP), AX + MOVL AX, 24(SP) + MOVL mask+28(FP), AX + MOVL AX, 28(SP) + MOVQ stx+32(FP), AX + MOVQ AX, 32(SP) + CALL ·Xstatx(SB) + MOVL 40(SP), AX + MOVL AX, r+40(FP) + RET + +// func Ystime(tls *TLS, t uintptr) (r int32) +TEXT ·Ystime(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ t+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xstime(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ystpcpy(tls *TLS, d uintptr, s uintptr) (r uintptr) +TEXT ·Ystpcpy(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ d+8(FP), AX + MOVQ AX, 8(SP) + MOVQ s+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xstpcpy(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Ystpncpy(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) +TEXT ·Ystpncpy(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ d+8(FP), AX + MOVQ AX, 8(SP) + MOVQ s+16(FP), AX + MOVQ AX, 16(SP) + MOVQ n+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xstpncpy(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Ystrcasecmp(tls *TLS, _l uintptr, _r uintptr) (r1 int32) +TEXT ·Ystrcasecmp(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ _l+8(FP), AX + MOVQ AX, 8(SP) + MOVQ _r+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xstrcasecmp(SB) + MOVL 24(SP), AX + MOVL AX, r1+24(FP) + RET + +// func Ystrcasecmp_l(tls *TLS, l uintptr, r uintptr, loc Tlocale_t) (r1 int32) +TEXT ·Ystrcasecmp_l(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ l+8(FP), AX + MOVQ AX, 8(SP) + MOVQ r+16(FP), AX + MOVQ AX, 16(SP) + MOVQ loc+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xstrcasecmp_l(SB) + MOVL 32(SP), AX + MOVL AX, r1+32(FP) + RET + +// func Ystrcasestr(tls *TLS, h uintptr, n uintptr) (r uintptr) +TEXT ·Ystrcasestr(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ h+8(FP), AX + MOVQ AX, 8(SP) + MOVQ n+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xstrcasestr(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Ystrcat(tls *TLS, dest uintptr, src uintptr) (r uintptr) +TEXT ·Ystrcat(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ dest+8(FP), AX + MOVQ AX, 8(SP) + MOVQ src+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xstrcat(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Ystrchr(tls *TLS, s uintptr, c int32) (r1 uintptr) +TEXT ·Ystrchr(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVL c+16(FP), AX + MOVL AX, 16(SP) + CALL ·Xstrchr(SB) + MOVQ 24(SP), AX + MOVQ AX, r1+24(FP) + RET + +// func Ystrchrnul(tls *TLS, s uintptr, c int32) (r uintptr) +TEXT ·Ystrchrnul(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVL c+16(FP), AX + MOVL AX, 16(SP) + CALL ·Xstrchrnul(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Ystrcmp(tls *TLS, l uintptr, r uintptr) (r1 int32) +TEXT ·Ystrcmp(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ l+8(FP), AX + MOVQ AX, 8(SP) + MOVQ r+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xstrcmp(SB) + MOVL 24(SP), AX + MOVL AX, r1+24(FP) + RET + +// func Ystrcoll(tls *TLS, l uintptr, r uintptr) (r1 int32) +TEXT ·Ystrcoll(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ l+8(FP), AX + MOVQ AX, 8(SP) + MOVQ r+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xstrcoll(SB) + MOVL 24(SP), AX + MOVL AX, r1+24(FP) + RET + +// func Ystrcoll_l(tls *TLS, l uintptr, r uintptr, loc Tlocale_t) (r1 int32) +TEXT ·Ystrcoll_l(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ l+8(FP), AX + MOVQ AX, 8(SP) + MOVQ r+16(FP), AX + MOVQ AX, 16(SP) + MOVQ loc+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xstrcoll_l(SB) + MOVL 32(SP), AX + MOVL AX, r1+32(FP) + RET + +// func Ystrcpy(tls *TLS, dest uintptr, src uintptr) (r uintptr) +TEXT ·Ystrcpy(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ dest+8(FP), AX + MOVQ AX, 8(SP) + MOVQ src+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xstrcpy(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Ystrcspn(tls *TLS, s uintptr, c uintptr) (r Tsize_t) +TEXT ·Ystrcspn(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ c+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xstrcspn(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Ystrdup(tls *TLS, s uintptr) (r uintptr) +TEXT ·Ystrdup(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xstrdup(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ystrerror(tls *TLS, e int32) (r uintptr) +TEXT ·Ystrerror(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL e+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xstrerror(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ystrerror_l(tls *TLS, e int32, loc Tlocale_t) (r uintptr) +TEXT ·Ystrerror_l(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL e+8(FP), AX + MOVL AX, 8(SP) + MOVQ loc+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xstrerror_l(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Ystrerror_r(tls *TLS, err int32, buf uintptr, buflen Tsize_t) (r int32) +TEXT ·Ystrerror_r(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL err+8(FP), AX + MOVL AX, 8(SP) + MOVQ buf+16(FP), AX + MOVQ AX, 16(SP) + MOVQ buflen+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xstrerror_r(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Ystrfmon(tls *TLS, s uintptr, n Tsize_t, fmt uintptr, va uintptr) (r Tssize_t) +TEXT ·Ystrfmon(SB),$48-48 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ n+16(FP), AX + MOVQ AX, 16(SP) + MOVQ fmt+24(FP), AX + MOVQ AX, 24(SP) + MOVQ va+32(FP), AX + MOVQ AX, 32(SP) + CALL ·Xstrfmon(SB) + MOVQ 40(SP), AX + MOVQ AX, r+40(FP) + RET + +// func Ystrfmon_l(tls *TLS, s uintptr, n Tsize_t, loc Tlocale_t, fmt uintptr, va uintptr) (r Tssize_t) +TEXT ·Ystrfmon_l(SB),$56-56 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ n+16(FP), AX + MOVQ AX, 16(SP) + MOVQ loc+24(FP), AX + MOVQ AX, 24(SP) + MOVQ fmt+32(FP), AX + MOVQ AX, 32(SP) + MOVQ va+40(FP), AX + MOVQ AX, 40(SP) + CALL ·Xstrfmon_l(SB) + MOVQ 48(SP), AX + MOVQ AX, r+48(FP) + RET + +// func Ystrftime(tls *TLS, s uintptr, n Tsize_t, f uintptr, tm uintptr) (r Tsize_t) +TEXT ·Ystrftime(SB),$48-48 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ n+16(FP), AX + MOVQ AX, 16(SP) + MOVQ f+24(FP), AX + MOVQ AX, 24(SP) + MOVQ tm+32(FP), AX + MOVQ AX, 32(SP) + CALL ·Xstrftime(SB) + MOVQ 40(SP), AX + MOVQ AX, r+40(FP) + RET + +// func Ystrftime_l(tls *TLS, s uintptr, n Tsize_t, f uintptr, tm uintptr, loc Tlocale_t) (r Tsize_t) +TEXT ·Ystrftime_l(SB),$56-56 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ n+16(FP), AX + MOVQ AX, 16(SP) + MOVQ f+24(FP), AX + MOVQ AX, 24(SP) + MOVQ tm+32(FP), AX + MOVQ AX, 32(SP) + MOVQ loc+40(FP), AX + MOVQ AX, 40(SP) + CALL ·Xstrftime_l(SB) + MOVQ 48(SP), AX + MOVQ AX, r+48(FP) + RET + +// func Ystrlcat(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r Tsize_t) +TEXT ·Ystrlcat(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ d+8(FP), AX + MOVQ AX, 8(SP) + MOVQ s+16(FP), AX + MOVQ AX, 16(SP) + MOVQ n+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xstrlcat(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Ystrlcpy(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r Tsize_t) +TEXT ·Ystrlcpy(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ d+8(FP), AX + MOVQ AX, 8(SP) + MOVQ s+16(FP), AX + MOVQ AX, 16(SP) + MOVQ n+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xstrlcpy(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Ystrlen(t *TLS, s uintptr) (r Tsize_t) +TEXT ·Ystrlen(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xstrlen(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ystrncasecmp(tls *TLS, _l uintptr, _r uintptr, n Tsize_t) (r1 int32) +TEXT ·Ystrncasecmp(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ _l+8(FP), AX + MOVQ AX, 8(SP) + MOVQ _r+16(FP), AX + MOVQ AX, 16(SP) + MOVQ n+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xstrncasecmp(SB) + MOVL 32(SP), AX + MOVL AX, r1+32(FP) + RET + +// func Ystrncasecmp_l(tls *TLS, l uintptr, r uintptr, n Tsize_t, loc Tlocale_t) (r1 int32) +TEXT ·Ystrncasecmp_l(SB),$48-44 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ l+8(FP), AX + MOVQ AX, 8(SP) + MOVQ r+16(FP), AX + MOVQ AX, 16(SP) + MOVQ n+24(FP), AX + MOVQ AX, 24(SP) + MOVQ loc+32(FP), AX + MOVQ AX, 32(SP) + CALL ·Xstrncasecmp_l(SB) + MOVL 40(SP), AX + MOVL AX, r1+40(FP) + RET + +// func Ystrncat(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) +TEXT ·Ystrncat(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ d+8(FP), AX + MOVQ AX, 8(SP) + MOVQ s+16(FP), AX + MOVQ AX, 16(SP) + MOVQ n+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xstrncat(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Ystrncmp(tls *TLS, _l uintptr, _r uintptr, n Tsize_t) (r1 int32) +TEXT ·Ystrncmp(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ _l+8(FP), AX + MOVQ AX, 8(SP) + MOVQ _r+16(FP), AX + MOVQ AX, 16(SP) + MOVQ n+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xstrncmp(SB) + MOVL 32(SP), AX + MOVL AX, r1+32(FP) + RET + +// func Ystrncpy(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) +TEXT ·Ystrncpy(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ d+8(FP), AX + MOVQ AX, 8(SP) + MOVQ s+16(FP), AX + MOVQ AX, 16(SP) + MOVQ n+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xstrncpy(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Ystrndup(tls *TLS, s uintptr, n Tsize_t) (r uintptr) +TEXT ·Ystrndup(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ n+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xstrndup(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Ystrnlen(tls *TLS, s uintptr, n Tsize_t) (r Tsize_t) +TEXT ·Ystrnlen(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ n+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xstrnlen(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Ystrpbrk(tls *TLS, s uintptr, b uintptr) (r uintptr) +TEXT ·Ystrpbrk(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ b+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xstrpbrk(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Ystrptime(tls *TLS, s uintptr, f uintptr, tm uintptr) (r uintptr) +TEXT ·Ystrptime(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ f+16(FP), AX + MOVQ AX, 16(SP) + MOVQ tm+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xstrptime(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Ystrrchr(tls *TLS, s uintptr, c int32) (r uintptr) +TEXT ·Ystrrchr(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVL c+16(FP), AX + MOVL AX, 16(SP) + CALL ·Xstrrchr(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Ystrsep(tls *TLS, str uintptr, sep uintptr) (r uintptr) +TEXT ·Ystrsep(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ str+8(FP), AX + MOVQ AX, 8(SP) + MOVQ sep+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xstrsep(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Ystrsignal(tls *TLS, signum int32) (r uintptr) +TEXT ·Ystrsignal(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL signum+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xstrsignal(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ystrspn(tls *TLS, s uintptr, c uintptr) (r Tsize_t) +TEXT ·Ystrspn(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ c+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xstrspn(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Ystrstr(tls *TLS, h uintptr, n uintptr) (r uintptr) +TEXT ·Ystrstr(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ h+8(FP), AX + MOVQ AX, 8(SP) + MOVQ n+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xstrstr(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Ystrtod(tls *TLS, s uintptr, p uintptr) (r float64) +TEXT ·Ystrtod(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ p+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xstrtod(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Ystrtod_l(tls *TLS, s uintptr, p uintptr, l Tlocale_t) (r float64) +TEXT ·Ystrtod_l(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ p+16(FP), AX + MOVQ AX, 16(SP) + MOVQ l+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xstrtod_l(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Ystrtof(tls *TLS, s uintptr, p uintptr) (r float32) +TEXT ·Ystrtof(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ p+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xstrtof(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ystrtof_l(tls *TLS, s uintptr, p uintptr, l Tlocale_t) (r float32) +TEXT ·Ystrtof_l(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ p+16(FP), AX + MOVQ AX, 16(SP) + MOVQ l+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xstrtof_l(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Ystrtoimax(tls *TLS, s uintptr, p uintptr, base int32) (r Tintmax_t) +TEXT ·Ystrtoimax(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ p+16(FP), AX + MOVQ AX, 16(SP) + MOVL base+24(FP), AX + MOVL AX, 24(SP) + CALL ·Xstrtoimax(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Ystrtok(tls *TLS, s uintptr, sep uintptr) (r uintptr) +TEXT ·Ystrtok(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ sep+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xstrtok(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Ystrtok_r(tls *TLS, s uintptr, sep uintptr, p uintptr) (r uintptr) +TEXT ·Ystrtok_r(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ sep+16(FP), AX + MOVQ AX, 16(SP) + MOVQ p+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xstrtok_r(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Ystrtol(tls *TLS, s uintptr, p uintptr, base int32) (r int64) +TEXT ·Ystrtol(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ p+16(FP), AX + MOVQ AX, 16(SP) + MOVL base+24(FP), AX + MOVL AX, 24(SP) + CALL ·Xstrtol(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Ystrtold(tls *TLS, s uintptr, p uintptr) (r float64) +TEXT ·Ystrtold(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ p+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xstrtold(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Ystrtold_l(tls *TLS, s uintptr, p uintptr, l Tlocale_t) (r float64) +TEXT ·Ystrtold_l(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ p+16(FP), AX + MOVQ AX, 16(SP) + MOVQ l+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xstrtold_l(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Ystrtoll(tls *TLS, s uintptr, p uintptr, base int32) (r int64) +TEXT ·Ystrtoll(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ p+16(FP), AX + MOVQ AX, 16(SP) + MOVL base+24(FP), AX + MOVL AX, 24(SP) + CALL ·Xstrtoll(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Ystrtoul(tls *TLS, s uintptr, p uintptr, base int32) (r uint64) +TEXT ·Ystrtoul(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ p+16(FP), AX + MOVQ AX, 16(SP) + MOVL base+24(FP), AX + MOVL AX, 24(SP) + CALL ·Xstrtoul(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Ystrtoull(tls *TLS, s uintptr, p uintptr, base int32) (r uint64) +TEXT ·Ystrtoull(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ p+16(FP), AX + MOVQ AX, 16(SP) + MOVL base+24(FP), AX + MOVL AX, 24(SP) + CALL ·Xstrtoull(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Ystrtoumax(tls *TLS, s uintptr, p uintptr, base int32) (r Tuintmax_t) +TEXT ·Ystrtoumax(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ p+16(FP), AX + MOVQ AX, 16(SP) + MOVL base+24(FP), AX + MOVL AX, 24(SP) + CALL ·Xstrtoumax(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Ystrverscmp(tls *TLS, l0 uintptr, r0 uintptr) (r1 int32) +TEXT ·Ystrverscmp(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ l0+8(FP), AX + MOVQ AX, 8(SP) + MOVQ r0+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xstrverscmp(SB) + MOVL 24(SP), AX + MOVL AX, r1+24(FP) + RET + +// func Ystrxfrm(tls *TLS, dest uintptr, src uintptr, n Tsize_t) (r Tsize_t) +TEXT ·Ystrxfrm(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ dest+8(FP), AX + MOVQ AX, 8(SP) + MOVQ src+16(FP), AX + MOVQ AX, 16(SP) + MOVQ n+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xstrxfrm(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Ystrxfrm_l(tls *TLS, dest uintptr, src uintptr, n Tsize_t, loc Tlocale_t) (r Tsize_t) +TEXT ·Ystrxfrm_l(SB),$48-48 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ dest+8(FP), AX + MOVQ AX, 8(SP) + MOVQ src+16(FP), AX + MOVQ AX, 16(SP) + MOVQ n+24(FP), AX + MOVQ AX, 24(SP) + MOVQ loc+32(FP), AX + MOVQ AX, 32(SP) + CALL ·Xstrxfrm_l(SB) + MOVQ 40(SP), AX + MOVQ AX, r+40(FP) + RET + +// func Yswab(tls *TLS, _src uintptr, _dest uintptr, n Tssize_t) +TEXT ·Yswab(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ _src+8(FP), AX + MOVQ AX, 8(SP) + MOVQ _dest+16(FP), AX + MOVQ AX, 16(SP) + MOVQ n+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xswab(SB) + RET + +// func Yswapoff(tls *TLS, path uintptr) (r int32) +TEXT ·Yswapoff(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ path+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xswapoff(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yswapon(tls *TLS, path uintptr, flags int32) (r int32) +TEXT ·Yswapon(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ path+8(FP), AX + MOVQ AX, 8(SP) + MOVL flags+16(FP), AX + MOVL AX, 16(SP) + CALL ·Xswapon(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yswprintf(tls *TLS, s uintptr, n Tsize_t, fmt uintptr, va uintptr) (r int32) +TEXT ·Yswprintf(SB),$48-44 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ n+16(FP), AX + MOVQ AX, 16(SP) + MOVQ fmt+24(FP), AX + MOVQ AX, 24(SP) + MOVQ va+32(FP), AX + MOVQ AX, 32(SP) + CALL ·Xswprintf(SB) + MOVL 40(SP), AX + MOVL AX, r+40(FP) + RET + +// func Yswscanf(tls *TLS, s uintptr, fmt uintptr, va uintptr) (r int32) +TEXT ·Yswscanf(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ fmt+16(FP), AX + MOVQ AX, 16(SP) + MOVQ va+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xswscanf(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Ysymlink(tls *TLS, existing uintptr, new1 uintptr) (r int32) +TEXT ·Ysymlink(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ existing+8(FP), AX + MOVQ AX, 8(SP) + MOVQ new1+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xsymlink(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ysymlinkat(tls *TLS, existing uintptr, fd int32, new1 uintptr) (r int32) +TEXT ·Ysymlinkat(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ existing+8(FP), AX + MOVQ AX, 8(SP) + MOVL fd+16(FP), AX + MOVL AX, 16(SP) + MOVQ new1+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xsymlinkat(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Ysync(tls *TLS) +TEXT ·Ysync(SB),$8-8 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·Xsync(SB) + RET + +// func Ysync_file_range(tls *TLS, fd int32, pos Toff_t, len1 Toff_t, flags uint32) (r int32) +TEXT ·Ysync_file_range(SB),$48-44 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVQ pos+16(FP), AX + MOVQ AX, 16(SP) + MOVQ len1+24(FP), AX + MOVQ AX, 24(SP) + MOVL flags+32(FP), AX + MOVL AX, 32(SP) + CALL ·Xsync_file_range(SB) + MOVL 40(SP), AX + MOVL AX, r+40(FP) + RET + +// func Ysyncfs(tls *TLS, fd int32) (r int32) +TEXT ·Ysyncfs(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xsyncfs(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ysyscall(tls *TLS, n int64, va uintptr) (r int64) +TEXT ·Ysyscall(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ n+8(FP), AX + MOVQ AX, 8(SP) + MOVQ va+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xsyscall(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Ysysconf(tls *TLS, name int32) (r int64) +TEXT ·Ysysconf(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL name+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xsysconf(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ysysctlbyname(t *TLS, name, oldp, oldlenp, newp uintptr, newlen Tsize_t) (_3 int32) +TEXT ·Ysysctlbyname(SB),$56-52 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ name+8(FP), AX + MOVQ AX, 8(SP) + MOVQ oldp+16(FP), AX + MOVQ AX, 16(SP) + MOVQ oldlenp+24(FP), AX + MOVQ AX, 24(SP) + MOVQ newp+32(FP), AX + MOVQ AX, 32(SP) + MOVQ newlen+40(FP), AX + MOVQ AX, 40(SP) + CALL ·Xsysctlbyname(SB) + MOVL 48(SP), AX + MOVL AX, _3+48(FP) + RET + +// func Ysysinfo(tls *TLS, info uintptr) (r int32) +TEXT ·Ysysinfo(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ info+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xsysinfo(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ysyslog(tls *TLS, priority int32, message uintptr, va uintptr) +TEXT ·Ysyslog(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL priority+8(FP), AX + MOVL AX, 8(SP) + MOVQ message+16(FP), AX + MOVQ AX, 16(SP) + MOVQ va+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xsyslog(SB) + RET + +// func Ysystem(t *TLS, command uintptr) (_2 int32) +TEXT ·Ysystem(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ command+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xsystem(SB) + MOVL 16(SP), AX + MOVL AX, _2+16(FP) + RET + +// func Ytan(tls *TLS, x3 float64) (r float64) +TEXT ·Ytan(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x3+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xtan(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ytanf(tls *TLS, x3 float32) (r float32) +TEXT ·Ytanf(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL x3+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xtanf(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ytanh(tls *TLS, x3 float64) (r float64) +TEXT ·Ytanh(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x3+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xtanh(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ytanhf(tls *TLS, x3 float32) (r float32) +TEXT ·Ytanhf(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL x3+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xtanhf(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ytanhl(tls *TLS, x float64) (r float64) +TEXT ·Ytanhl(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xtanhl(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ytanl(tls *TLS, x float64) (r float64) +TEXT ·Ytanl(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xtanl(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ytcdrain(tls *TLS, fd int32) (r int32) +TEXT ·Ytcdrain(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xtcdrain(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ytcflow(tls *TLS, fd int32, action int32) (r int32) +TEXT ·Ytcflow(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVL action+12(FP), AX + MOVL AX, 12(SP) + CALL ·Xtcflow(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ytcflush(tls *TLS, fd int32, queue int32) (r int32) +TEXT ·Ytcflush(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVL queue+12(FP), AX + MOVL AX, 12(SP) + CALL ·Xtcflush(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ytcgetattr(tls *TLS, fd int32, tio uintptr) (r int32) +TEXT ·Ytcgetattr(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVQ tio+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xtcgetattr(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ytcgetpgrp(tls *TLS, fd int32) (r Tpid_t) +TEXT ·Ytcgetpgrp(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xtcgetpgrp(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ytcgetsid(tls *TLS, fd int32) (r Tpid_t) +TEXT ·Ytcgetsid(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xtcgetsid(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ytcgetwinsize(tls *TLS, fd int32, wsz uintptr) (r int32) +TEXT ·Ytcgetwinsize(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVQ wsz+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xtcgetwinsize(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ytcsendbreak(tls *TLS, fd int32, dur int32) (r int32) +TEXT ·Ytcsendbreak(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVL dur+12(FP), AX + MOVL AX, 12(SP) + CALL ·Xtcsendbreak(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ytcsetattr(tls *TLS, fd int32, act int32, tio uintptr) (r int32) +TEXT ·Ytcsetattr(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVL act+12(FP), AX + MOVL AX, 12(SP) + MOVQ tio+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xtcsetattr(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ytcsetpgrp(tls *TLS, fd int32, pgrp Tpid_t) (r int32) +TEXT ·Ytcsetpgrp(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVL pgrp+12(FP), AX + MOVL AX, 12(SP) + CALL ·Xtcsetpgrp(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ytcsetwinsize(tls *TLS, fd int32, wsz uintptr) (r int32) +TEXT ·Ytcsetwinsize(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVQ wsz+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xtcsetwinsize(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ytdelete(tls *TLS, key uintptr, rootp uintptr, __ccgo_fp_cmp uintptr) (r uintptr) +TEXT ·Ytdelete(SB),$48-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX // alloc all ABI trampolines + MOVQ AX, 0(SP) + MOVQ $16, 8(SP) // 16*(number of func ptrs in signature) + CALL modernc·org∕libc·TLSAlloc(SB) + MOVQ 16(SP), AX + MOVQ AX, -8(BP) // Trampolines[0] + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ -8(BP), AX + ADDQ $0, AX // 16*(0-based ordinal number of the func ptr in signature) + MOVQ AX, 8(SP) + MOVQ __ccgo_fp_cmp+24(FP), AX // ABI0 code ptr + MOVQ AX, 16(SP) + CALL ·__ccgo_abiInternal_tdelete_2(SB) // Create the closure for calling __ccgo_fp_cmp + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ key+8(FP), AX + MOVQ AX, 8(SP) + MOVQ rootp+16(FP), AX + MOVQ AX, 16(SP) + MOVQ -8(BP), AX // Trampolines[0] + ADDQ $0, AX // 16*(0-based ordinal number of the func ptr in signature) + MOVQ AX, 24(SP) + CALL ·Xtdelete(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ $0, 8(SP) + CALL modernc·org∕libc·TLSFree(SB) + RET + +TEXT ·__ccgo_abi0_tdelete_2(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ _0+0(FP), AX + MOVQ AX, 0(SP) + MOVQ _1+8(FP), AX + MOVQ AX, 8(SP) + MOVQ _2+16(FP), AX + MOVQ AX, 16(SP) + MOVQ __ccgo_fp+24(FP), AX + CALL *AX // Call the ABI0 code ptr + MOVL 24(SP), AX + MOVL AX, _3+32(FP) + RET + +// func Ytdestroy(tls *TLS, root uintptr, __ccgo_fp_freekey uintptr) +TEXT ·Ytdestroy(SB),$32-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX // alloc all ABI trampolines + MOVQ AX, 0(SP) + MOVQ $16, 8(SP) // 16*(number of func ptrs in signature) + CALL modernc·org∕libc·TLSAlloc(SB) + MOVQ 16(SP), AX + MOVQ AX, -8(BP) // Trampolines[0] + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ -8(BP), AX + ADDQ $0, AX // 16*(0-based ordinal number of the func ptr in signature) + MOVQ AX, 8(SP) + MOVQ __ccgo_fp_freekey+16(FP), AX // ABI0 code ptr + MOVQ AX, 16(SP) + CALL ·__ccgo_abiInternal_tdestroy_1(SB) // Create the closure for calling __ccgo_fp_freekey + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ root+8(FP), AX + MOVQ AX, 8(SP) + MOVQ -8(BP), AX // Trampolines[0] + ADDQ $0, AX // 16*(0-based ordinal number of the func ptr in signature) + MOVQ AX, 16(SP) + CALL ·Xtdestroy(SB) + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ $0, 8(SP) + CALL modernc·org∕libc·TLSFree(SB) + RET + +TEXT ·__ccgo_abi0_tdestroy_1(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ _0+0(FP), AX + MOVQ AX, 0(SP) + MOVQ _1+8(FP), AX + MOVQ AX, 8(SP) + MOVQ __ccgo_fp+16(FP), AX + CALL *AX // Call the ABI0 code ptr + RET + +// func Ytee(tls *TLS, src int32, dest int32, len1 Tsize_t, flags uint32) (r Tssize_t) +TEXT ·Ytee(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL src+8(FP), AX + MOVL AX, 8(SP) + MOVL dest+12(FP), AX + MOVL AX, 12(SP) + MOVQ len1+16(FP), AX + MOVQ AX, 16(SP) + MOVL flags+24(FP), AX + MOVL AX, 24(SP) + CALL ·Xtee(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Ytelldir(tls *TLS, dir uintptr) (r int64) +TEXT ·Ytelldir(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ dir+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xtelldir(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ytempnam(tls *TLS, dir uintptr, pfx uintptr) (r1 uintptr) +TEXT ·Ytempnam(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ dir+8(FP), AX + MOVQ AX, 8(SP) + MOVQ pfx+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xtempnam(SB) + MOVQ 24(SP), AX + MOVQ AX, r1+24(FP) + RET + +// func Ytextdomain(tls *TLS, domainname uintptr) (r uintptr) +TEXT ·Ytextdomain(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ domainname+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xtextdomain(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ytfind(tls *TLS, key uintptr, rootp uintptr, __ccgo_fp_cmp uintptr) (r uintptr) +TEXT ·Ytfind(SB),$48-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX // alloc all ABI trampolines + MOVQ AX, 0(SP) + MOVQ $16, 8(SP) // 16*(number of func ptrs in signature) + CALL modernc·org∕libc·TLSAlloc(SB) + MOVQ 16(SP), AX + MOVQ AX, -8(BP) // Trampolines[0] + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ -8(BP), AX + ADDQ $0, AX // 16*(0-based ordinal number of the func ptr in signature) + MOVQ AX, 8(SP) + MOVQ __ccgo_fp_cmp+24(FP), AX // ABI0 code ptr + MOVQ AX, 16(SP) + CALL ·__ccgo_abiInternal_tfind_2(SB) // Create the closure for calling __ccgo_fp_cmp + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ key+8(FP), AX + MOVQ AX, 8(SP) + MOVQ rootp+16(FP), AX + MOVQ AX, 16(SP) + MOVQ -8(BP), AX // Trampolines[0] + ADDQ $0, AX // 16*(0-based ordinal number of the func ptr in signature) + MOVQ AX, 24(SP) + CALL ·Xtfind(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ $0, 8(SP) + CALL modernc·org∕libc·TLSFree(SB) + RET + +TEXT ·__ccgo_abi0_tfind_2(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ _0+0(FP), AX + MOVQ AX, 0(SP) + MOVQ _1+8(FP), AX + MOVQ AX, 8(SP) + MOVQ _2+16(FP), AX + MOVQ AX, 16(SP) + MOVQ __ccgo_fp+24(FP), AX + CALL *AX // Call the ABI0 code ptr + MOVL 24(SP), AX + MOVL AX, _3+32(FP) + RET + +// func Ytgamma(tls *TLS, x3 float64) (r1 float64) +TEXT ·Ytgamma(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x3+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xtgamma(SB) + MOVQ 16(SP), AX + MOVQ AX, r1+16(FP) + RET + +// func Ytgammaf(tls *TLS, x float32) (r float32) +TEXT ·Ytgammaf(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL x+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xtgammaf(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ytgammal(tls *TLS, x float64) (r float64) +TEXT ·Ytgammal(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xtgammal(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ytime(tls *TLS, t uintptr) (r Ttime_t) +TEXT ·Ytime(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ t+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xtime(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ytimegm(tls *TLS, tm uintptr) (r Ttime_t) +TEXT ·Ytimegm(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ tm+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xtimegm(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ytimer_delete(tls *TLS, t Ttimer_t) (r int32) +TEXT ·Ytimer_delete(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ t+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xtimer_delete(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ytimer_getoverrun(tls *TLS, t Ttimer_t) (r int32) +TEXT ·Ytimer_getoverrun(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ t+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xtimer_getoverrun(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ytimer_gettime(tls *TLS, t Ttimer_t, val uintptr) (r int32) +TEXT ·Ytimer_gettime(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ t+8(FP), AX + MOVQ AX, 8(SP) + MOVQ val+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xtimer_gettime(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ytimer_settime(tls *TLS, t Ttimer_t, flags int32, val uintptr, old uintptr) (r int32) +TEXT ·Ytimer_settime(SB),$48-44 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ t+8(FP), AX + MOVQ AX, 8(SP) + MOVL flags+16(FP), AX + MOVL AX, 16(SP) + MOVQ val+24(FP), AX + MOVQ AX, 24(SP) + MOVQ old+32(FP), AX + MOVQ AX, 32(SP) + CALL ·Xtimer_settime(SB) + MOVL 40(SP), AX + MOVL AX, r+40(FP) + RET + +// func Ytimerfd_create(tls *TLS, clockid int32, flags int32) (r int32) +TEXT ·Ytimerfd_create(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL clockid+8(FP), AX + MOVL AX, 8(SP) + MOVL flags+12(FP), AX + MOVL AX, 12(SP) + CALL ·Xtimerfd_create(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ytimerfd_gettime(tls *TLS, fd int32, cur uintptr) (r int32) +TEXT ·Ytimerfd_gettime(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVQ cur+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xtimerfd_gettime(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ytimerfd_settime(tls *TLS, fd int32, flags int32, new1 uintptr, old uintptr) (r int32) +TEXT ·Ytimerfd_settime(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVL flags+12(FP), AX + MOVL AX, 12(SP) + MOVQ new1+16(FP), AX + MOVQ AX, 16(SP) + MOVQ old+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xtimerfd_settime(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Ytimes(tls *TLS, tms uintptr) (r Tclock_t) +TEXT ·Ytimes(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ tms+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xtimes(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ytimespec_get(tls *TLS, ts uintptr, base int32) (r int32) +TEXT ·Ytimespec_get(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ ts+8(FP), AX + MOVQ AX, 8(SP) + MOVL base+16(FP), AX + MOVL AX, 16(SP) + CALL ·Xtimespec_get(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ytmpfile(tls *TLS) (r uintptr) +TEXT ·Ytmpfile(SB),$16-16 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·Xtmpfile(SB) + MOVQ 8(SP), AX + MOVQ AX, r+8(FP) + RET + +// func Ytmpnam(tls *TLS, buf uintptr) (r1 uintptr) +TEXT ·Ytmpnam(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ buf+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xtmpnam(SB) + MOVQ 16(SP), AX + MOVQ AX, r1+16(FP) + RET + +// func Ytoascii(tls *TLS, c int32) (r int32) +TEXT ·Ytoascii(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xtoascii(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ytolower(tls *TLS, c int32) (r int32) +TEXT ·Ytolower(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xtolower(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ytolower_l(tls *TLS, c int32, l Tlocale_t) (r int32) +TEXT ·Ytolower_l(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + MOVQ l+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xtolower_l(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ytoupper(tls *TLS, c int32) (r int32) +TEXT ·Ytoupper(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xtoupper(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ytoupper_l(tls *TLS, c int32, l Tlocale_t) (r int32) +TEXT ·Ytoupper_l(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + MOVQ l+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xtoupper_l(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ytowctrans(tls *TLS, wc Twint_t, trans Twctrans_t) (r Twint_t) +TEXT ·Ytowctrans(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL wc+8(FP), AX + MOVL AX, 8(SP) + MOVQ trans+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xtowctrans(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ytowctrans_l(tls *TLS, c Twint_t, t Twctrans_t, l Tlocale_t) (r Twint_t) +TEXT ·Ytowctrans_l(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + MOVQ t+16(FP), AX + MOVQ AX, 16(SP) + MOVQ l+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xtowctrans_l(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Ytowlower(tls *TLS, wc Twint_t) (r Twint_t) +TEXT ·Ytowlower(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL wc+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xtowlower(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ytowlower_l(tls *TLS, c Twint_t, l Tlocale_t) (r Twint_t) +TEXT ·Ytowlower_l(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + MOVQ l+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xtowlower_l(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ytowupper(tls *TLS, wc Twint_t) (r Twint_t) +TEXT ·Ytowupper(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL wc+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xtowupper(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ytowupper_l(tls *TLS, c Twint_t, l Tlocale_t) (r Twint_t) +TEXT ·Ytowupper_l(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + MOVQ l+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xtowupper_l(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ytrunc(tls *TLS, x3 float64) (r float64) +TEXT ·Ytrunc(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x3+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xtrunc(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ytruncate(tls *TLS, path uintptr, length Toff_t) (r int32) +TEXT ·Ytruncate(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ path+8(FP), AX + MOVQ AX, 8(SP) + MOVQ length+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xtruncate(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ytruncf(tls *TLS, x3 float32) (r float32) +TEXT ·Ytruncf(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL x3+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xtruncf(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ytruncl(tls *TLS, x float64) (r float64) +TEXT ·Ytruncl(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xtruncl(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ytsearch(tls *TLS, key uintptr, rootp uintptr, __ccgo_fp_cmp uintptr) (r1 uintptr) +TEXT ·Ytsearch(SB),$48-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX // alloc all ABI trampolines + MOVQ AX, 0(SP) + MOVQ $16, 8(SP) // 16*(number of func ptrs in signature) + CALL modernc·org∕libc·TLSAlloc(SB) + MOVQ 16(SP), AX + MOVQ AX, -8(BP) // Trampolines[0] + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ -8(BP), AX + ADDQ $0, AX // 16*(0-based ordinal number of the func ptr in signature) + MOVQ AX, 8(SP) + MOVQ __ccgo_fp_cmp+24(FP), AX // ABI0 code ptr + MOVQ AX, 16(SP) + CALL ·__ccgo_abiInternal_tsearch_2(SB) // Create the closure for calling __ccgo_fp_cmp + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ key+8(FP), AX + MOVQ AX, 8(SP) + MOVQ rootp+16(FP), AX + MOVQ AX, 16(SP) + MOVQ -8(BP), AX // Trampolines[0] + ADDQ $0, AX // 16*(0-based ordinal number of the func ptr in signature) + MOVQ AX, 24(SP) + CALL ·Xtsearch(SB) + MOVQ 32(SP), AX + MOVQ AX, r1+32(FP) + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ $0, 8(SP) + CALL modernc·org∕libc·TLSFree(SB) + RET + +TEXT ·__ccgo_abi0_tsearch_2(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ _0+0(FP), AX + MOVQ AX, 0(SP) + MOVQ _1+8(FP), AX + MOVQ AX, 8(SP) + MOVQ _2+16(FP), AX + MOVQ AX, 16(SP) + MOVQ __ccgo_fp+24(FP), AX + CALL *AX // Call the ABI0 code ptr + MOVL 24(SP), AX + MOVL AX, _3+32(FP) + RET + +// func Yttyname(tls *TLS, fd int32) (r uintptr) +TEXT ·Yttyname(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xttyname(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Yttyname_r(tls *TLS, fd int32, name uintptr, size Tsize_t) (r int32) +TEXT ·Yttyname_r(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVQ name+16(FP), AX + MOVQ AX, 16(SP) + MOVQ size+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xttyname_r(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Ytwalk(tls *TLS, root uintptr, __ccgo_fp_action uintptr) +TEXT ·Ytwalk(SB),$32-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX // alloc all ABI trampolines + MOVQ AX, 0(SP) + MOVQ $16, 8(SP) // 16*(number of func ptrs in signature) + CALL modernc·org∕libc·TLSAlloc(SB) + MOVQ 16(SP), AX + MOVQ AX, -8(BP) // Trampolines[0] + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ -8(BP), AX + ADDQ $0, AX // 16*(0-based ordinal number of the func ptr in signature) + MOVQ AX, 8(SP) + MOVQ __ccgo_fp_action+16(FP), AX // ABI0 code ptr + MOVQ AX, 16(SP) + CALL ·__ccgo_abiInternal_twalk_1(SB) // Create the closure for calling __ccgo_fp_action + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ root+8(FP), AX + MOVQ AX, 8(SP) + MOVQ -8(BP), AX // Trampolines[0] + ADDQ $0, AX // 16*(0-based ordinal number of the func ptr in signature) + MOVQ AX, 16(SP) + CALL ·Xtwalk(SB) + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ $0, 8(SP) + CALL modernc·org∕libc·TLSFree(SB) + RET + +TEXT ·__ccgo_abi0_twalk_1(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ _0+0(FP), AX + MOVQ AX, 0(SP) + MOVQ _1+8(FP), AX + MOVQ AX, 8(SP) + MOVL _2+16(FP), AX + MOVL AX, 16(SP) + MOVL _3+20(FP), AX + MOVL AX, 20(SP) + MOVQ __ccgo_fp+24(FP), AX + CALL *AX // Call the ABI0 code ptr + RET + +// func Ytzset(tls *TLS) +TEXT ·Ytzset(SB),$8-8 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·Xtzset(SB) + RET + +// func Yualarm(tls *TLS, value uint32, interval uint32) (r uint32) +TEXT ·Yualarm(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL value+8(FP), AX + MOVL AX, 8(SP) + MOVL interval+12(FP), AX + MOVL AX, 12(SP) + CALL ·Xualarm(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yulckpwdf(tls *TLS) (r int32) +TEXT ·Yulckpwdf(SB),$16-12 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·Xulckpwdf(SB) + MOVL 8(SP), AX + MOVL AX, r+8(FP) + RET + +// func Yulimit(tls *TLS, cmd int32, va uintptr) (r int64) +TEXT ·Yulimit(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL cmd+8(FP), AX + MOVL AX, 8(SP) + MOVQ va+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xulimit(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Yumask(tls *TLS, mode Tmode_t) (r Tmode_t) +TEXT ·Yumask(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL mode+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xumask(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yumount(tls *TLS, special uintptr) (r int32) +TEXT ·Yumount(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ special+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xumount(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yumount2(tls *TLS, special uintptr, flags int32) (r int32) +TEXT ·Yumount2(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ special+8(FP), AX + MOVQ AX, 8(SP) + MOVL flags+16(FP), AX + MOVL AX, 16(SP) + CALL ·Xumount2(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yuname(tls *TLS, uts uintptr) (r int32) +TEXT ·Yuname(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ uts+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xuname(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yungetc(tls *TLS, c int32, f uintptr) (r int32) +TEXT ·Yungetc(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + MOVQ f+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xungetc(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yungetwc(tls *TLS, c Twint_t, f uintptr) (r Twint_t) +TEXT ·Yungetwc(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + MOVQ f+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xungetwc(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yunlink(tls *TLS, path uintptr) (r int32) +TEXT ·Yunlink(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ path+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xunlink(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yunlinkat(tls *TLS, fd int32, path uintptr, flag int32) (r int32) +TEXT ·Yunlinkat(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVQ path+16(FP), AX + MOVQ AX, 16(SP) + MOVL flag+24(FP), AX + MOVL AX, 24(SP) + CALL ·Xunlinkat(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Yunlockpt(tls *TLS, fd int32) (r int32) +TEXT ·Yunlockpt(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xunlockpt(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yunsetenv(tls *TLS, name uintptr) (r int32) +TEXT ·Yunsetenv(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ name+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xunsetenv(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yunshare(tls *TLS, flags int32) (r int32) +TEXT ·Yunshare(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL flags+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xunshare(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yupdwtmp(tls *TLS, f uintptr, u uintptr) +TEXT ·Yupdwtmp(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + MOVQ u+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xupdwtmp(SB) + RET + +// func Yupdwtmpx(tls *TLS, f uintptr, u uintptr) +TEXT ·Yupdwtmpx(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + MOVQ u+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xupdwtmpx(SB) + RET + +// func Yuselocale(tls *TLS, new1 Tlocale_t) (r Tlocale_t) +TEXT ·Yuselocale(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ new1+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xuselocale(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Yusleep(tls *TLS, useconds uint32) (r int32) +TEXT ·Yusleep(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL useconds+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xusleep(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yutime(tls *TLS, path uintptr, times uintptr) (r int32) +TEXT ·Yutime(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ path+8(FP), AX + MOVQ AX, 8(SP) + MOVQ times+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xutime(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yutimensat(tls *TLS, fd int32, path uintptr, times uintptr, flags int32) (r1 int32) +TEXT ·Yutimensat(SB),$48-44 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVQ path+16(FP), AX + MOVQ AX, 16(SP) + MOVQ times+24(FP), AX + MOVQ AX, 24(SP) + MOVL flags+32(FP), AX + MOVL AX, 32(SP) + CALL ·Xutimensat(SB) + MOVL 40(SP), AX + MOVL AX, r1+40(FP) + RET + +// func Yutimes(tls *TLS, path uintptr, times uintptr) (r int32) +TEXT ·Yutimes(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ path+8(FP), AX + MOVQ AX, 8(SP) + MOVQ times+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xutimes(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yuuid_copy(t *TLS, dst, src uintptr) +TEXT ·Yuuid_copy(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ dst+8(FP), AX + MOVQ AX, 8(SP) + MOVQ src+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xuuid_copy(SB) + RET + +// func Yuuid_generate_random(t *TLS, out uintptr) +TEXT ·Yuuid_generate_random(SB),$16-16 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ out+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xuuid_generate_random(SB) + RET + +// func Yuuid_parse(t *TLS, in uintptr, uu uintptr) (_3 int32) +TEXT ·Yuuid_parse(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ in+8(FP), AX + MOVQ AX, 8(SP) + MOVQ uu+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xuuid_parse(SB) + MOVL 24(SP), AX + MOVL AX, _3+24(FP) + RET + +// func Yuuid_unparse(t *TLS, uu, out uintptr) +TEXT ·Yuuid_unparse(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ t+0(FP), AX + MOVQ AX, 0(SP) + MOVQ uu+8(FP), AX + MOVQ AX, 8(SP) + MOVQ out+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xuuid_unparse(SB) + RET + +// func Yvasprintf(tls *TLS, s uintptr, fmt uintptr, ap Tva_list) (r int32) +TEXT ·Yvasprintf(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ fmt+16(FP), AX + MOVQ AX, 16(SP) + MOVQ ap+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xvasprintf(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Yvdprintf(tls *TLS, fd int32, fmt uintptr, ap Tva_list) (r int32) +TEXT ·Yvdprintf(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVQ fmt+16(FP), AX + MOVQ AX, 16(SP) + MOVQ ap+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xvdprintf(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Yverr(tls *TLS, status int32, fmt uintptr, ap Tva_list) +TEXT ·Yverr(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL status+8(FP), AX + MOVL AX, 8(SP) + MOVQ fmt+16(FP), AX + MOVQ AX, 16(SP) + MOVQ ap+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xverr(SB) + RET + +// func Yverrx(tls *TLS, status int32, fmt uintptr, ap Tva_list) +TEXT ·Yverrx(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL status+8(FP), AX + MOVL AX, 8(SP) + MOVQ fmt+16(FP), AX + MOVQ AX, 16(SP) + MOVQ ap+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xverrx(SB) + RET + +// func Yversionsort(tls *TLS, a uintptr, b uintptr) (r int32) +TEXT ·Yversionsort(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ a+8(FP), AX + MOVQ AX, 8(SP) + MOVQ b+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xversionsort(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yvfork(tls *TLS) (r Tpid_t) +TEXT ·Yvfork(SB),$16-12 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·Xvfork(SB) + MOVL 8(SP), AX + MOVL AX, r+8(FP) + RET + +// func Yvfprintf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) +TEXT ·Yvfprintf(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + MOVQ fmt+16(FP), AX + MOVQ AX, 16(SP) + MOVQ ap+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xvfprintf(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Yvfscanf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) +TEXT ·Yvfscanf(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + MOVQ fmt+16(FP), AX + MOVQ AX, 16(SP) + MOVQ ap+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xvfscanf(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Yvfwprintf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) +TEXT ·Yvfwprintf(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + MOVQ fmt+16(FP), AX + MOVQ AX, 16(SP) + MOVQ ap+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xvfwprintf(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Yvfwscanf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) +TEXT ·Yvfwscanf(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ f+8(FP), AX + MOVQ AX, 8(SP) + MOVQ fmt+16(FP), AX + MOVQ AX, 16(SP) + MOVQ ap+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xvfwscanf(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Yvhangup(tls *TLS) (r int32) +TEXT ·Yvhangup(SB),$16-12 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + CALL ·Xvhangup(SB) + MOVL 8(SP), AX + MOVL AX, r+8(FP) + RET + +// func Yvmsplice(tls *TLS, fd int32, iov uintptr, cnt Tsize_t, flags uint32) (r Tssize_t) +TEXT ·Yvmsplice(SB),$48-48 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVQ iov+16(FP), AX + MOVQ AX, 16(SP) + MOVQ cnt+24(FP), AX + MOVQ AX, 24(SP) + MOVL flags+32(FP), AX + MOVL AX, 32(SP) + CALL ·Xvmsplice(SB) + MOVQ 40(SP), AX + MOVQ AX, r+40(FP) + RET + +// func Yvprintf(tls *TLS, fmt uintptr, ap Tva_list) (r int32) +TEXT ·Yvprintf(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ fmt+8(FP), AX + MOVQ AX, 8(SP) + MOVQ ap+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xvprintf(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yvscanf(tls *TLS, fmt uintptr, ap Tva_list) (r int32) +TEXT ·Yvscanf(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ fmt+8(FP), AX + MOVQ AX, 8(SP) + MOVQ ap+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xvscanf(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yvsnprintf(tls *TLS, s uintptr, n Tsize_t, fmt uintptr, ap Tva_list) (r int32) +TEXT ·Yvsnprintf(SB),$48-44 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ n+16(FP), AX + MOVQ AX, 16(SP) + MOVQ fmt+24(FP), AX + MOVQ AX, 24(SP) + MOVQ ap+32(FP), AX + MOVQ AX, 32(SP) + CALL ·Xvsnprintf(SB) + MOVL 40(SP), AX + MOVL AX, r+40(FP) + RET + +// func Yvsprintf(tls *TLS, s uintptr, fmt uintptr, ap Tva_list) (r int32) +TEXT ·Yvsprintf(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ fmt+16(FP), AX + MOVQ AX, 16(SP) + MOVQ ap+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xvsprintf(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Yvsscanf(tls *TLS, s uintptr, fmt uintptr, ap Tva_list) (r int32) +TEXT ·Yvsscanf(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ fmt+16(FP), AX + MOVQ AX, 16(SP) + MOVQ ap+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xvsscanf(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Yvswprintf(tls *TLS, s uintptr, n Tsize_t, fmt uintptr, ap Tva_list) (r1 int32) +TEXT ·Yvswprintf(SB),$48-44 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ n+16(FP), AX + MOVQ AX, 16(SP) + MOVQ fmt+24(FP), AX + MOVQ AX, 24(SP) + MOVQ ap+32(FP), AX + MOVQ AX, 32(SP) + CALL ·Xvswprintf(SB) + MOVL 40(SP), AX + MOVL AX, r1+40(FP) + RET + +// func Yvswscanf(tls *TLS, s uintptr, fmt uintptr, ap Tva_list) (r int32) +TEXT ·Yvswscanf(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ fmt+16(FP), AX + MOVQ AX, 16(SP) + MOVQ ap+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xvswscanf(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Yvwarn(tls *TLS, fmt uintptr, ap Tva_list) +TEXT ·Yvwarn(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ fmt+8(FP), AX + MOVQ AX, 8(SP) + MOVQ ap+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xvwarn(SB) + RET + +// func Yvwarnx(tls *TLS, fmt uintptr, ap Tva_list) +TEXT ·Yvwarnx(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ fmt+8(FP), AX + MOVQ AX, 8(SP) + MOVQ ap+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xvwarnx(SB) + RET + +// func Yvwprintf(tls *TLS, fmt uintptr, ap Tva_list) (r int32) +TEXT ·Yvwprintf(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ fmt+8(FP), AX + MOVQ AX, 8(SP) + MOVQ ap+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xvwprintf(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yvwscanf(tls *TLS, fmt uintptr, ap Tva_list) (r int32) +TEXT ·Yvwscanf(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ fmt+8(FP), AX + MOVQ AX, 8(SP) + MOVQ ap+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xvwscanf(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ywait(tls *TLS, status uintptr) (r Tpid_t) +TEXT ·Ywait(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ status+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xwait(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ywait3(tls *TLS, status uintptr, options int32, usage uintptr) (r Tpid_t) +TEXT ·Ywait3(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ status+8(FP), AX + MOVQ AX, 8(SP) + MOVL options+16(FP), AX + MOVL AX, 16(SP) + MOVQ usage+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xwait3(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Ywait4(tls *TLS, pid Tpid_t, status uintptr, options int32, ru uintptr) (r1 Tpid_t) +TEXT ·Ywait4(SB),$48-44 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL pid+8(FP), AX + MOVL AX, 8(SP) + MOVQ status+16(FP), AX + MOVQ AX, 16(SP) + MOVL options+24(FP), AX + MOVL AX, 24(SP) + MOVQ ru+32(FP), AX + MOVQ AX, 32(SP) + CALL ·Xwait4(SB) + MOVL 40(SP), AX + MOVL AX, r1+40(FP) + RET + +// func Ywaitid(tls *TLS, type1 Tidtype_t, id Tid_t, info uintptr, options int32) (r int32) +TEXT ·Ywaitid(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL type1+8(FP), AX + MOVL AX, 8(SP) + MOVL id+12(FP), AX + MOVL AX, 12(SP) + MOVQ info+16(FP), AX + MOVQ AX, 16(SP) + MOVL options+24(FP), AX + MOVL AX, 24(SP) + CALL ·Xwaitid(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Ywaitpid(tls *TLS, pid Tpid_t, status uintptr, options int32) (r Tpid_t) +TEXT ·Ywaitpid(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL pid+8(FP), AX + MOVL AX, 8(SP) + MOVQ status+16(FP), AX + MOVQ AX, 16(SP) + MOVL options+24(FP), AX + MOVL AX, 24(SP) + CALL ·Xwaitpid(SB) + MOVL 32(SP), AX + MOVL AX, r+32(FP) + RET + +// func Ywarn(tls *TLS, fmt uintptr, va uintptr) +TEXT ·Ywarn(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ fmt+8(FP), AX + MOVQ AX, 8(SP) + MOVQ va+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xwarn(SB) + RET + +// func Ywarnx(tls *TLS, fmt uintptr, va uintptr) +TEXT ·Ywarnx(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ fmt+8(FP), AX + MOVQ AX, 8(SP) + MOVQ va+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xwarnx(SB) + RET + +// func Ywcpcpy(tls *TLS, d uintptr, s uintptr) (r uintptr) +TEXT ·Ywcpcpy(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ d+8(FP), AX + MOVQ AX, 8(SP) + MOVQ s+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xwcpcpy(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Ywcpncpy(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) +TEXT ·Ywcpncpy(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ d+8(FP), AX + MOVQ AX, 8(SP) + MOVQ s+16(FP), AX + MOVQ AX, 16(SP) + MOVQ n+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xwcpncpy(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Ywcrtomb(tls *TLS, s uintptr, wc Twchar_t, st uintptr) (r Tsize_t) +TEXT ·Ywcrtomb(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVL wc+16(FP), AX + MOVL AX, 16(SP) + MOVQ st+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xwcrtomb(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Ywcscasecmp(tls *TLS, l uintptr, r uintptr) (r1 int32) +TEXT ·Ywcscasecmp(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ l+8(FP), AX + MOVQ AX, 8(SP) + MOVQ r+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xwcscasecmp(SB) + MOVL 24(SP), AX + MOVL AX, r1+24(FP) + RET + +// func Ywcscasecmp_l(tls *TLS, l uintptr, r uintptr, locale Tlocale_t) (r1 int32) +TEXT ·Ywcscasecmp_l(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ l+8(FP), AX + MOVQ AX, 8(SP) + MOVQ r+16(FP), AX + MOVQ AX, 16(SP) + MOVQ locale+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xwcscasecmp_l(SB) + MOVL 32(SP), AX + MOVL AX, r1+32(FP) + RET + +// func Ywcscat(tls *TLS, dest uintptr, src uintptr) (r uintptr) +TEXT ·Ywcscat(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ dest+8(FP), AX + MOVQ AX, 8(SP) + MOVQ src+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xwcscat(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Ywcschr(tls *TLS, s uintptr, c Twchar_t) (r uintptr) +TEXT ·Ywcschr(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVL c+16(FP), AX + MOVL AX, 16(SP) + CALL ·Xwcschr(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Ywcscmp(tls *TLS, l uintptr, r uintptr) (r1 int32) +TEXT ·Ywcscmp(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ l+8(FP), AX + MOVQ AX, 8(SP) + MOVQ r+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xwcscmp(SB) + MOVL 24(SP), AX + MOVL AX, r1+24(FP) + RET + +// func Ywcscoll(tls *TLS, l uintptr, r uintptr) (r1 int32) +TEXT ·Ywcscoll(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ l+8(FP), AX + MOVQ AX, 8(SP) + MOVQ r+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xwcscoll(SB) + MOVL 24(SP), AX + MOVL AX, r1+24(FP) + RET + +// func Ywcscoll_l(tls *TLS, l uintptr, r uintptr, locale Tlocale_t) (r1 int32) +TEXT ·Ywcscoll_l(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ l+8(FP), AX + MOVQ AX, 8(SP) + MOVQ r+16(FP), AX + MOVQ AX, 16(SP) + MOVQ locale+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xwcscoll_l(SB) + MOVL 32(SP), AX + MOVL AX, r1+32(FP) + RET + +// func Ywcscpy(tls *TLS, d uintptr, s uintptr) (r uintptr) +TEXT ·Ywcscpy(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ d+8(FP), AX + MOVQ AX, 8(SP) + MOVQ s+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xwcscpy(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Ywcscspn(tls *TLS, s uintptr, c uintptr) (r Tsize_t) +TEXT ·Ywcscspn(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ c+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xwcscspn(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Ywcsdup(tls *TLS, s uintptr) (r uintptr) +TEXT ·Ywcsdup(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xwcsdup(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ywcsftime(tls *TLS, wcs uintptr, n Tsize_t, f uintptr, tm uintptr) (r Tsize_t) +TEXT ·Ywcsftime(SB),$48-48 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ wcs+8(FP), AX + MOVQ AX, 8(SP) + MOVQ n+16(FP), AX + MOVQ AX, 16(SP) + MOVQ f+24(FP), AX + MOVQ AX, 24(SP) + MOVQ tm+32(FP), AX + MOVQ AX, 32(SP) + CALL ·Xwcsftime(SB) + MOVQ 40(SP), AX + MOVQ AX, r+40(FP) + RET + +// func Ywcsftime_l(tls *TLS, s uintptr, n Tsize_t, f uintptr, tm uintptr, loc Tlocale_t) (r Tsize_t) +TEXT ·Ywcsftime_l(SB),$56-56 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ n+16(FP), AX + MOVQ AX, 16(SP) + MOVQ f+24(FP), AX + MOVQ AX, 24(SP) + MOVQ tm+32(FP), AX + MOVQ AX, 32(SP) + MOVQ loc+40(FP), AX + MOVQ AX, 40(SP) + CALL ·Xwcsftime_l(SB) + MOVQ 48(SP), AX + MOVQ AX, r+48(FP) + RET + +// func Ywcslen(tls *TLS, s uintptr) (r Tsize_t) +TEXT ·Ywcslen(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xwcslen(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ywcsncasecmp(tls *TLS, l uintptr, r uintptr, n Tsize_t) (r1 int32) +TEXT ·Ywcsncasecmp(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ l+8(FP), AX + MOVQ AX, 8(SP) + MOVQ r+16(FP), AX + MOVQ AX, 16(SP) + MOVQ n+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xwcsncasecmp(SB) + MOVL 32(SP), AX + MOVL AX, r1+32(FP) + RET + +// func Ywcsncasecmp_l(tls *TLS, l uintptr, r uintptr, n Tsize_t, locale Tlocale_t) (r1 int32) +TEXT ·Ywcsncasecmp_l(SB),$48-44 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ l+8(FP), AX + MOVQ AX, 8(SP) + MOVQ r+16(FP), AX + MOVQ AX, 16(SP) + MOVQ n+24(FP), AX + MOVQ AX, 24(SP) + MOVQ locale+32(FP), AX + MOVQ AX, 32(SP) + CALL ·Xwcsncasecmp_l(SB) + MOVL 40(SP), AX + MOVL AX, r1+40(FP) + RET + +// func Ywcsncat(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) +TEXT ·Ywcsncat(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ d+8(FP), AX + MOVQ AX, 8(SP) + MOVQ s+16(FP), AX + MOVQ AX, 16(SP) + MOVQ n+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xwcsncat(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Ywcsncmp(tls *TLS, l uintptr, r uintptr, n Tsize_t) (r1 int32) +TEXT ·Ywcsncmp(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ l+8(FP), AX + MOVQ AX, 8(SP) + MOVQ r+16(FP), AX + MOVQ AX, 16(SP) + MOVQ n+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xwcsncmp(SB) + MOVL 32(SP), AX + MOVL AX, r1+32(FP) + RET + +// func Ywcsncpy(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) +TEXT ·Ywcsncpy(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ d+8(FP), AX + MOVQ AX, 8(SP) + MOVQ s+16(FP), AX + MOVQ AX, 16(SP) + MOVQ n+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xwcsncpy(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Ywcsnlen(tls *TLS, s uintptr, n Tsize_t) (r Tsize_t) +TEXT ·Ywcsnlen(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ n+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xwcsnlen(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Ywcsnrtombs(tls *TLS, dst uintptr, wcs uintptr, wn Tsize_t, n Tsize_t, st uintptr) (r Tsize_t) +TEXT ·Ywcsnrtombs(SB),$56-56 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ dst+8(FP), AX + MOVQ AX, 8(SP) + MOVQ wcs+16(FP), AX + MOVQ AX, 16(SP) + MOVQ wn+24(FP), AX + MOVQ AX, 24(SP) + MOVQ n+32(FP), AX + MOVQ AX, 32(SP) + MOVQ st+40(FP), AX + MOVQ AX, 40(SP) + CALL ·Xwcsnrtombs(SB) + MOVQ 48(SP), AX + MOVQ AX, r+48(FP) + RET + +// func Ywcspbrk(tls *TLS, s uintptr, b uintptr) (r uintptr) +TEXT ·Ywcspbrk(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ b+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xwcspbrk(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Ywcsrchr(tls *TLS, s uintptr, c Twchar_t) (r uintptr) +TEXT ·Ywcsrchr(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVL c+16(FP), AX + MOVL AX, 16(SP) + CALL ·Xwcsrchr(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Ywcsrtombs(tls *TLS, s uintptr, ws uintptr, n Tsize_t, st uintptr) (r Tsize_t) +TEXT ·Ywcsrtombs(SB),$48-48 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ ws+16(FP), AX + MOVQ AX, 16(SP) + MOVQ n+24(FP), AX + MOVQ AX, 24(SP) + MOVQ st+32(FP), AX + MOVQ AX, 32(SP) + CALL ·Xwcsrtombs(SB) + MOVQ 40(SP), AX + MOVQ AX, r+40(FP) + RET + +// func Ywcsspn(tls *TLS, s uintptr, c uintptr) (r Tsize_t) +TEXT ·Ywcsspn(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ c+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xwcsspn(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Ywcsstr(tls *TLS, h uintptr, n uintptr) (r uintptr) +TEXT ·Ywcsstr(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ h+8(FP), AX + MOVQ AX, 8(SP) + MOVQ n+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xwcsstr(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Ywcstod(tls *TLS, s uintptr, p uintptr) (r float64) +TEXT ·Ywcstod(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ p+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xwcstod(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Ywcstof(tls *TLS, s uintptr, p uintptr) (r float32) +TEXT ·Ywcstof(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ p+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xwcstof(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ywcstoimax(tls *TLS, s uintptr, p uintptr, base int32) (r Tintmax_t) +TEXT ·Ywcstoimax(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ p+16(FP), AX + MOVQ AX, 16(SP) + MOVL base+24(FP), AX + MOVL AX, 24(SP) + CALL ·Xwcstoimax(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Ywcstok(tls *TLS, s uintptr, sep uintptr, p uintptr) (r uintptr) +TEXT ·Ywcstok(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ sep+16(FP), AX + MOVQ AX, 16(SP) + MOVQ p+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xwcstok(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Ywcstol(tls *TLS, s uintptr, p uintptr, base int32) (r int64) +TEXT ·Ywcstol(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ p+16(FP), AX + MOVQ AX, 16(SP) + MOVL base+24(FP), AX + MOVL AX, 24(SP) + CALL ·Xwcstol(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Ywcstold(tls *TLS, s uintptr, p uintptr) (r float64) +TEXT ·Ywcstold(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ p+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xwcstold(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Ywcstoll(tls *TLS, s uintptr, p uintptr, base int32) (r int64) +TEXT ·Ywcstoll(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ p+16(FP), AX + MOVQ AX, 16(SP) + MOVL base+24(FP), AX + MOVL AX, 24(SP) + CALL ·Xwcstoll(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Ywcstombs(tls *TLS, s uintptr, ws uintptr, n Tsize_t) (r Tsize_t) +TEXT ·Ywcstombs(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ ws+16(FP), AX + MOVQ AX, 16(SP) + MOVQ n+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xwcstombs(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Ywcstoul(tls *TLS, s uintptr, p uintptr, base int32) (r uint64) +TEXT ·Ywcstoul(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ p+16(FP), AX + MOVQ AX, 16(SP) + MOVL base+24(FP), AX + MOVL AX, 24(SP) + CALL ·Xwcstoul(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Ywcstoull(tls *TLS, s uintptr, p uintptr, base int32) (r uint64) +TEXT ·Ywcstoull(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ p+16(FP), AX + MOVQ AX, 16(SP) + MOVL base+24(FP), AX + MOVL AX, 24(SP) + CALL ·Xwcstoull(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Ywcstoumax(tls *TLS, s uintptr, p uintptr, base int32) (r Tuintmax_t) +TEXT ·Ywcstoumax(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ p+16(FP), AX + MOVQ AX, 16(SP) + MOVL base+24(FP), AX + MOVL AX, 24(SP) + CALL ·Xwcstoumax(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Ywcswcs(tls *TLS, haystack uintptr, needle uintptr) (r uintptr) +TEXT ·Ywcswcs(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ haystack+8(FP), AX + MOVQ AX, 8(SP) + MOVQ needle+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xwcswcs(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Ywcswidth(tls *TLS, wcs uintptr, n Tsize_t) (r int32) +TEXT ·Ywcswidth(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ wcs+8(FP), AX + MOVQ AX, 8(SP) + MOVQ n+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xwcswidth(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ywcsxfrm(tls *TLS, dest uintptr, src uintptr, n Tsize_t) (r Tsize_t) +TEXT ·Ywcsxfrm(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ dest+8(FP), AX + MOVQ AX, 8(SP) + MOVQ src+16(FP), AX + MOVQ AX, 16(SP) + MOVQ n+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xwcsxfrm(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Ywcsxfrm_l(tls *TLS, dest uintptr, src uintptr, n Tsize_t, loc Tlocale_t) (r Tsize_t) +TEXT ·Ywcsxfrm_l(SB),$48-48 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ dest+8(FP), AX + MOVQ AX, 8(SP) + MOVQ src+16(FP), AX + MOVQ AX, 16(SP) + MOVQ n+24(FP), AX + MOVQ AX, 24(SP) + MOVQ loc+32(FP), AX + MOVQ AX, 32(SP) + CALL ·Xwcsxfrm_l(SB) + MOVQ 40(SP), AX + MOVQ AX, r+40(FP) + RET + +// func Ywctob(tls *TLS, c Twint_t) (r int32) +TEXT ·Ywctob(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL c+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xwctob(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ywctomb(tls *TLS, s uintptr, wc Twchar_t) (r int32) +TEXT ·Ywctomb(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVL wc+16(FP), AX + MOVL AX, 16(SP) + CALL ·Xwctomb(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ywctrans(tls *TLS, class uintptr) (r Twctrans_t) +TEXT ·Ywctrans(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ class+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xwctrans(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ywctrans_l(tls *TLS, s uintptr, l Tlocale_t) (r Twctrans_t) +TEXT ·Ywctrans_l(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ l+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xwctrans_l(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Ywctype(tls *TLS, s uintptr) (r Twctype_t) +TEXT ·Ywctype(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xwctype(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Ywctype_l(tls *TLS, s uintptr, l Tlocale_t) (r Twctype_t) +TEXT ·Ywctype_l(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVQ l+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xwctype_l(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Ywcwidth(tls *TLS, wc Twchar_t) (r int32) +TEXT ·Ywcwidth(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL wc+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xwcwidth(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Ywmemchr(tls *TLS, s uintptr, c Twchar_t, n Tsize_t) (r uintptr) +TEXT ·Ywmemchr(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ s+8(FP), AX + MOVQ AX, 8(SP) + MOVL c+16(FP), AX + MOVL AX, 16(SP) + MOVQ n+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xwmemchr(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Ywmemcmp(tls *TLS, l uintptr, r uintptr, n Tsize_t) (r1 int32) +TEXT ·Ywmemcmp(SB),$40-36 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ l+8(FP), AX + MOVQ AX, 8(SP) + MOVQ r+16(FP), AX + MOVQ AX, 16(SP) + MOVQ n+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xwmemcmp(SB) + MOVL 32(SP), AX + MOVL AX, r1+32(FP) + RET + +// func Ywmemcpy(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) +TEXT ·Ywmemcpy(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ d+8(FP), AX + MOVQ AX, 8(SP) + MOVQ s+16(FP), AX + MOVQ AX, 16(SP) + MOVQ n+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xwmemcpy(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Ywmemmove(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) +TEXT ·Ywmemmove(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ d+8(FP), AX + MOVQ AX, 8(SP) + MOVQ s+16(FP), AX + MOVQ AX, 16(SP) + MOVQ n+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xwmemmove(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Ywmemset(tls *TLS, d uintptr, c Twchar_t, n Tsize_t) (r uintptr) +TEXT ·Ywmemset(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ d+8(FP), AX + MOVQ AX, 8(SP) + MOVL c+16(FP), AX + MOVL AX, 16(SP) + MOVQ n+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xwmemset(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Ywprintf(tls *TLS, fmt uintptr, va uintptr) (r int32) +TEXT ·Ywprintf(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ fmt+8(FP), AX + MOVQ AX, 8(SP) + MOVQ va+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xwprintf(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Ywrite(tls *TLS, fd int32, buf uintptr, count Tsize_t) (r Tssize_t) +TEXT ·Ywrite(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVQ buf+16(FP), AX + MOVQ AX, 16(SP) + MOVQ count+24(FP), AX + MOVQ AX, 24(SP) + CALL ·Xwrite(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Ywritev(tls *TLS, fd int32, iov uintptr, count int32) (r Tssize_t) +TEXT ·Ywritev(SB),$40-40 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL fd+8(FP), AX + MOVL AX, 8(SP) + MOVQ iov+16(FP), AX + MOVQ AX, 16(SP) + MOVL count+24(FP), AX + MOVL AX, 24(SP) + CALL ·Xwritev(SB) + MOVQ 32(SP), AX + MOVQ AX, r+32(FP) + RET + +// func Ywscanf(tls *TLS, fmt uintptr, va uintptr) (r int32) +TEXT ·Ywscanf(SB),$32-28 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ fmt+8(FP), AX + MOVQ AX, 8(SP) + MOVQ va+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xwscanf(SB) + MOVL 24(SP), AX + MOVL AX, r+24(FP) + RET + +// func Yy0(tls *TLS, x float64) (r float64) +TEXT ·Yy0(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xy0(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Yy0f(tls *TLS, x float32) (r float32) +TEXT ·Yy0f(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL x+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xy0f(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yy1(tls *TLS, x float64) (r float64) +TEXT ·Yy1(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVQ x+8(FP), AX + MOVQ AX, 8(SP) + CALL ·Xy1(SB) + MOVQ 16(SP), AX + MOVQ AX, r+16(FP) + RET + +// func Yy1f(tls *TLS, x float32) (r float32) +TEXT ·Yy1f(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL x+8(FP), AX + MOVL AX, 8(SP) + CALL ·Xy1f(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET + +// func Yyn(tls *TLS, n int32, x float64) (r float64) +TEXT ·Yyn(SB),$32-32 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL n+8(FP), AX + MOVL AX, 8(SP) + MOVQ x+16(FP), AX + MOVQ AX, 16(SP) + CALL ·Xyn(SB) + MOVQ 24(SP), AX + MOVQ AX, r+24(FP) + RET + +// func Yynf(tls *TLS, n int32, x float32) (r float32) +TEXT ·Yynf(SB),$24-20 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ tls+0(FP), AX + MOVQ AX, 0(SP) + MOVL n+8(FP), AX + MOVL AX, 8(SP) + MOVL x+12(FP), AX + MOVL AX, 12(SP) + CALL ·Xynf(SB) + MOVL 16(SP), AX + MOVL AX, r+16(FP) + RET diff --git a/vendor/modernc.org/libc/aliases.go b/vendor/modernc.org/libc/aliases.go new file mode 100644 index 000000000..446174a4d --- /dev/null +++ b/vendor/modernc.org/libc/aliases.go @@ -0,0 +1,109 @@ +// Copyright 2024 The Libc Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build linux && (amd64 || arm64 || loong64 || ppc64le || s390x || riscv64 || 386 || arm) + +package libc // import "modernc.org/libc" + +func X__vm_wait(tls *TLS) {} + +// static volatile int *const dummy_lockptr = 0; +// +// weak_alias(dummy_lockptr, __atexit_lockptr); +// weak_alias(dummy_lockptr, __bump_lockptr); +// weak_alias(dummy_lockptr, __sem_open_lockptr); +var X__atexit_lockptr int32 +var X__bump_lockptr int32 +var X__sem_open_lockptr int32 + +// static int dummy(int fd) +// +// { +// return fd; +// } +// +// weak_alias(dummy, __aio_close); +func X__aio_close(tls *TLS, fd int32) int32 { + return fd +} + +func Xtzset(tls *TLS) { + ___tzset(tls) +} + +type DIR = TDIR + +const DT_DETACHED = _DT_DETACHED + +const DT_EXITING = _DT_EXITING + +const DT_JOINABLE = _DT_JOINABLE + +type FILE = TFILE + +type HEADER = THEADER + +func Xfcntl64(tls *TLS, fd int32, cmd int32, va uintptr) (r int32) { + return Xfcntl(tls, fd, cmd, va) +} + +func Xfopen64(tls *TLS, filename uintptr, mode uintptr) (r uintptr) { + return Xfopen(tls, filename, mode) +} + +func Xfstat64(tls *TLS, fd int32, st uintptr) (r int32) { + return Xfstat(tls, fd, st) +} + +func Xftruncate64(tls *TLS, fd int32, length Toff_t) (r int32) { + return Xftruncate(tls, fd, length) +} + +func Xgetrlimit64(tls *TLS, resource int32, rlim uintptr) (r int32) { + return Xgetrlimit(tls, resource, rlim) +} + +func Xlseek64(tls *TLS, fd int32, offset Toff_t, whence int32) (r Toff_t) { + return Xlseek(tls, fd, offset, whence) +} + +func Xlstat64(tls *TLS, path uintptr, buf uintptr) (r int32) { + return Xlstat(tls, path, buf) +} + +func Xmkstemp64(tls *TLS, template uintptr) (r int32) { + return Xmkstemp(tls, template) +} + +func Xmkstemps64(tls *TLS, template uintptr, len1 int32) (r int32) { + return Xmkstemps(tls, template, len1) +} + +func Xmmap64(tls *TLS, start uintptr, len1 Tsize_t, prot int32, flags int32, fd int32, off Toff_t) (r uintptr) { + return Xmmap(tls, start, len1, prot, flags, fd, off) +} + +func Xopen64(tls *TLS, filename uintptr, flags int32, va uintptr) (r int32) { + return Xopen(tls, filename, flags, va) +} + +func Xreaddir64(tls *TLS, dir uintptr) (r uintptr) { + return Xreaddir(tls, dir) +} + +func Xsetrlimit64(tls *TLS, resource int32, rlim uintptr) (r int32) { + return Xsetrlimit(tls, resource, rlim) +} + +func Xstat64(tls *TLS, path uintptr, buf uintptr) (r int32) { + return Xstat(tls, path, buf) +} + +func Xpthread_setcancelstate(tls *TLS, new int32, old uintptr) int32 { + return _pthread_setcancelstate(tls, new, old) +} + +func Xpthread_sigmask(tls *TLS, now int32, set, old uintptr) int32 { + return _pthread_sigmask(tls, now, set, old) +} diff --git a/vendor/modernc.org/libc/asm_386.s b/vendor/modernc.org/libc/asm_386.s new file mode 100644 index 000000000..1a2d17ec8 --- /dev/null +++ b/vendor/modernc.org/libc/asm_386.s @@ -0,0 +1,77 @@ +#include "textflag.h" + +// static inline void a_or_64(volatile uint64_t *p, uint64_t v) +TEXT ·a_or_64(SB),NOSPLIT,$0 + MOVL p+0(FP), BX + MOVL v+4(FP), AX + LOCK + ORL AX, 0(BX) + MOVL v+8(FP), AX + LOCK + ORL AX, 4(BX) + RET + +// static inline void a_and_64(volatile uint64_t *p, uint64_t v) +TEXT ·a_and_64(SB),NOSPLIT,$0 + MOVL p+0(FP), BX + MOVL v+4(FP), AX + LOCK + ANDL AX, 0(BX) + MOVL v+8(FP), AX + LOCK + ANDL AX, 4(BX) + RET + +// static inline int a_cas(volatile int *p, int t, int s) +TEXT ·a_cas(SB),NOSPLIT,$0 + MOVL p+0(FP), BX + MOVL t+4(FP), AX + MOVL s+8(FP), CX + LOCK + CMPXCHGL CX, 0(BX) + MOVL AX, ret+12(FP) + RET + +// static inline void a_barrier() +TEXT ·a_barrier(SB),NOSPLIT,$0 + MFENCE + RET + +// #define a_crash a_crash +// static inline void a_crash() +// { +// __asm__ __volatile__( "hlt" : : : "memory" ); +// } +TEXT ·a_crash(SB),NOSPLIT,$0 + HLT + +// static inline void *a_cas_p(volatile void *p, void *t, void *s) +TEXT ·a_cas_p(SB),NOSPLIT,$0 + MOVL p+0(FP), BX + MOVL t+4(FP), AX + MOVL s+8(FP), CX + LOCK + CMPXCHGL CX, 0(BX) + MOVL AX, ret+12(FP) + RET + +// static inline void a_or(volatile int *p, int v) +TEXT ·a_or(SB),NOSPLIT,$0 + MOVL p+0(FP), BX + MOVL v+4(FP), AX + LOCK + ORL AX, 0(BX) + RET + +// static inline int a_fetch_add(volatile int *p, int v) +TEXT ·a_fetch_add(SB),NOSPLIT,$0 + MOVL p+0(FP), BX + MOVL v+4(FP), AX + LOCK + XADDL AX, 0(BX) + RET + +// static inline void a_spin() +TEXT ·a_spin(SB),NOSPLIT,$0 + PAUSE + RET diff --git a/vendor/modernc.org/libc/atomic.go b/vendor/modernc.org/libc/atomic.go new file mode 100644 index 000000000..ed42fa4b7 --- /dev/null +++ b/vendor/modernc.org/libc/atomic.go @@ -0,0 +1,117 @@ +// Copyright 2024 The Libc Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build linux && (amd64 || arm64 || loong64 || ppc64le || s390x || riscv64 || 386 || arm) + +package libc // import "modernc.org/libc" + +import ( + "math" + mbits "math/bits" + "sync/atomic" + "unsafe" +) + +func a_store_8(addr uintptr, val int8) int8 { + *(*int8)(unsafe.Pointer(addr)) = val + return val +} + +func a_load_8(addr uintptr) (val int8) { + return *(*int8)(unsafe.Pointer(addr)) +} + +func a_load_16(addr uintptr) (val int16) { + if addr&1 != 0 { + panic("unaligned atomic access") + } + + return *(*int16)(unsafe.Pointer(addr)) +} + +func a_store_16(addr uintptr, val uint16) { + if addr&1 != 0 { + panic("unaligned atomic access") + } + + *(*uint16)(unsafe.Pointer(addr)) = val +} + +// static inline int a_ctz_64(uint64_t x) +func _a_ctz_64(tls *TLS, x uint64) int32 { + return int32(mbits.TrailingZeros64(x)) +} + +func AtomicAddFloat32(addr *float32, delta float32) (new float32) { + for { + oldBits := atomic.LoadUint32((*uint32)(unsafe.Pointer(addr))) + oldVal := math.Float32frombits(oldBits) + newVal := oldVal + delta + newBits := math.Float32bits(newVal) + if atomic.CompareAndSwapUint32((*uint32)(unsafe.Pointer(addr)), oldBits, newBits) { + return newVal + } + } +} + +func AtomicLoadFloat32(addr *float32) (val float32) { + return math.Float32frombits(atomic.LoadUint32((*uint32)(unsafe.Pointer(addr)))) +} + +func AtomicStoreFloat32(addr *float32, val float32) { + atomic.StoreUint32((*uint32)(unsafe.Pointer(addr)), math.Float32bits(val)) +} + +func AtomicAddFloat64(addr *float64, delta float64) (new float64) { + for { + oldBits := atomic.LoadUint64((*uint64)(unsafe.Pointer(addr))) + oldVal := math.Float64frombits(oldBits) + newVal := oldVal + delta + newBits := math.Float64bits(newVal) + if atomic.CompareAndSwapUint64((*uint64)(unsafe.Pointer(addr)), oldBits, newBits) { + return newVal + } + } +} + +func AtomicLoadFloat64(addr *float64) (val float64) { + return math.Float64frombits(atomic.LoadUint64((*uint64)(unsafe.Pointer(addr)))) +} + +func AtomicStoreFloat64(addr *float64, val float64) { + atomic.StoreUint64((*uint64)(unsafe.Pointer(addr)), math.Float64bits(val)) +} + +func AtomicAddInt32(addr *int32, delta int32) (new int32) { return atomic.AddInt32(addr, delta) } + +func AtomicAddInt64(addr *int64, delta int64) (new int64) { return atomic.AddInt64(addr, delta) } + +func AtomicAddUint32(addr *uint32, delta uint32) (new uint32) { return atomic.AddUint32(addr, delta) } + +func AtomicAddUint64(addr *uint64, delta uint64) (new uint64) { return atomic.AddUint64(addr, delta) } + +func AtomicAddUintptr(addr *uintptr, delta uintptr) (new uintptr) { + return atomic.AddUintptr(addr, delta) + +} + +func AtomicLoadInt32(addr *int32) (val int32) { return atomic.LoadInt32(addr) } + +func AtomicLoadInt64(addr *int64) (val int64) { return atomic.LoadInt64(addr) } + +func AtomicLoadUint32(addr *uint32) (val uint32) { return atomic.LoadUint32(addr) } + +func AtomicLoadUint64(addr *uint64) (val uint64) { return atomic.LoadUint64(addr) } + +func AtomicLoadUintptr(addr *uintptr) (val uintptr) { return atomic.LoadUintptr(addr) } + +func AtomicStoreInt32(addr *int32, val int32) { atomic.StoreInt32(addr, val) } + +func AtomicStoreUint32(addr *uint32, val uint32) { atomic.StoreUint32(addr, val) } + +func AtomicStoreUint64(addr *uint64, val uint64) { atomic.StoreUint64(addr, val) } + +func AtomicStoreUintptr(addr *uintptr, val uintptr) { atomic.StoreUintptr(addr, val) } + +func AtomicStoreInt64(addr *int64, val int64) { atomic.StoreInt64(addr, val) } diff --git a/vendor/modernc.org/libc/atomic32.go b/vendor/modernc.org/libc/atomic32.go new file mode 100644 index 000000000..c5670a554 --- /dev/null +++ b/vendor/modernc.org/libc/atomic32.go @@ -0,0 +1,16 @@ +// Copyright 2024 The Libc Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build linux && (386 || arm) + +package libc // import "modernc.org/libc" + +import ( + mbits "math/bits" +) + +// static inline int a_ctz_l(unsigned long x) +func _a_ctz_l(tls *TLS, x ulong) int32 { + return int32(mbits.TrailingZeros32(x)) +} diff --git a/vendor/modernc.org/libc/atomic64.go b/vendor/modernc.org/libc/atomic64.go new file mode 100644 index 000000000..d24262182 --- /dev/null +++ b/vendor/modernc.org/libc/atomic64.go @@ -0,0 +1,16 @@ +// Copyright 2024 The Libc Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build linux && (amd64 || arm64 || loong64 || ppc64le || s390x || riscv64) + +package libc // import "modernc.org/libc" + +import ( + mbits "math/bits" +) + +// static inline int a_ctz_l(unsigned long x) +func _a_ctz_l(tls *TLS, x ulong) int32 { + return int32(mbits.TrailingZeros64(x)) +} diff --git a/vendor/modernc.org/libc/build_all_targets.sh b/vendor/modernc.org/libc/build_all_targets.sh index 3fb79cf4b..1b0e043b2 100644 --- a/vendor/modernc.org/libc/build_all_targets.sh +++ b/vendor/modernc.org/libc/build_all_targets.sh @@ -1,43 +1,77 @@ set -e -for tag in none dmesg libc.membrk libc.memgrind +for tag in none libc.dmesg libc.membrk libc.memgrind libc.strace libc.memexpvar do echo "-tags=$tag" + echo "GOOS=darwin GOARCH=amd64" GOOS=darwin GOARCH=amd64 go build -tags=$tag -v ./... GOOS=darwin GOARCH=amd64 go test -tags=$tag -c -o /dev/null + echo "GOOS=darwin GOARCH=arm64" GOOS=darwin GOARCH=arm64 go build -tags=$tag -v ./... GOOS=darwin GOARCH=arm64 go test -tags=$tag -c -o /dev/null - GOOS=freebsd GOARCH=386 go build -tags=$tag -v ./... - GOOS=freebsd GOARCH=386 go test -tags=$tag -c -o /dev/null + #TODO echo "GOOS=freebsd GOARCH=386" + #TODO GOOS=freebsd GOARCH=386 go build -tags=$tag -v ./... + #TODO GOOS=freebsd GOARCH=386 go test -tags=$tag -c -o /dev/null + echo "GOOS=freebsd GOARCH=amd64" GOOS=freebsd GOARCH=amd64 go build -tags=$tag -v ./... GOOS=freebsd GOARCH=amd64 go test -tags=$tag -c -o /dev/null - GOOS=freebsd GOARCH=arm go build -tags=$tag -v ./... - GOOS=freebsd GOARCH=arm go test -tags=$tag -c -o /dev/null + echo "GOOS=freebsd GOARCH=arm64" + GOOS=freebsd GOARCH=arm64 go build -tags=$tag -v ./... + GOOS=freebsd GOARCH=arm64 go test -tags=$tag -c -o /dev/null + echo "GOOS=illumos GOARCH=amd64" + GOOS=illumos GOARCH=amd64 go build -tags=$tag -v ./... + GOOS=illumos GOARCH=amd64 go test -tags=$tag -c -o /dev/null + #TODO echo "GOOS=freebsd GOARCH=arm" + #TODO GOOS=freebsd GOARCH=arm go build -tags=$tag -v ./... + #TODO GOOS=freebsd GOARCH=arm go test -tags=$tag -c -o /dev/null + echo "GOOS=linux GOARCH=386" GOOS=linux GOARCH=386 go build -tags=$tag -v ./... GOOS=linux GOARCH=386 go test -tags=$tag -c -o /dev/null + echo "GOOS=linux GOARCH=amd64" GOOS=linux GOARCH=amd64 go build -tags=$tag -v ./... GOOS=linux GOARCH=amd64 go test -tags=$tag -c -o /dev/null + echo "GOOS=linux GOARCH=arm" GOOS=linux GOARCH=arm go build -tags=$tag -v ./... GOOS=linux GOARCH=arm go test -tags=$tag -c -o /dev/null + echo "GOOS=linux GOARCH=arm64" GOOS=linux GOARCH=arm64 go build -tags=$tag -v ./... GOOS=linux GOARCH=arm64 go test -tags=$tag -c -o /dev/null + echo "GOOS=linux GOARCH=loong64" + GOOS=linux GOARCH=loong64 go build -tags=$tag -v ./... + GOOS=linux GOARCH=loong64 go test -tags=$tag -c -o /dev/null + # echo "GOOS=linux GOARCH=mips64le" + # GOOS=linux GOARCH=mips64le go build -tags=$tag -v ./... + # GOOS=linux GOARCH=mips64le go test -tags=$tag -c -o /dev/null + echo "GOOS=linux GOARCH=ppc64le" + GOOS=linux GOARCH=ppc64le go build -tags=$tag -v ./... GOOS=linux GOARCH=ppc64le go test -tags=$tag -c -o /dev/null + echo "GOOS=linux GOARCH=riscv64" GOOS=linux GOARCH=riscv64 go build -tags=$tag -v ./... + GOOS=linux GOARCH=riscv64 go test -tags=$tag -c -o /dev/null + echo "GOOS=linux GOARCH=s390x" GOOS=linux GOARCH=s390x go build -tags=$tag -v ./... GOOS=linux GOARCH=s390x go test -tags=$tag -c -o /dev/null + echo "GOOS=netbsd GOARCH=amd64" GOOS=netbsd GOARCH=amd64 go build -tags=$tag -v ./... GOOS=netbsd GOARCH=amd64 go test -tags=$tag -c -o /dev/null + echo "GOOS=netbsd GOARCH=arm" GOOS=netbsd GOARCH=arm go build -tags=$tag -v ./... GOOS=netbsd GOARCH=arm go test -tags=$tag -c -o /dev/null + echo "GOOS=openbsd GOARCH=386" GOOS=openbsd GOARCH=386 go build -tags=$tag -v ./... GOOS=openbsd GOARCH=386 go test -tags=$tag -c -o /dev/null + echo "GOOS=openbsd GOARCH=amd64" GOOS=openbsd GOARCH=amd64 go build -tags=$tag -v ./... GOOS=openbsd GOARCH=amd64 go test -tags=$tag -c -o /dev/null + echo "GOOS=openbsd GOARCH=arm64" GOOS=openbsd GOARCH=arm64 go build -tags=$tag -v ./... GOOS=openbsd GOARCH=arm64 go test -tags=$tag -c -o /dev/null + echo "GOOS=windows GOARCH=386" GOOS=windows GOARCH=386 go build -tags=$tag -v ./... GOOS=windows GOARCH=386 go test -tags=$tag -c -o /dev/null + echo "GOOS=windows GOARCH=amd64" GOOS=windows GOARCH=amd64 go build -tags=$tag -v ./... GOOS=windows GOARCH=amd64 go test -tags=$tag -c -o /dev/null + echo "GOOS=windows GOARCH=arm64" GOOS=windows GOARCH=arm64 go build -tags=$tag -v ./... GOOS=windows GOARCH=arm64 go test -tags=$tag -c -o /dev/null done diff --git a/vendor/modernc.org/libc/builder.json b/vendor/modernc.org/libc/builder.json new file mode 100644 index 000000000..30273dae6 --- /dev/null +++ b/vendor/modernc.org/libc/builder.json @@ -0,0 +1,9 @@ +{ + "autogen": "linux/(amd64|arm64|loong64|ppc64le|s390x|riscv64|386|arm$)", + "autotag": "darwin/(amd64|arm64)|freebsd/(amd64|arm64|386|arm)|linux/(386|amd64|arm$|arm64|loong64|ppc64le|riscv64|s390x)|netbsd/amd64|openbsd/(amd64|arm64)|windows/(amd64|arm64|386)", + "autoupdate": "linux/amd64", + "download": [ + {"re": "linux/(amd64|arm64|loong64|ppc64le|s390x|riscv64|386|arm$)", "files": ["https://git.musl-libc.org/cgit/musl/snapshot/musl-7ada6dde6f9dc6a2836c3d92c2f762d35fd229e0.tar.gz"]} + ], + "test": "darwin/(amd64|arm64)|freebsd/(amd64|arm64|386|arm)|linux/(386|amd64|arm$|arm64|loong64|ppc64le|riscv64|s390x)|netbsd/amd64|openbsd/(amd64|arm64)|windows/(amd64|arm64|386)" +} diff --git a/vendor/modernc.org/libc/builtin.go b/vendor/modernc.org/libc/builtin.go new file mode 100644 index 000000000..fcd771511 --- /dev/null +++ b/vendor/modernc.org/libc/builtin.go @@ -0,0 +1,443 @@ +// Copyright 2024 The Libc Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build linux && (amd64 || arm64 || loong64 || ppc64le || s390x || riscv64 || 386 || arm) + +package libc // import "modernc.org/libc" + +import ( + "fmt" + "math" + mbits "math/bits" + "os" + "unsafe" + + "modernc.org/mathutil" +) + +func X__builtin_inff(tls *TLS) float32 { + return float32(math.Inf(1)) +} + +func X__builtin_nanf(tls *TLS, s uintptr) float32 { + return float32(math.NaN()) +} + +func X__builtin_printf(tls *TLS, fmt uintptr, va uintptr) (r int32) { + return Xprintf(tls, fmt, va) +} + +func X__builtin_round(tls *TLS, x float64) (r float64) { + return Xround(tls, x) +} + +func X__builtin_lround(tls *TLS, x float64) (r long) { + return Xlround(tls, x) +} + +func X__builtin_roundf(tls *TLS, x float32) (r float32) { + return Xroundf(tls, x) +} + +func X__builtin_expect(t *TLS, exp, c long) long { + return exp +} + +func X__builtin_bzero(t *TLS, s uintptr, n Tsize_t) { + Xbzero(t, s, n) +} + +func X__builtin_abort(t *TLS) { + Xabort(t) +} + +func X__builtin_abs(t *TLS, j int32) int32 { + return Xabs(t, j) +} + +func X__builtin_ctz(t *TLS, n uint32) int32 { + return int32(mbits.TrailingZeros32(n)) +} + +func X__builtin_clz(t *TLS, n uint32) int32 { + return int32(mbits.LeadingZeros32(n)) +} + +func X__builtin_clzll(t *TLS, n uint64) int32 { + return int32(mbits.LeadingZeros64(n)) +} +func X__builtin_constant_p_impl() { panic(todo("internal error: should never be called")) } + +func X__builtin_copysign(t *TLS, x, y float64) float64 { + return Xcopysign(t, x, y) +} + +func X__builtin_copysignf(t *TLS, x, y float32) float32 { + return Xcopysignf(t, x, y) +} + +func X__builtin_copysignl(t *TLS, x, y float64) float64 { + return Xcopysign(t, x, y) +} + +func X__builtin_exit(t *TLS, status int32) { + Xexit(t, status) +} + +func X__builtin_fabs(t *TLS, x float64) float64 { + return Xfabs(t, x) +} + +func X__builtin_fabsf(t *TLS, x float32) float32 { + return Xfabsf(t, x) +} + +func X__builtin_fabsl(t *TLS, x float64) float64 { + return Xfabsl(t, x) +} + +func X__builtin_free(t *TLS, ptr uintptr) { + Xfree(t, ptr) +} + +func X__builtin_getentropy(t *TLS, buf uintptr, n Tsize_t) int32 { + return Xgetentropy(t, buf, n) +} + +func X__builtin_huge_val(t *TLS) float64 { + return math.Inf(1) +} + +func X__builtin_huge_valf(t *TLS) float32 { + return float32(math.Inf(1)) +} + +func X__builtin_inf(t *TLS) float64 { + return math.Inf(1) +} + +func X__builtin_infl(t *TLS) float64 { + return math.Inf(1) +} + +func X__builtin_malloc(t *TLS, size Tsize_t) uintptr { + return Xmalloc(t, size) +} + +func X__builtin_memcmp(t *TLS, s1, s2 uintptr, n Tsize_t) int32 { + return Xmemcmp(t, s1, s2, n) +} + +func X__builtin_nan(t *TLS, s uintptr) float64 { + return math.NaN() +} + +func X__builtin_nanl(t *TLS, s uintptr) float64 { + return math.NaN() +} + +func X__builtin_prefetch(t *TLS, addr, args uintptr) { +} + +func X__builtin_strchr(t *TLS, s uintptr, c int32) uintptr { + return Xstrchr(t, s, c) +} + +func X__builtin_strcmp(t *TLS, s1, s2 uintptr) int32 { + return Xstrcmp(t, s1, s2) +} + +func X__builtin_strcpy(t *TLS, dest, src uintptr) uintptr { + return Xstrcpy(t, dest, src) +} + +func X__builtin_strlen(t *TLS, s uintptr) Tsize_t { + return Xstrlen(t, s) +} + +func X__builtin_trap(t *TLS) { + Xabort(t) +} + +func X__builtin_popcount(t *TLS, x uint32) int32 { + return int32(mbits.OnesCount32(x)) +} + +// char * __builtin___strcpy_chk (char *dest, const char *src, size_t os); +func X__builtin___strcpy_chk(t *TLS, dest, src uintptr, os Tsize_t) uintptr { + return Xstrcpy(t, dest, src) +} + +func X__builtin_mmap(t *TLS, addr uintptr, length Tsize_t, prot, flags, fd int32, offset Toff_t) uintptr { + return Xmmap(t, addr, length, prot, flags, fd, offset) +} + +// uint16_t __builtin_bswap16 (uint32_t x) +func X__builtin_bswap16(t *TLS, x uint16) uint16 { + return x<<8 | + x>>8 +} + +// uint32_t __builtin_bswap32 (uint32_t x) +func X__builtin_bswap32(t *TLS, x uint32) uint32 { + return x<<24 | + x&0xff00<<8 | + x&0xff0000>>8 | + x>>24 +} + +// uint64_t __builtin_bswap64 (uint64_t x) +func X__builtin_bswap64(t *TLS, x uint64) uint64 { + return x<<56 | + x&0xff00<<40 | + x&0xff0000<<24 | + x&0xff000000<<8 | + x&0xff00000000>>8 | + x&0xff0000000000>>24 | + x&0xff000000000000>>40 | + x>>56 +} + +// bool __builtin_add_overflow (type1 a, type2 b, type3 *res) +func X__builtin_add_overflowInt64(t *TLS, a, b int64, res uintptr) int32 { + r, ovf := mathutil.AddOverflowInt64(a, b) + *(*int64)(unsafe.Pointer(res)) = r + return Bool32(ovf) +} + +// bool __builtin_add_overflow (type1 a, type2 b, type3 *res) +func X__builtin_add_overflowUint32(t *TLS, a, b uint32, res uintptr) int32 { + r := a + b + *(*uint32)(unsafe.Pointer(res)) = r + return Bool32(r < a) +} + +// bool __builtin_add_overflow (type1 a, type2 b, type3 *res) +func X__builtin_add_overflowUint64(t *TLS, a, b uint64, res uintptr) int32 { + r := a + b + *(*uint64)(unsafe.Pointer(res)) = r + return Bool32(r < a) +} + +// bool __builtin_sub_overflow (type1 a, type2 b, type3 *res) +func X__builtin_sub_overflowInt64(t *TLS, a, b int64, res uintptr) int32 { + r, ovf := mathutil.SubOverflowInt64(a, b) + *(*int64)(unsafe.Pointer(res)) = r + return Bool32(ovf) +} + +// bool __builtin_mul_overflow (type1 a, type2 b, type3 *res) +func X__builtin_mul_overflowInt64(t *TLS, a, b int64, res uintptr) int32 { + r, ovf := mathutil.MulOverflowInt64(a, b) + *(*int64)(unsafe.Pointer(res)) = r + return Bool32(ovf) +} + +// bool __builtin_mul_overflow (type1 a, type2 b, type3 *res) +func X__builtin_mul_overflowUint64(t *TLS, a, b uint64, res uintptr) int32 { + hi, lo := mbits.Mul64(a, b) + *(*uint64)(unsafe.Pointer(res)) = lo + return Bool32(hi != 0) +} + +// bool __builtin_mul_overflow (type1 a, type2 b, type3 *res) +func X__builtin_mul_overflowUint128(t *TLS, a, b Uint128, res uintptr) int32 { + r, ovf := a.mulOvf(b) + *(*Uint128)(unsafe.Pointer(res)) = r + return Bool32(ovf) +} + +func X__builtin_unreachable(t *TLS) { + fmt.Fprintf(os.Stderr, "unrechable\n") + os.Stderr.Sync() + Xexit(t, 1) +} + +func X__builtin_snprintf(t *TLS, str uintptr, size Tsize_t, format, args uintptr) int32 { + return Xsnprintf(t, str, size, format, args) +} + +func X__builtin_sprintf(t *TLS, str, format, args uintptr) (r int32) { + return Xsprintf(t, str, format, args) +} + +func X__builtin_memcpy(t *TLS, dest, src uintptr, n Tsize_t) (r uintptr) { + return Xmemcpy(t, dest, src, n) +} + +// void * __builtin___memcpy_chk (void *dest, const void *src, size_t n, size_t os); +func X__builtin___memcpy_chk(t *TLS, dest, src uintptr, n, os Tsize_t) (r uintptr) { + if os != ^Tsize_t(0) && n < os { + Xabort(t) + } + + return Xmemcpy(t, dest, src, n) +} + +func X__builtin_memset(t *TLS, s uintptr, c int32, n Tsize_t) uintptr { + return Xmemset(t, s, c, n) +} + +// void * __builtin___memset_chk (void *s, int c, size_t n, size_t os); +func X__builtin___memset_chk(t *TLS, s uintptr, c int32, n, os Tsize_t) uintptr { + if os < n { + Xabort(t) + } + + return Xmemset(t, s, c, n) +} + +// size_t __builtin_object_size (const void * ptr, int type) +func X__builtin_object_size(t *TLS, p uintptr, typ int32) Tsize_t { + switch typ { + case 0, 1: + return ^Tsize_t(0) + default: + return 0 + } +} + +// int __builtin___sprintf_chk (char *s, int flag, size_t os, const char *fmt, ...); +func X__builtin___sprintf_chk(t *TLS, s uintptr, flag int32, os Tsize_t, format, args uintptr) (r int32) { + return Xsprintf(t, s, format, args) +} + +func X__builtin_vsnprintf(t *TLS, str uintptr, size Tsize_t, format, va uintptr) int32 { + return Xvsnprintf(t, str, size, format, va) +} + +// int __builtin___snprintf_chk(char * str, size_t maxlen, int flag, size_t os, const char * format, ...); +func X__builtin___snprintf_chk(t *TLS, str uintptr, maxlen Tsize_t, flag int32, os Tsize_t, format, args uintptr) (r int32) { + if os != ^Tsize_t(0) && maxlen > os { + Xabort(t) + } + + return Xsnprintf(t, str, maxlen, format, args) +} + +// int __builtin___vsnprintf_chk (char *s, size_t maxlen, int flag, size_t os, const char *fmt, va_list ap); +func X__builtin___vsnprintf_chk(t *TLS, str uintptr, maxlen Tsize_t, flag int32, os Tsize_t, format, args uintptr) (r int32) { + if os != ^Tsize_t(0) && maxlen > os { + Xabort(t) + } + + return Xsnprintf(t, str, maxlen, format, args) +} + +func Xisnan(t *TLS, x float64) int32 { + return X__builtin_isnan(t, x) +} + +func X__isnan(t *TLS, x float64) int32 { + return X__builtin_isnan(t, x) +} + +func X__builtin_isnan(t *TLS, x float64) int32 { + return Bool32(math.IsNaN(x)) +} + +func Xisnanf(t *TLS, arg float32) int32 { + return X__builtin_isnanf(t, arg) +} + +func X__isnanf(t *TLS, arg float32) int32 { + return X__builtin_isnanf(t, arg) +} + +func X__builtin_isnanf(t *TLS, x float32) int32 { + return Bool32(math.IsNaN(float64(x))) +} + +func Xisnanl(t *TLS, arg float64) int32 { + return X__builtin_isnanl(t, arg) +} + +func X__isnanl(t *TLS, arg float64) int32 { + return X__builtin_isnanl(t, arg) +} + +func X__builtin_isnanl(t *TLS, x float64) int32 { + return Bool32(math.IsNaN(x)) +} + +func X__builtin_llabs(tls *TLS, a int64) int64 { + return Xllabs(tls, a) +} + +func X__builtin_log2(t *TLS, x float64) float64 { + return Xlog2(t, x) +} + +func X__builtin___strncpy_chk(t *TLS, dest, src uintptr, n, os Tsize_t) (r uintptr) { + if n != ^Tsize_t(0) && os < n { + Xabort(t) + } + + return Xstrncpy(t, dest, src, n) +} + +func X__builtin___strcat_chk(t *TLS, dest, src uintptr, os Tsize_t) (r uintptr) { + return Xstrcat(t, dest, src) +} + +func X__builtin___memmove_chk(t *TLS, dest, src uintptr, n, os Tsize_t) uintptr { + if os != ^Tsize_t(0) && os < n { + Xabort(t) + } + + return Xmemmove(t, dest, src, n) +} + +func X__builtin_isunordered(t *TLS, a, b float64) int32 { + return Bool32(math.IsNaN(a) || math.IsNaN(b)) +} + +func X__builtin_ffs(tls *TLS, i int32) (r int32) { + return Xffs(tls, i) +} + +func X__builtin_rintf(tls *TLS, x float32) (r float32) { + return Xrintf(tls, x) +} + +func X__builtin_lrintf(tls *TLS, x float32) (r long) { + return Xlrintf(tls, x) +} + +func X__builtin_lrint(tls *TLS, x float64) (r long) { + return Xlrint(tls, x) +} + +// double __builtin_fma(double x, double y, double z); +func X__builtin_fma(tls *TLS, x, y, z float64) (r float64) { + return math.FMA(x, y, z) +} + +func X__builtin_alloca(tls *TLS, size Tsize_t) uintptr { + return Xalloca(tls, size) +} + +func X__builtin_isprint(tls *TLS, c int32) (r int32) { + return Xisprint(tls, c) +} + +func X__builtin_isblank(tls *TLS, c int32) (r int32) { + return Xisblank(tls, c) +} + +func X__builtin_trunc(tls *TLS, x float64) (r float64) { + return Xtrunc(tls, x) +} + +func X__builtin_hypot(tls *TLS, x float64, y float64) (r float64) { + return Xhypot(tls, x, y) +} + +func X__builtin_fmax(tls *TLS, x float64, y float64) (r float64) { + return Xfmax(tls, x, y) +} + +func X__builtin_fmin(tls *TLS, x float64, y float64) (r float64) { + return Xfmin(tls, x, y) +} diff --git a/vendor/modernc.org/libc/builtin32.go b/vendor/modernc.org/libc/builtin32.go new file mode 100644 index 000000000..e23b8d7c3 --- /dev/null +++ b/vendor/modernc.org/libc/builtin32.go @@ -0,0 +1,29 @@ +// Copyright 2024 The Libc Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build linux && (386 || arm) + +package libc // import "modernc.org/libc" + +import ( + mbits "math/bits" +) + +func X__builtin_ctzl(tls *TLS, x ulong) int32 { + return int32(mbits.TrailingZeros32(x)) +} + +func X__builtin_clzl(t *TLS, n ulong) int32 { + return int32(mbits.LeadingZeros32(n)) +} + +// int __builtin_popcountl (unsigned long x) +func X__builtin_popcountl(t *TLS, x ulong) int32 { + return int32(mbits.OnesCount32(x)) +} + +// int __builtin_popcountll (unsigned long long) +func X__builtin_popcountll(t *TLS, x uint64) int32 { + return int32(mbits.OnesCount64(x)) +} diff --git a/vendor/modernc.org/libc/builtin64.go b/vendor/modernc.org/libc/builtin64.go new file mode 100644 index 000000000..ad9935aff --- /dev/null +++ b/vendor/modernc.org/libc/builtin64.go @@ -0,0 +1,29 @@ +// Copyright 2024 The Libc Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build linux && (amd64 || arm64 || loong64 || ppc64le || s390x || riscv64) + +package libc // import "modernc.org/libc" + +import ( + mbits "math/bits" +) + +func X__builtin_ctzl(tls *TLS, x ulong) int32 { + return int32(mbits.TrailingZeros64(x)) +} + +func X__builtin_clzl(t *TLS, n ulong) int32 { + return int32(mbits.LeadingZeros64(n)) +} + +// int __builtin_popcountl (unsigned long x) +func X__builtin_popcountl(t *TLS, x ulong) int32 { + return int32(mbits.OnesCount64(x)) +} + +// int __builtin_popcountll (unsigned long long) +func X__builtin_popcountll(t *TLS, x uint64) int32 { + return int32(mbits.OnesCount64(x)) +} diff --git a/vendor/modernc.org/libc/builtin_all.go b/vendor/modernc.org/libc/builtin_all.go new file mode 100644 index 000000000..fc1f45927 --- /dev/null +++ b/vendor/modernc.org/libc/builtin_all.go @@ -0,0 +1,13 @@ +// Copyright 2026 The Libc Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package libc // import "modernc.org/libc" + +import ( + mbits "math/bits" +) + +func X__builtin_ctzll(tls *TLS, x uint64) int32 { + return int32(mbits.TrailingZeros64(x)) +} diff --git a/vendor/modernc.org/libc/capi_darwin_amd64.go b/vendor/modernc.org/libc/capi_darwin_amd64.go index ab794096e..12cddf4b4 100644 --- a/vendor/modernc.org/libc/capi_darwin_amd64.go +++ b/vendor/modernc.org/libc/capi_darwin_amd64.go @@ -319,6 +319,7 @@ var CAPI = map[string]struct{}{ "localtime_r": {}, "log": {}, "log10": {}, + "log2": {}, "longjmp": {}, "lrand48": {}, "lseek": {}, diff --git a/vendor/modernc.org/libc/capi_darwin_arm64.go b/vendor/modernc.org/libc/capi_darwin_arm64.go index ab794096e..12cddf4b4 100644 --- a/vendor/modernc.org/libc/capi_darwin_arm64.go +++ b/vendor/modernc.org/libc/capi_darwin_arm64.go @@ -319,6 +319,7 @@ var CAPI = map[string]struct{}{ "localtime_r": {}, "log": {}, "log10": {}, + "log2": {}, "longjmp": {}, "lrand48": {}, "lseek": {}, diff --git a/vendor/modernc.org/libc/capi_freebsd_386.go b/vendor/modernc.org/libc/capi_freebsd_386.go index 006e0c718..49a67bff4 100644 --- a/vendor/modernc.org/libc/capi_freebsd_386.go +++ b/vendor/modernc.org/libc/capi_freebsd_386.go @@ -299,6 +299,7 @@ var CAPI = map[string]struct{}{ "localtime_r": {}, "log": {}, "log10": {}, + "log2": {}, "longjmp": {}, "lrand48": {}, "lseek": {}, @@ -342,6 +343,7 @@ var CAPI = map[string]struct{}{ "poll": {}, "popen": {}, "pow": {}, + "pread": {}, "printf": {}, "pselect": {}, "pthread_attr_destroy": {}, diff --git a/vendor/modernc.org/libc/capi_freebsd_amd64.go b/vendor/modernc.org/libc/capi_freebsd_amd64.go index 006e0c718..49a67bff4 100644 --- a/vendor/modernc.org/libc/capi_freebsd_amd64.go +++ b/vendor/modernc.org/libc/capi_freebsd_amd64.go @@ -299,6 +299,7 @@ var CAPI = map[string]struct{}{ "localtime_r": {}, "log": {}, "log10": {}, + "log2": {}, "longjmp": {}, "lrand48": {}, "lseek": {}, @@ -342,6 +343,7 @@ var CAPI = map[string]struct{}{ "poll": {}, "popen": {}, "pow": {}, + "pread": {}, "printf": {}, "pselect": {}, "pthread_attr_destroy": {}, diff --git a/vendor/modernc.org/libc/capi_freebsd_arm.go b/vendor/modernc.org/libc/capi_freebsd_arm.go index 006e0c718..49a67bff4 100644 --- a/vendor/modernc.org/libc/capi_freebsd_arm.go +++ b/vendor/modernc.org/libc/capi_freebsd_arm.go @@ -299,6 +299,7 @@ var CAPI = map[string]struct{}{ "localtime_r": {}, "log": {}, "log10": {}, + "log2": {}, "longjmp": {}, "lrand48": {}, "lseek": {}, @@ -342,6 +343,7 @@ var CAPI = map[string]struct{}{ "poll": {}, "popen": {}, "pow": {}, + "pread": {}, "printf": {}, "pselect": {}, "pthread_attr_destroy": {}, diff --git a/vendor/modernc.org/libc/capi_freebsd_arm64.go b/vendor/modernc.org/libc/capi_freebsd_arm64.go index 006e0c718..49a67bff4 100644 --- a/vendor/modernc.org/libc/capi_freebsd_arm64.go +++ b/vendor/modernc.org/libc/capi_freebsd_arm64.go @@ -299,6 +299,7 @@ var CAPI = map[string]struct{}{ "localtime_r": {}, "log": {}, "log10": {}, + "log2": {}, "longjmp": {}, "lrand48": {}, "lseek": {}, @@ -342,6 +343,7 @@ var CAPI = map[string]struct{}{ "poll": {}, "popen": {}, "pow": {}, + "pread": {}, "printf": {}, "pselect": {}, "pthread_attr_destroy": {}, diff --git a/vendor/modernc.org/libc/capi_illumos_amd64.go b/vendor/modernc.org/libc/capi_illumos_amd64.go new file mode 100644 index 000000000..c1ae9d026 --- /dev/null +++ b/vendor/modernc.org/libc/capi_illumos_amd64.go @@ -0,0 +1,528 @@ +// Code generated by 'go generate' - DO NOT EDIT. + +package libc // import "modernc.org/libc" + +var CAPI = map[string]struct{}{ + "_IO_putc": {}, + "___errno_location": {}, + "__assert_fail": {}, + "__builtin___memcpy_chk": {}, + "__builtin___memmove_chk": {}, + "__builtin___memset_chk": {}, + "__builtin___snprintf_chk": {}, + "__builtin___sprintf_chk": {}, + "__builtin___strcat_chk": {}, + "__builtin___strcpy_chk": {}, + "__builtin___strncpy_chk": {}, + "__builtin___vsnprintf_chk": {}, + "__builtin_abort": {}, + "__builtin_abs": {}, + "__builtin_add_overflowInt64": {}, + "__builtin_add_overflowUint32": {}, + "__builtin_add_overflowUint64": {}, + "__builtin_bswap16": {}, + "__builtin_bswap32": {}, + "__builtin_bswap64": {}, + "__builtin_bzero": {}, + "__builtin_clz": {}, + "__builtin_clzl": {}, + "__builtin_clzll": {}, + "__builtin_constant_p_impl": {}, + "__builtin_copysign": {}, + "__builtin_copysignf": {}, + "__builtin_copysignl": {}, + "__builtin_exit": {}, + "__builtin_expect": {}, + "__builtin_fabs": {}, + "__builtin_fabsf": {}, + "__builtin_fabsl": {}, + "__builtin_free": {}, + "__builtin_getentropy": {}, + "__builtin_huge_val": {}, + "__builtin_huge_valf": {}, + "__builtin_inf": {}, + "__builtin_inff": {}, + "__builtin_infl": {}, + "__builtin_isnan": {}, + "__builtin_isunordered": {}, + "__builtin_llabs": {}, + "__builtin_malloc": {}, + "__builtin_memcmp": {}, + "__builtin_memcpy": {}, + "__builtin_memset": {}, + "__builtin_mmap": {}, + "__builtin_mul_overflowInt64": {}, + "__builtin_mul_overflowUint128": {}, + "__builtin_mul_overflowUint64": {}, + "__builtin_nan": {}, + "__builtin_nanf": {}, + "__builtin_nanl": {}, + "__builtin_object_size": {}, + "__builtin_popcount": {}, + "__builtin_popcountl": {}, + "__builtin_prefetch": {}, + "__builtin_printf": {}, + "__builtin_snprintf": {}, + "__builtin_sprintf": {}, + "__builtin_strchr": {}, + "__builtin_strcmp": {}, + "__builtin_strcpy": {}, + "__builtin_strlen": {}, + "__builtin_sub_overflowInt64": {}, + "__builtin_trap": {}, + "__builtin_unreachable": {}, + "__ccgo_dmesg": {}, + "__ccgo_getMutexType": {}, + "__ccgo_in6addr_anyp": {}, + "__ccgo_pthreadAttrGetDetachState": {}, + "__ccgo_pthreadMutexattrGettype": {}, + "__ccgo_sqlite3_log": {}, + "__cmsg_nxthdr": {}, + "__ctype_b_loc": {}, + "__ctype_get_mb_cur_max": {}, + "__errno_location": {}, + "__floatscan": {}, + "__fpclassify": {}, + "__fpclassifyf": {}, + "__fpclassifyl": {}, + "__fsmu8": {}, + "__h_errno_location": {}, + "__inet_aton": {}, + "__intscan": {}, + "__isalnum_l": {}, + "__isalpha_l": {}, + "__isdigit_l": {}, + "__islower_l": {}, + "__isnan": {}, + "__isnanf": {}, + "__isnanl": {}, + "__isoc99_sscanf": {}, + "__isprint_l": {}, + "__isupper_l": {}, + "__isxdigit_l": {}, + "__lockfile": {}, + "__lookup_ipliteral": {}, + "__lookup_name": {}, + "__lookup_serv": {}, + "__shgetc": {}, + "__shlim": {}, + "__strncasecmp_l": {}, + "__sync_add_and_fetch_uint32": {}, + "__sync_sub_and_fetch_uint32": {}, + "__syscall1": {}, + "__syscall3": {}, + "__syscall4": {}, + "__toread": {}, + "__toread_needs_stdio_exit": {}, + "__uflow": {}, + "__unlockfile": {}, + "_exit": {}, + "_longjmp": {}, + "_obstack_begin": {}, + "_obstack_newchunk": {}, + "_setjmp": {}, + "abort": {}, + "abs": {}, + "accept": {}, + "access": {}, + "acos": {}, + "acosh": {}, + "alarm": {}, + "asin": {}, + "asinh": {}, + "atan": {}, + "atan2": {}, + "atanh": {}, + "atexit": {}, + "atof": {}, + "atoi": {}, + "atol": {}, + "backtrace": {}, + "backtrace_symbols_fd": {}, + "bind": {}, + "bsearch": {}, + "bzero": {}, + "calloc": {}, + "ceil": {}, + "ceilf": {}, + "cfgetospeed": {}, + "cfsetispeed": {}, + "cfsetospeed": {}, + "chdir": {}, + "chmod": {}, + "chown": {}, + "clock_gettime": {}, + "close": {}, + "closedir": {}, + "confstr": {}, + "connect": {}, + "copysign": {}, + "copysignf": {}, + "copysignl": {}, + "cos": {}, + "cosf": {}, + "cosh": {}, + "ctime": {}, + "ctime_r": {}, + "dlclose": {}, + "dlerror": {}, + "dlopen": {}, + "dlsym": {}, + "dup2": {}, + "dup3": {}, + "endpwent": {}, + "environ": {}, + "execvp": {}, + "exit": {}, + "exp": {}, + "fabs": {}, + "fabsf": {}, + "fabsl": {}, + "faccessat": {}, + "fchmod": {}, + "fchmodat": {}, + "fchown": {}, + "fchownat": {}, + "fclose": {}, + "fcntl": {}, + "fcntl64": {}, + "fdopen": {}, + "ferror": {}, + "fflush": {}, + "fgetc": {}, + "fgets": {}, + "fileno": {}, + "floor": {}, + "fmod": {}, + "fmodl": {}, + "fopen": {}, + "fopen64": {}, + "fork": {}, + "fprintf": {}, + "fputc": {}, + "fputs": {}, + "fread": {}, + "free": {}, + "freeaddrinfo": {}, + "frexp": {}, + "fscanf": {}, + "fseek": {}, + "fstat": {}, + "fstat64": {}, + "fstatfs": {}, + "fsync": {}, + "ftell": {}, + "ftruncate": {}, + "ftruncate64": {}, + "fts64_close": {}, + "fts64_open": {}, + "fts64_read": {}, + "fts_close": {}, + "fts_open": {}, + "fts_read": {}, + "fwrite": {}, + "gai_strerror": {}, + "getaddrinfo": {}, + "getc": {}, + "getcwd": {}, + "getegid": {}, + "getentropy": {}, + "getenv": {}, + "geteuid": {}, + "getgid": {}, + "getgrgid": {}, + "getgrgid_r": {}, + "getgrnam": {}, + "getgrnam_r": {}, + "gethostbyaddr": {}, + "gethostbyaddr_r": {}, + "gethostbyname": {}, + "gethostbyname2": {}, + "gethostbyname2_r": {}, + "gethostbyname_r": {}, + "gethostname": {}, + "getnameinfo": {}, + "getpeername": {}, + "getpid": {}, + "getpwnam": {}, + "getpwnam_r": {}, + "getpwuid": {}, + "getpwuid_r": {}, + "getrandom": {}, + "getresgid": {}, + "getresuid": {}, + "getrlimit": {}, + "getrlimit64": {}, + "getrusage": {}, + "getservbyname": {}, + "getsockname": {}, + "getsockopt": {}, + "gettimeofday": {}, + "getuid": {}, + "gmtime_r": {}, + "h_errno": {}, + "htonl": {}, + "htons": {}, + "hypot": {}, + "inet_ntoa": {}, + "inet_ntop": {}, + "inet_pton": {}, + "initstate": {}, + "initstate_r": {}, + "ioctl": {}, + "isalnum": {}, + "isalpha": {}, + "isascii": {}, + "isatty": {}, + "isdigit": {}, + "islower": {}, + "isnan": {}, + "isnanf": {}, + "isnanl": {}, + "isprint": {}, + "isupper": {}, + "iswalnum": {}, + "iswspace": {}, + "isxdigit": {}, + "kill": {}, + "ldexp": {}, + "link": {}, + "linkat": {}, + "listen": {}, + "llabs": {}, + "localeconv": {}, + "localtime": {}, + "localtime_r": {}, + "log": {}, + "log10": {}, + "log2": {}, + "longjmp": {}, + "lrand48": {}, + "lseek": {}, + "lseek64": {}, + "lstat": {}, + "lstat64": {}, + "malloc": {}, + "mblen": {}, + "mbrtowc": {}, + "mbsinit": {}, + "mbstowcs": {}, + "mbtowc": {}, + "memchr": {}, + "memcmp": {}, + "memcpy": {}, + "memmove": {}, + "memset": {}, + "mkdir": {}, + "mkdirat": {}, + "mkfifo": {}, + "mknod": {}, + "mknodat": {}, + "mkostemp": {}, + "mkstemp": {}, + "mkstemp64": {}, + "mkstemps": {}, + "mkstemps64": {}, + "mktime": {}, + "mmap": {}, + "mmap64": {}, + "modf": {}, + "mremap": {}, + "munmap": {}, + "nanf": {}, + "nanosleep": {}, + "nl_langinfo": {}, + "ntohs": {}, + "obstack_free": {}, + "obstack_vprintf": {}, + "open": {}, + "open64": {}, + "openat": {}, + "opendir": {}, + "openpty": {}, + "pathconf": {}, + "pause": {}, + "pclose": {}, + "perror": {}, + "pipe": {}, + "pipe2": {}, + "poll": {}, + "popen": {}, + "posix_fadvise": {}, + "pow": {}, + "pread": {}, + "printf": {}, + "pselect": {}, + "pthread_attr_destroy": {}, + "pthread_attr_getdetachstate": {}, + "pthread_attr_init": {}, + "pthread_attr_setdetachstate": {}, + "pthread_attr_setscope": {}, + "pthread_attr_setstacksize": {}, + "pthread_cond_broadcast": {}, + "pthread_cond_destroy": {}, + "pthread_cond_init": {}, + "pthread_cond_signal": {}, + "pthread_cond_timedwait": {}, + "pthread_cond_wait": {}, + "pthread_create": {}, + "pthread_detach": {}, + "pthread_equal": {}, + "pthread_exit": {}, + "pthread_getspecific": {}, + "pthread_join": {}, + "pthread_key_create": {}, + "pthread_key_delete": {}, + "pthread_mutex_destroy": {}, + "pthread_mutex_init": {}, + "pthread_mutex_lock": {}, + "pthread_mutex_trylock": {}, + "pthread_mutex_unlock": {}, + "pthread_mutexattr_destroy": {}, + "pthread_mutexattr_init": {}, + "pthread_mutexattr_settype": {}, + "pthread_self": {}, + "pthread_setspecific": {}, + "putc": {}, + "putchar": {}, + "puts": {}, + "pwrite": {}, + "qsort": {}, + "raise": {}, + "rand": {}, + "rand_r": {}, + "random": {}, + "random_r": {}, + "read": {}, + "readdir": {}, + "readdir64": {}, + "readlink": {}, + "readlinkat": {}, + "readv": {}, + "realloc": {}, + "reallocarray": {}, + "realpath": {}, + "recv": {}, + "recvfrom": {}, + "recvmsg": {}, + "remove": {}, + "rename": {}, + "renameat2": {}, + "rewind": {}, + "rindex": {}, + "rint": {}, + "rmdir": {}, + "round": {}, + "scalbn": {}, + "scalbnl": {}, + "sched_yield": {}, + "select": {}, + "send": {}, + "sendmsg": {}, + "sendto": {}, + "setbuf": {}, + "setenv": {}, + "setjmp": {}, + "setlocale": {}, + "setrlimit": {}, + "setrlimit64": {}, + "setsid": {}, + "setsockopt": {}, + "setstate": {}, + "setvbuf": {}, + "shmat": {}, + "shmctl": {}, + "shmdt": {}, + "shutdown": {}, + "sigaction": {}, + "signal": {}, + "sin": {}, + "sinf": {}, + "sinh": {}, + "sleep": {}, + "snprintf": {}, + "socket": {}, + "sprintf": {}, + "sqrt": {}, + "srand48": {}, + "sscanf": {}, + "stat": {}, + "stat64": {}, + "stderr": {}, + "stdin": {}, + "stdout": {}, + "strcasecmp": {}, + "strcat": {}, + "strchr": {}, + "strcmp": {}, + "strcpy": {}, + "strcspn": {}, + "strdup": {}, + "strerror": {}, + "strerror_r": {}, + "strlcat": {}, + "strlcpy": {}, + "strlen": {}, + "strncasecmp": {}, + "strncat": {}, + "strncmp": {}, + "strncpy": {}, + "strnlen": {}, + "strpbrk": {}, + "strrchr": {}, + "strspn": {}, + "strstr": {}, + "strtod": {}, + "strtof": {}, + "strtoimax": {}, + "strtok": {}, + "strtol": {}, + "strtold": {}, + "strtoll": {}, + "strtoul": {}, + "strtoull": {}, + "strtoumax": {}, + "symlink": {}, + "symlinkat": {}, + "sysconf": {}, + "system": {}, + "tan": {}, + "tanh": {}, + "tcgetattr": {}, + "tcsendbreak": {}, + "tcsetattr": {}, + "time": {}, + "tmpfile": {}, + "tolower": {}, + "toupper": {}, + "trunc": {}, + "tzset": {}, + "umask": {}, + "uname": {}, + "ungetc": {}, + "unlink": {}, + "unlinkat": {}, + "unsetenv": {}, + "usleep": {}, + "utime": {}, + "utimensat": {}, + "utimes": {}, + "uuid_copy": {}, + "uuid_generate_random": {}, + "uuid_parse": {}, + "uuid_unparse": {}, + "vasprintf": {}, + "vfprintf": {}, + "vfscanf": {}, + "vprintf": {}, + "vsnprintf": {}, + "vsprintf": {}, + "vsscanf": {}, + "waitpid": {}, + "wcschr": {}, + "wctomb": {}, + "wcwidth": {}, + "write": {}, + "writev": {}, + "zero_struct_address": {}, +} diff --git a/vendor/modernc.org/libc/capi_linux_386.go b/vendor/modernc.org/libc/capi_linux_386.go index 7ec37f1d8..98263426f 100644 --- a/vendor/modernc.org/libc/capi_linux_386.go +++ b/vendor/modernc.org/libc/capi_linux_386.go @@ -288,6 +288,7 @@ var CAPI = map[string]struct{}{ "localtime_r": {}, "log": {}, "log10": {}, + "log2": {}, "longjmp": {}, "lrand48": {}, "lseek": {}, @@ -320,6 +321,7 @@ var CAPI = map[string]struct{}{ "mremap": {}, "munmap": {}, "nanf": {}, + "nanosleep": {}, "nl_langinfo": {}, "ntohs": {}, "obstack_free": {}, @@ -337,6 +339,7 @@ var CAPI = map[string]struct{}{ "popen": {}, "posix_fadvise": {}, "pow": {}, + "pread": {}, "printf": {}, "pselect": {}, "pthread_attr_destroy": {}, diff --git a/vendor/modernc.org/libc/capi_linux_amd64.go b/vendor/modernc.org/libc/capi_linux_amd64.go index b5b366318..c1ae9d026 100644 --- a/vendor/modernc.org/libc/capi_linux_amd64.go +++ b/vendor/modernc.org/libc/capi_linux_amd64.go @@ -295,6 +295,7 @@ var CAPI = map[string]struct{}{ "localtime_r": {}, "log": {}, "log10": {}, + "log2": {}, "longjmp": {}, "lrand48": {}, "lseek": {}, @@ -329,6 +330,7 @@ var CAPI = map[string]struct{}{ "mremap": {}, "munmap": {}, "nanf": {}, + "nanosleep": {}, "nl_langinfo": {}, "ntohs": {}, "obstack_free": {}, @@ -348,6 +350,7 @@ var CAPI = map[string]struct{}{ "popen": {}, "posix_fadvise": {}, "pow": {}, + "pread": {}, "printf": {}, "pselect": {}, "pthread_attr_destroy": {}, diff --git a/vendor/modernc.org/libc/capi_linux_arm.go b/vendor/modernc.org/libc/capi_linux_arm.go index 7ec37f1d8..98263426f 100644 --- a/vendor/modernc.org/libc/capi_linux_arm.go +++ b/vendor/modernc.org/libc/capi_linux_arm.go @@ -288,6 +288,7 @@ var CAPI = map[string]struct{}{ "localtime_r": {}, "log": {}, "log10": {}, + "log2": {}, "longjmp": {}, "lrand48": {}, "lseek": {}, @@ -320,6 +321,7 @@ var CAPI = map[string]struct{}{ "mremap": {}, "munmap": {}, "nanf": {}, + "nanosleep": {}, "nl_langinfo": {}, "ntohs": {}, "obstack_free": {}, @@ -337,6 +339,7 @@ var CAPI = map[string]struct{}{ "popen": {}, "posix_fadvise": {}, "pow": {}, + "pread": {}, "printf": {}, "pselect": {}, "pthread_attr_destroy": {}, diff --git a/vendor/modernc.org/libc/capi_linux_arm64.go b/vendor/modernc.org/libc/capi_linux_arm64.go index 7ec37f1d8..98263426f 100644 --- a/vendor/modernc.org/libc/capi_linux_arm64.go +++ b/vendor/modernc.org/libc/capi_linux_arm64.go @@ -288,6 +288,7 @@ var CAPI = map[string]struct{}{ "localtime_r": {}, "log": {}, "log10": {}, + "log2": {}, "longjmp": {}, "lrand48": {}, "lseek": {}, @@ -320,6 +321,7 @@ var CAPI = map[string]struct{}{ "mremap": {}, "munmap": {}, "nanf": {}, + "nanosleep": {}, "nl_langinfo": {}, "ntohs": {}, "obstack_free": {}, @@ -337,6 +339,7 @@ var CAPI = map[string]struct{}{ "popen": {}, "posix_fadvise": {}, "pow": {}, + "pread": {}, "printf": {}, "pselect": {}, "pthread_attr_destroy": {}, diff --git a/vendor/modernc.org/libc/capi_linux_loong64.go b/vendor/modernc.org/libc/capi_linux_loong64.go new file mode 100644 index 000000000..c1ae9d026 --- /dev/null +++ b/vendor/modernc.org/libc/capi_linux_loong64.go @@ -0,0 +1,528 @@ +// Code generated by 'go generate' - DO NOT EDIT. + +package libc // import "modernc.org/libc" + +var CAPI = map[string]struct{}{ + "_IO_putc": {}, + "___errno_location": {}, + "__assert_fail": {}, + "__builtin___memcpy_chk": {}, + "__builtin___memmove_chk": {}, + "__builtin___memset_chk": {}, + "__builtin___snprintf_chk": {}, + "__builtin___sprintf_chk": {}, + "__builtin___strcat_chk": {}, + "__builtin___strcpy_chk": {}, + "__builtin___strncpy_chk": {}, + "__builtin___vsnprintf_chk": {}, + "__builtin_abort": {}, + "__builtin_abs": {}, + "__builtin_add_overflowInt64": {}, + "__builtin_add_overflowUint32": {}, + "__builtin_add_overflowUint64": {}, + "__builtin_bswap16": {}, + "__builtin_bswap32": {}, + "__builtin_bswap64": {}, + "__builtin_bzero": {}, + "__builtin_clz": {}, + "__builtin_clzl": {}, + "__builtin_clzll": {}, + "__builtin_constant_p_impl": {}, + "__builtin_copysign": {}, + "__builtin_copysignf": {}, + "__builtin_copysignl": {}, + "__builtin_exit": {}, + "__builtin_expect": {}, + "__builtin_fabs": {}, + "__builtin_fabsf": {}, + "__builtin_fabsl": {}, + "__builtin_free": {}, + "__builtin_getentropy": {}, + "__builtin_huge_val": {}, + "__builtin_huge_valf": {}, + "__builtin_inf": {}, + "__builtin_inff": {}, + "__builtin_infl": {}, + "__builtin_isnan": {}, + "__builtin_isunordered": {}, + "__builtin_llabs": {}, + "__builtin_malloc": {}, + "__builtin_memcmp": {}, + "__builtin_memcpy": {}, + "__builtin_memset": {}, + "__builtin_mmap": {}, + "__builtin_mul_overflowInt64": {}, + "__builtin_mul_overflowUint128": {}, + "__builtin_mul_overflowUint64": {}, + "__builtin_nan": {}, + "__builtin_nanf": {}, + "__builtin_nanl": {}, + "__builtin_object_size": {}, + "__builtin_popcount": {}, + "__builtin_popcountl": {}, + "__builtin_prefetch": {}, + "__builtin_printf": {}, + "__builtin_snprintf": {}, + "__builtin_sprintf": {}, + "__builtin_strchr": {}, + "__builtin_strcmp": {}, + "__builtin_strcpy": {}, + "__builtin_strlen": {}, + "__builtin_sub_overflowInt64": {}, + "__builtin_trap": {}, + "__builtin_unreachable": {}, + "__ccgo_dmesg": {}, + "__ccgo_getMutexType": {}, + "__ccgo_in6addr_anyp": {}, + "__ccgo_pthreadAttrGetDetachState": {}, + "__ccgo_pthreadMutexattrGettype": {}, + "__ccgo_sqlite3_log": {}, + "__cmsg_nxthdr": {}, + "__ctype_b_loc": {}, + "__ctype_get_mb_cur_max": {}, + "__errno_location": {}, + "__floatscan": {}, + "__fpclassify": {}, + "__fpclassifyf": {}, + "__fpclassifyl": {}, + "__fsmu8": {}, + "__h_errno_location": {}, + "__inet_aton": {}, + "__intscan": {}, + "__isalnum_l": {}, + "__isalpha_l": {}, + "__isdigit_l": {}, + "__islower_l": {}, + "__isnan": {}, + "__isnanf": {}, + "__isnanl": {}, + "__isoc99_sscanf": {}, + "__isprint_l": {}, + "__isupper_l": {}, + "__isxdigit_l": {}, + "__lockfile": {}, + "__lookup_ipliteral": {}, + "__lookup_name": {}, + "__lookup_serv": {}, + "__shgetc": {}, + "__shlim": {}, + "__strncasecmp_l": {}, + "__sync_add_and_fetch_uint32": {}, + "__sync_sub_and_fetch_uint32": {}, + "__syscall1": {}, + "__syscall3": {}, + "__syscall4": {}, + "__toread": {}, + "__toread_needs_stdio_exit": {}, + "__uflow": {}, + "__unlockfile": {}, + "_exit": {}, + "_longjmp": {}, + "_obstack_begin": {}, + "_obstack_newchunk": {}, + "_setjmp": {}, + "abort": {}, + "abs": {}, + "accept": {}, + "access": {}, + "acos": {}, + "acosh": {}, + "alarm": {}, + "asin": {}, + "asinh": {}, + "atan": {}, + "atan2": {}, + "atanh": {}, + "atexit": {}, + "atof": {}, + "atoi": {}, + "atol": {}, + "backtrace": {}, + "backtrace_symbols_fd": {}, + "bind": {}, + "bsearch": {}, + "bzero": {}, + "calloc": {}, + "ceil": {}, + "ceilf": {}, + "cfgetospeed": {}, + "cfsetispeed": {}, + "cfsetospeed": {}, + "chdir": {}, + "chmod": {}, + "chown": {}, + "clock_gettime": {}, + "close": {}, + "closedir": {}, + "confstr": {}, + "connect": {}, + "copysign": {}, + "copysignf": {}, + "copysignl": {}, + "cos": {}, + "cosf": {}, + "cosh": {}, + "ctime": {}, + "ctime_r": {}, + "dlclose": {}, + "dlerror": {}, + "dlopen": {}, + "dlsym": {}, + "dup2": {}, + "dup3": {}, + "endpwent": {}, + "environ": {}, + "execvp": {}, + "exit": {}, + "exp": {}, + "fabs": {}, + "fabsf": {}, + "fabsl": {}, + "faccessat": {}, + "fchmod": {}, + "fchmodat": {}, + "fchown": {}, + "fchownat": {}, + "fclose": {}, + "fcntl": {}, + "fcntl64": {}, + "fdopen": {}, + "ferror": {}, + "fflush": {}, + "fgetc": {}, + "fgets": {}, + "fileno": {}, + "floor": {}, + "fmod": {}, + "fmodl": {}, + "fopen": {}, + "fopen64": {}, + "fork": {}, + "fprintf": {}, + "fputc": {}, + "fputs": {}, + "fread": {}, + "free": {}, + "freeaddrinfo": {}, + "frexp": {}, + "fscanf": {}, + "fseek": {}, + "fstat": {}, + "fstat64": {}, + "fstatfs": {}, + "fsync": {}, + "ftell": {}, + "ftruncate": {}, + "ftruncate64": {}, + "fts64_close": {}, + "fts64_open": {}, + "fts64_read": {}, + "fts_close": {}, + "fts_open": {}, + "fts_read": {}, + "fwrite": {}, + "gai_strerror": {}, + "getaddrinfo": {}, + "getc": {}, + "getcwd": {}, + "getegid": {}, + "getentropy": {}, + "getenv": {}, + "geteuid": {}, + "getgid": {}, + "getgrgid": {}, + "getgrgid_r": {}, + "getgrnam": {}, + "getgrnam_r": {}, + "gethostbyaddr": {}, + "gethostbyaddr_r": {}, + "gethostbyname": {}, + "gethostbyname2": {}, + "gethostbyname2_r": {}, + "gethostbyname_r": {}, + "gethostname": {}, + "getnameinfo": {}, + "getpeername": {}, + "getpid": {}, + "getpwnam": {}, + "getpwnam_r": {}, + "getpwuid": {}, + "getpwuid_r": {}, + "getrandom": {}, + "getresgid": {}, + "getresuid": {}, + "getrlimit": {}, + "getrlimit64": {}, + "getrusage": {}, + "getservbyname": {}, + "getsockname": {}, + "getsockopt": {}, + "gettimeofday": {}, + "getuid": {}, + "gmtime_r": {}, + "h_errno": {}, + "htonl": {}, + "htons": {}, + "hypot": {}, + "inet_ntoa": {}, + "inet_ntop": {}, + "inet_pton": {}, + "initstate": {}, + "initstate_r": {}, + "ioctl": {}, + "isalnum": {}, + "isalpha": {}, + "isascii": {}, + "isatty": {}, + "isdigit": {}, + "islower": {}, + "isnan": {}, + "isnanf": {}, + "isnanl": {}, + "isprint": {}, + "isupper": {}, + "iswalnum": {}, + "iswspace": {}, + "isxdigit": {}, + "kill": {}, + "ldexp": {}, + "link": {}, + "linkat": {}, + "listen": {}, + "llabs": {}, + "localeconv": {}, + "localtime": {}, + "localtime_r": {}, + "log": {}, + "log10": {}, + "log2": {}, + "longjmp": {}, + "lrand48": {}, + "lseek": {}, + "lseek64": {}, + "lstat": {}, + "lstat64": {}, + "malloc": {}, + "mblen": {}, + "mbrtowc": {}, + "mbsinit": {}, + "mbstowcs": {}, + "mbtowc": {}, + "memchr": {}, + "memcmp": {}, + "memcpy": {}, + "memmove": {}, + "memset": {}, + "mkdir": {}, + "mkdirat": {}, + "mkfifo": {}, + "mknod": {}, + "mknodat": {}, + "mkostemp": {}, + "mkstemp": {}, + "mkstemp64": {}, + "mkstemps": {}, + "mkstemps64": {}, + "mktime": {}, + "mmap": {}, + "mmap64": {}, + "modf": {}, + "mremap": {}, + "munmap": {}, + "nanf": {}, + "nanosleep": {}, + "nl_langinfo": {}, + "ntohs": {}, + "obstack_free": {}, + "obstack_vprintf": {}, + "open": {}, + "open64": {}, + "openat": {}, + "opendir": {}, + "openpty": {}, + "pathconf": {}, + "pause": {}, + "pclose": {}, + "perror": {}, + "pipe": {}, + "pipe2": {}, + "poll": {}, + "popen": {}, + "posix_fadvise": {}, + "pow": {}, + "pread": {}, + "printf": {}, + "pselect": {}, + "pthread_attr_destroy": {}, + "pthread_attr_getdetachstate": {}, + "pthread_attr_init": {}, + "pthread_attr_setdetachstate": {}, + "pthread_attr_setscope": {}, + "pthread_attr_setstacksize": {}, + "pthread_cond_broadcast": {}, + "pthread_cond_destroy": {}, + "pthread_cond_init": {}, + "pthread_cond_signal": {}, + "pthread_cond_timedwait": {}, + "pthread_cond_wait": {}, + "pthread_create": {}, + "pthread_detach": {}, + "pthread_equal": {}, + "pthread_exit": {}, + "pthread_getspecific": {}, + "pthread_join": {}, + "pthread_key_create": {}, + "pthread_key_delete": {}, + "pthread_mutex_destroy": {}, + "pthread_mutex_init": {}, + "pthread_mutex_lock": {}, + "pthread_mutex_trylock": {}, + "pthread_mutex_unlock": {}, + "pthread_mutexattr_destroy": {}, + "pthread_mutexattr_init": {}, + "pthread_mutexattr_settype": {}, + "pthread_self": {}, + "pthread_setspecific": {}, + "putc": {}, + "putchar": {}, + "puts": {}, + "pwrite": {}, + "qsort": {}, + "raise": {}, + "rand": {}, + "rand_r": {}, + "random": {}, + "random_r": {}, + "read": {}, + "readdir": {}, + "readdir64": {}, + "readlink": {}, + "readlinkat": {}, + "readv": {}, + "realloc": {}, + "reallocarray": {}, + "realpath": {}, + "recv": {}, + "recvfrom": {}, + "recvmsg": {}, + "remove": {}, + "rename": {}, + "renameat2": {}, + "rewind": {}, + "rindex": {}, + "rint": {}, + "rmdir": {}, + "round": {}, + "scalbn": {}, + "scalbnl": {}, + "sched_yield": {}, + "select": {}, + "send": {}, + "sendmsg": {}, + "sendto": {}, + "setbuf": {}, + "setenv": {}, + "setjmp": {}, + "setlocale": {}, + "setrlimit": {}, + "setrlimit64": {}, + "setsid": {}, + "setsockopt": {}, + "setstate": {}, + "setvbuf": {}, + "shmat": {}, + "shmctl": {}, + "shmdt": {}, + "shutdown": {}, + "sigaction": {}, + "signal": {}, + "sin": {}, + "sinf": {}, + "sinh": {}, + "sleep": {}, + "snprintf": {}, + "socket": {}, + "sprintf": {}, + "sqrt": {}, + "srand48": {}, + "sscanf": {}, + "stat": {}, + "stat64": {}, + "stderr": {}, + "stdin": {}, + "stdout": {}, + "strcasecmp": {}, + "strcat": {}, + "strchr": {}, + "strcmp": {}, + "strcpy": {}, + "strcspn": {}, + "strdup": {}, + "strerror": {}, + "strerror_r": {}, + "strlcat": {}, + "strlcpy": {}, + "strlen": {}, + "strncasecmp": {}, + "strncat": {}, + "strncmp": {}, + "strncpy": {}, + "strnlen": {}, + "strpbrk": {}, + "strrchr": {}, + "strspn": {}, + "strstr": {}, + "strtod": {}, + "strtof": {}, + "strtoimax": {}, + "strtok": {}, + "strtol": {}, + "strtold": {}, + "strtoll": {}, + "strtoul": {}, + "strtoull": {}, + "strtoumax": {}, + "symlink": {}, + "symlinkat": {}, + "sysconf": {}, + "system": {}, + "tan": {}, + "tanh": {}, + "tcgetattr": {}, + "tcsendbreak": {}, + "tcsetattr": {}, + "time": {}, + "tmpfile": {}, + "tolower": {}, + "toupper": {}, + "trunc": {}, + "tzset": {}, + "umask": {}, + "uname": {}, + "ungetc": {}, + "unlink": {}, + "unlinkat": {}, + "unsetenv": {}, + "usleep": {}, + "utime": {}, + "utimensat": {}, + "utimes": {}, + "uuid_copy": {}, + "uuid_generate_random": {}, + "uuid_parse": {}, + "uuid_unparse": {}, + "vasprintf": {}, + "vfprintf": {}, + "vfscanf": {}, + "vprintf": {}, + "vsnprintf": {}, + "vsprintf": {}, + "vsscanf": {}, + "waitpid": {}, + "wcschr": {}, + "wctomb": {}, + "wcwidth": {}, + "write": {}, + "writev": {}, + "zero_struct_address": {}, +} diff --git a/vendor/modernc.org/libc/capi_linux_mips64le.go b/vendor/modernc.org/libc/capi_linux_mips64le.go new file mode 100644 index 000000000..c1ae9d026 --- /dev/null +++ b/vendor/modernc.org/libc/capi_linux_mips64le.go @@ -0,0 +1,528 @@ +// Code generated by 'go generate' - DO NOT EDIT. + +package libc // import "modernc.org/libc" + +var CAPI = map[string]struct{}{ + "_IO_putc": {}, + "___errno_location": {}, + "__assert_fail": {}, + "__builtin___memcpy_chk": {}, + "__builtin___memmove_chk": {}, + "__builtin___memset_chk": {}, + "__builtin___snprintf_chk": {}, + "__builtin___sprintf_chk": {}, + "__builtin___strcat_chk": {}, + "__builtin___strcpy_chk": {}, + "__builtin___strncpy_chk": {}, + "__builtin___vsnprintf_chk": {}, + "__builtin_abort": {}, + "__builtin_abs": {}, + "__builtin_add_overflowInt64": {}, + "__builtin_add_overflowUint32": {}, + "__builtin_add_overflowUint64": {}, + "__builtin_bswap16": {}, + "__builtin_bswap32": {}, + "__builtin_bswap64": {}, + "__builtin_bzero": {}, + "__builtin_clz": {}, + "__builtin_clzl": {}, + "__builtin_clzll": {}, + "__builtin_constant_p_impl": {}, + "__builtin_copysign": {}, + "__builtin_copysignf": {}, + "__builtin_copysignl": {}, + "__builtin_exit": {}, + "__builtin_expect": {}, + "__builtin_fabs": {}, + "__builtin_fabsf": {}, + "__builtin_fabsl": {}, + "__builtin_free": {}, + "__builtin_getentropy": {}, + "__builtin_huge_val": {}, + "__builtin_huge_valf": {}, + "__builtin_inf": {}, + "__builtin_inff": {}, + "__builtin_infl": {}, + "__builtin_isnan": {}, + "__builtin_isunordered": {}, + "__builtin_llabs": {}, + "__builtin_malloc": {}, + "__builtin_memcmp": {}, + "__builtin_memcpy": {}, + "__builtin_memset": {}, + "__builtin_mmap": {}, + "__builtin_mul_overflowInt64": {}, + "__builtin_mul_overflowUint128": {}, + "__builtin_mul_overflowUint64": {}, + "__builtin_nan": {}, + "__builtin_nanf": {}, + "__builtin_nanl": {}, + "__builtin_object_size": {}, + "__builtin_popcount": {}, + "__builtin_popcountl": {}, + "__builtin_prefetch": {}, + "__builtin_printf": {}, + "__builtin_snprintf": {}, + "__builtin_sprintf": {}, + "__builtin_strchr": {}, + "__builtin_strcmp": {}, + "__builtin_strcpy": {}, + "__builtin_strlen": {}, + "__builtin_sub_overflowInt64": {}, + "__builtin_trap": {}, + "__builtin_unreachable": {}, + "__ccgo_dmesg": {}, + "__ccgo_getMutexType": {}, + "__ccgo_in6addr_anyp": {}, + "__ccgo_pthreadAttrGetDetachState": {}, + "__ccgo_pthreadMutexattrGettype": {}, + "__ccgo_sqlite3_log": {}, + "__cmsg_nxthdr": {}, + "__ctype_b_loc": {}, + "__ctype_get_mb_cur_max": {}, + "__errno_location": {}, + "__floatscan": {}, + "__fpclassify": {}, + "__fpclassifyf": {}, + "__fpclassifyl": {}, + "__fsmu8": {}, + "__h_errno_location": {}, + "__inet_aton": {}, + "__intscan": {}, + "__isalnum_l": {}, + "__isalpha_l": {}, + "__isdigit_l": {}, + "__islower_l": {}, + "__isnan": {}, + "__isnanf": {}, + "__isnanl": {}, + "__isoc99_sscanf": {}, + "__isprint_l": {}, + "__isupper_l": {}, + "__isxdigit_l": {}, + "__lockfile": {}, + "__lookup_ipliteral": {}, + "__lookup_name": {}, + "__lookup_serv": {}, + "__shgetc": {}, + "__shlim": {}, + "__strncasecmp_l": {}, + "__sync_add_and_fetch_uint32": {}, + "__sync_sub_and_fetch_uint32": {}, + "__syscall1": {}, + "__syscall3": {}, + "__syscall4": {}, + "__toread": {}, + "__toread_needs_stdio_exit": {}, + "__uflow": {}, + "__unlockfile": {}, + "_exit": {}, + "_longjmp": {}, + "_obstack_begin": {}, + "_obstack_newchunk": {}, + "_setjmp": {}, + "abort": {}, + "abs": {}, + "accept": {}, + "access": {}, + "acos": {}, + "acosh": {}, + "alarm": {}, + "asin": {}, + "asinh": {}, + "atan": {}, + "atan2": {}, + "atanh": {}, + "atexit": {}, + "atof": {}, + "atoi": {}, + "atol": {}, + "backtrace": {}, + "backtrace_symbols_fd": {}, + "bind": {}, + "bsearch": {}, + "bzero": {}, + "calloc": {}, + "ceil": {}, + "ceilf": {}, + "cfgetospeed": {}, + "cfsetispeed": {}, + "cfsetospeed": {}, + "chdir": {}, + "chmod": {}, + "chown": {}, + "clock_gettime": {}, + "close": {}, + "closedir": {}, + "confstr": {}, + "connect": {}, + "copysign": {}, + "copysignf": {}, + "copysignl": {}, + "cos": {}, + "cosf": {}, + "cosh": {}, + "ctime": {}, + "ctime_r": {}, + "dlclose": {}, + "dlerror": {}, + "dlopen": {}, + "dlsym": {}, + "dup2": {}, + "dup3": {}, + "endpwent": {}, + "environ": {}, + "execvp": {}, + "exit": {}, + "exp": {}, + "fabs": {}, + "fabsf": {}, + "fabsl": {}, + "faccessat": {}, + "fchmod": {}, + "fchmodat": {}, + "fchown": {}, + "fchownat": {}, + "fclose": {}, + "fcntl": {}, + "fcntl64": {}, + "fdopen": {}, + "ferror": {}, + "fflush": {}, + "fgetc": {}, + "fgets": {}, + "fileno": {}, + "floor": {}, + "fmod": {}, + "fmodl": {}, + "fopen": {}, + "fopen64": {}, + "fork": {}, + "fprintf": {}, + "fputc": {}, + "fputs": {}, + "fread": {}, + "free": {}, + "freeaddrinfo": {}, + "frexp": {}, + "fscanf": {}, + "fseek": {}, + "fstat": {}, + "fstat64": {}, + "fstatfs": {}, + "fsync": {}, + "ftell": {}, + "ftruncate": {}, + "ftruncate64": {}, + "fts64_close": {}, + "fts64_open": {}, + "fts64_read": {}, + "fts_close": {}, + "fts_open": {}, + "fts_read": {}, + "fwrite": {}, + "gai_strerror": {}, + "getaddrinfo": {}, + "getc": {}, + "getcwd": {}, + "getegid": {}, + "getentropy": {}, + "getenv": {}, + "geteuid": {}, + "getgid": {}, + "getgrgid": {}, + "getgrgid_r": {}, + "getgrnam": {}, + "getgrnam_r": {}, + "gethostbyaddr": {}, + "gethostbyaddr_r": {}, + "gethostbyname": {}, + "gethostbyname2": {}, + "gethostbyname2_r": {}, + "gethostbyname_r": {}, + "gethostname": {}, + "getnameinfo": {}, + "getpeername": {}, + "getpid": {}, + "getpwnam": {}, + "getpwnam_r": {}, + "getpwuid": {}, + "getpwuid_r": {}, + "getrandom": {}, + "getresgid": {}, + "getresuid": {}, + "getrlimit": {}, + "getrlimit64": {}, + "getrusage": {}, + "getservbyname": {}, + "getsockname": {}, + "getsockopt": {}, + "gettimeofday": {}, + "getuid": {}, + "gmtime_r": {}, + "h_errno": {}, + "htonl": {}, + "htons": {}, + "hypot": {}, + "inet_ntoa": {}, + "inet_ntop": {}, + "inet_pton": {}, + "initstate": {}, + "initstate_r": {}, + "ioctl": {}, + "isalnum": {}, + "isalpha": {}, + "isascii": {}, + "isatty": {}, + "isdigit": {}, + "islower": {}, + "isnan": {}, + "isnanf": {}, + "isnanl": {}, + "isprint": {}, + "isupper": {}, + "iswalnum": {}, + "iswspace": {}, + "isxdigit": {}, + "kill": {}, + "ldexp": {}, + "link": {}, + "linkat": {}, + "listen": {}, + "llabs": {}, + "localeconv": {}, + "localtime": {}, + "localtime_r": {}, + "log": {}, + "log10": {}, + "log2": {}, + "longjmp": {}, + "lrand48": {}, + "lseek": {}, + "lseek64": {}, + "lstat": {}, + "lstat64": {}, + "malloc": {}, + "mblen": {}, + "mbrtowc": {}, + "mbsinit": {}, + "mbstowcs": {}, + "mbtowc": {}, + "memchr": {}, + "memcmp": {}, + "memcpy": {}, + "memmove": {}, + "memset": {}, + "mkdir": {}, + "mkdirat": {}, + "mkfifo": {}, + "mknod": {}, + "mknodat": {}, + "mkostemp": {}, + "mkstemp": {}, + "mkstemp64": {}, + "mkstemps": {}, + "mkstemps64": {}, + "mktime": {}, + "mmap": {}, + "mmap64": {}, + "modf": {}, + "mremap": {}, + "munmap": {}, + "nanf": {}, + "nanosleep": {}, + "nl_langinfo": {}, + "ntohs": {}, + "obstack_free": {}, + "obstack_vprintf": {}, + "open": {}, + "open64": {}, + "openat": {}, + "opendir": {}, + "openpty": {}, + "pathconf": {}, + "pause": {}, + "pclose": {}, + "perror": {}, + "pipe": {}, + "pipe2": {}, + "poll": {}, + "popen": {}, + "posix_fadvise": {}, + "pow": {}, + "pread": {}, + "printf": {}, + "pselect": {}, + "pthread_attr_destroy": {}, + "pthread_attr_getdetachstate": {}, + "pthread_attr_init": {}, + "pthread_attr_setdetachstate": {}, + "pthread_attr_setscope": {}, + "pthread_attr_setstacksize": {}, + "pthread_cond_broadcast": {}, + "pthread_cond_destroy": {}, + "pthread_cond_init": {}, + "pthread_cond_signal": {}, + "pthread_cond_timedwait": {}, + "pthread_cond_wait": {}, + "pthread_create": {}, + "pthread_detach": {}, + "pthread_equal": {}, + "pthread_exit": {}, + "pthread_getspecific": {}, + "pthread_join": {}, + "pthread_key_create": {}, + "pthread_key_delete": {}, + "pthread_mutex_destroy": {}, + "pthread_mutex_init": {}, + "pthread_mutex_lock": {}, + "pthread_mutex_trylock": {}, + "pthread_mutex_unlock": {}, + "pthread_mutexattr_destroy": {}, + "pthread_mutexattr_init": {}, + "pthread_mutexattr_settype": {}, + "pthread_self": {}, + "pthread_setspecific": {}, + "putc": {}, + "putchar": {}, + "puts": {}, + "pwrite": {}, + "qsort": {}, + "raise": {}, + "rand": {}, + "rand_r": {}, + "random": {}, + "random_r": {}, + "read": {}, + "readdir": {}, + "readdir64": {}, + "readlink": {}, + "readlinkat": {}, + "readv": {}, + "realloc": {}, + "reallocarray": {}, + "realpath": {}, + "recv": {}, + "recvfrom": {}, + "recvmsg": {}, + "remove": {}, + "rename": {}, + "renameat2": {}, + "rewind": {}, + "rindex": {}, + "rint": {}, + "rmdir": {}, + "round": {}, + "scalbn": {}, + "scalbnl": {}, + "sched_yield": {}, + "select": {}, + "send": {}, + "sendmsg": {}, + "sendto": {}, + "setbuf": {}, + "setenv": {}, + "setjmp": {}, + "setlocale": {}, + "setrlimit": {}, + "setrlimit64": {}, + "setsid": {}, + "setsockopt": {}, + "setstate": {}, + "setvbuf": {}, + "shmat": {}, + "shmctl": {}, + "shmdt": {}, + "shutdown": {}, + "sigaction": {}, + "signal": {}, + "sin": {}, + "sinf": {}, + "sinh": {}, + "sleep": {}, + "snprintf": {}, + "socket": {}, + "sprintf": {}, + "sqrt": {}, + "srand48": {}, + "sscanf": {}, + "stat": {}, + "stat64": {}, + "stderr": {}, + "stdin": {}, + "stdout": {}, + "strcasecmp": {}, + "strcat": {}, + "strchr": {}, + "strcmp": {}, + "strcpy": {}, + "strcspn": {}, + "strdup": {}, + "strerror": {}, + "strerror_r": {}, + "strlcat": {}, + "strlcpy": {}, + "strlen": {}, + "strncasecmp": {}, + "strncat": {}, + "strncmp": {}, + "strncpy": {}, + "strnlen": {}, + "strpbrk": {}, + "strrchr": {}, + "strspn": {}, + "strstr": {}, + "strtod": {}, + "strtof": {}, + "strtoimax": {}, + "strtok": {}, + "strtol": {}, + "strtold": {}, + "strtoll": {}, + "strtoul": {}, + "strtoull": {}, + "strtoumax": {}, + "symlink": {}, + "symlinkat": {}, + "sysconf": {}, + "system": {}, + "tan": {}, + "tanh": {}, + "tcgetattr": {}, + "tcsendbreak": {}, + "tcsetattr": {}, + "time": {}, + "tmpfile": {}, + "tolower": {}, + "toupper": {}, + "trunc": {}, + "tzset": {}, + "umask": {}, + "uname": {}, + "ungetc": {}, + "unlink": {}, + "unlinkat": {}, + "unsetenv": {}, + "usleep": {}, + "utime": {}, + "utimensat": {}, + "utimes": {}, + "uuid_copy": {}, + "uuid_generate_random": {}, + "uuid_parse": {}, + "uuid_unparse": {}, + "vasprintf": {}, + "vfprintf": {}, + "vfscanf": {}, + "vprintf": {}, + "vsnprintf": {}, + "vsprintf": {}, + "vsscanf": {}, + "waitpid": {}, + "wcschr": {}, + "wctomb": {}, + "wcwidth": {}, + "write": {}, + "writev": {}, + "zero_struct_address": {}, +} diff --git a/vendor/modernc.org/libc/capi_linux_ppc64le.go b/vendor/modernc.org/libc/capi_linux_ppc64le.go index b5b366318..c1ae9d026 100644 --- a/vendor/modernc.org/libc/capi_linux_ppc64le.go +++ b/vendor/modernc.org/libc/capi_linux_ppc64le.go @@ -295,6 +295,7 @@ var CAPI = map[string]struct{}{ "localtime_r": {}, "log": {}, "log10": {}, + "log2": {}, "longjmp": {}, "lrand48": {}, "lseek": {}, @@ -329,6 +330,7 @@ var CAPI = map[string]struct{}{ "mremap": {}, "munmap": {}, "nanf": {}, + "nanosleep": {}, "nl_langinfo": {}, "ntohs": {}, "obstack_free": {}, @@ -348,6 +350,7 @@ var CAPI = map[string]struct{}{ "popen": {}, "posix_fadvise": {}, "pow": {}, + "pread": {}, "printf": {}, "pselect": {}, "pthread_attr_destroy": {}, diff --git a/vendor/modernc.org/libc/capi_linux_riscv64.go b/vendor/modernc.org/libc/capi_linux_riscv64.go index 29fb7d4e5..669f86ea3 100644 --- a/vendor/modernc.org/libc/capi_linux_riscv64.go +++ b/vendor/modernc.org/libc/capi_linux_riscv64.go @@ -290,6 +290,7 @@ var CAPI = map[string]struct{}{ "localtime_r": {}, "log": {}, "log10": {}, + "log2": {}, "longjmp": {}, "lrand48": {}, "lseek": {}, @@ -322,6 +323,7 @@ var CAPI = map[string]struct{}{ "mremap": {}, "munmap": {}, "nanf": {}, + "nanosleep": {}, "nl_langinfo": {}, "ntohs": {}, "obstack_free": {}, @@ -339,6 +341,7 @@ var CAPI = map[string]struct{}{ "popen": {}, "posix_fadvise": {}, "pow": {}, + "pread": {}, "printf": {}, "pselect": {}, "pthread_attr_destroy": {}, diff --git a/vendor/modernc.org/libc/capi_linux_s390x.go b/vendor/modernc.org/libc/capi_linux_s390x.go index 7ec37f1d8..98263426f 100644 --- a/vendor/modernc.org/libc/capi_linux_s390x.go +++ b/vendor/modernc.org/libc/capi_linux_s390x.go @@ -288,6 +288,7 @@ var CAPI = map[string]struct{}{ "localtime_r": {}, "log": {}, "log10": {}, + "log2": {}, "longjmp": {}, "lrand48": {}, "lseek": {}, @@ -320,6 +321,7 @@ var CAPI = map[string]struct{}{ "mremap": {}, "munmap": {}, "nanf": {}, + "nanosleep": {}, "nl_langinfo": {}, "ntohs": {}, "obstack_free": {}, @@ -337,6 +339,7 @@ var CAPI = map[string]struct{}{ "popen": {}, "posix_fadvise": {}, "pow": {}, + "pread": {}, "printf": {}, "pselect": {}, "pthread_attr_destroy": {}, diff --git a/vendor/modernc.org/libc/capi_netbsd_amd64.go b/vendor/modernc.org/libc/capi_netbsd_amd64.go index 8876e9b4c..7f8273996 100644 --- a/vendor/modernc.org/libc/capi_netbsd_amd64.go +++ b/vendor/modernc.org/libc/capi_netbsd_amd64.go @@ -294,6 +294,7 @@ var CAPI = map[string]struct{}{ "localtime_r": {}, "log": {}, "log10": {}, + "log2": {}, "longjmp": {}, "lrand48": {}, "lseek": {}, @@ -337,6 +338,7 @@ var CAPI = map[string]struct{}{ "poll": {}, "popen": {}, "pow": {}, + "pread": {}, "printf": {}, "pselect": {}, "pthread_attr_destroy": {}, diff --git a/vendor/modernc.org/libc/capi_netbsd_arm.go b/vendor/modernc.org/libc/capi_netbsd_arm.go index 8876e9b4c..7f8273996 100644 --- a/vendor/modernc.org/libc/capi_netbsd_arm.go +++ b/vendor/modernc.org/libc/capi_netbsd_arm.go @@ -294,6 +294,7 @@ var CAPI = map[string]struct{}{ "localtime_r": {}, "log": {}, "log10": {}, + "log2": {}, "longjmp": {}, "lrand48": {}, "lseek": {}, @@ -337,6 +338,7 @@ var CAPI = map[string]struct{}{ "poll": {}, "popen": {}, "pow": {}, + "pread": {}, "printf": {}, "pselect": {}, "pthread_attr_destroy": {}, diff --git a/vendor/modernc.org/libc/capi_openbsd_386.go b/vendor/modernc.org/libc/capi_openbsd_386.go index dbcc423be..cf0ce496b 100644 --- a/vendor/modernc.org/libc/capi_openbsd_386.go +++ b/vendor/modernc.org/libc/capi_openbsd_386.go @@ -305,6 +305,7 @@ var CAPI = map[string]struct{}{ "localtime_r": {}, "log": {}, "log10": {}, + "log2": {}, "longjmp": {}, "lrand48": {}, "lseek": {}, @@ -348,6 +349,7 @@ var CAPI = map[string]struct{}{ "poll": {}, "popen": {}, "pow": {}, + "pread": {}, "printf": {}, "pselect": {}, "pthread_attr_destroy": {}, diff --git a/vendor/modernc.org/libc/capi_openbsd_amd64.go b/vendor/modernc.org/libc/capi_openbsd_amd64.go index 7ba9c55da..90a27e1fc 100644 --- a/vendor/modernc.org/libc/capi_openbsd_amd64.go +++ b/vendor/modernc.org/libc/capi_openbsd_amd64.go @@ -306,6 +306,7 @@ var CAPI = map[string]struct{}{ "localtime_r": {}, "log": {}, "log10": {}, + "log2": {}, "longjmp": {}, "lrand48": {}, "lseek": {}, @@ -349,6 +350,7 @@ var CAPI = map[string]struct{}{ "poll": {}, "popen": {}, "pow": {}, + "pread": {}, "printf": {}, "pselect": {}, "pthread_attr_destroy": {}, diff --git a/vendor/modernc.org/libc/capi_openbsd_arm64.go b/vendor/modernc.org/libc/capi_openbsd_arm64.go index 7ba9c55da..90a27e1fc 100644 --- a/vendor/modernc.org/libc/capi_openbsd_arm64.go +++ b/vendor/modernc.org/libc/capi_openbsd_arm64.go @@ -306,6 +306,7 @@ var CAPI = map[string]struct{}{ "localtime_r": {}, "log": {}, "log10": {}, + "log2": {}, "longjmp": {}, "lrand48": {}, "lseek": {}, @@ -349,6 +350,7 @@ var CAPI = map[string]struct{}{ "poll": {}, "popen": {}, "pow": {}, + "pread": {}, "printf": {}, "pselect": {}, "pthread_attr_destroy": {}, diff --git a/vendor/modernc.org/libc/capi_windows_386.go b/vendor/modernc.org/libc/capi_windows_386.go index fc04042ff..e44b80e86 100644 --- a/vendor/modernc.org/libc/capi_windows_386.go +++ b/vendor/modernc.org/libc/capi_windows_386.go @@ -574,6 +574,7 @@ var CAPI = map[string]struct{}{ "localtime_r": {}, "log": {}, "log10": {}, + "log2": {}, "longjmp": {}, "lseek": {}, "lseek64": {}, diff --git a/vendor/modernc.org/libc/capi_windows_amd64.go b/vendor/modernc.org/libc/capi_windows_amd64.go index 7fa708d66..8c823a50c 100644 --- a/vendor/modernc.org/libc/capi_windows_amd64.go +++ b/vendor/modernc.org/libc/capi_windows_amd64.go @@ -554,6 +554,7 @@ var CAPI = map[string]struct{}{ "localtime_r": {}, "log": {}, "log10": {}, + "log2": {}, "longjmp": {}, "lseek": {}, "lseek64": {}, diff --git a/vendor/modernc.org/libc/capi_windows_arm64.go b/vendor/modernc.org/libc/capi_windows_arm64.go index f26fc8c57..0df635dd7 100644 --- a/vendor/modernc.org/libc/capi_windows_arm64.go +++ b/vendor/modernc.org/libc/capi_windows_arm64.go @@ -569,6 +569,7 @@ var CAPI = map[string]struct{}{ "localtime_r": {}, "log": {}, "log10": {}, + "log2": {}, "longjmp": {}, "lseek": {}, "lseek64": {}, diff --git a/vendor/modernc.org/libc/ccgo.go b/vendor/modernc.org/libc/ccgo.go index 2dad0cbbc..a54b50245 100644 --- a/vendor/modernc.org/libc/ccgo.go +++ b/vendor/modernc.org/libc/ccgo.go @@ -1,5 +1,7 @@ // Code generated by 'go generate' - DO NOT EDIT. +//go:build !(linux && (amd64 || arm64 || loong64 || ppc64le || s390x || riscv64 || 386 || arm)) + package libc // import "modernc.org/libc" import ( @@ -802,6 +804,22 @@ func PostIncAtomicUint32(p *uint32, d uint32) uint32 { return atomic.AddUint func PostIncAtomicUint64(p *uint64, d uint64) uint64 { return atomic.AddUint64(p, d) - d } func PostIncAtomicUintptr(p *uintptr, d uintptr) uintptr { return atomic.AddUintptr(p, d) - d } +func PostIncAtomicInt32P(p uintptr, d int32) int32 { + return atomic.AddInt32((*int32)(unsafe.Pointer(p)), d) - d +} +func PostIncAtomicInt64P(p uintptr, d int64) int64 { + return atomic.AddInt64((*int64)(unsafe.Pointer(p)), d) - d +} +func PostIncAtomicUint32P(p uintptr, d uint32) uint32 { + return atomic.AddUint32((*uint32)(unsafe.Pointer(p)), d) - d +} +func PostIncAtomicUint64P(p uintptr, d uint64) uint64 { + return atomic.AddUint64((*uint64)(unsafe.Pointer(p)), d) - d +} +func PostIncAtomicUintptrP(p uintptr, d uintptr) uintptr { + return atomic.AddUintptr((*uintptr)(unsafe.Pointer(p)), d) - d +} + func PostDecInt8(p *int8, d int8) int8 { r := *p; *p -= d; return r } func PostDecInt16(p *int16, d int16) int16 { r := *p; *p -= d; return r } func PostDecInt32(p *int32, d int32) int32 { r := *p; *p -= d; return r } diff --git a/vendor/modernc.org/libc/ccgo_linux_386.go b/vendor/modernc.org/libc/ccgo_linux_386.go new file mode 100644 index 000000000..e03fe1b6b --- /dev/null +++ b/vendor/modernc.org/libc/ccgo_linux_386.go @@ -0,0 +1,156975 @@ +// Code generated for linux/386 by 'gcc --package-name=libc --prefix-enumerator=_ --prefix-external=x_ --prefix-field=F --prefix-static-internal=_ --prefix-static-none=_ --prefix-tagged-enum=_ --prefix-tagged-struct=T --prefix-tagged-union=T --prefix-typename=T --prefix-undefined=_ -emit-func-aliases -eval-all-macros -extended-errors -ignore-asm-errors -ignore-unsupported-alignment -isystem -hide strlen -mlong-double-64 -std=c99 -nostdinc -ffreestanding -D_XOPEN_SOURCE=700 -I./arch/i386 -I./arch/generic -Iobj/src/internal -I./src/include -I./src/internal -Iobj/include -I./include -march=i486 -mtune=generic -DNDEBUG -nostdlib -shared -o lib/libc.so.go obj/src/complex/__cexp.lo.go obj/src/complex/__cexpf.lo.go obj/src/complex/cabs.lo.go obj/src/complex/cabsf.lo.go obj/src/complex/cabsl.lo.go obj/src/complex/cacos.lo.go obj/src/complex/cacosf.lo.go obj/src/complex/cacosh.lo.go obj/src/complex/cacoshf.lo.go obj/src/complex/cacoshl.lo.go obj/src/complex/cacosl.lo.go obj/src/complex/carg.lo.go obj/src/complex/cargf.lo.go obj/src/complex/cargl.lo.go obj/src/complex/casin.lo.go obj/src/complex/casinf.lo.go obj/src/complex/casinh.lo.go obj/src/complex/casinhf.lo.go obj/src/complex/casinhl.lo.go obj/src/complex/casinl.lo.go obj/src/complex/catan.lo.go obj/src/complex/catanf.lo.go obj/src/complex/catanh.lo.go obj/src/complex/catanhf.lo.go obj/src/complex/catanhl.lo.go obj/src/complex/catanl.lo.go obj/src/complex/ccos.lo.go obj/src/complex/ccosf.lo.go obj/src/complex/ccosh.lo.go obj/src/complex/ccoshf.lo.go obj/src/complex/ccoshl.lo.go obj/src/complex/ccosl.lo.go obj/src/complex/cexp.lo.go obj/src/complex/cexpf.lo.go obj/src/complex/cexpl.lo.go obj/src/complex/cimag.lo.go obj/src/complex/cimagf.lo.go obj/src/complex/cimagl.lo.go obj/src/complex/clog.lo.go obj/src/complex/clogf.lo.go obj/src/complex/clogl.lo.go obj/src/complex/conj.lo.go obj/src/complex/conjf.lo.go obj/src/complex/conjl.lo.go obj/src/complex/cpow.lo.go obj/src/complex/cpowf.lo.go obj/src/complex/cpowl.lo.go obj/src/complex/cproj.lo.go obj/src/complex/cprojf.lo.go obj/src/complex/cprojl.lo.go obj/src/complex/creal.lo.go obj/src/complex/crealf.lo.go obj/src/complex/creall.lo.go obj/src/complex/csin.lo.go obj/src/complex/csinf.lo.go obj/src/complex/csinh.lo.go obj/src/complex/csinhf.lo.go obj/src/complex/csinhl.lo.go obj/src/complex/csinl.lo.go obj/src/complex/csqrt.lo.go obj/src/complex/csqrtf.lo.go obj/src/complex/csqrtl.lo.go obj/src/complex/ctan.lo.go obj/src/complex/ctanf.lo.go obj/src/complex/ctanh.lo.go obj/src/complex/ctanhf.lo.go obj/src/complex/ctanhl.lo.go obj/src/complex/ctanl.lo.go obj/src/conf/confstr.lo.go obj/src/conf/fpathconf.lo.go obj/src/conf/legacy.lo.go obj/src/conf/pathconf.lo.go obj/src/conf/sysconf.lo.go obj/src/crypt/crypt.lo.go obj/src/crypt/crypt_blowfish.lo.go obj/src/crypt/crypt_des.lo.go obj/src/crypt/crypt_md5.lo.go obj/src/crypt/crypt_r.lo.go obj/src/crypt/crypt_sha256.lo.go obj/src/crypt/crypt_sha512.lo.go obj/src/crypt/encrypt.lo.go obj/src/ctype/__ctype_b_loc.lo.go obj/src/ctype/__ctype_get_mb_cur_max.lo.go obj/src/ctype/__ctype_tolower_loc.lo.go obj/src/ctype/__ctype_toupper_loc.lo.go obj/src/ctype/isalnum.lo.go obj/src/ctype/isalpha.lo.go obj/src/ctype/isascii.lo.go obj/src/ctype/isblank.lo.go obj/src/ctype/iscntrl.lo.go obj/src/ctype/isdigit.lo.go obj/src/ctype/isgraph.lo.go obj/src/ctype/islower.lo.go obj/src/ctype/isprint.lo.go obj/src/ctype/ispunct.lo.go obj/src/ctype/isspace.lo.go obj/src/ctype/isupper.lo.go obj/src/ctype/iswalnum.lo.go obj/src/ctype/iswalpha.lo.go obj/src/ctype/iswblank.lo.go obj/src/ctype/iswcntrl.lo.go obj/src/ctype/iswctype.lo.go obj/src/ctype/iswdigit.lo.go obj/src/ctype/iswgraph.lo.go obj/src/ctype/iswlower.lo.go obj/src/ctype/iswprint.lo.go obj/src/ctype/iswpunct.lo.go obj/src/ctype/iswspace.lo.go obj/src/ctype/iswupper.lo.go obj/src/ctype/iswxdigit.lo.go obj/src/ctype/isxdigit.lo.go obj/src/ctype/toascii.lo.go obj/src/ctype/tolower.lo.go obj/src/ctype/toupper.lo.go obj/src/ctype/towctrans.lo.go obj/src/ctype/wcswidth.lo.go obj/src/ctype/wctrans.lo.go obj/src/ctype/wcwidth.lo.go obj/src/dirent/alphasort.lo.go obj/src/dirent/closedir.lo.go obj/src/dirent/dirfd.lo.go obj/src/dirent/fdopendir.lo.go obj/src/dirent/opendir.lo.go obj/src/dirent/readdir.lo.go obj/src/dirent/readdir_r.lo.go obj/src/dirent/rewinddir.lo.go obj/src/dirent/scandir.lo.go obj/src/dirent/seekdir.lo.go obj/src/dirent/telldir.lo.go obj/src/dirent/versionsort.lo.go obj/src/env/__environ.lo.go obj/src/env/__reset_tls.lo.go obj/src/env/__stack_chk_fail.lo.go obj/src/env/clearenv.lo.go obj/src/env/getenv.lo.go obj/src/env/putenv.lo.go obj/src/env/secure_getenv.lo.go obj/src/env/setenv.lo.go obj/src/env/unsetenv.lo.go obj/src/errno/strerror.lo.go obj/src/exit/_Exit.lo.go obj/src/exit/abort_lock.lo.go obj/src/exit/assert.lo.go obj/src/exit/at_quick_exit.lo.go obj/src/exit/quick_exit.lo.go obj/src/fcntl/creat.lo.go obj/src/fcntl/fcntl.lo.go obj/src/fcntl/open.lo.go obj/src/fcntl/openat.lo.go obj/src/fcntl/posix_fadvise.lo.go obj/src/fcntl/posix_fallocate.lo.go obj/src/fenv/fenv.lo.go obj/src/internal/defsysinfo.lo.go obj/src/internal/emulate_wait4.lo.go obj/src/internal/floatscan.lo.go obj/src/internal/intscan.lo.go obj/src/internal/libc.lo.go obj/src/internal/procfdname.lo.go obj/src/internal/shgetc.lo.go obj/src/internal/syscall_ret.lo.go obj/src/internal/vdso.lo.go obj/src/internal/version.lo.go obj/src/ipc/ftok.lo.go obj/src/ipc/msgctl.lo.go obj/src/ipc/msgget.lo.go obj/src/ipc/msgrcv.lo.go obj/src/ipc/msgsnd.lo.go obj/src/ipc/semctl.lo.go obj/src/ipc/semget.lo.go obj/src/ipc/semop.lo.go obj/src/ipc/semtimedop.lo.go obj/src/ipc/shmat.lo.go obj/src/ipc/shmctl.lo.go obj/src/ipc/shmdt.lo.go obj/src/ipc/shmget.lo.go obj/src/legacy/cuserid.lo.go obj/src/legacy/err.lo.go obj/src/legacy/euidaccess.lo.go obj/src/legacy/ftw.lo.go obj/src/legacy/futimes.lo.go obj/src/legacy/getdtablesize.lo.go obj/src/legacy/getloadavg.lo.go obj/src/legacy/getpagesize.lo.go obj/src/legacy/getpass.lo.go obj/src/legacy/getusershell.lo.go obj/src/legacy/isastream.lo.go obj/src/legacy/lutimes.lo.go obj/src/legacy/ulimit.lo.go obj/src/legacy/utmpx.lo.go obj/src/linux/adjtime.lo.go obj/src/linux/adjtimex.lo.go obj/src/linux/arch_prctl.lo.go obj/src/linux/brk.lo.go obj/src/linux/cache.lo.go obj/src/linux/cap.lo.go obj/src/linux/chroot.lo.go obj/src/linux/clock_adjtime.lo.go obj/src/linux/copy_file_range.lo.go obj/src/linux/epoll.lo.go obj/src/linux/eventfd.lo.go obj/src/linux/fallocate.lo.go obj/src/linux/fanotify.lo.go obj/src/linux/flock.lo.go obj/src/linux/getdents.lo.go obj/src/linux/getrandom.lo.go obj/src/linux/inotify.lo.go obj/src/linux/ioperm.lo.go obj/src/linux/iopl.lo.go obj/src/linux/klogctl.lo.go obj/src/linux/memfd_create.lo.go obj/src/linux/mlock2.lo.go obj/src/linux/module.lo.go obj/src/linux/mount.lo.go obj/src/linux/name_to_handle_at.lo.go obj/src/linux/open_by_handle_at.lo.go obj/src/linux/personality.lo.go obj/src/linux/pivot_root.lo.go obj/src/linux/prctl.lo.go obj/src/linux/preadv2.lo.go obj/src/linux/prlimit.lo.go obj/src/linux/process_vm.lo.go obj/src/linux/ptrace.lo.go obj/src/linux/pwritev2.lo.go obj/src/linux/quotactl.lo.go obj/src/linux/readahead.lo.go obj/src/linux/reboot.lo.go obj/src/linux/remap_file_pages.lo.go obj/src/linux/sbrk.lo.go obj/src/linux/sendfile.lo.go obj/src/linux/setfsgid.lo.go obj/src/linux/setfsuid.lo.go obj/src/linux/sethostname.lo.go obj/src/linux/setns.lo.go obj/src/linux/settimeofday.lo.go obj/src/linux/signalfd.lo.go obj/src/linux/splice.lo.go obj/src/linux/statx.lo.go obj/src/linux/stime.lo.go obj/src/linux/swap.lo.go obj/src/linux/sync_file_range.lo.go obj/src/linux/syncfs.lo.go obj/src/linux/sysinfo.lo.go obj/src/linux/tee.lo.go obj/src/linux/timerfd.lo.go obj/src/linux/unshare.lo.go obj/src/linux/utimes.lo.go obj/src/linux/vhangup.lo.go obj/src/linux/vmsplice.lo.go obj/src/linux/wait3.lo.go obj/src/linux/wait4.lo.go obj/src/linux/xattr.lo.go obj/src/locale/__lctrans.lo.go obj/src/locale/__mo_lookup.lo.go obj/src/locale/bind_textdomain_codeset.lo.go obj/src/locale/c_locale.lo.go obj/src/locale/catclose.lo.go obj/src/locale/catgets.lo.go obj/src/locale/catopen.lo.go obj/src/locale/dcngettext.lo.go obj/src/locale/duplocale.lo.go obj/src/locale/freelocale.lo.go obj/src/locale/iconv.lo.go obj/src/locale/iconv_close.lo.go obj/src/locale/langinfo.lo.go obj/src/locale/locale_map.lo.go obj/src/locale/localeconv.lo.go obj/src/locale/newlocale.lo.go obj/src/locale/pleval.lo.go obj/src/locale/setlocale.lo.go obj/src/locale/strcoll.lo.go obj/src/locale/strfmon.lo.go obj/src/locale/strtod_l.lo.go obj/src/locale/strxfrm.lo.go obj/src/locale/textdomain.lo.go obj/src/locale/uselocale.lo.go obj/src/locale/wcscoll.lo.go obj/src/locale/wcsxfrm.lo.go obj/src/malloc/reallocarray.lo.go obj/src/math/__cos.lo.go obj/src/math/__cosdf.lo.go obj/src/math/__cosl.lo.go obj/src/math/__expo2.lo.go obj/src/math/__expo2f.lo.go obj/src/math/__fpclassify.lo.go obj/src/math/__fpclassifyf.lo.go obj/src/math/__fpclassifyl.lo.go obj/src/math/__invtrigl.lo.go obj/src/math/__math_divzero.lo.go obj/src/math/__math_divzerof.lo.go obj/src/math/__math_invalid.lo.go obj/src/math/__math_invalidf.lo.go obj/src/math/__math_invalidl.lo.go obj/src/math/__math_oflow.lo.go obj/src/math/__math_oflowf.lo.go obj/src/math/__math_uflow.lo.go obj/src/math/__math_uflowf.lo.go obj/src/math/__math_xflow.lo.go obj/src/math/__math_xflowf.lo.go obj/src/math/__polevll.lo.go obj/src/math/__rem_pio2.lo.go obj/src/math/__rem_pio2_large.lo.go obj/src/math/__rem_pio2f.lo.go obj/src/math/__rem_pio2l.lo.go obj/src/math/__signbit.lo.go obj/src/math/__signbitf.lo.go obj/src/math/__signbitl.lo.go obj/src/math/__sin.lo.go obj/src/math/__sindf.lo.go obj/src/math/__sinl.lo.go obj/src/math/__tan.lo.go obj/src/math/__tandf.lo.go obj/src/math/__tanl.lo.go obj/src/math/acos.lo.go obj/src/math/acosf.lo.go obj/src/math/acosh.lo.go obj/src/math/acoshf.lo.go obj/src/math/acoshl.lo.go obj/src/math/acosl.lo.go obj/src/math/asin.lo.go obj/src/math/asinf.lo.go obj/src/math/asinh.lo.go obj/src/math/asinhf.lo.go obj/src/math/asinhl.lo.go obj/src/math/asinl.lo.go obj/src/math/atan.lo.go obj/src/math/atan2.lo.go obj/src/math/atan2f.lo.go obj/src/math/atan2l.lo.go obj/src/math/atanf.lo.go obj/src/math/atanh.lo.go obj/src/math/atanhf.lo.go obj/src/math/atanhl.lo.go obj/src/math/atanl.lo.go obj/src/math/cbrt.lo.go obj/src/math/cbrtf.lo.go obj/src/math/cbrtl.lo.go obj/src/math/ceil.lo.go obj/src/math/ceilf.lo.go obj/src/math/ceill.lo.go obj/src/math/copysign.lo.go obj/src/math/copysignf.lo.go obj/src/math/copysignl.lo.go obj/src/math/cos.lo.go obj/src/math/cosf.lo.go obj/src/math/cosh.lo.go obj/src/math/coshf.lo.go obj/src/math/coshl.lo.go obj/src/math/cosl.lo.go obj/src/math/erf.lo.go obj/src/math/erff.lo.go obj/src/math/erfl.lo.go obj/src/math/exp.lo.go obj/src/math/exp10.lo.go obj/src/math/exp10f.lo.go obj/src/math/exp10l.lo.go obj/src/math/exp2.lo.go obj/src/math/exp2f.lo.go obj/src/math/exp2f_data.lo.go obj/src/math/exp2l.lo.go obj/src/math/exp_data.lo.go obj/src/math/expf.lo.go obj/src/math/expl.lo.go obj/src/math/expm1.lo.go obj/src/math/expm1f.lo.go obj/src/math/expm1l.lo.go obj/src/math/fabs.lo.go obj/src/math/fabsf.lo.go obj/src/math/fabsl.lo.go obj/src/math/fdim.lo.go obj/src/math/fdimf.lo.go obj/src/math/fdiml.lo.go obj/src/math/finite.lo.go obj/src/math/finitef.lo.go obj/src/math/floor.lo.go obj/src/math/floorf.lo.go obj/src/math/floorl.lo.go obj/src/math/fma.lo.go obj/src/math/fmal.lo.go obj/src/math/fmax.lo.go obj/src/math/fmaxf.lo.go obj/src/math/fmaxl.lo.go obj/src/math/fmin.lo.go obj/src/math/fminf.lo.go obj/src/math/fminl.lo.go obj/src/math/fmod.lo.go obj/src/math/fmodf.lo.go obj/src/math/fmodl.lo.go obj/src/math/frexp.lo.go obj/src/math/frexpf.lo.go obj/src/math/frexpl.lo.go obj/src/math/hypot.lo.go obj/src/math/hypotf.lo.go obj/src/math/hypotl.lo.go obj/src/math/ilogb.lo.go obj/src/math/ilogbf.lo.go obj/src/math/ilogbl.lo.go obj/src/math/j0.lo.go obj/src/math/j0f.lo.go obj/src/math/j1.lo.go obj/src/math/j1f.lo.go obj/src/math/jn.lo.go obj/src/math/jnf.lo.go obj/src/math/ldexp.lo.go obj/src/math/ldexpf.lo.go obj/src/math/ldexpl.lo.go obj/src/math/lgamma.lo.go obj/src/math/lgamma_r.lo.go obj/src/math/lgammaf.lo.go obj/src/math/lgammaf_r.lo.go obj/src/math/lgammal.lo.go obj/src/math/llrint.lo.go obj/src/math/llrintf.lo.go obj/src/math/llrintl.lo.go obj/src/math/llround.lo.go obj/src/math/llroundf.lo.go obj/src/math/llroundl.lo.go obj/src/math/log.lo.go obj/src/math/log10.lo.go obj/src/math/log10f.lo.go obj/src/math/log10l.lo.go obj/src/math/log1p.lo.go obj/src/math/log1pf.lo.go obj/src/math/log1pl.lo.go obj/src/math/log2.lo.go obj/src/math/log2_data.lo.go obj/src/math/log2f.lo.go obj/src/math/log2f_data.lo.go obj/src/math/log2l.lo.go obj/src/math/log_data.lo.go obj/src/math/logb.lo.go obj/src/math/logbf.lo.go obj/src/math/logbl.lo.go obj/src/math/logf.lo.go obj/src/math/logf_data.lo.go obj/src/math/logl.lo.go obj/src/math/lrint.lo.go obj/src/math/lrintf.lo.go obj/src/math/lrintl.lo.go obj/src/math/lround.lo.go obj/src/math/lroundf.lo.go obj/src/math/lroundl.lo.go obj/src/math/modf.lo.go obj/src/math/modff.lo.go obj/src/math/modfl.lo.go obj/src/math/nan.lo.go obj/src/math/nanf.lo.go obj/src/math/nanl.lo.go obj/src/math/nextafter.lo.go obj/src/math/nextafterf.lo.go obj/src/math/nextafterl.lo.go obj/src/math/nexttoward.lo.go obj/src/math/nexttowardf.lo.go obj/src/math/nexttowardl.lo.go obj/src/math/pow.lo.go obj/src/math/pow_data.lo.go obj/src/math/powf.lo.go obj/src/math/powf_data.lo.go obj/src/math/powl.lo.go obj/src/math/remainder.lo.go obj/src/math/remainderf.lo.go obj/src/math/remainderl.lo.go obj/src/math/remquo.lo.go obj/src/math/remquof.lo.go obj/src/math/remquol.lo.go obj/src/math/rint.lo.go obj/src/math/rintf.lo.go obj/src/math/rintl.lo.go obj/src/math/round.lo.go obj/src/math/roundf.lo.go obj/src/math/roundl.lo.go obj/src/math/scalb.lo.go obj/src/math/scalbf.lo.go obj/src/math/scalbln.lo.go obj/src/math/scalblnf.lo.go obj/src/math/scalblnl.lo.go obj/src/math/scalbn.lo.go obj/src/math/scalbnf.lo.go obj/src/math/scalbnl.lo.go obj/src/math/signgam.lo.go obj/src/math/significand.lo.go obj/src/math/significandf.lo.go obj/src/math/sin.lo.go obj/src/math/sincos.lo.go obj/src/math/sincosf.lo.go obj/src/math/sincosl.lo.go obj/src/math/sinf.lo.go obj/src/math/sinh.lo.go obj/src/math/sinhf.lo.go obj/src/math/sinhl.lo.go obj/src/math/sinl.lo.go obj/src/math/sqrt.lo.go obj/src/math/sqrt_data.lo.go obj/src/math/sqrtf.lo.go obj/src/math/sqrtl.lo.go obj/src/math/tan.lo.go obj/src/math/tanf.lo.go obj/src/math/tanh.lo.go obj/src/math/tanhf.lo.go obj/src/math/tanhl.lo.go obj/src/math/tanl.lo.go obj/src/math/tgamma.lo.go obj/src/math/tgammaf.lo.go obj/src/math/tgammal.lo.go obj/src/math/trunc.lo.go obj/src/math/truncf.lo.go obj/src/math/truncl.lo.go obj/src/misc/a64l.lo.go obj/src/misc/basename.lo.go obj/src/misc/dirname.lo.go obj/src/misc/ffs.lo.go obj/src/misc/ffsl.lo.go obj/src/misc/ffsll.lo.go obj/src/misc/fmtmsg.lo.go obj/src/misc/get_current_dir_name.lo.go obj/src/misc/getauxval.lo.go obj/src/misc/getdomainname.lo.go obj/src/misc/getentropy.lo.go obj/src/misc/gethostid.lo.go obj/src/misc/getopt.lo.go obj/src/misc/getopt_long.lo.go obj/src/misc/getpriority.lo.go obj/src/misc/getresgid.lo.go obj/src/misc/getresuid.lo.go obj/src/misc/getrlimit.lo.go obj/src/misc/getrusage.lo.go obj/src/misc/getsubopt.lo.go obj/src/misc/ioctl.lo.go obj/src/misc/issetugid.lo.go obj/src/misc/lockf.lo.go obj/src/misc/login_tty.lo.go obj/src/misc/mntent.lo.go obj/src/misc/nftw.lo.go obj/src/misc/openpty.lo.go obj/src/misc/ptsname.lo.go obj/src/misc/pty.lo.go obj/src/misc/realpath.lo.go obj/src/misc/setdomainname.lo.go obj/src/misc/setpriority.lo.go obj/src/misc/setrlimit.lo.go obj/src/misc/syscall.lo.go obj/src/misc/syslog.lo.go obj/src/misc/uname.lo.go obj/src/mman/madvise.lo.go obj/src/mman/mincore.lo.go obj/src/mman/mlock.lo.go obj/src/mman/mlockall.lo.go obj/src/mman/mmap.lo.go obj/src/mman/mprotect.lo.go obj/src/mman/mremap.lo.go obj/src/mman/msync.lo.go obj/src/mman/munlock.lo.go obj/src/mman/munlockall.lo.go obj/src/mman/munmap.lo.go obj/src/mman/posix_madvise.lo.go obj/src/mman/shm_open.lo.go obj/src/multibyte/btowc.lo.go obj/src/multibyte/c16rtomb.lo.go obj/src/multibyte/c32rtomb.lo.go obj/src/multibyte/internal.lo.go obj/src/multibyte/mblen.lo.go obj/src/multibyte/mbrlen.lo.go obj/src/multibyte/mbrtoc16.lo.go obj/src/multibyte/mbrtoc32.lo.go obj/src/multibyte/mbrtowc.lo.go obj/src/multibyte/mbsinit.lo.go obj/src/multibyte/mbsnrtowcs.lo.go obj/src/multibyte/mbsrtowcs.lo.go obj/src/multibyte/mbstowcs.lo.go obj/src/multibyte/mbtowc.lo.go obj/src/multibyte/wcrtomb.lo.go obj/src/multibyte/wcsnrtombs.lo.go obj/src/multibyte/wcsrtombs.lo.go obj/src/multibyte/wcstombs.lo.go obj/src/multibyte/wctob.lo.go obj/src/multibyte/wctomb.lo.go obj/src/network/accept.lo.go obj/src/network/accept4.lo.go obj/src/network/bind.lo.go obj/src/network/connect.lo.go obj/src/network/dn_comp.lo.go obj/src/network/dn_expand.lo.go obj/src/network/dn_skipname.lo.go obj/src/network/dns_parse.lo.go obj/src/network/ent.lo.go obj/src/network/ether.lo.go obj/src/network/freeaddrinfo.lo.go obj/src/network/gai_strerror.lo.go obj/src/network/getaddrinfo.lo.go obj/src/network/gethostbyaddr.lo.go obj/src/network/gethostbyaddr_r.lo.go obj/src/network/gethostbyname.lo.go obj/src/network/gethostbyname2.lo.go obj/src/network/gethostbyname2_r.lo.go obj/src/network/gethostbyname_r.lo.go obj/src/network/getifaddrs.lo.go obj/src/network/getnameinfo.lo.go obj/src/network/getpeername.lo.go obj/src/network/getservbyname.lo.go obj/src/network/getservbyname_r.lo.go obj/src/network/getsockname.lo.go obj/src/network/getsockopt.lo.go obj/src/network/h_errno.lo.go obj/src/network/herror.lo.go obj/src/network/hstrerror.lo.go obj/src/network/htonl.lo.go obj/src/network/htons.lo.go obj/src/network/if_freenameindex.lo.go obj/src/network/if_indextoname.lo.go obj/src/network/if_nameindex.lo.go obj/src/network/if_nametoindex.lo.go obj/src/network/in6addr_any.lo.go obj/src/network/in6addr_loopback.lo.go obj/src/network/inet_addr.lo.go obj/src/network/inet_aton.lo.go obj/src/network/inet_legacy.lo.go obj/src/network/inet_ntoa.lo.go obj/src/network/inet_ntop.lo.go obj/src/network/inet_pton.lo.go obj/src/network/listen.lo.go obj/src/network/lookup_ipliteral.lo.go obj/src/network/lookup_name.lo.go obj/src/network/lookup_serv.lo.go obj/src/network/netlink.lo.go obj/src/network/netname.lo.go obj/src/network/ns_parse.lo.go obj/src/network/ntohl.lo.go obj/src/network/ntohs.lo.go obj/src/network/proto.lo.go obj/src/network/recv.lo.go obj/src/network/recvfrom.lo.go obj/src/network/recvmmsg.lo.go obj/src/network/recvmsg.lo.go obj/src/network/res_init.lo.go obj/src/network/res_mkquery.lo.go obj/src/network/res_msend.lo.go obj/src/network/res_send.lo.go obj/src/network/res_state.lo.go obj/src/network/resolvconf.lo.go obj/src/network/send.lo.go obj/src/network/sendmmsg.lo.go obj/src/network/sendmsg.lo.go obj/src/network/sendto.lo.go obj/src/network/serv.lo.go obj/src/network/setsockopt.lo.go obj/src/network/shutdown.lo.go obj/src/network/sockatmark.lo.go obj/src/network/socket.lo.go obj/src/network/socketpair.lo.go obj/src/passwd/fgetgrent.lo.go obj/src/passwd/fgetpwent.lo.go obj/src/passwd/getgr_a.lo.go obj/src/passwd/getgr_r.lo.go obj/src/passwd/getgrent.lo.go obj/src/passwd/getgrent_a.lo.go obj/src/passwd/getgrouplist.lo.go obj/src/passwd/getpw_a.lo.go obj/src/passwd/getpw_r.lo.go obj/src/passwd/getpwent.lo.go obj/src/passwd/getpwent_a.lo.go obj/src/passwd/getspent.lo.go obj/src/passwd/lckpwdf.lo.go obj/src/passwd/nscd_query.lo.go obj/src/passwd/putgrent.lo.go obj/src/passwd/putpwent.lo.go obj/src/passwd/putspent.lo.go obj/src/prng/__rand48_step.lo.go obj/src/prng/__seed48.lo.go obj/src/prng/drand48.lo.go obj/src/prng/lcong48.lo.go obj/src/prng/lrand48.lo.go obj/src/prng/mrand48.lo.go obj/src/prng/rand.lo.go obj/src/prng/rand_r.lo.go obj/src/prng/random.lo.go obj/src/prng/seed48.lo.go obj/src/prng/srand48.lo.go obj/src/process/execl.lo.go obj/src/process/execle.lo.go obj/src/process/execlp.lo.go obj/src/process/execv.lo.go obj/src/process/execve.lo.go obj/src/process/execvp.lo.go obj/src/process/fexecve.lo.go obj/src/process/fork.lo.go obj/src/process/posix_spawn_file_actions_addchdir.lo.go obj/src/process/posix_spawn_file_actions_addclose.lo.go obj/src/process/posix_spawn_file_actions_adddup2.lo.go obj/src/process/posix_spawn_file_actions_addfchdir.lo.go obj/src/process/posix_spawn_file_actions_addopen.lo.go obj/src/process/posix_spawn_file_actions_destroy.lo.go obj/src/process/posix_spawn_file_actions_init.lo.go obj/src/process/posix_spawnattr_destroy.lo.go obj/src/process/posix_spawnattr_getflags.lo.go obj/src/process/posix_spawnattr_getpgroup.lo.go obj/src/process/posix_spawnattr_getsigdefault.lo.go obj/src/process/posix_spawnattr_getsigmask.lo.go obj/src/process/posix_spawnattr_init.lo.go obj/src/process/posix_spawnattr_sched.lo.go obj/src/process/posix_spawnattr_setflags.lo.go obj/src/process/posix_spawnattr_setpgroup.lo.go obj/src/process/posix_spawnattr_setsigdefault.lo.go obj/src/process/posix_spawnattr_setsigmask.lo.go obj/src/process/vfork.lo.go obj/src/process/wait.lo.go obj/src/process/waitid.lo.go obj/src/process/waitpid.lo.go obj/src/regex/fnmatch.lo.go obj/src/regex/glob.lo.go obj/src/regex/regcomp.lo.go obj/src/regex/regerror.lo.go obj/src/regex/regexec.lo.go obj/src/regex/tre-mem.lo.go obj/src/search/hsearch.lo.go obj/src/search/insque.lo.go obj/src/search/lsearch.lo.go obj/src/search/tdelete.lo.go obj/src/search/tdestroy.lo.go obj/src/search/tfind.lo.go obj/src/search/tsearch.lo.go obj/src/search/twalk.lo.go obj/src/select/poll.lo.go obj/src/select/ppoll.lo.go obj/src/select/pselect.lo.go obj/src/select/select.lo.go obj/src/setjmp/longjmp.lo.go obj/src/setjmp/setjmp.lo.go obj/src/signal/block.lo.go obj/src/signal/getitimer.lo.go obj/src/signal/kill.lo.go obj/src/signal/killpg.lo.go obj/src/signal/psiginfo.lo.go obj/src/signal/psignal.lo.go obj/src/signal/raise.lo.go obj/src/signal/restore.lo.go obj/src/signal/setitimer.lo.go obj/src/signal/sigaction.lo.go obj/src/signal/sigaddset.lo.go obj/src/signal/sigaltstack.lo.go obj/src/signal/sigandset.lo.go obj/src/signal/sigdelset.lo.go obj/src/signal/sigemptyset.lo.go obj/src/signal/sigfillset.lo.go obj/src/signal/sigisemptyset.lo.go obj/src/signal/sigismember.lo.go obj/src/signal/sigorset.lo.go obj/src/signal/sigpending.lo.go obj/src/signal/sigprocmask.lo.go obj/src/signal/sigqueue.lo.go obj/src/signal/sigrtmax.lo.go obj/src/signal/sigrtmin.lo.go obj/src/signal/sigsetjmp.lo.go obj/src/signal/sigsetjmp_tail.lo.go obj/src/signal/sigsuspend.lo.go obj/src/signal/sigtimedwait.lo.go obj/src/signal/sigwait.lo.go obj/src/signal/sigwaitinfo.lo.go obj/src/stat/__xstat.lo.go obj/src/stat/chmod.lo.go obj/src/stat/fchmod.lo.go obj/src/stat/fchmodat.lo.go obj/src/stat/fstat.lo.go obj/src/stat/fstatat.lo.go obj/src/stat/futimens.lo.go obj/src/stat/futimesat.lo.go obj/src/stat/lchmod.lo.go obj/src/stat/lstat.lo.go obj/src/stat/mkdir.lo.go obj/src/stat/mkdirat.lo.go obj/src/stat/mkfifo.lo.go obj/src/stat/mkfifoat.lo.go obj/src/stat/mknod.lo.go obj/src/stat/mknodat.lo.go obj/src/stat/stat.lo.go obj/src/stat/statvfs.lo.go obj/src/stat/umask.lo.go obj/src/stat/utimensat.lo.go obj/src/stdio/__fclose_ca.lo.go obj/src/stdio/__fdopen.lo.go obj/src/stdio/__fmodeflags.lo.go obj/src/stdio/__fopen_rb_ca.lo.go obj/src/stdio/__overflow.lo.go obj/src/stdio/__stdio_close.lo.go obj/src/stdio/__stdio_exit.lo.go obj/src/stdio/__stdio_read.lo.go obj/src/stdio/__stdio_seek.lo.go obj/src/stdio/__stdio_write.lo.go obj/src/stdio/__stdout_write.lo.go obj/src/stdio/__toread.lo.go obj/src/stdio/__towrite.lo.go obj/src/stdio/__uflow.lo.go obj/src/stdio/asprintf.lo.go obj/src/stdio/clearerr.lo.go obj/src/stdio/dprintf.lo.go obj/src/stdio/ext.lo.go obj/src/stdio/ext2.lo.go obj/src/stdio/fclose.lo.go obj/src/stdio/feof.lo.go obj/src/stdio/ferror.lo.go obj/src/stdio/fflush.lo.go obj/src/stdio/fgetc.lo.go obj/src/stdio/fgetln.lo.go obj/src/stdio/fgetpos.lo.go obj/src/stdio/fgets.lo.go obj/src/stdio/fgetwc.lo.go obj/src/stdio/fgetws.lo.go obj/src/stdio/fileno.lo.go obj/src/stdio/flockfile.lo.go obj/src/stdio/fmemopen.lo.go obj/src/stdio/fopen.lo.go obj/src/stdio/fopencookie.lo.go obj/src/stdio/fprintf.lo.go obj/src/stdio/fputc.lo.go obj/src/stdio/fputs.lo.go obj/src/stdio/fputwc.lo.go obj/src/stdio/fputws.lo.go obj/src/stdio/fread.lo.go obj/src/stdio/freopen.lo.go obj/src/stdio/fscanf.lo.go obj/src/stdio/fseek.lo.go obj/src/stdio/fsetpos.lo.go obj/src/stdio/ftell.lo.go obj/src/stdio/ftrylockfile.lo.go obj/src/stdio/funlockfile.lo.go obj/src/stdio/fwide.lo.go obj/src/stdio/fwprintf.lo.go obj/src/stdio/fwrite.lo.go obj/src/stdio/fwscanf.lo.go obj/src/stdio/getc.lo.go obj/src/stdio/getc_unlocked.lo.go obj/src/stdio/getchar.lo.go obj/src/stdio/getchar_unlocked.lo.go obj/src/stdio/getdelim.lo.go obj/src/stdio/getline.lo.go obj/src/stdio/gets.lo.go obj/src/stdio/getw.lo.go obj/src/stdio/getwc.lo.go obj/src/stdio/getwchar.lo.go obj/src/stdio/ofl.lo.go obj/src/stdio/ofl_add.lo.go obj/src/stdio/open_memstream.lo.go obj/src/stdio/open_wmemstream.lo.go obj/src/stdio/pclose.lo.go obj/src/stdio/perror.lo.go obj/src/stdio/printf.lo.go obj/src/stdio/putc.lo.go obj/src/stdio/putc_unlocked.lo.go obj/src/stdio/putchar.lo.go obj/src/stdio/putchar_unlocked.lo.go obj/src/stdio/puts.lo.go obj/src/stdio/putw.lo.go obj/src/stdio/putwc.lo.go obj/src/stdio/putwchar.lo.go obj/src/stdio/remove.lo.go obj/src/stdio/rename.lo.go obj/src/stdio/rewind.lo.go obj/src/stdio/scanf.lo.go obj/src/stdio/setbuf.lo.go obj/src/stdio/setbuffer.lo.go obj/src/stdio/setlinebuf.lo.go obj/src/stdio/setvbuf.lo.go obj/src/stdio/snprintf.lo.go obj/src/stdio/sprintf.lo.go obj/src/stdio/sscanf.lo.go obj/src/stdio/stderr.lo.go obj/src/stdio/stdin.lo.go obj/src/stdio/stdout.lo.go obj/src/stdio/swprintf.lo.go obj/src/stdio/swscanf.lo.go obj/src/stdio/tempnam.lo.go obj/src/stdio/tmpfile.lo.go obj/src/stdio/tmpnam.lo.go obj/src/stdio/ungetc.lo.go obj/src/stdio/ungetwc.lo.go obj/src/stdio/vasprintf.lo.go obj/src/stdio/vdprintf.lo.go obj/src/stdio/vfprintf.lo.go obj/src/stdio/vfscanf.lo.go obj/src/stdio/vfwprintf.lo.go obj/src/stdio/vfwscanf.lo.go obj/src/stdio/vprintf.lo.go obj/src/stdio/vscanf.lo.go obj/src/stdio/vsnprintf.lo.go obj/src/stdio/vsprintf.lo.go obj/src/stdio/vsscanf.lo.go obj/src/stdio/vswprintf.lo.go obj/src/stdio/vswscanf.lo.go obj/src/stdio/vwprintf.lo.go obj/src/stdio/vwscanf.lo.go obj/src/stdio/wprintf.lo.go obj/src/stdio/wscanf.lo.go obj/src/stdlib/abs.lo.go obj/src/stdlib/atof.lo.go obj/src/stdlib/atoi.lo.go obj/src/stdlib/atol.lo.go obj/src/stdlib/atoll.lo.go obj/src/stdlib/bsearch.lo.go obj/src/stdlib/div.lo.go obj/src/stdlib/ecvt.lo.go obj/src/stdlib/fcvt.lo.go obj/src/stdlib/gcvt.lo.go obj/src/stdlib/imaxabs.lo.go obj/src/stdlib/imaxdiv.lo.go obj/src/stdlib/labs.lo.go obj/src/stdlib/ldiv.lo.go obj/src/stdlib/llabs.lo.go obj/src/stdlib/lldiv.lo.go obj/src/stdlib/qsort.lo.go obj/src/stdlib/qsort_nr.lo.go obj/src/stdlib/strtod.lo.go obj/src/stdlib/strtol.lo.go obj/src/stdlib/wcstod.lo.go obj/src/stdlib/wcstol.lo.go obj/src/string/bcmp.lo.go obj/src/string/bcopy.lo.go obj/src/string/bzero.lo.go obj/src/string/explicit_bzero.lo.go obj/src/string/index.lo.go obj/src/string/memccpy.lo.go obj/src/string/memchr.lo.go obj/src/string/memcmp.lo.go obj/src/string/memcpy.lo.go obj/src/string/memmem.lo.go obj/src/string/memmove.lo.go obj/src/string/mempcpy.lo.go obj/src/string/memrchr.lo.go obj/src/string/memset.lo.go obj/src/string/rindex.lo.go obj/src/string/stpcpy.lo.go obj/src/string/stpncpy.lo.go obj/src/string/strcasecmp.lo.go obj/src/string/strcasestr.lo.go obj/src/string/strcat.lo.go obj/src/string/strchr.lo.go obj/src/string/strchrnul.lo.go obj/src/string/strcmp.lo.go obj/src/string/strcpy.lo.go obj/src/string/strcspn.lo.go obj/src/string/strdup.lo.go obj/src/string/strerror_r.lo.go obj/src/string/strlcat.lo.go obj/src/string/strlcpy.lo.go obj/src/string/strlen.lo.go obj/src/string/strncasecmp.lo.go obj/src/string/strncat.lo.go obj/src/string/strncmp.lo.go obj/src/string/strncpy.lo.go obj/src/string/strndup.lo.go obj/src/string/strnlen.lo.go obj/src/string/strpbrk.lo.go obj/src/string/strrchr.lo.go obj/src/string/strsep.lo.go obj/src/string/strsignal.lo.go obj/src/string/strspn.lo.go obj/src/string/strstr.lo.go obj/src/string/strtok.lo.go obj/src/string/strtok_r.lo.go obj/src/string/strverscmp.lo.go obj/src/string/swab.lo.go obj/src/string/wcpcpy.lo.go obj/src/string/wcpncpy.lo.go obj/src/string/wcscasecmp.lo.go obj/src/string/wcscasecmp_l.lo.go obj/src/string/wcscat.lo.go obj/src/string/wcschr.lo.go obj/src/string/wcscmp.lo.go obj/src/string/wcscpy.lo.go obj/src/string/wcscspn.lo.go obj/src/string/wcsdup.lo.go obj/src/string/wcslen.lo.go obj/src/string/wcsncasecmp.lo.go obj/src/string/wcsncasecmp_l.lo.go obj/src/string/wcsncat.lo.go obj/src/string/wcsncmp.lo.go obj/src/string/wcsncpy.lo.go obj/src/string/wcsnlen.lo.go obj/src/string/wcspbrk.lo.go obj/src/string/wcsrchr.lo.go obj/src/string/wcsspn.lo.go obj/src/string/wcsstr.lo.go obj/src/string/wcstok.lo.go obj/src/string/wcswcs.lo.go obj/src/string/wmemchr.lo.go obj/src/string/wmemcmp.lo.go obj/src/string/wmemcpy.lo.go obj/src/string/wmemmove.lo.go obj/src/string/wmemset.lo.go obj/src/temp/mkdtemp.lo.go obj/src/temp/mkostemp.lo.go obj/src/temp/mkostemps.lo.go obj/src/temp/mkstemp.lo.go obj/src/temp/mkstemps.lo.go obj/src/temp/mktemp.lo.go obj/src/termios/cfgetospeed.lo.go obj/src/termios/cfmakeraw.lo.go obj/src/termios/cfsetospeed.lo.go obj/src/termios/tcdrain.lo.go obj/src/termios/tcflow.lo.go obj/src/termios/tcflush.lo.go obj/src/termios/tcgetattr.lo.go obj/src/termios/tcgetsid.lo.go obj/src/termios/tcgetwinsize.lo.go obj/src/termios/tcsendbreak.lo.go obj/src/termios/tcsetattr.lo.go obj/src/termios/tcsetwinsize.lo.go obj/src/time/__map_file.lo.go obj/src/time/__month_to_secs.lo.go obj/src/time/__secs_to_tm.lo.go obj/src/time/__tm_to_secs.lo.go obj/src/time/__tz.lo.go obj/src/time/__year_to_secs.lo.go obj/src/time/asctime.lo.go obj/src/time/asctime_r.lo.go obj/src/time/clock.lo.go obj/src/time/clock_getcpuclockid.lo.go obj/src/time/clock_getres.lo.go obj/src/time/clock_gettime.lo.go obj/src/time/clock_nanosleep.lo.go obj/src/time/clock_settime.lo.go obj/src/time/ctime.lo.go obj/src/time/ctime_r.lo.go obj/src/time/difftime.lo.go obj/src/time/ftime.lo.go obj/src/time/getdate.lo.go obj/src/time/gettimeofday.lo.go obj/src/time/gmtime.lo.go obj/src/time/gmtime_r.lo.go obj/src/time/localtime.lo.go obj/src/time/localtime_r.lo.go obj/src/time/mktime.lo.go obj/src/time/nanosleep.lo.go obj/src/time/strftime.lo.go obj/src/time/strptime.lo.go obj/src/time/time.lo.go obj/src/time/timegm.lo.go obj/src/time/timer_delete.lo.go obj/src/time/timer_getoverrun.lo.go obj/src/time/timer_gettime.lo.go obj/src/time/timer_settime.lo.go obj/src/time/times.lo.go obj/src/time/timespec_get.lo.go obj/src/time/utime.lo.go obj/src/time/wcsftime.lo.go obj/src/unistd/_exit.lo.go obj/src/unistd/access.lo.go obj/src/unistd/acct.lo.go obj/src/unistd/alarm.lo.go obj/src/unistd/chdir.lo.go obj/src/unistd/chown.lo.go obj/src/unistd/close.lo.go obj/src/unistd/ctermid.lo.go obj/src/unistd/dup.lo.go obj/src/unistd/dup2.lo.go obj/src/unistd/dup3.lo.go obj/src/unistd/faccessat.lo.go obj/src/unistd/fchdir.lo.go obj/src/unistd/fchown.lo.go obj/src/unistd/fchownat.lo.go obj/src/unistd/fdatasync.lo.go obj/src/unistd/fsync.lo.go obj/src/unistd/ftruncate.lo.go obj/src/unistd/getcwd.lo.go obj/src/unistd/getegid.lo.go obj/src/unistd/geteuid.lo.go obj/src/unistd/getgid.lo.go obj/src/unistd/getgroups.lo.go obj/src/unistd/gethostname.lo.go obj/src/unistd/getlogin.lo.go obj/src/unistd/getlogin_r.lo.go obj/src/unistd/getpgid.lo.go obj/src/unistd/getpgrp.lo.go obj/src/unistd/getpid.lo.go obj/src/unistd/getppid.lo.go obj/src/unistd/getsid.lo.go obj/src/unistd/getuid.lo.go obj/src/unistd/isatty.lo.go obj/src/unistd/lchown.lo.go obj/src/unistd/link.lo.go obj/src/unistd/linkat.lo.go obj/src/unistd/lseek.lo.go obj/src/unistd/nice.lo.go obj/src/unistd/pause.lo.go obj/src/unistd/pipe.lo.go obj/src/unistd/pipe2.lo.go obj/src/unistd/posix_close.lo.go obj/src/unistd/pread.lo.go obj/src/unistd/preadv.lo.go obj/src/unistd/pwrite.lo.go obj/src/unistd/pwritev.lo.go obj/src/unistd/read.lo.go obj/src/unistd/readlink.lo.go obj/src/unistd/readlinkat.lo.go obj/src/unistd/readv.lo.go obj/src/unistd/renameat.lo.go obj/src/unistd/rmdir.lo.go obj/src/unistd/setgid.lo.go obj/src/unistd/setpgid.lo.go obj/src/unistd/setpgrp.lo.go obj/src/unistd/setsid.lo.go obj/src/unistd/setuid.lo.go obj/src/unistd/setxid.lo.go obj/src/unistd/sleep.lo.go obj/src/unistd/symlink.lo.go obj/src/unistd/symlinkat.lo.go obj/src/unistd/sync.lo.go obj/src/unistd/tcgetpgrp.lo.go obj/src/unistd/tcsetpgrp.lo.go obj/src/unistd/truncate.lo.go obj/src/unistd/ttyname.lo.go obj/src/unistd/ttyname_r.lo.go obj/src/unistd/ualarm.lo.go obj/src/unistd/unlink.lo.go obj/src/unistd/unlinkat.lo.go obj/src/unistd/usleep.lo.go obj/src/unistd/write.lo.go obj/src/unistd/writev.lo.go obj/compat/time32/__xstat.lo.go obj/compat/time32/adjtime32.lo.go obj/compat/time32/adjtimex_time32.lo.go obj/compat/time32/clock_adjtime32.lo.go obj/compat/time32/clock_getres_time32.lo.go obj/compat/time32/clock_gettime32.lo.go obj/compat/time32/clock_nanosleep_time32.lo.go obj/compat/time32/clock_settime32.lo.go obj/compat/time32/ctime32.lo.go obj/compat/time32/ctime32_r.lo.go obj/compat/time32/difftime32.lo.go obj/compat/time32/fstat_time32.lo.go obj/compat/time32/fstatat_time32.lo.go obj/compat/time32/ftime32.lo.go obj/compat/time32/futimens_time32.lo.go obj/compat/time32/futimes_time32.lo.go obj/compat/time32/futimesat_time32.lo.go obj/compat/time32/getitimer_time32.lo.go obj/compat/time32/getrusage_time32.lo.go obj/compat/time32/gettimeofday_time32.lo.go obj/compat/time32/gmtime32.lo.go obj/compat/time32/gmtime32_r.lo.go obj/compat/time32/localtime32.lo.go obj/compat/time32/localtime32_r.lo.go obj/compat/time32/lstat_time32.lo.go obj/compat/time32/lutimes_time32.lo.go obj/compat/time32/mktime32.lo.go obj/compat/time32/nanosleep_time32.lo.go obj/compat/time32/ppoll_time32.lo.go obj/compat/time32/pselect_time32.lo.go obj/compat/time32/recvmmsg_time32.lo.go obj/compat/time32/select_time32.lo.go obj/compat/time32/semtimedop_time32.lo.go obj/compat/time32/setitimer_time32.lo.go obj/compat/time32/settimeofday_time32.lo.go obj/compat/time32/sigtimedwait_time32.lo.go obj/compat/time32/stat_time32.lo.go obj/compat/time32/stime32.lo.go obj/compat/time32/time32.lo.go obj/compat/time32/time32gm.lo.go obj/compat/time32/timer_gettime32.lo.go obj/compat/time32/timer_settime32.lo.go obj/compat/time32/timerfd_gettime32.lo.go obj/compat/time32/timerfd_settime32.lo.go obj/compat/time32/timespec_get_time32.lo.go obj/compat/time32/utime_time32.lo.go obj/compat/time32/utimensat_time32.lo.go obj/compat/time32/utimes_time32.lo.go obj/compat/time32/wait3_time32.lo.go obj/compat/time32/wait4_time32.lo.go -lgcc -lgcc_eh', DO NOT EDIT. + +//go:build linux && 386 + +package libc + +import ( + "math" + "reflect" + "unsafe" +) + +var _ = math.Pi +var _ reflect.Type +var _ unsafe.Pointer + +const BIG_ENDIAN = 4321 +const BYTE_ORDER = 1234 +const DBL_DECIMAL_DIG = 17 +const DBL_DIG = 15 +const DBL_EPSILON = 0 +const DBL_HAS_SUBNORM = 1 +const DBL_MANT_DIG = 53 +const DBL_MAX = 0 +const DBL_MAX_10_EXP = 308 +const DBL_MAX_EXP = 1024 +const DBL_MIN = 0 +const DBL_MIN_10_EXP = -307 +const DBL_MIN_EXP = -1021 +const DBL_TRUE_MIN = 0 +const DECIMAL_DIG = 17 +const FLT_DECIMAL_DIG = 9 +const FLT_DIG = 6 +const FLT_EPSILON = 0 +const FLT_EVAL_METHOD = 0 +const FLT_HAS_SUBNORM = 1 +const FLT_MANT_DIG = 24 +const FLT_MAX = 0 +const FLT_MAX_10_EXP = 38 +const FLT_MAX_EXP = 128 +const FLT_MIN = 0 +const FLT_MIN_10_EXP = -37 +const FLT_MIN_EXP = -125 +const FLT_RADIX = 2 +const FLT_ROUNDS = 0 +const FLT_TRUE_MIN = 0 +const FP_ILOGB0 = -2147483648 +const FP_ILOGBNAN = -2147483648 +const FP_INFINITE = 1 +const FP_NAN = 0 +const FP_NORMAL = 4 +const FP_SUBNORMAL = 3 +const FP_ZERO = 2 +const HUGE_VALF = 0 +const I = 0 +const INFINITY = 0 +const INT16_MAX = 32767 +const INT16_MIN = -32768 +const INT32_MAX = 2147483647 +const INT32_MIN = -2147483648 +const INT64_MAX = 9223372036854775807 +const INT64_MIN = -9223372036854775808 +const INT8_MAX = 127 +const INT8_MIN = -128 +const INTMAX_MAX = 9223372036854775807 +const INTMAX_MIN = -9223372036854775808 +const INTPTR_MAX = 2147483647 +const INTPTR_MIN = -2147483648 +const INT_FAST16_MAX = 2147483647 +const INT_FAST16_MIN = -2147483648 +const INT_FAST32_MAX = 2147483647 +const INT_FAST32_MIN = -2147483648 +const INT_FAST64_MAX = 9223372036854775807 +const INT_FAST64_MIN = -9223372036854775808 +const INT_FAST8_MAX = 127 +const INT_FAST8_MIN = -128 +const INT_LEAST16_MAX = 32767 +const INT_LEAST16_MIN = -32768 +const INT_LEAST32_MAX = 2147483647 +const INT_LEAST32_MIN = -2147483648 +const INT_LEAST64_MAX = 9223372036854775807 +const INT_LEAST64_MIN = -9223372036854775808 +const INT_LEAST8_MAX = 127 +const INT_LEAST8_MIN = -128 +const LDBL_DECIMAL_DIG = 17 +const LDBL_DIG = 15 +const LDBL_EPSILON = 0 +const LDBL_HAS_SUBNORM = 1 +const LDBL_MANT_DIG = 53 +const LDBL_MAX = 0 +const LDBL_MAX_10_EXP = 308 +const LDBL_MAX_EXP = 1024 +const LDBL_MIN = 0 +const LDBL_MIN_10_EXP = -307 +const LDBL_MIN_EXP = -1021 +const LDBL_TRUE_MIN = 0 +const LITTLE_ENDIAN = 1234 +const MATH_ERREXCEPT = 2 +const MATH_ERRNO = 1 +const M_1_PI = 0 +const M_2_PI = 0 +const M_2_SQRTPI = 0 +const M_E = 0 +const M_LN10 = 0 +const M_LN2 = 0 +const M_LOG10E = 0 +const M_LOG2E = 0 +const M_PI = 0 +const M_PI_2 = 0 +const M_PI_4 = 0 +const M_SQRT1_2 = 0 +const M_SQRT2 = 0 +const NAN = 0 +const NDEBUG = 1 +const PDP_ENDIAN = 3412 +const PTRDIFF_MAX = 2147483647 +const PTRDIFF_MIN = -2147483648 +const SIG_ATOMIC_MAX = 2147483647 +const SIG_ATOMIC_MIN = -2147483648 +const SIZE_MAX = 4294967295 +const TOINT_INTRINSICS = 0 +const UINT16_MAX = 65535 +const UINT32_MAX = 4294967295 +const UINT64_MAX = 18446744073709551615 +const UINT8_MAX = 255 +const UINTMAX_MAX = 18446744073709551615 +const UINTPTR_MAX = 4294967295 +const UINT_FAST16_MAX = 4294967295 +const UINT_FAST32_MAX = 4294967295 +const UINT_FAST64_MAX = 18446744073709551615 +const UINT_FAST8_MAX = 255 +const UINT_LEAST16_MAX = 65535 +const UINT_LEAST32_MAX = 4294967295 +const UINT_LEAST64_MAX = 18446744073709551615 +const UINT_LEAST8_MAX = 255 +const WANT_ROUNDING = 1 +const WANT_SNAN = 0 +const WCHAR_MAX = 2147483647 +const WCHAR_MIN = -2147483648 +const WINT_MAX = 4294967295 +const WINT_MIN = 0 +const _Complex_I = 0 +const _FILE_OFFSET_BITS = 64 +const _ILP32 = 1 +const _REDIR_TIME64 = 1 +const _XOPEN_SOURCE = 700 +const __ATOMIC_ACQUIRE = 2 +const __ATOMIC_ACQ_REL = 4 +const __ATOMIC_CONSUME = 1 +const __ATOMIC_HLE_ACQUIRE = 65536 +const __ATOMIC_HLE_RELEASE = 131072 +const __ATOMIC_RELAXED = 0 +const __ATOMIC_RELEASE = 3 +const __ATOMIC_SEQ_CST = 5 +const __BIGGEST_ALIGNMENT__ = 16 +const __BIG_ENDIAN = 4321 +const __BYTE_ORDER = 1234 +const __BYTE_ORDER__ = 1234 +const __CCGO__ = 1 +const __CHAR_BIT__ = 8 +const __DBL_DECIMAL_DIG__ = 17 +const __DBL_DIG__ = 15 +const __DBL_HAS_DENORM__ = 1 +const __DBL_HAS_INFINITY__ = 1 +const __DBL_HAS_QUIET_NAN__ = 1 +const __DBL_IS_IEC_60559__ = 2 +const __DBL_MANT_DIG__ = 53 +const __DBL_MAX_10_EXP__ = 308 +const __DBL_MAX_EXP__ = 1024 +const __DBL_MIN_10_EXP__ = -307 +const __DBL_MIN_EXP__ = -1021 +const __DEC128_EPSILON__ = 0 +const __DEC128_MANT_DIG__ = 34 +const __DEC128_MAX_EXP__ = 6145 +const __DEC128_MAX__ = 0 +const __DEC128_MIN_EXP__ = -6142 +const __DEC128_MIN__ = 0 +const __DEC128_SUBNORMAL_MIN__ = 0 +const __DEC32_EPSILON__ = 0 +const __DEC32_MANT_DIG__ = 7 +const __DEC32_MAX_EXP__ = 97 +const __DEC32_MAX__ = 0 +const __DEC32_MIN_EXP__ = -94 +const __DEC32_MIN__ = 0 +const __DEC32_SUBNORMAL_MIN__ = 0 +const __DEC64_EPSILON__ = 0 +const __DEC64_MANT_DIG__ = 16 +const __DEC64_MAX_EXP__ = 385 +const __DEC64_MAX__ = 0 +const __DEC64_MIN_EXP__ = -382 +const __DEC64_MIN__ = 0 +const __DEC64_SUBNORMAL_MIN__ = 0 +const __DECIMAL_BID_FORMAT__ = 1 +const __DECIMAL_DIG__ = 17 +const __DEC_EVAL_METHOD__ = 2 +const __ELF__ = 1 +const __FINITE_MATH_ONLY__ = 0 +const __FLOAT_WORD_ORDER__ = 1234 +const __FLT128_DECIMAL_DIG__ = 36 +const __FLT128_DENORM_MIN__ = 0 +const __FLT128_DIG__ = 33 +const __FLT128_EPSILON__ = 0 +const __FLT128_HAS_DENORM__ = 1 +const __FLT128_HAS_INFINITY__ = 1 +const __FLT128_HAS_QUIET_NAN__ = 1 +const __FLT128_IS_IEC_60559__ = 2 +const __FLT128_MANT_DIG__ = 113 +const __FLT128_MAX_10_EXP__ = 4932 +const __FLT128_MAX_EXP__ = 16384 +const __FLT128_MAX__ = 0 +const __FLT128_MIN_10_EXP__ = -4931 +const __FLT128_MIN_EXP__ = -16381 +const __FLT128_MIN__ = 0 +const __FLT128_NORM_MAX__ = 0 +const __FLT32X_DECIMAL_DIG__ = 17 +const __FLT32X_DENORM_MIN__ = 0 +const __FLT32X_DIG__ = 15 +const __FLT32X_EPSILON__ = 0 +const __FLT32X_HAS_DENORM__ = 1 +const __FLT32X_HAS_INFINITY__ = 1 +const __FLT32X_HAS_QUIET_NAN__ = 1 +const __FLT32X_IS_IEC_60559__ = 2 +const __FLT32X_MANT_DIG__ = 53 +const __FLT32X_MAX_10_EXP__ = 308 +const __FLT32X_MAX_EXP__ = 1024 +const __FLT32X_MAX__ = 0 +const __FLT32X_MIN_10_EXP__ = -307 +const __FLT32X_MIN_EXP__ = -1021 +const __FLT32X_MIN__ = 0 +const __FLT32X_NORM_MAX__ = 0 +const __FLT32_DECIMAL_DIG__ = 9 +const __FLT32_DENORM_MIN__ = 0 +const __FLT32_DIG__ = 6 +const __FLT32_EPSILON__ = 0 +const __FLT32_HAS_DENORM__ = 1 +const __FLT32_HAS_INFINITY__ = 1 +const __FLT32_HAS_QUIET_NAN__ = 1 +const __FLT32_IS_IEC_60559__ = 2 +const __FLT32_MANT_DIG__ = 24 +const __FLT32_MAX_10_EXP__ = 38 +const __FLT32_MAX_EXP__ = 128 +const __FLT32_MAX__ = 0 +const __FLT32_MIN_10_EXP__ = -37 +const __FLT32_MIN_EXP__ = -125 +const __FLT32_MIN__ = 0 +const __FLT32_NORM_MAX__ = 0 +const __FLT64X_DECIMAL_DIG__ = 36 +const __FLT64X_DENORM_MIN__ = 0 +const __FLT64X_DIG__ = 33 +const __FLT64X_EPSILON__ = 0 +const __FLT64X_HAS_DENORM__ = 1 +const __FLT64X_HAS_INFINITY__ = 1 +const __FLT64X_HAS_QUIET_NAN__ = 1 +const __FLT64X_IS_IEC_60559__ = 2 +const __FLT64X_MANT_DIG__ = 113 +const __FLT64X_MAX_10_EXP__ = 4932 +const __FLT64X_MAX_EXP__ = 16384 +const __FLT64X_MAX__ = 0 +const __FLT64X_MIN_10_EXP__ = -4931 +const __FLT64X_MIN_EXP__ = -16381 +const __FLT64X_MIN__ = 0 +const __FLT64X_NORM_MAX__ = 0 +const __FLT64_DECIMAL_DIG__ = 17 +const __FLT64_DENORM_MIN__ = 0 +const __FLT64_DIG__ = 15 +const __FLT64_EPSILON__ = 0 +const __FLT64_HAS_DENORM__ = 1 +const __FLT64_HAS_INFINITY__ = 1 +const __FLT64_HAS_QUIET_NAN__ = 1 +const __FLT64_IS_IEC_60559__ = 2 +const __FLT64_MANT_DIG__ = 53 +const __FLT64_MAX_10_EXP__ = 308 +const __FLT64_MAX_EXP__ = 1024 +const __FLT64_MAX__ = 0 +const __FLT64_MIN_10_EXP__ = -307 +const __FLT64_MIN_EXP__ = -1021 +const __FLT64_MIN__ = 0 +const __FLT64_NORM_MAX__ = 0 +const __FLT_DECIMAL_DIG__ = 9 +const __FLT_DENORM_MIN__ = 0 +const __FLT_DIG__ = 6 +const __FLT_EPSILON__ = 0 +const __FLT_EVAL_METHOD_TS_18661_3__ = 2 +const __FLT_EVAL_METHOD__ = 2 +const __FLT_HAS_DENORM__ = 1 +const __FLT_HAS_INFINITY__ = 1 +const __FLT_HAS_QUIET_NAN__ = 1 +const __FLT_IS_IEC_60559__ = 2 +const __FLT_MANT_DIG__ = 24 +const __FLT_MAX_10_EXP__ = 38 +const __FLT_MAX_EXP__ = 128 +const __FLT_MAX__ = 0 +const __FLT_MIN_10_EXP__ = -37 +const __FLT_MIN_EXP__ = -125 +const __FLT_MIN__ = 0 +const __FLT_NORM_MAX__ = 0 +const __FLT_RADIX__ = 2 +const __FUNCTION__ = 0 +const __GCC_ASM_FLAG_OUTPUTS__ = 1 +const __GCC_ATOMIC_BOOL_LOCK_FREE = 2 +const __GCC_ATOMIC_CHAR16_T_LOCK_FREE = 2 +const __GCC_ATOMIC_CHAR32_T_LOCK_FREE = 2 +const __GCC_ATOMIC_CHAR_LOCK_FREE = 2 +const __GCC_ATOMIC_INT_LOCK_FREE = 2 +const __GCC_ATOMIC_LLONG_LOCK_FREE = 2 +const __GCC_ATOMIC_LONG_LOCK_FREE = 2 +const __GCC_ATOMIC_POINTER_LOCK_FREE = 2 +const __GCC_ATOMIC_SHORT_LOCK_FREE = 2 +const __GCC_ATOMIC_TEST_AND_SET_TRUEVAL = 1 +const __GCC_ATOMIC_WCHAR_T_LOCK_FREE = 2 +const __GCC_CONSTRUCTIVE_SIZE = 64 +const __GCC_DESTRUCTIVE_SIZE = 64 +const __GCC_HAVE_DWARF2_CFI_ASM = 1 +const __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1 = 1 +const __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2 = 1 +const __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 = 1 +const __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 = 1 +const __GCC_IEC_559 = 2 +const __GCC_IEC_559_COMPLEX = 2 +const __GNUC_EXECUTION_CHARSET_NAME = "UTF-8" +const __GNUC_MINOR__ = 2 +const __GNUC_PATCHLEVEL__ = 0 +const __GNUC_STDC_INLINE__ = 1 +const __GNUC_WIDE_EXECUTION_CHARSET_NAME = "UTF-32LE" +const __GNUC__ = 12 +const __GXX_ABI_VERSION = 1017 +const __HAVE_SPECULATION_SAFE_VALUE = 1 +const __ILP32__ = 1 +const __INT16_MAX__ = 32767 +const __INT32_MAX__ = 2147483647 +const __INT32_TYPE__ = 0 +const __INT64_MAX__ = 9223372036854775807 +const __INT8_MAX__ = 127 +const __INTMAX_MAX__ = 9223372036854775807 +const __INTMAX_WIDTH__ = 64 +const __INTPTR_MAX__ = 2147483647 +const __INTPTR_TYPE__ = 0 +const __INTPTR_WIDTH__ = 32 +const __INT_FAST16_MAX__ = 2147483647 +const __INT_FAST16_TYPE__ = 0 +const __INT_FAST16_WIDTH__ = 32 +const __INT_FAST32_MAX__ = 2147483647 +const __INT_FAST32_TYPE__ = 0 +const __INT_FAST32_WIDTH__ = 32 +const __INT_FAST64_MAX__ = 9223372036854775807 +const __INT_FAST64_WIDTH__ = 64 +const __INT_FAST8_MAX__ = 127 +const __INT_FAST8_WIDTH__ = 8 +const __INT_LEAST16_MAX__ = 32767 +const __INT_LEAST16_WIDTH__ = 16 +const __INT_LEAST32_MAX__ = 2147483647 +const __INT_LEAST32_TYPE__ = 0 +const __INT_LEAST32_WIDTH__ = 32 +const __INT_LEAST64_MAX__ = 9223372036854775807 +const __INT_LEAST64_WIDTH__ = 64 +const __INT_LEAST8_MAX__ = 127 +const __INT_LEAST8_WIDTH__ = 8 +const __INT_MAX__ = 2147483647 +const __INT_WIDTH__ = 32 +const __LAHF_SAHF__ = 1 +const __LDBL_DECIMAL_DIG__ = 17 +const __LDBL_DENORM_MIN__ = 0 +const __LDBL_DIG__ = 15 +const __LDBL_EPSILON__ = 0 +const __LDBL_HAS_DENORM__ = 1 +const __LDBL_HAS_INFINITY__ = 1 +const __LDBL_HAS_QUIET_NAN__ = 1 +const __LDBL_IS_IEC_60559__ = 2 +const __LDBL_MANT_DIG__ = 53 +const __LDBL_MAX_10_EXP__ = 308 +const __LDBL_MAX_EXP__ = 1024 +const __LDBL_MAX__ = 0 +const __LDBL_MIN_10_EXP__ = -307 +const __LDBL_MIN_EXP__ = -1021 +const __LDBL_MIN__ = 0 +const __LDBL_NORM_MAX__ = 0 +const __LITTLE_ENDIAN = 1234 +const __LONG_DOUBLE_64__ = 1 +const __LONG_LONG_MAX__ = 9223372036854775807 +const __LONG_LONG_WIDTH__ = 64 +const __LONG_MAX = 2147483647 +const __LONG_MAX__ = 2147483647 +const __LONG_WIDTH__ = 32 +const __NO_INLINE__ = 1 +const __ORDER_BIG_ENDIAN__ = 4321 +const __ORDER_LITTLE_ENDIAN__ = 1234 +const __ORDER_PDP_ENDIAN__ = 3412 +const __PDP_ENDIAN = 3412 +const __PIC__ = 2 +const __PIE__ = 2 +const __PRAGMA_REDEFINE_EXTNAME = 1 +const __PRETTY_FUNCTION__ = 0 +const __PTRDIFF_MAX__ = 2147483647 +const __PTRDIFF_TYPE__ = 0 +const __PTRDIFF_WIDTH__ = 32 +const __SCHAR_MAX__ = 127 +const __SCHAR_WIDTH__ = 8 +const __SEG_FS = 1 +const __SEG_GS = 1 +const __SHRT_MAX__ = 32767 +const __SHRT_WIDTH__ = 16 +const __SIG_ATOMIC_MAX__ = 2147483647 +const __SIG_ATOMIC_MIN__ = -2147483648 +const __SIG_ATOMIC_TYPE__ = 0 +const __SIG_ATOMIC_WIDTH__ = 32 +const __SIZEOF_DOUBLE__ = 8 +const __SIZEOF_FLOAT128__ = 16 +const __SIZEOF_FLOAT80__ = 12 +const __SIZEOF_FLOAT__ = 4 +const __SIZEOF_INT__ = 4 +const __SIZEOF_LONG_DOUBLE__ = 8 +const __SIZEOF_LONG_LONG__ = 8 +const __SIZEOF_LONG__ = 4 +const __SIZEOF_POINTER__ = 4 +const __SIZEOF_PTRDIFF_T__ = 4 +const __SIZEOF_SHORT__ = 2 +const __SIZEOF_SIZE_T__ = 4 +const __SIZEOF_WCHAR_T__ = 4 +const __SIZEOF_WINT_T__ = 4 +const __SIZE_MAX__ = 4294967295 +const __SIZE_WIDTH__ = 32 +const __STDC_HOSTED__ = 0 +const __STDC_VERSION__ = 199901 +const __STDC__ = 1 +const __STRICT_ANSI__ = 1 +const __UINT16_MAX__ = 65535 +const __UINT32_MAX__ = 4294967295 +const __UINT64_MAX__ = 18446744073709551615 +const __UINT8_MAX__ = 255 +const __UINTMAX_MAX__ = 18446744073709551615 +const __UINTPTR_MAX__ = 4294967295 +const __UINT_FAST16_MAX__ = 4294967295 +const __UINT_FAST32_MAX__ = 4294967295 +const __UINT_FAST64_MAX__ = 18446744073709551615 +const __UINT_FAST8_MAX__ = 255 +const __UINT_LEAST16_MAX__ = 65535 +const __UINT_LEAST32_MAX__ = 4294967295 +const __UINT_LEAST64_MAX__ = 18446744073709551615 +const __UINT_LEAST8_MAX__ = 255 +const __USE_TIME_BITS64 = 1 +const __VERSION__ = "12.2.0" +const __WCHAR_MAX__ = 2147483647 +const __WCHAR_MIN__ = -2147483648 +const __WCHAR_WIDTH__ = 32 +const __WINT_MAX__ = 4294967295 +const __WINT_MIN__ = 0 +const __WINT_WIDTH__ = 32 +const __code_model_32__ = 1 +const __gnu_linux__ = 1 +const __i386 = 1 +const __i386__ = 1 +const __i686 = 1 +const __i686__ = 1 +const __inline = 0 +const __linux = 1 +const __linux__ = 1 +const __pentiumpro = 1 +const __pentiumpro__ = 1 +const __pic__ = 2 +const __pie__ = 2 +const __restrict = 0 +const __restrict_arr = 0 +const __unix = 1 +const __unix__ = 1 +const complex1 = 0 +const math_errhandling = 2 + +type t__builtin_va_list = uintptr + +type t__predefined_size_t = uint32 + +type t__predefined_wchar_t = int32 + +type t__predefined_ptrdiff_t = int32 + +type Tuintptr_t = uint32 + +type Tintptr_t = int32 + +type Tint8_t = int8 + +type Tint16_t = int16 + +type Tint32_t = int32 + +type Tint64_t = int64 + +type Tintmax_t = int64 + +type Tuint8_t = uint8 + +type Tuint16_t = uint16 + +type Tuint32_t = uint32 + +type Tuint64_t = uint64 + +type Tuintmax_t = uint64 + +type Tint_fast8_t = int8 + +type Tint_fast64_t = int64 + +type Tint_least8_t = int8 + +type Tint_least16_t = int16 + +type Tint_least32_t = int32 + +type Tint_least64_t = int64 + +type Tuint_fast8_t = uint8 + +type Tuint_fast64_t = uint64 + +type Tuint_least8_t = uint8 + +type Tuint_least16_t = uint16 + +type Tuint_least32_t = uint32 + +type Tuint_least64_t = uint64 + +type Tint_fast16_t = int32 + +type Tint_fast32_t = int32 + +type Tuint_fast16_t = uint32 + +type Tuint_fast32_t = uint32 + +type Tfloat_t = float64 + +type Tdouble_t = float64 + +var _k = uint32(1799) /* constant for reduction */ +var _kln2 = float64(1246.9717778273416) /* k * ln2 */ + +// C documentation +// +// /* +// * Compute exp(x), scaled to avoid spurious overflow. An exponent is +// * returned separately in 'expt'. +// * +// * Input: ln(DBL_MAX) <= x < ln(2 * DBL_MAX / DBL_MIN_DENORM) ~= 1454.91 +// * Output: 2**1023 <= y < 2**1024 +// */ +func ___frexp_exp(tls *TLS, x float64, expt uintptr) (r float64) { + var exp_x float64 + var hx Tuint32_t + var v1 Tuint64_t + _, _, _ = exp_x, hx, v1 + /* + * We use exp(x) = exp(x - kln2) * 2**k, carefully chosen to + * minimize |exp(kln2) - 2**k|. We also scale the exponent of + * exp_x to MAX_EXP so that the result can be multiplied by + * a tiny number without losing accuracy due to denormalization. + */ + exp_x = Xexp(tls, x-_kln2) + hx = uint32(*(*Tuint64_t)(unsafe.Pointer(&exp_x)) >> int32(32)) + **(**int32)(__ccgo_up(expt)) = Int32FromUint32(hx>>Int32FromInt32(20) - Uint32FromInt32(Int32FromInt32(0x3ff)+Int32FromInt32(1023)) + _k) + v1 = uint64(hx&Uint32FromInt32(0xfffff)|Uint32FromInt32((Int32FromInt32(0x3ff)+Int32FromInt32(1023))<= ln(DBL_MAX)) +// * where care is needed to avoid overflow. +// * +// * The present implementation is narrowly tailored for our hyperbolic and +// * exponential functions. We assume expt is small (0 or -1), and the caller +// * has filtered out very large x, for which overflow would be inevitable. +// */ +func X__ldexp_cexp(tls *TLS, z complex128, expt int32) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v expt=%v, (%v:)", tls, z, expt, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var exp_x, scale1, scale2, x, y float64 + var half_expt int32 + var v1 Tuint64_t + var v3 [2]float64 + var _ /* ex_expt at bp+0 */ int32 + _, _, _, _, _, _, _, _ = exp_x, half_expt, scale1, scale2, x, y, v1, v3 + x = Float64FromComplex128(z) + y = +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] + exp_x = ___frexp_exp(tls, x, bp) + expt = expt + **(**int32)(__ccgo_up(bp)) + /* + * Arrange so that scale1 * scale2 == 2**expt. We use this to + * compensate for scalbn being horrendously slow. + */ + half_expt = expt / int32(2) + v1 = Uint64FromInt32((Int32FromInt32(0x3ff)+half_expt)<>Int32FromInt32(23) - Uint32FromInt32(Int32FromInt32(0x7f)+Int32FromInt32(127)) + _k1) + v1 = hx&uint32(0x7fffff) | Uint32FromInt32((Int32FromInt32(0x7f)+Int32FromInt32(127))< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var exp_x, scale1, scale2, x, y float32 + var half_expt int32 + var v1 Tuint32_t + var v3 [2]float32 + var _ /* ex_expt at bp+0 */ int32 + _, _, _, _, _, _, _, _ = exp_x, half_expt, scale1, scale2, x, y, v1, v3 + x = Float32FromComplex64(z) + y = +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] + exp_x = ___frexp_expf(tls, x, bp) + expt = expt + **(**int32)(__ccgo_up(bp)) + half_expt = expt / int32(2) + v1 = Uint32FromInt32((int32(0x7f) + half_expt) << int32(23)) + scale1 = *(*float32)(unsafe.Pointer(&v1)) + half_expt = expt - half_expt + v1 = Uint32FromInt32((int32(0x7f) + half_expt) << int32(23)) + scale2 = *(*float32)(unsafe.Pointer(&v1)) + v3 = [2]float32{ + 0: float32(float32(float32(Xcosf(tls, y)*exp_x)*scale1) * scale2), + 1: float32(float32(float32(Xsinf(tls, y)*exp_x)*scale1) * scale2), + } + return *(*complex64)(unsafe.Pointer(&v3)) +} + +func Xcabs(tls *TLS, z complex128) (r float64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xhypot(tls, Float64FromComplex128(z), +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)]) +} + +func Xcabsf(tls *TLS, z complex64) (r float32) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xhypotf(tls, Float32FromComplex64(z), +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)]) +} + +func Xcabsl(tls *TLS, z complex128) (r float64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xcabs(tls, Complex128FromComplex128(z)) +} + +const M_PI_21 = 1.5707963267948966 + +// FIXME: Hull et al. "Implementing the complex arcsine and arccosine functions using exception handling" 1997 + +/* acos(z) = pi/2 - asin(z) */ + +func Xcacos(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float64 + _ = v1 + z = Xcasin(tls, z) + v1 = [2]float64{ + 0: float64(1.5707963267948966) - Float64FromComplex128(z), + 1: -+(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +// FIXME + +var _float_pi_2 = float32(1.5707963267948966) + +func Xcacosf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float32 + _ = v1 + z = Xcasinf(tls, z) + v1 = [2]float32{ + 0: _float_pi_2 - Float32FromComplex64(z), + 1: -+(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + } + return *(*complex64)(unsafe.Pointer(&v1)) +} + +const M_PI_22 = 0 + +/* acosh(z) = i acos(z) */ + +func Xcacosh(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var zineg int32 + var v1 uint64 + var v3 [2]float64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _, _, _ = zineg, v1, v3 + *(*float64)(unsafe.Pointer(bp)) = +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + zineg = Int32FromUint64(v1 >> Int32FromInt32(63)) + z = Xcacos(tls, z) + if zineg != 0 { + v3 = [2]float64{ + 0: +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: -Float64FromComplex128(z), + } + return *(*complex128)(unsafe.Pointer(&v3)) + } else { + v3 = [2]float64{ + 0: -+(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: Float64FromComplex128(z), + } + return *(*complex128)(unsafe.Pointer(&v3)) + } + return r +} + +func Xcacoshf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var zineg int32 + var v1 uint32 + var v3 [2]float32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _, _, _ = zineg, v1, v3 + *(*float32)(unsafe.Pointer(bp)) = +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + zineg = Int32FromUint32(v1 >> Int32FromInt32(31)) + z = Xcacosf(tls, z) + if zineg != 0 { + v3 = [2]float32{ + 0: +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: -Float32FromComplex64(z), + } + return *(*complex64)(unsafe.Pointer(&v3)) + } else { + v3 = [2]float32{ + 0: -+(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: Float32FromComplex64(z), + } + return *(*complex64)(unsafe.Pointer(&v3)) + } + return r +} + +func Xcacoshl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcacosh(tls, Complex128FromComplex128(z))) +} + +func Xcacosl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcacos(tls, Complex128FromComplex128(z))) +} + +func Xcarg(tls *TLS, z complex128) (r float64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xatan2(tls, +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], Float64FromComplex128(z)) +} + +func Xcargf(tls *TLS, z complex64) (r float32) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xatan2f(tls, +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], Float32FromComplex64(z)) +} + +func Xcargl(tls *TLS, z complex128) (r float64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xcarg(tls, Complex128FromComplex128(z)) +} + +// FIXME + +/* asin(z) = -i log(i z + sqrt(1 - z*z)) */ + +func Xcasin(tls *TLS, z complex128) (r1 complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, w complex128 + var x, y float64 + var v1, v2 [2]float64 + _, _, _, _, _, _ = r, w, x, y, v1, v2 + x = Float64FromComplex128(z) + y = +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] + v1 = [2]float64{ + 0: float64(1) - float64((x-y)*(x+y)), + 1: float64(float64(-Float64FromFloat64(2)*x) * y), + } + w = *(*complex128)(unsafe.Pointer(&v1)) + v1 = [2]float64{ + 0: -y, + 1: x, + } + r = Xclog(tls, *(*complex128)(unsafe.Pointer(&v1))+Xcsqrt(tls, w)) + v2 = [2]float64{ + 0: +(*(*[2]float64)(unsafe.Pointer(&r)))[int32(1)], + 1: -Float64FromComplex128(r), + } + return *(*complex128)(unsafe.Pointer(&v2)) +} + +// FIXME + +func Xcasinf(tls *TLS, z complex64) (r1 complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, w complex64 + var x, y float32 + var v1, v2 [2]float32 + _, _, _, _, _, _ = r, w, x, y, v1, v2 + x = Float32FromComplex64(z) + y = +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] + v1 = [2]float32{ + 0: float32(Float64FromFloat64(1) - float64((x-y)*(x+y))), + 1: float32(float64(float64(-Float64FromFloat64(2)*float64(x)) * float64(y))), + } + w = *(*complex64)(unsafe.Pointer(&v1)) + v1 = [2]float32{ + 0: -y, + 1: x, + } + r = Xclogf(tls, *(*complex64)(unsafe.Pointer(&v1))+Xcsqrtf(tls, w)) + v2 = [2]float32{ + 0: +(*(*[2]float32)(unsafe.Pointer(&r)))[int32(1)], + 1: -Float32FromComplex64(r), + } + return *(*complex64)(unsafe.Pointer(&v2)) +} + +/* asinh(z) = -i asin(i z) */ + +func Xcasinh(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float64 + _ = v1 + v1 = [2]float64{ + 0: -+(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: Float64FromComplex128(z), + } + z = Xcasin(tls, *(*complex128)(unsafe.Pointer(&v1))) + v1 = [2]float64{ + 0: +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: -Float64FromComplex128(z), + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +func Xcasinhf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float32 + _ = v1 + v1 = [2]float32{ + 0: -+(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: Float32FromComplex64(z), + } + z = Xcasinf(tls, *(*complex64)(unsafe.Pointer(&v1))) + v1 = [2]float32{ + 0: +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: -Float32FromComplex64(z), + } + return *(*complex64)(unsafe.Pointer(&v1)) +} + +func Xcasinhl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcasinh(tls, Complex128FromComplex128(z))) +} + +func Xcasinl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcasin(tls, Complex128FromComplex128(z))) +} + +const MAXNUM = 0 +const M_PI1 = 3.141592653589793 + +var _DP1 = float64(3.141592651605606) +var _DP2 = float64(1.9841871479187034e-09) +var _DP3 = float64(1.1442377452219664e-17) + +func __redupi(tls *TLS, x float64) (r float64) { + var i int32 + var t float64 + _, _ = i, t + t = x / float64(3.141592653589793) + if t >= float64(0) { + t = t + float64(0.5) + } else { + t = t - float64(0.5) + } + i = int32(t) /* the multiple */ + t = float64(i) + t = x - float64(t*_DP1) - float64(t*_DP2) - float64(t*_DP3) + return t +} + +func Xcatan(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, t, x, x2, y float64 + var w complex128 + var v1 [2]float64 + _, _, _, _, _, _, _ = a, t, w, x, x2, y, v1 + x = Float64FromComplex128(z) + y = +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] + x2 = float64(x * x) + a = float64(1) - x2 - float64(y*y) + t = float64(float64(0.5) * Xatan2(tls, float64(float64(2)*x), a)) + w = Complex128FromFloat64(__redupi(tls, t)) + t = y - float64(1) + a = x2 + float64(t*t) + t = y + float64(1) + a = (x2 + float64(t*t)) / a + v1 = [2]float64{ + 0: Float64FromComplex128(w), + 1: float64(float64(0.25) * Xlog(tls, a)), + } + w = *(*complex128)(unsafe.Pointer(&v1)) + return w +} + +const MAXNUMF = 0 + +var _DP11 = float64(3.140625) +var _DP21 = float64(0.0009675025939941406) +var _DP31 = float64(1.5099579909783765e-07) + +var _float_pi = float32(3.141592653589793) + +func __redupif(tls *TLS, xx float32) (r float32) { + var i int32 + var t, x float32 + _, _, _ = i, t, x + x = xx + t = x / _float_pi + if t >= Float32FromFloat32(0) { + t = t + Float32FromFloat32(0.5) + } else { + t = t - Float32FromFloat32(0.5) + } + i = int32(t) /* the multiple */ + t = float32(i) + t = float32(float64(x) - float64(float64(t)*_DP11) - float64(float64(t)*_DP21) - float64(float64(t)*_DP31)) + return t +} + +func Xcatanf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, t, x, x2, y float32 + var w complex64 + var v1 [2]float32 + _, _, _, _, _, _, _ = a, t, w, x, x2, y, v1 + x = Float32FromComplex64(z) + y = +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] + x2 = float32(x * x) + a = Float32FromFloat32(1) - x2 - float32(y*y) + t = float32(Float32FromFloat32(0.5) * Xatan2f(tls, float32(Float32FromFloat32(2)*x), a)) + w = Complex64FromFloat32(__redupif(tls, t)) + t = y - Float32FromFloat32(1) + a = x2 + float32(t*t) + t = y + Float32FromFloat32(1) + a = (x2 + float32(t*t)) / a + v1 = [2]float32{ + 0: Float32FromComplex64(w), + 1: float32(Float32FromFloat32(0.25) * Xlogf(tls, a)), + } + w = *(*complex64)(unsafe.Pointer(&v1)) + return w +} + +const M_PI2 = 0 + +/* atanh = -i atan(i z) */ + +func Xcatanh(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float64 + _ = v1 + v1 = [2]float64{ + 0: -+(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: Float64FromComplex128(z), + } + z = Xcatan(tls, *(*complex128)(unsafe.Pointer(&v1))) + v1 = [2]float64{ + 0: +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: -Float64FromComplex128(z), + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +func Xcatanhf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float32 + _ = v1 + v1 = [2]float32{ + 0: -+(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: Float32FromComplex64(z), + } + z = Xcatanf(tls, *(*complex64)(unsafe.Pointer(&v1))) + v1 = [2]float32{ + 0: +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: -Float32FromComplex64(z), + } + return *(*complex64)(unsafe.Pointer(&v1)) +} + +func Xcatanhl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcatanh(tls, Complex128FromComplex128(z))) +} + +func Xcatanl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcatan(tls, Complex128FromComplex128(z))) +} + +/* cos(z) = cosh(i z) */ + +func Xccos(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float64 + _ = v1 + v1 = [2]float64{ + 0: -+(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: Float64FromComplex128(z), + } + return Xccosh(tls, *(*complex128)(unsafe.Pointer(&v1))) +} + +func Xccosf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float32 + _ = v1 + v1 = [2]float32{ + 0: -+(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: Float32FromComplex64(z), + } + return Xccoshf(tls, *(*complex64)(unsafe.Pointer(&v1))) +} + +var _huge = float64(8.98846567431158e+307) + +func Xccosh(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __u, __u1 Tuint64_t + var h, x, y float64 + var hx, hy, ix, iy, lx, ly Tint32_t + var v1 [2]float64 + _, _, _, _, _, _, _, _, _, _, _, _ = __u, __u1, h, hx, hy, ix, iy, lx, ly, x, y, v1 + x = Float64FromComplex128(z) + y = +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] + __u = *(*Tuint64_t)(unsafe.Pointer(&x)) + hx = Int32FromUint64(__u >> int32(32)) + lx = Int32FromUint32(uint32(__u)) + __u1 = *(*Tuint64_t)(unsafe.Pointer(&y)) + hy = Int32FromUint64(__u1 >> int32(32)) + ly = Int32FromUint32(uint32(__u1)) + ix = int32(0x7fffffff) & hx + iy = int32(0x7fffffff) & hy + /* Handle the nearly-non-exceptional cases where x and y are finite. */ + if ix < int32(0x7ff00000) && iy < int32(0x7ff00000) { + if iy|ly == 0 { + v1 = [2]float64{ + 0: Xcosh(tls, x), + 1: float64(x * y), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + if ix < int32(0x40360000) { /* small x: normal case */ + v1 = [2]float64{ + 0: float64(Xcosh(tls, x) * Xcos(tls, y)), + 1: float64(Xsinh(tls, x) * Xsin(tls, y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* |x| >= 22, so cosh(x) ~= exp(|x|) */ + if ix < int32(0x40862e42) { + /* x < 710: exp(|x|) won't overflow */ + h = float64(Xexp(tls, Xfabs(tls, x)) * float64(0.5)) + v1 = [2]float64{ + 0: float64(h * Xcos(tls, y)), + 1: float64(Xcopysign(tls, h, x) * Xsin(tls, y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } else { + if ix < int32(0x4096bbaa) { + /* x < 1455: scale to avoid overflow */ + v1 = [2]float64{ + 0: Xfabs(tls, x), + 1: y, + } + z = X__ldexp_cexp(tls, *(*complex128)(unsafe.Pointer(&v1)), -int32(1)) + v1 = [2]float64{ + 0: Float64FromComplex128(z), + 1: float64(+(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] * Xcopysign(tls, Float64FromInt32(1), x)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } else { + /* x >= 1455: the result always overflows */ + h = float64(_huge * x) + v1 = [2]float64{ + 0: float64(float64(h*h) * Xcos(tls, y)), + 1: float64(h * Xsin(tls, y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + } + } + /* + * cosh(+-0 +- I Inf) = dNaN + I sign(d(+-0, dNaN))0. + * The sign of 0 in the result is unspecified. Choice = normally + * the same as dNaN. Raise the invalid floating-point exception. + * + * cosh(+-0 +- I NaN) = d(NaN) + I sign(d(+-0, NaN))0. + * The sign of 0 in the result is unspecified. Choice = normally + * the same as d(NaN). + */ + if ix|lx == 0 && iy >= int32(0x7ff00000) { + v1 = [2]float64{ + 0: y - y, + 1: Xcopysign(tls, Float64FromInt32(0), float64(x*(y-y))), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* + * cosh(+-Inf +- I 0) = +Inf + I (+-)(+-)0. + * + * cosh(NaN +- I 0) = d(NaN) + I sign(d(NaN, +-0))0. + * The sign of 0 in the result is unspecified. + */ + if iy|ly == 0 && ix >= int32(0x7ff00000) { + if hx&int32(0xfffff)|lx == 0 { + v1 = [2]float64{ + 0: float64(x * x), + 1: float64(Xcopysign(tls, Float64FromInt32(0), x) * y), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + v1 = [2]float64{ + 0: float64(x * x), + 1: Xcopysign(tls, Float64FromInt32(0), float64((x+x)*y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* + * cosh(x +- I Inf) = dNaN + I dNaN. + * Raise the invalid floating-point exception for finite nonzero x. + * + * cosh(x + I NaN) = d(NaN) + I d(NaN). + * Optionally raises the invalid floating-point exception for finite + * nonzero x. Choice = don't raise (except for signaling NaNs). + */ + if ix < int32(0x7ff00000) && iy >= int32(0x7ff00000) { + v1 = [2]float64{ + 0: y - y, + 1: float64(x * (y - y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* + * cosh(+-Inf + I NaN) = +Inf + I d(NaN). + * + * cosh(+-Inf +- I Inf) = +Inf + I dNaN. + * The sign of Inf in the result is unspecified. Choice = always +. + * Raise the invalid floating-point exception. + * + * cosh(+-Inf + I y) = +Inf cos(y) +- I Inf sin(y) + */ + if ix >= int32(0x7ff00000) && hx&int32(0xfffff)|lx == 0 { + if iy >= int32(0x7ff00000) { + v1 = [2]float64{ + 0: float64(x * x), + 1: float64(x * (y - y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + v1 = [2]float64{ + 0: float64(float64(x*x) * Xcos(tls, y)), + 1: float64(x * Xsin(tls, y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* + * cosh(NaN + I NaN) = d(NaN) + I d(NaN). + * + * cosh(NaN +- I Inf) = d(NaN) + I d(NaN). + * Optionally raises the invalid floating-point exception. + * Choice = raise. + * + * cosh(NaN + I y) = d(NaN) + I d(NaN). + * Optionally raises the invalid floating-point exception for finite + * nonzero y. Choice = don't raise (except for signaling NaNs). + */ + v1 = [2]float64{ + 0: float64(float64(x*x) * (y - y)), + 1: float64((x + x) * (y - y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +var _huge1 = float32(1.7014118346046923e+38) + +func Xccoshf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var h, x, y float32 + var hx, hy, ix, iy Tint32_t + var v1 [2]float32 + _, _, _, _, _, _, _, _ = h, hx, hy, ix, iy, x, y, v1 + x = Float32FromComplex64(z) + y = +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] + hx = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(&x))) + hy = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(&y))) + ix = int32(0x7fffffff) & hx + iy = int32(0x7fffffff) & hy + if ix < int32(0x7f800000) && iy < int32(0x7f800000) { + if iy == 0 { + v1 = [2]float32{ + 0: Xcoshf(tls, x), + 1: float32(x * y), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + if ix < int32(0x41100000) { /* small x: normal case */ + v1 = [2]float32{ + 0: float32(Xcoshf(tls, x) * Xcosf(tls, y)), + 1: float32(Xsinhf(tls, x) * Xsinf(tls, y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + /* |x| >= 9, so cosh(x) ~= exp(|x|) */ + if ix < int32(0x42b17218) { + /* x < 88.7: expf(|x|) won't overflow */ + h = float32(Xexpf(tls, Xfabsf(tls, x)) * Float32FromFloat32(0.5)) + v1 = [2]float32{ + 0: float32(h * Xcosf(tls, y)), + 1: float32(Xcopysignf(tls, h, x) * Xsinf(tls, y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } else { + if ix < int32(0x4340b1e7) { + /* x < 192.7: scale to avoid overflow */ + v1 = [2]float32{ + 0: Xfabsf(tls, x), + 1: y, + } + z = X__ldexp_cexpf(tls, *(*complex64)(unsafe.Pointer(&v1)), -int32(1)) + v1 = [2]float32{ + 0: Float32FromComplex64(z), + 1: float32(+(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] * Xcopysignf(tls, Float32FromInt32(1), x)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } else { + /* x >= 192.7: the result always overflows */ + h = float32(_huge1 * x) + v1 = [2]float32{ + 0: float32(float32(h*h) * Xcosf(tls, y)), + 1: float32(h * Xsinf(tls, y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + } + } + if ix == 0 && iy >= int32(0x7f800000) { + v1 = [2]float32{ + 0: y - y, + 1: Xcopysignf(tls, Float32FromInt32(0), float32(x*(y-y))), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + if iy == 0 && ix >= int32(0x7f800000) { + if hx&int32(0x7fffff) == 0 { + v1 = [2]float32{ + 0: float32(x * x), + 1: float32(Xcopysignf(tls, Float32FromInt32(0), x) * y), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + v1 = [2]float32{ + 0: float32(x * x), + 1: Xcopysignf(tls, Float32FromInt32(0), float32((x+x)*y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + if ix < int32(0x7f800000) && iy >= int32(0x7f800000) { + v1 = [2]float32{ + 0: y - y, + 1: float32(x * (y - y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + if ix >= int32(0x7f800000) && hx&int32(0x7fffff) == 0 { + if iy >= int32(0x7f800000) { + v1 = [2]float32{ + 0: float32(x * x), + 1: float32(x * (y - y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + v1 = [2]float32{ + 0: float32(float32(x*x) * Xcosf(tls, y)), + 1: float32(x * Xsinf(tls, y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + v1 = [2]float32{ + 0: float32(float32(x*x) * (y - y)), + 1: float32((x + x) * (y - y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) +} + +// C documentation +// +// //FIXME +func Xccoshl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xccosh(tls, Complex128FromComplex128(z))) +} + +func Xccosl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xccos(tls, Complex128FromComplex128(z))) +} + +var _exp_ovfl = uint32(0x40862e42) /* high bits of MAX_EXP * ln2 ~= 710 */ +var _cexp_ovfl = uint32(0x4096b8e4) /* (MAX_EXP - MIN_DENORM_EXP) * ln2 */ + +func Xcexp(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __u, __u1 Tuint64_t + var exp_x, x, y float64 + var hx, hy, lx, ly Tuint32_t + var v1 [2]float64 + _, _, _, _, _, _, _, _, _, _ = __u, __u1, exp_x, hx, hy, lx, ly, x, y, v1 + x = Float64FromComplex128(z) + y = +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] + __u = *(*Tuint64_t)(unsafe.Pointer(&y)) + hy = uint32(__u >> int32(32)) + ly = uint32(__u) + hy = hy & uint32(0x7fffffff) + /* cexp(x + I 0) = exp(x) + I 0 */ + if hy|ly == uint32(0) { + v1 = [2]float64{ + 0: Xexp(tls, x), + 1: y, + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + __u1 = *(*Tuint64_t)(unsafe.Pointer(&x)) + hx = uint32(__u1 >> int32(32)) + lx = uint32(__u1) + /* cexp(0 + I y) = cos(y) + I sin(y) */ + if hx&uint32(0x7fffffff)|lx == uint32(0) { + v1 = [2]float64{ + 0: Xcos(tls, y), + 1: Xsin(tls, y), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + if hy >= uint32(0x7ff00000) { + if lx != uint32(0) || hx&uint32(0x7fffffff) != uint32(0x7ff00000) { + /* cexp(finite|NaN +- I Inf|NaN) = NaN + I NaN */ + v1 = [2]float64{ + 0: y - y, + 1: y - y, + } + return *(*complex128)(unsafe.Pointer(&v1)) + } else { + if hx&uint32(0x80000000) != 0 { + /* cexp(-Inf +- I Inf|NaN) = 0 + I 0 */ + v1 = [2]float64{} + return *(*complex128)(unsafe.Pointer(&v1)) + } else { + /* cexp(+Inf +- I Inf|NaN) = Inf + I NaN */ + v1 = [2]float64{ + 0: x, + 1: y - y, + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + } + } + if hx >= _exp_ovfl && hx <= _cexp_ovfl { + /* + * x is between 709.7 and 1454.3, so we must scale to avoid + * overflow in exp(x). + */ + return X__ldexp_cexp(tls, z, 0) + } else { + /* + * Cases covered here: + * - x < exp_ovfl and exp(x) won't overflow (common case) + * - x > cexp_ovfl, so exp(x) * s overflows for all s > 0 + * - x = +-Inf (generated by exp()) + * - x = NaN (spurious inexact exception from y) + */ + exp_x = Xexp(tls, x) + v1 = [2]float64{ + 0: float64(exp_x * Xcos(tls, y)), + 1: float64(exp_x * Xsin(tls, y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + return r +} + +var _exp_ovfl1 = uint32(0x42b17218) /* MAX_EXP * ln2 ~= 88.722839355 */ +var _cexp_ovfl1 = uint32(0x43400074) /* (MAX_EXP - MIN_DENORM_EXP) * ln2 */ + +func Xcexpf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var exp_x, x, y float32 + var hx, hy Tuint32_t + var v1 [2]float32 + _, _, _, _, _, _ = exp_x, hx, hy, x, y, v1 + x = Float32FromComplex64(z) + y = +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] + hy = *(*Tuint32_t)(unsafe.Pointer(&y)) + hy = hy & uint32(0x7fffffff) + /* cexp(x + I 0) = exp(x) + I 0 */ + if hy == uint32(0) { + v1 = [2]float32{ + 0: Xexpf(tls, x), + 1: y, + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + hx = *(*Tuint32_t)(unsafe.Pointer(&x)) + /* cexp(0 + I y) = cos(y) + I sin(y) */ + if hx&uint32(0x7fffffff) == uint32(0) { + v1 = [2]float32{ + 0: Xcosf(tls, y), + 1: Xsinf(tls, y), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + if hy >= uint32(0x7f800000) { + if hx&uint32(0x7fffffff) != uint32(0x7f800000) { + /* cexp(finite|NaN +- I Inf|NaN) = NaN + I NaN */ + v1 = [2]float32{ + 0: y - y, + 1: y - y, + } + return *(*complex64)(unsafe.Pointer(&v1)) + } else { + if hx&uint32(0x80000000) != 0 { + /* cexp(-Inf +- I Inf|NaN) = 0 + I 0 */ + v1 = [2]float32{} + return *(*complex64)(unsafe.Pointer(&v1)) + } else { + /* cexp(+Inf +- I Inf|NaN) = Inf + I NaN */ + v1 = [2]float32{ + 0: x, + 1: y - y, + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + } + } + if hx >= _exp_ovfl1 && hx <= _cexp_ovfl1 { + /* + * x is between 88.7 and 192, so we must scale to avoid + * overflow in expf(x). + */ + return X__ldexp_cexpf(tls, z, 0) + } else { + /* + * Cases covered here: + * - x < exp_ovfl and exp(x) won't overflow (common case) + * - x > cexp_ovfl, so exp(x) * s overflows for all s > 0 + * - x = +-Inf (generated by exp()) + * - x = NaN (spurious inexact exception from y) + */ + exp_x = Xexpf(tls, x) + v1 = [2]float32{ + 0: float32(exp_x * Xcosf(tls, y)), + 1: float32(exp_x * Xsinf(tls, y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + return r +} + +// C documentation +// +// //FIXME +func Xcexpl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcexp(tls, Complex128FromComplex128(z))) +} + +func Xcimag(tls *TLS, z complex128) (r float64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] +} + +func Xcimagf(tls *TLS, z complex64) (r float32) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] +} + +func Xcimagl(tls *TLS, z complex128) (r float64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] +} + +// FIXME + +/* log(z) = log(|z|) + i arg(z) */ + +func Xclog(tls *TLS, z complex128) (r1 complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var phi, r float64 + var v1 [2]float64 + _, _, _ = phi, r, v1 + r = Xcabs(tls, z) + phi = Xcarg(tls, z) + v1 = [2]float64{ + 0: Xlog(tls, r), + 1: phi, + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +// FIXME + +func Xclogf(tls *TLS, z complex64) (r1 complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var phi, r float32 + var v1 [2]float32 + _, _, _ = phi, r, v1 + r = Xcabsf(tls, z) + phi = Xcargf(tls, z) + v1 = [2]float32{ + 0: Xlogf(tls, r), + 1: phi, + } + return *(*complex64)(unsafe.Pointer(&v1)) +} + +func Xclogl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xclog(tls, Complex128FromComplex128(z))) +} + +func Xconj(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float64 + _ = v1 + v1 = [2]float64{ + 0: Float64FromComplex128(z), + 1: -+(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +func Xconjf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float32 + _ = v1 + v1 = [2]float32{ + 0: Float32FromComplex64(z), + 1: -+(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + } + return *(*complex64)(unsafe.Pointer(&v1)) +} + +func Xconjl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float64 + _ = v1 + v1 = [2]float64{ + 0: Float64FromComplex128(z), + 1: -+(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +/* pow(z, c) = exp(c log(z)), See C99 G.6.4.1 */ + +func Xcpow(tls *TLS, z complex128, c complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v c=%v, (%v:)", tls, z, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xcexp(tls, c*Xclog(tls, z)) +} + +func Xcpowf(tls *TLS, z complex64, c complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v c=%v, (%v:)", tls, z, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xcexpf(tls, c*Xclogf(tls, z)) +} + +func Xcpowl(tls *TLS, z complex128, c complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v c=%v, (%v:)", tls, z, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcpow(tls, Complex128FromComplex128(z), Complex128FromComplex128(c))) +} + +func Xcproj(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1, v3 uint64 + var v5 bool + var v6 [2]float64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _, _, _, _ = v1, v3, v5, v6 + *(*float64)(unsafe.Pointer(bp)) = Float64FromComplex128(z) + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + ; + if v5 = BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) == Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) == Uint64FromUint64(0x7ff)< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1, v3 uint32 + var v5 bool + var v6 [2]float32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _, _, _, _ = v1, v3, v5, v6 + *(*float32)(unsafe.Pointer(bp)) = Float32FromComplex64(z) + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + ; + if v5 = BoolInt32(v1&uint32(0x7fffffff) == uint32(0x7f800000)) != 0; !v5 { + *(*float32)(unsafe.Pointer(bp)) = +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] + v3 = *(*uint32)(unsafe.Pointer(bp)) + goto _4 + _4: + } + if v5 || BoolInt32(v3&uint32(0x7fffffff) == uint32(0x7f800000)) != 0 { + v6 = [2]float32{ + 0: X__builtin_inff(tls), + 1: Xcopysignf(tls, float32(0), +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)]), + } + return *(*complex64)(unsafe.Pointer(&v6)) + } + return z +} + +func Xcprojl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcproj(tls, Complex128FromComplex128(z))) +} + +func Xcreal(tls *TLS, z complex128) (r float64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Float64FromComplex128(z) +} + +func Xcrealf(tls *TLS, z complex64) (r float32) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Float32FromComplex64(z) +} + +func Xcreall(tls *TLS, z complex128) (r float64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Float64FromComplex128(z) +} + +/* sin(z) = -i sinh(i z) */ + +func Xcsin(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float64 + _ = v1 + v1 = [2]float64{ + 0: -+(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: Float64FromComplex128(z), + } + z = Xcsinh(tls, *(*complex128)(unsafe.Pointer(&v1))) + v1 = [2]float64{ + 0: +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: -Float64FromComplex128(z), + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +func Xcsinf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float32 + _ = v1 + v1 = [2]float32{ + 0: -+(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: Float32FromComplex64(z), + } + z = Xcsinhf(tls, *(*complex64)(unsafe.Pointer(&v1))) + v1 = [2]float32{ + 0: +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: -Float32FromComplex64(z), + } + return *(*complex64)(unsafe.Pointer(&v1)) +} + +var _huge2 = float64(8.98846567431158e+307) + +func Xcsinh(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __u, __u1 Tuint64_t + var h, x, y float64 + var hx, hy, ix, iy, lx, ly Tint32_t + var v1 [2]float64 + _, _, _, _, _, _, _, _, _, _, _, _ = __u, __u1, h, hx, hy, ix, iy, lx, ly, x, y, v1 + x = Float64FromComplex128(z) + y = +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] + __u = *(*Tuint64_t)(unsafe.Pointer(&x)) + hx = Int32FromUint64(__u >> int32(32)) + lx = Int32FromUint32(uint32(__u)) + __u1 = *(*Tuint64_t)(unsafe.Pointer(&y)) + hy = Int32FromUint64(__u1 >> int32(32)) + ly = Int32FromUint32(uint32(__u1)) + ix = int32(0x7fffffff) & hx + iy = int32(0x7fffffff) & hy + /* Handle the nearly-non-exceptional cases where x and y are finite. */ + if ix < int32(0x7ff00000) && iy < int32(0x7ff00000) { + if iy|ly == 0 { + v1 = [2]float64{ + 0: Xsinh(tls, x), + 1: y, + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + if ix < int32(0x40360000) { /* small x: normal case */ + v1 = [2]float64{ + 0: float64(Xsinh(tls, x) * Xcos(tls, y)), + 1: float64(Xcosh(tls, x) * Xsin(tls, y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* |x| >= 22, so cosh(x) ~= exp(|x|) */ + if ix < int32(0x40862e42) { + /* x < 710: exp(|x|) won't overflow */ + h = float64(Xexp(tls, Xfabs(tls, x)) * float64(0.5)) + v1 = [2]float64{ + 0: float64(Xcopysign(tls, h, x) * Xcos(tls, y)), + 1: float64(h * Xsin(tls, y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } else { + if ix < int32(0x4096bbaa) { + /* x < 1455: scale to avoid overflow */ + v1 = [2]float64{ + 0: Xfabs(tls, x), + 1: y, + } + z = X__ldexp_cexp(tls, *(*complex128)(unsafe.Pointer(&v1)), -int32(1)) + v1 = [2]float64{ + 0: float64(Float64FromComplex128(z) * Xcopysign(tls, Float64FromInt32(1), x)), + 1: +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + } + return *(*complex128)(unsafe.Pointer(&v1)) + } else { + /* x >= 1455: the result always overflows */ + h = float64(_huge2 * x) + v1 = [2]float64{ + 0: float64(h * Xcos(tls, y)), + 1: float64(float64(h*h) * Xsin(tls, y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + } + } + /* + * sinh(+-0 +- I Inf) = sign(d(+-0, dNaN))0 + I dNaN. + * The sign of 0 in the result is unspecified. Choice = normally + * the same as dNaN. Raise the invalid floating-point exception. + * + * sinh(+-0 +- I NaN) = sign(d(+-0, NaN))0 + I d(NaN). + * The sign of 0 in the result is unspecified. Choice = normally + * the same as d(NaN). + */ + if ix|lx == 0 && iy >= int32(0x7ff00000) { + v1 = [2]float64{ + 0: Xcopysign(tls, Float64FromInt32(0), float64(x*(y-y))), + 1: y - y, + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* + * sinh(+-Inf +- I 0) = +-Inf + I +-0. + * + * sinh(NaN +- I 0) = d(NaN) + I +-0. + */ + if iy|ly == 0 && ix >= int32(0x7ff00000) { + if hx&int32(0xfffff)|lx == 0 { + v1 = [2]float64{ + 0: x, + 1: y, + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + v1 = [2]float64{ + 0: x, + 1: Xcopysign(tls, Float64FromInt32(0), y), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* + * sinh(x +- I Inf) = dNaN + I dNaN. + * Raise the invalid floating-point exception for finite nonzero x. + * + * sinh(x + I NaN) = d(NaN) + I d(NaN). + * Optionally raises the invalid floating-point exception for finite + * nonzero x. Choice = don't raise (except for signaling NaNs). + */ + if ix < int32(0x7ff00000) && iy >= int32(0x7ff00000) { + v1 = [2]float64{ + 0: y - y, + 1: float64(x * (y - y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* + * sinh(+-Inf + I NaN) = +-Inf + I d(NaN). + * The sign of Inf in the result is unspecified. Choice = normally + * the same as d(NaN). + * + * sinh(+-Inf +- I Inf) = +Inf + I dNaN. + * The sign of Inf in the result is unspecified. Choice = always +. + * Raise the invalid floating-point exception. + * + * sinh(+-Inf + I y) = +-Inf cos(y) + I Inf sin(y) + */ + if ix >= int32(0x7ff00000) && hx&int32(0xfffff)|lx == 0 { + if iy >= int32(0x7ff00000) { + v1 = [2]float64{ + 0: float64(x * x), + 1: float64(x * (y - y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + v1 = [2]float64{ + 0: float64(x * Xcos(tls, y)), + 1: float64(float64(X__builtin_inff(tls)) * Xsin(tls, y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* + * sinh(NaN + I NaN) = d(NaN) + I d(NaN). + * + * sinh(NaN +- I Inf) = d(NaN) + I d(NaN). + * Optionally raises the invalid floating-point exception. + * Choice = raise. + * + * sinh(NaN + I y) = d(NaN) + I d(NaN). + * Optionally raises the invalid floating-point exception for finite + * nonzero y. Choice = don't raise (except for signaling NaNs). + */ + v1 = [2]float64{ + 0: float64(float64(x*x) * (y - y)), + 1: float64((x + x) * (y - y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +var _huge3 = float32(1.7014118346046923e+38) + +func Xcsinhf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var h, x, y float32 + var hx, hy, ix, iy Tint32_t + var v1 [2]float32 + _, _, _, _, _, _, _, _ = h, hx, hy, ix, iy, x, y, v1 + x = Float32FromComplex64(z) + y = +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] + hx = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(&x))) + hy = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(&y))) + ix = int32(0x7fffffff) & hx + iy = int32(0x7fffffff) & hy + if ix < int32(0x7f800000) && iy < int32(0x7f800000) { + if iy == 0 { + v1 = [2]float32{ + 0: Xsinhf(tls, x), + 1: y, + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + if ix < int32(0x41100000) { /* small x: normal case */ + v1 = [2]float32{ + 0: float32(Xsinhf(tls, x) * Xcosf(tls, y)), + 1: float32(Xcoshf(tls, x) * Xsinf(tls, y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + /* |x| >= 9, so cosh(x) ~= exp(|x|) */ + if ix < int32(0x42b17218) { + /* x < 88.7: expf(|x|) won't overflow */ + h = float32(Xexpf(tls, Xfabsf(tls, x)) * Float32FromFloat32(0.5)) + v1 = [2]float32{ + 0: float32(Xcopysignf(tls, h, x) * Xcosf(tls, y)), + 1: float32(h * Xsinf(tls, y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } else { + if ix < int32(0x4340b1e7) { + /* x < 192.7: scale to avoid overflow */ + v1 = [2]float32{ + 0: Xfabsf(tls, x), + 1: y, + } + z = X__ldexp_cexpf(tls, *(*complex64)(unsafe.Pointer(&v1)), -int32(1)) + v1 = [2]float32{ + 0: float32(Float32FromComplex64(z) * Xcopysignf(tls, Float32FromInt32(1), x)), + 1: +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + } + return *(*complex64)(unsafe.Pointer(&v1)) + } else { + /* x >= 192.7: the result always overflows */ + h = float32(_huge3 * x) + v1 = [2]float32{ + 0: float32(h * Xcosf(tls, y)), + 1: float32(float32(h*h) * Xsinf(tls, y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + } + } + if ix == 0 && iy >= int32(0x7f800000) { + v1 = [2]float32{ + 0: Xcopysignf(tls, Float32FromInt32(0), float32(x*(y-y))), + 1: y - y, + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + if iy == 0 && ix >= int32(0x7f800000) { + if hx&int32(0x7fffff) == 0 { + v1 = [2]float32{ + 0: x, + 1: y, + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + v1 = [2]float32{ + 0: x, + 1: Xcopysignf(tls, Float32FromInt32(0), y), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + if ix < int32(0x7f800000) && iy >= int32(0x7f800000) { + v1 = [2]float32{ + 0: y - y, + 1: float32(x * (y - y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + if ix >= int32(0x7f800000) && hx&int32(0x7fffff) == 0 { + if iy >= int32(0x7f800000) { + v1 = [2]float32{ + 0: float32(x * x), + 1: float32(x * (y - y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + v1 = [2]float32{ + 0: float32(x * Xcosf(tls, y)), + 1: float32(X__builtin_inff(tls) * Xsinf(tls, y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + v1 = [2]float32{ + 0: float32(float32(x*x) * (y - y)), + 1: float32((x + x) * (y - y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) +} + +// C documentation +// +// //FIXME +func Xcsinhl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcsinh(tls, Complex128FromComplex128(z))) +} + +func Xcsinl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcsin(tls, Complex128FromComplex128(z))) +} + +const THRESH = 7.446288774449766e+307 + +/* + * gcc doesn't implement complex multiplication or division correctly, + * so we need to handle infinities specially. We turn on this pragma to + * notify conforming c99 compilers that the fast-but-incorrect code that + * gcc generates is acceptable, since the special cases have already been + * handled. + */ + +/* We risk spurious overflow for components >= DBL_MAX / (1 + sqrt(2)). */ + +func Xcsqrt(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var a, b, t float64 + var result complex128 + var scale int32 + var v1 [2]float64 + var v2, v5 uint64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _, _, _, _, _, _, _, _ = a, b, result, scale, t, v1, v2, v5 + a = Float64FromComplex128(z) + b = +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] + /* Handle special cases. */ + if z == Complex128FromInt32(0) { + v1 = [2]float64{ + 1: b, + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + *(*float64)(unsafe.Pointer(bp)) = b + v2 = *(*uint64)(unsafe.Pointer(bp)) + goto _3 +_3: + if BoolInt32(v2&(-Uint64FromUint64(1)>>Int32FromInt32(1)) == Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) == Uint64FromUint64(0x7ff)<>Int32FromInt32(63)) != 0 { + v1 = [2]float64{ + 0: Xfabs(tls, b-b), + 1: Xcopysign(tls, a, b), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } else { + v1 = [2]float64{ + 0: a, + 1: Xcopysign(tls, b-b, b), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + } + /* + * The remaining special case (b is NaN) is handled just fine by + * the normal code path below. + */ + /* Scale to avoid overflow. */ + if Xfabs(tls, a) >= float64(7.446288774449766e+307) || Xfabs(tls, b) >= float64(7.446288774449766e+307) { + a = a * float64(0.25) + b = b * float64(0.25) + scale = int32(1) + } else { + scale = 0 + } + /* Algorithm 312, CACM vol 10, Oct 1967. */ + if a >= Float64FromInt32(0) { + t = Xsqrt(tls, float64((a+Xhypot(tls, a, b))*float64(0.5))) + v1 = [2]float64{ + 0: t, + 1: b / float64(Float64FromInt32(2)*t), + } + result = *(*complex128)(unsafe.Pointer(&v1)) + } else { + t = Xsqrt(tls, float64((-a+Xhypot(tls, a, b))*float64(0.5))) + v1 = [2]float64{ + 0: Xfabs(tls, b) / float64(Float64FromInt32(2)*t), + 1: Xcopysign(tls, t, b), + } + result = *(*complex128)(unsafe.Pointer(&v1)) + } + /* Rescale. */ + if scale != 0 { + result = result * Complex128FromInt32(2) + } + return result +} + +/* + * gcc doesn't implement complex multiplication or division correctly, + * so we need to handle infinities specially. We turn on this pragma to + * notify conforming c99 compilers that the fast-but-incorrect code that + * gcc generates is acceptable, since the special cases have already been + * handled. + */ + +func Xcsqrtf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var a, b float32 + var t float64 + var v1 [2]float32 + var v2, v5 uint32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _, _, _, _, _, _ = a, b, t, v1, v2, v5 + a = Float32FromComplex64(z) + b = +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] + /* Handle special cases. */ + if z == Complex64FromInt32(0) { + v1 = [2]float32{ + 1: b, + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + *(*float32)(unsafe.Pointer(bp)) = b + v2 = *(*uint32)(unsafe.Pointer(bp)) + goto _3 +_3: + if BoolInt32(v2&uint32(0x7fffffff) == uint32(0x7f800000)) != 0 { + v1 = [2]float32{ + 0: X__builtin_inff(tls), + 1: b, + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + *(*float32)(unsafe.Pointer(bp)) = a + v2 = *(*uint32)(unsafe.Pointer(bp)) + goto _6 +_6: + if BoolInt32(v2&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + t = float64((b - b) / (b - b)) /* raise invalid if b is not a NaN */ + v1 = [2]float32{ + 0: a, + 1: float32(t), + } + return *(*complex64)(unsafe.Pointer(&v1)) /* return NaN + NaN i */ + } + *(*float32)(unsafe.Pointer(bp)) = a + v2 = *(*uint32)(unsafe.Pointer(bp)) + goto _9 +_9: + if BoolInt32(v2&uint32(0x7fffffff) == uint32(0x7f800000)) != 0 { + /* + * csqrtf(inf + NaN i) = inf + NaN i + * csqrtf(inf + y i) = inf + 0 i + * csqrtf(-inf + NaN i) = NaN +- inf i + * csqrtf(-inf + y i) = 0 + inf i + */ + *(*float32)(unsafe.Pointer(bp)) = a + v5 = *(*uint32)(unsafe.Pointer(bp)) + goto _11 + _11: + if Int32FromUint32(v5>>Int32FromInt32(31)) != 0 { + v1 = [2]float32{ + 0: Xfabsf(tls, b-b), + 1: Xcopysignf(tls, a, b), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } else { + v1 = [2]float32{ + 0: a, + 1: Xcopysignf(tls, b-b, b), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + } + /* + * The remaining special case (b is NaN) is handled just fine by + * the normal code path below. + */ + /* + * We compute t in double precision to avoid overflow and to + * provide correct rounding in nearly all cases. + * This is Algorithm 312, CACM vol 10, Oct 1967. + */ + if a >= Float32FromInt32(0) { + t = Xsqrt(tls, float64((float64(a)+Xhypot(tls, float64(a), float64(b)))*float64(0.5))) + v1 = [2]float32{ + 0: float32(t), + 1: float32(float64(b) / float64(Float64FromFloat64(2)*t)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } else { + t = Xsqrt(tls, float64((float64(-a)+Xhypot(tls, float64(a), float64(b)))*float64(0.5))) + v1 = [2]float32{ + 0: float32(float64(Xfabsf(tls, b)) / float64(Float64FromFloat64(2)*t)), + 1: Xcopysignf(tls, float32(t), b), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + return r +} + +// C documentation +// +// //FIXME +func Xcsqrtl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcsqrt(tls, Complex128FromComplex128(z))) +} + +/* tan(z) = -i tanh(i z) */ + +func Xctan(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float64 + _ = v1 + v1 = [2]float64{ + 0: -+(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: Float64FromComplex128(z), + } + z = Xctanh(tls, *(*complex128)(unsafe.Pointer(&v1))) + v1 = [2]float64{ + 0: +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: -Float64FromComplex128(z), + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +func Xctanf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float32 + _ = v1 + v1 = [2]float32{ + 0: -+(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: Float32FromComplex64(z), + } + z = Xctanhf(tls, *(*complex64)(unsafe.Pointer(&v1))) + v1 = [2]float32{ + 0: +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: -Float32FromComplex64(z), + } + return *(*complex64)(unsafe.Pointer(&v1)) +} + +func Xctanh(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var __u1, v3 Tuint64_t + var beta, denom, exp_mx, rho, s, t, x, y, v2 float64 + var hx, ix, lx Tuint32_t + var v1 [2]float64 + var v6 uint64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = __u1, beta, denom, exp_mx, hx, ix, lx, rho, s, t, x, y, v1, v2, v3, v6 + x = Float64FromComplex128(z) + y = +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] + __u1 = *(*Tuint64_t)(unsafe.Pointer(&x)) + hx = uint32(__u1 >> int32(32)) + lx = uint32(__u1) + ix = hx & uint32(0x7fffffff) + /* + * ctanh(NaN + i 0) = NaN + i 0 + * + * ctanh(NaN + i y) = NaN + i NaN for y != 0 + * + * The imaginary part has the sign of x*sin(2*y), but there's no + * special effort to get this right. + * + * ctanh(+-Inf +- i Inf) = +-1 +- 0 + * + * ctanh(+-Inf + i y) = +-1 + 0 sin(2y) for y finite + * + * The imaginary part of the sign is unspecified. This special + * case is only needed to avoid a spurious invalid exception when + * y is infinite. + */ + if ix >= uint32(0x7ff00000) { + if ix&uint32(0xfffff)|lx != 0 { /* x is NaN */ + if y == Float64FromInt32(0) { + v2 = y + } else { + v2 = float64(x * y) + } + v1 = [2]float64{ + 0: x, + 1: v2, + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + v3 = uint64(hx-Uint32FromInt32(0x40000000))<>Int32FromInt32(1)) == Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) < Uint64FromUint64(0x7ff)<= uint32(0x40360000) { /* x >= 22 */ + exp_mx = Xexp(tls, -Xfabs(tls, x)) + v1 = [2]float64{ + 0: Xcopysign(tls, Float64FromInt32(1), x), + 1: float64(float64(float64(float64(Float64FromInt32(4)*Xsin(tls, y))*Xcos(tls, y))*exp_mx) * exp_mx), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* Kahan's algorithm */ + t = Xtan(tls, y) + beta = float64(1) + float64(t*t) /* = 1 / cos^2(y) */ + s = Xsinh(tls, x) + rho = Xsqrt(tls, Float64FromInt32(1)+float64(s*s)) /* = cosh(x) */ + denom = Float64FromInt32(1) + float64(float64(beta*s)*s) + v1 = [2]float64{ + 0: float64(float64(beta*rho)*s) / denom, + 1: t / denom, + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +func Xctanhf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var beta, denom, exp_mx, rho, s, t, x, y, v2 float32 + var hx, ix, v3 Tuint32_t + var v1 [2]float32 + var v6 uint32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = beta, denom, exp_mx, hx, ix, rho, s, t, x, y, v1, v2, v3, v6 + x = Float32FromComplex64(z) + y = +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] + hx = *(*Tuint32_t)(unsafe.Pointer(&x)) + ix = hx & uint32(0x7fffffff) + if ix >= uint32(0x7f800000) { + if ix&uint32(0x7fffff) != 0 { + if y == Float32FromInt32(0) { + v2 = y + } else { + v2 = float32(x * y) + } + v1 = [2]float32{ + 0: x, + 1: v2, + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + v3 = hx - uint32(0x40000000) + x = *(*float32)(unsafe.Pointer(&v3)) + *(*float32)(unsafe.Pointer(bp)) = y + v6 = *(*uint32)(unsafe.Pointer(bp)) + goto _7 + _7: + if BoolInt32(v6&uint32(0x7fffffff) == uint32(0x7f800000)) != 0 { + v2 = y + } else { + v2 = float32(Xsinf(tls, y) * Xcosf(tls, y)) + } + v1 = [2]float32{ + 0: x, + 1: Xcopysignf(tls, Float32FromInt32(0), v2), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + *(*float32)(unsafe.Pointer(bp)) = y + v6 = *(*uint32)(unsafe.Pointer(bp)) + goto _9 +_9: + if !(BoolInt32(v6&Uint32FromInt32(0x7fffffff) < Uint32FromInt32(0x7f800000)) != 0) { + if ix != 0 { + v2 = y - y + } else { + v2 = x + } + v1 = [2]float32{ + 0: v2, + 1: y - y, + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + if ix >= uint32(0x41300000) { /* x >= 11 */ + exp_mx = Xexpf(tls, -Xfabsf(tls, x)) + v1 = [2]float32{ + 0: Xcopysignf(tls, Float32FromInt32(1), x), + 1: float32(float32(float32(float32(Float32FromInt32(4)*Xsinf(tls, y))*Xcosf(tls, y))*exp_mx) * exp_mx), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + t = Xtanf(tls, y) + beta = float32(float64(1) + float64(t*t)) + s = Xsinhf(tls, x) + rho = Xsqrtf(tls, Float32FromInt32(1)+float32(s*s)) + denom = Float32FromInt32(1) + float32(float32(beta*s)*s) + v1 = [2]float32{ + 0: float32(float32(beta*rho)*s) / denom, + 1: t / denom, + } + return *(*complex64)(unsafe.Pointer(&v1)) +} + +// C documentation +// +// //FIXME +func Xctanhl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xctanh(tls, Complex128FromComplex128(z))) +} + +func Xctanl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xctan(tls, Complex128FromComplex128(z))) +} + +const BUFSIZ = 1024 +const E2BIG = 7 +const EACCES = 13 +const EADDRINUSE = 98 +const EADDRNOTAVAIL = 99 +const EADV = 68 +const EAFNOSUPPORT = 97 +const EAGAIN = 11 +const EALREADY = 114 +const EBADE = 52 +const EBADF = 9 +const EBADFD = 77 +const EBADMSG = 74 +const EBADR = 53 +const EBADRQC = 56 +const EBADSLT = 57 +const EBFONT = 59 +const EBUSY = 16 +const ECANCELED = 125 +const ECHILD = 10 +const ECHRNG = 44 +const ECOMM = 70 +const ECONNABORTED = 103 +const ECONNREFUSED = 111 +const ECONNRESET = 104 +const EDEADLK = 35 +const EDEADLOCK = 35 +const EDESTADDRREQ = 89 +const EDOM = 33 +const EDOTDOT = 73 +const EDQUOT = 122 +const EEXIST = 17 +const EFAULT = 14 +const EFBIG = 27 +const EHOSTDOWN = 112 +const EHOSTUNREACH = 113 +const EHWPOISON = 133 +const EIDRM = 43 +const EILSEQ = 84 +const EINPROGRESS = 115 +const EINTR = 4 +const EINVAL = 22 +const EIO = 5 +const EISCONN = 106 +const EISDIR = 21 +const EISNAM = 120 +const EKEYEXPIRED = 127 +const EKEYREJECTED = 129 +const EKEYREVOKED = 128 +const EL2HLT = 51 +const EL2NSYNC = 45 +const EL3HLT = 46 +const EL3RST = 47 +const ELIBACC = 79 +const ELIBBAD = 80 +const ELIBEXEC = 83 +const ELIBMAX = 82 +const ELIBSCN = 81 +const ELNRNG = 48 +const ELOOP = 40 +const EMEDIUMTYPE = 124 +const EMFILE = 24 +const EMLINK = 31 +const EMSGSIZE = 90 +const EMULTIHOP = 72 +const ENAMETOOLONG = 36 +const ENAVAIL = 119 +const ENETDOWN = 100 +const ENETRESET = 102 +const ENETUNREACH = 101 +const ENFILE = 23 +const ENOANO = 55 +const ENOBUFS = 105 +const ENOCSI = 50 +const ENODATA = 61 +const ENODEV = 19 +const ENOENT = 2 +const ENOEXEC = 8 +const ENOKEY = 126 +const ENOLCK = 37 +const ENOLINK = 67 +const ENOMEDIUM = 123 +const ENOMEM = 12 +const ENOMSG = 42 +const ENONET = 64 +const ENOPKG = 65 +const ENOPROTOOPT = 92 +const ENOSPC = 28 +const ENOSR = 63 +const ENOSTR = 60 +const ENOSYS = 38 +const ENOTBLK = 15 +const ENOTCONN = 107 +const ENOTDIR = 20 +const ENOTEMPTY = 39 +const ENOTNAM = 118 +const ENOTRECOVERABLE = 131 +const ENOTSOCK = 88 +const ENOTSUP = 95 +const ENOTTY = 25 +const ENOTUNIQ = 76 +const ENXIO = 6 +const EOPNOTSUPP = 95 +const EOVERFLOW = 75 +const EOWNERDEAD = 130 +const EPERM = 1 +const EPFNOSUPPORT = 96 +const EPIPE = 32 +const EPROTO = 71 +const EPROTONOSUPPORT = 93 +const EPROTOTYPE = 91 +const ERANGE = 34 +const EREMCHG = 78 +const EREMOTE = 66 +const EREMOTEIO = 121 +const ERESTART = 85 +const ERFKILL = 132 +const EROFS = 30 +const ESHUTDOWN = 108 +const ESOCKTNOSUPPORT = 94 +const ESPIPE = 29 +const ESRCH = 3 +const ESRMNT = 69 +const ESTALE = 116 +const ESTRPIPE = 86 +const ETIME = 62 +const ETIMEDOUT = 110 +const ETOOMANYREFS = 109 +const ETXTBSY = 26 +const EUCLEAN = 117 +const EUNATCH = 49 +const EUSERS = 87 +const EWOULDBLOCK = 11 +const EXDEV = 18 +const EXFULL = 54 +const FILENAME_MAX = 4096 +const FOPEN_MAX = 1000 +const F_LOCK = 1 +const F_OK = 0 +const F_TEST = 3 +const F_TLOCK = 2 +const F_ULOCK = 0 +const L_ctermid = 20 +const L_tmpnam = 20 +const POSIX_CLOSE_RESTART = 0 +const P_tmpdir = "/tmp" +const R_OK = 4 +const SEEK_DATA = 3 +const SEEK_HOLE = 4 +const STDERR_FILENO = 2 +const STDIN_FILENO = 0 +const STDOUT_FILENO = 1 +const TMP_MAX = 10000 +const W_OK = 2 +const X_OK = 1 +const _CS_GNU_LIBC_VERSION = 2 +const _CS_GNU_LIBPTHREAD_VERSION = 3 +const _CS_PATH = 0 +const _CS_POSIX_V5_WIDTH_RESTRICTED_ENVS = 4 +const _CS_POSIX_V6_ILP32_OFF32_CFLAGS = 1116 +const _CS_POSIX_V6_ILP32_OFF32_LDFLAGS = 1117 +const _CS_POSIX_V6_ILP32_OFF32_LIBS = 1118 +const _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS = 1119 +const _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS = 1120 +const _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS = 1121 +const _CS_POSIX_V6_ILP32_OFFBIG_LIBS = 1122 +const _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS = 1123 +const _CS_POSIX_V6_LP64_OFF64_CFLAGS = 1124 +const _CS_POSIX_V6_LP64_OFF64_LDFLAGS = 1125 +const _CS_POSIX_V6_LP64_OFF64_LIBS = 1126 +const _CS_POSIX_V6_LP64_OFF64_LINTFLAGS = 1127 +const _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS = 1128 +const _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS = 1129 +const _CS_POSIX_V6_LPBIG_OFFBIG_LIBS = 1130 +const _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS = 1131 +const _CS_POSIX_V6_WIDTH_RESTRICTED_ENVS = 1 +const _CS_POSIX_V7_ILP32_OFF32_CFLAGS = 1132 +const _CS_POSIX_V7_ILP32_OFF32_LDFLAGS = 1133 +const _CS_POSIX_V7_ILP32_OFF32_LIBS = 1134 +const _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS = 1135 +const _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS = 1136 +const _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS = 1137 +const _CS_POSIX_V7_ILP32_OFFBIG_LIBS = 1138 +const _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS = 1139 +const _CS_POSIX_V7_LP64_OFF64_CFLAGS = 1140 +const _CS_POSIX_V7_LP64_OFF64_LDFLAGS = 1141 +const _CS_POSIX_V7_LP64_OFF64_LIBS = 1142 +const _CS_POSIX_V7_LP64_OFF64_LINTFLAGS = 1143 +const _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS = 1144 +const _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS = 1145 +const _CS_POSIX_V7_LPBIG_OFFBIG_LIBS = 1146 +const _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS = 1147 +const _CS_POSIX_V7_THREADS_CFLAGS = 1150 +const _CS_POSIX_V7_THREADS_LDFLAGS = 1151 +const _CS_POSIX_V7_WIDTH_RESTRICTED_ENVS = 5 +const _CS_V6_ENV = 1148 +const _CS_V7_ENV = 1149 +const _IOFBF = 0 +const _IOLBF = 1 +const _IONBF = 2 +const _PC_2_SYMLINKS = 20 +const _PC_ALLOC_SIZE_MIN = 18 +const _PC_ASYNC_IO = 10 +const _PC_CHOWN_RESTRICTED = 6 +const _PC_FILESIZEBITS = 13 +const _PC_LINK_MAX = 0 +const _PC_MAX_CANON = 1 +const _PC_MAX_INPUT = 2 +const _PC_NAME_MAX = 3 +const _PC_NO_TRUNC = 7 +const _PC_PATH_MAX = 4 +const _PC_PIPE_BUF = 5 +const _PC_PRIO_IO = 11 +const _PC_REC_INCR_XFER_SIZE = 14 +const _PC_REC_MAX_XFER_SIZE = 15 +const _PC_REC_MIN_XFER_SIZE = 16 +const _PC_REC_XFER_ALIGN = 17 +const _PC_SOCK_MAXBUF = 12 +const _PC_SYMLINK_MAX = 19 +const _PC_SYNC_IO = 9 +const _PC_VDISABLE = 8 +const _POSIX2_C_BIND = 200809 +const _POSIX2_VERSION = 200809 +const _POSIX_ADVISORY_INFO = 200809 +const _POSIX_ASYNCHRONOUS_IO = 200809 +const _POSIX_BARRIERS = 200809 +const _POSIX_CHOWN_RESTRICTED = 1 +const _POSIX_CLOCK_SELECTION = 200809 +const _POSIX_CPUTIME = 200809 +const _POSIX_FSYNC = 200809 +const _POSIX_IPV6 = 200809 +const _POSIX_JOB_CONTROL = 1 +const _POSIX_MAPPED_FILES = 200809 +const _POSIX_MEMLOCK = 200809 +const _POSIX_MEMLOCK_RANGE = 200809 +const _POSIX_MEMORY_PROTECTION = 200809 +const _POSIX_MESSAGE_PASSING = 200809 +const _POSIX_MONOTONIC_CLOCK = 200809 +const _POSIX_NO_TRUNC = 1 +const _POSIX_RAW_SOCKETS = 200809 +const _POSIX_READER_WRITER_LOCKS = 200809 +const _POSIX_REALTIME_SIGNALS = 200809 +const _POSIX_REGEXP = 1 +const _POSIX_SAVED_IDS = 1 +const _POSIX_SEMAPHORES = 200809 +const _POSIX_SHARED_MEMORY_OBJECTS = 200809 +const _POSIX_SHELL = 1 +const _POSIX_SPAWN = 200809 +const _POSIX_SPIN_LOCKS = 200809 +const _POSIX_THREADS = 200809 +const _POSIX_THREAD_ATTR_STACKADDR = 200809 +const _POSIX_THREAD_ATTR_STACKSIZE = 200809 +const _POSIX_THREAD_CPUTIME = 200809 +const _POSIX_THREAD_PRIORITY_SCHEDULING = 200809 +const _POSIX_THREAD_PROCESS_SHARED = 200809 +const _POSIX_THREAD_SAFE_FUNCTIONS = 200809 +const _POSIX_TIMEOUTS = 200809 +const _POSIX_TIMERS = 200809 +const _POSIX_V6_ILP32_OFFBIG = 1 +const _POSIX_V7_ILP32_OFFBIG = 1 +const _POSIX_VDISABLE = 0 +const _POSIX_VERSION = 200809 +const _SC_2_CHAR_TERM = 95 +const _SC_2_C_BIND = 47 +const _SC_2_C_DEV = 48 +const _SC_2_FORT_DEV = 49 +const _SC_2_FORT_RUN = 50 +const _SC_2_LOCALEDEF = 52 +const _SC_2_PBS = 168 +const _SC_2_PBS_ACCOUNTING = 169 +const _SC_2_PBS_CHECKPOINT = 175 +const _SC_2_PBS_LOCATE = 170 +const _SC_2_PBS_MESSAGE = 171 +const _SC_2_PBS_TRACK = 172 +const _SC_2_SW_DEV = 51 +const _SC_2_UPE = 97 +const _SC_2_VERSION = 46 +const _SC_ADVISORY_INFO = 132 +const _SC_AIO_LISTIO_MAX = 23 +const _SC_AIO_MAX = 24 +const _SC_AIO_PRIO_DELTA_MAX = 25 +const _SC_ARG_MAX = 0 +const _SC_ASYNCHRONOUS_IO = 12 +const _SC_ATEXIT_MAX = 87 +const _SC_AVPHYS_PAGES = 86 +const _SC_BARRIERS = 133 +const _SC_BC_BASE_MAX = 36 +const _SC_BC_DIM_MAX = 37 +const _SC_BC_SCALE_MAX = 38 +const _SC_BC_STRING_MAX = 39 +const _SC_CHILD_MAX = 1 +const _SC_CLK_TCK = 2 +const _SC_CLOCK_SELECTION = 137 +const _SC_COLL_WEIGHTS_MAX = 40 +const _SC_CPUTIME = 138 +const _SC_DELAYTIMER_MAX = 26 +const _SC_EXPR_NEST_MAX = 42 +const _SC_FSYNC = 15 +const _SC_GETGR_R_SIZE_MAX = 69 +const _SC_GETPW_R_SIZE_MAX = 70 +const _SC_HOST_NAME_MAX = 180 +const _SC_IOV_MAX = 60 +const _SC_IPV6 = 235 +const _SC_JOB_CONTROL = 7 +const _SC_LINE_MAX = 43 +const _SC_LOGIN_NAME_MAX = 71 +const _SC_MAPPED_FILES = 16 +const _SC_MEMLOCK = 17 +const _SC_MEMLOCK_RANGE = 18 +const _SC_MEMORY_PROTECTION = 19 +const _SC_MESSAGE_PASSING = 20 +const _SC_MINSIGSTKSZ = 249 +const _SC_MONOTONIC_CLOCK = 149 +const _SC_MQ_OPEN_MAX = 27 +const _SC_MQ_PRIO_MAX = 28 +const _SC_NGROUPS_MAX = 3 +const _SC_NPROCESSORS_CONF = 83 +const _SC_NPROCESSORS_ONLN = 84 +const _SC_NZERO = 109 +const _SC_OPEN_MAX = 4 +const _SC_PAGESIZE = 30 +const _SC_PAGE_SIZE = 30 +const _SC_PASS_MAX = 88 +const _SC_PHYS_PAGES = 85 +const _SC_PRIORITIZED_IO = 13 +const _SC_PRIORITY_SCHEDULING = 10 +const _SC_RAW_SOCKETS = 236 +const _SC_READER_WRITER_LOCKS = 153 +const _SC_REALTIME_SIGNALS = 9 +const _SC_REGEXP = 155 +const _SC_RE_DUP_MAX = 44 +const _SC_RTSIG_MAX = 31 +const _SC_SAVED_IDS = 8 +const _SC_SEMAPHORES = 21 +const _SC_SEM_NSEMS_MAX = 32 +const _SC_SEM_VALUE_MAX = 33 +const _SC_SHARED_MEMORY_OBJECTS = 22 +const _SC_SHELL = 157 +const _SC_SIGQUEUE_MAX = 34 +const _SC_SIGSTKSZ = 250 +const _SC_SPAWN = 159 +const _SC_SPIN_LOCKS = 154 +const _SC_SPORADIC_SERVER = 160 +const _SC_SS_REPL_MAX = 241 +const _SC_STREAMS = 174 +const _SC_STREAM_MAX = 5 +const _SC_SYMLOOP_MAX = 173 +const _SC_SYNCHRONIZED_IO = 14 +const _SC_THREADS = 67 +const _SC_THREAD_ATTR_STACKADDR = 77 +const _SC_THREAD_ATTR_STACKSIZE = 78 +const _SC_THREAD_CPUTIME = 139 +const _SC_THREAD_DESTRUCTOR_ITERATIONS = 73 +const _SC_THREAD_KEYS_MAX = 74 +const _SC_THREAD_PRIORITY_SCHEDULING = 79 +const _SC_THREAD_PRIO_INHERIT = 80 +const _SC_THREAD_PRIO_PROTECT = 81 +const _SC_THREAD_PROCESS_SHARED = 82 +const _SC_THREAD_ROBUST_PRIO_INHERIT = 247 +const _SC_THREAD_ROBUST_PRIO_PROTECT = 248 +const _SC_THREAD_SAFE_FUNCTIONS = 68 +const _SC_THREAD_SPORADIC_SERVER = 161 +const _SC_THREAD_STACK_MIN = 75 +const _SC_THREAD_THREADS_MAX = 76 +const _SC_TIMEOUTS = 164 +const _SC_TIMERS = 11 +const _SC_TIMER_MAX = 35 +const _SC_TRACE = 181 +const _SC_TRACE_EVENT_FILTER = 182 +const _SC_TRACE_EVENT_NAME_MAX = 242 +const _SC_TRACE_INHERIT = 183 +const _SC_TRACE_LOG = 184 +const _SC_TRACE_NAME_MAX = 243 +const _SC_TRACE_SYS_MAX = 244 +const _SC_TRACE_USER_EVENT_MAX = 245 +const _SC_TTY_NAME_MAX = 72 +const _SC_TYPED_MEMORY_OBJECTS = 165 +const _SC_TZNAME_MAX = 6 +const _SC_UIO_MAXIOV = 60 +const _SC_V6_ILP32_OFF32 = 176 +const _SC_V6_ILP32_OFFBIG = 177 +const _SC_V6_LP64_OFF64 = 178 +const _SC_V6_LPBIG_OFFBIG = 179 +const _SC_V7_ILP32_OFF32 = 237 +const _SC_V7_ILP32_OFFBIG = 238 +const _SC_V7_LP64_OFF64 = 239 +const _SC_V7_LPBIG_OFFBIG = 240 +const _SC_VERSION = 29 +const _SC_XBS5_ILP32_OFF32 = 125 +const _SC_XBS5_ILP32_OFFBIG = 126 +const _SC_XBS5_LP64_OFF64 = 127 +const _SC_XBS5_LPBIG_OFFBIG = 128 +const _SC_XOPEN_CRYPT = 92 +const _SC_XOPEN_ENH_I18N = 93 +const _SC_XOPEN_LEGACY = 129 +const _SC_XOPEN_REALTIME = 130 +const _SC_XOPEN_REALTIME_THREADS = 131 +const _SC_XOPEN_SHM = 94 +const _SC_XOPEN_STREAMS = 246 +const _SC_XOPEN_UNIX = 91 +const _SC_XOPEN_VERSION = 89 +const _SC_XOPEN_XCU_VERSION = 90 +const _SC_XOPEN_XPG2 = 98 +const _SC_XOPEN_XPG3 = 99 +const _SC_XOPEN_XPG4 = 100 +const _XOPEN_ENH_I18N = 1 +const _XOPEN_UNIX = 1 +const _XOPEN_VERSION = 700 + +type Tsize_t = uint32 + +type Tssize_t = int32 + +type Toff_t = int64 + +type Tpid_t = int32 + +type Tuid_t = uint32 + +type Tgid_t = uint32 + +type Tuseconds_t = uint32 + +type Tva_list = uintptr + +type t__isoc_va_list = uintptr + +type Tfpos_t = struct { + F__lldata [0]int64 + F__align [0]float64 + F__opaque [16]int8 +} + +type T_G_fpos64_t = Tfpos_t + +func Xconfstr(tls *TLS, name int32, buf uintptr, len1 Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v name=%v buf=%v len1=%v, (%v:)", tls, name, buf, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var s uintptr + _ = s + s = __ccgo_ts + if !(name != 0) { + s = __ccgo_ts + 1 + } else { + if Uint32FromInt32(name) & ^Uint32FromUint32(4) != uint32(1) && Uint32FromInt32(name-int32(_CS_POSIX_V6_ILP32_OFF32_CFLAGS)) > uint32(35) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uint32(0) + } + } + // snprintf is overkill but avoid wasting code size to implement + // this completely useless function and its truncation semantics + return Uint32FromInt32(Xsnprintf(tls, buf, len1, __ccgo_ts+15, VaList(bp+8, s)) + int32(1)) +} + +const ARG_MAX = 131072 +const BC_BASE_MAX = 99 +const BC_DIM_MAX = 2048 +const BC_SCALE_MAX = 99 +const BC_STRING_MAX = 1000 +const CHARCLASS_NAME_MAX = 14 +const CHAR_BIT = 8 +const CHAR_MAX = 255 +const CHAR_MIN = 0 +const COLL_WEIGHTS_MAX = 2 +const DELAYTIMER_MAX = 2147483647 +const EXPR_NEST_MAX = 32 +const FILESIZEBITS = 64 +const HOST_NAME_MAX = 255 +const INT_MAX = 2147483647 +const INT_MIN = -2147483648 +const IOV_MAX = 1024 +const LINE_MAX = 4096 +const LLONG_MAX = 9223372036854775807 +const LLONG_MIN = -9223372036854775808 +const LOGIN_NAME_MAX = 256 +const LONG_BIT = 32 +const LONG_MAX = 2147483647 +const LONG_MIN = -2147483648 +const MB_LEN_MAX = 4 +const MQ_PRIO_MAX = 32768 +const NAME_MAX = 255 +const NGROUPS_MAX = 32 +const NL_ARGMAX = 9 +const NL_LANGMAX = 32 +const NL_MSGMAX = 32767 +const NL_SETMAX = 255 +const NL_TEXTMAX = 2048 +const NZERO = 20 +const PAGESIZE = 4096 +const PAGE_SIZE = 4096 +const PATH_MAX = 4096 +const PIPE_BUF = 4096 +const PTHREAD_DESTRUCTOR_ITERATIONS = 4 +const PTHREAD_KEYS_MAX = 128 +const PTHREAD_STACK_MIN = 2048 +const RE_DUP_MAX = 255 +const SCHAR_MAX = 127 +const SCHAR_MIN = -128 +const SEEK_CUR = 1 +const SEEK_END = 2 +const SEEK_SET = 0 +const SEM_NSEMS_MAX = 256 +const SEM_VALUE_MAX = 2147483647 +const SHRT_MAX = 32767 +const SHRT_MIN = -32768 +const SSIZE_MAX = 2147483647 +const SYMLOOP_MAX = 40 +const TTY_NAME_MAX = 32 +const TZNAME_MAX = 6 +const UCHAR_MAX = 255 +const UINT_MAX = 4294967295 +const ULLONG_MAX = 18446744073709551615 +const ULONG_MAX = 4294967295 +const USHRT_MAX = 65535 +const WORD_BIT = 32 +const _POSIX2_BC_BASE_MAX = 99 +const _POSIX2_BC_DIM_MAX = 2048 +const _POSIX2_BC_SCALE_MAX = 99 +const _POSIX2_BC_STRING_MAX = 1000 +const _POSIX2_CHARCLASS_NAME_MAX = 14 +const _POSIX2_COLL_WEIGHTS_MAX = 2 +const _POSIX2_EXPR_NEST_MAX = 32 +const _POSIX2_LINE_MAX = 2048 +const _POSIX2_RE_DUP_MAX = 255 +const _POSIX_AIO_LISTIO_MAX = 2 +const _POSIX_AIO_MAX = 1 +const _POSIX_ARG_MAX = 4096 +const _POSIX_CHILD_MAX = 25 +const _POSIX_CLOCKRES_MIN = 20000000 +const _POSIX_DELAYTIMER_MAX = 32 +const _POSIX_HOST_NAME_MAX = 255 +const _POSIX_LINK_MAX = 8 +const _POSIX_LOGIN_NAME_MAX = 9 +const _POSIX_MAX_CANON = 255 +const _POSIX_MAX_INPUT = 255 +const _POSIX_MQ_OPEN_MAX = 8 +const _POSIX_MQ_PRIO_MAX = 32 +const _POSIX_NAME_MAX = 14 +const _POSIX_NGROUPS_MAX = 8 +const _POSIX_OPEN_MAX = 20 +const _POSIX_PATH_MAX = 256 +const _POSIX_PIPE_BUF = 512 +const _POSIX_RE_DUP_MAX = 255 +const _POSIX_RTSIG_MAX = 8 +const _POSIX_SEM_NSEMS_MAX = 256 +const _POSIX_SEM_VALUE_MAX = 32767 +const _POSIX_SIGQUEUE_MAX = 32 +const _POSIX_SSIZE_MAX = 32767 +const _POSIX_SS_REPL_MAX = 4 +const _POSIX_STREAM_MAX = 8 +const _POSIX_SYMLINK_MAX = 255 +const _POSIX_SYMLOOP_MAX = 8 +const _POSIX_THREAD_DESTRUCTOR_ITERATIONS = 4 +const _POSIX_THREAD_KEYS_MAX = 128 +const _POSIX_THREAD_THREADS_MAX = 64 +const _POSIX_TIMER_MAX = 32 +const _POSIX_TRACE_EVENT_NAME_MAX = 30 +const _POSIX_TRACE_NAME_MAX = 8 +const _POSIX_TRACE_SYS_MAX = 8 +const _POSIX_TRACE_USER_EVENT_MAX = 32 +const _POSIX_TTY_NAME_MAX = 9 +const _POSIX_TZNAME_MAX = 6 +const _XOPEN_IOV_MAX = 16 +const _XOPEN_NAME_MAX = 255 +const _XOPEN_PATH_MAX = 1024 + +func Xfpathconf(tls *TLS, fd int32, name int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v name=%v, (%v:)", tls, fd, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + if Uint32FromInt32(name) >= Uint32FromInt64(42)/Uint32FromInt64(2) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + return int32(_values[name]) +} + +var _values = [21]int16{ + 0: int16(_POSIX_LINK_MAX), + 1: int16(_POSIX_MAX_CANON), + 2: int16(_POSIX_MAX_INPUT), + 3: int16(NAME_MAX), + 4: int16(PATH_MAX), + 5: int16(PIPE_BUF), + 6: int16(1), + 7: int16(1), + 9: int16(1), + 10: int16(-int32(1)), + 11: int16(-int32(1)), + 12: int16(-int32(1)), + 13: int16(FILESIZEBITS), + 14: int16(4096), + 15: int16(4096), + 16: int16(4096), + 17: int16(4096), + 18: int16(4096), + 19: int16(-int32(1)), + 20: int16(1), +} + +const SI_LOAD_SHIFT = 16 + +type Tsysinfo = struct { + Fuptime uint32 + Floads [3]uint32 + Ftotalram uint32 + Ffreeram uint32 + Fsharedram uint32 + Fbufferram uint32 + Ftotalswap uint32 + Ffreeswap uint32 + Fprocs uint16 + Fpad uint16 + Ftotalhigh uint32 + Ffreehigh uint32 + Fmem_unit uint32 + F__reserved [256]int8 +} + +func Xget_nprocs_conf(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xsysconf(tls, int32(_SC_NPROCESSORS_CONF)) +} + +func Xget_nprocs(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xsysconf(tls, int32(_SC_NPROCESSORS_ONLN)) +} + +func Xget_phys_pages(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xsysconf(tls, int32(_SC_PHYS_PAGES)) +} + +func Xget_avphys_pages(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xsysconf(tls, int32(_SC_AVPHYS_PAGES)) +} + +func Xpathconf(tls *TLS, path uintptr, name int32) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v name=%v, (%v:)", tls, path, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfpathconf(tls, -int32(1), name) +} + +const AT_BASE = 7 +const AT_BASE_PLATFORM = 24 +const AT_CLKTCK = 17 +const AT_DCACHEBSIZE = 19 +const AT_EGID = 14 +const AT_ENTRY = 9 +const AT_EUID = 12 +const AT_EXECFD = 2 +const AT_EXECFN = 31 +const AT_FLAGS = 8 +const AT_FPUCW = 18 +const AT_GID = 13 +const AT_HWCAP = 16 +const AT_HWCAP2 = 26 +const AT_ICACHEBSIZE = 20 +const AT_IGNORE = 1 +const AT_IGNOREPPC = 22 +const AT_L1D_CACHEGEOMETRY = 43 +const AT_L1D_CACHESHAPE = 35 +const AT_L1D_CACHESIZE = 42 +const AT_L1I_CACHEGEOMETRY = 41 +const AT_L1I_CACHESHAPE = 34 +const AT_L1I_CACHESIZE = 40 +const AT_L2_CACHEGEOMETRY = 45 +const AT_L2_CACHESHAPE = 36 +const AT_L2_CACHESIZE = 44 +const AT_L3_CACHEGEOMETRY = 47 +const AT_L3_CACHESHAPE = 37 +const AT_L3_CACHESIZE = 46 +const AT_MINSIGSTKSZ = 51 +const AT_NOTELF = 10 +const AT_NULL = 0 +const AT_PAGESZ = 6 +const AT_PHDR = 3 +const AT_PHENT = 4 +const AT_PHNUM = 5 +const AT_PLATFORM = 15 +const AT_RANDOM = 25 +const AT_SECURE = 23 +const AT_SYSINFO = 32 +const AT_SYSINFO_EHDR = 33 +const AT_UCACHEBSIZE = 21 +const AT_UID = 11 +const BUS_ADRALN = 1 +const BUS_ADRERR = 2 +const BUS_MCEERR_AO = 5 +const BUS_MCEERR_AR = 4 +const BUS_OBJERR = 3 +const CLD_CONTINUED = 6 +const CLD_DUMPED = 3 +const CLD_EXITED = 1 +const CLD_KILLED = 2 +const CLD_STOPPED = 5 +const CLD_TRAPPED = 4 +const DF_1_CONFALT = 8192 +const DF_1_DIRECT = 256 +const DF_1_DISPRELDNE = 32768 +const DF_1_DISPRELPND = 65536 +const DF_1_EDITED = 2097152 +const DF_1_ENDFILTEE = 16384 +const DF_1_GLOBAL = 2 +const DF_1_GLOBAUDIT = 16777216 +const DF_1_GROUP = 4 +const DF_1_IGNMULDEF = 262144 +const DF_1_INITFIRST = 32 +const DF_1_INTERPOSE = 1024 +const DF_1_LOADFLTR = 16 +const DF_1_NODEFLIB = 2048 +const DF_1_NODELETE = 8 +const DF_1_NODIRECT = 131072 +const DF_1_NODUMP = 4096 +const DF_1_NOHDR = 1048576 +const DF_1_NOKSYMS = 524288 +const DF_1_NOOPEN = 64 +const DF_1_NORELOC = 4194304 +const DF_1_NOW = 1 +const DF_1_ORIGIN = 128 +const DF_1_PIE = 134217728 +const DF_1_SINGLETON = 33554432 +const DF_1_STUB = 67108864 +const DF_1_SYMINTPOSE = 8388608 +const DF_1_TRANS = 512 +const DF_BIND_NOW = 8 +const DF_ORIGIN = 1 +const DF_P1_GROUPPERM = 2 +const DF_P1_LAZYLOAD = 1 +const DF_STATIC_TLS = 16 +const DF_SYMBOLIC = 2 +const DF_TEXTREL = 4 +const DTF_1_CONFEXP = 2 +const DTF_1_PARINIT = 1 +const DT_ADDRNUM = 11 +const DT_ADDRRNGHI = 1879047935 +const DT_ADDRRNGLO = 1879047680 +const DT_ALPHA_NUM = 1 +const DT_ALPHA_PLTRO = 1879048192 +const DT_AUDIT = 1879047932 +const DT_AUXILIARY = 2147483645 +const DT_BIND_NOW = 24 +const DT_CHECKSUM = 1879047672 +const DT_CONFIG = 1879047930 +const DT_DEBUG = 21 +const DT_DEPAUDIT = 1879047931 +const DT_ENCODING = 32 +const DT_EXTRANUM = 3 +const DT_FEATURE_1 = 1879047676 +const DT_FILTER = 2147483647 +const DT_FINI = 13 +const DT_FINI_ARRAY = 26 +const DT_FINI_ARRAYSZ = 28 +const DT_FLAGS = 30 +const DT_FLAGS_1 = 1879048187 +const DT_GNU_CONFLICT = 1879047928 +const DT_GNU_CONFLICTSZ = 1879047670 +const DT_GNU_HASH = 1879047925 +const DT_GNU_LIBLIST = 1879047929 +const DT_GNU_LIBLISTSZ = 1879047671 +const DT_GNU_PRELINKED = 1879047669 +const DT_HASH = 4 +const DT_HIOS = 1879044096 +const DT_HIPROC = 2147483647 +const DT_IA_64_NUM = 1 +const DT_IA_64_PLT_RESERVE = 1879048192 +const DT_INIT = 12 +const DT_INIT_ARRAY = 25 +const DT_INIT_ARRAYSZ = 27 +const DT_JMPREL = 23 +const DT_LOOS = 1610612749 +const DT_LOPROC = 1879048192 +const DT_MIPS_AUX_DYNAMIC = 1879048241 +const DT_MIPS_BASE_ADDRESS = 1879048198 +const DT_MIPS_COMPACT_SIZE = 1879048239 +const DT_MIPS_CONFLICT = 1879048200 +const DT_MIPS_CONFLICTNO = 1879048203 +const DT_MIPS_CXX_FLAGS = 1879048226 +const DT_MIPS_DELTA_CLASS = 1879048215 +const DT_MIPS_DELTA_CLASSSYM = 1879048224 +const DT_MIPS_DELTA_CLASSSYM_NO = 1879048225 +const DT_MIPS_DELTA_CLASS_NO = 1879048216 +const DT_MIPS_DELTA_INSTANCE = 1879048217 +const DT_MIPS_DELTA_INSTANCE_NO = 1879048218 +const DT_MIPS_DELTA_RELOC = 1879048219 +const DT_MIPS_DELTA_RELOC_NO = 1879048220 +const DT_MIPS_DELTA_SYM = 1879048221 +const DT_MIPS_DELTA_SYM_NO = 1879048222 +const DT_MIPS_DYNSTR_ALIGN = 1879048235 +const DT_MIPS_FLAGS = 1879048197 +const DT_MIPS_GOTSYM = 1879048211 +const DT_MIPS_GP_VALUE = 1879048240 +const DT_MIPS_HIDDEN_GOTIDX = 1879048231 +const DT_MIPS_HIPAGENO = 1879048212 +const DT_MIPS_ICHECKSUM = 1879048195 +const DT_MIPS_INTERFACE = 1879048234 +const DT_MIPS_INTERFACE_SIZE = 1879048236 +const DT_MIPS_IVERSION = 1879048196 +const DT_MIPS_LIBLIST = 1879048201 +const DT_MIPS_LIBLISTNO = 1879048208 +const DT_MIPS_LOCALPAGE_GOTIDX = 1879048229 +const DT_MIPS_LOCAL_GOTIDX = 1879048230 +const DT_MIPS_LOCAL_GOTNO = 1879048202 +const DT_MIPS_MSYM = 1879048199 +const DT_MIPS_NUM = 54 +const DT_MIPS_OPTIONS = 1879048233 +const DT_MIPS_PERF_SUFFIX = 1879048238 +const DT_MIPS_PIXIE_INIT = 1879048227 +const DT_MIPS_PLTGOT = 1879048242 +const DT_MIPS_PROTECTED_GOTIDX = 1879048232 +const DT_MIPS_RLD_MAP = 1879048214 +const DT_MIPS_RLD_MAP_REL = 1879048245 +const DT_MIPS_RLD_TEXT_RESOLVE_ADDR = 1879048237 +const DT_MIPS_RLD_VERSION = 1879048193 +const DT_MIPS_RWPLT = 1879048244 +const DT_MIPS_SYMBOL_LIB = 1879048228 +const DT_MIPS_SYMTABNO = 1879048209 +const DT_MIPS_TIME_STAMP = 1879048194 +const DT_MIPS_UNREFEXTNO = 1879048210 +const DT_MOVEENT = 1879047674 +const DT_MOVESZ = 1879047675 +const DT_MOVETAB = 1879047934 +const DT_NEEDED = 1 +const DT_NIOS2_GP = 1879048194 +const DT_NULL = 0 +const DT_NUM = 38 +const DT_PLTGOT = 3 +const DT_PLTPAD = 1879047933 +const DT_PLTPADSZ = 1879047673 +const DT_PLTREL = 20 +const DT_PLTRELSZ = 2 +const DT_POSFLAG_1 = 1879047677 +const DT_PPC64_GLINK = 1879048192 +const DT_PPC64_NUM = 4 +const DT_PPC64_OPD = 1879048193 +const DT_PPC64_OPDSZ = 1879048194 +const DT_PPC64_OPT = 1879048195 +const DT_PPC_GOT = 1879048192 +const DT_PPC_NUM = 2 +const DT_PPC_OPT = 1879048193 +const DT_PREINIT_ARRAY = 32 +const DT_PREINIT_ARRAYSZ = 33 +const DT_PROCNUM = 54 +const DT_REL = 17 +const DT_RELA = 7 +const DT_RELACOUNT = 1879048185 +const DT_RELAENT = 9 +const DT_RELASZ = 8 +const DT_RELCOUNT = 1879048186 +const DT_RELENT = 19 +const DT_RELR = 36 +const DT_RELRENT = 37 +const DT_RELRSZ = 35 +const DT_RELSZ = 18 +const DT_RPATH = 15 +const DT_RUNPATH = 29 +const DT_SONAME = 14 +const DT_SPARC_NUM = 2 +const DT_SPARC_REGISTER = 1879048193 +const DT_STRSZ = 10 +const DT_STRTAB = 5 +const DT_SYMBOLIC = 16 +const DT_SYMENT = 11 +const DT_SYMINENT = 1879047679 +const DT_SYMINFO = 1879047935 +const DT_SYMINSZ = 1879047678 +const DT_SYMTAB = 6 +const DT_SYMTAB_SHNDX = 34 +const DT_TEXTREL = 22 +const DT_TLSDESC_GOT = 1879047927 +const DT_TLSDESC_PLT = 1879047926 +const DT_VALNUM = 12 +const DT_VALRNGHI = 1879047679 +const DT_VALRNGLO = 1879047424 +const DT_VERDEF = 1879048188 +const DT_VERDEFNUM = 1879048189 +const DT_VERNEED = 1879048190 +const DT_VERNEEDNUM = 1879048191 +const DT_VERSIONTAGNUM = 16 +const DT_VERSYM = 1879048176 +const EFA_PARISC_1_0 = 523 +const EFA_PARISC_1_1 = 528 +const EFA_PARISC_2_0 = 532 +const EF_ALPHA_32BIT = 1 +const EF_ALPHA_CANRELAX = 2 +const EF_ARM_ABI_FLOAT_HARD = 1024 +const EF_ARM_ABI_FLOAT_SOFT = 512 +const EF_ARM_ALIGN8 = 64 +const EF_ARM_APCS_26 = 8 +const EF_ARM_APCS_FLOAT = 16 +const EF_ARM_BE8 = 8388608 +const EF_ARM_DYNSYMSUSESEGIDX = 8 +const EF_ARM_EABIMASK = 4278190080 +const EF_ARM_EABI_UNKNOWN = 0 +const EF_ARM_EABI_VER1 = 16777216 +const EF_ARM_EABI_VER2 = 33554432 +const EF_ARM_EABI_VER3 = 50331648 +const EF_ARM_EABI_VER4 = 67108864 +const EF_ARM_EABI_VER5 = 83886080 +const EF_ARM_HASENTRY = 2 +const EF_ARM_INTERWORK = 4 +const EF_ARM_LE8 = 4194304 +const EF_ARM_MAPSYMSFIRST = 16 +const EF_ARM_MAVERICK_FLOAT = 2048 +const EF_ARM_NEW_ABI = 128 +const EF_ARM_OLD_ABI = 256 +const EF_ARM_PIC = 32 +const EF_ARM_RELEXEC = 1 +const EF_ARM_SOFT_FLOAT = 512 +const EF_ARM_SYMSARESORTED = 4 +const EF_ARM_VFP_FLOAT = 1024 +const EF_CPU32 = 8454144 +const EF_IA_64_ABI64 = 16 +const EF_IA_64_ARCH = 4278190080 +const EF_IA_64_MASKOS = 15 +const EF_LARCH_ABI_DOUBLE_FLOAT = 3 +const EF_LARCH_ABI_MODIFIER_MASK = 7 +const EF_LARCH_ABI_SINGLE_FLOAT = 2 +const EF_LARCH_ABI_SOFT_FLOAT = 1 +const EF_LARCH_OBJABI_V1 = 64 +const EF_MIPS_64BIT_WHIRL = 16 +const EF_MIPS_ABI2 = 32 +const EF_MIPS_ABI_ON32 = 64 +const EF_MIPS_ARCH = 4026531840 +const EF_MIPS_ARCH_1 = 0 +const EF_MIPS_ARCH_2 = 268435456 +const EF_MIPS_ARCH_3 = 536870912 +const EF_MIPS_ARCH_32 = 1342177280 +const EF_MIPS_ARCH_32R2 = 1879048192 +const EF_MIPS_ARCH_4 = 805306368 +const EF_MIPS_ARCH_5 = 1073741824 +const EF_MIPS_ARCH_64 = 1610612736 +const EF_MIPS_ARCH_64R2 = 2147483648 +const EF_MIPS_CPIC = 4 +const EF_MIPS_FP64 = 512 +const EF_MIPS_NAN2008 = 1024 +const EF_MIPS_NOREORDER = 1 +const EF_MIPS_PIC = 2 +const EF_MIPS_XGOT = 8 +const EF_PARISC_ARCH = 65535 +const EF_PARISC_EXT = 131072 +const EF_PARISC_LAZYSWAP = 4194304 +const EF_PARISC_LSB = 262144 +const EF_PARISC_NO_KABP = 1048576 +const EF_PARISC_TRAPNIL = 65536 +const EF_PARISC_WIDE = 524288 +const EF_PPC64_ABI = 3 +const EF_PPC_EMB = 2147483648 +const EF_PPC_RELOCATABLE = 65536 +const EF_PPC_RELOCATABLE_LIB = 32768 +const EF_SH1 = 1 +const EF_SH2 = 2 +const EF_SH2A = 13 +const EF_SH2A_NOFPU = 19 +const EF_SH2A_SH3E = 24 +const EF_SH2A_SH3_NOFPU = 22 +const EF_SH2A_SH4 = 23 +const EF_SH2A_SH4_NOFPU = 21 +const EF_SH2E = 11 +const EF_SH3 = 3 +const EF_SH3E = 8 +const EF_SH3_DSP = 5 +const EF_SH3_NOMMU = 20 +const EF_SH4 = 9 +const EF_SH4A = 12 +const EF_SH4AL_DSP = 6 +const EF_SH4A_NOFPU = 17 +const EF_SH4_NOFPU = 16 +const EF_SH4_NOMMU_NOFPU = 18 +const EF_SH_DSP = 4 +const EF_SH_MACH_MASK = 31 +const EF_SH_UNKNOWN = 0 +const EF_SPARCV9_MM = 3 +const EF_SPARCV9_PSO = 1 +const EF_SPARCV9_RMO = 2 +const EF_SPARCV9_TSO = 0 +const EF_SPARC_32PLUS = 256 +const EF_SPARC_EXT_MASK = 16776960 +const EF_SPARC_HAL_R1 = 1024 +const EF_SPARC_LEDATA = 8388608 +const EF_SPARC_SUN_US1 = 512 +const EF_SPARC_SUN_US3 = 2048 +const EI_ABIVERSION = 8 +const EI_CLASS = 4 +const EI_DATA = 5 +const EI_MAG0 = 0 +const EI_MAG1 = 1 +const EI_MAG2 = 2 +const EI_MAG3 = 3 +const EI_NIDENT = 16 +const EI_OSABI = 7 +const EI_PAD = 9 +const EI_VERSION = 6 +const ELFCLASS32 = 1 +const ELFCLASS64 = 2 +const ELFCLASSNONE = 0 +const ELFCLASSNUM = 3 +const ELFCOMPRESS_HIOS = 1879048191 +const ELFCOMPRESS_HIPROC = 2147483647 +const ELFCOMPRESS_LOOS = 1610612736 +const ELFCOMPRESS_LOPROC = 1879048192 +const ELFCOMPRESS_ZLIB = 1 +const ELFCOMPRESS_ZSTD = 2 +const ELFDATA2LSB = 1 +const ELFDATA2MSB = 2 +const ELFDATANONE = 0 +const ELFDATANUM = 3 +const ELFMAG = "\\177ELF" +const ELFMAG0 = 127 +const ELFMAG1 = 69 +const ELFMAG2 = 76 +const ELFMAG3 = 70 +const ELFOSABI_AIX = 7 +const ELFOSABI_ARM = 97 +const ELFOSABI_FREEBSD = 9 +const ELFOSABI_GNU = 3 +const ELFOSABI_HPUX = 1 +const ELFOSABI_IRIX = 8 +const ELFOSABI_LINUX = 3 +const ELFOSABI_MODESTO = 11 +const ELFOSABI_NETBSD = 2 +const ELFOSABI_NONE = 0 +const ELFOSABI_OPENBSD = 12 +const ELFOSABI_SOLARIS = 6 +const ELFOSABI_STANDALONE = 255 +const ELFOSABI_SYSV = 0 +const ELFOSABI_TRU64 = 10 +const ELF_NOTE_ABI = 1 +const ELF_NOTE_GNU = "GNU" +const ELF_NOTE_OS_FREEBSD = 3 +const ELF_NOTE_OS_GNU = 1 +const ELF_NOTE_OS_LINUX = 0 +const ELF_NOTE_OS_SOLARIS2 = 2 +const ELF_NOTE_PAGESIZE_HINT = 1 +const ELF_NOTE_SOLARIS = "SUNW Solaris" +const EM_386 = 3 +const EM_56800EX = 200 +const EM_68HC05 = 72 +const EM_68HC08 = 71 +const EM_68HC11 = 70 +const EM_68HC12 = 53 +const EM_68HC16 = 69 +const EM_68K = 4 +const EM_78KOR = 199 +const EM_8051 = 165 +const EM_860 = 7 +const EM_88K = 5 +const EM_960 = 19 +const EM_AARCH64 = 183 +const EM_ALPHA = 36902 +const EM_ALTERA_NIOS2 = 113 +const EM_AMDGPU = 224 +const EM_ARC = 45 +const EM_ARCA = 109 +const EM_ARC_A5 = 93 +const EM_ARC_COMPACT = 93 +const EM_ARC_COMPACT2 = 195 +const EM_ARM = 40 +const EM_AVR = 83 +const EM_AVR32 = 185 +const EM_BA1 = 201 +const EM_BA2 = 202 +const EM_BLACKFIN = 106 +const EM_BPF = 247 +const EM_C166 = 116 +const EM_CDP = 215 +const EM_CE = 119 +const EM_CLOUDSHIELD = 192 +const EM_COGE = 216 +const EM_COLDFIRE = 52 +const EM_COOL = 217 +const EM_COREA_1ST = 193 +const EM_COREA_2ND = 194 +const EM_CR = 103 +const EM_CR16 = 177 +const EM_CRAYNV2 = 172 +const EM_CRIS = 76 +const EM_CRX = 114 +const EM_CSKY = 252 +const EM_CSR_KALIMBA = 219 +const EM_CUDA = 190 +const EM_CYPRESS_M8C = 161 +const EM_D10V = 85 +const EM_D30V = 86 +const EM_DSP24 = 136 +const EM_DSPIC30F = 118 +const EM_DXP = 112 +const EM_ECOG16 = 176 +const EM_ECOG1X = 168 +const EM_ECOG2 = 134 +const EM_EMX16 = 212 +const EM_EMX8 = 213 +const EM_ETPU = 178 +const EM_EXCESS = 111 +const EM_F2MC16 = 104 +const EM_FAKE_ALPHA = 41 +const EM_FIREPATH = 78 +const EM_FR20 = 37 +const EM_FR30 = 84 +const EM_FT32 = 222 +const EM_FX66 = 66 +const EM_H8S = 48 +const EM_H8_300 = 46 +const EM_H8_300H = 47 +const EM_H8_500 = 49 +const EM_HUANY = 81 +const EM_IA_64 = 50 +const EM_IP2K = 101 +const EM_JAVELIN = 77 +const EM_K10M = 181 +const EM_KM32 = 210 +const EM_KMX32 = 211 +const EM_KVARC = 214 +const EM_L10M = 180 +const EM_LATTICEMICO32 = 138 +const EM_LOONGARCH = 258 +const EM_M16C = 117 +const EM_M32 = 1 +const EM_M32C = 120 +const EM_M32R = 88 +const EM_MANIK = 171 +const EM_MAX = 102 +const EM_MAXQ30 = 169 +const EM_MCHP_PIC = 204 +const EM_MCST_ELBRUS = 175 +const EM_ME16 = 59 +const EM_METAG = 174 +const EM_MICROBLAZE = 189 +const EM_MIPS = 8 +const EM_MIPS_RS3_LE = 10 +const EM_MIPS_X = 51 +const EM_MMA = 54 +const EM_MMDSP_PLUS = 160 +const EM_MMIX = 80 +const EM_MN10200 = 90 +const EM_MN10300 = 89 +const EM_MOXIE = 223 +const EM_MSP430 = 105 +const EM_NCPU = 56 +const EM_NDR1 = 57 +const EM_NDS32 = 167 +const EM_NONE = 0 +const EM_NORC = 218 +const EM_NS32K = 97 +const EM_NUM = 259 +const EM_OPEN8 = 196 +const EM_OPENRISC = 92 +const EM_OR1K = 92 +const EM_PARISC = 15 +const EM_PCP = 55 +const EM_PDSP = 63 +const EM_PJ = 91 +const EM_PPC = 20 +const EM_PPC64 = 21 +const EM_PRISM = 82 +const EM_QDSP6 = 164 +const EM_R32C = 162 +const EM_RCE = 39 +const EM_RH32 = 38 +const EM_RISCV = 243 +const EM_RL78 = 197 +const EM_RS08 = 132 +const EM_RX = 173 +const EM_S370 = 9 +const EM_S390 = 22 +const EM_SCORE7 = 135 +const EM_SEP = 108 +const EM_SE_C17 = 139 +const EM_SE_C33 = 107 +const EM_SH = 42 +const EM_SHARC = 133 +const EM_SLE9X = 179 +const EM_SNP1K = 99 +const EM_SPARC = 2 +const EM_SPARC32PLUS = 18 +const EM_SPARCV9 = 43 +const EM_ST100 = 60 +const EM_ST19 = 74 +const EM_ST200 = 100 +const EM_ST7 = 68 +const EM_ST9PLUS = 67 +const EM_STARCORE = 58 +const EM_STM8 = 186 +const EM_STXP7X = 166 +const EM_SVX = 73 +const EM_TILE64 = 187 +const EM_TILEGX = 191 +const EM_TILEPRO = 188 +const EM_TINYJ = 61 +const EM_TI_ARP32 = 143 +const EM_TI_C2000 = 141 +const EM_TI_C5500 = 142 +const EM_TI_C6000 = 140 +const EM_TI_PRU = 144 +const EM_TMM_GPP = 96 +const EM_TPC = 98 +const EM_TRICORE = 44 +const EM_TRIMEDIA = 163 +const EM_TSK3000 = 131 +const EM_UNICORE = 110 +const EM_V800 = 36 +const EM_V850 = 87 +const EM_VAX = 75 +const EM_VIDEOCORE = 95 +const EM_VIDEOCORE3 = 137 +const EM_VIDEOCORE5 = 198 +const EM_VISIUM = 221 +const EM_VPP500 = 17 +const EM_X86_64 = 62 +const EM_XCORE = 203 +const EM_XGATE = 115 +const EM_XIMO16 = 170 +const EM_XTENSA = 94 +const EM_Z80 = 220 +const EM_ZSP = 79 +const ET_CORE = 4 +const ET_DYN = 3 +const ET_EXEC = 2 +const ET_HIOS = 65279 +const ET_HIPROC = 65535 +const ET_LOOS = 65024 +const ET_LOPROC = 65280 +const ET_NONE = 0 +const ET_NUM = 5 +const ET_REL = 1 +const EV_CURRENT = 1 +const EV_NONE = 0 +const EV_NUM = 2 +const EXIT_FAILURE = 1 +const EXIT_SUCCESS = 0 +const E_MIPS_ARCH_1 = 0 +const E_MIPS_ARCH_2 = 268435456 +const E_MIPS_ARCH_3 = 536870912 +const E_MIPS_ARCH_32 = 1342177280 +const E_MIPS_ARCH_4 = 805306368 +const E_MIPS_ARCH_5 = 1073741824 +const E_MIPS_ARCH_64 = 1610612736 +const FD_SETSIZE = 1024 +const FPE_FLTDIV = 3 +const FPE_FLTINV = 7 +const FPE_FLTOVF = 4 +const FPE_FLTRES = 6 +const FPE_FLTSUB = 8 +const FPE_FLTUND = 5 +const FPE_INTDIV = 1 +const FPE_INTOVF = 2 +const GRP_COMDAT = 1 +const ILL_BADSTK = 8 +const ILL_COPROC = 7 +const ILL_ILLADR = 3 +const ILL_ILLOPC = 1 +const ILL_ILLOPN = 2 +const ILL_ILLTRP = 4 +const ILL_PRVOPC = 5 +const ILL_PRVREG = 6 +const ITIMER_PROF = 2 +const ITIMER_REAL = 0 +const ITIMER_VIRTUAL = 1 +const JT_ARG_MAX = -254 +const JT_AVPHYS_PAGES = -247 +const JT_DELAYTIMER_MAX = -245 +const JT_MINSIGSTKSZ = -244 +const JT_MQ_PRIO_MAX = -253 +const JT_NPROCESSORS_CONF = -250 +const JT_NPROCESSORS_ONLN = -249 +const JT_PAGE_SIZE = -252 +const JT_PHYS_PAGES = -248 +const JT_SEM_VALUE_MAX = -251 +const JT_SIGSTKSZ = -243 +const JT_ZERO = -246 +const LITUSE_ALPHA_ADDR = 0 +const LITUSE_ALPHA_BASE = 1 +const LITUSE_ALPHA_BYTOFF = 2 +const LITUSE_ALPHA_JSR = 3 +const LITUSE_ALPHA_TLS_GD = 4 +const LITUSE_ALPHA_TLS_LDM = 5 +const LL_DELAY_LOAD = 16 +const LL_DELTA = 32 +const LL_EXACT_MATCH = 1 +const LL_EXPORTS = 8 +const LL_IGNORE_INT_VER = 2 +const LL_NONE = 0 +const LL_REQUIRE_MINOR = 4 +const MB_CUR_MAX = 0 +const MINSIGSTKSZ = 2048 +const MIPS_AFL_ASE_DSP = 1 +const MIPS_AFL_ASE_DSPR2 = 2 +const MIPS_AFL_ASE_EVA = 4 +const MIPS_AFL_ASE_MASK = 8191 +const MIPS_AFL_ASE_MCU = 8 +const MIPS_AFL_ASE_MDMX = 16 +const MIPS_AFL_ASE_MICROMIPS = 2048 +const MIPS_AFL_ASE_MIPS16 = 1024 +const MIPS_AFL_ASE_MIPS3D = 32 +const MIPS_AFL_ASE_MSA = 512 +const MIPS_AFL_ASE_MT = 64 +const MIPS_AFL_ASE_SMARTMIPS = 128 +const MIPS_AFL_ASE_VIRT = 256 +const MIPS_AFL_ASE_XPA = 4096 +const MIPS_AFL_EXT_10000 = 11 +const MIPS_AFL_EXT_3900 = 10 +const MIPS_AFL_EXT_4010 = 8 +const MIPS_AFL_EXT_4100 = 9 +const MIPS_AFL_EXT_4111 = 13 +const MIPS_AFL_EXT_4120 = 14 +const MIPS_AFL_EXT_4650 = 7 +const MIPS_AFL_EXT_5400 = 15 +const MIPS_AFL_EXT_5500 = 16 +const MIPS_AFL_EXT_5900 = 6 +const MIPS_AFL_EXT_LOONGSON_2E = 17 +const MIPS_AFL_EXT_LOONGSON_2F = 18 +const MIPS_AFL_EXT_LOONGSON_3A = 4 +const MIPS_AFL_EXT_OCTEON = 5 +const MIPS_AFL_EXT_OCTEON2 = 2 +const MIPS_AFL_EXT_OCTEONP = 3 +const MIPS_AFL_EXT_SB1 = 12 +const MIPS_AFL_EXT_XLR = 1 +const MIPS_AFL_FLAGS1_ODDSPREG = 1 +const MIPS_AFL_REG_128 = 3 +const MIPS_AFL_REG_32 = 1 +const MIPS_AFL_REG_64 = 2 +const MIPS_AFL_REG_NONE = 0 +const NT_386_IOPERM = 513 +const NT_386_TLS = 512 +const NT_ARC_V2 = 1536 +const NT_ARM_HW_BREAK = 1026 +const NT_ARM_HW_WATCH = 1027 +const NT_ARM_PACA_KEYS = 1031 +const NT_ARM_PACG_KEYS = 1032 +const NT_ARM_PAC_ENABLED_KEYS = 1034 +const NT_ARM_PAC_MASK = 1030 +const NT_ARM_SVE = 1029 +const NT_ARM_SYSTEM_CALL = 1028 +const NT_ARM_TAGGED_ADDR_CTRL = 1033 +const NT_ARM_TLS = 1025 +const NT_ARM_VFP = 1024 +const NT_ASRS = 8 +const NT_AUXV = 6 +const NT_FILE = 1179208773 +const NT_FPREGSET = 2 +const NT_GNU_ABI_TAG = 1 +const NT_GNU_BUILD_ID = 3 +const NT_GNU_GOLD_VERSION = 4 +const NT_GNU_PROPERTY_TYPE_0 = 5 +const NT_GWINDOWS = 7 +const NT_LOONGARCH_CPUCFG = 2560 +const NT_LOONGARCH_CSR = 2561 +const NT_LOONGARCH_LASX = 2563 +const NT_LOONGARCH_LBT = 2564 +const NT_LOONGARCH_LSX = 2562 +const NT_LWPSINFO = 17 +const NT_LWPSTATUS = 16 +const NT_METAG_CBUF = 1280 +const NT_METAG_RPIPE = 1281 +const NT_METAG_TLS = 1282 +const NT_MIPS_DSP = 2048 +const NT_MIPS_FP_MODE = 2049 +const NT_MIPS_MSA = 2050 +const NT_PLATFORM = 5 +const NT_PPC_DSCR = 261 +const NT_PPC_EBB = 262 +const NT_PPC_PMU = 263 +const NT_PPC_PPR = 260 +const NT_PPC_SPE = 257 +const NT_PPC_TAR = 259 +const NT_PPC_TM_CDSCR = 271 +const NT_PPC_TM_CFPR = 265 +const NT_PPC_TM_CGPR = 264 +const NT_PPC_TM_CPPR = 270 +const NT_PPC_TM_CTAR = 269 +const NT_PPC_TM_CVMX = 266 +const NT_PPC_TM_CVSX = 267 +const NT_PPC_TM_SPR = 268 +const NT_PPC_VMX = 256 +const NT_PPC_VSX = 258 +const NT_PRCRED = 14 +const NT_PRFPREG = 2 +const NT_PRFPXREG = 20 +const NT_PRPSINFO = 3 +const NT_PRSTATUS = 1 +const NT_PRXFPREG = 1189489535 +const NT_PRXREG = 4 +const NT_PSINFO = 13 +const NT_PSTATUS = 10 +const NT_RISCV_CSR = 2304 +const NT_RISCV_VECTOR = 2305 +const NT_S390_CTRS = 772 +const NT_S390_GS_BC = 780 +const NT_S390_GS_CB = 779 +const NT_S390_HIGH_GPRS = 768 +const NT_S390_LAST_BREAK = 774 +const NT_S390_PREFIX = 773 +const NT_S390_RI_CB = 781 +const NT_S390_SYSTEM_CALL = 775 +const NT_S390_TDB = 776 +const NT_S390_TIMER = 769 +const NT_S390_TODCMP = 770 +const NT_S390_TODPREG = 771 +const NT_S390_VXRS_HIGH = 778 +const NT_S390_VXRS_LOW = 777 +const NT_SIGINFO = 1397311305 +const NT_TASKSTRUCT = 4 +const NT_UTSNAME = 15 +const NT_VERSION = 1 +const NT_VMCOREDD = 1792 +const NT_X86_XSTATE = 514 +const ODK_EXCEPTIONS = 2 +const ODK_FILL = 5 +const ODK_HWAND = 7 +const ODK_HWOR = 8 +const ODK_HWPATCH = 4 +const ODK_NULL = 0 +const ODK_PAD = 3 +const ODK_REGINFO = 1 +const ODK_TAGS = 6 +const OEX_DISMISS = 524288 +const OEX_FPDBUG = 262144 +const OEX_FPU_DIV0 = 8 +const OEX_FPU_INEX = 1 +const OEX_FPU_INVAL = 16 +const OEX_FPU_MAX = 7936 +const OEX_FPU_MIN = 31 +const OEX_FPU_OFLO = 4 +const OEX_FPU_UFLO = 2 +const OEX_PAGE0 = 65536 +const OEX_PRECISEFP = 262144 +const OEX_SMM = 131072 +const OHWA0_R4KEOP_CHECKED = 1 +const OHWA1_R4KEOP_CLEAN = 2 +const OHW_R4KEOP = 1 +const OHW_R5KCVTL = 8 +const OHW_R5KEOP = 4 +const OHW_R8KPFETCH = 2 +const OPAD_POSTFIX = 2 +const OPAD_PREFIX = 1 +const OPAD_SYMBOL = 4 +const PF_ARM_ABS = 1073741824 +const PF_ARM_PI = 536870912 +const PF_ARM_SB = 268435456 +const PF_HP_CODE = 16777216 +const PF_HP_FAR_SHARED = 2097152 +const PF_HP_LAZYSWAP = 67108864 +const PF_HP_MODIFY = 33554432 +const PF_HP_NEAR_SHARED = 4194304 +const PF_HP_PAGE_SIZE = 1048576 +const PF_HP_SBP = 134217728 +const PF_IA_64_NORECOV = 2147483648 +const PF_MASKOS = 267386880 +const PF_MASKPROC = 4026531840 +const PF_MIPS_LOCAL = 268435456 +const PF_PARISC_SBP = 134217728 +const PF_R = 4 +const PF_W = 2 +const PF_X = 1 +const PN_XNUM = 65535 +const POLL_ERR = 4 +const POLL_HUP = 6 +const POLL_IN = 1 +const POLL_MSG = 3 +const POLL_OUT = 2 +const POLL_PRI = 5 +const PPC64_OPT_LOCALENTRY = 4 +const PPC64_OPT_MULTI_TOC = 2 +const PPC64_OPT_TLS = 1 +const PPC_OPT_TLS = 1 +const PRIO_MAX = 20 +const PRIO_MIN = -20 +const PRIO_PGRP = 1 +const PRIO_PROCESS = 0 +const PRIO_USER = 2 +const PT_ARM_EXIDX = 1879048193 +const PT_DYNAMIC = 2 +const PT_GNU_EH_FRAME = 1685382480 +const PT_GNU_PROPERTY = 1685382483 +const PT_GNU_RELRO = 1685382482 +const PT_GNU_STACK = 1685382481 +const PT_HIOS = 1879048191 +const PT_HIPROC = 2147483647 +const PT_HISUNW = 1879048191 +const PT_HP_CORE_COMM = 1610612740 +const PT_HP_CORE_KERNEL = 1610612739 +const PT_HP_CORE_LOADABLE = 1610612742 +const PT_HP_CORE_MMF = 1610612745 +const PT_HP_CORE_NONE = 1610612737 +const PT_HP_CORE_PROC = 1610612741 +const PT_HP_CORE_SHM = 1610612744 +const PT_HP_CORE_STACK = 1610612743 +const PT_HP_CORE_VERSION = 1610612738 +const PT_HP_FASTBIND = 1610612753 +const PT_HP_HSL_ANNOT = 1610612755 +const PT_HP_OPT_ANNOT = 1610612754 +const PT_HP_PARALLEL = 1610612752 +const PT_HP_STACK = 1610612756 +const PT_HP_TLS = 1610612736 +const PT_IA_64_ARCHEXT = 1879048192 +const PT_IA_64_HP_HSL_ANOT = 1610612755 +const PT_IA_64_HP_OPT_ANOT = 1610612754 +const PT_IA_64_HP_STACK = 1610612756 +const PT_IA_64_UNWIND = 1879048193 +const PT_INTERP = 3 +const PT_LOAD = 1 +const PT_LOOS = 1610612736 +const PT_LOPROC = 1879048192 +const PT_LOSUNW = 1879048186 +const PT_MIPS_ABIFLAGS = 1879048195 +const PT_MIPS_OPTIONS = 1879048194 +const PT_MIPS_REGINFO = 1879048192 +const PT_MIPS_RTPROC = 1879048193 +const PT_NOTE = 4 +const PT_NULL = 0 +const PT_NUM = 8 +const PT_PARISC_ARCHEXT = 1879048192 +const PT_PARISC_UNWIND = 1879048193 +const PT_PHDR = 6 +const PT_SHLIB = 5 +const PT_SUNWBSS = 1879048186 +const PT_SUNWSTACK = 1879048187 +const PT_TLS = 7 +const RAND_MAX = 2147483647 +const RHF_CORD = 4096 +const RHF_DEFAULT_DELAY_LOAD = 512 +const RHF_DELTA_C_PLUS_PLUS = 64 +const RHF_GUARANTEE_INIT = 32 +const RHF_GUARANTEE_START_INIT = 128 +const RHF_NONE = 0 +const RHF_NOTPOT = 2 +const RHF_NO_LIBRARY_REPLACEMENT = 4 +const RHF_NO_MOVE = 8 +const RHF_NO_UNRES_UNDEF = 8192 +const RHF_PIXIE = 256 +const RHF_QUICKSTART = 1 +const RHF_REQUICKSTART = 1024 +const RHF_REQUICKSTARTED = 2048 +const RHF_RLD_ORDER_SAFE = 16384 +const RHF_SGI_ONLY = 16 +const RLIMIT_AS = 9 +const RLIMIT_CORE = 4 +const RLIMIT_CPU = 0 +const RLIMIT_DATA = 2 +const RLIMIT_FSIZE = 1 +const RLIMIT_LOCKS = 10 +const RLIMIT_MEMLOCK = 8 +const RLIMIT_MSGQUEUE = 12 +const RLIMIT_NICE = 13 +const RLIMIT_NLIMITS = 16 +const RLIMIT_NOFILE = 7 +const RLIMIT_NPROC = 6 +const RLIMIT_RSS = 5 +const RLIMIT_RTPRIO = 14 +const RLIMIT_RTTIME = 15 +const RLIMIT_SIGPENDING = 11 +const RLIMIT_STACK = 3 +const RLIM_INFINITY = 18446744073709551615 +const RLIM_NLIMITS = 16 +const RLIM_SAVED_CUR = 18446744073709551615 +const RLIM_SAVED_MAX = 18446744073709551615 +const RUSAGE_CHILDREN = -1 +const RUSAGE_SELF = 0 +const RUSAGE_THREAD = 1 +const R_386_16 = 20 +const R_386_32 = 1 +const R_386_32PLT = 11 +const R_386_8 = 22 +const R_386_COPY = 5 +const R_386_GLOB_DAT = 6 +const R_386_GOT32 = 3 +const R_386_GOT32X = 43 +const R_386_GOTOFF = 9 +const R_386_GOTPC = 10 +const R_386_IRELATIVE = 42 +const R_386_JMP_SLOT = 7 +const R_386_NONE = 0 +const R_386_NUM = 44 +const R_386_PC16 = 21 +const R_386_PC32 = 2 +const R_386_PC8 = 23 +const R_386_PLT32 = 4 +const R_386_RELATIVE = 8 +const R_386_SIZE32 = 38 +const R_386_TLS_DESC = 41 +const R_386_TLS_DESC_CALL = 40 +const R_386_TLS_DTPMOD32 = 35 +const R_386_TLS_DTPOFF32 = 36 +const R_386_TLS_GD = 18 +const R_386_TLS_GD_32 = 24 +const R_386_TLS_GD_CALL = 26 +const R_386_TLS_GD_POP = 27 +const R_386_TLS_GD_PUSH = 25 +const R_386_TLS_GOTDESC = 39 +const R_386_TLS_GOTIE = 16 +const R_386_TLS_IE = 15 +const R_386_TLS_IE_32 = 33 +const R_386_TLS_LDM = 19 +const R_386_TLS_LDM_32 = 28 +const R_386_TLS_LDM_CALL = 30 +const R_386_TLS_LDM_POP = 31 +const R_386_TLS_LDM_PUSH = 29 +const R_386_TLS_LDO_32 = 32 +const R_386_TLS_LE = 17 +const R_386_TLS_LE_32 = 34 +const R_386_TLS_TPOFF = 14 +const R_386_TLS_TPOFF32 = 37 +const R_390_12 = 2 +const R_390_16 = 3 +const R_390_20 = 57 +const R_390_32 = 4 +const R_390_64 = 22 +const R_390_8 = 1 +const R_390_COPY = 9 +const R_390_GLOB_DAT = 10 +const R_390_GOT12 = 6 +const R_390_GOT16 = 15 +const R_390_GOT20 = 58 +const R_390_GOT32 = 7 +const R_390_GOT64 = 24 +const R_390_GOTENT = 26 +const R_390_GOTOFF16 = 27 +const R_390_GOTOFF32 = 13 +const R_390_GOTOFF64 = 28 +const R_390_GOTPC = 14 +const R_390_GOTPCDBL = 21 +const R_390_GOTPLT12 = 29 +const R_390_GOTPLT16 = 30 +const R_390_GOTPLT20 = 59 +const R_390_GOTPLT32 = 31 +const R_390_GOTPLT64 = 32 +const R_390_GOTPLTENT = 33 +const R_390_JMP_SLOT = 11 +const R_390_NONE = 0 +const R_390_NUM = 61 +const R_390_PC16 = 16 +const R_390_PC16DBL = 17 +const R_390_PC32 = 5 +const R_390_PC32DBL = 19 +const R_390_PC64 = 23 +const R_390_PLT16DBL = 18 +const R_390_PLT32 = 8 +const R_390_PLT32DBL = 20 +const R_390_PLT64 = 25 +const R_390_PLTOFF16 = 34 +const R_390_PLTOFF32 = 35 +const R_390_PLTOFF64 = 36 +const R_390_RELATIVE = 12 +const R_390_TLS_DTPMOD = 54 +const R_390_TLS_DTPOFF = 55 +const R_390_TLS_GD32 = 40 +const R_390_TLS_GD64 = 41 +const R_390_TLS_GDCALL = 38 +const R_390_TLS_GOTIE12 = 42 +const R_390_TLS_GOTIE20 = 60 +const R_390_TLS_GOTIE32 = 43 +const R_390_TLS_GOTIE64 = 44 +const R_390_TLS_IE32 = 47 +const R_390_TLS_IE64 = 48 +const R_390_TLS_IEENT = 49 +const R_390_TLS_LDCALL = 39 +const R_390_TLS_LDM32 = 45 +const R_390_TLS_LDM64 = 46 +const R_390_TLS_LDO32 = 52 +const R_390_TLS_LDO64 = 53 +const R_390_TLS_LE32 = 50 +const R_390_TLS_LE64 = 51 +const R_390_TLS_LOAD = 37 +const R_390_TLS_TPOFF = 56 +const R_68K_16 = 2 +const R_68K_32 = 1 +const R_68K_8 = 3 +const R_68K_COPY = 19 +const R_68K_GLOB_DAT = 20 +const R_68K_GOT16 = 8 +const R_68K_GOT16O = 11 +const R_68K_GOT32 = 7 +const R_68K_GOT32O = 10 +const R_68K_GOT8 = 9 +const R_68K_GOT8O = 12 +const R_68K_JMP_SLOT = 21 +const R_68K_NONE = 0 +const R_68K_NUM = 43 +const R_68K_PC16 = 5 +const R_68K_PC32 = 4 +const R_68K_PC8 = 6 +const R_68K_PLT16 = 14 +const R_68K_PLT16O = 17 +const R_68K_PLT32 = 13 +const R_68K_PLT32O = 16 +const R_68K_PLT8 = 15 +const R_68K_PLT8O = 18 +const R_68K_RELATIVE = 22 +const R_68K_TLS_DTPMOD32 = 40 +const R_68K_TLS_DTPREL32 = 41 +const R_68K_TLS_GD16 = 26 +const R_68K_TLS_GD32 = 25 +const R_68K_TLS_GD8 = 27 +const R_68K_TLS_IE16 = 35 +const R_68K_TLS_IE32 = 34 +const R_68K_TLS_IE8 = 36 +const R_68K_TLS_LDM16 = 29 +const R_68K_TLS_LDM32 = 28 +const R_68K_TLS_LDM8 = 30 +const R_68K_TLS_LDO16 = 32 +const R_68K_TLS_LDO32 = 31 +const R_68K_TLS_LDO8 = 33 +const R_68K_TLS_LE16 = 38 +const R_68K_TLS_LE32 = 37 +const R_68K_TLS_LE8 = 39 +const R_68K_TLS_TPREL32 = 42 +const R_AARCH64_ABS16 = 259 +const R_AARCH64_ABS32 = 258 +const R_AARCH64_ABS64 = 257 +const R_AARCH64_ADD_ABS_LO12_NC = 277 +const R_AARCH64_ADR_GOT_PAGE = 311 +const R_AARCH64_ADR_PREL_LO21 = 274 +const R_AARCH64_ADR_PREL_PG_HI21 = 275 +const R_AARCH64_ADR_PREL_PG_HI21_NC = 276 +const R_AARCH64_CALL26 = 283 +const R_AARCH64_CONDBR19 = 280 +const R_AARCH64_COPY = 1024 +const R_AARCH64_GLOB_DAT = 1025 +const R_AARCH64_GOTREL32 = 308 +const R_AARCH64_GOTREL64 = 307 +const R_AARCH64_GOT_LD_PREL19 = 309 +const R_AARCH64_JUMP26 = 282 +const R_AARCH64_JUMP_SLOT = 1026 +const R_AARCH64_LD64_GOTOFF_LO15 = 310 +const R_AARCH64_LD64_GOTPAGE_LO15 = 313 +const R_AARCH64_LD64_GOT_LO12_NC = 312 +const R_AARCH64_LDST128_ABS_LO12_NC = 299 +const R_AARCH64_LDST16_ABS_LO12_NC = 284 +const R_AARCH64_LDST32_ABS_LO12_NC = 285 +const R_AARCH64_LDST64_ABS_LO12_NC = 286 +const R_AARCH64_LDST8_ABS_LO12_NC = 278 +const R_AARCH64_LD_PREL_LO19 = 273 +const R_AARCH64_MOVW_GOTOFF_G0 = 300 +const R_AARCH64_MOVW_GOTOFF_G0_NC = 301 +const R_AARCH64_MOVW_GOTOFF_G1 = 302 +const R_AARCH64_MOVW_GOTOFF_G1_NC = 303 +const R_AARCH64_MOVW_GOTOFF_G2 = 304 +const R_AARCH64_MOVW_GOTOFF_G2_NC = 305 +const R_AARCH64_MOVW_GOTOFF_G3 = 306 +const R_AARCH64_MOVW_PREL_G0 = 287 +const R_AARCH64_MOVW_PREL_G0_NC = 288 +const R_AARCH64_MOVW_PREL_G1 = 289 +const R_AARCH64_MOVW_PREL_G1_NC = 290 +const R_AARCH64_MOVW_PREL_G2 = 291 +const R_AARCH64_MOVW_PREL_G2_NC = 292 +const R_AARCH64_MOVW_PREL_G3 = 293 +const R_AARCH64_MOVW_SABS_G0 = 270 +const R_AARCH64_MOVW_SABS_G1 = 271 +const R_AARCH64_MOVW_SABS_G2 = 272 +const R_AARCH64_MOVW_UABS_G0 = 263 +const R_AARCH64_MOVW_UABS_G0_NC = 264 +const R_AARCH64_MOVW_UABS_G1 = 265 +const R_AARCH64_MOVW_UABS_G1_NC = 266 +const R_AARCH64_MOVW_UABS_G2 = 267 +const R_AARCH64_MOVW_UABS_G2_NC = 268 +const R_AARCH64_MOVW_UABS_G3 = 269 +const R_AARCH64_NONE = 0 +const R_AARCH64_P32_ABS32 = 1 +const R_AARCH64_P32_COPY = 180 +const R_AARCH64_P32_GLOB_DAT = 181 +const R_AARCH64_P32_IRELATIVE = 188 +const R_AARCH64_P32_JUMP_SLOT = 182 +const R_AARCH64_P32_RELATIVE = 183 +const R_AARCH64_P32_TLSDESC = 187 +const R_AARCH64_P32_TLS_DTPMOD = 184 +const R_AARCH64_P32_TLS_DTPREL = 185 +const R_AARCH64_P32_TLS_TPREL = 186 +const R_AARCH64_PREL16 = 262 +const R_AARCH64_PREL32 = 261 +const R_AARCH64_PREL64 = 260 +const R_AARCH64_RELATIVE = 1027 +const R_AARCH64_TLSDESC = 1031 +const R_AARCH64_TLSDESC_ADD = 568 +const R_AARCH64_TLSDESC_ADD_LO12 = 564 +const R_AARCH64_TLSDESC_ADR_PAGE21 = 562 +const R_AARCH64_TLSDESC_ADR_PREL21 = 561 +const R_AARCH64_TLSDESC_CALL = 569 +const R_AARCH64_TLSDESC_LD64_LO12 = 563 +const R_AARCH64_TLSDESC_LDR = 567 +const R_AARCH64_TLSDESC_LD_PREL19 = 560 +const R_AARCH64_TLSDESC_OFF_G0_NC = 566 +const R_AARCH64_TLSDESC_OFF_G1 = 565 +const R_AARCH64_TLSGD_ADD_LO12_NC = 514 +const R_AARCH64_TLSGD_ADR_PAGE21 = 513 +const R_AARCH64_TLSGD_ADR_PREL21 = 512 +const R_AARCH64_TLSGD_MOVW_G0_NC = 516 +const R_AARCH64_TLSGD_MOVW_G1 = 515 +const R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21 = 541 +const R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC = 542 +const R_AARCH64_TLSIE_LD_GOTTPREL_PREL19 = 543 +const R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC = 540 +const R_AARCH64_TLSIE_MOVW_GOTTPREL_G1 = 539 +const R_AARCH64_TLSLD_ADD_DTPREL_HI12 = 528 +const R_AARCH64_TLSLD_ADD_DTPREL_LO12 = 529 +const R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC = 530 +const R_AARCH64_TLSLD_ADD_LO12_NC = 519 +const R_AARCH64_TLSLD_ADR_PAGE21 = 518 +const R_AARCH64_TLSLD_ADR_PREL21 = 517 +const R_AARCH64_TLSLD_LDST128_DTPREL_LO12 = 572 +const R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC = 573 +const R_AARCH64_TLSLD_LDST16_DTPREL_LO12 = 533 +const R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC = 534 +const R_AARCH64_TLSLD_LDST32_DTPREL_LO12 = 535 +const R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC = 536 +const R_AARCH64_TLSLD_LDST64_DTPREL_LO12 = 537 +const R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC = 538 +const R_AARCH64_TLSLD_LDST8_DTPREL_LO12 = 531 +const R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC = 532 +const R_AARCH64_TLSLD_LD_PREL19 = 522 +const R_AARCH64_TLSLD_MOVW_DTPREL_G0 = 526 +const R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC = 527 +const R_AARCH64_TLSLD_MOVW_DTPREL_G1 = 524 +const R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC = 525 +const R_AARCH64_TLSLD_MOVW_DTPREL_G2 = 523 +const R_AARCH64_TLSLD_MOVW_G0_NC = 521 +const R_AARCH64_TLSLD_MOVW_G1 = 520 +const R_AARCH64_TLSLE_ADD_TPREL_HI12 = 549 +const R_AARCH64_TLSLE_ADD_TPREL_LO12 = 550 +const R_AARCH64_TLSLE_ADD_TPREL_LO12_NC = 551 +const R_AARCH64_TLSLE_LDST128_TPREL_LO12 = 570 +const R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC = 571 +const R_AARCH64_TLSLE_LDST16_TPREL_LO12 = 554 +const R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC = 555 +const R_AARCH64_TLSLE_LDST32_TPREL_LO12 = 556 +const R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC = 557 +const R_AARCH64_TLSLE_LDST64_TPREL_LO12 = 558 +const R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC = 559 +const R_AARCH64_TLSLE_LDST8_TPREL_LO12 = 552 +const R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC = 553 +const R_AARCH64_TLSLE_MOVW_TPREL_G0 = 547 +const R_AARCH64_TLSLE_MOVW_TPREL_G0_NC = 548 +const R_AARCH64_TLSLE_MOVW_TPREL_G1 = 545 +const R_AARCH64_TLSLE_MOVW_TPREL_G1_NC = 546 +const R_AARCH64_TLSLE_MOVW_TPREL_G2 = 544 +const R_AARCH64_TLS_DTPMOD = 1028 +const R_AARCH64_TLS_DTPMOD64 = 1028 +const R_AARCH64_TLS_DTPREL = 1029 +const R_AARCH64_TLS_DTPREL64 = 1029 +const R_AARCH64_TLS_TPREL = 1030 +const R_AARCH64_TLS_TPREL64 = 1030 +const R_AARCH64_TSTBR14 = 279 +const R_ALPHA_BRADDR = 7 +const R_ALPHA_COPY = 24 +const R_ALPHA_DTPMOD64 = 31 +const R_ALPHA_DTPREL16 = 36 +const R_ALPHA_DTPREL64 = 33 +const R_ALPHA_DTPRELHI = 34 +const R_ALPHA_DTPRELLO = 35 +const R_ALPHA_GLOB_DAT = 25 +const R_ALPHA_GOTDTPREL = 32 +const R_ALPHA_GOTTPREL = 37 +const R_ALPHA_GPDISP = 6 +const R_ALPHA_GPREL16 = 19 +const R_ALPHA_GPREL32 = 3 +const R_ALPHA_GPRELHIGH = 17 +const R_ALPHA_GPRELLOW = 18 +const R_ALPHA_HINT = 8 +const R_ALPHA_JMP_SLOT = 26 +const R_ALPHA_LITERAL = 4 +const R_ALPHA_LITUSE = 5 +const R_ALPHA_NONE = 0 +const R_ALPHA_NUM = 46 +const R_ALPHA_REFLONG = 1 +const R_ALPHA_REFQUAD = 2 +const R_ALPHA_RELATIVE = 27 +const R_ALPHA_SREL16 = 9 +const R_ALPHA_SREL32 = 10 +const R_ALPHA_SREL64 = 11 +const R_ALPHA_TLSGD = 29 +const R_ALPHA_TLS_GD_HI = 28 +const R_ALPHA_TLS_LDM = 30 +const R_ALPHA_TPREL16 = 41 +const R_ALPHA_TPREL64 = 38 +const R_ALPHA_TPRELHI = 39 +const R_ALPHA_TPRELLO = 40 +const R_ARM_ABS12 = 6 +const R_ARM_ABS16 = 5 +const R_ARM_ABS32 = 2 +const R_ARM_ABS32_NOI = 55 +const R_ARM_ABS8 = 8 +const R_ARM_ALU_PCREL_15_8 = 33 +const R_ARM_ALU_PCREL_23_15 = 34 +const R_ARM_ALU_PCREL_7_0 = 32 +const R_ARM_ALU_PC_G0 = 58 +const R_ARM_ALU_PC_G0_NC = 57 +const R_ARM_ALU_PC_G1 = 60 +const R_ARM_ALU_PC_G1_NC = 59 +const R_ARM_ALU_PC_G2 = 61 +const R_ARM_ALU_SBREL_19_12 = 36 +const R_ARM_ALU_SBREL_27_20 = 37 +const R_ARM_ALU_SB_G0 = 71 +const R_ARM_ALU_SB_G0_NC = 70 +const R_ARM_ALU_SB_G1 = 73 +const R_ARM_ALU_SB_G1_NC = 72 +const R_ARM_ALU_SB_G2 = 74 +const R_ARM_AMP_VCALL9 = 12 +const R_ARM_BASE_ABS = 31 +const R_ARM_CALL = 28 +const R_ARM_COPY = 20 +const R_ARM_GLOB_DAT = 21 +const R_ARM_GNU_VTENTRY = 100 +const R_ARM_GNU_VTINHERIT = 101 +const R_ARM_GOT32 = 26 +const R_ARM_GOTOFF = 24 +const R_ARM_GOTOFF12 = 98 +const R_ARM_GOTPC = 25 +const R_ARM_GOTRELAX = 99 +const R_ARM_GOT_ABS = 95 +const R_ARM_GOT_BREL12 = 97 +const R_ARM_GOT_PREL = 96 +const R_ARM_IRELATIVE = 160 +const R_ARM_JUMP24 = 29 +const R_ARM_JUMP_SLOT = 22 +const R_ARM_LDC_PC_G0 = 67 +const R_ARM_LDC_PC_G1 = 68 +const R_ARM_LDC_PC_G2 = 69 +const R_ARM_LDC_SB_G0 = 81 +const R_ARM_LDC_SB_G1 = 82 +const R_ARM_LDC_SB_G2 = 83 +const R_ARM_LDRS_PC_G0 = 64 +const R_ARM_LDRS_PC_G1 = 65 +const R_ARM_LDRS_PC_G2 = 66 +const R_ARM_LDRS_SB_G0 = 78 +const R_ARM_LDRS_SB_G1 = 79 +const R_ARM_LDRS_SB_G2 = 80 +const R_ARM_LDR_PC_G1 = 62 +const R_ARM_LDR_PC_G2 = 63 +const R_ARM_LDR_SBREL_11_0 = 35 +const R_ARM_LDR_SB_G0 = 75 +const R_ARM_LDR_SB_G1 = 76 +const R_ARM_LDR_SB_G2 = 77 +const R_ARM_ME_TOO = 128 +const R_ARM_MOVT_ABS = 44 +const R_ARM_MOVT_BREL = 85 +const R_ARM_MOVT_PREL = 46 +const R_ARM_MOVW_ABS_NC = 43 +const R_ARM_MOVW_BREL = 86 +const R_ARM_MOVW_BREL_NC = 84 +const R_ARM_MOVW_PREL_NC = 45 +const R_ARM_NONE = 0 +const R_ARM_NUM = 256 +const R_ARM_PC13 = 4 +const R_ARM_PC24 = 1 +const R_ARM_PLT32 = 27 +const R_ARM_PLT32_ABS = 94 +const R_ARM_PREL31 = 42 +const R_ARM_RABS22 = 253 +const R_ARM_RBASE = 255 +const R_ARM_REL32 = 3 +const R_ARM_REL32_NOI = 56 +const R_ARM_RELATIVE = 23 +const R_ARM_RPC24 = 254 +const R_ARM_RREL32 = 252 +const R_ARM_RSBREL32 = 250 +const R_ARM_RXPC25 = 249 +const R_ARM_SBREL31 = 39 +const R_ARM_SBREL32 = 9 +const R_ARM_TARGET1 = 38 +const R_ARM_TARGET2 = 41 +const R_ARM_THM_ABS5 = 7 +const R_ARM_THM_ALU_PREL_11_0 = 53 +const R_ARM_THM_GOT_BREL12 = 131 +const R_ARM_THM_JUMP19 = 51 +const R_ARM_THM_JUMP24 = 30 +const R_ARM_THM_JUMP6 = 52 +const R_ARM_THM_MOVT_ABS = 48 +const R_ARM_THM_MOVT_BREL = 88 +const R_ARM_THM_MOVT_PREL = 50 +const R_ARM_THM_MOVW_ABS_NC = 47 +const R_ARM_THM_MOVW_BREL = 89 +const R_ARM_THM_MOVW_BREL_NC = 87 +const R_ARM_THM_MOVW_PREL_NC = 49 +const R_ARM_THM_PC11 = 102 +const R_ARM_THM_PC12 = 54 +const R_ARM_THM_PC22 = 10 +const R_ARM_THM_PC8 = 11 +const R_ARM_THM_PC9 = 103 +const R_ARM_THM_RPC22 = 251 +const R_ARM_THM_SWI8 = 14 +const R_ARM_THM_TLS_CALL = 93 +const R_ARM_THM_TLS_DESCSEQ = 129 +const R_ARM_THM_TLS_DESCSEQ16 = 129 +const R_ARM_THM_TLS_DESCSEQ32 = 130 +const R_ARM_THM_XPC22 = 16 +const R_ARM_TLS_CALL = 91 +const R_ARM_TLS_DESC = 13 +const R_ARM_TLS_DESCSEQ = 92 +const R_ARM_TLS_DTPMOD32 = 17 +const R_ARM_TLS_DTPOFF32 = 18 +const R_ARM_TLS_GD32 = 104 +const R_ARM_TLS_GOTDESC = 90 +const R_ARM_TLS_IE12GP = 111 +const R_ARM_TLS_IE32 = 107 +const R_ARM_TLS_LDM32 = 105 +const R_ARM_TLS_LDO12 = 109 +const R_ARM_TLS_LDO32 = 106 +const R_ARM_TLS_LE12 = 110 +const R_ARM_TLS_LE32 = 108 +const R_ARM_TLS_TPOFF32 = 19 +const R_ARM_V4BX = 40 +const R_ARM_XPC25 = 15 +const R_BPF_MAP_FD = 1 +const R_BPF_NONE = 0 +const R_CKCORE_ADDR32 = 1 +const R_CKCORE_ADDRGOT = 17 +const R_CKCORE_ADDRGOT_HI16 = 36 +const R_CKCORE_ADDRGOT_LO16 = 37 +const R_CKCORE_ADDRPLT = 18 +const R_CKCORE_ADDRPLT_HI16 = 38 +const R_CKCORE_ADDRPLT_LO16 = 39 +const R_CKCORE_ADDR_HI16 = 24 +const R_CKCORE_ADDR_LO16 = 25 +const R_CKCORE_COPY = 10 +const R_CKCORE_DOFFSET_IMM18 = 44 +const R_CKCORE_DOFFSET_IMM18BY2 = 45 +const R_CKCORE_DOFFSET_IMM18BY4 = 46 +const R_CKCORE_DOFFSET_LO16 = 42 +const R_CKCORE_GLOB_DAT = 11 +const R_CKCORE_GOT12 = 30 +const R_CKCORE_GOT32 = 15 +const R_CKCORE_GOTOFF = 13 +const R_CKCORE_GOTOFF_HI16 = 28 +const R_CKCORE_GOTOFF_LO16 = 29 +const R_CKCORE_GOTPC = 14 +const R_CKCORE_GOTPC_HI16 = 26 +const R_CKCORE_GOTPC_LO16 = 27 +const R_CKCORE_GOT_HI16 = 31 +const R_CKCORE_GOT_IMM18BY4 = 48 +const R_CKCORE_GOT_LO16 = 32 +const R_CKCORE_JUMP_SLOT = 12 +const R_CKCORE_NONE = 0 +const R_CKCORE_PCREL32 = 5 +const R_CKCORE_PCRELIMM11BY2 = 3 +const R_CKCORE_PCRELIMM8BY4 = 2 +const R_CKCORE_PCRELJSR_IMM11BY2 = 6 +const R_CKCORE_PCREL_IMM10BY2 = 22 +const R_CKCORE_PCREL_IMM10BY4 = 23 +const R_CKCORE_PCREL_IMM16BY2 = 20 +const R_CKCORE_PCREL_IMM16BY4 = 21 +const R_CKCORE_PCREL_IMM18BY2 = 43 +const R_CKCORE_PCREL_IMM26BY2 = 19 +const R_CKCORE_PCREL_IMM7BY4 = 50 +const R_CKCORE_PCREL_JSR_IMM26BY2 = 40 +const R_CKCORE_PLT12 = 33 +const R_CKCORE_PLT32 = 16 +const R_CKCORE_PLT_HI16 = 34 +const R_CKCORE_PLT_IMM18BY4 = 49 +const R_CKCORE_PLT_LO16 = 35 +const R_CKCORE_RELATIVE = 9 +const R_CKCORE_TLS_DTPMOD32 = 56 +const R_CKCORE_TLS_DTPOFF32 = 57 +const R_CKCORE_TLS_GD32 = 53 +const R_CKCORE_TLS_IE32 = 52 +const R_CKCORE_TLS_LDM32 = 54 +const R_CKCORE_TLS_LDO32 = 55 +const R_CKCORE_TLS_LE32 = 51 +const R_CKCORE_TLS_TPOFF32 = 58 +const R_CKCORE_TOFFSET_LO16 = 41 +const R_CRIS_16 = 2 +const R_CRIS_16_GOT = 13 +const R_CRIS_16_GOTPLT = 15 +const R_CRIS_16_PCREL = 5 +const R_CRIS_32 = 3 +const R_CRIS_32_GOT = 14 +const R_CRIS_32_GOTPLT = 16 +const R_CRIS_32_GOTREL = 17 +const R_CRIS_32_PCREL = 6 +const R_CRIS_32_PLT_GOTREL = 18 +const R_CRIS_32_PLT_PCREL = 19 +const R_CRIS_8 = 1 +const R_CRIS_8_PCREL = 4 +const R_CRIS_COPY = 9 +const R_CRIS_GLOB_DAT = 10 +const R_CRIS_GNU_VTENTRY = 8 +const R_CRIS_GNU_VTINHERIT = 7 +const R_CRIS_JUMP_SLOT = 11 +const R_CRIS_NONE = 0 +const R_CRIS_NUM = 20 +const R_CRIS_RELATIVE = 12 +const R_IA64_COPY = 132 +const R_IA64_DIR32LSB = 37 +const R_IA64_DIR32MSB = 36 +const R_IA64_DIR64LSB = 39 +const R_IA64_DIR64MSB = 38 +const R_IA64_DTPMOD64LSB = 167 +const R_IA64_DTPMOD64MSB = 166 +const R_IA64_DTPREL14 = 177 +const R_IA64_DTPREL22 = 178 +const R_IA64_DTPREL32LSB = 181 +const R_IA64_DTPREL32MSB = 180 +const R_IA64_DTPREL64I = 179 +const R_IA64_DTPREL64LSB = 183 +const R_IA64_DTPREL64MSB = 182 +const R_IA64_FPTR32LSB = 69 +const R_IA64_FPTR32MSB = 68 +const R_IA64_FPTR64I = 67 +const R_IA64_FPTR64LSB = 71 +const R_IA64_FPTR64MSB = 70 +const R_IA64_GPREL22 = 42 +const R_IA64_GPREL32LSB = 45 +const R_IA64_GPREL32MSB = 44 +const R_IA64_GPREL64I = 43 +const R_IA64_GPREL64LSB = 47 +const R_IA64_GPREL64MSB = 46 +const R_IA64_IMM14 = 33 +const R_IA64_IMM22 = 34 +const R_IA64_IMM64 = 35 +const R_IA64_IPLTLSB = 129 +const R_IA64_IPLTMSB = 128 +const R_IA64_LDXMOV = 135 +const R_IA64_LTOFF22 = 50 +const R_IA64_LTOFF22X = 134 +const R_IA64_LTOFF64I = 51 +const R_IA64_LTOFF_DTPMOD22 = 170 +const R_IA64_LTOFF_DTPREL22 = 186 +const R_IA64_LTOFF_FPTR22 = 82 +const R_IA64_LTOFF_FPTR32LSB = 85 +const R_IA64_LTOFF_FPTR32MSB = 84 +const R_IA64_LTOFF_FPTR64I = 83 +const R_IA64_LTOFF_FPTR64LSB = 87 +const R_IA64_LTOFF_FPTR64MSB = 86 +const R_IA64_LTOFF_TPREL22 = 154 +const R_IA64_LTV32LSB = 117 +const R_IA64_LTV32MSB = 116 +const R_IA64_LTV64LSB = 119 +const R_IA64_LTV64MSB = 118 +const R_IA64_NONE = 0 +const R_IA64_PCREL21B = 73 +const R_IA64_PCREL21BI = 121 +const R_IA64_PCREL21F = 75 +const R_IA64_PCREL21M = 74 +const R_IA64_PCREL22 = 122 +const R_IA64_PCREL32LSB = 77 +const R_IA64_PCREL32MSB = 76 +const R_IA64_PCREL60B = 72 +const R_IA64_PCREL64I = 123 +const R_IA64_PCREL64LSB = 79 +const R_IA64_PCREL64MSB = 78 +const R_IA64_PLTOFF22 = 58 +const R_IA64_PLTOFF64I = 59 +const R_IA64_PLTOFF64LSB = 63 +const R_IA64_PLTOFF64MSB = 62 +const R_IA64_REL32LSB = 109 +const R_IA64_REL32MSB = 108 +const R_IA64_REL64LSB = 111 +const R_IA64_REL64MSB = 110 +const R_IA64_SECREL32LSB = 101 +const R_IA64_SECREL32MSB = 100 +const R_IA64_SECREL64LSB = 103 +const R_IA64_SECREL64MSB = 102 +const R_IA64_SEGREL32LSB = 93 +const R_IA64_SEGREL32MSB = 92 +const R_IA64_SEGREL64LSB = 95 +const R_IA64_SEGREL64MSB = 94 +const R_IA64_SUB = 133 +const R_IA64_TPREL14 = 145 +const R_IA64_TPREL22 = 146 +const R_IA64_TPREL64I = 147 +const R_IA64_TPREL64LSB = 151 +const R_IA64_TPREL64MSB = 150 +const R_LARCH_32 = 1 +const R_LARCH_32_PCREL = 99 +const R_LARCH_64 = 2 +const R_LARCH_ABS64_HI12 = 70 +const R_LARCH_ABS64_LO20 = 69 +const R_LARCH_ABS_HI20 = 67 +const R_LARCH_ABS_LO12 = 68 +const R_LARCH_ADD16 = 48 +const R_LARCH_ADD24 = 49 +const R_LARCH_ADD32 = 50 +const R_LARCH_ADD64 = 51 +const R_LARCH_ADD8 = 47 +const R_LARCH_B16 = 64 +const R_LARCH_B21 = 65 +const R_LARCH_B26 = 66 +const R_LARCH_COPY = 4 +const R_LARCH_GNU_VTENTRY = 58 +const R_LARCH_GNU_VTINHERIT = 57 +const R_LARCH_GOT64_HI12 = 82 +const R_LARCH_GOT64_LO20 = 81 +const R_LARCH_GOT64_PC_HI12 = 78 +const R_LARCH_GOT64_PC_LO20 = 77 +const R_LARCH_GOT_HI20 = 79 +const R_LARCH_GOT_LO12 = 80 +const R_LARCH_GOT_PC_HI20 = 75 +const R_LARCH_GOT_PC_LO12 = 76 +const R_LARCH_IRELATIVE = 12 +const R_LARCH_JUMP_SLOT = 5 +const R_LARCH_MARK_LA = 20 +const R_LARCH_MARK_PCREL = 21 +const R_LARCH_NONE = 0 +const R_LARCH_PCALA64_HI12 = 74 +const R_LARCH_PCALA64_LO20 = 73 +const R_LARCH_PCALA_HI20 = 71 +const R_LARCH_PCALA_LO12 = 72 +const R_LARCH_RELATIVE = 3 +const R_LARCH_RELAX = 100 +const R_LARCH_SOP_ADD = 35 +const R_LARCH_SOP_AND = 36 +const R_LARCH_SOP_ASSERT = 30 +const R_LARCH_SOP_IF_ELSE = 37 +const R_LARCH_SOP_NOT = 31 +const R_LARCH_SOP_POP_32_S_0_10_10_16_S2 = 45 +const R_LARCH_SOP_POP_32_S_0_5_10_16_S2 = 44 +const R_LARCH_SOP_POP_32_S_10_12 = 40 +const R_LARCH_SOP_POP_32_S_10_16 = 41 +const R_LARCH_SOP_POP_32_S_10_16_S2 = 42 +const R_LARCH_SOP_POP_32_S_10_5 = 38 +const R_LARCH_SOP_POP_32_S_5_20 = 43 +const R_LARCH_SOP_POP_32_U = 46 +const R_LARCH_SOP_POP_32_U_10_12 = 39 +const R_LARCH_SOP_PUSH_ABSOLUTE = 23 +const R_LARCH_SOP_PUSH_DUP = 24 +const R_LARCH_SOP_PUSH_GPREL = 25 +const R_LARCH_SOP_PUSH_PCREL = 22 +const R_LARCH_SOP_PUSH_PLT_PCREL = 29 +const R_LARCH_SOP_PUSH_TLS_GD = 28 +const R_LARCH_SOP_PUSH_TLS_GOT = 27 +const R_LARCH_SOP_PUSH_TLS_TPREL = 26 +const R_LARCH_SOP_SL = 33 +const R_LARCH_SOP_SR = 34 +const R_LARCH_SOP_SUB = 32 +const R_LARCH_SUB16 = 53 +const R_LARCH_SUB24 = 54 +const R_LARCH_SUB32 = 55 +const R_LARCH_SUB64 = 56 +const R_LARCH_SUB8 = 52 +const R_LARCH_TLS_DTPMOD32 = 6 +const R_LARCH_TLS_DTPMOD64 = 7 +const R_LARCH_TLS_DTPREL32 = 8 +const R_LARCH_TLS_DTPREL64 = 9 +const R_LARCH_TLS_GD_HI20 = 98 +const R_LARCH_TLS_GD_PC_HI20 = 97 +const R_LARCH_TLS_IE64_HI12 = 94 +const R_LARCH_TLS_IE64_LO20 = 93 +const R_LARCH_TLS_IE64_PC_HI12 = 90 +const R_LARCH_TLS_IE64_PC_LO20 = 89 +const R_LARCH_TLS_IE_HI20 = 91 +const R_LARCH_TLS_IE_LO12 = 92 +const R_LARCH_TLS_IE_PC_HI20 = 87 +const R_LARCH_TLS_IE_PC_LO12 = 88 +const R_LARCH_TLS_LD_HI20 = 96 +const R_LARCH_TLS_LD_PC_HI20 = 95 +const R_LARCH_TLS_LE64_HI12 = 86 +const R_LARCH_TLS_LE64_LO20 = 85 +const R_LARCH_TLS_LE_HI20 = 83 +const R_LARCH_TLS_LE_LO12 = 84 +const R_LARCH_TLS_TPREL32 = 10 +const R_LARCH_TLS_TPREL64 = 11 +const R_M32R_10_PCREL = 4 +const R_M32R_10_PCREL_RELA = 36 +const R_M32R_16 = 1 +const R_M32R_16_RELA = 33 +const R_M32R_18_PCREL = 5 +const R_M32R_18_PCREL_RELA = 37 +const R_M32R_24 = 3 +const R_M32R_24_RELA = 35 +const R_M32R_26_PCREL = 6 +const R_M32R_26_PCREL_RELA = 38 +const R_M32R_26_PLTREL = 49 +const R_M32R_32 = 2 +const R_M32R_32_RELA = 34 +const R_M32R_COPY = 50 +const R_M32R_GLOB_DAT = 51 +const R_M32R_GNU_VTENTRY = 12 +const R_M32R_GNU_VTINHERIT = 11 +const R_M32R_GOT16_HI_SLO = 57 +const R_M32R_GOT16_HI_ULO = 56 +const R_M32R_GOT16_LO = 58 +const R_M32R_GOT24 = 48 +const R_M32R_GOTOFF = 54 +const R_M32R_GOTOFF_HI_SLO = 63 +const R_M32R_GOTOFF_HI_ULO = 62 +const R_M32R_GOTOFF_LO = 64 +const R_M32R_GOTPC24 = 55 +const R_M32R_GOTPC_HI_SLO = 60 +const R_M32R_GOTPC_HI_ULO = 59 +const R_M32R_GOTPC_LO = 61 +const R_M32R_HI16_SLO = 8 +const R_M32R_HI16_SLO_RELA = 40 +const R_M32R_HI16_ULO = 7 +const R_M32R_HI16_ULO_RELA = 39 +const R_M32R_JMP_SLOT = 52 +const R_M32R_LO16 = 9 +const R_M32R_LO16_RELA = 41 +const R_M32R_NONE = 0 +const R_M32R_NUM = 256 +const R_M32R_REL32 = 45 +const R_M32R_RELATIVE = 53 +const R_M32R_RELA_GNU_VTENTRY = 44 +const R_M32R_RELA_GNU_VTINHERIT = 43 +const R_M32R_SDA16 = 10 +const R_M32R_SDA16_RELA = 42 +const R_MICROBLAZE_32 = 1 +const R_MICROBLAZE_32_LO = 6 +const R_MICROBLAZE_32_PCREL = 2 +const R_MICROBLAZE_32_PCREL_LO = 4 +const R_MICROBLAZE_32_SYM_OP_SYM = 10 +const R_MICROBLAZE_64 = 5 +const R_MICROBLAZE_64_NONE = 9 +const R_MICROBLAZE_64_PCREL = 3 +const R_MICROBLAZE_COPY = 21 +const R_MICROBLAZE_GLOB_DAT = 18 +const R_MICROBLAZE_GNU_VTENTRY = 12 +const R_MICROBLAZE_GNU_VTINHERIT = 11 +const R_MICROBLAZE_GOTOFF_32 = 20 +const R_MICROBLAZE_GOTOFF_64 = 19 +const R_MICROBLAZE_GOTPC_64 = 13 +const R_MICROBLAZE_GOT_64 = 14 +const R_MICROBLAZE_JUMP_SLOT = 17 +const R_MICROBLAZE_NONE = 0 +const R_MICROBLAZE_PLT_64 = 15 +const R_MICROBLAZE_REL = 16 +const R_MICROBLAZE_SRO32 = 7 +const R_MICROBLAZE_SRW32 = 8 +const R_MICROBLAZE_TLS = 22 +const R_MICROBLAZE_TLSDTPMOD32 = 25 +const R_MICROBLAZE_TLSDTPREL32 = 26 +const R_MICROBLAZE_TLSDTPREL64 = 27 +const R_MICROBLAZE_TLSGD = 23 +const R_MICROBLAZE_TLSGOTTPREL32 = 28 +const R_MICROBLAZE_TLSLD = 24 +const R_MICROBLAZE_TLSTPREL32 = 29 +const R_MIPS_16 = 1 +const R_MIPS_26 = 4 +const R_MIPS_32 = 2 +const R_MIPS_64 = 18 +const R_MIPS_ADD_IMMEDIATE = 34 +const R_MIPS_CALL16 = 11 +const R_MIPS_CALL_HI16 = 30 +const R_MIPS_CALL_LO16 = 31 +const R_MIPS_COPY = 126 +const R_MIPS_DELETE = 27 +const R_MIPS_GLOB_DAT = 51 +const R_MIPS_GOT16 = 9 +const R_MIPS_GOT_DISP = 19 +const R_MIPS_GOT_HI16 = 22 +const R_MIPS_GOT_LO16 = 23 +const R_MIPS_GOT_OFST = 21 +const R_MIPS_GOT_PAGE = 20 +const R_MIPS_GPREL16 = 7 +const R_MIPS_GPREL32 = 12 +const R_MIPS_HI16 = 5 +const R_MIPS_HIGHER = 28 +const R_MIPS_HIGHEST = 29 +const R_MIPS_INSERT_A = 25 +const R_MIPS_INSERT_B = 26 +const R_MIPS_JALR = 37 +const R_MIPS_JUMP_SLOT = 127 +const R_MIPS_LITERAL = 8 +const R_MIPS_LO16 = 6 +const R_MIPS_NONE = 0 +const R_MIPS_NUM = 128 +const R_MIPS_PC16 = 10 +const R_MIPS_PJUMP = 35 +const R_MIPS_REL16 = 33 +const R_MIPS_REL32 = 3 +const R_MIPS_RELGOT = 36 +const R_MIPS_SCN_DISP = 32 +const R_MIPS_SHIFT5 = 16 +const R_MIPS_SHIFT6 = 17 +const R_MIPS_SUB = 24 +const R_MIPS_TLS_DTPMOD32 = 38 +const R_MIPS_TLS_DTPMOD64 = 40 +const R_MIPS_TLS_DTPREL32 = 39 +const R_MIPS_TLS_DTPREL64 = 41 +const R_MIPS_TLS_DTPREL_HI16 = 44 +const R_MIPS_TLS_DTPREL_LO16 = 45 +const R_MIPS_TLS_GD = 42 +const R_MIPS_TLS_GOTTPREL = 46 +const R_MIPS_TLS_LDM = 43 +const R_MIPS_TLS_TPREL32 = 47 +const R_MIPS_TLS_TPREL64 = 48 +const R_MIPS_TLS_TPREL_HI16 = 49 +const R_MIPS_TLS_TPREL_LO16 = 50 +const R_MN10300_16 = 2 +const R_MN10300_24 = 9 +const R_MN10300_32 = 1 +const R_MN10300_8 = 3 +const R_MN10300_COPY = 20 +const R_MN10300_GLOB_DAT = 21 +const R_MN10300_GNU_VTENTRY = 8 +const R_MN10300_GNU_VTINHERIT = 7 +const R_MN10300_GOT16 = 19 +const R_MN10300_GOT24 = 18 +const R_MN10300_GOT32 = 17 +const R_MN10300_GOTOFF16 = 14 +const R_MN10300_GOTOFF24 = 13 +const R_MN10300_GOTOFF32 = 12 +const R_MN10300_GOTPC16 = 11 +const R_MN10300_GOTPC32 = 10 +const R_MN10300_JMP_SLOT = 22 +const R_MN10300_NONE = 0 +const R_MN10300_NUM = 24 +const R_MN10300_PCREL16 = 5 +const R_MN10300_PCREL32 = 4 +const R_MN10300_PCREL8 = 6 +const R_MN10300_PLT16 = 16 +const R_MN10300_PLT32 = 15 +const R_MN10300_RELATIVE = 23 +const R_NIOS2_ALIGN = 21 +const R_NIOS2_BFD_RELOC_16 = 13 +const R_NIOS2_BFD_RELOC_32 = 12 +const R_NIOS2_BFD_RELOC_8 = 14 +const R_NIOS2_CACHE_OPX = 6 +const R_NIOS2_CALL16 = 23 +const R_NIOS2_CALL26 = 4 +const R_NIOS2_CALL26_NOAT = 41 +const R_NIOS2_CALLR = 20 +const R_NIOS2_CALL_HA = 45 +const R_NIOS2_CALL_LO = 44 +const R_NIOS2_CJMP = 19 +const R_NIOS2_COPY = 36 +const R_NIOS2_GLOB_DAT = 37 +const R_NIOS2_GNU_VTENTRY = 17 +const R_NIOS2_GNU_VTINHERIT = 16 +const R_NIOS2_GOT16 = 22 +const R_NIOS2_GOTOFF = 40 +const R_NIOS2_GOTOFF_HA = 25 +const R_NIOS2_GOTOFF_LO = 24 +const R_NIOS2_GOT_HA = 43 +const R_NIOS2_GOT_LO = 42 +const R_NIOS2_GPREL = 15 +const R_NIOS2_HI16 = 9 +const R_NIOS2_HIADJ16 = 11 +const R_NIOS2_IMM5 = 5 +const R_NIOS2_IMM6 = 7 +const R_NIOS2_IMM8 = 8 +const R_NIOS2_JUMP_SLOT = 38 +const R_NIOS2_LO16 = 10 +const R_NIOS2_NONE = 0 +const R_NIOS2_PCREL16 = 3 +const R_NIOS2_PCREL_HA = 27 +const R_NIOS2_PCREL_LO = 26 +const R_NIOS2_RELATIVE = 39 +const R_NIOS2_S16 = 1 +const R_NIOS2_TLS_DTPMOD = 33 +const R_NIOS2_TLS_DTPREL = 34 +const R_NIOS2_TLS_GD16 = 28 +const R_NIOS2_TLS_IE16 = 31 +const R_NIOS2_TLS_LDM16 = 29 +const R_NIOS2_TLS_LDO16 = 30 +const R_NIOS2_TLS_LE16 = 32 +const R_NIOS2_TLS_TPREL = 35 +const R_NIOS2_U16 = 2 +const R_NIOS2_UJMP = 18 +const R_OR1K_16 = 2 +const R_OR1K_16_PCREL = 10 +const R_OR1K_32 = 1 +const R_OR1K_32_PCREL = 9 +const R_OR1K_8 = 3 +const R_OR1K_8_PCREL = 11 +const R_OR1K_COPY = 18 +const R_OR1K_GLOB_DAT = 19 +const R_OR1K_GNU_VTENTRY = 7 +const R_OR1K_GNU_VTINHERIT = 8 +const R_OR1K_GOT16 = 14 +const R_OR1K_GOTOFF_HI16 = 16 +const R_OR1K_GOTOFF_LO16 = 17 +const R_OR1K_GOTPC_HI16 = 12 +const R_OR1K_GOTPC_LO16 = 13 +const R_OR1K_HI_16_IN_INSN = 5 +const R_OR1K_INSN_REL_26 = 6 +const R_OR1K_JMP_SLOT = 20 +const R_OR1K_LO_16_IN_INSN = 4 +const R_OR1K_NONE = 0 +const R_OR1K_PLT26 = 15 +const R_OR1K_RELATIVE = 21 +const R_OR1K_TLS_DTPMOD = 34 +const R_OR1K_TLS_DTPOFF = 33 +const R_OR1K_TLS_GD_HI16 = 22 +const R_OR1K_TLS_GD_LO16 = 23 +const R_OR1K_TLS_IE_HI16 = 28 +const R_OR1K_TLS_IE_LO16 = 29 +const R_OR1K_TLS_LDM_HI16 = 24 +const R_OR1K_TLS_LDM_LO16 = 25 +const R_OR1K_TLS_LDO_HI16 = 26 +const R_OR1K_TLS_LDO_LO16 = 27 +const R_OR1K_TLS_LE_HI16 = 30 +const R_OR1K_TLS_LE_LO16 = 31 +const R_OR1K_TLS_TPOFF = 32 +const R_PARISC_COPY = 128 +const R_PARISC_DIR14DR = 84 +const R_PARISC_DIR14R = 6 +const R_PARISC_DIR14WR = 83 +const R_PARISC_DIR16DF = 87 +const R_PARISC_DIR16F = 85 +const R_PARISC_DIR16WF = 86 +const R_PARISC_DIR17F = 4 +const R_PARISC_DIR17R = 3 +const R_PARISC_DIR21L = 2 +const R_PARISC_DIR32 = 1 +const R_PARISC_DIR64 = 80 +const R_PARISC_DPREL14R = 22 +const R_PARISC_DPREL21L = 18 +const R_PARISC_EPLT = 130 +const R_PARISC_FPTR64 = 64 +const R_PARISC_GNU_VTENTRY = 232 +const R_PARISC_GNU_VTINHERIT = 233 +const R_PARISC_GPREL14DR = 92 +const R_PARISC_GPREL14R = 30 +const R_PARISC_GPREL14WR = 91 +const R_PARISC_GPREL16DF = 95 +const R_PARISC_GPREL16F = 93 +const R_PARISC_GPREL16WF = 94 +const R_PARISC_GPREL21L = 26 +const R_PARISC_GPREL64 = 88 +const R_PARISC_HIRESERVE = 255 +const R_PARISC_IPLT = 129 +const R_PARISC_LORESERVE = 128 +const R_PARISC_LTOFF14DR = 100 +const R_PARISC_LTOFF14R = 38 +const R_PARISC_LTOFF14WR = 99 +const R_PARISC_LTOFF16DF = 103 +const R_PARISC_LTOFF16F = 101 +const R_PARISC_LTOFF16WF = 102 +const R_PARISC_LTOFF21L = 34 +const R_PARISC_LTOFF64 = 96 +const R_PARISC_LTOFF_FPTR14DR = 124 +const R_PARISC_LTOFF_FPTR14R = 62 +const R_PARISC_LTOFF_FPTR14WR = 123 +const R_PARISC_LTOFF_FPTR16DF = 127 +const R_PARISC_LTOFF_FPTR16F = 125 +const R_PARISC_LTOFF_FPTR16WF = 126 +const R_PARISC_LTOFF_FPTR21L = 58 +const R_PARISC_LTOFF_FPTR32 = 57 +const R_PARISC_LTOFF_FPTR64 = 120 +const R_PARISC_LTOFF_TP14DR = 228 +const R_PARISC_LTOFF_TP14F = 167 +const R_PARISC_LTOFF_TP14R = 166 +const R_PARISC_LTOFF_TP14WR = 227 +const R_PARISC_LTOFF_TP16DF = 231 +const R_PARISC_LTOFF_TP16F = 229 +const R_PARISC_LTOFF_TP16WF = 230 +const R_PARISC_LTOFF_TP21L = 162 +const R_PARISC_LTOFF_TP64 = 224 +const R_PARISC_NONE = 0 +const R_PARISC_PCREL14DR = 76 +const R_PARISC_PCREL14R = 14 +const R_PARISC_PCREL14WR = 75 +const R_PARISC_PCREL16DF = 79 +const R_PARISC_PCREL16F = 77 +const R_PARISC_PCREL16WF = 78 +const R_PARISC_PCREL17F = 12 +const R_PARISC_PCREL17R = 11 +const R_PARISC_PCREL21L = 10 +const R_PARISC_PCREL22F = 74 +const R_PARISC_PCREL32 = 9 +const R_PARISC_PCREL64 = 72 +const R_PARISC_PLABEL14R = 70 +const R_PARISC_PLABEL21L = 66 +const R_PARISC_PLABEL32 = 65 +const R_PARISC_PLTOFF14DR = 116 +const R_PARISC_PLTOFF14R = 54 +const R_PARISC_PLTOFF14WR = 115 +const R_PARISC_PLTOFF16DF = 119 +const R_PARISC_PLTOFF16F = 117 +const R_PARISC_PLTOFF16WF = 118 +const R_PARISC_PLTOFF21L = 50 +const R_PARISC_SECREL32 = 41 +const R_PARISC_SECREL64 = 104 +const R_PARISC_SEGBASE = 48 +const R_PARISC_SEGREL32 = 49 +const R_PARISC_SEGREL64 = 112 +const R_PARISC_TLS_DTPMOD32 = 242 +const R_PARISC_TLS_DTPMOD64 = 243 +const R_PARISC_TLS_DTPOFF32 = 244 +const R_PARISC_TLS_DTPOFF64 = 245 +const R_PARISC_TLS_GD14R = 235 +const R_PARISC_TLS_GD21L = 234 +const R_PARISC_TLS_GDCALL = 236 +const R_PARISC_TLS_IE14R = 166 +const R_PARISC_TLS_IE21L = 162 +const R_PARISC_TLS_LDM14R = 238 +const R_PARISC_TLS_LDM21L = 237 +const R_PARISC_TLS_LDMCALL = 239 +const R_PARISC_TLS_LDO14R = 241 +const R_PARISC_TLS_LDO21L = 240 +const R_PARISC_TLS_LE14R = 158 +const R_PARISC_TLS_LE21L = 154 +const R_PARISC_TLS_TPREL32 = 153 +const R_PARISC_TLS_TPREL64 = 216 +const R_PARISC_TPREL14DR = 220 +const R_PARISC_TPREL14R = 158 +const R_PARISC_TPREL14WR = 219 +const R_PARISC_TPREL16DF = 223 +const R_PARISC_TPREL16F = 221 +const R_PARISC_TPREL16WF = 222 +const R_PARISC_TPREL21L = 154 +const R_PARISC_TPREL32 = 153 +const R_PARISC_TPREL64 = 216 +const R_PPC64_ADDR14 = 7 +const R_PPC64_ADDR14_BRNTAKEN = 9 +const R_PPC64_ADDR14_BRTAKEN = 8 +const R_PPC64_ADDR16 = 3 +const R_PPC64_ADDR16_DS = 56 +const R_PPC64_ADDR16_HA = 6 +const R_PPC64_ADDR16_HI = 5 +const R_PPC64_ADDR16_HIGH = 110 +const R_PPC64_ADDR16_HIGHA = 111 +const R_PPC64_ADDR16_HIGHER = 39 +const R_PPC64_ADDR16_HIGHERA = 40 +const R_PPC64_ADDR16_HIGHEST = 41 +const R_PPC64_ADDR16_HIGHESTA = 42 +const R_PPC64_ADDR16_LO = 4 +const R_PPC64_ADDR16_LO_DS = 57 +const R_PPC64_ADDR24 = 2 +const R_PPC64_ADDR30 = 37 +const R_PPC64_ADDR32 = 1 +const R_PPC64_ADDR64 = 38 +const R_PPC64_COPY = 19 +const R_PPC64_DTPMOD64 = 68 +const R_PPC64_DTPREL16 = 74 +const R_PPC64_DTPREL16_DS = 101 +const R_PPC64_DTPREL16_HA = 77 +const R_PPC64_DTPREL16_HI = 76 +const R_PPC64_DTPREL16_HIGH = 114 +const R_PPC64_DTPREL16_HIGHA = 115 +const R_PPC64_DTPREL16_HIGHER = 103 +const R_PPC64_DTPREL16_HIGHERA = 104 +const R_PPC64_DTPREL16_HIGHEST = 105 +const R_PPC64_DTPREL16_HIGHESTA = 106 +const R_PPC64_DTPREL16_LO = 75 +const R_PPC64_DTPREL16_LO_DS = 102 +const R_PPC64_DTPREL64 = 78 +const R_PPC64_GLOB_DAT = 20 +const R_PPC64_GOT16 = 14 +const R_PPC64_GOT16_DS = 58 +const R_PPC64_GOT16_HA = 17 +const R_PPC64_GOT16_HI = 16 +const R_PPC64_GOT16_LO = 15 +const R_PPC64_GOT16_LO_DS = 59 +const R_PPC64_GOT_DTPREL16_DS = 91 +const R_PPC64_GOT_DTPREL16_HA = 94 +const R_PPC64_GOT_DTPREL16_HI = 93 +const R_PPC64_GOT_DTPREL16_LO_DS = 92 +const R_PPC64_GOT_TLSGD16 = 79 +const R_PPC64_GOT_TLSGD16_HA = 82 +const R_PPC64_GOT_TLSGD16_HI = 81 +const R_PPC64_GOT_TLSGD16_LO = 80 +const R_PPC64_GOT_TLSLD16 = 83 +const R_PPC64_GOT_TLSLD16_HA = 86 +const R_PPC64_GOT_TLSLD16_HI = 85 +const R_PPC64_GOT_TLSLD16_LO = 84 +const R_PPC64_GOT_TPREL16_DS = 87 +const R_PPC64_GOT_TPREL16_HA = 90 +const R_PPC64_GOT_TPREL16_HI = 89 +const R_PPC64_GOT_TPREL16_LO_DS = 88 +const R_PPC64_IRELATIVE = 248 +const R_PPC64_JMP_IREL = 247 +const R_PPC64_JMP_SLOT = 21 +const R_PPC64_NONE = 0 +const R_PPC64_PLT16_HA = 31 +const R_PPC64_PLT16_HI = 30 +const R_PPC64_PLT16_LO = 29 +const R_PPC64_PLT16_LO_DS = 60 +const R_PPC64_PLT32 = 27 +const R_PPC64_PLT64 = 45 +const R_PPC64_PLTGOT16 = 52 +const R_PPC64_PLTGOT16_DS = 65 +const R_PPC64_PLTGOT16_HA = 55 +const R_PPC64_PLTGOT16_HI = 54 +const R_PPC64_PLTGOT16_LO = 53 +const R_PPC64_PLTGOT16_LO_DS = 66 +const R_PPC64_PLTREL32 = 28 +const R_PPC64_PLTREL64 = 46 +const R_PPC64_REL14 = 11 +const R_PPC64_REL14_BRNTAKEN = 13 +const R_PPC64_REL14_BRTAKEN = 12 +const R_PPC64_REL16 = 249 +const R_PPC64_REL16_HA = 252 +const R_PPC64_REL16_HI = 251 +const R_PPC64_REL16_LO = 250 +const R_PPC64_REL24 = 10 +const R_PPC64_REL32 = 26 +const R_PPC64_REL64 = 44 +const R_PPC64_RELATIVE = 22 +const R_PPC64_SECTOFF = 33 +const R_PPC64_SECTOFF_DS = 61 +const R_PPC64_SECTOFF_HA = 36 +const R_PPC64_SECTOFF_HI = 35 +const R_PPC64_SECTOFF_LO = 34 +const R_PPC64_SECTOFF_LO_DS = 62 +const R_PPC64_TLS = 67 +const R_PPC64_TLSGD = 107 +const R_PPC64_TLSLD = 108 +const R_PPC64_TOC = 51 +const R_PPC64_TOC16 = 47 +const R_PPC64_TOC16_DS = 63 +const R_PPC64_TOC16_HA = 50 +const R_PPC64_TOC16_HI = 49 +const R_PPC64_TOC16_LO = 48 +const R_PPC64_TOC16_LO_DS = 64 +const R_PPC64_TOCSAVE = 109 +const R_PPC64_TPREL16 = 69 +const R_PPC64_TPREL16_DS = 95 +const R_PPC64_TPREL16_HA = 72 +const R_PPC64_TPREL16_HI = 71 +const R_PPC64_TPREL16_HIGH = 112 +const R_PPC64_TPREL16_HIGHA = 113 +const R_PPC64_TPREL16_HIGHER = 97 +const R_PPC64_TPREL16_HIGHERA = 98 +const R_PPC64_TPREL16_HIGHEST = 99 +const R_PPC64_TPREL16_HIGHESTA = 100 +const R_PPC64_TPREL16_LO = 70 +const R_PPC64_TPREL16_LO_DS = 96 +const R_PPC64_TPREL64 = 73 +const R_PPC64_UADDR16 = 25 +const R_PPC64_UADDR32 = 24 +const R_PPC64_UADDR64 = 43 +const R_PPC_ADDR14 = 7 +const R_PPC_ADDR14_BRNTAKEN = 9 +const R_PPC_ADDR14_BRTAKEN = 8 +const R_PPC_ADDR16 = 3 +const R_PPC_ADDR16_HA = 6 +const R_PPC_ADDR16_HI = 5 +const R_PPC_ADDR16_LO = 4 +const R_PPC_ADDR24 = 2 +const R_PPC_ADDR32 = 1 +const R_PPC_COPY = 19 +const R_PPC_DIAB_RELSDA_HA = 185 +const R_PPC_DIAB_RELSDA_HI = 184 +const R_PPC_DIAB_RELSDA_LO = 183 +const R_PPC_DIAB_SDA21_HA = 182 +const R_PPC_DIAB_SDA21_HI = 181 +const R_PPC_DIAB_SDA21_LO = 180 +const R_PPC_DTPMOD32 = 68 +const R_PPC_DTPREL16 = 74 +const R_PPC_DTPREL16_HA = 77 +const R_PPC_DTPREL16_HI = 76 +const R_PPC_DTPREL16_LO = 75 +const R_PPC_DTPREL32 = 78 +const R_PPC_EMB_BIT_FLD = 115 +const R_PPC_EMB_MRKREF = 110 +const R_PPC_EMB_NADDR16 = 102 +const R_PPC_EMB_NADDR16_HA = 105 +const R_PPC_EMB_NADDR16_HI = 104 +const R_PPC_EMB_NADDR16_LO = 103 +const R_PPC_EMB_NADDR32 = 101 +const R_PPC_EMB_RELSDA = 116 +const R_PPC_EMB_RELSEC16 = 111 +const R_PPC_EMB_RELST_HA = 114 +const R_PPC_EMB_RELST_HI = 113 +const R_PPC_EMB_RELST_LO = 112 +const R_PPC_EMB_SDA21 = 109 +const R_PPC_EMB_SDA2I16 = 107 +const R_PPC_EMB_SDA2REL = 108 +const R_PPC_EMB_SDAI16 = 106 +const R_PPC_GLOB_DAT = 20 +const R_PPC_GOT16 = 14 +const R_PPC_GOT16_HA = 17 +const R_PPC_GOT16_HI = 16 +const R_PPC_GOT16_LO = 15 +const R_PPC_GOT_DTPREL16 = 91 +const R_PPC_GOT_DTPREL16_HA = 94 +const R_PPC_GOT_DTPREL16_HI = 93 +const R_PPC_GOT_DTPREL16_LO = 92 +const R_PPC_GOT_TLSGD16 = 79 +const R_PPC_GOT_TLSGD16_HA = 82 +const R_PPC_GOT_TLSGD16_HI = 81 +const R_PPC_GOT_TLSGD16_LO = 80 +const R_PPC_GOT_TLSLD16 = 83 +const R_PPC_GOT_TLSLD16_HA = 86 +const R_PPC_GOT_TLSLD16_HI = 85 +const R_PPC_GOT_TLSLD16_LO = 84 +const R_PPC_GOT_TPREL16 = 87 +const R_PPC_GOT_TPREL16_HA = 90 +const R_PPC_GOT_TPREL16_HI = 89 +const R_PPC_GOT_TPREL16_LO = 88 +const R_PPC_IRELATIVE = 248 +const R_PPC_JMP_SLOT = 21 +const R_PPC_LOCAL24PC = 23 +const R_PPC_NONE = 0 +const R_PPC_PLT16_HA = 31 +const R_PPC_PLT16_HI = 30 +const R_PPC_PLT16_LO = 29 +const R_PPC_PLT32 = 27 +const R_PPC_PLTREL24 = 18 +const R_PPC_PLTREL32 = 28 +const R_PPC_REL14 = 11 +const R_PPC_REL14_BRNTAKEN = 13 +const R_PPC_REL14_BRTAKEN = 12 +const R_PPC_REL16 = 249 +const R_PPC_REL16_HA = 252 +const R_PPC_REL16_HI = 251 +const R_PPC_REL16_LO = 250 +const R_PPC_REL24 = 10 +const R_PPC_REL32 = 26 +const R_PPC_RELATIVE = 22 +const R_PPC_SDAREL16 = 32 +const R_PPC_SECTOFF = 33 +const R_PPC_SECTOFF_HA = 36 +const R_PPC_SECTOFF_HI = 35 +const R_PPC_SECTOFF_LO = 34 +const R_PPC_TLS = 67 +const R_PPC_TLSGD = 95 +const R_PPC_TLSLD = 96 +const R_PPC_TOC16 = 255 +const R_PPC_TPREL16 = 69 +const R_PPC_TPREL16_HA = 72 +const R_PPC_TPREL16_HI = 71 +const R_PPC_TPREL16_LO = 70 +const R_PPC_TPREL32 = 73 +const R_PPC_UADDR16 = 25 +const R_PPC_UADDR32 = 24 +const R_RISCV_32 = 1 +const R_RISCV_32_PCREL = 57 +const R_RISCV_64 = 2 +const R_RISCV_ADD16 = 34 +const R_RISCV_ADD32 = 35 +const R_RISCV_ADD64 = 36 +const R_RISCV_ADD8 = 33 +const R_RISCV_ALIGN = 43 +const R_RISCV_BRANCH = 16 +const R_RISCV_CALL = 18 +const R_RISCV_CALL_PLT = 19 +const R_RISCV_COPY = 4 +const R_RISCV_GOT32_PCREL = 41 +const R_RISCV_GOT_HI20 = 20 +const R_RISCV_HI20 = 26 +const R_RISCV_IRELATIVE = 58 +const R_RISCV_JAL = 17 +const R_RISCV_JUMP_SLOT = 5 +const R_RISCV_LO12_I = 27 +const R_RISCV_LO12_S = 28 +const R_RISCV_NONE = 0 +const R_RISCV_PCREL_HI20 = 23 +const R_RISCV_PCREL_LO12_I = 24 +const R_RISCV_PCREL_LO12_S = 25 +const R_RISCV_PLT32 = 59 +const R_RISCV_RELATIVE = 3 +const R_RISCV_RELAX = 51 +const R_RISCV_RVC_BRANCH = 44 +const R_RISCV_RVC_JUMP = 45 +const R_RISCV_RVC_LUI = 46 +const R_RISCV_SET16 = 55 +const R_RISCV_SET32 = 56 +const R_RISCV_SET6 = 53 +const R_RISCV_SET8 = 54 +const R_RISCV_SET_ULEB128 = 60 +const R_RISCV_SUB16 = 38 +const R_RISCV_SUB32 = 39 +const R_RISCV_SUB6 = 52 +const R_RISCV_SUB64 = 40 +const R_RISCV_SUB8 = 37 +const R_RISCV_SUB_ULEB128 = 61 +const R_RISCV_TLSDESC = 12 +const R_RISCV_TLSDESC_ADD_LO12 = 64 +const R_RISCV_TLSDESC_CALL = 65 +const R_RISCV_TLSDESC_HI20 = 62 +const R_RISCV_TLSDESC_LOAD_LO12 = 63 +const R_RISCV_TLS_DTPMOD32 = 6 +const R_RISCV_TLS_DTPMOD64 = 7 +const R_RISCV_TLS_DTPREL32 = 8 +const R_RISCV_TLS_DTPREL64 = 9 +const R_RISCV_TLS_GD_HI20 = 22 +const R_RISCV_TLS_GOT_HI20 = 21 +const R_RISCV_TLS_TPREL32 = 10 +const R_RISCV_TLS_TPREL64 = 11 +const R_RISCV_TPREL_ADD = 32 +const R_RISCV_TPREL_HI20 = 29 +const R_RISCV_TPREL_LO12_I = 30 +const R_RISCV_TPREL_LO12_S = 31 +const R_SH_ALIGN = 29 +const R_SH_CODE = 30 +const R_SH_COPY = 162 +const R_SH_COUNT = 28 +const R_SH_DATA = 31 +const R_SH_DIR32 = 1 +const R_SH_DIR8BP = 7 +const R_SH_DIR8L = 9 +const R_SH_DIR8W = 8 +const R_SH_DIR8WPL = 5 +const R_SH_DIR8WPN = 3 +const R_SH_DIR8WPZ = 6 +const R_SH_FUNCDESC = 207 +const R_SH_FUNCDESC_VALUE = 208 +const R_SH_GLOB_DAT = 163 +const R_SH_GNU_VTENTRY = 35 +const R_SH_GNU_VTINHERIT = 34 +const R_SH_GOT20 = 201 +const R_SH_GOT32 = 160 +const R_SH_GOTFUNCDESC = 203 +const R_SH_GOTFUNCDEST20 = 204 +const R_SH_GOTOFF = 166 +const R_SH_GOTOFF20 = 202 +const R_SH_GOTOFFFUNCDESC = 205 +const R_SH_GOTOFFFUNCDEST20 = 206 +const R_SH_GOTPC = 167 +const R_SH_IND12W = 4 +const R_SH_JMP_SLOT = 164 +const R_SH_LABEL = 32 +const R_SH_NONE = 0 +const R_SH_NUM = 256 +const R_SH_PLT32 = 161 +const R_SH_REL32 = 2 +const R_SH_RELATIVE = 165 +const R_SH_SWITCH16 = 25 +const R_SH_SWITCH32 = 26 +const R_SH_SWITCH8 = 33 +const R_SH_TLS_DTPMOD32 = 149 +const R_SH_TLS_DTPOFF32 = 150 +const R_SH_TLS_GD_32 = 144 +const R_SH_TLS_IE_32 = 147 +const R_SH_TLS_LDO_32 = 146 +const R_SH_TLS_LD_32 = 145 +const R_SH_TLS_LE_32 = 148 +const R_SH_TLS_TPOFF32 = 151 +const R_SH_USES = 27 +const R_SPARC_10 = 30 +const R_SPARC_11 = 31 +const R_SPARC_13 = 11 +const R_SPARC_16 = 2 +const R_SPARC_22 = 10 +const R_SPARC_32 = 3 +const R_SPARC_5 = 44 +const R_SPARC_6 = 45 +const R_SPARC_64 = 32 +const R_SPARC_7 = 43 +const R_SPARC_8 = 1 +const R_SPARC_COPY = 19 +const R_SPARC_DISP16 = 5 +const R_SPARC_DISP32 = 6 +const R_SPARC_DISP64 = 46 +const R_SPARC_DISP8 = 4 +const R_SPARC_GLOB_DAT = 20 +const R_SPARC_GLOB_JMP = 42 +const R_SPARC_GNU_VTENTRY = 251 +const R_SPARC_GNU_VTINHERIT = 250 +const R_SPARC_GOT10 = 13 +const R_SPARC_GOT13 = 14 +const R_SPARC_GOT22 = 15 +const R_SPARC_GOTDATA_HIX22 = 80 +const R_SPARC_GOTDATA_LOX10 = 81 +const R_SPARC_GOTDATA_OP = 84 +const R_SPARC_GOTDATA_OP_HIX22 = 82 +const R_SPARC_GOTDATA_OP_LOX10 = 83 +const R_SPARC_H34 = 85 +const R_SPARC_H44 = 50 +const R_SPARC_HH22 = 34 +const R_SPARC_HI22 = 9 +const R_SPARC_HIPLT22 = 25 +const R_SPARC_HIX22 = 48 +const R_SPARC_HM10 = 35 +const R_SPARC_JMP_SLOT = 21 +const R_SPARC_L44 = 52 +const R_SPARC_LM22 = 36 +const R_SPARC_LO10 = 12 +const R_SPARC_LOPLT10 = 26 +const R_SPARC_LOX10 = 49 +const R_SPARC_M44 = 51 +const R_SPARC_NONE = 0 +const R_SPARC_NUM = 253 +const R_SPARC_OLO10 = 33 +const R_SPARC_PC10 = 16 +const R_SPARC_PC22 = 17 +const R_SPARC_PCPLT10 = 29 +const R_SPARC_PCPLT22 = 28 +const R_SPARC_PCPLT32 = 27 +const R_SPARC_PC_HH22 = 37 +const R_SPARC_PC_HM10 = 38 +const R_SPARC_PC_LM22 = 39 +const R_SPARC_PLT32 = 24 +const R_SPARC_PLT64 = 47 +const R_SPARC_REGISTER = 53 +const R_SPARC_RELATIVE = 22 +const R_SPARC_REV32 = 252 +const R_SPARC_SIZE32 = 86 +const R_SPARC_SIZE64 = 87 +const R_SPARC_TLS_DTPMOD32 = 74 +const R_SPARC_TLS_DTPMOD64 = 75 +const R_SPARC_TLS_DTPOFF32 = 76 +const R_SPARC_TLS_DTPOFF64 = 77 +const R_SPARC_TLS_GD_ADD = 58 +const R_SPARC_TLS_GD_CALL = 59 +const R_SPARC_TLS_GD_HI22 = 56 +const R_SPARC_TLS_GD_LO10 = 57 +const R_SPARC_TLS_IE_ADD = 71 +const R_SPARC_TLS_IE_HI22 = 67 +const R_SPARC_TLS_IE_LD = 69 +const R_SPARC_TLS_IE_LDX = 70 +const R_SPARC_TLS_IE_LO10 = 68 +const R_SPARC_TLS_LDM_ADD = 62 +const R_SPARC_TLS_LDM_CALL = 63 +const R_SPARC_TLS_LDM_HI22 = 60 +const R_SPARC_TLS_LDM_LO10 = 61 +const R_SPARC_TLS_LDO_ADD = 66 +const R_SPARC_TLS_LDO_HIX22 = 64 +const R_SPARC_TLS_LDO_LOX10 = 65 +const R_SPARC_TLS_LE_HIX22 = 72 +const R_SPARC_TLS_LE_LOX10 = 73 +const R_SPARC_TLS_TPOFF32 = 78 +const R_SPARC_TLS_TPOFF64 = 79 +const R_SPARC_UA16 = 55 +const R_SPARC_UA32 = 23 +const R_SPARC_UA64 = 54 +const R_SPARC_WDISP16 = 40 +const R_SPARC_WDISP19 = 41 +const R_SPARC_WDISP22 = 8 +const R_SPARC_WDISP30 = 7 +const R_SPARC_WPLT30 = 18 +const R_X86_64_16 = 12 +const R_X86_64_32 = 10 +const R_X86_64_32S = 11 +const R_X86_64_64 = 1 +const R_X86_64_8 = 14 +const R_X86_64_COPY = 5 +const R_X86_64_DTPMOD64 = 16 +const R_X86_64_DTPOFF32 = 21 +const R_X86_64_DTPOFF64 = 17 +const R_X86_64_GLOB_DAT = 6 +const R_X86_64_GOT32 = 3 +const R_X86_64_GOT64 = 27 +const R_X86_64_GOTOFF64 = 25 +const R_X86_64_GOTPC32 = 26 +const R_X86_64_GOTPC32_TLSDESC = 34 +const R_X86_64_GOTPC64 = 29 +const R_X86_64_GOTPCREL = 9 +const R_X86_64_GOTPCREL64 = 28 +const R_X86_64_GOTPCRELX = 41 +const R_X86_64_GOTPLT64 = 30 +const R_X86_64_GOTTPOFF = 22 +const R_X86_64_IRELATIVE = 37 +const R_X86_64_JUMP_SLOT = 7 +const R_X86_64_NONE = 0 +const R_X86_64_NUM = 43 +const R_X86_64_PC16 = 13 +const R_X86_64_PC32 = 2 +const R_X86_64_PC64 = 24 +const R_X86_64_PC8 = 15 +const R_X86_64_PLT32 = 4 +const R_X86_64_PLTOFF64 = 31 +const R_X86_64_RELATIVE = 8 +const R_X86_64_RELATIVE64 = 38 +const R_X86_64_REX_GOTPCRELX = 42 +const R_X86_64_SIZE32 = 32 +const R_X86_64_SIZE64 = 33 +const R_X86_64_TLSDESC = 36 +const R_X86_64_TLSDESC_CALL = 35 +const R_X86_64_TLSGD = 19 +const R_X86_64_TLSLD = 20 +const R_X86_64_TPOFF32 = 23 +const R_X86_64_TPOFF64 = 18 +const SA_EXPOSE_TAGBITS = 2048 +const SA_NOCLDSTOP = 1 +const SA_NOCLDWAIT = 2 +const SA_NODEFER = 1073741824 +const SA_ONSTACK = 134217728 +const SA_RESETHAND = 2147483648 +const SA_RESTART = 268435456 +const SA_RESTORER = 67108864 +const SA_SIGINFO = 4 +const SA_UNSUPPORTED = 1024 +const SCM_TIMESTAMPING_OLD = 37 +const SCM_TIMESTAMPNS_OLD = 35 +const SCM_TIMESTAMP_OLD = 29 +const SEGV_ACCERR = 2 +const SEGV_BNDERR = 3 +const SEGV_MAPERR = 1 +const SEGV_MTEAERR = 8 +const SEGV_MTESERR = 9 +const SEGV_PKUERR = 4 +const SELFMAG = 4 +const SHF_ALLOC = 2 +const SHF_ALPHA_GPREL = 268435456 +const SHF_ARM_COMDEF = 2147483648 +const SHF_ARM_ENTRYSECT = 268435456 +const SHF_COMPRESSED = 2048 +const SHF_EXCLUDE = 2147483648 +const SHF_EXECINSTR = 4 +const SHF_GROUP = 512 +const SHF_IA_64_NORECOV = 536870912 +const SHF_IA_64_SHORT = 268435456 +const SHF_INFO_LINK = 64 +const SHF_LINK_ORDER = 128 +const SHF_MASKOS = 267386880 +const SHF_MASKPROC = 4026531840 +const SHF_MERGE = 16 +const SHF_MIPS_ADDR = 1073741824 +const SHF_MIPS_GPREL = 268435456 +const SHF_MIPS_LOCAL = 67108864 +const SHF_MIPS_MERGE = 536870912 +const SHF_MIPS_NAMES = 33554432 +const SHF_MIPS_NODUPE = 16777216 +const SHF_MIPS_NOSTRIP = 134217728 +const SHF_MIPS_STRINGS = 2147483648 +const SHF_ORDERED = 1073741824 +const SHF_OS_NONCONFORMING = 256 +const SHF_PARISC_HUGE = 1073741824 +const SHF_PARISC_SBP = 2147483648 +const SHF_PARISC_SHORT = 536870912 +const SHF_STRINGS = 32 +const SHF_TLS = 1024 +const SHF_WRITE = 1 +const SHN_ABS = 65521 +const SHN_AFTER = 65281 +const SHN_BEFORE = 65280 +const SHN_COMMON = 65522 +const SHN_HIOS = 65343 +const SHN_HIPROC = 65311 +const SHN_HIRESERVE = 65535 +const SHN_LOOS = 65312 +const SHN_LOPROC = 65280 +const SHN_LORESERVE = 65280 +const SHN_MIPS_ACOMMON = 65280 +const SHN_MIPS_DATA = 65282 +const SHN_MIPS_SCOMMON = 65283 +const SHN_MIPS_SUNDEFINED = 65284 +const SHN_MIPS_TEXT = 65281 +const SHN_PARISC_ANSI_COMMON = 65280 +const SHN_PARISC_HUGE_COMMON = 65281 +const SHN_UNDEF = 0 +const SHN_XINDEX = 65535 +const SHT_ALPHA_DEBUG = 1879048193 +const SHT_ALPHA_REGINFO = 1879048194 +const SHT_ARM_ATTRIBUTES = 1879048195 +const SHT_ARM_EXIDX = 1879048193 +const SHT_ARM_PREEMPTMAP = 1879048194 +const SHT_CHECKSUM = 1879048184 +const SHT_DYNAMIC = 6 +const SHT_DYNSYM = 11 +const SHT_FINI_ARRAY = 15 +const SHT_GNU_ATTRIBUTES = 1879048181 +const SHT_GNU_HASH = 1879048182 +const SHT_GNU_LIBLIST = 1879048183 +const SHT_GNU_verdef = 1879048189 +const SHT_GNU_verneed = 1879048190 +const SHT_GNU_versym = 1879048191 +const SHT_GROUP = 17 +const SHT_HASH = 5 +const SHT_HIOS = 1879048191 +const SHT_HIPROC = 2147483647 +const SHT_HISUNW = 1879048191 +const SHT_HIUSER = 2415919103 +const SHT_IA_64_EXT = 1879048192 +const SHT_IA_64_UNWIND = 1879048193 +const SHT_INIT_ARRAY = 14 +const SHT_LOOS = 1610612736 +const SHT_LOPROC = 1879048192 +const SHT_LOSUNW = 1879048186 +const SHT_LOUSER = 2147483648 +const SHT_MIPS_AUXSYM = 1879048214 +const SHT_MIPS_CONFLICT = 1879048194 +const SHT_MIPS_CONTENT = 1879048204 +const SHT_MIPS_DEBUG = 1879048197 +const SHT_MIPS_DELTACLASS = 1879048221 +const SHT_MIPS_DELTADECL = 1879048223 +const SHT_MIPS_DELTAINST = 1879048220 +const SHT_MIPS_DELTASYM = 1879048219 +const SHT_MIPS_DENSE = 1879048211 +const SHT_MIPS_DWARF = 1879048222 +const SHT_MIPS_EH_REGION = 1879048231 +const SHT_MIPS_EVENTS = 1879048225 +const SHT_MIPS_EXTSYM = 1879048210 +const SHT_MIPS_FDESC = 1879048209 +const SHT_MIPS_GPTAB = 1879048195 +const SHT_MIPS_IFACE = 1879048203 +const SHT_MIPS_LIBLIST = 1879048192 +const SHT_MIPS_LINE = 1879048217 +const SHT_MIPS_LOCSTR = 1879048216 +const SHT_MIPS_LOCSYM = 1879048213 +const SHT_MIPS_MSYM = 1879048193 +const SHT_MIPS_OPTIONS = 1879048205 +const SHT_MIPS_OPTSYM = 1879048215 +const SHT_MIPS_PACKAGE = 1879048199 +const SHT_MIPS_PACKSYM = 1879048200 +const SHT_MIPS_PDESC = 1879048212 +const SHT_MIPS_PDR_EXCEPTION = 1879048233 +const SHT_MIPS_PIXIE = 1879048227 +const SHT_MIPS_REGINFO = 1879048198 +const SHT_MIPS_RELD = 1879048201 +const SHT_MIPS_RFDESC = 1879048218 +const SHT_MIPS_SHDR = 1879048208 +const SHT_MIPS_SYMBOL_LIB = 1879048224 +const SHT_MIPS_TRANSLATE = 1879048226 +const SHT_MIPS_UCODE = 1879048196 +const SHT_MIPS_WHIRL = 1879048230 +const SHT_MIPS_XLATE = 1879048228 +const SHT_MIPS_XLATE_DEBUG = 1879048229 +const SHT_MIPS_XLATE_OLD = 1879048232 +const SHT_NOBITS = 8 +const SHT_NOTE = 7 +const SHT_NULL = 0 +const SHT_NUM = 20 +const SHT_PARISC_DOC = 1879048194 +const SHT_PARISC_EXT = 1879048192 +const SHT_PARISC_UNWIND = 1879048193 +const SHT_PREINIT_ARRAY = 16 +const SHT_PROGBITS = 1 +const SHT_REL = 9 +const SHT_RELA = 4 +const SHT_RELR = 19 +const SHT_SHLIB = 10 +const SHT_STRTAB = 3 +const SHT_SUNW_COMDAT = 1879048187 +const SHT_SUNW_move = 1879048186 +const SHT_SUNW_syminfo = 1879048188 +const SHT_SYMTAB = 2 +const SHT_SYMTAB_SHNDX = 18 +const SIGABRT = 6 +const SIGALRM = 14 +const SIGBUS = 7 +const SIGCHLD = 17 +const SIGCONT = 18 +const SIGEV_NONE = 1 +const SIGEV_SIGNAL = 0 +const SIGEV_THREAD = 2 +const SIGEV_THREAD_ID = 4 +const SIGFPE = 8 +const SIGHUP = 1 +const SIGILL = 4 +const SIGINT = 2 +const SIGIO = 29 +const SIGIOT = 6 +const SIGKILL = 9 +const SIGPIPE = 13 +const SIGPOLL = 29 +const SIGPROF = 27 +const SIGPWR = 30 +const SIGQUIT = 3 +const SIGRTMAX = 0 +const SIGRTMIN = 0 +const SIGSEGV = 11 +const SIGSTKFLT = 16 +const SIGSTKSZ = 8192 +const SIGSTOP = 19 +const SIGSYS = 31 +const SIGTERM = 15 +const SIGTRAP = 5 +const SIGTSTP = 20 +const SIGTTIN = 21 +const SIGTTOU = 22 +const SIGUNUSED = 31 +const SIGURG = 23 +const SIGUSR1 = 10 +const SIGUSR2 = 12 +const SIGVTALRM = 26 +const SIGWINCH = 28 +const SIGXCPU = 24 +const SIGXFSZ = 25 +const SIG_BLOCK = 0 +const SIG_SETMASK = 2 +const SIG_UNBLOCK = 1 +const SIOCGSTAMPNS_OLD = 35079 +const SIOCGSTAMP_OLD = 35078 +const SI_ASYNCIO = -4 +const SI_ASYNCNL = -60 +const SI_KERNEL = 128 +const SI_MESGQ = -3 +const SI_QUEUE = -1 +const SI_SIGIO = -5 +const SI_TIMER = -2 +const SI_TKILL = -6 +const SI_USER = 0 +const SO_RCVTIMEO_OLD = 20 +const SO_SNDTIMEO_OLD = 21 +const SO_TIMESTAMPING_OLD = 37 +const SO_TIMESTAMPNS_OLD = 35 +const SO_TIMESTAMP_OLD = 29 +const SS_AUTODISARM = 2147483648 +const SS_DISABLE = 2 +const SS_FLAG_BITS = 2147483648 +const SS_ONSTACK = 1 +const STB_GLOBAL = 1 +const STB_GNU_UNIQUE = 10 +const STB_HIOS = 12 +const STB_HIPROC = 15 +const STB_LOCAL = 0 +const STB_LOOS = 10 +const STB_LOPROC = 13 +const STB_MIPS_SPLIT_COMMON = 13 +const STB_NUM = 3 +const STB_WEAK = 2 +const STN_UNDEF = 0 +const STO_ALPHA_NOPV = 128 +const STO_ALPHA_STD_GPLOAD = 136 +const STO_MIPS_DEFAULT = 0 +const STO_MIPS_HIDDEN = 2 +const STO_MIPS_INTERNAL = 1 +const STO_MIPS_PLT = 8 +const STO_MIPS_PROTECTED = 3 +const STO_MIPS_SC_ALIGN_UNUSED = 255 +const STO_PPC64_LOCAL_BIT = 5 +const STO_PPC64_LOCAL_MASK = 224 +const STT_ARM_16BIT = 15 +const STT_ARM_TFUNC = 13 +const STT_COMMON = 5 +const STT_FILE = 4 +const STT_FUNC = 2 +const STT_GNU_IFUNC = 10 +const STT_HIOS = 12 +const STT_HIPROC = 15 +const STT_HP_OPAQUE = 11 +const STT_HP_STUB = 12 +const STT_LOOS = 10 +const STT_LOPROC = 13 +const STT_NOTYPE = 0 +const STT_NUM = 7 +const STT_OBJECT = 1 +const STT_PARISC_MILLICODE = 13 +const STT_SECTION = 3 +const STT_SPARC_REGISTER = 13 +const STT_TLS = 6 +const STV_DEFAULT = 0 +const STV_HIDDEN = 2 +const STV_INTERNAL = 1 +const STV_PROTECTED = 3 +const SYMINFO_BT_LOWRESERVE = 65280 +const SYMINFO_BT_PARENT = 65534 +const SYMINFO_BT_SELF = 65535 +const SYMINFO_CURRENT = 1 +const SYMINFO_FLG_COPY = 4 +const SYMINFO_FLG_DIRECT = 1 +const SYMINFO_FLG_LAZYLOAD = 8 +const SYMINFO_FLG_PASSTHRU = 2 +const SYMINFO_NONE = 0 +const SYMINFO_NUM = 2 +const SYSCALL_MMAP2_UNIT = 4096 +const SYSCALL_RLIM_INFINITY = 18446744073709551615 +const SYS__llseek = 140 +const SYS__newselect = 142 +const SYS__sysctl = 149 +const SYS_accept = 364 +const SYS_accept4 = 364 +const SYS_access = 33 +const SYS_acct = 51 +const SYS_add_key = 286 +const SYS_adjtimex = 124 +const SYS_afs_syscall = 137 +const SYS_alarm = 27 +const SYS_arch_prctl = 384 +const SYS_bdflush = 134 +const SYS_bind = 361 +const SYS_bpf = 357 +const SYS_break = 17 +const SYS_brk = 45 +const SYS_cachestat = 451 +const SYS_capget = 184 +const SYS_capset = 185 +const SYS_chdir = 12 +const SYS_chmod = 15 +const SYS_chown32 = 212 +const SYS_chroot = 61 +const SYS_clock_adjtime = 343 +const SYS_clock_adjtime64 = 405 +const SYS_clock_getres = 266 +const SYS_clock_getres_time32 = 266 +const SYS_clock_getres_time64 = 406 +const SYS_clock_gettime = 265 +const SYS_clock_gettime32 = 265 +const SYS_clock_gettime64 = 403 +const SYS_clock_nanosleep = 267 +const SYS_clock_nanosleep_time32 = 267 +const SYS_clock_nanosleep_time64 = 407 +const SYS_clock_settime = 264 +const SYS_clock_settime32 = 264 +const SYS_clock_settime64 = 404 +const SYS_clone = 120 +const SYS_clone3 = 435 +const SYS_close = 6 +const SYS_close_range = 436 +const SYS_connect = 362 +const SYS_copy_file_range = 377 +const SYS_creat = 8 +const SYS_create_module = 127 +const SYS_delete_module = 129 +const SYS_dup = 41 +const SYS_dup2 = 63 +const SYS_dup3 = 330 +const SYS_epoll_create = 254 +const SYS_epoll_create1 = 329 +const SYS_epoll_ctl = 255 +const SYS_epoll_pwait = 319 +const SYS_epoll_pwait2 = 441 +const SYS_epoll_wait = 256 +const SYS_eventfd = 323 +const SYS_eventfd2 = 328 +const SYS_execve = 11 +const SYS_execveat = 358 +const SYS_exit = 1 +const SYS_exit_group = 252 +const SYS_faccessat = 307 +const SYS_faccessat2 = 439 +const SYS_fadvise64 = 250 +const SYS_fadvise64_64 = 272 +const SYS_fallocate = 324 +const SYS_fanotify_init = 338 +const SYS_fanotify_mark = 339 +const SYS_fchdir = 133 +const SYS_fchmod = 94 +const SYS_fchmodat = 306 +const SYS_fchmodat2 = 452 +const SYS_fchown32 = 207 +const SYS_fchownat = 298 +const SYS_fcntl64 = 221 +const SYS_fdatasync = 148 +const SYS_fgetxattr = 231 +const SYS_finit_module = 350 +const SYS_flistxattr = 234 +const SYS_flock = 143 +const SYS_fork = 2 +const SYS_fremovexattr = 237 +const SYS_fsconfig = 431 +const SYS_fsetxattr = 228 +const SYS_fsmount = 432 +const SYS_fsopen = 430 +const SYS_fspick = 433 +const SYS_fstat64 = 197 +const SYS_fstatat64 = 300 +const SYS_fstatfs64 = 269 +const SYS_fsync = 118 +const SYS_ftime = 35 +const SYS_ftruncate64 = 194 +const SYS_futex = 240 +const SYS_futex_time64 = 422 +const SYS_futex_waitv = 449 +const SYS_futimesat = 299 +const SYS_get_kernel_syms = 130 +const SYS_get_mempolicy = 275 +const SYS_get_robust_list = 312 +const SYS_get_thread_area = 244 +const SYS_getcpu = 318 +const SYS_getcwd = 183 +const SYS_getdents64 = 220 +const SYS_getegid32 = 202 +const SYS_geteuid32 = 201 +const SYS_getgid32 = 200 +const SYS_getgroups32 = 205 +const SYS_getitimer = 105 +const SYS_getpeername = 368 +const SYS_getpgid = 132 +const SYS_getpgrp = 65 +const SYS_getpid = 20 +const SYS_getpmsg = 188 +const SYS_getppid = 64 +const SYS_getpriority = 96 +const SYS_getrandom = 355 +const SYS_getresgid32 = 211 +const SYS_getresuid32 = 209 +const SYS_getrusage = 77 +const SYS_getsid = 147 +const SYS_getsockname = 367 +const SYS_getsockopt = 365 +const SYS_gettid = 224 +const SYS_gettimeofday = 78 +const SYS_gettimeofday_time32 = 78 +const SYS_getuid32 = 199 +const SYS_getxattr = 229 +const SYS_gtty = 32 +const SYS_idle = 112 +const SYS_init_module = 128 +const SYS_inotify_add_watch = 292 +const SYS_inotify_init = 291 +const SYS_inotify_init1 = 332 +const SYS_inotify_rm_watch = 293 +const SYS_io_cancel = 249 +const SYS_io_destroy = 246 +const SYS_io_getevents = 247 +const SYS_io_pgetevents = 385 +const SYS_io_pgetevents_time64 = 416 +const SYS_io_setup = 245 +const SYS_io_submit = 248 +const SYS_io_uring_enter = 426 +const SYS_io_uring_register = 427 +const SYS_io_uring_setup = 425 +const SYS_ioctl = 54 +const SYS_ioperm = 101 +const SYS_iopl = 110 +const SYS_ioprio_get = 290 +const SYS_ioprio_set = 289 +const SYS_ipc = 117 +const SYS_kcmp = 349 +const SYS_kexec_load = 283 +const SYS_keyctl = 288 +const SYS_kill = 37 +const SYS_landlock_add_rule = 445 +const SYS_landlock_create_ruleset = 444 +const SYS_landlock_restrict_self = 446 +const SYS_lchown32 = 198 +const SYS_lgetxattr = 230 +const SYS_link = 9 +const SYS_linkat = 303 +const SYS_listen = 363 +const SYS_listxattr = 232 +const SYS_llistxattr = 233 +const SYS_lock = 53 +const SYS_lookup_dcookie = 253 +const SYS_lremovexattr = 236 +const SYS_lseek = 19 +const SYS_lsetxattr = 227 +const SYS_lstat64 = 196 +const SYS_madvise = 219 +const SYS_mbind = 274 +const SYS_membarrier = 375 +const SYS_memfd_create = 356 +const SYS_memfd_secret = 447 +const SYS_migrate_pages = 294 +const SYS_mincore = 218 +const SYS_mkdir = 39 +const SYS_mkdirat = 296 +const SYS_mknod = 14 +const SYS_mknodat = 297 +const SYS_mlock = 150 +const SYS_mlock2 = 376 +const SYS_mlockall = 152 +const SYS_mmap = 90 +const SYS_mmap2 = 192 +const SYS_modify_ldt = 123 +const SYS_mount = 21 +const SYS_mount_setattr = 442 +const SYS_move_mount = 429 +const SYS_move_pages = 317 +const SYS_mprotect = 125 +const SYS_mpx = 56 +const SYS_mq_getsetattr = 282 +const SYS_mq_notify = 281 +const SYS_mq_open = 277 +const SYS_mq_timedreceive = 280 +const SYS_mq_timedreceive_time64 = 419 +const SYS_mq_timedsend = 279 +const SYS_mq_timedsend_time64 = 418 +const SYS_mq_unlink = 278 +const SYS_mremap = 163 +const SYS_msgctl = 402 +const SYS_msgget = 399 +const SYS_msgrcv = 401 +const SYS_msgsnd = 400 +const SYS_msync = 144 +const SYS_munlock = 151 +const SYS_munlockall = 153 +const SYS_munmap = 91 +const SYS_name_to_handle_at = 341 +const SYS_nanosleep = 162 +const SYS_nfsservctl = 169 +const SYS_nice = 34 +const SYS_oldfstat = 28 +const SYS_oldlstat = 84 +const SYS_oldolduname = 59 +const SYS_oldstat = 18 +const SYS_olduname = 109 +const SYS_open = 5 +const SYS_open_by_handle_at = 342 +const SYS_open_tree = 428 +const SYS_openat = 295 +const SYS_openat2 = 437 +const SYS_pause = 29 +const SYS_perf_event_open = 336 +const SYS_personality = 136 +const SYS_pidfd_getfd = 438 +const SYS_pidfd_open = 434 +const SYS_pidfd_send_signal = 424 +const SYS_pipe = 42 +const SYS_pipe2 = 331 +const SYS_pivot_root = 217 +const SYS_pkey_alloc = 381 +const SYS_pkey_free = 382 +const SYS_pkey_mprotect = 380 +const SYS_poll = 168 +const SYS_ppoll = 309 +const SYS_ppoll_time64 = 414 +const SYS_prctl = 172 +const SYS_pread64 = 180 +const SYS_preadv = 333 +const SYS_preadv2 = 378 +const SYS_prlimit64 = 340 +const SYS_process_madvise = 440 +const SYS_process_mrelease = 448 +const SYS_process_vm_readv = 347 +const SYS_process_vm_writev = 348 +const SYS_prof = 44 +const SYS_profil = 98 +const SYS_pselect6 = 308 +const SYS_pselect6_time64 = 413 +const SYS_ptrace = 26 +const SYS_putpmsg = 189 +const SYS_pwrite64 = 181 +const SYS_pwritev = 334 +const SYS_pwritev2 = 379 +const SYS_query_module = 167 +const SYS_quotactl = 131 +const SYS_read = 3 +const SYS_readahead = 225 +const SYS_readdir = 89 +const SYS_readlink = 85 +const SYS_readlinkat = 305 +const SYS_readv = 145 +const SYS_reboot = 88 +const SYS_recvfrom = 371 +const SYS_recvmmsg = 337 +const SYS_recvmmsg_time64 = 417 +const SYS_recvmsg = 372 +const SYS_remap_file_pages = 257 +const SYS_removexattr = 235 +const SYS_rename = 38 +const SYS_renameat = 302 +const SYS_renameat2 = 353 +const SYS_request_key = 287 +const SYS_restart_syscall = 0 +const SYS_rmdir = 40 +const SYS_rseq = 386 +const SYS_rt_sigaction = 174 +const SYS_rt_sigpending = 176 +const SYS_rt_sigprocmask = 175 +const SYS_rt_sigqueueinfo = 178 +const SYS_rt_sigreturn = 173 +const SYS_rt_sigsuspend = 179 +const SYS_rt_sigtimedwait = 177 +const SYS_rt_sigtimedwait_time64 = 421 +const SYS_rt_tgsigqueueinfo = 335 +const SYS_sched_get_priority_max = 159 +const SYS_sched_get_priority_min = 160 +const SYS_sched_getaffinity = 242 +const SYS_sched_getattr = 352 +const SYS_sched_getparam = 155 +const SYS_sched_getscheduler = 157 +const SYS_sched_rr_get_interval = 161 +const SYS_sched_rr_get_interval_time64 = 423 +const SYS_sched_setaffinity = 241 +const SYS_sched_setattr = 351 +const SYS_sched_setparam = 154 +const SYS_sched_setscheduler = 156 +const SYS_sched_yield = 158 +const SYS_seccomp = 354 +const SYS_semctl = 394 +const SYS_semget = 393 +const SYS_semtimedop_time64 = 420 +const SYS_sendfile64 = 239 +const SYS_sendmmsg = 345 +const SYS_sendmsg = 370 +const SYS_sendto = 369 +const SYS_set_mempolicy = 276 +const SYS_set_mempolicy_home_node = 450 +const SYS_set_robust_list = 311 +const SYS_set_thread_area = 243 +const SYS_set_tid_address = 258 +const SYS_setdomainname = 121 +const SYS_setfsgid32 = 216 +const SYS_setfsuid32 = 215 +const SYS_setgid32 = 214 +const SYS_setgroups32 = 206 +const SYS_sethostname = 74 +const SYS_setitimer = 104 +const SYS_setns = 346 +const SYS_setpgid = 57 +const SYS_setpriority = 97 +const SYS_setregid32 = 204 +const SYS_setresgid32 = 210 +const SYS_setresuid32 = 208 +const SYS_setreuid32 = 203 +const SYS_setrlimit = 75 +const SYS_setsid = 66 +const SYS_setsockopt = 366 +const SYS_settimeofday = 79 +const SYS_settimeofday_time32 = 79 +const SYS_setuid32 = 213 +const SYS_setxattr = 226 +const SYS_sgetmask = 68 +const SYS_shmat = 397 +const SYS_shmctl = 396 +const SYS_shmdt = 398 +const SYS_shmget = 395 +const SYS_shutdown = 373 +const SYS_sigaction = 67 +const SYS_sigaltstack = 186 +const SYS_signal = 48 +const SYS_signalfd = 321 +const SYS_signalfd4 = 327 +const SYS_sigpending = 73 +const SYS_sigprocmask = 126 +const SYS_sigreturn = 119 +const SYS_sigsuspend = 72 +const SYS_socket = 359 +const SYS_socketcall = 102 +const SYS_socketpair = 360 +const SYS_splice = 313 +const SYS_ssetmask = 69 +const SYS_stat64 = 195 +const SYS_statfs64 = 268 +const SYS_statx = 383 +const SYS_stime = 25 +const SYS_stty = 31 +const SYS_swapoff = 115 +const SYS_swapon = 87 +const SYS_symlink = 83 +const SYS_symlinkat = 304 +const SYS_sync = 36 +const SYS_sync_file_range = 314 +const SYS_syncfs = 344 +const SYS_sysfs = 135 +const SYS_sysinfo = 116 +const SYS_syslog = 103 +const SYS_tee = 315 +const SYS_tgkill = 270 +const SYS_time = 13 +const SYS_timer_create = 259 +const SYS_timer_delete = 263 +const SYS_timer_getoverrun = 262 +const SYS_timer_gettime = 261 +const SYS_timer_gettime32 = 261 +const SYS_timer_gettime64 = 408 +const SYS_timer_settime = 260 +const SYS_timer_settime32 = 260 +const SYS_timer_settime64 = 409 +const SYS_timerfd_create = 322 +const SYS_timerfd_gettime = 326 +const SYS_timerfd_gettime32 = 326 +const SYS_timerfd_gettime64 = 410 +const SYS_timerfd_settime = 325 +const SYS_timerfd_settime32 = 325 +const SYS_timerfd_settime64 = 411 +const SYS_times = 43 +const SYS_tkill = 238 +const SYS_truncate64 = 193 +const SYS_ugetrlimit = 191 +const SYS_ulimit = 58 +const SYS_umask = 60 +const SYS_umount = 22 +const SYS_umount2 = 52 +const SYS_uname = 122 +const SYS_unlink = 10 +const SYS_unlinkat = 301 +const SYS_unshare = 310 +const SYS_uselib = 86 +const SYS_userfaultfd = 374 +const SYS_ustat = 62 +const SYS_utime = 30 +const SYS_utimensat = 320 +const SYS_utimensat_time64 = 412 +const SYS_utimes = 271 +const SYS_vfork = 190 +const SYS_vhangup = 111 +const SYS_vm86 = 166 +const SYS_vm86old = 113 +const SYS_vmsplice = 316 +const SYS_vserver = 273 +const SYS_wait4 = 114 +const SYS_waitid = 284 +const SYS_waitpid = 7 +const SYS_write = 4 +const SYS_writev = 146 +const TRAP_BRANCH = 3 +const TRAP_BRKPT = 1 +const TRAP_HWBKPT = 4 +const TRAP_TRACE = 2 +const TRAP_UNK = 5 +const VER = -255 +const VER_DEF_CURRENT = 1 +const VER_DEF_NONE = 0 +const VER_DEF_NUM = 2 +const VER_FLG_BASE = 1 +const VER_FLG_WEAK = 2 +const VER_NDX_ELIMINATE = 65281 +const VER_NDX_GLOBAL = 1 +const VER_NDX_LOCAL = 0 +const VER_NDX_LORESERVE = 65280 +const VER_NEED_CURRENT = 1 +const VER_NEED_NONE = 0 +const VER_NEED_NUM = 2 +const WNOHANG = 1 +const WUNTRACED = 2 +const _NSIG = 65 +const __NR__llseek = 140 +const __NR__newselect = 142 +const __NR__sysctl = 149 +const __NR_accept4 = 364 +const __NR_access = 33 +const __NR_acct = 51 +const __NR_add_key = 286 +const __NR_adjtimex = 124 +const __NR_afs_syscall = 137 +const __NR_alarm = 27 +const __NR_arch_prctl = 384 +const __NR_bdflush = 134 +const __NR_bind = 361 +const __NR_bpf = 357 +const __NR_break = 17 +const __NR_brk = 45 +const __NR_cachestat = 451 +const __NR_capget = 184 +const __NR_capset = 185 +const __NR_chdir = 12 +const __NR_chmod = 15 +const __NR_chown = 182 +const __NR_chown32 = 212 +const __NR_chroot = 61 +const __NR_clock_adjtime = 343 +const __NR_clock_adjtime64 = 405 +const __NR_clock_getres_time32 = 266 +const __NR_clock_getres_time64 = 406 +const __NR_clock_gettime32 = 265 +const __NR_clock_gettime64 = 403 +const __NR_clock_nanosleep_time32 = 267 +const __NR_clock_nanosleep_time64 = 407 +const __NR_clock_settime32 = 264 +const __NR_clock_settime64 = 404 +const __NR_clone = 120 +const __NR_clone3 = 435 +const __NR_close = 6 +const __NR_close_range = 436 +const __NR_connect = 362 +const __NR_copy_file_range = 377 +const __NR_creat = 8 +const __NR_create_module = 127 +const __NR_delete_module = 129 +const __NR_dup = 41 +const __NR_dup2 = 63 +const __NR_dup3 = 330 +const __NR_epoll_create = 254 +const __NR_epoll_create1 = 329 +const __NR_epoll_ctl = 255 +const __NR_epoll_pwait = 319 +const __NR_epoll_pwait2 = 441 +const __NR_epoll_wait = 256 +const __NR_eventfd = 323 +const __NR_eventfd2 = 328 +const __NR_execve = 11 +const __NR_execveat = 358 +const __NR_exit = 1 +const __NR_exit_group = 252 +const __NR_faccessat = 307 +const __NR_faccessat2 = 439 +const __NR_fadvise64 = 250 +const __NR_fadvise64_64 = 272 +const __NR_fallocate = 324 +const __NR_fanotify_init = 338 +const __NR_fanotify_mark = 339 +const __NR_fchdir = 133 +const __NR_fchmod = 94 +const __NR_fchmodat = 306 +const __NR_fchmodat2 = 452 +const __NR_fchown = 95 +const __NR_fchown32 = 207 +const __NR_fchownat = 298 +const __NR_fcntl = 55 +const __NR_fcntl64 = 221 +const __NR_fdatasync = 148 +const __NR_fgetxattr = 231 +const __NR_finit_module = 350 +const __NR_flistxattr = 234 +const __NR_flock = 143 +const __NR_fork = 2 +const __NR_fremovexattr = 237 +const __NR_fsconfig = 431 +const __NR_fsetxattr = 228 +const __NR_fsmount = 432 +const __NR_fsopen = 430 +const __NR_fspick = 433 +const __NR_fstat = 108 +const __NR_fstat64 = 197 +const __NR_fstatat64 = 300 +const __NR_fstatfs = 100 +const __NR_fstatfs64 = 269 +const __NR_fsync = 118 +const __NR_ftime = 35 +const __NR_ftruncate = 93 +const __NR_ftruncate64 = 194 +const __NR_futex = 240 +const __NR_futex_time64 = 422 +const __NR_futex_waitv = 449 +const __NR_futimesat = 299 +const __NR_get_kernel_syms = 130 +const __NR_get_mempolicy = 275 +const __NR_get_robust_list = 312 +const __NR_get_thread_area = 244 +const __NR_getcpu = 318 +const __NR_getcwd = 183 +const __NR_getdents = 141 +const __NR_getdents64 = 220 +const __NR_getegid = 50 +const __NR_getegid32 = 202 +const __NR_geteuid = 49 +const __NR_geteuid32 = 201 +const __NR_getgid = 47 +const __NR_getgid32 = 200 +const __NR_getgroups = 80 +const __NR_getgroups32 = 205 +const __NR_getitimer = 105 +const __NR_getpeername = 368 +const __NR_getpgid = 132 +const __NR_getpgrp = 65 +const __NR_getpid = 20 +const __NR_getpmsg = 188 +const __NR_getppid = 64 +const __NR_getpriority = 96 +const __NR_getrandom = 355 +const __NR_getresgid = 171 +const __NR_getresgid32 = 211 +const __NR_getresuid = 165 +const __NR_getresuid32 = 209 +const __NR_getrlimit = 76 +const __NR_getrusage = 77 +const __NR_getsid = 147 +const __NR_getsockname = 367 +const __NR_getsockopt = 365 +const __NR_gettid = 224 +const __NR_gettimeofday_time32 = 78 +const __NR_getuid = 24 +const __NR_getuid32 = 199 +const __NR_getxattr = 229 +const __NR_gtty = 32 +const __NR_idle = 112 +const __NR_init_module = 128 +const __NR_inotify_add_watch = 292 +const __NR_inotify_init = 291 +const __NR_inotify_init1 = 332 +const __NR_inotify_rm_watch = 293 +const __NR_io_cancel = 249 +const __NR_io_destroy = 246 +const __NR_io_getevents = 247 +const __NR_io_pgetevents = 385 +const __NR_io_pgetevents_time64 = 416 +const __NR_io_setup = 245 +const __NR_io_submit = 248 +const __NR_io_uring_enter = 426 +const __NR_io_uring_register = 427 +const __NR_io_uring_setup = 425 +const __NR_ioctl = 54 +const __NR_ioperm = 101 +const __NR_iopl = 110 +const __NR_ioprio_get = 290 +const __NR_ioprio_set = 289 +const __NR_ipc = 117 +const __NR_kcmp = 349 +const __NR_kexec_load = 283 +const __NR_keyctl = 288 +const __NR_kill = 37 +const __NR_landlock_add_rule = 445 +const __NR_landlock_create_ruleset = 444 +const __NR_landlock_restrict_self = 446 +const __NR_lchown = 16 +const __NR_lchown32 = 198 +const __NR_lgetxattr = 230 +const __NR_link = 9 +const __NR_linkat = 303 +const __NR_listen = 363 +const __NR_listxattr = 232 +const __NR_llistxattr = 233 +const __NR_lock = 53 +const __NR_lookup_dcookie = 253 +const __NR_lremovexattr = 236 +const __NR_lseek = 19 +const __NR_lsetxattr = 227 +const __NR_lstat = 107 +const __NR_lstat64 = 196 +const __NR_madvise = 219 +const __NR_mbind = 274 +const __NR_membarrier = 375 +const __NR_memfd_create = 356 +const __NR_memfd_secret = 447 +const __NR_migrate_pages = 294 +const __NR_mincore = 218 +const __NR_mkdir = 39 +const __NR_mkdirat = 296 +const __NR_mknod = 14 +const __NR_mknodat = 297 +const __NR_mlock = 150 +const __NR_mlock2 = 376 +const __NR_mlockall = 152 +const __NR_mmap = 90 +const __NR_mmap2 = 192 +const __NR_modify_ldt = 123 +const __NR_mount = 21 +const __NR_mount_setattr = 442 +const __NR_move_mount = 429 +const __NR_move_pages = 317 +const __NR_mprotect = 125 +const __NR_mpx = 56 +const __NR_mq_getsetattr = 282 +const __NR_mq_notify = 281 +const __NR_mq_open = 277 +const __NR_mq_timedreceive = 280 +const __NR_mq_timedreceive_time64 = 419 +const __NR_mq_timedsend = 279 +const __NR_mq_timedsend_time64 = 418 +const __NR_mq_unlink = 278 +const __NR_mremap = 163 +const __NR_msgctl = 402 +const __NR_msgget = 399 +const __NR_msgrcv = 401 +const __NR_msgsnd = 400 +const __NR_msync = 144 +const __NR_munlock = 151 +const __NR_munlockall = 153 +const __NR_munmap = 91 +const __NR_name_to_handle_at = 341 +const __NR_nanosleep = 162 +const __NR_nfsservctl = 169 +const __NR_nice = 34 +const __NR_oldfstat = 28 +const __NR_oldlstat = 84 +const __NR_oldolduname = 59 +const __NR_oldstat = 18 +const __NR_olduname = 109 +const __NR_open = 5 +const __NR_open_by_handle_at = 342 +const __NR_open_tree = 428 +const __NR_openat = 295 +const __NR_openat2 = 437 +const __NR_pause = 29 +const __NR_perf_event_open = 336 +const __NR_personality = 136 +const __NR_pidfd_getfd = 438 +const __NR_pidfd_open = 434 +const __NR_pidfd_send_signal = 424 +const __NR_pipe = 42 +const __NR_pipe2 = 331 +const __NR_pivot_root = 217 +const __NR_pkey_alloc = 381 +const __NR_pkey_free = 382 +const __NR_pkey_mprotect = 380 +const __NR_poll = 168 +const __NR_ppoll = 309 +const __NR_ppoll_time64 = 414 +const __NR_prctl = 172 +const __NR_pread64 = 180 +const __NR_preadv = 333 +const __NR_preadv2 = 378 +const __NR_prlimit64 = 340 +const __NR_process_madvise = 440 +const __NR_process_mrelease = 448 +const __NR_process_vm_readv = 347 +const __NR_process_vm_writev = 348 +const __NR_prof = 44 +const __NR_profil = 98 +const __NR_pselect6 = 308 +const __NR_pselect6_time64 = 413 +const __NR_ptrace = 26 +const __NR_putpmsg = 189 +const __NR_pwrite64 = 181 +const __NR_pwritev = 334 +const __NR_pwritev2 = 379 +const __NR_query_module = 167 +const __NR_quotactl = 131 +const __NR_read = 3 +const __NR_readahead = 225 +const __NR_readdir = 89 +const __NR_readlink = 85 +const __NR_readlinkat = 305 +const __NR_readv = 145 +const __NR_reboot = 88 +const __NR_recvfrom = 371 +const __NR_recvmmsg = 337 +const __NR_recvmmsg_time64 = 417 +const __NR_recvmsg = 372 +const __NR_remap_file_pages = 257 +const __NR_removexattr = 235 +const __NR_rename = 38 +const __NR_renameat = 302 +const __NR_renameat2 = 353 +const __NR_request_key = 287 +const __NR_restart_syscall = 0 +const __NR_rmdir = 40 +const __NR_rseq = 386 +const __NR_rt_sigaction = 174 +const __NR_rt_sigpending = 176 +const __NR_rt_sigprocmask = 175 +const __NR_rt_sigqueueinfo = 178 +const __NR_rt_sigreturn = 173 +const __NR_rt_sigsuspend = 179 +const __NR_rt_sigtimedwait = 177 +const __NR_rt_sigtimedwait_time64 = 421 +const __NR_rt_tgsigqueueinfo = 335 +const __NR_sched_get_priority_max = 159 +const __NR_sched_get_priority_min = 160 +const __NR_sched_getaffinity = 242 +const __NR_sched_getattr = 352 +const __NR_sched_getparam = 155 +const __NR_sched_getscheduler = 157 +const __NR_sched_rr_get_interval = 161 +const __NR_sched_rr_get_interval_time64 = 423 +const __NR_sched_setaffinity = 241 +const __NR_sched_setattr = 351 +const __NR_sched_setparam = 154 +const __NR_sched_setscheduler = 156 +const __NR_sched_yield = 158 +const __NR_seccomp = 354 +const __NR_select = 82 +const __NR_semctl = 394 +const __NR_semget = 393 +const __NR_semtimedop_time64 = 420 +const __NR_sendfile = 187 +const __NR_sendfile64 = 239 +const __NR_sendmmsg = 345 +const __NR_sendmsg = 370 +const __NR_sendto = 369 +const __NR_set_mempolicy = 276 +const __NR_set_mempolicy_home_node = 450 +const __NR_set_robust_list = 311 +const __NR_set_thread_area = 243 +const __NR_set_tid_address = 258 +const __NR_setdomainname = 121 +const __NR_setfsgid = 139 +const __NR_setfsgid32 = 216 +const __NR_setfsuid = 138 +const __NR_setfsuid32 = 215 +const __NR_setgid = 46 +const __NR_setgid32 = 214 +const __NR_setgroups = 81 +const __NR_setgroups32 = 206 +const __NR_sethostname = 74 +const __NR_setitimer = 104 +const __NR_setns = 346 +const __NR_setpgid = 57 +const __NR_setpriority = 97 +const __NR_setregid = 71 +const __NR_setregid32 = 204 +const __NR_setresgid = 170 +const __NR_setresgid32 = 210 +const __NR_setresuid = 164 +const __NR_setresuid32 = 208 +const __NR_setreuid = 70 +const __NR_setreuid32 = 203 +const __NR_setrlimit = 75 +const __NR_setsid = 66 +const __NR_setsockopt = 366 +const __NR_settimeofday_time32 = 79 +const __NR_setuid = 23 +const __NR_setuid32 = 213 +const __NR_setxattr = 226 +const __NR_sgetmask = 68 +const __NR_shmat = 397 +const __NR_shmctl = 396 +const __NR_shmdt = 398 +const __NR_shmget = 395 +const __NR_shutdown = 373 +const __NR_sigaction = 67 +const __NR_sigaltstack = 186 +const __NR_signal = 48 +const __NR_signalfd = 321 +const __NR_signalfd4 = 327 +const __NR_sigpending = 73 +const __NR_sigprocmask = 126 +const __NR_sigreturn = 119 +const __NR_sigsuspend = 72 +const __NR_socket = 359 +const __NR_socketcall = 102 +const __NR_socketpair = 360 +const __NR_splice = 313 +const __NR_ssetmask = 69 +const __NR_stat = 106 +const __NR_stat64 = 195 +const __NR_statfs = 99 +const __NR_statfs64 = 268 +const __NR_statx = 383 +const __NR_stime = 25 +const __NR_stty = 31 +const __NR_swapoff = 115 +const __NR_swapon = 87 +const __NR_symlink = 83 +const __NR_symlinkat = 304 +const __NR_sync = 36 +const __NR_sync_file_range = 314 +const __NR_syncfs = 344 +const __NR_sysfs = 135 +const __NR_sysinfo = 116 +const __NR_syslog = 103 +const __NR_tee = 315 +const __NR_tgkill = 270 +const __NR_time = 13 +const __NR_timer_create = 259 +const __NR_timer_delete = 263 +const __NR_timer_getoverrun = 262 +const __NR_timer_gettime32 = 261 +const __NR_timer_gettime64 = 408 +const __NR_timer_settime32 = 260 +const __NR_timer_settime64 = 409 +const __NR_timerfd_create = 322 +const __NR_timerfd_gettime32 = 326 +const __NR_timerfd_gettime64 = 410 +const __NR_timerfd_settime32 = 325 +const __NR_timerfd_settime64 = 411 +const __NR_times = 43 +const __NR_tkill = 238 +const __NR_truncate = 92 +const __NR_truncate64 = 193 +const __NR_ugetrlimit = 191 +const __NR_ulimit = 58 +const __NR_umask = 60 +const __NR_umount = 22 +const __NR_umount2 = 52 +const __NR_uname = 122 +const __NR_unlink = 10 +const __NR_unlinkat = 301 +const __NR_unshare = 310 +const __NR_uselib = 86 +const __NR_userfaultfd = 374 +const __NR_ustat = 62 +const __NR_utime = 30 +const __NR_utimensat = 320 +const __NR_utimensat_time64 = 412 +const __NR_utimes = 271 +const __NR_vfork = 190 +const __NR_vhangup = 111 +const __NR_vm86 = 166 +const __NR_vm86old = 113 +const __NR_vmsplice = 316 +const __NR_vserver = 273 +const __NR_wait4 = 114 +const __NR_waitid = 284 +const __NR_waitpid = 7 +const __NR_write = 4 +const __NR_writev = 146 +const __SC_accept = 5 +const __SC_accept4 = 18 +const __SC_bind = 2 +const __SC_connect = 3 +const __SC_getpeername = 7 +const __SC_getsockname = 6 +const __SC_getsockopt = 15 +const __SC_listen = 4 +const __SC_recv = 10 +const __SC_recvfrom = 12 +const __SC_recvmmsg = 19 +const __SC_recvmsg = 17 +const __SC_send = 9 +const __SC_sendmmsg = 20 +const __SC_sendmsg = 16 +const __SC_sendto = 11 +const __SC_setsockopt = 14 +const __SC_shutdown = 13 +const __SC_socket = 1 +const __SC_socketpair = 8 +const libc = 0 + +type Ttime_t = int64 + +type Tsuseconds_t = int64 + +type Ttimeval = struct { + Ftv_sec Ttime_t + Ftv_usec Tsuseconds_t +} + +type Ttimespec = struct { + Ftv_sec Ttime_t + Ftv_nsec int32 + F__ccgo12 uint32 +} + +type Tsigset_t = struct { + F__bits [32]uint32 +} + +type t__sigset_t = Tsigset_t + +type Tfd_mask = uint32 + +type Tfd_set = struct { + Ffds_bits [32]uint32 +} + +type Titimerval = struct { + Fit_interval Ttimeval + Fit_value Ttimeval +} + +type Tid_t = uint32 + +type Trlim_t = uint64 + +type Trlimit = struct { + Frlim_cur Trlim_t + Frlim_max Trlim_t +} + +type Trusage = struct { + Fru_utime Ttimeval + Fru_stime Ttimeval + Fru_maxrss int32 + Fru_ixrss int32 + Fru_idrss int32 + Fru_isrss int32 + Fru_minflt int32 + Fru_majflt int32 + Fru_nswap int32 + Fru_inblock int32 + Fru_oublock int32 + Fru_msgsnd int32 + Fru_msgrcv int32 + Fru_nsignals int32 + Fru_nvcsw int32 + Fru_nivcsw int32 + F__reserved [16]int32 +} + +type Tclock_t = int32 + +type Tpthread_t = uintptr + +type Tpthread_attr_t = struct { + F__u struct { + F__vi [0][9]int32 + F__s [0][9]uint32 + F__i [9]int32 + } +} + +type Tstack_t = struct { + Fss_sp uintptr + Fss_flags int32 + Fss_size Tsize_t +} + +type Tsigaltstack = Tstack_t + +type Tmcontext_t = struct { + F__space [22]uint32 +} + +type Tucontext_t = struct { + Fuc_flags uint32 + Fuc_link uintptr + Fuc_stack Tstack_t + Fuc_mcontext Tmcontext_t + Fuc_sigmask Tsigset_t + F__fpregs_mem [28]uint32 +} + +type t__ucontext = Tucontext_t + +type Tsigval = struct { + Fsival_ptr [0]uintptr + Fsival_int int32 +} + +type Tsiginfo_t = struct { + Fsi_signo int32 + Fsi_errno int32 + Fsi_code int32 + F__si_fields struct { + F__si_common [0]struct { + F__first struct { + F__timer [0]struct { + Fsi_timerid int32 + Fsi_overrun int32 + } + F__piduid struct { + Fsi_pid Tpid_t + Fsi_uid Tuid_t + } + } + F__second struct { + F__sigchld [0]struct { + Fsi_status int32 + Fsi_utime Tclock_t + Fsi_stime Tclock_t + } + Fsi_value Tsigval + F__ccgo_pad2 [8]byte + } + } + F__sigfault [0]struct { + Fsi_addr uintptr + Fsi_addr_lsb int16 + F__first struct { + Fsi_pkey [0]uint32 + F__addr_bnd struct { + Fsi_lower uintptr + Fsi_upper uintptr + } + } + } + F__sigpoll [0]struct { + Fsi_band int32 + Fsi_fd int32 + } + F__sigsys [0]struct { + Fsi_call_addr uintptr + Fsi_syscall int32 + Fsi_arch uint32 + } + F__pad [116]int8 + } +} + +type Tsigaction = struct { + F__sa_handler struct { + Fsa_sigaction [0]uintptr + Fsa_handler uintptr + } + Fsa_mask Tsigset_t + Fsa_flags int32 + Fsa_restorer uintptr +} + +type Tsigevent = struct { + Fsigev_value Tsigval + Fsigev_signo int32 + Fsigev_notify int32 + F__sev_fields struct { + Fsigev_notify_thread_id [0]Tpid_t + F__sev_thread [0]struct { + Fsigev_notify_function uintptr + Fsigev_notify_attributes uintptr + } + F__pad [52]int8 + } +} + +type Tsig_atomic_t = int32 + +type TElf32_Half = uint16 + +type TElf64_Half = uint16 + +type TElf32_Word = uint32 + +type TElf32_Sword = int32 + +type TElf64_Word = uint32 + +type TElf64_Sword = int32 + +type TElf32_Xword = uint64 + +type TElf32_Sxword = int64 + +type TElf64_Xword = uint64 + +type TElf64_Sxword = int64 + +type TElf32_Addr = uint32 + +type TElf64_Addr = uint64 + +type TElf32_Off = uint32 + +type TElf64_Off = uint64 + +type TElf32_Section = uint16 + +type TElf64_Section = uint16 + +type TElf32_Versym = uint16 + +type TElf64_Versym = uint16 + +type TElf32_Ehdr = struct { + Fe_ident [16]uint8 + Fe_type TElf32_Half + Fe_machine TElf32_Half + Fe_version TElf32_Word + Fe_entry TElf32_Addr + Fe_phoff TElf32_Off + Fe_shoff TElf32_Off + Fe_flags TElf32_Word + Fe_ehsize TElf32_Half + Fe_phentsize TElf32_Half + Fe_phnum TElf32_Half + Fe_shentsize TElf32_Half + Fe_shnum TElf32_Half + Fe_shstrndx TElf32_Half +} + +type TElf64_Ehdr = struct { + Fe_ident [16]uint8 + Fe_type TElf64_Half + Fe_machine TElf64_Half + Fe_version TElf64_Word + Fe_entry TElf64_Addr + Fe_phoff TElf64_Off + Fe_shoff TElf64_Off + Fe_flags TElf64_Word + Fe_ehsize TElf64_Half + Fe_phentsize TElf64_Half + Fe_phnum TElf64_Half + Fe_shentsize TElf64_Half + Fe_shnum TElf64_Half + Fe_shstrndx TElf64_Half +} + +type TElf32_Shdr = struct { + Fsh_name TElf32_Word + Fsh_type TElf32_Word + Fsh_flags TElf32_Word + Fsh_addr TElf32_Addr + Fsh_offset TElf32_Off + Fsh_size TElf32_Word + Fsh_link TElf32_Word + Fsh_info TElf32_Word + Fsh_addralign TElf32_Word + Fsh_entsize TElf32_Word +} + +type TElf64_Shdr = struct { + Fsh_name TElf64_Word + Fsh_type TElf64_Word + Fsh_flags TElf64_Xword + Fsh_addr TElf64_Addr + Fsh_offset TElf64_Off + Fsh_size TElf64_Xword + Fsh_link TElf64_Word + Fsh_info TElf64_Word + Fsh_addralign TElf64_Xword + Fsh_entsize TElf64_Xword +} + +type TElf32_Chdr = struct { + Fch_type TElf32_Word + Fch_size TElf32_Word + Fch_addralign TElf32_Word +} + +type TElf64_Chdr = struct { + Fch_type TElf64_Word + Fch_reserved TElf64_Word + Fch_size TElf64_Xword + Fch_addralign TElf64_Xword +} + +type TElf32_Sym = struct { + Fst_name TElf32_Word + Fst_value TElf32_Addr + Fst_size TElf32_Word + Fst_info uint8 + Fst_other uint8 + Fst_shndx TElf32_Section +} + +type TElf64_Sym = struct { + Fst_name TElf64_Word + Fst_info uint8 + Fst_other uint8 + Fst_shndx TElf64_Section + Fst_value TElf64_Addr + Fst_size TElf64_Xword +} + +type TElf32_Syminfo = struct { + Fsi_boundto TElf32_Half + Fsi_flags TElf32_Half +} + +type TElf64_Syminfo = struct { + Fsi_boundto TElf64_Half + Fsi_flags TElf64_Half +} + +type TElf32_Rel = struct { + Fr_offset TElf32_Addr + Fr_info TElf32_Word +} + +type TElf64_Rel = struct { + Fr_offset TElf64_Addr + Fr_info TElf64_Xword +} + +type TElf32_Rela = struct { + Fr_offset TElf32_Addr + Fr_info TElf32_Word + Fr_addend TElf32_Sword +} + +type TElf64_Rela = struct { + Fr_offset TElf64_Addr + Fr_info TElf64_Xword + Fr_addend TElf64_Sxword +} + +type TElf32_Relr = uint32 + +type TElf64_Relr = uint64 + +type TElf32_Phdr = struct { + Fp_type TElf32_Word + Fp_offset TElf32_Off + Fp_vaddr TElf32_Addr + Fp_paddr TElf32_Addr + Fp_filesz TElf32_Word + Fp_memsz TElf32_Word + Fp_flags TElf32_Word + Fp_align TElf32_Word +} + +type TElf64_Phdr = struct { + Fp_type TElf64_Word + Fp_flags TElf64_Word + Fp_offset TElf64_Off + Fp_vaddr TElf64_Addr + Fp_paddr TElf64_Addr + Fp_filesz TElf64_Xword + Fp_memsz TElf64_Xword + Fp_align TElf64_Xword +} + +type TElf32_Dyn = struct { + Fd_tag TElf32_Sword + Fd_un struct { + Fd_ptr [0]TElf32_Addr + Fd_val TElf32_Word + } +} + +type TElf64_Dyn = struct { + Fd_tag TElf64_Sxword + Fd_un struct { + Fd_ptr [0]TElf64_Addr + Fd_val TElf64_Xword + } +} + +type TElf32_Verdef = struct { + Fvd_version TElf32_Half + Fvd_flags TElf32_Half + Fvd_ndx TElf32_Half + Fvd_cnt TElf32_Half + Fvd_hash TElf32_Word + Fvd_aux TElf32_Word + Fvd_next TElf32_Word +} + +type TElf64_Verdef = struct { + Fvd_version TElf64_Half + Fvd_flags TElf64_Half + Fvd_ndx TElf64_Half + Fvd_cnt TElf64_Half + Fvd_hash TElf64_Word + Fvd_aux TElf64_Word + Fvd_next TElf64_Word +} + +type TElf32_Verdaux = struct { + Fvda_name TElf32_Word + Fvda_next TElf32_Word +} + +type TElf64_Verdaux = struct { + Fvda_name TElf64_Word + Fvda_next TElf64_Word +} + +type TElf32_Verneed = struct { + Fvn_version TElf32_Half + Fvn_cnt TElf32_Half + Fvn_file TElf32_Word + Fvn_aux TElf32_Word + Fvn_next TElf32_Word +} + +type TElf64_Verneed = struct { + Fvn_version TElf64_Half + Fvn_cnt TElf64_Half + Fvn_file TElf64_Word + Fvn_aux TElf64_Word + Fvn_next TElf64_Word +} + +type TElf32_Vernaux = struct { + Fvna_hash TElf32_Word + Fvna_flags TElf32_Half + Fvna_other TElf32_Half + Fvna_name TElf32_Word + Fvna_next TElf32_Word +} + +type TElf64_Vernaux = struct { + Fvna_hash TElf64_Word + Fvna_flags TElf64_Half + Fvna_other TElf64_Half + Fvna_name TElf64_Word + Fvna_next TElf64_Word +} + +type TElf32_auxv_t = struct { + Fa_type Tuint32_t + Fa_un struct { + Fa_val Tuint32_t + } +} + +type TElf64_auxv_t = struct { + Fa_type Tuint64_t + Fa_un struct { + Fa_val Tuint64_t + } +} + +type TElf32_Nhdr = struct { + Fn_namesz TElf32_Word + Fn_descsz TElf32_Word + Fn_type TElf32_Word +} + +type TElf64_Nhdr = struct { + Fn_namesz TElf64_Word + Fn_descsz TElf64_Word + Fn_type TElf64_Word +} + +type TElf32_Move = struct { + Fm_value TElf32_Xword + Fm_info TElf32_Word + Fm_poffset TElf32_Word + Fm_repeat TElf32_Half + Fm_stride TElf32_Half +} + +type TElf64_Move = struct { + Fm_value TElf64_Xword + Fm_info TElf64_Xword + Fm_poffset TElf64_Xword + Fm_repeat TElf64_Half + Fm_stride TElf64_Half +} + +type TElf32_gptab = struct { + Fgt_entry [0]struct { + Fgt_g_value TElf32_Word + Fgt_bytes TElf32_Word + } + Fgt_header struct { + Fgt_current_g_value TElf32_Word + Fgt_unused TElf32_Word + } +} + +type TElf32_RegInfo = struct { + Fri_gprmask TElf32_Word + Fri_cprmask [4]TElf32_Word + Fri_gp_value TElf32_Sword +} + +type TElf_Options = struct { + Fkind uint8 + Fsize uint8 + Fsection TElf32_Section + Finfo TElf32_Word +} + +type TElf_Options_Hw = struct { + Fhwp_flags1 TElf32_Word + Fhwp_flags2 TElf32_Word +} + +type TElf32_Lib = struct { + Fl_name TElf32_Word + Fl_time_stamp TElf32_Word + Fl_checksum TElf32_Word + Fl_version TElf32_Word + Fl_flags TElf32_Word +} + +type TElf64_Lib = struct { + Fl_name TElf64_Word + Fl_time_stamp TElf64_Word + Fl_checksum TElf64_Word + Fl_version TElf64_Word + Fl_flags TElf64_Word +} + +type TElf32_Conflict = uint32 + +type TElf_MIPS_ABIFlags_v0 = struct { + Fversion TElf32_Half + Fisa_level uint8 + Fisa_rev uint8 + Fgpr_size uint8 + Fcpr1_size uint8 + Fcpr2_size uint8 + Ffp_abi uint8 + Fisa_ext TElf32_Word + Fases TElf32_Word + Fflags1 TElf32_Word + Fflags2 TElf32_Word +} + +const _Val_GNU_MIPS_ABI_FP_ANY = 0 +const _Val_GNU_MIPS_ABI_FP_DOUBLE = 1 +const _Val_GNU_MIPS_ABI_FP_SINGLE = 2 +const _Val_GNU_MIPS_ABI_FP_SOFT = 3 +const _Val_GNU_MIPS_ABI_FP_OLD_64 = 4 +const _Val_GNU_MIPS_ABI_FP_XX = 5 +const _Val_GNU_MIPS_ABI_FP_64 = 6 +const _Val_GNU_MIPS_ABI_FP_64A = 7 +const _Val_GNU_MIPS_ABI_FP_MAX = 7 + +type Tsyscall_arg_t = int32 + +type Twchar_t = int32 + +type Tdiv_t = struct { + Fquot int32 + Frem int32 +} + +type Tldiv_t = struct { + Fquot int32 + Frem int32 +} + +type Tlldiv_t = struct { + Fquot int64 + Frem int64 +} + +type t__locale_struct = struct { + Fcat [6]uintptr +} + +type Ttls_module = struct { + Fnext uintptr + Fimage uintptr + Flen1 Tsize_t + Fsize Tsize_t + Falign Tsize_t + Foffset Tsize_t +} + +type t__libc = struct { + Fcan_do_threads int8 + Fthreaded int8 + Fsecure int8 + Fneed_locks int8 + Fthreads_minus_1 int32 + Fauxv uintptr + Ftls_head uintptr + Ftls_size Tsize_t + Ftls_align Tsize_t + Ftls_cnt Tsize_t + Fpage_size Tsize_t + Fglobal_locale t__locale_struct +} + +func Xsysconf(tls *TLS, name int32) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(464) + defer tls.Free(464) + var cnt, i, val, v3 int32 + var mem, v1 uint64 + var v5 uintptr + var _ /* lim at bp+0 */ Trlimit + var _ /* set at bp+16 */ [128]uint8 + var _ /* si at bp+144 */ Tsysinfo + _, _, _, _, _, _, _ = cnt, i, mem, val, v1, v3, v5 + if Uint32FromInt32(name) >= Uint32FromInt64(502)/Uint32FromInt64(2) || !(_values1[name] != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } else { + if int32(_values1[name]) >= -int32(1) { + return int32(_values1[name]) + } else { + if int32(_values1[name]) < -int32(256) { + Xgetrlimit(tls, int32(_values1[name])&int32(16383), bp) + if (**(**Trlimit)(__ccgo_up(bp))).Frlim_cur == ^Uint64FromUint64(0) { + return -int32(1) + } + if (**(**Trlimit)(__ccgo_up(bp))).Frlim_cur > uint64(0x7fffffff) { + v1 = uint64(0x7fffffff) + } else { + v1 = (**(**Trlimit)(__ccgo_up(bp))).Frlim_cur + } + return Int32FromUint64(v1) + } + } + } + switch Int32FromUint8(Uint8FromInt16(_values1[name])) { + case (-Int32FromInt32(256) | Int32FromInt32(1)) & Int32FromInt32(255): + return int32(200809) + case (-Int32FromInt32(256) | Int32FromInt32(2)) & Int32FromInt32(255): + return int32(ARG_MAX) + case (-Int32FromInt32(256) | Int32FromInt32(3)) & Int32FromInt32(255): + return int32(MQ_PRIO_MAX) + case (-Int32FromInt32(256) | Int32FromInt32(4)) & Int32FromInt32(255): + return int32(PAGESIZE) + case (-Int32FromInt32(256) | Int32FromInt32(5)) & Int32FromInt32(255): + return int32(SEM_VALUE_MAX) + case (-Int32FromInt32(256) | Int32FromInt32(11)) & Int32FromInt32(255): + return int32(DELAYTIMER_MAX) + case (-Int32FromInt32(256) | Int32FromInt32(6)) & Int32FromInt32(255): + fallthrough + case (-Int32FromInt32(256) | Int32FromInt32(7)) & Int32FromInt32(255): + **(**[128]uint8)(__ccgo_up(bp + 16)) = [128]uint8{ + 0: uint8(1), + } + X__syscall3(tls, int32(SYS_sched_getaffinity), int32(Int32FromInt32(0)), Int32FromUint32(Uint32FromInt64(128)), int32(bp+16)) + v3 = Int32FromInt32(0) + cnt = v3 + i = v3 + for { + if !(Uint32FromInt32(i) < uint32(128)) { + break + } + for { + if !((**(**[128]uint8)(__ccgo_up(bp + 16)))[i] != 0) { + break + } + goto _4 + _4: + ; + v5 = bp + 16 + uintptr(i) + *(*uint8)(unsafe.Pointer(v5)) = uint8(int32(*(*uint8)(unsafe.Pointer(v5))) & (Int32FromUint8((**(**[128]uint8)(__ccgo_up(bp + 16)))[i]) - Int32FromInt32(1))) + cnt = cnt + 1 + } + goto _2 + _2: + ; + i = i + 1 + } + return cnt + case (-Int32FromInt32(256) | Int32FromInt32(8)) & Int32FromInt32(255): + fallthrough + case (-Int32FromInt32(256) | Int32FromInt32(9)) & Int32FromInt32(255): + X__lsysinfo(tls, bp+144) + if !((**(**Tsysinfo)(__ccgo_up(bp + 144))).Fmem_unit != 0) { + (**(**Tsysinfo)(__ccgo_up(bp + 144))).Fmem_unit = uint32(1) + } + if name == int32(_SC_PHYS_PAGES) { + mem = uint64((**(**Tsysinfo)(__ccgo_up(bp + 144))).Ftotalram) + } else { + mem = uint64((**(**Tsysinfo)(__ccgo_up(bp + 144))).Ffreeram + (**(**Tsysinfo)(__ccgo_up(bp + 144))).Fbufferram) + } + mem = mem * uint64((**(**Tsysinfo)(__ccgo_up(bp + 144))).Fmem_unit) + mem = mem / uint64(PAGESIZE) + if mem > uint64(0x7fffffff) { + v1 = uint64(0x7fffffff) + } else { + v1 = mem + } + return Int32FromUint64(v1) + case (-Int32FromInt32(256) | Int32FromInt32(12)) & Int32FromInt32(255): + fallthrough + case (-Int32FromInt32(256) | Int32FromInt32(13)) & Int32FromInt32(255): + val = Int32FromUint32(X__getauxval(tls, uint32(AT_MINSIGSTKSZ))) + if val < int32(MINSIGSTKSZ) { + val = int32(MINSIGSTKSZ) + } + if int32(_values1[name]) == -Int32FromInt32(256)|Int32FromInt32(13) { + val = val + int32(Int32FromInt32(SIGSTKSZ)-Int32FromInt32(MINSIGSTKSZ)) + } + return val + case (-Int32FromInt32(256) | Int32FromInt32(10)) & Int32FromInt32(255): + return 0 + } + return int32(_values1[name]) +} + +var _values1 = [251]int16{ + 0: int16(-Int32FromInt32(256) | Int32FromInt32(2)), + 1: int16(-Int32FromInt32(32768) | Int32FromInt32(RLIMIT_NPROC)), + 2: int16(100), + 3: int16(32), + 4: int16(-Int32FromInt32(32768) | Int32FromInt32(RLIMIT_NOFILE)), + 5: int16(-int32(1)), + 6: int16(TZNAME_MAX), + 7: int16(1), + 8: int16(1), + 9: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 10: int16(-int32(1)), + 11: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 12: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 13: int16(-int32(1)), + 14: int16(-int32(1)), + 15: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 16: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 17: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 18: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 19: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 20: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 21: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 22: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 23: int16(-int32(1)), + 24: int16(-int32(1)), + 25: int16(-Int32FromInt32(256) | Int32FromInt32(10)), + 26: int16(-Int32FromInt32(256) | Int32FromInt32(11)), + 27: int16(-int32(1)), + 28: int16(-Int32FromInt32(256) | Int32FromInt32(3)), + 29: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 30: int16(-Int32FromInt32(256) | Int32FromInt32(4)), + 31: int16(Int32FromInt32(_NSIG) - Int32FromInt32(1) - Int32FromInt32(31) - Int32FromInt32(3)), + 32: int16(SEM_NSEMS_MAX), + 33: int16(-Int32FromInt32(256) | Int32FromInt32(5)), + 34: int16(-int32(1)), + 35: int16(-int32(1)), + 36: int16(_POSIX2_BC_BASE_MAX), + 37: int16(_POSIX2_BC_DIM_MAX), + 38: int16(_POSIX2_BC_SCALE_MAX), + 39: int16(_POSIX2_BC_STRING_MAX), + 40: int16(COLL_WEIGHTS_MAX), + 42: int16(-int32(1)), + 43: int16(-int32(1)), + 44: int16(RE_DUP_MAX), + 46: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 47: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 48: int16(-int32(1)), + 49: int16(-int32(1)), + 50: int16(-int32(1)), + 51: int16(-int32(1)), + 52: int16(-int32(1)), + 60: int16(IOV_MAX), + 67: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 68: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 69: int16(-int32(1)), + 70: int16(-int32(1)), + 71: int16(256), + 72: int16(TTY_NAME_MAX), + 73: int16(PTHREAD_DESTRUCTOR_ITERATIONS), + 74: int16(PTHREAD_KEYS_MAX), + 75: int16(PTHREAD_STACK_MIN), + 76: int16(-int32(1)), + 77: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 78: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 79: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 80: int16(-int32(1)), + 81: int16(-int32(1)), + 82: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 83: int16(-Int32FromInt32(256) | Int32FromInt32(6)), + 84: int16(-Int32FromInt32(256) | Int32FromInt32(7)), + 85: int16(-Int32FromInt32(256) | Int32FromInt32(8)), + 86: int16(-Int32FromInt32(256) | Int32FromInt32(9)), + 87: int16(-int32(1)), + 88: int16(-int32(1)), + 89: int16(_XOPEN_VERSION), + 90: int16(_XOPEN_VERSION), + 91: int16(1), + 92: int16(-int32(1)), + 93: int16(1), + 94: int16(1), + 95: int16(-int32(1)), + 97: int16(-int32(1)), + 98: int16(-int32(1)), + 99: int16(-int32(1)), + 100: int16(-int32(1)), + 109: int16(NZERO), + 125: int16(-int32(1)), + 126: int16(1), + 127: int16(-int32(1)), + 128: int16(-int32(1)), + 129: int16(-int32(1)), + 130: int16(-int32(1)), + 131: int16(-int32(1)), + 132: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 133: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 137: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 138: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 139: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 149: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 153: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 154: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 155: int16(1), + 157: int16(1), + 159: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 160: int16(-int32(1)), + 161: int16(-int32(1)), + 164: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 165: int16(-int32(1)), + 168: int16(-int32(1)), + 169: int16(-int32(1)), + 170: int16(-int32(1)), + 171: int16(-int32(1)), + 172: int16(-int32(1)), + 173: int16(SYMLOOP_MAX), + 174: int16(-Int32FromInt32(256) | Int32FromInt32(10)), + 175: int16(-int32(1)), + 176: int16(-int32(1)), + 177: int16(1), + 178: int16(-int32(1)), + 179: int16(-int32(1)), + 180: int16(HOST_NAME_MAX), + 181: int16(-int32(1)), + 182: int16(-int32(1)), + 183: int16(-int32(1)), + 184: int16(-int32(1)), + 235: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 236: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 237: int16(-int32(1)), + 238: int16(1), + 239: int16(-int32(1)), + 240: int16(-int32(1)), + 241: int16(-int32(1)), + 242: int16(-int32(1)), + 243: int16(-int32(1)), + 244: int16(-int32(1)), + 245: int16(-int32(1)), + 246: int16(-Int32FromInt32(256) | Int32FromInt32(10)), + 247: int16(-int32(1)), + 248: int16(-int32(1)), + 249: int16(-Int32FromInt32(256) | Int32FromInt32(12)), + 250: int16(-Int32FromInt32(256) | Int32FromInt32(13)), +} + +type Tcrypt_data = struct { + Finitialized int32 + F__buf [256]int8 +} + +func Xcrypt(tls *TLS, key uintptr, salt uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v salt=%v, (%v:)", tls, key, salt, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__crypt_r(tls, key, salt, uintptr(unsafe.Pointer(&_buf))) +} + +/* This buffer is sufficiently large for all + * currently-supported hash types. It needs to be updated if + * longer hashes are added. The cast to struct crypt_data * is + * purely to meet the public API requirements of the crypt_r + * function; the implementation of crypt_r uses the object + * purely as a char buffer. */ +var _buf [128]int8 + +const BF_N = 16 + +type Tlocale_t = uintptr + +type TBF_word = uint32 + +type TBF_word_signed = int32 + +/* Number of Blowfish rounds, this is also hardcoded into a few places */ + +type TBF_key = [18]TBF_word + +type TBF_ctx = struct { + FPS [0][1042]TBF_word + Fs struct { + FP TBF_key + FS [4][256]TBF_word + } +} + +// C documentation +// +// /* +// * Magic IV for 64 Blowfish encryptions that we do at the end. +// * The string is "OrpheanBeholderScryDoubt" on big-endian. +// */ +var _BF_magic_w = [6]TBF_word{ + 0: uint32(0x4F727068), + 1: uint32(0x65616E42), + 2: uint32(0x65686F6C), + 3: uint32(0x64657253), + 4: uint32(0x63727944), + 5: uint32(0x6F756274), +} + +// C documentation +// +// /* +// * P-box and S-box tables initialized with digits of Pi. +// */ +var _BF_init_state = *(*TBF_ctx)(unsafe.Pointer(&struct { + FP TBF_key + FS [4][256]TBF_word +}{ + FP: TBF_key{ + 0: uint32(0x243f6a88), + 1: uint32(0x85a308d3), + 2: uint32(0x13198a2e), + 3: uint32(0x03707344), + 4: uint32(0xa4093822), + 5: uint32(0x299f31d0), + 6: uint32(0x082efa98), + 7: uint32(0xec4e6c89), + 8: uint32(0x452821e6), + 9: uint32(0x38d01377), + 10: uint32(0xbe5466cf), + 11: uint32(0x34e90c6c), + 12: uint32(0xc0ac29b7), + 13: uint32(0xc97c50dd), + 14: uint32(0x3f84d5b5), + 15: uint32(0xb5470917), + 16: uint32(0x9216d5d9), + 17: uint32(0x8979fb1b), + }, + FS: [4][256]TBF_word{ + 0: { + 0: uint32(0xd1310ba6), + 1: uint32(0x98dfb5ac), + 2: uint32(0x2ffd72db), + 3: uint32(0xd01adfb7), + 4: uint32(0xb8e1afed), + 5: uint32(0x6a267e96), + 6: uint32(0xba7c9045), + 7: uint32(0xf12c7f99), + 8: uint32(0x24a19947), + 9: uint32(0xb3916cf7), + 10: uint32(0x0801f2e2), + 11: uint32(0x858efc16), + 12: uint32(0x636920d8), + 13: uint32(0x71574e69), + 14: uint32(0xa458fea3), + 15: uint32(0xf4933d7e), + 16: uint32(0x0d95748f), + 17: uint32(0x728eb658), + 18: uint32(0x718bcd58), + 19: uint32(0x82154aee), + 20: uint32(0x7b54a41d), + 21: uint32(0xc25a59b5), + 22: uint32(0x9c30d539), + 23: uint32(0x2af26013), + 24: uint32(0xc5d1b023), + 25: uint32(0x286085f0), + 26: uint32(0xca417918), + 27: uint32(0xb8db38ef), + 28: uint32(0x8e79dcb0), + 29: uint32(0x603a180e), + 30: uint32(0x6c9e0e8b), + 31: uint32(0xb01e8a3e), + 32: uint32(0xd71577c1), + 33: uint32(0xbd314b27), + 34: uint32(0x78af2fda), + 35: uint32(0x55605c60), + 36: uint32(0xe65525f3), + 37: uint32(0xaa55ab94), + 38: uint32(0x57489862), + 39: uint32(0x63e81440), + 40: uint32(0x55ca396a), + 41: uint32(0x2aab10b6), + 42: uint32(0xb4cc5c34), + 43: uint32(0x1141e8ce), + 44: uint32(0xa15486af), + 45: uint32(0x7c72e993), + 46: uint32(0xb3ee1411), + 47: uint32(0x636fbc2a), + 48: uint32(0x2ba9c55d), + 49: uint32(0x741831f6), + 50: uint32(0xce5c3e16), + 51: uint32(0x9b87931e), + 52: uint32(0xafd6ba33), + 53: uint32(0x6c24cf5c), + 54: uint32(0x7a325381), + 55: uint32(0x28958677), + 56: uint32(0x3b8f4898), + 57: uint32(0x6b4bb9af), + 58: uint32(0xc4bfe81b), + 59: uint32(0x66282193), + 60: uint32(0x61d809cc), + 61: uint32(0xfb21a991), + 62: uint32(0x487cac60), + 63: uint32(0x5dec8032), + 64: uint32(0xef845d5d), + 65: uint32(0xe98575b1), + 66: uint32(0xdc262302), + 67: uint32(0xeb651b88), + 68: uint32(0x23893e81), + 69: uint32(0xd396acc5), + 70: uint32(0x0f6d6ff3), + 71: uint32(0x83f44239), + 72: uint32(0x2e0b4482), + 73: uint32(0xa4842004), + 74: uint32(0x69c8f04a), + 75: uint32(0x9e1f9b5e), + 76: uint32(0x21c66842), + 77: uint32(0xf6e96c9a), + 78: uint32(0x670c9c61), + 79: uint32(0xabd388f0), + 80: uint32(0x6a51a0d2), + 81: uint32(0xd8542f68), + 82: uint32(0x960fa728), + 83: uint32(0xab5133a3), + 84: uint32(0x6eef0b6c), + 85: uint32(0x137a3be4), + 86: uint32(0xba3bf050), + 87: uint32(0x7efb2a98), + 88: uint32(0xa1f1651d), + 89: uint32(0x39af0176), + 90: uint32(0x66ca593e), + 91: uint32(0x82430e88), + 92: uint32(0x8cee8619), + 93: uint32(0x456f9fb4), + 94: uint32(0x7d84a5c3), + 95: uint32(0x3b8b5ebe), + 96: uint32(0xe06f75d8), + 97: uint32(0x85c12073), + 98: uint32(0x401a449f), + 99: uint32(0x56c16aa6), + 100: uint32(0x4ed3aa62), + 101: uint32(0x363f7706), + 102: uint32(0x1bfedf72), + 103: uint32(0x429b023d), + 104: uint32(0x37d0d724), + 105: uint32(0xd00a1248), + 106: uint32(0xdb0fead3), + 107: uint32(0x49f1c09b), + 108: uint32(0x075372c9), + 109: uint32(0x80991b7b), + 110: uint32(0x25d479d8), + 111: uint32(0xf6e8def7), + 112: uint32(0xe3fe501a), + 113: uint32(0xb6794c3b), + 114: uint32(0x976ce0bd), + 115: uint32(0x04c006ba), + 116: uint32(0xc1a94fb6), + 117: uint32(0x409f60c4), + 118: uint32(0x5e5c9ec2), + 119: uint32(0x196a2463), + 120: uint32(0x68fb6faf), + 121: uint32(0x3e6c53b5), + 122: uint32(0x1339b2eb), + 123: uint32(0x3b52ec6f), + 124: uint32(0x6dfc511f), + 125: uint32(0x9b30952c), + 126: uint32(0xcc814544), + 127: uint32(0xaf5ebd09), + 128: uint32(0xbee3d004), + 129: uint32(0xde334afd), + 130: uint32(0x660f2807), + 131: uint32(0x192e4bb3), + 132: uint32(0xc0cba857), + 133: uint32(0x45c8740f), + 134: uint32(0xd20b5f39), + 135: uint32(0xb9d3fbdb), + 136: uint32(0x5579c0bd), + 137: uint32(0x1a60320a), + 138: uint32(0xd6a100c6), + 139: uint32(0x402c7279), + 140: uint32(0x679f25fe), + 141: uint32(0xfb1fa3cc), + 142: uint32(0x8ea5e9f8), + 143: uint32(0xdb3222f8), + 144: uint32(0x3c7516df), + 145: uint32(0xfd616b15), + 146: uint32(0x2f501ec8), + 147: uint32(0xad0552ab), + 148: uint32(0x323db5fa), + 149: uint32(0xfd238760), + 150: uint32(0x53317b48), + 151: uint32(0x3e00df82), + 152: uint32(0x9e5c57bb), + 153: uint32(0xca6f8ca0), + 154: uint32(0x1a87562e), + 155: uint32(0xdf1769db), + 156: uint32(0xd542a8f6), + 157: uint32(0x287effc3), + 158: uint32(0xac6732c6), + 159: uint32(0x8c4f5573), + 160: uint32(0x695b27b0), + 161: uint32(0xbbca58c8), + 162: uint32(0xe1ffa35d), + 163: uint32(0xb8f011a0), + 164: uint32(0x10fa3d98), + 165: uint32(0xfd2183b8), + 166: uint32(0x4afcb56c), + 167: uint32(0x2dd1d35b), + 168: uint32(0x9a53e479), + 169: uint32(0xb6f84565), + 170: uint32(0xd28e49bc), + 171: uint32(0x4bfb9790), + 172: uint32(0xe1ddf2da), + 173: uint32(0xa4cb7e33), + 174: uint32(0x62fb1341), + 175: uint32(0xcee4c6e8), + 176: uint32(0xef20cada), + 177: uint32(0x36774c01), + 178: uint32(0xd07e9efe), + 179: uint32(0x2bf11fb4), + 180: uint32(0x95dbda4d), + 181: uint32(0xae909198), + 182: uint32(0xeaad8e71), + 183: uint32(0x6b93d5a0), + 184: uint32(0xd08ed1d0), + 185: uint32(0xafc725e0), + 186: uint32(0x8e3c5b2f), + 187: uint32(0x8e7594b7), + 188: uint32(0x8ff6e2fb), + 189: uint32(0xf2122b64), + 190: uint32(0x8888b812), + 191: uint32(0x900df01c), + 192: uint32(0x4fad5ea0), + 193: uint32(0x688fc31c), + 194: uint32(0xd1cff191), + 195: uint32(0xb3a8c1ad), + 196: uint32(0x2f2f2218), + 197: uint32(0xbe0e1777), + 198: uint32(0xea752dfe), + 199: uint32(0x8b021fa1), + 200: uint32(0xe5a0cc0f), + 201: uint32(0xb56f74e8), + 202: uint32(0x18acf3d6), + 203: uint32(0xce89e299), + 204: uint32(0xb4a84fe0), + 205: uint32(0xfd13e0b7), + 206: uint32(0x7cc43b81), + 207: uint32(0xd2ada8d9), + 208: uint32(0x165fa266), + 209: uint32(0x80957705), + 210: uint32(0x93cc7314), + 211: uint32(0x211a1477), + 212: uint32(0xe6ad2065), + 213: uint32(0x77b5fa86), + 214: uint32(0xc75442f5), + 215: uint32(0xfb9d35cf), + 216: uint32(0xebcdaf0c), + 217: uint32(0x7b3e89a0), + 218: uint32(0xd6411bd3), + 219: uint32(0xae1e7e49), + 220: uint32(0x00250e2d), + 221: uint32(0x2071b35e), + 222: uint32(0x226800bb), + 223: uint32(0x57b8e0af), + 224: uint32(0x2464369b), + 225: uint32(0xf009b91e), + 226: uint32(0x5563911d), + 227: uint32(0x59dfa6aa), + 228: uint32(0x78c14389), + 229: uint32(0xd95a537f), + 230: uint32(0x207d5ba2), + 231: uint32(0x02e5b9c5), + 232: uint32(0x83260376), + 233: uint32(0x6295cfa9), + 234: uint32(0x11c81968), + 235: uint32(0x4e734a41), + 236: uint32(0xb3472dca), + 237: uint32(0x7b14a94a), + 238: uint32(0x1b510052), + 239: uint32(0x9a532915), + 240: uint32(0xd60f573f), + 241: uint32(0xbc9bc6e4), + 242: uint32(0x2b60a476), + 243: uint32(0x81e67400), + 244: uint32(0x08ba6fb5), + 245: uint32(0x571be91f), + 246: uint32(0xf296ec6b), + 247: uint32(0x2a0dd915), + 248: uint32(0xb6636521), + 249: uint32(0xe7b9f9b6), + 250: uint32(0xff34052e), + 251: uint32(0xc5855664), + 252: uint32(0x53b02d5d), + 253: uint32(0xa99f8fa1), + 254: uint32(0x08ba4799), + 255: uint32(0x6e85076a), + }, + 1: { + 0: uint32(0x4b7a70e9), + 1: uint32(0xb5b32944), + 2: uint32(0xdb75092e), + 3: uint32(0xc4192623), + 4: uint32(0xad6ea6b0), + 5: uint32(0x49a7df7d), + 6: uint32(0x9cee60b8), + 7: uint32(0x8fedb266), + 8: uint32(0xecaa8c71), + 9: uint32(0x699a17ff), + 10: uint32(0x5664526c), + 11: uint32(0xc2b19ee1), + 12: uint32(0x193602a5), + 13: uint32(0x75094c29), + 14: uint32(0xa0591340), + 15: uint32(0xe4183a3e), + 16: uint32(0x3f54989a), + 17: uint32(0x5b429d65), + 18: uint32(0x6b8fe4d6), + 19: uint32(0x99f73fd6), + 20: uint32(0xa1d29c07), + 21: uint32(0xefe830f5), + 22: uint32(0x4d2d38e6), + 23: uint32(0xf0255dc1), + 24: uint32(0x4cdd2086), + 25: uint32(0x8470eb26), + 26: uint32(0x6382e9c6), + 27: uint32(0x021ecc5e), + 28: uint32(0x09686b3f), + 29: uint32(0x3ebaefc9), + 30: uint32(0x3c971814), + 31: uint32(0x6b6a70a1), + 32: uint32(0x687f3584), + 33: uint32(0x52a0e286), + 34: uint32(0xb79c5305), + 35: uint32(0xaa500737), + 36: uint32(0x3e07841c), + 37: uint32(0x7fdeae5c), + 38: uint32(0x8e7d44ec), + 39: uint32(0x5716f2b8), + 40: uint32(0xb03ada37), + 41: uint32(0xf0500c0d), + 42: uint32(0xf01c1f04), + 43: uint32(0x0200b3ff), + 44: uint32(0xae0cf51a), + 45: uint32(0x3cb574b2), + 46: uint32(0x25837a58), + 47: uint32(0xdc0921bd), + 48: uint32(0xd19113f9), + 49: uint32(0x7ca92ff6), + 50: uint32(0x94324773), + 51: uint32(0x22f54701), + 52: uint32(0x3ae5e581), + 53: uint32(0x37c2dadc), + 54: uint32(0xc8b57634), + 55: uint32(0x9af3dda7), + 56: uint32(0xa9446146), + 57: uint32(0x0fd0030e), + 58: uint32(0xecc8c73e), + 59: uint32(0xa4751e41), + 60: uint32(0xe238cd99), + 61: uint32(0x3bea0e2f), + 62: uint32(0x3280bba1), + 63: uint32(0x183eb331), + 64: uint32(0x4e548b38), + 65: uint32(0x4f6db908), + 66: uint32(0x6f420d03), + 67: uint32(0xf60a04bf), + 68: uint32(0x2cb81290), + 69: uint32(0x24977c79), + 70: uint32(0x5679b072), + 71: uint32(0xbcaf89af), + 72: uint32(0xde9a771f), + 73: uint32(0xd9930810), + 74: uint32(0xb38bae12), + 75: uint32(0xdccf3f2e), + 76: uint32(0x5512721f), + 77: uint32(0x2e6b7124), + 78: uint32(0x501adde6), + 79: uint32(0x9f84cd87), + 80: uint32(0x7a584718), + 81: uint32(0x7408da17), + 82: uint32(0xbc9f9abc), + 83: uint32(0xe94b7d8c), + 84: uint32(0xec7aec3a), + 85: uint32(0xdb851dfa), + 86: uint32(0x63094366), + 87: uint32(0xc464c3d2), + 88: uint32(0xef1c1847), + 89: uint32(0x3215d908), + 90: uint32(0xdd433b37), + 91: uint32(0x24c2ba16), + 92: uint32(0x12a14d43), + 93: uint32(0x2a65c451), + 94: uint32(0x50940002), + 95: uint32(0x133ae4dd), + 96: uint32(0x71dff89e), + 97: uint32(0x10314e55), + 98: uint32(0x81ac77d6), + 99: uint32(0x5f11199b), + 100: uint32(0x043556f1), + 101: uint32(0xd7a3c76b), + 102: uint32(0x3c11183b), + 103: uint32(0x5924a509), + 104: uint32(0xf28fe6ed), + 105: uint32(0x97f1fbfa), + 106: uint32(0x9ebabf2c), + 107: uint32(0x1e153c6e), + 108: uint32(0x86e34570), + 109: uint32(0xeae96fb1), + 110: uint32(0x860e5e0a), + 111: uint32(0x5a3e2ab3), + 112: uint32(0x771fe71c), + 113: uint32(0x4e3d06fa), + 114: uint32(0x2965dcb9), + 115: uint32(0x99e71d0f), + 116: uint32(0x803e89d6), + 117: uint32(0x5266c825), + 118: uint32(0x2e4cc978), + 119: uint32(0x9c10b36a), + 120: uint32(0xc6150eba), + 121: uint32(0x94e2ea78), + 122: uint32(0xa5fc3c53), + 123: uint32(0x1e0a2df4), + 124: uint32(0xf2f74ea7), + 125: uint32(0x361d2b3d), + 126: uint32(0x1939260f), + 127: uint32(0x19c27960), + 128: uint32(0x5223a708), + 129: uint32(0xf71312b6), + 130: uint32(0xebadfe6e), + 131: uint32(0xeac31f66), + 132: uint32(0xe3bc4595), + 133: uint32(0xa67bc883), + 134: uint32(0xb17f37d1), + 135: uint32(0x018cff28), + 136: uint32(0xc332ddef), + 137: uint32(0xbe6c5aa5), + 138: uint32(0x65582185), + 139: uint32(0x68ab9802), + 140: uint32(0xeecea50f), + 141: uint32(0xdb2f953b), + 142: uint32(0x2aef7dad), + 143: uint32(0x5b6e2f84), + 144: uint32(0x1521b628), + 145: uint32(0x29076170), + 146: uint32(0xecdd4775), + 147: uint32(0x619f1510), + 148: uint32(0x13cca830), + 149: uint32(0xeb61bd96), + 150: uint32(0x0334fe1e), + 151: uint32(0xaa0363cf), + 152: uint32(0xb5735c90), + 153: uint32(0x4c70a239), + 154: uint32(0xd59e9e0b), + 155: uint32(0xcbaade14), + 156: uint32(0xeecc86bc), + 157: uint32(0x60622ca7), + 158: uint32(0x9cab5cab), + 159: uint32(0xb2f3846e), + 160: uint32(0x648b1eaf), + 161: uint32(0x19bdf0ca), + 162: uint32(0xa02369b9), + 163: uint32(0x655abb50), + 164: uint32(0x40685a32), + 165: uint32(0x3c2ab4b3), + 166: uint32(0x319ee9d5), + 167: uint32(0xc021b8f7), + 168: uint32(0x9b540b19), + 169: uint32(0x875fa099), + 170: uint32(0x95f7997e), + 171: uint32(0x623d7da8), + 172: uint32(0xf837889a), + 173: uint32(0x97e32d77), + 174: uint32(0x11ed935f), + 175: uint32(0x16681281), + 176: uint32(0x0e358829), + 177: uint32(0xc7e61fd6), + 178: uint32(0x96dedfa1), + 179: uint32(0x7858ba99), + 180: uint32(0x57f584a5), + 181: uint32(0x1b227263), + 182: uint32(0x9b83c3ff), + 183: uint32(0x1ac24696), + 184: uint32(0xcdb30aeb), + 185: uint32(0x532e3054), + 186: uint32(0x8fd948e4), + 187: uint32(0x6dbc3128), + 188: uint32(0x58ebf2ef), + 189: uint32(0x34c6ffea), + 190: uint32(0xfe28ed61), + 191: uint32(0xee7c3c73), + 192: uint32(0x5d4a14d9), + 193: uint32(0xe864b7e3), + 194: uint32(0x42105d14), + 195: uint32(0x203e13e0), + 196: uint32(0x45eee2b6), + 197: uint32(0xa3aaabea), + 198: uint32(0xdb6c4f15), + 199: uint32(0xfacb4fd0), + 200: uint32(0xc742f442), + 201: uint32(0xef6abbb5), + 202: uint32(0x654f3b1d), + 203: uint32(0x41cd2105), + 204: uint32(0xd81e799e), + 205: uint32(0x86854dc7), + 206: uint32(0xe44b476a), + 207: uint32(0x3d816250), + 208: uint32(0xcf62a1f2), + 209: uint32(0x5b8d2646), + 210: uint32(0xfc8883a0), + 211: uint32(0xc1c7b6a3), + 212: uint32(0x7f1524c3), + 213: uint32(0x69cb7492), + 214: uint32(0x47848a0b), + 215: uint32(0x5692b285), + 216: uint32(0x095bbf00), + 217: uint32(0xad19489d), + 218: uint32(0x1462b174), + 219: uint32(0x23820e00), + 220: uint32(0x58428d2a), + 221: uint32(0x0c55f5ea), + 222: uint32(0x1dadf43e), + 223: uint32(0x233f7061), + 224: uint32(0x3372f092), + 225: uint32(0x8d937e41), + 226: uint32(0xd65fecf1), + 227: uint32(0x6c223bdb), + 228: uint32(0x7cde3759), + 229: uint32(0xcbee7460), + 230: uint32(0x4085f2a7), + 231: uint32(0xce77326e), + 232: uint32(0xa6078084), + 233: uint32(0x19f8509e), + 234: uint32(0xe8efd855), + 235: uint32(0x61d99735), + 236: uint32(0xa969a7aa), + 237: uint32(0xc50c06c2), + 238: uint32(0x5a04abfc), + 239: uint32(0x800bcadc), + 240: uint32(0x9e447a2e), + 241: uint32(0xc3453484), + 242: uint32(0xfdd56705), + 243: uint32(0x0e1e9ec9), + 244: uint32(0xdb73dbd3), + 245: uint32(0x105588cd), + 246: uint32(0x675fda79), + 247: uint32(0xe3674340), + 248: uint32(0xc5c43465), + 249: uint32(0x713e38d8), + 250: uint32(0x3d28f89e), + 251: uint32(0xf16dff20), + 252: uint32(0x153e21e7), + 253: uint32(0x8fb03d4a), + 254: uint32(0xe6e39f2b), + 255: uint32(0xdb83adf7), + }, + 2: { + 0: uint32(0xe93d5a68), + 1: uint32(0x948140f7), + 2: uint32(0xf64c261c), + 3: uint32(0x94692934), + 4: uint32(0x411520f7), + 5: uint32(0x7602d4f7), + 6: uint32(0xbcf46b2e), + 7: uint32(0xd4a20068), + 8: uint32(0xd4082471), + 9: uint32(0x3320f46a), + 10: uint32(0x43b7d4b7), + 11: uint32(0x500061af), + 12: uint32(0x1e39f62e), + 13: uint32(0x97244546), + 14: uint32(0x14214f74), + 15: uint32(0xbf8b8840), + 16: uint32(0x4d95fc1d), + 17: uint32(0x96b591af), + 18: uint32(0x70f4ddd3), + 19: uint32(0x66a02f45), + 20: uint32(0xbfbc09ec), + 21: uint32(0x03bd9785), + 22: uint32(0x7fac6dd0), + 23: uint32(0x31cb8504), + 24: uint32(0x96eb27b3), + 25: uint32(0x55fd3941), + 26: uint32(0xda2547e6), + 27: uint32(0xabca0a9a), + 28: uint32(0x28507825), + 29: uint32(0x530429f4), + 30: uint32(0x0a2c86da), + 31: uint32(0xe9b66dfb), + 32: uint32(0x68dc1462), + 33: uint32(0xd7486900), + 34: uint32(0x680ec0a4), + 35: uint32(0x27a18dee), + 36: uint32(0x4f3ffea2), + 37: uint32(0xe887ad8c), + 38: uint32(0xb58ce006), + 39: uint32(0x7af4d6b6), + 40: uint32(0xaace1e7c), + 41: uint32(0xd3375fec), + 42: uint32(0xce78a399), + 43: uint32(0x406b2a42), + 44: uint32(0x20fe9e35), + 45: uint32(0xd9f385b9), + 46: uint32(0xee39d7ab), + 47: uint32(0x3b124e8b), + 48: uint32(0x1dc9faf7), + 49: uint32(0x4b6d1856), + 50: uint32(0x26a36631), + 51: uint32(0xeae397b2), + 52: uint32(0x3a6efa74), + 53: uint32(0xdd5b4332), + 54: uint32(0x6841e7f7), + 55: uint32(0xca7820fb), + 56: uint32(0xfb0af54e), + 57: uint32(0xd8feb397), + 58: uint32(0x454056ac), + 59: uint32(0xba489527), + 60: uint32(0x55533a3a), + 61: uint32(0x20838d87), + 62: uint32(0xfe6ba9b7), + 63: uint32(0xd096954b), + 64: uint32(0x55a867bc), + 65: uint32(0xa1159a58), + 66: uint32(0xcca92963), + 67: uint32(0x99e1db33), + 68: uint32(0xa62a4a56), + 69: uint32(0x3f3125f9), + 70: uint32(0x5ef47e1c), + 71: uint32(0x9029317c), + 72: uint32(0xfdf8e802), + 73: uint32(0x04272f70), + 74: uint32(0x80bb155c), + 75: uint32(0x05282ce3), + 76: uint32(0x95c11548), + 77: uint32(0xe4c66d22), + 78: uint32(0x48c1133f), + 79: uint32(0xc70f86dc), + 80: uint32(0x07f9c9ee), + 81: uint32(0x41041f0f), + 82: uint32(0x404779a4), + 83: uint32(0x5d886e17), + 84: uint32(0x325f51eb), + 85: uint32(0xd59bc0d1), + 86: uint32(0xf2bcc18f), + 87: uint32(0x41113564), + 88: uint32(0x257b7834), + 89: uint32(0x602a9c60), + 90: uint32(0xdff8e8a3), + 91: uint32(0x1f636c1b), + 92: uint32(0x0e12b4c2), + 93: uint32(0x02e1329e), + 94: uint32(0xaf664fd1), + 95: uint32(0xcad18115), + 96: uint32(0x6b2395e0), + 97: uint32(0x333e92e1), + 98: uint32(0x3b240b62), + 99: uint32(0xeebeb922), + 100: uint32(0x85b2a20e), + 101: uint32(0xe6ba0d99), + 102: uint32(0xde720c8c), + 103: uint32(0x2da2f728), + 104: uint32(0xd0127845), + 105: uint32(0x95b794fd), + 106: uint32(0x647d0862), + 107: uint32(0xe7ccf5f0), + 108: uint32(0x5449a36f), + 109: uint32(0x877d48fa), + 110: uint32(0xc39dfd27), + 111: uint32(0xf33e8d1e), + 112: uint32(0x0a476341), + 113: uint32(0x992eff74), + 114: uint32(0x3a6f6eab), + 115: uint32(0xf4f8fd37), + 116: uint32(0xa812dc60), + 117: uint32(0xa1ebddf8), + 118: uint32(0x991be14c), + 119: uint32(0xdb6e6b0d), + 120: uint32(0xc67b5510), + 121: uint32(0x6d672c37), + 122: uint32(0x2765d43b), + 123: uint32(0xdcd0e804), + 124: uint32(0xf1290dc7), + 125: uint32(0xcc00ffa3), + 126: uint32(0xb5390f92), + 127: uint32(0x690fed0b), + 128: uint32(0x667b9ffb), + 129: uint32(0xcedb7d9c), + 130: uint32(0xa091cf0b), + 131: uint32(0xd9155ea3), + 132: uint32(0xbb132f88), + 133: uint32(0x515bad24), + 134: uint32(0x7b9479bf), + 135: uint32(0x763bd6eb), + 136: uint32(0x37392eb3), + 137: uint32(0xcc115979), + 138: uint32(0x8026e297), + 139: uint32(0xf42e312d), + 140: uint32(0x6842ada7), + 141: uint32(0xc66a2b3b), + 142: uint32(0x12754ccc), + 143: uint32(0x782ef11c), + 144: uint32(0x6a124237), + 145: uint32(0xb79251e7), + 146: uint32(0x06a1bbe6), + 147: uint32(0x4bfb6350), + 148: uint32(0x1a6b1018), + 149: uint32(0x11caedfa), + 150: uint32(0x3d25bdd8), + 151: uint32(0xe2e1c3c9), + 152: uint32(0x44421659), + 153: uint32(0x0a121386), + 154: uint32(0xd90cec6e), + 155: uint32(0xd5abea2a), + 156: uint32(0x64af674e), + 157: uint32(0xda86a85f), + 158: uint32(0xbebfe988), + 159: uint32(0x64e4c3fe), + 160: uint32(0x9dbc8057), + 161: uint32(0xf0f7c086), + 162: uint32(0x60787bf8), + 163: uint32(0x6003604d), + 164: uint32(0xd1fd8346), + 165: uint32(0xf6381fb0), + 166: uint32(0x7745ae04), + 167: uint32(0xd736fccc), + 168: uint32(0x83426b33), + 169: uint32(0xf01eab71), + 170: uint32(0xb0804187), + 171: uint32(0x3c005e5f), + 172: uint32(0x77a057be), + 173: uint32(0xbde8ae24), + 174: uint32(0x55464299), + 175: uint32(0xbf582e61), + 176: uint32(0x4e58f48f), + 177: uint32(0xf2ddfda2), + 178: uint32(0xf474ef38), + 179: uint32(0x8789bdc2), + 180: uint32(0x5366f9c3), + 181: uint32(0xc8b38e74), + 182: uint32(0xb475f255), + 183: uint32(0x46fcd9b9), + 184: uint32(0x7aeb2661), + 185: uint32(0x8b1ddf84), + 186: uint32(0x846a0e79), + 187: uint32(0x915f95e2), + 188: uint32(0x466e598e), + 189: uint32(0x20b45770), + 190: uint32(0x8cd55591), + 191: uint32(0xc902de4c), + 192: uint32(0xb90bace1), + 193: uint32(0xbb8205d0), + 194: uint32(0x11a86248), + 195: uint32(0x7574a99e), + 196: uint32(0xb77f19b6), + 197: uint32(0xe0a9dc09), + 198: uint32(0x662d09a1), + 199: uint32(0xc4324633), + 200: uint32(0xe85a1f02), + 201: uint32(0x09f0be8c), + 202: uint32(0x4a99a025), + 203: uint32(0x1d6efe10), + 204: uint32(0x1ab93d1d), + 205: uint32(0x0ba5a4df), + 206: uint32(0xa186f20f), + 207: uint32(0x2868f169), + 208: uint32(0xdcb7da83), + 209: uint32(0x573906fe), + 210: uint32(0xa1e2ce9b), + 211: uint32(0x4fcd7f52), + 212: uint32(0x50115e01), + 213: uint32(0xa70683fa), + 214: uint32(0xa002b5c4), + 215: uint32(0x0de6d027), + 216: uint32(0x9af88c27), + 217: uint32(0x773f8641), + 218: uint32(0xc3604c06), + 219: uint32(0x61a806b5), + 220: uint32(0xf0177a28), + 221: uint32(0xc0f586e0), + 222: uint32(0x006058aa), + 223: uint32(0x30dc7d62), + 224: uint32(0x11e69ed7), + 225: uint32(0x2338ea63), + 226: uint32(0x53c2dd94), + 227: uint32(0xc2c21634), + 228: uint32(0xbbcbee56), + 229: uint32(0x90bcb6de), + 230: uint32(0xebfc7da1), + 231: uint32(0xce591d76), + 232: uint32(0x6f05e409), + 233: uint32(0x4b7c0188), + 234: uint32(0x39720a3d), + 235: uint32(0x7c927c24), + 236: uint32(0x86e3725f), + 237: uint32(0x724d9db9), + 238: uint32(0x1ac15bb4), + 239: uint32(0xd39eb8fc), + 240: uint32(0xed545578), + 241: uint32(0x08fca5b5), + 242: uint32(0xd83d7cd3), + 243: uint32(0x4dad0fc4), + 244: uint32(0x1e50ef5e), + 245: uint32(0xb161e6f8), + 246: uint32(0xa28514d9), + 247: uint32(0x6c51133c), + 248: uint32(0x6fd5c7e7), + 249: uint32(0x56e14ec4), + 250: uint32(0x362abfce), + 251: uint32(0xddc6c837), + 252: uint32(0xd79a3234), + 253: uint32(0x92638212), + 254: uint32(0x670efa8e), + 255: uint32(0x406000e0), + }, + 3: { + 0: uint32(0x3a39ce37), + 1: uint32(0xd3faf5cf), + 2: uint32(0xabc27737), + 3: uint32(0x5ac52d1b), + 4: uint32(0x5cb0679e), + 5: uint32(0x4fa33742), + 6: uint32(0xd3822740), + 7: uint32(0x99bc9bbe), + 8: uint32(0xd5118e9d), + 9: uint32(0xbf0f7315), + 10: uint32(0xd62d1c7e), + 11: uint32(0xc700c47b), + 12: uint32(0xb78c1b6b), + 13: uint32(0x21a19045), + 14: uint32(0xb26eb1be), + 15: uint32(0x6a366eb4), + 16: uint32(0x5748ab2f), + 17: uint32(0xbc946e79), + 18: uint32(0xc6a376d2), + 19: uint32(0x6549c2c8), + 20: uint32(0x530ff8ee), + 21: uint32(0x468dde7d), + 22: uint32(0xd5730a1d), + 23: uint32(0x4cd04dc6), + 24: uint32(0x2939bbdb), + 25: uint32(0xa9ba4650), + 26: uint32(0xac9526e8), + 27: uint32(0xbe5ee304), + 28: uint32(0xa1fad5f0), + 29: uint32(0x6a2d519a), + 30: uint32(0x63ef8ce2), + 31: uint32(0x9a86ee22), + 32: uint32(0xc089c2b8), + 33: uint32(0x43242ef6), + 34: uint32(0xa51e03aa), + 35: uint32(0x9cf2d0a4), + 36: uint32(0x83c061ba), + 37: uint32(0x9be96a4d), + 38: uint32(0x8fe51550), + 39: uint32(0xba645bd6), + 40: uint32(0x2826a2f9), + 41: uint32(0xa73a3ae1), + 42: uint32(0x4ba99586), + 43: uint32(0xef5562e9), + 44: uint32(0xc72fefd3), + 45: uint32(0xf752f7da), + 46: uint32(0x3f046f69), + 47: uint32(0x77fa0a59), + 48: uint32(0x80e4a915), + 49: uint32(0x87b08601), + 50: uint32(0x9b09e6ad), + 51: uint32(0x3b3ee593), + 52: uint32(0xe990fd5a), + 53: uint32(0x9e34d797), + 54: uint32(0x2cf0b7d9), + 55: uint32(0x022b8b51), + 56: uint32(0x96d5ac3a), + 57: uint32(0x017da67d), + 58: uint32(0xd1cf3ed6), + 59: uint32(0x7c7d2d28), + 60: uint32(0x1f9f25cf), + 61: uint32(0xadf2b89b), + 62: uint32(0x5ad6b472), + 63: uint32(0x5a88f54c), + 64: uint32(0xe029ac71), + 65: uint32(0xe019a5e6), + 66: uint32(0x47b0acfd), + 67: uint32(0xed93fa9b), + 68: uint32(0xe8d3c48d), + 69: uint32(0x283b57cc), + 70: uint32(0xf8d56629), + 71: uint32(0x79132e28), + 72: uint32(0x785f0191), + 73: uint32(0xed756055), + 74: uint32(0xf7960e44), + 75: uint32(0xe3d35e8c), + 76: uint32(0x15056dd4), + 77: uint32(0x88f46dba), + 78: uint32(0x03a16125), + 79: uint32(0x0564f0bd), + 80: uint32(0xc3eb9e15), + 81: uint32(0x3c9057a2), + 82: uint32(0x97271aec), + 83: uint32(0xa93a072a), + 84: uint32(0x1b3f6d9b), + 85: uint32(0x1e6321f5), + 86: uint32(0xf59c66fb), + 87: uint32(0x26dcf319), + 88: uint32(0x7533d928), + 89: uint32(0xb155fdf5), + 90: uint32(0x03563482), + 91: uint32(0x8aba3cbb), + 92: uint32(0x28517711), + 93: uint32(0xc20ad9f8), + 94: uint32(0xabcc5167), + 95: uint32(0xccad925f), + 96: uint32(0x4de81751), + 97: uint32(0x3830dc8e), + 98: uint32(0x379d5862), + 99: uint32(0x9320f991), + 100: uint32(0xea7a90c2), + 101: uint32(0xfb3e7bce), + 102: uint32(0x5121ce64), + 103: uint32(0x774fbe32), + 104: uint32(0xa8b6e37e), + 105: uint32(0xc3293d46), + 106: uint32(0x48de5369), + 107: uint32(0x6413e680), + 108: uint32(0xa2ae0810), + 109: uint32(0xdd6db224), + 110: uint32(0x69852dfd), + 111: uint32(0x09072166), + 112: uint32(0xb39a460a), + 113: uint32(0x6445c0dd), + 114: uint32(0x586cdecf), + 115: uint32(0x1c20c8ae), + 116: uint32(0x5bbef7dd), + 117: uint32(0x1b588d40), + 118: uint32(0xccd2017f), + 119: uint32(0x6bb4e3bb), + 120: uint32(0xdda26a7e), + 121: uint32(0x3a59ff45), + 122: uint32(0x3e350a44), + 123: uint32(0xbcb4cdd5), + 124: uint32(0x72eacea8), + 125: uint32(0xfa6484bb), + 126: uint32(0x8d6612ae), + 127: uint32(0xbf3c6f47), + 128: uint32(0xd29be463), + 129: uint32(0x542f5d9e), + 130: uint32(0xaec2771b), + 131: uint32(0xf64e6370), + 132: uint32(0x740e0d8d), + 133: uint32(0xe75b1357), + 134: uint32(0xf8721671), + 135: uint32(0xaf537d5d), + 136: uint32(0x4040cb08), + 137: uint32(0x4eb4e2cc), + 138: uint32(0x34d2466a), + 139: uint32(0x0115af84), + 140: uint32(0xe1b00428), + 141: uint32(0x95983a1d), + 142: uint32(0x06b89fb4), + 143: uint32(0xce6ea048), + 144: uint32(0x6f3f3b82), + 145: uint32(0x3520ab82), + 146: uint32(0x011a1d4b), + 147: uint32(0x277227f8), + 148: uint32(0x611560b1), + 149: uint32(0xe7933fdc), + 150: uint32(0xbb3a792b), + 151: uint32(0x344525bd), + 152: uint32(0xa08839e1), + 153: uint32(0x51ce794b), + 154: uint32(0x2f32c9b7), + 155: uint32(0xa01fbac9), + 156: uint32(0xe01cc87e), + 157: uint32(0xbcc7d1f6), + 158: uint32(0xcf0111c3), + 159: uint32(0xa1e8aac7), + 160: uint32(0x1a908749), + 161: uint32(0xd44fbd9a), + 162: uint32(0xd0dadecb), + 163: uint32(0xd50ada38), + 164: uint32(0x0339c32a), + 165: uint32(0xc6913667), + 166: uint32(0x8df9317c), + 167: uint32(0xe0b12b4f), + 168: uint32(0xf79e59b7), + 169: uint32(0x43f5bb3a), + 170: uint32(0xf2d519ff), + 171: uint32(0x27d9459c), + 172: uint32(0xbf97222c), + 173: uint32(0x15e6fc2a), + 174: uint32(0x0f91fc71), + 175: uint32(0x9b941525), + 176: uint32(0xfae59361), + 177: uint32(0xceb69ceb), + 178: uint32(0xc2a86459), + 179: uint32(0x12baa8d1), + 180: uint32(0xb6c1075e), + 181: uint32(0xe3056a0c), + 182: uint32(0x10d25065), + 183: uint32(0xcb03a442), + 184: uint32(0xe0ec6e0e), + 185: uint32(0x1698db3b), + 186: uint32(0x4c98a0be), + 187: uint32(0x3278e964), + 188: uint32(0x9f1f9532), + 189: uint32(0xe0d392df), + 190: uint32(0xd3a0342b), + 191: uint32(0x8971f21e), + 192: uint32(0x1b0a7441), + 193: uint32(0x4ba3348c), + 194: uint32(0xc5be7120), + 195: uint32(0xc37632d8), + 196: uint32(0xdf359f8d), + 197: uint32(0x9b992f2e), + 198: uint32(0xe60b6f47), + 199: uint32(0x0fe3f11d), + 200: uint32(0xe54cda54), + 201: uint32(0x1edad891), + 202: uint32(0xce6279cf), + 203: uint32(0xcd3e7e6f), + 204: uint32(0x1618b166), + 205: uint32(0xfd2c1d05), + 206: uint32(0x848fd2c5), + 207: uint32(0xf6fb2299), + 208: uint32(0xf523f357), + 209: uint32(0xa6327623), + 210: uint32(0x93a83531), + 211: uint32(0x56cccd02), + 212: uint32(0xacf08162), + 213: uint32(0x5a75ebb5), + 214: uint32(0x6e163697), + 215: uint32(0x88d273cc), + 216: uint32(0xde966292), + 217: uint32(0x81b949d0), + 218: uint32(0x4c50901b), + 219: uint32(0x71c65614), + 220: uint32(0xe6c6c7bd), + 221: uint32(0x327a140a), + 222: uint32(0x45e1d006), + 223: uint32(0xc3f27b9a), + 224: uint32(0xc9aa53fd), + 225: uint32(0x62a80f00), + 226: uint32(0xbb25bfe2), + 227: uint32(0x35bdd2f6), + 228: uint32(0x71126905), + 229: uint32(0xb2040222), + 230: uint32(0xb6cbcf7c), + 231: uint32(0xcd769c2b), + 232: uint32(0x53113ec0), + 233: uint32(0x1640e3d3), + 234: uint32(0x38abbd60), + 235: uint32(0x2547adf0), + 236: uint32(0xba38209c), + 237: uint32(0xf746ce76), + 238: uint32(0x77afa1c5), + 239: uint32(0x20756060), + 240: uint32(0x85cbfe4e), + 241: uint32(0x8ae88dd8), + 242: uint32(0x7aaaf9b0), + 243: uint32(0x4cf9aa7e), + 244: uint32(0x1948c25c), + 245: uint32(0x02fb8a8c), + 246: uint32(0x01c36ae4), + 247: uint32(0xd6ebe1f9), + 248: uint32(0x90d4f869), + 249: uint32(0xa65cdea0), + 250: uint32(0x3f09252d), + 251: uint32(0xc208e69f), + 252: uint32(0xb74e6132), + 253: uint32(0xce77e25b), + 254: uint32(0x578fdfe3), + 255: uint32(0x3ac372e6), + }, + }, +})) + +var _BF_itoa64 = [65]uint8{'.', '/', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9'} + +var _BF_atoi64 = [96]uint8{ + 0: uint8(64), + 1: uint8(64), + 2: uint8(64), + 3: uint8(64), + 4: uint8(64), + 5: uint8(64), + 6: uint8(64), + 7: uint8(64), + 8: uint8(64), + 9: uint8(64), + 10: uint8(64), + 11: uint8(64), + 12: uint8(64), + 13: uint8(64), + 15: uint8(1), + 16: uint8(54), + 17: uint8(55), + 18: uint8(56), + 19: uint8(57), + 20: uint8(58), + 21: uint8(59), + 22: uint8(60), + 23: uint8(61), + 24: uint8(62), + 25: uint8(63), + 26: uint8(64), + 27: uint8(64), + 28: uint8(64), + 29: uint8(64), + 30: uint8(64), + 31: uint8(64), + 32: uint8(64), + 33: uint8(2), + 34: uint8(3), + 35: uint8(4), + 36: uint8(5), + 37: uint8(6), + 38: uint8(7), + 39: uint8(8), + 40: uint8(9), + 41: uint8(10), + 42: uint8(11), + 43: uint8(12), + 44: uint8(13), + 45: uint8(14), + 46: uint8(15), + 47: uint8(16), + 48: uint8(17), + 49: uint8(18), + 50: uint8(19), + 51: uint8(20), + 52: uint8(21), + 53: uint8(22), + 54: uint8(23), + 55: uint8(24), + 56: uint8(25), + 57: uint8(26), + 58: uint8(27), + 59: uint8(64), + 60: uint8(64), + 61: uint8(64), + 62: uint8(64), + 63: uint8(64), + 64: uint8(64), + 65: uint8(28), + 66: uint8(29), + 67: uint8(30), + 68: uint8(31), + 69: uint8(32), + 70: uint8(33), + 71: uint8(34), + 72: uint8(35), + 73: uint8(36), + 74: uint8(37), + 75: uint8(38), + 76: uint8(39), + 77: uint8(40), + 78: uint8(41), + 79: uint8(42), + 80: uint8(43), + 81: uint8(44), + 82: uint8(45), + 83: uint8(46), + 84: uint8(47), + 85: uint8(48), + 86: uint8(49), + 87: uint8(50), + 88: uint8(51), + 89: uint8(52), + 90: uint8(53), + 91: uint8(64), + 92: uint8(64), + 93: uint8(64), + 94: uint8(64), + 95: uint8(64), +} + +func _BF_decode(tls *TLS, dst uintptr, src uintptr, size int32) (r int32) { + var c1, c2, c3, c4, tmp uint32 + var dptr, end, sptr, v1 uintptr + _, _, _, _, _, _, _, _, _ = c1, c2, c3, c4, dptr, end, sptr, tmp, v1 + dptr = dst + end = dptr + uintptr(size) + sptr = src + for cond := true; cond; cond = dptr < end { + v1 = sptr + sptr = sptr + 1 + tmp = uint32(**(**uint8)(__ccgo_up(v1))) + tmp = tmp - uint32(0x20) + if tmp >= uint32(0x60) { + return -int32(1) + } + tmp = uint32(_BF_atoi64[tmp]) + if tmp > uint32(63) { + return -int32(1) + } + c1 = tmp + v1 = sptr + sptr = sptr + 1 + tmp = uint32(**(**uint8)(__ccgo_up(v1))) + tmp = tmp - uint32(0x20) + if tmp >= uint32(0x60) { + return -int32(1) + } + tmp = uint32(_BF_atoi64[tmp]) + if tmp > uint32(63) { + return -int32(1) + } + c2 = tmp + v1 = dptr + dptr = dptr + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(c1<>int32(4)) + if dptr >= end { + break + } + v1 = sptr + sptr = sptr + 1 + tmp = uint32(**(**uint8)(__ccgo_up(v1))) + tmp = tmp - uint32(0x20) + if tmp >= uint32(0x60) { + return -int32(1) + } + tmp = uint32(_BF_atoi64[tmp]) + if tmp > uint32(63) { + return -int32(1) + } + c3 = tmp + v1 = dptr + dptr = dptr + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(c2&uint32(0x0F)<>int32(2)) + if dptr >= end { + break + } + v1 = sptr + sptr = sptr + 1 + tmp = uint32(**(**uint8)(__ccgo_up(v1))) + tmp = tmp - uint32(0x20) + if tmp >= uint32(0x60) { + return -int32(1) + } + tmp = uint32(_BF_atoi64[tmp]) + if tmp > uint32(63) { + return -int32(1) + } + c4 = tmp + v1 = dptr + dptr = dptr + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(c3&uint32(0x03)<>int32(2)] + c1 = c1 & uint32(0x03) << int32(4) + if sptr >= end { + v1 = dptr + dptr = dptr + 1 + **(**uint8)(__ccgo_up(v1)) = _BF_itoa64[c1] + break + } + v1 = sptr + sptr = sptr + 1 + c2 = uint32(**(**uint8)(__ccgo_up(v1))) + c1 = c1 | c2>>int32(4) + v1 = dptr + dptr = dptr + 1 + **(**uint8)(__ccgo_up(v1)) = _BF_itoa64[c1] + c1 = c2 & uint32(0x0f) << int32(2) + if sptr >= end { + v1 = dptr + dptr = dptr + 1 + **(**uint8)(__ccgo_up(v1)) = _BF_itoa64[c1] + break + } + v1 = sptr + sptr = sptr + 1 + c2 = uint32(**(**uint8)(__ccgo_up(v1))) + c1 = c1 | c2>>int32(6) + v1 = dptr + dptr = dptr + 1 + **(**uint8)(__ccgo_up(v1)) = _BF_itoa64[c1] + v1 = dptr + dptr = dptr + 1 + **(**uint8)(__ccgo_up(v1)) = _BF_itoa64[c2&uint32(0x3f)] + } +} + +func _BF_swap(tls *TLS, x uintptr, count int32) { + var tmp TBF_word + var v1, v2 int32 + var v4 uintptr + _, _, _, _ = tmp, v1, v2, v4 + v1 = int32(1) + if *(*int8)(unsafe.Pointer(&v1)) != 0 { + for { + tmp = **(**TBF_word)(__ccgo_up(x)) + tmp = tmp<>Int32FromInt32(16) + v4 = x + x += 4 + **(**TBF_word)(__ccgo_up(v4)) = tmp&uint32(0x00FF00FF)<>Int32FromInt32(8)&uint32(0x00FF00FF) + goto _3 + _3: + ; + count = count - 1 + v2 = count + if !(v2 != 0) { + break + } + } + } +} + +func _BF_encrypt(tls *TLS, ctx uintptr, L TBF_word, R TBF_word, start uintptr, end uintptr) (r TBF_word) { + var i int32 + var ptr, v2 uintptr + var tmp1, tmp2, tmp3, tmp4 TBF_word + _, _, _, _, _, _, _ = i, ptr, tmp1, tmp2, tmp3, tmp4, v2 + ptr = start + for cond := true; cond; cond = ptr < end { + L = L ^ **(**TBF_word)(__ccgo_up(ctx)) + i = 0 + for { + if !(i < int32(16)) { + break + } + tmp1 = L & uint32(0xFF) + tmp2 = L >> int32(8) + tmp2 = tmp2 & uint32(0xFF) + tmp3 = L >> int32(16) + tmp3 = tmp3 & uint32(0xFF) + tmp4 = L >> int32(24) + tmp1 = **(**TBF_word)(__ccgo_up(ctx + 72 + 3*1024 + uintptr(tmp1)*4)) + tmp2 = **(**TBF_word)(__ccgo_up(ctx + 72 + 2*1024 + uintptr(tmp2)*4)) + tmp3 = **(**TBF_word)(__ccgo_up(ctx + 72 + 1*1024 + uintptr(tmp3)*4)) + tmp3 = tmp3 + **(**TBF_word)(__ccgo_up(ctx + 72 + uintptr(tmp4)*4)) + tmp3 = tmp3 ^ tmp2 + R = R ^ **(**TBF_word)(__ccgo_up(ctx + uintptr(i+int32(1))*4)) + tmp3 = tmp3 + tmp1 + R = R ^ tmp3 + tmp1 = R & uint32(0xFF) + tmp2 = R >> int32(8) + tmp2 = tmp2 & uint32(0xFF) + tmp3 = R >> int32(16) + tmp3 = tmp3 & uint32(0xFF) + tmp4 = R >> int32(24) + tmp1 = **(**TBF_word)(__ccgo_up(ctx + 72 + 3*1024 + uintptr(tmp1)*4)) + tmp2 = **(**TBF_word)(__ccgo_up(ctx + 72 + 2*1024 + uintptr(tmp2)*4)) + tmp3 = **(**TBF_word)(__ccgo_up(ctx + 72 + 1*1024 + uintptr(tmp3)*4)) + tmp3 = tmp3 + **(**TBF_word)(__ccgo_up(ctx + 72 + uintptr(tmp4)*4)) + tmp3 = tmp3 ^ tmp2 + L = L ^ **(**TBF_word)(__ccgo_up(ctx + uintptr(i+int32(1)+int32(1))*4)) + tmp3 = tmp3 + tmp1 + L = L ^ tmp3 + goto _1 + _1: + ; + i = i + int32(2) + } + tmp4 = R + R = L + L = tmp4 ^ **(**TBF_word)(__ccgo_up(ctx + uintptr(Int32FromInt32(BF_N)+Int32FromInt32(1))*4)) + v2 = ptr + ptr += 4 + **(**TBF_word)(__ccgo_up(v2)) = L + v2 = ptr + ptr += 4 + **(**TBF_word)(__ccgo_up(v2)) = R + } + return L +} + +func _BF_set_key(tls *TLS, key uintptr, expanded uintptr, initial uintptr, flags uint8) { + bp := tls.Alloc(16) + defer tls.Free(16) + var bug, i, j uint32 + var diff, safety, sign, v1 TBF_word + var ptr uintptr + var _ /* tmp at bp+0 */ [2]TBF_word + _, _, _, _, _, _, _, _ = bug, diff, i, j, ptr, safety, sign, v1 + ptr = key + /* + * There was a sign extension bug in older revisions of this function. While + * we would have liked to simply fix the bug and move on, we have to provide + * a backwards compatibility feature (essentially the bug) for some systems and + * a safety measure for some others. The latter is needed because for certain + * multiple inputs to the buggy algorithm there exist easily found inputs to + * the correct algorithm that produce the same hash. Thus, we optionally + * deviate from the correct algorithm just enough to avoid such collisions. + * While the bug itself affected the majority of passwords containing + * characters with the 8th bit set (although only a percentage of those in a + * collision-producing way), the anti-collision safety measure affects + * only a subset of passwords containing the '\xff' character (not even all of + * those passwords, just some of them). This character is not found in valid + * UTF-8 sequences and is rarely used in popular 8-bit character encodings. + * Thus, the safety measure is unlikely to cause much annoyance, and is a + * reasonable tradeoff to use when authenticating against existing hashes that + * are not reliably known to have been computed with the correct algorithm. + * + * We use an approach that tries to minimize side-channel leaks of password + * information - that is, we mostly use fixed-cost bitwise operations instead + * of branches or table lookups. (One conditional branch based on password + * length remains. It is not part of the bug aftermath, though, and is + * difficult and possibly unreasonable to avoid given the use of C strings by + * the caller, which results in similar timing leaks anyway.) + * + * For actual implementation, we set an array index in the variable "bug" + * (0 means no bug, 1 means sign extension bug emulation) and a flag in the + * variable "safety" (bit 16 is set when the safety measure is requested). + * Valid combinations of settings are: + * + * Prefix "$2a$": bug = 0, safety = 0x10000 + * Prefix "$2b$": bug = 0, safety = 0 + * Prefix "$2x$": bug = 1, safety = 0 + * Prefix "$2y$": bug = 0, safety = 0 + */ + bug = Uint32FromInt32(Int32FromUint8(flags) & int32(1)) + safety = uint32(flags) & uint32(2) << int32(15) + v1 = Uint32FromInt32(0) + diff = v1 + sign = v1 + i = uint32(0) + for { + if !(i < Uint32FromInt32(Int32FromInt32(BF_N)+Int32FromInt32(2))) { + break + } + v1 = Uint32FromInt32(0) + (**(**[2]TBF_word)(__ccgo_up(bp)))[int32(1)] = v1 + (**(**[2]TBF_word)(__ccgo_up(bp)))[0] = v1 + j = uint32(0) + for { + if !(j < uint32(4)) { + break + } + **(**TBF_word)(__ccgo_up(bp)) <<= uint32(8) + **(**TBF_word)(__ccgo_up(bp)) |= uint32(Uint8FromInt8(**(**int8)(__ccgo_up(ptr)))) /* correct */ + **(**TBF_word)(__ccgo_up(bp + 1*4)) <<= uint32(8) + **(**TBF_word)(__ccgo_up(bp + 1*4)) |= Uint32FromInt8(int8(**(**int8)(__ccgo_up(ptr)))) /* bug */ + /* + * Sign extension in the first char has no effect - nothing to overwrite yet, + * and those extra 24 bits will be fully shifted out of the 32-bit word. For + * chars 2, 3, 4 in each four-char block, we set bit 7 of "sign" if sign + * extension in tmp[1] occurs. Once this flag is set, it remains set. + */ + if j != 0 { + sign = sign | (**(**[2]TBF_word)(__ccgo_up(bp)))[int32(1)]&uint32(0x80) + } + if !(**(**int8)(__ccgo_up(ptr)) != 0) { + ptr = key + } else { + ptr = ptr + 1 + } + goto _4 + _4: + ; + j = j + 1 + } + diff = diff | ((**(**[2]TBF_word)(__ccgo_up(bp)))[0] ^ (**(**[2]TBF_word)(__ccgo_up(bp)))[int32(1)]) /* Non-zero on any differences */ + **(**TBF_word)(__ccgo_up(expanded + uintptr(i)*4)) = (**(**[2]TBF_word)(__ccgo_up(bp)))[bug] + **(**TBF_word)(__ccgo_up(initial + uintptr(i)*4)) = **(**TBF_word)(__ccgo_up(uintptr(unsafe.Pointer(&_BF_init_state)) + uintptr(i)*4)) ^ (**(**[2]TBF_word)(__ccgo_up(bp)))[bug] + goto _2 + _2: + ; + i = i + 1 + } + /* + * At this point, "diff" is zero iff the correct and buggy algorithms produced + * exactly the same result. If so and if "sign" is non-zero, which indicates + * that there was a non-benign sign extension, this means that we have a + * collision between the correctly computed hash for this password and a set of + * passwords that could be supplied to the buggy algorithm. Our safety measure + * is meant to protect from such many-buggy to one-correct collisions, by + * deviating from the correct algorithm in such cases. Let's check for this. + */ + diff = diff | diff>>int32(16) /* still zero iff exact match */ + diff = diff & uint32(0xffff) /* ditto */ + diff = diff + uint32(0xffff) /* bit 16 set iff "diff" was non-zero (on non-match) */ + sign = sign << uint32(9) /* move the non-benign sign extension flag to bit 16 */ + sign = sign & (^diff & safety) /* action needed? */ + /* + * If we have determined that we need to deviate from the correct algorithm, + * flip bit 16 in initial expanded key. (The choice of 16 is arbitrary, but + * let's stick to it now. It came out of the approach we used above, and it's + * not any worse than any other choice we could make.) + * + * It is crucial that we don't do the same to the expanded key used in the main + * Eksblowfish loop. By doing it to only one of these two, we deviate from a + * state that could be directly specified by a password to the buggy algorithm + * (and to the fully correct one as well, but that's a side-effect). + */ + **(**TBF_word)(__ccgo_up(initial)) ^= sign +} + +var _flags_by_subtype = [26]uint8{ + 0: uint8(2), + 1: uint8(4), + 23: uint8(1), + 24: uint8(4), +} + +func _BF_crypt(tls *TLS, key uintptr, setting uintptr, output uintptr, min TBF_word) (r uintptr) { + bp := tls.Alloc(4272) + defer tls.Free(4272) + var L, L1, R, count, tmp1, tmp2, tmp3, tmp4, v1 TBF_word + var done, i int32 + var ptr uintptr + var _ /* LR at bp+4264 */ [2]TBF_word + var _ /* data at bp+0 */ struct { + Fctx TBF_ctx + Fexpanded_key TBF_key + Fbinary struct { + Foutput [0][6]TBF_word + Fsalt [4]TBF_word + F__ccgo_pad2 [8]byte + } + } + _, _, _, _, _, _, _, _, _, _, _, _ = L, L1, R, count, done, i, ptr, tmp1, tmp2, tmp3, tmp4, v1 + if int32(**(**int8)(__ccgo_up(setting))) != int32('$') || int32(**(**int8)(__ccgo_up(setting + 1))) != int32('2') || Uint32FromInt32(int32(**(**int8)(__ccgo_up(setting + 2)))-int32('a')) > uint32(25) || !(_flags_by_subtype[int32(**(**int8)(__ccgo_up(setting + 2)))-int32('a')] != 0) || int32(**(**int8)(__ccgo_up(setting + 3))) != int32('$') || Uint32FromInt32(int32(**(**int8)(__ccgo_up(setting + 4)))-int32('0')) > uint32(1) || Uint32FromInt32(int32(**(**int8)(__ccgo_up(setting + 5)))-int32('0')) > uint32(9) || int32(**(**int8)(__ccgo_up(setting + 6))) != int32('$') { + return UintptrFromInt32(0) + } + count = Uint32FromInt32(1) << ((int32(**(**int8)(__ccgo_up(setting + 4)))-int32('0'))*int32(10) + (int32(**(**int8)(__ccgo_up(setting + 5))) - int32('0'))) + if count < min || _BF_decode(tls, bp+4240, setting+7, int32(16)) != 0 { + return UintptrFromInt32(0) + } + _BF_swap(tls, bp+4240, int32(4)) + _BF_set_key(tls, key, bp+4168, bp, _flags_by_subtype[int32(**(**int8)(__ccgo_up(setting + 2)))-int32('a')]) + Xmemcpy(tls, bp+72, uintptr(unsafe.Pointer(&_BF_init_state))+72, uint32(4096)) + L = uint32(0) + R = uint32(0) + ptr = bp + for cond := true; cond; cond = int32(1) != 0 { + L = _BF_encrypt(tls, bp, L^**(**TBF_word)(__ccgo_up(bp + 4240)), R^**(**TBF_word)(__ccgo_up(bp + 4240 + 1*4)), ptr, ptr) + R = **(**TBF_word)(__ccgo_up(ptr + UintptrFromInt32(1)*4)) + ptr = ptr + uintptr(2)*4 + if ptr >= bp+uintptr(Int32FromInt32(BF_N)+Int32FromInt32(2)+Int32FromInt32(4)*Int32FromInt32(0x100))*4 { + break + } + L = _BF_encrypt(tls, bp, L^**(**TBF_word)(__ccgo_up(bp + 4240 + 2*4)), R^**(**TBF_word)(__ccgo_up(bp + 4240 + 3*4)), ptr, ptr) + R = **(**TBF_word)(__ccgo_up(ptr + UintptrFromInt32(1)*4)) + ptr = ptr + uintptr(2)*4 + } + for { + i = 0 + for { + if !(i < Int32FromInt32(BF_N)+Int32FromInt32(2)) { + break + } + **(**TBF_word)(__ccgo_up(bp + uintptr(i)*4)) ^= **(**TBF_word)(__ccgo_up(bp + 4168 + uintptr(i)*4)) + **(**TBF_word)(__ccgo_up(bp + uintptr(i+int32(1))*4)) ^= **(**TBF_word)(__ccgo_up(bp + 4168 + uintptr(i+int32(1))*4)) + goto _3 + _3: + ; + i = i + int32(2) + } + done = 0 + for cond := true; cond; cond = int32(1) != 0 { + _BF_encrypt(tls, bp, uint32(0), uint32(0), bp, bp+uintptr(Int32FromInt32(BF_N)+Int32FromInt32(2)+Int32FromInt32(4)*Int32FromInt32(0x100))*4) + if done != 0 { + break + } + done = int32(1) + tmp1 = **(**TBF_word)(__ccgo_up(bp + 4240)) + tmp2 = **(**TBF_word)(__ccgo_up(bp + 4240 + 1*4)) + tmp3 = **(**TBF_word)(__ccgo_up(bp + 4240 + 2*4)) + tmp4 = **(**TBF_word)(__ccgo_up(bp + 4240 + 3*4)) + i = 0 + for { + if !(i < int32(BF_N)) { + break + } + **(**TBF_word)(__ccgo_up(bp + uintptr(i)*4)) ^= tmp1 + **(**TBF_word)(__ccgo_up(bp + uintptr(i+int32(1))*4)) ^= tmp2 + **(**TBF_word)(__ccgo_up(bp + uintptr(i+int32(2))*4)) ^= tmp3 + **(**TBF_word)(__ccgo_up(bp + uintptr(i+int32(3))*4)) ^= tmp4 + goto _4 + _4: + ; + i = i + int32(4) + } + **(**TBF_word)(__ccgo_up(bp + 16*4)) ^= tmp1 + **(**TBF_word)(__ccgo_up(bp + 17*4)) ^= tmp2 + } + goto _2 + _2: + ; + count = count - 1 + v1 = count + if !(v1 != 0) { + break + } + } + i = 0 + for { + if !(i < int32(6)) { + break + } + L1 = _BF_magic_w[i] + (**(**[2]TBF_word)(__ccgo_up(bp + 4264)))[int32(1)] = _BF_magic_w[i+int32(1)] + count = uint32(64) + for { + L1 = _BF_encrypt(tls, bp, L1, (**(**[2]TBF_word)(__ccgo_up(bp + 4264)))[int32(1)], bp+4264, bp+4264) + goto _7 + _7: + ; + count = count - 1 + v1 = count + if !(v1 != 0) { + break + } + } + **(**TBF_word)(__ccgo_up(bp + 4240 + uintptr(i)*4)) = L1 + **(**TBF_word)(__ccgo_up(bp + 4240 + uintptr(i+int32(1))*4)) = (**(**[2]TBF_word)(__ccgo_up(bp + 4264)))[int32(1)] + goto _5 + _5: + ; + i = i + int32(2) + } + Xmemcpy(tls, output, setting, Uint32FromInt32(Int32FromInt32(7)+Int32FromInt32(22)-Int32FromInt32(1))) + **(**int8)(__ccgo_up(output + uintptr(Int32FromInt32(7)+Int32FromInt32(22)-Int32FromInt32(1)))) = Int8FromUint8(_BF_itoa64[Int32FromUint8(_BF_atoi64[int32(**(**int8)(__ccgo_up(setting + uintptr(Int32FromInt32(7)+Int32FromInt32(22)-Int32FromInt32(1)))))-int32(0x20)])&int32(0x30)]) + /* This has to be bug-compatible with the original implementation, so + * only encode 23 of the 24 bytes. :-) */ + _BF_swap(tls, bp+4240, int32(6)) + _BF_encode(tls, output+uintptr(Int32FromInt32(7)+Int32FromInt32(22)), bp+4240, int32(23)) + **(**int8)(__ccgo_up(output + uintptr(Int32FromInt32(7)+Int32FromInt32(22)+Int32FromInt32(31)))) = int8('\000') + return output +} + +// C documentation +// +// /* +// * Please preserve the runtime self-test. It serves two purposes at once: +// * +// * 1. We really can't afford the risk of producing incompatible hashes e.g. +// * when there's something like gcc bug 26587 again, whereas an application or +// * library integrating this code might not also integrate our external tests or +// * it might not run them after every build. Even if it does, the miscompile +// * might only occur on the production build, but not on a testing build (such +// * as because of different optimization settings). It is painful to recover +// * from incorrectly-computed hashes - merely fixing whatever broke is not +// * enough. Thus, a proactive measure like this self-test is needed. +// * +// * 2. We don't want to leave sensitive data from our actual password hash +// * computation on the stack or in registers. Previous revisions of the code +// * would do explicit cleanups, but simply running the self-test after hash +// * computation is more reliable. +// * +// * The performance cost of this quick self-test is around 0.6% at the "$2a$08" +// * setting. +// */ +func X__crypt_blowfish(tls *TLS, key uintptr, setting uintptr, output uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v setting=%v output=%v, (%v:)", tls, key, setting, output, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(384) + defer tls.Free(384) + var flags uint32 + var k, p, retval, test_hash, test_key, test_setting uintptr + var ok int32 + var _ /* ae at bp+96 */ TBF_key + var _ /* ai at bp+168 */ TBF_key + var _ /* buf at bp+0 */ struct { + Fs [30]int8 + Fo [63]int8 + } + var _ /* ye at bp+240 */ TBF_key + var _ /* yi at bp+312 */ TBF_key + _, _, _, _, _, _, _, _ = flags, k, ok, p, retval, test_hash, test_key, test_setting + test_key = __ccgo_ts + 18 + test_setting = __ccgo_ts + 28 + test_hash = uintptr(unsafe.Pointer(&_test_hashes)) + /* Hash the supplied password */ + retval = _BF_crypt(tls, key, setting, output, uint32(16)) + /* + * Do a quick self-test. It is important that we make both calls to BF_crypt() + * from the same scope such that they likely use the same stack locations, + * which makes the second call overwrite the first call's sensitive data on the + * stack and makes it more likely that any alignment related issues would be + * detected by the self-test. + */ + Xmemcpy(tls, bp, test_setting, uint32(30)) + if retval != 0 { + flags = uint32(_flags_by_subtype[int32(**(**int8)(__ccgo_up(setting + 2)))-int32('a')]) + test_hash = uintptr(unsafe.Pointer(&_test_hashes)) + uintptr(flags&uint32(1))*34 + **(**int8)(__ccgo_up(bp + 2)) = **(**int8)(__ccgo_up(setting + 2)) + } + Xmemset(tls, bp+30, int32(0x55), uint32(63)) + **(**int8)(__ccgo_up(bp + 30 + uintptr(Uint32FromInt64(63)-Uint32FromInt32(1)))) = 0 + p = _BF_crypt(tls, test_key, bp, bp+30, uint32(1)) + ok = BoolInt32(p == bp+30 && !(Xmemcmp(tls, p, bp, Uint32FromInt32(Int32FromInt32(7)+Int32FromInt32(22))) != 0) && !(Xmemcmp(tls, p+uintptr(Int32FromInt32(7)+Int32FromInt32(22)), test_hash, Uint32FromInt32(Int32FromInt32(31)+Int32FromInt32(1)+Int32FromInt32(1)+Int32FromInt32(1))) != 0)) + k = __ccgo_ts + 58 + _BF_set_key(tls, k, bp+96, bp+168, uint8(2)) /* $2a$ */ + _BF_set_key(tls, k, bp+240, bp+312, uint8(4)) /* $2y$ */ + **(**TBF_word)(__ccgo_up(bp + 168)) ^= uint32(0x10000) /* undo the safety (for comparison) */ + ok = BoolInt32(ok != 0 && (**(**TBF_key)(__ccgo_up(bp + 168)))[0] == uint32(0xdb9c59bc) && (**(**TBF_key)(__ccgo_up(bp + 240)))[int32(17)] == uint32(0x33343500) && !(Xmemcmp(tls, bp+96, bp+240, uint32(72)) != 0) && !(Xmemcmp(tls, bp+168, bp+312, uint32(72)) != 0)) + if ok != 0 && retval != 0 { + return retval + } + return __ccgo_ts + 70 +} + +var _test_hashes = [2][34]int8{ + 0: {'i', '1', 'D', '7', '0', '9', 'v', 'f', 'a', 'm', 'u', 'l', 'i', 'm', 'l', 'G', 'c', 'q', '0', 'q', 'q', '3', 'U', 'v', 'u', 'U', 'a', 's', 'v', 'E', 'a', 0, 'U'}, + 1: {'V', 'U', 'r', 'P', 'm', 'X', 'D', '6', 'q', '/', 'n', 'V', 'S', 'S', 'p', '7', 'p', 'N', 'D', 'h', 'C', 'R', '9', '0', '7', '1', 'I', 'f', 'I', 'R', 'e', 0, 'U'}, +} + +const _PASSWORD_EFMT1 = 95 + +type Texpanded_key = struct { + Fl [16]Tuint32_t + Fr [16]Tuint32_t +} + +var _key_shifts = [16]uint8{ + 0: uint8(1), + 1: uint8(1), + 2: uint8(2), + 3: uint8(2), + 4: uint8(2), + 5: uint8(2), + 6: uint8(2), + 7: uint8(2), + 8: uint8(1), + 9: uint8(2), + 10: uint8(2), + 11: uint8(2), + 12: uint8(2), + 13: uint8(2), + 14: uint8(2), + 15: uint8(1), +} + +var _psbox = [8][64]Tuint32_t{ + 0: { + 0: uint32(0x00808200), + 2: uint32(0x00008000), + 3: uint32(0x00808202), + 4: uint32(0x00808002), + 5: uint32(0x00008202), + 6: uint32(0x00000002), + 7: uint32(0x00008000), + 8: uint32(0x00000200), + 9: uint32(0x00808200), + 10: uint32(0x00808202), + 11: uint32(0x00000200), + 12: uint32(0x00800202), + 13: uint32(0x00808002), + 14: uint32(0x00800000), + 15: uint32(0x00000002), + 16: uint32(0x00000202), + 17: uint32(0x00800200), + 18: uint32(0x00800200), + 19: uint32(0x00008200), + 20: uint32(0x00008200), + 21: uint32(0x00808000), + 22: uint32(0x00808000), + 23: uint32(0x00800202), + 24: uint32(0x00008002), + 25: uint32(0x00800002), + 26: uint32(0x00800002), + 27: uint32(0x00008002), + 29: uint32(0x00000202), + 30: uint32(0x00008202), + 31: uint32(0x00800000), + 32: uint32(0x00008000), + 33: uint32(0x00808202), + 34: uint32(0x00000002), + 35: uint32(0x00808000), + 36: uint32(0x00808200), + 37: uint32(0x00800000), + 38: uint32(0x00800000), + 39: uint32(0x00000200), + 40: uint32(0x00808002), + 41: uint32(0x00008000), + 42: uint32(0x00008200), + 43: uint32(0x00800002), + 44: uint32(0x00000200), + 45: uint32(0x00000002), + 46: uint32(0x00800202), + 47: uint32(0x00008202), + 48: uint32(0x00808202), + 49: uint32(0x00008002), + 50: uint32(0x00808000), + 51: uint32(0x00800202), + 52: uint32(0x00800002), + 53: uint32(0x00000202), + 54: uint32(0x00008202), + 55: uint32(0x00808200), + 56: uint32(0x00000202), + 57: uint32(0x00800200), + 58: uint32(0x00800200), + 60: uint32(0x00008002), + 61: uint32(0x00008200), + 63: uint32(0x00808002), + }, + 1: { + 0: uint32(0x40084010), + 1: uint32(0x40004000), + 2: uint32(0x00004000), + 3: uint32(0x00084010), + 4: uint32(0x00080000), + 5: uint32(0x00000010), + 6: uint32(0x40080010), + 7: uint32(0x40004010), + 8: uint32(0x40000010), + 9: uint32(0x40084010), + 10: uint32(0x40084000), + 11: uint32(0x40000000), + 12: uint32(0x40004000), + 13: uint32(0x00080000), + 14: uint32(0x00000010), + 15: uint32(0x40080010), + 16: uint32(0x00084000), + 17: uint32(0x00080010), + 18: uint32(0x40004010), + 20: uint32(0x40000000), + 21: uint32(0x00004000), + 22: uint32(0x00084010), + 23: uint32(0x40080000), + 24: uint32(0x00080010), + 25: uint32(0x40000010), + 27: uint32(0x00084000), + 28: uint32(0x00004010), + 29: uint32(0x40084000), + 30: uint32(0x40080000), + 31: uint32(0x00004010), + 33: uint32(0x00084010), + 34: uint32(0x40080010), + 35: uint32(0x00080000), + 36: uint32(0x40004010), + 37: uint32(0x40080000), + 38: uint32(0x40084000), + 39: uint32(0x00004000), + 40: uint32(0x40080000), + 41: uint32(0x40004000), + 42: uint32(0x00000010), + 43: uint32(0x40084010), + 44: uint32(0x00084010), + 45: uint32(0x00000010), + 46: uint32(0x00004000), + 47: uint32(0x40000000), + 48: uint32(0x00004010), + 49: uint32(0x40084000), + 50: uint32(0x00080000), + 51: uint32(0x40000010), + 52: uint32(0x00080010), + 53: uint32(0x40004010), + 54: uint32(0x40000010), + 55: uint32(0x00080010), + 56: uint32(0x00084000), + 58: uint32(0x40004000), + 59: uint32(0x00004010), + 60: uint32(0x40000000), + 61: uint32(0x40080010), + 62: uint32(0x40084010), + 63: uint32(0x00084000), + }, + 2: { + 0: uint32(0x00000104), + 1: uint32(0x04010100), + 3: uint32(0x04010004), + 4: uint32(0x04000100), + 6: uint32(0x00010104), + 7: uint32(0x04000100), + 8: uint32(0x00010004), + 9: uint32(0x04000004), + 10: uint32(0x04000004), + 11: uint32(0x00010000), + 12: uint32(0x04010104), + 13: uint32(0x00010004), + 14: uint32(0x04010000), + 15: uint32(0x00000104), + 16: uint32(0x04000000), + 17: uint32(0x00000004), + 18: uint32(0x04010100), + 19: uint32(0x00000100), + 20: uint32(0x00010100), + 21: uint32(0x04010000), + 22: uint32(0x04010004), + 23: uint32(0x00010104), + 24: uint32(0x04000104), + 25: uint32(0x00010100), + 26: uint32(0x00010000), + 27: uint32(0x04000104), + 28: uint32(0x00000004), + 29: uint32(0x04010104), + 30: uint32(0x00000100), + 31: uint32(0x04000000), + 32: uint32(0x04010100), + 33: uint32(0x04000000), + 34: uint32(0x00010004), + 35: uint32(0x00000104), + 36: uint32(0x00010000), + 37: uint32(0x04010100), + 38: uint32(0x04000100), + 40: uint32(0x00000100), + 41: uint32(0x00010004), + 42: uint32(0x04010104), + 43: uint32(0x04000100), + 44: uint32(0x04000004), + 45: uint32(0x00000100), + 47: uint32(0x04010004), + 48: uint32(0x04000104), + 49: uint32(0x00010000), + 50: uint32(0x04000000), + 51: uint32(0x04010104), + 52: uint32(0x00000004), + 53: uint32(0x00010104), + 54: uint32(0x00010100), + 55: uint32(0x04000004), + 56: uint32(0x04010000), + 57: uint32(0x04000104), + 58: uint32(0x00000104), + 59: uint32(0x04010000), + 60: uint32(0x00010104), + 61: uint32(0x00000004), + 62: uint32(0x04010004), + 63: uint32(0x00010100), + }, + 3: { + 0: uint32(0x80401000), + 1: uint32(0x80001040), + 2: uint32(0x80001040), + 3: uint32(0x00000040), + 4: uint32(0x00401040), + 5: uint32(0x80400040), + 6: uint32(0x80400000), + 7: uint32(0x80001000), + 9: uint32(0x00401000), + 10: uint32(0x00401000), + 11: uint32(0x80401040), + 12: uint32(0x80000040), + 14: uint32(0x00400040), + 15: uint32(0x80400000), + 16: uint32(0x80000000), + 17: uint32(0x00001000), + 18: uint32(0x00400000), + 19: uint32(0x80401000), + 20: uint32(0x00000040), + 21: uint32(0x00400000), + 22: uint32(0x80001000), + 23: uint32(0x00001040), + 24: uint32(0x80400040), + 25: uint32(0x80000000), + 26: uint32(0x00001040), + 27: uint32(0x00400040), + 28: uint32(0x00001000), + 29: uint32(0x00401040), + 30: uint32(0x80401040), + 31: uint32(0x80000040), + 32: uint32(0x00400040), + 33: uint32(0x80400000), + 34: uint32(0x00401000), + 35: uint32(0x80401040), + 36: uint32(0x80000040), + 39: uint32(0x00401000), + 40: uint32(0x00001040), + 41: uint32(0x00400040), + 42: uint32(0x80400040), + 43: uint32(0x80000000), + 44: uint32(0x80401000), + 45: uint32(0x80001040), + 46: uint32(0x80001040), + 47: uint32(0x00000040), + 48: uint32(0x80401040), + 49: uint32(0x80000040), + 50: uint32(0x80000000), + 51: uint32(0x00001000), + 52: uint32(0x80400000), + 53: uint32(0x80001000), + 54: uint32(0x00401040), + 55: uint32(0x80400040), + 56: uint32(0x80001000), + 57: uint32(0x00001040), + 58: uint32(0x00400000), + 59: uint32(0x80401000), + 60: uint32(0x00000040), + 61: uint32(0x00400000), + 62: uint32(0x00001000), + 63: uint32(0x00401040), + }, + 4: { + 0: uint32(0x00000080), + 1: uint32(0x01040080), + 2: uint32(0x01040000), + 3: uint32(0x21000080), + 4: uint32(0x00040000), + 5: uint32(0x00000080), + 6: uint32(0x20000000), + 7: uint32(0x01040000), + 8: uint32(0x20040080), + 9: uint32(0x00040000), + 10: uint32(0x01000080), + 11: uint32(0x20040080), + 12: uint32(0x21000080), + 13: uint32(0x21040000), + 14: uint32(0x00040080), + 15: uint32(0x20000000), + 16: uint32(0x01000000), + 17: uint32(0x20040000), + 18: uint32(0x20040000), + 20: uint32(0x20000080), + 21: uint32(0x21040080), + 22: uint32(0x21040080), + 23: uint32(0x01000080), + 24: uint32(0x21040000), + 25: uint32(0x20000080), + 27: uint32(0x21000000), + 28: uint32(0x01040080), + 29: uint32(0x01000000), + 30: uint32(0x21000000), + 31: uint32(0x00040080), + 32: uint32(0x00040000), + 33: uint32(0x21000080), + 34: uint32(0x00000080), + 35: uint32(0x01000000), + 36: uint32(0x20000000), + 37: uint32(0x01040000), + 38: uint32(0x21000080), + 39: uint32(0x20040080), + 40: uint32(0x01000080), + 41: uint32(0x20000000), + 42: uint32(0x21040000), + 43: uint32(0x01040080), + 44: uint32(0x20040080), + 45: uint32(0x00000080), + 46: uint32(0x01000000), + 47: uint32(0x21040000), + 48: uint32(0x21040080), + 49: uint32(0x00040080), + 50: uint32(0x21000000), + 51: uint32(0x21040080), + 52: uint32(0x01040000), + 54: uint32(0x20040000), + 55: uint32(0x21000000), + 56: uint32(0x00040080), + 57: uint32(0x01000080), + 58: uint32(0x20000080), + 59: uint32(0x00040000), + 61: uint32(0x20040000), + 62: uint32(0x01040080), + 63: uint32(0x20000080), + }, + 5: { + 0: uint32(0x10000008), + 1: uint32(0x10200000), + 2: uint32(0x00002000), + 3: uint32(0x10202008), + 4: uint32(0x10200000), + 5: uint32(0x00000008), + 6: uint32(0x10202008), + 7: uint32(0x00200000), + 8: uint32(0x10002000), + 9: uint32(0x00202008), + 10: uint32(0x00200000), + 11: uint32(0x10000008), + 12: uint32(0x00200008), + 13: uint32(0x10002000), + 14: uint32(0x10000000), + 15: uint32(0x00002008), + 17: uint32(0x00200008), + 18: uint32(0x10002008), + 19: uint32(0x00002000), + 20: uint32(0x00202000), + 21: uint32(0x10002008), + 22: uint32(0x00000008), + 23: uint32(0x10200008), + 24: uint32(0x10200008), + 26: uint32(0x00202008), + 27: uint32(0x10202000), + 28: uint32(0x00002008), + 29: uint32(0x00202000), + 30: uint32(0x10202000), + 31: uint32(0x10000000), + 32: uint32(0x10002000), + 33: uint32(0x00000008), + 34: uint32(0x10200008), + 35: uint32(0x00202000), + 36: uint32(0x10202008), + 37: uint32(0x00200000), + 38: uint32(0x00002008), + 39: uint32(0x10000008), + 40: uint32(0x00200000), + 41: uint32(0x10002000), + 42: uint32(0x10000000), + 43: uint32(0x00002008), + 44: uint32(0x10000008), + 45: uint32(0x10202008), + 46: uint32(0x00202000), + 47: uint32(0x10200000), + 48: uint32(0x00202008), + 49: uint32(0x10202000), + 51: uint32(0x10200008), + 52: uint32(0x00000008), + 53: uint32(0x00002000), + 54: uint32(0x10200000), + 55: uint32(0x00202008), + 56: uint32(0x00002000), + 57: uint32(0x00200008), + 58: uint32(0x10002008), + 60: uint32(0x10202000), + 61: uint32(0x10000000), + 62: uint32(0x00200008), + 63: uint32(0x10002008), + }, + 6: { + 0: uint32(0x00100000), + 1: uint32(0x02100001), + 2: uint32(0x02000401), + 4: uint32(0x00000400), + 5: uint32(0x02000401), + 6: uint32(0x00100401), + 7: uint32(0x02100400), + 8: uint32(0x02100401), + 9: uint32(0x00100000), + 11: uint32(0x02000001), + 12: uint32(0x00000001), + 13: uint32(0x02000000), + 14: uint32(0x02100001), + 15: uint32(0x00000401), + 16: uint32(0x02000400), + 17: uint32(0x00100401), + 18: uint32(0x00100001), + 19: uint32(0x02000400), + 20: uint32(0x02000001), + 21: uint32(0x02100000), + 22: uint32(0x02100400), + 23: uint32(0x00100001), + 24: uint32(0x02100000), + 25: uint32(0x00000400), + 26: uint32(0x00000401), + 27: uint32(0x02100401), + 28: uint32(0x00100400), + 29: uint32(0x00000001), + 30: uint32(0x02000000), + 31: uint32(0x00100400), + 32: uint32(0x02000000), + 33: uint32(0x00100400), + 34: uint32(0x00100000), + 35: uint32(0x02000401), + 36: uint32(0x02000401), + 37: uint32(0x02100001), + 38: uint32(0x02100001), + 39: uint32(0x00000001), + 40: uint32(0x00100001), + 41: uint32(0x02000000), + 42: uint32(0x02000400), + 43: uint32(0x00100000), + 44: uint32(0x02100400), + 45: uint32(0x00000401), + 46: uint32(0x00100401), + 47: uint32(0x02100400), + 48: uint32(0x00000401), + 49: uint32(0x02000001), + 50: uint32(0x02100401), + 51: uint32(0x02100000), + 52: uint32(0x00100400), + 54: uint32(0x00000001), + 55: uint32(0x02100401), + 57: uint32(0x00100401), + 58: uint32(0x02100000), + 59: uint32(0x00000400), + 60: uint32(0x02000001), + 61: uint32(0x02000400), + 62: uint32(0x00000400), + 63: uint32(0x00100001), + }, + 7: { + 0: uint32(0x08000820), + 1: uint32(0x00000800), + 2: uint32(0x00020000), + 3: uint32(0x08020820), + 4: uint32(0x08000000), + 5: uint32(0x08000820), + 6: uint32(0x00000020), + 7: uint32(0x08000000), + 8: uint32(0x00020020), + 9: uint32(0x08020000), + 10: uint32(0x08020820), + 11: uint32(0x00020800), + 12: uint32(0x08020800), + 13: uint32(0x00020820), + 14: uint32(0x00000800), + 15: uint32(0x00000020), + 16: uint32(0x08020000), + 17: uint32(0x08000020), + 18: uint32(0x08000800), + 19: uint32(0x00000820), + 20: uint32(0x00020800), + 21: uint32(0x00020020), + 22: uint32(0x08020020), + 23: uint32(0x08020800), + 24: uint32(0x00000820), + 27: uint32(0x08020020), + 28: uint32(0x08000020), + 29: uint32(0x08000800), + 30: uint32(0x00020820), + 31: uint32(0x00020000), + 32: uint32(0x00020820), + 33: uint32(0x00020000), + 34: uint32(0x08020800), + 35: uint32(0x00000800), + 36: uint32(0x00000020), + 37: uint32(0x08020020), + 38: uint32(0x00000800), + 39: uint32(0x00020820), + 40: uint32(0x08000800), + 41: uint32(0x00000020), + 42: uint32(0x08000020), + 43: uint32(0x08020000), + 44: uint32(0x08020020), + 45: uint32(0x08000000), + 46: uint32(0x00020000), + 47: uint32(0x08000820), + 49: uint32(0x08020820), + 50: uint32(0x00020020), + 51: uint32(0x08000020), + 52: uint32(0x08020000), + 53: uint32(0x08000800), + 54: uint32(0x08000820), + 56: uint32(0x08020820), + 57: uint32(0x00020800), + 58: uint32(0x00020800), + 59: uint32(0x00000820), + 60: uint32(0x00000820), + 61: uint32(0x00020020), + 62: uint32(0x08000000), + 63: uint32(0x08020800), + }, +} +var _ip_maskl = [16][16]Tuint32_t{ + 0: { + 1: uint32(0x00010000), + 3: uint32(0x00010000), + 4: uint32(0x01000000), + 5: uint32(0x01010000), + 6: uint32(0x01000000), + 7: uint32(0x01010000), + 9: uint32(0x00010000), + 11: uint32(0x00010000), + 12: uint32(0x01000000), + 13: uint32(0x01010000), + 14: uint32(0x01000000), + 15: uint32(0x01010000), + }, + 1: { + 1: uint32(0x00000001), + 3: uint32(0x00000001), + 4: uint32(0x00000100), + 5: uint32(0x00000101), + 6: uint32(0x00000100), + 7: uint32(0x00000101), + 9: uint32(0x00000001), + 11: uint32(0x00000001), + 12: uint32(0x00000100), + 13: uint32(0x00000101), + 14: uint32(0x00000100), + 15: uint32(0x00000101), + }, + 2: { + 1: uint32(0x00020000), + 3: uint32(0x00020000), + 4: uint32(0x02000000), + 5: uint32(0x02020000), + 6: uint32(0x02000000), + 7: uint32(0x02020000), + 9: uint32(0x00020000), + 11: uint32(0x00020000), + 12: uint32(0x02000000), + 13: uint32(0x02020000), + 14: uint32(0x02000000), + 15: uint32(0x02020000), + }, + 3: { + 1: uint32(0x00000002), + 3: uint32(0x00000002), + 4: uint32(0x00000200), + 5: uint32(0x00000202), + 6: uint32(0x00000200), + 7: uint32(0x00000202), + 9: uint32(0x00000002), + 11: uint32(0x00000002), + 12: uint32(0x00000200), + 13: uint32(0x00000202), + 14: uint32(0x00000200), + 15: uint32(0x00000202), + }, + 4: { + 1: uint32(0x00040000), + 3: uint32(0x00040000), + 4: uint32(0x04000000), + 5: uint32(0x04040000), + 6: uint32(0x04000000), + 7: uint32(0x04040000), + 9: uint32(0x00040000), + 11: uint32(0x00040000), + 12: uint32(0x04000000), + 13: uint32(0x04040000), + 14: uint32(0x04000000), + 15: uint32(0x04040000), + }, + 5: { + 1: uint32(0x00000004), + 3: uint32(0x00000004), + 4: uint32(0x00000400), + 5: uint32(0x00000404), + 6: uint32(0x00000400), + 7: uint32(0x00000404), + 9: uint32(0x00000004), + 11: uint32(0x00000004), + 12: uint32(0x00000400), + 13: uint32(0x00000404), + 14: uint32(0x00000400), + 15: uint32(0x00000404), + }, + 6: { + 1: uint32(0x00080000), + 3: uint32(0x00080000), + 4: uint32(0x08000000), + 5: uint32(0x08080000), + 6: uint32(0x08000000), + 7: uint32(0x08080000), + 9: uint32(0x00080000), + 11: uint32(0x00080000), + 12: uint32(0x08000000), + 13: uint32(0x08080000), + 14: uint32(0x08000000), + 15: uint32(0x08080000), + }, + 7: { + 1: uint32(0x00000008), + 3: uint32(0x00000008), + 4: uint32(0x00000800), + 5: uint32(0x00000808), + 6: uint32(0x00000800), + 7: uint32(0x00000808), + 9: uint32(0x00000008), + 11: uint32(0x00000008), + 12: uint32(0x00000800), + 13: uint32(0x00000808), + 14: uint32(0x00000800), + 15: uint32(0x00000808), + }, + 8: { + 1: uint32(0x00100000), + 3: uint32(0x00100000), + 4: uint32(0x10000000), + 5: uint32(0x10100000), + 6: uint32(0x10000000), + 7: uint32(0x10100000), + 9: uint32(0x00100000), + 11: uint32(0x00100000), + 12: uint32(0x10000000), + 13: uint32(0x10100000), + 14: uint32(0x10000000), + 15: uint32(0x10100000), + }, + 9: { + 1: uint32(0x00000010), + 3: uint32(0x00000010), + 4: uint32(0x00001000), + 5: uint32(0x00001010), + 6: uint32(0x00001000), + 7: uint32(0x00001010), + 9: uint32(0x00000010), + 11: uint32(0x00000010), + 12: uint32(0x00001000), + 13: uint32(0x00001010), + 14: uint32(0x00001000), + 15: uint32(0x00001010), + }, + 10: { + 1: uint32(0x00200000), + 3: uint32(0x00200000), + 4: uint32(0x20000000), + 5: uint32(0x20200000), + 6: uint32(0x20000000), + 7: uint32(0x20200000), + 9: uint32(0x00200000), + 11: uint32(0x00200000), + 12: uint32(0x20000000), + 13: uint32(0x20200000), + 14: uint32(0x20000000), + 15: uint32(0x20200000), + }, + 11: { + 1: uint32(0x00000020), + 3: uint32(0x00000020), + 4: uint32(0x00002000), + 5: uint32(0x00002020), + 6: uint32(0x00002000), + 7: uint32(0x00002020), + 9: uint32(0x00000020), + 11: uint32(0x00000020), + 12: uint32(0x00002000), + 13: uint32(0x00002020), + 14: uint32(0x00002000), + 15: uint32(0x00002020), + }, + 12: { + 1: uint32(0x00400000), + 3: uint32(0x00400000), + 4: uint32(0x40000000), + 5: uint32(0x40400000), + 6: uint32(0x40000000), + 7: uint32(0x40400000), + 9: uint32(0x00400000), + 11: uint32(0x00400000), + 12: uint32(0x40000000), + 13: uint32(0x40400000), + 14: uint32(0x40000000), + 15: uint32(0x40400000), + }, + 13: { + 1: uint32(0x00000040), + 3: uint32(0x00000040), + 4: uint32(0x00004000), + 5: uint32(0x00004040), + 6: uint32(0x00004000), + 7: uint32(0x00004040), + 9: uint32(0x00000040), + 11: uint32(0x00000040), + 12: uint32(0x00004000), + 13: uint32(0x00004040), + 14: uint32(0x00004000), + 15: uint32(0x00004040), + }, + 14: { + 1: uint32(0x00800000), + 3: uint32(0x00800000), + 4: uint32(0x80000000), + 5: uint32(0x80800000), + 6: uint32(0x80000000), + 7: uint32(0x80800000), + 9: uint32(0x00800000), + 11: uint32(0x00800000), + 12: uint32(0x80000000), + 13: uint32(0x80800000), + 14: uint32(0x80000000), + 15: uint32(0x80800000), + }, + 15: { + 1: uint32(0x00000080), + 3: uint32(0x00000080), + 4: uint32(0x00008000), + 5: uint32(0x00008080), + 6: uint32(0x00008000), + 7: uint32(0x00008080), + 9: uint32(0x00000080), + 11: uint32(0x00000080), + 12: uint32(0x00008000), + 13: uint32(0x00008080), + 14: uint32(0x00008000), + 15: uint32(0x00008080), + }, +} +var _ip_maskr = [16][16]Tuint32_t{ + 0: { + 2: uint32(0x00010000), + 3: uint32(0x00010000), + 6: uint32(0x00010000), + 7: uint32(0x00010000), + 8: uint32(0x01000000), + 9: uint32(0x01000000), + 10: uint32(0x01010000), + 11: uint32(0x01010000), + 12: uint32(0x01000000), + 13: uint32(0x01000000), + 14: uint32(0x01010000), + 15: uint32(0x01010000), + }, + 1: { + 2: uint32(0x00000001), + 3: uint32(0x00000001), + 6: uint32(0x00000001), + 7: uint32(0x00000001), + 8: uint32(0x00000100), + 9: uint32(0x00000100), + 10: uint32(0x00000101), + 11: uint32(0x00000101), + 12: uint32(0x00000100), + 13: uint32(0x00000100), + 14: uint32(0x00000101), + 15: uint32(0x00000101), + }, + 2: { + 2: uint32(0x00020000), + 3: uint32(0x00020000), + 6: uint32(0x00020000), + 7: uint32(0x00020000), + 8: uint32(0x02000000), + 9: uint32(0x02000000), + 10: uint32(0x02020000), + 11: uint32(0x02020000), + 12: uint32(0x02000000), + 13: uint32(0x02000000), + 14: uint32(0x02020000), + 15: uint32(0x02020000), + }, + 3: { + 2: uint32(0x00000002), + 3: uint32(0x00000002), + 6: uint32(0x00000002), + 7: uint32(0x00000002), + 8: uint32(0x00000200), + 9: uint32(0x00000200), + 10: uint32(0x00000202), + 11: uint32(0x00000202), + 12: uint32(0x00000200), + 13: uint32(0x00000200), + 14: uint32(0x00000202), + 15: uint32(0x00000202), + }, + 4: { + 2: uint32(0x00040000), + 3: uint32(0x00040000), + 6: uint32(0x00040000), + 7: uint32(0x00040000), + 8: uint32(0x04000000), + 9: uint32(0x04000000), + 10: uint32(0x04040000), + 11: uint32(0x04040000), + 12: uint32(0x04000000), + 13: uint32(0x04000000), + 14: uint32(0x04040000), + 15: uint32(0x04040000), + }, + 5: { + 2: uint32(0x00000004), + 3: uint32(0x00000004), + 6: uint32(0x00000004), + 7: uint32(0x00000004), + 8: uint32(0x00000400), + 9: uint32(0x00000400), + 10: uint32(0x00000404), + 11: uint32(0x00000404), + 12: uint32(0x00000400), + 13: uint32(0x00000400), + 14: uint32(0x00000404), + 15: uint32(0x00000404), + }, + 6: { + 2: uint32(0x00080000), + 3: uint32(0x00080000), + 6: uint32(0x00080000), + 7: uint32(0x00080000), + 8: uint32(0x08000000), + 9: uint32(0x08000000), + 10: uint32(0x08080000), + 11: uint32(0x08080000), + 12: uint32(0x08000000), + 13: uint32(0x08000000), + 14: uint32(0x08080000), + 15: uint32(0x08080000), + }, + 7: { + 2: uint32(0x00000008), + 3: uint32(0x00000008), + 6: uint32(0x00000008), + 7: uint32(0x00000008), + 8: uint32(0x00000800), + 9: uint32(0x00000800), + 10: uint32(0x00000808), + 11: uint32(0x00000808), + 12: uint32(0x00000800), + 13: uint32(0x00000800), + 14: uint32(0x00000808), + 15: uint32(0x00000808), + }, + 8: { + 2: uint32(0x00100000), + 3: uint32(0x00100000), + 6: uint32(0x00100000), + 7: uint32(0x00100000), + 8: uint32(0x10000000), + 9: uint32(0x10000000), + 10: uint32(0x10100000), + 11: uint32(0x10100000), + 12: uint32(0x10000000), + 13: uint32(0x10000000), + 14: uint32(0x10100000), + 15: uint32(0x10100000), + }, + 9: { + 2: uint32(0x00000010), + 3: uint32(0x00000010), + 6: uint32(0x00000010), + 7: uint32(0x00000010), + 8: uint32(0x00001000), + 9: uint32(0x00001000), + 10: uint32(0x00001010), + 11: uint32(0x00001010), + 12: uint32(0x00001000), + 13: uint32(0x00001000), + 14: uint32(0x00001010), + 15: uint32(0x00001010), + }, + 10: { + 2: uint32(0x00200000), + 3: uint32(0x00200000), + 6: uint32(0x00200000), + 7: uint32(0x00200000), + 8: uint32(0x20000000), + 9: uint32(0x20000000), + 10: uint32(0x20200000), + 11: uint32(0x20200000), + 12: uint32(0x20000000), + 13: uint32(0x20000000), + 14: uint32(0x20200000), + 15: uint32(0x20200000), + }, + 11: { + 2: uint32(0x00000020), + 3: uint32(0x00000020), + 6: uint32(0x00000020), + 7: uint32(0x00000020), + 8: uint32(0x00002000), + 9: uint32(0x00002000), + 10: uint32(0x00002020), + 11: uint32(0x00002020), + 12: uint32(0x00002000), + 13: uint32(0x00002000), + 14: uint32(0x00002020), + 15: uint32(0x00002020), + }, + 12: { + 2: uint32(0x00400000), + 3: uint32(0x00400000), + 6: uint32(0x00400000), + 7: uint32(0x00400000), + 8: uint32(0x40000000), + 9: uint32(0x40000000), + 10: uint32(0x40400000), + 11: uint32(0x40400000), + 12: uint32(0x40000000), + 13: uint32(0x40000000), + 14: uint32(0x40400000), + 15: uint32(0x40400000), + }, + 13: { + 2: uint32(0x00000040), + 3: uint32(0x00000040), + 6: uint32(0x00000040), + 7: uint32(0x00000040), + 8: uint32(0x00004000), + 9: uint32(0x00004000), + 10: uint32(0x00004040), + 11: uint32(0x00004040), + 12: uint32(0x00004000), + 13: uint32(0x00004000), + 14: uint32(0x00004040), + 15: uint32(0x00004040), + }, + 14: { + 2: uint32(0x00800000), + 3: uint32(0x00800000), + 6: uint32(0x00800000), + 7: uint32(0x00800000), + 8: uint32(0x80000000), + 9: uint32(0x80000000), + 10: uint32(0x80800000), + 11: uint32(0x80800000), + 12: uint32(0x80000000), + 13: uint32(0x80000000), + 14: uint32(0x80800000), + 15: uint32(0x80800000), + }, + 15: { + 2: uint32(0x00000080), + 3: uint32(0x00000080), + 6: uint32(0x00000080), + 7: uint32(0x00000080), + 8: uint32(0x00008000), + 9: uint32(0x00008000), + 10: uint32(0x00008080), + 11: uint32(0x00008080), + 12: uint32(0x00008000), + 13: uint32(0x00008000), + 14: uint32(0x00008080), + 15: uint32(0x00008080), + }, +} +var _fp_maskl = [8][16]Tuint32_t{ + 0: { + 1: uint32(0x40000000), + 2: uint32(0x00400000), + 3: uint32(0x40400000), + 4: uint32(0x00004000), + 5: uint32(0x40004000), + 6: uint32(0x00404000), + 7: uint32(0x40404000), + 8: uint32(0x00000040), + 9: uint32(0x40000040), + 10: uint32(0x00400040), + 11: uint32(0x40400040), + 12: uint32(0x00004040), + 13: uint32(0x40004040), + 14: uint32(0x00404040), + 15: uint32(0x40404040), + }, + 1: { + 1: uint32(0x10000000), + 2: uint32(0x00100000), + 3: uint32(0x10100000), + 4: uint32(0x00001000), + 5: uint32(0x10001000), + 6: uint32(0x00101000), + 7: uint32(0x10101000), + 8: uint32(0x00000010), + 9: uint32(0x10000010), + 10: uint32(0x00100010), + 11: uint32(0x10100010), + 12: uint32(0x00001010), + 13: uint32(0x10001010), + 14: uint32(0x00101010), + 15: uint32(0x10101010), + }, + 2: { + 1: uint32(0x04000000), + 2: uint32(0x00040000), + 3: uint32(0x04040000), + 4: uint32(0x00000400), + 5: uint32(0x04000400), + 6: uint32(0x00040400), + 7: uint32(0x04040400), + 8: uint32(0x00000004), + 9: uint32(0x04000004), + 10: uint32(0x00040004), + 11: uint32(0x04040004), + 12: uint32(0x00000404), + 13: uint32(0x04000404), + 14: uint32(0x00040404), + 15: uint32(0x04040404), + }, + 3: { + 1: uint32(0x01000000), + 2: uint32(0x00010000), + 3: uint32(0x01010000), + 4: uint32(0x00000100), + 5: uint32(0x01000100), + 6: uint32(0x00010100), + 7: uint32(0x01010100), + 8: uint32(0x00000001), + 9: uint32(0x01000001), + 10: uint32(0x00010001), + 11: uint32(0x01010001), + 12: uint32(0x00000101), + 13: uint32(0x01000101), + 14: uint32(0x00010101), + 15: uint32(0x01010101), + }, + 4: { + 1: uint32(0x80000000), + 2: uint32(0x00800000), + 3: uint32(0x80800000), + 4: uint32(0x00008000), + 5: uint32(0x80008000), + 6: uint32(0x00808000), + 7: uint32(0x80808000), + 8: uint32(0x00000080), + 9: uint32(0x80000080), + 10: uint32(0x00800080), + 11: uint32(0x80800080), + 12: uint32(0x00008080), + 13: uint32(0x80008080), + 14: uint32(0x00808080), + 15: uint32(0x80808080), + }, + 5: { + 1: uint32(0x20000000), + 2: uint32(0x00200000), + 3: uint32(0x20200000), + 4: uint32(0x00002000), + 5: uint32(0x20002000), + 6: uint32(0x00202000), + 7: uint32(0x20202000), + 8: uint32(0x00000020), + 9: uint32(0x20000020), + 10: uint32(0x00200020), + 11: uint32(0x20200020), + 12: uint32(0x00002020), + 13: uint32(0x20002020), + 14: uint32(0x00202020), + 15: uint32(0x20202020), + }, + 6: { + 1: uint32(0x08000000), + 2: uint32(0x00080000), + 3: uint32(0x08080000), + 4: uint32(0x00000800), + 5: uint32(0x08000800), + 6: uint32(0x00080800), + 7: uint32(0x08080800), + 8: uint32(0x00000008), + 9: uint32(0x08000008), + 10: uint32(0x00080008), + 11: uint32(0x08080008), + 12: uint32(0x00000808), + 13: uint32(0x08000808), + 14: uint32(0x00080808), + 15: uint32(0x08080808), + }, + 7: { + 1: uint32(0x02000000), + 2: uint32(0x00020000), + 3: uint32(0x02020000), + 4: uint32(0x00000200), + 5: uint32(0x02000200), + 6: uint32(0x00020200), + 7: uint32(0x02020200), + 8: uint32(0x00000002), + 9: uint32(0x02000002), + 10: uint32(0x00020002), + 11: uint32(0x02020002), + 12: uint32(0x00000202), + 13: uint32(0x02000202), + 14: uint32(0x00020202), + 15: uint32(0x02020202), + }, +} +var _fp_maskr = [8][16]Tuint32_t{ + 0: { + 1: uint32(0x40000000), + 2: uint32(0x00400000), + 3: uint32(0x40400000), + 4: uint32(0x00004000), + 5: uint32(0x40004000), + 6: uint32(0x00404000), + 7: uint32(0x40404000), + 8: uint32(0x00000040), + 9: uint32(0x40000040), + 10: uint32(0x00400040), + 11: uint32(0x40400040), + 12: uint32(0x00004040), + 13: uint32(0x40004040), + 14: uint32(0x00404040), + 15: uint32(0x40404040), + }, + 1: { + 1: uint32(0x10000000), + 2: uint32(0x00100000), + 3: uint32(0x10100000), + 4: uint32(0x00001000), + 5: uint32(0x10001000), + 6: uint32(0x00101000), + 7: uint32(0x10101000), + 8: uint32(0x00000010), + 9: uint32(0x10000010), + 10: uint32(0x00100010), + 11: uint32(0x10100010), + 12: uint32(0x00001010), + 13: uint32(0x10001010), + 14: uint32(0x00101010), + 15: uint32(0x10101010), + }, + 2: { + 1: uint32(0x04000000), + 2: uint32(0x00040000), + 3: uint32(0x04040000), + 4: uint32(0x00000400), + 5: uint32(0x04000400), + 6: uint32(0x00040400), + 7: uint32(0x04040400), + 8: uint32(0x00000004), + 9: uint32(0x04000004), + 10: uint32(0x00040004), + 11: uint32(0x04040004), + 12: uint32(0x00000404), + 13: uint32(0x04000404), + 14: uint32(0x00040404), + 15: uint32(0x04040404), + }, + 3: { + 1: uint32(0x01000000), + 2: uint32(0x00010000), + 3: uint32(0x01010000), + 4: uint32(0x00000100), + 5: uint32(0x01000100), + 6: uint32(0x00010100), + 7: uint32(0x01010100), + 8: uint32(0x00000001), + 9: uint32(0x01000001), + 10: uint32(0x00010001), + 11: uint32(0x01010001), + 12: uint32(0x00000101), + 13: uint32(0x01000101), + 14: uint32(0x00010101), + 15: uint32(0x01010101), + }, + 4: { + 1: uint32(0x80000000), + 2: uint32(0x00800000), + 3: uint32(0x80800000), + 4: uint32(0x00008000), + 5: uint32(0x80008000), + 6: uint32(0x00808000), + 7: uint32(0x80808000), + 8: uint32(0x00000080), + 9: uint32(0x80000080), + 10: uint32(0x00800080), + 11: uint32(0x80800080), + 12: uint32(0x00008080), + 13: uint32(0x80008080), + 14: uint32(0x00808080), + 15: uint32(0x80808080), + }, + 5: { + 1: uint32(0x20000000), + 2: uint32(0x00200000), + 3: uint32(0x20200000), + 4: uint32(0x00002000), + 5: uint32(0x20002000), + 6: uint32(0x00202000), + 7: uint32(0x20202000), + 8: uint32(0x00000020), + 9: uint32(0x20000020), + 10: uint32(0x00200020), + 11: uint32(0x20200020), + 12: uint32(0x00002020), + 13: uint32(0x20002020), + 14: uint32(0x00202020), + 15: uint32(0x20202020), + }, + 6: { + 1: uint32(0x08000000), + 2: uint32(0x00080000), + 3: uint32(0x08080000), + 4: uint32(0x00000800), + 5: uint32(0x08000800), + 6: uint32(0x00080800), + 7: uint32(0x08080800), + 8: uint32(0x00000008), + 9: uint32(0x08000008), + 10: uint32(0x00080008), + 11: uint32(0x08080008), + 12: uint32(0x00000808), + 13: uint32(0x08000808), + 14: uint32(0x00080808), + 15: uint32(0x08080808), + }, + 7: { + 1: uint32(0x02000000), + 2: uint32(0x00020000), + 3: uint32(0x02020000), + 4: uint32(0x00000200), + 5: uint32(0x02000200), + 6: uint32(0x00020200), + 7: uint32(0x02020200), + 8: uint32(0x00000002), + 9: uint32(0x02000002), + 10: uint32(0x00020002), + 11: uint32(0x02020002), + 12: uint32(0x00000202), + 13: uint32(0x02000202), + 14: uint32(0x00020202), + 15: uint32(0x02020202), + }, +} +var _key_perm_maskl = [8][16]Tuint32_t{ + 0: { + 2: uint32(0x00000010), + 3: uint32(0x00000010), + 4: uint32(0x00001000), + 5: uint32(0x00001000), + 6: uint32(0x00001010), + 7: uint32(0x00001010), + 8: uint32(0x00100000), + 9: uint32(0x00100000), + 10: uint32(0x00100010), + 11: uint32(0x00100010), + 12: uint32(0x00101000), + 13: uint32(0x00101000), + 14: uint32(0x00101010), + 15: uint32(0x00101010), + }, + 1: { + 2: uint32(0x00000020), + 3: uint32(0x00000020), + 4: uint32(0x00002000), + 5: uint32(0x00002000), + 6: uint32(0x00002020), + 7: uint32(0x00002020), + 8: uint32(0x00200000), + 9: uint32(0x00200000), + 10: uint32(0x00200020), + 11: uint32(0x00200020), + 12: uint32(0x00202000), + 13: uint32(0x00202000), + 14: uint32(0x00202020), + 15: uint32(0x00202020), + }, + 2: { + 2: uint32(0x00000040), + 3: uint32(0x00000040), + 4: uint32(0x00004000), + 5: uint32(0x00004000), + 6: uint32(0x00004040), + 7: uint32(0x00004040), + 8: uint32(0x00400000), + 9: uint32(0x00400000), + 10: uint32(0x00400040), + 11: uint32(0x00400040), + 12: uint32(0x00404000), + 13: uint32(0x00404000), + 14: uint32(0x00404040), + 15: uint32(0x00404040), + }, + 3: { + 2: uint32(0x00000080), + 3: uint32(0x00000080), + 4: uint32(0x00008000), + 5: uint32(0x00008000), + 6: uint32(0x00008080), + 7: uint32(0x00008080), + 8: uint32(0x00800000), + 9: uint32(0x00800000), + 10: uint32(0x00800080), + 11: uint32(0x00800080), + 12: uint32(0x00808000), + 13: uint32(0x00808000), + 14: uint32(0x00808080), + 15: uint32(0x00808080), + }, + 4: { + 1: uint32(0x00000001), + 2: uint32(0x00000100), + 3: uint32(0x00000101), + 4: uint32(0x00010000), + 5: uint32(0x00010001), + 6: uint32(0x00010100), + 7: uint32(0x00010101), + 8: uint32(0x01000000), + 9: uint32(0x01000001), + 10: uint32(0x01000100), + 11: uint32(0x01000101), + 12: uint32(0x01010000), + 13: uint32(0x01010001), + 14: uint32(0x01010100), + 15: uint32(0x01010101), + }, + 5: { + 1: uint32(0x00000002), + 2: uint32(0x00000200), + 3: uint32(0x00000202), + 4: uint32(0x00020000), + 5: uint32(0x00020002), + 6: uint32(0x00020200), + 7: uint32(0x00020202), + 8: uint32(0x02000000), + 9: uint32(0x02000002), + 10: uint32(0x02000200), + 11: uint32(0x02000202), + 12: uint32(0x02020000), + 13: uint32(0x02020002), + 14: uint32(0x02020200), + 15: uint32(0x02020202), + }, + 6: { + 1: uint32(0x00000004), + 2: uint32(0x00000400), + 3: uint32(0x00000404), + 4: uint32(0x00040000), + 5: uint32(0x00040004), + 6: uint32(0x00040400), + 7: uint32(0x00040404), + 8: uint32(0x04000000), + 9: uint32(0x04000004), + 10: uint32(0x04000400), + 11: uint32(0x04000404), + 12: uint32(0x04040000), + 13: uint32(0x04040004), + 14: uint32(0x04040400), + 15: uint32(0x04040404), + }, + 7: { + 1: uint32(0x00000008), + 2: uint32(0x00000800), + 3: uint32(0x00000808), + 4: uint32(0x00080000), + 5: uint32(0x00080008), + 6: uint32(0x00080800), + 7: uint32(0x00080808), + 8: uint32(0x08000000), + 9: uint32(0x08000008), + 10: uint32(0x08000800), + 11: uint32(0x08000808), + 12: uint32(0x08080000), + 13: uint32(0x08080008), + 14: uint32(0x08080800), + 15: uint32(0x08080808), + }, +} +var _key_perm_maskr = [12][16]Tuint32_t{ + 0: { + 1: uint32(0x00000001), + 3: uint32(0x00000001), + 5: uint32(0x00000001), + 7: uint32(0x00000001), + 9: uint32(0x00000001), + 11: uint32(0x00000001), + 13: uint32(0x00000001), + 15: uint32(0x00000001), + }, + 1: { + 2: uint32(0x00100000), + 3: uint32(0x00100000), + 4: uint32(0x00001000), + 5: uint32(0x00001000), + 6: uint32(0x00101000), + 7: uint32(0x00101000), + 8: uint32(0x00000010), + 9: uint32(0x00000010), + 10: uint32(0x00100010), + 11: uint32(0x00100010), + 12: uint32(0x00001010), + 13: uint32(0x00001010), + 14: uint32(0x00101010), + 15: uint32(0x00101010), + }, + 2: { + 1: uint32(0x00000002), + 3: uint32(0x00000002), + 5: uint32(0x00000002), + 7: uint32(0x00000002), + 9: uint32(0x00000002), + 11: uint32(0x00000002), + 13: uint32(0x00000002), + 15: uint32(0x00000002), + }, + 3: { + 2: uint32(0x00200000), + 3: uint32(0x00200000), + 4: uint32(0x00002000), + 5: uint32(0x00002000), + 6: uint32(0x00202000), + 7: uint32(0x00202000), + 8: uint32(0x00000020), + 9: uint32(0x00000020), + 10: uint32(0x00200020), + 11: uint32(0x00200020), + 12: uint32(0x00002020), + 13: uint32(0x00002020), + 14: uint32(0x00202020), + 15: uint32(0x00202020), + }, + 4: { + 1: uint32(0x00000004), + 3: uint32(0x00000004), + 5: uint32(0x00000004), + 7: uint32(0x00000004), + 9: uint32(0x00000004), + 11: uint32(0x00000004), + 13: uint32(0x00000004), + 15: uint32(0x00000004), + }, + 5: { + 2: uint32(0x00400000), + 3: uint32(0x00400000), + 4: uint32(0x00004000), + 5: uint32(0x00004000), + 6: uint32(0x00404000), + 7: uint32(0x00404000), + 8: uint32(0x00000040), + 9: uint32(0x00000040), + 10: uint32(0x00400040), + 11: uint32(0x00400040), + 12: uint32(0x00004040), + 13: uint32(0x00004040), + 14: uint32(0x00404040), + 15: uint32(0x00404040), + }, + 6: { + 1: uint32(0x00000008), + 3: uint32(0x00000008), + 5: uint32(0x00000008), + 7: uint32(0x00000008), + 9: uint32(0x00000008), + 11: uint32(0x00000008), + 13: uint32(0x00000008), + 15: uint32(0x00000008), + }, + 7: { + 2: uint32(0x00800000), + 3: uint32(0x00800000), + 4: uint32(0x00008000), + 5: uint32(0x00008000), + 6: uint32(0x00808000), + 7: uint32(0x00808000), + 8: uint32(0x00000080), + 9: uint32(0x00000080), + 10: uint32(0x00800080), + 11: uint32(0x00800080), + 12: uint32(0x00008080), + 13: uint32(0x00008080), + 14: uint32(0x00808080), + 15: uint32(0x00808080), + }, + 8: { + 2: uint32(0x01000000), + 3: uint32(0x01000000), + 4: uint32(0x00010000), + 5: uint32(0x00010000), + 6: uint32(0x01010000), + 7: uint32(0x01010000), + 8: uint32(0x00000100), + 9: uint32(0x00000100), + 10: uint32(0x01000100), + 11: uint32(0x01000100), + 12: uint32(0x00010100), + 13: uint32(0x00010100), + 14: uint32(0x01010100), + 15: uint32(0x01010100), + }, + 9: { + 2: uint32(0x02000000), + 3: uint32(0x02000000), + 4: uint32(0x00020000), + 5: uint32(0x00020000), + 6: uint32(0x02020000), + 7: uint32(0x02020000), + 8: uint32(0x00000200), + 9: uint32(0x00000200), + 10: uint32(0x02000200), + 11: uint32(0x02000200), + 12: uint32(0x00020200), + 13: uint32(0x00020200), + 14: uint32(0x02020200), + 15: uint32(0x02020200), + }, + 10: { + 2: uint32(0x04000000), + 3: uint32(0x04000000), + 4: uint32(0x00040000), + 5: uint32(0x00040000), + 6: uint32(0x04040000), + 7: uint32(0x04040000), + 8: uint32(0x00000400), + 9: uint32(0x00000400), + 10: uint32(0x04000400), + 11: uint32(0x04000400), + 12: uint32(0x00040400), + 13: uint32(0x00040400), + 14: uint32(0x04040400), + 15: uint32(0x04040400), + }, + 11: { + 2: uint32(0x08000000), + 3: uint32(0x08000000), + 4: uint32(0x00080000), + 5: uint32(0x00080000), + 6: uint32(0x08080000), + 7: uint32(0x08080000), + 8: uint32(0x00000800), + 9: uint32(0x00000800), + 10: uint32(0x08000800), + 11: uint32(0x08000800), + 12: uint32(0x00080800), + 13: uint32(0x00080800), + 14: uint32(0x08080800), + 15: uint32(0x08080800), + }, +} +var _comp_maskl0 = [4][8]Tuint32_t{ + 0: { + 1: uint32(0x00020000), + 2: uint32(0x00000001), + 3: uint32(0x00020001), + 4: uint32(0x00080000), + 5: uint32(0x000a0000), + 6: uint32(0x00080001), + 7: uint32(0x000a0001), + }, + 1: { + 1: uint32(0x00001000), + 3: uint32(0x00001000), + 4: uint32(0x00000040), + 5: uint32(0x00001040), + 6: uint32(0x00000040), + 7: uint32(0x00001040), + }, + 2: { + 1: uint32(0x00400000), + 2: uint32(0x00000020), + 3: uint32(0x00400020), + 4: uint32(0x00008000), + 5: uint32(0x00408000), + 6: uint32(0x00008020), + 7: uint32(0x00408020), + }, + 3: { + 1: uint32(0x00100000), + 2: uint32(0x00000800), + 3: uint32(0x00100800), + 5: uint32(0x00100000), + 6: uint32(0x00000800), + 7: uint32(0x00100800), + }, +} +var _comp_maskr0 = [4][8]Tuint32_t{ + 0: { + 1: uint32(0x00200000), + 2: uint32(0x00020000), + 3: uint32(0x00220000), + 4: uint32(0x00000002), + 5: uint32(0x00200002), + 6: uint32(0x00020002), + 7: uint32(0x00220002), + }, + 1: { + 2: uint32(0x00100000), + 3: uint32(0x00100000), + 4: uint32(0x00000004), + 5: uint32(0x00000004), + 6: uint32(0x00100004), + 7: uint32(0x00100004), + }, + 2: { + 1: uint32(0x00004000), + 2: uint32(0x00000800), + 3: uint32(0x00004800), + 5: uint32(0x00004000), + 6: uint32(0x00000800), + 7: uint32(0x00004800), + }, + 3: { + 1: uint32(0x00400000), + 2: uint32(0x00008000), + 3: uint32(0x00408000), + 4: uint32(0x00000008), + 5: uint32(0x00400008), + 6: uint32(0x00008008), + 7: uint32(0x00408008), + }, +} +var _comp_maskl1 = [4][16]Tuint32_t{ + 0: { + 1: uint32(0x00000010), + 2: uint32(0x00004000), + 3: uint32(0x00004010), + 4: uint32(0x00040000), + 5: uint32(0x00040010), + 6: uint32(0x00044000), + 7: uint32(0x00044010), + 8: uint32(0x00000100), + 9: uint32(0x00000110), + 10: uint32(0x00004100), + 11: uint32(0x00004110), + 12: uint32(0x00040100), + 13: uint32(0x00040110), + 14: uint32(0x00044100), + 15: uint32(0x00044110), + }, + 1: { + 1: uint32(0x00800000), + 2: uint32(0x00000002), + 3: uint32(0x00800002), + 4: uint32(0x00000200), + 5: uint32(0x00800200), + 6: uint32(0x00000202), + 7: uint32(0x00800202), + 8: uint32(0x00200000), + 9: uint32(0x00a00000), + 10: uint32(0x00200002), + 11: uint32(0x00a00002), + 12: uint32(0x00200200), + 13: uint32(0x00a00200), + 14: uint32(0x00200202), + 15: uint32(0x00a00202), + }, + 2: { + 1: uint32(0x00002000), + 2: uint32(0x00000004), + 3: uint32(0x00002004), + 4: uint32(0x00000400), + 5: uint32(0x00002400), + 6: uint32(0x00000404), + 7: uint32(0x00002404), + 9: uint32(0x00002000), + 10: uint32(0x00000004), + 11: uint32(0x00002004), + 12: uint32(0x00000400), + 13: uint32(0x00002400), + 14: uint32(0x00000404), + 15: uint32(0x00002404), + }, + 3: { + 1: uint32(0x00010000), + 2: uint32(0x00000008), + 3: uint32(0x00010008), + 4: uint32(0x00000080), + 5: uint32(0x00010080), + 6: uint32(0x00000088), + 7: uint32(0x00010088), + 9: uint32(0x00010000), + 10: uint32(0x00000008), + 11: uint32(0x00010008), + 12: uint32(0x00000080), + 13: uint32(0x00010080), + 14: uint32(0x00000088), + 15: uint32(0x00010088), + }, +} +var _comp_maskr1 = [4][16]Tuint32_t{ + 0: { + 2: uint32(0x00000080), + 3: uint32(0x00000080), + 4: uint32(0x00002000), + 5: uint32(0x00002000), + 6: uint32(0x00002080), + 7: uint32(0x00002080), + 8: uint32(0x00000001), + 9: uint32(0x00000001), + 10: uint32(0x00000081), + 11: uint32(0x00000081), + 12: uint32(0x00002001), + 13: uint32(0x00002001), + 14: uint32(0x00002081), + 15: uint32(0x00002081), + }, + 1: { + 1: uint32(0x00000010), + 2: uint32(0x00800000), + 3: uint32(0x00800010), + 4: uint32(0x00010000), + 5: uint32(0x00010010), + 6: uint32(0x00810000), + 7: uint32(0x00810010), + 8: uint32(0x00000200), + 9: uint32(0x00000210), + 10: uint32(0x00800200), + 11: uint32(0x00800210), + 12: uint32(0x00010200), + 13: uint32(0x00010210), + 14: uint32(0x00810200), + 15: uint32(0x00810210), + }, + 2: { + 1: uint32(0x00000400), + 2: uint32(0x00001000), + 3: uint32(0x00001400), + 4: uint32(0x00080000), + 5: uint32(0x00080400), + 6: uint32(0x00081000), + 7: uint32(0x00081400), + 8: uint32(0x00000020), + 9: uint32(0x00000420), + 10: uint32(0x00001020), + 11: uint32(0x00001420), + 12: uint32(0x00080020), + 13: uint32(0x00080420), + 14: uint32(0x00081020), + 15: uint32(0x00081420), + }, + 3: { + 1: uint32(0x00000100), + 2: uint32(0x00040000), + 3: uint32(0x00040100), + 5: uint32(0x00000100), + 6: uint32(0x00040000), + 7: uint32(0x00040100), + 8: uint32(0x00000040), + 9: uint32(0x00000140), + 10: uint32(0x00040040), + 11: uint32(0x00040140), + 12: uint32(0x00000040), + 13: uint32(0x00000140), + 14: uint32(0x00040040), + 15: uint32(0x00040140), + }, +} + +var _ascii64 = [65]uint8{'.', '/', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'} + +/* 0000000000111111111122222222223333333333444444444455555555556666 */ +/* 0123456789012345678901234567890123456789012345678901234567890123 */ + +// C documentation +// +// /* +// * We match the behavior of UFC-crypt on systems where "char" is signed by +// * default (the majority), regardless of char's signedness on our system. +// */ +func _ascii_to_bin(tls *TLS, ch int32) (r Tuint32_t) { + var retval, sch, v1 int32 + _, _, _ = retval, sch, v1 + if ch < int32(0x80) { + v1 = ch + } else { + v1 = -(int32(0x100) - ch) + } + sch = v1 + retval = sch - int32('.') + if sch >= int32('A') { + retval = sch - (Int32FromUint8('A') - Int32FromInt32(12)) + if sch >= int32('a') { + retval = sch - (Int32FromUint8('a') - Int32FromInt32(38)) + } + } + retval = retval & int32(0x3f) + return Uint32FromInt32(retval) +} + +// C documentation +// +// /* +// * When we choose to "support" invalid salts, nevertheless disallow those +// * containing characters that would violate the passwd file format. +// */ +func _ascii_is_unsafe(tls *TLS, ch uint8) (r int32) { + return BoolInt32(!(ch != 0) || Int32FromUint8(ch) == int32('\n') || Int32FromUint8(ch) == int32(':')) +} + +func _setup_salt(tls *TLS, salt Tuint32_t) (r Tuint32_t) { + var i uint32 + var obit, saltbit, saltbits Tuint32_t + _, _, _, _ = i, obit, saltbit, saltbits + saltbits = uint32(0) + saltbit = uint32(1) + obit = uint32(0x800000) + i = uint32(0) + for { + if !(i < uint32(24)) { + break + } + if salt&saltbit != 0 { + saltbits = saltbits | obit + } + saltbit = saltbit << uint32(1) + obit = obit >> uint32(1) + goto _1 + _1: + ; + i = i + 1 + } + return saltbits +} + +func X__des_setkey(tls *TLS, key uintptr, ekey uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v ekey=%v, (%v:)", tls, key, ekey, origin(2)) + } + var i, ibit, j, round, shifts uint32 + var k0, k1, kl, kr, rawkey0, rawkey1, t0, t1, v1 Tuint32_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = i, ibit, j, k0, k1, kl, kr, rawkey0, rawkey1, round, shifts, t0, t1, v1 + rawkey0 = uint32(**(**uint8)(__ccgo_up(key + 3))) | uint32(**(**uint8)(__ccgo_up(key + 2)))<>ibit&uint32(0xf))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_key_perm_maskl)) + uintptr(i+uint32(4))*64 + uintptr(rawkey1>>ibit&uint32(0xf))*4))) + k1 = k1 | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_key_perm_maskr)) + uintptr(j)*64 + uintptr(rawkey0>>ibit&uint32(0xf))*4)) + ibit = ibit - uint32(4) + k1 = k1 | (**(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_key_perm_maskr)) + uintptr(j+uint32(1))*64 + uintptr(rawkey0>>ibit&uint32(0xf))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_key_perm_maskr)) + uintptr(i+uint32(8))*64 + uintptr(rawkey1>>ibit&uint32(0xf))*4))) + goto _2 + _2: + ; + i = i + 1 + ibit = ibit - uint32(4) + } + /* + * Rotate subkeys and do compression permutation. + */ + shifts = uint32(0) + round = uint32(0) + for { + if !(round < uint32(16)) { + break + } + shifts = shifts + uint32(_key_shifts[round]) + t0 = k0<>(Uint32FromInt32(28)-shifts) + t1 = k1<>(Uint32FromInt32(28)-shifts) + v1 = Uint32FromInt32(0) + kr = v1 + kl = v1 + ibit = uint32(25) + i = uint32(0) + for { + if !(i < uint32(4)) { + break + } + kl = kl | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_comp_maskl0)) + uintptr(i)*32 + uintptr(t0>>ibit&uint32(7))*4)) + kr = kr | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_comp_maskr0)) + uintptr(i)*32 + uintptr(t1>>ibit&uint32(7))*4)) + ibit = ibit - uint32(4) + kl = kl | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_comp_maskl1)) + uintptr(i)*64 + uintptr(t0>>ibit&uint32(0xf))*4)) + kr = kr | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_comp_maskr1)) + uintptr(i)*64 + uintptr(t1>>ibit&uint32(0xf))*4)) + ibit = ibit - uint32(3) + goto _5 + _5: + ; + i = i + 1 + } + **(**Tuint32_t)(__ccgo_up(ekey + uintptr(round)*4)) = kl + **(**Tuint32_t)(__ccgo_up(ekey + 64 + uintptr(round)*4)) = kr + goto _3 + _3: + ; + round = round + 1 + } +} + +// C documentation +// +// /* +// * l_in, r_in, l_out, and r_out are in pseudo-"big-endian" format. +// */ +func X__do_des(tls *TLS, l_in Tuint32_t, r_in Tuint32_t, l_out uintptr, r_out uintptr, count Tuint32_t, saltbits Tuint32_t, ekey uintptr) { + if __ccgo_strace { + trc("tls=%v l_in=%v r_in=%v l_out=%v r_out=%v count=%v saltbits=%v ekey=%v, (%v:)", tls, l_in, r_in, l_out, r_out, count, saltbits, ekey, origin(2)) + } + var f, l, lo, r, r48l, r48r, ro, v1 Tuint32_t + var i, i1, ibit, ibit1, round, v4 uint32 + var kl, kr, v5 uintptr + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = f, i, i1, ibit, ibit1, kl, kr, l, lo, r, r48l, r48r, ro, round, v1, v4, v5 + /* + * Do initial permutation (IP). + */ + v1 = Uint32FromInt32(0) + r = v1 + l = v1 + if l_in|r_in != 0 { + i = uint32(0) + ibit = Uint32FromInt32(28) + for { + if !(i < uint32(8)) { + break + } + l = l | (**(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_ip_maskl)) + uintptr(i)*64 + uintptr(l_in>>ibit&uint32(0xf))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_ip_maskl)) + uintptr(i+uint32(8))*64 + uintptr(r_in>>ibit&uint32(0xf))*4))) + r = r | (**(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_ip_maskr)) + uintptr(i)*64 + uintptr(l_in>>ibit&uint32(0xf))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_ip_maskr)) + uintptr(i+uint32(8))*64 + uintptr(r_in>>ibit&uint32(0xf))*4))) + goto _2 + _2: + ; + i = i + 1 + ibit = ibit - uint32(4) + } + } + for { + v1 = count + count = count - 1 + if !(v1 != 0) { + break + } + /* + * Do each round. + */ + round = uint32(16) + kl = ekey + kr = ekey + 64 + for { + v4 = round + round = round - 1 + if !(v4 != 0) { + break + } + /* + * Expand R to 48 bits (simulate the E-box). + */ + r48l = r&uint32(0x00000001)<>int32(9) | r&uint32(0x1f800000)>>int32(11) | r&uint32(0x01f80000)>>int32(13) | r&uint32(0x001f8000)>>int32(15) + r48r = r&uint32(0x0001f800)<>int32(31) + /* + * Do salting for crypt() and friends, and + * XOR with the permuted key. + */ + f = (r48l ^ r48r) & saltbits + v5 = kl + kl += 4 + r48l = r48l ^ (f ^ **(**Tuint32_t)(__ccgo_up(v5))) + v5 = kr + kr += 4 + r48r = r48r ^ (f ^ **(**Tuint32_t)(__ccgo_up(v5))) + /* + * Do S-box lookups (which shrink it back to 32 bits) + * and do the P-box permutation at the same time. + */ + f = **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_psbox)) + uintptr(r48l>>int32(18))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_psbox)) + 1*256 + uintptr(r48l>>Int32FromInt32(12)&uint32(0x3f))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_psbox)) + 2*256 + uintptr(r48l>>Int32FromInt32(6)&uint32(0x3f))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_psbox)) + 3*256 + uintptr(r48l&uint32(0x3f))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_psbox)) + 4*256 + uintptr(r48r>>int32(18))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_psbox)) + 5*256 + uintptr(r48r>>Int32FromInt32(12)&uint32(0x3f))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_psbox)) + 6*256 + uintptr(r48r>>Int32FromInt32(6)&uint32(0x3f))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_psbox)) + 7*256 + uintptr(r48r&uint32(0x3f))*4)) + /* + * Now that we've permuted things, complete f(). + */ + f = f ^ l + l = r + r = f + } + r = l + l = f + } + /* + * Do final permutation (inverse of IP). + */ + v1 = Uint32FromInt32(0) + ro = v1 + lo = v1 + i1 = uint32(0) + ibit1 = Uint32FromInt32(28) + for { + if !(i1 < uint32(4)) { + break + } + ro = ro | (**(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_fp_maskr)) + uintptr(i1)*64 + uintptr(l>>ibit1&uint32(0xf))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_fp_maskr)) + uintptr(i1+uint32(4))*64 + uintptr(r>>ibit1&uint32(0xf))*4))) + ibit1 = ibit1 - uint32(4) + lo = lo | (**(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_fp_maskl)) + uintptr(i1)*64 + uintptr(l>>ibit1&uint32(0xf))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_fp_maskl)) + uintptr(i1+uint32(4))*64 + uintptr(r>>ibit1&uint32(0xf))*4))) + goto _8 + _8: + ; + i1 = i1 + 1 + ibit1 = ibit1 - uint32(4) + } + **(**Tuint32_t)(__ccgo_up(l_out)) = lo + **(**Tuint32_t)(__ccgo_up(r_out)) = ro +} + +func _des_cipher(tls *TLS, in uintptr, out uintptr, count Tuint32_t, saltbits Tuint32_t, ekey uintptr) { + bp := tls.Alloc(16) + defer tls.Free(16) + var rawl, rawr Tuint32_t + var _ /* l_out at bp+0 */ Tuint32_t + var _ /* r_out at bp+4 */ Tuint32_t + _, _ = rawl, rawr + rawl = uint32(**(**uint8)(__ccgo_up(in + 3))) | uint32(**(**uint8)(__ccgo_up(in + 2)))<> int32(24)) + **(**uint8)(__ccgo_up(out + 1)) = uint8(**(**Tuint32_t)(__ccgo_up(bp)) >> int32(16)) + **(**uint8)(__ccgo_up(out + 2)) = uint8(**(**Tuint32_t)(__ccgo_up(bp)) >> int32(8)) + **(**uint8)(__ccgo_up(out + 3)) = uint8(**(**Tuint32_t)(__ccgo_up(bp))) + **(**uint8)(__ccgo_up(out + 4)) = uint8(**(**Tuint32_t)(__ccgo_up(bp + 4)) >> int32(24)) + **(**uint8)(__ccgo_up(out + 5)) = uint8(**(**Tuint32_t)(__ccgo_up(bp + 4)) >> int32(16)) + **(**uint8)(__ccgo_up(out + 6)) = uint8(**(**Tuint32_t)(__ccgo_up(bp + 4)) >> int32(8)) + **(**uint8)(__ccgo_up(out + 7)) = uint8(**(**Tuint32_t)(__ccgo_up(bp + 4))) +} + +func __crypt_extended_r_uut(tls *TLS, _key uintptr, _setting uintptr, output uintptr) (r uintptr) { + bp := tls.Alloc(144) + defer tls.Free(144) + var count, l, salt, value, value1 Tuint32_t + var i uint32 + var key, p, q, setting, v1, v4, v5 uintptr + var _ /* ekey at bp+0 */ Texpanded_key + var _ /* keybuf at bp+128 */ [8]uint8 + var _ /* r0 at bp+136 */ Tuint32_t + var _ /* r1 at bp+140 */ Tuint32_t + _, _, _, _, _, _, _, _, _, _, _, _, _ = count, i, key, l, p, q, salt, setting, value, value1, v1, v4, v5 + key = _key + setting = _setting + /* + * Copy the key, shifting each character left by one bit and padding + * with zeroes. + */ + q = bp + 128 + for q <= bp+128+uintptr(Uint32FromInt64(8)-Uint32FromInt32(1)) { + v1 = q + q = q + 1 + **(**uint8)(__ccgo_up(v1)) = Uint8FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(key))) << int32(1)) + if **(**uint8)(__ccgo_up(key)) != 0 { + key = key + 1 + } + } + X__des_setkey(tls, bp+128, bp) + if Int32FromUint8(**(**uint8)(__ccgo_up(setting))) == int32('_') { + /* + * "new"-style: + * setting - underscore, 4 chars of count, 4 chars of salt + * key - unlimited characters + */ + i = uint32(1) + count = Uint32FromInt32(0) + for { + if !(i < uint32(5)) { + break + } + value = _ascii_to_bin(tls, Int32FromUint8(**(**uint8)(__ccgo_up(setting + uintptr(i))))) + if Int32FromUint8(_ascii64[value]) != Int32FromUint8(**(**uint8)(__ccgo_up(setting + uintptr(i)))) { + return UintptrFromInt32(0) + } + count = count | value<<((i-uint32(1))*uint32(6)) + goto _2 + _2: + ; + i = i + 1 + } + if !(count != 0) { + return UintptrFromInt32(0) + } + i = uint32(5) + salt = Uint32FromInt32(0) + for { + if !(i < uint32(9)) { + break + } + value1 = _ascii_to_bin(tls, Int32FromUint8(**(**uint8)(__ccgo_up(setting + uintptr(i))))) + if Int32FromUint8(_ascii64[value1]) != Int32FromUint8(**(**uint8)(__ccgo_up(setting + uintptr(i)))) { + return UintptrFromInt32(0) + } + salt = salt | value1<<((i-uint32(5))*uint32(6)) + goto _3 + _3: + ; + i = i + 1 + } + for **(**uint8)(__ccgo_up(key)) != 0 { + /* + * Encrypt the key with itself. + */ + _des_cipher(tls, bp+128, bp+128, uint32(1), uint32(0), bp) + /* + * And XOR with the next 8 characters of the key. + */ + q = bp + 128 + for q <= bp+128+uintptr(Uint32FromInt64(8)-Uint32FromInt32(1)) && **(**uint8)(__ccgo_up(key)) != 0 { + v4 = q + q = q + 1 + v1 = v4 + v5 = key + key = key + 1 + *(*uint8)(unsafe.Pointer(v1)) = uint8(int32(*(*uint8)(unsafe.Pointer(v1))) ^ Int32FromUint8(**(**uint8)(__ccgo_up(v5)))<> int32(8) + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l>>Int32FromInt32(18)&uint32(0x3f)] + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l>>Int32FromInt32(12)&uint32(0x3f)] + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l>>Int32FromInt32(6)&uint32(0x3f)] + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l&uint32(0x3f)] + l = **(**Tuint32_t)(__ccgo_up(bp + 136))<>Int32FromInt32(16)&uint32(0xffff) + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l>>Int32FromInt32(18)&uint32(0x3f)] + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l>>Int32FromInt32(12)&uint32(0x3f)] + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l>>Int32FromInt32(6)&uint32(0x3f)] + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l&uint32(0x3f)] + l = **(**Tuint32_t)(__ccgo_up(bp + 140)) << int32(2) + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l>>Int32FromInt32(12)&uint32(0x3f)] + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l>>Int32FromInt32(6)&uint32(0x3f)] + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l&uint32(0x3f)] + **(**uint8)(__ccgo_up(p)) = uint8(0) + return output +} + +func X__crypt_des(tls *TLS, key uintptr, setting uintptr, output uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v setting=%v output=%v, (%v:)", tls, key, setting, output, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var p, retval, test_hash, test_key, test_setting, v1 uintptr + var _ /* test_buf at bp+0 */ [21]int8 + _, _, _, _, _, _ = p, retval, test_hash, test_key, test_setting, v1 + test_key = __ccgo_ts + 72 + test_setting = __ccgo_ts + 93 + test_hash = __ccgo_ts + 103 + if int32(**(**int8)(__ccgo_up(setting))) != int32('_') { + test_setting = __ccgo_ts + 124 + test_hash = __ccgo_ts + 127 + } + /* + * Hash the supplied password. + */ + retval = __crypt_extended_r_uut(tls, key, setting, output) + /* + * Perform a quick self-test. It is important that we make both calls + * to _crypt_extended_r_uut() from the same scope such that they likely + * use the same stack locations, which makes the second call overwrite + * the first call's sensitive data on the stack and makes it more + * likely that any alignment related issues would be detected. + */ + p = __crypt_extended_r_uut(tls, test_key, test_setting, bp) + if p != 0 && !(Xstrcmp(tls, p, test_hash) != 0) && retval != 0 { + return retval + } + if int32(**(**int8)(__ccgo_up(setting))) == int32('*') { + v1 = __ccgo_ts + 141 + } else { + v1 = __ccgo_ts + 70 + } + return v1 +} + +const KEY_MAX = 30000 +const SALT_MAX = 8 + +/* public domain md5 implementation based on rfc1321 and libtomcrypt */ + +type Tmd5 = struct { + Flen1 Tuint64_t + Fh [4]Tuint32_t + Fbuf [64]Tuint8_t +} + +func _rol(tls *TLS, n Tuint32_t, k int32) (r Tuint32_t) { + return n<>(Int32FromInt32(32)-k) +} + +var _tab = [64]Tuint32_t{ + 0: uint32(0xd76aa478), + 1: uint32(0xe8c7b756), + 2: uint32(0x242070db), + 3: uint32(0xc1bdceee), + 4: uint32(0xf57c0faf), + 5: uint32(0x4787c62a), + 6: uint32(0xa8304613), + 7: uint32(0xfd469501), + 8: uint32(0x698098d8), + 9: uint32(0x8b44f7af), + 10: uint32(0xffff5bb1), + 11: uint32(0x895cd7be), + 12: uint32(0x6b901122), + 13: uint32(0xfd987193), + 14: uint32(0xa679438e), + 15: uint32(0x49b40821), + 16: uint32(0xf61e2562), + 17: uint32(0xc040b340), + 18: uint32(0x265e5a51), + 19: uint32(0xe9b6c7aa), + 20: uint32(0xd62f105d), + 21: uint32(0x02441453), + 22: uint32(0xd8a1e681), + 23: uint32(0xe7d3fbc8), + 24: uint32(0x21e1cde6), + 25: uint32(0xc33707d6), + 26: uint32(0xf4d50d87), + 27: uint32(0x455a14ed), + 28: uint32(0xa9e3e905), + 29: uint32(0xfcefa3f8), + 30: uint32(0x676f02d9), + 31: uint32(0x8d2a4c8a), + 32: uint32(0xfffa3942), + 33: uint32(0x8771f681), + 34: uint32(0x6d9d6122), + 35: uint32(0xfde5380c), + 36: uint32(0xa4beea44), + 37: uint32(0x4bdecfa9), + 38: uint32(0xf6bb4b60), + 39: uint32(0xbebfbc70), + 40: uint32(0x289b7ec6), + 41: uint32(0xeaa127fa), + 42: uint32(0xd4ef3085), + 43: uint32(0x04881d05), + 44: uint32(0xd9d4d039), + 45: uint32(0xe6db99e5), + 46: uint32(0x1fa27cf8), + 47: uint32(0xc4ac5665), + 48: uint32(0xf4292244), + 49: uint32(0x432aff97), + 50: uint32(0xab9423a7), + 51: uint32(0xfc93a039), + 52: uint32(0x655b59c3), + 53: uint32(0x8f0ccc92), + 54: uint32(0xffeff47d), + 55: uint32(0x85845dd1), + 56: uint32(0x6fa87e4f), + 57: uint32(0xfe2ce6e0), + 58: uint32(0xa3014314), + 59: uint32(0x4e0811a1), + 60: uint32(0xf7537e82), + 61: uint32(0xbd3af235), + 62: uint32(0x2ad7d2bb), + 63: uint32(0xeb86d391), +} + +func _processblock(tls *TLS, s uintptr, buf uintptr) { + bp := tls.Alloc(64) + defer tls.Free(64) + var a, b, c, d, i Tuint32_t + var _ /* W at bp+0 */ [16]Tuint32_t + _, _, _, _, _ = a, b, c, d, i + i = uint32(0) + for { + if !(i < uint32(16)) { + break + } + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[i] = uint32(**(**Tuint8_t)(__ccgo_up(buf + uintptr(uint32(4)*i)))) + **(**Tuint32_t)(__ccgo_up(bp + uintptr(i)*4)) |= uint32(**(**Tuint8_t)(__ccgo_up(buf + uintptr(uint32(4)*i+uint32(1))))) << int32(8) + **(**Tuint32_t)(__ccgo_up(bp + uintptr(i)*4)) |= uint32(**(**Tuint8_t)(__ccgo_up(buf + uintptr(uint32(4)*i+uint32(2))))) << int32(16) + **(**Tuint32_t)(__ccgo_up(bp + uintptr(i)*4)) |= uint32(**(**Tuint8_t)(__ccgo_up(buf + uintptr(uint32(4)*i+uint32(3))))) << int32(24) + goto _1 + _1: + ; + i = i + 1 + } + a = **(**Tuint32_t)(__ccgo_up(s + 8)) + b = **(**Tuint32_t)(__ccgo_up(s + 8 + 1*4)) + c = **(**Tuint32_t)(__ccgo_up(s + 8 + 2*4)) + d = **(**Tuint32_t)(__ccgo_up(s + 8 + 3*4)) + i = uint32(0) + for i < uint32(16) { + a = a + (d ^ b&(c^d) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[i] + _tab[i]) + a = _rol(tls, a, int32(7)) + b + i = i + 1 + d = d + (c ^ a&(b^c) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[i] + _tab[i]) + d = _rol(tls, d, int32(12)) + a + i = i + 1 + c = c + (b ^ d&(a^b) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[i] + _tab[i]) + c = _rol(tls, c, int32(17)) + d + i = i + 1 + b = b + (a ^ c&(d^a) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[i] + _tab[i]) + b = _rol(tls, b, int32(22)) + c + i = i + 1 + } + for i < uint32(32) { + a = a + (c ^ d&(c^b) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[(uint32(5)*i+uint32(1))%uint32(16)] + _tab[i]) + a = _rol(tls, a, int32(5)) + b + i = i + 1 + d = d + (b ^ c&(b^a) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[(uint32(5)*i+uint32(1))%uint32(16)] + _tab[i]) + d = _rol(tls, d, int32(9)) + a + i = i + 1 + c = c + (a ^ b&(a^d) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[(uint32(5)*i+uint32(1))%uint32(16)] + _tab[i]) + c = _rol(tls, c, int32(14)) + d + i = i + 1 + b = b + (d ^ a&(d^c) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[(uint32(5)*i+uint32(1))%uint32(16)] + _tab[i]) + b = _rol(tls, b, int32(20)) + c + i = i + 1 + } + for i < uint32(48) { + a = a + (b ^ c ^ d + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[(uint32(3)*i+uint32(5))%uint32(16)] + _tab[i]) + a = _rol(tls, a, int32(4)) + b + i = i + 1 + d = d + (a ^ b ^ c + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[(uint32(3)*i+uint32(5))%uint32(16)] + _tab[i]) + d = _rol(tls, d, int32(11)) + a + i = i + 1 + c = c + (d ^ a ^ b + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[(uint32(3)*i+uint32(5))%uint32(16)] + _tab[i]) + c = _rol(tls, c, int32(16)) + d + i = i + 1 + b = b + (c ^ d ^ a + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[(uint32(3)*i+uint32(5))%uint32(16)] + _tab[i]) + b = _rol(tls, b, int32(23)) + c + i = i + 1 + } + for i < uint32(64) { + a = a + (c ^ (b | ^d) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[uint32(7)*i%uint32(16)] + _tab[i]) + a = _rol(tls, a, int32(6)) + b + i = i + 1 + d = d + (b ^ (a | ^c) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[uint32(7)*i%uint32(16)] + _tab[i]) + d = _rol(tls, d, int32(10)) + a + i = i + 1 + c = c + (a ^ (d | ^b) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[uint32(7)*i%uint32(16)] + _tab[i]) + c = _rol(tls, c, int32(15)) + d + i = i + 1 + b = b + (d ^ (c | ^a) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[uint32(7)*i%uint32(16)] + _tab[i]) + b = _rol(tls, b, int32(21)) + c + i = i + 1 + } + **(**Tuint32_t)(__ccgo_up(s + 8)) += a + **(**Tuint32_t)(__ccgo_up(s + 8 + 1*4)) += b + **(**Tuint32_t)(__ccgo_up(s + 8 + 2*4)) += c + **(**Tuint32_t)(__ccgo_up(s + 8 + 3*4)) += d +} + +func _pad(tls *TLS, s uintptr) { + var r, v1 uint32 + _, _ = r, v1 + r = uint32((*Tmd5)(unsafe.Pointer(s)).Flen1 % uint64(64)) + v1 = r + r = r + 1 + **(**Tuint8_t)(__ccgo_up(s + 24 + uintptr(v1))) = uint8(0x80) + if r > uint32(56) { + Xmemset(tls, s+24+uintptr(r), 0, uint32(64)-r) + r = uint32(0) + _processblock(tls, s, s+24) + } + Xmemset(tls, s+24+uintptr(r), 0, uint32(56)-r) + **(**Tuint64_t)(__ccgo_up(s)) *= uint64(8) + **(**Tuint8_t)(__ccgo_up(s + 24 + 56)) = uint8((*Tmd5)(unsafe.Pointer(s)).Flen1) + **(**Tuint8_t)(__ccgo_up(s + 24 + 57)) = uint8((*Tmd5)(unsafe.Pointer(s)).Flen1 >> int32(8)) + **(**Tuint8_t)(__ccgo_up(s + 24 + 58)) = uint8((*Tmd5)(unsafe.Pointer(s)).Flen1 >> int32(16)) + **(**Tuint8_t)(__ccgo_up(s + 24 + 59)) = uint8((*Tmd5)(unsafe.Pointer(s)).Flen1 >> int32(24)) + **(**Tuint8_t)(__ccgo_up(s + 24 + 60)) = uint8((*Tmd5)(unsafe.Pointer(s)).Flen1 >> int32(32)) + **(**Tuint8_t)(__ccgo_up(s + 24 + 61)) = uint8((*Tmd5)(unsafe.Pointer(s)).Flen1 >> int32(40)) + **(**Tuint8_t)(__ccgo_up(s + 24 + 62)) = uint8((*Tmd5)(unsafe.Pointer(s)).Flen1 >> int32(48)) + **(**Tuint8_t)(__ccgo_up(s + 24 + 63)) = uint8((*Tmd5)(unsafe.Pointer(s)).Flen1 >> int32(56)) + _processblock(tls, s, s+24) +} + +func _md5_init(tls *TLS, s uintptr) { + (*Tmd5)(unsafe.Pointer(s)).Flen1 = uint64(0) + **(**Tuint32_t)(__ccgo_up(s + 8)) = uint32(0x67452301) + **(**Tuint32_t)(__ccgo_up(s + 8 + 1*4)) = uint32(0xefcdab89) + **(**Tuint32_t)(__ccgo_up(s + 8 + 2*4)) = uint32(0x98badcfe) + **(**Tuint32_t)(__ccgo_up(s + 8 + 3*4)) = uint32(0x10325476) +} + +func _md5_sum(tls *TLS, s uintptr, md uintptr) { + var i int32 + _ = i + _pad(tls, s) + i = 0 + for { + if !(i < int32(4)) { + break + } + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(4)*i))) = uint8(**(**Tuint32_t)(__ccgo_up(s + 8 + uintptr(i)*4))) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(4)*i+int32(1)))) = uint8(**(**Tuint32_t)(__ccgo_up(s + 8 + uintptr(i)*4)) >> int32(8)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(4)*i+int32(2)))) = uint8(**(**Tuint32_t)(__ccgo_up(s + 8 + uintptr(i)*4)) >> int32(16)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(4)*i+int32(3)))) = uint8(**(**Tuint32_t)(__ccgo_up(s + 8 + uintptr(i)*4)) >> int32(24)) + goto _1 + _1: + ; + i = i + 1 + } +} + +func _md5_update(tls *TLS, s uintptr, m uintptr, len1 uint32) { + var p uintptr + var r uint32 + _, _ = p, r + p = m + r = uint32((*Tmd5)(unsafe.Pointer(s)).Flen1 % uint64(64)) + **(**Tuint64_t)(__ccgo_up(s)) += uint64(len1) + if r != 0 { + if len1 < uint32(64)-r { + Xmemcpy(tls, s+24+uintptr(r), p, len1) + return + } + Xmemcpy(tls, s+24+uintptr(r), p, uint32(64)-r) + len1 = len1 - (uint32(64) - r) + p = p + uintptr(uint32(64)-r) + _processblock(tls, s, s+24) + } + for { + if !(len1 >= uint32(64)) { + break + } + _processblock(tls, s, p) + goto _1 + _1: + ; + len1 = len1 - uint32(64) + p = p + uintptr(64) + } + Xmemcpy(tls, s+24, p, len1) +} + +/*- + * Copyright (c) 2003 Poul-Henning Kamp + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + */ + +/* key limit is not part of the original design, added for DoS protection */ + +var _b64 = [65]uint8{'.', '/', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'} + +func _to64(tls *TLS, s uintptr, u uint32, n int32) (r uintptr) { + var v1 int32 + var v2 uintptr + _, _ = v1, v2 + for { + n = n - 1 + v1 = n + if !(v1 >= 0) { + break + } + v2 = s + s = s + 1 + **(**int8)(__ccgo_up(v2)) = Int8FromUint8(_b64[u%uint32(64)]) + u = u / uint32(64) + } + return s +} + +func _md5crypt(tls *TLS, key uintptr, setting uintptr, output uintptr) (r uintptr) { + bp := tls.Alloc(112) + defer tls.Free(112) + var i, klen, slen uint32 + var p, salt, v5 uintptr + var _ /* ctx at bp+0 */ Tmd5 + var _ /* md at bp+88 */ [16]uint8 + _, _, _, _, _, _ = i, klen, p, salt, slen, v5 + /* reject large keys */ + klen = Xstrnlen(tls, key, Uint32FromInt32(Int32FromInt32(KEY_MAX)+Int32FromInt32(1))) + if klen > uint32(KEY_MAX) { + return uintptr(0) + } + /* setting: $1$salt$ (closing $ is optional) */ + if Xstrncmp(tls, setting, __ccgo_ts+143, uint32(3)) != 0 { + return uintptr(0) + } + salt = setting + uintptr(3) + i = uint32(0) + for { + if !(i < uint32(SALT_MAX) && **(**int8)(__ccgo_up(salt + uintptr(i))) != 0 && int32(**(**int8)(__ccgo_up(salt + uintptr(i)))) != int32('$')) { + break + } + goto _1 + _1: + ; + i = i + 1 + } + slen = i + /* md5(key salt key) */ + _md5_init(tls, bp) + _md5_update(tls, bp, key, klen) + _md5_update(tls, bp, salt, slen) + _md5_update(tls, bp, key, klen) + _md5_sum(tls, bp, bp+88) + /* md5(key $1$ salt repeated-md weird-key[0]-0) */ + _md5_init(tls, bp) + _md5_update(tls, bp, key, klen) + _md5_update(tls, bp, setting, uint32(3)+slen) + i = klen + for { + if !(i > uint32(16)) { + break + } + _md5_update(tls, bp, bp+88, uint32(16)) + goto _2 + _2: + ; + i = i - uint32(16) + } + _md5_update(tls, bp, bp+88, i) + (**(**[16]uint8)(__ccgo_up(bp + 88)))[0] = uint8(0) + i = klen + for { + if !(i != 0) { + break + } + if i&uint32(1) != 0 { + _md5_update(tls, bp, bp+88, uint32(1)) + } else { + _md5_update(tls, bp, key, uint32(1)) + } + goto _3 + _3: + ; + i = i >> uint32(1) + } + _md5_sum(tls, bp, bp+88) + /* md = f(md, key, salt) iteration */ + i = uint32(0) + for { + if !(i < uint32(1000)) { + break + } + _md5_init(tls, bp) + if i%uint32(2) != 0 { + _md5_update(tls, bp, key, klen) + } else { + _md5_update(tls, bp, bp+88, uint32(16)) + } + if i%uint32(3) != 0 { + _md5_update(tls, bp, salt, slen) + } + if i%uint32(7) != 0 { + _md5_update(tls, bp, key, klen) + } + if i%uint32(2) != 0 { + _md5_update(tls, bp, bp+88, uint32(16)) + } else { + _md5_update(tls, bp, key, klen) + } + _md5_sum(tls, bp, bp+88) + goto _4 + _4: + ; + i = i + 1 + } + /* output is $1$salt$hash */ + Xmemcpy(tls, output, setting, uint32(3)+slen) + p = output + uintptr(3) + uintptr(slen) + v5 = p + p = p + 1 + **(**int8)(__ccgo_up(v5)) = int8('$') + i = uint32(0) + for { + if !(i < uint32(5)) { + break + } + p = _to64(tls, p, Uint32FromInt32(Int32FromUint8((**(**[16]uint8)(__ccgo_up(bp + 88)))[**(**uint8)(__ccgo_up(uintptr(unsafe.Pointer(&_perm)) + uintptr(i)*3))])< %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var p, q uintptr + var _ /* testbuf at bp+0 */ [64]int8 + _, _ = p, q + p = _md5crypt(tls, key, setting, output) + /* self test and stack cleanup */ + q = _md5crypt(tls, uintptr(unsafe.Pointer(&_testkey)), uintptr(unsafe.Pointer(&_testsetting)), bp) + if !(p != 0) || q != bp || Xmemcmp(tls, bp, uintptr(unsafe.Pointer(&_testhash)), uint32(35)) != 0 { + return __ccgo_ts + 70 + } + return p +} + +var _testkey = [18]int8{'X', 'y', '0', '1', '@', '#', 1, 2, -128, 127, -1, 13, 10, -127, 9, ' ', '!'} + +var _testsetting = [13]int8{'$', '1', '$', 'a', 'b', 'c', 'd', '0', '1', '2', '3', '$'} + +var _testhash = [35]int8{'$', '1', '$', 'a', 'b', 'c', 'd', '0', '1', '2', '3', '$', '9', 'Q', 'c', 'g', '8', 'D', 'y', 'v', 'i', 'e', 'k', 'V', '3', 't', 'D', 'G', 'M', 'Z', 'y', 'n', 'J', '1'} + +func X__crypt_r(tls *TLS, key uintptr, salt uintptr, data uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v salt=%v data=%v, (%v:)", tls, key, salt, data, origin(2)) + defer func() { trc("-> %v", r) }() + } + var output uintptr + _ = output + /* Per the crypt_r API, the caller has provided a pointer to + * struct crypt_data; however, this implementation does not + * use the structure to store any internal state, and treats + * it purely as a char buffer for storing the result. */ + output = data + if int32(**(**int8)(__ccgo_up(salt))) == int32('$') && **(**int8)(__ccgo_up(salt + 1)) != 0 && **(**int8)(__ccgo_up(salt + 2)) != 0 { + if int32(**(**int8)(__ccgo_up(salt + 1))) == int32('1') && int32(**(**int8)(__ccgo_up(salt + 2))) == int32('$') { + return X__crypt_md5(tls, key, salt, output) + } + if int32(**(**int8)(__ccgo_up(salt + 1))) == int32('2') && int32(**(**int8)(__ccgo_up(salt + 3))) == int32('$') { + return X__crypt_blowfish(tls, key, salt, output) + } + if int32(**(**int8)(__ccgo_up(salt + 1))) == int32('5') && int32(**(**int8)(__ccgo_up(salt + 2))) == int32('$') { + return X__crypt_sha256(tls, key, salt, output) + } + if int32(**(**int8)(__ccgo_up(salt + 1))) == int32('6') && int32(**(**int8)(__ccgo_up(salt + 2))) == int32('$') { + return X__crypt_sha512(tls, key, salt, output) + } + } + return X__crypt_des(tls, key, salt, output) +} + +func Xcrypt_r(tls *TLS, key uintptr, salt uintptr, data uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v salt=%v data=%v, (%v:)", tls, key, salt, data, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__crypt_r(tls, key, salt, data) +} + +const KEY_MAX1 = 256 +const ROUNDS_DEFAULT = 5000 +const ROUNDS_MAX = 9999999 +const ROUNDS_MIN = 1000 +const SALT_MAX1 = 16 + +/* public domain sha256 implementation based on fips180-3 */ + +type Tsha256 = struct { + Flen1 Tuint64_t + Fh [8]Tuint32_t + Fbuf [64]Tuint8_t +} + +func _ror(tls *TLS, n Tuint32_t, k int32) (r Tuint32_t) { + return n>>k | n<<(Int32FromInt32(32)-k) +} + +var _K = [64]Tuint32_t{ + 0: uint32(0x428a2f98), + 1: uint32(0x71374491), + 2: uint32(0xb5c0fbcf), + 3: uint32(0xe9b5dba5), + 4: uint32(0x3956c25b), + 5: uint32(0x59f111f1), + 6: uint32(0x923f82a4), + 7: uint32(0xab1c5ed5), + 8: uint32(0xd807aa98), + 9: uint32(0x12835b01), + 10: uint32(0x243185be), + 11: uint32(0x550c7dc3), + 12: uint32(0x72be5d74), + 13: uint32(0x80deb1fe), + 14: uint32(0x9bdc06a7), + 15: uint32(0xc19bf174), + 16: uint32(0xe49b69c1), + 17: uint32(0xefbe4786), + 18: uint32(0x0fc19dc6), + 19: uint32(0x240ca1cc), + 20: uint32(0x2de92c6f), + 21: uint32(0x4a7484aa), + 22: uint32(0x5cb0a9dc), + 23: uint32(0x76f988da), + 24: uint32(0x983e5152), + 25: uint32(0xa831c66d), + 26: uint32(0xb00327c8), + 27: uint32(0xbf597fc7), + 28: uint32(0xc6e00bf3), + 29: uint32(0xd5a79147), + 30: uint32(0x06ca6351), + 31: uint32(0x14292967), + 32: uint32(0x27b70a85), + 33: uint32(0x2e1b2138), + 34: uint32(0x4d2c6dfc), + 35: uint32(0x53380d13), + 36: uint32(0x650a7354), + 37: uint32(0x766a0abb), + 38: uint32(0x81c2c92e), + 39: uint32(0x92722c85), + 40: uint32(0xa2bfe8a1), + 41: uint32(0xa81a664b), + 42: uint32(0xc24b8b70), + 43: uint32(0xc76c51a3), + 44: uint32(0xd192e819), + 45: uint32(0xd6990624), + 46: uint32(0xf40e3585), + 47: uint32(0x106aa070), + 48: uint32(0x19a4c116), + 49: uint32(0x1e376c08), + 50: uint32(0x2748774c), + 51: uint32(0x34b0bcb5), + 52: uint32(0x391c0cb3), + 53: uint32(0x4ed8aa4a), + 54: uint32(0x5b9cca4f), + 55: uint32(0x682e6ff3), + 56: uint32(0x748f82ee), + 57: uint32(0x78a5636f), + 58: uint32(0x84c87814), + 59: uint32(0x8cc70208), + 60: uint32(0x90befffa), + 61: uint32(0xa4506ceb), + 62: uint32(0xbef9a3f7), + 63: uint32(0xc67178f2), +} + +func _processblock1(tls *TLS, s uintptr, buf uintptr) { + bp := tls.Alloc(256) + defer tls.Free(256) + var a, b, c, d, e, f, g, h, t1, t2 Tuint32_t + var i int32 + var _ /* W at bp+0 */ [64]Tuint32_t + _, _, _, _, _, _, _, _, _, _, _ = a, b, c, d, e, f, g, h, i, t1, t2 + i = 0 + for { + if !(i < int32(16)) { + break + } + (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i] = uint32(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(4)*i)))) << int32(24) + **(**Tuint32_t)(__ccgo_up(bp + uintptr(i)*4)) |= uint32(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(4)*i+int32(1))))) << int32(16) + **(**Tuint32_t)(__ccgo_up(bp + uintptr(i)*4)) |= uint32(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(4)*i+int32(2))))) << int32(8) + **(**Tuint32_t)(__ccgo_up(bp + uintptr(i)*4)) |= uint32(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(4)*i+int32(3))))) + goto _1 + _1: + ; + i = i + 1 + } + for { + if !(i < int32(64)) { + break + } + (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i] = _ror(tls, (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i-int32(2)], int32(17)) ^ _ror(tls, (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i-int32(2)], int32(19)) ^ (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i-int32(2)]>>Int32FromInt32(10) + (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i-int32(7)] + (_ror(tls, (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i-int32(15)], int32(7)) ^ _ror(tls, (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i-int32(15)], int32(18)) ^ (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i-int32(15)]>>Int32FromInt32(3)) + (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i-int32(16)] + goto _2 + _2: + ; + i = i + 1 + } + a = **(**Tuint32_t)(__ccgo_up(s + 8)) + b = **(**Tuint32_t)(__ccgo_up(s + 8 + 1*4)) + c = **(**Tuint32_t)(__ccgo_up(s + 8 + 2*4)) + d = **(**Tuint32_t)(__ccgo_up(s + 8 + 3*4)) + e = **(**Tuint32_t)(__ccgo_up(s + 8 + 4*4)) + f = **(**Tuint32_t)(__ccgo_up(s + 8 + 5*4)) + g = **(**Tuint32_t)(__ccgo_up(s + 8 + 6*4)) + h = **(**Tuint32_t)(__ccgo_up(s + 8 + 7*4)) + i = 0 + for { + if !(i < int32(64)) { + break + } + t1 = h + (_ror(tls, e, int32(6)) ^ _ror(tls, e, int32(11)) ^ _ror(tls, e, int32(25))) + (g ^ e&(f^g)) + _K[i] + (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i] + t2 = _ror(tls, a, int32(2)) ^ _ror(tls, a, int32(13)) ^ _ror(tls, a, int32(22)) + (a&b | c&(a|b)) + h = g + g = f + f = e + e = d + t1 + d = c + c = b + b = a + a = t1 + t2 + goto _3 + _3: + ; + i = i + 1 + } + **(**Tuint32_t)(__ccgo_up(s + 8)) += a + **(**Tuint32_t)(__ccgo_up(s + 8 + 1*4)) += b + **(**Tuint32_t)(__ccgo_up(s + 8 + 2*4)) += c + **(**Tuint32_t)(__ccgo_up(s + 8 + 3*4)) += d + **(**Tuint32_t)(__ccgo_up(s + 8 + 4*4)) += e + **(**Tuint32_t)(__ccgo_up(s + 8 + 5*4)) += f + **(**Tuint32_t)(__ccgo_up(s + 8 + 6*4)) += g + **(**Tuint32_t)(__ccgo_up(s + 8 + 7*4)) += h +} + +func _pad1(tls *TLS, s uintptr) { + var r, v1 uint32 + _, _ = r, v1 + r = uint32((*Tsha256)(unsafe.Pointer(s)).Flen1 % uint64(64)) + v1 = r + r = r + 1 + **(**Tuint8_t)(__ccgo_up(s + 40 + uintptr(v1))) = uint8(0x80) + if r > uint32(56) { + Xmemset(tls, s+40+uintptr(r), 0, uint32(64)-r) + r = uint32(0) + _processblock1(tls, s, s+40) + } + Xmemset(tls, s+40+uintptr(r), 0, uint32(56)-r) + **(**Tuint64_t)(__ccgo_up(s)) *= uint64(8) + **(**Tuint8_t)(__ccgo_up(s + 40 + 56)) = uint8((*Tsha256)(unsafe.Pointer(s)).Flen1 >> int32(56)) + **(**Tuint8_t)(__ccgo_up(s + 40 + 57)) = uint8((*Tsha256)(unsafe.Pointer(s)).Flen1 >> int32(48)) + **(**Tuint8_t)(__ccgo_up(s + 40 + 58)) = uint8((*Tsha256)(unsafe.Pointer(s)).Flen1 >> int32(40)) + **(**Tuint8_t)(__ccgo_up(s + 40 + 59)) = uint8((*Tsha256)(unsafe.Pointer(s)).Flen1 >> int32(32)) + **(**Tuint8_t)(__ccgo_up(s + 40 + 60)) = uint8((*Tsha256)(unsafe.Pointer(s)).Flen1 >> int32(24)) + **(**Tuint8_t)(__ccgo_up(s + 40 + 61)) = uint8((*Tsha256)(unsafe.Pointer(s)).Flen1 >> int32(16)) + **(**Tuint8_t)(__ccgo_up(s + 40 + 62)) = uint8((*Tsha256)(unsafe.Pointer(s)).Flen1 >> int32(8)) + **(**Tuint8_t)(__ccgo_up(s + 40 + 63)) = uint8((*Tsha256)(unsafe.Pointer(s)).Flen1) + _processblock1(tls, s, s+40) +} + +func _sha256_init(tls *TLS, s uintptr) { + (*Tsha256)(unsafe.Pointer(s)).Flen1 = uint64(0) + **(**Tuint32_t)(__ccgo_up(s + 8)) = uint32(0x6a09e667) + **(**Tuint32_t)(__ccgo_up(s + 8 + 1*4)) = uint32(0xbb67ae85) + **(**Tuint32_t)(__ccgo_up(s + 8 + 2*4)) = uint32(0x3c6ef372) + **(**Tuint32_t)(__ccgo_up(s + 8 + 3*4)) = uint32(0xa54ff53a) + **(**Tuint32_t)(__ccgo_up(s + 8 + 4*4)) = uint32(0x510e527f) + **(**Tuint32_t)(__ccgo_up(s + 8 + 5*4)) = uint32(0x9b05688c) + **(**Tuint32_t)(__ccgo_up(s + 8 + 6*4)) = uint32(0x1f83d9ab) + **(**Tuint32_t)(__ccgo_up(s + 8 + 7*4)) = uint32(0x5be0cd19) +} + +func _sha256_sum(tls *TLS, s uintptr, md uintptr) { + var i int32 + _ = i + _pad1(tls, s) + i = 0 + for { + if !(i < int32(8)) { + break + } + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(4)*i))) = uint8(**(**Tuint32_t)(__ccgo_up(s + 8 + uintptr(i)*4)) >> int32(24)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(4)*i+int32(1)))) = uint8(**(**Tuint32_t)(__ccgo_up(s + 8 + uintptr(i)*4)) >> int32(16)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(4)*i+int32(2)))) = uint8(**(**Tuint32_t)(__ccgo_up(s + 8 + uintptr(i)*4)) >> int32(8)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(4)*i+int32(3)))) = uint8(**(**Tuint32_t)(__ccgo_up(s + 8 + uintptr(i)*4))) + goto _1 + _1: + ; + i = i + 1 + } +} + +func _sha256_update(tls *TLS, s uintptr, m uintptr, len1 uint32) { + var p uintptr + var r uint32 + _, _ = p, r + p = m + r = uint32((*Tsha256)(unsafe.Pointer(s)).Flen1 % uint64(64)) + **(**Tuint64_t)(__ccgo_up(s)) += uint64(len1) + if r != 0 { + if len1 < uint32(64)-r { + Xmemcpy(tls, s+40+uintptr(r), p, len1) + return + } + Xmemcpy(tls, s+40+uintptr(r), p, uint32(64)-r) + len1 = len1 - (uint32(64) - r) + p = p + uintptr(uint32(64)-r) + _processblock1(tls, s, s+40) + } + for { + if !(len1 >= uint32(64)) { + break + } + _processblock1(tls, s, p) + goto _1 + _1: + ; + len1 = len1 - uint32(64) + p = p + uintptr(64) + } + Xmemcpy(tls, s+40, p, len1) +} + +var _b641 = [65]uint8{'.', '/', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'} + +func _to641(tls *TLS, s uintptr, u uint32, n int32) (r uintptr) { + var v1 int32 + var v2 uintptr + _, _ = v1, v2 + for { + n = n - 1 + v1 = n + if !(v1 >= 0) { + break + } + v2 = s + s = s + 1 + **(**int8)(__ccgo_up(v2)) = Int8FromUint8(_b641[u%uint32(64)]) + u = u / uint32(64) + } + return s +} + +/* key limit is not part of the original design, added for DoS protection. + * rounds limit has been lowered (versus the reference/spec), also for DoS + * protection. runtime is O(klen^2 + klen*rounds) */ + +// C documentation +// +// /* hash n bytes of the repeated md message digest */ +func _hashmd(tls *TLS, s uintptr, n uint32, md uintptr) { + var i uint32 + _ = i + i = n + for { + if !(i > uint32(32)) { + break + } + _sha256_update(tls, s, md, uint32(32)) + goto _1 + _1: + ; + i = i - uint32(32) + } + _sha256_update(tls, s, md, i) +} + +func _sha256crypt(tls *TLS, key uintptr, setting uintptr, output uintptr) (r1 uintptr) { + bp := tls.Alloc(256) + defer tls.Free(256) + var i, klen, r, slen, u uint32 + var p, salt uintptr + var _ /* ctx at bp+0 */ Tsha256 + var _ /* end at bp+220 */ uintptr + var _ /* kmd at bp+136 */ [32]uint8 + var _ /* md at bp+104 */ [32]uint8 + var _ /* rounds at bp+200 */ [20]int8 + var _ /* smd at bp+168 */ [32]uint8 + _, _, _, _, _, _, _ = i, klen, p, r, salt, slen, u + **(**[20]int8)(__ccgo_up(bp + 200)) = [20]int8{} + /* reject large keys */ + klen = Xstrnlen(tls, key, Uint32FromInt32(Int32FromInt32(KEY_MAX1)+Int32FromInt32(1))) + if klen > uint32(KEY_MAX1) { + return uintptr(0) + } + /* setting: $5$rounds=n$salt$ (rounds=n$ and closing $ are optional) */ + if Xstrncmp(tls, setting, __ccgo_ts+147, uint32(3)) != 0 { + return uintptr(0) + } + salt = setting + uintptr(3) + r = uint32(ROUNDS_DEFAULT) + if Xstrncmp(tls, salt, __ccgo_ts+151, Uint32FromInt64(8)-Uint32FromInt32(1)) == 0 { + /* + * this is a deviation from the reference: + * bad rounds setting is rejected if it is + * - empty + * - unterminated (missing '$') + * - begins with anything but a decimal digit + * the reference implementation treats these bad + * rounds as part of the salt or parse them with + * strtoul semantics which may cause problems + * including non-portable hashes that depend on + * the host's value of ULONG_MAX. + */ + salt = salt + uintptr(Uint32FromInt64(8)-Uint32FromInt32(1)) + if !(BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(salt)))-Uint32FromUint8('0') < Uint32FromInt32(10)) != 0) { + return uintptr(0) + } + u = Xstrtoul(tls, salt, bp+220, int32(10)) + if int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 220))))) != int32('$') { + return uintptr(0) + } + salt = **(**uintptr)(__ccgo_up(bp + 220)) + uintptr(1) + if u < uint32(ROUNDS_MIN) { + r = uint32(ROUNDS_MIN) + } else { + if u > uint32(ROUNDS_MAX) { + return uintptr(0) + } else { + r = u + } + } + /* needed when rounds is zero prefixed or out of bounds */ + Xsprintf(tls, bp+200, __ccgo_ts+159, VaList(bp+232, r)) + } + i = uint32(0) + for { + if !(i < uint32(SALT_MAX1) && **(**int8)(__ccgo_up(salt + uintptr(i))) != 0 && int32(**(**int8)(__ccgo_up(salt + uintptr(i)))) != int32('$')) { + break + } + /* reject characters that interfere with /etc/shadow parsing */ + if int32(**(**int8)(__ccgo_up(salt + uintptr(i)))) == int32('\n') || int32(**(**int8)(__ccgo_up(salt + uintptr(i)))) == int32(':') { + return uintptr(0) + } + goto _1 + _1: + ; + i = i + 1 + } + slen = i + /* B = sha(key salt key) */ + _sha256_init(tls, bp) + _sha256_update(tls, bp, key, klen) + _sha256_update(tls, bp, salt, slen) + _sha256_update(tls, bp, key, klen) + _sha256_sum(tls, bp, bp+104) + /* A = sha(key salt repeat-B alternate-B-key) */ + _sha256_init(tls, bp) + _sha256_update(tls, bp, key, klen) + _sha256_update(tls, bp, salt, slen) + _hashmd(tls, bp, klen, bp+104) + i = klen + for { + if !(i > uint32(0)) { + break + } + if i&uint32(1) != 0 { + _sha256_update(tls, bp, bp+104, uint32(32)) + } else { + _sha256_update(tls, bp, key, klen) + } + goto _2 + _2: + ; + i = i >> uint32(1) + } + _sha256_sum(tls, bp, bp+104) + /* DP = sha(repeat-key), this step takes O(klen^2) time */ + _sha256_init(tls, bp) + i = uint32(0) + for { + if !(i < klen) { + break + } + _sha256_update(tls, bp, key, klen) + goto _3 + _3: + ; + i = i + 1 + } + _sha256_sum(tls, bp, bp+136) + /* DS = sha(repeat-salt) */ + _sha256_init(tls, bp) + i = uint32(0) + for { + if !(i < Uint32FromInt32(int32(16)+Int32FromUint8((**(**[32]uint8)(__ccgo_up(bp + 104)))[0]))) { + break + } + _sha256_update(tls, bp, salt, slen) + goto _4 + _4: + ; + i = i + 1 + } + _sha256_sum(tls, bp, bp+168) + /* iterate A = f(A,DP,DS), this step takes O(rounds*klen) time */ + i = uint32(0) + for { + if !(i < r) { + break + } + _sha256_init(tls, bp) + if i%uint32(2) != 0 { + _hashmd(tls, bp, klen, bp+136) + } else { + _sha256_update(tls, bp, bp+104, uint32(32)) + } + if i%uint32(3) != 0 { + _sha256_update(tls, bp, bp+168, slen) + } + if i%uint32(7) != 0 { + _hashmd(tls, bp, klen, bp+136) + } + if i%uint32(2) != 0 { + _sha256_update(tls, bp, bp+104, uint32(32)) + } else { + _hashmd(tls, bp, klen, bp+136) + } + _sha256_sum(tls, bp, bp+104) + goto _5 + _5: + ; + i = i + 1 + } + /* output is $5$rounds=n$salt$hash */ + p = output + p = p + uintptr(Xsprintf(tls, p, __ccgo_ts+170, VaList(bp+232, bp+200, slen, salt))) + i = uint32(0) + for { + if !(i < uint32(10)) { + break + } + p = _to641(tls, p, Uint32FromInt32(Int32FromUint8((**(**[32]uint8)(__ccgo_up(bp + 104)))[**(**uint8)(__ccgo_up(uintptr(unsafe.Pointer(&_perm1)) + uintptr(i)*3))])< %v", r) }() + } + bp := tls.Alloc(128) + defer tls.Free(128) + var p, q uintptr + var _ /* testbuf at bp+0 */ [128]int8 + _, _ = p, q + p = _sha256crypt(tls, key, setting, output) + /* self test and stack cleanup */ + q = _sha256crypt(tls, uintptr(unsafe.Pointer(&_testkey1)), uintptr(unsafe.Pointer(&_testsetting1)), bp) + if !(p != 0) || q != bp || Xmemcmp(tls, bp, uintptr(unsafe.Pointer(&_testhash1)), uint32(73)) != 0 { + return __ccgo_ts + 70 + } + return p +} + +var _testkey1 = [18]int8{'X', 'y', '0', '1', '@', '#', 1, 2, -128, 127, -1, 13, 10, -127, 9, ' ', '!'} + +var _testsetting1 = [30]int8{'$', '5', '$', 'r', 'o', 'u', 'n', 'd', 's', '=', '1', '2', '3', '4', '$', 'a', 'b', 'c', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '$'} + +var _testhash1 = [73]int8{'$', '5', '$', 'r', 'o', 'u', 'n', 'd', 's', '=', '1', '2', '3', '4', '$', 'a', 'b', 'c', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '$', '3', 'V', 'f', 'D', 'j', 'P', 't', '0', '5', 'V', 'H', 'F', 'n', '4', '7', 'C', '/', 'o', 'j', 'F', 'Z', '6', 'K', 'R', 'P', 'Y', 'r', 'O', 'j', 'j', '1', 'l', 'L', 'b', 'H', '.', 'd', 'k', 'F', '3', 'b', 'Z', '6'} + +/* public domain sha512 implementation based on fips180-3 */ +/* >=2^64 bits messages are not supported (about 2000 peta bytes) */ + +type Tsha512 = struct { + Flen1 Tuint64_t + Fh [8]Tuint64_t + Fbuf [128]Tuint8_t +} + +func _ror1(tls *TLS, n Tuint64_t, k int32) (r Tuint64_t) { + return n>>k | n<<(Int32FromInt32(64)-k) +} + +var _K1 = [80]Tuint64_t{ + 0: uint64(0x428a2f98d728ae22), + 1: uint64(0x7137449123ef65cd), + 2: uint64(0xb5c0fbcfec4d3b2f), + 3: uint64(0xe9b5dba58189dbbc), + 4: uint64(0x3956c25bf348b538), + 5: uint64(0x59f111f1b605d019), + 6: uint64(0x923f82a4af194f9b), + 7: uint64(0xab1c5ed5da6d8118), + 8: uint64(0xd807aa98a3030242), + 9: uint64(0x12835b0145706fbe), + 10: uint64(0x243185be4ee4b28c), + 11: uint64(0x550c7dc3d5ffb4e2), + 12: uint64(0x72be5d74f27b896f), + 13: uint64(0x80deb1fe3b1696b1), + 14: uint64(0x9bdc06a725c71235), + 15: uint64(0xc19bf174cf692694), + 16: uint64(0xe49b69c19ef14ad2), + 17: uint64(0xefbe4786384f25e3), + 18: uint64(0x0fc19dc68b8cd5b5), + 19: uint64(0x240ca1cc77ac9c65), + 20: uint64(0x2de92c6f592b0275), + 21: uint64(0x4a7484aa6ea6e483), + 22: uint64(0x5cb0a9dcbd41fbd4), + 23: uint64(0x76f988da831153b5), + 24: uint64(0x983e5152ee66dfab), + 25: uint64(0xa831c66d2db43210), + 26: uint64(0xb00327c898fb213f), + 27: uint64(0xbf597fc7beef0ee4), + 28: uint64(0xc6e00bf33da88fc2), + 29: uint64(0xd5a79147930aa725), + 30: uint64(0x06ca6351e003826f), + 31: uint64(0x142929670a0e6e70), + 32: uint64(0x27b70a8546d22ffc), + 33: uint64(0x2e1b21385c26c926), + 34: uint64(0x4d2c6dfc5ac42aed), + 35: uint64(0x53380d139d95b3df), + 36: uint64(0x650a73548baf63de), + 37: uint64(0x766a0abb3c77b2a8), + 38: uint64(0x81c2c92e47edaee6), + 39: uint64(0x92722c851482353b), + 40: uint64(0xa2bfe8a14cf10364), + 41: uint64(0xa81a664bbc423001), + 42: uint64(0xc24b8b70d0f89791), + 43: uint64(0xc76c51a30654be30), + 44: uint64(0xd192e819d6ef5218), + 45: uint64(0xd69906245565a910), + 46: uint64(0xf40e35855771202a), + 47: uint64(0x106aa07032bbd1b8), + 48: uint64(0x19a4c116b8d2d0c8), + 49: uint64(0x1e376c085141ab53), + 50: uint64(0x2748774cdf8eeb99), + 51: uint64(0x34b0bcb5e19b48a8), + 52: uint64(0x391c0cb3c5c95a63), + 53: uint64(0x4ed8aa4ae3418acb), + 54: uint64(0x5b9cca4f7763e373), + 55: uint64(0x682e6ff3d6b2b8a3), + 56: uint64(0x748f82ee5defb2fc), + 57: uint64(0x78a5636f43172f60), + 58: uint64(0x84c87814a1f0ab72), + 59: uint64(0x8cc702081a6439ec), + 60: uint64(0x90befffa23631e28), + 61: uint64(0xa4506cebde82bde9), + 62: uint64(0xbef9a3f7b2c67915), + 63: uint64(0xc67178f2e372532b), + 64: uint64(0xca273eceea26619c), + 65: uint64(0xd186b8c721c0c207), + 66: uint64(0xeada7dd6cde0eb1e), + 67: uint64(0xf57d4f7fee6ed178), + 68: uint64(0x06f067aa72176fba), + 69: uint64(0x0a637dc5a2c898a6), + 70: uint64(0x113f9804bef90dae), + 71: uint64(0x1b710b35131c471b), + 72: uint64(0x28db77f523047d84), + 73: uint64(0x32caab7b40c72493), + 74: uint64(0x3c9ebe0a15c9bebc), + 75: uint64(0x431d67c49c100d4c), + 76: uint64(0x4cc5d4becb3e42b6), + 77: uint64(0x597f299cfc657e2a), + 78: uint64(0x5fcb6fab3ad6faec), + 79: uint64(0x6c44198c4a475817), +} + +func _processblock2(tls *TLS, s uintptr, buf uintptr) { + bp := tls.Alloc(640) + defer tls.Free(640) + var a, b, c, d, e, f, g, h, t1, t2 Tuint64_t + var i int32 + var _ /* W at bp+0 */ [80]Tuint64_t + _, _, _, _, _, _, _, _, _, _, _ = a, b, c, d, e, f, g, h, i, t1, t2 + i = 0 + for { + if !(i < int32(16)) { + break + } + (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i] = uint64(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(8)*i)))) << int32(56) + **(**Tuint64_t)(__ccgo_up(bp + uintptr(i)*8)) |= uint64(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(8)*i+int32(1))))) << int32(48) + **(**Tuint64_t)(__ccgo_up(bp + uintptr(i)*8)) |= uint64(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(8)*i+int32(2))))) << int32(40) + **(**Tuint64_t)(__ccgo_up(bp + uintptr(i)*8)) |= uint64(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(8)*i+int32(3))))) << int32(32) + **(**Tuint64_t)(__ccgo_up(bp + uintptr(i)*8)) |= uint64(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(8)*i+int32(4))))) << int32(24) + **(**Tuint64_t)(__ccgo_up(bp + uintptr(i)*8)) |= uint64(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(8)*i+int32(5))))) << int32(16) + **(**Tuint64_t)(__ccgo_up(bp + uintptr(i)*8)) |= uint64(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(8)*i+int32(6))))) << int32(8) + **(**Tuint64_t)(__ccgo_up(bp + uintptr(i)*8)) |= uint64(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(8)*i+int32(7))))) + goto _1 + _1: + ; + i = i + 1 + } + for { + if !(i < int32(80)) { + break + } + (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i] = _ror1(tls, (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i-int32(2)], int32(19)) ^ _ror1(tls, (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i-int32(2)], int32(61)) ^ (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i-int32(2)]>>Int32FromInt32(6) + (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i-int32(7)] + (_ror1(tls, (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i-int32(15)], int32(1)) ^ _ror1(tls, (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i-int32(15)], int32(8)) ^ (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i-int32(15)]>>Int32FromInt32(7)) + (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i-int32(16)] + goto _2 + _2: + ; + i = i + 1 + } + a = **(**Tuint64_t)(__ccgo_up(s + 8)) + b = **(**Tuint64_t)(__ccgo_up(s + 8 + 1*8)) + c = **(**Tuint64_t)(__ccgo_up(s + 8 + 2*8)) + d = **(**Tuint64_t)(__ccgo_up(s + 8 + 3*8)) + e = **(**Tuint64_t)(__ccgo_up(s + 8 + 4*8)) + f = **(**Tuint64_t)(__ccgo_up(s + 8 + 5*8)) + g = **(**Tuint64_t)(__ccgo_up(s + 8 + 6*8)) + h = **(**Tuint64_t)(__ccgo_up(s + 8 + 7*8)) + i = 0 + for { + if !(i < int32(80)) { + break + } + t1 = h + (_ror1(tls, e, int32(14)) ^ _ror1(tls, e, int32(18)) ^ _ror1(tls, e, int32(41))) + (g ^ e&(f^g)) + _K1[i] + (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i] + t2 = _ror1(tls, a, int32(28)) ^ _ror1(tls, a, int32(34)) ^ _ror1(tls, a, int32(39)) + (a&b | c&(a|b)) + h = g + g = f + f = e + e = d + t1 + d = c + c = b + b = a + a = t1 + t2 + goto _3 + _3: + ; + i = i + 1 + } + **(**Tuint64_t)(__ccgo_up(s + 8)) += a + **(**Tuint64_t)(__ccgo_up(s + 8 + 1*8)) += b + **(**Tuint64_t)(__ccgo_up(s + 8 + 2*8)) += c + **(**Tuint64_t)(__ccgo_up(s + 8 + 3*8)) += d + **(**Tuint64_t)(__ccgo_up(s + 8 + 4*8)) += e + **(**Tuint64_t)(__ccgo_up(s + 8 + 5*8)) += f + **(**Tuint64_t)(__ccgo_up(s + 8 + 6*8)) += g + **(**Tuint64_t)(__ccgo_up(s + 8 + 7*8)) += h +} + +func _pad2(tls *TLS, s uintptr) { + var r, v1 uint32 + _, _ = r, v1 + r = uint32((*Tsha512)(unsafe.Pointer(s)).Flen1 % uint64(128)) + v1 = r + r = r + 1 + **(**Tuint8_t)(__ccgo_up(s + 72 + uintptr(v1))) = uint8(0x80) + if r > uint32(112) { + Xmemset(tls, s+72+uintptr(r), 0, uint32(128)-r) + r = uint32(0) + _processblock2(tls, s, s+72) + } + Xmemset(tls, s+72+uintptr(r), 0, uint32(120)-r) + **(**Tuint64_t)(__ccgo_up(s)) *= uint64(8) + **(**Tuint8_t)(__ccgo_up(s + 72 + 120)) = uint8((*Tsha512)(unsafe.Pointer(s)).Flen1 >> int32(56)) + **(**Tuint8_t)(__ccgo_up(s + 72 + 121)) = uint8((*Tsha512)(unsafe.Pointer(s)).Flen1 >> int32(48)) + **(**Tuint8_t)(__ccgo_up(s + 72 + 122)) = uint8((*Tsha512)(unsafe.Pointer(s)).Flen1 >> int32(40)) + **(**Tuint8_t)(__ccgo_up(s + 72 + 123)) = uint8((*Tsha512)(unsafe.Pointer(s)).Flen1 >> int32(32)) + **(**Tuint8_t)(__ccgo_up(s + 72 + 124)) = uint8((*Tsha512)(unsafe.Pointer(s)).Flen1 >> int32(24)) + **(**Tuint8_t)(__ccgo_up(s + 72 + 125)) = uint8((*Tsha512)(unsafe.Pointer(s)).Flen1 >> int32(16)) + **(**Tuint8_t)(__ccgo_up(s + 72 + 126)) = uint8((*Tsha512)(unsafe.Pointer(s)).Flen1 >> int32(8)) + **(**Tuint8_t)(__ccgo_up(s + 72 + 127)) = uint8((*Tsha512)(unsafe.Pointer(s)).Flen1) + _processblock2(tls, s, s+72) +} + +func _sha512_init(tls *TLS, s uintptr) { + (*Tsha512)(unsafe.Pointer(s)).Flen1 = uint64(0) + **(**Tuint64_t)(__ccgo_up(s + 8)) = uint64(0x6a09e667f3bcc908) + **(**Tuint64_t)(__ccgo_up(s + 8 + 1*8)) = uint64(0xbb67ae8584caa73b) + **(**Tuint64_t)(__ccgo_up(s + 8 + 2*8)) = uint64(0x3c6ef372fe94f82b) + **(**Tuint64_t)(__ccgo_up(s + 8 + 3*8)) = uint64(0xa54ff53a5f1d36f1) + **(**Tuint64_t)(__ccgo_up(s + 8 + 4*8)) = uint64(0x510e527fade682d1) + **(**Tuint64_t)(__ccgo_up(s + 8 + 5*8)) = uint64(0x9b05688c2b3e6c1f) + **(**Tuint64_t)(__ccgo_up(s + 8 + 6*8)) = uint64(0x1f83d9abfb41bd6b) + **(**Tuint64_t)(__ccgo_up(s + 8 + 7*8)) = uint64(0x5be0cd19137e2179) +} + +func _sha512_sum(tls *TLS, s uintptr, md uintptr) { + var i int32 + _ = i + _pad2(tls, s) + i = 0 + for { + if !(i < int32(8)) { + break + } + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(8)*i))) = uint8(**(**Tuint64_t)(__ccgo_up(s + 8 + uintptr(i)*8)) >> int32(56)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(8)*i+int32(1)))) = uint8(**(**Tuint64_t)(__ccgo_up(s + 8 + uintptr(i)*8)) >> int32(48)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(8)*i+int32(2)))) = uint8(**(**Tuint64_t)(__ccgo_up(s + 8 + uintptr(i)*8)) >> int32(40)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(8)*i+int32(3)))) = uint8(**(**Tuint64_t)(__ccgo_up(s + 8 + uintptr(i)*8)) >> int32(32)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(8)*i+int32(4)))) = uint8(**(**Tuint64_t)(__ccgo_up(s + 8 + uintptr(i)*8)) >> int32(24)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(8)*i+int32(5)))) = uint8(**(**Tuint64_t)(__ccgo_up(s + 8 + uintptr(i)*8)) >> int32(16)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(8)*i+int32(6)))) = uint8(**(**Tuint64_t)(__ccgo_up(s + 8 + uintptr(i)*8)) >> int32(8)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(8)*i+int32(7)))) = uint8(**(**Tuint64_t)(__ccgo_up(s + 8 + uintptr(i)*8))) + goto _1 + _1: + ; + i = i + 1 + } +} + +func _sha512_update(tls *TLS, s uintptr, m uintptr, len1 uint32) { + var p uintptr + var r uint32 + _, _ = p, r + p = m + r = uint32((*Tsha512)(unsafe.Pointer(s)).Flen1 % uint64(128)) + **(**Tuint64_t)(__ccgo_up(s)) += uint64(len1) + if r != 0 { + if len1 < uint32(128)-r { + Xmemcpy(tls, s+72+uintptr(r), p, len1) + return + } + Xmemcpy(tls, s+72+uintptr(r), p, uint32(128)-r) + len1 = len1 - (uint32(128) - r) + p = p + uintptr(uint32(128)-r) + _processblock2(tls, s, s+72) + } + for { + if !(len1 >= uint32(128)) { + break + } + _processblock2(tls, s, p) + goto _1 + _1: + ; + len1 = len1 - uint32(128) + p = p + uintptr(128) + } + Xmemcpy(tls, s+72, p, len1) +} + +var _b642 = [65]uint8{'.', '/', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'} + +func _to642(tls *TLS, s uintptr, u uint32, n int32) (r uintptr) { + var v1 int32 + var v2 uintptr + _, _ = v1, v2 + for { + n = n - 1 + v1 = n + if !(v1 >= 0) { + break + } + v2 = s + s = s + 1 + **(**int8)(__ccgo_up(v2)) = Int8FromUint8(_b642[u%uint32(64)]) + u = u / uint32(64) + } + return s +} + +/* key limit is not part of the original design, added for DoS protection. + * rounds limit has been lowered (versus the reference/spec), also for DoS + * protection. runtime is O(klen^2 + klen*rounds) */ + +// C documentation +// +// /* hash n bytes of the repeated md message digest */ +func _hashmd1(tls *TLS, s uintptr, n uint32, md uintptr) { + var i uint32 + _ = i + i = n + for { + if !(i > uint32(64)) { + break + } + _sha512_update(tls, s, md, uint32(64)) + goto _1 + _1: + ; + i = i - uint32(64) + } + _sha512_update(tls, s, md, i) +} + +func _sha512crypt(tls *TLS, key uintptr, setting uintptr, output uintptr) (r1 uintptr) { + bp := tls.Alloc(448) + defer tls.Free(448) + var i, klen, r, slen, u uint32 + var p, salt uintptr + var _ /* ctx at bp+0 */ Tsha512 + var _ /* end at bp+412 */ uintptr + var _ /* kmd at bp+264 */ [64]uint8 + var _ /* md at bp+200 */ [64]uint8 + var _ /* rounds at bp+392 */ [20]int8 + var _ /* smd at bp+328 */ [64]uint8 + _, _, _, _, _, _, _ = i, klen, p, r, salt, slen, u + **(**[20]int8)(__ccgo_up(bp + 392)) = [20]int8{} + /* reject large keys */ + i = uint32(0) + for { + if !(i <= uint32(KEY_MAX1) && **(**int8)(__ccgo_up(key + uintptr(i))) != 0) { + break + } + goto _1 + _1: + ; + i = i + 1 + } + if i > uint32(KEY_MAX1) { + return uintptr(0) + } + klen = i + /* setting: $6$rounds=n$salt$ (rounds=n$ and closing $ are optional) */ + if Xstrncmp(tls, setting, __ccgo_ts+181, uint32(3)) != 0 { + return uintptr(0) + } + salt = setting + uintptr(3) + r = uint32(ROUNDS_DEFAULT) + if Xstrncmp(tls, salt, __ccgo_ts+151, Uint32FromInt64(8)-Uint32FromInt32(1)) == 0 { + /* + * this is a deviation from the reference: + * bad rounds setting is rejected if it is + * - empty + * - unterminated (missing '$') + * - begins with anything but a decimal digit + * the reference implementation treats these bad + * rounds as part of the salt or parse them with + * strtoul semantics which may cause problems + * including non-portable hashes that depend on + * the host's value of ULONG_MAX. + */ + salt = salt + uintptr(Uint32FromInt64(8)-Uint32FromInt32(1)) + if !(BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(salt)))-Uint32FromUint8('0') < Uint32FromInt32(10)) != 0) { + return uintptr(0) + } + u = Xstrtoul(tls, salt, bp+412, int32(10)) + if int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 412))))) != int32('$') { + return uintptr(0) + } + salt = **(**uintptr)(__ccgo_up(bp + 412)) + uintptr(1) + if u < uint32(ROUNDS_MIN) { + r = uint32(ROUNDS_MIN) + } else { + if u > uint32(ROUNDS_MAX) { + return uintptr(0) + } else { + r = u + } + } + /* needed when rounds is zero prefixed or out of bounds */ + Xsprintf(tls, bp+392, __ccgo_ts+159, VaList(bp+424, r)) + } + i = uint32(0) + for { + if !(i < uint32(SALT_MAX1) && **(**int8)(__ccgo_up(salt + uintptr(i))) != 0 && int32(**(**int8)(__ccgo_up(salt + uintptr(i)))) != int32('$')) { + break + } + /* reject characters that interfere with /etc/shadow parsing */ + if int32(**(**int8)(__ccgo_up(salt + uintptr(i)))) == int32('\n') || int32(**(**int8)(__ccgo_up(salt + uintptr(i)))) == int32(':') { + return uintptr(0) + } + goto _2 + _2: + ; + i = i + 1 + } + slen = i + /* B = sha(key salt key) */ + _sha512_init(tls, bp) + _sha512_update(tls, bp, key, klen) + _sha512_update(tls, bp, salt, slen) + _sha512_update(tls, bp, key, klen) + _sha512_sum(tls, bp, bp+200) + /* A = sha(key salt repeat-B alternate-B-key) */ + _sha512_init(tls, bp) + _sha512_update(tls, bp, key, klen) + _sha512_update(tls, bp, salt, slen) + _hashmd1(tls, bp, klen, bp+200) + i = klen + for { + if !(i > uint32(0)) { + break + } + if i&uint32(1) != 0 { + _sha512_update(tls, bp, bp+200, uint32(64)) + } else { + _sha512_update(tls, bp, key, klen) + } + goto _3 + _3: + ; + i = i >> uint32(1) + } + _sha512_sum(tls, bp, bp+200) + /* DP = sha(repeat-key), this step takes O(klen^2) time */ + _sha512_init(tls, bp) + i = uint32(0) + for { + if !(i < klen) { + break + } + _sha512_update(tls, bp, key, klen) + goto _4 + _4: + ; + i = i + 1 + } + _sha512_sum(tls, bp, bp+264) + /* DS = sha(repeat-salt) */ + _sha512_init(tls, bp) + i = uint32(0) + for { + if !(i < Uint32FromInt32(int32(16)+Int32FromUint8((**(**[64]uint8)(__ccgo_up(bp + 200)))[0]))) { + break + } + _sha512_update(tls, bp, salt, slen) + goto _5 + _5: + ; + i = i + 1 + } + _sha512_sum(tls, bp, bp+328) + /* iterate A = f(A,DP,DS), this step takes O(rounds*klen) time */ + i = uint32(0) + for { + if !(i < r) { + break + } + _sha512_init(tls, bp) + if i%uint32(2) != 0 { + _hashmd1(tls, bp, klen, bp+264) + } else { + _sha512_update(tls, bp, bp+200, uint32(64)) + } + if i%uint32(3) != 0 { + _sha512_update(tls, bp, bp+328, slen) + } + if i%uint32(7) != 0 { + _hashmd1(tls, bp, klen, bp+264) + } + if i%uint32(2) != 0 { + _sha512_update(tls, bp, bp+200, uint32(64)) + } else { + _hashmd1(tls, bp, klen, bp+264) + } + _sha512_sum(tls, bp, bp+200) + goto _6 + _6: + ; + i = i + 1 + } + /* output is $6$rounds=n$salt$hash */ + p = output + p = p + uintptr(Xsprintf(tls, p, __ccgo_ts+185, VaList(bp+424, bp+392, slen, salt))) + i = uint32(0) + for { + if !(i < uint32(21)) { + break + } + p = _to642(tls, p, Uint32FromInt32(Int32FromUint8((**(**[64]uint8)(__ccgo_up(bp + 200)))[**(**uint8)(__ccgo_up(uintptr(unsafe.Pointer(&_perm2)) + uintptr(i)*3))])< %v", r) }() + } + bp := tls.Alloc(128) + defer tls.Free(128) + var p, q uintptr + var _ /* testbuf at bp+0 */ [128]int8 + _, _ = p, q + p = _sha512crypt(tls, key, setting, output) + /* self test and stack cleanup */ + q = _sha512crypt(tls, uintptr(unsafe.Pointer(&_testkey2)), uintptr(unsafe.Pointer(&_testsetting2)), bp) + if !(p != 0) || q != bp || Xmemcmp(tls, bp, uintptr(unsafe.Pointer(&_testhash2)), uint32(116)) != 0 { + return __ccgo_ts + 70 + } + return p +} + +var _testkey2 = [18]int8{'X', 'y', '0', '1', '@', '#', 1, 2, -128, 127, -1, 13, 10, -127, 9, ' ', '!'} + +var _testsetting2 = [30]int8{'$', '6', '$', 'r', 'o', 'u', 'n', 'd', 's', '=', '1', '2', '3', '4', '$', 'a', 'b', 'c', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '$'} + +var _testhash2 = [116]int8{'$', '6', '$', 'r', 'o', 'u', 'n', 'd', 's', '=', '1', '2', '3', '4', '$', 'a', 'b', 'c', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '$', 'B', 'C', 'p', 't', '8', 'z', 'L', 'r', 'c', '/', 'R', 'c', 'y', 'u', 'X', 'm', 'C', 'D', 'O', 'E', '1', 'A', 'L', 'q', 'M', 'X', 'B', '2', 'M', 'H', '6', 'n', '1', 'g', '8', '9', '1', 'H', 'h', 'F', 'j', '8', '.', 'w', '7', 'L', 'x', 'G', 'v', '.', 'F', 'T', 'k', 'q', 'q', '6', 'V', 'x', 'c', '/', 'k', 'm', '3', 'Y', '0', 'j', 'E', '0', 'j', '2', '4', 'j', 'Y', '5', 'P', 'I', 'v', '/', 'o', 'O', 'u', '6', 'r', 'e', 'g', '1'} + +var ___encrypt_key Texpanded_key + +func Xsetkey(tls *TLS, key uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v, (%v:)", tls, key, origin(2)) + } + bp := tls.Alloc(16) + defer tls.Free(16) + var i, j int32 + var v3 uintptr + var _ /* bkey at bp+0 */ [8]uint8 + _, _, _ = i, j, v3 + i = 0 + for { + if !(i < int32(8)) { + break + } + (**(**[8]uint8)(__ccgo_up(bp)))[i] = uint8(0) + j = int32(7) + for { + if !(j >= 0) { + break + } + v3 = bp + uintptr(i) + *(*uint8)(unsafe.Pointer(v3)) = uint8(uint32(*(*uint8)(unsafe.Pointer(v3))) | Uint32FromInt32(int32(**(**int8)(__ccgo_up(key)))&Int32FromInt32(1))<= 0) { + break + } + **(**Tuint32_t)(__ccgo_up(bp + 128 + uintptr(i)*4)) |= Uint32FromInt32(int32(**(**int8)(__ccgo_up(p)))&Int32FromInt32(1)) << j + goto _2 + _2: + ; + j = j - 1 + p = p + 1 + } + goto _1 + _1: + ; + i = i + 1 + } + key = uintptr(unsafe.Pointer(&___encrypt_key)) + if edflag != 0 { + key = bp + i = 0 + for { + if !(i < int32(16)) { + break + } + **(**Tuint32_t)(__ccgo_up(bp + uintptr(i)*4)) = **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&___encrypt_key)) + uintptr(int32(15)-i)*4)) + **(**Tuint32_t)(__ccgo_up(bp + 64 + uintptr(i)*4)) = **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&___encrypt_key)) + 64 + uintptr(int32(15)-i)*4)) + goto _3 + _3: + ; + i = i + 1 + } + } + X__do_des(tls, (**(**[2]Tuint32_t)(__ccgo_up(bp + 128)))[0], (**(**[2]Tuint32_t)(__ccgo_up(bp + 128)))[int32(1)], bp+128, bp+128+uintptr(1)*4, uint32(1), uint32(0), key) + p = block + i = 0 + for { + if !(i < int32(2)) { + break + } + j = int32(31) + for { + if !(j >= 0) { + break + } + v6 = p + p = p + 1 + **(**int8)(__ccgo_up(v6)) = Int8FromUint32((**(**[2]Tuint32_t)(__ccgo_up(bp + 128)))[i] >> j & uint32(1)) + goto _5 + _5: + ; + j = j - 1 + } + goto _4 + _4: + ; + i = i + 1 + } +} + +var _table = [384]uint16{ + 128: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 129: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 130: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 131: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 132: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 133: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 134: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 135: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 136: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 137: Uint16FromInt32((Int32FromInt32(0x320)/Int32FromInt32(256) | Int32FromInt32(0x320)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 138: Uint16FromInt32((Int32FromInt32(0x220)/Int32FromInt32(256) | Int32FromInt32(0x220)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 139: Uint16FromInt32((Int32FromInt32(0x220)/Int32FromInt32(256) | Int32FromInt32(0x220)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 140: Uint16FromInt32((Int32FromInt32(0x220)/Int32FromInt32(256) | Int32FromInt32(0x220)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 141: Uint16FromInt32((Int32FromInt32(0x220)/Int32FromInt32(256) | Int32FromInt32(0x220)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 142: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 143: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 144: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 145: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 146: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 147: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 148: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 149: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 150: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 151: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 152: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 153: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 154: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 155: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 156: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 157: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 158: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 159: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 160: Uint16FromInt32((Int32FromInt32(0x160)/Int32FromInt32(256) | Int32FromInt32(0x160)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 161: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 162: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 163: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 164: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 165: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 166: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 167: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 168: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 169: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 170: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 171: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 172: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 173: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 174: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 175: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 176: Uint16FromInt32((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 177: Uint16FromInt32((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 178: Uint16FromInt32((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 179: Uint16FromInt32((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 180: Uint16FromInt32((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 181: Uint16FromInt32((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 182: Uint16FromInt32((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 183: Uint16FromInt32((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 184: Uint16FromInt32((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 185: Uint16FromInt32((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 186: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 187: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 188: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 189: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 190: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 191: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 192: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 193: Uint16FromInt32((Int32FromInt32(0x8d5)/Int32FromInt32(256) | Int32FromInt32(0x8d5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 194: Uint16FromInt32((Int32FromInt32(0x8d5)/Int32FromInt32(256) | Int32FromInt32(0x8d5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 195: Uint16FromInt32((Int32FromInt32(0x8d5)/Int32FromInt32(256) | Int32FromInt32(0x8d5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 196: Uint16FromInt32((Int32FromInt32(0x8d5)/Int32FromInt32(256) | Int32FromInt32(0x8d5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 197: Uint16FromInt32((Int32FromInt32(0x8d5)/Int32FromInt32(256) | Int32FromInt32(0x8d5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 198: Uint16FromInt32((Int32FromInt32(0x8d5)/Int32FromInt32(256) | Int32FromInt32(0x8d5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 199: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 200: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 201: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 202: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 203: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 204: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 205: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 206: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 207: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 208: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 209: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 210: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 211: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 212: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 213: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 214: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 215: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 216: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 217: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 218: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 219: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 220: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 221: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 222: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 223: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 224: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 225: Uint16FromInt32((Int32FromInt32(0x8d6)/Int32FromInt32(256) | Int32FromInt32(0x8d6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 226: Uint16FromInt32((Int32FromInt32(0x8d6)/Int32FromInt32(256) | Int32FromInt32(0x8d6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 227: Uint16FromInt32((Int32FromInt32(0x8d6)/Int32FromInt32(256) | Int32FromInt32(0x8d6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 228: Uint16FromInt32((Int32FromInt32(0x8d6)/Int32FromInt32(256) | Int32FromInt32(0x8d6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 229: Uint16FromInt32((Int32FromInt32(0x8d6)/Int32FromInt32(256) | Int32FromInt32(0x8d6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 230: Uint16FromInt32((Int32FromInt32(0x8d6)/Int32FromInt32(256) | Int32FromInt32(0x8d6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 231: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 232: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 233: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 234: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 235: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 236: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 237: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 238: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 239: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 240: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 241: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 242: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 243: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 244: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 245: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 246: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 247: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 248: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 249: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 250: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 251: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 252: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 253: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 254: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 255: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), +} + +var _ptable = uintptr(unsafe.Pointer(&_table)) + uintptr(128)*2 + +func X__ctype_b_loc(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(unsafe.Pointer(&_ptable)) +} + +const CLOCKS_PER_SEC = 1000000 +const CLOCK_BOOTTIME = 7 +const CLOCK_BOOTTIME_ALARM = 9 +const CLOCK_MONOTONIC = 1 +const CLOCK_MONOTONIC_COARSE = 6 +const CLOCK_MONOTONIC_RAW = 4 +const CLOCK_PROCESS_CPUTIME_ID = 2 +const CLOCK_REALTIME = 0 +const CLOCK_REALTIME_ALARM = 8 +const CLOCK_REALTIME_COARSE = 5 +const CLOCK_SGI_CYCLE = 10 +const CLOCK_TAI = 11 +const CLOCK_THREAD_CPUTIME_ID = 3 +const C_LOCALE = 0 +const DEFAULT_GUARD_MAX = 1048576 +const DEFAULT_GUARD_SIZE = 8192 +const DEFAULT_STACK_MAX = 8388608 +const DEFAULT_STACK_SIZE = 131072 +const DTP_OFFSET = 0 +const FUTEX_CLOCK_REALTIME = 256 +const FUTEX_CMP_REQUEUE = 4 +const FUTEX_FD = 2 +const FUTEX_LOCK_PI = 6 +const FUTEX_PRIVATE = 128 +const FUTEX_REQUEUE = 3 +const FUTEX_TRYLOCK_PI = 8 +const FUTEX_UNLOCK_PI = 7 +const FUTEX_WAIT = 0 +const FUTEX_WAIT_BITSET = 9 +const FUTEX_WAKE = 1 +const FUTEX_WAKE_OP = 5 +const LC_ALL = 6 +const LC_ALL_MASK = 2147483647 +const LC_COLLATE = 3 +const LC_COLLATE_MASK = 8 +const LC_CTYPE = 0 +const LC_CTYPE_MASK = 1 +const LC_GLOBAL_LOCALE = -1 +const LC_MESSAGES = 5 +const LC_MESSAGES_MASK = 32 +const LC_MONETARY = 4 +const LC_MONETARY_MASK = 16 +const LC_NUMERIC = 1 +const LC_NUMERIC_MASK = 2 +const LC_TIME = 2 +const LC_TIME_MASK = 4 +const LOCALE_NAME_MAX = 23 +const MAP_32BIT = 64 +const MAP_ANON = 32 +const MAP_ANONYMOUS = 32 +const MAP_DENYWRITE = 2048 +const MAP_EXECUTABLE = 4096 +const MAP_FAILED = -1 +const MAP_FILE = 0 +const MAP_FIXED = 16 +const MAP_FIXED_NOREPLACE = 1048576 +const MAP_GROWSDOWN = 256 +const MAP_HUGETLB = 262144 +const MAP_HUGE_16GB = 2281701376 +const MAP_HUGE_16KB = 939524096 +const MAP_HUGE_16MB = 1610612736 +const MAP_HUGE_1GB = 2013265920 +const MAP_HUGE_1MB = 1342177280 +const MAP_HUGE_256MB = 1879048192 +const MAP_HUGE_2GB = 2080374784 +const MAP_HUGE_2MB = 1409286144 +const MAP_HUGE_32MB = 1677721600 +const MAP_HUGE_512KB = 1275068416 +const MAP_HUGE_512MB = 1946157056 +const MAP_HUGE_64KB = 1073741824 +const MAP_HUGE_8MB = 1543503872 +const MAP_HUGE_MASK = 63 +const MAP_HUGE_SHIFT = 26 +const MAP_LOCKED = 8192 +const MAP_NONBLOCK = 65536 +const MAP_NORESERVE = 16384 +const MAP_POPULATE = 32768 +const MAP_PRIVATE = 2 +const MAP_SHARED = 1 +const MAP_SHARED_VALIDATE = 3 +const MAP_STACK = 131072 +const MAP_SYNC = 524288 +const MAP_TYPE = 15 +const MCL_CURRENT = 1 +const MCL_FUTURE = 2 +const MCL_ONFAULT = 4 +const MS_ASYNC = 1 +const MS_INVALIDATE = 2 +const MS_SYNC = 4 +const POSIX_MADV_DONTNEED = 4 +const POSIX_MADV_NORMAL = 0 +const POSIX_MADV_RANDOM = 1 +const POSIX_MADV_SEQUENTIAL = 2 +const POSIX_MADV_WILLNEED = 3 +const PROT_EXEC = 4 +const PROT_GROWSDOWN = 16777216 +const PROT_GROWSUP = 33554432 +const PROT_NONE = 0 +const PROT_READ = 1 +const PROT_WRITE = 2 +const PTHREAD_BARRIER_SERIAL_THREAD = -1 +const PTHREAD_CANCELED = -1 +const PTHREAD_CANCEL_ASYNCHRONOUS = 1 +const PTHREAD_CANCEL_DEFERRED = 0 +const PTHREAD_CANCEL_DISABLE = 1 +const PTHREAD_CANCEL_ENABLE = 0 +const PTHREAD_CANCEL_MASKED = 2 +const PTHREAD_CREATE_DETACHED = 1 +const PTHREAD_CREATE_JOINABLE = 0 +const PTHREAD_EXPLICIT_SCHED = 1 +const PTHREAD_INHERIT_SCHED = 0 +const PTHREAD_MUTEX_DEFAULT = 0 +const PTHREAD_MUTEX_ERRORCHECK = 2 +const PTHREAD_MUTEX_NORMAL = 0 +const PTHREAD_MUTEX_RECURSIVE = 1 +const PTHREAD_MUTEX_ROBUST = 1 +const PTHREAD_MUTEX_STALLED = 0 +const PTHREAD_ONCE_INIT = 0 +const PTHREAD_PRIO_INHERIT = 1 +const PTHREAD_PRIO_NONE = 0 +const PTHREAD_PRIO_PROTECT = 2 +const PTHREAD_PROCESS_PRIVATE = 0 +const PTHREAD_PROCESS_SHARED = 1 +const PTHREAD_SCOPE_PROCESS = 1 +const PTHREAD_SCOPE_SYSTEM = 0 +const SCHED_BATCH = 3 +const SCHED_DEADLINE = 6 +const SCHED_FIFO = 1 +const SCHED_IDLE = 5 +const SCHED_OTHER = 0 +const SCHED_RESET_ON_FORK = 1073741824 +const SCHED_RR = 2 +const SIGCANCEL = 33 +const SIGSYNCCALL = 34 +const SIGTIMER = 32 +const TIMER_ABSTIME = 1 +const TIME_UTC = 1 +const TP_OFFSET = 0 +const UTF8_LOCALE = 0 +const __CCGO_SIZEOF_GO_MUTEX = 8 +const __SU = 0 +const pthread = 0 +const tls_mod_off_t = 0 + +type Tlconv = struct { + Fdecimal_point uintptr + Fthousands_sep uintptr + Fgrouping uintptr + Fint_curr_symbol uintptr + Fcurrency_symbol uintptr + Fmon_decimal_point uintptr + Fmon_thousands_sep uintptr + Fmon_grouping uintptr + Fpositive_sign uintptr + Fnegative_sign uintptr + Fint_frac_digits int8 + Ffrac_digits int8 + Fp_cs_precedes int8 + Fp_sep_by_space int8 + Fn_cs_precedes int8 + Fn_sep_by_space int8 + Fp_sign_posn int8 + Fn_sign_posn int8 + Fint_p_cs_precedes int8 + Fint_p_sep_by_space int8 + Fint_n_cs_precedes int8 + Fint_n_sep_by_space int8 + Fint_p_sign_posn int8 + Fint_n_sign_posn int8 +} + +type t__locale_map = struct { + Fmap1 uintptr + Fmap_size Tsize_t + Fname [24]int8 + Fnext uintptr +} + +type Tclockid_t = int32 + +type t__pthread = struct { + Fself uintptr + Fdtv uintptr + Fprev uintptr + Fnext uintptr + Fsysinfo Tuintptr_t + Fcanary Tuintptr_t + Ftid int32 + Ferrno_val int32 + Fdetach_state int32 + Fcancel int32 + Fcanceldisable uint8 + Fcancelasync uint8 + F__ccgo42 uint8 + Fmap_base uintptr + Fmap_size Tsize_t + Fstack uintptr + Fstack_size Tsize_t + Fguard_size Tsize_t + Fresult uintptr + Fcancelbuf uintptr + Ftsd uintptr + Frobust_list struct { + Fhead uintptr + Foff int32 + Fpending uintptr + } + Fh_errno_val int32 + Ftimer_id int32 + Flocale Tlocale_t + Fkilllock [1]int32 + Fdlerror_buf uintptr + Fstdio_locks uintptr + F__ccgo_join_mutex [1]int64 +} + +type Tpthread_once_t = int32 + +type Tpthread_key_t = uint32 + +type Tpthread_spinlock_t = int32 + +type Tpthread_mutexattr_t = struct { + F__attr uint32 +} + +type Tpthread_condattr_t = struct { + F__attr uint32 +} + +type Tpthread_barrierattr_t = struct { + F__attr uint32 +} + +type Tpthread_rwlockattr_t = struct { + F__attr [2]uint32 +} + +type Tpthread_mutex_t = struct { + F__u struct { + F__vi [0][6]int32 + F__p [0][6]uintptr + F__i [6]int32 + } + F__ccgo_room int32 +} + +type Tpthread_cond_t = struct { + F__u struct { + F__vi [0][12]int32 + F__p [0][12]uintptr + F__i [12]int32 + } +} + +type Tpthread_rwlock_t = struct { + F__u struct { + F__vi [0][8]int32 + F__p [0][8]uintptr + F__i [8]int32 + } +} + +type Tpthread_barrier_t = struct { + F__u struct { + F__vi [0][5]int32 + F__p [0][5]uintptr + F__i [5]int32 + } +} + +type Tsched_param = struct { + Fsched_priority int32 + F__reserved1 int32 + F__reserved2 [4]int32 + F__reserved3 int32 +} + +type Ttimer_t = uintptr + +type Ttm = struct { + Ftm_sec int32 + Ftm_min int32 + Ftm_hour int32 + Ftm_mday int32 + Ftm_mon int32 + Ftm_year int32 + Ftm_wday int32 + Ftm_yday int32 + Ftm_isdst int32 + F__tm_gmtoff int32 + F__tm_zone uintptr +} + +type Titimerspec = struct { + Fit_interval Ttimespec + Fit_value Ttimespec +} + +type t__ptcb = struct { + F__f uintptr + F__x uintptr + F__next uintptr +} + +type Tmode_t = uint32 + +type Ta_cas_p_undefined_but_pointer_not_32bit = [1]int8 + +const _DT_EXITED = 0 +const _DT_EXITING = 1 +const _DT_JOINABLE = 2 +const _DT_DETACHED = 3 + +func X__ctype_get_mb_cur_max(tls *TLS) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + _ = v1 + if !!(**(**uintptr)(__ccgo_up((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale)) != 0) { + v1 = int32(4) + } else { + v1 = int32(1) + } + return Uint32FromInt32(v1) +} + +var _table1 = [384]Tint32_t{ + 129: int32(1), + 130: int32(2), + 131: int32(3), + 132: int32(4), + 133: int32(5), + 134: int32(6), + 135: int32(7), + 136: int32(8), + 137: int32(9), + 138: int32(10), + 139: int32(11), + 140: int32(12), + 141: int32(13), + 142: int32(14), + 143: int32(15), + 144: int32(16), + 145: int32(17), + 146: int32(18), + 147: int32(19), + 148: int32(20), + 149: int32(21), + 150: int32(22), + 151: int32(23), + 152: int32(24), + 153: int32(25), + 154: int32(26), + 155: int32(27), + 156: int32(28), + 157: int32(29), + 158: int32(30), + 159: int32(31), + 160: int32(32), + 161: int32(33), + 162: int32(34), + 163: int32(35), + 164: int32(36), + 165: int32(37), + 166: int32(38), + 167: int32(39), + 168: int32(40), + 169: int32(41), + 170: int32(42), + 171: int32(43), + 172: int32(44), + 173: int32(45), + 174: int32(46), + 175: int32(47), + 176: int32(48), + 177: int32(49), + 178: int32(50), + 179: int32(51), + 180: int32(52), + 181: int32(53), + 182: int32(54), + 183: int32(55), + 184: int32(56), + 185: int32(57), + 186: int32(58), + 187: int32(59), + 188: int32(60), + 189: int32(61), + 190: int32(62), + 191: int32(63), + 192: int32(64), + 193: int32('a'), + 194: int32('b'), + 195: int32('c'), + 196: int32('d'), + 197: int32('e'), + 198: int32('f'), + 199: int32('g'), + 200: int32('h'), + 201: int32('i'), + 202: int32('j'), + 203: int32('k'), + 204: int32('l'), + 205: int32('m'), + 206: int32('n'), + 207: int32('o'), + 208: int32('p'), + 209: int32('q'), + 210: int32('r'), + 211: int32('s'), + 212: int32('t'), + 213: int32('u'), + 214: int32('v'), + 215: int32('w'), + 216: int32('x'), + 217: int32('y'), + 218: int32('z'), + 219: int32(91), + 220: int32(92), + 221: int32(93), + 222: int32(94), + 223: int32(95), + 224: int32(96), + 225: int32('a'), + 226: int32('b'), + 227: int32('c'), + 228: int32('d'), + 229: int32('e'), + 230: int32('f'), + 231: int32('g'), + 232: int32('h'), + 233: int32('i'), + 234: int32('j'), + 235: int32('k'), + 236: int32('l'), + 237: int32('m'), + 238: int32('n'), + 239: int32('o'), + 240: int32('p'), + 241: int32('q'), + 242: int32('r'), + 243: int32('s'), + 244: int32('t'), + 245: int32('u'), + 246: int32('v'), + 247: int32('w'), + 248: int32('x'), + 249: int32('y'), + 250: int32('z'), + 251: int32(123), + 252: int32(124), + 253: int32(125), + 254: int32(126), + 255: int32(127), +} + +var _ptable1 = uintptr(unsafe.Pointer(&_table1)) + uintptr(128)*4 + +func X__ctype_tolower_loc(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(unsafe.Pointer(&_ptable1)) +} + +var _table2 = [384]Tint32_t{ + 129: int32(1), + 130: int32(2), + 131: int32(3), + 132: int32(4), + 133: int32(5), + 134: int32(6), + 135: int32(7), + 136: int32(8), + 137: int32(9), + 138: int32(10), + 139: int32(11), + 140: int32(12), + 141: int32(13), + 142: int32(14), + 143: int32(15), + 144: int32(16), + 145: int32(17), + 146: int32(18), + 147: int32(19), + 148: int32(20), + 149: int32(21), + 150: int32(22), + 151: int32(23), + 152: int32(24), + 153: int32(25), + 154: int32(26), + 155: int32(27), + 156: int32(28), + 157: int32(29), + 158: int32(30), + 159: int32(31), + 160: int32(32), + 161: int32(33), + 162: int32(34), + 163: int32(35), + 164: int32(36), + 165: int32(37), + 166: int32(38), + 167: int32(39), + 168: int32(40), + 169: int32(41), + 170: int32(42), + 171: int32(43), + 172: int32(44), + 173: int32(45), + 174: int32(46), + 175: int32(47), + 176: int32(48), + 177: int32(49), + 178: int32(50), + 179: int32(51), + 180: int32(52), + 181: int32(53), + 182: int32(54), + 183: int32(55), + 184: int32(56), + 185: int32(57), + 186: int32(58), + 187: int32(59), + 188: int32(60), + 189: int32(61), + 190: int32(62), + 191: int32(63), + 192: int32(64), + 193: int32('A'), + 194: int32('B'), + 195: int32('C'), + 196: int32('D'), + 197: int32('E'), + 198: int32('F'), + 199: int32('G'), + 200: int32('H'), + 201: int32('I'), + 202: int32('J'), + 203: int32('K'), + 204: int32('L'), + 205: int32('M'), + 206: int32('N'), + 207: int32('O'), + 208: int32('P'), + 209: int32('Q'), + 210: int32('R'), + 211: int32('S'), + 212: int32('T'), + 213: int32('U'), + 214: int32('V'), + 215: int32('W'), + 216: int32('X'), + 217: int32('Y'), + 218: int32('Z'), + 219: int32(91), + 220: int32(92), + 221: int32(93), + 222: int32(94), + 223: int32(95), + 224: int32(96), + 225: int32('A'), + 226: int32('B'), + 227: int32('C'), + 228: int32('D'), + 229: int32('E'), + 230: int32('F'), + 231: int32('G'), + 232: int32('H'), + 233: int32('I'), + 234: int32('J'), + 235: int32('K'), + 236: int32('L'), + 237: int32('M'), + 238: int32('N'), + 239: int32('O'), + 240: int32('P'), + 241: int32('Q'), + 242: int32('R'), + 243: int32('S'), + 244: int32('T'), + 245: int32('U'), + 246: int32('V'), + 247: int32('W'), + 248: int32('X'), + 249: int32('Y'), + 250: int32('Z'), + 251: int32(123), + 252: int32(124), + 253: int32(125), + 254: int32(126), + 255: int32(127), +} + +var _ptable2 = uintptr(unsafe.Pointer(&_table2)) + uintptr(128)*4 + +func X__ctype_toupper_loc(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(unsafe.Pointer(&_ptable2)) +} + +func Xisalnum(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(BoolInt32(Uint32FromInt32(c)|uint32(32)-uint32('a') < uint32(26)) != 0 || BoolInt32(Uint32FromInt32(c)-uint32('0') < uint32(10)) != 0) +} + +func X__isalnum_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xisalnum(tls, c) +} + +func Xisalnum_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__isalnum_l(tls, c, l) +} + +func Xisalpha(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(Uint32FromInt32(c)|uint32(32)-uint32('a') < uint32(26)) +} + +func X__isalpha_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xisalpha(tls, c) +} + +func Xisalpha_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__isalpha_l(tls, c, l) +} + +func Xisascii(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(!(c & ^Int32FromInt32(0x7f) != 0)) +} + +func Xisblank(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(c == int32(' ') || c == int32('\t')) +} + +func X__isblank_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xisblank(tls, c) +} + +func Xisblank_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__isblank_l(tls, c, l) +} + +func Xiscntrl(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(Uint32FromInt32(c) < uint32(0x20) || c == int32(0x7f)) +} + +func X__iscntrl_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiscntrl(tls, c) +} + +func Xiscntrl_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iscntrl_l(tls, c, l) +} + +func Xisdigit(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(Uint32FromInt32(c)-uint32('0') < uint32(10)) +} + +func X__isdigit_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xisdigit(tls, c) +} + +func Xisdigit_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__isdigit_l(tls, c, l) +} + +func Xisgraph(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(Uint32FromInt32(c)-uint32(0x21) < uint32(0x5e)) +} + +func X__isgraph_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xisgraph(tls, c) +} + +func Xisgraph_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__isgraph_l(tls, c, l) +} + +func Xislower(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(Uint32FromInt32(c)-uint32('a') < uint32(26)) +} + +func X__islower_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xislower(tls, c) +} + +func Xislower_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__islower_l(tls, c, l) +} + +func Xisprint(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(Uint32FromInt32(c)-uint32(0x20) < uint32(0x5f)) +} + +func X__isprint_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xisprint(tls, c) +} + +func Xisprint_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__isprint_l(tls, c, l) +} + +func Xispunct(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(BoolInt32(Uint32FromInt32(c)-uint32(0x21) < uint32(0x5e)) != 0 && !(Xisalnum(tls, c) != 0)) +} + +func X__ispunct_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xispunct(tls, c) +} + +func Xispunct_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__ispunct_l(tls, c, l) +} + +func Xisspace(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(c == int32(' ') || Uint32FromInt32(c)-uint32('\t') < uint32(5)) +} + +func X__isspace_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xisspace(tls, c) +} + +func Xisspace_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__isspace_l(tls, c, l) +} + +func Xisupper(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(Uint32FromInt32(c)-uint32('A') < uint32(26)) +} + +func X__isupper_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xisupper(tls, c) +} + +func Xisupper_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__isupper_l(tls, c, l) +} + +type Twint_t = uint32 + +type Twctype_t = uint32 + +type Twctrans_t = uintptr + +func Xiswalnum(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(BoolInt32(wc-uint32('0') < uint32(10)) != 0 || Xiswalpha(tls, wc) != 0) +} + +func X__iswalnum_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswalnum(tls, c) +} + +func Xiswalnum_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswalnum_l(tls, c, l) +} + +var _table3 = [3904]uint8{ + 0: uint8(18), + 1: uint8(17), + 2: uint8(19), + 3: uint8(20), + 4: uint8(21), + 5: uint8(22), + 6: uint8(23), + 7: uint8(24), + 8: uint8(25), + 9: uint8(26), + 10: uint8(27), + 11: uint8(28), + 12: uint8(29), + 13: uint8(30), + 14: uint8(31), + 15: uint8(32), + 16: uint8(33), + 17: uint8(17), + 18: uint8(34), + 19: uint8(35), + 20: uint8(36), + 21: uint8(17), + 22: uint8(37), + 23: uint8(38), + 24: uint8(39), + 25: uint8(40), + 26: uint8(41), + 27: uint8(42), + 28: uint8(43), + 29: uint8(44), + 30: uint8(17), + 31: uint8(45), + 32: uint8(46), + 33: uint8(47), + 34: uint8(16), + 35: uint8(16), + 36: uint8(48), + 37: uint8(16), + 38: uint8(16), + 39: uint8(16), + 40: uint8(16), + 41: uint8(16), + 42: uint8(16), + 43: uint8(16), + 44: uint8(49), + 45: uint8(50), + 46: uint8(51), + 47: uint8(16), + 48: uint8(52), + 49: uint8(53), + 50: uint8(16), + 51: uint8(16), + 52: uint8(17), + 53: uint8(17), + 54: uint8(17), + 55: uint8(17), + 56: uint8(17), + 57: uint8(17), + 58: uint8(17), + 59: uint8(17), + 60: uint8(17), + 61: uint8(17), + 62: uint8(17), + 63: uint8(17), + 64: uint8(17), + 65: uint8(17), + 66: uint8(17), + 67: uint8(17), + 68: uint8(17), + 69: uint8(17), + 70: uint8(17), + 71: uint8(17), + 72: uint8(17), + 73: uint8(17), + 74: uint8(17), + 75: uint8(17), + 76: uint8(17), + 77: uint8(54), + 78: uint8(17), + 79: uint8(17), + 80: uint8(17), + 81: uint8(17), + 82: uint8(17), + 83: uint8(17), + 84: uint8(17), + 85: uint8(17), + 86: uint8(17), + 87: uint8(17), + 88: uint8(17), + 89: uint8(17), + 90: uint8(17), + 91: uint8(17), + 92: uint8(17), + 93: uint8(17), + 94: uint8(17), + 95: uint8(17), + 96: uint8(17), + 97: uint8(17), + 98: uint8(17), + 99: uint8(17), + 100: uint8(17), + 101: uint8(17), + 102: uint8(17), + 103: uint8(17), + 104: uint8(17), + 105: uint8(17), + 106: uint8(17), + 107: uint8(17), + 108: uint8(17), + 109: uint8(17), + 110: uint8(17), + 111: uint8(17), + 112: uint8(17), + 113: uint8(17), + 114: uint8(17), + 115: uint8(17), + 116: uint8(17), + 117: uint8(17), + 118: uint8(17), + 119: uint8(17), + 120: uint8(17), + 121: uint8(17), + 122: uint8(17), + 123: uint8(17), + 124: uint8(17), + 125: uint8(17), + 126: uint8(17), + 127: uint8(17), + 128: uint8(17), + 129: uint8(17), + 130: uint8(17), + 131: uint8(17), + 132: uint8(17), + 133: uint8(17), + 134: uint8(17), + 135: uint8(17), + 136: uint8(17), + 137: uint8(17), + 138: uint8(17), + 139: uint8(17), + 140: uint8(17), + 141: uint8(17), + 142: uint8(17), + 143: uint8(17), + 144: uint8(17), + 145: uint8(17), + 146: uint8(17), + 147: uint8(17), + 148: uint8(17), + 149: uint8(17), + 150: uint8(17), + 151: uint8(17), + 152: uint8(17), + 153: uint8(17), + 154: uint8(17), + 155: uint8(17), + 156: uint8(17), + 157: uint8(17), + 158: uint8(17), + 159: uint8(55), + 160: uint8(17), + 161: uint8(17), + 162: uint8(17), + 163: uint8(17), + 164: uint8(56), + 165: uint8(17), + 166: uint8(57), + 167: uint8(58), + 168: uint8(59), + 169: uint8(60), + 170: uint8(61), + 171: uint8(62), + 172: uint8(17), + 173: uint8(17), + 174: uint8(17), + 175: uint8(17), + 176: uint8(17), + 177: uint8(17), + 178: uint8(17), + 179: uint8(17), + 180: uint8(17), + 181: uint8(17), + 182: uint8(17), + 183: uint8(17), + 184: uint8(17), + 185: uint8(17), + 186: uint8(17), + 187: uint8(17), + 188: uint8(17), + 189: uint8(17), + 190: uint8(17), + 191: uint8(17), + 192: uint8(17), + 193: uint8(17), + 194: uint8(17), + 195: uint8(17), + 196: uint8(17), + 197: uint8(17), + 198: uint8(17), + 199: uint8(17), + 200: uint8(17), + 201: uint8(17), + 202: uint8(17), + 203: uint8(17), + 204: uint8(17), + 205: uint8(17), + 206: uint8(17), + 207: uint8(17), + 208: uint8(17), + 209: uint8(17), + 210: uint8(17), + 211: uint8(17), + 212: uint8(17), + 213: uint8(17), + 214: uint8(17), + 215: uint8(63), + 216: uint8(16), + 217: uint8(16), + 218: uint8(16), + 219: uint8(16), + 220: uint8(16), + 221: uint8(16), + 222: uint8(16), + 223: uint8(16), + 224: uint8(16), + 225: uint8(16), + 226: uint8(16), + 227: uint8(16), + 228: uint8(16), + 229: uint8(16), + 230: uint8(16), + 231: uint8(16), + 232: uint8(16), + 233: uint8(16), + 234: uint8(16), + 235: uint8(16), + 236: uint8(16), + 237: uint8(16), + 238: uint8(16), + 239: uint8(16), + 240: uint8(16), + 241: uint8(16), + 242: uint8(16), + 243: uint8(16), + 244: uint8(16), + 245: uint8(16), + 246: uint8(16), + 247: uint8(16), + 248: uint8(16), + 249: uint8(17), + 250: uint8(64), + 251: uint8(65), + 252: uint8(17), + 253: uint8(66), + 254: uint8(67), + 255: uint8(68), + 256: uint8(69), + 257: uint8(70), + 258: uint8(71), + 259: uint8(72), + 260: uint8(73), + 261: uint8(74), + 262: uint8(17), + 263: uint8(75), + 264: uint8(76), + 265: uint8(77), + 266: uint8(78), + 267: uint8(79), + 268: uint8(80), + 269: uint8(81), + 270: uint8(16), + 271: uint8(82), + 272: uint8(83), + 273: uint8(84), + 274: uint8(85), + 275: uint8(86), + 276: uint8(87), + 277: uint8(88), + 278: uint8(89), + 279: uint8(90), + 280: uint8(91), + 281: uint8(92), + 282: uint8(93), + 283: uint8(16), + 284: uint8(94), + 285: uint8(95), + 286: uint8(96), + 287: uint8(16), + 288: uint8(17), + 289: uint8(17), + 290: uint8(17), + 291: uint8(97), + 292: uint8(98), + 293: uint8(99), + 294: uint8(16), + 295: uint8(16), + 296: uint8(16), + 297: uint8(16), + 298: uint8(16), + 299: uint8(16), + 300: uint8(16), + 301: uint8(16), + 302: uint8(16), + 303: uint8(16), + 304: uint8(17), + 305: uint8(17), + 306: uint8(17), + 307: uint8(17), + 308: uint8(100), + 309: uint8(16), + 310: uint8(16), + 311: uint8(16), + 312: uint8(16), + 313: uint8(16), + 314: uint8(16), + 315: uint8(16), + 316: uint8(16), + 317: uint8(16), + 318: uint8(16), + 319: uint8(16), + 320: uint8(16), + 321: uint8(16), + 322: uint8(16), + 323: uint8(16), + 324: uint8(17), + 325: uint8(17), + 326: uint8(101), + 327: uint8(16), + 328: uint8(16), + 329: uint8(16), + 330: uint8(16), + 331: uint8(16), + 332: uint8(16), + 333: uint8(16), + 334: uint8(16), + 335: uint8(16), + 336: uint8(16), + 337: uint8(16), + 338: uint8(16), + 339: uint8(16), + 340: uint8(16), + 341: uint8(16), + 342: uint8(16), + 343: uint8(16), + 344: uint8(16), + 345: uint8(16), + 346: uint8(16), + 347: uint8(16), + 348: uint8(16), + 349: uint8(16), + 350: uint8(16), + 351: uint8(16), + 352: uint8(16), + 353: uint8(16), + 354: uint8(16), + 355: uint8(16), + 356: uint8(16), + 357: uint8(16), + 358: uint8(16), + 359: uint8(16), + 360: uint8(17), + 361: uint8(17), + 362: uint8(102), + 363: uint8(103), + 364: uint8(16), + 365: uint8(16), + 366: uint8(104), + 367: uint8(105), + 368: uint8(17), + 369: uint8(17), + 370: uint8(17), + 371: uint8(17), + 372: uint8(17), + 373: uint8(17), + 374: uint8(17), + 375: uint8(17), + 376: uint8(17), + 377: uint8(17), + 378: uint8(17), + 379: uint8(17), + 380: uint8(17), + 381: uint8(17), + 382: uint8(17), + 383: uint8(17), + 384: uint8(17), + 385: uint8(17), + 386: uint8(17), + 387: uint8(17), + 388: uint8(17), + 389: uint8(17), + 390: uint8(17), + 391: uint8(106), + 392: uint8(17), + 393: uint8(17), + 394: uint8(107), + 395: uint8(16), + 396: uint8(16), + 397: uint8(16), + 398: uint8(16), + 399: uint8(16), + 400: uint8(16), + 401: uint8(16), + 402: uint8(16), + 403: uint8(16), + 404: uint8(16), + 405: uint8(16), + 406: uint8(16), + 407: uint8(16), + 408: uint8(16), + 409: uint8(16), + 410: uint8(16), + 411: uint8(16), + 412: uint8(16), + 413: uint8(16), + 414: uint8(16), + 415: uint8(16), + 416: uint8(16), + 417: uint8(16), + 418: uint8(16), + 419: uint8(16), + 420: uint8(16), + 421: uint8(16), + 422: uint8(16), + 423: uint8(16), + 424: uint8(16), + 425: uint8(16), + 426: uint8(16), + 427: uint8(16), + 428: uint8(16), + 429: uint8(16), + 430: uint8(16), + 431: uint8(16), + 432: uint8(17), + 433: uint8(108), + 434: uint8(109), + 435: uint8(16), + 436: uint8(16), + 437: uint8(16), + 438: uint8(16), + 439: uint8(16), + 440: uint8(16), + 441: uint8(16), + 442: uint8(16), + 443: uint8(16), + 444: uint8(110), + 445: uint8(16), + 446: uint8(16), + 447: uint8(16), + 448: uint8(16), + 449: uint8(16), + 450: uint8(16), + 451: uint8(16), + 452: uint8(16), + 453: uint8(16), + 454: uint8(16), + 455: uint8(16), + 456: uint8(16), + 457: uint8(16), + 458: uint8(16), + 459: uint8(16), + 460: uint8(16), + 461: uint8(16), + 462: uint8(16), + 463: uint8(16), + 464: uint8(16), + 465: uint8(16), + 466: uint8(16), + 467: uint8(16), + 468: uint8(111), + 469: uint8(112), + 470: uint8(113), + 471: uint8(114), + 472: uint8(16), + 473: uint8(16), + 474: uint8(16), + 475: uint8(16), + 476: uint8(16), + 477: uint8(16), + 478: uint8(16), + 479: uint8(16), + 480: uint8(115), + 481: uint8(116), + 482: uint8(117), + 483: uint8(16), + 484: uint8(16), + 485: uint8(16), + 486: uint8(16), + 487: uint8(16), + 488: uint8(118), + 489: uint8(119), + 490: uint8(16), + 491: uint8(16), + 492: uint8(16), + 493: uint8(16), + 494: uint8(120), + 495: uint8(16), + 496: uint8(16), + 497: uint8(121), + 498: uint8(16), + 499: uint8(16), + 500: uint8(16), + 501: uint8(16), + 502: uint8(16), + 503: uint8(16), + 504: uint8(16), + 505: uint8(16), + 506: uint8(16), + 507: uint8(16), + 508: uint8(16), + 509: uint8(16), + 510: uint8(16), + 511: uint8(16), + 544: uint8(255), + 545: uint8(255), + 546: uint8(255), + 547: uint8(255), + 548: uint8(255), + 549: uint8(255), + 550: uint8(255), + 551: uint8(255), + 552: uint8(255), + 553: uint8(255), + 554: uint8(255), + 555: uint8(255), + 556: uint8(255), + 557: uint8(255), + 558: uint8(255), + 559: uint8(255), + 560: uint8(255), + 561: uint8(255), + 562: uint8(255), + 563: uint8(255), + 564: uint8(255), + 565: uint8(255), + 566: uint8(255), + 567: uint8(255), + 568: uint8(255), + 569: uint8(255), + 570: uint8(255), + 571: uint8(255), + 572: uint8(255), + 573: uint8(255), + 574: uint8(255), + 575: uint8(255), + 584: uint8(254), + 585: uint8(255), + 586: uint8(255), + 587: uint8(7), + 588: uint8(254), + 589: uint8(255), + 590: uint8(255), + 591: uint8(7), + 597: uint8(4), + 598: uint8(32), + 599: uint8(4), + 600: uint8(255), + 601: uint8(255), + 602: uint8(127), + 603: uint8(255), + 604: uint8(255), + 605: uint8(255), + 606: uint8(127), + 607: uint8(255), + 608: uint8(255), + 609: uint8(255), + 610: uint8(255), + 611: uint8(255), + 612: uint8(255), + 613: uint8(255), + 614: uint8(255), + 615: uint8(255), + 616: uint8(255), + 617: uint8(255), + 618: uint8(255), + 619: uint8(255), + 620: uint8(255), + 621: uint8(255), + 622: uint8(255), + 623: uint8(255), + 624: uint8(255), + 625: uint8(255), + 626: uint8(255), + 627: uint8(255), + 628: uint8(255), + 629: uint8(255), + 630: uint8(255), + 631: uint8(255), + 632: uint8(195), + 633: uint8(255), + 634: uint8(3), + 636: uint8(31), + 637: uint8(80), + 648: uint8(32), + 654: uint8(223), + 655: uint8(188), + 656: uint8(64), + 657: uint8(215), + 658: uint8(255), + 659: uint8(255), + 660: uint8(251), + 661: uint8(255), + 662: uint8(255), + 663: uint8(255), + 664: uint8(255), + 665: uint8(255), + 666: uint8(255), + 667: uint8(255), + 668: uint8(255), + 669: uint8(255), + 670: uint8(191), + 671: uint8(255), + 672: uint8(255), + 673: uint8(255), + 674: uint8(255), + 675: uint8(255), + 676: uint8(255), + 677: uint8(255), + 678: uint8(255), + 679: uint8(255), + 680: uint8(255), + 681: uint8(255), + 682: uint8(255), + 683: uint8(255), + 684: uint8(255), + 685: uint8(255), + 686: uint8(255), + 687: uint8(255), + 688: uint8(3), + 689: uint8(252), + 690: uint8(255), + 691: uint8(255), + 692: uint8(255), + 693: uint8(255), + 694: uint8(255), + 695: uint8(255), + 696: uint8(255), + 697: uint8(255), + 698: uint8(255), + 699: uint8(255), + 700: uint8(255), + 701: uint8(255), + 702: uint8(255), + 703: uint8(255), + 704: uint8(255), + 705: uint8(255), + 706: uint8(255), + 707: uint8(255), + 708: uint8(255), + 709: uint8(255), + 710: uint8(254), + 711: uint8(255), + 712: uint8(255), + 713: uint8(255), + 714: uint8(127), + 715: uint8(2), + 716: uint8(255), + 717: uint8(255), + 718: uint8(255), + 719: uint8(255), + 720: uint8(255), + 721: uint8(1), + 726: uint8(255), + 727: uint8(191), + 728: uint8(182), + 730: uint8(255), + 731: uint8(255), + 732: uint8(255), + 733: uint8(135), + 734: uint8(7), + 738: uint8(255), + 739: uint8(7), + 740: uint8(255), + 741: uint8(255), + 742: uint8(255), + 743: uint8(255), + 744: uint8(255), + 745: uint8(255), + 746: uint8(255), + 747: uint8(254), + 748: uint8(255), + 749: uint8(195), + 750: uint8(255), + 751: uint8(255), + 752: uint8(255), + 753: uint8(255), + 754: uint8(255), + 755: uint8(255), + 756: uint8(255), + 757: uint8(255), + 758: uint8(255), + 759: uint8(255), + 760: uint8(255), + 761: uint8(255), + 762: uint8(239), + 763: uint8(31), + 764: uint8(254), + 765: uint8(225), + 766: uint8(255), + 767: uint8(159), + 770: uint8(255), + 771: uint8(255), + 772: uint8(255), + 773: uint8(255), + 774: uint8(255), + 775: uint8(255), + 777: uint8(224), + 778: uint8(255), + 779: uint8(255), + 780: uint8(255), + 781: uint8(255), + 782: uint8(255), + 783: uint8(255), + 784: uint8(255), + 785: uint8(255), + 786: uint8(255), + 787: uint8(255), + 788: uint8(255), + 789: uint8(255), + 790: uint8(3), + 792: uint8(255), + 793: uint8(255), + 794: uint8(255), + 795: uint8(255), + 796: uint8(255), + 797: uint8(7), + 798: uint8(48), + 799: uint8(4), + 800: uint8(255), + 801: uint8(255), + 802: uint8(255), + 803: uint8(252), + 804: uint8(255), + 805: uint8(31), + 808: uint8(255), + 809: uint8(255), + 810: uint8(255), + 811: uint8(1), + 812: uint8(255), + 813: uint8(7), + 820: uint8(255), + 821: uint8(255), + 822: uint8(223), + 823: uint8(63), + 826: uint8(240), + 827: uint8(255), + 828: uint8(248), + 829: uint8(3), + 830: uint8(255), + 831: uint8(255), + 832: uint8(255), + 833: uint8(255), + 834: uint8(255), + 835: uint8(255), + 836: uint8(255), + 837: uint8(255), + 838: uint8(255), + 839: uint8(239), + 840: uint8(255), + 841: uint8(223), + 842: uint8(225), + 843: uint8(255), + 844: uint8(207), + 845: uint8(255), + 846: uint8(254), + 847: uint8(255), + 848: uint8(239), + 849: uint8(159), + 850: uint8(249), + 851: uint8(255), + 852: uint8(255), + 853: uint8(253), + 854: uint8(197), + 855: uint8(227), + 856: uint8(159), + 857: uint8(89), + 858: uint8(128), + 859: uint8(176), + 860: uint8(207), + 861: uint8(255), + 862: uint8(3), + 863: uint8(16), + 864: uint8(238), + 865: uint8(135), + 866: uint8(249), + 867: uint8(255), + 868: uint8(255), + 869: uint8(253), + 870: uint8(109), + 871: uint8(195), + 872: uint8(135), + 873: uint8(25), + 874: uint8(2), + 875: uint8(94), + 876: uint8(192), + 877: uint8(255), + 878: uint8(63), + 880: uint8(238), + 881: uint8(191), + 882: uint8(251), + 883: uint8(255), + 884: uint8(255), + 885: uint8(253), + 886: uint8(237), + 887: uint8(227), + 888: uint8(191), + 889: uint8(27), + 890: uint8(1), + 892: uint8(207), + 893: uint8(255), + 895: uint8(30), + 896: uint8(238), + 897: uint8(159), + 898: uint8(249), + 899: uint8(255), + 900: uint8(255), + 901: uint8(253), + 902: uint8(237), + 903: uint8(227), + 904: uint8(159), + 905: uint8(25), + 906: uint8(192), + 907: uint8(176), + 908: uint8(207), + 909: uint8(255), + 910: uint8(2), + 912: uint8(236), + 913: uint8(199), + 914: uint8(61), + 915: uint8(214), + 916: uint8(24), + 917: uint8(199), + 918: uint8(255), + 919: uint8(195), + 920: uint8(199), + 921: uint8(29), + 922: uint8(129), + 924: uint8(192), + 925: uint8(255), + 928: uint8(239), + 929: uint8(223), + 930: uint8(253), + 931: uint8(255), + 932: uint8(255), + 933: uint8(253), + 934: uint8(255), + 935: uint8(227), + 936: uint8(223), + 937: uint8(29), + 938: uint8(96), + 939: uint8(7), + 940: uint8(207), + 941: uint8(255), + 944: uint8(239), + 945: uint8(223), + 946: uint8(253), + 947: uint8(255), + 948: uint8(255), + 949: uint8(253), + 950: uint8(239), + 951: uint8(227), + 952: uint8(223), + 953: uint8(29), + 954: uint8(96), + 955: uint8(64), + 956: uint8(207), + 957: uint8(255), + 958: uint8(6), + 960: uint8(239), + 961: uint8(223), + 962: uint8(253), + 963: uint8(255), + 964: uint8(255), + 965: uint8(255), + 966: uint8(255), + 967: uint8(231), + 968: uint8(223), + 969: uint8(93), + 970: uint8(240), + 971: uint8(128), + 972: uint8(207), + 973: uint8(255), + 975: uint8(252), + 976: uint8(236), + 977: uint8(255), + 978: uint8(127), + 979: uint8(252), + 980: uint8(255), + 981: uint8(255), + 982: uint8(251), + 983: uint8(47), + 984: uint8(127), + 985: uint8(128), + 986: uint8(95), + 987: uint8(255), + 988: uint8(192), + 989: uint8(255), + 990: uint8(12), + 992: uint8(254), + 993: uint8(255), + 994: uint8(255), + 995: uint8(255), + 996: uint8(255), + 997: uint8(127), + 998: uint8(255), + 999: uint8(7), + 1000: uint8(63), + 1001: uint8(32), + 1002: uint8(255), + 1003: uint8(3), + 1008: uint8(214), + 1009: uint8(247), + 1010: uint8(255), + 1011: uint8(255), + 1012: uint8(175), + 1013: uint8(255), + 1014: uint8(255), + 1015: uint8(59), + 1016: uint8(95), + 1017: uint8(32), + 1018: uint8(255), + 1019: uint8(243), + 1024: uint8(1), + 1028: uint8(255), + 1029: uint8(3), + 1032: uint8(255), + 1033: uint8(254), + 1034: uint8(255), + 1035: uint8(255), + 1036: uint8(255), + 1037: uint8(31), + 1038: uint8(254), + 1039: uint8(255), + 1040: uint8(3), + 1041: uint8(255), + 1042: uint8(255), + 1043: uint8(254), + 1044: uint8(255), + 1045: uint8(255), + 1046: uint8(255), + 1047: uint8(31), + 1056: uint8(255), + 1057: uint8(255), + 1058: uint8(255), + 1059: uint8(255), + 1060: uint8(255), + 1061: uint8(255), + 1062: uint8(127), + 1063: uint8(249), + 1064: uint8(255), + 1065: uint8(3), + 1066: uint8(255), + 1067: uint8(255), + 1068: uint8(255), + 1069: uint8(255), + 1070: uint8(255), + 1071: uint8(255), + 1072: uint8(255), + 1073: uint8(255), + 1074: uint8(255), + 1075: uint8(63), + 1076: uint8(255), + 1077: uint8(255), + 1078: uint8(255), + 1079: uint8(255), + 1080: uint8(191), + 1081: uint8(32), + 1082: uint8(255), + 1083: uint8(255), + 1084: uint8(255), + 1085: uint8(255), + 1086: uint8(255), + 1087: uint8(247), + 1088: uint8(255), + 1089: uint8(255), + 1090: uint8(255), + 1091: uint8(255), + 1092: uint8(255), + 1093: uint8(255), + 1094: uint8(255), + 1095: uint8(255), + 1096: uint8(255), + 1097: uint8(61), + 1098: uint8(127), + 1099: uint8(61), + 1100: uint8(255), + 1101: uint8(255), + 1102: uint8(255), + 1103: uint8(255), + 1104: uint8(255), + 1105: uint8(61), + 1106: uint8(255), + 1107: uint8(255), + 1108: uint8(255), + 1109: uint8(255), + 1110: uint8(61), + 1111: uint8(127), + 1112: uint8(61), + 1113: uint8(255), + 1114: uint8(127), + 1115: uint8(255), + 1116: uint8(255), + 1117: uint8(255), + 1118: uint8(255), + 1119: uint8(255), + 1120: uint8(255), + 1121: uint8(255), + 1122: uint8(61), + 1123: uint8(255), + 1124: uint8(255), + 1125: uint8(255), + 1126: uint8(255), + 1127: uint8(255), + 1128: uint8(255), + 1129: uint8(255), + 1130: uint8(255), + 1131: uint8(7), + 1136: uint8(255), + 1137: uint8(255), + 1140: uint8(255), + 1141: uint8(255), + 1142: uint8(255), + 1143: uint8(255), + 1144: uint8(255), + 1145: uint8(255), + 1146: uint8(255), + 1147: uint8(255), + 1148: uint8(255), + 1149: uint8(255), + 1150: uint8(63), + 1151: uint8(63), + 1152: uint8(254), + 1153: uint8(255), + 1154: uint8(255), + 1155: uint8(255), + 1156: uint8(255), + 1157: uint8(255), + 1158: uint8(255), + 1159: uint8(255), + 1160: uint8(255), + 1161: uint8(255), + 1162: uint8(255), + 1163: uint8(255), + 1164: uint8(255), + 1165: uint8(255), + 1166: uint8(255), + 1167: uint8(255), + 1168: uint8(255), + 1169: uint8(255), + 1170: uint8(255), + 1171: uint8(255), + 1172: uint8(255), + 1173: uint8(255), + 1174: uint8(255), + 1175: uint8(255), + 1176: uint8(255), + 1177: uint8(255), + 1178: uint8(255), + 1179: uint8(255), + 1180: uint8(255), + 1181: uint8(255), + 1182: uint8(255), + 1183: uint8(255), + 1184: uint8(255), + 1185: uint8(255), + 1186: uint8(255), + 1187: uint8(255), + 1188: uint8(255), + 1189: uint8(255), + 1190: uint8(255), + 1191: uint8(255), + 1192: uint8(255), + 1193: uint8(255), + 1194: uint8(255), + 1195: uint8(255), + 1196: uint8(255), + 1197: uint8(159), + 1198: uint8(255), + 1199: uint8(255), + 1200: uint8(254), + 1201: uint8(255), + 1202: uint8(255), + 1203: uint8(7), + 1204: uint8(255), + 1205: uint8(255), + 1206: uint8(255), + 1207: uint8(255), + 1208: uint8(255), + 1209: uint8(255), + 1210: uint8(255), + 1211: uint8(255), + 1212: uint8(255), + 1213: uint8(199), + 1214: uint8(255), + 1215: uint8(1), + 1216: uint8(255), + 1217: uint8(223), + 1218: uint8(15), + 1220: uint8(255), + 1221: uint8(255), + 1222: uint8(15), + 1224: uint8(255), + 1225: uint8(255), + 1226: uint8(15), + 1228: uint8(255), + 1229: uint8(223), + 1230: uint8(13), + 1232: uint8(255), + 1233: uint8(255), + 1234: uint8(255), + 1235: uint8(255), + 1236: uint8(255), + 1237: uint8(255), + 1238: uint8(207), + 1239: uint8(255), + 1240: uint8(255), + 1241: uint8(1), + 1242: uint8(128), + 1243: uint8(16), + 1244: uint8(255), + 1245: uint8(3), + 1250: uint8(255), + 1251: uint8(3), + 1252: uint8(255), + 1253: uint8(255), + 1254: uint8(255), + 1255: uint8(255), + 1256: uint8(255), + 1257: uint8(255), + 1258: uint8(255), + 1259: uint8(255), + 1260: uint8(255), + 1261: uint8(255), + 1262: uint8(255), + 1263: uint8(1), + 1264: uint8(255), + 1265: uint8(255), + 1266: uint8(255), + 1267: uint8(255), + 1268: uint8(255), + 1269: uint8(7), + 1270: uint8(255), + 1271: uint8(255), + 1272: uint8(255), + 1273: uint8(255), + 1274: uint8(255), + 1275: uint8(255), + 1276: uint8(255), + 1277: uint8(255), + 1278: uint8(63), + 1280: uint8(255), + 1281: uint8(255), + 1282: uint8(255), + 1283: uint8(127), + 1284: uint8(255), + 1285: uint8(15), + 1286: uint8(255), + 1287: uint8(1), + 1288: uint8(192), + 1289: uint8(255), + 1290: uint8(255), + 1291: uint8(255), + 1292: uint8(255), + 1293: uint8(63), + 1294: uint8(31), + 1296: uint8(255), + 1297: uint8(255), + 1298: uint8(255), + 1299: uint8(255), + 1300: uint8(255), + 1301: uint8(15), + 1302: uint8(255), + 1303: uint8(255), + 1304: uint8(255), + 1305: uint8(3), + 1306: uint8(255), + 1307: uint8(3), + 1312: uint8(255), + 1313: uint8(255), + 1314: uint8(255), + 1315: uint8(15), + 1316: uint8(255), + 1317: uint8(255), + 1318: uint8(255), + 1319: uint8(255), + 1320: uint8(255), + 1321: uint8(255), + 1322: uint8(255), + 1323: uint8(127), + 1324: uint8(254), + 1325: uint8(255), + 1326: uint8(31), + 1328: uint8(255), + 1329: uint8(3), + 1330: uint8(255), + 1331: uint8(3), + 1332: uint8(128), + 1344: uint8(255), + 1345: uint8(255), + 1346: uint8(255), + 1347: uint8(255), + 1348: uint8(255), + 1349: uint8(255), + 1350: uint8(239), + 1351: uint8(255), + 1352: uint8(239), + 1353: uint8(15), + 1354: uint8(255), + 1355: uint8(3), + 1360: uint8(255), + 1361: uint8(255), + 1362: uint8(255), + 1363: uint8(255), + 1364: uint8(255), + 1365: uint8(243), + 1366: uint8(255), + 1367: uint8(255), + 1368: uint8(255), + 1369: uint8(255), + 1370: uint8(255), + 1371: uint8(255), + 1372: uint8(191), + 1373: uint8(255), + 1374: uint8(3), + 1376: uint8(255), + 1377: uint8(255), + 1378: uint8(255), + 1379: uint8(255), + 1380: uint8(255), + 1381: uint8(255), + 1382: uint8(127), + 1384: uint8(255), + 1385: uint8(227), + 1386: uint8(255), + 1387: uint8(255), + 1388: uint8(255), + 1389: uint8(255), + 1390: uint8(255), + 1391: uint8(63), + 1392: uint8(255), + 1393: uint8(1), + 1394: uint8(255), + 1395: uint8(255), + 1396: uint8(255), + 1397: uint8(255), + 1398: uint8(255), + 1399: uint8(231), + 1405: uint8(222), + 1406: uint8(111), + 1407: uint8(4), + 1408: uint8(255), + 1409: uint8(255), + 1410: uint8(255), + 1411: uint8(255), + 1412: uint8(255), + 1413: uint8(255), + 1414: uint8(255), + 1415: uint8(255), + 1416: uint8(255), + 1417: uint8(255), + 1418: uint8(255), + 1419: uint8(255), + 1420: uint8(255), + 1421: uint8(255), + 1422: uint8(255), + 1423: uint8(255), + 1424: uint8(255), + 1425: uint8(255), + 1426: uint8(255), + 1427: uint8(255), + 1428: uint8(255), + 1429: uint8(255), + 1430: uint8(255), + 1431: uint8(255), + 1436: uint8(128), + 1437: uint8(255), + 1438: uint8(31), + 1440: uint8(255), + 1441: uint8(255), + 1442: uint8(63), + 1443: uint8(63), + 1444: uint8(255), + 1445: uint8(255), + 1446: uint8(255), + 1447: uint8(255), + 1448: uint8(63), + 1449: uint8(63), + 1450: uint8(255), + 1451: uint8(170), + 1452: uint8(255), + 1453: uint8(255), + 1454: uint8(255), + 1455: uint8(63), + 1456: uint8(255), + 1457: uint8(255), + 1458: uint8(255), + 1459: uint8(255), + 1460: uint8(255), + 1461: uint8(255), + 1462: uint8(223), + 1463: uint8(95), + 1464: uint8(220), + 1465: uint8(31), + 1466: uint8(207), + 1467: uint8(15), + 1468: uint8(255), + 1469: uint8(31), + 1470: uint8(220), + 1471: uint8(31), + 1486: uint8(2), + 1487: uint8(128), + 1490: uint8(255), + 1491: uint8(31), + 1504: uint8(132), + 1505: uint8(252), + 1506: uint8(47), + 1507: uint8(62), + 1508: uint8(80), + 1509: uint8(189), + 1510: uint8(255), + 1511: uint8(243), + 1512: uint8(224), + 1513: uint8(67), + 1516: uint8(255), + 1517: uint8(255), + 1518: uint8(255), + 1519: uint8(255), + 1520: uint8(255), + 1521: uint8(1), + 1558: uint8(192), + 1559: uint8(255), + 1560: uint8(255), + 1561: uint8(255), + 1562: uint8(255), + 1563: uint8(255), + 1564: uint8(255), + 1565: uint8(3), + 1568: uint8(255), + 1569: uint8(255), + 1570: uint8(255), + 1571: uint8(255), + 1572: uint8(255), + 1573: uint8(127), + 1574: uint8(255), + 1575: uint8(255), + 1576: uint8(255), + 1577: uint8(255), + 1578: uint8(255), + 1579: uint8(127), + 1580: uint8(255), + 1581: uint8(255), + 1582: uint8(255), + 1583: uint8(255), + 1584: uint8(255), + 1585: uint8(255), + 1586: uint8(255), + 1587: uint8(255), + 1588: uint8(255), + 1589: uint8(255), + 1590: uint8(255), + 1591: uint8(255), + 1592: uint8(255), + 1593: uint8(255), + 1594: uint8(255), + 1595: uint8(255), + 1596: uint8(31), + 1597: uint8(120), + 1598: uint8(12), + 1600: uint8(255), + 1601: uint8(255), + 1602: uint8(255), + 1603: uint8(255), + 1604: uint8(191), + 1605: uint8(32), + 1606: uint8(255), + 1607: uint8(255), + 1608: uint8(255), + 1609: uint8(255), + 1610: uint8(255), + 1611: uint8(255), + 1612: uint8(255), + 1613: uint8(128), + 1616: uint8(255), + 1617: uint8(255), + 1618: uint8(127), + 1620: uint8(127), + 1621: uint8(127), + 1622: uint8(127), + 1623: uint8(127), + 1624: uint8(127), + 1625: uint8(127), + 1626: uint8(127), + 1627: uint8(127), + 1628: uint8(255), + 1629: uint8(255), + 1630: uint8(255), + 1631: uint8(255), + 1637: uint8(128), + 1664: uint8(224), + 1668: uint8(254), + 1669: uint8(3), + 1670: uint8(62), + 1671: uint8(31), + 1672: uint8(254), + 1673: uint8(255), + 1674: uint8(255), + 1675: uint8(255), + 1676: uint8(255), + 1677: uint8(255), + 1678: uint8(255), + 1679: uint8(255), + 1680: uint8(255), + 1681: uint8(255), + 1682: uint8(127), + 1683: uint8(224), + 1684: uint8(254), + 1685: uint8(255), + 1686: uint8(255), + 1687: uint8(255), + 1688: uint8(255), + 1689: uint8(255), + 1690: uint8(255), + 1691: uint8(255), + 1692: uint8(255), + 1693: uint8(255), + 1694: uint8(255), + 1695: uint8(247), + 1696: uint8(224), + 1697: uint8(255), + 1698: uint8(255), + 1699: uint8(255), + 1700: uint8(255), + 1701: uint8(255), + 1702: uint8(254), + 1703: uint8(255), + 1704: uint8(255), + 1705: uint8(255), + 1706: uint8(255), + 1707: uint8(255), + 1708: uint8(255), + 1709: uint8(255), + 1710: uint8(255), + 1711: uint8(255), + 1712: uint8(255), + 1713: uint8(127), + 1716: uint8(255), + 1717: uint8(255), + 1718: uint8(255), + 1719: uint8(7), + 1726: uint8(255), + 1727: uint8(255), + 1728: uint8(255), + 1729: uint8(255), + 1730: uint8(255), + 1731: uint8(255), + 1732: uint8(255), + 1733: uint8(255), + 1734: uint8(255), + 1735: uint8(255), + 1736: uint8(255), + 1737: uint8(255), + 1738: uint8(255), + 1739: uint8(255), + 1740: uint8(255), + 1741: uint8(255), + 1742: uint8(255), + 1743: uint8(255), + 1744: uint8(255), + 1745: uint8(255), + 1746: uint8(255), + 1747: uint8(255), + 1748: uint8(255), + 1749: uint8(255), + 1750: uint8(63), + 1760: uint8(255), + 1761: uint8(255), + 1762: uint8(255), + 1763: uint8(255), + 1764: uint8(255), + 1765: uint8(255), + 1766: uint8(255), + 1767: uint8(255), + 1768: uint8(255), + 1769: uint8(255), + 1770: uint8(255), + 1771: uint8(255), + 1772: uint8(255), + 1773: uint8(255), + 1774: uint8(255), + 1775: uint8(255), + 1776: uint8(255), + 1777: uint8(255), + 1778: uint8(255), + 1779: uint8(255), + 1780: uint8(255), + 1781: uint8(255), + 1782: uint8(255), + 1783: uint8(255), + 1784: uint8(255), + 1785: uint8(255), + 1786: uint8(255), + 1787: uint8(255), + 1788: uint8(255), + 1789: uint8(255), + 1792: uint8(255), + 1793: uint8(255), + 1794: uint8(255), + 1795: uint8(255), + 1796: uint8(255), + 1797: uint8(255), + 1798: uint8(255), + 1799: uint8(255), + 1800: uint8(255), + 1801: uint8(255), + 1802: uint8(255), + 1803: uint8(255), + 1804: uint8(255), + 1805: uint8(255), + 1806: uint8(255), + 1807: uint8(255), + 1808: uint8(255), + 1809: uint8(31), + 1818: uint8(255), + 1819: uint8(255), + 1820: uint8(255), + 1821: uint8(255), + 1822: uint8(255), + 1823: uint8(63), + 1824: uint8(255), + 1825: uint8(31), + 1826: uint8(255), + 1827: uint8(255), + 1828: uint8(255), + 1829: uint8(15), + 1832: uint8(255), + 1833: uint8(255), + 1834: uint8(255), + 1835: uint8(255), + 1836: uint8(255), + 1837: uint8(127), + 1838: uint8(240), + 1839: uint8(143), + 1840: uint8(255), + 1841: uint8(255), + 1842: uint8(255), + 1843: uint8(255), + 1844: uint8(255), + 1845: uint8(255), + 1846: uint8(255), + 1847: uint8(255), + 1848: uint8(255), + 1849: uint8(255), + 1850: uint8(255), + 1851: uint8(255), + 1852: uint8(255), + 1853: uint8(255), + 1858: uint8(128), + 1859: uint8(255), + 1860: uint8(252), + 1861: uint8(255), + 1862: uint8(255), + 1863: uint8(255), + 1864: uint8(255), + 1865: uint8(255), + 1866: uint8(255), + 1867: uint8(255), + 1868: uint8(255), + 1869: uint8(255), + 1870: uint8(255), + 1871: uint8(255), + 1872: uint8(255), + 1873: uint8(249), + 1874: uint8(255), + 1875: uint8(255), + 1876: uint8(255), + 1877: uint8(255), + 1878: uint8(255), + 1879: uint8(255), + 1880: uint8(124), + 1886: uint8(128), + 1887: uint8(255), + 1888: uint8(191), + 1889: uint8(255), + 1890: uint8(255), + 1891: uint8(255), + 1892: uint8(255), + 1896: uint8(255), + 1897: uint8(255), + 1898: uint8(255), + 1899: uint8(255), + 1900: uint8(255), + 1901: uint8(255), + 1902: uint8(15), + 1904: uint8(255), + 1905: uint8(255), + 1906: uint8(255), + 1907: uint8(255), + 1908: uint8(255), + 1909: uint8(255), + 1910: uint8(255), + 1911: uint8(255), + 1912: uint8(47), + 1914: uint8(255), + 1915: uint8(3), + 1918: uint8(252), + 1919: uint8(232), + 1920: uint8(255), + 1921: uint8(255), + 1922: uint8(255), + 1923: uint8(255), + 1924: uint8(255), + 1925: uint8(7), + 1926: uint8(255), + 1927: uint8(255), + 1928: uint8(255), + 1929: uint8(255), + 1930: uint8(7), + 1932: uint8(255), + 1933: uint8(255), + 1934: uint8(255), + 1935: uint8(31), + 1936: uint8(255), + 1937: uint8(255), + 1938: uint8(255), + 1939: uint8(255), + 1940: uint8(255), + 1941: uint8(255), + 1942: uint8(247), + 1943: uint8(255), + 1945: uint8(128), + 1946: uint8(255), + 1947: uint8(3), + 1948: uint8(255), + 1949: uint8(255), + 1950: uint8(255), + 1951: uint8(127), + 1952: uint8(255), + 1953: uint8(255), + 1954: uint8(255), + 1955: uint8(255), + 1956: uint8(255), + 1957: uint8(255), + 1958: uint8(127), + 1960: uint8(255), + 1961: uint8(63), + 1962: uint8(255), + 1963: uint8(3), + 1964: uint8(255), + 1965: uint8(255), + 1966: uint8(127), + 1967: uint8(252), + 1968: uint8(255), + 1969: uint8(255), + 1970: uint8(255), + 1971: uint8(255), + 1972: uint8(255), + 1973: uint8(255), + 1974: uint8(255), + 1975: uint8(127), + 1976: uint8(5), + 1979: uint8(56), + 1980: uint8(255), + 1981: uint8(255), + 1982: uint8(60), + 1984: uint8(126), + 1985: uint8(126), + 1986: uint8(126), + 1988: uint8(127), + 1989: uint8(127), + 1990: uint8(255), + 1991: uint8(255), + 1992: uint8(255), + 1993: uint8(255), + 1994: uint8(255), + 1995: uint8(247), + 1996: uint8(255), + 1998: uint8(255), + 1999: uint8(255), + 2000: uint8(255), + 2001: uint8(255), + 2002: uint8(255), + 2003: uint8(255), + 2004: uint8(255), + 2005: uint8(255), + 2006: uint8(255), + 2007: uint8(255), + 2008: uint8(255), + 2009: uint8(255), + 2010: uint8(255), + 2011: uint8(255), + 2012: uint8(255), + 2013: uint8(7), + 2014: uint8(255), + 2015: uint8(3), + 2016: uint8(255), + 2017: uint8(255), + 2018: uint8(255), + 2019: uint8(255), + 2020: uint8(255), + 2021: uint8(255), + 2022: uint8(255), + 2023: uint8(255), + 2024: uint8(255), + 2025: uint8(255), + 2026: uint8(255), + 2027: uint8(255), + 2028: uint8(255), + 2029: uint8(255), + 2030: uint8(255), + 2031: uint8(255), + 2032: uint8(255), + 2033: uint8(255), + 2034: uint8(255), + 2035: uint8(255), + 2036: uint8(15), + 2038: uint8(255), + 2039: uint8(255), + 2040: uint8(127), + 2041: uint8(248), + 2042: uint8(255), + 2043: uint8(255), + 2044: uint8(255), + 2045: uint8(255), + 2046: uint8(255), + 2047: uint8(15), + 2048: uint8(255), + 2049: uint8(255), + 2050: uint8(255), + 2051: uint8(255), + 2052: uint8(255), + 2053: uint8(255), + 2054: uint8(255), + 2055: uint8(255), + 2056: uint8(255), + 2057: uint8(255), + 2058: uint8(255), + 2059: uint8(255), + 2060: uint8(255), + 2061: uint8(63), + 2062: uint8(255), + 2063: uint8(255), + 2064: uint8(255), + 2065: uint8(255), + 2066: uint8(255), + 2067: uint8(255), + 2068: uint8(255), + 2069: uint8(255), + 2070: uint8(255), + 2071: uint8(255), + 2072: uint8(255), + 2073: uint8(255), + 2074: uint8(255), + 2075: uint8(3), + 2080: uint8(127), + 2082: uint8(248), + 2083: uint8(224), + 2084: uint8(255), + 2085: uint8(253), + 2086: uint8(127), + 2087: uint8(95), + 2088: uint8(219), + 2089: uint8(255), + 2090: uint8(255), + 2091: uint8(255), + 2092: uint8(255), + 2093: uint8(255), + 2094: uint8(255), + 2095: uint8(255), + 2096: uint8(255), + 2097: uint8(255), + 2098: uint8(255), + 2099: uint8(255), + 2100: uint8(255), + 2101: uint8(255), + 2102: uint8(3), + 2106: uint8(248), + 2107: uint8(255), + 2108: uint8(255), + 2109: uint8(255), + 2110: uint8(255), + 2111: uint8(255), + 2112: uint8(255), + 2113: uint8(255), + 2114: uint8(255), + 2115: uint8(255), + 2116: uint8(255), + 2117: uint8(255), + 2118: uint8(255), + 2119: uint8(63), + 2122: uint8(255), + 2123: uint8(255), + 2124: uint8(255), + 2125: uint8(255), + 2126: uint8(255), + 2127: uint8(255), + 2128: uint8(255), + 2129: uint8(255), + 2130: uint8(252), + 2131: uint8(255), + 2132: uint8(255), + 2133: uint8(255), + 2134: uint8(255), + 2135: uint8(255), + 2136: uint8(255), + 2142: uint8(255), + 2143: uint8(15), + 2158: uint8(223), + 2159: uint8(255), + 2160: uint8(255), + 2161: uint8(255), + 2162: uint8(255), + 2163: uint8(255), + 2164: uint8(255), + 2165: uint8(255), + 2166: uint8(255), + 2167: uint8(255), + 2168: uint8(255), + 2169: uint8(255), + 2170: uint8(255), + 2171: uint8(255), + 2172: uint8(255), + 2173: uint8(255), + 2174: uint8(255), + 2175: uint8(31), + 2178: uint8(255), + 2179: uint8(3), + 2180: uint8(254), + 2181: uint8(255), + 2182: uint8(255), + 2183: uint8(7), + 2184: uint8(254), + 2185: uint8(255), + 2186: uint8(255), + 2187: uint8(7), + 2188: uint8(192), + 2189: uint8(255), + 2190: uint8(255), + 2191: uint8(255), + 2192: uint8(255), + 2193: uint8(255), + 2194: uint8(255), + 2195: uint8(255), + 2196: uint8(255), + 2197: uint8(255), + 2198: uint8(255), + 2199: uint8(127), + 2200: uint8(252), + 2201: uint8(252), + 2202: uint8(252), + 2203: uint8(28), + 2208: uint8(255), + 2209: uint8(239), + 2210: uint8(255), + 2211: uint8(255), + 2212: uint8(127), + 2213: uint8(255), + 2214: uint8(255), + 2215: uint8(183), + 2216: uint8(255), + 2217: uint8(63), + 2218: uint8(255), + 2219: uint8(63), + 2224: uint8(255), + 2225: uint8(255), + 2226: uint8(255), + 2227: uint8(255), + 2228: uint8(255), + 2229: uint8(255), + 2230: uint8(255), + 2231: uint8(255), + 2232: uint8(255), + 2233: uint8(255), + 2234: uint8(255), + 2235: uint8(255), + 2236: uint8(255), + 2237: uint8(255), + 2238: uint8(255), + 2239: uint8(7), + 2248: uint8(255), + 2249: uint8(255), + 2250: uint8(255), + 2251: uint8(255), + 2252: uint8(255), + 2253: uint8(255), + 2254: uint8(31), + 2288: uint8(255), + 2289: uint8(255), + 2290: uint8(255), + 2291: uint8(31), + 2292: uint8(255), + 2293: uint8(255), + 2294: uint8(255), + 2295: uint8(255), + 2296: uint8(255), + 2297: uint8(255), + 2298: uint8(1), + 2304: uint8(255), + 2305: uint8(255), + 2306: uint8(255), + 2307: uint8(255), + 2309: uint8(224), + 2310: uint8(255), + 2311: uint8(255), + 2312: uint8(255), + 2313: uint8(7), + 2314: uint8(255), + 2315: uint8(255), + 2316: uint8(255), + 2317: uint8(255), + 2318: uint8(255), + 2319: uint8(7), + 2320: uint8(255), + 2321: uint8(255), + 2322: uint8(255), + 2323: uint8(63), + 2324: uint8(255), + 2325: uint8(255), + 2326: uint8(255), + 2327: uint8(255), + 2328: uint8(15), + 2329: uint8(255), + 2330: uint8(62), + 2336: uint8(255), + 2337: uint8(255), + 2338: uint8(255), + 2339: uint8(255), + 2340: uint8(255), + 2341: uint8(255), + 2342: uint8(255), + 2343: uint8(255), + 2344: uint8(255), + 2345: uint8(255), + 2346: uint8(255), + 2347: uint8(255), + 2348: uint8(255), + 2349: uint8(255), + 2350: uint8(255), + 2351: uint8(255), + 2352: uint8(255), + 2353: uint8(255), + 2354: uint8(255), + 2355: uint8(63), + 2356: uint8(255), + 2357: uint8(3), + 2358: uint8(255), + 2359: uint8(255), + 2360: uint8(255), + 2361: uint8(255), + 2362: uint8(15), + 2363: uint8(255), + 2364: uint8(255), + 2365: uint8(255), + 2366: uint8(255), + 2367: uint8(15), + 2368: uint8(255), + 2369: uint8(255), + 2370: uint8(255), + 2371: uint8(255), + 2372: uint8(255), + 2374: uint8(255), + 2375: uint8(255), + 2376: uint8(255), + 2377: uint8(255), + 2378: uint8(255), + 2379: uint8(255), + 2380: uint8(15), + 2400: uint8(255), + 2401: uint8(255), + 2402: uint8(255), + 2403: uint8(255), + 2404: uint8(255), + 2405: uint8(255), + 2406: uint8(127), + 2408: uint8(255), + 2409: uint8(255), + 2410: uint8(63), + 2412: uint8(255), + 2432: uint8(63), + 2433: uint8(253), + 2434: uint8(255), + 2435: uint8(255), + 2436: uint8(255), + 2437: uint8(255), + 2438: uint8(191), + 2439: uint8(145), + 2440: uint8(255), + 2441: uint8(255), + 2442: uint8(63), + 2444: uint8(255), + 2445: uint8(255), + 2446: uint8(127), + 2448: uint8(255), + 2449: uint8(255), + 2450: uint8(255), + 2451: uint8(127), + 2460: uint8(255), + 2461: uint8(255), + 2462: uint8(55), + 2464: uint8(255), + 2465: uint8(255), + 2466: uint8(63), + 2468: uint8(255), + 2469: uint8(255), + 2470: uint8(255), + 2471: uint8(3), + 2480: uint8(255), + 2481: uint8(255), + 2482: uint8(255), + 2483: uint8(255), + 2484: uint8(255), + 2485: uint8(255), + 2486: uint8(255), + 2487: uint8(192), + 2496: uint8(111), + 2497: uint8(240), + 2498: uint8(239), + 2499: uint8(254), + 2500: uint8(255), + 2501: uint8(255), + 2502: uint8(63), + 2508: uint8(255), + 2509: uint8(255), + 2510: uint8(255), + 2511: uint8(31), + 2512: uint8(255), + 2513: uint8(255), + 2514: uint8(255), + 2515: uint8(31), + 2520: uint8(255), + 2521: uint8(254), + 2522: uint8(255), + 2523: uint8(255), + 2524: uint8(31), + 2528: uint8(255), + 2529: uint8(255), + 2530: uint8(255), + 2531: uint8(255), + 2532: uint8(255), + 2533: uint8(255), + 2534: uint8(63), + 2536: uint8(255), + 2537: uint8(255), + 2538: uint8(63), + 2540: uint8(255), + 2541: uint8(255), + 2542: uint8(7), + 2544: uint8(255), + 2545: uint8(255), + 2546: uint8(3), + 2560: uint8(255), + 2561: uint8(255), + 2562: uint8(255), + 2563: uint8(255), + 2564: uint8(255), + 2565: uint8(255), + 2566: uint8(255), + 2567: uint8(255), + 2568: uint8(255), + 2569: uint8(1), + 2576: uint8(255), + 2577: uint8(255), + 2578: uint8(255), + 2579: uint8(255), + 2580: uint8(255), + 2581: uint8(255), + 2582: uint8(7), + 2584: uint8(255), + 2585: uint8(255), + 2586: uint8(255), + 2587: uint8(255), + 2588: uint8(255), + 2589: uint8(255), + 2590: uint8(7), + 2592: uint8(255), + 2593: uint8(255), + 2594: uint8(255), + 2595: uint8(255), + 2596: uint8(255), + 2598: uint8(255), + 2599: uint8(3), + 2624: uint8(255), + 2625: uint8(255), + 2626: uint8(255), + 2627: uint8(31), + 2628: uint8(128), + 2630: uint8(255), + 2631: uint8(255), + 2632: uint8(63), + 2652: uint8(255), + 2653: uint8(255), + 2654: uint8(127), + 2656: uint8(255), + 2657: uint8(255), + 2658: uint8(255), + 2659: uint8(255), + 2660: uint8(255), + 2661: uint8(255), + 2662: uint8(255), + 2663: uint8(255), + 2664: uint8(63), + 2668: uint8(192), + 2669: uint8(255), + 2672: uint8(252), + 2673: uint8(255), + 2674: uint8(255), + 2675: uint8(255), + 2676: uint8(255), + 2677: uint8(255), + 2678: uint8(255), + 2679: uint8(1), + 2682: uint8(255), + 2683: uint8(255), + 2684: uint8(255), + 2685: uint8(1), + 2686: uint8(255), + 2687: uint8(3), + 2688: uint8(255), + 2689: uint8(255), + 2690: uint8(255), + 2691: uint8(255), + 2692: uint8(255), + 2693: uint8(255), + 2694: uint8(199), + 2695: uint8(255), + 2696: uint8(112), + 2698: uint8(255), + 2699: uint8(255), + 2700: uint8(255), + 2701: uint8(255), + 2702: uint8(71), + 2704: uint8(255), + 2705: uint8(255), + 2706: uint8(255), + 2707: uint8(255), + 2708: uint8(255), + 2709: uint8(255), + 2710: uint8(255), + 2711: uint8(255), + 2712: uint8(30), + 2714: uint8(255), + 2715: uint8(23), + 2720: uint8(255), + 2721: uint8(255), + 2722: uint8(251), + 2723: uint8(255), + 2724: uint8(255), + 2725: uint8(255), + 2726: uint8(159), + 2727: uint8(64), + 2736: uint8(127), + 2737: uint8(189), + 2738: uint8(255), + 2739: uint8(191), + 2740: uint8(255), + 2741: uint8(1), + 2742: uint8(255), + 2743: uint8(255), + 2744: uint8(255), + 2745: uint8(255), + 2746: uint8(255), + 2747: uint8(255), + 2748: uint8(255), + 2749: uint8(1), + 2750: uint8(255), + 2751: uint8(3), + 2752: uint8(239), + 2753: uint8(159), + 2754: uint8(249), + 2755: uint8(255), + 2756: uint8(255), + 2757: uint8(253), + 2758: uint8(237), + 2759: uint8(227), + 2760: uint8(159), + 2761: uint8(25), + 2762: uint8(129), + 2763: uint8(224), + 2764: uint8(15), + 2784: uint8(255), + 2785: uint8(255), + 2786: uint8(255), + 2787: uint8(255), + 2788: uint8(255), + 2789: uint8(255), + 2790: uint8(255), + 2791: uint8(255), + 2792: uint8(187), + 2793: uint8(7), + 2794: uint8(255), + 2795: uint8(131), + 2800: uint8(255), + 2801: uint8(255), + 2802: uint8(255), + 2803: uint8(255), + 2804: uint8(255), + 2805: uint8(255), + 2806: uint8(255), + 2807: uint8(255), + 2808: uint8(179), + 2810: uint8(255), + 2811: uint8(3), + 2832: uint8(255), + 2833: uint8(255), + 2834: uint8(255), + 2835: uint8(255), + 2836: uint8(255), + 2837: uint8(255), + 2838: uint8(63), + 2839: uint8(127), + 2843: uint8(63), + 2848: uint8(255), + 2849: uint8(255), + 2850: uint8(255), + 2851: uint8(255), + 2852: uint8(255), + 2853: uint8(255), + 2854: uint8(255), + 2855: uint8(127), + 2856: uint8(17), + 2858: uint8(255), + 2859: uint8(3), + 2864: uint8(255), + 2865: uint8(255), + 2866: uint8(255), + 2867: uint8(255), + 2868: uint8(255), + 2869: uint8(255), + 2870: uint8(63), + 2871: uint8(1), + 2872: uint8(255), + 2873: uint8(3), + 2880: uint8(255), + 2881: uint8(255), + 2882: uint8(255), + 2883: uint8(231), + 2884: uint8(255), + 2885: uint8(7), + 2886: uint8(255), + 2887: uint8(3), + 2912: uint8(255), + 2913: uint8(255), + 2914: uint8(255), + 2915: uint8(255), + 2916: uint8(255), + 2917: uint8(255), + 2918: uint8(255), + 2919: uint8(1), + 2932: uint8(255), + 2933: uint8(255), + 2934: uint8(255), + 2935: uint8(255), + 2936: uint8(255), + 2937: uint8(255), + 2938: uint8(255), + 2939: uint8(255), + 2940: uint8(255), + 2941: uint8(3), + 2943: uint8(128), + 2964: uint8(255), + 2965: uint8(252), + 2966: uint8(255), + 2967: uint8(255), + 2968: uint8(255), + 2969: uint8(255), + 2970: uint8(255), + 2971: uint8(252), + 2972: uint8(26), + 2976: uint8(255), + 2977: uint8(255), + 2978: uint8(255), + 2979: uint8(255), + 2980: uint8(255), + 2981: uint8(255), + 2982: uint8(231), + 2983: uint8(127), + 2986: uint8(255), + 2987: uint8(255), + 2988: uint8(255), + 2989: uint8(255), + 2990: uint8(255), + 2991: uint8(255), + 2992: uint8(255), + 2993: uint8(255), + 2994: uint8(255), + 2995: uint8(32), + 3000: uint8(255), + 3001: uint8(255), + 3002: uint8(255), + 3003: uint8(255), + 3004: uint8(255), + 3005: uint8(255), + 3006: uint8(255), + 3007: uint8(1), + 3008: uint8(255), + 3009: uint8(253), + 3010: uint8(255), + 3011: uint8(255), + 3012: uint8(255), + 3013: uint8(255), + 3014: uint8(127), + 3015: uint8(127), + 3016: uint8(1), + 3018: uint8(255), + 3019: uint8(3), + 3022: uint8(252), + 3023: uint8(255), + 3024: uint8(255), + 3025: uint8(255), + 3026: uint8(252), + 3027: uint8(255), + 3028: uint8(255), + 3029: uint8(254), + 3030: uint8(127), + 3040: uint8(127), + 3041: uint8(251), + 3042: uint8(255), + 3043: uint8(255), + 3044: uint8(255), + 3045: uint8(255), + 3046: uint8(127), + 3047: uint8(180), + 3048: uint8(203), + 3050: uint8(255), + 3051: uint8(3), + 3052: uint8(191), + 3053: uint8(253), + 3054: uint8(255), + 3055: uint8(255), + 3056: uint8(255), + 3057: uint8(127), + 3058: uint8(123), + 3059: uint8(1), + 3060: uint8(255), + 3061: uint8(3), + 3100: uint8(255), + 3101: uint8(255), + 3102: uint8(127), + 3104: uint8(255), + 3105: uint8(255), + 3106: uint8(255), + 3107: uint8(255), + 3108: uint8(255), + 3109: uint8(255), + 3110: uint8(255), + 3111: uint8(255), + 3112: uint8(255), + 3113: uint8(255), + 3114: uint8(255), + 3115: uint8(255), + 3116: uint8(255), + 3117: uint8(255), + 3118: uint8(255), + 3119: uint8(255), + 3120: uint8(255), + 3121: uint8(255), + 3122: uint8(255), + 3123: uint8(3), + 3136: uint8(255), + 3137: uint8(255), + 3138: uint8(255), + 3139: uint8(255), + 3140: uint8(255), + 3141: uint8(255), + 3142: uint8(255), + 3143: uint8(255), + 3144: uint8(255), + 3145: uint8(255), + 3146: uint8(255), + 3147: uint8(255), + 3148: uint8(255), + 3149: uint8(127), + 3152: uint8(255), + 3153: uint8(255), + 3154: uint8(255), + 3155: uint8(255), + 3156: uint8(255), + 3157: uint8(255), + 3158: uint8(255), + 3159: uint8(255), + 3160: uint8(255), + 3161: uint8(255), + 3162: uint8(255), + 3163: uint8(255), + 3164: uint8(255), + 3165: uint8(255), + 3166: uint8(255), + 3167: uint8(255), + 3168: uint8(255), + 3169: uint8(255), + 3170: uint8(255), + 3171: uint8(255), + 3172: uint8(255), + 3173: uint8(255), + 3174: uint8(255), + 3175: uint8(255), + 3176: uint8(15), + 3200: uint8(255), + 3201: uint8(255), + 3202: uint8(255), + 3203: uint8(255), + 3204: uint8(255), + 3205: uint8(127), + 3232: uint8(255), + 3233: uint8(255), + 3234: uint8(255), + 3235: uint8(255), + 3236: uint8(255), + 3237: uint8(255), + 3238: uint8(255), + 3239: uint8(255), + 3240: uint8(127), + 3264: uint8(255), + 3265: uint8(255), + 3266: uint8(255), + 3267: uint8(255), + 3268: uint8(255), + 3269: uint8(255), + 3270: uint8(255), + 3271: uint8(1), + 3272: uint8(255), + 3273: uint8(255), + 3274: uint8(255), + 3275: uint8(127), + 3276: uint8(255), + 3277: uint8(3), + 3290: uint8(255), + 3291: uint8(255), + 3292: uint8(255), + 3293: uint8(63), + 3296: uint8(255), + 3297: uint8(255), + 3298: uint8(255), + 3299: uint8(255), + 3300: uint8(255), + 3301: uint8(255), + 3304: uint8(15), + 3306: uint8(255), + 3307: uint8(3), + 3308: uint8(248), + 3309: uint8(255), + 3310: uint8(255), + 3311: uint8(224), + 3312: uint8(255), + 3313: uint8(255), + 3336: uint8(255), + 3337: uint8(255), + 3338: uint8(255), + 3339: uint8(255), + 3340: uint8(255), + 3341: uint8(255), + 3342: uint8(255), + 3343: uint8(255), + 3360: uint8(255), + 3361: uint8(255), + 3362: uint8(255), + 3363: uint8(255), + 3364: uint8(255), + 3365: uint8(255), + 3366: uint8(255), + 3367: uint8(255), + 3368: uint8(255), + 3369: uint8(135), + 3370: uint8(255), + 3371: uint8(255), + 3372: uint8(255), + 3373: uint8(255), + 3374: uint8(255), + 3375: uint8(255), + 3376: uint8(255), + 3377: uint8(128), + 3378: uint8(255), + 3379: uint8(255), + 3388: uint8(11), + 3392: uint8(255), + 3393: uint8(255), + 3394: uint8(255), + 3395: uint8(255), + 3396: uint8(255), + 3397: uint8(255), + 3398: uint8(255), + 3399: uint8(255), + 3400: uint8(255), + 3401: uint8(255), + 3402: uint8(255), + 3403: uint8(255), + 3404: uint8(255), + 3405: uint8(255), + 3406: uint8(255), + 3407: uint8(255), + 3408: uint8(255), + 3409: uint8(255), + 3410: uint8(255), + 3411: uint8(255), + 3412: uint8(255), + 3413: uint8(255), + 3414: uint8(255), + 3415: uint8(255), + 3416: uint8(255), + 3417: uint8(255), + 3418: uint8(255), + 3419: uint8(255), + 3420: uint8(255), + 3421: uint8(255), + 3422: uint8(255), + 3424: uint8(255), + 3425: uint8(255), + 3426: uint8(255), + 3427: uint8(255), + 3428: uint8(255), + 3429: uint8(255), + 3430: uint8(255), + 3431: uint8(255), + 3432: uint8(255), + 3433: uint8(255), + 3434: uint8(255), + 3435: uint8(255), + 3436: uint8(255), + 3437: uint8(255), + 3438: uint8(255), + 3439: uint8(255), + 3440: uint8(255), + 3441: uint8(255), + 3442: uint8(255), + 3443: uint8(255), + 3444: uint8(255), + 3445: uint8(255), + 3446: uint8(255), + 3447: uint8(255), + 3448: uint8(255), + 3449: uint8(255), + 3450: uint8(255), + 3451: uint8(255), + 3452: uint8(255), + 3453: uint8(255), + 3454: uint8(7), + 3456: uint8(255), + 3457: uint8(255), + 3458: uint8(255), + 3459: uint8(127), + 3466: uint8(7), + 3468: uint8(240), + 3470: uint8(255), + 3471: uint8(255), + 3472: uint8(255), + 3473: uint8(255), + 3474: uint8(255), + 3475: uint8(255), + 3476: uint8(255), + 3477: uint8(255), + 3478: uint8(255), + 3479: uint8(255), + 3480: uint8(255), + 3481: uint8(255), + 3482: uint8(255), + 3483: uint8(255), + 3484: uint8(255), + 3485: uint8(255), + 3486: uint8(255), + 3487: uint8(255), + 3488: uint8(255), + 3489: uint8(255), + 3490: uint8(255), + 3491: uint8(255), + 3492: uint8(255), + 3493: uint8(255), + 3494: uint8(255), + 3495: uint8(255), + 3496: uint8(255), + 3497: uint8(255), + 3498: uint8(255), + 3499: uint8(255), + 3500: uint8(255), + 3501: uint8(255), + 3502: uint8(255), + 3503: uint8(255), + 3504: uint8(255), + 3505: uint8(255), + 3506: uint8(255), + 3507: uint8(255), + 3508: uint8(255), + 3509: uint8(255), + 3510: uint8(255), + 3511: uint8(255), + 3512: uint8(255), + 3513: uint8(255), + 3514: uint8(255), + 3515: uint8(255), + 3516: uint8(255), + 3517: uint8(255), + 3518: uint8(255), + 3519: uint8(15), + 3520: uint8(255), + 3521: uint8(255), + 3522: uint8(255), + 3523: uint8(255), + 3524: uint8(255), + 3525: uint8(255), + 3526: uint8(255), + 3527: uint8(255), + 3528: uint8(255), + 3529: uint8(255), + 3530: uint8(255), + 3531: uint8(255), + 3532: uint8(255), + 3533: uint8(7), + 3534: uint8(255), + 3535: uint8(31), + 3536: uint8(255), + 3537: uint8(1), + 3538: uint8(255), + 3539: uint8(67), + 3552: uint8(255), + 3553: uint8(255), + 3554: uint8(255), + 3555: uint8(255), + 3556: uint8(255), + 3557: uint8(255), + 3558: uint8(255), + 3559: uint8(255), + 3560: uint8(255), + 3561: uint8(255), + 3562: uint8(223), + 3563: uint8(255), + 3564: uint8(255), + 3565: uint8(255), + 3566: uint8(255), + 3567: uint8(255), + 3568: uint8(255), + 3569: uint8(255), + 3570: uint8(255), + 3571: uint8(223), + 3572: uint8(100), + 3573: uint8(222), + 3574: uint8(255), + 3575: uint8(235), + 3576: uint8(239), + 3577: uint8(255), + 3578: uint8(255), + 3579: uint8(255), + 3580: uint8(255), + 3581: uint8(255), + 3582: uint8(255), + 3583: uint8(255), + 3584: uint8(191), + 3585: uint8(231), + 3586: uint8(223), + 3587: uint8(223), + 3588: uint8(255), + 3589: uint8(255), + 3590: uint8(255), + 3591: uint8(123), + 3592: uint8(95), + 3593: uint8(252), + 3594: uint8(253), + 3595: uint8(255), + 3596: uint8(255), + 3597: uint8(255), + 3598: uint8(255), + 3599: uint8(255), + 3600: uint8(255), + 3601: uint8(255), + 3602: uint8(255), + 3603: uint8(255), + 3604: uint8(255), + 3605: uint8(255), + 3606: uint8(255), + 3607: uint8(255), + 3608: uint8(255), + 3609: uint8(255), + 3610: uint8(255), + 3611: uint8(255), + 3612: uint8(255), + 3613: uint8(255), + 3614: uint8(255), + 3615: uint8(255), + 3616: uint8(255), + 3617: uint8(255), + 3618: uint8(255), + 3619: uint8(255), + 3620: uint8(255), + 3621: uint8(255), + 3622: uint8(255), + 3623: uint8(255), + 3624: uint8(255), + 3625: uint8(255), + 3626: uint8(255), + 3627: uint8(255), + 3628: uint8(255), + 3629: uint8(255), + 3630: uint8(255), + 3631: uint8(255), + 3632: uint8(255), + 3633: uint8(255), + 3634: uint8(255), + 3635: uint8(255), + 3636: uint8(63), + 3637: uint8(255), + 3638: uint8(255), + 3639: uint8(255), + 3640: uint8(253), + 3641: uint8(255), + 3642: uint8(255), + 3643: uint8(247), + 3644: uint8(255), + 3645: uint8(255), + 3646: uint8(255), + 3647: uint8(247), + 3648: uint8(255), + 3649: uint8(255), + 3650: uint8(223), + 3651: uint8(255), + 3652: uint8(255), + 3653: uint8(255), + 3654: uint8(223), + 3655: uint8(255), + 3656: uint8(255), + 3657: uint8(127), + 3658: uint8(255), + 3659: uint8(255), + 3660: uint8(255), + 3661: uint8(127), + 3662: uint8(255), + 3663: uint8(255), + 3664: uint8(255), + 3665: uint8(253), + 3666: uint8(255), + 3667: uint8(255), + 3668: uint8(255), + 3669: uint8(253), + 3670: uint8(255), + 3671: uint8(255), + 3672: uint8(247), + 3673: uint8(207), + 3674: uint8(255), + 3675: uint8(255), + 3676: uint8(255), + 3677: uint8(255), + 3678: uint8(255), + 3679: uint8(255), + 3680: uint8(127), + 3681: uint8(255), + 3682: uint8(255), + 3683: uint8(249), + 3684: uint8(219), + 3685: uint8(7), + 3712: uint8(255), + 3713: uint8(255), + 3714: uint8(255), + 3715: uint8(255), + 3716: uint8(255), + 3717: uint8(31), + 3718: uint8(128), + 3719: uint8(63), + 3720: uint8(255), + 3721: uint8(67), + 3768: uint8(255), + 3769: uint8(255), + 3770: uint8(255), + 3771: uint8(255), + 3772: uint8(255), + 3773: uint8(15), + 3774: uint8(255), + 3775: uint8(3), + 3776: uint8(255), + 3777: uint8(255), + 3778: uint8(255), + 3779: uint8(255), + 3780: uint8(255), + 3781: uint8(255), + 3782: uint8(255), + 3783: uint8(255), + 3784: uint8(255), + 3785: uint8(255), + 3786: uint8(255), + 3787: uint8(255), + 3788: uint8(255), + 3789: uint8(255), + 3790: uint8(255), + 3791: uint8(255), + 3792: uint8(255), + 3793: uint8(255), + 3794: uint8(255), + 3795: uint8(255), + 3796: uint8(255), + 3797: uint8(255), + 3798: uint8(255), + 3799: uint8(255), + 3800: uint8(31), + 3808: uint8(255), + 3809: uint8(255), + 3810: uint8(255), + 3811: uint8(255), + 3812: uint8(255), + 3813: uint8(255), + 3814: uint8(255), + 3815: uint8(255), + 3816: uint8(143), + 3817: uint8(8), + 3818: uint8(255), + 3819: uint8(3), + 3840: uint8(239), + 3841: uint8(255), + 3842: uint8(255), + 3843: uint8(255), + 3844: uint8(150), + 3845: uint8(254), + 3846: uint8(247), + 3847: uint8(10), + 3848: uint8(132), + 3849: uint8(234), + 3850: uint8(150), + 3851: uint8(170), + 3852: uint8(150), + 3853: uint8(247), + 3854: uint8(247), + 3855: uint8(94), + 3856: uint8(255), + 3857: uint8(251), + 3858: uint8(255), + 3859: uint8(15), + 3860: uint8(238), + 3861: uint8(251), + 3862: uint8(255), + 3863: uint8(15), + 3878: uint8(255), + 3879: uint8(255), + 3880: uint8(255), + 3881: uint8(3), + 3882: uint8(255), + 3883: uint8(255), + 3884: uint8(255), + 3885: uint8(3), + 3886: uint8(255), + 3887: uint8(255), + 3888: uint8(255), + 3889: uint8(3), +} + +func Xiswalpha(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + if wc < uint32(0x20000) { + return Int32FromUint8(_table3[Uint32FromInt32(Int32FromUint8(_table3[wc>>int32(8)])*int32(32))+wc&uint32(255)>>int32(3)]) >> (wc & uint32(7)) & int32(1) + } + if wc < uint32(0x2fffe) { + return int32(1) + } + return 0 +} + +func X__iswalpha_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswalpha(tls, c) +} + +func Xiswalpha_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswalpha_l(tls, c, l) +} + +func Xiswblank(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xisblank(tls, Int32FromUint32(wc)) +} + +func X__iswblank_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswblank(tls, c) +} + +func Xiswblank_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswblank_l(tls, c, l) +} + +func Xiswcntrl(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(wc < uint32(32) || wc-Uint32FromInt32(0x7f) < uint32(33) || wc-Uint32FromInt32(0x2028) < uint32(2) || wc-Uint32FromInt32(0xfff9) < uint32(3)) +} + +func X__iswcntrl_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswcntrl(tls, c) +} + +func Xiswcntrl_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswcntrl_l(tls, c, l) +} + +const WCTYPE_ALNUM = 1 +const WCTYPE_ALPHA = 2 +const WCTYPE_BLANK = 3 +const WCTYPE_CNTRL = 4 +const WCTYPE_DIGIT = 5 +const WCTYPE_GRAPH = 6 +const WCTYPE_LOWER = 7 +const WCTYPE_PRINT = 8 +const WCTYPE_PUNCT = 9 +const WCTYPE_SPACE = 10 +const WCTYPE_UPPER = 11 +const WCTYPE_XDIGIT = 12 + +func Xiswctype(tls *TLS, wc Twint_t, type1 Twctype_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v type1=%v, (%v:)", tls, wc, type1, origin(2)) + defer func() { trc("-> %v", r) }() + } + switch type1 { + case uint32(WCTYPE_ALNUM): + return Xiswalnum(tls, wc) + case uint32(WCTYPE_ALPHA): + return Xiswalpha(tls, wc) + case uint32(WCTYPE_BLANK): + return Xiswblank(tls, wc) + case uint32(WCTYPE_CNTRL): + return Xiswcntrl(tls, wc) + case uint32(WCTYPE_DIGIT): + return BoolInt32(wc-uint32('0') < uint32(10)) + case uint32(WCTYPE_GRAPH): + return Xiswgraph(tls, wc) + case uint32(WCTYPE_LOWER): + return Xiswlower(tls, wc) + case uint32(WCTYPE_PRINT): + return Xiswprint(tls, wc) + case uint32(WCTYPE_PUNCT): + return Xiswpunct(tls, wc) + case uint32(WCTYPE_SPACE): + return Xiswspace(tls, wc) + case uint32(WCTYPE_UPPER): + return Xiswupper(tls, wc) + case uint32(WCTYPE_XDIGIT): + return Xiswxdigit(tls, wc) + } + return 0 +} + +func Xwctype(tls *TLS, s uintptr) (r Twctype_t) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var i int32 + var p uintptr + _, _ = i, p + i = int32(1) + p = uintptr(unsafe.Pointer(&_names)) + for { + if !(**(**int8)(__ccgo_up(p)) != 0) { + break + } + if int32(**(**int8)(__ccgo_up(s))) == int32(**(**int8)(__ccgo_up(p))) && !(Xstrcmp(tls, s, p) != 0) { + return Uint32FromInt32(i) + } + goto _1 + _1: + ; + i = i + 1 + p = p + uintptr(6) + } + return uint32(0) +} + +/* order must match! */ +var _names = [73]int8{'a', 'l', 'n', 'u', 'm', 0, 'a', 'l', 'p', 'h', 'a', 0, 'b', 'l', 'a', 'n', 'k', 0, 'c', 'n', 't', 'r', 'l', 0, 'd', 'i', 'g', 'i', 't', 0, 'g', 'r', 'a', 'p', 'h', 0, 'l', 'o', 'w', 'e', 'r', 0, 'p', 'r', 'i', 'n', 't', 0, 'p', 'u', 'n', 'c', 't', 0, 's', 'p', 'a', 'c', 'e', 0, 'u', 'p', 'p', 'e', 'r', 0, 'x', 'd', 'i', 'g', 'i', 't'} + +func X__iswctype_l(tls *TLS, c Twint_t, t Twctype_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v t=%v l=%v, (%v:)", tls, c, t, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswctype(tls, c, t) +} + +func X__wctype_l(tls *TLS, s uintptr, l Tlocale_t) (r Twctype_t) { + if __ccgo_strace { + trc("tls=%v s=%v l=%v, (%v:)", tls, s, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwctype(tls, s) +} + +func Xiswctype_l(tls *TLS, c Twint_t, t Twctype_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v t=%v l=%v, (%v:)", tls, c, t, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswctype_l(tls, c, t, l) +} + +func Xwctype_l(tls *TLS, s uintptr, l Tlocale_t) (r Twctype_t) { + if __ccgo_strace { + trc("tls=%v s=%v l=%v, (%v:)", tls, s, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__wctype_l(tls, s, l) +} + +func Xiswdigit(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(wc-uint32('0') < uint32(10)) +} + +func X__iswdigit_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswdigit(tls, c) +} + +func Xiswdigit_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswdigit_l(tls, c, l) +} + +func Xiswgraph(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + /* ISO C defines this function as: */ + return BoolInt32(!(Xiswspace(tls, wc) != 0) && Xiswprint(tls, wc) != 0) +} + +func X__iswgraph_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswgraph(tls, c) +} + +func Xiswgraph_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswgraph_l(tls, c, l) +} + +func Xiswlower(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(Xtowupper(tls, wc) != wc) +} + +func X__iswlower_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswlower(tls, c) +} + +func Xiswlower_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswlower_l(tls, c, l) +} + +/* Consider all legal codepoints as printable except for: + * - C0 and C1 control characters + * - U+2028 and U+2029 (line/para break) + * - U+FFF9 through U+FFFB (interlinear annotation controls) + * The following code is optimized heavily to make hot paths for the + * expected printable characters. */ + +func Xiswprint(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + if wc < uint32(0xff) { + return BoolInt32((wc+uint32(1))&uint32(0x7f) >= uint32(0x21)) + } + if wc < uint32(0x2028) || wc-uint32(0x202a) < Uint32FromInt32(Int32FromInt32(0xd800)-Int32FromInt32(0x202a)) || wc-uint32(0xe000) < Uint32FromInt32(Int32FromInt32(0xfff9)-Int32FromInt32(0xe000)) { + return int32(1) + } + if wc-uint32(0xfffc) > Uint32FromInt32(Int32FromInt32(0x10ffff)-Int32FromInt32(0xfffc)) || wc&uint32(0xfffe) == uint32(0xfffe) { + return 0 + } + return int32(1) +} + +func X__iswprint_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswprint(tls, c) +} + +func Xiswprint_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswprint_l(tls, c, l) +} + +var _table4 = [4000]uint8{ + 0: uint8(18), + 1: uint8(16), + 2: uint8(19), + 3: uint8(20), + 4: uint8(21), + 5: uint8(22), + 6: uint8(23), + 7: uint8(24), + 8: uint8(25), + 9: uint8(26), + 10: uint8(27), + 11: uint8(28), + 12: uint8(29), + 13: uint8(30), + 14: uint8(31), + 15: uint8(32), + 16: uint8(33), + 17: uint8(16), + 18: uint8(16), + 19: uint8(34), + 20: uint8(35), + 21: uint8(16), + 22: uint8(36), + 23: uint8(37), + 24: uint8(38), + 25: uint8(39), + 26: uint8(40), + 27: uint8(41), + 28: uint8(42), + 29: uint8(43), + 30: uint8(16), + 31: uint8(44), + 32: uint8(45), + 33: uint8(46), + 34: uint8(17), + 35: uint8(17), + 36: uint8(47), + 37: uint8(17), + 38: uint8(17), + 39: uint8(17), + 40: uint8(17), + 41: uint8(17), + 42: uint8(17), + 43: uint8(48), + 44: uint8(49), + 45: uint8(50), + 46: uint8(51), + 47: uint8(52), + 48: uint8(53), + 49: uint8(54), + 50: uint8(55), + 51: uint8(17), + 52: uint8(16), + 53: uint8(16), + 54: uint8(16), + 55: uint8(16), + 56: uint8(16), + 57: uint8(16), + 58: uint8(16), + 59: uint8(16), + 60: uint8(16), + 61: uint8(16), + 62: uint8(16), + 63: uint8(16), + 64: uint8(16), + 65: uint8(16), + 66: uint8(16), + 67: uint8(16), + 68: uint8(16), + 69: uint8(16), + 70: uint8(16), + 71: uint8(16), + 72: uint8(16), + 73: uint8(16), + 74: uint8(16), + 75: uint8(16), + 76: uint8(16), + 77: uint8(56), + 78: uint8(16), + 79: uint8(16), + 80: uint8(16), + 81: uint8(16), + 82: uint8(16), + 83: uint8(16), + 84: uint8(16), + 85: uint8(16), + 86: uint8(16), + 87: uint8(16), + 88: uint8(16), + 89: uint8(16), + 90: uint8(16), + 91: uint8(16), + 92: uint8(16), + 93: uint8(16), + 94: uint8(16), + 95: uint8(16), + 96: uint8(16), + 97: uint8(16), + 98: uint8(16), + 99: uint8(16), + 100: uint8(16), + 101: uint8(16), + 102: uint8(16), + 103: uint8(16), + 104: uint8(16), + 105: uint8(16), + 106: uint8(16), + 107: uint8(16), + 108: uint8(16), + 109: uint8(16), + 110: uint8(16), + 111: uint8(16), + 112: uint8(16), + 113: uint8(16), + 114: uint8(16), + 115: uint8(16), + 116: uint8(16), + 117: uint8(16), + 118: uint8(16), + 119: uint8(16), + 120: uint8(16), + 121: uint8(16), + 122: uint8(16), + 123: uint8(16), + 124: uint8(16), + 125: uint8(16), + 126: uint8(16), + 127: uint8(16), + 128: uint8(16), + 129: uint8(16), + 130: uint8(16), + 131: uint8(16), + 132: uint8(16), + 133: uint8(16), + 134: uint8(16), + 135: uint8(16), + 136: uint8(16), + 137: uint8(16), + 138: uint8(16), + 139: uint8(16), + 140: uint8(16), + 141: uint8(16), + 142: uint8(16), + 143: uint8(16), + 144: uint8(16), + 145: uint8(16), + 146: uint8(16), + 147: uint8(16), + 148: uint8(16), + 149: uint8(16), + 150: uint8(16), + 151: uint8(16), + 152: uint8(16), + 153: uint8(16), + 154: uint8(16), + 155: uint8(16), + 156: uint8(16), + 157: uint8(16), + 158: uint8(16), + 159: uint8(16), + 160: uint8(16), + 161: uint8(16), + 162: uint8(16), + 163: uint8(16), + 164: uint8(57), + 165: uint8(16), + 166: uint8(58), + 167: uint8(59), + 168: uint8(60), + 169: uint8(61), + 170: uint8(62), + 171: uint8(63), + 172: uint8(16), + 173: uint8(16), + 174: uint8(16), + 175: uint8(16), + 176: uint8(16), + 177: uint8(16), + 178: uint8(16), + 179: uint8(16), + 180: uint8(16), + 181: uint8(16), + 182: uint8(16), + 183: uint8(16), + 184: uint8(16), + 185: uint8(16), + 186: uint8(16), + 187: uint8(16), + 188: uint8(16), + 189: uint8(16), + 190: uint8(16), + 191: uint8(16), + 192: uint8(16), + 193: uint8(16), + 194: uint8(16), + 195: uint8(16), + 196: uint8(16), + 197: uint8(16), + 198: uint8(16), + 199: uint8(16), + 200: uint8(16), + 201: uint8(16), + 202: uint8(16), + 203: uint8(16), + 204: uint8(16), + 205: uint8(16), + 206: uint8(16), + 207: uint8(16), + 208: uint8(16), + 209: uint8(16), + 210: uint8(16), + 211: uint8(16), + 212: uint8(16), + 213: uint8(16), + 214: uint8(16), + 215: uint8(16), + 216: uint8(16), + 217: uint8(16), + 218: uint8(16), + 219: uint8(16), + 220: uint8(16), + 221: uint8(16), + 222: uint8(16), + 223: uint8(16), + 224: uint8(64), + 225: uint8(16), + 226: uint8(16), + 227: uint8(16), + 228: uint8(16), + 229: uint8(16), + 230: uint8(16), + 231: uint8(16), + 232: uint8(16), + 233: uint8(16), + 234: uint8(16), + 235: uint8(16), + 236: uint8(16), + 237: uint8(16), + 238: uint8(16), + 239: uint8(16), + 240: uint8(16), + 241: uint8(16), + 242: uint8(16), + 243: uint8(16), + 244: uint8(16), + 245: uint8(16), + 246: uint8(16), + 247: uint8(16), + 248: uint8(65), + 249: uint8(16), + 250: uint8(16), + 251: uint8(66), + 252: uint8(16), + 253: uint8(67), + 254: uint8(68), + 255: uint8(69), + 256: uint8(16), + 257: uint8(70), + 258: uint8(71), + 259: uint8(72), + 260: uint8(16), + 261: uint8(73), + 262: uint8(16), + 263: uint8(16), + 264: uint8(74), + 265: uint8(75), + 266: uint8(76), + 267: uint8(77), + 268: uint8(78), + 269: uint8(16), + 270: uint8(79), + 271: uint8(80), + 272: uint8(81), + 273: uint8(82), + 274: uint8(83), + 275: uint8(84), + 276: uint8(85), + 277: uint8(86), + 278: uint8(87), + 279: uint8(88), + 280: uint8(89), + 281: uint8(90), + 282: uint8(91), + 283: uint8(16), + 284: uint8(92), + 285: uint8(93), + 286: uint8(94), + 287: uint8(95), + 288: uint8(16), + 289: uint8(16), + 290: uint8(16), + 291: uint8(16), + 292: uint8(96), + 293: uint8(16), + 294: uint8(16), + 295: uint8(16), + 296: uint8(16), + 297: uint8(16), + 298: uint8(16), + 299: uint8(16), + 300: uint8(16), + 301: uint8(16), + 302: uint8(16), + 303: uint8(16), + 304: uint8(16), + 305: uint8(16), + 306: uint8(16), + 307: uint8(16), + 308: uint8(97), + 309: uint8(16), + 310: uint8(16), + 311: uint8(16), + 312: uint8(16), + 313: uint8(16), + 314: uint8(16), + 315: uint8(16), + 316: uint8(16), + 317: uint8(16), + 318: uint8(16), + 319: uint8(16), + 320: uint8(16), + 321: uint8(16), + 322: uint8(16), + 323: uint8(16), + 324: uint8(16), + 325: uint8(16), + 326: uint8(16), + 327: uint8(16), + 328: uint8(16), + 329: uint8(16), + 330: uint8(16), + 331: uint8(16), + 332: uint8(16), + 333: uint8(16), + 334: uint8(16), + 335: uint8(16), + 336: uint8(16), + 337: uint8(16), + 338: uint8(16), + 339: uint8(16), + 340: uint8(16), + 341: uint8(16), + 342: uint8(16), + 343: uint8(16), + 344: uint8(16), + 345: uint8(16), + 346: uint8(16), + 347: uint8(16), + 348: uint8(16), + 349: uint8(16), + 350: uint8(16), + 351: uint8(16), + 352: uint8(16), + 353: uint8(16), + 354: uint8(16), + 355: uint8(16), + 356: uint8(16), + 357: uint8(16), + 358: uint8(16), + 359: uint8(16), + 360: uint8(16), + 361: uint8(16), + 362: uint8(98), + 363: uint8(99), + 364: uint8(16), + 365: uint8(16), + 366: uint8(100), + 367: uint8(101), + 368: uint8(16), + 369: uint8(16), + 370: uint8(16), + 371: uint8(16), + 372: uint8(16), + 373: uint8(16), + 374: uint8(16), + 375: uint8(16), + 376: uint8(16), + 377: uint8(16), + 378: uint8(16), + 379: uint8(16), + 380: uint8(16), + 381: uint8(16), + 382: uint8(16), + 383: uint8(16), + 384: uint8(16), + 385: uint8(16), + 386: uint8(16), + 387: uint8(16), + 388: uint8(16), + 389: uint8(16), + 390: uint8(16), + 391: uint8(16), + 392: uint8(16), + 393: uint8(16), + 394: uint8(16), + 395: uint8(16), + 396: uint8(16), + 397: uint8(16), + 398: uint8(16), + 399: uint8(16), + 400: uint8(16), + 401: uint8(16), + 402: uint8(16), + 403: uint8(16), + 404: uint8(16), + 405: uint8(16), + 406: uint8(16), + 407: uint8(16), + 408: uint8(16), + 409: uint8(16), + 410: uint8(16), + 411: uint8(16), + 412: uint8(16), + 413: uint8(16), + 414: uint8(16), + 415: uint8(16), + 416: uint8(16), + 417: uint8(16), + 418: uint8(16), + 419: uint8(16), + 420: uint8(16), + 421: uint8(16), + 422: uint8(16), + 423: uint8(16), + 424: uint8(16), + 425: uint8(16), + 426: uint8(16), + 427: uint8(16), + 428: uint8(16), + 429: uint8(16), + 430: uint8(16), + 431: uint8(16), + 432: uint8(16), + 433: uint8(16), + 434: uint8(16), + 435: uint8(16), + 436: uint8(16), + 437: uint8(16), + 438: uint8(16), + 439: uint8(16), + 440: uint8(16), + 441: uint8(16), + 442: uint8(16), + 443: uint8(16), + 444: uint8(102), + 445: uint8(16), + 446: uint8(16), + 447: uint8(16), + 448: uint8(16), + 449: uint8(16), + 450: uint8(16), + 451: uint8(16), + 452: uint8(16), + 453: uint8(16), + 454: uint8(16), + 455: uint8(16), + 456: uint8(16), + 457: uint8(16), + 458: uint8(16), + 459: uint8(16), + 460: uint8(16), + 461: uint8(16), + 462: uint8(16), + 463: uint8(16), + 464: uint8(103), + 465: uint8(104), + 466: uint8(105), + 467: uint8(106), + 468: uint8(16), + 469: uint8(16), + 470: uint8(107), + 471: uint8(108), + 472: uint8(17), + 473: uint8(17), + 474: uint8(109), + 475: uint8(16), + 476: uint8(16), + 477: uint8(16), + 478: uint8(16), + 479: uint8(16), + 480: uint8(16), + 481: uint8(110), + 482: uint8(111), + 483: uint8(16), + 484: uint8(16), + 485: uint8(16), + 486: uint8(16), + 487: uint8(16), + 488: uint8(112), + 489: uint8(113), + 490: uint8(16), + 491: uint8(16), + 492: uint8(114), + 493: uint8(115), + 494: uint8(116), + 495: uint8(16), + 496: uint8(117), + 497: uint8(118), + 498: uint8(119), + 499: uint8(17), + 500: uint8(17), + 501: uint8(17), + 502: uint8(120), + 503: uint8(121), + 504: uint8(122), + 505: uint8(123), + 506: uint8(124), + 507: uint8(16), + 508: uint8(16), + 509: uint8(16), + 510: uint8(16), + 511: uint8(16), + 544: uint8(255), + 545: uint8(255), + 546: uint8(255), + 547: uint8(255), + 548: uint8(255), + 549: uint8(255), + 550: uint8(255), + 551: uint8(255), + 552: uint8(255), + 553: uint8(255), + 554: uint8(255), + 555: uint8(255), + 556: uint8(255), + 557: uint8(255), + 558: uint8(255), + 559: uint8(255), + 560: uint8(255), + 561: uint8(255), + 562: uint8(255), + 563: uint8(255), + 564: uint8(255), + 565: uint8(255), + 566: uint8(255), + 567: uint8(255), + 568: uint8(255), + 569: uint8(255), + 570: uint8(255), + 571: uint8(255), + 572: uint8(255), + 573: uint8(255), + 574: uint8(255), + 575: uint8(255), + 580: uint8(254), + 581: uint8(255), + 583: uint8(252), + 584: uint8(1), + 587: uint8(248), + 588: uint8(1), + 591: uint8(120), + 596: uint8(255), + 597: uint8(251), + 598: uint8(223), + 599: uint8(251), + 602: uint8(128), + 606: uint8(128), + 632: uint8(60), + 634: uint8(252), + 635: uint8(255), + 636: uint8(224), + 637: uint8(175), + 638: uint8(255), + 639: uint8(255), + 640: uint8(255), + 641: uint8(255), + 642: uint8(255), + 643: uint8(255), + 644: uint8(255), + 645: uint8(255), + 646: uint8(255), + 647: uint8(255), + 648: uint8(223), + 649: uint8(255), + 650: uint8(255), + 651: uint8(255), + 652: uint8(255), + 653: uint8(255), + 654: uint8(32), + 655: uint8(64), + 656: uint8(176), + 670: uint8(64), + 688: uint8(252), + 689: uint8(3), + 715: uint8(252), + 721: uint8(230), + 722: uint8(254), + 723: uint8(255), + 724: uint8(255), + 725: uint8(255), + 727: uint8(64), + 728: uint8(73), + 734: uint8(24), + 736: uint8(255), + 737: uint8(255), + 739: uint8(216), + 747: uint8(1), + 749: uint8(60), + 762: uint8(16), + 763: uint8(224), + 764: uint8(1), + 765: uint8(30), + 767: uint8(96), + 768: uint8(255), + 769: uint8(191), + 776: uint8(255), + 777: uint8(7), + 797: uint8(248), + 798: uint8(207), + 799: uint8(227), + 803: uint8(3), + 805: uint8(32), + 806: uint8(255), + 807: uint8(127), + 811: uint8(78), + 826: uint8(8), + 828: uint8(7), + 829: uint8(252), + 839: uint8(16), + 841: uint8(32), + 842: uint8(30), + 844: uint8(48), + 846: uint8(1), + 855: uint8(16), + 857: uint8(32), + 862: uint8(252), + 863: uint8(111), + 871: uint8(16), + 873: uint8(32), + 878: uint8(64), + 887: uint8(16), + 889: uint8(32), + 894: uint8(3), + 895: uint8(224), + 903: uint8(16), + 905: uint8(32), + 910: uint8(253), + 921: uint8(32), + 926: uint8(255), + 927: uint8(7), + 928: uint8(16), + 937: uint8(32), + 942: uint8(128), + 943: uint8(255), + 944: uint8(16), + 951: uint8(16), + 953: uint8(32), + 967: uint8(24), + 969: uint8(160), + 971: uint8(127), + 974: uint8(255), + 975: uint8(3), + 985: uint8(4), + 990: uint8(16), + 997: uint8(128), + 999: uint8(128), + 1000: uint8(192), + 1001: uint8(223), + 1003: uint8(12), + 1015: uint8(4), + 1017: uint8(31), + 1024: uint8(254), + 1025: uint8(255), + 1026: uint8(255), + 1027: uint8(255), + 1029: uint8(252), + 1030: uint8(255), + 1031: uint8(255), + 1040: uint8(252), + 1047: uint8(192), + 1048: uint8(255), + 1049: uint8(223), + 1050: uint8(255), + 1051: uint8(7), + 1062: uint8(128), + 1063: uint8(6), + 1065: uint8(252), + 1075: uint8(192), + 1087: uint8(8), + 1099: uint8(224), + 1100: uint8(255), + 1101: uint8(255), + 1102: uint8(255), + 1103: uint8(31), + 1106: uint8(255), + 1107: uint8(3), + 1120: uint8(1), + 1165: uint8(96), + 1168: uint8(1), + 1171: uint8(24), + 1181: uint8(56), + 1186: uint8(16), + 1190: uint8(112), + 1206: uint8(48), + 1209: uint8(254), + 1210: uint8(127), + 1211: uint8(47), + 1214: uint8(255), + 1215: uint8(3), + 1216: uint8(255), + 1217: uint8(127), + 1255: uint8(14), + 1256: uint8(49), + 1275: uint8(196), + 1276: uint8(255), + 1277: uint8(255), + 1278: uint8(255), + 1279: uint8(255), + 1283: uint8(192), + 1292: uint8(1), + 1294: uint8(224), + 1295: uint8(159), + 1300: uint8(127), + 1301: uint8(63), + 1302: uint8(255), + 1303: uint8(127), + 1318: uint8(16), + 1320: uint8(16), + 1323: uint8(252), + 1324: uint8(255), + 1325: uint8(255), + 1326: uint8(255), + 1327: uint8(31), + 1333: uint8(12), + 1340: uint8(64), + 1342: uint8(12), + 1343: uint8(240), + 1350: uint8(128), + 1351: uint8(248), + 1359: uint8(192), + 1368: uint8(255), + 1370: uint8(255), + 1371: uint8(255), + 1372: uint8(255), + 1373: uint8(33), + 1374: uint8(144), + 1375: uint8(3), + 1400: uint8(255), + 1401: uint8(255), + 1402: uint8(255), + 1403: uint8(255), + 1404: uint8(127), + 1406: uint8(224), + 1407: uint8(251), + 1431: uint8(160), + 1432: uint8(3), + 1433: uint8(224), + 1435: uint8(224), + 1437: uint8(224), + 1439: uint8(96), + 1440: uint8(128), + 1441: uint8(248), + 1442: uint8(255), + 1443: uint8(255), + 1444: uint8(255), + 1445: uint8(252), + 1446: uint8(255), + 1447: uint8(255), + 1448: uint8(255), + 1449: uint8(255), + 1450: uint8(255), + 1451: uint8(127), + 1452: uint8(223), + 1453: uint8(255), + 1454: uint8(241), + 1455: uint8(127), + 1456: uint8(255), + 1457: uint8(127), + 1460: uint8(255), + 1461: uint8(255), + 1462: uint8(255), + 1463: uint8(255), + 1466: uint8(255), + 1467: uint8(255), + 1468: uint8(255), + 1469: uint8(255), + 1470: uint8(1), + 1472: uint8(123), + 1473: uint8(3), + 1474: uint8(208), + 1475: uint8(193), + 1476: uint8(175), + 1477: uint8(66), + 1479: uint8(12), + 1480: uint8(31), + 1481: uint8(188), + 1482: uint8(255), + 1483: uint8(255), + 1489: uint8(14), + 1490: uint8(255), + 1491: uint8(255), + 1492: uint8(255), + 1493: uint8(255), + 1494: uint8(255), + 1495: uint8(255), + 1496: uint8(255), + 1497: uint8(255), + 1498: uint8(255), + 1499: uint8(255), + 1500: uint8(255), + 1501: uint8(255), + 1502: uint8(255), + 1503: uint8(255), + 1504: uint8(255), + 1505: uint8(255), + 1506: uint8(255), + 1507: uint8(255), + 1508: uint8(127), + 1512: uint8(255), + 1513: uint8(7), + 1516: uint8(255), + 1517: uint8(255), + 1518: uint8(255), + 1519: uint8(255), + 1520: uint8(255), + 1521: uint8(255), + 1522: uint8(255), + 1523: uint8(255), + 1524: uint8(255), + 1525: uint8(255), + 1526: uint8(63), + 1533: uint8(252), + 1534: uint8(255), + 1535: uint8(255), + 1536: uint8(255), + 1537: uint8(255), + 1538: uint8(255), + 1539: uint8(255), + 1540: uint8(255), + 1541: uint8(255), + 1542: uint8(255), + 1543: uint8(255), + 1544: uint8(255), + 1545: uint8(255), + 1546: uint8(255), + 1547: uint8(255), + 1548: uint8(255), + 1549: uint8(255), + 1550: uint8(207), + 1551: uint8(255), + 1552: uint8(255), + 1553: uint8(255), + 1554: uint8(63), + 1555: uint8(255), + 1556: uint8(255), + 1557: uint8(255), + 1558: uint8(255), + 1559: uint8(255), + 1560: uint8(255), + 1561: uint8(255), + 1562: uint8(255), + 1563: uint8(255), + 1564: uint8(255), + 1565: uint8(255), + 1566: uint8(255), + 1567: uint8(255), + 1596: uint8(224), + 1597: uint8(135), + 1598: uint8(3), + 1599: uint8(254), + 1614: uint8(1), + 1615: uint8(128), + 1632: uint8(255), + 1633: uint8(255), + 1634: uint8(255), + 1635: uint8(255), + 1636: uint8(255), + 1637: uint8(127), + 1638: uint8(255), + 1639: uint8(255), + 1640: uint8(255), + 1641: uint8(255), + 1648: uint8(255), + 1649: uint8(255), + 1650: uint8(255), + 1651: uint8(251), + 1652: uint8(255), + 1653: uint8(255), + 1654: uint8(255), + 1655: uint8(255), + 1656: uint8(255), + 1657: uint8(255), + 1658: uint8(255), + 1659: uint8(255), + 1660: uint8(255), + 1661: uint8(255), + 1662: uint8(15), + 1664: uint8(255), + 1665: uint8(255), + 1666: uint8(255), + 1667: uint8(255), + 1668: uint8(255), + 1669: uint8(255), + 1670: uint8(255), + 1671: uint8(255), + 1672: uint8(255), + 1673: uint8(255), + 1674: uint8(255), + 1675: uint8(255), + 1676: uint8(255), + 1677: uint8(255), + 1678: uint8(255), + 1679: uint8(255), + 1680: uint8(255), + 1681: uint8(255), + 1682: uint8(255), + 1683: uint8(255), + 1684: uint8(255), + 1685: uint8(255), + 1686: uint8(255), + 1687: uint8(255), + 1688: uint8(255), + 1689: uint8(255), + 1690: uint8(63), + 1694: uint8(255), + 1695: uint8(15), + 1696: uint8(30), + 1697: uint8(255), + 1698: uint8(255), + 1699: uint8(255), + 1700: uint8(1), + 1701: uint8(252), + 1702: uint8(193), + 1703: uint8(224), + 1715: uint8(30), + 1716: uint8(1), + 1727: uint8(8), + 1746: uint8(255), + 1747: uint8(255), + 1752: uint8(255), + 1753: uint8(255), + 1754: uint8(255), + 1755: uint8(255), + 1756: uint8(15), + 1760: uint8(255), + 1761: uint8(255), + 1762: uint8(255), + 1763: uint8(127), + 1764: uint8(255), + 1765: uint8(255), + 1766: uint8(255), + 1767: uint8(255), + 1768: uint8(255), + 1769: uint8(255), + 1770: uint8(255), + 1771: uint8(255), + 1772: uint8(255), + 1773: uint8(255), + 1774: uint8(255), + 1775: uint8(255), + 1776: uint8(255), + 1777: uint8(255), + 1778: uint8(255), + 1779: uint8(255), + 1780: uint8(255), + 1781: uint8(255), + 1782: uint8(255), + 1783: uint8(255), + 1784: uint8(255), + 1785: uint8(255), + 1786: uint8(255), + 1787: uint8(255), + 1788: uint8(255), + 1789: uint8(255), + 1790: uint8(255), + 1791: uint8(255), + 1816: uint8(255), + 1817: uint8(255), + 1818: uint8(255), + 1819: uint8(255), + 1820: uint8(255), + 1821: uint8(255), + 1822: uint8(255), + 1823: uint8(255), + 1842: uint8(255), + 1843: uint8(255), + 1844: uint8(255), + 1845: uint8(255), + 1846: uint8(255), + 1847: uint8(255), + 1848: uint8(127), + 1855: uint8(192), + 1857: uint8(224), + 1869: uint8(128), + 1870: uint8(15), + 1871: uint8(112), + 1886: uint8(255), + 1888: uint8(255), + 1889: uint8(255), + 1890: uint8(127), + 1892: uint8(3), + 1905: uint8(6), + 1920: uint8(64), + 1925: uint8(15), + 1926: uint8(255), + 1927: uint8(3), + 1934: uint8(240), + 1944: uint8(16), + 1945: uint8(192), + 1948: uint8(255), + 1949: uint8(255), + 1950: uint8(3), + 1951: uint8(23), + 1957: uint8(248), + 1962: uint8(8), + 1963: uint8(128), + 1974: uint8(8), + 1976: uint8(255), + 1977: uint8(63), + 1979: uint8(192), + 1995: uint8(240), + 1998: uint8(128), + 1999: uint8(3), + 2007: uint8(128), + 2008: uint8(2), + 2011: uint8(192), + 2014: uint8(67), + 2027: uint8(8), + 2045: uint8(56), + 2048: uint8(1), + 2111: uint8(128), + 2117: uint8(2), + 2134: uint8(252), + 2135: uint8(255), + 2136: uint8(3), + 2151: uint8(192), + 2175: uint8(48), + 2176: uint8(255), + 2177: uint8(255), + 2178: uint8(255), + 2179: uint8(3), + 2180: uint8(255), + 2181: uint8(255), + 2182: uint8(255), + 2183: uint8(255), + 2184: uint8(255), + 2185: uint8(255), + 2186: uint8(247), + 2187: uint8(255), + 2188: uint8(127), + 2189: uint8(15), + 2207: uint8(128), + 2208: uint8(254), + 2209: uint8(255), + 2211: uint8(252), + 2212: uint8(1), + 2215: uint8(248), + 2216: uint8(1), + 2219: uint8(248), + 2220: uint8(63), + 2236: uint8(127), + 2237: uint8(127), + 2239: uint8(48), + 2240: uint8(135), + 2241: uint8(255), + 2242: uint8(255), + 2243: uint8(255), + 2244: uint8(255), + 2245: uint8(255), + 2246: uint8(143), + 2247: uint8(255), + 2254: uint8(224), + 2255: uint8(255), + 2256: uint8(255), + 2257: uint8(127), + 2258: uint8(255), + 2259: uint8(15), + 2260: uint8(1), + 2266: uint8(255), + 2267: uint8(255), + 2268: uint8(255), + 2269: uint8(255), + 2270: uint8(255), + 2271: uint8(63), + 2300: uint8(255), + 2301: uint8(255), + 2302: uint8(255), + 2303: uint8(15), + 2308: uint8(15), + 2323: uint8(128), + 2330: uint8(1), + 2349: uint8(128), + 2378: uint8(128), + 2379: uint8(255), + 2382: uint8(128), + 2383: uint8(255), + 2388: uint8(128), + 2389: uint8(255), + 2399: uint8(248), + 2402: uint8(192), + 2403: uint8(143), + 2407: uint8(128), + 2423: uint8(48), + 2424: uint8(255), + 2425: uint8(255), + 2426: uint8(252), + 2427: uint8(255), + 2428: uint8(255), + 2429: uint8(255), + 2430: uint8(255), + 2431: uint8(255), + 2439: uint8(135), + 2440: uint8(255), + 2441: uint8(1), + 2442: uint8(255), + 2443: uint8(1), + 2447: uint8(224), + 2451: uint8(224), + 2457: uint8(1), + 2460: uint8(96), + 2461: uint8(248), + 2462: uint8(127), + 2471: uint8(254), + 2475: uint8(255), + 2479: uint8(255), + 2483: uint8(30), + 2485: uint8(254), + 2527: uint8(252), + 2540: uint8(255), + 2541: uint8(255), + 2542: uint8(255), + 2543: uint8(127), + 2563: uint8(224), + 2564: uint8(127), + 2568: uint8(192), + 2569: uint8(255), + 2570: uint8(255), + 2571: uint8(3), + 2600: uint8(192), + 2601: uint8(63), + 2602: uint8(252), + 2603: uint8(255), + 2604: uint8(63), + 2607: uint8(128), + 2608: uint8(3), + 2615: uint8(254), + 2616: uint8(3), + 2617: uint8(32), + 2630: uint8(24), + 2632: uint8(15), + 2638: uint8(56), + 2648: uint8(225), + 2649: uint8(63), + 2651: uint8(232), + 2652: uint8(254), + 2653: uint8(255), + 2654: uint8(31), + 2662: uint8(96), + 2663: uint8(63), + 2677: uint8(2), + 2685: uint8(6), + 2695: uint8(24), + 2697: uint8(32), + 2700: uint8(192), + 2701: uint8(31), + 2702: uint8(31), + 2728: uint8(68), + 2729: uint8(248), + 2731: uint8(104), + 2744: uint8(76), + 2775: uint8(128), + 2776: uint8(255), + 2777: uint8(255), + 2778: uint8(255), + 2791: uint8(128), + 2792: uint8(14), + 2796: uint8(255), + 2797: uint8(31), + 2806: uint8(192), + 2821: uint8(8), + 2823: uint8(252), + 2855: uint8(14), + 2877: uint8(252), + 2878: uint8(7), + 2908: uint8(5), + 2918: uint8(24), + 2919: uint8(128), + 2920: uint8(255), + 2931: uint8(223), + 2932: uint8(7), + 2951: uint8(128), + 2952: uint8(62), + 2955: uint8(252), + 2956: uint8(255), + 2957: uint8(31), + 2958: uint8(3), + 2984: uint8(52), + 2994: uint8(128), + 3038: uint8(128), + 3039: uint8(1), + 3064: uint8(255), + 3065: uint8(255), + 3066: uint8(255), + 3067: uint8(255), + 3068: uint8(255), + 3069: uint8(255), + 3070: uint8(3), + 3071: uint8(128), + 3086: uint8(31), + 3110: uint8(255), + 3111: uint8(1), + 3149: uint8(192), + 3166: uint8(63), + 3174: uint8(255), + 3175: uint8(255), + 3176: uint8(48), + 3179: uint8(248), + 3180: uint8(3), + 3216: uint8(255), + 3217: uint8(255), + 3218: uint8(255), + 3219: uint8(7), + 3260: uint8(4), + 3283: uint8(176), + 3284: uint8(15), + 3296: uint8(255), + 3297: uint8(255), + 3298: uint8(255), + 3299: uint8(255), + 3300: uint8(255), + 3301: uint8(255), + 3302: uint8(255), + 3303: uint8(255), + 3304: uint8(255), + 3305: uint8(255), + 3306: uint8(255), + 3307: uint8(255), + 3308: uint8(255), + 3309: uint8(255), + 3310: uint8(255), + 3311: uint8(255), + 3312: uint8(255), + 3313: uint8(255), + 3314: uint8(255), + 3315: uint8(255), + 3316: uint8(255), + 3317: uint8(255), + 3318: uint8(255), + 3319: uint8(255), + 3320: uint8(255), + 3321: uint8(255), + 3322: uint8(255), + 3323: uint8(255), + 3324: uint8(255), + 3325: uint8(255), + 3326: uint8(63), + 3328: uint8(255), + 3329: uint8(255), + 3330: uint8(255), + 3331: uint8(255), + 3332: uint8(127), + 3333: uint8(254), + 3334: uint8(255), + 3335: uint8(255), + 3336: uint8(255), + 3337: uint8(255), + 3338: uint8(255), + 3339: uint8(255), + 3340: uint8(255), + 3341: uint8(255), + 3342: uint8(255), + 3343: uint8(255), + 3344: uint8(255), + 3345: uint8(255), + 3346: uint8(255), + 3347: uint8(255), + 3348: uint8(255), + 3349: uint8(255), + 3350: uint8(255), + 3351: uint8(255), + 3352: uint8(255), + 3353: uint8(255), + 3354: uint8(255), + 3355: uint8(255), + 3356: uint8(255), + 3357: uint8(1), + 3360: uint8(255), + 3361: uint8(255), + 3362: uint8(255), + 3363: uint8(255), + 3364: uint8(255), + 3365: uint8(255), + 3366: uint8(255), + 3367: uint8(255), + 3368: uint8(63), + 3388: uint8(255), + 3389: uint8(255), + 3390: uint8(15), + 3392: uint8(255), + 3393: uint8(255), + 3394: uint8(255), + 3395: uint8(255), + 3396: uint8(255), + 3397: uint8(255), + 3398: uint8(255), + 3399: uint8(255), + 3400: uint8(255), + 3401: uint8(255), + 3402: uint8(127), + 3404: uint8(255), + 3405: uint8(255), + 3406: uint8(255), + 3407: uint8(1), + 3448: uint8(2), + 3451: uint8(8), + 3455: uint8(8), + 3458: uint8(32), + 3462: uint8(32), + 3465: uint8(128), + 3469: uint8(128), + 3473: uint8(2), + 3477: uint8(2), + 3480: uint8(8), + 3488: uint8(255), + 3489: uint8(255), + 3490: uint8(255), + 3491: uint8(255), + 3492: uint8(255), + 3493: uint8(255), + 3494: uint8(255), + 3495: uint8(255), + 3496: uint8(255), + 3497: uint8(255), + 3498: uint8(255), + 3499: uint8(255), + 3500: uint8(255), + 3501: uint8(255), + 3502: uint8(255), + 3503: uint8(255), + 3504: uint8(255), + 3505: uint8(15), + 3507: uint8(248), + 3508: uint8(254), + 3509: uint8(255), + 3526: uint8(127), + 3529: uint8(128), + 3581: uint8(240), + 3583: uint8(128), + 3608: uint8(128), + 3609: uint8(255), + 3610: uint8(127), + 3624: uint8(112), + 3625: uint8(7), + 3627: uint8(192), + 3662: uint8(254), + 3663: uint8(255), + 3664: uint8(255), + 3665: uint8(255), + 3666: uint8(255), + 3667: uint8(255), + 3668: uint8(255), + 3669: uint8(255), + 3670: uint8(31), + 3680: uint8(254), + 3681: uint8(255), + 3682: uint8(255), + 3683: uint8(255), + 3684: uint8(255), + 3685: uint8(255), + 3686: uint8(255), + 3687: uint8(63), + 3742: uint8(3), + 3744: uint8(255), + 3745: uint8(255), + 3746: uint8(255), + 3747: uint8(255), + 3748: uint8(255), + 3749: uint8(15), + 3750: uint8(255), + 3751: uint8(255), + 3752: uint8(255), + 3753: uint8(255), + 3754: uint8(255), + 3755: uint8(255), + 3756: uint8(255), + 3757: uint8(255), + 3758: uint8(255), + 3759: uint8(255), + 3760: uint8(255), + 3761: uint8(255), + 3762: uint8(15), + 3764: uint8(255), + 3765: uint8(127), + 3766: uint8(254), + 3767: uint8(255), + 3768: uint8(254), + 3769: uint8(255), + 3770: uint8(254), + 3771: uint8(255), + 3772: uint8(255), + 3773: uint8(255), + 3774: uint8(63), + 3776: uint8(255), + 3777: uint8(31), + 3778: uint8(255), + 3779: uint8(255), + 3780: uint8(255), + 3781: uint8(255), + 3785: uint8(252), + 3789: uint8(28), + 3793: uint8(252), + 3794: uint8(255), + 3795: uint8(255), + 3796: uint8(255), + 3797: uint8(31), + 3804: uint8(192), + 3805: uint8(255), + 3806: uint8(255), + 3807: uint8(255), + 3808: uint8(7), + 3810: uint8(255), + 3811: uint8(255), + 3812: uint8(255), + 3813: uint8(255), + 3814: uint8(255), + 3815: uint8(15), + 3816: uint8(255), + 3817: uint8(1), + 3818: uint8(3), + 3820: uint8(63), + 3840: uint8(255), + 3841: uint8(255), + 3842: uint8(255), + 3843: uint8(255), + 3844: uint8(255), + 3845: uint8(255), + 3846: uint8(255), + 3847: uint8(255), + 3848: uint8(255), + 3849: uint8(255), + 3850: uint8(255), + 3851: uint8(255), + 3852: uint8(255), + 3853: uint8(255), + 3854: uint8(255), + 3855: uint8(255), + 3856: uint8(255), + 3857: uint8(255), + 3858: uint8(255), + 3859: uint8(255), + 3860: uint8(255), + 3861: uint8(255), + 3862: uint8(255), + 3863: uint8(255), + 3864: uint8(255), + 3865: uint8(255), + 3866: uint8(63), + 3868: uint8(255), + 3869: uint8(31), + 3870: uint8(255), + 3871: uint8(7), + 3872: uint8(255), + 3873: uint8(255), + 3874: uint8(255), + 3875: uint8(255), + 3876: uint8(255), + 3877: uint8(255), + 3878: uint8(255), + 3879: uint8(255), + 3880: uint8(255), + 3881: uint8(255), + 3882: uint8(255), + 3883: uint8(255), + 3884: uint8(255), + 3885: uint8(255), + 3886: uint8(15), + 3888: uint8(255), + 3889: uint8(255), + 3890: uint8(255), + 3891: uint8(255), + 3892: uint8(255), + 3893: uint8(255), + 3894: uint8(255), + 3895: uint8(255), + 3896: uint8(255), + 3897: uint8(255), + 3898: uint8(255), + 3899: uint8(1), + 3900: uint8(255), + 3901: uint8(15), + 3904: uint8(255), + 3905: uint8(15), + 3906: uint8(255), + 3907: uint8(255), + 3908: uint8(255), + 3909: uint8(255), + 3910: uint8(255), + 3911: uint8(255), + 3912: uint8(255), + 3914: uint8(255), + 3915: uint8(3), + 3916: uint8(255), + 3917: uint8(255), + 3918: uint8(255), + 3919: uint8(255), + 3920: uint8(255), + 3922: uint8(255), + 3923: uint8(255), + 3924: uint8(255), + 3925: uint8(63), + 3936: uint8(255), + 3937: uint8(239), + 3938: uint8(255), + 3939: uint8(255), + 3940: uint8(255), + 3941: uint8(255), + 3942: uint8(255), + 3943: uint8(255), + 3944: uint8(255), + 3945: uint8(255), + 3946: uint8(255), + 3947: uint8(255), + 3948: uint8(255), + 3949: uint8(255), + 3950: uint8(123), + 3951: uint8(252), + 3952: uint8(255), + 3953: uint8(255), + 3954: uint8(255), + 3955: uint8(255), + 3956: uint8(231), + 3957: uint8(199), + 3958: uint8(255), + 3959: uint8(255), + 3960: uint8(255), + 3961: uint8(231), + 3962: uint8(255), + 3963: uint8(255), + 3964: uint8(255), + 3965: uint8(255), + 3966: uint8(255), + 3967: uint8(255), + 3968: uint8(255), + 3969: uint8(255), + 3970: uint8(255), + 3971: uint8(255), + 3972: uint8(255), + 3973: uint8(255), + 3974: uint8(255), + 3975: uint8(255), + 3976: uint8(255), + 3977: uint8(255), + 3978: uint8(15), + 3980: uint8(255), + 3981: uint8(63), + 3982: uint8(15), + 3983: uint8(7), + 3984: uint8(7), + 3986: uint8(63), +} + +func Xiswpunct(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + if wc < uint32(0x20000) { + return Int32FromUint8(_table4[Uint32FromInt32(Int32FromUint8(_table4[wc>>int32(8)])*int32(32))+wc&uint32(255)>>int32(3)]) >> (wc & uint32(7)) & int32(1) + } + return 0 +} + +func X__iswpunct_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswpunct(tls, c) +} + +func Xiswpunct_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswpunct_l(tls, c, l) +} + +type Tmbstate_t = struct { + F__opaque1 uint32 + F__opaque2 uint32 +} + +type t__mbstate_t = Tmbstate_t + +/* Our definition of whitespace is the Unicode White_Space property, + * minus non-breaking spaces (U+00A0, U+2007, and U+202F) and script- + * specific characters with non-blank glyphs (U+1680 and U+180E). */ + +func Xiswspace(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(wc != 0 && Xwcschr(tls, uintptr(unsafe.Pointer(&_spaces)), Int32FromUint32(wc)) != 0) +} + +var _spaces = [22]Twchar_t{ + 0: int32(' '), + 1: int32('\t'), + 2: int32('\n'), + 3: int32('\r'), + 4: int32(11), + 5: int32(12), + 6: int32(0x0085), + 7: int32(0x2000), + 8: int32(0x2001), + 9: int32(0x2002), + 10: int32(0x2003), + 11: int32(0x2004), + 12: int32(0x2005), + 13: int32(0x2006), + 14: int32(0x2008), + 15: int32(0x2009), + 16: int32(0x200a), + 17: int32(0x2028), + 18: int32(0x2029), + 19: int32(0x205f), + 20: int32(0x3000), +} + +func X__iswspace_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswspace(tls, c) +} + +func Xiswspace_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswspace_l(tls, c, l) +} + +func Xiswupper(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(Xtowlower(tls, wc) != wc) +} + +func X__iswupper_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswupper(tls, c) +} + +func Xiswupper_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswupper_l(tls, c, l) +} + +func Xiswxdigit(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(wc-Uint32FromUint8('0') < uint32(10) || wc|Uint32FromInt32(32)-Uint32FromUint8('a') < uint32(6)) +} + +func X__iswxdigit_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswxdigit(tls, c) +} + +func Xiswxdigit_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswxdigit_l(tls, c, l) +} + +func Xisxdigit(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(BoolInt32(Uint32FromInt32(c)-uint32('0') < uint32(10)) != 0 || Uint32FromInt32(c)|uint32(32)-uint32('a') < uint32(6)) +} + +func X__isxdigit_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xisxdigit(tls, c) +} + +func Xisxdigit_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__isxdigit_l(tls, c, l) +} + +// C documentation +// +// /* nonsense function that should NEVER be used! */ +func Xtoascii(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return c & int32(0x7f) +} + +func Xtolower(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + if BoolInt32(Uint32FromInt32(c)-uint32('A') < uint32(26)) != 0 { + return c | int32(32) + } + return c +} + +func X__tolower_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xtolower(tls, c) +} + +func Xtolower_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__tolower_l(tls, c, l) +} + +func Xtoupper(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + if BoolInt32(Uint32FromInt32(c)-uint32('a') < uint32(26)) != 0 { + return c & int32(0x5f) + } + return c +} + +func X__toupper_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xtoupper(tls, c) +} + +func Xtoupper_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__toupper_l(tls, c, l) +} + +var _tab1 = [2666]uint8{ + 0: uint8(7), + 1: uint8(8), + 2: uint8(9), + 3: uint8(10), + 4: uint8(11), + 5: uint8(12), + 6: uint8(6), + 7: uint8(6), + 8: uint8(6), + 9: uint8(6), + 10: uint8(6), + 11: uint8(6), + 12: uint8(6), + 13: uint8(6), + 14: uint8(6), + 15: uint8(6), + 16: uint8(13), + 17: uint8(6), + 18: uint8(6), + 19: uint8(14), + 20: uint8(6), + 21: uint8(6), + 22: uint8(6), + 23: uint8(6), + 24: uint8(6), + 25: uint8(6), + 26: uint8(6), + 27: uint8(6), + 28: uint8(15), + 29: uint8(16), + 30: uint8(17), + 31: uint8(18), + 32: uint8(6), + 33: uint8(19), + 34: uint8(6), + 35: uint8(6), + 36: uint8(6), + 37: uint8(6), + 38: uint8(6), + 39: uint8(6), + 40: uint8(6), + 41: uint8(6), + 42: uint8(6), + 43: uint8(6), + 44: uint8(20), + 45: uint8(21), + 46: uint8(6), + 47: uint8(6), + 48: uint8(6), + 49: uint8(6), + 50: uint8(6), + 51: uint8(6), + 52: uint8(6), + 53: uint8(6), + 54: uint8(6), + 55: uint8(6), + 56: uint8(6), + 57: uint8(6), + 58: uint8(6), + 59: uint8(6), + 60: uint8(6), + 61: uint8(6), + 62: uint8(6), + 63: uint8(6), + 64: uint8(6), + 65: uint8(6), + 66: uint8(6), + 67: uint8(6), + 68: uint8(6), + 69: uint8(6), + 70: uint8(6), + 71: uint8(6), + 72: uint8(6), + 73: uint8(6), + 74: uint8(6), + 75: uint8(6), + 76: uint8(6), + 77: uint8(6), + 78: uint8(6), + 79: uint8(6), + 80: uint8(6), + 81: uint8(6), + 82: uint8(6), + 83: uint8(6), + 84: uint8(6), + 85: uint8(6), + 86: uint8(6), + 87: uint8(6), + 88: uint8(6), + 89: uint8(6), + 90: uint8(6), + 91: uint8(6), + 92: uint8(6), + 93: uint8(6), + 94: uint8(6), + 95: uint8(6), + 96: uint8(6), + 97: uint8(6), + 98: uint8(6), + 99: uint8(6), + 100: uint8(6), + 101: uint8(6), + 102: uint8(6), + 103: uint8(6), + 104: uint8(6), + 105: uint8(6), + 106: uint8(6), + 107: uint8(6), + 108: uint8(6), + 109: uint8(6), + 110: uint8(6), + 111: uint8(6), + 112: uint8(6), + 113: uint8(6), + 114: uint8(6), + 115: uint8(6), + 116: uint8(6), + 117: uint8(6), + 118: uint8(6), + 119: uint8(6), + 120: uint8(6), + 121: uint8(6), + 122: uint8(6), + 123: uint8(6), + 124: uint8(6), + 125: uint8(6), + 126: uint8(6), + 127: uint8(6), + 128: uint8(6), + 129: uint8(6), + 130: uint8(6), + 131: uint8(6), + 132: uint8(6), + 133: uint8(6), + 134: uint8(6), + 135: uint8(6), + 136: uint8(6), + 137: uint8(6), + 138: uint8(6), + 139: uint8(6), + 140: uint8(6), + 141: uint8(6), + 142: uint8(6), + 143: uint8(6), + 144: uint8(6), + 145: uint8(6), + 146: uint8(6), + 147: uint8(6), + 148: uint8(6), + 149: uint8(6), + 150: uint8(6), + 151: uint8(6), + 152: uint8(6), + 153: uint8(6), + 154: uint8(6), + 155: uint8(6), + 156: uint8(6), + 157: uint8(6), + 158: uint8(6), + 159: uint8(6), + 160: uint8(6), + 161: uint8(6), + 162: uint8(6), + 163: uint8(6), + 164: uint8(6), + 165: uint8(6), + 166: uint8(22), + 167: uint8(23), + 168: uint8(6), + 169: uint8(6), + 170: uint8(6), + 171: uint8(24), + 172: uint8(6), + 173: uint8(6), + 174: uint8(6), + 175: uint8(6), + 176: uint8(6), + 177: uint8(6), + 178: uint8(6), + 179: uint8(6), + 180: uint8(6), + 181: uint8(6), + 182: uint8(6), + 183: uint8(6), + 184: uint8(6), + 185: uint8(6), + 186: uint8(6), + 187: uint8(6), + 188: uint8(6), + 189: uint8(6), + 190: uint8(6), + 191: uint8(6), + 192: uint8(6), + 193: uint8(6), + 194: uint8(6), + 195: uint8(6), + 196: uint8(6), + 197: uint8(6), + 198: uint8(6), + 199: uint8(6), + 200: uint8(6), + 201: uint8(6), + 202: uint8(6), + 203: uint8(6), + 204: uint8(6), + 205: uint8(6), + 206: uint8(6), + 207: uint8(6), + 208: uint8(6), + 209: uint8(6), + 210: uint8(6), + 211: uint8(6), + 212: uint8(6), + 213: uint8(6), + 214: uint8(6), + 215: uint8(6), + 216: uint8(6), + 217: uint8(6), + 218: uint8(6), + 219: uint8(6), + 220: uint8(6), + 221: uint8(6), + 222: uint8(6), + 223: uint8(6), + 224: uint8(6), + 225: uint8(6), + 226: uint8(6), + 227: uint8(6), + 228: uint8(6), + 229: uint8(6), + 230: uint8(6), + 231: uint8(6), + 232: uint8(6), + 233: uint8(6), + 234: uint8(6), + 235: uint8(6), + 236: uint8(6), + 237: uint8(6), + 238: uint8(6), + 239: uint8(6), + 240: uint8(6), + 241: uint8(6), + 242: uint8(6), + 243: uint8(6), + 244: uint8(6), + 245: uint8(6), + 246: uint8(6), + 247: uint8(6), + 248: uint8(6), + 249: uint8(6), + 250: uint8(6), + 251: uint8(6), + 252: uint8(6), + 253: uint8(6), + 254: uint8(6), + 255: uint8(25), + 256: uint8(6), + 257: uint8(6), + 258: uint8(6), + 259: uint8(6), + 260: uint8(26), + 261: uint8(6), + 262: uint8(6), + 263: uint8(6), + 264: uint8(6), + 265: uint8(6), + 266: uint8(6), + 267: uint8(6), + 268: uint8(27), + 269: uint8(6), + 270: uint8(6), + 271: uint8(6), + 272: uint8(6), + 273: uint8(6), + 274: uint8(6), + 275: uint8(6), + 276: uint8(6), + 277: uint8(6), + 278: uint8(6), + 279: uint8(6), + 280: uint8(28), + 281: uint8(6), + 282: uint8(6), + 283: uint8(6), + 284: uint8(6), + 285: uint8(6), + 286: uint8(6), + 287: uint8(6), + 288: uint8(6), + 289: uint8(6), + 290: uint8(6), + 291: uint8(6), + 292: uint8(6), + 293: uint8(6), + 294: uint8(6), + 295: uint8(6), + 296: uint8(6), + 297: uint8(6), + 298: uint8(6), + 299: uint8(6), + 300: uint8(6), + 301: uint8(6), + 302: uint8(6), + 303: uint8(6), + 304: uint8(6), + 305: uint8(6), + 306: uint8(6), + 307: uint8(6), + 308: uint8(6), + 309: uint8(6), + 310: uint8(6), + 311: uint8(6), + 312: uint8(6), + 313: uint8(6), + 314: uint8(6), + 315: uint8(6), + 316: uint8(6), + 317: uint8(6), + 318: uint8(6), + 319: uint8(6), + 320: uint8(6), + 321: uint8(6), + 322: uint8(6), + 323: uint8(6), + 324: uint8(6), + 325: uint8(6), + 326: uint8(6), + 327: uint8(6), + 328: uint8(6), + 329: uint8(6), + 330: uint8(6), + 331: uint8(6), + 332: uint8(6), + 333: uint8(6), + 334: uint8(6), + 335: uint8(6), + 336: uint8(6), + 337: uint8(6), + 338: uint8(6), + 339: uint8(6), + 340: uint8(6), + 341: uint8(6), + 342: uint8(6), + 343: uint8(6), + 344: uint8(6), + 345: uint8(6), + 346: uint8(6), + 347: uint8(6), + 348: uint8(6), + 349: uint8(6), + 350: uint8(6), + 351: uint8(6), + 352: uint8(6), + 353: uint8(6), + 354: uint8(6), + 355: uint8(6), + 356: uint8(6), + 357: uint8(6), + 358: uint8(6), + 359: uint8(6), + 360: uint8(6), + 361: uint8(6), + 362: uint8(6), + 363: uint8(6), + 364: uint8(6), + 365: uint8(6), + 366: uint8(29), + 367: uint8(6), + 368: uint8(6), + 369: uint8(6), + 370: uint8(6), + 371: uint8(6), + 372: uint8(6), + 373: uint8(6), + 374: uint8(6), + 375: uint8(6), + 376: uint8(6), + 377: uint8(6), + 378: uint8(6), + 379: uint8(6), + 380: uint8(6), + 381: uint8(6), + 382: uint8(6), + 383: uint8(6), + 384: uint8(6), + 385: uint8(6), + 386: uint8(6), + 387: uint8(6), + 388: uint8(6), + 389: uint8(6), + 390: uint8(6), + 391: uint8(6), + 392: uint8(6), + 393: uint8(6), + 394: uint8(6), + 395: uint8(6), + 396: uint8(6), + 397: uint8(6), + 398: uint8(6), + 399: uint8(6), + 400: uint8(6), + 401: uint8(6), + 402: uint8(6), + 403: uint8(6), + 404: uint8(6), + 405: uint8(6), + 406: uint8(6), + 407: uint8(6), + 408: uint8(6), + 409: uint8(6), + 410: uint8(6), + 411: uint8(6), + 412: uint8(6), + 413: uint8(6), + 414: uint8(6), + 415: uint8(6), + 416: uint8(6), + 417: uint8(6), + 418: uint8(6), + 419: uint8(6), + 420: uint8(6), + 421: uint8(6), + 422: uint8(6), + 423: uint8(6), + 424: uint8(6), + 425: uint8(6), + 426: uint8(6), + 427: uint8(6), + 428: uint8(6), + 429: uint8(6), + 430: uint8(6), + 431: uint8(6), + 432: uint8(6), + 433: uint8(6), + 434: uint8(6), + 435: uint8(6), + 436: uint8(6), + 437: uint8(6), + 438: uint8(6), + 439: uint8(6), + 440: uint8(6), + 441: uint8(6), + 442: uint8(6), + 443: uint8(6), + 444: uint8(6), + 445: uint8(6), + 446: uint8(6), + 447: uint8(6), + 448: uint8(6), + 449: uint8(6), + 450: uint8(6), + 451: uint8(6), + 452: uint8(6), + 453: uint8(6), + 454: uint8(6), + 455: uint8(6), + 456: uint8(6), + 457: uint8(6), + 458: uint8(6), + 459: uint8(6), + 460: uint8(6), + 461: uint8(6), + 462: uint8(6), + 463: uint8(6), + 464: uint8(6), + 465: uint8(6), + 466: uint8(6), + 467: uint8(6), + 468: uint8(6), + 469: uint8(6), + 470: uint8(6), + 471: uint8(6), + 472: uint8(6), + 473: uint8(6), + 474: uint8(6), + 475: uint8(6), + 476: uint8(6), + 477: uint8(6), + 478: uint8(6), + 479: uint8(6), + 480: uint8(6), + 481: uint8(6), + 482: uint8(6), + 483: uint8(6), + 484: uint8(6), + 485: uint8(6), + 486: uint8(6), + 487: uint8(6), + 488: uint8(6), + 489: uint8(30), + 490: uint8(6), + 491: uint8(6), + 492: uint8(6), + 493: uint8(6), + 494: uint8(6), + 495: uint8(6), + 496: uint8(6), + 497: uint8(6), + 498: uint8(6), + 499: uint8(6), + 500: uint8(6), + 501: uint8(6), + 502: uint8(6), + 503: uint8(6), + 504: uint8(6), + 505: uint8(6), + 506: uint8(6), + 507: uint8(6), + 508: uint8(6), + 509: uint8(6), + 510: uint8(6), + 511: uint8(6), + 623: uint8(36), + 624: uint8(43), + 625: uint8(43), + 626: uint8(43), + 627: uint8(43), + 628: uint8(43), + 629: uint8(43), + 630: uint8(43), + 631: uint8(43), + 632: uint8(1), + 634: uint8(84), + 635: uint8(86), + 636: uint8(86), + 637: uint8(86), + 638: uint8(86), + 639: uint8(86), + 640: uint8(86), + 641: uint8(86), + 642: uint8(86), + 662: uint8(24), + 666: uint8(43), + 667: uint8(43), + 668: uint8(43), + 669: uint8(43), + 670: uint8(43), + 671: uint8(43), + 672: uint8(43), + 673: uint8(7), + 674: uint8(43), + 675: uint8(43), + 676: uint8(91), + 677: uint8(86), + 678: uint8(86), + 679: uint8(86), + 680: uint8(86), + 681: uint8(86), + 682: uint8(86), + 683: uint8(86), + 684: uint8(74), + 685: uint8(86), + 686: uint8(86), + 687: uint8(5), + 688: uint8(49), + 689: uint8(80), + 690: uint8(49), + 691: uint8(80), + 692: uint8(49), + 693: uint8(80), + 694: uint8(49), + 695: uint8(80), + 696: uint8(49), + 697: uint8(80), + 698: uint8(49), + 699: uint8(80), + 700: uint8(49), + 701: uint8(80), + 702: uint8(49), + 703: uint8(80), + 704: uint8(36), + 705: uint8(80), + 706: uint8(121), + 707: uint8(49), + 708: uint8(80), + 709: uint8(49), + 710: uint8(80), + 711: uint8(49), + 712: uint8(56), + 713: uint8(80), + 714: uint8(49), + 715: uint8(80), + 716: uint8(49), + 717: uint8(80), + 718: uint8(49), + 719: uint8(80), + 720: uint8(49), + 721: uint8(80), + 722: uint8(49), + 723: uint8(80), + 724: uint8(49), + 725: uint8(80), + 726: uint8(49), + 727: uint8(80), + 728: uint8(78), + 729: uint8(49), + 730: uint8(2), + 731: uint8(78), + 732: uint8(13), + 733: uint8(13), + 734: uint8(78), + 735: uint8(3), + 736: uint8(78), + 738: uint8(36), + 739: uint8(110), + 741: uint8(78), + 742: uint8(49), + 743: uint8(38), + 744: uint8(110), + 745: uint8(81), + 746: uint8(78), + 747: uint8(36), + 748: uint8(80), + 749: uint8(78), + 750: uint8(57), + 751: uint8(20), + 752: uint8(129), + 753: uint8(27), + 754: uint8(29), + 755: uint8(29), + 756: uint8(83), + 757: uint8(49), + 758: uint8(80), + 759: uint8(49), + 760: uint8(80), + 761: uint8(13), + 762: uint8(49), + 763: uint8(80), + 764: uint8(49), + 765: uint8(80), + 766: uint8(49), + 767: uint8(80), + 768: uint8(27), + 769: uint8(83), + 770: uint8(36), + 771: uint8(80), + 772: uint8(49), + 773: uint8(2), + 774: uint8(92), + 775: uint8(123), + 776: uint8(92), + 777: uint8(123), + 778: uint8(92), + 779: uint8(123), + 780: uint8(92), + 781: uint8(123), + 782: uint8(92), + 783: uint8(123), + 784: uint8(20), + 785: uint8(121), + 786: uint8(92), + 787: uint8(123), + 788: uint8(92), + 789: uint8(123), + 790: uint8(92), + 791: uint8(45), + 792: uint8(43), + 793: uint8(73), + 794: uint8(3), + 795: uint8(72), + 796: uint8(3), + 797: uint8(120), + 798: uint8(92), + 799: uint8(123), + 800: uint8(20), + 802: uint8(150), + 803: uint8(10), + 804: uint8(1), + 805: uint8(43), + 806: uint8(40), + 807: uint8(6), + 808: uint8(6), + 810: uint8(42), + 811: uint8(6), + 812: uint8(42), + 813: uint8(42), + 814: uint8(43), + 815: uint8(7), + 816: uint8(187), + 817: uint8(181), + 818: uint8(43), + 819: uint8(30), + 821: uint8(43), + 822: uint8(7), + 823: uint8(43), + 824: uint8(43), + 825: uint8(43), + 826: uint8(1), + 827: uint8(43), + 828: uint8(43), + 829: uint8(43), + 830: uint8(43), + 831: uint8(43), + 832: uint8(43), + 833: uint8(43), + 834: uint8(43), + 835: uint8(43), + 836: uint8(43), + 837: uint8(43), + 838: uint8(43), + 839: uint8(43), + 840: uint8(43), + 841: uint8(43), + 842: uint8(43), + 843: uint8(43), + 844: uint8(43), + 845: uint8(43), + 846: uint8(43), + 847: uint8(43), + 848: uint8(43), + 849: uint8(43), + 850: uint8(43), + 851: uint8(43), + 852: uint8(43), + 853: uint8(43), + 854: uint8(43), + 855: uint8(43), + 856: uint8(43), + 857: uint8(43), + 858: uint8(43), + 859: uint8(1), + 860: uint8(43), + 861: uint8(43), + 862: uint8(43), + 863: uint8(43), + 864: uint8(43), + 865: uint8(43), + 866: uint8(43), + 867: uint8(43), + 868: uint8(43), + 869: uint8(43), + 870: uint8(43), + 871: uint8(43), + 872: uint8(43), + 873: uint8(43), + 874: uint8(43), + 875: uint8(43), + 876: uint8(43), + 877: uint8(43), + 878: uint8(43), + 879: uint8(43), + 880: uint8(43), + 881: uint8(43), + 882: uint8(43), + 883: uint8(42), + 884: uint8(43), + 885: uint8(43), + 886: uint8(43), + 887: uint8(43), + 888: uint8(43), + 889: uint8(43), + 890: uint8(43), + 891: uint8(43), + 892: uint8(43), + 893: uint8(43), + 894: uint8(43), + 895: uint8(43), + 896: uint8(43), + 897: uint8(205), + 898: uint8(70), + 899: uint8(205), + 900: uint8(43), + 902: uint8(37), + 903: uint8(43), + 904: uint8(7), + 905: uint8(1), + 906: uint8(6), + 907: uint8(1), + 908: uint8(85), + 909: uint8(86), + 910: uint8(86), + 911: uint8(86), + 912: uint8(86), + 913: uint8(86), + 914: uint8(85), + 915: uint8(86), + 916: uint8(86), + 917: uint8(2), + 918: uint8(36), + 919: uint8(129), + 920: uint8(129), + 921: uint8(129), + 922: uint8(129), + 923: uint8(129), + 924: uint8(21), + 925: uint8(129), + 926: uint8(129), + 927: uint8(129), + 930: uint8(43), + 932: uint8(178), + 933: uint8(209), + 934: uint8(178), + 935: uint8(209), + 936: uint8(178), + 937: uint8(209), + 938: uint8(178), + 939: uint8(209), + 942: uint8(205), + 943: uint8(204), + 944: uint8(1), + 946: uint8(215), + 947: uint8(215), + 948: uint8(215), + 949: uint8(215), + 950: uint8(215), + 951: uint8(131), + 952: uint8(129), + 953: uint8(129), + 954: uint8(129), + 955: uint8(129), + 956: uint8(129), + 957: uint8(129), + 958: uint8(129), + 959: uint8(129), + 960: uint8(129), + 961: uint8(129), + 962: uint8(172), + 963: uint8(172), + 964: uint8(172), + 965: uint8(172), + 966: uint8(172), + 967: uint8(172), + 968: uint8(172), + 969: uint8(172), + 970: uint8(172), + 971: uint8(172), + 972: uint8(28), + 978: uint8(49), + 979: uint8(80), + 980: uint8(49), + 981: uint8(80), + 982: uint8(49), + 983: uint8(80), + 984: uint8(49), + 985: uint8(80), + 986: uint8(49), + 987: uint8(80), + 988: uint8(49), + 989: uint8(2), + 992: uint8(49), + 993: uint8(80), + 994: uint8(49), + 995: uint8(80), + 996: uint8(49), + 997: uint8(80), + 998: uint8(49), + 999: uint8(80), + 1000: uint8(49), + 1001: uint8(80), + 1002: uint8(49), + 1003: uint8(80), + 1004: uint8(49), + 1005: uint8(80), + 1006: uint8(49), + 1007: uint8(80), + 1008: uint8(49), + 1009: uint8(80), + 1010: uint8(78), + 1011: uint8(49), + 1012: uint8(80), + 1013: uint8(49), + 1014: uint8(80), + 1015: uint8(78), + 1016: uint8(49), + 1017: uint8(80), + 1018: uint8(49), + 1019: uint8(80), + 1020: uint8(49), + 1021: uint8(80), + 1022: uint8(49), + 1023: uint8(80), + 1024: uint8(49), + 1025: uint8(80), + 1026: uint8(49), + 1027: uint8(80), + 1028: uint8(49), + 1029: uint8(80), + 1030: uint8(49), + 1031: uint8(2), + 1032: uint8(135), + 1033: uint8(166), + 1034: uint8(135), + 1035: uint8(166), + 1036: uint8(135), + 1037: uint8(166), + 1038: uint8(135), + 1039: uint8(166), + 1040: uint8(135), + 1041: uint8(166), + 1042: uint8(135), + 1043: uint8(166), + 1044: uint8(135), + 1045: uint8(166), + 1046: uint8(135), + 1047: uint8(166), + 1048: uint8(42), + 1049: uint8(43), + 1050: uint8(43), + 1051: uint8(43), + 1052: uint8(43), + 1053: uint8(43), + 1054: uint8(43), + 1055: uint8(43), + 1056: uint8(43), + 1057: uint8(43), + 1058: uint8(43), + 1059: uint8(43), + 1060: uint8(43), + 1064: uint8(84), + 1065: uint8(86), + 1066: uint8(86), + 1067: uint8(86), + 1068: uint8(86), + 1069: uint8(86), + 1070: uint8(86), + 1071: uint8(86), + 1072: uint8(86), + 1073: uint8(86), + 1074: uint8(86), + 1075: uint8(86), + 1076: uint8(86), + 1171: uint8(84), + 1172: uint8(86), + 1173: uint8(86), + 1174: uint8(86), + 1175: uint8(86), + 1176: uint8(86), + 1177: uint8(86), + 1178: uint8(86), + 1179: uint8(86), + 1180: uint8(86), + 1181: uint8(86), + 1182: uint8(86), + 1183: uint8(86), + 1184: uint8(12), + 1186: uint8(12), + 1187: uint8(42), + 1188: uint8(43), + 1189: uint8(43), + 1190: uint8(43), + 1191: uint8(43), + 1192: uint8(43), + 1193: uint8(43), + 1194: uint8(43), + 1195: uint8(43), + 1196: uint8(43), + 1197: uint8(43), + 1198: uint8(43), + 1199: uint8(43), + 1200: uint8(43), + 1201: uint8(7), + 1202: uint8(42), + 1203: uint8(1), + 1257: uint8(42), + 1258: uint8(43), + 1259: uint8(43), + 1260: uint8(43), + 1261: uint8(43), + 1262: uint8(43), + 1263: uint8(43), + 1264: uint8(43), + 1265: uint8(43), + 1266: uint8(43), + 1267: uint8(43), + 1268: uint8(43), + 1269: uint8(43), + 1270: uint8(43), + 1271: uint8(43), + 1272: uint8(43), + 1273: uint8(43), + 1274: uint8(43), + 1275: uint8(43), + 1276: uint8(43), + 1277: uint8(43), + 1278: uint8(43), + 1279: uint8(43), + 1280: uint8(43), + 1281: uint8(43), + 1282: uint8(43), + 1283: uint8(43), + 1284: uint8(86), + 1285: uint8(86), + 1286: uint8(108), + 1287: uint8(129), + 1288: uint8(21), + 1290: uint8(43), + 1291: uint8(43), + 1292: uint8(43), + 1293: uint8(43), + 1294: uint8(43), + 1295: uint8(43), + 1296: uint8(43), + 1297: uint8(43), + 1298: uint8(43), + 1299: uint8(43), + 1300: uint8(43), + 1301: uint8(43), + 1302: uint8(43), + 1303: uint8(43), + 1304: uint8(43), + 1305: uint8(43), + 1306: uint8(43), + 1307: uint8(43), + 1308: uint8(43), + 1309: uint8(43), + 1310: uint8(43), + 1311: uint8(43), + 1312: uint8(43), + 1313: uint8(43), + 1314: uint8(43), + 1315: uint8(43), + 1316: uint8(43), + 1317: uint8(43), + 1318: uint8(43), + 1319: uint8(43), + 1320: uint8(43), + 1321: uint8(43), + 1322: uint8(43), + 1323: uint8(43), + 1324: uint8(43), + 1325: uint8(43), + 1326: uint8(43), + 1327: uint8(43), + 1328: uint8(43), + 1329: uint8(43), + 1330: uint8(43), + 1331: uint8(43), + 1332: uint8(7), + 1333: uint8(108), + 1334: uint8(3), + 1335: uint8(65), + 1336: uint8(43), + 1337: uint8(43), + 1338: uint8(86), + 1339: uint8(86), + 1340: uint8(86), + 1341: uint8(86), + 1342: uint8(86), + 1343: uint8(86), + 1344: uint8(86), + 1345: uint8(86), + 1346: uint8(86), + 1347: uint8(86), + 1348: uint8(86), + 1349: uint8(86), + 1350: uint8(86), + 1351: uint8(86), + 1352: uint8(44), + 1353: uint8(86), + 1354: uint8(43), + 1355: uint8(43), + 1356: uint8(43), + 1357: uint8(43), + 1358: uint8(43), + 1359: uint8(43), + 1360: uint8(43), + 1361: uint8(43), + 1362: uint8(43), + 1363: uint8(43), + 1364: uint8(43), + 1365: uint8(43), + 1366: uint8(43), + 1367: uint8(43), + 1368: uint8(43), + 1369: uint8(43), + 1370: uint8(43), + 1371: uint8(43), + 1372: uint8(43), + 1373: uint8(43), + 1374: uint8(43), + 1375: uint8(1), + 1416: uint8(12), + 1417: uint8(108), + 1423: uint8(6), + 1462: uint8(6), + 1463: uint8(37), + 1464: uint8(6), + 1465: uint8(37), + 1466: uint8(6), + 1467: uint8(37), + 1468: uint8(6), + 1469: uint8(37), + 1470: uint8(6), + 1471: uint8(37), + 1472: uint8(6), + 1473: uint8(37), + 1474: uint8(6), + 1475: uint8(37), + 1476: uint8(6), + 1477: uint8(37), + 1478: uint8(6), + 1479: uint8(37), + 1480: uint8(6), + 1481: uint8(37), + 1482: uint8(6), + 1483: uint8(37), + 1484: uint8(6), + 1485: uint8(37), + 1486: uint8(6), + 1487: uint8(37), + 1488: uint8(6), + 1489: uint8(37), + 1490: uint8(6), + 1491: uint8(37), + 1492: uint8(6), + 1493: uint8(37), + 1494: uint8(6), + 1495: uint8(37), + 1496: uint8(6), + 1497: uint8(37), + 1498: uint8(6), + 1499: uint8(37), + 1500: uint8(6), + 1501: uint8(37), + 1502: uint8(6), + 1503: uint8(37), + 1504: uint8(6), + 1505: uint8(37), + 1506: uint8(6), + 1507: uint8(37), + 1508: uint8(6), + 1509: uint8(37), + 1510: uint8(6), + 1511: uint8(37), + 1512: uint8(86), + 1513: uint8(122), + 1514: uint8(158), + 1515: uint8(38), + 1516: uint8(6), + 1517: uint8(37), + 1518: uint8(6), + 1519: uint8(37), + 1520: uint8(6), + 1521: uint8(37), + 1522: uint8(6), + 1523: uint8(37), + 1524: uint8(6), + 1525: uint8(37), + 1526: uint8(6), + 1527: uint8(37), + 1528: uint8(6), + 1529: uint8(37), + 1530: uint8(6), + 1531: uint8(37), + 1532: uint8(6), + 1533: uint8(37), + 1534: uint8(6), + 1535: uint8(37), + 1536: uint8(6), + 1537: uint8(37), + 1538: uint8(6), + 1539: uint8(37), + 1540: uint8(6), + 1541: uint8(37), + 1542: uint8(6), + 1543: uint8(37), + 1544: uint8(6), + 1545: uint8(37), + 1546: uint8(6), + 1547: uint8(1), + 1548: uint8(43), + 1549: uint8(43), + 1550: uint8(79), + 1551: uint8(86), + 1552: uint8(86), + 1553: uint8(44), + 1554: uint8(43), + 1555: uint8(127), + 1556: uint8(86), + 1557: uint8(86), + 1558: uint8(57), + 1559: uint8(43), + 1560: uint8(43), + 1561: uint8(85), + 1562: uint8(86), + 1563: uint8(86), + 1564: uint8(43), + 1565: uint8(43), + 1566: uint8(79), + 1567: uint8(86), + 1568: uint8(86), + 1569: uint8(44), + 1570: uint8(43), + 1571: uint8(127), + 1572: uint8(86), + 1573: uint8(86), + 1574: uint8(129), + 1575: uint8(55), + 1576: uint8(117), + 1577: uint8(91), + 1578: uint8(123), + 1579: uint8(92), + 1580: uint8(43), + 1581: uint8(43), + 1582: uint8(79), + 1583: uint8(86), + 1584: uint8(86), + 1585: uint8(2), + 1586: uint8(172), + 1587: uint8(4), + 1590: uint8(57), + 1591: uint8(43), + 1592: uint8(43), + 1593: uint8(85), + 1594: uint8(86), + 1595: uint8(86), + 1596: uint8(43), + 1597: uint8(43), + 1598: uint8(79), + 1599: uint8(86), + 1600: uint8(86), + 1601: uint8(44), + 1602: uint8(43), + 1603: uint8(43), + 1604: uint8(86), + 1605: uint8(86), + 1606: uint8(50), + 1607: uint8(19), + 1608: uint8(129), + 1609: uint8(87), + 1611: uint8(111), + 1612: uint8(129), + 1613: uint8(126), + 1614: uint8(201), + 1615: uint8(215), + 1616: uint8(126), + 1617: uint8(45), + 1618: uint8(129), + 1619: uint8(129), + 1620: uint8(14), + 1621: uint8(126), + 1622: uint8(57), + 1623: uint8(127), + 1624: uint8(111), + 1625: uint8(87), + 1627: uint8(129), + 1628: uint8(129), + 1629: uint8(126), + 1630: uint8(21), + 1632: uint8(126), + 1633: uint8(3), + 1634: uint8(43), + 1635: uint8(43), + 1636: uint8(43), + 1637: uint8(43), + 1638: uint8(43), + 1639: uint8(43), + 1640: uint8(43), + 1641: uint8(43), + 1642: uint8(43), + 1643: uint8(43), + 1644: uint8(43), + 1645: uint8(43), + 1646: uint8(7), + 1647: uint8(43), + 1648: uint8(36), + 1649: uint8(43), + 1650: uint8(151), + 1651: uint8(43), + 1652: uint8(43), + 1653: uint8(43), + 1654: uint8(43), + 1655: uint8(43), + 1656: uint8(43), + 1657: uint8(43), + 1658: uint8(43), + 1659: uint8(43), + 1660: uint8(42), + 1661: uint8(43), + 1662: uint8(43), + 1663: uint8(43), + 1664: uint8(43), + 1665: uint8(43), + 1666: uint8(86), + 1667: uint8(86), + 1668: uint8(86), + 1669: uint8(86), + 1670: uint8(86), + 1671: uint8(128), + 1672: uint8(129), + 1673: uint8(129), + 1674: uint8(129), + 1675: uint8(129), + 1676: uint8(57), + 1677: uint8(187), + 1678: uint8(42), + 1679: uint8(43), + 1680: uint8(43), + 1681: uint8(43), + 1682: uint8(43), + 1683: uint8(43), + 1684: uint8(43), + 1685: uint8(43), + 1686: uint8(43), + 1687: uint8(43), + 1688: uint8(43), + 1689: uint8(43), + 1690: uint8(43), + 1691: uint8(43), + 1692: uint8(43), + 1693: uint8(43), + 1694: uint8(43), + 1695: uint8(43), + 1696: uint8(43), + 1697: uint8(43), + 1698: uint8(43), + 1699: uint8(43), + 1700: uint8(43), + 1701: uint8(43), + 1702: uint8(43), + 1703: uint8(43), + 1704: uint8(43), + 1705: uint8(43), + 1706: uint8(43), + 1707: uint8(43), + 1708: uint8(43), + 1709: uint8(43), + 1710: uint8(43), + 1711: uint8(43), + 1712: uint8(43), + 1713: uint8(43), + 1714: uint8(43), + 1715: uint8(43), + 1716: uint8(43), + 1717: uint8(43), + 1718: uint8(43), + 1719: uint8(1), + 1720: uint8(129), + 1721: uint8(129), + 1722: uint8(129), + 1723: uint8(129), + 1724: uint8(129), + 1725: uint8(129), + 1726: uint8(129), + 1727: uint8(129), + 1728: uint8(129), + 1729: uint8(129), + 1730: uint8(129), + 1731: uint8(129), + 1732: uint8(129), + 1733: uint8(129), + 1734: uint8(129), + 1735: uint8(201), + 1736: uint8(172), + 1737: uint8(172), + 1738: uint8(172), + 1739: uint8(172), + 1740: uint8(172), + 1741: uint8(172), + 1742: uint8(172), + 1743: uint8(172), + 1744: uint8(172), + 1745: uint8(172), + 1746: uint8(172), + 1747: uint8(172), + 1748: uint8(172), + 1749: uint8(172), + 1750: uint8(172), + 1751: uint8(208), + 1752: uint8(13), + 1754: uint8(78), + 1755: uint8(49), + 1756: uint8(2), + 1757: uint8(180), + 1758: uint8(193), + 1759: uint8(193), + 1760: uint8(215), + 1761: uint8(215), + 1762: uint8(36), + 1763: uint8(80), + 1764: uint8(49), + 1765: uint8(80), + 1766: uint8(49), + 1767: uint8(80), + 1768: uint8(49), + 1769: uint8(80), + 1770: uint8(49), + 1771: uint8(80), + 1772: uint8(49), + 1773: uint8(80), + 1774: uint8(49), + 1775: uint8(80), + 1776: uint8(49), + 1777: uint8(80), + 1778: uint8(49), + 1779: uint8(80), + 1780: uint8(49), + 1781: uint8(80), + 1782: uint8(49), + 1783: uint8(80), + 1784: uint8(49), + 1785: uint8(80), + 1786: uint8(49), + 1787: uint8(80), + 1788: uint8(49), + 1789: uint8(80), + 1790: uint8(49), + 1791: uint8(80), + 1792: uint8(49), + 1793: uint8(80), + 1794: uint8(49), + 1795: uint8(80), + 1796: uint8(215), + 1797: uint8(215), + 1798: uint8(83), + 1799: uint8(193), + 1800: uint8(71), + 1801: uint8(212), + 1802: uint8(215), + 1803: uint8(215), + 1804: uint8(215), + 1805: uint8(5), + 1806: uint8(43), + 1807: uint8(43), + 1808: uint8(43), + 1809: uint8(43), + 1810: uint8(43), + 1811: uint8(43), + 1812: uint8(43), + 1813: uint8(43), + 1814: uint8(43), + 1815: uint8(43), + 1816: uint8(43), + 1817: uint8(43), + 1818: uint8(7), + 1819: uint8(1), + 1821: uint8(1), + 1913: uint8(78), + 1914: uint8(49), + 1915: uint8(80), + 1916: uint8(49), + 1917: uint8(80), + 1918: uint8(49), + 1919: uint8(80), + 1920: uint8(49), + 1921: uint8(80), + 1922: uint8(49), + 1923: uint8(80), + 1924: uint8(49), + 1925: uint8(80), + 1926: uint8(49), + 1927: uint8(80), + 1928: uint8(13), + 1934: uint8(36), + 1935: uint8(80), + 1936: uint8(49), + 1937: uint8(80), + 1938: uint8(49), + 1939: uint8(80), + 1940: uint8(49), + 1941: uint8(80), + 1942: uint8(49), + 1943: uint8(80), + 1978: uint8(43), + 1979: uint8(43), + 1980: uint8(43), + 1981: uint8(43), + 1982: uint8(43), + 1983: uint8(43), + 1984: uint8(43), + 1985: uint8(43), + 1986: uint8(43), + 1987: uint8(43), + 1988: uint8(43), + 1989: uint8(121), + 1990: uint8(92), + 1991: uint8(123), + 1992: uint8(92), + 1993: uint8(123), + 1994: uint8(79), + 1995: uint8(123), + 1996: uint8(92), + 1997: uint8(123), + 1998: uint8(92), + 1999: uint8(123), + 2000: uint8(92), + 2001: uint8(123), + 2002: uint8(92), + 2003: uint8(123), + 2004: uint8(92), + 2005: uint8(123), + 2006: uint8(92), + 2007: uint8(123), + 2008: uint8(92), + 2009: uint8(123), + 2010: uint8(92), + 2011: uint8(123), + 2012: uint8(92), + 2013: uint8(123), + 2014: uint8(92), + 2015: uint8(45), + 2016: uint8(43), + 2017: uint8(43), + 2018: uint8(121), + 2019: uint8(20), + 2020: uint8(92), + 2021: uint8(123), + 2022: uint8(92), + 2023: uint8(45), + 2024: uint8(121), + 2025: uint8(42), + 2026: uint8(92), + 2027: uint8(39), + 2028: uint8(92), + 2029: uint8(123), + 2030: uint8(92), + 2031: uint8(123), + 2032: uint8(92), + 2033: uint8(123), + 2034: uint8(164), + 2036: uint8(10), + 2037: uint8(180), + 2038: uint8(92), + 2039: uint8(123), + 2040: uint8(92), + 2041: uint8(123), + 2042: uint8(79), + 2043: uint8(3), + 2044: uint8(42), + 2045: uint8(43), + 2046: uint8(43), + 2047: uint8(43), + 2048: uint8(43), + 2049: uint8(43), + 2050: uint8(43), + 2051: uint8(43), + 2052: uint8(43), + 2053: uint8(43), + 2054: uint8(43), + 2055: uint8(43), + 2056: uint8(43), + 2057: uint8(43), + 2058: uint8(43), + 2059: uint8(43), + 2060: uint8(43), + 2061: uint8(43), + 2062: uint8(43), + 2063: uint8(1), + 2091: uint8(72), + 2101: uint8(42), + 2102: uint8(43), + 2103: uint8(43), + 2104: uint8(43), + 2105: uint8(43), + 2106: uint8(43), + 2107: uint8(43), + 2108: uint8(43), + 2109: uint8(43), + 2110: uint8(43), + 2111: uint8(43), + 2112: uint8(43), + 2113: uint8(43), + 2114: uint8(43), + 2115: uint8(43), + 2116: uint8(43), + 2117: uint8(43), + 2118: uint8(43), + 2119: uint8(43), + 2120: uint8(43), + 2121: uint8(43), + 2122: uint8(43), + 2123: uint8(43), + 2124: uint8(43), + 2125: uint8(43), + 2126: uint8(43), + 2127: uint8(43), + 2161: uint8(43), + 2162: uint8(43), + 2163: uint8(43), + 2164: uint8(43), + 2165: uint8(43), + 2166: uint8(43), + 2167: uint8(43), + 2168: uint8(43), + 2169: uint8(7), + 2171: uint8(72), + 2172: uint8(86), + 2173: uint8(86), + 2174: uint8(86), + 2175: uint8(86), + 2176: uint8(86), + 2177: uint8(86), + 2178: uint8(86), + 2179: uint8(86), + 2180: uint8(2), + 2236: uint8(43), + 2237: uint8(43), + 2238: uint8(43), + 2239: uint8(43), + 2240: uint8(43), + 2241: uint8(43), + 2242: uint8(43), + 2243: uint8(43), + 2244: uint8(43), + 2245: uint8(43), + 2246: uint8(43), + 2247: uint8(43), + 2248: uint8(43), + 2249: uint8(85), + 2250: uint8(86), + 2251: uint8(86), + 2252: uint8(86), + 2253: uint8(86), + 2254: uint8(86), + 2255: uint8(86), + 2256: uint8(86), + 2257: uint8(86), + 2258: uint8(86), + 2259: uint8(86), + 2260: uint8(86), + 2261: uint8(86), + 2262: uint8(14), + 2294: uint8(36), + 2295: uint8(43), + 2296: uint8(43), + 2297: uint8(43), + 2298: uint8(43), + 2299: uint8(43), + 2300: uint8(43), + 2301: uint8(43), + 2302: uint8(43), + 2303: uint8(43), + 2304: uint8(43), + 2305: uint8(43), + 2306: uint8(7), + 2308: uint8(86), + 2309: uint8(86), + 2310: uint8(86), + 2311: uint8(86), + 2312: uint8(86), + 2313: uint8(86), + 2314: uint8(86), + 2315: uint8(86), + 2316: uint8(86), + 2317: uint8(86), + 2318: uint8(86), + 2319: uint8(86), + 2364: uint8(36), + 2365: uint8(43), + 2366: uint8(43), + 2367: uint8(43), + 2368: uint8(43), + 2369: uint8(43), + 2370: uint8(43), + 2371: uint8(43), + 2372: uint8(43), + 2373: uint8(43), + 2374: uint8(43), + 2375: uint8(43), + 2376: uint8(43), + 2377: uint8(43), + 2378: uint8(43), + 2379: uint8(43), + 2380: uint8(43), + 2381: uint8(7), + 2386: uint8(86), + 2387: uint8(86), + 2388: uint8(86), + 2389: uint8(86), + 2390: uint8(86), + 2391: uint8(86), + 2392: uint8(86), + 2393: uint8(86), + 2394: uint8(86), + 2395: uint8(86), + 2396: uint8(86), + 2397: uint8(86), + 2398: uint8(86), + 2399: uint8(86), + 2400: uint8(86), + 2401: uint8(86), + 2402: uint8(86), + 2461: uint8(42), + 2462: uint8(43), + 2463: uint8(43), + 2464: uint8(43), + 2465: uint8(43), + 2466: uint8(43), + 2467: uint8(43), + 2468: uint8(43), + 2469: uint8(43), + 2470: uint8(43), + 2471: uint8(43), + 2472: uint8(86), + 2473: uint8(86), + 2474: uint8(86), + 2475: uint8(86), + 2476: uint8(86), + 2477: uint8(86), + 2478: uint8(86), + 2479: uint8(86), + 2480: uint8(86), + 2481: uint8(86), + 2482: uint8(14), + 2515: uint8(42), + 2516: uint8(43), + 2517: uint8(43), + 2518: uint8(43), + 2519: uint8(43), + 2520: uint8(43), + 2521: uint8(43), + 2522: uint8(43), + 2523: uint8(43), + 2524: uint8(43), + 2525: uint8(43), + 2526: uint8(86), + 2527: uint8(86), + 2528: uint8(86), + 2529: uint8(86), + 2530: uint8(86), + 2531: uint8(86), + 2532: uint8(86), + 2533: uint8(86), + 2534: uint8(86), + 2535: uint8(86), + 2536: uint8(14), + 2580: uint8(43), + 2581: uint8(43), + 2582: uint8(43), + 2583: uint8(43), + 2584: uint8(43), + 2585: uint8(43), + 2586: uint8(43), + 2587: uint8(43), + 2588: uint8(43), + 2589: uint8(43), + 2590: uint8(43), + 2591: uint8(85), + 2592: uint8(86), + 2593: uint8(86), + 2594: uint8(86), + 2595: uint8(86), + 2596: uint8(86), + 2597: uint8(86), + 2598: uint8(86), + 2599: uint8(86), + 2600: uint8(86), + 2601: uint8(86), + 2602: uint8(14), +} +var _rules = [240]int32{ + 1: int32(0x2001), + 2: -int32(0x2000), + 3: int32(0x1dbf00), + 4: int32(0x2e700), + 5: int32(0x7900), + 6: int32(0x2402), + 7: int32(0x101), + 8: -int32(0x100), + 10: int32(0x201), + 11: -int32(0x200), + 12: -int32(0xc6ff), + 13: -int32(0xe800), + 14: -int32(0x78ff), + 15: -int32(0x12c00), + 16: int32(0xc300), + 17: int32(0xd201), + 18: int32(0xce01), + 19: int32(0xcd01), + 20: int32(0x4f01), + 21: int32(0xca01), + 22: int32(0xcb01), + 23: int32(0xcf01), + 24: int32(0x6100), + 25: int32(0xd301), + 26: int32(0xd101), + 27: int32(0xa300), + 28: int32(0xd501), + 29: int32(0x8200), + 30: int32(0xd601), + 31: int32(0xda01), + 32: int32(0xd901), + 33: int32(0xdb01), + 34: int32(0x3800), + 35: int32(0x3), + 36: -int32(0x4f00), + 37: -int32(0x60ff), + 38: -int32(0x37ff), + 39: int32(0x242802), + 41: int32(0x101), + 42: -int32(0x100), + 43: -int32(0xcd00), + 44: -int32(0xda00), + 45: -int32(0x81ff), + 46: int32(0x2a2b01), + 47: -int32(0xa2ff), + 48: int32(0x2a2801), + 49: int32(0x2a3f00), + 50: -int32(0xc2ff), + 51: int32(0x4501), + 52: int32(0x4701), + 53: int32(0x2a1f00), + 54: int32(0x2a1c00), + 55: int32(0x2a1e00), + 56: -int32(0xd200), + 57: -int32(0xce00), + 58: -int32(0xca00), + 59: -int32(0xcb00), + 60: int32(0xa54f00), + 61: int32(0xa54b00), + 62: -int32(0xcf00), + 63: int32(0xa52800), + 64: int32(0xa54400), + 65: -int32(0xd100), + 66: -int32(0xd300), + 67: int32(0x29f700), + 68: int32(0xa54100), + 69: int32(0x29fd00), + 70: -int32(0xd500), + 71: -int32(0xd600), + 72: int32(0x29e700), + 73: int32(0xa54300), + 74: int32(0xa52a00), + 75: -int32(0x4500), + 76: -int32(0xd900), + 77: -int32(0x4700), + 78: -int32(0xdb00), + 79: int32(0xa51500), + 80: int32(0xa51200), + 81: int32(0x4c2402), + 83: int32(0x2001), + 84: -int32(0x2000), + 85: int32(0x101), + 86: -int32(0x100), + 87: int32(0x5400), + 88: int32(0x7401), + 89: int32(0x2601), + 90: int32(0x2501), + 91: int32(0x4001), + 92: int32(0x3f01), + 93: -int32(0x2600), + 94: -int32(0x2500), + 95: -int32(0x1f00), + 96: -int32(0x4000), + 97: -int32(0x3f00), + 98: int32(0x801), + 99: -int32(0x3e00), + 100: -int32(0x3900), + 101: -int32(0x2f00), + 102: -int32(0x3600), + 103: -int32(0x800), + 104: -int32(0x5600), + 105: -int32(0x5000), + 106: int32(0x700), + 107: -int32(0x7400), + 108: -int32(0x3bff), + 109: -int32(0x6000), + 110: -int32(0x6ff), + 111: int32(0x701a02), + 112: int32(0x101), + 113: -int32(0x100), + 114: int32(0x2001), + 115: -int32(0x2000), + 116: int32(0x5001), + 117: int32(0xf01), + 118: -int32(0xf00), + 120: int32(0x3001), + 121: -int32(0x3000), + 122: int32(0x101), + 123: -int32(0x100), + 125: int32(0xbc000), + 126: int32(0x1c6001), + 128: int32(0x97d001), + 129: int32(0x801), + 130: -int32(0x800), + 131: int32(0x8a0502), + 133: -int32(0xbbfff), + 134: -int32(0x186200), + 135: int32(0x89c200), + 136: -int32(0x182500), + 137: -int32(0x186e00), + 138: -int32(0x186d00), + 139: -int32(0x186400), + 140: -int32(0x186300), + 141: -int32(0x185c00), + 143: int32(0x8a3800), + 144: int32(0x8a0400), + 145: int32(0xee600), + 146: int32(0x101), + 147: -int32(0x100), + 149: -int32(0x3b00), + 150: -int32(0x1dbeff), + 151: int32(0x8f1d02), + 152: int32(0x800), + 153: -int32(0x7ff), + 155: int32(0x5600), + 156: -int32(0x55ff), + 157: int32(0x4a00), + 158: int32(0x6400), + 159: int32(0x8000), + 160: int32(0x7000), + 161: int32(0x7e00), + 162: int32(0x900), + 163: -int32(0x49ff), + 164: -int32(0x8ff), + 165: -int32(0x1c2500), + 166: -int32(0x63ff), + 167: -int32(0x6fff), + 168: -int32(0x7fff), + 169: -int32(0x7dff), + 170: int32(0xac0502), + 172: int32(0x1001), + 173: -int32(0x1000), + 174: int32(0x1c01), + 175: int32(0x101), + 176: -int32(0x1d5cff), + 177: -int32(0x20beff), + 178: -int32(0x2045ff), + 179: -int32(0x1c00), + 180: int32(0xb10b02), + 181: int32(0x101), + 182: -int32(0x100), + 183: int32(0x3001), + 184: -int32(0x3000), + 186: -int32(0x29f6ff), + 187: -int32(0xee5ff), + 188: -int32(0x29e6ff), + 189: -int32(0x2a2b00), + 190: -int32(0x2a2800), + 191: -int32(0x2a1bff), + 192: -int32(0x29fcff), + 193: -int32(0x2a1eff), + 194: -int32(0x2a1dff), + 195: -int32(0x2a3eff), + 197: -int32(0x1c6000), + 199: int32(0x101), + 200: -int32(0x100), + 201: int32(0xbc0c02), + 203: int32(0x101), + 204: -int32(0x100), + 205: -int32(0xa543ff), + 206: int32(0x3a001), + 207: -int32(0x8a03ff), + 208: -int32(0xa527ff), + 209: int32(0x3000), + 210: -int32(0xa54eff), + 211: -int32(0xa54aff), + 212: -int32(0xa540ff), + 213: -int32(0xa511ff), + 214: -int32(0xa529ff), + 215: -int32(0xa514ff), + 216: -int32(0x2fff), + 217: -int32(0xa542ff), + 218: -int32(0x8a37ff), + 220: -int32(0x97d000), + 221: -int32(0x3a000), + 223: int32(0x2001), + 224: -int32(0x2000), + 226: int32(0x2801), + 227: -int32(0x2800), + 229: int32(0x4001), + 230: -int32(0x4000), + 232: int32(0x2001), + 233: -int32(0x2000), + 235: int32(0x2001), + 236: -int32(0x2000), + 238: int32(0x2201), + 239: -int32(0x2200), +} +var _rulebases = [512]uint8{ + 1: uint8(6), + 2: uint8(39), + 3: uint8(81), + 4: uint8(111), + 5: uint8(119), + 16: uint8(124), + 19: uint8(127), + 28: uint8(131), + 29: uint8(142), + 30: uint8(146), + 31: uint8(151), + 33: uint8(170), + 44: uint8(180), + 45: uint8(196), + 166: uint8(198), + 167: uint8(201), + 171: uint8(219), + 255: uint8(222), + 260: uint8(225), + 268: uint8(228), + 280: uint8(231), + 366: uint8(234), + 489: uint8(237), +} +var _exceptions = [200][2]uint8{ + 0: { + 0: uint8(48), + 1: uint8(12), + }, + 1: { + 0: uint8(49), + 1: uint8(13), + }, + 2: { + 0: uint8(120), + 1: uint8(14), + }, + 3: { + 0: uint8(127), + 1: uint8(15), + }, + 4: { + 0: uint8(128), + 1: uint8(16), + }, + 5: { + 0: uint8(129), + 1: uint8(17), + }, + 6: { + 0: uint8(134), + 1: uint8(18), + }, + 7: { + 0: uint8(137), + 1: uint8(19), + }, + 8: { + 0: uint8(138), + 1: uint8(19), + }, + 9: { + 0: uint8(142), + 1: uint8(20), + }, + 10: { + 0: uint8(143), + 1: uint8(21), + }, + 11: { + 0: uint8(144), + 1: uint8(22), + }, + 12: { + 0: uint8(147), + 1: uint8(19), + }, + 13: { + 0: uint8(148), + 1: uint8(23), + }, + 14: { + 0: uint8(149), + 1: uint8(24), + }, + 15: { + 0: uint8(150), + 1: uint8(25), + }, + 16: { + 0: uint8(151), + 1: uint8(26), + }, + 17: { + 0: uint8(154), + 1: uint8(27), + }, + 18: { + 0: uint8(156), + 1: uint8(25), + }, + 19: { + 0: uint8(157), + 1: uint8(28), + }, + 20: { + 0: uint8(158), + 1: uint8(29), + }, + 21: { + 0: uint8(159), + 1: uint8(30), + }, + 22: { + 0: uint8(166), + 1: uint8(31), + }, + 23: { + 0: uint8(169), + 1: uint8(31), + }, + 24: { + 0: uint8(174), + 1: uint8(31), + }, + 25: { + 0: uint8(177), + 1: uint8(32), + }, + 26: { + 0: uint8(178), + 1: uint8(32), + }, + 27: { + 0: uint8(183), + 1: uint8(33), + }, + 28: { + 0: uint8(191), + 1: uint8(34), + }, + 29: { + 0: uint8(197), + 1: uint8(35), + }, + 30: { + 0: uint8(200), + 1: uint8(35), + }, + 31: { + 0: uint8(203), + 1: uint8(35), + }, + 32: { + 0: uint8(221), + 1: uint8(36), + }, + 33: { + 0: uint8(242), + 1: uint8(35), + }, + 34: { + 0: uint8(246), + 1: uint8(37), + }, + 35: { + 0: uint8(247), + 1: uint8(38), + }, + 36: { + 0: uint8(32), + 1: uint8(45), + }, + 37: { + 0: uint8(58), + 1: uint8(46), + }, + 38: { + 0: uint8(61), + 1: uint8(47), + }, + 39: { + 0: uint8(62), + 1: uint8(48), + }, + 40: { + 0: uint8(63), + 1: uint8(49), + }, + 41: { + 0: uint8(64), + 1: uint8(49), + }, + 42: { + 0: uint8(67), + 1: uint8(50), + }, + 43: { + 0: uint8(68), + 1: uint8(51), + }, + 44: { + 0: uint8(69), + 1: uint8(52), + }, + 45: { + 0: uint8(80), + 1: uint8(53), + }, + 46: { + 0: uint8(81), + 1: uint8(54), + }, + 47: { + 0: uint8(82), + 1: uint8(55), + }, + 48: { + 0: uint8(83), + 1: uint8(56), + }, + 49: { + 0: uint8(84), + 1: uint8(57), + }, + 50: { + 0: uint8(89), + 1: uint8(58), + }, + 51: { + 0: uint8(91), + 1: uint8(59), + }, + 52: { + 0: uint8(92), + 1: uint8(60), + }, + 53: { + 0: uint8(97), + 1: uint8(61), + }, + 54: { + 0: uint8(99), + 1: uint8(62), + }, + 55: { + 0: uint8(101), + 1: uint8(63), + }, + 56: { + 0: uint8(102), + 1: uint8(64), + }, + 57: { + 0: uint8(104), + 1: uint8(65), + }, + 58: { + 0: uint8(105), + 1: uint8(66), + }, + 59: { + 0: uint8(106), + 1: uint8(64), + }, + 60: { + 0: uint8(107), + 1: uint8(67), + }, + 61: { + 0: uint8(108), + 1: uint8(68), + }, + 62: { + 0: uint8(111), + 1: uint8(66), + }, + 63: { + 0: uint8(113), + 1: uint8(69), + }, + 64: { + 0: uint8(114), + 1: uint8(70), + }, + 65: { + 0: uint8(117), + 1: uint8(71), + }, + 66: { + 0: uint8(125), + 1: uint8(72), + }, + 67: { + 0: uint8(130), + 1: uint8(73), + }, + 68: { + 0: uint8(135), + 1: uint8(74), + }, + 69: { + 0: uint8(137), + 1: uint8(75), + }, + 70: { + 0: uint8(138), + 1: uint8(76), + }, + 71: { + 0: uint8(139), + 1: uint8(76), + }, + 72: { + 0: uint8(140), + 1: uint8(77), + }, + 73: { + 0: uint8(146), + 1: uint8(78), + }, + 74: { + 0: uint8(157), + 1: uint8(79), + }, + 75: { + 0: uint8(158), + 1: uint8(80), + }, + 76: { + 0: uint8(69), + 1: uint8(87), + }, + 77: { + 0: uint8(123), + 1: uint8(29), + }, + 78: { + 0: uint8(124), + 1: uint8(29), + }, + 79: { + 0: uint8(125), + 1: uint8(29), + }, + 80: { + 0: uint8(127), + 1: uint8(88), + }, + 81: { + 0: uint8(134), + 1: uint8(89), + }, + 82: { + 0: uint8(136), + 1: uint8(90), + }, + 83: { + 0: uint8(137), + 1: uint8(90), + }, + 84: { + 0: uint8(138), + 1: uint8(90), + }, + 85: { + 0: uint8(140), + 1: uint8(91), + }, + 86: { + 0: uint8(142), + 1: uint8(92), + }, + 87: { + 0: uint8(143), + 1: uint8(92), + }, + 88: { + 0: uint8(172), + 1: uint8(93), + }, + 89: { + 0: uint8(173), + 1: uint8(94), + }, + 90: { + 0: uint8(174), + 1: uint8(94), + }, + 91: { + 0: uint8(175), + 1: uint8(94), + }, + 92: { + 0: uint8(194), + 1: uint8(95), + }, + 93: { + 0: uint8(204), + 1: uint8(96), + }, + 94: { + 0: uint8(205), + 1: uint8(97), + }, + 95: { + 0: uint8(206), + 1: uint8(97), + }, + 96: { + 0: uint8(207), + 1: uint8(98), + }, + 97: { + 0: uint8(208), + 1: uint8(99), + }, + 98: { + 0: uint8(209), + 1: uint8(100), + }, + 99: { + 0: uint8(213), + 1: uint8(101), + }, + 100: { + 0: uint8(214), + 1: uint8(102), + }, + 101: { + 0: uint8(215), + 1: uint8(103), + }, + 102: { + 0: uint8(240), + 1: uint8(104), + }, + 103: { + 0: uint8(241), + 1: uint8(105), + }, + 104: { + 0: uint8(242), + 1: uint8(106), + }, + 105: { + 0: uint8(243), + 1: uint8(107), + }, + 106: { + 0: uint8(244), + 1: uint8(108), + }, + 107: { + 0: uint8(245), + 1: uint8(109), + }, + 108: { + 0: uint8(249), + 1: uint8(110), + }, + 109: { + 0: uint8(253), + 1: uint8(45), + }, + 110: { + 0: uint8(254), + 1: uint8(45), + }, + 111: { + 0: uint8(255), + 1: uint8(45), + }, + 112: { + 0: uint8(80), + 1: uint8(105), + }, + 113: { + 0: uint8(81), + 1: uint8(105), + }, + 114: { + 0: uint8(82), + 1: uint8(105), + }, + 115: { + 0: uint8(83), + 1: uint8(105), + }, + 116: { + 0: uint8(84), + 1: uint8(105), + }, + 117: { + 0: uint8(85), + 1: uint8(105), + }, + 118: { + 0: uint8(86), + 1: uint8(105), + }, + 119: { + 0: uint8(87), + 1: uint8(105), + }, + 120: { + 0: uint8(88), + 1: uint8(105), + }, + 121: { + 0: uint8(89), + 1: uint8(105), + }, + 122: { + 0: uint8(90), + 1: uint8(105), + }, + 123: { + 0: uint8(91), + 1: uint8(105), + }, + 124: { + 0: uint8(92), + 1: uint8(105), + }, + 125: { + 0: uint8(93), + 1: uint8(105), + }, + 126: { + 0: uint8(94), + 1: uint8(105), + }, + 127: { + 0: uint8(95), + 1: uint8(105), + }, + 128: { + 0: uint8(130), + }, + 129: { + 0: uint8(131), + }, + 130: { + 0: uint8(132), + }, + 131: { + 0: uint8(133), + }, + 132: { + 0: uint8(134), + }, + 133: { + 0: uint8(135), + }, + 134: { + 0: uint8(136), + }, + 135: { + 0: uint8(137), + }, + 136: { + 0: uint8(192), + 1: uint8(117), + }, + 137: { + 0: uint8(207), + 1: uint8(118), + }, + 138: { + 0: uint8(128), + 1: uint8(137), + }, + 139: { + 0: uint8(129), + 1: uint8(138), + }, + 140: { + 0: uint8(130), + 1: uint8(139), + }, + 141: { + 0: uint8(133), + 1: uint8(140), + }, + 142: { + 0: uint8(134), + 1: uint8(141), + }, + 143: { + 0: uint8(112), + 1: uint8(157), + }, + 144: { + 0: uint8(113), + 1: uint8(157), + }, + 145: { + 0: uint8(118), + 1: uint8(158), + }, + 146: { + 0: uint8(119), + 1: uint8(158), + }, + 147: { + 0: uint8(120), + 1: uint8(159), + }, + 148: { + 0: uint8(121), + 1: uint8(159), + }, + 149: { + 0: uint8(122), + 1: uint8(160), + }, + 150: { + 0: uint8(123), + 1: uint8(160), + }, + 151: { + 0: uint8(124), + 1: uint8(161), + }, + 152: { + 0: uint8(125), + 1: uint8(161), + }, + 153: { + 0: uint8(179), + 1: uint8(162), + }, + 154: { + 0: uint8(186), + 1: uint8(163), + }, + 155: { + 0: uint8(187), + 1: uint8(163), + }, + 156: { + 0: uint8(188), + 1: uint8(164), + }, + 157: { + 0: uint8(190), + 1: uint8(165), + }, + 158: { + 0: uint8(195), + 1: uint8(162), + }, + 159: { + 0: uint8(204), + 1: uint8(164), + }, + 160: { + 0: uint8(218), + 1: uint8(166), + }, + 161: { + 0: uint8(219), + 1: uint8(166), + }, + 162: { + 0: uint8(229), + 1: uint8(106), + }, + 163: { + 0: uint8(234), + 1: uint8(167), + }, + 164: { + 0: uint8(235), + 1: uint8(167), + }, + 165: { + 0: uint8(236), + 1: uint8(110), + }, + 166: { + 0: uint8(243), + 1: uint8(162), + }, + 167: { + 0: uint8(248), + 1: uint8(168), + }, + 168: { + 0: uint8(249), + 1: uint8(168), + }, + 169: { + 0: uint8(250), + 1: uint8(169), + }, + 170: { + 0: uint8(251), + 1: uint8(169), + }, + 171: { + 0: uint8(252), + 1: uint8(164), + }, + 172: { + 0: uint8(38), + 1: uint8(176), + }, + 173: { + 0: uint8(42), + 1: uint8(177), + }, + 174: { + 0: uint8(43), + 1: uint8(178), + }, + 175: { + 0: uint8(78), + 1: uint8(179), + }, + 176: { + 0: uint8(132), + 1: uint8(8), + }, + 177: { + 0: uint8(98), + 1: uint8(186), + }, + 178: { + 0: uint8(99), + 1: uint8(187), + }, + 179: { + 0: uint8(100), + 1: uint8(188), + }, + 180: { + 0: uint8(101), + 1: uint8(189), + }, + 181: { + 0: uint8(102), + 1: uint8(190), + }, + 182: { + 0: uint8(109), + 1: uint8(191), + }, + 183: { + 0: uint8(110), + 1: uint8(192), + }, + 184: { + 0: uint8(111), + 1: uint8(193), + }, + 185: { + 0: uint8(112), + 1: uint8(194), + }, + 186: { + 0: uint8(126), + 1: uint8(195), + }, + 187: { + 0: uint8(127), + 1: uint8(195), + }, + 188: { + 0: uint8(125), + 1: uint8(207), + }, + 189: { + 0: uint8(141), + 1: uint8(208), + }, + 190: { + 0: uint8(148), + 1: uint8(209), + }, + 191: { + 0: uint8(171), + 1: uint8(210), + }, + 192: { + 0: uint8(172), + 1: uint8(211), + }, + 193: { + 0: uint8(173), + 1: uint8(212), + }, + 194: { + 0: uint8(176), + 1: uint8(213), + }, + 195: { + 0: uint8(177), + 1: uint8(214), + }, + 196: { + 0: uint8(178), + 1: uint8(215), + }, + 197: { + 0: uint8(196), + 1: uint8(216), + }, + 198: { + 0: uint8(197), + 1: uint8(217), + }, + 199: { + 0: uint8(198), + 1: uint8(218), + }, +} + +func _casemap(tls *TLS, c uint32, dir int32) (r1 int32) { + var b, rt, try, v, x, xb, xn, y uint32 + var c0, r, rd, v1 int32 + _, _, _, _, _, _, _, _, _, _, _, _ = b, c0, r, rd, rt, try, v, x, xb, xn, y, v1 + c0 = Int32FromUint32(c) + if c >= uint32(0x20000) { + return Int32FromUint32(c) + } + b = c >> int32(8) + c = c & uint32(255) + x = c / uint32(3) + y = c % uint32(3) + /* lookup entry in two-level base-6 table */ + v = uint32(_tab1[Uint32FromInt32(Int32FromUint8(_tab1[b])*int32(86))+x]) + v = v * Uint32FromInt32(_mt[y]) >> int32(11) % uint32(6) + /* use the bit vector out of the tables as an index into + * a block-specific set of rules and decode the rule into + * a type and a case-mapping delta. */ + r = _rules[uint32(_rulebases[b])+v] + rt = Uint32FromInt32(r & int32(255)) + rd = r >> int32(8) + /* rules 0/1 are simple lower/upper case with a delta. + * apply according to desired mapping direction. */ + if rt < uint32(2) { + return Int32FromUint32(Uint32FromInt32(c0) + Uint32FromInt32(rd)&-(rt^Uint32FromInt32(dir))) + } + /* binary search. endpoints of the binary search for + * this block are stored in the rule delta field. */ + xn = Uint32FromInt32(rd & int32(0xff)) + xb = Uint32FromInt32(rd) >> int32(8) + for xn != 0 { + try = uint32(**(**uint8)(__ccgo_up(uintptr(unsafe.Pointer(&_exceptions)) + uintptr(xb+xn/uint32(2))*2))) + if try == c { + r = _rules[**(**uint8)(__ccgo_up(uintptr(unsafe.Pointer(&_exceptions)) + uintptr(xb+xn/uint32(2))*2 + 1))] + rt = Uint32FromInt32(r & int32(255)) + rd = r >> int32(8) + if rt < uint32(2) { + return Int32FromUint32(Uint32FromInt32(c0) + Uint32FromInt32(rd)&-(rt^Uint32FromInt32(dir))) + } + /* Hard-coded for the four exceptional titlecase */ + if dir != 0 { + v1 = -int32(1) + } else { + v1 = int32(1) + } + return c0 + v1 + } else { + if try > c { + xn = xn / uint32(2) + } else { + xb = xb + xn/uint32(2) + xn = xn - xn/uint32(2) + } + } + } + return c0 +} + +var _mt = [3]int32{ + 0: int32(2048), + 1: int32(342), + 2: int32(57), +} + +func Xtowlower(tls *TLS, wc Twint_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Uint32FromInt32(_casemap(tls, wc, 0)) +} + +func Xtowupper(tls *TLS, wc Twint_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Uint32FromInt32(_casemap(tls, wc, int32(1))) +} + +func X__towupper_l(tls *TLS, c Twint_t, l Tlocale_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xtowupper(tls, c) +} + +func X__towlower_l(tls *TLS, c Twint_t, l Tlocale_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xtowlower(tls, c) +} + +func Xtowlower_l(tls *TLS, c Twint_t, l Tlocale_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__towlower_l(tls, c, l) +} + +func Xtowupper_l(tls *TLS, c Twint_t, l Tlocale_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__towupper_l(tls, c, l) +} + +func Xwcswidth(tls *TLS, wcs uintptr, n Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wcs=%v n=%v, (%v:)", tls, wcs, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var k, l, v3 int32 + var v2 Tsize_t + var v4 bool + _, _, _, _, _ = k, l, v2, v3, v4 + l = 0 + k = 0 + for { + v2 = n + n = n - 1 + if v4 = v2 != 0 && **(**Twchar_t)(__ccgo_up(wcs)) != 0; v4 { + v3 = Xwcwidth(tls, **(**Twchar_t)(__ccgo_up(wcs))) + k = v3 + } + if !(v4 && v3 >= 0) { + break + } + goto _1 + _1: + ; + l = l + k + wcs += 4 + } + if k < 0 { + v3 = k + } else { + v3 = l + } + return v3 +} + +func Xwctrans(tls *TLS, class uintptr) (r Twctrans_t) { + if __ccgo_strace { + trc("tls=%v class=%v, (%v:)", tls, class, origin(2)) + defer func() { trc("-> %v", r) }() + } + if !(Xstrcmp(tls, class, __ccgo_ts+196) != 0) { + return UintptrFromInt32(1) + } + if !(Xstrcmp(tls, class, __ccgo_ts+204) != 0) { + return UintptrFromInt32(2) + } + return uintptr(0) +} + +func Xtowctrans(tls *TLS, wc Twint_t, trans Twctrans_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v wc=%v trans=%v, (%v:)", tls, wc, trans, origin(2)) + defer func() { trc("-> %v", r) }() + } + if trans == UintptrFromInt32(1) { + return Xtowupper(tls, wc) + } + if trans == UintptrFromInt32(2) { + return Xtowlower(tls, wc) + } + return wc +} + +func X__wctrans_l(tls *TLS, s uintptr, l Tlocale_t) (r Twctrans_t) { + if __ccgo_strace { + trc("tls=%v s=%v l=%v, (%v:)", tls, s, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwctrans(tls, s) +} + +func X__towctrans_l(tls *TLS, c Twint_t, t Twctrans_t, l Tlocale_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v t=%v l=%v, (%v:)", tls, c, t, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xtowctrans(tls, c, t) +} + +func Xtowctrans_l(tls *TLS, c Twint_t, t Twctrans_t, l Tlocale_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v t=%v l=%v, (%v:)", tls, c, t, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__towctrans_l(tls, c, t, l) +} + +func Xwctrans_l(tls *TLS, s uintptr, l Tlocale_t) (r Twctrans_t) { + if __ccgo_strace { + trc("tls=%v s=%v l=%v, (%v:)", tls, s, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__wctrans_l(tls, s, l) +} + +var _table5 = [2784]uint8{ + 0: uint8(16), + 1: uint8(16), + 2: uint8(16), + 3: uint8(18), + 4: uint8(19), + 5: uint8(20), + 6: uint8(21), + 7: uint8(22), + 8: uint8(23), + 9: uint8(24), + 10: uint8(25), + 11: uint8(26), + 12: uint8(27), + 13: uint8(28), + 14: uint8(29), + 15: uint8(30), + 16: uint8(31), + 17: uint8(32), + 18: uint8(16), + 19: uint8(33), + 20: uint8(16), + 21: uint8(16), + 22: uint8(16), + 23: uint8(34), + 24: uint8(35), + 25: uint8(36), + 26: uint8(37), + 27: uint8(38), + 28: uint8(39), + 29: uint8(40), + 30: uint8(16), + 31: uint8(16), + 32: uint8(41), + 33: uint8(16), + 34: uint8(16), + 35: uint8(16), + 36: uint8(16), + 37: uint8(16), + 38: uint8(16), + 39: uint8(16), + 40: uint8(16), + 41: uint8(16), + 42: uint8(16), + 43: uint8(16), + 44: uint8(42), + 45: uint8(43), + 46: uint8(16), + 47: uint8(16), + 48: uint8(44), + 49: uint8(16), + 50: uint8(16), + 51: uint8(16), + 52: uint8(16), + 53: uint8(16), + 54: uint8(16), + 55: uint8(16), + 56: uint8(16), + 57: uint8(16), + 58: uint8(16), + 59: uint8(16), + 60: uint8(16), + 61: uint8(16), + 62: uint8(16), + 63: uint8(16), + 64: uint8(16), + 65: uint8(16), + 66: uint8(16), + 67: uint8(16), + 68: uint8(16), + 69: uint8(16), + 70: uint8(16), + 71: uint8(16), + 72: uint8(16), + 73: uint8(16), + 74: uint8(16), + 75: uint8(16), + 76: uint8(16), + 77: uint8(16), + 78: uint8(16), + 79: uint8(16), + 80: uint8(16), + 81: uint8(16), + 82: uint8(16), + 83: uint8(16), + 84: uint8(16), + 85: uint8(16), + 86: uint8(16), + 87: uint8(16), + 88: uint8(16), + 89: uint8(16), + 90: uint8(16), + 91: uint8(16), + 92: uint8(16), + 93: uint8(16), + 94: uint8(16), + 95: uint8(16), + 96: uint8(16), + 97: uint8(16), + 98: uint8(16), + 99: uint8(16), + 100: uint8(16), + 101: uint8(16), + 102: uint8(16), + 103: uint8(16), + 104: uint8(16), + 105: uint8(16), + 106: uint8(16), + 107: uint8(16), + 108: uint8(16), + 109: uint8(16), + 110: uint8(16), + 111: uint8(16), + 112: uint8(16), + 113: uint8(16), + 114: uint8(16), + 115: uint8(16), + 116: uint8(16), + 117: uint8(16), + 118: uint8(16), + 119: uint8(16), + 120: uint8(16), + 121: uint8(16), + 122: uint8(16), + 123: uint8(16), + 124: uint8(16), + 125: uint8(16), + 126: uint8(16), + 127: uint8(16), + 128: uint8(16), + 129: uint8(16), + 130: uint8(16), + 131: uint8(16), + 132: uint8(16), + 133: uint8(16), + 134: uint8(16), + 135: uint8(16), + 136: uint8(16), + 137: uint8(16), + 138: uint8(16), + 139: uint8(16), + 140: uint8(16), + 141: uint8(16), + 142: uint8(16), + 143: uint8(16), + 144: uint8(16), + 145: uint8(16), + 146: uint8(16), + 147: uint8(16), + 148: uint8(16), + 149: uint8(16), + 150: uint8(16), + 151: uint8(16), + 152: uint8(16), + 153: uint8(16), + 154: uint8(16), + 155: uint8(16), + 156: uint8(16), + 157: uint8(16), + 158: uint8(16), + 159: uint8(16), + 160: uint8(16), + 161: uint8(16), + 162: uint8(16), + 163: uint8(16), + 164: uint8(16), + 165: uint8(16), + 166: uint8(45), + 167: uint8(16), + 168: uint8(46), + 169: uint8(47), + 170: uint8(48), + 171: uint8(49), + 172: uint8(16), + 173: uint8(16), + 174: uint8(16), + 175: uint8(16), + 176: uint8(16), + 177: uint8(16), + 178: uint8(16), + 179: uint8(16), + 180: uint8(16), + 181: uint8(16), + 182: uint8(16), + 183: uint8(16), + 184: uint8(16), + 185: uint8(16), + 186: uint8(16), + 187: uint8(16), + 188: uint8(16), + 189: uint8(16), + 190: uint8(16), + 191: uint8(16), + 192: uint8(16), + 193: uint8(16), + 194: uint8(16), + 195: uint8(16), + 196: uint8(16), + 197: uint8(16), + 198: uint8(16), + 199: uint8(16), + 200: uint8(16), + 201: uint8(16), + 202: uint8(16), + 203: uint8(16), + 204: uint8(16), + 205: uint8(16), + 206: uint8(16), + 207: uint8(16), + 208: uint8(16), + 209: uint8(16), + 210: uint8(16), + 211: uint8(16), + 212: uint8(16), + 213: uint8(16), + 214: uint8(16), + 215: uint8(50), + 216: uint8(16), + 217: uint8(16), + 218: uint8(16), + 219: uint8(16), + 220: uint8(16), + 221: uint8(16), + 222: uint8(16), + 223: uint8(16), + 224: uint8(16), + 225: uint8(16), + 226: uint8(16), + 227: uint8(16), + 228: uint8(16), + 229: uint8(16), + 230: uint8(16), + 231: uint8(16), + 232: uint8(16), + 233: uint8(16), + 234: uint8(16), + 235: uint8(16), + 236: uint8(16), + 237: uint8(16), + 238: uint8(16), + 239: uint8(16), + 240: uint8(16), + 241: uint8(16), + 242: uint8(16), + 243: uint8(16), + 244: uint8(16), + 245: uint8(16), + 246: uint8(16), + 247: uint8(16), + 248: uint8(16), + 249: uint8(16), + 250: uint8(16), + 251: uint8(51), + 252: uint8(16), + 253: uint8(16), + 254: uint8(52), + 255: uint8(53), + 256: uint8(16), + 257: uint8(54), + 258: uint8(55), + 259: uint8(56), + 260: uint8(16), + 261: uint8(16), + 262: uint8(16), + 263: uint8(16), + 264: uint8(16), + 265: uint8(16), + 266: uint8(57), + 267: uint8(16), + 268: uint8(16), + 269: uint8(58), + 270: uint8(16), + 271: uint8(59), + 272: uint8(60), + 273: uint8(61), + 274: uint8(62), + 275: uint8(63), + 276: uint8(64), + 277: uint8(65), + 278: uint8(66), + 279: uint8(67), + 280: uint8(68), + 281: uint8(69), + 282: uint8(70), + 283: uint8(16), + 284: uint8(71), + 285: uint8(72), + 286: uint8(73), + 287: uint8(16), + 288: uint8(16), + 289: uint8(16), + 290: uint8(16), + 291: uint8(16), + 292: uint8(16), + 293: uint8(16), + 294: uint8(16), + 295: uint8(16), + 296: uint8(16), + 297: uint8(16), + 298: uint8(16), + 299: uint8(16), + 300: uint8(16), + 301: uint8(16), + 302: uint8(16), + 303: uint8(16), + 304: uint8(16), + 305: uint8(16), + 306: uint8(16), + 307: uint8(16), + 308: uint8(74), + 309: uint8(16), + 310: uint8(16), + 311: uint8(16), + 312: uint8(16), + 313: uint8(16), + 314: uint8(16), + 315: uint8(16), + 316: uint8(16), + 317: uint8(16), + 318: uint8(16), + 319: uint8(16), + 320: uint8(16), + 321: uint8(16), + 322: uint8(16), + 323: uint8(16), + 324: uint8(16), + 325: uint8(16), + 326: uint8(16), + 327: uint8(16), + 328: uint8(16), + 329: uint8(16), + 330: uint8(16), + 331: uint8(16), + 332: uint8(16), + 333: uint8(16), + 334: uint8(16), + 335: uint8(16), + 336: uint8(16), + 337: uint8(16), + 338: uint8(16), + 339: uint8(16), + 340: uint8(16), + 341: uint8(16), + 342: uint8(16), + 343: uint8(16), + 344: uint8(16), + 345: uint8(16), + 346: uint8(16), + 347: uint8(16), + 348: uint8(16), + 349: uint8(16), + 350: uint8(16), + 351: uint8(16), + 352: uint8(16), + 353: uint8(16), + 354: uint8(16), + 355: uint8(16), + 356: uint8(16), + 357: uint8(16), + 358: uint8(16), + 359: uint8(16), + 360: uint8(16), + 361: uint8(16), + 362: uint8(75), + 363: uint8(76), + 364: uint8(16), + 365: uint8(16), + 366: uint8(16), + 367: uint8(77), + 368: uint8(16), + 369: uint8(16), + 370: uint8(16), + 371: uint8(16), + 372: uint8(16), + 373: uint8(16), + 374: uint8(16), + 375: uint8(16), + 376: uint8(16), + 377: uint8(16), + 378: uint8(16), + 379: uint8(16), + 380: uint8(16), + 381: uint8(16), + 382: uint8(16), + 383: uint8(16), + 384: uint8(16), + 385: uint8(16), + 386: uint8(16), + 387: uint8(16), + 388: uint8(16), + 389: uint8(16), + 390: uint8(16), + 391: uint8(16), + 392: uint8(16), + 393: uint8(16), + 394: uint8(16), + 395: uint8(16), + 396: uint8(16), + 397: uint8(16), + 398: uint8(16), + 399: uint8(16), + 400: uint8(16), + 401: uint8(16), + 402: uint8(16), + 403: uint8(16), + 404: uint8(16), + 405: uint8(16), + 406: uint8(16), + 407: uint8(16), + 408: uint8(16), + 409: uint8(16), + 410: uint8(16), + 411: uint8(16), + 412: uint8(16), + 413: uint8(16), + 414: uint8(16), + 415: uint8(16), + 416: uint8(16), + 417: uint8(16), + 418: uint8(16), + 419: uint8(16), + 420: uint8(16), + 421: uint8(16), + 422: uint8(16), + 423: uint8(16), + 424: uint8(16), + 425: uint8(16), + 426: uint8(16), + 427: uint8(16), + 428: uint8(16), + 429: uint8(16), + 430: uint8(16), + 431: uint8(16), + 432: uint8(16), + 433: uint8(16), + 434: uint8(16), + 435: uint8(16), + 436: uint8(16), + 437: uint8(16), + 438: uint8(16), + 439: uint8(16), + 440: uint8(16), + 441: uint8(16), + 442: uint8(16), + 443: uint8(16), + 444: uint8(78), + 445: uint8(16), + 446: uint8(16), + 447: uint8(16), + 448: uint8(16), + 449: uint8(16), + 450: uint8(16), + 451: uint8(16), + 452: uint8(16), + 453: uint8(16), + 454: uint8(16), + 455: uint8(16), + 456: uint8(16), + 457: uint8(16), + 458: uint8(16), + 459: uint8(16), + 460: uint8(16), + 461: uint8(16), + 462: uint8(16), + 463: uint8(16), + 464: uint8(16), + 465: uint8(79), + 466: uint8(80), + 467: uint8(16), + 468: uint8(16), + 469: uint8(16), + 470: uint8(16), + 471: uint8(16), + 472: uint8(16), + 473: uint8(16), + 474: uint8(81), + 475: uint8(16), + 476: uint8(16), + 477: uint8(16), + 478: uint8(16), + 479: uint8(16), + 480: uint8(82), + 481: uint8(83), + 482: uint8(84), + 483: uint8(16), + 484: uint8(16), + 485: uint8(16), + 486: uint8(16), + 487: uint8(16), + 488: uint8(85), + 489: uint8(86), + 490: uint8(16), + 491: uint8(16), + 492: uint8(16), + 493: uint8(16), + 494: uint8(16), + 495: uint8(16), + 496: uint8(16), + 497: uint8(16), + 498: uint8(16), + 499: uint8(16), + 500: uint8(16), + 501: uint8(16), + 502: uint8(16), + 503: uint8(16), + 504: uint8(16), + 505: uint8(16), + 506: uint8(16), + 507: uint8(16), + 508: uint8(16), + 509: uint8(16), + 510: uint8(16), + 511: uint8(16), + 544: uint8(255), + 545: uint8(255), + 546: uint8(255), + 547: uint8(255), + 548: uint8(255), + 549: uint8(255), + 550: uint8(255), + 551: uint8(255), + 552: uint8(255), + 553: uint8(255), + 554: uint8(255), + 555: uint8(255), + 556: uint8(255), + 557: uint8(255), + 558: uint8(255), + 559: uint8(255), + 560: uint8(255), + 561: uint8(255), + 562: uint8(255), + 563: uint8(255), + 564: uint8(255), + 565: uint8(255), + 566: uint8(255), + 567: uint8(255), + 568: uint8(255), + 569: uint8(255), + 570: uint8(255), + 571: uint8(255), + 572: uint8(255), + 573: uint8(255), + 574: uint8(255), + 575: uint8(255), + 576: uint8(255), + 577: uint8(255), + 578: uint8(255), + 579: uint8(255), + 580: uint8(255), + 581: uint8(255), + 582: uint8(255), + 583: uint8(255), + 584: uint8(255), + 585: uint8(255), + 586: uint8(255), + 587: uint8(255), + 588: uint8(255), + 589: uint8(255), + 624: uint8(248), + 625: uint8(3), + 658: uint8(254), + 659: uint8(255), + 660: uint8(255), + 661: uint8(255), + 662: uint8(255), + 663: uint8(191), + 664: uint8(182), + 672: uint8(63), + 674: uint8(255), + 675: uint8(23), + 681: uint8(248), + 682: uint8(255), + 683: uint8(255), + 686: uint8(1), + 698: uint8(192), + 699: uint8(191), + 700: uint8(159), + 701: uint8(61), + 705: uint8(128), + 706: uint8(2), + 710: uint8(255), + 711: uint8(255), + 712: uint8(255), + 713: uint8(7), + 724: uint8(192), + 725: uint8(255), + 726: uint8(1), + 733: uint8(248), + 734: uint8(15), + 735: uint8(32), + 738: uint8(192), + 739: uint8(251), + 740: uint8(239), + 741: uint8(62), + 747: uint8(14), + 762: uint8(248), + 763: uint8(255), + 764: uint8(255), + 765: uint8(255), + 766: uint8(255), + 767: uint8(255), + 768: uint8(7), + 775: uint8(20), + 776: uint8(254), + 777: uint8(33), + 778: uint8(254), + 780: uint8(12), + 784: uint8(2), + 791: uint8(16), + 792: uint8(30), + 793: uint8(32), + 796: uint8(12), + 799: uint8(64), + 800: uint8(6), + 807: uint8(16), + 808: uint8(134), + 809: uint8(57), + 810: uint8(2), + 814: uint8(35), + 816: uint8(6), + 823: uint8(16), + 824: uint8(190), + 825: uint8(33), + 828: uint8(12), + 831: uint8(252), + 832: uint8(2), + 839: uint8(144), + 840: uint8(30), + 841: uint8(32), + 842: uint8(64), + 844: uint8(12), + 848: uint8(4), + 856: uint8(1), + 857: uint8(32), + 864: uint8(17), + 871: uint8(192), + 872: uint8(193), + 873: uint8(61), + 874: uint8(96), + 876: uint8(12), + 880: uint8(2), + 887: uint8(144), + 888: uint8(64), + 889: uint8(48), + 892: uint8(12), + 896: uint8(3), + 903: uint8(24), + 904: uint8(30), + 905: uint8(32), + 908: uint8(12), + 921: uint8(4), + 922: uint8(92), + 934: uint8(242), + 935: uint8(7), + 936: uint8(128), + 937: uint8(127), + 950: uint8(242), + 951: uint8(31), + 953: uint8(63), + 963: uint8(3), + 966: uint8(160), + 967: uint8(2), + 974: uint8(254), + 975: uint8(127), + 976: uint8(223), + 977: uint8(224), + 978: uint8(255), + 979: uint8(254), + 980: uint8(255), + 981: uint8(255), + 982: uint8(255), + 983: uint8(31), + 984: uint8(64), + 997: uint8(224), + 998: uint8(253), + 999: uint8(102), + 1003: uint8(195), + 1004: uint8(1), + 1006: uint8(30), + 1008: uint8(100), + 1009: uint8(32), + 1011: uint8(32), + 1036: uint8(255), + 1037: uint8(255), + 1038: uint8(255), + 1039: uint8(255), + 1040: uint8(255), + 1041: uint8(255), + 1042: uint8(255), + 1043: uint8(255), + 1044: uint8(255), + 1045: uint8(255), + 1046: uint8(255), + 1047: uint8(255), + 1048: uint8(255), + 1049: uint8(255), + 1050: uint8(255), + 1051: uint8(255), + 1052: uint8(255), + 1053: uint8(255), + 1054: uint8(255), + 1055: uint8(255), + 1067: uint8(224), + 1090: uint8(28), + 1094: uint8(28), + 1098: uint8(12), + 1102: uint8(12), + 1110: uint8(176), + 1111: uint8(63), + 1112: uint8(64), + 1113: uint8(254), + 1114: uint8(15), + 1115: uint8(32), + 1121: uint8(120), + 1136: uint8(96), + 1141: uint8(2), + 1156: uint8(135), + 1157: uint8(1), + 1158: uint8(4), + 1159: uint8(14), + 1186: uint8(128), + 1187: uint8(9), + 1194: uint8(64), + 1195: uint8(127), + 1196: uint8(229), + 1197: uint8(31), + 1198: uint8(248), + 1199: uint8(159), + 1206: uint8(255), + 1207: uint8(127), + 1216: uint8(15), + 1222: uint8(208), + 1223: uint8(23), + 1224: uint8(4), + 1229: uint8(248), + 1230: uint8(15), + 1232: uint8(3), + 1236: uint8(60), + 1237: uint8(59), + 1244: uint8(64), + 1245: uint8(163), + 1246: uint8(3), + 1253: uint8(240), + 1254: uint8(207), + 1274: uint8(247), + 1275: uint8(255), + 1276: uint8(253), + 1277: uint8(33), + 1278: uint8(16), + 1279: uint8(3), + 1304: uint8(255), + 1305: uint8(255), + 1306: uint8(255), + 1307: uint8(255), + 1308: uint8(255), + 1309: uint8(255), + 1310: uint8(255), + 1311: uint8(251), + 1313: uint8(248), + 1317: uint8(124), + 1324: uint8(223), + 1325: uint8(255), + 1338: uint8(255), + 1339: uint8(255), + 1340: uint8(255), + 1341: uint8(255), + 1342: uint8(1), + 1373: uint8(128), + 1374: uint8(3), + 1391: uint8(128), + 1404: uint8(255), + 1405: uint8(255), + 1406: uint8(255), + 1407: uint8(255), + 1413: uint8(60), + 1427: uint8(6), + 1453: uint8(128), + 1454: uint8(247), + 1455: uint8(63), + 1459: uint8(192), + 1470: uint8(3), + 1472: uint8(68), + 1473: uint8(8), + 1476: uint8(96), + 1496: uint8(48), + 1500: uint8(255), + 1501: uint8(255), + 1502: uint8(3), + 1503: uint8(128), + 1508: uint8(192), + 1509: uint8(63), + 1512: uint8(128), + 1513: uint8(255), + 1514: uint8(3), + 1520: uint8(7), + 1526: uint8(200), + 1527: uint8(51), + 1532: uint8(32), + 1541: uint8(126), + 1542: uint8(102), + 1544: uint8(8), + 1545: uint8(16), + 1551: uint8(16), + 1558: uint8(157), + 1559: uint8(193), + 1560: uint8(2), + 1565: uint8(48), + 1566: uint8(64), + 1596: uint8(32), + 1597: uint8(33), + 1622: uint8(255), + 1623: uint8(255), + 1624: uint8(255), + 1625: uint8(255), + 1626: uint8(255), + 1627: uint8(255), + 1628: uint8(255), + 1629: uint8(255), + 1630: uint8(255), + 1631: uint8(255), + 1635: uint8(64), + 1664: uint8(255), + 1665: uint8(255), + 1668: uint8(255), + 1669: uint8(255), + 1695: uint8(128), + 1727: uint8(14), + 1759: uint8(32), + 1788: uint8(1), + 1806: uint8(192), + 1807: uint8(7), + 1824: uint8(110), + 1825: uint8(240), + 1831: uint8(135), + 1852: uint8(96), + 1860: uint8(240), + 1896: uint8(192), + 1897: uint8(255), + 1898: uint8(1), + 1920: uint8(2), + 1927: uint8(255), + 1928: uint8(127), + 1935: uint8(128), + 1936: uint8(3), + 1942: uint8(120), + 1943: uint8(38), + 1945: uint8(32), + 1952: uint8(7), + 1956: uint8(128), + 1957: uint8(239), + 1958: uint8(31), + 1966: uint8(8), + 1968: uint8(3), + 1974: uint8(192), + 1975: uint8(127), + 1977: uint8(30), + 1989: uint8(128), + 1990: uint8(211), + 1991: uint8(64), + 2011: uint8(128), + 2012: uint8(248), + 2013: uint8(7), + 2016: uint8(3), + 2023: uint8(24), + 2024: uint8(1), + 2028: uint8(192), + 2029: uint8(31), + 2030: uint8(31), + 2055: uint8(255), + 2056: uint8(92), + 2059: uint8(64), + 2070: uint8(248), + 2071: uint8(133), + 2072: uint8(13), + 2102: uint8(60), + 2103: uint8(176), + 2104: uint8(1), + 2107: uint8(48), + 2118: uint8(248), + 2119: uint8(167), + 2120: uint8(1), + 2133: uint8(40), + 2134: uint8(191), + 2147: uint8(224), + 2148: uint8(188), + 2149: uint8(15), + 2181: uint8(128), + 2182: uint8(255), + 2183: uint8(6), + 2234: uint8(240), + 2235: uint8(12), + 2236: uint8(1), + 2240: uint8(254), + 2241: uint8(7), + 2246: uint8(248), + 2247: uint8(121), + 2248: uint8(128), + 2250: uint8(126), + 2251: uint8(14), + 2257: uint8(252), + 2258: uint8(127), + 2259: uint8(3), + 2278: uint8(127), + 2279: uint8(191), + 2290: uint8(252), + 2291: uint8(255), + 2292: uint8(255), + 2293: uint8(252), + 2294: uint8(109), + 2310: uint8(126), + 2311: uint8(180), + 2312: uint8(191), + 2322: uint8(163), + 2366: uint8(24), + 2374: uint8(255), + 2375: uint8(1), + 2430: uint8(31), + 2438: uint8(127), + 2473: uint8(128), + 2481: uint8(128), + 2482: uint8(7), + 2515: uint8(96), + 2516: uint8(15), + 2540: uint8(128), + 2541: uint8(3), + 2542: uint8(248), + 2543: uint8(255), + 2544: uint8(231), + 2545: uint8(15), + 2549: uint8(60), + 2568: uint8(28), + 2592: uint8(255), + 2593: uint8(255), + 2594: uint8(255), + 2595: uint8(255), + 2596: uint8(255), + 2597: uint8(255), + 2598: uint8(127), + 2599: uint8(248), + 2600: uint8(255), + 2601: uint8(255), + 2602: uint8(255), + 2603: uint8(255), + 2604: uint8(255), + 2605: uint8(31), + 2606: uint8(32), + 2608: uint8(16), + 2611: uint8(248), + 2612: uint8(254), + 2613: uint8(255), + 2624: uint8(127), + 2625: uint8(255), + 2626: uint8(255), + 2627: uint8(249), + 2628: uint8(219), + 2629: uint8(7), + 2662: uint8(127), + 2717: uint8(240), + 2746: uint8(127), + 2760: uint8(240), + 2761: uint8(7), +} + +var _wtable = [1600]uint8{ + 0: uint8(16), + 1: uint8(16), + 2: uint8(16), + 3: uint8(16), + 4: uint8(16), + 5: uint8(16), + 6: uint8(16), + 7: uint8(16), + 8: uint8(16), + 9: uint8(16), + 10: uint8(16), + 11: uint8(16), + 12: uint8(16), + 13: uint8(16), + 14: uint8(16), + 15: uint8(16), + 16: uint8(16), + 17: uint8(18), + 18: uint8(16), + 19: uint8(16), + 20: uint8(16), + 21: uint8(16), + 22: uint8(16), + 23: uint8(16), + 24: uint8(16), + 25: uint8(16), + 26: uint8(16), + 27: uint8(16), + 28: uint8(16), + 29: uint8(16), + 30: uint8(16), + 31: uint8(16), + 32: uint8(16), + 33: uint8(16), + 34: uint8(16), + 35: uint8(19), + 36: uint8(16), + 37: uint8(20), + 38: uint8(21), + 39: uint8(22), + 40: uint8(16), + 41: uint8(16), + 42: uint8(16), + 43: uint8(23), + 44: uint8(16), + 45: uint8(16), + 46: uint8(24), + 47: uint8(25), + 48: uint8(26), + 49: uint8(27), + 50: uint8(28), + 51: uint8(17), + 52: uint8(17), + 53: uint8(17), + 54: uint8(17), + 55: uint8(17), + 56: uint8(17), + 57: uint8(17), + 58: uint8(17), + 59: uint8(17), + 60: uint8(17), + 61: uint8(17), + 62: uint8(17), + 63: uint8(17), + 64: uint8(17), + 65: uint8(17), + 66: uint8(17), + 67: uint8(17), + 68: uint8(17), + 69: uint8(17), + 70: uint8(17), + 71: uint8(17), + 72: uint8(17), + 73: uint8(17), + 74: uint8(17), + 75: uint8(17), + 76: uint8(17), + 77: uint8(29), + 78: uint8(17), + 79: uint8(17), + 80: uint8(17), + 81: uint8(17), + 82: uint8(17), + 83: uint8(17), + 84: uint8(17), + 85: uint8(17), + 86: uint8(17), + 87: uint8(17), + 88: uint8(17), + 89: uint8(17), + 90: uint8(17), + 91: uint8(17), + 92: uint8(17), + 93: uint8(17), + 94: uint8(17), + 95: uint8(17), + 96: uint8(17), + 97: uint8(17), + 98: uint8(17), + 99: uint8(17), + 100: uint8(17), + 101: uint8(17), + 102: uint8(17), + 103: uint8(17), + 104: uint8(17), + 105: uint8(17), + 106: uint8(17), + 107: uint8(17), + 108: uint8(17), + 109: uint8(17), + 110: uint8(17), + 111: uint8(17), + 112: uint8(17), + 113: uint8(17), + 114: uint8(17), + 115: uint8(17), + 116: uint8(17), + 117: uint8(17), + 118: uint8(17), + 119: uint8(17), + 120: uint8(17), + 121: uint8(17), + 122: uint8(17), + 123: uint8(17), + 124: uint8(17), + 125: uint8(17), + 126: uint8(17), + 127: uint8(17), + 128: uint8(17), + 129: uint8(17), + 130: uint8(17), + 131: uint8(17), + 132: uint8(17), + 133: uint8(17), + 134: uint8(17), + 135: uint8(17), + 136: uint8(17), + 137: uint8(17), + 138: uint8(17), + 139: uint8(17), + 140: uint8(17), + 141: uint8(17), + 142: uint8(17), + 143: uint8(17), + 144: uint8(17), + 145: uint8(17), + 146: uint8(17), + 147: uint8(17), + 148: uint8(17), + 149: uint8(17), + 150: uint8(17), + 151: uint8(17), + 152: uint8(17), + 153: uint8(17), + 154: uint8(17), + 155: uint8(17), + 156: uint8(17), + 157: uint8(17), + 158: uint8(17), + 159: uint8(17), + 160: uint8(17), + 161: uint8(17), + 162: uint8(17), + 163: uint8(17), + 164: uint8(30), + 165: uint8(16), + 166: uint8(16), + 167: uint8(16), + 168: uint8(16), + 169: uint8(31), + 170: uint8(16), + 171: uint8(16), + 172: uint8(17), + 173: uint8(17), + 174: uint8(17), + 175: uint8(17), + 176: uint8(17), + 177: uint8(17), + 178: uint8(17), + 179: uint8(17), + 180: uint8(17), + 181: uint8(17), + 182: uint8(17), + 183: uint8(17), + 184: uint8(17), + 185: uint8(17), + 186: uint8(17), + 187: uint8(17), + 188: uint8(17), + 189: uint8(17), + 190: uint8(17), + 191: uint8(17), + 192: uint8(17), + 193: uint8(17), + 194: uint8(17), + 195: uint8(17), + 196: uint8(17), + 197: uint8(17), + 198: uint8(17), + 199: uint8(17), + 200: uint8(17), + 201: uint8(17), + 202: uint8(17), + 203: uint8(17), + 204: uint8(17), + 205: uint8(17), + 206: uint8(17), + 207: uint8(17), + 208: uint8(17), + 209: uint8(17), + 210: uint8(17), + 211: uint8(17), + 212: uint8(17), + 213: uint8(17), + 214: uint8(17), + 215: uint8(32), + 216: uint8(16), + 217: uint8(16), + 218: uint8(16), + 219: uint8(16), + 220: uint8(16), + 221: uint8(16), + 222: uint8(16), + 223: uint8(16), + 224: uint8(16), + 225: uint8(16), + 226: uint8(16), + 227: uint8(16), + 228: uint8(16), + 229: uint8(16), + 230: uint8(16), + 231: uint8(16), + 232: uint8(16), + 233: uint8(16), + 234: uint8(16), + 235: uint8(16), + 236: uint8(16), + 237: uint8(16), + 238: uint8(16), + 239: uint8(16), + 240: uint8(16), + 241: uint8(16), + 242: uint8(16), + 243: uint8(16), + 244: uint8(16), + 245: uint8(16), + 246: uint8(16), + 247: uint8(16), + 248: uint8(16), + 249: uint8(17), + 250: uint8(17), + 251: uint8(16), + 252: uint8(16), + 253: uint8(16), + 254: uint8(33), + 255: uint8(34), + 256: uint8(16), + 257: uint8(16), + 258: uint8(16), + 259: uint8(16), + 260: uint8(16), + 261: uint8(16), + 262: uint8(16), + 263: uint8(16), + 264: uint8(16), + 265: uint8(16), + 266: uint8(16), + 267: uint8(16), + 268: uint8(16), + 269: uint8(16), + 270: uint8(16), + 271: uint8(16), + 272: uint8(16), + 273: uint8(16), + 274: uint8(16), + 275: uint8(16), + 276: uint8(16), + 277: uint8(16), + 278: uint8(16), + 279: uint8(16), + 280: uint8(16), + 281: uint8(16), + 282: uint8(16), + 283: uint8(16), + 284: uint8(16), + 285: uint8(16), + 286: uint8(16), + 287: uint8(16), + 288: uint8(16), + 289: uint8(16), + 290: uint8(16), + 291: uint8(16), + 292: uint8(16), + 293: uint8(16), + 294: uint8(16), + 295: uint8(16), + 296: uint8(16), + 297: uint8(16), + 298: uint8(16), + 299: uint8(16), + 300: uint8(16), + 301: uint8(16), + 302: uint8(16), + 303: uint8(16), + 304: uint8(16), + 305: uint8(16), + 306: uint8(16), + 307: uint8(16), + 308: uint8(16), + 309: uint8(16), + 310: uint8(16), + 311: uint8(16), + 312: uint8(16), + 313: uint8(16), + 314: uint8(16), + 315: uint8(16), + 316: uint8(16), + 317: uint8(16), + 318: uint8(16), + 319: uint8(16), + 320: uint8(16), + 321: uint8(16), + 322: uint8(16), + 323: uint8(16), + 324: uint8(16), + 325: uint8(16), + 326: uint8(16), + 327: uint8(16), + 328: uint8(16), + 329: uint8(16), + 330: uint8(16), + 331: uint8(16), + 332: uint8(16), + 333: uint8(16), + 334: uint8(16), + 335: uint8(16), + 336: uint8(16), + 337: uint8(16), + 338: uint8(16), + 339: uint8(16), + 340: uint8(16), + 341: uint8(16), + 342: uint8(16), + 343: uint8(16), + 344: uint8(16), + 345: uint8(16), + 346: uint8(16), + 347: uint8(16), + 348: uint8(16), + 349: uint8(16), + 350: uint8(16), + 351: uint8(16), + 352: uint8(16), + 353: uint8(16), + 354: uint8(16), + 355: uint8(16), + 356: uint8(16), + 357: uint8(16), + 358: uint8(16), + 359: uint8(16), + 360: uint8(16), + 361: uint8(16), + 362: uint8(16), + 363: uint8(16), + 364: uint8(16), + 365: uint8(16), + 366: uint8(16), + 367: uint8(35), + 368: uint8(17), + 369: uint8(17), + 370: uint8(17), + 371: uint8(17), + 372: uint8(17), + 373: uint8(17), + 374: uint8(17), + 375: uint8(17), + 376: uint8(17), + 377: uint8(17), + 378: uint8(17), + 379: uint8(17), + 380: uint8(17), + 381: uint8(17), + 382: uint8(17), + 383: uint8(17), + 384: uint8(17), + 385: uint8(17), + 386: uint8(17), + 387: uint8(17), + 388: uint8(17), + 389: uint8(17), + 390: uint8(17), + 391: uint8(36), + 392: uint8(17), + 393: uint8(17), + 394: uint8(37), + 395: uint8(16), + 396: uint8(16), + 397: uint8(16), + 398: uint8(16), + 399: uint8(16), + 400: uint8(16), + 401: uint8(16), + 402: uint8(16), + 403: uint8(16), + 404: uint8(16), + 405: uint8(16), + 406: uint8(16), + 407: uint8(16), + 408: uint8(16), + 409: uint8(16), + 410: uint8(16), + 411: uint8(16), + 412: uint8(16), + 413: uint8(16), + 414: uint8(16), + 415: uint8(16), + 416: uint8(16), + 417: uint8(16), + 418: uint8(16), + 419: uint8(16), + 420: uint8(16), + 421: uint8(16), + 422: uint8(16), + 423: uint8(16), + 424: uint8(16), + 425: uint8(16), + 426: uint8(16), + 427: uint8(16), + 428: uint8(16), + 429: uint8(16), + 430: uint8(16), + 431: uint8(16), + 432: uint8(17), + 433: uint8(38), + 434: uint8(39), + 435: uint8(16), + 436: uint8(16), + 437: uint8(16), + 438: uint8(16), + 439: uint8(16), + 440: uint8(16), + 441: uint8(16), + 442: uint8(16), + 443: uint8(16), + 444: uint8(16), + 445: uint8(16), + 446: uint8(16), + 447: uint8(16), + 448: uint8(16), + 449: uint8(16), + 450: uint8(16), + 451: uint8(16), + 452: uint8(16), + 453: uint8(16), + 454: uint8(16), + 455: uint8(16), + 456: uint8(16), + 457: uint8(16), + 458: uint8(16), + 459: uint8(16), + 460: uint8(16), + 461: uint8(16), + 462: uint8(16), + 463: uint8(16), + 464: uint8(16), + 465: uint8(16), + 466: uint8(16), + 467: uint8(16), + 468: uint8(16), + 469: uint8(16), + 470: uint8(16), + 471: uint8(16), + 472: uint8(16), + 473: uint8(16), + 474: uint8(16), + 475: uint8(16), + 476: uint8(16), + 477: uint8(16), + 478: uint8(16), + 479: uint8(16), + 480: uint8(16), + 481: uint8(16), + 482: uint8(16), + 483: uint8(16), + 484: uint8(16), + 485: uint8(16), + 486: uint8(16), + 487: uint8(16), + 488: uint8(16), + 489: uint8(16), + 490: uint8(16), + 491: uint8(16), + 492: uint8(16), + 493: uint8(16), + 494: uint8(16), + 495: uint8(16), + 496: uint8(40), + 497: uint8(41), + 498: uint8(42), + 499: uint8(43), + 500: uint8(44), + 501: uint8(45), + 502: uint8(46), + 503: uint8(47), + 504: uint8(16), + 505: uint8(48), + 506: uint8(49), + 507: uint8(16), + 508: uint8(16), + 509: uint8(16), + 510: uint8(16), + 511: uint8(16), + 544: uint8(255), + 545: uint8(255), + 546: uint8(255), + 547: uint8(255), + 548: uint8(255), + 549: uint8(255), + 550: uint8(255), + 551: uint8(255), + 552: uint8(255), + 553: uint8(255), + 554: uint8(255), + 555: uint8(255), + 556: uint8(255), + 557: uint8(255), + 558: uint8(255), + 559: uint8(255), + 560: uint8(255), + 561: uint8(255), + 562: uint8(255), + 563: uint8(255), + 564: uint8(255), + 565: uint8(255), + 566: uint8(255), + 567: uint8(255), + 568: uint8(255), + 569: uint8(255), + 570: uint8(255), + 571: uint8(255), + 572: uint8(255), + 573: uint8(255), + 574: uint8(255), + 575: uint8(255), + 576: uint8(255), + 577: uint8(255), + 578: uint8(255), + 579: uint8(255), + 580: uint8(255), + 581: uint8(255), + 582: uint8(255), + 583: uint8(255), + 584: uint8(255), + 585: uint8(255), + 586: uint8(255), + 587: uint8(255), + 611: uint8(12), + 613: uint8(6), + 637: uint8(30), + 638: uint8(9), + 671: uint8(96), + 674: uint8(48), + 681: uint8(255), + 682: uint8(15), + 687: uint8(128), + 690: uint8(8), + 692: uint8(2), + 693: uint8(12), + 695: uint8(96), + 696: uint8(48), + 697: uint8(64), + 698: uint8(16), + 701: uint8(4), + 702: uint8(44), + 703: uint8(36), + 704: uint8(32), + 705: uint8(12), + 709: uint8(1), + 713: uint8(80), + 714: uint8(184), + 722: uint8(224), + 726: uint8(1), + 727: uint8(128), + 739: uint8(24), + 746: uint8(33), + 784: uint8(255), + 785: uint8(255), + 786: uint8(255), + 787: uint8(251), + 788: uint8(255), + 789: uint8(255), + 790: uint8(255), + 791: uint8(255), + 792: uint8(255), + 793: uint8(255), + 794: uint8(255), + 795: uint8(255), + 796: uint8(255), + 797: uint8(255), + 798: uint8(15), + 800: uint8(255), + 801: uint8(255), + 802: uint8(255), + 803: uint8(255), + 804: uint8(255), + 805: uint8(255), + 806: uint8(255), + 807: uint8(255), + 808: uint8(255), + 809: uint8(255), + 810: uint8(255), + 811: uint8(255), + 812: uint8(255), + 813: uint8(255), + 814: uint8(255), + 815: uint8(255), + 816: uint8(255), + 817: uint8(255), + 818: uint8(255), + 819: uint8(255), + 820: uint8(255), + 821: uint8(255), + 822: uint8(255), + 823: uint8(255), + 824: uint8(255), + 825: uint8(255), + 826: uint8(63), + 830: uint8(255), + 831: uint8(15), + 832: uint8(255), + 833: uint8(255), + 834: uint8(255), + 835: uint8(255), + 836: uint8(255), + 837: uint8(255), + 838: uint8(255), + 839: uint8(127), + 840: uint8(254), + 841: uint8(255), + 842: uint8(255), + 843: uint8(255), + 844: uint8(255), + 845: uint8(255), + 846: uint8(255), + 847: uint8(255), + 848: uint8(255), + 849: uint8(255), + 850: uint8(127), + 851: uint8(254), + 852: uint8(255), + 853: uint8(255), + 854: uint8(255), + 855: uint8(255), + 856: uint8(255), + 857: uint8(255), + 858: uint8(255), + 859: uint8(255), + 860: uint8(255), + 861: uint8(255), + 862: uint8(255), + 863: uint8(255), + 864: uint8(224), + 865: uint8(255), + 866: uint8(255), + 867: uint8(255), + 868: uint8(255), + 869: uint8(255), + 870: uint8(254), + 871: uint8(255), + 872: uint8(255), + 873: uint8(255), + 874: uint8(255), + 875: uint8(255), + 876: uint8(255), + 877: uint8(255), + 878: uint8(255), + 879: uint8(255), + 880: uint8(255), + 881: uint8(127), + 882: uint8(255), + 883: uint8(255), + 884: uint8(255), + 885: uint8(255), + 886: uint8(255), + 887: uint8(7), + 888: uint8(255), + 889: uint8(255), + 890: uint8(255), + 891: uint8(255), + 892: uint8(15), + 894: uint8(255), + 895: uint8(255), + 896: uint8(255), + 897: uint8(255), + 898: uint8(255), + 899: uint8(127), + 900: uint8(255), + 901: uint8(255), + 902: uint8(255), + 903: uint8(255), + 904: uint8(255), + 906: uint8(255), + 907: uint8(255), + 908: uint8(255), + 909: uint8(255), + 910: uint8(255), + 911: uint8(255), + 912: uint8(255), + 913: uint8(255), + 914: uint8(255), + 915: uint8(255), + 916: uint8(255), + 917: uint8(255), + 918: uint8(255), + 919: uint8(255), + 920: uint8(255), + 921: uint8(255), + 922: uint8(255), + 923: uint8(255), + 924: uint8(255), + 925: uint8(255), + 926: uint8(255), + 927: uint8(255), + 928: uint8(255), + 929: uint8(255), + 930: uint8(255), + 931: uint8(255), + 932: uint8(255), + 933: uint8(255), + 934: uint8(255), + 935: uint8(255), + 936: uint8(255), + 937: uint8(255), + 938: uint8(255), + 939: uint8(255), + 940: uint8(255), + 941: uint8(255), + 942: uint8(255), + 943: uint8(255), + 944: uint8(255), + 945: uint8(255), + 946: uint8(255), + 947: uint8(255), + 948: uint8(255), + 949: uint8(255), + 950: uint8(255), + 951: uint8(255), + 960: uint8(255), + 961: uint8(255), + 962: uint8(255), + 963: uint8(255), + 964: uint8(255), + 965: uint8(255), + 966: uint8(255), + 967: uint8(255), + 968: uint8(255), + 969: uint8(255), + 970: uint8(255), + 971: uint8(255), + 972: uint8(255), + 973: uint8(255), + 974: uint8(255), + 975: uint8(255), + 976: uint8(255), + 977: uint8(31), + 978: uint8(255), + 979: uint8(255), + 980: uint8(255), + 981: uint8(255), + 982: uint8(255), + 983: uint8(255), + 984: uint8(127), + 1004: uint8(255), + 1005: uint8(255), + 1006: uint8(255), + 1007: uint8(31), + 1024: uint8(255), + 1025: uint8(255), + 1026: uint8(255), + 1027: uint8(255), + 1028: uint8(255), + 1029: uint8(255), + 1030: uint8(255), + 1031: uint8(255), + 1032: uint8(255), + 1033: uint8(255), + 1034: uint8(255), + 1035: uint8(255), + 1036: uint8(255), + 1037: uint8(255), + 1038: uint8(255), + 1039: uint8(255), + 1040: uint8(255), + 1041: uint8(255), + 1042: uint8(255), + 1043: uint8(255), + 1044: uint8(15), + 1058: uint8(255), + 1059: uint8(3), + 1062: uint8(255), + 1063: uint8(255), + 1064: uint8(255), + 1065: uint8(255), + 1066: uint8(247), + 1067: uint8(255), + 1068: uint8(127), + 1069: uint8(15), + 1088: uint8(254), + 1089: uint8(255), + 1090: uint8(255), + 1091: uint8(255), + 1092: uint8(255), + 1093: uint8(255), + 1094: uint8(255), + 1095: uint8(255), + 1096: uint8(255), + 1097: uint8(255), + 1098: uint8(255), + 1099: uint8(255), + 1100: uint8(1), + 1116: uint8(127), + 1148: uint8(15), + 1152: uint8(255), + 1153: uint8(255), + 1154: uint8(255), + 1155: uint8(255), + 1156: uint8(255), + 1157: uint8(255), + 1158: uint8(255), + 1159: uint8(255), + 1160: uint8(255), + 1161: uint8(255), + 1162: uint8(255), + 1163: uint8(255), + 1164: uint8(255), + 1165: uint8(255), + 1166: uint8(255), + 1167: uint8(255), + 1168: uint8(255), + 1169: uint8(255), + 1170: uint8(255), + 1171: uint8(255), + 1172: uint8(255), + 1173: uint8(255), + 1174: uint8(255), + 1175: uint8(255), + 1176: uint8(255), + 1177: uint8(255), + 1178: uint8(255), + 1179: uint8(255), + 1180: uint8(255), + 1181: uint8(255), + 1182: uint8(255), + 1184: uint8(255), + 1185: uint8(255), + 1186: uint8(255), + 1187: uint8(255), + 1188: uint8(255), + 1189: uint8(255), + 1190: uint8(255), + 1191: uint8(255), + 1192: uint8(255), + 1193: uint8(255), + 1194: uint8(255), + 1195: uint8(255), + 1196: uint8(255), + 1197: uint8(255), + 1198: uint8(255), + 1199: uint8(255), + 1200: uint8(255), + 1201: uint8(255), + 1202: uint8(255), + 1203: uint8(255), + 1204: uint8(255), + 1205: uint8(255), + 1206: uint8(255), + 1207: uint8(255), + 1208: uint8(255), + 1209: uint8(255), + 1210: uint8(255), + 1211: uint8(255), + 1212: uint8(255), + 1213: uint8(255), + 1214: uint8(7), + 1216: uint8(255), + 1217: uint8(255), + 1218: uint8(255), + 1219: uint8(127), + 1226: uint8(7), + 1228: uint8(240), + 1230: uint8(255), + 1231: uint8(255), + 1232: uint8(255), + 1233: uint8(255), + 1234: uint8(255), + 1235: uint8(255), + 1236: uint8(255), + 1237: uint8(255), + 1238: uint8(255), + 1239: uint8(255), + 1240: uint8(255), + 1241: uint8(255), + 1242: uint8(255), + 1243: uint8(255), + 1244: uint8(255), + 1245: uint8(255), + 1246: uint8(255), + 1247: uint8(255), + 1248: uint8(255), + 1249: uint8(255), + 1250: uint8(255), + 1251: uint8(255), + 1252: uint8(255), + 1253: uint8(255), + 1254: uint8(255), + 1255: uint8(255), + 1256: uint8(255), + 1257: uint8(255), + 1258: uint8(255), + 1259: uint8(255), + 1260: uint8(255), + 1261: uint8(255), + 1262: uint8(255), + 1263: uint8(255), + 1264: uint8(255), + 1265: uint8(255), + 1266: uint8(255), + 1267: uint8(255), + 1268: uint8(255), + 1269: uint8(255), + 1270: uint8(255), + 1271: uint8(255), + 1272: uint8(255), + 1273: uint8(255), + 1274: uint8(255), + 1275: uint8(255), + 1276: uint8(255), + 1277: uint8(255), + 1278: uint8(255), + 1279: uint8(15), + 1280: uint8(16), + 1305: uint8(128), + 1329: uint8(64), + 1330: uint8(254), + 1331: uint8(7), + 1344: uint8(7), + 1346: uint8(255), + 1347: uint8(255), + 1348: uint8(255), + 1349: uint8(255), + 1350: uint8(255), + 1351: uint8(15), + 1352: uint8(255), + 1353: uint8(1), + 1354: uint8(3), + 1356: uint8(63), + 1376: uint8(255), + 1377: uint8(255), + 1378: uint8(255), + 1379: uint8(255), + 1380: uint8(1), + 1381: uint8(224), + 1382: uint8(191), + 1383: uint8(255), + 1384: uint8(255), + 1385: uint8(255), + 1386: uint8(255), + 1387: uint8(255), + 1388: uint8(255), + 1389: uint8(255), + 1390: uint8(255), + 1391: uint8(223), + 1392: uint8(255), + 1393: uint8(255), + 1394: uint8(15), + 1396: uint8(255), + 1397: uint8(255), + 1398: uint8(255), + 1399: uint8(255), + 1400: uint8(255), + 1401: uint8(135), + 1402: uint8(15), + 1404: uint8(255), + 1405: uint8(255), + 1406: uint8(17), + 1407: uint8(255), + 1408: uint8(255), + 1409: uint8(255), + 1410: uint8(255), + 1411: uint8(255), + 1412: uint8(255), + 1413: uint8(255), + 1414: uint8(255), + 1415: uint8(127), + 1416: uint8(253), + 1417: uint8(255), + 1418: uint8(255), + 1419: uint8(255), + 1420: uint8(255), + 1421: uint8(255), + 1422: uint8(255), + 1423: uint8(255), + 1424: uint8(255), + 1425: uint8(255), + 1426: uint8(255), + 1427: uint8(255), + 1428: uint8(255), + 1429: uint8(255), + 1430: uint8(255), + 1431: uint8(255), + 1432: uint8(255), + 1433: uint8(255), + 1434: uint8(255), + 1435: uint8(255), + 1436: uint8(255), + 1437: uint8(255), + 1438: uint8(255), + 1439: uint8(159), + 1440: uint8(255), + 1441: uint8(255), + 1442: uint8(255), + 1443: uint8(255), + 1444: uint8(255), + 1445: uint8(255), + 1446: uint8(255), + 1447: uint8(63), + 1449: uint8(120), + 1450: uint8(255), + 1451: uint8(255), + 1452: uint8(255), + 1455: uint8(4), + 1458: uint8(96), + 1460: uint8(16), + 1471: uint8(248), + 1472: uint8(255), + 1473: uint8(255), + 1474: uint8(255), + 1475: uint8(255), + 1476: uint8(255), + 1477: uint8(255), + 1478: uint8(255), + 1479: uint8(255), + 1480: uint8(255), + 1481: uint8(255), + 1488: uint8(255), + 1489: uint8(255), + 1490: uint8(255), + 1491: uint8(255), + 1492: uint8(255), + 1493: uint8(255), + 1494: uint8(255), + 1495: uint8(255), + 1496: uint8(63), + 1497: uint8(16), + 1498: uint8(39), + 1501: uint8(24), + 1502: uint8(240), + 1503: uint8(7), + 1532: uint8(255), + 1533: uint8(15), + 1537: uint8(224), + 1538: uint8(255), + 1539: uint8(255), + 1540: uint8(255), + 1541: uint8(255), + 1542: uint8(255), + 1543: uint8(255), + 1544: uint8(255), + 1545: uint8(255), + 1546: uint8(255), + 1547: uint8(255), + 1548: uint8(255), + 1549: uint8(255), + 1550: uint8(123), + 1551: uint8(252), + 1552: uint8(255), + 1553: uint8(255), + 1554: uint8(255), + 1555: uint8(255), + 1556: uint8(231), + 1557: uint8(199), + 1558: uint8(255), + 1559: uint8(255), + 1560: uint8(255), + 1561: uint8(231), + 1562: uint8(255), + 1563: uint8(255), + 1564: uint8(255), + 1565: uint8(255), + 1566: uint8(255), + 1567: uint8(255), + 1582: uint8(15), + 1583: uint8(7), + 1584: uint8(7), + 1586: uint8(63), +} + +func Xwcwidth(tls *TLS, wc Twchar_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1, v2 int32 + _, _ = v1, v2 + if Uint32FromInt32(wc) < uint32(0xff) { + if (wc+int32(1))&int32(0x7f) >= int32(0x21) { + v1 = int32(1) + } else { + if wc != 0 { + v2 = -int32(1) + } else { + v2 = 0 + } + v1 = v2 + } + return v1 + } + if Uint32FromInt32(wc)&uint32(0xfffeffff) < uint32(0xfffe) { + if Int32FromUint8(_table5[int32(Int32FromUint8(_table5[wc>>int32(8)])*int32(32))+wc&int32(255)>>int32(3)])>>(wc&int32(7))&int32(1) != 0 { + return 0 + } + if Int32FromUint8(_wtable[int32(Int32FromUint8(_wtable[wc>>int32(8)])*int32(32))+wc&int32(255)>>int32(3)])>>(wc&int32(7))&int32(1) != 0 { + return int32(2) + } + return int32(1) + } + if wc&int32(0xfffe) == int32(0xfffe) { + return -int32(1) + } + if Uint32FromInt32(wc)-uint32(0x20000) < uint32(0x20000) { + return int32(2) + } + if wc == int32(0xe0001) || Uint32FromInt32(wc)-uint32(0xe0020) < uint32(0x5f) || Uint32FromInt32(wc)-uint32(0xe0100) < uint32(0xef) { + return 0 + } + return int32(1) +} + +const d_fileno = 0 + +type Tino_t = uint64 + +type Tdirent = struct { + Fd_ino Tino_t + Fd_off Toff_t + Fd_reclen uint16 + Fd_type uint8 + Fd_name [256]int8 +} + +func Xalphasort(tls *TLS, a uintptr, b uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v a=%v b=%v, (%v:)", tls, a, b, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrcoll(tls, **(**uintptr)(__ccgo_up(a))+19, **(**uintptr)(__ccgo_up(b))+19) +} + +type TDIR = struct { + Ftell Toff_t + Ffd int32 + Fbuf_pos int32 + Fbuf_end int32 + Flock [1]int32 + Fbuf [2048]int8 +} + +type t__dirstream = TDIR + +func Xclosedir(tls *TLS, dir uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v dir=%v, (%v:)", tls, dir, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret int32 + _ = ret + ret = Xclose(tls, (*TDIR)(unsafe.Pointer(dir)).Ffd) + Xfree(tls, dir) + return ret +} + +func Xdirfd(tls *TLS, d uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v d=%v, (%v:)", tls, d, origin(2)) + defer func() { trc("-> %v", r) }() + } + return (*TDIR)(unsafe.Pointer(d)).Ffd +} + +const AT_EACCESS = 512 +const AT_FDCWD = -100 +const AT_REMOVEDIR = 512 +const AT_SYMLINK_FOLLOW = 1024 +const AT_SYMLINK_NOFOLLOW = 256 +const FD_CLOEXEC = 1 +const F_DUPFD = 0 +const F_DUPFD_CLOEXEC = 1030 +const F_GETFD = 1 +const F_GETFL = 3 +const F_GETLK = 12 +const F_GETOWN = 9 +const F_GETOWNER_UIDS = 17 +const F_GETOWN_EX = 16 +const F_GETSIG = 11 +const F_OFD_GETLK = 36 +const F_OFD_SETLK = 37 +const F_OFD_SETLKW = 38 +const F_RDLCK = 0 +const F_SETFD = 2 +const F_SETFL = 4 +const F_SETLK = 13 +const F_SETLKW = 14 +const F_SETOWN = 8 +const F_SETOWN_EX = 15 +const F_SETSIG = 10 +const F_UNLCK = 2 +const F_WRLCK = 1 +const O_ACCMODE = 2097155 +const O_APPEND = 1024 +const O_ASYNC = 8192 +const O_CLOEXEC = 524288 +const O_CREAT = 64 +const O_DIRECT = 16384 +const O_DIRECTORY = 65536 +const O_DSYNC = 4096 +const O_EXCL = 128 +const O_EXEC = 2097152 +const O_LARGEFILE = 32768 +const O_NDELAY = 2048 +const O_NOATIME = 262144 +const O_NOCTTY = 256 +const O_NOFOLLOW = 131072 +const O_NONBLOCK = 2048 +const O_PATH = 2097152 +const O_RDONLY = 0 +const O_RDWR = 2 +const O_RSYNC = 1052672 +const O_SEARCH = 2097152 +const O_SYNC = 1052672 +const O_TMPFILE = 4259840 +const O_TRUNC = 512 +const O_TTY_INIT = 0 +const O_WRONLY = 1 +const POSIX_FADV_DONTNEED = 4 +const POSIX_FADV_NOREUSE = 5 +const POSIX_FADV_NORMAL = 0 +const POSIX_FADV_RANDOM = 1 +const POSIX_FADV_SEQUENTIAL = 2 +const POSIX_FADV_WILLNEED = 3 +const S_IFBLK = 24576 +const S_IFCHR = 8192 +const S_IFDIR = 16384 +const S_IFIFO = 4096 +const S_IFLNK = 40960 +const S_IFMT = 61440 +const S_IFREG = 32768 +const S_IFSOCK = 49152 +const S_IRGRP = 32 +const S_IROTH = 4 +const S_IRUSR = 256 +const S_IRWXG = 56 +const S_IRWXO = 7 +const S_IRWXU = 448 +const S_ISGID = 1024 +const S_ISUID = 2048 +const S_ISVTX = 512 +const S_IWGRP = 16 +const S_IWOTH = 2 +const S_IWUSR = 128 +const S_IXGRP = 8 +const S_IXOTH = 1 +const S_IXUSR = 64 +const UTIME_NOW = 1073741823 +const UTIME_OMIT = 1073741822 + +type Tflock = struct { + Fl_type int16 + Fl_whence int16 + Fl_start Toff_t + Fl_len Toff_t + Fl_pid Tpid_t +} + +type Tnlink_t = uint32 + +type Tdev_t = uint64 + +type Tblksize_t = int32 + +type Tblkcnt_t = int64 + +type Tstat = struct { + Fst_dev Tdev_t + F__st_dev_padding int32 + F__st_ino_truncated int32 + Fst_mode Tmode_t + Fst_nlink Tnlink_t + Fst_uid Tuid_t + Fst_gid Tgid_t + Fst_rdev Tdev_t + F__st_rdev_padding int32 + Fst_size Toff_t + Fst_blksize Tblksize_t + Fst_blocks Tblkcnt_t + F__st_atim32 struct { + Ftv_sec int32 + Ftv_nsec int32 + } + F__st_mtim32 struct { + Ftv_sec int32 + Ftv_nsec int32 + } + F__st_ctim32 struct { + Ftv_sec int32 + Ftv_nsec int32 + } + Fst_ino Tino_t + Fst_atim Ttimespec + Fst_mtim Ttimespec + Fst_ctim Ttimespec +} + +func Xfdopendir(tls *TLS, fd int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(160) + defer tls.Free(160) + var dir, v1 uintptr + var _ /* st at bp+0 */ Tstat + _, _ = dir, v1 + if Xfstat(tls, fd, bp) < 0 { + return uintptr(0) + } + if Xfcntl(tls, fd, int32(F_GETFL), 0)&int32(O_PATH) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EBADF) + return uintptr(0) + } + if !((**(**Tstat)(__ccgo_up(bp))).Fst_mode&Uint32FromInt32(S_IFMT) == Uint32FromInt32(S_IFDIR)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOTDIR) + return uintptr(0) + } + v1 = Xcalloc(tls, uint32(1), uint32(2072)) + dir = v1 + if !(v1 != 0) { + return uintptr(0) + } + Xfcntl(tls, fd, int32(F_SETFD), VaList(bp+152, int32(FD_CLOEXEC))) + (*TDIR)(unsafe.Pointer(dir)).Ffd = fd + return dir +} + +const AT_EMPTY_PATH = 4096 +const AT_NO_AUTOMOUNT = 2048 +const AT_RECURSIVE = 32768 +const AT_STATX_DONT_SYNC = 16384 +const AT_STATX_FORCE_SYNC = 8192 +const AT_STATX_SYNC_AS_STAT = 0 +const AT_STATX_SYNC_TYPE = 24576 +const DN_ACCESS = 1 +const DN_ATTRIB = 32 +const DN_CREATE = 4 +const DN_DELETE = 8 +const DN_MODIFY = 2 +const DN_MULTISHOT = 2147483648 +const DN_RENAME = 16 +const DT_BLK = 6 +const DT_CHR = 2 +const DT_DIR = 4 +const DT_FIFO = 1 +const DT_LNK = 10 +const DT_REG = 8 +const DT_SOCK = 12 +const DT_UNKNOWN = 0 +const DT_WHT = 14 +const FALLOC_FL_KEEP_SIZE = 1 +const FALLOC_FL_PUNCH_HOLE = 2 +const FAPPEND = 1024 +const FASYNC = 8192 +const FFSYNC = 1052672 +const FNDELAY = 2048 +const FNONBLOCK = 2048 +const F_ADD_SEALS = 1033 +const F_CANCELLK = 1029 +const F_GETLEASE = 1025 +const F_GETPIPE_SZ = 1032 +const F_GET_FILE_RW_HINT = 1037 +const F_GET_RW_HINT = 1035 +const F_GET_SEALS = 1034 +const F_NOTIFY = 1026 +const F_OWNER_GID = 2 +const F_OWNER_PGRP = 2 +const F_OWNER_PID = 1 +const F_OWNER_TID = 0 +const F_SEAL_FUTURE_WRITE = 16 +const F_SEAL_GROW = 4 +const F_SEAL_SEAL = 1 +const F_SEAL_SHRINK = 2 +const F_SEAL_WRITE = 8 +const F_SETLEASE = 1024 +const F_SETPIPE_SZ = 1031 +const F_SET_FILE_RW_HINT = 1038 +const F_SET_RW_HINT = 1036 +const MAX_HANDLE_SZ = 128 +const RWF_WRITE_LIFE_NOT_SET = 0 +const RWH_WRITE_LIFE_EXTREME = 5 +const RWH_WRITE_LIFE_LONG = 4 +const RWH_WRITE_LIFE_MEDIUM = 3 +const RWH_WRITE_LIFE_NONE = 1 +const RWH_WRITE_LIFE_SHORT = 2 +const SPLICE_F_GIFT = 8 +const SPLICE_F_MORE = 4 +const SPLICE_F_MOVE = 1 +const SPLICE_F_NONBLOCK = 2 +const SYNC_FILE_RANGE_WAIT_AFTER = 4 +const SYNC_FILE_RANGE_WAIT_BEFORE = 1 +const SYNC_FILE_RANGE_WRITE = 2 +const alloca = 0 +const loff_t = 0 + +type Tiovec = struct { + Fiov_base uintptr + Fiov_len Tsize_t +} + +type Tfile_handle = struct { + Fhandle_bytes uint32 + Fhandle_type int32 +} + +type Tf_owner_ex = struct { + Ftype1 int32 + Fpid Tpid_t +} + +func Xopendir(tls *TLS, name uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + var dir, v2 uintptr + var fd, v1 int32 + _, _, _, _ = dir, fd, v1, v2 + v1 = Xopen(tls, name, Int32FromInt32(O_RDONLY)|Int32FromInt32(O_DIRECTORY)|Int32FromInt32(O_CLOEXEC), 0) + fd = v1 + if v1 < 0 { + return uintptr(0) + } + v2 = Xcalloc(tls, uint32(1), uint32(2072)) + dir = v2 + if !(v2 != 0) { + X__syscall1(tls, int32(SYS_close), fd) + return uintptr(0) + } + (*TDIR)(unsafe.Pointer(dir)).Ffd = fd + return dir +} + +type Tptrdiff_t = int32 + +type Tdirstream_buf_alignment_check = [1]int8 + +func Xreaddir(tls *TLS, dir uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v dir=%v, (%v:)", tls, dir, origin(2)) + defer func() { trc("-> %v", r) }() + } + var de uintptr + var len1 int32 + _, _ = de, len1 + if (*TDIR)(unsafe.Pointer(dir)).Fbuf_pos >= (*TDIR)(unsafe.Pointer(dir)).Fbuf_end { + len1 = int32(X__syscall3(tls, int32(SYS_getdents64), (*TDIR)(unsafe.Pointer(dir)).Ffd, int32(dir+24), Int32FromUint32(Uint32FromInt64(2048)))) + if len1 <= 0 { + if len1 < 0 && len1 != -int32(ENOENT) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = -len1 + } + return uintptr(0) + } + (*TDIR)(unsafe.Pointer(dir)).Fbuf_end = len1 + (*TDIR)(unsafe.Pointer(dir)).Fbuf_pos = 0 + } + de = dir + 24 + uintptr((*TDIR)(unsafe.Pointer(dir)).Fbuf_pos) + **(**int32)(__ccgo_up(dir + 12)) += Int32FromUint16((*Tdirent)(unsafe.Pointer(de)).Fd_reclen) + (*TDIR)(unsafe.Pointer(dir)).Ftell = (*Tdirent)(unsafe.Pointer(de)).Fd_off + return de +} + +func Xreaddir_r(tls *TLS, dir uintptr, buf uintptr, result uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v dir=%v buf=%v result=%v, (%v:)", tls, dir, buf, result, origin(2)) + defer func() { trc("-> %v", r) }() + } + var de uintptr + var errno_save, ret, v1 int32 + _, _, _, _ = de, errno_save, ret, v1 + errno_save = **(**int32)(__ccgo_up(X__errno_location(tls))) + ___lock(tls, dir+20) + **(**int32)(__ccgo_up(X__errno_location(tls))) = 0 + de = Xreaddir(tls, dir) + v1 = **(**int32)(__ccgo_up(X__errno_location(tls))) + ret = v1 + if v1 != 0 { + ___unlock(tls, dir+20) + return ret + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = errno_save + if de != 0 { + Xmemcpy(tls, buf, de, uint32((*Tdirent)(unsafe.Pointer(de)).Fd_reclen)) + } else { + buf = UintptrFromInt32(0) + } + ___unlock(tls, dir+20) + **(**uintptr)(__ccgo_up(result)) = buf + return 0 +} + +func Xrewinddir(tls *TLS, dir uintptr) { + if __ccgo_strace { + trc("tls=%v dir=%v, (%v:)", tls, dir, origin(2)) + } + var v1 int32 + _ = v1 + ___lock(tls, dir+20) + Xlseek(tls, (*TDIR)(unsafe.Pointer(dir)).Ffd, 0, SEEK_SET) + v1 = Int32FromInt32(0) + (*TDIR)(unsafe.Pointer(dir)).Fbuf_end = v1 + (*TDIR)(unsafe.Pointer(dir)).Fbuf_pos = v1 + (*TDIR)(unsafe.Pointer(dir)).Ftell = 0 + ___unlock(tls, dir+20) +} + +type t__ccgo_fp__Xscandir_2 = func(*TLS, uintptr) int32 + +type t__ccgo_fp__Xscandir_3 = func(*TLS, uintptr, uintptr) int32 + +func Xscandir(tls *TLS, path uintptr, res uintptr, __ccgo_fp_sel uintptr, __ccgo_fp_cmp uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v res=%v __ccgo_fp_sel=%v __ccgo_fp_cmp=%v, (%v:)", tls, path, res, __ccgo_fp_sel, __ccgo_fp_cmp, origin(2)) + defer func() { trc("-> %v", r) }() + } + var cnt, len1, v2 Tsize_t + var d, de, names, tmp, v1 uintptr + var old_errno int32 + _, _, _, _, _, _, _, _, _ = cnt, d, de, len1, names, old_errno, tmp, v1, v2 + d = Xopendir(tls, path) + names = uintptr(0) + cnt = uint32(0) + len1 = uint32(0) + old_errno = **(**int32)(__ccgo_up(X__errno_location(tls))) + if !(d != 0) { + return -int32(1) + } + for { + **(**int32)(__ccgo_up(X__errno_location(tls))) = 0 + v1 = Xreaddir(tls, d) + de = v1 + if !(v1 != 0) { + break + } + if __ccgo_fp_sel != 0 && !((*(*func(*TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_sel})))(tls, de) != 0) { + continue + } + if cnt >= len1 { + len1 = uint32(2)*len1 + uint32(1) + if len1 > Uint32FromUint32(0xffffffff)/Uint32FromInt64(4) { + break + } + tmp = Xrealloc(tls, names, len1*uint32(4)) + if !(tmp != 0) { + break + } + names = tmp + } + **(**uintptr)(__ccgo_up(names + uintptr(cnt)*4)) = Xmalloc(tls, uint32((*Tdirent)(unsafe.Pointer(de)).Fd_reclen)) + if !(**(**uintptr)(__ccgo_up(names + uintptr(cnt)*4)) != 0) { + break + } + v2 = cnt + cnt = cnt + 1 + Xmemcpy(tls, **(**uintptr)(__ccgo_up(names + uintptr(v2)*4)), de, uint32((*Tdirent)(unsafe.Pointer(de)).Fd_reclen)) + } + Xclosedir(tls, d) + if **(**int32)(__ccgo_up(X__errno_location(tls))) != 0 { + if names != 0 { + for { + v2 = cnt + cnt = cnt - 1 + if !(v2 > uint32(0)) { + break + } + Xfree(tls, **(**uintptr)(__ccgo_up(names + uintptr(cnt)*4))) + } + } + Xfree(tls, names) + return -int32(1) + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = old_errno + if __ccgo_fp_cmp != 0 { + Xqsort(tls, names, cnt, uint32(4), __ccgo_fp_cmp) + } + **(**uintptr)(__ccgo_up(res)) = names + return Int32FromUint32(cnt) +} + +func Xseekdir(tls *TLS, dir uintptr, off int32) { + if __ccgo_strace { + trc("tls=%v dir=%v off=%v, (%v:)", tls, dir, off, origin(2)) + } + var v1 int32 + _ = v1 + ___lock(tls, dir+20) + (*TDIR)(unsafe.Pointer(dir)).Ftell = Xlseek(tls, (*TDIR)(unsafe.Pointer(dir)).Ffd, int64(off), SEEK_SET) + v1 = Int32FromInt32(0) + (*TDIR)(unsafe.Pointer(dir)).Fbuf_end = v1 + (*TDIR)(unsafe.Pointer(dir)).Fbuf_pos = v1 + ___unlock(tls, dir+20) +} + +func Xtelldir(tls *TLS, dir uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v dir=%v, (%v:)", tls, dir, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32((*TDIR)(unsafe.Pointer(dir)).Ftell) +} + +func Xversionsort(tls *TLS, a uintptr, b uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v a=%v b=%v, (%v:)", tls, a, b, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrverscmp(tls, **(**uintptr)(__ccgo_up(a))+19, **(**uintptr)(__ccgo_up(b))+19) +} + +func X__reset_tls(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + var i, n Tsize_t + var mem, p uintptr + var self Tpthread_t + _, _, _, _, _ = i, mem, n, p, self + self = uintptr(___get_tp(tls)) + n = **(**Tuintptr_t)(__ccgo_up((*t__pthread)(unsafe.Pointer(self)).Fdtv)) + if n != 0 { + p = X__libc.Ftls_head + i = Uint32FromInt32(1) + for { + if !(i <= n) { + break + } + mem = uintptr(**(**Tuintptr_t)(__ccgo_up((*t__pthread)(unsafe.Pointer(self)).Fdtv + uintptr(i)*4)) - Uint32FromInt32(DTP_OFFSET)) + Xmemcpy(tls, mem, (*Ttls_module)(unsafe.Pointer(p)).Fimage, (*Ttls_module)(unsafe.Pointer(p)).Flen1) + Xmemset(tls, mem+uintptr((*Ttls_module)(unsafe.Pointer(p)).Flen1), 0, (*Ttls_module)(unsafe.Pointer(p)).Fsize-(*Ttls_module)(unsafe.Pointer(p)).Flen1) + goto _1 + _1: + ; + i = i + 1 + p = (*Ttls_module)(unsafe.Pointer(p)).Fnext + } + } +} + +func X__init_ssp(tls *TLS, entropy uintptr) { + if __ccgo_strace { + trc("tls=%v entropy=%v, (%v:)", tls, entropy, origin(2)) + } + if entropy != 0 { + Xmemcpy(tls, uintptr(unsafe.Pointer(&X__stack_chk_guard)), entropy, uint32(4)) + } else { + X__stack_chk_guard = Tuintptr_t(uintptr(unsafe.Pointer(&X__stack_chk_guard))) * uint32(1103515245) + } + (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Fcanary = X__stack_chk_guard +} + +func X__stack_chk_fail(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + _a_crash(tls) +} + +func X__stack_chk_fail_local(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + X__stack_chk_fail(tls) +} + +const L_INCR = 1 +const L_SET = 0 +const L_XTND = 2 + +func _dummy(tls *TLS, old uintptr, new1 uintptr) { +} + +func Xclearenv(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + var e, v1 uintptr + _, _ = e, v1 + e = Xenviron + Xenviron = uintptr(0) + if e != 0 { + for **(**uintptr)(__ccgo_up(e)) != 0 { + v1 = e + e += 4 + X__env_rm_add(tls, **(**uintptr)(__ccgo_up(v1)), uintptr(0)) + } + } + return 0 +} + +func Xgetenv(tls *TLS, name uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + var e uintptr + var l Tsize_t + _, _ = e, l + l = Uint32FromInt32(int32(X__strchrnul(tls, name, int32('='))) - int32(name)) + if l != 0 && !(**(**int8)(__ccgo_up(name + uintptr(l))) != 0) && Xenviron != 0 { + e = Xenviron + for { + if !(**(**uintptr)(__ccgo_up(e)) != 0) { + break + } + if !(Xstrncmp(tls, name, **(**uintptr)(__ccgo_up(e)), l) != 0) && int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(e)) + uintptr(l)))) == int32('=') { + return **(**uintptr)(__ccgo_up(e)) + uintptr(l) + uintptr(1) + } + goto _1 + _1: + ; + e += 4 + } + } + return uintptr(0) +} + +func _dummy1(tls *TLS, old uintptr, new1 uintptr) { +} + +func X__putenv(tls *TLS, s uintptr, l Tsize_t, r uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v s=%v l=%v r=%v, (%v:)", tls, s, l, r, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var e, newenv, tmp, v2 uintptr + var i Tsize_t + _, _, _, _, _ = e, i, newenv, tmp, v2 + i = uint32(0) + if Xenviron != 0 { + e = Xenviron + for { + if !(**(**uintptr)(__ccgo_up(e)) != 0) { + break + } + if !(Xstrncmp(tls, s, **(**uintptr)(__ccgo_up(e)), l+uint32(1)) != 0) { + tmp = **(**uintptr)(__ccgo_up(e)) + **(**uintptr)(__ccgo_up(e)) = s + X__env_rm_add(tls, tmp, r) + return 0 + } + goto _1 + _1: + ; + e += 4 + i = i + 1 + } + } + if Xenviron == _oldenv { + newenv = Xrealloc(tls, _oldenv, uint32(4)*(i+uint32(2))) + if !(newenv != 0) { + goto oom + } + } else { + newenv = Xmalloc(tls, uint32(4)*(i+uint32(2))) + if !(newenv != 0) { + goto oom + } + if i != 0 { + Xmemcpy(tls, newenv, Xenviron, uint32(4)*i) + } + Xfree(tls, _oldenv) + } + **(**uintptr)(__ccgo_up(newenv + uintptr(i)*4)) = s + **(**uintptr)(__ccgo_up(newenv + uintptr(i+uint32(1))*4)) = uintptr(0) + v2 = newenv + _oldenv = v2 + Xenviron = v2 + if r != 0 { + X__env_rm_add(tls, uintptr(0), r) + } + return 0 + goto oom +oom: + ; + Xfree(tls, r) + return -int32(1) +} + +var _oldenv uintptr + +func Xputenv(tls *TLS, s uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l Tsize_t + _ = l + l = Uint32FromInt32(int32(X__strchrnul(tls, s, int32('='))) - int32(s)) + if !(l != 0) || !(**(**int8)(__ccgo_up(s + uintptr(l))) != 0) { + return Xunsetenv(tls, s) + } + return X__putenv(tls, s, l, uintptr(0)) +} + +const L_cuserid = 20 +const NL_NMAX = 16 + +type Tcookie_io_functions_t = struct { + Fread uintptr + Fwrite uintptr + Fseek uintptr + Fclose1 uintptr +} + +type T_IO_cookie_io_functions_t = Tcookie_io_functions_t + +func Xsecure_getenv(tls *TLS, name uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 uintptr + _ = v1 + if X__libc.Fsecure != 0 { + v1 = UintptrFromInt32(0) + } else { + v1 = Xgetenv(tls, name) + } + return v1 +} + +func X__env_rm_add(tls *TLS, old uintptr, new1 uintptr) { + if __ccgo_strace { + trc("tls=%v old=%v new1=%v, (%v:)", tls, old, new1, origin(2)) + } + var i, v3 Tsize_t + var t, v2 uintptr + _, _, _, _ = i, t, v2, v3 + i = uint32(0) + for { + if !(i < _env_alloced_n) { + break + } + if **(**uintptr)(__ccgo_up(_env_alloced + uintptr(i)*4)) == old { + **(**uintptr)(__ccgo_up(_env_alloced + uintptr(i)*4)) = new1 + Xfree(tls, old) + return + } else { + if !(**(**uintptr)(__ccgo_up(_env_alloced + uintptr(i)*4)) != 0) && new1 != 0 { + **(**uintptr)(__ccgo_up(_env_alloced + uintptr(i)*4)) = new1 + new1 = uintptr(0) + } + } + goto _1 + _1: + ; + i = i + 1 + } + if !(new1 != 0) { + return + } + t = Xrealloc(tls, _env_alloced, uint32(4)*(_env_alloced_n+uint32(1))) + if !(t != 0) { + return + } + v2 = t + _env_alloced = v2 + v3 = _env_alloced_n + _env_alloced_n = _env_alloced_n + 1 + **(**uintptr)(__ccgo_up(v2 + uintptr(v3)*4)) = new1 +} + +var _env_alloced uintptr + +var _env_alloced_n Tsize_t + +func Xsetenv(tls *TLS, var1 uintptr, value uintptr, overwrite int32) (r int32) { + if __ccgo_strace { + trc("tls=%v var1=%v value=%v overwrite=%v, (%v:)", tls, var1, value, overwrite, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l1, l2, v1 Tsize_t + var s uintptr + var v2 bool + _, _, _, _, _ = l1, l2, s, v1, v2 + if v2 = !(var1 != 0); !v2 { + v1 = Uint32FromInt32(int32(X__strchrnul(tls, var1, int32('='))) - int32(var1)) + l1 = v1 + } + if v2 || !(v1 != 0) || **(**int8)(__ccgo_up(var1 + uintptr(l1))) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + if !(overwrite != 0) && Xgetenv(tls, var1) != 0 { + return 0 + } + l2 = _strlen(tls, value) + s = Xmalloc(tls, l1+l2+uint32(2)) + if !(s != 0) { + return -int32(1) + } + Xmemcpy(tls, s, var1, l1) + **(**int8)(__ccgo_up(s + uintptr(l1))) = int8('=') + Xmemcpy(tls, s+uintptr(l1)+uintptr(1), value, l2+uint32(1)) + return X__putenv(tls, s, l1, s) +} + +func _dummy2(tls *TLS, old uintptr, new1 uintptr) { +} + +func Xunsetenv(tls *TLS, name uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + var e, eo, v2 uintptr + var l Tsize_t + _, _, _, _ = e, eo, l, v2 + l = Uint32FromInt32(int32(X__strchrnul(tls, name, int32('='))) - int32(name)) + if !(l != 0) || **(**int8)(__ccgo_up(name + uintptr(l))) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + if Xenviron != 0 { + e = Xenviron + eo = e + for { + if !(**(**uintptr)(__ccgo_up(e)) != 0) { + break + } + if !(Xstrncmp(tls, name, **(**uintptr)(__ccgo_up(e)), l) != 0) && int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(e)) + uintptr(l)))) == int32('=') { + X__env_rm_add(tls, **(**uintptr)(__ccgo_up(e)), uintptr(0)) + } else { + if eo != e { + v2 = eo + eo += 4 + **(**uintptr)(__ccgo_up(v2)) = **(**uintptr)(__ccgo_up(e)) + } else { + eo += 4 + } + } + goto _1 + _1: + ; + e += 4 + } + if eo != e { + **(**uintptr)(__ccgo_up(eo)) = uintptr(0) + } + } + return 0 +} + +/* mips has one error code outside of the 8-bit range due to a + * historical typo, so we just remap it. */ + +type Terrmsgstr_t = struct { + Fstr0 [21]int8 + FstrEILSEQ [22]int8 + FstrEDOM [13]int8 + FstrERANGE [25]int8 + FstrENOTTY [10]int8 + FstrEACCES [18]int8 + FstrEPERM [24]int8 + FstrENOENT [26]int8 + FstrESRCH [16]int8 + FstrEEXIST [12]int8 + FstrEOVERFLOW [30]int8 + FstrENOSPC [24]int8 + FstrENOMEM [14]int8 + FstrEBUSY [14]int8 + FstrEINTR [24]int8 + FstrEAGAIN [33]int8 + FstrESPIPE [13]int8 + FstrEXDEV [18]int8 + FstrEROFS [22]int8 + FstrENOTEMPTY [20]int8 + FstrECONNRESET [25]int8 + FstrETIMEDOUT [20]int8 + FstrECONNREFUSED [19]int8 + FstrEHOSTDOWN [13]int8 + FstrEHOSTUNREACH [20]int8 + FstrEADDRINUSE [15]int8 + FstrEPIPE [12]int8 + FstrEIO [10]int8 + FstrENXIO [26]int8 + FstrENOTBLK [22]int8 + FstrENODEV [15]int8 + FstrENOTDIR [16]int8 + FstrEISDIR [15]int8 + FstrETXTBSY [15]int8 + FstrENOEXEC [18]int8 + FstrEINVAL [17]int8 + FstrE2BIG [23]int8 + FstrELOOP [19]int8 + FstrENAMETOOLONG [18]int8 + FstrENFILE [30]int8 + FstrEMFILE [30]int8 + FstrEBADF [20]int8 + FstrECHILD [17]int8 + FstrEFAULT [12]int8 + FstrEFBIG [15]int8 + FstrEMLINK [15]int8 + FstrENOLCK [19]int8 + FstrEDEADLK [30]int8 + FstrENOTRECOVERABLE [22]int8 + FstrEOWNERDEAD [20]int8 + FstrECANCELED [19]int8 + FstrENOSYS [25]int8 + FstrENOMSG [27]int8 + FstrEIDRM [19]int8 + FstrENOSTR [20]int8 + FstrENODATA [18]int8 + FstrETIME [15]int8 + FstrENOSR [25]int8 + FstrENOLINK [22]int8 + FstrEPROTO [15]int8 + FstrEBADMSG [12]int8 + FstrEBADFD [29]int8 + FstrENOTSOCK [13]int8 + FstrEDESTADDRREQ [29]int8 + FstrEMSGSIZE [18]int8 + FstrEPROTOTYPE [31]int8 + FstrENOPROTOOPT [23]int8 + FstrEPROTONOSUPPORT [23]int8 + FstrESOCKTNOSUPPORT [26]int8 + FstrENOTSUP [14]int8 + FstrEPFNOSUPPORT [30]int8 + FstrEAFNOSUPPORT [41]int8 + FstrEADDRNOTAVAIL [22]int8 + FstrENETDOWN [16]int8 + FstrENETUNREACH [20]int8 + FstrENETRESET [28]int8 + FstrECONNABORTED [19]int8 + FstrENOBUFS [26]int8 + FstrEISCONN [20]int8 + FstrENOTCONN [21]int8 + FstrESHUTDOWN [34]int8 + FstrEALREADY [30]int8 + FstrEINPROGRESS [22]int8 + FstrESTALE [18]int8 + FstrEREMOTEIO [17]int8 + FstrEDQUOT [15]int8 + FstrENOMEDIUM [16]int8 + FstrEMEDIUMTYPE [18]int8 + FstrEMULTIHOP [19]int8 + FstrENOKEY [27]int8 + FstrEKEYEXPIRED [16]int8 + FstrEKEYREVOKED [21]int8 + FstrEKEYREJECTED [28]int8 +} + +/* mips has one error code outside of the 8-bit range due to a + * historical typo, so we just remap it. */ + +var _errmsgstr = Terrmsgstr_t{ + Fstr0: [21]int8{'N', 'o', ' ', 'e', 'r', 'r', 'o', 'r', ' ', 'i', 'n', 'f', 'o', 'r', 'm', 'a', 't', 'i', 'o', 'n'}, + FstrEILSEQ: [22]int8{'I', 'l', 'l', 'e', 'g', 'a', 'l', ' ', 'b', 'y', 't', 'e', ' ', 's', 'e', 'q', 'u', 'e', 'n', 'c', 'e'}, + FstrEDOM: [13]int8{'D', 'o', 'm', 'a', 'i', 'n', ' ', 'e', 'r', 'r', 'o', 'r'}, + FstrERANGE: [25]int8{'R', 'e', 's', 'u', 'l', 't', ' ', 'n', 'o', 't', ' ', 'r', 'e', 'p', 'r', 'e', 's', 'e', 'n', 't', 'a', 'b', 'l', 'e'}, + FstrENOTTY: [10]int8{'N', 'o', 't', ' ', 'a', ' ', 't', 't', 'y'}, + FstrEACCES: [18]int8{'P', 'e', 'r', 'm', 'i', 's', 's', 'i', 'o', 'n', ' ', 'd', 'e', 'n', 'i', 'e', 'd'}, + FstrEPERM: [24]int8{'O', 'p', 'e', 'r', 'a', 't', 'i', 'o', 'n', ' ', 'n', 'o', 't', ' ', 'p', 'e', 'r', 'm', 'i', 't', 't', 'e', 'd'}, + FstrENOENT: [26]int8{'N', 'o', ' ', 's', 'u', 'c', 'h', ' ', 'f', 'i', 'l', 'e', ' ', 'o', 'r', ' ', 'd', 'i', 'r', 'e', 'c', 't', 'o', 'r', 'y'}, + FstrESRCH: [16]int8{'N', 'o', ' ', 's', 'u', 'c', 'h', ' ', 'p', 'r', 'o', 'c', 'e', 's', 's'}, + FstrEEXIST: [12]int8{'F', 'i', 'l', 'e', ' ', 'e', 'x', 'i', 's', 't', 's'}, + FstrEOVERFLOW: [30]int8{'V', 'a', 'l', 'u', 'e', ' ', 't', 'o', 'o', ' ', 'l', 'a', 'r', 'g', 'e', ' ', 'f', 'o', 'r', ' ', 'd', 'a', 't', 'a', ' ', 't', 'y', 'p', 'e'}, + FstrENOSPC: [24]int8{'N', 'o', ' ', 's', 'p', 'a', 'c', 'e', ' ', 'l', 'e', 'f', 't', ' ', 'o', 'n', ' ', 'd', 'e', 'v', 'i', 'c', 'e'}, + FstrENOMEM: [14]int8{'O', 'u', 't', ' ', 'o', 'f', ' ', 'm', 'e', 'm', 'o', 'r', 'y'}, + FstrEBUSY: [14]int8{'R', 'e', 's', 'o', 'u', 'r', 'c', 'e', ' ', 'b', 'u', 's', 'y'}, + FstrEINTR: [24]int8{'I', 'n', 't', 'e', 'r', 'r', 'u', 'p', 't', 'e', 'd', ' ', 's', 'y', 's', 't', 'e', 'm', ' ', 'c', 'a', 'l', 'l'}, + FstrEAGAIN: [33]int8{'R', 'e', 's', 'o', 'u', 'r', 'c', 'e', ' ', 't', 'e', 'm', 'p', 'o', 'r', 'a', 'r', 'i', 'l', 'y', ' ', 'u', 'n', 'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e'}, + FstrESPIPE: [13]int8{'I', 'n', 'v', 'a', 'l', 'i', 'd', ' ', 's', 'e', 'e', 'k'}, + FstrEXDEV: [18]int8{'C', 'r', 'o', 's', 's', '-', 'd', 'e', 'v', 'i', 'c', 'e', ' ', 'l', 'i', 'n', 'k'}, + FstrEROFS: [22]int8{'R', 'e', 'a', 'd', '-', 'o', 'n', 'l', 'y', ' ', 'f', 'i', 'l', 'e', ' ', 's', 'y', 's', 't', 'e', 'm'}, + FstrENOTEMPTY: [20]int8{'D', 'i', 'r', 'e', 'c', 't', 'o', 'r', 'y', ' ', 'n', 'o', 't', ' ', 'e', 'm', 'p', 't', 'y'}, + FstrECONNRESET: [25]int8{'C', 'o', 'n', 'n', 'e', 'c', 't', 'i', 'o', 'n', ' ', 'r', 'e', 's', 'e', 't', ' ', 'b', 'y', ' ', 'p', 'e', 'e', 'r'}, + FstrETIMEDOUT: [20]int8{'O', 'p', 'e', 'r', 'a', 't', 'i', 'o', 'n', ' ', 't', 'i', 'm', 'e', 'd', ' ', 'o', 'u', 't'}, + FstrECONNREFUSED: [19]int8{'C', 'o', 'n', 'n', 'e', 'c', 't', 'i', 'o', 'n', ' ', 'r', 'e', 'f', 'u', 's', 'e', 'd'}, + FstrEHOSTDOWN: [13]int8{'H', 'o', 's', 't', ' ', 'i', 's', ' ', 'd', 'o', 'w', 'n'}, + FstrEHOSTUNREACH: [20]int8{'H', 'o', 's', 't', ' ', 'i', 's', ' ', 'u', 'n', 'r', 'e', 'a', 'c', 'h', 'a', 'b', 'l', 'e'}, + FstrEADDRINUSE: [15]int8{'A', 'd', 'd', 'r', 'e', 's', 's', ' ', 'i', 'n', ' ', 'u', 's', 'e'}, + FstrEPIPE: [12]int8{'B', 'r', 'o', 'k', 'e', 'n', ' ', 'p', 'i', 'p', 'e'}, + FstrEIO: [10]int8{'I', '/', 'O', ' ', 'e', 'r', 'r', 'o', 'r'}, + FstrENXIO: [26]int8{'N', 'o', ' ', 's', 'u', 'c', 'h', ' ', 'd', 'e', 'v', 'i', 'c', 'e', ' ', 'o', 'r', ' ', 'a', 'd', 'd', 'r', 'e', 's', 's'}, + FstrENOTBLK: [22]int8{'B', 'l', 'o', 'c', 'k', ' ', 'd', 'e', 'v', 'i', 'c', 'e', ' ', 'r', 'e', 'q', 'u', 'i', 'r', 'e', 'd'}, + FstrENODEV: [15]int8{'N', 'o', ' ', 's', 'u', 'c', 'h', ' ', 'd', 'e', 'v', 'i', 'c', 'e'}, + FstrENOTDIR: [16]int8{'N', 'o', 't', ' ', 'a', ' ', 'd', 'i', 'r', 'e', 'c', 't', 'o', 'r', 'y'}, + FstrEISDIR: [15]int8{'I', 's', ' ', 'a', ' ', 'd', 'i', 'r', 'e', 'c', 't', 'o', 'r', 'y'}, + FstrETXTBSY: [15]int8{'T', 'e', 'x', 't', ' ', 'f', 'i', 'l', 'e', ' ', 'b', 'u', 's', 'y'}, + FstrENOEXEC: [18]int8{'E', 'x', 'e', 'c', ' ', 'f', 'o', 'r', 'm', 'a', 't', ' ', 'e', 'r', 'r', 'o', 'r'}, + FstrEINVAL: [17]int8{'I', 'n', 'v', 'a', 'l', 'i', 'd', ' ', 'a', 'r', 'g', 'u', 'm', 'e', 'n', 't'}, + FstrE2BIG: [23]int8{'A', 'r', 'g', 'u', 'm', 'e', 'n', 't', ' ', 'l', 'i', 's', 't', ' ', 't', 'o', 'o', ' ', 'l', 'o', 'n', 'g'}, + FstrELOOP: [19]int8{'S', 'y', 'm', 'b', 'o', 'l', 'i', 'c', ' ', 'l', 'i', 'n', 'k', ' ', 'l', 'o', 'o', 'p'}, + FstrENAMETOOLONG: [18]int8{'F', 'i', 'l', 'e', 'n', 'a', 'm', 'e', ' ', 't', 'o', 'o', ' ', 'l', 'o', 'n', 'g'}, + FstrENFILE: [30]int8{'T', 'o', 'o', ' ', 'm', 'a', 'n', 'y', ' ', 'o', 'p', 'e', 'n', ' ', 'f', 'i', 'l', 'e', 's', ' ', 'i', 'n', ' ', 's', 'y', 's', 't', 'e', 'm'}, + FstrEMFILE: [30]int8{'N', 'o', ' ', 'f', 'i', 'l', 'e', ' ', 'd', 'e', 's', 'c', 'r', 'i', 'p', 't', 'o', 'r', 's', ' ', 'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e'}, + FstrEBADF: [20]int8{'B', 'a', 'd', ' ', 'f', 'i', 'l', 'e', ' ', 'd', 'e', 's', 'c', 'r', 'i', 'p', 't', 'o', 'r'}, + FstrECHILD: [17]int8{'N', 'o', ' ', 'c', 'h', 'i', 'l', 'd', ' ', 'p', 'r', 'o', 'c', 'e', 's', 's'}, + FstrEFAULT: [12]int8{'B', 'a', 'd', ' ', 'a', 'd', 'd', 'r', 'e', 's', 's'}, + FstrEFBIG: [15]int8{'F', 'i', 'l', 'e', ' ', 't', 'o', 'o', ' ', 'l', 'a', 'r', 'g', 'e'}, + FstrEMLINK: [15]int8{'T', 'o', 'o', ' ', 'm', 'a', 'n', 'y', ' ', 'l', 'i', 'n', 'k', 's'}, + FstrENOLCK: [19]int8{'N', 'o', ' ', 'l', 'o', 'c', 'k', 's', ' ', 'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e'}, + FstrEDEADLK: [30]int8{'R', 'e', 's', 'o', 'u', 'r', 'c', 'e', ' ', 'd', 'e', 'a', 'd', 'l', 'o', 'c', 'k', ' ', 'w', 'o', 'u', 'l', 'd', ' ', 'o', 'c', 'c', 'u', 'r'}, + FstrENOTRECOVERABLE: [22]int8{'S', 't', 'a', 't', 'e', ' ', 'n', 'o', 't', ' ', 'r', 'e', 'c', 'o', 'v', 'e', 'r', 'a', 'b', 'l', 'e'}, + FstrEOWNERDEAD: [20]int8{'P', 'r', 'e', 'v', 'i', 'o', 'u', 's', ' ', 'o', 'w', 'n', 'e', 'r', ' ', 'd', 'i', 'e', 'd'}, + FstrECANCELED: [19]int8{'O', 'p', 'e', 'r', 'a', 't', 'i', 'o', 'n', ' ', 'c', 'a', 'n', 'c', 'e', 'l', 'e', 'd'}, + FstrENOSYS: [25]int8{'F', 'u', 'n', 'c', 't', 'i', 'o', 'n', ' ', 'n', 'o', 't', ' ', 'i', 'm', 'p', 'l', 'e', 'm', 'e', 'n', 't', 'e', 'd'}, + FstrENOMSG: [27]int8{'N', 'o', ' ', 'm', 'e', 's', 's', 'a', 'g', 'e', ' ', 'o', 'f', ' ', 'd', 'e', 's', 'i', 'r', 'e', 'd', ' ', 't', 'y', 'p', 'e'}, + FstrEIDRM: [19]int8{'I', 'd', 'e', 'n', 't', 'i', 'f', 'i', 'e', 'r', ' ', 'r', 'e', 'm', 'o', 'v', 'e', 'd'}, + FstrENOSTR: [20]int8{'D', 'e', 'v', 'i', 'c', 'e', ' ', 'n', 'o', 't', ' ', 'a', ' ', 's', 't', 'r', 'e', 'a', 'm'}, + FstrENODATA: [18]int8{'N', 'o', ' ', 'd', 'a', 't', 'a', ' ', 'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e'}, + FstrETIME: [15]int8{'D', 'e', 'v', 'i', 'c', 'e', ' ', 't', 'i', 'm', 'e', 'o', 'u', 't'}, + FstrENOSR: [25]int8{'O', 'u', 't', ' ', 'o', 'f', ' ', 's', 't', 'r', 'e', 'a', 'm', 's', ' ', 'r', 'e', 's', 'o', 'u', 'r', 'c', 'e', 's'}, + FstrENOLINK: [22]int8{'L', 'i', 'n', 'k', ' ', 'h', 'a', 's', ' ', 'b', 'e', 'e', 'n', ' ', 's', 'e', 'v', 'e', 'r', 'e', 'd'}, + FstrEPROTO: [15]int8{'P', 'r', 'o', 't', 'o', 'c', 'o', 'l', ' ', 'e', 'r', 'r', 'o', 'r'}, + FstrEBADMSG: [12]int8{'B', 'a', 'd', ' ', 'm', 'e', 's', 's', 'a', 'g', 'e'}, + FstrEBADFD: [29]int8{'F', 'i', 'l', 'e', ' ', 'd', 'e', 's', 'c', 'r', 'i', 'p', 't', 'o', 'r', ' ', 'i', 'n', ' ', 'b', 'a', 'd', ' ', 's', 't', 'a', 't', 'e'}, + FstrENOTSOCK: [13]int8{'N', 'o', 't', ' ', 'a', ' ', 's', 'o', 'c', 'k', 'e', 't'}, + FstrEDESTADDRREQ: [29]int8{'D', 'e', 's', 't', 'i', 'n', 'a', 't', 'i', 'o', 'n', ' ', 'a', 'd', 'd', 'r', 'e', 's', 's', ' ', 'r', 'e', 'q', 'u', 'i', 'r', 'e', 'd'}, + FstrEMSGSIZE: [18]int8{'M', 'e', 's', 's', 'a', 'g', 'e', ' ', 't', 'o', 'o', ' ', 'l', 'a', 'r', 'g', 'e'}, + FstrEPROTOTYPE: [31]int8{'P', 'r', 'o', 't', 'o', 'c', 'o', 'l', ' ', 'w', 'r', 'o', 'n', 'g', ' ', 't', 'y', 'p', 'e', ' ', 'f', 'o', 'r', ' ', 's', 'o', 'c', 'k', 'e', 't'}, + FstrENOPROTOOPT: [23]int8{'P', 'r', 'o', 't', 'o', 'c', 'o', 'l', ' ', 'n', 'o', 't', ' ', 'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e'}, + FstrEPROTONOSUPPORT: [23]int8{'P', 'r', 'o', 't', 'o', 'c', 'o', 'l', ' ', 'n', 'o', 't', ' ', 's', 'u', 'p', 'p', 'o', 'r', 't', 'e', 'd'}, + FstrESOCKTNOSUPPORT: [26]int8{'S', 'o', 'c', 'k', 'e', 't', ' ', 't', 'y', 'p', 'e', ' ', 'n', 'o', 't', ' ', 's', 'u', 'p', 'p', 'o', 'r', 't', 'e', 'd'}, + FstrENOTSUP: [14]int8{'N', 'o', 't', ' ', 's', 'u', 'p', 'p', 'o', 'r', 't', 'e', 'd'}, + FstrEPFNOSUPPORT: [30]int8{'P', 'r', 'o', 't', 'o', 'c', 'o', 'l', ' ', 'f', 'a', 'm', 'i', 'l', 'y', ' ', 'n', 'o', 't', ' ', 's', 'u', 'p', 'p', 'o', 'r', 't', 'e', 'd'}, + FstrEAFNOSUPPORT: [41]int8{'A', 'd', 'd', 'r', 'e', 's', 's', ' ', 'f', 'a', 'm', 'i', 'l', 'y', ' ', 'n', 'o', 't', ' ', 's', 'u', 'p', 'p', 'o', 'r', 't', 'e', 'd', ' ', 'b', 'y', ' ', 'p', 'r', 'o', 't', 'o', 'c', 'o', 'l'}, + FstrEADDRNOTAVAIL: [22]int8{'A', 'd', 'd', 'r', 'e', 's', 's', ' ', 'n', 'o', 't', ' ', 'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e'}, + FstrENETDOWN: [16]int8{'N', 'e', 't', 'w', 'o', 'r', 'k', ' ', 'i', 's', ' ', 'd', 'o', 'w', 'n'}, + FstrENETUNREACH: [20]int8{'N', 'e', 't', 'w', 'o', 'r', 'k', ' ', 'u', 'n', 'r', 'e', 'a', 'c', 'h', 'a', 'b', 'l', 'e'}, + FstrENETRESET: [28]int8{'C', 'o', 'n', 'n', 'e', 'c', 't', 'i', 'o', 'n', ' ', 'r', 'e', 's', 'e', 't', ' ', 'b', 'y', ' ', 'n', 'e', 't', 'w', 'o', 'r', 'k'}, + FstrECONNABORTED: [19]int8{'C', 'o', 'n', 'n', 'e', 'c', 't', 'i', 'o', 'n', ' ', 'a', 'b', 'o', 'r', 't', 'e', 'd'}, + FstrENOBUFS: [26]int8{'N', 'o', ' ', 'b', 'u', 'f', 'f', 'e', 'r', ' ', 's', 'p', 'a', 'c', 'e', ' ', 'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e'}, + FstrEISCONN: [20]int8{'S', 'o', 'c', 'k', 'e', 't', ' ', 'i', 's', ' ', 'c', 'o', 'n', 'n', 'e', 'c', 't', 'e', 'd'}, + FstrENOTCONN: [21]int8{'S', 'o', 'c', 'k', 'e', 't', ' ', 'n', 'o', 't', ' ', 'c', 'o', 'n', 'n', 'e', 'c', 't', 'e', 'd'}, + FstrESHUTDOWN: [34]int8{'C', 'a', 'n', 'n', 'o', 't', ' ', 's', 'e', 'n', 'd', ' ', 'a', 'f', 't', 'e', 'r', ' ', 's', 'o', 'c', 'k', 'e', 't', ' ', 's', 'h', 'u', 't', 'd', 'o', 'w', 'n'}, + FstrEALREADY: [30]int8{'O', 'p', 'e', 'r', 'a', 't', 'i', 'o', 'n', ' ', 'a', 'l', 'r', 'e', 'a', 'd', 'y', ' ', 'i', 'n', ' ', 'p', 'r', 'o', 'g', 'r', 'e', 's', 's'}, + FstrEINPROGRESS: [22]int8{'O', 'p', 'e', 'r', 'a', 't', 'i', 'o', 'n', ' ', 'i', 'n', ' ', 'p', 'r', 'o', 'g', 'r', 'e', 's', 's'}, + FstrESTALE: [18]int8{'S', 't', 'a', 'l', 'e', ' ', 'f', 'i', 'l', 'e', ' ', 'h', 'a', 'n', 'd', 'l', 'e'}, + FstrEREMOTEIO: [17]int8{'R', 'e', 'm', 'o', 't', 'e', ' ', 'I', '/', 'O', ' ', 'e', 'r', 'r', 'o', 'r'}, + FstrEDQUOT: [15]int8{'Q', 'u', 'o', 't', 'a', ' ', 'e', 'x', 'c', 'e', 'e', 'd', 'e', 'd'}, + FstrENOMEDIUM: [16]int8{'N', 'o', ' ', 'm', 'e', 'd', 'i', 'u', 'm', ' ', 'f', 'o', 'u', 'n', 'd'}, + FstrEMEDIUMTYPE: [18]int8{'W', 'r', 'o', 'n', 'g', ' ', 'm', 'e', 'd', 'i', 'u', 'm', ' ', 't', 'y', 'p', 'e'}, + FstrEMULTIHOP: [19]int8{'M', 'u', 'l', 't', 'i', 'h', 'o', 'p', ' ', 'a', 't', 't', 'e', 'm', 'p', 't', 'e', 'd'}, + FstrENOKEY: [27]int8{'R', 'e', 'q', 'u', 'i', 'r', 'e', 'd', ' ', 'k', 'e', 'y', ' ', 'n', 'o', 't', ' ', 'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e'}, + FstrEKEYEXPIRED: [16]int8{'K', 'e', 'y', ' ', 'h', 'a', 's', ' ', 'e', 'x', 'p', 'i', 'r', 'e', 'd'}, + FstrEKEYREVOKED: [21]int8{'K', 'e', 'y', ' ', 'h', 'a', 's', ' ', 'b', 'e', 'e', 'n', ' ', 'r', 'e', 'v', 'o', 'k', 'e', 'd'}, + FstrEKEYREJECTED: [28]int8{'K', 'e', 'y', ' ', 'w', 'a', 's', ' ', 'r', 'e', 'j', 'e', 'c', 't', 'e', 'd', ' ', 'b', 'y', ' ', 's', 'e', 'r', 'v', 'i', 'c', 'e'}, +} + +var _errmsgidx = [132]uint16{ + 1: uint16(uint32(UintptrFromInt32(0) + 109)), + 2: uint16(uint32(UintptrFromInt32(0) + 133)), + 3: uint16(uint32(UintptrFromInt32(0) + 159)), + 4: uint16(uint32(UintptrFromInt32(0) + 269)), + 5: uint16(uint32(UintptrFromInt32(0) + 523)), + 6: uint16(uint32(UintptrFromInt32(0) + 533)), + 7: uint16(uint32(UintptrFromInt32(0) + 677)), + 8: uint16(uint32(UintptrFromInt32(0) + 642)), + 9: uint16(uint32(UintptrFromInt32(0) + 797)), + 10: uint16(uint32(UintptrFromInt32(0) + 817)), + 11: uint16(uint32(UintptrFromInt32(0) + 293)), + 12: uint16(uint32(UintptrFromInt32(0) + 241)), + 13: uint16(uint32(UintptrFromInt32(0) + 91)), + 14: uint16(uint32(UintptrFromInt32(0) + 834)), + 15: uint16(uint32(UintptrFromInt32(0) + 559)), + 16: uint16(uint32(UintptrFromInt32(0) + 255)), + 17: uint16(uint32(UintptrFromInt32(0) + 175)), + 18: uint16(uint32(UintptrFromInt32(0) + 339)), + 19: uint16(uint32(UintptrFromInt32(0) + 581)), + 20: uint16(uint32(UintptrFromInt32(0) + 596)), + 21: uint16(uint32(UintptrFromInt32(0) + 612)), + 22: uint16(uint32(UintptrFromInt32(0) + 660)), + 23: uint16(uint32(UintptrFromInt32(0) + 737)), + 24: uint16(uint32(UintptrFromInt32(0) + 767)), + 25: uint16(uint32(UintptrFromInt32(0) + 81)), + 26: uint16(uint32(UintptrFromInt32(0) + 627)), + 27: uint16(uint32(UintptrFromInt32(0) + 846)), + 28: uint16(uint32(UintptrFromInt32(0) + 217)), + 29: uint16(uint32(UintptrFromInt32(0) + 326)), + 30: uint16(uint32(UintptrFromInt32(0) + 357)), + 31: uint16(uint32(UintptrFromInt32(0) + 861)), + 32: uint16(uint32(UintptrFromInt32(0) + 511)), + 33: uint16(uint32(UintptrFromInt32(0) + 43)), + 34: uint16(uint32(UintptrFromInt32(0) + 56)), + 35: uint16(uint32(UintptrFromInt32(0) + 895)), + 36: uint16(uint32(UintptrFromInt32(0) + 719)), + 37: uint16(uint32(UintptrFromInt32(0) + 876)), + 38: uint16(uint32(UintptrFromInt32(0) + 986)), + 39: uint16(uint32(UintptrFromInt32(0) + 379)), + 40: uint16(uint32(UintptrFromInt32(0) + 700)), + 42: uint16(uint32(UintptrFromInt32(0) + 1011)), + 43: uint16(uint32(UintptrFromInt32(0) + 1038)), + 60: uint16(uint32(UintptrFromInt32(0) + 1057)), + 61: uint16(uint32(UintptrFromInt32(0) + 1077)), + 62: uint16(uint32(UintptrFromInt32(0) + 1095)), + 63: uint16(uint32(UintptrFromInt32(0) + 1110)), + 67: uint16(uint32(UintptrFromInt32(0) + 1135)), + 71: uint16(uint32(UintptrFromInt32(0) + 1157)), + 72: uint16(uint32(UintptrFromInt32(0) + 1803)), + 74: uint16(uint32(UintptrFromInt32(0) + 1172)), + 75: uint16(uint32(UintptrFromInt32(0) + 187)), + 77: uint16(uint32(UintptrFromInt32(0) + 1184)), + 84: uint16(uint32(UintptrFromInt32(0) + 21)), + 88: uint16(uint32(UintptrFromInt32(0) + 1213)), + 89: uint16(uint32(UintptrFromInt32(0) + 1226)), + 90: uint16(uint32(UintptrFromInt32(0) + 1255)), + 91: uint16(uint32(UintptrFromInt32(0) + 1273)), + 92: uint16(uint32(UintptrFromInt32(0) + 1304)), + 93: uint16(uint32(UintptrFromInt32(0) + 1327)), + 94: uint16(uint32(UintptrFromInt32(0) + 1350)), + 95: uint16(uint32(UintptrFromInt32(0) + 1376)), + 96: uint16(uint32(UintptrFromInt32(0) + 1390)), + 97: uint16(uint32(UintptrFromInt32(0) + 1420)), + 98: uint16(uint32(UintptrFromInt32(0) + 496)), + 99: uint16(uint32(UintptrFromInt32(0) + 1461)), + 100: uint16(uint32(UintptrFromInt32(0) + 1483)), + 101: uint16(uint32(UintptrFromInt32(0) + 1499)), + 102: uint16(uint32(UintptrFromInt32(0) + 1519)), + 103: uint16(uint32(UintptrFromInt32(0) + 1547)), + 104: uint16(uint32(UintptrFromInt32(0) + 399)), + 105: uint16(uint32(UintptrFromInt32(0) + 1566)), + 106: uint16(uint32(UintptrFromInt32(0) + 1592)), + 107: uint16(uint32(UintptrFromInt32(0) + 1612)), + 108: uint16(uint32(UintptrFromInt32(0) + 1633)), + 110: uint16(uint32(UintptrFromInt32(0) + 424)), + 111: uint16(uint32(UintptrFromInt32(0) + 444)), + 112: uint16(uint32(UintptrFromInt32(0) + 463)), + 113: uint16(uint32(UintptrFromInt32(0) + 476)), + 114: uint16(uint32(UintptrFromInt32(0) + 1667)), + 115: uint16(uint32(UintptrFromInt32(0) + 1697)), + 116: uint16(uint32(UintptrFromInt32(0) + 1719)), + 121: uint16(uint32(UintptrFromInt32(0) + 1737)), + 122: uint16(uint32(UintptrFromInt32(0) + 1754)), + 123: uint16(uint32(UintptrFromInt32(0) + 1769)), + 124: uint16(uint32(UintptrFromInt32(0) + 1785)), + 125: uint16(uint32(UintptrFromInt32(0) + 967)), + 126: uint16(uint32(UintptrFromInt32(0) + 1822)), + 127: uint16(uint32(UintptrFromInt32(0) + 1849)), + 128: uint16(uint32(UintptrFromInt32(0) + 1865)), + 129: uint16(uint32(UintptrFromInt32(0) + 1886)), + 130: uint16(uint32(UintptrFromInt32(0) + 947)), + 131: uint16(uint32(UintptrFromInt32(0) + 925)), +} + +func X__strerror_l(tls *TLS, e int32, loc Tlocale_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v e=%v loc=%v, (%v:)", tls, e, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + var s uintptr + _ = s + if Uint32FromInt32(e) >= Uint32FromInt64(264)/Uint32FromInt64(2) { + e = 0 + } + s = uintptr(unsafe.Pointer(&_errmsgstr)) + uintptr(_errmsgidx[e]) + return X__lctrans(tls, s, **(**uintptr)(__ccgo_up(loc + 5*4))) +} + +func Xstrerror(tls *TLS, e int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v e=%v, (%v:)", tls, e, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__strerror_l(tls, e, (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale) +} + +func Xstrerror_l(tls *TLS, e int32, loc Tlocale_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v e=%v loc=%v, (%v:)", tls, e, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__strerror_l(tls, e, loc) +} + +func X_Exit(tls *TLS, ec int32) { + if __ccgo_strace { + trc("tls=%v ec=%v, (%v:)", tls, ec, origin(2)) + } + X__syscall1(tls, int32(SYS_exit_group), ec) + for { + X__syscall1(tls, int32(SYS_exit), ec) + goto _1 + _1: + } +} + +func X__assert_fail(tls *TLS, expr uintptr, file uintptr, line int32, func1 uintptr) { + if __ccgo_strace { + trc("tls=%v expr=%v file=%v line=%v func1=%v, (%v:)", tls, expr, file, line, func1, origin(2)) + } + bp := tls.Alloc(48) + defer tls.Free(48) + Xfprintf(tls, uintptr(unsafe.Pointer(&X__stderr_FILE)), __ccgo_ts+212, VaList(bp+8, expr, file, func1, line)) + Xabort(tls) +} + +const COUNT = 32 + +var _funcs [32]uintptr +var _count int32 +var _lock [1]int32 + +func X__funcs_on_quick_exit(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + var func1 uintptr + var v1 int32 + _, _ = func1, v1 + ___lock(tls, uintptr(unsafe.Pointer(&_lock))) + for _count > 0 { + _count = _count - 1 + v1 = _count + func1 = _funcs[v1] + ___unlock(tls, uintptr(unsafe.Pointer(&_lock))) + (*(*func(*TLS))(unsafe.Pointer(&struct{ uintptr }{func1})))(tls) + ___lock(tls, uintptr(unsafe.Pointer(&_lock))) + } +} + +type t__ccgo_fp__Xat_quick_exit_0 = func(*TLS) + +func Xat_quick_exit(tls *TLS, __ccgo_fp_func uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v __ccgo_fp_func=%v, (%v:)", tls, __ccgo_fp_func, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v1 int32 + _, _ = r, v1 + r = 0 + ___lock(tls, uintptr(unsafe.Pointer(&_lock))) + if _count == int32(32) { + r = -int32(1) + } else { + v1 = _count + _count = _count + 1 + _funcs[v1] = __ccgo_fp_func + } + ___unlock(tls, uintptr(unsafe.Pointer(&_lock))) + return r +} + +func _dummy3(tls *TLS) { +} + +func Xquick_exit(tls *TLS, code int32) { + if __ccgo_strace { + trc("tls=%v code=%v, (%v:)", tls, code, origin(2)) + } + X__funcs_on_quick_exit(tls) + X_Exit(tls, code) +} + +func Xcreat(tls *TLS, filename uintptr, mode Tmode_t) (r int32) { + if __ccgo_strace { + trc("tls=%v filename=%v mode=%v, (%v:)", tls, filename, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + return Xopen(tls, filename, Int32FromInt32(O_CREAT)|Int32FromInt32(O_WRONLY)|Int32FromInt32(O_TRUNC), VaList(bp+8, mode)) +} + +func Xfcntl(tls *TLS, fd int32, cmd int32, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v cmd=%v va=%v, (%v:)", tls, fd, cmd, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ap Tva_list + var arg uint32 + var ret, ret1, v1 int32 + var _ /* ex at bp+0 */ Tf_owner_ex + _, _, _, _, _ = ap, arg, ret, ret1, v1 + ap = va + arg = VaUint32(&ap) + _ = ap + if cmd == int32(F_SETFL) { + arg = arg | uint32(O_LARGEFILE) + } + if cmd == int32(F_SETLKW) { + return X__syscall_ret(tls, Uint32FromInt32(___syscall_cp(tls, int32(SYS_fcntl64), fd, cmd, int32(uintptr(arg)), 0, 0, 0))) + } + if cmd == int32(F_GETOWN) { + ret = int32(X__syscall3(tls, int32(SYS_fcntl64), fd, int32(Int32FromInt32(F_GETOWN_EX)), int32(bp))) + if ret == -int32(EINVAL) { + return int32(X__syscall3(tls, int32(SYS_fcntl64), fd, cmd, int32(uintptr(arg)))) + } + if ret != 0 { + return X__syscall_ret(tls, Uint32FromInt32(ret)) + } + if (**(**Tf_owner_ex)(__ccgo_up(bp))).Ftype1 == int32(F_OWNER_PGRP) { + v1 = -(**(**Tf_owner_ex)(__ccgo_up(bp))).Fpid + } else { + v1 = (**(**Tf_owner_ex)(__ccgo_up(bp))).Fpid + } + return v1 + } + if cmd == int32(F_DUPFD_CLOEXEC) { + ret1 = int32(X__syscall3(tls, int32(SYS_fcntl64), fd, int32(Int32FromInt32(F_DUPFD_CLOEXEC)), Int32FromUint32(arg))) + if ret1 != -int32(EINVAL) { + if ret1 >= 0 { + X__syscall3(tls, int32(SYS_fcntl64), ret1, int32(Int32FromInt32(F_SETFD)), int32(Int32FromInt32(FD_CLOEXEC))) + } + return X__syscall_ret(tls, Uint32FromInt32(ret1)) + } + ret1 = int32(X__syscall3(tls, int32(SYS_fcntl64), fd, int32(Int32FromInt32(F_DUPFD_CLOEXEC)), int32(Int32FromInt32(0)))) + if ret1 != -int32(EINVAL) { + if ret1 >= 0 { + X__syscall1(tls, int32(SYS_close), ret1) + } + return X__syscall_ret(tls, Uint32FromInt32(-Int32FromInt32(EINVAL))) + } + ret1 = int32(X__syscall3(tls, int32(SYS_fcntl64), fd, int32(Int32FromInt32(F_DUPFD)), Int32FromUint32(arg))) + if ret1 >= 0 { + X__syscall3(tls, int32(SYS_fcntl64), ret1, int32(Int32FromInt32(F_SETFD)), int32(Int32FromInt32(FD_CLOEXEC))) + } + return X__syscall_ret(tls, Uint32FromInt32(ret1)) + } + switch cmd { + case int32(F_SETLK): + fallthrough + case int32(F_GETLK): + fallthrough + case int32(F_GETOWN_EX): + fallthrough + case int32(F_SETOWN_EX): + return X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_fcntl64), fd, cmd, int32(uintptr(arg))))) + default: + return X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_fcntl64), fd, cmd, Int32FromUint32(arg)))) + } + return r +} + +func Xopen(tls *TLS, filename uintptr, flags int32, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v filename=%v flags=%v va=%v, (%v:)", tls, filename, flags, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var fd int32 + var mode Tmode_t + _, _, _ = ap, fd, mode + mode = uint32(0) + if flags&int32(O_CREAT) != 0 || flags&int32(O_TMPFILE) == int32(O_TMPFILE) { + ap = va + mode = VaUint32(&ap) + _ = ap + } + fd = int32(___syscall_cp(tls, int32(SYS_open), int32(filename), int32(flags|Int32FromInt32(O_LARGEFILE)), Int32FromUint32(mode), 0, 0, 0)) + if fd >= 0 && flags&int32(O_CLOEXEC) != 0 { + X__syscall3(tls, int32(SYS_fcntl64), fd, int32(Int32FromInt32(F_SETFD)), int32(Int32FromInt32(FD_CLOEXEC))) + } + return X__syscall_ret(tls, Uint32FromInt32(fd)) +} + +func Xopenat(tls *TLS, fd int32, filename uintptr, flags int32, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v filename=%v flags=%v va=%v, (%v:)", tls, fd, filename, flags, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var mode Tmode_t + _, _ = ap, mode + mode = uint32(0) + if flags&int32(O_CREAT) != 0 || flags&int32(O_TMPFILE) == int32(O_TMPFILE) { + ap = va + mode = VaUint32(&ap) + _ = ap + } + return X__syscall_ret(tls, Uint32FromInt32(___syscall_cp(tls, int32(SYS_openat), fd, int32(filename), int32(flags|Int32FromInt32(O_LARGEFILE)), Int32FromUint32(mode), 0, 0))) +} + +func Xposix_fadvise(tls *TLS, fd int32, base Toff_t, len1 Toff_t, advice int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v base=%v len1=%v advice=%v, (%v:)", tls, fd, base, len1, advice, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(-X__syscall6(tls, int32(SYS_fadvise64_64), fd, int32(base), int32(base>>Int32FromInt32(32)), int32(len1), int32(len1>>Int32FromInt32(32)), advice)) +} + +func Xposix_fallocate(tls *TLS, fd int32, base Toff_t, len1 Toff_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v base=%v len1=%v, (%v:)", tls, fd, base, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(-X__syscall6(tls, int32(SYS_fallocate), fd, int32(Int32FromInt32(0)), int32(base), int32(base>>Int32FromInt32(32)), int32(len1), int32(len1>>Int32FromInt32(32)))) +} + +const FE_ALL_EXCEPT = 63 +const FE_DIVBYZERO = 4 +const FE_DOWNWARD = 1024 +const FE_INEXACT = 32 +const FE_INVALID = 1 +const FE_OVERFLOW = 8 +const FE_TONEAREST = 0 +const FE_TOWARDZERO = 3072 +const FE_UNDERFLOW = 16 +const FE_UPWARD = 2048 +const __FE_DENORM = 2 + +type Tfexcept_t = uint16 + +type Tfenv_t = struct { + F__control_word uint16 + F__unused1 uint16 + F__status_word uint16 + F__unused2 uint16 + F__tags uint16 + F__unused3 uint16 + F__eip uint32 + F__cs_selector uint16 + F__ccgo_align8 [2]byte + F__ccgo20 uint16 + F__data_offset uint32 + F__data_selector uint16 + F__unused5 uint16 +} + +/* Dummy functions for archs lacking fenv implementation */ + +func Xfeclearexcept(tls *TLS, mask int32) (r int32) { + if __ccgo_strace { + trc("tls=%v mask=%v, (%v:)", tls, mask, origin(2)) + defer func() { trc("-> %v", r) }() + } + return 0 +} + +func Xferaiseexcept(tls *TLS, mask int32) (r int32) { + if __ccgo_strace { + trc("tls=%v mask=%v, (%v:)", tls, mask, origin(2)) + defer func() { trc("-> %v", r) }() + } + return 0 +} + +func Xfetestexcept(tls *TLS, mask int32) (r int32) { + if __ccgo_strace { + trc("tls=%v mask=%v, (%v:)", tls, mask, origin(2)) + defer func() { trc("-> %v", r) }() + } + return 0 +} + +func Xfegetround(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return FE_TONEAREST +} + +func X__fesetround(tls *TLS, r int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v r=%v, (%v:)", tls, r, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return 0 +} + +func Xfegetenv(tls *TLS, envp uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v envp=%v, (%v:)", tls, envp, origin(2)) + defer func() { trc("-> %v", r) }() + } + return 0 +} + +func Xfesetenv(tls *TLS, envp uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v envp=%v, (%v:)", tls, envp, origin(2)) + defer func() { trc("-> %v", r) }() + } + return 0 +} + +const WCONTINUED = 8 +const WEXITED = 4 +const WNOWAIT = 16777216 +const WSTOPPED = 2 +const __WALL = 1073741824 +const __WCLONE = 2147483648 +const __WNOTHREAD = 536870912 + +type Tidtype_t = int32 + +const _P_ALL = 0 +const _P_PID = 1 +const _P_PGID = 2 +const _P_PIDFD = 3 +const F_APP = 128 +const F_EOF = 16 +const F_ERR = 32 +const F_NORD = 4 +const F_NOWR = 8 +const F_PERM = 1 +const F_SVB = 64 +const KMAX = 128 +const LDBL_EPSILON1 = 2.22044604925031308085e-16 +const LDBL_MAX1 = 1.79769313486231570815e+308 +const LDBL_MIN1 = 2.22507385850720138309e-308 +const LD_B1B_DIG = 2 +const LD_B1B_MAX = 254740991 +const MASK = 127 +const MAYBE_WAITERS = 1073741824 +const UNGET = 8 + +type TFILE = struct { + Fflags uint32 + Frpos uintptr + Frend uintptr + Fclose1 uintptr + Fwend uintptr + Fwpos uintptr + Fmustbezero_1 uintptr + Fwbase uintptr + Fread uintptr + Fwrite uintptr + Fseek uintptr + Fbuf uintptr + Fbuf_size Tsize_t + Fprev uintptr + Fnext uintptr + Ffd int32 + Fpipe_pid int32 + Flockcount int32 + Fmode int32 + Flock int32 + Flbf int32 + Fcookie uintptr + Foff Toff_t + Fgetln_buf uintptr + Fmustbezero_2 uintptr + Fshend uintptr + Fshlim Toff_t + Fshcnt Toff_t + Fprev_locked uintptr + Fnext_locked uintptr + Flocale uintptr +} + +type T_IO_FILE = TFILE + +func _scanexp(tls *TLS, f uintptr, pok int32) (r int64) { + var c, neg, x, v1 int32 + var y, v19 int64 + var v2, v3 uintptr + _, _, _, _, _, _, _, _ = c, neg, x, y, v1, v19, v2, v3 + neg = 0 + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v3 = f + 4 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + if c == int32('+') || c == int32('-') { + neg = BoolInt32(c == int32('-')) + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v3 = f + 4 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + if Uint32FromInt32(c-int32('0')) >= uint32(10) && pok != 0 { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + } + } + if Uint32FromInt32(c-int32('0')) >= uint32(10) { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + return -Int64FromInt64(0x7fffffffffffffff) - Int64FromInt32(1) + } + x = 0 + for { + if !(Uint32FromInt32(c-int32('0')) < uint32(10) && x < Int32FromInt32(INT_MAX)/Int32FromInt32(10)) { + break + } + x = int32(10)*x + c - int32('0') + goto _7 + _7: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v3 = f + 4 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + y = int64(x) + for { + if !(Uint32FromInt32(c-int32('0')) < uint32(10) && y < Int64FromInt64(0x7fffffffffffffff)/Int64FromInt32(100)) { + break + } + y = int64(10)*y + int64(c) - int64('0') + goto _11 + _11: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v3 = f + 4 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + for { + if !(Uint32FromInt32(c-int32('0')) < uint32(10)) { + break + } + goto _15 + _15: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v3 = f + 4 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + if neg != 0 { + v19 = -y + } else { + v19 = y + } + return v19 +} + +func _decfloat(tls *TLS, f uintptr, c int32, bits int32, emin int32, sign int32, pok int32) (r float64) { + bp := tls.Alloc(512) + defer tls.Free(512) + var a, bitlim, denormal, e2, emax, gotdig, gotrad, i, j, k, lnz, p10, rp, rpm9, sh, z, v2, v6 int32 + var bias, frac, y float64 + var carry, carry1, carry2, t, tmp, tmp2 Tuint32_t + var dc, e10, lrp int64 + var tmp1 Tuint64_t + var v3, v4 uintptr + var _ /* x at bp+0 */ [128]Tuint32_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = a, bias, bitlim, carry, carry1, carry2, dc, denormal, e10, e2, emax, frac, gotdig, gotrad, i, j, k, lnz, lrp, p10, rp, rpm9, sh, t, tmp, tmp1, tmp2, y, z, v2, v3, v4, v6 + lrp = 0 + dc = 0 + e10 = 0 + lnz = 0 + gotdig = 0 + gotrad = 0 + emax = -emin - bits + int32(3) + denormal = 0 + frac = Float64FromInt32(0) + bias = Float64FromInt32(0) + j = 0 + k = 0 + /* Don't let leading zeros consume buffer space */ + for { + if !(c == int32('0')) { + break + } + gotdig = int32(1) + goto _1 + _1: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 4 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v2 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v2 = X__shgetc(tls, f) + } + c = v2 + } + if c == int32('.') { + gotrad = int32(1) + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 4 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v2 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v2 = X__shgetc(tls, f) + } + c = v2 + for { + if !(c == int32('0')) { + break + } + gotdig = int32(1) + lrp = lrp - 1 + goto _5 + _5: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 4 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v2 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v2 = X__shgetc(tls, f) + } + c = v2 + } + } + (**(**[128]Tuint32_t)(__ccgo_up(bp)))[0] = uint32(0) + for { + if !(Uint32FromInt32(c-int32('0')) < uint32(10) || c == int32('.')) { + break + } + if c == int32('.') { + if gotrad != 0 { + break + } + gotrad = int32(1) + lrp = dc + } else { + if k < Int32FromInt32(KMAX)-Int32FromInt32(3) { + dc = dc + 1 + if c != int32('0') { + lnz = int32(dc) + } + if j != 0 { + (**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] = (**(**[128]Tuint32_t)(__ccgo_up(bp)))[k]*uint32(10) + Uint32FromInt32(c) - uint32('0') + } else { + (**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] = Uint32FromInt32(c - int32('0')) + } + j = j + 1 + v2 = j + if v2 == int32(9) { + k = k + 1 + j = 0 + } + gotdig = int32(1) + } else { + dc = dc + 1 + if c != int32('0') { + lnz = (Int32FromInt32(KMAX) - Int32FromInt32(4)) * Int32FromInt32(9) + **(**Tuint32_t)(__ccgo_up(bp + uintptr(Int32FromInt32(KMAX)-Int32FromInt32(4))*4)) |= uint32(1) + } + } + } + goto _12 + _12: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 4 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v2 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v2 = X__shgetc(tls, f) + } + c = v2 + } + if !(gotrad != 0) { + lrp = dc + } + if gotdig != 0 && c|int32(32) == int32('e') { + e10 = _scanexp(tls, f, pok) + if e10 == -Int64FromInt64(0x7fffffffffffffff)-Int64FromInt32(1) { + if pok != 0 { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + } else { + X__shlim(tls, f, int64(Int32FromInt32(0))) + return Float64FromInt32(0) + } + e10 = 0 + } + lrp = lrp + e10 + } else { + if c >= 0 { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + } + } + if !(gotdig != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + X__shlim(tls, f, int64(Int32FromInt32(0))) + return Float64FromInt32(0) + } + /* Handle zero specially to avoid nasty special cases later */ + if !((**(**[128]Tuint32_t)(__ccgo_up(bp)))[0] != 0) { + return float64(float64(sign) * float64(0)) + } + /* Optimize small integers (w/no exponent) and over/under-flow */ + if lrp == dc && dc < int64(10) && (bits > int32(30) || (**(**[128]Tuint32_t)(__ccgo_up(bp)))[0]>>bits == uint32(0)) { + return float64(float64(sign) * float64((**(**[128]Tuint32_t)(__ccgo_up(bp)))[0])) + } + if lrp > int64(-emin/int32(2)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ERANGE) + return float64(float64(float64(sign)*Float64FromFloat64(1.79769313486231570815e+308)) * Float64FromFloat64(1.79769313486231570815e+308)) + } + if lrp < int64(emin-Int32FromInt32(2)*Int32FromInt32(LDBL_MANT_DIG)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ERANGE) + return float64(float64(float64(sign)*Float64FromFloat64(2.22507385850720138309e-308)) * Float64FromFloat64(2.22507385850720138309e-308)) + } + /* Align incomplete final B1B digit */ + if j != 0 { + for { + if !(j < int32(9)) { + break + } + **(**Tuint32_t)(__ccgo_up(bp + uintptr(k)*4)) *= uint32(10) + goto _17 + _17: + ; + j = j + 1 + } + k = k + 1 + j = 0 + } + a = 0 + z = k + e2 = 0 + rp = int32(lrp) + /* Optimize small to mid-size integers (even in exp. notation) */ + if lnz < int32(9) && lnz <= rp && rp < int32(18) { + if rp == int32(9) { + return float64(float64(sign) * float64((**(**[128]Tuint32_t)(__ccgo_up(bp)))[0])) + } + if rp < int32(9) { + return float64(float64(sign)*float64((**(**[128]Tuint32_t)(__ccgo_up(bp)))[0])) / float64(_p10s[int32(8)-rp]) + } + bitlim = bits - int32(3)*(rp-Int32FromInt32(9)) + if bitlim > int32(30) || (**(**[128]Tuint32_t)(__ccgo_up(bp)))[0]>>bitlim == uint32(0) { + return float64(float64(float64(sign)*float64((**(**[128]Tuint32_t)(__ccgo_up(bp)))[0])) * float64(_p10s[rp-int32(10)])) + } + } + /* Drop trailing zeros */ + for { + if !!((**(**[128]Tuint32_t)(__ccgo_up(bp)))[z-int32(1)] != 0) { + break + } + goto _18 + _18: + ; + z = z - 1 + } + /* Align radix point to B1B digit boundary */ + if rp%int32(9) != 0 { + if rp >= 0 { + v2 = rp % int32(9) + } else { + v2 = rp%int32(9) + int32(9) + } + rpm9 = v2 + p10 = _p10s[int32(8)-rpm9] + carry = uint32(0) + k = a + for { + if !(k != z) { + break + } + tmp = (**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] % Uint32FromInt32(p10) + (**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] = (**(**[128]Tuint32_t)(__ccgo_up(bp)))[k]/Uint32FromInt32(p10) + carry + carry = Uint32FromInt32(int32(1000000000)/p10) * tmp + if k == a && !((**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] != 0) { + a = (a + int32(1)) & (Int32FromInt32(KMAX) - Int32FromInt32(1)) + rp = rp - int32(9) + } + goto _20 + _20: + ; + k = k + 1 + } + if carry != 0 { + v2 = z + z = z + 1 + (**(**[128]Tuint32_t)(__ccgo_up(bp)))[v2] = carry + } + rp = rp + (int32(9) - rpm9) + } + /* Upscale until desired number of bits are left of radix point */ + for rp < Int32FromInt32(9)*Int32FromInt32(LD_B1B_DIG) || rp == Int32FromInt32(9)*Int32FromInt32(LD_B1B_DIG) && (**(**[128]Tuint32_t)(__ccgo_up(bp)))[a] < _th[0] { + carry1 = uint32(0) + e2 = e2 - int32(29) + k = (z - int32(1)) & (Int32FromInt32(KMAX) - Int32FromInt32(1)) + for { + tmp1 = uint64((**(**[128]Tuint32_t)(__ccgo_up(bp)))[k])< uint64(1000000000) { + carry1 = uint32(tmp1 / uint64(1000000000)) + (**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] = uint32(tmp1 % uint64(1000000000)) + } else { + carry1 = uint32(0) + (**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] = uint32(tmp1) + } + if k == (z-int32(1))&(Int32FromInt32(KMAX)-Int32FromInt32(1)) && k != a && !((**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] != 0) { + z = k + } + if k == a { + break + } + goto _22 + _22: + ; + k = (k - int32(1)) & (Int32FromInt32(KMAX) - Int32FromInt32(1)) + } + if carry1 != 0 { + rp = rp + int32(9) + a = (a - int32(1)) & (Int32FromInt32(KMAX) - Int32FromInt32(1)) + if a == z { + z = (z - int32(1)) & (Int32FromInt32(KMAX) - Int32FromInt32(1)) + **(**Tuint32_t)(__ccgo_up(bp + uintptr((z-int32(1))&(Int32FromInt32(KMAX)-Int32FromInt32(1)))*4)) |= (**(**[128]Tuint32_t)(__ccgo_up(bp)))[z] + } + (**(**[128]Tuint32_t)(__ccgo_up(bp)))[a] = carry1 + } + } + /* Downscale until exactly number of bits are left of radix point */ + for { + carry2 = uint32(0) + sh = int32(1) + i = 0 + for { + if !(i < int32(LD_B1B_DIG)) { + break + } + k = (a + i) & (Int32FromInt32(KMAX) - Int32FromInt32(1)) + if k == z || (**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] < _th[i] { + i = int32(LD_B1B_DIG) + break + } + if (**(**[128]Tuint32_t)(__ccgo_up(bp)))[(a+i)&(Int32FromInt32(KMAX)-Int32FromInt32(1))] > _th[i] { + break + } + goto _24 + _24: + ; + i = i + 1 + } + if i == int32(LD_B1B_DIG) && rp == Int32FromInt32(9)*Int32FromInt32(LD_B1B_DIG) { + break + } + /* FIXME: find a way to compute optimal sh */ + if rp > Int32FromInt32(9)+Int32FromInt32(9)*Int32FromInt32(LD_B1B_DIG) { + sh = int32(9) + } + e2 = e2 + sh + k = a + for { + if !(k != z) { + break + } + tmp2 = (**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] & Uint32FromInt32(int32(1)<>sh + carry2 + carry2 = Uint32FromInt32(Int32FromInt32(1000000000)>>sh) * tmp2 + if k == a && !((**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] != 0) { + a = (a + int32(1)) & (Int32FromInt32(KMAX) - Int32FromInt32(1)) + i = i - 1 + rp = rp - int32(9) + } + goto _25 + _25: + ; + k = (k + int32(1)) & (Int32FromInt32(KMAX) - Int32FromInt32(1)) + } + if carry2 != 0 { + if (z+int32(1))&(Int32FromInt32(KMAX)-Int32FromInt32(1)) != a { + (**(**[128]Tuint32_t)(__ccgo_up(bp)))[z] = carry2 + z = (z + int32(1)) & (Int32FromInt32(KMAX) - Int32FromInt32(1)) + } else { + **(**Tuint32_t)(__ccgo_up(bp + uintptr((z-int32(1))&(Int32FromInt32(KMAX)-Int32FromInt32(1)))*4)) |= uint32(1) + } + } + goto _23 + _23: + } + /* Assemble desired bits into floating point variable */ + v2 = Int32FromInt32(0) + i = v2 + y = float64(v2) + for { + if !(i < int32(LD_B1B_DIG)) { + break + } + if (a+i)&(Int32FromInt32(KMAX)-Int32FromInt32(1)) == z { + v6 = (z + Int32FromInt32(1)) & (Int32FromInt32(KMAX) - Int32FromInt32(1)) + z = v6 + (**(**[128]Tuint32_t)(__ccgo_up(bp)))[v6-int32(1)] = uint32(0) + } + y = float64(Float64FromFloat64(1e+09)*y) + float64((**(**[128]Tuint32_t)(__ccgo_up(bp)))[(a+i)&(Int32FromInt32(KMAX)-Int32FromInt32(1))]) + goto _26 + _26: + ; + i = i + 1 + } + y = y * float64(sign) + /* Limit precision for denormal results */ + if bits > int32(LDBL_MANT_DIG)+e2-emin { + bits = int32(LDBL_MANT_DIG) + e2 - emin + if bits < 0 { + bits = 0 + } + denormal = int32(1) + } + /* Calculate bias term to force rounding, move out lower bits */ + if bits < int32(LDBL_MANT_DIG) { + bias = Xcopysignl(tls, Xscalbn(tls, Float64FromInt32(1), Int32FromInt32(2)*Int32FromInt32(LDBL_MANT_DIG)-bits-int32(1)), y) + frac = Xfmodl(tls, y, Xscalbn(tls, Float64FromInt32(1), int32(LDBL_MANT_DIG)-bits)) + y = y - frac + y = y + bias + } + /* Process tail of decimal input so it can affect rounding */ + if (a+i)&(Int32FromInt32(KMAX)-Int32FromInt32(1)) != z { + t = (**(**[128]Tuint32_t)(__ccgo_up(bp)))[(a+i)&(Int32FromInt32(KMAX)-Int32FromInt32(1))] + if t < uint32(500000000) && (t != 0 || (a+i+int32(1))&(Int32FromInt32(KMAX)-Int32FromInt32(1)) != z) { + frac = frac + float64(float64(0.25)*float64(sign)) + } else { + if t > uint32(500000000) { + frac = frac + float64(float64(0.75)*float64(sign)) + } else { + if t == uint32(500000000) { + if (a+i+int32(1))&(Int32FromInt32(KMAX)-Int32FromInt32(1)) == z { + frac = frac + float64(float64(0.5)*float64(sign)) + } else { + frac = frac + float64(float64(0.75)*float64(sign)) + } + } + } + } + if int32(LDBL_MANT_DIG)-bits >= int32(2) && !(Xfmodl(tls, frac, Float64FromInt32(1)) != 0) { + frac = frac + 1 + } + } + y = y + frac + y = y - bias + if (e2+int32(LDBL_MANT_DIG))&int32(INT_MAX) > emax-int32(5) { + if Xfabsl(tls, y) >= Float64FromInt32(2)/Float64FromFloat64(2.22044604925031308085e-16) { + if denormal != 0 && bits == int32(LDBL_MANT_DIG)+e2-emin { + denormal = 0 + } + y = y * Float64FromFloat64(0.5) + e2 = e2 + 1 + } + if e2+int32(LDBL_MANT_DIG) > emax || denormal != 0 && frac != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ERANGE) + } + } + return Xscalbnl(tls, y, e2) +} + +var _th = [2]Tuint32_t{ + 0: uint32(9007199), + 1: uint32(254740991), +} + +var _p10s = [8]int32{ + 0: int32(10), + 1: int32(100), + 2: int32(1000), + 3: int32(10000), + 4: int32(100000), + 5: int32(1000000), + 6: int32(10000000), + 7: int32(100000000), +} + +func _hexfloat(tls *TLS, f uintptr, bits int32, emin int32, sign int32, pok int32) (r float64) { + var bias, scale, y float64 + var c, d, gotdig, gotrad, gottail, v1 int32 + var dc, e2, rp int64 + var x Tuint32_t + var v2, v3 uintptr + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = bias, c, d, dc, e2, gotdig, gotrad, gottail, rp, scale, x, y, v1, v2, v3 + x = uint32(0) + y = Float64FromInt32(0) + scale = Float64FromInt32(1) + bias = Float64FromInt32(0) + gottail = 0 + gotrad = 0 + gotdig = 0 + rp = 0 + dc = 0 + e2 = 0 + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v3 = f + 4 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + /* Skip leading zeros */ + for { + if !(c == int32('0')) { + break + } + gotdig = int32(1) + goto _4 + _4: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v3 = f + 4 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + if c == int32('.') { + gotrad = int32(1) + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v3 = f + 4 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + /* Count zeros after the radix point before significand */ + rp = 0 + for { + if !(c == int32('0')) { + break + } + gotdig = int32(1) + goto _11 + _11: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v3 = f + 4 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + rp = rp - 1 + } + } + for { + if !(Uint32FromInt32(c-int32('0')) < uint32(10) || Uint32FromInt32(c|int32(32)-int32('a')) < uint32(6) || c == int32('.')) { + break + } + if c == int32('.') { + if gotrad != 0 { + break + } + rp = dc + gotrad = int32(1) + } else { + gotdig = int32(1) + if c > int32('9') { + d = c | int32(32) + int32(10) - int32('a') + } else { + d = c - int32('0') + } + if dc < int64(8) { + x = x*uint32(16) + Uint32FromInt32(d) + } else { + if dc < int64(Int32FromInt32(LDBL_MANT_DIG)/Int32FromInt32(4)+Int32FromInt32(1)) { + scale = scale / Float64FromInt32(16) + y = y + float64(float64(d)*scale) + } else { + if d != 0 && !(gottail != 0) { + y = y + float64(Float64FromFloat64(0.5)*scale) + gottail = int32(1) + } + } + } + dc = dc + 1 + } + goto _15 + _15: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v3 = f + 4 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + if !(gotdig != 0) { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + if pok != 0 { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + if gotrad != 0 { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + } + } else { + X__shlim(tls, f, int64(Int32FromInt32(0))) + } + return float64(float64(sign) * float64(0)) + } + if !(gotrad != 0) { + rp = dc + } + for dc < int64(8) { + x = x * uint32(16) + dc = dc + 1 + } + if c|int32(32) == int32('p') { + e2 = _scanexp(tls, f, pok) + if e2 == -Int64FromInt64(0x7fffffffffffffff)-Int64FromInt32(1) { + if pok != 0 { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + } else { + X__shlim(tls, f, int64(Int32FromInt32(0))) + return Float64FromInt32(0) + } + e2 = 0 + } + } else { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + } + e2 = e2 + (int64(4)*rp - int64(32)) + if !(x != 0) { + return float64(float64(sign) * float64(0)) + } + if e2 > int64(-emin) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ERANGE) + return float64(float64(float64(sign)*Float64FromFloat64(1.79769313486231570815e+308)) * Float64FromFloat64(1.79769313486231570815e+308)) + } + if e2 < int64(emin-Int32FromInt32(2)*Int32FromInt32(LDBL_MANT_DIG)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ERANGE) + return float64(float64(float64(sign)*Float64FromFloat64(2.22507385850720138309e-308)) * Float64FromFloat64(2.22507385850720138309e-308)) + } + for x < uint32(0x80000000) { + if y >= Float64FromFloat64(0.5) { + x = x + (x + uint32(1)) + y = y + (y - Float64FromInt32(1)) + } else { + x = x + x + y = y + y + } + e2 = e2 - 1 + } + if int64(bits) > int64(32)+e2-int64(emin) { + bits = int32(int64(32) + e2 - int64(emin)) + if bits < 0 { + bits = 0 + } + } + if bits < int32(LDBL_MANT_DIG) { + bias = Xcopysignl(tls, Xscalbn(tls, Float64FromInt32(1), Int32FromInt32(32)+Int32FromInt32(LDBL_MANT_DIG)-bits-int32(1)), float64(sign)) + } + if bits < int32(32) && y != 0 && !(x&Uint32FromInt32(1) != 0) { + x = x + 1 + y = Float64FromInt32(0) + } + y = bias + float64(float64(sign)*float64(x)) + float64(float64(sign)*y) + y = y - bias + if !(y != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ERANGE) + } + return Xscalbnl(tls, y, int32(e2)) +} + +func X__floatscan(tls *TLS, f uintptr, prec int32, pok int32) (r float64) { + if __ccgo_strace { + trc("tls=%v f=%v prec=%v pok=%v, (%v:)", tls, f, prec, pok, origin(2)) + defer func() { trc("-> %v", r) }() + } + var bits, c, emin, sign, v1, v2, v5, v6 int32 + var i, v27 Tsize_t + var v3, v4 uintptr + _, _, _, _, _, _, _, _, _, _, _, _ = bits, c, emin, i, sign, v1, v2, v27, v3, v4, v5, v6 + sign = int32(1) + switch prec { + case 0: + bits = int32(FLT_MANT_DIG) + emin = -int32(125) - bits + case int32(1): + bits = int32(DBL_MANT_DIG) + emin = -int32(1021) - bits + case int32(2): + bits = int32(LDBL_MANT_DIG) + emin = -int32(1021) - bits + default: + return Float64FromInt32(0) + } + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 4 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v2 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v2 = X__shgetc(tls, f) + } + v1 = v2 + c = v1 + v5 = v1 + v6 = BoolInt32(v5 == int32(' ') || Uint32FromInt32(v5)-uint32('\t') < uint32(5)) + goto _7 + _7: + if !(v6 != 0) { + break + } + } + if c == int32('+') || c == int32('-') { + sign = sign - int32(2)*BoolInt32(c == int32('-')) + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 4 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + i = uint32(0) + for { + if !(i < uint32(8) && c|int32(32) == int32(**(**int8)(__ccgo_up(__ccgo_ts + 247 + uintptr(i))))) { + break + } + if i < uint32(7) { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 4 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + goto _11 + _11: + ; + i = i + 1 + } + if i == uint32(3) || i == uint32(8) || i > uint32(3) && pok != 0 { + if i != uint32(8) { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + if pok != 0 { + for { + if !(i > uint32(3)) { + break + } + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + goto _15 + _15: + ; + i = i - 1 + } + } + } + return float64(float32(sign) * X__builtin_inff(tls)) + } + if !(i != 0) { + i = uint32(0) + for { + if !(i < uint32(3) && c|int32(32) == int32(**(**int8)(__ccgo_up(__ccgo_ts + 256 + uintptr(i))))) { + break + } + if i < uint32(2) { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 4 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + goto _16 + _16: + ; + i = i + 1 + } + } + if i == uint32(3) { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 4 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + if v1 != int32('(') { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + return float64(X__builtin_nanf(tls, __ccgo_ts)) + } + i = uint32(1) + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 4 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + if Uint32FromInt32(c-int32('0')) < uint32(10) || Uint32FromInt32(c-int32('A')) < uint32(26) || Uint32FromInt32(c-int32('a')) < uint32(26) || c == int32('_') { + goto _23 + } + if c == int32(')') { + return float64(X__builtin_nanf(tls, __ccgo_ts)) + } + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + if !(pok != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + X__shlim(tls, f, int64(Int32FromInt32(0))) + return Float64FromInt32(0) + } + for { + v27 = i + i = i - 1 + if !(v27 != 0) { + break + } + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + } + return float64(X__builtin_nanf(tls, __ccgo_ts)) + goto _23 + _23: + ; + i = i + 1 + } + return float64(X__builtin_nanf(tls, __ccgo_ts)) + } + if i != 0 { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + X__shlim(tls, f, int64(Int32FromInt32(0))) + return Float64FromInt32(0) + } + if c == int32('0') { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 4 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + if c|int32(32) == int32('x') { + return _hexfloat(tls, f, bits, emin, sign, pok) + } + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + c = int32('0') + } + return _decfloat(tls, f, c, bits, emin, sign, pok) +} + +// C documentation +// +// /* Lookup table for digit values. -1==255>=36 -> invalid */ +var _table6 = [257]uint8{ + 0: Uint8FromInt32(-Int32FromInt32(1)), + 1: Uint8FromInt32(-Int32FromInt32(1)), + 2: Uint8FromInt32(-Int32FromInt32(1)), + 3: Uint8FromInt32(-Int32FromInt32(1)), + 4: Uint8FromInt32(-Int32FromInt32(1)), + 5: Uint8FromInt32(-Int32FromInt32(1)), + 6: Uint8FromInt32(-Int32FromInt32(1)), + 7: Uint8FromInt32(-Int32FromInt32(1)), + 8: Uint8FromInt32(-Int32FromInt32(1)), + 9: Uint8FromInt32(-Int32FromInt32(1)), + 10: Uint8FromInt32(-Int32FromInt32(1)), + 11: Uint8FromInt32(-Int32FromInt32(1)), + 12: Uint8FromInt32(-Int32FromInt32(1)), + 13: Uint8FromInt32(-Int32FromInt32(1)), + 14: Uint8FromInt32(-Int32FromInt32(1)), + 15: Uint8FromInt32(-Int32FromInt32(1)), + 16: Uint8FromInt32(-Int32FromInt32(1)), + 17: Uint8FromInt32(-Int32FromInt32(1)), + 18: Uint8FromInt32(-Int32FromInt32(1)), + 19: Uint8FromInt32(-Int32FromInt32(1)), + 20: Uint8FromInt32(-Int32FromInt32(1)), + 21: Uint8FromInt32(-Int32FromInt32(1)), + 22: Uint8FromInt32(-Int32FromInt32(1)), + 23: Uint8FromInt32(-Int32FromInt32(1)), + 24: Uint8FromInt32(-Int32FromInt32(1)), + 25: Uint8FromInt32(-Int32FromInt32(1)), + 26: Uint8FromInt32(-Int32FromInt32(1)), + 27: Uint8FromInt32(-Int32FromInt32(1)), + 28: Uint8FromInt32(-Int32FromInt32(1)), + 29: Uint8FromInt32(-Int32FromInt32(1)), + 30: Uint8FromInt32(-Int32FromInt32(1)), + 31: Uint8FromInt32(-Int32FromInt32(1)), + 32: Uint8FromInt32(-Int32FromInt32(1)), + 33: Uint8FromInt32(-Int32FromInt32(1)), + 34: Uint8FromInt32(-Int32FromInt32(1)), + 35: Uint8FromInt32(-Int32FromInt32(1)), + 36: Uint8FromInt32(-Int32FromInt32(1)), + 37: Uint8FromInt32(-Int32FromInt32(1)), + 38: Uint8FromInt32(-Int32FromInt32(1)), + 39: Uint8FromInt32(-Int32FromInt32(1)), + 40: Uint8FromInt32(-Int32FromInt32(1)), + 41: Uint8FromInt32(-Int32FromInt32(1)), + 42: Uint8FromInt32(-Int32FromInt32(1)), + 43: Uint8FromInt32(-Int32FromInt32(1)), + 44: Uint8FromInt32(-Int32FromInt32(1)), + 45: Uint8FromInt32(-Int32FromInt32(1)), + 46: Uint8FromInt32(-Int32FromInt32(1)), + 47: Uint8FromInt32(-Int32FromInt32(1)), + 48: Uint8FromInt32(-Int32FromInt32(1)), + 50: uint8(1), + 51: uint8(2), + 52: uint8(3), + 53: uint8(4), + 54: uint8(5), + 55: uint8(6), + 56: uint8(7), + 57: uint8(8), + 58: uint8(9), + 59: Uint8FromInt32(-Int32FromInt32(1)), + 60: Uint8FromInt32(-Int32FromInt32(1)), + 61: Uint8FromInt32(-Int32FromInt32(1)), + 62: Uint8FromInt32(-Int32FromInt32(1)), + 63: Uint8FromInt32(-Int32FromInt32(1)), + 64: Uint8FromInt32(-Int32FromInt32(1)), + 65: Uint8FromInt32(-Int32FromInt32(1)), + 66: uint8(10), + 67: uint8(11), + 68: uint8(12), + 69: uint8(13), + 70: uint8(14), + 71: uint8(15), + 72: uint8(16), + 73: uint8(17), + 74: uint8(18), + 75: uint8(19), + 76: uint8(20), + 77: uint8(21), + 78: uint8(22), + 79: uint8(23), + 80: uint8(24), + 81: uint8(25), + 82: uint8(26), + 83: uint8(27), + 84: uint8(28), + 85: uint8(29), + 86: uint8(30), + 87: uint8(31), + 88: uint8(32), + 89: uint8(33), + 90: uint8(34), + 91: uint8(35), + 92: Uint8FromInt32(-Int32FromInt32(1)), + 93: Uint8FromInt32(-Int32FromInt32(1)), + 94: Uint8FromInt32(-Int32FromInt32(1)), + 95: Uint8FromInt32(-Int32FromInt32(1)), + 96: Uint8FromInt32(-Int32FromInt32(1)), + 97: Uint8FromInt32(-Int32FromInt32(1)), + 98: uint8(10), + 99: uint8(11), + 100: uint8(12), + 101: uint8(13), + 102: uint8(14), + 103: uint8(15), + 104: uint8(16), + 105: uint8(17), + 106: uint8(18), + 107: uint8(19), + 108: uint8(20), + 109: uint8(21), + 110: uint8(22), + 111: uint8(23), + 112: uint8(24), + 113: uint8(25), + 114: uint8(26), + 115: uint8(27), + 116: uint8(28), + 117: uint8(29), + 118: uint8(30), + 119: uint8(31), + 120: uint8(32), + 121: uint8(33), + 122: uint8(34), + 123: uint8(35), + 124: Uint8FromInt32(-Int32FromInt32(1)), + 125: Uint8FromInt32(-Int32FromInt32(1)), + 126: Uint8FromInt32(-Int32FromInt32(1)), + 127: Uint8FromInt32(-Int32FromInt32(1)), + 128: Uint8FromInt32(-Int32FromInt32(1)), + 129: Uint8FromInt32(-Int32FromInt32(1)), + 130: Uint8FromInt32(-Int32FromInt32(1)), + 131: Uint8FromInt32(-Int32FromInt32(1)), + 132: Uint8FromInt32(-Int32FromInt32(1)), + 133: Uint8FromInt32(-Int32FromInt32(1)), + 134: Uint8FromInt32(-Int32FromInt32(1)), + 135: Uint8FromInt32(-Int32FromInt32(1)), + 136: Uint8FromInt32(-Int32FromInt32(1)), + 137: Uint8FromInt32(-Int32FromInt32(1)), + 138: Uint8FromInt32(-Int32FromInt32(1)), + 139: Uint8FromInt32(-Int32FromInt32(1)), + 140: Uint8FromInt32(-Int32FromInt32(1)), + 141: Uint8FromInt32(-Int32FromInt32(1)), + 142: Uint8FromInt32(-Int32FromInt32(1)), + 143: Uint8FromInt32(-Int32FromInt32(1)), + 144: Uint8FromInt32(-Int32FromInt32(1)), + 145: Uint8FromInt32(-Int32FromInt32(1)), + 146: Uint8FromInt32(-Int32FromInt32(1)), + 147: Uint8FromInt32(-Int32FromInt32(1)), + 148: Uint8FromInt32(-Int32FromInt32(1)), + 149: Uint8FromInt32(-Int32FromInt32(1)), + 150: Uint8FromInt32(-Int32FromInt32(1)), + 151: Uint8FromInt32(-Int32FromInt32(1)), + 152: Uint8FromInt32(-Int32FromInt32(1)), + 153: Uint8FromInt32(-Int32FromInt32(1)), + 154: Uint8FromInt32(-Int32FromInt32(1)), + 155: Uint8FromInt32(-Int32FromInt32(1)), + 156: Uint8FromInt32(-Int32FromInt32(1)), + 157: Uint8FromInt32(-Int32FromInt32(1)), + 158: Uint8FromInt32(-Int32FromInt32(1)), + 159: Uint8FromInt32(-Int32FromInt32(1)), + 160: Uint8FromInt32(-Int32FromInt32(1)), + 161: Uint8FromInt32(-Int32FromInt32(1)), + 162: Uint8FromInt32(-Int32FromInt32(1)), + 163: Uint8FromInt32(-Int32FromInt32(1)), + 164: Uint8FromInt32(-Int32FromInt32(1)), + 165: Uint8FromInt32(-Int32FromInt32(1)), + 166: Uint8FromInt32(-Int32FromInt32(1)), + 167: Uint8FromInt32(-Int32FromInt32(1)), + 168: Uint8FromInt32(-Int32FromInt32(1)), + 169: Uint8FromInt32(-Int32FromInt32(1)), + 170: Uint8FromInt32(-Int32FromInt32(1)), + 171: Uint8FromInt32(-Int32FromInt32(1)), + 172: Uint8FromInt32(-Int32FromInt32(1)), + 173: Uint8FromInt32(-Int32FromInt32(1)), + 174: Uint8FromInt32(-Int32FromInt32(1)), + 175: Uint8FromInt32(-Int32FromInt32(1)), + 176: Uint8FromInt32(-Int32FromInt32(1)), + 177: Uint8FromInt32(-Int32FromInt32(1)), + 178: Uint8FromInt32(-Int32FromInt32(1)), + 179: Uint8FromInt32(-Int32FromInt32(1)), + 180: Uint8FromInt32(-Int32FromInt32(1)), + 181: Uint8FromInt32(-Int32FromInt32(1)), + 182: Uint8FromInt32(-Int32FromInt32(1)), + 183: Uint8FromInt32(-Int32FromInt32(1)), + 184: Uint8FromInt32(-Int32FromInt32(1)), + 185: Uint8FromInt32(-Int32FromInt32(1)), + 186: Uint8FromInt32(-Int32FromInt32(1)), + 187: Uint8FromInt32(-Int32FromInt32(1)), + 188: Uint8FromInt32(-Int32FromInt32(1)), + 189: Uint8FromInt32(-Int32FromInt32(1)), + 190: Uint8FromInt32(-Int32FromInt32(1)), + 191: Uint8FromInt32(-Int32FromInt32(1)), + 192: Uint8FromInt32(-Int32FromInt32(1)), + 193: Uint8FromInt32(-Int32FromInt32(1)), + 194: Uint8FromInt32(-Int32FromInt32(1)), + 195: Uint8FromInt32(-Int32FromInt32(1)), + 196: Uint8FromInt32(-Int32FromInt32(1)), + 197: Uint8FromInt32(-Int32FromInt32(1)), + 198: Uint8FromInt32(-Int32FromInt32(1)), + 199: Uint8FromInt32(-Int32FromInt32(1)), + 200: Uint8FromInt32(-Int32FromInt32(1)), + 201: Uint8FromInt32(-Int32FromInt32(1)), + 202: Uint8FromInt32(-Int32FromInt32(1)), + 203: Uint8FromInt32(-Int32FromInt32(1)), + 204: Uint8FromInt32(-Int32FromInt32(1)), + 205: Uint8FromInt32(-Int32FromInt32(1)), + 206: Uint8FromInt32(-Int32FromInt32(1)), + 207: Uint8FromInt32(-Int32FromInt32(1)), + 208: Uint8FromInt32(-Int32FromInt32(1)), + 209: Uint8FromInt32(-Int32FromInt32(1)), + 210: Uint8FromInt32(-Int32FromInt32(1)), + 211: Uint8FromInt32(-Int32FromInt32(1)), + 212: Uint8FromInt32(-Int32FromInt32(1)), + 213: Uint8FromInt32(-Int32FromInt32(1)), + 214: Uint8FromInt32(-Int32FromInt32(1)), + 215: Uint8FromInt32(-Int32FromInt32(1)), + 216: Uint8FromInt32(-Int32FromInt32(1)), + 217: Uint8FromInt32(-Int32FromInt32(1)), + 218: Uint8FromInt32(-Int32FromInt32(1)), + 219: Uint8FromInt32(-Int32FromInt32(1)), + 220: Uint8FromInt32(-Int32FromInt32(1)), + 221: Uint8FromInt32(-Int32FromInt32(1)), + 222: Uint8FromInt32(-Int32FromInt32(1)), + 223: Uint8FromInt32(-Int32FromInt32(1)), + 224: Uint8FromInt32(-Int32FromInt32(1)), + 225: Uint8FromInt32(-Int32FromInt32(1)), + 226: Uint8FromInt32(-Int32FromInt32(1)), + 227: Uint8FromInt32(-Int32FromInt32(1)), + 228: Uint8FromInt32(-Int32FromInt32(1)), + 229: Uint8FromInt32(-Int32FromInt32(1)), + 230: Uint8FromInt32(-Int32FromInt32(1)), + 231: Uint8FromInt32(-Int32FromInt32(1)), + 232: Uint8FromInt32(-Int32FromInt32(1)), + 233: Uint8FromInt32(-Int32FromInt32(1)), + 234: Uint8FromInt32(-Int32FromInt32(1)), + 235: Uint8FromInt32(-Int32FromInt32(1)), + 236: Uint8FromInt32(-Int32FromInt32(1)), + 237: Uint8FromInt32(-Int32FromInt32(1)), + 238: Uint8FromInt32(-Int32FromInt32(1)), + 239: Uint8FromInt32(-Int32FromInt32(1)), + 240: Uint8FromInt32(-Int32FromInt32(1)), + 241: Uint8FromInt32(-Int32FromInt32(1)), + 242: Uint8FromInt32(-Int32FromInt32(1)), + 243: Uint8FromInt32(-Int32FromInt32(1)), + 244: Uint8FromInt32(-Int32FromInt32(1)), + 245: Uint8FromInt32(-Int32FromInt32(1)), + 246: Uint8FromInt32(-Int32FromInt32(1)), + 247: Uint8FromInt32(-Int32FromInt32(1)), + 248: Uint8FromInt32(-Int32FromInt32(1)), + 249: Uint8FromInt32(-Int32FromInt32(1)), + 250: Uint8FromInt32(-Int32FromInt32(1)), + 251: Uint8FromInt32(-Int32FromInt32(1)), + 252: Uint8FromInt32(-Int32FromInt32(1)), + 253: Uint8FromInt32(-Int32FromInt32(1)), + 254: Uint8FromInt32(-Int32FromInt32(1)), + 255: Uint8FromInt32(-Int32FromInt32(1)), + 256: Uint8FromInt32(-Int32FromInt32(1)), +} + +func X__intscan(tls *TLS, f uintptr, base uint32, pok int32, lim uint64) (r uint64) { + if __ccgo_strace { + trc("tls=%v f=%v base=%v pok=%v lim=%v, (%v:)", tls, f, base, pok, lim, origin(2)) + defer func() { trc("-> %v", r) }() + } + var bs, c, neg, v1, v2, v5, v6 int32 + var val, v3, v4 uintptr + var x uint32 + var y uint64 + _, _, _, _, _, _, _, _, _, _, _, _ = bs, c, neg, val, x, y, v1, v2, v3, v4, v5, v6 + val = uintptr(unsafe.Pointer(&_table6)) + uintptr(1) + neg = 0 + if base > uint32(36) || base == uint32(1) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uint64(0) + } + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 4 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v2 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v2 = X__shgetc(tls, f) + } + v1 = v2 + c = v1 + v5 = v1 + v6 = BoolInt32(v5 == int32(' ') || Uint32FromInt32(v5)-uint32('\t') < uint32(5)) + goto _7 + _7: + if !(v6 != 0) { + break + } + } + if c == int32('+') || c == int32('-') { + neg = -BoolInt32(c == int32('-')) + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 4 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + if (base == uint32(0) || base == uint32(16)) && c == int32('0') { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 4 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + if c|int32(32) == int32('x') { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 4 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + if Int32FromUint8(**(**uint8)(__ccgo_up(val + uintptr(c)))) >= int32(16) { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + if pok != 0 { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + } else { + X__shlim(tls, f, int64(Int32FromInt32(0))) + } + return uint64(0) + } + base = uint32(16) + } else { + if base == uint32(0) { + base = uint32(8) + } + } + } else { + if base == uint32(0) { + base = uint32(10) + } + if uint32(**(**uint8)(__ccgo_up(val + uintptr(c)))) >= base { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + X__shlim(tls, f, int64(Int32FromInt32(0))) + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uint64(0) + } + } + if base == uint32(10) { + x = uint32(0) + for { + if !(Uint32FromInt32(c-int32('0')) < uint32(10) && x <= Uint32FromUint32(0xffffffff)/Uint32FromInt32(10)-Uint32FromInt32(1)) { + break + } + x = x*uint32(10) + Uint32FromInt32(c-Int32FromUint8('0')) + goto _17 + _17: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 4 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + y = uint64(x) + for { + if !(Uint32FromInt32(c-int32('0')) < uint32(10) && y <= (Uint64FromUint64(2)*Uint64FromInt64(0x7fffffffffffffff)+Uint64FromInt32(1))/Uint64FromInt32(10) && uint64(10)*y <= Uint64FromUint64(2)*Uint64FromInt64(0x7fffffffffffffff)+Uint64FromInt32(1)-Uint64FromInt32(c-Int32FromUint8('0'))) { + break + } + y = y*uint64(10) + Uint64FromInt32(c-Int32FromUint8('0')) + goto _21 + _21: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 4 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + if Uint32FromInt32(c-int32('0')) >= uint32(10) { + goto done + } + } else { + if !(base&(base-Uint32FromInt32(1)) != 0) { + bs = int32(**(**int8)(__ccgo_up(__ccgo_ts + 260 + uintptr(uint32(0x17)*base>>int32(5)&uint32(7))))) + x = uint32(0) + for { + if !(uint32(**(**uint8)(__ccgo_up(val + uintptr(c)))) < base && x <= Uint32FromUint32(0xffffffff)/Uint32FromInt32(32)) { + break + } + x = x<>bs) { + break + } + y = y<= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + if y >= lim { + if !(lim&Uint64FromInt32(1) != 0) && !(neg != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ERANGE) + return lim - uint64(1) + } else { + if y > lim { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ERANGE) + return lim + } + } + } + return y ^ Uint64FromInt32(neg) - Uint64FromInt32(neg) +} + +func X__procfdname(tls *TLS, buf uintptr, fd uint32) { + if __ccgo_strace { + trc("tls=%v buf=%v fd=%v, (%v:)", tls, buf, fd, origin(2)) + } + var i, j, v5 uint32 + var v2 int8 + _, _, _, _ = i, j, v2, v5 + i = uint32(0) + for { + v2 = **(**int8)(__ccgo_up(__ccgo_ts + 269 + uintptr(i))) + **(**int8)(__ccgo_up(buf + uintptr(i))) = v2 + if !(v2 != 0) { + break + } + goto _1 + _1: + ; + i = i + 1 + } + if !(fd != 0) { + **(**int8)(__ccgo_up(buf + uintptr(i))) = int8('0') + **(**int8)(__ccgo_up(buf + uintptr(i+uint32(1)))) = 0 + return + } + j = fd + for { + if !(j != 0) { + break + } + goto _3 + _3: + ; + j = j / uint32(10) + i = i + 1 + } + **(**int8)(__ccgo_up(buf + uintptr(i))) = 0 + for { + if !(fd != 0) { + break + } + i = i - 1 + v5 = i + **(**int8)(__ccgo_up(buf + uintptr(v5))) = Int8FromUint32(uint32('0') + fd%uint32(10)) + goto _4 + _4: + ; + fd = fd / uint32(10) + } +} + +/* The shcnt field stores the number of bytes read so far, offset by + * the value of buf-rpos at the last function call (__shlim or __shgetc), + * so that between calls the inline shcnt macro can add rpos-buf to get + * the actual count. */ + +func X__shlim(tls *TLS, f uintptr, lim Toff_t) { + if __ccgo_strace { + trc("tls=%v f=%v lim=%v, (%v:)", tls, f, lim, origin(2)) + } + (*TFILE)(unsafe.Pointer(f)).Fshlim = lim + (*TFILE)(unsafe.Pointer(f)).Fshcnt = int64(int32((*TFILE)(unsafe.Pointer(f)).Fbuf) - int32((*TFILE)(unsafe.Pointer(f)).Frpos)) + /* If lim is nonzero, rend must be a valid pointer. */ + if lim != 0 && int64(int32((*TFILE)(unsafe.Pointer(f)).Frend)-int32((*TFILE)(unsafe.Pointer(f)).Frpos)) > lim { + (*TFILE)(unsafe.Pointer(f)).Fshend = (*TFILE)(unsafe.Pointer(f)).Frpos + uintptr(lim) + } else { + (*TFILE)(unsafe.Pointer(f)).Fshend = (*TFILE)(unsafe.Pointer(f)).Frend + } +} + +func X__shgetc(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var c, v1 int32 + var cnt Toff_t + var v2 bool + _, _, _, _ = c, cnt, v1, v2 + cnt = (*TFILE)(unsafe.Pointer(f)).Fshcnt + int64(int32((*TFILE)(unsafe.Pointer(f)).Frpos)-int32((*TFILE)(unsafe.Pointer(f)).Fbuf)) + if v2 = (*TFILE)(unsafe.Pointer(f)).Fshlim != 0 && cnt >= (*TFILE)(unsafe.Pointer(f)).Fshlim; !v2 { + v1 = X__uflow(tls, f) + c = v1 + } + if v2 || v1 < 0 { + (*TFILE)(unsafe.Pointer(f)).Fshcnt = int64(int32((*TFILE)(unsafe.Pointer(f)).Fbuf)-int32((*TFILE)(unsafe.Pointer(f)).Frpos)) + cnt + (*TFILE)(unsafe.Pointer(f)).Fshend = (*TFILE)(unsafe.Pointer(f)).Frpos + (*TFILE)(unsafe.Pointer(f)).Fshlim = int64(-int32(1)) + return -int32(1) + } + cnt = cnt + 1 + if (*TFILE)(unsafe.Pointer(f)).Fshlim != 0 && int64(int32((*TFILE)(unsafe.Pointer(f)).Frend)-int32((*TFILE)(unsafe.Pointer(f)).Frpos)) > (*TFILE)(unsafe.Pointer(f)).Fshlim-cnt { + (*TFILE)(unsafe.Pointer(f)).Fshend = (*TFILE)(unsafe.Pointer(f)).Frpos + uintptr((*TFILE)(unsafe.Pointer(f)).Fshlim-cnt) + } else { + (*TFILE)(unsafe.Pointer(f)).Fshend = (*TFILE)(unsafe.Pointer(f)).Frend + } + (*TFILE)(unsafe.Pointer(f)).Fshcnt = int64(int32((*TFILE)(unsafe.Pointer(f)).Fbuf)-int32((*TFILE)(unsafe.Pointer(f)).Frpos)) + cnt + if (*TFILE)(unsafe.Pointer(f)).Frpos <= (*TFILE)(unsafe.Pointer(f)).Fbuf { + **(**uint8)(__ccgo_up((*TFILE)(unsafe.Pointer(f)).Frpos + uintptr(-Int32FromInt32(1)))) = Uint8FromInt32(c) + } + return c +} + +func X__syscall_ret(tls *TLS, r uint32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v r=%v, (%v:)", tls, r, origin(2)) + defer func() { trc("-> %v", r1) }() + } + if r > -Uint32FromUint32(4096) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = Int32FromUint32(-r) + return -int32(1) + } + return Int32FromUint32(r) +} + +type TElf_Symndx = uint32 + +type Tdl_phdr_info = struct { + Fdlpi_addr TElf32_Addr + Fdlpi_name uintptr + Fdlpi_phdr uintptr + Fdlpi_phnum TElf32_Half + Fdlpi_adds uint64 + Fdlpi_subs uint64 + Fdlpi_tls_modid Tsize_t + Fdlpi_tls_data uintptr +} + +type Tlink_map = struct { + Fl_addr TElf32_Addr + Fl_name uintptr + Fl_ld uintptr + Fl_next uintptr + Fl_prev uintptr +} + +type Tr_debug = struct { + Fr_version int32 + Fr_map uintptr + Fr_brk TElf32_Addr + Fr_state int32 + Fr_ldbase TElf32_Addr +} + +const _RT_CONSISTENT = 0 +const _RT_ADD = 1 +const _RT_DELETE = 2 +const VERSION = "1.2.5" + +const IPC_CREAT = 512 +const IPC_EXCL = 1024 +const IPC_INFO = 3 +const IPC_NOWAIT = 2048 +const IPC_RMID = 0 +const IPC_SET = 1 +const IPC_STAT = 258 +const __ipc_perm_key = 0 +const __ipc_perm_seq = 0 + +type Tkey_t = int32 + +type Tipc_perm = struct { + F__key Tkey_t + Fuid Tuid_t + Fgid Tgid_t + Fcuid Tuid_t + Fcgid Tgid_t + Fmode Tmode_t + F__seq int32 + F__pad1 int32 + F__pad2 int32 +} + +func Xftok(tls *TLS, path uintptr, id int32) (r Tkey_t) { + if __ccgo_strace { + trc("tls=%v path=%v id=%v, (%v:)", tls, path, id, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(144) + defer tls.Free(144) + var _ /* st at bp+0 */ Tstat + if Xstat(tls, path, bp) < 0 { + return -int32(1) + } + return Int32FromUint64((**(**Tstat)(__ccgo_up(bp))).Fst_ino&Uint64FromInt32(0xffff) | (**(**Tstat)(__ccgo_up(bp))).Fst_dev&Uint64FromInt32(0xff)< %v", r1) }() + } + bp := tls.Alloc(112) + defer tls.Free(112) + var orig uintptr + var r int32 + var _ /* out at bp+0 */ Tmsqid_ds + _, _ = orig, r + if cmd&(Int32FromInt32(IPC_STAT)&Int32FromInt32(0x100)) != 0 { + **(**Tmsqid_ds)(__ccgo_up(bp)) = Tmsqid_ds{} + orig = buf + buf = bp + } + r = int32(X__syscall6(tls, int32(SYS_ipc), int32(Int32FromInt32(IPCOP_msgctl)), q, int32(cmd & ^(Int32FromInt32(IPC_STAT)&Int32FromInt32(0x100)) | Int32FromInt32(IPC_64)), int32(Int32FromInt32(0)), int32(buf), int32(Int32FromInt32(0)))) + if r >= 0 && cmd&(Int32FromInt32(IPC_STAT)&Int32FromInt32(0x100)) != 0 { + buf = orig + **(**Tmsqid_ds)(__ccgo_up(buf)) = **(**Tmsqid_ds)(__ccgo_up(bp)) + (*Tmsqid_ds)(unsafe.Pointer(buf)).Fmsg_stime = Int64FromUint32((*Tmsqid_ds)(unsafe.Pointer(buf)).F__msg_stime_lo) | (0+Int64FromUint32((*Tmsqid_ds)(unsafe.Pointer(buf)).F__msg_stime_hi))< %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_ipc), int32(Int32FromInt32(IPCOP_msgget)), k, flag))) +} + +func Xmsgrcv(tls *TLS, q int32, m uintptr, len1 Tsize_t, type1 int32, flag int32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v q=%v m=%v len1=%v type1=%v flag=%v, (%v:)", tls, q, m, len1, type1, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + *(*[2]int32)(unsafe.Pointer(bp)) = [2]int32{ + 0: int32(m), + 1: type1, + } + return X__syscall_ret(tls, Uint32FromInt32(___syscall_cp(tls, int32(SYS_ipc), int32(Int32FromInt32(IPCOP_msgrcv)), q, Int32FromUint32(len1), flag, int32(bp), 0))) +} + +func Xmsgsnd(tls *TLS, q int32, m uintptr, len1 Tsize_t, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v q=%v m=%v len1=%v flag=%v, (%v:)", tls, q, m, len1, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(___syscall_cp(tls, int32(SYS_ipc), int32(Int32FromInt32(IPCOP_msgsnd)), q, Int32FromUint32(len1), flag, int32(m), 0))) +} + +const GETALL = 13 +const GETNCNT = 14 +const GETPID = 11 +const GETVAL = 12 +const GETZCNT = 15 +const SEM_INFO = 19 +const SEM_STAT = 274 +const SEM_STAT_ANY = 276 +const SEM_UNDO = 4096 +const SETALL = 17 +const SETVAL = 16 +const _SEM_SEMUN_UNDEFINED = 1 + +type Tsemid_ds = struct { + Fsem_perm Tipc_perm + F__sem_otime_lo uint32 + F__sem_otime_hi uint32 + F__sem_ctime_lo uint32 + F__sem_ctime_hi uint32 + Fsem_nsems uint16 + F__sem_nsems_pad [2]int8 + F__unused3 int32 + F__unused4 int32 + Fsem_otime Ttime_t + Fsem_ctime Ttime_t +} + +type Tseminfo = struct { + Fsemmap int32 + Fsemmni int32 + Fsemmns int32 + Fsemmnu int32 + Fsemmsl int32 + Fsemopm int32 + Fsemume int32 + Fsemusz int32 + Fsemvmx int32 + Fsemaem int32 +} + +type Tsembuf = struct { + Fsem_num uint16 + Fsem_op int16 + Fsem_flg int16 +} + +type Tsemun = struct { + Fbuf [0]uintptr + Farray [0]uintptr + Fval int32 +} + +func Xsemctl(tls *TLS, id int32, num int32, cmd int32, va uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v id=%v num=%v cmd=%v va=%v, (%v:)", tls, id, num, cmd, va, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(96) + defer tls.Free(96) + var ap Tva_list + var orig uintptr + var r int32 + var _ /* arg at bp+0 */ Tsemun + var _ /* out at bp+4 */ Tsemid_ds + _, _, _ = ap, orig, r + *(*Tsemun)(unsafe.Pointer(bp)) = Tsemun{} + *(*int32)(unsafe.Pointer(bp)) = 0 + switch cmd & ^(Int32FromInt32(IPC_STAT) & Int32FromInt32(0x100)) { + case int32(SETVAL): + fallthrough + case int32(GETALL): + fallthrough + case int32(SETALL): + fallthrough + case int32(IPC_SET): + fallthrough + case int32(IPC_INFO): + fallthrough + case int32(SEM_INFO): + fallthrough + case Int32FromInt32(IPC_STAT) & ^(Int32FromInt32(IPC_STAT) & Int32FromInt32(0x100)): + fallthrough + case (Int32FromInt32(18) | Int32FromInt32(IPC_STAT)&Int32FromInt32(0x100)) & ^(Int32FromInt32(IPC_STAT) & Int32FromInt32(0x100)): + fallthrough + case (Int32FromInt32(20) | Int32FromInt32(IPC_STAT)&Int32FromInt32(0x100)) & ^(Int32FromInt32(IPC_STAT) & Int32FromInt32(0x100)): + ap = va + **(**Tsemun)(__ccgo_up(bp)) = *(*Tsemun)(unsafe.Pointer(VaOther(&ap, 4))) + _ = ap + } + if cmd&(Int32FromInt32(IPC_STAT)&Int32FromInt32(0x100)) != 0 { + **(**Tsemid_ds)(__ccgo_up(bp + 4)) = Tsemid_ds{} + orig = *(*uintptr)(unsafe.Pointer(bp)) + *(*uintptr)(unsafe.Pointer(bp)) = bp + 4 + } + r = int32(X__syscall5(tls, int32(SYS_ipc), int32(Int32FromInt32(IPCOP_semctl)), id, num, int32(cmd & ^(Int32FromInt32(IPC_STAT)&Int32FromInt32(0x100)) | Int32FromInt32(IPC_64)), int32(bp))) + if r >= 0 && cmd&(Int32FromInt32(IPC_STAT)&Int32FromInt32(0x100)) != 0 { + *(*uintptr)(unsafe.Pointer(bp)) = orig + **(**Tsemid_ds)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp)))) = **(**Tsemid_ds)(__ccgo_up(bp + 4)) + (*Tsemid_ds)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)))).Fsem_otime = Int64FromUint32((*Tsemid_ds)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)))).F__sem_otime_lo) | (0+Int64FromUint32((*Tsemid_ds)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)))).F__sem_otime_hi))< %v", r) }() + } + /* The kernel uses the wrong type for the sem_nsems member + * of struct semid_ds, and thus might not check that the + * n fits in the correct (per POSIX) userspace type, so + * we have to check here. */ + if n > int32(USHRT_MAX) { + return X__syscall_ret(tls, Uint32FromInt32(-Int32FromInt32(EINVAL))) + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall4(tls, int32(SYS_ipc), int32(Int32FromInt32(IPCOP_semget)), key, n, fl))) +} + +func Xsemop(tls *TLS, id int32, buf uintptr, n Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v id=%v buf=%v n=%v, (%v:)", tls, id, buf, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall5(tls, int32(SYS_ipc), int32(Int32FromInt32(IPCOP_semop)), id, Int32FromUint32(n), int32(Int32FromInt32(0)), int32(buf)))) +} + +const NO_TIME32 = 0 +const __key = 0 +const __seq = 0 + +type Tipc_perm1 = struct { + Fkey Tkey_t + Fuid Tuid_t + Fgid Tgid_t + Fcuid Tuid_t + Fcgid Tgid_t + Fmode Tmode_t + Fseq int32 + F__pad1 int32 + F__pad2 int32 +} + +type Tsemid_ds1 = struct { + Fsem_perm Tipc_perm1 + F__sem_otime_lo uint32 + F__sem_otime_hi uint32 + F__sem_ctime_lo uint32 + F__sem_ctime_hi uint32 + Fsem_nsems uint16 + F__sem_nsems_pad [2]int8 + F__unused3 int32 + F__unused4 int32 + Fsem_otime Ttime_t + Fsem_ctime Ttime_t +} + +func Xsemtimedop(tls *TLS, id int32, buf uintptr, n Tsize_t, ts uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v id=%v buf=%v n=%v ts=%v, (%v:)", tls, id, buf, n, ts, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var ns, r, v2 int32 + var s Ttime_t + var v1 int64 + var v3 uintptr + var v5 uint64 + _, _, _, _, _, _, _ = ns, r, s, v1, v2, v3, v5 + if ts != 0 { + v1 = (*Ttimespec)(unsafe.Pointer(ts)).Ftv_sec + } else { + v1 = 0 + } + s = v1 + if ts != 0 { + v2 = (*Ttimespec)(unsafe.Pointer(ts)).Ftv_nsec + } else { + v2 = 0 + } + ns = v2 + r = -int32(ENOSYS) + if Bool(NO_TIME32 != 0) || !!((Uint64FromInt64(s)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) { + if ts != 0 { + *(*[2]int64)(unsafe.Pointer(bp)) = [2]int64{ + 0: s, + 1: int64(ns), + } + v3 = bp + } else { + v3 = uintptr(0) + } + r = int32(X__syscall4(tls, int32(SYS_semtimedop_time64), id, int32(buf), Int32FromUint32(n), int32(v3))) + } + if Bool(NO_TIME32 != 0) || r != -int32(ENOSYS) { + return X__syscall_ret(tls, Uint32FromInt32(r)) + } + if ts != 0 { + if !((Uint64FromInt64(s)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) { + v5 = Uint64FromInt64(s) + } else { + v5 = uint64(0x7fffffff) + (0+Uint64FromInt64(s))>>int32(63) + } + *(*[2]int32)(unsafe.Pointer(bp + 16)) = [2]int32{ + 0: int32(Int32FromUint64(v5)), + 1: ns, + } + v3 = bp + 16 + } else { + v3 = uintptr(0) + } + ts = v3 + return X__syscall_ret(tls, Uint32FromInt32(X__syscall6(tls, int32(SYS_ipc), int32(Int32FromInt32(IPCOP_semtimedop)), id, Int32FromUint32(n), int32(Int32FromInt32(0)), int32(buf), int32(ts)))) +} + +const SHMLBA = 4096 +const SHM_DEST = 512 +const SHM_EXEC = 32768 +const SHM_HUGETLB = 2048 +const SHM_HUGE_16GB = 2281701376 +const SHM_HUGE_16MB = 1610612736 +const SHM_HUGE_1GB = 2013265920 +const SHM_HUGE_1MB = 1342177280 +const SHM_HUGE_256MB = 1879048192 +const SHM_HUGE_2GB = 2080374784 +const SHM_HUGE_2MB = 1409286144 +const SHM_HUGE_32MB = 1677721600 +const SHM_HUGE_512KB = 1275068416 +const SHM_HUGE_512MB = 1946157056 +const SHM_HUGE_64KB = 1073741824 +const SHM_HUGE_8MB = 1543503872 +const SHM_HUGE_MASK = 63 +const SHM_HUGE_SHIFT = 26 +const SHM_INFO = 14 +const SHM_LOCK = 11 +const SHM_LOCKED = 1024 +const SHM_NORESERVE = 4096 +const SHM_R = 256 +const SHM_RDONLY = 4096 +const SHM_REMAP = 16384 +const SHM_RND = 8192 +const SHM_STAT = 269 +const SHM_STAT_ANY = 271 +const SHM_UNLOCK = 12 +const SHM_W = 128 + +type Tshmid_ds = struct { + Fshm_perm Tipc_perm + Fshm_segsz Tsize_t + F__shm_atime_lo uint32 + F__shm_atime_hi uint32 + F__shm_dtime_lo uint32 + F__shm_dtime_hi uint32 + F__shm_ctime_lo uint32 + F__shm_ctime_hi uint32 + Fshm_cpid Tpid_t + Fshm_lpid Tpid_t + Fshm_nattch uint32 + F__pad1 uint32 + F__pad2 uint32 + F__pad3 uint32 + Fshm_atime Ttime_t + Fshm_dtime Ttime_t + Fshm_ctime Ttime_t +} + +type Tshminfo = struct { + Fshmmax uint32 + Fshmmin uint32 + Fshmmni uint32 + Fshmseg uint32 + Fshmall uint32 + F__unused [4]uint32 +} + +type Tshm_info = struct { + F__used_ids int32 + Fshm_tot uint32 + Fshm_rss uint32 + Fshm_swp uint32 + F__swap_attempts uint32 + F__swap_successes uint32 +} + +type Tshmatt_t = uint32 + +func Xshmat(tls *TLS, id int32, _addr uintptr, flag int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v id=%v _addr=%v flag=%v, (%v:)", tls, id, _addr, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + *(*uintptr)(unsafe.Pointer(bp)) = _addr + var ret uint32 + var v1 uintptr + _, _ = ret, v1 + ret = Uint32FromInt32(X__syscall_ret(tls, Uint32FromInt32(X__syscall5(tls, int32(SYS_ipc), int32(Int32FromInt32(IPCOP_shmat)), id, flag, int32(bp), int32(**(**uintptr)(__ccgo_up(bp))))))) + if ret > -Uint32FromInt32(SHMLBA) { + v1 = uintptr(ret) + } else { + v1 = **(**uintptr)(__ccgo_up(bp)) + } + return v1 +} + +func Xshmctl(tls *TLS, id int32, cmd int32, buf uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v id=%v cmd=%v buf=%v, (%v:)", tls, id, cmd, buf, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(112) + defer tls.Free(112) + var orig uintptr + var r int32 + var _ /* out at bp+0 */ Tshmid_ds + _, _ = orig, r + if cmd&(Int32FromInt32(IPC_STAT)&Int32FromInt32(0x100)) != 0 { + **(**Tshmid_ds)(__ccgo_up(bp)) = Tshmid_ds{} + orig = buf + buf = bp + } + r = int32(X__syscall6(tls, int32(SYS_ipc), int32(Int32FromInt32(IPCOP_shmctl)), id, int32(cmd & ^(Int32FromInt32(IPC_STAT)&Int32FromInt32(0x100)) | Int32FromInt32(IPC_64)), int32(Int32FromInt32(0)), int32(buf), int32(Int32FromInt32(0)))) + if r >= 0 && cmd&(Int32FromInt32(IPC_STAT)&Int32FromInt32(0x100)) != 0 { + buf = orig + **(**Tshmid_ds)(__ccgo_up(buf)) = **(**Tshmid_ds)(__ccgo_up(bp)) + (*Tshmid_ds)(unsafe.Pointer(buf)).Fshm_atime = Int64FromUint32((*Tshmid_ds)(unsafe.Pointer(buf)).F__shm_atime_lo) | (0+Int64FromUint32((*Tshmid_ds)(unsafe.Pointer(buf)).F__shm_atime_hi))< %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall5(tls, int32(SYS_ipc), int32(Int32FromInt32(IPCOP_shmdt)), int32(Int32FromInt32(0)), int32(Int32FromInt32(0)), int32(Int32FromInt32(0)), int32(addr)))) +} + +func Xshmget(tls *TLS, key Tkey_t, size Tsize_t, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v key=%v size=%v flag=%v, (%v:)", tls, key, size, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + if size > Uint32FromInt32(Int32FromInt32(INT32_MAX)) { + size = Uint32FromUint32(0xffffffff) + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall4(tls, int32(SYS_ipc), int32(Int32FromInt32(IPCOP_shmget)), key, Int32FromUint32(size), flag))) +} + +type Tpasswd = struct { + Fpw_name uintptr + Fpw_passwd uintptr + Fpw_uid Tuid_t + Fpw_gid Tgid_t + Fpw_gecos uintptr + Fpw_dir uintptr + Fpw_shell uintptr +} + +func Xcuserid(tls *TLS, buf uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v buf=%v, (%v:)", tls, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(1056) + defer tls.Free(1056) + var len1 Tsize_t + var _ /* ppw at bp+28 */ uintptr + var _ /* pw at bp+0 */ Tpasswd + var _ /* pwb at bp+32 */ [256]int32 + _ = len1 + if buf != 0 { + **(**int8)(__ccgo_up(buf)) = 0 + } + Xgetpwuid_r(tls, Xgeteuid(tls), bp, bp+32, uint32(1024), bp+28) + if !(**(**uintptr)(__ccgo_up(bp + 28)) != 0) { + return buf + } + len1 = Xstrnlen(tls, (**(**Tpasswd)(__ccgo_up(bp))).Fpw_name, uint32(L_cuserid)) + if len1 == uint32(L_cuserid) { + return buf + } + if !(buf != 0) { + buf = uintptr(unsafe.Pointer(&_usridbuf)) + } + Xmemcpy(tls, buf, (**(**Tpasswd)(__ccgo_up(bp))).Fpw_name, len1+uint32(1)) + return buf +} + +var _usridbuf [20]int8 + +func Xvwarn(tls *TLS, fmt uintptr, ap Tva_list) { + if __ccgo_strace { + trc("tls=%v fmt=%v ap=%v, (%v:)", tls, fmt, ap, origin(2)) + } + bp := tls.Alloc(16) + defer tls.Free(16) + Xfprintf(tls, uintptr(unsafe.Pointer(&X__stderr_FILE)), __ccgo_ts+284, VaList(bp+8, Xprogram_invocation_short_name)) + if fmt != 0 { + Xvfprintf(tls, uintptr(unsafe.Pointer(&X__stderr_FILE)), fmt, ap) + Xfputs(tls, __ccgo_ts+289, uintptr(unsafe.Pointer(&X__stderr_FILE))) + } + Xperror(tls, uintptr(0)) +} + +func Xvwarnx(tls *TLS, fmt uintptr, ap Tva_list) { + if __ccgo_strace { + trc("tls=%v fmt=%v ap=%v, (%v:)", tls, fmt, ap, origin(2)) + } + bp := tls.Alloc(16) + defer tls.Free(16) + Xfprintf(tls, uintptr(unsafe.Pointer(&X__stderr_FILE)), __ccgo_ts+284, VaList(bp+8, Xprogram_invocation_short_name)) + if fmt != 0 { + Xvfprintf(tls, uintptr(unsafe.Pointer(&X__stderr_FILE)), fmt, ap) + } + Xputc(tls, int32('\n'), uintptr(unsafe.Pointer(&X__stderr_FILE))) +} + +func Xverr(tls *TLS, status int32, fmt uintptr, ap Tva_list) { + if __ccgo_strace { + trc("tls=%v status=%v fmt=%v ap=%v, (%v:)", tls, status, fmt, ap, origin(2)) + } + Xvwarn(tls, fmt, ap) + _exit(tls, status) +} + +func Xverrx(tls *TLS, status int32, fmt uintptr, ap Tva_list) { + if __ccgo_strace { + trc("tls=%v status=%v fmt=%v ap=%v, (%v:)", tls, status, fmt, ap, origin(2)) + } + Xvwarnx(tls, fmt, ap) + _exit(tls, status) +} + +func Xwarn(tls *TLS, fmt uintptr, va uintptr) { + if __ccgo_strace { + trc("tls=%v fmt=%v va=%v, (%v:)", tls, fmt, va, origin(2)) + } + var ap Tva_list + _ = ap + ap = va + Xvwarn(tls, fmt, ap) + _ = ap +} + +func Xwarnx(tls *TLS, fmt uintptr, va uintptr) { + if __ccgo_strace { + trc("tls=%v fmt=%v va=%v, (%v:)", tls, fmt, va, origin(2)) + } + var ap Tva_list + _ = ap + ap = va + Xvwarnx(tls, fmt, ap) + _ = ap +} + +func Xerr(tls *TLS, status int32, fmt uintptr, va uintptr) { + if __ccgo_strace { + trc("tls=%v status=%v fmt=%v va=%v, (%v:)", tls, status, fmt, va, origin(2)) + } + var ap Tva_list + _ = ap + ap = va + Xverr(tls, status, fmt, ap) + _ = ap +} + +func Xerrx(tls *TLS, status int32, fmt uintptr, va uintptr) { + if __ccgo_strace { + trc("tls=%v status=%v fmt=%v va=%v, (%v:)", tls, status, fmt, va, origin(2)) + } + var ap Tva_list + _ = ap + ap = va + Xverrx(tls, status, fmt, ap) + _ = ap +} + +func Xeuidaccess(tls *TLS, filename uintptr, amode int32) (r int32) { + if __ccgo_strace { + trc("tls=%v filename=%v amode=%v, (%v:)", tls, filename, amode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfaccessat(tls, -int32(100), filename, amode, int32(AT_EACCESS)) +} + +func Xeaccess(tls *TLS, filename uintptr, amode int32) (r int32) { + if __ccgo_strace { + trc("tls=%v filename=%v amode=%v, (%v:)", tls, filename, amode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xeuidaccess(tls, filename, amode) +} + +const FTW_CHDIR = 4 +const FTW_D = 2 +const FTW_DEPTH = 8 +const FTW_DNR = 3 +const FTW_DP = 6 +const FTW_F = 1 +const FTW_MOUNT = 2 +const FTW_NS = 4 +const FTW_PHYS = 1 +const FTW_SL = 5 +const FTW_SLN = 7 + +type TFTW = struct { + Fbase int32 + Flevel int32 +} + +type t__ccgo_fp__Xftw_1 = func(*TLS, uintptr, uintptr, int32) int32 + +func Xftw(tls *TLS, path uintptr, __ccgo_fp_fn uintptr, fd_limit int32) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v __ccgo_fp_fn=%v fd_limit=%v, (%v:)", tls, path, __ccgo_fp_fn, fd_limit, origin(2)) + defer func() { trc("-> %v", r) }() + } + /* The following cast assumes that calling a function with one + * argument more than it needs behaves as expected. This is + * actually undefined, but works on all real-world machines. */ + return Xnftw(tls, path, __ccgo_fp_fn, fd_limit, int32(FTW_PHYS)) +} + +const STATX_ALL = 4095 +const STATX_ATIME = 32 +const STATX_BASIC_STATS = 2047 +const STATX_BLOCKS = 1024 +const STATX_BTIME = 2048 +const STATX_CTIME = 128 +const STATX_GID = 16 +const STATX_INO = 256 +const STATX_MODE = 2 +const STATX_MTIME = 64 +const STATX_NLINK = 4 +const STATX_SIZE = 512 +const STATX_TYPE = 1 +const STATX_UID = 8 +const S_IEXEC = 64 +const S_IREAD = 256 +const S_IWRITE = 128 + +type Tstatx_timestamp = struct { + Ftv_sec Tint64_t + Ftv_nsec Tuint32_t + F__pad Tuint32_t +} + +type Tstatx = struct { + Fstx_mask Tuint32_t + Fstx_blksize Tuint32_t + Fstx_attributes Tuint64_t + Fstx_nlink Tuint32_t + Fstx_uid Tuint32_t + Fstx_gid Tuint32_t + Fstx_mode Tuint16_t + F__pad0 [1]Tuint16_t + Fstx_ino Tuint64_t + Fstx_size Tuint64_t + Fstx_blocks Tuint64_t + Fstx_attributes_mask Tuint64_t + Fstx_atime Tstatx_timestamp + Fstx_btime Tstatx_timestamp + Fstx_ctime Tstatx_timestamp + Fstx_mtime Tstatx_timestamp + Fstx_rdev_major Tuint32_t + Fstx_rdev_minor Tuint32_t + Fstx_dev_major Tuint32_t + Fstx_dev_minor Tuint32_t + F__pad1 [14]Tuint64_t +} + +type Ttimezone = struct { + Ftz_minuteswest int32 + Ftz_dsttime int32 +} + +func Xfutimes(tls *TLS, fd int32, tv uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v tv=%v, (%v:)", tls, fd, tv, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var _ /* times at bp+0 */ [2]Ttimespec + if !(tv != 0) { + return Xfutimens(tls, fd, uintptr(0)) + } + (**(**[2]Ttimespec)(__ccgo_up(bp)))[0].Ftv_sec = (**(**Ttimeval)(__ccgo_up(tv))).Ftv_sec + (**(**[2]Ttimespec)(__ccgo_up(bp)))[0].Ftv_nsec = int32((**(**Ttimeval)(__ccgo_up(tv))).Ftv_usec * int64(1000)) + (**(**[2]Ttimespec)(__ccgo_up(bp)))[int32(1)].Ftv_sec = (**(**Ttimeval)(__ccgo_up(tv + 1*16))).Ftv_sec + (**(**[2]Ttimespec)(__ccgo_up(bp)))[int32(1)].Ftv_nsec = int32((**(**Ttimeval)(__ccgo_up(tv + 1*16))).Ftv_usec * int64(1000)) + return Xfutimens(tls, fd, bp) +} + +const prlimit64 = 0 + +func Xgetdtablesize(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uint64 + var _ /* rl at bp+0 */ Trlimit + _ = v1 + Xgetrlimit(tls, int32(RLIMIT_NOFILE), bp) + if (**(**Trlimit)(__ccgo_up(bp))).Frlim_cur < uint64(INT_MAX) { + v1 = (**(**Trlimit)(__ccgo_up(bp))).Frlim_cur + } else { + v1 = uint64(INT_MAX) + } + return Int32FromUint64(v1) +} + +func Xgetloadavg(tls *TLS, a uintptr, n int32) (r int32) { + if __ccgo_strace { + trc("tls=%v a=%v n=%v, (%v:)", tls, a, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(320) + defer tls.Free(320) + var i, v1 int32 + var _ /* si at bp+0 */ Tsysinfo + _, _ = i, v1 + if n <= 0 { + if n != 0 { + v1 = -int32(1) + } else { + v1 = 0 + } + return v1 + } + Xsysinfo(tls, bp) + if n > int32(3) { + n = int32(3) + } + i = 0 + for { + if !(i < n) { + break + } + **(**float64)(__ccgo_up(a + uintptr(i)*8)) = float64(Float64FromFloat64(1) / float64(Int32FromInt32(1)< %v", r) }() + } + return int32(PAGESIZE) +} + +const B0 = 0 +const B1000000 = 4104 +const B110 = 3 +const B115200 = 4098 +const B1152000 = 4105 +const B1200 = 9 +const B134 = 4 +const B150 = 5 +const B1500000 = 4106 +const B1800 = 10 +const B19200 = 14 +const B200 = 6 +const B2000000 = 4107 +const B230400 = 4099 +const B2400 = 11 +const B2500000 = 4108 +const B300 = 7 +const B3000000 = 4109 +const B3500000 = 4110 +const B38400 = 15 +const B4000000 = 4111 +const B460800 = 4100 +const B4800 = 12 +const B50 = 1 +const B500000 = 4101 +const B57600 = 4097 +const B576000 = 4102 +const B600 = 8 +const B75 = 2 +const B921600 = 4103 +const B9600 = 13 +const BRKINT = 2 +const BS0 = 0 +const BS1 = 8192 +const BSDLY = 8192 +const CBAUD = 4111 +const CBAUDEX = 4096 +const CIBAUD = 269418496 +const CLOCAL = 2048 +const CMSPAR = 1073741824 +const CR0 = 0 +const CR1 = 512 +const CR2 = 1024 +const CR3 = 1536 +const CRDLY = 1536 +const CREAD = 128 +const CRTSCTS = 2147483648 +const CS5 = 0 +const CS6 = 16 +const CS7 = 32 +const CS8 = 48 +const CSIZE = 48 +const CSTOPB = 64 +const ECHO = 8 +const ECHOCTL = 512 +const ECHOE = 16 +const ECHOK = 32 +const ECHOKE = 2048 +const ECHONL = 64 +const ECHOPRT = 1024 +const EXTA = 14 +const EXTB = 15 +const EXTPROC = 65536 +const FF0 = 0 +const FF1 = 32768 +const FFDLY = 32768 +const FLUSHO = 4096 +const HUPCL = 1024 +const ICANON = 2 +const ICRNL = 256 +const IEXTEN = 32768 +const IGNBRK = 1 +const IGNCR = 128 +const IGNPAR = 4 +const IMAXBEL = 8192 +const INLCR = 64 +const INPCK = 16 +const ISIG = 1 +const ISTRIP = 32 +const IUCLC = 512 +const IUTF8 = 16384 +const IXANY = 2048 +const IXOFF = 4096 +const IXON = 1024 +const NCCS = 32 +const NL0 = 0 +const NL1 = 256 +const NLDLY = 256 +const NOFLSH = 128 +const OCRNL = 8 +const OFDEL = 128 +const OFILL = 64 +const OLCUC = 2 +const ONLCR = 4 +const ONLRET = 32 +const ONOCR = 16 +const OPOST = 1 +const PARENB = 256 +const PARMRK = 8 +const PARODD = 512 +const PENDIN = 16384 +const TAB0 = 0 +const TAB1 = 2048 +const TAB2 = 4096 +const TAB3 = 6144 +const TABDLY = 6144 +const TCIFLUSH = 0 +const TCIOFF = 2 +const TCIOFLUSH = 2 +const TCION = 3 +const TCOFLUSH = 1 +const TCOOFF = 0 +const TCOON = 1 +const TCSADRAIN = 1 +const TCSAFLUSH = 2 +const TCSANOW = 0 +const TOSTOP = 256 +const VDISCARD = 13 +const VEOF = 4 +const VEOL = 11 +const VEOL2 = 16 +const VERASE = 2 +const VINTR = 0 +const VKILL = 3 +const VLNEXT = 15 +const VMIN = 6 +const VQUIT = 1 +const VREPRINT = 12 +const VSTART = 8 +const VSTOP = 9 +const VSUSP = 10 +const VSWTC = 7 +const VT0 = 0 +const VT1 = 16384 +const VTDLY = 16384 +const VTIME = 5 +const VWERASE = 14 +const XCASE = 4 +const XTABS = 6144 + +type Twinsize = struct { + Fws_row uint16 + Fws_col uint16 + Fws_xpixel uint16 + Fws_ypixel uint16 +} + +type Tcc_t = uint8 + +type Tspeed_t = uint32 + +type Ttcflag_t = uint32 + +type Ttermios = struct { + Fc_iflag Ttcflag_t + Fc_oflag Ttcflag_t + Fc_cflag Ttcflag_t + Fc_lflag Ttcflag_t + Fc_line Tcc_t + Fc_cc [32]Tcc_t + F__c_ispeed Tspeed_t + F__c_ospeed Tspeed_t +} + +func Xgetpass(tls *TLS, prompt uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v prompt=%v, (%v:)", tls, prompt, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(144) + defer tls.Free(144) + var fd, v1 int32 + var l Tssize_t + var v2 uintptr + var _ /* s at bp+0 */ Ttermios + var _ /* t at bp+60 */ Ttermios + _, _, _, _ = fd, l, v1, v2 + v1 = Xopen(tls, __ccgo_ts+292, Int32FromInt32(O_RDWR)|Int32FromInt32(O_NOCTTY)|Int32FromInt32(O_CLOEXEC), 0) + fd = v1 + if v1 < 0 { + return uintptr(0) + } + Xtcgetattr(tls, fd, bp+60) + **(**Ttermios)(__ccgo_up(bp)) = **(**Ttermios)(__ccgo_up(bp + 60)) + (**(**Ttermios)(__ccgo_up(bp + 60))).Fc_lflag &= Uint32FromInt32(^(Int32FromInt32(ECHO) | Int32FromInt32(ISIG))) + (**(**Ttermios)(__ccgo_up(bp + 60))).Fc_lflag |= uint32(ICANON) + (**(**Ttermios)(__ccgo_up(bp + 60))).Fc_iflag &= Uint32FromInt32(^(Int32FromInt32(INLCR) | Int32FromInt32(IGNCR))) + (**(**Ttermios)(__ccgo_up(bp + 60))).Fc_iflag |= uint32(ICRNL) + Xtcsetattr(tls, fd, int32(TCSAFLUSH), bp+60) + Xtcdrain(tls, fd) + Xdprintf(tls, fd, __ccgo_ts+15, VaList(bp+128, prompt)) + l = Xread(tls, fd, uintptr(unsafe.Pointer(&_password)), uint32(128)) + if l >= 0 { + if l > 0 && int32(_password[l-int32(1)]) == int32('\n') || Uint32FromInt32(l) == uint32(128) { + l = l - 1 + } + _password[l] = 0 + } + Xtcsetattr(tls, fd, int32(TCSAFLUSH), bp) + Xdprintf(tls, fd, __ccgo_ts+301, 0) + Xclose(tls, fd) + if l < 0 { + v2 = uintptr(0) + } else { + v2 = uintptr(unsafe.Pointer(&_password)) + } + return v2 +} + +var _password [128]int8 + +var _defshells = [18]int8{'/', 'b', 'i', 'n', '/', 's', 'h', 10, '/', 'b', 'i', 'n', '/', 'c', 's', 'h', 10} + +var _line uintptr +var _linesize Tsize_t +var _f uintptr + +func Xendusershell(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + if _f != 0 { + Xfclose(tls, _f) + } + _f = uintptr(0) +} + +func Xsetusershell(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + if !(_f != 0) { + _f = Xfopen(tls, __ccgo_ts+303, __ccgo_ts+315) + } + if !(_f != 0) { + _f = Xfmemopen(tls, uintptr(unsafe.Pointer(&_defshells)), Uint32FromInt64(18)-Uint32FromInt32(1), __ccgo_ts+319) + } +} + +func Xgetusershell(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l Tssize_t + _ = l + if !(_f != 0) { + Xsetusershell(tls) + } + if !(_f != 0) { + return uintptr(0) + } + l = Xgetline(tls, uintptr(unsafe.Pointer(&_line)), uintptr(unsafe.Pointer(&_linesize)), _f) + if l <= 0 { + return uintptr(0) + } + if int32(**(**int8)(__ccgo_up(_line + uintptr(l-int32(1))))) == int32('\n') { + **(**int8)(__ccgo_up(_line + uintptr(l-int32(1)))) = 0 + } + return _line +} + +const ANYMARK = 1 +const FLUSHBAND = 4 +const FLUSHR = 1 +const FLUSHRW = 3 +const FLUSHW = 2 +const FMNAMESZ = 8 +const I_ATMARK = 21279 +const I_CANPUT = 21282 +const I_CKBAND = 21277 +const I_FDINSERT = 21264 +const I_FIND = 21259 +const I_FLUSH = 21253 +const I_FLUSHBAND = 21276 +const I_GETBAND = 21278 +const I_GETCLTIME = 21281 +const I_GETSIG = 21258 +const I_GRDOPT = 21255 +const I_GWROPT = 21268 +const I_LINK = 21260 +const I_LIST = 21269 +const I_LOOK = 21252 +const I_NREAD = 21249 +const I_PEEK = 21263 +const I_PLINK = 21270 +const I_POP = 21251 +const I_PUNLINK = 21271 +const I_PUSH = 21250 +const I_RECVFD = 21262 +const I_SENDFD = 21265 +const I_SETCLTIME = 21280 +const I_SETSIG = 21257 +const I_SRDOPT = 21254 +const I_STR = 21256 +const I_SWROPT = 21267 +const I_UNLINK = 21261 +const LASTMARK = 2 +const MORECTL = 1 +const MOREDATA = 2 +const MSG_ANY = 2 +const MSG_BAND = 4 +const MSG_HIPRI = 1 +const MUXID_ALL = -1 +const RMSGD = 1 +const RMSGN = 2 +const RNORM = 0 +const RPROTDAT = 4 +const RPROTDIS = 8 +const RPROTMASK = 28 +const RPROTNORM = 16 +const RS_HIPRI = 1 +const SNDPIPE = 2 +const SNDZERO = 1 +const S_BANDURG = 512 +const S_ERROR = 16 +const S_HANGUP = 32 +const S_HIPRI = 2 +const S_INPUT = 1 +const S_MSG = 8 +const S_OUTPUT = 4 +const S_RDBAND = 128 +const S_RDNORM = 64 +const S_WRBAND = 256 +const S_WRNORM = 4 +const __SID = 21248 + +type Tbandinfo = struct { + Fbi_pri uint8 + Fbi_flag int32 +} + +type Tstrbuf = struct { + Fmaxlen int32 + Flen1 int32 + Fbuf uintptr +} + +type Tstrpeek = struct { + Fctlbuf Tstrbuf + Fdatabuf Tstrbuf + Fflags uint32 +} + +type Tstrfdinsert = struct { + Fctlbuf Tstrbuf + Fdatabuf Tstrbuf + Fflags uint32 + Ffildes int32 + Foffset int32 +} + +type Tstrioctl = struct { + Fic_cmd int32 + Fic_timout int32 + Fic_len int32 + Fic_dp uintptr +} + +type Tstrrecvfd = struct { + Ffd int32 + Fuid int32 + Fgid int32 + F__fill [8]int8 +} + +type Tstr_mlist = struct { + Fl_name [9]int8 +} + +type Tstr_list = struct { + Fsl_nmods int32 + Fsl_modlist uintptr +} + +func Xisastream(tls *TLS, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + _ = v1 + if Xfcntl(tls, fd, int32(F_GETFD), 0) < 0 { + v1 = -int32(1) + } else { + v1 = 0 + } + return v1 +} + +func Xlutimes(tls *TLS, filename uintptr, tv uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v filename=%v tv=%v, (%v:)", tls, filename, tv, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var v1 uintptr + var _ /* times at bp+0 */ [2]Ttimespec + _ = v1 + if tv != 0 { + (**(**[2]Ttimespec)(__ccgo_up(bp)))[0].Ftv_sec = (**(**Ttimeval)(__ccgo_up(tv))).Ftv_sec + (**(**[2]Ttimespec)(__ccgo_up(bp)))[0].Ftv_nsec = int32((**(**Ttimeval)(__ccgo_up(tv))).Ftv_usec * int64(1000)) + (**(**[2]Ttimespec)(__ccgo_up(bp)))[int32(1)].Ftv_sec = (**(**Ttimeval)(__ccgo_up(tv + 1*16))).Ftv_sec + (**(**[2]Ttimespec)(__ccgo_up(bp)))[int32(1)].Ftv_nsec = int32((**(**Ttimeval)(__ccgo_up(tv + 1*16))).Ftv_usec * int64(1000)) + } + if tv != 0 { + v1 = bp + } else { + v1 = uintptr(0) + } + return Xutimensat(tls, -int32(100), filename, v1, int32(AT_SYMLINK_NOFOLLOW)) +} + +const UL_GETFSIZE = 1 +const UL_SETFSIZE = 2 + +func Xulimit(tls *TLS, cmd int32, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v cmd=%v va=%v, (%v:)", tls, cmd, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ap Tva_list + var val int32 + var _ /* rl at bp+0 */ Trlimit + _, _ = ap, val + Xgetrlimit(tls, int32(RLIMIT_FSIZE), bp) + if cmd == int32(UL_SETFSIZE) { + ap = va + val = VaInt32(&ap) + _ = ap + (**(**Trlimit)(__ccgo_up(bp))).Frlim_cur = uint64(512) * Uint64FromInt32(val) + if Xsetrlimit(tls, int32(RLIMIT_FSIZE), bp) != 0 { + return -int32(1) + } + } + return Int32FromUint64((**(**Trlimit)(__ccgo_up(bp))).Frlim_cur / uint64(512)) +} + +const BOOT_TIME = 2 +const DEAD_PROCESS = 8 +const EMPTY = 0 +const INIT_PROCESS = 5 +const LOGIN_PROCESS = 6 +const NEW_TIME = 3 +const OLD_TIME = 4 +const RUN_LVL = 1 +const USER_PROCESS = 7 +const e_exit = 0 +const e_termination = 0 + +type Tutmpx = struct { + Fut_type int16 + F__ut_pad1 int16 + Fut_pid Tpid_t + Fut_line [32]int8 + Fut_id [4]int8 + Fut_user [32]int8 + Fut_host [256]int8 + Fut_exit struct { + F__e_termination int16 + F__e_exit int16 + } + Fut_session int32 + F__ut_pad2 int32 + Fut_tv Ttimeval + Fut_addr_v6 [4]uint32 + F__unused [20]int8 +} + +func Xendutxent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } +} + +func Xsetutxent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } +} + +func Xgetutxent(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return UintptrFromInt32(0) +} + +func Xgetutxid(tls *TLS, ut uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v ut=%v, (%v:)", tls, ut, origin(2)) + defer func() { trc("-> %v", r) }() + } + return UintptrFromInt32(0) +} + +func Xgetutxline(tls *TLS, ut uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v ut=%v, (%v:)", tls, ut, origin(2)) + defer func() { trc("-> %v", r) }() + } + return UintptrFromInt32(0) +} + +func Xpututxline(tls *TLS, ut uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v ut=%v, (%v:)", tls, ut, origin(2)) + defer func() { trc("-> %v", r) }() + } + return UintptrFromInt32(0) +} + +func Xupdwtmpx(tls *TLS, f uintptr, u uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v u=%v, (%v:)", tls, f, u, origin(2)) + } +} + +func ___utmpxname(tls *TLS, f uintptr) (r int32) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOPNOTSUPP) + return -int32(1) +} + +func Xendutent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + Xendutxent(tls) +} + +func Xgetutent(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetutxent(tls) +} + +func Xgetutid(tls *TLS, ut uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v ut=%v, (%v:)", tls, ut, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetutxid(tls, ut) +} + +func Xgetutline(tls *TLS, ut uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v ut=%v, (%v:)", tls, ut, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetutxline(tls, ut) +} + +func Xpututline(tls *TLS, ut uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v ut=%v, (%v:)", tls, ut, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xpututxline(tls, ut) +} + +func Xsetutent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + Xsetutxent(tls) +} + +func Xupdwtmp(tls *TLS, f uintptr, u uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v u=%v, (%v:)", tls, f, u, origin(2)) + } + Xupdwtmpx(tls, f, u) +} + +const ADJ_ESTERROR = 8 +const ADJ_FREQUENCY = 2 +const ADJ_MAXERROR = 4 +const ADJ_MICRO = 4096 +const ADJ_NANO = 8192 +const ADJ_OFFSET = 1 +const ADJ_OFFSET_SINGLESHOT = 32769 +const ADJ_OFFSET_SS_READ = 40961 +const ADJ_SETOFFSET = 256 +const ADJ_STATUS = 16 +const ADJ_TAI = 128 +const ADJ_TICK = 16384 +const ADJ_TIMECONST = 32 +const MAXTC = 6 +const MOD_CLKA = 32769 +const MOD_CLKB = 16384 +const MOD_ESTERROR = 8 +const MOD_FREQUENCY = 2 +const MOD_MAXERROR = 4 +const MOD_MICRO = 4096 +const MOD_NANO = 8192 +const MOD_OFFSET = 1 +const MOD_STATUS = 16 +const MOD_TAI = 128 +const MOD_TIMECONST = 32 +const STA_CLK = 32768 +const STA_CLOCKERR = 4096 +const STA_DEL = 32 +const STA_FLL = 8 +const STA_FREQHOLD = 128 +const STA_INS = 16 +const STA_MODE = 16384 +const STA_NANO = 8192 +const STA_PLL = 1 +const STA_PPSERROR = 2048 +const STA_PPSFREQ = 2 +const STA_PPSJITTER = 512 +const STA_PPSSIGNAL = 256 +const STA_PPSTIME = 4 +const STA_PPSWANDER = 1024 +const STA_RONLY = 65280 +const STA_UNSYNC = 64 +const TIME_BAD = 5 +const TIME_DEL = 2 +const TIME_ERROR = 5 +const TIME_INS = 1 +const TIME_OK = 0 +const TIME_OOP = 3 +const TIME_WAIT = 4 + +type Tntptimeval = struct { + Ftime Ttimeval + Fmaxerror int32 + Festerror int32 +} + +type Ttimex = struct { + Fmodes uint32 + Foffset int32 + Ffreq int32 + Fmaxerror int32 + Festerror int32 + Fstatus int32 + Fconstant int32 + Fprecision int32 + Ftolerance int32 + Ftime Ttimeval + Ftick int32 + Fppsfreq int32 + Fjitter int32 + Fshift int32 + Fstabil int32 + Fjitcnt int32 + Fcalcnt int32 + Ferrcnt int32 + Fstbcnt int32 + Ftai int32 + F__padding [11]int32 +} + +func Xadjtime(tls *TLS, in uintptr, out uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v in=%v out=%v, (%v:)", tls, in, out, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(144) + defer tls.Free(144) + var v1 Tsuseconds_t + var _ /* tx at bp+0 */ Ttimex + _ = v1 + **(**Ttimex)(__ccgo_up(bp)) = Ttimex{} + if in != 0 { + if (*Ttimeval)(unsafe.Pointer(in)).Ftv_sec > int64(1000) || (*Ttimeval)(unsafe.Pointer(in)).Ftv_usec > int64(1000000000) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + (**(**Ttimex)(__ccgo_up(bp))).Foffset = int32((*Ttimeval)(unsafe.Pointer(in)).Ftv_sec*int64(1000000) + (*Ttimeval)(unsafe.Pointer(in)).Ftv_usec) + (**(**Ttimex)(__ccgo_up(bp))).Fmodes = uint32(ADJ_OFFSET_SINGLESHOT) + } + if Xadjtimex(tls, bp) < 0 { + return -int32(1) + } + if out != 0 { + (*Ttimeval)(unsafe.Pointer(out)).Ftv_sec = int64((**(**Ttimex)(__ccgo_up(bp))).Foffset / int32(1000000)) + v1 = int64((**(**Ttimex)(__ccgo_up(bp))).Foffset % Int32FromInt32(1000000)) + (*Ttimeval)(unsafe.Pointer(out)).Ftv_usec = v1 + if v1 < 0 { + (*Ttimeval)(unsafe.Pointer(out)).Ftv_sec = (*Ttimeval)(unsafe.Pointer(out)).Ftv_sec - 1 + **(**Tsuseconds_t)(__ccgo_up(out + 8)) += int64(1000000) + } + } + return 0 +} + +func Xadjtimex(tls *TLS, tx uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v tx=%v, (%v:)", tls, tx, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xclock_adjtime(tls, CLOCK_REALTIME, tx) +} + +func Xarch_prctl(tls *TLS, code int32, addr uint32) (r int32) { + if __ccgo_strace { + trc("tls=%v code=%v addr=%v, (%v:)", tls, code, addr, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_arch_prctl), code, Int32FromUint32(addr)))) +} + +func Xbrk(tls *TLS, end uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v end=%v, (%v:)", tls, end, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(-Int32FromInt32(ENOMEM))) +} + +func Xcapset(tls *TLS, a uintptr, b uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v a=%v b=%v, (%v:)", tls, a, b, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_capset), int32(a), int32(b)))) +} + +func Xcapget(tls *TLS, a uintptr, b uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v a=%v b=%v, (%v:)", tls, a, b, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_capget), int32(a), int32(b)))) +} + +func Xchroot(tls *TLS, path uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v, (%v:)", tls, path, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall1(tls, int32(SYS_chroot), int32(path)))) +} + +type Tktimex64 = struct { + Fmodes uint32 + F__ccgo4 uint32 + Foffset int64 + Ffreq int64 + Fmaxerror int64 + Festerror int64 + Fstatus int32 + F__ccgo44 uint32 + Fconstant int64 + Fprecision int64 + Ftolerance int64 + Ftime_sec int64 + Ftime_usec int64 + Ftick int64 + Fppsfreq int64 + Fjitter int64 + Fshift int32 + F__ccgo116 uint32 + Fstabil int64 + Fjitcnt int64 + Fcalcnt int64 + Ferrcnt int64 + Fstbcnt int64 + Ftai int32 + F__padding [11]int32 +} + +type Tktimex = struct { + Fmodes uint32 + Foffset int32 + Ffreq int32 + Fmaxerror int32 + Festerror int32 + Fstatus int32 + Fconstant int32 + Fprecision int32 + Ftolerance int32 + Ftime_sec int32 + Ftime_usec int32 + Ftick int32 + Fppsfreq int32 + Fjitter int32 + Fshift int32 + Fstabil int32 + Fjitcnt int32 + Fcalcnt int32 + Ferrcnt int32 + Fstbcnt int32 + Ftai int32 + F__padding [11]int32 +} + +func Xclock_adjtime(tls *TLS, clock_id Tclockid_t, utx uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v clock_id=%v utx=%v, (%v:)", tls, clock_id, utx, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(336) + defer tls.Free(336) + var r int32 + var _ /* ktx at bp+0 */ Tktimex64 + var _ /* ktx at bp+208 */ Tktimex + _ = r + r = -int32(ENOSYS) + **(**Tktimex64)(__ccgo_up(bp)) = Tktimex64{ + Fmodes: (*Ttimex)(unsafe.Pointer(utx)).Fmodes, + Foffset: int64((*Ttimex)(unsafe.Pointer(utx)).Foffset), + Ffreq: int64((*Ttimex)(unsafe.Pointer(utx)).Ffreq), + Fmaxerror: int64((*Ttimex)(unsafe.Pointer(utx)).Fmaxerror), + Festerror: int64((*Ttimex)(unsafe.Pointer(utx)).Festerror), + Fstatus: (*Ttimex)(unsafe.Pointer(utx)).Fstatus, + Fconstant: int64((*Ttimex)(unsafe.Pointer(utx)).Fconstant), + Fprecision: int64((*Ttimex)(unsafe.Pointer(utx)).Fprecision), + Ftolerance: int64((*Ttimex)(unsafe.Pointer(utx)).Ftolerance), + Ftime_sec: (*Ttimex)(unsafe.Pointer(utx)).Ftime.Ftv_sec, + Ftime_usec: (*Ttimex)(unsafe.Pointer(utx)).Ftime.Ftv_usec, + Ftick: int64((*Ttimex)(unsafe.Pointer(utx)).Ftick), + Fppsfreq: int64((*Ttimex)(unsafe.Pointer(utx)).Fppsfreq), + Fjitter: int64((*Ttimex)(unsafe.Pointer(utx)).Fjitter), + Fshift: (*Ttimex)(unsafe.Pointer(utx)).Fshift, + Fstabil: int64((*Ttimex)(unsafe.Pointer(utx)).Fstabil), + Fjitcnt: int64((*Ttimex)(unsafe.Pointer(utx)).Fjitcnt), + Fcalcnt: int64((*Ttimex)(unsafe.Pointer(utx)).Fcalcnt), + Ferrcnt: int64((*Ttimex)(unsafe.Pointer(utx)).Ferrcnt), + Fstbcnt: int64((*Ttimex)(unsafe.Pointer(utx)).Fstbcnt), + Ftai: (*Ttimex)(unsafe.Pointer(utx)).Ftai, + } + r = int32(X__syscall2(tls, int32(SYS_clock_adjtime64), clock_id, int32(bp))) + if r >= 0 { + (*Ttimex)(unsafe.Pointer(utx)).Fmodes = (**(**Tktimex64)(__ccgo_up(bp))).Fmodes + (*Ttimex)(unsafe.Pointer(utx)).Foffset = int32((**(**Tktimex64)(__ccgo_up(bp))).Foffset) + (*Ttimex)(unsafe.Pointer(utx)).Ffreq = int32((**(**Tktimex64)(__ccgo_up(bp))).Ffreq) + (*Ttimex)(unsafe.Pointer(utx)).Fmaxerror = int32((**(**Tktimex64)(__ccgo_up(bp))).Fmaxerror) + (*Ttimex)(unsafe.Pointer(utx)).Festerror = int32((**(**Tktimex64)(__ccgo_up(bp))).Festerror) + (*Ttimex)(unsafe.Pointer(utx)).Fstatus = (**(**Tktimex64)(__ccgo_up(bp))).Fstatus + (*Ttimex)(unsafe.Pointer(utx)).Fconstant = int32((**(**Tktimex64)(__ccgo_up(bp))).Fconstant) + (*Ttimex)(unsafe.Pointer(utx)).Fprecision = int32((**(**Tktimex64)(__ccgo_up(bp))).Fprecision) + (*Ttimex)(unsafe.Pointer(utx)).Ftolerance = int32((**(**Tktimex64)(__ccgo_up(bp))).Ftolerance) + (*Ttimex)(unsafe.Pointer(utx)).Ftime.Ftv_sec = (**(**Tktimex64)(__ccgo_up(bp))).Ftime_sec + (*Ttimex)(unsafe.Pointer(utx)).Ftime.Ftv_usec = (**(**Tktimex64)(__ccgo_up(bp))).Ftime_usec + (*Ttimex)(unsafe.Pointer(utx)).Ftick = int32((**(**Tktimex64)(__ccgo_up(bp))).Ftick) + (*Ttimex)(unsafe.Pointer(utx)).Fppsfreq = int32((**(**Tktimex64)(__ccgo_up(bp))).Fppsfreq) + (*Ttimex)(unsafe.Pointer(utx)).Fjitter = int32((**(**Tktimex64)(__ccgo_up(bp))).Fjitter) + (*Ttimex)(unsafe.Pointer(utx)).Fshift = (**(**Tktimex64)(__ccgo_up(bp))).Fshift + (*Ttimex)(unsafe.Pointer(utx)).Fstabil = int32((**(**Tktimex64)(__ccgo_up(bp))).Fstabil) + (*Ttimex)(unsafe.Pointer(utx)).Fjitcnt = int32((**(**Tktimex64)(__ccgo_up(bp))).Fjitcnt) + (*Ttimex)(unsafe.Pointer(utx)).Fcalcnt = int32((**(**Tktimex64)(__ccgo_up(bp))).Fcalcnt) + (*Ttimex)(unsafe.Pointer(utx)).Ferrcnt = int32((**(**Tktimex64)(__ccgo_up(bp))).Ferrcnt) + (*Ttimex)(unsafe.Pointer(utx)).Fstbcnt = int32((**(**Tktimex64)(__ccgo_up(bp))).Fstbcnt) + (*Ttimex)(unsafe.Pointer(utx)).Ftai = (**(**Tktimex64)(__ccgo_up(bp))).Ftai + } + if Bool(false) || r != -int32(ENOSYS) { + return X__syscall_ret(tls, Uint32FromInt32(r)) + } + if (*Ttimex)(unsafe.Pointer(utx)).Fmodes&uint32(ADJ_SETOFFSET) != 0 && !!((Uint64FromInt64((*Ttimex)(unsafe.Pointer(utx)).Ftime.Ftv_sec)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) { + return X__syscall_ret(tls, Uint32FromInt32(-Int32FromInt32(EOPNOTSUPP))) + } + if uint32(8) > uint32(4) { + **(**Tktimex)(__ccgo_up(bp + 208)) = Tktimex{ + Fmodes: (*Ttimex)(unsafe.Pointer(utx)).Fmodes, + Foffset: (*Ttimex)(unsafe.Pointer(utx)).Foffset, + Ffreq: (*Ttimex)(unsafe.Pointer(utx)).Ffreq, + Fmaxerror: (*Ttimex)(unsafe.Pointer(utx)).Fmaxerror, + Festerror: (*Ttimex)(unsafe.Pointer(utx)).Festerror, + Fstatus: (*Ttimex)(unsafe.Pointer(utx)).Fstatus, + Fconstant: (*Ttimex)(unsafe.Pointer(utx)).Fconstant, + Fprecision: (*Ttimex)(unsafe.Pointer(utx)).Fprecision, + Ftolerance: (*Ttimex)(unsafe.Pointer(utx)).Ftolerance, + Ftime_sec: int32((*Ttimex)(unsafe.Pointer(utx)).Ftime.Ftv_sec), + Ftime_usec: int32((*Ttimex)(unsafe.Pointer(utx)).Ftime.Ftv_usec), + Ftick: (*Ttimex)(unsafe.Pointer(utx)).Ftick, + Fppsfreq: (*Ttimex)(unsafe.Pointer(utx)).Fppsfreq, + Fjitter: (*Ttimex)(unsafe.Pointer(utx)).Fjitter, + Fshift: (*Ttimex)(unsafe.Pointer(utx)).Fshift, + Fstabil: (*Ttimex)(unsafe.Pointer(utx)).Fstabil, + Fjitcnt: (*Ttimex)(unsafe.Pointer(utx)).Fjitcnt, + Fcalcnt: (*Ttimex)(unsafe.Pointer(utx)).Fcalcnt, + Ferrcnt: (*Ttimex)(unsafe.Pointer(utx)).Ferrcnt, + Fstbcnt: (*Ttimex)(unsafe.Pointer(utx)).Fstbcnt, + Ftai: (*Ttimex)(unsafe.Pointer(utx)).Ftai, + } + if clock_id == CLOCK_REALTIME { + r = int32(X__syscall1(tls, int32(SYS_adjtimex), int32(bp+208))) + } else { + r = int32(X__syscall2(tls, int32(SYS_clock_adjtime), clock_id, int32(bp+208))) + } + if r >= 0 { + (*Ttimex)(unsafe.Pointer(utx)).Fmodes = (**(**Tktimex)(__ccgo_up(bp + 208))).Fmodes + (*Ttimex)(unsafe.Pointer(utx)).Foffset = (**(**Tktimex)(__ccgo_up(bp + 208))).Foffset + (*Ttimex)(unsafe.Pointer(utx)).Ffreq = (**(**Tktimex)(__ccgo_up(bp + 208))).Ffreq + (*Ttimex)(unsafe.Pointer(utx)).Fmaxerror = (**(**Tktimex)(__ccgo_up(bp + 208))).Fmaxerror + (*Ttimex)(unsafe.Pointer(utx)).Festerror = (**(**Tktimex)(__ccgo_up(bp + 208))).Festerror + (*Ttimex)(unsafe.Pointer(utx)).Fstatus = (**(**Tktimex)(__ccgo_up(bp + 208))).Fstatus + (*Ttimex)(unsafe.Pointer(utx)).Fconstant = (**(**Tktimex)(__ccgo_up(bp + 208))).Fconstant + (*Ttimex)(unsafe.Pointer(utx)).Fprecision = (**(**Tktimex)(__ccgo_up(bp + 208))).Fprecision + (*Ttimex)(unsafe.Pointer(utx)).Ftolerance = (**(**Tktimex)(__ccgo_up(bp + 208))).Ftolerance + (*Ttimex)(unsafe.Pointer(utx)).Ftime.Ftv_sec = int64((**(**Tktimex)(__ccgo_up(bp + 208))).Ftime_sec) + (*Ttimex)(unsafe.Pointer(utx)).Ftime.Ftv_usec = int64((**(**Tktimex)(__ccgo_up(bp + 208))).Ftime_usec) + (*Ttimex)(unsafe.Pointer(utx)).Ftick = (**(**Tktimex)(__ccgo_up(bp + 208))).Ftick + (*Ttimex)(unsafe.Pointer(utx)).Fppsfreq = (**(**Tktimex)(__ccgo_up(bp + 208))).Fppsfreq + (*Ttimex)(unsafe.Pointer(utx)).Fjitter = (**(**Tktimex)(__ccgo_up(bp + 208))).Fjitter + (*Ttimex)(unsafe.Pointer(utx)).Fshift = (**(**Tktimex)(__ccgo_up(bp + 208))).Fshift + (*Ttimex)(unsafe.Pointer(utx)).Fstabil = (**(**Tktimex)(__ccgo_up(bp + 208))).Fstabil + (*Ttimex)(unsafe.Pointer(utx)).Fjitcnt = (**(**Tktimex)(__ccgo_up(bp + 208))).Fjitcnt + (*Ttimex)(unsafe.Pointer(utx)).Fcalcnt = (**(**Tktimex)(__ccgo_up(bp + 208))).Fcalcnt + (*Ttimex)(unsafe.Pointer(utx)).Ferrcnt = (**(**Tktimex)(__ccgo_up(bp + 208))).Ferrcnt + (*Ttimex)(unsafe.Pointer(utx)).Fstbcnt = (**(**Tktimex)(__ccgo_up(bp + 208))).Fstbcnt + (*Ttimex)(unsafe.Pointer(utx)).Ftai = (**(**Tktimex)(__ccgo_up(bp + 208))).Ftai + } + return X__syscall_ret(tls, Uint32FromInt32(r)) + } + if clock_id == CLOCK_REALTIME { + return X__syscall_ret(tls, Uint32FromInt32(X__syscall1(tls, int32(SYS_adjtimex), int32(utx)))) + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_clock_adjtime), clock_id, int32(utx)))) +} + +func Xcopy_file_range(tls *TLS, fd_in int32, off_in uintptr, fd_out int32, off_out uintptr, len1 Tsize_t, flags uint32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd_in=%v off_in=%v fd_out=%v off_out=%v len1=%v flags=%v, (%v:)", tls, fd_in, off_in, fd_out, off_out, len1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall6(tls, int32(SYS_copy_file_range), fd_in, int32(off_in), fd_out, int32(off_out), Int32FromUint32(len1), Int32FromUint32(flags)))) +} + +const EPOLLERR = 8 +const EPOLLET = 2147483648 +const EPOLLEXCLUSIVE = 268435456 +const EPOLLHUP = 16 +const EPOLLIN = 1 +const EPOLLMSG = 1024 +const EPOLLNVAL = 32 +const EPOLLONESHOT = 1073741824 +const EPOLLOUT = 4 +const EPOLLPRI = 2 +const EPOLLRDBAND = 128 +const EPOLLRDHUP = 8192 +const EPOLLRDNORM = 64 +const EPOLLWAKEUP = 536870912 +const EPOLLWRBAND = 512 +const EPOLLWRNORM = 256 +const EPOLL_CLOEXEC = 524288 +const EPOLL_CTL_ADD = 1 +const EPOLL_CTL_DEL = 2 +const EPOLL_CTL_MOD = 3 +const EPOLL_NONBLOCK = 2048 + +type Tfsblkcnt_t = uint64 + +type Tfsfilcnt_t = uint64 + +type _EPOLL_EVENTS = int32 + +const ___EPOLL_DUMMY = 0 + +type Tepoll_data_t = struct { + Ffd [0]int32 + Fu32 [0]Tuint32_t + Fu64 [0]Tuint64_t + Fptr uintptr + F__ccgo_pad4 [4]byte +} + +type Tepoll_data = Tepoll_data_t + +type Tepoll_event = struct { + Fevents Tuint32_t + Fdata Tepoll_data_t +} + +func Xepoll_create(tls *TLS, size int32) (r int32) { + if __ccgo_strace { + trc("tls=%v size=%v, (%v:)", tls, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + if size <= 0 { + return X__syscall_ret(tls, Uint32FromInt32(-Int32FromInt32(EINVAL))) + } + return Xepoll_create1(tls, 0) +} + +func Xepoll_create1(tls *TLS, flags int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v flags=%v, (%v:)", tls, flags, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + r = int32(X__syscall1(tls, int32(SYS_epoll_create1), flags)) + if r == -int32(ENOSYS) && !(flags != 0) { + r = int32(X__syscall1(tls, int32(SYS_epoll_create), int32(Int32FromInt32(1)))) + } + return X__syscall_ret(tls, Uint32FromInt32(r)) +} + +func Xepoll_ctl(tls *TLS, fd int32, op int32, fd2 int32, ev uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v op=%v fd2=%v ev=%v, (%v:)", tls, fd, op, fd2, ev, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall4(tls, int32(SYS_epoll_ctl), fd, op, fd2, int32(ev)))) +} + +func Xepoll_pwait(tls *TLS, fd int32, ev uintptr, cnt int32, to int32, sigs uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v ev=%v cnt=%v to=%v sigs=%v, (%v:)", tls, fd, ev, cnt, to, sigs, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + r = int32(___syscall_cp(tls, int32(SYS_epoll_pwait), fd, int32(ev), cnt, to, int32(sigs), int32(Int32FromInt32(_NSIG)/Int32FromInt32(8)))) + if r == -int32(ENOSYS) && !(sigs != 0) { + r = int32(___syscall_cp(tls, int32(SYS_epoll_wait), fd, int32(ev), cnt, to, 0, 0)) + } + return X__syscall_ret(tls, Uint32FromInt32(r)) +} + +func Xepoll_wait(tls *TLS, fd int32, ev uintptr, cnt int32, to int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v ev=%v cnt=%v to=%v, (%v:)", tls, fd, ev, cnt, to, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xepoll_pwait(tls, fd, ev, cnt, to, uintptr(0)) +} + +const EFD_CLOEXEC = 524288 +const EFD_NONBLOCK = 2048 +const EFD_SEMAPHORE = 1 + +type Teventfd_t = uint64 + +func Xeventfd(tls *TLS, count uint32, flags int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v count=%v flags=%v, (%v:)", tls, count, flags, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + r = int32(X__syscall2(tls, int32(SYS_eventfd2), Int32FromUint32(count), flags)) + if r == -int32(ENOSYS) && !(flags != 0) { + r = int32(X__syscall1(tls, int32(SYS_eventfd), Int32FromUint32(count))) + } + return X__syscall_ret(tls, Uint32FromInt32(r)) +} + +func Xeventfd_read(tls *TLS, fd int32, value uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v value=%v, (%v:)", tls, fd, value, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + _ = v1 + if uint32(8) == Uint32FromInt32(Xread(tls, fd, value, uint32(8))) { + v1 = 0 + } else { + v1 = -int32(1) + } + return v1 +} + +func Xeventfd_write(tls *TLS, fd int32, _value Teventfd_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v _value=%v, (%v:)", tls, fd, _value, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + *(*Teventfd_t)(unsafe.Pointer(bp)) = _value + var v1 int32 + _ = v1 + if uint32(8) == Uint32FromInt32(Xwrite(tls, fd, bp, uint32(8))) { + v1 = 0 + } else { + v1 = -int32(1) + } + return v1 +} + +func Xfallocate(tls *TLS, fd int32, mode int32, base Toff_t, len1 Toff_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v mode=%v base=%v len1=%v, (%v:)", tls, fd, mode, base, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall6(tls, int32(SYS_fallocate), fd, mode, int32(base), int32(base>>Int32FromInt32(32)), int32(len1), int32(len1>>Int32FromInt32(32))))) +} + +const FANOTIFY_METADATA_VERSION = 3 +const FAN_ACCESS = 1 +const FAN_ACCESS_PERM = 131072 +const FAN_ALLOW = 1 +const FAN_ALL_CLASS_BITS = 12 +const FAN_ALL_EVENTS = 59 +const FAN_ALL_INIT_FLAGS = 63 +const FAN_ALL_MARK_FLAGS = 255 +const FAN_ALL_OUTGOING_EVENTS = 213051 +const FAN_ALL_PERM_EVENTS = 196608 +const FAN_ATTRIB = 4 +const FAN_AUDIT = 16 +const FAN_CLASS_CONTENT = 4 +const FAN_CLASS_NOTIF = 0 +const FAN_CLASS_PRE_CONTENT = 8 +const FAN_CLOEXEC = 1 +const FAN_CLOSE = 24 +const FAN_CLOSE_NOWRITE = 16 +const FAN_CLOSE_WRITE = 8 +const FAN_CREATE = 256 +const FAN_DELETE = 512 +const FAN_DELETE_SELF = 1024 +const FAN_DENY = 2 +const FAN_DIR_MODIFY = 524288 +const FAN_ENABLE_AUDIT = 64 +const FAN_EVENT_INFO_TYPE_DFID = 3 +const FAN_EVENT_INFO_TYPE_DFID_NAME = 2 +const FAN_EVENT_INFO_TYPE_FID = 1 +const FAN_EVENT_METADATA_LEN = 0 +const FAN_EVENT_ON_CHILD = 134217728 +const FAN_MARK_ADD = 1 +const FAN_MARK_DONT_FOLLOW = 4 +const FAN_MARK_FILESYSTEM = 256 +const FAN_MARK_FLUSH = 128 +const FAN_MARK_IGNORED_MASK = 32 +const FAN_MARK_IGNORED_SURV_MODIFY = 64 +const FAN_MARK_INODE = 0 +const FAN_MARK_MOUNT = 16 +const FAN_MARK_ONLYDIR = 8 +const FAN_MARK_REMOVE = 2 +const FAN_MARK_TYPE_MASK = 272 +const FAN_MODIFY = 2 +const FAN_MOVE = 192 +const FAN_MOVED_FROM = 64 +const FAN_MOVED_TO = 128 +const FAN_MOVE_SELF = 2048 +const FAN_NOFD = -1 +const FAN_NONBLOCK = 2 +const FAN_ONDIR = 1073741824 +const FAN_OPEN = 32 +const FAN_OPEN_EXEC = 4096 +const FAN_OPEN_EXEC_PERM = 262144 +const FAN_OPEN_PERM = 65536 +const FAN_Q_OVERFLOW = 16384 +const FAN_REPORT_DFID_NAME = 3072 +const FAN_REPORT_DIR_FID = 1024 +const FAN_REPORT_FID = 512 +const FAN_REPORT_NAME = 2048 +const FAN_REPORT_TID = 256 +const FAN_UNLIMITED_MARKS = 32 +const FAN_UNLIMITED_QUEUE = 16 +const ST_APPEND = 256 +const ST_IMMUTABLE = 512 +const ST_MANDLOCK = 64 +const ST_NOATIME = 1024 +const ST_NODEV = 4 +const ST_NODIRATIME = 2048 +const ST_NOEXEC = 8 +const ST_NOSUID = 2 +const ST_RDONLY = 1 +const ST_RELATIME = 4096 +const ST_SYNCHRONOUS = 16 +const ST_WRITE = 128 + +type Tstatvfs = struct { + Ff_bsize uint32 + Ff_frsize uint32 + Ff_blocks Tfsblkcnt_t + Ff_bfree Tfsblkcnt_t + Ff_bavail Tfsblkcnt_t + Ff_files Tfsfilcnt_t + Ff_ffree Tfsfilcnt_t + Ff_favail Tfsfilcnt_t + Ff_fsid uint32 + F__ccgo60 uint32 + Ff_flag uint32 + Ff_namemax uint32 + Ff_type uint32 + F__reserved [5]int32 +} + +type Tfsid_t = struct { + F__val [2]int32 +} + +type t__fsid_t = Tfsid_t + +type Tstatfs = struct { + Ff_type uint32 + Ff_bsize uint32 + Ff_blocks Tfsblkcnt_t + Ff_bfree Tfsblkcnt_t + Ff_bavail Tfsblkcnt_t + Ff_files Tfsfilcnt_t + Ff_ffree Tfsfilcnt_t + Ff_fsid Tfsid_t + Ff_namelen uint32 + Ff_frsize uint32 + Ff_flags uint32 + Ff_spare [4]uint32 +} + +type Tfanotify_event_metadata = struct { + Fevent_len uint32 + Fvers uint8 + Freserved uint8 + Fmetadata_len uint16 + Fmask uint64 + Ffd int32 + Fpid int32 +} + +type Tfanotify_event_info_header = struct { + Finfo_type uint8 + Fpad uint8 + Flen1 uint16 +} + +type Tfanotify_event_info_fid = struct { + Fhdr Tfanotify_event_info_header + Ffsid Tfsid_t +} + +type Tfanotify_response = struct { + Ffd int32 + Fresponse uint32 +} + +func Xfanotify_init(tls *TLS, flags uint32, event_f_flags uint32) (r int32) { + if __ccgo_strace { + trc("tls=%v flags=%v event_f_flags=%v, (%v:)", tls, flags, event_f_flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_fanotify_init), Int32FromUint32(flags), Int32FromUint32(event_f_flags)))) +} + +func Xfanotify_mark(tls *TLS, fanotify_fd int32, flags uint32, mask uint64, dfd int32, pathname uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fanotify_fd=%v flags=%v mask=%v dfd=%v pathname=%v, (%v:)", tls, fanotify_fd, flags, mask, dfd, pathname, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall6(tls, int32(SYS_fanotify_mark), fanotify_fd, Int32FromUint32(flags), int32(Int32FromUint64(mask)), int32(Int32FromUint64(mask>>Int32FromInt32(32))), dfd, int32(pathname)))) +} + +const LOCK_EX = 2 +const LOCK_NB = 4 +const LOCK_SH = 1 +const LOCK_UN = 8 + +func Xflock(tls *TLS, fd int32, op int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v op=%v, (%v:)", tls, fd, op, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_flock), fd, op))) +} + +func Xgetdents(tls *TLS, fd int32, buf uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v len1=%v, (%v:)", tls, fd, buf, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + if len1 > uint32(INT_MAX) { + len1 = uint32(INT_MAX) + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_getdents64), fd, int32(buf), Int32FromUint32(len1)))) +} + +const GRND_INSECURE = 4 +const GRND_NONBLOCK = 1 +const GRND_RANDOM = 2 + +func Xgetrandom(tls *TLS, buf uintptr, buflen Tsize_t, flags uint32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v buf=%v buflen=%v flags=%v, (%v:)", tls, buf, buflen, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(___syscall_cp(tls, int32(SYS_getrandom), int32(buf), Int32FromUint32(buflen), Int32FromUint32(flags), 0, 0, 0))) +} + +const IN_ACCESS = 1 +const IN_ALL_EVENTS = 4095 +const IN_ATTRIB = 4 +const IN_CLOEXEC = 524288 +const IN_CLOSE = 24 +const IN_CLOSE_NOWRITE = 16 +const IN_CLOSE_WRITE = 8 +const IN_CREATE = 256 +const IN_DELETE = 512 +const IN_DELETE_SELF = 1024 +const IN_DONT_FOLLOW = 33554432 +const IN_EXCL_UNLINK = 67108864 +const IN_IGNORED = 32768 +const IN_ISDIR = 1073741824 +const IN_MASK_ADD = 536870912 +const IN_MASK_CREATE = 268435456 +const IN_MODIFY = 2 +const IN_MOVE = 192 +const IN_MOVED_FROM = 64 +const IN_MOVED_TO = 128 +const IN_MOVE_SELF = 2048 +const IN_NONBLOCK = 2048 +const IN_ONESHOT = 2147483648 +const IN_ONLYDIR = 16777216 +const IN_OPEN = 32 +const IN_Q_OVERFLOW = 16384 +const IN_UNMOUNT = 8192 + +type Tinotify_event = struct { + Fwd int32 + Fmask Tuint32_t + Fcookie Tuint32_t + Flen1 Tuint32_t +} + +func Xinotify_init(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xinotify_init1(tls, 0) +} + +func Xinotify_init1(tls *TLS, flags int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v flags=%v, (%v:)", tls, flags, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + r = int32(X__syscall1(tls, int32(SYS_inotify_init1), flags)) + if r == -int32(ENOSYS) && !(flags != 0) { + r = int32(X__syscall0(tls, int32(SYS_inotify_init))) + } + return X__syscall_ret(tls, Uint32FromInt32(r)) +} + +func Xinotify_add_watch(tls *TLS, fd int32, pathname uintptr, mask Tuint32_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v pathname=%v mask=%v, (%v:)", tls, fd, pathname, mask, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_inotify_add_watch), fd, int32(pathname), Int32FromUint32(mask)))) +} + +func Xinotify_rm_watch(tls *TLS, fd int32, wd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v wd=%v, (%v:)", tls, fd, wd, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_inotify_rm_watch), fd, wd))) +} + +func Xioperm(tls *TLS, from uint32, num uint32, turn_on int32) (r int32) { + if __ccgo_strace { + trc("tls=%v from=%v num=%v turn_on=%v, (%v:)", tls, from, num, turn_on, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_ioperm), Int32FromUint32(from), Int32FromUint32(num), turn_on))) +} + +func Xiopl(tls *TLS, level int32) (r int32) { + if __ccgo_strace { + trc("tls=%v level=%v, (%v:)", tls, level, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall1(tls, int32(SYS_iopl), level))) +} + +func Xklogctl(tls *TLS, type1 int32, buf uintptr, len1 int32) (r int32) { + if __ccgo_strace { + trc("tls=%v type1=%v buf=%v len1=%v, (%v:)", tls, type1, buf, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_syslog), type1, int32(buf), len1))) +} + +const MADV_COLD = 20 +const MADV_DODUMP = 17 +const MADV_DOFORK = 11 +const MADV_DONTDUMP = 16 +const MADV_DONTFORK = 10 +const MADV_DONTNEED = 4 +const MADV_FREE = 8 +const MADV_HUGEPAGE = 14 +const MADV_HWPOISON = 100 +const MADV_KEEPONFORK = 19 +const MADV_MERGEABLE = 12 +const MADV_NOHUGEPAGE = 15 +const MADV_NORMAL = 0 +const MADV_PAGEOUT = 21 +const MADV_RANDOM = 1 +const MADV_REMOVE = 9 +const MADV_SEQUENTIAL = 2 +const MADV_SOFT_OFFLINE = 101 +const MADV_UNMERGEABLE = 13 +const MADV_WILLNEED = 3 +const MADV_WIPEONFORK = 18 +const MFD_ALLOW_SEALING = 2 +const MFD_CLOEXEC = 1 +const MFD_HUGETLB = 4 +const MLOCK_ONFAULT = 1 +const MREMAP_DONTUNMAP = 4 +const MREMAP_FIXED = 2 +const MREMAP_MAYMOVE = 1 +const _GNU_SOURCE = 1 + +func Xmemfd_create(tls *TLS, name uintptr, flags uint32) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v flags=%v, (%v:)", tls, name, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_memfd_create), int32(name), Int32FromUint32(flags)))) +} + +func Xmlock2(tls *TLS, addr uintptr, len1 Tsize_t, flags uint32) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v len1=%v flags=%v, (%v:)", tls, addr, len1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + if flags == uint32(0) { + return Xmlock(tls, addr, len1) + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_mlock2), int32(addr), Int32FromUint32(len1), Int32FromUint32(flags)))) +} + +func Xinit_module(tls *TLS, a uintptr, b uint32, c uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v a=%v b=%v c=%v, (%v:)", tls, a, b, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_init_module), int32(a), Int32FromUint32(b), int32(c)))) +} + +func Xdelete_module(tls *TLS, a uintptr, b uint32) (r int32) { + if __ccgo_strace { + trc("tls=%v a=%v b=%v, (%v:)", tls, a, b, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_delete_module), int32(a), Int32FromUint32(b)))) +} + +const BLKBSZGET = 2147488368 +const BLKBSZSET = 1073746545 +const BLKFLSBUF = 4705 +const BLKFRAGET = 4709 +const BLKFRASET = 4708 +const BLKGETSIZE = 4704 +const BLKGETSIZE64 = 2147488370 +const BLKRAGET = 4707 +const BLKRASET = 4706 +const BLKROGET = 4702 +const BLKROSET = 4701 +const BLKRRPART = 4703 +const BLKSECTGET = 4711 +const BLKSECTSET = 4710 +const BLKSSZGET = 4712 +const FIOASYNC = 21586 +const FIOCLEX = 21585 +const FIOGETOWN = 35075 +const FIONBIO = 21537 +const FIONCLEX = 21584 +const FIONREAD = 21531 +const FIOQSIZE = 21600 +const FIOSETOWN = 35073 +const MNT_DETACH = 2 +const MNT_EXPIRE = 4 +const MNT_FORCE = 1 +const MS_ACTIVE = 1073741824 +const MS_BIND = 4096 +const MS_BORN = 536870912 +const MS_DIRSYNC = 128 +const MS_I_VERSION = 8388608 +const MS_KERNMOUNT = 4194304 +const MS_LAZYTIME = 33554432 +const MS_MANDLOCK = 64 +const MS_MGC_MSK = 4294901760 +const MS_MGC_VAL = 3236757504 +const MS_MOVE = 8192 +const MS_NOATIME = 1024 +const MS_NODEV = 4 +const MS_NODIRATIME = 2048 +const MS_NOEXEC = 8 +const MS_NOREMOTELOCK = 134217728 +const MS_NOSEC = 268435456 +const MS_NOSUID = 2 +const MS_NOSYMFOLLOW = 256 +const MS_NOUSER = 2147483648 +const MS_POSIXACL = 65536 +const MS_PRIVATE = 262144 +const MS_RDONLY = 1 +const MS_REC = 16384 +const MS_RELATIME = 2097152 +const MS_REMOUNT = 32 +const MS_RMT_MASK = 41943121 +const MS_SHARED = 1048576 +const MS_SILENT = 32768 +const MS_SLAVE = 524288 +const MS_STRICTATIME = 16777216 +const MS_SYNCHRONOUS = 16 +const MS_UNBINDABLE = 131072 +const N_6PACK = 7 +const N_AX25 = 5 +const N_CAIF = 20 +const N_GIGASET_M101 = 16 +const N_GSM0710 = 21 +const N_HCI = 15 +const N_HDLC = 13 +const N_IRDA = 11 +const N_MASC = 8 +const N_MOUSE = 2 +const N_NCI = 25 +const N_NULL = 27 +const N_PPP = 3 +const N_PPS = 18 +const N_PROFIBUS_FDL = 10 +const N_R3964 = 9 +const N_SLCAN = 17 +const N_SLIP = 1 +const N_SMSBLOCK = 12 +const N_SPEAKUP = 26 +const N_STRIP = 4 +const N_SYNC_PPP = 14 +const N_TI_WL = 22 +const N_TRACEROUTER = 24 +const N_TRACESINK = 23 +const N_TTY = 0 +const N_V253 = 19 +const N_X25 = 6 +const SIOCADDDLCI = 35200 +const SIOCADDMULTI = 35121 +const SIOCADDRT = 35083 +const SIOCATMARK = 35077 +const SIOCDARP = 35155 +const SIOCDELDLCI = 35201 +const SIOCDELMULTI = 35122 +const SIOCDELRT = 35084 +const SIOCDEVPRIVATE = 35312 +const SIOCDIFADDR = 35126 +const SIOCDRARP = 35168 +const SIOCGARP = 35156 +const SIOCGIFADDR = 35093 +const SIOCGIFBR = 35136 +const SIOCGIFBRDADDR = 35097 +const SIOCGIFCONF = 35090 +const SIOCGIFCOUNT = 35128 +const SIOCGIFDSTADDR = 35095 +const SIOCGIFENCAP = 35109 +const SIOCGIFFLAGS = 35091 +const SIOCGIFHWADDR = 35111 +const SIOCGIFINDEX = 35123 +const SIOCGIFMAP = 35184 +const SIOCGIFMEM = 35103 +const SIOCGIFMETRIC = 35101 +const SIOCGIFMTU = 35105 +const SIOCGIFNAME = 35088 +const SIOCGIFNETMASK = 35099 +const SIOCGIFPFLAGS = 35125 +const SIOCGIFSLAVE = 35113 +const SIOCGIFTXQLEN = 35138 +const SIOCGPGRP = 35076 +const SIOCGRARP = 35169 +const SIOCGSTAMP = 2147518726 +const SIOCGSTAMPNS = 2147518727 +const SIOCPROTOPRIVATE = 35296 +const SIOCRTMSG = 35085 +const SIOCSARP = 35157 +const SIOCSIFADDR = 35094 +const SIOCSIFBR = 35137 +const SIOCSIFBRDADDR = 35098 +const SIOCSIFDSTADDR = 35096 +const SIOCSIFENCAP = 35110 +const SIOCSIFFLAGS = 35092 +const SIOCSIFHWADDR = 35108 +const SIOCSIFHWBROADCAST = 35127 +const SIOCSIFLINK = 35089 +const SIOCSIFMAP = 35185 +const SIOCSIFMEM = 35104 +const SIOCSIFMETRIC = 35102 +const SIOCSIFMTU = 35106 +const SIOCSIFNAME = 35107 +const SIOCSIFNETMASK = 35100 +const SIOCSIFPFLAGS = 35124 +const SIOCSIFSLAVE = 35120 +const SIOCSIFTXQLEN = 35139 +const SIOCSPGRP = 35074 +const SIOCSRARP = 35170 +const SIOGIFINDEX = 35123 +const TCFLSH = 21515 +const TCGETA = 21509 +const TCGETS = 21505 +const TCGETX = 21554 +const TCSBRK = 21513 +const TCSBRKP = 21541 +const TCSETA = 21510 +const TCSETAF = 21512 +const TCSETAW = 21511 +const TCSETS = 21506 +const TCSETSF = 21508 +const TCSETSW = 21507 +const TCSETX = 21555 +const TCSETXF = 21556 +const TCSETXW = 21557 +const TCXONC = 21514 +const TIOCCBRK = 21544 +const TIOCCONS = 21533 +const TIOCEXCL = 21516 +const TIOCGDEV = 2147767346 +const TIOCGETD = 21540 +const TIOCGEXCL = 2147767360 +const TIOCGICOUNT = 21597 +const TIOCGISO7816 = 2150126658 +const TIOCGLCKTRMIOS = 21590 +const TIOCGPGRP = 21519 +const TIOCGPKT = 2147767352 +const TIOCGPTLCK = 2147767353 +const TIOCGPTN = 2147767344 +const TIOCGPTPEER = 21569 +const TIOCGRS485 = 21550 +const TIOCGSERIAL = 21534 +const TIOCGSID = 21545 +const TIOCGSOFTCAR = 21529 +const TIOCGWINSZ = 21523 +const TIOCINQ = 21531 +const TIOCLINUX = 21532 +const TIOCMBIC = 21527 +const TIOCMBIS = 21526 +const TIOCMGET = 21525 +const TIOCMIWAIT = 21596 +const TIOCMSET = 21528 +const TIOCM_CAR = 64 +const TIOCM_CD = 64 +const TIOCM_CTS = 32 +const TIOCM_DSR = 256 +const TIOCM_DTR = 2 +const TIOCM_LE = 1 +const TIOCM_LOOP = 32768 +const TIOCM_OUT1 = 8192 +const TIOCM_OUT2 = 16384 +const TIOCM_RI = 128 +const TIOCM_RNG = 128 +const TIOCM_RTS = 4 +const TIOCM_SR = 16 +const TIOCM_ST = 8 +const TIOCNOTTY = 21538 +const TIOCNXCL = 21517 +const TIOCOUTQ = 21521 +const TIOCPKT = 21536 +const TIOCPKT_DATA = 0 +const TIOCPKT_DOSTOP = 32 +const TIOCPKT_FLUSHREAD = 1 +const TIOCPKT_FLUSHWRITE = 2 +const TIOCPKT_IOCTL = 64 +const TIOCPKT_NOSTOP = 16 +const TIOCPKT_START = 8 +const TIOCPKT_STOP = 4 +const TIOCSBRK = 21543 +const TIOCSCTTY = 21518 +const TIOCSERCONFIG = 21587 +const TIOCSERGETLSR = 21593 +const TIOCSERGETMULTI = 21594 +const TIOCSERGSTRUCT = 21592 +const TIOCSERGWILD = 21588 +const TIOCSERSETMULTI = 21595 +const TIOCSERSWILD = 21589 +const TIOCSER_TEMT = 1 +const TIOCSETD = 21539 +const TIOCSIG = 1074025526 +const TIOCSISO7816 = 3223868483 +const TIOCSLCKTRMIOS = 21591 +const TIOCSPGRP = 21520 +const TIOCSPTLCK = 1074025521 +const TIOCSRS485 = 21551 +const TIOCSSERIAL = 21535 +const TIOCSSOFTCAR = 21530 +const TIOCSTI = 21522 +const TIOCSWINSZ = 21524 +const TIOCVHANGUP = 21559 +const UMOUNT_NOFOLLOW = 8 +const _IOC_NONE = 0 +const _IOC_READ = 2 +const _IOC_WRITE = 1 + +func Xmount(tls *TLS, special uintptr, dir uintptr, fstype uintptr, flags uint32, data uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v special=%v dir=%v fstype=%v flags=%v data=%v, (%v:)", tls, special, dir, fstype, flags, data, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall5(tls, int32(SYS_mount), int32(special), int32(dir), int32(fstype), Int32FromUint32(flags), int32(data)))) +} + +func Xumount(tls *TLS, special uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v special=%v, (%v:)", tls, special, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_umount2), int32(special), int32(Int32FromInt32(0))))) +} + +func Xumount2(tls *TLS, special uintptr, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v special=%v flags=%v, (%v:)", tls, special, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_umount2), int32(special), flags))) +} + +func Xname_to_handle_at(tls *TLS, dirfd int32, pathname uintptr, handle uintptr, mount_id uintptr, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v dirfd=%v pathname=%v handle=%v mount_id=%v flags=%v, (%v:)", tls, dirfd, pathname, handle, mount_id, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall5(tls, int32(SYS_name_to_handle_at), dirfd, int32(pathname), int32(handle), int32(mount_id), flags))) +} + +func Xopen_by_handle_at(tls *TLS, mount_fd int32, handle uintptr, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v mount_fd=%v handle=%v flags=%v, (%v:)", tls, mount_fd, handle, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_open_by_handle_at), mount_fd, int32(handle), flags))) +} + +const ADDR_COMPAT_LAYOUT = 2097152 +const ADDR_LIMIT_32BIT = 8388608 +const ADDR_LIMIT_3GB = 134217728 +const ADDR_NO_RANDOMIZE = 262144 +const FDPIC_FUNCPTRS = 524288 +const MMAP_PAGE_ZERO = 1048576 +const PER_BSD = 6 +const PER_HPUX = 16 +const PER_IRIX32 = 67108873 +const PER_IRIX64 = 67108875 +const PER_IRIXN32 = 67108874 +const PER_ISCR4 = 67108869 +const PER_LINUX = 0 +const PER_LINUX32 = 8 +const PER_LINUX32_3GB = 134217736 +const PER_LINUX_32BIT = 8388608 +const PER_LINUX_FDPIC = 524288 +const PER_MASK = 255 +const PER_OSF4 = 15 +const PER_OSR5 = 100663299 +const PER_RISCOS = 12 +const PER_SCOSVR3 = 117440515 +const PER_SOLARIS = 67108877 +const PER_SUNOS = 67108870 +const PER_SVR3 = 83886082 +const PER_SVR4 = 68157441 +const PER_UW7 = 68157454 +const PER_WYSEV386 = 83886084 +const PER_XENIX = 83886087 +const READ_IMPLIES_EXEC = 4194304 +const SHORT_INODE = 16777216 +const STICKY_TIMEOUTS = 67108864 +const UNAME26 = 131072 +const WHOLE_SECONDS = 33554432 + +func Xpersonality(tls *TLS, persona uint32) (r int32) { + if __ccgo_strace { + trc("tls=%v persona=%v, (%v:)", tls, persona, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall1(tls, int32(SYS_personality), Int32FromUint32(persona)))) +} + +func Xpivot_root(tls *TLS, new1 uintptr, old uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v new1=%v old=%v, (%v:)", tls, new1, old, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_pivot_root), int32(new1), int32(old)))) +} + +const PR_CAPBSET_DROP = 24 +const PR_CAPBSET_READ = 23 +const PR_CAP_AMBIENT = 47 +const PR_CAP_AMBIENT_CLEAR_ALL = 4 +const PR_CAP_AMBIENT_IS_SET = 1 +const PR_CAP_AMBIENT_LOWER = 3 +const PR_CAP_AMBIENT_RAISE = 2 +const PR_ENDIAN_BIG = 0 +const PR_ENDIAN_LITTLE = 1 +const PR_ENDIAN_PPC_LITTLE = 2 +const PR_FPEMU_NOPRINT = 1 +const PR_FPEMU_SIGFPE = 2 +const PR_FP_EXC_ASYNC = 2 +const PR_FP_EXC_DISABLED = 0 +const PR_FP_EXC_DIV = 65536 +const PR_FP_EXC_INV = 1048576 +const PR_FP_EXC_NONRECOV = 1 +const PR_FP_EXC_OVF = 131072 +const PR_FP_EXC_PRECISE = 3 +const PR_FP_EXC_RES = 524288 +const PR_FP_EXC_SW_ENABLE = 128 +const PR_FP_EXC_UND = 262144 +const PR_FP_MODE_FR = 1 +const PR_FP_MODE_FRE = 2 +const PR_GET_CHILD_SUBREAPER = 37 +const PR_GET_DUMPABLE = 3 +const PR_GET_ENDIAN = 19 +const PR_GET_FPEMU = 9 +const PR_GET_FPEXC = 11 +const PR_GET_FP_MODE = 46 +const PR_GET_IO_FLUSHER = 58 +const PR_GET_KEEPCAPS = 7 +const PR_GET_NAME = 16 +const PR_GET_NO_NEW_PRIVS = 39 +const PR_GET_PDEATHSIG = 2 +const PR_GET_SECCOMP = 21 +const PR_GET_SECUREBITS = 27 +const PR_GET_SPECULATION_CTRL = 52 +const PR_GET_TAGGED_ADDR_CTRL = 56 +const PR_GET_THP_DISABLE = 42 +const PR_GET_TID_ADDRESS = 40 +const PR_GET_TIMERSLACK = 30 +const PR_GET_TIMING = 13 +const PR_GET_TSC = 25 +const PR_GET_UNALIGN = 5 +const PR_MCE_KILL = 33 +const PR_MCE_KILL_CLEAR = 0 +const PR_MCE_KILL_DEFAULT = 2 +const PR_MCE_KILL_EARLY = 1 +const PR_MCE_KILL_GET = 34 +const PR_MCE_KILL_LATE = 0 +const PR_MCE_KILL_SET = 1 +const PR_MPX_DISABLE_MANAGEMENT = 44 +const PR_MPX_ENABLE_MANAGEMENT = 43 +const PR_MTE_TAG_MASK = 524280 +const PR_MTE_TAG_SHIFT = 3 +const PR_MTE_TCF_ASYNC = 4 +const PR_MTE_TCF_MASK = 6 +const PR_MTE_TCF_NONE = 0 +const PR_MTE_TCF_SHIFT = 1 +const PR_MTE_TCF_SYNC = 2 +const PR_PAC_APDAKEY = 4 +const PR_PAC_APDBKEY = 8 +const PR_PAC_APGAKEY = 16 +const PR_PAC_APIAKEY = 1 +const PR_PAC_APIBKEY = 2 +const PR_PAC_GET_ENABLED_KEYS = 61 +const PR_PAC_RESET_KEYS = 54 +const PR_PAC_SET_ENABLED_KEYS = 60 +const PR_SET_CHILD_SUBREAPER = 36 +const PR_SET_DUMPABLE = 4 +const PR_SET_ENDIAN = 20 +const PR_SET_FPEMU = 10 +const PR_SET_FPEXC = 12 +const PR_SET_FP_MODE = 45 +const PR_SET_IO_FLUSHER = 57 +const PR_SET_KEEPCAPS = 8 +const PR_SET_MM = 35 +const PR_SET_MM_ARG_END = 9 +const PR_SET_MM_ARG_START = 8 +const PR_SET_MM_AUXV = 12 +const PR_SET_MM_BRK = 7 +const PR_SET_MM_END_CODE = 2 +const PR_SET_MM_END_DATA = 4 +const PR_SET_MM_ENV_END = 11 +const PR_SET_MM_ENV_START = 10 +const PR_SET_MM_EXE_FILE = 13 +const PR_SET_MM_MAP = 14 +const PR_SET_MM_MAP_SIZE = 15 +const PR_SET_MM_START_BRK = 6 +const PR_SET_MM_START_CODE = 1 +const PR_SET_MM_START_DATA = 3 +const PR_SET_MM_START_STACK = 5 +const PR_SET_NAME = 15 +const PR_SET_NO_NEW_PRIVS = 38 +const PR_SET_PDEATHSIG = 1 +const PR_SET_PTRACER = 1499557217 +const PR_SET_PTRACER_ANY = 18446744073709551615 +const PR_SET_SECCOMP = 22 +const PR_SET_SECUREBITS = 28 +const PR_SET_SPECULATION_CTRL = 53 +const PR_SET_SYSCALL_USER_DISPATCH = 59 +const PR_SET_TAGGED_ADDR_CTRL = 55 +const PR_SET_THP_DISABLE = 41 +const PR_SET_TIMERSLACK = 29 +const PR_SET_TIMING = 14 +const PR_SET_TSC = 26 +const PR_SET_UNALIGN = 6 +const PR_SPEC_DISABLE = 4 +const PR_SPEC_DISABLE_NOEXEC = 16 +const PR_SPEC_ENABLE = 2 +const PR_SPEC_FORCE_DISABLE = 8 +const PR_SPEC_INDIRECT_BRANCH = 1 +const PR_SPEC_NOT_AFFECTED = 0 +const PR_SPEC_PRCTL = 1 +const PR_SPEC_STORE_BYPASS = 0 +const PR_SVE_GET_VL = 51 +const PR_SVE_SET_VL = 50 +const PR_SVE_SET_VL_ONEXEC = 262144 +const PR_SVE_VL_INHERIT = 131072 +const PR_SVE_VL_LEN_MASK = 65535 +const PR_SYS_DISPATCH_OFF = 0 +const PR_SYS_DISPATCH_ON = 1 +const PR_TAGGED_ADDR_ENABLE = 1 +const PR_TASK_PERF_EVENTS_DISABLE = 31 +const PR_TASK_PERF_EVENTS_ENABLE = 32 +const PR_TIMING_STATISTICAL = 0 +const PR_TIMING_TIMESTAMP = 1 +const PR_TSC_ENABLE = 1 +const PR_TSC_SIGSEGV = 2 +const PR_UNALIGN_NOPRINT = 1 +const PR_UNALIGN_SIGBUS = 2 +const SYSCALL_DISPATCH_FILTER_ALLOW = 0 +const SYSCALL_DISPATCH_FILTER_BLOCK = 1 + +type Tprctl_mm_map = struct { + Fstart_code Tuint64_t + Fend_code Tuint64_t + Fstart_data Tuint64_t + Fend_data Tuint64_t + Fstart_brk Tuint64_t + Fbrk Tuint64_t + Fstart_stack Tuint64_t + Farg_start Tuint64_t + Farg_end Tuint64_t + Fenv_start Tuint64_t + Fenv_end Tuint64_t + Fauxv uintptr + Fauxv_size Tuint32_t + Fexe_fd Tuint32_t +} + +func Xprctl(tls *TLS, op int32, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v op=%v va=%v, (%v:)", tls, op, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var i int32 + var x [4]uint32 + _, _, _ = ap, i, x + ap = va + i = 0 + for { + if !(i < int32(4)) { + break + } + x[i] = VaUint32(&ap) + goto _1 + _1: + ; + i = i + 1 + } + _ = ap + return X__syscall_ret(tls, Uint32FromInt32(X__syscall5(tls, int32(SYS_prctl), op, Int32FromUint32(x[0]), Int32FromUint32(x[int32(1)]), Int32FromUint32(x[int32(2)]), Int32FromUint32(x[int32(3)])))) +} + +const RWF_APPEND = 16 +const RWF_DSYNC = 2 +const RWF_HIPRI = 1 +const RWF_NOWAIT = 8 +const RWF_SYNC = 4 +const UIO_MAXIOV = 1024 + +func Xpreadv2(tls *TLS, fd int32, iov uintptr, count int32, ofs Toff_t, flags int32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v iov=%v count=%v ofs=%v flags=%v, (%v:)", tls, fd, iov, count, ofs, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + if !(flags != 0) { + if ofs == int64(-int32(1)) { + return Xreadv(tls, fd, iov, count) + } + return X__syscall_ret(tls, Uint32FromInt32(___syscall_cp(tls, int32(SYS_preadv), fd, int32(iov), count, int32(ofs), int32(ofs>>Int32FromInt32(32)), 0))) + } + return X__syscall_ret(tls, Uint32FromInt32(___syscall_cp(tls, int32(SYS_preadv2), fd, int32(iov), count, int32(ofs), int32(ofs>>Int32FromInt32(32)), flags))) +} + +func Xprlimit(tls *TLS, pid Tpid_t, resource int32, new_limit uintptr, old_limit uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v pid=%v resource=%v new_limit=%v old_limit=%v, (%v:)", tls, pid, resource, new_limit, old_limit, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var r int32 + var _ /* tmp at bp+0 */ Trlimit + _ = r + if new_limit != 0 && Bool(^Uint64FromUint64(0) != ^Uint64FromUint64(0)) { + **(**Trlimit)(__ccgo_up(bp)) = **(**Trlimit)(__ccgo_up(new_limit)) + if (**(**Trlimit)(__ccgo_up(bp))).Frlim_cur >= ^Uint64FromUint64(0) { + (**(**Trlimit)(__ccgo_up(bp))).Frlim_cur = ^Uint64FromUint64(0) + } + if (**(**Trlimit)(__ccgo_up(bp))).Frlim_max >= ^Uint64FromUint64(0) { + (**(**Trlimit)(__ccgo_up(bp))).Frlim_max = ^Uint64FromUint64(0) + } + new_limit = bp + } + r = X__syscall_ret(tls, Uint32FromInt32(X__syscall4(tls, int32(SYS_prlimit64), pid, resource, int32(new_limit), int32(old_limit)))) + if !(r != 0) && old_limit != 0 && Bool(^Uint64FromUint64(0) != ^Uint64FromUint64(0)) { + if (*Trlimit)(unsafe.Pointer(old_limit)).Frlim_cur >= ^Uint64FromUint64(0) { + (*Trlimit)(unsafe.Pointer(old_limit)).Frlim_cur = ^Uint64FromUint64(0) + } + if (*Trlimit)(unsafe.Pointer(old_limit)).Frlim_max >= ^Uint64FromUint64(0) { + (*Trlimit)(unsafe.Pointer(old_limit)).Frlim_max = ^Uint64FromUint64(0) + } + } + return r +} + +func Xprocess_vm_writev(tls *TLS, pid Tpid_t, lvec uintptr, liovcnt uint32, rvec uintptr, riovcnt uint32, flags uint32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v pid=%v lvec=%v liovcnt=%v rvec=%v riovcnt=%v flags=%v, (%v:)", tls, pid, lvec, liovcnt, rvec, riovcnt, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall6(tls, int32(SYS_process_vm_writev), pid, int32(lvec), Int32FromUint32(liovcnt), int32(rvec), Int32FromUint32(riovcnt), Int32FromUint32(flags)))) +} + +func Xprocess_vm_readv(tls *TLS, pid Tpid_t, lvec uintptr, liovcnt uint32, rvec uintptr, riovcnt uint32, flags uint32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v pid=%v lvec=%v liovcnt=%v rvec=%v riovcnt=%v flags=%v, (%v:)", tls, pid, lvec, liovcnt, rvec, riovcnt, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall6(tls, int32(SYS_process_vm_readv), pid, int32(lvec), Int32FromUint32(liovcnt), int32(rvec), Int32FromUint32(riovcnt), Int32FromUint32(flags)))) +} + +const PTRACE_ATTACH = 16 +const PTRACE_CONT = 7 +const PTRACE_DETACH = 17 +const PTRACE_EVENT_CLONE = 3 +const PTRACE_EVENT_EXEC = 4 +const PTRACE_EVENT_EXIT = 6 +const PTRACE_EVENT_FORK = 1 +const PTRACE_EVENT_SECCOMP = 7 +const PTRACE_EVENT_STOP = 128 +const PTRACE_EVENT_VFORK = 2 +const PTRACE_EVENT_VFORK_DONE = 5 +const PTRACE_GETEVENTMSG = 16897 +const PTRACE_GETFPREGS = 14 +const PTRACE_GETFPXREGS = 18 +const PTRACE_GETREGS = 12 +const PTRACE_GETREGSET = 16900 +const PTRACE_GETSIGINFO = 16898 +const PTRACE_GETSIGMASK = 16906 +const PTRACE_GET_RSEQ_CONFIGURATION = 16911 +const PTRACE_GET_SYSCALL_INFO = 16910 +const PTRACE_GET_THREAD_AREA = 25 +const PTRACE_INTERRUPT = 16903 +const PTRACE_KILL = 8 +const PTRACE_LISTEN = 16904 +const PTRACE_O_EXITKILL = 1048576 +const PTRACE_O_MASK = 3145983 +const PTRACE_O_SUSPEND_SECCOMP = 2097152 +const PTRACE_O_TRACECLONE = 8 +const PTRACE_O_TRACEEXEC = 16 +const PTRACE_O_TRACEEXIT = 64 +const PTRACE_O_TRACEFORK = 2 +const PTRACE_O_TRACESECCOMP = 128 +const PTRACE_O_TRACESYSGOOD = 1 +const PTRACE_O_TRACEVFORK = 4 +const PTRACE_O_TRACEVFORKDONE = 32 +const PTRACE_PEEKDATA = 2 +const PTRACE_PEEKSIGINFO = 16905 +const PTRACE_PEEKSIGINFO_SHARED = 1 +const PTRACE_PEEKTEXT = 1 +const PTRACE_PEEKUSER = 3 +const PTRACE_POKEDATA = 5 +const PTRACE_POKETEXT = 4 +const PTRACE_POKEUSER = 6 +const PTRACE_SECCOMP_GET_FILTER = 16908 +const PTRACE_SECCOMP_GET_METADATA = 16909 +const PTRACE_SEIZE = 16902 +const PTRACE_SETFPREGS = 15 +const PTRACE_SETFPXREGS = 19 +const PTRACE_SETOPTIONS = 16896 +const PTRACE_SETREGS = 13 +const PTRACE_SETREGSET = 16901 +const PTRACE_SETSIGINFO = 16899 +const PTRACE_SETSIGMASK = 16907 +const PTRACE_SET_THREAD_AREA = 26 +const PTRACE_SINGLEBLOCK = 33 +const PTRACE_SINGLESTEP = 9 +const PTRACE_SYSCALL = 24 +const PTRACE_SYSCALL_INFO_ENTRY = 1 +const PTRACE_SYSCALL_INFO_EXIT = 2 +const PTRACE_SYSCALL_INFO_NONE = 0 +const PTRACE_SYSCALL_INFO_SECCOMP = 3 +const PTRACE_SYSEMU = 31 +const PTRACE_SYSEMU_SINGLESTEP = 32 +const PTRACE_TRACEME = 0 +const PT_ATTACH = 16 +const PT_CONTINUE = 7 +const PT_DETACH = 17 +const PT_GETEVENTMSG = 16897 +const PT_GETFPREGS = 14 +const PT_GETFPXREGS = 18 +const PT_GETREGS = 12 +const PT_GETSIGINFO = 16898 +const PT_GET_THREAD_AREA = 25 +const PT_KILL = 8 +const PT_READ_D = 2 +const PT_READ_I = 1 +const PT_READ_U = 3 +const PT_SETFPREGS = 15 +const PT_SETFPXREGS = 19 +const PT_SETOPTIONS = 16896 +const PT_SETREGS = 13 +const PT_SETSIGINFO = 16899 +const PT_SET_THREAD_AREA = 26 +const PT_STEP = 9 +const PT_STEPBLOCK = 33 +const PT_SYSCALL = 24 +const PT_SYSEMU = 31 +const PT_SYSEMU_SINGLESTEP = 32 +const PT_TRACE_ME = 0 +const PT_WRITE_D = 5 +const PT_WRITE_I = 4 +const PT_WRITE_U = 6 + +type t__ptrace_peeksiginfo_args = struct { + Foff Tuint64_t + Fflags Tuint32_t + Fnr Tint32_t +} + +type t__ptrace_seccomp_metadata = struct { + Ffilter_off Tuint64_t + Fflags Tuint64_t +} + +type t__ptrace_syscall_info = struct { + Fop Tuint8_t + F__pad [3]Tuint8_t + Farch Tuint32_t + Finstruction_pointer Tuint64_t + Fstack_pointer Tuint64_t + F__ccgo5_24 struct { + Fexit [0]struct { + Frval Tint64_t + Fis_error Tuint8_t + } + Fseccomp [0]struct { + Fnr Tuint64_t + Fargs [6]Tuint64_t + Fret_data Tuint32_t + } + Fentry struct { + Fnr Tuint64_t + Fargs [6]Tuint64_t + } + F__ccgo_pad3 [4]byte + } +} + +type t__ptrace_rseq_configuration = struct { + Frseq_abi_pointer Tuint64_t + Frseq_abi_size Tuint32_t + Fsignature Tuint32_t + Fflags Tuint32_t + Fpad Tuint32_t +} + +func Xptrace(tls *TLS, req int32, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v req=%v va=%v, (%v:)", tls, req, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var addr, addr2, data uintptr + var ap Tva_list + var pid Tpid_t + var ret int32 + var _ /* result at bp+0 */ int32 + _, _, _, _, _, _ = addr, addr2, ap, data, pid, ret + addr2 = uintptr(0) + ap = va + pid = VaInt32(&ap) + addr = VaUintptr(&ap) + data = VaUintptr(&ap) + /* PTRACE_{READ,WRITE}{DATA,TEXT} (16...19) are specific to SPARC. */ + _ = ap + if Uint32FromInt32(req)-uint32(1) < uint32(3) { + data = bp + } + ret = X__syscall_ret(tls, Uint32FromInt32(X__syscall5(tls, int32(SYS_ptrace), req, pid, int32(addr), int32(data), int32(addr2)))) + if ret < 0 || Uint32FromInt32(req)-uint32(1) >= uint32(3) { + return ret + } + return **(**int32)(__ccgo_up(bp)) +} + +func Xpwritev2(tls *TLS, fd int32, iov uintptr, count int32, ofs Toff_t, flags int32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v iov=%v count=%v ofs=%v flags=%v, (%v:)", tls, fd, iov, count, ofs, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + if !(flags != 0) { + if ofs == int64(-int32(1)) { + return Xwritev(tls, fd, iov, count) + } + return X__syscall_ret(tls, Uint32FromInt32(___syscall_cp(tls, int32(SYS_pwritev), fd, int32(iov), count, int32(ofs), int32(ofs>>Int32FromInt32(32)), 0))) + } + return X__syscall_ret(tls, Uint32FromInt32(___syscall_cp(tls, int32(SYS_pwritev2), fd, int32(iov), count, int32(ofs), int32(ofs>>Int32FromInt32(32)), flags))) +} + +const GRPQUOTA = 1 +const IIF_ALL = 7 +const IIF_BGRACE = 1 +const IIF_FLAGS = 4 +const IIF_IGRACE = 2 +const MAXQUOTAS = 2 +const MAX_DQ_TIME = 604800 +const MAX_IQ_TIME = 604800 +const NR_DQHASH = 43 +const NR_DQUOTS = 256 +const QFMT_OCFS2 = 3 +const QFMT_VFS_OLD = 1 +const QFMT_VFS_V0 = 2 +const QFMT_VFS_V1 = 4 +const QIF_ALL = 63 +const QIF_BLIMITS = 1 +const QIF_BTIME = 16 +const QIF_ILIMITS = 4 +const QIF_INODES = 8 +const QIF_ITIME = 32 +const QIF_LIMITS = 5 +const QIF_SPACE = 2 +const QIF_TIMES = 48 +const QIF_USAGE = 10 +const QUOTAFILENAME = "quota" +const QUOTAGROUP = "staff" +const Q_GETFMT = 8388612 +const Q_GETINFO = 8388613 +const Q_GETQUOTA = 8388615 +const Q_QUOTAOFF = 8388611 +const Q_QUOTAON = 8388610 +const Q_SETINFO = 8388614 +const Q_SETQUOTA = 8388616 +const Q_SYNC = 8388609 +const SUBCMDMASK = 255 +const SUBCMDSHIFT = 8 +const USRQUOTA = 0 +const _LINUX_QUOTA_VERSION = 2 + +type Tdqblk = struct { + Fdqb_bhardlimit Tuint64_t + Fdqb_bsoftlimit Tuint64_t + Fdqb_curspace Tuint64_t + Fdqb_ihardlimit Tuint64_t + Fdqb_isoftlimit Tuint64_t + Fdqb_curinodes Tuint64_t + Fdqb_btime Tuint64_t + Fdqb_itime Tuint64_t + Fdqb_valid Tuint32_t +} + +type Tdqinfo = struct { + Fdqi_bgrace Tuint64_t + Fdqi_igrace Tuint64_t + Fdqi_flags Tuint32_t + Fdqi_valid Tuint32_t +} + +func Xquotactl(tls *TLS, cmd int32, special uintptr, id int32, addr uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v cmd=%v special=%v id=%v addr=%v, (%v:)", tls, cmd, special, id, addr, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall4(tls, int32(SYS_quotactl), cmd, int32(special), id, int32(addr)))) +} + +func Xreadahead(tls *TLS, fd int32, pos Toff_t, len1 Tsize_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v pos=%v len1=%v, (%v:)", tls, fd, pos, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall4(tls, int32(SYS_readahead), fd, int32(pos), int32(pos>>Int32FromInt32(32)), Int32FromUint32(len1)))) +} + +const RB_AUTOBOOT = 19088743 +const RB_DISABLE_CAD = 0 +const RB_ENABLE_CAD = 2309737967 +const RB_HALT_SYSTEM = 3454992675 +const RB_KEXEC = 1163412803 +const RB_POWER_OFF = 1126301404 +const RB_SW_SUSPEND = 3489725666 + +func Xreboot(tls *TLS, type1 int32) (r int32) { + if __ccgo_strace { + trc("tls=%v type1=%v, (%v:)", tls, type1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_reboot), Int32FromUint32(Uint32FromUint32(0xfee1dead)), int32(Int32FromInt32(672274793)), type1))) +} + +func Xremap_file_pages(tls *TLS, addr uintptr, size Tsize_t, prot int32, pgoff Tsize_t, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v size=%v prot=%v pgoff=%v flags=%v, (%v:)", tls, addr, size, prot, pgoff, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall5(tls, int32(SYS_remap_file_pages), int32(addr), Int32FromUint32(size), prot, Int32FromUint32(pgoff), flags))) +} + +func Xsbrk(tls *TLS, inc Tintptr_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v inc=%v, (%v:)", tls, inc, origin(2)) + defer func() { trc("-> %v", r) }() + } + if inc != 0 { + return uintptr(X__syscall_ret(tls, Uint32FromInt32(-Int32FromInt32(ENOMEM)))) + } + return uintptr(X__syscall1(tls, int32(SYS_brk), int32(Int32FromInt32(0)))) +} + +func Xsendfile(tls *TLS, out_fd int32, in_fd int32, ofs uintptr, count Tsize_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v out_fd=%v in_fd=%v ofs=%v count=%v, (%v:)", tls, out_fd, in_fd, ofs, count, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall4(tls, int32(SYS_sendfile64), out_fd, in_fd, int32(ofs), Int32FromUint32(count)))) +} + +func Xsetfsgid(tls *TLS, gid Tgid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v gid=%v, (%v:)", tls, gid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall1(tls, int32(SYS_setfsgid32), Int32FromUint32(gid)))) +} + +func Xsetfsuid(tls *TLS, uid Tuid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v uid=%v, (%v:)", tls, uid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall1(tls, int32(SYS_setfsuid32), Int32FromUint32(uid)))) +} + +func Xsethostname(tls *TLS, name uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v len1=%v, (%v:)", tls, name, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_sethostname), int32(name), Int32FromUint32(len1)))) +} + +const CLONE_CHILD_CLEARTID = 2097152 +const CLONE_CHILD_SETTID = 16777216 +const CLONE_DETACHED = 4194304 +const CLONE_FILES = 1024 +const CLONE_FS = 512 +const CLONE_IO = 2147483648 +const CLONE_NEWCGROUP = 33554432 +const CLONE_NEWIPC = 134217728 +const CLONE_NEWNET = 1073741824 +const CLONE_NEWNS = 131072 +const CLONE_NEWPID = 536870912 +const CLONE_NEWTIME = 128 +const CLONE_NEWUSER = 268435456 +const CLONE_NEWUTS = 67108864 +const CLONE_PARENT = 32768 +const CLONE_PARENT_SETTID = 1048576 +const CLONE_PIDFD = 4096 +const CLONE_PTRACE = 8192 +const CLONE_SETTLS = 524288 +const CLONE_SIGHAND = 2048 +const CLONE_SYSVSEM = 262144 +const CLONE_THREAD = 65536 +const CLONE_UNTRACED = 8388608 +const CLONE_VFORK = 16384 +const CLONE_VM = 256 +const CPU_SETSIZE = 1024 +const CSIGNAL = 255 + +type Tcpu_set_t = struct { + F__bits [32]uint32 +} + +func Xsetns(tls *TLS, fd int32, nstype int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v nstype=%v, (%v:)", tls, fd, nstype, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_setns), fd, nstype))) +} + +const __tm_gmtoff = 0 +const __tm_zone = 0 + +type Ttm1 = struct { + Ftm_sec int32 + Ftm_min int32 + Ftm_hour int32 + Ftm_mday int32 + Ftm_mon int32 + Ftm_year int32 + Ftm_wday int32 + Ftm_yday int32 + Ftm_isdst int32 + Ftm_gmtoff int32 + Ftm_zone uintptr +} + +func Xsettimeofday(tls *TLS, tv uintptr, tz uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v tv=%v tz=%v, (%v:)", tls, tv, tz, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + if !(tv != 0) { + return 0 + } + if Uint64FromInt64((*Ttimeval)(unsafe.Pointer(tv)).Ftv_usec) >= uint64(1000000) { + return X__syscall_ret(tls, Uint32FromInt32(-Int32FromInt32(EINVAL))) + } + *(*Ttimespec)(unsafe.Pointer(bp)) = Ttimespec{ + Ftv_sec: (*Ttimeval)(unsafe.Pointer(tv)).Ftv_sec, + Ftv_nsec: int32((*Ttimeval)(unsafe.Pointer(tv)).Ftv_usec * int64(1000)), + } + return Xclock_settime(tls, CLOCK_REALTIME, bp) +} + +const SFD_CLOEXEC = 524288 +const SFD_NONBLOCK = 2048 + +type Tsignalfd_siginfo = struct { + Fssi_signo Tuint32_t + Fssi_errno Tint32_t + Fssi_code Tint32_t + Fssi_pid Tuint32_t + Fssi_uid Tuint32_t + Fssi_fd Tint32_t + Fssi_tid Tuint32_t + Fssi_band Tuint32_t + Fssi_overrun Tuint32_t + Fssi_trapno Tuint32_t + Fssi_status Tint32_t + Fssi_int Tint32_t + Fssi_ptr Tuint64_t + Fssi_utime Tuint64_t + Fssi_stime Tuint64_t + Fssi_addr Tuint64_t + Fssi_addr_lsb Tuint16_t + F__pad2 Tuint16_t + Fssi_syscall Tint32_t + Fssi_call_addr Tuint64_t + Fssi_arch Tuint32_t + F__pad [28]Tuint8_t +} + +func Xsignalfd(tls *TLS, fd int32, sigs uintptr, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v sigs=%v flags=%v, (%v:)", tls, fd, sigs, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret int32 + _ = ret + ret = int32(X__syscall4(tls, int32(SYS_signalfd4), fd, int32(sigs), int32(Int32FromInt32(_NSIG)/Int32FromInt32(8)), flags)) + if ret != -int32(ENOSYS) { + return X__syscall_ret(tls, Uint32FromInt32(ret)) + } + ret = int32(X__syscall3(tls, int32(SYS_signalfd), fd, int32(sigs), int32(Int32FromInt32(_NSIG)/Int32FromInt32(8)))) + if ret >= 0 { + if flags&int32(O_CLOEXEC) != 0 { + X__syscall3(tls, int32(SYS_fcntl64), ret, int32(Int32FromInt32(F_SETFD)), int32(Int32FromInt32(FD_CLOEXEC))) + } + if flags&int32(O_NONBLOCK) != 0 { + X__syscall3(tls, int32(SYS_fcntl64), ret, int32(Int32FromInt32(F_SETFL)), int32(Int32FromInt32(O_NONBLOCK))) + } + } + return X__syscall_ret(tls, Uint32FromInt32(ret)) +} + +func Xsplice(tls *TLS, fd_in int32, off_in uintptr, fd_out int32, off_out uintptr, len1 Tsize_t, flags uint32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd_in=%v off_in=%v fd_out=%v off_out=%v len1=%v flags=%v, (%v:)", tls, fd_in, off_in, fd_out, off_out, len1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall6(tls, int32(SYS_splice), fd_in, int32(off_in), fd_out, int32(off_out), Int32FromUint32(len1), Int32FromUint32(flags)))) +} + +func Xstatx(tls *TLS, dirfd int32, path uintptr, flags int32, mask uint32, stx uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v dirfd=%v path=%v flags=%v mask=%v stx=%v, (%v:)", tls, dirfd, path, flags, mask, stx, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(144) + defer tls.Free(144) + var ret int32 + var _ /* st at bp+0 */ Tstat + _ = ret + ret = int32(X__syscall5(tls, int32(SYS_statx), dirfd, int32(path), flags, Int32FromUint32(mask), int32(stx))) + if ret != -int32(ENOSYS) { + return X__syscall_ret(tls, Uint32FromInt32(ret)) + } + ret = Xfstatat(tls, dirfd, path, bp, flags) + if ret != 0 { + return ret + } + (*Tstatx)(unsafe.Pointer(stx)).Fstx_dev_major = uint32((**(**Tstat)(__ccgo_up(bp))).Fst_dev>>Int32FromInt32(31)>>Int32FromInt32(1)&Uint64FromUint32(0xfffff000) | (**(**Tstat)(__ccgo_up(bp))).Fst_dev>>Int32FromInt32(8)&Uint64FromInt32(0x00000fff)) + (*Tstatx)(unsafe.Pointer(stx)).Fstx_dev_minor = uint32((**(**Tstat)(__ccgo_up(bp))).Fst_dev>>Int32FromInt32(12)&Uint64FromUint32(0xffffff00) | (**(**Tstat)(__ccgo_up(bp))).Fst_dev&Uint64FromInt32(0x000000ff)) + (*Tstatx)(unsafe.Pointer(stx)).Fstx_ino = (**(**Tstat)(__ccgo_up(bp))).Fst_ino + (*Tstatx)(unsafe.Pointer(stx)).Fstx_mode = uint16((**(**Tstat)(__ccgo_up(bp))).Fst_mode) + (*Tstatx)(unsafe.Pointer(stx)).Fstx_nlink = (**(**Tstat)(__ccgo_up(bp))).Fst_nlink + (*Tstatx)(unsafe.Pointer(stx)).Fstx_uid = (**(**Tstat)(__ccgo_up(bp))).Fst_uid + (*Tstatx)(unsafe.Pointer(stx)).Fstx_gid = (**(**Tstat)(__ccgo_up(bp))).Fst_gid + (*Tstatx)(unsafe.Pointer(stx)).Fstx_size = Uint64FromInt64((**(**Tstat)(__ccgo_up(bp))).Fst_size) + (*Tstatx)(unsafe.Pointer(stx)).Fstx_blksize = Uint32FromInt32((**(**Tstat)(__ccgo_up(bp))).Fst_blksize) + (*Tstatx)(unsafe.Pointer(stx)).Fstx_blocks = Uint64FromInt64((**(**Tstat)(__ccgo_up(bp))).Fst_blocks) + (*Tstatx)(unsafe.Pointer(stx)).Fstx_atime.Ftv_sec = (**(**Tstat)(__ccgo_up(bp))).Fst_atim.Ftv_sec + (*Tstatx)(unsafe.Pointer(stx)).Fstx_atime.Ftv_nsec = Uint32FromInt32((**(**Tstat)(__ccgo_up(bp))).Fst_atim.Ftv_nsec) + (*Tstatx)(unsafe.Pointer(stx)).Fstx_mtime.Ftv_sec = (**(**Tstat)(__ccgo_up(bp))).Fst_mtim.Ftv_sec + (*Tstatx)(unsafe.Pointer(stx)).Fstx_mtime.Ftv_nsec = Uint32FromInt32((**(**Tstat)(__ccgo_up(bp))).Fst_mtim.Ftv_nsec) + (*Tstatx)(unsafe.Pointer(stx)).Fstx_ctime.Ftv_sec = (**(**Tstat)(__ccgo_up(bp))).Fst_ctim.Ftv_sec + (*Tstatx)(unsafe.Pointer(stx)).Fstx_ctime.Ftv_nsec = Uint32FromInt32((**(**Tstat)(__ccgo_up(bp))).Fst_ctim.Ftv_nsec) + (*Tstatx)(unsafe.Pointer(stx)).Fstx_btime = Tstatx_timestamp{} + (*Tstatx)(unsafe.Pointer(stx)).Fstx_mask = uint32(0x7ff) + return 0 +} + +func Xstime(tls *TLS, t uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v t=%v, (%v:)", tls, t, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* tv at bp+0 */ Ttimeval + **(**Ttimeval)(__ccgo_up(bp)) = Ttimeval{ + Ftv_sec: **(**Ttime_t)(__ccgo_up(t)), + } + return Xsettimeofday(tls, bp, UintptrFromInt32(0)) +} + +const SWAP_FLAG_DISCARD = 65536 +const SWAP_FLAG_PREFER = 32768 +const SWAP_FLAG_PRIO_MASK = 32767 +const SWAP_FLAG_PRIO_SHIFT = 0 + +func Xswapon(tls *TLS, path uintptr, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v flags=%v, (%v:)", tls, path, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_swapon), int32(path), flags))) +} + +func Xswapoff(tls *TLS, path uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v, (%v:)", tls, path, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall1(tls, int32(SYS_swapoff), int32(path)))) +} + +func Xsync_file_range(tls *TLS, fd int32, pos Toff_t, len1 Toff_t, flags uint32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v pos=%v len1=%v flags=%v, (%v:)", tls, fd, pos, len1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall6(tls, int32(SYS_sync_file_range), fd, int32(pos), int32(pos>>Int32FromInt32(32)), int32(len1), int32(len1>>Int32FromInt32(32)), Int32FromUint32(flags)))) +} + +func Xsyncfs(tls *TLS, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall1(tls, int32(SYS_syncfs), fd))) +} + +func X__lsysinfo(tls *TLS, info uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v info=%v, (%v:)", tls, info, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall1(tls, int32(SYS_sysinfo), int32(info)))) +} + +func Xsysinfo(tls *TLS, info uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v info=%v, (%v:)", tls, info, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lsysinfo(tls, info) +} + +func Xtee(tls *TLS, src int32, dest int32, len1 Tsize_t, flags uint32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v src=%v dest=%v len1=%v flags=%v, (%v:)", tls, src, dest, len1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall4(tls, int32(SYS_tee), src, dest, Int32FromUint32(len1), Int32FromUint32(flags)))) +} + +const TFD_CLOEXEC = 524288 +const TFD_NONBLOCK = 2048 +const TFD_TIMER_ABSTIME = 1 +const TFD_TIMER_CANCEL_ON_SET = 2 + +func Xtimerfd_create(tls *TLS, clockid int32, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v clockid=%v flags=%v, (%v:)", tls, clockid, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_timerfd_create), clockid, flags))) +} + +func Xtimerfd_settime(tls *TLS, fd int32, flags int32, new1 uintptr, old uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v flags=%v new1=%v old=%v, (%v:)", tls, fd, flags, new1, old, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var ins, r, vns int32 + var is, vs Ttime_t + var _ /* old32 at bp+48 */ [4]int32 + _, _, _, _, _ = ins, is, r, vns, vs + is = (*Titimerspec)(unsafe.Pointer(new1)).Fit_interval.Ftv_sec + vs = (*Titimerspec)(unsafe.Pointer(new1)).Fit_value.Ftv_sec + ins = (*Titimerspec)(unsafe.Pointer(new1)).Fit_interval.Ftv_nsec + vns = (*Titimerspec)(unsafe.Pointer(new1)).Fit_value.Ftv_nsec + r = -int32(ENOSYS) + if Bool(false) || !!((Uint64FromInt64(is)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) || !!((Uint64FromInt64(vs)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) || Bool(uint32(8) > uint32(4)) && old != 0 { + *(*[4]int64)(unsafe.Pointer(bp)) = [4]int64{ + 0: is, + 1: int64(ins), + 2: vs, + 3: int64(vns), + } + r = int32(X__syscall4(tls, int32(SYS_timerfd_settime64), fd, flags, int32(bp), int32(old))) + } + if Bool(false) || r != -int32(ENOSYS) { + return X__syscall_ret(tls, Uint32FromInt32(r)) + } + if !!((Uint64FromInt64(is)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) || !!((Uint64FromInt64(vs)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) { + return X__syscall_ret(tls, Uint32FromInt32(-Int32FromInt32(EOPNOTSUPP))) + } + *(*[4]int32)(unsafe.Pointer(bp + 32)) = [4]int32{ + 0: int32(is), + 1: ins, + 2: int32(vs), + 3: vns, + } + r = int32(X__syscall4(tls, int32(SYS_timerfd_settime32), fd, flags, int32(bp+32), int32(bp+48))) + if !(r != 0) && old != 0 { + (*Titimerspec)(unsafe.Pointer(old)).Fit_interval.Ftv_sec = int64((**(**[4]int32)(__ccgo_up(bp + 48)))[0]) + (*Titimerspec)(unsafe.Pointer(old)).Fit_interval.Ftv_nsec = (**(**[4]int32)(__ccgo_up(bp + 48)))[int32(1)] + (*Titimerspec)(unsafe.Pointer(old)).Fit_value.Ftv_sec = int64((**(**[4]int32)(__ccgo_up(bp + 48)))[int32(2)]) + (*Titimerspec)(unsafe.Pointer(old)).Fit_value.Ftv_nsec = (**(**[4]int32)(__ccgo_up(bp + 48)))[int32(3)] + } + return X__syscall_ret(tls, Uint32FromInt32(r)) + return X__syscall_ret(tls, Uint32FromInt32(X__syscall4(tls, int32(SYS_timerfd_settime32), fd, flags, int32(new1), int32(old)))) +} + +func Xtimerfd_gettime(tls *TLS, fd int32, cur uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v cur=%v, (%v:)", tls, fd, cur, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var r int32 + var _ /* cur32 at bp+0 */ [4]int32 + _ = r + r = -int32(ENOSYS) + if uint32(8) > uint32(4) { + r = int32(X__syscall2(tls, int32(SYS_timerfd_gettime64), fd, int32(cur))) + } + if Bool(false) || r != -int32(ENOSYS) { + return X__syscall_ret(tls, Uint32FromInt32(r)) + } + r = int32(X__syscall2(tls, int32(SYS_timerfd_gettime32), fd, int32(bp))) + if !(r != 0) { + (*Titimerspec)(unsafe.Pointer(cur)).Fit_interval.Ftv_sec = int64((**(**[4]int32)(__ccgo_up(bp)))[0]) + (*Titimerspec)(unsafe.Pointer(cur)).Fit_interval.Ftv_nsec = (**(**[4]int32)(__ccgo_up(bp)))[int32(1)] + (*Titimerspec)(unsafe.Pointer(cur)).Fit_value.Ftv_sec = int64((**(**[4]int32)(__ccgo_up(bp)))[int32(2)]) + (*Titimerspec)(unsafe.Pointer(cur)).Fit_value.Ftv_nsec = (**(**[4]int32)(__ccgo_up(bp)))[int32(3)] + } + return X__syscall_ret(tls, Uint32FromInt32(r)) + return X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_timerfd_gettime32), fd, int32(cur)))) +} + +func Xunshare(tls *TLS, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v flags=%v, (%v:)", tls, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall1(tls, int32(SYS_unshare), flags))) +} + +func Xutimes(tls *TLS, path uintptr, times uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v times=%v, (%v:)", tls, path, times, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__futimesat(tls, -int32(100), path, times) +} + +func Xvhangup(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall0(tls, int32(SYS_vhangup)))) +} + +func Xvmsplice(tls *TLS, fd int32, iov uintptr, cnt Tsize_t, flags uint32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v iov=%v cnt=%v flags=%v, (%v:)", tls, fd, iov, cnt, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall4(tls, int32(SYS_vmsplice), fd, int32(iov), Int32FromUint32(cnt), Int32FromUint32(flags)))) +} + +const NSIG = 65 +const SA_NOMASK = 1073741824 +const SA_ONESHOT = 2147483648 +const SYS_SECCOMP = 1 +const SYS_USER_DISPATCH = 2 +const __ucontext = 0 + +const _REG_GS = 0 +const _REG_FS = 1 +const _REG_ES = 2 +const _REG_DS = 3 +const _REG_EDI = 4 +const _REG_ESI = 5 +const _REG_EBP = 6 +const _REG_ESP = 7 +const _REG_EBX = 8 +const _REG_EDX = 9 +const _REG_ECX = 10 +const _REG_EAX = 11 +const _REG_TRAPNO = 12 +const _REG_ERR = 13 +const _REG_EIP = 14 +const _REG_CS = 15 +const _REG_EFL = 16 +const _REG_UESP = 17 +const _REG_SS = 18 + +type Tgreg_t = int32 + +type Tgregset_t = [19]int32 + +type Tfpregset_t = uintptr + +type T_fpstate = struct { + Fcw uint32 + Fsw uint32 + Ftag uint32 + Fipoff uint32 + Fcssel uint32 + Fdataoff uint32 + Fdatasel uint32 + F_st [8]struct { + Fsignificand [4]uint16 + Fexponent uint16 + } + Fstatus uint32 +} + +type Tsigcontext = struct { + Fgs uint16 + F__gsh uint16 + Ffs uint16 + F__fsh uint16 + Fes uint16 + F__esh uint16 + Fds uint16 + F__dsh uint16 + Fedi uint32 + Fesi uint32 + Febp uint32 + Fesp uint32 + Febx uint32 + Fedx uint32 + Fecx uint32 + Feax uint32 + Ftrapno uint32 + Ferr uint32 + Feip uint32 + Fcs uint16 + F__csh uint16 + Feflags uint32 + Fesp_at_signal uint32 + Fss uint16 + F__ssh uint16 + Ffpstate uintptr + Foldmask uint32 + Fcr2 uint32 +} + +type Tmcontext_t1 = struct { + Fgregs Tgregset_t + Ffpregs Tfpregset_t + Foldmask uint32 + Fcr2 uint32 +} + +type Tucontext_t1 = struct { + Fuc_flags uint32 + Fuc_link uintptr + Fuc_stack Tstack_t + Fuc_mcontext Tmcontext_t1 + Fuc_sigmask Tsigset_t + F__fpregs_mem [28]uint32 +} + +type Tucontext = Tucontext_t1 + +type Tsig_t = uintptr + +type Tsighandler_t = uintptr + +func Xwait3(tls *TLS, status uintptr, options int32, usage uintptr) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v status=%v options=%v usage=%v, (%v:)", tls, status, options, usage, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwait4(tls, -int32(1), status, options, usage) +} + +func Xwait4(tls *TLS, pid Tpid_t, status uintptr, options int32, ru uintptr) (r1 Tpid_t) { + if __ccgo_strace { + trc("tls=%v pid=%v status=%v options=%v ru=%v, (%v:)", tls, pid, status, options, ru, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var dest, v1 uintptr + var r int32 + var _ /* kru at bp+0 */ [4]int32 + _, _, _ = dest, r, v1 + if ru != 0 { + v1 = ru + 32 - uintptr(Uint32FromInt32(4)*Uint32FromInt64(4)) + } else { + v1 = uintptr(0) + } + dest = v1 + r = int32(X__syscall4(tls, int32(SYS_wait4), pid, int32(status), options, int32(dest))) + if r > 0 && ru != 0 && Bool(uint32(8) > uint32(4)) { + Xmemcpy(tls, bp, dest, Uint32FromInt32(4)*Uint32FromInt64(4)) + (*Trusage)(unsafe.Pointer(ru)).Fru_utime = Ttimeval{ + Ftv_sec: int64((**(**[4]int32)(__ccgo_up(bp)))[0]), + Ftv_usec: int64((**(**[4]int32)(__ccgo_up(bp)))[int32(1)]), + } + (*Trusage)(unsafe.Pointer(ru)).Fru_stime = Ttimeval{ + Ftv_sec: int64((**(**[4]int32)(__ccgo_up(bp)))[int32(2)]), + Ftv_usec: int64((**(**[4]int32)(__ccgo_up(bp)))[int32(3)]), + } + } + return X__syscall_ret(tls, Uint32FromInt32(r)) +} + +const XATTR_CREATE = 1 +const XATTR_REPLACE = 2 +const __UAPI_DEF_XATTR = 0 + +func Xgetxattr(tls *TLS, path uintptr, name uintptr, value uintptr, size Tsize_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v path=%v name=%v value=%v size=%v, (%v:)", tls, path, name, value, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall4(tls, int32(SYS_getxattr), int32(path), int32(name), int32(value), Int32FromUint32(size)))) +} + +func Xlgetxattr(tls *TLS, path uintptr, name uintptr, value uintptr, size Tsize_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v path=%v name=%v value=%v size=%v, (%v:)", tls, path, name, value, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall4(tls, int32(SYS_lgetxattr), int32(path), int32(name), int32(value), Int32FromUint32(size)))) +} + +func Xfgetxattr(tls *TLS, filedes int32, name uintptr, value uintptr, size Tsize_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v filedes=%v name=%v value=%v size=%v, (%v:)", tls, filedes, name, value, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall4(tls, int32(SYS_fgetxattr), filedes, int32(name), int32(value), Int32FromUint32(size)))) +} + +func Xlistxattr(tls *TLS, path uintptr, list uintptr, size Tsize_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v path=%v list=%v size=%v, (%v:)", tls, path, list, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_listxattr), int32(path), int32(list), Int32FromUint32(size)))) +} + +func Xllistxattr(tls *TLS, path uintptr, list uintptr, size Tsize_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v path=%v list=%v size=%v, (%v:)", tls, path, list, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_llistxattr), int32(path), int32(list), Int32FromUint32(size)))) +} + +func Xflistxattr(tls *TLS, filedes int32, list uintptr, size Tsize_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v filedes=%v list=%v size=%v, (%v:)", tls, filedes, list, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_flistxattr), filedes, int32(list), Int32FromUint32(size)))) +} + +func Xsetxattr(tls *TLS, path uintptr, name uintptr, value uintptr, size Tsize_t, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v name=%v value=%v size=%v flags=%v, (%v:)", tls, path, name, value, size, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall5(tls, int32(SYS_setxattr), int32(path), int32(name), int32(value), Int32FromUint32(size), flags))) +} + +func Xlsetxattr(tls *TLS, path uintptr, name uintptr, value uintptr, size Tsize_t, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v name=%v value=%v size=%v flags=%v, (%v:)", tls, path, name, value, size, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall5(tls, int32(SYS_lsetxattr), int32(path), int32(name), int32(value), Int32FromUint32(size), flags))) +} + +func Xfsetxattr(tls *TLS, filedes int32, name uintptr, value uintptr, size Tsize_t, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v filedes=%v name=%v value=%v size=%v flags=%v, (%v:)", tls, filedes, name, value, size, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall5(tls, int32(SYS_fsetxattr), filedes, int32(name), int32(value), Int32FromUint32(size), flags))) +} + +func Xremovexattr(tls *TLS, path uintptr, name uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v name=%v, (%v:)", tls, path, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_removexattr), int32(path), int32(name)))) +} + +func Xlremovexattr(tls *TLS, path uintptr, name uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v name=%v, (%v:)", tls, path, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_lremovexattr), int32(path), int32(name)))) +} + +func Xfremovexattr(tls *TLS, fd int32, name uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v name=%v, (%v:)", tls, fd, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_fremovexattr), fd, int32(name)))) +} + +func _dummy4(tls *TLS, msg uintptr, lm uintptr) (r uintptr) { + return msg +} + +func X__lctrans(tls *TLS, msg uintptr, lm uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v msg=%v lm=%v, (%v:)", tls, msg, lm, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lctrans_impl(tls, msg, lm) +} + +func X__lctrans_cur(tls *TLS, msg uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v msg=%v, (%v:)", tls, msg, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lctrans_impl(tls, msg, **(**uintptr)(__ccgo_up((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale + 5*4))) +} + +func _swapc(tls *TLS, x Tuint32_t, c int32) (r Tuint32_t) { + var v1 uint32 + _ = v1 + if c != 0 { + v1 = x>>int32(24) | x>>int32(8)&uint32(0xff00) | x< %v", r) }() + } + var b, n, o, ol, os, t, tl, ts Tuint32_t + var mo uintptr + var sign, sw int32 + _, _, _, _, _, _, _, _, _, _, _ = b, mo, n, o, ol, os, sign, sw, t, tl, ts + mo = p + sw = Int32FromUint32(**(**Tuint32_t)(__ccgo_up(mo)) - uint32(0x950412de)) + b = uint32(0) + n = _swapc(tls, **(**Tuint32_t)(__ccgo_up(mo + 2*4)), sw) + o = _swapc(tls, **(**Tuint32_t)(__ccgo_up(mo + 3*4)), sw) + t = _swapc(tls, **(**Tuint32_t)(__ccgo_up(mo + 4*4)), sw) + if n >= size/uint32(4) || o >= size-uint32(4)*n || t >= size-uint32(4)*n || (o|t)%uint32(4) != 0 { + return uintptr(0) + } + o = o / uint32(4) + t = t / uint32(4) + for { + ol = _swapc(tls, **(**Tuint32_t)(__ccgo_up(mo + uintptr(o+uint32(2)*(b+n/uint32(2)))*4)), sw) + os = _swapc(tls, **(**Tuint32_t)(__ccgo_up(mo + uintptr(o+uint32(2)*(b+n/uint32(2))+uint32(1))*4)), sw) + if os >= size || ol >= size-os || **(**int8)(__ccgo_up(p + uintptr(os+ol))) != 0 { + return uintptr(0) + } + sign = Xstrcmp(tls, s, p+uintptr(os)) + if !(sign != 0) { + tl = _swapc(tls, **(**Tuint32_t)(__ccgo_up(mo + uintptr(t+uint32(2)*(b+n/uint32(2)))*4)), sw) + ts = _swapc(tls, **(**Tuint32_t)(__ccgo_up(mo + uintptr(t+uint32(2)*(b+n/uint32(2))+uint32(1))*4)), sw) + if ts >= size || tl >= size-ts || **(**int8)(__ccgo_up(p + uintptr(ts+tl))) != 0 { + return uintptr(0) + } + return p + uintptr(ts) + } else { + if n == uint32(1) { + return uintptr(0) + } else { + if sign < 0 { + n = n / uint32(2) + } else { + b = b + n/uint32(2) + n = n - n/uint32(2) + } + } + } + goto _1 + _1: + } + return uintptr(0) +} + +const __USE_GNU_GETTEXT = 1 + +func Xbind_textdomain_codeset(tls *TLS, domainname uintptr, codeset uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v domainname=%v codeset=%v, (%v:)", tls, domainname, codeset, origin(2)) + defer func() { trc("-> %v", r) }() + } + if codeset != 0 && Xstrcasecmp(tls, codeset, __ccgo_ts+322) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + } + return UintptrFromInt32(0) +} + +var _empty_mo = [5]Tuint32_t{ + 0: uint32(0x950412de), + 2: Uint32FromInt32(-Int32FromInt32(1)), + 3: Uint32FromInt32(-Int32FromInt32(1)), + 4: Uint32FromInt32(-Int32FromInt32(1)), +} + +const NL_CAT_LOCALE = 1 +const NL_SETD = 1 + +type Tnl_item = int32 + +type Tnl_catd = uintptr + +func Xcatclose(tls *TLS, catd Tnl_catd) (r int32) { + if __ccgo_strace { + trc("tls=%v catd=%v, (%v:)", tls, catd, origin(2)) + defer func() { trc("-> %v", r) }() + } + var map1 uintptr + var v1, v2 Tuint32_t + _, _, _ = map1, v1, v2 + map1 = catd + v1 = **(**Tuint32_t)(__ccgo_up(map1 + UintptrFromInt32(8))) + v2 = v1>>int32(24) | v1>>int32(8)&uint32(0xff00) | v1<>int32(24) | v1>>int32(8)&uint32(0xff00) | v1<>int32(24) | v4>>int32(8)&uint32(0xff00) | v4< y { + v8 = int32(1) + } else { + v8 = 0 + } + v7 = v8 + } + return v7 +} + +func Xcatgets(tls *TLS, catd Tnl_catd, set_id int32, msg_id int32, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v catd=%v set_id=%v msg_id=%v s=%v, (%v:)", tls, catd, set_id, msg_id, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var map1, msg, msgs, set, sets, strings uintptr + var nmsgs, nsets, v1, v10, v11, v13, v14, v2, v4, v5, v7, v8 Tuint32_t + var _ /* msg_id_be at bp+4 */ Tuint32_t + var _ /* set_id_be at bp+0 */ Tuint32_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = map1, msg, msgs, nmsgs, nsets, set, sets, strings, v1, v10, v11, v13, v14, v2, v4, v5, v7, v8 + map1 = catd + v1 = **(**Tuint32_t)(__ccgo_up(map1 + UintptrFromInt32(4))) + v2 = v1>>int32(24) | v1>>int32(8)&uint32(0xff00) | v1<>int32(24) | v4>>int32(8)&uint32(0xff00) | v4<>int32(24) | v7>>int32(8)&uint32(0xff00) | v7<>int32(24) | v10>>int32(8)&uint32(0xff00) | v10<>int32(24) | v13>>int32(8)&uint32(0xff00) | v13<>int32(24) | v1>>int32(8)&uint32(0xff00) | v1<>int32(24) | v4>>int32(8)&uint32(0xff00) | v4<>int32(24) | v1>>int32(8)&uint32(0xff00) | v1<>int32(24) | v1>>int32(8)&uint32(0xff00) | v1<>int32(24) | v5>>int32(8)&uint32(0xff00) | v5< %v", r) }() + } + bp := tls.Alloc(4096) + defer tls.Free(4096) + var catd Tnl_catd + var i, l Tsize_t + var lang, p, path, v, z, v1 uintptr + var v2 bool + var _ /* buf at bp+0 */ [4096]int8 + _, _, _, _, _, _, _, _, _, _ = catd, i, l, lang, p, path, v, z, v1, v2 + if Xstrchr(tls, name, int32('/')) != 0 { + return _do_catopen(tls, name) + } + if v2 = X__libc.Fsecure != 0; !v2 { + v1 = Xgetenv(tls, __ccgo_ts+328) + path = v1 + } + if v2 || !(v1 != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOENT) + return uintptr(-Int32FromInt32(1)) + } + if oflag != 0 { + v1 = Xnl_langinfo(tls, Int32FromInt32(LC_MESSAGES)<= uint32(4096)-i { + break + } + Xmemcpy(tls, bp+uintptr(i), v, l) + i = i + l + goto _5 + _5: + ; + p = p + 1 + } + if !(**(**int8)(__ccgo_up(z)) != 0) && (p < z || !(i != 0)) { + break + } + if p < z { + goto _4 + } + if **(**int8)(__ccgo_up(z)) != 0 { + z = z + 1 + } + (**(**[4096]int8)(__ccgo_up(bp)))[i] = 0 + /* Leading : or :: in NLSPATH is same as %N */ + if i != 0 { + v1 = bp + } else { + v1 = name + } + catd = _do_catopen(tls, v1) + if catd != uintptr(-Int32FromInt32(1)) { + return catd + } + goto _4 + _4: + ; + p = z + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOENT) + return uintptr(-Int32FromInt32(1)) +} + +const calloc = 0 +const free = 0 +const malloc = 0 +const realloc = 0 + +type Tbinding = struct { + Fnext uintptr + Fdirlen int32 + Factive int32 + Fdomainname uintptr + Fdirname uintptr +} + +var _bindings uintptr + +func _gettextdir(tls *TLS, domainname uintptr, dirlen uintptr) (r uintptr) { + var p uintptr + _ = p + p = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_bindings))) + for { + if !(p != 0) { + break + } + if !(Xstrcmp(tls, (*Tbinding)(unsafe.Pointer(p)).Fdomainname, domainname) != 0) && AtomicLoadPInt32(p+8) != 0 { + **(**Tsize_t)(__ccgo_up(dirlen)) = Uint32FromInt32((*Tbinding)(unsafe.Pointer(p)).Fdirlen) + return (*Tbinding)(unsafe.Pointer(p)).Fdirname + } + goto _1 + _1: + ; + p = (*Tbinding)(unsafe.Pointer(p)).Fnext + } + return uintptr(0) +} + +var _lock1 [1]int32 + +func Xbindtextdomain(tls *TLS, domainname uintptr, dirname uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v domainname=%v dirname=%v, (%v:)", tls, domainname, dirname, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var dirlen, domlen Tsize_t + var p1, q uintptr + _, _, _, _ = dirlen, domlen, p1, q + if !(domainname != 0) { + return uintptr(0) + } + if !(dirname != 0) { + *(*Tsize_t)(unsafe.Pointer(bp)) = uint32(0) + return _gettextdir(tls, domainname, bp) + } + domlen = Xstrnlen(tls, domainname, Uint32FromInt32(Int32FromInt32(NAME_MAX)+Int32FromInt32(1))) + dirlen = Xstrnlen(tls, dirname, uint32(PATH_MAX)) + if domlen > uint32(NAME_MAX) || dirlen >= uint32(PATH_MAX) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(0) + } + ___lock(tls, uintptr(unsafe.Pointer(&_lock1))) + p1 = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_bindings))) + for { + if !(p1 != 0) { + break + } + if !(Xstrcmp(tls, (*Tbinding)(unsafe.Pointer(p1)).Fdomainname, domainname) != 0) && !(Xstrcmp(tls, (*Tbinding)(unsafe.Pointer(p1)).Fdirname, dirname) != 0) { + break + } + goto _1 + _1: + ; + p1 = (*Tbinding)(unsafe.Pointer(p1)).Fnext + } + if !(p1 != 0) { + p1 = Xcalloc(tls, uint32(20)+domlen+dirlen+uint32(2), uint32(1)) + if !(p1 != 0) { + ___unlock(tls, uintptr(unsafe.Pointer(&_lock1))) + return uintptr(0) + } + (*Tbinding)(unsafe.Pointer(p1)).Fnext = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_bindings))) + (*Tbinding)(unsafe.Pointer(p1)).Fdirlen = Int32FromUint32(dirlen) + (*Tbinding)(unsafe.Pointer(p1)).Fdomainname = p1 + 20 + (*Tbinding)(unsafe.Pointer(p1)).Fdirname = p1 + 20 + uintptr(domlen) + uintptr(1) + Xmemcpy(tls, (*Tbinding)(unsafe.Pointer(p1)).Fdomainname, domainname, domlen+uint32(1)) + Xmemcpy(tls, (*Tbinding)(unsafe.Pointer(p1)).Fdirname, dirname, dirlen+uint32(1)) + _ = uintptr(_a_cas(tls, uintptr(unsafe.Pointer(&_bindings)), int32(AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_bindings)))), int32(p1))) + goto _2 + _2: + } + _a_store(tls, p1+8, int32(1)) + q = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_bindings))) + for { + if !(q != 0) { + break + } + if !(Xstrcmp(tls, (*Tbinding)(unsafe.Pointer(q)).Fdomainname, domainname) != 0) && q != p1 { + _a_store(tls, q+8, 0) + } + goto _3 + _3: + ; + q = (*Tbinding)(unsafe.Pointer(q)).Fnext + } + ___unlock(tls, uintptr(unsafe.Pointer(&_lock1))) + return (*Tbinding)(unsafe.Pointer(p1)).Fdirname +} + +var _catnames = [6][12]int8{ + 0: {'L', 'C', '_', 'C', 'T', 'Y', 'P', 'E'}, + 1: {'L', 'C', '_', 'N', 'U', 'M', 'E', 'R', 'I', 'C'}, + 2: {'L', 'C', '_', 'T', 'I', 'M', 'E'}, + 3: {'L', 'C', '_', 'C', 'O', 'L', 'L', 'A', 'T', 'E'}, + 4: {'L', 'C', '_', 'M', 'O', 'N', 'E', 'T', 'A', 'R', 'Y'}, + 5: {'L', 'C', '_', 'M', 'E', 'S', 'S', 'A', 'G', 'E', 'S'}, +} + +var _catlens = [6]int8{ + 0: int8(8), + 1: int8(10), + 2: int8(7), + 3: int8(10), + 4: int8(11), + 5: int8(11), +} + +type Tmsgcat = struct { + Fnext uintptr + Fmap1 uintptr + Fmap_size Tsize_t + Fplural_rule uintptr + Fnplurals int32 + Fbinding uintptr + Flm uintptr + Fcat int32 +} + +func _dummy_gettextdomain(tls *TLS) (r uintptr) { + return __ccgo_ts + 350 +} + +func Xdcngettext(tls *TLS, domainname uintptr, msgid1 uintptr, msgid2 uintptr, n uint32, category int32) (r1 uintptr) { + if __ccgo_strace { + trc("tls=%v domainname=%v msgid1=%v msgid2=%v n=%v category=%v, (%v:)", tls, domainname, msgid1, msgid2, n, category, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(80) + defer tls.Free(80) + var alt_modlen, catlen, dirlen, domlen, l, loclen, modlen, rem, v5 Tsize_t + var catname, csp, dirname, lm, loc, locname, locp, map1, modname, name, old_cats, p1, q, r, rule, trans, v3 uintptr + var np, plural, v20 uint32 + var old_errno, v11, v12 int32 + var v6 t__predefined_size_t + var _ /* map_size at bp+0 */ Tsize_t + var _ /* z at bp+4 */ uintptr + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = alt_modlen, catlen, catname, csp, dirlen, dirname, domlen, l, lm, loc, loclen, locname, locp, map1, modlen, modname, name, np, old_cats, old_errno, p1, plural, q, r, rem, rule, trans, v11, v12, v20, v3, v5, v6 + defer func() { Xrealloc(tls, name, 0) }() + loc = (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale + old_errno = **(**int32)(__ccgo_up(X__errno_location(tls))) + /* match gnu gettext behaviour */ + if !(msgid1 != 0) { + goto notrans + } + if Uint32FromInt32(category) >= uint32(LC_ALL) { + goto notrans + } + if !(domainname != 0) { + domainname = X__gettextdomain(tls) + } + domlen = Xstrnlen(tls, domainname, Uint32FromInt32(Int32FromInt32(NAME_MAX)+Int32FromInt32(1))) + if domlen > uint32(NAME_MAX) { + goto notrans + } + q = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_bindings))) + for { + if !(q != 0) { + break + } + if !(Xstrcmp(tls, (*Tbinding)(unsafe.Pointer(q)).Fdomainname, domainname) != 0) && AtomicLoadPInt32(q+8) != 0 { + break + } + goto _1 + _1: + ; + q = (*Tbinding)(unsafe.Pointer(q)).Fnext + } + if !(q != 0) { + goto notrans + } + lm = **(**uintptr)(__ccgo_up(loc + uintptr(category)*4)) + if !!(lm != 0) { + goto _2 + } + goto notrans +notrans: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = old_errno + if n == uint32(1) { + v3 = msgid1 + } else { + v3 = msgid2 + } + return v3 +_2: + ; + p1 = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_cats))) + for { + if !(p1 != 0) { + break + } + if (*Tmsgcat)(unsafe.Pointer(p1)).Fbinding == q && (*Tmsgcat)(unsafe.Pointer(p1)).Flm == lm && (*Tmsgcat)(unsafe.Pointer(p1)).Fcat == category { + break + } + goto _4 + _4: + ; + p1 = (*Tmsgcat)(unsafe.Pointer(p1)).Fnext + } + if !(p1 != 0) { + dirname = (*Tbinding)(unsafe.Pointer(q)).Fdirname + locname = lm + 8 + catname = uintptr(unsafe.Pointer(&_catnames)) + uintptr(category)*12 + dirlen = Uint32FromInt32((*Tbinding)(unsafe.Pointer(q)).Fdirlen) + loclen = _strlen(tls, locname) + catlen = Uint32FromInt8(_catlens[category]) + /* Logically split @mod suffix from locale name. */ + modname = Xmemchr(tls, locname, int32('@'), loclen) + if !(modname != 0) { + modname = locname + uintptr(loclen) + } + v5 = loclen - Uint32FromInt32(int32(modname)-int32(locname)) + modlen = v5 + alt_modlen = v5 + loclen = Uint32FromInt32(int32(modname) - int32(locname)) + /* Drop .charset identifier; it is not used. */ + csp = Xmemchr(tls, locname, int32('.'), loclen) + if csp != 0 { + loclen = Uint32FromInt32(int32(csp) - int32(locname)) + } + v6 = dirlen + uint32(1) + loclen + modlen + uint32(1) + catlen + uint32(1) + domlen + uint32(3) + uint32(1) + name = Xrealloc(tls, name, v6) + for { + Xsnprintf(tls, name, v6, __ccgo_ts+359, VaList(bp+16, dirname, Int32FromUint32(loclen), locname, Int32FromUint32(alt_modlen), modname, catname, domainname)) + v3 = X__map_file(tls, name, bp) + map1 = v3 + if v3 != 0 { + break + } + /* Try dropping @mod, _YY, then both. */ + if alt_modlen != 0 { + alt_modlen = uint32(0) + } else { + v3 = Xmemchr(tls, locname, int32('_'), loclen) + locp = v3 + if v3 != 0 { + loclen = Uint32FromInt32(int32(locp) - int32(locname)) + alt_modlen = modlen + } else { + break + } + } + goto _7 + _7: + } + if !(map1 != 0) { + goto notrans + } + p1 = Xcalloc(tls, uint32(32), uint32(1)) + if !(p1 != 0) { + X__munmap(tls, map1, **(**Tsize_t)(__ccgo_up(bp))) + goto notrans + } + (*Tmsgcat)(unsafe.Pointer(p1)).Fcat = category + (*Tmsgcat)(unsafe.Pointer(p1)).Fbinding = q + (*Tmsgcat)(unsafe.Pointer(p1)).Flm = lm + (*Tmsgcat)(unsafe.Pointer(p1)).Fmap1 = map1 + (*Tmsgcat)(unsafe.Pointer(p1)).Fmap_size = **(**Tsize_t)(__ccgo_up(bp)) + rule = __ccgo_ts + 381 + np = uint32(2) + r = X__mo_lookup(tls, (*Tmsgcat)(unsafe.Pointer(p1)).Fmap1, (*Tmsgcat)(unsafe.Pointer(p1)).Fmap_size, __ccgo_ts) + for r != 0 && Xstrncmp(tls, r, __ccgo_ts+387, uint32(13)) != 0 { + **(**uintptr)(__ccgo_up(bp + 4)) = Xstrchr(tls, r, int32('\n')) + if **(**uintptr)(__ccgo_up(bp + 4)) != 0 { + v3 = **(**uintptr)(__ccgo_up(bp + 4)) + uintptr(1) + } else { + v3 = uintptr(0) + } + r = v3 + } + if r != 0 { + r = r + uintptr(13) + for { + v11 = int32(**(**int8)(__ccgo_up(r))) + v12 = BoolInt32(v11 == int32(' ') || Uint32FromInt32(v11)-uint32('\t') < uint32(5)) + goto _13 + _13: + if !(v12 != 0) { + break + } + r = r + 1 + } + if !(Xstrncmp(tls, r, __ccgo_ts+401, uint32(9)) != 0) { + np = Xstrtoul(tls, r+uintptr(9), bp+4, int32(10)) + r = **(**uintptr)(__ccgo_up(bp + 4)) + } + for **(**int8)(__ccgo_up(r)) != 0 && int32(**(**int8)(__ccgo_up(r))) != int32(';') { + r = r + 1 + } + if **(**int8)(__ccgo_up(r)) != 0 { + r = r + 1 + for { + v11 = int32(**(**int8)(__ccgo_up(r))) + v12 = BoolInt32(v11 == int32(' ') || Uint32FromInt32(v11)-uint32('\t') < uint32(5)) + goto _16 + _16: + if !(v12 != 0) { + break + } + r = r + 1 + } + if !(Xstrncmp(tls, r, __ccgo_ts+411, uint32(7)) != 0) { + rule = r + uintptr(7) + } + } + } + (*Tmsgcat)(unsafe.Pointer(p1)).Fnplurals = Int32FromUint32(np) + (*Tmsgcat)(unsafe.Pointer(p1)).Fplural_rule = rule + for { + old_cats = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_cats))) + (*Tmsgcat)(unsafe.Pointer(p1)).Fnext = old_cats + goto _19 + _19: + ; + v3 = uintptr(_a_cas(tls, uintptr(unsafe.Pointer(&_cats)), int32(old_cats), int32(p1))) + goto _18 + _18: + ; + if !(v3 != old_cats) { + break + } + } + } + trans = X__mo_lookup(tls, (*Tmsgcat)(unsafe.Pointer(p1)).Fmap1, (*Tmsgcat)(unsafe.Pointer(p1)).Fmap_size, msgid1) + if !(trans != 0) { + goto notrans + } + /* Non-plural-processing gettext forms pass a null pointer as + * msgid2 to request that dcngettext suppress plural processing. */ + if msgid2 != 0 && (*Tmsgcat)(unsafe.Pointer(p1)).Fnplurals != 0 { + plural = X__pleval(tls, (*Tmsgcat)(unsafe.Pointer(p1)).Fplural_rule, n) + if plural > Uint32FromInt32((*Tmsgcat)(unsafe.Pointer(p1)).Fnplurals) { + goto notrans + } + for { + v20 = plural + plural = plural - 1 + if !(v20 != 0) { + break + } + rem = (*Tmsgcat)(unsafe.Pointer(p1)).Fmap_size - Uint32FromInt32(int32(trans)-int32((*Tmsgcat)(unsafe.Pointer(p1)).Fmap1)) + l = Xstrnlen(tls, trans, rem) + if l+uint32(1) >= rem { + goto notrans + } + trans = trans + uintptr(l+uint32(1)) + } + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = old_errno + return trans +} + +var _cats uintptr + +func Xdcgettext(tls *TLS, domainname uintptr, msgid uintptr, category int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v domainname=%v msgid=%v category=%v, (%v:)", tls, domainname, msgid, category, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xdcngettext(tls, domainname, msgid, uintptr(0), uint32(1), category) +} + +func Xdngettext(tls *TLS, domainname uintptr, msgid1 uintptr, msgid2 uintptr, n uint32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v domainname=%v msgid1=%v msgid2=%v n=%v, (%v:)", tls, domainname, msgid1, msgid2, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xdcngettext(tls, domainname, msgid1, msgid2, n, int32(LC_MESSAGES)) +} + +func Xdgettext(tls *TLS, domainname uintptr, msgid uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v domainname=%v msgid=%v, (%v:)", tls, domainname, msgid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xdcngettext(tls, domainname, msgid, uintptr(0), uint32(1), int32(LC_MESSAGES)) +} + +func X__duplocale(tls *TLS, old Tlocale_t) (r Tlocale_t) { + if __ccgo_strace { + trc("tls=%v old=%v, (%v:)", tls, old, origin(2)) + defer func() { trc("-> %v", r) }() + } + var new1 Tlocale_t + _ = new1 + new1 = Xmalloc(tls, uint32(24)) + if !(new1 != 0) { + return uintptr(0) + } + if old == uintptr(-Int32FromInt32(1)) { + old = uintptr(unsafe.Pointer(&X__libc)) + 32 + } + **(**t__locale_struct)(__ccgo_up(new1)) = **(**t__locale_struct)(__ccgo_up(old)) + return new1 +} + +func Xduplocale(tls *TLS, old Tlocale_t) (r Tlocale_t) { + if __ccgo_strace { + trc("tls=%v old=%v, (%v:)", tls, old, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__duplocale(tls, old) +} + +func Xfreelocale(tls *TLS, l Tlocale_t) { + if __ccgo_strace { + trc("tls=%v l=%v, (%v:)", tls, l, origin(2)) + } + if X__loc_is_allocated(tls, l) != 0 { + Xfree(tls, l) + } +} + +func X__freelocale(tls *TLS, l Tlocale_t) { + if __ccgo_strace { + trc("tls=%v l=%v, (%v:)", tls, l, origin(2)) + } + Xfreelocale(tls, l) +} + +const BIG5 = 224 +const EUC_JP = 208 +const EUC_KR = 232 +const GB18030 = 216 +const GB2312 = 218 +const GBK = 217 +const ISO2022_JP = 210 +const SHIFT_JIS = 209 +const UCS2 = 204 +const UCS2BE = 196 +const UCS2LE = 197 +const US_ASCII = 199 +const UTF_16 = 202 +const UTF_16BE = 194 +const UTF_16LE = 193 +const UTF_32 = 203 +const UTF_32BE = 192 +const UTF_32LE = 195 +const UTF_8 = 200 +const WCHAR_T = 198 +const mbrtowc_utf8 = 0 +const wctomb_utf8 = 0 + +type Ticonv_t = uintptr + +/* Definitions of charmaps. Each charmap consists of: + * 1. Empty-string-terminated list of null-terminated aliases. + * 2. Special type code or number of elided quads of entries. + * 3. Character table (size determined by field 2), consisting + * of 5 bytes for every 4 characters, interpreted as 10-bit + * indices into the legacy_chars table. */ + +var _charmaps = [4907]uint8{'u', 't', 'f', '8', 0, 'c', 'h', 'a', 'r', 0, 0, 200, 'w', 'c', 'h', 'a', 'r', 't', 0, 0, 198, 'u', 'c', 's', '2', 'b', 'e', 0, 0, 196, 'u', 'c', 's', '2', 'l', 'e', 0, 0, 197, 'u', 't', 'f', '1', '6', 'b', 'e', 0, 0, 194, 'u', 't', 'f', '1', '6', 'l', 'e', 0, 0, 193, 'u', 'c', 's', '4', 'b', 'e', 0, 'u', 't', 'f', '3', '2', 'b', 'e', 0, 0, 192, 'u', 'c', 's', '4', 'l', 'e', 0, 'u', 't', 'f', '3', '2', 'l', 'e', 0, 0, 195, 'a', 's', 'c', 'i', 'i', 0, 'u', 's', 'a', 's', 'c', 'i', 'i', 0, 'i', 's', 'o', '6', '4', '6', 0, 'i', 's', 'o', '6', '4', '6', 'u', 's', 0, 0, 199, 'u', 't', 'f', '1', '6', 0, 0, 202, 'u', 'c', 's', '4', 0, 'u', 't', 'f', '3', '2', 0, 0, 203, 'u', 'c', 's', '2', 0, 0, 204, 'e', 'u', 'c', 'j', 'p', 0, 0, 208, 's', 'h', 'i', 'f', 't', 'j', 'i', 's', 0, 's', 'j', 'i', 's', 0, 'c', 'p', '9', '3', '2', 0, 0, 209, 'i', 's', 'o', '2', '0', '2', '2', 'j', 'p', 0, 0, 210, 'g', 'b', '1', '8', '0', '3', '0', 0, 0, 216, 'g', 'b', 'k', 0, 'c', 'p', '9', '3', '6', 0, 'w', 'i', 'n', 'd', 'o', 'w', 's', '9', '3', '6', 0, 0, 217, 'g', 'b', '2', '3', '1', '2', 0, 0, 218, 'b', 'i', 'g', '5', 0, 'b', 'i', 'g', 'f', 'i', 'v', 'e', 0, 'c', 'p', '9', '5', '0', 0, 'b', 'i', 'g', '5', 'h', 'k', 's', 'c', 's', 0, 0, 224, 'e', 'u', 'c', 'k', 'r', 0, 'k', 's', 'c', '5', '6', '0', '1', 0, 'k', 's', 'x', '1', '0', '0', '1', 0, 'c', 'p', '9', '4', '9', 0, 0, 232, 'i', 's', 'o', '8', '8', '5', '9', '1', 0, 'l', 'a', 't', 'i', 'n', '1', 0, 0, '@', 'i', 's', 'o', '8', '8', '5', '9', '2', 0, 0, '(', 160, 16, 244, 'W', 'N', 164, 220, 244, 212, ')', 168, 'T', '5', 'U', 'V', 'n', 181, '"', 23, '\\', 176, 20, 20, 152, 'N', 180, 224, 4, 149, '_', 184, 'X', 'E', 149, 'V', 'o', 13, '6', 'W', '\\', 'I', 5, '#', 140, '@', 196, 204, 'd', 208, '1', 12, '%', 'c', 209, '2', 24, '5', 227, 140, 'C', 16, 237, 244, 211, '4', 212, 20, 'e', 205, '5', 'M', 141, 165, 'M', 'Y', 220, 't', 's', 213, '7', 'J', 133, '#', 206, '@', 228, 208, 't', 208, '9', 13, 165, 's', 209, ':', 25, 181, 227, 206, 'C', 17, 241, 4, 212, '<', 244, 24, 'e', 207, '=', 'N', 145, 165, 143, 'Y', 252, 244, 131, 21, '`', 'i', 's', 'o', '8', '8', '5', '9', '3', 0, 0, '(', 160, 144, 244, 215, '(', 164, 0, ' ', 210, ')', 168, 176, '4', 21, 'G', '.', 181, 2, 0, '\\', 176, 148, '$', 203, ',', 180, 212, '2', 210, '-', 184, 180, 'D', 'U', 'G', '/', 245, 2, '@', '\\', 192, 4, '#', 12, 0, 196, '(', 132, 208, '1', 200, '$', 163, 204, '2', 204, '4', 227, 204, '3', 0, 'D', '#', 205, '4', 212, 'x', 'd', 205, '5', 26, 'e', 163, 205, '6', 220, 132, 21, 213, '7', 224, 132, '#', 14, 0, 228, ',', 148, 208, '9', 232, 164, 163, 206, ':', 236, 180, 227, 206, ';', 0, 196, '#', 207, '<', 244, '|', 'd', 207, '=', 27, 229, 163, 207, '>', 252, 136, '%', 21, '`', 'i', 's', 'o', '8', '8', '5', '9', '4', 0, 0, '(', 160, 16, '$', 211, 'R', 164, 152, 'T', 211, ')', 168, 'T', '%', 17, 'H', '[', 181, '"', 215, '+', 176, 20, 20, 24, 'S', 180, 156, 'd', 147, '_', 184, 'X', '5', 'Q', 'H', '\\', 5, '5', 151, 'P', 0, 5, '#', 204, '0', 196, 20, 'c', 140, 'J', 12, '%', 'c', 209, '2', 20, '5', 227, 12, 'J', 16, 245, '4', 20, 'L', 212, 'T', 'c', 205, '5', 216, 156, 165, 205, '6', 220, 't', 245, 213, '7', 1, 133, '#', 206, '8', 228, 148, 'c', 206, 'J', 13, 165, 's', 209, ':', 21, 181, 227, 'N', 'J', 17, 249, 'D', 'T', 'L', 244, 212, 'c', 207, '=', 248, 160, 165, 207, '>', 252, 'x', 5, 22, '`', 'i', 's', 'o', '8', '8', '5', '9', '5', 0, 0, '(', 160, 'D', '\'', 221, 't', 212, 'U', 'g', 221, 'u', 216, 'e', 167, 221, 'v', 220, 181, 210, 157, 'w', 223, 129, 23, 158, 'x', 227, 145, 'W', 158, 'y', 231, 161, 151, 158, 'z', 235, 177, 215, 158, '{', 239, 193, 23, 159, '|', 243, 209, 'W', 159, '}', 247, 225, 151, 159, '~', 251, 241, 215, 159, 127, 255, 1, 24, 160, 128, 3, 18, 'X', 160, 129, 7, '"', 152, 160, 130, 11, '2', 216, 160, 131, 15, 'B', 24, 161, 132, 19, 'R', 'X', 161, 133, 23, 'b', 152, 161, 134, 27, 'r', 216, 161, 135, '&', 127, 8, 'b', 136, '"', 142, 'H', 'b', 137, '&', 158, 136, 'b', 138, '*', 158, 178, '"', 139, 'i', 's', 'o', '8', '8', '5', '9', '6', 0, 0, '(', 160, 0, 0, 0, 0, 164, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'b', 182, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 192, 152, 0, 0, 0, 0, 153, 0, 148, 'i', 230, 153, 'h', 166, 169, 230, 154, 'l', 182, 233, 230, 155, 'p', 198, ')', 231, 156, 't', 214, 'i', 231, 157, 'x', 230, 169, 231, 158, '|', 246, 233, '\'', 0, 0, 0, 0, 0, 0, 127, 2, 26, 168, 160, 131, 18, 'Z', 168, 161, 135, '"', 154, 168, 162, 139, '2', 218, 168, 163, 143, 'B', 26, ')', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'i', 's', 'o', '8', '8', '5', '9', '7', 0, 0, '(', 160, 'L', 'L', 241, '(', '$', 151, 'l', 202, ')', 168, 164, 146, 216, '*', 172, 180, 2, '@', 196, 176, 196, '"', 203, ',', 138, '-', 198, 216, '-', 141, '9', 246, 216, '.', 144, 245, 18, 153, 'd', 147, 'Q', 'V', 153, 'e', 151, 'a', 150, 153, 'f', 155, 'q', 214, 153, 'g', 159, 129, 22, 154, 'h', 163, 145, 6, '@', 'i', 166, 157, 134, 'Z', 'j', 170, 173, 198, 'Z', 'k', 174, 189, 6, '[', 'l', 178, 205, 'F', '[', 'm', 182, 221, 134, '[', 'n', 186, 237, 198, '[', 'o', 190, 253, 6, '\\', 'p', 194, 13, 'G', '\\', 'q', 198, 29, 135, '\\', 'r', 202, '-', 199, '\\', 's', 206, '=', 7, 29, 0, 'i', 's', 'o', '8', '8', '5', '9', '8', 0, 0, '(', 160, 0, ' ', 202, '(', 164, 148, 'b', 202, ')', 168, 164, 'r', 205, '*', 172, 180, 226, 202, '+', 176, 196, '"', 203, ',', 180, 212, 'b', 203, '-', 184, 228, 'r', 207, '.', 188, 244, 226, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 128, 196, 'B', 14, 'I', 'd', 145, 'F', 30, 137, 'd', 146, 'J', '.', 201, 'd', 147, 'N', '>', 9, 'e', 148, 'R', 'N', 'I', 'e', 149, 'V', '^', 137, 'e', 150, 'Z', 'n', 201, '%', 0, 0, '4', 236, '0', 0, 'i', 's', 'o', '8', '8', '5', '9', '9', 0, 0, '4', 28, 'E', '#', 205, '4', 212, 'T', 'c', 205, '5', 216, 'd', 163, 205, '6', 220, 176, '4', 213, '7', 224, 132, '#', 206, '8', 228, 148, 'c', 206, '9', 232, 164, 163, 206, ':', 236, 180, 227, 206, ';', 29, 197, '#', 207, '<', 244, 212, 'c', 207, '=', 248, 228, 163, 207, '>', 252, 180, 'D', 213, '?', 'i', 's', 'o', '8', '8', '5', '9', '1', '0', 0, 0, '(', 160, 16, '$', 17, 'H', '(', 153, 4, 211, ')', '5', 'A', 'T', 213, 'V', 'r', 181, 242, 'U', 'P', 176, 20, '4', 'Q', 'H', ')', 157, 20, 211, '-', '6', 'E', 'd', 21, 'W', 's', 'E', 12, 150, 'P', 0, 5, '#', 204, '0', 196, 20, 'c', 140, 'J', 12, '%', 'c', 209, '2', 20, '5', 227, 204, '3', 208, 244, '4', 212, '4', 212, 'T', 'c', 'M', 'W', 216, 156, 165, 205, '6', 220, 't', 227, 205, '7', 1, 133, '#', 206, '8', 228, 148, 'c', 206, 'J', 13, 165, 's', 209, ':', 21, 181, 227, 206, ';', 240, 248, 'D', 212, '<', 244, 212, 'c', 143, 'W', 248, 160, 165, 207, '>', 252, 244, 227, 143, 'L', 'i', 's', 'o', '8', '8', '5', '9', '1', '1', 0, 't', 'i', 's', '6', '2', '0', 0, 0, '(', 160, 'x', 250, ')', 168, 161, 138, ':', '*', 169, 165, 154, 'z', '*', 170, 169, 170, 186, '*', 171, 173, 186, 250, '*', 172, 177, 202, ':', '+', 173, 181, 218, 'z', '+', 174, 185, 234, 186, '+', 175, 189, 250, 250, '+', 176, 193, 10, ';', ',', 177, 197, 26, '{', ',', 178, 201, '*', 187, ',', 179, 205, ':', 251, ',', 180, 209, 'J', ';', '-', 181, 213, 'Z', '{', '-', 0, 0, 0, 0, 0, 182, 217, 'j', 187, '-', 183, 221, 'z', 251, '-', 184, 225, 138, ';', '.', 185, 229, 154, '{', '.', 186, 233, 170, 187, '.', 187, 237, 186, 251, '.', 188, 241, 202, ';', '/', 189, 0, 0, 0, 0, 0, 'i', 's', 'o', '8', '8', '5', '9', '1', '3', 0, 0, '(', 160, '\\', ',', 202, '(', 164, '`', 'l', 202, ')', 216, 164, 178, 212, '*', 172, 180, 226, 138, '1', 176, 196, '"', 203, ',', 22, 215, 'b', 203, '-', 248, 228, 194, 212, '.', 188, 244, 226, 139, '9', 4, 169, 4, 144, 'A', 196, 20, 'c', 145, 'D', 12, '%', 227, 22, 'E', ' ', 193, 132, 'R', 'M', 'U', 237, 212, 211, '4', 'C', 'U', 'c', 205, '5', 'g', 229, 244, 212, 'W', 220, 192, '%', 215, '7', 5, 173, 20, 208, 'A', 228, 148, 's', 209, 'D', 13, 165, 243, 'V', 'E', '!', 197, 148, 146, 'M', 'V', 241, 228, 211, '<', 'D', 213, 'c', 207, '=', 'h', 233, 4, 21, 'X', 252, 196, '5', 23, 197, 'i', 's', 'o', '8', '8', '5', '9', '1', '4', 0, 0, '(', 160, 212, 'k', 239, '(', 10, '-', 't', 239, ')', 3, 167, 'R', '0', 190, 9, 183, 226, 'J', '[', 249, 234, 235, 209, 'G', 251, 242, 'k', 'K', 191, 4, 251, 'k', 240, 191, 10, 31, 140, '0', 192, 192, 4, '#', 204, '0', 196, 20, 'c', 204, '1', 200, '$', 163, 204, '2', 204, '4', 227, 204, '3', 'i', 'E', '#', 205, '4', 212, 'T', 'c', 'M', 192, 216, 'd', 163, 205, '6', 220, 't', 179, 214, '7', 224, 132, '#', 206, '8', 228, 148, 'c', 206, '9', 232, 164, 163, 206, ':', 236, 180, 227, 206, ';', 'j', 197, '#', 207, '<', 244, 212, 'c', 143, 192, 248, 228, 163, 207, '>', 252, 244, 195, 214, '?', 'i', 's', 'o', '8', '8', '5', '9', '1', '5', 0, 'l', 'a', 't', 'i', 'n', '9', 0, 0, ')', '$', 151, 'R', 213, ')', 'V', 165, 162, 202, '*', 172, 180, 226, 202, '+', 176, 196, '"', 203, ',', 'r', 213, 'b', 203, '-', 's', 229, 162, 203, '.', 'G', '!', 213, 214, '/', 192, 4, '#', 204, '0', 196, 20, 'c', 204, '1', 200, '$', 163, 204, '2', 204, '4', 227, 204, '3', 208, 'D', '#', 205, '4', 212, 'T', 'c', 205, '5', 216, 'd', 163, 205, '6', 220, 't', 227, 205, '7', 224, 132, '#', 206, '8', 228, 148, 'c', 206, '9', 232, 164, 163, 206, ':', 236, 180, 227, 206, ';', 240, 196, '#', 207, '<', 244, 212, 'c', 207, '=', 248, 228, 163, 207, '>', 252, 244, 227, 207, '?', 'i', 's', 'o', '8', '8', '5', '9', '1', '6', 0, 0, '(', 160, 16, 'T', 'P', 'N', '$', 'c', '\\', 213, ')', 'V', 165, 146, 215, '*', 'n', 181, 242, 22, '\\', 176, 196, 194, 144, 'N', 'r', ']', 'l', 203, '-', 's', '5', 164, 215, '.', 'G', '!', 213, 'V', '\\', 192, 4, '#', 140, '@', 196, 24, 'd', 204, '1', 200, '$', 163, 204, '2', 204, '4', 227, 204, '3', 16, 237, '$', 205, '4', 212, 20, 'e', 205, 'S', 'e', 'e', 163, 205, '6', 220, 'X', 180, 215, '7', 224, 132, '#', 206, '@', 228, 28, 'd', 206, '9', 232, 164, 163, 206, ':', 236, 180, 227, 206, ';', 17, 241, '$', 207, '<', 244, 24, 'e', 15, 'T', 'f', 229, 163, 207, '>', 252, '\\', 196, 215, '?', 'c', 'p', '1', '2', '5', '0', 0, 'w', 'i', 'n', 'd', 'o', 'w', 's', '1', '2', '5', '0', 0, 0, ' ', '$', 3, 'P', '1', 0, 24, 's', 156, 177, 198, 0, 't', '\\', 149, 199, 'O', 'e', '%', 151, '[', 0, 'L', 'L', 177, 197, 23, 'o', 252, '0', 196, 0, 156, 'l', 213, 199, 'P', 'i', '5', 215, '[', 160, 248, 245, 'W', 'N', 164, 16, 'd', 202, ')', 168, 164, '2', 213, '*', 172, 180, 226, 10, '\\', 176, 196, 18, 152, 'N', 180, 212, 'b', 203, '-', 184, 20, 'D', 213, '.', '7', 13, 134, 'S', '\\', 'I', 5, '#', 140, '@', 196, 204, 'd', 208, '1', 12, '%', 'c', 209, '2', 24, '5', 227, 140, 'C', 16, 237, 244, 211, '4', 212, 20, 'e', 205, '5', 'M', 141, 165, 'M', 'Y', 220, 't', 's', 213, '7', 'J', 133, '#', 206, '@', 228, 208, 't', 208, '9', 13, 165, 's', 209, ':', 25, 181, 227, 206, 'C', 17, 241, 4, 212, '<', 244, 24, 'e', 207, '=', 'N', 145, 165, 143, 'Y', 252, 244, 131, 21, '`', 'c', 'p', '1', '2', '5', '1', 0, 'w', 'i', 'n', 'd', 'o', 'w', 's', '1', '2', '5', '1', 0, 0, ' ', 210, 'M', 'W', 'q', 136, 24, 's', 156, 177, 198, '$', 'w', 156, 157, 199, 218, 'q', 183, 157, 'w', ' ', 'N', 'L', 177, 197, 23, 'o', 252, '0', 196, 0, 156, '|', 226, 199, '(', 170, 152, '"', 139, 160, 't', 183, '"', 'v', 164, 180, 'h', 202, ')', 209, 165, 'B', 221, '*', 172, 180, 226, 202, 'u', 176, 196, 'b', 29, 137, '.', 214, 'b', 203, '-', 31, 154, ',', 226, '.', '&', 'V', '7', 'b', 137, 223, 129, 23, 158, 'x', 227, 145, 'W', 158, 'y', 231, 161, 151, 158, 'z', 235, 177, 215, 158, '{', 239, 193, 23, 159, '|', 243, 209, 'W', 159, '}', 247, 225, 151, 159, '~', 251, 241, 215, 159, 127, 255, 1, 24, 160, 128, 3, 18, 'X', 160, 129, 7, '"', 152, 160, 130, 11, '2', 216, 160, 131, 15, 'B', 24, 161, 132, 19, 'R', 'X', 161, 133, 23, 'b', 152, 161, 134, 27, 'r', 216, 161, 135, 'c', 'p', '1', '2', '5', '2', 0, 'w', 'i', 'n', 'd', 'o', 'w', 's', '1', '2', '5', '2', 0, 0, ' ', '$', 3, 'P', '1', ']', 24, 's', 156, 177, 198, '}', 'u', '\\', 149, 199, 'G', 1, ' ', 23, 0, 0, 'L', 'L', 177, 197, 23, 'o', 252, '0', 196, 130, 157, 'l', 213, 199, 'H', 1, '0', 'W', '[', 160, 132, '"', 202, '(', 164, 148, 'b', 202, ')', 168, 164, 162, 202, '*', 172, 180, 226, 202, '+', 176, 196, '"', 203, ',', 180, 212, 'b', 203, '-', 184, 228, 162, 203, '.', 188, 244, 226, 203, '/', 192, 4, '#', 204, '0', 196, 20, 'c', 204, '1', 200, '$', 163, 204, '2', 204, '4', 227, 204, '3', 208, 'D', '#', 205, '4', 212, 'T', 'c', 205, '5', 216, 'd', 163, 205, '6', 220, 't', 227, 205, '7', 224, 132, '#', 206, '8', 228, 148, 'c', 206, '9', 232, 164, 163, 206, ':', 236, 180, 227, 206, ';', 240, 196, '#', 207, '<', 244, 212, 'c', 207, '=', 248, 228, 163, 207, '>', 252, 244, 227, 207, '?', 'c', 'p', '1', '2', '5', '3', 0, 'w', 'i', 'n', 'd', 'o', 'w', 's', '1', '2', '5', '3', 0, 0, ' ', '$', 3, 'P', '1', ']', 24, 's', 156, 177, 198, 0, 't', 12, 128, 199, 0, 0, 0, 0, 0, 0, 'L', 'L', 177, 197, 23, 'o', 252, '0', 196, 0, 156, 12, 192, 199, 0, 0, 0, 0, 0, 160, ',', 198, 216, '(', 164, 148, 'b', 202, ')', 168, 164, 2, 192, '*', 172, 180, 226, 'J', 196, 176, 196, '"', 203, ',', 138, 213, 'b', 203, '-', 141, '9', 246, 216, '.', 144, 245, 18, 153, 'd', 147, 'Q', 'V', 153, 'e', 151, 'a', 150, 153, 'f', 155, 'q', 214, 153, 'g', 159, 129, 22, 154, 'h', 163, 145, 6, '@', 'i', 166, 157, 134, 'Z', 'j', 170, 173, 198, 'Z', 'k', 174, 189, 6, '[', 'l', 178, 205, 'F', '[', 'm', 182, 221, 134, '[', 'n', 186, 237, 198, '[', 'o', 190, 253, 6, '\\', 'p', 194, 13, 'G', '\\', 'q', 198, 29, 135, '\\', 'r', 202, '-', 199, '\\', 's', 206, '=', 7, 29, 0, 'c', 'p', '1', '2', '5', '4', 0, 'w', 'i', 'n', 'd', 'o', 'w', 's', '1', '2', '5', '4', 0, 0, ' ', '$', 3, 'P', '1', ']', 24, 's', 156, 177, 198, '}', 'u', '\\', 149, 199, 'G', 1, 0, 0, 0, 0, 'L', 'L', 177, 197, 23, 'o', 252, '0', 196, 130, 157, 'l', 213, 199, 'H', 1, 0, '@', '[', 160, 132, '"', 202, '(', 164, 148, 'b', 202, ')', 168, 164, 162, 202, '*', 172, 180, 226, 202, '+', 176, 196, '"', 203, ',', 180, 212, 'b', 203, '-', 184, 228, 162, 203, '.', 188, 244, 226, 203, '/', 192, 4, '#', 204, '0', 196, 20, 'c', 204, '1', 200, '$', 163, 204, '2', 204, '4', 227, 204, '3', 28, 'E', '#', 205, '4', 212, 'T', 'c', 205, '5', 216, 'd', 163, 205, '6', 220, 176, '4', 213, '7', 224, 132, '#', 206, '8', 228, 148, 'c', 206, '9', 232, 164, 163, 206, ':', 236, 180, 227, 206, ';', 29, 197, '#', 207, '<', 244, 212, 'c', 207, '=', 248, 228, 163, 207, '>', 252, 180, 'D', 213, '?', 'c', 'p', '1', '2', '5', '5', 0, 'w', 'i', 'n', 'd', 'o', 'w', 's', '1', '2', '5', '5', 0, 0, ' ', '$', 3, 'P', '1', ']', 24, 's', 156, 177, 198, '}', 'u', 12, 128, 199, 0, 0, 0, 0, 0, 0, 'L', 'L', 177, 197, 23, 'o', 252, '0', 196, 130, 157, 12, 192, 199, 0, 0, 0, 0, 0, 160, 132, '"', 202, '(', '"', 151, 'b', 202, ')', 168, 164, 'r', 205, '*', 172, 180, 226, 202, '+', 176, 196, '"', 203, ',', 180, 212, 'b', 203, '-', 184, 228, 'r', 207, '.', 188, 244, 226, 203, '/', '/', 194, 24, 163, 140, '3', 210, 'X', 163, 141, '7', 226, 8, '@', 142, ':', 238, 200, 'c', 143, '>', 254, 8, 'd', 144, ']', 'z', 249, '%', 152, 'a', 2, 0, 0, 0, 0, 0, 0, 0, 0, 'B', 14, 'I', 'd', 145, 'F', 30, 137, 'd', 146, 'J', '.', 201, 'd', 147, 'N', '>', 9, 'e', 148, 'R', 'N', 'I', 'e', 149, 'V', '^', 137, 'e', 150, 'Z', 'n', 201, '%', 0, 0, '4', 236, '0', 0, 'c', 'p', '1', '2', '5', '6', 0, 'w', 'i', 'n', 'd', 'o', 'w', 's', '1', '2', '5', '6', 0, 0, ' ', '$', 'O', 'Z', '1', ']', 24, 's', 156, 177, 198, '}', 'u', ',', 169, 199, 'G', 'Q', 'z', 'i', 165, 153, 'N', 'L', 177, 197, 23, 'o', 252, '0', 196, 152, 158, 'l', 233, 199, 'H', '-', 204, 176, 166, 160, 136, ')', 202, '(', 164, 148, 'b', 202, ')', 168, 164, 178, 233, '*', 172, 180, 226, 202, '+', 176, 196, '"', 203, ',', 180, 212, 'b', 203, '-', 184, 228, '2', 230, '.', 188, 244, 226, 11, 153, 156, 150, 'i', 230, 153, 'h', 166, 169, 230, 154, 'l', 182, 233, 230, 155, 'p', 198, ')', 231, 156, 't', 214, 'i', 231, 157, 'x', 230, 169, 231, '5', '{', 242, 217, 167, 159, 127, 2, 26, 168, 160, 224, 12, '*', 14, 161, 133, 26, 'z', 232, '9', 232, 164, 163, 206, ':', 136, '&', 234, 206, ';', 138, '.', 202, 'h', 163, 244, '8', 250, 232, '=', 144, 230, 19, 233, '>', 252, '4', 236, 'p', 167, 'c', 'p', '1', '2', '5', '7', 0, 'w', 'i', 'n', 'd', 'o', 'w', 's', '1', '2', '5', '7', 0, 0, ' ', '$', 3, 'P', '1', 0, 24, 's', 156, 177, 198, 0, 't', 12, 128, 199, 0, 160, 226, 23, '.', 0, 'L', 'L', 177, 197, 23, 'o', 252, '0', 196, 0, 156, 12, 192, 199, 0, 188, 18, 24, 0, 160, 0, ' ', 202, '(', 164, 0, '`', 202, ')', 216, 164, 178, 212, '*', 172, 180, 226, 138, '1', 176, 196, '"', 203, ',', 180, 212, 'b', 203, '-', 248, 228, 194, 212, '.', 188, 244, 226, 139, '9', 4, 169, 4, 144, 'A', 196, 20, 'c', 145, 'D', 12, '%', 227, 22, 'E', ' ', 193, 132, 'R', 'M', 'U', 237, 212, 211, '4', 'C', 'U', 'c', 205, '5', 'g', 229, 244, 212, 'W', 220, 192, '%', 215, '7', 5, 173, 20, 208, 'A', 228, 148, 's', 209, 'D', 13, 165, 243, 'V', 'E', '!', 197, 148, 146, 'M', 'V', 241, 228, 211, '<', 'D', 213, 'c', 207, '=', 'h', 233, 4, 21, 'X', 252, 196, '5', 23, '`', 'c', 'p', '1', '2', '5', '8', 0, 'w', 'i', 'n', 'd', 'o', 'w', 's', '1', '2', '5', '8', 0, 0, ' ', '$', 3, 'P', '1', ']', 24, 's', 156, 177, 198, '}', 'u', 12, 128, 199, 'G', 1, 0, 0, 0, 0, 'L', 'L', 177, 197, 23, 'o', 252, '0', 196, 130, 157, 12, 192, 199, 'H', 1, 0, '@', '[', 160, 132, '"', 202, '(', 164, 148, 'b', 202, ')', 168, 164, 162, 202, '*', 172, 180, 226, 202, '+', 176, 196, '"', 203, ',', 180, 212, 'b', 203, '-', 184, 228, 162, 203, '.', 188, 244, 226, 203, '/', 192, 4, '#', 140, '@', 196, 20, 'c', 204, '1', 200, '$', 163, 204, '2', 132, '5', 227, 204, '3', 16, 'E', 's', 216, '4', 212, 212, 'e', 205, '5', 216, 'd', 163, 205, '6', 220, 220, 'e', 216, '7', 224, 132, '#', 206, '@', 228, 148, 'c', 206, '9', 232, 164, 163, 206, ':', 133, 181, 227, 206, ';', 17, 197, 131, 216, '<', 244, 216, 'e', 207, '=', 248, 228, 163, 207, '>', 252, 224, '5', 242, '?', 'k', 'o', 'i', '8', 'r', 0, 0, ' ', '3', 211, '\\', 179, 205, '7', 227, 156, 179, 206, ';', 243, 220, 243, 214, '\\', 'w', 237, 245, 215, '`', 135, '-', 'v', 204, 'c', 163, 156, '2', 203, '.', 191, 12, 138, 204, 176, 200, 'r', 203, '=', '>', 255, 12, 244, 135, 'A', 11, '=', '4', 209, 'E', 27, '}', '4', 210, 'I', '+', 189, '4', 211, 'M', ';', 253, 't', 't', 'P', 'G', '-', 245, 212, 'T', 'W', 'm', 245, 213, 'X', 'g', 173, 'u', '*', 29, 254, 7, '`', 133, 3, 18, '8', 161, 128, 20, 30, 136, '`', 130, 10, '.', 200, '`', 131, 14, 'z', 248, ' ', 132, 17, 'J', 'X', '`', 128, 27, 'j', 'h', 224, 133, 28, 'b', 'h', 'a', 134, 253, '}', 7, '^', '}', 227, 145, '7', 159, 'x', 244, 157, 135, '^', 'z', 234, 173, 199, '^', '{', 238, 249, 247, 30, '|', 241, 201, 'W', '^', 'x', 251, 233, 'g', 222, '}', 252, 225, 'g', '_', '~', 'k', 'o', 'i', '8', 'u', 0, 0, ' ', '3', 211, '\\', 179, 205, '7', 227, 156, 179, 206, ';', 243, 220, 243, 214, '\\', 'w', 237, 245, 215, '`', 135, '-', 'v', 204, 'c', 163, 156, '2', 203, '.', 191, 12, 138, 204, 176, 200, 'r', 203, '=', '>', 255, 12, 244, 135, '"', 10, 'M', 'b', 137, 'E', 27, '}', '4', 210, 'I', 187, 184, '4', 211, 'M', ';', 253, 't', 't', 212, 'E', 'm', 221, 'u', 'T', 'W', 'm', 245, 213, 'X', 183, 168, 'u', '*', 29, 254, 7, '`', 133, 3, 18, '8', 161, 128, 20, 30, 136, '`', 130, 10, '.', 200, '`', 131, 14, 'z', 248, ' ', 132, 17, 'J', 'X', '`', 128, 27, 'j', 'h', 224, 133, 28, 'b', 'h', 'a', 134, 253, '}', 7, '^', '}', 227, 145, '7', 159, 'x', 244, 157, 135, '^', 'z', 234, 173, 199, '^', '{', 238, 249, 247, 30, '|', 241, 201, 'W', '^', 'x', 251, 233, 'g', 222, '}', 252, 225, 'g', '_', '~', 'c', 'p', '4', '3', '7', 0, 0, ' ', 199, 240, 147, 142, '8', 228, 128, 'S', 206, '9', 234, 172, 131, 206, ';', 238, 176, 'C', 'L', '1', 201, 152, 'c', 12, '=', 246, 200, 179, 'O', '>', 255, 'X', 195, 141, '(', 163, 148, 18, '2', ']', 225, 180, '3', 143, '>', 241, 'D', 163, 138, '.', 191, 192, 204, 'J', '/', 188, 132, 178, 202, '.', '`', 135, '-', '6', 205, ':', '?', 13, '5', 209, 'C', 'G', 253, 's', 209, 'K', '+', 157, 180, 205, '7', 243, 188, 's', 206, '3', 247, 204, 't', 211, 'H', 11, '}', '5', 213, 'N', 251, 172, 'u', 213, 'V', 'K', '=', 245, 209, 'F', 3, 29, 't', 214, 'X', 227, '\\', 's', 215, '\\', '{', 253, 245, 214, 179, '}', 'c', 153, 'p', 165, 21, 'W', 139, 'q', 168, 'm', 182, 154, 'm', '*', '#', 'w', 219, 202, '-', 199, 242, 178, 203, '1', 203, '|', 15, 203, 176, 160, '|', 'K', 202, ' ', 203, '2', '6', '(', 'c', 'p', '8', '5', '0', 0, 0, ' ', 199, 240, 147, 142, '8', 228, 128, 'S', 206, '9', 234, 172, 131, 206, ';', 238, 176, 'C', 'L', '1', 201, 152, 'c', 12, '=', 246, 200, 179, 'O', '>', 255, 'X', 195, 13, '>', 163, '`', 's', 13, ']', 225, 180, '3', 143, '>', 241, 'D', 163, 138, '.', 191, 184, 194, 'J', '/', 188, 132, 178, 202, '.', '`', 135, '-', '6', 205, ':', 7, '#', 12, '0', 169, 'D', 253, 's', 209, 'K', 139, 'R', 138, 205, '7', 243, 188, 's', 206, '3', 247, '<', 206, '0', 'H', 11, '}', '5', 213, 'N', 251, 172, '5', ')', 240, '@', 163, 204, '2', 200, 180, 212, 140, '3', 207, 224, '\\', 's', 215, '\\', 155, 194, 204, 214, 211, '|', 'C', 141, '4', 245, 'T', 'S', 139, '?', 222, 'h', 179, 'M', '6', 253, 't', 243, 10, '-', 173, 196, '"', 177, '/', 182, 156, 'r', 15, '.', 176, 160, 'r', 'K', '.', 179, 200, '2', '6', '(', 'c', 'p', '8', '6', '6', 0, 0, ' ', 223, 129, 23, 158, 'x', 227, 145, 'W', 158, 'y', 231, 161, 151, 158, 'z', 235, 177, 215, 158, '{', 239, 193, 23, 159, '|', 243, 209, 'W', 159, '}', 247, 225, 151, 159, '~', 251, 241, 215, 159, 127, 255, 1, 24, 160, 128, 3, 18, 'X', 160, 129, 7, '"', 152, 160, 130, 11, '2', 216, 160, 131, '`', 135, '-', '6', 205, ':', '?', 13, '5', 209, 'C', 'G', 253, 's', 209, 'K', '+', 157, 180, 205, '7', 243, 188, 's', 206, '3', 247, 204, 't', 211, 'H', 11, '}', '5', 213, 'N', 251, 172, 'u', 213, 'V', 'K', '=', 245, 209, 'F', 3, 29, 't', 214, 'X', 227, '\\', 's', 215, '\\', '{', 253, 245, 214, 15, 'B', 24, 161, 132, 19, 'R', 'X', 161, 133, 23, 'b', 152, 161, 134, 27, 'r', 216, 161, 135, 209, '}', 'H', 157, 136, 215, 149, 216, 221, 138, 176, 160, '|', 'K', 202, '&', 147, '2', '6', '(', 'i', 'b', 'm', '1', '0', '4', '7', 0, 'c', 'p', '1', '0', '4', '7', 0, 0, 1, 156, '$', '`', 200, 31, 151, '4', 226, 200, 2, 12, '4', 224, 192, 3, 16, 'D', ' ', 193, 4, 157, 20, 130, 192, '!', 24, 'd', ' ', 201, '#', 28, 't', 224, 193, 7, 128, 4, '"', 200, ' ', 132, '(', 'p', 193, 6, 136, '$', 162, 200, '"', 140, 20, '`', 192, 1, 144, 'D', 'b', 193, '$', 148, 'T', 'b', 9, 1, 152, 'd', 162, 201, '&', 20, 'T', 224, 137, 6, ' ', 128, '"', 14, '9', 224, 132, '3', 'N', '9', 231, 196, '#', 138, 11, '<', 160, 176, 2, 31, '&', 164, 163, 206, ':', 232, 180, 227, 206, ';', 236, '|', 19, 2, 9, '*', 164, 176, 131, 23, '-', 188, ' ', 12, '1', 192, 4, '3', 'L', '1', 199, 'D', 'c', 10, 11, '%', '|', 225, 195, 15, 248, '$', 163, 204, '2', 200, '4', 227, 204, '3', 204, 128, 161, 195, 8, '@', 156, 208, 131, 8, 216, 132, '!', 198, 24, 'd', 148, 'a', 198, 25, 'h', 164, 177, 202, '.', 240, 244, 227, 'O', ',', 176, 168, 177, 6, 27, 'm', 184, 241, 6, 28, 'q', 200, 161, 138, '.', 230, 224, 'b', 12, ')', 181, 248, '1', 7, 29, 'u', 216, 'q', 7, 30, 'y', 232, 17, 202, '/', 208, 'l', 225, 141, '+', 172, 140, 'R', 202, '-', 169, 156, 'b', 11, '/', 189, 248, 210, 13, '*', 175, 't', 'A', 203, '5', '{', 4, '!', 196, 16, 'D', 20, 'a', 196, 17, 'H', '$', 209, 10, '=', 246, 200, '3', 'O', '=', '}', '(', 177, 4, 19, 'M', '8', 241, 4, 20, 'Q', 'H', 145, 203, '>', 252, 228, 163, 207, '?', '\\', 220, '3', 5, 21, 'U', 'X', 'q', 5, 22, 'Y', 'h', '!', 11, '5', 214, 'H', '3', 'M', '5', '0', 196, ' ', 195, 12, '4', 212, '`', 195, 13, '8', 228, '0', 203, '6', 220, 'd', 163, 205, '\''} + +// C documentation +// +// /* Table of characters that appear in legacy 8-bit codepages, +// * limited to 1024 slots (10 bit indices). The first 256 entries +// * are elided since those characters are obviously all included. */ +var _legacy_chars = [612]uint16{ + 0: uint16(256), + 1: uint16(257), + 2: uint16(258), + 3: uint16(259), + 4: uint16(260), + 5: uint16(261), + 6: uint16(262), + 7: uint16(263), + 8: uint16(264), + 9: uint16(265), + 10: uint16(266), + 11: uint16(267), + 12: uint16(268), + 13: uint16(269), + 14: uint16(270), + 15: uint16(271), + 16: uint16(272), + 17: uint16(273), + 18: uint16(274), + 19: uint16(275), + 20: uint16(278), + 21: uint16(279), + 22: uint16(280), + 23: uint16(281), + 24: uint16(282), + 25: uint16(283), + 26: uint16(284), + 27: uint16(285), + 28: uint16(286), + 29: uint16(287), + 30: uint16(288), + 31: uint16(289), + 32: uint16(290), + 33: uint16(291), + 34: uint16(292), + 35: uint16(293), + 36: uint16(294), + 37: uint16(295), + 38: uint16(296), + 39: uint16(297), + 40: uint16(298), + 41: uint16(299), + 42: uint16(302), + 43: uint16(303), + 44: uint16(304), + 45: uint16(305), + 46: uint16(308), + 47: uint16(309), + 48: uint16(310), + 49: uint16(311), + 50: uint16(312), + 51: uint16(313), + 52: uint16(314), + 53: uint16(315), + 54: uint16(316), + 55: uint16(317), + 56: uint16(318), + 57: uint16(321), + 58: uint16(322), + 59: uint16(323), + 60: uint16(324), + 61: uint16(325), + 62: uint16(326), + 63: uint16(327), + 64: uint16(328), + 65: uint16(330), + 66: uint16(331), + 67: uint16(332), + 68: uint16(333), + 69: uint16(336), + 70: uint16(337), + 71: uint16(338), + 72: uint16(339), + 73: uint16(340), + 74: uint16(341), + 75: uint16(342), + 76: uint16(343), + 77: uint16(344), + 78: uint16(345), + 79: uint16(346), + 80: uint16(347), + 81: uint16(348), + 82: uint16(349), + 83: uint16(350), + 84: uint16(351), + 85: uint16(352), + 86: uint16(353), + 87: uint16(354), + 88: uint16(355), + 89: uint16(356), + 90: uint16(357), + 91: uint16(358), + 92: uint16(359), + 93: uint16(360), + 94: uint16(361), + 95: uint16(362), + 96: uint16(363), + 97: uint16(364), + 98: uint16(365), + 99: uint16(366), + 100: uint16(367), + 101: uint16(368), + 102: uint16(369), + 103: uint16(370), + 104: uint16(371), + 105: uint16(372), + 106: uint16(373), + 107: uint16(374), + 108: uint16(375), + 109: uint16(376), + 110: uint16(377), + 111: uint16(378), + 112: uint16(379), + 113: uint16(380), + 114: uint16(381), + 115: uint16(382), + 116: uint16(402), + 117: uint16(416), + 118: uint16(417), + 119: uint16(431), + 120: uint16(432), + 121: uint16(536), + 122: uint16(537), + 123: uint16(538), + 124: uint16(539), + 125: uint16(710), + 126: uint16(711), + 127: uint16(728), + 128: uint16(729), + 129: uint16(731), + 130: uint16(732), + 131: uint16(733), + 132: uint16(768), + 133: uint16(769), + 134: uint16(771), + 135: uint16(777), + 136: uint16(803), + 137: uint16(890), + 138: uint16(900), + 139: uint16(901), + 140: uint16(902), + 141: uint16(904), + 142: uint16(905), + 143: uint16(906), + 144: uint16(908), + 145: uint16(910), + 146: uint16(911), + 147: uint16(912), + 148: uint16(913), + 149: uint16(914), + 150: uint16(915), + 151: uint16(916), + 152: uint16(917), + 153: uint16(918), + 154: uint16(919), + 155: uint16(920), + 156: uint16(921), + 157: uint16(922), + 158: uint16(923), + 159: uint16(924), + 160: uint16(925), + 161: uint16(926), + 162: uint16(927), + 163: uint16(928), + 164: uint16(929), + 165: uint16(931), + 166: uint16(932), + 167: uint16(933), + 168: uint16(934), + 169: uint16(935), + 170: uint16(936), + 171: uint16(937), + 172: uint16(938), + 173: uint16(939), + 174: uint16(940), + 175: uint16(941), + 176: uint16(942), + 177: uint16(943), + 178: uint16(944), + 179: uint16(945), + 180: uint16(946), + 181: uint16(947), + 182: uint16(948), + 183: uint16(949), + 184: uint16(950), + 185: uint16(951), + 186: uint16(952), + 187: uint16(953), + 188: uint16(954), + 189: uint16(955), + 190: uint16(956), + 191: uint16(957), + 192: uint16(958), + 193: uint16(959), + 194: uint16(960), + 195: uint16(961), + 196: uint16(962), + 197: uint16(963), + 198: uint16(964), + 199: uint16(965), + 200: uint16(966), + 201: uint16(967), + 202: uint16(968), + 203: uint16(969), + 204: uint16(970), + 205: uint16(971), + 206: uint16(972), + 207: uint16(973), + 208: uint16(974), + 209: uint16(1025), + 210: uint16(1026), + 211: uint16(1027), + 212: uint16(1028), + 213: uint16(1029), + 214: uint16(1030), + 215: uint16(1031), + 216: uint16(1032), + 217: uint16(1033), + 218: uint16(1034), + 219: uint16(1035), + 220: uint16(1036), + 221: uint16(1038), + 222: uint16(1039), + 223: uint16(1040), + 224: uint16(1041), + 225: uint16(1042), + 226: uint16(1043), + 227: uint16(1044), + 228: uint16(1045), + 229: uint16(1046), + 230: uint16(1047), + 231: uint16(1048), + 232: uint16(1049), + 233: uint16(1050), + 234: uint16(1051), + 235: uint16(1052), + 236: uint16(1053), + 237: uint16(1054), + 238: uint16(1055), + 239: uint16(1056), + 240: uint16(1057), + 241: uint16(1058), + 242: uint16(1059), + 243: uint16(1060), + 244: uint16(1061), + 245: uint16(1062), + 246: uint16(1063), + 247: uint16(1064), + 248: uint16(1065), + 249: uint16(1066), + 250: uint16(1067), + 251: uint16(1068), + 252: uint16(1069), + 253: uint16(1070), + 254: uint16(1071), + 255: uint16(1072), + 256: uint16(1073), + 257: uint16(1074), + 258: uint16(1075), + 259: uint16(1076), + 260: uint16(1077), + 261: uint16(1078), + 262: uint16(1079), + 263: uint16(1080), + 264: uint16(1081), + 265: uint16(1082), + 266: uint16(1083), + 267: uint16(1084), + 268: uint16(1085), + 269: uint16(1086), + 270: uint16(1087), + 271: uint16(1088), + 272: uint16(1089), + 273: uint16(1090), + 274: uint16(1091), + 275: uint16(1092), + 276: uint16(1093), + 277: uint16(1094), + 278: uint16(1095), + 279: uint16(1096), + 280: uint16(1097), + 281: uint16(1098), + 282: uint16(1099), + 283: uint16(1100), + 284: uint16(1101), + 285: uint16(1102), + 286: uint16(1103), + 287: uint16(1105), + 288: uint16(1106), + 289: uint16(1107), + 290: uint16(1108), + 291: uint16(1109), + 292: uint16(1110), + 293: uint16(1111), + 294: uint16(1112), + 295: uint16(1113), + 296: uint16(1114), + 297: uint16(1115), + 298: uint16(1116), + 299: uint16(1118), + 300: uint16(1119), + 301: uint16(1168), + 302: uint16(1169), + 303: uint16(1456), + 304: uint16(1457), + 305: uint16(1458), + 306: uint16(1459), + 307: uint16(1460), + 308: uint16(1461), + 309: uint16(1462), + 310: uint16(1463), + 311: uint16(1464), + 312: uint16(1465), + 313: uint16(1467), + 314: uint16(1468), + 315: uint16(1469), + 316: uint16(1470), + 317: uint16(1471), + 318: uint16(1472), + 319: uint16(1473), + 320: uint16(1474), + 321: uint16(1475), + 322: uint16(1488), + 323: uint16(1489), + 324: uint16(1490), + 325: uint16(1491), + 326: uint16(1492), + 327: uint16(1493), + 328: uint16(1494), + 329: uint16(1495), + 330: uint16(1496), + 331: uint16(1497), + 332: uint16(1498), + 333: uint16(1499), + 334: uint16(1500), + 335: uint16(1501), + 336: uint16(1502), + 337: uint16(1503), + 338: uint16(1504), + 339: uint16(1505), + 340: uint16(1506), + 341: uint16(1507), + 342: uint16(1508), + 343: uint16(1509), + 344: uint16(1510), + 345: uint16(1511), + 346: uint16(1512), + 347: uint16(1513), + 348: uint16(1514), + 349: uint16(1520), + 350: uint16(1521), + 351: uint16(1522), + 352: uint16(1523), + 353: uint16(1524), + 354: uint16(1548), + 355: uint16(1563), + 356: uint16(1567), + 357: uint16(1569), + 358: uint16(1570), + 359: uint16(1571), + 360: uint16(1572), + 361: uint16(1573), + 362: uint16(1574), + 363: uint16(1575), + 364: uint16(1576), + 365: uint16(1577), + 366: uint16(1578), + 367: uint16(1579), + 368: uint16(1580), + 369: uint16(1581), + 370: uint16(1582), + 371: uint16(1583), + 372: uint16(1584), + 373: uint16(1585), + 374: uint16(1586), + 375: uint16(1587), + 376: uint16(1588), + 377: uint16(1589), + 378: uint16(1590), + 379: uint16(1591), + 380: uint16(1592), + 381: uint16(1593), + 382: uint16(1594), + 383: uint16(1600), + 384: uint16(1601), + 385: uint16(1602), + 386: uint16(1603), + 387: uint16(1604), + 388: uint16(1605), + 389: uint16(1606), + 390: uint16(1607), + 391: uint16(1608), + 392: uint16(1609), + 393: uint16(1610), + 394: uint16(1611), + 395: uint16(1612), + 396: uint16(1613), + 397: uint16(1614), + 398: uint16(1615), + 399: uint16(1616), + 400: uint16(1617), + 401: uint16(1618), + 402: uint16(1657), + 403: uint16(1662), + 404: uint16(1670), + 405: uint16(1672), + 406: uint16(1681), + 407: uint16(1688), + 408: uint16(1705), + 409: uint16(1711), + 410: uint16(1722), + 411: uint16(1726), + 412: uint16(1729), + 413: uint16(1746), + 414: uint16(3585), + 415: uint16(3586), + 416: uint16(3587), + 417: uint16(3588), + 418: uint16(3589), + 419: uint16(3590), + 420: uint16(3591), + 421: uint16(3592), + 422: uint16(3593), + 423: uint16(3594), + 424: uint16(3595), + 425: uint16(3596), + 426: uint16(3597), + 427: uint16(3598), + 428: uint16(3599), + 429: uint16(3600), + 430: uint16(3601), + 431: uint16(3602), + 432: uint16(3603), + 433: uint16(3604), + 434: uint16(3605), + 435: uint16(3606), + 436: uint16(3607), + 437: uint16(3608), + 438: uint16(3609), + 439: uint16(3610), + 440: uint16(3611), + 441: uint16(3612), + 442: uint16(3613), + 443: uint16(3614), + 444: uint16(3615), + 445: uint16(3616), + 446: uint16(3617), + 447: uint16(3618), + 448: uint16(3619), + 449: uint16(3620), + 450: uint16(3621), + 451: uint16(3622), + 452: uint16(3623), + 453: uint16(3624), + 454: uint16(3625), + 455: uint16(3626), + 456: uint16(3627), + 457: uint16(3628), + 458: uint16(3629), + 459: uint16(3630), + 460: uint16(3631), + 461: uint16(3632), + 462: uint16(3633), + 463: uint16(3634), + 464: uint16(3635), + 465: uint16(3636), + 466: uint16(3637), + 467: uint16(3638), + 468: uint16(3639), + 469: uint16(3640), + 470: uint16(3641), + 471: uint16(3642), + 472: uint16(3647), + 473: uint16(3648), + 474: uint16(3649), + 475: uint16(3650), + 476: uint16(3651), + 477: uint16(3652), + 478: uint16(3653), + 479: uint16(3654), + 480: uint16(3655), + 481: uint16(3656), + 482: uint16(3657), + 483: uint16(3658), + 484: uint16(3659), + 485: uint16(3660), + 486: uint16(3661), + 487: uint16(3662), + 488: uint16(3663), + 489: uint16(3664), + 490: uint16(3665), + 491: uint16(3666), + 492: uint16(3667), + 493: uint16(3668), + 494: uint16(3669), + 495: uint16(3670), + 496: uint16(3671), + 497: uint16(3672), + 498: uint16(3673), + 499: uint16(3674), + 500: uint16(3675), + 501: uint16(7682), + 502: uint16(7683), + 503: uint16(7690), + 504: uint16(7691), + 505: uint16(7710), + 506: uint16(7711), + 507: uint16(7744), + 508: uint16(7745), + 509: uint16(7766), + 510: uint16(7767), + 511: uint16(7776), + 512: uint16(7777), + 513: uint16(7786), + 514: uint16(7787), + 515: uint16(7808), + 516: uint16(7809), + 517: uint16(7810), + 518: uint16(7811), + 519: uint16(7812), + 520: uint16(7813), + 521: uint16(7922), + 522: uint16(7923), + 523: uint16(8204), + 524: uint16(8205), + 525: uint16(8206), + 526: uint16(8207), + 527: uint16(8211), + 528: uint16(8212), + 529: uint16(8213), + 530: uint16(8215), + 531: uint16(8216), + 532: uint16(8217), + 533: uint16(8218), + 534: uint16(8220), + 535: uint16(8221), + 536: uint16(8222), + 537: uint16(8224), + 538: uint16(8225), + 539: uint16(8226), + 540: uint16(8230), + 541: uint16(8240), + 542: uint16(8249), + 543: uint16(8250), + 544: uint16(8319), + 545: uint16(8359), + 546: uint16(8362), + 547: uint16(8363), + 548: uint16(8364), + 549: uint16(8367), + 550: uint16(8470), + 551: uint16(8482), + 552: uint16(8729), + 553: uint16(8730), + 554: uint16(8734), + 555: uint16(8745), + 556: uint16(8776), + 557: uint16(8801), + 558: uint16(8804), + 559: uint16(8805), + 560: uint16(8976), + 561: uint16(8992), + 562: uint16(8993), + 563: uint16(9472), + 564: uint16(9474), + 565: uint16(9484), + 566: uint16(9488), + 567: uint16(9492), + 568: uint16(9496), + 569: uint16(9500), + 570: uint16(9508), + 571: uint16(9516), + 572: uint16(9524), + 573: uint16(9532), + 574: uint16(9552), + 575: uint16(9553), + 576: uint16(9554), + 577: uint16(9555), + 578: uint16(9556), + 579: uint16(9557), + 580: uint16(9558), + 581: uint16(9559), + 582: uint16(9560), + 583: uint16(9561), + 584: uint16(9562), + 585: uint16(9563), + 586: uint16(9564), + 587: uint16(9565), + 588: uint16(9566), + 589: uint16(9567), + 590: uint16(9568), + 591: uint16(9569), + 592: uint16(9570), + 593: uint16(9571), + 594: uint16(9572), + 595: uint16(9573), + 596: uint16(9574), + 597: uint16(9575), + 598: uint16(9576), + 599: uint16(9577), + 600: uint16(9578), + 601: uint16(9579), + 602: uint16(9580), + 603: uint16(9600), + 604: uint16(9604), + 605: uint16(9608), + 606: uint16(9612), + 607: uint16(9616), + 608: uint16(9617), + 609: uint16(9618), + 610: uint16(9619), + 611: uint16(9632), +} + +var _jis0208 = [84][94]uint16{ + 0: { + 0: uint16(12288), + 1: uint16(12289), + 2: uint16(12290), + 3: uint16(65292), + 4: uint16(65294), + 5: uint16(12539), + 6: uint16(65306), + 7: uint16(65307), + 8: uint16(65311), + 9: uint16(65281), + 10: uint16(12443), + 11: uint16(12444), + 12: uint16(180), + 13: uint16(65344), + 14: uint16(168), + 15: uint16(65342), + 16: uint16(65507), + 17: uint16(65343), + 18: uint16(12541), + 19: uint16(12542), + 20: uint16(12445), + 21: uint16(12446), + 22: uint16(12291), + 23: uint16(20189), + 24: uint16(12293), + 25: uint16(12294), + 26: uint16(12295), + 27: uint16(12540), + 28: uint16(8213), + 29: uint16(8208), + 30: uint16(65295), + 31: uint16(92), + 32: uint16(12316), + 33: uint16(8214), + 34: uint16(65372), + 35: uint16(8230), + 36: uint16(8229), + 37: uint16(8216), + 38: uint16(8217), + 39: uint16(8220), + 40: uint16(8221), + 41: uint16(65288), + 42: uint16(65289), + 43: uint16(12308), + 44: uint16(12309), + 45: uint16(65339), + 46: uint16(65341), + 47: uint16(65371), + 48: uint16(65373), + 49: uint16(12296), + 50: uint16(12297), + 51: uint16(12298), + 52: uint16(12299), + 53: uint16(12300), + 54: uint16(12301), + 55: uint16(12302), + 56: uint16(12303), + 57: uint16(12304), + 58: uint16(12305), + 59: uint16(65291), + 60: uint16(8722), + 61: uint16(177), + 62: uint16(215), + 63: uint16(247), + 64: uint16(65309), + 65: uint16(8800), + 66: uint16(65308), + 67: uint16(65310), + 68: uint16(8806), + 69: uint16(8807), + 70: uint16(8734), + 71: uint16(8756), + 72: uint16(9794), + 73: uint16(9792), + 74: uint16(176), + 75: uint16(8242), + 76: uint16(8243), + 77: uint16(8451), + 78: uint16(65509), + 79: uint16(65284), + 80: uint16(162), + 81: uint16(163), + 82: uint16(65285), + 83: uint16(65283), + 84: uint16(65286), + 85: uint16(65290), + 86: uint16(65312), + 87: uint16(167), + 88: uint16(9734), + 89: uint16(9733), + 90: uint16(9675), + 91: uint16(9679), + 92: uint16(9678), + 93: uint16(9671), + }, + 1: { + 0: uint16(9670), + 1: uint16(9633), + 2: uint16(9632), + 3: uint16(9651), + 4: uint16(9650), + 5: uint16(9661), + 6: uint16(9660), + 7: uint16(8251), + 8: uint16(12306), + 9: uint16(8594), + 10: uint16(8592), + 11: uint16(8593), + 12: uint16(8595), + 13: uint16(12307), + 25: uint16(8712), + 26: uint16(8715), + 27: uint16(8838), + 28: uint16(8839), + 29: uint16(8834), + 30: uint16(8835), + 31: uint16(8746), + 32: uint16(8745), + 41: uint16(8743), + 42: uint16(8744), + 43: uint16(172), + 44: uint16(8658), + 45: uint16(8660), + 46: uint16(8704), + 47: uint16(8707), + 59: uint16(8736), + 60: uint16(8869), + 61: uint16(8978), + 62: uint16(8706), + 63: uint16(8711), + 64: uint16(8801), + 65: uint16(8786), + 66: uint16(8810), + 67: uint16(8811), + 68: uint16(8730), + 69: uint16(8765), + 70: uint16(8733), + 71: uint16(8757), + 72: uint16(8747), + 73: uint16(8748), + 81: uint16(8491), + 82: uint16(8240), + 83: uint16(9839), + 84: uint16(9837), + 85: uint16(9834), + 86: uint16(8224), + 87: uint16(8225), + 88: uint16(182), + 93: uint16(9711), + }, + 2: { + 15: uint16(65296), + 16: uint16(65297), + 17: uint16(65298), + 18: uint16(65299), + 19: uint16(65300), + 20: uint16(65301), + 21: uint16(65302), + 22: uint16(65303), + 23: uint16(65304), + 24: uint16(65305), + 32: uint16(65313), + 33: uint16(65314), + 34: uint16(65315), + 35: uint16(65316), + 36: uint16(65317), + 37: uint16(65318), + 38: uint16(65319), + 39: uint16(65320), + 40: uint16(65321), + 41: uint16(65322), + 42: uint16(65323), + 43: uint16(65324), + 44: uint16(65325), + 45: uint16(65326), + 46: uint16(65327), + 47: uint16(65328), + 48: uint16(65329), + 49: uint16(65330), + 50: uint16(65331), + 51: uint16(65332), + 52: uint16(65333), + 53: uint16(65334), + 54: uint16(65335), + 55: uint16(65336), + 56: uint16(65337), + 57: uint16(65338), + 64: uint16(65345), + 65: uint16(65346), + 66: uint16(65347), + 67: uint16(65348), + 68: uint16(65349), + 69: uint16(65350), + 70: uint16(65351), + 71: uint16(65352), + 72: uint16(65353), + 73: uint16(65354), + 74: uint16(65355), + 75: uint16(65356), + 76: uint16(65357), + 77: uint16(65358), + 78: uint16(65359), + 79: uint16(65360), + 80: uint16(65361), + 81: uint16(65362), + 82: uint16(65363), + 83: uint16(65364), + 84: uint16(65365), + 85: uint16(65366), + 86: uint16(65367), + 87: uint16(65368), + 88: uint16(65369), + 89: uint16(65370), + }, + 3: { + 0: uint16(12353), + 1: uint16(12354), + 2: uint16(12355), + 3: uint16(12356), + 4: uint16(12357), + 5: uint16(12358), + 6: uint16(12359), + 7: uint16(12360), + 8: uint16(12361), + 9: uint16(12362), + 10: uint16(12363), + 11: uint16(12364), + 12: uint16(12365), + 13: uint16(12366), + 14: uint16(12367), + 15: uint16(12368), + 16: uint16(12369), + 17: uint16(12370), + 18: uint16(12371), + 19: uint16(12372), + 20: uint16(12373), + 21: uint16(12374), + 22: uint16(12375), + 23: uint16(12376), + 24: uint16(12377), + 25: uint16(12378), + 26: uint16(12379), + 27: uint16(12380), + 28: uint16(12381), + 29: uint16(12382), + 30: uint16(12383), + 31: uint16(12384), + 32: uint16(12385), + 33: uint16(12386), + 34: uint16(12387), + 35: uint16(12388), + 36: uint16(12389), + 37: uint16(12390), + 38: uint16(12391), + 39: uint16(12392), + 40: uint16(12393), + 41: uint16(12394), + 42: uint16(12395), + 43: uint16(12396), + 44: uint16(12397), + 45: uint16(12398), + 46: uint16(12399), + 47: uint16(12400), + 48: uint16(12401), + 49: uint16(12402), + 50: uint16(12403), + 51: uint16(12404), + 52: uint16(12405), + 53: uint16(12406), + 54: uint16(12407), + 55: uint16(12408), + 56: uint16(12409), + 57: uint16(12410), + 58: uint16(12411), + 59: uint16(12412), + 60: uint16(12413), + 61: uint16(12414), + 62: uint16(12415), + 63: uint16(12416), + 64: uint16(12417), + 65: uint16(12418), + 66: uint16(12419), + 67: uint16(12420), + 68: uint16(12421), + 69: uint16(12422), + 70: uint16(12423), + 71: uint16(12424), + 72: uint16(12425), + 73: uint16(12426), + 74: uint16(12427), + 75: uint16(12428), + 76: uint16(12429), + 77: uint16(12430), + 78: uint16(12431), + 79: uint16(12432), + 80: uint16(12433), + 81: uint16(12434), + 82: uint16(12435), + }, + 4: { + 0: uint16(12449), + 1: uint16(12450), + 2: uint16(12451), + 3: uint16(12452), + 4: uint16(12453), + 5: uint16(12454), + 6: uint16(12455), + 7: uint16(12456), + 8: uint16(12457), + 9: uint16(12458), + 10: uint16(12459), + 11: uint16(12460), + 12: uint16(12461), + 13: uint16(12462), + 14: uint16(12463), + 15: uint16(12464), + 16: uint16(12465), + 17: uint16(12466), + 18: uint16(12467), + 19: uint16(12468), + 20: uint16(12469), + 21: uint16(12470), + 22: uint16(12471), + 23: uint16(12472), + 24: uint16(12473), + 25: uint16(12474), + 26: uint16(12475), + 27: uint16(12476), + 28: uint16(12477), + 29: uint16(12478), + 30: uint16(12479), + 31: uint16(12480), + 32: uint16(12481), + 33: uint16(12482), + 34: uint16(12483), + 35: uint16(12484), + 36: uint16(12485), + 37: uint16(12486), + 38: uint16(12487), + 39: uint16(12488), + 40: uint16(12489), + 41: uint16(12490), + 42: uint16(12491), + 43: uint16(12492), + 44: uint16(12493), + 45: uint16(12494), + 46: uint16(12495), + 47: uint16(12496), + 48: uint16(12497), + 49: uint16(12498), + 50: uint16(12499), + 51: uint16(12500), + 52: uint16(12501), + 53: uint16(12502), + 54: uint16(12503), + 55: uint16(12504), + 56: uint16(12505), + 57: uint16(12506), + 58: uint16(12507), + 59: uint16(12508), + 60: uint16(12509), + 61: uint16(12510), + 62: uint16(12511), + 63: uint16(12512), + 64: uint16(12513), + 65: uint16(12514), + 66: uint16(12515), + 67: uint16(12516), + 68: uint16(12517), + 69: uint16(12518), + 70: uint16(12519), + 71: uint16(12520), + 72: uint16(12521), + 73: uint16(12522), + 74: uint16(12523), + 75: uint16(12524), + 76: uint16(12525), + 77: uint16(12526), + 78: uint16(12527), + 79: uint16(12528), + 80: uint16(12529), + 81: uint16(12530), + 82: uint16(12531), + 83: uint16(12532), + 84: uint16(12533), + 85: uint16(12534), + }, + 5: { + 0: uint16(913), + 1: uint16(914), + 2: uint16(915), + 3: uint16(916), + 4: uint16(917), + 5: uint16(918), + 6: uint16(919), + 7: uint16(920), + 8: uint16(921), + 9: uint16(922), + 10: uint16(923), + 11: uint16(924), + 12: uint16(925), + 13: uint16(926), + 14: uint16(927), + 15: uint16(928), + 16: uint16(929), + 17: uint16(931), + 18: uint16(932), + 19: uint16(933), + 20: uint16(934), + 21: uint16(935), + 22: uint16(936), + 23: uint16(937), + 32: uint16(945), + 33: uint16(946), + 34: uint16(947), + 35: uint16(948), + 36: uint16(949), + 37: uint16(950), + 38: uint16(951), + 39: uint16(952), + 40: uint16(953), + 41: uint16(954), + 42: uint16(955), + 43: uint16(956), + 44: uint16(957), + 45: uint16(958), + 46: uint16(959), + 47: uint16(960), + 48: uint16(961), + 49: uint16(963), + 50: uint16(964), + 51: uint16(965), + 52: uint16(966), + 53: uint16(967), + 54: uint16(968), + 55: uint16(969), + }, + 6: { + 0: uint16(1040), + 1: uint16(1041), + 2: uint16(1042), + 3: uint16(1043), + 4: uint16(1044), + 5: uint16(1045), + 6: uint16(1025), + 7: uint16(1046), + 8: uint16(1047), + 9: uint16(1048), + 10: uint16(1049), + 11: uint16(1050), + 12: uint16(1051), + 13: uint16(1052), + 14: uint16(1053), + 15: uint16(1054), + 16: uint16(1055), + 17: uint16(1056), + 18: uint16(1057), + 19: uint16(1058), + 20: uint16(1059), + 21: uint16(1060), + 22: uint16(1061), + 23: uint16(1062), + 24: uint16(1063), + 25: uint16(1064), + 26: uint16(1065), + 27: uint16(1066), + 28: uint16(1067), + 29: uint16(1068), + 30: uint16(1069), + 31: uint16(1070), + 32: uint16(1071), + 48: uint16(1072), + 49: uint16(1073), + 50: uint16(1074), + 51: uint16(1075), + 52: uint16(1076), + 53: uint16(1077), + 54: uint16(1105), + 55: uint16(1078), + 56: uint16(1079), + 57: uint16(1080), + 58: uint16(1081), + 59: uint16(1082), + 60: uint16(1083), + 61: uint16(1084), + 62: uint16(1085), + 63: uint16(1086), + 64: uint16(1087), + 65: uint16(1088), + 66: uint16(1089), + 67: uint16(1090), + 68: uint16(1091), + 69: uint16(1092), + 70: uint16(1093), + 71: uint16(1094), + 72: uint16(1095), + 73: uint16(1096), + 74: uint16(1097), + 75: uint16(1098), + 76: uint16(1099), + 77: uint16(1100), + 78: uint16(1101), + 79: uint16(1102), + 80: uint16(1103), + }, + 7: { + 0: uint16(9472), + 1: uint16(9474), + 2: uint16(9484), + 3: uint16(9488), + 4: uint16(9496), + 5: uint16(9492), + 6: uint16(9500), + 7: uint16(9516), + 8: uint16(9508), + 9: uint16(9524), + 10: uint16(9532), + 11: uint16(9473), + 12: uint16(9475), + 13: uint16(9487), + 14: uint16(9491), + 15: uint16(9499), + 16: uint16(9495), + 17: uint16(9507), + 18: uint16(9523), + 19: uint16(9515), + 20: uint16(9531), + 21: uint16(9547), + 22: uint16(9504), + 23: uint16(9519), + 24: uint16(9512), + 25: uint16(9527), + 26: uint16(9535), + 27: uint16(9501), + 28: uint16(9520), + 29: uint16(9509), + 30: uint16(9528), + 31: uint16(9538), + }, + 8: {}, + 9: {}, + 10: {}, + 11: {}, + 12: {}, + 13: {}, + 14: {}, + 15: { + 0: uint16(20124), + 1: uint16(21782), + 2: uint16(23043), + 3: uint16(38463), + 4: uint16(21696), + 5: uint16(24859), + 6: uint16(25384), + 7: uint16(23030), + 8: uint16(36898), + 9: uint16(33909), + 10: uint16(33564), + 11: uint16(31312), + 12: uint16(24746), + 13: uint16(25569), + 14: uint16(28197), + 15: uint16(26093), + 16: uint16(33894), + 17: uint16(33446), + 18: uint16(39925), + 19: uint16(26771), + 20: uint16(22311), + 21: uint16(26017), + 22: uint16(25201), + 23: uint16(23451), + 24: uint16(22992), + 25: uint16(34427), + 26: uint16(39156), + 27: uint16(32098), + 28: uint16(32190), + 29: uint16(39822), + 30: uint16(25110), + 31: uint16(31903), + 32: uint16(34999), + 33: uint16(23433), + 34: uint16(24245), + 35: uint16(25353), + 36: uint16(26263), + 37: uint16(26696), + 38: uint16(38343), + 39: uint16(38797), + 40: uint16(26447), + 41: uint16(20197), + 42: uint16(20234), + 43: uint16(20301), + 44: uint16(20381), + 45: uint16(20553), + 46: uint16(22258), + 47: uint16(22839), + 48: uint16(22996), + 49: uint16(23041), + 50: uint16(23561), + 51: uint16(24799), + 52: uint16(24847), + 53: uint16(24944), + 54: uint16(26131), + 55: uint16(26885), + 56: uint16(28858), + 57: uint16(30031), + 58: uint16(30064), + 59: uint16(31227), + 60: uint16(32173), + 61: uint16(32239), + 62: uint16(32963), + 63: uint16(33806), + 64: uint16(34915), + 65: uint16(35586), + 66: uint16(36949), + 67: uint16(36986), + 68: uint16(21307), + 69: uint16(20117), + 70: uint16(20133), + 71: uint16(22495), + 72: uint16(32946), + 73: uint16(37057), + 74: uint16(30959), + 75: uint16(19968), + 76: uint16(22769), + 77: uint16(28322), + 78: uint16(36920), + 79: uint16(31282), + 80: uint16(33576), + 81: uint16(33419), + 82: uint16(39983), + 83: uint16(20801), + 84: uint16(21360), + 85: uint16(21693), + 86: uint16(21729), + 87: uint16(22240), + 88: uint16(23035), + 89: uint16(24341), + 90: uint16(39154), + 91: uint16(28139), + 92: uint16(32996), + 93: uint16(34093), + }, + 16: { + 0: uint16(38498), + 1: uint16(38512), + 2: uint16(38560), + 3: uint16(38907), + 4: uint16(21515), + 5: uint16(21491), + 6: uint16(23431), + 7: uint16(28879), + 8: uint16(32701), + 9: uint16(36802), + 10: uint16(38632), + 11: uint16(21359), + 12: uint16(40284), + 13: uint16(31418), + 14: uint16(19985), + 15: uint16(30867), + 16: uint16(33276), + 17: uint16(28198), + 18: uint16(22040), + 19: uint16(21764), + 20: uint16(27421), + 21: uint16(34074), + 22: uint16(39995), + 23: uint16(23013), + 24: uint16(21417), + 25: uint16(28006), + 26: uint16(29916), + 27: uint16(38287), + 28: uint16(22082), + 29: uint16(20113), + 30: uint16(36939), + 31: uint16(38642), + 32: uint16(33615), + 33: uint16(39180), + 34: uint16(21473), + 35: uint16(21942), + 36: uint16(23344), + 37: uint16(24433), + 38: uint16(26144), + 39: uint16(26355), + 40: uint16(26628), + 41: uint16(27704), + 42: uint16(27891), + 43: uint16(27945), + 44: uint16(29787), + 45: uint16(30408), + 46: uint16(31310), + 47: uint16(38964), + 48: uint16(33521), + 49: uint16(34907), + 50: uint16(35424), + 51: uint16(37613), + 52: uint16(28082), + 53: uint16(30123), + 54: uint16(30410), + 55: uint16(39365), + 56: uint16(24742), + 57: uint16(35585), + 58: uint16(36234), + 59: uint16(38322), + 60: uint16(27022), + 61: uint16(21421), + 62: uint16(20870), + 63: uint16(22290), + 64: uint16(22576), + 65: uint16(22852), + 66: uint16(23476), + 67: uint16(24310), + 68: uint16(24616), + 69: uint16(25513), + 70: uint16(25588), + 71: uint16(27839), + 72: uint16(28436), + 73: uint16(28814), + 74: uint16(28948), + 75: uint16(29017), + 76: uint16(29141), + 77: uint16(29503), + 78: uint16(32257), + 79: uint16(33398), + 80: uint16(33489), + 81: uint16(34199), + 82: uint16(36960), + 83: uint16(37467), + 84: uint16(40219), + 85: uint16(22633), + 86: uint16(26044), + 87: uint16(27738), + 88: uint16(29989), + 89: uint16(20985), + 90: uint16(22830), + 91: uint16(22885), + 92: uint16(24448), + 93: uint16(24540), + }, + 17: { + 0: uint16(25276), + 1: uint16(26106), + 2: uint16(27178), + 3: uint16(27431), + 4: uint16(27572), + 5: uint16(29579), + 6: uint16(32705), + 7: uint16(35158), + 8: uint16(40236), + 9: uint16(40206), + 10: uint16(40644), + 11: uint16(23713), + 12: uint16(27798), + 13: uint16(33659), + 14: uint16(20740), + 15: uint16(23627), + 16: uint16(25014), + 17: uint16(33222), + 18: uint16(26742), + 19: uint16(29281), + 20: uint16(20057), + 21: uint16(20474), + 22: uint16(21368), + 23: uint16(24681), + 24: uint16(28201), + 25: uint16(31311), + 26: uint16(38899), + 27: uint16(19979), + 28: uint16(21270), + 29: uint16(20206), + 30: uint16(20309), + 31: uint16(20285), + 32: uint16(20385), + 33: uint16(20339), + 34: uint16(21152), + 35: uint16(21487), + 36: uint16(22025), + 37: uint16(22799), + 38: uint16(23233), + 39: uint16(23478), + 40: uint16(23521), + 41: uint16(31185), + 42: uint16(26247), + 43: uint16(26524), + 44: uint16(26550), + 45: uint16(27468), + 46: uint16(27827), + 47: uint16(28779), + 48: uint16(29634), + 49: uint16(31117), + 50: uint16(31166), + 51: uint16(31292), + 52: uint16(31623), + 53: uint16(33457), + 54: uint16(33499), + 55: uint16(33540), + 56: uint16(33655), + 57: uint16(33775), + 58: uint16(33747), + 59: uint16(34662), + 60: uint16(35506), + 61: uint16(22057), + 62: uint16(36008), + 63: uint16(36838), + 64: uint16(36942), + 65: uint16(38686), + 66: uint16(34442), + 67: uint16(20420), + 68: uint16(23784), + 69: uint16(25105), + 70: uint16(29273), + 71: uint16(30011), + 72: uint16(33253), + 73: uint16(33469), + 74: uint16(34558), + 75: uint16(36032), + 76: uint16(38597), + 77: uint16(39187), + 78: uint16(39381), + 79: uint16(20171), + 80: uint16(20250), + 81: uint16(35299), + 82: uint16(22238), + 83: uint16(22602), + 84: uint16(22730), + 85: uint16(24315), + 86: uint16(24555), + 87: uint16(24618), + 88: uint16(24724), + 89: uint16(24674), + 90: uint16(25040), + 91: uint16(25106), + 92: uint16(25296), + 93: uint16(25913), + }, + 18: { + 0: uint16(39745), + 1: uint16(26214), + 2: uint16(26800), + 3: uint16(28023), + 4: uint16(28784), + 5: uint16(30028), + 6: uint16(30342), + 7: uint16(32117), + 8: uint16(33445), + 9: uint16(34809), + 10: uint16(38283), + 11: uint16(38542), + 12: uint16(35997), + 13: uint16(20977), + 14: uint16(21182), + 15: uint16(22806), + 16: uint16(21683), + 17: uint16(23475), + 18: uint16(23830), + 19: uint16(24936), + 20: uint16(27010), + 21: uint16(28079), + 22: uint16(30861), + 23: uint16(33995), + 24: uint16(34903), + 25: uint16(35442), + 26: uint16(37799), + 27: uint16(39608), + 28: uint16(28012), + 29: uint16(39336), + 30: uint16(34521), + 31: uint16(22435), + 32: uint16(26623), + 33: uint16(34510), + 34: uint16(37390), + 35: uint16(21123), + 36: uint16(22151), + 37: uint16(21508), + 38: uint16(24275), + 39: uint16(25313), + 40: uint16(25785), + 41: uint16(26684), + 42: uint16(26680), + 43: uint16(27579), + 44: uint16(29554), + 45: uint16(30906), + 46: uint16(31339), + 47: uint16(35226), + 48: uint16(35282), + 49: uint16(36203), + 50: uint16(36611), + 51: uint16(37101), + 52: uint16(38307), + 53: uint16(38548), + 54: uint16(38761), + 55: uint16(23398), + 56: uint16(23731), + 57: uint16(27005), + 58: uint16(38989), + 59: uint16(38990), + 60: uint16(25499), + 61: uint16(31520), + 62: uint16(27179), + 63: uint16(27263), + 64: uint16(26806), + 65: uint16(39949), + 66: uint16(28511), + 67: uint16(21106), + 68: uint16(21917), + 69: uint16(24688), + 70: uint16(25324), + 71: uint16(27963), + 72: uint16(28167), + 73: uint16(28369), + 74: uint16(33883), + 75: uint16(35088), + 76: uint16(36676), + 77: uint16(19988), + 78: uint16(39993), + 79: uint16(21494), + 80: uint16(26907), + 81: uint16(27194), + 82: uint16(38788), + 83: uint16(26666), + 84: uint16(20828), + 85: uint16(31427), + 86: uint16(33970), + 87: uint16(37340), + 88: uint16(37772), + 89: uint16(22107), + 90: uint16(40232), + 91: uint16(26658), + 92: uint16(33541), + 93: uint16(33841), + }, + 19: { + 0: uint16(31909), + 1: uint16(21000), + 2: uint16(33477), + 3: uint16(29926), + 4: uint16(20094), + 5: uint16(20355), + 6: uint16(20896), + 7: uint16(23506), + 8: uint16(21002), + 9: uint16(21208), + 10: uint16(21223), + 11: uint16(24059), + 12: uint16(21914), + 13: uint16(22570), + 14: uint16(23014), + 15: uint16(23436), + 16: uint16(23448), + 17: uint16(23515), + 18: uint16(24178), + 19: uint16(24185), + 20: uint16(24739), + 21: uint16(24863), + 22: uint16(24931), + 23: uint16(25022), + 24: uint16(25563), + 25: uint16(25954), + 26: uint16(26577), + 27: uint16(26707), + 28: uint16(26874), + 29: uint16(27454), + 30: uint16(27475), + 31: uint16(27735), + 32: uint16(28450), + 33: uint16(28567), + 34: uint16(28485), + 35: uint16(29872), + 36: uint16(29976), + 37: uint16(30435), + 38: uint16(30475), + 39: uint16(31487), + 40: uint16(31649), + 41: uint16(31777), + 42: uint16(32233), + 43: uint16(32566), + 44: uint16(32752), + 45: uint16(32925), + 46: uint16(33382), + 47: uint16(33694), + 48: uint16(35251), + 49: uint16(35532), + 50: uint16(36011), + 51: uint16(36996), + 52: uint16(37969), + 53: uint16(38291), + 54: uint16(38289), + 55: uint16(38306), + 56: uint16(38501), + 57: uint16(38867), + 58: uint16(39208), + 59: uint16(33304), + 60: uint16(20024), + 61: uint16(21547), + 62: uint16(23736), + 63: uint16(24012), + 64: uint16(29609), + 65: uint16(30284), + 66: uint16(30524), + 67: uint16(23721), + 68: uint16(32747), + 69: uint16(36107), + 70: uint16(38593), + 71: uint16(38929), + 72: uint16(38996), + 73: uint16(39000), + 74: uint16(20225), + 75: uint16(20238), + 76: uint16(21361), + 77: uint16(21916), + 78: uint16(22120), + 79: uint16(22522), + 80: uint16(22855), + 81: uint16(23305), + 82: uint16(23492), + 83: uint16(23696), + 84: uint16(24076), + 85: uint16(24190), + 86: uint16(24524), + 87: uint16(25582), + 88: uint16(26426), + 89: uint16(26071), + 90: uint16(26082), + 91: uint16(26399), + 92: uint16(26827), + 93: uint16(26820), + }, + 20: { + 0: uint16(27231), + 1: uint16(24112), + 2: uint16(27589), + 3: uint16(27671), + 4: uint16(27773), + 5: uint16(30079), + 6: uint16(31048), + 7: uint16(23395), + 8: uint16(31232), + 9: uint16(32000), + 10: uint16(24509), + 11: uint16(35215), + 12: uint16(35352), + 13: uint16(36020), + 14: uint16(36215), + 15: uint16(36556), + 16: uint16(36637), + 17: uint16(39138), + 18: uint16(39438), + 19: uint16(39740), + 20: uint16(20096), + 21: uint16(20605), + 22: uint16(20736), + 23: uint16(22931), + 24: uint16(23452), + 25: uint16(25135), + 26: uint16(25216), + 27: uint16(25836), + 28: uint16(27450), + 29: uint16(29344), + 30: uint16(30097), + 31: uint16(31047), + 32: uint16(32681), + 33: uint16(34811), + 34: uint16(35516), + 35: uint16(35696), + 36: uint16(25516), + 37: uint16(33738), + 38: uint16(38816), + 39: uint16(21513), + 40: uint16(21507), + 41: uint16(21931), + 42: uint16(26708), + 43: uint16(27224), + 44: uint16(35440), + 45: uint16(30759), + 46: uint16(26485), + 47: uint16(40653), + 48: uint16(21364), + 49: uint16(23458), + 50: uint16(33050), + 51: uint16(34384), + 52: uint16(36870), + 53: uint16(19992), + 54: uint16(20037), + 55: uint16(20167), + 56: uint16(20241), + 57: uint16(21450), + 58: uint16(21560), + 59: uint16(23470), + 60: uint16(24339), + 61: uint16(24613), + 62: uint16(25937), + 63: uint16(26429), + 64: uint16(27714), + 65: uint16(27762), + 66: uint16(27875), + 67: uint16(28792), + 68: uint16(29699), + 69: uint16(31350), + 70: uint16(31406), + 71: uint16(31496), + 72: uint16(32026), + 73: uint16(31998), + 74: uint16(32102), + 75: uint16(26087), + 76: uint16(29275), + 77: uint16(21435), + 78: uint16(23621), + 79: uint16(24040), + 80: uint16(25298), + 81: uint16(25312), + 82: uint16(25369), + 83: uint16(28192), + 84: uint16(34394), + 85: uint16(35377), + 86: uint16(36317), + 87: uint16(37624), + 88: uint16(28417), + 89: uint16(31142), + 90: uint16(39770), + 91: uint16(20136), + 92: uint16(20139), + 93: uint16(20140), + }, + 21: { + 0: uint16(20379), + 1: uint16(20384), + 2: uint16(20689), + 3: uint16(20807), + 4: uint16(31478), + 5: uint16(20849), + 6: uint16(20982), + 7: uint16(21332), + 8: uint16(21281), + 9: uint16(21375), + 10: uint16(21483), + 11: uint16(21932), + 12: uint16(22659), + 13: uint16(23777), + 14: uint16(24375), + 15: uint16(24394), + 16: uint16(24623), + 17: uint16(24656), + 18: uint16(24685), + 19: uint16(25375), + 20: uint16(25945), + 21: uint16(27211), + 22: uint16(27841), + 23: uint16(29378), + 24: uint16(29421), + 25: uint16(30703), + 26: uint16(33016), + 27: uint16(33029), + 28: uint16(33288), + 29: uint16(34126), + 30: uint16(37111), + 31: uint16(37857), + 32: uint16(38911), + 33: uint16(39255), + 34: uint16(39514), + 35: uint16(20208), + 36: uint16(20957), + 37: uint16(23597), + 38: uint16(26241), + 39: uint16(26989), + 40: uint16(23616), + 41: uint16(26354), + 42: uint16(26997), + 43: uint16(29577), + 44: uint16(26704), + 45: uint16(31873), + 46: uint16(20677), + 47: uint16(21220), + 48: uint16(22343), + 49: uint16(24062), + 50: uint16(37670), + 51: uint16(26020), + 52: uint16(27427), + 53: uint16(27453), + 54: uint16(29748), + 55: uint16(31105), + 56: uint16(31165), + 57: uint16(31563), + 58: uint16(32202), + 59: uint16(33465), + 60: uint16(33740), + 61: uint16(34943), + 62: uint16(35167), + 63: uint16(35641), + 64: uint16(36817), + 65: uint16(37329), + 66: uint16(21535), + 67: uint16(37504), + 68: uint16(20061), + 69: uint16(20534), + 70: uint16(21477), + 71: uint16(21306), + 72: uint16(29399), + 73: uint16(29590), + 74: uint16(30697), + 75: uint16(33510), + 76: uint16(36527), + 77: uint16(39366), + 78: uint16(39368), + 79: uint16(39378), + 80: uint16(20855), + 81: uint16(24858), + 82: uint16(34398), + 83: uint16(21936), + 84: uint16(31354), + 85: uint16(20598), + 86: uint16(23507), + 87: uint16(36935), + 88: uint16(38533), + 89: uint16(20018), + 90: uint16(27355), + 91: uint16(37351), + 92: uint16(23633), + 93: uint16(23624), + }, + 22: { + 0: uint16(25496), + 1: uint16(31391), + 2: uint16(27795), + 3: uint16(38772), + 4: uint16(36705), + 5: uint16(31402), + 6: uint16(29066), + 7: uint16(38536), + 8: uint16(31874), + 9: uint16(26647), + 10: uint16(32368), + 11: uint16(26705), + 12: uint16(37740), + 13: uint16(21234), + 14: uint16(21531), + 15: uint16(34219), + 16: uint16(35347), + 17: uint16(32676), + 18: uint16(36557), + 19: uint16(37089), + 20: uint16(21350), + 21: uint16(34952), + 22: uint16(31041), + 23: uint16(20418), + 24: uint16(20670), + 25: uint16(21009), + 26: uint16(20804), + 27: uint16(21843), + 28: uint16(22317), + 29: uint16(29674), + 30: uint16(22411), + 31: uint16(22865), + 32: uint16(24418), + 33: uint16(24452), + 34: uint16(24693), + 35: uint16(24950), + 36: uint16(24935), + 37: uint16(25001), + 38: uint16(25522), + 39: uint16(25658), + 40: uint16(25964), + 41: uint16(26223), + 42: uint16(26690), + 43: uint16(28179), + 44: uint16(30054), + 45: uint16(31293), + 46: uint16(31995), + 47: uint16(32076), + 48: uint16(32153), + 49: uint16(32331), + 50: uint16(32619), + 51: uint16(33550), + 52: uint16(33610), + 53: uint16(34509), + 54: uint16(35336), + 55: uint16(35427), + 56: uint16(35686), + 57: uint16(36605), + 58: uint16(38938), + 59: uint16(40335), + 60: uint16(33464), + 61: uint16(36814), + 62: uint16(39912), + 63: uint16(21127), + 64: uint16(25119), + 65: uint16(25731), + 66: uint16(28608), + 67: uint16(38553), + 68: uint16(26689), + 69: uint16(20625), + 70: uint16(27424), + 71: uint16(27770), + 72: uint16(28500), + 73: uint16(31348), + 74: uint16(32080), + 75: uint16(34880), + 76: uint16(35363), + 77: uint16(26376), + 78: uint16(20214), + 79: uint16(20537), + 80: uint16(20518), + 81: uint16(20581), + 82: uint16(20860), + 83: uint16(21048), + 84: uint16(21091), + 85: uint16(21927), + 86: uint16(22287), + 87: uint16(22533), + 88: uint16(23244), + 89: uint16(24314), + 90: uint16(25010), + 91: uint16(25080), + 92: uint16(25331), + 93: uint16(25458), + }, + 23: { + 0: uint16(26908), + 1: uint16(27177), + 2: uint16(29309), + 3: uint16(29356), + 4: uint16(29486), + 5: uint16(30740), + 6: uint16(30831), + 7: uint16(32121), + 8: uint16(30476), + 9: uint16(32937), + 10: uint16(35211), + 11: uint16(35609), + 12: uint16(36066), + 13: uint16(36562), + 14: uint16(36963), + 15: uint16(37749), + 16: uint16(38522), + 17: uint16(38997), + 18: uint16(39443), + 19: uint16(40568), + 20: uint16(20803), + 21: uint16(21407), + 22: uint16(21427), + 23: uint16(24187), + 24: uint16(24358), + 25: uint16(28187), + 26: uint16(28304), + 27: uint16(29572), + 28: uint16(29694), + 29: uint16(32067), + 30: uint16(33335), + 31: uint16(35328), + 32: uint16(35578), + 33: uint16(38480), + 34: uint16(20046), + 35: uint16(20491), + 36: uint16(21476), + 37: uint16(21628), + 38: uint16(22266), + 39: uint16(22993), + 40: uint16(23396), + 41: uint16(24049), + 42: uint16(24235), + 43: uint16(24359), + 44: uint16(25144), + 45: uint16(25925), + 46: uint16(26543), + 47: uint16(28246), + 48: uint16(29392), + 49: uint16(31946), + 50: uint16(34996), + 51: uint16(32929), + 52: uint16(32993), + 53: uint16(33776), + 54: uint16(34382), + 55: uint16(35463), + 56: uint16(36328), + 57: uint16(37431), + 58: uint16(38599), + 59: uint16(39015), + 60: uint16(40723), + 61: uint16(20116), + 62: uint16(20114), + 63: uint16(20237), + 64: uint16(21320), + 65: uint16(21577), + 66: uint16(21566), + 67: uint16(23087), + 68: uint16(24460), + 69: uint16(24481), + 70: uint16(24735), + 71: uint16(26791), + 72: uint16(27278), + 73: uint16(29786), + 74: uint16(30849), + 75: uint16(35486), + 76: uint16(35492), + 77: uint16(35703), + 78: uint16(37264), + 79: uint16(20062), + 80: uint16(39881), + 81: uint16(20132), + 82: uint16(20348), + 83: uint16(20399), + 84: uint16(20505), + 85: uint16(20502), + 86: uint16(20809), + 87: uint16(20844), + 88: uint16(21151), + 89: uint16(21177), + 90: uint16(21246), + 91: uint16(21402), + 92: uint16(21475), + 93: uint16(21521), + }, + 24: { + 0: uint16(21518), + 1: uint16(21897), + 2: uint16(22353), + 3: uint16(22434), + 4: uint16(22909), + 5: uint16(23380), + 6: uint16(23389), + 7: uint16(23439), + 8: uint16(24037), + 9: uint16(24039), + 10: uint16(24055), + 11: uint16(24184), + 12: uint16(24195), + 13: uint16(24218), + 14: uint16(24247), + 15: uint16(24344), + 16: uint16(24658), + 17: uint16(24908), + 18: uint16(25239), + 19: uint16(25304), + 20: uint16(25511), + 21: uint16(25915), + 22: uint16(26114), + 23: uint16(26179), + 24: uint16(26356), + 25: uint16(26477), + 26: uint16(26657), + 27: uint16(26775), + 28: uint16(27083), + 29: uint16(27743), + 30: uint16(27946), + 31: uint16(28009), + 32: uint16(28207), + 33: uint16(28317), + 34: uint16(30002), + 35: uint16(30343), + 36: uint16(30828), + 37: uint16(31295), + 38: uint16(31968), + 39: uint16(32005), + 40: uint16(32024), + 41: uint16(32094), + 42: uint16(32177), + 43: uint16(32789), + 44: uint16(32771), + 45: uint16(32943), + 46: uint16(32945), + 47: uint16(33108), + 48: uint16(33167), + 49: uint16(33322), + 50: uint16(33618), + 51: uint16(34892), + 52: uint16(34913), + 53: uint16(35611), + 54: uint16(36002), + 55: uint16(36092), + 56: uint16(37066), + 57: uint16(37237), + 58: uint16(37489), + 59: uint16(30783), + 60: uint16(37628), + 61: uint16(38308), + 62: uint16(38477), + 63: uint16(38917), + 64: uint16(39321), + 65: uint16(39640), + 66: uint16(40251), + 67: uint16(21083), + 68: uint16(21163), + 69: uint16(21495), + 70: uint16(21512), + 71: uint16(22741), + 72: uint16(25335), + 73: uint16(28640), + 74: uint16(35946), + 75: uint16(36703), + 76: uint16(40633), + 77: uint16(20811), + 78: uint16(21051), + 79: uint16(21578), + 80: uint16(22269), + 81: uint16(31296), + 82: uint16(37239), + 83: uint16(40288), + 84: uint16(40658), + 85: uint16(29508), + 86: uint16(28425), + 87: uint16(33136), + 88: uint16(29969), + 89: uint16(24573), + 90: uint16(24794), + 91: uint16(39592), + 92: uint16(29403), + 93: uint16(36796), + }, + 25: { + 0: uint16(27492), + 1: uint16(38915), + 2: uint16(20170), + 3: uint16(22256), + 4: uint16(22372), + 5: uint16(22718), + 6: uint16(23130), + 7: uint16(24680), + 8: uint16(25031), + 9: uint16(26127), + 10: uint16(26118), + 11: uint16(26681), + 12: uint16(26801), + 13: uint16(28151), + 14: uint16(30165), + 15: uint16(32058), + 16: uint16(33390), + 17: uint16(39746), + 18: uint16(20123), + 19: uint16(20304), + 20: uint16(21449), + 21: uint16(21766), + 22: uint16(23919), + 23: uint16(24038), + 24: uint16(24046), + 25: uint16(26619), + 26: uint16(27801), + 27: uint16(29811), + 28: uint16(30722), + 29: uint16(35408), + 30: uint16(37782), + 31: uint16(35039), + 32: uint16(22352), + 33: uint16(24231), + 34: uint16(25387), + 35: uint16(20661), + 36: uint16(20652), + 37: uint16(20877), + 38: uint16(26368), + 39: uint16(21705), + 40: uint16(22622), + 41: uint16(22971), + 42: uint16(23472), + 43: uint16(24425), + 44: uint16(25165), + 45: uint16(25505), + 46: uint16(26685), + 47: uint16(27507), + 48: uint16(28168), + 49: uint16(28797), + 50: uint16(37319), + 51: uint16(29312), + 52: uint16(30741), + 53: uint16(30758), + 54: uint16(31085), + 55: uint16(25998), + 56: uint16(32048), + 57: uint16(33756), + 58: uint16(35009), + 59: uint16(36617), + 60: uint16(38555), + 61: uint16(21092), + 62: uint16(22312), + 63: uint16(26448), + 64: uint16(32618), + 65: uint16(36001), + 66: uint16(20916), + 67: uint16(22338), + 68: uint16(38442), + 69: uint16(22586), + 70: uint16(27018), + 71: uint16(32948), + 72: uint16(21682), + 73: uint16(23822), + 74: uint16(22524), + 75: uint16(30869), + 76: uint16(40442), + 77: uint16(20316), + 78: uint16(21066), + 79: uint16(21643), + 80: uint16(25662), + 81: uint16(26152), + 82: uint16(26388), + 83: uint16(26613), + 84: uint16(31364), + 85: uint16(31574), + 86: uint16(32034), + 87: uint16(37679), + 88: uint16(26716), + 89: uint16(39853), + 90: uint16(31545), + 91: uint16(21273), + 92: uint16(20874), + 93: uint16(21047), + }, + 26: { + 0: uint16(23519), + 1: uint16(25334), + 2: uint16(25774), + 3: uint16(25830), + 4: uint16(26413), + 5: uint16(27578), + 6: uint16(34217), + 7: uint16(38609), + 8: uint16(30352), + 9: uint16(39894), + 10: uint16(25420), + 11: uint16(37638), + 12: uint16(39851), + 13: uint16(30399), + 14: uint16(26194), + 15: uint16(19977), + 16: uint16(20632), + 17: uint16(21442), + 18: uint16(23665), + 19: uint16(24808), + 20: uint16(25746), + 21: uint16(25955), + 22: uint16(26719), + 23: uint16(29158), + 24: uint16(29642), + 25: uint16(29987), + 26: uint16(31639), + 27: uint16(32386), + 28: uint16(34453), + 29: uint16(35715), + 30: uint16(36059), + 31: uint16(37240), + 32: uint16(39184), + 33: uint16(26028), + 34: uint16(26283), + 35: uint16(27531), + 36: uint16(20181), + 37: uint16(20180), + 38: uint16(20282), + 39: uint16(20351), + 40: uint16(21050), + 41: uint16(21496), + 42: uint16(21490), + 43: uint16(21987), + 44: uint16(22235), + 45: uint16(22763), + 46: uint16(22987), + 47: uint16(22985), + 48: uint16(23039), + 49: uint16(23376), + 50: uint16(23629), + 51: uint16(24066), + 52: uint16(24107), + 53: uint16(24535), + 54: uint16(24605), + 55: uint16(25351), + 56: uint16(25903), + 57: uint16(23388), + 58: uint16(26031), + 59: uint16(26045), + 60: uint16(26088), + 61: uint16(26525), + 62: uint16(27490), + 63: uint16(27515), + 64: uint16(27663), + 65: uint16(29509), + 66: uint16(31049), + 67: uint16(31169), + 68: uint16(31992), + 69: uint16(32025), + 70: uint16(32043), + 71: uint16(32930), + 72: uint16(33026), + 73: uint16(33267), + 74: uint16(35222), + 75: uint16(35422), + 76: uint16(35433), + 77: uint16(35430), + 78: uint16(35468), + 79: uint16(35566), + 80: uint16(36039), + 81: uint16(36060), + 82: uint16(38604), + 83: uint16(39164), + 84: uint16(27503), + 85: uint16(20107), + 86: uint16(20284), + 87: uint16(20365), + 88: uint16(20816), + 89: uint16(23383), + 90: uint16(23546), + 91: uint16(24904), + 92: uint16(25345), + 93: uint16(26178), + }, + 27: { + 0: uint16(27425), + 1: uint16(28363), + 2: uint16(27835), + 3: uint16(29246), + 4: uint16(29885), + 5: uint16(30164), + 6: uint16(30913), + 7: uint16(31034), + 8: uint16(32780), + 9: uint16(32819), + 10: uint16(33258), + 11: uint16(33940), + 12: uint16(36766), + 13: uint16(27728), + 14: uint16(40575), + 15: uint16(24335), + 16: uint16(35672), + 17: uint16(40235), + 18: uint16(31482), + 19: uint16(36600), + 20: uint16(23437), + 21: uint16(38635), + 22: uint16(19971), + 23: uint16(21489), + 24: uint16(22519), + 25: uint16(22833), + 26: uint16(23241), + 27: uint16(23460), + 28: uint16(24713), + 29: uint16(28287), + 30: uint16(28422), + 31: uint16(30142), + 32: uint16(36074), + 33: uint16(23455), + 34: uint16(34048), + 35: uint16(31712), + 36: uint16(20594), + 37: uint16(26612), + 38: uint16(33437), + 39: uint16(23649), + 40: uint16(34122), + 41: uint16(32286), + 42: uint16(33294), + 43: uint16(20889), + 44: uint16(23556), + 45: uint16(25448), + 46: uint16(36198), + 47: uint16(26012), + 48: uint16(29038), + 49: uint16(31038), + 50: uint16(32023), + 51: uint16(32773), + 52: uint16(35613), + 53: uint16(36554), + 54: uint16(36974), + 55: uint16(34503), + 56: uint16(37034), + 57: uint16(20511), + 58: uint16(21242), + 59: uint16(23610), + 60: uint16(26451), + 61: uint16(28796), + 62: uint16(29237), + 63: uint16(37196), + 64: uint16(37320), + 65: uint16(37675), + 66: uint16(33509), + 67: uint16(23490), + 68: uint16(24369), + 69: uint16(24825), + 70: uint16(20027), + 71: uint16(21462), + 72: uint16(23432), + 73: uint16(25163), + 74: uint16(26417), + 75: uint16(27530), + 76: uint16(29417), + 77: uint16(29664), + 78: uint16(31278), + 79: uint16(33131), + 80: uint16(36259), + 81: uint16(37202), + 82: uint16(39318), + 83: uint16(20754), + 84: uint16(21463), + 85: uint16(21610), + 86: uint16(23551), + 87: uint16(25480), + 88: uint16(27193), + 89: uint16(32172), + 90: uint16(38656), + 91: uint16(22234), + 92: uint16(21454), + 93: uint16(21608), + }, + 28: { + 0: uint16(23447), + 1: uint16(23601), + 2: uint16(24030), + 3: uint16(20462), + 4: uint16(24833), + 5: uint16(25342), + 6: uint16(27954), + 7: uint16(31168), + 8: uint16(31179), + 9: uint16(32066), + 10: uint16(32333), + 11: uint16(32722), + 12: uint16(33261), + 13: uint16(33311), + 14: uint16(33936), + 15: uint16(34886), + 16: uint16(35186), + 17: uint16(35728), + 18: uint16(36468), + 19: uint16(36655), + 20: uint16(36913), + 21: uint16(37195), + 22: uint16(37228), + 23: uint16(38598), + 24: uint16(37276), + 25: uint16(20160), + 26: uint16(20303), + 27: uint16(20805), + 28: uint16(21313), + 29: uint16(24467), + 30: uint16(25102), + 31: uint16(26580), + 32: uint16(27713), + 33: uint16(28171), + 34: uint16(29539), + 35: uint16(32294), + 36: uint16(37325), + 37: uint16(37507), + 38: uint16(21460), + 39: uint16(22809), + 40: uint16(23487), + 41: uint16(28113), + 42: uint16(31069), + 43: uint16(32302), + 44: uint16(31899), + 45: uint16(22654), + 46: uint16(29087), + 47: uint16(20986), + 48: uint16(34899), + 49: uint16(36848), + 50: uint16(20426), + 51: uint16(23803), + 52: uint16(26149), + 53: uint16(30636), + 54: uint16(31459), + 55: uint16(33308), + 56: uint16(39423), + 57: uint16(20934), + 58: uint16(24490), + 59: uint16(26092), + 60: uint16(26991), + 61: uint16(27529), + 62: uint16(28147), + 63: uint16(28310), + 64: uint16(28516), + 65: uint16(30462), + 66: uint16(32020), + 67: uint16(24033), + 68: uint16(36981), + 69: uint16(37255), + 70: uint16(38918), + 71: uint16(20966), + 72: uint16(21021), + 73: uint16(25152), + 74: uint16(26257), + 75: uint16(26329), + 76: uint16(28186), + 77: uint16(24246), + 78: uint16(32210), + 79: uint16(32626), + 80: uint16(26360), + 81: uint16(34223), + 82: uint16(34295), + 83: uint16(35576), + 84: uint16(21161), + 85: uint16(21465), + 86: uint16(22899), + 87: uint16(24207), + 88: uint16(24464), + 89: uint16(24661), + 90: uint16(37604), + 91: uint16(38500), + 92: uint16(20663), + 93: uint16(20767), + }, + 29: { + 0: uint16(21213), + 1: uint16(21280), + 2: uint16(21319), + 3: uint16(21484), + 4: uint16(21736), + 5: uint16(21830), + 6: uint16(21809), + 7: uint16(22039), + 8: uint16(22888), + 9: uint16(22974), + 10: uint16(23100), + 11: uint16(23477), + 12: uint16(23558), + 13: uint16(23567), + 14: uint16(23569), + 15: uint16(23578), + 16: uint16(24196), + 17: uint16(24202), + 18: uint16(24288), + 19: uint16(24432), + 20: uint16(25215), + 21: uint16(25220), + 22: uint16(25307), + 23: uint16(25484), + 24: uint16(25463), + 25: uint16(26119), + 26: uint16(26124), + 27: uint16(26157), + 28: uint16(26230), + 29: uint16(26494), + 30: uint16(26786), + 31: uint16(27167), + 32: uint16(27189), + 33: uint16(27836), + 34: uint16(28040), + 35: uint16(28169), + 36: uint16(28248), + 37: uint16(28988), + 38: uint16(28966), + 39: uint16(29031), + 40: uint16(30151), + 41: uint16(30465), + 42: uint16(30813), + 43: uint16(30977), + 44: uint16(31077), + 45: uint16(31216), + 46: uint16(31456), + 47: uint16(31505), + 48: uint16(31911), + 49: uint16(32057), + 50: uint16(32918), + 51: uint16(33750), + 52: uint16(33931), + 53: uint16(34121), + 54: uint16(34909), + 55: uint16(35059), + 56: uint16(35359), + 57: uint16(35388), + 58: uint16(35412), + 59: uint16(35443), + 60: uint16(35937), + 61: uint16(36062), + 62: uint16(37284), + 63: uint16(37478), + 64: uint16(37758), + 65: uint16(37912), + 66: uint16(38556), + 67: uint16(38808), + 68: uint16(19978), + 69: uint16(19976), + 70: uint16(19998), + 71: uint16(20055), + 72: uint16(20887), + 73: uint16(21104), + 74: uint16(22478), + 75: uint16(22580), + 76: uint16(22732), + 77: uint16(23330), + 78: uint16(24120), + 79: uint16(24773), + 80: uint16(25854), + 81: uint16(26465), + 82: uint16(26454), + 83: uint16(27972), + 84: uint16(29366), + 85: uint16(30067), + 86: uint16(31331), + 87: uint16(33976), + 88: uint16(35698), + 89: uint16(37304), + 90: uint16(37664), + 91: uint16(22065), + 92: uint16(22516), + 93: uint16(39166), + }, + 30: { + 0: uint16(25325), + 1: uint16(26893), + 2: uint16(27542), + 3: uint16(29165), + 4: uint16(32340), + 5: uint16(32887), + 6: uint16(33394), + 7: uint16(35302), + 8: uint16(39135), + 9: uint16(34645), + 10: uint16(36785), + 11: uint16(23611), + 12: uint16(20280), + 13: uint16(20449), + 14: uint16(20405), + 15: uint16(21767), + 16: uint16(23072), + 17: uint16(23517), + 18: uint16(23529), + 19: uint16(24515), + 20: uint16(24910), + 21: uint16(25391), + 22: uint16(26032), + 23: uint16(26187), + 24: uint16(26862), + 25: uint16(27035), + 26: uint16(28024), + 27: uint16(28145), + 28: uint16(30003), + 29: uint16(30137), + 30: uint16(30495), + 31: uint16(31070), + 32: uint16(31206), + 33: uint16(32051), + 34: uint16(33251), + 35: uint16(33455), + 36: uint16(34218), + 37: uint16(35242), + 38: uint16(35386), + 39: uint16(36523), + 40: uint16(36763), + 41: uint16(36914), + 42: uint16(37341), + 43: uint16(38663), + 44: uint16(20154), + 45: uint16(20161), + 46: uint16(20995), + 47: uint16(22645), + 48: uint16(22764), + 49: uint16(23563), + 50: uint16(29978), + 51: uint16(23613), + 52: uint16(33102), + 53: uint16(35338), + 54: uint16(36805), + 55: uint16(38499), + 56: uint16(38765), + 57: uint16(31525), + 58: uint16(35535), + 59: uint16(38920), + 60: uint16(37218), + 61: uint16(22259), + 62: uint16(21416), + 63: uint16(36887), + 64: uint16(21561), + 65: uint16(22402), + 66: uint16(24101), + 67: uint16(25512), + 68: uint16(27700), + 69: uint16(28810), + 70: uint16(30561), + 71: uint16(31883), + 72: uint16(32736), + 73: uint16(34928), + 74: uint16(36930), + 75: uint16(37204), + 76: uint16(37648), + 77: uint16(37656), + 78: uint16(38543), + 79: uint16(29790), + 80: uint16(39620), + 81: uint16(23815), + 82: uint16(23913), + 83: uint16(25968), + 84: uint16(26530), + 85: uint16(36264), + 86: uint16(38619), + 87: uint16(25454), + 88: uint16(26441), + 89: uint16(26905), + 90: uint16(33733), + 91: uint16(38935), + 92: uint16(38592), + 93: uint16(35070), + }, + 31: { + 0: uint16(28548), + 1: uint16(25722), + 2: uint16(23544), + 3: uint16(19990), + 4: uint16(28716), + 5: uint16(30045), + 6: uint16(26159), + 7: uint16(20932), + 8: uint16(21046), + 9: uint16(21218), + 10: uint16(22995), + 11: uint16(24449), + 12: uint16(24615), + 13: uint16(25104), + 14: uint16(25919), + 15: uint16(25972), + 16: uint16(26143), + 17: uint16(26228), + 18: uint16(26866), + 19: uint16(26646), + 20: uint16(27491), + 21: uint16(28165), + 22: uint16(29298), + 23: uint16(29983), + 24: uint16(30427), + 25: uint16(31934), + 26: uint16(32854), + 27: uint16(22768), + 28: uint16(35069), + 29: uint16(35199), + 30: uint16(35488), + 31: uint16(35475), + 32: uint16(35531), + 33: uint16(36893), + 34: uint16(37266), + 35: uint16(38738), + 36: uint16(38745), + 37: uint16(25993), + 38: uint16(31246), + 39: uint16(33030), + 40: uint16(38587), + 41: uint16(24109), + 42: uint16(24796), + 43: uint16(25114), + 44: uint16(26021), + 45: uint16(26132), + 46: uint16(26512), + 47: uint16(30707), + 48: uint16(31309), + 49: uint16(31821), + 50: uint16(32318), + 51: uint16(33034), + 52: uint16(36012), + 53: uint16(36196), + 54: uint16(36321), + 55: uint16(36447), + 56: uint16(30889), + 57: uint16(20999), + 58: uint16(25305), + 59: uint16(25509), + 60: uint16(25666), + 61: uint16(25240), + 62: uint16(35373), + 63: uint16(31363), + 64: uint16(31680), + 65: uint16(35500), + 66: uint16(38634), + 67: uint16(32118), + 68: uint16(33292), + 69: uint16(34633), + 70: uint16(20185), + 71: uint16(20808), + 72: uint16(21315), + 73: uint16(21344), + 74: uint16(23459), + 75: uint16(23554), + 76: uint16(23574), + 77: uint16(24029), + 78: uint16(25126), + 79: uint16(25159), + 80: uint16(25776), + 81: uint16(26643), + 82: uint16(26676), + 83: uint16(27849), + 84: uint16(27973), + 85: uint16(27927), + 86: uint16(26579), + 87: uint16(28508), + 88: uint16(29006), + 89: uint16(29053), + 90: uint16(26059), + 91: uint16(31359), + 92: uint16(31661), + 93: uint16(32218), + }, + 32: { + 0: uint16(32330), + 1: uint16(32680), + 2: uint16(33146), + 3: uint16(33307), + 4: uint16(33337), + 5: uint16(34214), + 6: uint16(35438), + 7: uint16(36046), + 8: uint16(36341), + 9: uint16(36984), + 10: uint16(36983), + 11: uint16(37549), + 12: uint16(37521), + 13: uint16(38275), + 14: uint16(39854), + 15: uint16(21069), + 16: uint16(21892), + 17: uint16(28472), + 18: uint16(28982), + 19: uint16(20840), + 20: uint16(31109), + 21: uint16(32341), + 22: uint16(33203), + 23: uint16(31950), + 24: uint16(22092), + 25: uint16(22609), + 26: uint16(23720), + 27: uint16(25514), + 28: uint16(26366), + 29: uint16(26365), + 30: uint16(26970), + 31: uint16(29401), + 32: uint16(30095), + 33: uint16(30094), + 34: uint16(30990), + 35: uint16(31062), + 36: uint16(31199), + 37: uint16(31895), + 38: uint16(32032), + 39: uint16(32068), + 40: uint16(34311), + 41: uint16(35380), + 42: uint16(38459), + 43: uint16(36961), + 44: uint16(40736), + 45: uint16(20711), + 46: uint16(21109), + 47: uint16(21452), + 48: uint16(21474), + 49: uint16(20489), + 50: uint16(21930), + 51: uint16(22766), + 52: uint16(22863), + 53: uint16(29245), + 54: uint16(23435), + 55: uint16(23652), + 56: uint16(21277), + 57: uint16(24803), + 58: uint16(24819), + 59: uint16(25436), + 60: uint16(25475), + 61: uint16(25407), + 62: uint16(25531), + 63: uint16(25805), + 64: uint16(26089), + 65: uint16(26361), + 66: uint16(24035), + 67: uint16(27085), + 68: uint16(27133), + 69: uint16(28437), + 70: uint16(29157), + 71: uint16(20105), + 72: uint16(30185), + 73: uint16(30456), + 74: uint16(31379), + 75: uint16(31967), + 76: uint16(32207), + 77: uint16(32156), + 78: uint16(32865), + 79: uint16(33609), + 80: uint16(33624), + 81: uint16(33900), + 82: uint16(33980), + 83: uint16(34299), + 84: uint16(35013), + 85: uint16(36208), + 86: uint16(36865), + 87: uint16(36973), + 88: uint16(37783), + 89: uint16(38684), + 90: uint16(39442), + 91: uint16(20687), + 92: uint16(22679), + 93: uint16(24974), + }, + 33: { + 0: uint16(33235), + 1: uint16(34101), + 2: uint16(36104), + 3: uint16(36896), + 4: uint16(20419), + 5: uint16(20596), + 6: uint16(21063), + 7: uint16(21363), + 8: uint16(24687), + 9: uint16(25417), + 10: uint16(26463), + 11: uint16(28204), + 12: uint16(36275), + 13: uint16(36895), + 14: uint16(20439), + 15: uint16(23646), + 16: uint16(36042), + 17: uint16(26063), + 18: uint16(32154), + 19: uint16(21330), + 20: uint16(34966), + 21: uint16(20854), + 22: uint16(25539), + 23: uint16(23384), + 24: uint16(23403), + 25: uint16(23562), + 26: uint16(25613), + 27: uint16(26449), + 28: uint16(36956), + 29: uint16(20182), + 30: uint16(22810), + 31: uint16(22826), + 32: uint16(27760), + 33: uint16(35409), + 34: uint16(21822), + 35: uint16(22549), + 36: uint16(22949), + 37: uint16(24816), + 38: uint16(25171), + 39: uint16(26561), + 40: uint16(33333), + 41: uint16(26965), + 42: uint16(38464), + 43: uint16(39364), + 44: uint16(39464), + 45: uint16(20307), + 46: uint16(22534), + 47: uint16(23550), + 48: uint16(32784), + 49: uint16(23729), + 50: uint16(24111), + 51: uint16(24453), + 52: uint16(24608), + 53: uint16(24907), + 54: uint16(25140), + 55: uint16(26367), + 56: uint16(27888), + 57: uint16(28382), + 58: uint16(32974), + 59: uint16(33151), + 60: uint16(33492), + 61: uint16(34955), + 62: uint16(36024), + 63: uint16(36864), + 64: uint16(36910), + 65: uint16(38538), + 66: uint16(40667), + 67: uint16(39899), + 68: uint16(20195), + 69: uint16(21488), + 70: uint16(22823), + 71: uint16(31532), + 72: uint16(37261), + 73: uint16(38988), + 74: uint16(40441), + 75: uint16(28381), + 76: uint16(28711), + 77: uint16(21331), + 78: uint16(21828), + 79: uint16(23429), + 80: uint16(25176), + 81: uint16(25246), + 82: uint16(25299), + 83: uint16(27810), + 84: uint16(28655), + 85: uint16(29730), + 86: uint16(35351), + 87: uint16(37944), + 88: uint16(28609), + 89: uint16(35582), + 90: uint16(33592), + 91: uint16(20967), + 92: uint16(34552), + 93: uint16(21482), + }, + 34: { + 0: uint16(21481), + 1: uint16(20294), + 2: uint16(36948), + 3: uint16(36784), + 4: uint16(22890), + 5: uint16(33073), + 6: uint16(24061), + 7: uint16(31466), + 8: uint16(36799), + 9: uint16(26842), + 10: uint16(35895), + 11: uint16(29432), + 12: uint16(40008), + 13: uint16(27197), + 14: uint16(35504), + 15: uint16(20025), + 16: uint16(21336), + 17: uint16(22022), + 18: uint16(22374), + 19: uint16(25285), + 20: uint16(25506), + 21: uint16(26086), + 22: uint16(27470), + 23: uint16(28129), + 24: uint16(28251), + 25: uint16(28845), + 26: uint16(30701), + 27: uint16(31471), + 28: uint16(31658), + 29: uint16(32187), + 30: uint16(32829), + 31: uint16(32966), + 32: uint16(34507), + 33: uint16(35477), + 34: uint16(37723), + 35: uint16(22243), + 36: uint16(22727), + 37: uint16(24382), + 38: uint16(26029), + 39: uint16(26262), + 40: uint16(27264), + 41: uint16(27573), + 42: uint16(30007), + 43: uint16(35527), + 44: uint16(20516), + 45: uint16(30693), + 46: uint16(22320), + 47: uint16(24347), + 48: uint16(24677), + 49: uint16(26234), + 50: uint16(27744), + 51: uint16(30196), + 52: uint16(31258), + 53: uint16(32622), + 54: uint16(33268), + 55: uint16(34584), + 56: uint16(36933), + 57: uint16(39347), + 58: uint16(31689), + 59: uint16(30044), + 60: uint16(31481), + 61: uint16(31569), + 62: uint16(33988), + 63: uint16(36880), + 64: uint16(31209), + 65: uint16(31378), + 66: uint16(33590), + 67: uint16(23265), + 68: uint16(30528), + 69: uint16(20013), + 70: uint16(20210), + 71: uint16(23449), + 72: uint16(24544), + 73: uint16(25277), + 74: uint16(26172), + 75: uint16(26609), + 76: uint16(27880), + 77: uint16(34411), + 78: uint16(34935), + 79: uint16(35387), + 80: uint16(37198), + 81: uint16(37619), + 82: uint16(39376), + 83: uint16(27159), + 84: uint16(28710), + 85: uint16(29482), + 86: uint16(33511), + 87: uint16(33879), + 88: uint16(36015), + 89: uint16(19969), + 90: uint16(20806), + 91: uint16(20939), + 92: uint16(21899), + 93: uint16(23541), + }, + 35: { + 0: uint16(24086), + 1: uint16(24115), + 2: uint16(24193), + 3: uint16(24340), + 4: uint16(24373), + 5: uint16(24427), + 6: uint16(24500), + 7: uint16(25074), + 8: uint16(25361), + 9: uint16(26274), + 10: uint16(26397), + 11: uint16(28526), + 12: uint16(29266), + 13: uint16(30010), + 14: uint16(30522), + 15: uint16(32884), + 16: uint16(33081), + 17: uint16(33144), + 18: uint16(34678), + 19: uint16(35519), + 20: uint16(35548), + 21: uint16(36229), + 22: uint16(36339), + 23: uint16(37530), + 24: uint16(38263), + 25: uint16(38914), + 26: uint16(40165), + 27: uint16(21189), + 28: uint16(25431), + 29: uint16(30452), + 30: uint16(26389), + 31: uint16(27784), + 32: uint16(29645), + 33: uint16(36035), + 34: uint16(37806), + 35: uint16(38515), + 36: uint16(27941), + 37: uint16(22684), + 38: uint16(26894), + 39: uint16(27084), + 40: uint16(36861), + 41: uint16(37786), + 42: uint16(30171), + 43: uint16(36890), + 44: uint16(22618), + 45: uint16(26626), + 46: uint16(25524), + 47: uint16(27131), + 48: uint16(20291), + 49: uint16(28460), + 50: uint16(26584), + 51: uint16(36795), + 52: uint16(34086), + 53: uint16(32180), + 54: uint16(37716), + 55: uint16(26943), + 56: uint16(28528), + 57: uint16(22378), + 58: uint16(22775), + 59: uint16(23340), + 60: uint16(32044), + 61: uint16(29226), + 62: uint16(21514), + 63: uint16(37347), + 64: uint16(40372), + 65: uint16(20141), + 66: uint16(20302), + 67: uint16(20572), + 68: uint16(20597), + 69: uint16(21059), + 70: uint16(35998), + 71: uint16(21576), + 72: uint16(22564), + 73: uint16(23450), + 74: uint16(24093), + 75: uint16(24213), + 76: uint16(24237), + 77: uint16(24311), + 78: uint16(24351), + 79: uint16(24716), + 80: uint16(25269), + 81: uint16(25402), + 82: uint16(25552), + 83: uint16(26799), + 84: uint16(27712), + 85: uint16(30855), + 86: uint16(31118), + 87: uint16(31243), + 88: uint16(32224), + 89: uint16(33351), + 90: uint16(35330), + 91: uint16(35558), + 92: uint16(36420), + 93: uint16(36883), + }, + 36: { + 0: uint16(37048), + 1: uint16(37165), + 2: uint16(37336), + 3: uint16(40718), + 4: uint16(27877), + 5: uint16(25688), + 6: uint16(25826), + 7: uint16(25973), + 8: uint16(28404), + 9: uint16(30340), + 10: uint16(31515), + 11: uint16(36969), + 12: uint16(37841), + 13: uint16(28346), + 14: uint16(21746), + 15: uint16(24505), + 16: uint16(25764), + 17: uint16(36685), + 18: uint16(36845), + 19: uint16(37444), + 20: uint16(20856), + 21: uint16(22635), + 22: uint16(22825), + 23: uint16(23637), + 24: uint16(24215), + 25: uint16(28155), + 26: uint16(32399), + 27: uint16(29980), + 28: uint16(36028), + 29: uint16(36578), + 30: uint16(39003), + 31: uint16(28857), + 32: uint16(20253), + 33: uint16(27583), + 34: uint16(28593), + 35: uint16(30000), + 36: uint16(38651), + 37: uint16(20814), + 38: uint16(21520), + 39: uint16(22581), + 40: uint16(22615), + 41: uint16(22956), + 42: uint16(23648), + 43: uint16(24466), + 44: uint16(26007), + 45: uint16(26460), + 46: uint16(28193), + 47: uint16(30331), + 48: uint16(33759), + 49: uint16(36077), + 50: uint16(36884), + 51: uint16(37117), + 52: uint16(37709), + 53: uint16(30757), + 54: uint16(30778), + 55: uint16(21162), + 56: uint16(24230), + 57: uint16(22303), + 58: uint16(22900), + 59: uint16(24594), + 60: uint16(20498), + 61: uint16(20826), + 62: uint16(20908), + 63: uint16(20941), + 64: uint16(20992), + 65: uint16(21776), + 66: uint16(22612), + 67: uint16(22616), + 68: uint16(22871), + 69: uint16(23445), + 70: uint16(23798), + 71: uint16(23947), + 72: uint16(24764), + 73: uint16(25237), + 74: uint16(25645), + 75: uint16(26481), + 76: uint16(26691), + 77: uint16(26812), + 78: uint16(26847), + 79: uint16(30423), + 80: uint16(28120), + 81: uint16(28271), + 82: uint16(28059), + 83: uint16(28783), + 84: uint16(29128), + 85: uint16(24403), + 86: uint16(30168), + 87: uint16(31095), + 88: uint16(31561), + 89: uint16(31572), + 90: uint16(31570), + 91: uint16(31958), + 92: uint16(32113), + 93: uint16(21040), + }, + 37: { + 0: uint16(33891), + 1: uint16(34153), + 2: uint16(34276), + 3: uint16(35342), + 4: uint16(35588), + 5: uint16(35910), + 6: uint16(36367), + 7: uint16(36867), + 8: uint16(36879), + 9: uint16(37913), + 10: uint16(38518), + 11: uint16(38957), + 12: uint16(39472), + 13: uint16(38360), + 14: uint16(20685), + 15: uint16(21205), + 16: uint16(21516), + 17: uint16(22530), + 18: uint16(23566), + 19: uint16(24999), + 20: uint16(25758), + 21: uint16(27934), + 22: uint16(30643), + 23: uint16(31461), + 24: uint16(33012), + 25: uint16(33796), + 26: uint16(36947), + 27: uint16(37509), + 28: uint16(23776), + 29: uint16(40199), + 30: uint16(21311), + 31: uint16(24471), + 32: uint16(24499), + 33: uint16(28060), + 34: uint16(29305), + 35: uint16(30563), + 36: uint16(31167), + 37: uint16(31716), + 38: uint16(27602), + 39: uint16(29420), + 40: uint16(35501), + 41: uint16(26627), + 42: uint16(27233), + 43: uint16(20984), + 44: uint16(31361), + 45: uint16(26932), + 46: uint16(23626), + 47: uint16(40182), + 48: uint16(33515), + 49: uint16(23493), + 50: uint16(37193), + 51: uint16(28702), + 52: uint16(22136), + 53: uint16(23663), + 54: uint16(24775), + 55: uint16(25958), + 56: uint16(27788), + 57: uint16(35930), + 58: uint16(36929), + 59: uint16(38931), + 60: uint16(21585), + 61: uint16(26311), + 62: uint16(37389), + 63: uint16(22856), + 64: uint16(37027), + 65: uint16(20869), + 66: uint16(20045), + 67: uint16(20970), + 68: uint16(34201), + 69: uint16(35598), + 70: uint16(28760), + 71: uint16(25466), + 72: uint16(37707), + 73: uint16(26978), + 74: uint16(39348), + 75: uint16(32260), + 76: uint16(30071), + 77: uint16(21335), + 78: uint16(26976), + 79: uint16(36575), + 80: uint16(38627), + 81: uint16(27741), + 82: uint16(20108), + 83: uint16(23612), + 84: uint16(24336), + 85: uint16(36841), + 86: uint16(21250), + 87: uint16(36049), + 88: uint16(32905), + 89: uint16(34425), + 90: uint16(24319), + 91: uint16(26085), + 92: uint16(20083), + 93: uint16(20837), + }, + 38: { + 0: uint16(22914), + 1: uint16(23615), + 2: uint16(38894), + 3: uint16(20219), + 4: uint16(22922), + 5: uint16(24525), + 6: uint16(35469), + 7: uint16(28641), + 8: uint16(31152), + 9: uint16(31074), + 10: uint16(23527), + 11: uint16(33905), + 12: uint16(29483), + 13: uint16(29105), + 14: uint16(24180), + 15: uint16(24565), + 16: uint16(25467), + 17: uint16(25754), + 18: uint16(29123), + 19: uint16(31896), + 20: uint16(20035), + 21: uint16(24316), + 22: uint16(20043), + 23: uint16(22492), + 24: uint16(22178), + 25: uint16(24745), + 26: uint16(28611), + 27: uint16(32013), + 28: uint16(33021), + 29: uint16(33075), + 30: uint16(33215), + 31: uint16(36786), + 32: uint16(35223), + 33: uint16(34468), + 34: uint16(24052), + 35: uint16(25226), + 36: uint16(25773), + 37: uint16(35207), + 38: uint16(26487), + 39: uint16(27874), + 40: uint16(27966), + 41: uint16(29750), + 42: uint16(30772), + 43: uint16(23110), + 44: uint16(32629), + 45: uint16(33453), + 46: uint16(39340), + 47: uint16(20467), + 48: uint16(24259), + 49: uint16(25309), + 50: uint16(25490), + 51: uint16(25943), + 52: uint16(26479), + 53: uint16(30403), + 54: uint16(29260), + 55: uint16(32972), + 56: uint16(32954), + 57: uint16(36649), + 58: uint16(37197), + 59: uint16(20493), + 60: uint16(22521), + 61: uint16(23186), + 62: uint16(26757), + 63: uint16(26995), + 64: uint16(29028), + 65: uint16(29437), + 66: uint16(36023), + 67: uint16(22770), + 68: uint16(36064), + 69: uint16(38506), + 70: uint16(36889), + 71: uint16(34687), + 72: uint16(31204), + 73: uint16(30695), + 74: uint16(33833), + 75: uint16(20271), + 76: uint16(21093), + 77: uint16(21338), + 78: uint16(25293), + 79: uint16(26575), + 80: uint16(27850), + 81: uint16(30333), + 82: uint16(31636), + 83: uint16(31893), + 84: uint16(33334), + 85: uint16(34180), + 86: uint16(36843), + 87: uint16(26333), + 88: uint16(28448), + 89: uint16(29190), + 90: uint16(32283), + 91: uint16(33707), + 92: uint16(39361), + 93: uint16(40614), + }, + 39: { + 0: uint16(20989), + 1: uint16(31665), + 2: uint16(30834), + 3: uint16(31672), + 4: uint16(32903), + 5: uint16(31560), + 6: uint16(27368), + 7: uint16(24161), + 8: uint16(32908), + 9: uint16(30033), + 10: uint16(30048), + 11: uint16(20843), + 12: uint16(37474), + 13: uint16(28300), + 14: uint16(30330), + 15: uint16(37271), + 16: uint16(39658), + 17: uint16(20240), + 18: uint16(32624), + 19: uint16(25244), + 20: uint16(31567), + 21: uint16(38309), + 22: uint16(40169), + 23: uint16(22138), + 24: uint16(22617), + 25: uint16(34532), + 26: uint16(38588), + 27: uint16(20276), + 28: uint16(21028), + 29: uint16(21322), + 30: uint16(21453), + 31: uint16(21467), + 32: uint16(24070), + 33: uint16(25644), + 34: uint16(26001), + 35: uint16(26495), + 36: uint16(27710), + 37: uint16(27726), + 38: uint16(29256), + 39: uint16(29359), + 40: uint16(29677), + 41: uint16(30036), + 42: uint16(32321), + 43: uint16(33324), + 44: uint16(34281), + 45: uint16(36009), + 46: uint16(31684), + 47: uint16(37318), + 48: uint16(29033), + 49: uint16(38930), + 50: uint16(39151), + 51: uint16(25405), + 52: uint16(26217), + 53: uint16(30058), + 54: uint16(30436), + 55: uint16(30928), + 56: uint16(34115), + 57: uint16(34542), + 58: uint16(21290), + 59: uint16(21329), + 60: uint16(21542), + 61: uint16(22915), + 62: uint16(24199), + 63: uint16(24444), + 64: uint16(24754), + 65: uint16(25161), + 66: uint16(25209), + 67: uint16(25259), + 68: uint16(26000), + 69: uint16(27604), + 70: uint16(27852), + 71: uint16(30130), + 72: uint16(30382), + 73: uint16(30865), + 74: uint16(31192), + 75: uint16(32203), + 76: uint16(32631), + 77: uint16(32933), + 78: uint16(34987), + 79: uint16(35513), + 80: uint16(36027), + 81: uint16(36991), + 82: uint16(38750), + 83: uint16(39131), + 84: uint16(27147), + 85: uint16(31800), + 86: uint16(20633), + 87: uint16(23614), + 88: uint16(24494), + 89: uint16(26503), + 90: uint16(27608), + 91: uint16(29749), + 92: uint16(30473), + 93: uint16(32654), + }, + 40: { + 0: uint16(40763), + 1: uint16(26570), + 2: uint16(31255), + 3: uint16(21305), + 4: uint16(30091), + 5: uint16(39661), + 6: uint16(24422), + 7: uint16(33181), + 8: uint16(33777), + 9: uint16(32920), + 10: uint16(24380), + 11: uint16(24517), + 12: uint16(30050), + 13: uint16(31558), + 14: uint16(36924), + 15: uint16(26727), + 16: uint16(23019), + 17: uint16(23195), + 18: uint16(32016), + 19: uint16(30334), + 20: uint16(35628), + 21: uint16(20469), + 22: uint16(24426), + 23: uint16(27161), + 24: uint16(27703), + 25: uint16(28418), + 26: uint16(29922), + 27: uint16(31080), + 28: uint16(34920), + 29: uint16(35413), + 30: uint16(35961), + 31: uint16(24287), + 32: uint16(25551), + 33: uint16(30149), + 34: uint16(31186), + 35: uint16(33495), + 36: uint16(37672), + 37: uint16(37618), + 38: uint16(33948), + 39: uint16(34541), + 40: uint16(39981), + 41: uint16(21697), + 42: uint16(24428), + 43: uint16(25996), + 44: uint16(27996), + 45: uint16(28693), + 46: uint16(36007), + 47: uint16(36051), + 48: uint16(38971), + 49: uint16(25935), + 50: uint16(29942), + 51: uint16(19981), + 52: uint16(20184), + 53: uint16(22496), + 54: uint16(22827), + 55: uint16(23142), + 56: uint16(23500), + 57: uint16(20904), + 58: uint16(24067), + 59: uint16(24220), + 60: uint16(24598), + 61: uint16(25206), + 62: uint16(25975), + 63: uint16(26023), + 64: uint16(26222), + 65: uint16(28014), + 66: uint16(29238), + 67: uint16(31526), + 68: uint16(33104), + 69: uint16(33178), + 70: uint16(33433), + 71: uint16(35676), + 72: uint16(36000), + 73: uint16(36070), + 74: uint16(36212), + 75: uint16(38428), + 76: uint16(38468), + 77: uint16(20398), + 78: uint16(25771), + 79: uint16(27494), + 80: uint16(33310), + 81: uint16(33889), + 82: uint16(34154), + 83: uint16(37096), + 84: uint16(23553), + 85: uint16(26963), + 86: uint16(39080), + 87: uint16(33914), + 88: uint16(34135), + 89: uint16(20239), + 90: uint16(21103), + 91: uint16(24489), + 92: uint16(24133), + 93: uint16(26381), + }, + 41: { + 0: uint16(31119), + 1: uint16(33145), + 2: uint16(35079), + 3: uint16(35206), + 4: uint16(28149), + 5: uint16(24343), + 6: uint16(25173), + 7: uint16(27832), + 8: uint16(20175), + 9: uint16(29289), + 10: uint16(39826), + 11: uint16(20998), + 12: uint16(21563), + 13: uint16(22132), + 14: uint16(22707), + 15: uint16(24996), + 16: uint16(25198), + 17: uint16(28954), + 18: uint16(22894), + 19: uint16(31881), + 20: uint16(31966), + 21: uint16(32027), + 22: uint16(38640), + 23: uint16(25991), + 24: uint16(32862), + 25: uint16(19993), + 26: uint16(20341), + 27: uint16(20853), + 28: uint16(22592), + 29: uint16(24163), + 30: uint16(24179), + 31: uint16(24330), + 32: uint16(26564), + 33: uint16(20006), + 34: uint16(34109), + 35: uint16(38281), + 36: uint16(38491), + 37: uint16(31859), + 38: uint16(38913), + 39: uint16(20731), + 40: uint16(22721), + 41: uint16(30294), + 42: uint16(30887), + 43: uint16(21029), + 44: uint16(30629), + 45: uint16(34065), + 46: uint16(31622), + 47: uint16(20559), + 48: uint16(22793), + 49: uint16(29255), + 50: uint16(31687), + 51: uint16(32232), + 52: uint16(36794), + 53: uint16(36820), + 54: uint16(36941), + 55: uint16(20415), + 56: uint16(21193), + 57: uint16(23081), + 58: uint16(24321), + 59: uint16(38829), + 60: uint16(20445), + 61: uint16(33303), + 62: uint16(37610), + 63: uint16(22275), + 64: uint16(25429), + 65: uint16(27497), + 66: uint16(29995), + 67: uint16(35036), + 68: uint16(36628), + 69: uint16(31298), + 70: uint16(21215), + 71: uint16(22675), + 72: uint16(24917), + 73: uint16(25098), + 74: uint16(26286), + 75: uint16(27597), + 76: uint16(31807), + 77: uint16(33769), + 78: uint16(20515), + 79: uint16(20472), + 80: uint16(21253), + 81: uint16(21574), + 82: uint16(22577), + 83: uint16(22857), + 84: uint16(23453), + 85: uint16(23792), + 86: uint16(23791), + 87: uint16(23849), + 88: uint16(24214), + 89: uint16(25265), + 90: uint16(25447), + 91: uint16(25918), + 92: uint16(26041), + 93: uint16(26379), + }, + 42: { + 0: uint16(27861), + 1: uint16(27873), + 2: uint16(28921), + 3: uint16(30770), + 4: uint16(32299), + 5: uint16(32990), + 6: uint16(33459), + 7: uint16(33804), + 8: uint16(34028), + 9: uint16(34562), + 10: uint16(35090), + 11: uint16(35370), + 12: uint16(35914), + 13: uint16(37030), + 14: uint16(37586), + 15: uint16(39165), + 16: uint16(40179), + 17: uint16(40300), + 18: uint16(20047), + 19: uint16(20129), + 20: uint16(20621), + 21: uint16(21078), + 22: uint16(22346), + 23: uint16(22952), + 24: uint16(24125), + 25: uint16(24536), + 26: uint16(24537), + 27: uint16(25151), + 28: uint16(26292), + 29: uint16(26395), + 30: uint16(26576), + 31: uint16(26834), + 32: uint16(20882), + 33: uint16(32033), + 34: uint16(32938), + 35: uint16(33192), + 36: uint16(35584), + 37: uint16(35980), + 38: uint16(36031), + 39: uint16(37502), + 40: uint16(38450), + 41: uint16(21536), + 42: uint16(38956), + 43: uint16(21271), + 44: uint16(20693), + 45: uint16(21340), + 46: uint16(22696), + 47: uint16(25778), + 48: uint16(26420), + 49: uint16(29287), + 50: uint16(30566), + 51: uint16(31302), + 52: uint16(37350), + 53: uint16(21187), + 54: uint16(27809), + 55: uint16(27526), + 56: uint16(22528), + 57: uint16(24140), + 58: uint16(22868), + 59: uint16(26412), + 60: uint16(32763), + 61: uint16(20961), + 62: uint16(30406), + 63: uint16(25705), + 64: uint16(30952), + 65: uint16(39764), + 66: uint16(40635), + 67: uint16(22475), + 68: uint16(22969), + 69: uint16(26151), + 70: uint16(26522), + 71: uint16(27598), + 72: uint16(21737), + 73: uint16(27097), + 74: uint16(24149), + 75: uint16(33180), + 76: uint16(26517), + 77: uint16(39850), + 78: uint16(26622), + 79: uint16(40018), + 80: uint16(26717), + 81: uint16(20134), + 82: uint16(20451), + 83: uint16(21448), + 84: uint16(25273), + 85: uint16(26411), + 86: uint16(27819), + 87: uint16(36804), + 88: uint16(20397), + 89: uint16(32365), + 90: uint16(40639), + 91: uint16(19975), + 92: uint16(24930), + 93: uint16(28288), + }, + 43: { + 0: uint16(28459), + 1: uint16(34067), + 2: uint16(21619), + 3: uint16(26410), + 4: uint16(39749), + 5: uint16(24051), + 6: uint16(31637), + 7: uint16(23724), + 8: uint16(23494), + 9: uint16(34588), + 10: uint16(28234), + 11: uint16(34001), + 12: uint16(31252), + 13: uint16(33032), + 14: uint16(22937), + 15: uint16(31885), + 16: uint16(27665), + 17: uint16(30496), + 18: uint16(21209), + 19: uint16(22818), + 20: uint16(28961), + 21: uint16(29279), + 22: uint16(30683), + 23: uint16(38695), + 24: uint16(40289), + 25: uint16(26891), + 26: uint16(23167), + 27: uint16(23064), + 28: uint16(20901), + 29: uint16(21517), + 30: uint16(21629), + 31: uint16(26126), + 32: uint16(30431), + 33: uint16(36855), + 34: uint16(37528), + 35: uint16(40180), + 36: uint16(23018), + 37: uint16(29277), + 38: uint16(28357), + 39: uint16(20813), + 40: uint16(26825), + 41: uint16(32191), + 42: uint16(32236), + 43: uint16(38754), + 44: uint16(40634), + 45: uint16(25720), + 46: uint16(27169), + 47: uint16(33538), + 48: uint16(22916), + 49: uint16(23391), + 50: uint16(27611), + 51: uint16(29467), + 52: uint16(30450), + 53: uint16(32178), + 54: uint16(32791), + 55: uint16(33945), + 56: uint16(20786), + 57: uint16(26408), + 58: uint16(40665), + 59: uint16(30446), + 60: uint16(26466), + 61: uint16(21247), + 62: uint16(39173), + 63: uint16(23588), + 64: uint16(25147), + 65: uint16(31870), + 66: uint16(36016), + 67: uint16(21839), + 68: uint16(24758), + 69: uint16(32011), + 70: uint16(38272), + 71: uint16(21249), + 72: uint16(20063), + 73: uint16(20918), + 74: uint16(22812), + 75: uint16(29242), + 76: uint16(32822), + 77: uint16(37326), + 78: uint16(24357), + 79: uint16(30690), + 80: uint16(21380), + 81: uint16(24441), + 82: uint16(32004), + 83: uint16(34220), + 84: uint16(35379), + 85: uint16(36493), + 86: uint16(38742), + 87: uint16(26611), + 88: uint16(34222), + 89: uint16(37971), + 90: uint16(24841), + 91: uint16(24840), + 92: uint16(27833), + 93: uint16(30290), + }, + 44: { + 0: uint16(35565), + 1: uint16(36664), + 2: uint16(21807), + 3: uint16(20305), + 4: uint16(20778), + 5: uint16(21191), + 6: uint16(21451), + 7: uint16(23461), + 8: uint16(24189), + 9: uint16(24736), + 10: uint16(24962), + 11: uint16(25558), + 12: uint16(26377), + 13: uint16(26586), + 14: uint16(28263), + 15: uint16(28044), + 16: uint16(29494), + 17: uint16(29495), + 18: uint16(30001), + 19: uint16(31056), + 20: uint16(35029), + 21: uint16(35480), + 22: uint16(36938), + 23: uint16(37009), + 24: uint16(37109), + 25: uint16(38596), + 26: uint16(34701), + 27: uint16(22805), + 28: uint16(20104), + 29: uint16(20313), + 30: uint16(19982), + 31: uint16(35465), + 32: uint16(36671), + 33: uint16(38928), + 34: uint16(20653), + 35: uint16(24188), + 36: uint16(22934), + 37: uint16(23481), + 38: uint16(24248), + 39: uint16(25562), + 40: uint16(25594), + 41: uint16(25793), + 42: uint16(26332), + 43: uint16(26954), + 44: uint16(27096), + 45: uint16(27915), + 46: uint16(28342), + 47: uint16(29076), + 48: uint16(29992), + 49: uint16(31407), + 50: uint16(32650), + 51: uint16(32768), + 52: uint16(33865), + 53: uint16(33993), + 54: uint16(35201), + 55: uint16(35617), + 56: uint16(36362), + 57: uint16(36965), + 58: uint16(38525), + 59: uint16(39178), + 60: uint16(24958), + 61: uint16(25233), + 62: uint16(27442), + 63: uint16(27779), + 64: uint16(28020), + 65: uint16(32716), + 66: uint16(32764), + 67: uint16(28096), + 68: uint16(32645), + 69: uint16(34746), + 70: uint16(35064), + 71: uint16(26469), + 72: uint16(33713), + 73: uint16(38972), + 74: uint16(38647), + 75: uint16(27931), + 76: uint16(32097), + 77: uint16(33853), + 78: uint16(37226), + 79: uint16(20081), + 80: uint16(21365), + 81: uint16(23888), + 82: uint16(27396), + 83: uint16(28651), + 84: uint16(34253), + 85: uint16(34349), + 86: uint16(35239), + 87: uint16(21033), + 88: uint16(21519), + 89: uint16(23653), + 90: uint16(26446), + 91: uint16(26792), + 92: uint16(29702), + 93: uint16(29827), + }, + 45: { + 0: uint16(30178), + 1: uint16(35023), + 2: uint16(35041), + 3: uint16(37324), + 4: uint16(38626), + 5: uint16(38520), + 6: uint16(24459), + 7: uint16(29575), + 8: uint16(31435), + 9: uint16(33870), + 10: uint16(25504), + 11: uint16(30053), + 12: uint16(21129), + 13: uint16(27969), + 14: uint16(28316), + 15: uint16(29705), + 16: uint16(30041), + 17: uint16(30827), + 18: uint16(31890), + 19: uint16(38534), + 20: uint16(31452), + 21: uint16(40845), + 22: uint16(20406), + 23: uint16(24942), + 24: uint16(26053), + 25: uint16(34396), + 26: uint16(20102), + 27: uint16(20142), + 28: uint16(20698), + 29: uint16(20001), + 30: uint16(20940), + 31: uint16(23534), + 32: uint16(26009), + 33: uint16(26753), + 34: uint16(28092), + 35: uint16(29471), + 36: uint16(30274), + 37: uint16(30637), + 38: uint16(31260), + 39: uint16(31975), + 40: uint16(33391), + 41: uint16(35538), + 42: uint16(36988), + 43: uint16(37327), + 44: uint16(38517), + 45: uint16(38936), + 46: uint16(21147), + 47: uint16(32209), + 48: uint16(20523), + 49: uint16(21400), + 50: uint16(26519), + 51: uint16(28107), + 52: uint16(29136), + 53: uint16(29747), + 54: uint16(33256), + 55: uint16(36650), + 56: uint16(38563), + 57: uint16(40023), + 58: uint16(40607), + 59: uint16(29792), + 60: uint16(22593), + 61: uint16(28057), + 62: uint16(32047), + 63: uint16(39006), + 64: uint16(20196), + 65: uint16(20278), + 66: uint16(20363), + 67: uint16(20919), + 68: uint16(21169), + 69: uint16(23994), + 70: uint16(24604), + 71: uint16(29618), + 72: uint16(31036), + 73: uint16(33491), + 74: uint16(37428), + 75: uint16(38583), + 76: uint16(38646), + 77: uint16(38666), + 78: uint16(40599), + 79: uint16(40802), + 80: uint16(26278), + 81: uint16(27508), + 82: uint16(21015), + 83: uint16(21155), + 84: uint16(28872), + 85: uint16(35010), + 86: uint16(24265), + 87: uint16(24651), + 88: uint16(24976), + 89: uint16(28451), + 90: uint16(29001), + 91: uint16(31806), + 92: uint16(32244), + 93: uint16(32879), + }, + 46: { + 0: uint16(34030), + 1: uint16(36899), + 2: uint16(37676), + 3: uint16(21570), + 4: uint16(39791), + 5: uint16(27347), + 6: uint16(28809), + 7: uint16(36034), + 8: uint16(36335), + 9: uint16(38706), + 10: uint16(21172), + 11: uint16(23105), + 12: uint16(24266), + 13: uint16(24324), + 14: uint16(26391), + 15: uint16(27004), + 16: uint16(27028), + 17: uint16(28010), + 18: uint16(28431), + 19: uint16(29282), + 20: uint16(29436), + 21: uint16(31725), + 22: uint16(32769), + 23: uint16(32894), + 24: uint16(34635), + 25: uint16(37070), + 26: uint16(20845), + 27: uint16(40595), + 28: uint16(31108), + 29: uint16(32907), + 30: uint16(37682), + 31: uint16(35542), + 32: uint16(20525), + 33: uint16(21644), + 34: uint16(35441), + 35: uint16(27498), + 36: uint16(36036), + 37: uint16(33031), + 38: uint16(24785), + 39: uint16(26528), + 40: uint16(40434), + 41: uint16(20121), + 42: uint16(20120), + 43: uint16(39952), + 44: uint16(35435), + 45: uint16(34241), + 46: uint16(34152), + 47: uint16(26880), + 48: uint16(28286), + 49: uint16(30871), + 50: uint16(33109), + }, + 47: { + 0: uint16(24332), + 1: uint16(19984), + 2: uint16(19989), + 3: uint16(20010), + 4: uint16(20017), + 5: uint16(20022), + 6: uint16(20028), + 7: uint16(20031), + 8: uint16(20034), + 9: uint16(20054), + 10: uint16(20056), + 11: uint16(20098), + 12: uint16(20101), + 13: uint16(35947), + 14: uint16(20106), + 15: uint16(33298), + 16: uint16(24333), + 17: uint16(20110), + 18: uint16(20126), + 19: uint16(20127), + 20: uint16(20128), + 21: uint16(20130), + 22: uint16(20144), + 23: uint16(20147), + 24: uint16(20150), + 25: uint16(20174), + 26: uint16(20173), + 27: uint16(20164), + 28: uint16(20166), + 29: uint16(20162), + 30: uint16(20183), + 31: uint16(20190), + 32: uint16(20205), + 33: uint16(20191), + 34: uint16(20215), + 35: uint16(20233), + 36: uint16(20314), + 37: uint16(20272), + 38: uint16(20315), + 39: uint16(20317), + 40: uint16(20311), + 41: uint16(20295), + 42: uint16(20342), + 43: uint16(20360), + 44: uint16(20367), + 45: uint16(20376), + 46: uint16(20347), + 47: uint16(20329), + 48: uint16(20336), + 49: uint16(20369), + 50: uint16(20335), + 51: uint16(20358), + 52: uint16(20374), + 53: uint16(20760), + 54: uint16(20436), + 55: uint16(20447), + 56: uint16(20430), + 57: uint16(20440), + 58: uint16(20443), + 59: uint16(20433), + 60: uint16(20442), + 61: uint16(20432), + 62: uint16(20452), + 63: uint16(20453), + 64: uint16(20506), + 65: uint16(20520), + 66: uint16(20500), + 67: uint16(20522), + 68: uint16(20517), + 69: uint16(20485), + 70: uint16(20252), + 71: uint16(20470), + 72: uint16(20513), + 73: uint16(20521), + 74: uint16(20524), + 75: uint16(20478), + 76: uint16(20463), + 77: uint16(20497), + 78: uint16(20486), + 79: uint16(20547), + 80: uint16(20551), + 81: uint16(26371), + 82: uint16(20565), + 83: uint16(20560), + 84: uint16(20552), + 85: uint16(20570), + 86: uint16(20566), + 87: uint16(20588), + 88: uint16(20600), + 89: uint16(20608), + 90: uint16(20634), + 91: uint16(20613), + 92: uint16(20660), + 93: uint16(20658), + }, + 48: { + 0: uint16(20681), + 1: uint16(20682), + 2: uint16(20659), + 3: uint16(20674), + 4: uint16(20694), + 5: uint16(20702), + 6: uint16(20709), + 7: uint16(20717), + 8: uint16(20707), + 9: uint16(20718), + 10: uint16(20729), + 11: uint16(20725), + 12: uint16(20745), + 13: uint16(20737), + 14: uint16(20738), + 15: uint16(20758), + 16: uint16(20757), + 17: uint16(20756), + 18: uint16(20762), + 19: uint16(20769), + 20: uint16(20794), + 21: uint16(20791), + 22: uint16(20796), + 23: uint16(20795), + 24: uint16(20799), + 25: uint16(20800), + 26: uint16(20818), + 27: uint16(20812), + 28: uint16(20820), + 29: uint16(20834), + 30: uint16(31480), + 31: uint16(20841), + 32: uint16(20842), + 33: uint16(20846), + 34: uint16(20864), + 35: uint16(20866), + 36: uint16(22232), + 37: uint16(20876), + 38: uint16(20873), + 39: uint16(20879), + 40: uint16(20881), + 41: uint16(20883), + 42: uint16(20885), + 43: uint16(20886), + 44: uint16(20900), + 45: uint16(20902), + 46: uint16(20898), + 47: uint16(20905), + 48: uint16(20906), + 49: uint16(20907), + 50: uint16(20915), + 51: uint16(20913), + 52: uint16(20914), + 53: uint16(20912), + 54: uint16(20917), + 55: uint16(20925), + 56: uint16(20933), + 57: uint16(20937), + 58: uint16(20955), + 59: uint16(20960), + 60: uint16(34389), + 61: uint16(20969), + 62: uint16(20973), + 63: uint16(20976), + 64: uint16(20981), + 65: uint16(20990), + 66: uint16(20996), + 67: uint16(21003), + 68: uint16(21012), + 69: uint16(21006), + 70: uint16(21031), + 71: uint16(21034), + 72: uint16(21038), + 73: uint16(21043), + 74: uint16(21049), + 75: uint16(21071), + 76: uint16(21060), + 77: uint16(21067), + 78: uint16(21068), + 79: uint16(21086), + 80: uint16(21076), + 81: uint16(21098), + 82: uint16(21108), + 83: uint16(21097), + 84: uint16(21107), + 85: uint16(21119), + 86: uint16(21117), + 87: uint16(21133), + 88: uint16(21140), + 89: uint16(21138), + 90: uint16(21105), + 91: uint16(21128), + 92: uint16(21137), + 93: uint16(36776), + }, + 49: { + 0: uint16(36775), + 1: uint16(21164), + 2: uint16(21165), + 3: uint16(21180), + 4: uint16(21173), + 5: uint16(21185), + 6: uint16(21197), + 7: uint16(21207), + 8: uint16(21214), + 9: uint16(21219), + 10: uint16(21222), + 11: uint16(39149), + 12: uint16(21216), + 13: uint16(21235), + 14: uint16(21237), + 15: uint16(21240), + 16: uint16(21241), + 17: uint16(21254), + 18: uint16(21256), + 19: uint16(30008), + 20: uint16(21261), + 21: uint16(21264), + 22: uint16(21263), + 23: uint16(21269), + 24: uint16(21274), + 25: uint16(21283), + 26: uint16(21295), + 27: uint16(21297), + 28: uint16(21299), + 29: uint16(21304), + 30: uint16(21312), + 31: uint16(21318), + 32: uint16(21317), + 33: uint16(19991), + 34: uint16(21321), + 35: uint16(21325), + 36: uint16(20950), + 37: uint16(21342), + 38: uint16(21353), + 39: uint16(21358), + 40: uint16(22808), + 41: uint16(21371), + 42: uint16(21367), + 43: uint16(21378), + 44: uint16(21398), + 45: uint16(21408), + 46: uint16(21414), + 47: uint16(21413), + 48: uint16(21422), + 49: uint16(21424), + 50: uint16(21430), + 51: uint16(21443), + 52: uint16(31762), + 53: uint16(38617), + 54: uint16(21471), + 55: uint16(26364), + 56: uint16(29166), + 57: uint16(21486), + 58: uint16(21480), + 59: uint16(21485), + 60: uint16(21498), + 61: uint16(21505), + 62: uint16(21565), + 63: uint16(21568), + 64: uint16(21548), + 65: uint16(21549), + 66: uint16(21564), + 67: uint16(21550), + 68: uint16(21558), + 69: uint16(21545), + 70: uint16(21533), + 71: uint16(21582), + 72: uint16(21647), + 73: uint16(21621), + 74: uint16(21646), + 75: uint16(21599), + 76: uint16(21617), + 77: uint16(21623), + 78: uint16(21616), + 79: uint16(21650), + 80: uint16(21627), + 81: uint16(21632), + 82: uint16(21622), + 83: uint16(21636), + 84: uint16(21648), + 85: uint16(21638), + 86: uint16(21703), + 87: uint16(21666), + 88: uint16(21688), + 89: uint16(21669), + 90: uint16(21676), + 91: uint16(21700), + 92: uint16(21704), + 93: uint16(21672), + }, + 50: { + 0: uint16(21675), + 1: uint16(21698), + 2: uint16(21668), + 3: uint16(21694), + 4: uint16(21692), + 5: uint16(21720), + 6: uint16(21733), + 7: uint16(21734), + 8: uint16(21775), + 9: uint16(21780), + 10: uint16(21757), + 11: uint16(21742), + 12: uint16(21741), + 13: uint16(21754), + 14: uint16(21730), + 15: uint16(21817), + 16: uint16(21824), + 17: uint16(21859), + 18: uint16(21836), + 19: uint16(21806), + 20: uint16(21852), + 21: uint16(21829), + 22: uint16(21846), + 23: uint16(21847), + 24: uint16(21816), + 25: uint16(21811), + 26: uint16(21853), + 27: uint16(21913), + 28: uint16(21888), + 29: uint16(21679), + 30: uint16(21898), + 31: uint16(21919), + 32: uint16(21883), + 33: uint16(21886), + 34: uint16(21912), + 35: uint16(21918), + 36: uint16(21934), + 37: uint16(21884), + 38: uint16(21891), + 39: uint16(21929), + 40: uint16(21895), + 41: uint16(21928), + 42: uint16(21978), + 43: uint16(21957), + 44: uint16(21983), + 45: uint16(21956), + 46: uint16(21980), + 47: uint16(21988), + 48: uint16(21972), + 49: uint16(22036), + 50: uint16(22007), + 51: uint16(22038), + 52: uint16(22014), + 53: uint16(22013), + 54: uint16(22043), + 55: uint16(22009), + 56: uint16(22094), + 57: uint16(22096), + 58: uint16(29151), + 59: uint16(22068), + 60: uint16(22070), + 61: uint16(22066), + 62: uint16(22072), + 63: uint16(22123), + 64: uint16(22116), + 65: uint16(22063), + 66: uint16(22124), + 67: uint16(22122), + 68: uint16(22150), + 69: uint16(22144), + 70: uint16(22154), + 71: uint16(22176), + 72: uint16(22164), + 73: uint16(22159), + 74: uint16(22181), + 75: uint16(22190), + 76: uint16(22198), + 77: uint16(22196), + 78: uint16(22210), + 79: uint16(22204), + 80: uint16(22209), + 81: uint16(22211), + 82: uint16(22208), + 83: uint16(22216), + 84: uint16(22222), + 85: uint16(22225), + 86: uint16(22227), + 87: uint16(22231), + 88: uint16(22254), + 89: uint16(22265), + 90: uint16(22272), + 91: uint16(22271), + 92: uint16(22276), + 93: uint16(22281), + }, + 51: { + 0: uint16(22280), + 1: uint16(22283), + 2: uint16(22285), + 3: uint16(22291), + 4: uint16(22296), + 5: uint16(22294), + 6: uint16(21959), + 7: uint16(22300), + 8: uint16(22310), + 9: uint16(22327), + 10: uint16(22328), + 11: uint16(22350), + 12: uint16(22331), + 13: uint16(22336), + 14: uint16(22351), + 15: uint16(22377), + 16: uint16(22464), + 17: uint16(22408), + 18: uint16(22369), + 19: uint16(22399), + 20: uint16(22409), + 21: uint16(22419), + 22: uint16(22432), + 23: uint16(22451), + 24: uint16(22436), + 25: uint16(22442), + 26: uint16(22448), + 27: uint16(22467), + 28: uint16(22470), + 29: uint16(22484), + 30: uint16(22482), + 31: uint16(22483), + 32: uint16(22538), + 33: uint16(22486), + 34: uint16(22499), + 35: uint16(22539), + 36: uint16(22553), + 37: uint16(22557), + 38: uint16(22642), + 39: uint16(22561), + 40: uint16(22626), + 41: uint16(22603), + 42: uint16(22640), + 43: uint16(27584), + 44: uint16(22610), + 45: uint16(22589), + 46: uint16(22649), + 47: uint16(22661), + 48: uint16(22713), + 49: uint16(22687), + 50: uint16(22699), + 51: uint16(22714), + 52: uint16(22750), + 53: uint16(22715), + 54: uint16(22712), + 55: uint16(22702), + 56: uint16(22725), + 57: uint16(22739), + 58: uint16(22737), + 59: uint16(22743), + 60: uint16(22745), + 61: uint16(22744), + 62: uint16(22757), + 63: uint16(22748), + 64: uint16(22756), + 65: uint16(22751), + 66: uint16(22767), + 67: uint16(22778), + 68: uint16(22777), + 69: uint16(22779), + 70: uint16(22780), + 71: uint16(22781), + 72: uint16(22786), + 73: uint16(22794), + 74: uint16(22800), + 75: uint16(22811), + 76: uint16(26790), + 77: uint16(22821), + 78: uint16(22828), + 79: uint16(22829), + 80: uint16(22834), + 81: uint16(22840), + 82: uint16(22846), + 83: uint16(31442), + 84: uint16(22869), + 85: uint16(22864), + 86: uint16(22862), + 87: uint16(22874), + 88: uint16(22872), + 89: uint16(22882), + 90: uint16(22880), + 91: uint16(22887), + 92: uint16(22892), + 93: uint16(22889), + }, + 52: { + 0: uint16(22904), + 1: uint16(22913), + 2: uint16(22941), + 3: uint16(20318), + 4: uint16(20395), + 5: uint16(22947), + 6: uint16(22962), + 7: uint16(22982), + 8: uint16(23016), + 9: uint16(23004), + 10: uint16(22925), + 11: uint16(23001), + 12: uint16(23002), + 13: uint16(23077), + 14: uint16(23071), + 15: uint16(23057), + 16: uint16(23068), + 17: uint16(23049), + 18: uint16(23066), + 19: uint16(23104), + 20: uint16(23148), + 21: uint16(23113), + 22: uint16(23093), + 23: uint16(23094), + 24: uint16(23138), + 25: uint16(23146), + 26: uint16(23194), + 27: uint16(23228), + 28: uint16(23230), + 29: uint16(23243), + 30: uint16(23234), + 31: uint16(23229), + 32: uint16(23267), + 33: uint16(23255), + 34: uint16(23270), + 35: uint16(23273), + 36: uint16(23254), + 37: uint16(23290), + 38: uint16(23291), + 39: uint16(23308), + 40: uint16(23307), + 41: uint16(23318), + 42: uint16(23346), + 43: uint16(23248), + 44: uint16(23338), + 45: uint16(23350), + 46: uint16(23358), + 47: uint16(23363), + 48: uint16(23365), + 49: uint16(23360), + 50: uint16(23377), + 51: uint16(23381), + 52: uint16(23386), + 53: uint16(23387), + 54: uint16(23397), + 55: uint16(23401), + 56: uint16(23408), + 57: uint16(23411), + 58: uint16(23413), + 59: uint16(23416), + 60: uint16(25992), + 61: uint16(23418), + 62: uint16(23424), + 63: uint16(23427), + 64: uint16(23462), + 65: uint16(23480), + 66: uint16(23491), + 67: uint16(23495), + 68: uint16(23497), + 69: uint16(23508), + 70: uint16(23504), + 71: uint16(23524), + 72: uint16(23526), + 73: uint16(23522), + 74: uint16(23518), + 75: uint16(23525), + 76: uint16(23531), + 77: uint16(23536), + 78: uint16(23542), + 79: uint16(23539), + 80: uint16(23557), + 81: uint16(23559), + 82: uint16(23560), + 83: uint16(23565), + 84: uint16(23571), + 85: uint16(23584), + 86: uint16(23586), + 87: uint16(23592), + 88: uint16(23608), + 89: uint16(23609), + 90: uint16(23617), + 91: uint16(23622), + 92: uint16(23630), + 93: uint16(23635), + }, + 53: { + 0: uint16(23632), + 1: uint16(23631), + 2: uint16(23409), + 3: uint16(23660), + 4: uint16(23662), + 5: uint16(20066), + 6: uint16(23670), + 7: uint16(23673), + 8: uint16(23692), + 9: uint16(23697), + 10: uint16(23700), + 11: uint16(22939), + 12: uint16(23723), + 13: uint16(23739), + 14: uint16(23734), + 15: uint16(23740), + 16: uint16(23735), + 17: uint16(23749), + 18: uint16(23742), + 19: uint16(23751), + 20: uint16(23769), + 21: uint16(23785), + 22: uint16(23805), + 23: uint16(23802), + 24: uint16(23789), + 25: uint16(23948), + 26: uint16(23786), + 27: uint16(23819), + 28: uint16(23829), + 29: uint16(23831), + 30: uint16(23900), + 31: uint16(23839), + 32: uint16(23835), + 33: uint16(23825), + 34: uint16(23828), + 35: uint16(23842), + 36: uint16(23834), + 37: uint16(23833), + 38: uint16(23832), + 39: uint16(23884), + 40: uint16(23890), + 41: uint16(23886), + 42: uint16(23883), + 43: uint16(23916), + 44: uint16(23923), + 45: uint16(23926), + 46: uint16(23943), + 47: uint16(23940), + 48: uint16(23938), + 49: uint16(23970), + 50: uint16(23965), + 51: uint16(23980), + 52: uint16(23982), + 53: uint16(23997), + 54: uint16(23952), + 55: uint16(23991), + 56: uint16(23996), + 57: uint16(24009), + 58: uint16(24013), + 59: uint16(24019), + 60: uint16(24018), + 61: uint16(24022), + 62: uint16(24027), + 63: uint16(24043), + 64: uint16(24050), + 65: uint16(24053), + 66: uint16(24075), + 67: uint16(24090), + 68: uint16(24089), + 69: uint16(24081), + 70: uint16(24091), + 71: uint16(24118), + 72: uint16(24119), + 73: uint16(24132), + 74: uint16(24131), + 75: uint16(24128), + 76: uint16(24142), + 77: uint16(24151), + 78: uint16(24148), + 79: uint16(24159), + 80: uint16(24162), + 81: uint16(24164), + 82: uint16(24135), + 83: uint16(24181), + 84: uint16(24182), + 85: uint16(24186), + 86: uint16(40636), + 87: uint16(24191), + 88: uint16(24224), + 89: uint16(24257), + 90: uint16(24258), + 91: uint16(24264), + 92: uint16(24272), + 93: uint16(24271), + }, + 54: { + 0: uint16(24278), + 1: uint16(24291), + 2: uint16(24285), + 3: uint16(24282), + 4: uint16(24283), + 5: uint16(24290), + 6: uint16(24289), + 7: uint16(24296), + 8: uint16(24297), + 9: uint16(24300), + 10: uint16(24305), + 11: uint16(24307), + 12: uint16(24304), + 13: uint16(24308), + 14: uint16(24312), + 15: uint16(24318), + 16: uint16(24323), + 17: uint16(24329), + 18: uint16(24413), + 19: uint16(24412), + 20: uint16(24331), + 21: uint16(24337), + 22: uint16(24342), + 23: uint16(24361), + 24: uint16(24365), + 25: uint16(24376), + 26: uint16(24385), + 27: uint16(24392), + 28: uint16(24396), + 29: uint16(24398), + 30: uint16(24367), + 31: uint16(24401), + 32: uint16(24406), + 33: uint16(24407), + 34: uint16(24409), + 35: uint16(24417), + 36: uint16(24429), + 37: uint16(24435), + 38: uint16(24439), + 39: uint16(24451), + 40: uint16(24450), + 41: uint16(24447), + 42: uint16(24458), + 43: uint16(24456), + 44: uint16(24465), + 45: uint16(24455), + 46: uint16(24478), + 47: uint16(24473), + 48: uint16(24472), + 49: uint16(24480), + 50: uint16(24488), + 51: uint16(24493), + 52: uint16(24508), + 53: uint16(24534), + 54: uint16(24571), + 55: uint16(24548), + 56: uint16(24568), + 57: uint16(24561), + 58: uint16(24541), + 59: uint16(24755), + 60: uint16(24575), + 61: uint16(24609), + 62: uint16(24672), + 63: uint16(24601), + 64: uint16(24592), + 65: uint16(24617), + 66: uint16(24590), + 67: uint16(24625), + 68: uint16(24603), + 69: uint16(24597), + 70: uint16(24619), + 71: uint16(24614), + 72: uint16(24591), + 73: uint16(24634), + 74: uint16(24666), + 75: uint16(24641), + 76: uint16(24682), + 77: uint16(24695), + 78: uint16(24671), + 79: uint16(24650), + 80: uint16(24646), + 81: uint16(24653), + 82: uint16(24675), + 83: uint16(24643), + 84: uint16(24676), + 85: uint16(24642), + 86: uint16(24684), + 87: uint16(24683), + 88: uint16(24665), + 89: uint16(24705), + 90: uint16(24717), + 91: uint16(24807), + 92: uint16(24707), + 93: uint16(24730), + }, + 55: { + 0: uint16(24708), + 1: uint16(24731), + 2: uint16(24726), + 3: uint16(24727), + 4: uint16(24722), + 5: uint16(24743), + 6: uint16(24715), + 7: uint16(24801), + 8: uint16(24760), + 9: uint16(24800), + 10: uint16(24787), + 11: uint16(24756), + 12: uint16(24560), + 13: uint16(24765), + 14: uint16(24774), + 15: uint16(24757), + 16: uint16(24792), + 17: uint16(24909), + 18: uint16(24853), + 19: uint16(24838), + 20: uint16(24822), + 21: uint16(24823), + 22: uint16(24832), + 23: uint16(24820), + 24: uint16(24826), + 25: uint16(24835), + 26: uint16(24865), + 27: uint16(24827), + 28: uint16(24817), + 29: uint16(24845), + 30: uint16(24846), + 31: uint16(24903), + 32: uint16(24894), + 33: uint16(24872), + 34: uint16(24871), + 35: uint16(24906), + 36: uint16(24895), + 37: uint16(24892), + 38: uint16(24876), + 39: uint16(24884), + 40: uint16(24893), + 41: uint16(24898), + 42: uint16(24900), + 43: uint16(24947), + 44: uint16(24951), + 45: uint16(24920), + 46: uint16(24921), + 47: uint16(24922), + 48: uint16(24939), + 49: uint16(24948), + 50: uint16(24943), + 51: uint16(24933), + 52: uint16(24945), + 53: uint16(24927), + 54: uint16(24925), + 55: uint16(24915), + 56: uint16(24949), + 57: uint16(24985), + 58: uint16(24982), + 59: uint16(24967), + 60: uint16(25004), + 61: uint16(24980), + 62: uint16(24986), + 63: uint16(24970), + 64: uint16(24977), + 65: uint16(25003), + 66: uint16(25006), + 67: uint16(25036), + 68: uint16(25034), + 69: uint16(25033), + 70: uint16(25079), + 71: uint16(25032), + 72: uint16(25027), + 73: uint16(25030), + 74: uint16(25018), + 75: uint16(25035), + 76: uint16(32633), + 77: uint16(25037), + 78: uint16(25062), + 79: uint16(25059), + 80: uint16(25078), + 81: uint16(25082), + 82: uint16(25076), + 83: uint16(25087), + 84: uint16(25085), + 85: uint16(25084), + 86: uint16(25086), + 87: uint16(25088), + 88: uint16(25096), + 89: uint16(25097), + 90: uint16(25101), + 91: uint16(25100), + 92: uint16(25108), + 93: uint16(25115), + }, + 56: { + 0: uint16(25118), + 1: uint16(25121), + 2: uint16(25130), + 3: uint16(25134), + 4: uint16(25136), + 5: uint16(25138), + 6: uint16(25139), + 7: uint16(25153), + 8: uint16(25166), + 9: uint16(25182), + 10: uint16(25187), + 11: uint16(25179), + 12: uint16(25184), + 13: uint16(25192), + 14: uint16(25212), + 15: uint16(25218), + 16: uint16(25225), + 17: uint16(25214), + 18: uint16(25234), + 19: uint16(25235), + 20: uint16(25238), + 21: uint16(25300), + 22: uint16(25219), + 23: uint16(25236), + 24: uint16(25303), + 25: uint16(25297), + 26: uint16(25275), + 27: uint16(25295), + 28: uint16(25343), + 29: uint16(25286), + 30: uint16(25812), + 31: uint16(25288), + 32: uint16(25308), + 33: uint16(25292), + 34: uint16(25290), + 35: uint16(25282), + 36: uint16(25287), + 37: uint16(25243), + 38: uint16(25289), + 39: uint16(25356), + 40: uint16(25326), + 41: uint16(25329), + 42: uint16(25383), + 43: uint16(25346), + 44: uint16(25352), + 45: uint16(25327), + 46: uint16(25333), + 47: uint16(25424), + 48: uint16(25406), + 49: uint16(25421), + 50: uint16(25628), + 51: uint16(25423), + 52: uint16(25494), + 53: uint16(25486), + 54: uint16(25472), + 55: uint16(25515), + 56: uint16(25462), + 57: uint16(25507), + 58: uint16(25487), + 59: uint16(25481), + 60: uint16(25503), + 61: uint16(25525), + 62: uint16(25451), + 63: uint16(25449), + 64: uint16(25534), + 65: uint16(25577), + 66: uint16(25536), + 67: uint16(25542), + 68: uint16(25571), + 69: uint16(25545), + 70: uint16(25554), + 71: uint16(25590), + 72: uint16(25540), + 73: uint16(25622), + 74: uint16(25652), + 75: uint16(25606), + 76: uint16(25619), + 77: uint16(25638), + 78: uint16(25654), + 79: uint16(25885), + 80: uint16(25623), + 81: uint16(25640), + 82: uint16(25615), + 83: uint16(25703), + 84: uint16(25711), + 85: uint16(25718), + 86: uint16(25678), + 87: uint16(25898), + 88: uint16(25749), + 89: uint16(25747), + 90: uint16(25765), + 91: uint16(25769), + 92: uint16(25736), + 93: uint16(25788), + }, + 57: { + 0: uint16(25818), + 1: uint16(25810), + 2: uint16(25797), + 3: uint16(25799), + 4: uint16(25787), + 5: uint16(25816), + 6: uint16(25794), + 7: uint16(25841), + 8: uint16(25831), + 9: uint16(33289), + 10: uint16(25824), + 11: uint16(25825), + 12: uint16(25260), + 13: uint16(25827), + 14: uint16(25839), + 15: uint16(25900), + 16: uint16(25846), + 17: uint16(25844), + 18: uint16(25842), + 19: uint16(25850), + 20: uint16(25856), + 21: uint16(25853), + 22: uint16(25880), + 23: uint16(25884), + 24: uint16(25861), + 25: uint16(25892), + 26: uint16(25891), + 27: uint16(25899), + 28: uint16(25908), + 29: uint16(25909), + 30: uint16(25911), + 31: uint16(25910), + 32: uint16(25912), + 33: uint16(30027), + 34: uint16(25928), + 35: uint16(25942), + 36: uint16(25941), + 37: uint16(25933), + 38: uint16(25944), + 39: uint16(25950), + 40: uint16(25949), + 41: uint16(25970), + 42: uint16(25976), + 43: uint16(25986), + 44: uint16(25987), + 45: uint16(35722), + 46: uint16(26011), + 47: uint16(26015), + 48: uint16(26027), + 49: uint16(26039), + 50: uint16(26051), + 51: uint16(26054), + 52: uint16(26049), + 53: uint16(26052), + 54: uint16(26060), + 55: uint16(26066), + 56: uint16(26075), + 57: uint16(26073), + 58: uint16(26080), + 59: uint16(26081), + 60: uint16(26097), + 61: uint16(26482), + 62: uint16(26122), + 63: uint16(26115), + 64: uint16(26107), + 65: uint16(26483), + 66: uint16(26165), + 67: uint16(26166), + 68: uint16(26164), + 69: uint16(26140), + 70: uint16(26191), + 71: uint16(26180), + 72: uint16(26185), + 73: uint16(26177), + 74: uint16(26206), + 75: uint16(26205), + 76: uint16(26212), + 77: uint16(26215), + 78: uint16(26216), + 79: uint16(26207), + 80: uint16(26210), + 81: uint16(26224), + 82: uint16(26243), + 83: uint16(26248), + 84: uint16(26254), + 85: uint16(26249), + 86: uint16(26244), + 87: uint16(26264), + 88: uint16(26269), + 89: uint16(26305), + 90: uint16(26297), + 91: uint16(26313), + 92: uint16(26302), + 93: uint16(26300), + }, + 58: { + 0: uint16(26308), + 1: uint16(26296), + 2: uint16(26326), + 3: uint16(26330), + 4: uint16(26336), + 5: uint16(26175), + 6: uint16(26342), + 7: uint16(26345), + 8: uint16(26352), + 9: uint16(26357), + 10: uint16(26359), + 11: uint16(26383), + 12: uint16(26390), + 13: uint16(26398), + 14: uint16(26406), + 15: uint16(26407), + 16: uint16(38712), + 17: uint16(26414), + 18: uint16(26431), + 19: uint16(26422), + 20: uint16(26433), + 21: uint16(26424), + 22: uint16(26423), + 23: uint16(26438), + 24: uint16(26462), + 25: uint16(26464), + 26: uint16(26457), + 27: uint16(26467), + 28: uint16(26468), + 29: uint16(26505), + 30: uint16(26480), + 31: uint16(26537), + 32: uint16(26492), + 33: uint16(26474), + 34: uint16(26508), + 35: uint16(26507), + 36: uint16(26534), + 37: uint16(26529), + 38: uint16(26501), + 39: uint16(26551), + 40: uint16(26607), + 41: uint16(26548), + 42: uint16(26604), + 43: uint16(26547), + 44: uint16(26601), + 45: uint16(26552), + 46: uint16(26596), + 47: uint16(26590), + 48: uint16(26589), + 49: uint16(26594), + 50: uint16(26606), + 51: uint16(26553), + 52: uint16(26574), + 53: uint16(26566), + 54: uint16(26599), + 55: uint16(27292), + 56: uint16(26654), + 57: uint16(26694), + 58: uint16(26665), + 59: uint16(26688), + 60: uint16(26701), + 61: uint16(26674), + 62: uint16(26702), + 63: uint16(26803), + 64: uint16(26667), + 65: uint16(26713), + 66: uint16(26723), + 67: uint16(26743), + 68: uint16(26751), + 69: uint16(26783), + 70: uint16(26767), + 71: uint16(26797), + 72: uint16(26772), + 73: uint16(26781), + 74: uint16(26779), + 75: uint16(26755), + 76: uint16(27310), + 77: uint16(26809), + 78: uint16(26740), + 79: uint16(26805), + 80: uint16(26784), + 81: uint16(26810), + 82: uint16(26895), + 83: uint16(26765), + 84: uint16(26750), + 85: uint16(26881), + 86: uint16(26826), + 87: uint16(26888), + 88: uint16(26840), + 89: uint16(26914), + 90: uint16(26918), + 91: uint16(26849), + 92: uint16(26892), + 93: uint16(26829), + }, + 59: { + 0: uint16(26836), + 1: uint16(26855), + 2: uint16(26837), + 3: uint16(26934), + 4: uint16(26898), + 5: uint16(26884), + 6: uint16(26839), + 7: uint16(26851), + 8: uint16(26917), + 9: uint16(26873), + 10: uint16(26848), + 11: uint16(26863), + 12: uint16(26920), + 13: uint16(26922), + 14: uint16(26906), + 15: uint16(26915), + 16: uint16(26913), + 17: uint16(26822), + 18: uint16(27001), + 19: uint16(26999), + 20: uint16(26972), + 21: uint16(27000), + 22: uint16(26987), + 23: uint16(26964), + 24: uint16(27006), + 25: uint16(26990), + 26: uint16(26937), + 27: uint16(26996), + 28: uint16(26941), + 29: uint16(26969), + 30: uint16(26928), + 31: uint16(26977), + 32: uint16(26974), + 33: uint16(26973), + 34: uint16(27009), + 35: uint16(26986), + 36: uint16(27058), + 37: uint16(27054), + 38: uint16(27088), + 39: uint16(27071), + 40: uint16(27073), + 41: uint16(27091), + 42: uint16(27070), + 43: uint16(27086), + 44: uint16(23528), + 45: uint16(27082), + 46: uint16(27101), + 47: uint16(27067), + 48: uint16(27075), + 49: uint16(27047), + 50: uint16(27182), + 51: uint16(27025), + 52: uint16(27040), + 53: uint16(27036), + 54: uint16(27029), + 55: uint16(27060), + 56: uint16(27102), + 57: uint16(27112), + 58: uint16(27138), + 59: uint16(27163), + 60: uint16(27135), + 61: uint16(27402), + 62: uint16(27129), + 63: uint16(27122), + 64: uint16(27111), + 65: uint16(27141), + 66: uint16(27057), + 67: uint16(27166), + 68: uint16(27117), + 69: uint16(27156), + 70: uint16(27115), + 71: uint16(27146), + 72: uint16(27154), + 73: uint16(27329), + 74: uint16(27171), + 75: uint16(27155), + 76: uint16(27204), + 77: uint16(27148), + 78: uint16(27250), + 79: uint16(27190), + 80: uint16(27256), + 81: uint16(27207), + 82: uint16(27234), + 83: uint16(27225), + 84: uint16(27238), + 85: uint16(27208), + 86: uint16(27192), + 87: uint16(27170), + 88: uint16(27280), + 89: uint16(27277), + 90: uint16(27296), + 91: uint16(27268), + 92: uint16(27298), + 93: uint16(27299), + }, + 60: { + 0: uint16(27287), + 1: uint16(34327), + 2: uint16(27323), + 3: uint16(27331), + 4: uint16(27330), + 5: uint16(27320), + 6: uint16(27315), + 7: uint16(27308), + 8: uint16(27358), + 9: uint16(27345), + 10: uint16(27359), + 11: uint16(27306), + 12: uint16(27354), + 13: uint16(27370), + 14: uint16(27387), + 15: uint16(27397), + 16: uint16(34326), + 17: uint16(27386), + 18: uint16(27410), + 19: uint16(27414), + 20: uint16(39729), + 21: uint16(27423), + 22: uint16(27448), + 23: uint16(27447), + 24: uint16(30428), + 25: uint16(27449), + 26: uint16(39150), + 27: uint16(27463), + 28: uint16(27459), + 29: uint16(27465), + 30: uint16(27472), + 31: uint16(27481), + 32: uint16(27476), + 33: uint16(27483), + 34: uint16(27487), + 35: uint16(27489), + 36: uint16(27512), + 37: uint16(27513), + 38: uint16(27519), + 39: uint16(27520), + 40: uint16(27524), + 41: uint16(27523), + 42: uint16(27533), + 43: uint16(27544), + 44: uint16(27541), + 45: uint16(27550), + 46: uint16(27556), + 47: uint16(27562), + 48: uint16(27563), + 49: uint16(27567), + 50: uint16(27570), + 51: uint16(27569), + 52: uint16(27571), + 53: uint16(27575), + 54: uint16(27580), + 55: uint16(27590), + 56: uint16(27595), + 57: uint16(27603), + 58: uint16(27615), + 59: uint16(27628), + 60: uint16(27627), + 61: uint16(27635), + 62: uint16(27631), + 63: uint16(40638), + 64: uint16(27656), + 65: uint16(27667), + 66: uint16(27668), + 67: uint16(27675), + 68: uint16(27684), + 69: uint16(27683), + 70: uint16(27742), + 71: uint16(27733), + 72: uint16(27746), + 73: uint16(27754), + 74: uint16(27778), + 75: uint16(27789), + 76: uint16(27802), + 77: uint16(27777), + 78: uint16(27803), + 79: uint16(27774), + 80: uint16(27752), + 81: uint16(27763), + 82: uint16(27794), + 83: uint16(27792), + 84: uint16(27844), + 85: uint16(27889), + 86: uint16(27859), + 87: uint16(27837), + 88: uint16(27863), + 89: uint16(27845), + 90: uint16(27869), + 91: uint16(27822), + 92: uint16(27825), + 93: uint16(27838), + }, + 61: { + 0: uint16(27834), + 1: uint16(27867), + 2: uint16(27887), + 3: uint16(27865), + 4: uint16(27882), + 5: uint16(27935), + 6: uint16(34893), + 7: uint16(27958), + 8: uint16(27947), + 9: uint16(27965), + 10: uint16(27960), + 11: uint16(27929), + 12: uint16(27957), + 13: uint16(27955), + 14: uint16(27922), + 15: uint16(27916), + 16: uint16(28003), + 17: uint16(28051), + 18: uint16(28004), + 19: uint16(27994), + 20: uint16(28025), + 21: uint16(27993), + 22: uint16(28046), + 23: uint16(28053), + 24: uint16(28644), + 25: uint16(28037), + 26: uint16(28153), + 27: uint16(28181), + 28: uint16(28170), + 29: uint16(28085), + 30: uint16(28103), + 31: uint16(28134), + 32: uint16(28088), + 33: uint16(28102), + 34: uint16(28140), + 35: uint16(28126), + 36: uint16(28108), + 37: uint16(28136), + 38: uint16(28114), + 39: uint16(28101), + 40: uint16(28154), + 41: uint16(28121), + 42: uint16(28132), + 43: uint16(28117), + 44: uint16(28138), + 45: uint16(28142), + 46: uint16(28205), + 47: uint16(28270), + 48: uint16(28206), + 49: uint16(28185), + 50: uint16(28274), + 51: uint16(28255), + 52: uint16(28222), + 53: uint16(28195), + 54: uint16(28267), + 55: uint16(28203), + 56: uint16(28278), + 57: uint16(28237), + 58: uint16(28191), + 59: uint16(28227), + 60: uint16(28218), + 61: uint16(28238), + 62: uint16(28196), + 63: uint16(28415), + 64: uint16(28189), + 65: uint16(28216), + 66: uint16(28290), + 67: uint16(28330), + 68: uint16(28312), + 69: uint16(28361), + 70: uint16(28343), + 71: uint16(28371), + 72: uint16(28349), + 73: uint16(28335), + 74: uint16(28356), + 75: uint16(28338), + 76: uint16(28372), + 77: uint16(28373), + 78: uint16(28303), + 79: uint16(28325), + 80: uint16(28354), + 81: uint16(28319), + 82: uint16(28481), + 83: uint16(28433), + 84: uint16(28748), + 85: uint16(28396), + 86: uint16(28408), + 87: uint16(28414), + 88: uint16(28479), + 89: uint16(28402), + 90: uint16(28465), + 91: uint16(28399), + 92: uint16(28466), + 93: uint16(28364), + }, + 62: { + 0: uint16(28478), + 1: uint16(28435), + 2: uint16(28407), + 3: uint16(28550), + 4: uint16(28538), + 5: uint16(28536), + 6: uint16(28545), + 7: uint16(28544), + 8: uint16(28527), + 9: uint16(28507), + 10: uint16(28659), + 11: uint16(28525), + 12: uint16(28546), + 13: uint16(28540), + 14: uint16(28504), + 15: uint16(28558), + 16: uint16(28561), + 17: uint16(28610), + 18: uint16(28518), + 19: uint16(28595), + 20: uint16(28579), + 21: uint16(28577), + 22: uint16(28580), + 23: uint16(28601), + 24: uint16(28614), + 25: uint16(28586), + 26: uint16(28639), + 27: uint16(28629), + 28: uint16(28652), + 29: uint16(28628), + 30: uint16(28632), + 31: uint16(28657), + 32: uint16(28654), + 33: uint16(28635), + 34: uint16(28681), + 35: uint16(28683), + 36: uint16(28666), + 37: uint16(28689), + 38: uint16(28673), + 39: uint16(28687), + 40: uint16(28670), + 41: uint16(28699), + 42: uint16(28698), + 43: uint16(28532), + 44: uint16(28701), + 45: uint16(28696), + 46: uint16(28703), + 47: uint16(28720), + 48: uint16(28734), + 49: uint16(28722), + 50: uint16(28753), + 51: uint16(28771), + 52: uint16(28825), + 53: uint16(28818), + 54: uint16(28847), + 55: uint16(28913), + 56: uint16(28844), + 57: uint16(28856), + 58: uint16(28851), + 59: uint16(28846), + 60: uint16(28895), + 61: uint16(28875), + 62: uint16(28893), + 63: uint16(28889), + 64: uint16(28937), + 65: uint16(28925), + 66: uint16(28956), + 67: uint16(28953), + 68: uint16(29029), + 69: uint16(29013), + 70: uint16(29064), + 71: uint16(29030), + 72: uint16(29026), + 73: uint16(29004), + 74: uint16(29014), + 75: uint16(29036), + 76: uint16(29071), + 77: uint16(29179), + 78: uint16(29060), + 79: uint16(29077), + 80: uint16(29096), + 81: uint16(29100), + 82: uint16(29143), + 83: uint16(29113), + 84: uint16(29118), + 85: uint16(29138), + 86: uint16(29129), + 87: uint16(29140), + 88: uint16(29134), + 89: uint16(29152), + 90: uint16(29164), + 91: uint16(29159), + 92: uint16(29173), + 93: uint16(29180), + }, + 63: { + 0: uint16(29177), + 1: uint16(29183), + 2: uint16(29197), + 3: uint16(29200), + 4: uint16(29211), + 5: uint16(29224), + 6: uint16(29229), + 7: uint16(29228), + 8: uint16(29232), + 9: uint16(29234), + 10: uint16(29243), + 11: uint16(29244), + 12: uint16(29247), + 13: uint16(29248), + 14: uint16(29254), + 15: uint16(29259), + 16: uint16(29272), + 17: uint16(29300), + 18: uint16(29310), + 19: uint16(29314), + 20: uint16(29313), + 21: uint16(29319), + 22: uint16(29330), + 23: uint16(29334), + 24: uint16(29346), + 25: uint16(29351), + 26: uint16(29369), + 27: uint16(29362), + 28: uint16(29379), + 29: uint16(29382), + 30: uint16(29380), + 31: uint16(29390), + 32: uint16(29394), + 33: uint16(29410), + 34: uint16(29408), + 35: uint16(29409), + 36: uint16(29433), + 37: uint16(29431), + 38: uint16(20495), + 39: uint16(29463), + 40: uint16(29450), + 41: uint16(29468), + 42: uint16(29462), + 43: uint16(29469), + 44: uint16(29492), + 45: uint16(29487), + 46: uint16(29481), + 47: uint16(29477), + 48: uint16(29502), + 49: uint16(29518), + 50: uint16(29519), + 51: uint16(40664), + 52: uint16(29527), + 53: uint16(29546), + 54: uint16(29544), + 55: uint16(29552), + 56: uint16(29560), + 57: uint16(29557), + 58: uint16(29563), + 59: uint16(29562), + 60: uint16(29640), + 61: uint16(29619), + 62: uint16(29646), + 63: uint16(29627), + 64: uint16(29632), + 65: uint16(29669), + 66: uint16(29678), + 67: uint16(29662), + 68: uint16(29858), + 69: uint16(29701), + 70: uint16(29807), + 71: uint16(29733), + 72: uint16(29688), + 73: uint16(29746), + 74: uint16(29754), + 75: uint16(29781), + 76: uint16(29759), + 77: uint16(29791), + 78: uint16(29785), + 79: uint16(29761), + 80: uint16(29788), + 81: uint16(29801), + 82: uint16(29808), + 83: uint16(29795), + 84: uint16(29802), + 85: uint16(29814), + 86: uint16(29822), + 87: uint16(29835), + 88: uint16(29854), + 89: uint16(29863), + 90: uint16(29898), + 91: uint16(29903), + 92: uint16(29908), + 93: uint16(29681), + }, + 64: { + 0: uint16(29920), + 1: uint16(29923), + 2: uint16(29927), + 3: uint16(29929), + 4: uint16(29934), + 5: uint16(29938), + 6: uint16(29936), + 7: uint16(29937), + 8: uint16(29944), + 9: uint16(29943), + 10: uint16(29956), + 11: uint16(29955), + 12: uint16(29957), + 13: uint16(29964), + 14: uint16(29966), + 15: uint16(29965), + 16: uint16(29973), + 17: uint16(29971), + 18: uint16(29982), + 19: uint16(29990), + 20: uint16(29996), + 21: uint16(30012), + 22: uint16(30020), + 23: uint16(30029), + 24: uint16(30026), + 25: uint16(30025), + 26: uint16(30043), + 27: uint16(30022), + 28: uint16(30042), + 29: uint16(30057), + 30: uint16(30052), + 31: uint16(30055), + 32: uint16(30059), + 33: uint16(30061), + 34: uint16(30072), + 35: uint16(30070), + 36: uint16(30086), + 37: uint16(30087), + 38: uint16(30068), + 39: uint16(30090), + 40: uint16(30089), + 41: uint16(30082), + 42: uint16(30100), + 43: uint16(30106), + 44: uint16(30109), + 45: uint16(30117), + 46: uint16(30115), + 47: uint16(30146), + 48: uint16(30131), + 49: uint16(30147), + 50: uint16(30133), + 51: uint16(30141), + 52: uint16(30136), + 53: uint16(30140), + 54: uint16(30129), + 55: uint16(30157), + 56: uint16(30154), + 57: uint16(30162), + 58: uint16(30169), + 59: uint16(30179), + 60: uint16(30174), + 61: uint16(30206), + 62: uint16(30207), + 63: uint16(30204), + 64: uint16(30209), + 65: uint16(30192), + 66: uint16(30202), + 67: uint16(30194), + 68: uint16(30195), + 69: uint16(30219), + 70: uint16(30221), + 71: uint16(30217), + 72: uint16(30239), + 73: uint16(30247), + 74: uint16(30240), + 75: uint16(30241), + 76: uint16(30242), + 77: uint16(30244), + 78: uint16(30260), + 79: uint16(30256), + 80: uint16(30267), + 81: uint16(30279), + 82: uint16(30280), + 83: uint16(30278), + 84: uint16(30300), + 85: uint16(30296), + 86: uint16(30305), + 87: uint16(30306), + 88: uint16(30312), + 89: uint16(30313), + 90: uint16(30314), + 91: uint16(30311), + 92: uint16(30316), + 93: uint16(30320), + }, + 65: { + 0: uint16(30322), + 1: uint16(30326), + 2: uint16(30328), + 3: uint16(30332), + 4: uint16(30336), + 5: uint16(30339), + 6: uint16(30344), + 7: uint16(30347), + 8: uint16(30350), + 9: uint16(30358), + 10: uint16(30355), + 11: uint16(30361), + 12: uint16(30362), + 13: uint16(30384), + 14: uint16(30388), + 15: uint16(30392), + 16: uint16(30393), + 17: uint16(30394), + 18: uint16(30402), + 19: uint16(30413), + 20: uint16(30422), + 21: uint16(30418), + 22: uint16(30430), + 23: uint16(30433), + 24: uint16(30437), + 25: uint16(30439), + 26: uint16(30442), + 27: uint16(34351), + 28: uint16(30459), + 29: uint16(30472), + 30: uint16(30471), + 31: uint16(30468), + 32: uint16(30505), + 33: uint16(30500), + 34: uint16(30494), + 35: uint16(30501), + 36: uint16(30502), + 37: uint16(30491), + 38: uint16(30519), + 39: uint16(30520), + 40: uint16(30535), + 41: uint16(30554), + 42: uint16(30568), + 43: uint16(30571), + 44: uint16(30555), + 45: uint16(30565), + 46: uint16(30591), + 47: uint16(30590), + 48: uint16(30585), + 49: uint16(30606), + 50: uint16(30603), + 51: uint16(30609), + 52: uint16(30624), + 53: uint16(30622), + 54: uint16(30640), + 55: uint16(30646), + 56: uint16(30649), + 57: uint16(30655), + 58: uint16(30652), + 59: uint16(30653), + 60: uint16(30651), + 61: uint16(30663), + 62: uint16(30669), + 63: uint16(30679), + 64: uint16(30682), + 65: uint16(30684), + 66: uint16(30691), + 67: uint16(30702), + 68: uint16(30716), + 69: uint16(30732), + 70: uint16(30738), + 71: uint16(31014), + 72: uint16(30752), + 73: uint16(31018), + 74: uint16(30789), + 75: uint16(30862), + 76: uint16(30836), + 77: uint16(30854), + 78: uint16(30844), + 79: uint16(30874), + 80: uint16(30860), + 81: uint16(30883), + 82: uint16(30901), + 83: uint16(30890), + 84: uint16(30895), + 85: uint16(30929), + 86: uint16(30918), + 87: uint16(30923), + 88: uint16(30932), + 89: uint16(30910), + 90: uint16(30908), + 91: uint16(30917), + 92: uint16(30922), + 93: uint16(30956), + }, + 66: { + 0: uint16(30951), + 1: uint16(30938), + 2: uint16(30973), + 3: uint16(30964), + 4: uint16(30983), + 5: uint16(30994), + 6: uint16(30993), + 7: uint16(31001), + 8: uint16(31020), + 9: uint16(31019), + 10: uint16(31040), + 11: uint16(31072), + 12: uint16(31063), + 13: uint16(31071), + 14: uint16(31066), + 15: uint16(31061), + 16: uint16(31059), + 17: uint16(31098), + 18: uint16(31103), + 19: uint16(31114), + 20: uint16(31133), + 21: uint16(31143), + 22: uint16(40779), + 23: uint16(31146), + 24: uint16(31150), + 25: uint16(31155), + 26: uint16(31161), + 27: uint16(31162), + 28: uint16(31177), + 29: uint16(31189), + 30: uint16(31207), + 31: uint16(31212), + 32: uint16(31201), + 33: uint16(31203), + 34: uint16(31240), + 35: uint16(31245), + 36: uint16(31256), + 37: uint16(31257), + 38: uint16(31264), + 39: uint16(31263), + 40: uint16(31104), + 41: uint16(31281), + 42: uint16(31291), + 43: uint16(31294), + 44: uint16(31287), + 45: uint16(31299), + 46: uint16(31319), + 47: uint16(31305), + 48: uint16(31329), + 49: uint16(31330), + 50: uint16(31337), + 51: uint16(40861), + 52: uint16(31344), + 53: uint16(31353), + 54: uint16(31357), + 55: uint16(31368), + 56: uint16(31383), + 57: uint16(31381), + 58: uint16(31384), + 59: uint16(31382), + 60: uint16(31401), + 61: uint16(31432), + 62: uint16(31408), + 63: uint16(31414), + 64: uint16(31429), + 65: uint16(31428), + 66: uint16(31423), + 67: uint16(36995), + 68: uint16(31431), + 69: uint16(31434), + 70: uint16(31437), + 71: uint16(31439), + 72: uint16(31445), + 73: uint16(31443), + 74: uint16(31449), + 75: uint16(31450), + 76: uint16(31453), + 77: uint16(31457), + 78: uint16(31458), + 79: uint16(31462), + 80: uint16(31469), + 81: uint16(31472), + 82: uint16(31490), + 83: uint16(31503), + 84: uint16(31498), + 85: uint16(31494), + 86: uint16(31539), + 87: uint16(31512), + 88: uint16(31513), + 89: uint16(31518), + 90: uint16(31541), + 91: uint16(31528), + 92: uint16(31542), + 93: uint16(31568), + }, + 67: { + 0: uint16(31610), + 1: uint16(31492), + 2: uint16(31565), + 3: uint16(31499), + 4: uint16(31564), + 5: uint16(31557), + 6: uint16(31605), + 7: uint16(31589), + 8: uint16(31604), + 9: uint16(31591), + 10: uint16(31600), + 11: uint16(31601), + 12: uint16(31596), + 13: uint16(31598), + 14: uint16(31645), + 15: uint16(31640), + 16: uint16(31647), + 17: uint16(31629), + 18: uint16(31644), + 19: uint16(31642), + 20: uint16(31627), + 21: uint16(31634), + 22: uint16(31631), + 23: uint16(31581), + 24: uint16(31641), + 25: uint16(31691), + 26: uint16(31681), + 27: uint16(31692), + 28: uint16(31695), + 29: uint16(31668), + 30: uint16(31686), + 31: uint16(31709), + 32: uint16(31721), + 33: uint16(31761), + 34: uint16(31764), + 35: uint16(31718), + 36: uint16(31717), + 37: uint16(31840), + 38: uint16(31744), + 39: uint16(31751), + 40: uint16(31763), + 41: uint16(31731), + 42: uint16(31735), + 43: uint16(31767), + 44: uint16(31757), + 45: uint16(31734), + 46: uint16(31779), + 47: uint16(31783), + 48: uint16(31786), + 49: uint16(31775), + 50: uint16(31799), + 51: uint16(31787), + 52: uint16(31805), + 53: uint16(31820), + 54: uint16(31811), + 55: uint16(31828), + 56: uint16(31823), + 57: uint16(31808), + 58: uint16(31824), + 59: uint16(31832), + 60: uint16(31839), + 61: uint16(31844), + 62: uint16(31830), + 63: uint16(31845), + 64: uint16(31852), + 65: uint16(31861), + 66: uint16(31875), + 67: uint16(31888), + 68: uint16(31908), + 69: uint16(31917), + 70: uint16(31906), + 71: uint16(31915), + 72: uint16(31905), + 73: uint16(31912), + 74: uint16(31923), + 75: uint16(31922), + 76: uint16(31921), + 77: uint16(31918), + 78: uint16(31929), + 79: uint16(31933), + 80: uint16(31936), + 81: uint16(31941), + 82: uint16(31938), + 83: uint16(31960), + 84: uint16(31954), + 85: uint16(31964), + 86: uint16(31970), + 87: uint16(39739), + 88: uint16(31983), + 89: uint16(31986), + 90: uint16(31988), + 91: uint16(31990), + 92: uint16(31994), + 93: uint16(32006), + }, + 68: { + 0: uint16(32002), + 1: uint16(32028), + 2: uint16(32021), + 3: uint16(32010), + 4: uint16(32069), + 5: uint16(32075), + 6: uint16(32046), + 7: uint16(32050), + 8: uint16(32063), + 9: uint16(32053), + 10: uint16(32070), + 11: uint16(32115), + 12: uint16(32086), + 13: uint16(32078), + 14: uint16(32114), + 15: uint16(32104), + 16: uint16(32110), + 17: uint16(32079), + 18: uint16(32099), + 19: uint16(32147), + 20: uint16(32137), + 21: uint16(32091), + 22: uint16(32143), + 23: uint16(32125), + 24: uint16(32155), + 25: uint16(32186), + 26: uint16(32174), + 27: uint16(32163), + 28: uint16(32181), + 29: uint16(32199), + 30: uint16(32189), + 31: uint16(32171), + 32: uint16(32317), + 33: uint16(32162), + 34: uint16(32175), + 35: uint16(32220), + 36: uint16(32184), + 37: uint16(32159), + 38: uint16(32176), + 39: uint16(32216), + 40: uint16(32221), + 41: uint16(32228), + 42: uint16(32222), + 43: uint16(32251), + 44: uint16(32242), + 45: uint16(32225), + 46: uint16(32261), + 47: uint16(32266), + 48: uint16(32291), + 49: uint16(32289), + 50: uint16(32274), + 51: uint16(32305), + 52: uint16(32287), + 53: uint16(32265), + 54: uint16(32267), + 55: uint16(32290), + 56: uint16(32326), + 57: uint16(32358), + 58: uint16(32315), + 59: uint16(32309), + 60: uint16(32313), + 61: uint16(32323), + 62: uint16(32311), + 63: uint16(32306), + 64: uint16(32314), + 65: uint16(32359), + 66: uint16(32349), + 67: uint16(32342), + 68: uint16(32350), + 69: uint16(32345), + 70: uint16(32346), + 71: uint16(32377), + 72: uint16(32362), + 73: uint16(32361), + 74: uint16(32380), + 75: uint16(32379), + 76: uint16(32387), + 77: uint16(32213), + 78: uint16(32381), + 79: uint16(36782), + 80: uint16(32383), + 81: uint16(32392), + 82: uint16(32393), + 83: uint16(32396), + 84: uint16(32402), + 85: uint16(32400), + 86: uint16(32403), + 87: uint16(32404), + 88: uint16(32406), + 89: uint16(32398), + 90: uint16(32411), + 91: uint16(32412), + 92: uint16(32568), + 93: uint16(32570), + }, + 69: { + 0: uint16(32581), + 1: uint16(32588), + 2: uint16(32589), + 3: uint16(32590), + 4: uint16(32592), + 5: uint16(32593), + 6: uint16(32597), + 7: uint16(32596), + 8: uint16(32600), + 9: uint16(32607), + 10: uint16(32608), + 11: uint16(32616), + 12: uint16(32617), + 13: uint16(32615), + 14: uint16(32632), + 15: uint16(32642), + 16: uint16(32646), + 17: uint16(32643), + 18: uint16(32648), + 19: uint16(32647), + 20: uint16(32652), + 21: uint16(32660), + 22: uint16(32670), + 23: uint16(32669), + 24: uint16(32666), + 25: uint16(32675), + 26: uint16(32687), + 27: uint16(32690), + 28: uint16(32697), + 29: uint16(32686), + 30: uint16(32694), + 31: uint16(32696), + 32: uint16(35697), + 33: uint16(32709), + 34: uint16(32710), + 35: uint16(32714), + 36: uint16(32725), + 37: uint16(32724), + 38: uint16(32737), + 39: uint16(32742), + 40: uint16(32745), + 41: uint16(32755), + 42: uint16(32761), + 43: uint16(39132), + 44: uint16(32774), + 45: uint16(32772), + 46: uint16(32779), + 47: uint16(32786), + 48: uint16(32792), + 49: uint16(32793), + 50: uint16(32796), + 51: uint16(32801), + 52: uint16(32808), + 53: uint16(32831), + 54: uint16(32827), + 55: uint16(32842), + 56: uint16(32838), + 57: uint16(32850), + 58: uint16(32856), + 59: uint16(32858), + 60: uint16(32863), + 61: uint16(32866), + 62: uint16(32872), + 63: uint16(32883), + 64: uint16(32882), + 65: uint16(32880), + 66: uint16(32886), + 67: uint16(32889), + 68: uint16(32893), + 69: uint16(32895), + 70: uint16(32900), + 71: uint16(32902), + 72: uint16(32901), + 73: uint16(32923), + 74: uint16(32915), + 75: uint16(32922), + 76: uint16(32941), + 77: uint16(20880), + 78: uint16(32940), + 79: uint16(32987), + 80: uint16(32997), + 81: uint16(32985), + 82: uint16(32989), + 83: uint16(32964), + 84: uint16(32986), + 85: uint16(32982), + 86: uint16(33033), + 87: uint16(33007), + 88: uint16(33009), + 89: uint16(33051), + 90: uint16(33065), + 91: uint16(33059), + 92: uint16(33071), + 93: uint16(33099), + }, + 70: { + 0: uint16(38539), + 1: uint16(33094), + 2: uint16(33086), + 3: uint16(33107), + 4: uint16(33105), + 5: uint16(33020), + 6: uint16(33137), + 7: uint16(33134), + 8: uint16(33125), + 9: uint16(33126), + 10: uint16(33140), + 11: uint16(33155), + 12: uint16(33160), + 13: uint16(33162), + 14: uint16(33152), + 15: uint16(33154), + 16: uint16(33184), + 17: uint16(33173), + 18: uint16(33188), + 19: uint16(33187), + 20: uint16(33119), + 21: uint16(33171), + 22: uint16(33193), + 23: uint16(33200), + 24: uint16(33205), + 25: uint16(33214), + 26: uint16(33208), + 27: uint16(33213), + 28: uint16(33216), + 29: uint16(33218), + 30: uint16(33210), + 31: uint16(33225), + 32: uint16(33229), + 33: uint16(33233), + 34: uint16(33241), + 35: uint16(33240), + 36: uint16(33224), + 37: uint16(33242), + 38: uint16(33247), + 39: uint16(33248), + 40: uint16(33255), + 41: uint16(33274), + 42: uint16(33275), + 43: uint16(33278), + 44: uint16(33281), + 45: uint16(33282), + 46: uint16(33285), + 47: uint16(33287), + 48: uint16(33290), + 49: uint16(33293), + 50: uint16(33296), + 51: uint16(33302), + 52: uint16(33321), + 53: uint16(33323), + 54: uint16(33336), + 55: uint16(33331), + 56: uint16(33344), + 57: uint16(33369), + 58: uint16(33368), + 59: uint16(33373), + 60: uint16(33370), + 61: uint16(33375), + 62: uint16(33380), + 63: uint16(33378), + 64: uint16(33384), + 65: uint16(33386), + 66: uint16(33387), + 67: uint16(33326), + 68: uint16(33393), + 69: uint16(33399), + 70: uint16(33400), + 71: uint16(33406), + 72: uint16(33421), + 73: uint16(33426), + 74: uint16(33451), + 75: uint16(33439), + 76: uint16(33467), + 77: uint16(33452), + 78: uint16(33505), + 79: uint16(33507), + 80: uint16(33503), + 81: uint16(33490), + 82: uint16(33524), + 83: uint16(33523), + 84: uint16(33530), + 85: uint16(33683), + 86: uint16(33539), + 87: uint16(33531), + 88: uint16(33529), + 89: uint16(33502), + 90: uint16(33542), + 91: uint16(33500), + 92: uint16(33545), + 93: uint16(33497), + }, + 71: { + 0: uint16(33589), + 1: uint16(33588), + 2: uint16(33558), + 3: uint16(33586), + 4: uint16(33585), + 5: uint16(33600), + 6: uint16(33593), + 7: uint16(33616), + 8: uint16(33605), + 9: uint16(33583), + 10: uint16(33579), + 11: uint16(33559), + 12: uint16(33560), + 13: uint16(33669), + 14: uint16(33690), + 15: uint16(33706), + 16: uint16(33695), + 17: uint16(33698), + 18: uint16(33686), + 19: uint16(33571), + 20: uint16(33678), + 21: uint16(33671), + 22: uint16(33674), + 23: uint16(33660), + 24: uint16(33717), + 25: uint16(33651), + 26: uint16(33653), + 27: uint16(33696), + 28: uint16(33673), + 29: uint16(33704), + 30: uint16(33780), + 31: uint16(33811), + 32: uint16(33771), + 33: uint16(33742), + 34: uint16(33789), + 35: uint16(33795), + 36: uint16(33752), + 37: uint16(33803), + 38: uint16(33729), + 39: uint16(33783), + 40: uint16(33799), + 41: uint16(33760), + 42: uint16(33778), + 43: uint16(33805), + 44: uint16(33826), + 45: uint16(33824), + 46: uint16(33725), + 47: uint16(33848), + 48: uint16(34054), + 49: uint16(33787), + 50: uint16(33901), + 51: uint16(33834), + 52: uint16(33852), + 53: uint16(34138), + 54: uint16(33924), + 55: uint16(33911), + 56: uint16(33899), + 57: uint16(33965), + 58: uint16(33902), + 59: uint16(33922), + 60: uint16(33897), + 61: uint16(33862), + 62: uint16(33836), + 63: uint16(33903), + 64: uint16(33913), + 65: uint16(33845), + 66: uint16(33994), + 67: uint16(33890), + 68: uint16(33977), + 69: uint16(33983), + 70: uint16(33951), + 71: uint16(34009), + 72: uint16(33997), + 73: uint16(33979), + 74: uint16(34010), + 75: uint16(34000), + 76: uint16(33985), + 77: uint16(33990), + 78: uint16(34006), + 79: uint16(33953), + 80: uint16(34081), + 81: uint16(34047), + 82: uint16(34036), + 83: uint16(34071), + 84: uint16(34072), + 85: uint16(34092), + 86: uint16(34079), + 87: uint16(34069), + 88: uint16(34068), + 89: uint16(34044), + 90: uint16(34112), + 91: uint16(34147), + 92: uint16(34136), + 93: uint16(34120), + }, + 72: { + 0: uint16(34113), + 1: uint16(34306), + 2: uint16(34123), + 3: uint16(34133), + 4: uint16(34176), + 5: uint16(34212), + 6: uint16(34184), + 7: uint16(34193), + 8: uint16(34186), + 9: uint16(34216), + 10: uint16(34157), + 11: uint16(34196), + 12: uint16(34203), + 13: uint16(34282), + 14: uint16(34183), + 15: uint16(34204), + 16: uint16(34167), + 17: uint16(34174), + 18: uint16(34192), + 19: uint16(34249), + 20: uint16(34234), + 21: uint16(34255), + 22: uint16(34233), + 23: uint16(34256), + 24: uint16(34261), + 25: uint16(34269), + 26: uint16(34277), + 27: uint16(34268), + 28: uint16(34297), + 29: uint16(34314), + 30: uint16(34323), + 31: uint16(34315), + 32: uint16(34302), + 33: uint16(34298), + 34: uint16(34310), + 35: uint16(34338), + 36: uint16(34330), + 37: uint16(34352), + 38: uint16(34367), + 39: uint16(34381), + 40: uint16(20053), + 41: uint16(34388), + 42: uint16(34399), + 43: uint16(34407), + 44: uint16(34417), + 45: uint16(34451), + 46: uint16(34467), + 47: uint16(34473), + 48: uint16(34474), + 49: uint16(34443), + 50: uint16(34444), + 51: uint16(34486), + 52: uint16(34479), + 53: uint16(34500), + 54: uint16(34502), + 55: uint16(34480), + 56: uint16(34505), + 57: uint16(34851), + 58: uint16(34475), + 59: uint16(34516), + 60: uint16(34526), + 61: uint16(34537), + 62: uint16(34540), + 63: uint16(34527), + 64: uint16(34523), + 65: uint16(34543), + 66: uint16(34578), + 67: uint16(34566), + 68: uint16(34568), + 69: uint16(34560), + 70: uint16(34563), + 71: uint16(34555), + 72: uint16(34577), + 73: uint16(34569), + 74: uint16(34573), + 75: uint16(34553), + 76: uint16(34570), + 77: uint16(34612), + 78: uint16(34623), + 79: uint16(34615), + 80: uint16(34619), + 81: uint16(34597), + 82: uint16(34601), + 83: uint16(34586), + 84: uint16(34656), + 85: uint16(34655), + 86: uint16(34680), + 87: uint16(34636), + 88: uint16(34638), + 89: uint16(34676), + 90: uint16(34647), + 91: uint16(34664), + 92: uint16(34670), + 93: uint16(34649), + }, + 73: { + 0: uint16(34643), + 1: uint16(34659), + 2: uint16(34666), + 3: uint16(34821), + 4: uint16(34722), + 5: uint16(34719), + 6: uint16(34690), + 7: uint16(34735), + 8: uint16(34763), + 9: uint16(34749), + 10: uint16(34752), + 11: uint16(34768), + 12: uint16(38614), + 13: uint16(34731), + 14: uint16(34756), + 15: uint16(34739), + 16: uint16(34759), + 17: uint16(34758), + 18: uint16(34747), + 19: uint16(34799), + 20: uint16(34802), + 21: uint16(34784), + 22: uint16(34831), + 23: uint16(34829), + 24: uint16(34814), + 25: uint16(34806), + 26: uint16(34807), + 27: uint16(34830), + 28: uint16(34770), + 29: uint16(34833), + 30: uint16(34838), + 31: uint16(34837), + 32: uint16(34850), + 33: uint16(34849), + 34: uint16(34865), + 35: uint16(34870), + 36: uint16(34873), + 37: uint16(34855), + 38: uint16(34875), + 39: uint16(34884), + 40: uint16(34882), + 41: uint16(34898), + 42: uint16(34905), + 43: uint16(34910), + 44: uint16(34914), + 45: uint16(34923), + 46: uint16(34945), + 47: uint16(34942), + 48: uint16(34974), + 49: uint16(34933), + 50: uint16(34941), + 51: uint16(34997), + 52: uint16(34930), + 53: uint16(34946), + 54: uint16(34967), + 55: uint16(34962), + 56: uint16(34990), + 57: uint16(34969), + 58: uint16(34978), + 59: uint16(34957), + 60: uint16(34980), + 61: uint16(34992), + 62: uint16(35007), + 63: uint16(34993), + 64: uint16(35011), + 65: uint16(35012), + 66: uint16(35028), + 67: uint16(35032), + 68: uint16(35033), + 69: uint16(35037), + 70: uint16(35065), + 71: uint16(35074), + 72: uint16(35068), + 73: uint16(35060), + 74: uint16(35048), + 75: uint16(35058), + 76: uint16(35076), + 77: uint16(35084), + 78: uint16(35082), + 79: uint16(35091), + 80: uint16(35139), + 81: uint16(35102), + 82: uint16(35109), + 83: uint16(35114), + 84: uint16(35115), + 85: uint16(35137), + 86: uint16(35140), + 87: uint16(35131), + 88: uint16(35126), + 89: uint16(35128), + 90: uint16(35148), + 91: uint16(35101), + 92: uint16(35168), + 93: uint16(35166), + }, + 74: { + 0: uint16(35174), + 1: uint16(35172), + 2: uint16(35181), + 3: uint16(35178), + 4: uint16(35183), + 5: uint16(35188), + 6: uint16(35191), + 7: uint16(35198), + 8: uint16(35203), + 9: uint16(35208), + 10: uint16(35210), + 11: uint16(35219), + 12: uint16(35224), + 13: uint16(35233), + 14: uint16(35241), + 15: uint16(35238), + 16: uint16(35244), + 17: uint16(35247), + 18: uint16(35250), + 19: uint16(35258), + 20: uint16(35261), + 21: uint16(35263), + 22: uint16(35264), + 23: uint16(35290), + 24: uint16(35292), + 25: uint16(35293), + 26: uint16(35303), + 27: uint16(35316), + 28: uint16(35320), + 29: uint16(35331), + 30: uint16(35350), + 31: uint16(35344), + 32: uint16(35340), + 33: uint16(35355), + 34: uint16(35357), + 35: uint16(35365), + 36: uint16(35382), + 37: uint16(35393), + 38: uint16(35419), + 39: uint16(35410), + 40: uint16(35398), + 41: uint16(35400), + 42: uint16(35452), + 43: uint16(35437), + 44: uint16(35436), + 45: uint16(35426), + 46: uint16(35461), + 47: uint16(35458), + 48: uint16(35460), + 49: uint16(35496), + 50: uint16(35489), + 51: uint16(35473), + 52: uint16(35493), + 53: uint16(35494), + 54: uint16(35482), + 55: uint16(35491), + 56: uint16(35524), + 57: uint16(35533), + 58: uint16(35522), + 59: uint16(35546), + 60: uint16(35563), + 61: uint16(35571), + 62: uint16(35559), + 63: uint16(35556), + 64: uint16(35569), + 65: uint16(35604), + 66: uint16(35552), + 67: uint16(35554), + 68: uint16(35575), + 69: uint16(35550), + 70: uint16(35547), + 71: uint16(35596), + 72: uint16(35591), + 73: uint16(35610), + 74: uint16(35553), + 75: uint16(35606), + 76: uint16(35600), + 77: uint16(35607), + 78: uint16(35616), + 79: uint16(35635), + 80: uint16(38827), + 81: uint16(35622), + 82: uint16(35627), + 83: uint16(35646), + 84: uint16(35624), + 85: uint16(35649), + 86: uint16(35660), + 87: uint16(35663), + 88: uint16(35662), + 89: uint16(35657), + 90: uint16(35670), + 91: uint16(35675), + 92: uint16(35674), + 93: uint16(35691), + }, + 75: { + 0: uint16(35679), + 1: uint16(35692), + 2: uint16(35695), + 3: uint16(35700), + 4: uint16(35709), + 5: uint16(35712), + 6: uint16(35724), + 7: uint16(35726), + 8: uint16(35730), + 9: uint16(35731), + 10: uint16(35734), + 11: uint16(35737), + 12: uint16(35738), + 13: uint16(35898), + 14: uint16(35905), + 15: uint16(35903), + 16: uint16(35912), + 17: uint16(35916), + 18: uint16(35918), + 19: uint16(35920), + 20: uint16(35925), + 21: uint16(35938), + 22: uint16(35948), + 23: uint16(35960), + 24: uint16(35962), + 25: uint16(35970), + 26: uint16(35977), + 27: uint16(35973), + 28: uint16(35978), + 29: uint16(35981), + 30: uint16(35982), + 31: uint16(35988), + 32: uint16(35964), + 33: uint16(35992), + 34: uint16(25117), + 35: uint16(36013), + 36: uint16(36010), + 37: uint16(36029), + 38: uint16(36018), + 39: uint16(36019), + 40: uint16(36014), + 41: uint16(36022), + 42: uint16(36040), + 43: uint16(36033), + 44: uint16(36068), + 45: uint16(36067), + 46: uint16(36058), + 47: uint16(36093), + 48: uint16(36090), + 49: uint16(36091), + 50: uint16(36100), + 51: uint16(36101), + 52: uint16(36106), + 53: uint16(36103), + 54: uint16(36111), + 55: uint16(36109), + 56: uint16(36112), + 57: uint16(40782), + 58: uint16(36115), + 59: uint16(36045), + 60: uint16(36116), + 61: uint16(36118), + 62: uint16(36199), + 63: uint16(36205), + 64: uint16(36209), + 65: uint16(36211), + 66: uint16(36225), + 67: uint16(36249), + 68: uint16(36290), + 69: uint16(36286), + 70: uint16(36282), + 71: uint16(36303), + 72: uint16(36314), + 73: uint16(36310), + 74: uint16(36300), + 75: uint16(36315), + 76: uint16(36299), + 77: uint16(36330), + 78: uint16(36331), + 79: uint16(36319), + 80: uint16(36323), + 81: uint16(36348), + 82: uint16(36360), + 83: uint16(36361), + 84: uint16(36351), + 85: uint16(36381), + 86: uint16(36382), + 87: uint16(36368), + 88: uint16(36383), + 89: uint16(36418), + 90: uint16(36405), + 91: uint16(36400), + 92: uint16(36404), + 93: uint16(36426), + }, + 76: { + 0: uint16(36423), + 1: uint16(36425), + 2: uint16(36428), + 3: uint16(36432), + 4: uint16(36424), + 5: uint16(36441), + 6: uint16(36452), + 7: uint16(36448), + 8: uint16(36394), + 9: uint16(36451), + 10: uint16(36437), + 11: uint16(36470), + 12: uint16(36466), + 13: uint16(36476), + 14: uint16(36481), + 15: uint16(36487), + 16: uint16(36485), + 17: uint16(36484), + 18: uint16(36491), + 19: uint16(36490), + 20: uint16(36499), + 21: uint16(36497), + 22: uint16(36500), + 23: uint16(36505), + 24: uint16(36522), + 25: uint16(36513), + 26: uint16(36524), + 27: uint16(36528), + 28: uint16(36550), + 29: uint16(36529), + 30: uint16(36542), + 31: uint16(36549), + 32: uint16(36552), + 33: uint16(36555), + 34: uint16(36571), + 35: uint16(36579), + 36: uint16(36604), + 37: uint16(36603), + 38: uint16(36587), + 39: uint16(36606), + 40: uint16(36618), + 41: uint16(36613), + 42: uint16(36629), + 43: uint16(36626), + 44: uint16(36633), + 45: uint16(36627), + 46: uint16(36636), + 47: uint16(36639), + 48: uint16(36635), + 49: uint16(36620), + 50: uint16(36646), + 51: uint16(36659), + 52: uint16(36667), + 53: uint16(36665), + 54: uint16(36677), + 55: uint16(36674), + 56: uint16(36670), + 57: uint16(36684), + 58: uint16(36681), + 59: uint16(36678), + 60: uint16(36686), + 61: uint16(36695), + 62: uint16(36700), + 63: uint16(36706), + 64: uint16(36707), + 65: uint16(36708), + 66: uint16(36764), + 67: uint16(36767), + 68: uint16(36771), + 69: uint16(36781), + 70: uint16(36783), + 71: uint16(36791), + 72: uint16(36826), + 73: uint16(36837), + 74: uint16(36834), + 75: uint16(36842), + 76: uint16(36847), + 77: uint16(36999), + 78: uint16(36852), + 79: uint16(36869), + 80: uint16(36857), + 81: uint16(36858), + 82: uint16(36881), + 83: uint16(36885), + 84: uint16(36897), + 85: uint16(36877), + 86: uint16(36894), + 87: uint16(36886), + 88: uint16(36875), + 89: uint16(36903), + 90: uint16(36918), + 91: uint16(36917), + 92: uint16(36921), + 93: uint16(36856), + }, + 77: { + 0: uint16(36943), + 1: uint16(36944), + 2: uint16(36945), + 3: uint16(36946), + 4: uint16(36878), + 5: uint16(36937), + 6: uint16(36926), + 7: uint16(36950), + 8: uint16(36952), + 9: uint16(36958), + 10: uint16(36968), + 11: uint16(36975), + 12: uint16(36982), + 13: uint16(38568), + 14: uint16(36978), + 15: uint16(36994), + 16: uint16(36989), + 17: uint16(36993), + 18: uint16(36992), + 19: uint16(37002), + 20: uint16(37001), + 21: uint16(37007), + 22: uint16(37032), + 23: uint16(37039), + 24: uint16(37041), + 25: uint16(37045), + 26: uint16(37090), + 27: uint16(37092), + 28: uint16(25160), + 29: uint16(37083), + 30: uint16(37122), + 31: uint16(37138), + 32: uint16(37145), + 33: uint16(37170), + 34: uint16(37168), + 35: uint16(37194), + 36: uint16(37206), + 37: uint16(37208), + 38: uint16(37219), + 39: uint16(37221), + 40: uint16(37225), + 41: uint16(37235), + 42: uint16(37234), + 43: uint16(37259), + 44: uint16(37257), + 45: uint16(37250), + 46: uint16(37282), + 47: uint16(37291), + 48: uint16(37295), + 49: uint16(37290), + 50: uint16(37301), + 51: uint16(37300), + 52: uint16(37306), + 53: uint16(37312), + 54: uint16(37313), + 55: uint16(37321), + 56: uint16(37323), + 57: uint16(37328), + 58: uint16(37334), + 59: uint16(37343), + 60: uint16(37345), + 61: uint16(37339), + 62: uint16(37372), + 63: uint16(37365), + 64: uint16(37366), + 65: uint16(37406), + 66: uint16(37375), + 67: uint16(37396), + 68: uint16(37420), + 69: uint16(37397), + 70: uint16(37393), + 71: uint16(37470), + 72: uint16(37463), + 73: uint16(37445), + 74: uint16(37449), + 75: uint16(37476), + 76: uint16(37448), + 77: uint16(37525), + 78: uint16(37439), + 79: uint16(37451), + 80: uint16(37456), + 81: uint16(37532), + 82: uint16(37526), + 83: uint16(37523), + 84: uint16(37531), + 85: uint16(37466), + 86: uint16(37583), + 87: uint16(37561), + 88: uint16(37559), + 89: uint16(37609), + 90: uint16(37647), + 91: uint16(37626), + 92: uint16(37700), + 93: uint16(37678), + }, + 78: { + 0: uint16(37657), + 1: uint16(37666), + 2: uint16(37658), + 3: uint16(37667), + 4: uint16(37690), + 5: uint16(37685), + 6: uint16(37691), + 7: uint16(37724), + 8: uint16(37728), + 9: uint16(37756), + 10: uint16(37742), + 11: uint16(37718), + 12: uint16(37808), + 13: uint16(37804), + 14: uint16(37805), + 15: uint16(37780), + 16: uint16(37817), + 17: uint16(37846), + 18: uint16(37847), + 19: uint16(37864), + 20: uint16(37861), + 21: uint16(37848), + 22: uint16(37827), + 23: uint16(37853), + 24: uint16(37840), + 25: uint16(37832), + 26: uint16(37860), + 27: uint16(37914), + 28: uint16(37908), + 29: uint16(37907), + 30: uint16(37891), + 31: uint16(37895), + 32: uint16(37904), + 33: uint16(37942), + 34: uint16(37931), + 35: uint16(37941), + 36: uint16(37921), + 37: uint16(37946), + 38: uint16(37953), + 39: uint16(37970), + 40: uint16(37956), + 41: uint16(37979), + 42: uint16(37984), + 43: uint16(37986), + 44: uint16(37982), + 45: uint16(37994), + 46: uint16(37417), + 47: uint16(38000), + 48: uint16(38005), + 49: uint16(38007), + 50: uint16(38013), + 51: uint16(37978), + 52: uint16(38012), + 53: uint16(38014), + 54: uint16(38017), + 55: uint16(38015), + 56: uint16(38274), + 57: uint16(38279), + 58: uint16(38282), + 59: uint16(38292), + 60: uint16(38294), + 61: uint16(38296), + 62: uint16(38297), + 63: uint16(38304), + 64: uint16(38312), + 65: uint16(38311), + 66: uint16(38317), + 67: uint16(38332), + 68: uint16(38331), + 69: uint16(38329), + 70: uint16(38334), + 71: uint16(38346), + 72: uint16(28662), + 73: uint16(38339), + 74: uint16(38349), + 75: uint16(38348), + 76: uint16(38357), + 77: uint16(38356), + 78: uint16(38358), + 79: uint16(38364), + 80: uint16(38369), + 81: uint16(38373), + 82: uint16(38370), + 83: uint16(38433), + 84: uint16(38440), + 85: uint16(38446), + 86: uint16(38447), + 87: uint16(38466), + 88: uint16(38476), + 89: uint16(38479), + 90: uint16(38475), + 91: uint16(38519), + 92: uint16(38492), + 93: uint16(38494), + }, + 79: { + 0: uint16(38493), + 1: uint16(38495), + 2: uint16(38502), + 3: uint16(38514), + 4: uint16(38508), + 5: uint16(38541), + 6: uint16(38552), + 7: uint16(38549), + 8: uint16(38551), + 9: uint16(38570), + 10: uint16(38567), + 11: uint16(38577), + 12: uint16(38578), + 13: uint16(38576), + 14: uint16(38580), + 15: uint16(38582), + 16: uint16(38584), + 17: uint16(38585), + 18: uint16(38606), + 19: uint16(38603), + 20: uint16(38601), + 21: uint16(38605), + 22: uint16(35149), + 23: uint16(38620), + 24: uint16(38669), + 25: uint16(38613), + 26: uint16(38649), + 27: uint16(38660), + 28: uint16(38662), + 29: uint16(38664), + 30: uint16(38675), + 31: uint16(38670), + 32: uint16(38673), + 33: uint16(38671), + 34: uint16(38678), + 35: uint16(38681), + 36: uint16(38692), + 37: uint16(38698), + 38: uint16(38704), + 39: uint16(38713), + 40: uint16(38717), + 41: uint16(38718), + 42: uint16(38724), + 43: uint16(38726), + 44: uint16(38728), + 45: uint16(38722), + 46: uint16(38729), + 47: uint16(38748), + 48: uint16(38752), + 49: uint16(38756), + 50: uint16(38758), + 51: uint16(38760), + 52: uint16(21202), + 53: uint16(38763), + 54: uint16(38769), + 55: uint16(38777), + 56: uint16(38789), + 57: uint16(38780), + 58: uint16(38785), + 59: uint16(38778), + 60: uint16(38790), + 61: uint16(38795), + 62: uint16(38799), + 63: uint16(38800), + 64: uint16(38812), + 65: uint16(38824), + 66: uint16(38822), + 67: uint16(38819), + 68: uint16(38835), + 69: uint16(38836), + 70: uint16(38851), + 71: uint16(38854), + 72: uint16(38856), + 73: uint16(38859), + 74: uint16(38876), + 75: uint16(38893), + 76: uint16(40783), + 77: uint16(38898), + 78: uint16(31455), + 79: uint16(38902), + 80: uint16(38901), + 81: uint16(38927), + 82: uint16(38924), + 83: uint16(38968), + 84: uint16(38948), + 85: uint16(38945), + 86: uint16(38967), + 87: uint16(38973), + 88: uint16(38982), + 89: uint16(38991), + 90: uint16(38987), + 91: uint16(39019), + 92: uint16(39023), + 93: uint16(39024), + }, + 80: { + 0: uint16(39025), + 1: uint16(39028), + 2: uint16(39027), + 3: uint16(39082), + 4: uint16(39087), + 5: uint16(39089), + 6: uint16(39094), + 7: uint16(39108), + 8: uint16(39107), + 9: uint16(39110), + 10: uint16(39145), + 11: uint16(39147), + 12: uint16(39171), + 13: uint16(39177), + 14: uint16(39186), + 15: uint16(39188), + 16: uint16(39192), + 17: uint16(39201), + 18: uint16(39197), + 19: uint16(39198), + 20: uint16(39204), + 21: uint16(39200), + 22: uint16(39212), + 23: uint16(39214), + 24: uint16(39229), + 25: uint16(39230), + 26: uint16(39234), + 27: uint16(39241), + 28: uint16(39237), + 29: uint16(39248), + 30: uint16(39243), + 31: uint16(39249), + 32: uint16(39250), + 33: uint16(39244), + 34: uint16(39253), + 35: uint16(39319), + 36: uint16(39320), + 37: uint16(39333), + 38: uint16(39341), + 39: uint16(39342), + 40: uint16(39356), + 41: uint16(39391), + 42: uint16(39387), + 43: uint16(39389), + 44: uint16(39384), + 45: uint16(39377), + 46: uint16(39405), + 47: uint16(39406), + 48: uint16(39409), + 49: uint16(39410), + 50: uint16(39419), + 51: uint16(39416), + 52: uint16(39425), + 53: uint16(39439), + 54: uint16(39429), + 55: uint16(39394), + 56: uint16(39449), + 57: uint16(39467), + 58: uint16(39479), + 59: uint16(39493), + 60: uint16(39490), + 61: uint16(39488), + 62: uint16(39491), + 63: uint16(39486), + 64: uint16(39509), + 65: uint16(39501), + 66: uint16(39515), + 67: uint16(39511), + 68: uint16(39519), + 69: uint16(39522), + 70: uint16(39525), + 71: uint16(39524), + 72: uint16(39529), + 73: uint16(39531), + 74: uint16(39530), + 75: uint16(39597), + 76: uint16(39600), + 77: uint16(39612), + 78: uint16(39616), + 79: uint16(39631), + 80: uint16(39633), + 81: uint16(39635), + 82: uint16(39636), + 83: uint16(39646), + 84: uint16(39647), + 85: uint16(39650), + 86: uint16(39651), + 87: uint16(39654), + 88: uint16(39663), + 89: uint16(39659), + 90: uint16(39662), + 91: uint16(39668), + 92: uint16(39665), + 93: uint16(39671), + }, + 81: { + 0: uint16(39675), + 1: uint16(39686), + 2: uint16(39704), + 3: uint16(39706), + 4: uint16(39711), + 5: uint16(39714), + 6: uint16(39715), + 7: uint16(39717), + 8: uint16(39719), + 9: uint16(39720), + 10: uint16(39721), + 11: uint16(39722), + 12: uint16(39726), + 13: uint16(39727), + 14: uint16(39730), + 15: uint16(39748), + 16: uint16(39747), + 17: uint16(39759), + 18: uint16(39757), + 19: uint16(39758), + 20: uint16(39761), + 21: uint16(39768), + 22: uint16(39796), + 23: uint16(39827), + 24: uint16(39811), + 25: uint16(39825), + 26: uint16(39830), + 27: uint16(39831), + 28: uint16(39839), + 29: uint16(39840), + 30: uint16(39848), + 31: uint16(39860), + 32: uint16(39872), + 33: uint16(39882), + 34: uint16(39865), + 35: uint16(39878), + 36: uint16(39887), + 37: uint16(39889), + 38: uint16(39890), + 39: uint16(39907), + 40: uint16(39906), + 41: uint16(39908), + 42: uint16(39892), + 43: uint16(39905), + 44: uint16(39994), + 45: uint16(39922), + 46: uint16(39921), + 47: uint16(39920), + 48: uint16(39957), + 49: uint16(39956), + 50: uint16(39945), + 51: uint16(39955), + 52: uint16(39948), + 53: uint16(39942), + 54: uint16(39944), + 55: uint16(39954), + 56: uint16(39946), + 57: uint16(39940), + 58: uint16(39982), + 59: uint16(39963), + 60: uint16(39973), + 61: uint16(39972), + 62: uint16(39969), + 63: uint16(39984), + 64: uint16(40007), + 65: uint16(39986), + 66: uint16(40006), + 67: uint16(39998), + 68: uint16(40026), + 69: uint16(40032), + 70: uint16(40039), + 71: uint16(40054), + 72: uint16(40056), + 73: uint16(40167), + 74: uint16(40172), + 75: uint16(40176), + 76: uint16(40201), + 77: uint16(40200), + 78: uint16(40171), + 79: uint16(40195), + 80: uint16(40198), + 81: uint16(40234), + 82: uint16(40230), + 83: uint16(40367), + 84: uint16(40227), + 85: uint16(40223), + 86: uint16(40260), + 87: uint16(40213), + 88: uint16(40210), + 89: uint16(40257), + 90: uint16(40255), + 91: uint16(40254), + 92: uint16(40262), + 93: uint16(40264), + }, + 82: { + 0: uint16(40285), + 1: uint16(40286), + 2: uint16(40292), + 3: uint16(40273), + 4: uint16(40272), + 5: uint16(40281), + 6: uint16(40306), + 7: uint16(40329), + 8: uint16(40327), + 9: uint16(40363), + 10: uint16(40303), + 11: uint16(40314), + 12: uint16(40346), + 13: uint16(40356), + 14: uint16(40361), + 15: uint16(40370), + 16: uint16(40388), + 17: uint16(40385), + 18: uint16(40379), + 19: uint16(40376), + 20: uint16(40378), + 21: uint16(40390), + 22: uint16(40399), + 23: uint16(40386), + 24: uint16(40409), + 25: uint16(40403), + 26: uint16(40440), + 27: uint16(40422), + 28: uint16(40429), + 29: uint16(40431), + 30: uint16(40445), + 31: uint16(40474), + 32: uint16(40475), + 33: uint16(40478), + 34: uint16(40565), + 35: uint16(40569), + 36: uint16(40573), + 37: uint16(40577), + 38: uint16(40584), + 39: uint16(40587), + 40: uint16(40588), + 41: uint16(40594), + 42: uint16(40597), + 43: uint16(40593), + 44: uint16(40605), + 45: uint16(40613), + 46: uint16(40617), + 47: uint16(40632), + 48: uint16(40618), + 49: uint16(40621), + 50: uint16(38753), + 51: uint16(40652), + 52: uint16(40654), + 53: uint16(40655), + 54: uint16(40656), + 55: uint16(40660), + 56: uint16(40668), + 57: uint16(40670), + 58: uint16(40669), + 59: uint16(40672), + 60: uint16(40677), + 61: uint16(40680), + 62: uint16(40687), + 63: uint16(40692), + 64: uint16(40694), + 65: uint16(40695), + 66: uint16(40697), + 67: uint16(40699), + 68: uint16(40700), + 69: uint16(40701), + 70: uint16(40711), + 71: uint16(40712), + 72: uint16(30391), + 73: uint16(40725), + 74: uint16(40737), + 75: uint16(40748), + 76: uint16(40766), + 77: uint16(40778), + 78: uint16(40786), + 79: uint16(40788), + 80: uint16(40803), + 81: uint16(40799), + 82: uint16(40800), + 83: uint16(40801), + 84: uint16(40806), + 85: uint16(40807), + 86: uint16(40812), + 87: uint16(40810), + 88: uint16(40823), + 89: uint16(40818), + 90: uint16(40822), + 91: uint16(40853), + 92: uint16(40860), + 93: uint16(40864), + }, + 83: { + 0: uint16(22575), + 1: uint16(27079), + 2: uint16(36953), + 3: uint16(29796), + 4: uint16(20956), + 5: uint16(29081), + }, +} + +var _gb18030 = [126][190]uint16{ + 0: { + 0: uint16(19970), + 1: uint16(19972), + 2: uint16(19973), + 3: uint16(19974), + 4: uint16(19983), + 5: uint16(19986), + 6: uint16(19991), + 7: uint16(19999), + 8: uint16(20000), + 9: uint16(20001), + 10: uint16(20003), + 11: uint16(20006), + 12: uint16(20009), + 13: uint16(20014), + 14: uint16(20015), + 15: uint16(20017), + 16: uint16(20019), + 17: uint16(20021), + 18: uint16(20023), + 19: uint16(20028), + 20: uint16(20032), + 21: uint16(20033), + 22: uint16(20034), + 23: uint16(20036), + 24: uint16(20038), + 25: uint16(20042), + 26: uint16(20049), + 27: uint16(20053), + 28: uint16(20055), + 29: uint16(20058), + 30: uint16(20059), + 31: uint16(20066), + 32: uint16(20067), + 33: uint16(20068), + 34: uint16(20069), + 35: uint16(20071), + 36: uint16(20072), + 37: uint16(20074), + 38: uint16(20075), + 39: uint16(20076), + 40: uint16(20077), + 41: uint16(20078), + 42: uint16(20079), + 43: uint16(20082), + 44: uint16(20084), + 45: uint16(20085), + 46: uint16(20086), + 47: uint16(20087), + 48: uint16(20088), + 49: uint16(20089), + 50: uint16(20090), + 51: uint16(20091), + 52: uint16(20092), + 53: uint16(20093), + 54: uint16(20095), + 55: uint16(20096), + 56: uint16(20097), + 57: uint16(20098), + 58: uint16(20099), + 59: uint16(20100), + 60: uint16(20101), + 61: uint16(20103), + 62: uint16(20106), + 63: uint16(20112), + 64: uint16(20118), + 65: uint16(20119), + 66: uint16(20121), + 67: uint16(20124), + 68: uint16(20125), + 69: uint16(20126), + 70: uint16(20131), + 71: uint16(20138), + 72: uint16(20143), + 73: uint16(20144), + 74: uint16(20145), + 75: uint16(20148), + 76: uint16(20150), + 77: uint16(20151), + 78: uint16(20152), + 79: uint16(20153), + 80: uint16(20156), + 81: uint16(20157), + 82: uint16(20158), + 83: uint16(20168), + 84: uint16(20172), + 85: uint16(20175), + 86: uint16(20176), + 87: uint16(20178), + 88: uint16(20186), + 89: uint16(20187), + 90: uint16(20188), + 91: uint16(20192), + 92: uint16(20194), + 93: uint16(20198), + 94: uint16(20199), + 95: uint16(20201), + 96: uint16(20205), + 97: uint16(20206), + 98: uint16(20207), + 99: uint16(20209), + 100: uint16(20212), + 101: uint16(20216), + 102: uint16(20217), + 103: uint16(20218), + 104: uint16(20220), + 105: uint16(20222), + 106: uint16(20224), + 107: uint16(20226), + 108: uint16(20227), + 109: uint16(20228), + 110: uint16(20229), + 111: uint16(20230), + 112: uint16(20231), + 113: uint16(20232), + 114: uint16(20235), + 115: uint16(20236), + 116: uint16(20242), + 117: uint16(20243), + 118: uint16(20244), + 119: uint16(20245), + 120: uint16(20246), + 121: uint16(20252), + 122: uint16(20253), + 123: uint16(20257), + 124: uint16(20259), + 125: uint16(20264), + 126: uint16(20265), + 127: uint16(20268), + 128: uint16(20269), + 129: uint16(20270), + 130: uint16(20273), + 131: uint16(20275), + 132: uint16(20277), + 133: uint16(20279), + 134: uint16(20281), + 135: uint16(20283), + 136: uint16(20286), + 137: uint16(20287), + 138: uint16(20288), + 139: uint16(20289), + 140: uint16(20290), + 141: uint16(20292), + 142: uint16(20293), + 143: uint16(20295), + 144: uint16(20296), + 145: uint16(20297), + 146: uint16(20298), + 147: uint16(20299), + 148: uint16(20300), + 149: uint16(20306), + 150: uint16(20308), + 151: uint16(20310), + 152: uint16(20321), + 153: uint16(20322), + 154: uint16(20326), + 155: uint16(20328), + 156: uint16(20330), + 157: uint16(20331), + 158: uint16(20333), + 159: uint16(20334), + 160: uint16(20337), + 161: uint16(20338), + 162: uint16(20341), + 163: uint16(20343), + 164: uint16(20344), + 165: uint16(20345), + 166: uint16(20346), + 167: uint16(20349), + 168: uint16(20352), + 169: uint16(20353), + 170: uint16(20354), + 171: uint16(20357), + 172: uint16(20358), + 173: uint16(20359), + 174: uint16(20362), + 175: uint16(20364), + 176: uint16(20366), + 177: uint16(20368), + 178: uint16(20370), + 179: uint16(20371), + 180: uint16(20373), + 181: uint16(20374), + 182: uint16(20376), + 183: uint16(20377), + 184: uint16(20378), + 185: uint16(20380), + 186: uint16(20382), + 187: uint16(20383), + 188: uint16(20385), + 189: uint16(20386), + }, + 1: { + 0: uint16(20388), + 1: uint16(20395), + 2: uint16(20397), + 3: uint16(20400), + 4: uint16(20401), + 5: uint16(20402), + 6: uint16(20403), + 7: uint16(20404), + 8: uint16(20406), + 9: uint16(20407), + 10: uint16(20408), + 11: uint16(20409), + 12: uint16(20410), + 13: uint16(20411), + 14: uint16(20412), + 15: uint16(20413), + 16: uint16(20414), + 17: uint16(20416), + 18: uint16(20417), + 19: uint16(20418), + 20: uint16(20422), + 21: uint16(20423), + 22: uint16(20424), + 23: uint16(20425), + 24: uint16(20427), + 25: uint16(20428), + 26: uint16(20429), + 27: uint16(20434), + 28: uint16(20435), + 29: uint16(20436), + 30: uint16(20437), + 31: uint16(20438), + 32: uint16(20441), + 33: uint16(20443), + 34: uint16(20448), + 35: uint16(20450), + 36: uint16(20452), + 37: uint16(20453), + 38: uint16(20455), + 39: uint16(20459), + 40: uint16(20460), + 41: uint16(20464), + 42: uint16(20466), + 43: uint16(20468), + 44: uint16(20469), + 45: uint16(20470), + 46: uint16(20471), + 47: uint16(20473), + 48: uint16(20475), + 49: uint16(20476), + 50: uint16(20477), + 51: uint16(20479), + 52: uint16(20480), + 53: uint16(20481), + 54: uint16(20482), + 55: uint16(20483), + 56: uint16(20484), + 57: uint16(20485), + 58: uint16(20486), + 59: uint16(20487), + 60: uint16(20488), + 61: uint16(20489), + 62: uint16(20490), + 63: uint16(20491), + 64: uint16(20494), + 65: uint16(20496), + 66: uint16(20497), + 67: uint16(20499), + 68: uint16(20501), + 69: uint16(20502), + 70: uint16(20503), + 71: uint16(20507), + 72: uint16(20509), + 73: uint16(20510), + 74: uint16(20512), + 75: uint16(20514), + 76: uint16(20515), + 77: uint16(20516), + 78: uint16(20519), + 79: uint16(20523), + 80: uint16(20527), + 81: uint16(20528), + 82: uint16(20529), + 83: uint16(20530), + 84: uint16(20531), + 85: uint16(20532), + 86: uint16(20533), + 87: uint16(20534), + 88: uint16(20535), + 89: uint16(20536), + 90: uint16(20537), + 91: uint16(20539), + 92: uint16(20541), + 93: uint16(20543), + 94: uint16(20544), + 95: uint16(20545), + 96: uint16(20546), + 97: uint16(20548), + 98: uint16(20549), + 99: uint16(20550), + 100: uint16(20553), + 101: uint16(20554), + 102: uint16(20555), + 103: uint16(20557), + 104: uint16(20560), + 105: uint16(20561), + 106: uint16(20562), + 107: uint16(20563), + 108: uint16(20564), + 109: uint16(20566), + 110: uint16(20567), + 111: uint16(20568), + 112: uint16(20569), + 113: uint16(20571), + 114: uint16(20573), + 115: uint16(20574), + 116: uint16(20575), + 117: uint16(20576), + 118: uint16(20577), + 119: uint16(20578), + 120: uint16(20579), + 121: uint16(20580), + 122: uint16(20582), + 123: uint16(20583), + 124: uint16(20584), + 125: uint16(20585), + 126: uint16(20586), + 127: uint16(20587), + 128: uint16(20589), + 129: uint16(20590), + 130: uint16(20591), + 131: uint16(20592), + 132: uint16(20593), + 133: uint16(20594), + 134: uint16(20595), + 135: uint16(20596), + 136: uint16(20597), + 137: uint16(20600), + 138: uint16(20601), + 139: uint16(20602), + 140: uint16(20604), + 141: uint16(20605), + 142: uint16(20609), + 143: uint16(20610), + 144: uint16(20611), + 145: uint16(20612), + 146: uint16(20614), + 147: uint16(20615), + 148: uint16(20617), + 149: uint16(20618), + 150: uint16(20619), + 151: uint16(20620), + 152: uint16(20622), + 153: uint16(20623), + 154: uint16(20624), + 155: uint16(20625), + 156: uint16(20626), + 157: uint16(20627), + 158: uint16(20628), + 159: uint16(20629), + 160: uint16(20630), + 161: uint16(20631), + 162: uint16(20632), + 163: uint16(20633), + 164: uint16(20634), + 165: uint16(20635), + 166: uint16(20636), + 167: uint16(20637), + 168: uint16(20638), + 169: uint16(20639), + 170: uint16(20640), + 171: uint16(20641), + 172: uint16(20642), + 173: uint16(20644), + 174: uint16(20646), + 175: uint16(20650), + 176: uint16(20651), + 177: uint16(20653), + 178: uint16(20654), + 179: uint16(20655), + 180: uint16(20656), + 181: uint16(20657), + 182: uint16(20659), + 183: uint16(20660), + 184: uint16(20661), + 185: uint16(20662), + 186: uint16(20663), + 187: uint16(20664), + 188: uint16(20665), + 189: uint16(20668), + }, + 2: { + 0: uint16(20669), + 1: uint16(20670), + 2: uint16(20671), + 3: uint16(20672), + 4: uint16(20673), + 5: uint16(20674), + 6: uint16(20675), + 7: uint16(20676), + 8: uint16(20677), + 9: uint16(20678), + 10: uint16(20679), + 11: uint16(20680), + 12: uint16(20681), + 13: uint16(20682), + 14: uint16(20683), + 15: uint16(20684), + 16: uint16(20685), + 17: uint16(20686), + 18: uint16(20688), + 19: uint16(20689), + 20: uint16(20690), + 21: uint16(20691), + 22: uint16(20692), + 23: uint16(20693), + 24: uint16(20695), + 25: uint16(20696), + 26: uint16(20697), + 27: uint16(20699), + 28: uint16(20700), + 29: uint16(20701), + 30: uint16(20702), + 31: uint16(20703), + 32: uint16(20704), + 33: uint16(20705), + 34: uint16(20706), + 35: uint16(20707), + 36: uint16(20708), + 37: uint16(20709), + 38: uint16(20712), + 39: uint16(20713), + 40: uint16(20714), + 41: uint16(20715), + 42: uint16(20719), + 43: uint16(20720), + 44: uint16(20721), + 45: uint16(20722), + 46: uint16(20724), + 47: uint16(20726), + 48: uint16(20727), + 49: uint16(20728), + 50: uint16(20729), + 51: uint16(20730), + 52: uint16(20732), + 53: uint16(20733), + 54: uint16(20734), + 55: uint16(20735), + 56: uint16(20736), + 57: uint16(20737), + 58: uint16(20738), + 59: uint16(20739), + 60: uint16(20740), + 61: uint16(20741), + 62: uint16(20744), + 63: uint16(20745), + 64: uint16(20746), + 65: uint16(20748), + 66: uint16(20749), + 67: uint16(20750), + 68: uint16(20751), + 69: uint16(20752), + 70: uint16(20753), + 71: uint16(20755), + 72: uint16(20756), + 73: uint16(20757), + 74: uint16(20758), + 75: uint16(20759), + 76: uint16(20760), + 77: uint16(20761), + 78: uint16(20762), + 79: uint16(20763), + 80: uint16(20764), + 81: uint16(20765), + 82: uint16(20766), + 83: uint16(20767), + 84: uint16(20768), + 85: uint16(20770), + 86: uint16(20771), + 87: uint16(20772), + 88: uint16(20773), + 89: uint16(20774), + 90: uint16(20775), + 91: uint16(20776), + 92: uint16(20777), + 93: uint16(20778), + 94: uint16(20779), + 95: uint16(20780), + 96: uint16(20781), + 97: uint16(20782), + 98: uint16(20783), + 99: uint16(20784), + 100: uint16(20785), + 101: uint16(20786), + 102: uint16(20787), + 103: uint16(20788), + 104: uint16(20789), + 105: uint16(20790), + 106: uint16(20791), + 107: uint16(20792), + 108: uint16(20793), + 109: uint16(20794), + 110: uint16(20795), + 111: uint16(20796), + 112: uint16(20797), + 113: uint16(20798), + 114: uint16(20802), + 115: uint16(20807), + 116: uint16(20810), + 117: uint16(20812), + 118: uint16(20814), + 119: uint16(20815), + 120: uint16(20816), + 121: uint16(20818), + 122: uint16(20819), + 123: uint16(20823), + 124: uint16(20824), + 125: uint16(20825), + 126: uint16(20827), + 127: uint16(20829), + 128: uint16(20830), + 129: uint16(20831), + 130: uint16(20832), + 131: uint16(20833), + 132: uint16(20835), + 133: uint16(20836), + 134: uint16(20838), + 135: uint16(20839), + 136: uint16(20841), + 137: uint16(20842), + 138: uint16(20847), + 139: uint16(20850), + 140: uint16(20858), + 141: uint16(20862), + 142: uint16(20863), + 143: uint16(20867), + 144: uint16(20868), + 145: uint16(20870), + 146: uint16(20871), + 147: uint16(20874), + 148: uint16(20875), + 149: uint16(20878), + 150: uint16(20879), + 151: uint16(20880), + 152: uint16(20881), + 153: uint16(20883), + 154: uint16(20884), + 155: uint16(20888), + 156: uint16(20890), + 157: uint16(20893), + 158: uint16(20894), + 159: uint16(20895), + 160: uint16(20897), + 161: uint16(20899), + 162: uint16(20902), + 163: uint16(20903), + 164: uint16(20904), + 165: uint16(20905), + 166: uint16(20906), + 167: uint16(20909), + 168: uint16(20910), + 169: uint16(20916), + 170: uint16(20920), + 171: uint16(20921), + 172: uint16(20922), + 173: uint16(20926), + 174: uint16(20927), + 175: uint16(20929), + 176: uint16(20930), + 177: uint16(20931), + 178: uint16(20933), + 179: uint16(20936), + 180: uint16(20938), + 181: uint16(20941), + 182: uint16(20942), + 183: uint16(20944), + 184: uint16(20946), + 185: uint16(20947), + 186: uint16(20948), + 187: uint16(20949), + 188: uint16(20950), + 189: uint16(20951), + }, + 3: { + 0: uint16(20952), + 1: uint16(20953), + 2: uint16(20954), + 3: uint16(20956), + 4: uint16(20958), + 5: uint16(20959), + 6: uint16(20962), + 7: uint16(20963), + 8: uint16(20965), + 9: uint16(20966), + 10: uint16(20967), + 11: uint16(20968), + 12: uint16(20969), + 13: uint16(20970), + 14: uint16(20972), + 15: uint16(20974), + 16: uint16(20977), + 17: uint16(20978), + 18: uint16(20980), + 19: uint16(20983), + 20: uint16(20990), + 21: uint16(20996), + 22: uint16(20997), + 23: uint16(21001), + 24: uint16(21003), + 25: uint16(21004), + 26: uint16(21007), + 27: uint16(21008), + 28: uint16(21011), + 29: uint16(21012), + 30: uint16(21013), + 31: uint16(21020), + 32: uint16(21022), + 33: uint16(21023), + 34: uint16(21025), + 35: uint16(21026), + 36: uint16(21027), + 37: uint16(21029), + 38: uint16(21030), + 39: uint16(21031), + 40: uint16(21034), + 41: uint16(21036), + 42: uint16(21039), + 43: uint16(21041), + 44: uint16(21042), + 45: uint16(21044), + 46: uint16(21045), + 47: uint16(21052), + 48: uint16(21054), + 49: uint16(21060), + 50: uint16(21061), + 51: uint16(21062), + 52: uint16(21063), + 53: uint16(21064), + 54: uint16(21065), + 55: uint16(21067), + 56: uint16(21070), + 57: uint16(21071), + 58: uint16(21074), + 59: uint16(21075), + 60: uint16(21077), + 61: uint16(21079), + 62: uint16(21080), + 63: uint16(21081), + 64: uint16(21082), + 65: uint16(21083), + 66: uint16(21085), + 67: uint16(21087), + 68: uint16(21088), + 69: uint16(21090), + 70: uint16(21091), + 71: uint16(21092), + 72: uint16(21094), + 73: uint16(21096), + 74: uint16(21099), + 75: uint16(21100), + 76: uint16(21101), + 77: uint16(21102), + 78: uint16(21104), + 79: uint16(21105), + 80: uint16(21107), + 81: uint16(21108), + 82: uint16(21109), + 83: uint16(21110), + 84: uint16(21111), + 85: uint16(21112), + 86: uint16(21113), + 87: uint16(21114), + 88: uint16(21115), + 89: uint16(21116), + 90: uint16(21118), + 91: uint16(21120), + 92: uint16(21123), + 93: uint16(21124), + 94: uint16(21125), + 95: uint16(21126), + 96: uint16(21127), + 97: uint16(21129), + 98: uint16(21130), + 99: uint16(21131), + 100: uint16(21132), + 101: uint16(21133), + 102: uint16(21134), + 103: uint16(21135), + 104: uint16(21137), + 105: uint16(21138), + 106: uint16(21140), + 107: uint16(21141), + 108: uint16(21142), + 109: uint16(21143), + 110: uint16(21144), + 111: uint16(21145), + 112: uint16(21146), + 113: uint16(21148), + 114: uint16(21156), + 115: uint16(21157), + 116: uint16(21158), + 117: uint16(21159), + 118: uint16(21166), + 119: uint16(21167), + 120: uint16(21168), + 121: uint16(21172), + 122: uint16(21173), + 123: uint16(21174), + 124: uint16(21175), + 125: uint16(21176), + 126: uint16(21177), + 127: uint16(21178), + 128: uint16(21179), + 129: uint16(21180), + 130: uint16(21181), + 131: uint16(21184), + 132: uint16(21185), + 133: uint16(21186), + 134: uint16(21188), + 135: uint16(21189), + 136: uint16(21190), + 137: uint16(21192), + 138: uint16(21194), + 139: uint16(21196), + 140: uint16(21197), + 141: uint16(21198), + 142: uint16(21199), + 143: uint16(21201), + 144: uint16(21203), + 145: uint16(21204), + 146: uint16(21205), + 147: uint16(21207), + 148: uint16(21209), + 149: uint16(21210), + 150: uint16(21211), + 151: uint16(21212), + 152: uint16(21213), + 153: uint16(21214), + 154: uint16(21216), + 155: uint16(21217), + 156: uint16(21218), + 157: uint16(21219), + 158: uint16(21221), + 159: uint16(21222), + 160: uint16(21223), + 161: uint16(21224), + 162: uint16(21225), + 163: uint16(21226), + 164: uint16(21227), + 165: uint16(21228), + 166: uint16(21229), + 167: uint16(21230), + 168: uint16(21231), + 169: uint16(21233), + 170: uint16(21234), + 171: uint16(21235), + 172: uint16(21236), + 173: uint16(21237), + 174: uint16(21238), + 175: uint16(21239), + 176: uint16(21240), + 177: uint16(21243), + 178: uint16(21244), + 179: uint16(21245), + 180: uint16(21249), + 181: uint16(21250), + 182: uint16(21251), + 183: uint16(21252), + 184: uint16(21255), + 185: uint16(21257), + 186: uint16(21258), + 187: uint16(21259), + 188: uint16(21260), + 189: uint16(21262), + }, + 4: { + 0: uint16(21265), + 1: uint16(21266), + 2: uint16(21267), + 3: uint16(21268), + 4: uint16(21272), + 5: uint16(21275), + 6: uint16(21276), + 7: uint16(21278), + 8: uint16(21279), + 9: uint16(21282), + 10: uint16(21284), + 11: uint16(21285), + 12: uint16(21287), + 13: uint16(21288), + 14: uint16(21289), + 15: uint16(21291), + 16: uint16(21292), + 17: uint16(21293), + 18: uint16(21295), + 19: uint16(21296), + 20: uint16(21297), + 21: uint16(21298), + 22: uint16(21299), + 23: uint16(21300), + 24: uint16(21301), + 25: uint16(21302), + 26: uint16(21303), + 27: uint16(21304), + 28: uint16(21308), + 29: uint16(21309), + 30: uint16(21312), + 31: uint16(21314), + 32: uint16(21316), + 33: uint16(21318), + 34: uint16(21323), + 35: uint16(21324), + 36: uint16(21325), + 37: uint16(21328), + 38: uint16(21332), + 39: uint16(21336), + 40: uint16(21337), + 41: uint16(21339), + 42: uint16(21341), + 43: uint16(21349), + 44: uint16(21352), + 45: uint16(21354), + 46: uint16(21356), + 47: uint16(21357), + 48: uint16(21362), + 49: uint16(21366), + 50: uint16(21369), + 51: uint16(21371), + 52: uint16(21372), + 53: uint16(21373), + 54: uint16(21374), + 55: uint16(21376), + 56: uint16(21377), + 57: uint16(21379), + 58: uint16(21383), + 59: uint16(21384), + 60: uint16(21386), + 61: uint16(21390), + 62: uint16(21391), + 63: uint16(21392), + 64: uint16(21393), + 65: uint16(21394), + 66: uint16(21395), + 67: uint16(21396), + 68: uint16(21398), + 69: uint16(21399), + 70: uint16(21401), + 71: uint16(21403), + 72: uint16(21404), + 73: uint16(21406), + 74: uint16(21408), + 75: uint16(21409), + 76: uint16(21412), + 77: uint16(21415), + 78: uint16(21418), + 79: uint16(21419), + 80: uint16(21420), + 81: uint16(21421), + 82: uint16(21423), + 83: uint16(21424), + 84: uint16(21425), + 85: uint16(21426), + 86: uint16(21427), + 87: uint16(21428), + 88: uint16(21429), + 89: uint16(21431), + 90: uint16(21432), + 91: uint16(21433), + 92: uint16(21434), + 93: uint16(21436), + 94: uint16(21437), + 95: uint16(21438), + 96: uint16(21440), + 97: uint16(21443), + 98: uint16(21444), + 99: uint16(21445), + 100: uint16(21446), + 101: uint16(21447), + 102: uint16(21454), + 103: uint16(21455), + 104: uint16(21456), + 105: uint16(21458), + 106: uint16(21459), + 107: uint16(21461), + 108: uint16(21466), + 109: uint16(21468), + 110: uint16(21469), + 111: uint16(21470), + 112: uint16(21473), + 113: uint16(21474), + 114: uint16(21479), + 115: uint16(21492), + 116: uint16(21498), + 117: uint16(21502), + 118: uint16(21503), + 119: uint16(21504), + 120: uint16(21506), + 121: uint16(21509), + 122: uint16(21511), + 123: uint16(21515), + 124: uint16(21524), + 125: uint16(21528), + 126: uint16(21529), + 127: uint16(21530), + 128: uint16(21532), + 129: uint16(21538), + 130: uint16(21540), + 131: uint16(21541), + 132: uint16(21546), + 133: uint16(21552), + 134: uint16(21555), + 135: uint16(21558), + 136: uint16(21559), + 137: uint16(21562), + 138: uint16(21565), + 139: uint16(21567), + 140: uint16(21569), + 141: uint16(21570), + 142: uint16(21572), + 143: uint16(21573), + 144: uint16(21575), + 145: uint16(21577), + 146: uint16(21580), + 147: uint16(21581), + 148: uint16(21582), + 149: uint16(21583), + 150: uint16(21585), + 151: uint16(21594), + 152: uint16(21597), + 153: uint16(21598), + 154: uint16(21599), + 155: uint16(21600), + 156: uint16(21601), + 157: uint16(21603), + 158: uint16(21605), + 159: uint16(21607), + 160: uint16(21609), + 161: uint16(21610), + 162: uint16(21611), + 163: uint16(21612), + 164: uint16(21613), + 165: uint16(21614), + 166: uint16(21615), + 167: uint16(21616), + 168: uint16(21620), + 169: uint16(21625), + 170: uint16(21626), + 171: uint16(21630), + 172: uint16(21631), + 173: uint16(21633), + 174: uint16(21635), + 175: uint16(21637), + 176: uint16(21639), + 177: uint16(21640), + 178: uint16(21641), + 179: uint16(21642), + 180: uint16(21645), + 181: uint16(21649), + 182: uint16(21651), + 183: uint16(21655), + 184: uint16(21656), + 185: uint16(21660), + 186: uint16(21662), + 187: uint16(21663), + 188: uint16(21664), + 189: uint16(21665), + }, + 5: { + 0: uint16(21666), + 1: uint16(21669), + 2: uint16(21678), + 3: uint16(21680), + 4: uint16(21682), + 5: uint16(21685), + 6: uint16(21686), + 7: uint16(21687), + 8: uint16(21689), + 9: uint16(21690), + 10: uint16(21692), + 11: uint16(21694), + 12: uint16(21699), + 13: uint16(21701), + 14: uint16(21706), + 15: uint16(21707), + 16: uint16(21718), + 17: uint16(21720), + 18: uint16(21723), + 19: uint16(21728), + 20: uint16(21729), + 21: uint16(21730), + 22: uint16(21731), + 23: uint16(21732), + 24: uint16(21739), + 25: uint16(21740), + 26: uint16(21743), + 27: uint16(21744), + 28: uint16(21745), + 29: uint16(21748), + 30: uint16(21749), + 31: uint16(21750), + 32: uint16(21751), + 33: uint16(21752), + 34: uint16(21753), + 35: uint16(21755), + 36: uint16(21758), + 37: uint16(21760), + 38: uint16(21762), + 39: uint16(21763), + 40: uint16(21764), + 41: uint16(21765), + 42: uint16(21768), + 43: uint16(21770), + 44: uint16(21771), + 45: uint16(21772), + 46: uint16(21773), + 47: uint16(21774), + 48: uint16(21778), + 49: uint16(21779), + 50: uint16(21781), + 51: uint16(21782), + 52: uint16(21783), + 53: uint16(21784), + 54: uint16(21785), + 55: uint16(21786), + 56: uint16(21788), + 57: uint16(21789), + 58: uint16(21790), + 59: uint16(21791), + 60: uint16(21793), + 61: uint16(21797), + 62: uint16(21798), + 63: uint16(21800), + 64: uint16(21801), + 65: uint16(21803), + 66: uint16(21805), + 67: uint16(21810), + 68: uint16(21812), + 69: uint16(21813), + 70: uint16(21814), + 71: uint16(21816), + 72: uint16(21817), + 73: uint16(21818), + 74: uint16(21819), + 75: uint16(21821), + 76: uint16(21824), + 77: uint16(21826), + 78: uint16(21829), + 79: uint16(21831), + 80: uint16(21832), + 81: uint16(21835), + 82: uint16(21836), + 83: uint16(21837), + 84: uint16(21838), + 85: uint16(21839), + 86: uint16(21841), + 87: uint16(21842), + 88: uint16(21843), + 89: uint16(21844), + 90: uint16(21847), + 91: uint16(21848), + 92: uint16(21849), + 93: uint16(21850), + 94: uint16(21851), + 95: uint16(21853), + 96: uint16(21854), + 97: uint16(21855), + 98: uint16(21856), + 99: uint16(21858), + 100: uint16(21859), + 101: uint16(21864), + 102: uint16(21865), + 103: uint16(21867), + 104: uint16(21871), + 105: uint16(21872), + 106: uint16(21873), + 107: uint16(21874), + 108: uint16(21875), + 109: uint16(21876), + 110: uint16(21881), + 111: uint16(21882), + 112: uint16(21885), + 113: uint16(21887), + 114: uint16(21893), + 115: uint16(21894), + 116: uint16(21900), + 117: uint16(21901), + 118: uint16(21902), + 119: uint16(21904), + 120: uint16(21906), + 121: uint16(21907), + 122: uint16(21909), + 123: uint16(21910), + 124: uint16(21911), + 125: uint16(21914), + 126: uint16(21915), + 127: uint16(21918), + 128: uint16(21920), + 129: uint16(21921), + 130: uint16(21922), + 131: uint16(21923), + 132: uint16(21924), + 133: uint16(21925), + 134: uint16(21926), + 135: uint16(21928), + 136: uint16(21929), + 137: uint16(21930), + 138: uint16(21931), + 139: uint16(21932), + 140: uint16(21933), + 141: uint16(21934), + 142: uint16(21935), + 143: uint16(21936), + 144: uint16(21938), + 145: uint16(21940), + 146: uint16(21942), + 147: uint16(21944), + 148: uint16(21946), + 149: uint16(21948), + 150: uint16(21951), + 151: uint16(21952), + 152: uint16(21953), + 153: uint16(21954), + 154: uint16(21955), + 155: uint16(21958), + 156: uint16(21959), + 157: uint16(21960), + 158: uint16(21962), + 159: uint16(21963), + 160: uint16(21966), + 161: uint16(21967), + 162: uint16(21968), + 163: uint16(21973), + 164: uint16(21975), + 165: uint16(21976), + 166: uint16(21977), + 167: uint16(21978), + 168: uint16(21979), + 169: uint16(21982), + 170: uint16(21984), + 171: uint16(21986), + 172: uint16(21991), + 173: uint16(21993), + 174: uint16(21997), + 175: uint16(21998), + 176: uint16(22000), + 177: uint16(22001), + 178: uint16(22004), + 179: uint16(22006), + 180: uint16(22008), + 181: uint16(22009), + 182: uint16(22010), + 183: uint16(22011), + 184: uint16(22012), + 185: uint16(22015), + 186: uint16(22018), + 187: uint16(22019), + 188: uint16(22020), + 189: uint16(22021), + }, + 6: { + 0: uint16(22022), + 1: uint16(22023), + 2: uint16(22026), + 3: uint16(22027), + 4: uint16(22029), + 5: uint16(22032), + 6: uint16(22033), + 7: uint16(22034), + 8: uint16(22035), + 9: uint16(22036), + 10: uint16(22037), + 11: uint16(22038), + 12: uint16(22039), + 13: uint16(22041), + 14: uint16(22042), + 15: uint16(22044), + 16: uint16(22045), + 17: uint16(22048), + 18: uint16(22049), + 19: uint16(22050), + 20: uint16(22053), + 21: uint16(22054), + 22: uint16(22056), + 23: uint16(22057), + 24: uint16(22058), + 25: uint16(22059), + 26: uint16(22062), + 27: uint16(22063), + 28: uint16(22064), + 29: uint16(22067), + 30: uint16(22069), + 31: uint16(22071), + 32: uint16(22072), + 33: uint16(22074), + 34: uint16(22076), + 35: uint16(22077), + 36: uint16(22078), + 37: uint16(22080), + 38: uint16(22081), + 39: uint16(22082), + 40: uint16(22083), + 41: uint16(22084), + 42: uint16(22085), + 43: uint16(22086), + 44: uint16(22087), + 45: uint16(22088), + 46: uint16(22089), + 47: uint16(22090), + 48: uint16(22091), + 49: uint16(22095), + 50: uint16(22096), + 51: uint16(22097), + 52: uint16(22098), + 53: uint16(22099), + 54: uint16(22101), + 55: uint16(22102), + 56: uint16(22106), + 57: uint16(22107), + 58: uint16(22109), + 59: uint16(22110), + 60: uint16(22111), + 61: uint16(22112), + 62: uint16(22113), + 63: uint16(22115), + 64: uint16(22117), + 65: uint16(22118), + 66: uint16(22119), + 67: uint16(22125), + 68: uint16(22126), + 69: uint16(22127), + 70: uint16(22128), + 71: uint16(22130), + 72: uint16(22131), + 73: uint16(22132), + 74: uint16(22133), + 75: uint16(22135), + 76: uint16(22136), + 77: uint16(22137), + 78: uint16(22138), + 79: uint16(22141), + 80: uint16(22142), + 81: uint16(22143), + 82: uint16(22144), + 83: uint16(22145), + 84: uint16(22146), + 85: uint16(22147), + 86: uint16(22148), + 87: uint16(22151), + 88: uint16(22152), + 89: uint16(22153), + 90: uint16(22154), + 91: uint16(22155), + 92: uint16(22156), + 93: uint16(22157), + 94: uint16(22160), + 95: uint16(22161), + 96: uint16(22162), + 97: uint16(22164), + 98: uint16(22165), + 99: uint16(22166), + 100: uint16(22167), + 101: uint16(22168), + 102: uint16(22169), + 103: uint16(22170), + 104: uint16(22171), + 105: uint16(22172), + 106: uint16(22173), + 107: uint16(22174), + 108: uint16(22175), + 109: uint16(22176), + 110: uint16(22177), + 111: uint16(22178), + 112: uint16(22180), + 113: uint16(22181), + 114: uint16(22182), + 115: uint16(22183), + 116: uint16(22184), + 117: uint16(22185), + 118: uint16(22186), + 119: uint16(22187), + 120: uint16(22188), + 121: uint16(22189), + 122: uint16(22190), + 123: uint16(22192), + 124: uint16(22193), + 125: uint16(22194), + 126: uint16(22195), + 127: uint16(22196), + 128: uint16(22197), + 129: uint16(22198), + 130: uint16(22200), + 131: uint16(22201), + 132: uint16(22202), + 133: uint16(22203), + 134: uint16(22205), + 135: uint16(22206), + 136: uint16(22207), + 137: uint16(22208), + 138: uint16(22209), + 139: uint16(22210), + 140: uint16(22211), + 141: uint16(22212), + 142: uint16(22213), + 143: uint16(22214), + 144: uint16(22215), + 145: uint16(22216), + 146: uint16(22217), + 147: uint16(22219), + 148: uint16(22220), + 149: uint16(22221), + 150: uint16(22222), + 151: uint16(22223), + 152: uint16(22224), + 153: uint16(22225), + 154: uint16(22226), + 155: uint16(22227), + 156: uint16(22229), + 157: uint16(22230), + 158: uint16(22232), + 159: uint16(22233), + 160: uint16(22236), + 161: uint16(22243), + 162: uint16(22245), + 163: uint16(22246), + 164: uint16(22247), + 165: uint16(22248), + 166: uint16(22249), + 167: uint16(22250), + 168: uint16(22252), + 169: uint16(22254), + 170: uint16(22255), + 171: uint16(22258), + 172: uint16(22259), + 173: uint16(22262), + 174: uint16(22263), + 175: uint16(22264), + 176: uint16(22267), + 177: uint16(22268), + 178: uint16(22272), + 179: uint16(22273), + 180: uint16(22274), + 181: uint16(22277), + 182: uint16(22279), + 183: uint16(22283), + 184: uint16(22284), + 185: uint16(22285), + 186: uint16(22286), + 187: uint16(22287), + 188: uint16(22288), + 189: uint16(22289), + }, + 7: { + 0: uint16(22290), + 1: uint16(22291), + 2: uint16(22292), + 3: uint16(22293), + 4: uint16(22294), + 5: uint16(22295), + 6: uint16(22296), + 7: uint16(22297), + 8: uint16(22298), + 9: uint16(22299), + 10: uint16(22301), + 11: uint16(22302), + 12: uint16(22304), + 13: uint16(22305), + 14: uint16(22306), + 15: uint16(22308), + 16: uint16(22309), + 17: uint16(22310), + 18: uint16(22311), + 19: uint16(22315), + 20: uint16(22321), + 21: uint16(22322), + 22: uint16(22324), + 23: uint16(22325), + 24: uint16(22326), + 25: uint16(22327), + 26: uint16(22328), + 27: uint16(22332), + 28: uint16(22333), + 29: uint16(22335), + 30: uint16(22337), + 31: uint16(22339), + 32: uint16(22340), + 33: uint16(22341), + 34: uint16(22342), + 35: uint16(22344), + 36: uint16(22345), + 37: uint16(22347), + 38: uint16(22354), + 39: uint16(22355), + 40: uint16(22356), + 41: uint16(22357), + 42: uint16(22358), + 43: uint16(22360), + 44: uint16(22361), + 45: uint16(22370), + 46: uint16(22371), + 47: uint16(22373), + 48: uint16(22375), + 49: uint16(22380), + 50: uint16(22382), + 51: uint16(22384), + 52: uint16(22385), + 53: uint16(22386), + 54: uint16(22388), + 55: uint16(22389), + 56: uint16(22392), + 57: uint16(22393), + 58: uint16(22394), + 59: uint16(22397), + 60: uint16(22398), + 61: uint16(22399), + 62: uint16(22400), + 63: uint16(22401), + 64: uint16(22407), + 65: uint16(22408), + 66: uint16(22409), + 67: uint16(22410), + 68: uint16(22413), + 69: uint16(22414), + 70: uint16(22415), + 71: uint16(22416), + 72: uint16(22417), + 73: uint16(22420), + 74: uint16(22421), + 75: uint16(22422), + 76: uint16(22423), + 77: uint16(22424), + 78: uint16(22425), + 79: uint16(22426), + 80: uint16(22428), + 81: uint16(22429), + 82: uint16(22430), + 83: uint16(22431), + 84: uint16(22437), + 85: uint16(22440), + 86: uint16(22442), + 87: uint16(22444), + 88: uint16(22447), + 89: uint16(22448), + 90: uint16(22449), + 91: uint16(22451), + 92: uint16(22453), + 93: uint16(22454), + 94: uint16(22455), + 95: uint16(22457), + 96: uint16(22458), + 97: uint16(22459), + 98: uint16(22460), + 99: uint16(22461), + 100: uint16(22462), + 101: uint16(22463), + 102: uint16(22464), + 103: uint16(22465), + 104: uint16(22468), + 105: uint16(22469), + 106: uint16(22470), + 107: uint16(22471), + 108: uint16(22472), + 109: uint16(22473), + 110: uint16(22474), + 111: uint16(22476), + 112: uint16(22477), + 113: uint16(22480), + 114: uint16(22481), + 115: uint16(22483), + 116: uint16(22486), + 117: uint16(22487), + 118: uint16(22491), + 119: uint16(22492), + 120: uint16(22494), + 121: uint16(22497), + 122: uint16(22498), + 123: uint16(22499), + 124: uint16(22501), + 125: uint16(22502), + 126: uint16(22503), + 127: uint16(22504), + 128: uint16(22505), + 129: uint16(22506), + 130: uint16(22507), + 131: uint16(22508), + 132: uint16(22510), + 133: uint16(22512), + 134: uint16(22513), + 135: uint16(22514), + 136: uint16(22515), + 137: uint16(22517), + 138: uint16(22518), + 139: uint16(22519), + 140: uint16(22523), + 141: uint16(22524), + 142: uint16(22526), + 143: uint16(22527), + 144: uint16(22529), + 145: uint16(22531), + 146: uint16(22532), + 147: uint16(22533), + 148: uint16(22536), + 149: uint16(22537), + 150: uint16(22538), + 151: uint16(22540), + 152: uint16(22542), + 153: uint16(22543), + 154: uint16(22544), + 155: uint16(22546), + 156: uint16(22547), + 157: uint16(22548), + 158: uint16(22550), + 159: uint16(22551), + 160: uint16(22552), + 161: uint16(22554), + 162: uint16(22555), + 163: uint16(22556), + 164: uint16(22557), + 165: uint16(22559), + 166: uint16(22562), + 167: uint16(22563), + 168: uint16(22565), + 169: uint16(22566), + 170: uint16(22567), + 171: uint16(22568), + 172: uint16(22569), + 173: uint16(22571), + 174: uint16(22572), + 175: uint16(22573), + 176: uint16(22574), + 177: uint16(22575), + 178: uint16(22577), + 179: uint16(22578), + 180: uint16(22579), + 181: uint16(22580), + 182: uint16(22582), + 183: uint16(22583), + 184: uint16(22584), + 185: uint16(22585), + 186: uint16(22586), + 187: uint16(22587), + 188: uint16(22588), + 189: uint16(22589), + }, + 8: { + 0: uint16(22590), + 1: uint16(22591), + 2: uint16(22592), + 3: uint16(22593), + 4: uint16(22594), + 5: uint16(22595), + 6: uint16(22597), + 7: uint16(22598), + 8: uint16(22599), + 9: uint16(22600), + 10: uint16(22601), + 11: uint16(22602), + 12: uint16(22603), + 13: uint16(22606), + 14: uint16(22607), + 15: uint16(22608), + 16: uint16(22610), + 17: uint16(22611), + 18: uint16(22613), + 19: uint16(22614), + 20: uint16(22615), + 21: uint16(22617), + 22: uint16(22618), + 23: uint16(22619), + 24: uint16(22620), + 25: uint16(22621), + 26: uint16(22623), + 27: uint16(22624), + 28: uint16(22625), + 29: uint16(22626), + 30: uint16(22627), + 31: uint16(22628), + 32: uint16(22630), + 33: uint16(22631), + 34: uint16(22632), + 35: uint16(22633), + 36: uint16(22634), + 37: uint16(22637), + 38: uint16(22638), + 39: uint16(22639), + 40: uint16(22640), + 41: uint16(22641), + 42: uint16(22642), + 43: uint16(22643), + 44: uint16(22644), + 45: uint16(22645), + 46: uint16(22646), + 47: uint16(22647), + 48: uint16(22648), + 49: uint16(22649), + 50: uint16(22650), + 51: uint16(22651), + 52: uint16(22652), + 53: uint16(22653), + 54: uint16(22655), + 55: uint16(22658), + 56: uint16(22660), + 57: uint16(22662), + 58: uint16(22663), + 59: uint16(22664), + 60: uint16(22666), + 61: uint16(22667), + 62: uint16(22668), + 63: uint16(22669), + 64: uint16(22670), + 65: uint16(22671), + 66: uint16(22672), + 67: uint16(22673), + 68: uint16(22676), + 69: uint16(22677), + 70: uint16(22678), + 71: uint16(22679), + 72: uint16(22680), + 73: uint16(22683), + 74: uint16(22684), + 75: uint16(22685), + 76: uint16(22688), + 77: uint16(22689), + 78: uint16(22690), + 79: uint16(22691), + 80: uint16(22692), + 81: uint16(22693), + 82: uint16(22694), + 83: uint16(22695), + 84: uint16(22698), + 85: uint16(22699), + 86: uint16(22700), + 87: uint16(22701), + 88: uint16(22702), + 89: uint16(22703), + 90: uint16(22704), + 91: uint16(22705), + 92: uint16(22706), + 93: uint16(22707), + 94: uint16(22708), + 95: uint16(22709), + 96: uint16(22710), + 97: uint16(22711), + 98: uint16(22712), + 99: uint16(22713), + 100: uint16(22714), + 101: uint16(22715), + 102: uint16(22717), + 103: uint16(22718), + 104: uint16(22719), + 105: uint16(22720), + 106: uint16(22722), + 107: uint16(22723), + 108: uint16(22724), + 109: uint16(22726), + 110: uint16(22727), + 111: uint16(22728), + 112: uint16(22729), + 113: uint16(22730), + 114: uint16(22731), + 115: uint16(22732), + 116: uint16(22733), + 117: uint16(22734), + 118: uint16(22735), + 119: uint16(22736), + 120: uint16(22738), + 121: uint16(22739), + 122: uint16(22740), + 123: uint16(22742), + 124: uint16(22743), + 125: uint16(22744), + 126: uint16(22745), + 127: uint16(22746), + 128: uint16(22747), + 129: uint16(22748), + 130: uint16(22749), + 131: uint16(22750), + 132: uint16(22751), + 133: uint16(22752), + 134: uint16(22753), + 135: uint16(22754), + 136: uint16(22755), + 137: uint16(22757), + 138: uint16(22758), + 139: uint16(22759), + 140: uint16(22760), + 141: uint16(22761), + 142: uint16(22762), + 143: uint16(22765), + 144: uint16(22767), + 145: uint16(22769), + 146: uint16(22770), + 147: uint16(22772), + 148: uint16(22773), + 149: uint16(22775), + 150: uint16(22776), + 151: uint16(22778), + 152: uint16(22779), + 153: uint16(22780), + 154: uint16(22781), + 155: uint16(22782), + 156: uint16(22783), + 157: uint16(22784), + 158: uint16(22785), + 159: uint16(22787), + 160: uint16(22789), + 161: uint16(22790), + 162: uint16(22792), + 163: uint16(22793), + 164: uint16(22794), + 165: uint16(22795), + 166: uint16(22796), + 167: uint16(22798), + 168: uint16(22800), + 169: uint16(22801), + 170: uint16(22802), + 171: uint16(22803), + 172: uint16(22807), + 173: uint16(22808), + 174: uint16(22811), + 175: uint16(22813), + 176: uint16(22814), + 177: uint16(22816), + 178: uint16(22817), + 179: uint16(22818), + 180: uint16(22819), + 181: uint16(22822), + 182: uint16(22824), + 183: uint16(22828), + 184: uint16(22832), + 185: uint16(22834), + 186: uint16(22835), + 187: uint16(22837), + 188: uint16(22838), + 189: uint16(22843), + }, + 9: { + 0: uint16(22845), + 1: uint16(22846), + 2: uint16(22847), + 3: uint16(22848), + 4: uint16(22851), + 5: uint16(22853), + 6: uint16(22854), + 7: uint16(22858), + 8: uint16(22860), + 9: uint16(22861), + 10: uint16(22864), + 11: uint16(22866), + 12: uint16(22867), + 13: uint16(22873), + 14: uint16(22875), + 15: uint16(22876), + 16: uint16(22877), + 17: uint16(22878), + 18: uint16(22879), + 19: uint16(22881), + 20: uint16(22883), + 21: uint16(22884), + 22: uint16(22886), + 23: uint16(22887), + 24: uint16(22888), + 25: uint16(22889), + 26: uint16(22890), + 27: uint16(22891), + 28: uint16(22892), + 29: uint16(22893), + 30: uint16(22894), + 31: uint16(22895), + 32: uint16(22896), + 33: uint16(22897), + 34: uint16(22898), + 35: uint16(22901), + 36: uint16(22903), + 37: uint16(22906), + 38: uint16(22907), + 39: uint16(22908), + 40: uint16(22910), + 41: uint16(22911), + 42: uint16(22912), + 43: uint16(22917), + 44: uint16(22921), + 45: uint16(22923), + 46: uint16(22924), + 47: uint16(22926), + 48: uint16(22927), + 49: uint16(22928), + 50: uint16(22929), + 51: uint16(22932), + 52: uint16(22933), + 53: uint16(22936), + 54: uint16(22938), + 55: uint16(22939), + 56: uint16(22940), + 57: uint16(22941), + 58: uint16(22943), + 59: uint16(22944), + 60: uint16(22945), + 61: uint16(22946), + 62: uint16(22950), + 63: uint16(22951), + 64: uint16(22956), + 65: uint16(22957), + 66: uint16(22960), + 67: uint16(22961), + 68: uint16(22963), + 69: uint16(22964), + 70: uint16(22965), + 71: uint16(22966), + 72: uint16(22967), + 73: uint16(22968), + 74: uint16(22970), + 75: uint16(22972), + 76: uint16(22973), + 77: uint16(22975), + 78: uint16(22976), + 79: uint16(22977), + 80: uint16(22978), + 81: uint16(22979), + 82: uint16(22980), + 83: uint16(22981), + 84: uint16(22983), + 85: uint16(22984), + 86: uint16(22985), + 87: uint16(22988), + 88: uint16(22989), + 89: uint16(22990), + 90: uint16(22991), + 91: uint16(22997), + 92: uint16(22998), + 93: uint16(23001), + 94: uint16(23003), + 95: uint16(23006), + 96: uint16(23007), + 97: uint16(23008), + 98: uint16(23009), + 99: uint16(23010), + 100: uint16(23012), + 101: uint16(23014), + 102: uint16(23015), + 103: uint16(23017), + 104: uint16(23018), + 105: uint16(23019), + 106: uint16(23021), + 107: uint16(23022), + 108: uint16(23023), + 109: uint16(23024), + 110: uint16(23025), + 111: uint16(23026), + 112: uint16(23027), + 113: uint16(23028), + 114: uint16(23029), + 115: uint16(23030), + 116: uint16(23031), + 117: uint16(23032), + 118: uint16(23034), + 119: uint16(23036), + 120: uint16(23037), + 121: uint16(23038), + 122: uint16(23040), + 123: uint16(23042), + 124: uint16(23050), + 125: uint16(23051), + 126: uint16(23053), + 127: uint16(23054), + 128: uint16(23055), + 129: uint16(23056), + 130: uint16(23058), + 131: uint16(23060), + 132: uint16(23061), + 133: uint16(23062), + 134: uint16(23063), + 135: uint16(23065), + 136: uint16(23066), + 137: uint16(23067), + 138: uint16(23069), + 139: uint16(23070), + 140: uint16(23073), + 141: uint16(23074), + 142: uint16(23076), + 143: uint16(23078), + 144: uint16(23079), + 145: uint16(23080), + 146: uint16(23082), + 147: uint16(23083), + 148: uint16(23084), + 149: uint16(23085), + 150: uint16(23086), + 151: uint16(23087), + 152: uint16(23088), + 153: uint16(23091), + 154: uint16(23093), + 155: uint16(23095), + 156: uint16(23096), + 157: uint16(23097), + 158: uint16(23098), + 159: uint16(23099), + 160: uint16(23101), + 161: uint16(23102), + 162: uint16(23103), + 163: uint16(23105), + 164: uint16(23106), + 165: uint16(23107), + 166: uint16(23108), + 167: uint16(23109), + 168: uint16(23111), + 169: uint16(23112), + 170: uint16(23115), + 171: uint16(23116), + 172: uint16(23117), + 173: uint16(23118), + 174: uint16(23119), + 175: uint16(23120), + 176: uint16(23121), + 177: uint16(23122), + 178: uint16(23123), + 179: uint16(23124), + 180: uint16(23126), + 181: uint16(23127), + 182: uint16(23128), + 183: uint16(23129), + 184: uint16(23131), + 185: uint16(23132), + 186: uint16(23133), + 187: uint16(23134), + 188: uint16(23135), + 189: uint16(23136), + }, + 10: { + 0: uint16(23137), + 1: uint16(23139), + 2: uint16(23140), + 3: uint16(23141), + 4: uint16(23142), + 5: uint16(23144), + 6: uint16(23145), + 7: uint16(23147), + 8: uint16(23148), + 9: uint16(23149), + 10: uint16(23150), + 11: uint16(23151), + 12: uint16(23152), + 13: uint16(23153), + 14: uint16(23154), + 15: uint16(23155), + 16: uint16(23160), + 17: uint16(23161), + 18: uint16(23163), + 19: uint16(23164), + 20: uint16(23165), + 21: uint16(23166), + 22: uint16(23168), + 23: uint16(23169), + 24: uint16(23170), + 25: uint16(23171), + 26: uint16(23172), + 27: uint16(23173), + 28: uint16(23174), + 29: uint16(23175), + 30: uint16(23176), + 31: uint16(23177), + 32: uint16(23178), + 33: uint16(23179), + 34: uint16(23180), + 35: uint16(23181), + 36: uint16(23182), + 37: uint16(23183), + 38: uint16(23184), + 39: uint16(23185), + 40: uint16(23187), + 41: uint16(23188), + 42: uint16(23189), + 43: uint16(23190), + 44: uint16(23191), + 45: uint16(23192), + 46: uint16(23193), + 47: uint16(23196), + 48: uint16(23197), + 49: uint16(23198), + 50: uint16(23199), + 51: uint16(23200), + 52: uint16(23201), + 53: uint16(23202), + 54: uint16(23203), + 55: uint16(23204), + 56: uint16(23205), + 57: uint16(23206), + 58: uint16(23207), + 59: uint16(23208), + 60: uint16(23209), + 61: uint16(23211), + 62: uint16(23212), + 63: uint16(23213), + 64: uint16(23214), + 65: uint16(23215), + 66: uint16(23216), + 67: uint16(23217), + 68: uint16(23220), + 69: uint16(23222), + 70: uint16(23223), + 71: uint16(23225), + 72: uint16(23226), + 73: uint16(23227), + 74: uint16(23228), + 75: uint16(23229), + 76: uint16(23231), + 77: uint16(23232), + 78: uint16(23235), + 79: uint16(23236), + 80: uint16(23237), + 81: uint16(23238), + 82: uint16(23239), + 83: uint16(23240), + 84: uint16(23242), + 85: uint16(23243), + 86: uint16(23245), + 87: uint16(23246), + 88: uint16(23247), + 89: uint16(23248), + 90: uint16(23249), + 91: uint16(23251), + 92: uint16(23253), + 93: uint16(23255), + 94: uint16(23257), + 95: uint16(23258), + 96: uint16(23259), + 97: uint16(23261), + 98: uint16(23262), + 99: uint16(23263), + 100: uint16(23266), + 101: uint16(23268), + 102: uint16(23269), + 103: uint16(23271), + 104: uint16(23272), + 105: uint16(23274), + 106: uint16(23276), + 107: uint16(23277), + 108: uint16(23278), + 109: uint16(23279), + 110: uint16(23280), + 111: uint16(23282), + 112: uint16(23283), + 113: uint16(23284), + 114: uint16(23285), + 115: uint16(23286), + 116: uint16(23287), + 117: uint16(23288), + 118: uint16(23289), + 119: uint16(23290), + 120: uint16(23291), + 121: uint16(23292), + 122: uint16(23293), + 123: uint16(23294), + 124: uint16(23295), + 125: uint16(23296), + 126: uint16(23297), + 127: uint16(23298), + 128: uint16(23299), + 129: uint16(23300), + 130: uint16(23301), + 131: uint16(23302), + 132: uint16(23303), + 133: uint16(23304), + 134: uint16(23306), + 135: uint16(23307), + 136: uint16(23308), + 137: uint16(23309), + 138: uint16(23310), + 139: uint16(23311), + 140: uint16(23312), + 141: uint16(23313), + 142: uint16(23314), + 143: uint16(23315), + 144: uint16(23316), + 145: uint16(23317), + 146: uint16(23320), + 147: uint16(23321), + 148: uint16(23322), + 149: uint16(23323), + 150: uint16(23324), + 151: uint16(23325), + 152: uint16(23326), + 153: uint16(23327), + 154: uint16(23328), + 155: uint16(23329), + 156: uint16(23330), + 157: uint16(23331), + 158: uint16(23332), + 159: uint16(23333), + 160: uint16(23334), + 161: uint16(23335), + 162: uint16(23336), + 163: uint16(23337), + 164: uint16(23338), + 165: uint16(23339), + 166: uint16(23340), + 167: uint16(23341), + 168: uint16(23342), + 169: uint16(23343), + 170: uint16(23344), + 171: uint16(23345), + 172: uint16(23347), + 173: uint16(23349), + 174: uint16(23350), + 175: uint16(23352), + 176: uint16(23353), + 177: uint16(23354), + 178: uint16(23355), + 179: uint16(23356), + 180: uint16(23357), + 181: uint16(23358), + 182: uint16(23359), + 183: uint16(23361), + 184: uint16(23362), + 185: uint16(23363), + 186: uint16(23364), + 187: uint16(23365), + 188: uint16(23366), + 189: uint16(23367), + }, + 11: { + 0: uint16(23368), + 1: uint16(23369), + 2: uint16(23370), + 3: uint16(23371), + 4: uint16(23372), + 5: uint16(23373), + 6: uint16(23374), + 7: uint16(23375), + 8: uint16(23378), + 9: uint16(23382), + 10: uint16(23390), + 11: uint16(23392), + 12: uint16(23393), + 13: uint16(23399), + 14: uint16(23400), + 15: uint16(23403), + 16: uint16(23405), + 17: uint16(23406), + 18: uint16(23407), + 19: uint16(23410), + 20: uint16(23412), + 21: uint16(23414), + 22: uint16(23415), + 23: uint16(23416), + 24: uint16(23417), + 25: uint16(23419), + 26: uint16(23420), + 27: uint16(23422), + 28: uint16(23423), + 29: uint16(23426), + 30: uint16(23430), + 31: uint16(23434), + 32: uint16(23437), + 33: uint16(23438), + 34: uint16(23440), + 35: uint16(23441), + 36: uint16(23442), + 37: uint16(23444), + 38: uint16(23446), + 39: uint16(23455), + 40: uint16(23463), + 41: uint16(23464), + 42: uint16(23465), + 43: uint16(23468), + 44: uint16(23469), + 45: uint16(23470), + 46: uint16(23471), + 47: uint16(23473), + 48: uint16(23474), + 49: uint16(23479), + 50: uint16(23482), + 51: uint16(23483), + 52: uint16(23484), + 53: uint16(23488), + 54: uint16(23489), + 55: uint16(23491), + 56: uint16(23496), + 57: uint16(23497), + 58: uint16(23498), + 59: uint16(23499), + 60: uint16(23501), + 61: uint16(23502), + 62: uint16(23503), + 63: uint16(23505), + 64: uint16(23508), + 65: uint16(23509), + 66: uint16(23510), + 67: uint16(23511), + 68: uint16(23512), + 69: uint16(23513), + 70: uint16(23514), + 71: uint16(23515), + 72: uint16(23516), + 73: uint16(23520), + 74: uint16(23522), + 75: uint16(23523), + 76: uint16(23526), + 77: uint16(23527), + 78: uint16(23529), + 79: uint16(23530), + 80: uint16(23531), + 81: uint16(23532), + 82: uint16(23533), + 83: uint16(23535), + 84: uint16(23537), + 85: uint16(23538), + 86: uint16(23539), + 87: uint16(23540), + 88: uint16(23541), + 89: uint16(23542), + 90: uint16(23543), + 91: uint16(23549), + 92: uint16(23550), + 93: uint16(23552), + 94: uint16(23554), + 95: uint16(23555), + 96: uint16(23557), + 97: uint16(23559), + 98: uint16(23560), + 99: uint16(23563), + 100: uint16(23564), + 101: uint16(23565), + 102: uint16(23566), + 103: uint16(23568), + 104: uint16(23570), + 105: uint16(23571), + 106: uint16(23575), + 107: uint16(23577), + 108: uint16(23579), + 109: uint16(23582), + 110: uint16(23583), + 111: uint16(23584), + 112: uint16(23585), + 113: uint16(23587), + 114: uint16(23590), + 115: uint16(23592), + 116: uint16(23593), + 117: uint16(23594), + 118: uint16(23595), + 119: uint16(23597), + 120: uint16(23598), + 121: uint16(23599), + 122: uint16(23600), + 123: uint16(23602), + 124: uint16(23603), + 125: uint16(23605), + 126: uint16(23606), + 127: uint16(23607), + 128: uint16(23619), + 129: uint16(23620), + 130: uint16(23622), + 131: uint16(23623), + 132: uint16(23628), + 133: uint16(23629), + 134: uint16(23634), + 135: uint16(23635), + 136: uint16(23636), + 137: uint16(23638), + 138: uint16(23639), + 139: uint16(23640), + 140: uint16(23642), + 141: uint16(23643), + 142: uint16(23644), + 143: uint16(23645), + 144: uint16(23647), + 145: uint16(23650), + 146: uint16(23652), + 147: uint16(23655), + 148: uint16(23656), + 149: uint16(23657), + 150: uint16(23658), + 151: uint16(23659), + 152: uint16(23660), + 153: uint16(23661), + 154: uint16(23664), + 155: uint16(23666), + 156: uint16(23667), + 157: uint16(23668), + 158: uint16(23669), + 159: uint16(23670), + 160: uint16(23671), + 161: uint16(23672), + 162: uint16(23675), + 163: uint16(23676), + 164: uint16(23677), + 165: uint16(23678), + 166: uint16(23680), + 167: uint16(23683), + 168: uint16(23684), + 169: uint16(23685), + 170: uint16(23686), + 171: uint16(23687), + 172: uint16(23689), + 173: uint16(23690), + 174: uint16(23691), + 175: uint16(23694), + 176: uint16(23695), + 177: uint16(23698), + 178: uint16(23699), + 179: uint16(23701), + 180: uint16(23709), + 181: uint16(23710), + 182: uint16(23711), + 183: uint16(23712), + 184: uint16(23713), + 185: uint16(23716), + 186: uint16(23717), + 187: uint16(23718), + 188: uint16(23719), + 189: uint16(23720), + }, + 12: { + 0: uint16(23722), + 1: uint16(23726), + 2: uint16(23727), + 3: uint16(23728), + 4: uint16(23730), + 5: uint16(23732), + 6: uint16(23734), + 7: uint16(23737), + 8: uint16(23738), + 9: uint16(23739), + 10: uint16(23740), + 11: uint16(23742), + 12: uint16(23744), + 13: uint16(23746), + 14: uint16(23747), + 15: uint16(23749), + 16: uint16(23750), + 17: uint16(23751), + 18: uint16(23752), + 19: uint16(23753), + 20: uint16(23754), + 21: uint16(23756), + 22: uint16(23757), + 23: uint16(23758), + 24: uint16(23759), + 25: uint16(23760), + 26: uint16(23761), + 27: uint16(23763), + 28: uint16(23764), + 29: uint16(23765), + 30: uint16(23766), + 31: uint16(23767), + 32: uint16(23768), + 33: uint16(23770), + 34: uint16(23771), + 35: uint16(23772), + 36: uint16(23773), + 37: uint16(23774), + 38: uint16(23775), + 39: uint16(23776), + 40: uint16(23778), + 41: uint16(23779), + 42: uint16(23783), + 43: uint16(23785), + 44: uint16(23787), + 45: uint16(23788), + 46: uint16(23790), + 47: uint16(23791), + 48: uint16(23793), + 49: uint16(23794), + 50: uint16(23795), + 51: uint16(23796), + 52: uint16(23797), + 53: uint16(23798), + 54: uint16(23799), + 55: uint16(23800), + 56: uint16(23801), + 57: uint16(23802), + 58: uint16(23804), + 59: uint16(23805), + 60: uint16(23806), + 61: uint16(23807), + 62: uint16(23808), + 63: uint16(23809), + 64: uint16(23812), + 65: uint16(23813), + 66: uint16(23816), + 67: uint16(23817), + 68: uint16(23818), + 69: uint16(23819), + 70: uint16(23820), + 71: uint16(23821), + 72: uint16(23823), + 73: uint16(23824), + 74: uint16(23825), + 75: uint16(23826), + 76: uint16(23827), + 77: uint16(23829), + 78: uint16(23831), + 79: uint16(23832), + 80: uint16(23833), + 81: uint16(23834), + 82: uint16(23836), + 83: uint16(23837), + 84: uint16(23839), + 85: uint16(23840), + 86: uint16(23841), + 87: uint16(23842), + 88: uint16(23843), + 89: uint16(23845), + 90: uint16(23848), + 91: uint16(23850), + 92: uint16(23851), + 93: uint16(23852), + 94: uint16(23855), + 95: uint16(23856), + 96: uint16(23857), + 97: uint16(23858), + 98: uint16(23859), + 99: uint16(23861), + 100: uint16(23862), + 101: uint16(23863), + 102: uint16(23864), + 103: uint16(23865), + 104: uint16(23866), + 105: uint16(23867), + 106: uint16(23868), + 107: uint16(23871), + 108: uint16(23872), + 109: uint16(23873), + 110: uint16(23874), + 111: uint16(23875), + 112: uint16(23876), + 113: uint16(23877), + 114: uint16(23878), + 115: uint16(23880), + 116: uint16(23881), + 117: uint16(23885), + 118: uint16(23886), + 119: uint16(23887), + 120: uint16(23888), + 121: uint16(23889), + 122: uint16(23890), + 123: uint16(23891), + 124: uint16(23892), + 125: uint16(23893), + 126: uint16(23894), + 127: uint16(23895), + 128: uint16(23897), + 129: uint16(23898), + 130: uint16(23900), + 131: uint16(23902), + 132: uint16(23903), + 133: uint16(23904), + 134: uint16(23905), + 135: uint16(23906), + 136: uint16(23907), + 137: uint16(23908), + 138: uint16(23909), + 139: uint16(23910), + 140: uint16(23911), + 141: uint16(23912), + 142: uint16(23914), + 143: uint16(23917), + 144: uint16(23918), + 145: uint16(23920), + 146: uint16(23921), + 147: uint16(23922), + 148: uint16(23923), + 149: uint16(23925), + 150: uint16(23926), + 151: uint16(23927), + 152: uint16(23928), + 153: uint16(23929), + 154: uint16(23930), + 155: uint16(23931), + 156: uint16(23932), + 157: uint16(23933), + 158: uint16(23934), + 159: uint16(23935), + 160: uint16(23936), + 161: uint16(23937), + 162: uint16(23939), + 163: uint16(23940), + 164: uint16(23941), + 165: uint16(23942), + 166: uint16(23943), + 167: uint16(23944), + 168: uint16(23945), + 169: uint16(23946), + 170: uint16(23947), + 171: uint16(23948), + 172: uint16(23949), + 173: uint16(23950), + 174: uint16(23951), + 175: uint16(23952), + 176: uint16(23953), + 177: uint16(23954), + 178: uint16(23955), + 179: uint16(23956), + 180: uint16(23957), + 181: uint16(23958), + 182: uint16(23959), + 183: uint16(23960), + 184: uint16(23962), + 185: uint16(23963), + 186: uint16(23964), + 187: uint16(23966), + 188: uint16(23967), + 189: uint16(23968), + }, + 13: { + 0: uint16(23969), + 1: uint16(23970), + 2: uint16(23971), + 3: uint16(23972), + 4: uint16(23973), + 5: uint16(23974), + 6: uint16(23975), + 7: uint16(23976), + 8: uint16(23977), + 9: uint16(23978), + 10: uint16(23979), + 11: uint16(23980), + 12: uint16(23981), + 13: uint16(23982), + 14: uint16(23983), + 15: uint16(23984), + 16: uint16(23985), + 17: uint16(23986), + 18: uint16(23987), + 19: uint16(23988), + 20: uint16(23989), + 21: uint16(23990), + 22: uint16(23992), + 23: uint16(23993), + 24: uint16(23994), + 25: uint16(23995), + 26: uint16(23996), + 27: uint16(23997), + 28: uint16(23998), + 29: uint16(23999), + 30: uint16(24000), + 31: uint16(24001), + 32: uint16(24002), + 33: uint16(24003), + 34: uint16(24004), + 35: uint16(24006), + 36: uint16(24007), + 37: uint16(24008), + 38: uint16(24009), + 39: uint16(24010), + 40: uint16(24011), + 41: uint16(24012), + 42: uint16(24014), + 43: uint16(24015), + 44: uint16(24016), + 45: uint16(24017), + 46: uint16(24018), + 47: uint16(24019), + 48: uint16(24020), + 49: uint16(24021), + 50: uint16(24022), + 51: uint16(24023), + 52: uint16(24024), + 53: uint16(24025), + 54: uint16(24026), + 55: uint16(24028), + 56: uint16(24031), + 57: uint16(24032), + 58: uint16(24035), + 59: uint16(24036), + 60: uint16(24042), + 61: uint16(24044), + 62: uint16(24045), + 63: uint16(24048), + 64: uint16(24053), + 65: uint16(24054), + 66: uint16(24056), + 67: uint16(24057), + 68: uint16(24058), + 69: uint16(24059), + 70: uint16(24060), + 71: uint16(24063), + 72: uint16(24064), + 73: uint16(24068), + 74: uint16(24071), + 75: uint16(24073), + 76: uint16(24074), + 77: uint16(24075), + 78: uint16(24077), + 79: uint16(24078), + 80: uint16(24082), + 81: uint16(24083), + 82: uint16(24087), + 83: uint16(24094), + 84: uint16(24095), + 85: uint16(24096), + 86: uint16(24097), + 87: uint16(24098), + 88: uint16(24099), + 89: uint16(24100), + 90: uint16(24101), + 91: uint16(24104), + 92: uint16(24105), + 93: uint16(24106), + 94: uint16(24107), + 95: uint16(24108), + 96: uint16(24111), + 97: uint16(24112), + 98: uint16(24114), + 99: uint16(24115), + 100: uint16(24116), + 101: uint16(24117), + 102: uint16(24118), + 103: uint16(24121), + 104: uint16(24122), + 105: uint16(24126), + 106: uint16(24127), + 107: uint16(24128), + 108: uint16(24129), + 109: uint16(24131), + 110: uint16(24134), + 111: uint16(24135), + 112: uint16(24136), + 113: uint16(24137), + 114: uint16(24138), + 115: uint16(24139), + 116: uint16(24141), + 117: uint16(24142), + 118: uint16(24143), + 119: uint16(24144), + 120: uint16(24145), + 121: uint16(24146), + 122: uint16(24147), + 123: uint16(24150), + 124: uint16(24151), + 125: uint16(24152), + 126: uint16(24153), + 127: uint16(24154), + 128: uint16(24156), + 129: uint16(24157), + 130: uint16(24159), + 131: uint16(24160), + 132: uint16(24163), + 133: uint16(24164), + 134: uint16(24165), + 135: uint16(24166), + 136: uint16(24167), + 137: uint16(24168), + 138: uint16(24169), + 139: uint16(24170), + 140: uint16(24171), + 141: uint16(24172), + 142: uint16(24173), + 143: uint16(24174), + 144: uint16(24175), + 145: uint16(24176), + 146: uint16(24177), + 147: uint16(24181), + 148: uint16(24183), + 149: uint16(24185), + 150: uint16(24190), + 151: uint16(24193), + 152: uint16(24194), + 153: uint16(24195), + 154: uint16(24197), + 155: uint16(24200), + 156: uint16(24201), + 157: uint16(24204), + 158: uint16(24205), + 159: uint16(24206), + 160: uint16(24210), + 161: uint16(24216), + 162: uint16(24219), + 163: uint16(24221), + 164: uint16(24225), + 165: uint16(24226), + 166: uint16(24227), + 167: uint16(24228), + 168: uint16(24232), + 169: uint16(24233), + 170: uint16(24234), + 171: uint16(24235), + 172: uint16(24236), + 173: uint16(24238), + 174: uint16(24239), + 175: uint16(24240), + 176: uint16(24241), + 177: uint16(24242), + 178: uint16(24244), + 179: uint16(24250), + 180: uint16(24251), + 181: uint16(24252), + 182: uint16(24253), + 183: uint16(24255), + 184: uint16(24256), + 185: uint16(24257), + 186: uint16(24258), + 187: uint16(24259), + 188: uint16(24260), + 189: uint16(24261), + }, + 14: { + 0: uint16(24262), + 1: uint16(24263), + 2: uint16(24264), + 3: uint16(24267), + 4: uint16(24268), + 5: uint16(24269), + 6: uint16(24270), + 7: uint16(24271), + 8: uint16(24272), + 9: uint16(24276), + 10: uint16(24277), + 11: uint16(24279), + 12: uint16(24280), + 13: uint16(24281), + 14: uint16(24282), + 15: uint16(24284), + 16: uint16(24285), + 17: uint16(24286), + 18: uint16(24287), + 19: uint16(24288), + 20: uint16(24289), + 21: uint16(24290), + 22: uint16(24291), + 23: uint16(24292), + 24: uint16(24293), + 25: uint16(24294), + 26: uint16(24295), + 27: uint16(24297), + 28: uint16(24299), + 29: uint16(24300), + 30: uint16(24301), + 31: uint16(24302), + 32: uint16(24303), + 33: uint16(24304), + 34: uint16(24305), + 35: uint16(24306), + 36: uint16(24307), + 37: uint16(24309), + 38: uint16(24312), + 39: uint16(24313), + 40: uint16(24315), + 41: uint16(24316), + 42: uint16(24317), + 43: uint16(24325), + 44: uint16(24326), + 45: uint16(24327), + 46: uint16(24329), + 47: uint16(24332), + 48: uint16(24333), + 49: uint16(24334), + 50: uint16(24336), + 51: uint16(24338), + 52: uint16(24340), + 53: uint16(24342), + 54: uint16(24345), + 55: uint16(24346), + 56: uint16(24348), + 57: uint16(24349), + 58: uint16(24350), + 59: uint16(24353), + 60: uint16(24354), + 61: uint16(24355), + 62: uint16(24356), + 63: uint16(24360), + 64: uint16(24363), + 65: uint16(24364), + 66: uint16(24366), + 67: uint16(24368), + 68: uint16(24370), + 69: uint16(24371), + 70: uint16(24372), + 71: uint16(24373), + 72: uint16(24374), + 73: uint16(24375), + 74: uint16(24376), + 75: uint16(24379), + 76: uint16(24381), + 77: uint16(24382), + 78: uint16(24383), + 79: uint16(24385), + 80: uint16(24386), + 81: uint16(24387), + 82: uint16(24388), + 83: uint16(24389), + 84: uint16(24390), + 85: uint16(24391), + 86: uint16(24392), + 87: uint16(24393), + 88: uint16(24394), + 89: uint16(24395), + 90: uint16(24396), + 91: uint16(24397), + 92: uint16(24398), + 93: uint16(24399), + 94: uint16(24401), + 95: uint16(24404), + 96: uint16(24409), + 97: uint16(24410), + 98: uint16(24411), + 99: uint16(24412), + 100: uint16(24414), + 101: uint16(24415), + 102: uint16(24416), + 103: uint16(24419), + 104: uint16(24421), + 105: uint16(24423), + 106: uint16(24424), + 107: uint16(24427), + 108: uint16(24430), + 109: uint16(24431), + 110: uint16(24434), + 111: uint16(24436), + 112: uint16(24437), + 113: uint16(24438), + 114: uint16(24440), + 115: uint16(24442), + 116: uint16(24445), + 117: uint16(24446), + 118: uint16(24447), + 119: uint16(24451), + 120: uint16(24454), + 121: uint16(24461), + 122: uint16(24462), + 123: uint16(24463), + 124: uint16(24465), + 125: uint16(24467), + 126: uint16(24468), + 127: uint16(24470), + 128: uint16(24474), + 129: uint16(24475), + 130: uint16(24477), + 131: uint16(24478), + 132: uint16(24479), + 133: uint16(24480), + 134: uint16(24482), + 135: uint16(24483), + 136: uint16(24484), + 137: uint16(24485), + 138: uint16(24486), + 139: uint16(24487), + 140: uint16(24489), + 141: uint16(24491), + 142: uint16(24492), + 143: uint16(24495), + 144: uint16(24496), + 145: uint16(24497), + 146: uint16(24498), + 147: uint16(24499), + 148: uint16(24500), + 149: uint16(24502), + 150: uint16(24504), + 151: uint16(24505), + 152: uint16(24506), + 153: uint16(24507), + 154: uint16(24510), + 155: uint16(24511), + 156: uint16(24512), + 157: uint16(24513), + 158: uint16(24514), + 159: uint16(24519), + 160: uint16(24520), + 161: uint16(24522), + 162: uint16(24523), + 163: uint16(24526), + 164: uint16(24531), + 165: uint16(24532), + 166: uint16(24533), + 167: uint16(24538), + 168: uint16(24539), + 169: uint16(24540), + 170: uint16(24542), + 171: uint16(24543), + 172: uint16(24546), + 173: uint16(24547), + 174: uint16(24549), + 175: uint16(24550), + 176: uint16(24552), + 177: uint16(24553), + 178: uint16(24556), + 179: uint16(24559), + 180: uint16(24560), + 181: uint16(24562), + 182: uint16(24563), + 183: uint16(24564), + 184: uint16(24566), + 185: uint16(24567), + 186: uint16(24569), + 187: uint16(24570), + 188: uint16(24572), + 189: uint16(24583), + }, + 15: { + 0: uint16(24584), + 1: uint16(24585), + 2: uint16(24587), + 3: uint16(24588), + 4: uint16(24592), + 5: uint16(24593), + 6: uint16(24595), + 7: uint16(24599), + 8: uint16(24600), + 9: uint16(24602), + 10: uint16(24606), + 11: uint16(24607), + 12: uint16(24610), + 13: uint16(24611), + 14: uint16(24612), + 15: uint16(24620), + 16: uint16(24621), + 17: uint16(24622), + 18: uint16(24624), + 19: uint16(24625), + 20: uint16(24626), + 21: uint16(24627), + 22: uint16(24628), + 23: uint16(24630), + 24: uint16(24631), + 25: uint16(24632), + 26: uint16(24633), + 27: uint16(24634), + 28: uint16(24637), + 29: uint16(24638), + 30: uint16(24640), + 31: uint16(24644), + 32: uint16(24645), + 33: uint16(24646), + 34: uint16(24647), + 35: uint16(24648), + 36: uint16(24649), + 37: uint16(24650), + 38: uint16(24652), + 39: uint16(24654), + 40: uint16(24655), + 41: uint16(24657), + 42: uint16(24659), + 43: uint16(24660), + 44: uint16(24662), + 45: uint16(24663), + 46: uint16(24664), + 47: uint16(24667), + 48: uint16(24668), + 49: uint16(24670), + 50: uint16(24671), + 51: uint16(24672), + 52: uint16(24673), + 53: uint16(24677), + 54: uint16(24678), + 55: uint16(24686), + 56: uint16(24689), + 57: uint16(24690), + 58: uint16(24692), + 59: uint16(24693), + 60: uint16(24695), + 61: uint16(24702), + 62: uint16(24704), + 63: uint16(24705), + 64: uint16(24706), + 65: uint16(24709), + 66: uint16(24710), + 67: uint16(24711), + 68: uint16(24712), + 69: uint16(24714), + 70: uint16(24715), + 71: uint16(24718), + 72: uint16(24719), + 73: uint16(24720), + 74: uint16(24721), + 75: uint16(24723), + 76: uint16(24725), + 77: uint16(24727), + 78: uint16(24728), + 79: uint16(24729), + 80: uint16(24732), + 81: uint16(24734), + 82: uint16(24737), + 83: uint16(24738), + 84: uint16(24740), + 85: uint16(24741), + 86: uint16(24743), + 87: uint16(24745), + 88: uint16(24746), + 89: uint16(24750), + 90: uint16(24752), + 91: uint16(24755), + 92: uint16(24757), + 93: uint16(24758), + 94: uint16(24759), + 95: uint16(24761), + 96: uint16(24762), + 97: uint16(24765), + 98: uint16(24766), + 99: uint16(24767), + 100: uint16(24768), + 101: uint16(24769), + 102: uint16(24770), + 103: uint16(24771), + 104: uint16(24772), + 105: uint16(24775), + 106: uint16(24776), + 107: uint16(24777), + 108: uint16(24780), + 109: uint16(24781), + 110: uint16(24782), + 111: uint16(24783), + 112: uint16(24784), + 113: uint16(24786), + 114: uint16(24787), + 115: uint16(24788), + 116: uint16(24790), + 117: uint16(24791), + 118: uint16(24793), + 119: uint16(24795), + 120: uint16(24798), + 121: uint16(24801), + 122: uint16(24802), + 123: uint16(24803), + 124: uint16(24804), + 125: uint16(24805), + 126: uint16(24810), + 127: uint16(24817), + 128: uint16(24818), + 129: uint16(24821), + 130: uint16(24823), + 131: uint16(24824), + 132: uint16(24827), + 133: uint16(24828), + 134: uint16(24829), + 135: uint16(24830), + 136: uint16(24831), + 137: uint16(24834), + 138: uint16(24835), + 139: uint16(24836), + 140: uint16(24837), + 141: uint16(24839), + 142: uint16(24842), + 143: uint16(24843), + 144: uint16(24844), + 145: uint16(24848), + 146: uint16(24849), + 147: uint16(24850), + 148: uint16(24851), + 149: uint16(24852), + 150: uint16(24854), + 151: uint16(24855), + 152: uint16(24856), + 153: uint16(24857), + 154: uint16(24859), + 155: uint16(24860), + 156: uint16(24861), + 157: uint16(24862), + 158: uint16(24865), + 159: uint16(24866), + 160: uint16(24869), + 161: uint16(24872), + 162: uint16(24873), + 163: uint16(24874), + 164: uint16(24876), + 165: uint16(24877), + 166: uint16(24878), + 167: uint16(24879), + 168: uint16(24880), + 169: uint16(24881), + 170: uint16(24882), + 171: uint16(24883), + 172: uint16(24884), + 173: uint16(24885), + 174: uint16(24886), + 175: uint16(24887), + 176: uint16(24888), + 177: uint16(24889), + 178: uint16(24890), + 179: uint16(24891), + 180: uint16(24892), + 181: uint16(24893), + 182: uint16(24894), + 183: uint16(24896), + 184: uint16(24897), + 185: uint16(24898), + 186: uint16(24899), + 187: uint16(24900), + 188: uint16(24901), + 189: uint16(24902), + }, + 16: { + 0: uint16(24903), + 1: uint16(24905), + 2: uint16(24907), + 3: uint16(24909), + 4: uint16(24911), + 5: uint16(24912), + 6: uint16(24914), + 7: uint16(24915), + 8: uint16(24916), + 9: uint16(24918), + 10: uint16(24919), + 11: uint16(24920), + 12: uint16(24921), + 13: uint16(24922), + 14: uint16(24923), + 15: uint16(24924), + 16: uint16(24926), + 17: uint16(24927), + 18: uint16(24928), + 19: uint16(24929), + 20: uint16(24931), + 21: uint16(24932), + 22: uint16(24933), + 23: uint16(24934), + 24: uint16(24937), + 25: uint16(24938), + 26: uint16(24939), + 27: uint16(24940), + 28: uint16(24941), + 29: uint16(24942), + 30: uint16(24943), + 31: uint16(24945), + 32: uint16(24946), + 33: uint16(24947), + 34: uint16(24948), + 35: uint16(24950), + 36: uint16(24952), + 37: uint16(24953), + 38: uint16(24954), + 39: uint16(24955), + 40: uint16(24956), + 41: uint16(24957), + 42: uint16(24958), + 43: uint16(24959), + 44: uint16(24960), + 45: uint16(24961), + 46: uint16(24962), + 47: uint16(24963), + 48: uint16(24964), + 49: uint16(24965), + 50: uint16(24966), + 51: uint16(24967), + 52: uint16(24968), + 53: uint16(24969), + 54: uint16(24970), + 55: uint16(24972), + 56: uint16(24973), + 57: uint16(24975), + 58: uint16(24976), + 59: uint16(24977), + 60: uint16(24978), + 61: uint16(24979), + 62: uint16(24981), + 63: uint16(24982), + 64: uint16(24983), + 65: uint16(24984), + 66: uint16(24985), + 67: uint16(24986), + 68: uint16(24987), + 69: uint16(24988), + 70: uint16(24990), + 71: uint16(24991), + 72: uint16(24992), + 73: uint16(24993), + 74: uint16(24994), + 75: uint16(24995), + 76: uint16(24996), + 77: uint16(24997), + 78: uint16(24998), + 79: uint16(25002), + 80: uint16(25003), + 81: uint16(25005), + 82: uint16(25006), + 83: uint16(25007), + 84: uint16(25008), + 85: uint16(25009), + 86: uint16(25010), + 87: uint16(25011), + 88: uint16(25012), + 89: uint16(25013), + 90: uint16(25014), + 91: uint16(25016), + 92: uint16(25017), + 93: uint16(25018), + 94: uint16(25019), + 95: uint16(25020), + 96: uint16(25021), + 97: uint16(25023), + 98: uint16(25024), + 99: uint16(25025), + 100: uint16(25027), + 101: uint16(25028), + 102: uint16(25029), + 103: uint16(25030), + 104: uint16(25031), + 105: uint16(25033), + 106: uint16(25036), + 107: uint16(25037), + 108: uint16(25038), + 109: uint16(25039), + 110: uint16(25040), + 111: uint16(25043), + 112: uint16(25045), + 113: uint16(25046), + 114: uint16(25047), + 115: uint16(25048), + 116: uint16(25049), + 117: uint16(25050), + 118: uint16(25051), + 119: uint16(25052), + 120: uint16(25053), + 121: uint16(25054), + 122: uint16(25055), + 123: uint16(25056), + 124: uint16(25057), + 125: uint16(25058), + 126: uint16(25059), + 127: uint16(25060), + 128: uint16(25061), + 129: uint16(25063), + 130: uint16(25064), + 131: uint16(25065), + 132: uint16(25066), + 133: uint16(25067), + 134: uint16(25068), + 135: uint16(25069), + 136: uint16(25070), + 137: uint16(25071), + 138: uint16(25072), + 139: uint16(25073), + 140: uint16(25074), + 141: uint16(25075), + 142: uint16(25076), + 143: uint16(25078), + 144: uint16(25079), + 145: uint16(25080), + 146: uint16(25081), + 147: uint16(25082), + 148: uint16(25083), + 149: uint16(25084), + 150: uint16(25085), + 151: uint16(25086), + 152: uint16(25088), + 153: uint16(25089), + 154: uint16(25090), + 155: uint16(25091), + 156: uint16(25092), + 157: uint16(25093), + 158: uint16(25095), + 159: uint16(25097), + 160: uint16(25107), + 161: uint16(25108), + 162: uint16(25113), + 163: uint16(25116), + 164: uint16(25117), + 165: uint16(25118), + 166: uint16(25120), + 167: uint16(25123), + 168: uint16(25126), + 169: uint16(25127), + 170: uint16(25128), + 171: uint16(25129), + 172: uint16(25131), + 173: uint16(25133), + 174: uint16(25135), + 175: uint16(25136), + 176: uint16(25137), + 177: uint16(25138), + 178: uint16(25141), + 179: uint16(25142), + 180: uint16(25144), + 181: uint16(25145), + 182: uint16(25146), + 183: uint16(25147), + 184: uint16(25148), + 185: uint16(25154), + 186: uint16(25156), + 187: uint16(25157), + 188: uint16(25158), + 189: uint16(25162), + }, + 17: { + 0: uint16(25167), + 1: uint16(25168), + 2: uint16(25173), + 3: uint16(25174), + 4: uint16(25175), + 5: uint16(25177), + 6: uint16(25178), + 7: uint16(25180), + 8: uint16(25181), + 9: uint16(25182), + 10: uint16(25183), + 11: uint16(25184), + 12: uint16(25185), + 13: uint16(25186), + 14: uint16(25188), + 15: uint16(25189), + 16: uint16(25192), + 17: uint16(25201), + 18: uint16(25202), + 19: uint16(25204), + 20: uint16(25205), + 21: uint16(25207), + 22: uint16(25208), + 23: uint16(25210), + 24: uint16(25211), + 25: uint16(25213), + 26: uint16(25217), + 27: uint16(25218), + 28: uint16(25219), + 29: uint16(25221), + 30: uint16(25222), + 31: uint16(25223), + 32: uint16(25224), + 33: uint16(25227), + 34: uint16(25228), + 35: uint16(25229), + 36: uint16(25230), + 37: uint16(25231), + 38: uint16(25232), + 39: uint16(25236), + 40: uint16(25241), + 41: uint16(25244), + 42: uint16(25245), + 43: uint16(25246), + 44: uint16(25251), + 45: uint16(25254), + 46: uint16(25255), + 47: uint16(25257), + 48: uint16(25258), + 49: uint16(25261), + 50: uint16(25262), + 51: uint16(25263), + 52: uint16(25264), + 53: uint16(25266), + 54: uint16(25267), + 55: uint16(25268), + 56: uint16(25270), + 57: uint16(25271), + 58: uint16(25272), + 59: uint16(25274), + 60: uint16(25278), + 61: uint16(25280), + 62: uint16(25281), + 63: uint16(25283), + 64: uint16(25291), + 65: uint16(25295), + 66: uint16(25297), + 67: uint16(25301), + 68: uint16(25309), + 69: uint16(25310), + 70: uint16(25312), + 71: uint16(25313), + 72: uint16(25316), + 73: uint16(25322), + 74: uint16(25323), + 75: uint16(25328), + 76: uint16(25330), + 77: uint16(25333), + 78: uint16(25336), + 79: uint16(25337), + 80: uint16(25338), + 81: uint16(25339), + 82: uint16(25344), + 83: uint16(25347), + 84: uint16(25348), + 85: uint16(25349), + 86: uint16(25350), + 87: uint16(25354), + 88: uint16(25355), + 89: uint16(25356), + 90: uint16(25357), + 91: uint16(25359), + 92: uint16(25360), + 93: uint16(25362), + 94: uint16(25363), + 95: uint16(25364), + 96: uint16(25365), + 97: uint16(25367), + 98: uint16(25368), + 99: uint16(25369), + 100: uint16(25372), + 101: uint16(25382), + 102: uint16(25383), + 103: uint16(25385), + 104: uint16(25388), + 105: uint16(25389), + 106: uint16(25390), + 107: uint16(25392), + 108: uint16(25393), + 109: uint16(25395), + 110: uint16(25396), + 111: uint16(25397), + 112: uint16(25398), + 113: uint16(25399), + 114: uint16(25400), + 115: uint16(25403), + 116: uint16(25404), + 117: uint16(25406), + 118: uint16(25407), + 119: uint16(25408), + 120: uint16(25409), + 121: uint16(25412), + 122: uint16(25415), + 123: uint16(25416), + 124: uint16(25418), + 125: uint16(25425), + 126: uint16(25426), + 127: uint16(25427), + 128: uint16(25428), + 129: uint16(25430), + 130: uint16(25431), + 131: uint16(25432), + 132: uint16(25433), + 133: uint16(25434), + 134: uint16(25435), + 135: uint16(25436), + 136: uint16(25437), + 137: uint16(25440), + 138: uint16(25444), + 139: uint16(25445), + 140: uint16(25446), + 141: uint16(25448), + 142: uint16(25450), + 143: uint16(25451), + 144: uint16(25452), + 145: uint16(25455), + 146: uint16(25456), + 147: uint16(25458), + 148: uint16(25459), + 149: uint16(25460), + 150: uint16(25461), + 151: uint16(25464), + 152: uint16(25465), + 153: uint16(25468), + 154: uint16(25469), + 155: uint16(25470), + 156: uint16(25471), + 157: uint16(25473), + 158: uint16(25475), + 159: uint16(25476), + 160: uint16(25477), + 161: uint16(25478), + 162: uint16(25483), + 163: uint16(25485), + 164: uint16(25489), + 165: uint16(25491), + 166: uint16(25492), + 167: uint16(25493), + 168: uint16(25495), + 169: uint16(25497), + 170: uint16(25498), + 171: uint16(25499), + 172: uint16(25500), + 173: uint16(25501), + 174: uint16(25502), + 175: uint16(25503), + 176: uint16(25505), + 177: uint16(25508), + 178: uint16(25510), + 179: uint16(25515), + 180: uint16(25519), + 181: uint16(25521), + 182: uint16(25522), + 183: uint16(25525), + 184: uint16(25526), + 185: uint16(25529), + 186: uint16(25531), + 187: uint16(25533), + 188: uint16(25535), + 189: uint16(25536), + }, + 18: { + 0: uint16(25537), + 1: uint16(25538), + 2: uint16(25539), + 3: uint16(25541), + 4: uint16(25543), + 5: uint16(25544), + 6: uint16(25546), + 7: uint16(25547), + 8: uint16(25548), + 9: uint16(25553), + 10: uint16(25555), + 11: uint16(25556), + 12: uint16(25557), + 13: uint16(25559), + 14: uint16(25560), + 15: uint16(25561), + 16: uint16(25562), + 17: uint16(25563), + 18: uint16(25564), + 19: uint16(25565), + 20: uint16(25567), + 21: uint16(25570), + 22: uint16(25572), + 23: uint16(25573), + 24: uint16(25574), + 25: uint16(25575), + 26: uint16(25576), + 27: uint16(25579), + 28: uint16(25580), + 29: uint16(25582), + 30: uint16(25583), + 31: uint16(25584), + 32: uint16(25585), + 33: uint16(25587), + 34: uint16(25589), + 35: uint16(25591), + 36: uint16(25593), + 37: uint16(25594), + 38: uint16(25595), + 39: uint16(25596), + 40: uint16(25598), + 41: uint16(25603), + 42: uint16(25604), + 43: uint16(25606), + 44: uint16(25607), + 45: uint16(25608), + 46: uint16(25609), + 47: uint16(25610), + 48: uint16(25613), + 49: uint16(25614), + 50: uint16(25617), + 51: uint16(25618), + 52: uint16(25621), + 53: uint16(25622), + 54: uint16(25623), + 55: uint16(25624), + 56: uint16(25625), + 57: uint16(25626), + 58: uint16(25629), + 59: uint16(25631), + 60: uint16(25634), + 61: uint16(25635), + 62: uint16(25636), + 63: uint16(25637), + 64: uint16(25639), + 65: uint16(25640), + 66: uint16(25641), + 67: uint16(25643), + 68: uint16(25646), + 69: uint16(25647), + 70: uint16(25648), + 71: uint16(25649), + 72: uint16(25650), + 73: uint16(25651), + 74: uint16(25653), + 75: uint16(25654), + 76: uint16(25655), + 77: uint16(25656), + 78: uint16(25657), + 79: uint16(25659), + 80: uint16(25660), + 81: uint16(25662), + 82: uint16(25664), + 83: uint16(25666), + 84: uint16(25667), + 85: uint16(25673), + 86: uint16(25675), + 87: uint16(25676), + 88: uint16(25677), + 89: uint16(25678), + 90: uint16(25679), + 91: uint16(25680), + 92: uint16(25681), + 93: uint16(25683), + 94: uint16(25685), + 95: uint16(25686), + 96: uint16(25687), + 97: uint16(25689), + 98: uint16(25690), + 99: uint16(25691), + 100: uint16(25692), + 101: uint16(25693), + 102: uint16(25695), + 103: uint16(25696), + 104: uint16(25697), + 105: uint16(25698), + 106: uint16(25699), + 107: uint16(25700), + 108: uint16(25701), + 109: uint16(25702), + 110: uint16(25704), + 111: uint16(25706), + 112: uint16(25707), + 113: uint16(25708), + 114: uint16(25710), + 115: uint16(25711), + 116: uint16(25712), + 117: uint16(25713), + 118: uint16(25714), + 119: uint16(25715), + 120: uint16(25716), + 121: uint16(25717), + 122: uint16(25718), + 123: uint16(25719), + 124: uint16(25723), + 125: uint16(25724), + 126: uint16(25725), + 127: uint16(25726), + 128: uint16(25727), + 129: uint16(25728), + 130: uint16(25729), + 131: uint16(25731), + 132: uint16(25734), + 133: uint16(25736), + 134: uint16(25737), + 135: uint16(25738), + 136: uint16(25739), + 137: uint16(25740), + 138: uint16(25741), + 139: uint16(25742), + 140: uint16(25743), + 141: uint16(25744), + 142: uint16(25747), + 143: uint16(25748), + 144: uint16(25751), + 145: uint16(25752), + 146: uint16(25754), + 147: uint16(25755), + 148: uint16(25756), + 149: uint16(25757), + 150: uint16(25759), + 151: uint16(25760), + 152: uint16(25761), + 153: uint16(25762), + 154: uint16(25763), + 155: uint16(25765), + 156: uint16(25766), + 157: uint16(25767), + 158: uint16(25768), + 159: uint16(25770), + 160: uint16(25771), + 161: uint16(25775), + 162: uint16(25777), + 163: uint16(25778), + 164: uint16(25779), + 165: uint16(25780), + 166: uint16(25782), + 167: uint16(25785), + 168: uint16(25787), + 169: uint16(25789), + 170: uint16(25790), + 171: uint16(25791), + 172: uint16(25793), + 173: uint16(25795), + 174: uint16(25796), + 175: uint16(25798), + 176: uint16(25799), + 177: uint16(25800), + 178: uint16(25801), + 179: uint16(25802), + 180: uint16(25803), + 181: uint16(25804), + 182: uint16(25807), + 183: uint16(25809), + 184: uint16(25811), + 185: uint16(25812), + 186: uint16(25813), + 187: uint16(25814), + 188: uint16(25817), + 189: uint16(25818), + }, + 19: { + 0: uint16(25819), + 1: uint16(25820), + 2: uint16(25821), + 3: uint16(25823), + 4: uint16(25824), + 5: uint16(25825), + 6: uint16(25827), + 7: uint16(25829), + 8: uint16(25831), + 9: uint16(25832), + 10: uint16(25833), + 11: uint16(25834), + 12: uint16(25835), + 13: uint16(25836), + 14: uint16(25837), + 15: uint16(25838), + 16: uint16(25839), + 17: uint16(25840), + 18: uint16(25841), + 19: uint16(25842), + 20: uint16(25843), + 21: uint16(25844), + 22: uint16(25845), + 23: uint16(25846), + 24: uint16(25847), + 25: uint16(25848), + 26: uint16(25849), + 27: uint16(25850), + 28: uint16(25851), + 29: uint16(25852), + 30: uint16(25853), + 31: uint16(25854), + 32: uint16(25855), + 33: uint16(25857), + 34: uint16(25858), + 35: uint16(25859), + 36: uint16(25860), + 37: uint16(25861), + 38: uint16(25862), + 39: uint16(25863), + 40: uint16(25864), + 41: uint16(25866), + 42: uint16(25867), + 43: uint16(25868), + 44: uint16(25869), + 45: uint16(25870), + 46: uint16(25871), + 47: uint16(25872), + 48: uint16(25873), + 49: uint16(25875), + 50: uint16(25876), + 51: uint16(25877), + 52: uint16(25878), + 53: uint16(25879), + 54: uint16(25881), + 55: uint16(25882), + 56: uint16(25883), + 57: uint16(25884), + 58: uint16(25885), + 59: uint16(25886), + 60: uint16(25887), + 61: uint16(25888), + 62: uint16(25889), + 63: uint16(25890), + 64: uint16(25891), + 65: uint16(25892), + 66: uint16(25894), + 67: uint16(25895), + 68: uint16(25896), + 69: uint16(25897), + 70: uint16(25898), + 71: uint16(25900), + 72: uint16(25901), + 73: uint16(25904), + 74: uint16(25905), + 75: uint16(25906), + 76: uint16(25907), + 77: uint16(25911), + 78: uint16(25914), + 79: uint16(25916), + 80: uint16(25917), + 81: uint16(25920), + 82: uint16(25921), + 83: uint16(25922), + 84: uint16(25923), + 85: uint16(25924), + 86: uint16(25926), + 87: uint16(25927), + 88: uint16(25930), + 89: uint16(25931), + 90: uint16(25933), + 91: uint16(25934), + 92: uint16(25936), + 93: uint16(25938), + 94: uint16(25939), + 95: uint16(25940), + 96: uint16(25943), + 97: uint16(25944), + 98: uint16(25946), + 99: uint16(25948), + 100: uint16(25951), + 101: uint16(25952), + 102: uint16(25953), + 103: uint16(25956), + 104: uint16(25957), + 105: uint16(25959), + 106: uint16(25960), + 107: uint16(25961), + 108: uint16(25962), + 109: uint16(25965), + 110: uint16(25966), + 111: uint16(25967), + 112: uint16(25969), + 113: uint16(25971), + 114: uint16(25973), + 115: uint16(25974), + 116: uint16(25976), + 117: uint16(25977), + 118: uint16(25978), + 119: uint16(25979), + 120: uint16(25980), + 121: uint16(25981), + 122: uint16(25982), + 123: uint16(25983), + 124: uint16(25984), + 125: uint16(25985), + 126: uint16(25986), + 127: uint16(25987), + 128: uint16(25988), + 129: uint16(25989), + 130: uint16(25990), + 131: uint16(25992), + 132: uint16(25993), + 133: uint16(25994), + 134: uint16(25997), + 135: uint16(25998), + 136: uint16(25999), + 137: uint16(26002), + 138: uint16(26004), + 139: uint16(26005), + 140: uint16(26006), + 141: uint16(26008), + 142: uint16(26010), + 143: uint16(26013), + 144: uint16(26014), + 145: uint16(26016), + 146: uint16(26018), + 147: uint16(26019), + 148: uint16(26022), + 149: uint16(26024), + 150: uint16(26026), + 151: uint16(26028), + 152: uint16(26030), + 153: uint16(26033), + 154: uint16(26034), + 155: uint16(26035), + 156: uint16(26036), + 157: uint16(26037), + 158: uint16(26038), + 159: uint16(26039), + 160: uint16(26040), + 161: uint16(26042), + 162: uint16(26043), + 163: uint16(26046), + 164: uint16(26047), + 165: uint16(26048), + 166: uint16(26050), + 167: uint16(26055), + 168: uint16(26056), + 169: uint16(26057), + 170: uint16(26058), + 171: uint16(26061), + 172: uint16(26064), + 173: uint16(26065), + 174: uint16(26067), + 175: uint16(26068), + 176: uint16(26069), + 177: uint16(26072), + 178: uint16(26073), + 179: uint16(26074), + 180: uint16(26075), + 181: uint16(26076), + 182: uint16(26077), + 183: uint16(26078), + 184: uint16(26079), + 185: uint16(26081), + 186: uint16(26083), + 187: uint16(26084), + 188: uint16(26090), + 189: uint16(26091), + }, + 20: { + 0: uint16(26098), + 1: uint16(26099), + 2: uint16(26100), + 3: uint16(26101), + 4: uint16(26104), + 5: uint16(26105), + 6: uint16(26107), + 7: uint16(26108), + 8: uint16(26109), + 9: uint16(26110), + 10: uint16(26111), + 11: uint16(26113), + 12: uint16(26116), + 13: uint16(26117), + 14: uint16(26119), + 15: uint16(26120), + 16: uint16(26121), + 17: uint16(26123), + 18: uint16(26125), + 19: uint16(26128), + 20: uint16(26129), + 21: uint16(26130), + 22: uint16(26134), + 23: uint16(26135), + 24: uint16(26136), + 25: uint16(26138), + 26: uint16(26139), + 27: uint16(26140), + 28: uint16(26142), + 29: uint16(26145), + 30: uint16(26146), + 31: uint16(26147), + 32: uint16(26148), + 33: uint16(26150), + 34: uint16(26153), + 35: uint16(26154), + 36: uint16(26155), + 37: uint16(26156), + 38: uint16(26158), + 39: uint16(26160), + 40: uint16(26162), + 41: uint16(26163), + 42: uint16(26167), + 43: uint16(26168), + 44: uint16(26169), + 45: uint16(26170), + 46: uint16(26171), + 47: uint16(26173), + 48: uint16(26175), + 49: uint16(26176), + 50: uint16(26178), + 51: uint16(26180), + 52: uint16(26181), + 53: uint16(26182), + 54: uint16(26183), + 55: uint16(26184), + 56: uint16(26185), + 57: uint16(26186), + 58: uint16(26189), + 59: uint16(26190), + 60: uint16(26192), + 61: uint16(26193), + 62: uint16(26200), + 63: uint16(26201), + 64: uint16(26203), + 65: uint16(26204), + 66: uint16(26205), + 67: uint16(26206), + 68: uint16(26208), + 69: uint16(26210), + 70: uint16(26211), + 71: uint16(26213), + 72: uint16(26215), + 73: uint16(26217), + 74: uint16(26218), + 75: uint16(26219), + 76: uint16(26220), + 77: uint16(26221), + 78: uint16(26225), + 79: uint16(26226), + 80: uint16(26227), + 81: uint16(26229), + 82: uint16(26232), + 83: uint16(26233), + 84: uint16(26235), + 85: uint16(26236), + 86: uint16(26237), + 87: uint16(26239), + 88: uint16(26240), + 89: uint16(26241), + 90: uint16(26243), + 91: uint16(26245), + 92: uint16(26246), + 93: uint16(26248), + 94: uint16(26249), + 95: uint16(26250), + 96: uint16(26251), + 97: uint16(26253), + 98: uint16(26254), + 99: uint16(26255), + 100: uint16(26256), + 101: uint16(26258), + 102: uint16(26259), + 103: uint16(26260), + 104: uint16(26261), + 105: uint16(26264), + 106: uint16(26265), + 107: uint16(26266), + 108: uint16(26267), + 109: uint16(26268), + 110: uint16(26270), + 111: uint16(26271), + 112: uint16(26272), + 113: uint16(26273), + 114: uint16(26274), + 115: uint16(26275), + 116: uint16(26276), + 117: uint16(26277), + 118: uint16(26278), + 119: uint16(26281), + 120: uint16(26282), + 121: uint16(26283), + 122: uint16(26284), + 123: uint16(26285), + 124: uint16(26287), + 125: uint16(26288), + 126: uint16(26289), + 127: uint16(26290), + 128: uint16(26291), + 129: uint16(26293), + 130: uint16(26294), + 131: uint16(26295), + 132: uint16(26296), + 133: uint16(26298), + 134: uint16(26299), + 135: uint16(26300), + 136: uint16(26301), + 137: uint16(26303), + 138: uint16(26304), + 139: uint16(26305), + 140: uint16(26306), + 141: uint16(26307), + 142: uint16(26308), + 143: uint16(26309), + 144: uint16(26310), + 145: uint16(26311), + 146: uint16(26312), + 147: uint16(26313), + 148: uint16(26314), + 149: uint16(26315), + 150: uint16(26316), + 151: uint16(26317), + 152: uint16(26318), + 153: uint16(26319), + 154: uint16(26320), + 155: uint16(26321), + 156: uint16(26322), + 157: uint16(26323), + 158: uint16(26324), + 159: uint16(26325), + 160: uint16(26326), + 161: uint16(26327), + 162: uint16(26328), + 163: uint16(26330), + 164: uint16(26334), + 165: uint16(26335), + 166: uint16(26336), + 167: uint16(26337), + 168: uint16(26338), + 169: uint16(26339), + 170: uint16(26340), + 171: uint16(26341), + 172: uint16(26343), + 173: uint16(26344), + 174: uint16(26346), + 175: uint16(26347), + 176: uint16(26348), + 177: uint16(26349), + 178: uint16(26350), + 179: uint16(26351), + 180: uint16(26353), + 181: uint16(26357), + 182: uint16(26358), + 183: uint16(26360), + 184: uint16(26362), + 185: uint16(26363), + 186: uint16(26365), + 187: uint16(26369), + 188: uint16(26370), + 189: uint16(26371), + }, + 21: { + 0: uint16(26372), + 1: uint16(26373), + 2: uint16(26374), + 3: uint16(26375), + 4: uint16(26380), + 5: uint16(26382), + 6: uint16(26383), + 7: uint16(26385), + 8: uint16(26386), + 9: uint16(26387), + 10: uint16(26390), + 11: uint16(26392), + 12: uint16(26393), + 13: uint16(26394), + 14: uint16(26396), + 15: uint16(26398), + 16: uint16(26400), + 17: uint16(26401), + 18: uint16(26402), + 19: uint16(26403), + 20: uint16(26404), + 21: uint16(26405), + 22: uint16(26407), + 23: uint16(26409), + 24: uint16(26414), + 25: uint16(26416), + 26: uint16(26418), + 27: uint16(26419), + 28: uint16(26422), + 29: uint16(26423), + 30: uint16(26424), + 31: uint16(26425), + 32: uint16(26427), + 33: uint16(26428), + 34: uint16(26430), + 35: uint16(26431), + 36: uint16(26433), + 37: uint16(26436), + 38: uint16(26437), + 39: uint16(26439), + 40: uint16(26442), + 41: uint16(26443), + 42: uint16(26445), + 43: uint16(26450), + 44: uint16(26452), + 45: uint16(26453), + 46: uint16(26455), + 47: uint16(26456), + 48: uint16(26457), + 49: uint16(26458), + 50: uint16(26459), + 51: uint16(26461), + 52: uint16(26466), + 53: uint16(26467), + 54: uint16(26468), + 55: uint16(26470), + 56: uint16(26471), + 57: uint16(26475), + 58: uint16(26476), + 59: uint16(26478), + 60: uint16(26481), + 61: uint16(26484), + 62: uint16(26486), + 63: uint16(26488), + 64: uint16(26489), + 65: uint16(26490), + 66: uint16(26491), + 67: uint16(26493), + 68: uint16(26496), + 69: uint16(26498), + 70: uint16(26499), + 71: uint16(26501), + 72: uint16(26502), + 73: uint16(26504), + 74: uint16(26506), + 75: uint16(26508), + 76: uint16(26509), + 77: uint16(26510), + 78: uint16(26511), + 79: uint16(26513), + 80: uint16(26514), + 81: uint16(26515), + 82: uint16(26516), + 83: uint16(26518), + 84: uint16(26521), + 85: uint16(26523), + 86: uint16(26527), + 87: uint16(26528), + 88: uint16(26529), + 89: uint16(26532), + 90: uint16(26534), + 91: uint16(26537), + 92: uint16(26540), + 93: uint16(26542), + 94: uint16(26545), + 95: uint16(26546), + 96: uint16(26548), + 97: uint16(26553), + 98: uint16(26554), + 99: uint16(26555), + 100: uint16(26556), + 101: uint16(26557), + 102: uint16(26558), + 103: uint16(26559), + 104: uint16(26560), + 105: uint16(26562), + 106: uint16(26565), + 107: uint16(26566), + 108: uint16(26567), + 109: uint16(26568), + 110: uint16(26569), + 111: uint16(26570), + 112: uint16(26571), + 113: uint16(26572), + 114: uint16(26573), + 115: uint16(26574), + 116: uint16(26581), + 117: uint16(26582), + 118: uint16(26583), + 119: uint16(26587), + 120: uint16(26591), + 121: uint16(26593), + 122: uint16(26595), + 123: uint16(26596), + 124: uint16(26598), + 125: uint16(26599), + 126: uint16(26600), + 127: uint16(26602), + 128: uint16(26603), + 129: uint16(26605), + 130: uint16(26606), + 131: uint16(26610), + 132: uint16(26613), + 133: uint16(26614), + 134: uint16(26615), + 135: uint16(26616), + 136: uint16(26617), + 137: uint16(26618), + 138: uint16(26619), + 139: uint16(26620), + 140: uint16(26622), + 141: uint16(26625), + 142: uint16(26626), + 143: uint16(26627), + 144: uint16(26628), + 145: uint16(26630), + 146: uint16(26637), + 147: uint16(26640), + 148: uint16(26642), + 149: uint16(26644), + 150: uint16(26645), + 151: uint16(26648), + 152: uint16(26649), + 153: uint16(26650), + 154: uint16(26651), + 155: uint16(26652), + 156: uint16(26654), + 157: uint16(26655), + 158: uint16(26656), + 159: uint16(26658), + 160: uint16(26659), + 161: uint16(26660), + 162: uint16(26661), + 163: uint16(26662), + 164: uint16(26663), + 165: uint16(26664), + 166: uint16(26667), + 167: uint16(26668), + 168: uint16(26669), + 169: uint16(26670), + 170: uint16(26671), + 171: uint16(26672), + 172: uint16(26673), + 173: uint16(26676), + 174: uint16(26677), + 175: uint16(26678), + 176: uint16(26682), + 177: uint16(26683), + 178: uint16(26687), + 179: uint16(26695), + 180: uint16(26699), + 181: uint16(26701), + 182: uint16(26703), + 183: uint16(26706), + 184: uint16(26710), + 185: uint16(26711), + 186: uint16(26712), + 187: uint16(26713), + 188: uint16(26714), + 189: uint16(26715), + }, + 22: { + 0: uint16(26716), + 1: uint16(26717), + 2: uint16(26718), + 3: uint16(26719), + 4: uint16(26730), + 5: uint16(26732), + 6: uint16(26733), + 7: uint16(26734), + 8: uint16(26735), + 9: uint16(26736), + 10: uint16(26737), + 11: uint16(26738), + 12: uint16(26739), + 13: uint16(26741), + 14: uint16(26744), + 15: uint16(26745), + 16: uint16(26746), + 17: uint16(26747), + 18: uint16(26748), + 19: uint16(26749), + 20: uint16(26750), + 21: uint16(26751), + 22: uint16(26752), + 23: uint16(26754), + 24: uint16(26756), + 25: uint16(26759), + 26: uint16(26760), + 27: uint16(26761), + 28: uint16(26762), + 29: uint16(26763), + 30: uint16(26764), + 31: uint16(26765), + 32: uint16(26766), + 33: uint16(26768), + 34: uint16(26769), + 35: uint16(26770), + 36: uint16(26772), + 37: uint16(26773), + 38: uint16(26774), + 39: uint16(26776), + 40: uint16(26777), + 41: uint16(26778), + 42: uint16(26779), + 43: uint16(26780), + 44: uint16(26781), + 45: uint16(26782), + 46: uint16(26783), + 47: uint16(26784), + 48: uint16(26785), + 49: uint16(26787), + 50: uint16(26788), + 51: uint16(26789), + 52: uint16(26793), + 53: uint16(26794), + 54: uint16(26795), + 55: uint16(26796), + 56: uint16(26798), + 57: uint16(26801), + 58: uint16(26802), + 59: uint16(26804), + 60: uint16(26806), + 61: uint16(26807), + 62: uint16(26808), + 63: uint16(26809), + 64: uint16(26810), + 65: uint16(26811), + 66: uint16(26812), + 67: uint16(26813), + 68: uint16(26814), + 69: uint16(26815), + 70: uint16(26817), + 71: uint16(26819), + 72: uint16(26820), + 73: uint16(26821), + 74: uint16(26822), + 75: uint16(26823), + 76: uint16(26824), + 77: uint16(26826), + 78: uint16(26828), + 79: uint16(26830), + 80: uint16(26831), + 81: uint16(26832), + 82: uint16(26833), + 83: uint16(26835), + 84: uint16(26836), + 85: uint16(26838), + 86: uint16(26839), + 87: uint16(26841), + 88: uint16(26843), + 89: uint16(26844), + 90: uint16(26845), + 91: uint16(26846), + 92: uint16(26847), + 93: uint16(26849), + 94: uint16(26850), + 95: uint16(26852), + 96: uint16(26853), + 97: uint16(26854), + 98: uint16(26855), + 99: uint16(26856), + 100: uint16(26857), + 101: uint16(26858), + 102: uint16(26859), + 103: uint16(26860), + 104: uint16(26861), + 105: uint16(26863), + 106: uint16(26866), + 107: uint16(26867), + 108: uint16(26868), + 109: uint16(26870), + 110: uint16(26871), + 111: uint16(26872), + 112: uint16(26875), + 113: uint16(26877), + 114: uint16(26878), + 115: uint16(26879), + 116: uint16(26880), + 117: uint16(26882), + 118: uint16(26883), + 119: uint16(26884), + 120: uint16(26886), + 121: uint16(26887), + 122: uint16(26888), + 123: uint16(26889), + 124: uint16(26890), + 125: uint16(26892), + 126: uint16(26895), + 127: uint16(26897), + 128: uint16(26899), + 129: uint16(26900), + 130: uint16(26901), + 131: uint16(26902), + 132: uint16(26903), + 133: uint16(26904), + 134: uint16(26905), + 135: uint16(26906), + 136: uint16(26907), + 137: uint16(26908), + 138: uint16(26909), + 139: uint16(26910), + 140: uint16(26913), + 141: uint16(26914), + 142: uint16(26915), + 143: uint16(26917), + 144: uint16(26918), + 145: uint16(26919), + 146: uint16(26920), + 147: uint16(26921), + 148: uint16(26922), + 149: uint16(26923), + 150: uint16(26924), + 151: uint16(26926), + 152: uint16(26927), + 153: uint16(26929), + 154: uint16(26930), + 155: uint16(26931), + 156: uint16(26933), + 157: uint16(26934), + 158: uint16(26935), + 159: uint16(26936), + 160: uint16(26938), + 161: uint16(26939), + 162: uint16(26940), + 163: uint16(26942), + 164: uint16(26944), + 165: uint16(26945), + 166: uint16(26947), + 167: uint16(26948), + 168: uint16(26949), + 169: uint16(26950), + 170: uint16(26951), + 171: uint16(26952), + 172: uint16(26953), + 173: uint16(26954), + 174: uint16(26955), + 175: uint16(26956), + 176: uint16(26957), + 177: uint16(26958), + 178: uint16(26959), + 179: uint16(26960), + 180: uint16(26961), + 181: uint16(26962), + 182: uint16(26963), + 183: uint16(26965), + 184: uint16(26966), + 185: uint16(26968), + 186: uint16(26969), + 187: uint16(26971), + 188: uint16(26972), + 189: uint16(26975), + }, + 23: { + 0: uint16(26977), + 1: uint16(26978), + 2: uint16(26980), + 3: uint16(26981), + 4: uint16(26983), + 5: uint16(26984), + 6: uint16(26985), + 7: uint16(26986), + 8: uint16(26988), + 9: uint16(26989), + 10: uint16(26991), + 11: uint16(26992), + 12: uint16(26994), + 13: uint16(26995), + 14: uint16(26996), + 15: uint16(26997), + 16: uint16(26998), + 17: uint16(27002), + 18: uint16(27003), + 19: uint16(27005), + 20: uint16(27006), + 21: uint16(27007), + 22: uint16(27009), + 23: uint16(27011), + 24: uint16(27013), + 25: uint16(27018), + 26: uint16(27019), + 27: uint16(27020), + 28: uint16(27022), + 29: uint16(27023), + 30: uint16(27024), + 31: uint16(27025), + 32: uint16(27026), + 33: uint16(27027), + 34: uint16(27030), + 35: uint16(27031), + 36: uint16(27033), + 37: uint16(27034), + 38: uint16(27037), + 39: uint16(27038), + 40: uint16(27039), + 41: uint16(27040), + 42: uint16(27041), + 43: uint16(27042), + 44: uint16(27043), + 45: uint16(27044), + 46: uint16(27045), + 47: uint16(27046), + 48: uint16(27049), + 49: uint16(27050), + 50: uint16(27052), + 51: uint16(27054), + 52: uint16(27055), + 53: uint16(27056), + 54: uint16(27058), + 55: uint16(27059), + 56: uint16(27061), + 57: uint16(27062), + 58: uint16(27064), + 59: uint16(27065), + 60: uint16(27066), + 61: uint16(27068), + 62: uint16(27069), + 63: uint16(27070), + 64: uint16(27071), + 65: uint16(27072), + 66: uint16(27074), + 67: uint16(27075), + 68: uint16(27076), + 69: uint16(27077), + 70: uint16(27078), + 71: uint16(27079), + 72: uint16(27080), + 73: uint16(27081), + 74: uint16(27083), + 75: uint16(27085), + 76: uint16(27087), + 77: uint16(27089), + 78: uint16(27090), + 79: uint16(27091), + 80: uint16(27093), + 81: uint16(27094), + 82: uint16(27095), + 83: uint16(27096), + 84: uint16(27097), + 85: uint16(27098), + 86: uint16(27100), + 87: uint16(27101), + 88: uint16(27102), + 89: uint16(27105), + 90: uint16(27106), + 91: uint16(27107), + 92: uint16(27108), + 93: uint16(27109), + 94: uint16(27110), + 95: uint16(27111), + 96: uint16(27112), + 97: uint16(27113), + 98: uint16(27114), + 99: uint16(27115), + 100: uint16(27116), + 101: uint16(27118), + 102: uint16(27119), + 103: uint16(27120), + 104: uint16(27121), + 105: uint16(27123), + 106: uint16(27124), + 107: uint16(27125), + 108: uint16(27126), + 109: uint16(27127), + 110: uint16(27128), + 111: uint16(27129), + 112: uint16(27130), + 113: uint16(27131), + 114: uint16(27132), + 115: uint16(27134), + 116: uint16(27136), + 117: uint16(27137), + 118: uint16(27138), + 119: uint16(27139), + 120: uint16(27140), + 121: uint16(27141), + 122: uint16(27142), + 123: uint16(27143), + 124: uint16(27144), + 125: uint16(27145), + 126: uint16(27147), + 127: uint16(27148), + 128: uint16(27149), + 129: uint16(27150), + 130: uint16(27151), + 131: uint16(27152), + 132: uint16(27153), + 133: uint16(27154), + 134: uint16(27155), + 135: uint16(27156), + 136: uint16(27157), + 137: uint16(27158), + 138: uint16(27161), + 139: uint16(27162), + 140: uint16(27163), + 141: uint16(27164), + 142: uint16(27165), + 143: uint16(27166), + 144: uint16(27168), + 145: uint16(27170), + 146: uint16(27171), + 147: uint16(27172), + 148: uint16(27173), + 149: uint16(27174), + 150: uint16(27175), + 151: uint16(27177), + 152: uint16(27179), + 153: uint16(27180), + 154: uint16(27181), + 155: uint16(27182), + 156: uint16(27184), + 157: uint16(27186), + 158: uint16(27187), + 159: uint16(27188), + 160: uint16(27190), + 161: uint16(27191), + 162: uint16(27192), + 163: uint16(27193), + 164: uint16(27194), + 165: uint16(27195), + 166: uint16(27196), + 167: uint16(27199), + 168: uint16(27200), + 169: uint16(27201), + 170: uint16(27202), + 171: uint16(27203), + 172: uint16(27205), + 173: uint16(27206), + 174: uint16(27208), + 175: uint16(27209), + 176: uint16(27210), + 177: uint16(27211), + 178: uint16(27212), + 179: uint16(27213), + 180: uint16(27214), + 181: uint16(27215), + 182: uint16(27217), + 183: uint16(27218), + 184: uint16(27219), + 185: uint16(27220), + 186: uint16(27221), + 187: uint16(27222), + 188: uint16(27223), + 189: uint16(27226), + }, + 24: { + 0: uint16(27228), + 1: uint16(27229), + 2: uint16(27230), + 3: uint16(27231), + 4: uint16(27232), + 5: uint16(27234), + 6: uint16(27235), + 7: uint16(27236), + 8: uint16(27238), + 9: uint16(27239), + 10: uint16(27240), + 11: uint16(27241), + 12: uint16(27242), + 13: uint16(27243), + 14: uint16(27244), + 15: uint16(27245), + 16: uint16(27246), + 17: uint16(27247), + 18: uint16(27248), + 19: uint16(27250), + 20: uint16(27251), + 21: uint16(27252), + 22: uint16(27253), + 23: uint16(27254), + 24: uint16(27255), + 25: uint16(27256), + 26: uint16(27258), + 27: uint16(27259), + 28: uint16(27261), + 29: uint16(27262), + 30: uint16(27263), + 31: uint16(27265), + 32: uint16(27266), + 33: uint16(27267), + 34: uint16(27269), + 35: uint16(27270), + 36: uint16(27271), + 37: uint16(27272), + 38: uint16(27273), + 39: uint16(27274), + 40: uint16(27275), + 41: uint16(27276), + 42: uint16(27277), + 43: uint16(27279), + 44: uint16(27282), + 45: uint16(27283), + 46: uint16(27284), + 47: uint16(27285), + 48: uint16(27286), + 49: uint16(27288), + 50: uint16(27289), + 51: uint16(27290), + 52: uint16(27291), + 53: uint16(27292), + 54: uint16(27293), + 55: uint16(27294), + 56: uint16(27295), + 57: uint16(27297), + 58: uint16(27298), + 59: uint16(27299), + 60: uint16(27300), + 61: uint16(27301), + 62: uint16(27302), + 63: uint16(27303), + 64: uint16(27304), + 65: uint16(27306), + 66: uint16(27309), + 67: uint16(27310), + 68: uint16(27311), + 69: uint16(27312), + 70: uint16(27313), + 71: uint16(27314), + 72: uint16(27315), + 73: uint16(27316), + 74: uint16(27317), + 75: uint16(27318), + 76: uint16(27319), + 77: uint16(27320), + 78: uint16(27321), + 79: uint16(27322), + 80: uint16(27323), + 81: uint16(27324), + 82: uint16(27325), + 83: uint16(27326), + 84: uint16(27327), + 85: uint16(27328), + 86: uint16(27329), + 87: uint16(27330), + 88: uint16(27331), + 89: uint16(27332), + 90: uint16(27333), + 91: uint16(27334), + 92: uint16(27335), + 93: uint16(27336), + 94: uint16(27337), + 95: uint16(27338), + 96: uint16(27339), + 97: uint16(27340), + 98: uint16(27341), + 99: uint16(27342), + 100: uint16(27343), + 101: uint16(27344), + 102: uint16(27345), + 103: uint16(27346), + 104: uint16(27347), + 105: uint16(27348), + 106: uint16(27349), + 107: uint16(27350), + 108: uint16(27351), + 109: uint16(27352), + 110: uint16(27353), + 111: uint16(27354), + 112: uint16(27355), + 113: uint16(27356), + 114: uint16(27357), + 115: uint16(27358), + 116: uint16(27359), + 117: uint16(27360), + 118: uint16(27361), + 119: uint16(27362), + 120: uint16(27363), + 121: uint16(27364), + 122: uint16(27365), + 123: uint16(27366), + 124: uint16(27367), + 125: uint16(27368), + 126: uint16(27369), + 127: uint16(27370), + 128: uint16(27371), + 129: uint16(27372), + 130: uint16(27373), + 131: uint16(27374), + 132: uint16(27375), + 133: uint16(27376), + 134: uint16(27377), + 135: uint16(27378), + 136: uint16(27379), + 137: uint16(27380), + 138: uint16(27381), + 139: uint16(27382), + 140: uint16(27383), + 141: uint16(27384), + 142: uint16(27385), + 143: uint16(27386), + 144: uint16(27387), + 145: uint16(27388), + 146: uint16(27389), + 147: uint16(27390), + 148: uint16(27391), + 149: uint16(27392), + 150: uint16(27393), + 151: uint16(27394), + 152: uint16(27395), + 153: uint16(27396), + 154: uint16(27397), + 155: uint16(27398), + 156: uint16(27399), + 157: uint16(27400), + 158: uint16(27401), + 159: uint16(27402), + 160: uint16(27403), + 161: uint16(27404), + 162: uint16(27405), + 163: uint16(27406), + 164: uint16(27407), + 165: uint16(27408), + 166: uint16(27409), + 167: uint16(27410), + 168: uint16(27411), + 169: uint16(27412), + 170: uint16(27413), + 171: uint16(27414), + 172: uint16(27415), + 173: uint16(27416), + 174: uint16(27417), + 175: uint16(27418), + 176: uint16(27419), + 177: uint16(27420), + 178: uint16(27421), + 179: uint16(27422), + 180: uint16(27423), + 181: uint16(27429), + 182: uint16(27430), + 183: uint16(27432), + 184: uint16(27433), + 185: uint16(27434), + 186: uint16(27435), + 187: uint16(27436), + 188: uint16(27437), + 189: uint16(27438), + }, + 25: { + 0: uint16(27439), + 1: uint16(27440), + 2: uint16(27441), + 3: uint16(27443), + 4: uint16(27444), + 5: uint16(27445), + 6: uint16(27446), + 7: uint16(27448), + 8: uint16(27451), + 9: uint16(27452), + 10: uint16(27453), + 11: uint16(27455), + 12: uint16(27456), + 13: uint16(27457), + 14: uint16(27458), + 15: uint16(27460), + 16: uint16(27461), + 17: uint16(27464), + 18: uint16(27466), + 19: uint16(27467), + 20: uint16(27469), + 21: uint16(27470), + 22: uint16(27471), + 23: uint16(27472), + 24: uint16(27473), + 25: uint16(27474), + 26: uint16(27475), + 27: uint16(27476), + 28: uint16(27477), + 29: uint16(27478), + 30: uint16(27479), + 31: uint16(27480), + 32: uint16(27482), + 33: uint16(27483), + 34: uint16(27484), + 35: uint16(27485), + 36: uint16(27486), + 37: uint16(27487), + 38: uint16(27488), + 39: uint16(27489), + 40: uint16(27496), + 41: uint16(27497), + 42: uint16(27499), + 43: uint16(27500), + 44: uint16(27501), + 45: uint16(27502), + 46: uint16(27503), + 47: uint16(27504), + 48: uint16(27505), + 49: uint16(27506), + 50: uint16(27507), + 51: uint16(27508), + 52: uint16(27509), + 53: uint16(27510), + 54: uint16(27511), + 55: uint16(27512), + 56: uint16(27514), + 57: uint16(27517), + 58: uint16(27518), + 59: uint16(27519), + 60: uint16(27520), + 61: uint16(27525), + 62: uint16(27528), + 63: uint16(27532), + 64: uint16(27534), + 65: uint16(27535), + 66: uint16(27536), + 67: uint16(27537), + 68: uint16(27540), + 69: uint16(27541), + 70: uint16(27543), + 71: uint16(27544), + 72: uint16(27545), + 73: uint16(27548), + 74: uint16(27549), + 75: uint16(27550), + 76: uint16(27551), + 77: uint16(27552), + 78: uint16(27554), + 79: uint16(27555), + 80: uint16(27556), + 81: uint16(27557), + 82: uint16(27558), + 83: uint16(27559), + 84: uint16(27560), + 85: uint16(27561), + 86: uint16(27563), + 87: uint16(27564), + 88: uint16(27565), + 89: uint16(27566), + 90: uint16(27567), + 91: uint16(27568), + 92: uint16(27569), + 93: uint16(27570), + 94: uint16(27574), + 95: uint16(27576), + 96: uint16(27577), + 97: uint16(27578), + 98: uint16(27579), + 99: uint16(27580), + 100: uint16(27581), + 101: uint16(27582), + 102: uint16(27584), + 103: uint16(27587), + 104: uint16(27588), + 105: uint16(27590), + 106: uint16(27591), + 107: uint16(27592), + 108: uint16(27593), + 109: uint16(27594), + 110: uint16(27596), + 111: uint16(27598), + 112: uint16(27600), + 113: uint16(27601), + 114: uint16(27608), + 115: uint16(27610), + 116: uint16(27612), + 117: uint16(27613), + 118: uint16(27614), + 119: uint16(27615), + 120: uint16(27616), + 121: uint16(27618), + 122: uint16(27619), + 123: uint16(27620), + 124: uint16(27621), + 125: uint16(27622), + 126: uint16(27623), + 127: uint16(27624), + 128: uint16(27625), + 129: uint16(27628), + 130: uint16(27629), + 131: uint16(27630), + 132: uint16(27632), + 133: uint16(27633), + 134: uint16(27634), + 135: uint16(27636), + 136: uint16(27638), + 137: uint16(27639), + 138: uint16(27640), + 139: uint16(27642), + 140: uint16(27643), + 141: uint16(27644), + 142: uint16(27646), + 143: uint16(27647), + 144: uint16(27648), + 145: uint16(27649), + 146: uint16(27650), + 147: uint16(27651), + 148: uint16(27652), + 149: uint16(27656), + 150: uint16(27657), + 151: uint16(27658), + 152: uint16(27659), + 153: uint16(27660), + 154: uint16(27662), + 155: uint16(27666), + 156: uint16(27671), + 157: uint16(27676), + 158: uint16(27677), + 159: uint16(27678), + 160: uint16(27680), + 161: uint16(27683), + 162: uint16(27685), + 163: uint16(27691), + 164: uint16(27692), + 165: uint16(27693), + 166: uint16(27697), + 167: uint16(27699), + 168: uint16(27702), + 169: uint16(27703), + 170: uint16(27705), + 171: uint16(27706), + 172: uint16(27707), + 173: uint16(27708), + 174: uint16(27710), + 175: uint16(27711), + 176: uint16(27715), + 177: uint16(27716), + 178: uint16(27717), + 179: uint16(27720), + 180: uint16(27723), + 181: uint16(27724), + 182: uint16(27725), + 183: uint16(27726), + 184: uint16(27727), + 185: uint16(27729), + 186: uint16(27730), + 187: uint16(27731), + 188: uint16(27734), + 189: uint16(27736), + }, + 26: { + 0: uint16(27737), + 1: uint16(27738), + 2: uint16(27746), + 3: uint16(27747), + 4: uint16(27749), + 5: uint16(27750), + 6: uint16(27751), + 7: uint16(27755), + 8: uint16(27756), + 9: uint16(27757), + 10: uint16(27758), + 11: uint16(27759), + 12: uint16(27761), + 13: uint16(27763), + 14: uint16(27765), + 15: uint16(27767), + 16: uint16(27768), + 17: uint16(27770), + 18: uint16(27771), + 19: uint16(27772), + 20: uint16(27775), + 21: uint16(27776), + 22: uint16(27780), + 23: uint16(27783), + 24: uint16(27786), + 25: uint16(27787), + 26: uint16(27789), + 27: uint16(27790), + 28: uint16(27793), + 29: uint16(27794), + 30: uint16(27797), + 31: uint16(27798), + 32: uint16(27799), + 33: uint16(27800), + 34: uint16(27802), + 35: uint16(27804), + 36: uint16(27805), + 37: uint16(27806), + 38: uint16(27808), + 39: uint16(27810), + 40: uint16(27816), + 41: uint16(27820), + 42: uint16(27823), + 43: uint16(27824), + 44: uint16(27828), + 45: uint16(27829), + 46: uint16(27830), + 47: uint16(27831), + 48: uint16(27834), + 49: uint16(27840), + 50: uint16(27841), + 51: uint16(27842), + 52: uint16(27843), + 53: uint16(27846), + 54: uint16(27847), + 55: uint16(27848), + 56: uint16(27851), + 57: uint16(27853), + 58: uint16(27854), + 59: uint16(27855), + 60: uint16(27857), + 61: uint16(27858), + 62: uint16(27864), + 63: uint16(27865), + 64: uint16(27866), + 65: uint16(27868), + 66: uint16(27869), + 67: uint16(27871), + 68: uint16(27876), + 69: uint16(27878), + 70: uint16(27879), + 71: uint16(27881), + 72: uint16(27884), + 73: uint16(27885), + 74: uint16(27890), + 75: uint16(27892), + 76: uint16(27897), + 77: uint16(27903), + 78: uint16(27904), + 79: uint16(27906), + 80: uint16(27907), + 81: uint16(27909), + 82: uint16(27910), + 83: uint16(27912), + 84: uint16(27913), + 85: uint16(27914), + 86: uint16(27917), + 87: uint16(27919), + 88: uint16(27920), + 89: uint16(27921), + 90: uint16(27923), + 91: uint16(27924), + 92: uint16(27925), + 93: uint16(27926), + 94: uint16(27928), + 95: uint16(27932), + 96: uint16(27933), + 97: uint16(27935), + 98: uint16(27936), + 99: uint16(27937), + 100: uint16(27938), + 101: uint16(27939), + 102: uint16(27940), + 103: uint16(27942), + 104: uint16(27944), + 105: uint16(27945), + 106: uint16(27948), + 107: uint16(27949), + 108: uint16(27951), + 109: uint16(27952), + 110: uint16(27956), + 111: uint16(27958), + 112: uint16(27959), + 113: uint16(27960), + 114: uint16(27962), + 115: uint16(27967), + 116: uint16(27968), + 117: uint16(27970), + 118: uint16(27972), + 119: uint16(27977), + 120: uint16(27980), + 121: uint16(27984), + 122: uint16(27989), + 123: uint16(27990), + 124: uint16(27991), + 125: uint16(27992), + 126: uint16(27995), + 127: uint16(27997), + 128: uint16(27999), + 129: uint16(28001), + 130: uint16(28002), + 131: uint16(28004), + 132: uint16(28005), + 133: uint16(28007), + 134: uint16(28008), + 135: uint16(28011), + 136: uint16(28012), + 137: uint16(28013), + 138: uint16(28016), + 139: uint16(28017), + 140: uint16(28018), + 141: uint16(28019), + 142: uint16(28021), + 143: uint16(28022), + 144: uint16(28025), + 145: uint16(28026), + 146: uint16(28027), + 147: uint16(28029), + 148: uint16(28030), + 149: uint16(28031), + 150: uint16(28032), + 151: uint16(28033), + 152: uint16(28035), + 153: uint16(28036), + 154: uint16(28038), + 155: uint16(28039), + 156: uint16(28042), + 157: uint16(28043), + 158: uint16(28045), + 159: uint16(28047), + 160: uint16(28048), + 161: uint16(28050), + 162: uint16(28054), + 163: uint16(28055), + 164: uint16(28056), + 165: uint16(28057), + 166: uint16(28058), + 167: uint16(28060), + 168: uint16(28066), + 169: uint16(28069), + 170: uint16(28076), + 171: uint16(28077), + 172: uint16(28080), + 173: uint16(28081), + 174: uint16(28083), + 175: uint16(28084), + 176: uint16(28086), + 177: uint16(28087), + 178: uint16(28089), + 179: uint16(28090), + 180: uint16(28091), + 181: uint16(28092), + 182: uint16(28093), + 183: uint16(28094), + 184: uint16(28097), + 185: uint16(28098), + 186: uint16(28099), + 187: uint16(28104), + 188: uint16(28105), + 189: uint16(28106), + }, + 27: { + 0: uint16(28109), + 1: uint16(28110), + 2: uint16(28111), + 3: uint16(28112), + 4: uint16(28114), + 5: uint16(28115), + 6: uint16(28116), + 7: uint16(28117), + 8: uint16(28119), + 9: uint16(28122), + 10: uint16(28123), + 11: uint16(28124), + 12: uint16(28127), + 13: uint16(28130), + 14: uint16(28131), + 15: uint16(28133), + 16: uint16(28135), + 17: uint16(28136), + 18: uint16(28137), + 19: uint16(28138), + 20: uint16(28141), + 21: uint16(28143), + 22: uint16(28144), + 23: uint16(28146), + 24: uint16(28148), + 25: uint16(28149), + 26: uint16(28150), + 27: uint16(28152), + 28: uint16(28154), + 29: uint16(28157), + 30: uint16(28158), + 31: uint16(28159), + 32: uint16(28160), + 33: uint16(28161), + 34: uint16(28162), + 35: uint16(28163), + 36: uint16(28164), + 37: uint16(28166), + 38: uint16(28167), + 39: uint16(28168), + 40: uint16(28169), + 41: uint16(28171), + 42: uint16(28175), + 43: uint16(28178), + 44: uint16(28179), + 45: uint16(28181), + 46: uint16(28184), + 47: uint16(28185), + 48: uint16(28187), + 49: uint16(28188), + 50: uint16(28190), + 51: uint16(28191), + 52: uint16(28194), + 53: uint16(28198), + 54: uint16(28199), + 55: uint16(28200), + 56: uint16(28202), + 57: uint16(28204), + 58: uint16(28206), + 59: uint16(28208), + 60: uint16(28209), + 61: uint16(28211), + 62: uint16(28213), + 63: uint16(28214), + 64: uint16(28215), + 65: uint16(28217), + 66: uint16(28219), + 67: uint16(28220), + 68: uint16(28221), + 69: uint16(28222), + 70: uint16(28223), + 71: uint16(28224), + 72: uint16(28225), + 73: uint16(28226), + 74: uint16(28229), + 75: uint16(28230), + 76: uint16(28231), + 77: uint16(28232), + 78: uint16(28233), + 79: uint16(28234), + 80: uint16(28235), + 81: uint16(28236), + 82: uint16(28239), + 83: uint16(28240), + 84: uint16(28241), + 85: uint16(28242), + 86: uint16(28245), + 87: uint16(28247), + 88: uint16(28249), + 89: uint16(28250), + 90: uint16(28252), + 91: uint16(28253), + 92: uint16(28254), + 93: uint16(28256), + 94: uint16(28257), + 95: uint16(28258), + 96: uint16(28259), + 97: uint16(28260), + 98: uint16(28261), + 99: uint16(28262), + 100: uint16(28263), + 101: uint16(28264), + 102: uint16(28265), + 103: uint16(28266), + 104: uint16(28268), + 105: uint16(28269), + 106: uint16(28271), + 107: uint16(28272), + 108: uint16(28273), + 109: uint16(28274), + 110: uint16(28275), + 111: uint16(28276), + 112: uint16(28277), + 113: uint16(28278), + 114: uint16(28279), + 115: uint16(28280), + 116: uint16(28281), + 117: uint16(28282), + 118: uint16(28283), + 119: uint16(28284), + 120: uint16(28285), + 121: uint16(28288), + 122: uint16(28289), + 123: uint16(28290), + 124: uint16(28292), + 125: uint16(28295), + 126: uint16(28296), + 127: uint16(28298), + 128: uint16(28299), + 129: uint16(28300), + 130: uint16(28301), + 131: uint16(28302), + 132: uint16(28305), + 133: uint16(28306), + 134: uint16(28307), + 135: uint16(28308), + 136: uint16(28309), + 137: uint16(28310), + 138: uint16(28311), + 139: uint16(28313), + 140: uint16(28314), + 141: uint16(28315), + 142: uint16(28317), + 143: uint16(28318), + 144: uint16(28320), + 145: uint16(28321), + 146: uint16(28323), + 147: uint16(28324), + 148: uint16(28326), + 149: uint16(28328), + 150: uint16(28329), + 151: uint16(28331), + 152: uint16(28332), + 153: uint16(28333), + 154: uint16(28334), + 155: uint16(28336), + 156: uint16(28339), + 157: uint16(28341), + 158: uint16(28344), + 159: uint16(28345), + 160: uint16(28348), + 161: uint16(28350), + 162: uint16(28351), + 163: uint16(28352), + 164: uint16(28355), + 165: uint16(28356), + 166: uint16(28357), + 167: uint16(28358), + 168: uint16(28360), + 169: uint16(28361), + 170: uint16(28362), + 171: uint16(28364), + 172: uint16(28365), + 173: uint16(28366), + 174: uint16(28368), + 175: uint16(28370), + 176: uint16(28374), + 177: uint16(28376), + 178: uint16(28377), + 179: uint16(28379), + 180: uint16(28380), + 181: uint16(28381), + 182: uint16(28387), + 183: uint16(28391), + 184: uint16(28394), + 185: uint16(28395), + 186: uint16(28396), + 187: uint16(28397), + 188: uint16(28398), + 189: uint16(28399), + }, + 28: { + 0: uint16(28400), + 1: uint16(28401), + 2: uint16(28402), + 3: uint16(28403), + 4: uint16(28405), + 5: uint16(28406), + 6: uint16(28407), + 7: uint16(28408), + 8: uint16(28410), + 9: uint16(28411), + 10: uint16(28412), + 11: uint16(28413), + 12: uint16(28414), + 13: uint16(28415), + 14: uint16(28416), + 15: uint16(28417), + 16: uint16(28419), + 17: uint16(28420), + 18: uint16(28421), + 19: uint16(28423), + 20: uint16(28424), + 21: uint16(28426), + 22: uint16(28427), + 23: uint16(28428), + 24: uint16(28429), + 25: uint16(28430), + 26: uint16(28432), + 27: uint16(28433), + 28: uint16(28434), + 29: uint16(28438), + 30: uint16(28439), + 31: uint16(28440), + 32: uint16(28441), + 33: uint16(28442), + 34: uint16(28443), + 35: uint16(28444), + 36: uint16(28445), + 37: uint16(28446), + 38: uint16(28447), + 39: uint16(28449), + 40: uint16(28450), + 41: uint16(28451), + 42: uint16(28453), + 43: uint16(28454), + 44: uint16(28455), + 45: uint16(28456), + 46: uint16(28460), + 47: uint16(28462), + 48: uint16(28464), + 49: uint16(28466), + 50: uint16(28468), + 51: uint16(28469), + 52: uint16(28471), + 53: uint16(28472), + 54: uint16(28473), + 55: uint16(28474), + 56: uint16(28475), + 57: uint16(28476), + 58: uint16(28477), + 59: uint16(28479), + 60: uint16(28480), + 61: uint16(28481), + 62: uint16(28482), + 63: uint16(28483), + 64: uint16(28484), + 65: uint16(28485), + 66: uint16(28488), + 67: uint16(28489), + 68: uint16(28490), + 69: uint16(28492), + 70: uint16(28494), + 71: uint16(28495), + 72: uint16(28496), + 73: uint16(28497), + 74: uint16(28498), + 75: uint16(28499), + 76: uint16(28500), + 77: uint16(28501), + 78: uint16(28502), + 79: uint16(28503), + 80: uint16(28505), + 81: uint16(28506), + 82: uint16(28507), + 83: uint16(28509), + 84: uint16(28511), + 85: uint16(28512), + 86: uint16(28513), + 87: uint16(28515), + 88: uint16(28516), + 89: uint16(28517), + 90: uint16(28519), + 91: uint16(28520), + 92: uint16(28521), + 93: uint16(28522), + 94: uint16(28523), + 95: uint16(28524), + 96: uint16(28527), + 97: uint16(28528), + 98: uint16(28529), + 99: uint16(28531), + 100: uint16(28533), + 101: uint16(28534), + 102: uint16(28535), + 103: uint16(28537), + 104: uint16(28539), + 105: uint16(28541), + 106: uint16(28542), + 107: uint16(28543), + 108: uint16(28544), + 109: uint16(28545), + 110: uint16(28546), + 111: uint16(28547), + 112: uint16(28549), + 113: uint16(28550), + 114: uint16(28551), + 115: uint16(28554), + 116: uint16(28555), + 117: uint16(28559), + 118: uint16(28560), + 119: uint16(28561), + 120: uint16(28562), + 121: uint16(28563), + 122: uint16(28564), + 123: uint16(28565), + 124: uint16(28566), + 125: uint16(28567), + 126: uint16(28568), + 127: uint16(28569), + 128: uint16(28570), + 129: uint16(28571), + 130: uint16(28573), + 131: uint16(28574), + 132: uint16(28575), + 133: uint16(28576), + 134: uint16(28578), + 135: uint16(28579), + 136: uint16(28580), + 137: uint16(28581), + 138: uint16(28582), + 139: uint16(28584), + 140: uint16(28585), + 141: uint16(28586), + 142: uint16(28587), + 143: uint16(28588), + 144: uint16(28589), + 145: uint16(28590), + 146: uint16(28591), + 147: uint16(28592), + 148: uint16(28593), + 149: uint16(28594), + 150: uint16(28596), + 151: uint16(28597), + 152: uint16(28599), + 153: uint16(28600), + 154: uint16(28602), + 155: uint16(28603), + 156: uint16(28604), + 157: uint16(28605), + 158: uint16(28606), + 159: uint16(28607), + 160: uint16(28609), + 161: uint16(28611), + 162: uint16(28612), + 163: uint16(28613), + 164: uint16(28614), + 165: uint16(28615), + 166: uint16(28616), + 167: uint16(28618), + 168: uint16(28619), + 169: uint16(28620), + 170: uint16(28621), + 171: uint16(28622), + 172: uint16(28623), + 173: uint16(28624), + 174: uint16(28627), + 175: uint16(28628), + 176: uint16(28629), + 177: uint16(28630), + 178: uint16(28631), + 179: uint16(28632), + 180: uint16(28633), + 181: uint16(28634), + 182: uint16(28635), + 183: uint16(28636), + 184: uint16(28637), + 185: uint16(28639), + 186: uint16(28642), + 187: uint16(28643), + 188: uint16(28644), + 189: uint16(28645), + }, + 29: { + 0: uint16(28646), + 1: uint16(28647), + 2: uint16(28648), + 3: uint16(28649), + 4: uint16(28650), + 5: uint16(28651), + 6: uint16(28652), + 7: uint16(28653), + 8: uint16(28656), + 9: uint16(28657), + 10: uint16(28658), + 11: uint16(28659), + 12: uint16(28660), + 13: uint16(28661), + 14: uint16(28662), + 15: uint16(28663), + 16: uint16(28664), + 17: uint16(28665), + 18: uint16(28666), + 19: uint16(28667), + 20: uint16(28668), + 21: uint16(28669), + 22: uint16(28670), + 23: uint16(28671), + 24: uint16(28672), + 25: uint16(28673), + 26: uint16(28674), + 27: uint16(28675), + 28: uint16(28676), + 29: uint16(28677), + 30: uint16(28678), + 31: uint16(28679), + 32: uint16(28680), + 33: uint16(28681), + 34: uint16(28682), + 35: uint16(28683), + 36: uint16(28684), + 37: uint16(28685), + 38: uint16(28686), + 39: uint16(28687), + 40: uint16(28688), + 41: uint16(28690), + 42: uint16(28691), + 43: uint16(28692), + 44: uint16(28693), + 45: uint16(28694), + 46: uint16(28695), + 47: uint16(28696), + 48: uint16(28697), + 49: uint16(28700), + 50: uint16(28701), + 51: uint16(28702), + 52: uint16(28703), + 53: uint16(28704), + 54: uint16(28705), + 55: uint16(28706), + 56: uint16(28708), + 57: uint16(28709), + 58: uint16(28710), + 59: uint16(28711), + 60: uint16(28712), + 61: uint16(28713), + 62: uint16(28714), + 63: uint16(28715), + 64: uint16(28716), + 65: uint16(28717), + 66: uint16(28718), + 67: uint16(28719), + 68: uint16(28720), + 69: uint16(28721), + 70: uint16(28722), + 71: uint16(28723), + 72: uint16(28724), + 73: uint16(28726), + 74: uint16(28727), + 75: uint16(28728), + 76: uint16(28730), + 77: uint16(28731), + 78: uint16(28732), + 79: uint16(28733), + 80: uint16(28734), + 81: uint16(28735), + 82: uint16(28736), + 83: uint16(28737), + 84: uint16(28738), + 85: uint16(28739), + 86: uint16(28740), + 87: uint16(28741), + 88: uint16(28742), + 89: uint16(28743), + 90: uint16(28744), + 91: uint16(28745), + 92: uint16(28746), + 93: uint16(28747), + 94: uint16(28749), + 95: uint16(28750), + 96: uint16(28752), + 97: uint16(28753), + 98: uint16(28754), + 99: uint16(28755), + 100: uint16(28756), + 101: uint16(28757), + 102: uint16(28758), + 103: uint16(28759), + 104: uint16(28760), + 105: uint16(28761), + 106: uint16(28762), + 107: uint16(28763), + 108: uint16(28764), + 109: uint16(28765), + 110: uint16(28767), + 111: uint16(28768), + 112: uint16(28769), + 113: uint16(28770), + 114: uint16(28771), + 115: uint16(28772), + 116: uint16(28773), + 117: uint16(28774), + 118: uint16(28775), + 119: uint16(28776), + 120: uint16(28777), + 121: uint16(28778), + 122: uint16(28782), + 123: uint16(28785), + 124: uint16(28786), + 125: uint16(28787), + 126: uint16(28788), + 127: uint16(28791), + 128: uint16(28793), + 129: uint16(28794), + 130: uint16(28795), + 131: uint16(28797), + 132: uint16(28801), + 133: uint16(28802), + 134: uint16(28803), + 135: uint16(28804), + 136: uint16(28806), + 137: uint16(28807), + 138: uint16(28808), + 139: uint16(28811), + 140: uint16(28812), + 141: uint16(28813), + 142: uint16(28815), + 143: uint16(28816), + 144: uint16(28817), + 145: uint16(28819), + 146: uint16(28823), + 147: uint16(28824), + 148: uint16(28826), + 149: uint16(28827), + 150: uint16(28830), + 151: uint16(28831), + 152: uint16(28832), + 153: uint16(28833), + 154: uint16(28834), + 155: uint16(28835), + 156: uint16(28836), + 157: uint16(28837), + 158: uint16(28838), + 159: uint16(28839), + 160: uint16(28840), + 161: uint16(28841), + 162: uint16(28842), + 163: uint16(28848), + 164: uint16(28850), + 165: uint16(28852), + 166: uint16(28853), + 167: uint16(28854), + 168: uint16(28858), + 169: uint16(28862), + 170: uint16(28863), + 171: uint16(28868), + 172: uint16(28869), + 173: uint16(28870), + 174: uint16(28871), + 175: uint16(28873), + 176: uint16(28875), + 177: uint16(28876), + 178: uint16(28877), + 179: uint16(28878), + 180: uint16(28879), + 181: uint16(28880), + 182: uint16(28881), + 183: uint16(28882), + 184: uint16(28883), + 185: uint16(28884), + 186: uint16(28885), + 187: uint16(28886), + 188: uint16(28887), + 189: uint16(28890), + }, + 30: { + 0: uint16(28892), + 1: uint16(28893), + 2: uint16(28894), + 3: uint16(28896), + 4: uint16(28897), + 5: uint16(28898), + 6: uint16(28899), + 7: uint16(28901), + 8: uint16(28906), + 9: uint16(28910), + 10: uint16(28912), + 11: uint16(28913), + 12: uint16(28914), + 13: uint16(28915), + 14: uint16(28916), + 15: uint16(28917), + 16: uint16(28918), + 17: uint16(28920), + 18: uint16(28922), + 19: uint16(28923), + 20: uint16(28924), + 21: uint16(28926), + 22: uint16(28927), + 23: uint16(28928), + 24: uint16(28929), + 25: uint16(28930), + 26: uint16(28931), + 27: uint16(28932), + 28: uint16(28933), + 29: uint16(28934), + 30: uint16(28935), + 31: uint16(28936), + 32: uint16(28939), + 33: uint16(28940), + 34: uint16(28941), + 35: uint16(28942), + 36: uint16(28943), + 37: uint16(28945), + 38: uint16(28946), + 39: uint16(28948), + 40: uint16(28951), + 41: uint16(28955), + 42: uint16(28956), + 43: uint16(28957), + 44: uint16(28958), + 45: uint16(28959), + 46: uint16(28960), + 47: uint16(28961), + 48: uint16(28962), + 49: uint16(28963), + 50: uint16(28964), + 51: uint16(28965), + 52: uint16(28967), + 53: uint16(28968), + 54: uint16(28969), + 55: uint16(28970), + 56: uint16(28971), + 57: uint16(28972), + 58: uint16(28973), + 59: uint16(28974), + 60: uint16(28978), + 61: uint16(28979), + 62: uint16(28980), + 63: uint16(28981), + 64: uint16(28983), + 65: uint16(28984), + 66: uint16(28985), + 67: uint16(28986), + 68: uint16(28987), + 69: uint16(28988), + 70: uint16(28989), + 71: uint16(28990), + 72: uint16(28991), + 73: uint16(28992), + 74: uint16(28993), + 75: uint16(28994), + 76: uint16(28995), + 77: uint16(28996), + 78: uint16(28998), + 79: uint16(28999), + 80: uint16(29000), + 81: uint16(29001), + 82: uint16(29003), + 83: uint16(29005), + 84: uint16(29007), + 85: uint16(29008), + 86: uint16(29009), + 87: uint16(29010), + 88: uint16(29011), + 89: uint16(29012), + 90: uint16(29013), + 91: uint16(29014), + 92: uint16(29015), + 93: uint16(29016), + 94: uint16(29017), + 95: uint16(29018), + 96: uint16(29019), + 97: uint16(29021), + 98: uint16(29023), + 99: uint16(29024), + 100: uint16(29025), + 101: uint16(29026), + 102: uint16(29027), + 103: uint16(29029), + 104: uint16(29033), + 105: uint16(29034), + 106: uint16(29035), + 107: uint16(29036), + 108: uint16(29037), + 109: uint16(29039), + 110: uint16(29040), + 111: uint16(29041), + 112: uint16(29044), + 113: uint16(29045), + 114: uint16(29046), + 115: uint16(29047), + 116: uint16(29049), + 117: uint16(29051), + 118: uint16(29052), + 119: uint16(29054), + 120: uint16(29055), + 121: uint16(29056), + 122: uint16(29057), + 123: uint16(29058), + 124: uint16(29059), + 125: uint16(29061), + 126: uint16(29062), + 127: uint16(29063), + 128: uint16(29064), + 129: uint16(29065), + 130: uint16(29067), + 131: uint16(29068), + 132: uint16(29069), + 133: uint16(29070), + 134: uint16(29072), + 135: uint16(29073), + 136: uint16(29074), + 137: uint16(29075), + 138: uint16(29077), + 139: uint16(29078), + 140: uint16(29079), + 141: uint16(29082), + 142: uint16(29083), + 143: uint16(29084), + 144: uint16(29085), + 145: uint16(29086), + 146: uint16(29089), + 147: uint16(29090), + 148: uint16(29091), + 149: uint16(29092), + 150: uint16(29093), + 151: uint16(29094), + 152: uint16(29095), + 153: uint16(29097), + 154: uint16(29098), + 155: uint16(29099), + 156: uint16(29101), + 157: uint16(29102), + 158: uint16(29103), + 159: uint16(29104), + 160: uint16(29105), + 161: uint16(29106), + 162: uint16(29108), + 163: uint16(29110), + 164: uint16(29111), + 165: uint16(29112), + 166: uint16(29114), + 167: uint16(29115), + 168: uint16(29116), + 169: uint16(29117), + 170: uint16(29118), + 171: uint16(29119), + 172: uint16(29120), + 173: uint16(29121), + 174: uint16(29122), + 175: uint16(29124), + 176: uint16(29125), + 177: uint16(29126), + 178: uint16(29127), + 179: uint16(29128), + 180: uint16(29129), + 181: uint16(29130), + 182: uint16(29131), + 183: uint16(29132), + 184: uint16(29133), + 185: uint16(29135), + 186: uint16(29136), + 187: uint16(29137), + 188: uint16(29138), + 189: uint16(29139), + }, + 31: { + 0: uint16(29142), + 1: uint16(29143), + 2: uint16(29144), + 3: uint16(29145), + 4: uint16(29146), + 5: uint16(29147), + 6: uint16(29148), + 7: uint16(29149), + 8: uint16(29150), + 9: uint16(29151), + 10: uint16(29153), + 11: uint16(29154), + 12: uint16(29155), + 13: uint16(29156), + 14: uint16(29158), + 15: uint16(29160), + 16: uint16(29161), + 17: uint16(29162), + 18: uint16(29163), + 19: uint16(29164), + 20: uint16(29165), + 21: uint16(29167), + 22: uint16(29168), + 23: uint16(29169), + 24: uint16(29170), + 25: uint16(29171), + 26: uint16(29172), + 27: uint16(29173), + 28: uint16(29174), + 29: uint16(29175), + 30: uint16(29176), + 31: uint16(29178), + 32: uint16(29179), + 33: uint16(29180), + 34: uint16(29181), + 35: uint16(29182), + 36: uint16(29183), + 37: uint16(29184), + 38: uint16(29185), + 39: uint16(29186), + 40: uint16(29187), + 41: uint16(29188), + 42: uint16(29189), + 43: uint16(29191), + 44: uint16(29192), + 45: uint16(29193), + 46: uint16(29194), + 47: uint16(29195), + 48: uint16(29196), + 49: uint16(29197), + 50: uint16(29198), + 51: uint16(29199), + 52: uint16(29200), + 53: uint16(29201), + 54: uint16(29202), + 55: uint16(29203), + 56: uint16(29204), + 57: uint16(29205), + 58: uint16(29206), + 59: uint16(29207), + 60: uint16(29208), + 61: uint16(29209), + 62: uint16(29210), + 63: uint16(29211), + 64: uint16(29212), + 65: uint16(29214), + 66: uint16(29215), + 67: uint16(29216), + 68: uint16(29217), + 69: uint16(29218), + 70: uint16(29219), + 71: uint16(29220), + 72: uint16(29221), + 73: uint16(29222), + 74: uint16(29223), + 75: uint16(29225), + 76: uint16(29227), + 77: uint16(29229), + 78: uint16(29230), + 79: uint16(29231), + 80: uint16(29234), + 81: uint16(29235), + 82: uint16(29236), + 83: uint16(29242), + 84: uint16(29244), + 85: uint16(29246), + 86: uint16(29248), + 87: uint16(29249), + 88: uint16(29250), + 89: uint16(29251), + 90: uint16(29252), + 91: uint16(29253), + 92: uint16(29254), + 93: uint16(29257), + 94: uint16(29258), + 95: uint16(29259), + 96: uint16(29262), + 97: uint16(29263), + 98: uint16(29264), + 99: uint16(29265), + 100: uint16(29267), + 101: uint16(29268), + 102: uint16(29269), + 103: uint16(29271), + 104: uint16(29272), + 105: uint16(29274), + 106: uint16(29276), + 107: uint16(29278), + 108: uint16(29280), + 109: uint16(29283), + 110: uint16(29284), + 111: uint16(29285), + 112: uint16(29288), + 113: uint16(29290), + 114: uint16(29291), + 115: uint16(29292), + 116: uint16(29293), + 117: uint16(29296), + 118: uint16(29297), + 119: uint16(29299), + 120: uint16(29300), + 121: uint16(29302), + 122: uint16(29303), + 123: uint16(29304), + 124: uint16(29307), + 125: uint16(29308), + 126: uint16(29309), + 127: uint16(29314), + 128: uint16(29315), + 129: uint16(29317), + 130: uint16(29318), + 131: uint16(29319), + 132: uint16(29320), + 133: uint16(29321), + 134: uint16(29324), + 135: uint16(29326), + 136: uint16(29328), + 137: uint16(29329), + 138: uint16(29331), + 139: uint16(29332), + 140: uint16(29333), + 141: uint16(29334), + 142: uint16(29335), + 143: uint16(29336), + 144: uint16(29337), + 145: uint16(29338), + 146: uint16(29339), + 147: uint16(29340), + 148: uint16(29341), + 149: uint16(29342), + 150: uint16(29344), + 151: uint16(29345), + 152: uint16(29346), + 153: uint16(29347), + 154: uint16(29348), + 155: uint16(29349), + 156: uint16(29350), + 157: uint16(29351), + 158: uint16(29352), + 159: uint16(29353), + 160: uint16(29354), + 161: uint16(29355), + 162: uint16(29358), + 163: uint16(29361), + 164: uint16(29362), + 165: uint16(29363), + 166: uint16(29365), + 167: uint16(29370), + 168: uint16(29371), + 169: uint16(29372), + 170: uint16(29373), + 171: uint16(29374), + 172: uint16(29375), + 173: uint16(29376), + 174: uint16(29381), + 175: uint16(29382), + 176: uint16(29383), + 177: uint16(29385), + 178: uint16(29386), + 179: uint16(29387), + 180: uint16(29388), + 181: uint16(29391), + 182: uint16(29393), + 183: uint16(29395), + 184: uint16(29396), + 185: uint16(29397), + 186: uint16(29398), + 187: uint16(29400), + 188: uint16(29402), + 189: uint16(29403), + }, + 32: { + 0: uint16(58566), + 1: uint16(58567), + 2: uint16(58568), + 3: uint16(58569), + 4: uint16(58570), + 5: uint16(58571), + 6: uint16(58572), + 7: uint16(58573), + 8: uint16(58574), + 9: uint16(58575), + 10: uint16(58576), + 11: uint16(58577), + 12: uint16(58578), + 13: uint16(58579), + 14: uint16(58580), + 15: uint16(58581), + 16: uint16(58582), + 17: uint16(58583), + 18: uint16(58584), + 19: uint16(58585), + 20: uint16(58586), + 21: uint16(58587), + 22: uint16(58588), + 23: uint16(58589), + 24: uint16(58590), + 25: uint16(58591), + 26: uint16(58592), + 27: uint16(58593), + 28: uint16(58594), + 29: uint16(58595), + 30: uint16(58596), + 31: uint16(58597), + 32: uint16(58598), + 33: uint16(58599), + 34: uint16(58600), + 35: uint16(58601), + 36: uint16(58602), + 37: uint16(58603), + 38: uint16(58604), + 39: uint16(58605), + 40: uint16(58606), + 41: uint16(58607), + 42: uint16(58608), + 43: uint16(58609), + 44: uint16(58610), + 45: uint16(58611), + 46: uint16(58612), + 47: uint16(58613), + 48: uint16(58614), + 49: uint16(58615), + 50: uint16(58616), + 51: uint16(58617), + 52: uint16(58618), + 53: uint16(58619), + 54: uint16(58620), + 55: uint16(58621), + 56: uint16(58622), + 57: uint16(58623), + 58: uint16(58624), + 59: uint16(58625), + 60: uint16(58626), + 61: uint16(58627), + 62: uint16(58628), + 63: uint16(58629), + 64: uint16(58630), + 65: uint16(58631), + 66: uint16(58632), + 67: uint16(58633), + 68: uint16(58634), + 69: uint16(58635), + 70: uint16(58636), + 71: uint16(58637), + 72: uint16(58638), + 73: uint16(58639), + 74: uint16(58640), + 75: uint16(58641), + 76: uint16(58642), + 77: uint16(58643), + 78: uint16(58644), + 79: uint16(58645), + 80: uint16(58646), + 81: uint16(58647), + 82: uint16(58648), + 83: uint16(58649), + 84: uint16(58650), + 85: uint16(58651), + 86: uint16(58652), + 87: uint16(58653), + 88: uint16(58654), + 89: uint16(58655), + 90: uint16(58656), + 91: uint16(58657), + 92: uint16(58658), + 93: uint16(58659), + 94: uint16(58660), + 95: uint16(58661), + 96: uint16(12288), + 97: uint16(12289), + 98: uint16(12290), + 99: uint16(183), + 100: uint16(713), + 101: uint16(711), + 102: uint16(168), + 103: uint16(12291), + 104: uint16(12293), + 105: uint16(8212), + 106: uint16(65374), + 107: uint16(8214), + 108: uint16(8230), + 109: uint16(8216), + 110: uint16(8217), + 111: uint16(8220), + 112: uint16(8221), + 113: uint16(12308), + 114: uint16(12309), + 115: uint16(12296), + 116: uint16(12297), + 117: uint16(12298), + 118: uint16(12299), + 119: uint16(12300), + 120: uint16(12301), + 121: uint16(12302), + 122: uint16(12303), + 123: uint16(12310), + 124: uint16(12311), + 125: uint16(12304), + 126: uint16(12305), + 127: uint16(177), + 128: uint16(215), + 129: uint16(247), + 130: uint16(8758), + 131: uint16(8743), + 132: uint16(8744), + 133: uint16(8721), + 134: uint16(8719), + 135: uint16(8746), + 136: uint16(8745), + 137: uint16(8712), + 138: uint16(8759), + 139: uint16(8730), + 140: uint16(8869), + 141: uint16(8741), + 142: uint16(8736), + 143: uint16(8978), + 144: uint16(8857), + 145: uint16(8747), + 146: uint16(8750), + 147: uint16(8801), + 148: uint16(8780), + 149: uint16(8776), + 150: uint16(8765), + 151: uint16(8733), + 152: uint16(8800), + 153: uint16(8814), + 154: uint16(8815), + 155: uint16(8804), + 156: uint16(8805), + 157: uint16(8734), + 158: uint16(8757), + 159: uint16(8756), + 160: uint16(9794), + 161: uint16(9792), + 162: uint16(176), + 163: uint16(8242), + 164: uint16(8243), + 165: uint16(8451), + 166: uint16(65284), + 167: uint16(164), + 168: uint16(65504), + 169: uint16(65505), + 170: uint16(8240), + 171: uint16(167), + 172: uint16(8470), + 173: uint16(9734), + 174: uint16(9733), + 175: uint16(9675), + 176: uint16(9679), + 177: uint16(9678), + 178: uint16(9671), + 179: uint16(9670), + 180: uint16(9633), + 181: uint16(9632), + 182: uint16(9651), + 183: uint16(9650), + 184: uint16(8251), + 185: uint16(8594), + 186: uint16(8592), + 187: uint16(8593), + 188: uint16(8595), + 189: uint16(12307), + }, + 33: { + 0: uint16(58662), + 1: uint16(58663), + 2: uint16(58664), + 3: uint16(58665), + 4: uint16(58666), + 5: uint16(58667), + 6: uint16(58668), + 7: uint16(58669), + 8: uint16(58670), + 9: uint16(58671), + 10: uint16(58672), + 11: uint16(58673), + 12: uint16(58674), + 13: uint16(58675), + 14: uint16(58676), + 15: uint16(58677), + 16: uint16(58678), + 17: uint16(58679), + 18: uint16(58680), + 19: uint16(58681), + 20: uint16(58682), + 21: uint16(58683), + 22: uint16(58684), + 23: uint16(58685), + 24: uint16(58686), + 25: uint16(58687), + 26: uint16(58688), + 27: uint16(58689), + 28: uint16(58690), + 29: uint16(58691), + 30: uint16(58692), + 31: uint16(58693), + 32: uint16(58694), + 33: uint16(58695), + 34: uint16(58696), + 35: uint16(58697), + 36: uint16(58698), + 37: uint16(58699), + 38: uint16(58700), + 39: uint16(58701), + 40: uint16(58702), + 41: uint16(58703), + 42: uint16(58704), + 43: uint16(58705), + 44: uint16(58706), + 45: uint16(58707), + 46: uint16(58708), + 47: uint16(58709), + 48: uint16(58710), + 49: uint16(58711), + 50: uint16(58712), + 51: uint16(58713), + 52: uint16(58714), + 53: uint16(58715), + 54: uint16(58716), + 55: uint16(58717), + 56: uint16(58718), + 57: uint16(58719), + 58: uint16(58720), + 59: uint16(58721), + 60: uint16(58722), + 61: uint16(58723), + 62: uint16(58724), + 63: uint16(58725), + 64: uint16(58726), + 65: uint16(58727), + 66: uint16(58728), + 67: uint16(58729), + 68: uint16(58730), + 69: uint16(58731), + 70: uint16(58732), + 71: uint16(58733), + 72: uint16(58734), + 73: uint16(58735), + 74: uint16(58736), + 75: uint16(58737), + 76: uint16(58738), + 77: uint16(58739), + 78: uint16(58740), + 79: uint16(58741), + 80: uint16(58742), + 81: uint16(58743), + 82: uint16(58744), + 83: uint16(58745), + 84: uint16(58746), + 85: uint16(58747), + 86: uint16(58748), + 87: uint16(58749), + 88: uint16(58750), + 89: uint16(58751), + 90: uint16(58752), + 91: uint16(58753), + 92: uint16(58754), + 93: uint16(58755), + 94: uint16(58756), + 95: uint16(58757), + 96: uint16(8560), + 97: uint16(8561), + 98: uint16(8562), + 99: uint16(8563), + 100: uint16(8564), + 101: uint16(8565), + 102: uint16(8566), + 103: uint16(8567), + 104: uint16(8568), + 105: uint16(8569), + 106: uint16(59238), + 107: uint16(59239), + 108: uint16(59240), + 109: uint16(59241), + 110: uint16(59242), + 111: uint16(59243), + 112: uint16(9352), + 113: uint16(9353), + 114: uint16(9354), + 115: uint16(9355), + 116: uint16(9356), + 117: uint16(9357), + 118: uint16(9358), + 119: uint16(9359), + 120: uint16(9360), + 121: uint16(9361), + 122: uint16(9362), + 123: uint16(9363), + 124: uint16(9364), + 125: uint16(9365), + 126: uint16(9366), + 127: uint16(9367), + 128: uint16(9368), + 129: uint16(9369), + 130: uint16(9370), + 131: uint16(9371), + 132: uint16(9332), + 133: uint16(9333), + 134: uint16(9334), + 135: uint16(9335), + 136: uint16(9336), + 137: uint16(9337), + 138: uint16(9338), + 139: uint16(9339), + 140: uint16(9340), + 141: uint16(9341), + 142: uint16(9342), + 143: uint16(9343), + 144: uint16(9344), + 145: uint16(9345), + 146: uint16(9346), + 147: uint16(9347), + 148: uint16(9348), + 149: uint16(9349), + 150: uint16(9350), + 151: uint16(9351), + 152: uint16(9312), + 153: uint16(9313), + 154: uint16(9314), + 155: uint16(9315), + 156: uint16(9316), + 157: uint16(9317), + 158: uint16(9318), + 159: uint16(9319), + 160: uint16(9320), + 161: uint16(9321), + 162: uint16(8364), + 163: uint16(59245), + 164: uint16(12832), + 165: uint16(12833), + 166: uint16(12834), + 167: uint16(12835), + 168: uint16(12836), + 169: uint16(12837), + 170: uint16(12838), + 171: uint16(12839), + 172: uint16(12840), + 173: uint16(12841), + 174: uint16(59246), + 175: uint16(59247), + 176: uint16(8544), + 177: uint16(8545), + 178: uint16(8546), + 179: uint16(8547), + 180: uint16(8548), + 181: uint16(8549), + 182: uint16(8550), + 183: uint16(8551), + 184: uint16(8552), + 185: uint16(8553), + 186: uint16(8554), + 187: uint16(8555), + 188: uint16(59248), + 189: uint16(59249), + }, + 34: { + 0: uint16(58758), + 1: uint16(58759), + 2: uint16(58760), + 3: uint16(58761), + 4: uint16(58762), + 5: uint16(58763), + 6: uint16(58764), + 7: uint16(58765), + 8: uint16(58766), + 9: uint16(58767), + 10: uint16(58768), + 11: uint16(58769), + 12: uint16(58770), + 13: uint16(58771), + 14: uint16(58772), + 15: uint16(58773), + 16: uint16(58774), + 17: uint16(58775), + 18: uint16(58776), + 19: uint16(58777), + 20: uint16(58778), + 21: uint16(58779), + 22: uint16(58780), + 23: uint16(58781), + 24: uint16(58782), + 25: uint16(58783), + 26: uint16(58784), + 27: uint16(58785), + 28: uint16(58786), + 29: uint16(58787), + 30: uint16(58788), + 31: uint16(58789), + 32: uint16(58790), + 33: uint16(58791), + 34: uint16(58792), + 35: uint16(58793), + 36: uint16(58794), + 37: uint16(58795), + 38: uint16(58796), + 39: uint16(58797), + 40: uint16(58798), + 41: uint16(58799), + 42: uint16(58800), + 43: uint16(58801), + 44: uint16(58802), + 45: uint16(58803), + 46: uint16(58804), + 47: uint16(58805), + 48: uint16(58806), + 49: uint16(58807), + 50: uint16(58808), + 51: uint16(58809), + 52: uint16(58810), + 53: uint16(58811), + 54: uint16(58812), + 55: uint16(58813), + 56: uint16(58814), + 57: uint16(58815), + 58: uint16(58816), + 59: uint16(58817), + 60: uint16(58818), + 61: uint16(58819), + 62: uint16(58820), + 63: uint16(58821), + 64: uint16(58822), + 65: uint16(58823), + 66: uint16(58824), + 67: uint16(58825), + 68: uint16(58826), + 69: uint16(58827), + 70: uint16(58828), + 71: uint16(58829), + 72: uint16(58830), + 73: uint16(58831), + 74: uint16(58832), + 75: uint16(58833), + 76: uint16(58834), + 77: uint16(58835), + 78: uint16(58836), + 79: uint16(58837), + 80: uint16(58838), + 81: uint16(58839), + 82: uint16(58840), + 83: uint16(58841), + 84: uint16(58842), + 85: uint16(58843), + 86: uint16(58844), + 87: uint16(58845), + 88: uint16(58846), + 89: uint16(58847), + 90: uint16(58848), + 91: uint16(58849), + 92: uint16(58850), + 93: uint16(58851), + 94: uint16(58852), + 95: uint16(58853), + 96: uint16(65281), + 97: uint16(65282), + 98: uint16(65283), + 99: uint16(65509), + 100: uint16(65285), + 101: uint16(65286), + 102: uint16(65287), + 103: uint16(65288), + 104: uint16(65289), + 105: uint16(65290), + 106: uint16(65291), + 107: uint16(65292), + 108: uint16(65293), + 109: uint16(65294), + 110: uint16(65295), + 111: uint16(65296), + 112: uint16(65297), + 113: uint16(65298), + 114: uint16(65299), + 115: uint16(65300), + 116: uint16(65301), + 117: uint16(65302), + 118: uint16(65303), + 119: uint16(65304), + 120: uint16(65305), + 121: uint16(65306), + 122: uint16(65307), + 123: uint16(65308), + 124: uint16(65309), + 125: uint16(65310), + 126: uint16(65311), + 127: uint16(65312), + 128: uint16(65313), + 129: uint16(65314), + 130: uint16(65315), + 131: uint16(65316), + 132: uint16(65317), + 133: uint16(65318), + 134: uint16(65319), + 135: uint16(65320), + 136: uint16(65321), + 137: uint16(65322), + 138: uint16(65323), + 139: uint16(65324), + 140: uint16(65325), + 141: uint16(65326), + 142: uint16(65327), + 143: uint16(65328), + 144: uint16(65329), + 145: uint16(65330), + 146: uint16(65331), + 147: uint16(65332), + 148: uint16(65333), + 149: uint16(65334), + 150: uint16(65335), + 151: uint16(65336), + 152: uint16(65337), + 153: uint16(65338), + 154: uint16(65339), + 155: uint16(65340), + 156: uint16(65341), + 157: uint16(65342), + 158: uint16(65343), + 159: uint16(65344), + 160: uint16(65345), + 161: uint16(65346), + 162: uint16(65347), + 163: uint16(65348), + 164: uint16(65349), + 165: uint16(65350), + 166: uint16(65351), + 167: uint16(65352), + 168: uint16(65353), + 169: uint16(65354), + 170: uint16(65355), + 171: uint16(65356), + 172: uint16(65357), + 173: uint16(65358), + 174: uint16(65359), + 175: uint16(65360), + 176: uint16(65361), + 177: uint16(65362), + 178: uint16(65363), + 179: uint16(65364), + 180: uint16(65365), + 181: uint16(65366), + 182: uint16(65367), + 183: uint16(65368), + 184: uint16(65369), + 185: uint16(65370), + 186: uint16(65371), + 187: uint16(65372), + 188: uint16(65373), + 189: uint16(65507), + }, + 35: { + 0: uint16(58854), + 1: uint16(58855), + 2: uint16(58856), + 3: uint16(58857), + 4: uint16(58858), + 5: uint16(58859), + 6: uint16(58860), + 7: uint16(58861), + 8: uint16(58862), + 9: uint16(58863), + 10: uint16(58864), + 11: uint16(58865), + 12: uint16(58866), + 13: uint16(58867), + 14: uint16(58868), + 15: uint16(58869), + 16: uint16(58870), + 17: uint16(58871), + 18: uint16(58872), + 19: uint16(58873), + 20: uint16(58874), + 21: uint16(58875), + 22: uint16(58876), + 23: uint16(58877), + 24: uint16(58878), + 25: uint16(58879), + 26: uint16(58880), + 27: uint16(58881), + 28: uint16(58882), + 29: uint16(58883), + 30: uint16(58884), + 31: uint16(58885), + 32: uint16(58886), + 33: uint16(58887), + 34: uint16(58888), + 35: uint16(58889), + 36: uint16(58890), + 37: uint16(58891), + 38: uint16(58892), + 39: uint16(58893), + 40: uint16(58894), + 41: uint16(58895), + 42: uint16(58896), + 43: uint16(58897), + 44: uint16(58898), + 45: uint16(58899), + 46: uint16(58900), + 47: uint16(58901), + 48: uint16(58902), + 49: uint16(58903), + 50: uint16(58904), + 51: uint16(58905), + 52: uint16(58906), + 53: uint16(58907), + 54: uint16(58908), + 55: uint16(58909), + 56: uint16(58910), + 57: uint16(58911), + 58: uint16(58912), + 59: uint16(58913), + 60: uint16(58914), + 61: uint16(58915), + 62: uint16(58916), + 63: uint16(58917), + 64: uint16(58918), + 65: uint16(58919), + 66: uint16(58920), + 67: uint16(58921), + 68: uint16(58922), + 69: uint16(58923), + 70: uint16(58924), + 71: uint16(58925), + 72: uint16(58926), + 73: uint16(58927), + 74: uint16(58928), + 75: uint16(58929), + 76: uint16(58930), + 77: uint16(58931), + 78: uint16(58932), + 79: uint16(58933), + 80: uint16(58934), + 81: uint16(58935), + 82: uint16(58936), + 83: uint16(58937), + 84: uint16(58938), + 85: uint16(58939), + 86: uint16(58940), + 87: uint16(58941), + 88: uint16(58942), + 89: uint16(58943), + 90: uint16(58944), + 91: uint16(58945), + 92: uint16(58946), + 93: uint16(58947), + 94: uint16(58948), + 95: uint16(58949), + 96: uint16(12353), + 97: uint16(12354), + 98: uint16(12355), + 99: uint16(12356), + 100: uint16(12357), + 101: uint16(12358), + 102: uint16(12359), + 103: uint16(12360), + 104: uint16(12361), + 105: uint16(12362), + 106: uint16(12363), + 107: uint16(12364), + 108: uint16(12365), + 109: uint16(12366), + 110: uint16(12367), + 111: uint16(12368), + 112: uint16(12369), + 113: uint16(12370), + 114: uint16(12371), + 115: uint16(12372), + 116: uint16(12373), + 117: uint16(12374), + 118: uint16(12375), + 119: uint16(12376), + 120: uint16(12377), + 121: uint16(12378), + 122: uint16(12379), + 123: uint16(12380), + 124: uint16(12381), + 125: uint16(12382), + 126: uint16(12383), + 127: uint16(12384), + 128: uint16(12385), + 129: uint16(12386), + 130: uint16(12387), + 131: uint16(12388), + 132: uint16(12389), + 133: uint16(12390), + 134: uint16(12391), + 135: uint16(12392), + 136: uint16(12393), + 137: uint16(12394), + 138: uint16(12395), + 139: uint16(12396), + 140: uint16(12397), + 141: uint16(12398), + 142: uint16(12399), + 143: uint16(12400), + 144: uint16(12401), + 145: uint16(12402), + 146: uint16(12403), + 147: uint16(12404), + 148: uint16(12405), + 149: uint16(12406), + 150: uint16(12407), + 151: uint16(12408), + 152: uint16(12409), + 153: uint16(12410), + 154: uint16(12411), + 155: uint16(12412), + 156: uint16(12413), + 157: uint16(12414), + 158: uint16(12415), + 159: uint16(12416), + 160: uint16(12417), + 161: uint16(12418), + 162: uint16(12419), + 163: uint16(12420), + 164: uint16(12421), + 165: uint16(12422), + 166: uint16(12423), + 167: uint16(12424), + 168: uint16(12425), + 169: uint16(12426), + 170: uint16(12427), + 171: uint16(12428), + 172: uint16(12429), + 173: uint16(12430), + 174: uint16(12431), + 175: uint16(12432), + 176: uint16(12433), + 177: uint16(12434), + 178: uint16(12435), + 179: uint16(59250), + 180: uint16(59251), + 181: uint16(59252), + 182: uint16(59253), + 183: uint16(59254), + 184: uint16(59255), + 185: uint16(59256), + 186: uint16(59257), + 187: uint16(59258), + 188: uint16(59259), + 189: uint16(59260), + }, + 36: { + 0: uint16(58950), + 1: uint16(58951), + 2: uint16(58952), + 3: uint16(58953), + 4: uint16(58954), + 5: uint16(58955), + 6: uint16(58956), + 7: uint16(58957), + 8: uint16(58958), + 9: uint16(58959), + 10: uint16(58960), + 11: uint16(58961), + 12: uint16(58962), + 13: uint16(58963), + 14: uint16(58964), + 15: uint16(58965), + 16: uint16(58966), + 17: uint16(58967), + 18: uint16(58968), + 19: uint16(58969), + 20: uint16(58970), + 21: uint16(58971), + 22: uint16(58972), + 23: uint16(58973), + 24: uint16(58974), + 25: uint16(58975), + 26: uint16(58976), + 27: uint16(58977), + 28: uint16(58978), + 29: uint16(58979), + 30: uint16(58980), + 31: uint16(58981), + 32: uint16(58982), + 33: uint16(58983), + 34: uint16(58984), + 35: uint16(58985), + 36: uint16(58986), + 37: uint16(58987), + 38: uint16(58988), + 39: uint16(58989), + 40: uint16(58990), + 41: uint16(58991), + 42: uint16(58992), + 43: uint16(58993), + 44: uint16(58994), + 45: uint16(58995), + 46: uint16(58996), + 47: uint16(58997), + 48: uint16(58998), + 49: uint16(58999), + 50: uint16(59000), + 51: uint16(59001), + 52: uint16(59002), + 53: uint16(59003), + 54: uint16(59004), + 55: uint16(59005), + 56: uint16(59006), + 57: uint16(59007), + 58: uint16(59008), + 59: uint16(59009), + 60: uint16(59010), + 61: uint16(59011), + 62: uint16(59012), + 63: uint16(59013), + 64: uint16(59014), + 65: uint16(59015), + 66: uint16(59016), + 67: uint16(59017), + 68: uint16(59018), + 69: uint16(59019), + 70: uint16(59020), + 71: uint16(59021), + 72: uint16(59022), + 73: uint16(59023), + 74: uint16(59024), + 75: uint16(59025), + 76: uint16(59026), + 77: uint16(59027), + 78: uint16(59028), + 79: uint16(59029), + 80: uint16(59030), + 81: uint16(59031), + 82: uint16(59032), + 83: uint16(59033), + 84: uint16(59034), + 85: uint16(59035), + 86: uint16(59036), + 87: uint16(59037), + 88: uint16(59038), + 89: uint16(59039), + 90: uint16(59040), + 91: uint16(59041), + 92: uint16(59042), + 93: uint16(59043), + 94: uint16(59044), + 95: uint16(59045), + 96: uint16(12449), + 97: uint16(12450), + 98: uint16(12451), + 99: uint16(12452), + 100: uint16(12453), + 101: uint16(12454), + 102: uint16(12455), + 103: uint16(12456), + 104: uint16(12457), + 105: uint16(12458), + 106: uint16(12459), + 107: uint16(12460), + 108: uint16(12461), + 109: uint16(12462), + 110: uint16(12463), + 111: uint16(12464), + 112: uint16(12465), + 113: uint16(12466), + 114: uint16(12467), + 115: uint16(12468), + 116: uint16(12469), + 117: uint16(12470), + 118: uint16(12471), + 119: uint16(12472), + 120: uint16(12473), + 121: uint16(12474), + 122: uint16(12475), + 123: uint16(12476), + 124: uint16(12477), + 125: uint16(12478), + 126: uint16(12479), + 127: uint16(12480), + 128: uint16(12481), + 129: uint16(12482), + 130: uint16(12483), + 131: uint16(12484), + 132: uint16(12485), + 133: uint16(12486), + 134: uint16(12487), + 135: uint16(12488), + 136: uint16(12489), + 137: uint16(12490), + 138: uint16(12491), + 139: uint16(12492), + 140: uint16(12493), + 141: uint16(12494), + 142: uint16(12495), + 143: uint16(12496), + 144: uint16(12497), + 145: uint16(12498), + 146: uint16(12499), + 147: uint16(12500), + 148: uint16(12501), + 149: uint16(12502), + 150: uint16(12503), + 151: uint16(12504), + 152: uint16(12505), + 153: uint16(12506), + 154: uint16(12507), + 155: uint16(12508), + 156: uint16(12509), + 157: uint16(12510), + 158: uint16(12511), + 159: uint16(12512), + 160: uint16(12513), + 161: uint16(12514), + 162: uint16(12515), + 163: uint16(12516), + 164: uint16(12517), + 165: uint16(12518), + 166: uint16(12519), + 167: uint16(12520), + 168: uint16(12521), + 169: uint16(12522), + 170: uint16(12523), + 171: uint16(12524), + 172: uint16(12525), + 173: uint16(12526), + 174: uint16(12527), + 175: uint16(12528), + 176: uint16(12529), + 177: uint16(12530), + 178: uint16(12531), + 179: uint16(12532), + 180: uint16(12533), + 181: uint16(12534), + 182: uint16(59261), + 183: uint16(59262), + 184: uint16(59263), + 185: uint16(59264), + 186: uint16(59265), + 187: uint16(59266), + 188: uint16(59267), + 189: uint16(59268), + }, + 37: { + 0: uint16(59046), + 1: uint16(59047), + 2: uint16(59048), + 3: uint16(59049), + 4: uint16(59050), + 5: uint16(59051), + 6: uint16(59052), + 7: uint16(59053), + 8: uint16(59054), + 9: uint16(59055), + 10: uint16(59056), + 11: uint16(59057), + 12: uint16(59058), + 13: uint16(59059), + 14: uint16(59060), + 15: uint16(59061), + 16: uint16(59062), + 17: uint16(59063), + 18: uint16(59064), + 19: uint16(59065), + 20: uint16(59066), + 21: uint16(59067), + 22: uint16(59068), + 23: uint16(59069), + 24: uint16(59070), + 25: uint16(59071), + 26: uint16(59072), + 27: uint16(59073), + 28: uint16(59074), + 29: uint16(59075), + 30: uint16(59076), + 31: uint16(59077), + 32: uint16(59078), + 33: uint16(59079), + 34: uint16(59080), + 35: uint16(59081), + 36: uint16(59082), + 37: uint16(59083), + 38: uint16(59084), + 39: uint16(59085), + 40: uint16(59086), + 41: uint16(59087), + 42: uint16(59088), + 43: uint16(59089), + 44: uint16(59090), + 45: uint16(59091), + 46: uint16(59092), + 47: uint16(59093), + 48: uint16(59094), + 49: uint16(59095), + 50: uint16(59096), + 51: uint16(59097), + 52: uint16(59098), + 53: uint16(59099), + 54: uint16(59100), + 55: uint16(59101), + 56: uint16(59102), + 57: uint16(59103), + 58: uint16(59104), + 59: uint16(59105), + 60: uint16(59106), + 61: uint16(59107), + 62: uint16(59108), + 63: uint16(59109), + 64: uint16(59110), + 65: uint16(59111), + 66: uint16(59112), + 67: uint16(59113), + 68: uint16(59114), + 69: uint16(59115), + 70: uint16(59116), + 71: uint16(59117), + 72: uint16(59118), + 73: uint16(59119), + 74: uint16(59120), + 75: uint16(59121), + 76: uint16(59122), + 77: uint16(59123), + 78: uint16(59124), + 79: uint16(59125), + 80: uint16(59126), + 81: uint16(59127), + 82: uint16(59128), + 83: uint16(59129), + 84: uint16(59130), + 85: uint16(59131), + 86: uint16(59132), + 87: uint16(59133), + 88: uint16(59134), + 89: uint16(59135), + 90: uint16(59136), + 91: uint16(59137), + 92: uint16(59138), + 93: uint16(59139), + 94: uint16(59140), + 95: uint16(59141), + 96: uint16(913), + 97: uint16(914), + 98: uint16(915), + 99: uint16(916), + 100: uint16(917), + 101: uint16(918), + 102: uint16(919), + 103: uint16(920), + 104: uint16(921), + 105: uint16(922), + 106: uint16(923), + 107: uint16(924), + 108: uint16(925), + 109: uint16(926), + 110: uint16(927), + 111: uint16(928), + 112: uint16(929), + 113: uint16(931), + 114: uint16(932), + 115: uint16(933), + 116: uint16(934), + 117: uint16(935), + 118: uint16(936), + 119: uint16(937), + 120: uint16(59269), + 121: uint16(59270), + 122: uint16(59271), + 123: uint16(59272), + 124: uint16(59273), + 125: uint16(59274), + 126: uint16(59275), + 127: uint16(59276), + 128: uint16(945), + 129: uint16(946), + 130: uint16(947), + 131: uint16(948), + 132: uint16(949), + 133: uint16(950), + 134: uint16(951), + 135: uint16(952), + 136: uint16(953), + 137: uint16(954), + 138: uint16(955), + 139: uint16(956), + 140: uint16(957), + 141: uint16(958), + 142: uint16(959), + 143: uint16(960), + 144: uint16(961), + 145: uint16(963), + 146: uint16(964), + 147: uint16(965), + 148: uint16(966), + 149: uint16(967), + 150: uint16(968), + 151: uint16(969), + 152: uint16(59277), + 153: uint16(59278), + 154: uint16(59279), + 155: uint16(59280), + 156: uint16(59281), + 157: uint16(59282), + 158: uint16(59283), + 159: uint16(65077), + 160: uint16(65078), + 161: uint16(65081), + 162: uint16(65082), + 163: uint16(65087), + 164: uint16(65088), + 165: uint16(65085), + 166: uint16(65086), + 167: uint16(65089), + 168: uint16(65090), + 169: uint16(65091), + 170: uint16(65092), + 171: uint16(59284), + 172: uint16(59285), + 173: uint16(65083), + 174: uint16(65084), + 175: uint16(65079), + 176: uint16(65080), + 177: uint16(65073), + 178: uint16(59286), + 179: uint16(65075), + 180: uint16(65076), + 181: uint16(59287), + 182: uint16(59288), + 183: uint16(59289), + 184: uint16(59290), + 185: uint16(59291), + 186: uint16(59292), + 187: uint16(59293), + 188: uint16(59294), + 189: uint16(59295), + }, + 38: { + 0: uint16(59142), + 1: uint16(59143), + 2: uint16(59144), + 3: uint16(59145), + 4: uint16(59146), + 5: uint16(59147), + 6: uint16(59148), + 7: uint16(59149), + 8: uint16(59150), + 9: uint16(59151), + 10: uint16(59152), + 11: uint16(59153), + 12: uint16(59154), + 13: uint16(59155), + 14: uint16(59156), + 15: uint16(59157), + 16: uint16(59158), + 17: uint16(59159), + 18: uint16(59160), + 19: uint16(59161), + 20: uint16(59162), + 21: uint16(59163), + 22: uint16(59164), + 23: uint16(59165), + 24: uint16(59166), + 25: uint16(59167), + 26: uint16(59168), + 27: uint16(59169), + 28: uint16(59170), + 29: uint16(59171), + 30: uint16(59172), + 31: uint16(59173), + 32: uint16(59174), + 33: uint16(59175), + 34: uint16(59176), + 35: uint16(59177), + 36: uint16(59178), + 37: uint16(59179), + 38: uint16(59180), + 39: uint16(59181), + 40: uint16(59182), + 41: uint16(59183), + 42: uint16(59184), + 43: uint16(59185), + 44: uint16(59186), + 45: uint16(59187), + 46: uint16(59188), + 47: uint16(59189), + 48: uint16(59190), + 49: uint16(59191), + 50: uint16(59192), + 51: uint16(59193), + 52: uint16(59194), + 53: uint16(59195), + 54: uint16(59196), + 55: uint16(59197), + 56: uint16(59198), + 57: uint16(59199), + 58: uint16(59200), + 59: uint16(59201), + 60: uint16(59202), + 61: uint16(59203), + 62: uint16(59204), + 63: uint16(59205), + 64: uint16(59206), + 65: uint16(59207), + 66: uint16(59208), + 67: uint16(59209), + 68: uint16(59210), + 69: uint16(59211), + 70: uint16(59212), + 71: uint16(59213), + 72: uint16(59214), + 73: uint16(59215), + 74: uint16(59216), + 75: uint16(59217), + 76: uint16(59218), + 77: uint16(59219), + 78: uint16(59220), + 79: uint16(59221), + 80: uint16(59222), + 81: uint16(59223), + 82: uint16(59224), + 83: uint16(59225), + 84: uint16(59226), + 85: uint16(59227), + 86: uint16(59228), + 87: uint16(59229), + 88: uint16(59230), + 89: uint16(59231), + 90: uint16(59232), + 91: uint16(59233), + 92: uint16(59234), + 93: uint16(59235), + 94: uint16(59236), + 95: uint16(59237), + 96: uint16(1040), + 97: uint16(1041), + 98: uint16(1042), + 99: uint16(1043), + 100: uint16(1044), + 101: uint16(1045), + 102: uint16(1025), + 103: uint16(1046), + 104: uint16(1047), + 105: uint16(1048), + 106: uint16(1049), + 107: uint16(1050), + 108: uint16(1051), + 109: uint16(1052), + 110: uint16(1053), + 111: uint16(1054), + 112: uint16(1055), + 113: uint16(1056), + 114: uint16(1057), + 115: uint16(1058), + 116: uint16(1059), + 117: uint16(1060), + 118: uint16(1061), + 119: uint16(1062), + 120: uint16(1063), + 121: uint16(1064), + 122: uint16(1065), + 123: uint16(1066), + 124: uint16(1067), + 125: uint16(1068), + 126: uint16(1069), + 127: uint16(1070), + 128: uint16(1071), + 129: uint16(59296), + 130: uint16(59297), + 131: uint16(59298), + 132: uint16(59299), + 133: uint16(59300), + 134: uint16(59301), + 135: uint16(59302), + 136: uint16(59303), + 137: uint16(59304), + 138: uint16(59305), + 139: uint16(59306), + 140: uint16(59307), + 141: uint16(59308), + 142: uint16(59309), + 143: uint16(59310), + 144: uint16(1072), + 145: uint16(1073), + 146: uint16(1074), + 147: uint16(1075), + 148: uint16(1076), + 149: uint16(1077), + 150: uint16(1105), + 151: uint16(1078), + 152: uint16(1079), + 153: uint16(1080), + 154: uint16(1081), + 155: uint16(1082), + 156: uint16(1083), + 157: uint16(1084), + 158: uint16(1085), + 159: uint16(1086), + 160: uint16(1087), + 161: uint16(1088), + 162: uint16(1089), + 163: uint16(1090), + 164: uint16(1091), + 165: uint16(1092), + 166: uint16(1093), + 167: uint16(1094), + 168: uint16(1095), + 169: uint16(1096), + 170: uint16(1097), + 171: uint16(1098), + 172: uint16(1099), + 173: uint16(1100), + 174: uint16(1101), + 175: uint16(1102), + 176: uint16(1103), + 177: uint16(59311), + 178: uint16(59312), + 179: uint16(59313), + 180: uint16(59314), + 181: uint16(59315), + 182: uint16(59316), + 183: uint16(59317), + 184: uint16(59318), + 185: uint16(59319), + 186: uint16(59320), + 187: uint16(59321), + 188: uint16(59322), + 189: uint16(59323), + }, + 39: { + 0: uint16(714), + 1: uint16(715), + 2: uint16(729), + 3: uint16(8211), + 4: uint16(8213), + 5: uint16(8229), + 6: uint16(8245), + 7: uint16(8453), + 8: uint16(8457), + 9: uint16(8598), + 10: uint16(8599), + 11: uint16(8600), + 12: uint16(8601), + 13: uint16(8725), + 14: uint16(8735), + 15: uint16(8739), + 16: uint16(8786), + 17: uint16(8806), + 18: uint16(8807), + 19: uint16(8895), + 20: uint16(9552), + 21: uint16(9553), + 22: uint16(9554), + 23: uint16(9555), + 24: uint16(9556), + 25: uint16(9557), + 26: uint16(9558), + 27: uint16(9559), + 28: uint16(9560), + 29: uint16(9561), + 30: uint16(9562), + 31: uint16(9563), + 32: uint16(9564), + 33: uint16(9565), + 34: uint16(9566), + 35: uint16(9567), + 36: uint16(9568), + 37: uint16(9569), + 38: uint16(9570), + 39: uint16(9571), + 40: uint16(9572), + 41: uint16(9573), + 42: uint16(9574), + 43: uint16(9575), + 44: uint16(9576), + 45: uint16(9577), + 46: uint16(9578), + 47: uint16(9579), + 48: uint16(9580), + 49: uint16(9581), + 50: uint16(9582), + 51: uint16(9583), + 52: uint16(9584), + 53: uint16(9585), + 54: uint16(9586), + 55: uint16(9587), + 56: uint16(9601), + 57: uint16(9602), + 58: uint16(9603), + 59: uint16(9604), + 60: uint16(9605), + 61: uint16(9606), + 62: uint16(9607), + 63: uint16(9608), + 64: uint16(9609), + 65: uint16(9610), + 66: uint16(9611), + 67: uint16(9612), + 68: uint16(9613), + 69: uint16(9614), + 70: uint16(9615), + 71: uint16(9619), + 72: uint16(9620), + 73: uint16(9621), + 74: uint16(9660), + 75: uint16(9661), + 76: uint16(9698), + 77: uint16(9699), + 78: uint16(9700), + 79: uint16(9701), + 80: uint16(9737), + 81: uint16(8853), + 82: uint16(12306), + 83: uint16(12317), + 84: uint16(12318), + 85: uint16(59324), + 86: uint16(59325), + 87: uint16(59326), + 88: uint16(59327), + 89: uint16(59328), + 90: uint16(59329), + 91: uint16(59330), + 92: uint16(59331), + 93: uint16(59332), + 94: uint16(59333), + 95: uint16(59334), + 96: uint16(257), + 97: uint16(225), + 98: uint16(462), + 99: uint16(224), + 100: uint16(275), + 101: uint16(233), + 102: uint16(283), + 103: uint16(232), + 104: uint16(299), + 105: uint16(237), + 106: uint16(464), + 107: uint16(236), + 108: uint16(333), + 109: uint16(243), + 110: uint16(466), + 111: uint16(242), + 112: uint16(363), + 113: uint16(250), + 114: uint16(468), + 115: uint16(249), + 116: uint16(470), + 117: uint16(472), + 118: uint16(474), + 119: uint16(476), + 120: uint16(252), + 121: uint16(234), + 122: uint16(593), + 123: uint16(59335), + 124: uint16(324), + 125: uint16(328), + 126: uint16(505), + 127: uint16(609), + 128: uint16(59337), + 129: uint16(59338), + 130: uint16(59339), + 131: uint16(59340), + 132: uint16(12549), + 133: uint16(12550), + 134: uint16(12551), + 135: uint16(12552), + 136: uint16(12553), + 137: uint16(12554), + 138: uint16(12555), + 139: uint16(12556), + 140: uint16(12557), + 141: uint16(12558), + 142: uint16(12559), + 143: uint16(12560), + 144: uint16(12561), + 145: uint16(12562), + 146: uint16(12563), + 147: uint16(12564), + 148: uint16(12565), + 149: uint16(12566), + 150: uint16(12567), + 151: uint16(12568), + 152: uint16(12569), + 153: uint16(12570), + 154: uint16(12571), + 155: uint16(12572), + 156: uint16(12573), + 157: uint16(12574), + 158: uint16(12575), + 159: uint16(12576), + 160: uint16(12577), + 161: uint16(12578), + 162: uint16(12579), + 163: uint16(12580), + 164: uint16(12581), + 165: uint16(12582), + 166: uint16(12583), + 167: uint16(12584), + 168: uint16(12585), + 169: uint16(59341), + 170: uint16(59342), + 171: uint16(59343), + 172: uint16(59344), + 173: uint16(59345), + 174: uint16(59346), + 175: uint16(59347), + 176: uint16(59348), + 177: uint16(59349), + 178: uint16(59350), + 179: uint16(59351), + 180: uint16(59352), + 181: uint16(59353), + 182: uint16(59354), + 183: uint16(59355), + 184: uint16(59356), + 185: uint16(59357), + 186: uint16(59358), + 187: uint16(59359), + 188: uint16(59360), + 189: uint16(59361), + }, + 40: { + 0: uint16(12321), + 1: uint16(12322), + 2: uint16(12323), + 3: uint16(12324), + 4: uint16(12325), + 5: uint16(12326), + 6: uint16(12327), + 7: uint16(12328), + 8: uint16(12329), + 9: uint16(12963), + 10: uint16(13198), + 11: uint16(13199), + 12: uint16(13212), + 13: uint16(13213), + 14: uint16(13214), + 15: uint16(13217), + 16: uint16(13252), + 17: uint16(13262), + 18: uint16(13265), + 19: uint16(13266), + 20: uint16(13269), + 21: uint16(65072), + 22: uint16(65506), + 23: uint16(65508), + 24: uint16(59362), + 25: uint16(8481), + 26: uint16(12849), + 27: uint16(59363), + 28: uint16(8208), + 29: uint16(59364), + 30: uint16(59365), + 31: uint16(59366), + 32: uint16(12540), + 33: uint16(12443), + 34: uint16(12444), + 35: uint16(12541), + 36: uint16(12542), + 37: uint16(12294), + 38: uint16(12445), + 39: uint16(12446), + 40: uint16(65097), + 41: uint16(65098), + 42: uint16(65099), + 43: uint16(65100), + 44: uint16(65101), + 45: uint16(65102), + 46: uint16(65103), + 47: uint16(65104), + 48: uint16(65105), + 49: uint16(65106), + 50: uint16(65108), + 51: uint16(65109), + 52: uint16(65110), + 53: uint16(65111), + 54: uint16(65113), + 55: uint16(65114), + 56: uint16(65115), + 57: uint16(65116), + 58: uint16(65117), + 59: uint16(65118), + 60: uint16(65119), + 61: uint16(65120), + 62: uint16(65121), + 63: uint16(65122), + 64: uint16(65123), + 65: uint16(65124), + 66: uint16(65125), + 67: uint16(65126), + 68: uint16(65128), + 69: uint16(65129), + 70: uint16(65130), + 71: uint16(65131), + 72: uint16(12350), + 73: uint16(12272), + 74: uint16(12273), + 75: uint16(12274), + 76: uint16(12275), + 77: uint16(12276), + 78: uint16(12277), + 79: uint16(12278), + 80: uint16(12279), + 81: uint16(12280), + 82: uint16(12281), + 83: uint16(12282), + 84: uint16(12283), + 85: uint16(12295), + 86: uint16(59380), + 87: uint16(59381), + 88: uint16(59382), + 89: uint16(59383), + 90: uint16(59384), + 91: uint16(59385), + 92: uint16(59386), + 93: uint16(59387), + 94: uint16(59388), + 95: uint16(59389), + 96: uint16(59390), + 97: uint16(59391), + 98: uint16(59392), + 99: uint16(9472), + 100: uint16(9473), + 101: uint16(9474), + 102: uint16(9475), + 103: uint16(9476), + 104: uint16(9477), + 105: uint16(9478), + 106: uint16(9479), + 107: uint16(9480), + 108: uint16(9481), + 109: uint16(9482), + 110: uint16(9483), + 111: uint16(9484), + 112: uint16(9485), + 113: uint16(9486), + 114: uint16(9487), + 115: uint16(9488), + 116: uint16(9489), + 117: uint16(9490), + 118: uint16(9491), + 119: uint16(9492), + 120: uint16(9493), + 121: uint16(9494), + 122: uint16(9495), + 123: uint16(9496), + 124: uint16(9497), + 125: uint16(9498), + 126: uint16(9499), + 127: uint16(9500), + 128: uint16(9501), + 129: uint16(9502), + 130: uint16(9503), + 131: uint16(9504), + 132: uint16(9505), + 133: uint16(9506), + 134: uint16(9507), + 135: uint16(9508), + 136: uint16(9509), + 137: uint16(9510), + 138: uint16(9511), + 139: uint16(9512), + 140: uint16(9513), + 141: uint16(9514), + 142: uint16(9515), + 143: uint16(9516), + 144: uint16(9517), + 145: uint16(9518), + 146: uint16(9519), + 147: uint16(9520), + 148: uint16(9521), + 149: uint16(9522), + 150: uint16(9523), + 151: uint16(9524), + 152: uint16(9525), + 153: uint16(9526), + 154: uint16(9527), + 155: uint16(9528), + 156: uint16(9529), + 157: uint16(9530), + 158: uint16(9531), + 159: uint16(9532), + 160: uint16(9533), + 161: uint16(9534), + 162: uint16(9535), + 163: uint16(9536), + 164: uint16(9537), + 165: uint16(9538), + 166: uint16(9539), + 167: uint16(9540), + 168: uint16(9541), + 169: uint16(9542), + 170: uint16(9543), + 171: uint16(9544), + 172: uint16(9545), + 173: uint16(9546), + 174: uint16(9547), + 175: uint16(59393), + 176: uint16(59394), + 177: uint16(59395), + 178: uint16(59396), + 179: uint16(59397), + 180: uint16(59398), + 181: uint16(59399), + 182: uint16(59400), + 183: uint16(59401), + 184: uint16(59402), + 185: uint16(59403), + 186: uint16(59404), + 187: uint16(59405), + 188: uint16(59406), + 189: uint16(59407), + }, + 41: { + 0: uint16(29404), + 1: uint16(29405), + 2: uint16(29407), + 3: uint16(29410), + 4: uint16(29411), + 5: uint16(29412), + 6: uint16(29413), + 7: uint16(29414), + 8: uint16(29415), + 9: uint16(29418), + 10: uint16(29419), + 11: uint16(29429), + 12: uint16(29430), + 13: uint16(29433), + 14: uint16(29437), + 15: uint16(29438), + 16: uint16(29439), + 17: uint16(29440), + 18: uint16(29442), + 19: uint16(29444), + 20: uint16(29445), + 21: uint16(29446), + 22: uint16(29447), + 23: uint16(29448), + 24: uint16(29449), + 25: uint16(29451), + 26: uint16(29452), + 27: uint16(29453), + 28: uint16(29455), + 29: uint16(29456), + 30: uint16(29457), + 31: uint16(29458), + 32: uint16(29460), + 33: uint16(29464), + 34: uint16(29465), + 35: uint16(29466), + 36: uint16(29471), + 37: uint16(29472), + 38: uint16(29475), + 39: uint16(29476), + 40: uint16(29478), + 41: uint16(29479), + 42: uint16(29480), + 43: uint16(29485), + 44: uint16(29487), + 45: uint16(29488), + 46: uint16(29490), + 47: uint16(29491), + 48: uint16(29493), + 49: uint16(29494), + 50: uint16(29498), + 51: uint16(29499), + 52: uint16(29500), + 53: uint16(29501), + 54: uint16(29504), + 55: uint16(29505), + 56: uint16(29506), + 57: uint16(29507), + 58: uint16(29508), + 59: uint16(29509), + 60: uint16(29510), + 61: uint16(29511), + 62: uint16(29512), + 63: uint16(29513), + 64: uint16(29514), + 65: uint16(29515), + 66: uint16(29516), + 67: uint16(29518), + 68: uint16(29519), + 69: uint16(29521), + 70: uint16(29523), + 71: uint16(29524), + 72: uint16(29525), + 73: uint16(29526), + 74: uint16(29528), + 75: uint16(29529), + 76: uint16(29530), + 77: uint16(29531), + 78: uint16(29532), + 79: uint16(29533), + 80: uint16(29534), + 81: uint16(29535), + 82: uint16(29537), + 83: uint16(29538), + 84: uint16(29539), + 85: uint16(29540), + 86: uint16(29541), + 87: uint16(29542), + 88: uint16(29543), + 89: uint16(29544), + 90: uint16(29545), + 91: uint16(29546), + 92: uint16(29547), + 93: uint16(29550), + 94: uint16(29552), + 95: uint16(29553), + 96: uint16(57344), + 97: uint16(57345), + 98: uint16(57346), + 99: uint16(57347), + 100: uint16(57348), + 101: uint16(57349), + 102: uint16(57350), + 103: uint16(57351), + 104: uint16(57352), + 105: uint16(57353), + 106: uint16(57354), + 107: uint16(57355), + 108: uint16(57356), + 109: uint16(57357), + 110: uint16(57358), + 111: uint16(57359), + 112: uint16(57360), + 113: uint16(57361), + 114: uint16(57362), + 115: uint16(57363), + 116: uint16(57364), + 117: uint16(57365), + 118: uint16(57366), + 119: uint16(57367), + 120: uint16(57368), + 121: uint16(57369), + 122: uint16(57370), + 123: uint16(57371), + 124: uint16(57372), + 125: uint16(57373), + 126: uint16(57374), + 127: uint16(57375), + 128: uint16(57376), + 129: uint16(57377), + 130: uint16(57378), + 131: uint16(57379), + 132: uint16(57380), + 133: uint16(57381), + 134: uint16(57382), + 135: uint16(57383), + 136: uint16(57384), + 137: uint16(57385), + 138: uint16(57386), + 139: uint16(57387), + 140: uint16(57388), + 141: uint16(57389), + 142: uint16(57390), + 143: uint16(57391), + 144: uint16(57392), + 145: uint16(57393), + 146: uint16(57394), + 147: uint16(57395), + 148: uint16(57396), + 149: uint16(57397), + 150: uint16(57398), + 151: uint16(57399), + 152: uint16(57400), + 153: uint16(57401), + 154: uint16(57402), + 155: uint16(57403), + 156: uint16(57404), + 157: uint16(57405), + 158: uint16(57406), + 159: uint16(57407), + 160: uint16(57408), + 161: uint16(57409), + 162: uint16(57410), + 163: uint16(57411), + 164: uint16(57412), + 165: uint16(57413), + 166: uint16(57414), + 167: uint16(57415), + 168: uint16(57416), + 169: uint16(57417), + 170: uint16(57418), + 171: uint16(57419), + 172: uint16(57420), + 173: uint16(57421), + 174: uint16(57422), + 175: uint16(57423), + 176: uint16(57424), + 177: uint16(57425), + 178: uint16(57426), + 179: uint16(57427), + 180: uint16(57428), + 181: uint16(57429), + 182: uint16(57430), + 183: uint16(57431), + 184: uint16(57432), + 185: uint16(57433), + 186: uint16(57434), + 187: uint16(57435), + 188: uint16(57436), + 189: uint16(57437), + }, + 42: { + 0: uint16(29554), + 1: uint16(29555), + 2: uint16(29556), + 3: uint16(29557), + 4: uint16(29558), + 5: uint16(29559), + 6: uint16(29560), + 7: uint16(29561), + 8: uint16(29562), + 9: uint16(29563), + 10: uint16(29564), + 11: uint16(29565), + 12: uint16(29567), + 13: uint16(29568), + 14: uint16(29569), + 15: uint16(29570), + 16: uint16(29571), + 17: uint16(29573), + 18: uint16(29574), + 19: uint16(29576), + 20: uint16(29578), + 21: uint16(29580), + 22: uint16(29581), + 23: uint16(29583), + 24: uint16(29584), + 25: uint16(29586), + 26: uint16(29587), + 27: uint16(29588), + 28: uint16(29589), + 29: uint16(29591), + 30: uint16(29592), + 31: uint16(29593), + 32: uint16(29594), + 33: uint16(29596), + 34: uint16(29597), + 35: uint16(29598), + 36: uint16(29600), + 37: uint16(29601), + 38: uint16(29603), + 39: uint16(29604), + 40: uint16(29605), + 41: uint16(29606), + 42: uint16(29607), + 43: uint16(29608), + 44: uint16(29610), + 45: uint16(29612), + 46: uint16(29613), + 47: uint16(29617), + 48: uint16(29620), + 49: uint16(29621), + 50: uint16(29622), + 51: uint16(29624), + 52: uint16(29625), + 53: uint16(29628), + 54: uint16(29629), + 55: uint16(29630), + 56: uint16(29631), + 57: uint16(29633), + 58: uint16(29635), + 59: uint16(29636), + 60: uint16(29637), + 61: uint16(29638), + 62: uint16(29639), + 63: uint16(29643), + 64: uint16(29644), + 65: uint16(29646), + 66: uint16(29650), + 67: uint16(29651), + 68: uint16(29652), + 69: uint16(29653), + 70: uint16(29654), + 71: uint16(29655), + 72: uint16(29656), + 73: uint16(29658), + 74: uint16(29659), + 75: uint16(29660), + 76: uint16(29661), + 77: uint16(29663), + 78: uint16(29665), + 79: uint16(29666), + 80: uint16(29667), + 81: uint16(29668), + 82: uint16(29670), + 83: uint16(29672), + 84: uint16(29674), + 85: uint16(29675), + 86: uint16(29676), + 87: uint16(29678), + 88: uint16(29679), + 89: uint16(29680), + 90: uint16(29681), + 91: uint16(29683), + 92: uint16(29684), + 93: uint16(29685), + 94: uint16(29686), + 95: uint16(29687), + 96: uint16(57438), + 97: uint16(57439), + 98: uint16(57440), + 99: uint16(57441), + 100: uint16(57442), + 101: uint16(57443), + 102: uint16(57444), + 103: uint16(57445), + 104: uint16(57446), + 105: uint16(57447), + 106: uint16(57448), + 107: uint16(57449), + 108: uint16(57450), + 109: uint16(57451), + 110: uint16(57452), + 111: uint16(57453), + 112: uint16(57454), + 113: uint16(57455), + 114: uint16(57456), + 115: uint16(57457), + 116: uint16(57458), + 117: uint16(57459), + 118: uint16(57460), + 119: uint16(57461), + 120: uint16(57462), + 121: uint16(57463), + 122: uint16(57464), + 123: uint16(57465), + 124: uint16(57466), + 125: uint16(57467), + 126: uint16(57468), + 127: uint16(57469), + 128: uint16(57470), + 129: uint16(57471), + 130: uint16(57472), + 131: uint16(57473), + 132: uint16(57474), + 133: uint16(57475), + 134: uint16(57476), + 135: uint16(57477), + 136: uint16(57478), + 137: uint16(57479), + 138: uint16(57480), + 139: uint16(57481), + 140: uint16(57482), + 141: uint16(57483), + 142: uint16(57484), + 143: uint16(57485), + 144: uint16(57486), + 145: uint16(57487), + 146: uint16(57488), + 147: uint16(57489), + 148: uint16(57490), + 149: uint16(57491), + 150: uint16(57492), + 151: uint16(57493), + 152: uint16(57494), + 153: uint16(57495), + 154: uint16(57496), + 155: uint16(57497), + 156: uint16(57498), + 157: uint16(57499), + 158: uint16(57500), + 159: uint16(57501), + 160: uint16(57502), + 161: uint16(57503), + 162: uint16(57504), + 163: uint16(57505), + 164: uint16(57506), + 165: uint16(57507), + 166: uint16(57508), + 167: uint16(57509), + 168: uint16(57510), + 169: uint16(57511), + 170: uint16(57512), + 171: uint16(57513), + 172: uint16(57514), + 173: uint16(57515), + 174: uint16(57516), + 175: uint16(57517), + 176: uint16(57518), + 177: uint16(57519), + 178: uint16(57520), + 179: uint16(57521), + 180: uint16(57522), + 181: uint16(57523), + 182: uint16(57524), + 183: uint16(57525), + 184: uint16(57526), + 185: uint16(57527), + 186: uint16(57528), + 187: uint16(57529), + 188: uint16(57530), + 189: uint16(57531), + }, + 43: { + 0: uint16(29688), + 1: uint16(29689), + 2: uint16(29690), + 3: uint16(29691), + 4: uint16(29692), + 5: uint16(29693), + 6: uint16(29694), + 7: uint16(29695), + 8: uint16(29696), + 9: uint16(29697), + 10: uint16(29698), + 11: uint16(29700), + 12: uint16(29703), + 13: uint16(29704), + 14: uint16(29707), + 15: uint16(29708), + 16: uint16(29709), + 17: uint16(29710), + 18: uint16(29713), + 19: uint16(29714), + 20: uint16(29715), + 21: uint16(29716), + 22: uint16(29717), + 23: uint16(29718), + 24: uint16(29719), + 25: uint16(29720), + 26: uint16(29721), + 27: uint16(29724), + 28: uint16(29725), + 29: uint16(29726), + 30: uint16(29727), + 31: uint16(29728), + 32: uint16(29729), + 33: uint16(29731), + 34: uint16(29732), + 35: uint16(29735), + 36: uint16(29737), + 37: uint16(29739), + 38: uint16(29741), + 39: uint16(29743), + 40: uint16(29745), + 41: uint16(29746), + 42: uint16(29751), + 43: uint16(29752), + 44: uint16(29753), + 45: uint16(29754), + 46: uint16(29755), + 47: uint16(29757), + 48: uint16(29758), + 49: uint16(29759), + 50: uint16(29760), + 51: uint16(29762), + 52: uint16(29763), + 53: uint16(29764), + 54: uint16(29765), + 55: uint16(29766), + 56: uint16(29767), + 57: uint16(29768), + 58: uint16(29769), + 59: uint16(29770), + 60: uint16(29771), + 61: uint16(29772), + 62: uint16(29773), + 63: uint16(29774), + 64: uint16(29775), + 65: uint16(29776), + 66: uint16(29777), + 67: uint16(29778), + 68: uint16(29779), + 69: uint16(29780), + 70: uint16(29782), + 71: uint16(29784), + 72: uint16(29789), + 73: uint16(29792), + 74: uint16(29793), + 75: uint16(29794), + 76: uint16(29795), + 77: uint16(29796), + 78: uint16(29797), + 79: uint16(29798), + 80: uint16(29799), + 81: uint16(29800), + 82: uint16(29801), + 83: uint16(29802), + 84: uint16(29803), + 85: uint16(29804), + 86: uint16(29806), + 87: uint16(29807), + 88: uint16(29809), + 89: uint16(29810), + 90: uint16(29811), + 91: uint16(29812), + 92: uint16(29813), + 93: uint16(29816), + 94: uint16(29817), + 95: uint16(29818), + 96: uint16(57532), + 97: uint16(57533), + 98: uint16(57534), + 99: uint16(57535), + 100: uint16(57536), + 101: uint16(57537), + 102: uint16(57538), + 103: uint16(57539), + 104: uint16(57540), + 105: uint16(57541), + 106: uint16(57542), + 107: uint16(57543), + 108: uint16(57544), + 109: uint16(57545), + 110: uint16(57546), + 111: uint16(57547), + 112: uint16(57548), + 113: uint16(57549), + 114: uint16(57550), + 115: uint16(57551), + 116: uint16(57552), + 117: uint16(57553), + 118: uint16(57554), + 119: uint16(57555), + 120: uint16(57556), + 121: uint16(57557), + 122: uint16(57558), + 123: uint16(57559), + 124: uint16(57560), + 125: uint16(57561), + 126: uint16(57562), + 127: uint16(57563), + 128: uint16(57564), + 129: uint16(57565), + 130: uint16(57566), + 131: uint16(57567), + 132: uint16(57568), + 133: uint16(57569), + 134: uint16(57570), + 135: uint16(57571), + 136: uint16(57572), + 137: uint16(57573), + 138: uint16(57574), + 139: uint16(57575), + 140: uint16(57576), + 141: uint16(57577), + 142: uint16(57578), + 143: uint16(57579), + 144: uint16(57580), + 145: uint16(57581), + 146: uint16(57582), + 147: uint16(57583), + 148: uint16(57584), + 149: uint16(57585), + 150: uint16(57586), + 151: uint16(57587), + 152: uint16(57588), + 153: uint16(57589), + 154: uint16(57590), + 155: uint16(57591), + 156: uint16(57592), + 157: uint16(57593), + 158: uint16(57594), + 159: uint16(57595), + 160: uint16(57596), + 161: uint16(57597), + 162: uint16(57598), + 163: uint16(57599), + 164: uint16(57600), + 165: uint16(57601), + 166: uint16(57602), + 167: uint16(57603), + 168: uint16(57604), + 169: uint16(57605), + 170: uint16(57606), + 171: uint16(57607), + 172: uint16(57608), + 173: uint16(57609), + 174: uint16(57610), + 175: uint16(57611), + 176: uint16(57612), + 177: uint16(57613), + 178: uint16(57614), + 179: uint16(57615), + 180: uint16(57616), + 181: uint16(57617), + 182: uint16(57618), + 183: uint16(57619), + 184: uint16(57620), + 185: uint16(57621), + 186: uint16(57622), + 187: uint16(57623), + 188: uint16(57624), + 189: uint16(57625), + }, + 44: { + 0: uint16(29819), + 1: uint16(29820), + 2: uint16(29821), + 3: uint16(29823), + 4: uint16(29826), + 5: uint16(29828), + 6: uint16(29829), + 7: uint16(29830), + 8: uint16(29832), + 9: uint16(29833), + 10: uint16(29834), + 11: uint16(29836), + 12: uint16(29837), + 13: uint16(29839), + 14: uint16(29841), + 15: uint16(29842), + 16: uint16(29843), + 17: uint16(29844), + 18: uint16(29845), + 19: uint16(29846), + 20: uint16(29847), + 21: uint16(29848), + 22: uint16(29849), + 23: uint16(29850), + 24: uint16(29851), + 25: uint16(29853), + 26: uint16(29855), + 27: uint16(29856), + 28: uint16(29857), + 29: uint16(29858), + 30: uint16(29859), + 31: uint16(29860), + 32: uint16(29861), + 33: uint16(29862), + 34: uint16(29866), + 35: uint16(29867), + 36: uint16(29868), + 37: uint16(29869), + 38: uint16(29870), + 39: uint16(29871), + 40: uint16(29872), + 41: uint16(29873), + 42: uint16(29874), + 43: uint16(29875), + 44: uint16(29876), + 45: uint16(29877), + 46: uint16(29878), + 47: uint16(29879), + 48: uint16(29880), + 49: uint16(29881), + 50: uint16(29883), + 51: uint16(29884), + 52: uint16(29885), + 53: uint16(29886), + 54: uint16(29887), + 55: uint16(29888), + 56: uint16(29889), + 57: uint16(29890), + 58: uint16(29891), + 59: uint16(29892), + 60: uint16(29893), + 61: uint16(29894), + 62: uint16(29895), + 63: uint16(29896), + 64: uint16(29897), + 65: uint16(29898), + 66: uint16(29899), + 67: uint16(29900), + 68: uint16(29901), + 69: uint16(29902), + 70: uint16(29903), + 71: uint16(29904), + 72: uint16(29905), + 73: uint16(29907), + 74: uint16(29908), + 75: uint16(29909), + 76: uint16(29910), + 77: uint16(29911), + 78: uint16(29912), + 79: uint16(29913), + 80: uint16(29914), + 81: uint16(29915), + 82: uint16(29917), + 83: uint16(29919), + 84: uint16(29921), + 85: uint16(29925), + 86: uint16(29927), + 87: uint16(29928), + 88: uint16(29929), + 89: uint16(29930), + 90: uint16(29931), + 91: uint16(29932), + 92: uint16(29933), + 93: uint16(29936), + 94: uint16(29937), + 95: uint16(29938), + 96: uint16(57626), + 97: uint16(57627), + 98: uint16(57628), + 99: uint16(57629), + 100: uint16(57630), + 101: uint16(57631), + 102: uint16(57632), + 103: uint16(57633), + 104: uint16(57634), + 105: uint16(57635), + 106: uint16(57636), + 107: uint16(57637), + 108: uint16(57638), + 109: uint16(57639), + 110: uint16(57640), + 111: uint16(57641), + 112: uint16(57642), + 113: uint16(57643), + 114: uint16(57644), + 115: uint16(57645), + 116: uint16(57646), + 117: uint16(57647), + 118: uint16(57648), + 119: uint16(57649), + 120: uint16(57650), + 121: uint16(57651), + 122: uint16(57652), + 123: uint16(57653), + 124: uint16(57654), + 125: uint16(57655), + 126: uint16(57656), + 127: uint16(57657), + 128: uint16(57658), + 129: uint16(57659), + 130: uint16(57660), + 131: uint16(57661), + 132: uint16(57662), + 133: uint16(57663), + 134: uint16(57664), + 135: uint16(57665), + 136: uint16(57666), + 137: uint16(57667), + 138: uint16(57668), + 139: uint16(57669), + 140: uint16(57670), + 141: uint16(57671), + 142: uint16(57672), + 143: uint16(57673), + 144: uint16(57674), + 145: uint16(57675), + 146: uint16(57676), + 147: uint16(57677), + 148: uint16(57678), + 149: uint16(57679), + 150: uint16(57680), + 151: uint16(57681), + 152: uint16(57682), + 153: uint16(57683), + 154: uint16(57684), + 155: uint16(57685), + 156: uint16(57686), + 157: uint16(57687), + 158: uint16(57688), + 159: uint16(57689), + 160: uint16(57690), + 161: uint16(57691), + 162: uint16(57692), + 163: uint16(57693), + 164: uint16(57694), + 165: uint16(57695), + 166: uint16(57696), + 167: uint16(57697), + 168: uint16(57698), + 169: uint16(57699), + 170: uint16(57700), + 171: uint16(57701), + 172: uint16(57702), + 173: uint16(57703), + 174: uint16(57704), + 175: uint16(57705), + 176: uint16(57706), + 177: uint16(57707), + 178: uint16(57708), + 179: uint16(57709), + 180: uint16(57710), + 181: uint16(57711), + 182: uint16(57712), + 183: uint16(57713), + 184: uint16(57714), + 185: uint16(57715), + 186: uint16(57716), + 187: uint16(57717), + 188: uint16(57718), + 189: uint16(57719), + }, + 45: { + 0: uint16(29939), + 1: uint16(29941), + 2: uint16(29944), + 3: uint16(29945), + 4: uint16(29946), + 5: uint16(29947), + 6: uint16(29948), + 7: uint16(29949), + 8: uint16(29950), + 9: uint16(29952), + 10: uint16(29953), + 11: uint16(29954), + 12: uint16(29955), + 13: uint16(29957), + 14: uint16(29958), + 15: uint16(29959), + 16: uint16(29960), + 17: uint16(29961), + 18: uint16(29962), + 19: uint16(29963), + 20: uint16(29964), + 21: uint16(29966), + 22: uint16(29968), + 23: uint16(29970), + 24: uint16(29972), + 25: uint16(29973), + 26: uint16(29974), + 27: uint16(29975), + 28: uint16(29979), + 29: uint16(29981), + 30: uint16(29982), + 31: uint16(29984), + 32: uint16(29985), + 33: uint16(29986), + 34: uint16(29987), + 35: uint16(29988), + 36: uint16(29990), + 37: uint16(29991), + 38: uint16(29994), + 39: uint16(29998), + 40: uint16(30004), + 41: uint16(30006), + 42: uint16(30009), + 43: uint16(30012), + 44: uint16(30013), + 45: uint16(30015), + 46: uint16(30017), + 47: uint16(30018), + 48: uint16(30019), + 49: uint16(30020), + 50: uint16(30022), + 51: uint16(30023), + 52: uint16(30025), + 53: uint16(30026), + 54: uint16(30029), + 55: uint16(30032), + 56: uint16(30033), + 57: uint16(30034), + 58: uint16(30035), + 59: uint16(30037), + 60: uint16(30038), + 61: uint16(30039), + 62: uint16(30040), + 63: uint16(30045), + 64: uint16(30046), + 65: uint16(30047), + 66: uint16(30048), + 67: uint16(30049), + 68: uint16(30050), + 69: uint16(30051), + 70: uint16(30052), + 71: uint16(30055), + 72: uint16(30056), + 73: uint16(30057), + 74: uint16(30059), + 75: uint16(30060), + 76: uint16(30061), + 77: uint16(30062), + 78: uint16(30063), + 79: uint16(30064), + 80: uint16(30065), + 81: uint16(30067), + 82: uint16(30069), + 83: uint16(30070), + 84: uint16(30071), + 85: uint16(30074), + 86: uint16(30075), + 87: uint16(30076), + 88: uint16(30077), + 89: uint16(30078), + 90: uint16(30080), + 91: uint16(30081), + 92: uint16(30082), + 93: uint16(30084), + 94: uint16(30085), + 95: uint16(30087), + 96: uint16(57720), + 97: uint16(57721), + 98: uint16(57722), + 99: uint16(57723), + 100: uint16(57724), + 101: uint16(57725), + 102: uint16(57726), + 103: uint16(57727), + 104: uint16(57728), + 105: uint16(57729), + 106: uint16(57730), + 107: uint16(57731), + 108: uint16(57732), + 109: uint16(57733), + 110: uint16(57734), + 111: uint16(57735), + 112: uint16(57736), + 113: uint16(57737), + 114: uint16(57738), + 115: uint16(57739), + 116: uint16(57740), + 117: uint16(57741), + 118: uint16(57742), + 119: uint16(57743), + 120: uint16(57744), + 121: uint16(57745), + 122: uint16(57746), + 123: uint16(57747), + 124: uint16(57748), + 125: uint16(57749), + 126: uint16(57750), + 127: uint16(57751), + 128: uint16(57752), + 129: uint16(57753), + 130: uint16(57754), + 131: uint16(57755), + 132: uint16(57756), + 133: uint16(57757), + 134: uint16(57758), + 135: uint16(57759), + 136: uint16(57760), + 137: uint16(57761), + 138: uint16(57762), + 139: uint16(57763), + 140: uint16(57764), + 141: uint16(57765), + 142: uint16(57766), + 143: uint16(57767), + 144: uint16(57768), + 145: uint16(57769), + 146: uint16(57770), + 147: uint16(57771), + 148: uint16(57772), + 149: uint16(57773), + 150: uint16(57774), + 151: uint16(57775), + 152: uint16(57776), + 153: uint16(57777), + 154: uint16(57778), + 155: uint16(57779), + 156: uint16(57780), + 157: uint16(57781), + 158: uint16(57782), + 159: uint16(57783), + 160: uint16(57784), + 161: uint16(57785), + 162: uint16(57786), + 163: uint16(57787), + 164: uint16(57788), + 165: uint16(57789), + 166: uint16(57790), + 167: uint16(57791), + 168: uint16(57792), + 169: uint16(57793), + 170: uint16(57794), + 171: uint16(57795), + 172: uint16(57796), + 173: uint16(57797), + 174: uint16(57798), + 175: uint16(57799), + 176: uint16(57800), + 177: uint16(57801), + 178: uint16(57802), + 179: uint16(57803), + 180: uint16(57804), + 181: uint16(57805), + 182: uint16(57806), + 183: uint16(57807), + 184: uint16(57808), + 185: uint16(57809), + 186: uint16(57810), + 187: uint16(57811), + 188: uint16(57812), + 189: uint16(57813), + }, + 46: { + 0: uint16(30088), + 1: uint16(30089), + 2: uint16(30090), + 3: uint16(30092), + 4: uint16(30093), + 5: uint16(30094), + 6: uint16(30096), + 7: uint16(30099), + 8: uint16(30101), + 9: uint16(30104), + 10: uint16(30107), + 11: uint16(30108), + 12: uint16(30110), + 13: uint16(30114), + 14: uint16(30118), + 15: uint16(30119), + 16: uint16(30120), + 17: uint16(30121), + 18: uint16(30122), + 19: uint16(30125), + 20: uint16(30134), + 21: uint16(30135), + 22: uint16(30138), + 23: uint16(30139), + 24: uint16(30143), + 25: uint16(30144), + 26: uint16(30145), + 27: uint16(30150), + 28: uint16(30155), + 29: uint16(30156), + 30: uint16(30158), + 31: uint16(30159), + 32: uint16(30160), + 33: uint16(30161), + 34: uint16(30163), + 35: uint16(30167), + 36: uint16(30169), + 37: uint16(30170), + 38: uint16(30172), + 39: uint16(30173), + 40: uint16(30175), + 41: uint16(30176), + 42: uint16(30177), + 43: uint16(30181), + 44: uint16(30185), + 45: uint16(30188), + 46: uint16(30189), + 47: uint16(30190), + 48: uint16(30191), + 49: uint16(30194), + 50: uint16(30195), + 51: uint16(30197), + 52: uint16(30198), + 53: uint16(30199), + 54: uint16(30200), + 55: uint16(30202), + 56: uint16(30203), + 57: uint16(30205), + 58: uint16(30206), + 59: uint16(30210), + 60: uint16(30212), + 61: uint16(30214), + 62: uint16(30215), + 63: uint16(30216), + 64: uint16(30217), + 65: uint16(30219), + 66: uint16(30221), + 67: uint16(30222), + 68: uint16(30223), + 69: uint16(30225), + 70: uint16(30226), + 71: uint16(30227), + 72: uint16(30228), + 73: uint16(30230), + 74: uint16(30234), + 75: uint16(30236), + 76: uint16(30237), + 77: uint16(30238), + 78: uint16(30241), + 79: uint16(30243), + 80: uint16(30247), + 81: uint16(30248), + 82: uint16(30252), + 83: uint16(30254), + 84: uint16(30255), + 85: uint16(30257), + 86: uint16(30258), + 87: uint16(30262), + 88: uint16(30263), + 89: uint16(30265), + 90: uint16(30266), + 91: uint16(30267), + 92: uint16(30269), + 93: uint16(30273), + 94: uint16(30274), + 95: uint16(30276), + 96: uint16(57814), + 97: uint16(57815), + 98: uint16(57816), + 99: uint16(57817), + 100: uint16(57818), + 101: uint16(57819), + 102: uint16(57820), + 103: uint16(57821), + 104: uint16(57822), + 105: uint16(57823), + 106: uint16(57824), + 107: uint16(57825), + 108: uint16(57826), + 109: uint16(57827), + 110: uint16(57828), + 111: uint16(57829), + 112: uint16(57830), + 113: uint16(57831), + 114: uint16(57832), + 115: uint16(57833), + 116: uint16(57834), + 117: uint16(57835), + 118: uint16(57836), + 119: uint16(57837), + 120: uint16(57838), + 121: uint16(57839), + 122: uint16(57840), + 123: uint16(57841), + 124: uint16(57842), + 125: uint16(57843), + 126: uint16(57844), + 127: uint16(57845), + 128: uint16(57846), + 129: uint16(57847), + 130: uint16(57848), + 131: uint16(57849), + 132: uint16(57850), + 133: uint16(57851), + 134: uint16(57852), + 135: uint16(57853), + 136: uint16(57854), + 137: uint16(57855), + 138: uint16(57856), + 139: uint16(57857), + 140: uint16(57858), + 141: uint16(57859), + 142: uint16(57860), + 143: uint16(57861), + 144: uint16(57862), + 145: uint16(57863), + 146: uint16(57864), + 147: uint16(57865), + 148: uint16(57866), + 149: uint16(57867), + 150: uint16(57868), + 151: uint16(57869), + 152: uint16(57870), + 153: uint16(57871), + 154: uint16(57872), + 155: uint16(57873), + 156: uint16(57874), + 157: uint16(57875), + 158: uint16(57876), + 159: uint16(57877), + 160: uint16(57878), + 161: uint16(57879), + 162: uint16(57880), + 163: uint16(57881), + 164: uint16(57882), + 165: uint16(57883), + 166: uint16(57884), + 167: uint16(57885), + 168: uint16(57886), + 169: uint16(57887), + 170: uint16(57888), + 171: uint16(57889), + 172: uint16(57890), + 173: uint16(57891), + 174: uint16(57892), + 175: uint16(57893), + 176: uint16(57894), + 177: uint16(57895), + 178: uint16(57896), + 179: uint16(57897), + 180: uint16(57898), + 181: uint16(57899), + 182: uint16(57900), + 183: uint16(57901), + 184: uint16(57902), + 185: uint16(57903), + 186: uint16(57904), + 187: uint16(57905), + 188: uint16(57906), + 189: uint16(57907), + }, + 47: { + 0: uint16(30277), + 1: uint16(30278), + 2: uint16(30279), + 3: uint16(30280), + 4: uint16(30281), + 5: uint16(30282), + 6: uint16(30283), + 7: uint16(30286), + 8: uint16(30287), + 9: uint16(30288), + 10: uint16(30289), + 11: uint16(30290), + 12: uint16(30291), + 13: uint16(30293), + 14: uint16(30295), + 15: uint16(30296), + 16: uint16(30297), + 17: uint16(30298), + 18: uint16(30299), + 19: uint16(30301), + 20: uint16(30303), + 21: uint16(30304), + 22: uint16(30305), + 23: uint16(30306), + 24: uint16(30308), + 25: uint16(30309), + 26: uint16(30310), + 27: uint16(30311), + 28: uint16(30312), + 29: uint16(30313), + 30: uint16(30314), + 31: uint16(30316), + 32: uint16(30317), + 33: uint16(30318), + 34: uint16(30320), + 35: uint16(30321), + 36: uint16(30322), + 37: uint16(30323), + 38: uint16(30324), + 39: uint16(30325), + 40: uint16(30326), + 41: uint16(30327), + 42: uint16(30329), + 43: uint16(30330), + 44: uint16(30332), + 45: uint16(30335), + 46: uint16(30336), + 47: uint16(30337), + 48: uint16(30339), + 49: uint16(30341), + 50: uint16(30345), + 51: uint16(30346), + 52: uint16(30348), + 53: uint16(30349), + 54: uint16(30351), + 55: uint16(30352), + 56: uint16(30354), + 57: uint16(30356), + 58: uint16(30357), + 59: uint16(30359), + 60: uint16(30360), + 61: uint16(30362), + 62: uint16(30363), + 63: uint16(30364), + 64: uint16(30365), + 65: uint16(30366), + 66: uint16(30367), + 67: uint16(30368), + 68: uint16(30369), + 69: uint16(30370), + 70: uint16(30371), + 71: uint16(30373), + 72: uint16(30374), + 73: uint16(30375), + 74: uint16(30376), + 75: uint16(30377), + 76: uint16(30378), + 77: uint16(30379), + 78: uint16(30380), + 79: uint16(30381), + 80: uint16(30383), + 81: uint16(30384), + 82: uint16(30387), + 83: uint16(30389), + 84: uint16(30390), + 85: uint16(30391), + 86: uint16(30392), + 87: uint16(30393), + 88: uint16(30394), + 89: uint16(30395), + 90: uint16(30396), + 91: uint16(30397), + 92: uint16(30398), + 93: uint16(30400), + 94: uint16(30401), + 95: uint16(30403), + 96: uint16(21834), + 97: uint16(38463), + 98: uint16(22467), + 99: uint16(25384), + 100: uint16(21710), + 101: uint16(21769), + 102: uint16(21696), + 103: uint16(30353), + 104: uint16(30284), + 105: uint16(34108), + 106: uint16(30702), + 107: uint16(33406), + 108: uint16(30861), + 109: uint16(29233), + 110: uint16(38552), + 111: uint16(38797), + 112: uint16(27688), + 113: uint16(23433), + 114: uint16(20474), + 115: uint16(25353), + 116: uint16(26263), + 117: uint16(23736), + 118: uint16(33018), + 119: uint16(26696), + 120: uint16(32942), + 121: uint16(26114), + 122: uint16(30414), + 123: uint16(20985), + 124: uint16(25942), + 125: uint16(29100), + 126: uint16(32753), + 127: uint16(34948), + 128: uint16(20658), + 129: uint16(22885), + 130: uint16(25034), + 131: uint16(28595), + 132: uint16(33453), + 133: uint16(25420), + 134: uint16(25170), + 135: uint16(21485), + 136: uint16(21543), + 137: uint16(31494), + 138: uint16(20843), + 139: uint16(30116), + 140: uint16(24052), + 141: uint16(25300), + 142: uint16(36299), + 143: uint16(38774), + 144: uint16(25226), + 145: uint16(32793), + 146: uint16(22365), + 147: uint16(38712), + 148: uint16(32610), + 149: uint16(29240), + 150: uint16(30333), + 151: uint16(26575), + 152: uint16(30334), + 153: uint16(25670), + 154: uint16(20336), + 155: uint16(36133), + 156: uint16(25308), + 157: uint16(31255), + 158: uint16(26001), + 159: uint16(29677), + 160: uint16(25644), + 161: uint16(25203), + 162: uint16(33324), + 163: uint16(39041), + 164: uint16(26495), + 165: uint16(29256), + 166: uint16(25198), + 167: uint16(25292), + 168: uint16(20276), + 169: uint16(29923), + 170: uint16(21322), + 171: uint16(21150), + 172: uint16(32458), + 173: uint16(37030), + 174: uint16(24110), + 175: uint16(26758), + 176: uint16(27036), + 177: uint16(33152), + 178: uint16(32465), + 179: uint16(26834), + 180: uint16(30917), + 181: uint16(34444), + 182: uint16(38225), + 183: uint16(20621), + 184: uint16(35876), + 185: uint16(33502), + 186: uint16(32990), + 187: uint16(21253), + 188: uint16(35090), + 189: uint16(21093), + }, + 48: { + 0: uint16(30404), + 1: uint16(30407), + 2: uint16(30409), + 3: uint16(30411), + 4: uint16(30412), + 5: uint16(30419), + 6: uint16(30421), + 7: uint16(30425), + 8: uint16(30426), + 9: uint16(30428), + 10: uint16(30429), + 11: uint16(30430), + 12: uint16(30432), + 13: uint16(30433), + 14: uint16(30434), + 15: uint16(30435), + 16: uint16(30436), + 17: uint16(30438), + 18: uint16(30439), + 19: uint16(30440), + 20: uint16(30441), + 21: uint16(30442), + 22: uint16(30443), + 23: uint16(30444), + 24: uint16(30445), + 25: uint16(30448), + 26: uint16(30451), + 27: uint16(30453), + 28: uint16(30454), + 29: uint16(30455), + 30: uint16(30458), + 31: uint16(30459), + 32: uint16(30461), + 33: uint16(30463), + 34: uint16(30464), + 35: uint16(30466), + 36: uint16(30467), + 37: uint16(30469), + 38: uint16(30470), + 39: uint16(30474), + 40: uint16(30476), + 41: uint16(30478), + 42: uint16(30479), + 43: uint16(30480), + 44: uint16(30481), + 45: uint16(30482), + 46: uint16(30483), + 47: uint16(30484), + 48: uint16(30485), + 49: uint16(30486), + 50: uint16(30487), + 51: uint16(30488), + 52: uint16(30491), + 53: uint16(30492), + 54: uint16(30493), + 55: uint16(30494), + 56: uint16(30497), + 57: uint16(30499), + 58: uint16(30500), + 59: uint16(30501), + 60: uint16(30503), + 61: uint16(30506), + 62: uint16(30507), + 63: uint16(30508), + 64: uint16(30510), + 65: uint16(30512), + 66: uint16(30513), + 67: uint16(30514), + 68: uint16(30515), + 69: uint16(30516), + 70: uint16(30521), + 71: uint16(30523), + 72: uint16(30525), + 73: uint16(30526), + 74: uint16(30527), + 75: uint16(30530), + 76: uint16(30532), + 77: uint16(30533), + 78: uint16(30534), + 79: uint16(30536), + 80: uint16(30537), + 81: uint16(30538), + 82: uint16(30539), + 83: uint16(30540), + 84: uint16(30541), + 85: uint16(30542), + 86: uint16(30543), + 87: uint16(30546), + 88: uint16(30547), + 89: uint16(30548), + 90: uint16(30549), + 91: uint16(30550), + 92: uint16(30551), + 93: uint16(30552), + 94: uint16(30553), + 95: uint16(30556), + 96: uint16(34180), + 97: uint16(38649), + 98: uint16(20445), + 99: uint16(22561), + 100: uint16(39281), + 101: uint16(23453), + 102: uint16(25265), + 103: uint16(25253), + 104: uint16(26292), + 105: uint16(35961), + 106: uint16(40077), + 107: uint16(29190), + 108: uint16(26479), + 109: uint16(30865), + 110: uint16(24754), + 111: uint16(21329), + 112: uint16(21271), + 113: uint16(36744), + 114: uint16(32972), + 115: uint16(36125), + 116: uint16(38049), + 117: uint16(20493), + 118: uint16(29384), + 119: uint16(22791), + 120: uint16(24811), + 121: uint16(28953), + 122: uint16(34987), + 123: uint16(22868), + 124: uint16(33519), + 125: uint16(26412), + 126: uint16(31528), + 127: uint16(23849), + 128: uint16(32503), + 129: uint16(29997), + 130: uint16(27893), + 131: uint16(36454), + 132: uint16(36856), + 133: uint16(36924), + 134: uint16(40763), + 135: uint16(27604), + 136: uint16(37145), + 137: uint16(31508), + 138: uint16(24444), + 139: uint16(30887), + 140: uint16(34006), + 141: uint16(34109), + 142: uint16(27605), + 143: uint16(27609), + 144: uint16(27606), + 145: uint16(24065), + 146: uint16(24199), + 147: uint16(30201), + 148: uint16(38381), + 149: uint16(25949), + 150: uint16(24330), + 151: uint16(24517), + 152: uint16(36767), + 153: uint16(22721), + 154: uint16(33218), + 155: uint16(36991), + 156: uint16(38491), + 157: uint16(38829), + 158: uint16(36793), + 159: uint16(32534), + 160: uint16(36140), + 161: uint16(25153), + 162: uint16(20415), + 163: uint16(21464), + 164: uint16(21342), + 165: uint16(36776), + 166: uint16(36777), + 167: uint16(36779), + 168: uint16(36941), + 169: uint16(26631), + 170: uint16(24426), + 171: uint16(33176), + 172: uint16(34920), + 173: uint16(40150), + 174: uint16(24971), + 175: uint16(21035), + 176: uint16(30250), + 177: uint16(24428), + 178: uint16(25996), + 179: uint16(28626), + 180: uint16(28392), + 181: uint16(23486), + 182: uint16(25672), + 183: uint16(20853), + 184: uint16(20912), + 185: uint16(26564), + 186: uint16(19993), + 187: uint16(31177), + 188: uint16(39292), + 189: uint16(28851), + }, + 49: { + 0: uint16(30557), + 1: uint16(30558), + 2: uint16(30559), + 3: uint16(30560), + 4: uint16(30564), + 5: uint16(30567), + 6: uint16(30569), + 7: uint16(30570), + 8: uint16(30573), + 9: uint16(30574), + 10: uint16(30575), + 11: uint16(30576), + 12: uint16(30577), + 13: uint16(30578), + 14: uint16(30579), + 15: uint16(30580), + 16: uint16(30581), + 17: uint16(30582), + 18: uint16(30583), + 19: uint16(30584), + 20: uint16(30586), + 21: uint16(30587), + 22: uint16(30588), + 23: uint16(30593), + 24: uint16(30594), + 25: uint16(30595), + 26: uint16(30598), + 27: uint16(30599), + 28: uint16(30600), + 29: uint16(30601), + 30: uint16(30602), + 31: uint16(30603), + 32: uint16(30607), + 33: uint16(30608), + 34: uint16(30611), + 35: uint16(30612), + 36: uint16(30613), + 37: uint16(30614), + 38: uint16(30615), + 39: uint16(30616), + 40: uint16(30617), + 41: uint16(30618), + 42: uint16(30619), + 43: uint16(30620), + 44: uint16(30621), + 45: uint16(30622), + 46: uint16(30625), + 47: uint16(30627), + 48: uint16(30628), + 49: uint16(30630), + 50: uint16(30632), + 51: uint16(30635), + 52: uint16(30637), + 53: uint16(30638), + 54: uint16(30639), + 55: uint16(30641), + 56: uint16(30642), + 57: uint16(30644), + 58: uint16(30646), + 59: uint16(30647), + 60: uint16(30648), + 61: uint16(30649), + 62: uint16(30650), + 63: uint16(30652), + 64: uint16(30654), + 65: uint16(30656), + 66: uint16(30657), + 67: uint16(30658), + 68: uint16(30659), + 69: uint16(30660), + 70: uint16(30661), + 71: uint16(30662), + 72: uint16(30663), + 73: uint16(30664), + 74: uint16(30665), + 75: uint16(30666), + 76: uint16(30667), + 77: uint16(30668), + 78: uint16(30670), + 79: uint16(30671), + 80: uint16(30672), + 81: uint16(30673), + 82: uint16(30674), + 83: uint16(30675), + 84: uint16(30676), + 85: uint16(30677), + 86: uint16(30678), + 87: uint16(30680), + 88: uint16(30681), + 89: uint16(30682), + 90: uint16(30685), + 91: uint16(30686), + 92: uint16(30687), + 93: uint16(30688), + 94: uint16(30689), + 95: uint16(30692), + 96: uint16(30149), + 97: uint16(24182), + 98: uint16(29627), + 99: uint16(33760), + 100: uint16(25773), + 101: uint16(25320), + 102: uint16(38069), + 103: uint16(27874), + 104: uint16(21338), + 105: uint16(21187), + 106: uint16(25615), + 107: uint16(38082), + 108: uint16(31636), + 109: uint16(20271), + 110: uint16(24091), + 111: uint16(33334), + 112: uint16(33046), + 113: uint16(33162), + 114: uint16(28196), + 115: uint16(27850), + 116: uint16(39539), + 117: uint16(25429), + 118: uint16(21340), + 119: uint16(21754), + 120: uint16(34917), + 121: uint16(22496), + 122: uint16(19981), + 123: uint16(24067), + 124: uint16(27493), + 125: uint16(31807), + 126: uint16(37096), + 127: uint16(24598), + 128: uint16(25830), + 129: uint16(29468), + 130: uint16(35009), + 131: uint16(26448), + 132: uint16(25165), + 133: uint16(36130), + 134: uint16(30572), + 135: uint16(36393), + 136: uint16(37319), + 137: uint16(24425), + 138: uint16(33756), + 139: uint16(34081), + 140: uint16(39184), + 141: uint16(21442), + 142: uint16(34453), + 143: uint16(27531), + 144: uint16(24813), + 145: uint16(24808), + 146: uint16(28799), + 147: uint16(33485), + 148: uint16(33329), + 149: uint16(20179), + 150: uint16(27815), + 151: uint16(34255), + 152: uint16(25805), + 153: uint16(31961), + 154: uint16(27133), + 155: uint16(26361), + 156: uint16(33609), + 157: uint16(21397), + 158: uint16(31574), + 159: uint16(20391), + 160: uint16(20876), + 161: uint16(27979), + 162: uint16(23618), + 163: uint16(36461), + 164: uint16(25554), + 165: uint16(21449), + 166: uint16(33580), + 167: uint16(33590), + 168: uint16(26597), + 169: uint16(30900), + 170: uint16(25661), + 171: uint16(23519), + 172: uint16(23700), + 173: uint16(24046), + 174: uint16(35815), + 175: uint16(25286), + 176: uint16(26612), + 177: uint16(35962), + 178: uint16(25600), + 179: uint16(25530), + 180: uint16(34633), + 181: uint16(39307), + 182: uint16(35863), + 183: uint16(32544), + 184: uint16(38130), + 185: uint16(20135), + 186: uint16(38416), + 187: uint16(39076), + 188: uint16(26124), + 189: uint16(29462), + }, + 50: { + 0: uint16(30694), + 1: uint16(30696), + 2: uint16(30698), + 3: uint16(30703), + 4: uint16(30704), + 5: uint16(30705), + 6: uint16(30706), + 7: uint16(30708), + 8: uint16(30709), + 9: uint16(30711), + 10: uint16(30713), + 11: uint16(30714), + 12: uint16(30715), + 13: uint16(30716), + 14: uint16(30723), + 15: uint16(30724), + 16: uint16(30725), + 17: uint16(30726), + 18: uint16(30727), + 19: uint16(30728), + 20: uint16(30730), + 21: uint16(30731), + 22: uint16(30734), + 23: uint16(30735), + 24: uint16(30736), + 25: uint16(30739), + 26: uint16(30741), + 27: uint16(30745), + 28: uint16(30747), + 29: uint16(30750), + 30: uint16(30752), + 31: uint16(30753), + 32: uint16(30754), + 33: uint16(30756), + 34: uint16(30760), + 35: uint16(30762), + 36: uint16(30763), + 37: uint16(30766), + 38: uint16(30767), + 39: uint16(30769), + 40: uint16(30770), + 41: uint16(30771), + 42: uint16(30773), + 43: uint16(30774), + 44: uint16(30781), + 45: uint16(30783), + 46: uint16(30785), + 47: uint16(30786), + 48: uint16(30787), + 49: uint16(30788), + 50: uint16(30790), + 51: uint16(30792), + 52: uint16(30793), + 53: uint16(30794), + 54: uint16(30795), + 55: uint16(30797), + 56: uint16(30799), + 57: uint16(30801), + 58: uint16(30803), + 59: uint16(30804), + 60: uint16(30808), + 61: uint16(30809), + 62: uint16(30810), + 63: uint16(30811), + 64: uint16(30812), + 65: uint16(30814), + 66: uint16(30815), + 67: uint16(30816), + 68: uint16(30817), + 69: uint16(30818), + 70: uint16(30819), + 71: uint16(30820), + 72: uint16(30821), + 73: uint16(30822), + 74: uint16(30823), + 75: uint16(30824), + 76: uint16(30825), + 77: uint16(30831), + 78: uint16(30832), + 79: uint16(30833), + 80: uint16(30834), + 81: uint16(30835), + 82: uint16(30836), + 83: uint16(30837), + 84: uint16(30838), + 85: uint16(30840), + 86: uint16(30841), + 87: uint16(30842), + 88: uint16(30843), + 89: uint16(30845), + 90: uint16(30846), + 91: uint16(30847), + 92: uint16(30848), + 93: uint16(30849), + 94: uint16(30850), + 95: uint16(30851), + 96: uint16(22330), + 97: uint16(23581), + 98: uint16(24120), + 99: uint16(38271), + 100: uint16(20607), + 101: uint16(32928), + 102: uint16(21378), + 103: uint16(25950), + 104: uint16(30021), + 105: uint16(21809), + 106: uint16(20513), + 107: uint16(36229), + 108: uint16(25220), + 109: uint16(38046), + 110: uint16(26397), + 111: uint16(22066), + 112: uint16(28526), + 113: uint16(24034), + 114: uint16(21557), + 115: uint16(28818), + 116: uint16(36710), + 117: uint16(25199), + 118: uint16(25764), + 119: uint16(25507), + 120: uint16(24443), + 121: uint16(28552), + 122: uint16(37108), + 123: uint16(33251), + 124: uint16(36784), + 125: uint16(23576), + 126: uint16(26216), + 127: uint16(24561), + 128: uint16(27785), + 129: uint16(38472), + 130: uint16(36225), + 131: uint16(34924), + 132: uint16(25745), + 133: uint16(31216), + 134: uint16(22478), + 135: uint16(27225), + 136: uint16(25104), + 137: uint16(21576), + 138: uint16(20056), + 139: uint16(31243), + 140: uint16(24809), + 141: uint16(28548), + 142: uint16(35802), + 143: uint16(25215), + 144: uint16(36894), + 145: uint16(39563), + 146: uint16(31204), + 147: uint16(21507), + 148: uint16(30196), + 149: uint16(25345), + 150: uint16(21273), + 151: uint16(27744), + 152: uint16(36831), + 153: uint16(24347), + 154: uint16(39536), + 155: uint16(32827), + 156: uint16(40831), + 157: uint16(20360), + 158: uint16(23610), + 159: uint16(36196), + 160: uint16(32709), + 161: uint16(26021), + 162: uint16(28861), + 163: uint16(20805), + 164: uint16(20914), + 165: uint16(34411), + 166: uint16(23815), + 167: uint16(23456), + 168: uint16(25277), + 169: uint16(37228), + 170: uint16(30068), + 171: uint16(36364), + 172: uint16(31264), + 173: uint16(24833), + 174: uint16(31609), + 175: uint16(20167), + 176: uint16(32504), + 177: uint16(30597), + 178: uint16(19985), + 179: uint16(33261), + 180: uint16(21021), + 181: uint16(20986), + 182: uint16(27249), + 183: uint16(21416), + 184: uint16(36487), + 185: uint16(38148), + 186: uint16(38607), + 187: uint16(28353), + 188: uint16(38500), + 189: uint16(26970), + }, + 51: { + 0: uint16(30852), + 1: uint16(30853), + 2: uint16(30854), + 3: uint16(30856), + 4: uint16(30858), + 5: uint16(30859), + 6: uint16(30863), + 7: uint16(30864), + 8: uint16(30866), + 9: uint16(30868), + 10: uint16(30869), + 11: uint16(30870), + 12: uint16(30873), + 13: uint16(30877), + 14: uint16(30878), + 15: uint16(30880), + 16: uint16(30882), + 17: uint16(30884), + 18: uint16(30886), + 19: uint16(30888), + 20: uint16(30889), + 21: uint16(30890), + 22: uint16(30891), + 23: uint16(30892), + 24: uint16(30893), + 25: uint16(30894), + 26: uint16(30895), + 27: uint16(30901), + 28: uint16(30902), + 29: uint16(30903), + 30: uint16(30904), + 31: uint16(30906), + 32: uint16(30907), + 33: uint16(30908), + 34: uint16(30909), + 35: uint16(30911), + 36: uint16(30912), + 37: uint16(30914), + 38: uint16(30915), + 39: uint16(30916), + 40: uint16(30918), + 41: uint16(30919), + 42: uint16(30920), + 43: uint16(30924), + 44: uint16(30925), + 45: uint16(30926), + 46: uint16(30927), + 47: uint16(30929), + 48: uint16(30930), + 49: uint16(30931), + 50: uint16(30934), + 51: uint16(30935), + 52: uint16(30936), + 53: uint16(30938), + 54: uint16(30939), + 55: uint16(30940), + 56: uint16(30941), + 57: uint16(30942), + 58: uint16(30943), + 59: uint16(30944), + 60: uint16(30945), + 61: uint16(30946), + 62: uint16(30947), + 63: uint16(30948), + 64: uint16(30949), + 65: uint16(30950), + 66: uint16(30951), + 67: uint16(30953), + 68: uint16(30954), + 69: uint16(30955), + 70: uint16(30957), + 71: uint16(30958), + 72: uint16(30959), + 73: uint16(30960), + 74: uint16(30961), + 75: uint16(30963), + 76: uint16(30965), + 77: uint16(30966), + 78: uint16(30968), + 79: uint16(30969), + 80: uint16(30971), + 81: uint16(30972), + 82: uint16(30973), + 83: uint16(30974), + 84: uint16(30975), + 85: uint16(30976), + 86: uint16(30978), + 87: uint16(30979), + 88: uint16(30980), + 89: uint16(30982), + 90: uint16(30983), + 91: uint16(30984), + 92: uint16(30985), + 93: uint16(30986), + 94: uint16(30987), + 95: uint16(30988), + 96: uint16(30784), + 97: uint16(20648), + 98: uint16(30679), + 99: uint16(25616), + 100: uint16(35302), + 101: uint16(22788), + 102: uint16(25571), + 103: uint16(24029), + 104: uint16(31359), + 105: uint16(26941), + 106: uint16(20256), + 107: uint16(33337), + 108: uint16(21912), + 109: uint16(20018), + 110: uint16(30126), + 111: uint16(31383), + 112: uint16(24162), + 113: uint16(24202), + 114: uint16(38383), + 115: uint16(21019), + 116: uint16(21561), + 117: uint16(28810), + 118: uint16(25462), + 119: uint16(38180), + 120: uint16(22402), + 121: uint16(26149), + 122: uint16(26943), + 123: uint16(37255), + 124: uint16(21767), + 125: uint16(28147), + 126: uint16(32431), + 127: uint16(34850), + 128: uint16(25139), + 129: uint16(32496), + 130: uint16(30133), + 131: uint16(33576), + 132: uint16(30913), + 133: uint16(38604), + 134: uint16(36766), + 135: uint16(24904), + 136: uint16(29943), + 137: uint16(35789), + 138: uint16(27492), + 139: uint16(21050), + 140: uint16(36176), + 141: uint16(27425), + 142: uint16(32874), + 143: uint16(33905), + 144: uint16(22257), + 145: uint16(21254), + 146: uint16(20174), + 147: uint16(19995), + 148: uint16(20945), + 149: uint16(31895), + 150: uint16(37259), + 151: uint16(31751), + 152: uint16(20419), + 153: uint16(36479), + 154: uint16(31713), + 155: uint16(31388), + 156: uint16(25703), + 157: uint16(23828), + 158: uint16(20652), + 159: uint16(33030), + 160: uint16(30209), + 161: uint16(31929), + 162: uint16(28140), + 163: uint16(32736), + 164: uint16(26449), + 165: uint16(23384), + 166: uint16(23544), + 167: uint16(30923), + 168: uint16(25774), + 169: uint16(25619), + 170: uint16(25514), + 171: uint16(25387), + 172: uint16(38169), + 173: uint16(25645), + 174: uint16(36798), + 175: uint16(31572), + 176: uint16(30249), + 177: uint16(25171), + 178: uint16(22823), + 179: uint16(21574), + 180: uint16(27513), + 181: uint16(20643), + 182: uint16(25140), + 183: uint16(24102), + 184: uint16(27526), + 185: uint16(20195), + 186: uint16(36151), + 187: uint16(34955), + 188: uint16(24453), + 189: uint16(36910), + }, + 52: { + 0: uint16(30989), + 1: uint16(30990), + 2: uint16(30991), + 3: uint16(30992), + 4: uint16(30993), + 5: uint16(30994), + 6: uint16(30996), + 7: uint16(30997), + 8: uint16(30998), + 9: uint16(30999), + 10: uint16(31000), + 11: uint16(31001), + 12: uint16(31002), + 13: uint16(31003), + 14: uint16(31004), + 15: uint16(31005), + 16: uint16(31007), + 17: uint16(31008), + 18: uint16(31009), + 19: uint16(31010), + 20: uint16(31011), + 21: uint16(31013), + 22: uint16(31014), + 23: uint16(31015), + 24: uint16(31016), + 25: uint16(31017), + 26: uint16(31018), + 27: uint16(31019), + 28: uint16(31020), + 29: uint16(31021), + 30: uint16(31022), + 31: uint16(31023), + 32: uint16(31024), + 33: uint16(31025), + 34: uint16(31026), + 35: uint16(31027), + 36: uint16(31029), + 37: uint16(31030), + 38: uint16(31031), + 39: uint16(31032), + 40: uint16(31033), + 41: uint16(31037), + 42: uint16(31039), + 43: uint16(31042), + 44: uint16(31043), + 45: uint16(31044), + 46: uint16(31045), + 47: uint16(31047), + 48: uint16(31050), + 49: uint16(31051), + 50: uint16(31052), + 51: uint16(31053), + 52: uint16(31054), + 53: uint16(31055), + 54: uint16(31056), + 55: uint16(31057), + 56: uint16(31058), + 57: uint16(31060), + 58: uint16(31061), + 59: uint16(31064), + 60: uint16(31065), + 61: uint16(31073), + 62: uint16(31075), + 63: uint16(31076), + 64: uint16(31078), + 65: uint16(31081), + 66: uint16(31082), + 67: uint16(31083), + 68: uint16(31084), + 69: uint16(31086), + 70: uint16(31088), + 71: uint16(31089), + 72: uint16(31090), + 73: uint16(31091), + 74: uint16(31092), + 75: uint16(31093), + 76: uint16(31094), + 77: uint16(31097), + 78: uint16(31099), + 79: uint16(31100), + 80: uint16(31101), + 81: uint16(31102), + 82: uint16(31103), + 83: uint16(31106), + 84: uint16(31107), + 85: uint16(31110), + 86: uint16(31111), + 87: uint16(31112), + 88: uint16(31113), + 89: uint16(31115), + 90: uint16(31116), + 91: uint16(31117), + 92: uint16(31118), + 93: uint16(31120), + 94: uint16(31121), + 95: uint16(31122), + 96: uint16(24608), + 97: uint16(32829), + 98: uint16(25285), + 99: uint16(20025), + 100: uint16(21333), + 101: uint16(37112), + 102: uint16(25528), + 103: uint16(32966), + 104: uint16(26086), + 105: uint16(27694), + 106: uint16(20294), + 107: uint16(24814), + 108: uint16(28129), + 109: uint16(35806), + 110: uint16(24377), + 111: uint16(34507), + 112: uint16(24403), + 113: uint16(25377), + 114: uint16(20826), + 115: uint16(33633), + 116: uint16(26723), + 117: uint16(20992), + 118: uint16(25443), + 119: uint16(36424), + 120: uint16(20498), + 121: uint16(23707), + 122: uint16(31095), + 123: uint16(23548), + 124: uint16(21040), + 125: uint16(31291), + 126: uint16(24764), + 127: uint16(36947), + 128: uint16(30423), + 129: uint16(24503), + 130: uint16(24471), + 131: uint16(30340), + 132: uint16(36460), + 133: uint16(28783), + 134: uint16(30331), + 135: uint16(31561), + 136: uint16(30634), + 137: uint16(20979), + 138: uint16(37011), + 139: uint16(22564), + 140: uint16(20302), + 141: uint16(28404), + 142: uint16(36842), + 143: uint16(25932), + 144: uint16(31515), + 145: uint16(29380), + 146: uint16(28068), + 147: uint16(32735), + 148: uint16(23265), + 149: uint16(25269), + 150: uint16(24213), + 151: uint16(22320), + 152: uint16(33922), + 153: uint16(31532), + 154: uint16(24093), + 155: uint16(24351), + 156: uint16(36882), + 157: uint16(32532), + 158: uint16(39072), + 159: uint16(25474), + 160: uint16(28359), + 161: uint16(30872), + 162: uint16(28857), + 163: uint16(20856), + 164: uint16(38747), + 165: uint16(22443), + 166: uint16(30005), + 167: uint16(20291), + 168: uint16(30008), + 169: uint16(24215), + 170: uint16(24806), + 171: uint16(22880), + 172: uint16(28096), + 173: uint16(27583), + 174: uint16(30857), + 175: uint16(21500), + 176: uint16(38613), + 177: uint16(20939), + 178: uint16(20993), + 179: uint16(25481), + 180: uint16(21514), + 181: uint16(38035), + 182: uint16(35843), + 183: uint16(36300), + 184: uint16(29241), + 185: uint16(30879), + 186: uint16(34678), + 187: uint16(36845), + 188: uint16(35853), + 189: uint16(21472), + }, + 53: { + 0: uint16(31123), + 1: uint16(31124), + 2: uint16(31125), + 3: uint16(31126), + 4: uint16(31127), + 5: uint16(31128), + 6: uint16(31129), + 7: uint16(31131), + 8: uint16(31132), + 9: uint16(31133), + 10: uint16(31134), + 11: uint16(31135), + 12: uint16(31136), + 13: uint16(31137), + 14: uint16(31138), + 15: uint16(31139), + 16: uint16(31140), + 17: uint16(31141), + 18: uint16(31142), + 19: uint16(31144), + 20: uint16(31145), + 21: uint16(31146), + 22: uint16(31147), + 23: uint16(31148), + 24: uint16(31149), + 25: uint16(31150), + 26: uint16(31151), + 27: uint16(31152), + 28: uint16(31153), + 29: uint16(31154), + 30: uint16(31156), + 31: uint16(31157), + 32: uint16(31158), + 33: uint16(31159), + 34: uint16(31160), + 35: uint16(31164), + 36: uint16(31167), + 37: uint16(31170), + 38: uint16(31172), + 39: uint16(31173), + 40: uint16(31175), + 41: uint16(31176), + 42: uint16(31178), + 43: uint16(31180), + 44: uint16(31182), + 45: uint16(31183), + 46: uint16(31184), + 47: uint16(31187), + 48: uint16(31188), + 49: uint16(31190), + 50: uint16(31191), + 51: uint16(31193), + 52: uint16(31194), + 53: uint16(31195), + 54: uint16(31196), + 55: uint16(31197), + 56: uint16(31198), + 57: uint16(31200), + 58: uint16(31201), + 59: uint16(31202), + 60: uint16(31205), + 61: uint16(31208), + 62: uint16(31210), + 63: uint16(31212), + 64: uint16(31214), + 65: uint16(31217), + 66: uint16(31218), + 67: uint16(31219), + 68: uint16(31220), + 69: uint16(31221), + 70: uint16(31222), + 71: uint16(31223), + 72: uint16(31225), + 73: uint16(31226), + 74: uint16(31228), + 75: uint16(31230), + 76: uint16(31231), + 77: uint16(31233), + 78: uint16(31236), + 79: uint16(31237), + 80: uint16(31239), + 81: uint16(31240), + 82: uint16(31241), + 83: uint16(31242), + 84: uint16(31244), + 85: uint16(31247), + 86: uint16(31248), + 87: uint16(31249), + 88: uint16(31250), + 89: uint16(31251), + 90: uint16(31253), + 91: uint16(31254), + 92: uint16(31256), + 93: uint16(31257), + 94: uint16(31259), + 95: uint16(31260), + 96: uint16(19969), + 97: uint16(30447), + 98: uint16(21486), + 99: uint16(38025), + 100: uint16(39030), + 101: uint16(40718), + 102: uint16(38189), + 103: uint16(23450), + 104: uint16(35746), + 105: uint16(20002), + 106: uint16(19996), + 107: uint16(20908), + 108: uint16(33891), + 109: uint16(25026), + 110: uint16(21160), + 111: uint16(26635), + 112: uint16(20375), + 113: uint16(24683), + 114: uint16(20923), + 115: uint16(27934), + 116: uint16(20828), + 117: uint16(25238), + 118: uint16(26007), + 119: uint16(38497), + 120: uint16(35910), + 121: uint16(36887), + 122: uint16(30168), + 123: uint16(37117), + 124: uint16(30563), + 125: uint16(27602), + 126: uint16(29322), + 127: uint16(29420), + 128: uint16(35835), + 129: uint16(22581), + 130: uint16(30585), + 131: uint16(36172), + 132: uint16(26460), + 133: uint16(38208), + 134: uint16(32922), + 135: uint16(24230), + 136: uint16(28193), + 137: uint16(22930), + 138: uint16(31471), + 139: uint16(30701), + 140: uint16(38203), + 141: uint16(27573), + 142: uint16(26029), + 143: uint16(32526), + 144: uint16(22534), + 145: uint16(20817), + 146: uint16(38431), + 147: uint16(23545), + 148: uint16(22697), + 149: uint16(21544), + 150: uint16(36466), + 151: uint16(25958), + 152: uint16(39039), + 153: uint16(22244), + 154: uint16(38045), + 155: uint16(30462), + 156: uint16(36929), + 157: uint16(25479), + 158: uint16(21702), + 159: uint16(22810), + 160: uint16(22842), + 161: uint16(22427), + 162: uint16(36530), + 163: uint16(26421), + 164: uint16(36346), + 165: uint16(33333), + 166: uint16(21057), + 167: uint16(24816), + 168: uint16(22549), + 169: uint16(34558), + 170: uint16(23784), + 171: uint16(40517), + 172: uint16(20420), + 173: uint16(39069), + 174: uint16(35769), + 175: uint16(23077), + 176: uint16(24694), + 177: uint16(21380), + 178: uint16(25212), + 179: uint16(36943), + 180: uint16(37122), + 181: uint16(39295), + 182: uint16(24681), + 183: uint16(32780), + 184: uint16(20799), + 185: uint16(32819), + 186: uint16(23572), + 187: uint16(39285), + 188: uint16(27953), + 189: uint16(20108), + }, + 54: { + 0: uint16(31261), + 1: uint16(31263), + 2: uint16(31265), + 3: uint16(31266), + 4: uint16(31268), + 5: uint16(31269), + 6: uint16(31270), + 7: uint16(31271), + 8: uint16(31272), + 9: uint16(31273), + 10: uint16(31274), + 11: uint16(31275), + 12: uint16(31276), + 13: uint16(31277), + 14: uint16(31278), + 15: uint16(31279), + 16: uint16(31280), + 17: uint16(31281), + 18: uint16(31282), + 19: uint16(31284), + 20: uint16(31285), + 21: uint16(31286), + 22: uint16(31288), + 23: uint16(31290), + 24: uint16(31294), + 25: uint16(31296), + 26: uint16(31297), + 27: uint16(31298), + 28: uint16(31299), + 29: uint16(31300), + 30: uint16(31301), + 31: uint16(31303), + 32: uint16(31304), + 33: uint16(31305), + 34: uint16(31306), + 35: uint16(31307), + 36: uint16(31308), + 37: uint16(31309), + 38: uint16(31310), + 39: uint16(31311), + 40: uint16(31312), + 41: uint16(31314), + 42: uint16(31315), + 43: uint16(31316), + 44: uint16(31317), + 45: uint16(31318), + 46: uint16(31320), + 47: uint16(31321), + 48: uint16(31322), + 49: uint16(31323), + 50: uint16(31324), + 51: uint16(31325), + 52: uint16(31326), + 53: uint16(31327), + 54: uint16(31328), + 55: uint16(31329), + 56: uint16(31330), + 57: uint16(31331), + 58: uint16(31332), + 59: uint16(31333), + 60: uint16(31334), + 61: uint16(31335), + 62: uint16(31336), + 63: uint16(31337), + 64: uint16(31338), + 65: uint16(31339), + 66: uint16(31340), + 67: uint16(31341), + 68: uint16(31342), + 69: uint16(31343), + 70: uint16(31345), + 71: uint16(31346), + 72: uint16(31347), + 73: uint16(31349), + 74: uint16(31355), + 75: uint16(31356), + 76: uint16(31357), + 77: uint16(31358), + 78: uint16(31362), + 79: uint16(31365), + 80: uint16(31367), + 81: uint16(31369), + 82: uint16(31370), + 83: uint16(31371), + 84: uint16(31372), + 85: uint16(31374), + 86: uint16(31375), + 87: uint16(31376), + 88: uint16(31379), + 89: uint16(31380), + 90: uint16(31385), + 91: uint16(31386), + 92: uint16(31387), + 93: uint16(31390), + 94: uint16(31393), + 95: uint16(31394), + 96: uint16(36144), + 97: uint16(21457), + 98: uint16(32602), + 99: uint16(31567), + 100: uint16(20240), + 101: uint16(20047), + 102: uint16(38400), + 103: uint16(27861), + 104: uint16(29648), + 105: uint16(34281), + 106: uint16(24070), + 107: uint16(30058), + 108: uint16(32763), + 109: uint16(27146), + 110: uint16(30718), + 111: uint16(38034), + 112: uint16(32321), + 113: uint16(20961), + 114: uint16(28902), + 115: uint16(21453), + 116: uint16(36820), + 117: uint16(33539), + 118: uint16(36137), + 119: uint16(29359), + 120: uint16(39277), + 121: uint16(27867), + 122: uint16(22346), + 123: uint16(33459), + 124: uint16(26041), + 125: uint16(32938), + 126: uint16(25151), + 127: uint16(38450), + 128: uint16(22952), + 129: uint16(20223), + 130: uint16(35775), + 131: uint16(32442), + 132: uint16(25918), + 133: uint16(33778), + 134: uint16(38750), + 135: uint16(21857), + 136: uint16(39134), + 137: uint16(32933), + 138: uint16(21290), + 139: uint16(35837), + 140: uint16(21536), + 141: uint16(32954), + 142: uint16(24223), + 143: uint16(27832), + 144: uint16(36153), + 145: uint16(33452), + 146: uint16(37210), + 147: uint16(21545), + 148: uint16(27675), + 149: uint16(20998), + 150: uint16(32439), + 151: uint16(22367), + 152: uint16(28954), + 153: uint16(27774), + 154: uint16(31881), + 155: uint16(22859), + 156: uint16(20221), + 157: uint16(24575), + 158: uint16(24868), + 159: uint16(31914), + 160: uint16(20016), + 161: uint16(23553), + 162: uint16(26539), + 163: uint16(34562), + 164: uint16(23792), + 165: uint16(38155), + 166: uint16(39118), + 167: uint16(30127), + 168: uint16(28925), + 169: uint16(36898), + 170: uint16(20911), + 171: uint16(32541), + 172: uint16(35773), + 173: uint16(22857), + 174: uint16(20964), + 175: uint16(20315), + 176: uint16(21542), + 177: uint16(22827), + 178: uint16(25975), + 179: uint16(32932), + 180: uint16(23413), + 181: uint16(25206), + 182: uint16(25282), + 183: uint16(36752), + 184: uint16(24133), + 185: uint16(27679), + 186: uint16(31526), + 187: uint16(20239), + 188: uint16(20440), + 189: uint16(26381), + }, + 55: { + 0: uint16(31395), + 1: uint16(31396), + 2: uint16(31399), + 3: uint16(31401), + 4: uint16(31402), + 5: uint16(31403), + 6: uint16(31406), + 7: uint16(31407), + 8: uint16(31408), + 9: uint16(31409), + 10: uint16(31410), + 11: uint16(31412), + 12: uint16(31413), + 13: uint16(31414), + 14: uint16(31415), + 15: uint16(31416), + 16: uint16(31417), + 17: uint16(31418), + 18: uint16(31419), + 19: uint16(31420), + 20: uint16(31421), + 21: uint16(31422), + 22: uint16(31424), + 23: uint16(31425), + 24: uint16(31426), + 25: uint16(31427), + 26: uint16(31428), + 27: uint16(31429), + 28: uint16(31430), + 29: uint16(31431), + 30: uint16(31432), + 31: uint16(31433), + 32: uint16(31434), + 33: uint16(31436), + 34: uint16(31437), + 35: uint16(31438), + 36: uint16(31439), + 37: uint16(31440), + 38: uint16(31441), + 39: uint16(31442), + 40: uint16(31443), + 41: uint16(31444), + 42: uint16(31445), + 43: uint16(31447), + 44: uint16(31448), + 45: uint16(31450), + 46: uint16(31451), + 47: uint16(31452), + 48: uint16(31453), + 49: uint16(31457), + 50: uint16(31458), + 51: uint16(31460), + 52: uint16(31463), + 53: uint16(31464), + 54: uint16(31465), + 55: uint16(31466), + 56: uint16(31467), + 57: uint16(31468), + 58: uint16(31470), + 59: uint16(31472), + 60: uint16(31473), + 61: uint16(31474), + 62: uint16(31475), + 63: uint16(31476), + 64: uint16(31477), + 65: uint16(31478), + 66: uint16(31479), + 67: uint16(31480), + 68: uint16(31483), + 69: uint16(31484), + 70: uint16(31486), + 71: uint16(31488), + 72: uint16(31489), + 73: uint16(31490), + 74: uint16(31493), + 75: uint16(31495), + 76: uint16(31497), + 77: uint16(31500), + 78: uint16(31501), + 79: uint16(31502), + 80: uint16(31504), + 81: uint16(31506), + 82: uint16(31507), + 83: uint16(31510), + 84: uint16(31511), + 85: uint16(31512), + 86: uint16(31514), + 87: uint16(31516), + 88: uint16(31517), + 89: uint16(31519), + 90: uint16(31521), + 91: uint16(31522), + 92: uint16(31523), + 93: uint16(31527), + 94: uint16(31529), + 95: uint16(31533), + 96: uint16(28014), + 97: uint16(28074), + 98: uint16(31119), + 99: uint16(34993), + 100: uint16(24343), + 101: uint16(29995), + 102: uint16(25242), + 103: uint16(36741), + 104: uint16(20463), + 105: uint16(37340), + 106: uint16(26023), + 107: uint16(33071), + 108: uint16(33105), + 109: uint16(24220), + 110: uint16(33104), + 111: uint16(36212), + 112: uint16(21103), + 113: uint16(35206), + 114: uint16(36171), + 115: uint16(22797), + 116: uint16(20613), + 117: uint16(20184), + 118: uint16(38428), + 119: uint16(29238), + 120: uint16(33145), + 121: uint16(36127), + 122: uint16(23500), + 123: uint16(35747), + 124: uint16(38468), + 125: uint16(22919), + 126: uint16(32538), + 127: uint16(21648), + 128: uint16(22134), + 129: uint16(22030), + 130: uint16(35813), + 131: uint16(25913), + 132: uint16(27010), + 133: uint16(38041), + 134: uint16(30422), + 135: uint16(28297), + 136: uint16(24178), + 137: uint16(29976), + 138: uint16(26438), + 139: uint16(26577), + 140: uint16(31487), + 141: uint16(32925), + 142: uint16(36214), + 143: uint16(24863), + 144: uint16(31174), + 145: uint16(25954), + 146: uint16(36195), + 147: uint16(20872), + 148: uint16(21018), + 149: uint16(38050), + 150: uint16(32568), + 151: uint16(32923), + 152: uint16(32434), + 153: uint16(23703), + 154: uint16(28207), + 155: uint16(26464), + 156: uint16(31705), + 157: uint16(30347), + 158: uint16(39640), + 159: uint16(33167), + 160: uint16(32660), + 161: uint16(31957), + 162: uint16(25630), + 163: uint16(38224), + 164: uint16(31295), + 165: uint16(21578), + 166: uint16(21733), + 167: uint16(27468), + 168: uint16(25601), + 169: uint16(25096), + 170: uint16(40509), + 171: uint16(33011), + 172: uint16(30105), + 173: uint16(21106), + 174: uint16(38761), + 175: uint16(33883), + 176: uint16(26684), + 177: uint16(34532), + 178: uint16(38401), + 179: uint16(38548), + 180: uint16(38124), + 181: uint16(20010), + 182: uint16(21508), + 183: uint16(32473), + 184: uint16(26681), + 185: uint16(36319), + 186: uint16(32789), + 187: uint16(26356), + 188: uint16(24218), + 189: uint16(32697), + }, + 56: { + 0: uint16(31535), + 1: uint16(31536), + 2: uint16(31538), + 3: uint16(31540), + 4: uint16(31541), + 5: uint16(31542), + 6: uint16(31543), + 7: uint16(31545), + 8: uint16(31547), + 9: uint16(31549), + 10: uint16(31551), + 11: uint16(31552), + 12: uint16(31553), + 13: uint16(31554), + 14: uint16(31555), + 15: uint16(31556), + 16: uint16(31558), + 17: uint16(31560), + 18: uint16(31562), + 19: uint16(31565), + 20: uint16(31566), + 21: uint16(31571), + 22: uint16(31573), + 23: uint16(31575), + 24: uint16(31577), + 25: uint16(31580), + 26: uint16(31582), + 27: uint16(31583), + 28: uint16(31585), + 29: uint16(31587), + 30: uint16(31588), + 31: uint16(31589), + 32: uint16(31590), + 33: uint16(31591), + 34: uint16(31592), + 35: uint16(31593), + 36: uint16(31594), + 37: uint16(31595), + 38: uint16(31596), + 39: uint16(31597), + 40: uint16(31599), + 41: uint16(31600), + 42: uint16(31603), + 43: uint16(31604), + 44: uint16(31606), + 45: uint16(31608), + 46: uint16(31610), + 47: uint16(31612), + 48: uint16(31613), + 49: uint16(31615), + 50: uint16(31617), + 51: uint16(31618), + 52: uint16(31619), + 53: uint16(31620), + 54: uint16(31622), + 55: uint16(31623), + 56: uint16(31624), + 57: uint16(31625), + 58: uint16(31626), + 59: uint16(31627), + 60: uint16(31628), + 61: uint16(31630), + 62: uint16(31631), + 63: uint16(31633), + 64: uint16(31634), + 65: uint16(31635), + 66: uint16(31638), + 67: uint16(31640), + 68: uint16(31641), + 69: uint16(31642), + 70: uint16(31643), + 71: uint16(31646), + 72: uint16(31647), + 73: uint16(31648), + 74: uint16(31651), + 75: uint16(31652), + 76: uint16(31653), + 77: uint16(31662), + 78: uint16(31663), + 79: uint16(31664), + 80: uint16(31666), + 81: uint16(31667), + 82: uint16(31669), + 83: uint16(31670), + 84: uint16(31671), + 85: uint16(31673), + 86: uint16(31674), + 87: uint16(31675), + 88: uint16(31676), + 89: uint16(31677), + 90: uint16(31678), + 91: uint16(31679), + 92: uint16(31680), + 93: uint16(31682), + 94: uint16(31683), + 95: uint16(31684), + 96: uint16(22466), + 97: uint16(32831), + 98: uint16(26775), + 99: uint16(24037), + 100: uint16(25915), + 101: uint16(21151), + 102: uint16(24685), + 103: uint16(40858), + 104: uint16(20379), + 105: uint16(36524), + 106: uint16(20844), + 107: uint16(23467), + 108: uint16(24339), + 109: uint16(24041), + 110: uint16(27742), + 111: uint16(25329), + 112: uint16(36129), + 113: uint16(20849), + 114: uint16(38057), + 115: uint16(21246), + 116: uint16(27807), + 117: uint16(33503), + 118: uint16(29399), + 119: uint16(22434), + 120: uint16(26500), + 121: uint16(36141), + 122: uint16(22815), + 123: uint16(36764), + 124: uint16(33735), + 125: uint16(21653), + 126: uint16(31629), + 127: uint16(20272), + 128: uint16(27837), + 129: uint16(23396), + 130: uint16(22993), + 131: uint16(40723), + 132: uint16(21476), + 133: uint16(34506), + 134: uint16(39592), + 135: uint16(35895), + 136: uint16(32929), + 137: uint16(25925), + 138: uint16(39038), + 139: uint16(22266), + 140: uint16(38599), + 141: uint16(21038), + 142: uint16(29916), + 143: uint16(21072), + 144: uint16(23521), + 145: uint16(25346), + 146: uint16(35074), + 147: uint16(20054), + 148: uint16(25296), + 149: uint16(24618), + 150: uint16(26874), + 151: uint16(20851), + 152: uint16(23448), + 153: uint16(20896), + 154: uint16(35266), + 155: uint16(31649), + 156: uint16(39302), + 157: uint16(32592), + 158: uint16(24815), + 159: uint16(28748), + 160: uint16(36143), + 161: uint16(20809), + 162: uint16(24191), + 163: uint16(36891), + 164: uint16(29808), + 165: uint16(35268), + 166: uint16(22317), + 167: uint16(30789), + 168: uint16(24402), + 169: uint16(40863), + 170: uint16(38394), + 171: uint16(36712), + 172: uint16(39740), + 173: uint16(35809), + 174: uint16(30328), + 175: uint16(26690), + 176: uint16(26588), + 177: uint16(36330), + 178: uint16(36149), + 179: uint16(21053), + 180: uint16(36746), + 181: uint16(28378), + 182: uint16(26829), + 183: uint16(38149), + 184: uint16(37101), + 185: uint16(22269), + 186: uint16(26524), + 187: uint16(35065), + 188: uint16(36807), + 189: uint16(21704), + }, + 57: { + 0: uint16(31685), + 1: uint16(31688), + 2: uint16(31689), + 3: uint16(31690), + 4: uint16(31691), + 5: uint16(31693), + 6: uint16(31694), + 7: uint16(31695), + 8: uint16(31696), + 9: uint16(31698), + 10: uint16(31700), + 11: uint16(31701), + 12: uint16(31702), + 13: uint16(31703), + 14: uint16(31704), + 15: uint16(31707), + 16: uint16(31708), + 17: uint16(31710), + 18: uint16(31711), + 19: uint16(31712), + 20: uint16(31714), + 21: uint16(31715), + 22: uint16(31716), + 23: uint16(31719), + 24: uint16(31720), + 25: uint16(31721), + 26: uint16(31723), + 27: uint16(31724), + 28: uint16(31725), + 29: uint16(31727), + 30: uint16(31728), + 31: uint16(31730), + 32: uint16(31731), + 33: uint16(31732), + 34: uint16(31733), + 35: uint16(31734), + 36: uint16(31736), + 37: uint16(31737), + 38: uint16(31738), + 39: uint16(31739), + 40: uint16(31741), + 41: uint16(31743), + 42: uint16(31744), + 43: uint16(31745), + 44: uint16(31746), + 45: uint16(31747), + 46: uint16(31748), + 47: uint16(31749), + 48: uint16(31750), + 49: uint16(31752), + 50: uint16(31753), + 51: uint16(31754), + 52: uint16(31757), + 53: uint16(31758), + 54: uint16(31760), + 55: uint16(31761), + 56: uint16(31762), + 57: uint16(31763), + 58: uint16(31764), + 59: uint16(31765), + 60: uint16(31767), + 61: uint16(31768), + 62: uint16(31769), + 63: uint16(31770), + 64: uint16(31771), + 65: uint16(31772), + 66: uint16(31773), + 67: uint16(31774), + 68: uint16(31776), + 69: uint16(31777), + 70: uint16(31778), + 71: uint16(31779), + 72: uint16(31780), + 73: uint16(31781), + 74: uint16(31784), + 75: uint16(31785), + 76: uint16(31787), + 77: uint16(31788), + 78: uint16(31789), + 79: uint16(31790), + 80: uint16(31791), + 81: uint16(31792), + 82: uint16(31793), + 83: uint16(31794), + 84: uint16(31795), + 85: uint16(31796), + 86: uint16(31797), + 87: uint16(31798), + 88: uint16(31799), + 89: uint16(31801), + 90: uint16(31802), + 91: uint16(31803), + 92: uint16(31804), + 93: uint16(31805), + 94: uint16(31806), + 95: uint16(31810), + 96: uint16(39608), + 97: uint16(23401), + 98: uint16(28023), + 99: uint16(27686), + 100: uint16(20133), + 101: uint16(23475), + 102: uint16(39559), + 103: uint16(37219), + 104: uint16(25000), + 105: uint16(37039), + 106: uint16(38889), + 107: uint16(21547), + 108: uint16(28085), + 109: uint16(23506), + 110: uint16(20989), + 111: uint16(21898), + 112: uint16(32597), + 113: uint16(32752), + 114: uint16(25788), + 115: uint16(25421), + 116: uint16(26097), + 117: uint16(25022), + 118: uint16(24717), + 119: uint16(28938), + 120: uint16(27735), + 121: uint16(27721), + 122: uint16(22831), + 123: uint16(26477), + 124: uint16(33322), + 125: uint16(22741), + 126: uint16(22158), + 127: uint16(35946), + 128: uint16(27627), + 129: uint16(37085), + 130: uint16(22909), + 131: uint16(32791), + 132: uint16(21495), + 133: uint16(28009), + 134: uint16(21621), + 135: uint16(21917), + 136: uint16(33655), + 137: uint16(33743), + 138: uint16(26680), + 139: uint16(31166), + 140: uint16(21644), + 141: uint16(20309), + 142: uint16(21512), + 143: uint16(30418), + 144: uint16(35977), + 145: uint16(38402), + 146: uint16(27827), + 147: uint16(28088), + 148: uint16(36203), + 149: uint16(35088), + 150: uint16(40548), + 151: uint16(36154), + 152: uint16(22079), + 153: uint16(40657), + 154: uint16(30165), + 155: uint16(24456), + 156: uint16(29408), + 157: uint16(24680), + 158: uint16(21756), + 159: uint16(20136), + 160: uint16(27178), + 161: uint16(34913), + 162: uint16(24658), + 163: uint16(36720), + 164: uint16(21700), + 165: uint16(28888), + 166: uint16(34425), + 167: uint16(40511), + 168: uint16(27946), + 169: uint16(23439), + 170: uint16(24344), + 171: uint16(32418), + 172: uint16(21897), + 173: uint16(20399), + 174: uint16(29492), + 175: uint16(21564), + 176: uint16(21402), + 177: uint16(20505), + 178: uint16(21518), + 179: uint16(21628), + 180: uint16(20046), + 181: uint16(24573), + 182: uint16(29786), + 183: uint16(22774), + 184: uint16(33899), + 185: uint16(32993), + 186: uint16(34676), + 187: uint16(29392), + 188: uint16(31946), + 189: uint16(28246), + }, + 58: { + 0: uint16(31811), + 1: uint16(31812), + 2: uint16(31813), + 3: uint16(31814), + 4: uint16(31815), + 5: uint16(31816), + 6: uint16(31817), + 7: uint16(31818), + 8: uint16(31819), + 9: uint16(31820), + 10: uint16(31822), + 11: uint16(31823), + 12: uint16(31824), + 13: uint16(31825), + 14: uint16(31826), + 15: uint16(31827), + 16: uint16(31828), + 17: uint16(31829), + 18: uint16(31830), + 19: uint16(31831), + 20: uint16(31832), + 21: uint16(31833), + 22: uint16(31834), + 23: uint16(31835), + 24: uint16(31836), + 25: uint16(31837), + 26: uint16(31838), + 27: uint16(31839), + 28: uint16(31840), + 29: uint16(31841), + 30: uint16(31842), + 31: uint16(31843), + 32: uint16(31844), + 33: uint16(31845), + 34: uint16(31846), + 35: uint16(31847), + 36: uint16(31848), + 37: uint16(31849), + 38: uint16(31850), + 39: uint16(31851), + 40: uint16(31852), + 41: uint16(31853), + 42: uint16(31854), + 43: uint16(31855), + 44: uint16(31856), + 45: uint16(31857), + 46: uint16(31858), + 47: uint16(31861), + 48: uint16(31862), + 49: uint16(31863), + 50: uint16(31864), + 51: uint16(31865), + 52: uint16(31866), + 53: uint16(31870), + 54: uint16(31871), + 55: uint16(31872), + 56: uint16(31873), + 57: uint16(31874), + 58: uint16(31875), + 59: uint16(31876), + 60: uint16(31877), + 61: uint16(31878), + 62: uint16(31879), + 63: uint16(31880), + 64: uint16(31882), + 65: uint16(31883), + 66: uint16(31884), + 67: uint16(31885), + 68: uint16(31886), + 69: uint16(31887), + 70: uint16(31888), + 71: uint16(31891), + 72: uint16(31892), + 73: uint16(31894), + 74: uint16(31897), + 75: uint16(31898), + 76: uint16(31899), + 77: uint16(31904), + 78: uint16(31905), + 79: uint16(31907), + 80: uint16(31910), + 81: uint16(31911), + 82: uint16(31912), + 83: uint16(31913), + 84: uint16(31915), + 85: uint16(31916), + 86: uint16(31917), + 87: uint16(31919), + 88: uint16(31920), + 89: uint16(31924), + 90: uint16(31925), + 91: uint16(31926), + 92: uint16(31927), + 93: uint16(31928), + 94: uint16(31930), + 95: uint16(31931), + 96: uint16(24359), + 97: uint16(34382), + 98: uint16(21804), + 99: uint16(25252), + 100: uint16(20114), + 101: uint16(27818), + 102: uint16(25143), + 103: uint16(33457), + 104: uint16(21719), + 105: uint16(21326), + 106: uint16(29502), + 107: uint16(28369), + 108: uint16(30011), + 109: uint16(21010), + 110: uint16(21270), + 111: uint16(35805), + 112: uint16(27088), + 113: uint16(24458), + 114: uint16(24576), + 115: uint16(28142), + 116: uint16(22351), + 117: uint16(27426), + 118: uint16(29615), + 119: uint16(26707), + 120: uint16(36824), + 121: uint16(32531), + 122: uint16(25442), + 123: uint16(24739), + 124: uint16(21796), + 125: uint16(30186), + 126: uint16(35938), + 127: uint16(28949), + 128: uint16(28067), + 129: uint16(23462), + 130: uint16(24187), + 131: uint16(33618), + 132: uint16(24908), + 133: uint16(40644), + 134: uint16(30970), + 135: uint16(34647), + 136: uint16(31783), + 137: uint16(30343), + 138: uint16(20976), + 139: uint16(24822), + 140: uint16(29004), + 141: uint16(26179), + 142: uint16(24140), + 143: uint16(24653), + 144: uint16(35854), + 145: uint16(28784), + 146: uint16(25381), + 147: uint16(36745), + 148: uint16(24509), + 149: uint16(24674), + 150: uint16(34516), + 151: uint16(22238), + 152: uint16(27585), + 153: uint16(24724), + 154: uint16(24935), + 155: uint16(21321), + 156: uint16(24800), + 157: uint16(26214), + 158: uint16(36159), + 159: uint16(31229), + 160: uint16(20250), + 161: uint16(28905), + 162: uint16(27719), + 163: uint16(35763), + 164: uint16(35826), + 165: uint16(32472), + 166: uint16(33636), + 167: uint16(26127), + 168: uint16(23130), + 169: uint16(39746), + 170: uint16(27985), + 171: uint16(28151), + 172: uint16(35905), + 173: uint16(27963), + 174: uint16(20249), + 175: uint16(28779), + 176: uint16(33719), + 177: uint16(25110), + 178: uint16(24785), + 179: uint16(38669), + 180: uint16(36135), + 181: uint16(31096), + 182: uint16(20987), + 183: uint16(22334), + 184: uint16(22522), + 185: uint16(26426), + 186: uint16(30072), + 187: uint16(31293), + 188: uint16(31215), + 189: uint16(31637), + }, + 59: { + 0: uint16(31935), + 1: uint16(31936), + 2: uint16(31938), + 3: uint16(31939), + 4: uint16(31940), + 5: uint16(31942), + 6: uint16(31945), + 7: uint16(31947), + 8: uint16(31950), + 9: uint16(31951), + 10: uint16(31952), + 11: uint16(31953), + 12: uint16(31954), + 13: uint16(31955), + 14: uint16(31956), + 15: uint16(31960), + 16: uint16(31962), + 17: uint16(31963), + 18: uint16(31965), + 19: uint16(31966), + 20: uint16(31969), + 21: uint16(31970), + 22: uint16(31971), + 23: uint16(31972), + 24: uint16(31973), + 25: uint16(31974), + 26: uint16(31975), + 27: uint16(31977), + 28: uint16(31978), + 29: uint16(31979), + 30: uint16(31980), + 31: uint16(31981), + 32: uint16(31982), + 33: uint16(31984), + 34: uint16(31985), + 35: uint16(31986), + 36: uint16(31987), + 37: uint16(31988), + 38: uint16(31989), + 39: uint16(31990), + 40: uint16(31991), + 41: uint16(31993), + 42: uint16(31994), + 43: uint16(31996), + 44: uint16(31997), + 45: uint16(31998), + 46: uint16(31999), + 47: uint16(32000), + 48: uint16(32001), + 49: uint16(32002), + 50: uint16(32003), + 51: uint16(32004), + 52: uint16(32005), + 53: uint16(32006), + 54: uint16(32007), + 55: uint16(32008), + 56: uint16(32009), + 57: uint16(32011), + 58: uint16(32012), + 59: uint16(32013), + 60: uint16(32014), + 61: uint16(32015), + 62: uint16(32016), + 63: uint16(32017), + 64: uint16(32018), + 65: uint16(32019), + 66: uint16(32020), + 67: uint16(32021), + 68: uint16(32022), + 69: uint16(32023), + 70: uint16(32024), + 71: uint16(32025), + 72: uint16(32026), + 73: uint16(32027), + 74: uint16(32028), + 75: uint16(32029), + 76: uint16(32030), + 77: uint16(32031), + 78: uint16(32033), + 79: uint16(32035), + 80: uint16(32036), + 81: uint16(32037), + 82: uint16(32038), + 83: uint16(32040), + 84: uint16(32041), + 85: uint16(32042), + 86: uint16(32044), + 87: uint16(32045), + 88: uint16(32046), + 89: uint16(32048), + 90: uint16(32049), + 91: uint16(32050), + 92: uint16(32051), + 93: uint16(32052), + 94: uint16(32053), + 95: uint16(32054), + 96: uint16(32908), + 97: uint16(39269), + 98: uint16(36857), + 99: uint16(28608), + 100: uint16(35749), + 101: uint16(40481), + 102: uint16(23020), + 103: uint16(32489), + 104: uint16(32521), + 105: uint16(21513), + 106: uint16(26497), + 107: uint16(26840), + 108: uint16(36753), + 109: uint16(31821), + 110: uint16(38598), + 111: uint16(21450), + 112: uint16(24613), + 113: uint16(30142), + 114: uint16(27762), + 115: uint16(21363), + 116: uint16(23241), + 117: uint16(32423), + 118: uint16(25380), + 119: uint16(20960), + 120: uint16(33034), + 121: uint16(24049), + 122: uint16(34015), + 123: uint16(25216), + 124: uint16(20864), + 125: uint16(23395), + 126: uint16(20238), + 127: uint16(31085), + 128: uint16(21058), + 129: uint16(24760), + 130: uint16(27982), + 131: uint16(23492), + 132: uint16(23490), + 133: uint16(35745), + 134: uint16(35760), + 135: uint16(26082), + 136: uint16(24524), + 137: uint16(38469), + 138: uint16(22931), + 139: uint16(32487), + 140: uint16(32426), + 141: uint16(22025), + 142: uint16(26551), + 143: uint16(22841), + 144: uint16(20339), + 145: uint16(23478), + 146: uint16(21152), + 147: uint16(33626), + 148: uint16(39050), + 149: uint16(36158), + 150: uint16(30002), + 151: uint16(38078), + 152: uint16(20551), + 153: uint16(31292), + 154: uint16(20215), + 155: uint16(26550), + 156: uint16(39550), + 157: uint16(23233), + 158: uint16(27516), + 159: uint16(30417), + 160: uint16(22362), + 161: uint16(23574), + 162: uint16(31546), + 163: uint16(38388), + 164: uint16(29006), + 165: uint16(20860), + 166: uint16(32937), + 167: uint16(33392), + 168: uint16(22904), + 169: uint16(32516), + 170: uint16(33575), + 171: uint16(26816), + 172: uint16(26604), + 173: uint16(30897), + 174: uint16(30839), + 175: uint16(25315), + 176: uint16(25441), + 177: uint16(31616), + 178: uint16(20461), + 179: uint16(21098), + 180: uint16(20943), + 181: uint16(33616), + 182: uint16(27099), + 183: uint16(37492), + 184: uint16(36341), + 185: uint16(36145), + 186: uint16(35265), + 187: uint16(38190), + 188: uint16(31661), + 189: uint16(20214), + }, + 60: { + 0: uint16(32055), + 1: uint16(32056), + 2: uint16(32057), + 3: uint16(32058), + 4: uint16(32059), + 5: uint16(32060), + 6: uint16(32061), + 7: uint16(32062), + 8: uint16(32063), + 9: uint16(32064), + 10: uint16(32065), + 11: uint16(32066), + 12: uint16(32067), + 13: uint16(32068), + 14: uint16(32069), + 15: uint16(32070), + 16: uint16(32071), + 17: uint16(32072), + 18: uint16(32073), + 19: uint16(32074), + 20: uint16(32075), + 21: uint16(32076), + 22: uint16(32077), + 23: uint16(32078), + 24: uint16(32079), + 25: uint16(32080), + 26: uint16(32081), + 27: uint16(32082), + 28: uint16(32083), + 29: uint16(32084), + 30: uint16(32085), + 31: uint16(32086), + 32: uint16(32087), + 33: uint16(32088), + 34: uint16(32089), + 35: uint16(32090), + 36: uint16(32091), + 37: uint16(32092), + 38: uint16(32093), + 39: uint16(32094), + 40: uint16(32095), + 41: uint16(32096), + 42: uint16(32097), + 43: uint16(32098), + 44: uint16(32099), + 45: uint16(32100), + 46: uint16(32101), + 47: uint16(32102), + 48: uint16(32103), + 49: uint16(32104), + 50: uint16(32105), + 51: uint16(32106), + 52: uint16(32107), + 53: uint16(32108), + 54: uint16(32109), + 55: uint16(32111), + 56: uint16(32112), + 57: uint16(32113), + 58: uint16(32114), + 59: uint16(32115), + 60: uint16(32116), + 61: uint16(32117), + 62: uint16(32118), + 63: uint16(32120), + 64: uint16(32121), + 65: uint16(32122), + 66: uint16(32123), + 67: uint16(32124), + 68: uint16(32125), + 69: uint16(32126), + 70: uint16(32127), + 71: uint16(32128), + 72: uint16(32129), + 73: uint16(32130), + 74: uint16(32131), + 75: uint16(32132), + 76: uint16(32133), + 77: uint16(32134), + 78: uint16(32135), + 79: uint16(32136), + 80: uint16(32137), + 81: uint16(32138), + 82: uint16(32139), + 83: uint16(32140), + 84: uint16(32141), + 85: uint16(32142), + 86: uint16(32143), + 87: uint16(32144), + 88: uint16(32145), + 89: uint16(32146), + 90: uint16(32147), + 91: uint16(32148), + 92: uint16(32149), + 93: uint16(32150), + 94: uint16(32151), + 95: uint16(32152), + 96: uint16(20581), + 97: uint16(33328), + 98: uint16(21073), + 99: uint16(39279), + 100: uint16(28176), + 101: uint16(28293), + 102: uint16(28071), + 103: uint16(24314), + 104: uint16(20725), + 105: uint16(23004), + 106: uint16(23558), + 107: uint16(27974), + 108: uint16(27743), + 109: uint16(30086), + 110: uint16(33931), + 111: uint16(26728), + 112: uint16(22870), + 113: uint16(35762), + 114: uint16(21280), + 115: uint16(37233), + 116: uint16(38477), + 117: uint16(34121), + 118: uint16(26898), + 119: uint16(30977), + 120: uint16(28966), + 121: uint16(33014), + 122: uint16(20132), + 123: uint16(37066), + 124: uint16(27975), + 125: uint16(39556), + 126: uint16(23047), + 127: uint16(22204), + 128: uint16(25605), + 129: uint16(38128), + 130: uint16(30699), + 131: uint16(20389), + 132: uint16(33050), + 133: uint16(29409), + 134: uint16(35282), + 135: uint16(39290), + 136: uint16(32564), + 137: uint16(32478), + 138: uint16(21119), + 139: uint16(25945), + 140: uint16(37237), + 141: uint16(36735), + 142: uint16(36739), + 143: uint16(21483), + 144: uint16(31382), + 145: uint16(25581), + 146: uint16(25509), + 147: uint16(30342), + 148: uint16(31224), + 149: uint16(34903), + 150: uint16(38454), + 151: uint16(25130), + 152: uint16(21163), + 153: uint16(33410), + 154: uint16(26708), + 155: uint16(26480), + 156: uint16(25463), + 157: uint16(30571), + 158: uint16(31469), + 159: uint16(27905), + 160: uint16(32467), + 161: uint16(35299), + 162: uint16(22992), + 163: uint16(25106), + 164: uint16(34249), + 165: uint16(33445), + 166: uint16(30028), + 167: uint16(20511), + 168: uint16(20171), + 169: uint16(30117), + 170: uint16(35819), + 171: uint16(23626), + 172: uint16(24062), + 173: uint16(31563), + 174: uint16(26020), + 175: uint16(37329), + 176: uint16(20170), + 177: uint16(27941), + 178: uint16(35167), + 179: uint16(32039), + 180: uint16(38182), + 181: uint16(20165), + 182: uint16(35880), + 183: uint16(36827), + 184: uint16(38771), + 185: uint16(26187), + 186: uint16(31105), + 187: uint16(36817), + 188: uint16(28908), + 189: uint16(28024), + }, + 61: { + 0: uint16(32153), + 1: uint16(32154), + 2: uint16(32155), + 3: uint16(32156), + 4: uint16(32157), + 5: uint16(32158), + 6: uint16(32159), + 7: uint16(32160), + 8: uint16(32161), + 9: uint16(32162), + 10: uint16(32163), + 11: uint16(32164), + 12: uint16(32165), + 13: uint16(32167), + 14: uint16(32168), + 15: uint16(32169), + 16: uint16(32170), + 17: uint16(32171), + 18: uint16(32172), + 19: uint16(32173), + 20: uint16(32175), + 21: uint16(32176), + 22: uint16(32177), + 23: uint16(32178), + 24: uint16(32179), + 25: uint16(32180), + 26: uint16(32181), + 27: uint16(32182), + 28: uint16(32183), + 29: uint16(32184), + 30: uint16(32185), + 31: uint16(32186), + 32: uint16(32187), + 33: uint16(32188), + 34: uint16(32189), + 35: uint16(32190), + 36: uint16(32191), + 37: uint16(32192), + 38: uint16(32193), + 39: uint16(32194), + 40: uint16(32195), + 41: uint16(32196), + 42: uint16(32197), + 43: uint16(32198), + 44: uint16(32199), + 45: uint16(32200), + 46: uint16(32201), + 47: uint16(32202), + 48: uint16(32203), + 49: uint16(32204), + 50: uint16(32205), + 51: uint16(32206), + 52: uint16(32207), + 53: uint16(32208), + 54: uint16(32209), + 55: uint16(32210), + 56: uint16(32211), + 57: uint16(32212), + 58: uint16(32213), + 59: uint16(32214), + 60: uint16(32215), + 61: uint16(32216), + 62: uint16(32217), + 63: uint16(32218), + 64: uint16(32219), + 65: uint16(32220), + 66: uint16(32221), + 67: uint16(32222), + 68: uint16(32223), + 69: uint16(32224), + 70: uint16(32225), + 71: uint16(32226), + 72: uint16(32227), + 73: uint16(32228), + 74: uint16(32229), + 75: uint16(32230), + 76: uint16(32231), + 77: uint16(32232), + 78: uint16(32233), + 79: uint16(32234), + 80: uint16(32235), + 81: uint16(32236), + 82: uint16(32237), + 83: uint16(32238), + 84: uint16(32239), + 85: uint16(32240), + 86: uint16(32241), + 87: uint16(32242), + 88: uint16(32243), + 89: uint16(32244), + 90: uint16(32245), + 91: uint16(32246), + 92: uint16(32247), + 93: uint16(32248), + 94: uint16(32249), + 95: uint16(32250), + 96: uint16(23613), + 97: uint16(21170), + 98: uint16(33606), + 99: uint16(20834), + 100: uint16(33550), + 101: uint16(30555), + 102: uint16(26230), + 103: uint16(40120), + 104: uint16(20140), + 105: uint16(24778), + 106: uint16(31934), + 107: uint16(31923), + 108: uint16(32463), + 109: uint16(20117), + 110: uint16(35686), + 111: uint16(26223), + 112: uint16(39048), + 113: uint16(38745), + 114: uint16(22659), + 115: uint16(25964), + 116: uint16(38236), + 117: uint16(24452), + 118: uint16(30153), + 119: uint16(38742), + 120: uint16(31455), + 121: uint16(31454), + 122: uint16(20928), + 123: uint16(28847), + 124: uint16(31384), + 125: uint16(25578), + 126: uint16(31350), + 127: uint16(32416), + 128: uint16(29590), + 129: uint16(38893), + 130: uint16(20037), + 131: uint16(28792), + 132: uint16(20061), + 133: uint16(37202), + 134: uint16(21417), + 135: uint16(25937), + 136: uint16(26087), + 137: uint16(33276), + 138: uint16(33285), + 139: uint16(21646), + 140: uint16(23601), + 141: uint16(30106), + 142: uint16(38816), + 143: uint16(25304), + 144: uint16(29401), + 145: uint16(30141), + 146: uint16(23621), + 147: uint16(39545), + 148: uint16(33738), + 149: uint16(23616), + 150: uint16(21632), + 151: uint16(30697), + 152: uint16(20030), + 153: uint16(27822), + 154: uint16(32858), + 155: uint16(25298), + 156: uint16(25454), + 157: uint16(24040), + 158: uint16(20855), + 159: uint16(36317), + 160: uint16(36382), + 161: uint16(38191), + 162: uint16(20465), + 163: uint16(21477), + 164: uint16(24807), + 165: uint16(28844), + 166: uint16(21095), + 167: uint16(25424), + 168: uint16(40515), + 169: uint16(23071), + 170: uint16(20518), + 171: uint16(30519), + 172: uint16(21367), + 173: uint16(32482), + 174: uint16(25733), + 175: uint16(25899), + 176: uint16(25225), + 177: uint16(25496), + 178: uint16(20500), + 179: uint16(29237), + 180: uint16(35273), + 181: uint16(20915), + 182: uint16(35776), + 183: uint16(32477), + 184: uint16(22343), + 185: uint16(33740), + 186: uint16(38055), + 187: uint16(20891), + 188: uint16(21531), + 189: uint16(23803), + }, + 62: { + 0: uint16(32251), + 1: uint16(32252), + 2: uint16(32253), + 3: uint16(32254), + 4: uint16(32255), + 5: uint16(32256), + 6: uint16(32257), + 7: uint16(32258), + 8: uint16(32259), + 9: uint16(32260), + 10: uint16(32261), + 11: uint16(32262), + 12: uint16(32263), + 13: uint16(32264), + 14: uint16(32265), + 15: uint16(32266), + 16: uint16(32267), + 17: uint16(32268), + 18: uint16(32269), + 19: uint16(32270), + 20: uint16(32271), + 21: uint16(32272), + 22: uint16(32273), + 23: uint16(32274), + 24: uint16(32275), + 25: uint16(32276), + 26: uint16(32277), + 27: uint16(32278), + 28: uint16(32279), + 29: uint16(32280), + 30: uint16(32281), + 31: uint16(32282), + 32: uint16(32283), + 33: uint16(32284), + 34: uint16(32285), + 35: uint16(32286), + 36: uint16(32287), + 37: uint16(32288), + 38: uint16(32289), + 39: uint16(32290), + 40: uint16(32291), + 41: uint16(32292), + 42: uint16(32293), + 43: uint16(32294), + 44: uint16(32295), + 45: uint16(32296), + 46: uint16(32297), + 47: uint16(32298), + 48: uint16(32299), + 49: uint16(32300), + 50: uint16(32301), + 51: uint16(32302), + 52: uint16(32303), + 53: uint16(32304), + 54: uint16(32305), + 55: uint16(32306), + 56: uint16(32307), + 57: uint16(32308), + 58: uint16(32309), + 59: uint16(32310), + 60: uint16(32311), + 61: uint16(32312), + 62: uint16(32313), + 63: uint16(32314), + 64: uint16(32316), + 65: uint16(32317), + 66: uint16(32318), + 67: uint16(32319), + 68: uint16(32320), + 69: uint16(32322), + 70: uint16(32323), + 71: uint16(32324), + 72: uint16(32325), + 73: uint16(32326), + 74: uint16(32328), + 75: uint16(32329), + 76: uint16(32330), + 77: uint16(32331), + 78: uint16(32332), + 79: uint16(32333), + 80: uint16(32334), + 81: uint16(32335), + 82: uint16(32336), + 83: uint16(32337), + 84: uint16(32338), + 85: uint16(32339), + 86: uint16(32340), + 87: uint16(32341), + 88: uint16(32342), + 89: uint16(32343), + 90: uint16(32344), + 91: uint16(32345), + 92: uint16(32346), + 93: uint16(32347), + 94: uint16(32348), + 95: uint16(32349), + 96: uint16(20426), + 97: uint16(31459), + 98: uint16(27994), + 99: uint16(37089), + 100: uint16(39567), + 101: uint16(21888), + 102: uint16(21654), + 103: uint16(21345), + 104: uint16(21679), + 105: uint16(24320), + 106: uint16(25577), + 107: uint16(26999), + 108: uint16(20975), + 109: uint16(24936), + 110: uint16(21002), + 111: uint16(22570), + 112: uint16(21208), + 113: uint16(22350), + 114: uint16(30733), + 115: uint16(30475), + 116: uint16(24247), + 117: uint16(24951), + 118: uint16(31968), + 119: uint16(25179), + 120: uint16(25239), + 121: uint16(20130), + 122: uint16(28821), + 123: uint16(32771), + 124: uint16(25335), + 125: uint16(28900), + 126: uint16(38752), + 127: uint16(22391), + 128: uint16(33499), + 129: uint16(26607), + 130: uint16(26869), + 131: uint16(30933), + 132: uint16(39063), + 133: uint16(31185), + 134: uint16(22771), + 135: uint16(21683), + 136: uint16(21487), + 137: uint16(28212), + 138: uint16(20811), + 139: uint16(21051), + 140: uint16(23458), + 141: uint16(35838), + 142: uint16(32943), + 143: uint16(21827), + 144: uint16(22438), + 145: uint16(24691), + 146: uint16(22353), + 147: uint16(21549), + 148: uint16(31354), + 149: uint16(24656), + 150: uint16(23380), + 151: uint16(25511), + 152: uint16(25248), + 153: uint16(21475), + 154: uint16(25187), + 155: uint16(23495), + 156: uint16(26543), + 157: uint16(21741), + 158: uint16(31391), + 159: uint16(33510), + 160: uint16(37239), + 161: uint16(24211), + 162: uint16(35044), + 163: uint16(22840), + 164: uint16(22446), + 165: uint16(25358), + 166: uint16(36328), + 167: uint16(33007), + 168: uint16(22359), + 169: uint16(31607), + 170: uint16(20393), + 171: uint16(24555), + 172: uint16(23485), + 173: uint16(27454), + 174: uint16(21281), + 175: uint16(31568), + 176: uint16(29378), + 177: uint16(26694), + 178: uint16(30719), + 179: uint16(30518), + 180: uint16(26103), + 181: uint16(20917), + 182: uint16(20111), + 183: uint16(30420), + 184: uint16(23743), + 185: uint16(31397), + 186: uint16(33909), + 187: uint16(22862), + 188: uint16(39745), + 189: uint16(20608), + }, + 63: { + 0: uint16(32350), + 1: uint16(32351), + 2: uint16(32352), + 3: uint16(32353), + 4: uint16(32354), + 5: uint16(32355), + 6: uint16(32356), + 7: uint16(32357), + 8: uint16(32358), + 9: uint16(32359), + 10: uint16(32360), + 11: uint16(32361), + 12: uint16(32362), + 13: uint16(32363), + 14: uint16(32364), + 15: uint16(32365), + 16: uint16(32366), + 17: uint16(32367), + 18: uint16(32368), + 19: uint16(32369), + 20: uint16(32370), + 21: uint16(32371), + 22: uint16(32372), + 23: uint16(32373), + 24: uint16(32374), + 25: uint16(32375), + 26: uint16(32376), + 27: uint16(32377), + 28: uint16(32378), + 29: uint16(32379), + 30: uint16(32380), + 31: uint16(32381), + 32: uint16(32382), + 33: uint16(32383), + 34: uint16(32384), + 35: uint16(32385), + 36: uint16(32387), + 37: uint16(32388), + 38: uint16(32389), + 39: uint16(32390), + 40: uint16(32391), + 41: uint16(32392), + 42: uint16(32393), + 43: uint16(32394), + 44: uint16(32395), + 45: uint16(32396), + 46: uint16(32397), + 47: uint16(32398), + 48: uint16(32399), + 49: uint16(32400), + 50: uint16(32401), + 51: uint16(32402), + 52: uint16(32403), + 53: uint16(32404), + 54: uint16(32405), + 55: uint16(32406), + 56: uint16(32407), + 57: uint16(32408), + 58: uint16(32409), + 59: uint16(32410), + 60: uint16(32412), + 61: uint16(32413), + 62: uint16(32414), + 63: uint16(32430), + 64: uint16(32436), + 65: uint16(32443), + 66: uint16(32444), + 67: uint16(32470), + 68: uint16(32484), + 69: uint16(32492), + 70: uint16(32505), + 71: uint16(32522), + 72: uint16(32528), + 73: uint16(32542), + 74: uint16(32567), + 75: uint16(32569), + 76: uint16(32571), + 77: uint16(32572), + 78: uint16(32573), + 79: uint16(32574), + 80: uint16(32575), + 81: uint16(32576), + 82: uint16(32577), + 83: uint16(32579), + 84: uint16(32582), + 85: uint16(32583), + 86: uint16(32584), + 87: uint16(32585), + 88: uint16(32586), + 89: uint16(32587), + 90: uint16(32588), + 91: uint16(32589), + 92: uint16(32590), + 93: uint16(32591), + 94: uint16(32594), + 95: uint16(32595), + 96: uint16(39304), + 97: uint16(24871), + 98: uint16(28291), + 99: uint16(22372), + 100: uint16(26118), + 101: uint16(25414), + 102: uint16(22256), + 103: uint16(25324), + 104: uint16(25193), + 105: uint16(24275), + 106: uint16(38420), + 107: uint16(22403), + 108: uint16(25289), + 109: uint16(21895), + 110: uint16(34593), + 111: uint16(33098), + 112: uint16(36771), + 113: uint16(21862), + 114: uint16(33713), + 115: uint16(26469), + 116: uint16(36182), + 117: uint16(34013), + 118: uint16(23146), + 119: uint16(26639), + 120: uint16(25318), + 121: uint16(31726), + 122: uint16(38417), + 123: uint16(20848), + 124: uint16(28572), + 125: uint16(35888), + 126: uint16(25597), + 127: uint16(35272), + 128: uint16(25042), + 129: uint16(32518), + 130: uint16(28866), + 131: uint16(28389), + 132: uint16(29701), + 133: uint16(27028), + 134: uint16(29436), + 135: uint16(24266), + 136: uint16(37070), + 137: uint16(26391), + 138: uint16(28010), + 139: uint16(25438), + 140: uint16(21171), + 141: uint16(29282), + 142: uint16(32769), + 143: uint16(20332), + 144: uint16(23013), + 145: uint16(37226), + 146: uint16(28889), + 147: uint16(28061), + 148: uint16(21202), + 149: uint16(20048), + 150: uint16(38647), + 151: uint16(38253), + 152: uint16(34174), + 153: uint16(30922), + 154: uint16(32047), + 155: uint16(20769), + 156: uint16(22418), + 157: uint16(25794), + 158: uint16(32907), + 159: uint16(31867), + 160: uint16(27882), + 161: uint16(26865), + 162: uint16(26974), + 163: uint16(20919), + 164: uint16(21400), + 165: uint16(26792), + 166: uint16(29313), + 167: uint16(40654), + 168: uint16(31729), + 169: uint16(29432), + 170: uint16(31163), + 171: uint16(28435), + 172: uint16(29702), + 173: uint16(26446), + 174: uint16(37324), + 175: uint16(40100), + 176: uint16(31036), + 177: uint16(33673), + 178: uint16(33620), + 179: uint16(21519), + 180: uint16(26647), + 181: uint16(20029), + 182: uint16(21385), + 183: uint16(21169), + 184: uint16(30782), + 185: uint16(21382), + 186: uint16(21033), + 187: uint16(20616), + 188: uint16(20363), + 189: uint16(20432), + }, + 64: { + 0: uint16(32598), + 1: uint16(32601), + 2: uint16(32603), + 3: uint16(32604), + 4: uint16(32605), + 5: uint16(32606), + 6: uint16(32608), + 7: uint16(32611), + 8: uint16(32612), + 9: uint16(32613), + 10: uint16(32614), + 11: uint16(32615), + 12: uint16(32619), + 13: uint16(32620), + 14: uint16(32621), + 15: uint16(32623), + 16: uint16(32624), + 17: uint16(32627), + 18: uint16(32629), + 19: uint16(32630), + 20: uint16(32631), + 21: uint16(32632), + 22: uint16(32634), + 23: uint16(32635), + 24: uint16(32636), + 25: uint16(32637), + 26: uint16(32639), + 27: uint16(32640), + 28: uint16(32642), + 29: uint16(32643), + 30: uint16(32644), + 31: uint16(32645), + 32: uint16(32646), + 33: uint16(32647), + 34: uint16(32648), + 35: uint16(32649), + 36: uint16(32651), + 37: uint16(32653), + 38: uint16(32655), + 39: uint16(32656), + 40: uint16(32657), + 41: uint16(32658), + 42: uint16(32659), + 43: uint16(32661), + 44: uint16(32662), + 45: uint16(32663), + 46: uint16(32664), + 47: uint16(32665), + 48: uint16(32667), + 49: uint16(32668), + 50: uint16(32672), + 51: uint16(32674), + 52: uint16(32675), + 53: uint16(32677), + 54: uint16(32678), + 55: uint16(32680), + 56: uint16(32681), + 57: uint16(32682), + 58: uint16(32683), + 59: uint16(32684), + 60: uint16(32685), + 61: uint16(32686), + 62: uint16(32689), + 63: uint16(32691), + 64: uint16(32692), + 65: uint16(32693), + 66: uint16(32694), + 67: uint16(32695), + 68: uint16(32698), + 69: uint16(32699), + 70: uint16(32702), + 71: uint16(32704), + 72: uint16(32706), + 73: uint16(32707), + 74: uint16(32708), + 75: uint16(32710), + 76: uint16(32711), + 77: uint16(32712), + 78: uint16(32713), + 79: uint16(32715), + 80: uint16(32717), + 81: uint16(32719), + 82: uint16(32720), + 83: uint16(32721), + 84: uint16(32722), + 85: uint16(32723), + 86: uint16(32726), + 87: uint16(32727), + 88: uint16(32729), + 89: uint16(32730), + 90: uint16(32731), + 91: uint16(32732), + 92: uint16(32733), + 93: uint16(32734), + 94: uint16(32738), + 95: uint16(32739), + 96: uint16(30178), + 97: uint16(31435), + 98: uint16(31890), + 99: uint16(27813), + 100: uint16(38582), + 101: uint16(21147), + 102: uint16(29827), + 103: uint16(21737), + 104: uint16(20457), + 105: uint16(32852), + 106: uint16(33714), + 107: uint16(36830), + 108: uint16(38256), + 109: uint16(24265), + 110: uint16(24604), + 111: uint16(28063), + 112: uint16(24088), + 113: uint16(25947), + 114: uint16(33080), + 115: uint16(38142), + 116: uint16(24651), + 117: uint16(28860), + 118: uint16(32451), + 119: uint16(31918), + 120: uint16(20937), + 121: uint16(26753), + 122: uint16(31921), + 123: uint16(33391), + 124: uint16(20004), + 125: uint16(36742), + 126: uint16(37327), + 127: uint16(26238), + 128: uint16(20142), + 129: uint16(35845), + 130: uint16(25769), + 131: uint16(32842), + 132: uint16(20698), + 133: uint16(30103), + 134: uint16(29134), + 135: uint16(23525), + 136: uint16(36797), + 137: uint16(28518), + 138: uint16(20102), + 139: uint16(25730), + 140: uint16(38243), + 141: uint16(24278), + 142: uint16(26009), + 143: uint16(21015), + 144: uint16(35010), + 145: uint16(28872), + 146: uint16(21155), + 147: uint16(29454), + 148: uint16(29747), + 149: uint16(26519), + 150: uint16(30967), + 151: uint16(38678), + 152: uint16(20020), + 153: uint16(37051), + 154: uint16(40158), + 155: uint16(28107), + 156: uint16(20955), + 157: uint16(36161), + 158: uint16(21533), + 159: uint16(25294), + 160: uint16(29618), + 161: uint16(33777), + 162: uint16(38646), + 163: uint16(40836), + 164: uint16(38083), + 165: uint16(20278), + 166: uint16(32666), + 167: uint16(20940), + 168: uint16(28789), + 169: uint16(38517), + 170: uint16(23725), + 171: uint16(39046), + 172: uint16(21478), + 173: uint16(20196), + 174: uint16(28316), + 175: uint16(29705), + 176: uint16(27060), + 177: uint16(30827), + 178: uint16(39311), + 179: uint16(30041), + 180: uint16(21016), + 181: uint16(30244), + 182: uint16(27969), + 183: uint16(26611), + 184: uint16(20845), + 185: uint16(40857), + 186: uint16(32843), + 187: uint16(21657), + 188: uint16(31548), + 189: uint16(31423), + }, + 65: { + 0: uint16(32740), + 1: uint16(32743), + 2: uint16(32744), + 3: uint16(32746), + 4: uint16(32747), + 5: uint16(32748), + 6: uint16(32749), + 7: uint16(32751), + 8: uint16(32754), + 9: uint16(32756), + 10: uint16(32757), + 11: uint16(32758), + 12: uint16(32759), + 13: uint16(32760), + 14: uint16(32761), + 15: uint16(32762), + 16: uint16(32765), + 17: uint16(32766), + 18: uint16(32767), + 19: uint16(32770), + 20: uint16(32775), + 21: uint16(32776), + 22: uint16(32777), + 23: uint16(32778), + 24: uint16(32782), + 25: uint16(32783), + 26: uint16(32785), + 27: uint16(32787), + 28: uint16(32794), + 29: uint16(32795), + 30: uint16(32797), + 31: uint16(32798), + 32: uint16(32799), + 33: uint16(32801), + 34: uint16(32803), + 35: uint16(32804), + 36: uint16(32811), + 37: uint16(32812), + 38: uint16(32813), + 39: uint16(32814), + 40: uint16(32815), + 41: uint16(32816), + 42: uint16(32818), + 43: uint16(32820), + 44: uint16(32825), + 45: uint16(32826), + 46: uint16(32828), + 47: uint16(32830), + 48: uint16(32832), + 49: uint16(32833), + 50: uint16(32836), + 51: uint16(32837), + 52: uint16(32839), + 53: uint16(32840), + 54: uint16(32841), + 55: uint16(32846), + 56: uint16(32847), + 57: uint16(32848), + 58: uint16(32849), + 59: uint16(32851), + 60: uint16(32853), + 61: uint16(32854), + 62: uint16(32855), + 63: uint16(32857), + 64: uint16(32859), + 65: uint16(32860), + 66: uint16(32861), + 67: uint16(32862), + 68: uint16(32863), + 69: uint16(32864), + 70: uint16(32865), + 71: uint16(32866), + 72: uint16(32867), + 73: uint16(32868), + 74: uint16(32869), + 75: uint16(32870), + 76: uint16(32871), + 77: uint16(32872), + 78: uint16(32875), + 79: uint16(32876), + 80: uint16(32877), + 81: uint16(32878), + 82: uint16(32879), + 83: uint16(32880), + 84: uint16(32882), + 85: uint16(32883), + 86: uint16(32884), + 87: uint16(32885), + 88: uint16(32886), + 89: uint16(32887), + 90: uint16(32888), + 91: uint16(32889), + 92: uint16(32890), + 93: uint16(32891), + 94: uint16(32892), + 95: uint16(32893), + 96: uint16(38534), + 97: uint16(22404), + 98: uint16(25314), + 99: uint16(38471), + 100: uint16(27004), + 101: uint16(23044), + 102: uint16(25602), + 103: uint16(31699), + 104: uint16(28431), + 105: uint16(38475), + 106: uint16(33446), + 107: uint16(21346), + 108: uint16(39045), + 109: uint16(24208), + 110: uint16(28809), + 111: uint16(25523), + 112: uint16(21348), + 113: uint16(34383), + 114: uint16(40065), + 115: uint16(40595), + 116: uint16(30860), + 117: uint16(38706), + 118: uint16(36335), + 119: uint16(36162), + 120: uint16(40575), + 121: uint16(28510), + 122: uint16(31108), + 123: uint16(24405), + 124: uint16(38470), + 125: uint16(25134), + 126: uint16(39540), + 127: uint16(21525), + 128: uint16(38109), + 129: uint16(20387), + 130: uint16(26053), + 131: uint16(23653), + 132: uint16(23649), + 133: uint16(32533), + 134: uint16(34385), + 135: uint16(27695), + 136: uint16(24459), + 137: uint16(29575), + 138: uint16(28388), + 139: uint16(32511), + 140: uint16(23782), + 141: uint16(25371), + 142: uint16(23402), + 143: uint16(28390), + 144: uint16(21365), + 145: uint16(20081), + 146: uint16(25504), + 147: uint16(30053), + 148: uint16(25249), + 149: uint16(36718), + 150: uint16(20262), + 151: uint16(20177), + 152: uint16(27814), + 153: uint16(32438), + 154: uint16(35770), + 155: uint16(33821), + 156: uint16(34746), + 157: uint16(32599), + 158: uint16(36923), + 159: uint16(38179), + 160: uint16(31657), + 161: uint16(39585), + 162: uint16(35064), + 163: uint16(33853), + 164: uint16(27931), + 165: uint16(39558), + 166: uint16(32476), + 167: uint16(22920), + 168: uint16(40635), + 169: uint16(29595), + 170: uint16(30721), + 171: uint16(34434), + 172: uint16(39532), + 173: uint16(39554), + 174: uint16(22043), + 175: uint16(21527), + 176: uint16(22475), + 177: uint16(20080), + 178: uint16(40614), + 179: uint16(21334), + 180: uint16(36808), + 181: uint16(33033), + 182: uint16(30610), + 183: uint16(39314), + 184: uint16(34542), + 185: uint16(28385), + 186: uint16(34067), + 187: uint16(26364), + 188: uint16(24930), + 189: uint16(28459), + }, + 66: { + 0: uint16(32894), + 1: uint16(32897), + 2: uint16(32898), + 3: uint16(32901), + 4: uint16(32904), + 5: uint16(32906), + 6: uint16(32909), + 7: uint16(32910), + 8: uint16(32911), + 9: uint16(32912), + 10: uint16(32913), + 11: uint16(32914), + 12: uint16(32916), + 13: uint16(32917), + 14: uint16(32919), + 15: uint16(32921), + 16: uint16(32926), + 17: uint16(32931), + 18: uint16(32934), + 19: uint16(32935), + 20: uint16(32936), + 21: uint16(32940), + 22: uint16(32944), + 23: uint16(32947), + 24: uint16(32949), + 25: uint16(32950), + 26: uint16(32952), + 27: uint16(32953), + 28: uint16(32955), + 29: uint16(32965), + 30: uint16(32967), + 31: uint16(32968), + 32: uint16(32969), + 33: uint16(32970), + 34: uint16(32971), + 35: uint16(32975), + 36: uint16(32976), + 37: uint16(32977), + 38: uint16(32978), + 39: uint16(32979), + 40: uint16(32980), + 41: uint16(32981), + 42: uint16(32984), + 43: uint16(32991), + 44: uint16(32992), + 45: uint16(32994), + 46: uint16(32995), + 47: uint16(32998), + 48: uint16(33006), + 49: uint16(33013), + 50: uint16(33015), + 51: uint16(33017), + 52: uint16(33019), + 53: uint16(33022), + 54: uint16(33023), + 55: uint16(33024), + 56: uint16(33025), + 57: uint16(33027), + 58: uint16(33028), + 59: uint16(33029), + 60: uint16(33031), + 61: uint16(33032), + 62: uint16(33035), + 63: uint16(33036), + 64: uint16(33045), + 65: uint16(33047), + 66: uint16(33049), + 67: uint16(33051), + 68: uint16(33052), + 69: uint16(33053), + 70: uint16(33055), + 71: uint16(33056), + 72: uint16(33057), + 73: uint16(33058), + 74: uint16(33059), + 75: uint16(33060), + 76: uint16(33061), + 77: uint16(33062), + 78: uint16(33063), + 79: uint16(33064), + 80: uint16(33065), + 81: uint16(33066), + 82: uint16(33067), + 83: uint16(33069), + 84: uint16(33070), + 85: uint16(33072), + 86: uint16(33075), + 87: uint16(33076), + 88: uint16(33077), + 89: uint16(33079), + 90: uint16(33081), + 91: uint16(33082), + 92: uint16(33083), + 93: uint16(33084), + 94: uint16(33085), + 95: uint16(33087), + 96: uint16(35881), + 97: uint16(33426), + 98: uint16(33579), + 99: uint16(30450), + 100: uint16(27667), + 101: uint16(24537), + 102: uint16(33725), + 103: uint16(29483), + 104: uint16(33541), + 105: uint16(38170), + 106: uint16(27611), + 107: uint16(30683), + 108: uint16(38086), + 109: uint16(21359), + 110: uint16(33538), + 111: uint16(20882), + 112: uint16(24125), + 113: uint16(35980), + 114: uint16(36152), + 115: uint16(20040), + 116: uint16(29611), + 117: uint16(26522), + 118: uint16(26757), + 119: uint16(37238), + 120: uint16(38665), + 121: uint16(29028), + 122: uint16(27809), + 123: uint16(30473), + 124: uint16(23186), + 125: uint16(38209), + 126: uint16(27599), + 127: uint16(32654), + 128: uint16(26151), + 129: uint16(23504), + 130: uint16(22969), + 131: uint16(23194), + 132: uint16(38376), + 133: uint16(38391), + 134: uint16(20204), + 135: uint16(33804), + 136: uint16(33945), + 137: uint16(27308), + 138: uint16(30431), + 139: uint16(38192), + 140: uint16(29467), + 141: uint16(26790), + 142: uint16(23391), + 143: uint16(30511), + 144: uint16(37274), + 145: uint16(38753), + 146: uint16(31964), + 147: uint16(36855), + 148: uint16(35868), + 149: uint16(24357), + 150: uint16(31859), + 151: uint16(31192), + 152: uint16(35269), + 153: uint16(27852), + 154: uint16(34588), + 155: uint16(23494), + 156: uint16(24130), + 157: uint16(26825), + 158: uint16(30496), + 159: uint16(32501), + 160: uint16(20885), + 161: uint16(20813), + 162: uint16(21193), + 163: uint16(23081), + 164: uint16(32517), + 165: uint16(38754), + 166: uint16(33495), + 167: uint16(25551), + 168: uint16(30596), + 169: uint16(34256), + 170: uint16(31186), + 171: uint16(28218), + 172: uint16(24217), + 173: uint16(22937), + 174: uint16(34065), + 175: uint16(28781), + 176: uint16(27665), + 177: uint16(25279), + 178: uint16(30399), + 179: uint16(25935), + 180: uint16(24751), + 181: uint16(38397), + 182: uint16(26126), + 183: uint16(34719), + 184: uint16(40483), + 185: uint16(38125), + 186: uint16(21517), + 187: uint16(21629), + 188: uint16(35884), + 189: uint16(25720), + }, + 67: { + 0: uint16(33088), + 1: uint16(33089), + 2: uint16(33090), + 3: uint16(33091), + 4: uint16(33092), + 5: uint16(33093), + 6: uint16(33095), + 7: uint16(33097), + 8: uint16(33101), + 9: uint16(33102), + 10: uint16(33103), + 11: uint16(33106), + 12: uint16(33110), + 13: uint16(33111), + 14: uint16(33112), + 15: uint16(33115), + 16: uint16(33116), + 17: uint16(33117), + 18: uint16(33118), + 19: uint16(33119), + 20: uint16(33121), + 21: uint16(33122), + 22: uint16(33123), + 23: uint16(33124), + 24: uint16(33126), + 25: uint16(33128), + 26: uint16(33130), + 27: uint16(33131), + 28: uint16(33132), + 29: uint16(33135), + 30: uint16(33138), + 31: uint16(33139), + 32: uint16(33141), + 33: uint16(33142), + 34: uint16(33143), + 35: uint16(33144), + 36: uint16(33153), + 37: uint16(33155), + 38: uint16(33156), + 39: uint16(33157), + 40: uint16(33158), + 41: uint16(33159), + 42: uint16(33161), + 43: uint16(33163), + 44: uint16(33164), + 45: uint16(33165), + 46: uint16(33166), + 47: uint16(33168), + 48: uint16(33170), + 49: uint16(33171), + 50: uint16(33172), + 51: uint16(33173), + 52: uint16(33174), + 53: uint16(33175), + 54: uint16(33177), + 55: uint16(33178), + 56: uint16(33182), + 57: uint16(33183), + 58: uint16(33184), + 59: uint16(33185), + 60: uint16(33186), + 61: uint16(33188), + 62: uint16(33189), + 63: uint16(33191), + 64: uint16(33193), + 65: uint16(33195), + 66: uint16(33196), + 67: uint16(33197), + 68: uint16(33198), + 69: uint16(33199), + 70: uint16(33200), + 71: uint16(33201), + 72: uint16(33202), + 73: uint16(33204), + 74: uint16(33205), + 75: uint16(33206), + 76: uint16(33207), + 77: uint16(33208), + 78: uint16(33209), + 79: uint16(33212), + 80: uint16(33213), + 81: uint16(33214), + 82: uint16(33215), + 83: uint16(33220), + 84: uint16(33221), + 85: uint16(33223), + 86: uint16(33224), + 87: uint16(33225), + 88: uint16(33227), + 89: uint16(33229), + 90: uint16(33230), + 91: uint16(33231), + 92: uint16(33232), + 93: uint16(33233), + 94: uint16(33234), + 95: uint16(33235), + 96: uint16(25721), + 97: uint16(34321), + 98: uint16(27169), + 99: uint16(33180), + 100: uint16(30952), + 101: uint16(25705), + 102: uint16(39764), + 103: uint16(25273), + 104: uint16(26411), + 105: uint16(33707), + 106: uint16(22696), + 107: uint16(40664), + 108: uint16(27819), + 109: uint16(28448), + 110: uint16(23518), + 111: uint16(38476), + 112: uint16(35851), + 113: uint16(29279), + 114: uint16(26576), + 115: uint16(25287), + 116: uint16(29281), + 117: uint16(20137), + 118: uint16(22982), + 119: uint16(27597), + 120: uint16(22675), + 121: uint16(26286), + 122: uint16(24149), + 123: uint16(21215), + 124: uint16(24917), + 125: uint16(26408), + 126: uint16(30446), + 127: uint16(30566), + 128: uint16(29287), + 129: uint16(31302), + 130: uint16(25343), + 131: uint16(21738), + 132: uint16(21584), + 133: uint16(38048), + 134: uint16(37027), + 135: uint16(23068), + 136: uint16(32435), + 137: uint16(27670), + 138: uint16(20035), + 139: uint16(22902), + 140: uint16(32784), + 141: uint16(22856), + 142: uint16(21335), + 143: uint16(30007), + 144: uint16(38590), + 145: uint16(22218), + 146: uint16(25376), + 147: uint16(33041), + 148: uint16(24700), + 149: uint16(38393), + 150: uint16(28118), + 151: uint16(21602), + 152: uint16(39297), + 153: uint16(20869), + 154: uint16(23273), + 155: uint16(33021), + 156: uint16(22958), + 157: uint16(38675), + 158: uint16(20522), + 159: uint16(27877), + 160: uint16(23612), + 161: uint16(25311), + 162: uint16(20320), + 163: uint16(21311), + 164: uint16(33147), + 165: uint16(36870), + 166: uint16(28346), + 167: uint16(34091), + 168: uint16(25288), + 169: uint16(24180), + 170: uint16(30910), + 171: uint16(25781), + 172: uint16(25467), + 173: uint16(24565), + 174: uint16(23064), + 175: uint16(37247), + 176: uint16(40479), + 177: uint16(23615), + 178: uint16(25423), + 179: uint16(32834), + 180: uint16(23421), + 181: uint16(21870), + 182: uint16(38218), + 183: uint16(38221), + 184: uint16(28037), + 185: uint16(24744), + 186: uint16(26592), + 187: uint16(29406), + 188: uint16(20957), + 189: uint16(23425), + }, + 68: { + 0: uint16(33236), + 1: uint16(33237), + 2: uint16(33238), + 3: uint16(33239), + 4: uint16(33240), + 5: uint16(33241), + 6: uint16(33242), + 7: uint16(33243), + 8: uint16(33244), + 9: uint16(33245), + 10: uint16(33246), + 11: uint16(33247), + 12: uint16(33248), + 13: uint16(33249), + 14: uint16(33250), + 15: uint16(33252), + 16: uint16(33253), + 17: uint16(33254), + 18: uint16(33256), + 19: uint16(33257), + 20: uint16(33259), + 21: uint16(33262), + 22: uint16(33263), + 23: uint16(33264), + 24: uint16(33265), + 25: uint16(33266), + 26: uint16(33269), + 27: uint16(33270), + 28: uint16(33271), + 29: uint16(33272), + 30: uint16(33273), + 31: uint16(33274), + 32: uint16(33277), + 33: uint16(33279), + 34: uint16(33283), + 35: uint16(33287), + 36: uint16(33288), + 37: uint16(33289), + 38: uint16(33290), + 39: uint16(33291), + 40: uint16(33294), + 41: uint16(33295), + 42: uint16(33297), + 43: uint16(33299), + 44: uint16(33301), + 45: uint16(33302), + 46: uint16(33303), + 47: uint16(33304), + 48: uint16(33305), + 49: uint16(33306), + 50: uint16(33309), + 51: uint16(33312), + 52: uint16(33316), + 53: uint16(33317), + 54: uint16(33318), + 55: uint16(33319), + 56: uint16(33321), + 57: uint16(33326), + 58: uint16(33330), + 59: uint16(33338), + 60: uint16(33340), + 61: uint16(33341), + 62: uint16(33343), + 63: uint16(33344), + 64: uint16(33345), + 65: uint16(33346), + 66: uint16(33347), + 67: uint16(33349), + 68: uint16(33350), + 69: uint16(33352), + 70: uint16(33354), + 71: uint16(33356), + 72: uint16(33357), + 73: uint16(33358), + 74: uint16(33360), + 75: uint16(33361), + 76: uint16(33362), + 77: uint16(33363), + 78: uint16(33364), + 79: uint16(33365), + 80: uint16(33366), + 81: uint16(33367), + 82: uint16(33369), + 83: uint16(33371), + 84: uint16(33372), + 85: uint16(33373), + 86: uint16(33374), + 87: uint16(33376), + 88: uint16(33377), + 89: uint16(33378), + 90: uint16(33379), + 91: uint16(33380), + 92: uint16(33381), + 93: uint16(33382), + 94: uint16(33383), + 95: uint16(33385), + 96: uint16(25319), + 97: uint16(27870), + 98: uint16(29275), + 99: uint16(25197), + 100: uint16(38062), + 101: uint16(32445), + 102: uint16(33043), + 103: uint16(27987), + 104: uint16(20892), + 105: uint16(24324), + 106: uint16(22900), + 107: uint16(21162), + 108: uint16(24594), + 109: uint16(22899), + 110: uint16(26262), + 111: uint16(34384), + 112: uint16(30111), + 113: uint16(25386), + 114: uint16(25062), + 115: uint16(31983), + 116: uint16(35834), + 117: uint16(21734), + 118: uint16(27431), + 119: uint16(40485), + 120: uint16(27572), + 121: uint16(34261), + 122: uint16(21589), + 123: uint16(20598), + 124: uint16(27812), + 125: uint16(21866), + 126: uint16(36276), + 127: uint16(29228), + 128: uint16(24085), + 129: uint16(24597), + 130: uint16(29750), + 131: uint16(25293), + 132: uint16(25490), + 133: uint16(29260), + 134: uint16(24472), + 135: uint16(28227), + 136: uint16(27966), + 137: uint16(25856), + 138: uint16(28504), + 139: uint16(30424), + 140: uint16(30928), + 141: uint16(30460), + 142: uint16(30036), + 143: uint16(21028), + 144: uint16(21467), + 145: uint16(20051), + 146: uint16(24222), + 147: uint16(26049), + 148: uint16(32810), + 149: uint16(32982), + 150: uint16(25243), + 151: uint16(21638), + 152: uint16(21032), + 153: uint16(28846), + 154: uint16(34957), + 155: uint16(36305), + 156: uint16(27873), + 157: uint16(21624), + 158: uint16(32986), + 159: uint16(22521), + 160: uint16(35060), + 161: uint16(36180), + 162: uint16(38506), + 163: uint16(37197), + 164: uint16(20329), + 165: uint16(27803), + 166: uint16(21943), + 167: uint16(30406), + 168: uint16(30768), + 169: uint16(25256), + 170: uint16(28921), + 171: uint16(28558), + 172: uint16(24429), + 173: uint16(34028), + 174: uint16(26842), + 175: uint16(30844), + 176: uint16(31735), + 177: uint16(33192), + 178: uint16(26379), + 179: uint16(40527), + 180: uint16(25447), + 181: uint16(30896), + 182: uint16(22383), + 183: uint16(30738), + 184: uint16(38713), + 185: uint16(25209), + 186: uint16(25259), + 187: uint16(21128), + 188: uint16(29749), + 189: uint16(27607), + }, + 69: { + 0: uint16(33386), + 1: uint16(33387), + 2: uint16(33388), + 3: uint16(33389), + 4: uint16(33393), + 5: uint16(33397), + 6: uint16(33398), + 7: uint16(33399), + 8: uint16(33400), + 9: uint16(33403), + 10: uint16(33404), + 11: uint16(33408), + 12: uint16(33409), + 13: uint16(33411), + 14: uint16(33413), + 15: uint16(33414), + 16: uint16(33415), + 17: uint16(33417), + 18: uint16(33420), + 19: uint16(33424), + 20: uint16(33427), + 21: uint16(33428), + 22: uint16(33429), + 23: uint16(33430), + 24: uint16(33434), + 25: uint16(33435), + 26: uint16(33438), + 27: uint16(33440), + 28: uint16(33442), + 29: uint16(33443), + 30: uint16(33447), + 31: uint16(33458), + 32: uint16(33461), + 33: uint16(33462), + 34: uint16(33466), + 35: uint16(33467), + 36: uint16(33468), + 37: uint16(33471), + 38: uint16(33472), + 39: uint16(33474), + 40: uint16(33475), + 41: uint16(33477), + 42: uint16(33478), + 43: uint16(33481), + 44: uint16(33488), + 45: uint16(33494), + 46: uint16(33497), + 47: uint16(33498), + 48: uint16(33501), + 49: uint16(33506), + 50: uint16(33511), + 51: uint16(33512), + 52: uint16(33513), + 53: uint16(33514), + 54: uint16(33516), + 55: uint16(33517), + 56: uint16(33518), + 57: uint16(33520), + 58: uint16(33522), + 59: uint16(33523), + 60: uint16(33525), + 61: uint16(33526), + 62: uint16(33528), + 63: uint16(33530), + 64: uint16(33532), + 65: uint16(33533), + 66: uint16(33534), + 67: uint16(33535), + 68: uint16(33536), + 69: uint16(33546), + 70: uint16(33547), + 71: uint16(33549), + 72: uint16(33552), + 73: uint16(33554), + 74: uint16(33555), + 75: uint16(33558), + 76: uint16(33560), + 77: uint16(33561), + 78: uint16(33565), + 79: uint16(33566), + 80: uint16(33567), + 81: uint16(33568), + 82: uint16(33569), + 83: uint16(33570), + 84: uint16(33571), + 85: uint16(33572), + 86: uint16(33573), + 87: uint16(33574), + 88: uint16(33577), + 89: uint16(33578), + 90: uint16(33582), + 91: uint16(33584), + 92: uint16(33586), + 93: uint16(33591), + 94: uint16(33595), + 95: uint16(33597), + 96: uint16(21860), + 97: uint16(33086), + 98: uint16(30130), + 99: uint16(30382), + 100: uint16(21305), + 101: uint16(30174), + 102: uint16(20731), + 103: uint16(23617), + 104: uint16(35692), + 105: uint16(31687), + 106: uint16(20559), + 107: uint16(29255), + 108: uint16(39575), + 109: uint16(39128), + 110: uint16(28418), + 111: uint16(29922), + 112: uint16(31080), + 113: uint16(25735), + 114: uint16(30629), + 115: uint16(25340), + 116: uint16(39057), + 117: uint16(36139), + 118: uint16(21697), + 119: uint16(32856), + 120: uint16(20050), + 121: uint16(22378), + 122: uint16(33529), + 123: uint16(33805), + 124: uint16(24179), + 125: uint16(20973), + 126: uint16(29942), + 127: uint16(35780), + 128: uint16(23631), + 129: uint16(22369), + 130: uint16(27900), + 131: uint16(39047), + 132: uint16(23110), + 133: uint16(30772), + 134: uint16(39748), + 135: uint16(36843), + 136: uint16(31893), + 137: uint16(21078), + 138: uint16(25169), + 139: uint16(38138), + 140: uint16(20166), + 141: uint16(33670), + 142: uint16(33889), + 143: uint16(33769), + 144: uint16(33970), + 145: uint16(22484), + 146: uint16(26420), + 147: uint16(22275), + 148: uint16(26222), + 149: uint16(28006), + 150: uint16(35889), + 151: uint16(26333), + 152: uint16(28689), + 153: uint16(26399), + 154: uint16(27450), + 155: uint16(26646), + 156: uint16(25114), + 157: uint16(22971), + 158: uint16(19971), + 159: uint16(20932), + 160: uint16(28422), + 161: uint16(26578), + 162: uint16(27791), + 163: uint16(20854), + 164: uint16(26827), + 165: uint16(22855), + 166: uint16(27495), + 167: uint16(30054), + 168: uint16(23822), + 169: uint16(33040), + 170: uint16(40784), + 171: uint16(26071), + 172: uint16(31048), + 173: uint16(31041), + 174: uint16(39569), + 175: uint16(36215), + 176: uint16(23682), + 177: uint16(20062), + 178: uint16(20225), + 179: uint16(21551), + 180: uint16(22865), + 181: uint16(30732), + 182: uint16(22120), + 183: uint16(27668), + 184: uint16(36804), + 185: uint16(24323), + 186: uint16(27773), + 187: uint16(27875), + 188: uint16(35755), + 189: uint16(25488), + }, + 70: { + 0: uint16(33598), + 1: uint16(33599), + 2: uint16(33601), + 3: uint16(33602), + 4: uint16(33604), + 5: uint16(33605), + 6: uint16(33608), + 7: uint16(33610), + 8: uint16(33611), + 9: uint16(33612), + 10: uint16(33613), + 11: uint16(33614), + 12: uint16(33619), + 13: uint16(33621), + 14: uint16(33622), + 15: uint16(33623), + 16: uint16(33624), + 17: uint16(33625), + 18: uint16(33629), + 19: uint16(33634), + 20: uint16(33648), + 21: uint16(33649), + 22: uint16(33650), + 23: uint16(33651), + 24: uint16(33652), + 25: uint16(33653), + 26: uint16(33654), + 27: uint16(33657), + 28: uint16(33658), + 29: uint16(33662), + 30: uint16(33663), + 31: uint16(33664), + 32: uint16(33665), + 33: uint16(33666), + 34: uint16(33667), + 35: uint16(33668), + 36: uint16(33671), + 37: uint16(33672), + 38: uint16(33674), + 39: uint16(33675), + 40: uint16(33676), + 41: uint16(33677), + 42: uint16(33679), + 43: uint16(33680), + 44: uint16(33681), + 45: uint16(33684), + 46: uint16(33685), + 47: uint16(33686), + 48: uint16(33687), + 49: uint16(33689), + 50: uint16(33690), + 51: uint16(33693), + 52: uint16(33695), + 53: uint16(33697), + 54: uint16(33698), + 55: uint16(33699), + 56: uint16(33700), + 57: uint16(33701), + 58: uint16(33702), + 59: uint16(33703), + 60: uint16(33708), + 61: uint16(33709), + 62: uint16(33710), + 63: uint16(33711), + 64: uint16(33717), + 65: uint16(33723), + 66: uint16(33726), + 67: uint16(33727), + 68: uint16(33730), + 69: uint16(33731), + 70: uint16(33732), + 71: uint16(33734), + 72: uint16(33736), + 73: uint16(33737), + 74: uint16(33739), + 75: uint16(33741), + 76: uint16(33742), + 77: uint16(33744), + 78: uint16(33745), + 79: uint16(33746), + 80: uint16(33747), + 81: uint16(33749), + 82: uint16(33751), + 83: uint16(33753), + 84: uint16(33754), + 85: uint16(33755), + 86: uint16(33758), + 87: uint16(33762), + 88: uint16(33763), + 89: uint16(33764), + 90: uint16(33766), + 91: uint16(33767), + 92: uint16(33768), + 93: uint16(33771), + 94: uint16(33772), + 95: uint16(33773), + 96: uint16(24688), + 97: uint16(27965), + 98: uint16(29301), + 99: uint16(25190), + 100: uint16(38030), + 101: uint16(38085), + 102: uint16(21315), + 103: uint16(36801), + 104: uint16(31614), + 105: uint16(20191), + 106: uint16(35878), + 107: uint16(20094), + 108: uint16(40660), + 109: uint16(38065), + 110: uint16(38067), + 111: uint16(21069), + 112: uint16(28508), + 113: uint16(36963), + 114: uint16(27973), + 115: uint16(35892), + 116: uint16(22545), + 117: uint16(23884), + 118: uint16(27424), + 119: uint16(27465), + 120: uint16(26538), + 121: uint16(21595), + 122: uint16(33108), + 123: uint16(32652), + 124: uint16(22681), + 125: uint16(34103), + 126: uint16(24378), + 127: uint16(25250), + 128: uint16(27207), + 129: uint16(38201), + 130: uint16(25970), + 131: uint16(24708), + 132: uint16(26725), + 133: uint16(30631), + 134: uint16(20052), + 135: uint16(20392), + 136: uint16(24039), + 137: uint16(38808), + 138: uint16(25772), + 139: uint16(32728), + 140: uint16(23789), + 141: uint16(20431), + 142: uint16(31373), + 143: uint16(20999), + 144: uint16(33540), + 145: uint16(19988), + 146: uint16(24623), + 147: uint16(31363), + 148: uint16(38054), + 149: uint16(20405), + 150: uint16(20146), + 151: uint16(31206), + 152: uint16(29748), + 153: uint16(21220), + 154: uint16(33465), + 155: uint16(25810), + 156: uint16(31165), + 157: uint16(23517), + 158: uint16(27777), + 159: uint16(38738), + 160: uint16(36731), + 161: uint16(27682), + 162: uint16(20542), + 163: uint16(21375), + 164: uint16(28165), + 165: uint16(25806), + 166: uint16(26228), + 167: uint16(27696), + 168: uint16(24773), + 169: uint16(39031), + 170: uint16(35831), + 171: uint16(24198), + 172: uint16(29756), + 173: uint16(31351), + 174: uint16(31179), + 175: uint16(19992), + 176: uint16(37041), + 177: uint16(29699), + 178: uint16(27714), + 179: uint16(22234), + 180: uint16(37195), + 181: uint16(27845), + 182: uint16(36235), + 183: uint16(21306), + 184: uint16(34502), + 185: uint16(26354), + 186: uint16(36527), + 187: uint16(23624), + 188: uint16(39537), + 189: uint16(28192), + }, + 71: { + 0: uint16(33774), + 1: uint16(33775), + 2: uint16(33779), + 3: uint16(33780), + 4: uint16(33781), + 5: uint16(33782), + 6: uint16(33783), + 7: uint16(33786), + 8: uint16(33787), + 9: uint16(33788), + 10: uint16(33790), + 11: uint16(33791), + 12: uint16(33792), + 13: uint16(33794), + 14: uint16(33797), + 15: uint16(33799), + 16: uint16(33800), + 17: uint16(33801), + 18: uint16(33802), + 19: uint16(33808), + 20: uint16(33810), + 21: uint16(33811), + 22: uint16(33812), + 23: uint16(33813), + 24: uint16(33814), + 25: uint16(33815), + 26: uint16(33817), + 27: uint16(33818), + 28: uint16(33819), + 29: uint16(33822), + 30: uint16(33823), + 31: uint16(33824), + 32: uint16(33825), + 33: uint16(33826), + 34: uint16(33827), + 35: uint16(33833), + 36: uint16(33834), + 37: uint16(33835), + 38: uint16(33836), + 39: uint16(33837), + 40: uint16(33838), + 41: uint16(33839), + 42: uint16(33840), + 43: uint16(33842), + 44: uint16(33843), + 45: uint16(33844), + 46: uint16(33845), + 47: uint16(33846), + 48: uint16(33847), + 49: uint16(33849), + 50: uint16(33850), + 51: uint16(33851), + 52: uint16(33854), + 53: uint16(33855), + 54: uint16(33856), + 55: uint16(33857), + 56: uint16(33858), + 57: uint16(33859), + 58: uint16(33860), + 59: uint16(33861), + 60: uint16(33863), + 61: uint16(33864), + 62: uint16(33865), + 63: uint16(33866), + 64: uint16(33867), + 65: uint16(33868), + 66: uint16(33869), + 67: uint16(33870), + 68: uint16(33871), + 69: uint16(33872), + 70: uint16(33874), + 71: uint16(33875), + 72: uint16(33876), + 73: uint16(33877), + 74: uint16(33878), + 75: uint16(33880), + 76: uint16(33885), + 77: uint16(33886), + 78: uint16(33887), + 79: uint16(33888), + 80: uint16(33890), + 81: uint16(33892), + 82: uint16(33893), + 83: uint16(33894), + 84: uint16(33895), + 85: uint16(33896), + 86: uint16(33898), + 87: uint16(33902), + 88: uint16(33903), + 89: uint16(33904), + 90: uint16(33906), + 91: uint16(33908), + 92: uint16(33911), + 93: uint16(33913), + 94: uint16(33915), + 95: uint16(33916), + 96: uint16(21462), + 97: uint16(23094), + 98: uint16(40843), + 99: uint16(36259), + 100: uint16(21435), + 101: uint16(22280), + 102: uint16(39079), + 103: uint16(26435), + 104: uint16(37275), + 105: uint16(27849), + 106: uint16(20840), + 107: uint16(30154), + 108: uint16(25331), + 109: uint16(29356), + 110: uint16(21048), + 111: uint16(21149), + 112: uint16(32570), + 113: uint16(28820), + 114: uint16(30264), + 115: uint16(21364), + 116: uint16(40522), + 117: uint16(27063), + 118: uint16(30830), + 119: uint16(38592), + 120: uint16(35033), + 121: uint16(32676), + 122: uint16(28982), + 123: uint16(29123), + 124: uint16(20873), + 125: uint16(26579), + 126: uint16(29924), + 127: uint16(22756), + 128: uint16(25880), + 129: uint16(22199), + 130: uint16(35753), + 131: uint16(39286), + 132: uint16(25200), + 133: uint16(32469), + 134: uint16(24825), + 135: uint16(28909), + 136: uint16(22764), + 137: uint16(20161), + 138: uint16(20154), + 139: uint16(24525), + 140: uint16(38887), + 141: uint16(20219), + 142: uint16(35748), + 143: uint16(20995), + 144: uint16(22922), + 145: uint16(32427), + 146: uint16(25172), + 147: uint16(20173), + 148: uint16(26085), + 149: uint16(25102), + 150: uint16(33592), + 151: uint16(33993), + 152: uint16(33635), + 153: uint16(34701), + 154: uint16(29076), + 155: uint16(28342), + 156: uint16(23481), + 157: uint16(32466), + 158: uint16(20887), + 159: uint16(25545), + 160: uint16(26580), + 161: uint16(32905), + 162: uint16(33593), + 163: uint16(34837), + 164: uint16(20754), + 165: uint16(23418), + 166: uint16(22914), + 167: uint16(36785), + 168: uint16(20083), + 169: uint16(27741), + 170: uint16(20837), + 171: uint16(35109), + 172: uint16(36719), + 173: uint16(38446), + 174: uint16(34122), + 175: uint16(29790), + 176: uint16(38160), + 177: uint16(38384), + 178: uint16(28070), + 179: uint16(33509), + 180: uint16(24369), + 181: uint16(25746), + 182: uint16(27922), + 183: uint16(33832), + 184: uint16(33134), + 185: uint16(40131), + 186: uint16(22622), + 187: uint16(36187), + 188: uint16(19977), + 189: uint16(21441), + }, + 72: { + 0: uint16(33917), + 1: uint16(33918), + 2: uint16(33919), + 3: uint16(33920), + 4: uint16(33921), + 5: uint16(33923), + 6: uint16(33924), + 7: uint16(33925), + 8: uint16(33926), + 9: uint16(33930), + 10: uint16(33933), + 11: uint16(33935), + 12: uint16(33936), + 13: uint16(33937), + 14: uint16(33938), + 15: uint16(33939), + 16: uint16(33940), + 17: uint16(33941), + 18: uint16(33942), + 19: uint16(33944), + 20: uint16(33946), + 21: uint16(33947), + 22: uint16(33949), + 23: uint16(33950), + 24: uint16(33951), + 25: uint16(33952), + 26: uint16(33954), + 27: uint16(33955), + 28: uint16(33956), + 29: uint16(33957), + 30: uint16(33958), + 31: uint16(33959), + 32: uint16(33960), + 33: uint16(33961), + 34: uint16(33962), + 35: uint16(33963), + 36: uint16(33964), + 37: uint16(33965), + 38: uint16(33966), + 39: uint16(33968), + 40: uint16(33969), + 41: uint16(33971), + 42: uint16(33973), + 43: uint16(33974), + 44: uint16(33975), + 45: uint16(33979), + 46: uint16(33980), + 47: uint16(33982), + 48: uint16(33984), + 49: uint16(33986), + 50: uint16(33987), + 51: uint16(33989), + 52: uint16(33990), + 53: uint16(33991), + 54: uint16(33992), + 55: uint16(33995), + 56: uint16(33996), + 57: uint16(33998), + 58: uint16(33999), + 59: uint16(34002), + 60: uint16(34004), + 61: uint16(34005), + 62: uint16(34007), + 63: uint16(34008), + 64: uint16(34009), + 65: uint16(34010), + 66: uint16(34011), + 67: uint16(34012), + 68: uint16(34014), + 69: uint16(34017), + 70: uint16(34018), + 71: uint16(34020), + 72: uint16(34023), + 73: uint16(34024), + 74: uint16(34025), + 75: uint16(34026), + 76: uint16(34027), + 77: uint16(34029), + 78: uint16(34030), + 79: uint16(34031), + 80: uint16(34033), + 81: uint16(34034), + 82: uint16(34035), + 83: uint16(34036), + 84: uint16(34037), + 85: uint16(34038), + 86: uint16(34039), + 87: uint16(34040), + 88: uint16(34041), + 89: uint16(34042), + 90: uint16(34043), + 91: uint16(34045), + 92: uint16(34046), + 93: uint16(34048), + 94: uint16(34049), + 95: uint16(34050), + 96: uint16(20254), + 97: uint16(25955), + 98: uint16(26705), + 99: uint16(21971), + 100: uint16(20007), + 101: uint16(25620), + 102: uint16(39578), + 103: uint16(25195), + 104: uint16(23234), + 105: uint16(29791), + 106: uint16(33394), + 107: uint16(28073), + 108: uint16(26862), + 109: uint16(20711), + 110: uint16(33678), + 111: uint16(30722), + 112: uint16(26432), + 113: uint16(21049), + 114: uint16(27801), + 115: uint16(32433), + 116: uint16(20667), + 117: uint16(21861), + 118: uint16(29022), + 119: uint16(31579), + 120: uint16(26194), + 121: uint16(29642), + 122: uint16(33515), + 123: uint16(26441), + 124: uint16(23665), + 125: uint16(21024), + 126: uint16(29053), + 127: uint16(34923), + 128: uint16(38378), + 129: uint16(38485), + 130: uint16(25797), + 131: uint16(36193), + 132: uint16(33203), + 133: uint16(21892), + 134: uint16(27733), + 135: uint16(25159), + 136: uint16(32558), + 137: uint16(22674), + 138: uint16(20260), + 139: uint16(21830), + 140: uint16(36175), + 141: uint16(26188), + 142: uint16(19978), + 143: uint16(23578), + 144: uint16(35059), + 145: uint16(26786), + 146: uint16(25422), + 147: uint16(31245), + 148: uint16(28903), + 149: uint16(33421), + 150: uint16(21242), + 151: uint16(38902), + 152: uint16(23569), + 153: uint16(21736), + 154: uint16(37045), + 155: uint16(32461), + 156: uint16(22882), + 157: uint16(36170), + 158: uint16(34503), + 159: uint16(33292), + 160: uint16(33293), + 161: uint16(36198), + 162: uint16(25668), + 163: uint16(23556), + 164: uint16(24913), + 165: uint16(28041), + 166: uint16(31038), + 167: uint16(35774), + 168: uint16(30775), + 169: uint16(30003), + 170: uint16(21627), + 171: uint16(20280), + 172: uint16(36523), + 173: uint16(28145), + 174: uint16(23072), + 175: uint16(32453), + 176: uint16(31070), + 177: uint16(27784), + 178: uint16(23457), + 179: uint16(23158), + 180: uint16(29978), + 181: uint16(32958), + 182: uint16(24910), + 183: uint16(28183), + 184: uint16(22768), + 185: uint16(29983), + 186: uint16(29989), + 187: uint16(29298), + 188: uint16(21319), + 189: uint16(32499), + }, + 73: { + 0: uint16(34051), + 1: uint16(34052), + 2: uint16(34053), + 3: uint16(34054), + 4: uint16(34055), + 5: uint16(34056), + 6: uint16(34057), + 7: uint16(34058), + 8: uint16(34059), + 9: uint16(34061), + 10: uint16(34062), + 11: uint16(34063), + 12: uint16(34064), + 13: uint16(34066), + 14: uint16(34068), + 15: uint16(34069), + 16: uint16(34070), + 17: uint16(34072), + 18: uint16(34073), + 19: uint16(34075), + 20: uint16(34076), + 21: uint16(34077), + 22: uint16(34078), + 23: uint16(34080), + 24: uint16(34082), + 25: uint16(34083), + 26: uint16(34084), + 27: uint16(34085), + 28: uint16(34086), + 29: uint16(34087), + 30: uint16(34088), + 31: uint16(34089), + 32: uint16(34090), + 33: uint16(34093), + 34: uint16(34094), + 35: uint16(34095), + 36: uint16(34096), + 37: uint16(34097), + 38: uint16(34098), + 39: uint16(34099), + 40: uint16(34100), + 41: uint16(34101), + 42: uint16(34102), + 43: uint16(34110), + 44: uint16(34111), + 45: uint16(34112), + 46: uint16(34113), + 47: uint16(34114), + 48: uint16(34116), + 49: uint16(34117), + 50: uint16(34118), + 51: uint16(34119), + 52: uint16(34123), + 53: uint16(34124), + 54: uint16(34125), + 55: uint16(34126), + 56: uint16(34127), + 57: uint16(34128), + 58: uint16(34129), + 59: uint16(34130), + 60: uint16(34131), + 61: uint16(34132), + 62: uint16(34133), + 63: uint16(34135), + 64: uint16(34136), + 65: uint16(34138), + 66: uint16(34139), + 67: uint16(34140), + 68: uint16(34141), + 69: uint16(34143), + 70: uint16(34144), + 71: uint16(34145), + 72: uint16(34146), + 73: uint16(34147), + 74: uint16(34149), + 75: uint16(34150), + 76: uint16(34151), + 77: uint16(34153), + 78: uint16(34154), + 79: uint16(34155), + 80: uint16(34156), + 81: uint16(34157), + 82: uint16(34158), + 83: uint16(34159), + 84: uint16(34160), + 85: uint16(34161), + 86: uint16(34163), + 87: uint16(34165), + 88: uint16(34166), + 89: uint16(34167), + 90: uint16(34168), + 91: uint16(34172), + 92: uint16(34173), + 93: uint16(34175), + 94: uint16(34176), + 95: uint16(34177), + 96: uint16(30465), + 97: uint16(30427), + 98: uint16(21097), + 99: uint16(32988), + 100: uint16(22307), + 101: uint16(24072), + 102: uint16(22833), + 103: uint16(29422), + 104: uint16(26045), + 105: uint16(28287), + 106: uint16(35799), + 107: uint16(23608), + 108: uint16(34417), + 109: uint16(21313), + 110: uint16(30707), + 111: uint16(25342), + 112: uint16(26102), + 113: uint16(20160), + 114: uint16(39135), + 115: uint16(34432), + 116: uint16(23454), + 117: uint16(35782), + 118: uint16(21490), + 119: uint16(30690), + 120: uint16(20351), + 121: uint16(23630), + 122: uint16(39542), + 123: uint16(22987), + 124: uint16(24335), + 125: uint16(31034), + 126: uint16(22763), + 127: uint16(19990), + 128: uint16(26623), + 129: uint16(20107), + 130: uint16(25325), + 131: uint16(35475), + 132: uint16(36893), + 133: uint16(21183), + 134: uint16(26159), + 135: uint16(21980), + 136: uint16(22124), + 137: uint16(36866), + 138: uint16(20181), + 139: uint16(20365), + 140: uint16(37322), + 141: uint16(39280), + 142: uint16(27663), + 143: uint16(24066), + 144: uint16(24643), + 145: uint16(23460), + 146: uint16(35270), + 147: uint16(35797), + 148: uint16(25910), + 149: uint16(25163), + 150: uint16(39318), + 151: uint16(23432), + 152: uint16(23551), + 153: uint16(25480), + 154: uint16(21806), + 155: uint16(21463), + 156: uint16(30246), + 157: uint16(20861), + 158: uint16(34092), + 159: uint16(26530), + 160: uint16(26803), + 161: uint16(27530), + 162: uint16(25234), + 163: uint16(36755), + 164: uint16(21460), + 165: uint16(33298), + 166: uint16(28113), + 167: uint16(30095), + 168: uint16(20070), + 169: uint16(36174), + 170: uint16(23408), + 171: uint16(29087), + 172: uint16(34223), + 173: uint16(26257), + 174: uint16(26329), + 175: uint16(32626), + 176: uint16(34560), + 177: uint16(40653), + 178: uint16(40736), + 179: uint16(23646), + 180: uint16(26415), + 181: uint16(36848), + 182: uint16(26641), + 183: uint16(26463), + 184: uint16(25101), + 185: uint16(31446), + 186: uint16(22661), + 187: uint16(24246), + 188: uint16(25968), + 189: uint16(28465), + }, + 74: { + 0: uint16(34178), + 1: uint16(34179), + 2: uint16(34182), + 3: uint16(34184), + 4: uint16(34185), + 5: uint16(34186), + 6: uint16(34187), + 7: uint16(34188), + 8: uint16(34189), + 9: uint16(34190), + 10: uint16(34192), + 11: uint16(34193), + 12: uint16(34194), + 13: uint16(34195), + 14: uint16(34196), + 15: uint16(34197), + 16: uint16(34198), + 17: uint16(34199), + 18: uint16(34200), + 19: uint16(34201), + 20: uint16(34202), + 21: uint16(34205), + 22: uint16(34206), + 23: uint16(34207), + 24: uint16(34208), + 25: uint16(34209), + 26: uint16(34210), + 27: uint16(34211), + 28: uint16(34213), + 29: uint16(34214), + 30: uint16(34215), + 31: uint16(34217), + 32: uint16(34219), + 33: uint16(34220), + 34: uint16(34221), + 35: uint16(34225), + 36: uint16(34226), + 37: uint16(34227), + 38: uint16(34228), + 39: uint16(34229), + 40: uint16(34230), + 41: uint16(34232), + 42: uint16(34234), + 43: uint16(34235), + 44: uint16(34236), + 45: uint16(34237), + 46: uint16(34238), + 47: uint16(34239), + 48: uint16(34240), + 49: uint16(34242), + 50: uint16(34243), + 51: uint16(34244), + 52: uint16(34245), + 53: uint16(34246), + 54: uint16(34247), + 55: uint16(34248), + 56: uint16(34250), + 57: uint16(34251), + 58: uint16(34252), + 59: uint16(34253), + 60: uint16(34254), + 61: uint16(34257), + 62: uint16(34258), + 63: uint16(34260), + 64: uint16(34262), + 65: uint16(34263), + 66: uint16(34264), + 67: uint16(34265), + 68: uint16(34266), + 69: uint16(34267), + 70: uint16(34269), + 71: uint16(34270), + 72: uint16(34271), + 73: uint16(34272), + 74: uint16(34273), + 75: uint16(34274), + 76: uint16(34275), + 77: uint16(34277), + 78: uint16(34278), + 79: uint16(34279), + 80: uint16(34280), + 81: uint16(34282), + 82: uint16(34283), + 83: uint16(34284), + 84: uint16(34285), + 85: uint16(34286), + 86: uint16(34287), + 87: uint16(34288), + 88: uint16(34289), + 89: uint16(34290), + 90: uint16(34291), + 91: uint16(34292), + 92: uint16(34293), + 93: uint16(34294), + 94: uint16(34295), + 95: uint16(34296), + 96: uint16(24661), + 97: uint16(21047), + 98: uint16(32781), + 99: uint16(25684), + 100: uint16(34928), + 101: uint16(29993), + 102: uint16(24069), + 103: uint16(26643), + 104: uint16(25332), + 105: uint16(38684), + 106: uint16(21452), + 107: uint16(29245), + 108: uint16(35841), + 109: uint16(27700), + 110: uint16(30561), + 111: uint16(31246), + 112: uint16(21550), + 113: uint16(30636), + 114: uint16(39034), + 115: uint16(33308), + 116: uint16(35828), + 117: uint16(30805), + 118: uint16(26388), + 119: uint16(28865), + 120: uint16(26031), + 121: uint16(25749), + 122: uint16(22070), + 123: uint16(24605), + 124: uint16(31169), + 125: uint16(21496), + 126: uint16(19997), + 127: uint16(27515), + 128: uint16(32902), + 129: uint16(23546), + 130: uint16(21987), + 131: uint16(22235), + 132: uint16(20282), + 133: uint16(20284), + 134: uint16(39282), + 135: uint16(24051), + 136: uint16(26494), + 137: uint16(32824), + 138: uint16(24578), + 139: uint16(39042), + 140: uint16(36865), + 141: uint16(23435), + 142: uint16(35772), + 143: uint16(35829), + 144: uint16(25628), + 145: uint16(33368), + 146: uint16(25822), + 147: uint16(22013), + 148: uint16(33487), + 149: uint16(37221), + 150: uint16(20439), + 151: uint16(32032), + 152: uint16(36895), + 153: uint16(31903), + 154: uint16(20723), + 155: uint16(22609), + 156: uint16(28335), + 157: uint16(23487), + 158: uint16(35785), + 159: uint16(32899), + 160: uint16(37240), + 161: uint16(33948), + 162: uint16(31639), + 163: uint16(34429), + 164: uint16(38539), + 165: uint16(38543), + 166: uint16(32485), + 167: uint16(39635), + 168: uint16(30862), + 169: uint16(23681), + 170: uint16(31319), + 171: uint16(36930), + 172: uint16(38567), + 173: uint16(31071), + 174: uint16(23385), + 175: uint16(25439), + 176: uint16(31499), + 177: uint16(34001), + 178: uint16(26797), + 179: uint16(21766), + 180: uint16(32553), + 181: uint16(29712), + 182: uint16(32034), + 183: uint16(38145), + 184: uint16(25152), + 185: uint16(22604), + 186: uint16(20182), + 187: uint16(23427), + 188: uint16(22905), + 189: uint16(22612), + }, + 75: { + 0: uint16(34297), + 1: uint16(34298), + 2: uint16(34300), + 3: uint16(34301), + 4: uint16(34302), + 5: uint16(34304), + 6: uint16(34305), + 7: uint16(34306), + 8: uint16(34307), + 9: uint16(34308), + 10: uint16(34310), + 11: uint16(34311), + 12: uint16(34312), + 13: uint16(34313), + 14: uint16(34314), + 15: uint16(34315), + 16: uint16(34316), + 17: uint16(34317), + 18: uint16(34318), + 19: uint16(34319), + 20: uint16(34320), + 21: uint16(34322), + 22: uint16(34323), + 23: uint16(34324), + 24: uint16(34325), + 25: uint16(34327), + 26: uint16(34328), + 27: uint16(34329), + 28: uint16(34330), + 29: uint16(34331), + 30: uint16(34332), + 31: uint16(34333), + 32: uint16(34334), + 33: uint16(34335), + 34: uint16(34336), + 35: uint16(34337), + 36: uint16(34338), + 37: uint16(34339), + 38: uint16(34340), + 39: uint16(34341), + 40: uint16(34342), + 41: uint16(34344), + 42: uint16(34346), + 43: uint16(34347), + 44: uint16(34348), + 45: uint16(34349), + 46: uint16(34350), + 47: uint16(34351), + 48: uint16(34352), + 49: uint16(34353), + 50: uint16(34354), + 51: uint16(34355), + 52: uint16(34356), + 53: uint16(34357), + 54: uint16(34358), + 55: uint16(34359), + 56: uint16(34361), + 57: uint16(34362), + 58: uint16(34363), + 59: uint16(34365), + 60: uint16(34366), + 61: uint16(34367), + 62: uint16(34368), + 63: uint16(34369), + 64: uint16(34370), + 65: uint16(34371), + 66: uint16(34372), + 67: uint16(34373), + 68: uint16(34374), + 69: uint16(34375), + 70: uint16(34376), + 71: uint16(34377), + 72: uint16(34378), + 73: uint16(34379), + 74: uint16(34380), + 75: uint16(34386), + 76: uint16(34387), + 77: uint16(34389), + 78: uint16(34390), + 79: uint16(34391), + 80: uint16(34392), + 81: uint16(34393), + 82: uint16(34395), + 83: uint16(34396), + 84: uint16(34397), + 85: uint16(34399), + 86: uint16(34400), + 87: uint16(34401), + 88: uint16(34403), + 89: uint16(34404), + 90: uint16(34405), + 91: uint16(34406), + 92: uint16(34407), + 93: uint16(34408), + 94: uint16(34409), + 95: uint16(34410), + 96: uint16(29549), + 97: uint16(25374), + 98: uint16(36427), + 99: uint16(36367), + 100: uint16(32974), + 101: uint16(33492), + 102: uint16(25260), + 103: uint16(21488), + 104: uint16(27888), + 105: uint16(37214), + 106: uint16(22826), + 107: uint16(24577), + 108: uint16(27760), + 109: uint16(22349), + 110: uint16(25674), + 111: uint16(36138), + 112: uint16(30251), + 113: uint16(28393), + 114: uint16(22363), + 115: uint16(27264), + 116: uint16(30192), + 117: uint16(28525), + 118: uint16(35885), + 119: uint16(35848), + 120: uint16(22374), + 121: uint16(27631), + 122: uint16(34962), + 123: uint16(30899), + 124: uint16(25506), + 125: uint16(21497), + 126: uint16(28845), + 127: uint16(27748), + 128: uint16(22616), + 129: uint16(25642), + 130: uint16(22530), + 131: uint16(26848), + 132: uint16(33179), + 133: uint16(21776), + 134: uint16(31958), + 135: uint16(20504), + 136: uint16(36538), + 137: uint16(28108), + 138: uint16(36255), + 139: uint16(28907), + 140: uint16(25487), + 141: uint16(28059), + 142: uint16(28372), + 143: uint16(32486), + 144: uint16(33796), + 145: uint16(26691), + 146: uint16(36867), + 147: uint16(28120), + 148: uint16(38518), + 149: uint16(35752), + 150: uint16(22871), + 151: uint16(29305), + 152: uint16(34276), + 153: uint16(33150), + 154: uint16(30140), + 155: uint16(35466), + 156: uint16(26799), + 157: uint16(21076), + 158: uint16(36386), + 159: uint16(38161), + 160: uint16(25552), + 161: uint16(39064), + 162: uint16(36420), + 163: uint16(21884), + 164: uint16(20307), + 165: uint16(26367), + 166: uint16(22159), + 167: uint16(24789), + 168: uint16(28053), + 169: uint16(21059), + 170: uint16(23625), + 171: uint16(22825), + 172: uint16(28155), + 173: uint16(22635), + 174: uint16(30000), + 175: uint16(29980), + 176: uint16(24684), + 177: uint16(33300), + 178: uint16(33094), + 179: uint16(25361), + 180: uint16(26465), + 181: uint16(36834), + 182: uint16(30522), + 183: uint16(36339), + 184: uint16(36148), + 185: uint16(38081), + 186: uint16(24086), + 187: uint16(21381), + 188: uint16(21548), + 189: uint16(28867), + }, + 76: { + 0: uint16(34413), + 1: uint16(34415), + 2: uint16(34416), + 3: uint16(34418), + 4: uint16(34419), + 5: uint16(34420), + 6: uint16(34421), + 7: uint16(34422), + 8: uint16(34423), + 9: uint16(34424), + 10: uint16(34435), + 11: uint16(34436), + 12: uint16(34437), + 13: uint16(34438), + 14: uint16(34439), + 15: uint16(34440), + 16: uint16(34441), + 17: uint16(34446), + 18: uint16(34447), + 19: uint16(34448), + 20: uint16(34449), + 21: uint16(34450), + 22: uint16(34452), + 23: uint16(34454), + 24: uint16(34455), + 25: uint16(34456), + 26: uint16(34457), + 27: uint16(34458), + 28: uint16(34459), + 29: uint16(34462), + 30: uint16(34463), + 31: uint16(34464), + 32: uint16(34465), + 33: uint16(34466), + 34: uint16(34469), + 35: uint16(34470), + 36: uint16(34475), + 37: uint16(34477), + 38: uint16(34478), + 39: uint16(34482), + 40: uint16(34483), + 41: uint16(34487), + 42: uint16(34488), + 43: uint16(34489), + 44: uint16(34491), + 45: uint16(34492), + 46: uint16(34493), + 47: uint16(34494), + 48: uint16(34495), + 49: uint16(34497), + 50: uint16(34498), + 51: uint16(34499), + 52: uint16(34501), + 53: uint16(34504), + 54: uint16(34508), + 55: uint16(34509), + 56: uint16(34514), + 57: uint16(34515), + 58: uint16(34517), + 59: uint16(34518), + 60: uint16(34519), + 61: uint16(34522), + 62: uint16(34524), + 63: uint16(34525), + 64: uint16(34528), + 65: uint16(34529), + 66: uint16(34530), + 67: uint16(34531), + 68: uint16(34533), + 69: uint16(34534), + 70: uint16(34535), + 71: uint16(34536), + 72: uint16(34538), + 73: uint16(34539), + 74: uint16(34540), + 75: uint16(34543), + 76: uint16(34549), + 77: uint16(34550), + 78: uint16(34551), + 79: uint16(34554), + 80: uint16(34555), + 81: uint16(34556), + 82: uint16(34557), + 83: uint16(34559), + 84: uint16(34561), + 85: uint16(34564), + 86: uint16(34565), + 87: uint16(34566), + 88: uint16(34571), + 89: uint16(34572), + 90: uint16(34574), + 91: uint16(34575), + 92: uint16(34576), + 93: uint16(34577), + 94: uint16(34580), + 95: uint16(34582), + 96: uint16(27712), + 97: uint16(24311), + 98: uint16(20572), + 99: uint16(20141), + 100: uint16(24237), + 101: uint16(25402), + 102: uint16(33351), + 103: uint16(36890), + 104: uint16(26704), + 105: uint16(37230), + 106: uint16(30643), + 107: uint16(21516), + 108: uint16(38108), + 109: uint16(24420), + 110: uint16(31461), + 111: uint16(26742), + 112: uint16(25413), + 113: uint16(31570), + 114: uint16(32479), + 115: uint16(30171), + 116: uint16(20599), + 117: uint16(25237), + 118: uint16(22836), + 119: uint16(36879), + 120: uint16(20984), + 121: uint16(31171), + 122: uint16(31361), + 123: uint16(22270), + 124: uint16(24466), + 125: uint16(36884), + 126: uint16(28034), + 127: uint16(23648), + 128: uint16(22303), + 129: uint16(21520), + 130: uint16(20820), + 131: uint16(28237), + 132: uint16(22242), + 133: uint16(25512), + 134: uint16(39059), + 135: uint16(33151), + 136: uint16(34581), + 137: uint16(35114), + 138: uint16(36864), + 139: uint16(21534), + 140: uint16(23663), + 141: uint16(33216), + 142: uint16(25302), + 143: uint16(25176), + 144: uint16(33073), + 145: uint16(40501), + 146: uint16(38464), + 147: uint16(39534), + 148: uint16(39548), + 149: uint16(26925), + 150: uint16(22949), + 151: uint16(25299), + 152: uint16(21822), + 153: uint16(25366), + 154: uint16(21703), + 155: uint16(34521), + 156: uint16(27964), + 157: uint16(23043), + 158: uint16(29926), + 159: uint16(34972), + 160: uint16(27498), + 161: uint16(22806), + 162: uint16(35916), + 163: uint16(24367), + 164: uint16(28286), + 165: uint16(29609), + 166: uint16(39037), + 167: uint16(20024), + 168: uint16(28919), + 169: uint16(23436), + 170: uint16(30871), + 171: uint16(25405), + 172: uint16(26202), + 173: uint16(30358), + 174: uint16(24779), + 175: uint16(23451), + 176: uint16(23113), + 177: uint16(19975), + 178: uint16(33109), + 179: uint16(27754), + 180: uint16(29579), + 181: uint16(20129), + 182: uint16(26505), + 183: uint16(32593), + 184: uint16(24448), + 185: uint16(26106), + 186: uint16(26395), + 187: uint16(24536), + 188: uint16(22916), + 189: uint16(23041), + }, + 77: { + 0: uint16(34585), + 1: uint16(34587), + 2: uint16(34589), + 3: uint16(34591), + 4: uint16(34592), + 5: uint16(34596), + 6: uint16(34598), + 7: uint16(34599), + 8: uint16(34600), + 9: uint16(34602), + 10: uint16(34603), + 11: uint16(34604), + 12: uint16(34605), + 13: uint16(34607), + 14: uint16(34608), + 15: uint16(34610), + 16: uint16(34611), + 17: uint16(34613), + 18: uint16(34614), + 19: uint16(34616), + 20: uint16(34617), + 21: uint16(34618), + 22: uint16(34620), + 23: uint16(34621), + 24: uint16(34624), + 25: uint16(34625), + 26: uint16(34626), + 27: uint16(34627), + 28: uint16(34628), + 29: uint16(34629), + 30: uint16(34630), + 31: uint16(34634), + 32: uint16(34635), + 33: uint16(34637), + 34: uint16(34639), + 35: uint16(34640), + 36: uint16(34641), + 37: uint16(34642), + 38: uint16(34644), + 39: uint16(34645), + 40: uint16(34646), + 41: uint16(34648), + 42: uint16(34650), + 43: uint16(34651), + 44: uint16(34652), + 45: uint16(34653), + 46: uint16(34654), + 47: uint16(34655), + 48: uint16(34657), + 49: uint16(34658), + 50: uint16(34662), + 51: uint16(34663), + 52: uint16(34664), + 53: uint16(34665), + 54: uint16(34666), + 55: uint16(34667), + 56: uint16(34668), + 57: uint16(34669), + 58: uint16(34671), + 59: uint16(34673), + 60: uint16(34674), + 61: uint16(34675), + 62: uint16(34677), + 63: uint16(34679), + 64: uint16(34680), + 65: uint16(34681), + 66: uint16(34682), + 67: uint16(34687), + 68: uint16(34688), + 69: uint16(34689), + 70: uint16(34692), + 71: uint16(34694), + 72: uint16(34695), + 73: uint16(34697), + 74: uint16(34698), + 75: uint16(34700), + 76: uint16(34702), + 77: uint16(34703), + 78: uint16(34704), + 79: uint16(34705), + 80: uint16(34706), + 81: uint16(34708), + 82: uint16(34709), + 83: uint16(34710), + 84: uint16(34712), + 85: uint16(34713), + 86: uint16(34714), + 87: uint16(34715), + 88: uint16(34716), + 89: uint16(34717), + 90: uint16(34718), + 91: uint16(34720), + 92: uint16(34721), + 93: uint16(34722), + 94: uint16(34723), + 95: uint16(34724), + 96: uint16(24013), + 97: uint16(24494), + 98: uint16(21361), + 99: uint16(38886), + 100: uint16(36829), + 101: uint16(26693), + 102: uint16(22260), + 103: uint16(21807), + 104: uint16(24799), + 105: uint16(20026), + 106: uint16(28493), + 107: uint16(32500), + 108: uint16(33479), + 109: uint16(33806), + 110: uint16(22996), + 111: uint16(20255), + 112: uint16(20266), + 113: uint16(23614), + 114: uint16(32428), + 115: uint16(26410), + 116: uint16(34074), + 117: uint16(21619), + 118: uint16(30031), + 119: uint16(32963), + 120: uint16(21890), + 121: uint16(39759), + 122: uint16(20301), + 123: uint16(28205), + 124: uint16(35859), + 125: uint16(23561), + 126: uint16(24944), + 127: uint16(21355), + 128: uint16(30239), + 129: uint16(28201), + 130: uint16(34442), + 131: uint16(25991), + 132: uint16(38395), + 133: uint16(32441), + 134: uint16(21563), + 135: uint16(31283), + 136: uint16(32010), + 137: uint16(38382), + 138: uint16(21985), + 139: uint16(32705), + 140: uint16(29934), + 141: uint16(25373), + 142: uint16(34583), + 143: uint16(28065), + 144: uint16(31389), + 145: uint16(25105), + 146: uint16(26017), + 147: uint16(21351), + 148: uint16(25569), + 149: uint16(27779), + 150: uint16(24043), + 151: uint16(21596), + 152: uint16(38056), + 153: uint16(20044), + 154: uint16(27745), + 155: uint16(35820), + 156: uint16(23627), + 157: uint16(26080), + 158: uint16(33436), + 159: uint16(26791), + 160: uint16(21566), + 161: uint16(21556), + 162: uint16(27595), + 163: uint16(27494), + 164: uint16(20116), + 165: uint16(25410), + 166: uint16(21320), + 167: uint16(33310), + 168: uint16(20237), + 169: uint16(20398), + 170: uint16(22366), + 171: uint16(25098), + 172: uint16(38654), + 173: uint16(26212), + 174: uint16(29289), + 175: uint16(21247), + 176: uint16(21153), + 177: uint16(24735), + 178: uint16(35823), + 179: uint16(26132), + 180: uint16(29081), + 181: uint16(26512), + 182: uint16(35199), + 183: uint16(30802), + 184: uint16(30717), + 185: uint16(26224), + 186: uint16(22075), + 187: uint16(21560), + 188: uint16(38177), + 189: uint16(29306), + }, + 78: { + 0: uint16(34725), + 1: uint16(34726), + 2: uint16(34727), + 3: uint16(34729), + 4: uint16(34730), + 5: uint16(34734), + 6: uint16(34736), + 7: uint16(34737), + 8: uint16(34738), + 9: uint16(34740), + 10: uint16(34742), + 11: uint16(34743), + 12: uint16(34744), + 13: uint16(34745), + 14: uint16(34747), + 15: uint16(34748), + 16: uint16(34750), + 17: uint16(34751), + 18: uint16(34753), + 19: uint16(34754), + 20: uint16(34755), + 21: uint16(34756), + 22: uint16(34757), + 23: uint16(34759), + 24: uint16(34760), + 25: uint16(34761), + 26: uint16(34764), + 27: uint16(34765), + 28: uint16(34766), + 29: uint16(34767), + 30: uint16(34768), + 31: uint16(34772), + 32: uint16(34773), + 33: uint16(34774), + 34: uint16(34775), + 35: uint16(34776), + 36: uint16(34777), + 37: uint16(34778), + 38: uint16(34780), + 39: uint16(34781), + 40: uint16(34782), + 41: uint16(34783), + 42: uint16(34785), + 43: uint16(34786), + 44: uint16(34787), + 45: uint16(34788), + 46: uint16(34790), + 47: uint16(34791), + 48: uint16(34792), + 49: uint16(34793), + 50: uint16(34795), + 51: uint16(34796), + 52: uint16(34797), + 53: uint16(34799), + 54: uint16(34800), + 55: uint16(34801), + 56: uint16(34802), + 57: uint16(34803), + 58: uint16(34804), + 59: uint16(34805), + 60: uint16(34806), + 61: uint16(34807), + 62: uint16(34808), + 63: uint16(34810), + 64: uint16(34811), + 65: uint16(34812), + 66: uint16(34813), + 67: uint16(34815), + 68: uint16(34816), + 69: uint16(34817), + 70: uint16(34818), + 71: uint16(34820), + 72: uint16(34821), + 73: uint16(34822), + 74: uint16(34823), + 75: uint16(34824), + 76: uint16(34825), + 77: uint16(34827), + 78: uint16(34828), + 79: uint16(34829), + 80: uint16(34830), + 81: uint16(34831), + 82: uint16(34832), + 83: uint16(34833), + 84: uint16(34834), + 85: uint16(34836), + 86: uint16(34839), + 87: uint16(34840), + 88: uint16(34841), + 89: uint16(34842), + 90: uint16(34844), + 91: uint16(34845), + 92: uint16(34846), + 93: uint16(34847), + 94: uint16(34848), + 95: uint16(34851), + 96: uint16(31232), + 97: uint16(24687), + 98: uint16(24076), + 99: uint16(24713), + 100: uint16(33181), + 101: uint16(22805), + 102: uint16(24796), + 103: uint16(29060), + 104: uint16(28911), + 105: uint16(28330), + 106: uint16(27728), + 107: uint16(29312), + 108: uint16(27268), + 109: uint16(34989), + 110: uint16(24109), + 111: uint16(20064), + 112: uint16(23219), + 113: uint16(21916), + 114: uint16(38115), + 115: uint16(27927), + 116: uint16(31995), + 117: uint16(38553), + 118: uint16(25103), + 119: uint16(32454), + 120: uint16(30606), + 121: uint16(34430), + 122: uint16(21283), + 123: uint16(38686), + 124: uint16(36758), + 125: uint16(26247), + 126: uint16(23777), + 127: uint16(20384), + 128: uint16(29421), + 129: uint16(19979), + 130: uint16(21414), + 131: uint16(22799), + 132: uint16(21523), + 133: uint16(25472), + 134: uint16(38184), + 135: uint16(20808), + 136: uint16(20185), + 137: uint16(40092), + 138: uint16(32420), + 139: uint16(21688), + 140: uint16(36132), + 141: uint16(34900), + 142: uint16(33335), + 143: uint16(38386), + 144: uint16(28046), + 145: uint16(24358), + 146: uint16(23244), + 147: uint16(26174), + 148: uint16(38505), + 149: uint16(29616), + 150: uint16(29486), + 151: uint16(21439), + 152: uint16(33146), + 153: uint16(39301), + 154: uint16(32673), + 155: uint16(23466), + 156: uint16(38519), + 157: uint16(38480), + 158: uint16(32447), + 159: uint16(30456), + 160: uint16(21410), + 161: uint16(38262), + 162: uint16(39321), + 163: uint16(31665), + 164: uint16(35140), + 165: uint16(28248), + 166: uint16(20065), + 167: uint16(32724), + 168: uint16(31077), + 169: uint16(35814), + 170: uint16(24819), + 171: uint16(21709), + 172: uint16(20139), + 173: uint16(39033), + 174: uint16(24055), + 175: uint16(27233), + 176: uint16(20687), + 177: uint16(21521), + 178: uint16(35937), + 179: uint16(33831), + 180: uint16(30813), + 181: uint16(38660), + 182: uint16(21066), + 183: uint16(21742), + 184: uint16(22179), + 185: uint16(38144), + 186: uint16(28040), + 187: uint16(23477), + 188: uint16(28102), + 189: uint16(26195), + }, + 79: { + 0: uint16(34852), + 1: uint16(34853), + 2: uint16(34854), + 3: uint16(34855), + 4: uint16(34856), + 5: uint16(34857), + 6: uint16(34858), + 7: uint16(34859), + 8: uint16(34860), + 9: uint16(34861), + 10: uint16(34862), + 11: uint16(34863), + 12: uint16(34864), + 13: uint16(34865), + 14: uint16(34867), + 15: uint16(34868), + 16: uint16(34869), + 17: uint16(34870), + 18: uint16(34871), + 19: uint16(34872), + 20: uint16(34874), + 21: uint16(34875), + 22: uint16(34877), + 23: uint16(34878), + 24: uint16(34879), + 25: uint16(34881), + 26: uint16(34882), + 27: uint16(34883), + 28: uint16(34886), + 29: uint16(34887), + 30: uint16(34888), + 31: uint16(34889), + 32: uint16(34890), + 33: uint16(34891), + 34: uint16(34894), + 35: uint16(34895), + 36: uint16(34896), + 37: uint16(34897), + 38: uint16(34898), + 39: uint16(34899), + 40: uint16(34901), + 41: uint16(34902), + 42: uint16(34904), + 43: uint16(34906), + 44: uint16(34907), + 45: uint16(34908), + 46: uint16(34909), + 47: uint16(34910), + 48: uint16(34911), + 49: uint16(34912), + 50: uint16(34918), + 51: uint16(34919), + 52: uint16(34922), + 53: uint16(34925), + 54: uint16(34927), + 55: uint16(34929), + 56: uint16(34931), + 57: uint16(34932), + 58: uint16(34933), + 59: uint16(34934), + 60: uint16(34936), + 61: uint16(34937), + 62: uint16(34938), + 63: uint16(34939), + 64: uint16(34940), + 65: uint16(34944), + 66: uint16(34947), + 67: uint16(34950), + 68: uint16(34951), + 69: uint16(34953), + 70: uint16(34954), + 71: uint16(34956), + 72: uint16(34958), + 73: uint16(34959), + 74: uint16(34960), + 75: uint16(34961), + 76: uint16(34963), + 77: uint16(34964), + 78: uint16(34965), + 79: uint16(34967), + 80: uint16(34968), + 81: uint16(34969), + 82: uint16(34970), + 83: uint16(34971), + 84: uint16(34973), + 85: uint16(34974), + 86: uint16(34975), + 87: uint16(34976), + 88: uint16(34977), + 89: uint16(34979), + 90: uint16(34981), + 91: uint16(34982), + 92: uint16(34983), + 93: uint16(34984), + 94: uint16(34985), + 95: uint16(34986), + 96: uint16(23567), + 97: uint16(23389), + 98: uint16(26657), + 99: uint16(32918), + 100: uint16(21880), + 101: uint16(31505), + 102: uint16(25928), + 103: uint16(26964), + 104: uint16(20123), + 105: uint16(27463), + 106: uint16(34638), + 107: uint16(38795), + 108: uint16(21327), + 109: uint16(25375), + 110: uint16(25658), + 111: uint16(37034), + 112: uint16(26012), + 113: uint16(32961), + 114: uint16(35856), + 115: uint16(20889), + 116: uint16(26800), + 117: uint16(21368), + 118: uint16(34809), + 119: uint16(25032), + 120: uint16(27844), + 121: uint16(27899), + 122: uint16(35874), + 123: uint16(23633), + 124: uint16(34218), + 125: uint16(33455), + 126: uint16(38156), + 127: uint16(27427), + 128: uint16(36763), + 129: uint16(26032), + 130: uint16(24571), + 131: uint16(24515), + 132: uint16(20449), + 133: uint16(34885), + 134: uint16(26143), + 135: uint16(33125), + 136: uint16(29481), + 137: uint16(24826), + 138: uint16(20852), + 139: uint16(21009), + 140: uint16(22411), + 141: uint16(24418), + 142: uint16(37026), + 143: uint16(34892), + 144: uint16(37266), + 145: uint16(24184), + 146: uint16(26447), + 147: uint16(24615), + 148: uint16(22995), + 149: uint16(20804), + 150: uint16(20982), + 151: uint16(33016), + 152: uint16(21256), + 153: uint16(27769), + 154: uint16(38596), + 155: uint16(29066), + 156: uint16(20241), + 157: uint16(20462), + 158: uint16(32670), + 159: uint16(26429), + 160: uint16(21957), + 161: uint16(38152), + 162: uint16(31168), + 163: uint16(34966), + 164: uint16(32483), + 165: uint16(22687), + 166: uint16(25100), + 167: uint16(38656), + 168: uint16(34394), + 169: uint16(22040), + 170: uint16(39035), + 171: uint16(24464), + 172: uint16(35768), + 173: uint16(33988), + 174: uint16(37207), + 175: uint16(21465), + 176: uint16(26093), + 177: uint16(24207), + 178: uint16(30044), + 179: uint16(24676), + 180: uint16(32110), + 181: uint16(23167), + 182: uint16(32490), + 183: uint16(32493), + 184: uint16(36713), + 185: uint16(21927), + 186: uint16(23459), + 187: uint16(24748), + 188: uint16(26059), + 189: uint16(29572), + }, + 80: { + 0: uint16(34988), + 1: uint16(34990), + 2: uint16(34991), + 3: uint16(34992), + 4: uint16(34994), + 5: uint16(34995), + 6: uint16(34996), + 7: uint16(34997), + 8: uint16(34998), + 9: uint16(35000), + 10: uint16(35001), + 11: uint16(35002), + 12: uint16(35003), + 13: uint16(35005), + 14: uint16(35006), + 15: uint16(35007), + 16: uint16(35008), + 17: uint16(35011), + 18: uint16(35012), + 19: uint16(35015), + 20: uint16(35016), + 21: uint16(35018), + 22: uint16(35019), + 23: uint16(35020), + 24: uint16(35021), + 25: uint16(35023), + 26: uint16(35024), + 27: uint16(35025), + 28: uint16(35027), + 29: uint16(35030), + 30: uint16(35031), + 31: uint16(35034), + 32: uint16(35035), + 33: uint16(35036), + 34: uint16(35037), + 35: uint16(35038), + 36: uint16(35040), + 37: uint16(35041), + 38: uint16(35046), + 39: uint16(35047), + 40: uint16(35049), + 41: uint16(35050), + 42: uint16(35051), + 43: uint16(35052), + 44: uint16(35053), + 45: uint16(35054), + 46: uint16(35055), + 47: uint16(35058), + 48: uint16(35061), + 49: uint16(35062), + 50: uint16(35063), + 51: uint16(35066), + 52: uint16(35067), + 53: uint16(35069), + 54: uint16(35071), + 55: uint16(35072), + 56: uint16(35073), + 57: uint16(35075), + 58: uint16(35076), + 59: uint16(35077), + 60: uint16(35078), + 61: uint16(35079), + 62: uint16(35080), + 63: uint16(35081), + 64: uint16(35083), + 65: uint16(35084), + 66: uint16(35085), + 67: uint16(35086), + 68: uint16(35087), + 69: uint16(35089), + 70: uint16(35092), + 71: uint16(35093), + 72: uint16(35094), + 73: uint16(35095), + 74: uint16(35096), + 75: uint16(35100), + 76: uint16(35101), + 77: uint16(35102), + 78: uint16(35103), + 79: uint16(35104), + 80: uint16(35106), + 81: uint16(35107), + 82: uint16(35108), + 83: uint16(35110), + 84: uint16(35111), + 85: uint16(35112), + 86: uint16(35113), + 87: uint16(35116), + 88: uint16(35117), + 89: uint16(35118), + 90: uint16(35119), + 91: uint16(35121), + 92: uint16(35122), + 93: uint16(35123), + 94: uint16(35125), + 95: uint16(35127), + 96: uint16(36873), + 97: uint16(30307), + 98: uint16(30505), + 99: uint16(32474), + 100: uint16(38772), + 101: uint16(34203), + 102: uint16(23398), + 103: uint16(31348), + 104: uint16(38634), + 105: uint16(34880), + 106: uint16(21195), + 107: uint16(29071), + 108: uint16(24490), + 109: uint16(26092), + 110: uint16(35810), + 111: uint16(23547), + 112: uint16(39535), + 113: uint16(24033), + 114: uint16(27529), + 115: uint16(27739), + 116: uint16(35757), + 117: uint16(35759), + 118: uint16(36874), + 119: uint16(36805), + 120: uint16(21387), + 121: uint16(25276), + 122: uint16(40486), + 123: uint16(40493), + 124: uint16(21568), + 125: uint16(20011), + 126: uint16(33469), + 127: uint16(29273), + 128: uint16(34460), + 129: uint16(23830), + 130: uint16(34905), + 131: uint16(28079), + 132: uint16(38597), + 133: uint16(21713), + 134: uint16(20122), + 135: uint16(35766), + 136: uint16(28937), + 137: uint16(21693), + 138: uint16(38409), + 139: uint16(28895), + 140: uint16(28153), + 141: uint16(30416), + 142: uint16(20005), + 143: uint16(30740), + 144: uint16(34578), + 145: uint16(23721), + 146: uint16(24310), + 147: uint16(35328), + 148: uint16(39068), + 149: uint16(38414), + 150: uint16(28814), + 151: uint16(27839), + 152: uint16(22852), + 153: uint16(25513), + 154: uint16(30524), + 155: uint16(34893), + 156: uint16(28436), + 157: uint16(33395), + 158: uint16(22576), + 159: uint16(29141), + 160: uint16(21388), + 161: uint16(30746), + 162: uint16(38593), + 163: uint16(21761), + 164: uint16(24422), + 165: uint16(28976), + 166: uint16(23476), + 167: uint16(35866), + 168: uint16(39564), + 169: uint16(27523), + 170: uint16(22830), + 171: uint16(40495), + 172: uint16(31207), + 173: uint16(26472), + 174: uint16(25196), + 175: uint16(20335), + 176: uint16(30113), + 177: uint16(32650), + 178: uint16(27915), + 179: uint16(38451), + 180: uint16(27687), + 181: uint16(20208), + 182: uint16(30162), + 183: uint16(20859), + 184: uint16(26679), + 185: uint16(28478), + 186: uint16(36992), + 187: uint16(33136), + 188: uint16(22934), + 189: uint16(29814), + }, + 81: { + 0: uint16(35128), + 1: uint16(35129), + 2: uint16(35130), + 3: uint16(35131), + 4: uint16(35132), + 5: uint16(35133), + 6: uint16(35134), + 7: uint16(35135), + 8: uint16(35136), + 9: uint16(35138), + 10: uint16(35139), + 11: uint16(35141), + 12: uint16(35142), + 13: uint16(35143), + 14: uint16(35144), + 15: uint16(35145), + 16: uint16(35146), + 17: uint16(35147), + 18: uint16(35148), + 19: uint16(35149), + 20: uint16(35150), + 21: uint16(35151), + 22: uint16(35152), + 23: uint16(35153), + 24: uint16(35154), + 25: uint16(35155), + 26: uint16(35156), + 27: uint16(35157), + 28: uint16(35158), + 29: uint16(35159), + 30: uint16(35160), + 31: uint16(35161), + 32: uint16(35162), + 33: uint16(35163), + 34: uint16(35164), + 35: uint16(35165), + 36: uint16(35168), + 37: uint16(35169), + 38: uint16(35170), + 39: uint16(35171), + 40: uint16(35172), + 41: uint16(35173), + 42: uint16(35175), + 43: uint16(35176), + 44: uint16(35177), + 45: uint16(35178), + 46: uint16(35179), + 47: uint16(35180), + 48: uint16(35181), + 49: uint16(35182), + 50: uint16(35183), + 51: uint16(35184), + 52: uint16(35185), + 53: uint16(35186), + 54: uint16(35187), + 55: uint16(35188), + 56: uint16(35189), + 57: uint16(35190), + 58: uint16(35191), + 59: uint16(35192), + 60: uint16(35193), + 61: uint16(35194), + 62: uint16(35196), + 63: uint16(35197), + 64: uint16(35198), + 65: uint16(35200), + 66: uint16(35202), + 67: uint16(35204), + 68: uint16(35205), + 69: uint16(35207), + 70: uint16(35208), + 71: uint16(35209), + 72: uint16(35210), + 73: uint16(35211), + 74: uint16(35212), + 75: uint16(35213), + 76: uint16(35214), + 77: uint16(35215), + 78: uint16(35216), + 79: uint16(35217), + 80: uint16(35218), + 81: uint16(35219), + 82: uint16(35220), + 83: uint16(35221), + 84: uint16(35222), + 85: uint16(35223), + 86: uint16(35224), + 87: uint16(35225), + 88: uint16(35226), + 89: uint16(35227), + 90: uint16(35228), + 91: uint16(35229), + 92: uint16(35230), + 93: uint16(35231), + 94: uint16(35232), + 95: uint16(35233), + 96: uint16(25671), + 97: uint16(23591), + 98: uint16(36965), + 99: uint16(31377), + 100: uint16(35875), + 101: uint16(23002), + 102: uint16(21676), + 103: uint16(33280), + 104: uint16(33647), + 105: uint16(35201), + 106: uint16(32768), + 107: uint16(26928), + 108: uint16(22094), + 109: uint16(32822), + 110: uint16(29239), + 111: uint16(37326), + 112: uint16(20918), + 113: uint16(20063), + 114: uint16(39029), + 115: uint16(25494), + 116: uint16(19994), + 117: uint16(21494), + 118: uint16(26355), + 119: uint16(33099), + 120: uint16(22812), + 121: uint16(28082), + 122: uint16(19968), + 123: uint16(22777), + 124: uint16(21307), + 125: uint16(25558), + 126: uint16(38129), + 127: uint16(20381), + 128: uint16(20234), + 129: uint16(34915), + 130: uint16(39056), + 131: uint16(22839), + 132: uint16(36951), + 133: uint16(31227), + 134: uint16(20202), + 135: uint16(33008), + 136: uint16(30097), + 137: uint16(27778), + 138: uint16(23452), + 139: uint16(23016), + 140: uint16(24413), + 141: uint16(26885), + 142: uint16(34433), + 143: uint16(20506), + 144: uint16(24050), + 145: uint16(20057), + 146: uint16(30691), + 147: uint16(20197), + 148: uint16(33402), + 149: uint16(25233), + 150: uint16(26131), + 151: uint16(37009), + 152: uint16(23673), + 153: uint16(20159), + 154: uint16(24441), + 155: uint16(33222), + 156: uint16(36920), + 157: uint16(32900), + 158: uint16(30123), + 159: uint16(20134), + 160: uint16(35028), + 161: uint16(24847), + 162: uint16(27589), + 163: uint16(24518), + 164: uint16(20041), + 165: uint16(30410), + 166: uint16(28322), + 167: uint16(35811), + 168: uint16(35758), + 169: uint16(35850), + 170: uint16(35793), + 171: uint16(24322), + 172: uint16(32764), + 173: uint16(32716), + 174: uint16(32462), + 175: uint16(33589), + 176: uint16(33643), + 177: uint16(22240), + 178: uint16(27575), + 179: uint16(38899), + 180: uint16(38452), + 181: uint16(23035), + 182: uint16(21535), + 183: uint16(38134), + 184: uint16(28139), + 185: uint16(23493), + 186: uint16(39278), + 187: uint16(23609), + 188: uint16(24341), + 189: uint16(38544), + }, + 82: { + 0: uint16(35234), + 1: uint16(35235), + 2: uint16(35236), + 3: uint16(35237), + 4: uint16(35238), + 5: uint16(35239), + 6: uint16(35240), + 7: uint16(35241), + 8: uint16(35242), + 9: uint16(35243), + 10: uint16(35244), + 11: uint16(35245), + 12: uint16(35246), + 13: uint16(35247), + 14: uint16(35248), + 15: uint16(35249), + 16: uint16(35250), + 17: uint16(35251), + 18: uint16(35252), + 19: uint16(35253), + 20: uint16(35254), + 21: uint16(35255), + 22: uint16(35256), + 23: uint16(35257), + 24: uint16(35258), + 25: uint16(35259), + 26: uint16(35260), + 27: uint16(35261), + 28: uint16(35262), + 29: uint16(35263), + 30: uint16(35264), + 31: uint16(35267), + 32: uint16(35277), + 33: uint16(35283), + 34: uint16(35284), + 35: uint16(35285), + 36: uint16(35287), + 37: uint16(35288), + 38: uint16(35289), + 39: uint16(35291), + 40: uint16(35293), + 41: uint16(35295), + 42: uint16(35296), + 43: uint16(35297), + 44: uint16(35298), + 45: uint16(35300), + 46: uint16(35303), + 47: uint16(35304), + 48: uint16(35305), + 49: uint16(35306), + 50: uint16(35308), + 51: uint16(35309), + 52: uint16(35310), + 53: uint16(35312), + 54: uint16(35313), + 55: uint16(35314), + 56: uint16(35316), + 57: uint16(35317), + 58: uint16(35318), + 59: uint16(35319), + 60: uint16(35320), + 61: uint16(35321), + 62: uint16(35322), + 63: uint16(35323), + 64: uint16(35324), + 65: uint16(35325), + 66: uint16(35326), + 67: uint16(35327), + 68: uint16(35329), + 69: uint16(35330), + 70: uint16(35331), + 71: uint16(35332), + 72: uint16(35333), + 73: uint16(35334), + 74: uint16(35336), + 75: uint16(35337), + 76: uint16(35338), + 77: uint16(35339), + 78: uint16(35340), + 79: uint16(35341), + 80: uint16(35342), + 81: uint16(35343), + 82: uint16(35344), + 83: uint16(35345), + 84: uint16(35346), + 85: uint16(35347), + 86: uint16(35348), + 87: uint16(35349), + 88: uint16(35350), + 89: uint16(35351), + 90: uint16(35352), + 91: uint16(35353), + 92: uint16(35354), + 93: uint16(35355), + 94: uint16(35356), + 95: uint16(35357), + 96: uint16(21360), + 97: uint16(33521), + 98: uint16(27185), + 99: uint16(23156), + 100: uint16(40560), + 101: uint16(24212), + 102: uint16(32552), + 103: uint16(33721), + 104: uint16(33828), + 105: uint16(33829), + 106: uint16(33639), + 107: uint16(34631), + 108: uint16(36814), + 109: uint16(36194), + 110: uint16(30408), + 111: uint16(24433), + 112: uint16(39062), + 113: uint16(30828), + 114: uint16(26144), + 115: uint16(21727), + 116: uint16(25317), + 117: uint16(20323), + 118: uint16(33219), + 119: uint16(30152), + 120: uint16(24248), + 121: uint16(38605), + 122: uint16(36362), + 123: uint16(34553), + 124: uint16(21647), + 125: uint16(27891), + 126: uint16(28044), + 127: uint16(27704), + 128: uint16(24703), + 129: uint16(21191), + 130: uint16(29992), + 131: uint16(24189), + 132: uint16(20248), + 133: uint16(24736), + 134: uint16(24551), + 135: uint16(23588), + 136: uint16(30001), + 137: uint16(37038), + 138: uint16(38080), + 139: uint16(29369), + 140: uint16(27833), + 141: uint16(28216), + 142: uint16(37193), + 143: uint16(26377), + 144: uint16(21451), + 145: uint16(21491), + 146: uint16(20305), + 147: uint16(37321), + 148: uint16(35825), + 149: uint16(21448), + 150: uint16(24188), + 151: uint16(36802), + 152: uint16(28132), + 153: uint16(20110), + 154: uint16(30402), + 155: uint16(27014), + 156: uint16(34398), + 157: uint16(24858), + 158: uint16(33286), + 159: uint16(20313), + 160: uint16(20446), + 161: uint16(36926), + 162: uint16(40060), + 163: uint16(24841), + 164: uint16(28189), + 165: uint16(28180), + 166: uint16(38533), + 167: uint16(20104), + 168: uint16(23089), + 169: uint16(38632), + 170: uint16(19982), + 171: uint16(23679), + 172: uint16(31161), + 173: uint16(23431), + 174: uint16(35821), + 175: uint16(32701), + 176: uint16(29577), + 177: uint16(22495), + 178: uint16(33419), + 179: uint16(37057), + 180: uint16(21505), + 181: uint16(36935), + 182: uint16(21947), + 183: uint16(23786), + 184: uint16(24481), + 185: uint16(24840), + 186: uint16(27442), + 187: uint16(29425), + 188: uint16(32946), + 189: uint16(35465), + }, + 83: { + 0: uint16(35358), + 1: uint16(35359), + 2: uint16(35360), + 3: uint16(35361), + 4: uint16(35362), + 5: uint16(35363), + 6: uint16(35364), + 7: uint16(35365), + 8: uint16(35366), + 9: uint16(35367), + 10: uint16(35368), + 11: uint16(35369), + 12: uint16(35370), + 13: uint16(35371), + 14: uint16(35372), + 15: uint16(35373), + 16: uint16(35374), + 17: uint16(35375), + 18: uint16(35376), + 19: uint16(35377), + 20: uint16(35378), + 21: uint16(35379), + 22: uint16(35380), + 23: uint16(35381), + 24: uint16(35382), + 25: uint16(35383), + 26: uint16(35384), + 27: uint16(35385), + 28: uint16(35386), + 29: uint16(35387), + 30: uint16(35388), + 31: uint16(35389), + 32: uint16(35391), + 33: uint16(35392), + 34: uint16(35393), + 35: uint16(35394), + 36: uint16(35395), + 37: uint16(35396), + 38: uint16(35397), + 39: uint16(35398), + 40: uint16(35399), + 41: uint16(35401), + 42: uint16(35402), + 43: uint16(35403), + 44: uint16(35404), + 45: uint16(35405), + 46: uint16(35406), + 47: uint16(35407), + 48: uint16(35408), + 49: uint16(35409), + 50: uint16(35410), + 51: uint16(35411), + 52: uint16(35412), + 53: uint16(35413), + 54: uint16(35414), + 55: uint16(35415), + 56: uint16(35416), + 57: uint16(35417), + 58: uint16(35418), + 59: uint16(35419), + 60: uint16(35420), + 61: uint16(35421), + 62: uint16(35422), + 63: uint16(35423), + 64: uint16(35424), + 65: uint16(35425), + 66: uint16(35426), + 67: uint16(35427), + 68: uint16(35428), + 69: uint16(35429), + 70: uint16(35430), + 71: uint16(35431), + 72: uint16(35432), + 73: uint16(35433), + 74: uint16(35434), + 75: uint16(35435), + 76: uint16(35436), + 77: uint16(35437), + 78: uint16(35438), + 79: uint16(35439), + 80: uint16(35440), + 81: uint16(35441), + 82: uint16(35442), + 83: uint16(35443), + 84: uint16(35444), + 85: uint16(35445), + 86: uint16(35446), + 87: uint16(35447), + 88: uint16(35448), + 89: uint16(35450), + 90: uint16(35451), + 91: uint16(35452), + 92: uint16(35453), + 93: uint16(35454), + 94: uint16(35455), + 95: uint16(35456), + 96: uint16(28020), + 97: uint16(23507), + 98: uint16(35029), + 99: uint16(39044), + 100: uint16(35947), + 101: uint16(39533), + 102: uint16(40499), + 103: uint16(28170), + 104: uint16(20900), + 105: uint16(20803), + 106: uint16(22435), + 107: uint16(34945), + 108: uint16(21407), + 109: uint16(25588), + 110: uint16(36757), + 111: uint16(22253), + 112: uint16(21592), + 113: uint16(22278), + 114: uint16(29503), + 115: uint16(28304), + 116: uint16(32536), + 117: uint16(36828), + 118: uint16(33489), + 119: uint16(24895), + 120: uint16(24616), + 121: uint16(38498), + 122: uint16(26352), + 123: uint16(32422), + 124: uint16(36234), + 125: uint16(36291), + 126: uint16(38053), + 127: uint16(23731), + 128: uint16(31908), + 129: uint16(26376), + 130: uint16(24742), + 131: uint16(38405), + 132: uint16(32792), + 133: uint16(20113), + 134: uint16(37095), + 135: uint16(21248), + 136: uint16(38504), + 137: uint16(20801), + 138: uint16(36816), + 139: uint16(34164), + 140: uint16(37213), + 141: uint16(26197), + 142: uint16(38901), + 143: uint16(23381), + 144: uint16(21277), + 145: uint16(30776), + 146: uint16(26434), + 147: uint16(26685), + 148: uint16(21705), + 149: uint16(28798), + 150: uint16(23472), + 151: uint16(36733), + 152: uint16(20877), + 153: uint16(22312), + 154: uint16(21681), + 155: uint16(25874), + 156: uint16(26242), + 157: uint16(36190), + 158: uint16(36163), + 159: uint16(33039), + 160: uint16(33900), + 161: uint16(36973), + 162: uint16(31967), + 163: uint16(20991), + 164: uint16(34299), + 165: uint16(26531), + 166: uint16(26089), + 167: uint16(28577), + 168: uint16(34468), + 169: uint16(36481), + 170: uint16(22122), + 171: uint16(36896), + 172: uint16(30338), + 173: uint16(28790), + 174: uint16(29157), + 175: uint16(36131), + 176: uint16(25321), + 177: uint16(21017), + 178: uint16(27901), + 179: uint16(36156), + 180: uint16(24590), + 181: uint16(22686), + 182: uint16(24974), + 183: uint16(26366), + 184: uint16(36192), + 185: uint16(25166), + 186: uint16(21939), + 187: uint16(28195), + 188: uint16(26413), + 189: uint16(36711), + }, + 84: { + 0: uint16(35457), + 1: uint16(35458), + 2: uint16(35459), + 3: uint16(35460), + 4: uint16(35461), + 5: uint16(35462), + 6: uint16(35463), + 7: uint16(35464), + 8: uint16(35467), + 9: uint16(35468), + 10: uint16(35469), + 11: uint16(35470), + 12: uint16(35471), + 13: uint16(35472), + 14: uint16(35473), + 15: uint16(35474), + 16: uint16(35476), + 17: uint16(35477), + 18: uint16(35478), + 19: uint16(35479), + 20: uint16(35480), + 21: uint16(35481), + 22: uint16(35482), + 23: uint16(35483), + 24: uint16(35484), + 25: uint16(35485), + 26: uint16(35486), + 27: uint16(35487), + 28: uint16(35488), + 29: uint16(35489), + 30: uint16(35490), + 31: uint16(35491), + 32: uint16(35492), + 33: uint16(35493), + 34: uint16(35494), + 35: uint16(35495), + 36: uint16(35496), + 37: uint16(35497), + 38: uint16(35498), + 39: uint16(35499), + 40: uint16(35500), + 41: uint16(35501), + 42: uint16(35502), + 43: uint16(35503), + 44: uint16(35504), + 45: uint16(35505), + 46: uint16(35506), + 47: uint16(35507), + 48: uint16(35508), + 49: uint16(35509), + 50: uint16(35510), + 51: uint16(35511), + 52: uint16(35512), + 53: uint16(35513), + 54: uint16(35514), + 55: uint16(35515), + 56: uint16(35516), + 57: uint16(35517), + 58: uint16(35518), + 59: uint16(35519), + 60: uint16(35520), + 61: uint16(35521), + 62: uint16(35522), + 63: uint16(35523), + 64: uint16(35524), + 65: uint16(35525), + 66: uint16(35526), + 67: uint16(35527), + 68: uint16(35528), + 69: uint16(35529), + 70: uint16(35530), + 71: uint16(35531), + 72: uint16(35532), + 73: uint16(35533), + 74: uint16(35534), + 75: uint16(35535), + 76: uint16(35536), + 77: uint16(35537), + 78: uint16(35538), + 79: uint16(35539), + 80: uint16(35540), + 81: uint16(35541), + 82: uint16(35542), + 83: uint16(35543), + 84: uint16(35544), + 85: uint16(35545), + 86: uint16(35546), + 87: uint16(35547), + 88: uint16(35548), + 89: uint16(35549), + 90: uint16(35550), + 91: uint16(35551), + 92: uint16(35552), + 93: uint16(35553), + 94: uint16(35554), + 95: uint16(35555), + 96: uint16(38113), + 97: uint16(38392), + 98: uint16(30504), + 99: uint16(26629), + 100: uint16(27048), + 101: uint16(21643), + 102: uint16(20045), + 103: uint16(28856), + 104: uint16(35784), + 105: uint16(25688), + 106: uint16(25995), + 107: uint16(23429), + 108: uint16(31364), + 109: uint16(20538), + 110: uint16(23528), + 111: uint16(30651), + 112: uint16(27617), + 113: uint16(35449), + 114: uint16(31896), + 115: uint16(27838), + 116: uint16(30415), + 117: uint16(26025), + 118: uint16(36759), + 119: uint16(23853), + 120: uint16(23637), + 121: uint16(34360), + 122: uint16(26632), + 123: uint16(21344), + 124: uint16(25112), + 125: uint16(31449), + 126: uint16(28251), + 127: uint16(32509), + 128: uint16(27167), + 129: uint16(31456), + 130: uint16(24432), + 131: uint16(28467), + 132: uint16(24352), + 133: uint16(25484), + 134: uint16(28072), + 135: uint16(26454), + 136: uint16(19976), + 137: uint16(24080), + 138: uint16(36134), + 139: uint16(20183), + 140: uint16(32960), + 141: uint16(30260), + 142: uint16(38556), + 143: uint16(25307), + 144: uint16(26157), + 145: uint16(25214), + 146: uint16(27836), + 147: uint16(36213), + 148: uint16(29031), + 149: uint16(32617), + 150: uint16(20806), + 151: uint16(32903), + 152: uint16(21484), + 153: uint16(36974), + 154: uint16(25240), + 155: uint16(21746), + 156: uint16(34544), + 157: uint16(36761), + 158: uint16(32773), + 159: uint16(38167), + 160: uint16(34071), + 161: uint16(36825), + 162: uint16(27993), + 163: uint16(29645), + 164: uint16(26015), + 165: uint16(30495), + 166: uint16(29956), + 167: uint16(30759), + 168: uint16(33275), + 169: uint16(36126), + 170: uint16(38024), + 171: uint16(20390), + 172: uint16(26517), + 173: uint16(30137), + 174: uint16(35786), + 175: uint16(38663), + 176: uint16(25391), + 177: uint16(38215), + 178: uint16(38453), + 179: uint16(33976), + 180: uint16(25379), + 181: uint16(30529), + 182: uint16(24449), + 183: uint16(29424), + 184: uint16(20105), + 185: uint16(24596), + 186: uint16(25972), + 187: uint16(25327), + 188: uint16(27491), + 189: uint16(25919), + }, + 85: { + 0: uint16(35556), + 1: uint16(35557), + 2: uint16(35558), + 3: uint16(35559), + 4: uint16(35560), + 5: uint16(35561), + 6: uint16(35562), + 7: uint16(35563), + 8: uint16(35564), + 9: uint16(35565), + 10: uint16(35566), + 11: uint16(35567), + 12: uint16(35568), + 13: uint16(35569), + 14: uint16(35570), + 15: uint16(35571), + 16: uint16(35572), + 17: uint16(35573), + 18: uint16(35574), + 19: uint16(35575), + 20: uint16(35576), + 21: uint16(35577), + 22: uint16(35578), + 23: uint16(35579), + 24: uint16(35580), + 25: uint16(35581), + 26: uint16(35582), + 27: uint16(35583), + 28: uint16(35584), + 29: uint16(35585), + 30: uint16(35586), + 31: uint16(35587), + 32: uint16(35588), + 33: uint16(35589), + 34: uint16(35590), + 35: uint16(35592), + 36: uint16(35593), + 37: uint16(35594), + 38: uint16(35595), + 39: uint16(35596), + 40: uint16(35597), + 41: uint16(35598), + 42: uint16(35599), + 43: uint16(35600), + 44: uint16(35601), + 45: uint16(35602), + 46: uint16(35603), + 47: uint16(35604), + 48: uint16(35605), + 49: uint16(35606), + 50: uint16(35607), + 51: uint16(35608), + 52: uint16(35609), + 53: uint16(35610), + 54: uint16(35611), + 55: uint16(35612), + 56: uint16(35613), + 57: uint16(35614), + 58: uint16(35615), + 59: uint16(35616), + 60: uint16(35617), + 61: uint16(35618), + 62: uint16(35619), + 63: uint16(35620), + 64: uint16(35621), + 65: uint16(35623), + 66: uint16(35624), + 67: uint16(35625), + 68: uint16(35626), + 69: uint16(35627), + 70: uint16(35628), + 71: uint16(35629), + 72: uint16(35630), + 73: uint16(35631), + 74: uint16(35632), + 75: uint16(35633), + 76: uint16(35634), + 77: uint16(35635), + 78: uint16(35636), + 79: uint16(35637), + 80: uint16(35638), + 81: uint16(35639), + 82: uint16(35640), + 83: uint16(35641), + 84: uint16(35642), + 85: uint16(35643), + 86: uint16(35644), + 87: uint16(35645), + 88: uint16(35646), + 89: uint16(35647), + 90: uint16(35648), + 91: uint16(35649), + 92: uint16(35650), + 93: uint16(35651), + 94: uint16(35652), + 95: uint16(35653), + 96: uint16(24103), + 97: uint16(30151), + 98: uint16(37073), + 99: uint16(35777), + 100: uint16(33437), + 101: uint16(26525), + 102: uint16(25903), + 103: uint16(21553), + 104: uint16(34584), + 105: uint16(30693), + 106: uint16(32930), + 107: uint16(33026), + 108: uint16(27713), + 109: uint16(20043), + 110: uint16(32455), + 111: uint16(32844), + 112: uint16(30452), + 113: uint16(26893), + 114: uint16(27542), + 115: uint16(25191), + 116: uint16(20540), + 117: uint16(20356), + 118: uint16(22336), + 119: uint16(25351), + 120: uint16(27490), + 121: uint16(36286), + 122: uint16(21482), + 123: uint16(26088), + 124: uint16(32440), + 125: uint16(24535), + 126: uint16(25370), + 127: uint16(25527), + 128: uint16(33267), + 129: uint16(33268), + 130: uint16(32622), + 131: uint16(24092), + 132: uint16(23769), + 133: uint16(21046), + 134: uint16(26234), + 135: uint16(31209), + 136: uint16(31258), + 137: uint16(36136), + 138: uint16(28825), + 139: uint16(30164), + 140: uint16(28382), + 141: uint16(27835), + 142: uint16(31378), + 143: uint16(20013), + 144: uint16(30405), + 145: uint16(24544), + 146: uint16(38047), + 147: uint16(34935), + 148: uint16(32456), + 149: uint16(31181), + 150: uint16(32959), + 151: uint16(37325), + 152: uint16(20210), + 153: uint16(20247), + 154: uint16(33311), + 155: uint16(21608), + 156: uint16(24030), + 157: uint16(27954), + 158: uint16(35788), + 159: uint16(31909), + 160: uint16(36724), + 161: uint16(32920), + 162: uint16(24090), + 163: uint16(21650), + 164: uint16(30385), + 165: uint16(23449), + 166: uint16(26172), + 167: uint16(39588), + 168: uint16(29664), + 169: uint16(26666), + 170: uint16(34523), + 171: uint16(26417), + 172: uint16(29482), + 173: uint16(35832), + 174: uint16(35803), + 175: uint16(36880), + 176: uint16(31481), + 177: uint16(28891), + 178: uint16(29038), + 179: uint16(25284), + 180: uint16(30633), + 181: uint16(22065), + 182: uint16(20027), + 183: uint16(33879), + 184: uint16(26609), + 185: uint16(21161), + 186: uint16(34496), + 187: uint16(36142), + 188: uint16(38136), + 189: uint16(31569), + }, + 86: { + 0: uint16(35654), + 1: uint16(35655), + 2: uint16(35656), + 3: uint16(35657), + 4: uint16(35658), + 5: uint16(35659), + 6: uint16(35660), + 7: uint16(35661), + 8: uint16(35662), + 9: uint16(35663), + 10: uint16(35664), + 11: uint16(35665), + 12: uint16(35666), + 13: uint16(35667), + 14: uint16(35668), + 15: uint16(35669), + 16: uint16(35670), + 17: uint16(35671), + 18: uint16(35672), + 19: uint16(35673), + 20: uint16(35674), + 21: uint16(35675), + 22: uint16(35676), + 23: uint16(35677), + 24: uint16(35678), + 25: uint16(35679), + 26: uint16(35680), + 27: uint16(35681), + 28: uint16(35682), + 29: uint16(35683), + 30: uint16(35684), + 31: uint16(35685), + 32: uint16(35687), + 33: uint16(35688), + 34: uint16(35689), + 35: uint16(35690), + 36: uint16(35691), + 37: uint16(35693), + 38: uint16(35694), + 39: uint16(35695), + 40: uint16(35696), + 41: uint16(35697), + 42: uint16(35698), + 43: uint16(35699), + 44: uint16(35700), + 45: uint16(35701), + 46: uint16(35702), + 47: uint16(35703), + 48: uint16(35704), + 49: uint16(35705), + 50: uint16(35706), + 51: uint16(35707), + 52: uint16(35708), + 53: uint16(35709), + 54: uint16(35710), + 55: uint16(35711), + 56: uint16(35712), + 57: uint16(35713), + 58: uint16(35714), + 59: uint16(35715), + 60: uint16(35716), + 61: uint16(35717), + 62: uint16(35718), + 63: uint16(35719), + 64: uint16(35720), + 65: uint16(35721), + 66: uint16(35722), + 67: uint16(35723), + 68: uint16(35724), + 69: uint16(35725), + 70: uint16(35726), + 71: uint16(35727), + 72: uint16(35728), + 73: uint16(35729), + 74: uint16(35730), + 75: uint16(35731), + 76: uint16(35732), + 77: uint16(35733), + 78: uint16(35734), + 79: uint16(35735), + 80: uint16(35736), + 81: uint16(35737), + 82: uint16(35738), + 83: uint16(35739), + 84: uint16(35740), + 85: uint16(35741), + 86: uint16(35742), + 87: uint16(35743), + 88: uint16(35756), + 89: uint16(35761), + 90: uint16(35771), + 91: uint16(35783), + 92: uint16(35792), + 93: uint16(35818), + 94: uint16(35849), + 95: uint16(35870), + 96: uint16(20303), + 97: uint16(27880), + 98: uint16(31069), + 99: uint16(39547), + 100: uint16(25235), + 101: uint16(29226), + 102: uint16(25341), + 103: uint16(19987), + 104: uint16(30742), + 105: uint16(36716), + 106: uint16(25776), + 107: uint16(36186), + 108: uint16(31686), + 109: uint16(26729), + 110: uint16(24196), + 111: uint16(35013), + 112: uint16(22918), + 113: uint16(25758), + 114: uint16(22766), + 115: uint16(29366), + 116: uint16(26894), + 117: uint16(38181), + 118: uint16(36861), + 119: uint16(36184), + 120: uint16(22368), + 121: uint16(32512), + 122: uint16(35846), + 123: uint16(20934), + 124: uint16(25417), + 125: uint16(25305), + 126: uint16(21331), + 127: uint16(26700), + 128: uint16(29730), + 129: uint16(33537), + 130: uint16(37196), + 131: uint16(21828), + 132: uint16(30528), + 133: uint16(28796), + 134: uint16(27978), + 135: uint16(20857), + 136: uint16(21672), + 137: uint16(36164), + 138: uint16(23039), + 139: uint16(28363), + 140: uint16(28100), + 141: uint16(23388), + 142: uint16(32043), + 143: uint16(20180), + 144: uint16(31869), + 145: uint16(28371), + 146: uint16(23376), + 147: uint16(33258), + 148: uint16(28173), + 149: uint16(23383), + 150: uint16(39683), + 151: uint16(26837), + 152: uint16(36394), + 153: uint16(23447), + 154: uint16(32508), + 155: uint16(24635), + 156: uint16(32437), + 157: uint16(37049), + 158: uint16(36208), + 159: uint16(22863), + 160: uint16(25549), + 161: uint16(31199), + 162: uint16(36275), + 163: uint16(21330), + 164: uint16(26063), + 165: uint16(31062), + 166: uint16(35781), + 167: uint16(38459), + 168: uint16(32452), + 169: uint16(38075), + 170: uint16(32386), + 171: uint16(22068), + 172: uint16(37257), + 173: uint16(26368), + 174: uint16(32618), + 175: uint16(23562), + 176: uint16(36981), + 177: uint16(26152), + 178: uint16(24038), + 179: uint16(20304), + 180: uint16(26590), + 181: uint16(20570), + 182: uint16(20316), + 183: uint16(22352), + 184: uint16(24231), + 185: uint16(59408), + 186: uint16(59409), + 187: uint16(59410), + 188: uint16(59411), + 189: uint16(59412), + }, + 87: { + 0: uint16(35896), + 1: uint16(35897), + 2: uint16(35898), + 3: uint16(35899), + 4: uint16(35900), + 5: uint16(35901), + 6: uint16(35902), + 7: uint16(35903), + 8: uint16(35904), + 9: uint16(35906), + 10: uint16(35907), + 11: uint16(35908), + 12: uint16(35909), + 13: uint16(35912), + 14: uint16(35914), + 15: uint16(35915), + 16: uint16(35917), + 17: uint16(35918), + 18: uint16(35919), + 19: uint16(35920), + 20: uint16(35921), + 21: uint16(35922), + 22: uint16(35923), + 23: uint16(35924), + 24: uint16(35926), + 25: uint16(35927), + 26: uint16(35928), + 27: uint16(35929), + 28: uint16(35931), + 29: uint16(35932), + 30: uint16(35933), + 31: uint16(35934), + 32: uint16(35935), + 33: uint16(35936), + 34: uint16(35939), + 35: uint16(35940), + 36: uint16(35941), + 37: uint16(35942), + 38: uint16(35943), + 39: uint16(35944), + 40: uint16(35945), + 41: uint16(35948), + 42: uint16(35949), + 43: uint16(35950), + 44: uint16(35951), + 45: uint16(35952), + 46: uint16(35953), + 47: uint16(35954), + 48: uint16(35956), + 49: uint16(35957), + 50: uint16(35958), + 51: uint16(35959), + 52: uint16(35963), + 53: uint16(35964), + 54: uint16(35965), + 55: uint16(35966), + 56: uint16(35967), + 57: uint16(35968), + 58: uint16(35969), + 59: uint16(35971), + 60: uint16(35972), + 61: uint16(35974), + 62: uint16(35975), + 63: uint16(35976), + 64: uint16(35979), + 65: uint16(35981), + 66: uint16(35982), + 67: uint16(35983), + 68: uint16(35984), + 69: uint16(35985), + 70: uint16(35986), + 71: uint16(35987), + 72: uint16(35989), + 73: uint16(35990), + 74: uint16(35991), + 75: uint16(35993), + 76: uint16(35994), + 77: uint16(35995), + 78: uint16(35996), + 79: uint16(35997), + 80: uint16(35998), + 81: uint16(35999), + 82: uint16(36000), + 83: uint16(36001), + 84: uint16(36002), + 85: uint16(36003), + 86: uint16(36004), + 87: uint16(36005), + 88: uint16(36006), + 89: uint16(36007), + 90: uint16(36008), + 91: uint16(36009), + 92: uint16(36010), + 93: uint16(36011), + 94: uint16(36012), + 95: uint16(36013), + 96: uint16(20109), + 97: uint16(19980), + 98: uint16(20800), + 99: uint16(19984), + 100: uint16(24319), + 101: uint16(21317), + 102: uint16(19989), + 103: uint16(20120), + 104: uint16(19998), + 105: uint16(39730), + 106: uint16(23404), + 107: uint16(22121), + 108: uint16(20008), + 109: uint16(31162), + 110: uint16(20031), + 111: uint16(21269), + 112: uint16(20039), + 113: uint16(22829), + 114: uint16(29243), + 115: uint16(21358), + 116: uint16(27664), + 117: uint16(22239), + 118: uint16(32996), + 119: uint16(39319), + 120: uint16(27603), + 121: uint16(30590), + 122: uint16(40727), + 123: uint16(20022), + 124: uint16(20127), + 125: uint16(40720), + 126: uint16(20060), + 127: uint16(20073), + 128: uint16(20115), + 129: uint16(33416), + 130: uint16(23387), + 131: uint16(21868), + 132: uint16(22031), + 133: uint16(20164), + 134: uint16(21389), + 135: uint16(21405), + 136: uint16(21411), + 137: uint16(21413), + 138: uint16(21422), + 139: uint16(38757), + 140: uint16(36189), + 141: uint16(21274), + 142: uint16(21493), + 143: uint16(21286), + 144: uint16(21294), + 145: uint16(21310), + 146: uint16(36188), + 147: uint16(21350), + 148: uint16(21347), + 149: uint16(20994), + 150: uint16(21000), + 151: uint16(21006), + 152: uint16(21037), + 153: uint16(21043), + 154: uint16(21055), + 155: uint16(21056), + 156: uint16(21068), + 157: uint16(21086), + 158: uint16(21089), + 159: uint16(21084), + 160: uint16(33967), + 161: uint16(21117), + 162: uint16(21122), + 163: uint16(21121), + 164: uint16(21136), + 165: uint16(21139), + 166: uint16(20866), + 167: uint16(32596), + 168: uint16(20155), + 169: uint16(20163), + 170: uint16(20169), + 171: uint16(20162), + 172: uint16(20200), + 173: uint16(20193), + 174: uint16(20203), + 175: uint16(20190), + 176: uint16(20251), + 177: uint16(20211), + 178: uint16(20258), + 179: uint16(20324), + 180: uint16(20213), + 181: uint16(20261), + 182: uint16(20263), + 183: uint16(20233), + 184: uint16(20267), + 185: uint16(20318), + 186: uint16(20327), + 187: uint16(25912), + 188: uint16(20314), + 189: uint16(20317), + }, + 88: { + 0: uint16(36014), + 1: uint16(36015), + 2: uint16(36016), + 3: uint16(36017), + 4: uint16(36018), + 5: uint16(36019), + 6: uint16(36020), + 7: uint16(36021), + 8: uint16(36022), + 9: uint16(36023), + 10: uint16(36024), + 11: uint16(36025), + 12: uint16(36026), + 13: uint16(36027), + 14: uint16(36028), + 15: uint16(36029), + 16: uint16(36030), + 17: uint16(36031), + 18: uint16(36032), + 19: uint16(36033), + 20: uint16(36034), + 21: uint16(36035), + 22: uint16(36036), + 23: uint16(36037), + 24: uint16(36038), + 25: uint16(36039), + 26: uint16(36040), + 27: uint16(36041), + 28: uint16(36042), + 29: uint16(36043), + 30: uint16(36044), + 31: uint16(36045), + 32: uint16(36046), + 33: uint16(36047), + 34: uint16(36048), + 35: uint16(36049), + 36: uint16(36050), + 37: uint16(36051), + 38: uint16(36052), + 39: uint16(36053), + 40: uint16(36054), + 41: uint16(36055), + 42: uint16(36056), + 43: uint16(36057), + 44: uint16(36058), + 45: uint16(36059), + 46: uint16(36060), + 47: uint16(36061), + 48: uint16(36062), + 49: uint16(36063), + 50: uint16(36064), + 51: uint16(36065), + 52: uint16(36066), + 53: uint16(36067), + 54: uint16(36068), + 55: uint16(36069), + 56: uint16(36070), + 57: uint16(36071), + 58: uint16(36072), + 59: uint16(36073), + 60: uint16(36074), + 61: uint16(36075), + 62: uint16(36076), + 63: uint16(36077), + 64: uint16(36078), + 65: uint16(36079), + 66: uint16(36080), + 67: uint16(36081), + 68: uint16(36082), + 69: uint16(36083), + 70: uint16(36084), + 71: uint16(36085), + 72: uint16(36086), + 73: uint16(36087), + 74: uint16(36088), + 75: uint16(36089), + 76: uint16(36090), + 77: uint16(36091), + 78: uint16(36092), + 79: uint16(36093), + 80: uint16(36094), + 81: uint16(36095), + 82: uint16(36096), + 83: uint16(36097), + 84: uint16(36098), + 85: uint16(36099), + 86: uint16(36100), + 87: uint16(36101), + 88: uint16(36102), + 89: uint16(36103), + 90: uint16(36104), + 91: uint16(36105), + 92: uint16(36106), + 93: uint16(36107), + 94: uint16(36108), + 95: uint16(36109), + 96: uint16(20319), + 97: uint16(20311), + 98: uint16(20274), + 99: uint16(20285), + 100: uint16(20342), + 101: uint16(20340), + 102: uint16(20369), + 103: uint16(20361), + 104: uint16(20355), + 105: uint16(20367), + 106: uint16(20350), + 107: uint16(20347), + 108: uint16(20394), + 109: uint16(20348), + 110: uint16(20396), + 111: uint16(20372), + 112: uint16(20454), + 113: uint16(20456), + 114: uint16(20458), + 115: uint16(20421), + 116: uint16(20442), + 117: uint16(20451), + 118: uint16(20444), + 119: uint16(20433), + 120: uint16(20447), + 121: uint16(20472), + 122: uint16(20521), + 123: uint16(20556), + 124: uint16(20467), + 125: uint16(20524), + 126: uint16(20495), + 127: uint16(20526), + 128: uint16(20525), + 129: uint16(20478), + 130: uint16(20508), + 131: uint16(20492), + 132: uint16(20517), + 133: uint16(20520), + 134: uint16(20606), + 135: uint16(20547), + 136: uint16(20565), + 137: uint16(20552), + 138: uint16(20558), + 139: uint16(20588), + 140: uint16(20603), + 141: uint16(20645), + 142: uint16(20647), + 143: uint16(20649), + 144: uint16(20666), + 145: uint16(20694), + 146: uint16(20742), + 147: uint16(20717), + 148: uint16(20716), + 149: uint16(20710), + 150: uint16(20718), + 151: uint16(20743), + 152: uint16(20747), + 153: uint16(20189), + 154: uint16(27709), + 155: uint16(20312), + 156: uint16(20325), + 157: uint16(20430), + 158: uint16(40864), + 159: uint16(27718), + 160: uint16(31860), + 161: uint16(20846), + 162: uint16(24061), + 163: uint16(40649), + 164: uint16(39320), + 165: uint16(20865), + 166: uint16(22804), + 167: uint16(21241), + 168: uint16(21261), + 169: uint16(35335), + 170: uint16(21264), + 171: uint16(20971), + 172: uint16(22809), + 173: uint16(20821), + 174: uint16(20128), + 175: uint16(20822), + 176: uint16(20147), + 177: uint16(34926), + 178: uint16(34980), + 179: uint16(20149), + 180: uint16(33044), + 181: uint16(35026), + 182: uint16(31104), + 183: uint16(23348), + 184: uint16(34819), + 185: uint16(32696), + 186: uint16(20907), + 187: uint16(20913), + 188: uint16(20925), + 189: uint16(20924), + }, + 89: { + 0: uint16(36110), + 1: uint16(36111), + 2: uint16(36112), + 3: uint16(36113), + 4: uint16(36114), + 5: uint16(36115), + 6: uint16(36116), + 7: uint16(36117), + 8: uint16(36118), + 9: uint16(36119), + 10: uint16(36120), + 11: uint16(36121), + 12: uint16(36122), + 13: uint16(36123), + 14: uint16(36124), + 15: uint16(36128), + 16: uint16(36177), + 17: uint16(36178), + 18: uint16(36183), + 19: uint16(36191), + 20: uint16(36197), + 21: uint16(36200), + 22: uint16(36201), + 23: uint16(36202), + 24: uint16(36204), + 25: uint16(36206), + 26: uint16(36207), + 27: uint16(36209), + 28: uint16(36210), + 29: uint16(36216), + 30: uint16(36217), + 31: uint16(36218), + 32: uint16(36219), + 33: uint16(36220), + 34: uint16(36221), + 35: uint16(36222), + 36: uint16(36223), + 37: uint16(36224), + 38: uint16(36226), + 39: uint16(36227), + 40: uint16(36230), + 41: uint16(36231), + 42: uint16(36232), + 43: uint16(36233), + 44: uint16(36236), + 45: uint16(36237), + 46: uint16(36238), + 47: uint16(36239), + 48: uint16(36240), + 49: uint16(36242), + 50: uint16(36243), + 51: uint16(36245), + 52: uint16(36246), + 53: uint16(36247), + 54: uint16(36248), + 55: uint16(36249), + 56: uint16(36250), + 57: uint16(36251), + 58: uint16(36252), + 59: uint16(36253), + 60: uint16(36254), + 61: uint16(36256), + 62: uint16(36257), + 63: uint16(36258), + 64: uint16(36260), + 65: uint16(36261), + 66: uint16(36262), + 67: uint16(36263), + 68: uint16(36264), + 69: uint16(36265), + 70: uint16(36266), + 71: uint16(36267), + 72: uint16(36268), + 73: uint16(36269), + 74: uint16(36270), + 75: uint16(36271), + 76: uint16(36272), + 77: uint16(36274), + 78: uint16(36278), + 79: uint16(36279), + 80: uint16(36281), + 81: uint16(36283), + 82: uint16(36285), + 83: uint16(36288), + 84: uint16(36289), + 85: uint16(36290), + 86: uint16(36293), + 87: uint16(36295), + 88: uint16(36296), + 89: uint16(36297), + 90: uint16(36298), + 91: uint16(36301), + 92: uint16(36304), + 93: uint16(36306), + 94: uint16(36307), + 95: uint16(36308), + 96: uint16(20935), + 97: uint16(20886), + 98: uint16(20898), + 99: uint16(20901), + 100: uint16(35744), + 101: uint16(35750), + 102: uint16(35751), + 103: uint16(35754), + 104: uint16(35764), + 105: uint16(35765), + 106: uint16(35767), + 107: uint16(35778), + 108: uint16(35779), + 109: uint16(35787), + 110: uint16(35791), + 111: uint16(35790), + 112: uint16(35794), + 113: uint16(35795), + 114: uint16(35796), + 115: uint16(35798), + 116: uint16(35800), + 117: uint16(35801), + 118: uint16(35804), + 119: uint16(35807), + 120: uint16(35808), + 121: uint16(35812), + 122: uint16(35816), + 123: uint16(35817), + 124: uint16(35822), + 125: uint16(35824), + 126: uint16(35827), + 127: uint16(35830), + 128: uint16(35833), + 129: uint16(35836), + 130: uint16(35839), + 131: uint16(35840), + 132: uint16(35842), + 133: uint16(35844), + 134: uint16(35847), + 135: uint16(35852), + 136: uint16(35855), + 137: uint16(35857), + 138: uint16(35858), + 139: uint16(35860), + 140: uint16(35861), + 141: uint16(35862), + 142: uint16(35865), + 143: uint16(35867), + 144: uint16(35864), + 145: uint16(35869), + 146: uint16(35871), + 147: uint16(35872), + 148: uint16(35873), + 149: uint16(35877), + 150: uint16(35879), + 151: uint16(35882), + 152: uint16(35883), + 153: uint16(35886), + 154: uint16(35887), + 155: uint16(35890), + 156: uint16(35891), + 157: uint16(35893), + 158: uint16(35894), + 159: uint16(21353), + 160: uint16(21370), + 161: uint16(38429), + 162: uint16(38434), + 163: uint16(38433), + 164: uint16(38449), + 165: uint16(38442), + 166: uint16(38461), + 167: uint16(38460), + 168: uint16(38466), + 169: uint16(38473), + 170: uint16(38484), + 171: uint16(38495), + 172: uint16(38503), + 173: uint16(38508), + 174: uint16(38514), + 175: uint16(38516), + 176: uint16(38536), + 177: uint16(38541), + 178: uint16(38551), + 179: uint16(38576), + 180: uint16(37015), + 181: uint16(37019), + 182: uint16(37021), + 183: uint16(37017), + 184: uint16(37036), + 185: uint16(37025), + 186: uint16(37044), + 187: uint16(37043), + 188: uint16(37046), + 189: uint16(37050), + }, + 90: { + 0: uint16(36309), + 1: uint16(36312), + 2: uint16(36313), + 3: uint16(36316), + 4: uint16(36320), + 5: uint16(36321), + 6: uint16(36322), + 7: uint16(36325), + 8: uint16(36326), + 9: uint16(36327), + 10: uint16(36329), + 11: uint16(36333), + 12: uint16(36334), + 13: uint16(36336), + 14: uint16(36337), + 15: uint16(36338), + 16: uint16(36340), + 17: uint16(36342), + 18: uint16(36348), + 19: uint16(36350), + 20: uint16(36351), + 21: uint16(36352), + 22: uint16(36353), + 23: uint16(36354), + 24: uint16(36355), + 25: uint16(36356), + 26: uint16(36358), + 27: uint16(36359), + 28: uint16(36360), + 29: uint16(36363), + 30: uint16(36365), + 31: uint16(36366), + 32: uint16(36368), + 33: uint16(36369), + 34: uint16(36370), + 35: uint16(36371), + 36: uint16(36373), + 37: uint16(36374), + 38: uint16(36375), + 39: uint16(36376), + 40: uint16(36377), + 41: uint16(36378), + 42: uint16(36379), + 43: uint16(36380), + 44: uint16(36384), + 45: uint16(36385), + 46: uint16(36388), + 47: uint16(36389), + 48: uint16(36390), + 49: uint16(36391), + 50: uint16(36392), + 51: uint16(36395), + 52: uint16(36397), + 53: uint16(36400), + 54: uint16(36402), + 55: uint16(36403), + 56: uint16(36404), + 57: uint16(36406), + 58: uint16(36407), + 59: uint16(36408), + 60: uint16(36411), + 61: uint16(36412), + 62: uint16(36414), + 63: uint16(36415), + 64: uint16(36419), + 65: uint16(36421), + 66: uint16(36422), + 67: uint16(36428), + 68: uint16(36429), + 69: uint16(36430), + 70: uint16(36431), + 71: uint16(36432), + 72: uint16(36435), + 73: uint16(36436), + 74: uint16(36437), + 75: uint16(36438), + 76: uint16(36439), + 77: uint16(36440), + 78: uint16(36442), + 79: uint16(36443), + 80: uint16(36444), + 81: uint16(36445), + 82: uint16(36446), + 83: uint16(36447), + 84: uint16(36448), + 85: uint16(36449), + 86: uint16(36450), + 87: uint16(36451), + 88: uint16(36452), + 89: uint16(36453), + 90: uint16(36455), + 91: uint16(36456), + 92: uint16(36458), + 93: uint16(36459), + 94: uint16(36462), + 95: uint16(36465), + 96: uint16(37048), + 97: uint16(37040), + 98: uint16(37071), + 99: uint16(37061), + 100: uint16(37054), + 101: uint16(37072), + 102: uint16(37060), + 103: uint16(37063), + 104: uint16(37075), + 105: uint16(37094), + 106: uint16(37090), + 107: uint16(37084), + 108: uint16(37079), + 109: uint16(37083), + 110: uint16(37099), + 111: uint16(37103), + 112: uint16(37118), + 113: uint16(37124), + 114: uint16(37154), + 115: uint16(37150), + 116: uint16(37155), + 117: uint16(37169), + 118: uint16(37167), + 119: uint16(37177), + 120: uint16(37187), + 121: uint16(37190), + 122: uint16(21005), + 123: uint16(22850), + 124: uint16(21154), + 125: uint16(21164), + 126: uint16(21165), + 127: uint16(21182), + 128: uint16(21759), + 129: uint16(21200), + 130: uint16(21206), + 131: uint16(21232), + 132: uint16(21471), + 133: uint16(29166), + 134: uint16(30669), + 135: uint16(24308), + 136: uint16(20981), + 137: uint16(20988), + 138: uint16(39727), + 139: uint16(21430), + 140: uint16(24321), + 141: uint16(30042), + 142: uint16(24047), + 143: uint16(22348), + 144: uint16(22441), + 145: uint16(22433), + 146: uint16(22654), + 147: uint16(22716), + 148: uint16(22725), + 149: uint16(22737), + 150: uint16(22313), + 151: uint16(22316), + 152: uint16(22314), + 153: uint16(22323), + 154: uint16(22329), + 155: uint16(22318), + 156: uint16(22319), + 157: uint16(22364), + 158: uint16(22331), + 159: uint16(22338), + 160: uint16(22377), + 161: uint16(22405), + 162: uint16(22379), + 163: uint16(22406), + 164: uint16(22396), + 165: uint16(22395), + 166: uint16(22376), + 167: uint16(22381), + 168: uint16(22390), + 169: uint16(22387), + 170: uint16(22445), + 171: uint16(22436), + 172: uint16(22412), + 173: uint16(22450), + 174: uint16(22479), + 175: uint16(22439), + 176: uint16(22452), + 177: uint16(22419), + 178: uint16(22432), + 179: uint16(22485), + 180: uint16(22488), + 181: uint16(22490), + 182: uint16(22489), + 183: uint16(22482), + 184: uint16(22456), + 185: uint16(22516), + 186: uint16(22511), + 187: uint16(22520), + 188: uint16(22500), + 189: uint16(22493), + }, + 91: { + 0: uint16(36467), + 1: uint16(36469), + 2: uint16(36471), + 3: uint16(36472), + 4: uint16(36473), + 5: uint16(36474), + 6: uint16(36475), + 7: uint16(36477), + 8: uint16(36478), + 9: uint16(36480), + 10: uint16(36482), + 11: uint16(36483), + 12: uint16(36484), + 13: uint16(36486), + 14: uint16(36488), + 15: uint16(36489), + 16: uint16(36490), + 17: uint16(36491), + 18: uint16(36492), + 19: uint16(36493), + 20: uint16(36494), + 21: uint16(36497), + 22: uint16(36498), + 23: uint16(36499), + 24: uint16(36501), + 25: uint16(36502), + 26: uint16(36503), + 27: uint16(36504), + 28: uint16(36505), + 29: uint16(36506), + 30: uint16(36507), + 31: uint16(36509), + 32: uint16(36511), + 33: uint16(36512), + 34: uint16(36513), + 35: uint16(36514), + 36: uint16(36515), + 37: uint16(36516), + 38: uint16(36517), + 39: uint16(36518), + 40: uint16(36519), + 41: uint16(36520), + 42: uint16(36521), + 43: uint16(36522), + 44: uint16(36525), + 45: uint16(36526), + 46: uint16(36528), + 47: uint16(36529), + 48: uint16(36531), + 49: uint16(36532), + 50: uint16(36533), + 51: uint16(36534), + 52: uint16(36535), + 53: uint16(36536), + 54: uint16(36537), + 55: uint16(36539), + 56: uint16(36540), + 57: uint16(36541), + 58: uint16(36542), + 59: uint16(36543), + 60: uint16(36544), + 61: uint16(36545), + 62: uint16(36546), + 63: uint16(36547), + 64: uint16(36548), + 65: uint16(36549), + 66: uint16(36550), + 67: uint16(36551), + 68: uint16(36552), + 69: uint16(36553), + 70: uint16(36554), + 71: uint16(36555), + 72: uint16(36556), + 73: uint16(36557), + 74: uint16(36559), + 75: uint16(36560), + 76: uint16(36561), + 77: uint16(36562), + 78: uint16(36563), + 79: uint16(36564), + 80: uint16(36565), + 81: uint16(36566), + 82: uint16(36567), + 83: uint16(36568), + 84: uint16(36569), + 85: uint16(36570), + 86: uint16(36571), + 87: uint16(36572), + 88: uint16(36573), + 89: uint16(36574), + 90: uint16(36575), + 91: uint16(36576), + 92: uint16(36577), + 93: uint16(36578), + 94: uint16(36579), + 95: uint16(36580), + 96: uint16(22539), + 97: uint16(22541), + 98: uint16(22525), + 99: uint16(22509), + 100: uint16(22528), + 101: uint16(22558), + 102: uint16(22553), + 103: uint16(22596), + 104: uint16(22560), + 105: uint16(22629), + 106: uint16(22636), + 107: uint16(22657), + 108: uint16(22665), + 109: uint16(22682), + 110: uint16(22656), + 111: uint16(39336), + 112: uint16(40729), + 113: uint16(25087), + 114: uint16(33401), + 115: uint16(33405), + 116: uint16(33407), + 117: uint16(33423), + 118: uint16(33418), + 119: uint16(33448), + 120: uint16(33412), + 121: uint16(33422), + 122: uint16(33425), + 123: uint16(33431), + 124: uint16(33433), + 125: uint16(33451), + 126: uint16(33464), + 127: uint16(33470), + 128: uint16(33456), + 129: uint16(33480), + 130: uint16(33482), + 131: uint16(33507), + 132: uint16(33432), + 133: uint16(33463), + 134: uint16(33454), + 135: uint16(33483), + 136: uint16(33484), + 137: uint16(33473), + 138: uint16(33449), + 139: uint16(33460), + 140: uint16(33441), + 141: uint16(33450), + 142: uint16(33439), + 143: uint16(33476), + 144: uint16(33486), + 145: uint16(33444), + 146: uint16(33505), + 147: uint16(33545), + 148: uint16(33527), + 149: uint16(33508), + 150: uint16(33551), + 151: uint16(33543), + 152: uint16(33500), + 153: uint16(33524), + 154: uint16(33490), + 155: uint16(33496), + 156: uint16(33548), + 157: uint16(33531), + 158: uint16(33491), + 159: uint16(33553), + 160: uint16(33562), + 161: uint16(33542), + 162: uint16(33556), + 163: uint16(33557), + 164: uint16(33504), + 165: uint16(33493), + 166: uint16(33564), + 167: uint16(33617), + 168: uint16(33627), + 169: uint16(33628), + 170: uint16(33544), + 171: uint16(33682), + 172: uint16(33596), + 173: uint16(33588), + 174: uint16(33585), + 175: uint16(33691), + 176: uint16(33630), + 177: uint16(33583), + 178: uint16(33615), + 179: uint16(33607), + 180: uint16(33603), + 181: uint16(33631), + 182: uint16(33600), + 183: uint16(33559), + 184: uint16(33632), + 185: uint16(33581), + 186: uint16(33594), + 187: uint16(33587), + 188: uint16(33638), + 189: uint16(33637), + }, + 92: { + 0: uint16(36581), + 1: uint16(36582), + 2: uint16(36583), + 3: uint16(36584), + 4: uint16(36585), + 5: uint16(36586), + 6: uint16(36587), + 7: uint16(36588), + 8: uint16(36589), + 9: uint16(36590), + 10: uint16(36591), + 11: uint16(36592), + 12: uint16(36593), + 13: uint16(36594), + 14: uint16(36595), + 15: uint16(36596), + 16: uint16(36597), + 17: uint16(36598), + 18: uint16(36599), + 19: uint16(36600), + 20: uint16(36601), + 21: uint16(36602), + 22: uint16(36603), + 23: uint16(36604), + 24: uint16(36605), + 25: uint16(36606), + 26: uint16(36607), + 27: uint16(36608), + 28: uint16(36609), + 29: uint16(36610), + 30: uint16(36611), + 31: uint16(36612), + 32: uint16(36613), + 33: uint16(36614), + 34: uint16(36615), + 35: uint16(36616), + 36: uint16(36617), + 37: uint16(36618), + 38: uint16(36619), + 39: uint16(36620), + 40: uint16(36621), + 41: uint16(36622), + 42: uint16(36623), + 43: uint16(36624), + 44: uint16(36625), + 45: uint16(36626), + 46: uint16(36627), + 47: uint16(36628), + 48: uint16(36629), + 49: uint16(36630), + 50: uint16(36631), + 51: uint16(36632), + 52: uint16(36633), + 53: uint16(36634), + 54: uint16(36635), + 55: uint16(36636), + 56: uint16(36637), + 57: uint16(36638), + 58: uint16(36639), + 59: uint16(36640), + 60: uint16(36641), + 61: uint16(36642), + 62: uint16(36643), + 63: uint16(36644), + 64: uint16(36645), + 65: uint16(36646), + 66: uint16(36647), + 67: uint16(36648), + 68: uint16(36649), + 69: uint16(36650), + 70: uint16(36651), + 71: uint16(36652), + 72: uint16(36653), + 73: uint16(36654), + 74: uint16(36655), + 75: uint16(36656), + 76: uint16(36657), + 77: uint16(36658), + 78: uint16(36659), + 79: uint16(36660), + 80: uint16(36661), + 81: uint16(36662), + 82: uint16(36663), + 83: uint16(36664), + 84: uint16(36665), + 85: uint16(36666), + 86: uint16(36667), + 87: uint16(36668), + 88: uint16(36669), + 89: uint16(36670), + 90: uint16(36671), + 91: uint16(36672), + 92: uint16(36673), + 93: uint16(36674), + 94: uint16(36675), + 95: uint16(36676), + 96: uint16(33640), + 97: uint16(33563), + 98: uint16(33641), + 99: uint16(33644), + 100: uint16(33642), + 101: uint16(33645), + 102: uint16(33646), + 103: uint16(33712), + 104: uint16(33656), + 105: uint16(33715), + 106: uint16(33716), + 107: uint16(33696), + 108: uint16(33706), + 109: uint16(33683), + 110: uint16(33692), + 111: uint16(33669), + 112: uint16(33660), + 113: uint16(33718), + 114: uint16(33705), + 115: uint16(33661), + 116: uint16(33720), + 117: uint16(33659), + 118: uint16(33688), + 119: uint16(33694), + 120: uint16(33704), + 121: uint16(33722), + 122: uint16(33724), + 123: uint16(33729), + 124: uint16(33793), + 125: uint16(33765), + 126: uint16(33752), + 127: uint16(22535), + 128: uint16(33816), + 129: uint16(33803), + 130: uint16(33757), + 131: uint16(33789), + 132: uint16(33750), + 133: uint16(33820), + 134: uint16(33848), + 135: uint16(33809), + 136: uint16(33798), + 137: uint16(33748), + 138: uint16(33759), + 139: uint16(33807), + 140: uint16(33795), + 141: uint16(33784), + 142: uint16(33785), + 143: uint16(33770), + 144: uint16(33733), + 145: uint16(33728), + 146: uint16(33830), + 147: uint16(33776), + 148: uint16(33761), + 149: uint16(33884), + 150: uint16(33873), + 151: uint16(33882), + 152: uint16(33881), + 153: uint16(33907), + 154: uint16(33927), + 155: uint16(33928), + 156: uint16(33914), + 157: uint16(33929), + 158: uint16(33912), + 159: uint16(33852), + 160: uint16(33862), + 161: uint16(33897), + 162: uint16(33910), + 163: uint16(33932), + 164: uint16(33934), + 165: uint16(33841), + 166: uint16(33901), + 167: uint16(33985), + 168: uint16(33997), + 169: uint16(34000), + 170: uint16(34022), + 171: uint16(33981), + 172: uint16(34003), + 173: uint16(33994), + 174: uint16(33983), + 175: uint16(33978), + 176: uint16(34016), + 177: uint16(33953), + 178: uint16(33977), + 179: uint16(33972), + 180: uint16(33943), + 181: uint16(34021), + 182: uint16(34019), + 183: uint16(34060), + 184: uint16(29965), + 185: uint16(34104), + 186: uint16(34032), + 187: uint16(34105), + 188: uint16(34079), + 189: uint16(34106), + }, + 93: { + 0: uint16(36677), + 1: uint16(36678), + 2: uint16(36679), + 3: uint16(36680), + 4: uint16(36681), + 5: uint16(36682), + 6: uint16(36683), + 7: uint16(36684), + 8: uint16(36685), + 9: uint16(36686), + 10: uint16(36687), + 11: uint16(36688), + 12: uint16(36689), + 13: uint16(36690), + 14: uint16(36691), + 15: uint16(36692), + 16: uint16(36693), + 17: uint16(36694), + 18: uint16(36695), + 19: uint16(36696), + 20: uint16(36697), + 21: uint16(36698), + 22: uint16(36699), + 23: uint16(36700), + 24: uint16(36701), + 25: uint16(36702), + 26: uint16(36703), + 27: uint16(36704), + 28: uint16(36705), + 29: uint16(36706), + 30: uint16(36707), + 31: uint16(36708), + 32: uint16(36709), + 33: uint16(36714), + 34: uint16(36736), + 35: uint16(36748), + 36: uint16(36754), + 37: uint16(36765), + 38: uint16(36768), + 39: uint16(36769), + 40: uint16(36770), + 41: uint16(36772), + 42: uint16(36773), + 43: uint16(36774), + 44: uint16(36775), + 45: uint16(36778), + 46: uint16(36780), + 47: uint16(36781), + 48: uint16(36782), + 49: uint16(36783), + 50: uint16(36786), + 51: uint16(36787), + 52: uint16(36788), + 53: uint16(36789), + 54: uint16(36791), + 55: uint16(36792), + 56: uint16(36794), + 57: uint16(36795), + 58: uint16(36796), + 59: uint16(36799), + 60: uint16(36800), + 61: uint16(36803), + 62: uint16(36806), + 63: uint16(36809), + 64: uint16(36810), + 65: uint16(36811), + 66: uint16(36812), + 67: uint16(36813), + 68: uint16(36815), + 69: uint16(36818), + 70: uint16(36822), + 71: uint16(36823), + 72: uint16(36826), + 73: uint16(36832), + 74: uint16(36833), + 75: uint16(36835), + 76: uint16(36839), + 77: uint16(36844), + 78: uint16(36847), + 79: uint16(36849), + 80: uint16(36850), + 81: uint16(36852), + 82: uint16(36853), + 83: uint16(36854), + 84: uint16(36858), + 85: uint16(36859), + 86: uint16(36860), + 87: uint16(36862), + 88: uint16(36863), + 89: uint16(36871), + 90: uint16(36872), + 91: uint16(36876), + 92: uint16(36878), + 93: uint16(36883), + 94: uint16(36885), + 95: uint16(36888), + 96: uint16(34134), + 97: uint16(34107), + 98: uint16(34047), + 99: uint16(34044), + 100: uint16(34137), + 101: uint16(34120), + 102: uint16(34152), + 103: uint16(34148), + 104: uint16(34142), + 105: uint16(34170), + 106: uint16(30626), + 107: uint16(34115), + 108: uint16(34162), + 109: uint16(34171), + 110: uint16(34212), + 111: uint16(34216), + 112: uint16(34183), + 113: uint16(34191), + 114: uint16(34169), + 115: uint16(34222), + 116: uint16(34204), + 117: uint16(34181), + 118: uint16(34233), + 119: uint16(34231), + 120: uint16(34224), + 121: uint16(34259), + 122: uint16(34241), + 123: uint16(34268), + 124: uint16(34303), + 125: uint16(34343), + 126: uint16(34309), + 127: uint16(34345), + 128: uint16(34326), + 129: uint16(34364), + 130: uint16(24318), + 131: uint16(24328), + 132: uint16(22844), + 133: uint16(22849), + 134: uint16(32823), + 135: uint16(22869), + 136: uint16(22874), + 137: uint16(22872), + 138: uint16(21263), + 139: uint16(23586), + 140: uint16(23589), + 141: uint16(23596), + 142: uint16(23604), + 143: uint16(25164), + 144: uint16(25194), + 145: uint16(25247), + 146: uint16(25275), + 147: uint16(25290), + 148: uint16(25306), + 149: uint16(25303), + 150: uint16(25326), + 151: uint16(25378), + 152: uint16(25334), + 153: uint16(25401), + 154: uint16(25419), + 155: uint16(25411), + 156: uint16(25517), + 157: uint16(25590), + 158: uint16(25457), + 159: uint16(25466), + 160: uint16(25486), + 161: uint16(25524), + 162: uint16(25453), + 163: uint16(25516), + 164: uint16(25482), + 165: uint16(25449), + 166: uint16(25518), + 167: uint16(25532), + 168: uint16(25586), + 169: uint16(25592), + 170: uint16(25568), + 171: uint16(25599), + 172: uint16(25540), + 173: uint16(25566), + 174: uint16(25550), + 175: uint16(25682), + 176: uint16(25542), + 177: uint16(25534), + 178: uint16(25669), + 179: uint16(25665), + 180: uint16(25611), + 181: uint16(25627), + 182: uint16(25632), + 183: uint16(25612), + 184: uint16(25638), + 185: uint16(25633), + 186: uint16(25694), + 187: uint16(25732), + 188: uint16(25709), + 189: uint16(25750), + }, + 94: { + 0: uint16(36889), + 1: uint16(36892), + 2: uint16(36899), + 3: uint16(36900), + 4: uint16(36901), + 5: uint16(36903), + 6: uint16(36904), + 7: uint16(36905), + 8: uint16(36906), + 9: uint16(36907), + 10: uint16(36908), + 11: uint16(36912), + 12: uint16(36913), + 13: uint16(36914), + 14: uint16(36915), + 15: uint16(36916), + 16: uint16(36919), + 17: uint16(36921), + 18: uint16(36922), + 19: uint16(36925), + 20: uint16(36927), + 21: uint16(36928), + 22: uint16(36931), + 23: uint16(36933), + 24: uint16(36934), + 25: uint16(36936), + 26: uint16(36937), + 27: uint16(36938), + 28: uint16(36939), + 29: uint16(36940), + 30: uint16(36942), + 31: uint16(36948), + 32: uint16(36949), + 33: uint16(36950), + 34: uint16(36953), + 35: uint16(36954), + 36: uint16(36956), + 37: uint16(36957), + 38: uint16(36958), + 39: uint16(36959), + 40: uint16(36960), + 41: uint16(36961), + 42: uint16(36964), + 43: uint16(36966), + 44: uint16(36967), + 45: uint16(36969), + 46: uint16(36970), + 47: uint16(36971), + 48: uint16(36972), + 49: uint16(36975), + 50: uint16(36976), + 51: uint16(36977), + 52: uint16(36978), + 53: uint16(36979), + 54: uint16(36982), + 55: uint16(36983), + 56: uint16(36984), + 57: uint16(36985), + 58: uint16(36986), + 59: uint16(36987), + 60: uint16(36988), + 61: uint16(36990), + 62: uint16(36993), + 63: uint16(36996), + 64: uint16(36997), + 65: uint16(36998), + 66: uint16(36999), + 67: uint16(37001), + 68: uint16(37002), + 69: uint16(37004), + 70: uint16(37005), + 71: uint16(37006), + 72: uint16(37007), + 73: uint16(37008), + 74: uint16(37010), + 75: uint16(37012), + 76: uint16(37014), + 77: uint16(37016), + 78: uint16(37018), + 79: uint16(37020), + 80: uint16(37022), + 81: uint16(37023), + 82: uint16(37024), + 83: uint16(37028), + 84: uint16(37029), + 85: uint16(37031), + 86: uint16(37032), + 87: uint16(37033), + 88: uint16(37035), + 89: uint16(37037), + 90: uint16(37042), + 91: uint16(37047), + 92: uint16(37052), + 93: uint16(37053), + 94: uint16(37055), + 95: uint16(37056), + 96: uint16(25722), + 97: uint16(25783), + 98: uint16(25784), + 99: uint16(25753), + 100: uint16(25786), + 101: uint16(25792), + 102: uint16(25808), + 103: uint16(25815), + 104: uint16(25828), + 105: uint16(25826), + 106: uint16(25865), + 107: uint16(25893), + 108: uint16(25902), + 109: uint16(24331), + 110: uint16(24530), + 111: uint16(29977), + 112: uint16(24337), + 113: uint16(21343), + 114: uint16(21489), + 115: uint16(21501), + 116: uint16(21481), + 117: uint16(21480), + 118: uint16(21499), + 119: uint16(21522), + 120: uint16(21526), + 121: uint16(21510), + 122: uint16(21579), + 123: uint16(21586), + 124: uint16(21587), + 125: uint16(21588), + 126: uint16(21590), + 127: uint16(21571), + 128: uint16(21537), + 129: uint16(21591), + 130: uint16(21593), + 131: uint16(21539), + 132: uint16(21554), + 133: uint16(21634), + 134: uint16(21652), + 135: uint16(21623), + 136: uint16(21617), + 137: uint16(21604), + 138: uint16(21658), + 139: uint16(21659), + 140: uint16(21636), + 141: uint16(21622), + 142: uint16(21606), + 143: uint16(21661), + 144: uint16(21712), + 145: uint16(21677), + 146: uint16(21698), + 147: uint16(21684), + 148: uint16(21714), + 149: uint16(21671), + 150: uint16(21670), + 151: uint16(21715), + 152: uint16(21716), + 153: uint16(21618), + 154: uint16(21667), + 155: uint16(21717), + 156: uint16(21691), + 157: uint16(21695), + 158: uint16(21708), + 159: uint16(21721), + 160: uint16(21722), + 161: uint16(21724), + 162: uint16(21673), + 163: uint16(21674), + 164: uint16(21668), + 165: uint16(21725), + 166: uint16(21711), + 167: uint16(21726), + 168: uint16(21787), + 169: uint16(21735), + 170: uint16(21792), + 171: uint16(21757), + 172: uint16(21780), + 173: uint16(21747), + 174: uint16(21794), + 175: uint16(21795), + 176: uint16(21775), + 177: uint16(21777), + 178: uint16(21799), + 179: uint16(21802), + 180: uint16(21863), + 181: uint16(21903), + 182: uint16(21941), + 183: uint16(21833), + 184: uint16(21869), + 185: uint16(21825), + 186: uint16(21845), + 187: uint16(21823), + 188: uint16(21840), + 189: uint16(21820), + }, + 95: { + 0: uint16(37058), + 1: uint16(37059), + 2: uint16(37062), + 3: uint16(37064), + 4: uint16(37065), + 5: uint16(37067), + 6: uint16(37068), + 7: uint16(37069), + 8: uint16(37074), + 9: uint16(37076), + 10: uint16(37077), + 11: uint16(37078), + 12: uint16(37080), + 13: uint16(37081), + 14: uint16(37082), + 15: uint16(37086), + 16: uint16(37087), + 17: uint16(37088), + 18: uint16(37091), + 19: uint16(37092), + 20: uint16(37093), + 21: uint16(37097), + 22: uint16(37098), + 23: uint16(37100), + 24: uint16(37102), + 25: uint16(37104), + 26: uint16(37105), + 27: uint16(37106), + 28: uint16(37107), + 29: uint16(37109), + 30: uint16(37110), + 31: uint16(37111), + 32: uint16(37113), + 33: uint16(37114), + 34: uint16(37115), + 35: uint16(37116), + 36: uint16(37119), + 37: uint16(37120), + 38: uint16(37121), + 39: uint16(37123), + 40: uint16(37125), + 41: uint16(37126), + 42: uint16(37127), + 43: uint16(37128), + 44: uint16(37129), + 45: uint16(37130), + 46: uint16(37131), + 47: uint16(37132), + 48: uint16(37133), + 49: uint16(37134), + 50: uint16(37135), + 51: uint16(37136), + 52: uint16(37137), + 53: uint16(37138), + 54: uint16(37139), + 55: uint16(37140), + 56: uint16(37141), + 57: uint16(37142), + 58: uint16(37143), + 59: uint16(37144), + 60: uint16(37146), + 61: uint16(37147), + 62: uint16(37148), + 63: uint16(37149), + 64: uint16(37151), + 65: uint16(37152), + 66: uint16(37153), + 67: uint16(37156), + 68: uint16(37157), + 69: uint16(37158), + 70: uint16(37159), + 71: uint16(37160), + 72: uint16(37161), + 73: uint16(37162), + 74: uint16(37163), + 75: uint16(37164), + 76: uint16(37165), + 77: uint16(37166), + 78: uint16(37168), + 79: uint16(37170), + 80: uint16(37171), + 81: uint16(37172), + 82: uint16(37173), + 83: uint16(37174), + 84: uint16(37175), + 85: uint16(37176), + 86: uint16(37178), + 87: uint16(37179), + 88: uint16(37180), + 89: uint16(37181), + 90: uint16(37182), + 91: uint16(37183), + 92: uint16(37184), + 93: uint16(37185), + 94: uint16(37186), + 95: uint16(37188), + 96: uint16(21815), + 97: uint16(21846), + 98: uint16(21877), + 99: uint16(21878), + 100: uint16(21879), + 101: uint16(21811), + 102: uint16(21808), + 103: uint16(21852), + 104: uint16(21899), + 105: uint16(21970), + 106: uint16(21891), + 107: uint16(21937), + 108: uint16(21945), + 109: uint16(21896), + 110: uint16(21889), + 111: uint16(21919), + 112: uint16(21886), + 113: uint16(21974), + 114: uint16(21905), + 115: uint16(21883), + 116: uint16(21983), + 117: uint16(21949), + 118: uint16(21950), + 119: uint16(21908), + 120: uint16(21913), + 121: uint16(21994), + 122: uint16(22007), + 123: uint16(21961), + 124: uint16(22047), + 125: uint16(21969), + 126: uint16(21995), + 127: uint16(21996), + 128: uint16(21972), + 129: uint16(21990), + 130: uint16(21981), + 131: uint16(21956), + 132: uint16(21999), + 133: uint16(21989), + 134: uint16(22002), + 135: uint16(22003), + 136: uint16(21964), + 137: uint16(21965), + 138: uint16(21992), + 139: uint16(22005), + 140: uint16(21988), + 141: uint16(36756), + 142: uint16(22046), + 143: uint16(22024), + 144: uint16(22028), + 145: uint16(22017), + 146: uint16(22052), + 147: uint16(22051), + 148: uint16(22014), + 149: uint16(22016), + 150: uint16(22055), + 151: uint16(22061), + 152: uint16(22104), + 153: uint16(22073), + 154: uint16(22103), + 155: uint16(22060), + 156: uint16(22093), + 157: uint16(22114), + 158: uint16(22105), + 159: uint16(22108), + 160: uint16(22092), + 161: uint16(22100), + 162: uint16(22150), + 163: uint16(22116), + 164: uint16(22129), + 165: uint16(22123), + 166: uint16(22139), + 167: uint16(22140), + 168: uint16(22149), + 169: uint16(22163), + 170: uint16(22191), + 171: uint16(22228), + 172: uint16(22231), + 173: uint16(22237), + 174: uint16(22241), + 175: uint16(22261), + 176: uint16(22251), + 177: uint16(22265), + 178: uint16(22271), + 179: uint16(22276), + 180: uint16(22282), + 181: uint16(22281), + 182: uint16(22300), + 183: uint16(24079), + 184: uint16(24089), + 185: uint16(24084), + 186: uint16(24081), + 187: uint16(24113), + 188: uint16(24123), + 189: uint16(24124), + }, + 96: { + 0: uint16(37189), + 1: uint16(37191), + 2: uint16(37192), + 3: uint16(37201), + 4: uint16(37203), + 5: uint16(37204), + 6: uint16(37205), + 7: uint16(37206), + 8: uint16(37208), + 9: uint16(37209), + 10: uint16(37211), + 11: uint16(37212), + 12: uint16(37215), + 13: uint16(37216), + 14: uint16(37222), + 15: uint16(37223), + 16: uint16(37224), + 17: uint16(37227), + 18: uint16(37229), + 19: uint16(37235), + 20: uint16(37242), + 21: uint16(37243), + 22: uint16(37244), + 23: uint16(37248), + 24: uint16(37249), + 25: uint16(37250), + 26: uint16(37251), + 27: uint16(37252), + 28: uint16(37254), + 29: uint16(37256), + 30: uint16(37258), + 31: uint16(37262), + 32: uint16(37263), + 33: uint16(37267), + 34: uint16(37268), + 35: uint16(37269), + 36: uint16(37270), + 37: uint16(37271), + 38: uint16(37272), + 39: uint16(37273), + 40: uint16(37276), + 41: uint16(37277), + 42: uint16(37278), + 43: uint16(37279), + 44: uint16(37280), + 45: uint16(37281), + 46: uint16(37284), + 47: uint16(37285), + 48: uint16(37286), + 49: uint16(37287), + 50: uint16(37288), + 51: uint16(37289), + 52: uint16(37291), + 53: uint16(37292), + 54: uint16(37296), + 55: uint16(37297), + 56: uint16(37298), + 57: uint16(37299), + 58: uint16(37302), + 59: uint16(37303), + 60: uint16(37304), + 61: uint16(37305), + 62: uint16(37307), + 63: uint16(37308), + 64: uint16(37309), + 65: uint16(37310), + 66: uint16(37311), + 67: uint16(37312), + 68: uint16(37313), + 69: uint16(37314), + 70: uint16(37315), + 71: uint16(37316), + 72: uint16(37317), + 73: uint16(37318), + 74: uint16(37320), + 75: uint16(37323), + 76: uint16(37328), + 77: uint16(37330), + 78: uint16(37331), + 79: uint16(37332), + 80: uint16(37333), + 81: uint16(37334), + 82: uint16(37335), + 83: uint16(37336), + 84: uint16(37337), + 85: uint16(37338), + 86: uint16(37339), + 87: uint16(37341), + 88: uint16(37342), + 89: uint16(37343), + 90: uint16(37344), + 91: uint16(37345), + 92: uint16(37346), + 93: uint16(37347), + 94: uint16(37348), + 95: uint16(37349), + 96: uint16(24119), + 97: uint16(24132), + 98: uint16(24148), + 99: uint16(24155), + 100: uint16(24158), + 101: uint16(24161), + 102: uint16(23692), + 103: uint16(23674), + 104: uint16(23693), + 105: uint16(23696), + 106: uint16(23702), + 107: uint16(23688), + 108: uint16(23704), + 109: uint16(23705), + 110: uint16(23697), + 111: uint16(23706), + 112: uint16(23708), + 113: uint16(23733), + 114: uint16(23714), + 115: uint16(23741), + 116: uint16(23724), + 117: uint16(23723), + 118: uint16(23729), + 119: uint16(23715), + 120: uint16(23745), + 121: uint16(23735), + 122: uint16(23748), + 123: uint16(23762), + 124: uint16(23780), + 125: uint16(23755), + 126: uint16(23781), + 127: uint16(23810), + 128: uint16(23811), + 129: uint16(23847), + 130: uint16(23846), + 131: uint16(23854), + 132: uint16(23844), + 133: uint16(23838), + 134: uint16(23814), + 135: uint16(23835), + 136: uint16(23896), + 137: uint16(23870), + 138: uint16(23860), + 139: uint16(23869), + 140: uint16(23916), + 141: uint16(23899), + 142: uint16(23919), + 143: uint16(23901), + 144: uint16(23915), + 145: uint16(23883), + 146: uint16(23882), + 147: uint16(23913), + 148: uint16(23924), + 149: uint16(23938), + 150: uint16(23961), + 151: uint16(23965), + 152: uint16(35955), + 153: uint16(23991), + 154: uint16(24005), + 155: uint16(24435), + 156: uint16(24439), + 157: uint16(24450), + 158: uint16(24455), + 159: uint16(24457), + 160: uint16(24460), + 161: uint16(24469), + 162: uint16(24473), + 163: uint16(24476), + 164: uint16(24488), + 165: uint16(24493), + 166: uint16(24501), + 167: uint16(24508), + 168: uint16(34914), + 169: uint16(24417), + 170: uint16(29357), + 171: uint16(29360), + 172: uint16(29364), + 173: uint16(29367), + 174: uint16(29368), + 175: uint16(29379), + 176: uint16(29377), + 177: uint16(29390), + 178: uint16(29389), + 179: uint16(29394), + 180: uint16(29416), + 181: uint16(29423), + 182: uint16(29417), + 183: uint16(29426), + 184: uint16(29428), + 185: uint16(29431), + 186: uint16(29441), + 187: uint16(29427), + 188: uint16(29443), + 189: uint16(29434), + }, + 97: { + 0: uint16(37350), + 1: uint16(37351), + 2: uint16(37352), + 3: uint16(37353), + 4: uint16(37354), + 5: uint16(37355), + 6: uint16(37356), + 7: uint16(37357), + 8: uint16(37358), + 9: uint16(37359), + 10: uint16(37360), + 11: uint16(37361), + 12: uint16(37362), + 13: uint16(37363), + 14: uint16(37364), + 15: uint16(37365), + 16: uint16(37366), + 17: uint16(37367), + 18: uint16(37368), + 19: uint16(37369), + 20: uint16(37370), + 21: uint16(37371), + 22: uint16(37372), + 23: uint16(37373), + 24: uint16(37374), + 25: uint16(37375), + 26: uint16(37376), + 27: uint16(37377), + 28: uint16(37378), + 29: uint16(37379), + 30: uint16(37380), + 31: uint16(37381), + 32: uint16(37382), + 33: uint16(37383), + 34: uint16(37384), + 35: uint16(37385), + 36: uint16(37386), + 37: uint16(37387), + 38: uint16(37388), + 39: uint16(37389), + 40: uint16(37390), + 41: uint16(37391), + 42: uint16(37392), + 43: uint16(37393), + 44: uint16(37394), + 45: uint16(37395), + 46: uint16(37396), + 47: uint16(37397), + 48: uint16(37398), + 49: uint16(37399), + 50: uint16(37400), + 51: uint16(37401), + 52: uint16(37402), + 53: uint16(37403), + 54: uint16(37404), + 55: uint16(37405), + 56: uint16(37406), + 57: uint16(37407), + 58: uint16(37408), + 59: uint16(37409), + 60: uint16(37410), + 61: uint16(37411), + 62: uint16(37412), + 63: uint16(37413), + 64: uint16(37414), + 65: uint16(37415), + 66: uint16(37416), + 67: uint16(37417), + 68: uint16(37418), + 69: uint16(37419), + 70: uint16(37420), + 71: uint16(37421), + 72: uint16(37422), + 73: uint16(37423), + 74: uint16(37424), + 75: uint16(37425), + 76: uint16(37426), + 77: uint16(37427), + 78: uint16(37428), + 79: uint16(37429), + 80: uint16(37430), + 81: uint16(37431), + 82: uint16(37432), + 83: uint16(37433), + 84: uint16(37434), + 85: uint16(37435), + 86: uint16(37436), + 87: uint16(37437), + 88: uint16(37438), + 89: uint16(37439), + 90: uint16(37440), + 91: uint16(37441), + 92: uint16(37442), + 93: uint16(37443), + 94: uint16(37444), + 95: uint16(37445), + 96: uint16(29435), + 97: uint16(29463), + 98: uint16(29459), + 99: uint16(29473), + 100: uint16(29450), + 101: uint16(29470), + 102: uint16(29469), + 103: uint16(29461), + 104: uint16(29474), + 105: uint16(29497), + 106: uint16(29477), + 107: uint16(29484), + 108: uint16(29496), + 109: uint16(29489), + 110: uint16(29520), + 111: uint16(29517), + 112: uint16(29527), + 113: uint16(29536), + 114: uint16(29548), + 115: uint16(29551), + 116: uint16(29566), + 117: uint16(33307), + 118: uint16(22821), + 119: uint16(39143), + 120: uint16(22820), + 121: uint16(22786), + 122: uint16(39267), + 123: uint16(39271), + 124: uint16(39272), + 125: uint16(39273), + 126: uint16(39274), + 127: uint16(39275), + 128: uint16(39276), + 129: uint16(39284), + 130: uint16(39287), + 131: uint16(39293), + 132: uint16(39296), + 133: uint16(39300), + 134: uint16(39303), + 135: uint16(39306), + 136: uint16(39309), + 137: uint16(39312), + 138: uint16(39313), + 139: uint16(39315), + 140: uint16(39316), + 141: uint16(39317), + 142: uint16(24192), + 143: uint16(24209), + 144: uint16(24203), + 145: uint16(24214), + 146: uint16(24229), + 147: uint16(24224), + 148: uint16(24249), + 149: uint16(24245), + 150: uint16(24254), + 151: uint16(24243), + 152: uint16(36179), + 153: uint16(24274), + 154: uint16(24273), + 155: uint16(24283), + 156: uint16(24296), + 157: uint16(24298), + 158: uint16(33210), + 159: uint16(24516), + 160: uint16(24521), + 161: uint16(24534), + 162: uint16(24527), + 163: uint16(24579), + 164: uint16(24558), + 165: uint16(24580), + 166: uint16(24545), + 167: uint16(24548), + 168: uint16(24574), + 169: uint16(24581), + 170: uint16(24582), + 171: uint16(24554), + 172: uint16(24557), + 173: uint16(24568), + 174: uint16(24601), + 175: uint16(24629), + 176: uint16(24614), + 177: uint16(24603), + 178: uint16(24591), + 179: uint16(24589), + 180: uint16(24617), + 181: uint16(24619), + 182: uint16(24586), + 183: uint16(24639), + 184: uint16(24609), + 185: uint16(24696), + 186: uint16(24697), + 187: uint16(24699), + 188: uint16(24698), + 189: uint16(24642), + }, + 98: { + 0: uint16(37446), + 1: uint16(37447), + 2: uint16(37448), + 3: uint16(37449), + 4: uint16(37450), + 5: uint16(37451), + 6: uint16(37452), + 7: uint16(37453), + 8: uint16(37454), + 9: uint16(37455), + 10: uint16(37456), + 11: uint16(37457), + 12: uint16(37458), + 13: uint16(37459), + 14: uint16(37460), + 15: uint16(37461), + 16: uint16(37462), + 17: uint16(37463), + 18: uint16(37464), + 19: uint16(37465), + 20: uint16(37466), + 21: uint16(37467), + 22: uint16(37468), + 23: uint16(37469), + 24: uint16(37470), + 25: uint16(37471), + 26: uint16(37472), + 27: uint16(37473), + 28: uint16(37474), + 29: uint16(37475), + 30: uint16(37476), + 31: uint16(37477), + 32: uint16(37478), + 33: uint16(37479), + 34: uint16(37480), + 35: uint16(37481), + 36: uint16(37482), + 37: uint16(37483), + 38: uint16(37484), + 39: uint16(37485), + 40: uint16(37486), + 41: uint16(37487), + 42: uint16(37488), + 43: uint16(37489), + 44: uint16(37490), + 45: uint16(37491), + 46: uint16(37493), + 47: uint16(37494), + 48: uint16(37495), + 49: uint16(37496), + 50: uint16(37497), + 51: uint16(37498), + 52: uint16(37499), + 53: uint16(37500), + 54: uint16(37501), + 55: uint16(37502), + 56: uint16(37503), + 57: uint16(37504), + 58: uint16(37505), + 59: uint16(37506), + 60: uint16(37507), + 61: uint16(37508), + 62: uint16(37509), + 63: uint16(37510), + 64: uint16(37511), + 65: uint16(37512), + 66: uint16(37513), + 67: uint16(37514), + 68: uint16(37515), + 69: uint16(37516), + 70: uint16(37517), + 71: uint16(37519), + 72: uint16(37520), + 73: uint16(37521), + 74: uint16(37522), + 75: uint16(37523), + 76: uint16(37524), + 77: uint16(37525), + 78: uint16(37526), + 79: uint16(37527), + 80: uint16(37528), + 81: uint16(37529), + 82: uint16(37530), + 83: uint16(37531), + 84: uint16(37532), + 85: uint16(37533), + 86: uint16(37534), + 87: uint16(37535), + 88: uint16(37536), + 89: uint16(37537), + 90: uint16(37538), + 91: uint16(37539), + 92: uint16(37540), + 93: uint16(37541), + 94: uint16(37542), + 95: uint16(37543), + 96: uint16(24682), + 97: uint16(24701), + 98: uint16(24726), + 99: uint16(24730), + 100: uint16(24749), + 101: uint16(24733), + 102: uint16(24707), + 103: uint16(24722), + 104: uint16(24716), + 105: uint16(24731), + 106: uint16(24812), + 107: uint16(24763), + 108: uint16(24753), + 109: uint16(24797), + 110: uint16(24792), + 111: uint16(24774), + 112: uint16(24794), + 113: uint16(24756), + 114: uint16(24864), + 115: uint16(24870), + 116: uint16(24853), + 117: uint16(24867), + 118: uint16(24820), + 119: uint16(24832), + 120: uint16(24846), + 121: uint16(24875), + 122: uint16(24906), + 123: uint16(24949), + 124: uint16(25004), + 125: uint16(24980), + 126: uint16(24999), + 127: uint16(25015), + 128: uint16(25044), + 129: uint16(25077), + 130: uint16(24541), + 131: uint16(38579), + 132: uint16(38377), + 133: uint16(38379), + 134: uint16(38385), + 135: uint16(38387), + 136: uint16(38389), + 137: uint16(38390), + 138: uint16(38396), + 139: uint16(38398), + 140: uint16(38403), + 141: uint16(38404), + 142: uint16(38406), + 143: uint16(38408), + 144: uint16(38410), + 145: uint16(38411), + 146: uint16(38412), + 147: uint16(38413), + 148: uint16(38415), + 149: uint16(38418), + 150: uint16(38421), + 151: uint16(38422), + 152: uint16(38423), + 153: uint16(38425), + 154: uint16(38426), + 155: uint16(20012), + 156: uint16(29247), + 157: uint16(25109), + 158: uint16(27701), + 159: uint16(27732), + 160: uint16(27740), + 161: uint16(27722), + 162: uint16(27811), + 163: uint16(27781), + 164: uint16(27792), + 165: uint16(27796), + 166: uint16(27788), + 167: uint16(27752), + 168: uint16(27753), + 169: uint16(27764), + 170: uint16(27766), + 171: uint16(27782), + 172: uint16(27817), + 173: uint16(27856), + 174: uint16(27860), + 175: uint16(27821), + 176: uint16(27895), + 177: uint16(27896), + 178: uint16(27889), + 179: uint16(27863), + 180: uint16(27826), + 181: uint16(27872), + 182: uint16(27862), + 183: uint16(27898), + 184: uint16(27883), + 185: uint16(27886), + 186: uint16(27825), + 187: uint16(27859), + 188: uint16(27887), + 189: uint16(27902), + }, + 99: { + 0: uint16(37544), + 1: uint16(37545), + 2: uint16(37546), + 3: uint16(37547), + 4: uint16(37548), + 5: uint16(37549), + 6: uint16(37551), + 7: uint16(37552), + 8: uint16(37553), + 9: uint16(37554), + 10: uint16(37555), + 11: uint16(37556), + 12: uint16(37557), + 13: uint16(37558), + 14: uint16(37559), + 15: uint16(37560), + 16: uint16(37561), + 17: uint16(37562), + 18: uint16(37563), + 19: uint16(37564), + 20: uint16(37565), + 21: uint16(37566), + 22: uint16(37567), + 23: uint16(37568), + 24: uint16(37569), + 25: uint16(37570), + 26: uint16(37571), + 27: uint16(37572), + 28: uint16(37573), + 29: uint16(37574), + 30: uint16(37575), + 31: uint16(37577), + 32: uint16(37578), + 33: uint16(37579), + 34: uint16(37580), + 35: uint16(37581), + 36: uint16(37582), + 37: uint16(37583), + 38: uint16(37584), + 39: uint16(37585), + 40: uint16(37586), + 41: uint16(37587), + 42: uint16(37588), + 43: uint16(37589), + 44: uint16(37590), + 45: uint16(37591), + 46: uint16(37592), + 47: uint16(37593), + 48: uint16(37594), + 49: uint16(37595), + 50: uint16(37596), + 51: uint16(37597), + 52: uint16(37598), + 53: uint16(37599), + 54: uint16(37600), + 55: uint16(37601), + 56: uint16(37602), + 57: uint16(37603), + 58: uint16(37604), + 59: uint16(37605), + 60: uint16(37606), + 61: uint16(37607), + 62: uint16(37608), + 63: uint16(37609), + 64: uint16(37610), + 65: uint16(37611), + 66: uint16(37612), + 67: uint16(37613), + 68: uint16(37614), + 69: uint16(37615), + 70: uint16(37616), + 71: uint16(37617), + 72: uint16(37618), + 73: uint16(37619), + 74: uint16(37620), + 75: uint16(37621), + 76: uint16(37622), + 77: uint16(37623), + 78: uint16(37624), + 79: uint16(37625), + 80: uint16(37626), + 81: uint16(37627), + 82: uint16(37628), + 83: uint16(37629), + 84: uint16(37630), + 85: uint16(37631), + 86: uint16(37632), + 87: uint16(37633), + 88: uint16(37634), + 89: uint16(37635), + 90: uint16(37636), + 91: uint16(37637), + 92: uint16(37638), + 93: uint16(37639), + 94: uint16(37640), + 95: uint16(37641), + 96: uint16(27961), + 97: uint16(27943), + 98: uint16(27916), + 99: uint16(27971), + 100: uint16(27976), + 101: uint16(27911), + 102: uint16(27908), + 103: uint16(27929), + 104: uint16(27918), + 105: uint16(27947), + 106: uint16(27981), + 107: uint16(27950), + 108: uint16(27957), + 109: uint16(27930), + 110: uint16(27983), + 111: uint16(27986), + 112: uint16(27988), + 113: uint16(27955), + 114: uint16(28049), + 115: uint16(28015), + 116: uint16(28062), + 117: uint16(28064), + 118: uint16(27998), + 119: uint16(28051), + 120: uint16(28052), + 121: uint16(27996), + 122: uint16(28000), + 123: uint16(28028), + 124: uint16(28003), + 125: uint16(28186), + 126: uint16(28103), + 127: uint16(28101), + 128: uint16(28126), + 129: uint16(28174), + 130: uint16(28095), + 131: uint16(28128), + 132: uint16(28177), + 133: uint16(28134), + 134: uint16(28125), + 135: uint16(28121), + 136: uint16(28182), + 137: uint16(28075), + 138: uint16(28172), + 139: uint16(28078), + 140: uint16(28203), + 141: uint16(28270), + 142: uint16(28238), + 143: uint16(28267), + 144: uint16(28338), + 145: uint16(28255), + 146: uint16(28294), + 147: uint16(28243), + 148: uint16(28244), + 149: uint16(28210), + 150: uint16(28197), + 151: uint16(28228), + 152: uint16(28383), + 153: uint16(28337), + 154: uint16(28312), + 155: uint16(28384), + 156: uint16(28461), + 157: uint16(28386), + 158: uint16(28325), + 159: uint16(28327), + 160: uint16(28349), + 161: uint16(28347), + 162: uint16(28343), + 163: uint16(28375), + 164: uint16(28340), + 165: uint16(28367), + 166: uint16(28303), + 167: uint16(28354), + 168: uint16(28319), + 169: uint16(28514), + 170: uint16(28486), + 171: uint16(28487), + 172: uint16(28452), + 173: uint16(28437), + 174: uint16(28409), + 175: uint16(28463), + 176: uint16(28470), + 177: uint16(28491), + 178: uint16(28532), + 179: uint16(28458), + 180: uint16(28425), + 181: uint16(28457), + 182: uint16(28553), + 183: uint16(28557), + 184: uint16(28556), + 185: uint16(28536), + 186: uint16(28530), + 187: uint16(28540), + 188: uint16(28538), + 189: uint16(28625), + }, + 100: { + 0: uint16(37642), + 1: uint16(37643), + 2: uint16(37644), + 3: uint16(37645), + 4: uint16(37646), + 5: uint16(37647), + 6: uint16(37648), + 7: uint16(37649), + 8: uint16(37650), + 9: uint16(37651), + 10: uint16(37652), + 11: uint16(37653), + 12: uint16(37654), + 13: uint16(37655), + 14: uint16(37656), + 15: uint16(37657), + 16: uint16(37658), + 17: uint16(37659), + 18: uint16(37660), + 19: uint16(37661), + 20: uint16(37662), + 21: uint16(37663), + 22: uint16(37664), + 23: uint16(37665), + 24: uint16(37666), + 25: uint16(37667), + 26: uint16(37668), + 27: uint16(37669), + 28: uint16(37670), + 29: uint16(37671), + 30: uint16(37672), + 31: uint16(37673), + 32: uint16(37674), + 33: uint16(37675), + 34: uint16(37676), + 35: uint16(37677), + 36: uint16(37678), + 37: uint16(37679), + 38: uint16(37680), + 39: uint16(37681), + 40: uint16(37682), + 41: uint16(37683), + 42: uint16(37684), + 43: uint16(37685), + 44: uint16(37686), + 45: uint16(37687), + 46: uint16(37688), + 47: uint16(37689), + 48: uint16(37690), + 49: uint16(37691), + 50: uint16(37692), + 51: uint16(37693), + 52: uint16(37695), + 53: uint16(37696), + 54: uint16(37697), + 55: uint16(37698), + 56: uint16(37699), + 57: uint16(37700), + 58: uint16(37701), + 59: uint16(37702), + 60: uint16(37703), + 61: uint16(37704), + 62: uint16(37705), + 63: uint16(37706), + 64: uint16(37707), + 65: uint16(37708), + 66: uint16(37709), + 67: uint16(37710), + 68: uint16(37711), + 69: uint16(37712), + 70: uint16(37713), + 71: uint16(37714), + 72: uint16(37715), + 73: uint16(37716), + 74: uint16(37717), + 75: uint16(37718), + 76: uint16(37719), + 77: uint16(37720), + 78: uint16(37721), + 79: uint16(37722), + 80: uint16(37723), + 81: uint16(37724), + 82: uint16(37725), + 83: uint16(37726), + 84: uint16(37727), + 85: uint16(37728), + 86: uint16(37729), + 87: uint16(37730), + 88: uint16(37731), + 89: uint16(37732), + 90: uint16(37733), + 91: uint16(37734), + 92: uint16(37735), + 93: uint16(37736), + 94: uint16(37737), + 95: uint16(37739), + 96: uint16(28617), + 97: uint16(28583), + 98: uint16(28601), + 99: uint16(28598), + 100: uint16(28610), + 101: uint16(28641), + 102: uint16(28654), + 103: uint16(28638), + 104: uint16(28640), + 105: uint16(28655), + 106: uint16(28698), + 107: uint16(28707), + 108: uint16(28699), + 109: uint16(28729), + 110: uint16(28725), + 111: uint16(28751), + 112: uint16(28766), + 113: uint16(23424), + 114: uint16(23428), + 115: uint16(23445), + 116: uint16(23443), + 117: uint16(23461), + 118: uint16(23480), + 119: uint16(29999), + 120: uint16(39582), + 121: uint16(25652), + 122: uint16(23524), + 123: uint16(23534), + 124: uint16(35120), + 125: uint16(23536), + 126: uint16(36423), + 127: uint16(35591), + 128: uint16(36790), + 129: uint16(36819), + 130: uint16(36821), + 131: uint16(36837), + 132: uint16(36846), + 133: uint16(36836), + 134: uint16(36841), + 135: uint16(36838), + 136: uint16(36851), + 137: uint16(36840), + 138: uint16(36869), + 139: uint16(36868), + 140: uint16(36875), + 141: uint16(36902), + 142: uint16(36881), + 143: uint16(36877), + 144: uint16(36886), + 145: uint16(36897), + 146: uint16(36917), + 147: uint16(36918), + 148: uint16(36909), + 149: uint16(36911), + 150: uint16(36932), + 151: uint16(36945), + 152: uint16(36946), + 153: uint16(36944), + 154: uint16(36968), + 155: uint16(36952), + 156: uint16(36962), + 157: uint16(36955), + 158: uint16(26297), + 159: uint16(36980), + 160: uint16(36989), + 161: uint16(36994), + 162: uint16(37000), + 163: uint16(36995), + 164: uint16(37003), + 165: uint16(24400), + 166: uint16(24407), + 167: uint16(24406), + 168: uint16(24408), + 169: uint16(23611), + 170: uint16(21675), + 171: uint16(23632), + 172: uint16(23641), + 173: uint16(23409), + 174: uint16(23651), + 175: uint16(23654), + 176: uint16(32700), + 177: uint16(24362), + 178: uint16(24361), + 179: uint16(24365), + 180: uint16(33396), + 181: uint16(24380), + 182: uint16(39739), + 183: uint16(23662), + 184: uint16(22913), + 185: uint16(22915), + 186: uint16(22925), + 187: uint16(22953), + 188: uint16(22954), + 189: uint16(22947), + }, + 101: { + 0: uint16(37740), + 1: uint16(37741), + 2: uint16(37742), + 3: uint16(37743), + 4: uint16(37744), + 5: uint16(37745), + 6: uint16(37746), + 7: uint16(37747), + 8: uint16(37748), + 9: uint16(37749), + 10: uint16(37750), + 11: uint16(37751), + 12: uint16(37752), + 13: uint16(37753), + 14: uint16(37754), + 15: uint16(37755), + 16: uint16(37756), + 17: uint16(37757), + 18: uint16(37758), + 19: uint16(37759), + 20: uint16(37760), + 21: uint16(37761), + 22: uint16(37762), + 23: uint16(37763), + 24: uint16(37764), + 25: uint16(37765), + 26: uint16(37766), + 27: uint16(37767), + 28: uint16(37768), + 29: uint16(37769), + 30: uint16(37770), + 31: uint16(37771), + 32: uint16(37772), + 33: uint16(37773), + 34: uint16(37774), + 35: uint16(37776), + 36: uint16(37777), + 37: uint16(37778), + 38: uint16(37779), + 39: uint16(37780), + 40: uint16(37781), + 41: uint16(37782), + 42: uint16(37783), + 43: uint16(37784), + 44: uint16(37785), + 45: uint16(37786), + 46: uint16(37787), + 47: uint16(37788), + 48: uint16(37789), + 49: uint16(37790), + 50: uint16(37791), + 51: uint16(37792), + 52: uint16(37793), + 53: uint16(37794), + 54: uint16(37795), + 55: uint16(37796), + 56: uint16(37797), + 57: uint16(37798), + 58: uint16(37799), + 59: uint16(37800), + 60: uint16(37801), + 61: uint16(37802), + 62: uint16(37803), + 63: uint16(37804), + 64: uint16(37805), + 65: uint16(37806), + 66: uint16(37807), + 67: uint16(37808), + 68: uint16(37809), + 69: uint16(37810), + 70: uint16(37811), + 71: uint16(37812), + 72: uint16(37813), + 73: uint16(37814), + 74: uint16(37815), + 75: uint16(37816), + 76: uint16(37817), + 77: uint16(37818), + 78: uint16(37819), + 79: uint16(37820), + 80: uint16(37821), + 81: uint16(37822), + 82: uint16(37823), + 83: uint16(37824), + 84: uint16(37825), + 85: uint16(37826), + 86: uint16(37827), + 87: uint16(37828), + 88: uint16(37829), + 89: uint16(37830), + 90: uint16(37831), + 91: uint16(37832), + 92: uint16(37833), + 93: uint16(37835), + 94: uint16(37836), + 95: uint16(37837), + 96: uint16(22935), + 97: uint16(22986), + 98: uint16(22955), + 99: uint16(22942), + 100: uint16(22948), + 101: uint16(22994), + 102: uint16(22962), + 103: uint16(22959), + 104: uint16(22999), + 105: uint16(22974), + 106: uint16(23045), + 107: uint16(23046), + 108: uint16(23005), + 109: uint16(23048), + 110: uint16(23011), + 111: uint16(23000), + 112: uint16(23033), + 113: uint16(23052), + 114: uint16(23049), + 115: uint16(23090), + 116: uint16(23092), + 117: uint16(23057), + 118: uint16(23075), + 119: uint16(23059), + 120: uint16(23104), + 121: uint16(23143), + 122: uint16(23114), + 123: uint16(23125), + 124: uint16(23100), + 125: uint16(23138), + 126: uint16(23157), + 127: uint16(33004), + 128: uint16(23210), + 129: uint16(23195), + 130: uint16(23159), + 131: uint16(23162), + 132: uint16(23230), + 133: uint16(23275), + 134: uint16(23218), + 135: uint16(23250), + 136: uint16(23252), + 137: uint16(23224), + 138: uint16(23264), + 139: uint16(23267), + 140: uint16(23281), + 141: uint16(23254), + 142: uint16(23270), + 143: uint16(23256), + 144: uint16(23260), + 145: uint16(23305), + 146: uint16(23319), + 147: uint16(23318), + 148: uint16(23346), + 149: uint16(23351), + 150: uint16(23360), + 151: uint16(23573), + 152: uint16(23580), + 153: uint16(23386), + 154: uint16(23397), + 155: uint16(23411), + 156: uint16(23377), + 157: uint16(23379), + 158: uint16(23394), + 159: uint16(39541), + 160: uint16(39543), + 161: uint16(39544), + 162: uint16(39546), + 163: uint16(39551), + 164: uint16(39549), + 165: uint16(39552), + 166: uint16(39553), + 167: uint16(39557), + 168: uint16(39560), + 169: uint16(39562), + 170: uint16(39568), + 171: uint16(39570), + 172: uint16(39571), + 173: uint16(39574), + 174: uint16(39576), + 175: uint16(39579), + 176: uint16(39580), + 177: uint16(39581), + 178: uint16(39583), + 179: uint16(39584), + 180: uint16(39586), + 181: uint16(39587), + 182: uint16(39589), + 183: uint16(39591), + 184: uint16(32415), + 185: uint16(32417), + 186: uint16(32419), + 187: uint16(32421), + 188: uint16(32424), + 189: uint16(32425), + }, + 102: { + 0: uint16(37838), + 1: uint16(37839), + 2: uint16(37840), + 3: uint16(37841), + 4: uint16(37842), + 5: uint16(37843), + 6: uint16(37844), + 7: uint16(37845), + 8: uint16(37847), + 9: uint16(37848), + 10: uint16(37849), + 11: uint16(37850), + 12: uint16(37851), + 13: uint16(37852), + 14: uint16(37853), + 15: uint16(37854), + 16: uint16(37855), + 17: uint16(37856), + 18: uint16(37857), + 19: uint16(37858), + 20: uint16(37859), + 21: uint16(37860), + 22: uint16(37861), + 23: uint16(37862), + 24: uint16(37863), + 25: uint16(37864), + 26: uint16(37865), + 27: uint16(37866), + 28: uint16(37867), + 29: uint16(37868), + 30: uint16(37869), + 31: uint16(37870), + 32: uint16(37871), + 33: uint16(37872), + 34: uint16(37873), + 35: uint16(37874), + 36: uint16(37875), + 37: uint16(37876), + 38: uint16(37877), + 39: uint16(37878), + 40: uint16(37879), + 41: uint16(37880), + 42: uint16(37881), + 43: uint16(37882), + 44: uint16(37883), + 45: uint16(37884), + 46: uint16(37885), + 47: uint16(37886), + 48: uint16(37887), + 49: uint16(37888), + 50: uint16(37889), + 51: uint16(37890), + 52: uint16(37891), + 53: uint16(37892), + 54: uint16(37893), + 55: uint16(37894), + 56: uint16(37895), + 57: uint16(37896), + 58: uint16(37897), + 59: uint16(37898), + 60: uint16(37899), + 61: uint16(37900), + 62: uint16(37901), + 63: uint16(37902), + 64: uint16(37903), + 65: uint16(37904), + 66: uint16(37905), + 67: uint16(37906), + 68: uint16(37907), + 69: uint16(37908), + 70: uint16(37909), + 71: uint16(37910), + 72: uint16(37911), + 73: uint16(37912), + 74: uint16(37913), + 75: uint16(37914), + 76: uint16(37915), + 77: uint16(37916), + 78: uint16(37917), + 79: uint16(37918), + 80: uint16(37919), + 81: uint16(37920), + 82: uint16(37921), + 83: uint16(37922), + 84: uint16(37923), + 85: uint16(37924), + 86: uint16(37925), + 87: uint16(37926), + 88: uint16(37927), + 89: uint16(37928), + 90: uint16(37929), + 91: uint16(37930), + 92: uint16(37931), + 93: uint16(37932), + 94: uint16(37933), + 95: uint16(37934), + 96: uint16(32429), + 97: uint16(32432), + 98: uint16(32446), + 99: uint16(32448), + 100: uint16(32449), + 101: uint16(32450), + 102: uint16(32457), + 103: uint16(32459), + 104: uint16(32460), + 105: uint16(32464), + 106: uint16(32468), + 107: uint16(32471), + 108: uint16(32475), + 109: uint16(32480), + 110: uint16(32481), + 111: uint16(32488), + 112: uint16(32491), + 113: uint16(32494), + 114: uint16(32495), + 115: uint16(32497), + 116: uint16(32498), + 117: uint16(32525), + 118: uint16(32502), + 119: uint16(32506), + 120: uint16(32507), + 121: uint16(32510), + 122: uint16(32513), + 123: uint16(32514), + 124: uint16(32515), + 125: uint16(32519), + 126: uint16(32520), + 127: uint16(32523), + 128: uint16(32524), + 129: uint16(32527), + 130: uint16(32529), + 131: uint16(32530), + 132: uint16(32535), + 133: uint16(32537), + 134: uint16(32540), + 135: uint16(32539), + 136: uint16(32543), + 137: uint16(32545), + 138: uint16(32546), + 139: uint16(32547), + 140: uint16(32548), + 141: uint16(32549), + 142: uint16(32550), + 143: uint16(32551), + 144: uint16(32554), + 145: uint16(32555), + 146: uint16(32556), + 147: uint16(32557), + 148: uint16(32559), + 149: uint16(32560), + 150: uint16(32561), + 151: uint16(32562), + 152: uint16(32563), + 153: uint16(32565), + 154: uint16(24186), + 155: uint16(30079), + 156: uint16(24027), + 157: uint16(30014), + 158: uint16(37013), + 159: uint16(29582), + 160: uint16(29585), + 161: uint16(29614), + 162: uint16(29602), + 163: uint16(29599), + 164: uint16(29647), + 165: uint16(29634), + 166: uint16(29649), + 167: uint16(29623), + 168: uint16(29619), + 169: uint16(29632), + 170: uint16(29641), + 171: uint16(29640), + 172: uint16(29669), + 173: uint16(29657), + 174: uint16(39036), + 175: uint16(29706), + 176: uint16(29673), + 177: uint16(29671), + 178: uint16(29662), + 179: uint16(29626), + 180: uint16(29682), + 181: uint16(29711), + 182: uint16(29738), + 183: uint16(29787), + 184: uint16(29734), + 185: uint16(29733), + 186: uint16(29736), + 187: uint16(29744), + 188: uint16(29742), + 189: uint16(29740), + }, + 103: { + 0: uint16(37935), + 1: uint16(37936), + 2: uint16(37937), + 3: uint16(37938), + 4: uint16(37939), + 5: uint16(37940), + 6: uint16(37941), + 7: uint16(37942), + 8: uint16(37943), + 9: uint16(37944), + 10: uint16(37945), + 11: uint16(37946), + 12: uint16(37947), + 13: uint16(37948), + 14: uint16(37949), + 15: uint16(37951), + 16: uint16(37952), + 17: uint16(37953), + 18: uint16(37954), + 19: uint16(37955), + 20: uint16(37956), + 21: uint16(37957), + 22: uint16(37958), + 23: uint16(37959), + 24: uint16(37960), + 25: uint16(37961), + 26: uint16(37962), + 27: uint16(37963), + 28: uint16(37964), + 29: uint16(37965), + 30: uint16(37966), + 31: uint16(37967), + 32: uint16(37968), + 33: uint16(37969), + 34: uint16(37970), + 35: uint16(37971), + 36: uint16(37972), + 37: uint16(37973), + 38: uint16(37974), + 39: uint16(37975), + 40: uint16(37976), + 41: uint16(37977), + 42: uint16(37978), + 43: uint16(37979), + 44: uint16(37980), + 45: uint16(37981), + 46: uint16(37982), + 47: uint16(37983), + 48: uint16(37984), + 49: uint16(37985), + 50: uint16(37986), + 51: uint16(37987), + 52: uint16(37988), + 53: uint16(37989), + 54: uint16(37990), + 55: uint16(37991), + 56: uint16(37992), + 57: uint16(37993), + 58: uint16(37994), + 59: uint16(37996), + 60: uint16(37997), + 61: uint16(37998), + 62: uint16(37999), + 63: uint16(38000), + 64: uint16(38001), + 65: uint16(38002), + 66: uint16(38003), + 67: uint16(38004), + 68: uint16(38005), + 69: uint16(38006), + 70: uint16(38007), + 71: uint16(38008), + 72: uint16(38009), + 73: uint16(38010), + 74: uint16(38011), + 75: uint16(38012), + 76: uint16(38013), + 77: uint16(38014), + 78: uint16(38015), + 79: uint16(38016), + 80: uint16(38017), + 81: uint16(38018), + 82: uint16(38019), + 83: uint16(38020), + 84: uint16(38033), + 85: uint16(38038), + 86: uint16(38040), + 87: uint16(38087), + 88: uint16(38095), + 89: uint16(38099), + 90: uint16(38100), + 91: uint16(38106), + 92: uint16(38118), + 93: uint16(38139), + 94: uint16(38172), + 95: uint16(38176), + 96: uint16(29723), + 97: uint16(29722), + 98: uint16(29761), + 99: uint16(29788), + 100: uint16(29783), + 101: uint16(29781), + 102: uint16(29785), + 103: uint16(29815), + 104: uint16(29805), + 105: uint16(29822), + 106: uint16(29852), + 107: uint16(29838), + 108: uint16(29824), + 109: uint16(29825), + 110: uint16(29831), + 111: uint16(29835), + 112: uint16(29854), + 113: uint16(29864), + 114: uint16(29865), + 115: uint16(29840), + 116: uint16(29863), + 117: uint16(29906), + 118: uint16(29882), + 119: uint16(38890), + 120: uint16(38891), + 121: uint16(38892), + 122: uint16(26444), + 123: uint16(26451), + 124: uint16(26462), + 125: uint16(26440), + 126: uint16(26473), + 127: uint16(26533), + 128: uint16(26503), + 129: uint16(26474), + 130: uint16(26483), + 131: uint16(26520), + 132: uint16(26535), + 133: uint16(26485), + 134: uint16(26536), + 135: uint16(26526), + 136: uint16(26541), + 137: uint16(26507), + 138: uint16(26487), + 139: uint16(26492), + 140: uint16(26608), + 141: uint16(26633), + 142: uint16(26584), + 143: uint16(26634), + 144: uint16(26601), + 145: uint16(26544), + 146: uint16(26636), + 147: uint16(26585), + 148: uint16(26549), + 149: uint16(26586), + 150: uint16(26547), + 151: uint16(26589), + 152: uint16(26624), + 153: uint16(26563), + 154: uint16(26552), + 155: uint16(26594), + 156: uint16(26638), + 157: uint16(26561), + 158: uint16(26621), + 159: uint16(26674), + 160: uint16(26675), + 161: uint16(26720), + 162: uint16(26721), + 163: uint16(26702), + 164: uint16(26722), + 165: uint16(26692), + 166: uint16(26724), + 167: uint16(26755), + 168: uint16(26653), + 169: uint16(26709), + 170: uint16(26726), + 171: uint16(26689), + 172: uint16(26727), + 173: uint16(26688), + 174: uint16(26686), + 175: uint16(26698), + 176: uint16(26697), + 177: uint16(26665), + 178: uint16(26805), + 179: uint16(26767), + 180: uint16(26740), + 181: uint16(26743), + 182: uint16(26771), + 183: uint16(26731), + 184: uint16(26818), + 185: uint16(26990), + 186: uint16(26876), + 187: uint16(26911), + 188: uint16(26912), + 189: uint16(26873), + }, + 104: { + 0: uint16(38183), + 1: uint16(38195), + 2: uint16(38205), + 3: uint16(38211), + 4: uint16(38216), + 5: uint16(38219), + 6: uint16(38229), + 7: uint16(38234), + 8: uint16(38240), + 9: uint16(38254), + 10: uint16(38260), + 11: uint16(38261), + 12: uint16(38263), + 13: uint16(38264), + 14: uint16(38265), + 15: uint16(38266), + 16: uint16(38267), + 17: uint16(38268), + 18: uint16(38269), + 19: uint16(38270), + 20: uint16(38272), + 21: uint16(38273), + 22: uint16(38274), + 23: uint16(38275), + 24: uint16(38276), + 25: uint16(38277), + 26: uint16(38278), + 27: uint16(38279), + 28: uint16(38280), + 29: uint16(38281), + 30: uint16(38282), + 31: uint16(38283), + 32: uint16(38284), + 33: uint16(38285), + 34: uint16(38286), + 35: uint16(38287), + 36: uint16(38288), + 37: uint16(38289), + 38: uint16(38290), + 39: uint16(38291), + 40: uint16(38292), + 41: uint16(38293), + 42: uint16(38294), + 43: uint16(38295), + 44: uint16(38296), + 45: uint16(38297), + 46: uint16(38298), + 47: uint16(38299), + 48: uint16(38300), + 49: uint16(38301), + 50: uint16(38302), + 51: uint16(38303), + 52: uint16(38304), + 53: uint16(38305), + 54: uint16(38306), + 55: uint16(38307), + 56: uint16(38308), + 57: uint16(38309), + 58: uint16(38310), + 59: uint16(38311), + 60: uint16(38312), + 61: uint16(38313), + 62: uint16(38314), + 63: uint16(38315), + 64: uint16(38316), + 65: uint16(38317), + 66: uint16(38318), + 67: uint16(38319), + 68: uint16(38320), + 69: uint16(38321), + 70: uint16(38322), + 71: uint16(38323), + 72: uint16(38324), + 73: uint16(38325), + 74: uint16(38326), + 75: uint16(38327), + 76: uint16(38328), + 77: uint16(38329), + 78: uint16(38330), + 79: uint16(38331), + 80: uint16(38332), + 81: uint16(38333), + 82: uint16(38334), + 83: uint16(38335), + 84: uint16(38336), + 85: uint16(38337), + 86: uint16(38338), + 87: uint16(38339), + 88: uint16(38340), + 89: uint16(38341), + 90: uint16(38342), + 91: uint16(38343), + 92: uint16(38344), + 93: uint16(38345), + 94: uint16(38346), + 95: uint16(38347), + 96: uint16(26916), + 97: uint16(26864), + 98: uint16(26891), + 99: uint16(26881), + 100: uint16(26967), + 101: uint16(26851), + 102: uint16(26896), + 103: uint16(26993), + 104: uint16(26937), + 105: uint16(26976), + 106: uint16(26946), + 107: uint16(26973), + 108: uint16(27012), + 109: uint16(26987), + 110: uint16(27008), + 111: uint16(27032), + 112: uint16(27000), + 113: uint16(26932), + 114: uint16(27084), + 115: uint16(27015), + 116: uint16(27016), + 117: uint16(27086), + 118: uint16(27017), + 119: uint16(26982), + 120: uint16(26979), + 121: uint16(27001), + 122: uint16(27035), + 123: uint16(27047), + 124: uint16(27067), + 125: uint16(27051), + 126: uint16(27053), + 127: uint16(27092), + 128: uint16(27057), + 129: uint16(27073), + 130: uint16(27082), + 131: uint16(27103), + 132: uint16(27029), + 133: uint16(27104), + 134: uint16(27021), + 135: uint16(27135), + 136: uint16(27183), + 137: uint16(27117), + 138: uint16(27159), + 139: uint16(27160), + 140: uint16(27237), + 141: uint16(27122), + 142: uint16(27204), + 143: uint16(27198), + 144: uint16(27296), + 145: uint16(27216), + 146: uint16(27227), + 147: uint16(27189), + 148: uint16(27278), + 149: uint16(27257), + 150: uint16(27197), + 151: uint16(27176), + 152: uint16(27224), + 153: uint16(27260), + 154: uint16(27281), + 155: uint16(27280), + 156: uint16(27305), + 157: uint16(27287), + 158: uint16(27307), + 159: uint16(29495), + 160: uint16(29522), + 161: uint16(27521), + 162: uint16(27522), + 163: uint16(27527), + 164: uint16(27524), + 165: uint16(27538), + 166: uint16(27539), + 167: uint16(27533), + 168: uint16(27546), + 169: uint16(27547), + 170: uint16(27553), + 171: uint16(27562), + 172: uint16(36715), + 173: uint16(36717), + 174: uint16(36721), + 175: uint16(36722), + 176: uint16(36723), + 177: uint16(36725), + 178: uint16(36726), + 179: uint16(36728), + 180: uint16(36727), + 181: uint16(36729), + 182: uint16(36730), + 183: uint16(36732), + 184: uint16(36734), + 185: uint16(36737), + 186: uint16(36738), + 187: uint16(36740), + 188: uint16(36743), + 189: uint16(36747), + }, + 105: { + 0: uint16(38348), + 1: uint16(38349), + 2: uint16(38350), + 3: uint16(38351), + 4: uint16(38352), + 5: uint16(38353), + 6: uint16(38354), + 7: uint16(38355), + 8: uint16(38356), + 9: uint16(38357), + 10: uint16(38358), + 11: uint16(38359), + 12: uint16(38360), + 13: uint16(38361), + 14: uint16(38362), + 15: uint16(38363), + 16: uint16(38364), + 17: uint16(38365), + 18: uint16(38366), + 19: uint16(38367), + 20: uint16(38368), + 21: uint16(38369), + 22: uint16(38370), + 23: uint16(38371), + 24: uint16(38372), + 25: uint16(38373), + 26: uint16(38374), + 27: uint16(38375), + 28: uint16(38380), + 29: uint16(38399), + 30: uint16(38407), + 31: uint16(38419), + 32: uint16(38424), + 33: uint16(38427), + 34: uint16(38430), + 35: uint16(38432), + 36: uint16(38435), + 37: uint16(38436), + 38: uint16(38437), + 39: uint16(38438), + 40: uint16(38439), + 41: uint16(38440), + 42: uint16(38441), + 43: uint16(38443), + 44: uint16(38444), + 45: uint16(38445), + 46: uint16(38447), + 47: uint16(38448), + 48: uint16(38455), + 49: uint16(38456), + 50: uint16(38457), + 51: uint16(38458), + 52: uint16(38462), + 53: uint16(38465), + 54: uint16(38467), + 55: uint16(38474), + 56: uint16(38478), + 57: uint16(38479), + 58: uint16(38481), + 59: uint16(38482), + 60: uint16(38483), + 61: uint16(38486), + 62: uint16(38487), + 63: uint16(38488), + 64: uint16(38489), + 65: uint16(38490), + 66: uint16(38492), + 67: uint16(38493), + 68: uint16(38494), + 69: uint16(38496), + 70: uint16(38499), + 71: uint16(38501), + 72: uint16(38502), + 73: uint16(38507), + 74: uint16(38509), + 75: uint16(38510), + 76: uint16(38511), + 77: uint16(38512), + 78: uint16(38513), + 79: uint16(38515), + 80: uint16(38520), + 81: uint16(38521), + 82: uint16(38522), + 83: uint16(38523), + 84: uint16(38524), + 85: uint16(38525), + 86: uint16(38526), + 87: uint16(38527), + 88: uint16(38528), + 89: uint16(38529), + 90: uint16(38530), + 91: uint16(38531), + 92: uint16(38532), + 93: uint16(38535), + 94: uint16(38537), + 95: uint16(38538), + 96: uint16(36749), + 97: uint16(36750), + 98: uint16(36751), + 99: uint16(36760), + 100: uint16(36762), + 101: uint16(36558), + 102: uint16(25099), + 103: uint16(25111), + 104: uint16(25115), + 105: uint16(25119), + 106: uint16(25122), + 107: uint16(25121), + 108: uint16(25125), + 109: uint16(25124), + 110: uint16(25132), + 111: uint16(33255), + 112: uint16(29935), + 113: uint16(29940), + 114: uint16(29951), + 115: uint16(29967), + 116: uint16(29969), + 117: uint16(29971), + 118: uint16(25908), + 119: uint16(26094), + 120: uint16(26095), + 121: uint16(26096), + 122: uint16(26122), + 123: uint16(26137), + 124: uint16(26482), + 125: uint16(26115), + 126: uint16(26133), + 127: uint16(26112), + 128: uint16(28805), + 129: uint16(26359), + 130: uint16(26141), + 131: uint16(26164), + 132: uint16(26161), + 133: uint16(26166), + 134: uint16(26165), + 135: uint16(32774), + 136: uint16(26207), + 137: uint16(26196), + 138: uint16(26177), + 139: uint16(26191), + 140: uint16(26198), + 141: uint16(26209), + 142: uint16(26199), + 143: uint16(26231), + 144: uint16(26244), + 145: uint16(26252), + 146: uint16(26279), + 147: uint16(26269), + 148: uint16(26302), + 149: uint16(26331), + 150: uint16(26332), + 151: uint16(26342), + 152: uint16(26345), + 153: uint16(36146), + 154: uint16(36147), + 155: uint16(36150), + 156: uint16(36155), + 157: uint16(36157), + 158: uint16(36160), + 159: uint16(36165), + 160: uint16(36166), + 161: uint16(36168), + 162: uint16(36169), + 163: uint16(36167), + 164: uint16(36173), + 165: uint16(36181), + 166: uint16(36185), + 167: uint16(35271), + 168: uint16(35274), + 169: uint16(35275), + 170: uint16(35276), + 171: uint16(35278), + 172: uint16(35279), + 173: uint16(35280), + 174: uint16(35281), + 175: uint16(29294), + 176: uint16(29343), + 177: uint16(29277), + 178: uint16(29286), + 179: uint16(29295), + 180: uint16(29310), + 181: uint16(29311), + 182: uint16(29316), + 183: uint16(29323), + 184: uint16(29325), + 185: uint16(29327), + 186: uint16(29330), + 187: uint16(25352), + 188: uint16(25394), + 189: uint16(25520), + }, + 106: { + 0: uint16(38540), + 1: uint16(38542), + 2: uint16(38545), + 3: uint16(38546), + 4: uint16(38547), + 5: uint16(38549), + 6: uint16(38550), + 7: uint16(38554), + 8: uint16(38555), + 9: uint16(38557), + 10: uint16(38558), + 11: uint16(38559), + 12: uint16(38560), + 13: uint16(38561), + 14: uint16(38562), + 15: uint16(38563), + 16: uint16(38564), + 17: uint16(38565), + 18: uint16(38566), + 19: uint16(38568), + 20: uint16(38569), + 21: uint16(38570), + 22: uint16(38571), + 23: uint16(38572), + 24: uint16(38573), + 25: uint16(38574), + 26: uint16(38575), + 27: uint16(38577), + 28: uint16(38578), + 29: uint16(38580), + 30: uint16(38581), + 31: uint16(38583), + 32: uint16(38584), + 33: uint16(38586), + 34: uint16(38587), + 35: uint16(38591), + 36: uint16(38594), + 37: uint16(38595), + 38: uint16(38600), + 39: uint16(38602), + 40: uint16(38603), + 41: uint16(38608), + 42: uint16(38609), + 43: uint16(38611), + 44: uint16(38612), + 45: uint16(38614), + 46: uint16(38615), + 47: uint16(38616), + 48: uint16(38617), + 49: uint16(38618), + 50: uint16(38619), + 51: uint16(38620), + 52: uint16(38621), + 53: uint16(38622), + 54: uint16(38623), + 55: uint16(38625), + 56: uint16(38626), + 57: uint16(38627), + 58: uint16(38628), + 59: uint16(38629), + 60: uint16(38630), + 61: uint16(38631), + 62: uint16(38635), + 63: uint16(38636), + 64: uint16(38637), + 65: uint16(38638), + 66: uint16(38640), + 67: uint16(38641), + 68: uint16(38642), + 69: uint16(38644), + 70: uint16(38645), + 71: uint16(38648), + 72: uint16(38650), + 73: uint16(38651), + 74: uint16(38652), + 75: uint16(38653), + 76: uint16(38655), + 77: uint16(38658), + 78: uint16(38659), + 79: uint16(38661), + 80: uint16(38666), + 81: uint16(38667), + 82: uint16(38668), + 83: uint16(38672), + 84: uint16(38673), + 85: uint16(38674), + 86: uint16(38676), + 87: uint16(38677), + 88: uint16(38679), + 89: uint16(38680), + 90: uint16(38681), + 91: uint16(38682), + 92: uint16(38683), + 93: uint16(38685), + 94: uint16(38687), + 95: uint16(38688), + 96: uint16(25663), + 97: uint16(25816), + 98: uint16(32772), + 99: uint16(27626), + 100: uint16(27635), + 101: uint16(27645), + 102: uint16(27637), + 103: uint16(27641), + 104: uint16(27653), + 105: uint16(27655), + 106: uint16(27654), + 107: uint16(27661), + 108: uint16(27669), + 109: uint16(27672), + 110: uint16(27673), + 111: uint16(27674), + 112: uint16(27681), + 113: uint16(27689), + 114: uint16(27684), + 115: uint16(27690), + 116: uint16(27698), + 117: uint16(25909), + 118: uint16(25941), + 119: uint16(25963), + 120: uint16(29261), + 121: uint16(29266), + 122: uint16(29270), + 123: uint16(29232), + 124: uint16(34402), + 125: uint16(21014), + 126: uint16(32927), + 127: uint16(32924), + 128: uint16(32915), + 129: uint16(32956), + 130: uint16(26378), + 131: uint16(32957), + 132: uint16(32945), + 133: uint16(32939), + 134: uint16(32941), + 135: uint16(32948), + 136: uint16(32951), + 137: uint16(32999), + 138: uint16(33000), + 139: uint16(33001), + 140: uint16(33002), + 141: uint16(32987), + 142: uint16(32962), + 143: uint16(32964), + 144: uint16(32985), + 145: uint16(32973), + 146: uint16(32983), + 147: uint16(26384), + 148: uint16(32989), + 149: uint16(33003), + 150: uint16(33009), + 151: uint16(33012), + 152: uint16(33005), + 153: uint16(33037), + 154: uint16(33038), + 155: uint16(33010), + 156: uint16(33020), + 157: uint16(26389), + 158: uint16(33042), + 159: uint16(35930), + 160: uint16(33078), + 161: uint16(33054), + 162: uint16(33068), + 163: uint16(33048), + 164: uint16(33074), + 165: uint16(33096), + 166: uint16(33100), + 167: uint16(33107), + 168: uint16(33140), + 169: uint16(33113), + 170: uint16(33114), + 171: uint16(33137), + 172: uint16(33120), + 173: uint16(33129), + 174: uint16(33148), + 175: uint16(33149), + 176: uint16(33133), + 177: uint16(33127), + 178: uint16(22605), + 179: uint16(23221), + 180: uint16(33160), + 181: uint16(33154), + 182: uint16(33169), + 183: uint16(28373), + 184: uint16(33187), + 185: uint16(33194), + 186: uint16(33228), + 187: uint16(26406), + 188: uint16(33226), + 189: uint16(33211), + }, + 107: { + 0: uint16(38689), + 1: uint16(38690), + 2: uint16(38691), + 3: uint16(38692), + 4: uint16(38693), + 5: uint16(38694), + 6: uint16(38695), + 7: uint16(38696), + 8: uint16(38697), + 9: uint16(38699), + 10: uint16(38700), + 11: uint16(38702), + 12: uint16(38703), + 13: uint16(38705), + 14: uint16(38707), + 15: uint16(38708), + 16: uint16(38709), + 17: uint16(38710), + 18: uint16(38711), + 19: uint16(38714), + 20: uint16(38715), + 21: uint16(38716), + 22: uint16(38717), + 23: uint16(38719), + 24: uint16(38720), + 25: uint16(38721), + 26: uint16(38722), + 27: uint16(38723), + 28: uint16(38724), + 29: uint16(38725), + 30: uint16(38726), + 31: uint16(38727), + 32: uint16(38728), + 33: uint16(38729), + 34: uint16(38730), + 35: uint16(38731), + 36: uint16(38732), + 37: uint16(38733), + 38: uint16(38734), + 39: uint16(38735), + 40: uint16(38736), + 41: uint16(38737), + 42: uint16(38740), + 43: uint16(38741), + 44: uint16(38743), + 45: uint16(38744), + 46: uint16(38746), + 47: uint16(38748), + 48: uint16(38749), + 49: uint16(38751), + 50: uint16(38755), + 51: uint16(38756), + 52: uint16(38758), + 53: uint16(38759), + 54: uint16(38760), + 55: uint16(38762), + 56: uint16(38763), + 57: uint16(38764), + 58: uint16(38765), + 59: uint16(38766), + 60: uint16(38767), + 61: uint16(38768), + 62: uint16(38769), + 63: uint16(38770), + 64: uint16(38773), + 65: uint16(38775), + 66: uint16(38776), + 67: uint16(38777), + 68: uint16(38778), + 69: uint16(38779), + 70: uint16(38781), + 71: uint16(38782), + 72: uint16(38783), + 73: uint16(38784), + 74: uint16(38785), + 75: uint16(38786), + 76: uint16(38787), + 77: uint16(38788), + 78: uint16(38790), + 79: uint16(38791), + 80: uint16(38792), + 81: uint16(38793), + 82: uint16(38794), + 83: uint16(38796), + 84: uint16(38798), + 85: uint16(38799), + 86: uint16(38800), + 87: uint16(38803), + 88: uint16(38805), + 89: uint16(38806), + 90: uint16(38807), + 91: uint16(38809), + 92: uint16(38810), + 93: uint16(38811), + 94: uint16(38812), + 95: uint16(38813), + 96: uint16(33217), + 97: uint16(33190), + 98: uint16(27428), + 99: uint16(27447), + 100: uint16(27449), + 101: uint16(27459), + 102: uint16(27462), + 103: uint16(27481), + 104: uint16(39121), + 105: uint16(39122), + 106: uint16(39123), + 107: uint16(39125), + 108: uint16(39129), + 109: uint16(39130), + 110: uint16(27571), + 111: uint16(24384), + 112: uint16(27586), + 113: uint16(35315), + 114: uint16(26000), + 115: uint16(40785), + 116: uint16(26003), + 117: uint16(26044), + 118: uint16(26054), + 119: uint16(26052), + 120: uint16(26051), + 121: uint16(26060), + 122: uint16(26062), + 123: uint16(26066), + 124: uint16(26070), + 125: uint16(28800), + 126: uint16(28828), + 127: uint16(28822), + 128: uint16(28829), + 129: uint16(28859), + 130: uint16(28864), + 131: uint16(28855), + 132: uint16(28843), + 133: uint16(28849), + 134: uint16(28904), + 135: uint16(28874), + 136: uint16(28944), + 137: uint16(28947), + 138: uint16(28950), + 139: uint16(28975), + 140: uint16(28977), + 141: uint16(29043), + 142: uint16(29020), + 143: uint16(29032), + 144: uint16(28997), + 145: uint16(29042), + 146: uint16(29002), + 147: uint16(29048), + 148: uint16(29050), + 149: uint16(29080), + 150: uint16(29107), + 151: uint16(29109), + 152: uint16(29096), + 153: uint16(29088), + 154: uint16(29152), + 155: uint16(29140), + 156: uint16(29159), + 157: uint16(29177), + 158: uint16(29213), + 159: uint16(29224), + 160: uint16(28780), + 161: uint16(28952), + 162: uint16(29030), + 163: uint16(29113), + 164: uint16(25150), + 165: uint16(25149), + 166: uint16(25155), + 167: uint16(25160), + 168: uint16(25161), + 169: uint16(31035), + 170: uint16(31040), + 171: uint16(31046), + 172: uint16(31049), + 173: uint16(31067), + 174: uint16(31068), + 175: uint16(31059), + 176: uint16(31066), + 177: uint16(31074), + 178: uint16(31063), + 179: uint16(31072), + 180: uint16(31087), + 181: uint16(31079), + 182: uint16(31098), + 183: uint16(31109), + 184: uint16(31114), + 185: uint16(31130), + 186: uint16(31143), + 187: uint16(31155), + 188: uint16(24529), + 189: uint16(24528), + }, + 108: { + 0: uint16(38814), + 1: uint16(38815), + 2: uint16(38817), + 3: uint16(38818), + 4: uint16(38820), + 5: uint16(38821), + 6: uint16(38822), + 7: uint16(38823), + 8: uint16(38824), + 9: uint16(38825), + 10: uint16(38826), + 11: uint16(38828), + 12: uint16(38830), + 13: uint16(38832), + 14: uint16(38833), + 15: uint16(38835), + 16: uint16(38837), + 17: uint16(38838), + 18: uint16(38839), + 19: uint16(38840), + 20: uint16(38841), + 21: uint16(38842), + 22: uint16(38843), + 23: uint16(38844), + 24: uint16(38845), + 25: uint16(38846), + 26: uint16(38847), + 27: uint16(38848), + 28: uint16(38849), + 29: uint16(38850), + 30: uint16(38851), + 31: uint16(38852), + 32: uint16(38853), + 33: uint16(38854), + 34: uint16(38855), + 35: uint16(38856), + 36: uint16(38857), + 37: uint16(38858), + 38: uint16(38859), + 39: uint16(38860), + 40: uint16(38861), + 41: uint16(38862), + 42: uint16(38863), + 43: uint16(38864), + 44: uint16(38865), + 45: uint16(38866), + 46: uint16(38867), + 47: uint16(38868), + 48: uint16(38869), + 49: uint16(38870), + 50: uint16(38871), + 51: uint16(38872), + 52: uint16(38873), + 53: uint16(38874), + 54: uint16(38875), + 55: uint16(38876), + 56: uint16(38877), + 57: uint16(38878), + 58: uint16(38879), + 59: uint16(38880), + 60: uint16(38881), + 61: uint16(38882), + 62: uint16(38883), + 63: uint16(38884), + 64: uint16(38885), + 65: uint16(38888), + 66: uint16(38894), + 67: uint16(38895), + 68: uint16(38896), + 69: uint16(38897), + 70: uint16(38898), + 71: uint16(38900), + 72: uint16(38903), + 73: uint16(38904), + 74: uint16(38905), + 75: uint16(38906), + 76: uint16(38907), + 77: uint16(38908), + 78: uint16(38909), + 79: uint16(38910), + 80: uint16(38911), + 81: uint16(38912), + 82: uint16(38913), + 83: uint16(38914), + 84: uint16(38915), + 85: uint16(38916), + 86: uint16(38917), + 87: uint16(38918), + 88: uint16(38919), + 89: uint16(38920), + 90: uint16(38921), + 91: uint16(38922), + 92: uint16(38923), + 93: uint16(38924), + 94: uint16(38925), + 95: uint16(38926), + 96: uint16(24636), + 97: uint16(24669), + 98: uint16(24666), + 99: uint16(24679), + 100: uint16(24641), + 101: uint16(24665), + 102: uint16(24675), + 103: uint16(24747), + 104: uint16(24838), + 105: uint16(24845), + 106: uint16(24925), + 107: uint16(25001), + 108: uint16(24989), + 109: uint16(25035), + 110: uint16(25041), + 111: uint16(25094), + 112: uint16(32896), + 113: uint16(32895), + 114: uint16(27795), + 115: uint16(27894), + 116: uint16(28156), + 117: uint16(30710), + 118: uint16(30712), + 119: uint16(30720), + 120: uint16(30729), + 121: uint16(30743), + 122: uint16(30744), + 123: uint16(30737), + 124: uint16(26027), + 125: uint16(30765), + 126: uint16(30748), + 127: uint16(30749), + 128: uint16(30777), + 129: uint16(30778), + 130: uint16(30779), + 131: uint16(30751), + 132: uint16(30780), + 133: uint16(30757), + 134: uint16(30764), + 135: uint16(30755), + 136: uint16(30761), + 137: uint16(30798), + 138: uint16(30829), + 139: uint16(30806), + 140: uint16(30807), + 141: uint16(30758), + 142: uint16(30800), + 143: uint16(30791), + 144: uint16(30796), + 145: uint16(30826), + 146: uint16(30875), + 147: uint16(30867), + 148: uint16(30874), + 149: uint16(30855), + 150: uint16(30876), + 151: uint16(30881), + 152: uint16(30883), + 153: uint16(30898), + 154: uint16(30905), + 155: uint16(30885), + 156: uint16(30932), + 157: uint16(30937), + 158: uint16(30921), + 159: uint16(30956), + 160: uint16(30962), + 161: uint16(30981), + 162: uint16(30964), + 163: uint16(30995), + 164: uint16(31012), + 165: uint16(31006), + 166: uint16(31028), + 167: uint16(40859), + 168: uint16(40697), + 169: uint16(40699), + 170: uint16(40700), + 171: uint16(30449), + 172: uint16(30468), + 173: uint16(30477), + 174: uint16(30457), + 175: uint16(30471), + 176: uint16(30472), + 177: uint16(30490), + 178: uint16(30498), + 179: uint16(30489), + 180: uint16(30509), + 181: uint16(30502), + 182: uint16(30517), + 183: uint16(30520), + 184: uint16(30544), + 185: uint16(30545), + 186: uint16(30535), + 187: uint16(30531), + 188: uint16(30554), + 189: uint16(30568), + }, + 109: { + 0: uint16(38927), + 1: uint16(38928), + 2: uint16(38929), + 3: uint16(38930), + 4: uint16(38931), + 5: uint16(38932), + 6: uint16(38933), + 7: uint16(38934), + 8: uint16(38935), + 9: uint16(38936), + 10: uint16(38937), + 11: uint16(38938), + 12: uint16(38939), + 13: uint16(38940), + 14: uint16(38941), + 15: uint16(38942), + 16: uint16(38943), + 17: uint16(38944), + 18: uint16(38945), + 19: uint16(38946), + 20: uint16(38947), + 21: uint16(38948), + 22: uint16(38949), + 23: uint16(38950), + 24: uint16(38951), + 25: uint16(38952), + 26: uint16(38953), + 27: uint16(38954), + 28: uint16(38955), + 29: uint16(38956), + 30: uint16(38957), + 31: uint16(38958), + 32: uint16(38959), + 33: uint16(38960), + 34: uint16(38961), + 35: uint16(38962), + 36: uint16(38963), + 37: uint16(38964), + 38: uint16(38965), + 39: uint16(38966), + 40: uint16(38967), + 41: uint16(38968), + 42: uint16(38969), + 43: uint16(38970), + 44: uint16(38971), + 45: uint16(38972), + 46: uint16(38973), + 47: uint16(38974), + 48: uint16(38975), + 49: uint16(38976), + 50: uint16(38977), + 51: uint16(38978), + 52: uint16(38979), + 53: uint16(38980), + 54: uint16(38981), + 55: uint16(38982), + 56: uint16(38983), + 57: uint16(38984), + 58: uint16(38985), + 59: uint16(38986), + 60: uint16(38987), + 61: uint16(38988), + 62: uint16(38989), + 63: uint16(38990), + 64: uint16(38991), + 65: uint16(38992), + 66: uint16(38993), + 67: uint16(38994), + 68: uint16(38995), + 69: uint16(38996), + 70: uint16(38997), + 71: uint16(38998), + 72: uint16(38999), + 73: uint16(39000), + 74: uint16(39001), + 75: uint16(39002), + 76: uint16(39003), + 77: uint16(39004), + 78: uint16(39005), + 79: uint16(39006), + 80: uint16(39007), + 81: uint16(39008), + 82: uint16(39009), + 83: uint16(39010), + 84: uint16(39011), + 85: uint16(39012), + 86: uint16(39013), + 87: uint16(39014), + 88: uint16(39015), + 89: uint16(39016), + 90: uint16(39017), + 91: uint16(39018), + 92: uint16(39019), + 93: uint16(39020), + 94: uint16(39021), + 95: uint16(39022), + 96: uint16(30562), + 97: uint16(30565), + 98: uint16(30591), + 99: uint16(30605), + 100: uint16(30589), + 101: uint16(30592), + 102: uint16(30604), + 103: uint16(30609), + 104: uint16(30623), + 105: uint16(30624), + 106: uint16(30640), + 107: uint16(30645), + 108: uint16(30653), + 109: uint16(30010), + 110: uint16(30016), + 111: uint16(30030), + 112: uint16(30027), + 113: uint16(30024), + 114: uint16(30043), + 115: uint16(30066), + 116: uint16(30073), + 117: uint16(30083), + 118: uint16(32600), + 119: uint16(32609), + 120: uint16(32607), + 121: uint16(35400), + 122: uint16(32616), + 123: uint16(32628), + 124: uint16(32625), + 125: uint16(32633), + 126: uint16(32641), + 127: uint16(32638), + 128: uint16(30413), + 129: uint16(30437), + 130: uint16(34866), + 131: uint16(38021), + 132: uint16(38022), + 133: uint16(38023), + 134: uint16(38027), + 135: uint16(38026), + 136: uint16(38028), + 137: uint16(38029), + 138: uint16(38031), + 139: uint16(38032), + 140: uint16(38036), + 141: uint16(38039), + 142: uint16(38037), + 143: uint16(38042), + 144: uint16(38043), + 145: uint16(38044), + 146: uint16(38051), + 147: uint16(38052), + 148: uint16(38059), + 149: uint16(38058), + 150: uint16(38061), + 151: uint16(38060), + 152: uint16(38063), + 153: uint16(38064), + 154: uint16(38066), + 155: uint16(38068), + 156: uint16(38070), + 157: uint16(38071), + 158: uint16(38072), + 159: uint16(38073), + 160: uint16(38074), + 161: uint16(38076), + 162: uint16(38077), + 163: uint16(38079), + 164: uint16(38084), + 165: uint16(38088), + 166: uint16(38089), + 167: uint16(38090), + 168: uint16(38091), + 169: uint16(38092), + 170: uint16(38093), + 171: uint16(38094), + 172: uint16(38096), + 173: uint16(38097), + 174: uint16(38098), + 175: uint16(38101), + 176: uint16(38102), + 177: uint16(38103), + 178: uint16(38105), + 179: uint16(38104), + 180: uint16(38107), + 181: uint16(38110), + 182: uint16(38111), + 183: uint16(38112), + 184: uint16(38114), + 185: uint16(38116), + 186: uint16(38117), + 187: uint16(38119), + 188: uint16(38120), + 189: uint16(38122), + }, + 110: { + 0: uint16(39023), + 1: uint16(39024), + 2: uint16(39025), + 3: uint16(39026), + 4: uint16(39027), + 5: uint16(39028), + 6: uint16(39051), + 7: uint16(39054), + 8: uint16(39058), + 9: uint16(39061), + 10: uint16(39065), + 11: uint16(39075), + 12: uint16(39080), + 13: uint16(39081), + 14: uint16(39082), + 15: uint16(39083), + 16: uint16(39084), + 17: uint16(39085), + 18: uint16(39086), + 19: uint16(39087), + 20: uint16(39088), + 21: uint16(39089), + 22: uint16(39090), + 23: uint16(39091), + 24: uint16(39092), + 25: uint16(39093), + 26: uint16(39094), + 27: uint16(39095), + 28: uint16(39096), + 29: uint16(39097), + 30: uint16(39098), + 31: uint16(39099), + 32: uint16(39100), + 33: uint16(39101), + 34: uint16(39102), + 35: uint16(39103), + 36: uint16(39104), + 37: uint16(39105), + 38: uint16(39106), + 39: uint16(39107), + 40: uint16(39108), + 41: uint16(39109), + 42: uint16(39110), + 43: uint16(39111), + 44: uint16(39112), + 45: uint16(39113), + 46: uint16(39114), + 47: uint16(39115), + 48: uint16(39116), + 49: uint16(39117), + 50: uint16(39119), + 51: uint16(39120), + 52: uint16(39124), + 53: uint16(39126), + 54: uint16(39127), + 55: uint16(39131), + 56: uint16(39132), + 57: uint16(39133), + 58: uint16(39136), + 59: uint16(39137), + 60: uint16(39138), + 61: uint16(39139), + 62: uint16(39140), + 63: uint16(39141), + 64: uint16(39142), + 65: uint16(39145), + 66: uint16(39146), + 67: uint16(39147), + 68: uint16(39148), + 69: uint16(39149), + 70: uint16(39150), + 71: uint16(39151), + 72: uint16(39152), + 73: uint16(39153), + 74: uint16(39154), + 75: uint16(39155), + 76: uint16(39156), + 77: uint16(39157), + 78: uint16(39158), + 79: uint16(39159), + 80: uint16(39160), + 81: uint16(39161), + 82: uint16(39162), + 83: uint16(39163), + 84: uint16(39164), + 85: uint16(39165), + 86: uint16(39166), + 87: uint16(39167), + 88: uint16(39168), + 89: uint16(39169), + 90: uint16(39170), + 91: uint16(39171), + 92: uint16(39172), + 93: uint16(39173), + 94: uint16(39174), + 95: uint16(39175), + 96: uint16(38121), + 97: uint16(38123), + 98: uint16(38126), + 99: uint16(38127), + 100: uint16(38131), + 101: uint16(38132), + 102: uint16(38133), + 103: uint16(38135), + 104: uint16(38137), + 105: uint16(38140), + 106: uint16(38141), + 107: uint16(38143), + 108: uint16(38147), + 109: uint16(38146), + 110: uint16(38150), + 111: uint16(38151), + 112: uint16(38153), + 113: uint16(38154), + 114: uint16(38157), + 115: uint16(38158), + 116: uint16(38159), + 117: uint16(38162), + 118: uint16(38163), + 119: uint16(38164), + 120: uint16(38165), + 121: uint16(38166), + 122: uint16(38168), + 123: uint16(38171), + 124: uint16(38173), + 125: uint16(38174), + 126: uint16(38175), + 127: uint16(38178), + 128: uint16(38186), + 129: uint16(38187), + 130: uint16(38185), + 131: uint16(38188), + 132: uint16(38193), + 133: uint16(38194), + 134: uint16(38196), + 135: uint16(38198), + 136: uint16(38199), + 137: uint16(38200), + 138: uint16(38204), + 139: uint16(38206), + 140: uint16(38207), + 141: uint16(38210), + 142: uint16(38197), + 143: uint16(38212), + 144: uint16(38213), + 145: uint16(38214), + 146: uint16(38217), + 147: uint16(38220), + 148: uint16(38222), + 149: uint16(38223), + 150: uint16(38226), + 151: uint16(38227), + 152: uint16(38228), + 153: uint16(38230), + 154: uint16(38231), + 155: uint16(38232), + 156: uint16(38233), + 157: uint16(38235), + 158: uint16(38238), + 159: uint16(38239), + 160: uint16(38237), + 161: uint16(38241), + 162: uint16(38242), + 163: uint16(38244), + 164: uint16(38245), + 165: uint16(38246), + 166: uint16(38247), + 167: uint16(38248), + 168: uint16(38249), + 169: uint16(38250), + 170: uint16(38251), + 171: uint16(38252), + 172: uint16(38255), + 173: uint16(38257), + 174: uint16(38258), + 175: uint16(38259), + 176: uint16(38202), + 177: uint16(30695), + 178: uint16(30700), + 179: uint16(38601), + 180: uint16(31189), + 181: uint16(31213), + 182: uint16(31203), + 183: uint16(31211), + 184: uint16(31238), + 185: uint16(23879), + 186: uint16(31235), + 187: uint16(31234), + 188: uint16(31262), + 189: uint16(31252), + }, + 111: { + 0: uint16(39176), + 1: uint16(39177), + 2: uint16(39178), + 3: uint16(39179), + 4: uint16(39180), + 5: uint16(39182), + 6: uint16(39183), + 7: uint16(39185), + 8: uint16(39186), + 9: uint16(39187), + 10: uint16(39188), + 11: uint16(39189), + 12: uint16(39190), + 13: uint16(39191), + 14: uint16(39192), + 15: uint16(39193), + 16: uint16(39194), + 17: uint16(39195), + 18: uint16(39196), + 19: uint16(39197), + 20: uint16(39198), + 21: uint16(39199), + 22: uint16(39200), + 23: uint16(39201), + 24: uint16(39202), + 25: uint16(39203), + 26: uint16(39204), + 27: uint16(39205), + 28: uint16(39206), + 29: uint16(39207), + 30: uint16(39208), + 31: uint16(39209), + 32: uint16(39210), + 33: uint16(39211), + 34: uint16(39212), + 35: uint16(39213), + 36: uint16(39215), + 37: uint16(39216), + 38: uint16(39217), + 39: uint16(39218), + 40: uint16(39219), + 41: uint16(39220), + 42: uint16(39221), + 43: uint16(39222), + 44: uint16(39223), + 45: uint16(39224), + 46: uint16(39225), + 47: uint16(39226), + 48: uint16(39227), + 49: uint16(39228), + 50: uint16(39229), + 51: uint16(39230), + 52: uint16(39231), + 53: uint16(39232), + 54: uint16(39233), + 55: uint16(39234), + 56: uint16(39235), + 57: uint16(39236), + 58: uint16(39237), + 59: uint16(39238), + 60: uint16(39239), + 61: uint16(39240), + 62: uint16(39241), + 63: uint16(39242), + 64: uint16(39243), + 65: uint16(39244), + 66: uint16(39245), + 67: uint16(39246), + 68: uint16(39247), + 69: uint16(39248), + 70: uint16(39249), + 71: uint16(39250), + 72: uint16(39251), + 73: uint16(39254), + 74: uint16(39255), + 75: uint16(39256), + 76: uint16(39257), + 77: uint16(39258), + 78: uint16(39259), + 79: uint16(39260), + 80: uint16(39261), + 81: uint16(39262), + 82: uint16(39263), + 83: uint16(39264), + 84: uint16(39265), + 85: uint16(39266), + 86: uint16(39268), + 87: uint16(39270), + 88: uint16(39283), + 89: uint16(39288), + 90: uint16(39289), + 91: uint16(39291), + 92: uint16(39294), + 93: uint16(39298), + 94: uint16(39299), + 95: uint16(39305), + 96: uint16(31289), + 97: uint16(31287), + 98: uint16(31313), + 99: uint16(40655), + 100: uint16(39333), + 101: uint16(31344), + 102: uint16(30344), + 103: uint16(30350), + 104: uint16(30355), + 105: uint16(30361), + 106: uint16(30372), + 107: uint16(29918), + 108: uint16(29920), + 109: uint16(29996), + 110: uint16(40480), + 111: uint16(40482), + 112: uint16(40488), + 113: uint16(40489), + 114: uint16(40490), + 115: uint16(40491), + 116: uint16(40492), + 117: uint16(40498), + 118: uint16(40497), + 119: uint16(40502), + 120: uint16(40504), + 121: uint16(40503), + 122: uint16(40505), + 123: uint16(40506), + 124: uint16(40510), + 125: uint16(40513), + 126: uint16(40514), + 127: uint16(40516), + 128: uint16(40518), + 129: uint16(40519), + 130: uint16(40520), + 131: uint16(40521), + 132: uint16(40523), + 133: uint16(40524), + 134: uint16(40526), + 135: uint16(40529), + 136: uint16(40533), + 137: uint16(40535), + 138: uint16(40538), + 139: uint16(40539), + 140: uint16(40540), + 141: uint16(40542), + 142: uint16(40547), + 143: uint16(40550), + 144: uint16(40551), + 145: uint16(40552), + 146: uint16(40553), + 147: uint16(40554), + 148: uint16(40555), + 149: uint16(40556), + 150: uint16(40561), + 151: uint16(40557), + 152: uint16(40563), + 153: uint16(30098), + 154: uint16(30100), + 155: uint16(30102), + 156: uint16(30112), + 157: uint16(30109), + 158: uint16(30124), + 159: uint16(30115), + 160: uint16(30131), + 161: uint16(30132), + 162: uint16(30136), + 163: uint16(30148), + 164: uint16(30129), + 165: uint16(30128), + 166: uint16(30147), + 167: uint16(30146), + 168: uint16(30166), + 169: uint16(30157), + 170: uint16(30179), + 171: uint16(30184), + 172: uint16(30182), + 173: uint16(30180), + 174: uint16(30187), + 175: uint16(30183), + 176: uint16(30211), + 177: uint16(30193), + 178: uint16(30204), + 179: uint16(30207), + 180: uint16(30224), + 181: uint16(30208), + 182: uint16(30213), + 183: uint16(30220), + 184: uint16(30231), + 185: uint16(30218), + 186: uint16(30245), + 187: uint16(30232), + 188: uint16(30229), + 189: uint16(30233), + }, + 112: { + 0: uint16(39308), + 1: uint16(39310), + 2: uint16(39322), + 3: uint16(39323), + 4: uint16(39324), + 5: uint16(39325), + 6: uint16(39326), + 7: uint16(39327), + 8: uint16(39328), + 9: uint16(39329), + 10: uint16(39330), + 11: uint16(39331), + 12: uint16(39332), + 13: uint16(39334), + 14: uint16(39335), + 15: uint16(39337), + 16: uint16(39338), + 17: uint16(39339), + 18: uint16(39340), + 19: uint16(39341), + 20: uint16(39342), + 21: uint16(39343), + 22: uint16(39344), + 23: uint16(39345), + 24: uint16(39346), + 25: uint16(39347), + 26: uint16(39348), + 27: uint16(39349), + 28: uint16(39350), + 29: uint16(39351), + 30: uint16(39352), + 31: uint16(39353), + 32: uint16(39354), + 33: uint16(39355), + 34: uint16(39356), + 35: uint16(39357), + 36: uint16(39358), + 37: uint16(39359), + 38: uint16(39360), + 39: uint16(39361), + 40: uint16(39362), + 41: uint16(39363), + 42: uint16(39364), + 43: uint16(39365), + 44: uint16(39366), + 45: uint16(39367), + 46: uint16(39368), + 47: uint16(39369), + 48: uint16(39370), + 49: uint16(39371), + 50: uint16(39372), + 51: uint16(39373), + 52: uint16(39374), + 53: uint16(39375), + 54: uint16(39376), + 55: uint16(39377), + 56: uint16(39378), + 57: uint16(39379), + 58: uint16(39380), + 59: uint16(39381), + 60: uint16(39382), + 61: uint16(39383), + 62: uint16(39384), + 63: uint16(39385), + 64: uint16(39386), + 65: uint16(39387), + 66: uint16(39388), + 67: uint16(39389), + 68: uint16(39390), + 69: uint16(39391), + 70: uint16(39392), + 71: uint16(39393), + 72: uint16(39394), + 73: uint16(39395), + 74: uint16(39396), + 75: uint16(39397), + 76: uint16(39398), + 77: uint16(39399), + 78: uint16(39400), + 79: uint16(39401), + 80: uint16(39402), + 81: uint16(39403), + 82: uint16(39404), + 83: uint16(39405), + 84: uint16(39406), + 85: uint16(39407), + 86: uint16(39408), + 87: uint16(39409), + 88: uint16(39410), + 89: uint16(39411), + 90: uint16(39412), + 91: uint16(39413), + 92: uint16(39414), + 93: uint16(39415), + 94: uint16(39416), + 95: uint16(39417), + 96: uint16(30235), + 97: uint16(30268), + 98: uint16(30242), + 99: uint16(30240), + 100: uint16(30272), + 101: uint16(30253), + 102: uint16(30256), + 103: uint16(30271), + 104: uint16(30261), + 105: uint16(30275), + 106: uint16(30270), + 107: uint16(30259), + 108: uint16(30285), + 109: uint16(30302), + 110: uint16(30292), + 111: uint16(30300), + 112: uint16(30294), + 113: uint16(30315), + 114: uint16(30319), + 115: uint16(32714), + 116: uint16(31462), + 117: uint16(31352), + 118: uint16(31353), + 119: uint16(31360), + 120: uint16(31366), + 121: uint16(31368), + 122: uint16(31381), + 123: uint16(31398), + 124: uint16(31392), + 125: uint16(31404), + 126: uint16(31400), + 127: uint16(31405), + 128: uint16(31411), + 129: uint16(34916), + 130: uint16(34921), + 131: uint16(34930), + 132: uint16(34941), + 133: uint16(34943), + 134: uint16(34946), + 135: uint16(34978), + 136: uint16(35014), + 137: uint16(34999), + 138: uint16(35004), + 139: uint16(35017), + 140: uint16(35042), + 141: uint16(35022), + 142: uint16(35043), + 143: uint16(35045), + 144: uint16(35057), + 145: uint16(35098), + 146: uint16(35068), + 147: uint16(35048), + 148: uint16(35070), + 149: uint16(35056), + 150: uint16(35105), + 151: uint16(35097), + 152: uint16(35091), + 153: uint16(35099), + 154: uint16(35082), + 155: uint16(35124), + 156: uint16(35115), + 157: uint16(35126), + 158: uint16(35137), + 159: uint16(35174), + 160: uint16(35195), + 161: uint16(30091), + 162: uint16(32997), + 163: uint16(30386), + 164: uint16(30388), + 165: uint16(30684), + 166: uint16(32786), + 167: uint16(32788), + 168: uint16(32790), + 169: uint16(32796), + 170: uint16(32800), + 171: uint16(32802), + 172: uint16(32805), + 173: uint16(32806), + 174: uint16(32807), + 175: uint16(32809), + 176: uint16(32808), + 177: uint16(32817), + 178: uint16(32779), + 179: uint16(32821), + 180: uint16(32835), + 181: uint16(32838), + 182: uint16(32845), + 183: uint16(32850), + 184: uint16(32873), + 185: uint16(32881), + 186: uint16(35203), + 187: uint16(39032), + 188: uint16(39040), + 189: uint16(39043), + }, + 113: { + 0: uint16(39418), + 1: uint16(39419), + 2: uint16(39420), + 3: uint16(39421), + 4: uint16(39422), + 5: uint16(39423), + 6: uint16(39424), + 7: uint16(39425), + 8: uint16(39426), + 9: uint16(39427), + 10: uint16(39428), + 11: uint16(39429), + 12: uint16(39430), + 13: uint16(39431), + 14: uint16(39432), + 15: uint16(39433), + 16: uint16(39434), + 17: uint16(39435), + 18: uint16(39436), + 19: uint16(39437), + 20: uint16(39438), + 21: uint16(39439), + 22: uint16(39440), + 23: uint16(39441), + 24: uint16(39442), + 25: uint16(39443), + 26: uint16(39444), + 27: uint16(39445), + 28: uint16(39446), + 29: uint16(39447), + 30: uint16(39448), + 31: uint16(39449), + 32: uint16(39450), + 33: uint16(39451), + 34: uint16(39452), + 35: uint16(39453), + 36: uint16(39454), + 37: uint16(39455), + 38: uint16(39456), + 39: uint16(39457), + 40: uint16(39458), + 41: uint16(39459), + 42: uint16(39460), + 43: uint16(39461), + 44: uint16(39462), + 45: uint16(39463), + 46: uint16(39464), + 47: uint16(39465), + 48: uint16(39466), + 49: uint16(39467), + 50: uint16(39468), + 51: uint16(39469), + 52: uint16(39470), + 53: uint16(39471), + 54: uint16(39472), + 55: uint16(39473), + 56: uint16(39474), + 57: uint16(39475), + 58: uint16(39476), + 59: uint16(39477), + 60: uint16(39478), + 61: uint16(39479), + 62: uint16(39480), + 63: uint16(39481), + 64: uint16(39482), + 65: uint16(39483), + 66: uint16(39484), + 67: uint16(39485), + 68: uint16(39486), + 69: uint16(39487), + 70: uint16(39488), + 71: uint16(39489), + 72: uint16(39490), + 73: uint16(39491), + 74: uint16(39492), + 75: uint16(39493), + 76: uint16(39494), + 77: uint16(39495), + 78: uint16(39496), + 79: uint16(39497), + 80: uint16(39498), + 81: uint16(39499), + 82: uint16(39500), + 83: uint16(39501), + 84: uint16(39502), + 85: uint16(39503), + 86: uint16(39504), + 87: uint16(39505), + 88: uint16(39506), + 89: uint16(39507), + 90: uint16(39508), + 91: uint16(39509), + 92: uint16(39510), + 93: uint16(39511), + 94: uint16(39512), + 95: uint16(39513), + 96: uint16(39049), + 97: uint16(39052), + 98: uint16(39053), + 99: uint16(39055), + 100: uint16(39060), + 101: uint16(39066), + 102: uint16(39067), + 103: uint16(39070), + 104: uint16(39071), + 105: uint16(39073), + 106: uint16(39074), + 107: uint16(39077), + 108: uint16(39078), + 109: uint16(34381), + 110: uint16(34388), + 111: uint16(34412), + 112: uint16(34414), + 113: uint16(34431), + 114: uint16(34426), + 115: uint16(34428), + 116: uint16(34427), + 117: uint16(34472), + 118: uint16(34445), + 119: uint16(34443), + 120: uint16(34476), + 121: uint16(34461), + 122: uint16(34471), + 123: uint16(34467), + 124: uint16(34474), + 125: uint16(34451), + 126: uint16(34473), + 127: uint16(34486), + 128: uint16(34500), + 129: uint16(34485), + 130: uint16(34510), + 131: uint16(34480), + 132: uint16(34490), + 133: uint16(34481), + 134: uint16(34479), + 135: uint16(34505), + 136: uint16(34511), + 137: uint16(34484), + 138: uint16(34537), + 139: uint16(34545), + 140: uint16(34546), + 141: uint16(34541), + 142: uint16(34547), + 143: uint16(34512), + 144: uint16(34579), + 145: uint16(34526), + 146: uint16(34548), + 147: uint16(34527), + 148: uint16(34520), + 149: uint16(34513), + 150: uint16(34563), + 151: uint16(34567), + 152: uint16(34552), + 153: uint16(34568), + 154: uint16(34570), + 155: uint16(34573), + 156: uint16(34569), + 157: uint16(34595), + 158: uint16(34619), + 159: uint16(34590), + 160: uint16(34597), + 161: uint16(34606), + 162: uint16(34586), + 163: uint16(34622), + 164: uint16(34632), + 165: uint16(34612), + 166: uint16(34609), + 167: uint16(34601), + 168: uint16(34615), + 169: uint16(34623), + 170: uint16(34690), + 171: uint16(34594), + 172: uint16(34685), + 173: uint16(34686), + 174: uint16(34683), + 175: uint16(34656), + 176: uint16(34672), + 177: uint16(34636), + 178: uint16(34670), + 179: uint16(34699), + 180: uint16(34643), + 181: uint16(34659), + 182: uint16(34684), + 183: uint16(34660), + 184: uint16(34649), + 185: uint16(34661), + 186: uint16(34707), + 187: uint16(34735), + 188: uint16(34728), + 189: uint16(34770), + }, + 114: { + 0: uint16(39514), + 1: uint16(39515), + 2: uint16(39516), + 3: uint16(39517), + 4: uint16(39518), + 5: uint16(39519), + 6: uint16(39520), + 7: uint16(39521), + 8: uint16(39522), + 9: uint16(39523), + 10: uint16(39524), + 11: uint16(39525), + 12: uint16(39526), + 13: uint16(39527), + 14: uint16(39528), + 15: uint16(39529), + 16: uint16(39530), + 17: uint16(39531), + 18: uint16(39538), + 19: uint16(39555), + 20: uint16(39561), + 21: uint16(39565), + 22: uint16(39566), + 23: uint16(39572), + 24: uint16(39573), + 25: uint16(39577), + 26: uint16(39590), + 27: uint16(39593), + 28: uint16(39594), + 29: uint16(39595), + 30: uint16(39596), + 31: uint16(39597), + 32: uint16(39598), + 33: uint16(39599), + 34: uint16(39602), + 35: uint16(39603), + 36: uint16(39604), + 37: uint16(39605), + 38: uint16(39609), + 39: uint16(39611), + 40: uint16(39613), + 41: uint16(39614), + 42: uint16(39615), + 43: uint16(39619), + 44: uint16(39620), + 45: uint16(39622), + 46: uint16(39623), + 47: uint16(39624), + 48: uint16(39625), + 49: uint16(39626), + 50: uint16(39629), + 51: uint16(39630), + 52: uint16(39631), + 53: uint16(39632), + 54: uint16(39634), + 55: uint16(39636), + 56: uint16(39637), + 57: uint16(39638), + 58: uint16(39639), + 59: uint16(39641), + 60: uint16(39642), + 61: uint16(39643), + 62: uint16(39644), + 63: uint16(39645), + 64: uint16(39646), + 65: uint16(39648), + 66: uint16(39650), + 67: uint16(39651), + 68: uint16(39652), + 69: uint16(39653), + 70: uint16(39655), + 71: uint16(39656), + 72: uint16(39657), + 73: uint16(39658), + 74: uint16(39660), + 75: uint16(39662), + 76: uint16(39664), + 77: uint16(39665), + 78: uint16(39666), + 79: uint16(39667), + 80: uint16(39668), + 81: uint16(39669), + 82: uint16(39670), + 83: uint16(39671), + 84: uint16(39672), + 85: uint16(39674), + 86: uint16(39676), + 87: uint16(39677), + 88: uint16(39678), + 89: uint16(39679), + 90: uint16(39680), + 91: uint16(39681), + 92: uint16(39682), + 93: uint16(39684), + 94: uint16(39685), + 95: uint16(39686), + 96: uint16(34758), + 97: uint16(34696), + 98: uint16(34693), + 99: uint16(34733), + 100: uint16(34711), + 101: uint16(34691), + 102: uint16(34731), + 103: uint16(34789), + 104: uint16(34732), + 105: uint16(34741), + 106: uint16(34739), + 107: uint16(34763), + 108: uint16(34771), + 109: uint16(34749), + 110: uint16(34769), + 111: uint16(34752), + 112: uint16(34762), + 113: uint16(34779), + 114: uint16(34794), + 115: uint16(34784), + 116: uint16(34798), + 117: uint16(34838), + 118: uint16(34835), + 119: uint16(34814), + 120: uint16(34826), + 121: uint16(34843), + 122: uint16(34849), + 123: uint16(34873), + 124: uint16(34876), + 125: uint16(32566), + 126: uint16(32578), + 127: uint16(32580), + 128: uint16(32581), + 129: uint16(33296), + 130: uint16(31482), + 131: uint16(31485), + 132: uint16(31496), + 133: uint16(31491), + 134: uint16(31492), + 135: uint16(31509), + 136: uint16(31498), + 137: uint16(31531), + 138: uint16(31503), + 139: uint16(31559), + 140: uint16(31544), + 141: uint16(31530), + 142: uint16(31513), + 143: uint16(31534), + 144: uint16(31537), + 145: uint16(31520), + 146: uint16(31525), + 147: uint16(31524), + 148: uint16(31539), + 149: uint16(31550), + 150: uint16(31518), + 151: uint16(31576), + 152: uint16(31578), + 153: uint16(31557), + 154: uint16(31605), + 155: uint16(31564), + 156: uint16(31581), + 157: uint16(31584), + 158: uint16(31598), + 159: uint16(31611), + 160: uint16(31586), + 161: uint16(31602), + 162: uint16(31601), + 163: uint16(31632), + 164: uint16(31654), + 165: uint16(31655), + 166: uint16(31672), + 167: uint16(31660), + 168: uint16(31645), + 169: uint16(31656), + 170: uint16(31621), + 171: uint16(31658), + 172: uint16(31644), + 173: uint16(31650), + 174: uint16(31659), + 175: uint16(31668), + 176: uint16(31697), + 177: uint16(31681), + 178: uint16(31692), + 179: uint16(31709), + 180: uint16(31706), + 181: uint16(31717), + 182: uint16(31718), + 183: uint16(31722), + 184: uint16(31756), + 185: uint16(31742), + 186: uint16(31740), + 187: uint16(31759), + 188: uint16(31766), + 189: uint16(31755), + }, + 115: { + 0: uint16(39687), + 1: uint16(39689), + 2: uint16(39690), + 3: uint16(39691), + 4: uint16(39692), + 5: uint16(39693), + 6: uint16(39694), + 7: uint16(39696), + 8: uint16(39697), + 9: uint16(39698), + 10: uint16(39700), + 11: uint16(39701), + 12: uint16(39702), + 13: uint16(39703), + 14: uint16(39704), + 15: uint16(39705), + 16: uint16(39706), + 17: uint16(39707), + 18: uint16(39708), + 19: uint16(39709), + 20: uint16(39710), + 21: uint16(39712), + 22: uint16(39713), + 23: uint16(39714), + 24: uint16(39716), + 25: uint16(39717), + 26: uint16(39718), + 27: uint16(39719), + 28: uint16(39720), + 29: uint16(39721), + 30: uint16(39722), + 31: uint16(39723), + 32: uint16(39724), + 33: uint16(39725), + 34: uint16(39726), + 35: uint16(39728), + 36: uint16(39729), + 37: uint16(39731), + 38: uint16(39732), + 39: uint16(39733), + 40: uint16(39734), + 41: uint16(39735), + 42: uint16(39736), + 43: uint16(39737), + 44: uint16(39738), + 45: uint16(39741), + 46: uint16(39742), + 47: uint16(39743), + 48: uint16(39744), + 49: uint16(39750), + 50: uint16(39754), + 51: uint16(39755), + 52: uint16(39756), + 53: uint16(39758), + 54: uint16(39760), + 55: uint16(39762), + 56: uint16(39763), + 57: uint16(39765), + 58: uint16(39766), + 59: uint16(39767), + 60: uint16(39768), + 61: uint16(39769), + 62: uint16(39770), + 63: uint16(39771), + 64: uint16(39772), + 65: uint16(39773), + 66: uint16(39774), + 67: uint16(39775), + 68: uint16(39776), + 69: uint16(39777), + 70: uint16(39778), + 71: uint16(39779), + 72: uint16(39780), + 73: uint16(39781), + 74: uint16(39782), + 75: uint16(39783), + 76: uint16(39784), + 77: uint16(39785), + 78: uint16(39786), + 79: uint16(39787), + 80: uint16(39788), + 81: uint16(39789), + 82: uint16(39790), + 83: uint16(39791), + 84: uint16(39792), + 85: uint16(39793), + 86: uint16(39794), + 87: uint16(39795), + 88: uint16(39796), + 89: uint16(39797), + 90: uint16(39798), + 91: uint16(39799), + 92: uint16(39800), + 93: uint16(39801), + 94: uint16(39802), + 95: uint16(39803), + 96: uint16(31775), + 97: uint16(31786), + 98: uint16(31782), + 99: uint16(31800), + 100: uint16(31809), + 101: uint16(31808), + 102: uint16(33278), + 103: uint16(33281), + 104: uint16(33282), + 105: uint16(33284), + 106: uint16(33260), + 107: uint16(34884), + 108: uint16(33313), + 109: uint16(33314), + 110: uint16(33315), + 111: uint16(33325), + 112: uint16(33327), + 113: uint16(33320), + 114: uint16(33323), + 115: uint16(33336), + 116: uint16(33339), + 117: uint16(33331), + 118: uint16(33332), + 119: uint16(33342), + 120: uint16(33348), + 121: uint16(33353), + 122: uint16(33355), + 123: uint16(33359), + 124: uint16(33370), + 125: uint16(33375), + 126: uint16(33384), + 127: uint16(34942), + 128: uint16(34949), + 129: uint16(34952), + 130: uint16(35032), + 131: uint16(35039), + 132: uint16(35166), + 133: uint16(32669), + 134: uint16(32671), + 135: uint16(32679), + 136: uint16(32687), + 137: uint16(32688), + 138: uint16(32690), + 139: uint16(31868), + 140: uint16(25929), + 141: uint16(31889), + 142: uint16(31901), + 143: uint16(31900), + 144: uint16(31902), + 145: uint16(31906), + 146: uint16(31922), + 147: uint16(31932), + 148: uint16(31933), + 149: uint16(31937), + 150: uint16(31943), + 151: uint16(31948), + 152: uint16(31949), + 153: uint16(31944), + 154: uint16(31941), + 155: uint16(31959), + 156: uint16(31976), + 157: uint16(33390), + 158: uint16(26280), + 159: uint16(32703), + 160: uint16(32718), + 161: uint16(32725), + 162: uint16(32741), + 163: uint16(32737), + 164: uint16(32742), + 165: uint16(32745), + 166: uint16(32750), + 167: uint16(32755), + 168: uint16(31992), + 169: uint16(32119), + 170: uint16(32166), + 171: uint16(32174), + 172: uint16(32327), + 173: uint16(32411), + 174: uint16(40632), + 175: uint16(40628), + 176: uint16(36211), + 177: uint16(36228), + 178: uint16(36244), + 179: uint16(36241), + 180: uint16(36273), + 181: uint16(36199), + 182: uint16(36205), + 183: uint16(35911), + 184: uint16(35913), + 185: uint16(37194), + 186: uint16(37200), + 187: uint16(37198), + 188: uint16(37199), + 189: uint16(37220), + }, + 116: { + 0: uint16(39804), + 1: uint16(39805), + 2: uint16(39806), + 3: uint16(39807), + 4: uint16(39808), + 5: uint16(39809), + 6: uint16(39810), + 7: uint16(39811), + 8: uint16(39812), + 9: uint16(39813), + 10: uint16(39814), + 11: uint16(39815), + 12: uint16(39816), + 13: uint16(39817), + 14: uint16(39818), + 15: uint16(39819), + 16: uint16(39820), + 17: uint16(39821), + 18: uint16(39822), + 19: uint16(39823), + 20: uint16(39824), + 21: uint16(39825), + 22: uint16(39826), + 23: uint16(39827), + 24: uint16(39828), + 25: uint16(39829), + 26: uint16(39830), + 27: uint16(39831), + 28: uint16(39832), + 29: uint16(39833), + 30: uint16(39834), + 31: uint16(39835), + 32: uint16(39836), + 33: uint16(39837), + 34: uint16(39838), + 35: uint16(39839), + 36: uint16(39840), + 37: uint16(39841), + 38: uint16(39842), + 39: uint16(39843), + 40: uint16(39844), + 41: uint16(39845), + 42: uint16(39846), + 43: uint16(39847), + 44: uint16(39848), + 45: uint16(39849), + 46: uint16(39850), + 47: uint16(39851), + 48: uint16(39852), + 49: uint16(39853), + 50: uint16(39854), + 51: uint16(39855), + 52: uint16(39856), + 53: uint16(39857), + 54: uint16(39858), + 55: uint16(39859), + 56: uint16(39860), + 57: uint16(39861), + 58: uint16(39862), + 59: uint16(39863), + 60: uint16(39864), + 61: uint16(39865), + 62: uint16(39866), + 63: uint16(39867), + 64: uint16(39868), + 65: uint16(39869), + 66: uint16(39870), + 67: uint16(39871), + 68: uint16(39872), + 69: uint16(39873), + 70: uint16(39874), + 71: uint16(39875), + 72: uint16(39876), + 73: uint16(39877), + 74: uint16(39878), + 75: uint16(39879), + 76: uint16(39880), + 77: uint16(39881), + 78: uint16(39882), + 79: uint16(39883), + 80: uint16(39884), + 81: uint16(39885), + 82: uint16(39886), + 83: uint16(39887), + 84: uint16(39888), + 85: uint16(39889), + 86: uint16(39890), + 87: uint16(39891), + 88: uint16(39892), + 89: uint16(39893), + 90: uint16(39894), + 91: uint16(39895), + 92: uint16(39896), + 93: uint16(39897), + 94: uint16(39898), + 95: uint16(39899), + 96: uint16(37218), + 97: uint16(37217), + 98: uint16(37232), + 99: uint16(37225), + 100: uint16(37231), + 101: uint16(37245), + 102: uint16(37246), + 103: uint16(37234), + 104: uint16(37236), + 105: uint16(37241), + 106: uint16(37260), + 107: uint16(37253), + 108: uint16(37264), + 109: uint16(37261), + 110: uint16(37265), + 111: uint16(37282), + 112: uint16(37283), + 113: uint16(37290), + 114: uint16(37293), + 115: uint16(37294), + 116: uint16(37295), + 117: uint16(37301), + 118: uint16(37300), + 119: uint16(37306), + 120: uint16(35925), + 121: uint16(40574), + 122: uint16(36280), + 123: uint16(36331), + 124: uint16(36357), + 125: uint16(36441), + 126: uint16(36457), + 127: uint16(36277), + 128: uint16(36287), + 129: uint16(36284), + 130: uint16(36282), + 131: uint16(36292), + 132: uint16(36310), + 133: uint16(36311), + 134: uint16(36314), + 135: uint16(36318), + 136: uint16(36302), + 137: uint16(36303), + 138: uint16(36315), + 139: uint16(36294), + 140: uint16(36332), + 141: uint16(36343), + 142: uint16(36344), + 143: uint16(36323), + 144: uint16(36345), + 145: uint16(36347), + 146: uint16(36324), + 147: uint16(36361), + 148: uint16(36349), + 149: uint16(36372), + 150: uint16(36381), + 151: uint16(36383), + 152: uint16(36396), + 153: uint16(36398), + 154: uint16(36387), + 155: uint16(36399), + 156: uint16(36410), + 157: uint16(36416), + 158: uint16(36409), + 159: uint16(36405), + 160: uint16(36413), + 161: uint16(36401), + 162: uint16(36425), + 163: uint16(36417), + 164: uint16(36418), + 165: uint16(36433), + 166: uint16(36434), + 167: uint16(36426), + 168: uint16(36464), + 169: uint16(36470), + 170: uint16(36476), + 171: uint16(36463), + 172: uint16(36468), + 173: uint16(36485), + 174: uint16(36495), + 175: uint16(36500), + 176: uint16(36496), + 177: uint16(36508), + 178: uint16(36510), + 179: uint16(35960), + 180: uint16(35970), + 181: uint16(35978), + 182: uint16(35973), + 183: uint16(35992), + 184: uint16(35988), + 185: uint16(26011), + 186: uint16(35286), + 187: uint16(35294), + 188: uint16(35290), + 189: uint16(35292), + }, + 117: { + 0: uint16(39900), + 1: uint16(39901), + 2: uint16(39902), + 3: uint16(39903), + 4: uint16(39904), + 5: uint16(39905), + 6: uint16(39906), + 7: uint16(39907), + 8: uint16(39908), + 9: uint16(39909), + 10: uint16(39910), + 11: uint16(39911), + 12: uint16(39912), + 13: uint16(39913), + 14: uint16(39914), + 15: uint16(39915), + 16: uint16(39916), + 17: uint16(39917), + 18: uint16(39918), + 19: uint16(39919), + 20: uint16(39920), + 21: uint16(39921), + 22: uint16(39922), + 23: uint16(39923), + 24: uint16(39924), + 25: uint16(39925), + 26: uint16(39926), + 27: uint16(39927), + 28: uint16(39928), + 29: uint16(39929), + 30: uint16(39930), + 31: uint16(39931), + 32: uint16(39932), + 33: uint16(39933), + 34: uint16(39934), + 35: uint16(39935), + 36: uint16(39936), + 37: uint16(39937), + 38: uint16(39938), + 39: uint16(39939), + 40: uint16(39940), + 41: uint16(39941), + 42: uint16(39942), + 43: uint16(39943), + 44: uint16(39944), + 45: uint16(39945), + 46: uint16(39946), + 47: uint16(39947), + 48: uint16(39948), + 49: uint16(39949), + 50: uint16(39950), + 51: uint16(39951), + 52: uint16(39952), + 53: uint16(39953), + 54: uint16(39954), + 55: uint16(39955), + 56: uint16(39956), + 57: uint16(39957), + 58: uint16(39958), + 59: uint16(39959), + 60: uint16(39960), + 61: uint16(39961), + 62: uint16(39962), + 63: uint16(39963), + 64: uint16(39964), + 65: uint16(39965), + 66: uint16(39966), + 67: uint16(39967), + 68: uint16(39968), + 69: uint16(39969), + 70: uint16(39970), + 71: uint16(39971), + 72: uint16(39972), + 73: uint16(39973), + 74: uint16(39974), + 75: uint16(39975), + 76: uint16(39976), + 77: uint16(39977), + 78: uint16(39978), + 79: uint16(39979), + 80: uint16(39980), + 81: uint16(39981), + 82: uint16(39982), + 83: uint16(39983), + 84: uint16(39984), + 85: uint16(39985), + 86: uint16(39986), + 87: uint16(39987), + 88: uint16(39988), + 89: uint16(39989), + 90: uint16(39990), + 91: uint16(39991), + 92: uint16(39992), + 93: uint16(39993), + 94: uint16(39994), + 95: uint16(39995), + 96: uint16(35301), + 97: uint16(35307), + 98: uint16(35311), + 99: uint16(35390), + 100: uint16(35622), + 101: uint16(38739), + 102: uint16(38633), + 103: uint16(38643), + 104: uint16(38639), + 105: uint16(38662), + 106: uint16(38657), + 107: uint16(38664), + 108: uint16(38671), + 109: uint16(38670), + 110: uint16(38698), + 111: uint16(38701), + 112: uint16(38704), + 113: uint16(38718), + 114: uint16(40832), + 115: uint16(40835), + 116: uint16(40837), + 117: uint16(40838), + 118: uint16(40839), + 119: uint16(40840), + 120: uint16(40841), + 121: uint16(40842), + 122: uint16(40844), + 123: uint16(40702), + 124: uint16(40715), + 125: uint16(40717), + 126: uint16(38585), + 127: uint16(38588), + 128: uint16(38589), + 129: uint16(38606), + 130: uint16(38610), + 131: uint16(30655), + 132: uint16(38624), + 133: uint16(37518), + 134: uint16(37550), + 135: uint16(37576), + 136: uint16(37694), + 137: uint16(37738), + 138: uint16(37834), + 139: uint16(37775), + 140: uint16(37950), + 141: uint16(37995), + 142: uint16(40063), + 143: uint16(40066), + 144: uint16(40069), + 145: uint16(40070), + 146: uint16(40071), + 147: uint16(40072), + 148: uint16(31267), + 149: uint16(40075), + 150: uint16(40078), + 151: uint16(40080), + 152: uint16(40081), + 153: uint16(40082), + 154: uint16(40084), + 155: uint16(40085), + 156: uint16(40090), + 157: uint16(40091), + 158: uint16(40094), + 159: uint16(40095), + 160: uint16(40096), + 161: uint16(40097), + 162: uint16(40098), + 163: uint16(40099), + 164: uint16(40101), + 165: uint16(40102), + 166: uint16(40103), + 167: uint16(40104), + 168: uint16(40105), + 169: uint16(40107), + 170: uint16(40109), + 171: uint16(40110), + 172: uint16(40112), + 173: uint16(40113), + 174: uint16(40114), + 175: uint16(40115), + 176: uint16(40116), + 177: uint16(40117), + 178: uint16(40118), + 179: uint16(40119), + 180: uint16(40122), + 181: uint16(40123), + 182: uint16(40124), + 183: uint16(40125), + 184: uint16(40132), + 185: uint16(40133), + 186: uint16(40134), + 187: uint16(40135), + 188: uint16(40138), + 189: uint16(40139), + }, + 118: { + 0: uint16(39996), + 1: uint16(39997), + 2: uint16(39998), + 3: uint16(39999), + 4: uint16(40000), + 5: uint16(40001), + 6: uint16(40002), + 7: uint16(40003), + 8: uint16(40004), + 9: uint16(40005), + 10: uint16(40006), + 11: uint16(40007), + 12: uint16(40008), + 13: uint16(40009), + 14: uint16(40010), + 15: uint16(40011), + 16: uint16(40012), + 17: uint16(40013), + 18: uint16(40014), + 19: uint16(40015), + 20: uint16(40016), + 21: uint16(40017), + 22: uint16(40018), + 23: uint16(40019), + 24: uint16(40020), + 25: uint16(40021), + 26: uint16(40022), + 27: uint16(40023), + 28: uint16(40024), + 29: uint16(40025), + 30: uint16(40026), + 31: uint16(40027), + 32: uint16(40028), + 33: uint16(40029), + 34: uint16(40030), + 35: uint16(40031), + 36: uint16(40032), + 37: uint16(40033), + 38: uint16(40034), + 39: uint16(40035), + 40: uint16(40036), + 41: uint16(40037), + 42: uint16(40038), + 43: uint16(40039), + 44: uint16(40040), + 45: uint16(40041), + 46: uint16(40042), + 47: uint16(40043), + 48: uint16(40044), + 49: uint16(40045), + 50: uint16(40046), + 51: uint16(40047), + 52: uint16(40048), + 53: uint16(40049), + 54: uint16(40050), + 55: uint16(40051), + 56: uint16(40052), + 57: uint16(40053), + 58: uint16(40054), + 59: uint16(40055), + 60: uint16(40056), + 61: uint16(40057), + 62: uint16(40058), + 63: uint16(40059), + 64: uint16(40061), + 65: uint16(40062), + 66: uint16(40064), + 67: uint16(40067), + 68: uint16(40068), + 69: uint16(40073), + 70: uint16(40074), + 71: uint16(40076), + 72: uint16(40079), + 73: uint16(40083), + 74: uint16(40086), + 75: uint16(40087), + 76: uint16(40088), + 77: uint16(40089), + 78: uint16(40093), + 79: uint16(40106), + 80: uint16(40108), + 81: uint16(40111), + 82: uint16(40121), + 83: uint16(40126), + 84: uint16(40127), + 85: uint16(40128), + 86: uint16(40129), + 87: uint16(40130), + 88: uint16(40136), + 89: uint16(40137), + 90: uint16(40145), + 91: uint16(40146), + 92: uint16(40154), + 93: uint16(40155), + 94: uint16(40160), + 95: uint16(40161), + 96: uint16(40140), + 97: uint16(40141), + 98: uint16(40142), + 99: uint16(40143), + 100: uint16(40144), + 101: uint16(40147), + 102: uint16(40148), + 103: uint16(40149), + 104: uint16(40151), + 105: uint16(40152), + 106: uint16(40153), + 107: uint16(40156), + 108: uint16(40157), + 109: uint16(40159), + 110: uint16(40162), + 111: uint16(38780), + 112: uint16(38789), + 113: uint16(38801), + 114: uint16(38802), + 115: uint16(38804), + 116: uint16(38831), + 117: uint16(38827), + 118: uint16(38819), + 119: uint16(38834), + 120: uint16(38836), + 121: uint16(39601), + 122: uint16(39600), + 123: uint16(39607), + 124: uint16(40536), + 125: uint16(39606), + 126: uint16(39610), + 127: uint16(39612), + 128: uint16(39617), + 129: uint16(39616), + 130: uint16(39621), + 131: uint16(39618), + 132: uint16(39627), + 133: uint16(39628), + 134: uint16(39633), + 135: uint16(39749), + 136: uint16(39747), + 137: uint16(39751), + 138: uint16(39753), + 139: uint16(39752), + 140: uint16(39757), + 141: uint16(39761), + 142: uint16(39144), + 143: uint16(39181), + 144: uint16(39214), + 145: uint16(39253), + 146: uint16(39252), + 147: uint16(39647), + 148: uint16(39649), + 149: uint16(39654), + 150: uint16(39663), + 151: uint16(39659), + 152: uint16(39675), + 153: uint16(39661), + 154: uint16(39673), + 155: uint16(39688), + 156: uint16(39695), + 157: uint16(39699), + 158: uint16(39711), + 159: uint16(39715), + 160: uint16(40637), + 161: uint16(40638), + 162: uint16(32315), + 163: uint16(40578), + 164: uint16(40583), + 165: uint16(40584), + 166: uint16(40587), + 167: uint16(40594), + 168: uint16(37846), + 169: uint16(40605), + 170: uint16(40607), + 171: uint16(40667), + 172: uint16(40668), + 173: uint16(40669), + 174: uint16(40672), + 175: uint16(40671), + 176: uint16(40674), + 177: uint16(40681), + 178: uint16(40679), + 179: uint16(40677), + 180: uint16(40682), + 181: uint16(40687), + 182: uint16(40738), + 183: uint16(40748), + 184: uint16(40751), + 185: uint16(40761), + 186: uint16(40759), + 187: uint16(40765), + 188: uint16(40766), + 189: uint16(40772), + }, + 119: { + 0: uint16(40163), + 1: uint16(40164), + 2: uint16(40165), + 3: uint16(40166), + 4: uint16(40167), + 5: uint16(40168), + 6: uint16(40169), + 7: uint16(40170), + 8: uint16(40171), + 9: uint16(40172), + 10: uint16(40173), + 11: uint16(40174), + 12: uint16(40175), + 13: uint16(40176), + 14: uint16(40177), + 15: uint16(40178), + 16: uint16(40179), + 17: uint16(40180), + 18: uint16(40181), + 19: uint16(40182), + 20: uint16(40183), + 21: uint16(40184), + 22: uint16(40185), + 23: uint16(40186), + 24: uint16(40187), + 25: uint16(40188), + 26: uint16(40189), + 27: uint16(40190), + 28: uint16(40191), + 29: uint16(40192), + 30: uint16(40193), + 31: uint16(40194), + 32: uint16(40195), + 33: uint16(40196), + 34: uint16(40197), + 35: uint16(40198), + 36: uint16(40199), + 37: uint16(40200), + 38: uint16(40201), + 39: uint16(40202), + 40: uint16(40203), + 41: uint16(40204), + 42: uint16(40205), + 43: uint16(40206), + 44: uint16(40207), + 45: uint16(40208), + 46: uint16(40209), + 47: uint16(40210), + 48: uint16(40211), + 49: uint16(40212), + 50: uint16(40213), + 51: uint16(40214), + 52: uint16(40215), + 53: uint16(40216), + 54: uint16(40217), + 55: uint16(40218), + 56: uint16(40219), + 57: uint16(40220), + 58: uint16(40221), + 59: uint16(40222), + 60: uint16(40223), + 61: uint16(40224), + 62: uint16(40225), + 63: uint16(40226), + 64: uint16(40227), + 65: uint16(40228), + 66: uint16(40229), + 67: uint16(40230), + 68: uint16(40231), + 69: uint16(40232), + 70: uint16(40233), + 71: uint16(40234), + 72: uint16(40235), + 73: uint16(40236), + 74: uint16(40237), + 75: uint16(40238), + 76: uint16(40239), + 77: uint16(40240), + 78: uint16(40241), + 79: uint16(40242), + 80: uint16(40243), + 81: uint16(40244), + 82: uint16(40245), + 83: uint16(40246), + 84: uint16(40247), + 85: uint16(40248), + 86: uint16(40249), + 87: uint16(40250), + 88: uint16(40251), + 89: uint16(40252), + 90: uint16(40253), + 91: uint16(40254), + 92: uint16(40255), + 93: uint16(40256), + 94: uint16(40257), + 95: uint16(40258), + 96: uint16(57908), + 97: uint16(57909), + 98: uint16(57910), + 99: uint16(57911), + 100: uint16(57912), + 101: uint16(57913), + 102: uint16(57914), + 103: uint16(57915), + 104: uint16(57916), + 105: uint16(57917), + 106: uint16(57918), + 107: uint16(57919), + 108: uint16(57920), + 109: uint16(57921), + 110: uint16(57922), + 111: uint16(57923), + 112: uint16(57924), + 113: uint16(57925), + 114: uint16(57926), + 115: uint16(57927), + 116: uint16(57928), + 117: uint16(57929), + 118: uint16(57930), + 119: uint16(57931), + 120: uint16(57932), + 121: uint16(57933), + 122: uint16(57934), + 123: uint16(57935), + 124: uint16(57936), + 125: uint16(57937), + 126: uint16(57938), + 127: uint16(57939), + 128: uint16(57940), + 129: uint16(57941), + 130: uint16(57942), + 131: uint16(57943), + 132: uint16(57944), + 133: uint16(57945), + 134: uint16(57946), + 135: uint16(57947), + 136: uint16(57948), + 137: uint16(57949), + 138: uint16(57950), + 139: uint16(57951), + 140: uint16(57952), + 141: uint16(57953), + 142: uint16(57954), + 143: uint16(57955), + 144: uint16(57956), + 145: uint16(57957), + 146: uint16(57958), + 147: uint16(57959), + 148: uint16(57960), + 149: uint16(57961), + 150: uint16(57962), + 151: uint16(57963), + 152: uint16(57964), + 153: uint16(57965), + 154: uint16(57966), + 155: uint16(57967), + 156: uint16(57968), + 157: uint16(57969), + 158: uint16(57970), + 159: uint16(57971), + 160: uint16(57972), + 161: uint16(57973), + 162: uint16(57974), + 163: uint16(57975), + 164: uint16(57976), + 165: uint16(57977), + 166: uint16(57978), + 167: uint16(57979), + 168: uint16(57980), + 169: uint16(57981), + 170: uint16(57982), + 171: uint16(57983), + 172: uint16(57984), + 173: uint16(57985), + 174: uint16(57986), + 175: uint16(57987), + 176: uint16(57988), + 177: uint16(57989), + 178: uint16(57990), + 179: uint16(57991), + 180: uint16(57992), + 181: uint16(57993), + 182: uint16(57994), + 183: uint16(57995), + 184: uint16(57996), + 185: uint16(57997), + 186: uint16(57998), + 187: uint16(57999), + 188: uint16(58000), + 189: uint16(58001), + }, + 120: { + 0: uint16(40259), + 1: uint16(40260), + 2: uint16(40261), + 3: uint16(40262), + 4: uint16(40263), + 5: uint16(40264), + 6: uint16(40265), + 7: uint16(40266), + 8: uint16(40267), + 9: uint16(40268), + 10: uint16(40269), + 11: uint16(40270), + 12: uint16(40271), + 13: uint16(40272), + 14: uint16(40273), + 15: uint16(40274), + 16: uint16(40275), + 17: uint16(40276), + 18: uint16(40277), + 19: uint16(40278), + 20: uint16(40279), + 21: uint16(40280), + 22: uint16(40281), + 23: uint16(40282), + 24: uint16(40283), + 25: uint16(40284), + 26: uint16(40285), + 27: uint16(40286), + 28: uint16(40287), + 29: uint16(40288), + 30: uint16(40289), + 31: uint16(40290), + 32: uint16(40291), + 33: uint16(40292), + 34: uint16(40293), + 35: uint16(40294), + 36: uint16(40295), + 37: uint16(40296), + 38: uint16(40297), + 39: uint16(40298), + 40: uint16(40299), + 41: uint16(40300), + 42: uint16(40301), + 43: uint16(40302), + 44: uint16(40303), + 45: uint16(40304), + 46: uint16(40305), + 47: uint16(40306), + 48: uint16(40307), + 49: uint16(40308), + 50: uint16(40309), + 51: uint16(40310), + 52: uint16(40311), + 53: uint16(40312), + 54: uint16(40313), + 55: uint16(40314), + 56: uint16(40315), + 57: uint16(40316), + 58: uint16(40317), + 59: uint16(40318), + 60: uint16(40319), + 61: uint16(40320), + 62: uint16(40321), + 63: uint16(40322), + 64: uint16(40323), + 65: uint16(40324), + 66: uint16(40325), + 67: uint16(40326), + 68: uint16(40327), + 69: uint16(40328), + 70: uint16(40329), + 71: uint16(40330), + 72: uint16(40331), + 73: uint16(40332), + 74: uint16(40333), + 75: uint16(40334), + 76: uint16(40335), + 77: uint16(40336), + 78: uint16(40337), + 79: uint16(40338), + 80: uint16(40339), + 81: uint16(40340), + 82: uint16(40341), + 83: uint16(40342), + 84: uint16(40343), + 85: uint16(40344), + 86: uint16(40345), + 87: uint16(40346), + 88: uint16(40347), + 89: uint16(40348), + 90: uint16(40349), + 91: uint16(40350), + 92: uint16(40351), + 93: uint16(40352), + 94: uint16(40353), + 95: uint16(40354), + 96: uint16(58002), + 97: uint16(58003), + 98: uint16(58004), + 99: uint16(58005), + 100: uint16(58006), + 101: uint16(58007), + 102: uint16(58008), + 103: uint16(58009), + 104: uint16(58010), + 105: uint16(58011), + 106: uint16(58012), + 107: uint16(58013), + 108: uint16(58014), + 109: uint16(58015), + 110: uint16(58016), + 111: uint16(58017), + 112: uint16(58018), + 113: uint16(58019), + 114: uint16(58020), + 115: uint16(58021), + 116: uint16(58022), + 117: uint16(58023), + 118: uint16(58024), + 119: uint16(58025), + 120: uint16(58026), + 121: uint16(58027), + 122: uint16(58028), + 123: uint16(58029), + 124: uint16(58030), + 125: uint16(58031), + 126: uint16(58032), + 127: uint16(58033), + 128: uint16(58034), + 129: uint16(58035), + 130: uint16(58036), + 131: uint16(58037), + 132: uint16(58038), + 133: uint16(58039), + 134: uint16(58040), + 135: uint16(58041), + 136: uint16(58042), + 137: uint16(58043), + 138: uint16(58044), + 139: uint16(58045), + 140: uint16(58046), + 141: uint16(58047), + 142: uint16(58048), + 143: uint16(58049), + 144: uint16(58050), + 145: uint16(58051), + 146: uint16(58052), + 147: uint16(58053), + 148: uint16(58054), + 149: uint16(58055), + 150: uint16(58056), + 151: uint16(58057), + 152: uint16(58058), + 153: uint16(58059), + 154: uint16(58060), + 155: uint16(58061), + 156: uint16(58062), + 157: uint16(58063), + 158: uint16(58064), + 159: uint16(58065), + 160: uint16(58066), + 161: uint16(58067), + 162: uint16(58068), + 163: uint16(58069), + 164: uint16(58070), + 165: uint16(58071), + 166: uint16(58072), + 167: uint16(58073), + 168: uint16(58074), + 169: uint16(58075), + 170: uint16(58076), + 171: uint16(58077), + 172: uint16(58078), + 173: uint16(58079), + 174: uint16(58080), + 175: uint16(58081), + 176: uint16(58082), + 177: uint16(58083), + 178: uint16(58084), + 179: uint16(58085), + 180: uint16(58086), + 181: uint16(58087), + 182: uint16(58088), + 183: uint16(58089), + 184: uint16(58090), + 185: uint16(58091), + 186: uint16(58092), + 187: uint16(58093), + 188: uint16(58094), + 189: uint16(58095), + }, + 121: { + 0: uint16(40355), + 1: uint16(40356), + 2: uint16(40357), + 3: uint16(40358), + 4: uint16(40359), + 5: uint16(40360), + 6: uint16(40361), + 7: uint16(40362), + 8: uint16(40363), + 9: uint16(40364), + 10: uint16(40365), + 11: uint16(40366), + 12: uint16(40367), + 13: uint16(40368), + 14: uint16(40369), + 15: uint16(40370), + 16: uint16(40371), + 17: uint16(40372), + 18: uint16(40373), + 19: uint16(40374), + 20: uint16(40375), + 21: uint16(40376), + 22: uint16(40377), + 23: uint16(40378), + 24: uint16(40379), + 25: uint16(40380), + 26: uint16(40381), + 27: uint16(40382), + 28: uint16(40383), + 29: uint16(40384), + 30: uint16(40385), + 31: uint16(40386), + 32: uint16(40387), + 33: uint16(40388), + 34: uint16(40389), + 35: uint16(40390), + 36: uint16(40391), + 37: uint16(40392), + 38: uint16(40393), + 39: uint16(40394), + 40: uint16(40395), + 41: uint16(40396), + 42: uint16(40397), + 43: uint16(40398), + 44: uint16(40399), + 45: uint16(40400), + 46: uint16(40401), + 47: uint16(40402), + 48: uint16(40403), + 49: uint16(40404), + 50: uint16(40405), + 51: uint16(40406), + 52: uint16(40407), + 53: uint16(40408), + 54: uint16(40409), + 55: uint16(40410), + 56: uint16(40411), + 57: uint16(40412), + 58: uint16(40413), + 59: uint16(40414), + 60: uint16(40415), + 61: uint16(40416), + 62: uint16(40417), + 63: uint16(40418), + 64: uint16(40419), + 65: uint16(40420), + 66: uint16(40421), + 67: uint16(40422), + 68: uint16(40423), + 69: uint16(40424), + 70: uint16(40425), + 71: uint16(40426), + 72: uint16(40427), + 73: uint16(40428), + 74: uint16(40429), + 75: uint16(40430), + 76: uint16(40431), + 77: uint16(40432), + 78: uint16(40433), + 79: uint16(40434), + 80: uint16(40435), + 81: uint16(40436), + 82: uint16(40437), + 83: uint16(40438), + 84: uint16(40439), + 85: uint16(40440), + 86: uint16(40441), + 87: uint16(40442), + 88: uint16(40443), + 89: uint16(40444), + 90: uint16(40445), + 91: uint16(40446), + 92: uint16(40447), + 93: uint16(40448), + 94: uint16(40449), + 95: uint16(40450), + 96: uint16(58096), + 97: uint16(58097), + 98: uint16(58098), + 99: uint16(58099), + 100: uint16(58100), + 101: uint16(58101), + 102: uint16(58102), + 103: uint16(58103), + 104: uint16(58104), + 105: uint16(58105), + 106: uint16(58106), + 107: uint16(58107), + 108: uint16(58108), + 109: uint16(58109), + 110: uint16(58110), + 111: uint16(58111), + 112: uint16(58112), + 113: uint16(58113), + 114: uint16(58114), + 115: uint16(58115), + 116: uint16(58116), + 117: uint16(58117), + 118: uint16(58118), + 119: uint16(58119), + 120: uint16(58120), + 121: uint16(58121), + 122: uint16(58122), + 123: uint16(58123), + 124: uint16(58124), + 125: uint16(58125), + 126: uint16(58126), + 127: uint16(58127), + 128: uint16(58128), + 129: uint16(58129), + 130: uint16(58130), + 131: uint16(58131), + 132: uint16(58132), + 133: uint16(58133), + 134: uint16(58134), + 135: uint16(58135), + 136: uint16(58136), + 137: uint16(58137), + 138: uint16(58138), + 139: uint16(58139), + 140: uint16(58140), + 141: uint16(58141), + 142: uint16(58142), + 143: uint16(58143), + 144: uint16(58144), + 145: uint16(58145), + 146: uint16(58146), + 147: uint16(58147), + 148: uint16(58148), + 149: uint16(58149), + 150: uint16(58150), + 151: uint16(58151), + 152: uint16(58152), + 153: uint16(58153), + 154: uint16(58154), + 155: uint16(58155), + 156: uint16(58156), + 157: uint16(58157), + 158: uint16(58158), + 159: uint16(58159), + 160: uint16(58160), + 161: uint16(58161), + 162: uint16(58162), + 163: uint16(58163), + 164: uint16(58164), + 165: uint16(58165), + 166: uint16(58166), + 167: uint16(58167), + 168: uint16(58168), + 169: uint16(58169), + 170: uint16(58170), + 171: uint16(58171), + 172: uint16(58172), + 173: uint16(58173), + 174: uint16(58174), + 175: uint16(58175), + 176: uint16(58176), + 177: uint16(58177), + 178: uint16(58178), + 179: uint16(58179), + 180: uint16(58180), + 181: uint16(58181), + 182: uint16(58182), + 183: uint16(58183), + 184: uint16(58184), + 185: uint16(58185), + 186: uint16(58186), + 187: uint16(58187), + 188: uint16(58188), + 189: uint16(58189), + }, + 122: { + 0: uint16(40451), + 1: uint16(40452), + 2: uint16(40453), + 3: uint16(40454), + 4: uint16(40455), + 5: uint16(40456), + 6: uint16(40457), + 7: uint16(40458), + 8: uint16(40459), + 9: uint16(40460), + 10: uint16(40461), + 11: uint16(40462), + 12: uint16(40463), + 13: uint16(40464), + 14: uint16(40465), + 15: uint16(40466), + 16: uint16(40467), + 17: uint16(40468), + 18: uint16(40469), + 19: uint16(40470), + 20: uint16(40471), + 21: uint16(40472), + 22: uint16(40473), + 23: uint16(40474), + 24: uint16(40475), + 25: uint16(40476), + 26: uint16(40477), + 27: uint16(40478), + 28: uint16(40484), + 29: uint16(40487), + 30: uint16(40494), + 31: uint16(40496), + 32: uint16(40500), + 33: uint16(40507), + 34: uint16(40508), + 35: uint16(40512), + 36: uint16(40525), + 37: uint16(40528), + 38: uint16(40530), + 39: uint16(40531), + 40: uint16(40532), + 41: uint16(40534), + 42: uint16(40537), + 43: uint16(40541), + 44: uint16(40543), + 45: uint16(40544), + 46: uint16(40545), + 47: uint16(40546), + 48: uint16(40549), + 49: uint16(40558), + 50: uint16(40559), + 51: uint16(40562), + 52: uint16(40564), + 53: uint16(40565), + 54: uint16(40566), + 55: uint16(40567), + 56: uint16(40568), + 57: uint16(40569), + 58: uint16(40570), + 59: uint16(40571), + 60: uint16(40572), + 61: uint16(40573), + 62: uint16(40576), + 63: uint16(40577), + 64: uint16(40579), + 65: uint16(40580), + 66: uint16(40581), + 67: uint16(40582), + 68: uint16(40585), + 69: uint16(40586), + 70: uint16(40588), + 71: uint16(40589), + 72: uint16(40590), + 73: uint16(40591), + 74: uint16(40592), + 75: uint16(40593), + 76: uint16(40596), + 77: uint16(40597), + 78: uint16(40598), + 79: uint16(40599), + 80: uint16(40600), + 81: uint16(40601), + 82: uint16(40602), + 83: uint16(40603), + 84: uint16(40604), + 85: uint16(40606), + 86: uint16(40608), + 87: uint16(40609), + 88: uint16(40610), + 89: uint16(40611), + 90: uint16(40612), + 91: uint16(40613), + 92: uint16(40615), + 93: uint16(40616), + 94: uint16(40617), + 95: uint16(40618), + 96: uint16(58190), + 97: uint16(58191), + 98: uint16(58192), + 99: uint16(58193), + 100: uint16(58194), + 101: uint16(58195), + 102: uint16(58196), + 103: uint16(58197), + 104: uint16(58198), + 105: uint16(58199), + 106: uint16(58200), + 107: uint16(58201), + 108: uint16(58202), + 109: uint16(58203), + 110: uint16(58204), + 111: uint16(58205), + 112: uint16(58206), + 113: uint16(58207), + 114: uint16(58208), + 115: uint16(58209), + 116: uint16(58210), + 117: uint16(58211), + 118: uint16(58212), + 119: uint16(58213), + 120: uint16(58214), + 121: uint16(58215), + 122: uint16(58216), + 123: uint16(58217), + 124: uint16(58218), + 125: uint16(58219), + 126: uint16(58220), + 127: uint16(58221), + 128: uint16(58222), + 129: uint16(58223), + 130: uint16(58224), + 131: uint16(58225), + 132: uint16(58226), + 133: uint16(58227), + 134: uint16(58228), + 135: uint16(58229), + 136: uint16(58230), + 137: uint16(58231), + 138: uint16(58232), + 139: uint16(58233), + 140: uint16(58234), + 141: uint16(58235), + 142: uint16(58236), + 143: uint16(58237), + 144: uint16(58238), + 145: uint16(58239), + 146: uint16(58240), + 147: uint16(58241), + 148: uint16(58242), + 149: uint16(58243), + 150: uint16(58244), + 151: uint16(58245), + 152: uint16(58246), + 153: uint16(58247), + 154: uint16(58248), + 155: uint16(58249), + 156: uint16(58250), + 157: uint16(58251), + 158: uint16(58252), + 159: uint16(58253), + 160: uint16(58254), + 161: uint16(58255), + 162: uint16(58256), + 163: uint16(58257), + 164: uint16(58258), + 165: uint16(58259), + 166: uint16(58260), + 167: uint16(58261), + 168: uint16(58262), + 169: uint16(58263), + 170: uint16(58264), + 171: uint16(58265), + 172: uint16(58266), + 173: uint16(58267), + 174: uint16(58268), + 175: uint16(58269), + 176: uint16(58270), + 177: uint16(58271), + 178: uint16(58272), + 179: uint16(58273), + 180: uint16(58274), + 181: uint16(58275), + 182: uint16(58276), + 183: uint16(58277), + 184: uint16(58278), + 185: uint16(58279), + 186: uint16(58280), + 187: uint16(58281), + 188: uint16(58282), + 189: uint16(58283), + }, + 123: { + 0: uint16(40619), + 1: uint16(40620), + 2: uint16(40621), + 3: uint16(40622), + 4: uint16(40623), + 5: uint16(40624), + 6: uint16(40625), + 7: uint16(40626), + 8: uint16(40627), + 9: uint16(40629), + 10: uint16(40630), + 11: uint16(40631), + 12: uint16(40633), + 13: uint16(40634), + 14: uint16(40636), + 15: uint16(40639), + 16: uint16(40640), + 17: uint16(40641), + 18: uint16(40642), + 19: uint16(40643), + 20: uint16(40645), + 21: uint16(40646), + 22: uint16(40647), + 23: uint16(40648), + 24: uint16(40650), + 25: uint16(40651), + 26: uint16(40652), + 27: uint16(40656), + 28: uint16(40658), + 29: uint16(40659), + 30: uint16(40661), + 31: uint16(40662), + 32: uint16(40663), + 33: uint16(40665), + 34: uint16(40666), + 35: uint16(40670), + 36: uint16(40673), + 37: uint16(40675), + 38: uint16(40676), + 39: uint16(40678), + 40: uint16(40680), + 41: uint16(40683), + 42: uint16(40684), + 43: uint16(40685), + 44: uint16(40686), + 45: uint16(40688), + 46: uint16(40689), + 47: uint16(40690), + 48: uint16(40691), + 49: uint16(40692), + 50: uint16(40693), + 51: uint16(40694), + 52: uint16(40695), + 53: uint16(40696), + 54: uint16(40698), + 55: uint16(40701), + 56: uint16(40703), + 57: uint16(40704), + 58: uint16(40705), + 59: uint16(40706), + 60: uint16(40707), + 61: uint16(40708), + 62: uint16(40709), + 63: uint16(40710), + 64: uint16(40711), + 65: uint16(40712), + 66: uint16(40713), + 67: uint16(40714), + 68: uint16(40716), + 69: uint16(40719), + 70: uint16(40721), + 71: uint16(40722), + 72: uint16(40724), + 73: uint16(40725), + 74: uint16(40726), + 75: uint16(40728), + 76: uint16(40730), + 77: uint16(40731), + 78: uint16(40732), + 79: uint16(40733), + 80: uint16(40734), + 81: uint16(40735), + 82: uint16(40737), + 83: uint16(40739), + 84: uint16(40740), + 85: uint16(40741), + 86: uint16(40742), + 87: uint16(40743), + 88: uint16(40744), + 89: uint16(40745), + 90: uint16(40746), + 91: uint16(40747), + 92: uint16(40749), + 93: uint16(40750), + 94: uint16(40752), + 95: uint16(40753), + 96: uint16(58284), + 97: uint16(58285), + 98: uint16(58286), + 99: uint16(58287), + 100: uint16(58288), + 101: uint16(58289), + 102: uint16(58290), + 103: uint16(58291), + 104: uint16(58292), + 105: uint16(58293), + 106: uint16(58294), + 107: uint16(58295), + 108: uint16(58296), + 109: uint16(58297), + 110: uint16(58298), + 111: uint16(58299), + 112: uint16(58300), + 113: uint16(58301), + 114: uint16(58302), + 115: uint16(58303), + 116: uint16(58304), + 117: uint16(58305), + 118: uint16(58306), + 119: uint16(58307), + 120: uint16(58308), + 121: uint16(58309), + 122: uint16(58310), + 123: uint16(58311), + 124: uint16(58312), + 125: uint16(58313), + 126: uint16(58314), + 127: uint16(58315), + 128: uint16(58316), + 129: uint16(58317), + 130: uint16(58318), + 131: uint16(58319), + 132: uint16(58320), + 133: uint16(58321), + 134: uint16(58322), + 135: uint16(58323), + 136: uint16(58324), + 137: uint16(58325), + 138: uint16(58326), + 139: uint16(58327), + 140: uint16(58328), + 141: uint16(58329), + 142: uint16(58330), + 143: uint16(58331), + 144: uint16(58332), + 145: uint16(58333), + 146: uint16(58334), + 147: uint16(58335), + 148: uint16(58336), + 149: uint16(58337), + 150: uint16(58338), + 151: uint16(58339), + 152: uint16(58340), + 153: uint16(58341), + 154: uint16(58342), + 155: uint16(58343), + 156: uint16(58344), + 157: uint16(58345), + 158: uint16(58346), + 159: uint16(58347), + 160: uint16(58348), + 161: uint16(58349), + 162: uint16(58350), + 163: uint16(58351), + 164: uint16(58352), + 165: uint16(58353), + 166: uint16(58354), + 167: uint16(58355), + 168: uint16(58356), + 169: uint16(58357), + 170: uint16(58358), + 171: uint16(58359), + 172: uint16(58360), + 173: uint16(58361), + 174: uint16(58362), + 175: uint16(58363), + 176: uint16(58364), + 177: uint16(58365), + 178: uint16(58366), + 179: uint16(58367), + 180: uint16(58368), + 181: uint16(58369), + 182: uint16(58370), + 183: uint16(58371), + 184: uint16(58372), + 185: uint16(58373), + 186: uint16(58374), + 187: uint16(58375), + 188: uint16(58376), + 189: uint16(58377), + }, + 124: { + 0: uint16(40754), + 1: uint16(40755), + 2: uint16(40756), + 3: uint16(40757), + 4: uint16(40758), + 5: uint16(40760), + 6: uint16(40762), + 7: uint16(40764), + 8: uint16(40767), + 9: uint16(40768), + 10: uint16(40769), + 11: uint16(40770), + 12: uint16(40771), + 13: uint16(40773), + 14: uint16(40774), + 15: uint16(40775), + 16: uint16(40776), + 17: uint16(40777), + 18: uint16(40778), + 19: uint16(40779), + 20: uint16(40780), + 21: uint16(40781), + 22: uint16(40782), + 23: uint16(40783), + 24: uint16(40786), + 25: uint16(40787), + 26: uint16(40788), + 27: uint16(40789), + 28: uint16(40790), + 29: uint16(40791), + 30: uint16(40792), + 31: uint16(40793), + 32: uint16(40794), + 33: uint16(40795), + 34: uint16(40796), + 35: uint16(40797), + 36: uint16(40798), + 37: uint16(40799), + 38: uint16(40800), + 39: uint16(40801), + 40: uint16(40802), + 41: uint16(40803), + 42: uint16(40804), + 43: uint16(40805), + 44: uint16(40806), + 45: uint16(40807), + 46: uint16(40808), + 47: uint16(40809), + 48: uint16(40810), + 49: uint16(40811), + 50: uint16(40812), + 51: uint16(40813), + 52: uint16(40814), + 53: uint16(40815), + 54: uint16(40816), + 55: uint16(40817), + 56: uint16(40818), + 57: uint16(40819), + 58: uint16(40820), + 59: uint16(40821), + 60: uint16(40822), + 61: uint16(40823), + 62: uint16(40824), + 63: uint16(40825), + 64: uint16(40826), + 65: uint16(40827), + 66: uint16(40828), + 67: uint16(40829), + 68: uint16(40830), + 69: uint16(40833), + 70: uint16(40834), + 71: uint16(40845), + 72: uint16(40846), + 73: uint16(40847), + 74: uint16(40848), + 75: uint16(40849), + 76: uint16(40850), + 77: uint16(40851), + 78: uint16(40852), + 79: uint16(40853), + 80: uint16(40854), + 81: uint16(40855), + 82: uint16(40856), + 83: uint16(40860), + 84: uint16(40861), + 85: uint16(40862), + 86: uint16(40865), + 87: uint16(40866), + 88: uint16(40867), + 89: uint16(40868), + 90: uint16(40869), + 91: uint16(63788), + 92: uint16(63865), + 93: uint16(63893), + 94: uint16(63975), + 95: uint16(63985), + 96: uint16(58378), + 97: uint16(58379), + 98: uint16(58380), + 99: uint16(58381), + 100: uint16(58382), + 101: uint16(58383), + 102: uint16(58384), + 103: uint16(58385), + 104: uint16(58386), + 105: uint16(58387), + 106: uint16(58388), + 107: uint16(58389), + 108: uint16(58390), + 109: uint16(58391), + 110: uint16(58392), + 111: uint16(58393), + 112: uint16(58394), + 113: uint16(58395), + 114: uint16(58396), + 115: uint16(58397), + 116: uint16(58398), + 117: uint16(58399), + 118: uint16(58400), + 119: uint16(58401), + 120: uint16(58402), + 121: uint16(58403), + 122: uint16(58404), + 123: uint16(58405), + 124: uint16(58406), + 125: uint16(58407), + 126: uint16(58408), + 127: uint16(58409), + 128: uint16(58410), + 129: uint16(58411), + 130: uint16(58412), + 131: uint16(58413), + 132: uint16(58414), + 133: uint16(58415), + 134: uint16(58416), + 135: uint16(58417), + 136: uint16(58418), + 137: uint16(58419), + 138: uint16(58420), + 139: uint16(58421), + 140: uint16(58422), + 141: uint16(58423), + 142: uint16(58424), + 143: uint16(58425), + 144: uint16(58426), + 145: uint16(58427), + 146: uint16(58428), + 147: uint16(58429), + 148: uint16(58430), + 149: uint16(58431), + 150: uint16(58432), + 151: uint16(58433), + 152: uint16(58434), + 153: uint16(58435), + 154: uint16(58436), + 155: uint16(58437), + 156: uint16(58438), + 157: uint16(58439), + 158: uint16(58440), + 159: uint16(58441), + 160: uint16(58442), + 161: uint16(58443), + 162: uint16(58444), + 163: uint16(58445), + 164: uint16(58446), + 165: uint16(58447), + 166: uint16(58448), + 167: uint16(58449), + 168: uint16(58450), + 169: uint16(58451), + 170: uint16(58452), + 171: uint16(58453), + 172: uint16(58454), + 173: uint16(58455), + 174: uint16(58456), + 175: uint16(58457), + 176: uint16(58458), + 177: uint16(58459), + 178: uint16(58460), + 179: uint16(58461), + 180: uint16(58462), + 181: uint16(58463), + 182: uint16(58464), + 183: uint16(58465), + 184: uint16(58466), + 185: uint16(58467), + 186: uint16(58468), + 187: uint16(58469), + 188: uint16(58470), + 189: uint16(58471), + }, + 125: { + 0: uint16(64012), + 1: uint16(64013), + 2: uint16(64014), + 3: uint16(64015), + 4: uint16(64017), + 5: uint16(64019), + 6: uint16(64020), + 7: uint16(64024), + 8: uint16(64031), + 9: uint16(64032), + 10: uint16(64033), + 11: uint16(64035), + 12: uint16(64036), + 13: uint16(64039), + 14: uint16(64040), + 15: uint16(64041), + 16: uint16(11905), + 17: uint16(59414), + 18: uint16(59415), + 19: uint16(59416), + 20: uint16(11908), + 21: uint16(13427), + 22: uint16(13383), + 23: uint16(11912), + 24: uint16(11915), + 25: uint16(59422), + 26: uint16(13726), + 27: uint16(13850), + 28: uint16(13838), + 29: uint16(11916), + 30: uint16(11927), + 31: uint16(14702), + 32: uint16(14616), + 33: uint16(59430), + 34: uint16(14799), + 35: uint16(14815), + 36: uint16(14963), + 37: uint16(14800), + 38: uint16(59435), + 39: uint16(59436), + 40: uint16(15182), + 41: uint16(15470), + 42: uint16(15584), + 43: uint16(11943), + 44: uint16(59441), + 45: uint16(59442), + 46: uint16(11946), + 47: uint16(16470), + 48: uint16(16735), + 49: uint16(11950), + 50: uint16(17207), + 51: uint16(11955), + 52: uint16(11958), + 53: uint16(11959), + 54: uint16(59451), + 55: uint16(17329), + 56: uint16(17324), + 57: uint16(11963), + 58: uint16(17373), + 59: uint16(17622), + 60: uint16(18017), + 61: uint16(17996), + 62: uint16(59459), + 63: uint16(18211), + 64: uint16(18217), + 65: uint16(18300), + 66: uint16(18317), + 67: uint16(11978), + 68: uint16(18759), + 69: uint16(18810), + 70: uint16(18813), + 71: uint16(18818), + 72: uint16(18819), + 73: uint16(18821), + 74: uint16(18822), + 75: uint16(18847), + 76: uint16(18843), + 77: uint16(18871), + 78: uint16(18870), + 79: uint16(59476), + 80: uint16(59477), + 81: uint16(19619), + 82: uint16(19615), + 83: uint16(19616), + 84: uint16(19617), + 85: uint16(19575), + 86: uint16(19618), + 87: uint16(19731), + 88: uint16(19732), + 89: uint16(19733), + 90: uint16(19734), + 91: uint16(19735), + 92: uint16(19736), + 93: uint16(19737), + 94: uint16(19886), + 95: uint16(59492), + 96: uint16(58472), + 97: uint16(58473), + 98: uint16(58474), + 99: uint16(58475), + 100: uint16(58476), + 101: uint16(58477), + 102: uint16(58478), + 103: uint16(58479), + 104: uint16(58480), + 105: uint16(58481), + 106: uint16(58482), + 107: uint16(58483), + 108: uint16(58484), + 109: uint16(58485), + 110: uint16(58486), + 111: uint16(58487), + 112: uint16(58488), + 113: uint16(58489), + 114: uint16(58490), + 115: uint16(58491), + 116: uint16(58492), + 117: uint16(58493), + 118: uint16(58494), + 119: uint16(58495), + 120: uint16(58496), + 121: uint16(58497), + 122: uint16(58498), + 123: uint16(58499), + 124: uint16(58500), + 125: uint16(58501), + 126: uint16(58502), + 127: uint16(58503), + 128: uint16(58504), + 129: uint16(58505), + 130: uint16(58506), + 131: uint16(58507), + 132: uint16(58508), + 133: uint16(58509), + 134: uint16(58510), + 135: uint16(58511), + 136: uint16(58512), + 137: uint16(58513), + 138: uint16(58514), + 139: uint16(58515), + 140: uint16(58516), + 141: uint16(58517), + 142: uint16(58518), + 143: uint16(58519), + 144: uint16(58520), + 145: uint16(58521), + 146: uint16(58522), + 147: uint16(58523), + 148: uint16(58524), + 149: uint16(58525), + 150: uint16(58526), + 151: uint16(58527), + 152: uint16(58528), + 153: uint16(58529), + 154: uint16(58530), + 155: uint16(58531), + 156: uint16(58532), + 157: uint16(58533), + 158: uint16(58534), + 159: uint16(58535), + 160: uint16(58536), + 161: uint16(58537), + 162: uint16(58538), + 163: uint16(58539), + 164: uint16(58540), + 165: uint16(58541), + 166: uint16(58542), + 167: uint16(58543), + 168: uint16(58544), + 169: uint16(58545), + 170: uint16(58546), + 171: uint16(58547), + 172: uint16(58548), + 173: uint16(58549), + 174: uint16(58550), + 175: uint16(58551), + 176: uint16(58552), + 177: uint16(58553), + 178: uint16(58554), + 179: uint16(58555), + 180: uint16(58556), + 181: uint16(58557), + 182: uint16(58558), + 183: uint16(58559), + 184: uint16(58560), + 185: uint16(58561), + 186: uint16(58562), + 187: uint16(58563), + 188: uint16(58564), + 189: uint16(58565), + }, +} + +var _big5 = [89][157]uint16{ + 0: { + 0: uint16(12288), + 1: uint16(65292), + 2: uint16(12289), + 3: uint16(12290), + 4: uint16(65294), + 5: uint16(8231), + 6: uint16(65307), + 7: uint16(65306), + 8: uint16(65311), + 9: uint16(65281), + 10: uint16(65072), + 11: uint16(8230), + 12: uint16(8229), + 13: uint16(65104), + 14: uint16(65105), + 15: uint16(65106), + 16: uint16(183), + 17: uint16(65108), + 18: uint16(65109), + 19: uint16(65110), + 20: uint16(65111), + 21: uint16(65372), + 22: uint16(8211), + 23: uint16(65073), + 24: uint16(8212), + 25: uint16(65075), + 26: uint16(9588), + 27: uint16(65076), + 28: uint16(65103), + 29: uint16(65288), + 30: uint16(65289), + 31: uint16(65077), + 32: uint16(65078), + 33: uint16(65371), + 34: uint16(65373), + 35: uint16(65079), + 36: uint16(65080), + 37: uint16(12308), + 38: uint16(12309), + 39: uint16(65081), + 40: uint16(65082), + 41: uint16(12304), + 42: uint16(12305), + 43: uint16(65083), + 44: uint16(65084), + 45: uint16(12298), + 46: uint16(12299), + 47: uint16(65085), + 48: uint16(65086), + 49: uint16(12296), + 50: uint16(12297), + 51: uint16(65087), + 52: uint16(65088), + 53: uint16(12300), + 54: uint16(12301), + 55: uint16(65089), + 56: uint16(65090), + 57: uint16(12302), + 58: uint16(12303), + 59: uint16(65091), + 60: uint16(65092), + 61: uint16(65113), + 62: uint16(65114), + 63: uint16(65115), + 64: uint16(65116), + 65: uint16(65117), + 66: uint16(65118), + 67: uint16(8216), + 68: uint16(8217), + 69: uint16(8220), + 70: uint16(8221), + 71: uint16(12317), + 72: uint16(12318), + 73: uint16(8245), + 74: uint16(8242), + 75: uint16(65283), + 76: uint16(65286), + 77: uint16(65290), + 78: uint16(8251), + 79: uint16(167), + 80: uint16(12291), + 81: uint16(9675), + 82: uint16(9679), + 83: uint16(9651), + 84: uint16(9650), + 85: uint16(9678), + 86: uint16(9734), + 87: uint16(9733), + 88: uint16(9671), + 89: uint16(9670), + 90: uint16(9633), + 91: uint16(9632), + 92: uint16(9661), + 93: uint16(9660), + 94: uint16(12963), + 95: uint16(8453), + 96: uint16(175), + 97: uint16(65507), + 98: uint16(65343), + 99: uint16(717), + 100: uint16(65097), + 101: uint16(65098), + 102: uint16(65101), + 103: uint16(65102), + 104: uint16(65099), + 105: uint16(65100), + 106: uint16(65119), + 107: uint16(65120), + 108: uint16(65121), + 109: uint16(65291), + 110: uint16(65293), + 111: uint16(215), + 112: uint16(247), + 113: uint16(177), + 114: uint16(8730), + 115: uint16(65308), + 116: uint16(65310), + 117: uint16(65309), + 118: uint16(8806), + 119: uint16(8807), + 120: uint16(8800), + 121: uint16(8734), + 122: uint16(8786), + 123: uint16(8801), + 124: uint16(65122), + 125: uint16(65123), + 126: uint16(65124), + 127: uint16(65125), + 128: uint16(65126), + 129: uint16(65374), + 130: uint16(8745), + 131: uint16(8746), + 132: uint16(8869), + 133: uint16(8736), + 134: uint16(8735), + 135: uint16(8895), + 136: uint16(13266), + 137: uint16(13265), + 138: uint16(8747), + 139: uint16(8750), + 140: uint16(8757), + 141: uint16(8756), + 142: uint16(9792), + 143: uint16(9794), + 144: uint16(8853), + 145: uint16(8857), + 146: uint16(8593), + 147: uint16(8595), + 148: uint16(8592), + 149: uint16(8594), + 150: uint16(8598), + 151: uint16(8599), + 152: uint16(8601), + 153: uint16(8600), + 154: uint16(8741), + 155: uint16(8739), + 156: uint16(65295), + }, + 1: { + 0: uint16(65340), + 1: uint16(8725), + 2: uint16(65128), + 3: uint16(65284), + 4: uint16(65509), + 5: uint16(12306), + 6: uint16(65504), + 7: uint16(65505), + 8: uint16(65285), + 9: uint16(65312), + 10: uint16(8451), + 11: uint16(8457), + 12: uint16(65129), + 13: uint16(65130), + 14: uint16(65131), + 15: uint16(13269), + 16: uint16(13212), + 17: uint16(13213), + 18: uint16(13214), + 19: uint16(13262), + 20: uint16(13217), + 21: uint16(13198), + 22: uint16(13199), + 23: uint16(13252), + 24: uint16(176), + 25: uint16(20825), + 26: uint16(20827), + 27: uint16(20830), + 28: uint16(20829), + 29: uint16(20833), + 30: uint16(20835), + 31: uint16(21991), + 32: uint16(29929), + 33: uint16(31950), + 34: uint16(9601), + 35: uint16(9602), + 36: uint16(9603), + 37: uint16(9604), + 38: uint16(9605), + 39: uint16(9606), + 40: uint16(9607), + 41: uint16(9608), + 42: uint16(9615), + 43: uint16(9614), + 44: uint16(9613), + 45: uint16(9612), + 46: uint16(9611), + 47: uint16(9610), + 48: uint16(9609), + 49: uint16(9532), + 50: uint16(9524), + 51: uint16(9516), + 52: uint16(9508), + 53: uint16(9500), + 54: uint16(9620), + 55: uint16(9472), + 56: uint16(9474), + 57: uint16(9621), + 58: uint16(9484), + 59: uint16(9488), + 60: uint16(9492), + 61: uint16(9496), + 62: uint16(9581), + 63: uint16(9582), + 64: uint16(9584), + 65: uint16(9583), + 66: uint16(9552), + 67: uint16(9566), + 68: uint16(9578), + 69: uint16(9569), + 70: uint16(9698), + 71: uint16(9699), + 72: uint16(9701), + 73: uint16(9700), + 74: uint16(9585), + 75: uint16(9586), + 76: uint16(9587), + 77: uint16(65296), + 78: uint16(65297), + 79: uint16(65298), + 80: uint16(65299), + 81: uint16(65300), + 82: uint16(65301), + 83: uint16(65302), + 84: uint16(65303), + 85: uint16(65304), + 86: uint16(65305), + 87: uint16(8544), + 88: uint16(8545), + 89: uint16(8546), + 90: uint16(8547), + 91: uint16(8548), + 92: uint16(8549), + 93: uint16(8550), + 94: uint16(8551), + 95: uint16(8552), + 96: uint16(8553), + 97: uint16(12321), + 98: uint16(12322), + 99: uint16(12323), + 100: uint16(12324), + 101: uint16(12325), + 102: uint16(12326), + 103: uint16(12327), + 104: uint16(12328), + 105: uint16(12329), + 106: uint16(21313), + 107: uint16(21316), + 108: uint16(21317), + 109: uint16(65313), + 110: uint16(65314), + 111: uint16(65315), + 112: uint16(65316), + 113: uint16(65317), + 114: uint16(65318), + 115: uint16(65319), + 116: uint16(65320), + 117: uint16(65321), + 118: uint16(65322), + 119: uint16(65323), + 120: uint16(65324), + 121: uint16(65325), + 122: uint16(65326), + 123: uint16(65327), + 124: uint16(65328), + 125: uint16(65329), + 126: uint16(65330), + 127: uint16(65331), + 128: uint16(65332), + 129: uint16(65333), + 130: uint16(65334), + 131: uint16(65335), + 132: uint16(65336), + 133: uint16(65337), + 134: uint16(65338), + 135: uint16(65345), + 136: uint16(65346), + 137: uint16(65347), + 138: uint16(65348), + 139: uint16(65349), + 140: uint16(65350), + 141: uint16(65351), + 142: uint16(65352), + 143: uint16(65353), + 144: uint16(65354), + 145: uint16(65355), + 146: uint16(65356), + 147: uint16(65357), + 148: uint16(65358), + 149: uint16(65359), + 150: uint16(65360), + 151: uint16(65361), + 152: uint16(65362), + 153: uint16(65363), + 154: uint16(65364), + 155: uint16(65365), + 156: uint16(65366), + }, + 2: { + 0: uint16(65367), + 1: uint16(65368), + 2: uint16(65369), + 3: uint16(65370), + 4: uint16(913), + 5: uint16(914), + 6: uint16(915), + 7: uint16(916), + 8: uint16(917), + 9: uint16(918), + 10: uint16(919), + 11: uint16(920), + 12: uint16(921), + 13: uint16(922), + 14: uint16(923), + 15: uint16(924), + 16: uint16(925), + 17: uint16(926), + 18: uint16(927), + 19: uint16(928), + 20: uint16(929), + 21: uint16(931), + 22: uint16(932), + 23: uint16(933), + 24: uint16(934), + 25: uint16(935), + 26: uint16(936), + 27: uint16(937), + 28: uint16(945), + 29: uint16(946), + 30: uint16(947), + 31: uint16(948), + 32: uint16(949), + 33: uint16(950), + 34: uint16(951), + 35: uint16(952), + 36: uint16(953), + 37: uint16(954), + 38: uint16(955), + 39: uint16(956), + 40: uint16(957), + 41: uint16(958), + 42: uint16(959), + 43: uint16(960), + 44: uint16(961), + 45: uint16(963), + 46: uint16(964), + 47: uint16(965), + 48: uint16(966), + 49: uint16(967), + 50: uint16(968), + 51: uint16(969), + 52: uint16(12549), + 53: uint16(12550), + 54: uint16(12551), + 55: uint16(12552), + 56: uint16(12553), + 57: uint16(12554), + 58: uint16(12555), + 59: uint16(12556), + 60: uint16(12557), + 61: uint16(12558), + 62: uint16(12559), + 63: uint16(12560), + 64: uint16(12561), + 65: uint16(12562), + 66: uint16(12563), + 67: uint16(12564), + 68: uint16(12565), + 69: uint16(12566), + 70: uint16(12567), + 71: uint16(12568), + 72: uint16(12569), + 73: uint16(12570), + 74: uint16(12571), + 75: uint16(12572), + 76: uint16(12573), + 77: uint16(12574), + 78: uint16(12575), + 79: uint16(12576), + 80: uint16(12577), + 81: uint16(12578), + 82: uint16(12579), + 83: uint16(12580), + 84: uint16(12581), + 85: uint16(12582), + 86: uint16(12583), + 87: uint16(12584), + 88: uint16(12585), + 89: uint16(729), + 90: uint16(713), + 91: uint16(714), + 92: uint16(711), + 93: uint16(715), + 94: uint16(9216), + 95: uint16(9217), + 96: uint16(9218), + 97: uint16(9219), + 98: uint16(9220), + 99: uint16(9221), + 100: uint16(9222), + 101: uint16(9223), + 102: uint16(9224), + 103: uint16(9225), + 104: uint16(9226), + 105: uint16(9227), + 106: uint16(9228), + 107: uint16(9229), + 108: uint16(9230), + 109: uint16(9231), + 110: uint16(9232), + 111: uint16(9233), + 112: uint16(9234), + 113: uint16(9235), + 114: uint16(9236), + 115: uint16(9237), + 116: uint16(9238), + 117: uint16(9239), + 118: uint16(9240), + 119: uint16(9241), + 120: uint16(9242), + 121: uint16(9243), + 122: uint16(9244), + 123: uint16(9245), + 124: uint16(9246), + 125: uint16(9247), + 126: uint16(9249), + 127: uint16(8364), + }, + 3: { + 0: uint16(19968), + 1: uint16(20057), + 2: uint16(19969), + 3: uint16(19971), + 4: uint16(20035), + 5: uint16(20061), + 6: uint16(20102), + 7: uint16(20108), + 8: uint16(20154), + 9: uint16(20799), + 10: uint16(20837), + 11: uint16(20843), + 12: uint16(20960), + 13: uint16(20992), + 14: uint16(20993), + 15: uint16(21147), + 16: uint16(21269), + 17: uint16(21313), + 18: uint16(21340), + 19: uint16(21448), + 20: uint16(19977), + 21: uint16(19979), + 22: uint16(19976), + 23: uint16(19978), + 24: uint16(20011), + 25: uint16(20024), + 26: uint16(20961), + 27: uint16(20037), + 28: uint16(20040), + 29: uint16(20063), + 30: uint16(20062), + 31: uint16(20110), + 32: uint16(20129), + 33: uint16(20800), + 34: uint16(20995), + 35: uint16(21242), + 36: uint16(21315), + 37: uint16(21449), + 38: uint16(21475), + 39: uint16(22303), + 40: uint16(22763), + 41: uint16(22805), + 42: uint16(22823), + 43: uint16(22899), + 44: uint16(23376), + 45: uint16(23377), + 46: uint16(23379), + 47: uint16(23544), + 48: uint16(23567), + 49: uint16(23586), + 50: uint16(23608), + 51: uint16(23665), + 52: uint16(24029), + 53: uint16(24037), + 54: uint16(24049), + 55: uint16(24050), + 56: uint16(24051), + 57: uint16(24062), + 58: uint16(24178), + 59: uint16(24318), + 60: uint16(24331), + 61: uint16(24339), + 62: uint16(25165), + 63: uint16(19985), + 64: uint16(19984), + 65: uint16(19981), + 66: uint16(20013), + 67: uint16(20016), + 68: uint16(20025), + 69: uint16(20043), + 70: uint16(23609), + 71: uint16(20104), + 72: uint16(20113), + 73: uint16(20117), + 74: uint16(20114), + 75: uint16(20116), + 76: uint16(20130), + 77: uint16(20161), + 78: uint16(20160), + 79: uint16(20163), + 80: uint16(20166), + 81: uint16(20167), + 82: uint16(20173), + 83: uint16(20170), + 84: uint16(20171), + 85: uint16(20164), + 86: uint16(20803), + 87: uint16(20801), + 88: uint16(20839), + 89: uint16(20845), + 90: uint16(20846), + 91: uint16(20844), + 92: uint16(20887), + 93: uint16(20982), + 94: uint16(20998), + 95: uint16(20999), + 96: uint16(21000), + 97: uint16(21243), + 98: uint16(21246), + 99: uint16(21247), + 100: uint16(21270), + 101: uint16(21305), + 102: uint16(21320), + 103: uint16(21319), + 104: uint16(21317), + 105: uint16(21342), + 106: uint16(21380), + 107: uint16(21451), + 108: uint16(21450), + 109: uint16(21453), + 110: uint16(22764), + 111: uint16(22825), + 112: uint16(22827), + 113: uint16(22826), + 114: uint16(22829), + 115: uint16(23380), + 116: uint16(23569), + 117: uint16(23588), + 118: uint16(23610), + 119: uint16(23663), + 120: uint16(24052), + 121: uint16(24187), + 122: uint16(24319), + 123: uint16(24340), + 124: uint16(24341), + 125: uint16(24515), + 126: uint16(25096), + 127: uint16(25142), + 128: uint16(25163), + 129: uint16(25166), + 130: uint16(25903), + 131: uint16(25991), + 132: uint16(26007), + 133: uint16(26020), + 134: uint16(26041), + 135: uint16(26085), + 136: uint16(26352), + 137: uint16(26376), + 138: uint16(26408), + 139: uint16(27424), + 140: uint16(27490), + 141: uint16(27513), + 142: uint16(27595), + 143: uint16(27604), + 144: uint16(27611), + 145: uint16(27663), + 146: uint16(27700), + 147: uint16(28779), + 148: uint16(29226), + 149: uint16(29238), + 150: uint16(29243), + 151: uint16(29255), + 152: uint16(29273), + 153: uint16(29275), + 154: uint16(29356), + 155: uint16(29579), + 156: uint16(19993), + }, + 4: { + 0: uint16(19990), + 1: uint16(19989), + 2: uint16(19988), + 3: uint16(19992), + 4: uint16(20027), + 5: uint16(20045), + 6: uint16(20047), + 7: uint16(20046), + 8: uint16(20197), + 9: uint16(20184), + 10: uint16(20180), + 11: uint16(20181), + 12: uint16(20182), + 13: uint16(20183), + 14: uint16(20195), + 15: uint16(20196), + 16: uint16(20185), + 17: uint16(20190), + 18: uint16(20805), + 19: uint16(20804), + 20: uint16(20873), + 21: uint16(20874), + 22: uint16(20908), + 23: uint16(20985), + 24: uint16(20986), + 25: uint16(20984), + 26: uint16(21002), + 27: uint16(21152), + 28: uint16(21151), + 29: uint16(21253), + 30: uint16(21254), + 31: uint16(21271), + 32: uint16(21277), + 33: uint16(20191), + 34: uint16(21322), + 35: uint16(21321), + 36: uint16(21345), + 37: uint16(21344), + 38: uint16(21359), + 39: uint16(21358), + 40: uint16(21435), + 41: uint16(21487), + 42: uint16(21476), + 43: uint16(21491), + 44: uint16(21484), + 45: uint16(21486), + 46: uint16(21481), + 47: uint16(21480), + 48: uint16(21500), + 49: uint16(21496), + 50: uint16(21493), + 51: uint16(21483), + 52: uint16(21478), + 53: uint16(21482), + 54: uint16(21490), + 55: uint16(21489), + 56: uint16(21488), + 57: uint16(21477), + 58: uint16(21485), + 59: uint16(21499), + 60: uint16(22235), + 61: uint16(22234), + 62: uint16(22806), + 63: uint16(22830), + 64: uint16(22833), + 65: uint16(22900), + 66: uint16(22902), + 67: uint16(23381), + 68: uint16(23427), + 69: uint16(23612), + 70: uint16(24040), + 71: uint16(24039), + 72: uint16(24038), + 73: uint16(24066), + 74: uint16(24067), + 75: uint16(24179), + 76: uint16(24188), + 77: uint16(24321), + 78: uint16(24344), + 79: uint16(24343), + 80: uint16(24517), + 81: uint16(25098), + 82: uint16(25171), + 83: uint16(25172), + 84: uint16(25170), + 85: uint16(25169), + 86: uint16(26021), + 87: uint16(26086), + 88: uint16(26414), + 89: uint16(26412), + 90: uint16(26410), + 91: uint16(26411), + 92: uint16(26413), + 93: uint16(27491), + 94: uint16(27597), + 95: uint16(27665), + 96: uint16(27664), + 97: uint16(27704), + 98: uint16(27713), + 99: uint16(27712), + 100: uint16(27710), + 101: uint16(29359), + 102: uint16(29572), + 103: uint16(29577), + 104: uint16(29916), + 105: uint16(29926), + 106: uint16(29976), + 107: uint16(29983), + 108: uint16(29992), + 109: uint16(29993), + 110: uint16(30000), + 111: uint16(30001), + 112: uint16(30002), + 113: uint16(30003), + 114: uint16(30091), + 115: uint16(30333), + 116: uint16(30382), + 117: uint16(30399), + 118: uint16(30446), + 119: uint16(30683), + 120: uint16(30690), + 121: uint16(30707), + 122: uint16(31034), + 123: uint16(31166), + 124: uint16(31348), + 125: uint16(31435), + 126: uint16(19998), + 127: uint16(19999), + 128: uint16(20050), + 129: uint16(20051), + 130: uint16(20073), + 131: uint16(20121), + 132: uint16(20132), + 133: uint16(20134), + 134: uint16(20133), + 135: uint16(20223), + 136: uint16(20233), + 137: uint16(20249), + 138: uint16(20234), + 139: uint16(20245), + 140: uint16(20237), + 141: uint16(20240), + 142: uint16(20241), + 143: uint16(20239), + 144: uint16(20210), + 145: uint16(20214), + 146: uint16(20219), + 147: uint16(20208), + 148: uint16(20211), + 149: uint16(20221), + 150: uint16(20225), + 151: uint16(20235), + 152: uint16(20809), + 153: uint16(20807), + 154: uint16(20806), + 155: uint16(20808), + 156: uint16(20840), + }, + 5: { + 0: uint16(20849), + 1: uint16(20877), + 2: uint16(20912), + 3: uint16(21015), + 4: uint16(21009), + 5: uint16(21010), + 6: uint16(21006), + 7: uint16(21014), + 8: uint16(21155), + 9: uint16(21256), + 10: uint16(21281), + 11: uint16(21280), + 12: uint16(21360), + 13: uint16(21361), + 14: uint16(21513), + 15: uint16(21519), + 16: uint16(21516), + 17: uint16(21514), + 18: uint16(21520), + 19: uint16(21505), + 20: uint16(21515), + 21: uint16(21508), + 22: uint16(21521), + 23: uint16(21517), + 24: uint16(21512), + 25: uint16(21507), + 26: uint16(21518), + 27: uint16(21510), + 28: uint16(21522), + 29: uint16(22240), + 30: uint16(22238), + 31: uint16(22237), + 32: uint16(22323), + 33: uint16(22320), + 34: uint16(22312), + 35: uint16(22317), + 36: uint16(22316), + 37: uint16(22319), + 38: uint16(22313), + 39: uint16(22809), + 40: uint16(22810), + 41: uint16(22839), + 42: uint16(22840), + 43: uint16(22916), + 44: uint16(22904), + 45: uint16(22915), + 46: uint16(22909), + 47: uint16(22905), + 48: uint16(22914), + 49: uint16(22913), + 50: uint16(23383), + 51: uint16(23384), + 52: uint16(23431), + 53: uint16(23432), + 54: uint16(23429), + 55: uint16(23433), + 56: uint16(23546), + 57: uint16(23574), + 58: uint16(23673), + 59: uint16(24030), + 60: uint16(24070), + 61: uint16(24182), + 62: uint16(24180), + 63: uint16(24335), + 64: uint16(24347), + 65: uint16(24537), + 66: uint16(24534), + 67: uint16(25102), + 68: uint16(25100), + 69: uint16(25101), + 70: uint16(25104), + 71: uint16(25187), + 72: uint16(25179), + 73: uint16(25176), + 74: uint16(25910), + 75: uint16(26089), + 76: uint16(26088), + 77: uint16(26092), + 78: uint16(26093), + 79: uint16(26354), + 80: uint16(26355), + 81: uint16(26377), + 82: uint16(26429), + 83: uint16(26420), + 84: uint16(26417), + 85: uint16(26421), + 86: uint16(27425), + 87: uint16(27492), + 88: uint16(27515), + 89: uint16(27670), + 90: uint16(27741), + 91: uint16(27735), + 92: uint16(27737), + 93: uint16(27743), + 94: uint16(27744), + 95: uint16(27728), + 96: uint16(27733), + 97: uint16(27745), + 98: uint16(27739), + 99: uint16(27725), + 100: uint16(27726), + 101: uint16(28784), + 102: uint16(29279), + 103: uint16(29277), + 104: uint16(30334), + 105: uint16(31481), + 106: uint16(31859), + 107: uint16(31992), + 108: uint16(32566), + 109: uint16(32650), + 110: uint16(32701), + 111: uint16(32769), + 112: uint16(32771), + 113: uint16(32780), + 114: uint16(32786), + 115: uint16(32819), + 116: uint16(32895), + 117: uint16(32905), + 118: uint16(32907), + 119: uint16(32908), + 120: uint16(33251), + 121: uint16(33258), + 122: uint16(33267), + 123: uint16(33276), + 124: uint16(33292), + 125: uint16(33307), + 126: uint16(33311), + 127: uint16(33390), + 128: uint16(33394), + 129: uint16(33406), + 130: uint16(34411), + 131: uint16(34880), + 132: uint16(34892), + 133: uint16(34915), + 134: uint16(35199), + 135: uint16(38433), + 136: uint16(20018), + 137: uint16(20136), + 138: uint16(20301), + 139: uint16(20303), + 140: uint16(20295), + 141: uint16(20311), + 142: uint16(20318), + 143: uint16(20276), + 144: uint16(20315), + 145: uint16(20309), + 146: uint16(20272), + 147: uint16(20304), + 148: uint16(20305), + 149: uint16(20285), + 150: uint16(20282), + 151: uint16(20280), + 152: uint16(20291), + 153: uint16(20308), + 154: uint16(20284), + 155: uint16(20294), + 156: uint16(20323), + }, + 6: { + 0: uint16(20316), + 1: uint16(20320), + 2: uint16(20271), + 3: uint16(20302), + 4: uint16(20278), + 5: uint16(20313), + 6: uint16(20317), + 7: uint16(20296), + 8: uint16(20314), + 9: uint16(20812), + 10: uint16(20811), + 11: uint16(20813), + 12: uint16(20853), + 13: uint16(20918), + 14: uint16(20919), + 15: uint16(21029), + 16: uint16(21028), + 17: uint16(21033), + 18: uint16(21034), + 19: uint16(21032), + 20: uint16(21163), + 21: uint16(21161), + 22: uint16(21162), + 23: uint16(21164), + 24: uint16(21283), + 25: uint16(21363), + 26: uint16(21365), + 27: uint16(21533), + 28: uint16(21549), + 29: uint16(21534), + 30: uint16(21566), + 31: uint16(21542), + 32: uint16(21582), + 33: uint16(21543), + 34: uint16(21574), + 35: uint16(21571), + 36: uint16(21555), + 37: uint16(21576), + 38: uint16(21570), + 39: uint16(21531), + 40: uint16(21545), + 41: uint16(21578), + 42: uint16(21561), + 43: uint16(21563), + 44: uint16(21560), + 45: uint16(21550), + 46: uint16(21557), + 47: uint16(21558), + 48: uint16(21536), + 49: uint16(21564), + 50: uint16(21568), + 51: uint16(21553), + 52: uint16(21547), + 53: uint16(21535), + 54: uint16(21548), + 55: uint16(22250), + 56: uint16(22256), + 57: uint16(22244), + 58: uint16(22251), + 59: uint16(22346), + 60: uint16(22353), + 61: uint16(22336), + 62: uint16(22349), + 63: uint16(22343), + 64: uint16(22350), + 65: uint16(22334), + 66: uint16(22352), + 67: uint16(22351), + 68: uint16(22331), + 69: uint16(22767), + 70: uint16(22846), + 71: uint16(22941), + 72: uint16(22930), + 73: uint16(22952), + 74: uint16(22942), + 75: uint16(22947), + 76: uint16(22937), + 77: uint16(22934), + 78: uint16(22925), + 79: uint16(22948), + 80: uint16(22931), + 81: uint16(22922), + 82: uint16(22949), + 83: uint16(23389), + 84: uint16(23388), + 85: uint16(23386), + 86: uint16(23387), + 87: uint16(23436), + 88: uint16(23435), + 89: uint16(23439), + 90: uint16(23596), + 91: uint16(23616), + 92: uint16(23617), + 93: uint16(23615), + 94: uint16(23614), + 95: uint16(23696), + 96: uint16(23697), + 97: uint16(23700), + 98: uint16(23692), + 99: uint16(24043), + 100: uint16(24076), + 101: uint16(24207), + 102: uint16(24199), + 103: uint16(24202), + 104: uint16(24311), + 105: uint16(24324), + 106: uint16(24351), + 107: uint16(24420), + 108: uint16(24418), + 109: uint16(24439), + 110: uint16(24441), + 111: uint16(24536), + 112: uint16(24524), + 113: uint16(24535), + 114: uint16(24525), + 115: uint16(24561), + 116: uint16(24555), + 117: uint16(24568), + 118: uint16(24554), + 119: uint16(25106), + 120: uint16(25105), + 121: uint16(25220), + 122: uint16(25239), + 123: uint16(25238), + 124: uint16(25216), + 125: uint16(25206), + 126: uint16(25225), + 127: uint16(25197), + 128: uint16(25226), + 129: uint16(25212), + 130: uint16(25214), + 131: uint16(25209), + 132: uint16(25203), + 133: uint16(25234), + 134: uint16(25199), + 135: uint16(25240), + 136: uint16(25198), + 137: uint16(25237), + 138: uint16(25235), + 139: uint16(25233), + 140: uint16(25222), + 141: uint16(25913), + 142: uint16(25915), + 143: uint16(25912), + 144: uint16(26097), + 145: uint16(26356), + 146: uint16(26463), + 147: uint16(26446), + 148: uint16(26447), + 149: uint16(26448), + 150: uint16(26449), + 151: uint16(26460), + 152: uint16(26454), + 153: uint16(26462), + 154: uint16(26441), + 155: uint16(26438), + 156: uint16(26464), + }, + 7: { + 0: uint16(26451), + 1: uint16(26455), + 2: uint16(27493), + 3: uint16(27599), + 4: uint16(27714), + 5: uint16(27742), + 6: uint16(27801), + 7: uint16(27777), + 8: uint16(27784), + 9: uint16(27785), + 10: uint16(27781), + 11: uint16(27803), + 12: uint16(27754), + 13: uint16(27770), + 14: uint16(27792), + 15: uint16(27760), + 16: uint16(27788), + 17: uint16(27752), + 18: uint16(27798), + 19: uint16(27794), + 20: uint16(27773), + 21: uint16(27779), + 22: uint16(27762), + 23: uint16(27774), + 24: uint16(27764), + 25: uint16(27782), + 26: uint16(27766), + 27: uint16(27789), + 28: uint16(27796), + 29: uint16(27800), + 30: uint16(27778), + 31: uint16(28790), + 32: uint16(28796), + 33: uint16(28797), + 34: uint16(28792), + 35: uint16(29282), + 36: uint16(29281), + 37: uint16(29280), + 38: uint16(29380), + 39: uint16(29378), + 40: uint16(29590), + 41: uint16(29996), + 42: uint16(29995), + 43: uint16(30007), + 44: uint16(30008), + 45: uint16(30338), + 46: uint16(30447), + 47: uint16(30691), + 48: uint16(31169), + 49: uint16(31168), + 50: uint16(31167), + 51: uint16(31350), + 52: uint16(31995), + 53: uint16(32597), + 54: uint16(32918), + 55: uint16(32915), + 56: uint16(32925), + 57: uint16(32920), + 58: uint16(32923), + 59: uint16(32922), + 60: uint16(32946), + 61: uint16(33391), + 62: uint16(33426), + 63: uint16(33419), + 64: uint16(33421), + 65: uint16(35211), + 66: uint16(35282), + 67: uint16(35328), + 68: uint16(35895), + 69: uint16(35910), + 70: uint16(35925), + 71: uint16(35997), + 72: uint16(36196), + 73: uint16(36208), + 74: uint16(36275), + 75: uint16(36523), + 76: uint16(36554), + 77: uint16(36763), + 78: uint16(36784), + 79: uint16(36802), + 80: uint16(36806), + 81: uint16(36805), + 82: uint16(36804), + 83: uint16(24033), + 84: uint16(37009), + 85: uint16(37026), + 86: uint16(37034), + 87: uint16(37030), + 88: uint16(37027), + 89: uint16(37193), + 90: uint16(37318), + 91: uint16(37324), + 92: uint16(38450), + 93: uint16(38446), + 94: uint16(38449), + 95: uint16(38442), + 96: uint16(38444), + 97: uint16(20006), + 98: uint16(20054), + 99: uint16(20083), + 100: uint16(20107), + 101: uint16(20123), + 102: uint16(20126), + 103: uint16(20139), + 104: uint16(20140), + 105: uint16(20335), + 106: uint16(20381), + 107: uint16(20365), + 108: uint16(20339), + 109: uint16(20351), + 110: uint16(20332), + 111: uint16(20379), + 112: uint16(20363), + 113: uint16(20358), + 114: uint16(20355), + 115: uint16(20336), + 116: uint16(20341), + 117: uint16(20360), + 118: uint16(20329), + 119: uint16(20347), + 120: uint16(20374), + 121: uint16(20350), + 122: uint16(20367), + 123: uint16(20369), + 124: uint16(20346), + 125: uint16(20820), + 126: uint16(20818), + 127: uint16(20821), + 128: uint16(20841), + 129: uint16(20855), + 130: uint16(20854), + 131: uint16(20856), + 132: uint16(20925), + 133: uint16(20989), + 134: uint16(21051), + 135: uint16(21048), + 136: uint16(21047), + 137: uint16(21050), + 138: uint16(21040), + 139: uint16(21038), + 140: uint16(21046), + 141: uint16(21057), + 142: uint16(21182), + 143: uint16(21179), + 144: uint16(21330), + 145: uint16(21332), + 146: uint16(21331), + 147: uint16(21329), + 148: uint16(21350), + 149: uint16(21367), + 150: uint16(21368), + 151: uint16(21369), + 152: uint16(21462), + 153: uint16(21460), + 154: uint16(21463), + 155: uint16(21619), + 156: uint16(21621), + }, + 8: { + 0: uint16(21654), + 1: uint16(21624), + 2: uint16(21653), + 3: uint16(21632), + 4: uint16(21627), + 5: uint16(21623), + 6: uint16(21636), + 7: uint16(21650), + 8: uint16(21638), + 9: uint16(21628), + 10: uint16(21648), + 11: uint16(21617), + 12: uint16(21622), + 13: uint16(21644), + 14: uint16(21658), + 15: uint16(21602), + 16: uint16(21608), + 17: uint16(21643), + 18: uint16(21629), + 19: uint16(21646), + 20: uint16(22266), + 21: uint16(22403), + 22: uint16(22391), + 23: uint16(22378), + 24: uint16(22377), + 25: uint16(22369), + 26: uint16(22374), + 27: uint16(22372), + 28: uint16(22396), + 29: uint16(22812), + 30: uint16(22857), + 31: uint16(22855), + 32: uint16(22856), + 33: uint16(22852), + 34: uint16(22868), + 35: uint16(22974), + 36: uint16(22971), + 37: uint16(22996), + 38: uint16(22969), + 39: uint16(22958), + 40: uint16(22993), + 41: uint16(22982), + 42: uint16(22992), + 43: uint16(22989), + 44: uint16(22987), + 45: uint16(22995), + 46: uint16(22986), + 47: uint16(22959), + 48: uint16(22963), + 49: uint16(22994), + 50: uint16(22981), + 51: uint16(23391), + 52: uint16(23396), + 53: uint16(23395), + 54: uint16(23447), + 55: uint16(23450), + 56: uint16(23448), + 57: uint16(23452), + 58: uint16(23449), + 59: uint16(23451), + 60: uint16(23578), + 61: uint16(23624), + 62: uint16(23621), + 63: uint16(23622), + 64: uint16(23735), + 65: uint16(23713), + 66: uint16(23736), + 67: uint16(23721), + 68: uint16(23723), + 69: uint16(23729), + 70: uint16(23731), + 71: uint16(24088), + 72: uint16(24090), + 73: uint16(24086), + 74: uint16(24085), + 75: uint16(24091), + 76: uint16(24081), + 77: uint16(24184), + 78: uint16(24218), + 79: uint16(24215), + 80: uint16(24220), + 81: uint16(24213), + 82: uint16(24214), + 83: uint16(24310), + 84: uint16(24358), + 85: uint16(24359), + 86: uint16(24361), + 87: uint16(24448), + 88: uint16(24449), + 89: uint16(24447), + 90: uint16(24444), + 91: uint16(24541), + 92: uint16(24544), + 93: uint16(24573), + 94: uint16(24565), + 95: uint16(24575), + 96: uint16(24591), + 97: uint16(24596), + 98: uint16(24623), + 99: uint16(24629), + 100: uint16(24598), + 101: uint16(24618), + 102: uint16(24597), + 103: uint16(24609), + 104: uint16(24615), + 105: uint16(24617), + 106: uint16(24619), + 107: uint16(24603), + 108: uint16(25110), + 109: uint16(25109), + 110: uint16(25151), + 111: uint16(25150), + 112: uint16(25152), + 113: uint16(25215), + 114: uint16(25289), + 115: uint16(25292), + 116: uint16(25284), + 117: uint16(25279), + 118: uint16(25282), + 119: uint16(25273), + 120: uint16(25298), + 121: uint16(25307), + 122: uint16(25259), + 123: uint16(25299), + 124: uint16(25300), + 125: uint16(25291), + 126: uint16(25288), + 127: uint16(25256), + 128: uint16(25277), + 129: uint16(25276), + 130: uint16(25296), + 131: uint16(25305), + 132: uint16(25287), + 133: uint16(25293), + 134: uint16(25269), + 135: uint16(25306), + 136: uint16(25265), + 137: uint16(25304), + 138: uint16(25302), + 139: uint16(25303), + 140: uint16(25286), + 141: uint16(25260), + 142: uint16(25294), + 143: uint16(25918), + 144: uint16(26023), + 145: uint16(26044), + 146: uint16(26106), + 147: uint16(26132), + 148: uint16(26131), + 149: uint16(26124), + 150: uint16(26118), + 151: uint16(26114), + 152: uint16(26126), + 153: uint16(26112), + 154: uint16(26127), + 155: uint16(26133), + 156: uint16(26122), + }, + 9: { + 0: uint16(26119), + 1: uint16(26381), + 2: uint16(26379), + 3: uint16(26477), + 4: uint16(26507), + 5: uint16(26517), + 6: uint16(26481), + 7: uint16(26524), + 8: uint16(26483), + 9: uint16(26487), + 10: uint16(26503), + 11: uint16(26525), + 12: uint16(26519), + 13: uint16(26479), + 14: uint16(26480), + 15: uint16(26495), + 16: uint16(26505), + 17: uint16(26494), + 18: uint16(26512), + 19: uint16(26485), + 20: uint16(26522), + 21: uint16(26515), + 22: uint16(26492), + 23: uint16(26474), + 24: uint16(26482), + 25: uint16(27427), + 26: uint16(27494), + 27: uint16(27495), + 28: uint16(27519), + 29: uint16(27667), + 30: uint16(27675), + 31: uint16(27875), + 32: uint16(27880), + 33: uint16(27891), + 34: uint16(27825), + 35: uint16(27852), + 36: uint16(27877), + 37: uint16(27827), + 38: uint16(27837), + 39: uint16(27838), + 40: uint16(27836), + 41: uint16(27874), + 42: uint16(27819), + 43: uint16(27861), + 44: uint16(27859), + 45: uint16(27832), + 46: uint16(27844), + 47: uint16(27833), + 48: uint16(27841), + 49: uint16(27822), + 50: uint16(27863), + 51: uint16(27845), + 52: uint16(27889), + 53: uint16(27839), + 54: uint16(27835), + 55: uint16(27873), + 56: uint16(27867), + 57: uint16(27850), + 58: uint16(27820), + 59: uint16(27887), + 60: uint16(27868), + 61: uint16(27862), + 62: uint16(27872), + 63: uint16(28821), + 64: uint16(28814), + 65: uint16(28818), + 66: uint16(28810), + 67: uint16(28825), + 68: uint16(29228), + 69: uint16(29229), + 70: uint16(29240), + 71: uint16(29256), + 72: uint16(29287), + 73: uint16(29289), + 74: uint16(29376), + 75: uint16(29390), + 76: uint16(29401), + 77: uint16(29399), + 78: uint16(29392), + 79: uint16(29609), + 80: uint16(29608), + 81: uint16(29599), + 82: uint16(29611), + 83: uint16(29605), + 84: uint16(30013), + 85: uint16(30109), + 86: uint16(30105), + 87: uint16(30106), + 88: uint16(30340), + 89: uint16(30402), + 90: uint16(30450), + 91: uint16(30452), + 92: uint16(30693), + 93: uint16(30717), + 94: uint16(31038), + 95: uint16(31040), + 96: uint16(31041), + 97: uint16(31177), + 98: uint16(31176), + 99: uint16(31354), + 100: uint16(31353), + 101: uint16(31482), + 102: uint16(31998), + 103: uint16(32596), + 104: uint16(32652), + 105: uint16(32651), + 106: uint16(32773), + 107: uint16(32954), + 108: uint16(32933), + 109: uint16(32930), + 110: uint16(32945), + 111: uint16(32929), + 112: uint16(32939), + 113: uint16(32937), + 114: uint16(32948), + 115: uint16(32938), + 116: uint16(32943), + 117: uint16(33253), + 118: uint16(33278), + 119: uint16(33293), + 120: uint16(33459), + 121: uint16(33437), + 122: uint16(33433), + 123: uint16(33453), + 124: uint16(33469), + 125: uint16(33439), + 126: uint16(33465), + 127: uint16(33457), + 128: uint16(33452), + 129: uint16(33445), + 130: uint16(33455), + 131: uint16(33464), + 132: uint16(33443), + 133: uint16(33456), + 134: uint16(33470), + 135: uint16(33463), + 136: uint16(34382), + 137: uint16(34417), + 138: uint16(21021), + 139: uint16(34920), + 140: uint16(36555), + 141: uint16(36814), + 142: uint16(36820), + 143: uint16(36817), + 144: uint16(37045), + 145: uint16(37048), + 146: uint16(37041), + 147: uint16(37046), + 148: uint16(37319), + 149: uint16(37329), + 150: uint16(38263), + 151: uint16(38272), + 152: uint16(38428), + 153: uint16(38464), + 154: uint16(38463), + 155: uint16(38459), + 156: uint16(38468), + }, + 10: { + 0: uint16(38466), + 1: uint16(38585), + 2: uint16(38632), + 3: uint16(38738), + 4: uint16(38750), + 5: uint16(20127), + 6: uint16(20141), + 7: uint16(20142), + 8: uint16(20449), + 9: uint16(20405), + 10: uint16(20399), + 11: uint16(20415), + 12: uint16(20448), + 13: uint16(20433), + 14: uint16(20431), + 15: uint16(20445), + 16: uint16(20419), + 17: uint16(20406), + 18: uint16(20440), + 19: uint16(20447), + 20: uint16(20426), + 21: uint16(20439), + 22: uint16(20398), + 23: uint16(20432), + 24: uint16(20420), + 25: uint16(20418), + 26: uint16(20442), + 27: uint16(20430), + 28: uint16(20446), + 29: uint16(20407), + 30: uint16(20823), + 31: uint16(20882), + 32: uint16(20881), + 33: uint16(20896), + 34: uint16(21070), + 35: uint16(21059), + 36: uint16(21066), + 37: uint16(21069), + 38: uint16(21068), + 39: uint16(21067), + 40: uint16(21063), + 41: uint16(21191), + 42: uint16(21193), + 43: uint16(21187), + 44: uint16(21185), + 45: uint16(21261), + 46: uint16(21335), + 47: uint16(21371), + 48: uint16(21402), + 49: uint16(21467), + 50: uint16(21676), + 51: uint16(21696), + 52: uint16(21672), + 53: uint16(21710), + 54: uint16(21705), + 55: uint16(21688), + 56: uint16(21670), + 57: uint16(21683), + 58: uint16(21703), + 59: uint16(21698), + 60: uint16(21693), + 61: uint16(21674), + 62: uint16(21697), + 63: uint16(21700), + 64: uint16(21704), + 65: uint16(21679), + 66: uint16(21675), + 67: uint16(21681), + 68: uint16(21691), + 69: uint16(21673), + 70: uint16(21671), + 71: uint16(21695), + 72: uint16(22271), + 73: uint16(22402), + 74: uint16(22411), + 75: uint16(22432), + 76: uint16(22435), + 77: uint16(22434), + 78: uint16(22478), + 79: uint16(22446), + 80: uint16(22419), + 81: uint16(22869), + 82: uint16(22865), + 83: uint16(22863), + 84: uint16(22862), + 85: uint16(22864), + 86: uint16(23004), + 87: uint16(23000), + 88: uint16(23039), + 89: uint16(23011), + 90: uint16(23016), + 91: uint16(23043), + 92: uint16(23013), + 93: uint16(23018), + 94: uint16(23002), + 95: uint16(23014), + 96: uint16(23041), + 97: uint16(23035), + 98: uint16(23401), + 99: uint16(23459), + 100: uint16(23462), + 101: uint16(23460), + 102: uint16(23458), + 103: uint16(23461), + 104: uint16(23553), + 105: uint16(23630), + 106: uint16(23631), + 107: uint16(23629), + 108: uint16(23627), + 109: uint16(23769), + 110: uint16(23762), + 111: uint16(24055), + 112: uint16(24093), + 113: uint16(24101), + 114: uint16(24095), + 115: uint16(24189), + 116: uint16(24224), + 117: uint16(24230), + 118: uint16(24314), + 119: uint16(24328), + 120: uint16(24365), + 121: uint16(24421), + 122: uint16(24456), + 123: uint16(24453), + 124: uint16(24458), + 125: uint16(24459), + 126: uint16(24455), + 127: uint16(24460), + 128: uint16(24457), + 129: uint16(24594), + 130: uint16(24605), + 131: uint16(24608), + 132: uint16(24613), + 133: uint16(24590), + 134: uint16(24616), + 135: uint16(24653), + 136: uint16(24688), + 137: uint16(24680), + 138: uint16(24674), + 139: uint16(24646), + 140: uint16(24643), + 141: uint16(24684), + 142: uint16(24683), + 143: uint16(24682), + 144: uint16(24676), + 145: uint16(25153), + 146: uint16(25308), + 147: uint16(25366), + 148: uint16(25353), + 149: uint16(25340), + 150: uint16(25325), + 151: uint16(25345), + 152: uint16(25326), + 153: uint16(25341), + 154: uint16(25351), + 155: uint16(25329), + 156: uint16(25335), + }, + 11: { + 0: uint16(25327), + 1: uint16(25324), + 2: uint16(25342), + 3: uint16(25332), + 4: uint16(25361), + 5: uint16(25346), + 6: uint16(25919), + 7: uint16(25925), + 8: uint16(26027), + 9: uint16(26045), + 10: uint16(26082), + 11: uint16(26149), + 12: uint16(26157), + 13: uint16(26144), + 14: uint16(26151), + 15: uint16(26159), + 16: uint16(26143), + 17: uint16(26152), + 18: uint16(26161), + 19: uint16(26148), + 20: uint16(26359), + 21: uint16(26623), + 22: uint16(26579), + 23: uint16(26609), + 24: uint16(26580), + 25: uint16(26576), + 26: uint16(26604), + 27: uint16(26550), + 28: uint16(26543), + 29: uint16(26613), + 30: uint16(26601), + 31: uint16(26607), + 32: uint16(26564), + 33: uint16(26577), + 34: uint16(26548), + 35: uint16(26586), + 36: uint16(26597), + 37: uint16(26552), + 38: uint16(26575), + 39: uint16(26590), + 40: uint16(26611), + 41: uint16(26544), + 42: uint16(26585), + 43: uint16(26594), + 44: uint16(26589), + 45: uint16(26578), + 46: uint16(27498), + 47: uint16(27523), + 48: uint16(27526), + 49: uint16(27573), + 50: uint16(27602), + 51: uint16(27607), + 52: uint16(27679), + 53: uint16(27849), + 54: uint16(27915), + 55: uint16(27954), + 56: uint16(27946), + 57: uint16(27969), + 58: uint16(27941), + 59: uint16(27916), + 60: uint16(27953), + 61: uint16(27934), + 62: uint16(27927), + 63: uint16(27963), + 64: uint16(27965), + 65: uint16(27966), + 66: uint16(27958), + 67: uint16(27931), + 68: uint16(27893), + 69: uint16(27961), + 70: uint16(27943), + 71: uint16(27960), + 72: uint16(27945), + 73: uint16(27950), + 74: uint16(27957), + 75: uint16(27918), + 76: uint16(27947), + 77: uint16(28843), + 78: uint16(28858), + 79: uint16(28851), + 80: uint16(28844), + 81: uint16(28847), + 82: uint16(28845), + 83: uint16(28856), + 84: uint16(28846), + 85: uint16(28836), + 86: uint16(29232), + 87: uint16(29298), + 88: uint16(29295), + 89: uint16(29300), + 90: uint16(29417), + 91: uint16(29408), + 92: uint16(29409), + 93: uint16(29623), + 94: uint16(29642), + 95: uint16(29627), + 96: uint16(29618), + 97: uint16(29645), + 98: uint16(29632), + 99: uint16(29619), + 100: uint16(29978), + 101: uint16(29997), + 102: uint16(30031), + 103: uint16(30028), + 104: uint16(30030), + 105: uint16(30027), + 106: uint16(30123), + 107: uint16(30116), + 108: uint16(30117), + 109: uint16(30114), + 110: uint16(30115), + 111: uint16(30328), + 112: uint16(30342), + 113: uint16(30343), + 114: uint16(30344), + 115: uint16(30408), + 116: uint16(30406), + 117: uint16(30403), + 118: uint16(30405), + 119: uint16(30465), + 120: uint16(30457), + 121: uint16(30456), + 122: uint16(30473), + 123: uint16(30475), + 124: uint16(30462), + 125: uint16(30460), + 126: uint16(30471), + 127: uint16(30684), + 128: uint16(30722), + 129: uint16(30740), + 130: uint16(30732), + 131: uint16(30733), + 132: uint16(31046), + 133: uint16(31049), + 134: uint16(31048), + 135: uint16(31047), + 136: uint16(31161), + 137: uint16(31162), + 138: uint16(31185), + 139: uint16(31186), + 140: uint16(31179), + 141: uint16(31359), + 142: uint16(31361), + 143: uint16(31487), + 144: uint16(31485), + 145: uint16(31869), + 146: uint16(32002), + 147: uint16(32005), + 148: uint16(32000), + 149: uint16(32009), + 150: uint16(32007), + 151: uint16(32004), + 152: uint16(32006), + 153: uint16(32568), + 154: uint16(32654), + 155: uint16(32703), + 156: uint16(32772), + }, + 12: { + 0: uint16(32784), + 1: uint16(32781), + 2: uint16(32785), + 3: uint16(32822), + 4: uint16(32982), + 5: uint16(32997), + 6: uint16(32986), + 7: uint16(32963), + 8: uint16(32964), + 9: uint16(32972), + 10: uint16(32993), + 11: uint16(32987), + 12: uint16(32974), + 13: uint16(32990), + 14: uint16(32996), + 15: uint16(32989), + 16: uint16(33268), + 17: uint16(33314), + 18: uint16(33511), + 19: uint16(33539), + 20: uint16(33541), + 21: uint16(33507), + 22: uint16(33499), + 23: uint16(33510), + 24: uint16(33540), + 25: uint16(33509), + 26: uint16(33538), + 27: uint16(33545), + 28: uint16(33490), + 29: uint16(33495), + 30: uint16(33521), + 31: uint16(33537), + 32: uint16(33500), + 33: uint16(33492), + 34: uint16(33489), + 35: uint16(33502), + 36: uint16(33491), + 37: uint16(33503), + 38: uint16(33519), + 39: uint16(33542), + 40: uint16(34384), + 41: uint16(34425), + 42: uint16(34427), + 43: uint16(34426), + 44: uint16(34893), + 45: uint16(34923), + 46: uint16(35201), + 47: uint16(35284), + 48: uint16(35336), + 49: uint16(35330), + 50: uint16(35331), + 51: uint16(35998), + 52: uint16(36000), + 53: uint16(36212), + 54: uint16(36211), + 55: uint16(36276), + 56: uint16(36557), + 57: uint16(36556), + 58: uint16(36848), + 59: uint16(36838), + 60: uint16(36834), + 61: uint16(36842), + 62: uint16(36837), + 63: uint16(36845), + 64: uint16(36843), + 65: uint16(36836), + 66: uint16(36840), + 67: uint16(37066), + 68: uint16(37070), + 69: uint16(37057), + 70: uint16(37059), + 71: uint16(37195), + 72: uint16(37194), + 73: uint16(37325), + 74: uint16(38274), + 75: uint16(38480), + 76: uint16(38475), + 77: uint16(38476), + 78: uint16(38477), + 79: uint16(38754), + 80: uint16(38761), + 81: uint16(38859), + 82: uint16(38893), + 83: uint16(38899), + 84: uint16(38913), + 85: uint16(39080), + 86: uint16(39131), + 87: uint16(39135), + 88: uint16(39318), + 89: uint16(39321), + 90: uint16(20056), + 91: uint16(20147), + 92: uint16(20492), + 93: uint16(20493), + 94: uint16(20515), + 95: uint16(20463), + 96: uint16(20518), + 97: uint16(20517), + 98: uint16(20472), + 99: uint16(20521), + 100: uint16(20502), + 101: uint16(20486), + 102: uint16(20540), + 103: uint16(20511), + 104: uint16(20506), + 105: uint16(20498), + 106: uint16(20497), + 107: uint16(20474), + 108: uint16(20480), + 109: uint16(20500), + 110: uint16(20520), + 111: uint16(20465), + 112: uint16(20513), + 113: uint16(20491), + 114: uint16(20505), + 115: uint16(20504), + 116: uint16(20467), + 117: uint16(20462), + 118: uint16(20525), + 119: uint16(20522), + 120: uint16(20478), + 121: uint16(20523), + 122: uint16(20489), + 123: uint16(20860), + 124: uint16(20900), + 125: uint16(20901), + 126: uint16(20898), + 127: uint16(20941), + 128: uint16(20940), + 129: uint16(20934), + 130: uint16(20939), + 131: uint16(21078), + 132: uint16(21084), + 133: uint16(21076), + 134: uint16(21083), + 135: uint16(21085), + 136: uint16(21290), + 137: uint16(21375), + 138: uint16(21407), + 139: uint16(21405), + 140: uint16(21471), + 141: uint16(21736), + 142: uint16(21776), + 143: uint16(21761), + 144: uint16(21815), + 145: uint16(21756), + 146: uint16(21733), + 147: uint16(21746), + 148: uint16(21766), + 149: uint16(21754), + 150: uint16(21780), + 151: uint16(21737), + 152: uint16(21741), + 153: uint16(21729), + 154: uint16(21769), + 155: uint16(21742), + 156: uint16(21738), + }, + 13: { + 0: uint16(21734), + 1: uint16(21799), + 2: uint16(21767), + 3: uint16(21757), + 4: uint16(21775), + 5: uint16(22275), + 6: uint16(22276), + 7: uint16(22466), + 8: uint16(22484), + 9: uint16(22475), + 10: uint16(22467), + 11: uint16(22537), + 12: uint16(22799), + 13: uint16(22871), + 14: uint16(22872), + 15: uint16(22874), + 16: uint16(23057), + 17: uint16(23064), + 18: uint16(23068), + 19: uint16(23071), + 20: uint16(23067), + 21: uint16(23059), + 22: uint16(23020), + 23: uint16(23072), + 24: uint16(23075), + 25: uint16(23081), + 26: uint16(23077), + 27: uint16(23052), + 28: uint16(23049), + 29: uint16(23403), + 30: uint16(23640), + 31: uint16(23472), + 32: uint16(23475), + 33: uint16(23478), + 34: uint16(23476), + 35: uint16(23470), + 36: uint16(23477), + 37: uint16(23481), + 38: uint16(23480), + 39: uint16(23556), + 40: uint16(23633), + 41: uint16(23637), + 42: uint16(23632), + 43: uint16(23789), + 44: uint16(23805), + 45: uint16(23803), + 46: uint16(23786), + 47: uint16(23784), + 48: uint16(23792), + 49: uint16(23798), + 50: uint16(23809), + 51: uint16(23796), + 52: uint16(24046), + 53: uint16(24109), + 54: uint16(24107), + 55: uint16(24235), + 56: uint16(24237), + 57: uint16(24231), + 58: uint16(24369), + 59: uint16(24466), + 60: uint16(24465), + 61: uint16(24464), + 62: uint16(24665), + 63: uint16(24675), + 64: uint16(24677), + 65: uint16(24656), + 66: uint16(24661), + 67: uint16(24685), + 68: uint16(24681), + 69: uint16(24687), + 70: uint16(24708), + 71: uint16(24735), + 72: uint16(24730), + 73: uint16(24717), + 74: uint16(24724), + 75: uint16(24716), + 76: uint16(24709), + 77: uint16(24726), + 78: uint16(25159), + 79: uint16(25331), + 80: uint16(25352), + 81: uint16(25343), + 82: uint16(25422), + 83: uint16(25406), + 84: uint16(25391), + 85: uint16(25429), + 86: uint16(25410), + 87: uint16(25414), + 88: uint16(25423), + 89: uint16(25417), + 90: uint16(25402), + 91: uint16(25424), + 92: uint16(25405), + 93: uint16(25386), + 94: uint16(25387), + 95: uint16(25384), + 96: uint16(25421), + 97: uint16(25420), + 98: uint16(25928), + 99: uint16(25929), + 100: uint16(26009), + 101: uint16(26049), + 102: uint16(26053), + 103: uint16(26178), + 104: uint16(26185), + 105: uint16(26191), + 106: uint16(26179), + 107: uint16(26194), + 108: uint16(26188), + 109: uint16(26181), + 110: uint16(26177), + 111: uint16(26360), + 112: uint16(26388), + 113: uint16(26389), + 114: uint16(26391), + 115: uint16(26657), + 116: uint16(26680), + 117: uint16(26696), + 118: uint16(26694), + 119: uint16(26707), + 120: uint16(26681), + 121: uint16(26690), + 122: uint16(26708), + 123: uint16(26665), + 124: uint16(26803), + 125: uint16(26647), + 126: uint16(26700), + 127: uint16(26705), + 128: uint16(26685), + 129: uint16(26612), + 130: uint16(26704), + 131: uint16(26688), + 132: uint16(26684), + 133: uint16(26691), + 134: uint16(26666), + 135: uint16(26693), + 136: uint16(26643), + 137: uint16(26648), + 138: uint16(26689), + 139: uint16(27530), + 140: uint16(27529), + 141: uint16(27575), + 142: uint16(27683), + 143: uint16(27687), + 144: uint16(27688), + 145: uint16(27686), + 146: uint16(27684), + 147: uint16(27888), + 148: uint16(28010), + 149: uint16(28053), + 150: uint16(28040), + 151: uint16(28039), + 152: uint16(28006), + 153: uint16(28024), + 154: uint16(28023), + 155: uint16(27993), + 156: uint16(28051), + }, + 14: { + 0: uint16(28012), + 1: uint16(28041), + 2: uint16(28014), + 3: uint16(27994), + 4: uint16(28020), + 5: uint16(28009), + 6: uint16(28044), + 7: uint16(28042), + 8: uint16(28025), + 9: uint16(28037), + 10: uint16(28005), + 11: uint16(28052), + 12: uint16(28874), + 13: uint16(28888), + 14: uint16(28900), + 15: uint16(28889), + 16: uint16(28872), + 17: uint16(28879), + 18: uint16(29241), + 19: uint16(29305), + 20: uint16(29436), + 21: uint16(29433), + 22: uint16(29437), + 23: uint16(29432), + 24: uint16(29431), + 25: uint16(29574), + 26: uint16(29677), + 27: uint16(29705), + 28: uint16(29678), + 29: uint16(29664), + 30: uint16(29674), + 31: uint16(29662), + 32: uint16(30036), + 33: uint16(30045), + 34: uint16(30044), + 35: uint16(30042), + 36: uint16(30041), + 37: uint16(30142), + 38: uint16(30149), + 39: uint16(30151), + 40: uint16(30130), + 41: uint16(30131), + 42: uint16(30141), + 43: uint16(30140), + 44: uint16(30137), + 45: uint16(30146), + 46: uint16(30136), + 47: uint16(30347), + 48: uint16(30384), + 49: uint16(30410), + 50: uint16(30413), + 51: uint16(30414), + 52: uint16(30505), + 53: uint16(30495), + 54: uint16(30496), + 55: uint16(30504), + 56: uint16(30697), + 57: uint16(30768), + 58: uint16(30759), + 59: uint16(30776), + 60: uint16(30749), + 61: uint16(30772), + 62: uint16(30775), + 63: uint16(30757), + 64: uint16(30765), + 65: uint16(30752), + 66: uint16(30751), + 67: uint16(30770), + 68: uint16(31061), + 69: uint16(31056), + 70: uint16(31072), + 71: uint16(31071), + 72: uint16(31062), + 73: uint16(31070), + 74: uint16(31069), + 75: uint16(31063), + 76: uint16(31066), + 77: uint16(31204), + 78: uint16(31203), + 79: uint16(31207), + 80: uint16(31199), + 81: uint16(31206), + 82: uint16(31209), + 83: uint16(31192), + 84: uint16(31364), + 85: uint16(31368), + 86: uint16(31449), + 87: uint16(31494), + 88: uint16(31505), + 89: uint16(31881), + 90: uint16(32033), + 91: uint16(32023), + 92: uint16(32011), + 93: uint16(32010), + 94: uint16(32032), + 95: uint16(32034), + 96: uint16(32020), + 97: uint16(32016), + 98: uint16(32021), + 99: uint16(32026), + 100: uint16(32028), + 101: uint16(32013), + 102: uint16(32025), + 103: uint16(32027), + 104: uint16(32570), + 105: uint16(32607), + 106: uint16(32660), + 107: uint16(32709), + 108: uint16(32705), + 109: uint16(32774), + 110: uint16(32792), + 111: uint16(32789), + 112: uint16(32793), + 113: uint16(32791), + 114: uint16(32829), + 115: uint16(32831), + 116: uint16(33009), + 117: uint16(33026), + 118: uint16(33008), + 119: uint16(33029), + 120: uint16(33005), + 121: uint16(33012), + 122: uint16(33030), + 123: uint16(33016), + 124: uint16(33011), + 125: uint16(33032), + 126: uint16(33021), + 127: uint16(33034), + 128: uint16(33020), + 129: uint16(33007), + 130: uint16(33261), + 131: uint16(33260), + 132: uint16(33280), + 133: uint16(33296), + 134: uint16(33322), + 135: uint16(33323), + 136: uint16(33320), + 137: uint16(33324), + 138: uint16(33467), + 139: uint16(33579), + 140: uint16(33618), + 141: uint16(33620), + 142: uint16(33610), + 143: uint16(33592), + 144: uint16(33616), + 145: uint16(33609), + 146: uint16(33589), + 147: uint16(33588), + 148: uint16(33615), + 149: uint16(33586), + 150: uint16(33593), + 151: uint16(33590), + 152: uint16(33559), + 153: uint16(33600), + 154: uint16(33585), + 155: uint16(33576), + 156: uint16(33603), + }, + 15: { + 0: uint16(34388), + 1: uint16(34442), + 2: uint16(34474), + 3: uint16(34451), + 4: uint16(34468), + 5: uint16(34473), + 6: uint16(34444), + 7: uint16(34467), + 8: uint16(34460), + 9: uint16(34928), + 10: uint16(34935), + 11: uint16(34945), + 12: uint16(34946), + 13: uint16(34941), + 14: uint16(34937), + 15: uint16(35352), + 16: uint16(35344), + 17: uint16(35342), + 18: uint16(35340), + 19: uint16(35349), + 20: uint16(35338), + 21: uint16(35351), + 22: uint16(35347), + 23: uint16(35350), + 24: uint16(35343), + 25: uint16(35345), + 26: uint16(35912), + 27: uint16(35962), + 28: uint16(35961), + 29: uint16(36001), + 30: uint16(36002), + 31: uint16(36215), + 32: uint16(36524), + 33: uint16(36562), + 34: uint16(36564), + 35: uint16(36559), + 36: uint16(36785), + 37: uint16(36865), + 38: uint16(36870), + 39: uint16(36855), + 40: uint16(36864), + 41: uint16(36858), + 42: uint16(36852), + 43: uint16(36867), + 44: uint16(36861), + 45: uint16(36869), + 46: uint16(36856), + 47: uint16(37013), + 48: uint16(37089), + 49: uint16(37085), + 50: uint16(37090), + 51: uint16(37202), + 52: uint16(37197), + 53: uint16(37196), + 54: uint16(37336), + 55: uint16(37341), + 56: uint16(37335), + 57: uint16(37340), + 58: uint16(37337), + 59: uint16(38275), + 60: uint16(38498), + 61: uint16(38499), + 62: uint16(38497), + 63: uint16(38491), + 64: uint16(38493), + 65: uint16(38500), + 66: uint16(38488), + 67: uint16(38494), + 68: uint16(38587), + 69: uint16(39138), + 70: uint16(39340), + 71: uint16(39592), + 72: uint16(39640), + 73: uint16(39717), + 74: uint16(39730), + 75: uint16(39740), + 76: uint16(20094), + 77: uint16(20602), + 78: uint16(20605), + 79: uint16(20572), + 80: uint16(20551), + 81: uint16(20547), + 82: uint16(20556), + 83: uint16(20570), + 84: uint16(20553), + 85: uint16(20581), + 86: uint16(20598), + 87: uint16(20558), + 88: uint16(20565), + 89: uint16(20597), + 90: uint16(20596), + 91: uint16(20599), + 92: uint16(20559), + 93: uint16(20495), + 94: uint16(20591), + 95: uint16(20589), + 96: uint16(20828), + 97: uint16(20885), + 98: uint16(20976), + 99: uint16(21098), + 100: uint16(21103), + 101: uint16(21202), + 102: uint16(21209), + 103: uint16(21208), + 104: uint16(21205), + 105: uint16(21264), + 106: uint16(21263), + 107: uint16(21273), + 108: uint16(21311), + 109: uint16(21312), + 110: uint16(21310), + 111: uint16(21443), + 112: uint16(26364), + 113: uint16(21830), + 114: uint16(21866), + 115: uint16(21862), + 116: uint16(21828), + 117: uint16(21854), + 118: uint16(21857), + 119: uint16(21827), + 120: uint16(21834), + 121: uint16(21809), + 122: uint16(21846), + 123: uint16(21839), + 124: uint16(21845), + 125: uint16(21807), + 126: uint16(21860), + 127: uint16(21816), + 128: uint16(21806), + 129: uint16(21852), + 130: uint16(21804), + 131: uint16(21859), + 132: uint16(21811), + 133: uint16(21825), + 134: uint16(21847), + 135: uint16(22280), + 136: uint16(22283), + 137: uint16(22281), + 138: uint16(22495), + 139: uint16(22533), + 140: uint16(22538), + 141: uint16(22534), + 142: uint16(22496), + 143: uint16(22500), + 144: uint16(22522), + 145: uint16(22530), + 146: uint16(22581), + 147: uint16(22519), + 148: uint16(22521), + 149: uint16(22816), + 150: uint16(22882), + 151: uint16(23094), + 152: uint16(23105), + 153: uint16(23113), + 154: uint16(23142), + 155: uint16(23146), + 156: uint16(23104), + }, + 16: { + 0: uint16(23100), + 1: uint16(23138), + 2: uint16(23130), + 3: uint16(23110), + 4: uint16(23114), + 5: uint16(23408), + 6: uint16(23495), + 7: uint16(23493), + 8: uint16(23492), + 9: uint16(23490), + 10: uint16(23487), + 11: uint16(23494), + 12: uint16(23561), + 13: uint16(23560), + 14: uint16(23559), + 15: uint16(23648), + 16: uint16(23644), + 17: uint16(23645), + 18: uint16(23815), + 19: uint16(23814), + 20: uint16(23822), + 21: uint16(23835), + 22: uint16(23830), + 23: uint16(23842), + 24: uint16(23825), + 25: uint16(23849), + 26: uint16(23828), + 27: uint16(23833), + 28: uint16(23844), + 29: uint16(23847), + 30: uint16(23831), + 31: uint16(24034), + 32: uint16(24120), + 33: uint16(24118), + 34: uint16(24115), + 35: uint16(24119), + 36: uint16(24247), + 37: uint16(24248), + 38: uint16(24246), + 39: uint16(24245), + 40: uint16(24254), + 41: uint16(24373), + 42: uint16(24375), + 43: uint16(24407), + 44: uint16(24428), + 45: uint16(24425), + 46: uint16(24427), + 47: uint16(24471), + 48: uint16(24473), + 49: uint16(24478), + 50: uint16(24472), + 51: uint16(24481), + 52: uint16(24480), + 53: uint16(24476), + 54: uint16(24703), + 55: uint16(24739), + 56: uint16(24713), + 57: uint16(24736), + 58: uint16(24744), + 59: uint16(24779), + 60: uint16(24756), + 61: uint16(24806), + 62: uint16(24765), + 63: uint16(24773), + 64: uint16(24763), + 65: uint16(24757), + 66: uint16(24796), + 67: uint16(24764), + 68: uint16(24792), + 69: uint16(24789), + 70: uint16(24774), + 71: uint16(24799), + 72: uint16(24760), + 73: uint16(24794), + 74: uint16(24775), + 75: uint16(25114), + 76: uint16(25115), + 77: uint16(25160), + 78: uint16(25504), + 79: uint16(25511), + 80: uint16(25458), + 81: uint16(25494), + 82: uint16(25506), + 83: uint16(25509), + 84: uint16(25463), + 85: uint16(25447), + 86: uint16(25496), + 87: uint16(25514), + 88: uint16(25457), + 89: uint16(25513), + 90: uint16(25481), + 91: uint16(25475), + 92: uint16(25499), + 93: uint16(25451), + 94: uint16(25512), + 95: uint16(25476), + 96: uint16(25480), + 97: uint16(25497), + 98: uint16(25505), + 99: uint16(25516), + 100: uint16(25490), + 101: uint16(25487), + 102: uint16(25472), + 103: uint16(25467), + 104: uint16(25449), + 105: uint16(25448), + 106: uint16(25466), + 107: uint16(25949), + 108: uint16(25942), + 109: uint16(25937), + 110: uint16(25945), + 111: uint16(25943), + 112: uint16(21855), + 113: uint16(25935), + 114: uint16(25944), + 115: uint16(25941), + 116: uint16(25940), + 117: uint16(26012), + 118: uint16(26011), + 119: uint16(26028), + 120: uint16(26063), + 121: uint16(26059), + 122: uint16(26060), + 123: uint16(26062), + 124: uint16(26205), + 125: uint16(26202), + 126: uint16(26212), + 127: uint16(26216), + 128: uint16(26214), + 129: uint16(26206), + 130: uint16(26361), + 131: uint16(21207), + 132: uint16(26395), + 133: uint16(26753), + 134: uint16(26799), + 135: uint16(26786), + 136: uint16(26771), + 137: uint16(26805), + 138: uint16(26751), + 139: uint16(26742), + 140: uint16(26801), + 141: uint16(26791), + 142: uint16(26775), + 143: uint16(26800), + 144: uint16(26755), + 145: uint16(26820), + 146: uint16(26797), + 147: uint16(26758), + 148: uint16(26757), + 149: uint16(26772), + 150: uint16(26781), + 151: uint16(26792), + 152: uint16(26783), + 153: uint16(26785), + 154: uint16(26754), + 155: uint16(27442), + 156: uint16(27578), + }, + 17: { + 0: uint16(27627), + 1: uint16(27628), + 2: uint16(27691), + 3: uint16(28046), + 4: uint16(28092), + 5: uint16(28147), + 6: uint16(28121), + 7: uint16(28082), + 8: uint16(28129), + 9: uint16(28108), + 10: uint16(28132), + 11: uint16(28155), + 12: uint16(28154), + 13: uint16(28165), + 14: uint16(28103), + 15: uint16(28107), + 16: uint16(28079), + 17: uint16(28113), + 18: uint16(28078), + 19: uint16(28126), + 20: uint16(28153), + 21: uint16(28088), + 22: uint16(28151), + 23: uint16(28149), + 24: uint16(28101), + 25: uint16(28114), + 26: uint16(28186), + 27: uint16(28085), + 28: uint16(28122), + 29: uint16(28139), + 30: uint16(28120), + 31: uint16(28138), + 32: uint16(28145), + 33: uint16(28142), + 34: uint16(28136), + 35: uint16(28102), + 36: uint16(28100), + 37: uint16(28074), + 38: uint16(28140), + 39: uint16(28095), + 40: uint16(28134), + 41: uint16(28921), + 42: uint16(28937), + 43: uint16(28938), + 44: uint16(28925), + 45: uint16(28911), + 46: uint16(29245), + 47: uint16(29309), + 48: uint16(29313), + 49: uint16(29468), + 50: uint16(29467), + 51: uint16(29462), + 52: uint16(29459), + 53: uint16(29465), + 54: uint16(29575), + 55: uint16(29701), + 56: uint16(29706), + 57: uint16(29699), + 58: uint16(29702), + 59: uint16(29694), + 60: uint16(29709), + 61: uint16(29920), + 62: uint16(29942), + 63: uint16(29943), + 64: uint16(29980), + 65: uint16(29986), + 66: uint16(30053), + 67: uint16(30054), + 68: uint16(30050), + 69: uint16(30064), + 70: uint16(30095), + 71: uint16(30164), + 72: uint16(30165), + 73: uint16(30133), + 74: uint16(30154), + 75: uint16(30157), + 76: uint16(30350), + 77: uint16(30420), + 78: uint16(30418), + 79: uint16(30427), + 80: uint16(30519), + 81: uint16(30526), + 82: uint16(30524), + 83: uint16(30518), + 84: uint16(30520), + 85: uint16(30522), + 86: uint16(30827), + 87: uint16(30787), + 88: uint16(30798), + 89: uint16(31077), + 90: uint16(31080), + 91: uint16(31085), + 92: uint16(31227), + 93: uint16(31378), + 94: uint16(31381), + 95: uint16(31520), + 96: uint16(31528), + 97: uint16(31515), + 98: uint16(31532), + 99: uint16(31526), + 100: uint16(31513), + 101: uint16(31518), + 102: uint16(31534), + 103: uint16(31890), + 104: uint16(31895), + 105: uint16(31893), + 106: uint16(32070), + 107: uint16(32067), + 108: uint16(32113), + 109: uint16(32046), + 110: uint16(32057), + 111: uint16(32060), + 112: uint16(32064), + 113: uint16(32048), + 114: uint16(32051), + 115: uint16(32068), + 116: uint16(32047), + 117: uint16(32066), + 118: uint16(32050), + 119: uint16(32049), + 120: uint16(32573), + 121: uint16(32670), + 122: uint16(32666), + 123: uint16(32716), + 124: uint16(32718), + 125: uint16(32722), + 126: uint16(32796), + 127: uint16(32842), + 128: uint16(32838), + 129: uint16(33071), + 130: uint16(33046), + 131: uint16(33059), + 132: uint16(33067), + 133: uint16(33065), + 134: uint16(33072), + 135: uint16(33060), + 136: uint16(33282), + 137: uint16(33333), + 138: uint16(33335), + 139: uint16(33334), + 140: uint16(33337), + 141: uint16(33678), + 142: uint16(33694), + 143: uint16(33688), + 144: uint16(33656), + 145: uint16(33698), + 146: uint16(33686), + 147: uint16(33725), + 148: uint16(33707), + 149: uint16(33682), + 150: uint16(33674), + 151: uint16(33683), + 152: uint16(33673), + 153: uint16(33696), + 154: uint16(33655), + 155: uint16(33659), + 156: uint16(33660), + }, + 18: { + 0: uint16(33670), + 1: uint16(33703), + 2: uint16(34389), + 3: uint16(24426), + 4: uint16(34503), + 5: uint16(34496), + 6: uint16(34486), + 7: uint16(34500), + 8: uint16(34485), + 9: uint16(34502), + 10: uint16(34507), + 11: uint16(34481), + 12: uint16(34479), + 13: uint16(34505), + 14: uint16(34899), + 15: uint16(34974), + 16: uint16(34952), + 17: uint16(34987), + 18: uint16(34962), + 19: uint16(34966), + 20: uint16(34957), + 21: uint16(34955), + 22: uint16(35219), + 23: uint16(35215), + 24: uint16(35370), + 25: uint16(35357), + 26: uint16(35363), + 27: uint16(35365), + 28: uint16(35377), + 29: uint16(35373), + 30: uint16(35359), + 31: uint16(35355), + 32: uint16(35362), + 33: uint16(35913), + 34: uint16(35930), + 35: uint16(36009), + 36: uint16(36012), + 37: uint16(36011), + 38: uint16(36008), + 39: uint16(36010), + 40: uint16(36007), + 41: uint16(36199), + 42: uint16(36198), + 43: uint16(36286), + 44: uint16(36282), + 45: uint16(36571), + 46: uint16(36575), + 47: uint16(36889), + 48: uint16(36877), + 49: uint16(36890), + 50: uint16(36887), + 51: uint16(36899), + 52: uint16(36895), + 53: uint16(36893), + 54: uint16(36880), + 55: uint16(36885), + 56: uint16(36894), + 57: uint16(36896), + 58: uint16(36879), + 59: uint16(36898), + 60: uint16(36886), + 61: uint16(36891), + 62: uint16(36884), + 63: uint16(37096), + 64: uint16(37101), + 65: uint16(37117), + 66: uint16(37207), + 67: uint16(37326), + 68: uint16(37365), + 69: uint16(37350), + 70: uint16(37347), + 71: uint16(37351), + 72: uint16(37357), + 73: uint16(37353), + 74: uint16(38281), + 75: uint16(38506), + 76: uint16(38517), + 77: uint16(38515), + 78: uint16(38520), + 79: uint16(38512), + 80: uint16(38516), + 81: uint16(38518), + 82: uint16(38519), + 83: uint16(38508), + 84: uint16(38592), + 85: uint16(38634), + 86: uint16(38633), + 87: uint16(31456), + 88: uint16(31455), + 89: uint16(38914), + 90: uint16(38915), + 91: uint16(39770), + 92: uint16(40165), + 93: uint16(40565), + 94: uint16(40575), + 95: uint16(40613), + 96: uint16(40635), + 97: uint16(20642), + 98: uint16(20621), + 99: uint16(20613), + 100: uint16(20633), + 101: uint16(20625), + 102: uint16(20608), + 103: uint16(20630), + 104: uint16(20632), + 105: uint16(20634), + 106: uint16(26368), + 107: uint16(20977), + 108: uint16(21106), + 109: uint16(21108), + 110: uint16(21109), + 111: uint16(21097), + 112: uint16(21214), + 113: uint16(21213), + 114: uint16(21211), + 115: uint16(21338), + 116: uint16(21413), + 117: uint16(21883), + 118: uint16(21888), + 119: uint16(21927), + 120: uint16(21884), + 121: uint16(21898), + 122: uint16(21917), + 123: uint16(21912), + 124: uint16(21890), + 125: uint16(21916), + 126: uint16(21930), + 127: uint16(21908), + 128: uint16(21895), + 129: uint16(21899), + 130: uint16(21891), + 131: uint16(21939), + 132: uint16(21934), + 133: uint16(21919), + 134: uint16(21822), + 135: uint16(21938), + 136: uint16(21914), + 137: uint16(21947), + 138: uint16(21932), + 139: uint16(21937), + 140: uint16(21886), + 141: uint16(21897), + 142: uint16(21931), + 143: uint16(21913), + 144: uint16(22285), + 145: uint16(22575), + 146: uint16(22570), + 147: uint16(22580), + 148: uint16(22564), + 149: uint16(22576), + 150: uint16(22577), + 151: uint16(22561), + 152: uint16(22557), + 153: uint16(22560), + 154: uint16(22777), + 155: uint16(22778), + 156: uint16(22880), + }, + 19: { + 0: uint16(23159), + 1: uint16(23194), + 2: uint16(23167), + 3: uint16(23186), + 4: uint16(23195), + 5: uint16(23207), + 6: uint16(23411), + 7: uint16(23409), + 8: uint16(23506), + 9: uint16(23500), + 10: uint16(23507), + 11: uint16(23504), + 12: uint16(23562), + 13: uint16(23563), + 14: uint16(23601), + 15: uint16(23884), + 16: uint16(23888), + 17: uint16(23860), + 18: uint16(23879), + 19: uint16(24061), + 20: uint16(24133), + 21: uint16(24125), + 22: uint16(24128), + 23: uint16(24131), + 24: uint16(24190), + 25: uint16(24266), + 26: uint16(24257), + 27: uint16(24258), + 28: uint16(24260), + 29: uint16(24380), + 30: uint16(24429), + 31: uint16(24489), + 32: uint16(24490), + 33: uint16(24488), + 34: uint16(24785), + 35: uint16(24801), + 36: uint16(24754), + 37: uint16(24758), + 38: uint16(24800), + 39: uint16(24860), + 40: uint16(24867), + 41: uint16(24826), + 42: uint16(24853), + 43: uint16(24816), + 44: uint16(24827), + 45: uint16(24820), + 46: uint16(24936), + 47: uint16(24817), + 48: uint16(24846), + 49: uint16(24822), + 50: uint16(24841), + 51: uint16(24832), + 52: uint16(24850), + 53: uint16(25119), + 54: uint16(25161), + 55: uint16(25507), + 56: uint16(25484), + 57: uint16(25551), + 58: uint16(25536), + 59: uint16(25577), + 60: uint16(25545), + 61: uint16(25542), + 62: uint16(25549), + 63: uint16(25554), + 64: uint16(25571), + 65: uint16(25552), + 66: uint16(25569), + 67: uint16(25558), + 68: uint16(25581), + 69: uint16(25582), + 70: uint16(25462), + 71: uint16(25588), + 72: uint16(25578), + 73: uint16(25563), + 74: uint16(25682), + 75: uint16(25562), + 76: uint16(25593), + 77: uint16(25950), + 78: uint16(25958), + 79: uint16(25954), + 80: uint16(25955), + 81: uint16(26001), + 82: uint16(26000), + 83: uint16(26031), + 84: uint16(26222), + 85: uint16(26224), + 86: uint16(26228), + 87: uint16(26230), + 88: uint16(26223), + 89: uint16(26257), + 90: uint16(26234), + 91: uint16(26238), + 92: uint16(26231), + 93: uint16(26366), + 94: uint16(26367), + 95: uint16(26399), + 96: uint16(26397), + 97: uint16(26874), + 98: uint16(26837), + 99: uint16(26848), + 100: uint16(26840), + 101: uint16(26839), + 102: uint16(26885), + 103: uint16(26847), + 104: uint16(26869), + 105: uint16(26862), + 106: uint16(26855), + 107: uint16(26873), + 108: uint16(26834), + 109: uint16(26866), + 110: uint16(26851), + 111: uint16(26827), + 112: uint16(26829), + 113: uint16(26893), + 114: uint16(26898), + 115: uint16(26894), + 116: uint16(26825), + 117: uint16(26842), + 118: uint16(26990), + 119: uint16(26875), + 120: uint16(27454), + 121: uint16(27450), + 122: uint16(27453), + 123: uint16(27544), + 124: uint16(27542), + 125: uint16(27580), + 126: uint16(27631), + 127: uint16(27694), + 128: uint16(27695), + 129: uint16(27692), + 130: uint16(28207), + 131: uint16(28216), + 132: uint16(28244), + 133: uint16(28193), + 134: uint16(28210), + 135: uint16(28263), + 136: uint16(28234), + 137: uint16(28192), + 138: uint16(28197), + 139: uint16(28195), + 140: uint16(28187), + 141: uint16(28251), + 142: uint16(28248), + 143: uint16(28196), + 144: uint16(28246), + 145: uint16(28270), + 146: uint16(28205), + 147: uint16(28198), + 148: uint16(28271), + 149: uint16(28212), + 150: uint16(28237), + 151: uint16(28218), + 152: uint16(28204), + 153: uint16(28227), + 154: uint16(28189), + 155: uint16(28222), + 156: uint16(28363), + }, + 20: { + 0: uint16(28297), + 1: uint16(28185), + 2: uint16(28238), + 3: uint16(28259), + 4: uint16(28228), + 5: uint16(28274), + 6: uint16(28265), + 7: uint16(28255), + 8: uint16(28953), + 9: uint16(28954), + 10: uint16(28966), + 11: uint16(28976), + 12: uint16(28961), + 13: uint16(28982), + 14: uint16(29038), + 15: uint16(28956), + 16: uint16(29260), + 17: uint16(29316), + 18: uint16(29312), + 19: uint16(29494), + 20: uint16(29477), + 21: uint16(29492), + 22: uint16(29481), + 23: uint16(29754), + 24: uint16(29738), + 25: uint16(29747), + 26: uint16(29730), + 27: uint16(29733), + 28: uint16(29749), + 29: uint16(29750), + 30: uint16(29748), + 31: uint16(29743), + 32: uint16(29723), + 33: uint16(29734), + 34: uint16(29736), + 35: uint16(29989), + 36: uint16(29990), + 37: uint16(30059), + 38: uint16(30058), + 39: uint16(30178), + 40: uint16(30171), + 41: uint16(30179), + 42: uint16(30169), + 43: uint16(30168), + 44: uint16(30174), + 45: uint16(30176), + 46: uint16(30331), + 47: uint16(30332), + 48: uint16(30358), + 49: uint16(30355), + 50: uint16(30388), + 51: uint16(30428), + 52: uint16(30543), + 53: uint16(30701), + 54: uint16(30813), + 55: uint16(30828), + 56: uint16(30831), + 57: uint16(31245), + 58: uint16(31240), + 59: uint16(31243), + 60: uint16(31237), + 61: uint16(31232), + 62: uint16(31384), + 63: uint16(31383), + 64: uint16(31382), + 65: uint16(31461), + 66: uint16(31459), + 67: uint16(31561), + 68: uint16(31574), + 69: uint16(31558), + 70: uint16(31568), + 71: uint16(31570), + 72: uint16(31572), + 73: uint16(31565), + 74: uint16(31563), + 75: uint16(31567), + 76: uint16(31569), + 77: uint16(31903), + 78: uint16(31909), + 79: uint16(32094), + 80: uint16(32080), + 81: uint16(32104), + 82: uint16(32085), + 83: uint16(32043), + 84: uint16(32110), + 85: uint16(32114), + 86: uint16(32097), + 87: uint16(32102), + 88: uint16(32098), + 89: uint16(32112), + 90: uint16(32115), + 91: uint16(21892), + 92: uint16(32724), + 93: uint16(32725), + 94: uint16(32779), + 95: uint16(32850), + 96: uint16(32901), + 97: uint16(33109), + 98: uint16(33108), + 99: uint16(33099), + 100: uint16(33105), + 101: uint16(33102), + 102: uint16(33081), + 103: uint16(33094), + 104: uint16(33086), + 105: uint16(33100), + 106: uint16(33107), + 107: uint16(33140), + 108: uint16(33298), + 109: uint16(33308), + 110: uint16(33769), + 111: uint16(33795), + 112: uint16(33784), + 113: uint16(33805), + 114: uint16(33760), + 115: uint16(33733), + 116: uint16(33803), + 117: uint16(33729), + 118: uint16(33775), + 119: uint16(33777), + 120: uint16(33780), + 121: uint16(33879), + 122: uint16(33802), + 123: uint16(33776), + 124: uint16(33804), + 125: uint16(33740), + 126: uint16(33789), + 127: uint16(33778), + 128: uint16(33738), + 129: uint16(33848), + 130: uint16(33806), + 131: uint16(33796), + 132: uint16(33756), + 133: uint16(33799), + 134: uint16(33748), + 135: uint16(33759), + 136: uint16(34395), + 137: uint16(34527), + 138: uint16(34521), + 139: uint16(34541), + 140: uint16(34516), + 141: uint16(34523), + 142: uint16(34532), + 143: uint16(34512), + 144: uint16(34526), + 145: uint16(34903), + 146: uint16(35009), + 147: uint16(35010), + 148: uint16(34993), + 149: uint16(35203), + 150: uint16(35222), + 151: uint16(35387), + 152: uint16(35424), + 153: uint16(35413), + 154: uint16(35422), + 155: uint16(35388), + 156: uint16(35393), + }, + 21: { + 0: uint16(35412), + 1: uint16(35419), + 2: uint16(35408), + 3: uint16(35398), + 4: uint16(35380), + 5: uint16(35386), + 6: uint16(35382), + 7: uint16(35414), + 8: uint16(35937), + 9: uint16(35970), + 10: uint16(36015), + 11: uint16(36028), + 12: uint16(36019), + 13: uint16(36029), + 14: uint16(36033), + 15: uint16(36027), + 16: uint16(36032), + 17: uint16(36020), + 18: uint16(36023), + 19: uint16(36022), + 20: uint16(36031), + 21: uint16(36024), + 22: uint16(36234), + 23: uint16(36229), + 24: uint16(36225), + 25: uint16(36302), + 26: uint16(36317), + 27: uint16(36299), + 28: uint16(36314), + 29: uint16(36305), + 30: uint16(36300), + 31: uint16(36315), + 32: uint16(36294), + 33: uint16(36603), + 34: uint16(36600), + 35: uint16(36604), + 36: uint16(36764), + 37: uint16(36910), + 38: uint16(36917), + 39: uint16(36913), + 40: uint16(36920), + 41: uint16(36914), + 42: uint16(36918), + 43: uint16(37122), + 44: uint16(37109), + 45: uint16(37129), + 46: uint16(37118), + 47: uint16(37219), + 48: uint16(37221), + 49: uint16(37327), + 50: uint16(37396), + 51: uint16(37397), + 52: uint16(37411), + 53: uint16(37385), + 54: uint16(37406), + 55: uint16(37389), + 56: uint16(37392), + 57: uint16(37383), + 58: uint16(37393), + 59: uint16(38292), + 60: uint16(38287), + 61: uint16(38283), + 62: uint16(38289), + 63: uint16(38291), + 64: uint16(38290), + 65: uint16(38286), + 66: uint16(38538), + 67: uint16(38542), + 68: uint16(38539), + 69: uint16(38525), + 70: uint16(38533), + 71: uint16(38534), + 72: uint16(38541), + 73: uint16(38514), + 74: uint16(38532), + 75: uint16(38593), + 76: uint16(38597), + 77: uint16(38596), + 78: uint16(38598), + 79: uint16(38599), + 80: uint16(38639), + 81: uint16(38642), + 82: uint16(38860), + 83: uint16(38917), + 84: uint16(38918), + 85: uint16(38920), + 86: uint16(39143), + 87: uint16(39146), + 88: uint16(39151), + 89: uint16(39145), + 90: uint16(39154), + 91: uint16(39149), + 92: uint16(39342), + 93: uint16(39341), + 94: uint16(40643), + 95: uint16(40653), + 96: uint16(40657), + 97: uint16(20098), + 98: uint16(20653), + 99: uint16(20661), + 100: uint16(20658), + 101: uint16(20659), + 102: uint16(20677), + 103: uint16(20670), + 104: uint16(20652), + 105: uint16(20663), + 106: uint16(20667), + 107: uint16(20655), + 108: uint16(20679), + 109: uint16(21119), + 110: uint16(21111), + 111: uint16(21117), + 112: uint16(21215), + 113: uint16(21222), + 114: uint16(21220), + 115: uint16(21218), + 116: uint16(21219), + 117: uint16(21295), + 118: uint16(21983), + 119: uint16(21992), + 120: uint16(21971), + 121: uint16(21990), + 122: uint16(21966), + 123: uint16(21980), + 124: uint16(21959), + 125: uint16(21969), + 126: uint16(21987), + 127: uint16(21988), + 128: uint16(21999), + 129: uint16(21978), + 130: uint16(21985), + 131: uint16(21957), + 132: uint16(21958), + 133: uint16(21989), + 134: uint16(21961), + 135: uint16(22290), + 136: uint16(22291), + 137: uint16(22622), + 138: uint16(22609), + 139: uint16(22616), + 140: uint16(22615), + 141: uint16(22618), + 142: uint16(22612), + 143: uint16(22635), + 144: uint16(22604), + 145: uint16(22637), + 146: uint16(22602), + 147: uint16(22626), + 148: uint16(22610), + 149: uint16(22603), + 150: uint16(22887), + 151: uint16(23233), + 152: uint16(23241), + 153: uint16(23244), + 154: uint16(23230), + 155: uint16(23229), + 156: uint16(23228), + }, + 22: { + 0: uint16(23219), + 1: uint16(23234), + 2: uint16(23218), + 3: uint16(23913), + 4: uint16(23919), + 5: uint16(24140), + 6: uint16(24185), + 7: uint16(24265), + 8: uint16(24264), + 9: uint16(24338), + 10: uint16(24409), + 11: uint16(24492), + 12: uint16(24494), + 13: uint16(24858), + 14: uint16(24847), + 15: uint16(24904), + 16: uint16(24863), + 17: uint16(24819), + 18: uint16(24859), + 19: uint16(24825), + 20: uint16(24833), + 21: uint16(24840), + 22: uint16(24910), + 23: uint16(24908), + 24: uint16(24900), + 25: uint16(24909), + 26: uint16(24894), + 27: uint16(24884), + 28: uint16(24871), + 29: uint16(24845), + 30: uint16(24838), + 31: uint16(24887), + 32: uint16(25121), + 33: uint16(25122), + 34: uint16(25619), + 35: uint16(25662), + 36: uint16(25630), + 37: uint16(25642), + 38: uint16(25645), + 39: uint16(25661), + 40: uint16(25644), + 41: uint16(25615), + 42: uint16(25628), + 43: uint16(25620), + 44: uint16(25613), + 45: uint16(25654), + 46: uint16(25622), + 47: uint16(25623), + 48: uint16(25606), + 49: uint16(25964), + 50: uint16(26015), + 51: uint16(26032), + 52: uint16(26263), + 53: uint16(26249), + 54: uint16(26247), + 55: uint16(26248), + 56: uint16(26262), + 57: uint16(26244), + 58: uint16(26264), + 59: uint16(26253), + 60: uint16(26371), + 61: uint16(27028), + 62: uint16(26989), + 63: uint16(26970), + 64: uint16(26999), + 65: uint16(26976), + 66: uint16(26964), + 67: uint16(26997), + 68: uint16(26928), + 69: uint16(27010), + 70: uint16(26954), + 71: uint16(26984), + 72: uint16(26987), + 73: uint16(26974), + 74: uint16(26963), + 75: uint16(27001), + 76: uint16(27014), + 77: uint16(26973), + 78: uint16(26979), + 79: uint16(26971), + 80: uint16(27463), + 81: uint16(27506), + 82: uint16(27584), + 83: uint16(27583), + 84: uint16(27603), + 85: uint16(27645), + 86: uint16(28322), + 87: uint16(28335), + 88: uint16(28371), + 89: uint16(28342), + 90: uint16(28354), + 91: uint16(28304), + 92: uint16(28317), + 93: uint16(28359), + 94: uint16(28357), + 95: uint16(28325), + 96: uint16(28312), + 97: uint16(28348), + 98: uint16(28346), + 99: uint16(28331), + 100: uint16(28369), + 101: uint16(28310), + 102: uint16(28316), + 103: uint16(28356), + 104: uint16(28372), + 105: uint16(28330), + 106: uint16(28327), + 107: uint16(28340), + 108: uint16(29006), + 109: uint16(29017), + 110: uint16(29033), + 111: uint16(29028), + 112: uint16(29001), + 113: uint16(29031), + 114: uint16(29020), + 115: uint16(29036), + 116: uint16(29030), + 117: uint16(29004), + 118: uint16(29029), + 119: uint16(29022), + 120: uint16(28998), + 121: uint16(29032), + 122: uint16(29014), + 123: uint16(29242), + 124: uint16(29266), + 125: uint16(29495), + 126: uint16(29509), + 127: uint16(29503), + 128: uint16(29502), + 129: uint16(29807), + 130: uint16(29786), + 131: uint16(29781), + 132: uint16(29791), + 133: uint16(29790), + 134: uint16(29761), + 135: uint16(29759), + 136: uint16(29785), + 137: uint16(29787), + 138: uint16(29788), + 139: uint16(30070), + 140: uint16(30072), + 141: uint16(30208), + 142: uint16(30192), + 143: uint16(30209), + 144: uint16(30194), + 145: uint16(30193), + 146: uint16(30202), + 147: uint16(30207), + 148: uint16(30196), + 149: uint16(30195), + 150: uint16(30430), + 151: uint16(30431), + 152: uint16(30555), + 153: uint16(30571), + 154: uint16(30566), + 155: uint16(30558), + 156: uint16(30563), + }, + 23: { + 0: uint16(30585), + 1: uint16(30570), + 2: uint16(30572), + 3: uint16(30556), + 4: uint16(30565), + 5: uint16(30568), + 6: uint16(30562), + 7: uint16(30702), + 8: uint16(30862), + 9: uint16(30896), + 10: uint16(30871), + 11: uint16(30872), + 12: uint16(30860), + 13: uint16(30857), + 14: uint16(30844), + 15: uint16(30865), + 16: uint16(30867), + 17: uint16(30847), + 18: uint16(31098), + 19: uint16(31103), + 20: uint16(31105), + 21: uint16(33836), + 22: uint16(31165), + 23: uint16(31260), + 24: uint16(31258), + 25: uint16(31264), + 26: uint16(31252), + 27: uint16(31263), + 28: uint16(31262), + 29: uint16(31391), + 30: uint16(31392), + 31: uint16(31607), + 32: uint16(31680), + 33: uint16(31584), + 34: uint16(31598), + 35: uint16(31591), + 36: uint16(31921), + 37: uint16(31923), + 38: uint16(31925), + 39: uint16(32147), + 40: uint16(32121), + 41: uint16(32145), + 42: uint16(32129), + 43: uint16(32143), + 44: uint16(32091), + 45: uint16(32622), + 46: uint16(32617), + 47: uint16(32618), + 48: uint16(32626), + 49: uint16(32681), + 50: uint16(32680), + 51: uint16(32676), + 52: uint16(32854), + 53: uint16(32856), + 54: uint16(32902), + 55: uint16(32900), + 56: uint16(33137), + 57: uint16(33136), + 58: uint16(33144), + 59: uint16(33125), + 60: uint16(33134), + 61: uint16(33139), + 62: uint16(33131), + 63: uint16(33145), + 64: uint16(33146), + 65: uint16(33126), + 66: uint16(33285), + 67: uint16(33351), + 68: uint16(33922), + 69: uint16(33911), + 70: uint16(33853), + 71: uint16(33841), + 72: uint16(33909), + 73: uint16(33894), + 74: uint16(33899), + 75: uint16(33865), + 76: uint16(33900), + 77: uint16(33883), + 78: uint16(33852), + 79: uint16(33845), + 80: uint16(33889), + 81: uint16(33891), + 82: uint16(33897), + 83: uint16(33901), + 84: uint16(33862), + 85: uint16(34398), + 86: uint16(34396), + 87: uint16(34399), + 88: uint16(34553), + 89: uint16(34579), + 90: uint16(34568), + 91: uint16(34567), + 92: uint16(34560), + 93: uint16(34558), + 94: uint16(34555), + 95: uint16(34562), + 96: uint16(34563), + 97: uint16(34566), + 98: uint16(34570), + 99: uint16(34905), + 100: uint16(35039), + 101: uint16(35028), + 102: uint16(35033), + 103: uint16(35036), + 104: uint16(35032), + 105: uint16(35037), + 106: uint16(35041), + 107: uint16(35018), + 108: uint16(35029), + 109: uint16(35026), + 110: uint16(35228), + 111: uint16(35299), + 112: uint16(35435), + 113: uint16(35442), + 114: uint16(35443), + 115: uint16(35430), + 116: uint16(35433), + 117: uint16(35440), + 118: uint16(35463), + 119: uint16(35452), + 120: uint16(35427), + 121: uint16(35488), + 122: uint16(35441), + 123: uint16(35461), + 124: uint16(35437), + 125: uint16(35426), + 126: uint16(35438), + 127: uint16(35436), + 128: uint16(35449), + 129: uint16(35451), + 130: uint16(35390), + 131: uint16(35432), + 132: uint16(35938), + 133: uint16(35978), + 134: uint16(35977), + 135: uint16(36042), + 136: uint16(36039), + 137: uint16(36040), + 138: uint16(36036), + 139: uint16(36018), + 140: uint16(36035), + 141: uint16(36034), + 142: uint16(36037), + 143: uint16(36321), + 144: uint16(36319), + 145: uint16(36328), + 146: uint16(36335), + 147: uint16(36339), + 148: uint16(36346), + 149: uint16(36330), + 150: uint16(36324), + 151: uint16(36326), + 152: uint16(36530), + 153: uint16(36611), + 154: uint16(36617), + 155: uint16(36606), + 156: uint16(36618), + }, + 24: { + 0: uint16(36767), + 1: uint16(36786), + 2: uint16(36939), + 3: uint16(36938), + 4: uint16(36947), + 5: uint16(36930), + 6: uint16(36948), + 7: uint16(36924), + 8: uint16(36949), + 9: uint16(36944), + 10: uint16(36935), + 11: uint16(36943), + 12: uint16(36942), + 13: uint16(36941), + 14: uint16(36945), + 15: uint16(36926), + 16: uint16(36929), + 17: uint16(37138), + 18: uint16(37143), + 19: uint16(37228), + 20: uint16(37226), + 21: uint16(37225), + 22: uint16(37321), + 23: uint16(37431), + 24: uint16(37463), + 25: uint16(37432), + 26: uint16(37437), + 27: uint16(37440), + 28: uint16(37438), + 29: uint16(37467), + 30: uint16(37451), + 31: uint16(37476), + 32: uint16(37457), + 33: uint16(37428), + 34: uint16(37449), + 35: uint16(37453), + 36: uint16(37445), + 37: uint16(37433), + 38: uint16(37439), + 39: uint16(37466), + 40: uint16(38296), + 41: uint16(38552), + 42: uint16(38548), + 43: uint16(38549), + 44: uint16(38605), + 45: uint16(38603), + 46: uint16(38601), + 47: uint16(38602), + 48: uint16(38647), + 49: uint16(38651), + 50: uint16(38649), + 51: uint16(38646), + 52: uint16(38742), + 53: uint16(38772), + 54: uint16(38774), + 55: uint16(38928), + 56: uint16(38929), + 57: uint16(38931), + 58: uint16(38922), + 59: uint16(38930), + 60: uint16(38924), + 61: uint16(39164), + 62: uint16(39156), + 63: uint16(39165), + 64: uint16(39166), + 65: uint16(39347), + 66: uint16(39345), + 67: uint16(39348), + 68: uint16(39649), + 69: uint16(40169), + 70: uint16(40578), + 71: uint16(40718), + 72: uint16(40723), + 73: uint16(40736), + 74: uint16(20711), + 75: uint16(20718), + 76: uint16(20709), + 77: uint16(20694), + 78: uint16(20717), + 79: uint16(20698), + 80: uint16(20693), + 81: uint16(20687), + 82: uint16(20689), + 83: uint16(20721), + 84: uint16(20686), + 85: uint16(20713), + 86: uint16(20834), + 87: uint16(20979), + 88: uint16(21123), + 89: uint16(21122), + 90: uint16(21297), + 91: uint16(21421), + 92: uint16(22014), + 93: uint16(22016), + 94: uint16(22043), + 95: uint16(22039), + 96: uint16(22013), + 97: uint16(22036), + 98: uint16(22022), + 99: uint16(22025), + 100: uint16(22029), + 101: uint16(22030), + 102: uint16(22007), + 103: uint16(22038), + 104: uint16(22047), + 105: uint16(22024), + 106: uint16(22032), + 107: uint16(22006), + 108: uint16(22296), + 109: uint16(22294), + 110: uint16(22645), + 111: uint16(22654), + 112: uint16(22659), + 113: uint16(22675), + 114: uint16(22666), + 115: uint16(22649), + 116: uint16(22661), + 117: uint16(22653), + 118: uint16(22781), + 119: uint16(22821), + 120: uint16(22818), + 121: uint16(22820), + 122: uint16(22890), + 123: uint16(22889), + 124: uint16(23265), + 125: uint16(23270), + 126: uint16(23273), + 127: uint16(23255), + 128: uint16(23254), + 129: uint16(23256), + 130: uint16(23267), + 131: uint16(23413), + 132: uint16(23518), + 133: uint16(23527), + 134: uint16(23521), + 135: uint16(23525), + 136: uint16(23526), + 137: uint16(23528), + 138: uint16(23522), + 139: uint16(23524), + 140: uint16(23519), + 141: uint16(23565), + 142: uint16(23650), + 143: uint16(23940), + 144: uint16(23943), + 145: uint16(24155), + 146: uint16(24163), + 147: uint16(24149), + 148: uint16(24151), + 149: uint16(24148), + 150: uint16(24275), + 151: uint16(24278), + 152: uint16(24330), + 153: uint16(24390), + 154: uint16(24432), + 155: uint16(24505), + 156: uint16(24903), + }, + 25: { + 0: uint16(24895), + 1: uint16(24907), + 2: uint16(24951), + 3: uint16(24930), + 4: uint16(24931), + 5: uint16(24927), + 6: uint16(24922), + 7: uint16(24920), + 8: uint16(24949), + 9: uint16(25130), + 10: uint16(25735), + 11: uint16(25688), + 12: uint16(25684), + 13: uint16(25764), + 14: uint16(25720), + 15: uint16(25695), + 16: uint16(25722), + 17: uint16(25681), + 18: uint16(25703), + 19: uint16(25652), + 20: uint16(25709), + 21: uint16(25723), + 22: uint16(25970), + 23: uint16(26017), + 24: uint16(26071), + 25: uint16(26070), + 26: uint16(26274), + 27: uint16(26280), + 28: uint16(26269), + 29: uint16(27036), + 30: uint16(27048), + 31: uint16(27029), + 32: uint16(27073), + 33: uint16(27054), + 34: uint16(27091), + 35: uint16(27083), + 36: uint16(27035), + 37: uint16(27063), + 38: uint16(27067), + 39: uint16(27051), + 40: uint16(27060), + 41: uint16(27088), + 42: uint16(27085), + 43: uint16(27053), + 44: uint16(27084), + 45: uint16(27046), + 46: uint16(27075), + 47: uint16(27043), + 48: uint16(27465), + 49: uint16(27468), + 50: uint16(27699), + 51: uint16(28467), + 52: uint16(28436), + 53: uint16(28414), + 54: uint16(28435), + 55: uint16(28404), + 56: uint16(28457), + 57: uint16(28478), + 58: uint16(28448), + 59: uint16(28460), + 60: uint16(28431), + 61: uint16(28418), + 62: uint16(28450), + 63: uint16(28415), + 64: uint16(28399), + 65: uint16(28422), + 66: uint16(28465), + 67: uint16(28472), + 68: uint16(28466), + 69: uint16(28451), + 70: uint16(28437), + 71: uint16(28459), + 72: uint16(28463), + 73: uint16(28552), + 74: uint16(28458), + 75: uint16(28396), + 76: uint16(28417), + 77: uint16(28402), + 78: uint16(28364), + 79: uint16(28407), + 80: uint16(29076), + 81: uint16(29081), + 82: uint16(29053), + 83: uint16(29066), + 84: uint16(29060), + 85: uint16(29074), + 86: uint16(29246), + 87: uint16(29330), + 88: uint16(29334), + 89: uint16(29508), + 90: uint16(29520), + 91: uint16(29796), + 92: uint16(29795), + 93: uint16(29802), + 94: uint16(29808), + 95: uint16(29805), + 96: uint16(29956), + 97: uint16(30097), + 98: uint16(30247), + 99: uint16(30221), + 100: uint16(30219), + 101: uint16(30217), + 102: uint16(30227), + 103: uint16(30433), + 104: uint16(30435), + 105: uint16(30596), + 106: uint16(30589), + 107: uint16(30591), + 108: uint16(30561), + 109: uint16(30913), + 110: uint16(30879), + 111: uint16(30887), + 112: uint16(30899), + 113: uint16(30889), + 114: uint16(30883), + 115: uint16(31118), + 116: uint16(31119), + 117: uint16(31117), + 118: uint16(31278), + 119: uint16(31281), + 120: uint16(31402), + 121: uint16(31401), + 122: uint16(31469), + 123: uint16(31471), + 124: uint16(31649), + 125: uint16(31637), + 126: uint16(31627), + 127: uint16(31605), + 128: uint16(31639), + 129: uint16(31645), + 130: uint16(31636), + 131: uint16(31631), + 132: uint16(31672), + 133: uint16(31623), + 134: uint16(31620), + 135: uint16(31929), + 136: uint16(31933), + 137: uint16(31934), + 138: uint16(32187), + 139: uint16(32176), + 140: uint16(32156), + 141: uint16(32189), + 142: uint16(32190), + 143: uint16(32160), + 144: uint16(32202), + 145: uint16(32180), + 146: uint16(32178), + 147: uint16(32177), + 148: uint16(32186), + 149: uint16(32162), + 150: uint16(32191), + 151: uint16(32181), + 152: uint16(32184), + 153: uint16(32173), + 154: uint16(32210), + 155: uint16(32199), + 156: uint16(32172), + }, + 26: { + 0: uint16(32624), + 1: uint16(32736), + 2: uint16(32737), + 3: uint16(32735), + 4: uint16(32862), + 5: uint16(32858), + 6: uint16(32903), + 7: uint16(33104), + 8: uint16(33152), + 9: uint16(33167), + 10: uint16(33160), + 11: uint16(33162), + 12: uint16(33151), + 13: uint16(33154), + 14: uint16(33255), + 15: uint16(33274), + 16: uint16(33287), + 17: uint16(33300), + 18: uint16(33310), + 19: uint16(33355), + 20: uint16(33993), + 21: uint16(33983), + 22: uint16(33990), + 23: uint16(33988), + 24: uint16(33945), + 25: uint16(33950), + 26: uint16(33970), + 27: uint16(33948), + 28: uint16(33995), + 29: uint16(33976), + 30: uint16(33984), + 31: uint16(34003), + 32: uint16(33936), + 33: uint16(33980), + 34: uint16(34001), + 35: uint16(33994), + 36: uint16(34623), + 37: uint16(34588), + 38: uint16(34619), + 39: uint16(34594), + 40: uint16(34597), + 41: uint16(34612), + 42: uint16(34584), + 43: uint16(34645), + 44: uint16(34615), + 45: uint16(34601), + 46: uint16(35059), + 47: uint16(35074), + 48: uint16(35060), + 49: uint16(35065), + 50: uint16(35064), + 51: uint16(35069), + 52: uint16(35048), + 53: uint16(35098), + 54: uint16(35055), + 55: uint16(35494), + 56: uint16(35468), + 57: uint16(35486), + 58: uint16(35491), + 59: uint16(35469), + 60: uint16(35489), + 61: uint16(35475), + 62: uint16(35492), + 63: uint16(35498), + 64: uint16(35493), + 65: uint16(35496), + 66: uint16(35480), + 67: uint16(35473), + 68: uint16(35482), + 69: uint16(35495), + 70: uint16(35946), + 71: uint16(35981), + 72: uint16(35980), + 73: uint16(36051), + 74: uint16(36049), + 75: uint16(36050), + 76: uint16(36203), + 77: uint16(36249), + 78: uint16(36245), + 79: uint16(36348), + 80: uint16(36628), + 81: uint16(36626), + 82: uint16(36629), + 83: uint16(36627), + 84: uint16(36771), + 85: uint16(36960), + 86: uint16(36952), + 87: uint16(36956), + 88: uint16(36963), + 89: uint16(36953), + 90: uint16(36958), + 91: uint16(36962), + 92: uint16(36957), + 93: uint16(36955), + 94: uint16(37145), + 95: uint16(37144), + 96: uint16(37150), + 97: uint16(37237), + 98: uint16(37240), + 99: uint16(37239), + 100: uint16(37236), + 101: uint16(37496), + 102: uint16(37504), + 103: uint16(37509), + 104: uint16(37528), + 105: uint16(37526), + 106: uint16(37499), + 107: uint16(37523), + 108: uint16(37532), + 109: uint16(37544), + 110: uint16(37500), + 111: uint16(37521), + 112: uint16(38305), + 113: uint16(38312), + 114: uint16(38313), + 115: uint16(38307), + 116: uint16(38309), + 117: uint16(38308), + 118: uint16(38553), + 119: uint16(38556), + 120: uint16(38555), + 121: uint16(38604), + 122: uint16(38610), + 123: uint16(38656), + 124: uint16(38780), + 125: uint16(38789), + 126: uint16(38902), + 127: uint16(38935), + 128: uint16(38936), + 129: uint16(39087), + 130: uint16(39089), + 131: uint16(39171), + 132: uint16(39173), + 133: uint16(39180), + 134: uint16(39177), + 135: uint16(39361), + 136: uint16(39599), + 137: uint16(39600), + 138: uint16(39654), + 139: uint16(39745), + 140: uint16(39746), + 141: uint16(40180), + 142: uint16(40182), + 143: uint16(40179), + 144: uint16(40636), + 145: uint16(40763), + 146: uint16(40778), + 147: uint16(20740), + 148: uint16(20736), + 149: uint16(20731), + 150: uint16(20725), + 151: uint16(20729), + 152: uint16(20738), + 153: uint16(20744), + 154: uint16(20745), + 155: uint16(20741), + 156: uint16(20956), + }, + 27: { + 0: uint16(21127), + 1: uint16(21128), + 2: uint16(21129), + 3: uint16(21133), + 4: uint16(21130), + 5: uint16(21232), + 6: uint16(21426), + 7: uint16(22062), + 8: uint16(22075), + 9: uint16(22073), + 10: uint16(22066), + 11: uint16(22079), + 12: uint16(22068), + 13: uint16(22057), + 14: uint16(22099), + 15: uint16(22094), + 16: uint16(22103), + 17: uint16(22132), + 18: uint16(22070), + 19: uint16(22063), + 20: uint16(22064), + 21: uint16(22656), + 22: uint16(22687), + 23: uint16(22686), + 24: uint16(22707), + 25: uint16(22684), + 26: uint16(22702), + 27: uint16(22697), + 28: uint16(22694), + 29: uint16(22893), + 30: uint16(23305), + 31: uint16(23291), + 32: uint16(23307), + 33: uint16(23285), + 34: uint16(23308), + 35: uint16(23304), + 36: uint16(23534), + 37: uint16(23532), + 38: uint16(23529), + 39: uint16(23531), + 40: uint16(23652), + 41: uint16(23653), + 42: uint16(23965), + 43: uint16(23956), + 44: uint16(24162), + 45: uint16(24159), + 46: uint16(24161), + 47: uint16(24290), + 48: uint16(24282), + 49: uint16(24287), + 50: uint16(24285), + 51: uint16(24291), + 52: uint16(24288), + 53: uint16(24392), + 54: uint16(24433), + 55: uint16(24503), + 56: uint16(24501), + 57: uint16(24950), + 58: uint16(24935), + 59: uint16(24942), + 60: uint16(24925), + 61: uint16(24917), + 62: uint16(24962), + 63: uint16(24956), + 64: uint16(24944), + 65: uint16(24939), + 66: uint16(24958), + 67: uint16(24999), + 68: uint16(24976), + 69: uint16(25003), + 70: uint16(24974), + 71: uint16(25004), + 72: uint16(24986), + 73: uint16(24996), + 74: uint16(24980), + 75: uint16(25006), + 76: uint16(25134), + 77: uint16(25705), + 78: uint16(25711), + 79: uint16(25721), + 80: uint16(25758), + 81: uint16(25778), + 82: uint16(25736), + 83: uint16(25744), + 84: uint16(25776), + 85: uint16(25765), + 86: uint16(25747), + 87: uint16(25749), + 88: uint16(25769), + 89: uint16(25746), + 90: uint16(25774), + 91: uint16(25773), + 92: uint16(25771), + 93: uint16(25754), + 94: uint16(25772), + 95: uint16(25753), + 96: uint16(25762), + 97: uint16(25779), + 98: uint16(25973), + 99: uint16(25975), + 100: uint16(25976), + 101: uint16(26286), + 102: uint16(26283), + 103: uint16(26292), + 104: uint16(26289), + 105: uint16(27171), + 106: uint16(27167), + 107: uint16(27112), + 108: uint16(27137), + 109: uint16(27166), + 110: uint16(27161), + 111: uint16(27133), + 112: uint16(27169), + 113: uint16(27155), + 114: uint16(27146), + 115: uint16(27123), + 116: uint16(27138), + 117: uint16(27141), + 118: uint16(27117), + 119: uint16(27153), + 120: uint16(27472), + 121: uint16(27470), + 122: uint16(27556), + 123: uint16(27589), + 124: uint16(27590), + 125: uint16(28479), + 126: uint16(28540), + 127: uint16(28548), + 128: uint16(28497), + 129: uint16(28518), + 130: uint16(28500), + 131: uint16(28550), + 132: uint16(28525), + 133: uint16(28507), + 134: uint16(28536), + 135: uint16(28526), + 136: uint16(28558), + 137: uint16(28538), + 138: uint16(28528), + 139: uint16(28516), + 140: uint16(28567), + 141: uint16(28504), + 142: uint16(28373), + 143: uint16(28527), + 144: uint16(28512), + 145: uint16(28511), + 146: uint16(29087), + 147: uint16(29100), + 148: uint16(29105), + 149: uint16(29096), + 150: uint16(29270), + 151: uint16(29339), + 152: uint16(29518), + 153: uint16(29527), + 154: uint16(29801), + 155: uint16(29835), + 156: uint16(29827), + }, + 28: { + 0: uint16(29822), + 1: uint16(29824), + 2: uint16(30079), + 3: uint16(30240), + 4: uint16(30249), + 5: uint16(30239), + 6: uint16(30244), + 7: uint16(30246), + 8: uint16(30241), + 9: uint16(30242), + 10: uint16(30362), + 11: uint16(30394), + 12: uint16(30436), + 13: uint16(30606), + 14: uint16(30599), + 15: uint16(30604), + 16: uint16(30609), + 17: uint16(30603), + 18: uint16(30923), + 19: uint16(30917), + 20: uint16(30906), + 21: uint16(30922), + 22: uint16(30910), + 23: uint16(30933), + 24: uint16(30908), + 25: uint16(30928), + 26: uint16(31295), + 27: uint16(31292), + 28: uint16(31296), + 29: uint16(31293), + 30: uint16(31287), + 31: uint16(31291), + 32: uint16(31407), + 33: uint16(31406), + 34: uint16(31661), + 35: uint16(31665), + 36: uint16(31684), + 37: uint16(31668), + 38: uint16(31686), + 39: uint16(31687), + 40: uint16(31681), + 41: uint16(31648), + 42: uint16(31692), + 43: uint16(31946), + 44: uint16(32224), + 45: uint16(32244), + 46: uint16(32239), + 47: uint16(32251), + 48: uint16(32216), + 49: uint16(32236), + 50: uint16(32221), + 51: uint16(32232), + 52: uint16(32227), + 53: uint16(32218), + 54: uint16(32222), + 55: uint16(32233), + 56: uint16(32158), + 57: uint16(32217), + 58: uint16(32242), + 59: uint16(32249), + 60: uint16(32629), + 61: uint16(32631), + 62: uint16(32687), + 63: uint16(32745), + 64: uint16(32806), + 65: uint16(33179), + 66: uint16(33180), + 67: uint16(33181), + 68: uint16(33184), + 69: uint16(33178), + 70: uint16(33176), + 71: uint16(34071), + 72: uint16(34109), + 73: uint16(34074), + 74: uint16(34030), + 75: uint16(34092), + 76: uint16(34093), + 77: uint16(34067), + 78: uint16(34065), + 79: uint16(34083), + 80: uint16(34081), + 81: uint16(34068), + 82: uint16(34028), + 83: uint16(34085), + 84: uint16(34047), + 85: uint16(34054), + 86: uint16(34690), + 87: uint16(34676), + 88: uint16(34678), + 89: uint16(34656), + 90: uint16(34662), + 91: uint16(34680), + 92: uint16(34664), + 93: uint16(34649), + 94: uint16(34647), + 95: uint16(34636), + 96: uint16(34643), + 97: uint16(34907), + 98: uint16(34909), + 99: uint16(35088), + 100: uint16(35079), + 101: uint16(35090), + 102: uint16(35091), + 103: uint16(35093), + 104: uint16(35082), + 105: uint16(35516), + 106: uint16(35538), + 107: uint16(35527), + 108: uint16(35524), + 109: uint16(35477), + 110: uint16(35531), + 111: uint16(35576), + 112: uint16(35506), + 113: uint16(35529), + 114: uint16(35522), + 115: uint16(35519), + 116: uint16(35504), + 117: uint16(35542), + 118: uint16(35533), + 119: uint16(35510), + 120: uint16(35513), + 121: uint16(35547), + 122: uint16(35916), + 123: uint16(35918), + 124: uint16(35948), + 125: uint16(36064), + 126: uint16(36062), + 127: uint16(36070), + 128: uint16(36068), + 129: uint16(36076), + 130: uint16(36077), + 131: uint16(36066), + 132: uint16(36067), + 133: uint16(36060), + 134: uint16(36074), + 135: uint16(36065), + 136: uint16(36205), + 137: uint16(36255), + 138: uint16(36259), + 139: uint16(36395), + 140: uint16(36368), + 141: uint16(36381), + 142: uint16(36386), + 143: uint16(36367), + 144: uint16(36393), + 145: uint16(36383), + 146: uint16(36385), + 147: uint16(36382), + 148: uint16(36538), + 149: uint16(36637), + 150: uint16(36635), + 151: uint16(36639), + 152: uint16(36649), + 153: uint16(36646), + 154: uint16(36650), + 155: uint16(36636), + 156: uint16(36638), + }, + 29: { + 0: uint16(36645), + 1: uint16(36969), + 2: uint16(36974), + 3: uint16(36968), + 4: uint16(36973), + 5: uint16(36983), + 6: uint16(37168), + 7: uint16(37165), + 8: uint16(37159), + 9: uint16(37169), + 10: uint16(37255), + 11: uint16(37257), + 12: uint16(37259), + 13: uint16(37251), + 14: uint16(37573), + 15: uint16(37563), + 16: uint16(37559), + 17: uint16(37610), + 18: uint16(37548), + 19: uint16(37604), + 20: uint16(37569), + 21: uint16(37555), + 22: uint16(37564), + 23: uint16(37586), + 24: uint16(37575), + 25: uint16(37616), + 26: uint16(37554), + 27: uint16(38317), + 28: uint16(38321), + 29: uint16(38660), + 30: uint16(38662), + 31: uint16(38663), + 32: uint16(38665), + 33: uint16(38752), + 34: uint16(38797), + 35: uint16(38795), + 36: uint16(38799), + 37: uint16(38945), + 38: uint16(38955), + 39: uint16(38940), + 40: uint16(39091), + 41: uint16(39178), + 42: uint16(39187), + 43: uint16(39186), + 44: uint16(39192), + 45: uint16(39389), + 46: uint16(39376), + 47: uint16(39391), + 48: uint16(39387), + 49: uint16(39377), + 50: uint16(39381), + 51: uint16(39378), + 52: uint16(39385), + 53: uint16(39607), + 54: uint16(39662), + 55: uint16(39663), + 56: uint16(39719), + 57: uint16(39749), + 58: uint16(39748), + 59: uint16(39799), + 60: uint16(39791), + 61: uint16(40198), + 62: uint16(40201), + 63: uint16(40195), + 64: uint16(40617), + 65: uint16(40638), + 66: uint16(40654), + 67: uint16(22696), + 68: uint16(40786), + 69: uint16(20754), + 70: uint16(20760), + 71: uint16(20756), + 72: uint16(20752), + 73: uint16(20757), + 74: uint16(20864), + 75: uint16(20906), + 76: uint16(20957), + 77: uint16(21137), + 78: uint16(21139), + 79: uint16(21235), + 80: uint16(22105), + 81: uint16(22123), + 82: uint16(22137), + 83: uint16(22121), + 84: uint16(22116), + 85: uint16(22136), + 86: uint16(22122), + 87: uint16(22120), + 88: uint16(22117), + 89: uint16(22129), + 90: uint16(22127), + 91: uint16(22124), + 92: uint16(22114), + 93: uint16(22134), + 94: uint16(22721), + 95: uint16(22718), + 96: uint16(22727), + 97: uint16(22725), + 98: uint16(22894), + 99: uint16(23325), + 100: uint16(23348), + 101: uint16(23416), + 102: uint16(23536), + 103: uint16(23566), + 104: uint16(24394), + 105: uint16(25010), + 106: uint16(24977), + 107: uint16(25001), + 108: uint16(24970), + 109: uint16(25037), + 110: uint16(25014), + 111: uint16(25022), + 112: uint16(25034), + 113: uint16(25032), + 114: uint16(25136), + 115: uint16(25797), + 116: uint16(25793), + 117: uint16(25803), + 118: uint16(25787), + 119: uint16(25788), + 120: uint16(25818), + 121: uint16(25796), + 122: uint16(25799), + 123: uint16(25794), + 124: uint16(25805), + 125: uint16(25791), + 126: uint16(25810), + 127: uint16(25812), + 128: uint16(25790), + 129: uint16(25972), + 130: uint16(26310), + 131: uint16(26313), + 132: uint16(26297), + 133: uint16(26308), + 134: uint16(26311), + 135: uint16(26296), + 136: uint16(27197), + 137: uint16(27192), + 138: uint16(27194), + 139: uint16(27225), + 140: uint16(27243), + 141: uint16(27224), + 142: uint16(27193), + 143: uint16(27204), + 144: uint16(27234), + 145: uint16(27233), + 146: uint16(27211), + 147: uint16(27207), + 148: uint16(27189), + 149: uint16(27231), + 150: uint16(27208), + 151: uint16(27481), + 152: uint16(27511), + 153: uint16(27653), + 154: uint16(28610), + 155: uint16(28593), + 156: uint16(28577), + }, + 30: { + 0: uint16(28611), + 1: uint16(28580), + 2: uint16(28609), + 3: uint16(28583), + 4: uint16(28595), + 5: uint16(28608), + 6: uint16(28601), + 7: uint16(28598), + 8: uint16(28582), + 9: uint16(28576), + 10: uint16(28596), + 11: uint16(29118), + 12: uint16(29129), + 13: uint16(29136), + 14: uint16(29138), + 15: uint16(29128), + 16: uint16(29141), + 17: uint16(29113), + 18: uint16(29134), + 19: uint16(29145), + 20: uint16(29148), + 21: uint16(29123), + 22: uint16(29124), + 23: uint16(29544), + 24: uint16(29852), + 25: uint16(29859), + 26: uint16(29848), + 27: uint16(29855), + 28: uint16(29854), + 29: uint16(29922), + 30: uint16(29964), + 31: uint16(29965), + 32: uint16(30260), + 33: uint16(30264), + 34: uint16(30266), + 35: uint16(30439), + 36: uint16(30437), + 37: uint16(30624), + 38: uint16(30622), + 39: uint16(30623), + 40: uint16(30629), + 41: uint16(30952), + 42: uint16(30938), + 43: uint16(30956), + 44: uint16(30951), + 45: uint16(31142), + 46: uint16(31309), + 47: uint16(31310), + 48: uint16(31302), + 49: uint16(31308), + 50: uint16(31307), + 51: uint16(31418), + 52: uint16(31705), + 53: uint16(31761), + 54: uint16(31689), + 55: uint16(31716), + 56: uint16(31707), + 57: uint16(31713), + 58: uint16(31721), + 59: uint16(31718), + 60: uint16(31957), + 61: uint16(31958), + 62: uint16(32266), + 63: uint16(32273), + 64: uint16(32264), + 65: uint16(32283), + 66: uint16(32291), + 67: uint16(32286), + 68: uint16(32285), + 69: uint16(32265), + 70: uint16(32272), + 71: uint16(32633), + 72: uint16(32690), + 73: uint16(32752), + 74: uint16(32753), + 75: uint16(32750), + 76: uint16(32808), + 77: uint16(33203), + 78: uint16(33193), + 79: uint16(33192), + 80: uint16(33275), + 81: uint16(33288), + 82: uint16(33368), + 83: uint16(33369), + 84: uint16(34122), + 85: uint16(34137), + 86: uint16(34120), + 87: uint16(34152), + 88: uint16(34153), + 89: uint16(34115), + 90: uint16(34121), + 91: uint16(34157), + 92: uint16(34154), + 93: uint16(34142), + 94: uint16(34691), + 95: uint16(34719), + 96: uint16(34718), + 97: uint16(34722), + 98: uint16(34701), + 99: uint16(34913), + 100: uint16(35114), + 101: uint16(35122), + 102: uint16(35109), + 103: uint16(35115), + 104: uint16(35105), + 105: uint16(35242), + 106: uint16(35238), + 107: uint16(35558), + 108: uint16(35578), + 109: uint16(35563), + 110: uint16(35569), + 111: uint16(35584), + 112: uint16(35548), + 113: uint16(35559), + 114: uint16(35566), + 115: uint16(35582), + 116: uint16(35585), + 117: uint16(35586), + 118: uint16(35575), + 119: uint16(35565), + 120: uint16(35571), + 121: uint16(35574), + 122: uint16(35580), + 123: uint16(35947), + 124: uint16(35949), + 125: uint16(35987), + 126: uint16(36084), + 127: uint16(36420), + 128: uint16(36401), + 129: uint16(36404), + 130: uint16(36418), + 131: uint16(36409), + 132: uint16(36405), + 133: uint16(36667), + 134: uint16(36655), + 135: uint16(36664), + 136: uint16(36659), + 137: uint16(36776), + 138: uint16(36774), + 139: uint16(36981), + 140: uint16(36980), + 141: uint16(36984), + 142: uint16(36978), + 143: uint16(36988), + 144: uint16(36986), + 145: uint16(37172), + 146: uint16(37266), + 147: uint16(37664), + 148: uint16(37686), + 149: uint16(37624), + 150: uint16(37683), + 151: uint16(37679), + 152: uint16(37666), + 153: uint16(37628), + 154: uint16(37675), + 155: uint16(37636), + 156: uint16(37658), + }, + 31: { + 0: uint16(37648), + 1: uint16(37670), + 2: uint16(37665), + 3: uint16(37653), + 4: uint16(37678), + 5: uint16(37657), + 6: uint16(38331), + 7: uint16(38567), + 8: uint16(38568), + 9: uint16(38570), + 10: uint16(38613), + 11: uint16(38670), + 12: uint16(38673), + 13: uint16(38678), + 14: uint16(38669), + 15: uint16(38675), + 16: uint16(38671), + 17: uint16(38747), + 18: uint16(38748), + 19: uint16(38758), + 20: uint16(38808), + 21: uint16(38960), + 22: uint16(38968), + 23: uint16(38971), + 24: uint16(38967), + 25: uint16(38957), + 26: uint16(38969), + 27: uint16(38948), + 28: uint16(39184), + 29: uint16(39208), + 30: uint16(39198), + 31: uint16(39195), + 32: uint16(39201), + 33: uint16(39194), + 34: uint16(39405), + 35: uint16(39394), + 36: uint16(39409), + 37: uint16(39608), + 38: uint16(39612), + 39: uint16(39675), + 40: uint16(39661), + 41: uint16(39720), + 42: uint16(39825), + 43: uint16(40213), + 44: uint16(40227), + 45: uint16(40230), + 46: uint16(40232), + 47: uint16(40210), + 48: uint16(40219), + 49: uint16(40664), + 50: uint16(40660), + 51: uint16(40845), + 52: uint16(40860), + 53: uint16(20778), + 54: uint16(20767), + 55: uint16(20769), + 56: uint16(20786), + 57: uint16(21237), + 58: uint16(22158), + 59: uint16(22144), + 60: uint16(22160), + 61: uint16(22149), + 62: uint16(22151), + 63: uint16(22159), + 64: uint16(22741), + 65: uint16(22739), + 66: uint16(22737), + 67: uint16(22734), + 68: uint16(23344), + 69: uint16(23338), + 70: uint16(23332), + 71: uint16(23418), + 72: uint16(23607), + 73: uint16(23656), + 74: uint16(23996), + 75: uint16(23994), + 76: uint16(23997), + 77: uint16(23992), + 78: uint16(24171), + 79: uint16(24396), + 80: uint16(24509), + 81: uint16(25033), + 82: uint16(25026), + 83: uint16(25031), + 84: uint16(25062), + 85: uint16(25035), + 86: uint16(25138), + 87: uint16(25140), + 88: uint16(25806), + 89: uint16(25802), + 90: uint16(25816), + 91: uint16(25824), + 92: uint16(25840), + 93: uint16(25830), + 94: uint16(25836), + 95: uint16(25841), + 96: uint16(25826), + 97: uint16(25837), + 98: uint16(25986), + 99: uint16(25987), + 100: uint16(26329), + 101: uint16(26326), + 102: uint16(27264), + 103: uint16(27284), + 104: uint16(27268), + 105: uint16(27298), + 106: uint16(27292), + 107: uint16(27355), + 108: uint16(27299), + 109: uint16(27262), + 110: uint16(27287), + 111: uint16(27280), + 112: uint16(27296), + 113: uint16(27484), + 114: uint16(27566), + 115: uint16(27610), + 116: uint16(27656), + 117: uint16(28632), + 118: uint16(28657), + 119: uint16(28639), + 120: uint16(28640), + 121: uint16(28635), + 122: uint16(28644), + 123: uint16(28651), + 124: uint16(28655), + 125: uint16(28544), + 126: uint16(28652), + 127: uint16(28641), + 128: uint16(28649), + 129: uint16(28629), + 130: uint16(28654), + 131: uint16(28656), + 132: uint16(29159), + 133: uint16(29151), + 134: uint16(29166), + 135: uint16(29158), + 136: uint16(29157), + 137: uint16(29165), + 138: uint16(29164), + 139: uint16(29172), + 140: uint16(29152), + 141: uint16(29237), + 142: uint16(29254), + 143: uint16(29552), + 144: uint16(29554), + 145: uint16(29865), + 146: uint16(29872), + 147: uint16(29862), + 148: uint16(29864), + 149: uint16(30278), + 150: uint16(30274), + 151: uint16(30284), + 152: uint16(30442), + 153: uint16(30643), + 154: uint16(30634), + 155: uint16(30640), + 156: uint16(30636), + }, + 32: { + 0: uint16(30631), + 1: uint16(30637), + 2: uint16(30703), + 3: uint16(30967), + 4: uint16(30970), + 5: uint16(30964), + 6: uint16(30959), + 7: uint16(30977), + 8: uint16(31143), + 9: uint16(31146), + 10: uint16(31319), + 11: uint16(31423), + 12: uint16(31751), + 13: uint16(31757), + 14: uint16(31742), + 15: uint16(31735), + 16: uint16(31756), + 17: uint16(31712), + 18: uint16(31968), + 19: uint16(31964), + 20: uint16(31966), + 21: uint16(31970), + 22: uint16(31967), + 23: uint16(31961), + 24: uint16(31965), + 25: uint16(32302), + 26: uint16(32318), + 27: uint16(32326), + 28: uint16(32311), + 29: uint16(32306), + 30: uint16(32323), + 31: uint16(32299), + 32: uint16(32317), + 33: uint16(32305), + 34: uint16(32325), + 35: uint16(32321), + 36: uint16(32308), + 37: uint16(32313), + 38: uint16(32328), + 39: uint16(32309), + 40: uint16(32319), + 41: uint16(32303), + 42: uint16(32580), + 43: uint16(32755), + 44: uint16(32764), + 45: uint16(32881), + 46: uint16(32882), + 47: uint16(32880), + 48: uint16(32879), + 49: uint16(32883), + 50: uint16(33222), + 51: uint16(33219), + 52: uint16(33210), + 53: uint16(33218), + 54: uint16(33216), + 55: uint16(33215), + 56: uint16(33213), + 57: uint16(33225), + 58: uint16(33214), + 59: uint16(33256), + 60: uint16(33289), + 61: uint16(33393), + 62: uint16(34218), + 63: uint16(34180), + 64: uint16(34174), + 65: uint16(34204), + 66: uint16(34193), + 67: uint16(34196), + 68: uint16(34223), + 69: uint16(34203), + 70: uint16(34183), + 71: uint16(34216), + 72: uint16(34186), + 73: uint16(34407), + 74: uint16(34752), + 75: uint16(34769), + 76: uint16(34739), + 77: uint16(34770), + 78: uint16(34758), + 79: uint16(34731), + 80: uint16(34747), + 81: uint16(34746), + 82: uint16(34760), + 83: uint16(34763), + 84: uint16(35131), + 85: uint16(35126), + 86: uint16(35140), + 87: uint16(35128), + 88: uint16(35133), + 89: uint16(35244), + 90: uint16(35598), + 91: uint16(35607), + 92: uint16(35609), + 93: uint16(35611), + 94: uint16(35594), + 95: uint16(35616), + 96: uint16(35613), + 97: uint16(35588), + 98: uint16(35600), + 99: uint16(35905), + 100: uint16(35903), + 101: uint16(35955), + 102: uint16(36090), + 103: uint16(36093), + 104: uint16(36092), + 105: uint16(36088), + 106: uint16(36091), + 107: uint16(36264), + 108: uint16(36425), + 109: uint16(36427), + 110: uint16(36424), + 111: uint16(36426), + 112: uint16(36676), + 113: uint16(36670), + 114: uint16(36674), + 115: uint16(36677), + 116: uint16(36671), + 117: uint16(36991), + 118: uint16(36989), + 119: uint16(36996), + 120: uint16(36993), + 121: uint16(36994), + 122: uint16(36992), + 123: uint16(37177), + 124: uint16(37283), + 125: uint16(37278), + 126: uint16(37276), + 127: uint16(37709), + 128: uint16(37762), + 129: uint16(37672), + 130: uint16(37749), + 131: uint16(37706), + 132: uint16(37733), + 133: uint16(37707), + 134: uint16(37656), + 135: uint16(37758), + 136: uint16(37740), + 137: uint16(37723), + 138: uint16(37744), + 139: uint16(37722), + 140: uint16(37716), + 141: uint16(38346), + 142: uint16(38347), + 143: uint16(38348), + 144: uint16(38344), + 145: uint16(38342), + 146: uint16(38577), + 147: uint16(38584), + 148: uint16(38614), + 149: uint16(38684), + 150: uint16(38686), + 151: uint16(38816), + 152: uint16(38867), + 153: uint16(38982), + 154: uint16(39094), + 155: uint16(39221), + 156: uint16(39425), + }, + 33: { + 0: uint16(39423), + 1: uint16(39854), + 2: uint16(39851), + 3: uint16(39850), + 4: uint16(39853), + 5: uint16(40251), + 6: uint16(40255), + 7: uint16(40587), + 8: uint16(40655), + 9: uint16(40670), + 10: uint16(40668), + 11: uint16(40669), + 12: uint16(40667), + 13: uint16(40766), + 14: uint16(40779), + 15: uint16(21474), + 16: uint16(22165), + 17: uint16(22190), + 18: uint16(22745), + 19: uint16(22744), + 20: uint16(23352), + 21: uint16(24413), + 22: uint16(25059), + 23: uint16(25139), + 24: uint16(25844), + 25: uint16(25842), + 26: uint16(25854), + 27: uint16(25862), + 28: uint16(25850), + 29: uint16(25851), + 30: uint16(25847), + 31: uint16(26039), + 32: uint16(26332), + 33: uint16(26406), + 34: uint16(27315), + 35: uint16(27308), + 36: uint16(27331), + 37: uint16(27323), + 38: uint16(27320), + 39: uint16(27330), + 40: uint16(27310), + 41: uint16(27311), + 42: uint16(27487), + 43: uint16(27512), + 44: uint16(27567), + 45: uint16(28681), + 46: uint16(28683), + 47: uint16(28670), + 48: uint16(28678), + 49: uint16(28666), + 50: uint16(28689), + 51: uint16(28687), + 52: uint16(29179), + 53: uint16(29180), + 54: uint16(29182), + 55: uint16(29176), + 56: uint16(29559), + 57: uint16(29557), + 58: uint16(29863), + 59: uint16(29887), + 60: uint16(29973), + 61: uint16(30294), + 62: uint16(30296), + 63: uint16(30290), + 64: uint16(30653), + 65: uint16(30655), + 66: uint16(30651), + 67: uint16(30652), + 68: uint16(30990), + 69: uint16(31150), + 70: uint16(31329), + 71: uint16(31330), + 72: uint16(31328), + 73: uint16(31428), + 74: uint16(31429), + 75: uint16(31787), + 76: uint16(31783), + 77: uint16(31786), + 78: uint16(31774), + 79: uint16(31779), + 80: uint16(31777), + 81: uint16(31975), + 82: uint16(32340), + 83: uint16(32341), + 84: uint16(32350), + 85: uint16(32346), + 86: uint16(32353), + 87: uint16(32338), + 88: uint16(32345), + 89: uint16(32584), + 90: uint16(32761), + 91: uint16(32763), + 92: uint16(32887), + 93: uint16(32886), + 94: uint16(33229), + 95: uint16(33231), + 96: uint16(33290), + 97: uint16(34255), + 98: uint16(34217), + 99: uint16(34253), + 100: uint16(34256), + 101: uint16(34249), + 102: uint16(34224), + 103: uint16(34234), + 104: uint16(34233), + 105: uint16(34214), + 106: uint16(34799), + 107: uint16(34796), + 108: uint16(34802), + 109: uint16(34784), + 110: uint16(35206), + 111: uint16(35250), + 112: uint16(35316), + 113: uint16(35624), + 114: uint16(35641), + 115: uint16(35628), + 116: uint16(35627), + 117: uint16(35920), + 118: uint16(36101), + 119: uint16(36441), + 120: uint16(36451), + 121: uint16(36454), + 122: uint16(36452), + 123: uint16(36447), + 124: uint16(36437), + 125: uint16(36544), + 126: uint16(36681), + 127: uint16(36685), + 128: uint16(36999), + 129: uint16(36995), + 130: uint16(37000), + 131: uint16(37291), + 132: uint16(37292), + 133: uint16(37328), + 134: uint16(37780), + 135: uint16(37770), + 136: uint16(37782), + 137: uint16(37794), + 138: uint16(37811), + 139: uint16(37806), + 140: uint16(37804), + 141: uint16(37808), + 142: uint16(37784), + 143: uint16(37786), + 144: uint16(37783), + 145: uint16(38356), + 146: uint16(38358), + 147: uint16(38352), + 148: uint16(38357), + 149: uint16(38626), + 150: uint16(38620), + 151: uint16(38617), + 152: uint16(38619), + 153: uint16(38622), + 154: uint16(38692), + 155: uint16(38819), + 156: uint16(38822), + }, + 34: { + 0: uint16(38829), + 1: uint16(38905), + 2: uint16(38989), + 3: uint16(38991), + 4: uint16(38988), + 5: uint16(38990), + 6: uint16(38995), + 7: uint16(39098), + 8: uint16(39230), + 9: uint16(39231), + 10: uint16(39229), + 11: uint16(39214), + 12: uint16(39333), + 13: uint16(39438), + 14: uint16(39617), + 15: uint16(39683), + 16: uint16(39686), + 17: uint16(39759), + 18: uint16(39758), + 19: uint16(39757), + 20: uint16(39882), + 21: uint16(39881), + 22: uint16(39933), + 23: uint16(39880), + 24: uint16(39872), + 25: uint16(40273), + 26: uint16(40285), + 27: uint16(40288), + 28: uint16(40672), + 29: uint16(40725), + 30: uint16(40748), + 31: uint16(20787), + 32: uint16(22181), + 33: uint16(22750), + 34: uint16(22751), + 35: uint16(22754), + 36: uint16(23541), + 37: uint16(40848), + 38: uint16(24300), + 39: uint16(25074), + 40: uint16(25079), + 41: uint16(25078), + 42: uint16(25077), + 43: uint16(25856), + 44: uint16(25871), + 45: uint16(26336), + 46: uint16(26333), + 47: uint16(27365), + 48: uint16(27357), + 49: uint16(27354), + 50: uint16(27347), + 51: uint16(28699), + 52: uint16(28703), + 53: uint16(28712), + 54: uint16(28698), + 55: uint16(28701), + 56: uint16(28693), + 57: uint16(28696), + 58: uint16(29190), + 59: uint16(29197), + 60: uint16(29272), + 61: uint16(29346), + 62: uint16(29560), + 63: uint16(29562), + 64: uint16(29885), + 65: uint16(29898), + 66: uint16(29923), + 67: uint16(30087), + 68: uint16(30086), + 69: uint16(30303), + 70: uint16(30305), + 71: uint16(30663), + 72: uint16(31001), + 73: uint16(31153), + 74: uint16(31339), + 75: uint16(31337), + 76: uint16(31806), + 77: uint16(31807), + 78: uint16(31800), + 79: uint16(31805), + 80: uint16(31799), + 81: uint16(31808), + 82: uint16(32363), + 83: uint16(32365), + 84: uint16(32377), + 85: uint16(32361), + 86: uint16(32362), + 87: uint16(32645), + 88: uint16(32371), + 89: uint16(32694), + 90: uint16(32697), + 91: uint16(32696), + 92: uint16(33240), + 93: uint16(34281), + 94: uint16(34269), + 95: uint16(34282), + 96: uint16(34261), + 97: uint16(34276), + 98: uint16(34277), + 99: uint16(34295), + 100: uint16(34811), + 101: uint16(34821), + 102: uint16(34829), + 103: uint16(34809), + 104: uint16(34814), + 105: uint16(35168), + 106: uint16(35167), + 107: uint16(35158), + 108: uint16(35166), + 109: uint16(35649), + 110: uint16(35676), + 111: uint16(35672), + 112: uint16(35657), + 113: uint16(35674), + 114: uint16(35662), + 115: uint16(35663), + 116: uint16(35654), + 117: uint16(35673), + 118: uint16(36104), + 119: uint16(36106), + 120: uint16(36476), + 121: uint16(36466), + 122: uint16(36487), + 123: uint16(36470), + 124: uint16(36460), + 125: uint16(36474), + 126: uint16(36468), + 127: uint16(36692), + 128: uint16(36686), + 129: uint16(36781), + 130: uint16(37002), + 131: uint16(37003), + 132: uint16(37297), + 133: uint16(37294), + 134: uint16(37857), + 135: uint16(37841), + 136: uint16(37855), + 137: uint16(37827), + 138: uint16(37832), + 139: uint16(37852), + 140: uint16(37853), + 141: uint16(37846), + 142: uint16(37858), + 143: uint16(37837), + 144: uint16(37848), + 145: uint16(37860), + 146: uint16(37847), + 147: uint16(37864), + 148: uint16(38364), + 149: uint16(38580), + 150: uint16(38627), + 151: uint16(38698), + 152: uint16(38695), + 153: uint16(38753), + 154: uint16(38876), + 155: uint16(38907), + 156: uint16(39006), + }, + 35: { + 0: uint16(39000), + 1: uint16(39003), + 2: uint16(39100), + 3: uint16(39237), + 4: uint16(39241), + 5: uint16(39446), + 6: uint16(39449), + 7: uint16(39693), + 8: uint16(39912), + 9: uint16(39911), + 10: uint16(39894), + 11: uint16(39899), + 12: uint16(40329), + 13: uint16(40289), + 14: uint16(40306), + 15: uint16(40298), + 16: uint16(40300), + 17: uint16(40594), + 18: uint16(40599), + 19: uint16(40595), + 20: uint16(40628), + 21: uint16(21240), + 22: uint16(22184), + 23: uint16(22199), + 24: uint16(22198), + 25: uint16(22196), + 26: uint16(22204), + 27: uint16(22756), + 28: uint16(23360), + 29: uint16(23363), + 30: uint16(23421), + 31: uint16(23542), + 32: uint16(24009), + 33: uint16(25080), + 34: uint16(25082), + 35: uint16(25880), + 36: uint16(25876), + 37: uint16(25881), + 38: uint16(26342), + 39: uint16(26407), + 40: uint16(27372), + 41: uint16(28734), + 42: uint16(28720), + 43: uint16(28722), + 44: uint16(29200), + 45: uint16(29563), + 46: uint16(29903), + 47: uint16(30306), + 48: uint16(30309), + 49: uint16(31014), + 50: uint16(31018), + 51: uint16(31020), + 52: uint16(31019), + 53: uint16(31431), + 54: uint16(31478), + 55: uint16(31820), + 56: uint16(31811), + 57: uint16(31821), + 58: uint16(31983), + 59: uint16(31984), + 60: uint16(36782), + 61: uint16(32381), + 62: uint16(32380), + 63: uint16(32386), + 64: uint16(32588), + 65: uint16(32768), + 66: uint16(33242), + 67: uint16(33382), + 68: uint16(34299), + 69: uint16(34297), + 70: uint16(34321), + 71: uint16(34298), + 72: uint16(34310), + 73: uint16(34315), + 74: uint16(34311), + 75: uint16(34314), + 76: uint16(34836), + 77: uint16(34837), + 78: uint16(35172), + 79: uint16(35258), + 80: uint16(35320), + 81: uint16(35696), + 82: uint16(35692), + 83: uint16(35686), + 84: uint16(35695), + 85: uint16(35679), + 86: uint16(35691), + 87: uint16(36111), + 88: uint16(36109), + 89: uint16(36489), + 90: uint16(36481), + 91: uint16(36485), + 92: uint16(36482), + 93: uint16(37300), + 94: uint16(37323), + 95: uint16(37912), + 96: uint16(37891), + 97: uint16(37885), + 98: uint16(38369), + 99: uint16(38704), + 100: uint16(39108), + 101: uint16(39250), + 102: uint16(39249), + 103: uint16(39336), + 104: uint16(39467), + 105: uint16(39472), + 106: uint16(39479), + 107: uint16(39477), + 108: uint16(39955), + 109: uint16(39949), + 110: uint16(40569), + 111: uint16(40629), + 112: uint16(40680), + 113: uint16(40751), + 114: uint16(40799), + 115: uint16(40803), + 116: uint16(40801), + 117: uint16(20791), + 118: uint16(20792), + 119: uint16(22209), + 120: uint16(22208), + 121: uint16(22210), + 122: uint16(22804), + 123: uint16(23660), + 124: uint16(24013), + 125: uint16(25084), + 126: uint16(25086), + 127: uint16(25885), + 128: uint16(25884), + 129: uint16(26005), + 130: uint16(26345), + 131: uint16(27387), + 132: uint16(27396), + 133: uint16(27386), + 134: uint16(27570), + 135: uint16(28748), + 136: uint16(29211), + 137: uint16(29351), + 138: uint16(29910), + 139: uint16(29908), + 140: uint16(30313), + 141: uint16(30675), + 142: uint16(31824), + 143: uint16(32399), + 144: uint16(32396), + 145: uint16(32700), + 146: uint16(34327), + 147: uint16(34349), + 148: uint16(34330), + 149: uint16(34851), + 150: uint16(34850), + 151: uint16(34849), + 152: uint16(34847), + 153: uint16(35178), + 154: uint16(35180), + 155: uint16(35261), + 156: uint16(35700), + }, + 36: { + 0: uint16(35703), + 1: uint16(35709), + 2: uint16(36115), + 3: uint16(36490), + 4: uint16(36493), + 5: uint16(36491), + 6: uint16(36703), + 7: uint16(36783), + 8: uint16(37306), + 9: uint16(37934), + 10: uint16(37939), + 11: uint16(37941), + 12: uint16(37946), + 13: uint16(37944), + 14: uint16(37938), + 15: uint16(37931), + 16: uint16(38370), + 17: uint16(38712), + 18: uint16(38713), + 19: uint16(38706), + 20: uint16(38911), + 21: uint16(39015), + 22: uint16(39013), + 23: uint16(39255), + 24: uint16(39493), + 25: uint16(39491), + 26: uint16(39488), + 27: uint16(39486), + 28: uint16(39631), + 29: uint16(39764), + 30: uint16(39761), + 31: uint16(39981), + 32: uint16(39973), + 33: uint16(40367), + 34: uint16(40372), + 35: uint16(40386), + 36: uint16(40376), + 37: uint16(40605), + 38: uint16(40687), + 39: uint16(40729), + 40: uint16(40796), + 41: uint16(40806), + 42: uint16(40807), + 43: uint16(20796), + 44: uint16(20795), + 45: uint16(22216), + 46: uint16(22218), + 47: uint16(22217), + 48: uint16(23423), + 49: uint16(24020), + 50: uint16(24018), + 51: uint16(24398), + 52: uint16(25087), + 53: uint16(25892), + 54: uint16(27402), + 55: uint16(27489), + 56: uint16(28753), + 57: uint16(28760), + 58: uint16(29568), + 59: uint16(29924), + 60: uint16(30090), + 61: uint16(30318), + 62: uint16(30316), + 63: uint16(31155), + 64: uint16(31840), + 65: uint16(31839), + 66: uint16(32894), + 67: uint16(32893), + 68: uint16(33247), + 69: uint16(35186), + 70: uint16(35183), + 71: uint16(35324), + 72: uint16(35712), + 73: uint16(36118), + 74: uint16(36119), + 75: uint16(36497), + 76: uint16(36499), + 77: uint16(36705), + 78: uint16(37192), + 79: uint16(37956), + 80: uint16(37969), + 81: uint16(37970), + 82: uint16(38717), + 83: uint16(38718), + 84: uint16(38851), + 85: uint16(38849), + 86: uint16(39019), + 87: uint16(39253), + 88: uint16(39509), + 89: uint16(39501), + 90: uint16(39634), + 91: uint16(39706), + 92: uint16(40009), + 93: uint16(39985), + 94: uint16(39998), + 95: uint16(39995), + 96: uint16(40403), + 97: uint16(40407), + 98: uint16(40756), + 99: uint16(40812), + 100: uint16(40810), + 101: uint16(40852), + 102: uint16(22220), + 103: uint16(24022), + 104: uint16(25088), + 105: uint16(25891), + 106: uint16(25899), + 107: uint16(25898), + 108: uint16(26348), + 109: uint16(27408), + 110: uint16(29914), + 111: uint16(31434), + 112: uint16(31844), + 113: uint16(31843), + 114: uint16(31845), + 115: uint16(32403), + 116: uint16(32406), + 117: uint16(32404), + 118: uint16(33250), + 119: uint16(34360), + 120: uint16(34367), + 121: uint16(34865), + 122: uint16(35722), + 123: uint16(37008), + 124: uint16(37007), + 125: uint16(37987), + 126: uint16(37984), + 127: uint16(37988), + 128: uint16(38760), + 129: uint16(39023), + 130: uint16(39260), + 131: uint16(39514), + 132: uint16(39515), + 133: uint16(39511), + 134: uint16(39635), + 135: uint16(39636), + 136: uint16(39633), + 137: uint16(40020), + 138: uint16(40023), + 139: uint16(40022), + 140: uint16(40421), + 141: uint16(40607), + 142: uint16(40692), + 143: uint16(22225), + 144: uint16(22761), + 145: uint16(25900), + 146: uint16(28766), + 147: uint16(30321), + 148: uint16(30322), + 149: uint16(30679), + 150: uint16(32592), + 151: uint16(32648), + 152: uint16(34870), + 153: uint16(34873), + 154: uint16(34914), + 155: uint16(35731), + 156: uint16(35730), + }, + 37: { + 0: uint16(35734), + 1: uint16(33399), + 2: uint16(36123), + 3: uint16(37312), + 4: uint16(37994), + 5: uint16(38722), + 6: uint16(38728), + 7: uint16(38724), + 8: uint16(38854), + 9: uint16(39024), + 10: uint16(39519), + 11: uint16(39714), + 12: uint16(39768), + 13: uint16(40031), + 14: uint16(40441), + 15: uint16(40442), + 16: uint16(40572), + 17: uint16(40573), + 18: uint16(40711), + 19: uint16(40823), + 20: uint16(40818), + 21: uint16(24307), + 22: uint16(27414), + 23: uint16(28771), + 24: uint16(31852), + 25: uint16(31854), + 26: uint16(34875), + 27: uint16(35264), + 28: uint16(36513), + 29: uint16(37313), + 30: uint16(38002), + 31: uint16(38000), + 32: uint16(39025), + 33: uint16(39262), + 34: uint16(39638), + 35: uint16(39715), + 36: uint16(40652), + 37: uint16(28772), + 38: uint16(30682), + 39: uint16(35738), + 40: uint16(38007), + 41: uint16(38857), + 42: uint16(39522), + 43: uint16(39525), + 44: uint16(32412), + 45: uint16(35740), + 46: uint16(36522), + 47: uint16(37317), + 48: uint16(38013), + 49: uint16(38014), + 50: uint16(38012), + 51: uint16(40055), + 52: uint16(40056), + 53: uint16(40695), + 54: uint16(35924), + 55: uint16(38015), + 56: uint16(40474), + 57: uint16(29224), + 58: uint16(39530), + 59: uint16(39729), + 60: uint16(40475), + 61: uint16(40478), + 62: uint16(31858), + 63: uint16(9312), + 64: uint16(9313), + 65: uint16(9314), + 66: uint16(9315), + 67: uint16(9316), + 68: uint16(9317), + 69: uint16(9318), + 70: uint16(9319), + 71: uint16(9320), + 72: uint16(9321), + 73: uint16(9332), + 74: uint16(9333), + 75: uint16(9334), + 76: uint16(9335), + 77: uint16(9336), + 78: uint16(9337), + 79: uint16(9338), + 80: uint16(9339), + 81: uint16(9340), + 82: uint16(9341), + 83: uint16(8560), + 84: uint16(8561), + 85: uint16(8562), + 86: uint16(8563), + 87: uint16(8564), + 88: uint16(8565), + 89: uint16(8566), + 90: uint16(8567), + 91: uint16(8568), + 92: uint16(8569), + 93: uint16(20022), + 94: uint16(20031), + 95: uint16(20101), + 96: uint16(20128), + 97: uint16(20866), + 98: uint16(20886), + 99: uint16(20907), + 100: uint16(21241), + 101: uint16(21304), + 102: uint16(21353), + 103: uint16(21430), + 104: uint16(22794), + 105: uint16(23424), + 106: uint16(24027), + 107: uint16(24186), + 108: uint16(24191), + 109: uint16(24308), + 110: uint16(24400), + 111: uint16(24417), + 112: uint16(25908), + 113: uint16(26080), + 114: uint16(30098), + 115: uint16(30326), + 116: uint16(36789), + 117: uint16(38582), + 118: uint16(168), + 119: uint16(710), + 120: uint16(12541), + 121: uint16(12542), + 122: uint16(12445), + 123: uint16(12446), + 126: uint16(12293), + 127: uint16(12294), + 128: uint16(12295), + 129: uint16(12540), + 130: uint16(65339), + 131: uint16(65341), + 132: uint16(10045), + 133: uint16(12353), + 134: uint16(12354), + 135: uint16(12355), + 136: uint16(12356), + 137: uint16(12357), + 138: uint16(12358), + 139: uint16(12359), + 140: uint16(12360), + 141: uint16(12361), + 142: uint16(12362), + 143: uint16(12363), + 144: uint16(12364), + 145: uint16(12365), + 146: uint16(12366), + 147: uint16(12367), + 148: uint16(12368), + 149: uint16(12369), + 150: uint16(12370), + 151: uint16(12371), + 152: uint16(12372), + 153: uint16(12373), + 154: uint16(12374), + 155: uint16(12375), + 156: uint16(12376), + }, + 38: { + 0: uint16(12377), + 1: uint16(12378), + 2: uint16(12379), + 3: uint16(12380), + 4: uint16(12381), + 5: uint16(12382), + 6: uint16(12383), + 7: uint16(12384), + 8: uint16(12385), + 9: uint16(12386), + 10: uint16(12387), + 11: uint16(12388), + 12: uint16(12389), + 13: uint16(12390), + 14: uint16(12391), + 15: uint16(12392), + 16: uint16(12393), + 17: uint16(12394), + 18: uint16(12395), + 19: uint16(12396), + 20: uint16(12397), + 21: uint16(12398), + 22: uint16(12399), + 23: uint16(12400), + 24: uint16(12401), + 25: uint16(12402), + 26: uint16(12403), + 27: uint16(12404), + 28: uint16(12405), + 29: uint16(12406), + 30: uint16(12407), + 31: uint16(12408), + 32: uint16(12409), + 33: uint16(12410), + 34: uint16(12411), + 35: uint16(12412), + 36: uint16(12413), + 37: uint16(12414), + 38: uint16(12415), + 39: uint16(12416), + 40: uint16(12417), + 41: uint16(12418), + 42: uint16(12419), + 43: uint16(12420), + 44: uint16(12421), + 45: uint16(12422), + 46: uint16(12423), + 47: uint16(12424), + 48: uint16(12425), + 49: uint16(12426), + 50: uint16(12427), + 51: uint16(12428), + 52: uint16(12429), + 53: uint16(12430), + 54: uint16(12431), + 55: uint16(12432), + 56: uint16(12433), + 57: uint16(12434), + 58: uint16(12435), + 59: uint16(12449), + 60: uint16(12450), + 61: uint16(12451), + 62: uint16(12452), + 63: uint16(12453), + 64: uint16(12454), + 65: uint16(12455), + 66: uint16(12456), + 67: uint16(12457), + 68: uint16(12458), + 69: uint16(12459), + 70: uint16(12460), + 71: uint16(12461), + 72: uint16(12462), + 73: uint16(12463), + 74: uint16(12464), + 75: uint16(12465), + 76: uint16(12466), + 77: uint16(12467), + 78: uint16(12468), + 79: uint16(12469), + 80: uint16(12470), + 81: uint16(12471), + 82: uint16(12472), + 83: uint16(12473), + 84: uint16(12474), + 85: uint16(12475), + 86: uint16(12476), + 87: uint16(12477), + 88: uint16(12478), + 89: uint16(12479), + 90: uint16(12480), + 91: uint16(12481), + 92: uint16(12482), + 93: uint16(12483), + 94: uint16(12484), + 95: uint16(12485), + 96: uint16(12486), + 97: uint16(12487), + 98: uint16(12488), + 99: uint16(12489), + 100: uint16(12490), + 101: uint16(12491), + 102: uint16(12492), + 103: uint16(12493), + 104: uint16(12494), + 105: uint16(12495), + 106: uint16(12496), + 107: uint16(12497), + 108: uint16(12498), + 109: uint16(12499), + 110: uint16(12500), + 111: uint16(12501), + 112: uint16(12502), + 113: uint16(12503), + 114: uint16(12504), + 115: uint16(12505), + 116: uint16(12506), + 117: uint16(12507), + 118: uint16(12508), + 119: uint16(12509), + 120: uint16(12510), + 121: uint16(12511), + 122: uint16(12512), + 123: uint16(12513), + 124: uint16(12514), + 125: uint16(12515), + 126: uint16(12516), + 127: uint16(12517), + 128: uint16(12518), + 129: uint16(12519), + 130: uint16(12520), + 131: uint16(12521), + 132: uint16(12522), + 133: uint16(12523), + 134: uint16(12524), + 135: uint16(12525), + 136: uint16(12526), + 137: uint16(12527), + 138: uint16(12528), + 139: uint16(12529), + 140: uint16(12530), + 141: uint16(12531), + 142: uint16(12532), + 143: uint16(12533), + 144: uint16(12534), + 145: uint16(1040), + 146: uint16(1041), + 147: uint16(1042), + 148: uint16(1043), + 149: uint16(1044), + 150: uint16(1045), + 151: uint16(1025), + 152: uint16(1046), + 153: uint16(1047), + 154: uint16(1048), + 155: uint16(1049), + 156: uint16(1050), + }, + 39: { + 0: uint16(1051), + 1: uint16(1052), + 2: uint16(1053), + 3: uint16(1054), + 4: uint16(1055), + 5: uint16(1056), + 6: uint16(1057), + 7: uint16(1058), + 8: uint16(1059), + 9: uint16(1060), + 10: uint16(1061), + 11: uint16(1062), + 12: uint16(1063), + 13: uint16(1064), + 14: uint16(1065), + 15: uint16(1066), + 16: uint16(1067), + 17: uint16(1068), + 18: uint16(1069), + 19: uint16(1070), + 20: uint16(1071), + 21: uint16(1072), + 22: uint16(1073), + 23: uint16(1074), + 24: uint16(1075), + 25: uint16(1076), + 26: uint16(1077), + 27: uint16(1105), + 28: uint16(1078), + 29: uint16(1079), + 30: uint16(1080), + 31: uint16(1081), + 32: uint16(1082), + 33: uint16(1083), + 34: uint16(1084), + 35: uint16(1085), + 36: uint16(1086), + 37: uint16(1087), + 38: uint16(1088), + 39: uint16(1089), + 40: uint16(1090), + 41: uint16(1091), + 42: uint16(1092), + 43: uint16(1093), + 44: uint16(1094), + 45: uint16(1095), + 46: uint16(1096), + 47: uint16(1097), + 48: uint16(1098), + 49: uint16(1099), + 50: uint16(1100), + 51: uint16(1101), + 52: uint16(1102), + 53: uint16(1103), + 54: uint16(8679), + 55: uint16(8632), + 56: uint16(8633), + 57: uint16(12751), + 58: uint16(204), + 59: uint16(20058), + 60: uint16(138), + 61: uint16(20994), + 62: uint16(17553), + 63: uint16(40880), + 64: uint16(20872), + 65: uint16(40881), + 66: uint16(30215), + 107: uint16(65506), + 108: uint16(65508), + 109: uint16(65287), + 110: uint16(65282), + 111: uint16(12849), + 112: uint16(8470), + 113: uint16(8481), + 114: uint16(12443), + 115: uint16(12444), + 116: uint16(11904), + 117: uint16(11908), + 118: uint16(11910), + 119: uint16(11911), + 120: uint16(11912), + 121: uint16(11914), + 122: uint16(11916), + 123: uint16(11917), + 124: uint16(11925), + 125: uint16(11932), + 126: uint16(11933), + 127: uint16(11941), + 128: uint16(11943), + 129: uint16(11946), + 130: uint16(11948), + 131: uint16(11950), + 132: uint16(11958), + 133: uint16(11964), + 134: uint16(11966), + 135: uint16(11974), + 136: uint16(11978), + 137: uint16(11980), + 138: uint16(11981), + 139: uint16(11983), + 140: uint16(11990), + 141: uint16(11991), + 142: uint16(11998), + 143: uint16(12003), + 147: uint16(643), + 148: uint16(592), + 149: uint16(603), + 150: uint16(596), + 151: uint16(629), + 152: uint16(339), + 153: uint16(248), + 154: uint16(331), + 155: uint16(650), + 156: uint16(618), + }, + 40: { + 0: uint16(20034), + 1: uint16(20060), + 2: uint16(20981), + 3: uint16(21274), + 4: uint16(21378), + 5: uint16(19975), + 6: uint16(19980), + 7: uint16(20039), + 8: uint16(20109), + 9: uint16(22231), + 10: uint16(64012), + 11: uint16(23662), + 12: uint16(24435), + 13: uint16(19983), + 14: uint16(20871), + 15: uint16(19982), + 16: uint16(20014), + 17: uint16(20115), + 18: uint16(20162), + 19: uint16(20169), + 20: uint16(20168), + 21: uint16(20888), + 22: uint16(21244), + 23: uint16(21356), + 24: uint16(21433), + 25: uint16(22304), + 26: uint16(22787), + 27: uint16(22828), + 28: uint16(23568), + 29: uint16(24063), + 30: uint16(26081), + 31: uint16(27571), + 32: uint16(27596), + 33: uint16(27668), + 34: uint16(29247), + 35: uint16(20017), + 36: uint16(20028), + 37: uint16(20200), + 38: uint16(20188), + 39: uint16(20201), + 40: uint16(20193), + 41: uint16(20189), + 42: uint16(20186), + 43: uint16(21004), + 44: uint16(21276), + 45: uint16(21324), + 46: uint16(22306), + 47: uint16(22307), + 48: uint16(22807), + 49: uint16(22831), + 50: uint16(23425), + 51: uint16(23428), + 52: uint16(23570), + 53: uint16(23611), + 54: uint16(23668), + 55: uint16(23667), + 56: uint16(24068), + 57: uint16(24192), + 58: uint16(24194), + 59: uint16(24521), + 60: uint16(25097), + 61: uint16(25168), + 62: uint16(27669), + 63: uint16(27702), + 64: uint16(27715), + 65: uint16(27711), + 66: uint16(27707), + 67: uint16(29358), + 68: uint16(29360), + 69: uint16(29578), + 70: uint16(31160), + 71: uint16(32906), + 72: uint16(38430), + 73: uint16(20238), + 74: uint16(20248), + 75: uint16(20268), + 76: uint16(20213), + 77: uint16(20244), + 78: uint16(20209), + 79: uint16(20224), + 80: uint16(20215), + 81: uint16(20232), + 82: uint16(20253), + 83: uint16(20226), + 84: uint16(20229), + 85: uint16(20258), + 86: uint16(20243), + 87: uint16(20228), + 88: uint16(20212), + 89: uint16(20242), + 90: uint16(20913), + 91: uint16(21011), + 92: uint16(21001), + 93: uint16(21008), + 94: uint16(21158), + 95: uint16(21282), + 96: uint16(21279), + 97: uint16(21325), + 98: uint16(21386), + 99: uint16(21511), + 100: uint16(22241), + 101: uint16(22239), + 102: uint16(22318), + 103: uint16(22314), + 104: uint16(22324), + 105: uint16(22844), + 106: uint16(22912), + 107: uint16(22908), + 108: uint16(22917), + 109: uint16(22907), + 110: uint16(22910), + 111: uint16(22903), + 112: uint16(22911), + 113: uint16(23382), + 114: uint16(23573), + 115: uint16(23589), + 116: uint16(23676), + 117: uint16(23674), + 118: uint16(23675), + 119: uint16(23678), + 120: uint16(24031), + 121: uint16(24181), + 122: uint16(24196), + 123: uint16(24322), + 124: uint16(24346), + 125: uint16(24436), + 126: uint16(24533), + 127: uint16(24532), + 128: uint16(24527), + 129: uint16(25180), + 130: uint16(25182), + 131: uint16(25188), + 132: uint16(25185), + 133: uint16(25190), + 134: uint16(25186), + 135: uint16(25177), + 136: uint16(25184), + 137: uint16(25178), + 138: uint16(25189), + 139: uint16(26095), + 140: uint16(26094), + 141: uint16(26430), + 142: uint16(26425), + 143: uint16(26424), + 144: uint16(26427), + 145: uint16(26426), + 146: uint16(26431), + 147: uint16(26428), + 148: uint16(26419), + 149: uint16(27672), + 150: uint16(27718), + 151: uint16(27730), + 152: uint16(27740), + 153: uint16(27727), + 154: uint16(27722), + 155: uint16(27732), + 156: uint16(27723), + }, + 41: { + 0: uint16(27724), + 1: uint16(28785), + 2: uint16(29278), + 3: uint16(29364), + 4: uint16(29365), + 5: uint16(29582), + 6: uint16(29994), + 7: uint16(30335), + 8: uint16(31349), + 9: uint16(32593), + 10: uint16(33400), + 11: uint16(33404), + 12: uint16(33408), + 13: uint16(33405), + 14: uint16(33407), + 15: uint16(34381), + 16: uint16(35198), + 17: uint16(37017), + 18: uint16(37015), + 19: uint16(37016), + 20: uint16(37019), + 21: uint16(37012), + 22: uint16(38434), + 23: uint16(38436), + 24: uint16(38432), + 25: uint16(38435), + 26: uint16(20310), + 27: uint16(20283), + 28: uint16(20322), + 29: uint16(20297), + 30: uint16(20307), + 31: uint16(20324), + 32: uint16(20286), + 33: uint16(20327), + 34: uint16(20306), + 35: uint16(20319), + 36: uint16(20289), + 37: uint16(20312), + 38: uint16(20269), + 39: uint16(20275), + 40: uint16(20287), + 41: uint16(20321), + 42: uint16(20879), + 43: uint16(20921), + 44: uint16(21020), + 45: uint16(21022), + 46: uint16(21025), + 47: uint16(21165), + 48: uint16(21166), + 49: uint16(21257), + 50: uint16(21347), + 51: uint16(21362), + 52: uint16(21390), + 53: uint16(21391), + 54: uint16(21552), + 55: uint16(21559), + 56: uint16(21546), + 57: uint16(21588), + 58: uint16(21573), + 59: uint16(21529), + 60: uint16(21532), + 61: uint16(21541), + 62: uint16(21528), + 63: uint16(21565), + 64: uint16(21583), + 65: uint16(21569), + 66: uint16(21544), + 67: uint16(21540), + 68: uint16(21575), + 69: uint16(22254), + 70: uint16(22247), + 71: uint16(22245), + 72: uint16(22337), + 73: uint16(22341), + 74: uint16(22348), + 75: uint16(22345), + 76: uint16(22347), + 77: uint16(22354), + 78: uint16(22790), + 79: uint16(22848), + 80: uint16(22950), + 81: uint16(22936), + 82: uint16(22944), + 83: uint16(22935), + 84: uint16(22926), + 85: uint16(22946), + 86: uint16(22928), + 87: uint16(22927), + 88: uint16(22951), + 89: uint16(22945), + 90: uint16(23438), + 91: uint16(23442), + 92: uint16(23592), + 93: uint16(23594), + 94: uint16(23693), + 95: uint16(23695), + 96: uint16(23688), + 97: uint16(23691), + 98: uint16(23689), + 99: uint16(23698), + 100: uint16(23690), + 101: uint16(23686), + 102: uint16(23699), + 103: uint16(23701), + 104: uint16(24032), + 105: uint16(24074), + 106: uint16(24078), + 107: uint16(24203), + 108: uint16(24201), + 109: uint16(24204), + 110: uint16(24200), + 111: uint16(24205), + 112: uint16(24325), + 113: uint16(24349), + 114: uint16(24440), + 115: uint16(24438), + 116: uint16(24530), + 117: uint16(24529), + 118: uint16(24528), + 119: uint16(24557), + 120: uint16(24552), + 121: uint16(24558), + 122: uint16(24563), + 123: uint16(24545), + 124: uint16(24548), + 125: uint16(24547), + 126: uint16(24570), + 127: uint16(24559), + 128: uint16(24567), + 129: uint16(24571), + 130: uint16(24576), + 131: uint16(24564), + 132: uint16(25146), + 133: uint16(25219), + 134: uint16(25228), + 135: uint16(25230), + 136: uint16(25231), + 137: uint16(25236), + 138: uint16(25223), + 139: uint16(25201), + 140: uint16(25211), + 141: uint16(25210), + 142: uint16(25200), + 143: uint16(25217), + 144: uint16(25224), + 145: uint16(25207), + 146: uint16(25213), + 147: uint16(25202), + 148: uint16(25204), + 149: uint16(25911), + 150: uint16(26096), + 151: uint16(26100), + 152: uint16(26099), + 153: uint16(26098), + 154: uint16(26101), + 155: uint16(26437), + 156: uint16(26439), + }, + 42: { + 0: uint16(26457), + 1: uint16(26453), + 2: uint16(26444), + 3: uint16(26440), + 4: uint16(26461), + 5: uint16(26445), + 6: uint16(26458), + 7: uint16(26443), + 8: uint16(27600), + 9: uint16(27673), + 10: uint16(27674), + 11: uint16(27768), + 12: uint16(27751), + 13: uint16(27755), + 14: uint16(27780), + 15: uint16(27787), + 16: uint16(27791), + 17: uint16(27761), + 18: uint16(27759), + 19: uint16(27753), + 20: uint16(27802), + 21: uint16(27757), + 22: uint16(27783), + 23: uint16(27797), + 24: uint16(27804), + 25: uint16(27750), + 26: uint16(27763), + 27: uint16(27749), + 28: uint16(27771), + 29: uint16(27790), + 30: uint16(28788), + 31: uint16(28794), + 32: uint16(29283), + 33: uint16(29375), + 34: uint16(29373), + 35: uint16(29379), + 36: uint16(29382), + 37: uint16(29377), + 38: uint16(29370), + 39: uint16(29381), + 40: uint16(29589), + 41: uint16(29591), + 42: uint16(29587), + 43: uint16(29588), + 44: uint16(29586), + 45: uint16(30010), + 46: uint16(30009), + 47: uint16(30100), + 48: uint16(30101), + 49: uint16(30337), + 50: uint16(31037), + 51: uint16(32820), + 52: uint16(32917), + 53: uint16(32921), + 54: uint16(32912), + 55: uint16(32914), + 56: uint16(32924), + 57: uint16(33424), + 58: uint16(33423), + 59: uint16(33413), + 60: uint16(33422), + 61: uint16(33425), + 62: uint16(33427), + 63: uint16(33418), + 64: uint16(33411), + 65: uint16(33412), + 66: uint16(35960), + 67: uint16(36809), + 68: uint16(36799), + 69: uint16(37023), + 70: uint16(37025), + 71: uint16(37029), + 72: uint16(37022), + 73: uint16(37031), + 74: uint16(37024), + 75: uint16(38448), + 76: uint16(38440), + 77: uint16(38447), + 78: uint16(38445), + 79: uint16(20019), + 80: uint16(20376), + 81: uint16(20348), + 82: uint16(20357), + 83: uint16(20349), + 84: uint16(20352), + 85: uint16(20359), + 86: uint16(20342), + 87: uint16(20340), + 88: uint16(20361), + 89: uint16(20356), + 90: uint16(20343), + 91: uint16(20300), + 92: uint16(20375), + 93: uint16(20330), + 94: uint16(20378), + 95: uint16(20345), + 96: uint16(20353), + 97: uint16(20344), + 98: uint16(20368), + 99: uint16(20380), + 100: uint16(20372), + 101: uint16(20382), + 102: uint16(20370), + 103: uint16(20354), + 104: uint16(20373), + 105: uint16(20331), + 106: uint16(20334), + 107: uint16(20894), + 108: uint16(20924), + 109: uint16(20926), + 110: uint16(21045), + 111: uint16(21042), + 112: uint16(21043), + 113: uint16(21062), + 114: uint16(21041), + 115: uint16(21180), + 116: uint16(21258), + 117: uint16(21259), + 118: uint16(21308), + 119: uint16(21394), + 120: uint16(21396), + 121: uint16(21639), + 122: uint16(21631), + 123: uint16(21633), + 124: uint16(21649), + 125: uint16(21634), + 126: uint16(21640), + 127: uint16(21611), + 128: uint16(21626), + 129: uint16(21630), + 130: uint16(21605), + 131: uint16(21612), + 132: uint16(21620), + 133: uint16(21606), + 134: uint16(21645), + 135: uint16(21615), + 136: uint16(21601), + 137: uint16(21600), + 138: uint16(21656), + 139: uint16(21603), + 140: uint16(21607), + 141: uint16(21604), + 142: uint16(22263), + 143: uint16(22265), + 144: uint16(22383), + 145: uint16(22386), + 146: uint16(22381), + 147: uint16(22379), + 148: uint16(22385), + 149: uint16(22384), + 150: uint16(22390), + 151: uint16(22400), + 152: uint16(22389), + 153: uint16(22395), + 154: uint16(22387), + 155: uint16(22388), + 156: uint16(22370), + }, + 43: { + 0: uint16(22376), + 1: uint16(22397), + 2: uint16(22796), + 3: uint16(22853), + 4: uint16(22965), + 5: uint16(22970), + 6: uint16(22991), + 7: uint16(22990), + 8: uint16(22962), + 9: uint16(22988), + 10: uint16(22977), + 11: uint16(22966), + 12: uint16(22972), + 13: uint16(22979), + 14: uint16(22998), + 15: uint16(22961), + 16: uint16(22973), + 17: uint16(22976), + 18: uint16(22984), + 19: uint16(22964), + 20: uint16(22983), + 21: uint16(23394), + 22: uint16(23397), + 23: uint16(23443), + 24: uint16(23445), + 25: uint16(23620), + 26: uint16(23623), + 27: uint16(23726), + 28: uint16(23716), + 29: uint16(23712), + 30: uint16(23733), + 31: uint16(23727), + 32: uint16(23720), + 33: uint16(23724), + 34: uint16(23711), + 35: uint16(23715), + 36: uint16(23725), + 37: uint16(23714), + 38: uint16(23722), + 39: uint16(23719), + 40: uint16(23709), + 41: uint16(23717), + 42: uint16(23734), + 43: uint16(23728), + 44: uint16(23718), + 45: uint16(24087), + 46: uint16(24084), + 47: uint16(24089), + 48: uint16(24360), + 49: uint16(24354), + 50: uint16(24355), + 51: uint16(24356), + 52: uint16(24404), + 53: uint16(24450), + 54: uint16(24446), + 55: uint16(24445), + 56: uint16(24542), + 57: uint16(24549), + 58: uint16(24621), + 59: uint16(24614), + 60: uint16(24601), + 61: uint16(24626), + 62: uint16(24587), + 63: uint16(24628), + 64: uint16(24586), + 65: uint16(24599), + 66: uint16(24627), + 67: uint16(24602), + 68: uint16(24606), + 69: uint16(24620), + 70: uint16(24610), + 71: uint16(24589), + 72: uint16(24592), + 73: uint16(24622), + 74: uint16(24595), + 75: uint16(24593), + 76: uint16(24588), + 77: uint16(24585), + 78: uint16(24604), + 79: uint16(25108), + 80: uint16(25149), + 81: uint16(25261), + 82: uint16(25268), + 83: uint16(25297), + 84: uint16(25278), + 85: uint16(25258), + 86: uint16(25270), + 87: uint16(25290), + 88: uint16(25262), + 89: uint16(25267), + 90: uint16(25263), + 91: uint16(25275), + 92: uint16(25257), + 93: uint16(25264), + 94: uint16(25272), + 95: uint16(25917), + 96: uint16(26024), + 97: uint16(26043), + 98: uint16(26121), + 99: uint16(26108), + 100: uint16(26116), + 101: uint16(26130), + 102: uint16(26120), + 103: uint16(26107), + 104: uint16(26115), + 105: uint16(26123), + 106: uint16(26125), + 107: uint16(26117), + 108: uint16(26109), + 109: uint16(26129), + 110: uint16(26128), + 111: uint16(26358), + 112: uint16(26378), + 113: uint16(26501), + 114: uint16(26476), + 115: uint16(26510), + 116: uint16(26514), + 117: uint16(26486), + 118: uint16(26491), + 119: uint16(26520), + 120: uint16(26502), + 121: uint16(26500), + 122: uint16(26484), + 123: uint16(26509), + 124: uint16(26508), + 125: uint16(26490), + 126: uint16(26527), + 127: uint16(26513), + 128: uint16(26521), + 129: uint16(26499), + 130: uint16(26493), + 131: uint16(26497), + 132: uint16(26488), + 133: uint16(26489), + 134: uint16(26516), + 135: uint16(27429), + 136: uint16(27520), + 137: uint16(27518), + 138: uint16(27614), + 139: uint16(27677), + 140: uint16(27795), + 141: uint16(27884), + 142: uint16(27883), + 143: uint16(27886), + 144: uint16(27865), + 145: uint16(27830), + 146: uint16(27860), + 147: uint16(27821), + 148: uint16(27879), + 149: uint16(27831), + 150: uint16(27856), + 151: uint16(27842), + 152: uint16(27834), + 153: uint16(27843), + 154: uint16(27846), + 155: uint16(27885), + 156: uint16(27890), + }, + 44: { + 0: uint16(27858), + 1: uint16(27869), + 2: uint16(27828), + 3: uint16(27786), + 4: uint16(27805), + 5: uint16(27776), + 6: uint16(27870), + 7: uint16(27840), + 8: uint16(27952), + 9: uint16(27853), + 10: uint16(27847), + 11: uint16(27824), + 12: uint16(27897), + 13: uint16(27855), + 14: uint16(27881), + 15: uint16(27857), + 16: uint16(28820), + 17: uint16(28824), + 18: uint16(28805), + 19: uint16(28819), + 20: uint16(28806), + 21: uint16(28804), + 22: uint16(28817), + 23: uint16(28822), + 24: uint16(28802), + 25: uint16(28826), + 26: uint16(28803), + 27: uint16(29290), + 28: uint16(29398), + 29: uint16(29387), + 30: uint16(29400), + 31: uint16(29385), + 32: uint16(29404), + 33: uint16(29394), + 34: uint16(29396), + 35: uint16(29402), + 36: uint16(29388), + 37: uint16(29393), + 38: uint16(29604), + 39: uint16(29601), + 40: uint16(29613), + 41: uint16(29606), + 42: uint16(29602), + 43: uint16(29600), + 44: uint16(29612), + 45: uint16(29597), + 46: uint16(29917), + 47: uint16(29928), + 48: uint16(30015), + 49: uint16(30016), + 50: uint16(30014), + 51: uint16(30092), + 52: uint16(30104), + 53: uint16(30383), + 54: uint16(30451), + 55: uint16(30449), + 56: uint16(30448), + 57: uint16(30453), + 58: uint16(30712), + 59: uint16(30716), + 60: uint16(30713), + 61: uint16(30715), + 62: uint16(30714), + 63: uint16(30711), + 64: uint16(31042), + 65: uint16(31039), + 66: uint16(31173), + 67: uint16(31352), + 68: uint16(31355), + 69: uint16(31483), + 70: uint16(31861), + 71: uint16(31997), + 72: uint16(32821), + 73: uint16(32911), + 74: uint16(32942), + 75: uint16(32931), + 76: uint16(32952), + 77: uint16(32949), + 78: uint16(32941), + 79: uint16(33312), + 80: uint16(33440), + 81: uint16(33472), + 82: uint16(33451), + 83: uint16(33434), + 84: uint16(33432), + 85: uint16(33435), + 86: uint16(33461), + 87: uint16(33447), + 88: uint16(33454), + 89: uint16(33468), + 90: uint16(33438), + 91: uint16(33466), + 92: uint16(33460), + 93: uint16(33448), + 94: uint16(33441), + 95: uint16(33449), + 96: uint16(33474), + 97: uint16(33444), + 98: uint16(33475), + 99: uint16(33462), + 100: uint16(33442), + 101: uint16(34416), + 102: uint16(34415), + 103: uint16(34413), + 104: uint16(34414), + 105: uint16(35926), + 106: uint16(36818), + 107: uint16(36811), + 108: uint16(36819), + 109: uint16(36813), + 110: uint16(36822), + 111: uint16(36821), + 112: uint16(36823), + 113: uint16(37042), + 114: uint16(37044), + 115: uint16(37039), + 116: uint16(37043), + 117: uint16(37040), + 118: uint16(38457), + 119: uint16(38461), + 120: uint16(38460), + 121: uint16(38458), + 122: uint16(38467), + 123: uint16(20429), + 124: uint16(20421), + 125: uint16(20435), + 126: uint16(20402), + 127: uint16(20425), + 128: uint16(20427), + 129: uint16(20417), + 130: uint16(20436), + 131: uint16(20444), + 132: uint16(20441), + 133: uint16(20411), + 134: uint16(20403), + 135: uint16(20443), + 136: uint16(20423), + 137: uint16(20438), + 138: uint16(20410), + 139: uint16(20416), + 140: uint16(20409), + 141: uint16(20460), + 142: uint16(21060), + 143: uint16(21065), + 144: uint16(21184), + 145: uint16(21186), + 146: uint16(21309), + 147: uint16(21372), + 148: uint16(21399), + 149: uint16(21398), + 150: uint16(21401), + 151: uint16(21400), + 152: uint16(21690), + 153: uint16(21665), + 154: uint16(21677), + 155: uint16(21669), + 156: uint16(21711), + }, + 45: { + 0: uint16(21699), + 1: uint16(33549), + 2: uint16(21687), + 3: uint16(21678), + 4: uint16(21718), + 5: uint16(21686), + 6: uint16(21701), + 7: uint16(21702), + 8: uint16(21664), + 9: uint16(21616), + 10: uint16(21692), + 11: uint16(21666), + 12: uint16(21694), + 13: uint16(21618), + 14: uint16(21726), + 15: uint16(21680), + 16: uint16(22453), + 17: uint16(22430), + 18: uint16(22431), + 19: uint16(22436), + 20: uint16(22412), + 21: uint16(22423), + 22: uint16(22429), + 23: uint16(22427), + 24: uint16(22420), + 25: uint16(22424), + 26: uint16(22415), + 27: uint16(22425), + 28: uint16(22437), + 29: uint16(22426), + 30: uint16(22421), + 31: uint16(22772), + 32: uint16(22797), + 33: uint16(22867), + 34: uint16(23009), + 35: uint16(23006), + 36: uint16(23022), + 37: uint16(23040), + 38: uint16(23025), + 39: uint16(23005), + 40: uint16(23034), + 41: uint16(23037), + 42: uint16(23036), + 43: uint16(23030), + 44: uint16(23012), + 45: uint16(23026), + 46: uint16(23031), + 47: uint16(23003), + 48: uint16(23017), + 49: uint16(23027), + 50: uint16(23029), + 51: uint16(23008), + 52: uint16(23038), + 53: uint16(23028), + 54: uint16(23021), + 55: uint16(23464), + 56: uint16(23628), + 57: uint16(23760), + 58: uint16(23768), + 59: uint16(23756), + 60: uint16(23767), + 61: uint16(23755), + 62: uint16(23771), + 63: uint16(23774), + 64: uint16(23770), + 65: uint16(23753), + 66: uint16(23751), + 67: uint16(23754), + 68: uint16(23766), + 69: uint16(23763), + 70: uint16(23764), + 71: uint16(23759), + 72: uint16(23752), + 73: uint16(23750), + 74: uint16(23758), + 75: uint16(23775), + 76: uint16(23800), + 77: uint16(24057), + 78: uint16(24097), + 79: uint16(24098), + 80: uint16(24099), + 81: uint16(24096), + 82: uint16(24100), + 83: uint16(24240), + 84: uint16(24228), + 85: uint16(24226), + 86: uint16(24219), + 87: uint16(24227), + 88: uint16(24229), + 89: uint16(24327), + 90: uint16(24366), + 91: uint16(24406), + 92: uint16(24454), + 93: uint16(24631), + 94: uint16(24633), + 95: uint16(24660), + 96: uint16(24690), + 97: uint16(24670), + 98: uint16(24645), + 99: uint16(24659), + 100: uint16(24647), + 101: uint16(24649), + 102: uint16(24667), + 103: uint16(24652), + 104: uint16(24640), + 105: uint16(24642), + 106: uint16(24671), + 107: uint16(24612), + 108: uint16(24644), + 109: uint16(24664), + 110: uint16(24678), + 111: uint16(24686), + 112: uint16(25154), + 113: uint16(25155), + 114: uint16(25295), + 115: uint16(25357), + 116: uint16(25355), + 117: uint16(25333), + 118: uint16(25358), + 119: uint16(25347), + 120: uint16(25323), + 121: uint16(25337), + 122: uint16(25359), + 123: uint16(25356), + 124: uint16(25336), + 125: uint16(25334), + 126: uint16(25344), + 127: uint16(25363), + 128: uint16(25364), + 129: uint16(25338), + 130: uint16(25365), + 131: uint16(25339), + 132: uint16(25328), + 133: uint16(25921), + 134: uint16(25923), + 135: uint16(26026), + 136: uint16(26047), + 137: uint16(26166), + 138: uint16(26145), + 139: uint16(26162), + 140: uint16(26165), + 141: uint16(26140), + 142: uint16(26150), + 143: uint16(26146), + 144: uint16(26163), + 145: uint16(26155), + 146: uint16(26170), + 147: uint16(26141), + 148: uint16(26164), + 149: uint16(26169), + 150: uint16(26158), + 151: uint16(26383), + 152: uint16(26384), + 153: uint16(26561), + 154: uint16(26610), + 155: uint16(26568), + 156: uint16(26554), + }, + 46: { + 0: uint16(26588), + 1: uint16(26555), + 2: uint16(26616), + 3: uint16(26584), + 4: uint16(26560), + 5: uint16(26551), + 6: uint16(26565), + 7: uint16(26603), + 8: uint16(26596), + 9: uint16(26591), + 10: uint16(26549), + 11: uint16(26573), + 12: uint16(26547), + 13: uint16(26615), + 14: uint16(26614), + 15: uint16(26606), + 16: uint16(26595), + 17: uint16(26562), + 18: uint16(26553), + 19: uint16(26574), + 20: uint16(26599), + 21: uint16(26608), + 22: uint16(26546), + 23: uint16(26620), + 24: uint16(26566), + 25: uint16(26605), + 26: uint16(26572), + 27: uint16(26542), + 28: uint16(26598), + 29: uint16(26587), + 30: uint16(26618), + 31: uint16(26569), + 32: uint16(26570), + 33: uint16(26563), + 34: uint16(26602), + 35: uint16(26571), + 36: uint16(27432), + 37: uint16(27522), + 38: uint16(27524), + 39: uint16(27574), + 40: uint16(27606), + 41: uint16(27608), + 42: uint16(27616), + 43: uint16(27680), + 44: uint16(27681), + 45: uint16(27944), + 46: uint16(27956), + 47: uint16(27949), + 48: uint16(27935), + 49: uint16(27964), + 50: uint16(27967), + 51: uint16(27922), + 52: uint16(27914), + 53: uint16(27866), + 54: uint16(27955), + 55: uint16(27908), + 56: uint16(27929), + 57: uint16(27962), + 58: uint16(27930), + 59: uint16(27921), + 60: uint16(27904), + 61: uint16(27933), + 62: uint16(27970), + 63: uint16(27905), + 64: uint16(27928), + 65: uint16(27959), + 66: uint16(27907), + 67: uint16(27919), + 68: uint16(27968), + 69: uint16(27911), + 70: uint16(27936), + 71: uint16(27948), + 72: uint16(27912), + 73: uint16(27938), + 74: uint16(27913), + 75: uint16(27920), + 76: uint16(28855), + 77: uint16(28831), + 78: uint16(28862), + 79: uint16(28849), + 80: uint16(28848), + 81: uint16(28833), + 82: uint16(28852), + 83: uint16(28853), + 84: uint16(28841), + 85: uint16(29249), + 86: uint16(29257), + 87: uint16(29258), + 88: uint16(29292), + 89: uint16(29296), + 90: uint16(29299), + 91: uint16(29294), + 92: uint16(29386), + 93: uint16(29412), + 94: uint16(29416), + 95: uint16(29419), + 96: uint16(29407), + 97: uint16(29418), + 98: uint16(29414), + 99: uint16(29411), + 100: uint16(29573), + 101: uint16(29644), + 102: uint16(29634), + 103: uint16(29640), + 104: uint16(29637), + 105: uint16(29625), + 106: uint16(29622), + 107: uint16(29621), + 108: uint16(29620), + 109: uint16(29675), + 110: uint16(29631), + 111: uint16(29639), + 112: uint16(29630), + 113: uint16(29635), + 114: uint16(29638), + 115: uint16(29624), + 116: uint16(29643), + 117: uint16(29932), + 118: uint16(29934), + 119: uint16(29998), + 120: uint16(30023), + 121: uint16(30024), + 122: uint16(30119), + 123: uint16(30122), + 124: uint16(30329), + 125: uint16(30404), + 126: uint16(30472), + 127: uint16(30467), + 128: uint16(30468), + 129: uint16(30469), + 130: uint16(30474), + 131: uint16(30455), + 132: uint16(30459), + 133: uint16(30458), + 134: uint16(30695), + 135: uint16(30696), + 136: uint16(30726), + 137: uint16(30737), + 138: uint16(30738), + 139: uint16(30725), + 140: uint16(30736), + 141: uint16(30735), + 142: uint16(30734), + 143: uint16(30729), + 144: uint16(30723), + 145: uint16(30739), + 146: uint16(31050), + 147: uint16(31052), + 148: uint16(31051), + 149: uint16(31045), + 150: uint16(31044), + 151: uint16(31189), + 152: uint16(31181), + 153: uint16(31183), + 154: uint16(31190), + 155: uint16(31182), + 156: uint16(31360), + }, + 47: { + 0: uint16(31358), + 1: uint16(31441), + 2: uint16(31488), + 3: uint16(31489), + 4: uint16(31866), + 5: uint16(31864), + 6: uint16(31865), + 7: uint16(31871), + 8: uint16(31872), + 9: uint16(31873), + 10: uint16(32003), + 11: uint16(32008), + 12: uint16(32001), + 13: uint16(32600), + 14: uint16(32657), + 15: uint16(32653), + 16: uint16(32702), + 17: uint16(32775), + 18: uint16(32782), + 19: uint16(32783), + 20: uint16(32788), + 21: uint16(32823), + 22: uint16(32984), + 23: uint16(32967), + 24: uint16(32992), + 25: uint16(32977), + 26: uint16(32968), + 27: uint16(32962), + 28: uint16(32976), + 29: uint16(32965), + 30: uint16(32995), + 31: uint16(32985), + 32: uint16(32988), + 33: uint16(32970), + 34: uint16(32981), + 35: uint16(32969), + 36: uint16(32975), + 37: uint16(32983), + 38: uint16(32998), + 39: uint16(32973), + 40: uint16(33279), + 41: uint16(33313), + 42: uint16(33428), + 43: uint16(33497), + 44: uint16(33534), + 45: uint16(33529), + 46: uint16(33543), + 47: uint16(33512), + 48: uint16(33536), + 49: uint16(33493), + 50: uint16(33594), + 51: uint16(33515), + 52: uint16(33494), + 53: uint16(33524), + 54: uint16(33516), + 55: uint16(33505), + 56: uint16(33522), + 57: uint16(33525), + 58: uint16(33548), + 59: uint16(33531), + 60: uint16(33526), + 61: uint16(33520), + 62: uint16(33514), + 63: uint16(33508), + 64: uint16(33504), + 65: uint16(33530), + 66: uint16(33523), + 67: uint16(33517), + 68: uint16(34423), + 69: uint16(34420), + 70: uint16(34428), + 71: uint16(34419), + 72: uint16(34881), + 73: uint16(34894), + 74: uint16(34919), + 75: uint16(34922), + 76: uint16(34921), + 77: uint16(35283), + 78: uint16(35332), + 79: uint16(35335), + 80: uint16(36210), + 81: uint16(36835), + 82: uint16(36833), + 83: uint16(36846), + 84: uint16(36832), + 85: uint16(37105), + 86: uint16(37053), + 87: uint16(37055), + 88: uint16(37077), + 89: uint16(37061), + 90: uint16(37054), + 91: uint16(37063), + 92: uint16(37067), + 93: uint16(37064), + 94: uint16(37332), + 95: uint16(37331), + 96: uint16(38484), + 97: uint16(38479), + 98: uint16(38481), + 99: uint16(38483), + 100: uint16(38474), + 101: uint16(38478), + 102: uint16(20510), + 103: uint16(20485), + 104: uint16(20487), + 105: uint16(20499), + 106: uint16(20514), + 107: uint16(20528), + 108: uint16(20507), + 109: uint16(20469), + 110: uint16(20468), + 111: uint16(20531), + 112: uint16(20535), + 113: uint16(20524), + 114: uint16(20470), + 115: uint16(20471), + 116: uint16(20503), + 117: uint16(20508), + 118: uint16(20512), + 119: uint16(20519), + 120: uint16(20533), + 121: uint16(20527), + 122: uint16(20529), + 123: uint16(20494), + 124: uint16(20826), + 125: uint16(20884), + 126: uint16(20883), + 127: uint16(20938), + 128: uint16(20932), + 129: uint16(20933), + 130: uint16(20936), + 131: uint16(20942), + 132: uint16(21089), + 133: uint16(21082), + 134: uint16(21074), + 135: uint16(21086), + 136: uint16(21087), + 137: uint16(21077), + 138: uint16(21090), + 139: uint16(21197), + 140: uint16(21262), + 141: uint16(21406), + 142: uint16(21798), + 143: uint16(21730), + 144: uint16(21783), + 145: uint16(21778), + 146: uint16(21735), + 147: uint16(21747), + 148: uint16(21732), + 149: uint16(21786), + 150: uint16(21759), + 151: uint16(21764), + 152: uint16(21768), + 153: uint16(21739), + 154: uint16(21777), + 155: uint16(21765), + 156: uint16(21745), + }, + 48: { + 0: uint16(21770), + 1: uint16(21755), + 2: uint16(21751), + 3: uint16(21752), + 4: uint16(21728), + 5: uint16(21774), + 6: uint16(21763), + 7: uint16(21771), + 8: uint16(22273), + 9: uint16(22274), + 10: uint16(22476), + 11: uint16(22578), + 12: uint16(22485), + 13: uint16(22482), + 14: uint16(22458), + 15: uint16(22470), + 16: uint16(22461), + 17: uint16(22460), + 18: uint16(22456), + 19: uint16(22454), + 20: uint16(22463), + 21: uint16(22471), + 22: uint16(22480), + 23: uint16(22457), + 24: uint16(22465), + 25: uint16(22798), + 26: uint16(22858), + 27: uint16(23065), + 28: uint16(23062), + 29: uint16(23085), + 30: uint16(23086), + 31: uint16(23061), + 32: uint16(23055), + 33: uint16(23063), + 34: uint16(23050), + 35: uint16(23070), + 36: uint16(23091), + 37: uint16(23404), + 38: uint16(23463), + 39: uint16(23469), + 40: uint16(23468), + 41: uint16(23555), + 42: uint16(23638), + 43: uint16(23636), + 44: uint16(23788), + 45: uint16(23807), + 46: uint16(23790), + 47: uint16(23793), + 48: uint16(23799), + 49: uint16(23808), + 50: uint16(23801), + 51: uint16(24105), + 52: uint16(24104), + 53: uint16(24232), + 54: uint16(24238), + 55: uint16(24234), + 56: uint16(24236), + 57: uint16(24371), + 58: uint16(24368), + 59: uint16(24423), + 60: uint16(24669), + 61: uint16(24666), + 62: uint16(24679), + 63: uint16(24641), + 64: uint16(24738), + 65: uint16(24712), + 66: uint16(24704), + 67: uint16(24722), + 68: uint16(24705), + 69: uint16(24733), + 70: uint16(24707), + 71: uint16(24725), + 72: uint16(24731), + 73: uint16(24727), + 74: uint16(24711), + 75: uint16(24732), + 76: uint16(24718), + 77: uint16(25113), + 78: uint16(25158), + 79: uint16(25330), + 80: uint16(25360), + 81: uint16(25430), + 82: uint16(25388), + 83: uint16(25412), + 84: uint16(25413), + 85: uint16(25398), + 86: uint16(25411), + 87: uint16(25572), + 88: uint16(25401), + 89: uint16(25419), + 90: uint16(25418), + 91: uint16(25404), + 92: uint16(25385), + 93: uint16(25409), + 94: uint16(25396), + 95: uint16(25432), + 96: uint16(25428), + 97: uint16(25433), + 98: uint16(25389), + 99: uint16(25415), + 100: uint16(25395), + 101: uint16(25434), + 102: uint16(25425), + 103: uint16(25400), + 104: uint16(25431), + 105: uint16(25408), + 106: uint16(25416), + 107: uint16(25930), + 108: uint16(25926), + 109: uint16(26054), + 110: uint16(26051), + 111: uint16(26052), + 112: uint16(26050), + 113: uint16(26186), + 114: uint16(26207), + 115: uint16(26183), + 116: uint16(26193), + 117: uint16(26386), + 118: uint16(26387), + 119: uint16(26655), + 120: uint16(26650), + 121: uint16(26697), + 122: uint16(26674), + 123: uint16(26675), + 124: uint16(26683), + 125: uint16(26699), + 126: uint16(26703), + 127: uint16(26646), + 128: uint16(26673), + 129: uint16(26652), + 130: uint16(26677), + 131: uint16(26667), + 132: uint16(26669), + 133: uint16(26671), + 134: uint16(26702), + 135: uint16(26692), + 136: uint16(26676), + 137: uint16(26653), + 138: uint16(26642), + 139: uint16(26644), + 140: uint16(26662), + 141: uint16(26664), + 142: uint16(26670), + 143: uint16(26701), + 144: uint16(26682), + 145: uint16(26661), + 146: uint16(26656), + 147: uint16(27436), + 148: uint16(27439), + 149: uint16(27437), + 150: uint16(27441), + 151: uint16(27444), + 152: uint16(27501), + 153: uint16(32898), + 154: uint16(27528), + 155: uint16(27622), + 156: uint16(27620), + }, + 49: { + 0: uint16(27624), + 1: uint16(27619), + 2: uint16(27618), + 3: uint16(27623), + 4: uint16(27685), + 5: uint16(28026), + 6: uint16(28003), + 7: uint16(28004), + 8: uint16(28022), + 9: uint16(27917), + 10: uint16(28001), + 11: uint16(28050), + 12: uint16(27992), + 13: uint16(28002), + 14: uint16(28013), + 15: uint16(28015), + 16: uint16(28049), + 17: uint16(28045), + 18: uint16(28143), + 19: uint16(28031), + 20: uint16(28038), + 21: uint16(27998), + 22: uint16(28007), + 23: uint16(28000), + 24: uint16(28055), + 25: uint16(28016), + 26: uint16(28028), + 27: uint16(27999), + 28: uint16(28034), + 29: uint16(28056), + 30: uint16(27951), + 31: uint16(28008), + 32: uint16(28043), + 33: uint16(28030), + 34: uint16(28032), + 35: uint16(28036), + 36: uint16(27926), + 37: uint16(28035), + 38: uint16(28027), + 39: uint16(28029), + 40: uint16(28021), + 41: uint16(28048), + 42: uint16(28892), + 43: uint16(28883), + 44: uint16(28881), + 45: uint16(28893), + 46: uint16(28875), + 47: uint16(32569), + 48: uint16(28898), + 49: uint16(28887), + 50: uint16(28882), + 51: uint16(28894), + 52: uint16(28896), + 53: uint16(28884), + 54: uint16(28877), + 55: uint16(28869), + 56: uint16(28870), + 57: uint16(28871), + 58: uint16(28890), + 59: uint16(28878), + 60: uint16(28897), + 61: uint16(29250), + 62: uint16(29304), + 63: uint16(29303), + 64: uint16(29302), + 65: uint16(29440), + 66: uint16(29434), + 67: uint16(29428), + 68: uint16(29438), + 69: uint16(29430), + 70: uint16(29427), + 71: uint16(29435), + 72: uint16(29441), + 73: uint16(29651), + 74: uint16(29657), + 75: uint16(29669), + 76: uint16(29654), + 77: uint16(29628), + 78: uint16(29671), + 79: uint16(29667), + 80: uint16(29673), + 81: uint16(29660), + 82: uint16(29650), + 83: uint16(29659), + 84: uint16(29652), + 85: uint16(29661), + 86: uint16(29658), + 87: uint16(29655), + 88: uint16(29656), + 89: uint16(29672), + 90: uint16(29918), + 91: uint16(29919), + 92: uint16(29940), + 93: uint16(29941), + 94: uint16(29985), + 95: uint16(30043), + 96: uint16(30047), + 97: uint16(30128), + 98: uint16(30145), + 99: uint16(30139), + 100: uint16(30148), + 101: uint16(30144), + 102: uint16(30143), + 103: uint16(30134), + 104: uint16(30138), + 105: uint16(30346), + 106: uint16(30409), + 107: uint16(30493), + 108: uint16(30491), + 109: uint16(30480), + 110: uint16(30483), + 111: uint16(30482), + 112: uint16(30499), + 113: uint16(30481), + 114: uint16(30485), + 115: uint16(30489), + 116: uint16(30490), + 117: uint16(30498), + 118: uint16(30503), + 119: uint16(30755), + 120: uint16(30764), + 121: uint16(30754), + 122: uint16(30773), + 123: uint16(30767), + 124: uint16(30760), + 125: uint16(30766), + 126: uint16(30763), + 127: uint16(30753), + 128: uint16(30761), + 129: uint16(30771), + 130: uint16(30762), + 131: uint16(30769), + 132: uint16(31060), + 133: uint16(31067), + 134: uint16(31055), + 135: uint16(31068), + 136: uint16(31059), + 137: uint16(31058), + 138: uint16(31057), + 139: uint16(31211), + 140: uint16(31212), + 141: uint16(31200), + 142: uint16(31214), + 143: uint16(31213), + 144: uint16(31210), + 145: uint16(31196), + 146: uint16(31198), + 147: uint16(31197), + 148: uint16(31366), + 149: uint16(31369), + 150: uint16(31365), + 151: uint16(31371), + 152: uint16(31372), + 153: uint16(31370), + 154: uint16(31367), + 155: uint16(31448), + 156: uint16(31504), + }, + 50: { + 0: uint16(31492), + 1: uint16(31507), + 2: uint16(31493), + 3: uint16(31503), + 4: uint16(31496), + 5: uint16(31498), + 6: uint16(31502), + 7: uint16(31497), + 8: uint16(31506), + 9: uint16(31876), + 10: uint16(31889), + 11: uint16(31882), + 12: uint16(31884), + 13: uint16(31880), + 14: uint16(31885), + 15: uint16(31877), + 16: uint16(32030), + 17: uint16(32029), + 18: uint16(32017), + 19: uint16(32014), + 20: uint16(32024), + 21: uint16(32022), + 22: uint16(32019), + 23: uint16(32031), + 24: uint16(32018), + 25: uint16(32015), + 26: uint16(32012), + 27: uint16(32604), + 28: uint16(32609), + 29: uint16(32606), + 30: uint16(32608), + 31: uint16(32605), + 32: uint16(32603), + 33: uint16(32662), + 34: uint16(32658), + 35: uint16(32707), + 36: uint16(32706), + 37: uint16(32704), + 38: uint16(32790), + 39: uint16(32830), + 40: uint16(32825), + 41: uint16(33018), + 42: uint16(33010), + 43: uint16(33017), + 44: uint16(33013), + 45: uint16(33025), + 46: uint16(33019), + 47: uint16(33024), + 48: uint16(33281), + 49: uint16(33327), + 50: uint16(33317), + 51: uint16(33587), + 52: uint16(33581), + 53: uint16(33604), + 54: uint16(33561), + 55: uint16(33617), + 56: uint16(33573), + 57: uint16(33622), + 58: uint16(33599), + 59: uint16(33601), + 60: uint16(33574), + 61: uint16(33564), + 62: uint16(33570), + 63: uint16(33602), + 64: uint16(33614), + 65: uint16(33563), + 66: uint16(33578), + 67: uint16(33544), + 68: uint16(33596), + 69: uint16(33613), + 70: uint16(33558), + 71: uint16(33572), + 72: uint16(33568), + 73: uint16(33591), + 74: uint16(33583), + 75: uint16(33577), + 76: uint16(33607), + 77: uint16(33605), + 78: uint16(33612), + 79: uint16(33619), + 80: uint16(33566), + 81: uint16(33580), + 82: uint16(33611), + 83: uint16(33575), + 84: uint16(33608), + 85: uint16(34387), + 86: uint16(34386), + 87: uint16(34466), + 88: uint16(34472), + 89: uint16(34454), + 90: uint16(34445), + 91: uint16(34449), + 92: uint16(34462), + 93: uint16(34439), + 94: uint16(34455), + 95: uint16(34438), + 96: uint16(34443), + 97: uint16(34458), + 98: uint16(34437), + 99: uint16(34469), + 100: uint16(34457), + 101: uint16(34465), + 102: uint16(34471), + 103: uint16(34453), + 104: uint16(34456), + 105: uint16(34446), + 106: uint16(34461), + 107: uint16(34448), + 108: uint16(34452), + 109: uint16(34883), + 110: uint16(34884), + 111: uint16(34925), + 112: uint16(34933), + 113: uint16(34934), + 114: uint16(34930), + 115: uint16(34944), + 116: uint16(34929), + 117: uint16(34943), + 118: uint16(34927), + 119: uint16(34947), + 120: uint16(34942), + 121: uint16(34932), + 122: uint16(34940), + 123: uint16(35346), + 124: uint16(35911), + 125: uint16(35927), + 126: uint16(35963), + 127: uint16(36004), + 128: uint16(36003), + 129: uint16(36214), + 130: uint16(36216), + 131: uint16(36277), + 132: uint16(36279), + 133: uint16(36278), + 134: uint16(36561), + 135: uint16(36563), + 136: uint16(36862), + 137: uint16(36853), + 138: uint16(36866), + 139: uint16(36863), + 140: uint16(36859), + 141: uint16(36868), + 142: uint16(36860), + 143: uint16(36854), + 144: uint16(37078), + 145: uint16(37088), + 146: uint16(37081), + 147: uint16(37082), + 148: uint16(37091), + 149: uint16(37087), + 150: uint16(37093), + 151: uint16(37080), + 152: uint16(37083), + 153: uint16(37079), + 154: uint16(37084), + 155: uint16(37092), + 156: uint16(37200), + }, + 51: { + 0: uint16(37198), + 1: uint16(37199), + 2: uint16(37333), + 3: uint16(37346), + 4: uint16(37338), + 5: uint16(38492), + 6: uint16(38495), + 7: uint16(38588), + 8: uint16(39139), + 9: uint16(39647), + 10: uint16(39727), + 11: uint16(20095), + 12: uint16(20592), + 13: uint16(20586), + 14: uint16(20577), + 15: uint16(20574), + 16: uint16(20576), + 17: uint16(20563), + 18: uint16(20555), + 19: uint16(20573), + 20: uint16(20594), + 21: uint16(20552), + 22: uint16(20557), + 23: uint16(20545), + 24: uint16(20571), + 25: uint16(20554), + 26: uint16(20578), + 27: uint16(20501), + 28: uint16(20549), + 29: uint16(20575), + 30: uint16(20585), + 31: uint16(20587), + 32: uint16(20579), + 33: uint16(20580), + 34: uint16(20550), + 35: uint16(20544), + 36: uint16(20590), + 37: uint16(20595), + 38: uint16(20567), + 39: uint16(20561), + 40: uint16(20944), + 41: uint16(21099), + 42: uint16(21101), + 43: uint16(21100), + 44: uint16(21102), + 45: uint16(21206), + 46: uint16(21203), + 47: uint16(21293), + 48: uint16(21404), + 49: uint16(21877), + 50: uint16(21878), + 51: uint16(21820), + 52: uint16(21837), + 53: uint16(21840), + 54: uint16(21812), + 55: uint16(21802), + 56: uint16(21841), + 57: uint16(21858), + 58: uint16(21814), + 59: uint16(21813), + 60: uint16(21808), + 61: uint16(21842), + 62: uint16(21829), + 63: uint16(21772), + 64: uint16(21810), + 65: uint16(21861), + 66: uint16(21838), + 67: uint16(21817), + 68: uint16(21832), + 69: uint16(21805), + 70: uint16(21819), + 71: uint16(21824), + 72: uint16(21835), + 73: uint16(22282), + 74: uint16(22279), + 75: uint16(22523), + 76: uint16(22548), + 77: uint16(22498), + 78: uint16(22518), + 79: uint16(22492), + 80: uint16(22516), + 81: uint16(22528), + 82: uint16(22509), + 83: uint16(22525), + 84: uint16(22536), + 85: uint16(22520), + 86: uint16(22539), + 87: uint16(22515), + 88: uint16(22479), + 89: uint16(22535), + 90: uint16(22510), + 91: uint16(22499), + 92: uint16(22514), + 93: uint16(22501), + 94: uint16(22508), + 95: uint16(22497), + 96: uint16(22542), + 97: uint16(22524), + 98: uint16(22544), + 99: uint16(22503), + 100: uint16(22529), + 101: uint16(22540), + 102: uint16(22513), + 103: uint16(22505), + 104: uint16(22512), + 105: uint16(22541), + 106: uint16(22532), + 107: uint16(22876), + 108: uint16(23136), + 109: uint16(23128), + 110: uint16(23125), + 111: uint16(23143), + 112: uint16(23134), + 113: uint16(23096), + 114: uint16(23093), + 115: uint16(23149), + 116: uint16(23120), + 117: uint16(23135), + 118: uint16(23141), + 119: uint16(23148), + 120: uint16(23123), + 121: uint16(23140), + 122: uint16(23127), + 123: uint16(23107), + 124: uint16(23133), + 125: uint16(23122), + 126: uint16(23108), + 127: uint16(23131), + 128: uint16(23112), + 129: uint16(23182), + 130: uint16(23102), + 131: uint16(23117), + 132: uint16(23097), + 133: uint16(23116), + 134: uint16(23152), + 135: uint16(23145), + 136: uint16(23111), + 137: uint16(23121), + 138: uint16(23126), + 139: uint16(23106), + 140: uint16(23132), + 141: uint16(23410), + 142: uint16(23406), + 143: uint16(23489), + 144: uint16(23488), + 145: uint16(23641), + 146: uint16(23838), + 147: uint16(23819), + 148: uint16(23837), + 149: uint16(23834), + 150: uint16(23840), + 151: uint16(23820), + 152: uint16(23848), + 153: uint16(23821), + 154: uint16(23846), + 155: uint16(23845), + 156: uint16(23823), + }, + 52: { + 0: uint16(23856), + 1: uint16(23826), + 2: uint16(23843), + 3: uint16(23839), + 4: uint16(23854), + 5: uint16(24126), + 6: uint16(24116), + 7: uint16(24241), + 8: uint16(24244), + 9: uint16(24249), + 10: uint16(24242), + 11: uint16(24243), + 12: uint16(24374), + 13: uint16(24376), + 14: uint16(24475), + 15: uint16(24470), + 16: uint16(24479), + 17: uint16(24714), + 18: uint16(24720), + 19: uint16(24710), + 20: uint16(24766), + 21: uint16(24752), + 22: uint16(24762), + 23: uint16(24787), + 24: uint16(24788), + 25: uint16(24783), + 26: uint16(24804), + 27: uint16(24793), + 28: uint16(24797), + 29: uint16(24776), + 30: uint16(24753), + 31: uint16(24795), + 32: uint16(24759), + 33: uint16(24778), + 34: uint16(24767), + 35: uint16(24771), + 36: uint16(24781), + 37: uint16(24768), + 38: uint16(25394), + 39: uint16(25445), + 40: uint16(25482), + 41: uint16(25474), + 42: uint16(25469), + 43: uint16(25533), + 44: uint16(25502), + 45: uint16(25517), + 46: uint16(25501), + 47: uint16(25495), + 48: uint16(25515), + 49: uint16(25486), + 50: uint16(25455), + 51: uint16(25479), + 52: uint16(25488), + 53: uint16(25454), + 54: uint16(25519), + 55: uint16(25461), + 56: uint16(25500), + 57: uint16(25453), + 58: uint16(25518), + 59: uint16(25468), + 60: uint16(25508), + 61: uint16(25403), + 62: uint16(25503), + 63: uint16(25464), + 64: uint16(25477), + 65: uint16(25473), + 66: uint16(25489), + 67: uint16(25485), + 68: uint16(25456), + 69: uint16(25939), + 70: uint16(26061), + 71: uint16(26213), + 72: uint16(26209), + 73: uint16(26203), + 74: uint16(26201), + 75: uint16(26204), + 76: uint16(26210), + 77: uint16(26392), + 78: uint16(26745), + 79: uint16(26759), + 80: uint16(26768), + 81: uint16(26780), + 82: uint16(26733), + 83: uint16(26734), + 84: uint16(26798), + 85: uint16(26795), + 86: uint16(26966), + 87: uint16(26735), + 88: uint16(26787), + 89: uint16(26796), + 90: uint16(26793), + 91: uint16(26741), + 92: uint16(26740), + 93: uint16(26802), + 94: uint16(26767), + 95: uint16(26743), + 96: uint16(26770), + 97: uint16(26748), + 98: uint16(26731), + 99: uint16(26738), + 100: uint16(26794), + 101: uint16(26752), + 102: uint16(26737), + 103: uint16(26750), + 104: uint16(26779), + 105: uint16(26774), + 106: uint16(26763), + 107: uint16(26784), + 108: uint16(26761), + 109: uint16(26788), + 110: uint16(26744), + 111: uint16(26747), + 112: uint16(26769), + 113: uint16(26764), + 114: uint16(26762), + 115: uint16(26749), + 116: uint16(27446), + 117: uint16(27443), + 118: uint16(27447), + 119: uint16(27448), + 120: uint16(27537), + 121: uint16(27535), + 122: uint16(27533), + 123: uint16(27534), + 124: uint16(27532), + 125: uint16(27690), + 126: uint16(28096), + 127: uint16(28075), + 128: uint16(28084), + 129: uint16(28083), + 130: uint16(28276), + 131: uint16(28076), + 132: uint16(28137), + 133: uint16(28130), + 134: uint16(28087), + 135: uint16(28150), + 136: uint16(28116), + 137: uint16(28160), + 138: uint16(28104), + 139: uint16(28128), + 140: uint16(28127), + 141: uint16(28118), + 142: uint16(28094), + 143: uint16(28133), + 144: uint16(28124), + 145: uint16(28125), + 146: uint16(28123), + 147: uint16(28148), + 148: uint16(28106), + 149: uint16(28093), + 150: uint16(28141), + 151: uint16(28144), + 152: uint16(28090), + 153: uint16(28117), + 154: uint16(28098), + 155: uint16(28111), + 156: uint16(28105), + }, + 53: { + 0: uint16(28112), + 1: uint16(28146), + 2: uint16(28115), + 3: uint16(28157), + 4: uint16(28119), + 5: uint16(28109), + 6: uint16(28131), + 7: uint16(28091), + 8: uint16(28922), + 9: uint16(28941), + 10: uint16(28919), + 11: uint16(28951), + 12: uint16(28916), + 13: uint16(28940), + 14: uint16(28912), + 15: uint16(28932), + 16: uint16(28915), + 17: uint16(28944), + 18: uint16(28924), + 19: uint16(28927), + 20: uint16(28934), + 21: uint16(28947), + 22: uint16(28928), + 23: uint16(28920), + 24: uint16(28918), + 25: uint16(28939), + 26: uint16(28930), + 27: uint16(28942), + 28: uint16(29310), + 29: uint16(29307), + 30: uint16(29308), + 31: uint16(29311), + 32: uint16(29469), + 33: uint16(29463), + 34: uint16(29447), + 35: uint16(29457), + 36: uint16(29464), + 37: uint16(29450), + 38: uint16(29448), + 39: uint16(29439), + 40: uint16(29455), + 41: uint16(29470), + 42: uint16(29576), + 43: uint16(29686), + 44: uint16(29688), + 45: uint16(29685), + 46: uint16(29700), + 47: uint16(29697), + 48: uint16(29693), + 49: uint16(29703), + 50: uint16(29696), + 51: uint16(29690), + 52: uint16(29692), + 53: uint16(29695), + 54: uint16(29708), + 55: uint16(29707), + 56: uint16(29684), + 57: uint16(29704), + 58: uint16(30052), + 59: uint16(30051), + 60: uint16(30158), + 61: uint16(30162), + 62: uint16(30159), + 63: uint16(30155), + 64: uint16(30156), + 65: uint16(30161), + 66: uint16(30160), + 67: uint16(30351), + 68: uint16(30345), + 69: uint16(30419), + 70: uint16(30521), + 71: uint16(30511), + 72: uint16(30509), + 73: uint16(30513), + 74: uint16(30514), + 75: uint16(30516), + 76: uint16(30515), + 77: uint16(30525), + 78: uint16(30501), + 79: uint16(30523), + 80: uint16(30517), + 81: uint16(30792), + 82: uint16(30802), + 83: uint16(30793), + 84: uint16(30797), + 85: uint16(30794), + 86: uint16(30796), + 87: uint16(30758), + 88: uint16(30789), + 89: uint16(30800), + 90: uint16(31076), + 91: uint16(31079), + 92: uint16(31081), + 93: uint16(31082), + 94: uint16(31075), + 95: uint16(31083), + 96: uint16(31073), + 97: uint16(31163), + 98: uint16(31226), + 99: uint16(31224), + 100: uint16(31222), + 101: uint16(31223), + 102: uint16(31375), + 103: uint16(31380), + 104: uint16(31376), + 105: uint16(31541), + 106: uint16(31559), + 107: uint16(31540), + 108: uint16(31525), + 109: uint16(31536), + 110: uint16(31522), + 111: uint16(31524), + 112: uint16(31539), + 113: uint16(31512), + 114: uint16(31530), + 115: uint16(31517), + 116: uint16(31537), + 117: uint16(31531), + 118: uint16(31533), + 119: uint16(31535), + 120: uint16(31538), + 121: uint16(31544), + 122: uint16(31514), + 123: uint16(31523), + 124: uint16(31892), + 125: uint16(31896), + 126: uint16(31894), + 127: uint16(31907), + 128: uint16(32053), + 129: uint16(32061), + 130: uint16(32056), + 131: uint16(32054), + 132: uint16(32058), + 133: uint16(32069), + 134: uint16(32044), + 135: uint16(32041), + 136: uint16(32065), + 137: uint16(32071), + 138: uint16(32062), + 139: uint16(32063), + 140: uint16(32074), + 141: uint16(32059), + 142: uint16(32040), + 143: uint16(32611), + 144: uint16(32661), + 145: uint16(32668), + 146: uint16(32669), + 147: uint16(32667), + 148: uint16(32714), + 149: uint16(32715), + 150: uint16(32717), + 151: uint16(32720), + 152: uint16(32721), + 153: uint16(32711), + 154: uint16(32719), + 155: uint16(32713), + 156: uint16(32799), + }, + 54: { + 0: uint16(32798), + 1: uint16(32795), + 2: uint16(32839), + 3: uint16(32835), + 4: uint16(32840), + 5: uint16(33048), + 6: uint16(33061), + 7: uint16(33049), + 8: uint16(33051), + 9: uint16(33069), + 10: uint16(33055), + 11: uint16(33068), + 12: uint16(33054), + 13: uint16(33057), + 14: uint16(33045), + 15: uint16(33063), + 16: uint16(33053), + 17: uint16(33058), + 18: uint16(33297), + 19: uint16(33336), + 20: uint16(33331), + 21: uint16(33338), + 22: uint16(33332), + 23: uint16(33330), + 24: uint16(33396), + 25: uint16(33680), + 26: uint16(33699), + 27: uint16(33704), + 28: uint16(33677), + 29: uint16(33658), + 30: uint16(33651), + 31: uint16(33700), + 32: uint16(33652), + 33: uint16(33679), + 34: uint16(33665), + 35: uint16(33685), + 36: uint16(33689), + 37: uint16(33653), + 38: uint16(33684), + 39: uint16(33705), + 40: uint16(33661), + 41: uint16(33667), + 42: uint16(33676), + 43: uint16(33693), + 44: uint16(33691), + 45: uint16(33706), + 46: uint16(33675), + 47: uint16(33662), + 48: uint16(33701), + 49: uint16(33711), + 50: uint16(33672), + 51: uint16(33687), + 52: uint16(33712), + 53: uint16(33663), + 54: uint16(33702), + 55: uint16(33671), + 56: uint16(33710), + 57: uint16(33654), + 58: uint16(33690), + 59: uint16(34393), + 60: uint16(34390), + 61: uint16(34495), + 62: uint16(34487), + 63: uint16(34498), + 64: uint16(34497), + 65: uint16(34501), + 66: uint16(34490), + 67: uint16(34480), + 68: uint16(34504), + 69: uint16(34489), + 70: uint16(34483), + 71: uint16(34488), + 72: uint16(34508), + 73: uint16(34484), + 74: uint16(34491), + 75: uint16(34492), + 76: uint16(34499), + 77: uint16(34493), + 78: uint16(34494), + 79: uint16(34898), + 80: uint16(34953), + 81: uint16(34965), + 82: uint16(34984), + 83: uint16(34978), + 84: uint16(34986), + 85: uint16(34970), + 86: uint16(34961), + 87: uint16(34977), + 88: uint16(34975), + 89: uint16(34968), + 90: uint16(34983), + 91: uint16(34969), + 92: uint16(34971), + 93: uint16(34967), + 94: uint16(34980), + 95: uint16(34988), + 96: uint16(34956), + 97: uint16(34963), + 98: uint16(34958), + 99: uint16(35202), + 100: uint16(35286), + 101: uint16(35289), + 102: uint16(35285), + 103: uint16(35376), + 104: uint16(35367), + 105: uint16(35372), + 106: uint16(35358), + 107: uint16(35897), + 108: uint16(35899), + 109: uint16(35932), + 110: uint16(35933), + 111: uint16(35965), + 112: uint16(36005), + 113: uint16(36221), + 114: uint16(36219), + 115: uint16(36217), + 116: uint16(36284), + 117: uint16(36290), + 118: uint16(36281), + 119: uint16(36287), + 120: uint16(36289), + 121: uint16(36568), + 122: uint16(36574), + 123: uint16(36573), + 124: uint16(36572), + 125: uint16(36567), + 126: uint16(36576), + 127: uint16(36577), + 128: uint16(36900), + 129: uint16(36875), + 130: uint16(36881), + 131: uint16(36892), + 132: uint16(36876), + 133: uint16(36897), + 134: uint16(37103), + 135: uint16(37098), + 136: uint16(37104), + 137: uint16(37108), + 138: uint16(37106), + 139: uint16(37107), + 140: uint16(37076), + 141: uint16(37099), + 142: uint16(37100), + 143: uint16(37097), + 144: uint16(37206), + 145: uint16(37208), + 146: uint16(37210), + 147: uint16(37203), + 148: uint16(37205), + 149: uint16(37356), + 150: uint16(37364), + 151: uint16(37361), + 152: uint16(37363), + 153: uint16(37368), + 154: uint16(37348), + 155: uint16(37369), + 156: uint16(37354), + }, + 55: { + 0: uint16(37355), + 1: uint16(37367), + 2: uint16(37352), + 3: uint16(37358), + 4: uint16(38266), + 5: uint16(38278), + 6: uint16(38280), + 7: uint16(38524), + 8: uint16(38509), + 9: uint16(38507), + 10: uint16(38513), + 11: uint16(38511), + 12: uint16(38591), + 13: uint16(38762), + 14: uint16(38916), + 15: uint16(39141), + 16: uint16(39319), + 17: uint16(20635), + 18: uint16(20629), + 19: uint16(20628), + 20: uint16(20638), + 21: uint16(20619), + 22: uint16(20643), + 23: uint16(20611), + 24: uint16(20620), + 25: uint16(20622), + 26: uint16(20637), + 27: uint16(20584), + 28: uint16(20636), + 29: uint16(20626), + 30: uint16(20610), + 31: uint16(20615), + 32: uint16(20831), + 33: uint16(20948), + 34: uint16(21266), + 35: uint16(21265), + 36: uint16(21412), + 37: uint16(21415), + 38: uint16(21905), + 39: uint16(21928), + 40: uint16(21925), + 41: uint16(21933), + 42: uint16(21879), + 43: uint16(22085), + 44: uint16(21922), + 45: uint16(21907), + 46: uint16(21896), + 47: uint16(21903), + 48: uint16(21941), + 49: uint16(21889), + 50: uint16(21923), + 51: uint16(21906), + 52: uint16(21924), + 53: uint16(21885), + 54: uint16(21900), + 55: uint16(21926), + 56: uint16(21887), + 57: uint16(21909), + 58: uint16(21921), + 59: uint16(21902), + 60: uint16(22284), + 61: uint16(22569), + 62: uint16(22583), + 63: uint16(22553), + 64: uint16(22558), + 65: uint16(22567), + 66: uint16(22563), + 67: uint16(22568), + 68: uint16(22517), + 69: uint16(22600), + 70: uint16(22565), + 71: uint16(22556), + 72: uint16(22555), + 73: uint16(22579), + 74: uint16(22591), + 75: uint16(22582), + 76: uint16(22574), + 77: uint16(22585), + 78: uint16(22584), + 79: uint16(22573), + 80: uint16(22572), + 81: uint16(22587), + 82: uint16(22881), + 83: uint16(23215), + 84: uint16(23188), + 85: uint16(23199), + 86: uint16(23162), + 87: uint16(23202), + 88: uint16(23198), + 89: uint16(23160), + 90: uint16(23206), + 91: uint16(23164), + 92: uint16(23205), + 93: uint16(23212), + 94: uint16(23189), + 95: uint16(23214), + 96: uint16(23095), + 97: uint16(23172), + 98: uint16(23178), + 99: uint16(23191), + 100: uint16(23171), + 101: uint16(23179), + 102: uint16(23209), + 103: uint16(23163), + 104: uint16(23165), + 105: uint16(23180), + 106: uint16(23196), + 107: uint16(23183), + 108: uint16(23187), + 109: uint16(23197), + 110: uint16(23530), + 111: uint16(23501), + 112: uint16(23499), + 113: uint16(23508), + 114: uint16(23505), + 115: uint16(23498), + 116: uint16(23502), + 117: uint16(23564), + 118: uint16(23600), + 119: uint16(23863), + 120: uint16(23875), + 121: uint16(23915), + 122: uint16(23873), + 123: uint16(23883), + 124: uint16(23871), + 125: uint16(23861), + 126: uint16(23889), + 127: uint16(23886), + 128: uint16(23893), + 129: uint16(23859), + 130: uint16(23866), + 131: uint16(23890), + 132: uint16(23869), + 133: uint16(23857), + 134: uint16(23897), + 135: uint16(23874), + 136: uint16(23865), + 137: uint16(23881), + 138: uint16(23864), + 139: uint16(23868), + 140: uint16(23858), + 141: uint16(23862), + 142: uint16(23872), + 143: uint16(23877), + 144: uint16(24132), + 145: uint16(24129), + 146: uint16(24408), + 147: uint16(24486), + 148: uint16(24485), + 149: uint16(24491), + 150: uint16(24777), + 151: uint16(24761), + 152: uint16(24780), + 153: uint16(24802), + 154: uint16(24782), + 155: uint16(24772), + 156: uint16(24852), + }, + 56: { + 0: uint16(24818), + 1: uint16(24842), + 2: uint16(24854), + 3: uint16(24837), + 4: uint16(24821), + 5: uint16(24851), + 6: uint16(24824), + 7: uint16(24828), + 8: uint16(24830), + 9: uint16(24769), + 10: uint16(24835), + 11: uint16(24856), + 12: uint16(24861), + 13: uint16(24848), + 14: uint16(24831), + 15: uint16(24836), + 16: uint16(24843), + 17: uint16(25162), + 18: uint16(25492), + 19: uint16(25521), + 20: uint16(25520), + 21: uint16(25550), + 22: uint16(25573), + 23: uint16(25576), + 24: uint16(25583), + 25: uint16(25539), + 26: uint16(25757), + 27: uint16(25587), + 28: uint16(25546), + 29: uint16(25568), + 30: uint16(25590), + 31: uint16(25557), + 32: uint16(25586), + 33: uint16(25589), + 34: uint16(25697), + 35: uint16(25567), + 36: uint16(25534), + 37: uint16(25565), + 38: uint16(25564), + 39: uint16(25540), + 40: uint16(25560), + 41: uint16(25555), + 42: uint16(25538), + 43: uint16(25543), + 44: uint16(25548), + 45: uint16(25547), + 46: uint16(25544), + 47: uint16(25584), + 48: uint16(25559), + 49: uint16(25561), + 50: uint16(25906), + 51: uint16(25959), + 52: uint16(25962), + 53: uint16(25956), + 54: uint16(25948), + 55: uint16(25960), + 56: uint16(25957), + 57: uint16(25996), + 58: uint16(26013), + 59: uint16(26014), + 60: uint16(26030), + 61: uint16(26064), + 62: uint16(26066), + 63: uint16(26236), + 64: uint16(26220), + 65: uint16(26235), + 66: uint16(26240), + 67: uint16(26225), + 68: uint16(26233), + 69: uint16(26218), + 70: uint16(26226), + 71: uint16(26369), + 72: uint16(26892), + 73: uint16(26835), + 74: uint16(26884), + 75: uint16(26844), + 76: uint16(26922), + 77: uint16(26860), + 78: uint16(26858), + 79: uint16(26865), + 80: uint16(26895), + 81: uint16(26838), + 82: uint16(26871), + 83: uint16(26859), + 84: uint16(26852), + 85: uint16(26870), + 86: uint16(26899), + 87: uint16(26896), + 88: uint16(26867), + 89: uint16(26849), + 90: uint16(26887), + 91: uint16(26828), + 92: uint16(26888), + 93: uint16(26992), + 94: uint16(26804), + 95: uint16(26897), + 96: uint16(26863), + 97: uint16(26822), + 98: uint16(26900), + 99: uint16(26872), + 100: uint16(26832), + 101: uint16(26877), + 102: uint16(26876), + 103: uint16(26856), + 104: uint16(26891), + 105: uint16(26890), + 106: uint16(26903), + 107: uint16(26830), + 108: uint16(26824), + 109: uint16(26845), + 110: uint16(26846), + 111: uint16(26854), + 112: uint16(26868), + 113: uint16(26833), + 114: uint16(26886), + 115: uint16(26836), + 116: uint16(26857), + 117: uint16(26901), + 118: uint16(26917), + 119: uint16(26823), + 120: uint16(27449), + 121: uint16(27451), + 122: uint16(27455), + 123: uint16(27452), + 124: uint16(27540), + 125: uint16(27543), + 126: uint16(27545), + 127: uint16(27541), + 128: uint16(27581), + 129: uint16(27632), + 130: uint16(27634), + 131: uint16(27635), + 132: uint16(27696), + 133: uint16(28156), + 134: uint16(28230), + 135: uint16(28231), + 136: uint16(28191), + 137: uint16(28233), + 138: uint16(28296), + 139: uint16(28220), + 140: uint16(28221), + 141: uint16(28229), + 142: uint16(28258), + 143: uint16(28203), + 144: uint16(28223), + 145: uint16(28225), + 146: uint16(28253), + 147: uint16(28275), + 148: uint16(28188), + 149: uint16(28211), + 150: uint16(28235), + 151: uint16(28224), + 152: uint16(28241), + 153: uint16(28219), + 154: uint16(28163), + 155: uint16(28206), + 156: uint16(28254), + }, + 57: { + 0: uint16(28264), + 1: uint16(28252), + 2: uint16(28257), + 3: uint16(28209), + 4: uint16(28200), + 5: uint16(28256), + 6: uint16(28273), + 7: uint16(28267), + 8: uint16(28217), + 9: uint16(28194), + 10: uint16(28208), + 11: uint16(28243), + 12: uint16(28261), + 13: uint16(28199), + 14: uint16(28280), + 15: uint16(28260), + 16: uint16(28279), + 17: uint16(28245), + 18: uint16(28281), + 19: uint16(28242), + 20: uint16(28262), + 21: uint16(28213), + 22: uint16(28214), + 23: uint16(28250), + 24: uint16(28960), + 25: uint16(28958), + 26: uint16(28975), + 27: uint16(28923), + 28: uint16(28974), + 29: uint16(28977), + 30: uint16(28963), + 31: uint16(28965), + 32: uint16(28962), + 33: uint16(28978), + 34: uint16(28959), + 35: uint16(28968), + 36: uint16(28986), + 37: uint16(28955), + 38: uint16(29259), + 39: uint16(29274), + 40: uint16(29320), + 41: uint16(29321), + 42: uint16(29318), + 43: uint16(29317), + 44: uint16(29323), + 45: uint16(29458), + 46: uint16(29451), + 47: uint16(29488), + 48: uint16(29474), + 49: uint16(29489), + 50: uint16(29491), + 51: uint16(29479), + 52: uint16(29490), + 53: uint16(29485), + 54: uint16(29478), + 55: uint16(29475), + 56: uint16(29493), + 57: uint16(29452), + 58: uint16(29742), + 59: uint16(29740), + 60: uint16(29744), + 61: uint16(29739), + 62: uint16(29718), + 63: uint16(29722), + 64: uint16(29729), + 65: uint16(29741), + 66: uint16(29745), + 67: uint16(29732), + 68: uint16(29731), + 69: uint16(29725), + 70: uint16(29737), + 71: uint16(29728), + 72: uint16(29746), + 73: uint16(29947), + 74: uint16(29999), + 75: uint16(30063), + 76: uint16(30060), + 77: uint16(30183), + 78: uint16(30170), + 79: uint16(30177), + 80: uint16(30182), + 81: uint16(30173), + 82: uint16(30175), + 83: uint16(30180), + 84: uint16(30167), + 85: uint16(30357), + 86: uint16(30354), + 87: uint16(30426), + 88: uint16(30534), + 89: uint16(30535), + 90: uint16(30532), + 91: uint16(30541), + 92: uint16(30533), + 93: uint16(30538), + 94: uint16(30542), + 95: uint16(30539), + 96: uint16(30540), + 97: uint16(30686), + 98: uint16(30700), + 99: uint16(30816), + 100: uint16(30820), + 101: uint16(30821), + 102: uint16(30812), + 103: uint16(30829), + 104: uint16(30833), + 105: uint16(30826), + 106: uint16(30830), + 107: uint16(30832), + 108: uint16(30825), + 109: uint16(30824), + 110: uint16(30814), + 111: uint16(30818), + 112: uint16(31092), + 113: uint16(31091), + 114: uint16(31090), + 115: uint16(31088), + 116: uint16(31234), + 117: uint16(31242), + 118: uint16(31235), + 119: uint16(31244), + 120: uint16(31236), + 121: uint16(31385), + 122: uint16(31462), + 123: uint16(31460), + 124: uint16(31562), + 125: uint16(31547), + 126: uint16(31556), + 127: uint16(31560), + 128: uint16(31564), + 129: uint16(31566), + 130: uint16(31552), + 131: uint16(31576), + 132: uint16(31557), + 133: uint16(31906), + 134: uint16(31902), + 135: uint16(31912), + 136: uint16(31905), + 137: uint16(32088), + 138: uint16(32111), + 139: uint16(32099), + 140: uint16(32083), + 141: uint16(32086), + 142: uint16(32103), + 143: uint16(32106), + 144: uint16(32079), + 145: uint16(32109), + 146: uint16(32092), + 147: uint16(32107), + 148: uint16(32082), + 149: uint16(32084), + 150: uint16(32105), + 151: uint16(32081), + 152: uint16(32095), + 153: uint16(32078), + 154: uint16(32574), + 155: uint16(32575), + 156: uint16(32613), + }, + 58: { + 0: uint16(32614), + 1: uint16(32674), + 2: uint16(32672), + 3: uint16(32673), + 4: uint16(32727), + 5: uint16(32849), + 6: uint16(32847), + 7: uint16(32848), + 8: uint16(33022), + 9: uint16(32980), + 10: uint16(33091), + 11: uint16(33098), + 12: uint16(33106), + 13: uint16(33103), + 14: uint16(33095), + 15: uint16(33085), + 16: uint16(33101), + 17: uint16(33082), + 18: uint16(33254), + 19: uint16(33262), + 20: uint16(33271), + 21: uint16(33272), + 22: uint16(33273), + 23: uint16(33284), + 24: uint16(33340), + 25: uint16(33341), + 26: uint16(33343), + 27: uint16(33397), + 28: uint16(33595), + 29: uint16(33743), + 30: uint16(33785), + 31: uint16(33827), + 32: uint16(33728), + 33: uint16(33768), + 34: uint16(33810), + 35: uint16(33767), + 36: uint16(33764), + 37: uint16(33788), + 38: uint16(33782), + 39: uint16(33808), + 40: uint16(33734), + 41: uint16(33736), + 42: uint16(33771), + 43: uint16(33763), + 44: uint16(33727), + 45: uint16(33793), + 46: uint16(33757), + 47: uint16(33765), + 48: uint16(33752), + 49: uint16(33791), + 50: uint16(33761), + 51: uint16(33739), + 52: uint16(33742), + 53: uint16(33750), + 54: uint16(33781), + 55: uint16(33737), + 56: uint16(33801), + 57: uint16(33807), + 58: uint16(33758), + 59: uint16(33809), + 60: uint16(33798), + 61: uint16(33730), + 62: uint16(33779), + 63: uint16(33749), + 64: uint16(33786), + 65: uint16(33735), + 66: uint16(33745), + 67: uint16(33770), + 68: uint16(33811), + 69: uint16(33731), + 70: uint16(33772), + 71: uint16(33774), + 72: uint16(33732), + 73: uint16(33787), + 74: uint16(33751), + 75: uint16(33762), + 76: uint16(33819), + 77: uint16(33755), + 78: uint16(33790), + 79: uint16(34520), + 80: uint16(34530), + 81: uint16(34534), + 82: uint16(34515), + 83: uint16(34531), + 84: uint16(34522), + 85: uint16(34538), + 86: uint16(34525), + 87: uint16(34539), + 88: uint16(34524), + 89: uint16(34540), + 90: uint16(34537), + 91: uint16(34519), + 92: uint16(34536), + 93: uint16(34513), + 94: uint16(34888), + 95: uint16(34902), + 96: uint16(34901), + 97: uint16(35002), + 98: uint16(35031), + 99: uint16(35001), + 100: uint16(35000), + 101: uint16(35008), + 102: uint16(35006), + 103: uint16(34998), + 104: uint16(35004), + 105: uint16(34999), + 106: uint16(35005), + 107: uint16(34994), + 108: uint16(35073), + 109: uint16(35017), + 110: uint16(35221), + 111: uint16(35224), + 112: uint16(35223), + 113: uint16(35293), + 114: uint16(35290), + 115: uint16(35291), + 116: uint16(35406), + 117: uint16(35405), + 118: uint16(35385), + 119: uint16(35417), + 120: uint16(35392), + 121: uint16(35415), + 122: uint16(35416), + 123: uint16(35396), + 124: uint16(35397), + 125: uint16(35410), + 126: uint16(35400), + 127: uint16(35409), + 128: uint16(35402), + 129: uint16(35404), + 130: uint16(35407), + 131: uint16(35935), + 132: uint16(35969), + 133: uint16(35968), + 134: uint16(36026), + 135: uint16(36030), + 136: uint16(36016), + 137: uint16(36025), + 138: uint16(36021), + 139: uint16(36228), + 140: uint16(36224), + 141: uint16(36233), + 142: uint16(36312), + 143: uint16(36307), + 144: uint16(36301), + 145: uint16(36295), + 146: uint16(36310), + 147: uint16(36316), + 148: uint16(36303), + 149: uint16(36309), + 150: uint16(36313), + 151: uint16(36296), + 152: uint16(36311), + 153: uint16(36293), + 154: uint16(36591), + 155: uint16(36599), + 156: uint16(36602), + }, + 59: { + 0: uint16(36601), + 1: uint16(36582), + 2: uint16(36590), + 3: uint16(36581), + 4: uint16(36597), + 5: uint16(36583), + 6: uint16(36584), + 7: uint16(36598), + 8: uint16(36587), + 9: uint16(36593), + 10: uint16(36588), + 11: uint16(36596), + 12: uint16(36585), + 13: uint16(36909), + 14: uint16(36916), + 15: uint16(36911), + 16: uint16(37126), + 17: uint16(37164), + 18: uint16(37124), + 19: uint16(37119), + 20: uint16(37116), + 21: uint16(37128), + 22: uint16(37113), + 23: uint16(37115), + 24: uint16(37121), + 25: uint16(37120), + 26: uint16(37127), + 27: uint16(37125), + 28: uint16(37123), + 29: uint16(37217), + 30: uint16(37220), + 31: uint16(37215), + 32: uint16(37218), + 33: uint16(37216), + 34: uint16(37377), + 35: uint16(37386), + 36: uint16(37413), + 37: uint16(37379), + 38: uint16(37402), + 39: uint16(37414), + 40: uint16(37391), + 41: uint16(37388), + 42: uint16(37376), + 43: uint16(37394), + 44: uint16(37375), + 45: uint16(37373), + 46: uint16(37382), + 47: uint16(37380), + 48: uint16(37415), + 49: uint16(37378), + 50: uint16(37404), + 51: uint16(37412), + 52: uint16(37401), + 53: uint16(37399), + 54: uint16(37381), + 55: uint16(37398), + 56: uint16(38267), + 57: uint16(38285), + 58: uint16(38284), + 59: uint16(38288), + 60: uint16(38535), + 61: uint16(38526), + 62: uint16(38536), + 63: uint16(38537), + 64: uint16(38531), + 65: uint16(38528), + 66: uint16(38594), + 67: uint16(38600), + 68: uint16(38595), + 69: uint16(38641), + 70: uint16(38640), + 71: uint16(38764), + 72: uint16(38768), + 73: uint16(38766), + 74: uint16(38919), + 75: uint16(39081), + 76: uint16(39147), + 77: uint16(40166), + 78: uint16(40697), + 79: uint16(20099), + 80: uint16(20100), + 81: uint16(20150), + 82: uint16(20669), + 83: uint16(20671), + 84: uint16(20678), + 85: uint16(20654), + 86: uint16(20676), + 87: uint16(20682), + 88: uint16(20660), + 89: uint16(20680), + 90: uint16(20674), + 91: uint16(20656), + 92: uint16(20673), + 93: uint16(20666), + 94: uint16(20657), + 95: uint16(20683), + 96: uint16(20681), + 97: uint16(20662), + 98: uint16(20664), + 99: uint16(20951), + 100: uint16(21114), + 101: uint16(21112), + 102: uint16(21115), + 103: uint16(21116), + 104: uint16(21955), + 105: uint16(21979), + 106: uint16(21964), + 107: uint16(21968), + 108: uint16(21963), + 109: uint16(21962), + 110: uint16(21981), + 111: uint16(21952), + 112: uint16(21972), + 113: uint16(21956), + 114: uint16(21993), + 115: uint16(21951), + 116: uint16(21970), + 117: uint16(21901), + 118: uint16(21967), + 119: uint16(21973), + 120: uint16(21986), + 121: uint16(21974), + 122: uint16(21960), + 123: uint16(22002), + 124: uint16(21965), + 125: uint16(21977), + 126: uint16(21954), + 127: uint16(22292), + 128: uint16(22611), + 129: uint16(22632), + 130: uint16(22628), + 131: uint16(22607), + 132: uint16(22605), + 133: uint16(22601), + 134: uint16(22639), + 135: uint16(22613), + 136: uint16(22606), + 137: uint16(22621), + 138: uint16(22617), + 139: uint16(22629), + 140: uint16(22619), + 141: uint16(22589), + 142: uint16(22627), + 143: uint16(22641), + 144: uint16(22780), + 145: uint16(23239), + 146: uint16(23236), + 147: uint16(23243), + 148: uint16(23226), + 149: uint16(23224), + 150: uint16(23217), + 151: uint16(23221), + 152: uint16(23216), + 153: uint16(23231), + 154: uint16(23240), + 155: uint16(23227), + 156: uint16(23238), + }, + 60: { + 0: uint16(23223), + 1: uint16(23232), + 2: uint16(23242), + 3: uint16(23220), + 4: uint16(23222), + 5: uint16(23245), + 6: uint16(23225), + 7: uint16(23184), + 8: uint16(23510), + 9: uint16(23512), + 10: uint16(23513), + 11: uint16(23583), + 12: uint16(23603), + 13: uint16(23921), + 14: uint16(23907), + 15: uint16(23882), + 16: uint16(23909), + 17: uint16(23922), + 18: uint16(23916), + 19: uint16(23902), + 20: uint16(23912), + 21: uint16(23911), + 22: uint16(23906), + 23: uint16(24048), + 24: uint16(24143), + 25: uint16(24142), + 26: uint16(24138), + 27: uint16(24141), + 28: uint16(24139), + 29: uint16(24261), + 30: uint16(24268), + 31: uint16(24262), + 32: uint16(24267), + 33: uint16(24263), + 34: uint16(24384), + 35: uint16(24495), + 36: uint16(24493), + 37: uint16(24823), + 38: uint16(24905), + 39: uint16(24906), + 40: uint16(24875), + 41: uint16(24901), + 42: uint16(24886), + 43: uint16(24882), + 44: uint16(24878), + 45: uint16(24902), + 46: uint16(24879), + 47: uint16(24911), + 48: uint16(24873), + 49: uint16(24896), + 50: uint16(25120), + 51: uint16(37224), + 52: uint16(25123), + 53: uint16(25125), + 54: uint16(25124), + 55: uint16(25541), + 56: uint16(25585), + 57: uint16(25579), + 58: uint16(25616), + 59: uint16(25618), + 60: uint16(25609), + 61: uint16(25632), + 62: uint16(25636), + 63: uint16(25651), + 64: uint16(25667), + 65: uint16(25631), + 66: uint16(25621), + 67: uint16(25624), + 68: uint16(25657), + 69: uint16(25655), + 70: uint16(25634), + 71: uint16(25635), + 72: uint16(25612), + 73: uint16(25638), + 74: uint16(25648), + 75: uint16(25640), + 76: uint16(25665), + 77: uint16(25653), + 78: uint16(25647), + 79: uint16(25610), + 80: uint16(25626), + 81: uint16(25664), + 82: uint16(25637), + 83: uint16(25639), + 84: uint16(25611), + 85: uint16(25575), + 86: uint16(25627), + 87: uint16(25646), + 88: uint16(25633), + 89: uint16(25614), + 90: uint16(25967), + 91: uint16(26002), + 92: uint16(26067), + 93: uint16(26246), + 94: uint16(26252), + 95: uint16(26261), + 96: uint16(26256), + 97: uint16(26251), + 98: uint16(26250), + 99: uint16(26265), + 100: uint16(26260), + 101: uint16(26232), + 102: uint16(26400), + 103: uint16(26982), + 104: uint16(26975), + 105: uint16(26936), + 106: uint16(26958), + 107: uint16(26978), + 108: uint16(26993), + 109: uint16(26943), + 110: uint16(26949), + 111: uint16(26986), + 112: uint16(26937), + 113: uint16(26946), + 114: uint16(26967), + 115: uint16(26969), + 116: uint16(27002), + 117: uint16(26952), + 118: uint16(26953), + 119: uint16(26933), + 120: uint16(26988), + 121: uint16(26931), + 122: uint16(26941), + 123: uint16(26981), + 124: uint16(26864), + 125: uint16(27000), + 126: uint16(26932), + 127: uint16(26985), + 128: uint16(26944), + 129: uint16(26991), + 130: uint16(26948), + 131: uint16(26998), + 132: uint16(26968), + 133: uint16(26945), + 134: uint16(26996), + 135: uint16(26956), + 136: uint16(26939), + 137: uint16(26955), + 138: uint16(26935), + 139: uint16(26972), + 140: uint16(26959), + 141: uint16(26961), + 142: uint16(26930), + 143: uint16(26962), + 144: uint16(26927), + 145: uint16(27003), + 146: uint16(26940), + 147: uint16(27462), + 148: uint16(27461), + 149: uint16(27459), + 150: uint16(27458), + 151: uint16(27464), + 152: uint16(27457), + 153: uint16(27547), + 154: uint16(64013), + 155: uint16(27643), + 156: uint16(27644), + }, + 61: { + 0: uint16(27641), + 1: uint16(27639), + 2: uint16(27640), + 3: uint16(28315), + 4: uint16(28374), + 5: uint16(28360), + 6: uint16(28303), + 7: uint16(28352), + 8: uint16(28319), + 9: uint16(28307), + 10: uint16(28308), + 11: uint16(28320), + 12: uint16(28337), + 13: uint16(28345), + 14: uint16(28358), + 15: uint16(28370), + 16: uint16(28349), + 17: uint16(28353), + 18: uint16(28318), + 19: uint16(28361), + 20: uint16(28343), + 21: uint16(28336), + 22: uint16(28365), + 23: uint16(28326), + 24: uint16(28367), + 25: uint16(28338), + 26: uint16(28350), + 27: uint16(28355), + 28: uint16(28380), + 29: uint16(28376), + 30: uint16(28313), + 31: uint16(28306), + 32: uint16(28302), + 33: uint16(28301), + 34: uint16(28324), + 35: uint16(28321), + 36: uint16(28351), + 37: uint16(28339), + 38: uint16(28368), + 39: uint16(28362), + 40: uint16(28311), + 41: uint16(28334), + 42: uint16(28323), + 43: uint16(28999), + 44: uint16(29012), + 45: uint16(29010), + 46: uint16(29027), + 47: uint16(29024), + 48: uint16(28993), + 49: uint16(29021), + 50: uint16(29026), + 51: uint16(29042), + 52: uint16(29048), + 53: uint16(29034), + 54: uint16(29025), + 55: uint16(28994), + 56: uint16(29016), + 57: uint16(28995), + 58: uint16(29003), + 59: uint16(29040), + 60: uint16(29023), + 61: uint16(29008), + 62: uint16(29011), + 63: uint16(28996), + 64: uint16(29005), + 65: uint16(29018), + 66: uint16(29263), + 67: uint16(29325), + 68: uint16(29324), + 69: uint16(29329), + 70: uint16(29328), + 71: uint16(29326), + 72: uint16(29500), + 73: uint16(29506), + 74: uint16(29499), + 75: uint16(29498), + 76: uint16(29504), + 77: uint16(29514), + 78: uint16(29513), + 79: uint16(29764), + 80: uint16(29770), + 81: uint16(29771), + 82: uint16(29778), + 83: uint16(29777), + 84: uint16(29783), + 85: uint16(29760), + 86: uint16(29775), + 87: uint16(29776), + 88: uint16(29774), + 89: uint16(29762), + 90: uint16(29766), + 91: uint16(29773), + 92: uint16(29780), + 93: uint16(29921), + 94: uint16(29951), + 95: uint16(29950), + 96: uint16(29949), + 97: uint16(29981), + 98: uint16(30073), + 99: uint16(30071), + 100: uint16(27011), + 101: uint16(30191), + 102: uint16(30223), + 103: uint16(30211), + 104: uint16(30199), + 105: uint16(30206), + 106: uint16(30204), + 107: uint16(30201), + 108: uint16(30200), + 109: uint16(30224), + 110: uint16(30203), + 111: uint16(30198), + 112: uint16(30189), + 113: uint16(30197), + 114: uint16(30205), + 115: uint16(30361), + 116: uint16(30389), + 117: uint16(30429), + 118: uint16(30549), + 119: uint16(30559), + 120: uint16(30560), + 121: uint16(30546), + 122: uint16(30550), + 123: uint16(30554), + 124: uint16(30569), + 125: uint16(30567), + 126: uint16(30548), + 127: uint16(30553), + 128: uint16(30573), + 129: uint16(30688), + 130: uint16(30855), + 131: uint16(30874), + 132: uint16(30868), + 133: uint16(30863), + 134: uint16(30852), + 135: uint16(30869), + 136: uint16(30853), + 137: uint16(30854), + 138: uint16(30881), + 139: uint16(30851), + 140: uint16(30841), + 141: uint16(30873), + 142: uint16(30848), + 143: uint16(30870), + 144: uint16(30843), + 145: uint16(31100), + 146: uint16(31106), + 147: uint16(31101), + 148: uint16(31097), + 149: uint16(31249), + 150: uint16(31256), + 151: uint16(31257), + 152: uint16(31250), + 153: uint16(31255), + 154: uint16(31253), + 155: uint16(31266), + 156: uint16(31251), + }, + 62: { + 0: uint16(31259), + 1: uint16(31248), + 2: uint16(31395), + 3: uint16(31394), + 4: uint16(31390), + 5: uint16(31467), + 6: uint16(31590), + 7: uint16(31588), + 8: uint16(31597), + 9: uint16(31604), + 10: uint16(31593), + 11: uint16(31602), + 12: uint16(31589), + 13: uint16(31603), + 14: uint16(31601), + 15: uint16(31600), + 16: uint16(31585), + 17: uint16(31608), + 18: uint16(31606), + 19: uint16(31587), + 20: uint16(31922), + 21: uint16(31924), + 22: uint16(31919), + 23: uint16(32136), + 24: uint16(32134), + 25: uint16(32128), + 26: uint16(32141), + 27: uint16(32127), + 28: uint16(32133), + 29: uint16(32122), + 30: uint16(32142), + 31: uint16(32123), + 32: uint16(32131), + 33: uint16(32124), + 34: uint16(32140), + 35: uint16(32148), + 36: uint16(32132), + 37: uint16(32125), + 38: uint16(32146), + 39: uint16(32621), + 40: uint16(32619), + 41: uint16(32615), + 42: uint16(32616), + 43: uint16(32620), + 44: uint16(32678), + 45: uint16(32677), + 46: uint16(32679), + 47: uint16(32731), + 48: uint16(32732), + 49: uint16(32801), + 50: uint16(33124), + 51: uint16(33120), + 52: uint16(33143), + 53: uint16(33116), + 54: uint16(33129), + 55: uint16(33115), + 56: uint16(33122), + 57: uint16(33138), + 58: uint16(26401), + 59: uint16(33118), + 60: uint16(33142), + 61: uint16(33127), + 62: uint16(33135), + 63: uint16(33092), + 64: uint16(33121), + 65: uint16(33309), + 66: uint16(33353), + 67: uint16(33348), + 68: uint16(33344), + 69: uint16(33346), + 70: uint16(33349), + 71: uint16(34033), + 72: uint16(33855), + 73: uint16(33878), + 74: uint16(33910), + 75: uint16(33913), + 76: uint16(33935), + 77: uint16(33933), + 78: uint16(33893), + 79: uint16(33873), + 80: uint16(33856), + 81: uint16(33926), + 82: uint16(33895), + 83: uint16(33840), + 84: uint16(33869), + 85: uint16(33917), + 86: uint16(33882), + 87: uint16(33881), + 88: uint16(33908), + 89: uint16(33907), + 90: uint16(33885), + 91: uint16(34055), + 92: uint16(33886), + 93: uint16(33847), + 94: uint16(33850), + 95: uint16(33844), + 96: uint16(33914), + 97: uint16(33859), + 98: uint16(33912), + 99: uint16(33842), + 100: uint16(33861), + 101: uint16(33833), + 102: uint16(33753), + 103: uint16(33867), + 104: uint16(33839), + 105: uint16(33858), + 106: uint16(33837), + 107: uint16(33887), + 108: uint16(33904), + 109: uint16(33849), + 110: uint16(33870), + 111: uint16(33868), + 112: uint16(33874), + 113: uint16(33903), + 114: uint16(33989), + 115: uint16(33934), + 116: uint16(33851), + 117: uint16(33863), + 118: uint16(33846), + 119: uint16(33843), + 120: uint16(33896), + 121: uint16(33918), + 122: uint16(33860), + 123: uint16(33835), + 124: uint16(33888), + 125: uint16(33876), + 126: uint16(33902), + 127: uint16(33872), + 128: uint16(34571), + 129: uint16(34564), + 130: uint16(34551), + 131: uint16(34572), + 132: uint16(34554), + 133: uint16(34518), + 134: uint16(34549), + 135: uint16(34637), + 136: uint16(34552), + 137: uint16(34574), + 138: uint16(34569), + 139: uint16(34561), + 140: uint16(34550), + 141: uint16(34573), + 142: uint16(34565), + 143: uint16(35030), + 144: uint16(35019), + 145: uint16(35021), + 146: uint16(35022), + 147: uint16(35038), + 148: uint16(35035), + 149: uint16(35034), + 150: uint16(35020), + 151: uint16(35024), + 152: uint16(35205), + 153: uint16(35227), + 154: uint16(35295), + 155: uint16(35301), + 156: uint16(35300), + }, + 63: { + 0: uint16(35297), + 1: uint16(35296), + 2: uint16(35298), + 3: uint16(35292), + 4: uint16(35302), + 5: uint16(35446), + 6: uint16(35462), + 7: uint16(35455), + 8: uint16(35425), + 9: uint16(35391), + 10: uint16(35447), + 11: uint16(35458), + 12: uint16(35460), + 13: uint16(35445), + 14: uint16(35459), + 15: uint16(35457), + 16: uint16(35444), + 17: uint16(35450), + 18: uint16(35900), + 19: uint16(35915), + 20: uint16(35914), + 21: uint16(35941), + 22: uint16(35940), + 23: uint16(35942), + 24: uint16(35974), + 25: uint16(35972), + 26: uint16(35973), + 27: uint16(36044), + 28: uint16(36200), + 29: uint16(36201), + 30: uint16(36241), + 31: uint16(36236), + 32: uint16(36238), + 33: uint16(36239), + 34: uint16(36237), + 35: uint16(36243), + 36: uint16(36244), + 37: uint16(36240), + 38: uint16(36242), + 39: uint16(36336), + 40: uint16(36320), + 41: uint16(36332), + 42: uint16(36337), + 43: uint16(36334), + 44: uint16(36304), + 45: uint16(36329), + 46: uint16(36323), + 47: uint16(36322), + 48: uint16(36327), + 49: uint16(36338), + 50: uint16(36331), + 51: uint16(36340), + 52: uint16(36614), + 53: uint16(36607), + 54: uint16(36609), + 55: uint16(36608), + 56: uint16(36613), + 57: uint16(36615), + 58: uint16(36616), + 59: uint16(36610), + 60: uint16(36619), + 61: uint16(36946), + 62: uint16(36927), + 63: uint16(36932), + 64: uint16(36937), + 65: uint16(36925), + 66: uint16(37136), + 67: uint16(37133), + 68: uint16(37135), + 69: uint16(37137), + 70: uint16(37142), + 71: uint16(37140), + 72: uint16(37131), + 73: uint16(37134), + 74: uint16(37230), + 75: uint16(37231), + 76: uint16(37448), + 77: uint16(37458), + 78: uint16(37424), + 79: uint16(37434), + 80: uint16(37478), + 81: uint16(37427), + 82: uint16(37477), + 83: uint16(37470), + 84: uint16(37507), + 85: uint16(37422), + 86: uint16(37450), + 87: uint16(37446), + 88: uint16(37485), + 89: uint16(37484), + 90: uint16(37455), + 91: uint16(37472), + 92: uint16(37479), + 93: uint16(37487), + 94: uint16(37430), + 95: uint16(37473), + 96: uint16(37488), + 97: uint16(37425), + 98: uint16(37460), + 99: uint16(37475), + 100: uint16(37456), + 101: uint16(37490), + 102: uint16(37454), + 103: uint16(37459), + 104: uint16(37452), + 105: uint16(37462), + 106: uint16(37426), + 107: uint16(38303), + 108: uint16(38300), + 109: uint16(38302), + 110: uint16(38299), + 111: uint16(38546), + 112: uint16(38547), + 113: uint16(38545), + 114: uint16(38551), + 115: uint16(38606), + 116: uint16(38650), + 117: uint16(38653), + 118: uint16(38648), + 119: uint16(38645), + 120: uint16(38771), + 121: uint16(38775), + 122: uint16(38776), + 123: uint16(38770), + 124: uint16(38927), + 125: uint16(38925), + 126: uint16(38926), + 127: uint16(39084), + 128: uint16(39158), + 129: uint16(39161), + 130: uint16(39343), + 131: uint16(39346), + 132: uint16(39344), + 133: uint16(39349), + 134: uint16(39597), + 135: uint16(39595), + 136: uint16(39771), + 137: uint16(40170), + 138: uint16(40173), + 139: uint16(40167), + 140: uint16(40576), + 141: uint16(40701), + 142: uint16(20710), + 143: uint16(20692), + 144: uint16(20695), + 145: uint16(20712), + 146: uint16(20723), + 147: uint16(20699), + 148: uint16(20714), + 149: uint16(20701), + 150: uint16(20708), + 151: uint16(20691), + 152: uint16(20716), + 153: uint16(20720), + 154: uint16(20719), + 155: uint16(20707), + 156: uint16(20704), + }, + 64: { + 0: uint16(20952), + 1: uint16(21120), + 2: uint16(21121), + 3: uint16(21225), + 4: uint16(21227), + 5: uint16(21296), + 6: uint16(21420), + 7: uint16(22055), + 8: uint16(22037), + 9: uint16(22028), + 10: uint16(22034), + 11: uint16(22012), + 12: uint16(22031), + 13: uint16(22044), + 14: uint16(22017), + 15: uint16(22035), + 16: uint16(22018), + 17: uint16(22010), + 18: uint16(22045), + 19: uint16(22020), + 20: uint16(22015), + 21: uint16(22009), + 22: uint16(22665), + 23: uint16(22652), + 24: uint16(22672), + 25: uint16(22680), + 26: uint16(22662), + 27: uint16(22657), + 28: uint16(22655), + 29: uint16(22644), + 30: uint16(22667), + 31: uint16(22650), + 32: uint16(22663), + 33: uint16(22673), + 34: uint16(22670), + 35: uint16(22646), + 36: uint16(22658), + 37: uint16(22664), + 38: uint16(22651), + 39: uint16(22676), + 40: uint16(22671), + 41: uint16(22782), + 42: uint16(22891), + 43: uint16(23260), + 44: uint16(23278), + 45: uint16(23269), + 46: uint16(23253), + 47: uint16(23274), + 48: uint16(23258), + 49: uint16(23277), + 50: uint16(23275), + 51: uint16(23283), + 52: uint16(23266), + 53: uint16(23264), + 54: uint16(23259), + 55: uint16(23276), + 56: uint16(23262), + 57: uint16(23261), + 58: uint16(23257), + 59: uint16(23272), + 60: uint16(23263), + 61: uint16(23415), + 62: uint16(23520), + 63: uint16(23523), + 64: uint16(23651), + 65: uint16(23938), + 66: uint16(23936), + 67: uint16(23933), + 68: uint16(23942), + 69: uint16(23930), + 70: uint16(23937), + 71: uint16(23927), + 72: uint16(23946), + 73: uint16(23945), + 74: uint16(23944), + 75: uint16(23934), + 76: uint16(23932), + 77: uint16(23949), + 78: uint16(23929), + 79: uint16(23935), + 80: uint16(24152), + 81: uint16(24153), + 82: uint16(24147), + 83: uint16(24280), + 84: uint16(24273), + 85: uint16(24279), + 86: uint16(24270), + 87: uint16(24284), + 88: uint16(24277), + 89: uint16(24281), + 90: uint16(24274), + 91: uint16(24276), + 92: uint16(24388), + 93: uint16(24387), + 94: uint16(24431), + 95: uint16(24502), + 96: uint16(24876), + 97: uint16(24872), + 98: uint16(24897), + 99: uint16(24926), + 100: uint16(24945), + 101: uint16(24947), + 102: uint16(24914), + 103: uint16(24915), + 104: uint16(24946), + 105: uint16(24940), + 106: uint16(24960), + 107: uint16(24948), + 108: uint16(24916), + 109: uint16(24954), + 110: uint16(24923), + 111: uint16(24933), + 112: uint16(24891), + 113: uint16(24938), + 114: uint16(24929), + 115: uint16(24918), + 116: uint16(25129), + 117: uint16(25127), + 118: uint16(25131), + 119: uint16(25643), + 120: uint16(25677), + 121: uint16(25691), + 122: uint16(25693), + 123: uint16(25716), + 124: uint16(25718), + 125: uint16(25714), + 126: uint16(25715), + 127: uint16(25725), + 128: uint16(25717), + 129: uint16(25702), + 130: uint16(25766), + 131: uint16(25678), + 132: uint16(25730), + 133: uint16(25694), + 134: uint16(25692), + 135: uint16(25675), + 136: uint16(25683), + 137: uint16(25696), + 138: uint16(25680), + 139: uint16(25727), + 140: uint16(25663), + 141: uint16(25708), + 142: uint16(25707), + 143: uint16(25689), + 144: uint16(25701), + 145: uint16(25719), + 146: uint16(25971), + 147: uint16(26016), + 148: uint16(26273), + 149: uint16(26272), + 150: uint16(26271), + 151: uint16(26373), + 152: uint16(26372), + 153: uint16(26402), + 154: uint16(27057), + 155: uint16(27062), + 156: uint16(27081), + }, + 65: { + 0: uint16(27040), + 1: uint16(27086), + 2: uint16(27030), + 3: uint16(27056), + 4: uint16(27052), + 5: uint16(27068), + 6: uint16(27025), + 7: uint16(27033), + 8: uint16(27022), + 9: uint16(27047), + 10: uint16(27021), + 11: uint16(27049), + 12: uint16(27070), + 13: uint16(27055), + 14: uint16(27071), + 15: uint16(27076), + 16: uint16(27069), + 17: uint16(27044), + 18: uint16(27092), + 19: uint16(27065), + 20: uint16(27082), + 21: uint16(27034), + 22: uint16(27087), + 23: uint16(27059), + 24: uint16(27027), + 25: uint16(27050), + 26: uint16(27041), + 27: uint16(27038), + 28: uint16(27097), + 29: uint16(27031), + 30: uint16(27024), + 31: uint16(27074), + 32: uint16(27061), + 33: uint16(27045), + 34: uint16(27078), + 35: uint16(27466), + 36: uint16(27469), + 37: uint16(27467), + 38: uint16(27550), + 39: uint16(27551), + 40: uint16(27552), + 41: uint16(27587), + 42: uint16(27588), + 43: uint16(27646), + 44: uint16(28366), + 45: uint16(28405), + 46: uint16(28401), + 47: uint16(28419), + 48: uint16(28453), + 49: uint16(28408), + 50: uint16(28471), + 51: uint16(28411), + 52: uint16(28462), + 53: uint16(28425), + 54: uint16(28494), + 55: uint16(28441), + 56: uint16(28442), + 57: uint16(28455), + 58: uint16(28440), + 59: uint16(28475), + 60: uint16(28434), + 61: uint16(28397), + 62: uint16(28426), + 63: uint16(28470), + 64: uint16(28531), + 65: uint16(28409), + 66: uint16(28398), + 67: uint16(28461), + 68: uint16(28480), + 69: uint16(28464), + 70: uint16(28476), + 71: uint16(28469), + 72: uint16(28395), + 73: uint16(28423), + 74: uint16(28430), + 75: uint16(28483), + 76: uint16(28421), + 77: uint16(28413), + 78: uint16(28406), + 79: uint16(28473), + 80: uint16(28444), + 81: uint16(28412), + 82: uint16(28474), + 83: uint16(28447), + 84: uint16(28429), + 85: uint16(28446), + 86: uint16(28424), + 87: uint16(28449), + 88: uint16(29063), + 89: uint16(29072), + 90: uint16(29065), + 91: uint16(29056), + 92: uint16(29061), + 93: uint16(29058), + 94: uint16(29071), + 95: uint16(29051), + 96: uint16(29062), + 97: uint16(29057), + 98: uint16(29079), + 99: uint16(29252), + 100: uint16(29267), + 101: uint16(29335), + 102: uint16(29333), + 103: uint16(29331), + 104: uint16(29507), + 105: uint16(29517), + 106: uint16(29521), + 107: uint16(29516), + 108: uint16(29794), + 109: uint16(29811), + 110: uint16(29809), + 111: uint16(29813), + 112: uint16(29810), + 113: uint16(29799), + 114: uint16(29806), + 115: uint16(29952), + 116: uint16(29954), + 117: uint16(29955), + 118: uint16(30077), + 119: uint16(30096), + 120: uint16(30230), + 121: uint16(30216), + 122: uint16(30220), + 123: uint16(30229), + 124: uint16(30225), + 125: uint16(30218), + 126: uint16(30228), + 127: uint16(30392), + 128: uint16(30593), + 129: uint16(30588), + 130: uint16(30597), + 131: uint16(30594), + 132: uint16(30574), + 133: uint16(30592), + 134: uint16(30575), + 135: uint16(30590), + 136: uint16(30595), + 137: uint16(30898), + 138: uint16(30890), + 139: uint16(30900), + 140: uint16(30893), + 141: uint16(30888), + 142: uint16(30846), + 143: uint16(30891), + 144: uint16(30878), + 145: uint16(30885), + 146: uint16(30880), + 147: uint16(30892), + 148: uint16(30882), + 149: uint16(30884), + 150: uint16(31128), + 151: uint16(31114), + 152: uint16(31115), + 153: uint16(31126), + 154: uint16(31125), + 155: uint16(31124), + 156: uint16(31123), + }, + 66: { + 0: uint16(31127), + 1: uint16(31112), + 2: uint16(31122), + 3: uint16(31120), + 4: uint16(31275), + 5: uint16(31306), + 6: uint16(31280), + 7: uint16(31279), + 8: uint16(31272), + 9: uint16(31270), + 10: uint16(31400), + 11: uint16(31403), + 12: uint16(31404), + 13: uint16(31470), + 14: uint16(31624), + 15: uint16(31644), + 16: uint16(31626), + 17: uint16(31633), + 18: uint16(31632), + 19: uint16(31638), + 20: uint16(31629), + 21: uint16(31628), + 22: uint16(31643), + 23: uint16(31630), + 24: uint16(31621), + 25: uint16(31640), + 26: uint16(21124), + 27: uint16(31641), + 28: uint16(31652), + 29: uint16(31618), + 30: uint16(31931), + 31: uint16(31935), + 32: uint16(31932), + 33: uint16(31930), + 34: uint16(32167), + 35: uint16(32183), + 36: uint16(32194), + 37: uint16(32163), + 38: uint16(32170), + 39: uint16(32193), + 40: uint16(32192), + 41: uint16(32197), + 42: uint16(32157), + 43: uint16(32206), + 44: uint16(32196), + 45: uint16(32198), + 46: uint16(32203), + 47: uint16(32204), + 48: uint16(32175), + 49: uint16(32185), + 50: uint16(32150), + 51: uint16(32188), + 52: uint16(32159), + 53: uint16(32166), + 54: uint16(32174), + 55: uint16(32169), + 56: uint16(32161), + 57: uint16(32201), + 58: uint16(32627), + 59: uint16(32738), + 60: uint16(32739), + 61: uint16(32741), + 62: uint16(32734), + 63: uint16(32804), + 64: uint16(32861), + 65: uint16(32860), + 66: uint16(33161), + 67: uint16(33158), + 68: uint16(33155), + 69: uint16(33159), + 70: uint16(33165), + 71: uint16(33164), + 72: uint16(33163), + 73: uint16(33301), + 74: uint16(33943), + 75: uint16(33956), + 76: uint16(33953), + 77: uint16(33951), + 78: uint16(33978), + 79: uint16(33998), + 80: uint16(33986), + 81: uint16(33964), + 82: uint16(33966), + 83: uint16(33963), + 84: uint16(33977), + 85: uint16(33972), + 86: uint16(33985), + 87: uint16(33997), + 88: uint16(33962), + 89: uint16(33946), + 90: uint16(33969), + 91: uint16(34000), + 92: uint16(33949), + 93: uint16(33959), + 94: uint16(33979), + 95: uint16(33954), + 96: uint16(33940), + 97: uint16(33991), + 98: uint16(33996), + 99: uint16(33947), + 100: uint16(33961), + 101: uint16(33967), + 102: uint16(33960), + 103: uint16(34006), + 104: uint16(33944), + 105: uint16(33974), + 106: uint16(33999), + 107: uint16(33952), + 108: uint16(34007), + 109: uint16(34004), + 110: uint16(34002), + 111: uint16(34011), + 112: uint16(33968), + 113: uint16(33937), + 114: uint16(34401), + 115: uint16(34611), + 116: uint16(34595), + 117: uint16(34600), + 118: uint16(34667), + 119: uint16(34624), + 120: uint16(34606), + 121: uint16(34590), + 122: uint16(34593), + 123: uint16(34585), + 124: uint16(34587), + 125: uint16(34627), + 126: uint16(34604), + 127: uint16(34625), + 128: uint16(34622), + 129: uint16(34630), + 130: uint16(34592), + 131: uint16(34610), + 132: uint16(34602), + 133: uint16(34605), + 134: uint16(34620), + 135: uint16(34578), + 136: uint16(34618), + 137: uint16(34609), + 138: uint16(34613), + 139: uint16(34626), + 140: uint16(34598), + 141: uint16(34599), + 142: uint16(34616), + 143: uint16(34596), + 144: uint16(34586), + 145: uint16(34608), + 146: uint16(34577), + 147: uint16(35063), + 148: uint16(35047), + 149: uint16(35057), + 150: uint16(35058), + 151: uint16(35066), + 152: uint16(35070), + 153: uint16(35054), + 154: uint16(35068), + 155: uint16(35062), + 156: uint16(35067), + }, + 67: { + 0: uint16(35056), + 1: uint16(35052), + 2: uint16(35051), + 3: uint16(35229), + 4: uint16(35233), + 5: uint16(35231), + 6: uint16(35230), + 7: uint16(35305), + 8: uint16(35307), + 9: uint16(35304), + 10: uint16(35499), + 11: uint16(35481), + 12: uint16(35467), + 13: uint16(35474), + 14: uint16(35471), + 15: uint16(35478), + 16: uint16(35901), + 17: uint16(35944), + 18: uint16(35945), + 19: uint16(36053), + 20: uint16(36047), + 21: uint16(36055), + 22: uint16(36246), + 23: uint16(36361), + 24: uint16(36354), + 25: uint16(36351), + 26: uint16(36365), + 27: uint16(36349), + 28: uint16(36362), + 29: uint16(36355), + 30: uint16(36359), + 31: uint16(36358), + 32: uint16(36357), + 33: uint16(36350), + 34: uint16(36352), + 35: uint16(36356), + 36: uint16(36624), + 37: uint16(36625), + 38: uint16(36622), + 39: uint16(36621), + 40: uint16(37155), + 41: uint16(37148), + 42: uint16(37152), + 43: uint16(37154), + 44: uint16(37151), + 45: uint16(37149), + 46: uint16(37146), + 47: uint16(37156), + 48: uint16(37153), + 49: uint16(37147), + 50: uint16(37242), + 51: uint16(37234), + 52: uint16(37241), + 53: uint16(37235), + 54: uint16(37541), + 55: uint16(37540), + 56: uint16(37494), + 57: uint16(37531), + 58: uint16(37498), + 59: uint16(37536), + 60: uint16(37524), + 61: uint16(37546), + 62: uint16(37517), + 63: uint16(37542), + 64: uint16(37530), + 65: uint16(37547), + 66: uint16(37497), + 67: uint16(37527), + 68: uint16(37503), + 69: uint16(37539), + 70: uint16(37614), + 71: uint16(37518), + 72: uint16(37506), + 73: uint16(37525), + 74: uint16(37538), + 75: uint16(37501), + 76: uint16(37512), + 77: uint16(37537), + 78: uint16(37514), + 79: uint16(37510), + 80: uint16(37516), + 81: uint16(37529), + 82: uint16(37543), + 83: uint16(37502), + 84: uint16(37511), + 85: uint16(37545), + 86: uint16(37533), + 87: uint16(37515), + 88: uint16(37421), + 89: uint16(38558), + 90: uint16(38561), + 91: uint16(38655), + 92: uint16(38744), + 93: uint16(38781), + 94: uint16(38778), + 95: uint16(38782), + 96: uint16(38787), + 97: uint16(38784), + 98: uint16(38786), + 99: uint16(38779), + 100: uint16(38788), + 101: uint16(38785), + 102: uint16(38783), + 103: uint16(38862), + 104: uint16(38861), + 105: uint16(38934), + 106: uint16(39085), + 107: uint16(39086), + 108: uint16(39170), + 109: uint16(39168), + 110: uint16(39175), + 111: uint16(39325), + 112: uint16(39324), + 113: uint16(39363), + 114: uint16(39353), + 115: uint16(39355), + 116: uint16(39354), + 117: uint16(39362), + 118: uint16(39357), + 119: uint16(39367), + 120: uint16(39601), + 121: uint16(39651), + 122: uint16(39655), + 123: uint16(39742), + 124: uint16(39743), + 125: uint16(39776), + 126: uint16(39777), + 127: uint16(39775), + 128: uint16(40177), + 129: uint16(40178), + 130: uint16(40181), + 131: uint16(40615), + 132: uint16(20735), + 133: uint16(20739), + 134: uint16(20784), + 135: uint16(20728), + 136: uint16(20742), + 137: uint16(20743), + 138: uint16(20726), + 139: uint16(20734), + 140: uint16(20747), + 141: uint16(20748), + 142: uint16(20733), + 143: uint16(20746), + 144: uint16(21131), + 145: uint16(21132), + 146: uint16(21233), + 147: uint16(21231), + 148: uint16(22088), + 149: uint16(22082), + 150: uint16(22092), + 151: uint16(22069), + 152: uint16(22081), + 153: uint16(22090), + 154: uint16(22089), + 155: uint16(22086), + 156: uint16(22104), + }, + 68: { + 0: uint16(22106), + 1: uint16(22080), + 2: uint16(22067), + 3: uint16(22077), + 4: uint16(22060), + 5: uint16(22078), + 6: uint16(22072), + 7: uint16(22058), + 8: uint16(22074), + 9: uint16(22298), + 10: uint16(22699), + 11: uint16(22685), + 12: uint16(22705), + 13: uint16(22688), + 14: uint16(22691), + 15: uint16(22703), + 16: uint16(22700), + 17: uint16(22693), + 18: uint16(22689), + 19: uint16(22783), + 20: uint16(23295), + 21: uint16(23284), + 22: uint16(23293), + 23: uint16(23287), + 24: uint16(23286), + 25: uint16(23299), + 26: uint16(23288), + 27: uint16(23298), + 28: uint16(23289), + 29: uint16(23297), + 30: uint16(23303), + 31: uint16(23301), + 32: uint16(23311), + 33: uint16(23655), + 34: uint16(23961), + 35: uint16(23959), + 36: uint16(23967), + 37: uint16(23954), + 38: uint16(23970), + 39: uint16(23955), + 40: uint16(23957), + 41: uint16(23968), + 42: uint16(23964), + 43: uint16(23969), + 44: uint16(23962), + 45: uint16(23966), + 46: uint16(24169), + 47: uint16(24157), + 48: uint16(24160), + 49: uint16(24156), + 50: uint16(32243), + 51: uint16(24283), + 52: uint16(24286), + 53: uint16(24289), + 54: uint16(24393), + 55: uint16(24498), + 56: uint16(24971), + 57: uint16(24963), + 58: uint16(24953), + 59: uint16(25009), + 60: uint16(25008), + 61: uint16(24994), + 62: uint16(24969), + 63: uint16(24987), + 64: uint16(24979), + 65: uint16(25007), + 66: uint16(25005), + 67: uint16(24991), + 68: uint16(24978), + 69: uint16(25002), + 70: uint16(24993), + 71: uint16(24973), + 72: uint16(24934), + 73: uint16(25011), + 74: uint16(25133), + 75: uint16(25710), + 76: uint16(25712), + 77: uint16(25750), + 78: uint16(25760), + 79: uint16(25733), + 80: uint16(25751), + 81: uint16(25756), + 82: uint16(25743), + 83: uint16(25739), + 84: uint16(25738), + 85: uint16(25740), + 86: uint16(25763), + 87: uint16(25759), + 88: uint16(25704), + 89: uint16(25777), + 90: uint16(25752), + 91: uint16(25974), + 92: uint16(25978), + 93: uint16(25977), + 94: uint16(25979), + 95: uint16(26034), + 96: uint16(26035), + 97: uint16(26293), + 98: uint16(26288), + 99: uint16(26281), + 100: uint16(26290), + 101: uint16(26295), + 102: uint16(26282), + 103: uint16(26287), + 104: uint16(27136), + 105: uint16(27142), + 106: uint16(27159), + 107: uint16(27109), + 108: uint16(27128), + 109: uint16(27157), + 110: uint16(27121), + 111: uint16(27108), + 112: uint16(27168), + 113: uint16(27135), + 114: uint16(27116), + 115: uint16(27106), + 116: uint16(27163), + 117: uint16(27165), + 118: uint16(27134), + 119: uint16(27175), + 120: uint16(27122), + 121: uint16(27118), + 122: uint16(27156), + 123: uint16(27127), + 124: uint16(27111), + 125: uint16(27200), + 126: uint16(27144), + 127: uint16(27110), + 128: uint16(27131), + 129: uint16(27149), + 130: uint16(27132), + 131: uint16(27115), + 132: uint16(27145), + 133: uint16(27140), + 134: uint16(27160), + 135: uint16(27173), + 136: uint16(27151), + 137: uint16(27126), + 138: uint16(27174), + 139: uint16(27143), + 140: uint16(27124), + 141: uint16(27158), + 142: uint16(27473), + 143: uint16(27557), + 144: uint16(27555), + 145: uint16(27554), + 146: uint16(27558), + 147: uint16(27649), + 148: uint16(27648), + 149: uint16(27647), + 150: uint16(27650), + 151: uint16(28481), + 152: uint16(28454), + 153: uint16(28542), + 154: uint16(28551), + 155: uint16(28614), + 156: uint16(28562), + }, + 69: { + 0: uint16(28557), + 1: uint16(28553), + 2: uint16(28556), + 3: uint16(28514), + 4: uint16(28495), + 5: uint16(28549), + 6: uint16(28506), + 7: uint16(28566), + 8: uint16(28534), + 9: uint16(28524), + 10: uint16(28546), + 11: uint16(28501), + 12: uint16(28530), + 13: uint16(28498), + 14: uint16(28496), + 15: uint16(28503), + 16: uint16(28564), + 17: uint16(28563), + 18: uint16(28509), + 19: uint16(28416), + 20: uint16(28513), + 21: uint16(28523), + 22: uint16(28541), + 23: uint16(28519), + 24: uint16(28560), + 25: uint16(28499), + 26: uint16(28555), + 27: uint16(28521), + 28: uint16(28543), + 29: uint16(28565), + 30: uint16(28515), + 31: uint16(28535), + 32: uint16(28522), + 33: uint16(28539), + 34: uint16(29106), + 35: uint16(29103), + 36: uint16(29083), + 37: uint16(29104), + 38: uint16(29088), + 39: uint16(29082), + 40: uint16(29097), + 41: uint16(29109), + 42: uint16(29085), + 43: uint16(29093), + 44: uint16(29086), + 45: uint16(29092), + 46: uint16(29089), + 47: uint16(29098), + 48: uint16(29084), + 49: uint16(29095), + 50: uint16(29107), + 51: uint16(29336), + 52: uint16(29338), + 53: uint16(29528), + 54: uint16(29522), + 55: uint16(29534), + 56: uint16(29535), + 57: uint16(29536), + 58: uint16(29533), + 59: uint16(29531), + 60: uint16(29537), + 61: uint16(29530), + 62: uint16(29529), + 63: uint16(29538), + 64: uint16(29831), + 65: uint16(29833), + 66: uint16(29834), + 67: uint16(29830), + 68: uint16(29825), + 69: uint16(29821), + 70: uint16(29829), + 71: uint16(29832), + 72: uint16(29820), + 73: uint16(29817), + 74: uint16(29960), + 75: uint16(29959), + 76: uint16(30078), + 77: uint16(30245), + 78: uint16(30238), + 79: uint16(30233), + 80: uint16(30237), + 81: uint16(30236), + 82: uint16(30243), + 83: uint16(30234), + 84: uint16(30248), + 85: uint16(30235), + 86: uint16(30364), + 87: uint16(30365), + 88: uint16(30366), + 89: uint16(30363), + 90: uint16(30605), + 91: uint16(30607), + 92: uint16(30601), + 93: uint16(30600), + 94: uint16(30925), + 95: uint16(30907), + 96: uint16(30927), + 97: uint16(30924), + 98: uint16(30929), + 99: uint16(30926), + 100: uint16(30932), + 101: uint16(30920), + 102: uint16(30915), + 103: uint16(30916), + 104: uint16(30921), + 105: uint16(31130), + 106: uint16(31137), + 107: uint16(31136), + 108: uint16(31132), + 109: uint16(31138), + 110: uint16(31131), + 111: uint16(27510), + 112: uint16(31289), + 113: uint16(31410), + 114: uint16(31412), + 115: uint16(31411), + 116: uint16(31671), + 117: uint16(31691), + 118: uint16(31678), + 119: uint16(31660), + 120: uint16(31694), + 121: uint16(31663), + 122: uint16(31673), + 123: uint16(31690), + 124: uint16(31669), + 125: uint16(31941), + 126: uint16(31944), + 127: uint16(31948), + 128: uint16(31947), + 129: uint16(32247), + 130: uint16(32219), + 131: uint16(32234), + 132: uint16(32231), + 133: uint16(32215), + 134: uint16(32225), + 135: uint16(32259), + 136: uint16(32250), + 137: uint16(32230), + 138: uint16(32246), + 139: uint16(32241), + 140: uint16(32240), + 141: uint16(32238), + 142: uint16(32223), + 143: uint16(32630), + 144: uint16(32684), + 145: uint16(32688), + 146: uint16(32685), + 147: uint16(32749), + 148: uint16(32747), + 149: uint16(32746), + 150: uint16(32748), + 151: uint16(32742), + 152: uint16(32744), + 153: uint16(32868), + 154: uint16(32871), + 155: uint16(33187), + 156: uint16(33183), + }, + 70: { + 0: uint16(33182), + 1: uint16(33173), + 2: uint16(33186), + 3: uint16(33177), + 4: uint16(33175), + 5: uint16(33302), + 6: uint16(33359), + 7: uint16(33363), + 8: uint16(33362), + 9: uint16(33360), + 10: uint16(33358), + 11: uint16(33361), + 12: uint16(34084), + 13: uint16(34107), + 14: uint16(34063), + 15: uint16(34048), + 16: uint16(34089), + 17: uint16(34062), + 18: uint16(34057), + 19: uint16(34061), + 20: uint16(34079), + 21: uint16(34058), + 22: uint16(34087), + 23: uint16(34076), + 24: uint16(34043), + 25: uint16(34091), + 26: uint16(34042), + 27: uint16(34056), + 28: uint16(34060), + 29: uint16(34036), + 30: uint16(34090), + 31: uint16(34034), + 32: uint16(34069), + 33: uint16(34039), + 34: uint16(34027), + 35: uint16(34035), + 36: uint16(34044), + 37: uint16(34066), + 38: uint16(34026), + 39: uint16(34025), + 40: uint16(34070), + 41: uint16(34046), + 42: uint16(34088), + 43: uint16(34077), + 44: uint16(34094), + 45: uint16(34050), + 46: uint16(34045), + 47: uint16(34078), + 48: uint16(34038), + 49: uint16(34097), + 50: uint16(34086), + 51: uint16(34023), + 52: uint16(34024), + 53: uint16(34032), + 54: uint16(34031), + 55: uint16(34041), + 56: uint16(34072), + 57: uint16(34080), + 58: uint16(34096), + 59: uint16(34059), + 60: uint16(34073), + 61: uint16(34095), + 62: uint16(34402), + 63: uint16(34646), + 64: uint16(34659), + 65: uint16(34660), + 66: uint16(34679), + 67: uint16(34785), + 68: uint16(34675), + 69: uint16(34648), + 70: uint16(34644), + 71: uint16(34651), + 72: uint16(34642), + 73: uint16(34657), + 74: uint16(34650), + 75: uint16(34641), + 76: uint16(34654), + 77: uint16(34669), + 78: uint16(34666), + 79: uint16(34640), + 80: uint16(34638), + 81: uint16(34655), + 82: uint16(34653), + 83: uint16(34671), + 84: uint16(34668), + 85: uint16(34682), + 86: uint16(34670), + 87: uint16(34652), + 88: uint16(34661), + 89: uint16(34639), + 90: uint16(34683), + 91: uint16(34677), + 92: uint16(34658), + 93: uint16(34663), + 94: uint16(34665), + 95: uint16(34906), + 96: uint16(35077), + 97: uint16(35084), + 98: uint16(35092), + 99: uint16(35083), + 100: uint16(35095), + 101: uint16(35096), + 102: uint16(35097), + 103: uint16(35078), + 104: uint16(35094), + 105: uint16(35089), + 106: uint16(35086), + 107: uint16(35081), + 108: uint16(35234), + 109: uint16(35236), + 110: uint16(35235), + 111: uint16(35309), + 112: uint16(35312), + 113: uint16(35308), + 114: uint16(35535), + 115: uint16(35526), + 116: uint16(35512), + 117: uint16(35539), + 118: uint16(35537), + 119: uint16(35540), + 120: uint16(35541), + 121: uint16(35515), + 122: uint16(35543), + 123: uint16(35518), + 124: uint16(35520), + 125: uint16(35525), + 126: uint16(35544), + 127: uint16(35523), + 128: uint16(35514), + 129: uint16(35517), + 130: uint16(35545), + 131: uint16(35902), + 132: uint16(35917), + 133: uint16(35983), + 134: uint16(36069), + 135: uint16(36063), + 136: uint16(36057), + 137: uint16(36072), + 138: uint16(36058), + 139: uint16(36061), + 140: uint16(36071), + 141: uint16(36256), + 142: uint16(36252), + 143: uint16(36257), + 144: uint16(36251), + 145: uint16(36384), + 146: uint16(36387), + 147: uint16(36389), + 148: uint16(36388), + 149: uint16(36398), + 150: uint16(36373), + 151: uint16(36379), + 152: uint16(36374), + 153: uint16(36369), + 154: uint16(36377), + 155: uint16(36390), + 156: uint16(36391), + }, + 71: { + 0: uint16(36372), + 1: uint16(36370), + 2: uint16(36376), + 3: uint16(36371), + 4: uint16(36380), + 5: uint16(36375), + 6: uint16(36378), + 7: uint16(36652), + 8: uint16(36644), + 9: uint16(36632), + 10: uint16(36634), + 11: uint16(36640), + 12: uint16(36643), + 13: uint16(36630), + 14: uint16(36631), + 15: uint16(36979), + 16: uint16(36976), + 17: uint16(36975), + 18: uint16(36967), + 19: uint16(36971), + 20: uint16(37167), + 21: uint16(37163), + 22: uint16(37161), + 23: uint16(37162), + 24: uint16(37170), + 25: uint16(37158), + 26: uint16(37166), + 27: uint16(37253), + 28: uint16(37254), + 29: uint16(37258), + 30: uint16(37249), + 31: uint16(37250), + 32: uint16(37252), + 33: uint16(37248), + 34: uint16(37584), + 35: uint16(37571), + 36: uint16(37572), + 37: uint16(37568), + 38: uint16(37593), + 39: uint16(37558), + 40: uint16(37583), + 41: uint16(37617), + 42: uint16(37599), + 43: uint16(37592), + 44: uint16(37609), + 45: uint16(37591), + 46: uint16(37597), + 47: uint16(37580), + 48: uint16(37615), + 49: uint16(37570), + 50: uint16(37608), + 51: uint16(37578), + 52: uint16(37576), + 53: uint16(37582), + 54: uint16(37606), + 55: uint16(37581), + 56: uint16(37589), + 57: uint16(37577), + 58: uint16(37600), + 59: uint16(37598), + 60: uint16(37607), + 61: uint16(37585), + 62: uint16(37587), + 63: uint16(37557), + 64: uint16(37601), + 65: uint16(37574), + 66: uint16(37556), + 67: uint16(38268), + 68: uint16(38316), + 69: uint16(38315), + 70: uint16(38318), + 71: uint16(38320), + 72: uint16(38564), + 73: uint16(38562), + 74: uint16(38611), + 75: uint16(38661), + 76: uint16(38664), + 77: uint16(38658), + 78: uint16(38746), + 79: uint16(38794), + 80: uint16(38798), + 81: uint16(38792), + 82: uint16(38864), + 83: uint16(38863), + 84: uint16(38942), + 85: uint16(38941), + 86: uint16(38950), + 87: uint16(38953), + 88: uint16(38952), + 89: uint16(38944), + 90: uint16(38939), + 91: uint16(38951), + 92: uint16(39090), + 93: uint16(39176), + 94: uint16(39162), + 95: uint16(39185), + 96: uint16(39188), + 97: uint16(39190), + 98: uint16(39191), + 99: uint16(39189), + 100: uint16(39388), + 101: uint16(39373), + 102: uint16(39375), + 103: uint16(39379), + 104: uint16(39380), + 105: uint16(39374), + 106: uint16(39369), + 107: uint16(39382), + 108: uint16(39384), + 109: uint16(39371), + 110: uint16(39383), + 111: uint16(39372), + 112: uint16(39603), + 113: uint16(39660), + 114: uint16(39659), + 115: uint16(39667), + 116: uint16(39666), + 117: uint16(39665), + 118: uint16(39750), + 119: uint16(39747), + 120: uint16(39783), + 121: uint16(39796), + 122: uint16(39793), + 123: uint16(39782), + 124: uint16(39798), + 125: uint16(39797), + 126: uint16(39792), + 127: uint16(39784), + 128: uint16(39780), + 129: uint16(39788), + 130: uint16(40188), + 131: uint16(40186), + 132: uint16(40189), + 133: uint16(40191), + 134: uint16(40183), + 135: uint16(40199), + 136: uint16(40192), + 137: uint16(40185), + 138: uint16(40187), + 139: uint16(40200), + 140: uint16(40197), + 141: uint16(40196), + 142: uint16(40579), + 143: uint16(40659), + 144: uint16(40719), + 145: uint16(40720), + 146: uint16(20764), + 147: uint16(20755), + 148: uint16(20759), + 149: uint16(20762), + 150: uint16(20753), + 151: uint16(20958), + 152: uint16(21300), + 153: uint16(21473), + 154: uint16(22128), + 155: uint16(22112), + 156: uint16(22126), + }, + 72: { + 0: uint16(22131), + 1: uint16(22118), + 2: uint16(22115), + 3: uint16(22125), + 4: uint16(22130), + 5: uint16(22110), + 6: uint16(22135), + 7: uint16(22300), + 8: uint16(22299), + 9: uint16(22728), + 10: uint16(22717), + 11: uint16(22729), + 12: uint16(22719), + 13: uint16(22714), + 14: uint16(22722), + 15: uint16(22716), + 16: uint16(22726), + 17: uint16(23319), + 18: uint16(23321), + 19: uint16(23323), + 20: uint16(23329), + 21: uint16(23316), + 22: uint16(23315), + 23: uint16(23312), + 24: uint16(23318), + 25: uint16(23336), + 26: uint16(23322), + 27: uint16(23328), + 28: uint16(23326), + 29: uint16(23535), + 30: uint16(23980), + 31: uint16(23985), + 32: uint16(23977), + 33: uint16(23975), + 34: uint16(23989), + 35: uint16(23984), + 36: uint16(23982), + 37: uint16(23978), + 38: uint16(23976), + 39: uint16(23986), + 40: uint16(23981), + 41: uint16(23983), + 42: uint16(23988), + 43: uint16(24167), + 44: uint16(24168), + 45: uint16(24166), + 46: uint16(24175), + 47: uint16(24297), + 48: uint16(24295), + 49: uint16(24294), + 50: uint16(24296), + 51: uint16(24293), + 52: uint16(24395), + 53: uint16(24508), + 54: uint16(24989), + 55: uint16(25000), + 56: uint16(24982), + 57: uint16(25029), + 58: uint16(25012), + 59: uint16(25030), + 60: uint16(25025), + 61: uint16(25036), + 62: uint16(25018), + 63: uint16(25023), + 64: uint16(25016), + 65: uint16(24972), + 66: uint16(25815), + 67: uint16(25814), + 68: uint16(25808), + 69: uint16(25807), + 70: uint16(25801), + 71: uint16(25789), + 72: uint16(25737), + 73: uint16(25795), + 74: uint16(25819), + 75: uint16(25843), + 76: uint16(25817), + 77: uint16(25907), + 78: uint16(25983), + 79: uint16(25980), + 80: uint16(26018), + 81: uint16(26312), + 82: uint16(26302), + 83: uint16(26304), + 84: uint16(26314), + 85: uint16(26315), + 86: uint16(26319), + 87: uint16(26301), + 88: uint16(26299), + 89: uint16(26298), + 90: uint16(26316), + 91: uint16(26403), + 92: uint16(27188), + 93: uint16(27238), + 94: uint16(27209), + 95: uint16(27239), + 96: uint16(27186), + 97: uint16(27240), + 98: uint16(27198), + 99: uint16(27229), + 100: uint16(27245), + 101: uint16(27254), + 102: uint16(27227), + 103: uint16(27217), + 104: uint16(27176), + 105: uint16(27226), + 106: uint16(27195), + 107: uint16(27199), + 108: uint16(27201), + 109: uint16(27242), + 110: uint16(27236), + 111: uint16(27216), + 112: uint16(27215), + 113: uint16(27220), + 114: uint16(27247), + 115: uint16(27241), + 116: uint16(27232), + 117: uint16(27196), + 118: uint16(27230), + 119: uint16(27222), + 120: uint16(27221), + 121: uint16(27213), + 122: uint16(27214), + 123: uint16(27206), + 124: uint16(27477), + 125: uint16(27476), + 126: uint16(27478), + 127: uint16(27559), + 128: uint16(27562), + 129: uint16(27563), + 130: uint16(27592), + 131: uint16(27591), + 132: uint16(27652), + 133: uint16(27651), + 134: uint16(27654), + 135: uint16(28589), + 136: uint16(28619), + 137: uint16(28579), + 138: uint16(28615), + 139: uint16(28604), + 140: uint16(28622), + 141: uint16(28616), + 142: uint16(28510), + 143: uint16(28612), + 144: uint16(28605), + 145: uint16(28574), + 146: uint16(28618), + 147: uint16(28584), + 148: uint16(28676), + 149: uint16(28581), + 150: uint16(28590), + 151: uint16(28602), + 152: uint16(28588), + 153: uint16(28586), + 154: uint16(28623), + 155: uint16(28607), + 156: uint16(28600), + }, + 73: { + 0: uint16(28578), + 1: uint16(28617), + 2: uint16(28587), + 3: uint16(28621), + 4: uint16(28591), + 5: uint16(28594), + 6: uint16(28592), + 7: uint16(29125), + 8: uint16(29122), + 9: uint16(29119), + 10: uint16(29112), + 11: uint16(29142), + 12: uint16(29120), + 13: uint16(29121), + 14: uint16(29131), + 15: uint16(29140), + 16: uint16(29130), + 17: uint16(29127), + 18: uint16(29135), + 19: uint16(29117), + 20: uint16(29144), + 21: uint16(29116), + 22: uint16(29126), + 23: uint16(29146), + 24: uint16(29147), + 25: uint16(29341), + 26: uint16(29342), + 27: uint16(29545), + 28: uint16(29542), + 29: uint16(29543), + 30: uint16(29548), + 31: uint16(29541), + 32: uint16(29547), + 33: uint16(29546), + 34: uint16(29823), + 35: uint16(29850), + 36: uint16(29856), + 37: uint16(29844), + 38: uint16(29842), + 39: uint16(29845), + 40: uint16(29857), + 41: uint16(29963), + 42: uint16(30080), + 43: uint16(30255), + 44: uint16(30253), + 45: uint16(30257), + 46: uint16(30269), + 47: uint16(30259), + 48: uint16(30268), + 49: uint16(30261), + 50: uint16(30258), + 51: uint16(30256), + 52: uint16(30395), + 53: uint16(30438), + 54: uint16(30618), + 55: uint16(30621), + 56: uint16(30625), + 57: uint16(30620), + 58: uint16(30619), + 59: uint16(30626), + 60: uint16(30627), + 61: uint16(30613), + 62: uint16(30617), + 63: uint16(30615), + 64: uint16(30941), + 65: uint16(30953), + 66: uint16(30949), + 67: uint16(30954), + 68: uint16(30942), + 69: uint16(30947), + 70: uint16(30939), + 71: uint16(30945), + 72: uint16(30946), + 73: uint16(30957), + 74: uint16(30943), + 75: uint16(30944), + 76: uint16(31140), + 77: uint16(31300), + 78: uint16(31304), + 79: uint16(31303), + 80: uint16(31414), + 81: uint16(31416), + 82: uint16(31413), + 83: uint16(31409), + 84: uint16(31415), + 85: uint16(31710), + 86: uint16(31715), + 87: uint16(31719), + 88: uint16(31709), + 89: uint16(31701), + 90: uint16(31717), + 91: uint16(31706), + 92: uint16(31720), + 93: uint16(31737), + 94: uint16(31700), + 95: uint16(31722), + 96: uint16(31714), + 97: uint16(31708), + 98: uint16(31723), + 99: uint16(31704), + 100: uint16(31711), + 101: uint16(31954), + 102: uint16(31956), + 103: uint16(31959), + 104: uint16(31952), + 105: uint16(31953), + 106: uint16(32274), + 107: uint16(32289), + 108: uint16(32279), + 109: uint16(32268), + 110: uint16(32287), + 111: uint16(32288), + 112: uint16(32275), + 113: uint16(32270), + 114: uint16(32284), + 115: uint16(32277), + 116: uint16(32282), + 117: uint16(32290), + 118: uint16(32267), + 119: uint16(32271), + 120: uint16(32278), + 121: uint16(32269), + 122: uint16(32276), + 123: uint16(32293), + 124: uint16(32292), + 125: uint16(32579), + 126: uint16(32635), + 127: uint16(32636), + 128: uint16(32634), + 129: uint16(32689), + 130: uint16(32751), + 131: uint16(32810), + 132: uint16(32809), + 133: uint16(32876), + 134: uint16(33201), + 135: uint16(33190), + 136: uint16(33198), + 137: uint16(33209), + 138: uint16(33205), + 139: uint16(33195), + 140: uint16(33200), + 141: uint16(33196), + 142: uint16(33204), + 143: uint16(33202), + 144: uint16(33207), + 145: uint16(33191), + 146: uint16(33266), + 147: uint16(33365), + 148: uint16(33366), + 149: uint16(33367), + 150: uint16(34134), + 151: uint16(34117), + 152: uint16(34155), + 153: uint16(34125), + 154: uint16(34131), + 155: uint16(34145), + 156: uint16(34136), + }, + 74: { + 0: uint16(34112), + 1: uint16(34118), + 2: uint16(34148), + 3: uint16(34113), + 4: uint16(34146), + 5: uint16(34116), + 6: uint16(34129), + 7: uint16(34119), + 8: uint16(34147), + 9: uint16(34110), + 10: uint16(34139), + 11: uint16(34161), + 12: uint16(34126), + 13: uint16(34158), + 14: uint16(34165), + 15: uint16(34133), + 16: uint16(34151), + 17: uint16(34144), + 18: uint16(34188), + 19: uint16(34150), + 20: uint16(34141), + 21: uint16(34132), + 22: uint16(34149), + 23: uint16(34156), + 24: uint16(34403), + 25: uint16(34405), + 26: uint16(34404), + 27: uint16(34715), + 28: uint16(34703), + 29: uint16(34711), + 30: uint16(34707), + 31: uint16(34706), + 32: uint16(34696), + 33: uint16(34689), + 34: uint16(34710), + 35: uint16(34712), + 36: uint16(34681), + 37: uint16(34695), + 38: uint16(34723), + 39: uint16(34693), + 40: uint16(34704), + 41: uint16(34705), + 42: uint16(34717), + 43: uint16(34692), + 44: uint16(34708), + 45: uint16(34716), + 46: uint16(34714), + 47: uint16(34697), + 48: uint16(35102), + 49: uint16(35110), + 50: uint16(35120), + 51: uint16(35117), + 52: uint16(35118), + 53: uint16(35111), + 54: uint16(35121), + 55: uint16(35106), + 56: uint16(35113), + 57: uint16(35107), + 58: uint16(35119), + 59: uint16(35116), + 60: uint16(35103), + 61: uint16(35313), + 62: uint16(35552), + 63: uint16(35554), + 64: uint16(35570), + 65: uint16(35572), + 66: uint16(35573), + 67: uint16(35549), + 68: uint16(35604), + 69: uint16(35556), + 70: uint16(35551), + 71: uint16(35568), + 72: uint16(35528), + 73: uint16(35550), + 74: uint16(35553), + 75: uint16(35560), + 76: uint16(35583), + 77: uint16(35567), + 78: uint16(35579), + 79: uint16(35985), + 80: uint16(35986), + 81: uint16(35984), + 82: uint16(36085), + 83: uint16(36078), + 84: uint16(36081), + 85: uint16(36080), + 86: uint16(36083), + 87: uint16(36204), + 88: uint16(36206), + 89: uint16(36261), + 90: uint16(36263), + 91: uint16(36403), + 92: uint16(36414), + 93: uint16(36408), + 94: uint16(36416), + 95: uint16(36421), + 96: uint16(36406), + 97: uint16(36412), + 98: uint16(36413), + 99: uint16(36417), + 100: uint16(36400), + 101: uint16(36415), + 102: uint16(36541), + 103: uint16(36662), + 104: uint16(36654), + 105: uint16(36661), + 106: uint16(36658), + 107: uint16(36665), + 108: uint16(36663), + 109: uint16(36660), + 110: uint16(36982), + 111: uint16(36985), + 112: uint16(36987), + 113: uint16(36998), + 114: uint16(37114), + 115: uint16(37171), + 116: uint16(37173), + 117: uint16(37174), + 118: uint16(37267), + 119: uint16(37264), + 120: uint16(37265), + 121: uint16(37261), + 122: uint16(37263), + 123: uint16(37671), + 124: uint16(37662), + 125: uint16(37640), + 126: uint16(37663), + 127: uint16(37638), + 128: uint16(37647), + 129: uint16(37754), + 130: uint16(37688), + 131: uint16(37692), + 132: uint16(37659), + 133: uint16(37667), + 134: uint16(37650), + 135: uint16(37633), + 136: uint16(37702), + 137: uint16(37677), + 138: uint16(37646), + 139: uint16(37645), + 140: uint16(37579), + 141: uint16(37661), + 142: uint16(37626), + 143: uint16(37669), + 144: uint16(37651), + 145: uint16(37625), + 146: uint16(37623), + 147: uint16(37684), + 148: uint16(37634), + 149: uint16(37668), + 150: uint16(37631), + 151: uint16(37673), + 152: uint16(37689), + 153: uint16(37685), + 154: uint16(37674), + 155: uint16(37652), + 156: uint16(37644), + }, + 75: { + 0: uint16(37643), + 1: uint16(37630), + 2: uint16(37641), + 3: uint16(37632), + 4: uint16(37627), + 5: uint16(37654), + 6: uint16(38332), + 7: uint16(38349), + 8: uint16(38334), + 9: uint16(38329), + 10: uint16(38330), + 11: uint16(38326), + 12: uint16(38335), + 13: uint16(38325), + 14: uint16(38333), + 15: uint16(38569), + 16: uint16(38612), + 17: uint16(38667), + 18: uint16(38674), + 19: uint16(38672), + 20: uint16(38809), + 21: uint16(38807), + 22: uint16(38804), + 23: uint16(38896), + 24: uint16(38904), + 25: uint16(38965), + 26: uint16(38959), + 27: uint16(38962), + 28: uint16(39204), + 29: uint16(39199), + 30: uint16(39207), + 31: uint16(39209), + 32: uint16(39326), + 33: uint16(39406), + 34: uint16(39404), + 35: uint16(39397), + 36: uint16(39396), + 37: uint16(39408), + 38: uint16(39395), + 39: uint16(39402), + 40: uint16(39401), + 41: uint16(39399), + 42: uint16(39609), + 43: uint16(39615), + 44: uint16(39604), + 45: uint16(39611), + 46: uint16(39670), + 47: uint16(39674), + 48: uint16(39673), + 49: uint16(39671), + 50: uint16(39731), + 51: uint16(39808), + 52: uint16(39813), + 53: uint16(39815), + 54: uint16(39804), + 55: uint16(39806), + 56: uint16(39803), + 57: uint16(39810), + 58: uint16(39827), + 59: uint16(39826), + 60: uint16(39824), + 61: uint16(39802), + 62: uint16(39829), + 63: uint16(39805), + 64: uint16(39816), + 65: uint16(40229), + 66: uint16(40215), + 67: uint16(40224), + 68: uint16(40222), + 69: uint16(40212), + 70: uint16(40233), + 71: uint16(40221), + 72: uint16(40216), + 73: uint16(40226), + 74: uint16(40208), + 75: uint16(40217), + 76: uint16(40223), + 77: uint16(40584), + 78: uint16(40582), + 79: uint16(40583), + 80: uint16(40622), + 81: uint16(40621), + 82: uint16(40661), + 83: uint16(40662), + 84: uint16(40698), + 85: uint16(40722), + 86: uint16(40765), + 87: uint16(20774), + 88: uint16(20773), + 89: uint16(20770), + 90: uint16(20772), + 91: uint16(20768), + 92: uint16(20777), + 93: uint16(21236), + 94: uint16(22163), + 95: uint16(22156), + 96: uint16(22157), + 97: uint16(22150), + 98: uint16(22148), + 99: uint16(22147), + 100: uint16(22142), + 101: uint16(22146), + 102: uint16(22143), + 103: uint16(22145), + 104: uint16(22742), + 105: uint16(22740), + 106: uint16(22735), + 107: uint16(22738), + 108: uint16(23341), + 109: uint16(23333), + 110: uint16(23346), + 111: uint16(23331), + 112: uint16(23340), + 113: uint16(23335), + 114: uint16(23334), + 115: uint16(23343), + 116: uint16(23342), + 117: uint16(23419), + 118: uint16(23537), + 119: uint16(23538), + 120: uint16(23991), + 121: uint16(24172), + 122: uint16(24170), + 123: uint16(24510), + 124: uint16(24507), + 125: uint16(25027), + 126: uint16(25013), + 127: uint16(25020), + 128: uint16(25063), + 129: uint16(25056), + 130: uint16(25061), + 131: uint16(25060), + 132: uint16(25064), + 133: uint16(25054), + 134: uint16(25839), + 135: uint16(25833), + 136: uint16(25827), + 137: uint16(25835), + 138: uint16(25828), + 139: uint16(25832), + 140: uint16(25985), + 141: uint16(25984), + 142: uint16(26038), + 143: uint16(26074), + 144: uint16(26322), + 145: uint16(27277), + 146: uint16(27286), + 147: uint16(27265), + 148: uint16(27301), + 149: uint16(27273), + 150: uint16(27295), + 151: uint16(27291), + 152: uint16(27297), + 153: uint16(27294), + 154: uint16(27271), + 155: uint16(27283), + 156: uint16(27278), + }, + 76: { + 0: uint16(27285), + 1: uint16(27267), + 2: uint16(27304), + 3: uint16(27300), + 4: uint16(27281), + 5: uint16(27263), + 6: uint16(27302), + 7: uint16(27290), + 8: uint16(27269), + 9: uint16(27276), + 10: uint16(27282), + 11: uint16(27483), + 12: uint16(27565), + 13: uint16(27657), + 14: uint16(28620), + 15: uint16(28585), + 16: uint16(28660), + 17: uint16(28628), + 18: uint16(28643), + 19: uint16(28636), + 20: uint16(28653), + 21: uint16(28647), + 22: uint16(28646), + 23: uint16(28638), + 24: uint16(28658), + 25: uint16(28637), + 26: uint16(28642), + 27: uint16(28648), + 28: uint16(29153), + 29: uint16(29169), + 30: uint16(29160), + 31: uint16(29170), + 32: uint16(29156), + 33: uint16(29168), + 34: uint16(29154), + 35: uint16(29555), + 36: uint16(29550), + 37: uint16(29551), + 38: uint16(29847), + 39: uint16(29874), + 40: uint16(29867), + 41: uint16(29840), + 42: uint16(29866), + 43: uint16(29869), + 44: uint16(29873), + 45: uint16(29861), + 46: uint16(29871), + 47: uint16(29968), + 48: uint16(29969), + 49: uint16(29970), + 50: uint16(29967), + 51: uint16(30084), + 52: uint16(30275), + 53: uint16(30280), + 54: uint16(30281), + 55: uint16(30279), + 56: uint16(30372), + 57: uint16(30441), + 58: uint16(30645), + 59: uint16(30635), + 60: uint16(30642), + 61: uint16(30647), + 62: uint16(30646), + 63: uint16(30644), + 64: uint16(30641), + 65: uint16(30632), + 66: uint16(30704), + 67: uint16(30963), + 68: uint16(30973), + 69: uint16(30978), + 70: uint16(30971), + 71: uint16(30972), + 72: uint16(30962), + 73: uint16(30981), + 74: uint16(30969), + 75: uint16(30974), + 76: uint16(30980), + 77: uint16(31147), + 78: uint16(31144), + 79: uint16(31324), + 80: uint16(31323), + 81: uint16(31318), + 82: uint16(31320), + 83: uint16(31316), + 84: uint16(31322), + 85: uint16(31422), + 86: uint16(31424), + 87: uint16(31425), + 88: uint16(31749), + 89: uint16(31759), + 90: uint16(31730), + 91: uint16(31744), + 92: uint16(31743), + 93: uint16(31739), + 94: uint16(31758), + 95: uint16(31732), + 96: uint16(31755), + 97: uint16(31731), + 98: uint16(31746), + 99: uint16(31753), + 100: uint16(31747), + 101: uint16(31745), + 102: uint16(31736), + 103: uint16(31741), + 104: uint16(31750), + 105: uint16(31728), + 106: uint16(31729), + 107: uint16(31760), + 108: uint16(31754), + 109: uint16(31976), + 110: uint16(32301), + 111: uint16(32316), + 112: uint16(32322), + 113: uint16(32307), + 114: uint16(38984), + 115: uint16(32312), + 116: uint16(32298), + 117: uint16(32329), + 118: uint16(32320), + 119: uint16(32327), + 120: uint16(32297), + 121: uint16(32332), + 122: uint16(32304), + 123: uint16(32315), + 124: uint16(32310), + 125: uint16(32324), + 126: uint16(32314), + 127: uint16(32581), + 128: uint16(32639), + 129: uint16(32638), + 130: uint16(32637), + 131: uint16(32756), + 132: uint16(32754), + 133: uint16(32812), + 134: uint16(33211), + 135: uint16(33220), + 136: uint16(33228), + 137: uint16(33226), + 138: uint16(33221), + 139: uint16(33223), + 140: uint16(33212), + 141: uint16(33257), + 142: uint16(33371), + 143: uint16(33370), + 144: uint16(33372), + 145: uint16(34179), + 146: uint16(34176), + 147: uint16(34191), + 148: uint16(34215), + 149: uint16(34197), + 150: uint16(34208), + 151: uint16(34187), + 152: uint16(34211), + 153: uint16(34171), + 154: uint16(34212), + 155: uint16(34202), + 156: uint16(34206), + }, + 77: { + 0: uint16(34167), + 1: uint16(34172), + 2: uint16(34185), + 3: uint16(34209), + 4: uint16(34170), + 5: uint16(34168), + 6: uint16(34135), + 7: uint16(34190), + 8: uint16(34198), + 9: uint16(34182), + 10: uint16(34189), + 11: uint16(34201), + 12: uint16(34205), + 13: uint16(34177), + 14: uint16(34210), + 15: uint16(34178), + 16: uint16(34184), + 17: uint16(34181), + 18: uint16(34169), + 19: uint16(34166), + 20: uint16(34200), + 21: uint16(34192), + 22: uint16(34207), + 23: uint16(34408), + 24: uint16(34750), + 25: uint16(34730), + 26: uint16(34733), + 27: uint16(34757), + 28: uint16(34736), + 29: uint16(34732), + 30: uint16(34745), + 31: uint16(34741), + 32: uint16(34748), + 33: uint16(34734), + 34: uint16(34761), + 35: uint16(34755), + 36: uint16(34754), + 37: uint16(34764), + 38: uint16(34743), + 39: uint16(34735), + 40: uint16(34756), + 41: uint16(34762), + 42: uint16(34740), + 43: uint16(34742), + 44: uint16(34751), + 45: uint16(34744), + 46: uint16(34749), + 47: uint16(34782), + 48: uint16(34738), + 49: uint16(35125), + 50: uint16(35123), + 51: uint16(35132), + 52: uint16(35134), + 53: uint16(35137), + 54: uint16(35154), + 55: uint16(35127), + 56: uint16(35138), + 57: uint16(35245), + 58: uint16(35247), + 59: uint16(35246), + 60: uint16(35314), + 61: uint16(35315), + 62: uint16(35614), + 63: uint16(35608), + 64: uint16(35606), + 65: uint16(35601), + 66: uint16(35589), + 67: uint16(35595), + 68: uint16(35618), + 69: uint16(35599), + 70: uint16(35602), + 71: uint16(35605), + 72: uint16(35591), + 73: uint16(35597), + 74: uint16(35592), + 75: uint16(35590), + 76: uint16(35612), + 77: uint16(35603), + 78: uint16(35610), + 79: uint16(35919), + 80: uint16(35952), + 81: uint16(35954), + 82: uint16(35953), + 83: uint16(35951), + 84: uint16(35989), + 85: uint16(35988), + 86: uint16(36089), + 87: uint16(36207), + 88: uint16(36430), + 89: uint16(36429), + 90: uint16(36435), + 91: uint16(36432), + 92: uint16(36428), + 93: uint16(36423), + 94: uint16(36675), + 95: uint16(36672), + 96: uint16(36997), + 97: uint16(36990), + 98: uint16(37176), + 99: uint16(37274), + 100: uint16(37282), + 101: uint16(37275), + 102: uint16(37273), + 103: uint16(37279), + 104: uint16(37281), + 105: uint16(37277), + 106: uint16(37280), + 107: uint16(37793), + 108: uint16(37763), + 109: uint16(37807), + 110: uint16(37732), + 111: uint16(37718), + 112: uint16(37703), + 113: uint16(37756), + 114: uint16(37720), + 115: uint16(37724), + 116: uint16(37750), + 117: uint16(37705), + 118: uint16(37712), + 119: uint16(37713), + 120: uint16(37728), + 121: uint16(37741), + 122: uint16(37775), + 123: uint16(37708), + 124: uint16(37738), + 125: uint16(37753), + 126: uint16(37719), + 127: uint16(37717), + 128: uint16(37714), + 129: uint16(37711), + 130: uint16(37745), + 131: uint16(37751), + 132: uint16(37755), + 133: uint16(37729), + 134: uint16(37726), + 135: uint16(37731), + 136: uint16(37735), + 137: uint16(37760), + 138: uint16(37710), + 139: uint16(37721), + 140: uint16(38343), + 141: uint16(38336), + 142: uint16(38345), + 143: uint16(38339), + 144: uint16(38341), + 145: uint16(38327), + 146: uint16(38574), + 147: uint16(38576), + 148: uint16(38572), + 149: uint16(38688), + 150: uint16(38687), + 151: uint16(38680), + 152: uint16(38685), + 153: uint16(38681), + 154: uint16(38810), + 155: uint16(38817), + 156: uint16(38812), + }, + 78: { + 0: uint16(38814), + 1: uint16(38813), + 2: uint16(38869), + 3: uint16(38868), + 4: uint16(38897), + 5: uint16(38977), + 6: uint16(38980), + 7: uint16(38986), + 8: uint16(38985), + 9: uint16(38981), + 10: uint16(38979), + 11: uint16(39205), + 12: uint16(39211), + 13: uint16(39212), + 14: uint16(39210), + 15: uint16(39219), + 16: uint16(39218), + 17: uint16(39215), + 18: uint16(39213), + 19: uint16(39217), + 20: uint16(39216), + 21: uint16(39320), + 22: uint16(39331), + 23: uint16(39329), + 24: uint16(39426), + 25: uint16(39418), + 26: uint16(39412), + 27: uint16(39415), + 28: uint16(39417), + 29: uint16(39416), + 30: uint16(39414), + 31: uint16(39419), + 32: uint16(39421), + 33: uint16(39422), + 34: uint16(39420), + 35: uint16(39427), + 36: uint16(39614), + 37: uint16(39678), + 38: uint16(39677), + 39: uint16(39681), + 40: uint16(39676), + 41: uint16(39752), + 42: uint16(39834), + 43: uint16(39848), + 44: uint16(39838), + 45: uint16(39835), + 46: uint16(39846), + 47: uint16(39841), + 48: uint16(39845), + 49: uint16(39844), + 50: uint16(39814), + 51: uint16(39842), + 52: uint16(39840), + 53: uint16(39855), + 54: uint16(40243), + 55: uint16(40257), + 56: uint16(40295), + 57: uint16(40246), + 58: uint16(40238), + 59: uint16(40239), + 60: uint16(40241), + 61: uint16(40248), + 62: uint16(40240), + 63: uint16(40261), + 64: uint16(40258), + 65: uint16(40259), + 66: uint16(40254), + 67: uint16(40247), + 68: uint16(40256), + 69: uint16(40253), + 70: uint16(32757), + 71: uint16(40237), + 72: uint16(40586), + 73: uint16(40585), + 74: uint16(40589), + 75: uint16(40624), + 76: uint16(40648), + 77: uint16(40666), + 78: uint16(40699), + 79: uint16(40703), + 80: uint16(40740), + 81: uint16(40739), + 82: uint16(40738), + 83: uint16(40788), + 84: uint16(40864), + 85: uint16(20785), + 86: uint16(20781), + 87: uint16(20782), + 88: uint16(22168), + 89: uint16(22172), + 90: uint16(22167), + 91: uint16(22170), + 92: uint16(22173), + 93: uint16(22169), + 94: uint16(22896), + 95: uint16(23356), + 96: uint16(23657), + 97: uint16(23658), + 98: uint16(24000), + 99: uint16(24173), + 100: uint16(24174), + 101: uint16(25048), + 102: uint16(25055), + 103: uint16(25069), + 104: uint16(25070), + 105: uint16(25073), + 106: uint16(25066), + 107: uint16(25072), + 108: uint16(25067), + 109: uint16(25046), + 110: uint16(25065), + 111: uint16(25855), + 112: uint16(25860), + 113: uint16(25853), + 114: uint16(25848), + 115: uint16(25857), + 116: uint16(25859), + 117: uint16(25852), + 118: uint16(26004), + 119: uint16(26075), + 120: uint16(26330), + 121: uint16(26331), + 122: uint16(26328), + 123: uint16(27333), + 124: uint16(27321), + 125: uint16(27325), + 126: uint16(27361), + 127: uint16(27334), + 128: uint16(27322), + 129: uint16(27318), + 130: uint16(27319), + 131: uint16(27335), + 132: uint16(27316), + 133: uint16(27309), + 134: uint16(27486), + 135: uint16(27593), + 136: uint16(27659), + 137: uint16(28679), + 138: uint16(28684), + 139: uint16(28685), + 140: uint16(28673), + 141: uint16(28677), + 142: uint16(28692), + 143: uint16(28686), + 144: uint16(28671), + 145: uint16(28672), + 146: uint16(28667), + 147: uint16(28710), + 148: uint16(28668), + 149: uint16(28663), + 150: uint16(28682), + 151: uint16(29185), + 152: uint16(29183), + 153: uint16(29177), + 154: uint16(29187), + 155: uint16(29181), + 156: uint16(29558), + }, + 79: { + 0: uint16(29880), + 1: uint16(29888), + 2: uint16(29877), + 3: uint16(29889), + 4: uint16(29886), + 5: uint16(29878), + 6: uint16(29883), + 7: uint16(29890), + 8: uint16(29972), + 9: uint16(29971), + 10: uint16(30300), + 11: uint16(30308), + 12: uint16(30297), + 13: uint16(30288), + 14: uint16(30291), + 15: uint16(30295), + 16: uint16(30298), + 17: uint16(30374), + 18: uint16(30397), + 19: uint16(30444), + 20: uint16(30658), + 21: uint16(30650), + 22: uint16(30975), + 23: uint16(30988), + 24: uint16(30995), + 25: uint16(30996), + 26: uint16(30985), + 27: uint16(30992), + 28: uint16(30994), + 29: uint16(30993), + 30: uint16(31149), + 31: uint16(31148), + 32: uint16(31327), + 33: uint16(31772), + 34: uint16(31785), + 35: uint16(31769), + 36: uint16(31776), + 37: uint16(31775), + 38: uint16(31789), + 39: uint16(31773), + 40: uint16(31782), + 41: uint16(31784), + 42: uint16(31778), + 43: uint16(31781), + 44: uint16(31792), + 45: uint16(32348), + 46: uint16(32336), + 47: uint16(32342), + 48: uint16(32355), + 49: uint16(32344), + 50: uint16(32354), + 51: uint16(32351), + 52: uint16(32337), + 53: uint16(32352), + 54: uint16(32343), + 55: uint16(32339), + 56: uint16(32693), + 57: uint16(32691), + 58: uint16(32759), + 59: uint16(32760), + 60: uint16(32885), + 61: uint16(33233), + 62: uint16(33234), + 63: uint16(33232), + 64: uint16(33375), + 65: uint16(33374), + 66: uint16(34228), + 67: uint16(34246), + 68: uint16(34240), + 69: uint16(34243), + 70: uint16(34242), + 71: uint16(34227), + 72: uint16(34229), + 73: uint16(34237), + 74: uint16(34247), + 75: uint16(34244), + 76: uint16(34239), + 77: uint16(34251), + 78: uint16(34254), + 79: uint16(34248), + 80: uint16(34245), + 81: uint16(34225), + 82: uint16(34230), + 83: uint16(34258), + 84: uint16(34340), + 85: uint16(34232), + 86: uint16(34231), + 87: uint16(34238), + 88: uint16(34409), + 89: uint16(34791), + 90: uint16(34790), + 91: uint16(34786), + 92: uint16(34779), + 93: uint16(34795), + 94: uint16(34794), + 95: uint16(34789), + 96: uint16(34783), + 97: uint16(34803), + 98: uint16(34788), + 99: uint16(34772), + 100: uint16(34780), + 101: uint16(34771), + 102: uint16(34797), + 103: uint16(34776), + 104: uint16(34787), + 105: uint16(34724), + 106: uint16(34775), + 107: uint16(34777), + 108: uint16(34817), + 109: uint16(34804), + 110: uint16(34792), + 111: uint16(34781), + 112: uint16(35155), + 113: uint16(35147), + 114: uint16(35151), + 115: uint16(35148), + 116: uint16(35142), + 117: uint16(35152), + 118: uint16(35153), + 119: uint16(35145), + 120: uint16(35626), + 121: uint16(35623), + 122: uint16(35619), + 123: uint16(35635), + 124: uint16(35632), + 125: uint16(35637), + 126: uint16(35655), + 127: uint16(35631), + 128: uint16(35644), + 129: uint16(35646), + 130: uint16(35633), + 131: uint16(35621), + 132: uint16(35639), + 133: uint16(35622), + 134: uint16(35638), + 135: uint16(35630), + 136: uint16(35620), + 137: uint16(35643), + 138: uint16(35645), + 139: uint16(35642), + 140: uint16(35906), + 141: uint16(35957), + 142: uint16(35993), + 143: uint16(35992), + 144: uint16(35991), + 145: uint16(36094), + 146: uint16(36100), + 147: uint16(36098), + 148: uint16(36096), + 149: uint16(36444), + 150: uint16(36450), + 151: uint16(36448), + 152: uint16(36439), + 153: uint16(36438), + 154: uint16(36446), + 155: uint16(36453), + 156: uint16(36455), + }, + 80: { + 0: uint16(36443), + 1: uint16(36442), + 2: uint16(36449), + 3: uint16(36445), + 4: uint16(36457), + 5: uint16(36436), + 6: uint16(36678), + 7: uint16(36679), + 8: uint16(36680), + 9: uint16(36683), + 10: uint16(37160), + 11: uint16(37178), + 12: uint16(37179), + 13: uint16(37182), + 14: uint16(37288), + 15: uint16(37285), + 16: uint16(37287), + 17: uint16(37295), + 18: uint16(37290), + 19: uint16(37813), + 20: uint16(37772), + 21: uint16(37778), + 22: uint16(37815), + 23: uint16(37787), + 24: uint16(37789), + 25: uint16(37769), + 26: uint16(37799), + 27: uint16(37774), + 28: uint16(37802), + 29: uint16(37790), + 30: uint16(37798), + 31: uint16(37781), + 32: uint16(37768), + 33: uint16(37785), + 34: uint16(37791), + 35: uint16(37773), + 36: uint16(37809), + 37: uint16(37777), + 38: uint16(37810), + 39: uint16(37796), + 40: uint16(37800), + 41: uint16(37812), + 42: uint16(37795), + 43: uint16(37797), + 44: uint16(38354), + 45: uint16(38355), + 46: uint16(38353), + 47: uint16(38579), + 48: uint16(38615), + 49: uint16(38618), + 50: uint16(24002), + 51: uint16(38623), + 52: uint16(38616), + 53: uint16(38621), + 54: uint16(38691), + 55: uint16(38690), + 56: uint16(38693), + 57: uint16(38828), + 58: uint16(38830), + 59: uint16(38824), + 60: uint16(38827), + 61: uint16(38820), + 62: uint16(38826), + 63: uint16(38818), + 64: uint16(38821), + 65: uint16(38871), + 66: uint16(38873), + 67: uint16(38870), + 68: uint16(38872), + 69: uint16(38906), + 70: uint16(38992), + 71: uint16(38993), + 72: uint16(38994), + 73: uint16(39096), + 74: uint16(39233), + 75: uint16(39228), + 76: uint16(39226), + 77: uint16(39439), + 78: uint16(39435), + 79: uint16(39433), + 80: uint16(39437), + 81: uint16(39428), + 82: uint16(39441), + 83: uint16(39434), + 84: uint16(39429), + 85: uint16(39431), + 86: uint16(39430), + 87: uint16(39616), + 88: uint16(39644), + 89: uint16(39688), + 90: uint16(39684), + 91: uint16(39685), + 92: uint16(39721), + 93: uint16(39733), + 94: uint16(39754), + 95: uint16(39756), + 96: uint16(39755), + 97: uint16(39879), + 98: uint16(39878), + 99: uint16(39875), + 100: uint16(39871), + 101: uint16(39873), + 102: uint16(39861), + 103: uint16(39864), + 104: uint16(39891), + 105: uint16(39862), + 106: uint16(39876), + 107: uint16(39865), + 108: uint16(39869), + 109: uint16(40284), + 110: uint16(40275), + 111: uint16(40271), + 112: uint16(40266), + 113: uint16(40283), + 114: uint16(40267), + 115: uint16(40281), + 116: uint16(40278), + 117: uint16(40268), + 118: uint16(40279), + 119: uint16(40274), + 120: uint16(40276), + 121: uint16(40287), + 122: uint16(40280), + 123: uint16(40282), + 124: uint16(40590), + 125: uint16(40588), + 126: uint16(40671), + 127: uint16(40705), + 128: uint16(40704), + 129: uint16(40726), + 130: uint16(40741), + 131: uint16(40747), + 132: uint16(40746), + 133: uint16(40745), + 134: uint16(40744), + 135: uint16(40780), + 136: uint16(40789), + 137: uint16(20788), + 138: uint16(20789), + 139: uint16(21142), + 140: uint16(21239), + 141: uint16(21428), + 142: uint16(22187), + 143: uint16(22189), + 144: uint16(22182), + 145: uint16(22183), + 146: uint16(22186), + 147: uint16(22188), + 148: uint16(22746), + 149: uint16(22749), + 150: uint16(22747), + 151: uint16(22802), + 152: uint16(23357), + 153: uint16(23358), + 154: uint16(23359), + 155: uint16(24003), + 156: uint16(24176), + }, + 81: { + 0: uint16(24511), + 1: uint16(25083), + 2: uint16(25863), + 3: uint16(25872), + 4: uint16(25869), + 5: uint16(25865), + 6: uint16(25868), + 7: uint16(25870), + 8: uint16(25988), + 9: uint16(26078), + 10: uint16(26077), + 11: uint16(26334), + 12: uint16(27367), + 13: uint16(27360), + 14: uint16(27340), + 15: uint16(27345), + 16: uint16(27353), + 17: uint16(27339), + 18: uint16(27359), + 19: uint16(27356), + 20: uint16(27344), + 21: uint16(27371), + 22: uint16(27343), + 23: uint16(27341), + 24: uint16(27358), + 25: uint16(27488), + 26: uint16(27568), + 27: uint16(27660), + 28: uint16(28697), + 29: uint16(28711), + 30: uint16(28704), + 31: uint16(28694), + 32: uint16(28715), + 33: uint16(28705), + 34: uint16(28706), + 35: uint16(28707), + 36: uint16(28713), + 37: uint16(28695), + 38: uint16(28708), + 39: uint16(28700), + 40: uint16(28714), + 41: uint16(29196), + 42: uint16(29194), + 43: uint16(29191), + 44: uint16(29186), + 45: uint16(29189), + 46: uint16(29349), + 47: uint16(29350), + 48: uint16(29348), + 49: uint16(29347), + 50: uint16(29345), + 51: uint16(29899), + 52: uint16(29893), + 53: uint16(29879), + 54: uint16(29891), + 55: uint16(29974), + 56: uint16(30304), + 57: uint16(30665), + 58: uint16(30666), + 59: uint16(30660), + 60: uint16(30705), + 61: uint16(31005), + 62: uint16(31003), + 63: uint16(31009), + 64: uint16(31004), + 65: uint16(30999), + 66: uint16(31006), + 67: uint16(31152), + 68: uint16(31335), + 69: uint16(31336), + 70: uint16(31795), + 71: uint16(31804), + 72: uint16(31801), + 73: uint16(31788), + 74: uint16(31803), + 75: uint16(31980), + 76: uint16(31978), + 77: uint16(32374), + 78: uint16(32373), + 79: uint16(32376), + 80: uint16(32368), + 81: uint16(32375), + 82: uint16(32367), + 83: uint16(32378), + 84: uint16(32370), + 85: uint16(32372), + 86: uint16(32360), + 87: uint16(32587), + 88: uint16(32586), + 89: uint16(32643), + 90: uint16(32646), + 91: uint16(32695), + 92: uint16(32765), + 93: uint16(32766), + 94: uint16(32888), + 95: uint16(33239), + 96: uint16(33237), + 97: uint16(33380), + 98: uint16(33377), + 99: uint16(33379), + 100: uint16(34283), + 101: uint16(34289), + 102: uint16(34285), + 103: uint16(34265), + 104: uint16(34273), + 105: uint16(34280), + 106: uint16(34266), + 107: uint16(34263), + 108: uint16(34284), + 109: uint16(34290), + 110: uint16(34296), + 111: uint16(34264), + 112: uint16(34271), + 113: uint16(34275), + 114: uint16(34268), + 115: uint16(34257), + 116: uint16(34288), + 117: uint16(34278), + 118: uint16(34287), + 119: uint16(34270), + 120: uint16(34274), + 121: uint16(34816), + 122: uint16(34810), + 123: uint16(34819), + 124: uint16(34806), + 125: uint16(34807), + 126: uint16(34825), + 127: uint16(34828), + 128: uint16(34827), + 129: uint16(34822), + 130: uint16(34812), + 131: uint16(34824), + 132: uint16(34815), + 133: uint16(34826), + 134: uint16(34818), + 135: uint16(35170), + 136: uint16(35162), + 137: uint16(35163), + 138: uint16(35159), + 139: uint16(35169), + 140: uint16(35164), + 141: uint16(35160), + 142: uint16(35165), + 143: uint16(35161), + 144: uint16(35208), + 145: uint16(35255), + 146: uint16(35254), + 147: uint16(35318), + 148: uint16(35664), + 149: uint16(35656), + 150: uint16(35658), + 151: uint16(35648), + 152: uint16(35667), + 153: uint16(35670), + 154: uint16(35668), + 155: uint16(35659), + 156: uint16(35669), + }, + 82: { + 0: uint16(35665), + 1: uint16(35650), + 2: uint16(35666), + 3: uint16(35671), + 4: uint16(35907), + 5: uint16(35959), + 6: uint16(35958), + 7: uint16(35994), + 8: uint16(36102), + 9: uint16(36103), + 10: uint16(36105), + 11: uint16(36268), + 12: uint16(36266), + 13: uint16(36269), + 14: uint16(36267), + 15: uint16(36461), + 16: uint16(36472), + 17: uint16(36467), + 18: uint16(36458), + 19: uint16(36463), + 20: uint16(36475), + 21: uint16(36546), + 22: uint16(36690), + 23: uint16(36689), + 24: uint16(36687), + 25: uint16(36688), + 26: uint16(36691), + 27: uint16(36788), + 28: uint16(37184), + 29: uint16(37183), + 30: uint16(37296), + 31: uint16(37293), + 32: uint16(37854), + 33: uint16(37831), + 34: uint16(37839), + 35: uint16(37826), + 36: uint16(37850), + 37: uint16(37840), + 38: uint16(37881), + 39: uint16(37868), + 40: uint16(37836), + 41: uint16(37849), + 42: uint16(37801), + 43: uint16(37862), + 44: uint16(37834), + 45: uint16(37844), + 46: uint16(37870), + 47: uint16(37859), + 48: uint16(37845), + 49: uint16(37828), + 50: uint16(37838), + 51: uint16(37824), + 52: uint16(37842), + 53: uint16(37863), + 54: uint16(38269), + 55: uint16(38362), + 56: uint16(38363), + 57: uint16(38625), + 58: uint16(38697), + 59: uint16(38699), + 60: uint16(38700), + 61: uint16(38696), + 62: uint16(38694), + 63: uint16(38835), + 64: uint16(38839), + 65: uint16(38838), + 66: uint16(38877), + 67: uint16(38878), + 68: uint16(38879), + 69: uint16(39004), + 70: uint16(39001), + 71: uint16(39005), + 72: uint16(38999), + 73: uint16(39103), + 74: uint16(39101), + 75: uint16(39099), + 76: uint16(39102), + 77: uint16(39240), + 78: uint16(39239), + 79: uint16(39235), + 80: uint16(39334), + 81: uint16(39335), + 82: uint16(39450), + 83: uint16(39445), + 84: uint16(39461), + 85: uint16(39453), + 86: uint16(39460), + 87: uint16(39451), + 88: uint16(39458), + 89: uint16(39456), + 90: uint16(39463), + 91: uint16(39459), + 92: uint16(39454), + 93: uint16(39452), + 94: uint16(39444), + 95: uint16(39618), + 96: uint16(39691), + 97: uint16(39690), + 98: uint16(39694), + 99: uint16(39692), + 100: uint16(39735), + 101: uint16(39914), + 102: uint16(39915), + 103: uint16(39904), + 104: uint16(39902), + 105: uint16(39908), + 106: uint16(39910), + 107: uint16(39906), + 108: uint16(39920), + 109: uint16(39892), + 110: uint16(39895), + 111: uint16(39916), + 112: uint16(39900), + 113: uint16(39897), + 114: uint16(39909), + 115: uint16(39893), + 116: uint16(39905), + 117: uint16(39898), + 118: uint16(40311), + 119: uint16(40321), + 120: uint16(40330), + 121: uint16(40324), + 122: uint16(40328), + 123: uint16(40305), + 124: uint16(40320), + 125: uint16(40312), + 126: uint16(40326), + 127: uint16(40331), + 128: uint16(40332), + 129: uint16(40317), + 130: uint16(40299), + 131: uint16(40308), + 132: uint16(40309), + 133: uint16(40304), + 134: uint16(40297), + 135: uint16(40325), + 136: uint16(40307), + 137: uint16(40315), + 138: uint16(40322), + 139: uint16(40303), + 140: uint16(40313), + 141: uint16(40319), + 142: uint16(40327), + 143: uint16(40296), + 144: uint16(40596), + 145: uint16(40593), + 146: uint16(40640), + 147: uint16(40700), + 148: uint16(40749), + 149: uint16(40768), + 150: uint16(40769), + 151: uint16(40781), + 152: uint16(40790), + 153: uint16(40791), + 154: uint16(40792), + 155: uint16(21303), + 156: uint16(22194), + }, + 83: { + 0: uint16(22197), + 1: uint16(22195), + 2: uint16(22755), + 3: uint16(23365), + 4: uint16(24006), + 5: uint16(24007), + 6: uint16(24302), + 7: uint16(24303), + 8: uint16(24512), + 9: uint16(24513), + 10: uint16(25081), + 11: uint16(25879), + 12: uint16(25878), + 13: uint16(25877), + 14: uint16(25875), + 15: uint16(26079), + 16: uint16(26344), + 17: uint16(26339), + 18: uint16(26340), + 19: uint16(27379), + 20: uint16(27376), + 21: uint16(27370), + 22: uint16(27368), + 23: uint16(27385), + 24: uint16(27377), + 25: uint16(27374), + 26: uint16(27375), + 27: uint16(28732), + 28: uint16(28725), + 29: uint16(28719), + 30: uint16(28727), + 31: uint16(28724), + 32: uint16(28721), + 33: uint16(28738), + 34: uint16(28728), + 35: uint16(28735), + 36: uint16(28730), + 37: uint16(28729), + 38: uint16(28736), + 39: uint16(28731), + 40: uint16(28723), + 41: uint16(28737), + 42: uint16(29203), + 43: uint16(29204), + 44: uint16(29352), + 45: uint16(29565), + 46: uint16(29564), + 47: uint16(29882), + 48: uint16(30379), + 49: uint16(30378), + 50: uint16(30398), + 51: uint16(30445), + 52: uint16(30668), + 53: uint16(30670), + 54: uint16(30671), + 55: uint16(30669), + 56: uint16(30706), + 57: uint16(31013), + 58: uint16(31011), + 59: uint16(31015), + 60: uint16(31016), + 61: uint16(31012), + 62: uint16(31017), + 63: uint16(31154), + 64: uint16(31342), + 65: uint16(31340), + 66: uint16(31341), + 67: uint16(31479), + 68: uint16(31817), + 69: uint16(31816), + 70: uint16(31818), + 71: uint16(31815), + 72: uint16(31813), + 73: uint16(31982), + 74: uint16(32379), + 75: uint16(32382), + 76: uint16(32385), + 77: uint16(32384), + 78: uint16(32698), + 79: uint16(32767), + 80: uint16(32889), + 81: uint16(33243), + 82: uint16(33241), + 83: uint16(33291), + 84: uint16(33384), + 85: uint16(33385), + 86: uint16(34338), + 87: uint16(34303), + 88: uint16(34305), + 89: uint16(34302), + 90: uint16(34331), + 91: uint16(34304), + 92: uint16(34294), + 93: uint16(34308), + 94: uint16(34313), + 95: uint16(34309), + 96: uint16(34316), + 97: uint16(34301), + 98: uint16(34841), + 99: uint16(34832), + 100: uint16(34833), + 101: uint16(34839), + 102: uint16(34835), + 103: uint16(34838), + 104: uint16(35171), + 105: uint16(35174), + 106: uint16(35257), + 107: uint16(35319), + 108: uint16(35680), + 109: uint16(35690), + 110: uint16(35677), + 111: uint16(35688), + 112: uint16(35683), + 113: uint16(35685), + 114: uint16(35687), + 115: uint16(35693), + 116: uint16(36270), + 117: uint16(36486), + 118: uint16(36488), + 119: uint16(36484), + 120: uint16(36697), + 121: uint16(36694), + 122: uint16(36695), + 123: uint16(36693), + 124: uint16(36696), + 125: uint16(36698), + 126: uint16(37005), + 127: uint16(37187), + 128: uint16(37185), + 129: uint16(37303), + 130: uint16(37301), + 131: uint16(37298), + 132: uint16(37299), + 133: uint16(37899), + 134: uint16(37907), + 135: uint16(37883), + 136: uint16(37920), + 137: uint16(37903), + 138: uint16(37908), + 139: uint16(37886), + 140: uint16(37909), + 141: uint16(37904), + 142: uint16(37928), + 143: uint16(37913), + 144: uint16(37901), + 145: uint16(37877), + 146: uint16(37888), + 147: uint16(37879), + 148: uint16(37895), + 149: uint16(37902), + 150: uint16(37910), + 151: uint16(37906), + 152: uint16(37882), + 153: uint16(37897), + 154: uint16(37880), + 155: uint16(37898), + 156: uint16(37887), + }, + 84: { + 0: uint16(37884), + 1: uint16(37900), + 2: uint16(37878), + 3: uint16(37905), + 4: uint16(37894), + 5: uint16(38366), + 6: uint16(38368), + 7: uint16(38367), + 8: uint16(38702), + 9: uint16(38703), + 10: uint16(38841), + 11: uint16(38843), + 12: uint16(38909), + 13: uint16(38910), + 14: uint16(39008), + 15: uint16(39010), + 16: uint16(39011), + 17: uint16(39007), + 18: uint16(39105), + 19: uint16(39106), + 20: uint16(39248), + 21: uint16(39246), + 22: uint16(39257), + 23: uint16(39244), + 24: uint16(39243), + 25: uint16(39251), + 26: uint16(39474), + 27: uint16(39476), + 28: uint16(39473), + 29: uint16(39468), + 30: uint16(39466), + 31: uint16(39478), + 32: uint16(39465), + 33: uint16(39470), + 34: uint16(39480), + 35: uint16(39469), + 36: uint16(39623), + 37: uint16(39626), + 38: uint16(39622), + 39: uint16(39696), + 40: uint16(39698), + 41: uint16(39697), + 42: uint16(39947), + 43: uint16(39944), + 44: uint16(39927), + 45: uint16(39941), + 46: uint16(39954), + 47: uint16(39928), + 48: uint16(40000), + 49: uint16(39943), + 50: uint16(39950), + 51: uint16(39942), + 52: uint16(39959), + 53: uint16(39956), + 54: uint16(39945), + 55: uint16(40351), + 56: uint16(40345), + 57: uint16(40356), + 58: uint16(40349), + 59: uint16(40338), + 60: uint16(40344), + 61: uint16(40336), + 62: uint16(40347), + 63: uint16(40352), + 64: uint16(40340), + 65: uint16(40348), + 66: uint16(40362), + 67: uint16(40343), + 68: uint16(40353), + 69: uint16(40346), + 70: uint16(40354), + 71: uint16(40360), + 72: uint16(40350), + 73: uint16(40355), + 74: uint16(40383), + 75: uint16(40361), + 76: uint16(40342), + 77: uint16(40358), + 78: uint16(40359), + 79: uint16(40601), + 80: uint16(40603), + 81: uint16(40602), + 82: uint16(40677), + 83: uint16(40676), + 84: uint16(40679), + 85: uint16(40678), + 86: uint16(40752), + 87: uint16(40750), + 88: uint16(40795), + 89: uint16(40800), + 90: uint16(40798), + 91: uint16(40797), + 92: uint16(40793), + 93: uint16(40849), + 94: uint16(20794), + 95: uint16(20793), + 96: uint16(21144), + 97: uint16(21143), + 98: uint16(22211), + 99: uint16(22205), + 100: uint16(22206), + 101: uint16(23368), + 102: uint16(23367), + 103: uint16(24011), + 104: uint16(24015), + 105: uint16(24305), + 106: uint16(25085), + 107: uint16(25883), + 108: uint16(27394), + 109: uint16(27388), + 110: uint16(27395), + 111: uint16(27384), + 112: uint16(27392), + 113: uint16(28739), + 114: uint16(28740), + 115: uint16(28746), + 116: uint16(28744), + 117: uint16(28745), + 118: uint16(28741), + 119: uint16(28742), + 120: uint16(29213), + 121: uint16(29210), + 122: uint16(29209), + 123: uint16(29566), + 124: uint16(29975), + 125: uint16(30314), + 126: uint16(30672), + 127: uint16(31021), + 128: uint16(31025), + 129: uint16(31023), + 130: uint16(31828), + 131: uint16(31827), + 132: uint16(31986), + 133: uint16(32394), + 134: uint16(32391), + 135: uint16(32392), + 136: uint16(32395), + 137: uint16(32390), + 138: uint16(32397), + 139: uint16(32589), + 140: uint16(32699), + 141: uint16(32816), + 142: uint16(33245), + 143: uint16(34328), + 144: uint16(34346), + 145: uint16(34342), + 146: uint16(34335), + 147: uint16(34339), + 148: uint16(34332), + 149: uint16(34329), + 150: uint16(34343), + 151: uint16(34350), + 152: uint16(34337), + 153: uint16(34336), + 154: uint16(34345), + 155: uint16(34334), + 156: uint16(34341), + }, + 85: { + 0: uint16(34857), + 1: uint16(34845), + 2: uint16(34843), + 3: uint16(34848), + 4: uint16(34852), + 5: uint16(34844), + 6: uint16(34859), + 7: uint16(34890), + 8: uint16(35181), + 9: uint16(35177), + 10: uint16(35182), + 11: uint16(35179), + 12: uint16(35322), + 13: uint16(35705), + 14: uint16(35704), + 15: uint16(35653), + 16: uint16(35706), + 17: uint16(35707), + 18: uint16(36112), + 19: uint16(36116), + 20: uint16(36271), + 21: uint16(36494), + 22: uint16(36492), + 23: uint16(36702), + 24: uint16(36699), + 25: uint16(36701), + 26: uint16(37190), + 27: uint16(37188), + 28: uint16(37189), + 29: uint16(37305), + 30: uint16(37951), + 31: uint16(37947), + 32: uint16(37942), + 33: uint16(37929), + 34: uint16(37949), + 35: uint16(37948), + 36: uint16(37936), + 37: uint16(37945), + 38: uint16(37930), + 39: uint16(37943), + 40: uint16(37932), + 41: uint16(37952), + 42: uint16(37937), + 43: uint16(38373), + 44: uint16(38372), + 45: uint16(38371), + 46: uint16(38709), + 47: uint16(38714), + 48: uint16(38847), + 49: uint16(38881), + 50: uint16(39012), + 51: uint16(39113), + 52: uint16(39110), + 53: uint16(39104), + 54: uint16(39256), + 55: uint16(39254), + 56: uint16(39481), + 57: uint16(39485), + 58: uint16(39494), + 59: uint16(39492), + 60: uint16(39490), + 61: uint16(39489), + 62: uint16(39482), + 63: uint16(39487), + 64: uint16(39629), + 65: uint16(39701), + 66: uint16(39703), + 67: uint16(39704), + 68: uint16(39702), + 69: uint16(39738), + 70: uint16(39762), + 71: uint16(39979), + 72: uint16(39965), + 73: uint16(39964), + 74: uint16(39980), + 75: uint16(39971), + 76: uint16(39976), + 77: uint16(39977), + 78: uint16(39972), + 79: uint16(39969), + 80: uint16(40375), + 81: uint16(40374), + 82: uint16(40380), + 83: uint16(40385), + 84: uint16(40391), + 85: uint16(40394), + 86: uint16(40399), + 87: uint16(40382), + 88: uint16(40389), + 89: uint16(40387), + 90: uint16(40379), + 91: uint16(40373), + 92: uint16(40398), + 93: uint16(40377), + 94: uint16(40378), + 95: uint16(40364), + 96: uint16(40392), + 97: uint16(40369), + 98: uint16(40365), + 99: uint16(40396), + 100: uint16(40371), + 101: uint16(40397), + 102: uint16(40370), + 103: uint16(40570), + 104: uint16(40604), + 105: uint16(40683), + 106: uint16(40686), + 107: uint16(40685), + 108: uint16(40731), + 109: uint16(40728), + 110: uint16(40730), + 111: uint16(40753), + 112: uint16(40782), + 113: uint16(40805), + 114: uint16(40804), + 115: uint16(40850), + 116: uint16(20153), + 117: uint16(22214), + 118: uint16(22213), + 119: uint16(22219), + 120: uint16(22897), + 121: uint16(23371), + 122: uint16(23372), + 123: uint16(24021), + 124: uint16(24017), + 125: uint16(24306), + 126: uint16(25889), + 127: uint16(25888), + 128: uint16(25894), + 129: uint16(25890), + 130: uint16(27403), + 131: uint16(27400), + 132: uint16(27401), + 133: uint16(27661), + 134: uint16(28757), + 135: uint16(28758), + 136: uint16(28759), + 137: uint16(28754), + 138: uint16(29214), + 139: uint16(29215), + 140: uint16(29353), + 141: uint16(29567), + 142: uint16(29912), + 143: uint16(29909), + 144: uint16(29913), + 145: uint16(29911), + 146: uint16(30317), + 147: uint16(30381), + 148: uint16(31029), + 149: uint16(31156), + 150: uint16(31344), + 151: uint16(31345), + 152: uint16(31831), + 153: uint16(31836), + 154: uint16(31833), + 155: uint16(31835), + 156: uint16(31834), + }, + 86: { + 0: uint16(31988), + 1: uint16(31985), + 2: uint16(32401), + 3: uint16(32591), + 4: uint16(32647), + 5: uint16(33246), + 6: uint16(33387), + 7: uint16(34356), + 8: uint16(34357), + 9: uint16(34355), + 10: uint16(34348), + 11: uint16(34354), + 12: uint16(34358), + 13: uint16(34860), + 14: uint16(34856), + 15: uint16(34854), + 16: uint16(34858), + 17: uint16(34853), + 18: uint16(35185), + 19: uint16(35263), + 20: uint16(35262), + 21: uint16(35323), + 22: uint16(35710), + 23: uint16(35716), + 24: uint16(35714), + 25: uint16(35718), + 26: uint16(35717), + 27: uint16(35711), + 28: uint16(36117), + 29: uint16(36501), + 30: uint16(36500), + 31: uint16(36506), + 32: uint16(36498), + 33: uint16(36496), + 34: uint16(36502), + 35: uint16(36503), + 36: uint16(36704), + 37: uint16(36706), + 38: uint16(37191), + 39: uint16(37964), + 40: uint16(37968), + 41: uint16(37962), + 42: uint16(37963), + 43: uint16(37967), + 44: uint16(37959), + 45: uint16(37957), + 46: uint16(37960), + 47: uint16(37961), + 48: uint16(37958), + 49: uint16(38719), + 50: uint16(38883), + 51: uint16(39018), + 52: uint16(39017), + 53: uint16(39115), + 54: uint16(39252), + 55: uint16(39259), + 56: uint16(39502), + 57: uint16(39507), + 58: uint16(39508), + 59: uint16(39500), + 60: uint16(39503), + 61: uint16(39496), + 62: uint16(39498), + 63: uint16(39497), + 64: uint16(39506), + 65: uint16(39504), + 66: uint16(39632), + 67: uint16(39705), + 68: uint16(39723), + 69: uint16(39739), + 70: uint16(39766), + 71: uint16(39765), + 72: uint16(40006), + 73: uint16(40008), + 74: uint16(39999), + 75: uint16(40004), + 76: uint16(39993), + 77: uint16(39987), + 78: uint16(40001), + 79: uint16(39996), + 80: uint16(39991), + 81: uint16(39988), + 82: uint16(39986), + 83: uint16(39997), + 84: uint16(39990), + 85: uint16(40411), + 86: uint16(40402), + 87: uint16(40414), + 88: uint16(40410), + 89: uint16(40395), + 90: uint16(40400), + 91: uint16(40412), + 92: uint16(40401), + 93: uint16(40415), + 94: uint16(40425), + 95: uint16(40409), + 96: uint16(40408), + 97: uint16(40406), + 98: uint16(40437), + 99: uint16(40405), + 100: uint16(40413), + 101: uint16(40630), + 102: uint16(40688), + 103: uint16(40757), + 104: uint16(40755), + 105: uint16(40754), + 106: uint16(40770), + 107: uint16(40811), + 108: uint16(40853), + 109: uint16(40866), + 110: uint16(20797), + 111: uint16(21145), + 112: uint16(22760), + 113: uint16(22759), + 114: uint16(22898), + 115: uint16(23373), + 116: uint16(24024), + 117: uint16(34863), + 118: uint16(24399), + 119: uint16(25089), + 120: uint16(25091), + 121: uint16(25092), + 122: uint16(25897), + 123: uint16(25893), + 124: uint16(26006), + 125: uint16(26347), + 126: uint16(27409), + 127: uint16(27410), + 128: uint16(27407), + 129: uint16(27594), + 130: uint16(28763), + 131: uint16(28762), + 132: uint16(29218), + 133: uint16(29570), + 134: uint16(29569), + 135: uint16(29571), + 136: uint16(30320), + 137: uint16(30676), + 138: uint16(31847), + 139: uint16(31846), + 140: uint16(32405), + 141: uint16(33388), + 142: uint16(34362), + 143: uint16(34368), + 144: uint16(34361), + 145: uint16(34364), + 146: uint16(34353), + 147: uint16(34363), + 148: uint16(34366), + 149: uint16(34864), + 150: uint16(34866), + 151: uint16(34862), + 152: uint16(34867), + 153: uint16(35190), + 154: uint16(35188), + 155: uint16(35187), + 156: uint16(35326), + }, + 87: { + 0: uint16(35724), + 1: uint16(35726), + 2: uint16(35723), + 3: uint16(35720), + 4: uint16(35909), + 5: uint16(36121), + 6: uint16(36504), + 7: uint16(36708), + 8: uint16(36707), + 9: uint16(37308), + 10: uint16(37986), + 11: uint16(37973), + 12: uint16(37981), + 13: uint16(37975), + 14: uint16(37982), + 15: uint16(38852), + 16: uint16(38853), + 17: uint16(38912), + 18: uint16(39510), + 19: uint16(39513), + 20: uint16(39710), + 21: uint16(39711), + 22: uint16(39712), + 23: uint16(40018), + 24: uint16(40024), + 25: uint16(40016), + 26: uint16(40010), + 27: uint16(40013), + 28: uint16(40011), + 29: uint16(40021), + 30: uint16(40025), + 31: uint16(40012), + 32: uint16(40014), + 33: uint16(40443), + 34: uint16(40439), + 35: uint16(40431), + 36: uint16(40419), + 37: uint16(40427), + 38: uint16(40440), + 39: uint16(40420), + 40: uint16(40438), + 41: uint16(40417), + 42: uint16(40430), + 43: uint16(40422), + 44: uint16(40434), + 45: uint16(40432), + 46: uint16(40418), + 47: uint16(40428), + 48: uint16(40436), + 49: uint16(40435), + 50: uint16(40424), + 51: uint16(40429), + 52: uint16(40642), + 53: uint16(40656), + 54: uint16(40690), + 55: uint16(40691), + 56: uint16(40710), + 57: uint16(40732), + 58: uint16(40760), + 59: uint16(40759), + 60: uint16(40758), + 61: uint16(40771), + 62: uint16(40783), + 63: uint16(40817), + 64: uint16(40816), + 65: uint16(40814), + 66: uint16(40815), + 67: uint16(22227), + 68: uint16(22221), + 69: uint16(23374), + 70: uint16(23661), + 71: uint16(25901), + 72: uint16(26349), + 73: uint16(26350), + 74: uint16(27411), + 75: uint16(28767), + 76: uint16(28769), + 77: uint16(28765), + 78: uint16(28768), + 79: uint16(29219), + 80: uint16(29915), + 81: uint16(29925), + 82: uint16(30677), + 83: uint16(31032), + 84: uint16(31159), + 85: uint16(31158), + 86: uint16(31850), + 87: uint16(32407), + 88: uint16(32649), + 89: uint16(33389), + 90: uint16(34371), + 91: uint16(34872), + 92: uint16(34871), + 93: uint16(34869), + 94: uint16(34891), + 95: uint16(35732), + 96: uint16(35733), + 97: uint16(36510), + 98: uint16(36511), + 99: uint16(36512), + 100: uint16(36509), + 101: uint16(37310), + 102: uint16(37309), + 103: uint16(37314), + 104: uint16(37995), + 105: uint16(37992), + 106: uint16(37993), + 107: uint16(38629), + 108: uint16(38726), + 109: uint16(38723), + 110: uint16(38727), + 111: uint16(38855), + 112: uint16(38885), + 113: uint16(39518), + 114: uint16(39637), + 115: uint16(39769), + 116: uint16(40035), + 117: uint16(40039), + 118: uint16(40038), + 119: uint16(40034), + 120: uint16(40030), + 121: uint16(40032), + 122: uint16(40450), + 123: uint16(40446), + 124: uint16(40455), + 125: uint16(40451), + 126: uint16(40454), + 127: uint16(40453), + 128: uint16(40448), + 129: uint16(40449), + 130: uint16(40457), + 131: uint16(40447), + 132: uint16(40445), + 133: uint16(40452), + 134: uint16(40608), + 135: uint16(40734), + 136: uint16(40774), + 137: uint16(40820), + 138: uint16(40821), + 139: uint16(40822), + 140: uint16(22228), + 141: uint16(25902), + 142: uint16(26040), + 143: uint16(27416), + 144: uint16(27417), + 145: uint16(27415), + 146: uint16(27418), + 147: uint16(28770), + 148: uint16(29222), + 149: uint16(29354), + 150: uint16(30680), + 151: uint16(30681), + 152: uint16(31033), + 153: uint16(31849), + 154: uint16(31851), + 155: uint16(31990), + 156: uint16(32410), + }, + 88: { + 0: uint16(32408), + 1: uint16(32411), + 2: uint16(32409), + 3: uint16(33248), + 4: uint16(33249), + 5: uint16(34374), + 6: uint16(34375), + 7: uint16(34376), + 8: uint16(35193), + 9: uint16(35194), + 10: uint16(35196), + 11: uint16(35195), + 12: uint16(35327), + 13: uint16(35736), + 14: uint16(35737), + 15: uint16(36517), + 16: uint16(36516), + 17: uint16(36515), + 18: uint16(37998), + 19: uint16(37997), + 20: uint16(37999), + 21: uint16(38001), + 22: uint16(38003), + 23: uint16(38729), + 24: uint16(39026), + 25: uint16(39263), + 26: uint16(40040), + 27: uint16(40046), + 28: uint16(40045), + 29: uint16(40459), + 30: uint16(40461), + 31: uint16(40464), + 32: uint16(40463), + 33: uint16(40466), + 34: uint16(40465), + 35: uint16(40609), + 36: uint16(40693), + 37: uint16(40713), + 38: uint16(40775), + 39: uint16(40824), + 40: uint16(40827), + 41: uint16(40826), + 42: uint16(40825), + 43: uint16(22302), + 44: uint16(28774), + 45: uint16(31855), + 46: uint16(34876), + 47: uint16(36274), + 48: uint16(36518), + 49: uint16(37315), + 50: uint16(38004), + 51: uint16(38008), + 52: uint16(38006), + 53: uint16(38005), + 54: uint16(39520), + 55: uint16(40052), + 56: uint16(40051), + 57: uint16(40049), + 58: uint16(40053), + 59: uint16(40468), + 60: uint16(40467), + 61: uint16(40694), + 62: uint16(40714), + 63: uint16(40868), + 64: uint16(28776), + 65: uint16(28773), + 66: uint16(31991), + 67: uint16(34410), + 68: uint16(34878), + 69: uint16(34877), + 70: uint16(34879), + 71: uint16(35742), + 72: uint16(35996), + 73: uint16(36521), + 74: uint16(36553), + 75: uint16(38731), + 76: uint16(39027), + 77: uint16(39028), + 78: uint16(39116), + 79: uint16(39265), + 80: uint16(39339), + 81: uint16(39524), + 82: uint16(39526), + 83: uint16(39527), + 84: uint16(39716), + 85: uint16(40469), + 86: uint16(40471), + 87: uint16(40776), + 88: uint16(25095), + 89: uint16(27422), + 90: uint16(29223), + 91: uint16(34380), + 92: uint16(36520), + 93: uint16(38018), + 94: uint16(38016), + 95: uint16(38017), + 96: uint16(39529), + 97: uint16(39528), + 98: uint16(39726), + 99: uint16(40473), + 100: uint16(29225), + 101: uint16(34379), + 102: uint16(35743), + 103: uint16(38019), + 104: uint16(40057), + 105: uint16(40631), + 106: uint16(30325), + 107: uint16(39531), + 108: uint16(40058), + 109: uint16(40477), + 110: uint16(28777), + 111: uint16(28778), + 112: uint16(40612), + 113: uint16(40830), + 114: uint16(40777), + 115: uint16(40856), + 116: uint16(30849), + 117: uint16(37561), + 118: uint16(35023), + 119: uint16(22715), + 120: uint16(24658), + 121: uint16(31911), + 122: uint16(23290), + 123: uint16(9556), + 124: uint16(9574), + 125: uint16(9559), + 126: uint16(9568), + 127: uint16(9580), + 128: uint16(9571), + 129: uint16(9562), + 130: uint16(9577), + 131: uint16(9565), + 132: uint16(9554), + 133: uint16(9572), + 134: uint16(9557), + 135: uint16(9566), + 136: uint16(9578), + 137: uint16(9569), + 138: uint16(9560), + 139: uint16(9575), + 140: uint16(9563), + 141: uint16(9555), + 142: uint16(9573), + 143: uint16(9558), + 144: uint16(9567), + 145: uint16(9579), + 146: uint16(9570), + 147: uint16(9561), + 148: uint16(9576), + 149: uint16(9564), + 150: uint16(9553), + 151: uint16(9552), + 152: uint16(9581), + 153: uint16(9582), + 154: uint16(9584), + 155: uint16(9583), + 156: uint16(9619), + }, +} + +var _hkscs = [5172]uint16{ + 0: uint16(17392), + 1: uint16(19506), + 2: uint16(17923), + 3: uint16(17830), + 4: uint16(17784), + 5: uint16(29287), + 6: uint16(19831), + 7: uint16(17843), + 8: uint16(31921), + 9: uint16(19682), + 10: uint16(31941), + 11: uint16(15253), + 12: uint16(18230), + 13: uint16(18244), + 14: uint16(19527), + 15: uint16(19520), + 16: uint16(17087), + 17: uint16(13847), + 18: uint16(29522), + 19: uint16(28299), + 20: uint16(28882), + 21: uint16(19543), + 22: uint16(41809), + 23: uint16(18255), + 24: uint16(17882), + 25: uint16(19589), + 26: uint16(31852), + 27: uint16(19719), + 28: uint16(19108), + 29: uint16(18081), + 30: uint16(27427), + 31: uint16(29221), + 32: uint16(23124), + 33: uint16(6755), + 34: uint16(15878), + 35: uint16(16225), + 36: uint16(26189), + 37: uint16(22267), + 39: uint16(32149), + 40: uint16(22813), + 41: uint16(35769), + 42: uint16(15860), + 43: uint16(38708), + 44: uint16(31727), + 45: uint16(23515), + 46: uint16(7518), + 47: uint16(23204), + 48: uint16(13861), + 49: uint16(40624), + 50: uint16(23249), + 51: uint16(23479), + 52: uint16(23804), + 53: uint16(26478), + 54: uint16(34195), + 55: uint16(39237), + 56: uint16(29793), + 57: uint16(29853), + 58: uint16(14453), + 59: uint16(7507), + 60: uint16(13982), + 61: uint16(24609), + 62: uint16(16108), + 63: uint16(22750), + 64: uint16(15093), + 65: uint16(31484), + 66: uint16(40855), + 67: uint16(16737), + 68: uint16(35085), + 69: uint16(12778), + 70: uint16(2698), + 71: uint16(12894), + 72: uint16(17162), + 73: uint16(33924), + 74: uint16(40854), + 75: uint16(37935), + 76: uint16(18736), + 77: uint16(34323), + 78: uint16(22678), + 79: uint16(38730), + 80: uint16(37400), + 81: uint16(31184), + 82: uint16(31282), + 83: uint16(26208), + 84: uint16(27177), + 85: uint16(34973), + 86: uint16(29772), + 87: uint16(31685), + 88: uint16(26498), + 89: uint16(31276), + 90: uint16(21071), + 91: uint16(36934), + 92: uint16(13542), + 93: uint16(29636), + 94: uint16(23993), + 95: uint16(29894), + 96: uint16(40903), + 97: uint16(22451), + 98: uint16(18735), + 99: uint16(21580), + 100: uint16(16689), + 101: uint16(13966), + 102: uint16(22552), + 103: uint16(31346), + 104: uint16(31589), + 105: uint16(35727), + 106: uint16(18094), + 107: uint16(28296), + 108: uint16(16769), + 109: uint16(23961), + 110: uint16(31662), + 111: uint16(9404), + 112: uint16(40904), + 113: uint16(9409), + 114: uint16(9417), + 115: uint16(9420), + 116: uint16(40905), + 117: uint16(34052), + 118: uint16(13755), + 119: uint16(16564), + 120: uint16(40906), + 121: uint16(17633), + 122: uint16(44543), + 123: uint16(25281), + 124: uint16(28782), + 125: uint16(40907), + 157: uint16(12736), + 158: uint16(12737), + 159: uint16(12738), + 160: uint16(12739), + 161: uint16(12740), + 162: uint16(268), + 163: uint16(12741), + 164: uint16(209), + 165: uint16(205), + 166: uint16(12742), + 167: uint16(12743), + 168: uint16(203), + 169: uint16(8168), + 170: uint16(12744), + 171: uint16(202), + 172: uint16(12745), + 173: uint16(12746), + 174: uint16(12747), + 175: uint16(12748), + 176: uint16(270), + 177: uint16(12749), + 178: uint16(12750), + 179: uint16(256), + 180: uint16(193), + 181: uint16(461), + 182: uint16(192), + 183: uint16(274), + 184: uint16(201), + 185: uint16(282), + 186: uint16(200), + 187: uint16(332), + 188: uint16(211), + 189: uint16(465), + 190: uint16(210), + 191: uint16(56320), + 192: uint16(7870), + 193: uint16(56324), + 194: uint16(7872), + 195: uint16(202), + 196: uint16(257), + 197: uint16(225), + 198: uint16(462), + 199: uint16(224), + 200: uint16(593), + 201: uint16(275), + 202: uint16(233), + 203: uint16(283), + 204: uint16(232), + 205: uint16(299), + 206: uint16(237), + 207: uint16(464), + 208: uint16(236), + 209: uint16(333), + 210: uint16(243), + 211: uint16(466), + 212: uint16(242), + 213: uint16(363), + 214: uint16(250), + 215: uint16(468), + 216: uint16(249), + 217: uint16(470), + 218: uint16(472), + 219: uint16(474), + 220: uint16(476), + 221: uint16(252), + 222: uint16(56328), + 223: uint16(7871), + 224: uint16(56332), + 225: uint16(7873), + 226: uint16(234), + 227: uint16(609), + 228: uint16(9178), + 229: uint16(9179), + 314: uint16(41897), + 315: uint16(4421), + 317: uint16(25866), + 320: uint16(20029), + 321: uint16(28381), + 322: uint16(40270), + 323: uint16(37343), + 326: uint16(30517), + 327: uint16(25745), + 328: uint16(20250), + 329: uint16(20264), + 330: uint16(20392), + 331: uint16(20822), + 332: uint16(20852), + 333: uint16(20892), + 334: uint16(20964), + 335: uint16(21153), + 336: uint16(21160), + 337: uint16(21307), + 338: uint16(21326), + 339: uint16(21457), + 340: uint16(21464), + 341: uint16(22242), + 342: uint16(22768), + 343: uint16(22788), + 344: uint16(22791), + 345: uint16(22834), + 346: uint16(22836), + 347: uint16(23398), + 348: uint16(23454), + 349: uint16(23455), + 350: uint16(23706), + 351: uint16(24198), + 352: uint16(24635), + 353: uint16(25993), + 354: uint16(26622), + 355: uint16(26628), + 356: uint16(26725), + 357: uint16(27982), + 358: uint16(28860), + 359: uint16(30005), + 360: uint16(32420), + 361: uint16(32428), + 362: uint16(32442), + 363: uint16(32455), + 364: uint16(32463), + 365: uint16(32479), + 366: uint16(32518), + 367: uint16(32567), + 368: uint16(33402), + 369: uint16(33487), + 370: uint16(33647), + 371: uint16(35270), + 372: uint16(35774), + 373: uint16(35810), + 374: uint16(36710), + 375: uint16(36711), + 376: uint16(36718), + 377: uint16(29713), + 378: uint16(31996), + 379: uint16(32205), + 380: uint16(26950), + 381: uint16(31433), + 382: uint16(21031), + 387: uint16(37260), + 388: uint16(30904), + 389: uint16(37214), + 390: uint16(32956), + 392: uint16(36107), + 393: uint16(33014), + 394: uint16(2535), + 397: uint16(32927), + 398: uint16(40647), + 399: uint16(19661), + 400: uint16(40393), + 401: uint16(40460), + 402: uint16(19518), + 403: uint16(40438), + 404: uint16(28686), + 405: uint16(40458), + 406: uint16(41267), + 407: uint16(13761), + 409: uint16(28314), + 410: uint16(33342), + 411: uint16(29977), + 413: uint16(18705), + 414: uint16(39532), + 415: uint16(39567), + 416: uint16(40857), + 417: uint16(31111), + 418: uint16(33900), + 419: uint16(7626), + 420: uint16(1488), + 421: uint16(10982), + 422: uint16(20004), + 423: uint16(20097), + 424: uint16(20096), + 425: uint16(20103), + 426: uint16(20159), + 427: uint16(20203), + 428: uint16(20279), + 429: uint16(13388), + 430: uint16(20413), + 431: uint16(15944), + 432: uint16(20483), + 433: uint16(20616), + 434: uint16(13437), + 435: uint16(13459), + 436: uint16(13477), + 437: uint16(20870), + 438: uint16(22789), + 439: uint16(20955), + 440: uint16(20988), + 441: uint16(20997), + 442: uint16(20105), + 443: uint16(21113), + 444: uint16(21136), + 445: uint16(21287), + 446: uint16(13767), + 447: uint16(21417), + 448: uint16(13649), + 449: uint16(21424), + 450: uint16(13651), + 451: uint16(21442), + 452: uint16(21539), + 453: uint16(13677), + 454: uint16(13682), + 455: uint16(13953), + 456: uint16(21651), + 457: uint16(21667), + 458: uint16(21684), + 459: uint16(21689), + 460: uint16(21712), + 461: uint16(21743), + 462: uint16(21784), + 463: uint16(21795), + 464: uint16(21800), + 465: uint16(13720), + 466: uint16(21823), + 467: uint16(13733), + 468: uint16(13759), + 469: uint16(21975), + 470: uint16(13765), + 471: uint16(32132), + 472: uint16(21797), + 474: uint16(3138), + 475: uint16(3349), + 476: uint16(20779), + 477: uint16(21904), + 478: uint16(11462), + 479: uint16(14828), + 480: uint16(833), + 481: uint16(36422), + 482: uint16(19896), + 483: uint16(38117), + 484: uint16(16467), + 485: uint16(32958), + 486: uint16(30586), + 487: uint16(11320), + 488: uint16(14900), + 489: uint16(18389), + 490: uint16(33117), + 491: uint16(27122), + 492: uint16(19946), + 493: uint16(25821), + 494: uint16(3452), + 495: uint16(4020), + 496: uint16(3285), + 497: uint16(4340), + 498: uint16(25741), + 499: uint16(36478), + 500: uint16(3734), + 501: uint16(3083), + 502: uint16(3940), + 503: uint16(11433), + 504: uint16(33366), + 505: uint16(17619), + 507: uint16(3398), + 508: uint16(39501), + 509: uint16(33001), + 510: uint16(18420), + 511: uint16(20135), + 512: uint16(11458), + 513: uint16(39602), + 514: uint16(14951), + 515: uint16(38388), + 516: uint16(16365), + 517: uint16(13574), + 518: uint16(21191), + 519: uint16(38868), + 520: uint16(30920), + 521: uint16(11588), + 522: uint16(40302), + 523: uint16(38933), + 525: uint16(17369), + 526: uint16(24741), + 527: uint16(25780), + 528: uint16(21731), + 529: uint16(11596), + 530: uint16(11210), + 531: uint16(4215), + 532: uint16(14843), + 533: uint16(4207), + 534: uint16(26330), + 535: uint16(26390), + 536: uint16(31136), + 537: uint16(25834), + 538: uint16(20562), + 539: uint16(3139), + 540: uint16(36456), + 541: uint16(8609), + 542: uint16(35660), + 543: uint16(1841), + 545: uint16(18443), + 546: uint16(425), + 547: uint16(16378), + 548: uint16(22643), + 549: uint16(11661), + 551: uint16(17864), + 552: uint16(1276), + 553: uint16(24727), + 554: uint16(3916), + 555: uint16(3478), + 556: uint16(21881), + 557: uint16(16571), + 558: uint16(17338), + 560: uint16(19124), + 561: uint16(10854), + 562: uint16(4253), + 563: uint16(33194), + 564: uint16(39157), + 565: uint16(3484), + 566: uint16(25465), + 567: uint16(14846), + 568: uint16(10101), + 569: uint16(36288), + 570: uint16(22177), + 571: uint16(25724), + 572: uint16(15939), + 574: uint16(42497), + 575: uint16(3593), + 576: uint16(10959), + 577: uint16(11465), + 579: uint16(4296), + 580: uint16(14786), + 581: uint16(14738), + 582: uint16(14854), + 583: uint16(33435), + 584: uint16(13688), + 585: uint16(24137), + 586: uint16(8391), + 587: uint16(22098), + 588: uint16(3889), + 589: uint16(11442), + 590: uint16(38688), + 591: uint16(13500), + 592: uint16(27709), + 593: uint16(20027), + 596: uint16(30068), + 597: uint16(11915), + 598: uint16(8712), + 599: uint16(42587), + 600: uint16(36045), + 601: uint16(3706), + 602: uint16(3124), + 603: uint16(26652), + 604: uint16(32659), + 605: uint16(4303), + 606: uint16(10243), + 607: uint16(10553), + 608: uint16(13819), + 609: uint16(20963), + 610: uint16(3724), + 611: uint16(3981), + 612: uint16(3754), + 613: uint16(16275), + 614: uint16(3888), + 615: uint16(3399), + 616: uint16(4431), + 617: uint16(3660), + 619: uint16(3755), + 620: uint16(2985), + 621: uint16(3400), + 622: uint16(4288), + 623: uint16(4413), + 624: uint16(16377), + 625: uint16(9878), + 626: uint16(25650), + 627: uint16(4013), + 628: uint16(13300), + 629: uint16(30265), + 630: uint16(11214), + 631: uint16(3454), + 632: uint16(3455), + 633: uint16(11345), + 634: uint16(11349), + 635: uint16(14872), + 636: uint16(3736), + 637: uint16(4295), + 638: uint16(3886), + 639: uint16(42546), + 640: uint16(27472), + 641: uint16(36050), + 642: uint16(36249), + 643: uint16(36042), + 644: uint16(38314), + 645: uint16(21708), + 646: uint16(33476), + 647: uint16(21945), + 649: uint16(40643), + 650: uint16(39974), + 651: uint16(39606), + 652: uint16(30558), + 653: uint16(11758), + 654: uint16(28992), + 655: uint16(33133), + 656: uint16(33004), + 657: uint16(23580), + 658: uint16(25970), + 659: uint16(33076), + 660: uint16(14231), + 661: uint16(21343), + 662: uint16(32957), + 663: uint16(37302), + 664: uint16(3834), + 665: uint16(3599), + 666: uint16(3703), + 667: uint16(3835), + 668: uint16(13789), + 669: uint16(19947), + 670: uint16(13833), + 671: uint16(3286), + 672: uint16(22191), + 673: uint16(10165), + 674: uint16(4297), + 675: uint16(3600), + 676: uint16(3704), + 677: uint16(4216), + 678: uint16(4424), + 679: uint16(33287), + 680: uint16(5205), + 681: uint16(3705), + 682: uint16(20048), + 683: uint16(11684), + 684: uint16(23124), + 685: uint16(4125), + 686: uint16(4126), + 687: uint16(4341), + 688: uint16(4342), + 689: uint16(22428), + 690: uint16(3601), + 691: uint16(30356), + 692: uint16(33485), + 693: uint16(4021), + 694: uint16(3707), + 695: uint16(20862), + 696: uint16(14083), + 697: uint16(4022), + 698: uint16(4480), + 699: uint16(21208), + 700: uint16(41661), + 701: uint16(18906), + 702: uint16(6202), + 703: uint16(16759), + 704: uint16(33404), + 705: uint16(22681), + 706: uint16(21096), + 707: uint16(13850), + 708: uint16(22333), + 709: uint16(31666), + 710: uint16(23400), + 711: uint16(18432), + 712: uint16(19244), + 713: uint16(40743), + 714: uint16(18919), + 715: uint16(39967), + 716: uint16(39821), + 717: uint16(23412), + 718: uint16(12605), + 719: uint16(22011), + 720: uint16(13810), + 721: uint16(22153), + 722: uint16(20008), + 723: uint16(22786), + 724: uint16(7105), + 725: uint16(63608), + 726: uint16(38737), + 727: uint16(134), + 728: uint16(20059), + 729: uint16(20155), + 730: uint16(13630), + 731: uint16(23587), + 732: uint16(24401), + 733: uint16(24516), + 734: uint16(14586), + 735: uint16(25164), + 736: uint16(25909), + 737: uint16(27514), + 738: uint16(27701), + 739: uint16(27706), + 740: uint16(28780), + 741: uint16(29227), + 742: uint16(20012), + 743: uint16(29357), + 744: uint16(18665), + 745: uint16(32594), + 746: uint16(31035), + 747: uint16(31993), + 748: uint16(32595), + 749: uint16(25194), + 750: uint16(13505), + 752: uint16(25419), + 753: uint16(32770), + 754: uint16(32896), + 755: uint16(26130), + 756: uint16(26961), + 757: uint16(21341), + 758: uint16(34916), + 759: uint16(35265), + 760: uint16(30898), + 761: uint16(35744), + 762: uint16(36125), + 763: uint16(38021), + 764: uint16(38264), + 765: uint16(38271), + 766: uint16(38376), + 767: uint16(36367), + 768: uint16(38886), + 769: uint16(39029), + 770: uint16(39118), + 771: uint16(39134), + 772: uint16(39267), + 773: uint16(38928), + 774: uint16(40060), + 775: uint16(40479), + 776: uint16(40644), + 777: uint16(27503), + 778: uint16(63751), + 779: uint16(20023), + 780: uint16(135), + 781: uint16(38429), + 782: uint16(25143), + 783: uint16(38050), + 785: uint16(20539), + 786: uint16(28158), + 787: uint16(40051), + 788: uint16(40870), + 789: uint16(15817), + 790: uint16(34959), + 791: uint16(16718), + 792: uint16(28791), + 793: uint16(23797), + 794: uint16(19232), + 795: uint16(20941), + 796: uint16(13657), + 797: uint16(23856), + 798: uint16(24866), + 799: uint16(35378), + 800: uint16(36775), + 801: uint16(37366), + 802: uint16(29073), + 803: uint16(26393), + 804: uint16(29626), + 805: uint16(12929), + 806: uint16(41223), + 807: uint16(15499), + 808: uint16(6528), + 809: uint16(19216), + 810: uint16(30948), + 811: uint16(29698), + 812: uint16(20910), + 813: uint16(34575), + 814: uint16(16393), + 815: uint16(27235), + 816: uint16(41658), + 817: uint16(16931), + 818: uint16(34319), + 819: uint16(2671), + 820: uint16(31274), + 821: uint16(39239), + 822: uint16(35562), + 823: uint16(38741), + 824: uint16(28749), + 825: uint16(21284), + 826: uint16(8318), + 827: uint16(37876), + 828: uint16(30425), + 829: uint16(35299), + 830: uint16(40871), + 831: uint16(30685), + 832: uint16(20131), + 833: uint16(20464), + 834: uint16(20668), + 835: uint16(20015), + 836: uint16(20247), + 837: uint16(40872), + 838: uint16(21556), + 839: uint16(32139), + 840: uint16(22674), + 841: uint16(22736), + 842: uint16(7606), + 843: uint16(24210), + 844: uint16(24217), + 845: uint16(24514), + 846: uint16(10002), + 847: uint16(25995), + 848: uint16(13305), + 849: uint16(26905), + 850: uint16(27203), + 851: uint16(15459), + 852: uint16(27903), + 854: uint16(29184), + 855: uint16(17669), + 856: uint16(29580), + 857: uint16(16091), + 858: uint16(18963), + 859: uint16(23317), + 860: uint16(29881), + 861: uint16(35715), + 862: uint16(23716), + 863: uint16(22165), + 864: uint16(31379), + 865: uint16(31724), + 866: uint16(31939), + 867: uint16(32364), + 868: uint16(33528), + 869: uint16(34199), + 870: uint16(40873), + 871: uint16(34960), + 872: uint16(40874), + 873: uint16(36537), + 874: uint16(40875), + 875: uint16(36815), + 876: uint16(34143), + 877: uint16(39392), + 878: uint16(37409), + 879: uint16(40876), + 880: uint16(36281), + 881: uint16(5183), + 882: uint16(16497), + 883: uint16(17058), + 884: uint16(23066), + 888: uint16(39016), + 889: uint16(26475), + 890: uint16(17014), + 891: uint16(22333), + 893: uint16(34262), + 894: uint16(18811), + 895: uint16(33471), + 896: uint16(28941), + 897: uint16(19585), + 898: uint16(28020), + 899: uint16(23931), + 900: uint16(27413), + 901: uint16(28606), + 902: uint16(40877), + 903: uint16(40878), + 904: uint16(23446), + 905: uint16(40879), + 906: uint16(26343), + 907: uint16(32347), + 908: uint16(28247), + 909: uint16(31178), + 910: uint16(15752), + 911: uint16(17603), + 912: uint16(12886), + 913: uint16(10134), + 914: uint16(17306), + 915: uint16(17718), + 917: uint16(23765), + 918: uint16(15130), + 919: uint16(35577), + 920: uint16(23672), + 921: uint16(15634), + 922: uint16(13649), + 923: uint16(23928), + 924: uint16(40882), + 925: uint16(29015), + 926: uint16(17752), + 927: uint16(16620), + 928: uint16(7715), + 929: uint16(19575), + 930: uint16(14712), + 931: uint16(13386), + 932: uint16(420), + 933: uint16(27713), + 934: uint16(35532), + 935: uint16(20404), + 936: uint16(569), + 937: uint16(22975), + 938: uint16(33132), + 939: uint16(38998), + 940: uint16(39162), + 941: uint16(24379), + 942: uint16(2975), + 944: uint16(8641), + 945: uint16(35181), + 946: uint16(16642), + 947: uint16(18107), + 948: uint16(36985), + 949: uint16(16135), + 950: uint16(40883), + 951: uint16(41397), + 952: uint16(16632), + 953: uint16(14294), + 954: uint16(18167), + 955: uint16(27718), + 956: uint16(16764), + 957: uint16(34482), + 958: uint16(29695), + 959: uint16(17773), + 960: uint16(14548), + 961: uint16(21658), + 962: uint16(17761), + 963: uint16(17691), + 964: uint16(19849), + 965: uint16(19579), + 966: uint16(19830), + 967: uint16(17898), + 968: uint16(16328), + 969: uint16(19215), + 970: uint16(13921), + 971: uint16(17630), + 972: uint16(17597), + 973: uint16(16877), + 974: uint16(23870), + 975: uint16(23880), + 976: uint16(23894), + 977: uint16(15868), + 978: uint16(14351), + 979: uint16(23972), + 980: uint16(23993), + 981: uint16(14368), + 982: uint16(14392), + 983: uint16(24130), + 984: uint16(24253), + 985: uint16(24357), + 986: uint16(24451), + 987: uint16(14600), + 988: uint16(14612), + 989: uint16(14655), + 990: uint16(14669), + 991: uint16(24791), + 992: uint16(24893), + 993: uint16(23781), + 994: uint16(14729), + 995: uint16(25015), + 996: uint16(25017), + 997: uint16(25039), + 998: uint16(14776), + 999: uint16(25132), + 1000: uint16(25232), + 1001: uint16(25317), + 1002: uint16(25368), + 1003: uint16(14840), + 1004: uint16(22193), + 1005: uint16(14851), + 1006: uint16(25570), + 1007: uint16(25595), + 1008: uint16(25607), + 1009: uint16(25690), + 1010: uint16(14923), + 1011: uint16(25792), + 1012: uint16(23829), + 1013: uint16(22049), + 1014: uint16(40863), + 1015: uint16(14999), + 1016: uint16(25990), + 1017: uint16(15037), + 1018: uint16(26111), + 1019: uint16(26195), + 1020: uint16(15090), + 1021: uint16(26258), + 1022: uint16(15138), + 1023: uint16(26390), + 1024: uint16(15170), + 1025: uint16(26532), + 1026: uint16(26624), + 1027: uint16(15192), + 1028: uint16(26698), + 1029: uint16(26756), + 1030: uint16(15218), + 1031: uint16(15217), + 1032: uint16(15227), + 1033: uint16(26889), + 1034: uint16(26947), + 1035: uint16(29276), + 1036: uint16(26980), + 1037: uint16(27039), + 1038: uint16(27013), + 1039: uint16(15292), + 1040: uint16(27094), + 1041: uint16(15325), + 1042: uint16(27237), + 1043: uint16(27252), + 1044: uint16(27249), + 1045: uint16(27266), + 1046: uint16(15340), + 1047: uint16(27289), + 1048: uint16(15346), + 1049: uint16(27307), + 1050: uint16(27317), + 1051: uint16(27348), + 1052: uint16(27382), + 1053: uint16(27521), + 1054: uint16(27585), + 1055: uint16(27626), + 1056: uint16(27765), + 1057: uint16(27818), + 1058: uint16(15563), + 1059: uint16(27906), + 1060: uint16(27910), + 1061: uint16(27942), + 1062: uint16(28033), + 1063: uint16(15599), + 1064: uint16(28068), + 1065: uint16(28081), + 1066: uint16(28181), + 1067: uint16(28184), + 1068: uint16(28201), + 1069: uint16(28294), + 1070: uint16(35264), + 1071: uint16(28347), + 1072: uint16(28386), + 1073: uint16(28378), + 1074: uint16(40831), + 1075: uint16(28392), + 1076: uint16(28393), + 1077: uint16(28452), + 1078: uint16(28468), + 1079: uint16(15686), + 1080: uint16(16193), + 1081: uint16(28545), + 1082: uint16(28606), + 1083: uint16(15722), + 1084: uint16(15733), + 1085: uint16(29111), + 1086: uint16(23705), + 1087: uint16(15754), + 1088: uint16(28716), + 1089: uint16(15761), + 1090: uint16(28752), + 1091: uint16(28756), + 1092: uint16(28783), + 1093: uint16(28799), + 1094: uint16(28809), + 1095: uint16(805), + 1096: uint16(17345), + 1097: uint16(13809), + 1098: uint16(3800), + 1099: uint16(16087), + 1100: uint16(22462), + 1101: uint16(28371), + 1102: uint16(28990), + 1103: uint16(22496), + 1104: uint16(13902), + 1105: uint16(27042), + 1106: uint16(35817), + 1107: uint16(23412), + 1108: uint16(31305), + 1109: uint16(22753), + 1110: uint16(38105), + 1111: uint16(31333), + 1112: uint16(31357), + 1113: uint16(22956), + 1114: uint16(31419), + 1115: uint16(31408), + 1116: uint16(31426), + 1117: uint16(31427), + 1118: uint16(29137), + 1119: uint16(25741), + 1120: uint16(16842), + 1121: uint16(31450), + 1122: uint16(31453), + 1123: uint16(31466), + 1124: uint16(16879), + 1125: uint16(21682), + 1126: uint16(23553), + 1127: uint16(31499), + 1128: uint16(31573), + 1129: uint16(31529), + 1130: uint16(21262), + 1131: uint16(23806), + 1132: uint16(31650), + 1133: uint16(31599), + 1134: uint16(33692), + 1135: uint16(23476), + 1136: uint16(27775), + 1137: uint16(31696), + 1138: uint16(33825), + 1139: uint16(31634), + 1141: uint16(23840), + 1142: uint16(15789), + 1143: uint16(23653), + 1144: uint16(33938), + 1145: uint16(31738), + 1147: uint16(31797), + 1148: uint16(23745), + 1149: uint16(31812), + 1150: uint16(31875), + 1151: uint16(18562), + 1152: uint16(31910), + 1153: uint16(26237), + 1154: uint16(17784), + 1155: uint16(31945), + 1156: uint16(31943), + 1157: uint16(31974), + 1158: uint16(31860), + 1159: uint16(31987), + 1160: uint16(31989), + 1162: uint16(32359), + 1163: uint16(17693), + 1164: uint16(28228), + 1165: uint16(32093), + 1166: uint16(28374), + 1167: uint16(29837), + 1168: uint16(32137), + 1169: uint16(32171), + 1170: uint16(28981), + 1171: uint16(32179), + 1173: uint16(16471), + 1174: uint16(24617), + 1175: uint16(32228), + 1176: uint16(15635), + 1177: uint16(32245), + 1178: uint16(6137), + 1179: uint16(32229), + 1180: uint16(33645), + 1182: uint16(24865), + 1183: uint16(24922), + 1184: uint16(32366), + 1185: uint16(32402), + 1186: uint16(17195), + 1187: uint16(37996), + 1188: uint16(32295), + 1189: uint16(32576), + 1190: uint16(32577), + 1191: uint16(32583), + 1192: uint16(31030), + 1193: uint16(25296), + 1194: uint16(39393), + 1195: uint16(32663), + 1196: uint16(25425), + 1197: uint16(32675), + 1198: uint16(5729), + 1199: uint16(104), + 1200: uint16(17756), + 1201: uint16(14182), + 1202: uint16(17667), + 1203: uint16(33594), + 1204: uint16(32762), + 1205: uint16(25737), + 1207: uint16(32776), + 1208: uint16(32797), + 1210: uint16(32815), + 1211: uint16(41095), + 1212: uint16(27843), + 1213: uint16(32827), + 1214: uint16(32828), + 1215: uint16(32865), + 1216: uint16(10004), + 1217: uint16(18825), + 1218: uint16(26150), + 1219: uint16(15843), + 1220: uint16(26344), + 1221: uint16(26405), + 1222: uint16(32935), + 1223: uint16(35400), + 1224: uint16(33031), + 1225: uint16(33050), + 1226: uint16(22704), + 1227: uint16(9974), + 1228: uint16(27775), + 1229: uint16(25752), + 1230: uint16(20408), + 1231: uint16(25831), + 1232: uint16(5258), + 1233: uint16(33304), + 1234: uint16(6238), + 1235: uint16(27219), + 1236: uint16(19045), + 1237: uint16(19093), + 1238: uint16(17530), + 1239: uint16(33321), + 1240: uint16(2829), + 1241: uint16(27218), + 1242: uint16(15742), + 1243: uint16(20473), + 1244: uint16(5373), + 1245: uint16(34018), + 1246: uint16(33634), + 1247: uint16(27402), + 1248: uint16(18855), + 1249: uint16(13616), + 1250: uint16(6003), + 1251: uint16(15864), + 1252: uint16(33450), + 1253: uint16(26907), + 1254: uint16(63892), + 1255: uint16(16859), + 1256: uint16(34123), + 1257: uint16(33488), + 1258: uint16(33562), + 1259: uint16(3606), + 1260: uint16(6068), + 1261: uint16(14017), + 1262: uint16(12669), + 1263: uint16(13658), + 1264: uint16(33403), + 1265: uint16(33506), + 1266: uint16(33560), + 1267: uint16(16011), + 1268: uint16(28067), + 1269: uint16(27397), + 1270: uint16(27543), + 1271: uint16(13774), + 1272: uint16(15807), + 1273: uint16(33565), + 1274: uint16(21996), + 1275: uint16(33669), + 1276: uint16(17675), + 1277: uint16(28069), + 1278: uint16(33708), + 1280: uint16(33747), + 1281: uint16(13438), + 1282: uint16(28372), + 1283: uint16(27223), + 1284: uint16(34138), + 1285: uint16(13462), + 1286: uint16(28226), + 1287: uint16(12015), + 1288: uint16(33880), + 1289: uint16(23524), + 1290: uint16(33905), + 1291: uint16(15827), + 1292: uint16(17636), + 1293: uint16(27303), + 1294: uint16(33866), + 1295: uint16(15541), + 1296: uint16(31064), + 1298: uint16(27542), + 1299: uint16(28279), + 1300: uint16(28227), + 1301: uint16(34014), + 1303: uint16(33681), + 1304: uint16(17568), + 1305: uint16(33939), + 1306: uint16(34020), + 1307: uint16(23697), + 1308: uint16(16960), + 1309: uint16(23744), + 1310: uint16(17731), + 1311: uint16(34100), + 1312: uint16(23282), + 1313: uint16(28313), + 1314: uint16(17703), + 1315: uint16(34163), + 1316: uint16(17686), + 1317: uint16(26559), + 1318: uint16(34326), + 1319: uint16(34341), + 1320: uint16(34363), + 1321: uint16(34241), + 1322: uint16(28808), + 1323: uint16(34306), + 1324: uint16(5506), + 1325: uint16(28877), + 1326: uint16(63922), + 1327: uint16(17770), + 1328: uint16(34344), + 1329: uint16(13896), + 1330: uint16(6306), + 1331: uint16(21495), + 1332: uint16(29594), + 1333: uint16(34430), + 1334: uint16(34673), + 1335: uint16(41208), + 1336: uint16(34798), + 1337: uint16(11303), + 1338: uint16(34737), + 1339: uint16(34778), + 1340: uint16(34831), + 1341: uint16(22113), + 1342: uint16(34412), + 1343: uint16(26710), + 1344: uint16(17935), + 1345: uint16(34885), + 1346: uint16(34886), + 1347: uint16(30176), + 1348: uint16(15801), + 1349: uint16(30180), + 1350: uint16(34910), + 1351: uint16(34972), + 1352: uint16(18011), + 1353: uint16(34996), + 1354: uint16(34997), + 1355: uint16(25537), + 1356: uint16(35013), + 1357: uint16(30583), + 1358: uint16(30479), + 1359: uint16(35207), + 1360: uint16(35210), + 1363: uint16(35239), + 1364: uint16(35260), + 1365: uint16(35365), + 1366: uint16(35303), + 1367: uint16(31012), + 1368: uint16(31421), + 1369: uint16(35484), + 1370: uint16(30611), + 1371: uint16(37374), + 1372: uint16(35472), + 1373: uint16(31321), + 1374: uint16(31465), + 1375: uint16(31546), + 1376: uint16(16271), + 1377: uint16(18195), + 1378: uint16(31544), + 1379: uint16(29052), + 1380: uint16(35596), + 1381: uint16(35615), + 1382: uint16(21552), + 1383: uint16(21861), + 1384: uint16(35647), + 1385: uint16(35660), + 1386: uint16(35661), + 1387: uint16(35497), + 1388: uint16(19066), + 1389: uint16(35728), + 1390: uint16(35739), + 1391: uint16(35503), + 1392: uint16(5855), + 1393: uint16(17941), + 1394: uint16(34895), + 1395: uint16(35995), + 1396: uint16(32084), + 1397: uint16(32143), + 1398: uint16(63956), + 1399: uint16(14117), + 1400: uint16(32083), + 1401: uint16(36054), + 1402: uint16(32152), + 1403: uint16(32189), + 1404: uint16(36114), + 1405: uint16(36099), + 1406: uint16(6416), + 1407: uint16(36059), + 1408: uint16(28764), + 1409: uint16(36113), + 1410: uint16(19657), + 1411: uint16(16080), + 1413: uint16(36265), + 1414: uint16(32770), + 1415: uint16(4116), + 1416: uint16(18826), + 1417: uint16(15228), + 1418: uint16(33212), + 1419: uint16(28940), + 1420: uint16(31463), + 1421: uint16(36525), + 1422: uint16(36534), + 1423: uint16(36547), + 1424: uint16(37588), + 1425: uint16(36633), + 1426: uint16(36653), + 1427: uint16(33637), + 1428: uint16(33810), + 1429: uint16(36773), + 1430: uint16(37635), + 1431: uint16(41631), + 1432: uint16(2640), + 1433: uint16(36787), + 1434: uint16(18730), + 1435: uint16(35294), + 1436: uint16(34109), + 1437: uint16(15803), + 1438: uint16(24312), + 1439: uint16(12898), + 1440: uint16(36857), + 1441: uint16(40980), + 1442: uint16(34492), + 1443: uint16(34049), + 1444: uint16(8997), + 1445: uint16(14720), + 1446: uint16(28375), + 1447: uint16(36919), + 1448: uint16(34108), + 1449: uint16(31422), + 1450: uint16(36961), + 1451: uint16(34156), + 1452: uint16(34315), + 1453: uint16(37032), + 1454: uint16(34579), + 1455: uint16(37060), + 1456: uint16(34534), + 1457: uint16(37038), + 1459: uint16(37223), + 1460: uint16(15088), + 1461: uint16(37289), + 1462: uint16(37316), + 1463: uint16(31916), + 1464: uint16(35123), + 1465: uint16(7817), + 1466: uint16(37390), + 1467: uint16(27807), + 1468: uint16(37441), + 1469: uint16(37474), + 1470: uint16(21945), + 1472: uint16(35526), + 1473: uint16(15515), + 1474: uint16(35596), + 1475: uint16(21979), + 1476: uint16(3377), + 1477: uint16(37676), + 1478: uint16(37739), + 1479: uint16(35553), + 1480: uint16(35819), + 1481: uint16(28815), + 1482: uint16(23235), + 1483: uint16(35554), + 1484: uint16(35557), + 1485: uint16(18789), + 1486: uint16(37444), + 1487: uint16(35820), + 1488: uint16(35897), + 1489: uint16(35839), + 1490: uint16(37747), + 1491: uint16(37979), + 1492: uint16(36540), + 1493: uint16(38277), + 1494: uint16(38310), + 1495: uint16(37926), + 1496: uint16(38304), + 1497: uint16(28662), + 1498: uint16(17081), + 1499: uint16(9850), + 1500: uint16(34520), + 1501: uint16(4732), + 1502: uint16(15918), + 1503: uint16(18911), + 1504: uint16(27676), + 1505: uint16(38523), + 1506: uint16(38550), + 1507: uint16(16748), + 1508: uint16(38563), + 1509: uint16(28373), + 1510: uint16(25050), + 1511: uint16(38582), + 1512: uint16(30965), + 1513: uint16(35552), + 1514: uint16(38589), + 1515: uint16(21452), + 1516: uint16(18849), + 1517: uint16(27832), + 1518: uint16(628), + 1519: uint16(25616), + 1520: uint16(37039), + 1521: uint16(37093), + 1522: uint16(19153), + 1523: uint16(6421), + 1524: uint16(13066), + 1525: uint16(38705), + 1526: uint16(34370), + 1527: uint16(38710), + 1528: uint16(18959), + 1529: uint16(17725), + 1530: uint16(17797), + 1531: uint16(19177), + 1532: uint16(28789), + 1533: uint16(23361), + 1534: uint16(38683), + 1536: uint16(37333), + 1537: uint16(38743), + 1538: uint16(23370), + 1539: uint16(37355), + 1540: uint16(38751), + 1541: uint16(37925), + 1542: uint16(20688), + 1543: uint16(12471), + 1544: uint16(12476), + 1545: uint16(38793), + 1546: uint16(38815), + 1547: uint16(38833), + 1548: uint16(38846), + 1549: uint16(38848), + 1550: uint16(38866), + 1551: uint16(38880), + 1552: uint16(21612), + 1553: uint16(38894), + 1554: uint16(29724), + 1555: uint16(37939), + 1557: uint16(38901), + 1558: uint16(37917), + 1559: uint16(31098), + 1560: uint16(19153), + 1561: uint16(38964), + 1562: uint16(38963), + 1563: uint16(38987), + 1564: uint16(39014), + 1565: uint16(15118), + 1566: uint16(29045), + 1567: uint16(15697), + 1568: uint16(1584), + 1569: uint16(16732), + 1570: uint16(22278), + 1571: uint16(39114), + 1572: uint16(39095), + 1573: uint16(39112), + 1574: uint16(39111), + 1575: uint16(19199), + 1576: uint16(27943), + 1577: uint16(5843), + 1578: uint16(21936), + 1579: uint16(39137), + 1580: uint16(39142), + 1581: uint16(39148), + 1582: uint16(37752), + 1583: uint16(39225), + 1584: uint16(18985), + 1585: uint16(19314), + 1586: uint16(38999), + 1587: uint16(39173), + 1588: uint16(39413), + 1589: uint16(39436), + 1590: uint16(39483), + 1591: uint16(39440), + 1592: uint16(39512), + 1593: uint16(22309), + 1594: uint16(14020), + 1595: uint16(37041), + 1596: uint16(39893), + 1597: uint16(39648), + 1598: uint16(39650), + 1599: uint16(39685), + 1600: uint16(39668), + 1601: uint16(19470), + 1602: uint16(39700), + 1603: uint16(39725), + 1604: uint16(34304), + 1605: uint16(20532), + 1606: uint16(39732), + 1607: uint16(27048), + 1608: uint16(14531), + 1609: uint16(12413), + 1610: uint16(39760), + 1611: uint16(39744), + 1612: uint16(40254), + 1613: uint16(23109), + 1614: uint16(6243), + 1615: uint16(39822), + 1616: uint16(16971), + 1617: uint16(39938), + 1618: uint16(39935), + 1619: uint16(39948), + 1620: uint16(40552), + 1621: uint16(40404), + 1622: uint16(40887), + 1623: uint16(41362), + 1624: uint16(41387), + 1625: uint16(41185), + 1626: uint16(41251), + 1627: uint16(41439), + 1628: uint16(40318), + 1629: uint16(40323), + 1630: uint16(41268), + 1631: uint16(40462), + 1632: uint16(26760), + 1633: uint16(40388), + 1634: uint16(8539), + 1635: uint16(41363), + 1636: uint16(41504), + 1637: uint16(6459), + 1638: uint16(41523), + 1639: uint16(40249), + 1640: uint16(41145), + 1641: uint16(41652), + 1642: uint16(40592), + 1643: uint16(40597), + 1644: uint16(40606), + 1645: uint16(40610), + 1646: uint16(19764), + 1647: uint16(40618), + 1648: uint16(40623), + 1649: uint16(17252), + 1650: uint16(40641), + 1651: uint16(15200), + 1652: uint16(14821), + 1653: uint16(15645), + 1654: uint16(20274), + 1655: uint16(14270), + 1656: uint16(35883), + 1657: uint16(40706), + 1658: uint16(40712), + 1659: uint16(19350), + 1660: uint16(37924), + 1661: uint16(28066), + 1662: uint16(40727), + 1664: uint16(40761), + 1665: uint16(22175), + 1666: uint16(22154), + 1667: uint16(40773), + 1668: uint16(39352), + 1669: uint16(37003), + 1670: uint16(38898), + 1671: uint16(33919), + 1672: uint16(40802), + 1673: uint16(40809), + 1674: uint16(31452), + 1675: uint16(40846), + 1676: uint16(29206), + 1677: uint16(19390), + 1678: uint16(18805), + 1679: uint16(18875), + 1680: uint16(29047), + 1681: uint16(18936), + 1682: uint16(17224), + 1683: uint16(19025), + 1684: uint16(29598), + 1685: uint16(35802), + 1686: uint16(6394), + 1687: uint16(31135), + 1688: uint16(35198), + 1689: uint16(36406), + 1690: uint16(37737), + 1691: uint16(37875), + 1692: uint16(35396), + 1693: uint16(37612), + 1694: uint16(37761), + 1695: uint16(37835), + 1696: uint16(35180), + 1697: uint16(17593), + 1698: uint16(29207), + 1699: uint16(16107), + 1700: uint16(30578), + 1701: uint16(31299), + 1702: uint16(28880), + 1703: uint16(17523), + 1704: uint16(17400), + 1705: uint16(29054), + 1706: uint16(6127), + 1707: uint16(28835), + 1708: uint16(6334), + 1709: uint16(13721), + 1710: uint16(16071), + 1711: uint16(6277), + 1712: uint16(21551), + 1713: uint16(6136), + 1714: uint16(14114), + 1715: uint16(5883), + 1716: uint16(6201), + 1717: uint16(14049), + 1718: uint16(6004), + 1719: uint16(6353), + 1720: uint16(24395), + 1721: uint16(14115), + 1722: uint16(5824), + 1723: uint16(22363), + 1724: uint16(18981), + 1725: uint16(5118), + 1726: uint16(4776), + 1727: uint16(5062), + 1728: uint16(5302), + 1729: uint16(34051), + 1730: uint16(13990), + 1732: uint16(33877), + 1733: uint16(18836), + 1734: uint16(29029), + 1735: uint16(15921), + 1736: uint16(21852), + 1737: uint16(16123), + 1738: uint16(28754), + 1739: uint16(17652), + 1740: uint16(14062), + 1741: uint16(39325), + 1742: uint16(28454), + 1743: uint16(26617), + 1744: uint16(14131), + 1745: uint16(15381), + 1746: uint16(15847), + 1747: uint16(22636), + 1748: uint16(6434), + 1749: uint16(26640), + 1750: uint16(16471), + 1751: uint16(14143), + 1752: uint16(16609), + 1753: uint16(16523), + 1754: uint16(16655), + 1755: uint16(27681), + 1756: uint16(21707), + 1757: uint16(22174), + 1758: uint16(26289), + 1759: uint16(22162), + 1760: uint16(4063), + 1761: uint16(2984), + 1762: uint16(3597), + 1763: uint16(37830), + 1764: uint16(35603), + 1765: uint16(37788), + 1766: uint16(20216), + 1767: uint16(20779), + 1768: uint16(14361), + 1769: uint16(17462), + 1770: uint16(20156), + 1771: uint16(1125), + 1772: uint16(895), + 1773: uint16(20299), + 1774: uint16(20362), + 1775: uint16(22097), + 1776: uint16(23144), + 1777: uint16(427), + 1778: uint16(971), + 1779: uint16(14745), + 1780: uint16(778), + 1781: uint16(1044), + 1782: uint16(13365), + 1783: uint16(20265), + 1784: uint16(704), + 1785: uint16(36531), + 1786: uint16(629), + 1787: uint16(35546), + 1788: uint16(524), + 1789: uint16(20120), + 1790: uint16(20685), + 1791: uint16(20749), + 1792: uint16(20386), + 1793: uint16(20227), + 1794: uint16(18958), + 1795: uint16(16010), + 1796: uint16(20290), + 1797: uint16(20526), + 1798: uint16(20588), + 1799: uint16(20609), + 1800: uint16(20428), + 1801: uint16(20453), + 1802: uint16(20568), + 1803: uint16(20732), + 1808: uint16(28278), + 1809: uint16(13717), + 1810: uint16(15929), + 1811: uint16(16063), + 1812: uint16(28018), + 1813: uint16(6276), + 1814: uint16(16009), + 1815: uint16(20904), + 1816: uint16(20931), + 1817: uint16(1504), + 1818: uint16(17629), + 1819: uint16(1187), + 1820: uint16(1170), + 1821: uint16(1169), + 1822: uint16(36218), + 1823: uint16(35484), + 1824: uint16(1806), + 1825: uint16(21081), + 1826: uint16(21156), + 1827: uint16(2163), + 1828: uint16(21217), + 1830: uint16(18042), + 1831: uint16(29068), + 1832: uint16(17292), + 1833: uint16(3104), + 1834: uint16(18860), + 1835: uint16(4324), + 1836: uint16(27089), + 1837: uint16(3613), + 1839: uint16(16094), + 1840: uint16(29849), + 1841: uint16(29716), + 1842: uint16(29782), + 1843: uint16(29592), + 1844: uint16(19342), + 1845: uint16(19132), + 1846: uint16(16525), + 1847: uint16(21456), + 1848: uint16(13700), + 1849: uint16(29199), + 1850: uint16(16585), + 1851: uint16(21940), + 1852: uint16(837), + 1853: uint16(21709), + 1854: uint16(3014), + 1855: uint16(22301), + 1856: uint16(37469), + 1857: uint16(38644), + 1858: uint16(37734), + 1859: uint16(22493), + 1860: uint16(22413), + 1861: uint16(22399), + 1862: uint16(13886), + 1863: uint16(22731), + 1864: uint16(23193), + 1865: uint16(35398), + 1866: uint16(5882), + 1867: uint16(5999), + 1868: uint16(5904), + 1869: uint16(23084), + 1870: uint16(22968), + 1871: uint16(37519), + 1872: uint16(23166), + 1873: uint16(23247), + 1874: uint16(23058), + 1875: uint16(22854), + 1876: uint16(6643), + 1877: uint16(6241), + 1878: uint16(17045), + 1879: uint16(14069), + 1880: uint16(27909), + 1881: uint16(29763), + 1882: uint16(23073), + 1883: uint16(24195), + 1884: uint16(23169), + 1885: uint16(35799), + 1886: uint16(1043), + 1887: uint16(37856), + 1888: uint16(29836), + 1889: uint16(4867), + 1890: uint16(28933), + 1891: uint16(18802), + 1892: uint16(37896), + 1893: uint16(35323), + 1894: uint16(37821), + 1895: uint16(14240), + 1896: uint16(23582), + 1897: uint16(23710), + 1898: uint16(24158), + 1899: uint16(24136), + 1900: uint16(6550), + 1901: uint16(6524), + 1902: uint16(15086), + 1903: uint16(24269), + 1904: uint16(23375), + 1905: uint16(6403), + 1906: uint16(6404), + 1907: uint16(14081), + 1908: uint16(6304), + 1909: uint16(14045), + 1910: uint16(5886), + 1911: uint16(14035), + 1912: uint16(33066), + 1913: uint16(35399), + 1914: uint16(7610), + 1915: uint16(13426), + 1916: uint16(35240), + 1917: uint16(24332), + 1918: uint16(24334), + 1919: uint16(6439), + 1920: uint16(6059), + 1921: uint16(23147), + 1922: uint16(5947), + 1923: uint16(23364), + 1924: uint16(34324), + 1925: uint16(30205), + 1926: uint16(34912), + 1927: uint16(24702), + 1928: uint16(10336), + 1929: uint16(9771), + 1930: uint16(24539), + 1931: uint16(16056), + 1932: uint16(9647), + 1933: uint16(9662), + 1934: uint16(37000), + 1935: uint16(28531), + 1936: uint16(25024), + 1937: uint16(62), + 1938: uint16(70), + 1939: uint16(9755), + 1940: uint16(24985), + 1941: uint16(24984), + 1942: uint16(24693), + 1943: uint16(11419), + 1944: uint16(11527), + 1945: uint16(18132), + 1946: uint16(37197), + 1947: uint16(25713), + 1948: uint16(18021), + 1949: uint16(11114), + 1950: uint16(14889), + 1951: uint16(11042), + 1952: uint16(13392), + 1953: uint16(39146), + 1954: uint16(11896), + 1955: uint16(25399), + 1956: uint16(42075), + 1957: uint16(25782), + 1958: uint16(25393), + 1959: uint16(25553), + 1960: uint16(18915), + 1961: uint16(11623), + 1962: uint16(25252), + 1963: uint16(11425), + 1964: uint16(25659), + 1965: uint16(25963), + 1966: uint16(26994), + 1967: uint16(15348), + 1968: uint16(12430), + 1969: uint16(12973), + 1970: uint16(18825), + 1971: uint16(12971), + 1972: uint16(21773), + 1973: uint16(13024), + 1974: uint16(6361), + 1975: uint16(37951), + 1976: uint16(26318), + 1977: uint16(12937), + 1978: uint16(12723), + 1979: uint16(15072), + 1980: uint16(16784), + 1981: uint16(21892), + 1982: uint16(35618), + 1983: uint16(21903), + 1984: uint16(5884), + 1985: uint16(21851), + 1986: uint16(21541), + 1987: uint16(30958), + 1988: uint16(12547), + 1989: uint16(6186), + 1990: uint16(12852), + 1991: uint16(13412), + 1992: uint16(12815), + 1993: uint16(12674), + 1994: uint16(17097), + 1995: uint16(26254), + 1996: uint16(27940), + 1997: uint16(26219), + 1998: uint16(19347), + 1999: uint16(26160), + 2000: uint16(30832), + 2001: uint16(7659), + 2002: uint16(26211), + 2003: uint16(13010), + 2004: uint16(13025), + 2005: uint16(26142), + 2006: uint16(22642), + 2007: uint16(14545), + 2008: uint16(14394), + 2009: uint16(14268), + 2010: uint16(15257), + 2011: uint16(14242), + 2012: uint16(13310), + 2013: uint16(29904), + 2014: uint16(15254), + 2015: uint16(26511), + 2016: uint16(17962), + 2017: uint16(26806), + 2018: uint16(26654), + 2019: uint16(15300), + 2020: uint16(27326), + 2021: uint16(14435), + 2022: uint16(14293), + 2023: uint16(17543), + 2024: uint16(27187), + 2025: uint16(27218), + 2026: uint16(27337), + 2027: uint16(27397), + 2028: uint16(6418), + 2029: uint16(25873), + 2030: uint16(26776), + 2031: uint16(27212), + 2032: uint16(15319), + 2033: uint16(27258), + 2034: uint16(27479), + 2035: uint16(16320), + 2036: uint16(15514), + 2037: uint16(37792), + 2038: uint16(37618), + 2039: uint16(35818), + 2040: uint16(35531), + 2041: uint16(37513), + 2042: uint16(32798), + 2043: uint16(35292), + 2044: uint16(37991), + 2045: uint16(28069), + 2046: uint16(28427), + 2047: uint16(18924), + 2049: uint16(16255), + 2050: uint16(15759), + 2051: uint16(28164), + 2052: uint16(16444), + 2053: uint16(23101), + 2054: uint16(28170), + 2055: uint16(22599), + 2056: uint16(27940), + 2057: uint16(30786), + 2058: uint16(28987), + 2059: uint16(17178), + 2060: uint16(17014), + 2061: uint16(28913), + 2062: uint16(29264), + 2063: uint16(29319), + 2064: uint16(29332), + 2065: uint16(18319), + 2066: uint16(18213), + 2067: uint16(20857), + 2068: uint16(19108), + 2069: uint16(1515), + 2070: uint16(29818), + 2071: uint16(16120), + 2072: uint16(13919), + 2073: uint16(19018), + 2074: uint16(18711), + 2075: uint16(24545), + 2076: uint16(16134), + 2077: uint16(16049), + 2078: uint16(19167), + 2079: uint16(35875), + 2080: uint16(16181), + 2081: uint16(24743), + 2082: uint16(16115), + 2083: uint16(29900), + 2084: uint16(29756), + 2085: uint16(37767), + 2086: uint16(29751), + 2087: uint16(17567), + 2088: uint16(28138), + 2089: uint16(17745), + 2090: uint16(30083), + 2091: uint16(16227), + 2092: uint16(19673), + 2093: uint16(19718), + 2094: uint16(16216), + 2095: uint16(30037), + 2096: uint16(30323), + 2097: uint16(42438), + 2098: uint16(15129), + 2099: uint16(29800), + 2100: uint16(35532), + 2101: uint16(18859), + 2102: uint16(18830), + 2103: uint16(15099), + 2104: uint16(15821), + 2105: uint16(19022), + 2106: uint16(16127), + 2107: uint16(18885), + 2108: uint16(18675), + 2109: uint16(37370), + 2110: uint16(22322), + 2111: uint16(37698), + 2112: uint16(35555), + 2113: uint16(6244), + 2114: uint16(20703), + 2115: uint16(21025), + 2116: uint16(20967), + 2117: uint16(30584), + 2118: uint16(12850), + 2119: uint16(30478), + 2120: uint16(30479), + 2121: uint16(30587), + 2122: uint16(18071), + 2123: uint16(14209), + 2124: uint16(14942), + 2125: uint16(18672), + 2126: uint16(29752), + 2127: uint16(29851), + 2128: uint16(16063), + 2129: uint16(19130), + 2130: uint16(19143), + 2131: uint16(16584), + 2132: uint16(19094), + 2133: uint16(25006), + 2134: uint16(37639), + 2135: uint16(21889), + 2136: uint16(30750), + 2137: uint16(30861), + 2138: uint16(30856), + 2139: uint16(30930), + 2140: uint16(29648), + 2141: uint16(31065), + 2142: uint16(30529), + 2143: uint16(22243), + 2144: uint16(16654), + 2146: uint16(33942), + 2147: uint16(31141), + 2148: uint16(27181), + 2149: uint16(16122), + 2150: uint16(31290), + 2151: uint16(31220), + 2152: uint16(16750), + 2153: uint16(5862), + 2154: uint16(16690), + 2155: uint16(37429), + 2156: uint16(31217), + 2157: uint16(3404), + 2158: uint16(18828), + 2159: uint16(665), + 2160: uint16(15802), + 2161: uint16(5998), + 2162: uint16(13719), + 2163: uint16(21867), + 2164: uint16(13680), + 2165: uint16(13994), + 2166: uint16(468), + 2167: uint16(3085), + 2168: uint16(31458), + 2169: uint16(23129), + 2170: uint16(9973), + 2171: uint16(23215), + 2172: uint16(23196), + 2173: uint16(23053), + 2174: uint16(603), + 2175: uint16(30960), + 2176: uint16(23082), + 2177: uint16(23494), + 2178: uint16(31486), + 2179: uint16(16889), + 2180: uint16(31837), + 2181: uint16(31853), + 2182: uint16(16913), + 2183: uint16(23475), + 2184: uint16(24252), + 2185: uint16(24230), + 2186: uint16(31949), + 2187: uint16(18937), + 2188: uint16(6064), + 2189: uint16(31886), + 2190: uint16(31868), + 2191: uint16(31918), + 2192: uint16(27314), + 2193: uint16(32220), + 2194: uint16(32263), + 2195: uint16(32211), + 2196: uint16(32590), + 2197: uint16(25185), + 2198: uint16(24924), + 2199: uint16(31560), + 2200: uint16(32151), + 2201: uint16(24194), + 2202: uint16(17002), + 2203: uint16(27509), + 2204: uint16(2326), + 2205: uint16(26582), + 2206: uint16(78), + 2207: uint16(13775), + 2208: uint16(22468), + 2209: uint16(25618), + 2210: uint16(25592), + 2211: uint16(18786), + 2212: uint16(32733), + 2213: uint16(31527), + 2214: uint16(2092), + 2215: uint16(23273), + 2216: uint16(23875), + 2217: uint16(31500), + 2218: uint16(24078), + 2219: uint16(39398), + 2220: uint16(34373), + 2221: uint16(39523), + 2222: uint16(27164), + 2223: uint16(13375), + 2224: uint16(14818), + 2225: uint16(18935), + 2226: uint16(26029), + 2227: uint16(39455), + 2228: uint16(26016), + 2229: uint16(33920), + 2230: uint16(28967), + 2231: uint16(27857), + 2232: uint16(17642), + 2233: uint16(33079), + 2234: uint16(17410), + 2235: uint16(32966), + 2236: uint16(33033), + 2237: uint16(33090), + 2238: uint16(26548), + 2239: uint16(39107), + 2240: uint16(27202), + 2241: uint16(33378), + 2242: uint16(33381), + 2243: uint16(27217), + 2244: uint16(33875), + 2245: uint16(28071), + 2246: uint16(34320), + 2247: uint16(29211), + 2248: uint16(23174), + 2249: uint16(16767), + 2250: uint16(6208), + 2251: uint16(23339), + 2252: uint16(6305), + 2253: uint16(23268), + 2254: uint16(6360), + 2255: uint16(34464), + 2256: uint16(63932), + 2257: uint16(15759), + 2258: uint16(34861), + 2259: uint16(29730), + 2260: uint16(23042), + 2261: uint16(34926), + 2262: uint16(20293), + 2263: uint16(34951), + 2264: uint16(35007), + 2265: uint16(35046), + 2266: uint16(35173), + 2267: uint16(35149), + 2268: uint16(22147), + 2269: uint16(35156), + 2270: uint16(30597), + 2271: uint16(30596), + 2272: uint16(35829), + 2273: uint16(35801), + 2274: uint16(35740), + 2275: uint16(35321), + 2276: uint16(16045), + 2277: uint16(33955), + 2278: uint16(18165), + 2279: uint16(18127), + 2280: uint16(14322), + 2281: uint16(35389), + 2282: uint16(35356), + 2283: uint16(37960), + 2284: uint16(24397), + 2285: uint16(37419), + 2286: uint16(17028), + 2287: uint16(26068), + 2288: uint16(28969), + 2289: uint16(28868), + 2290: uint16(6213), + 2291: uint16(40301), + 2292: uint16(35999), + 2293: uint16(36073), + 2294: uint16(32220), + 2295: uint16(22938), + 2296: uint16(30659), + 2297: uint16(23024), + 2298: uint16(17262), + 2299: uint16(14036), + 2300: uint16(36394), + 2301: uint16(36519), + 2302: uint16(19465), + 2303: uint16(36656), + 2304: uint16(36682), + 2305: uint16(17140), + 2306: uint16(27736), + 2307: uint16(28603), + 2308: uint16(8993), + 2309: uint16(18587), + 2310: uint16(28537), + 2311: uint16(28299), + 2312: uint16(6106), + 2313: uint16(39913), + 2314: uint16(14005), + 2315: uint16(18735), + 2316: uint16(37051), + 2318: uint16(21873), + 2319: uint16(18694), + 2320: uint16(37307), + 2321: uint16(37892), + 2322: uint16(35403), + 2323: uint16(16482), + 2324: uint16(35580), + 2325: uint16(37927), + 2326: uint16(35869), + 2327: uint16(35899), + 2328: uint16(34021), + 2329: uint16(35371), + 2330: uint16(38297), + 2331: uint16(38311), + 2332: uint16(38295), + 2333: uint16(38294), + 2334: uint16(36148), + 2335: uint16(29765), + 2336: uint16(16066), + 2337: uint16(18687), + 2338: uint16(19010), + 2339: uint16(17386), + 2340: uint16(16103), + 2341: uint16(12837), + 2342: uint16(38543), + 2343: uint16(36583), + 2344: uint16(36454), + 2345: uint16(36453), + 2346: uint16(16076), + 2347: uint16(18925), + 2348: uint16(19064), + 2349: uint16(16366), + 2350: uint16(29714), + 2351: uint16(29803), + 2352: uint16(16124), + 2353: uint16(38721), + 2354: uint16(37040), + 2355: uint16(26695), + 2356: uint16(18973), + 2357: uint16(37011), + 2358: uint16(22495), + 2360: uint16(37736), + 2361: uint16(35209), + 2362: uint16(35878), + 2363: uint16(35631), + 2364: uint16(25534), + 2365: uint16(37562), + 2366: uint16(23313), + 2367: uint16(35689), + 2368: uint16(18748), + 2369: uint16(29689), + 2370: uint16(16923), + 2371: uint16(38811), + 2372: uint16(38769), + 2373: uint16(39224), + 2374: uint16(3878), + 2375: uint16(24001), + 2376: uint16(35781), + 2377: uint16(19122), + 2378: uint16(38943), + 2379: uint16(38106), + 2380: uint16(37622), + 2381: uint16(38359), + 2382: uint16(37349), + 2383: uint16(17600), + 2384: uint16(35664), + 2385: uint16(19047), + 2386: uint16(35684), + 2387: uint16(39132), + 2388: uint16(35397), + 2389: uint16(16128), + 2390: uint16(37418), + 2391: uint16(18725), + 2392: uint16(33812), + 2393: uint16(39227), + 2394: uint16(39245), + 2395: uint16(31494), + 2396: uint16(15869), + 2397: uint16(39323), + 2398: uint16(19311), + 2399: uint16(39338), + 2400: uint16(39516), + 2401: uint16(35685), + 2402: uint16(22728), + 2403: uint16(27279), + 2404: uint16(39457), + 2405: uint16(23294), + 2406: uint16(39471), + 2407: uint16(39153), + 2408: uint16(19344), + 2409: uint16(39240), + 2410: uint16(39356), + 2411: uint16(19389), + 2412: uint16(19351), + 2413: uint16(37757), + 2414: uint16(22642), + 2415: uint16(4866), + 2416: uint16(22562), + 2417: uint16(18872), + 2418: uint16(5352), + 2419: uint16(30788), + 2420: uint16(10015), + 2421: uint16(15800), + 2422: uint16(26821), + 2423: uint16(15741), + 2424: uint16(37976), + 2425: uint16(14631), + 2426: uint16(24912), + 2427: uint16(10113), + 2428: uint16(10603), + 2429: uint16(24839), + 2430: uint16(40015), + 2431: uint16(40019), + 2432: uint16(40059), + 2433: uint16(39989), + 2434: uint16(39952), + 2435: uint16(39807), + 2436: uint16(39887), + 2437: uint16(40493), + 2438: uint16(39839), + 2439: uint16(41461), + 2440: uint16(41214), + 2441: uint16(40225), + 2442: uint16(19630), + 2443: uint16(16644), + 2444: uint16(40472), + 2445: uint16(19632), + 2446: uint16(40204), + 2447: uint16(41396), + 2448: uint16(41197), + 2449: uint16(41203), + 2450: uint16(39215), + 2451: uint16(40357), + 2452: uint16(33981), + 2453: uint16(28178), + 2454: uint16(28639), + 2455: uint16(27522), + 2456: uint16(34300), + 2457: uint16(17715), + 2458: uint16(28068), + 2459: uint16(28292), + 2460: uint16(28144), + 2461: uint16(33824), + 2462: uint16(34286), + 2463: uint16(28160), + 2464: uint16(14295), + 2465: uint16(24676), + 2466: uint16(31202), + 2467: uint16(13724), + 2468: uint16(13888), + 2469: uint16(18733), + 2470: uint16(18910), + 2471: uint16(15714), + 2472: uint16(37851), + 2473: uint16(37566), + 2474: uint16(37704), + 2475: uint16(703), + 2476: uint16(30905), + 2477: uint16(37495), + 2478: uint16(37965), + 2479: uint16(20452), + 2480: uint16(13376), + 2481: uint16(36964), + 2482: uint16(21853), + 2483: uint16(30781), + 2484: uint16(30804), + 2485: uint16(30902), + 2486: uint16(30795), + 2487: uint16(5975), + 2488: uint16(12745), + 2489: uint16(18753), + 2490: uint16(13978), + 2491: uint16(20338), + 2492: uint16(28634), + 2493: uint16(28633), + 2495: uint16(28702), + 2496: uint16(21524), + 2497: uint16(16821), + 2498: uint16(22459), + 2499: uint16(22771), + 2500: uint16(22410), + 2501: uint16(40214), + 2502: uint16(22487), + 2503: uint16(28980), + 2504: uint16(13487), + 2505: uint16(16812), + 2506: uint16(29163), + 2507: uint16(27712), + 2508: uint16(20375), + 2510: uint16(6069), + 2511: uint16(35401), + 2512: uint16(24844), + 2513: uint16(23246), + 2514: uint16(23051), + 2515: uint16(17084), + 2516: uint16(17544), + 2517: uint16(14124), + 2518: uint16(19323), + 2519: uint16(35324), + 2520: uint16(37819), + 2521: uint16(37816), + 2522: uint16(6358), + 2523: uint16(3869), + 2524: uint16(33906), + 2525: uint16(27840), + 2526: uint16(5139), + 2527: uint16(17146), + 2528: uint16(11302), + 2529: uint16(17345), + 2530: uint16(22932), + 2531: uint16(15799), + 2532: uint16(26433), + 2533: uint16(32168), + 2534: uint16(24923), + 2535: uint16(24740), + 2536: uint16(18873), + 2537: uint16(18827), + 2538: uint16(35322), + 2539: uint16(37605), + 2540: uint16(29666), + 2541: uint16(16105), + 2542: uint16(29876), + 2543: uint16(35683), + 2544: uint16(6303), + 2545: uint16(16097), + 2546: uint16(19123), + 2547: uint16(27352), + 2548: uint16(29683), + 2549: uint16(29691), + 2550: uint16(16086), + 2551: uint16(19006), + 2552: uint16(19092), + 2553: uint16(6105), + 2554: uint16(19046), + 2555: uint16(935), + 2556: uint16(5156), + 2557: uint16(18917), + 2558: uint16(29768), + 2559: uint16(18710), + 2560: uint16(28837), + 2561: uint16(18806), + 2562: uint16(37508), + 2563: uint16(29670), + 2564: uint16(37727), + 2565: uint16(1278), + 2566: uint16(37681), + 2567: uint16(35534), + 2568: uint16(35350), + 2569: uint16(37766), + 2570: uint16(35815), + 2571: uint16(21973), + 2572: uint16(18741), + 2573: uint16(35458), + 2574: uint16(29035), + 2575: uint16(18755), + 2576: uint16(3327), + 2577: uint16(22180), + 2578: uint16(1562), + 2579: uint16(3051), + 2580: uint16(3256), + 2581: uint16(21762), + 2582: uint16(31172), + 2583: uint16(6138), + 2584: uint16(32254), + 2585: uint16(5826), + 2586: uint16(19024), + 2587: uint16(6226), + 2588: uint16(17710), + 2589: uint16(37889), + 2590: uint16(14090), + 2591: uint16(35520), + 2592: uint16(18861), + 2593: uint16(22960), + 2594: uint16(6335), + 2595: uint16(6275), + 2596: uint16(29828), + 2597: uint16(23201), + 2598: uint16(14050), + 2599: uint16(15707), + 2600: uint16(14000), + 2601: uint16(37471), + 2602: uint16(23161), + 2603: uint16(35457), + 2604: uint16(6242), + 2605: uint16(37748), + 2606: uint16(15565), + 2607: uint16(2740), + 2608: uint16(19094), + 2609: uint16(14730), + 2610: uint16(20724), + 2611: uint16(15721), + 2612: uint16(15692), + 2613: uint16(5020), + 2614: uint16(29045), + 2615: uint16(17147), + 2616: uint16(33304), + 2617: uint16(28175), + 2618: uint16(37092), + 2619: uint16(17643), + 2620: uint16(27991), + 2621: uint16(32335), + 2622: uint16(28775), + 2623: uint16(27823), + 2624: uint16(15574), + 2625: uint16(16365), + 2626: uint16(15917), + 2627: uint16(28162), + 2628: uint16(28428), + 2629: uint16(15727), + 2630: uint16(1013), + 2631: uint16(30033), + 2632: uint16(14012), + 2633: uint16(13512), + 2634: uint16(18048), + 2635: uint16(16090), + 2636: uint16(18545), + 2637: uint16(22980), + 2638: uint16(37486), + 2639: uint16(18750), + 2640: uint16(36673), + 2641: uint16(35868), + 2642: uint16(27584), + 2643: uint16(22546), + 2644: uint16(22472), + 2645: uint16(14038), + 2646: uint16(5202), + 2647: uint16(28926), + 2648: uint16(17250), + 2649: uint16(19057), + 2650: uint16(12259), + 2651: uint16(4784), + 2652: uint16(9149), + 2653: uint16(26809), + 2654: uint16(26983), + 2655: uint16(5016), + 2656: uint16(13541), + 2657: uint16(31732), + 2658: uint16(14047), + 2659: uint16(35459), + 2660: uint16(14294), + 2661: uint16(13306), + 2662: uint16(19615), + 2663: uint16(27162), + 2664: uint16(13997), + 2665: uint16(27831), + 2666: uint16(33854), + 2667: uint16(17631), + 2668: uint16(17614), + 2669: uint16(27942), + 2670: uint16(27985), + 2671: uint16(27778), + 2672: uint16(28638), + 2673: uint16(28439), + 2674: uint16(28937), + 2675: uint16(33597), + 2676: uint16(5946), + 2677: uint16(33773), + 2678: uint16(27776), + 2679: uint16(28755), + 2680: uint16(6107), + 2681: uint16(22921), + 2682: uint16(23170), + 2683: uint16(6067), + 2684: uint16(23137), + 2685: uint16(23153), + 2686: uint16(6405), + 2687: uint16(16892), + 2688: uint16(14125), + 2689: uint16(23023), + 2690: uint16(5948), + 2691: uint16(14023), + 2692: uint16(29070), + 2693: uint16(37776), + 2694: uint16(26266), + 2695: uint16(17061), + 2696: uint16(23150), + 2697: uint16(23083), + 2698: uint16(17043), + 2699: uint16(27179), + 2700: uint16(16121), + 2701: uint16(30518), + 2702: uint16(17499), + 2703: uint16(17098), + 2704: uint16(28957), + 2705: uint16(16985), + 2706: uint16(35297), + 2707: uint16(20400), + 2708: uint16(27944), + 2709: uint16(23746), + 2710: uint16(17614), + 2711: uint16(32333), + 2712: uint16(17341), + 2713: uint16(27148), + 2714: uint16(16982), + 2715: uint16(4868), + 2716: uint16(28838), + 2717: uint16(28979), + 2718: uint16(17385), + 2719: uint16(15781), + 2720: uint16(27871), + 2721: uint16(63525), + 2722: uint16(19023), + 2723: uint16(32357), + 2724: uint16(23019), + 2725: uint16(23855), + 2726: uint16(15859), + 2727: uint16(24412), + 2728: uint16(19037), + 2729: uint16(6111), + 2730: uint16(32164), + 2731: uint16(33830), + 2732: uint16(21637), + 2733: uint16(15098), + 2734: uint16(13056), + 2735: uint16(532), + 2736: uint16(22398), + 2737: uint16(2261), + 2738: uint16(1561), + 2739: uint16(16357), + 2740: uint16(8094), + 2741: uint16(41654), + 2742: uint16(28675), + 2743: uint16(37211), + 2744: uint16(23920), + 2745: uint16(29583), + 2746: uint16(31955), + 2747: uint16(35417), + 2748: uint16(37920), + 2749: uint16(20424), + 2750: uint16(32743), + 2751: uint16(29389), + 2752: uint16(29456), + 2753: uint16(31476), + 2754: uint16(29496), + 2755: uint16(29497), + 2756: uint16(22262), + 2757: uint16(29505), + 2758: uint16(29512), + 2759: uint16(16041), + 2760: uint16(31512), + 2761: uint16(36972), + 2762: uint16(29173), + 2763: uint16(18674), + 2764: uint16(29665), + 2765: uint16(33270), + 2766: uint16(16074), + 2767: uint16(30476), + 2768: uint16(16081), + 2769: uint16(27810), + 2770: uint16(22269), + 2771: uint16(29721), + 2772: uint16(29726), + 2773: uint16(29727), + 2774: uint16(16098), + 2775: uint16(16112), + 2776: uint16(16116), + 2777: uint16(16122), + 2778: uint16(29907), + 2779: uint16(16142), + 2780: uint16(16211), + 2781: uint16(30018), + 2782: uint16(30061), + 2783: uint16(30066), + 2784: uint16(30093), + 2785: uint16(16252), + 2786: uint16(30152), + 2787: uint16(30172), + 2788: uint16(16320), + 2789: uint16(30285), + 2790: uint16(16343), + 2791: uint16(30324), + 2792: uint16(16348), + 2793: uint16(30330), + 2794: uint16(20316), + 2795: uint16(29064), + 2796: uint16(22051), + 2797: uint16(35200), + 2798: uint16(22633), + 2799: uint16(16413), + 2800: uint16(30531), + 2801: uint16(16441), + 2802: uint16(26465), + 2803: uint16(16453), + 2804: uint16(13787), + 2805: uint16(30616), + 2806: uint16(16490), + 2807: uint16(16495), + 2808: uint16(23646), + 2809: uint16(30654), + 2810: uint16(30667), + 2811: uint16(22770), + 2812: uint16(30744), + 2813: uint16(28857), + 2814: uint16(30748), + 2815: uint16(16552), + 2816: uint16(30777), + 2817: uint16(30791), + 2818: uint16(30801), + 2819: uint16(30822), + 2820: uint16(33864), + 2821: uint16(21813), + 2822: uint16(31027), + 2823: uint16(26627), + 2824: uint16(31026), + 2825: uint16(16643), + 2826: uint16(16649), + 2827: uint16(31121), + 2828: uint16(31129), + 2829: uint16(36795), + 2830: uint16(31238), + 2831: uint16(36796), + 2832: uint16(16743), + 2833: uint16(31377), + 2834: uint16(16818), + 2835: uint16(31420), + 2836: uint16(33401), + 2837: uint16(16836), + 2838: uint16(31439), + 2839: uint16(31451), + 2840: uint16(16847), + 2841: uint16(20001), + 2842: uint16(31586), + 2843: uint16(31596), + 2844: uint16(31611), + 2845: uint16(31762), + 2846: uint16(31771), + 2847: uint16(16992), + 2848: uint16(17018), + 2849: uint16(31867), + 2850: uint16(31900), + 2851: uint16(17036), + 2852: uint16(31928), + 2853: uint16(17044), + 2854: uint16(31981), + 2855: uint16(36755), + 2856: uint16(28864), + 2857: uint16(3279), + 2858: uint16(32207), + 2859: uint16(32212), + 2860: uint16(32208), + 2861: uint16(32253), + 2862: uint16(32686), + 2863: uint16(32692), + 2864: uint16(29343), + 2865: uint16(17303), + 2866: uint16(32800), + 2867: uint16(32805), + 2868: uint16(31545), + 2869: uint16(32814), + 2870: uint16(32817), + 2871: uint16(32852), + 2872: uint16(15820), + 2873: uint16(22452), + 2874: uint16(28832), + 2875: uint16(32951), + 2876: uint16(33001), + 2877: uint16(17389), + 2878: uint16(33036), + 2879: uint16(29482), + 2880: uint16(33038), + 2881: uint16(33042), + 2882: uint16(30048), + 2883: uint16(33044), + 2884: uint16(17409), + 2885: uint16(15161), + 2886: uint16(33110), + 2887: uint16(33113), + 2888: uint16(33114), + 2889: uint16(17427), + 2890: uint16(22586), + 2891: uint16(33148), + 2892: uint16(33156), + 2893: uint16(17445), + 2894: uint16(33171), + 2895: uint16(17453), + 2896: uint16(33189), + 2897: uint16(22511), + 2898: uint16(33217), + 2899: uint16(33252), + 2900: uint16(33364), + 2901: uint16(17551), + 2902: uint16(33446), + 2903: uint16(33398), + 2904: uint16(33482), + 2905: uint16(33496), + 2906: uint16(33535), + 2907: uint16(17584), + 2908: uint16(33623), + 2909: uint16(38505), + 2910: uint16(27018), + 2911: uint16(33797), + 2912: uint16(28917), + 2913: uint16(33892), + 2914: uint16(24803), + 2915: uint16(33928), + 2916: uint16(17668), + 2917: uint16(33982), + 2918: uint16(34017), + 2919: uint16(34040), + 2920: uint16(34064), + 2921: uint16(34104), + 2922: uint16(34130), + 2923: uint16(17723), + 2924: uint16(34159), + 2925: uint16(34160), + 2926: uint16(34272), + 2927: uint16(17783), + 2928: uint16(34418), + 2929: uint16(34450), + 2930: uint16(34482), + 2931: uint16(34543), + 2932: uint16(38469), + 2933: uint16(34699), + 2934: uint16(17926), + 2935: uint16(17943), + 2936: uint16(34990), + 2937: uint16(35071), + 2938: uint16(35108), + 2939: uint16(35143), + 2940: uint16(35217), + 2941: uint16(31079), + 2942: uint16(35369), + 2943: uint16(35384), + 2944: uint16(35476), + 2945: uint16(35508), + 2946: uint16(35921), + 2947: uint16(36052), + 2948: uint16(36082), + 2949: uint16(36124), + 2950: uint16(18328), + 2951: uint16(22623), + 2952: uint16(36291), + 2953: uint16(18413), + 2954: uint16(20206), + 2955: uint16(36410), + 2956: uint16(21976), + 2957: uint16(22356), + 2958: uint16(36465), + 2959: uint16(22005), + 2960: uint16(36528), + 2961: uint16(18487), + 2962: uint16(36558), + 2963: uint16(36578), + 2964: uint16(36580), + 2965: uint16(36589), + 2966: uint16(36594), + 2967: uint16(36791), + 2968: uint16(36801), + 2969: uint16(36810), + 2970: uint16(36812), + 2971: uint16(36915), + 2972: uint16(39364), + 2973: uint16(18605), + 2974: uint16(39136), + 2975: uint16(37395), + 2976: uint16(18718), + 2977: uint16(37416), + 2978: uint16(37464), + 2979: uint16(37483), + 2980: uint16(37553), + 2981: uint16(37550), + 2982: uint16(37567), + 2983: uint16(37603), + 2984: uint16(37611), + 2985: uint16(37619), + 2986: uint16(37620), + 2987: uint16(37629), + 2988: uint16(37699), + 2989: uint16(37764), + 2990: uint16(37805), + 2991: uint16(18757), + 2992: uint16(18769), + 2993: uint16(40639), + 2994: uint16(37911), + 2995: uint16(21249), + 2996: uint16(37917), + 2997: uint16(37933), + 2998: uint16(37950), + 2999: uint16(18794), + 3000: uint16(37972), + 3001: uint16(38009), + 3002: uint16(38189), + 3003: uint16(38306), + 3004: uint16(18855), + 3005: uint16(38388), + 3006: uint16(38451), + 3007: uint16(18917), + 3008: uint16(26528), + 3009: uint16(18980), + 3010: uint16(38720), + 3011: uint16(18997), + 3012: uint16(38834), + 3013: uint16(38850), + 3014: uint16(22100), + 3015: uint16(19172), + 3016: uint16(24808), + 3017: uint16(39097), + 3018: uint16(19225), + 3019: uint16(39153), + 3020: uint16(22596), + 3021: uint16(39182), + 3022: uint16(39193), + 3023: uint16(20916), + 3024: uint16(39196), + 3025: uint16(39223), + 3026: uint16(39234), + 3027: uint16(39261), + 3028: uint16(39266), + 3029: uint16(19312), + 3030: uint16(39365), + 3031: uint16(19357), + 3032: uint16(39484), + 3033: uint16(39695), + 3034: uint16(31363), + 3035: uint16(39785), + 3036: uint16(39809), + 3037: uint16(39901), + 3038: uint16(39921), + 3039: uint16(39924), + 3040: uint16(19565), + 3041: uint16(39968), + 3042: uint16(14191), + 3043: uint16(7106), + 3044: uint16(40265), + 3045: uint16(39994), + 3046: uint16(40702), + 3047: uint16(22096), + 3048: uint16(40339), + 3049: uint16(40381), + 3050: uint16(40384), + 3051: uint16(40444), + 3052: uint16(38134), + 3053: uint16(36790), + 3054: uint16(40571), + 3055: uint16(40620), + 3056: uint16(40625), + 3057: uint16(40637), + 3058: uint16(40646), + 3059: uint16(38108), + 3060: uint16(40674), + 3061: uint16(40689), + 3062: uint16(40696), + 3063: uint16(31432), + 3064: uint16(40772), + 3065: uint16(148), + 3066: uint16(695), + 3067: uint16(928), + 3068: uint16(26906), + 3069: uint16(38083), + 3070: uint16(22956), + 3071: uint16(1239), + 3072: uint16(22592), + 3073: uint16(38081), + 3074: uint16(14265), + 3075: uint16(1493), + 3076: uint16(1557), + 3077: uint16(1654), + 3078: uint16(5818), + 3079: uint16(22359), + 3080: uint16(29043), + 3081: uint16(2754), + 3082: uint16(2765), + 3083: uint16(3007), + 3084: uint16(21610), + 3085: uint16(63547), + 3086: uint16(3019), + 3087: uint16(21662), + 3088: uint16(3067), + 3089: uint16(3131), + 3090: uint16(3155), + 3091: uint16(3173), + 3092: uint16(3196), + 3093: uint16(24807), + 3094: uint16(3213), + 3095: uint16(22138), + 3096: uint16(3253), + 3097: uint16(3293), + 3098: uint16(3309), + 3099: uint16(3439), + 3100: uint16(3506), + 3101: uint16(3528), + 3102: uint16(26965), + 3103: uint16(39983), + 3104: uint16(34725), + 3105: uint16(3588), + 3106: uint16(3598), + 3107: uint16(3799), + 3108: uint16(3984), + 3109: uint16(3885), + 3110: uint16(3699), + 3111: uint16(23584), + 3112: uint16(4028), + 3113: uint16(24075), + 3114: uint16(4188), + 3115: uint16(4175), + 3116: uint16(4214), + 3117: uint16(26398), + 3118: uint16(4219), + 3119: uint16(4232), + 3120: uint16(4246), + 3121: uint16(13895), + 3122: uint16(4287), + 3123: uint16(4307), + 3124: uint16(4399), + 3125: uint16(4411), + 3126: uint16(21348), + 3127: uint16(33965), + 3128: uint16(4835), + 3129: uint16(4981), + 3130: uint16(4918), + 3131: uint16(35713), + 3132: uint16(5495), + 3133: uint16(5657), + 3134: uint16(6083), + 3135: uint16(6087), + 3136: uint16(20088), + 3137: uint16(28859), + 3138: uint16(6189), + 3139: uint16(6506), + 3140: uint16(6701), + 3141: uint16(6725), + 3142: uint16(7210), + 3143: uint16(7280), + 3144: uint16(7340), + 3145: uint16(7880), + 3146: uint16(25283), + 3147: uint16(7893), + 3148: uint16(7957), + 3149: uint16(29080), + 3150: uint16(26709), + 3151: uint16(8261), + 3152: uint16(27113), + 3153: uint16(14024), + 3154: uint16(8828), + 3155: uint16(9175), + 3156: uint16(9210), + 3157: uint16(10026), + 3158: uint16(10353), + 3159: uint16(10575), + 3160: uint16(33533), + 3161: uint16(10599), + 3162: uint16(10643), + 3163: uint16(10965), + 3164: uint16(35237), + 3165: uint16(10984), + 3166: uint16(36768), + 3167: uint16(11022), + 3168: uint16(38840), + 3169: uint16(11071), + 3170: uint16(38983), + 3171: uint16(39613), + 3172: uint16(11340), + 3174: uint16(11400), + 3175: uint16(11447), + 3176: uint16(23528), + 3177: uint16(11528), + 3178: uint16(11538), + 3179: uint16(11703), + 3180: uint16(11669), + 3181: uint16(11842), + 3182: uint16(12148), + 3183: uint16(12236), + 3184: uint16(12339), + 3185: uint16(12390), + 3186: uint16(13087), + 3187: uint16(13278), + 3188: uint16(24497), + 3189: uint16(26184), + 3190: uint16(26303), + 3191: uint16(31353), + 3192: uint16(13671), + 3193: uint16(13811), + 3195: uint16(18874), + 3197: uint16(13850), + 3198: uint16(14102), + 3200: uint16(838), + 3201: uint16(22709), + 3202: uint16(26382), + 3203: uint16(26904), + 3204: uint16(15015), + 3205: uint16(30295), + 3206: uint16(24546), + 3207: uint16(15889), + 3208: uint16(16057), + 3209: uint16(30206), + 3210: uint16(8346), + 3211: uint16(18640), + 3212: uint16(19128), + 3213: uint16(16665), + 3214: uint16(35482), + 3215: uint16(17134), + 3216: uint16(17165), + 3217: uint16(16443), + 3218: uint16(17204), + 3219: uint16(17302), + 3220: uint16(19013), + 3221: uint16(1482), + 3222: uint16(20946), + 3223: uint16(1553), + 3224: uint16(22943), + 3225: uint16(7848), + 3226: uint16(15294), + 3227: uint16(15615), + 3228: uint16(17412), + 3229: uint16(17622), + 3230: uint16(22408), + 3231: uint16(18036), + 3232: uint16(14747), + 3233: uint16(18223), + 3234: uint16(34280), + 3235: uint16(39369), + 3236: uint16(14178), + 3237: uint16(8643), + 3238: uint16(35678), + 3239: uint16(35662), + 3241: uint16(18450), + 3242: uint16(18683), + 3243: uint16(18965), + 3244: uint16(29193), + 3245: uint16(19136), + 3246: uint16(3192), + 3247: uint16(22885), + 3248: uint16(20133), + 3249: uint16(20358), + 3250: uint16(1913), + 3251: uint16(36570), + 3252: uint16(20524), + 3253: uint16(21135), + 3254: uint16(22335), + 3255: uint16(29041), + 3256: uint16(21145), + 3257: uint16(21529), + 3258: uint16(16202), + 3259: uint16(19111), + 3260: uint16(21948), + 3261: uint16(21574), + 3262: uint16(21614), + 3263: uint16(27474), + 3265: uint16(13427), + 3266: uint16(21823), + 3267: uint16(30258), + 3268: uint16(21854), + 3269: uint16(18200), + 3270: uint16(21858), + 3271: uint16(21862), + 3272: uint16(22471), + 3273: uint16(18751), + 3274: uint16(22621), + 3275: uint16(20582), + 3276: uint16(13563), + 3277: uint16(13260), + 3279: uint16(22787), + 3280: uint16(18300), + 3281: uint16(35144), + 3282: uint16(23214), + 3283: uint16(23433), + 3284: uint16(23558), + 3285: uint16(7568), + 3286: uint16(22433), + 3287: uint16(29009), + 3289: uint16(24834), + 3290: uint16(31762), + 3291: uint16(36950), + 3292: uint16(25010), + 3293: uint16(20378), + 3294: uint16(35682), + 3295: uint16(25602), + 3296: uint16(25674), + 3297: uint16(23899), + 3298: uint16(27639), + 3300: uint16(25732), + 3301: uint16(6428), + 3302: uint16(35562), + 3303: uint16(18934), + 3304: uint16(25736), + 3305: uint16(16367), + 3306: uint16(25874), + 3307: uint16(19392), + 3308: uint16(26047), + 3309: uint16(26293), + 3310: uint16(10011), + 3311: uint16(37989), + 3312: uint16(22497), + 3313: uint16(24981), + 3314: uint16(23079), + 3315: uint16(63693), + 3317: uint16(22201), + 3318: uint16(17697), + 3319: uint16(26364), + 3320: uint16(20074), + 3321: uint16(18740), + 3322: uint16(38486), + 3323: uint16(28047), + 3324: uint16(27837), + 3325: uint16(13848), + 3326: uint16(35191), + 3327: uint16(26521), + 3328: uint16(26734), + 3329: uint16(25617), + 3330: uint16(26718), + 3332: uint16(26823), + 3333: uint16(31554), + 3334: uint16(37056), + 3335: uint16(2577), + 3336: uint16(26918), + 3338: uint16(26937), + 3339: uint16(31301), + 3341: uint16(27130), + 3342: uint16(39462), + 3343: uint16(27181), + 3344: uint16(13919), + 3345: uint16(25705), + 3346: uint16(33), + 3347: uint16(31107), + 3348: uint16(27188), + 3349: uint16(27483), + 3350: uint16(23852), + 3351: uint16(13593), + 3353: uint16(27549), + 3354: uint16(18128), + 3355: uint16(27812), + 3356: uint16(30011), + 3357: uint16(34917), + 3358: uint16(28078), + 3359: uint16(22710), + 3360: uint16(14108), + 3361: uint16(9613), + 3362: uint16(28747), + 3363: uint16(29133), + 3364: uint16(15444), + 3365: uint16(29312), + 3366: uint16(29317), + 3367: uint16(37505), + 3368: uint16(8570), + 3369: uint16(29323), + 3370: uint16(37680), + 3371: uint16(29414), + 3372: uint16(18896), + 3373: uint16(27705), + 3374: uint16(38047), + 3375: uint16(29776), + 3376: uint16(3832), + 3377: uint16(34855), + 3378: uint16(35061), + 3379: uint16(10534), + 3380: uint16(33907), + 3381: uint16(6065), + 3382: uint16(28344), + 3383: uint16(18986), + 3384: uint16(6176), + 3385: uint16(14756), + 3386: uint16(14009), + 3389: uint16(17727), + 3390: uint16(26294), + 3391: uint16(40109), + 3392: uint16(39076), + 3393: uint16(35139), + 3394: uint16(30668), + 3395: uint16(30808), + 3396: uint16(22230), + 3397: uint16(16607), + 3398: uint16(5642), + 3399: uint16(14753), + 3400: uint16(14127), + 3401: uint16(33000), + 3402: uint16(5061), + 3403: uint16(29101), + 3404: uint16(33638), + 3405: uint16(31197), + 3406: uint16(37288), + 3408: uint16(19639), + 3409: uint16(28847), + 3410: uint16(35243), + 3411: uint16(31229), + 3412: uint16(31242), + 3413: uint16(31499), + 3414: uint16(32102), + 3415: uint16(16762), + 3416: uint16(31555), + 3417: uint16(31102), + 3418: uint16(32777), + 3419: uint16(28597), + 3420: uint16(41695), + 3421: uint16(27139), + 3422: uint16(33560), + 3423: uint16(21410), + 3424: uint16(28167), + 3425: uint16(37823), + 3426: uint16(26678), + 3427: uint16(38749), + 3428: uint16(33135), + 3429: uint16(32803), + 3430: uint16(27061), + 3431: uint16(5101), + 3432: uint16(12847), + 3433: uint16(32840), + 3434: uint16(23941), + 3435: uint16(35888), + 3436: uint16(32899), + 3437: uint16(22293), + 3438: uint16(38947), + 3439: uint16(35145), + 3440: uint16(23979), + 3441: uint16(18824), + 3442: uint16(26046), + 3443: uint16(27093), + 3444: uint16(21458), + 3445: uint16(19109), + 3446: uint16(16257), + 3447: uint16(15377), + 3448: uint16(26422), + 3449: uint16(32912), + 3450: uint16(33012), + 3451: uint16(33070), + 3452: uint16(8097), + 3453: uint16(33103), + 3454: uint16(33161), + 3455: uint16(33199), + 3456: uint16(33306), + 3457: uint16(33542), + 3458: uint16(33583), + 3459: uint16(33674), + 3460: uint16(13770), + 3461: uint16(33896), + 3462: uint16(34474), + 3463: uint16(18682), + 3464: uint16(25574), + 3465: uint16(35158), + 3466: uint16(30728), + 3467: uint16(37461), + 3468: uint16(35256), + 3469: uint16(17394), + 3470: uint16(35303), + 3471: uint16(17375), + 3472: uint16(35304), + 3473: uint16(35654), + 3474: uint16(35796), + 3475: uint16(23032), + 3476: uint16(35849), + 3478: uint16(36805), + 3479: uint16(37100), + 3481: uint16(37136), + 3482: uint16(37180), + 3483: uint16(15863), + 3484: uint16(37214), + 3485: uint16(19146), + 3486: uint16(36816), + 3487: uint16(29327), + 3488: uint16(22155), + 3489: uint16(38119), + 3490: uint16(38377), + 3491: uint16(38320), + 3492: uint16(38328), + 3493: uint16(38706), + 3494: uint16(39121), + 3495: uint16(39241), + 3496: uint16(39274), + 3497: uint16(39363), + 3498: uint16(39464), + 3499: uint16(39694), + 3500: uint16(40282), + 3501: uint16(40347), + 3502: uint16(32415), + 3503: uint16(40696), + 3504: uint16(40739), + 3505: uint16(19620), + 3506: uint16(38215), + 3507: uint16(41619), + 3508: uint16(29090), + 3509: uint16(41727), + 3510: uint16(19857), + 3511: uint16(36882), + 3512: uint16(42443), + 3513: uint16(19868), + 3514: uint16(3228), + 3515: uint16(36798), + 3516: uint16(21953), + 3517: uint16(36794), + 3518: uint16(9392), + 3519: uint16(36793), + 3520: uint16(19091), + 3521: uint16(17673), + 3522: uint16(32383), + 3523: uint16(28502), + 3524: uint16(27313), + 3525: uint16(20202), + 3526: uint16(13540), + 3527: uint16(35628), + 3528: uint16(30877), + 3529: uint16(14138), + 3530: uint16(36480), + 3531: uint16(6133), + 3532: uint16(32804), + 3533: uint16(35692), + 3534: uint16(35737), + 3535: uint16(31294), + 3536: uint16(26287), + 3537: uint16(15851), + 3538: uint16(30293), + 3539: uint16(15543), + 3540: uint16(22069), + 3541: uint16(22870), + 3542: uint16(20122), + 3543: uint16(24193), + 3544: uint16(25176), + 3545: uint16(22207), + 3546: uint16(3693), + 3547: uint16(36366), + 3548: uint16(23405), + 3549: uint16(16008), + 3550: uint16(19614), + 3551: uint16(25566), + 3553: uint16(6134), + 3554: uint16(6267), + 3555: uint16(25904), + 3556: uint16(22061), + 3557: uint16(23626), + 3558: uint16(21530), + 3559: uint16(21265), + 3560: uint16(15814), + 3561: uint16(40344), + 3562: uint16(19581), + 3563: uint16(22050), + 3564: uint16(22046), + 3565: uint16(32585), + 3566: uint16(24280), + 3567: uint16(22901), + 3568: uint16(15680), + 3569: uint16(34672), + 3570: uint16(19996), + 3571: uint16(4074), + 3572: uint16(3401), + 3573: uint16(14010), + 3574: uint16(33047), + 3575: uint16(40286), + 3576: uint16(36120), + 3577: uint16(30267), + 3578: uint16(40005), + 3579: uint16(30286), + 3580: uint16(30649), + 3581: uint16(37701), + 3582: uint16(21554), + 3583: uint16(33096), + 3584: uint16(33527), + 3585: uint16(22053), + 3586: uint16(33074), + 3587: uint16(33816), + 3588: uint16(32957), + 3589: uint16(21994), + 3590: uint16(31074), + 3591: uint16(22083), + 3592: uint16(21526), + 3593: uint16(3741), + 3594: uint16(13774), + 3595: uint16(22021), + 3596: uint16(22001), + 3597: uint16(26353), + 3598: uint16(33506), + 3599: uint16(13869), + 3600: uint16(30004), + 3601: uint16(22000), + 3602: uint16(21946), + 3603: uint16(21655), + 3604: uint16(21874), + 3605: uint16(3137), + 3606: uint16(3222), + 3607: uint16(24272), + 3608: uint16(20808), + 3609: uint16(3702), + 3610: uint16(11362), + 3611: uint16(3746), + 3612: uint16(40619), + 3613: uint16(32090), + 3614: uint16(21982), + 3615: uint16(4213), + 3616: uint16(25245), + 3617: uint16(38765), + 3618: uint16(21652), + 3619: uint16(36045), + 3620: uint16(29174), + 3621: uint16(37238), + 3622: uint16(25596), + 3623: uint16(25529), + 3624: uint16(25598), + 3625: uint16(21865), + 3626: uint16(11075), + 3627: uint16(40050), + 3628: uint16(11955), + 3629: uint16(20890), + 3630: uint16(13535), + 3631: uint16(3495), + 3632: uint16(20903), + 3633: uint16(21581), + 3634: uint16(21790), + 3635: uint16(21779), + 3636: uint16(30310), + 3637: uint16(36397), + 3638: uint16(26762), + 3639: uint16(30129), + 3640: uint16(32950), + 3641: uint16(34820), + 3642: uint16(34694), + 3643: uint16(35015), + 3644: uint16(33206), + 3645: uint16(33820), + 3646: uint16(4289), + 3647: uint16(17644), + 3648: uint16(29444), + 3649: uint16(18182), + 3650: uint16(23440), + 3651: uint16(33547), + 3652: uint16(26771), + 3653: uint16(22139), + 3654: uint16(9972), + 3655: uint16(32047), + 3656: uint16(16803), + 3657: uint16(32115), + 3658: uint16(28368), + 3659: uint16(29366), + 3660: uint16(37232), + 3661: uint16(4569), + 3662: uint16(37384), + 3663: uint16(15612), + 3664: uint16(42665), + 3665: uint16(3756), + 3666: uint16(3833), + 3667: uint16(29286), + 3668: uint16(7330), + 3669: uint16(18254), + 3670: uint16(20418), + 3671: uint16(32761), + 3672: uint16(4075), + 3673: uint16(16634), + 3674: uint16(40029), + 3675: uint16(25887), + 3676: uint16(11680), + 3677: uint16(18675), + 3678: uint16(18400), + 3679: uint16(40316), + 3680: uint16(4076), + 3681: uint16(3594), + 3683: uint16(30115), + 3684: uint16(4077), + 3686: uint16(24648), + 3687: uint16(4487), + 3688: uint16(29091), + 3689: uint16(32398), + 3690: uint16(40272), + 3691: uint16(19994), + 3692: uint16(19972), + 3693: uint16(13687), + 3694: uint16(23309), + 3695: uint16(27826), + 3696: uint16(21351), + 3697: uint16(13996), + 3698: uint16(14812), + 3699: uint16(21373), + 3700: uint16(13989), + 3701: uint16(17944), + 3702: uint16(22682), + 3703: uint16(19310), + 3704: uint16(33325), + 3705: uint16(21579), + 3706: uint16(22442), + 3707: uint16(23189), + 3708: uint16(2425), + 3710: uint16(14930), + 3711: uint16(9317), + 3712: uint16(29556), + 3713: uint16(40620), + 3714: uint16(19721), + 3715: uint16(39917), + 3716: uint16(15614), + 3717: uint16(40752), + 3718: uint16(19547), + 3719: uint16(20393), + 3720: uint16(38302), + 3721: uint16(40926), + 3722: uint16(33884), + 3723: uint16(15798), + 3724: uint16(29362), + 3725: uint16(26547), + 3726: uint16(14112), + 3727: uint16(25390), + 3728: uint16(32037), + 3729: uint16(16119), + 3730: uint16(15916), + 3731: uint16(14890), + 3732: uint16(36872), + 3733: uint16(21196), + 3734: uint16(15988), + 3735: uint16(13946), + 3736: uint16(17897), + 3737: uint16(1166), + 3738: uint16(30272), + 3739: uint16(23280), + 3740: uint16(3766), + 3741: uint16(30842), + 3742: uint16(32558), + 3743: uint16(22695), + 3744: uint16(16575), + 3745: uint16(22140), + 3746: uint16(39819), + 3747: uint16(23924), + 3748: uint16(30292), + 3749: uint16(42036), + 3750: uint16(40581), + 3751: uint16(19681), + 3753: uint16(14331), + 3754: uint16(24857), + 3755: uint16(12506), + 3756: uint16(17394), + 3758: uint16(22109), + 3759: uint16(4777), + 3760: uint16(22439), + 3761: uint16(18787), + 3762: uint16(40454), + 3763: uint16(21044), + 3764: uint16(28846), + 3765: uint16(13741), + 3767: uint16(40316), + 3768: uint16(31830), + 3769: uint16(39737), + 3770: uint16(22494), + 3771: uint16(5996), + 3772: uint16(23635), + 3773: uint16(25811), + 3774: uint16(38096), + 3775: uint16(25397), + 3776: uint16(29028), + 3777: uint16(34477), + 3778: uint16(3368), + 3779: uint16(27938), + 3780: uint16(19170), + 3781: uint16(3441), + 3783: uint16(20990), + 3784: uint16(7951), + 3785: uint16(23950), + 3786: uint16(38659), + 3787: uint16(7633), + 3788: uint16(40577), + 3789: uint16(36940), + 3790: uint16(31519), + 3791: uint16(39682), + 3792: uint16(23761), + 3793: uint16(31651), + 3794: uint16(25192), + 3795: uint16(25397), + 3796: uint16(39679), + 3797: uint16(31695), + 3798: uint16(39722), + 3799: uint16(31870), + 3801: uint16(31810), + 3802: uint16(31878), + 3803: uint16(39957), + 3804: uint16(31740), + 3805: uint16(39689), + 3807: uint16(39963), + 3808: uint16(18750), + 3809: uint16(40794), + 3810: uint16(21875), + 3811: uint16(23491), + 3812: uint16(20477), + 3813: uint16(40600), + 3814: uint16(20466), + 3815: uint16(21088), + 3816: uint16(15878), + 3817: uint16(21201), + 3818: uint16(22375), + 3819: uint16(20566), + 3820: uint16(22967), + 3821: uint16(24082), + 3822: uint16(38856), + 3823: uint16(40363), + 3824: uint16(36700), + 3825: uint16(21609), + 3826: uint16(38836), + 3827: uint16(39232), + 3828: uint16(38842), + 3829: uint16(21292), + 3830: uint16(24880), + 3831: uint16(26924), + 3832: uint16(21466), + 3833: uint16(39946), + 3834: uint16(40194), + 3835: uint16(19515), + 3836: uint16(38465), + 3837: uint16(27008), + 3838: uint16(20646), + 3839: uint16(30022), + 3840: uint16(5997), + 3841: uint16(39386), + 3842: uint16(21107), + 3844: uint16(37209), + 3845: uint16(38529), + 3846: uint16(37212), + 3848: uint16(37201), + 3849: uint16(36503), + 3850: uint16(25471), + 3851: uint16(27939), + 3852: uint16(27338), + 3853: uint16(22033), + 3854: uint16(37262), + 3855: uint16(30074), + 3856: uint16(25221), + 3857: uint16(1020), + 3858: uint16(29519), + 3859: uint16(31856), + 3860: uint16(23585), + 3861: uint16(15613), + 3863: uint16(18713), + 3864: uint16(30422), + 3865: uint16(39837), + 3866: uint16(20010), + 3867: uint16(3284), + 3868: uint16(33726), + 3869: uint16(34882), + 3871: uint16(23626), + 3872: uint16(27072), + 3874: uint16(22394), + 3875: uint16(21023), + 3876: uint16(24053), + 3877: uint16(20174), + 3878: uint16(27697), + 3879: uint16(498), + 3880: uint16(20281), + 3881: uint16(21660), + 3882: uint16(21722), + 3883: uint16(21146), + 3884: uint16(36226), + 3885: uint16(13822), + 3887: uint16(13811), + 3889: uint16(27474), + 3890: uint16(37244), + 3891: uint16(40869), + 3892: uint16(39831), + 3893: uint16(38958), + 3894: uint16(39092), + 3895: uint16(39610), + 3896: uint16(40616), + 3897: uint16(40580), + 3898: uint16(29050), + 3899: uint16(31508), + 3901: uint16(27642), + 3902: uint16(34840), + 3903: uint16(32632), + 3905: uint16(22048), + 3906: uint16(42570), + 3907: uint16(36471), + 3908: uint16(40787), + 3910: uint16(36308), + 3911: uint16(36431), + 3912: uint16(40476), + 3913: uint16(36353), + 3914: uint16(25218), + 3915: uint16(33661), + 3916: uint16(36392), + 3917: uint16(36469), + 3918: uint16(31443), + 3919: uint16(19063), + 3920: uint16(31294), + 3921: uint16(30936), + 3922: uint16(27882), + 3923: uint16(35431), + 3924: uint16(30215), + 3925: uint16(35418), + 3926: uint16(40742), + 3927: uint16(27854), + 3928: uint16(34774), + 3929: uint16(30147), + 3930: uint16(41650), + 3931: uint16(30803), + 3932: uint16(63552), + 3933: uint16(36108), + 3934: uint16(29410), + 3935: uint16(29553), + 3936: uint16(35629), + 3937: uint16(29442), + 3938: uint16(29937), + 3939: uint16(36075), + 3940: uint16(19131), + 3941: uint16(34351), + 3942: uint16(24506), + 3943: uint16(34976), + 3944: uint16(17591), + 3946: uint16(6203), + 3947: uint16(28165), + 3949: uint16(35454), + 3950: uint16(9499), + 3952: uint16(24829), + 3953: uint16(30311), + 3954: uint16(39639), + 3955: uint16(40260), + 3956: uint16(37742), + 3957: uint16(39823), + 3958: uint16(34805), + 3961: uint16(36087), + 3962: uint16(29484), + 3963: uint16(38689), + 3964: uint16(39856), + 3965: uint16(13782), + 3966: uint16(29362), + 3967: uint16(19463), + 3968: uint16(31825), + 3969: uint16(39242), + 3970: uint16(24921), + 3971: uint16(24921), + 3972: uint16(19460), + 3973: uint16(40598), + 3974: uint16(24957), + 3976: uint16(22367), + 3977: uint16(24943), + 3978: uint16(25254), + 3979: uint16(25145), + 3981: uint16(14940), + 3982: uint16(25058), + 3983: uint16(21418), + 3984: uint16(13301), + 3985: uint16(25444), + 3986: uint16(26626), + 3987: uint16(13778), + 3988: uint16(23895), + 3989: uint16(35778), + 3990: uint16(36826), + 3991: uint16(36409), + 3993: uint16(20697), + 3994: uint16(7494), + 3995: uint16(30982), + 3996: uint16(21298), + 3997: uint16(38456), + 3998: uint16(3899), + 3999: uint16(16485), + 4001: uint16(30718), + 4003: uint16(31938), + 4004: uint16(24346), + 4005: uint16(31962), + 4006: uint16(31277), + 4007: uint16(32870), + 4008: uint16(32867), + 4009: uint16(32077), + 4010: uint16(29957), + 4011: uint16(29938), + 4012: uint16(35220), + 4013: uint16(33306), + 4014: uint16(26380), + 4015: uint16(32866), + 4016: uint16(29830), + 4017: uint16(32859), + 4018: uint16(29936), + 4019: uint16(33027), + 4020: uint16(30500), + 4021: uint16(35209), + 4022: uint16(26572), + 4023: uint16(30035), + 4024: uint16(28369), + 4025: uint16(34729), + 4026: uint16(34766), + 4027: uint16(33224), + 4028: uint16(34700), + 4029: uint16(35401), + 4030: uint16(36013), + 4031: uint16(35651), + 4032: uint16(30507), + 4033: uint16(29944), + 4034: uint16(34010), + 4035: uint16(13877), + 4036: uint16(27058), + 4037: uint16(36262), + 4039: uint16(35241), + 4041: uint16(28089), + 4042: uint16(34753), + 4043: uint16(16401), + 4044: uint16(29927), + 4045: uint16(15835), + 4046: uint16(29046), + 4047: uint16(24740), + 4048: uint16(24988), + 4049: uint16(15569), + 4051: uint16(24695), + 4053: uint16(32625), + 4054: uint16(35629), + 4056: uint16(24809), + 4057: uint16(19326), + 4058: uint16(21024), + 4059: uint16(15384), + 4060: uint16(15559), + 4061: uint16(24279), + 4062: uint16(30294), + 4063: uint16(21809), + 4064: uint16(6468), + 4065: uint16(4862), + 4066: uint16(39171), + 4067: uint16(28124), + 4068: uint16(28845), + 4069: uint16(23745), + 4070: uint16(25005), + 4071: uint16(35343), + 4072: uint16(13943), + 4073: uint16(238), + 4074: uint16(26694), + 4075: uint16(20238), + 4076: uint16(17762), + 4077: uint16(23327), + 4078: uint16(25420), + 4079: uint16(40784), + 4080: uint16(40614), + 4081: uint16(25195), + 4082: uint16(1351), + 4083: uint16(37595), + 4084: uint16(1503), + 4085: uint16(16325), + 4086: uint16(34124), + 4087: uint16(17077), + 4088: uint16(29679), + 4089: uint16(20917), + 4090: uint16(13897), + 4091: uint16(18754), + 4092: uint16(35300), + 4093: uint16(37700), + 4094: uint16(6619), + 4095: uint16(33518), + 4096: uint16(15560), + 4097: uint16(30780), + 4098: uint16(26436), + 4099: uint16(25311), + 4100: uint16(18739), + 4101: uint16(35242), + 4102: uint16(672), + 4103: uint16(27571), + 4104: uint16(4869), + 4105: uint16(20395), + 4106: uint16(9453), + 4107: uint16(20488), + 4108: uint16(27945), + 4109: uint16(31364), + 4110: uint16(13824), + 4111: uint16(19121), + 4112: uint16(9491), + 4114: uint16(894), + 4115: uint16(24484), + 4116: uint16(896), + 4117: uint16(839), + 4118: uint16(28379), + 4119: uint16(1055), + 4121: uint16(20737), + 4122: uint16(13434), + 4123: uint16(20750), + 4124: uint16(39020), + 4125: uint16(14147), + 4126: uint16(33814), + 4127: uint16(18852), + 4128: uint16(1159), + 4129: uint16(20832), + 4130: uint16(13236), + 4131: uint16(20842), + 4132: uint16(3071), + 4133: uint16(8444), + 4134: uint16(741), + 4135: uint16(9520), + 4136: uint16(1422), + 4137: uint16(12851), + 4138: uint16(6531), + 4139: uint16(23426), + 4140: uint16(34685), + 4141: uint16(1459), + 4142: uint16(15513), + 4143: uint16(20914), + 4144: uint16(20920), + 4145: uint16(40244), + 4146: uint16(20937), + 4147: uint16(20943), + 4148: uint16(20945), + 4149: uint16(15580), + 4150: uint16(20947), + 4151: uint16(19110), + 4152: uint16(20915), + 4153: uint16(20962), + 4154: uint16(21314), + 4155: uint16(20973), + 4156: uint16(33741), + 4157: uint16(26942), + 4158: uint16(14125), + 4159: uint16(24443), + 4160: uint16(21003), + 4161: uint16(21030), + 4162: uint16(21052), + 4163: uint16(21173), + 4164: uint16(21079), + 4165: uint16(21140), + 4166: uint16(21177), + 4167: uint16(21189), + 4168: uint16(31765), + 4169: uint16(34114), + 4170: uint16(21216), + 4171: uint16(34317), + 4172: uint16(27411), + 4174: uint16(35550), + 4175: uint16(21833), + 4176: uint16(28377), + 4177: uint16(16256), + 4178: uint16(2388), + 4179: uint16(16364), + 4180: uint16(21299), + 4182: uint16(3042), + 4183: uint16(27851), + 4184: uint16(5926), + 4185: uint16(26651), + 4186: uint16(29653), + 4187: uint16(24650), + 4188: uint16(16042), + 4189: uint16(14540), + 4190: uint16(5864), + 4191: uint16(29149), + 4192: uint16(17570), + 4193: uint16(21357), + 4194: uint16(21364), + 4195: uint16(34475), + 4196: uint16(21374), + 4198: uint16(5526), + 4199: uint16(5651), + 4200: uint16(30694), + 4201: uint16(21395), + 4202: uint16(35483), + 4203: uint16(21408), + 4204: uint16(21419), + 4205: uint16(21422), + 4206: uint16(29607), + 4207: uint16(22386), + 4208: uint16(16217), + 4209: uint16(29596), + 4210: uint16(21441), + 4211: uint16(21445), + 4212: uint16(27721), + 4213: uint16(20041), + 4214: uint16(22526), + 4215: uint16(21465), + 4216: uint16(15019), + 4217: uint16(2959), + 4218: uint16(21472), + 4219: uint16(16363), + 4220: uint16(11683), + 4221: uint16(21494), + 4222: uint16(3191), + 4223: uint16(21523), + 4224: uint16(28793), + 4225: uint16(21803), + 4226: uint16(26199), + 4227: uint16(27995), + 4228: uint16(21613), + 4229: uint16(27475), + 4230: uint16(3444), + 4231: uint16(21853), + 4232: uint16(21647), + 4233: uint16(21668), + 4234: uint16(18342), + 4235: uint16(5901), + 4236: uint16(3805), + 4237: uint16(15796), + 4238: uint16(3405), + 4239: uint16(35260), + 4240: uint16(9880), + 4241: uint16(21831), + 4242: uint16(19693), + 4243: uint16(21551), + 4244: uint16(29719), + 4245: uint16(21894), + 4246: uint16(21929), + 4248: uint16(6359), + 4249: uint16(16442), + 4250: uint16(17746), + 4251: uint16(17461), + 4252: uint16(26291), + 4253: uint16(4276), + 4254: uint16(22071), + 4255: uint16(26317), + 4256: uint16(12938), + 4257: uint16(26276), + 4258: uint16(26285), + 4259: uint16(22093), + 4260: uint16(22095), + 4261: uint16(30961), + 4262: uint16(22257), + 4263: uint16(38791), + 4264: uint16(21502), + 4265: uint16(22272), + 4266: uint16(22255), + 4267: uint16(22253), + 4268: uint16(35686), + 4269: uint16(13859), + 4270: uint16(4687), + 4271: uint16(22342), + 4272: uint16(16805), + 4273: uint16(27758), + 4274: uint16(28811), + 4275: uint16(22338), + 4276: uint16(14001), + 4277: uint16(27774), + 4278: uint16(22502), + 4279: uint16(5142), + 4280: uint16(22531), + 4281: uint16(5204), + 4282: uint16(17251), + 4283: uint16(22566), + 4284: uint16(19445), + 4285: uint16(22620), + 4286: uint16(22698), + 4287: uint16(13665), + 4288: uint16(22752), + 4289: uint16(22748), + 4290: uint16(4668), + 4291: uint16(22779), + 4292: uint16(23551), + 4293: uint16(22339), + 4294: uint16(41296), + 4295: uint16(17016), + 4296: uint16(37843), + 4297: uint16(13729), + 4298: uint16(22815), + 4299: uint16(26790), + 4300: uint16(14019), + 4301: uint16(28249), + 4302: uint16(5694), + 4303: uint16(23076), + 4304: uint16(21843), + 4305: uint16(5778), + 4306: uint16(34053), + 4307: uint16(22985), + 4308: uint16(3406), + 4309: uint16(27777), + 4310: uint16(27946), + 4311: uint16(6108), + 4312: uint16(23001), + 4313: uint16(6139), + 4314: uint16(6066), + 4315: uint16(28070), + 4316: uint16(28017), + 4317: uint16(6184), + 4318: uint16(5845), + 4319: uint16(23033), + 4320: uint16(28229), + 4321: uint16(23211), + 4322: uint16(23139), + 4323: uint16(14054), + 4324: uint16(18857), + 4326: uint16(14088), + 4327: uint16(23190), + 4328: uint16(29797), + 4329: uint16(23251), + 4330: uint16(28577), + 4331: uint16(9556), + 4332: uint16(15749), + 4333: uint16(6417), + 4334: uint16(14130), + 4335: uint16(5816), + 4336: uint16(24195), + 4337: uint16(21200), + 4338: uint16(23414), + 4339: uint16(25992), + 4340: uint16(23420), + 4341: uint16(31246), + 4342: uint16(16388), + 4343: uint16(18525), + 4344: uint16(516), + 4345: uint16(23509), + 4346: uint16(24928), + 4347: uint16(6708), + 4348: uint16(22988), + 4349: uint16(1445), + 4350: uint16(23539), + 4351: uint16(23453), + 4352: uint16(19728), + 4353: uint16(23557), + 4354: uint16(6980), + 4355: uint16(23571), + 4356: uint16(29646), + 4357: uint16(23572), + 4358: uint16(7333), + 4359: uint16(27432), + 4360: uint16(23625), + 4361: uint16(18653), + 4362: uint16(23685), + 4363: uint16(23785), + 4364: uint16(23791), + 4365: uint16(23947), + 4366: uint16(7673), + 4367: uint16(7735), + 4368: uint16(23824), + 4369: uint16(23832), + 4370: uint16(23878), + 4371: uint16(7844), + 4372: uint16(23738), + 4373: uint16(24023), + 4374: uint16(33532), + 4375: uint16(14381), + 4376: uint16(18689), + 4377: uint16(8265), + 4378: uint16(8563), + 4379: uint16(33415), + 4380: uint16(14390), + 4381: uint16(15298), + 4382: uint16(24110), + 4383: uint16(27274), + 4385: uint16(24186), + 4386: uint16(17596), + 4387: uint16(3283), + 4388: uint16(21414), + 4389: uint16(20151), + 4391: uint16(21416), + 4392: uint16(6001), + 4393: uint16(24073), + 4394: uint16(24308), + 4395: uint16(33922), + 4396: uint16(24313), + 4397: uint16(24315), + 4398: uint16(14496), + 4399: uint16(24316), + 4400: uint16(26686), + 4401: uint16(37915), + 4402: uint16(24333), + 4403: uint16(449), + 4404: uint16(63636), + 4405: uint16(15070), + 4406: uint16(18606), + 4407: uint16(4922), + 4408: uint16(24378), + 4409: uint16(26760), + 4410: uint16(9168), + 4412: uint16(9329), + 4413: uint16(24419), + 4414: uint16(38845), + 4415: uint16(28270), + 4416: uint16(24434), + 4417: uint16(37696), + 4418: uint16(35382), + 4419: uint16(24487), + 4420: uint16(23990), + 4421: uint16(15711), + 4422: uint16(21072), + 4423: uint16(8042), + 4424: uint16(28920), + 4425: uint16(9832), + 4426: uint16(37334), + 4427: uint16(670), + 4428: uint16(35369), + 4429: uint16(24625), + 4430: uint16(26245), + 4431: uint16(6263), + 4432: uint16(14691), + 4433: uint16(15815), + 4434: uint16(13881), + 4435: uint16(22416), + 4436: uint16(10164), + 4437: uint16(31089), + 4438: uint16(15936), + 4439: uint16(24734), + 4441: uint16(24755), + 4442: uint16(18818), + 4443: uint16(18831), + 4444: uint16(31315), + 4445: uint16(29860), + 4446: uint16(20705), + 4447: uint16(23200), + 4448: uint16(24932), + 4449: uint16(33828), + 4450: uint16(24898), + 4451: uint16(63654), + 4452: uint16(28370), + 4453: uint16(24961), + 4454: uint16(20980), + 4455: uint16(1622), + 4456: uint16(24967), + 4457: uint16(23466), + 4458: uint16(16311), + 4459: uint16(10335), + 4460: uint16(25043), + 4461: uint16(35741), + 4462: uint16(39261), + 4463: uint16(25040), + 4464: uint16(14642), + 4465: uint16(10624), + 4466: uint16(10433), + 4467: uint16(24611), + 4468: uint16(24924), + 4469: uint16(25886), + 4470: uint16(25483), + 4471: uint16(280), + 4472: uint16(25285), + 4473: uint16(6000), + 4474: uint16(25301), + 4475: uint16(11789), + 4476: uint16(25452), + 4477: uint16(18911), + 4478: uint16(14871), + 4479: uint16(25656), + 4480: uint16(25592), + 4481: uint16(5006), + 4482: uint16(6140), + 4484: uint16(28554), + 4485: uint16(11830), + 4486: uint16(38932), + 4487: uint16(16524), + 4488: uint16(22301), + 4489: uint16(25825), + 4490: uint16(25829), + 4491: uint16(38011), + 4492: uint16(14950), + 4493: uint16(25658), + 4494: uint16(14935), + 4495: uint16(25933), + 4496: uint16(28438), + 4497: uint16(18984), + 4498: uint16(18979), + 4499: uint16(25989), + 4500: uint16(25965), + 4501: uint16(25951), + 4502: uint16(12414), + 4503: uint16(26037), + 4504: uint16(18752), + 4505: uint16(19255), + 4506: uint16(26065), + 4507: uint16(16600), + 4508: uint16(6185), + 4509: uint16(26080), + 4510: uint16(26083), + 4511: uint16(24543), + 4512: uint16(13312), + 4513: uint16(26136), + 4514: uint16(12791), + 4515: uint16(12792), + 4516: uint16(26180), + 4517: uint16(12708), + 4518: uint16(12709), + 4519: uint16(26187), + 4520: uint16(3701), + 4521: uint16(26215), + 4522: uint16(20966), + 4523: uint16(26227), + 4525: uint16(7741), + 4526: uint16(12849), + 4527: uint16(34292), + 4528: uint16(12744), + 4529: uint16(21267), + 4530: uint16(30661), + 4531: uint16(10487), + 4532: uint16(39332), + 4533: uint16(26370), + 4534: uint16(17308), + 4535: uint16(18977), + 4536: uint16(15147), + 4537: uint16(27130), + 4538: uint16(14274), + 4540: uint16(26471), + 4541: uint16(26466), + 4542: uint16(16845), + 4543: uint16(37101), + 4544: uint16(26583), + 4545: uint16(17641), + 4546: uint16(26658), + 4547: uint16(28240), + 4548: uint16(37436), + 4549: uint16(26625), + 4550: uint16(13286), + 4551: uint16(28064), + 4552: uint16(26717), + 4553: uint16(13423), + 4554: uint16(27105), + 4555: uint16(27147), + 4556: uint16(35551), + 4557: uint16(26995), + 4558: uint16(26819), + 4559: uint16(13773), + 4560: uint16(26881), + 4561: uint16(26880), + 4562: uint16(15666), + 4563: uint16(14849), + 4564: uint16(13884), + 4565: uint16(15232), + 4566: uint16(26540), + 4567: uint16(26977), + 4568: uint16(35402), + 4569: uint16(17148), + 4570: uint16(26934), + 4571: uint16(27032), + 4572: uint16(15265), + 4573: uint16(969), + 4574: uint16(33635), + 4575: uint16(20624), + 4576: uint16(27129), + 4577: uint16(13913), + 4578: uint16(8490), + 4579: uint16(27205), + 4580: uint16(14083), + 4581: uint16(27293), + 4582: uint16(15347), + 4583: uint16(26545), + 4584: uint16(27336), + 4585: uint16(37276), + 4586: uint16(15373), + 4587: uint16(27421), + 4588: uint16(2339), + 4589: uint16(24798), + 4590: uint16(27445), + 4591: uint16(27508), + 4592: uint16(10189), + 4593: uint16(28341), + 4594: uint16(15067), + 4595: uint16(949), + 4596: uint16(6488), + 4597: uint16(14144), + 4598: uint16(21537), + 4599: uint16(15194), + 4600: uint16(27617), + 4601: uint16(16124), + 4602: uint16(27612), + 4603: uint16(27703), + 4604: uint16(9355), + 4605: uint16(18673), + 4606: uint16(27473), + 4607: uint16(27738), + 4608: uint16(33318), + 4609: uint16(27769), + 4610: uint16(15804), + 4611: uint16(17605), + 4612: uint16(15805), + 4613: uint16(16804), + 4614: uint16(18700), + 4615: uint16(18688), + 4616: uint16(15561), + 4617: uint16(14053), + 4618: uint16(15595), + 4619: uint16(3378), + 4620: uint16(39811), + 4621: uint16(12793), + 4622: uint16(9361), + 4623: uint16(32655), + 4624: uint16(26679), + 4625: uint16(27941), + 4626: uint16(28065), + 4627: uint16(28139), + 4628: uint16(28054), + 4629: uint16(27996), + 4630: uint16(28284), + 4631: uint16(28420), + 4632: uint16(18815), + 4633: uint16(16517), + 4634: uint16(28274), + 4635: uint16(34099), + 4636: uint16(28532), + 4637: uint16(20935), + 4640: uint16(33838), + 4641: uint16(35617), + 4643: uint16(15919), + 4644: uint16(29779), + 4645: uint16(16258), + 4646: uint16(31180), + 4647: uint16(28239), + 4648: uint16(23185), + 4649: uint16(12363), + 4650: uint16(28664), + 4651: uint16(14093), + 4652: uint16(28573), + 4653: uint16(15920), + 4654: uint16(28410), + 4655: uint16(5271), + 4656: uint16(16445), + 4657: uint16(17749), + 4658: uint16(37872), + 4659: uint16(28484), + 4660: uint16(28508), + 4661: uint16(15694), + 4662: uint16(28532), + 4663: uint16(37232), + 4664: uint16(15675), + 4665: uint16(28575), + 4666: uint16(16708), + 4667: uint16(28627), + 4668: uint16(16529), + 4669: uint16(16725), + 4670: uint16(16441), + 4671: uint16(16368), + 4672: uint16(16308), + 4673: uint16(16703), + 4674: uint16(20959), + 4675: uint16(16726), + 4676: uint16(16727), + 4677: uint16(16704), + 4678: uint16(25053), + 4679: uint16(28747), + 4680: uint16(28798), + 4681: uint16(28839), + 4682: uint16(28801), + 4683: uint16(28876), + 4684: uint16(28885), + 4685: uint16(28886), + 4686: uint16(28895), + 4687: uint16(16644), + 4688: uint16(15848), + 4689: uint16(29108), + 4690: uint16(29078), + 4691: uint16(17015), + 4692: uint16(28971), + 4693: uint16(28997), + 4694: uint16(23176), + 4695: uint16(29002), + 4697: uint16(23708), + 4698: uint16(17253), + 4699: uint16(29007), + 4700: uint16(37730), + 4701: uint16(17089), + 4702: uint16(28972), + 4703: uint16(17498), + 4704: uint16(18983), + 4705: uint16(18978), + 4706: uint16(29114), + 4707: uint16(35816), + 4708: uint16(28861), + 4709: uint16(29198), + 4710: uint16(37954), + 4711: uint16(29205), + 4712: uint16(22801), + 4713: uint16(37955), + 4714: uint16(29220), + 4715: uint16(37697), + 4716: uint16(22021), + 4717: uint16(29230), + 4718: uint16(29248), + 4719: uint16(18804), + 4720: uint16(26813), + 4721: uint16(29269), + 4722: uint16(29271), + 4723: uint16(15957), + 4724: uint16(12356), + 4725: uint16(26637), + 4726: uint16(28477), + 4727: uint16(29314), + 4729: uint16(29483), + 4730: uint16(18467), + 4731: uint16(34859), + 4732: uint16(18669), + 4733: uint16(34820), + 4734: uint16(29480), + 4735: uint16(29486), + 4736: uint16(29647), + 4737: uint16(29610), + 4738: uint16(3130), + 4739: uint16(27182), + 4740: uint16(29641), + 4741: uint16(29769), + 4742: uint16(16866), + 4743: uint16(5863), + 4744: uint16(18980), + 4745: uint16(26147), + 4746: uint16(14021), + 4747: uint16(18871), + 4748: uint16(18829), + 4749: uint16(18939), + 4750: uint16(29687), + 4751: uint16(29717), + 4752: uint16(26883), + 4753: uint16(18982), + 4754: uint16(29753), + 4755: uint16(1475), + 4756: uint16(16087), + 4758: uint16(10413), + 4759: uint16(29792), + 4760: uint16(36530), + 4761: uint16(29767), + 4762: uint16(29668), + 4763: uint16(29814), + 4764: uint16(33721), + 4765: uint16(29804), + 4766: uint16(14128), + 4767: uint16(29812), + 4768: uint16(37873), + 4769: uint16(27180), + 4770: uint16(29826), + 4771: uint16(18771), + 4772: uint16(19084), + 4773: uint16(16735), + 4774: uint16(19065), + 4775: uint16(35727), + 4776: uint16(23366), + 4777: uint16(35843), + 4778: uint16(6302), + 4779: uint16(29896), + 4780: uint16(6536), + 4781: uint16(29966), + 4783: uint16(29982), + 4784: uint16(36569), + 4785: uint16(6731), + 4786: uint16(23511), + 4787: uint16(36524), + 4788: uint16(37765), + 4789: uint16(30029), + 4790: uint16(30026), + 4791: uint16(30055), + 4792: uint16(30062), + 4793: uint16(20354), + 4794: uint16(16132), + 4795: uint16(19731), + 4796: uint16(30094), + 4797: uint16(29789), + 4798: uint16(30110), + 4799: uint16(30132), + 4800: uint16(30210), + 4801: uint16(30252), + 4802: uint16(30289), + 4803: uint16(30287), + 4804: uint16(30319), + 4805: uint16(30326), + 4806: uint16(25589), + 4807: uint16(30352), + 4808: uint16(33263), + 4809: uint16(14328), + 4810: uint16(26897), + 4811: uint16(26894), + 4812: uint16(30369), + 4813: uint16(30373), + 4814: uint16(30391), + 4815: uint16(30412), + 4816: uint16(28575), + 4817: uint16(33890), + 4818: uint16(20637), + 4819: uint16(20861), + 4820: uint16(7708), + 4821: uint16(30494), + 4822: uint16(30502), + 4823: uint16(30528), + 4824: uint16(25775), + 4825: uint16(21024), + 4826: uint16(30552), + 4827: uint16(12972), + 4828: uint16(30639), + 4829: uint16(35172), + 4830: uint16(35176), + 4831: uint16(5825), + 4832: uint16(30708), + 4834: uint16(4982), + 4835: uint16(18962), + 4836: uint16(26826), + 4837: uint16(30895), + 4838: uint16(30919), + 4839: uint16(30931), + 4840: uint16(38565), + 4841: uint16(31022), + 4842: uint16(21984), + 4843: uint16(30935), + 4844: uint16(31028), + 4845: uint16(30897), + 4846: uint16(30220), + 4847: uint16(36792), + 4848: uint16(34948), + 4849: uint16(35627), + 4850: uint16(24707), + 4851: uint16(9756), + 4852: uint16(31110), + 4853: uint16(35072), + 4854: uint16(26882), + 4855: uint16(31104), + 4856: uint16(22615), + 4857: uint16(31133), + 4858: uint16(31545), + 4859: uint16(31036), + 4860: uint16(31145), + 4861: uint16(28202), + 4862: uint16(28966), + 4863: uint16(16040), + 4864: uint16(31174), + 4865: uint16(37133), + 4866: uint16(31188), + 4867: uint16(1312), + 4868: uint16(17503), + 4869: uint16(21007), + 4870: uint16(47234), + 4871: uint16(248), + 4872: uint16(16384), + 4873: uint16(43296), + 4874: uint16(1102), + 4877: uint16(2868), + 4878: uint16(1), + 4886: uint16(3072), + 4887: uint16(64), + 4891: uint16(1024), + 4892: uint16(88), + 4893: uint16(60), + 4896: uint16(23680), + 4897: uint16(56493), + 4898: uint16(48115), + 4899: uint16(17353), + 4900: uint16(60910), + 4901: uint16(4004), + 4902: uint16(49446), + 4903: uint16(30363), + 4904: uint16(61426), + 4905: uint16(64478), + 4906: uint16(63482), + 4907: uint16(12815), + 4908: uint16(44868), + 4909: uint16(61438), + 4910: uint16(65277), + 4911: uint16(24593), + 4912: uint16(176), + 4913: uint16(8448), + 4914: uint16(33049), + 4915: uint16(4128), + 4916: uint16(43144), + 4917: uint16(8544), + 4918: uint16(9321), + 4919: uint16(17408), + 4920: uint16(50313), + 4922: uint16(16387), + 4923: uint16(53), + 4924: uint16(33859), + 4925: uint16(20785), + 4926: uint16(26771), + 4927: uint16(514), + 4933: uint16(16384), + 4934: uint16(256), + 4935: uint16(44160), + 4936: uint16(33380), + 4937: uint16(35904), + 4938: uint16(37025), + 4939: uint16(20484), + 4940: uint16(54368), + 4941: uint16(53760), + 4942: uint16(6186), + 4943: uint16(26781), + 4944: uint16(38709), + 4945: uint16(55375), + 4946: uint16(8440), + 4947: uint16(33476), + 4948: uint16(10268), + 4949: uint16(30082), + 4950: uint16(660), + 4951: uint16(16440), + 4952: uint16(41376), + 4953: uint16(4293), + 4954: uint16(19825), + 4955: uint16(3524), + 4956: uint16(47512), + 4957: uint16(23390), + 4958: uint16(17153), + 4959: uint16(39327), + 4960: uint16(30723), + 4961: uint16(57888), + 4962: uint16(2079), + 4963: uint16(393), + 4964: uint16(16585), + 4965: uint16(775), + 4966: uint16(39437), + 4967: uint16(21136), + 4968: uint16(20433), + 4969: uint16(892), + 4970: uint16(8450), + 4971: uint16(49184), + 4972: uint16(4974), + 4973: uint16(46467), + 4974: uint16(62939), + 4975: uint16(30693), + 4976: uint16(20368), + 4977: uint16(39447), + 4978: uint16(5942), + 4979: uint16(12), + 4980: uint16(47726), + 4981: uint16(12041), + 4982: uint16(21600), + 4983: uint16(7680), + 4984: uint16(26744), + 4985: uint16(28706), + 4986: uint16(40534), + 4987: uint16(62245), + 4988: uint16(46990), + 4989: uint16(2839), + 4990: uint16(59119), + 4991: uint16(6007), + 4992: uint16(7003), + 4993: uint16(4289), + 4994: uint16(36248), + 4995: uint16(6162), + 4996: uint16(53174), + 4997: uint16(12545), + 4998: uint16(6770), + 4999: uint16(11355), + 5000: uint16(49334), + 5001: uint16(57888), + 5002: uint16(23747), + 5003: uint16(7042), + 5004: uint16(56032), + 5005: uint16(34254), + 5006: uint16(16598), + 5007: uint16(21673), + 5008: uint16(53259), + 5009: uint16(18447), + 5010: uint16(16452), + 5011: uint16(2320), + 5012: uint16(16596), + 5013: uint16(15278), + 5014: uint16(7780), + 5015: uint16(11076), + 5016: uint16(2071), + 5017: uint16(33414), + 5018: uint16(6198), + 5019: uint16(35232), + 5020: uint16(40167), + 5021: uint16(2139), + 5022: uint16(900), + 5023: uint16(55810), + 5024: uint16(60560), + 5025: uint16(34779), + 5026: uint16(49029), + 5027: uint16(44450), + 5028: uint16(36509), + 5029: uint16(39069), + 5030: uint16(9504), + 5031: uint16(70), + 5032: uint16(40774), + 5033: uint16(58239), + 5034: uint16(51669), + 5035: uint16(62596), + 5036: uint16(19926), + 5037: uint16(58118), + 5038: uint16(6326), + 5039: uint16(2322), + 5041: uint16(1024), + 5043: uint16(32), + 5045: uint16(512), + 5050: uint16(8192), + 5057: uint16(8), + 5058: uint16(36352), + 5059: uint16(28280), + 5060: uint16(16223), + 5061: uint16(56702), + 5062: uint16(63293), + 5063: uint16(39932), + 5064: uint16(44796), + 5065: uint16(65490), + 5066: uint16(27535), + 5067: uint16(59377), + 5068: uint16(47807), + 5069: uint16(28334), + 5070: uint16(61207), + 5071: uint16(42972), + 5072: uint16(46654), + 5073: uint16(30645), + 5074: uint16(37577), + 5075: uint16(42455), + 5076: uint16(19126), + 5077: uint16(39790), + 5078: uint16(33209), + 5079: uint16(26445), + 5080: uint16(21758), + 5081: uint16(39921), + 5082: uint16(65122), + 5083: uint16(21103), + 5084: uint16(14039), + 5085: uint16(49150), + 5086: uint16(17705), + 5087: uint16(63873), + 5088: uint16(26045), + 5089: uint16(17062), + 5090: uint16(57), + 5091: uint16(16896), + 5092: uint16(36704), + 5093: uint16(37888), + 5094: uint16(16448), + 5095: uint16(45010), + 5096: uint16(53719), + 5097: uint16(219), + 5098: uint16(39072), + 5099: uint16(31666), + 5100: uint16(20998), + 5101: uint16(38944), + 5102: uint16(51222), + 5103: uint16(2365), + 5105: uint16(1), + 5107: uint16(2561), + 5108: uint16(2226), + 5109: uint16(128), + 5111: uint16(34820), + 5112: uint16(5152), + 5113: uint16(19472), + 5115: uint16(4), + 5116: uint16(17569), + 5117: uint16(16), + 5118: uint16(321), + 5119: uint16(2048), + 5120: uint16(61504), + 5121: uint16(20447), + 5122: uint16(22582), + 5123: uint16(62961), + 5124: uint16(32949), + 5125: uint16(26613), + 5126: uint16(16512), + 5127: uint16(20480), + 5128: uint16(16718), + 5129: uint16(33992), + 5130: uint16(23040), + 5131: uint16(55392), + 5132: uint16(11009), + 5133: uint16(20481), + 5134: uint16(5793), + 5135: uint16(16580), + 5136: uint16(28402), + 5137: uint16(44049), + 5138: uint16(14624), + 5139: uint16(49348), + 5140: uint16(1800), + 5141: uint16(2316), + 5142: uint16(38552), + 5143: uint16(39876), + 5144: uint16(7184), + 5145: uint16(27800), + 5146: uint16(10886), + 5147: uint16(422), + 5148: uint16(4422), + 5149: uint16(58733), + 5150: uint16(50379), + 5151: uint16(37568), + 5152: uint16(8464), + 5153: uint16(4630), + 5154: uint16(29341), + 5155: uint16(27124), + 5156: uint16(5902), + 5157: uint16(41514), + 5158: uint16(62593), + 5159: uint16(123), + 5160: uint16(41992), + 5161: uint16(36875), + 5162: uint16(11280), + 5163: uint16(14796), + 5164: uint16(330), + 5165: uint16(5872), + 5166: uint16(2571), + 5167: uint16(3136), + 5168: uint16(59933), + 5169: uint16(17420), + 5170: uint16(17678), + 5171: uint16(2), +} + +var _ksc = [93][94]uint16{ + 0: { + 0: uint16(12288), + 1: uint16(12289), + 2: uint16(12290), + 3: uint16(183), + 4: uint16(8229), + 5: uint16(8230), + 6: uint16(168), + 7: uint16(12291), + 8: uint16(173), + 9: uint16(8213), + 10: uint16(8741), + 11: uint16(65340), + 12: uint16(8764), + 13: uint16(8216), + 14: uint16(8217), + 15: uint16(8220), + 16: uint16(8221), + 17: uint16(12308), + 18: uint16(12309), + 19: uint16(12296), + 20: uint16(12297), + 21: uint16(12298), + 22: uint16(12299), + 23: uint16(12300), + 24: uint16(12301), + 25: uint16(12302), + 26: uint16(12303), + 27: uint16(12304), + 28: uint16(12305), + 29: uint16(177), + 30: uint16(215), + 31: uint16(247), + 32: uint16(8800), + 33: uint16(8804), + 34: uint16(8805), + 35: uint16(8734), + 36: uint16(8756), + 37: uint16(176), + 38: uint16(8242), + 39: uint16(8243), + 40: uint16(8451), + 41: uint16(8491), + 42: uint16(65504), + 43: uint16(65505), + 44: uint16(65509), + 45: uint16(9794), + 46: uint16(9792), + 47: uint16(8736), + 48: uint16(8869), + 49: uint16(8978), + 50: uint16(8706), + 51: uint16(8711), + 52: uint16(8801), + 53: uint16(8786), + 54: uint16(167), + 55: uint16(8251), + 56: uint16(9734), + 57: uint16(9733), + 58: uint16(9675), + 59: uint16(9679), + 60: uint16(9678), + 61: uint16(9671), + 62: uint16(9670), + 63: uint16(9633), + 64: uint16(9632), + 65: uint16(9651), + 66: uint16(9650), + 67: uint16(9661), + 68: uint16(9660), + 69: uint16(8594), + 70: uint16(8592), + 71: uint16(8593), + 72: uint16(8595), + 73: uint16(8596), + 74: uint16(12307), + 75: uint16(8810), + 76: uint16(8811), + 77: uint16(8730), + 78: uint16(8765), + 79: uint16(8733), + 80: uint16(8757), + 81: uint16(8747), + 82: uint16(8748), + 83: uint16(8712), + 84: uint16(8715), + 85: uint16(8838), + 86: uint16(8839), + 87: uint16(8834), + 88: uint16(8835), + 89: uint16(8746), + 90: uint16(8745), + 91: uint16(8743), + 92: uint16(8744), + 93: uint16(65506), + }, + 1: { + 0: uint16(8658), + 1: uint16(8660), + 2: uint16(8704), + 3: uint16(8707), + 4: uint16(180), + 5: uint16(65374), + 6: uint16(711), + 7: uint16(728), + 8: uint16(733), + 9: uint16(730), + 10: uint16(729), + 11: uint16(184), + 12: uint16(731), + 13: uint16(161), + 14: uint16(191), + 15: uint16(720), + 16: uint16(8750), + 17: uint16(8721), + 18: uint16(8719), + 19: uint16(164), + 20: uint16(8457), + 21: uint16(8240), + 22: uint16(9665), + 23: uint16(9664), + 24: uint16(9655), + 25: uint16(9654), + 26: uint16(9828), + 27: uint16(9824), + 28: uint16(9825), + 29: uint16(9829), + 30: uint16(9831), + 31: uint16(9827), + 32: uint16(8857), + 33: uint16(9672), + 34: uint16(9635), + 35: uint16(9680), + 36: uint16(9681), + 37: uint16(9618), + 38: uint16(9636), + 39: uint16(9637), + 40: uint16(9640), + 41: uint16(9639), + 42: uint16(9638), + 43: uint16(9641), + 44: uint16(9832), + 45: uint16(9743), + 46: uint16(9742), + 47: uint16(9756), + 48: uint16(9758), + 49: uint16(182), + 50: uint16(8224), + 51: uint16(8225), + 52: uint16(8597), + 53: uint16(8599), + 54: uint16(8601), + 55: uint16(8598), + 56: uint16(8600), + 57: uint16(9837), + 58: uint16(9833), + 59: uint16(9834), + 60: uint16(9836), + 61: uint16(12927), + 62: uint16(12828), + 63: uint16(8470), + 64: uint16(13255), + 65: uint16(8482), + 66: uint16(13250), + 67: uint16(13272), + 68: uint16(8481), + 69: uint16(8364), + 70: uint16(174), + }, + 2: { + 0: uint16(65281), + 1: uint16(65282), + 2: uint16(65283), + 3: uint16(65284), + 4: uint16(65285), + 5: uint16(65286), + 6: uint16(65287), + 7: uint16(65288), + 8: uint16(65289), + 9: uint16(65290), + 10: uint16(65291), + 11: uint16(65292), + 12: uint16(65293), + 13: uint16(65294), + 14: uint16(65295), + 15: uint16(65296), + 16: uint16(65297), + 17: uint16(65298), + 18: uint16(65299), + 19: uint16(65300), + 20: uint16(65301), + 21: uint16(65302), + 22: uint16(65303), + 23: uint16(65304), + 24: uint16(65305), + 25: uint16(65306), + 26: uint16(65307), + 27: uint16(65308), + 28: uint16(65309), + 29: uint16(65310), + 30: uint16(65311), + 31: uint16(65312), + 32: uint16(65313), + 33: uint16(65314), + 34: uint16(65315), + 35: uint16(65316), + 36: uint16(65317), + 37: uint16(65318), + 38: uint16(65319), + 39: uint16(65320), + 40: uint16(65321), + 41: uint16(65322), + 42: uint16(65323), + 43: uint16(65324), + 44: uint16(65325), + 45: uint16(65326), + 46: uint16(65327), + 47: uint16(65328), + 48: uint16(65329), + 49: uint16(65330), + 50: uint16(65331), + 51: uint16(65332), + 52: uint16(65333), + 53: uint16(65334), + 54: uint16(65335), + 55: uint16(65336), + 56: uint16(65337), + 57: uint16(65338), + 58: uint16(65339), + 59: uint16(65510), + 60: uint16(65341), + 61: uint16(65342), + 62: uint16(65343), + 63: uint16(65344), + 64: uint16(65345), + 65: uint16(65346), + 66: uint16(65347), + 67: uint16(65348), + 68: uint16(65349), + 69: uint16(65350), + 70: uint16(65351), + 71: uint16(65352), + 72: uint16(65353), + 73: uint16(65354), + 74: uint16(65355), + 75: uint16(65356), + 76: uint16(65357), + 77: uint16(65358), + 78: uint16(65359), + 79: uint16(65360), + 80: uint16(65361), + 81: uint16(65362), + 82: uint16(65363), + 83: uint16(65364), + 84: uint16(65365), + 85: uint16(65366), + 86: uint16(65367), + 87: uint16(65368), + 88: uint16(65369), + 89: uint16(65370), + 90: uint16(65371), + 91: uint16(65372), + 92: uint16(65373), + 93: uint16(65507), + }, + 3: { + 0: uint16(12593), + 1: uint16(12594), + 2: uint16(12595), + 3: uint16(12596), + 4: uint16(12597), + 5: uint16(12598), + 6: uint16(12599), + 7: uint16(12600), + 8: uint16(12601), + 9: uint16(12602), + 10: uint16(12603), + 11: uint16(12604), + 12: uint16(12605), + 13: uint16(12606), + 14: uint16(12607), + 15: uint16(12608), + 16: uint16(12609), + 17: uint16(12610), + 18: uint16(12611), + 19: uint16(12612), + 20: uint16(12613), + 21: uint16(12614), + 22: uint16(12615), + 23: uint16(12616), + 24: uint16(12617), + 25: uint16(12618), + 26: uint16(12619), + 27: uint16(12620), + 28: uint16(12621), + 29: uint16(12622), + 30: uint16(12623), + 31: uint16(12624), + 32: uint16(12625), + 33: uint16(12626), + 34: uint16(12627), + 35: uint16(12628), + 36: uint16(12629), + 37: uint16(12630), + 38: uint16(12631), + 39: uint16(12632), + 40: uint16(12633), + 41: uint16(12634), + 42: uint16(12635), + 43: uint16(12636), + 44: uint16(12637), + 45: uint16(12638), + 46: uint16(12639), + 47: uint16(12640), + 48: uint16(12641), + 49: uint16(12642), + 50: uint16(12643), + 51: uint16(12644), + 52: uint16(12645), + 53: uint16(12646), + 54: uint16(12647), + 55: uint16(12648), + 56: uint16(12649), + 57: uint16(12650), + 58: uint16(12651), + 59: uint16(12652), + 60: uint16(12653), + 61: uint16(12654), + 62: uint16(12655), + 63: uint16(12656), + 64: uint16(12657), + 65: uint16(12658), + 66: uint16(12659), + 67: uint16(12660), + 68: uint16(12661), + 69: uint16(12662), + 70: uint16(12663), + 71: uint16(12664), + 72: uint16(12665), + 73: uint16(12666), + 74: uint16(12667), + 75: uint16(12668), + 76: uint16(12669), + 77: uint16(12670), + 78: uint16(12671), + 79: uint16(12672), + 80: uint16(12673), + 81: uint16(12674), + 82: uint16(12675), + 83: uint16(12676), + 84: uint16(12677), + 85: uint16(12678), + 86: uint16(12679), + 87: uint16(12680), + 88: uint16(12681), + 89: uint16(12682), + 90: uint16(12683), + 91: uint16(12684), + 92: uint16(12685), + 93: uint16(12686), + }, + 4: { + 0: uint16(8560), + 1: uint16(8561), + 2: uint16(8562), + 3: uint16(8563), + 4: uint16(8564), + 5: uint16(8565), + 6: uint16(8566), + 7: uint16(8567), + 8: uint16(8568), + 9: uint16(8569), + 15: uint16(8544), + 16: uint16(8545), + 17: uint16(8546), + 18: uint16(8547), + 19: uint16(8548), + 20: uint16(8549), + 21: uint16(8550), + 22: uint16(8551), + 23: uint16(8552), + 24: uint16(8553), + 32: uint16(913), + 33: uint16(914), + 34: uint16(915), + 35: uint16(916), + 36: uint16(917), + 37: uint16(918), + 38: uint16(919), + 39: uint16(920), + 40: uint16(921), + 41: uint16(922), + 42: uint16(923), + 43: uint16(924), + 44: uint16(925), + 45: uint16(926), + 46: uint16(927), + 47: uint16(928), + 48: uint16(929), + 49: uint16(931), + 50: uint16(932), + 51: uint16(933), + 52: uint16(934), + 53: uint16(935), + 54: uint16(936), + 55: uint16(937), + 64: uint16(945), + 65: uint16(946), + 66: uint16(947), + 67: uint16(948), + 68: uint16(949), + 69: uint16(950), + 70: uint16(951), + 71: uint16(952), + 72: uint16(953), + 73: uint16(954), + 74: uint16(955), + 75: uint16(956), + 76: uint16(957), + 77: uint16(958), + 78: uint16(959), + 79: uint16(960), + 80: uint16(961), + 81: uint16(963), + 82: uint16(964), + 83: uint16(965), + 84: uint16(966), + 85: uint16(967), + 86: uint16(968), + 87: uint16(969), + }, + 5: { + 0: uint16(9472), + 1: uint16(9474), + 2: uint16(9484), + 3: uint16(9488), + 4: uint16(9496), + 5: uint16(9492), + 6: uint16(9500), + 7: uint16(9516), + 8: uint16(9508), + 9: uint16(9524), + 10: uint16(9532), + 11: uint16(9473), + 12: uint16(9475), + 13: uint16(9487), + 14: uint16(9491), + 15: uint16(9499), + 16: uint16(9495), + 17: uint16(9507), + 18: uint16(9523), + 19: uint16(9515), + 20: uint16(9531), + 21: uint16(9547), + 22: uint16(9504), + 23: uint16(9519), + 24: uint16(9512), + 25: uint16(9527), + 26: uint16(9535), + 27: uint16(9501), + 28: uint16(9520), + 29: uint16(9509), + 30: uint16(9528), + 31: uint16(9538), + 32: uint16(9490), + 33: uint16(9489), + 34: uint16(9498), + 35: uint16(9497), + 36: uint16(9494), + 37: uint16(9493), + 38: uint16(9486), + 39: uint16(9485), + 40: uint16(9502), + 41: uint16(9503), + 42: uint16(9505), + 43: uint16(9506), + 44: uint16(9510), + 45: uint16(9511), + 46: uint16(9513), + 47: uint16(9514), + 48: uint16(9517), + 49: uint16(9518), + 50: uint16(9521), + 51: uint16(9522), + 52: uint16(9525), + 53: uint16(9526), + 54: uint16(9529), + 55: uint16(9530), + 56: uint16(9533), + 57: uint16(9534), + 58: uint16(9536), + 59: uint16(9537), + 60: uint16(9539), + 61: uint16(9540), + 62: uint16(9541), + 63: uint16(9542), + 64: uint16(9543), + 65: uint16(9544), + 66: uint16(9545), + 67: uint16(9546), + }, + 6: { + 0: uint16(13205), + 1: uint16(13206), + 2: uint16(13207), + 3: uint16(8467), + 4: uint16(13208), + 5: uint16(13252), + 6: uint16(13219), + 7: uint16(13220), + 8: uint16(13221), + 9: uint16(13222), + 10: uint16(13209), + 11: uint16(13210), + 12: uint16(13211), + 13: uint16(13212), + 14: uint16(13213), + 15: uint16(13214), + 16: uint16(13215), + 17: uint16(13216), + 18: uint16(13217), + 19: uint16(13218), + 20: uint16(13258), + 21: uint16(13197), + 22: uint16(13198), + 23: uint16(13199), + 24: uint16(13263), + 25: uint16(13192), + 26: uint16(13193), + 27: uint16(13256), + 28: uint16(13223), + 29: uint16(13224), + 30: uint16(13232), + 31: uint16(13233), + 32: uint16(13234), + 33: uint16(13235), + 34: uint16(13236), + 35: uint16(13237), + 36: uint16(13238), + 37: uint16(13239), + 38: uint16(13240), + 39: uint16(13241), + 40: uint16(13184), + 41: uint16(13185), + 42: uint16(13186), + 43: uint16(13187), + 44: uint16(13188), + 45: uint16(13242), + 46: uint16(13243), + 47: uint16(13244), + 48: uint16(13245), + 49: uint16(13246), + 50: uint16(13247), + 51: uint16(13200), + 52: uint16(13201), + 53: uint16(13202), + 54: uint16(13203), + 55: uint16(13204), + 56: uint16(8486), + 57: uint16(13248), + 58: uint16(13249), + 59: uint16(13194), + 60: uint16(13195), + 61: uint16(13196), + 62: uint16(13270), + 63: uint16(13253), + 64: uint16(13229), + 65: uint16(13230), + 66: uint16(13231), + 67: uint16(13275), + 68: uint16(13225), + 69: uint16(13226), + 70: uint16(13227), + 71: uint16(13228), + 72: uint16(13277), + 73: uint16(13264), + 74: uint16(13267), + 75: uint16(13251), + 76: uint16(13257), + 77: uint16(13276), + 78: uint16(13254), + }, + 7: { + 0: uint16(198), + 1: uint16(208), + 2: uint16(170), + 3: uint16(294), + 5: uint16(306), + 7: uint16(319), + 8: uint16(321), + 9: uint16(216), + 10: uint16(338), + 11: uint16(186), + 12: uint16(222), + 13: uint16(358), + 14: uint16(330), + 16: uint16(12896), + 17: uint16(12897), + 18: uint16(12898), + 19: uint16(12899), + 20: uint16(12900), + 21: uint16(12901), + 22: uint16(12902), + 23: uint16(12903), + 24: uint16(12904), + 25: uint16(12905), + 26: uint16(12906), + 27: uint16(12907), + 28: uint16(12908), + 29: uint16(12909), + 30: uint16(12910), + 31: uint16(12911), + 32: uint16(12912), + 33: uint16(12913), + 34: uint16(12914), + 35: uint16(12915), + 36: uint16(12916), + 37: uint16(12917), + 38: uint16(12918), + 39: uint16(12919), + 40: uint16(12920), + 41: uint16(12921), + 42: uint16(12922), + 43: uint16(12923), + 44: uint16(9424), + 45: uint16(9425), + 46: uint16(9426), + 47: uint16(9427), + 48: uint16(9428), + 49: uint16(9429), + 50: uint16(9430), + 51: uint16(9431), + 52: uint16(9432), + 53: uint16(9433), + 54: uint16(9434), + 55: uint16(9435), + 56: uint16(9436), + 57: uint16(9437), + 58: uint16(9438), + 59: uint16(9439), + 60: uint16(9440), + 61: uint16(9441), + 62: uint16(9442), + 63: uint16(9443), + 64: uint16(9444), + 65: uint16(9445), + 66: uint16(9446), + 67: uint16(9447), + 68: uint16(9448), + 69: uint16(9449), + 70: uint16(9312), + 71: uint16(9313), + 72: uint16(9314), + 73: uint16(9315), + 74: uint16(9316), + 75: uint16(9317), + 76: uint16(9318), + 77: uint16(9319), + 78: uint16(9320), + 79: uint16(9321), + 80: uint16(9322), + 81: uint16(9323), + 82: uint16(9324), + 83: uint16(9325), + 84: uint16(9326), + 85: uint16(189), + 86: uint16(8531), + 87: uint16(8532), + 88: uint16(188), + 89: uint16(190), + 90: uint16(8539), + 91: uint16(8540), + 92: uint16(8541), + 93: uint16(8542), + }, + 8: { + 0: uint16(230), + 1: uint16(273), + 2: uint16(240), + 3: uint16(295), + 4: uint16(305), + 5: uint16(307), + 6: uint16(312), + 7: uint16(320), + 8: uint16(322), + 9: uint16(248), + 10: uint16(339), + 11: uint16(223), + 12: uint16(254), + 13: uint16(359), + 14: uint16(331), + 15: uint16(329), + 16: uint16(12800), + 17: uint16(12801), + 18: uint16(12802), + 19: uint16(12803), + 20: uint16(12804), + 21: uint16(12805), + 22: uint16(12806), + 23: uint16(12807), + 24: uint16(12808), + 25: uint16(12809), + 26: uint16(12810), + 27: uint16(12811), + 28: uint16(12812), + 29: uint16(12813), + 30: uint16(12814), + 31: uint16(12815), + 32: uint16(12816), + 33: uint16(12817), + 34: uint16(12818), + 35: uint16(12819), + 36: uint16(12820), + 37: uint16(12821), + 38: uint16(12822), + 39: uint16(12823), + 40: uint16(12824), + 41: uint16(12825), + 42: uint16(12826), + 43: uint16(12827), + 44: uint16(9372), + 45: uint16(9373), + 46: uint16(9374), + 47: uint16(9375), + 48: uint16(9376), + 49: uint16(9377), + 50: uint16(9378), + 51: uint16(9379), + 52: uint16(9380), + 53: uint16(9381), + 54: uint16(9382), + 55: uint16(9383), + 56: uint16(9384), + 57: uint16(9385), + 58: uint16(9386), + 59: uint16(9387), + 60: uint16(9388), + 61: uint16(9389), + 62: uint16(9390), + 63: uint16(9391), + 64: uint16(9392), + 65: uint16(9393), + 66: uint16(9394), + 67: uint16(9395), + 68: uint16(9396), + 69: uint16(9397), + 70: uint16(9332), + 71: uint16(9333), + 72: uint16(9334), + 73: uint16(9335), + 74: uint16(9336), + 75: uint16(9337), + 76: uint16(9338), + 77: uint16(9339), + 78: uint16(9340), + 79: uint16(9341), + 80: uint16(9342), + 81: uint16(9343), + 82: uint16(9344), + 83: uint16(9345), + 84: uint16(9346), + 85: uint16(185), + 86: uint16(178), + 87: uint16(179), + 88: uint16(8308), + 89: uint16(8319), + 90: uint16(8321), + 91: uint16(8322), + 92: uint16(8323), + 93: uint16(8324), + }, + 9: { + 0: uint16(12353), + 1: uint16(12354), + 2: uint16(12355), + 3: uint16(12356), + 4: uint16(12357), + 5: uint16(12358), + 6: uint16(12359), + 7: uint16(12360), + 8: uint16(12361), + 9: uint16(12362), + 10: uint16(12363), + 11: uint16(12364), + 12: uint16(12365), + 13: uint16(12366), + 14: uint16(12367), + 15: uint16(12368), + 16: uint16(12369), + 17: uint16(12370), + 18: uint16(12371), + 19: uint16(12372), + 20: uint16(12373), + 21: uint16(12374), + 22: uint16(12375), + 23: uint16(12376), + 24: uint16(12377), + 25: uint16(12378), + 26: uint16(12379), + 27: uint16(12380), + 28: uint16(12381), + 29: uint16(12382), + 30: uint16(12383), + 31: uint16(12384), + 32: uint16(12385), + 33: uint16(12386), + 34: uint16(12387), + 35: uint16(12388), + 36: uint16(12389), + 37: uint16(12390), + 38: uint16(12391), + 39: uint16(12392), + 40: uint16(12393), + 41: uint16(12394), + 42: uint16(12395), + 43: uint16(12396), + 44: uint16(12397), + 45: uint16(12398), + 46: uint16(12399), + 47: uint16(12400), + 48: uint16(12401), + 49: uint16(12402), + 50: uint16(12403), + 51: uint16(12404), + 52: uint16(12405), + 53: uint16(12406), + 54: uint16(12407), + 55: uint16(12408), + 56: uint16(12409), + 57: uint16(12410), + 58: uint16(12411), + 59: uint16(12412), + 60: uint16(12413), + 61: uint16(12414), + 62: uint16(12415), + 63: uint16(12416), + 64: uint16(12417), + 65: uint16(12418), + 66: uint16(12419), + 67: uint16(12420), + 68: uint16(12421), + 69: uint16(12422), + 70: uint16(12423), + 71: uint16(12424), + 72: uint16(12425), + 73: uint16(12426), + 74: uint16(12427), + 75: uint16(12428), + 76: uint16(12429), + 77: uint16(12430), + 78: uint16(12431), + 79: uint16(12432), + 80: uint16(12433), + 81: uint16(12434), + 82: uint16(12435), + }, + 10: { + 0: uint16(12449), + 1: uint16(12450), + 2: uint16(12451), + 3: uint16(12452), + 4: uint16(12453), + 5: uint16(12454), + 6: uint16(12455), + 7: uint16(12456), + 8: uint16(12457), + 9: uint16(12458), + 10: uint16(12459), + 11: uint16(12460), + 12: uint16(12461), + 13: uint16(12462), + 14: uint16(12463), + 15: uint16(12464), + 16: uint16(12465), + 17: uint16(12466), + 18: uint16(12467), + 19: uint16(12468), + 20: uint16(12469), + 21: uint16(12470), + 22: uint16(12471), + 23: uint16(12472), + 24: uint16(12473), + 25: uint16(12474), + 26: uint16(12475), + 27: uint16(12476), + 28: uint16(12477), + 29: uint16(12478), + 30: uint16(12479), + 31: uint16(12480), + 32: uint16(12481), + 33: uint16(12482), + 34: uint16(12483), + 35: uint16(12484), + 36: uint16(12485), + 37: uint16(12486), + 38: uint16(12487), + 39: uint16(12488), + 40: uint16(12489), + 41: uint16(12490), + 42: uint16(12491), + 43: uint16(12492), + 44: uint16(12493), + 45: uint16(12494), + 46: uint16(12495), + 47: uint16(12496), + 48: uint16(12497), + 49: uint16(12498), + 50: uint16(12499), + 51: uint16(12500), + 52: uint16(12501), + 53: uint16(12502), + 54: uint16(12503), + 55: uint16(12504), + 56: uint16(12505), + 57: uint16(12506), + 58: uint16(12507), + 59: uint16(12508), + 60: uint16(12509), + 61: uint16(12510), + 62: uint16(12511), + 63: uint16(12512), + 64: uint16(12513), + 65: uint16(12514), + 66: uint16(12515), + 67: uint16(12516), + 68: uint16(12517), + 69: uint16(12518), + 70: uint16(12519), + 71: uint16(12520), + 72: uint16(12521), + 73: uint16(12522), + 74: uint16(12523), + 75: uint16(12524), + 76: uint16(12525), + 77: uint16(12526), + 78: uint16(12527), + 79: uint16(12528), + 80: uint16(12529), + 81: uint16(12530), + 82: uint16(12531), + 83: uint16(12532), + 84: uint16(12533), + 85: uint16(12534), + }, + 11: { + 0: uint16(1040), + 1: uint16(1041), + 2: uint16(1042), + 3: uint16(1043), + 4: uint16(1044), + 5: uint16(1045), + 6: uint16(1025), + 7: uint16(1046), + 8: uint16(1047), + 9: uint16(1048), + 10: uint16(1049), + 11: uint16(1050), + 12: uint16(1051), + 13: uint16(1052), + 14: uint16(1053), + 15: uint16(1054), + 16: uint16(1055), + 17: uint16(1056), + 18: uint16(1057), + 19: uint16(1058), + 20: uint16(1059), + 21: uint16(1060), + 22: uint16(1061), + 23: uint16(1062), + 24: uint16(1063), + 25: uint16(1064), + 26: uint16(1065), + 27: uint16(1066), + 28: uint16(1067), + 29: uint16(1068), + 30: uint16(1069), + 31: uint16(1070), + 32: uint16(1071), + 48: uint16(1072), + 49: uint16(1073), + 50: uint16(1074), + 51: uint16(1075), + 52: uint16(1076), + 53: uint16(1077), + 54: uint16(1105), + 55: uint16(1078), + 56: uint16(1079), + 57: uint16(1080), + 58: uint16(1081), + 59: uint16(1082), + 60: uint16(1083), + 61: uint16(1084), + 62: uint16(1085), + 63: uint16(1086), + 64: uint16(1087), + 65: uint16(1088), + 66: uint16(1089), + 67: uint16(1090), + 68: uint16(1091), + 69: uint16(1092), + 70: uint16(1093), + 71: uint16(1094), + 72: uint16(1095), + 73: uint16(1096), + 74: uint16(1097), + 75: uint16(1098), + 76: uint16(1099), + 77: uint16(1100), + 78: uint16(1101), + 79: uint16(1102), + 80: uint16(1103), + }, + 12: {}, + 13: {}, + 14: {}, + 15: { + 0: uint16(44032), + 1: uint16(44033), + 2: uint16(44036), + 3: uint16(44039), + 4: uint16(44040), + 5: uint16(44041), + 6: uint16(44042), + 7: uint16(44048), + 8: uint16(44049), + 9: uint16(44050), + 10: uint16(44051), + 11: uint16(44052), + 12: uint16(44053), + 13: uint16(44054), + 14: uint16(44055), + 15: uint16(44057), + 16: uint16(44058), + 17: uint16(44059), + 18: uint16(44060), + 19: uint16(44061), + 20: uint16(44064), + 21: uint16(44068), + 22: uint16(44076), + 23: uint16(44077), + 24: uint16(44079), + 25: uint16(44080), + 26: uint16(44081), + 27: uint16(44088), + 28: uint16(44089), + 29: uint16(44092), + 30: uint16(44096), + 31: uint16(44107), + 32: uint16(44109), + 33: uint16(44116), + 34: uint16(44120), + 35: uint16(44124), + 36: uint16(44144), + 37: uint16(44145), + 38: uint16(44148), + 39: uint16(44151), + 40: uint16(44152), + 41: uint16(44154), + 42: uint16(44160), + 43: uint16(44161), + 44: uint16(44163), + 45: uint16(44164), + 46: uint16(44165), + 47: uint16(44166), + 48: uint16(44169), + 49: uint16(44170), + 50: uint16(44171), + 51: uint16(44172), + 52: uint16(44176), + 53: uint16(44180), + 54: uint16(44188), + 55: uint16(44189), + 56: uint16(44191), + 57: uint16(44192), + 58: uint16(44193), + 59: uint16(44200), + 60: uint16(44201), + 61: uint16(44202), + 62: uint16(44204), + 63: uint16(44207), + 64: uint16(44208), + 65: uint16(44216), + 66: uint16(44217), + 67: uint16(44219), + 68: uint16(44220), + 69: uint16(44221), + 70: uint16(44225), + 71: uint16(44228), + 72: uint16(44232), + 73: uint16(44236), + 74: uint16(44245), + 75: uint16(44247), + 76: uint16(44256), + 77: uint16(44257), + 78: uint16(44260), + 79: uint16(44263), + 80: uint16(44264), + 81: uint16(44266), + 82: uint16(44268), + 83: uint16(44271), + 84: uint16(44272), + 85: uint16(44273), + 86: uint16(44275), + 87: uint16(44277), + 88: uint16(44278), + 89: uint16(44284), + 90: uint16(44285), + 91: uint16(44288), + 92: uint16(44292), + 93: uint16(44294), + }, + 16: { + 0: uint16(44300), + 1: uint16(44301), + 2: uint16(44303), + 3: uint16(44305), + 4: uint16(44312), + 5: uint16(44316), + 6: uint16(44320), + 7: uint16(44329), + 8: uint16(44332), + 9: uint16(44333), + 10: uint16(44340), + 11: uint16(44341), + 12: uint16(44344), + 13: uint16(44348), + 14: uint16(44356), + 15: uint16(44357), + 16: uint16(44359), + 17: uint16(44361), + 18: uint16(44368), + 19: uint16(44372), + 20: uint16(44376), + 21: uint16(44385), + 22: uint16(44387), + 23: uint16(44396), + 24: uint16(44397), + 25: uint16(44400), + 26: uint16(44403), + 27: uint16(44404), + 28: uint16(44405), + 29: uint16(44406), + 30: uint16(44411), + 31: uint16(44412), + 32: uint16(44413), + 33: uint16(44415), + 34: uint16(44417), + 35: uint16(44418), + 36: uint16(44424), + 37: uint16(44425), + 38: uint16(44428), + 39: uint16(44432), + 40: uint16(44444), + 41: uint16(44445), + 42: uint16(44452), + 43: uint16(44471), + 44: uint16(44480), + 45: uint16(44481), + 46: uint16(44484), + 47: uint16(44488), + 48: uint16(44496), + 49: uint16(44497), + 50: uint16(44499), + 51: uint16(44508), + 52: uint16(44512), + 53: uint16(44516), + 54: uint16(44536), + 55: uint16(44537), + 56: uint16(44540), + 57: uint16(44543), + 58: uint16(44544), + 59: uint16(44545), + 60: uint16(44552), + 61: uint16(44553), + 62: uint16(44555), + 63: uint16(44557), + 64: uint16(44564), + 65: uint16(44592), + 66: uint16(44593), + 67: uint16(44596), + 68: uint16(44599), + 69: uint16(44600), + 70: uint16(44602), + 71: uint16(44608), + 72: uint16(44609), + 73: uint16(44611), + 74: uint16(44613), + 75: uint16(44614), + 76: uint16(44618), + 77: uint16(44620), + 78: uint16(44621), + 79: uint16(44622), + 80: uint16(44624), + 81: uint16(44628), + 82: uint16(44630), + 83: uint16(44636), + 84: uint16(44637), + 85: uint16(44639), + 86: uint16(44640), + 87: uint16(44641), + 88: uint16(44645), + 89: uint16(44648), + 90: uint16(44649), + 91: uint16(44652), + 92: uint16(44656), + 93: uint16(44664), + }, + 17: { + 0: uint16(44665), + 1: uint16(44667), + 2: uint16(44668), + 3: uint16(44669), + 4: uint16(44676), + 5: uint16(44677), + 6: uint16(44684), + 7: uint16(44732), + 8: uint16(44733), + 9: uint16(44734), + 10: uint16(44736), + 11: uint16(44740), + 12: uint16(44748), + 13: uint16(44749), + 14: uint16(44751), + 15: uint16(44752), + 16: uint16(44753), + 17: uint16(44760), + 18: uint16(44761), + 19: uint16(44764), + 20: uint16(44776), + 21: uint16(44779), + 22: uint16(44781), + 23: uint16(44788), + 24: uint16(44792), + 25: uint16(44796), + 26: uint16(44807), + 27: uint16(44808), + 28: uint16(44813), + 29: uint16(44816), + 30: uint16(44844), + 31: uint16(44845), + 32: uint16(44848), + 33: uint16(44850), + 34: uint16(44852), + 35: uint16(44860), + 36: uint16(44861), + 37: uint16(44863), + 38: uint16(44865), + 39: uint16(44866), + 40: uint16(44867), + 41: uint16(44872), + 42: uint16(44873), + 43: uint16(44880), + 44: uint16(44892), + 45: uint16(44893), + 46: uint16(44900), + 47: uint16(44901), + 48: uint16(44921), + 49: uint16(44928), + 50: uint16(44932), + 51: uint16(44936), + 52: uint16(44944), + 53: uint16(44945), + 54: uint16(44949), + 55: uint16(44956), + 56: uint16(44984), + 57: uint16(44985), + 58: uint16(44988), + 59: uint16(44992), + 60: uint16(44999), + 61: uint16(45000), + 62: uint16(45001), + 63: uint16(45003), + 64: uint16(45005), + 65: uint16(45006), + 66: uint16(45012), + 67: uint16(45020), + 68: uint16(45032), + 69: uint16(45033), + 70: uint16(45040), + 71: uint16(45041), + 72: uint16(45044), + 73: uint16(45048), + 74: uint16(45056), + 75: uint16(45057), + 76: uint16(45060), + 77: uint16(45068), + 78: uint16(45072), + 79: uint16(45076), + 80: uint16(45084), + 81: uint16(45085), + 82: uint16(45096), + 83: uint16(45124), + 84: uint16(45125), + 85: uint16(45128), + 86: uint16(45130), + 87: uint16(45132), + 88: uint16(45134), + 89: uint16(45139), + 90: uint16(45140), + 91: uint16(45141), + 92: uint16(45143), + 93: uint16(45145), + }, + 18: { + 0: uint16(45149), + 1: uint16(45180), + 2: uint16(45181), + 3: uint16(45184), + 4: uint16(45188), + 5: uint16(45196), + 6: uint16(45197), + 7: uint16(45199), + 8: uint16(45201), + 9: uint16(45208), + 10: uint16(45209), + 11: uint16(45210), + 12: uint16(45212), + 13: uint16(45215), + 14: uint16(45216), + 15: uint16(45217), + 16: uint16(45218), + 17: uint16(45224), + 18: uint16(45225), + 19: uint16(45227), + 20: uint16(45228), + 21: uint16(45229), + 22: uint16(45230), + 23: uint16(45231), + 24: uint16(45233), + 25: uint16(45235), + 26: uint16(45236), + 27: uint16(45237), + 28: uint16(45240), + 29: uint16(45244), + 30: uint16(45252), + 31: uint16(45253), + 32: uint16(45255), + 33: uint16(45256), + 34: uint16(45257), + 35: uint16(45264), + 36: uint16(45265), + 37: uint16(45268), + 38: uint16(45272), + 39: uint16(45280), + 40: uint16(45285), + 41: uint16(45320), + 42: uint16(45321), + 43: uint16(45323), + 44: uint16(45324), + 45: uint16(45328), + 46: uint16(45330), + 47: uint16(45331), + 48: uint16(45336), + 49: uint16(45337), + 50: uint16(45339), + 51: uint16(45340), + 52: uint16(45341), + 53: uint16(45347), + 54: uint16(45348), + 55: uint16(45349), + 56: uint16(45352), + 57: uint16(45356), + 58: uint16(45364), + 59: uint16(45365), + 60: uint16(45367), + 61: uint16(45368), + 62: uint16(45369), + 63: uint16(45376), + 64: uint16(45377), + 65: uint16(45380), + 66: uint16(45384), + 67: uint16(45392), + 68: uint16(45393), + 69: uint16(45396), + 70: uint16(45397), + 71: uint16(45400), + 72: uint16(45404), + 73: uint16(45408), + 74: uint16(45432), + 75: uint16(45433), + 76: uint16(45436), + 77: uint16(45440), + 78: uint16(45442), + 79: uint16(45448), + 80: uint16(45449), + 81: uint16(45451), + 82: uint16(45453), + 83: uint16(45458), + 84: uint16(45459), + 85: uint16(45460), + 86: uint16(45464), + 87: uint16(45468), + 88: uint16(45480), + 89: uint16(45516), + 90: uint16(45520), + 91: uint16(45524), + 92: uint16(45532), + 93: uint16(45533), + }, + 19: { + 0: uint16(45535), + 1: uint16(45544), + 2: uint16(45545), + 3: uint16(45548), + 4: uint16(45552), + 5: uint16(45561), + 6: uint16(45563), + 7: uint16(45565), + 8: uint16(45572), + 9: uint16(45573), + 10: uint16(45576), + 11: uint16(45579), + 12: uint16(45580), + 13: uint16(45588), + 14: uint16(45589), + 15: uint16(45591), + 16: uint16(45593), + 17: uint16(45600), + 18: uint16(45620), + 19: uint16(45628), + 20: uint16(45656), + 21: uint16(45660), + 22: uint16(45664), + 23: uint16(45672), + 24: uint16(45673), + 25: uint16(45684), + 26: uint16(45685), + 27: uint16(45692), + 28: uint16(45700), + 29: uint16(45701), + 30: uint16(45705), + 31: uint16(45712), + 32: uint16(45713), + 33: uint16(45716), + 34: uint16(45720), + 35: uint16(45721), + 36: uint16(45722), + 37: uint16(45728), + 38: uint16(45729), + 39: uint16(45731), + 40: uint16(45733), + 41: uint16(45734), + 42: uint16(45738), + 43: uint16(45740), + 44: uint16(45744), + 45: uint16(45748), + 46: uint16(45768), + 47: uint16(45769), + 48: uint16(45772), + 49: uint16(45776), + 50: uint16(45778), + 51: uint16(45784), + 52: uint16(45785), + 53: uint16(45787), + 54: uint16(45789), + 55: uint16(45794), + 56: uint16(45796), + 57: uint16(45797), + 58: uint16(45798), + 59: uint16(45800), + 60: uint16(45803), + 61: uint16(45804), + 62: uint16(45805), + 63: uint16(45806), + 64: uint16(45807), + 65: uint16(45811), + 66: uint16(45812), + 67: uint16(45813), + 68: uint16(45815), + 69: uint16(45816), + 70: uint16(45817), + 71: uint16(45818), + 72: uint16(45819), + 73: uint16(45823), + 74: uint16(45824), + 75: uint16(45825), + 76: uint16(45828), + 77: uint16(45832), + 78: uint16(45840), + 79: uint16(45841), + 80: uint16(45843), + 81: uint16(45844), + 82: uint16(45845), + 83: uint16(45852), + 84: uint16(45908), + 85: uint16(45909), + 86: uint16(45910), + 87: uint16(45912), + 88: uint16(45915), + 89: uint16(45916), + 90: uint16(45918), + 91: uint16(45919), + 92: uint16(45924), + 93: uint16(45925), + }, + 20: { + 0: uint16(45927), + 1: uint16(45929), + 2: uint16(45931), + 3: uint16(45934), + 4: uint16(45936), + 5: uint16(45937), + 6: uint16(45940), + 7: uint16(45944), + 8: uint16(45952), + 9: uint16(45953), + 10: uint16(45955), + 11: uint16(45956), + 12: uint16(45957), + 13: uint16(45964), + 14: uint16(45968), + 15: uint16(45972), + 16: uint16(45984), + 17: uint16(45985), + 18: uint16(45992), + 19: uint16(45996), + 20: uint16(46020), + 21: uint16(46021), + 22: uint16(46024), + 23: uint16(46027), + 24: uint16(46028), + 25: uint16(46030), + 26: uint16(46032), + 27: uint16(46036), + 28: uint16(46037), + 29: uint16(46039), + 30: uint16(46041), + 31: uint16(46043), + 32: uint16(46045), + 33: uint16(46048), + 34: uint16(46052), + 35: uint16(46056), + 36: uint16(46076), + 37: uint16(46096), + 38: uint16(46104), + 39: uint16(46108), + 40: uint16(46112), + 41: uint16(46120), + 42: uint16(46121), + 43: uint16(46123), + 44: uint16(46132), + 45: uint16(46160), + 46: uint16(46161), + 47: uint16(46164), + 48: uint16(46168), + 49: uint16(46176), + 50: uint16(46177), + 51: uint16(46179), + 52: uint16(46181), + 53: uint16(46188), + 54: uint16(46208), + 55: uint16(46216), + 56: uint16(46237), + 57: uint16(46244), + 58: uint16(46248), + 59: uint16(46252), + 60: uint16(46261), + 61: uint16(46263), + 62: uint16(46265), + 63: uint16(46272), + 64: uint16(46276), + 65: uint16(46280), + 66: uint16(46288), + 67: uint16(46293), + 68: uint16(46300), + 69: uint16(46301), + 70: uint16(46304), + 71: uint16(46307), + 72: uint16(46308), + 73: uint16(46310), + 74: uint16(46316), + 75: uint16(46317), + 76: uint16(46319), + 77: uint16(46321), + 78: uint16(46328), + 79: uint16(46356), + 80: uint16(46357), + 81: uint16(46360), + 82: uint16(46363), + 83: uint16(46364), + 84: uint16(46372), + 85: uint16(46373), + 86: uint16(46375), + 87: uint16(46376), + 88: uint16(46377), + 89: uint16(46378), + 90: uint16(46384), + 91: uint16(46385), + 92: uint16(46388), + 93: uint16(46392), + }, + 21: { + 0: uint16(46400), + 1: uint16(46401), + 2: uint16(46403), + 3: uint16(46404), + 4: uint16(46405), + 5: uint16(46411), + 6: uint16(46412), + 7: uint16(46413), + 8: uint16(46416), + 9: uint16(46420), + 10: uint16(46428), + 11: uint16(46429), + 12: uint16(46431), + 13: uint16(46432), + 14: uint16(46433), + 15: uint16(46496), + 16: uint16(46497), + 17: uint16(46500), + 18: uint16(46504), + 19: uint16(46506), + 20: uint16(46507), + 21: uint16(46512), + 22: uint16(46513), + 23: uint16(46515), + 24: uint16(46516), + 25: uint16(46517), + 26: uint16(46523), + 27: uint16(46524), + 28: uint16(46525), + 29: uint16(46528), + 30: uint16(46532), + 31: uint16(46540), + 32: uint16(46541), + 33: uint16(46543), + 34: uint16(46544), + 35: uint16(46545), + 36: uint16(46552), + 37: uint16(46572), + 38: uint16(46608), + 39: uint16(46609), + 40: uint16(46612), + 41: uint16(46616), + 42: uint16(46629), + 43: uint16(46636), + 44: uint16(46644), + 45: uint16(46664), + 46: uint16(46692), + 47: uint16(46696), + 48: uint16(46748), + 49: uint16(46749), + 50: uint16(46752), + 51: uint16(46756), + 52: uint16(46763), + 53: uint16(46764), + 54: uint16(46769), + 55: uint16(46804), + 56: uint16(46832), + 57: uint16(46836), + 58: uint16(46840), + 59: uint16(46848), + 60: uint16(46849), + 61: uint16(46853), + 62: uint16(46888), + 63: uint16(46889), + 64: uint16(46892), + 65: uint16(46895), + 66: uint16(46896), + 67: uint16(46904), + 68: uint16(46905), + 69: uint16(46907), + 70: uint16(46916), + 71: uint16(46920), + 72: uint16(46924), + 73: uint16(46932), + 74: uint16(46933), + 75: uint16(46944), + 76: uint16(46948), + 77: uint16(46952), + 78: uint16(46960), + 79: uint16(46961), + 80: uint16(46963), + 81: uint16(46965), + 82: uint16(46972), + 83: uint16(46973), + 84: uint16(46976), + 85: uint16(46980), + 86: uint16(46988), + 87: uint16(46989), + 88: uint16(46991), + 89: uint16(46992), + 90: uint16(46993), + 91: uint16(46994), + 92: uint16(46998), + 93: uint16(46999), + }, + 22: { + 0: uint16(47000), + 1: uint16(47001), + 2: uint16(47004), + 3: uint16(47008), + 4: uint16(47016), + 5: uint16(47017), + 6: uint16(47019), + 7: uint16(47020), + 8: uint16(47021), + 9: uint16(47028), + 10: uint16(47029), + 11: uint16(47032), + 12: uint16(47047), + 13: uint16(47049), + 14: uint16(47084), + 15: uint16(47085), + 16: uint16(47088), + 17: uint16(47092), + 18: uint16(47100), + 19: uint16(47101), + 20: uint16(47103), + 21: uint16(47104), + 22: uint16(47105), + 23: uint16(47111), + 24: uint16(47112), + 25: uint16(47113), + 26: uint16(47116), + 27: uint16(47120), + 28: uint16(47128), + 29: uint16(47129), + 30: uint16(47131), + 31: uint16(47133), + 32: uint16(47140), + 33: uint16(47141), + 34: uint16(47144), + 35: uint16(47148), + 36: uint16(47156), + 37: uint16(47157), + 38: uint16(47159), + 39: uint16(47160), + 40: uint16(47161), + 41: uint16(47168), + 42: uint16(47172), + 43: uint16(47185), + 44: uint16(47187), + 45: uint16(47196), + 46: uint16(47197), + 47: uint16(47200), + 48: uint16(47204), + 49: uint16(47212), + 50: uint16(47213), + 51: uint16(47215), + 52: uint16(47217), + 53: uint16(47224), + 54: uint16(47228), + 55: uint16(47245), + 56: uint16(47272), + 57: uint16(47280), + 58: uint16(47284), + 59: uint16(47288), + 60: uint16(47296), + 61: uint16(47297), + 62: uint16(47299), + 63: uint16(47301), + 64: uint16(47308), + 65: uint16(47312), + 66: uint16(47316), + 67: uint16(47325), + 68: uint16(47327), + 69: uint16(47329), + 70: uint16(47336), + 71: uint16(47337), + 72: uint16(47340), + 73: uint16(47344), + 74: uint16(47352), + 75: uint16(47353), + 76: uint16(47355), + 77: uint16(47357), + 78: uint16(47364), + 79: uint16(47384), + 80: uint16(47392), + 81: uint16(47420), + 82: uint16(47421), + 83: uint16(47424), + 84: uint16(47428), + 85: uint16(47436), + 86: uint16(47439), + 87: uint16(47441), + 88: uint16(47448), + 89: uint16(47449), + 90: uint16(47452), + 91: uint16(47456), + 92: uint16(47464), + 93: uint16(47465), + }, + 23: { + 0: uint16(47467), + 1: uint16(47469), + 2: uint16(47476), + 3: uint16(47477), + 4: uint16(47480), + 5: uint16(47484), + 6: uint16(47492), + 7: uint16(47493), + 8: uint16(47495), + 9: uint16(47497), + 10: uint16(47498), + 11: uint16(47501), + 12: uint16(47502), + 13: uint16(47532), + 14: uint16(47533), + 15: uint16(47536), + 16: uint16(47540), + 17: uint16(47548), + 18: uint16(47549), + 19: uint16(47551), + 20: uint16(47553), + 21: uint16(47560), + 22: uint16(47561), + 23: uint16(47564), + 24: uint16(47566), + 25: uint16(47567), + 26: uint16(47568), + 27: uint16(47569), + 28: uint16(47570), + 29: uint16(47576), + 30: uint16(47577), + 31: uint16(47579), + 32: uint16(47581), + 33: uint16(47582), + 34: uint16(47585), + 35: uint16(47587), + 36: uint16(47588), + 37: uint16(47589), + 38: uint16(47592), + 39: uint16(47596), + 40: uint16(47604), + 41: uint16(47605), + 42: uint16(47607), + 43: uint16(47608), + 44: uint16(47609), + 45: uint16(47610), + 46: uint16(47616), + 47: uint16(47617), + 48: uint16(47624), + 49: uint16(47637), + 50: uint16(47672), + 51: uint16(47673), + 52: uint16(47676), + 53: uint16(47680), + 54: uint16(47682), + 55: uint16(47688), + 56: uint16(47689), + 57: uint16(47691), + 58: uint16(47693), + 59: uint16(47694), + 60: uint16(47699), + 61: uint16(47700), + 62: uint16(47701), + 63: uint16(47704), + 64: uint16(47708), + 65: uint16(47716), + 66: uint16(47717), + 67: uint16(47719), + 68: uint16(47720), + 69: uint16(47721), + 70: uint16(47728), + 71: uint16(47729), + 72: uint16(47732), + 73: uint16(47736), + 74: uint16(47747), + 75: uint16(47748), + 76: uint16(47749), + 77: uint16(47751), + 78: uint16(47756), + 79: uint16(47784), + 80: uint16(47785), + 81: uint16(47787), + 82: uint16(47788), + 83: uint16(47792), + 84: uint16(47794), + 85: uint16(47800), + 86: uint16(47801), + 87: uint16(47803), + 88: uint16(47805), + 89: uint16(47812), + 90: uint16(47816), + 91: uint16(47832), + 92: uint16(47833), + 93: uint16(47868), + }, + 24: { + 0: uint16(47872), + 1: uint16(47876), + 2: uint16(47885), + 3: uint16(47887), + 4: uint16(47889), + 5: uint16(47896), + 6: uint16(47900), + 7: uint16(47904), + 8: uint16(47913), + 9: uint16(47915), + 10: uint16(47924), + 11: uint16(47925), + 12: uint16(47926), + 13: uint16(47928), + 14: uint16(47931), + 15: uint16(47932), + 16: uint16(47933), + 17: uint16(47934), + 18: uint16(47940), + 19: uint16(47941), + 20: uint16(47943), + 21: uint16(47945), + 22: uint16(47949), + 23: uint16(47951), + 24: uint16(47952), + 25: uint16(47956), + 26: uint16(47960), + 27: uint16(47969), + 28: uint16(47971), + 29: uint16(47980), + 30: uint16(48008), + 31: uint16(48012), + 32: uint16(48016), + 33: uint16(48036), + 34: uint16(48040), + 35: uint16(48044), + 36: uint16(48052), + 37: uint16(48055), + 38: uint16(48064), + 39: uint16(48068), + 40: uint16(48072), + 41: uint16(48080), + 42: uint16(48083), + 43: uint16(48120), + 44: uint16(48121), + 45: uint16(48124), + 46: uint16(48127), + 47: uint16(48128), + 48: uint16(48130), + 49: uint16(48136), + 50: uint16(48137), + 51: uint16(48139), + 52: uint16(48140), + 53: uint16(48141), + 54: uint16(48143), + 55: uint16(48145), + 56: uint16(48148), + 57: uint16(48149), + 58: uint16(48150), + 59: uint16(48151), + 60: uint16(48152), + 61: uint16(48155), + 62: uint16(48156), + 63: uint16(48157), + 64: uint16(48158), + 65: uint16(48159), + 66: uint16(48164), + 67: uint16(48165), + 68: uint16(48167), + 69: uint16(48169), + 70: uint16(48173), + 71: uint16(48176), + 72: uint16(48177), + 73: uint16(48180), + 74: uint16(48184), + 75: uint16(48192), + 76: uint16(48193), + 77: uint16(48195), + 78: uint16(48196), + 79: uint16(48197), + 80: uint16(48201), + 81: uint16(48204), + 82: uint16(48205), + 83: uint16(48208), + 84: uint16(48221), + 85: uint16(48260), + 86: uint16(48261), + 87: uint16(48264), + 88: uint16(48267), + 89: uint16(48268), + 90: uint16(48270), + 91: uint16(48276), + 92: uint16(48277), + 93: uint16(48279), + }, + 25: { + 0: uint16(48281), + 1: uint16(48282), + 2: uint16(48288), + 3: uint16(48289), + 4: uint16(48292), + 5: uint16(48295), + 6: uint16(48296), + 7: uint16(48304), + 8: uint16(48305), + 9: uint16(48307), + 10: uint16(48308), + 11: uint16(48309), + 12: uint16(48316), + 13: uint16(48317), + 14: uint16(48320), + 15: uint16(48324), + 16: uint16(48333), + 17: uint16(48335), + 18: uint16(48336), + 19: uint16(48337), + 20: uint16(48341), + 21: uint16(48344), + 22: uint16(48348), + 23: uint16(48372), + 24: uint16(48373), + 25: uint16(48374), + 26: uint16(48376), + 27: uint16(48380), + 28: uint16(48388), + 29: uint16(48389), + 30: uint16(48391), + 31: uint16(48393), + 32: uint16(48400), + 33: uint16(48404), + 34: uint16(48420), + 35: uint16(48428), + 36: uint16(48448), + 37: uint16(48456), + 38: uint16(48457), + 39: uint16(48460), + 40: uint16(48464), + 41: uint16(48472), + 42: uint16(48473), + 43: uint16(48484), + 44: uint16(48488), + 45: uint16(48512), + 46: uint16(48513), + 47: uint16(48516), + 48: uint16(48519), + 49: uint16(48520), + 50: uint16(48521), + 51: uint16(48522), + 52: uint16(48528), + 53: uint16(48529), + 54: uint16(48531), + 55: uint16(48533), + 56: uint16(48537), + 57: uint16(48538), + 58: uint16(48540), + 59: uint16(48548), + 60: uint16(48560), + 61: uint16(48568), + 62: uint16(48596), + 63: uint16(48597), + 64: uint16(48600), + 65: uint16(48604), + 66: uint16(48617), + 67: uint16(48624), + 68: uint16(48628), + 69: uint16(48632), + 70: uint16(48640), + 71: uint16(48643), + 72: uint16(48645), + 73: uint16(48652), + 74: uint16(48653), + 75: uint16(48656), + 76: uint16(48660), + 77: uint16(48668), + 78: uint16(48669), + 79: uint16(48671), + 80: uint16(48708), + 81: uint16(48709), + 82: uint16(48712), + 83: uint16(48716), + 84: uint16(48718), + 85: uint16(48724), + 86: uint16(48725), + 87: uint16(48727), + 88: uint16(48729), + 89: uint16(48730), + 90: uint16(48731), + 91: uint16(48736), + 92: uint16(48737), + 93: uint16(48740), + }, + 26: { + 0: uint16(48744), + 1: uint16(48746), + 2: uint16(48752), + 3: uint16(48753), + 4: uint16(48755), + 5: uint16(48756), + 6: uint16(48757), + 7: uint16(48763), + 8: uint16(48764), + 9: uint16(48765), + 10: uint16(48768), + 11: uint16(48772), + 12: uint16(48780), + 13: uint16(48781), + 14: uint16(48783), + 15: uint16(48784), + 16: uint16(48785), + 17: uint16(48792), + 18: uint16(48793), + 19: uint16(48808), + 20: uint16(48848), + 21: uint16(48849), + 22: uint16(48852), + 23: uint16(48855), + 24: uint16(48856), + 25: uint16(48864), + 26: uint16(48867), + 27: uint16(48868), + 28: uint16(48869), + 29: uint16(48876), + 30: uint16(48897), + 31: uint16(48904), + 32: uint16(48905), + 33: uint16(48920), + 34: uint16(48921), + 35: uint16(48923), + 36: uint16(48924), + 37: uint16(48925), + 38: uint16(48960), + 39: uint16(48961), + 40: uint16(48964), + 41: uint16(48968), + 42: uint16(48976), + 43: uint16(48977), + 44: uint16(48981), + 45: uint16(49044), + 46: uint16(49072), + 47: uint16(49093), + 48: uint16(49100), + 49: uint16(49101), + 50: uint16(49104), + 51: uint16(49108), + 52: uint16(49116), + 53: uint16(49119), + 54: uint16(49121), + 55: uint16(49212), + 56: uint16(49233), + 57: uint16(49240), + 58: uint16(49244), + 59: uint16(49248), + 60: uint16(49256), + 61: uint16(49257), + 62: uint16(49296), + 63: uint16(49297), + 64: uint16(49300), + 65: uint16(49304), + 66: uint16(49312), + 67: uint16(49313), + 68: uint16(49315), + 69: uint16(49317), + 70: uint16(49324), + 71: uint16(49325), + 72: uint16(49327), + 73: uint16(49328), + 74: uint16(49331), + 75: uint16(49332), + 76: uint16(49333), + 77: uint16(49334), + 78: uint16(49340), + 79: uint16(49341), + 80: uint16(49343), + 81: uint16(49344), + 82: uint16(49345), + 83: uint16(49349), + 84: uint16(49352), + 85: uint16(49353), + 86: uint16(49356), + 87: uint16(49360), + 88: uint16(49368), + 89: uint16(49369), + 90: uint16(49371), + 91: uint16(49372), + 92: uint16(49373), + 93: uint16(49380), + }, + 27: { + 0: uint16(49381), + 1: uint16(49384), + 2: uint16(49388), + 3: uint16(49396), + 4: uint16(49397), + 5: uint16(49399), + 6: uint16(49401), + 7: uint16(49408), + 8: uint16(49412), + 9: uint16(49416), + 10: uint16(49424), + 11: uint16(49429), + 12: uint16(49436), + 13: uint16(49437), + 14: uint16(49438), + 15: uint16(49439), + 16: uint16(49440), + 17: uint16(49443), + 18: uint16(49444), + 19: uint16(49446), + 20: uint16(49447), + 21: uint16(49452), + 22: uint16(49453), + 23: uint16(49455), + 24: uint16(49456), + 25: uint16(49457), + 26: uint16(49462), + 27: uint16(49464), + 28: uint16(49465), + 29: uint16(49468), + 30: uint16(49472), + 31: uint16(49480), + 32: uint16(49481), + 33: uint16(49483), + 34: uint16(49484), + 35: uint16(49485), + 36: uint16(49492), + 37: uint16(49493), + 38: uint16(49496), + 39: uint16(49500), + 40: uint16(49508), + 41: uint16(49509), + 42: uint16(49511), + 43: uint16(49512), + 44: uint16(49513), + 45: uint16(49520), + 46: uint16(49524), + 47: uint16(49528), + 48: uint16(49541), + 49: uint16(49548), + 50: uint16(49549), + 51: uint16(49550), + 52: uint16(49552), + 53: uint16(49556), + 54: uint16(49558), + 55: uint16(49564), + 56: uint16(49565), + 57: uint16(49567), + 58: uint16(49569), + 59: uint16(49573), + 60: uint16(49576), + 61: uint16(49577), + 62: uint16(49580), + 63: uint16(49584), + 64: uint16(49597), + 65: uint16(49604), + 66: uint16(49608), + 67: uint16(49612), + 68: uint16(49620), + 69: uint16(49623), + 70: uint16(49624), + 71: uint16(49632), + 72: uint16(49636), + 73: uint16(49640), + 74: uint16(49648), + 75: uint16(49649), + 76: uint16(49651), + 77: uint16(49660), + 78: uint16(49661), + 79: uint16(49664), + 80: uint16(49668), + 81: uint16(49676), + 82: uint16(49677), + 83: uint16(49679), + 84: uint16(49681), + 85: uint16(49688), + 86: uint16(49689), + 87: uint16(49692), + 88: uint16(49695), + 89: uint16(49696), + 90: uint16(49704), + 91: uint16(49705), + 92: uint16(49707), + 93: uint16(49709), + }, + 28: { + 0: uint16(49711), + 1: uint16(49713), + 2: uint16(49714), + 3: uint16(49716), + 4: uint16(49736), + 5: uint16(49744), + 6: uint16(49745), + 7: uint16(49748), + 8: uint16(49752), + 9: uint16(49760), + 10: uint16(49765), + 11: uint16(49772), + 12: uint16(49773), + 13: uint16(49776), + 14: uint16(49780), + 15: uint16(49788), + 16: uint16(49789), + 17: uint16(49791), + 18: uint16(49793), + 19: uint16(49800), + 20: uint16(49801), + 21: uint16(49808), + 22: uint16(49816), + 23: uint16(49819), + 24: uint16(49821), + 25: uint16(49828), + 26: uint16(49829), + 27: uint16(49832), + 28: uint16(49836), + 29: uint16(49837), + 30: uint16(49844), + 31: uint16(49845), + 32: uint16(49847), + 33: uint16(49849), + 34: uint16(49884), + 35: uint16(49885), + 36: uint16(49888), + 37: uint16(49891), + 38: uint16(49892), + 39: uint16(49899), + 40: uint16(49900), + 41: uint16(49901), + 42: uint16(49903), + 43: uint16(49905), + 44: uint16(49910), + 45: uint16(49912), + 46: uint16(49913), + 47: uint16(49915), + 48: uint16(49916), + 49: uint16(49920), + 50: uint16(49928), + 51: uint16(49929), + 52: uint16(49932), + 53: uint16(49933), + 54: uint16(49939), + 55: uint16(49940), + 56: uint16(49941), + 57: uint16(49944), + 58: uint16(49948), + 59: uint16(49956), + 60: uint16(49957), + 61: uint16(49960), + 62: uint16(49961), + 63: uint16(49989), + 64: uint16(50024), + 65: uint16(50025), + 66: uint16(50028), + 67: uint16(50032), + 68: uint16(50034), + 69: uint16(50040), + 70: uint16(50041), + 71: uint16(50044), + 72: uint16(50045), + 73: uint16(50052), + 74: uint16(50056), + 75: uint16(50060), + 76: uint16(50112), + 77: uint16(50136), + 78: uint16(50137), + 79: uint16(50140), + 80: uint16(50143), + 81: uint16(50144), + 82: uint16(50146), + 83: uint16(50152), + 84: uint16(50153), + 85: uint16(50157), + 86: uint16(50164), + 87: uint16(50165), + 88: uint16(50168), + 89: uint16(50184), + 90: uint16(50192), + 91: uint16(50212), + 92: uint16(50220), + 93: uint16(50224), + }, + 29: { + 0: uint16(50228), + 1: uint16(50236), + 2: uint16(50237), + 3: uint16(50248), + 4: uint16(50276), + 5: uint16(50277), + 6: uint16(50280), + 7: uint16(50284), + 8: uint16(50292), + 9: uint16(50293), + 10: uint16(50297), + 11: uint16(50304), + 12: uint16(50324), + 13: uint16(50332), + 14: uint16(50360), + 15: uint16(50364), + 16: uint16(50409), + 17: uint16(50416), + 18: uint16(50417), + 19: uint16(50420), + 20: uint16(50424), + 21: uint16(50426), + 22: uint16(50431), + 23: uint16(50432), + 24: uint16(50433), + 25: uint16(50444), + 26: uint16(50448), + 27: uint16(50452), + 28: uint16(50460), + 29: uint16(50472), + 30: uint16(50473), + 31: uint16(50476), + 32: uint16(50480), + 33: uint16(50488), + 34: uint16(50489), + 35: uint16(50491), + 36: uint16(50493), + 37: uint16(50500), + 38: uint16(50501), + 39: uint16(50504), + 40: uint16(50505), + 41: uint16(50506), + 42: uint16(50508), + 43: uint16(50509), + 44: uint16(50510), + 45: uint16(50515), + 46: uint16(50516), + 47: uint16(50517), + 48: uint16(50519), + 49: uint16(50520), + 50: uint16(50521), + 51: uint16(50525), + 52: uint16(50526), + 53: uint16(50528), + 54: uint16(50529), + 55: uint16(50532), + 56: uint16(50536), + 57: uint16(50544), + 58: uint16(50545), + 59: uint16(50547), + 60: uint16(50548), + 61: uint16(50549), + 62: uint16(50556), + 63: uint16(50557), + 64: uint16(50560), + 65: uint16(50564), + 66: uint16(50567), + 67: uint16(50572), + 68: uint16(50573), + 69: uint16(50575), + 70: uint16(50577), + 71: uint16(50581), + 72: uint16(50583), + 73: uint16(50584), + 74: uint16(50588), + 75: uint16(50592), + 76: uint16(50601), + 77: uint16(50612), + 78: uint16(50613), + 79: uint16(50616), + 80: uint16(50617), + 81: uint16(50619), + 82: uint16(50620), + 83: uint16(50621), + 84: uint16(50622), + 85: uint16(50628), + 86: uint16(50629), + 87: uint16(50630), + 88: uint16(50631), + 89: uint16(50632), + 90: uint16(50633), + 91: uint16(50634), + 92: uint16(50636), + 93: uint16(50638), + }, + 30: { + 0: uint16(50640), + 1: uint16(50641), + 2: uint16(50644), + 3: uint16(50648), + 4: uint16(50656), + 5: uint16(50657), + 6: uint16(50659), + 7: uint16(50661), + 8: uint16(50668), + 9: uint16(50669), + 10: uint16(50670), + 11: uint16(50672), + 12: uint16(50676), + 13: uint16(50678), + 14: uint16(50679), + 15: uint16(50684), + 16: uint16(50685), + 17: uint16(50686), + 18: uint16(50687), + 19: uint16(50688), + 20: uint16(50689), + 21: uint16(50693), + 22: uint16(50694), + 23: uint16(50695), + 24: uint16(50696), + 25: uint16(50700), + 26: uint16(50704), + 27: uint16(50712), + 28: uint16(50713), + 29: uint16(50715), + 30: uint16(50716), + 31: uint16(50724), + 32: uint16(50725), + 33: uint16(50728), + 34: uint16(50732), + 35: uint16(50733), + 36: uint16(50734), + 37: uint16(50736), + 38: uint16(50739), + 39: uint16(50740), + 40: uint16(50741), + 41: uint16(50743), + 42: uint16(50745), + 43: uint16(50747), + 44: uint16(50752), + 45: uint16(50753), + 46: uint16(50756), + 47: uint16(50760), + 48: uint16(50768), + 49: uint16(50769), + 50: uint16(50771), + 51: uint16(50772), + 52: uint16(50773), + 53: uint16(50780), + 54: uint16(50781), + 55: uint16(50784), + 56: uint16(50796), + 57: uint16(50799), + 58: uint16(50801), + 59: uint16(50808), + 60: uint16(50809), + 61: uint16(50812), + 62: uint16(50816), + 63: uint16(50824), + 64: uint16(50825), + 65: uint16(50827), + 66: uint16(50829), + 67: uint16(50836), + 68: uint16(50837), + 69: uint16(50840), + 70: uint16(50844), + 71: uint16(50852), + 72: uint16(50853), + 73: uint16(50855), + 74: uint16(50857), + 75: uint16(50864), + 76: uint16(50865), + 77: uint16(50868), + 78: uint16(50872), + 79: uint16(50873), + 80: uint16(50874), + 81: uint16(50880), + 82: uint16(50881), + 83: uint16(50883), + 84: uint16(50885), + 85: uint16(50892), + 86: uint16(50893), + 87: uint16(50896), + 88: uint16(50900), + 89: uint16(50908), + 90: uint16(50909), + 91: uint16(50912), + 92: uint16(50913), + 93: uint16(50920), + }, + 31: { + 0: uint16(50921), + 1: uint16(50924), + 2: uint16(50928), + 3: uint16(50936), + 4: uint16(50937), + 5: uint16(50941), + 6: uint16(50948), + 7: uint16(50949), + 8: uint16(50952), + 9: uint16(50956), + 10: uint16(50964), + 11: uint16(50965), + 12: uint16(50967), + 13: uint16(50969), + 14: uint16(50976), + 15: uint16(50977), + 16: uint16(50980), + 17: uint16(50984), + 18: uint16(50992), + 19: uint16(50993), + 20: uint16(50995), + 21: uint16(50997), + 22: uint16(50999), + 23: uint16(51004), + 24: uint16(51005), + 25: uint16(51008), + 26: uint16(51012), + 27: uint16(51018), + 28: uint16(51020), + 29: uint16(51021), + 30: uint16(51023), + 31: uint16(51025), + 32: uint16(51026), + 33: uint16(51027), + 34: uint16(51028), + 35: uint16(51029), + 36: uint16(51030), + 37: uint16(51031), + 38: uint16(51032), + 39: uint16(51036), + 40: uint16(51040), + 41: uint16(51048), + 42: uint16(51051), + 43: uint16(51060), + 44: uint16(51061), + 45: uint16(51064), + 46: uint16(51068), + 47: uint16(51069), + 48: uint16(51070), + 49: uint16(51075), + 50: uint16(51076), + 51: uint16(51077), + 52: uint16(51079), + 53: uint16(51080), + 54: uint16(51081), + 55: uint16(51082), + 56: uint16(51086), + 57: uint16(51088), + 58: uint16(51089), + 59: uint16(51092), + 60: uint16(51094), + 61: uint16(51095), + 62: uint16(51096), + 63: uint16(51098), + 64: uint16(51104), + 65: uint16(51105), + 66: uint16(51107), + 67: uint16(51108), + 68: uint16(51109), + 69: uint16(51110), + 70: uint16(51116), + 71: uint16(51117), + 72: uint16(51120), + 73: uint16(51124), + 74: uint16(51132), + 75: uint16(51133), + 76: uint16(51135), + 77: uint16(51136), + 78: uint16(51137), + 79: uint16(51144), + 80: uint16(51145), + 81: uint16(51148), + 82: uint16(51150), + 83: uint16(51152), + 84: uint16(51160), + 85: uint16(51165), + 86: uint16(51172), + 87: uint16(51176), + 88: uint16(51180), + 89: uint16(51200), + 90: uint16(51201), + 91: uint16(51204), + 92: uint16(51208), + 93: uint16(51210), + }, + 32: { + 0: uint16(51216), + 1: uint16(51217), + 2: uint16(51219), + 3: uint16(51221), + 4: uint16(51222), + 5: uint16(51228), + 6: uint16(51229), + 7: uint16(51232), + 8: uint16(51236), + 9: uint16(51244), + 10: uint16(51245), + 11: uint16(51247), + 12: uint16(51249), + 13: uint16(51256), + 14: uint16(51260), + 15: uint16(51264), + 16: uint16(51272), + 17: uint16(51273), + 18: uint16(51276), + 19: uint16(51277), + 20: uint16(51284), + 21: uint16(51312), + 22: uint16(51313), + 23: uint16(51316), + 24: uint16(51320), + 25: uint16(51322), + 26: uint16(51328), + 27: uint16(51329), + 28: uint16(51331), + 29: uint16(51333), + 30: uint16(51334), + 31: uint16(51335), + 32: uint16(51339), + 33: uint16(51340), + 34: uint16(51341), + 35: uint16(51348), + 36: uint16(51357), + 37: uint16(51359), + 38: uint16(51361), + 39: uint16(51368), + 40: uint16(51388), + 41: uint16(51389), + 42: uint16(51396), + 43: uint16(51400), + 44: uint16(51404), + 45: uint16(51412), + 46: uint16(51413), + 47: uint16(51415), + 48: uint16(51417), + 49: uint16(51424), + 50: uint16(51425), + 51: uint16(51428), + 52: uint16(51445), + 53: uint16(51452), + 54: uint16(51453), + 55: uint16(51456), + 56: uint16(51460), + 57: uint16(51461), + 58: uint16(51462), + 59: uint16(51468), + 60: uint16(51469), + 61: uint16(51471), + 62: uint16(51473), + 63: uint16(51480), + 64: uint16(51500), + 65: uint16(51508), + 66: uint16(51536), + 67: uint16(51537), + 68: uint16(51540), + 69: uint16(51544), + 70: uint16(51552), + 71: uint16(51553), + 72: uint16(51555), + 73: uint16(51564), + 74: uint16(51568), + 75: uint16(51572), + 76: uint16(51580), + 77: uint16(51592), + 78: uint16(51593), + 79: uint16(51596), + 80: uint16(51600), + 81: uint16(51608), + 82: uint16(51609), + 83: uint16(51611), + 84: uint16(51613), + 85: uint16(51648), + 86: uint16(51649), + 87: uint16(51652), + 88: uint16(51655), + 89: uint16(51656), + 90: uint16(51658), + 91: uint16(51664), + 92: uint16(51665), + 93: uint16(51667), + }, + 33: { + 0: uint16(51669), + 1: uint16(51670), + 2: uint16(51673), + 3: uint16(51674), + 4: uint16(51676), + 5: uint16(51677), + 6: uint16(51680), + 7: uint16(51682), + 8: uint16(51684), + 9: uint16(51687), + 10: uint16(51692), + 11: uint16(51693), + 12: uint16(51695), + 13: uint16(51696), + 14: uint16(51697), + 15: uint16(51704), + 16: uint16(51705), + 17: uint16(51708), + 18: uint16(51712), + 19: uint16(51720), + 20: uint16(51721), + 21: uint16(51723), + 22: uint16(51724), + 23: uint16(51725), + 24: uint16(51732), + 25: uint16(51736), + 26: uint16(51753), + 27: uint16(51788), + 28: uint16(51789), + 29: uint16(51792), + 30: uint16(51796), + 31: uint16(51804), + 32: uint16(51805), + 33: uint16(51807), + 34: uint16(51808), + 35: uint16(51809), + 36: uint16(51816), + 37: uint16(51837), + 38: uint16(51844), + 39: uint16(51864), + 40: uint16(51900), + 41: uint16(51901), + 42: uint16(51904), + 43: uint16(51908), + 44: uint16(51916), + 45: uint16(51917), + 46: uint16(51919), + 47: uint16(51921), + 48: uint16(51923), + 49: uint16(51928), + 50: uint16(51929), + 51: uint16(51936), + 52: uint16(51948), + 53: uint16(51956), + 54: uint16(51976), + 55: uint16(51984), + 56: uint16(51988), + 57: uint16(51992), + 58: uint16(52000), + 59: uint16(52001), + 60: uint16(52033), + 61: uint16(52040), + 62: uint16(52041), + 63: uint16(52044), + 64: uint16(52048), + 65: uint16(52056), + 66: uint16(52057), + 67: uint16(52061), + 68: uint16(52068), + 69: uint16(52088), + 70: uint16(52089), + 71: uint16(52124), + 72: uint16(52152), + 73: uint16(52180), + 74: uint16(52196), + 75: uint16(52199), + 76: uint16(52201), + 77: uint16(52236), + 78: uint16(52237), + 79: uint16(52240), + 80: uint16(52244), + 81: uint16(52252), + 82: uint16(52253), + 83: uint16(52257), + 84: uint16(52258), + 85: uint16(52263), + 86: uint16(52264), + 87: uint16(52265), + 88: uint16(52268), + 89: uint16(52270), + 90: uint16(52272), + 91: uint16(52280), + 92: uint16(52281), + 93: uint16(52283), + }, + 34: { + 0: uint16(52284), + 1: uint16(52285), + 2: uint16(52286), + 3: uint16(52292), + 4: uint16(52293), + 5: uint16(52296), + 6: uint16(52300), + 7: uint16(52308), + 8: uint16(52309), + 9: uint16(52311), + 10: uint16(52312), + 11: uint16(52313), + 12: uint16(52320), + 13: uint16(52324), + 14: uint16(52326), + 15: uint16(52328), + 16: uint16(52336), + 17: uint16(52341), + 18: uint16(52376), + 19: uint16(52377), + 20: uint16(52380), + 21: uint16(52384), + 22: uint16(52392), + 23: uint16(52393), + 24: uint16(52395), + 25: uint16(52396), + 26: uint16(52397), + 27: uint16(52404), + 28: uint16(52405), + 29: uint16(52408), + 30: uint16(52412), + 31: uint16(52420), + 32: uint16(52421), + 33: uint16(52423), + 34: uint16(52425), + 35: uint16(52432), + 36: uint16(52436), + 37: uint16(52452), + 38: uint16(52460), + 39: uint16(52464), + 40: uint16(52481), + 41: uint16(52488), + 42: uint16(52489), + 43: uint16(52492), + 44: uint16(52496), + 45: uint16(52504), + 46: uint16(52505), + 47: uint16(52507), + 48: uint16(52509), + 49: uint16(52516), + 50: uint16(52520), + 51: uint16(52524), + 52: uint16(52537), + 53: uint16(52572), + 54: uint16(52576), + 55: uint16(52580), + 56: uint16(52588), + 57: uint16(52589), + 58: uint16(52591), + 59: uint16(52593), + 60: uint16(52600), + 61: uint16(52616), + 62: uint16(52628), + 63: uint16(52629), + 64: uint16(52632), + 65: uint16(52636), + 66: uint16(52644), + 67: uint16(52645), + 68: uint16(52647), + 69: uint16(52649), + 70: uint16(52656), + 71: uint16(52676), + 72: uint16(52684), + 73: uint16(52688), + 74: uint16(52712), + 75: uint16(52716), + 76: uint16(52720), + 77: uint16(52728), + 78: uint16(52729), + 79: uint16(52731), + 80: uint16(52733), + 81: uint16(52740), + 82: uint16(52744), + 83: uint16(52748), + 84: uint16(52756), + 85: uint16(52761), + 86: uint16(52768), + 87: uint16(52769), + 88: uint16(52772), + 89: uint16(52776), + 90: uint16(52784), + 91: uint16(52785), + 92: uint16(52787), + 93: uint16(52789), + }, + 35: { + 0: uint16(52824), + 1: uint16(52825), + 2: uint16(52828), + 3: uint16(52831), + 4: uint16(52832), + 5: uint16(52833), + 6: uint16(52840), + 7: uint16(52841), + 8: uint16(52843), + 9: uint16(52845), + 10: uint16(52852), + 11: uint16(52853), + 12: uint16(52856), + 13: uint16(52860), + 14: uint16(52868), + 15: uint16(52869), + 16: uint16(52871), + 17: uint16(52873), + 18: uint16(52880), + 19: uint16(52881), + 20: uint16(52884), + 21: uint16(52888), + 22: uint16(52896), + 23: uint16(52897), + 24: uint16(52899), + 25: uint16(52900), + 26: uint16(52901), + 27: uint16(52908), + 28: uint16(52909), + 29: uint16(52929), + 30: uint16(52964), + 31: uint16(52965), + 32: uint16(52968), + 33: uint16(52971), + 34: uint16(52972), + 35: uint16(52980), + 36: uint16(52981), + 37: uint16(52983), + 38: uint16(52984), + 39: uint16(52985), + 40: uint16(52992), + 41: uint16(52993), + 42: uint16(52996), + 43: uint16(53000), + 44: uint16(53008), + 45: uint16(53009), + 46: uint16(53011), + 47: uint16(53013), + 48: uint16(53020), + 49: uint16(53024), + 50: uint16(53028), + 51: uint16(53036), + 52: uint16(53037), + 53: uint16(53039), + 54: uint16(53040), + 55: uint16(53041), + 56: uint16(53048), + 57: uint16(53076), + 58: uint16(53077), + 59: uint16(53080), + 60: uint16(53084), + 61: uint16(53092), + 62: uint16(53093), + 63: uint16(53095), + 64: uint16(53097), + 65: uint16(53104), + 66: uint16(53105), + 67: uint16(53108), + 68: uint16(53112), + 69: uint16(53120), + 70: uint16(53125), + 71: uint16(53132), + 72: uint16(53153), + 73: uint16(53160), + 74: uint16(53168), + 75: uint16(53188), + 76: uint16(53216), + 77: uint16(53217), + 78: uint16(53220), + 79: uint16(53224), + 80: uint16(53232), + 81: uint16(53233), + 82: uint16(53235), + 83: uint16(53237), + 84: uint16(53244), + 85: uint16(53248), + 86: uint16(53252), + 87: uint16(53265), + 88: uint16(53272), + 89: uint16(53293), + 90: uint16(53300), + 91: uint16(53301), + 92: uint16(53304), + 93: uint16(53308), + }, + 36: { + 0: uint16(53316), + 1: uint16(53317), + 2: uint16(53319), + 3: uint16(53321), + 4: uint16(53328), + 5: uint16(53332), + 6: uint16(53336), + 7: uint16(53344), + 8: uint16(53356), + 9: uint16(53357), + 10: uint16(53360), + 11: uint16(53364), + 12: uint16(53372), + 13: uint16(53373), + 14: uint16(53377), + 15: uint16(53412), + 16: uint16(53413), + 17: uint16(53416), + 18: uint16(53420), + 19: uint16(53428), + 20: uint16(53429), + 21: uint16(53431), + 22: uint16(53433), + 23: uint16(53440), + 24: uint16(53441), + 25: uint16(53444), + 26: uint16(53448), + 27: uint16(53449), + 28: uint16(53456), + 29: uint16(53457), + 30: uint16(53459), + 31: uint16(53460), + 32: uint16(53461), + 33: uint16(53468), + 34: uint16(53469), + 35: uint16(53472), + 36: uint16(53476), + 37: uint16(53484), + 38: uint16(53485), + 39: uint16(53487), + 40: uint16(53488), + 41: uint16(53489), + 42: uint16(53496), + 43: uint16(53517), + 44: uint16(53552), + 45: uint16(53553), + 46: uint16(53556), + 47: uint16(53560), + 48: uint16(53562), + 49: uint16(53568), + 50: uint16(53569), + 51: uint16(53571), + 52: uint16(53572), + 53: uint16(53573), + 54: uint16(53580), + 55: uint16(53581), + 56: uint16(53584), + 57: uint16(53588), + 58: uint16(53596), + 59: uint16(53597), + 60: uint16(53599), + 61: uint16(53601), + 62: uint16(53608), + 63: uint16(53612), + 64: uint16(53628), + 65: uint16(53636), + 66: uint16(53640), + 67: uint16(53664), + 68: uint16(53665), + 69: uint16(53668), + 70: uint16(53672), + 71: uint16(53680), + 72: uint16(53681), + 73: uint16(53683), + 74: uint16(53685), + 75: uint16(53690), + 76: uint16(53692), + 77: uint16(53696), + 78: uint16(53720), + 79: uint16(53748), + 80: uint16(53752), + 81: uint16(53767), + 82: uint16(53769), + 83: uint16(53776), + 84: uint16(53804), + 85: uint16(53805), + 86: uint16(53808), + 87: uint16(53812), + 88: uint16(53820), + 89: uint16(53821), + 90: uint16(53823), + 91: uint16(53825), + 92: uint16(53832), + 93: uint16(53852), + }, + 37: { + 0: uint16(53860), + 1: uint16(53888), + 2: uint16(53889), + 3: uint16(53892), + 4: uint16(53896), + 5: uint16(53904), + 6: uint16(53905), + 7: uint16(53909), + 8: uint16(53916), + 9: uint16(53920), + 10: uint16(53924), + 11: uint16(53932), + 12: uint16(53937), + 13: uint16(53944), + 14: uint16(53945), + 15: uint16(53948), + 16: uint16(53951), + 17: uint16(53952), + 18: uint16(53954), + 19: uint16(53960), + 20: uint16(53961), + 21: uint16(53963), + 22: uint16(53972), + 23: uint16(53976), + 24: uint16(53980), + 25: uint16(53988), + 26: uint16(53989), + 27: uint16(54000), + 28: uint16(54001), + 29: uint16(54004), + 30: uint16(54008), + 31: uint16(54016), + 32: uint16(54017), + 33: uint16(54019), + 34: uint16(54021), + 35: uint16(54028), + 36: uint16(54029), + 37: uint16(54030), + 38: uint16(54032), + 39: uint16(54036), + 40: uint16(54038), + 41: uint16(54044), + 42: uint16(54045), + 43: uint16(54047), + 44: uint16(54048), + 45: uint16(54049), + 46: uint16(54053), + 47: uint16(54056), + 48: uint16(54057), + 49: uint16(54060), + 50: uint16(54064), + 51: uint16(54072), + 52: uint16(54073), + 53: uint16(54075), + 54: uint16(54076), + 55: uint16(54077), + 56: uint16(54084), + 57: uint16(54085), + 58: uint16(54140), + 59: uint16(54141), + 60: uint16(54144), + 61: uint16(54148), + 62: uint16(54156), + 63: uint16(54157), + 64: uint16(54159), + 65: uint16(54160), + 66: uint16(54161), + 67: uint16(54168), + 68: uint16(54169), + 69: uint16(54172), + 70: uint16(54176), + 71: uint16(54184), + 72: uint16(54185), + 73: uint16(54187), + 74: uint16(54189), + 75: uint16(54196), + 76: uint16(54200), + 77: uint16(54204), + 78: uint16(54212), + 79: uint16(54213), + 80: uint16(54216), + 81: uint16(54217), + 82: uint16(54224), + 83: uint16(54232), + 84: uint16(54241), + 85: uint16(54243), + 86: uint16(54252), + 87: uint16(54253), + 88: uint16(54256), + 89: uint16(54260), + 90: uint16(54268), + 91: uint16(54269), + 92: uint16(54271), + 93: uint16(54273), + }, + 38: { + 0: uint16(54280), + 1: uint16(54301), + 2: uint16(54336), + 3: uint16(54340), + 4: uint16(54364), + 5: uint16(54368), + 6: uint16(54372), + 7: uint16(54381), + 8: uint16(54383), + 9: uint16(54392), + 10: uint16(54393), + 11: uint16(54396), + 12: uint16(54399), + 13: uint16(54400), + 14: uint16(54402), + 15: uint16(54408), + 16: uint16(54409), + 17: uint16(54411), + 18: uint16(54413), + 19: uint16(54420), + 20: uint16(54441), + 21: uint16(54476), + 22: uint16(54480), + 23: uint16(54484), + 24: uint16(54492), + 25: uint16(54495), + 26: uint16(54504), + 27: uint16(54508), + 28: uint16(54512), + 29: uint16(54520), + 30: uint16(54523), + 31: uint16(54525), + 32: uint16(54532), + 33: uint16(54536), + 34: uint16(54540), + 35: uint16(54548), + 36: uint16(54549), + 37: uint16(54551), + 38: uint16(54588), + 39: uint16(54589), + 40: uint16(54592), + 41: uint16(54596), + 42: uint16(54604), + 43: uint16(54605), + 44: uint16(54607), + 45: uint16(54609), + 46: uint16(54616), + 47: uint16(54617), + 48: uint16(54620), + 49: uint16(54624), + 50: uint16(54629), + 51: uint16(54632), + 52: uint16(54633), + 53: uint16(54635), + 54: uint16(54637), + 55: uint16(54644), + 56: uint16(54645), + 57: uint16(54648), + 58: uint16(54652), + 59: uint16(54660), + 60: uint16(54661), + 61: uint16(54663), + 62: uint16(54664), + 63: uint16(54665), + 64: uint16(54672), + 65: uint16(54693), + 66: uint16(54728), + 67: uint16(54729), + 68: uint16(54732), + 69: uint16(54736), + 70: uint16(54738), + 71: uint16(54744), + 72: uint16(54745), + 73: uint16(54747), + 74: uint16(54749), + 75: uint16(54756), + 76: uint16(54757), + 77: uint16(54760), + 78: uint16(54764), + 79: uint16(54772), + 80: uint16(54773), + 81: uint16(54775), + 82: uint16(54777), + 83: uint16(54784), + 84: uint16(54785), + 85: uint16(54788), + 86: uint16(54792), + 87: uint16(54800), + 88: uint16(54801), + 89: uint16(54803), + 90: uint16(54804), + 91: uint16(54805), + 92: uint16(54812), + 93: uint16(54816), + }, + 39: { + 0: uint16(54820), + 1: uint16(54829), + 2: uint16(54840), + 3: uint16(54841), + 4: uint16(54844), + 5: uint16(54848), + 6: uint16(54853), + 7: uint16(54856), + 8: uint16(54857), + 9: uint16(54859), + 10: uint16(54861), + 11: uint16(54865), + 12: uint16(54868), + 13: uint16(54869), + 14: uint16(54872), + 15: uint16(54876), + 16: uint16(54887), + 17: uint16(54889), + 18: uint16(54896), + 19: uint16(54897), + 20: uint16(54900), + 21: uint16(54915), + 22: uint16(54917), + 23: uint16(54924), + 24: uint16(54925), + 25: uint16(54928), + 26: uint16(54932), + 27: uint16(54941), + 28: uint16(54943), + 29: uint16(54945), + 30: uint16(54952), + 31: uint16(54956), + 32: uint16(54960), + 33: uint16(54969), + 34: uint16(54971), + 35: uint16(54980), + 36: uint16(54981), + 37: uint16(54984), + 38: uint16(54988), + 39: uint16(54993), + 40: uint16(54996), + 41: uint16(54999), + 42: uint16(55001), + 43: uint16(55008), + 44: uint16(55012), + 45: uint16(55016), + 46: uint16(55024), + 47: uint16(55029), + 48: uint16(55036), + 49: uint16(55037), + 50: uint16(55040), + 51: uint16(55044), + 52: uint16(55057), + 53: uint16(55064), + 54: uint16(55065), + 55: uint16(55068), + 56: uint16(55072), + 57: uint16(55080), + 58: uint16(55081), + 59: uint16(55083), + 60: uint16(55085), + 61: uint16(55092), + 62: uint16(55093), + 63: uint16(55096), + 64: uint16(55100), + 65: uint16(55108), + 66: uint16(55111), + 67: uint16(55113), + 68: uint16(55120), + 69: uint16(55121), + 70: uint16(55124), + 71: uint16(55126), + 72: uint16(55127), + 73: uint16(55128), + 74: uint16(55129), + 75: uint16(55136), + 76: uint16(55137), + 77: uint16(55139), + 78: uint16(55141), + 79: uint16(55145), + 80: uint16(55148), + 81: uint16(55152), + 82: uint16(55156), + 83: uint16(55164), + 84: uint16(55165), + 85: uint16(55169), + 86: uint16(55176), + 87: uint16(55177), + 88: uint16(55180), + 89: uint16(55184), + 90: uint16(55192), + 91: uint16(55193), + 92: uint16(55195), + 93: uint16(55197), + }, + 40: {}, + 41: { + 0: uint16(20285), + 1: uint16(20339), + 2: uint16(20551), + 3: uint16(20729), + 4: uint16(21152), + 5: uint16(21487), + 6: uint16(21621), + 7: uint16(21733), + 8: uint16(22025), + 9: uint16(23233), + 10: uint16(23478), + 11: uint16(26247), + 12: uint16(26550), + 13: uint16(26551), + 14: uint16(26607), + 15: uint16(27468), + 16: uint16(29634), + 17: uint16(30146), + 18: uint16(31292), + 19: uint16(33499), + 20: uint16(33540), + 21: uint16(34903), + 22: uint16(34952), + 23: uint16(35382), + 24: uint16(36040), + 25: uint16(36303), + 26: uint16(36603), + 27: uint16(36838), + 28: uint16(39381), + 29: uint16(21051), + 30: uint16(21364), + 31: uint16(21508), + 32: uint16(24682), + 33: uint16(24932), + 34: uint16(27580), + 35: uint16(29647), + 36: uint16(33050), + 37: uint16(35258), + 38: uint16(35282), + 39: uint16(38307), + 40: uint16(20355), + 41: uint16(21002), + 42: uint16(22718), + 43: uint16(22904), + 44: uint16(23014), + 45: uint16(24178), + 46: uint16(24185), + 47: uint16(25031), + 48: uint16(25536), + 49: uint16(26438), + 50: uint16(26604), + 51: uint16(26751), + 52: uint16(28567), + 53: uint16(30286), + 54: uint16(30475), + 55: uint16(30965), + 56: uint16(31240), + 57: uint16(31487), + 58: uint16(31777), + 59: uint16(32925), + 60: uint16(33390), + 61: uint16(33393), + 62: uint16(35563), + 63: uint16(38291), + 64: uint16(20075), + 65: uint16(21917), + 66: uint16(26359), + 67: uint16(28212), + 68: uint16(30883), + 69: uint16(31469), + 70: uint16(33883), + 71: uint16(35088), + 72: uint16(34638), + 73: uint16(38824), + 74: uint16(21208), + 75: uint16(22350), + 76: uint16(22570), + 77: uint16(23884), + 78: uint16(24863), + 79: uint16(25022), + 80: uint16(25121), + 81: uint16(25954), + 82: uint16(26577), + 83: uint16(27204), + 84: uint16(28187), + 85: uint16(29976), + 86: uint16(30131), + 87: uint16(30435), + 88: uint16(30640), + 89: uint16(32058), + 90: uint16(37039), + 91: uint16(37969), + 92: uint16(37970), + 93: uint16(40853), + }, + 42: { + 0: uint16(21283), + 1: uint16(23724), + 2: uint16(30002), + 3: uint16(32987), + 4: uint16(37440), + 5: uint16(38296), + 6: uint16(21083), + 7: uint16(22536), + 8: uint16(23004), + 9: uint16(23713), + 10: uint16(23831), + 11: uint16(24247), + 12: uint16(24378), + 13: uint16(24394), + 14: uint16(24951), + 15: uint16(27743), + 16: uint16(30074), + 17: uint16(30086), + 18: uint16(31968), + 19: uint16(32115), + 20: uint16(32177), + 21: uint16(32652), + 22: uint16(33108), + 23: uint16(33313), + 24: uint16(34193), + 25: uint16(35137), + 26: uint16(35611), + 27: uint16(37628), + 28: uint16(38477), + 29: uint16(40007), + 30: uint16(20171), + 31: uint16(20215), + 32: uint16(20491), + 33: uint16(20977), + 34: uint16(22607), + 35: uint16(24887), + 36: uint16(24894), + 37: uint16(24936), + 38: uint16(25913), + 39: uint16(27114), + 40: uint16(28433), + 41: uint16(30117), + 42: uint16(30342), + 43: uint16(30422), + 44: uint16(31623), + 45: uint16(33445), + 46: uint16(33995), + 47: uint16(63744), + 48: uint16(37799), + 49: uint16(38283), + 50: uint16(21888), + 51: uint16(23458), + 52: uint16(22353), + 53: uint16(63745), + 54: uint16(31923), + 55: uint16(32697), + 56: uint16(37301), + 57: uint16(20520), + 58: uint16(21435), + 59: uint16(23621), + 60: uint16(24040), + 61: uint16(25298), + 62: uint16(25454), + 63: uint16(25818), + 64: uint16(25831), + 65: uint16(28192), + 66: uint16(28844), + 67: uint16(31067), + 68: uint16(36317), + 69: uint16(36382), + 70: uint16(63746), + 71: uint16(36989), + 72: uint16(37445), + 73: uint16(37624), + 74: uint16(20094), + 75: uint16(20214), + 76: uint16(20581), + 77: uint16(24062), + 78: uint16(24314), + 79: uint16(24838), + 80: uint16(26967), + 81: uint16(33137), + 82: uint16(34388), + 83: uint16(36423), + 84: uint16(37749), + 85: uint16(39467), + 86: uint16(20062), + 87: uint16(20625), + 88: uint16(26480), + 89: uint16(26688), + 90: uint16(20745), + 91: uint16(21133), + 92: uint16(21138), + 93: uint16(27298), + }, + 43: { + 0: uint16(30652), + 1: uint16(37392), + 2: uint16(40660), + 3: uint16(21163), + 4: uint16(24623), + 5: uint16(36850), + 6: uint16(20552), + 7: uint16(25001), + 8: uint16(25581), + 9: uint16(25802), + 10: uint16(26684), + 11: uint16(27268), + 12: uint16(28608), + 13: uint16(33160), + 14: uint16(35233), + 15: uint16(38548), + 16: uint16(22533), + 17: uint16(29309), + 18: uint16(29356), + 19: uint16(29956), + 20: uint16(32121), + 21: uint16(32365), + 22: uint16(32937), + 23: uint16(35211), + 24: uint16(35700), + 25: uint16(36963), + 26: uint16(40273), + 27: uint16(25225), + 28: uint16(27770), + 29: uint16(28500), + 30: uint16(32080), + 31: uint16(32570), + 32: uint16(35363), + 33: uint16(20860), + 34: uint16(24906), + 35: uint16(31645), + 36: uint16(35609), + 37: uint16(37463), + 38: uint16(37772), + 39: uint16(20140), + 40: uint16(20435), + 41: uint16(20510), + 42: uint16(20670), + 43: uint16(20742), + 44: uint16(21185), + 45: uint16(21197), + 46: uint16(21375), + 47: uint16(22384), + 48: uint16(22659), + 49: uint16(24218), + 50: uint16(24465), + 51: uint16(24950), + 52: uint16(25004), + 53: uint16(25806), + 54: uint16(25964), + 55: uint16(26223), + 56: uint16(26299), + 57: uint16(26356), + 58: uint16(26775), + 59: uint16(28039), + 60: uint16(28805), + 61: uint16(28913), + 62: uint16(29855), + 63: uint16(29861), + 64: uint16(29898), + 65: uint16(30169), + 66: uint16(30828), + 67: uint16(30956), + 68: uint16(31455), + 69: uint16(31478), + 70: uint16(32069), + 71: uint16(32147), + 72: uint16(32789), + 73: uint16(32831), + 74: uint16(33051), + 75: uint16(33686), + 76: uint16(35686), + 77: uint16(36629), + 78: uint16(36885), + 79: uint16(37857), + 80: uint16(38915), + 81: uint16(38968), + 82: uint16(39514), + 83: uint16(39912), + 84: uint16(20418), + 85: uint16(21843), + 86: uint16(22586), + 87: uint16(22865), + 88: uint16(23395), + 89: uint16(23622), + 90: uint16(24760), + 91: uint16(25106), + 92: uint16(26690), + 93: uint16(26800), + }, + 44: { + 0: uint16(26856), + 1: uint16(28330), + 2: uint16(30028), + 3: uint16(30328), + 4: uint16(30926), + 5: uint16(31293), + 6: uint16(31995), + 7: uint16(32363), + 8: uint16(32380), + 9: uint16(35336), + 10: uint16(35489), + 11: uint16(35903), + 12: uint16(38542), + 13: uint16(40388), + 14: uint16(21476), + 15: uint16(21481), + 16: uint16(21578), + 17: uint16(21617), + 18: uint16(22266), + 19: uint16(22993), + 20: uint16(23396), + 21: uint16(23611), + 22: uint16(24235), + 23: uint16(25335), + 24: uint16(25911), + 25: uint16(25925), + 26: uint16(25970), + 27: uint16(26272), + 28: uint16(26543), + 29: uint16(27073), + 30: uint16(27837), + 31: uint16(30204), + 32: uint16(30352), + 33: uint16(30590), + 34: uint16(31295), + 35: uint16(32660), + 36: uint16(32771), + 37: uint16(32929), + 38: uint16(33167), + 39: uint16(33510), + 40: uint16(33533), + 41: uint16(33776), + 42: uint16(34241), + 43: uint16(34865), + 44: uint16(34996), + 45: uint16(35493), + 46: uint16(63747), + 47: uint16(36764), + 48: uint16(37678), + 49: uint16(38599), + 50: uint16(39015), + 51: uint16(39640), + 52: uint16(40723), + 53: uint16(21741), + 54: uint16(26011), + 55: uint16(26354), + 56: uint16(26767), + 57: uint16(31296), + 58: uint16(35895), + 59: uint16(40288), + 60: uint16(22256), + 61: uint16(22372), + 62: uint16(23825), + 63: uint16(26118), + 64: uint16(26801), + 65: uint16(26829), + 66: uint16(28414), + 67: uint16(29736), + 68: uint16(34974), + 69: uint16(39908), + 70: uint16(27752), + 71: uint16(63748), + 72: uint16(39592), + 73: uint16(20379), + 74: uint16(20844), + 75: uint16(20849), + 76: uint16(21151), + 77: uint16(23380), + 78: uint16(24037), + 79: uint16(24656), + 80: uint16(24685), + 81: uint16(25329), + 82: uint16(25511), + 83: uint16(25915), + 84: uint16(29657), + 85: uint16(31354), + 86: uint16(34467), + 87: uint16(36002), + 88: uint16(38799), + 89: uint16(20018), + 90: uint16(23521), + 91: uint16(25096), + 92: uint16(26524), + 93: uint16(29916), + }, + 45: { + 0: uint16(31185), + 1: uint16(33747), + 2: uint16(35463), + 3: uint16(35506), + 4: uint16(36328), + 5: uint16(36942), + 6: uint16(37707), + 7: uint16(38982), + 8: uint16(24275), + 9: uint16(27112), + 10: uint16(34303), + 11: uint16(37101), + 12: uint16(63749), + 13: uint16(20896), + 14: uint16(23448), + 15: uint16(23532), + 16: uint16(24931), + 17: uint16(26874), + 18: uint16(27454), + 19: uint16(28748), + 20: uint16(29743), + 21: uint16(29912), + 22: uint16(31649), + 23: uint16(32592), + 24: uint16(33733), + 25: uint16(35264), + 26: uint16(36011), + 27: uint16(38364), + 28: uint16(39208), + 29: uint16(21038), + 30: uint16(24669), + 31: uint16(25324), + 32: uint16(36866), + 33: uint16(20362), + 34: uint16(20809), + 35: uint16(21281), + 36: uint16(22745), + 37: uint16(24291), + 38: uint16(26336), + 39: uint16(27960), + 40: uint16(28826), + 41: uint16(29378), + 42: uint16(29654), + 43: uint16(31568), + 44: uint16(33009), + 45: uint16(37979), + 46: uint16(21350), + 47: uint16(25499), + 48: uint16(32619), + 49: uint16(20054), + 50: uint16(20608), + 51: uint16(22602), + 52: uint16(22750), + 53: uint16(24618), + 54: uint16(24871), + 55: uint16(25296), + 56: uint16(27088), + 57: uint16(39745), + 58: uint16(23439), + 59: uint16(32024), + 60: uint16(32945), + 61: uint16(36703), + 62: uint16(20132), + 63: uint16(20689), + 64: uint16(21676), + 65: uint16(21932), + 66: uint16(23308), + 67: uint16(23968), + 68: uint16(24039), + 69: uint16(25898), + 70: uint16(25934), + 71: uint16(26657), + 72: uint16(27211), + 73: uint16(29409), + 74: uint16(30350), + 75: uint16(30703), + 76: uint16(32094), + 77: uint16(32761), + 78: uint16(33184), + 79: uint16(34126), + 80: uint16(34527), + 81: uint16(36611), + 82: uint16(36686), + 83: uint16(37066), + 84: uint16(39171), + 85: uint16(39509), + 86: uint16(39851), + 87: uint16(19992), + 88: uint16(20037), + 89: uint16(20061), + 90: uint16(20167), + 91: uint16(20465), + 92: uint16(20855), + 93: uint16(21246), + }, + 46: { + 0: uint16(21312), + 1: uint16(21475), + 2: uint16(21477), + 3: uint16(21646), + 4: uint16(22036), + 5: uint16(22389), + 6: uint16(22434), + 7: uint16(23495), + 8: uint16(23943), + 9: uint16(24272), + 10: uint16(25084), + 11: uint16(25304), + 12: uint16(25937), + 13: uint16(26552), + 14: uint16(26601), + 15: uint16(27083), + 16: uint16(27472), + 17: uint16(27590), + 18: uint16(27628), + 19: uint16(27714), + 20: uint16(28317), + 21: uint16(28792), + 22: uint16(29399), + 23: uint16(29590), + 24: uint16(29699), + 25: uint16(30655), + 26: uint16(30697), + 27: uint16(31350), + 28: uint16(32127), + 29: uint16(32777), + 30: uint16(33276), + 31: uint16(33285), + 32: uint16(33290), + 33: uint16(33503), + 34: uint16(34914), + 35: uint16(35635), + 36: uint16(36092), + 37: uint16(36544), + 38: uint16(36881), + 39: uint16(37041), + 40: uint16(37476), + 41: uint16(37558), + 42: uint16(39378), + 43: uint16(39493), + 44: uint16(40169), + 45: uint16(40407), + 46: uint16(40860), + 47: uint16(22283), + 48: uint16(23616), + 49: uint16(33738), + 50: uint16(38816), + 51: uint16(38827), + 52: uint16(40628), + 53: uint16(21531), + 54: uint16(31384), + 55: uint16(32676), + 56: uint16(35033), + 57: uint16(36557), + 58: uint16(37089), + 59: uint16(22528), + 60: uint16(23624), + 61: uint16(25496), + 62: uint16(31391), + 63: uint16(23470), + 64: uint16(24339), + 65: uint16(31353), + 66: uint16(31406), + 67: uint16(33422), + 68: uint16(36524), + 69: uint16(20518), + 70: uint16(21048), + 71: uint16(21240), + 72: uint16(21367), + 73: uint16(22280), + 74: uint16(25331), + 75: uint16(25458), + 76: uint16(27402), + 77: uint16(28099), + 78: uint16(30519), + 79: uint16(21413), + 80: uint16(29527), + 81: uint16(34152), + 82: uint16(36470), + 83: uint16(38357), + 84: uint16(26426), + 85: uint16(27331), + 86: uint16(28528), + 87: uint16(35437), + 88: uint16(36556), + 89: uint16(39243), + 90: uint16(63750), + 91: uint16(26231), + 92: uint16(27512), + 93: uint16(36020), + }, + 47: { + 0: uint16(39740), + 1: uint16(63751), + 2: uint16(21483), + 3: uint16(22317), + 4: uint16(22862), + 5: uint16(25542), + 6: uint16(27131), + 7: uint16(29674), + 8: uint16(30789), + 9: uint16(31418), + 10: uint16(31429), + 11: uint16(31998), + 12: uint16(33909), + 13: uint16(35215), + 14: uint16(36211), + 15: uint16(36917), + 16: uint16(38312), + 17: uint16(21243), + 18: uint16(22343), + 19: uint16(30023), + 20: uint16(31584), + 21: uint16(33740), + 22: uint16(37406), + 23: uint16(63752), + 24: uint16(27224), + 25: uint16(20811), + 26: uint16(21067), + 27: uint16(21127), + 28: uint16(25119), + 29: uint16(26840), + 30: uint16(26997), + 31: uint16(38553), + 32: uint16(20677), + 33: uint16(21156), + 34: uint16(21220), + 35: uint16(25027), + 36: uint16(26020), + 37: uint16(26681), + 38: uint16(27135), + 39: uint16(29822), + 40: uint16(31563), + 41: uint16(33465), + 42: uint16(33771), + 43: uint16(35250), + 44: uint16(35641), + 45: uint16(36817), + 46: uint16(39241), + 47: uint16(63753), + 48: uint16(20170), + 49: uint16(22935), + 50: uint16(25810), + 51: uint16(26129), + 52: uint16(27278), + 53: uint16(29748), + 54: uint16(31105), + 55: uint16(31165), + 56: uint16(33449), + 57: uint16(34942), + 58: uint16(34943), + 59: uint16(35167), + 60: uint16(63754), + 61: uint16(37670), + 62: uint16(20235), + 63: uint16(21450), + 64: uint16(24613), + 65: uint16(25201), + 66: uint16(27762), + 67: uint16(32026), + 68: uint16(32102), + 69: uint16(20120), + 70: uint16(20834), + 71: uint16(30684), + 72: uint16(32943), + 73: uint16(20225), + 74: uint16(20238), + 75: uint16(20854), + 76: uint16(20864), + 77: uint16(21980), + 78: uint16(22120), + 79: uint16(22331), + 80: uint16(22522), + 81: uint16(22524), + 82: uint16(22804), + 83: uint16(22855), + 84: uint16(22931), + 85: uint16(23492), + 86: uint16(23696), + 87: uint16(23822), + 88: uint16(24049), + 89: uint16(24190), + 90: uint16(24524), + 91: uint16(25216), + 92: uint16(26071), + 93: uint16(26083), + }, + 48: { + 0: uint16(26398), + 1: uint16(26399), + 2: uint16(26462), + 3: uint16(26827), + 4: uint16(26820), + 5: uint16(27231), + 6: uint16(27450), + 7: uint16(27683), + 8: uint16(27773), + 9: uint16(27778), + 10: uint16(28103), + 11: uint16(29592), + 12: uint16(29734), + 13: uint16(29738), + 14: uint16(29826), + 15: uint16(29859), + 16: uint16(30072), + 17: uint16(30079), + 18: uint16(30849), + 19: uint16(30959), + 20: uint16(31041), + 21: uint16(31047), + 22: uint16(31048), + 23: uint16(31098), + 24: uint16(31637), + 25: uint16(32000), + 26: uint16(32186), + 27: uint16(32648), + 28: uint16(32774), + 29: uint16(32813), + 30: uint16(32908), + 31: uint16(35352), + 32: uint16(35663), + 33: uint16(35912), + 34: uint16(36215), + 35: uint16(37665), + 36: uint16(37668), + 37: uint16(39138), + 38: uint16(39249), + 39: uint16(39438), + 40: uint16(39439), + 41: uint16(39525), + 42: uint16(40594), + 43: uint16(32202), + 44: uint16(20342), + 45: uint16(21513), + 46: uint16(25326), + 47: uint16(26708), + 48: uint16(37329), + 49: uint16(21931), + 50: uint16(20794), + 51: uint16(63755), + 52: uint16(63756), + 53: uint16(23068), + 54: uint16(25062), + 55: uint16(63757), + 56: uint16(25295), + 57: uint16(25343), + 58: uint16(63758), + 59: uint16(63759), + 60: uint16(63760), + 61: uint16(63761), + 62: uint16(63762), + 63: uint16(63763), + 64: uint16(37027), + 65: uint16(63764), + 66: uint16(63765), + 67: uint16(63766), + 68: uint16(63767), + 69: uint16(63768), + 70: uint16(35582), + 71: uint16(63769), + 72: uint16(63770), + 73: uint16(63771), + 74: uint16(63772), + 75: uint16(26262), + 76: uint16(63773), + 77: uint16(29014), + 78: uint16(63774), + 79: uint16(63775), + 80: uint16(38627), + 81: uint16(63776), + 82: uint16(25423), + 83: uint16(25466), + 84: uint16(21335), + 85: uint16(63777), + 86: uint16(26511), + 87: uint16(26976), + 88: uint16(28275), + 89: uint16(63778), + 90: uint16(30007), + 91: uint16(63779), + 92: uint16(63780), + 93: uint16(63781), + }, + 49: { + 0: uint16(32013), + 1: uint16(63782), + 2: uint16(63783), + 3: uint16(34930), + 4: uint16(22218), + 5: uint16(23064), + 6: uint16(63784), + 7: uint16(63785), + 8: uint16(63786), + 9: uint16(63787), + 10: uint16(63788), + 11: uint16(20035), + 12: uint16(63789), + 13: uint16(20839), + 14: uint16(22856), + 15: uint16(26608), + 16: uint16(32784), + 17: uint16(63790), + 18: uint16(22899), + 19: uint16(24180), + 20: uint16(25754), + 21: uint16(31178), + 22: uint16(24565), + 23: uint16(24684), + 24: uint16(25288), + 25: uint16(25467), + 26: uint16(23527), + 27: uint16(23511), + 28: uint16(21162), + 29: uint16(63791), + 30: uint16(22900), + 31: uint16(24361), + 32: uint16(24594), + 33: uint16(63792), + 34: uint16(63793), + 35: uint16(63794), + 36: uint16(29785), + 37: uint16(63795), + 38: uint16(63796), + 39: uint16(63797), + 40: uint16(63798), + 41: uint16(63799), + 42: uint16(63800), + 43: uint16(39377), + 44: uint16(63801), + 45: uint16(63802), + 46: uint16(63803), + 47: uint16(63804), + 48: uint16(63805), + 49: uint16(63806), + 50: uint16(63807), + 51: uint16(63808), + 52: uint16(63809), + 53: uint16(63810), + 54: uint16(63811), + 55: uint16(28611), + 56: uint16(63812), + 57: uint16(63813), + 58: uint16(33215), + 59: uint16(36786), + 60: uint16(24817), + 61: uint16(63814), + 62: uint16(63815), + 63: uint16(33126), + 64: uint16(63816), + 65: uint16(63817), + 66: uint16(23615), + 67: uint16(63818), + 68: uint16(63819), + 69: uint16(63820), + 70: uint16(63821), + 71: uint16(63822), + 72: uint16(63823), + 73: uint16(63824), + 74: uint16(63825), + 75: uint16(23273), + 76: uint16(35365), + 77: uint16(26491), + 78: uint16(32016), + 79: uint16(63826), + 80: uint16(63827), + 81: uint16(63828), + 82: uint16(63829), + 83: uint16(63830), + 84: uint16(63831), + 85: uint16(33021), + 86: uint16(63832), + 87: uint16(63833), + 88: uint16(23612), + 89: uint16(27877), + 90: uint16(21311), + 91: uint16(28346), + 92: uint16(22810), + 93: uint16(33590), + }, + 50: { + 0: uint16(20025), + 1: uint16(20150), + 2: uint16(20294), + 3: uint16(21934), + 4: uint16(22296), + 5: uint16(22727), + 6: uint16(24406), + 7: uint16(26039), + 8: uint16(26086), + 9: uint16(27264), + 10: uint16(27573), + 11: uint16(28237), + 12: uint16(30701), + 13: uint16(31471), + 14: uint16(31774), + 15: uint16(32222), + 16: uint16(34507), + 17: uint16(34962), + 18: uint16(37170), + 19: uint16(37723), + 20: uint16(25787), + 21: uint16(28606), + 22: uint16(29562), + 23: uint16(30136), + 24: uint16(36948), + 25: uint16(21846), + 26: uint16(22349), + 27: uint16(25018), + 28: uint16(25812), + 29: uint16(26311), + 30: uint16(28129), + 31: uint16(28251), + 32: uint16(28525), + 33: uint16(28601), + 34: uint16(30192), + 35: uint16(32835), + 36: uint16(33213), + 37: uint16(34113), + 38: uint16(35203), + 39: uint16(35527), + 40: uint16(35674), + 41: uint16(37663), + 42: uint16(27795), + 43: uint16(30035), + 44: uint16(31572), + 45: uint16(36367), + 46: uint16(36957), + 47: uint16(21776), + 48: uint16(22530), + 49: uint16(22616), + 50: uint16(24162), + 51: uint16(25095), + 52: uint16(25758), + 53: uint16(26848), + 54: uint16(30070), + 55: uint16(31958), + 56: uint16(34739), + 57: uint16(40680), + 58: uint16(20195), + 59: uint16(22408), + 60: uint16(22382), + 61: uint16(22823), + 62: uint16(23565), + 63: uint16(23729), + 64: uint16(24118), + 65: uint16(24453), + 66: uint16(25140), + 67: uint16(25825), + 68: uint16(29619), + 69: uint16(33274), + 70: uint16(34955), + 71: uint16(36024), + 72: uint16(38538), + 73: uint16(40667), + 74: uint16(23429), + 75: uint16(24503), + 76: uint16(24755), + 77: uint16(20498), + 78: uint16(20992), + 79: uint16(21040), + 80: uint16(22294), + 81: uint16(22581), + 82: uint16(22615), + 83: uint16(23566), + 84: uint16(23648), + 85: uint16(23798), + 86: uint16(23947), + 87: uint16(24230), + 88: uint16(24466), + 89: uint16(24764), + 90: uint16(25361), + 91: uint16(25481), + 92: uint16(25623), + 93: uint16(26691), + }, + 51: { + 0: uint16(26873), + 1: uint16(27330), + 2: uint16(28120), + 3: uint16(28193), + 4: uint16(28372), + 5: uint16(28644), + 6: uint16(29182), + 7: uint16(30428), + 8: uint16(30585), + 9: uint16(31153), + 10: uint16(31291), + 11: uint16(33796), + 12: uint16(35241), + 13: uint16(36077), + 14: uint16(36339), + 15: uint16(36424), + 16: uint16(36867), + 17: uint16(36884), + 18: uint16(36947), + 19: uint16(37117), + 20: uint16(37709), + 21: uint16(38518), + 22: uint16(38876), + 23: uint16(27602), + 24: uint16(28678), + 25: uint16(29272), + 26: uint16(29346), + 27: uint16(29544), + 28: uint16(30563), + 29: uint16(31167), + 30: uint16(31716), + 31: uint16(32411), + 32: uint16(35712), + 33: uint16(22697), + 34: uint16(24775), + 35: uint16(25958), + 36: uint16(26109), + 37: uint16(26302), + 38: uint16(27788), + 39: uint16(28958), + 40: uint16(29129), + 41: uint16(35930), + 42: uint16(38931), + 43: uint16(20077), + 44: uint16(31361), + 45: uint16(20189), + 46: uint16(20908), + 47: uint16(20941), + 48: uint16(21205), + 49: uint16(21516), + 50: uint16(24999), + 51: uint16(26481), + 52: uint16(26704), + 53: uint16(26847), + 54: uint16(27934), + 55: uint16(28540), + 56: uint16(30140), + 57: uint16(30643), + 58: uint16(31461), + 59: uint16(33012), + 60: uint16(33891), + 61: uint16(37509), + 62: uint16(20828), + 63: uint16(26007), + 64: uint16(26460), + 65: uint16(26515), + 66: uint16(30168), + 67: uint16(31431), + 68: uint16(33651), + 69: uint16(63834), + 70: uint16(35910), + 71: uint16(36887), + 72: uint16(38957), + 73: uint16(23663), + 74: uint16(33216), + 75: uint16(33434), + 76: uint16(36929), + 77: uint16(36975), + 78: uint16(37389), + 79: uint16(24471), + 80: uint16(23965), + 81: uint16(27225), + 82: uint16(29128), + 83: uint16(30331), + 84: uint16(31561), + 85: uint16(34276), + 86: uint16(35588), + 87: uint16(37159), + 88: uint16(39472), + 89: uint16(21895), + 90: uint16(25078), + 91: uint16(63835), + 92: uint16(30313), + 93: uint16(32645), + }, + 52: { + 0: uint16(34367), + 1: uint16(34746), + 2: uint16(35064), + 3: uint16(37007), + 4: uint16(63836), + 5: uint16(27931), + 6: uint16(28889), + 7: uint16(29662), + 8: uint16(32097), + 9: uint16(33853), + 10: uint16(63837), + 11: uint16(37226), + 12: uint16(39409), + 13: uint16(63838), + 14: uint16(20098), + 15: uint16(21365), + 16: uint16(27396), + 17: uint16(27410), + 18: uint16(28734), + 19: uint16(29211), + 20: uint16(34349), + 21: uint16(40478), + 22: uint16(21068), + 23: uint16(36771), + 24: uint16(23888), + 25: uint16(25829), + 26: uint16(25900), + 27: uint16(27414), + 28: uint16(28651), + 29: uint16(31811), + 30: uint16(32412), + 31: uint16(34253), + 32: uint16(35172), + 33: uint16(35261), + 34: uint16(25289), + 35: uint16(33240), + 36: uint16(34847), + 37: uint16(24266), + 38: uint16(26391), + 39: uint16(28010), + 40: uint16(29436), + 41: uint16(29701), + 42: uint16(29807), + 43: uint16(34690), + 44: uint16(37086), + 45: uint16(20358), + 46: uint16(23821), + 47: uint16(24480), + 48: uint16(33802), + 49: uint16(20919), + 50: uint16(25504), + 51: uint16(30053), + 52: uint16(20142), + 53: uint16(20486), + 54: uint16(20841), + 55: uint16(20937), + 56: uint16(26753), + 57: uint16(27153), + 58: uint16(31918), + 59: uint16(31921), + 60: uint16(31975), + 61: uint16(33391), + 62: uint16(35538), + 63: uint16(36635), + 64: uint16(37327), + 65: uint16(20406), + 66: uint16(20791), + 67: uint16(21237), + 68: uint16(21570), + 69: uint16(24300), + 70: uint16(24942), + 71: uint16(25150), + 72: uint16(26053), + 73: uint16(27354), + 74: uint16(28670), + 75: uint16(31018), + 76: uint16(34268), + 77: uint16(34851), + 78: uint16(38317), + 79: uint16(39522), + 80: uint16(39530), + 81: uint16(40599), + 82: uint16(40654), + 83: uint16(21147), + 84: uint16(26310), + 85: uint16(27511), + 86: uint16(28701), + 87: uint16(31019), + 88: uint16(36706), + 89: uint16(38722), + 90: uint16(24976), + 91: uint16(25088), + 92: uint16(25891), + 93: uint16(28451), + }, + 53: { + 0: uint16(29001), + 1: uint16(29833), + 2: uint16(32244), + 3: uint16(32879), + 4: uint16(34030), + 5: uint16(36646), + 6: uint16(36899), + 7: uint16(37706), + 8: uint16(20925), + 9: uint16(21015), + 10: uint16(21155), + 11: uint16(27916), + 12: uint16(28872), + 13: uint16(35010), + 14: uint16(24265), + 15: uint16(25986), + 16: uint16(27566), + 17: uint16(28610), + 18: uint16(31806), + 19: uint16(29557), + 20: uint16(20196), + 21: uint16(20278), + 22: uint16(22265), + 23: uint16(63839), + 24: uint16(23738), + 25: uint16(23994), + 26: uint16(24604), + 27: uint16(29618), + 28: uint16(31533), + 29: uint16(32666), + 30: uint16(32718), + 31: uint16(32838), + 32: uint16(36894), + 33: uint16(37428), + 34: uint16(38646), + 35: uint16(38728), + 36: uint16(38936), + 37: uint16(40801), + 38: uint16(20363), + 39: uint16(28583), + 40: uint16(31150), + 41: uint16(37300), + 42: uint16(38583), + 43: uint16(21214), + 44: uint16(63840), + 45: uint16(25736), + 46: uint16(25796), + 47: uint16(27347), + 48: uint16(28510), + 49: uint16(28696), + 50: uint16(29200), + 51: uint16(30439), + 52: uint16(32769), + 53: uint16(34310), + 54: uint16(34396), + 55: uint16(36335), + 56: uint16(36613), + 57: uint16(38706), + 58: uint16(39791), + 59: uint16(40442), + 60: uint16(40565), + 61: uint16(30860), + 62: uint16(31103), + 63: uint16(32160), + 64: uint16(33737), + 65: uint16(37636), + 66: uint16(40575), + 67: uint16(40595), + 68: uint16(35542), + 69: uint16(22751), + 70: uint16(24324), + 71: uint16(26407), + 72: uint16(28711), + 73: uint16(29903), + 74: uint16(31840), + 75: uint16(32894), + 76: uint16(20769), + 77: uint16(28712), + 78: uint16(29282), + 79: uint16(30922), + 80: uint16(36034), + 81: uint16(36058), + 82: uint16(36084), + 83: uint16(38647), + 84: uint16(20102), + 85: uint16(20698), + 86: uint16(23534), + 87: uint16(24278), + 88: uint16(26009), + 89: uint16(29134), + 90: uint16(30274), + 91: uint16(30637), + 92: uint16(32842), + 93: uint16(34044), + }, + 54: { + 0: uint16(36988), + 1: uint16(39719), + 2: uint16(40845), + 3: uint16(22744), + 4: uint16(23105), + 5: uint16(23650), + 6: uint16(27155), + 7: uint16(28122), + 8: uint16(28431), + 9: uint16(30267), + 10: uint16(32047), + 11: uint16(32311), + 12: uint16(34078), + 13: uint16(35128), + 14: uint16(37860), + 15: uint16(38475), + 16: uint16(21129), + 17: uint16(26066), + 18: uint16(26611), + 19: uint16(27060), + 20: uint16(27969), + 21: uint16(28316), + 22: uint16(28687), + 23: uint16(29705), + 24: uint16(29792), + 25: uint16(30041), + 26: uint16(30244), + 27: uint16(30827), + 28: uint16(35628), + 29: uint16(39006), + 30: uint16(20845), + 31: uint16(25134), + 32: uint16(38520), + 33: uint16(20374), + 34: uint16(20523), + 35: uint16(23833), + 36: uint16(28138), + 37: uint16(32184), + 38: uint16(36650), + 39: uint16(24459), + 40: uint16(24900), + 41: uint16(26647), + 42: uint16(63841), + 43: uint16(38534), + 44: uint16(21202), + 45: uint16(32907), + 46: uint16(20956), + 47: uint16(20940), + 48: uint16(26974), + 49: uint16(31260), + 50: uint16(32190), + 51: uint16(33777), + 52: uint16(38517), + 53: uint16(20442), + 54: uint16(21033), + 55: uint16(21400), + 56: uint16(21519), + 57: uint16(21774), + 58: uint16(23653), + 59: uint16(24743), + 60: uint16(26446), + 61: uint16(26792), + 62: uint16(28012), + 63: uint16(29313), + 64: uint16(29432), + 65: uint16(29702), + 66: uint16(29827), + 67: uint16(63842), + 68: uint16(30178), + 69: uint16(31852), + 70: uint16(32633), + 71: uint16(32696), + 72: uint16(33673), + 73: uint16(35023), + 74: uint16(35041), + 75: uint16(37324), + 76: uint16(37328), + 77: uint16(38626), + 78: uint16(39881), + 79: uint16(21533), + 80: uint16(28542), + 81: uint16(29136), + 82: uint16(29848), + 83: uint16(34298), + 84: uint16(36522), + 85: uint16(38563), + 86: uint16(40023), + 87: uint16(40607), + 88: uint16(26519), + 89: uint16(28107), + 90: uint16(29747), + 91: uint16(33256), + 92: uint16(38678), + 93: uint16(30764), + }, + 55: { + 0: uint16(31435), + 1: uint16(31520), + 2: uint16(31890), + 3: uint16(25705), + 4: uint16(29802), + 5: uint16(30194), + 6: uint16(30908), + 7: uint16(30952), + 8: uint16(39340), + 9: uint16(39764), + 10: uint16(40635), + 11: uint16(23518), + 12: uint16(24149), + 13: uint16(28448), + 14: uint16(33180), + 15: uint16(33707), + 16: uint16(37000), + 17: uint16(19975), + 18: uint16(21325), + 19: uint16(23081), + 20: uint16(24018), + 21: uint16(24398), + 22: uint16(24930), + 23: uint16(25405), + 24: uint16(26217), + 25: uint16(26364), + 26: uint16(28415), + 27: uint16(28459), + 28: uint16(28771), + 29: uint16(30622), + 30: uint16(33836), + 31: uint16(34067), + 32: uint16(34875), + 33: uint16(36627), + 34: uint16(39237), + 35: uint16(39995), + 36: uint16(21788), + 37: uint16(25273), + 38: uint16(26411), + 39: uint16(27819), + 40: uint16(33545), + 41: uint16(35178), + 42: uint16(38778), + 43: uint16(20129), + 44: uint16(22916), + 45: uint16(24536), + 46: uint16(24537), + 47: uint16(26395), + 48: uint16(32178), + 49: uint16(32596), + 50: uint16(33426), + 51: uint16(33579), + 52: uint16(33725), + 53: uint16(36638), + 54: uint16(37017), + 55: uint16(22475), + 56: uint16(22969), + 57: uint16(23186), + 58: uint16(23504), + 59: uint16(26151), + 60: uint16(26522), + 61: uint16(26757), + 62: uint16(27599), + 63: uint16(29028), + 64: uint16(32629), + 65: uint16(36023), + 66: uint16(36067), + 67: uint16(36993), + 68: uint16(39749), + 69: uint16(33032), + 70: uint16(35978), + 71: uint16(38476), + 72: uint16(39488), + 73: uint16(40613), + 74: uint16(23391), + 75: uint16(27667), + 76: uint16(29467), + 77: uint16(30450), + 78: uint16(30431), + 79: uint16(33804), + 80: uint16(20906), + 81: uint16(35219), + 82: uint16(20813), + 83: uint16(20885), + 84: uint16(21193), + 85: uint16(26825), + 86: uint16(27796), + 87: uint16(30468), + 88: uint16(30496), + 89: uint16(32191), + 90: uint16(32236), + 91: uint16(38754), + 92: uint16(40629), + 93: uint16(28357), + }, + 56: { + 0: uint16(34065), + 1: uint16(20901), + 2: uint16(21517), + 3: uint16(21629), + 4: uint16(26126), + 5: uint16(26269), + 6: uint16(26919), + 7: uint16(28319), + 8: uint16(30399), + 9: uint16(30609), + 10: uint16(33559), + 11: uint16(33986), + 12: uint16(34719), + 13: uint16(37225), + 14: uint16(37528), + 15: uint16(40180), + 16: uint16(34946), + 17: uint16(20398), + 18: uint16(20882), + 19: uint16(21215), + 20: uint16(22982), + 21: uint16(24125), + 22: uint16(24917), + 23: uint16(25720), + 24: uint16(25721), + 25: uint16(26286), + 26: uint16(26576), + 27: uint16(27169), + 28: uint16(27597), + 29: uint16(27611), + 30: uint16(29279), + 31: uint16(29281), + 32: uint16(29761), + 33: uint16(30520), + 34: uint16(30683), + 35: uint16(32791), + 36: uint16(33468), + 37: uint16(33541), + 38: uint16(35584), + 39: uint16(35624), + 40: uint16(35980), + 41: uint16(26408), + 42: uint16(27792), + 43: uint16(29287), + 44: uint16(30446), + 45: uint16(30566), + 46: uint16(31302), + 47: uint16(40361), + 48: uint16(27519), + 49: uint16(27794), + 50: uint16(22818), + 51: uint16(26406), + 52: uint16(33945), + 53: uint16(21359), + 54: uint16(22675), + 55: uint16(22937), + 56: uint16(24287), + 57: uint16(25551), + 58: uint16(26164), + 59: uint16(26483), + 60: uint16(28218), + 61: uint16(29483), + 62: uint16(31447), + 63: uint16(33495), + 64: uint16(37672), + 65: uint16(21209), + 66: uint16(24043), + 67: uint16(25006), + 68: uint16(25035), + 69: uint16(25098), + 70: uint16(25287), + 71: uint16(25771), + 72: uint16(26080), + 73: uint16(26969), + 74: uint16(27494), + 75: uint16(27595), + 76: uint16(28961), + 77: uint16(29687), + 78: uint16(30045), + 79: uint16(32326), + 80: uint16(33310), + 81: uint16(33538), + 82: uint16(34154), + 83: uint16(35491), + 84: uint16(36031), + 85: uint16(38695), + 86: uint16(40289), + 87: uint16(22696), + 88: uint16(40664), + 89: uint16(20497), + 90: uint16(21006), + 91: uint16(21563), + 92: uint16(21839), + 93: uint16(25991), + }, + 57: { + 0: uint16(27766), + 1: uint16(32010), + 2: uint16(32011), + 3: uint16(32862), + 4: uint16(34442), + 5: uint16(38272), + 6: uint16(38639), + 7: uint16(21247), + 8: uint16(27797), + 9: uint16(29289), + 10: uint16(21619), + 11: uint16(23194), + 12: uint16(23614), + 13: uint16(23883), + 14: uint16(24396), + 15: uint16(24494), + 16: uint16(26410), + 17: uint16(26806), + 18: uint16(26979), + 19: uint16(28220), + 20: uint16(28228), + 21: uint16(30473), + 22: uint16(31859), + 23: uint16(32654), + 24: uint16(34183), + 25: uint16(35598), + 26: uint16(36855), + 27: uint16(38753), + 28: uint16(40692), + 29: uint16(23735), + 30: uint16(24758), + 31: uint16(24845), + 32: uint16(25003), + 33: uint16(25935), + 34: uint16(26107), + 35: uint16(26108), + 36: uint16(27665), + 37: uint16(27887), + 38: uint16(29599), + 39: uint16(29641), + 40: uint16(32225), + 41: uint16(38292), + 42: uint16(23494), + 43: uint16(34588), + 44: uint16(35600), + 45: uint16(21085), + 46: uint16(21338), + 47: uint16(25293), + 48: uint16(25615), + 49: uint16(25778), + 50: uint16(26420), + 51: uint16(27192), + 52: uint16(27850), + 53: uint16(29632), + 54: uint16(29854), + 55: uint16(31636), + 56: uint16(31893), + 57: uint16(32283), + 58: uint16(33162), + 59: uint16(33334), + 60: uint16(34180), + 61: uint16(36843), + 62: uint16(38649), + 63: uint16(39361), + 64: uint16(20276), + 65: uint16(21322), + 66: uint16(21453), + 67: uint16(21467), + 68: uint16(25292), + 69: uint16(25644), + 70: uint16(25856), + 71: uint16(26001), + 72: uint16(27075), + 73: uint16(27886), + 74: uint16(28504), + 75: uint16(29677), + 76: uint16(30036), + 77: uint16(30242), + 78: uint16(30436), + 79: uint16(30460), + 80: uint16(30928), + 81: uint16(30971), + 82: uint16(31020), + 83: uint16(32070), + 84: uint16(33324), + 85: uint16(34784), + 86: uint16(36820), + 87: uint16(38930), + 88: uint16(39151), + 89: uint16(21187), + 90: uint16(25300), + 91: uint16(25765), + 92: uint16(28196), + 93: uint16(28497), + }, + 58: { + 0: uint16(30332), + 1: uint16(36299), + 2: uint16(37297), + 3: uint16(37474), + 4: uint16(39662), + 5: uint16(39747), + 6: uint16(20515), + 7: uint16(20621), + 8: uint16(22346), + 9: uint16(22952), + 10: uint16(23592), + 11: uint16(24135), + 12: uint16(24439), + 13: uint16(25151), + 14: uint16(25918), + 15: uint16(26041), + 16: uint16(26049), + 17: uint16(26121), + 18: uint16(26507), + 19: uint16(27036), + 20: uint16(28354), + 21: uint16(30917), + 22: uint16(32033), + 23: uint16(32938), + 24: uint16(33152), + 25: uint16(33323), + 26: uint16(33459), + 27: uint16(33953), + 28: uint16(34444), + 29: uint16(35370), + 30: uint16(35607), + 31: uint16(37030), + 32: uint16(38450), + 33: uint16(40848), + 34: uint16(20493), + 35: uint16(20467), + 36: uint16(63843), + 37: uint16(22521), + 38: uint16(24472), + 39: uint16(25308), + 40: uint16(25490), + 41: uint16(26479), + 42: uint16(28227), + 43: uint16(28953), + 44: uint16(30403), + 45: uint16(32972), + 46: uint16(32986), + 47: uint16(35060), + 48: uint16(35061), + 49: uint16(35097), + 50: uint16(36064), + 51: uint16(36649), + 52: uint16(37197), + 53: uint16(38506), + 54: uint16(20271), + 55: uint16(20336), + 56: uint16(24091), + 57: uint16(26575), + 58: uint16(26658), + 59: uint16(30333), + 60: uint16(30334), + 61: uint16(39748), + 62: uint16(24161), + 63: uint16(27146), + 64: uint16(29033), + 65: uint16(29140), + 66: uint16(30058), + 67: uint16(63844), + 68: uint16(32321), + 69: uint16(34115), + 70: uint16(34281), + 71: uint16(39132), + 72: uint16(20240), + 73: uint16(31567), + 74: uint16(32624), + 75: uint16(38309), + 76: uint16(20961), + 77: uint16(24070), + 78: uint16(26805), + 79: uint16(27710), + 80: uint16(27726), + 81: uint16(27867), + 82: uint16(29359), + 83: uint16(31684), + 84: uint16(33539), + 85: uint16(27861), + 86: uint16(29754), + 87: uint16(20731), + 88: uint16(21128), + 89: uint16(22721), + 90: uint16(25816), + 91: uint16(27287), + 92: uint16(29863), + 93: uint16(30294), + }, + 59: { + 0: uint16(30887), + 1: uint16(34327), + 2: uint16(38370), + 3: uint16(38713), + 4: uint16(63845), + 5: uint16(21342), + 6: uint16(24321), + 7: uint16(35722), + 8: uint16(36776), + 9: uint16(36783), + 10: uint16(37002), + 11: uint16(21029), + 12: uint16(30629), + 13: uint16(40009), + 14: uint16(40712), + 15: uint16(19993), + 16: uint16(20482), + 17: uint16(20853), + 18: uint16(23643), + 19: uint16(24183), + 20: uint16(26142), + 21: uint16(26170), + 22: uint16(26564), + 23: uint16(26821), + 24: uint16(28851), + 25: uint16(29953), + 26: uint16(30149), + 27: uint16(31177), + 28: uint16(31453), + 29: uint16(36647), + 30: uint16(39200), + 31: uint16(39432), + 32: uint16(20445), + 33: uint16(22561), + 34: uint16(22577), + 35: uint16(23542), + 36: uint16(26222), + 37: uint16(27493), + 38: uint16(27921), + 39: uint16(28282), + 40: uint16(28541), + 41: uint16(29668), + 42: uint16(29995), + 43: uint16(33769), + 44: uint16(35036), + 45: uint16(35091), + 46: uint16(35676), + 47: uint16(36628), + 48: uint16(20239), + 49: uint16(20693), + 50: uint16(21264), + 51: uint16(21340), + 52: uint16(23443), + 53: uint16(24489), + 54: uint16(26381), + 55: uint16(31119), + 56: uint16(33145), + 57: uint16(33583), + 58: uint16(34068), + 59: uint16(35079), + 60: uint16(35206), + 61: uint16(36665), + 62: uint16(36667), + 63: uint16(39333), + 64: uint16(39954), + 65: uint16(26412), + 66: uint16(20086), + 67: uint16(20472), + 68: uint16(22857), + 69: uint16(23553), + 70: uint16(23791), + 71: uint16(23792), + 72: uint16(25447), + 73: uint16(26834), + 74: uint16(28925), + 75: uint16(29090), + 76: uint16(29739), + 77: uint16(32299), + 78: uint16(34028), + 79: uint16(34562), + 80: uint16(36898), + 81: uint16(37586), + 82: uint16(40179), + 83: uint16(19981), + 84: uint16(20184), + 85: uint16(20463), + 86: uint16(20613), + 87: uint16(21078), + 88: uint16(21103), + 89: uint16(21542), + 90: uint16(21648), + 91: uint16(22496), + 92: uint16(22827), + 93: uint16(23142), + }, + 60: { + 0: uint16(23386), + 1: uint16(23413), + 2: uint16(23500), + 3: uint16(24220), + 4: uint16(63846), + 5: uint16(25206), + 6: uint16(25975), + 7: uint16(26023), + 8: uint16(28014), + 9: uint16(28325), + 10: uint16(29238), + 11: uint16(31526), + 12: uint16(31807), + 13: uint16(32566), + 14: uint16(33104), + 15: uint16(33105), + 16: uint16(33178), + 17: uint16(33344), + 18: uint16(33433), + 19: uint16(33705), + 20: uint16(35331), + 21: uint16(36000), + 22: uint16(36070), + 23: uint16(36091), + 24: uint16(36212), + 25: uint16(36282), + 26: uint16(37096), + 27: uint16(37340), + 28: uint16(38428), + 29: uint16(38468), + 30: uint16(39385), + 31: uint16(40167), + 32: uint16(21271), + 33: uint16(20998), + 34: uint16(21545), + 35: uint16(22132), + 36: uint16(22707), + 37: uint16(22868), + 38: uint16(22894), + 39: uint16(24575), + 40: uint16(24996), + 41: uint16(25198), + 42: uint16(26128), + 43: uint16(27774), + 44: uint16(28954), + 45: uint16(30406), + 46: uint16(31881), + 47: uint16(31966), + 48: uint16(32027), + 49: uint16(33452), + 50: uint16(36033), + 51: uint16(38640), + 52: uint16(63847), + 53: uint16(20315), + 54: uint16(24343), + 55: uint16(24447), + 56: uint16(25282), + 57: uint16(23849), + 58: uint16(26379), + 59: uint16(26842), + 60: uint16(30844), + 61: uint16(32323), + 62: uint16(40300), + 63: uint16(19989), + 64: uint16(20633), + 65: uint16(21269), + 66: uint16(21290), + 67: uint16(21329), + 68: uint16(22915), + 69: uint16(23138), + 70: uint16(24199), + 71: uint16(24754), + 72: uint16(24970), + 73: uint16(25161), + 74: uint16(25209), + 75: uint16(26000), + 76: uint16(26503), + 77: uint16(27047), + 78: uint16(27604), + 79: uint16(27606), + 80: uint16(27607), + 81: uint16(27608), + 82: uint16(27832), + 83: uint16(63848), + 84: uint16(29749), + 85: uint16(30202), + 86: uint16(30738), + 87: uint16(30865), + 88: uint16(31189), + 89: uint16(31192), + 90: uint16(31875), + 91: uint16(32203), + 92: uint16(32737), + 93: uint16(32933), + }, + 61: { + 0: uint16(33086), + 1: uint16(33218), + 2: uint16(33778), + 3: uint16(34586), + 4: uint16(35048), + 5: uint16(35513), + 6: uint16(35692), + 7: uint16(36027), + 8: uint16(37145), + 9: uint16(38750), + 10: uint16(39131), + 11: uint16(40763), + 12: uint16(22188), + 13: uint16(23338), + 14: uint16(24428), + 15: uint16(25996), + 16: uint16(27315), + 17: uint16(27567), + 18: uint16(27996), + 19: uint16(28657), + 20: uint16(28693), + 21: uint16(29277), + 22: uint16(29613), + 23: uint16(36007), + 24: uint16(36051), + 25: uint16(38971), + 26: uint16(24977), + 27: uint16(27703), + 28: uint16(32856), + 29: uint16(39425), + 30: uint16(20045), + 31: uint16(20107), + 32: uint16(20123), + 33: uint16(20181), + 34: uint16(20282), + 35: uint16(20284), + 36: uint16(20351), + 37: uint16(20447), + 38: uint16(20735), + 39: uint16(21490), + 40: uint16(21496), + 41: uint16(21766), + 42: uint16(21987), + 43: uint16(22235), + 44: uint16(22763), + 45: uint16(22882), + 46: uint16(23057), + 47: uint16(23531), + 48: uint16(23546), + 49: uint16(23556), + 50: uint16(24051), + 51: uint16(24107), + 52: uint16(24473), + 53: uint16(24605), + 54: uint16(25448), + 55: uint16(26012), + 56: uint16(26031), + 57: uint16(26614), + 58: uint16(26619), + 59: uint16(26797), + 60: uint16(27515), + 61: uint16(27801), + 62: uint16(27863), + 63: uint16(28195), + 64: uint16(28681), + 65: uint16(29509), + 66: uint16(30722), + 67: uint16(31038), + 68: uint16(31040), + 69: uint16(31072), + 70: uint16(31169), + 71: uint16(31721), + 72: uint16(32023), + 73: uint16(32114), + 74: uint16(32902), + 75: uint16(33293), + 76: uint16(33678), + 77: uint16(34001), + 78: uint16(34503), + 79: uint16(35039), + 80: uint16(35408), + 81: uint16(35422), + 82: uint16(35613), + 83: uint16(36060), + 84: uint16(36198), + 85: uint16(36781), + 86: uint16(37034), + 87: uint16(39164), + 88: uint16(39391), + 89: uint16(40605), + 90: uint16(21066), + 91: uint16(63849), + 92: uint16(26388), + 93: uint16(63850), + }, + 62: { + 0: uint16(20632), + 1: uint16(21034), + 2: uint16(23665), + 3: uint16(25955), + 4: uint16(27733), + 5: uint16(29642), + 6: uint16(29987), + 7: uint16(30109), + 8: uint16(31639), + 9: uint16(33948), + 10: uint16(37240), + 11: uint16(38704), + 12: uint16(20087), + 13: uint16(25746), + 14: uint16(27578), + 15: uint16(29022), + 16: uint16(34217), + 17: uint16(19977), + 18: uint16(63851), + 19: uint16(26441), + 20: uint16(26862), + 21: uint16(28183), + 22: uint16(33439), + 23: uint16(34072), + 24: uint16(34923), + 25: uint16(25591), + 26: uint16(28545), + 27: uint16(37394), + 28: uint16(39087), + 29: uint16(19978), + 30: uint16(20663), + 31: uint16(20687), + 32: uint16(20767), + 33: uint16(21830), + 34: uint16(21930), + 35: uint16(22039), + 36: uint16(23360), + 37: uint16(23577), + 38: uint16(23776), + 39: uint16(24120), + 40: uint16(24202), + 41: uint16(24224), + 42: uint16(24258), + 43: uint16(24819), + 44: uint16(26705), + 45: uint16(27233), + 46: uint16(28248), + 47: uint16(29245), + 48: uint16(29248), + 49: uint16(29376), + 50: uint16(30456), + 51: uint16(31077), + 52: uint16(31665), + 53: uint16(32724), + 54: uint16(35059), + 55: uint16(35316), + 56: uint16(35443), + 57: uint16(35937), + 58: uint16(36062), + 59: uint16(38684), + 60: uint16(22622), + 61: uint16(29885), + 62: uint16(36093), + 63: uint16(21959), + 64: uint16(63852), + 65: uint16(31329), + 66: uint16(32034), + 67: uint16(33394), + 68: uint16(29298), + 69: uint16(29983), + 70: uint16(29989), + 71: uint16(63853), + 72: uint16(31513), + 73: uint16(22661), + 74: uint16(22779), + 75: uint16(23996), + 76: uint16(24207), + 77: uint16(24246), + 78: uint16(24464), + 79: uint16(24661), + 80: uint16(25234), + 81: uint16(25471), + 82: uint16(25933), + 83: uint16(26257), + 84: uint16(26329), + 85: uint16(26360), + 86: uint16(26646), + 87: uint16(26866), + 88: uint16(29312), + 89: uint16(29790), + 90: uint16(31598), + 91: uint16(32110), + 92: uint16(32214), + 93: uint16(32626), + }, + 63: { + 0: uint16(32997), + 1: uint16(33298), + 2: uint16(34223), + 3: uint16(35199), + 4: uint16(35475), + 5: uint16(36893), + 6: uint16(37604), + 7: uint16(40653), + 8: uint16(40736), + 9: uint16(22805), + 10: uint16(22893), + 11: uint16(24109), + 12: uint16(24796), + 13: uint16(26132), + 14: uint16(26227), + 15: uint16(26512), + 16: uint16(27728), + 17: uint16(28101), + 18: uint16(28511), + 19: uint16(30707), + 20: uint16(30889), + 21: uint16(33990), + 22: uint16(37323), + 23: uint16(37675), + 24: uint16(20185), + 25: uint16(20682), + 26: uint16(20808), + 27: uint16(21892), + 28: uint16(23307), + 29: uint16(23459), + 30: uint16(25159), + 31: uint16(25982), + 32: uint16(26059), + 33: uint16(28210), + 34: uint16(29053), + 35: uint16(29697), + 36: uint16(29764), + 37: uint16(29831), + 38: uint16(29887), + 39: uint16(30316), + 40: uint16(31146), + 41: uint16(32218), + 42: uint16(32341), + 43: uint16(32680), + 44: uint16(33146), + 45: uint16(33203), + 46: uint16(33337), + 47: uint16(34330), + 48: uint16(34796), + 49: uint16(35445), + 50: uint16(36323), + 51: uint16(36984), + 52: uint16(37521), + 53: uint16(37925), + 54: uint16(39245), + 55: uint16(39854), + 56: uint16(21352), + 57: uint16(23633), + 58: uint16(26964), + 59: uint16(27844), + 60: uint16(27945), + 61: uint16(28203), + 62: uint16(33292), + 63: uint16(34203), + 64: uint16(35131), + 65: uint16(35373), + 66: uint16(35498), + 67: uint16(38634), + 68: uint16(40807), + 69: uint16(21089), + 70: uint16(26297), + 71: uint16(27570), + 72: uint16(32406), + 73: uint16(34814), + 74: uint16(36109), + 75: uint16(38275), + 76: uint16(38493), + 77: uint16(25885), + 78: uint16(28041), + 79: uint16(29166), + 80: uint16(63854), + 81: uint16(22478), + 82: uint16(22995), + 83: uint16(23468), + 84: uint16(24615), + 85: uint16(24826), + 86: uint16(25104), + 87: uint16(26143), + 88: uint16(26207), + 89: uint16(29481), + 90: uint16(29689), + 91: uint16(30427), + 92: uint16(30465), + 93: uint16(31596), + }, + 64: { + 0: uint16(32854), + 1: uint16(32882), + 2: uint16(33125), + 3: uint16(35488), + 4: uint16(37266), + 5: uint16(19990), + 6: uint16(21218), + 7: uint16(27506), + 8: uint16(27927), + 9: uint16(31237), + 10: uint16(31545), + 11: uint16(32048), + 12: uint16(63855), + 13: uint16(36016), + 14: uint16(21484), + 15: uint16(22063), + 16: uint16(22609), + 17: uint16(23477), + 18: uint16(23567), + 19: uint16(23569), + 20: uint16(24034), + 21: uint16(25152), + 22: uint16(25475), + 23: uint16(25620), + 24: uint16(26157), + 25: uint16(26803), + 26: uint16(27836), + 27: uint16(28040), + 28: uint16(28335), + 29: uint16(28703), + 30: uint16(28836), + 31: uint16(29138), + 32: uint16(29990), + 33: uint16(30095), + 34: uint16(30094), + 35: uint16(30233), + 36: uint16(31505), + 37: uint16(31712), + 38: uint16(31787), + 39: uint16(32032), + 40: uint16(32057), + 41: uint16(34092), + 42: uint16(34157), + 43: uint16(34311), + 44: uint16(35380), + 45: uint16(36877), + 46: uint16(36961), + 47: uint16(37045), + 48: uint16(37559), + 49: uint16(38902), + 50: uint16(39479), + 51: uint16(20439), + 52: uint16(23660), + 53: uint16(26463), + 54: uint16(28049), + 55: uint16(31903), + 56: uint16(32396), + 57: uint16(35606), + 58: uint16(36118), + 59: uint16(36895), + 60: uint16(23403), + 61: uint16(24061), + 62: uint16(25613), + 63: uint16(33984), + 64: uint16(36956), + 65: uint16(39137), + 66: uint16(29575), + 67: uint16(23435), + 68: uint16(24730), + 69: uint16(26494), + 70: uint16(28126), + 71: uint16(35359), + 72: uint16(35494), + 73: uint16(36865), + 74: uint16(38924), + 75: uint16(21047), + 76: uint16(63856), + 77: uint16(28753), + 78: uint16(30862), + 79: uint16(37782), + 80: uint16(34928), + 81: uint16(37335), + 82: uint16(20462), + 83: uint16(21463), + 84: uint16(22013), + 85: uint16(22234), + 86: uint16(22402), + 87: uint16(22781), + 88: uint16(23234), + 89: uint16(23432), + 90: uint16(23723), + 91: uint16(23744), + 92: uint16(24101), + 93: uint16(24833), + }, + 65: { + 0: uint16(25101), + 1: uint16(25163), + 2: uint16(25480), + 3: uint16(25628), + 4: uint16(25910), + 5: uint16(25976), + 6: uint16(27193), + 7: uint16(27530), + 8: uint16(27700), + 9: uint16(27929), + 10: uint16(28465), + 11: uint16(29159), + 12: uint16(29417), + 13: uint16(29560), + 14: uint16(29703), + 15: uint16(29874), + 16: uint16(30246), + 17: uint16(30561), + 18: uint16(31168), + 19: uint16(31319), + 20: uint16(31466), + 21: uint16(31929), + 22: uint16(32143), + 23: uint16(32172), + 24: uint16(32353), + 25: uint16(32670), + 26: uint16(33065), + 27: uint16(33585), + 28: uint16(33936), + 29: uint16(34010), + 30: uint16(34282), + 31: uint16(34966), + 32: uint16(35504), + 33: uint16(35728), + 34: uint16(36664), + 35: uint16(36930), + 36: uint16(36995), + 37: uint16(37228), + 38: uint16(37526), + 39: uint16(37561), + 40: uint16(38539), + 41: uint16(38567), + 42: uint16(38568), + 43: uint16(38614), + 44: uint16(38656), + 45: uint16(38920), + 46: uint16(39318), + 47: uint16(39635), + 48: uint16(39706), + 49: uint16(21460), + 50: uint16(22654), + 51: uint16(22809), + 52: uint16(23408), + 53: uint16(23487), + 54: uint16(28113), + 55: uint16(28506), + 56: uint16(29087), + 57: uint16(29729), + 58: uint16(29881), + 59: uint16(32901), + 60: uint16(33789), + 61: uint16(24033), + 62: uint16(24455), + 63: uint16(24490), + 64: uint16(24642), + 65: uint16(26092), + 66: uint16(26642), + 67: uint16(26991), + 68: uint16(27219), + 69: uint16(27529), + 70: uint16(27957), + 71: uint16(28147), + 72: uint16(29667), + 73: uint16(30462), + 74: uint16(30636), + 75: uint16(31565), + 76: uint16(32020), + 77: uint16(33059), + 78: uint16(33308), + 79: uint16(33600), + 80: uint16(34036), + 81: uint16(34147), + 82: uint16(35426), + 83: uint16(35524), + 84: uint16(37255), + 85: uint16(37662), + 86: uint16(38918), + 87: uint16(39348), + 88: uint16(25100), + 89: uint16(34899), + 90: uint16(36848), + 91: uint16(37477), + 92: uint16(23815), + 93: uint16(23847), + }, + 66: { + 0: uint16(23913), + 1: uint16(29791), + 2: uint16(33181), + 3: uint16(34664), + 4: uint16(28629), + 5: uint16(25342), + 6: uint16(32722), + 7: uint16(35126), + 8: uint16(35186), + 9: uint16(19998), + 10: uint16(20056), + 11: uint16(20711), + 12: uint16(21213), + 13: uint16(21319), + 14: uint16(25215), + 15: uint16(26119), + 16: uint16(32361), + 17: uint16(34821), + 18: uint16(38494), + 19: uint16(20365), + 20: uint16(21273), + 21: uint16(22070), + 22: uint16(22987), + 23: uint16(23204), + 24: uint16(23608), + 25: uint16(23630), + 26: uint16(23629), + 27: uint16(24066), + 28: uint16(24337), + 29: uint16(24643), + 30: uint16(26045), + 31: uint16(26159), + 32: uint16(26178), + 33: uint16(26558), + 34: uint16(26612), + 35: uint16(29468), + 36: uint16(30690), + 37: uint16(31034), + 38: uint16(32709), + 39: uint16(33940), + 40: uint16(33997), + 41: uint16(35222), + 42: uint16(35430), + 43: uint16(35433), + 44: uint16(35553), + 45: uint16(35925), + 46: uint16(35962), + 47: uint16(22516), + 48: uint16(23508), + 49: uint16(24335), + 50: uint16(24687), + 51: uint16(25325), + 52: uint16(26893), + 53: uint16(27542), + 54: uint16(28252), + 55: uint16(29060), + 56: uint16(31698), + 57: uint16(34645), + 58: uint16(35672), + 59: uint16(36606), + 60: uint16(39135), + 61: uint16(39166), + 62: uint16(20280), + 63: uint16(20353), + 64: uint16(20449), + 65: uint16(21627), + 66: uint16(23072), + 67: uint16(23480), + 68: uint16(24892), + 69: uint16(26032), + 70: uint16(26216), + 71: uint16(29180), + 72: uint16(30003), + 73: uint16(31070), + 74: uint16(32051), + 75: uint16(33102), + 76: uint16(33251), + 77: uint16(33688), + 78: uint16(34218), + 79: uint16(34254), + 80: uint16(34563), + 81: uint16(35338), + 82: uint16(36523), + 83: uint16(36763), + 84: uint16(63857), + 85: uint16(36805), + 86: uint16(22833), + 87: uint16(23460), + 88: uint16(23526), + 89: uint16(24713), + 90: uint16(23529), + 91: uint16(23563), + 92: uint16(24515), + 93: uint16(27777), + }, + 67: { + 0: uint16(63858), + 1: uint16(28145), + 2: uint16(28683), + 3: uint16(29978), + 4: uint16(33455), + 5: uint16(35574), + 6: uint16(20160), + 7: uint16(21313), + 8: uint16(63859), + 9: uint16(38617), + 10: uint16(27663), + 11: uint16(20126), + 12: uint16(20420), + 13: uint16(20818), + 14: uint16(21854), + 15: uint16(23077), + 16: uint16(23784), + 17: uint16(25105), + 18: uint16(29273), + 19: uint16(33469), + 20: uint16(33706), + 21: uint16(34558), + 22: uint16(34905), + 23: uint16(35357), + 24: uint16(38463), + 25: uint16(38597), + 26: uint16(39187), + 27: uint16(40201), + 28: uint16(40285), + 29: uint16(22538), + 30: uint16(23731), + 31: uint16(23997), + 32: uint16(24132), + 33: uint16(24801), + 34: uint16(24853), + 35: uint16(25569), + 36: uint16(27138), + 37: uint16(28197), + 38: uint16(37122), + 39: uint16(37716), + 40: uint16(38990), + 41: uint16(39952), + 42: uint16(40823), + 43: uint16(23433), + 44: uint16(23736), + 45: uint16(25353), + 46: uint16(26191), + 47: uint16(26696), + 48: uint16(30524), + 49: uint16(38593), + 50: uint16(38797), + 51: uint16(38996), + 52: uint16(39839), + 53: uint16(26017), + 54: uint16(35585), + 55: uint16(36555), + 56: uint16(38332), + 57: uint16(21813), + 58: uint16(23721), + 59: uint16(24022), + 60: uint16(24245), + 61: uint16(26263), + 62: uint16(30284), + 63: uint16(33780), + 64: uint16(38343), + 65: uint16(22739), + 66: uint16(25276), + 67: uint16(29390), + 68: uint16(40232), + 69: uint16(20208), + 70: uint16(22830), + 71: uint16(24591), + 72: uint16(26171), + 73: uint16(27523), + 74: uint16(31207), + 75: uint16(40230), + 76: uint16(21395), + 77: uint16(21696), + 78: uint16(22467), + 79: uint16(23830), + 80: uint16(24859), + 81: uint16(26326), + 82: uint16(28079), + 83: uint16(30861), + 84: uint16(33406), + 85: uint16(38552), + 86: uint16(38724), + 87: uint16(21380), + 88: uint16(25212), + 89: uint16(25494), + 90: uint16(28082), + 91: uint16(32266), + 92: uint16(33099), + 93: uint16(38989), + }, + 68: { + 0: uint16(27387), + 1: uint16(32588), + 2: uint16(40367), + 3: uint16(40474), + 4: uint16(20063), + 5: uint16(20539), + 6: uint16(20918), + 7: uint16(22812), + 8: uint16(24825), + 9: uint16(25590), + 10: uint16(26928), + 11: uint16(29242), + 12: uint16(32822), + 13: uint16(63860), + 14: uint16(37326), + 15: uint16(24369), + 16: uint16(63861), + 17: uint16(63862), + 18: uint16(32004), + 19: uint16(33509), + 20: uint16(33903), + 21: uint16(33979), + 22: uint16(34277), + 23: uint16(36493), + 24: uint16(63863), + 25: uint16(20335), + 26: uint16(63864), + 27: uint16(63865), + 28: uint16(22756), + 29: uint16(23363), + 30: uint16(24665), + 31: uint16(25562), + 32: uint16(25880), + 33: uint16(25965), + 34: uint16(26264), + 35: uint16(63866), + 36: uint16(26954), + 37: uint16(27171), + 38: uint16(27915), + 39: uint16(28673), + 40: uint16(29036), + 41: uint16(30162), + 42: uint16(30221), + 43: uint16(31155), + 44: uint16(31344), + 45: uint16(63867), + 46: uint16(32650), + 47: uint16(63868), + 48: uint16(35140), + 49: uint16(63869), + 50: uint16(35731), + 51: uint16(37312), + 52: uint16(38525), + 53: uint16(63870), + 54: uint16(39178), + 55: uint16(22276), + 56: uint16(24481), + 57: uint16(26044), + 58: uint16(28417), + 59: uint16(30208), + 60: uint16(31142), + 61: uint16(35486), + 62: uint16(39341), + 63: uint16(39770), + 64: uint16(40812), + 65: uint16(20740), + 66: uint16(25014), + 67: uint16(25233), + 68: uint16(27277), + 69: uint16(33222), + 70: uint16(20547), + 71: uint16(22576), + 72: uint16(24422), + 73: uint16(28937), + 74: uint16(35328), + 75: uint16(35578), + 76: uint16(23420), + 77: uint16(34326), + 78: uint16(20474), + 79: uint16(20796), + 80: uint16(22196), + 81: uint16(22852), + 82: uint16(25513), + 83: uint16(28153), + 84: uint16(23978), + 85: uint16(26989), + 86: uint16(20870), + 87: uint16(20104), + 88: uint16(20313), + 89: uint16(63871), + 90: uint16(63872), + 91: uint16(63873), + 92: uint16(22914), + 93: uint16(63874), + }, + 69: { + 0: uint16(63875), + 1: uint16(27487), + 2: uint16(27741), + 3: uint16(63876), + 4: uint16(29877), + 5: uint16(30998), + 6: uint16(63877), + 7: uint16(33287), + 8: uint16(33349), + 9: uint16(33593), + 10: uint16(36671), + 11: uint16(36701), + 12: uint16(63878), + 13: uint16(39192), + 14: uint16(63879), + 15: uint16(63880), + 16: uint16(63881), + 17: uint16(20134), + 18: uint16(63882), + 19: uint16(22495), + 20: uint16(24441), + 21: uint16(26131), + 22: uint16(63883), + 23: uint16(63884), + 24: uint16(30123), + 25: uint16(32377), + 26: uint16(35695), + 27: uint16(63885), + 28: uint16(36870), + 29: uint16(39515), + 30: uint16(22181), + 31: uint16(22567), + 32: uint16(23032), + 33: uint16(23071), + 34: uint16(23476), + 35: uint16(63886), + 36: uint16(24310), + 37: uint16(63887), + 38: uint16(63888), + 39: uint16(25424), + 40: uint16(25403), + 41: uint16(63889), + 42: uint16(26941), + 43: uint16(27783), + 44: uint16(27839), + 45: uint16(28046), + 46: uint16(28051), + 47: uint16(28149), + 48: uint16(28436), + 49: uint16(63890), + 50: uint16(28895), + 51: uint16(28982), + 52: uint16(29017), + 53: uint16(63891), + 54: uint16(29123), + 55: uint16(29141), + 56: uint16(63892), + 57: uint16(30799), + 58: uint16(30831), + 59: uint16(63893), + 60: uint16(31605), + 61: uint16(32227), + 62: uint16(63894), + 63: uint16(32303), + 64: uint16(63895), + 65: uint16(34893), + 66: uint16(36575), + 67: uint16(63896), + 68: uint16(63897), + 69: uint16(63898), + 70: uint16(37467), + 71: uint16(63899), + 72: uint16(40182), + 73: uint16(63900), + 74: uint16(63901), + 75: uint16(63902), + 76: uint16(24709), + 77: uint16(28037), + 78: uint16(63903), + 79: uint16(29105), + 80: uint16(63904), + 81: uint16(63905), + 82: uint16(38321), + 83: uint16(21421), + 84: uint16(63906), + 85: uint16(63907), + 86: uint16(63908), + 87: uint16(26579), + 88: uint16(63909), + 89: uint16(28814), + 90: uint16(28976), + 91: uint16(29744), + 92: uint16(33398), + 93: uint16(33490), + }, + 70: { + 0: uint16(63910), + 1: uint16(38331), + 2: uint16(39653), + 3: uint16(40573), + 4: uint16(26308), + 5: uint16(63911), + 6: uint16(29121), + 7: uint16(33865), + 8: uint16(63912), + 9: uint16(63913), + 10: uint16(22603), + 11: uint16(63914), + 12: uint16(63915), + 13: uint16(23992), + 14: uint16(24433), + 15: uint16(63916), + 16: uint16(26144), + 17: uint16(26254), + 18: uint16(27001), + 19: uint16(27054), + 20: uint16(27704), + 21: uint16(27891), + 22: uint16(28214), + 23: uint16(28481), + 24: uint16(28634), + 25: uint16(28699), + 26: uint16(28719), + 27: uint16(29008), + 28: uint16(29151), + 29: uint16(29552), + 30: uint16(63917), + 31: uint16(29787), + 32: uint16(63918), + 33: uint16(29908), + 34: uint16(30408), + 35: uint16(31310), + 36: uint16(32403), + 37: uint16(63919), + 38: uint16(63920), + 39: uint16(33521), + 40: uint16(35424), + 41: uint16(36814), + 42: uint16(63921), + 43: uint16(37704), + 44: uint16(63922), + 45: uint16(38681), + 46: uint16(63923), + 47: uint16(63924), + 48: uint16(20034), + 49: uint16(20522), + 50: uint16(63925), + 51: uint16(21000), + 52: uint16(21473), + 53: uint16(26355), + 54: uint16(27757), + 55: uint16(28618), + 56: uint16(29450), + 57: uint16(30591), + 58: uint16(31330), + 59: uint16(33454), + 60: uint16(34269), + 61: uint16(34306), + 62: uint16(63926), + 63: uint16(35028), + 64: uint16(35427), + 65: uint16(35709), + 66: uint16(35947), + 67: uint16(63927), + 68: uint16(37555), + 69: uint16(63928), + 70: uint16(38675), + 71: uint16(38928), + 72: uint16(20116), + 73: uint16(20237), + 74: uint16(20425), + 75: uint16(20658), + 76: uint16(21320), + 77: uint16(21566), + 78: uint16(21555), + 79: uint16(21978), + 80: uint16(22626), + 81: uint16(22714), + 82: uint16(22887), + 83: uint16(23067), + 84: uint16(23524), + 85: uint16(24735), + 86: uint16(63929), + 87: uint16(25034), + 88: uint16(25942), + 89: uint16(26111), + 90: uint16(26212), + 91: uint16(26791), + 92: uint16(27738), + 93: uint16(28595), + }, + 71: { + 0: uint16(28879), + 1: uint16(29100), + 2: uint16(29522), + 3: uint16(31613), + 4: uint16(34568), + 5: uint16(35492), + 6: uint16(39986), + 7: uint16(40711), + 8: uint16(23627), + 9: uint16(27779), + 10: uint16(29508), + 11: uint16(29577), + 12: uint16(37434), + 13: uint16(28331), + 14: uint16(29797), + 15: uint16(30239), + 16: uint16(31337), + 17: uint16(32277), + 18: uint16(34314), + 19: uint16(20800), + 20: uint16(22725), + 21: uint16(25793), + 22: uint16(29934), + 23: uint16(29973), + 24: uint16(30320), + 25: uint16(32705), + 26: uint16(37013), + 27: uint16(38605), + 28: uint16(39252), + 29: uint16(28198), + 30: uint16(29926), + 31: uint16(31401), + 32: uint16(31402), + 33: uint16(33253), + 34: uint16(34521), + 35: uint16(34680), + 36: uint16(35355), + 37: uint16(23113), + 38: uint16(23436), + 39: uint16(23451), + 40: uint16(26785), + 41: uint16(26880), + 42: uint16(28003), + 43: uint16(29609), + 44: uint16(29715), + 45: uint16(29740), + 46: uint16(30871), + 47: uint16(32233), + 48: uint16(32747), + 49: uint16(33048), + 50: uint16(33109), + 51: uint16(33694), + 52: uint16(35916), + 53: uint16(38446), + 54: uint16(38929), + 55: uint16(26352), + 56: uint16(24448), + 57: uint16(26106), + 58: uint16(26505), + 59: uint16(27754), + 60: uint16(29579), + 61: uint16(20525), + 62: uint16(23043), + 63: uint16(27498), + 64: uint16(30702), + 65: uint16(22806), + 66: uint16(23916), + 67: uint16(24013), + 68: uint16(29477), + 69: uint16(30031), + 70: uint16(63930), + 71: uint16(63931), + 72: uint16(20709), + 73: uint16(20985), + 74: uint16(22575), + 75: uint16(22829), + 76: uint16(22934), + 77: uint16(23002), + 78: uint16(23525), + 79: uint16(63932), + 80: uint16(63933), + 81: uint16(23970), + 82: uint16(25303), + 83: uint16(25622), + 84: uint16(25747), + 85: uint16(25854), + 86: uint16(63934), + 87: uint16(26332), + 88: uint16(63935), + 89: uint16(27208), + 90: uint16(63936), + 91: uint16(29183), + 92: uint16(29796), + 93: uint16(63937), + }, + 72: { + 0: uint16(31368), + 1: uint16(31407), + 2: uint16(32327), + 3: uint16(32350), + 4: uint16(32768), + 5: uint16(33136), + 6: uint16(63938), + 7: uint16(34799), + 8: uint16(35201), + 9: uint16(35616), + 10: uint16(36953), + 11: uint16(63939), + 12: uint16(36992), + 13: uint16(39250), + 14: uint16(24958), + 15: uint16(27442), + 16: uint16(28020), + 17: uint16(32287), + 18: uint16(35109), + 19: uint16(36785), + 20: uint16(20433), + 21: uint16(20653), + 22: uint16(20887), + 23: uint16(21191), + 24: uint16(22471), + 25: uint16(22665), + 26: uint16(23481), + 27: uint16(24248), + 28: uint16(24898), + 29: uint16(27029), + 30: uint16(28044), + 31: uint16(28263), + 32: uint16(28342), + 33: uint16(29076), + 34: uint16(29794), + 35: uint16(29992), + 36: uint16(29996), + 37: uint16(32883), + 38: uint16(33592), + 39: uint16(33993), + 40: uint16(36362), + 41: uint16(37780), + 42: uint16(37854), + 43: uint16(63940), + 44: uint16(20110), + 45: uint16(20305), + 46: uint16(20598), + 47: uint16(20778), + 48: uint16(21448), + 49: uint16(21451), + 50: uint16(21491), + 51: uint16(23431), + 52: uint16(23507), + 53: uint16(23588), + 54: uint16(24858), + 55: uint16(24962), + 56: uint16(26100), + 57: uint16(29275), + 58: uint16(29591), + 59: uint16(29760), + 60: uint16(30402), + 61: uint16(31056), + 62: uint16(31121), + 63: uint16(31161), + 64: uint16(32006), + 65: uint16(32701), + 66: uint16(33419), + 67: uint16(34261), + 68: uint16(34398), + 69: uint16(36802), + 70: uint16(36935), + 71: uint16(37109), + 72: uint16(37354), + 73: uint16(38533), + 74: uint16(38632), + 75: uint16(38633), + 76: uint16(21206), + 77: uint16(24423), + 78: uint16(26093), + 79: uint16(26161), + 80: uint16(26671), + 81: uint16(29020), + 82: uint16(31286), + 83: uint16(37057), + 84: uint16(38922), + 85: uint16(20113), + 86: uint16(63941), + 87: uint16(27218), + 88: uint16(27550), + 89: uint16(28560), + 90: uint16(29065), + 91: uint16(32792), + 92: uint16(33464), + 93: uint16(34131), + }, + 73: { + 0: uint16(36939), + 1: uint16(38549), + 2: uint16(38642), + 3: uint16(38907), + 4: uint16(34074), + 5: uint16(39729), + 6: uint16(20112), + 7: uint16(29066), + 8: uint16(38596), + 9: uint16(20803), + 10: uint16(21407), + 11: uint16(21729), + 12: uint16(22291), + 13: uint16(22290), + 14: uint16(22435), + 15: uint16(23195), + 16: uint16(23236), + 17: uint16(23491), + 18: uint16(24616), + 19: uint16(24895), + 20: uint16(25588), + 21: uint16(27781), + 22: uint16(27961), + 23: uint16(28274), + 24: uint16(28304), + 25: uint16(29232), + 26: uint16(29503), + 27: uint16(29783), + 28: uint16(33489), + 29: uint16(34945), + 30: uint16(36677), + 31: uint16(36960), + 32: uint16(63942), + 33: uint16(38498), + 34: uint16(39000), + 35: uint16(40219), + 36: uint16(26376), + 37: uint16(36234), + 38: uint16(37470), + 39: uint16(20301), + 40: uint16(20553), + 41: uint16(20702), + 42: uint16(21361), + 43: uint16(22285), + 44: uint16(22996), + 45: uint16(23041), + 46: uint16(23561), + 47: uint16(24944), + 48: uint16(26256), + 49: uint16(28205), + 50: uint16(29234), + 51: uint16(29771), + 52: uint16(32239), + 53: uint16(32963), + 54: uint16(33806), + 55: uint16(33894), + 56: uint16(34111), + 57: uint16(34655), + 58: uint16(34907), + 59: uint16(35096), + 60: uint16(35586), + 61: uint16(36949), + 62: uint16(38859), + 63: uint16(39759), + 64: uint16(20083), + 65: uint16(20369), + 66: uint16(20754), + 67: uint16(20842), + 68: uint16(63943), + 69: uint16(21807), + 70: uint16(21929), + 71: uint16(23418), + 72: uint16(23461), + 73: uint16(24188), + 74: uint16(24189), + 75: uint16(24254), + 76: uint16(24736), + 77: uint16(24799), + 78: uint16(24840), + 79: uint16(24841), + 80: uint16(25540), + 81: uint16(25912), + 82: uint16(26377), + 83: uint16(63944), + 84: uint16(26580), + 85: uint16(26586), + 86: uint16(63945), + 87: uint16(26977), + 88: uint16(26978), + 89: uint16(27833), + 90: uint16(27943), + 91: uint16(63946), + 92: uint16(28216), + 93: uint16(63947), + }, + 74: { + 0: uint16(28641), + 1: uint16(29494), + 2: uint16(29495), + 3: uint16(63948), + 4: uint16(29788), + 5: uint16(30001), + 6: uint16(63949), + 7: uint16(30290), + 8: uint16(63950), + 9: uint16(63951), + 10: uint16(32173), + 11: uint16(33278), + 12: uint16(33848), + 13: uint16(35029), + 14: uint16(35480), + 15: uint16(35547), + 16: uint16(35565), + 17: uint16(36400), + 18: uint16(36418), + 19: uint16(36938), + 20: uint16(36926), + 21: uint16(36986), + 22: uint16(37193), + 23: uint16(37321), + 24: uint16(37742), + 25: uint16(63952), + 26: uint16(63953), + 27: uint16(22537), + 28: uint16(63954), + 29: uint16(27603), + 30: uint16(32905), + 31: uint16(32946), + 32: uint16(63955), + 33: uint16(63956), + 34: uint16(20801), + 35: uint16(22891), + 36: uint16(23609), + 37: uint16(63957), + 38: uint16(63958), + 39: uint16(28516), + 40: uint16(29607), + 41: uint16(32996), + 42: uint16(36103), + 43: uint16(63959), + 44: uint16(37399), + 45: uint16(38287), + 46: uint16(63960), + 47: uint16(63961), + 48: uint16(63962), + 49: uint16(63963), + 50: uint16(32895), + 51: uint16(25102), + 52: uint16(28700), + 53: uint16(32104), + 54: uint16(34701), + 55: uint16(63964), + 56: uint16(22432), + 57: uint16(24681), + 58: uint16(24903), + 59: uint16(27575), + 60: uint16(35518), + 61: uint16(37504), + 62: uint16(38577), + 63: uint16(20057), + 64: uint16(21535), + 65: uint16(28139), + 66: uint16(34093), + 67: uint16(38512), + 68: uint16(38899), + 69: uint16(39150), + 70: uint16(25558), + 71: uint16(27875), + 72: uint16(37009), + 73: uint16(20957), + 74: uint16(25033), + 75: uint16(33210), + 76: uint16(40441), + 77: uint16(20381), + 78: uint16(20506), + 79: uint16(20736), + 80: uint16(23452), + 81: uint16(24847), + 82: uint16(25087), + 83: uint16(25836), + 84: uint16(26885), + 85: uint16(27589), + 86: uint16(30097), + 87: uint16(30691), + 88: uint16(32681), + 89: uint16(33380), + 90: uint16(34191), + 91: uint16(34811), + 92: uint16(34915), + 93: uint16(35516), + }, + 75: { + 0: uint16(35696), + 1: uint16(37291), + 2: uint16(20108), + 3: uint16(20197), + 4: uint16(20234), + 5: uint16(63965), + 6: uint16(63966), + 7: uint16(22839), + 8: uint16(23016), + 9: uint16(63967), + 10: uint16(24050), + 11: uint16(24347), + 12: uint16(24411), + 13: uint16(24609), + 14: uint16(63968), + 15: uint16(63969), + 16: uint16(63970), + 17: uint16(63971), + 18: uint16(29246), + 19: uint16(29669), + 20: uint16(63972), + 21: uint16(30064), + 22: uint16(30157), + 23: uint16(63973), + 24: uint16(31227), + 25: uint16(63974), + 26: uint16(32780), + 27: uint16(32819), + 28: uint16(32900), + 29: uint16(33505), + 30: uint16(33617), + 31: uint16(63975), + 32: uint16(63976), + 33: uint16(36029), + 34: uint16(36019), + 35: uint16(36999), + 36: uint16(63977), + 37: uint16(63978), + 38: uint16(39156), + 39: uint16(39180), + 40: uint16(63979), + 41: uint16(63980), + 42: uint16(28727), + 43: uint16(30410), + 44: uint16(32714), + 45: uint16(32716), + 46: uint16(32764), + 47: uint16(35610), + 48: uint16(20154), + 49: uint16(20161), + 50: uint16(20995), + 51: uint16(21360), + 52: uint16(63981), + 53: uint16(21693), + 54: uint16(22240), + 55: uint16(23035), + 56: uint16(23493), + 57: uint16(24341), + 58: uint16(24525), + 59: uint16(28270), + 60: uint16(63982), + 61: uint16(63983), + 62: uint16(32106), + 63: uint16(33589), + 64: uint16(63984), + 65: uint16(34451), + 66: uint16(35469), + 67: uint16(63985), + 68: uint16(38765), + 69: uint16(38775), + 70: uint16(63986), + 71: uint16(63987), + 72: uint16(19968), + 73: uint16(20314), + 74: uint16(20350), + 75: uint16(22777), + 76: uint16(26085), + 77: uint16(28322), + 78: uint16(36920), + 79: uint16(37808), + 80: uint16(39353), + 81: uint16(20219), + 82: uint16(22764), + 83: uint16(22922), + 84: uint16(23001), + 85: uint16(24641), + 86: uint16(63988), + 87: uint16(63989), + 88: uint16(31252), + 89: uint16(63990), + 90: uint16(33615), + 91: uint16(36035), + 92: uint16(20837), + 93: uint16(21316), + }, + 76: { + 0: uint16(63991), + 1: uint16(63992), + 2: uint16(63993), + 3: uint16(20173), + 4: uint16(21097), + 5: uint16(23381), + 6: uint16(33471), + 7: uint16(20180), + 8: uint16(21050), + 9: uint16(21672), + 10: uint16(22985), + 11: uint16(23039), + 12: uint16(23376), + 13: uint16(23383), + 14: uint16(23388), + 15: uint16(24675), + 16: uint16(24904), + 17: uint16(28363), + 18: uint16(28825), + 19: uint16(29038), + 20: uint16(29574), + 21: uint16(29943), + 22: uint16(30133), + 23: uint16(30913), + 24: uint16(32043), + 25: uint16(32773), + 26: uint16(33258), + 27: uint16(33576), + 28: uint16(34071), + 29: uint16(34249), + 30: uint16(35566), + 31: uint16(36039), + 32: uint16(38604), + 33: uint16(20316), + 34: uint16(21242), + 35: uint16(22204), + 36: uint16(26027), + 37: uint16(26152), + 38: uint16(28796), + 39: uint16(28856), + 40: uint16(29237), + 41: uint16(32189), + 42: uint16(33421), + 43: uint16(37196), + 44: uint16(38592), + 45: uint16(40306), + 46: uint16(23409), + 47: uint16(26855), + 48: uint16(27544), + 49: uint16(28538), + 50: uint16(30430), + 51: uint16(23697), + 52: uint16(26283), + 53: uint16(28507), + 54: uint16(31668), + 55: uint16(31786), + 56: uint16(34870), + 57: uint16(38620), + 58: uint16(19976), + 59: uint16(20183), + 60: uint16(21280), + 61: uint16(22580), + 62: uint16(22715), + 63: uint16(22767), + 64: uint16(22892), + 65: uint16(23559), + 66: uint16(24115), + 67: uint16(24196), + 68: uint16(24373), + 69: uint16(25484), + 70: uint16(26290), + 71: uint16(26454), + 72: uint16(27167), + 73: uint16(27299), + 74: uint16(27404), + 75: uint16(28479), + 76: uint16(29254), + 77: uint16(63994), + 78: uint16(29520), + 79: uint16(29835), + 80: uint16(31456), + 81: uint16(31911), + 82: uint16(33144), + 83: uint16(33247), + 84: uint16(33255), + 85: uint16(33674), + 86: uint16(33900), + 87: uint16(34083), + 88: uint16(34196), + 89: uint16(34255), + 90: uint16(35037), + 91: uint16(36115), + 92: uint16(37292), + 93: uint16(38263), + }, + 77: { + 0: uint16(38556), + 1: uint16(20877), + 2: uint16(21705), + 3: uint16(22312), + 4: uint16(23472), + 5: uint16(25165), + 6: uint16(26448), + 7: uint16(26685), + 8: uint16(26771), + 9: uint16(28221), + 10: uint16(28371), + 11: uint16(28797), + 12: uint16(32289), + 13: uint16(35009), + 14: uint16(36001), + 15: uint16(36617), + 16: uint16(40779), + 17: uint16(40782), + 18: uint16(29229), + 19: uint16(31631), + 20: uint16(35533), + 21: uint16(37658), + 22: uint16(20295), + 23: uint16(20302), + 24: uint16(20786), + 25: uint16(21632), + 26: uint16(22992), + 27: uint16(24213), + 28: uint16(25269), + 29: uint16(26485), + 30: uint16(26990), + 31: uint16(27159), + 32: uint16(27822), + 33: uint16(28186), + 34: uint16(29401), + 35: uint16(29482), + 36: uint16(30141), + 37: uint16(31672), + 38: uint16(32053), + 39: uint16(33511), + 40: uint16(33785), + 41: uint16(33879), + 42: uint16(34295), + 43: uint16(35419), + 44: uint16(36015), + 45: uint16(36487), + 46: uint16(36889), + 47: uint16(37048), + 48: uint16(38606), + 49: uint16(40799), + 50: uint16(21219), + 51: uint16(21514), + 52: uint16(23265), + 53: uint16(23490), + 54: uint16(25688), + 55: uint16(25973), + 56: uint16(28404), + 57: uint16(29380), + 58: uint16(63995), + 59: uint16(30340), + 60: uint16(31309), + 61: uint16(31515), + 62: uint16(31821), + 63: uint16(32318), + 64: uint16(32735), + 65: uint16(33659), + 66: uint16(35627), + 67: uint16(36042), + 68: uint16(36196), + 69: uint16(36321), + 70: uint16(36447), + 71: uint16(36842), + 72: uint16(36857), + 73: uint16(36969), + 74: uint16(37841), + 75: uint16(20291), + 76: uint16(20346), + 77: uint16(20659), + 78: uint16(20840), + 79: uint16(20856), + 80: uint16(21069), + 81: uint16(21098), + 82: uint16(22625), + 83: uint16(22652), + 84: uint16(22880), + 85: uint16(23560), + 86: uint16(23637), + 87: uint16(24283), + 88: uint16(24731), + 89: uint16(25136), + 90: uint16(26643), + 91: uint16(27583), + 92: uint16(27656), + 93: uint16(28593), + }, + 78: { + 0: uint16(29006), + 1: uint16(29728), + 2: uint16(30000), + 3: uint16(30008), + 4: uint16(30033), + 5: uint16(30322), + 6: uint16(31564), + 7: uint16(31627), + 8: uint16(31661), + 9: uint16(31686), + 10: uint16(32399), + 11: uint16(35438), + 12: uint16(36670), + 13: uint16(36681), + 14: uint16(37439), + 15: uint16(37523), + 16: uint16(37666), + 17: uint16(37931), + 18: uint16(38651), + 19: uint16(39002), + 20: uint16(39019), + 21: uint16(39198), + 22: uint16(20999), + 23: uint16(25130), + 24: uint16(25240), + 25: uint16(27993), + 26: uint16(30308), + 27: uint16(31434), + 28: uint16(31680), + 29: uint16(32118), + 30: uint16(21344), + 31: uint16(23742), + 32: uint16(24215), + 33: uint16(28472), + 34: uint16(28857), + 35: uint16(31896), + 36: uint16(38673), + 37: uint16(39822), + 38: uint16(40670), + 39: uint16(25509), + 40: uint16(25722), + 41: uint16(34678), + 42: uint16(19969), + 43: uint16(20117), + 44: uint16(20141), + 45: uint16(20572), + 46: uint16(20597), + 47: uint16(21576), + 48: uint16(22979), + 49: uint16(23450), + 50: uint16(24128), + 51: uint16(24237), + 52: uint16(24311), + 53: uint16(24449), + 54: uint16(24773), + 55: uint16(25402), + 56: uint16(25919), + 57: uint16(25972), + 58: uint16(26060), + 59: uint16(26230), + 60: uint16(26232), + 61: uint16(26622), + 62: uint16(26984), + 63: uint16(27273), + 64: uint16(27491), + 65: uint16(27712), + 66: uint16(28096), + 67: uint16(28136), + 68: uint16(28191), + 69: uint16(28254), + 70: uint16(28702), + 71: uint16(28833), + 72: uint16(29582), + 73: uint16(29693), + 74: uint16(30010), + 75: uint16(30555), + 76: uint16(30855), + 77: uint16(31118), + 78: uint16(31243), + 79: uint16(31357), + 80: uint16(31934), + 81: uint16(32142), + 82: uint16(33351), + 83: uint16(35330), + 84: uint16(35562), + 85: uint16(35998), + 86: uint16(37165), + 87: uint16(37194), + 88: uint16(37336), + 89: uint16(37478), + 90: uint16(37580), + 91: uint16(37664), + 92: uint16(38662), + 93: uint16(38742), + }, + 79: { + 0: uint16(38748), + 1: uint16(38914), + 2: uint16(40718), + 3: uint16(21046), + 4: uint16(21137), + 5: uint16(21884), + 6: uint16(22564), + 7: uint16(24093), + 8: uint16(24351), + 9: uint16(24716), + 10: uint16(25552), + 11: uint16(26799), + 12: uint16(28639), + 13: uint16(31085), + 14: uint16(31532), + 15: uint16(33229), + 16: uint16(34234), + 17: uint16(35069), + 18: uint16(35576), + 19: uint16(36420), + 20: uint16(37261), + 21: uint16(38500), + 22: uint16(38555), + 23: uint16(38717), + 24: uint16(38988), + 25: uint16(40778), + 26: uint16(20430), + 27: uint16(20806), + 28: uint16(20939), + 29: uint16(21161), + 30: uint16(22066), + 31: uint16(24340), + 32: uint16(24427), + 33: uint16(25514), + 34: uint16(25805), + 35: uint16(26089), + 36: uint16(26177), + 37: uint16(26362), + 38: uint16(26361), + 39: uint16(26397), + 40: uint16(26781), + 41: uint16(26839), + 42: uint16(27133), + 43: uint16(28437), + 44: uint16(28526), + 45: uint16(29031), + 46: uint16(29157), + 47: uint16(29226), + 48: uint16(29866), + 49: uint16(30522), + 50: uint16(31062), + 51: uint16(31066), + 52: uint16(31199), + 53: uint16(31264), + 54: uint16(31381), + 55: uint16(31895), + 56: uint16(31967), + 57: uint16(32068), + 58: uint16(32368), + 59: uint16(32903), + 60: uint16(34299), + 61: uint16(34468), + 62: uint16(35412), + 63: uint16(35519), + 64: uint16(36249), + 65: uint16(36481), + 66: uint16(36896), + 67: uint16(36973), + 68: uint16(37347), + 69: uint16(38459), + 70: uint16(38613), + 71: uint16(40165), + 72: uint16(26063), + 73: uint16(31751), + 74: uint16(36275), + 75: uint16(37827), + 76: uint16(23384), + 77: uint16(23562), + 78: uint16(21330), + 79: uint16(25305), + 80: uint16(29469), + 81: uint16(20519), + 82: uint16(23447), + 83: uint16(24478), + 84: uint16(24752), + 85: uint16(24939), + 86: uint16(26837), + 87: uint16(28121), + 88: uint16(29742), + 89: uint16(31278), + 90: uint16(32066), + 91: uint16(32156), + 92: uint16(32305), + 93: uint16(33131), + }, + 80: { + 0: uint16(36394), + 1: uint16(36405), + 2: uint16(37758), + 3: uint16(37912), + 4: uint16(20304), + 5: uint16(22352), + 6: uint16(24038), + 7: uint16(24231), + 8: uint16(25387), + 9: uint16(32618), + 10: uint16(20027), + 11: uint16(20303), + 12: uint16(20367), + 13: uint16(20570), + 14: uint16(23005), + 15: uint16(32964), + 16: uint16(21610), + 17: uint16(21608), + 18: uint16(22014), + 19: uint16(22863), + 20: uint16(23449), + 21: uint16(24030), + 22: uint16(24282), + 23: uint16(26205), + 24: uint16(26417), + 25: uint16(26609), + 26: uint16(26666), + 27: uint16(27880), + 28: uint16(27954), + 29: uint16(28234), + 30: uint16(28557), + 31: uint16(28855), + 32: uint16(29664), + 33: uint16(30087), + 34: uint16(31820), + 35: uint16(32002), + 36: uint16(32044), + 37: uint16(32162), + 38: uint16(33311), + 39: uint16(34523), + 40: uint16(35387), + 41: uint16(35461), + 42: uint16(36208), + 43: uint16(36490), + 44: uint16(36659), + 45: uint16(36913), + 46: uint16(37198), + 47: uint16(37202), + 48: uint16(37956), + 49: uint16(39376), + 50: uint16(31481), + 51: uint16(31909), + 52: uint16(20426), + 53: uint16(20737), + 54: uint16(20934), + 55: uint16(22472), + 56: uint16(23535), + 57: uint16(23803), + 58: uint16(26201), + 59: uint16(27197), + 60: uint16(27994), + 61: uint16(28310), + 62: uint16(28652), + 63: uint16(28940), + 64: uint16(30063), + 65: uint16(31459), + 66: uint16(34850), + 67: uint16(36897), + 68: uint16(36981), + 69: uint16(38603), + 70: uint16(39423), + 71: uint16(33537), + 72: uint16(20013), + 73: uint16(20210), + 74: uint16(34886), + 75: uint16(37325), + 76: uint16(21373), + 77: uint16(27355), + 78: uint16(26987), + 79: uint16(27713), + 80: uint16(33914), + 81: uint16(22686), + 82: uint16(24974), + 83: uint16(26366), + 84: uint16(25327), + 85: uint16(28893), + 86: uint16(29969), + 87: uint16(30151), + 88: uint16(32338), + 89: uint16(33976), + 90: uint16(35657), + 91: uint16(36104), + 92: uint16(20043), + 93: uint16(21482), + }, + 81: { + 0: uint16(21675), + 1: uint16(22320), + 2: uint16(22336), + 3: uint16(24535), + 4: uint16(25345), + 5: uint16(25351), + 6: uint16(25711), + 7: uint16(25903), + 8: uint16(26088), + 9: uint16(26234), + 10: uint16(26525), + 11: uint16(26547), + 12: uint16(27490), + 13: uint16(27744), + 14: uint16(27802), + 15: uint16(28460), + 16: uint16(30693), + 17: uint16(30757), + 18: uint16(31049), + 19: uint16(31063), + 20: uint16(32025), + 21: uint16(32930), + 22: uint16(33026), + 23: uint16(33267), + 24: uint16(33437), + 25: uint16(33463), + 26: uint16(34584), + 27: uint16(35468), + 28: uint16(63996), + 29: uint16(36100), + 30: uint16(36286), + 31: uint16(36978), + 32: uint16(30452), + 33: uint16(31257), + 34: uint16(31287), + 35: uint16(32340), + 36: uint16(32887), + 37: uint16(21767), + 38: uint16(21972), + 39: uint16(22645), + 40: uint16(25391), + 41: uint16(25634), + 42: uint16(26185), + 43: uint16(26187), + 44: uint16(26733), + 45: uint16(27035), + 46: uint16(27524), + 47: uint16(27941), + 48: uint16(28337), + 49: uint16(29645), + 50: uint16(29800), + 51: uint16(29857), + 52: uint16(30043), + 53: uint16(30137), + 54: uint16(30433), + 55: uint16(30494), + 56: uint16(30603), + 57: uint16(31206), + 58: uint16(32265), + 59: uint16(32285), + 60: uint16(33275), + 61: uint16(34095), + 62: uint16(34967), + 63: uint16(35386), + 64: uint16(36049), + 65: uint16(36587), + 66: uint16(36784), + 67: uint16(36914), + 68: uint16(37805), + 69: uint16(38499), + 70: uint16(38515), + 71: uint16(38663), + 72: uint16(20356), + 73: uint16(21489), + 74: uint16(23018), + 75: uint16(23241), + 76: uint16(24089), + 77: uint16(26702), + 78: uint16(29894), + 79: uint16(30142), + 80: uint16(31209), + 81: uint16(31378), + 82: uint16(33187), + 83: uint16(34541), + 84: uint16(36074), + 85: uint16(36300), + 86: uint16(36845), + 87: uint16(26015), + 88: uint16(26389), + 89: uint16(63997), + 90: uint16(22519), + 91: uint16(28503), + 92: uint16(32221), + 93: uint16(36655), + }, + 82: { + 0: uint16(37878), + 1: uint16(38598), + 2: uint16(24501), + 3: uint16(25074), + 4: uint16(28548), + 5: uint16(19988), + 6: uint16(20376), + 7: uint16(20511), + 8: uint16(21449), + 9: uint16(21983), + 10: uint16(23919), + 11: uint16(24046), + 12: uint16(27425), + 13: uint16(27492), + 14: uint16(30923), + 15: uint16(31642), + 16: uint16(63998), + 17: uint16(36425), + 18: uint16(36554), + 19: uint16(36974), + 20: uint16(25417), + 21: uint16(25662), + 22: uint16(30528), + 23: uint16(31364), + 24: uint16(37679), + 25: uint16(38015), + 26: uint16(40810), + 27: uint16(25776), + 28: uint16(28591), + 29: uint16(29158), + 30: uint16(29864), + 31: uint16(29914), + 32: uint16(31428), + 33: uint16(31762), + 34: uint16(32386), + 35: uint16(31922), + 36: uint16(32408), + 37: uint16(35738), + 38: uint16(36106), + 39: uint16(38013), + 40: uint16(39184), + 41: uint16(39244), + 42: uint16(21049), + 43: uint16(23519), + 44: uint16(25830), + 45: uint16(26413), + 46: uint16(32046), + 47: uint16(20717), + 48: uint16(21443), + 49: uint16(22649), + 50: uint16(24920), + 51: uint16(24921), + 52: uint16(25082), + 53: uint16(26028), + 54: uint16(31449), + 55: uint16(35730), + 56: uint16(35734), + 57: uint16(20489), + 58: uint16(20513), + 59: uint16(21109), + 60: uint16(21809), + 61: uint16(23100), + 62: uint16(24288), + 63: uint16(24432), + 64: uint16(24884), + 65: uint16(25950), + 66: uint16(26124), + 67: uint16(26166), + 68: uint16(26274), + 69: uint16(27085), + 70: uint16(28356), + 71: uint16(28466), + 72: uint16(29462), + 73: uint16(30241), + 74: uint16(31379), + 75: uint16(33081), + 76: uint16(33369), + 77: uint16(33750), + 78: uint16(33980), + 79: uint16(20661), + 80: uint16(22512), + 81: uint16(23488), + 82: uint16(23528), + 83: uint16(24425), + 84: uint16(25505), + 85: uint16(30758), + 86: uint16(32181), + 87: uint16(33756), + 88: uint16(34081), + 89: uint16(37319), + 90: uint16(37365), + 91: uint16(20874), + 92: uint16(26613), + 93: uint16(31574), + }, + 83: { + 0: uint16(36012), + 1: uint16(20932), + 2: uint16(22971), + 3: uint16(24765), + 4: uint16(34389), + 5: uint16(20508), + 6: uint16(63999), + 7: uint16(21076), + 8: uint16(23610), + 9: uint16(24957), + 10: uint16(25114), + 11: uint16(25299), + 12: uint16(25842), + 13: uint16(26021), + 14: uint16(28364), + 15: uint16(30240), + 16: uint16(33034), + 17: uint16(36448), + 18: uint16(38495), + 19: uint16(38587), + 20: uint16(20191), + 21: uint16(21315), + 22: uint16(21912), + 23: uint16(22825), + 24: uint16(24029), + 25: uint16(25797), + 26: uint16(27849), + 27: uint16(28154), + 28: uint16(29588), + 29: uint16(31359), + 30: uint16(33307), + 31: uint16(34214), + 32: uint16(36068), + 33: uint16(36368), + 34: uint16(36983), + 35: uint16(37351), + 36: uint16(38369), + 37: uint16(38433), + 38: uint16(38854), + 39: uint16(20984), + 40: uint16(21746), + 41: uint16(21894), + 42: uint16(24505), + 43: uint16(25764), + 44: uint16(28552), + 45: uint16(32180), + 46: uint16(36639), + 47: uint16(36685), + 48: uint16(37941), + 49: uint16(20681), + 50: uint16(23574), + 51: uint16(27838), + 52: uint16(28155), + 53: uint16(29979), + 54: uint16(30651), + 55: uint16(31805), + 56: uint16(31844), + 57: uint16(35449), + 58: uint16(35522), + 59: uint16(22558), + 60: uint16(22974), + 61: uint16(24086), + 62: uint16(25463), + 63: uint16(29266), + 64: uint16(30090), + 65: uint16(30571), + 66: uint16(35548), + 67: uint16(36028), + 68: uint16(36626), + 69: uint16(24307), + 70: uint16(26228), + 71: uint16(28152), + 72: uint16(32893), + 73: uint16(33729), + 74: uint16(35531), + 75: uint16(38737), + 76: uint16(39894), + 77: uint16(64000), + 78: uint16(21059), + 79: uint16(26367), + 80: uint16(28053), + 81: uint16(28399), + 82: uint16(32224), + 83: uint16(35558), + 84: uint16(36910), + 85: uint16(36958), + 86: uint16(39636), + 87: uint16(21021), + 88: uint16(21119), + 89: uint16(21736), + 90: uint16(24980), + 91: uint16(25220), + 92: uint16(25307), + 93: uint16(26786), + }, + 84: { + 0: uint16(26898), + 1: uint16(26970), + 2: uint16(27189), + 3: uint16(28818), + 4: uint16(28966), + 5: uint16(30813), + 6: uint16(30977), + 7: uint16(30990), + 8: uint16(31186), + 9: uint16(31245), + 10: uint16(32918), + 11: uint16(33400), + 12: uint16(33493), + 13: uint16(33609), + 14: uint16(34121), + 15: uint16(35970), + 16: uint16(36229), + 17: uint16(37218), + 18: uint16(37259), + 19: uint16(37294), + 20: uint16(20419), + 21: uint16(22225), + 22: uint16(29165), + 23: uint16(30679), + 24: uint16(34560), + 25: uint16(35320), + 26: uint16(23544), + 27: uint16(24534), + 28: uint16(26449), + 29: uint16(37032), + 30: uint16(21474), + 31: uint16(22618), + 32: uint16(23541), + 33: uint16(24740), + 34: uint16(24961), + 35: uint16(25696), + 36: uint16(32317), + 37: uint16(32880), + 38: uint16(34085), + 39: uint16(37507), + 40: uint16(25774), + 41: uint16(20652), + 42: uint16(23828), + 43: uint16(26368), + 44: uint16(22684), + 45: uint16(25277), + 46: uint16(25512), + 47: uint16(26894), + 48: uint16(27000), + 49: uint16(27166), + 50: uint16(28267), + 51: uint16(30394), + 52: uint16(31179), + 53: uint16(33467), + 54: uint16(33833), + 55: uint16(35535), + 56: uint16(36264), + 57: uint16(36861), + 58: uint16(37138), + 59: uint16(37195), + 60: uint16(37276), + 61: uint16(37648), + 62: uint16(37656), + 63: uint16(37786), + 64: uint16(38619), + 65: uint16(39478), + 66: uint16(39949), + 67: uint16(19985), + 68: uint16(30044), + 69: uint16(31069), + 70: uint16(31482), + 71: uint16(31569), + 72: uint16(31689), + 73: uint16(32302), + 74: uint16(33988), + 75: uint16(36441), + 76: uint16(36468), + 77: uint16(36600), + 78: uint16(36880), + 79: uint16(26149), + 80: uint16(26943), + 81: uint16(29763), + 82: uint16(20986), + 83: uint16(26414), + 84: uint16(40668), + 85: uint16(20805), + 86: uint16(24544), + 87: uint16(27798), + 88: uint16(34802), + 89: uint16(34909), + 90: uint16(34935), + 91: uint16(24756), + 92: uint16(33205), + 93: uint16(33795), + }, + 85: { + 0: uint16(36101), + 1: uint16(21462), + 2: uint16(21561), + 3: uint16(22068), + 4: uint16(23094), + 5: uint16(23601), + 6: uint16(28810), + 7: uint16(32736), + 8: uint16(32858), + 9: uint16(33030), + 10: uint16(33261), + 11: uint16(36259), + 12: uint16(37257), + 13: uint16(39519), + 14: uint16(40434), + 15: uint16(20596), + 16: uint16(20164), + 17: uint16(21408), + 18: uint16(24827), + 19: uint16(28204), + 20: uint16(23652), + 21: uint16(20360), + 22: uint16(20516), + 23: uint16(21988), + 24: uint16(23769), + 25: uint16(24159), + 26: uint16(24677), + 27: uint16(26772), + 28: uint16(27835), + 29: uint16(28100), + 30: uint16(29118), + 31: uint16(30164), + 32: uint16(30196), + 33: uint16(30305), + 34: uint16(31258), + 35: uint16(31305), + 36: uint16(32199), + 37: uint16(32251), + 38: uint16(32622), + 39: uint16(33268), + 40: uint16(34473), + 41: uint16(36636), + 42: uint16(38601), + 43: uint16(39347), + 44: uint16(40786), + 45: uint16(21063), + 46: uint16(21189), + 47: uint16(39149), + 48: uint16(35242), + 49: uint16(19971), + 50: uint16(26578), + 51: uint16(28422), + 52: uint16(20405), + 53: uint16(23522), + 54: uint16(26517), + 55: uint16(27784), + 56: uint16(28024), + 57: uint16(29723), + 58: uint16(30759), + 59: uint16(37341), + 60: uint16(37756), + 61: uint16(34756), + 62: uint16(31204), + 63: uint16(31281), + 64: uint16(24555), + 65: uint16(20182), + 66: uint16(21668), + 67: uint16(21822), + 68: uint16(22702), + 69: uint16(22949), + 70: uint16(24816), + 71: uint16(25171), + 72: uint16(25302), + 73: uint16(26422), + 74: uint16(26965), + 75: uint16(33333), + 76: uint16(38464), + 77: uint16(39345), + 78: uint16(39389), + 79: uint16(20524), + 80: uint16(21331), + 81: uint16(21828), + 82: uint16(22396), + 83: uint16(64001), + 84: uint16(25176), + 85: uint16(64002), + 86: uint16(25826), + 87: uint16(26219), + 88: uint16(26589), + 89: uint16(28609), + 90: uint16(28655), + 91: uint16(29730), + 92: uint16(29752), + 93: uint16(35351), + }, + 86: { + 0: uint16(37944), + 1: uint16(21585), + 2: uint16(22022), + 3: uint16(22374), + 4: uint16(24392), + 5: uint16(24986), + 6: uint16(27470), + 7: uint16(28760), + 8: uint16(28845), + 9: uint16(32187), + 10: uint16(35477), + 11: uint16(22890), + 12: uint16(33067), + 13: uint16(25506), + 14: uint16(30472), + 15: uint16(32829), + 16: uint16(36010), + 17: uint16(22612), + 18: uint16(25645), + 19: uint16(27067), + 20: uint16(23445), + 21: uint16(24081), + 22: uint16(28271), + 23: uint16(64003), + 24: uint16(34153), + 25: uint16(20812), + 26: uint16(21488), + 27: uint16(22826), + 28: uint16(24608), + 29: uint16(24907), + 30: uint16(27526), + 31: uint16(27760), + 32: uint16(27888), + 33: uint16(31518), + 34: uint16(32974), + 35: uint16(33492), + 36: uint16(36294), + 37: uint16(37040), + 38: uint16(39089), + 39: uint16(64004), + 40: uint16(25799), + 41: uint16(28580), + 42: uint16(25745), + 43: uint16(25860), + 44: uint16(20814), + 45: uint16(21520), + 46: uint16(22303), + 47: uint16(35342), + 48: uint16(24927), + 49: uint16(26742), + 50: uint16(64005), + 51: uint16(30171), + 52: uint16(31570), + 53: uint16(32113), + 54: uint16(36890), + 55: uint16(22534), + 56: uint16(27084), + 57: uint16(33151), + 58: uint16(35114), + 59: uint16(36864), + 60: uint16(38969), + 61: uint16(20600), + 62: uint16(22871), + 63: uint16(22956), + 64: uint16(25237), + 65: uint16(36879), + 66: uint16(39722), + 67: uint16(24925), + 68: uint16(29305), + 69: uint16(38358), + 70: uint16(22369), + 71: uint16(23110), + 72: uint16(24052), + 73: uint16(25226), + 74: uint16(25773), + 75: uint16(25850), + 76: uint16(26487), + 77: uint16(27874), + 78: uint16(27966), + 79: uint16(29228), + 80: uint16(29750), + 81: uint16(30772), + 82: uint16(32631), + 83: uint16(33453), + 84: uint16(36315), + 85: uint16(38935), + 86: uint16(21028), + 87: uint16(22338), + 88: uint16(26495), + 89: uint16(29256), + 90: uint16(29923), + 91: uint16(36009), + 92: uint16(36774), + 93: uint16(37393), + }, + 87: { + 0: uint16(38442), + 1: uint16(20843), + 2: uint16(21485), + 3: uint16(25420), + 4: uint16(20329), + 5: uint16(21764), + 6: uint16(24726), + 7: uint16(25943), + 8: uint16(27803), + 9: uint16(28031), + 10: uint16(29260), + 11: uint16(29437), + 12: uint16(31255), + 13: uint16(35207), + 14: uint16(35997), + 15: uint16(24429), + 16: uint16(28558), + 17: uint16(28921), + 18: uint16(33192), + 19: uint16(24846), + 20: uint16(20415), + 21: uint16(20559), + 22: uint16(25153), + 23: uint16(29255), + 24: uint16(31687), + 25: uint16(32232), + 26: uint16(32745), + 27: uint16(36941), + 28: uint16(38829), + 29: uint16(39449), + 30: uint16(36022), + 31: uint16(22378), + 32: uint16(24179), + 33: uint16(26544), + 34: uint16(33805), + 35: uint16(35413), + 36: uint16(21536), + 37: uint16(23318), + 38: uint16(24163), + 39: uint16(24290), + 40: uint16(24330), + 41: uint16(25987), + 42: uint16(32954), + 43: uint16(34109), + 44: uint16(38281), + 45: uint16(38491), + 46: uint16(20296), + 47: uint16(21253), + 48: uint16(21261), + 49: uint16(21263), + 50: uint16(21638), + 51: uint16(21754), + 52: uint16(22275), + 53: uint16(24067), + 54: uint16(24598), + 55: uint16(25243), + 56: uint16(25265), + 57: uint16(25429), + 58: uint16(64006), + 59: uint16(27873), + 60: uint16(28006), + 61: uint16(30129), + 62: uint16(30770), + 63: uint16(32990), + 64: uint16(33071), + 65: uint16(33502), + 66: uint16(33889), + 67: uint16(33970), + 68: uint16(34957), + 69: uint16(35090), + 70: uint16(36875), + 71: uint16(37610), + 72: uint16(39165), + 73: uint16(39825), + 74: uint16(24133), + 75: uint16(26292), + 76: uint16(26333), + 77: uint16(28689), + 78: uint16(29190), + 79: uint16(64007), + 80: uint16(20469), + 81: uint16(21117), + 82: uint16(24426), + 83: uint16(24915), + 84: uint16(26451), + 85: uint16(27161), + 86: uint16(28418), + 87: uint16(29922), + 88: uint16(31080), + 89: uint16(34920), + 90: uint16(35961), + 91: uint16(39111), + 92: uint16(39108), + 93: uint16(39491), + }, + 88: { + 0: uint16(21697), + 1: uint16(31263), + 2: uint16(26963), + 3: uint16(35575), + 4: uint16(35914), + 5: uint16(39080), + 6: uint16(39342), + 7: uint16(24444), + 8: uint16(25259), + 9: uint16(30130), + 10: uint16(30382), + 11: uint16(34987), + 12: uint16(36991), + 13: uint16(38466), + 14: uint16(21305), + 15: uint16(24380), + 16: uint16(24517), + 17: uint16(27852), + 18: uint16(29644), + 19: uint16(30050), + 20: uint16(30091), + 21: uint16(31558), + 22: uint16(33534), + 23: uint16(39325), + 24: uint16(20047), + 25: uint16(36924), + 26: uint16(19979), + 27: uint16(20309), + 28: uint16(21414), + 29: uint16(22799), + 30: uint16(24264), + 31: uint16(26160), + 32: uint16(27827), + 33: uint16(29781), + 34: uint16(33655), + 35: uint16(34662), + 36: uint16(36032), + 37: uint16(36944), + 38: uint16(38686), + 39: uint16(39957), + 40: uint16(22737), + 41: uint16(23416), + 42: uint16(34384), + 43: uint16(35604), + 44: uint16(40372), + 45: uint16(23506), + 46: uint16(24680), + 47: uint16(24717), + 48: uint16(26097), + 49: uint16(27735), + 50: uint16(28450), + 51: uint16(28579), + 52: uint16(28698), + 53: uint16(32597), + 54: uint16(32752), + 55: uint16(38289), + 56: uint16(38290), + 57: uint16(38480), + 58: uint16(38867), + 59: uint16(21106), + 60: uint16(36676), + 61: uint16(20989), + 62: uint16(21547), + 63: uint16(21688), + 64: uint16(21859), + 65: uint16(21898), + 66: uint16(27323), + 67: uint16(28085), + 68: uint16(32216), + 69: uint16(33382), + 70: uint16(37532), + 71: uint16(38519), + 72: uint16(40569), + 73: uint16(21512), + 74: uint16(21704), + 75: uint16(30418), + 76: uint16(34532), + 77: uint16(38308), + 78: uint16(38356), + 79: uint16(38492), + 80: uint16(20130), + 81: uint16(20233), + 82: uint16(23022), + 83: uint16(23270), + 84: uint16(24055), + 85: uint16(24658), + 86: uint16(25239), + 87: uint16(26477), + 88: uint16(26689), + 89: uint16(27782), + 90: uint16(28207), + 91: uint16(32568), + 92: uint16(32923), + 93: uint16(33322), + }, + 89: { + 0: uint16(64008), + 1: uint16(64009), + 2: uint16(38917), + 3: uint16(20133), + 4: uint16(20565), + 5: uint16(21683), + 6: uint16(22419), + 7: uint16(22874), + 8: uint16(23401), + 9: uint16(23475), + 10: uint16(25032), + 11: uint16(26999), + 12: uint16(28023), + 13: uint16(28707), + 14: uint16(34809), + 15: uint16(35299), + 16: uint16(35442), + 17: uint16(35559), + 18: uint16(36994), + 19: uint16(39405), + 20: uint16(39608), + 21: uint16(21182), + 22: uint16(26680), + 23: uint16(20502), + 24: uint16(24184), + 25: uint16(26447), + 26: uint16(33607), + 27: uint16(34892), + 28: uint16(20139), + 29: uint16(21521), + 30: uint16(22190), + 31: uint16(29670), + 32: uint16(37141), + 33: uint16(38911), + 34: uint16(39177), + 35: uint16(39255), + 36: uint16(39321), + 37: uint16(22099), + 38: uint16(22687), + 39: uint16(34395), + 40: uint16(35377), + 41: uint16(25010), + 42: uint16(27382), + 43: uint16(29563), + 44: uint16(36562), + 45: uint16(27463), + 46: uint16(38570), + 47: uint16(39511), + 48: uint16(22869), + 49: uint16(29184), + 50: uint16(36203), + 51: uint16(38761), + 52: uint16(20436), + 53: uint16(23796), + 54: uint16(24358), + 55: uint16(25080), + 56: uint16(26203), + 57: uint16(27883), + 58: uint16(28843), + 59: uint16(29572), + 60: uint16(29625), + 61: uint16(29694), + 62: uint16(30505), + 63: uint16(30541), + 64: uint16(32067), + 65: uint16(32098), + 66: uint16(32291), + 67: uint16(33335), + 68: uint16(34898), + 69: uint16(64010), + 70: uint16(36066), + 71: uint16(37449), + 72: uint16(39023), + 73: uint16(23377), + 74: uint16(31348), + 75: uint16(34880), + 76: uint16(38913), + 77: uint16(23244), + 78: uint16(20448), + 79: uint16(21332), + 80: uint16(22846), + 81: uint16(23805), + 82: uint16(25406), + 83: uint16(28025), + 84: uint16(29433), + 85: uint16(33029), + 86: uint16(33031), + 87: uint16(33698), + 88: uint16(37583), + 89: uint16(38960), + 90: uint16(20136), + 91: uint16(20804), + 92: uint16(21009), + 93: uint16(22411), + }, + 90: { + 0: uint16(24418), + 1: uint16(27842), + 2: uint16(28366), + 3: uint16(28677), + 4: uint16(28752), + 5: uint16(28847), + 6: uint16(29074), + 7: uint16(29673), + 8: uint16(29801), + 9: uint16(33610), + 10: uint16(34722), + 11: uint16(34913), + 12: uint16(36872), + 13: uint16(37026), + 14: uint16(37795), + 15: uint16(39336), + 16: uint16(20846), + 17: uint16(24407), + 18: uint16(24800), + 19: uint16(24935), + 20: uint16(26291), + 21: uint16(34137), + 22: uint16(36426), + 23: uint16(37295), + 24: uint16(38795), + 25: uint16(20046), + 26: uint16(20114), + 27: uint16(21628), + 28: uint16(22741), + 29: uint16(22778), + 30: uint16(22909), + 31: uint16(23733), + 32: uint16(24359), + 33: uint16(25142), + 34: uint16(25160), + 35: uint16(26122), + 36: uint16(26215), + 37: uint16(27627), + 38: uint16(28009), + 39: uint16(28111), + 40: uint16(28246), + 41: uint16(28408), + 42: uint16(28564), + 43: uint16(28640), + 44: uint16(28649), + 45: uint16(28765), + 46: uint16(29392), + 47: uint16(29733), + 48: uint16(29786), + 49: uint16(29920), + 50: uint16(30355), + 51: uint16(31068), + 52: uint16(31946), + 53: uint16(32286), + 54: uint16(32993), + 55: uint16(33446), + 56: uint16(33899), + 57: uint16(33983), + 58: uint16(34382), + 59: uint16(34399), + 60: uint16(34676), + 61: uint16(35703), + 62: uint16(35946), + 63: uint16(37804), + 64: uint16(38912), + 65: uint16(39013), + 66: uint16(24785), + 67: uint16(25110), + 68: uint16(37239), + 69: uint16(23130), + 70: uint16(26127), + 71: uint16(28151), + 72: uint16(28222), + 73: uint16(29759), + 74: uint16(39746), + 75: uint16(24573), + 76: uint16(24794), + 77: uint16(31503), + 78: uint16(21700), + 79: uint16(24344), + 80: uint16(27742), + 81: uint16(27859), + 82: uint16(27946), + 83: uint16(28888), + 84: uint16(32005), + 85: uint16(34425), + 86: uint16(35340), + 87: uint16(40251), + 88: uint16(21270), + 89: uint16(21644), + 90: uint16(23301), + 91: uint16(27194), + 92: uint16(28779), + 93: uint16(30069), + }, + 91: { + 0: uint16(31117), + 1: uint16(31166), + 2: uint16(33457), + 3: uint16(33775), + 4: uint16(35441), + 5: uint16(35649), + 6: uint16(36008), + 7: uint16(38772), + 8: uint16(64011), + 9: uint16(25844), + 10: uint16(25899), + 11: uint16(30906), + 12: uint16(30907), + 13: uint16(31339), + 14: uint16(20024), + 15: uint16(21914), + 16: uint16(22864), + 17: uint16(23462), + 18: uint16(24187), + 19: uint16(24739), + 20: uint16(25563), + 21: uint16(27489), + 22: uint16(26213), + 23: uint16(26707), + 24: uint16(28185), + 25: uint16(29029), + 26: uint16(29872), + 27: uint16(32008), + 28: uint16(36996), + 29: uint16(39529), + 30: uint16(39973), + 31: uint16(27963), + 32: uint16(28369), + 33: uint16(29502), + 34: uint16(35905), + 35: uint16(38346), + 36: uint16(20976), + 37: uint16(24140), + 38: uint16(24488), + 39: uint16(24653), + 40: uint16(24822), + 41: uint16(24880), + 42: uint16(24908), + 43: uint16(26179), + 44: uint16(26180), + 45: uint16(27045), + 46: uint16(27841), + 47: uint16(28255), + 48: uint16(28361), + 49: uint16(28514), + 50: uint16(29004), + 51: uint16(29852), + 52: uint16(30343), + 53: uint16(31681), + 54: uint16(31783), + 55: uint16(33618), + 56: uint16(34647), + 57: uint16(36945), + 58: uint16(38541), + 59: uint16(40643), + 60: uint16(21295), + 61: uint16(22238), + 62: uint16(24315), + 63: uint16(24458), + 64: uint16(24674), + 65: uint16(24724), + 66: uint16(25079), + 67: uint16(26214), + 68: uint16(26371), + 69: uint16(27292), + 70: uint16(28142), + 71: uint16(28590), + 72: uint16(28784), + 73: uint16(29546), + 74: uint16(32362), + 75: uint16(33214), + 76: uint16(33588), + 77: uint16(34516), + 78: uint16(35496), + 79: uint16(36036), + 80: uint16(21123), + 81: uint16(29554), + 82: uint16(23446), + 83: uint16(27243), + 84: uint16(37892), + 85: uint16(21742), + 86: uint16(22150), + 87: uint16(23389), + 88: uint16(25928), + 89: uint16(25989), + 90: uint16(26313), + 91: uint16(26783), + 92: uint16(28045), + 93: uint16(28102), + }, + 92: { + 0: uint16(29243), + 1: uint16(32948), + 2: uint16(37237), + 3: uint16(39501), + 4: uint16(20399), + 5: uint16(20505), + 6: uint16(21402), + 7: uint16(21518), + 8: uint16(21564), + 9: uint16(21897), + 10: uint16(21957), + 11: uint16(24127), + 12: uint16(24460), + 13: uint16(26429), + 14: uint16(29030), + 15: uint16(29661), + 16: uint16(36869), + 17: uint16(21211), + 18: uint16(21235), + 19: uint16(22628), + 20: uint16(22734), + 21: uint16(28932), + 22: uint16(29071), + 23: uint16(29179), + 24: uint16(34224), + 25: uint16(35347), + 26: uint16(26248), + 27: uint16(34216), + 28: uint16(21927), + 29: uint16(26244), + 30: uint16(29002), + 31: uint16(33841), + 32: uint16(21321), + 33: uint16(21913), + 34: uint16(27585), + 35: uint16(24409), + 36: uint16(24509), + 37: uint16(25582), + 38: uint16(26249), + 39: uint16(28999), + 40: uint16(35569), + 41: uint16(36637), + 42: uint16(40638), + 43: uint16(20241), + 44: uint16(25658), + 45: uint16(28875), + 46: uint16(30054), + 47: uint16(34407), + 48: uint16(24676), + 49: uint16(35662), + 50: uint16(40440), + 51: uint16(20807), + 52: uint16(20982), + 53: uint16(21256), + 54: uint16(27958), + 55: uint16(33016), + 56: uint16(40657), + 57: uint16(26133), + 58: uint16(27427), + 59: uint16(28824), + 60: uint16(30165), + 61: uint16(21507), + 62: uint16(23673), + 63: uint16(32007), + 64: uint16(35350), + 65: uint16(27424), + 66: uint16(27453), + 67: uint16(27462), + 68: uint16(21560), + 69: uint16(24688), + 70: uint16(27965), + 71: uint16(32725), + 72: uint16(33288), + 73: uint16(20694), + 74: uint16(20958), + 75: uint16(21916), + 76: uint16(22123), + 77: uint16(22221), + 78: uint16(23020), + 79: uint16(23305), + 80: uint16(24076), + 81: uint16(24985), + 82: uint16(24984), + 83: uint16(25137), + 84: uint16(26206), + 85: uint16(26342), + 86: uint16(29081), + 87: uint16(29113), + 88: uint16(29114), + 89: uint16(29351), + 90: uint16(31143), + 91: uint16(31232), + 92: uint16(32690), + 93: uint16(35440), + }, +} + +var _rev_jis = [6879]uint16{ + 0: uint16(31), + 1: uint16(80), + 2: uint16(81), + 3: uint16(87), + 4: uint16(14), + 5: uint16(299), + 6: uint16(74), + 7: uint16(61), + 8: uint16(12), + 9: uint16(344), + 10: uint16(62), + 11: uint16(63), + 12: uint16(1280), + 13: uint16(1281), + 14: uint16(1282), + 15: uint16(1283), + 16: uint16(1284), + 17: uint16(1285), + 18: uint16(1286), + 19: uint16(1287), + 20: uint16(1288), + 21: uint16(1289), + 22: uint16(1290), + 23: uint16(1291), + 24: uint16(1292), + 25: uint16(1293), + 26: uint16(1294), + 27: uint16(1295), + 28: uint16(1296), + 29: uint16(1297), + 30: uint16(1298), + 31: uint16(1299), + 32: uint16(1300), + 33: uint16(1301), + 34: uint16(1302), + 35: uint16(1303), + 36: uint16(1312), + 37: uint16(1313), + 38: uint16(1314), + 39: uint16(1315), + 40: uint16(1316), + 41: uint16(1317), + 42: uint16(1318), + 43: uint16(1319), + 44: uint16(1320), + 45: uint16(1321), + 46: uint16(1322), + 47: uint16(1323), + 48: uint16(1324), + 49: uint16(1325), + 50: uint16(1326), + 51: uint16(1327), + 52: uint16(1328), + 53: uint16(1329), + 54: uint16(1330), + 55: uint16(1331), + 56: uint16(1332), + 57: uint16(1333), + 58: uint16(1334), + 59: uint16(1335), + 60: uint16(1542), + 61: uint16(1536), + 62: uint16(1537), + 63: uint16(1538), + 64: uint16(1539), + 65: uint16(1540), + 66: uint16(1541), + 67: uint16(1543), + 68: uint16(1544), + 69: uint16(1545), + 70: uint16(1546), + 71: uint16(1547), + 72: uint16(1548), + 73: uint16(1549), + 74: uint16(1550), + 75: uint16(1551), + 76: uint16(1552), + 77: uint16(1553), + 78: uint16(1554), + 79: uint16(1555), + 80: uint16(1556), + 81: uint16(1557), + 82: uint16(1558), + 83: uint16(1559), + 84: uint16(1560), + 85: uint16(1561), + 86: uint16(1562), + 87: uint16(1563), + 88: uint16(1564), + 89: uint16(1565), + 90: uint16(1566), + 91: uint16(1567), + 92: uint16(1568), + 93: uint16(1584), + 94: uint16(1585), + 95: uint16(1586), + 96: uint16(1587), + 97: uint16(1588), + 98: uint16(1589), + 99: uint16(1591), + 100: uint16(1592), + 101: uint16(1593), + 102: uint16(1594), + 103: uint16(1595), + 104: uint16(1596), + 105: uint16(1597), + 106: uint16(1598), + 107: uint16(1599), + 108: uint16(1600), + 109: uint16(1601), + 110: uint16(1602), + 111: uint16(1603), + 112: uint16(1604), + 113: uint16(1605), + 114: uint16(1606), + 115: uint16(1607), + 116: uint16(1608), + 117: uint16(1609), + 118: uint16(1610), + 119: uint16(1611), + 120: uint16(1612), + 121: uint16(1613), + 122: uint16(1614), + 123: uint16(1615), + 124: uint16(1616), + 125: uint16(1590), + 126: uint16(29), + 127: uint16(28), + 128: uint16(33), + 129: uint16(37), + 130: uint16(38), + 131: uint16(39), + 132: uint16(40), + 133: uint16(342), + 134: uint16(343), + 135: uint16(36), + 136: uint16(35), + 137: uint16(338), + 138: uint16(75), + 139: uint16(76), + 140: uint16(263), + 141: uint16(77), + 142: uint16(337), + 143: uint16(266), + 144: uint16(267), + 145: uint16(265), + 146: uint16(268), + 147: uint16(300), + 148: uint16(301), + 149: uint16(302), + 150: uint16(318), + 151: uint16(303), + 152: uint16(319), + 153: uint16(281), + 154: uint16(282), + 155: uint16(60), + 156: uint16(324), + 157: uint16(326), + 158: uint16(70), + 159: uint16(315), + 160: uint16(297), + 161: uint16(298), + 162: uint16(288), + 163: uint16(287), + 164: uint16(328), + 165: uint16(329), + 166: uint16(71), + 167: uint16(327), + 168: uint16(325), + 169: uint16(321), + 170: uint16(65), + 171: uint16(320), + 172: uint16(68), + 173: uint16(69), + 174: uint16(322), + 175: uint16(323), + 176: uint16(285), + 177: uint16(286), + 178: uint16(283), + 179: uint16(284), + 180: uint16(316), + 181: uint16(317), + 182: uint16(1792), + 183: uint16(1803), + 184: uint16(1793), + 185: uint16(1804), + 186: uint16(1794), + 187: uint16(1805), + 188: uint16(1795), + 189: uint16(1806), + 190: uint16(1797), + 191: uint16(1808), + 192: uint16(1796), + 193: uint16(1807), + 194: uint16(1798), + 195: uint16(1819), + 196: uint16(1814), + 197: uint16(1809), + 198: uint16(1800), + 199: uint16(1821), + 200: uint16(1816), + 201: uint16(1811), + 202: uint16(1799), + 203: uint16(1815), + 204: uint16(1820), + 205: uint16(1810), + 206: uint16(1801), + 207: uint16(1817), + 208: uint16(1822), + 209: uint16(1812), + 210: uint16(1802), + 211: uint16(1818), + 212: uint16(1823), + 213: uint16(1813), + 214: uint16(258), + 215: uint16(257), + 216: uint16(260), + 217: uint16(259), + 218: uint16(262), + 219: uint16(261), + 220: uint16(256), + 221: uint16(93), + 222: uint16(90), + 223: uint16(92), + 224: uint16(91), + 225: uint16(349), + 226: uint16(89), + 227: uint16(88), + 228: uint16(73), + 229: uint16(72), + 230: uint16(341), + 231: uint16(340), + 232: uint16(339), + 234: uint16(1), + 235: uint16(2), + 236: uint16(22), + 237: uint16(24), + 238: uint16(25), + 239: uint16(26), + 240: uint16(49), + 241: uint16(50), + 242: uint16(51), + 243: uint16(52), + 244: uint16(53), + 245: uint16(54), + 246: uint16(55), + 247: uint16(56), + 248: uint16(57), + 249: uint16(58), + 250: uint16(264), + 251: uint16(269), + 252: uint16(43), + 253: uint16(44), + 254: uint16(32), + 255: uint16(768), + 256: uint16(769), + 257: uint16(770), + 258: uint16(771), + 259: uint16(772), + 260: uint16(773), + 261: uint16(774), + 262: uint16(775), + 263: uint16(776), + 264: uint16(777), + 265: uint16(778), + 266: uint16(779), + 267: uint16(780), + 268: uint16(781), + 269: uint16(782), + 270: uint16(783), + 271: uint16(784), + 272: uint16(785), + 273: uint16(786), + 274: uint16(787), + 275: uint16(788), + 276: uint16(789), + 277: uint16(790), + 278: uint16(791), + 279: uint16(792), + 280: uint16(793), + 281: uint16(794), + 282: uint16(795), + 283: uint16(796), + 284: uint16(797), + 285: uint16(798), + 286: uint16(799), + 287: uint16(800), + 288: uint16(801), + 289: uint16(802), + 290: uint16(803), + 291: uint16(804), + 292: uint16(805), + 293: uint16(806), + 294: uint16(807), + 295: uint16(808), + 296: uint16(809), + 297: uint16(810), + 298: uint16(811), + 299: uint16(812), + 300: uint16(813), + 301: uint16(814), + 302: uint16(815), + 303: uint16(816), + 304: uint16(817), + 305: uint16(818), + 306: uint16(819), + 307: uint16(820), + 308: uint16(821), + 309: uint16(822), + 310: uint16(823), + 311: uint16(824), + 312: uint16(825), + 313: uint16(826), + 314: uint16(827), + 315: uint16(828), + 316: uint16(829), + 317: uint16(830), + 318: uint16(831), + 319: uint16(832), + 320: uint16(833), + 321: uint16(834), + 322: uint16(835), + 323: uint16(836), + 324: uint16(837), + 325: uint16(838), + 326: uint16(839), + 327: uint16(840), + 328: uint16(841), + 329: uint16(842), + 330: uint16(843), + 331: uint16(844), + 332: uint16(845), + 333: uint16(846), + 334: uint16(847), + 335: uint16(848), + 336: uint16(849), + 337: uint16(850), + 338: uint16(10), + 339: uint16(11), + 340: uint16(20), + 341: uint16(21), + 342: uint16(1024), + 343: uint16(1025), + 344: uint16(1026), + 345: uint16(1027), + 346: uint16(1028), + 347: uint16(1029), + 348: uint16(1030), + 349: uint16(1031), + 350: uint16(1032), + 351: uint16(1033), + 352: uint16(1034), + 353: uint16(1035), + 354: uint16(1036), + 355: uint16(1037), + 356: uint16(1038), + 357: uint16(1039), + 358: uint16(1040), + 359: uint16(1041), + 360: uint16(1042), + 361: uint16(1043), + 362: uint16(1044), + 363: uint16(1045), + 364: uint16(1046), + 365: uint16(1047), + 366: uint16(1048), + 367: uint16(1049), + 368: uint16(1050), + 369: uint16(1051), + 370: uint16(1052), + 371: uint16(1053), + 372: uint16(1054), + 373: uint16(1055), + 374: uint16(1056), + 375: uint16(1057), + 376: uint16(1058), + 377: uint16(1059), + 378: uint16(1060), + 379: uint16(1061), + 380: uint16(1062), + 381: uint16(1063), + 382: uint16(1064), + 383: uint16(1065), + 384: uint16(1066), + 385: uint16(1067), + 386: uint16(1068), + 387: uint16(1069), + 388: uint16(1070), + 389: uint16(1071), + 390: uint16(1072), + 391: uint16(1073), + 392: uint16(1074), + 393: uint16(1075), + 394: uint16(1076), + 395: uint16(1077), + 396: uint16(1078), + 397: uint16(1079), + 398: uint16(1080), + 399: uint16(1081), + 400: uint16(1082), + 401: uint16(1083), + 402: uint16(1084), + 403: uint16(1085), + 404: uint16(1086), + 405: uint16(1087), + 406: uint16(1088), + 407: uint16(1089), + 408: uint16(1090), + 409: uint16(1091), + 410: uint16(1092), + 411: uint16(1093), + 412: uint16(1094), + 413: uint16(1095), + 414: uint16(1096), + 415: uint16(1097), + 416: uint16(1098), + 417: uint16(1099), + 418: uint16(1100), + 419: uint16(1101), + 420: uint16(1102), + 421: uint16(1103), + 422: uint16(1104), + 423: uint16(1105), + 424: uint16(1106), + 425: uint16(1107), + 426: uint16(1108), + 427: uint16(1109), + 428: uint16(5), + 429: uint16(27), + 430: uint16(18), + 431: uint16(19), + 432: uint16(3915), + 433: uint16(8793), + 434: uint16(6934), + 435: uint16(10843), + 436: uint16(7493), + 437: uint16(6671), + 438: uint16(7492), + 439: uint16(4379), + 440: uint16(10291), + 441: uint16(11294), + 442: uint16(12033), + 443: uint16(4110), + 444: uint16(4685), + 445: uint16(12034), + 446: uint16(7939), + 447: uint16(12577), + 448: uint16(5173), + 449: uint16(10521), + 450: uint16(7494), + 451: uint16(11549), + 452: uint16(10529), + 453: uint16(12035), + 454: uint16(8773), + 455: uint16(12036), + 456: uint16(5465), + 457: uint16(12037), + 458: uint16(4924), + 459: uint16(8719), + 460: uint16(6982), + 461: uint16(12038), + 462: uint16(12039), + 463: uint16(12040), + 464: uint16(9748), + 465: uint16(5174), + 466: uint16(9750), + 467: uint16(9538), + 468: uint16(5922), + 469: uint16(10770), + 470: uint16(18472), + 471: uint16(12041), + 472: uint16(7495), + 473: uint16(12042), + 474: uint16(4372), + 475: uint16(5444), + 476: uint16(5967), + 477: uint16(11080), + 478: uint16(13573), + 479: uint16(11343), + 480: uint16(9564), + 481: uint16(4868), + 482: uint16(5140), + 483: uint16(12043), + 484: uint16(12044), + 485: uint16(11546), + 486: uint16(11292), + 487: uint16(8263), + 488: uint16(12046), + 489: uint16(6741), + 490: uint16(9554), + 491: uint16(12049), + 492: uint16(4125), + 493: uint16(5950), + 494: uint16(5949), + 495: uint16(3909), + 496: uint16(11818), + 497: uint16(11817), + 498: uint16(6418), + 499: uint16(3840), + 500: uint16(12050), + 501: uint16(12051), + 502: uint16(12052), + 503: uint16(10771), + 504: uint16(12053), + 505: uint16(5969), + 506: uint16(3910), + 507: uint16(10833), + 508: uint16(5211), + 509: uint16(5212), + 510: uint16(5213), + 511: uint16(9025), + 512: uint16(11547), + 513: uint16(12054), + 514: uint16(12055), + 515: uint16(12056), + 516: uint16(7724), + 517: uint16(7193), + 518: uint16(7725), + 519: uint16(12061), + 520: uint16(12059), + 521: uint16(12060), + 522: uint16(5175), + 523: uint16(6402), + 524: uint16(4431), + 525: uint16(12058), + 526: uint16(12057), + 527: uint16(10504), + 528: uint16(6693), + 529: uint16(6692), + 530: uint16(8477), + 531: uint16(12062), + 532: uint16(10292), + 533: uint16(8006), + 534: uint16(23), + 535: uint16(12063), + 536: uint16(12065), + 537: uint16(8516), + 538: uint16(11584), + 539: uint16(3881), + 540: uint16(12064), + 541: uint16(4381), + 542: uint16(5411), + 543: uint16(8774), + 544: uint16(5710), + 545: uint16(12066), + 546: uint16(9731), + 547: uint16(4938), + 548: uint16(12067), + 549: uint16(3882), + 550: uint16(5951), + 551: uint16(4939), + 552: uint16(10329), + 553: uint16(10001), + 554: uint16(5176), + 555: uint16(4432), + 556: uint16(12102), + 557: uint16(9248), + 558: uint16(9803), + 559: uint16(12069), + 560: uint16(10011), + 561: uint16(11585), + 562: uint16(7692), + 563: uint16(6694), + 564: uint16(6742), + 565: uint16(4383), + 566: uint16(9008), + 567: uint16(8705), + 568: uint16(12073), + 569: uint16(3883), + 570: uint16(9026), + 571: uint16(7194), + 572: uint16(6419), + 573: uint16(11267), + 574: uint16(8493), + 575: uint16(4382), + 576: uint16(12072), + 577: uint16(11293), + 578: uint16(12068), + 579: uint16(12070), + 580: uint16(6477), + 581: uint16(12071), + 582: uint16(13315), + 583: uint16(12079), + 584: uint16(12082), + 585: uint16(12080), + 586: uint16(4385), + 587: uint16(10522), + 588: uint16(12074), + 589: uint16(12078), + 590: uint16(5970), + 591: uint16(6695), + 592: uint16(4869), + 593: uint16(12083), + 594: uint16(12075), + 595: uint16(11586), + 596: uint16(6743), + 597: uint16(12076), + 598: uint16(12081), + 599: uint16(12084), + 600: uint16(12077), + 601: uint16(5376), + 602: uint16(3884), + 603: uint16(5377), + 604: uint16(4384), + 605: uint16(13316), + 606: uint16(10840), + 607: uint16(10317), + 608: uint16(5971), + 609: uint16(7694), + 610: uint16(11542), + 611: uint16(10551), + 612: uint16(5655), + 613: uint16(8452), + 614: uint16(4419), + 615: uint16(7218), + 616: uint16(12088), + 617: uint16(12093), + 618: uint16(12091), + 619: uint16(12086), + 620: uint16(8462), + 621: uint16(12089), + 622: uint16(12092), + 623: uint16(12090), + 624: uint16(10556), + 625: uint16(12087), + 626: uint16(7693), + 627: uint16(10834), + 628: uint16(12094), + 629: uint16(12095), + 630: uint16(7171), + 631: uint16(12108), + 632: uint16(9775), + 633: uint16(10261), + 634: uint16(12103), + 635: uint16(10575), + 636: uint16(4373), + 637: uint16(12107), + 638: uint16(12101), + 639: uint16(12110), + 640: uint16(8241), + 641: uint16(5923), + 642: uint16(9787), + 643: uint16(16166), + 644: uint16(12109), + 645: uint16(9276), + 646: uint16(12098), + 647: uint16(5973), + 648: uint16(5972), + 649: uint16(12096), + 650: uint16(6969), + 651: uint16(12104), + 652: uint16(10574), + 653: uint16(8748), + 654: uint16(12100), + 655: uint16(5712), + 656: uint16(12097), + 657: uint16(12105), + 658: uint16(12099), + 659: uint16(11568), + 660: uint16(12106), + 661: uint16(11808), + 662: uint16(5445), + 663: uint16(5711), + 664: uint16(12111), + 665: uint16(12112), + 666: uint16(12116), + 667: uint16(3885), + 668: uint16(10543), + 669: uint16(12115), + 670: uint16(12114), + 671: uint16(12118), + 672: uint16(12117), + 673: uint16(9027), + 674: uint16(5713), + 675: uint16(12119), + 676: uint16(6948), + 677: uint16(8453), + 678: uint16(9028), + 679: uint16(5461), + 680: uint16(12120), + 681: uint16(5141), + 682: uint16(12121), + 683: uint16(12123), + 684: uint16(10772), + 685: uint16(5701), + 686: uint16(6672), + 687: uint16(10070), + 688: uint16(12122), + 689: uint16(6436), + 690: uint16(11298), + 691: uint16(12125), + 692: uint16(12290), + 693: uint16(12124), + 694: uint16(6435), + 695: uint16(7260), + 696: uint16(5656), + 697: uint16(12291), + 698: uint16(5422), + 699: uint16(12288), + 700: uint16(12289), + 701: uint16(9486), + 702: uint16(8283), + 703: uint16(5378), + 704: uint16(10796), + 705: uint16(12292), + 706: uint16(11548), + 707: uint16(12293), + 708: uint16(12296), + 709: uint16(12294), + 710: uint16(8237), + 711: uint16(12295), + 712: uint16(12297), + 713: uint16(12299), + 714: uint16(12298), + 715: uint16(10535), + 716: uint16(5142), + 717: uint16(12301), + 718: uint16(12302), + 719: uint16(4366), + 720: uint16(12300), + 721: uint16(6995), + 722: uint16(12305), + 723: uint16(12304), + 724: uint16(12303), + 725: uint16(12085), + 726: uint16(12306), + 727: uint16(7261), + 728: uint16(12307), + 729: uint16(11268), + 730: uint16(11064), + 731: uint16(12309), + 732: uint16(12308), + 733: uint16(12311), + 734: uint16(12310), + 735: uint16(12312), + 736: uint16(12313), + 737: uint16(3923), + 738: uint16(5908), + 739: uint16(5658), + 740: uint16(7195), + 741: uint16(8794), + 742: uint16(5379), + 743: uint16(8007), + 744: uint16(5974), + 745: uint16(6221), + 746: uint16(12315), + 747: uint16(11047), + 748: uint16(9253), + 749: uint16(6744), + 750: uint16(12314), + 751: uint16(12316), + 752: uint16(9277), + 753: uint16(4692), + 754: uint16(12317), + 755: uint16(9565), + 756: uint16(8211), + 757: uint16(12319), + 758: uint16(12320), + 759: uint16(9995), + 760: uint16(5975), + 761: uint16(11802), + 762: uint16(12321), + 763: uint16(5381), + 764: uint16(10523), + 765: uint16(8469), + 766: uint16(5456), + 767: uint16(9236), + 768: uint16(5714), + 769: uint16(12322), + 770: uint16(12323), + 771: uint16(9537), + 772: uint16(4158), + 773: uint16(12326), + 774: uint16(6492), + 775: uint16(12325), + 776: uint16(6437), + 777: uint16(12327), + 778: uint16(17741), + 779: uint16(12328), + 780: uint16(10784), + 781: uint16(12329), + 782: uint16(12330), + 783: uint16(12331), + 784: uint16(7496), + 785: uint16(6955), + 786: uint16(4870), + 787: uint16(12334), + 788: uint16(12332), + 789: uint16(11036), + 790: uint16(12333), + 791: uint16(10297), + 792: uint16(12335), + 793: uint16(12336), + 794: uint16(12337), + 795: uint16(9278), + 796: uint16(12341), + 797: uint16(12339), + 798: uint16(12340), + 799: uint16(12338), + 800: uint16(6466), + 801: uint16(12342), + 802: uint16(11081), + 803: uint16(11587), + 804: uint16(12343), + 805: uint16(7943), + 806: uint16(12344), + 807: uint16(7225), + 808: uint16(12345), + 809: uint16(8795), + 810: uint16(11550), + 811: uint16(9279), + 812: uint16(12580), + 813: uint16(12346), + 814: uint16(21252), + 815: uint16(5412), + 816: uint16(12347), + 817: uint16(10813), + 818: uint16(7239), + 819: uint16(8539), + 820: uint16(12349), + 821: uint16(9539), + 822: uint16(12350), + 823: uint16(12351), + 824: uint16(4621), + 825: uint16(12352), + 826: uint16(5382), + 827: uint16(9515), + 828: uint16(4185), + 829: uint16(7215), + 830: uint16(9984), + 831: uint16(12353), + 832: uint16(9280), + 833: uint16(7726), + 834: uint16(12354), + 835: uint16(10507), + 836: uint16(7993), + 837: uint16(4865), + 838: uint16(4872), + 839: uint16(12355), + 840: uint16(12357), + 841: uint16(5657), + 842: uint16(12356), + 843: uint16(11602), + 844: uint16(7240), + 845: uint16(10012), + 846: uint16(10539), + 847: uint16(12358), + 848: uint16(11351), + 849: uint16(12359), + 850: uint16(12360), + 851: uint16(9309), + 852: uint16(12361), + 853: uint16(7944), + 854: uint16(6493), + 855: uint16(5715), + 856: uint16(12362), + 857: uint16(6696), + 858: uint16(6222), + 859: uint16(9029), + 860: uint16(12364), + 861: uint16(8454), + 862: uint16(6478), + 863: uint16(12365), + 864: uint16(12366), + 865: uint16(8207), + 866: uint16(12363), + 867: uint16(12368), + 868: uint16(10773), + 869: uint16(6211), + 870: uint16(12367), + 871: uint16(5716), + 872: uint16(6461), + 873: uint16(9804), + 874: uint16(12371), + 875: uint16(12369), + 876: uint16(10330), + 877: uint16(7497), + 878: uint16(12378), + 879: uint16(4675), + 880: uint16(12372), + 881: uint16(12370), + 882: uint16(8238), + 883: uint16(12374), + 884: uint16(12373), + 885: uint16(4643), + 886: uint16(5695), + 887: uint16(12379), + 888: uint16(11532), + 889: uint16(12375), + 890: uint16(12380), + 891: uint16(12377), + 892: uint16(12376), + 893: uint16(11566), + 894: uint16(5976), + 895: uint16(4386), + 896: uint16(11603), + 897: uint16(7252), + 898: uint16(9271), + 899: uint16(6212), + 900: uint16(12545), + 901: uint16(12546), + 902: uint16(11588), + 903: uint16(11786), + 904: uint16(12548), + 905: uint16(5977), + 906: uint16(12547), + 907: uint16(4622), + 908: uint16(12549), + 909: uint16(10805), + 910: uint16(8987), + 911: uint16(11269), + 912: uint16(10552), + 913: uint16(12550), + 914: uint16(20276), + 915: uint16(9487), + 916: uint16(12551), + 917: uint16(4873), + 918: uint16(11026), + 919: uint16(7424), + 920: uint16(12552), + 921: uint16(10566), + 922: uint16(12556), + 923: uint16(7945), + 924: uint16(12553), + 925: uint16(5423), + 926: uint16(12554), + 927: uint16(4874), + 928: uint16(5645), + 929: uint16(12557), + 930: uint16(12558), + 931: uint16(12559), + 932: uint16(12560), + 933: uint16(6970), + 934: uint16(5978), + 935: uint16(11069), + 936: uint16(11079), + 937: uint16(9558), + 938: uint16(10576), + 939: uint16(12561), + 940: uint16(12562), + 941: uint16(12564), + 942: uint16(12566), + 943: uint16(12565), + 944: uint16(12567), + 945: uint16(4380), + 946: uint16(10795), + 947: uint16(6491), + 948: uint16(12568), + 949: uint16(8248), + 950: uint16(7425), + 951: uint16(5384), + 952: uint16(12569), + 953: uint16(10042), + 954: uint16(12570), + 955: uint16(12571), + 956: uint16(12572), + 957: uint16(12573), + 958: uint16(10243), + 959: uint16(5447), + 960: uint16(3908), + 961: uint16(9502), + 962: uint16(12574), + 963: uint16(7196), + 964: uint16(8008), + 965: uint16(12576), + 966: uint16(12575), + 967: uint16(7426), + 968: uint16(5952), + 969: uint16(12578), + 970: uint16(10013), + 971: uint16(12579), + 972: uint16(10043), + 973: uint16(8467), + 974: uint16(8525), + 975: uint16(5383), + 976: uint16(9549), + 977: uint16(8720), + 978: uint16(9805), + 979: uint16(10797), + 980: uint16(12581), + 981: uint16(8009), + 982: uint16(5652), + 983: uint16(12582), + 984: uint16(12583), + 985: uint16(4107), + 986: uint16(3924), + 987: uint16(4940), + 988: uint16(8455), + 989: uint16(5168), + 990: uint16(11344), + 991: uint16(12586), + 992: uint16(4374), + 993: uint16(12585), + 994: uint16(5385), + 995: uint16(12587), + 996: uint16(11088), + 997: uint16(12588), + 998: uint16(11569), + 999: uint16(5979), + 1000: uint16(5909), + 1001: uint16(12589), + 1002: uint16(12591), + 1003: uint16(12590), + 1004: uint16(7742), + 1005: uint16(4120), + 1006: uint16(4157), + 1007: uint16(12592), + 1008: uint16(12593), + 1009: uint16(5910), + 1010: uint16(12594), + 1011: uint16(5197), + 1012: uint16(6673), + 1013: uint16(12595), + 1014: uint16(10835), + 1015: uint16(6420), + 1016: uint16(5177), + 1017: uint16(11270), + 1018: uint16(8239), + 1019: uint16(10014), + 1020: uint16(7004), + 1021: uint16(7206), + 1022: uint16(6983), + 1023: uint16(6996), + 1024: uint16(7253), + 1025: uint16(10015), + 1026: uint16(12598), + 1027: uint16(4130), + 1028: uint16(8240), + 1029: uint16(5980), + 1030: uint16(5924), + 1031: uint16(5446), + 1032: uint16(12602), + 1033: uint16(8704), + 1034: uint16(8541), + 1035: uint16(5386), + 1036: uint16(7427), + 1037: uint16(12603), + 1038: uint16(12601), + 1039: uint16(4387), + 1040: uint16(8517), + 1041: uint16(6935), + 1042: uint16(6698), + 1043: uint16(4101), + 1044: uint16(4687), + 1045: uint16(6213), + 1046: uint16(6697), + 1047: uint16(12604), + 1048: uint16(12605), + 1049: uint16(5160), + 1050: uint16(4645), + 1051: uint16(6214), + 1052: uint16(5159), + 1053: uint16(9022), + 1054: uint16(4100), + 1055: uint16(9488), + 1056: uint16(11037), + 1057: uint16(6144), + 1058: uint16(11352), + 1059: uint16(9254), + 1060: uint16(5981), + 1061: uint16(5646), + 1062: uint16(12614), + 1063: uint16(5442), + 1064: uint16(10793), + 1065: uint16(10044), + 1066: uint16(12613), + 1067: uint16(4925), + 1068: uint16(12608), + 1069: uint16(12609), + 1070: uint16(12611), + 1071: uint16(12612), + 1072: uint16(5178), + 1073: uint16(7744), + 1074: uint16(10508), + 1075: uint16(12610), + 1076: uint16(12606), + 1077: uint16(5954), + 1078: uint16(12607), + 1079: uint16(11779), + 1080: uint16(10577), + 1081: uint16(9031), + 1082: uint16(5953), + 1083: uint16(6223), + 1084: uint16(12615), + 1085: uint16(9532), + 1086: uint16(12619), + 1087: uint16(7005), + 1088: uint16(6997), + 1089: uint16(12622), + 1090: uint16(12620), + 1091: uint16(11010), + 1092: uint16(12617), + 1093: uint16(12626), + 1094: uint16(12621), + 1095: uint16(12624), + 1096: uint16(5925), + 1097: uint16(11038), + 1098: uint16(12625), + 1099: uint16(12627), + 1100: uint16(12629), + 1101: uint16(6479), + 1102: uint16(11809), + 1103: uint16(12618), + 1104: uint16(12616), + 1105: uint16(12628), + 1106: uint16(12623), + 1107: uint16(12631), + 1108: uint16(12802), + 1109: uint16(12633), + 1110: uint16(12637), + 1111: uint16(12800), + 1112: uint16(12634), + 1113: uint16(12829), + 1114: uint16(6472), + 1115: uint16(4624), + 1116: uint16(12632), + 1117: uint16(12804), + 1118: uint16(3925), + 1119: uint16(12803), + 1120: uint16(3844), + 1121: uint16(10281), + 1122: uint16(12801), + 1123: uint16(12635), + 1124: uint16(12630), + 1125: uint16(12636), + 1126: uint16(6439), + 1127: uint16(12805), + 1128: uint16(3926), + 1129: uint16(12814), + 1130: uint16(12806), + 1131: uint16(12807), + 1132: uint16(7428), + 1133: uint16(10824), + 1134: uint16(12812), + 1135: uint16(12811), + 1136: uint16(9230), + 1137: uint16(12813), + 1138: uint16(12810), + 1139: uint16(4115), + 1140: uint16(6421), + 1141: uint16(7695), + 1142: uint16(12808), + 1143: uint16(9281), + 1144: uint16(12809), + 1145: uint16(3841), + 1146: uint16(12819), + 1147: uint16(11266), + 1148: uint16(7430), + 1149: uint16(12825), + 1150: uint16(12824), + 1151: uint16(12815), + 1152: uint16(8482), + 1153: uint16(12816), + 1154: uint16(8526), + 1155: uint16(12821), + 1156: uint16(7429), + 1157: uint16(12818), + 1158: uint16(11075), + 1159: uint16(5659), + 1160: uint16(12822), + 1161: uint16(12823), + 1162: uint16(12820), + 1163: uint16(12826), + 1164: uint16(12817), + 1165: uint16(12832), + 1166: uint16(12837), + 1167: uint16(12833), + 1168: uint16(12828), + 1169: uint16(12838), + 1170: uint16(8208), + 1171: uint16(12840), + 1172: uint16(6145), + 1173: uint16(12830), + 1174: uint16(8796), + 1175: uint16(12834), + 1176: uint16(12827), + 1177: uint16(4876), + 1178: uint16(4941), + 1179: uint16(4676), + 1180: uint16(12835), + 1181: uint16(12831), + 1182: uint16(5717), + 1183: uint16(12841), + 1184: uint16(12839), + 1185: uint16(8242), + 1186: uint16(5161), + 1187: uint16(5387), + 1188: uint16(12836), + 1189: uint16(5459), + 1190: uint16(4131), + 1191: uint16(12845), + 1192: uint16(12843), + 1193: uint16(13062), + 1194: uint16(12848), + 1195: uint16(12842), + 1196: uint16(12846), + 1197: uint16(12844), + 1198: uint16(6699), + 1199: uint16(12847), + 1200: uint16(12850), + 1201: uint16(12855), + 1202: uint16(12853), + 1203: uint16(12852), + 1204: uint16(8721), + 1205: uint16(4388), + 1206: uint16(12849), + 1207: uint16(12851), + 1208: uint16(7431), + 1209: uint16(4114), + 1210: uint16(12854), + 1211: uint16(4413), + 1212: uint16(12865), + 1213: uint16(7515), + 1214: uint16(12861), + 1215: uint16(12859), + 1216: uint16(12860), + 1217: uint16(12862), + 1218: uint16(4124), + 1219: uint16(8216), + 1220: uint16(12856), + 1221: uint16(12857), + 1222: uint16(4697), + 1223: uint16(12864), + 1224: uint16(4942), + 1225: uint16(12867), + 1226: uint16(12863), + 1227: uint16(12866), + 1228: uint16(10509), + 1229: uint16(9524), + 1230: uint16(10007), + 1231: uint16(12869), + 1232: uint16(12868), + 1233: uint16(4644), + 1234: uint16(12870), + 1235: uint16(12873), + 1236: uint16(12872), + 1237: uint16(12871), + 1238: uint16(9752), + 1239: uint16(12874), + 1240: uint16(12875), + 1241: uint16(12877), + 1242: uint16(12876), + 1243: uint16(12879), + 1244: uint16(12882), + 1245: uint16(12880), + 1246: uint16(12878), + 1247: uint16(12881), + 1248: uint16(12883), + 1249: uint16(12884), + 1250: uint16(12885), + 1251: uint16(12886), + 1252: uint16(12887), + 1253: uint16(12324), + 1254: uint16(7003), + 1255: uint16(6700), + 1256: uint16(4434), + 1257: uint16(3927), + 1258: uint16(8739), + 1259: uint16(12888), + 1260: uint16(6403), + 1261: uint16(3886), + 1262: uint16(7741), + 1263: uint16(12889), + 1264: uint16(5926), + 1265: uint16(6224), + 1266: uint16(12891), + 1267: uint16(12890), + 1268: uint16(10559), + 1269: uint16(12892), + 1270: uint16(13056), + 1271: uint16(12893), + 1272: uint16(13057), + 1273: uint16(13058), + 1274: uint16(5718), + 1275: uint16(4159), + 1276: uint16(13059), + 1277: uint16(13061), + 1278: uint16(13060), + 1279: uint16(13063), + 1280: uint16(9273), + 1281: uint16(13064), + 1282: uint16(3860), + 1283: uint16(6462), + 1284: uint16(5660), + 1285: uint16(8750), + 1286: uint16(13065), + 1287: uint16(13066), + 1288: uint16(13068), + 1289: uint16(13069), + 1290: uint16(6467), + 1291: uint16(5424), + 1292: uint16(10774), + 1293: uint16(13067), + 1294: uint16(13070), + 1295: uint16(6432), + 1296: uint16(6146), + 1297: uint16(13074), + 1298: uint16(6404), + 1299: uint16(8722), + 1300: uint16(13071), + 1301: uint16(9017), + 1302: uint16(13075), + 1303: uint16(7745), + 1304: uint16(13073), + 1305: uint16(13076), + 1306: uint16(5662), + 1307: uint16(13077), + 1308: uint16(13078), + 1309: uint16(6147), + 1310: uint16(4639), + 1311: uint16(13080), + 1312: uint16(13081), + 1313: uint16(13082), + 1314: uint16(13079), + 1315: uint16(13072), + 1316: uint16(13083), + 1317: uint16(13084), + 1318: uint16(10819), + 1319: uint16(7498), + 1320: uint16(13086), + 1321: uint16(13087), + 1322: uint16(13085), + 1323: uint16(13089), + 1324: uint16(9751), + 1325: uint16(3911), + 1326: uint16(10293), + 1327: uint16(13090), + 1328: uint16(7516), + 1329: uint16(6936), + 1330: uint16(9788), + 1331: uint16(4943), + 1332: uint16(6474), + 1333: uint16(10808), + 1334: uint16(9489), + 1335: uint16(5719), + 1336: uint16(8494), + 1337: uint16(13088), + 1338: uint16(13091), + 1339: uint16(8483), + 1340: uint16(13092), + 1341: uint16(13093), + 1342: uint16(13095), + 1343: uint16(9032), + 1344: uint16(4877), + 1345: uint16(21248), + 1346: uint16(4160), + 1347: uint16(10578), + 1348: uint16(7499), + 1349: uint16(9255), + 1350: uint16(6469), + 1351: uint16(13101), + 1352: uint16(10524), + 1353: uint16(11580), + 1354: uint16(4435), + 1355: uint16(13097), + 1356: uint16(8217), + 1357: uint16(13100), + 1358: uint16(9282), + 1359: uint16(9256), + 1360: uint16(9283), + 1361: uint16(10008), + 1362: uint16(9004), + 1363: uint16(6440), + 1364: uint16(13096), + 1365: uint16(4181), + 1366: uint16(9237), + 1367: uint16(13098), + 1368: uint16(13094), + 1369: uint16(7727), + 1370: uint16(13102), + 1371: uint16(7213), + 1372: uint16(5388), + 1373: uint16(13103), + 1374: uint16(10567), + 1375: uint16(8284), + 1376: uint16(8997), + 1377: uint16(13105), + 1378: uint16(10798), + 1379: uint16(13106), + 1380: uint16(13111), + 1381: uint16(10510), + 1382: uint16(13110), + 1383: uint16(13104), + 1384: uint16(13107), + 1385: uint16(13109), + 1386: uint16(6405), + 1387: uint16(10536), + 1388: uint16(13112), + 1389: uint16(8740), + 1390: uint16(4436), + 1391: uint16(7500), + 1392: uint16(13114), + 1393: uint16(13113), + 1394: uint16(6215), + 1395: uint16(13115), + 1396: uint16(13117), + 1397: uint16(13116), + 1398: uint16(13119), + 1399: uint16(13108), + 1400: uint16(13121), + 1401: uint16(13120), + 1402: uint16(13118), + 1403: uint16(6701), + 1404: uint16(7728), + 1405: uint16(8243), + 1406: uint16(13122), + 1407: uint16(7963), + 1408: uint16(3916), + 1409: uint16(9795), + 1410: uint16(9018), + 1411: uint16(13124), + 1412: uint16(13123), + 1413: uint16(13125), + 1414: uint16(13126), + 1415: uint16(13127), + 1416: uint16(13128), + 1417: uint16(10544), + 1418: uint16(13129), + 1419: uint16(4389), + 1420: uint16(13130), + 1421: uint16(11291), + 1422: uint16(4623), + 1423: uint16(12584), + 1424: uint16(7207), + 1425: uint16(8478), + 1426: uint16(13131), + 1427: uint16(11082), + 1428: uint16(11027), + 1429: uint16(13133), + 1430: uint16(8518), + 1431: uint16(9238), + 1432: uint16(8479), + 1433: uint16(10294), + 1434: uint16(13134), + 1435: uint16(13135), + 1436: uint16(4186), + 1437: uint16(6937), + 1438: uint16(13136), + 1439: uint16(3887), + 1440: uint16(13137), + 1441: uint16(13138), + 1442: uint16(4161), + 1443: uint16(4944), + 1444: uint16(9535), + 1445: uint16(10579), + 1446: uint16(13142), + 1447: uint16(8244), + 1448: uint16(13141), + 1449: uint16(5663), + 1450: uint16(10810), + 1451: uint16(13140), + 1452: uint16(9284), + 1453: uint16(13144), + 1454: uint16(13143), + 1455: uint16(13146), + 1456: uint16(13145), + 1457: uint16(4187), + 1458: uint16(13147), + 1459: uint16(7432), + 1460: uint16(13149), + 1461: uint16(8708), + 1462: uint16(13148), + 1463: uint16(10514), + 1464: uint16(7254), + 1465: uint16(9274), + 1466: uint16(13312), + 1467: uint16(6148), + 1468: uint16(13313), + 1469: uint16(9728), + 1470: uint16(10045), + 1471: uint16(11056), + 1472: uint16(9732), + 1473: uint16(13322), + 1474: uint16(5143), + 1475: uint16(11300), + 1476: uint16(11022), + 1477: uint16(13579), + 1478: uint16(13314), + 1479: uint16(13317), + 1480: uint16(8484), + 1481: uint16(10775), + 1482: uint16(9257), + 1483: uint16(13318), + 1484: uint16(10820), + 1485: uint16(6441), + 1486: uint16(7433), + 1487: uint16(13319), + 1488: uint16(6703), + 1489: uint16(6702), + 1490: uint16(3864), + 1491: uint16(5927), + 1492: uint16(7946), + 1493: uint16(3888), + 1494: uint16(13323), + 1495: uint16(13324), + 1496: uint16(13321), + 1497: uint16(4119), + 1498: uint16(4878), + 1499: uint16(13320), + 1500: uint16(11044), + 1501: uint16(10256), + 1502: uint16(3847), + 1503: uint16(3928), + 1504: uint16(6704), + 1505: uint16(3889), + 1506: uint16(3842), + 1507: uint16(13329), + 1508: uint16(13327), + 1509: uint16(11035), + 1510: uint16(13330), + 1511: uint16(13328), + 1512: uint16(13326), + 1513: uint16(7696), + 1514: uint16(13325), + 1515: uint16(10553), + 1516: uint16(5955), + 1517: uint16(13334), + 1518: uint16(13335), + 1519: uint16(7434), + 1520: uint16(13331), + 1521: uint16(11787), + 1522: uint16(9771), + 1523: uint16(13333), + 1524: uint16(6406), + 1525: uint16(13336), + 1526: uint16(10295), + 1527: uint16(13337), + 1528: uint16(13332), + 1529: uint16(11034), + 1530: uint16(9789), + 1531: uint16(13338), + 1532: uint16(10257), + 1533: uint16(13339), + 1534: uint16(13343), + 1535: uint16(13340), + 1536: uint16(4390), + 1537: uint16(13342), + 1538: uint16(6938), + 1539: uint16(13341), + 1540: uint16(5720), + 1541: uint16(13355), + 1542: uint16(13348), + 1543: uint16(13345), + 1544: uint16(8771), + 1545: uint16(13344), + 1546: uint16(13346), + 1547: uint16(13347), + 1548: uint16(13349), + 1549: uint16(13350), + 1550: uint16(4945), + 1551: uint16(13352), + 1552: uint16(13351), + 1553: uint16(13353), + 1554: uint16(7501), + 1555: uint16(13356), + 1556: uint16(9019), + 1557: uint16(4132), + 1558: uint16(13354), + 1559: uint16(13357), + 1560: uint16(13358), + 1561: uint16(13361), + 1562: uint16(13359), + 1563: uint16(13360), + 1564: uint16(6705), + 1565: uint16(13362), + 1566: uint16(6149), + 1567: uint16(13363), + 1568: uint16(6745), + 1569: uint16(8471), + 1570: uint16(13364), + 1571: uint16(13365), + 1572: uint16(6713), + 1573: uint16(6150), + 1574: uint16(11057), + 1575: uint16(5127), + 1576: uint16(5928), + 1577: uint16(13366), + 1578: uint16(4663), + 1579: uint16(13367), + 1580: uint16(8472), + 1581: uint16(13368), + 1582: uint16(13570), + 1583: uint16(13369), + 1584: uint16(13370), + 1585: uint16(13371), + 1586: uint16(13373), + 1587: uint16(13374), + 1588: uint16(13375), + 1589: uint16(8527), + 1590: uint16(4102), + 1591: uint16(6984), + 1592: uint16(3873), + 1593: uint16(8246), + 1594: uint16(4879), + 1595: uint16(6932), + 1596: uint16(6151), + 1597: uint16(9285), + 1598: uint16(7168), + 1599: uint16(4880), + 1600: uint16(8775), + 1601: uint16(9033), + 1602: uint16(3863), + 1603: uint16(5144), + 1604: uint16(10580), + 1605: uint16(6945), + 1606: uint16(5169), + 1607: uint16(8010), + 1608: uint16(6939), + 1609: uint16(11271), + 1610: uint16(13376), + 1611: uint16(5179), + 1612: uint16(6442), + 1613: uint16(4625), + 1614: uint16(4162), + 1615: uint16(7435), + 1616: uint16(4391), + 1617: uint16(13377), + 1618: uint16(11301), + 1619: uint16(7208), + 1620: uint16(6979), + 1621: uint16(13378), + 1622: uint16(4946), + 1623: uint16(9521), + 1624: uint16(11016), + 1625: uint16(13379), + 1626: uint16(13380), + 1627: uint16(10296), + 1628: uint16(13382), + 1629: uint16(4871), + 1630: uint16(5462), + 1631: uint16(13381), + 1632: uint16(4881), + 1633: uint16(7697), + 1634: uint16(13386), + 1635: uint16(6656), + 1636: uint16(4392), + 1637: uint16(13385), + 1638: uint16(13383), + 1639: uint16(13387), + 1640: uint16(13384), + 1641: uint16(9738), + 1642: uint16(15148), + 1643: uint16(7698), + 1644: uint16(13388), + 1645: uint16(11551), + 1646: uint16(13389), + 1647: uint16(13391), + 1648: uint16(8797), + 1649: uint16(13390), + 1650: uint16(7938), + 1651: uint16(6746), + 1652: uint16(8495), + 1653: uint16(6998), + 1654: uint16(10324), + 1655: uint16(8011), + 1656: uint16(6956), + 1657: uint16(13392), + 1658: uint16(7436), + 1659: uint16(13393), + 1660: uint16(13394), + 1661: uint16(3890), + 1662: uint16(8473), + 1663: uint16(7729), + 1664: uint16(13395), + 1665: uint16(9490), + 1666: uint16(7437), + 1667: uint16(7438), + 1668: uint16(13396), + 1669: uint16(8012), + 1670: uint16(7439), + 1671: uint16(13397), + 1672: uint16(13398), + 1673: uint16(11071), + 1674: uint16(13399), + 1675: uint16(5413), + 1676: uint16(7169), + 1677: uint16(13400), + 1678: uint16(13401), + 1679: uint16(6971), + 1680: uint16(7691), + 1681: uint16(9555), + 1682: uint16(7731), + 1683: uint16(10071), + 1684: uint16(9729), + 1685: uint16(5416), + 1686: uint16(13402), + 1687: uint16(5198), + 1688: uint16(13403), + 1689: uint16(5469), + 1690: uint16(9518), + 1691: uint16(4367), + 1692: uint16(6706), + 1693: uint16(13404), + 1694: uint16(13569), + 1695: uint16(13568), + 1696: uint16(5468), + 1697: uint16(13405), + 1698: uint16(9239), + 1699: uint16(8463), + 1700: uint16(9258), + 1701: uint16(6951), + 1702: uint16(8247), + 1703: uint16(11353), + 1704: uint16(13571), + 1705: uint16(13572), + 1706: uint16(9525), + 1707: uint16(6674), + 1708: uint16(13574), + 1709: uint16(13575), + 1710: uint16(13576), + 1711: uint16(4947), + 1712: uint16(13577), + 1713: uint16(13578), + 1714: uint16(4363), + 1715: uint16(8218), + 1716: uint16(4931), + 1717: uint16(13580), + 1718: uint16(11015), + 1719: uint16(8497), + 1720: uint16(4664), + 1721: uint16(13582), + 1722: uint16(13584), + 1723: uint16(4926), + 1724: uint16(13581), + 1725: uint16(13583), + 1726: uint16(13586), + 1727: uint16(13585), + 1728: uint16(13587), + 1729: uint16(13588), + 1730: uint16(9500), + 1731: uint16(5389), + 1732: uint16(4420), + 1733: uint16(13589), + 1734: uint16(13594), + 1735: uint16(13592), + 1736: uint16(10582), + 1737: uint16(10581), + 1738: uint16(9286), + 1739: uint16(13591), + 1740: uint16(7219), + 1741: uint16(13590), + 1742: uint16(7761), + 1743: uint16(13595), + 1744: uint16(6473), + 1745: uint16(13601), + 1746: uint16(13602), + 1747: uint16(13596), + 1748: uint16(4626), + 1749: uint16(13597), + 1750: uint16(13606), + 1751: uint16(13605), + 1752: uint16(13604), + 1753: uint16(13600), + 1754: uint16(13599), + 1755: uint16(13603), + 1756: uint16(10583), + 1757: uint16(13610), + 1758: uint16(13607), + 1759: uint16(13609), + 1760: uint16(11345), + 1761: uint16(13608), + 1762: uint16(13598), + 1763: uint16(7762), + 1764: uint16(13611), + 1765: uint16(6422), + 1766: uint16(13612), + 1767: uint16(13613), + 1768: uint16(13616), + 1769: uint16(13615), + 1770: uint16(13614), + 1771: uint16(9287), + 1772: uint16(13593), + 1773: uint16(13622), + 1774: uint16(13618), + 1775: uint16(13617), + 1776: uint16(13619), + 1777: uint16(13620), + 1778: uint16(13623), + 1779: uint16(11589), + 1780: uint16(13624), + 1781: uint16(13621), + 1782: uint16(13625), + 1783: uint16(4927), + 1784: uint16(13626), + 1785: uint16(13628), + 1786: uint16(13627), + 1787: uint16(13629), + 1788: uint16(13630), + 1789: uint16(8013), + 1790: uint16(7170), + 1791: uint16(7235), + 1792: uint16(8258), + 1793: uint16(6152), + 1794: uint16(6423), + 1795: uint16(6153), + 1796: uint16(5199), + 1797: uint16(13631), + 1798: uint16(6424), + 1799: uint16(5929), + 1800: uint16(13632), + 1801: uint16(11013), + 1802: uint16(9762), + 1803: uint16(13633), + 1804: uint16(6154), + 1805: uint16(4875), + 1806: uint16(8710), + 1807: uint16(5425), + 1808: uint16(6707), + 1809: uint16(10298), + 1810: uint16(10016), + 1811: uint16(13634), + 1812: uint16(4948), + 1813: uint16(13637), + 1814: uint16(8960), + 1815: uint16(13636), + 1816: uint16(13635), + 1817: uint16(13638), + 1818: uint16(9034), + 1819: uint16(7746), + 1820: uint16(6708), + 1821: uint16(7977), + 1822: uint16(8498), + 1823: uint16(5121), + 1824: uint16(8961), + 1825: uint16(13639), + 1826: uint16(13640), + 1827: uint16(7502), + 1828: uint16(10776), + 1829: uint16(13643), + 1830: uint16(13642), + 1831: uint16(13641), + 1832: uint16(10332), + 1833: uint16(13650), + 1834: uint16(10809), + 1835: uint16(13644), + 1836: uint16(13646), + 1837: uint16(10826), + 1838: uint16(13645), + 1839: uint16(13647), + 1840: uint16(9991), + 1841: uint16(13648), + 1842: uint16(10525), + 1843: uint16(13649), + 1844: uint16(4882), + 1845: uint16(10526), + 1846: uint16(9742), + 1847: uint16(13651), + 1848: uint16(13652), + 1849: uint16(6155), + 1850: uint16(4883), + 1851: uint16(13653), + 1852: uint16(5911), + 1853: uint16(11299), + 1854: uint16(11272), + 1855: uint16(4949), + 1856: uint16(13655), + 1857: uint16(8962), + 1858: uint16(6156), + 1859: uint16(7440), + 1860: uint16(10046), + 1861: uint16(7441), + 1862: uint16(7255), + 1863: uint16(9035), + 1864: uint16(10584), + 1865: uint16(9240), + 1866: uint16(6157), + 1867: uint16(10299), + 1868: uint16(13656), + 1869: uint16(9272), + 1870: uint16(6433), + 1871: uint16(5930), + 1872: uint16(9036), + 1873: uint16(3874), + 1874: uint16(7245), + 1875: uint16(6158), + 1876: uint16(11302), + 1877: uint16(13657), + 1878: uint16(13658), + 1879: uint16(9776), + 1880: uint16(13659), + 1881: uint16(11606), + 1882: uint16(11788), + 1883: uint16(13661), + 1884: uint16(13660), + 1885: uint16(4646), + 1886: uint16(13824), + 1887: uint16(13827), + 1888: uint16(13828), + 1889: uint16(13826), + 1890: uint16(10271), + 1891: uint16(7442), + 1892: uint16(13830), + 1893: uint16(13829), + 1894: uint16(13825), + 1895: uint16(13831), + 1896: uint16(13832), + 1897: uint16(13833), + 1898: uint16(13836), + 1899: uint16(13834), + 1900: uint16(13835), + 1901: uint16(13837), + 1902: uint16(4163), + 1903: uint16(9037), + 1904: uint16(13838), + 1905: uint16(5721), + 1906: uint16(4437), + 1907: uint16(9749), + 1908: uint16(13839), + 1909: uint16(9562), + 1910: uint16(10554), + 1911: uint16(13840), + 1912: uint16(11789), + 1913: uint16(13841), + 1914: uint16(10527), + 1915: uint16(13844), + 1916: uint16(12032), + 1917: uint16(12048), + 1918: uint16(6927), + 1919: uint16(9556), + 1920: uint16(13845), + 1921: uint16(5180), + 1922: uint16(8963), + 1923: uint16(3929), + 1924: uint16(13846), + 1925: uint16(10501), + 1926: uint16(6159), + 1927: uint16(8751), + 1928: uint16(9038), + 1929: uint16(11086), + 1930: uint16(5912), + 1931: uint16(5931), + 1932: uint16(13847), + 1933: uint16(13848), + 1934: uint16(13854), + 1935: uint16(6980), + 1936: uint16(8964), + 1937: uint16(5390), + 1938: uint16(13849), + 1939: uint16(10250), + 1940: uint16(8741), + 1941: uint16(13850), + 1942: uint16(13851), + 1943: uint16(5391), + 1944: uint16(13852), + 1945: uint16(13853), + 1946: uint16(13855), + 1947: uint16(9301), + 1948: uint16(13856), + 1949: uint16(13857), + 1950: uint16(13858), + 1951: uint16(13843), + 1952: uint16(13842), + 1953: uint16(13859), + 1954: uint16(5664), + 1955: uint16(10246), + 1956: uint16(6443), + 1957: uint16(10262), + 1958: uint16(8965), + 1959: uint16(10282), + 1960: uint16(13860), + 1961: uint16(7443), + 1962: uint16(4133), + 1963: uint16(13861), + 1964: uint16(13862), + 1965: uint16(11089), + 1966: uint16(10047), + 1967: uint16(13865), + 1968: uint16(4188), + 1969: uint16(7947), + 1970: uint16(13864), + 1971: uint16(13863), + 1972: uint16(5665), + 1973: uint16(8499), + 1974: uint16(13869), + 1975: uint16(13867), + 1976: uint16(13866), + 1977: uint16(11526), + 1978: uint16(5956), + 1979: uint16(7256), + 1980: uint16(13868), + 1981: uint16(9259), + 1982: uint16(7197), + 1983: uint16(9503), + 1984: uint16(13872), + 1985: uint16(13871), + 1986: uint16(13870), + 1987: uint16(13873), + 1988: uint16(5957), + 1989: uint16(13874), + 1990: uint16(10331), + 1991: uint16(7226), + 1992: uint16(13875), + 1993: uint16(10072), + 1994: uint16(9504), + 1995: uint16(8966), + 1996: uint16(9231), + 1997: uint16(13876), + 1998: uint16(5130), + 1999: uint16(7699), + 2000: uint16(10251), + 2001: uint16(4950), + 2002: uint16(9733), + 2003: uint16(13877), + 2004: uint16(6709), + 2005: uint16(10777), + 2006: uint16(10778), + 2007: uint16(4189), + 2008: uint16(13882), + 2009: uint16(8776), + 2010: uint16(13879), + 2011: uint16(4438), + 2012: uint16(14092), + 2013: uint16(13881), + 2014: uint16(9743), + 2015: uint16(13880), + 2016: uint16(13878), + 2017: uint16(6233), + 2018: uint16(13884), + 2019: uint16(13890), + 2020: uint16(13896), + 2021: uint16(13888), + 2022: uint16(9275), + 2023: uint16(13893), + 2024: uint16(10300), + 2025: uint16(13887), + 2026: uint16(13892), + 2027: uint16(11590), + 2028: uint16(6710), + 2029: uint16(8500), + 2030: uint16(13885), + 2031: uint16(5181), + 2032: uint16(13895), + 2033: uint16(7948), + 2034: uint16(4164), + 2035: uint16(13889), + 2036: uint16(4439), + 2037: uint16(13894), + 2038: uint16(5392), + 2039: uint16(13891), + 2040: uint16(13897), + 2041: uint16(13899), + 2042: uint16(13909), + 2043: uint16(13907), + 2044: uint16(13904), + 2045: uint16(13903), + 2046: uint16(11607), + 2047: uint16(13905), + 2048: uint16(5393), + 2049: uint16(6160), + 2050: uint16(7257), + 2051: uint16(13912), + 2052: uint16(13898), + 2053: uint16(13902), + 2054: uint16(13886), + 2055: uint16(4441), + 2056: uint16(13906), + 2057: uint16(13908), + 2058: uint16(8752), + 2059: uint16(6407), + 2060: uint16(4375), + 2061: uint16(13900), + 2062: uint16(13911), + 2063: uint16(13910), + 2064: uint16(5394), + 2065: uint16(8456), + 2066: uint16(4677), + 2067: uint16(5666), + 2068: uint16(13901), + 2069: uint16(13913), + 2070: uint16(13916), + 2071: uint16(14080), + 2072: uint16(6940), + 2073: uint16(14086), + 2074: uint16(9039), + 2075: uint16(13914), + 2076: uint16(14084), + 2077: uint16(4440), + 2078: uint16(14082), + 2079: uint16(14083), + 2080: uint16(13917), + 2081: uint16(14081), + 2082: uint16(5958), + 2083: uint16(11273), + 2084: uint16(4884), + 2085: uint16(4152), + 2086: uint16(14085), + 2087: uint16(9753), + 2088: uint16(3852), + 2089: uint16(10048), + 2090: uint16(13883), + 2091: uint16(14091), + 2092: uint16(14095), + 2093: uint16(11076), + 2094: uint16(14088), + 2095: uint16(9288), + 2096: uint16(14093), + 2097: uint16(7503), + 2098: uint16(14094), + 2099: uint16(9526), + 2100: uint16(11814), + 2101: uint16(14090), + 2102: uint16(14096), + 2103: uint16(6234), + 2104: uint16(7978), + 2105: uint16(3891), + 2106: uint16(14089), + 2107: uint16(14087), + 2108: uint16(8249), + 2109: uint16(13915), + 2110: uint16(6675), + 2111: uint16(8485), + 2112: uint16(14108), + 2113: uint16(8250), + 2114: uint16(14103), + 2115: uint16(14100), + 2116: uint16(14101), + 2117: uint16(6981), + 2118: uint16(14104), + 2119: uint16(14107), + 2120: uint16(14102), + 2121: uint16(7172), + 2122: uint16(14105), + 2123: uint16(14099), + 2124: uint16(11099), + 2125: uint16(11098), + 2126: uint16(14109), + 2127: uint16(14110), + 2128: uint16(3892), + 2129: uint16(14098), + 2130: uint16(5457), + 2131: uint16(3845), + 2132: uint16(4885), + 2133: uint16(14106), + 2134: uint16(14114), + 2135: uint16(14113), + 2136: uint16(14118), + 2137: uint16(14119), + 2138: uint16(14117), + 2139: uint16(14120), + 2140: uint16(14112), + 2141: uint16(14116), + 2142: uint16(14121), + 2143: uint16(14122), + 2144: uint16(14111), + 2145: uint16(6747), + 2146: uint16(14115), + 2147: uint16(8501), + 2148: uint16(6161), + 2149: uint16(14097), + 2150: uint16(7700), + 2151: uint16(14135), + 2152: uint16(10568), + 2153: uint16(14125), + 2154: uint16(14126), + 2155: uint16(14127), + 2156: uint16(14134), + 2157: uint16(14133), + 2158: uint16(10844), + 2159: uint16(4886), + 2160: uint16(14131), + 2161: uint16(5668), + 2162: uint16(4627), + 2163: uint16(14128), + 2164: uint16(11543), + 2165: uint16(14130), + 2166: uint16(3893), + 2167: uint16(14132), + 2168: uint16(14123), + 2169: uint16(14129), + 2170: uint16(14136), + 2171: uint16(5667), + 2172: uint16(14124), + 2173: uint16(11324), + 2174: uint16(11274), + 2175: uint16(14139), + 2176: uint16(14143), + 2177: uint16(8285), + 2178: uint16(11608), + 2179: uint16(14144), + 2180: uint16(14141), + 2181: uint16(14138), + 2182: uint16(14137), + 2183: uint16(14142), + 2184: uint16(10511), + 2185: uint16(9491), + 2186: uint16(5669), + 2187: uint16(14145), + 2188: uint16(14140), + 2189: uint16(14146), + 2190: uint16(5722), + 2191: uint16(4368), + 2192: uint16(14154), + 2193: uint16(4887), + 2194: uint16(14152), + 2195: uint16(14153), + 2196: uint16(6408), + 2197: uint16(14151), + 2198: uint16(14149), + 2199: uint16(14148), + 2200: uint16(14155), + 2201: uint16(14147), + 2202: uint16(14157), + 2203: uint16(4442), + 2204: uint16(14159), + 2205: uint16(14158), + 2206: uint16(8967), + 2207: uint16(14162), + 2208: uint16(14160), + 2209: uint16(14150), + 2210: uint16(5723), + 2211: uint16(14161), + 2212: uint16(14165), + 2213: uint16(14164), + 2214: uint16(14166), + 2215: uint16(14163), + 2216: uint16(14167), + 2217: uint16(14168), + 2218: uint16(14169), + 2219: uint16(10569), + 2220: uint16(14171), + 2221: uint16(14170), + 2222: uint16(7198), + 2223: uint16(7949), + 2224: uint16(4421), + 2225: uint16(4443), + 2226: uint16(14172), + 2227: uint16(3870), + 2228: uint16(7979), + 2229: uint16(14173), + 2230: uint16(19234), + 2231: uint16(14336), + 2232: uint16(5696), + 2233: uint16(14337), + 2234: uint16(8014), + 2235: uint16(14338), + 2236: uint16(14339), + 2237: uint16(5145), + 2238: uint16(14340), + 2239: uint16(14341), + 2240: uint16(14342), + 2241: uint16(8502), + 2242: uint16(5932), + 2243: uint16(11072), + 2244: uint16(10779), + 2245: uint16(7241), + 2246: uint16(14343), + 2247: uint16(8015), + 2248: uint16(19740), + 2249: uint16(10049), + 2250: uint16(6985), + 2251: uint16(6444), + 2252: uint16(14344), + 2253: uint16(8486), + 2254: uint16(10502), + 2255: uint16(8528), + 2256: uint16(14347), + 2257: uint16(14345), + 2258: uint16(14348), + 2259: uint16(14346), + 2260: uint16(14349), + 2261: uint16(10512), + 2262: uint16(3862), + 2263: uint16(10301), + 2264: uint16(10050), + 2265: uint16(14350), + 2266: uint16(14353), + 2267: uint16(7444), + 2268: uint16(5146), + 2269: uint16(14351), + 2270: uint16(14358), + 2271: uint16(7445), + 2272: uint16(14352), + 2273: uint16(9763), + 2274: uint16(11325), + 2275: uint16(14354), + 2276: uint16(14355), + 2277: uint16(14359), + 2278: uint16(9289), + 2279: uint16(14356), + 2280: uint16(6162), + 2281: uint16(7997), + 2282: uint16(14373), + 2283: uint16(10003), + 2284: uint16(8529), + 2285: uint16(10051), + 2286: uint16(14604), + 2287: uint16(10585), + 2288: uint16(9040), + 2289: uint16(10836), + 2290: uint16(14362), + 2291: uint16(4352), + 2292: uint16(8777), + 2293: uint16(14371), + 2294: uint16(8723), + 2295: uint16(14365), + 2296: uint16(14372), + 2297: uint16(14367), + 2298: uint16(14374), + 2299: uint16(14370), + 2300: uint16(14369), + 2301: uint16(9806), + 2302: uint16(14363), + 2303: uint16(4444), + 2304: uint16(14361), + 2305: uint16(5200), + 2306: uint16(8530), + 2307: uint16(14357), + 2308: uint16(14360), + 2309: uint16(6163), + 2310: uint16(7994), + 2311: uint16(7446), + 2312: uint16(14368), + 2313: uint16(9777), + 2314: uint16(5201), + 2315: uint16(4647), + 2316: uint16(4678), + 2317: uint16(7680), + 2318: uint16(14376), + 2319: uint16(14381), + 2320: uint16(14377), + 2321: uint16(5724), + 2322: uint16(14382), + 2323: uint16(6657), + 2324: uint16(6216), + 2325: uint16(7173), + 2326: uint16(14364), + 2327: uint16(6748), + 2328: uint16(14379), + 2329: uint16(6711), + 2330: uint16(14380), + 2331: uint16(3875), + 2332: uint16(14375), + 2333: uint16(8968), + 2334: uint16(5202), + 2335: uint16(5395), + 2336: uint16(14378), + 2337: uint16(3846), + 2338: uint16(6434), + 2339: uint16(7701), + 2340: uint16(9041), + 2341: uint16(10035), + 2342: uint16(14384), + 2343: uint16(8253), + 2344: uint16(8457), + 2345: uint16(6666), + 2346: uint16(14385), + 2347: uint16(14387), + 2348: uint16(14383), + 2349: uint16(10560), + 2350: uint16(8988), + 2351: uint16(8251), + 2352: uint16(10586), + 2353: uint16(6957), + 2354: uint16(14399), + 2355: uint16(14398), + 2356: uint16(7767), + 2357: uint16(5725), + 2358: uint16(14392), + 2359: uint16(7448), + 2360: uint16(9543), + 2361: uint16(9744), + 2362: uint16(14390), + 2363: uint16(8252), + 2364: uint16(6999), + 2365: uint16(14395), + 2366: uint16(7447), + 2367: uint16(14389), + 2368: uint16(14394), + 2369: uint16(9778), + 2370: uint16(14388), + 2371: uint16(5632), + 2372: uint16(4668), + 2373: uint16(14396), + 2374: uint16(11530), + 2375: uint16(6445), + 2376: uint16(8724), + 2377: uint16(14393), + 2378: uint16(7995), + 2379: uint16(6164), + 2380: uint16(7747), + 2381: uint16(4165), + 2382: uint16(8219), + 2383: uint16(14391), + 2384: uint16(5156), + 2385: uint16(5670), + 2386: uint16(9006), + 2387: uint16(14397), + 2388: uint16(8254), + 2389: uint16(14400), + 2390: uint16(14402), + 2391: uint16(8470), + 2392: uint16(14408), + 2393: uint16(14403), + 2394: uint16(14405), + 2395: uint16(10272), + 2396: uint16(9042), + 2397: uint16(14406), + 2398: uint16(11275), + 2399: uint16(11303), + 2400: uint16(4888), + 2401: uint16(3853), + 2402: uint16(14404), + 2403: uint16(14401), + 2404: uint16(4951), + 2405: uint16(4166), + 2406: uint16(14407), + 2407: uint16(11304), + 2408: uint16(14411), + 2409: uint16(8474), + 2410: uint16(14418), + 2411: uint16(14412), + 2412: uint16(14409), + 2413: uint16(14416), + 2414: uint16(14386), + 2415: uint16(14413), + 2416: uint16(14417), + 2417: uint16(10017), + 2418: uint16(9290), + 2419: uint16(14410), + 2420: uint16(14414), + 2421: uint16(5671), + 2422: uint16(6480), + 2423: uint16(7996), + 2424: uint16(14422), + 2425: uint16(9221), + 2426: uint16(14419), + 2427: uint16(10815), + 2428: uint16(14420), + 2429: uint16(14421), + 2430: uint16(11053), + 2431: uint16(7937), + 2432: uint16(5697), + 2433: uint16(14428), + 2434: uint16(6676), + 2435: uint16(14425), + 2436: uint16(14424), + 2437: uint16(9745), + 2438: uint16(9492), + 2439: uint16(9232), + 2440: uint16(14426), + 2441: uint16(14427), + 2442: uint16(10318), + 2443: uint16(9764), + 2444: uint16(6658), + 2445: uint16(8016), + 2446: uint16(10799), + 2447: uint16(4648), + 2448: uint16(14596), + 2449: uint16(14429), + 2450: uint16(11305), + 2451: uint16(14598), + 2452: uint16(14594), + 2453: uint16(14595), + 2454: uint16(8255), + 2455: uint16(14593), + 2456: uint16(14366), + 2457: uint16(14597), + 2458: uint16(14592), + 2459: uint16(14602), + 2460: uint16(14603), + 2461: uint16(9222), + 2462: uint16(14605), + 2463: uint16(6659), + 2464: uint16(14600), + 2465: uint16(5147), + 2466: uint16(14606), + 2467: uint16(14599), + 2468: uint16(14610), + 2469: uint16(14609), + 2470: uint16(14608), + 2471: uint16(14611), + 2472: uint16(14613), + 2473: uint16(7504), + 2474: uint16(14612), + 2475: uint16(14616), + 2476: uint16(14614), + 2477: uint16(14615), + 2478: uint16(14415), + 2479: uint16(14618), + 2480: uint16(14617), + 2481: uint16(14423), + 2482: uint16(14619), + 2483: uint16(14607), + 2484: uint16(6712), + 2485: uint16(14620), + 2486: uint16(14621), + 2487: uint16(14623), + 2488: uint16(14622), + 2489: uint16(14624), + 2490: uint16(4445), + 2491: uint16(6165), + 2492: uint16(10587), + 2493: uint16(7950), + 2494: uint16(5933), + 2495: uint16(14626), + 2496: uint16(14629), + 2497: uint16(10289), + 2498: uint16(5182), + 2499: uint16(14628), + 2500: uint16(14627), + 2501: uint16(9779), + 2502: uint16(14630), + 2503: uint16(5396), + 2504: uint16(14632), + 2505: uint16(14631), + 2506: uint16(4889), + 2507: uint16(6677), + 2508: uint16(9527), + 2509: uint16(5672), + 2510: uint16(7763), + 2511: uint16(14633), + 2512: uint16(7951), + 2513: uint16(9223), + 2514: uint16(10302), + 2515: uint16(14634), + 2516: uint16(14635), + 2517: uint16(14636), + 2518: uint16(10519), + 2519: uint16(13372), + 2520: uint16(7973), + 2521: uint16(10283), + 2522: uint16(6455), + 2523: uint16(10052), + 2524: uint16(10018), + 2525: uint16(9260), + 2526: uint16(11552), + 2527: uint16(14638), + 2528: uint16(6959), + 2529: uint16(14639), + 2530: uint16(3861), + 2531: uint16(5427), + 2532: uint16(7980), + 2533: uint16(10303), + 2534: uint16(14640), + 2535: uint16(6689), + 2536: uint16(8742), + 2537: uint16(6714), + 2538: uint16(7702), + 2539: uint16(14641), + 2540: uint16(10588), + 2541: uint16(4182), + 2542: uint16(6715), + 2543: uint16(14644), + 2544: uint16(14642), + 2545: uint16(14645), + 2546: uint16(11544), + 2547: uint16(14643), + 2548: uint16(8026), + 2549: uint16(14646), + 2550: uint16(8465), + 2551: uint16(14647), + 2552: uint16(4953), + 2553: uint16(14649), + 2554: uint16(14648), + 2555: uint16(14650), + 2556: uint16(14651), + 2557: uint16(4954), + 2558: uint16(9563), + 2559: uint16(8725), + 2560: uint16(5195), + 2561: uint16(6716), + 2562: uint16(8256), + 2563: uint16(7227), + 2564: uint16(3855), + 2565: uint16(14652), + 2566: uint16(4353), + 2567: uint16(14656), + 2568: uint16(6166), + 2569: uint16(14655), + 2570: uint16(6410), + 2571: uint16(7449), + 2572: uint16(14654), + 2573: uint16(7450), + 2574: uint16(11039), + 2575: uint16(6409), + 2576: uint16(3894), + 2577: uint16(7981), + 2578: uint16(14661), + 2579: uint16(7952), + 2580: uint16(4134), + 2581: uint16(7220), + 2582: uint16(10821), + 2583: uint16(6481), + 2584: uint16(7451), + 2585: uint16(7942), + 2586: uint16(14660), + 2587: uint16(14658), + 2588: uint16(14659), + 2589: uint16(8778), + 2590: uint16(14853), + 2591: uint16(14665), + 2592: uint16(6749), + 2593: uint16(6167), + 2594: uint16(14663), + 2595: uint16(14664), + 2596: uint16(7703), + 2597: uint16(14662), + 2598: uint16(6670), + 2599: uint16(14667), + 2600: uint16(14666), + 2601: uint16(14671), + 2602: uint16(14672), + 2603: uint16(14668), + 2604: uint16(4609), + 2605: uint16(14669), + 2606: uint16(14670), + 2607: uint16(10036), + 2608: uint16(10304), + 2609: uint16(5673), + 2610: uint16(14673), + 2611: uint16(7953), + 2612: uint16(7452), + 2613: uint16(8753), + 2614: uint16(5414), + 2615: uint16(14674), + 2616: uint16(14678), + 2617: uint16(4394), + 2618: uint16(14675), + 2619: uint16(14677), + 2620: uint16(14676), + 2621: uint16(7242), + 2622: uint16(8743), + 2623: uint16(3876), + 2624: uint16(14679), + 2625: uint16(14680), + 2626: uint16(8969), + 2627: uint16(11600), + 2628: uint16(6690), + 2629: uint16(10570), + 2630: uint16(10780), + 2631: uint16(14849), + 2632: uint16(14682), + 2633: uint16(14685), + 2634: uint16(14684), + 2635: uint16(14681), + 2636: uint16(14848), + 2637: uint16(9533), + 2638: uint16(14683), + 2639: uint16(14850), + 2640: uint16(7243), + 2641: uint16(14851), + 2642: uint16(11306), + 2643: uint16(9815), + 2644: uint16(14852), + 2645: uint16(14854), + 2646: uint16(14855), + 2647: uint16(14856), + 2648: uint16(5417), + 2649: uint16(4135), + 2650: uint16(6168), + 2651: uint16(14857), + 2652: uint16(14858), + 2653: uint16(7248), + 2654: uint16(8257), + 2655: uint16(12599), + 2656: uint16(8221), + 2657: uint16(8220), + 2658: uint16(8503), + 2659: uint16(6438), + 2660: uint16(12113), + 2661: uint16(5709), + 2662: uint16(11276), + 2663: uint16(10589), + 2664: uint16(10333), + 2665: uint16(14859), + 2666: uint16(6482), + 2667: uint16(8990), + 2668: uint16(14860), + 2669: uint16(11790), + 2670: uint16(10781), + 2671: uint16(8970), + 2672: uint16(14861), + 2673: uint16(4955), + 2674: uint16(14862), + 2675: uint16(14863), + 2676: uint16(11065), + 2677: uint16(11011), + 2678: uint16(10837), + 2679: uint16(10811), + 2680: uint16(6660), + 2681: uint16(14865), + 2682: uint16(6986), + 2683: uint16(10800), + 2684: uint16(14867), + 2685: uint16(14870), + 2686: uint16(14869), + 2687: uint16(4952), + 2688: uint16(5183), + 2689: uint16(14866), + 2690: uint16(14868), + 2691: uint16(14871), + 2692: uint16(7768), + 2693: uint16(11354), + 2694: uint16(3880), + 2695: uint16(6463), + 2696: uint16(8475), + 2697: uint16(6972), + 2698: uint16(7506), + 2699: uint16(14874), + 2700: uint16(9261), + 2701: uint16(14872), + 2702: uint16(8458), + 2703: uint16(14873), + 2704: uint16(7505), + 2705: uint16(11068), + 2706: uint16(14875), + 2707: uint16(14876), + 2708: uint16(11335), + 2709: uint16(14881), + 2710: uint16(6169), + 2711: uint16(9780), + 2712: uint16(14878), + 2713: uint16(9291), + 2714: uint16(14653), + 2715: uint16(14657), + 2716: uint16(5166), + 2717: uint16(9766), + 2718: uint16(14880), + 2719: uint16(7453), + 2720: uint16(10019), + 2721: uint16(14886), + 2722: uint16(10073), + 2723: uint16(14877), + 2724: uint16(14883), + 2725: uint16(14882), + 2726: uint16(7982), + 2727: uint16(10828), + 2728: uint16(11570), + 2729: uint16(10822), + 2730: uint16(4395), + 2731: uint16(6717), + 2732: uint16(11815), + 2733: uint16(14885), + 2734: uint16(7764), + 2735: uint16(14884), + 2736: uint16(14879), + 2737: uint16(5934), + 2738: uint16(14891), + 2739: uint16(14889), + 2740: uint16(4396), + 2741: uint16(14887), + 2742: uint16(14893), + 2743: uint16(14899), + 2744: uint16(8487), + 2745: uint16(10528), + 2746: uint16(14901), + 2747: uint16(10241), + 2748: uint16(14900), + 2749: uint16(9807), + 2750: uint16(10782), + 2751: uint16(4890), + 2752: uint16(8022), + 2753: uint16(7199), + 2754: uint16(9010), + 2755: uint16(11277), + 2756: uint16(14896), + 2757: uint16(14895), + 2758: uint16(14897), + 2759: uint16(14894), + 2760: uint16(14902), + 2761: uint16(14892), + 2762: uint16(14890), + 2763: uint16(14898), + 2764: uint16(14888), + 2765: uint16(8779), + 2766: uint16(11095), + 2767: uint16(6949), + 2768: uint16(6483), + 2769: uint16(6425), + 2770: uint16(10830), + 2771: uint16(4640), + 2772: uint16(9005), + 2773: uint16(9513), + 2774: uint16(4136), + 2775: uint16(8017), + 2776: uint16(7955), + 2777: uint16(5641), + 2778: uint16(14904), + 2779: uint16(6170), + 2780: uint16(4699), + 2781: uint16(14906), + 2782: uint16(4691), + 2783: uint16(14912), + 2784: uint16(14909), + 2785: uint16(8018), + 2786: uint16(4650), + 2787: uint16(6411), + 2788: uint16(4649), + 2789: uint16(6446), + 2790: uint16(14907), + 2791: uint16(5700), + 2792: uint16(5674), + 2793: uint16(9292), + 2794: uint16(14905), + 2795: uint16(3877), + 2796: uint16(14908), + 2797: uint16(14910), + 2798: uint16(5420), + 2799: uint16(5643), + 2800: uint16(4891), + 2801: uint16(5162), + 2802: uint16(14913), + 2803: uint16(6488), + 2804: uint16(10832), + 2805: uint16(6678), + 2806: uint16(14914), + 2807: uint16(10255), + 2808: uint16(14926), + 2809: uint16(4370), + 2810: uint16(14915), + 2811: uint16(14932), + 2812: uint16(14916), + 2813: uint16(11553), + 2814: uint16(14923), + 2815: uint16(9790), + 2816: uint16(14931), + 2817: uint16(14918), + 2818: uint16(3859), + 2819: uint16(14920), + 2820: uint16(6171), + 2821: uint16(14922), + 2822: uint16(14921), + 2823: uint16(14917), + 2824: uint16(14928), + 2825: uint16(7454), + 2826: uint16(13132), + 2827: uint16(5959), + 2828: uint16(11355), + 2829: uint16(14919), + 2830: uint16(9043), + 2831: uint16(4610), + 2832: uint16(6412), + 2833: uint16(14911), + 2834: uint16(14927), + 2835: uint16(4672), + 2836: uint16(14925), + 2837: uint16(14929), + 2838: uint16(9293), + 2839: uint16(4957), + 2840: uint16(15121), + 2841: uint16(11048), + 2842: uint16(14934), + 2843: uint16(4956), + 2844: uint16(14941), + 2845: uint16(10783), + 2846: uint16(15104), + 2847: uint16(15106), + 2848: uint16(15110), + 2849: uint16(14936), + 2850: uint16(8713), + 2851: uint16(9294), + 2852: uint16(15114), + 2853: uint16(14939), + 2854: uint16(15111), + 2855: uint16(15105), + 2856: uint16(7704), + 2857: uint16(15115), + 2858: uint16(7954), + 2859: uint16(15113), + 2860: uint16(4892), + 2861: uint16(11823), + 2862: uint16(14933), + 2863: uint16(15109), + 2864: uint16(3895), + 2865: uint16(14935), + 2866: uint16(11033), + 2867: uint16(14940), + 2868: uint16(7681), + 2869: uint16(8998), + 2870: uint16(14930), + 2871: uint16(15108), + 2872: uint16(7769), + 2873: uint16(15118), + 2874: uint16(4688), + 2875: uint16(5888), + 2876: uint16(15120), + 2877: uint16(14937), + 2878: uint16(15119), + 2879: uint16(15112), + 2880: uint16(14938), + 2881: uint16(15116), + 2882: uint16(15117), + 2883: uint16(15134), + 2884: uint16(9517), + 2885: uint16(15107), + 2886: uint16(15130), + 2887: uint16(15132), + 2888: uint16(9015), + 2889: uint16(11307), + 2890: uint16(10325), + 2891: uint16(15127), + 2892: uint16(8489), + 2893: uint16(15133), + 2894: uint16(8222), + 2895: uint16(15124), + 2896: uint16(15137), + 2897: uint16(15136), + 2898: uint16(9550), + 2899: uint16(15135), + 2900: uint16(9545), + 2901: uint16(15139), + 2902: uint16(15126), + 2903: uint16(5415), + 2904: uint16(15129), + 2905: uint16(7228), + 2906: uint16(9791), + 2907: uint16(15131), + 2908: uint16(5418), + 2909: uint16(15123), + 2910: uint16(15125), + 2911: uint16(15122), + 2912: uint16(11791), + 2913: uint16(4665), + 2914: uint16(15128), + 2915: uint16(15138), + 2916: uint16(4628), + 2917: uint16(6470), + 2918: uint16(4156), + 2919: uint16(15155), + 2920: uint16(11792), + 2921: uint16(15158), + 2922: uint16(7705), + 2923: uint16(15157), + 2924: uint16(15156), + 2925: uint16(15153), + 2926: uint16(15141), + 2927: uint16(15170), + 2928: uint16(15140), + 2929: uint16(15159), + 2930: uint16(15151), + 2931: uint16(15146), + 2932: uint16(15143), + 2933: uint16(15144), + 2934: uint16(15152), + 2935: uint16(21249), + 2936: uint16(15149), + 2937: uint16(6172), + 2938: uint16(8999), + 2939: uint16(8259), + 2940: uint16(15147), + 2941: uint16(15142), + 2942: uint16(15145), + 2943: uint16(11308), + 2944: uint16(10825), + 2945: uint16(15150), + 2946: uint16(15160), + 2947: uint16(15168), + 2948: uint16(15161), + 2949: uint16(15174), + 2950: uint16(15172), + 2951: uint16(15167), + 2952: uint16(15166), + 2953: uint16(9007), + 2954: uint16(8260), + 2955: uint16(15164), + 2956: uint16(15162), + 2957: uint16(15169), + 2958: uint16(15175), + 2959: uint16(10068), + 2960: uint16(15181), + 2961: uint16(15176), + 2962: uint16(15179), + 2963: uint16(15173), + 2964: uint16(8787), + 2965: uint16(10263), + 2966: uint16(15163), + 2967: uint16(15171), + 2968: uint16(7455), + 2969: uint16(11054), + 2970: uint16(15191), + 2971: uint16(15178), + 2972: uint16(5889), + 2973: uint16(4354), + 2974: uint16(4670), + 2975: uint16(15154), + 2976: uint16(7456), + 2977: uint16(15183), + 2978: uint16(15190), + 2979: uint16(7000), + 2980: uint16(4689), + 2981: uint16(8717), + 2982: uint16(15180), + 2983: uint16(15185), + 2984: uint16(15189), + 2985: uint16(5397), + 2986: uint16(5163), + 2987: uint16(15187), + 2988: uint16(5120), + 2989: uint16(9514), + 2990: uint16(15186), + 2991: uint16(15188), + 2992: uint16(15182), + 2993: uint16(15184), + 2994: uint16(4671), + 2995: uint16(8744), + 2996: uint16(15195), + 2997: uint16(15193), + 2998: uint16(5960), + 2999: uint16(15192), + 3000: uint16(15360), + 3001: uint16(14903), + 3002: uint16(15194), + 3003: uint16(15196), + 3004: uint16(15197), + 3005: uint16(15371), + 3006: uint16(15367), + 3007: uint16(14924), + 3008: uint16(15366), + 3009: uint16(15365), + 3010: uint16(15362), + 3011: uint16(15177), + 3012: uint16(15364), + 3013: uint16(15363), + 3014: uint16(15369), + 3015: uint16(11781), + 3016: uint16(15372), + 3017: uint16(5466), + 3018: uint16(15368), + 3019: uint16(15370), + 3020: uint16(9990), + 3021: uint16(15373), + 3022: uint16(15377), + 3023: uint16(15374), + 3024: uint16(11346), + 3025: uint16(15375), + 3026: uint16(15165), + 3027: uint16(15378), + 3028: uint16(15379), + 3029: uint16(4116), + 3030: uint16(15381), + 3031: uint16(5702), + 3032: uint16(6912), + 3033: uint16(5428), + 3034: uint16(4355), + 3035: uint16(11326), + 3036: uint16(15383), + 3037: uint16(15382), + 3038: uint16(15385), + 3039: uint16(5148), + 3040: uint16(5429), + 3041: uint16(4893), + 3042: uint16(15388), + 3043: uint16(15387), + 3044: uint16(15389), + 3045: uint16(4397), + 3046: uint16(8726), + 3047: uint16(15390), + 3048: uint16(4894), + 3049: uint16(15392), + 3050: uint16(15391), + 3051: uint16(15393), + 3052: uint16(15394), + 3053: uint16(15395), + 3054: uint16(6718), + 3055: uint16(7956), + 3056: uint16(6400), + 3057: uint16(10319), + 3058: uint16(10561), + 3059: uint16(11811), + 3060: uint16(6740), + 3061: uint16(6447), + 3062: uint16(11601), + 3063: uint16(15396), + 3064: uint16(15397), + 3065: uint16(6719), + 3066: uint16(15398), + 3067: uint16(15399), + 3068: uint16(15401), + 3069: uint16(15400), + 3070: uint16(10807), + 3071: uint16(7229), + 3072: uint16(6987), + 3073: uint16(6691), + 3074: uint16(15402), + 3075: uint16(15404), + 3076: uint16(7682), + 3077: uint16(15403), + 3078: uint16(15405), + 3079: uint16(15406), + 3080: uint16(15407), + 3081: uint16(15408), + 3082: uint16(15409), + 3083: uint16(15411), + 3084: uint16(15410), + 3085: uint16(15412), + 3086: uint16(4356), + 3087: uint16(8745), + 3088: uint16(15413), + 3089: uint16(6661), + 3090: uint16(4651), + 3091: uint16(15414), + 3092: uint16(9249), + 3093: uint16(13099), + 3094: uint16(5122), + 3095: uint16(15415), + 3096: uint16(15416), + 3097: uint16(10571), + 3098: uint16(10823), + 3099: uint16(9510), + 3100: uint16(15417), + 3101: uint16(10053), + 3102: uint16(10074), + 3103: uint16(11058), + 3104: uint16(15418), + 3105: uint16(15420), + 3106: uint16(15419), + 3107: uint16(15422), + 3108: uint16(15421), + 3109: uint16(15424), + 3110: uint16(6720), + 3111: uint16(11024), + 3112: uint16(15425), + 3113: uint16(15426), + 3114: uint16(5123), + 3115: uint16(15427), + 3116: uint16(15429), + 3117: uint16(15428), + 3118: uint16(7748), + 3119: uint16(10264), + 3120: uint16(4137), + 3121: uint16(10020), + 3122: uint16(9044), + 3123: uint16(7200), + 3124: uint16(5184), + 3125: uint16(10021), + 3126: uint16(6925), + 3127: uint16(15431), + 3128: uint16(4895), + 3129: uint16(4183), + 3130: uint16(9553), + 3131: uint16(15430), + 3132: uint16(6173), + 3133: uint16(8754), + 3134: uint16(15432), + 3135: uint16(15440), + 3136: uint16(15433), + 3137: uint16(8480), + 3138: uint16(5185), + 3139: uint16(15441), + 3140: uint16(5703), + 3141: uint16(5124), + 3142: uint16(15439), + 3143: uint16(15437), + 3144: uint16(15434), + 3145: uint16(11327), + 3146: uint16(8991), + 3147: uint16(9528), + 3148: uint16(15435), + 3149: uint16(15443), + 3150: uint16(15442), + 3151: uint16(5634), + 3152: uint16(4364), + 3153: uint16(6426), + 3154: uint16(15436), + 3155: uint16(15438), + 3156: uint16(10806), + 3157: uint16(8531), + 3158: uint16(10838), + 3159: uint16(15451), + 3160: uint16(15452), + 3161: uint16(4398), + 3162: uint16(10503), + 3163: uint16(11100), + 3164: uint16(15616), + 3165: uint16(6914), + 3166: uint16(7457), + 3167: uint16(15447), + 3168: uint16(15453), + 3169: uint16(4167), + 3170: uint16(5398), + 3171: uint16(15444), + 3172: uint16(15449), + 3173: uint16(8019), + 3174: uint16(9808), + 3175: uint16(10054), + 3176: uint16(15446), + 3177: uint16(10752), + 3178: uint16(15448), + 3179: uint16(15619), + 3180: uint16(15617), + 3181: uint16(15450), + 3182: uint16(10753), + 3183: uint16(9767), + 3184: uint16(5186), + 3185: uint16(9220), + 3186: uint16(8780), + 3187: uint16(15620), + 3188: uint16(15618), + 3189: uint16(8504), + 3190: uint16(15445), + 3191: uint16(4138), + 3192: uint16(11309), + 3193: uint16(15631), + 3194: uint16(15630), + 3195: uint16(8021), + 3196: uint16(15627), + 3197: uint16(11339), + 3198: uint16(9493), + 3199: uint16(15621), + 3200: uint16(8996), + 3201: uint16(4139), + 3202: uint16(6174), + 3203: uint16(15624), + 3204: uint16(7174), + 3205: uint16(15629), + 3206: uint16(15628), + 3207: uint16(15623), + 3208: uint16(15626), + 3209: uint16(4679), + 3210: uint16(15625), + 3211: uint16(9768), + 3212: uint16(11533), + 3213: uint16(7507), + 3214: uint16(8020), + 3215: uint16(15637), + 3216: uint16(15635), + 3217: uint16(10284), + 3218: uint16(15632), + 3219: uint16(15634), + 3220: uint16(4121), + 3221: uint16(6175), + 3222: uint16(11793), + 3223: uint16(4636), + 3224: uint16(10305), + 3225: uint16(11328), + 3226: uint16(4611), + 3227: uint16(7706), + 3228: uint16(15636), + 3229: uint16(15641), + 3230: uint16(7458), + 3231: uint16(11279), + 3232: uint16(15638), + 3233: uint16(15633), + 3234: uint16(15639), + 3235: uint16(11581), + 3236: uint16(9298), + 3237: uint16(9505), + 3238: uint16(4629), + 3239: uint16(4148), + 3240: uint16(15645), + 3241: uint16(15648), + 3242: uint16(11554), + 3243: uint16(11331), + 3244: uint16(15655), + 3245: uint16(15649), + 3246: uint16(15646), + 3247: uint16(11571), + 3248: uint16(15652), + 3249: uint16(7209), + 3250: uint16(15654), + 3251: uint16(15659), + 3252: uint16(9296), + 3253: uint16(15657), + 3254: uint16(15651), + 3255: uint16(8727), + 3256: uint16(15658), + 3257: uint16(15647), + 3258: uint16(15653), + 3259: uint16(15660), + 3260: uint16(3931), + 3261: uint16(15650), + 3262: uint16(15661), + 3263: uint16(7707), + 3264: uint16(7230), + 3265: uint16(10500), + 3266: uint16(6413), + 3267: uint16(15642), + 3268: uint16(15656), + 3269: uint16(9241), + 3270: uint16(7957), + 3271: uint16(4680), + 3272: uint16(6448), + 3273: uint16(7459), + 3274: uint16(15644), + 3275: uint16(7201), + 3276: uint16(5675), + 3277: uint16(15643), + 3278: uint16(15665), + 3279: uint16(7244), + 3280: uint16(5913), + 3281: uint16(15680), + 3282: uint16(15674), + 3283: uint16(5203), + 3284: uint16(9262), + 3285: uint16(15669), + 3286: uint16(15678), + 3287: uint16(3854), + 3288: uint16(4113), + 3289: uint16(4376), + 3290: uint16(15671), + 3291: uint16(8459), + 3292: uint16(15662), + 3293: uint16(15664), + 3294: uint16(6176), + 3295: uint16(15681), + 3296: uint16(15676), + 3297: uint16(15668), + 3298: uint16(15675), + 3299: uint16(11018), + 3300: uint16(15673), + 3301: uint16(15677), + 3302: uint16(5935), + 3303: uint16(7460), + 3304: uint16(8728), + 3305: uint16(15667), + 3306: uint16(11278), + 3307: uint16(15670), + 3308: uint16(15663), + 3309: uint16(9297), + 3310: uint16(15666), + 3311: uint16(15672), + 3312: uint16(11824), + 3313: uint16(6941), + 3314: uint16(10845), + 3315: uint16(15682), + 3316: uint16(9997), + 3317: uint16(15694), + 3318: uint16(5914), + 3319: uint16(7231), + 3320: uint16(15684), + 3321: uint16(11534), + 3322: uint16(6177), + 3323: uint16(15697), + 3324: uint16(3917), + 3325: uint16(15695), + 3326: uint16(15683), + 3327: uint16(15689), + 3328: uint16(15691), + 3329: uint16(11310), + 3330: uint16(15686), + 3331: uint16(9229), + 3332: uint16(15688), + 3333: uint16(15696), + 3334: uint16(15690), + 3335: uint16(11046), + 3336: uint16(15685), + 3337: uint16(6913), + 3338: uint16(15709), + 3339: uint16(4681), + 3340: uint16(15687), + 3341: uint16(15692), + 3342: uint16(15693), + 3343: uint16(8523), + 3344: uint16(8505), + 3345: uint16(15701), + 3346: uint16(15707), + 3347: uint16(15705), + 3348: uint16(9224), + 3349: uint16(15874), + 3350: uint16(15702), + 3351: uint16(15703), + 3352: uint16(15679), + 3353: uint16(5208), + 3354: uint16(10265), + 3355: uint16(6942), + 3356: uint16(6230), + 3357: uint16(11794), + 3358: uint16(15699), + 3359: uint16(15873), + 3360: uint16(4168), + 3361: uint16(8261), + 3362: uint16(9816), + 3363: uint16(4896), + 3364: uint16(11609), + 3365: uint16(11008), + 3366: uint16(9009), + 3367: uint16(15706), + 3368: uint16(15708), + 3369: uint16(8209), + 3370: uint16(15872), + 3371: uint16(15704), + 3372: uint16(15698), + 3373: uint16(4898), + 3374: uint16(5704), + 3375: uint16(15886), + 3376: uint16(15881), + 3377: uint16(8023), + 3378: uint16(4674), + 3379: uint16(7232), + 3380: uint16(15890), + 3381: uint16(15883), + 3382: uint16(8971), + 3383: uint16(15880), + 3384: uint16(9016), + 3385: uint16(15915), + 3386: uint16(15877), + 3387: uint16(15876), + 3388: uint16(15885), + 3389: uint16(15879), + 3390: uint16(15878), + 3391: uint16(15884), + 3392: uint16(7936), + 3393: uint16(15875), + 3394: uint16(15887), + 3395: uint16(15888), + 3396: uint16(4897), + 3397: uint16(15893), + 3398: uint16(15892), + 3399: uint16(15894), + 3400: uint16(15897), + 3401: uint16(9250), + 3402: uint16(15891), + 3403: uint16(15895), + 3404: uint16(5698), + 3405: uint16(8536), + 3406: uint16(15889), + 3407: uint16(9754), + 3408: uint16(15896), + 3409: uint16(15901), + 3410: uint16(15899), + 3411: uint16(15902), + 3412: uint16(15905), + 3413: uint16(15898), + 3414: uint16(6217), + 3415: uint16(9735), + 3416: uint16(15640), + 3417: uint16(11347), + 3418: uint16(15900), + 3419: uint16(15904), + 3420: uint16(8532), + 3421: uint16(15903), + 3422: uint16(15882), + 3423: uint16(20040), + 3424: uint16(15908), + 3425: uint16(15912), + 3426: uint16(15910), + 3427: uint16(15906), + 3428: uint16(15907), + 3429: uint16(15911), + 3430: uint16(15909), + 3431: uint16(10285), + 3432: uint16(15917), + 3433: uint16(15914), + 3434: uint16(15913), + 3435: uint16(15916), + 3436: uint16(9523), + 3437: uint16(15918), + 3438: uint16(8788), + 3439: uint16(8524), + 3440: uint16(7940), + 3441: uint16(15919), + 3442: uint16(15921), + 3443: uint16(15920), + 3444: uint16(15700), + 3445: uint16(15922), + 3446: uint16(9542), + 3447: uint16(15923), + 3448: uint16(4399), + 3449: uint16(9299), + 3450: uint16(4612), + 3451: uint16(5187), + 3452: uint16(6973), + 3453: uint16(6449), + 3454: uint16(11782), + 3455: uint16(7749), + 3456: uint16(4169), + 3457: uint16(15925), + 3458: uint16(15924), + 3459: uint16(15928), + 3460: uint16(8729), + 3461: uint16(15931), + 3462: uint16(15926), + 3463: uint16(15930), + 3464: uint16(15929), + 3465: uint16(9247), + 3466: uint16(3896), + 3467: uint16(11604), + 3468: uint16(15933), + 3469: uint16(4103), + 3470: uint16(15935), + 3471: uint16(15934), + 3472: uint16(15932), + 3473: uint16(15927), + 3474: uint16(10754), + 3475: uint16(15937), + 3476: uint16(15936), + 3477: uint16(4170), + 3478: uint16(15939), + 3479: uint16(10513), + 3480: uint16(15938), + 3481: uint16(11028), + 3482: uint16(7462), + 3483: uint16(8210), + 3484: uint16(7461), + 3485: uint16(11610), + 3486: uint16(15945), + 3487: uint16(8024), + 3488: uint16(15941), + 3489: uint16(15946), + 3490: uint16(4171), + 3491: uint16(15944), + 3492: uint16(9792), + 3493: uint16(15940), + 3494: uint16(15943), + 3495: uint16(7463), + 3496: uint16(10032), + 3497: uint16(15947), + 3498: uint16(6960), + 3499: uint16(8025), + 3500: uint16(15950), + 3501: uint16(15942), + 3502: uint16(5638), + 3503: uint16(15948), + 3504: uint16(11311), + 3505: uint16(15951), + 3506: uint16(21253), + 3507: uint16(7214), + 3508: uint16(15952), + 3509: uint16(15953), + 3510: uint16(9741), + 3511: uint16(15955), + 3512: uint16(15956), + 3513: uint16(9746), + 3514: uint16(9300), + 3515: uint16(15958), + 3516: uint16(15960), + 3517: uint16(11572), + 3518: uint16(15957), + 3519: uint16(15959), + 3520: uint16(4172), + 3521: uint16(15954), + 3522: uint16(12858), + 3523: uint16(15961), + 3524: uint16(8262), + 3525: uint16(6679), + 3526: uint16(15963), + 3527: uint16(15962), + 3528: uint16(7683), + 3529: uint16(12600), + 3530: uint16(15964), + 3531: uint16(16128), + 3532: uint16(15949), + 3533: uint16(15965), + 3534: uint16(16129), + 3535: uint16(9817), + 3536: uint16(16130), + 3537: uint16(16131), + 3538: uint16(16132), + 3539: uint16(16133), + 3540: uint16(9021), + 3541: uint16(16135), + 3542: uint16(16134), + 3543: uint16(16136), + 3544: uint16(16137), + 3545: uint16(6974), + 3546: uint16(10306), + 3547: uint16(11083), + 3548: uint16(16138), + 3549: uint16(16139), + 3550: uint16(8245), + 3551: uint16(6915), + 3552: uint16(16140), + 3553: uint16(16141), + 3554: uint16(16142), + 3555: uint16(10545), + 3556: uint16(10022), + 3557: uint16(16143), + 3558: uint16(9782), + 3559: uint16(8972), + 3560: uint16(16144), + 3561: uint16(4422), + 3562: uint16(5196), + 3563: uint16(11045), + 3564: uint16(11029), + 3565: uint16(4371), + 3566: uint16(11795), + 3567: uint16(10801), + 3568: uint16(10505), + 3569: uint16(7958), + 3570: uint16(16145), + 3571: uint16(9506), + 3572: uint16(5890), + 3573: uint16(16146), + 3574: uint16(6451), + 3575: uint16(16148), + 3576: uint16(16147), + 3577: uint16(16149), + 3578: uint16(16150), + 3579: uint16(16151), + 3580: uint16(5149), + 3581: uint16(16152), + 3582: uint16(16153), + 3583: uint16(5891), + 3584: uint16(10023), + 3585: uint16(16155), + 3586: uint16(7508), + 3587: uint16(16154), + 3588: uint16(5399), + 3589: uint16(16156), + 3590: uint16(16158), + 3591: uint16(16157), + 3592: uint16(16159), + 3593: uint16(5936), + 3594: uint16(16160), + 3595: uint16(5448), + 3596: uint16(8223), + 3597: uint16(6236), + 3598: uint16(16162), + 3599: uint16(16163), + 3600: uint16(16161), + 3601: uint16(6988), + 3602: uint16(9511), + 3603: uint16(5400), + 3604: uint16(16165), + 3605: uint16(8715), + 3606: uint16(16164), + 3607: uint16(11796), + 3608: uint16(9793), + 3609: uint16(16168), + 3610: uint16(16170), + 3611: uint16(16167), + 3612: uint16(11059), + 3613: uint16(16169), + 3614: uint16(16171), + 3615: uint16(11555), + 3616: uint16(16175), + 3617: uint16(16174), + 3618: uint16(8789), + 3619: uint16(9740), + 3620: uint16(5892), + 3621: uint16(16173), + 3622: uint16(16172), + 3623: uint16(11280), + 3624: uint16(11281), + 3625: uint16(16176), + 3626: uint16(4173), + 3627: uint16(6229), + 3628: uint16(6721), + 3629: uint16(16177), + 3630: uint16(16178), + 3631: uint16(16180), + 3632: uint16(7202), + 3633: uint16(16182), + 3634: uint16(16181), + 3635: uint16(16183), + 3636: uint16(4652), + 3637: uint16(16185), + 3638: uint16(16184), + 3639: uint16(16187), + 3640: uint16(16186), + 3641: uint16(5915), + 3642: uint16(11527), + 3643: uint16(5419), + 3644: uint16(4357), + 3645: uint16(5449), + 3646: uint16(4928), + 3647: uint16(11591), + 3648: uint16(16189), + 3649: uint16(16191), + 3650: uint16(16192), + 3651: uint16(4400), + 3652: uint16(16188), + 3653: uint16(6680), + 3654: uint16(8992), + 3655: uint16(16190), + 3656: uint16(16195), + 3657: uint16(6989), + 3658: uint16(16193), + 3659: uint16(5661), + 3660: uint16(10024), + 3661: uint16(16194), + 3662: uint16(16221), + 3663: uint16(16200), + 3664: uint16(5916), + 3665: uint16(5188), + 3666: uint16(16197), + 3667: uint16(11356), + 3668: uint16(11535), + 3669: uint16(8533), + 3670: uint16(16199), + 3671: uint16(16201), + 3672: uint16(11573), + 3673: uint16(5430), + 3674: uint16(10075), + 3675: uint16(9769), + 3676: uint16(16202), + 3677: uint16(16204), + 3678: uint16(16207), + 3679: uint16(16203), + 3680: uint16(16206), + 3681: uint16(5961), + 3682: uint16(4140), + 3683: uint16(16208), + 3684: uint16(7759), + 3685: uint16(16205), + 3686: uint16(11579), + 3687: uint16(16211), + 3688: uint16(21251), + 3689: uint16(16209), + 3690: uint16(16212), + 3691: uint16(16198), + 3692: uint16(16210), + 3693: uint16(6427), + 3694: uint16(16213), + 3695: uint16(16214), + 3696: uint16(11357), + 3697: uint16(16215), + 3698: uint16(16216), + 3699: uint16(16196), + 3700: uint16(16217), + 3701: uint16(4899), + 3702: uint16(6916), + 3703: uint16(16218), + 3704: uint16(16219), + 3705: uint16(16220), + 3706: uint16(4122), + 3707: uint16(16384), + 3708: uint16(10266), + 3709: uint16(16385), + 3710: uint16(4867), + 3711: uint16(16386), + 3712: uint16(16387), + 3713: uint16(16388), + 3714: uint16(16390), + 3715: uint16(16391), + 3716: uint16(16389), + 3717: uint16(10290), + 3718: uint16(16393), + 3719: uint16(16392), + 3720: uint16(16395), + 3721: uint16(16394), + 3722: uint16(16396), + 3723: uint16(16397), + 3724: uint16(16399), + 3725: uint16(16398), + 3726: uint16(6232), + 3727: uint16(16401), + 3728: uint16(16400), + 3729: uint16(4900), + 3730: uint16(7730), + 3731: uint16(9243), + 3732: uint16(16402), + 3733: uint16(7959), + 3734: uint16(6681), + 3735: uint16(4184), + 3736: uint16(16403), + 3737: uint16(11312), + 3738: uint16(10562), + 3739: uint16(16404), + 3740: uint16(9251), + 3741: uint16(11282), + 3742: uint16(6178), + 3743: uint16(7708), + 3744: uint16(8746), + 3745: uint16(12563), + 3746: uint16(8973), + 3747: uint16(4423), + 3748: uint16(16405), + 3749: uint16(16406), + 3750: uint16(16411), + 3751: uint16(16409), + 3752: uint16(16408), + 3753: uint16(14625), + 3754: uint16(4613), + 3755: uint16(16407), + 3756: uint16(3897), + 3757: uint16(9993), + 3758: uint16(10025), + 3759: uint16(11536), + 3760: uint16(16412), + 3761: uint16(16410), + 3762: uint16(8763), + 3763: uint16(7941), + 3764: uint16(9994), + 3765: uint16(10252), + 3766: uint16(16414), + 3767: uint16(11531), + 3768: uint16(5676), + 3769: uint16(16415), + 3770: uint16(16413), + 3771: uint16(10037), + 3772: uint16(16416), + 3773: uint16(16417), + 3774: uint16(3898), + 3775: uint16(7509), + 3776: uint16(16422), + 3777: uint16(16419), + 3778: uint16(9548), + 3779: uint16(16418), + 3780: uint16(5125), + 3781: uint16(16425), + 3782: uint16(16420), + 3783: uint16(16421), + 3784: uint16(16424), + 3785: uint16(16423), + 3786: uint16(10244), + 3787: uint16(8225), + 3788: uint16(8224), + 3789: uint16(5150), + 3790: uint16(16426), + 3791: uint16(16427), + 3792: uint16(16428), + 3793: uint16(16430), + 3794: uint16(16429), + 3795: uint16(4149), + 3796: uint16(16438), + 3797: uint16(10055), + 3798: uint16(16432), + 3799: uint16(16434), + 3800: uint16(16436), + 3801: uint16(7709), + 3802: uint16(16437), + 3803: uint16(16435), + 3804: uint16(6943), + 3805: uint16(16431), + 3806: uint16(16433), + 3807: uint16(10273), + 3808: uint16(7464), + 3809: uint16(16440), + 3810: uint16(16439), + 3811: uint16(16441), + 3812: uint16(6917), + 3813: uint16(6414), + 3814: uint16(9302), + 3815: uint16(16442), + 3816: uint16(9002), + 3817: uint16(16444), + 3818: uint16(11520), + 3819: uint16(16443), + 3820: uint16(8264), + 3821: uint16(16449), + 3822: uint16(16451), + 3823: uint16(16452), + 3824: uint16(8755), + 3825: uint16(16450), + 3826: uint16(16447), + 3827: uint16(16445), + 3828: uint16(16446), + 3829: uint16(16448), + 3830: uint16(16455), + 3831: uint16(16453), + 3832: uint16(16454), + 3833: uint16(16456), + 3834: uint16(16458), + 3835: uint16(16459), + 3836: uint16(16460), + 3837: uint16(16461), + 3838: uint16(16457), + 3839: uint16(16463), + 3840: uint16(16462), + 3841: uint16(16464), + 3842: uint16(11556), + 3843: uint16(16467), + 3844: uint16(16465), + 3845: uint16(16466), + 3846: uint16(4929), + 3847: uint16(11101), + 3848: uint16(10537), + 3849: uint16(16469), + 3850: uint16(16468), + 3851: uint16(16470), + 3852: uint16(16471), + 3853: uint16(16475), + 3854: uint16(16472), + 3855: uint16(16473), + 3856: uint16(16474), + 3857: uint16(16476), + 3858: uint16(16477), + 3859: uint16(16640), + 3860: uint16(16641), + 3861: uint16(16642), + 3862: uint16(9998), + 3863: uint16(9263), + 3864: uint16(16643), + 3865: uint16(9809), + 3866: uint16(10259), + 3867: uint16(16644), + 3868: uint16(16645), + 3869: uint16(9225), + 3870: uint16(4614), + 3871: uint16(6179), + 3872: uint16(16646), + 3873: uint16(16647), + 3874: uint16(16648), + 3875: uint16(6664), + 3876: uint16(16650), + 3877: uint16(16649), + 3878: uint16(16651), + 3879: uint16(16652), + 3880: uint16(10056), + 3881: uint16(16653), + 3882: uint16(16654), + 3883: uint16(21064), + 3884: uint16(16655), + 3885: uint16(16656), + 3886: uint16(16657), + 3887: uint16(6669), + 3888: uint16(16658), + 3889: uint16(9781), + 3890: uint16(10814), + 3891: uint16(4141), + 3892: uint16(4150), + 3893: uint16(16659), + 3894: uint16(16661), + 3895: uint16(16660), + 3896: uint16(9295), + 3897: uint16(7960), + 3898: uint16(15384), + 3899: uint16(16662), + 3900: uint16(11040), + 3901: uint16(16663), + 3902: uint16(4901), + 3903: uint16(10038), + 3904: uint16(16664), + 3905: uint16(16665), + 3906: uint16(16666), + 3907: uint16(11067), + 3908: uint16(11060), + 3909: uint16(8989), + 3910: uint16(8265), + 3911: uint16(16668), + 3912: uint16(7233), + 3913: uint16(7465), + 3914: uint16(16671), + 3915: uint16(16670), + 3916: uint16(16669), + 3917: uint16(10076), + 3918: uint16(4902), + 3919: uint16(5896), + 3920: uint16(16677), + 3921: uint16(16674), + 3922: uint16(7710), + 3923: uint16(11025), + 3924: uint16(16673), + 3925: uint16(16675), + 3926: uint16(16676), + 3927: uint16(16672), + 3928: uint16(16678), + 3929: uint16(16679), + 3930: uint16(8974), + 3931: uint16(4930), + 3932: uint16(8772), + 3933: uint16(16680), + 3934: uint16(16681), + 3935: uint16(16684), + 3936: uint16(7750), + 3937: uint16(9507), + 3938: uint16(16685), + 3939: uint16(10802), + 3940: uint16(16682), + 3941: uint16(16683), + 3942: uint16(16688), + 3943: uint16(16687), + 3944: uint16(16686), + 3945: uint16(16690), + 3946: uint16(16689), + 3947: uint16(16691), + 3948: uint16(16693), + 3949: uint16(16692), + 3950: uint16(10540), + 3951: uint16(7221), + 3952: uint16(11557), + 3953: uint16(16694), + 3954: uint16(9494), + 3955: uint16(16695), + 3956: uint16(16696), + 3957: uint16(16700), + 3958: uint16(16698), + 3959: uint16(16699), + 3960: uint16(16697), + 3961: uint16(16701), + 3962: uint16(16702), + 3963: uint16(16703), + 3964: uint16(16704), + 3965: uint16(11030), + 3966: uint16(16705), + 3967: uint16(11087), + 3968: uint16(16706), + 3969: uint16(8749), + 3970: uint16(9801), + 3971: uint16(5450), + 3972: uint16(8730), + 3973: uint16(16707), + 3974: uint16(5401), + 3975: uint16(7983), + 3976: uint16(16708), + 3977: uint16(6428), + 3978: uint16(16709), + 3979: uint16(16710), + 3980: uint16(5893), + 3981: uint16(6452), + 3982: uint16(16712), + 3983: uint16(9269), + 3984: uint16(6453), + 3985: uint16(5165), + 3986: uint16(10755), + 3987: uint16(9770), + 3988: uint16(9270), + 3989: uint16(6203), + 3990: uint16(16714), + 3991: uint16(7466), + 3992: uint16(11537), + 3993: uint16(6180), + 3994: uint16(5894), + 3995: uint16(9986), + 3996: uint16(16716), + 3997: uint16(16718), + 3998: uint16(5962), + 3999: uint16(16717), + 4000: uint16(9045), + 4001: uint16(16720), + 4002: uint16(4630), + 4003: uint16(16715), + 4004: uint16(10057), + 4005: uint16(4111), + 4006: uint16(6475), + 4007: uint16(11825), + 4008: uint16(16719), + 4009: uint16(16721), + 4010: uint16(10538), + 4011: uint16(7992), + 4012: uint16(16723), + 4013: uint16(16724), + 4014: uint16(16722), + 4015: uint16(4653), + 4016: uint16(16730), + 4017: uint16(16729), + 4018: uint16(6918), + 4019: uint16(16731), + 4020: uint16(16726), + 4021: uint16(16732), + 4022: uint16(16727), + 4023: uint16(10039), + 4024: uint16(16725), + 4025: uint16(16728), + 4026: uint16(16897), + 4027: uint16(16896), + 4028: uint16(10816), + 4029: uint16(16733), + 4030: uint16(3914), + 4031: uint16(16899), + 4032: uint16(16898), + 4033: uint16(7467), + 4034: uint16(16900), + 4035: uint16(8226), + 4036: uint16(16902), + 4037: uint16(16901), + 4038: uint16(16903), + 4039: uint16(16711), + 4040: uint16(16713), + 4041: uint16(16905), + 4042: uint16(16904), + 4043: uint16(6919), + 4044: uint16(11592), + 4045: uint16(6961), + 4046: uint16(16906), + 4047: uint16(5654), + 4048: uint16(5151), + 4049: uint16(5126), + 4050: uint16(6722), + 4051: uint16(11283), + 4052: uint16(16912), + 4053: uint16(16911), + 4054: uint16(8227), + 4055: uint16(16908), + 4056: uint16(16910), + 4057: uint16(7210), + 4058: uint16(7711), + 4059: uint16(16909), + 4060: uint16(16907), + 4061: uint16(9737), + 4062: uint16(7468), + 4063: uint16(10267), + 4064: uint16(6454), + 4065: uint16(9303), + 4066: uint16(16913), + 4067: uint16(16914), + 4068: uint16(16936), + 4069: uint16(5431), + 4070: uint16(11804), + 4071: uint16(8212), + 4072: uint16(16915), + 4073: uint16(4401), + 4074: uint16(9046), + 4075: uint16(10496), + 4076: uint16(16916), + 4077: uint16(5209), + 4078: uint16(16917), + 4079: uint16(16919), + 4080: uint16(16920), + 4081: uint16(9736), + 4082: uint16(16921), + 4083: uint16(16922), + 4084: uint16(16923), + 4085: uint16(5432), + 4086: uint16(4402), + 4087: uint16(9508), + 4088: uint16(7175), + 4089: uint16(6723), + 4090: uint16(16924), + 4091: uint16(7176), + 4092: uint16(4393), + 4093: uint16(10274), + 4094: uint16(16925), + 4095: uint16(10058), + 4096: uint16(8228), + 4097: uint16(16928), + 4098: uint16(16929), + 4099: uint16(9800), + 4100: uint16(7712), + 4101: uint16(16926), + 4102: uint16(8768), + 4103: uint16(16927), + 4104: uint16(7469), + 4105: uint16(3899), + 4106: uint16(5128), + 4107: uint16(16930), + 4108: uint16(9047), + 4109: uint16(16931), + 4110: uint16(7974), + 4111: uint16(11020), + 4112: uint16(10242), + 4113: uint16(16932), + 4114: uint16(16933), + 4115: uint16(8756), + 4116: uint16(11558), + 4117: uint16(16935), + 4118: uint16(16934), + 4119: uint16(6990), + 4120: uint16(16937), + 4121: uint16(3919), + 4122: uint16(16940), + 4123: uint16(16938), + 4124: uint16(4403), + 4125: uint16(5677), + 4126: uint16(16939), + 4127: uint16(6181), + 4128: uint16(6225), + 4129: uint16(10565), + 4130: uint16(16941), + 4131: uint16(10803), + 4132: uint16(16943), + 4133: uint16(7984), + 4134: uint16(4142), + 4135: uint16(4377), + 4136: uint16(3851), + 4137: uint16(16942), + 4138: uint16(16944), + 4139: uint16(16945), + 4140: uint16(7510), + 4141: uint16(16946), + 4142: uint16(4654), + 4143: uint16(16948), + 4144: uint16(5705), + 4145: uint16(5189), + 4146: uint16(16949), + 4147: uint16(5460), + 4148: uint16(16950), + 4149: uint16(8027), + 4150: uint16(9516), + 4151: uint16(7999), + 4152: uint16(6484), + 4153: uint16(16951), + 4154: uint16(8769), + 4155: uint16(8266), + 4156: uint16(16953), + 4157: uint16(16955), + 4158: uint16(16952), + 4159: uint16(16954), + 4160: uint16(5633), + 4161: uint16(16956), + 4162: uint16(5637), + 4163: uint16(5190), + 4164: uint16(11313), + 4165: uint16(16958), + 4166: uint16(16959), + 4167: uint16(4109), + 4168: uint16(16962), + 4169: uint16(4693), + 4170: uint16(16961), + 4171: uint16(16960), + 4172: uint16(16964), + 4173: uint16(16957), + 4174: uint16(16965), + 4175: uint16(11528), + 4176: uint16(16966), + 4177: uint16(16967), + 4178: uint16(13139), + 4179: uint16(16969), + 4180: uint16(16968), + 4181: uint16(16970), + 4182: uint16(16971), + 4183: uint16(11540), + 4184: uint16(16972), + 4185: uint16(20302), + 4186: uint16(7470), + 4187: uint16(16973), + 4188: uint16(16974), + 4189: uint16(7222), + 4190: uint16(9495), + 4191: uint16(16975), + 4192: uint16(8711), + 4193: uint16(16976), + 4194: uint16(8731), + 4195: uint16(16977), + 4196: uint16(5380), + 4197: uint16(12318), + 4198: uint16(8764), + 4199: uint16(6930), + 4200: uint16(4903), + 4201: uint16(16978), + 4202: uint16(17153), + 4203: uint16(16981), + 4204: uint16(5191), + 4205: uint16(16980), + 4206: uint16(17155), + 4207: uint16(16979), + 4208: uint16(7471), + 4209: uint16(16983), + 4210: uint16(16984), + 4211: uint16(9226), + 4212: uint16(16985), + 4213: uint16(4669), + 4214: uint16(7737), + 4215: uint16(10307), + 4216: uint16(16987), + 4217: uint16(8519), + 4218: uint16(16982), + 4219: uint16(16986), + 4220: uint16(16988), + 4221: uint16(6490), + 4222: uint16(17157), + 4223: uint16(10253), + 4224: uint16(9989), + 4225: uint16(9304), + 4226: uint16(5433), + 4227: uint16(17156), + 4228: uint16(17154), + 4229: uint16(10004), + 4230: uint16(16989), + 4231: uint16(8765), + 4232: uint16(9306), + 4233: uint16(9305), + 4234: uint16(6485), + 4235: uint16(17175), + 4236: uint16(17159), + 4237: uint16(17161), + 4238: uint16(17164), + 4239: uint16(17165), + 4240: uint16(17162), + 4241: uint16(17163), + 4242: uint16(17160), + 4243: uint16(17158), + 4244: uint16(17152), + 4245: uint16(10542), + 4246: uint16(4404), + 4247: uint16(17172), + 4248: uint16(17169), + 4249: uint16(17174), + 4250: uint16(17173), + 4251: uint16(9810), + 4252: uint16(11014), + 4253: uint16(6682), + 4254: uint16(17167), + 4255: uint16(17176), + 4256: uint16(17171), + 4257: uint16(17170), + 4258: uint16(17166), + 4259: uint16(17168), + 4260: uint16(4904), + 4261: uint16(8732), + 4262: uint16(8028), + 4263: uint16(9985), + 4264: uint16(17181), + 4265: uint16(9987), + 4266: uint16(8000), + 4267: uint16(17178), + 4268: uint16(10030), + 4269: uint16(17182), + 4270: uint16(10546), + 4271: uint16(8762), + 4272: uint16(17177), + 4273: uint16(17179), + 4274: uint16(17180), + 4275: uint16(17183), + 4276: uint16(6947), + 4277: uint16(9509), + 4278: uint16(17188), + 4279: uint16(17187), + 4280: uint16(17184), + 4281: uint16(11797), + 4282: uint16(17193), + 4283: uint16(17197), + 4284: uint16(17194), + 4285: uint16(17190), + 4286: uint16(17191), + 4287: uint16(17196), + 4288: uint16(17185), + 4289: uint16(12596), + 4290: uint16(17192), + 4291: uint16(17186), + 4292: uint16(17195), + 4293: uint16(17201), + 4294: uint16(4905), + 4295: uint16(17198), + 4296: uint16(17199), + 4297: uint16(17200), + 4298: uint16(17203), + 4299: uint16(17202), + 4300: uint16(10069), + 4301: uint16(17204), + 4302: uint16(11611), + 4303: uint16(10572), + 4304: uint16(17209), + 4305: uint16(17206), + 4306: uint16(17205), + 4307: uint16(7985), + 4308: uint16(17208), + 4309: uint16(17210), + 4310: uint16(17207), + 4311: uint16(17214), + 4312: uint16(17211), + 4313: uint16(17212), + 4314: uint16(17189), + 4315: uint16(17213), + 4316: uint16(17215), + 4317: uint16(17216), + 4318: uint16(10533), + 4319: uint16(17217), + 4320: uint16(11073), + 4321: uint16(5421), + 4322: uint16(5640), + 4323: uint16(17218), + 4324: uint16(10515), + 4325: uint16(7751), + 4326: uint16(11023), + 4327: uint16(17219), + 4328: uint16(11538), + 4329: uint16(9811), + 4330: uint16(8229), + 4331: uint16(9747), + 4332: uint16(7212), + 4333: uint16(3871), + 4334: uint16(17224), + 4335: uint16(17222), + 4336: uint16(17220), + 4337: uint16(4864), + 4338: uint16(7472), + 4339: uint16(17225), + 4340: uint16(17223), + 4341: uint16(17221), + 4342: uint16(17229), + 4343: uint16(17228), + 4344: uint16(17227), + 4345: uint16(17226), + 4346: uint16(17230), + 4347: uint16(17231), + 4348: uint16(7961), + 4349: uint16(17232), + 4350: uint16(17234), + 4351: uint16(17233), + 4352: uint16(5937), + 4353: uint16(8215), + 4354: uint16(17236), + 4355: uint16(9307), + 4356: uint16(17235), + 4357: uint16(17237), + 4358: uint16(10516), + 4359: uint16(8267), + 4360: uint16(6182), + 4361: uint16(17238), + 4362: uint16(11559), + 4363: uint16(17240), + 4364: uint16(17241), + 4365: uint16(17242), + 4366: uint16(17243), + 4367: uint16(6724), + 4368: uint16(17244), + 4369: uint16(5678), + 4370: uint16(5193), + 4371: uint16(5129), + 4372: uint16(17408), + 4373: uint16(11090), + 4374: uint16(6183), + 4375: uint16(17245), + 4376: uint16(17411), + 4377: uint16(11077), + 4378: uint16(9755), + 4379: uint16(10258), + 4380: uint16(7234), + 4381: uint16(17410), + 4382: uint16(6962), + 4383: uint16(6184), + 4384: uint16(6725), + 4385: uint16(5192), + 4386: uint16(10517), + 4387: uint16(17409), + 4388: uint16(8230), + 4389: uint16(10785), + 4390: uint16(6486), + 4391: uint16(6726), + 4392: uint16(9020), + 4393: uint16(17414), + 4394: uint16(11582), + 4395: uint16(6456), + 4396: uint16(17415), + 4397: uint16(7713), + 4398: uint16(17417), + 4399: uint16(7473), + 4400: uint16(6415), + 4401: uint16(17416), + 4402: uint16(7177), + 4403: uint16(5917), + 4404: uint16(8231), + 4405: uint16(17412), + 4406: uint16(17418), + 4407: uint16(17413), + 4408: uint16(5679), + 4409: uint16(17421), + 4410: uint16(17425), + 4411: uint16(5706), + 4412: uint16(17420), + 4413: uint16(17429), + 4414: uint16(6185), + 4415: uint16(11340), + 4416: uint16(3867), + 4417: uint16(17426), + 4418: uint16(5194), + 4419: uint16(17423), + 4420: uint16(17424), + 4421: uint16(9308), + 4422: uint16(17422), + 4423: uint16(17419), + 4424: uint16(4615), + 4425: uint16(8003), + 4426: uint16(5895), + 4427: uint16(17431), + 4428: uint16(17428), + 4429: uint16(17430), + 4430: uint16(17427), + 4431: uint16(5680), + 4432: uint16(8466), + 4433: uint16(17432), + 4434: uint16(8269), + 4435: uint16(17445), + 4436: uint16(17441), + 4437: uint16(17435), + 4438: uint16(17439), + 4439: uint16(7001), + 4440: uint16(3900), + 4441: uint16(17434), + 4442: uint16(17442), + 4443: uint16(17446), + 4444: uint16(6186), + 4445: uint16(11061), + 4446: uint16(9013), + 4447: uint16(17436), + 4448: uint16(17444), + 4449: uint16(17433), + 4450: uint16(8733), + 4451: uint16(17438), + 4452: uint16(3868), + 4453: uint16(11049), + 4454: uint16(17437), + 4455: uint16(5434), + 4456: uint16(10059), + 4457: uint16(8268), + 4458: uint16(11567), + 4459: uint16(7246), + 4460: uint16(17485), + 4461: uint16(17447), + 4462: uint16(8029), + 4463: uint16(17443), + 4464: uint16(17448), + 4465: uint16(17450), + 4466: uint16(9048), + 4467: uint16(17453), + 4468: uint16(17449), + 4469: uint16(10547), + 4470: uint16(4906), + 4471: uint16(11050), + 4472: uint16(3901), + 4473: uint16(17452), + 4474: uint16(11612), + 4475: uint16(17451), + 4476: uint16(4174), + 4477: uint16(9547), + 4478: uint16(17454), + 4479: uint16(17461), + 4480: uint16(17455), + 4481: uint16(17462), + 4482: uint16(17458), + 4483: uint16(9818), + 4484: uint16(6953), + 4485: uint16(17460), + 4486: uint16(17457), + 4487: uint16(17463), + 4488: uint16(17456), + 4489: uint16(7203), + 4490: uint16(10756), + 4491: uint16(7211), + 4492: uint16(17459), + 4493: uint16(17471), + 4494: uint16(17467), + 4495: uint16(17470), + 4496: uint16(17468), + 4497: uint16(17472), + 4498: uint16(17466), + 4499: uint16(17440), + 4500: uint16(7986), + 4501: uint16(10026), + 4502: uint16(17469), + 4503: uint16(17464), + 4504: uint16(8192), + 4505: uint16(5681), + 4506: uint16(7178), + 4507: uint16(7684), + 4508: uint16(8213), + 4509: uint16(17475), + 4510: uint16(17477), + 4511: uint16(17478), + 4512: uint16(17474), + 4513: uint16(17476), + 4514: uint16(17465), + 4515: uint16(17473), + 4516: uint16(17481), + 4517: uint16(17480), + 4518: uint16(10841), + 4519: uint16(5642), + 4520: uint16(17479), + 4521: uint16(17483), + 4522: uint16(17482), + 4523: uint16(17486), + 4524: uint16(17488), + 4525: uint16(6683), + 4526: uint16(17484), + 4527: uint16(17489), + 4528: uint16(17490), + 4529: uint16(17491), + 4530: uint16(17497), + 4531: uint16(9242), + 4532: uint16(17493), + 4533: uint16(17492), + 4534: uint16(17494), + 4535: uint16(17495), + 4536: uint16(17496), + 4537: uint16(17498), + 4538: uint16(17499), + 4539: uint16(4907), + 4540: uint16(17500), + 4541: uint16(17501), + 4542: uint16(17664), + 4543: uint16(17665), + 4544: uint16(17666), + 4545: uint16(17667), + 4546: uint16(17668), + 4547: uint16(17669), + 4548: uint16(17671), + 4549: uint16(17670), + 4550: uint16(17672), + 4551: uint16(17673), + 4552: uint16(17674), + 4553: uint16(17677), + 4554: uint16(17675), + 4555: uint16(17676), + 4556: uint16(6464), + 4557: uint16(5682), + 4558: uint16(8757), + 4559: uint16(10002), + 4560: uint16(7247), + 4561: uint16(9772), + 4562: uint16(10060), + 4563: uint16(17678), + 4564: uint16(14156), + 4565: uint16(17679), + 4566: uint16(17681), + 4567: uint16(11332), + 4568: uint16(17680), + 4569: uint16(17683), + 4570: uint16(17682), + 4571: uint16(11314), + 4572: uint16(17684), + 4573: uint16(10077), + 4574: uint16(17685), + 4575: uint16(17688), + 4576: uint16(17687), + 4577: uint16(17686), + 4578: uint16(17689), + 4579: uint16(5649), + 4580: uint16(8193), + 4581: uint16(5152), + 4582: uint16(17693), + 4583: uint16(17690), + 4584: uint16(17691), + 4585: uint16(17694), + 4586: uint16(17695), + 4587: uint16(17692), + 4588: uint16(4104), + 4589: uint16(4358), + 4590: uint16(17697), + 4591: uint16(17698), + 4592: uint16(17699), + 4593: uint16(11329), + 4594: uint16(7179), + 4595: uint16(17701), + 4596: uint16(17700), + 4597: uint16(7752), + 4598: uint16(17702), + 4599: uint16(17703), + 4600: uint16(17704), + 4601: uint16(4932), + 4602: uint16(4908), + 4603: uint16(17705), + 4604: uint16(17706), + 4605: uint16(10812), + 4606: uint16(11330), + 4607: uint16(11315), + 4608: uint16(11798), + 4609: uint16(6188), + 4610: uint16(17709), + 4611: uint16(6963), + 4612: uint16(17708), + 4613: uint16(17710), + 4614: uint16(6920), + 4615: uint16(8496), + 4616: uint16(17711), + 4617: uint16(6187), + 4618: uint16(11062), + 4619: uint16(17712), + 4620: uint16(17713), + 4621: uint16(17714), + 4622: uint16(17715), + 4623: uint16(17716), + 4624: uint16(6921), + 4625: uint16(11084), + 4626: uint16(17718), + 4627: uint16(8734), + 4628: uint16(17717), + 4629: uint16(17720), + 4630: uint16(17719), + 4631: uint16(17721), + 4632: uint16(7962), + 4633: uint16(17722), + 4634: uint16(17723), + 4635: uint16(10520), + 4636: uint16(17724), + 4637: uint16(8270), + 4638: uint16(17725), + 4639: uint16(17726), + 4640: uint16(11613), + 4641: uint16(17729), + 4642: uint16(17728), + 4643: uint16(17727), + 4644: uint16(8975), + 4645: uint16(17730), + 4646: uint16(7685), + 4647: uint16(17731), + 4648: uint16(17732), + 4649: uint16(11799), + 4650: uint16(17733), + 4651: uint16(17734), + 4652: uint16(17736), + 4653: uint16(17735), + 4654: uint16(9988), + 4655: uint16(9560), + 4656: uint16(11805), + 4657: uint16(9992), + 4658: uint16(17738), + 4659: uint16(7474), + 4660: uint16(10249), + 4661: uint16(17739), + 4662: uint16(17737), + 4663: uint16(4909), + 4664: uint16(5939), + 4665: uint16(6727), + 4666: uint16(10061), + 4667: uint16(5897), + 4668: uint16(10786), + 4669: uint16(17742), + 4670: uint16(17740), + 4671: uint16(6189), + 4672: uint16(6190), + 4673: uint16(3912), + 4674: uint16(6471), + 4675: uint16(9784), + 4676: uint16(3902), + 4677: uint16(17747), + 4678: uint16(8735), + 4679: uint16(9783), + 4680: uint16(8506), + 4681: uint16(17749), + 4682: uint16(17745), + 4683: uint16(17748), + 4684: uint16(17743), + 4685: uint16(17746), + 4686: uint16(10757), + 4687: uint16(5940), + 4688: uint16(3932), + 4689: uint16(17744), + 4690: uint16(17751), + 4691: uint16(17752), + 4692: uint16(9496), + 4693: uint16(5402), + 4694: uint16(17925), + 4695: uint16(9756), + 4696: uint16(6728), + 4697: uint16(5403), + 4698: uint16(7975), + 4699: uint16(11813), + 4700: uint16(11021), + 4701: uint16(17750), + 4702: uint16(7987), + 4703: uint16(5170), + 4704: uint16(17753), + 4705: uint16(17755), + 4706: uint16(17754), + 4707: uint16(17756), + 4708: uint16(8709), + 4709: uint16(9757), + 4710: uint16(8976), + 4711: uint16(17922), + 4712: uint16(17921), + 4713: uint16(17757), + 4714: uint16(7732), + 4715: uint16(10308), + 4716: uint16(17924), + 4717: uint16(17923), + 4718: uint16(6191), + 4719: uint16(11826), + 4720: uint16(17940), + 4721: uint16(17928), + 4722: uint16(17929), + 4723: uint16(6991), + 4724: uint16(17927), + 4725: uint16(6231), + 4726: uint16(17926), + 4727: uint16(17930), + 4728: uint16(8977), + 4729: uint16(10497), + 4730: uint16(8194), + 4731: uint16(8507), + 4732: uint16(17934), + 4733: uint16(17935), + 4734: uint16(17931), + 4735: uint16(17932), + 4736: uint16(17933), + 4737: uint16(6192), + 4738: uint16(17941), + 4739: uint16(17937), + 4740: uint16(10309), + 4741: uint16(10827), + 4742: uint16(10247), + 4743: uint16(17936), + 4744: uint16(17939), + 4745: uint16(17938), + 4746: uint16(10787), + 4747: uint16(17942), + 4748: uint16(17943), + 4749: uint16(8214), + 4750: uint16(17944), + 4751: uint16(17946), + 4752: uint16(17950), + 4753: uint16(17947), + 4754: uint16(17945), + 4755: uint16(9758), + 4756: uint16(17948), + 4757: uint16(17949), + 4758: uint16(4369), + 4759: uint16(17956), + 4760: uint16(17951), + 4761: uint16(17952), + 4762: uint16(17953), + 4763: uint16(8448), + 4764: uint16(17955), + 4765: uint16(17954), + 4766: uint16(17957), + 4767: uint16(17958), + 4768: uint16(17959), + 4769: uint16(7714), + 4770: uint16(4424), + 4771: uint16(17960), + 4772: uint16(11574), + 4773: uint16(6922), + 4774: uint16(7180), + 4775: uint16(6729), + 4776: uint16(8758), + 4777: uint16(17961), + 4778: uint16(17962), + 4779: uint16(4112), + 4780: uint16(17963), + 4781: uint16(17964), + 4782: uint16(17965), + 4783: uint16(17966), + 4784: uint16(17967), + 4785: uint16(5404), + 4786: uint16(14601), + 4787: uint16(17968), + 4788: uint16(8004), + 4789: uint16(17969), + 4790: uint16(6954), + 4791: uint16(17970), + 4792: uint16(12047), + 4793: uint16(17971), + 4794: uint16(10557), + 4795: uint16(4923), + 4796: uint16(8195), + 4797: uint16(7223), + 4798: uint16(10320), + 4799: uint16(7181), + 4800: uint16(17972), + 4801: uint16(6193), + 4802: uint16(17973), + 4803: uint16(10027), + 4804: uint16(17987), + 4805: uint16(17975), + 4806: uint16(8488), + 4807: uint16(9812), + 4808: uint16(5918), + 4809: uint16(17974), + 4810: uint16(8196), + 4811: uint16(17976), + 4812: uint16(9049), + 4813: uint16(17978), + 4814: uint16(17977), + 4815: uint16(17980), + 4816: uint16(17979), + 4817: uint16(17981), + 4818: uint16(17983), + 4819: uint16(17982), + 4820: uint16(4910), + 4821: uint16(17984), + 4822: uint16(17985), + 4823: uint16(17986), + 4824: uint16(6416), + 4825: uint16(11560), + 4826: uint16(17988), + 4827: uint16(7686), + 4828: uint16(4175), + 4829: uint16(17989), + 4830: uint16(17990), + 4831: uint16(17991), + 4832: uint16(3921), + 4833: uint16(17992), + 4834: uint16(17993), + 4835: uint16(10310), + 4836: uint16(6950), + 4837: uint16(17995), + 4838: uint16(4616), + 4839: uint16(3857), + 4840: uint16(17994), + 4841: uint16(17997), + 4842: uint16(9773), + 4843: uint16(7715), + 4844: uint16(4405), + 4845: uint16(10758), + 4846: uint16(5692), + 4847: uint16(5435), + 4848: uint16(17996), + 4849: uint16(4425), + 4850: uint16(4866), + 4851: uint16(4176), + 4852: uint16(18001), + 4853: uint16(11593), + 4854: uint16(8508), + 4855: uint16(10275), + 4856: uint16(18013), + 4857: uint16(4406), + 4858: uint16(18011), + 4859: uint16(18009), + 4860: uint16(18000), + 4861: uint16(17998), + 4862: uint16(17999), + 4863: uint16(6978), + 4864: uint16(5451), + 4865: uint16(8790), + 4866: uint16(9520), + 4867: uint16(4144), + 4868: uint16(18003), + 4869: uint16(18002), + 4870: uint16(18008), + 4871: uint16(18004), + 4872: uint16(18007), + 4873: uint16(11055), + 4874: uint16(18006), + 4875: uint16(4407), + 4876: uint16(4700), + 4877: uint16(18010), + 4878: uint16(18012), + 4879: uint16(5683), + 4880: uint16(18178), + 4881: uint16(18187), + 4882: uint16(18188), + 4883: uint16(3850), + 4884: uint16(18195), + 4885: uint16(3920), + 4886: uint16(18186), + 4887: uint16(18185), + 4888: uint16(18180), + 4889: uint16(18179), + 4890: uint16(18177), + 4891: uint16(18176), + 4892: uint16(8770), + 4893: uint16(8538), + 4894: uint16(18182), + 4895: uint16(18181), + 4896: uint16(18184), + 4897: uint16(8271), + 4898: uint16(5684), + 4899: uint16(4128), + 4900: uint16(18183), + 4901: uint16(6194), + 4902: uint16(8272), + 4903: uint16(18201), + 4904: uint16(18202), + 4905: uint16(4408), + 4906: uint16(4365), + 4907: uint16(18199), + 4908: uint16(18189), + 4909: uint16(18197), + 4910: uint16(18204), + 4911: uint16(18198), + 4912: uint16(18196), + 4913: uint16(18005), + 4914: uint16(18194), + 4915: uint16(18190), + 4916: uint16(4911), + 4917: uint16(18192), + 4918: uint16(18203), + 4919: uint16(18193), + 4920: uint16(18205), + 4921: uint16(18191), + 4922: uint16(9819), + 4923: uint16(11336), + 4924: uint16(18200), + 4925: uint16(18222), + 4926: uint16(18214), + 4927: uint16(7770), + 4928: uint16(5157), + 4929: uint16(5436), + 4930: uint16(18209), + 4931: uint16(4410), + 4932: uint16(7475), + 4933: uint16(18212), + 4934: uint16(6457), + 4935: uint16(9264), + 4936: uint16(18217), + 4937: uint16(10573), + 4938: uint16(18208), + 4939: uint16(4409), + 4940: uint16(5941), + 4941: uint16(10248), + 4942: uint16(18218), + 4943: uint16(18206), + 4944: uint16(18215), + 4945: uint16(18225), + 4946: uint16(18210), + 4947: uint16(18211), + 4948: uint16(9497), + 4949: uint16(18216), + 4950: uint16(18213), + 4951: uint16(10759), + 4952: uint16(18219), + 4953: uint16(3903), + 4954: uint16(18207), + 4955: uint16(18221), + 4956: uint16(18220), + 4957: uint16(9802), + 4958: uint16(18227), + 4959: uint16(18238), + 4960: uint16(4701), + 4961: uint16(18241), + 4962: uint16(18223), + 4963: uint16(18228), + 4964: uint16(11341), + 4965: uint16(18237), + 4966: uint16(11316), + 4967: uint16(11529), + 4968: uint16(8791), + 4969: uint16(4682), + 4970: uint16(10321), + 4971: uint16(18243), + 4972: uint16(9472), + 4973: uint16(3856), + 4974: uint16(18236), + 4975: uint16(18232), + 4976: uint16(8273), + 4977: uint16(18226), + 4978: uint16(18234), + 4979: uint16(18239), + 4980: uint16(9739), + 4981: uint16(3849), + 4982: uint16(18231), + 4983: uint16(18240), + 4984: uint16(10327), + 4985: uint16(18235), + 4986: uint16(18230), + 4987: uint16(7476), + 4988: uint16(7182), + 4989: uint16(6923), + 4990: uint16(11063), + 4991: uint16(10278), + 4992: uint16(18246), + 4993: uint16(18255), + 4994: uint16(18233), + 4995: uint16(4694), + 4996: uint16(7511), + 4997: uint16(18244), + 4998: uint16(18249), + 4999: uint16(8274), + 5000: uint16(18245), + 5001: uint16(18252), + 5002: uint16(8766), + 5003: uint16(18253), + 5004: uint16(11317), + 5005: uint16(18242), + 5006: uint16(4631), + 5007: uint16(18248), + 5008: uint16(18251), + 5009: uint16(11019), + 5010: uint16(18254), + 5011: uint16(18247), + 5012: uint16(18250), + 5013: uint16(10760), + 5014: uint16(11776), + 5015: uint16(18258), + 5016: uint16(18265), + 5017: uint16(18257), + 5018: uint16(6946), + 5019: uint16(18224), + 5020: uint16(10541), + 5021: uint16(11009), + 5022: uint16(18264), + 5023: uint16(18263), + 5024: uint16(18259), + 5025: uint16(18260), + 5026: uint16(4117), + 5027: uint16(18262), + 5028: uint16(18256), + 5029: uint16(9012), + 5030: uint16(18261), + 5031: uint16(3933), + 5032: uint16(8449), + 5033: uint16(10530), + 5034: uint16(18266), + 5035: uint16(18432), + 5036: uint16(10040), + 5037: uint16(18269), + 5038: uint16(7477), + 5039: uint16(6952), + 5040: uint16(18434), + 5041: uint16(5405), + 5042: uint16(18435), + 5043: uint16(10328), + 5044: uint16(18268), + 5045: uint16(18229), + 5046: uint16(18267), + 5047: uint16(11822), + 5048: uint16(9473), + 5049: uint16(10322), + 5050: uint16(18442), + 5051: uint16(18448), + 5052: uint16(18449), + 5053: uint16(18436), + 5054: uint16(9813), + 5055: uint16(18446), + 5056: uint16(18438), + 5057: uint16(18440), + 5058: uint16(18450), + 5059: uint16(18439), + 5060: uint16(18443), + 5061: uint16(4177), + 5062: uint16(9540), + 5063: uint16(18444), + 5064: uint16(18447), + 5065: uint16(18437), + 5066: uint16(8197), + 5067: uint16(18441), + 5068: uint16(6662), + 5069: uint16(7716), + 5070: uint16(5647), + 5071: uint16(11091), + 5072: uint16(11096), + 5073: uint16(7249), + 5074: uint16(18454), + 5075: uint16(18452), + 5076: uint16(11821), + 5077: uint16(18451), + 5078: uint16(11348), + 5079: uint16(18453), + 5080: uint16(18455), + 5081: uint16(18456), + 5082: uint16(18459), + 5083: uint16(18457), + 5084: uint16(9474), + 5085: uint16(18458), + 5086: uint16(10028), + 5087: uint16(18445), + 5088: uint16(7250), + 5089: uint16(18460), + 5090: uint16(18465), + 5091: uint16(8275), + 5092: uint16(18464), + 5093: uint16(18433), + 5094: uint16(18466), + 5095: uint16(8232), + 5096: uint16(18461), + 5097: uint16(18463), + 5098: uint16(18462), + 5099: uint16(15376), + 5100: uint16(15361), + 5101: uint16(18468), + 5102: uint16(18467), + 5103: uint16(11349), + 5104: uint16(16667), + 5105: uint16(18469), + 5106: uint16(18470), + 5107: uint16(18471), + 5108: uint16(5942), + 5109: uint16(5171), + 5110: uint16(18473), + 5111: uint16(12348), + 5112: uint16(5204), + 5113: uint16(11545), + 5114: uint16(5458), + 5115: uint16(18474), + 5116: uint16(18475), + 5117: uint16(8781), + 5118: uint16(18476), + 5119: uint16(9561), + 5120: uint16(3865), + 5121: uint16(4418), + 5122: uint16(18481), + 5123: uint16(18482), + 5124: uint16(18477), + 5125: uint16(6684), + 5126: uint16(18478), + 5127: uint16(9761), + 5128: uint16(18479), + 5129: uint16(18480), + 5130: uint16(18490), + 5131: uint16(18484), + 5132: uint16(18487), + 5133: uint16(18483), + 5134: uint16(18485), + 5135: uint16(18486), + 5136: uint16(6967), + 5137: uint16(18488), + 5138: uint16(8736), + 5139: uint16(5685), + 5140: uint16(4641), + 5141: uint16(18491), + 5142: uint16(4638), + 5143: uint16(18496), + 5144: uint16(18492), + 5145: uint16(18495), + 5146: uint16(10009), + 5147: uint16(18493), + 5148: uint16(18494), + 5149: uint16(10279), + 5150: uint16(10041), + 5151: uint16(18497), + 5152: uint16(8540), + 5153: uint16(18507), + 5154: uint16(18503), + 5155: uint16(4426), + 5156: uint16(18501), + 5157: uint16(10761), + 5158: uint16(18502), + 5159: uint16(18499), + 5160: uint16(18500), + 5161: uint16(18505), + 5162: uint16(18508), + 5163: uint16(18506), + 5164: uint16(18504), + 5165: uint16(18498), + 5166: uint16(8759), + 5167: uint16(18515), + 5168: uint16(11017), + 5169: uint16(18513), + 5170: uint16(18514), + 5171: uint16(18509), + 5172: uint16(18511), + 5173: uint16(18512), + 5174: uint16(18510), + 5175: uint16(8005), + 5176: uint16(11800), + 5177: uint16(18519), + 5178: uint16(18520), + 5179: uint16(18688), + 5180: uint16(7689), + 5181: uint16(18522), + 5182: uint16(18525), + 5183: uint16(18517), + 5184: uint16(18516), + 5185: uint16(18689), + 5186: uint16(4411), + 5187: uint16(18523), + 5188: uint16(18690), + 5189: uint16(18524), + 5190: uint16(18521), + 5191: uint16(8978), + 5192: uint16(18518), + 5193: uint16(9799), + 5194: uint16(18694), + 5195: uint16(11290), + 5196: uint16(18693), + 5197: uint16(18692), + 5198: uint16(18701), + 5199: uint16(18695), + 5200: uint16(18703), + 5201: uint16(11333), + 5202: uint16(18706), + 5203: uint16(18697), + 5204: uint16(18698), + 5205: uint16(18702), + 5206: uint16(18705), + 5207: uint16(18704), + 5208: uint16(18696), + 5209: uint16(18699), + 5210: uint16(18716), + 5211: uint16(18709), + 5212: uint16(18707), + 5213: uint16(18708), + 5214: uint16(18713), + 5215: uint16(18714), + 5216: uint16(4617), + 5217: uint16(5153), + 5218: uint16(18712), + 5219: uint16(18691), + 5220: uint16(18711), + 5221: uint16(18715), + 5222: uint16(18710), + 5223: uint16(18717), + 5224: uint16(18719), + 5225: uint16(18718), + 5226: uint16(18721), + 5227: uint16(18720), + 5228: uint16(18489), + 5229: uint16(18725), + 5230: uint16(18722), + 5231: uint16(18723), + 5232: uint16(18724), + 5233: uint16(18726), + 5234: uint16(5707), + 5235: uint16(18728), + 5236: uint16(18727), + 5237: uint16(7183), + 5238: uint16(6195), + 5239: uint16(15622), + 5240: uint16(18729), + 5241: uint16(7216), + 5242: uint16(4632), + 5243: uint16(18730), + 5244: uint16(4145), + 5245: uint16(7478), + 5246: uint16(18731), + 5247: uint16(6196), + 5248: uint16(18732), + 5249: uint16(3904), + 5250: uint16(10268), + 5251: uint16(18733), + 5252: uint16(7753), + 5253: uint16(18740), + 5254: uint16(18737), + 5255: uint16(8782), + 5256: uint16(18738), + 5257: uint16(18735), + 5258: uint16(5437), + 5259: uint16(18734), + 5260: uint16(18741), + 5261: uint16(5653), + 5262: uint16(8509), + 5263: uint16(18747), + 5264: uint16(18743), + 5265: uint16(8468), + 5266: uint16(18742), + 5267: uint16(18745), + 5268: uint16(18736), + 5269: uint16(18746), + 5270: uint16(18748), + 5271: uint16(10062), + 5272: uint16(18744), + 5273: uint16(18749), + 5274: uint16(18751), + 5275: uint16(5938), + 5276: uint16(18739), + 5277: uint16(3872), + 5278: uint16(18750), + 5279: uint16(6458), + 5280: uint16(11605), + 5281: uint16(18752), + 5282: uint16(18753), + 5283: uint16(8276), + 5284: uint16(11521), + 5285: uint16(18754), + 5286: uint16(11284), + 5287: uint16(18755), + 5288: uint16(18756), + 5289: uint16(10563), + 5290: uint16(18757), + 5291: uint16(6431), + 5292: uint16(11522), + 5293: uint16(18762), + 5294: uint16(18763), + 5295: uint16(7479), + 5296: uint16(18761), + 5297: uint16(11334), + 5298: uint16(18758), + 5299: uint16(18760), + 5300: uint16(7964), + 5301: uint16(7773), + 5302: uint16(18759), + 5303: uint16(18764), + 5304: uint16(10498), + 5305: uint16(18766), + 5306: uint16(18765), + 5307: uint16(4683), + 5308: uint16(10762), + 5309: uint16(18767), + 5310: uint16(18779), + 5311: uint16(18769), + 5312: uint16(18770), + 5313: uint16(18771), + 5314: uint16(18772), + 5315: uint16(18776), + 5316: uint16(18777), + 5317: uint16(18775), + 5318: uint16(18773), + 5319: uint16(18768), + 5320: uint16(18774), + 5321: uint16(18778), + 5322: uint16(20246), + 5323: uint16(4359), + 5324: uint16(18781), + 5325: uint16(5438), + 5326: uint16(18780), + 5327: uint16(18945), + 5328: uint16(18944), + 5329: uint16(18947), + 5330: uint16(18946), + 5331: uint16(18948), + 5332: uint16(7184), + 5333: uint16(18949), + 5334: uint16(18950), + 5335: uint16(18951), + 5336: uint16(7965), + 5337: uint16(11318), + 5338: uint16(18952), + 5339: uint16(10499), + 5340: uint16(9765), + 5341: uint16(18953), + 5342: uint16(18954), + 5343: uint16(5898), + 5344: uint16(5131), + 5345: uint16(18955), + 5346: uint16(6730), + 5347: uint16(9760), + 5348: uint16(18956), + 5349: uint16(4655), + 5350: uint16(18957), + 5351: uint16(18959), + 5352: uint16(11350), + 5353: uint16(18958), + 5354: uint16(7717), + 5355: uint16(18960), + 5356: uint16(18961), + 5357: uint16(18962), + 5358: uint16(4912), + 5359: uint16(18963), + 5360: uint16(18964), + 5361: uint16(18965), + 5362: uint16(18966), + 5363: uint16(4656), + 5364: uint16(18967), + 5365: uint16(18968), + 5366: uint16(18969), + 5367: uint16(4433), + 5368: uint16(7687), + 5369: uint16(18970), + 5370: uint16(18971), + 5371: uint16(18972), + 5372: uint16(5919), + 5373: uint16(9050), + 5374: uint16(18973), + 5375: uint16(5686), + 5376: uint16(7733), + 5377: uint16(18976), + 5378: uint16(9475), + 5379: uint16(18975), + 5380: uint16(5648), + 5381: uint16(18974), + 5382: uint16(8534), + 5383: uint16(5132), + 5384: uint16(18977), + 5385: uint16(18978), + 5386: uint16(7480), + 5387: uint16(5708), + 5388: uint16(18979), + 5389: uint16(10763), + 5390: uint16(7998), + 5391: uint16(5205), + 5392: uint16(11092), + 5393: uint16(8233), + 5394: uint16(18980), + 5395: uint16(7718), + 5396: uint16(8783), + 5397: uint16(7481), + 5398: uint16(18981), + 5399: uint16(18984), + 5400: uint16(18985), + 5401: uint16(6429), + 5402: uint16(8481), + 5403: uint16(18983), + 5404: uint16(7482), + 5405: uint16(10269), + 5406: uint16(18982), + 5407: uint16(6731), + 5408: uint16(4146), + 5409: uint16(18989), + 5410: uint16(5687), + 5411: uint16(6733), + 5412: uint16(6732), + 5413: uint16(11820), + 5414: uint16(18988), + 5415: uint16(18987), + 5416: uint16(8198), + 5417: uint16(5164), + 5418: uint16(11810), + 5419: uint16(4633), + 5420: uint16(7483), + 5421: uint16(18986), + 5422: uint16(18991), + 5423: uint16(18992), + 5424: uint16(18990), + 5425: uint16(5943), + 5426: uint16(11295), + 5427: uint16(6734), + 5428: uint16(9734), + 5429: uint16(18995), + 5430: uint16(7967), + 5431: uint16(8737), + 5432: uint16(11285), + 5433: uint16(18998), + 5434: uint16(5963), + 5435: uint16(7966), + 5436: uint16(18994), + 5437: uint16(18999), + 5438: uint16(5964), + 5439: uint16(18996), + 5440: uint16(18997), + 5441: uint16(18993), + 5442: uint16(8001), + 5443: uint16(9512), + 5444: uint16(8718), + 5445: uint16(4412), + 5446: uint16(10063), + 5447: uint16(5154), + 5448: uint16(8979), + 5449: uint16(19002), + 5450: uint16(19000), + 5451: uint16(8747), + 5452: uint16(7968), + 5453: uint16(4913), + 5454: uint16(19001), + 5455: uint16(7738), + 5456: uint16(11561), + 5457: uint16(11807), + 5458: uint16(19003), + 5459: uint16(19014), + 5460: uint16(8980), + 5461: uint16(19013), + 5462: uint16(19010), + 5463: uint16(19018), + 5464: uint16(19011), + 5465: uint16(19007), + 5466: uint16(9051), + 5467: uint16(19006), + 5468: uint16(19004), + 5469: uint16(11264), + 5470: uint16(6735), + 5471: uint16(19008), + 5472: uint16(19005), + 5473: uint16(19012), + 5474: uint16(7251), + 5475: uint16(5920), + 5476: uint16(8537), + 5477: uint16(10788), + 5478: uint16(4153), + 5479: uint16(3905), + 5480: uint16(9476), + 5481: uint16(19016), + 5482: uint16(19015), + 5483: uint16(9541), + 5484: uint16(19020), + 5485: uint16(19009), + 5486: uint16(19019), + 5487: uint16(19021), + 5488: uint16(5899), + 5489: uint16(19017), + 5490: uint16(6197), + 5491: uint16(6964), + 5492: uint16(19022), + 5493: uint16(11319), + 5494: uint16(19025), + 5495: uint16(19028), + 5496: uint16(19026), + 5497: uint16(10260), + 5498: uint16(19023), + 5499: uint16(5439), + 5500: uint16(19027), + 5501: uint16(19029), + 5502: uint16(19033), + 5503: uint16(19030), + 5504: uint16(19032), + 5505: uint16(19031), + 5506: uint16(19034), + 5507: uint16(6928), + 5508: uint16(19036), + 5509: uint16(19035), + 5510: uint16(10311), + 5511: uint16(19200), + 5512: uint16(5688), + 5513: uint16(19037), + 5514: uint16(19201), + 5515: uint16(19202), + 5516: uint16(5155), + 5517: uint16(17696), + 5518: uint16(7512), + 5519: uint16(19203), + 5520: uint16(5965), + 5521: uint16(19204), + 5522: uint16(19205), + 5523: uint16(6685), + 5524: uint16(14637), + 5525: uint16(19206), + 5526: uint16(19207), + 5527: uint16(7185), + 5528: uint16(19208), + 5529: uint16(19209), + 5530: uint16(19210), + 5531: uint16(19211), + 5532: uint16(19212), + 5533: uint16(8714), + 5534: uint16(19213), + 5535: uint16(19215), + 5536: uint16(19214), + 5537: uint16(9477), + 5538: uint16(19216), + 5539: uint16(10764), + 5540: uint16(19217), + 5541: uint16(19218), + 5542: uint16(19219), + 5543: uint16(19220), + 5544: uint16(9529), + 5545: uint16(7484), + 5546: uint16(19221), + 5547: uint16(6218), + 5548: uint16(12045), + 5549: uint16(19222), + 5550: uint16(19223), + 5551: uint16(10270), + 5552: uint16(19224), + 5553: uint16(19232), + 5554: uint16(19225), + 5555: uint16(19227), + 5556: uint16(19226), + 5557: uint16(19228), + 5558: uint16(10789), + 5559: uint16(19229), + 5560: uint16(19230), + 5561: uint16(19231), + 5562: uint16(19233), + 5563: uint16(4620), + 5564: uint16(9030), + 5565: uint16(10312), + 5566: uint16(6465), + 5567: uint16(6198), + 5568: uint16(10286), + 5569: uint16(4414), + 5570: uint16(10029), + 5571: uint16(19236), + 5572: uint16(4914), + 5573: uint16(7988), + 5574: uint16(19235), + 5575: uint16(19240), + 5576: uint16(8792), + 5577: uint16(11074), + 5578: uint16(19238), + 5579: uint16(19239), + 5580: uint16(5133), + 5581: uint16(19241), + 5582: uint16(9794), + 5583: uint16(8510), + 5584: uint16(10064), + 5585: uint16(9244), + 5586: uint16(19237), + 5587: uint16(10790), + 5588: uint16(4427), + 5589: uint16(19243), + 5590: uint16(11783), + 5591: uint16(8993), + 5592: uint16(11812), + 5593: uint16(6736), + 5594: uint16(19242), + 5595: uint16(8464), + 5596: uint16(19259), + 5597: uint16(8199), + 5598: uint16(9559), + 5599: uint16(10287), + 5600: uint16(19246), + 5601: uint16(6686), + 5602: uint16(6737), + 5603: uint16(7485), + 5604: uint16(9796), + 5605: uint16(5900), + 5606: uint16(19245), + 5607: uint16(19244), + 5608: uint16(10313), + 5609: uint16(6944), + 5610: uint16(9265), + 5611: uint16(19248), + 5612: uint16(19249), + 5613: uint16(6199), + 5614: uint16(19247), + 5615: uint16(19250), + 5616: uint16(19251), + 5617: uint16(19253), + 5618: uint16(8450), + 5619: uint16(19252), + 5620: uint16(4933), + 5621: uint16(19255), + 5622: uint16(19254), + 5623: uint16(19256), + 5624: uint16(19258), + 5625: uint16(19260), + 5626: uint16(19261), + 5627: uint16(7989), + 5628: uint16(6958), + 5629: uint16(19262), + 5630: uint16(4657), + 5631: uint16(19263), + 5632: uint16(8277), + 5633: uint16(19264), + 5634: uint16(19265), + 5635: uint16(10314), + 5636: uint16(5134), + 5637: uint16(19266), + 5638: uint16(8981), + 5639: uint16(4154), + 5640: uint16(19267), + 5641: uint16(6992), + 5642: uint16(7765), + 5643: uint16(8460), + 5644: uint16(19270), + 5645: uint16(19269), + 5646: uint16(19268), + 5647: uint16(19276), + 5648: uint16(19274), + 5649: uint16(19271), + 5650: uint16(19273), + 5651: uint16(19272), + 5652: uint16(19275), + 5653: uint16(5206), + 5654: uint16(19279), + 5655: uint16(7990), + 5656: uint16(19280), + 5657: uint16(5944), + 5658: uint16(19277), + 5659: uint16(19278), + 5660: uint16(11784), + 5661: uint16(8982), + 5662: uint16(8200), + 5663: uint16(19281), + 5664: uint16(19284), + 5665: uint16(19282), + 5666: uint16(19283), + 5667: uint16(11320), + 5668: uint16(9478), + 5669: uint16(19287), + 5670: uint16(19285), + 5671: uint16(19286), + 5672: uint16(19288), + 5673: uint16(19464), + 5674: uint16(19291), + 5675: uint16(19292), + 5676: uint16(19290), + 5677: uint16(19289), + 5678: uint16(9052), + 5679: uint16(19456), + 5680: uint16(19460), + 5681: uint16(19457), + 5682: uint16(19293), + 5683: uint16(19458), + 5684: uint16(19459), + 5685: uint16(19466), + 5686: uint16(19461), + 5687: uint16(7991), + 5688: uint16(19463), + 5689: uint16(19465), + 5690: uint16(19462), + 5691: uint16(19468), + 5692: uint16(7186), + 5693: uint16(19467), + 5694: uint16(19469), + 5695: uint16(19470), + 5696: uint16(19473), + 5697: uint16(19472), + 5698: uint16(19471), + 5699: uint16(19475), + 5700: uint16(19474), + 5701: uint16(11093), + 5702: uint16(19477), + 5703: uint16(19476), + 5704: uint16(19478), + 5705: uint16(19479), + 5706: uint16(19481), + 5707: uint16(19480), + 5708: uint16(7719), + 5709: uint16(19482), + 5710: uint16(5452), + 5711: uint16(19483), + 5712: uint16(19485), + 5713: uint16(19486), + 5714: uint16(19487), + 5715: uint16(19484), + 5716: uint16(19488), + 5717: uint16(6965), + 5718: uint16(19489), + 5719: uint16(5135), + 5720: uint16(5650), + 5721: uint16(5901), + 5722: uint16(19490), + 5723: uint16(9551), + 5724: uint16(9245), + 5725: uint16(19491), + 5726: uint16(19494), + 5727: uint16(6931), + 5728: uint16(19493), + 5729: uint16(19492), + 5730: uint16(5689), + 5731: uint16(19495), + 5732: uint16(4658), + 5733: uint16(19497), + 5734: uint16(6459), + 5735: uint16(19496), + 5736: uint16(19505), + 5737: uint16(19499), + 5738: uint16(19501), + 5739: uint16(10564), + 5740: uint16(19498), + 5741: uint16(19500), + 5742: uint16(19504), + 5743: uint16(19502), + 5744: uint16(5136), + 5745: uint16(19503), + 5746: uint16(19506), + 5747: uint16(9785), + 5748: uint16(11575), + 5749: uint16(7187), + 5750: uint16(19507), + 5751: uint16(11265), + 5752: uint16(19509), + 5753: uint16(19508), + 5754: uint16(19512), + 5755: uint16(11296), + 5756: uint16(19511), + 5757: uint16(4684), + 5758: uint16(19510), + 5759: uint16(19515), + 5760: uint16(19514), + 5761: uint16(19513), + 5762: uint16(9233), + 5763: uint16(19516), + 5764: uint16(19517), + 5765: uint16(19518), + 5766: uint16(6219), + 5767: uint16(5636), + 5768: uint16(19519), + 5769: uint16(19520), + 5770: uint16(19521), + 5771: uint16(7720), + 5772: uint16(19522), + 5773: uint16(6924), + 5774: uint16(19523), + 5775: uint16(19524), + 5776: uint16(12544), + 5777: uint16(12381), + 5778: uint16(19525), + 5779: uint16(17487), + 5780: uint16(19526), + 5781: uint16(8707), + 5782: uint16(7690), + 5783: uint16(9759), + 5784: uint16(19527), + 5785: uint16(10548), + 5786: uint16(9011), + 5787: uint16(6237), + 5788: uint16(8712), + 5789: uint16(4105), + 5790: uint16(10839), + 5791: uint16(7734), + 5792: uint16(5693), + 5793: uint16(5440), + 5794: uint16(10549), + 5795: uint16(19528), + 5796: uint16(19530), + 5797: uint16(19529), + 5798: uint16(4415), + 5799: uint16(9557), + 5800: uint16(19531), + 5801: uint16(9814), + 5802: uint16(9234), + 5803: uint16(19532), + 5804: uint16(7217), + 5805: uint16(19534), + 5806: uint16(11041), + 5807: uint16(19549), + 5808: uint16(19536), + 5809: uint16(19537), + 5810: uint16(9000), + 5811: uint16(8511), + 5812: uint16(8278), + 5813: uint16(9479), + 5814: uint16(19535), + 5815: uint16(5172), + 5816: uint16(19544), + 5817: uint16(19541), + 5818: uint16(19716), + 5819: uint16(9480), + 5820: uint16(8767), + 5821: uint16(19538), + 5822: uint16(9053), + 5823: uint16(9266), + 5824: uint16(19539), + 5825: uint16(19543), + 5826: uint16(7743), + 5827: uint16(9798), + 5828: uint16(9003), + 5829: uint16(7969), + 5830: uint16(19542), + 5831: uint16(8461), + 5832: uint16(8451), + 5833: uint16(19540), + 5834: uint16(3848), + 5835: uint16(11777), + 5836: uint16(19545), + 5837: uint16(8512), + 5838: uint16(7188), + 5839: uint16(7721), + 5840: uint16(19547), + 5841: uint16(19546), + 5842: uint16(3918), + 5843: uint16(19548), + 5844: uint16(10254), + 5845: uint16(19718), + 5846: uint16(9530), + 5847: uint16(7754), + 5848: uint16(8760), + 5849: uint16(5463), + 5850: uint16(19717), + 5851: uint16(11286), + 5852: uint16(4126), + 5853: uint16(10550), + 5854: uint16(4416), + 5855: uint16(19712), + 5856: uint16(19713), + 5857: uint16(19714), + 5858: uint16(19715), + 5859: uint16(9498), + 5860: uint16(8706), + 5861: uint16(3906), + 5862: uint16(19719), + 5863: uint16(19720), + 5864: uint16(21250), + 5865: uint16(8476), + 5866: uint16(19721), + 5867: uint16(4178), + 5868: uint16(8235), + 5869: uint16(5902), + 5870: uint16(11321), + 5871: uint16(19722), + 5872: uint16(9227), + 5873: uint16(8279), + 5874: uint16(6966), + 5875: uint16(19723), + 5876: uint16(19726), + 5877: uint16(7236), + 5878: uint16(19724), + 5879: uint16(8202), + 5880: uint16(8201), + 5881: uint16(3907), + 5882: uint16(11562), + 5883: uint16(19728), + 5884: uint16(10065), + 5885: uint16(19730), + 5886: uint16(19729), + 5887: uint16(19727), + 5888: uint16(16963), + 5889: uint16(4915), + 5890: uint16(19533), + 5891: uint16(19732), + 5892: uint16(19731), + 5893: uint16(19733), + 5894: uint16(11287), + 5895: uint16(9536), + 5896: uint16(10765), + 5897: uint16(19734), + 5898: uint16(6968), + 5899: uint16(19735), + 5900: uint16(19736), + 5901: uint16(19737), + 5902: uint16(9216), + 5903: uint16(3913), + 5904: uint16(6200), + 5905: uint16(11801), + 5906: uint16(19741), + 5907: uint16(5651), + 5908: uint16(19738), + 5909: uint16(19739), + 5910: uint16(10323), + 5911: uint16(4659), + 5912: uint16(11288), + 5913: uint16(5406), + 5914: uint16(9267), + 5915: uint16(19742), + 5916: uint16(19743), + 5917: uint16(19744), + 5918: uint16(9217), + 5919: uint16(19746), + 5920: uint16(19745), + 5921: uint16(9522), + 5922: uint16(19747), + 5923: uint16(7189), + 5924: uint16(6975), + 5925: uint16(9786), + 5926: uint16(8784), + 5927: uint16(6993), + 5928: uint16(7755), + 5929: uint16(19748), + 5930: uint16(19749), + 5931: uint16(7740), + 5932: uint16(19750), + 5933: uint16(19751), + 5934: uint16(19752), + 5935: uint16(11342), + 5936: uint16(7190), + 5937: uint16(19754), + 5938: uint16(19753), + 5939: uint16(6201), + 5940: uint16(6226), + 5941: uint16(6687), + 5942: uint16(19757), + 5943: uint16(7237), + 5944: uint16(19756), + 5945: uint16(19755), + 5946: uint16(8520), + 5947: uint16(5966), + 5948: uint16(7970), + 5949: uint16(9999), + 5950: uint16(7192), + 5951: uint16(19758), + 5952: uint16(7486), + 5953: uint16(19761), + 5954: uint16(19759), + 5955: uint16(19760), + 5956: uint16(19763), + 5957: uint16(19762), + 5958: uint16(7513), + 5959: uint16(19764), + 5960: uint16(19765), + 5961: uint16(19766), + 5962: uint16(10031), + 5963: uint16(6450), + 5964: uint16(6976), + 5965: uint16(19767), + 5966: uint16(19768), + 5967: uint16(11523), + 5968: uint16(7204), + 5969: uint16(11085), + 5970: uint16(11563), + 5971: uint16(19769), + 5972: uint16(5441), + 5973: uint16(19770), + 5974: uint16(9218), + 5975: uint16(19773), + 5976: uint16(4695), + 5977: uint16(7722), + 5978: uint16(19771), + 5979: uint16(19772), + 5980: uint16(9023), + 5981: uint16(10804), + 5982: uint16(5467), + 5983: uint16(19775), + 5984: uint16(19776), + 5985: uint16(19774), + 5986: uint16(19778), + 5987: uint16(9534), + 5988: uint16(4642), + 5989: uint16(19782), + 5990: uint16(19779), + 5991: uint16(19781), + 5992: uint16(19777), + 5993: uint16(20014), + 5994: uint16(19780), + 5995: uint16(11594), + 5996: uint16(5945), + 5997: uint16(19790), + 5998: uint16(9235), + 5999: uint16(19785), + 6000: uint16(19788), + 6001: uint16(19786), + 6002: uint16(19791), + 6003: uint16(19792), + 6004: uint16(19784), + 6005: uint16(19797), + 6006: uint16(4179), + 6007: uint16(19783), + 6008: uint16(9996), + 6009: uint16(19787), + 6010: uint16(7487), + 6011: uint16(6202), + 6012: uint16(10791), + 6013: uint16(5443), + 6014: uint16(7205), + 6015: uint16(9499), + 6016: uint16(8204), + 6017: uint16(19795), + 6018: uint16(19789), + 6019: uint16(19794), + 6020: uint16(11042), + 6021: uint16(8983), + 6022: uint16(19796), + 6023: uint16(19793), + 6024: uint16(8203), + 6025: uint16(19800), + 6026: uint16(19799), + 6027: uint16(19798), + 6028: uint16(10766), + 6029: uint16(7258), + 6030: uint16(19801), + 6031: uint16(10558), + 6032: uint16(4147), + 6033: uint16(10277), + 6034: uint16(8785), + 6035: uint16(5207), + 6036: uint16(19803), + 6037: uint16(6204), + 6038: uint16(6667), + 6039: uint16(19802), + 6040: uint16(7756), + 6041: uint16(7757), + 6042: uint16(19968), + 6043: uint16(19970), + 6044: uint16(7514), + 6045: uint16(19969), + 6046: uint16(19971), + 6047: uint16(5426), + 6048: uint16(10276), + 6049: uint16(6977), + 6050: uint16(11778), + 6051: uint16(19805), + 6052: uint16(6487), + 6053: uint16(11806), + 6054: uint16(19973), + 6055: uint16(19972), + 6056: uint16(19974), + 6057: uint16(19804), + 6058: uint16(9544), + 6059: uint16(9268), + 6060: uint16(9014), + 6061: uint16(19979), + 6062: uint16(8738), + 6063: uint16(19975), + 6064: uint16(19976), + 6065: uint16(5644), + 6066: uint16(19978), + 6067: uint16(5903), + 6068: uint16(19977), + 6069: uint16(7488), + 6070: uint16(4696), + 6071: uint16(19983), + 6072: uint16(6430), + 6073: uint16(8280), + 6074: uint16(9001), + 6075: uint16(4634), + 6076: uint16(19981), + 6077: uint16(19982), + 6078: uint16(8994), + 6079: uint16(19980), + 6080: uint16(19984), + 6081: uint16(19990), + 6082: uint16(19993), + 6083: uint16(19992), + 6084: uint16(9228), + 6085: uint16(19985), + 6086: uint16(19986), + 6087: uint16(19989), + 6088: uint16(19991), + 6089: uint16(5407), + 6090: uint16(19994), + 6091: uint16(19988), + 6092: uint16(19987), + 6093: uint16(19998), + 6094: uint16(19999), + 6095: uint16(20000), + 6096: uint16(19997), + 6097: uint16(19996), + 6098: uint16(7489), + 6099: uint16(9481), + 6100: uint16(19995), + 6101: uint16(20004), + 6102: uint16(20002), + 6103: uint16(20003), + 6104: uint16(20001), + 6105: uint16(8535), + 6106: uint16(20005), + 6107: uint16(20006), + 6108: uint16(20008), + 6109: uint16(4916), + 6110: uint16(20007), + 6111: uint16(11097), + 6112: uint16(20019), + 6113: uint16(20009), + 6114: uint16(20012), + 6115: uint16(20010), + 6116: uint16(20011), + 6117: uint16(20013), + 6118: uint16(20015), + 6119: uint16(20016), + 6120: uint16(20017), + 6121: uint16(20020), + 6122: uint16(20018), + 6123: uint16(20021), + 6124: uint16(20023), + 6125: uint16(20022), + 6126: uint16(8984), + 6127: uint16(11078), + 6128: uint16(20024), + 6129: uint16(8205), + 6130: uint16(20025), + 6131: uint16(10531), + 6132: uint16(20026), + 6133: uint16(4618), + 6134: uint16(4123), + 6135: uint16(4918), + 6136: uint16(4917), + 6137: uint16(20027), + 6138: uint16(20028), + 6139: uint16(20029), + 6140: uint16(20030), + 6141: uint16(20031), + 6142: uint16(4919), + 6143: uint16(4660), + 6144: uint16(6205), + 6145: uint16(10005), + 6146: uint16(20033), + 6147: uint16(20032), + 6148: uint16(20034), + 6149: uint16(4155), + 6150: uint16(20037), + 6151: uint16(20036), + 6152: uint16(20035), + 6153: uint16(20038), + 6154: uint16(20041), + 6155: uint16(3878), + 6156: uint16(20039), + 6157: uint16(20043), + 6158: uint16(20042), + 6159: uint16(20045), + 6160: uint16(20044), + 6161: uint16(20046), + 6162: uint16(9485), + 6163: uint16(20047), + 6164: uint16(20048), + 6165: uint16(20050), + 6166: uint16(20049), + 6167: uint16(10315), + 6168: uint16(20051), + 6169: uint16(20052), + 6170: uint16(6468), + 6171: uint16(20053), + 6172: uint16(20054), + 6173: uint16(10792), + 6174: uint16(8234), + 6175: uint16(3843), + 6176: uint16(8490), + 6177: uint16(20055), + 6178: uint16(10316), + 6179: uint16(20058), + 6180: uint16(20056), + 6181: uint16(6206), + 6182: uint16(20057), + 6183: uint16(5921), + 6184: uint16(10532), + 6185: uint16(20060), + 6186: uint16(20224), + 6187: uint16(20061), + 6188: uint16(20225), + 6189: uint16(4096), + 6190: uint16(7735), + 6191: uint16(7259), + 6192: uint16(4920), + 6193: uint16(20226), + 6194: uint16(9797), + 6195: uint16(20228), + 6196: uint16(4097), + 6197: uint16(20227), + 6198: uint16(8995), + 6199: uint16(11564), + 6200: uint16(9482), + 6201: uint16(20059), + 6202: uint16(11525), + 6203: uint16(5904), + 6204: uint16(11322), + 6205: uint16(5464), + 6206: uint16(11539), + 6207: uint16(5639), + 6208: uint16(8513), + 6209: uint16(17920), + 6210: uint16(20229), + 6211: uint16(4619), + 6212: uint16(7758), + 6213: uint16(4661), + 6214: uint16(20231), + 6215: uint16(20232), + 6216: uint16(20230), + 6217: uint16(5699), + 6218: uint16(6460), + 6219: uint16(7490), + 6220: uint16(4098), + 6221: uint16(11576), + 6222: uint16(20234), + 6223: uint16(19725), + 6224: uint16(20233), + 6225: uint16(20237), + 6226: uint16(20235), + 6227: uint16(20236), + 6228: uint16(20238), + 6229: uint16(20239), + 6230: uint16(11595), + 6231: uint16(20240), + 6232: uint16(20241), + 6233: uint16(7976), + 6234: uint16(10010), + 6235: uint16(7772), + 6236: uint16(4934), + 6237: uint16(11289), + 6238: uint16(4428), + 6239: uint16(7191), + 6240: uint16(5946), + 6241: uint16(20244), + 6242: uint16(20243), + 6243: uint16(6738), + 6244: uint16(20245), + 6245: uint16(20242), + 6246: uint16(6663), + 6247: uint16(20249), + 6248: uint16(18700), + 6249: uint16(12597), + 6250: uint16(7766), + 6251: uint16(20247), + 6252: uint16(11524), + 6253: uint16(9552), + 6254: uint16(4106), + 6255: uint16(8002), + 6256: uint16(6933), + 6257: uint16(10518), + 6258: uint16(4127), + 6259: uint16(11596), + 6260: uint16(11338), + 6261: uint16(20250), + 6262: uint16(9252), + 6263: uint16(7002), + 6264: uint16(20251), + 6265: uint16(20252), + 6266: uint16(7723), + 6267: uint16(20253), + 6268: uint16(11597), + 6269: uint16(20248), + 6270: uint16(20255), + 6271: uint16(20257), + 6272: uint16(20256), + 6273: uint16(20254), + 6274: uint16(20258), + 6275: uint16(20259), + 6276: uint16(8281), + 6277: uint16(4417), + 6278: uint16(20260), + 6279: uint16(11031), + 6280: uint16(20261), + 6281: uint16(20262), + 6282: uint16(11785), + 6283: uint16(14864), + 6284: uint16(20263), + 6285: uint16(20264), + 6286: uint16(20265), + 6287: uint16(20269), + 6288: uint16(20266), + 6289: uint16(20267), + 6290: uint16(20268), + 6291: uint16(20270), + 6292: uint16(7971), + 6293: uint16(11094), + 6294: uint16(7972), + 6295: uint16(20271), + 6296: uint16(10066), + 6297: uint16(20272), + 6298: uint16(21042), + 6299: uint16(11051), + 6300: uint16(20273), + 6301: uint16(20274), + 6302: uint16(20275), + 6303: uint16(4662), + 6304: uint16(20277), + 6305: uint16(7736), + 6306: uint16(20278), + 6307: uint16(5635), + 6308: uint16(20279), + 6309: uint16(20283), + 6310: uint16(20281), + 6311: uint16(20282), + 6312: uint16(4690), + 6313: uint16(20280), + 6314: uint16(20284), + 6315: uint16(20285), + 6316: uint16(3879), + 6317: uint16(20286), + 6318: uint16(20287), + 6319: uint16(7491), + 6320: uint16(20288), + 6321: uint16(5158), + 6322: uint16(20291), + 6323: uint16(20290), + 6324: uint16(20289), + 6325: uint16(19024), + 6326: uint16(10555), + 6327: uint16(20292), + 6328: uint16(20293), + 6329: uint16(20294), + 6330: uint16(20295), + 6331: uint16(20296), + 6332: uint16(20297), + 6333: uint16(4921), + 6334: uint16(20298), + 6335: uint16(20299), + 6336: uint16(9730), + 6337: uint16(20301), + 6338: uint16(4378), + 6339: uint16(20304), + 6340: uint16(20303), + 6341: uint16(4099), + 6342: uint16(5408), + 6343: uint16(10534), + 6344: uint16(8985), + 6345: uint16(6401), + 6346: uint16(6207), + 6347: uint16(7238), + 6348: uint16(7739), + 6349: uint16(20306), + 6350: uint16(20305), + 6351: uint16(11297), + 6352: uint16(4935), + 6353: uint16(10033), + 6354: uint16(9531), + 6355: uint16(7771), + 6356: uint16(11565), + 6357: uint16(5690), + 6358: uint16(20309), + 6359: uint16(20308), + 6360: uint16(10794), + 6361: uint16(9483), + 6362: uint16(4143), + 6363: uint16(20310), + 6364: uint16(20307), + 6365: uint16(10288), + 6366: uint16(11337), + 6367: uint16(20311), + 6368: uint16(20312), + 6369: uint16(20314), + 6370: uint16(8521), + 6371: uint16(4666), + 6372: uint16(4667), + 6373: uint16(20313), + 6374: uint16(4936), + 6375: uint16(5905), + 6376: uint16(4937), + 6377: uint16(9246), + 6378: uint16(11583), + 6379: uint16(5947), + 6380: uint16(20315), + 6381: uint16(20316), + 6382: uint16(20317), + 6383: uint16(20480), + 6384: uint16(20482), + 6385: uint16(20481), + 6386: uint16(10326), + 6387: uint16(20483), + 6388: uint16(20484), + 6389: uint16(20485), + 6390: uint16(20486), + 6391: uint16(20488), + 6392: uint16(20487), + 6393: uint16(20489), + 6394: uint16(10067), + 6395: uint16(17707), + 6396: uint16(7688), + 6397: uint16(5137), + 6398: uint16(20490), + 6399: uint16(20491), + 6400: uint16(12555), + 6401: uint16(15386), + 6402: uint16(10034), + 6403: uint16(3930), + 6404: uint16(3866), + 6405: uint16(6739), + 6406: uint16(10767), + 6407: uint16(7517), + 6408: uint16(20492), + 6409: uint16(11070), + 6410: uint16(20493), + 6411: uint16(11323), + 6412: uint16(4129), + 6413: uint16(6688), + 6414: uint16(20494), + 6415: uint16(4429), + 6416: uint16(20495), + 6417: uint16(20496), + 6418: uint16(20498), + 6419: uint16(20499), + 6420: uint16(20501), + 6421: uint16(20497), + 6422: uint16(20500), + 6423: uint16(4922), + 6424: uint16(20502), + 6425: uint16(20503), + 6426: uint16(20504), + 6427: uint16(20505), + 6428: uint16(20506), + 6429: uint16(20508), + 6430: uint16(20507), + 6431: uint16(20510), + 6432: uint16(20513), + 6433: uint16(20509), + 6434: uint16(20511), + 6435: uint16(20512), + 6436: uint16(20514), + 6437: uint16(5409), + 6438: uint16(6994), + 6439: uint16(20515), + 6440: uint16(20516), + 6441: uint16(6208), + 6442: uint16(20517), + 6443: uint16(4637), + 6444: uint16(9774), + 6445: uint16(20518), + 6446: uint16(20519), + 6447: uint16(8761), + 6448: uint16(9546), + 6449: uint16(20520), + 6450: uint16(9820), + 6451: uint16(8491), + 6452: uint16(4151), + 6453: uint16(5453), + 6454: uint16(5454), + 6455: uint16(8786), + 6456: uint16(20525), + 6457: uint16(5455), + 6458: uint16(4430), + 6459: uint16(20524), + 6460: uint16(20522), + 6461: uint16(20523), + 6462: uint16(20521), + 6463: uint16(20535), + 6464: uint16(20526), + 6465: uint16(20527), + 6466: uint16(20528), + 6467: uint16(20529), + 6468: uint16(20531), + 6469: uint16(20530), + 6470: uint16(7224), + 6471: uint16(20532), + 6472: uint16(20534), + 6473: uint16(5138), + 6474: uint16(20533), + 6475: uint16(8282), + 6476: uint16(5906), + 6477: uint16(20536), + 6478: uint16(8492), + 6479: uint16(20537), + 6480: uint16(9484), + 6481: uint16(20538), + 6482: uint16(20543), + 6483: uint16(20541), + 6484: uint16(20540), + 6485: uint16(20542), + 6486: uint16(20539), + 6487: uint16(20545), + 6488: uint16(20544), + 6489: uint16(20547), + 6490: uint16(5410), + 6491: uint16(20546), + 6492: uint16(20548), + 6493: uint16(20549), + 6494: uint16(20551), + 6495: uint16(20550), + 6496: uint16(20552), + 6497: uint16(20554), + 6498: uint16(20553), + 6499: uint16(6235), + 6500: uint16(20555), + 6501: uint16(20556), + 6502: uint16(4635), + 6503: uint16(20557), + 6504: uint16(20558), + 6505: uint16(7760), + 6506: uint16(20559), + 6507: uint16(20560), + 6508: uint16(20561), + 6509: uint16(20562), + 6510: uint16(6209), + 6511: uint16(20563), + 6512: uint16(20564), + 6513: uint16(20565), + 6514: uint16(20566), + 6515: uint16(20567), + 6516: uint16(10000), + 6517: uint16(20569), + 6518: uint16(10245), + 6519: uint16(20570), + 6520: uint16(20568), + 6521: uint16(20572), + 6522: uint16(20571), + 6523: uint16(20573), + 6524: uint16(20736), + 6525: uint16(20737), + 6526: uint16(20738), + 6527: uint16(20739), + 6528: uint16(20740), + 6529: uint16(20741), + 6530: uint16(20742), + 6531: uint16(20743), + 6532: uint16(20744), + 6533: uint16(20745), + 6534: uint16(20746), + 6535: uint16(20747), + 6536: uint16(20748), + 6537: uint16(20749), + 6538: uint16(15380), + 6539: uint16(20750), + 6540: uint16(17239), + 6541: uint16(5139), + 6542: uint16(4608), + 6543: uint16(6417), + 6544: uint16(20752), + 6545: uint16(20751), + 6546: uint16(11012), + 6547: uint16(20754), + 6548: uint16(20755), + 6549: uint16(20753), + 6550: uint16(20756), + 6551: uint16(10817), + 6552: uint16(20757), + 6553: uint16(5210), + 6554: uint16(11780), + 6555: uint16(20758), + 6556: uint16(20760), + 6557: uint16(3869), + 6558: uint16(20761), + 6559: uint16(10506), + 6560: uint16(20759), + 6561: uint16(20762), + 6562: uint16(20763), + 6563: uint16(20764), + 6564: uint16(20765), + 6565: uint16(20766), + 6566: uint16(10829), + 6567: uint16(6668), + 6568: uint16(6489), + 6569: uint16(8206), + 6570: uint16(20767), + 6571: uint16(20770), + 6572: uint16(20768), + 6573: uint16(20771), + 6574: uint16(5968), + 6575: uint16(20769), + 6576: uint16(20772), + 6577: uint16(20773), + 6578: uint16(20774), + 6579: uint16(20778), + 6580: uint16(6665), + 6581: uint16(8515), + 6582: uint16(20779), + 6583: uint16(20776), + 6584: uint16(20775), + 6585: uint16(20777), + 6586: uint16(5694), + 6587: uint16(20783), + 6588: uint16(20782), + 6589: uint16(20781), + 6590: uint16(3858), + 6591: uint16(20793), + 6592: uint16(20789), + 6593: uint16(20790), + 6594: uint16(20786), + 6595: uint16(20792), + 6596: uint16(20788), + 6597: uint16(4673), + 6598: uint16(11819), + 6599: uint16(20791), + 6600: uint16(20787), + 6601: uint16(20785), + 6602: uint16(20784), + 6603: uint16(20795), + 6604: uint16(20798), + 6605: uint16(20797), + 6606: uint16(20796), + 6607: uint16(10280), + 6608: uint16(20794), + 6609: uint16(3922), + 6610: uint16(20799), + 6611: uint16(20801), + 6612: uint16(4686), + 6613: uint16(20780), + 6614: uint16(4118), + 6615: uint16(20803), + 6616: uint16(20802), + 6617: uint16(20800), + 6618: uint16(8716), + 6619: uint16(10831), + 6620: uint16(11577), + 6621: uint16(20804), + 6622: uint16(20805), + 6623: uint16(20806), + 6624: uint16(20807), + 6625: uint16(20808), + 6626: uint16(8986), + 6627: uint16(20809), + 6628: uint16(10006), + 6629: uint16(20814), + 6630: uint16(20810), + 6631: uint16(20811), + 6632: uint16(10768), + 6633: uint16(11043), + 6634: uint16(9519), + 6635: uint16(20815), + 6636: uint16(20816), + 6637: uint16(9501), + 6638: uint16(20813), + 6639: uint16(20812), + 6640: uint16(4361), + 6641: uint16(20824), + 6642: uint16(20823), + 6643: uint16(4180), + 6644: uint16(20821), + 6645: uint16(20820), + 6646: uint16(20818), + 6647: uint16(4698), + 6648: uint16(20817), + 6649: uint16(6929), + 6650: uint16(4360), + 6651: uint16(6210), + 6652: uint16(20827), + 6653: uint16(20826), + 6654: uint16(20825), + 6655: uint16(20822), + 6656: uint16(20828), + 6657: uint16(20829), + 6658: uint16(20996), + 6659: uint16(20995), + 6660: uint16(20997), + 6661: uint16(4108), + 6662: uint16(20992), + 6663: uint16(20993), + 6664: uint16(6227), + 6665: uint16(11032), + 6666: uint16(20994), + 6667: uint16(10769), + 6668: uint16(21002), + 6669: uint16(20998), + 6670: uint16(21003), + 6671: uint16(21000), + 6672: uint16(20999), + 6673: uint16(5691), + 6674: uint16(21004), + 6675: uint16(21005), + 6676: uint16(21006), + 6677: uint16(21001), + 6678: uint16(20819), + 6679: uint16(21007), + 6680: uint16(9024), + 6681: uint16(21011), + 6682: uint16(21012), + 6683: uint16(21010), + 6684: uint16(21009), + 6685: uint16(21015), + 6686: uint16(21008), + 6687: uint16(21013), + 6688: uint16(21014), + 6689: uint16(21017), + 6690: uint16(21016), + 6691: uint16(21019), + 6692: uint16(21020), + 6693: uint16(21021), + 6694: uint16(11816), + 6695: uint16(21018), + 6696: uint16(8522), + 6697: uint16(6476), + 6698: uint16(21022), + 6699: uint16(21023), + 6700: uint16(21024), + 6701: uint16(21025), + 6702: uint16(21026), + 6703: uint16(5907), + 6704: uint16(21027), + 6705: uint16(21028), + 6706: uint16(6926), + 6707: uint16(21029), + 6708: uint16(21030), + 6709: uint16(21031), + 6710: uint16(21032), + 6711: uint16(21035), + 6712: uint16(21033), + 6713: uint16(11803), + 6714: uint16(21034), + 6715: uint16(11598), + 6716: uint16(21036), + 6717: uint16(11578), + 6718: uint16(21037), + 6719: uint16(9821), + 6720: uint16(21038), + 6721: uint16(21040), + 6722: uint16(21041), + 6723: uint16(21039), + 6724: uint16(6220), + 6725: uint16(11052), + 6726: uint16(10818), + 6727: uint16(13654), + 6728: uint16(15423), + 6729: uint16(10842), + 6730: uint16(4362), + 6731: uint16(21043), + 6732: uint16(5167), + 6733: uint16(21044), + 6734: uint16(21045), + 6735: uint16(21046), + 6736: uint16(6228), + 6737: uint16(21047), + 6738: uint16(16179), + 6739: uint16(11066), + 6740: uint16(8514), + 6741: uint16(21048), + 6742: uint16(21050), + 6743: uint16(21049), + 6744: uint16(21051), + 6745: uint16(21052), + 6746: uint16(21053), + 6747: uint16(21054), + 6748: uint16(21055), + 6749: uint16(21056), + 6750: uint16(21057), + 6751: uint16(21058), + 6752: uint16(21059), + 6753: uint16(21060), + 6754: uint16(21061), + 6755: uint16(21062), + 6756: uint16(21063), + 6757: uint16(9219), + 6758: uint16(5948), + 6759: uint16(21065), + 6760: uint16(8236), + 6761: uint16(21066), + 6762: uint16(21067), + 6763: uint16(10240), + 6764: uint16(21068), + 6765: uint16(21069), + 6766: uint16(16918), + 6767: uint16(19257), + 6768: uint16(20300), + 6769: uint16(21070), + 6770: uint16(21071), + 6771: uint16(21073), + 6772: uint16(21074), + 6773: uint16(21075), + 6774: uint16(11599), + 6775: uint16(21072), + 6776: uint16(21076), + 6777: uint16(21077), + 6778: uint16(21079), + 6779: uint16(21078), + 6780: uint16(21081), + 6781: uint16(21082), + 6782: uint16(21080), + 6783: uint16(11541), + 6784: uint16(21083), + 6785: uint16(21084), + 6786: uint16(16947), + 6787: uint16(21085), + 6788: uint16(9), + 6789: uint16(83), + 6790: uint16(79), + 6791: uint16(82), + 6792: uint16(84), + 6793: uint16(41), + 6794: uint16(42), + 6795: uint16(85), + 6796: uint16(59), + 6797: uint16(3), + 6798: uint16(4), + 6799: uint16(30), + 6800: uint16(527), + 6801: uint16(528), + 6802: uint16(529), + 6803: uint16(530), + 6804: uint16(531), + 6805: uint16(532), + 6806: uint16(533), + 6807: uint16(534), + 6808: uint16(535), + 6809: uint16(536), + 6810: uint16(6), + 6811: uint16(7), + 6812: uint16(66), + 6813: uint16(64), + 6814: uint16(67), + 6815: uint16(8), + 6816: uint16(86), + 6817: uint16(544), + 6818: uint16(545), + 6819: uint16(546), + 6820: uint16(547), + 6821: uint16(548), + 6822: uint16(549), + 6823: uint16(550), + 6824: uint16(551), + 6825: uint16(552), + 6826: uint16(553), + 6827: uint16(554), + 6828: uint16(555), + 6829: uint16(556), + 6830: uint16(557), + 6831: uint16(558), + 6832: uint16(559), + 6833: uint16(560), + 6834: uint16(561), + 6835: uint16(562), + 6836: uint16(563), + 6837: uint16(564), + 6838: uint16(565), + 6839: uint16(566), + 6840: uint16(567), + 6841: uint16(568), + 6842: uint16(569), + 6843: uint16(45), + 6844: uint16(46), + 6845: uint16(15), + 6846: uint16(17), + 6847: uint16(13), + 6848: uint16(576), + 6849: uint16(577), + 6850: uint16(578), + 6851: uint16(579), + 6852: uint16(580), + 6853: uint16(581), + 6854: uint16(582), + 6855: uint16(583), + 6856: uint16(584), + 6857: uint16(585), + 6858: uint16(586), + 6859: uint16(587), + 6860: uint16(588), + 6861: uint16(589), + 6862: uint16(590), + 6863: uint16(591), + 6864: uint16(592), + 6865: uint16(593), + 6866: uint16(594), + 6867: uint16(595), + 6868: uint16(596), + 6869: uint16(597), + 6870: uint16(598), + 6871: uint16(599), + 6872: uint16(600), + 6873: uint16(601), + 6874: uint16(47), + 6875: uint16(34), + 6876: uint16(48), + 6877: uint16(16), + 6878: uint16(78), +} + +func _fuzzycmp(tls *TLS, a uintptr, b uintptr) (r int32) { + for { + if !(**(**uint8)(__ccgo_up(a)) != 0 && **(**uint8)(__ccgo_up(b)) != 0) { + break + } + for **(**uint8)(__ccgo_up(a)) != 0 && uint32(**(**uint8)(__ccgo_up(a)))|uint32(32)-uint32('a') > uint32(26) && Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(a)))-int32('0')) > uint32(10) { + a = a + 1 + } + if uint32(**(**uint8)(__ccgo_up(a)))|uint32(32) != uint32(**(**uint8)(__ccgo_up(b))) { + return int32(1) + } + goto _1 + _1: + ; + a = a + 1 + b = b + 1 + } + return BoolInt32(Int32FromUint8(**(**uint8)(__ccgo_up(a))) != Int32FromUint8(**(**uint8)(__ccgo_up(b)))) +} + +func _find_charmap(tls *TLS, name uintptr) (r Tsize_t) { + var s uintptr + _ = s + if !(**(**int8)(__ccgo_up(name)) != 0) { + name = uintptr(unsafe.Pointer(&_charmaps)) + } /* "utf8" */ + s = uintptr(unsafe.Pointer(&_charmaps)) + for { + if !(**(**uint8)(__ccgo_up(s)) != 0) { + break + } + if !(_fuzzycmp(tls, name, s) != 0) { + for { + if !(**(**uint8)(__ccgo_up(s)) != 0) { + break + } + goto _2 + _2: + ; + s = s + uintptr(_strlen(tls, s)+uint32(1)) + } + return Uint32FromInt32(int32(s+uintptr(1)) - t__predefined_ptrdiff_t(uintptr(unsafe.Pointer(&_charmaps)))) + } + s = s + uintptr(_strlen(tls, s)+uint32(1)) + if !(**(**uint8)(__ccgo_up(s)) != 0) { + if Int32FromUint8(**(**uint8)(__ccgo_up(s + 1))) > int32(0200) { + s = s + uintptr(2) + } else { + s = s + uintptr(uint32(2)+(uint32(64)-uint32(**(**uint8)(__ccgo_up(s + 1))))*uint32(5)) + } + } + goto _1 + _1: + } + return Uint32FromInt32(-Int32FromInt32(1)) +} + +type Tstateful_cd = struct { + Fbase_cd Ticonv_t + Fstate uint32 +} + +func _combine_to_from(tls *TLS, t Tsize_t, f Tsize_t) (r Ticonv_t) { + return uintptr(f<> int32(16) +} + +func _extract_to(tls *TLS, cd Ticonv_t) (r Tsize_t) { + return uint32(cd) >> int32(1) & uint32(0x7fff) +} + +func Xiconv_open(tls *TLS, to uintptr, from uintptr) (r Ticonv_t) { + if __ccgo_strace { + trc("tls=%v to=%v from=%v, (%v:)", tls, to, from, origin(2)) + defer func() { trc("-> %v", r) }() + } + var cd Ticonv_t + var f, t, v1, v2 Tsize_t + var scd uintptr + var v3 bool + _, _, _, _, _, _, _ = cd, f, scd, t, v1, v2, v3 + v1 = _find_charmap(tls, to) + t = v1 + if v3 = v1 == Uint32FromInt32(-Int32FromInt32(1)); !v3 { + v2 = _find_charmap(tls, from) + f = v2 + } + if v3 || v2 == Uint32FromInt32(-Int32FromInt32(1)) || Int32FromUint8(_charmaps[t]) >= int32(0330) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(-Int32FromInt32(1)) + } + cd = _combine_to_from(tls, t, f) + switch Int32FromUint8(_charmaps[f]) { + case int32(UTF_16): + fallthrough + case int32(UTF_32): + fallthrough + case int32(UCS2): + fallthrough + case int32(ISO2022_JP): + scd = Xmalloc(tls, uint32(8)) + if !(scd != 0) { + return uintptr(-Int32FromInt32(1)) + } + (*Tstateful_cd)(unsafe.Pointer(scd)).Fbase_cd = cd + (*Tstateful_cd)(unsafe.Pointer(scd)).Fstate = uint32(0) + cd = scd + } + return cd +} + +func _get_16(tls *TLS, s uintptr, e int32) (r uint32) { + e = e & int32(1) + return Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(e))))<> int32(8)) + **(**uint8)(__ccgo_up(s + uintptr(int32(1)-e))) = uint8(c) +} + +func _get_32(tls *TLS, s uintptr, e int32) (r uint32) { + e = e & int32(3) + return (uint32(**(**uint8)(__ccgo_up(s + uintptr(e))))+0)<> int32(24)) + **(**uint8)(__ccgo_up(s + uintptr(e^int32(1)))) = uint8(c >> int32(16)) + **(**uint8)(__ccgo_up(s + uintptr(e^int32(2)))) = uint8(c >> int32(8)) + **(**uint8)(__ccgo_up(s + uintptr(e^int32(3)))) = uint8(c) +} + +/* Adapt as needed */ + +func _legacy_map(tls *TLS, map1 uintptr, c uint32) (r uint32) { + var x, v1 uint32 + _, _ = x, v1 + if c < Uint32FromInt32(int32(4)*Int32FromUint8(**(**uint8)(__ccgo_up(map1 + uintptr(-Int32FromInt32(1)))))) { + return c + } + x = c - Uint32FromInt32(int32(4)*Int32FromUint8(**(**uint8)(__ccgo_up(map1 + uintptr(-Int32FromInt32(1)))))) + x = Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(map1 + uintptr(x*uint32(5)/uint32(4)))))>>(uint32(2)*x%uint32(8)) | Int32FromUint8(**(**uint8)(__ccgo_up(map1 + uintptr(x*uint32(5)/uint32(4)+uint32(1)))))<<(uint32(8)-uint32(2)*x%uint32(8))&int32(1023)) + if x < uint32(256) { + v1 = x + } else { + v1 = uint32(_legacy_chars[x-uint32(256)]) + } + return v1 +} + +func _uni_to_jis(tls *TLS, c uint32) (r uint32) { + var b, d, i, j, nel uint32 + _, _, _, _, _ = b, d, i, j, nel + nel = Uint32FromInt64(13758) / Uint32FromInt64(2) + b = uint32(0) + for { + i = nel / uint32(2) + j = uint32(_rev_jis[b+i]) + d = uint32(**(**uint16)(__ccgo_up(uintptr(unsafe.Pointer(&_jis0208)) + uintptr(j/uint32(256))*188 + uintptr(j%uint32(256))*2))) + if d == c { + return j + uint32(0x2121) + } else { + if nel == uint32(1) { + return uint32(0) + } else { + if c < d { + nel = nel / uint32(2) + } else { + b = b + i + nel = nel - nel/uint32(2) + } + } + } + goto _1 + _1: + } + return r +} + +func Xiconv(tls *TLS, cd Ticonv_t, in uintptr, inb uintptr, out uintptr, outb uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v cd=%v in=%v inb=%v out=%v outb=%v, (%v:)", tls, cd, in, inb, out, outb, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + var c, d, from, to, v62 uint32 + var err, i, i1, j, j1, v25, v26, v27 int32 + var k, l, tmplen, tmpx, x Tsize_t + var loc Tlocale_t + var map1, ploc, scd, tomap, v54, v55 uintptr + var totype, type1 uint8 + var _ /* ptmp at bp+40 */ uintptr + var _ /* st at bp+16 */ Tmbstate_t + var _ /* tmp at bp+32 */ struct { + Fwc [0][2]Twchar_t + Fc [8]int8 + } + var _ /* tmp at bp+44 */ [4]int8 + var _ /* wc at bp+24 */ Twchar_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = c, d, err, from, i, i1, j, j1, k, l, loc, map1, ploc, scd, tmplen, tmpx, to, tomap, totype, type1, x, v25, v26, v27, v54, v55, v62 + x = uint32(0) + scd = uintptr(0) + if !(uint32(cd)&Uint32FromInt32(1) != 0) { + scd = cd + cd = (*Tstateful_cd)(unsafe.Pointer(scd)).Fbase_cd + } + to = _extract_to(tls, cd) + from = _extract_from(tls, cd) + map1 = uintptr(unsafe.Pointer(&_charmaps)) + uintptr(from) + uintptr(1) + tomap = uintptr(unsafe.Pointer(&_charmaps)) + uintptr(to) + uintptr(1) + **(**Tmbstate_t)(__ccgo_up(bp + 16)) = Tmbstate_t{} + type1 = **(**uint8)(__ccgo_up(map1 + uintptr(-Int32FromInt32(1)))) + totype = **(**uint8)(__ccgo_up(tomap + uintptr(-Int32FromInt32(1)))) + ploc = uintptr(___get_tp(tls)) + 96 + loc = **(**Tlocale_t)(__ccgo_up(ploc)) + if !(in != 0) || !(**(**uintptr)(__ccgo_up(in)) != 0) || !(**(**Tsize_t)(__ccgo_up(inb)) != 0) { + return uint32(0) + } + **(**Tlocale_t)(__ccgo_up(ploc)) = uintptr(unsafe.Pointer(&X__c_dot_utf8_locale)) + for { + if !(**(**Tsize_t)(__ccgo_up(inb)) != 0) { + break + } + c = uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(in))))) + l = uint32(1) + switch Int32FromUint8(type1) { + case int32(UTF_8): + goto _2 + case int32(US_ASCII): + goto _3 + case int32(WCHAR_T): + goto _4 + case int32(UTF_32LE): + goto _5 + case int32(UTF_32BE): + goto _6 + case int32(UTF_16LE): + goto _7 + case int32(UTF_16BE): + goto _8 + case int32(UCS2LE): + goto _9 + case int32(UCS2BE): + goto _10 + case int32(UTF_16): + goto _11 + case int32(UCS2): + goto _12 + case int32(UTF_32): + goto _13 + case int32(SHIFT_JIS): + goto _14 + case int32(EUC_JP): + goto _15 + case int32(ISO2022_JP): + goto _16 + case int32(GB2312): + goto _17 + case int32(GBK): + goto _18 + case int32(GB18030): + goto _19 + case int32(BIG5): + goto _20 + case int32(EUC_KR): + goto _21 + default: + goto _22 + } + goto _23 + _2: + ; + if c < uint32(128) { + goto _23 + } + l = Xmbrtowc(tls, bp+24, **(**uintptr)(__ccgo_up(in)), **(**Tsize_t)(__ccgo_up(inb)), bp+16) + if l == Uint32FromInt32(-Int32FromInt32(1)) { + goto ilseq + } + if l == Uint32FromInt32(-Int32FromInt32(2)) { + goto starved + } + c = Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp + 24))) + goto _23 + _3: + ; + if c >= uint32(128) { + goto ilseq + } + goto _23 + _4: + ; + l = uint32(4) + if **(**Tsize_t)(__ccgo_up(inb)) < l { + goto starved + } + c = Uint32FromInt32(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(in))))) + if !(0 != 0) { + goto _24 + } + _6: + ; + _5: + ; + l = uint32(4) + if **(**Tsize_t)(__ccgo_up(inb)) < uint32(4) { + goto starved + } + c = _get_32(tls, **(**uintptr)(__ccgo_up(in)), Int32FromUint8(type1)) + _24: + ; + if c-uint32(0xd800) < uint32(0x800) || c >= uint32(0x110000) { + goto ilseq + } + goto _23 + _10: + ; + _9: + ; + _8: + ; + _7: + ; + l = uint32(2) + if **(**Tsize_t)(__ccgo_up(inb)) < uint32(2) { + goto starved + } + c = _get_16(tls, **(**uintptr)(__ccgo_up(in)), Int32FromUint8(type1)) + if c-Uint32FromInt32(0xdc00) < uint32(0x400) { + goto ilseq + } + if c-Uint32FromInt32(0xd800) < uint32(0x400) { + if Uint32FromInt32(Int32FromUint8(type1)-int32(UCS2BE)) < uint32(2) { + goto ilseq + } + l = uint32(4) + if **(**Tsize_t)(__ccgo_up(inb)) < uint32(4) { + goto starved + } + d = _get_16(tls, **(**uintptr)(__ccgo_up(in))+UintptrFromInt32(2), Int32FromUint8(type1)) + if d-Uint32FromInt32(0xdc00) >= uint32(0x400) { + goto ilseq + } + c = (c-uint32(0xd7c0))< uint32(127) { + d = d - 1 + } + d = d - uint32(64) + } else { + if d-uint32(159) <= Uint32FromInt32(Int32FromInt32(252)-Int32FromInt32(159)) { + c = c + 1 + d = d - uint32(159) + } + } + if c >= uint32(84) { + goto ilseq + } + c = uint32(**(**uint16)(__ccgo_up(uintptr(unsafe.Pointer(&_jis0208)) + uintptr(c)*188 + uintptr(d)*2))) + if !(c != 0) { + goto ilseq + } + goto _23 + _15: + ; + if c < uint32(128) { + goto _23 + } + l = uint32(2) + if **(**Tsize_t)(__ccgo_up(inb)) < uint32(2) { + goto starved + } + d = uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(in)) + UintptrFromInt32(1)))) + if c == uint32(0x8e) { + c = d + if c-uint32(0xa1) > Uint32FromInt32(Int32FromInt32(0xdf)-Int32FromInt32(0xa1)) { + goto ilseq + } + c = c + Uint32FromInt32(Int32FromInt32(0xff61)-Int32FromInt32(0xa1)) + goto _23 + } + c = c - uint32(0xa1) + d = d - uint32(0xa1) + if c >= uint32(84) || d >= uint32(94) { + goto ilseq + } + c = uint32(**(**uint16)(__ccgo_up(uintptr(unsafe.Pointer(&_jis0208)) + uintptr(c)*188 + uintptr(d)*2))) + if !(c != 0) { + goto ilseq + } + goto _23 + _16: + ; + if c >= uint32(128) { + goto ilseq + } + if c == uint32('\033') { + l = uint32(3) + if **(**Tsize_t)(__ccgo_up(inb)) < uint32(3) { + goto starved + } + c = uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(in)) + UintptrFromInt32(1)))) + d = uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(in)) + UintptrFromInt32(2)))) + if c != uint32('(') && c != uint32('$') { + goto ilseq + } + switch Uint32FromInt32(Int32FromInt32(128)*BoolInt32(c == Uint32FromUint8('$'))) + d { + case uint32('B'): + (*Tstateful_cd)(unsafe.Pointer(scd)).Fstate = uint32(0) + goto _1 + case uint32('J'): + (*Tstateful_cd)(unsafe.Pointer(scd)).Fstate = uint32(1) + goto _1 + case uint32('I'): + (*Tstateful_cd)(unsafe.Pointer(scd)).Fstate = uint32(4) + goto _1 + case Uint32FromInt32(Int32FromInt32(128) + Int32FromUint8('@')): + (*Tstateful_cd)(unsafe.Pointer(scd)).Fstate = uint32(2) + goto _1 + case Uint32FromInt32(Int32FromInt32(128) + Int32FromUint8('B')): + (*Tstateful_cd)(unsafe.Pointer(scd)).Fstate = uint32(3) + goto _1 + } + goto ilseq + } + switch (*Tstateful_cd)(unsafe.Pointer(scd)).Fstate { + case uint32(1): + if c == uint32('\\') { + c = uint32(0xa5) + } + if c == uint32('~') { + c = uint32(0x203e) + } + case uint32(2): + fallthrough + case uint32(3): + l = uint32(2) + if **(**Tsize_t)(__ccgo_up(inb)) < uint32(2) { + goto starved + } + d = uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(in)) + UintptrFromInt32(1)))) + c = c - uint32(0x21) + d = d - uint32(0x21) + if c >= uint32(84) || d >= uint32(94) { + goto ilseq + } + c = uint32(**(**uint16)(__ccgo_up(uintptr(unsafe.Pointer(&_jis0208)) + uintptr(c)*188 + uintptr(d)*2))) + if !(c != 0) { + goto ilseq + } + case uint32(4): + if c-uint32(0x60) < uint32(0x1f) { + goto ilseq + } + if c-uint32(0x21) < uint32(0x5e) { + c = c + Uint32FromInt32(Int32FromInt32(0xff61)-Int32FromInt32(0x21)) + } + break + } + goto _23 + _17: + ; + if c < uint32(128) { + goto _23 + } + if c < uint32(0xa1) { + goto ilseq + } + _18: + ; + if c == uint32(128) { + c = uint32(0x20ac) + goto _23 + } + _19: + ; + if c < uint32(128) { + goto _23 + } + c = c - uint32(0x81) + if c >= uint32(126) { + goto ilseq + } + l = uint32(2) + if **(**Tsize_t)(__ccgo_up(inb)) < uint32(2) { + goto starved + } + d = uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(in)) + UintptrFromInt32(1)))) + if d < uint32(0xa1) && Int32FromUint8(type1) == int32(GB2312) { + goto ilseq + } + if d-uint32(0x40) >= uint32(191) || d == uint32(127) { + if d-uint32('0') > uint32(9) || Int32FromUint8(type1) != int32(GB18030) { + goto ilseq + } + l = uint32(4) + if **(**Tsize_t)(__ccgo_up(inb)) < uint32(4) { + goto starved + } + c = (uint32(10)*c + d - uint32('0')) * uint32(1260) + d = uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(in)) + UintptrFromInt32(2)))) + if d-uint32(0x81) > uint32(126) { + goto ilseq + } + c = c + uint32(10)*(d-uint32(0x81)) + d = uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(in)) + UintptrFromInt32(3)))) + if d-uint32('0') > uint32(9) { + goto ilseq + } + c = c + (d - uint32('0')) + c = c + uint32(128) + d = uint32(0) + for { + if !(d <= c) { + break + } + k = uint32(0) + i = 0 + for { + if !(i < int32(126)) { + break + } + j = 0 + for { + if !(j < int32(190)) { + break + } + if uint32(**(**uint16)(__ccgo_up(uintptr(unsafe.Pointer(&_gb18030)) + uintptr(i)*380 + uintptr(j)*2)))-d <= c-d { + k = k + 1 + } + goto _31 + _31: + ; + j = j + 1 + } + goto _30 + _30: + ; + i = i + 1 + } + d = c + uint32(1) + c = c + k + goto _29 + _29: + } + goto _23 + } + d = d - uint32(0x40) + if d > uint32(63) { + d = d - 1 + } + c = uint32(**(**uint16)(__ccgo_up(uintptr(unsafe.Pointer(&_gb18030)) + uintptr(c)*380 + uintptr(d)*2))) + goto _23 + _20: + ; + if c < uint32(128) { + goto _23 + } + l = uint32(2) + if **(**Tsize_t)(__ccgo_up(inb)) < uint32(2) { + goto starved + } + d = uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(in)) + UintptrFromInt32(1)))) + if d-uint32(0x40) >= Uint32FromInt32(Int32FromInt32(0xff)-Int32FromInt32(0x40)) || d-uint32(0x7f) < Uint32FromInt32(Int32FromInt32(0xa1)-Int32FromInt32(0x7f)) { + goto ilseq + } + d = d - uint32(0x40) + if d > uint32(0x3e) { + d = d - uint32(0x22) + } + if c-uint32(0xa1) >= Uint32FromInt32(Int32FromInt32(0xfa)-Int32FromInt32(0xa1)) { + if c-uint32(0x87) >= Uint32FromInt32(Int32FromInt32(0xff)-Int32FromInt32(0x87)) { + goto ilseq + } + if c < uint32(0xa1) { + c = c - uint32(0x87) + } else { + c = c - Uint32FromInt32(Int32FromInt32(0x87)+(Int32FromInt32(0xfa)-Int32FromInt32(0xa1))) + } + c = Uint32FromInt32(Int32FromUint16(_hkscs[uint32(4867)+(c*uint32(157)+d)/uint32(16)])>>((c*uint32(157)+d)%uint32(16))%int32(2)< **(**Tsize_t)(__ccgo_up(outb)) { + goto toobig + } + if tmpx != 0 { + x = x + 1 + } + Xmemcpy(tls, **(**uintptr)(__ccgo_up(out)), bp+32, tmplen) + **(**uintptr)(__ccgo_up(out)) += uintptr(tmplen) + **(**Tsize_t)(__ccgo_up(outb)) -= tmplen + goto _1 + } + if !(c != 0) { + goto ilseq + } + goto _23 + } + c = c - uint32(0xa1) + c = Uint32FromInt32(Int32FromUint16(**(**uint16)(__ccgo_up(uintptr(unsafe.Pointer(&_big5)) + uintptr(c)*314 + uintptr(d)*2))) | BoolInt32(c == uint32(0x27) && (d == uint32(0x3a) || d == uint32(0x3c) || d == uint32(0x42)))<= uint32(93) || d >= uint32(94) { + c = c + Uint32FromInt32(Int32FromInt32(0xa1)-Int32FromInt32(0x81)) + d = d + uint32(0xa1) + if c >= uint32(93) || c >= Uint32FromInt32(Int32FromInt32(0xc6)-Int32FromInt32(0x81)) && d > uint32(0x52) { + goto ilseq + } + if d-uint32('A') < uint32(26) { + d = d - uint32('A') + } else { + if d-uint32('a') < uint32(26) { + d = d - uint32('a') + uint32(26) + } else { + if d-uint32(0x81) < Uint32FromInt32(Int32FromInt32(0xff)-Int32FromInt32(0x81)) { + d = d - uint32(0x81) + uint32(52) + } else { + goto ilseq + } + } + } + if c < uint32(0x20) { + c = uint32(178)*c + d + } else { + c = Uint32FromInt32(Int32FromInt32(178)*Int32FromInt32(0x20)) + uint32(84)*(c-uint32(0x20)) + d + } + c = c + uint32(0xac00) + d = uint32(0xac00) + for { + if !(d <= c) { + break + } + k = uint32(0) + i1 = 0 + for { + if !(i1 < int32(93)) { + break + } + j1 = 0 + for { + if !(j1 < int32(94)) { + break + } + if uint32(**(**uint16)(__ccgo_up(uintptr(unsafe.Pointer(&_ksc)) + uintptr(i1)*188 + uintptr(j1)*2)))-d <= c-d { + k = k + 1 + } + goto _34 + _34: + ; + j1 = j1 + 1 + } + goto _33 + _33: + ; + i1 = i1 + 1 + } + d = c + uint32(1) + c = c + k + goto _32 + _32: + } + goto _23 + } + c = uint32(**(**uint16)(__ccgo_up(uintptr(unsafe.Pointer(&_ksc)) + uintptr(c)*188 + uintptr(d)*2))) + if !(c != 0) { + goto ilseq + } + goto _23 + _22: + ; + if !(c != 0) { + goto _23 + } + c = _legacy_map(tls, map1, c) + if !(c != 0) { + goto ilseq + } + _23: + ; + switch Int32FromUint8(totype) { + case int32(WCHAR_T): + goto _35 + case int32(UTF_8): + goto _36 + case int32(US_ASCII): + goto _37 + default: + goto _38 + case int32(SHIFT_JIS): + goto _39 + case int32(EUC_JP): + goto _40 + case int32(ISO2022_JP): + goto _41 + case int32(UCS2): + goto _42 + case int32(UTF_16LE): + goto _43 + case int32(UTF_16BE): + goto _44 + case int32(UTF_16): + goto _45 + case int32(UCS2LE): + goto _46 + case int32(UCS2BE): + goto _47 + case int32(UTF_32): + goto _48 + case int32(UTF_32LE): + goto _49 + case int32(UTF_32BE): + goto _50 + } + goto _51 + _35: + ; + if **(**Tsize_t)(__ccgo_up(outb)) < uint32(4) { + goto toobig + } + **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(out)))) = Int32FromUint32(c) + **(**uintptr)(__ccgo_up(out)) += uintptr(4) + **(**Tsize_t)(__ccgo_up(outb)) -= uint32(4) + goto _51 + _36: + ; + if **(**Tsize_t)(__ccgo_up(outb)) < uint32(4) { + k = Uint32FromInt32(Xwctomb(tls, bp+44, Int32FromUint32(c))) + if **(**Tsize_t)(__ccgo_up(outb)) < k { + goto toobig + } + Xmemcpy(tls, **(**uintptr)(__ccgo_up(out)), bp+44, k) + } else { + k = Uint32FromInt32(Xwctomb(tls, **(**uintptr)(__ccgo_up(out)), Int32FromUint32(c))) + } + **(**uintptr)(__ccgo_up(out)) += uintptr(k) + **(**Tsize_t)(__ccgo_up(outb)) -= k + goto _51 + _37: + ; + if !(c > uint32(0x7f)) { + goto _52 + } + goto subst + subst: + ; + x = x + 1 + c = Uint32FromUint8('*') + _52: + ; + _38: + ; + if **(**Tsize_t)(__ccgo_up(outb)) < uint32(1) { + goto toobig + } + if !(c < uint32(256) && c == _legacy_map(tls, tomap, c)) { + goto _53 + } + goto revout + revout: + ; + if **(**Tsize_t)(__ccgo_up(outb)) < uint32(1) { + goto toobig + } + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**int8)(__ccgo_up(v54)) = Int8FromUint32(c) + **(**Tsize_t)(__ccgo_up(outb)) -= uint32(1) + goto _51 + _53: + ; + d = c + c = Uint32FromInt32(int32(4) * Int32FromUint8(totype)) + for { + if !(c < uint32(256)) { + break + } + if d == _legacy_map(tls, tomap, c) { + goto revout + } + goto _56 + _56: + ; + c = c + 1 + } + goto subst + _39: + ; + if c < uint32(128) { + goto revout + } + if c == uint32(0xa5) { + x = x + 1 + c = uint32('\\') + goto revout + } + if c == uint32(0x203e) { + x = x + 1 + c = uint32('~') + goto revout + } + if c-uint32(0xff61) <= Uint32FromInt32(Int32FromInt32(0xdf)-Int32FromInt32(0xa1)) { + c = c + Uint32FromInt32(Int32FromInt32(0xa1)-Int32FromInt32(0xff61)) + goto revout + } + c = _uni_to_jis(tls, c) + if !(c != 0) { + goto subst + } + if **(**Tsize_t)(__ccgo_up(outb)) < uint32(2) { + goto toobig + } + d = c % uint32(256) + c = c / uint32(256) + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + if c < uint32(95) { + v25 = int32(112) + } else { + v25 = int32(176) + } + **(**int8)(__ccgo_up(v54)) = Int8FromUint32((c+uint32(1))/uint32(2) + Uint32FromInt32(v25)) + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + if c%uint32(2) != 0 { + v62 = d + uint32(31) + d/uint32(96) + } else { + v62 = d + uint32(126) + } + **(**int8)(__ccgo_up(v54)) = Int8FromUint32(v62) + **(**Tsize_t)(__ccgo_up(outb)) -= uint32(2) + goto _51 + _40: + ; + if c < uint32(128) { + goto revout + } + if c-uint32(0xff61) <= Uint32FromInt32(Int32FromInt32(0xdf)-Int32FromInt32(0xa1)) { + c = c + Uint32FromInt32(Int32FromInt32(0x0e00)+Int32FromInt32(0x21)-Int32FromInt32(0xff61)) + } else { + c = _uni_to_jis(tls, c) + } + if !(c != 0) { + goto subst + } + if **(**Tsize_t)(__ccgo_up(outb)) < uint32(2) { + goto toobig + } + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**int8)(__ccgo_up(v54)) = Int8FromUint32(c/uint32(256) + uint32(0x80)) + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**int8)(__ccgo_up(v54)) = Int8FromUint32(c%uint32(256) + uint32(0x80)) + **(**Tsize_t)(__ccgo_up(outb)) -= uint32(2) + goto _51 + _41: + ; + if c < uint32(128) { + goto revout + } + if c-uint32(0xff61) <= Uint32FromInt32(Int32FromInt32(0xdf)-Int32FromInt32(0xa1)) || c == uint32(0xa5) || c == uint32(0x203e) { + if **(**Tsize_t)(__ccgo_up(outb)) < uint32(7) { + goto toobig + } + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**int8)(__ccgo_up(v54)) = int8('\033') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**int8)(__ccgo_up(v54)) = int8('(') + if c == uint32(0xa5) { + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**int8)(__ccgo_up(v54)) = int8('J') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**int8)(__ccgo_up(v54)) = int8('\\') + } else { + if c == uint32(0x203e) { + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**int8)(__ccgo_up(v54)) = int8('J') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**int8)(__ccgo_up(v54)) = int8('~') + } else { + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**int8)(__ccgo_up(v54)) = int8('I') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**int8)(__ccgo_up(v54)) = Int8FromUint32(c - uint32(0xff61) + uint32(0x21)) + } + } + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**int8)(__ccgo_up(v54)) = int8('\033') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**int8)(__ccgo_up(v54)) = int8('(') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**int8)(__ccgo_up(v54)) = int8('B') + **(**Tsize_t)(__ccgo_up(outb)) -= uint32(7) + goto _51 + } + c = _uni_to_jis(tls, c) + if !(c != 0) { + goto subst + } + if **(**Tsize_t)(__ccgo_up(outb)) < uint32(8) { + goto toobig + } + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**int8)(__ccgo_up(v54)) = int8('\033') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**int8)(__ccgo_up(v54)) = int8('$') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**int8)(__ccgo_up(v54)) = int8('B') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**int8)(__ccgo_up(v54)) = Int8FromUint32(c / uint32(256)) + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**int8)(__ccgo_up(v54)) = Int8FromUint32(c % uint32(256)) + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**int8)(__ccgo_up(v54)) = int8('\033') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**int8)(__ccgo_up(v54)) = int8('(') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**int8)(__ccgo_up(v54)) = int8('B') + **(**Tsize_t)(__ccgo_up(outb)) -= uint32(8) + goto _51 + _42: + ; + totype = uint8(UCS2BE) + _47: + ; + _46: + ; + _45: + ; + _44: + ; + _43: + ; + if c < uint32(0x10000) || Uint32FromInt32(Int32FromUint8(totype)-int32(UCS2BE)) < uint32(2) { + if c >= uint32(0x10000) { + c = uint32(0xFFFD) + } + if **(**Tsize_t)(__ccgo_up(outb)) < uint32(2) { + goto toobig + } + _put_16(tls, **(**uintptr)(__ccgo_up(out)), c, Int32FromUint8(totype)) + **(**uintptr)(__ccgo_up(out)) += uintptr(2) + **(**Tsize_t)(__ccgo_up(outb)) -= uint32(2) + goto _51 + } + if **(**Tsize_t)(__ccgo_up(outb)) < uint32(4) { + goto toobig + } + c = c - uint32(0x10000) + _put_16(tls, **(**uintptr)(__ccgo_up(out)), c>>int32(10)|uint32(0xd800), Int32FromUint8(totype)) + _put_16(tls, **(**uintptr)(__ccgo_up(out))+UintptrFromInt32(2), c&uint32(0x3ff)|uint32(0xdc00), Int32FromUint8(totype)) + **(**uintptr)(__ccgo_up(out)) += uintptr(4) + **(**Tsize_t)(__ccgo_up(outb)) -= uint32(4) + goto _51 + _48: + ; + totype = uint8(UTF_32BE) + _50: + ; + _49: + ; + if **(**Tsize_t)(__ccgo_up(outb)) < uint32(4) { + goto toobig + } + _put_32(tls, **(**uintptr)(__ccgo_up(out)), c, Int32FromUint8(totype)) + **(**uintptr)(__ccgo_up(out)) += uintptr(4) + **(**Tsize_t)(__ccgo_up(outb)) -= uint32(4) + goto _51 + _51: + ; + goto _1 + _1: + ; + **(**uintptr)(__ccgo_up(in)) += uintptr(l) + **(**Tsize_t)(__ccgo_up(inb)) -= l + } + **(**Tlocale_t)(__ccgo_up(ploc)) = loc + return x + goto ilseq +ilseq: + ; + err = int32(EILSEQ) + x = Uint32FromInt32(-Int32FromInt32(1)) + goto end + goto toobig +toobig: + ; + err = int32(E2BIG) + x = Uint32FromInt32(-Int32FromInt32(1)) + goto end + goto starved +starved: + ; + err = int32(EINVAL) + x = Uint32FromInt32(-Int32FromInt32(1)) + goto end +end: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = err + **(**Tlocale_t)(__ccgo_up(ploc)) = loc + return x +} + +func Xiconv_close(tls *TLS, cd Ticonv_t) (r int32) { + if __ccgo_strace { + trc("tls=%v cd=%v, (%v:)", tls, cd, origin(2)) + defer func() { trc("-> %v", r) }() + } + if !(uint32(cd)&Uint32FromInt32(1) != 0) { + Xfree(tls, cd) + } + return 0 +} + +var _c_time = [316]int8{'S', 'u', 'n', 0, 'M', 'o', 'n', 0, 'T', 'u', 'e', 0, 'W', 'e', 'd', 0, 'T', 'h', 'u', 0, 'F', 'r', 'i', 0, 'S', 'a', 't', 0, 'S', 'u', 'n', 'd', 'a', 'y', 0, 'M', 'o', 'n', 'd', 'a', 'y', 0, 'T', 'u', 'e', 's', 'd', 'a', 'y', 0, 'W', 'e', 'd', 'n', 'e', 's', 'd', 'a', 'y', 0, 'T', 'h', 'u', 'r', 's', 'd', 'a', 'y', 0, 'F', 'r', 'i', 'd', 'a', 'y', 0, 'S', 'a', 't', 'u', 'r', 'd', 'a', 'y', 0, 'J', 'a', 'n', 0, 'F', 'e', 'b', 0, 'M', 'a', 'r', 0, 'A', 'p', 'r', 0, 'M', 'a', 'y', 0, 'J', 'u', 'n', 0, 'J', 'u', 'l', 0, 'A', 'u', 'g', 0, 'S', 'e', 'p', 0, 'O', 'c', 't', 0, 'N', 'o', 'v', 0, 'D', 'e', 'c', 0, 'J', 'a', 'n', 'u', 'a', 'r', 'y', 0, 'F', 'e', 'b', 'r', 'u', 'a', 'r', 'y', 0, 'M', 'a', 'r', 'c', 'h', 0, 'A', 'p', 'r', 'i', 'l', 0, 'M', 'a', 'y', 0, 'J', 'u', 'n', 'e', 0, 'J', 'u', 'l', 'y', 0, 'A', 'u', 'g', 'u', 's', 't', 0, 'S', 'e', 'p', 't', 'e', 'm', 'b', 'e', 'r', 0, 'O', 'c', 't', 'o', 'b', 'e', 'r', 0, 'N', 'o', 'v', 'e', 'm', 'b', 'e', 'r', 0, 'D', 'e', 'c', 'e', 'm', 'b', 'e', 'r', 0, 'A', 'M', 0, 'P', 'M', 0, '%', 'a', ' ', '%', 'b', ' ', '%', 'e', ' ', '%', 'T', ' ', '%', 'Y', 0, '%', 'm', '/', '%', 'd', '/', '%', 'y', 0, '%', 'H', ':', '%', 'M', ':', '%', 'S', 0, '%', 'I', ':', '%', 'M', ':', '%', 'S', ' ', '%', 'p', 0, 0, 0, '%', 'm', '/', '%', 'd', '/', '%', 'y', 0, '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 0, '%', 'a', ' ', '%', 'b', ' ', '%', 'e', ' ', '%', 'T', ' ', '%', 'Y', 0, '%', 'H', ':', '%', 'M', ':', '%', 'S'} + +var _c_messages = [19]int8{'^', '[', 'y', 'Y', ']', 0, '^', '[', 'n', 'N', ']', 0, 'y', 'e', 's', 0, 'n', 'o'} +var _c_numeric = [3]int8{'.'} + +func X__nl_langinfo_l(tls *TLS, item Tnl_item, loc Tlocale_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v item=%v loc=%v, (%v:)", tls, item, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + var cat, idx int32 + var str, v1 uintptr + _, _, _, _ = cat, idx, str, v1 + cat = item >> int32(16) + idx = item & int32(65535) + if item == int32(CODESET) { + if **(**uintptr)(__ccgo_up(loc)) != 0 { + v1 = __ccgo_ts + 322 + } else { + v1 = __ccgo_ts + 441 + } + return v1 + } + /* _NL_LOCALE_NAME extension */ + if idx == int32(65535) && cat < int32(LC_ALL) { + if **(**uintptr)(__ccgo_up(loc + uintptr(cat)*4)) != 0 { + v1 = **(**uintptr)(__ccgo_up(loc + uintptr(cat)*4)) + 8 + } else { + v1 = __ccgo_ts + 447 + } + return v1 + } + switch cat { + case int32(LC_NUMERIC): + if idx > int32(1) { + return __ccgo_ts + } + str = uintptr(unsafe.Pointer(&_c_numeric)) + case int32(LC_TIME): + if idx > int32(0x31) { + return __ccgo_ts + } + str = uintptr(unsafe.Pointer(&_c_time)) + case int32(LC_MONETARY): + if idx > 0 { + return __ccgo_ts + } + str = __ccgo_ts + case int32(LC_MESSAGES): + if idx > int32(3) { + return __ccgo_ts + } + str = uintptr(unsafe.Pointer(&_c_messages)) + default: + return __ccgo_ts + } + for { + if !(idx != 0) { + break + } + for { + if !(**(**int8)(__ccgo_up(str)) != 0) { + break + } + goto _4 + _4: + ; + str = str + 1 + } + goto _3 + _3: + ; + idx = idx - 1 + str = str + 1 + } + if cat != int32(LC_NUMERIC) && **(**int8)(__ccgo_up(str)) != 0 { + str = X__lctrans(tls, str, **(**uintptr)(__ccgo_up(loc + uintptr(cat)*4))) + } + return str +} + +func X__nl_langinfo(tls *TLS, item Tnl_item) (r uintptr) { + if __ccgo_strace { + trc("tls=%v item=%v, (%v:)", tls, item, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__nl_langinfo_l(tls, item, (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale) +} + +func Xnl_langinfo(tls *TLS, item Tnl_item) (r uintptr) { + if __ccgo_strace { + trc("tls=%v item=%v, (%v:)", tls, item, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__nl_langinfo(tls, item) +} + +func Xnl_langinfo_l(tls *TLS, item Tnl_item, loc Tlocale_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v item=%v loc=%v, (%v:)", tls, item, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__nl_langinfo_l(tls, item, loc) +} + +func X__lctrans_impl(tls *TLS, msg uintptr, lm uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v msg=%v lm=%v, (%v:)", tls, msg, lm, origin(2)) + defer func() { trc("-> %v", r) }() + } + var trans, v1 uintptr + _, _ = trans, v1 + trans = uintptr(0) + if lm != 0 { + trans = X__mo_lookup(tls, (*t__locale_map)(unsafe.Pointer(lm)).Fmap1, (*t__locale_map)(unsafe.Pointer(lm)).Fmap_size, msg) + } + if trans != 0 { + v1 = trans + } else { + v1 = msg + } + return v1 +} + +var _envvars = [6][12]int8{ + 0: {'L', 'C', '_', 'C', 'T', 'Y', 'P', 'E'}, + 1: {'L', 'C', '_', 'N', 'U', 'M', 'E', 'R', 'I', 'C'}, + 2: {'L', 'C', '_', 'T', 'I', 'M', 'E'}, + 3: {'L', 'C', '_', 'C', 'O', 'L', 'L', 'A', 'T', 'E'}, + 4: {'L', 'C', '_', 'M', 'O', 'N', 'E', 'T', 'A', 'R', 'Y'}, + 5: {'L', 'C', '_', 'M', 'E', 'S', 'S', 'A', 'G', 'E', 'S'}, +} + +func X__get_locale(tls *TLS, cat int32, val uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v cat=%v val=%v, (%v:)", tls, cat, val, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(272) + defer tls.Free(272) + var builtin int32 + var l, n Tsize_t + var map1, new1, p, path, z, v1, v2, v4, v6 uintptr + var v3, v5, v7 bool + var _ /* buf at bp+0 */ [256]int8 + var _ /* map_size at bp+256 */ Tsize_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = builtin, l, map1, n, new1, p, path, z, v1, v2, v3, v4, v5, v6, v7 + new1 = uintptr(0) + path = uintptr(0) + if !(**(**int8)(__ccgo_up(val)) != 0) { + v1 = Xgetenv(tls, __ccgo_ts+449) + val = v1 + if v3 = v1 != 0 && **(**int8)(__ccgo_up(val)) != 0; !v3 { + v2 = Xgetenv(tls, uintptr(unsafe.Pointer(&_envvars))+uintptr(cat)*12) + val = v2 + } + if v5 = v3 || v2 != 0 && **(**int8)(__ccgo_up(val)) != 0; !v5 { + v4 = Xgetenv(tls, __ccgo_ts+336) + val = v4 + } + if v7 = v5 || v4 != 0 && **(**int8)(__ccgo_up(val)) != 0; !v7 { + v6 = __ccgo_ts + 456 + val = v6 + } + _ = v7 || v6 != 0 + } + /* Limit name length and forbid leading dot or any slashes. */ + n = uint32(0) + for { + if !(n < uint32(LOCALE_NAME_MAX) && **(**int8)(__ccgo_up(val + uintptr(n))) != 0 && int32(**(**int8)(__ccgo_up(val + uintptr(n)))) != int32('/')) { + break + } + goto _8 + _8: + ; + n = n + 1 + } + if int32(**(**int8)(__ccgo_up(val))) == int32('.') || **(**int8)(__ccgo_up(val + uintptr(n))) != 0 { + val = __ccgo_ts + 456 + } + builtin = BoolInt32(int32(**(**int8)(__ccgo_up(val))) == int32('C') && !(**(**int8)(__ccgo_up(val + 1)) != 0) || !(Xstrcmp(tls, val, __ccgo_ts+456) != 0) || !(Xstrcmp(tls, val, __ccgo_ts+464) != 0)) + if builtin != 0 { + if cat == LC_CTYPE && int32(**(**int8)(__ccgo_up(val + 1))) == int32('.') { + return uintptr(unsafe.Pointer(&X__c_dot_utf8)) + } + return uintptr(0) + } + p = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_loc_head))) + for { + if !(p != 0) { + break + } + if !(Xstrcmp(tls, val, p+8) != 0) { + return p + } + goto _9 + _9: + ; + p = (*t__locale_map)(unsafe.Pointer(p)).Fnext + } + if !(X__libc.Fsecure != 0) { + path = Xgetenv(tls, __ccgo_ts+470) + } + /* FIXME: add a default path? */ + if path != 0 { + for { + if !(**(**int8)(__ccgo_up(path)) != 0) { + break + } + z = X__strchrnul(tls, path, int32(':')) + l = Uint32FromInt32(int32(z) - int32(path)) + if l >= uint32(256)-n-uint32(2) { + goto _10 + } + Xmemcpy(tls, bp, path, l) + (**(**[256]int8)(__ccgo_up(bp)))[l] = int8('/') + Xmemcpy(tls, bp+uintptr(l)+uintptr(1), val, n) + (**(**[256]int8)(__ccgo_up(bp)))[l+uint32(1)+n] = 0 + map1 = X__map_file(tls, bp, bp+256) + if map1 != 0 { + new1 = Xmalloc(tls, uint32(36)) + if !(new1 != 0) { + X__munmap(tls, map1, **(**Tsize_t)(__ccgo_up(bp + 256))) + break + } + (*t__locale_map)(unsafe.Pointer(new1)).Fmap1 = map1 + (*t__locale_map)(unsafe.Pointer(new1)).Fmap_size = **(**Tsize_t)(__ccgo_up(bp + 256)) + Xmemcpy(tls, new1+8, val, n) + **(**int8)(__ccgo_up(new1 + 8 + uintptr(n))) = 0 + (*t__locale_map)(unsafe.Pointer(new1)).Fnext = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_loc_head))) + AtomicStorePUintptr(uintptr(unsafe.Pointer(&_loc_head)), new1) + break + } + goto _10 + _10: + ; + path = z + BoolUintptr(!!(**(**int8)(__ccgo_up(z)) != 0)) + } + } + /* If no locale definition was found, make a locale map + * object anyway to store the name, which is kept for the + * sake of being able to do message translations at the + * application level. */ + if v3 = !(new1 != 0); v3 { + v1 = Xmalloc(tls, uint32(36)) + new1 = v1 + } + if v3 && v1 != 0 { + (*t__locale_map)(unsafe.Pointer(new1)).Fmap1 = X__c_dot_utf8.Fmap1 + (*t__locale_map)(unsafe.Pointer(new1)).Fmap_size = X__c_dot_utf8.Fmap_size + Xmemcpy(tls, new1+8, val, n) + **(**int8)(__ccgo_up(new1 + 8 + uintptr(n))) = 0 + (*t__locale_map)(unsafe.Pointer(new1)).Fnext = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_loc_head))) + AtomicStorePUintptr(uintptr(unsafe.Pointer(&_loc_head)), new1) + } + /* For LC_CTYPE, never return a null pointer unless the + * requested name was "C" or "POSIX". */ + if !(new1 != 0) && cat == LC_CTYPE { + new1 = uintptr(unsafe.Pointer(&X__c_dot_utf8)) + } + return new1 +} + +var _loc_head uintptr + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +var _posix_lconv = Tlconv{ + Fdecimal_point: __ccgo_ts + 483, + Fthousands_sep: __ccgo_ts, + Fgrouping: __ccgo_ts, + Fint_curr_symbol: __ccgo_ts, + Fcurrency_symbol: __ccgo_ts, + Fmon_decimal_point: __ccgo_ts, + Fmon_thousands_sep: __ccgo_ts, + Fmon_grouping: __ccgo_ts, + Fpositive_sign: __ccgo_ts, + Fnegative_sign: __ccgo_ts, + Fint_frac_digits: Int8FromInt32(CHAR_MAX), + Ffrac_digits: Int8FromInt32(CHAR_MAX), + Fp_cs_precedes: Int8FromInt32(CHAR_MAX), + Fp_sep_by_space: Int8FromInt32(CHAR_MAX), + Fn_cs_precedes: Int8FromInt32(CHAR_MAX), + Fn_sep_by_space: Int8FromInt32(CHAR_MAX), + Fp_sign_posn: Int8FromInt32(CHAR_MAX), + Fn_sign_posn: Int8FromInt32(CHAR_MAX), + Fint_p_cs_precedes: Int8FromInt32(CHAR_MAX), + Fint_p_sep_by_space: Int8FromInt32(CHAR_MAX), + Fint_n_cs_precedes: Int8FromInt32(CHAR_MAX), + Fint_n_sep_by_space: Int8FromInt32(CHAR_MAX), + Fint_p_sign_posn: Int8FromInt32(CHAR_MAX), + Fint_n_sign_posn: Int8FromInt32(CHAR_MAX), +} + +func Xlocaleconv(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(unsafe.Pointer(&_posix_lconv)) +} + +var _default_locale_init_done int32 +var _default_locale t__locale_struct +var _default_ctype_locale t__locale_struct + +func X__loc_is_allocated(tls *TLS, loc Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v loc=%v, (%v:)", tls, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(loc != 0 && loc != uintptr(unsafe.Pointer(&X__c_locale)) && loc != uintptr(unsafe.Pointer(&X__c_dot_utf8_locale)) && loc != uintptr(unsafe.Pointer(&_default_locale)) && loc != uintptr(unsafe.Pointer(&_default_ctype_locale))) +} + +func _do_newlocale(tls *TLS, mask int32, name uintptr, loc Tlocale_t) (r Tlocale_t) { + bp := tls.Alloc(32) + defer tls.Free(32) + var i, i1 int32 + var v2, v3 uintptr + var v5 Tlocale_t + var _ /* tmp at bp+0 */ t__locale_struct + _, _, _, _, _ = i, i1, v2, v3, v5 + i = 0 + for { + if !(i < int32(LC_ALL)) { + break + } + if !(mask&(Int32FromInt32(1)< %v", r) }() + } + ___lock(tls, uintptr(unsafe.Pointer(&X__locale_lock))) + loc = _do_newlocale(tls, mask, name, loc) + ___unlock(tls, uintptr(unsafe.Pointer(&X__locale_lock))) + return loc +} + +func Xnewlocale(tls *TLS, mask int32, name uintptr, loc Tlocale_t) (r Tlocale_t) { + if __ccgo_strace { + trc("tls=%v mask=%v name=%v loc=%v, (%v:)", tls, mask, name, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__newlocale(tls, mask, name, loc) +} + +/* +grammar: + +Start = Expr ';' +Expr = Or | Or '?' Expr ':' Expr +Or = And | Or '||' And +And = Eq | And '&&' Eq +Eq = Rel | Eq '==' Rel | Eq '!=' Rel +Rel = Add | Rel '<=' Add | Rel '>=' Add | Rel '<' Add | Rel '>' Add +Add = Mul | Add '+' Mul | Add '-' Mul +Mul = Prim | Mul '*' Prim | Mul '/' Prim | Mul '%' Prim +Prim = '(' Expr ')' | '!' Prim | decimal | 'n' + +internals: + +recursive descent expression evaluator with stack depth limit. +for binary operators an operator-precedence parser is used. +eval* functions store the result of the parsed subexpression +and return a pointer to the next non-space character. +*/ + +type Tst = struct { + Fr uint32 + Fn uint32 + Fop int32 +} + +func _skipspace(tls *TLS, s uintptr) (r uintptr) { + var v1, v2 int32 + _, _ = v1, v2 + for { + v1 = int32(**(**int8)(__ccgo_up(s))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _3 + _3: + if !(v2 != 0) { + break + } + s = s + 1 + } + return s +} + +func _evalprim(tls *TLS, st uintptr, s uintptr, d int32) (r uintptr) { + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 int32 + var _ /* e at bp+0 */ uintptr + _ = v1 + d = d - 1 + v1 = d + if v1 < 0 { + return __ccgo_ts + } + s = _skipspace(tls, s) + if BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(s)))-uint32('0') < uint32(10)) != 0 { + (*Tst)(unsafe.Pointer(st)).Fr = Xstrtoul(tls, s, bp, int32(10)) + if **(**uintptr)(__ccgo_up(bp)) == s || (*Tst)(unsafe.Pointer(st)).Fr == Uint32FromInt32(-Int32FromInt32(1)) { + return __ccgo_ts + } + return _skipspace(tls, **(**uintptr)(__ccgo_up(bp))) + } + if int32(**(**int8)(__ccgo_up(s))) == int32('n') { + (*Tst)(unsafe.Pointer(st)).Fr = (*Tst)(unsafe.Pointer(st)).Fn + return _skipspace(tls, s+uintptr(1)) + } + if int32(**(**int8)(__ccgo_up(s))) == int32('(') { + s = _evalexpr(tls, st, s+uintptr(1), d) + if int32(**(**int8)(__ccgo_up(s))) != int32(')') { + return __ccgo_ts + } + return _skipspace(tls, s+uintptr(1)) + } + if int32(**(**int8)(__ccgo_up(s))) == int32('!') { + s = _evalprim(tls, st, s+uintptr(1), d) + (*Tst)(unsafe.Pointer(st)).Fr = BoolUint32(!((*Tst)(unsafe.Pointer(st)).Fr != 0)) + return s + } + return __ccgo_ts +} + +func _binop(tls *TLS, st uintptr, op int32, left uint32) (r int32) { + var a, b uint32 + _, _ = a, b + a = left + b = (*Tst)(unsafe.Pointer(st)).Fr + switch op { + case 0: + (*Tst)(unsafe.Pointer(st)).Fr = BoolUint32(a != 0 || b != 0) + return 0 + case int32(1): + (*Tst)(unsafe.Pointer(st)).Fr = BoolUint32(a != 0 && b != 0) + return 0 + case int32(2): + (*Tst)(unsafe.Pointer(st)).Fr = BoolUint32(a == b) + return 0 + case int32(3): + (*Tst)(unsafe.Pointer(st)).Fr = BoolUint32(a != b) + return 0 + case int32(4): + (*Tst)(unsafe.Pointer(st)).Fr = BoolUint32(a >= b) + return 0 + case int32(5): + (*Tst)(unsafe.Pointer(st)).Fr = BoolUint32(a <= b) + return 0 + case int32(6): + (*Tst)(unsafe.Pointer(st)).Fr = BoolUint32(a > b) + return 0 + case int32(7): + (*Tst)(unsafe.Pointer(st)).Fr = BoolUint32(a < b) + return 0 + case int32(8): + (*Tst)(unsafe.Pointer(st)).Fr = a + b + return 0 + case int32(9): + (*Tst)(unsafe.Pointer(st)).Fr = a - b + return 0 + case int32(10): + (*Tst)(unsafe.Pointer(st)).Fr = a * b + return 0 + case int32(11): + if b != 0 { + (*Tst)(unsafe.Pointer(st)).Fr = a % b + return 0 + } + return int32(1) + case int32(12): + if b != 0 { + (*Tst)(unsafe.Pointer(st)).Fr = a / b + return 0 + } + return int32(1) + } + return int32(1) +} + +func _parseop(tls *TLS, st uintptr, s uintptr) (r uintptr) { + var i int32 + _ = i + i = 0 + for { + if !(i < int32(11)) { + break + } + if int32(**(**int8)(__ccgo_up(s))) == int32(_opch[i]) { + /* note: >,< are accepted with or without = */ + if i < int32(6) && int32(**(**int8)(__ccgo_up(s + 1))) == int32(_opch2[i]) { + (*Tst)(unsafe.Pointer(st)).Fop = i + return s + uintptr(2) + } + if i >= int32(4) { + (*Tst)(unsafe.Pointer(st)).Fop = i + int32(2) + return s + uintptr(1) + } + break + } + goto _1 + _1: + ; + i = i + 1 + } + (*Tst)(unsafe.Pointer(st)).Fop = int32(13) + return s +} + +var _opch = [11]int8{'|', '&', '=', '!', '>', '<', '+', '-', '*', '%', '/'} + +var _opch2 = [6]int8{'|', '&', '=', '=', '=', '='} + +func _evalbinop(tls *TLS, st uintptr, s uintptr, minprec int32, d int32) (r uintptr) { + var left uint32 + var op int32 + _, _ = left, op + d = d - 1 + s = _evalprim(tls, st, s, d) + s = _parseop(tls, st, s) + for { + /* + st->r (left hand side value) and st->op are now set, + get the right hand side or back out if op has low prec, + if op was missing then prec[op]==0 + */ + op = (*Tst)(unsafe.Pointer(st)).Fop + if int32(_prec[op]) <= minprec { + return s + } + left = (*Tst)(unsafe.Pointer(st)).Fr + s = _evalbinop(tls, st, s, int32(_prec[op]), d) + if _binop(tls, st, op, left) != 0 { + return __ccgo_ts + } + goto _1 + _1: + } + return r +} + +var _prec = [14]int8{ + 0: int8(1), + 1: int8(2), + 2: int8(3), + 3: int8(3), + 4: int8(4), + 5: int8(4), + 6: int8(4), + 7: int8(4), + 8: int8(5), + 9: int8(5), + 10: int8(6), + 11: int8(6), + 12: int8(6), +} + +func _evalexpr(tls *TLS, st uintptr, s uintptr, d int32) (r uintptr) { + var a, b, v2 uint32 + var v1 int32 + _, _, _, _ = a, b, v1, v2 + d = d - 1 + v1 = d + if v1 < 0 { + return __ccgo_ts + } + s = _evalbinop(tls, st, s, 0, d) + if int32(**(**int8)(__ccgo_up(s))) != int32('?') { + return s + } + a = (*Tst)(unsafe.Pointer(st)).Fr + s = _evalexpr(tls, st, s+uintptr(1), d) + if int32(**(**int8)(__ccgo_up(s))) != int32(':') { + return __ccgo_ts + } + b = (*Tst)(unsafe.Pointer(st)).Fr + s = _evalexpr(tls, st, s+uintptr(1), d) + if a != 0 { + v2 = b + } else { + v2 = (*Tst)(unsafe.Pointer(st)).Fr + } + (*Tst)(unsafe.Pointer(st)).Fr = v2 + return s +} + +func X__pleval(tls *TLS, s uintptr, n uint32) (r uint32) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v, (%v:)", tls, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uint32 + var _ /* st at bp+0 */ Tst + _ = v1 + (**(**Tst)(__ccgo_up(bp))).Fn = n + s = _evalexpr(tls, bp, s, int32(100)) + if int32(**(**int8)(__ccgo_up(s))) == int32(';') { + v1 = (**(**Tst)(__ccgo_up(bp))).Fr + } else { + v1 = Uint32FromInt32(-Int32FromInt32(1)) + } + return v1 +} + +var _buf1 [144]int8 + +func Xsetlocale(tls *TLS, cat int32, name uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v cat=%v name=%v, (%v:)", tls, cat, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + var i, same int32 + var l Tsize_t + var lm, lm1, p, part1, ret, s, z, v3 uintptr + var _ /* part at bp+24 */ [24]int8 + var _ /* tmp_locale at bp+0 */ t__locale_struct + _, _, _, _, _, _, _, _, _, _, _ = i, l, lm, lm1, p, part1, ret, s, same, z, v3 + if Uint32FromInt32(cat) > uint32(LC_ALL) { + return uintptr(0) + } + ___lock(tls, uintptr(unsafe.Pointer(&X__locale_lock))) + /* For LC_ALL, setlocale is required to return a string which + * encodes the current setting for all categories. The format of + * this string is unspecified, and only the following code, which + * performs both the serialization and deserialization, depends + * on the format, so it can easily be changed if needed. */ + if cat == int32(LC_ALL) { + if name != 0 { + **(**[24]int8)(__ccgo_up(bp + 24)) = [24]int8{'C', '.', 'U', 'T', 'F', '-', '8'} + p = name + i = 0 + for { + if !(i < int32(LC_ALL)) { + break + } + z = X__strchrnul(tls, p, int32(';')) + if int32(z)-int32(p) <= int32(LOCALE_NAME_MAX) { + Xmemcpy(tls, bp+24, p, Uint32FromInt32(int32(z)-int32(p))) + (**(**[24]int8)(__ccgo_up(bp + 24)))[int32(z)-int32(p)] = 0 + if **(**int8)(__ccgo_up(z)) != 0 { + p = z + uintptr(1) + } + } + lm = X__get_locale(tls, i, bp+24) + if lm == uintptr(-Int32FromInt32(1)) { + ___unlock(tls, uintptr(unsafe.Pointer(&X__locale_lock))) + return uintptr(0) + } + **(**uintptr)(__ccgo_up(bp + uintptr(i)*4)) = lm + goto _1 + _1: + ; + i = i + 1 + } + X__libc.Fglobal_locale = **(**t__locale_struct)(__ccgo_up(bp)) + } + s = uintptr(unsafe.Pointer(&_buf1)) + same = 0 + i = 0 + for { + if !(i < int32(LC_ALL)) { + break + } + lm1 = **(**uintptr)(__ccgo_up(uintptr(unsafe.Pointer(&X__libc)) + 32 + uintptr(i)*4)) + if lm1 == **(**uintptr)(__ccgo_up(uintptr(unsafe.Pointer(&X__libc)) + 32)) { + same = same + 1 + } + if lm1 != 0 { + v3 = lm1 + 8 + } else { + v3 = __ccgo_ts + 447 + } + part1 = v3 + l = _strlen(tls, part1) + Xmemcpy(tls, s, part1, l) + **(**int8)(__ccgo_up(s + uintptr(l))) = int8(';') + s = s + uintptr(l+uint32(1)) + goto _2 + _2: + ; + i = i + 1 + } + s = s - 1 + v3 = s + **(**int8)(__ccgo_up(v3)) = 0 + ___unlock(tls, uintptr(unsafe.Pointer(&X__locale_lock))) + if same == int32(LC_ALL) { + v3 = part1 + } else { + v3 = uintptr(unsafe.Pointer(&_buf1)) + } + return v3 + } + if name != 0 { + lm = X__get_locale(tls, cat, name) + if lm == uintptr(-Int32FromInt32(1)) { + ___unlock(tls, uintptr(unsafe.Pointer(&X__locale_lock))) + return uintptr(0) + } + **(**uintptr)(__ccgo_up(uintptr(unsafe.Pointer(&X__libc)) + 32 + uintptr(cat)*4)) = lm + } else { + lm = **(**uintptr)(__ccgo_up(uintptr(unsafe.Pointer(&X__libc)) + 32 + uintptr(cat)*4)) + } + if lm != 0 { + v3 = lm + 8 + } else { + v3 = __ccgo_ts + 447 + } + ret = v3 + ___unlock(tls, uintptr(unsafe.Pointer(&X__locale_lock))) + return ret +} + +func X__strcoll_l(tls *TLS, l uintptr, r uintptr, loc Tlocale_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v loc=%v, (%v:)", tls, l, r, loc, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return Xstrcmp(tls, l, r) +} + +func Xstrcoll(tls *TLS, l uintptr, r uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v, (%v:)", tls, l, r, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return X__strcoll_l(tls, l, r, (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale) +} + +func Xstrcoll_l(tls *TLS, l uintptr, r uintptr, loc Tlocale_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v loc=%v, (%v:)", tls, l, r, loc, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return X__strcoll_l(tls, l, r, loc) +} + +func _vstrfmon_l(tls *TLS, s uintptr, n Tsize_t, loc Tlocale_t, fmt uintptr, ap Tva_list) (r Tssize_t) { + bp := tls.Alloc(32) + defer tls.Free(32) + var fill, fw, intl, left, lp, negpar, nogrp, nosym, rp, w int32 + var l Tsize_t + var s0, v5, v6 uintptr + var x float64 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = fill, fw, intl, l, left, lp, negpar, nogrp, nosym, rp, s0, w, x, v5, v6 + s0 = s +_3: + ; + if !(n != 0 && **(**int8)(__ccgo_up(fmt)) != 0) { + goto _1 + } + if !(int32(**(**int8)(__ccgo_up(fmt))) != int32('%')) { + goto _4 + } + goto literal +literal: + ; + v5 = s + s = s + 1 + v6 = fmt + fmt = fmt + 1 + **(**int8)(__ccgo_up(v5)) = **(**int8)(__ccgo_up(v6)) + n = n - 1 + goto _2 +_4: + ; + fmt = fmt + 1 + if int32(**(**int8)(__ccgo_up(fmt))) == int32('%') { + goto literal + } + fill = int32(' ') + nogrp = 0 + negpar = 0 + nosym = 0 + left = 0 + for { + switch int32(**(**int8)(__ccgo_up(fmt))) { + case int32('='): + fmt = fmt + 1 + v5 = fmt + fill = int32(**(**int8)(__ccgo_up(v5))) + goto _7 + case int32('^'): + nogrp = int32(1) + goto _7 + case int32('('): + negpar = int32(1) + fallthrough + case int32('+'): + goto _7 + case int32('!'): + nosym = int32(1) + goto _7 + case int32('-'): + left = int32(1) + goto _7 + } + break + goto _7 + _7: + ; + fmt = fmt + 1 + } + fw = 0 + for { + if !(BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(fmt)))-uint32('0') < uint32(10)) != 0) { + break + } + fw = int32(10)*fw + (int32(**(**int8)(__ccgo_up(fmt))) - int32('0')) + goto _9 + _9: + ; + fmt = fmt + 1 + } + lp = 0 + rp = int32(2) + if int32(**(**int8)(__ccgo_up(fmt))) == int32('#') { + lp = 0 + fmt = fmt + 1 + for { + if !(BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(fmt)))-uint32('0') < uint32(10)) != 0) { + break + } + lp = int32(10)*lp + (int32(**(**int8)(__ccgo_up(fmt))) - int32('0')) + goto _10 + _10: + ; + fmt = fmt + 1 + } + } + if int32(**(**int8)(__ccgo_up(fmt))) == int32('.') { + rp = 0 + fmt = fmt + 1 + for { + if !(BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(fmt)))-uint32('0') < uint32(10)) != 0) { + break + } + rp = int32(10)*rp + (int32(**(**int8)(__ccgo_up(fmt))) - int32('0')) + goto _11 + _11: + ; + fmt = fmt + 1 + } + } + v5 = fmt + fmt = fmt + 1 + intl = BoolInt32(int32(**(**int8)(__ccgo_up(v5))) == int32('i')) + w = lp + int32(1) + rp + if !(left != 0) && fw > w { + w = fw + } + x = VaFloat64(&ap) + l = Uint32FromInt32(Xsnprintf(tls, s, n, __ccgo_ts+485, VaList(bp+8, w, rp, x))) + if l >= n { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(E2BIG) + return -int32(1) + } + s = s + uintptr(l) + n = n - l + goto _2 +_2: + ; + goto _3 + goto _1 +_1: + ; + return int32(s) - int32(s0) +} + +func Xstrfmon_l(tls *TLS, s uintptr, n Tsize_t, loc Tlocale_t, fmt uintptr, va uintptr) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v loc=%v fmt=%v va=%v, (%v:)", tls, s, n, loc, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret Tssize_t + _, _ = ap, ret + ap = va + ret = _vstrfmon_l(tls, s, n, loc, fmt, ap) + _ = ap + return ret +} + +func Xstrfmon(tls *TLS, s uintptr, n Tsize_t, fmt uintptr, va uintptr) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v fmt=%v va=%v, (%v:)", tls, s, n, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret Tssize_t + _, _ = ap, ret + ap = va + ret = _vstrfmon_l(tls, s, n, (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale, fmt, ap) + _ = ap + return ret +} + +func Xstrtof_l(tls *TLS, s uintptr, p uintptr, l Tlocale_t) (r float32) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v l=%v, (%v:)", tls, s, p, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtof(tls, s, p) +} + +func Xstrtod_l(tls *TLS, s uintptr, p uintptr, l Tlocale_t) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v l=%v, (%v:)", tls, s, p, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtod(tls, s, p) +} + +func Xstrtold_l(tls *TLS, s uintptr, p uintptr, l Tlocale_t) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v l=%v, (%v:)", tls, s, p, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtold(tls, s, p) +} + +func X__strtod_l(tls *TLS, s uintptr, p uintptr, l Tlocale_t) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v l=%v, (%v:)", tls, s, p, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtod_l(tls, s, p, l) +} + +func X__strtof_l(tls *TLS, s uintptr, p uintptr, l Tlocale_t) (r float32) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v l=%v, (%v:)", tls, s, p, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtof_l(tls, s, p, l) +} + +func X__strtold_l(tls *TLS, s uintptr, p uintptr, l Tlocale_t) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v l=%v, (%v:)", tls, s, p, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtold_l(tls, s, p, l) +} + +// C documentation +// +// /* collate only by code points */ +func X__strxfrm_l(tls *TLS, dest uintptr, src uintptr, n Tsize_t, loc Tlocale_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v n=%v loc=%v, (%v:)", tls, dest, src, n, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l Tsize_t + _ = l + l = _strlen(tls, src) + if n > l { + Xstrcpy(tls, dest, src) + } + return l +} + +func Xstrxfrm(tls *TLS, dest uintptr, src uintptr, n Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v n=%v, (%v:)", tls, dest, src, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__strxfrm_l(tls, dest, src, n, (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale) +} + +// C documentation +// +// /* collate only by code points */ +func Xstrxfrm_l(tls *TLS, dest uintptr, src uintptr, n Tsize_t, loc Tlocale_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v n=%v loc=%v, (%v:)", tls, dest, src, n, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__strxfrm_l(tls, dest, src, n, loc) +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +var _current_domain uintptr + +func X__gettextdomain(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 uintptr + _ = v1 + if _current_domain != 0 { + v1 = _current_domain + } else { + v1 = __ccgo_ts + 350 + } + return v1 +} + +func Xtextdomain(tls *TLS, domainname uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v domainname=%v, (%v:)", tls, domainname, origin(2)) + defer func() { trc("-> %v", r) }() + } + var domlen Tsize_t + _ = domlen + if !(domainname != 0) { + return X__gettextdomain(tls) + } + domlen = _strlen(tls, domainname) + if domlen > uint32(NAME_MAX) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(0) + } + if !(_current_domain != 0) { + _current_domain = Xmalloc(tls, Uint32FromInt32(Int32FromInt32(NAME_MAX)+Int32FromInt32(1))) + if !(_current_domain != 0) { + return uintptr(0) + } + } + Xmemcpy(tls, _current_domain, domainname, domlen+uint32(1)) + return _current_domain +} + +func Xgettext(tls *TLS, msgid uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v msgid=%v, (%v:)", tls, msgid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xdgettext(tls, uintptr(0), msgid) +} + +func Xngettext(tls *TLS, msgid1 uintptr, msgid2 uintptr, n uint32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v msgid1=%v msgid2=%v n=%v, (%v:)", tls, msgid1, msgid2, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xdngettext(tls, uintptr(0), msgid1, msgid2, n) +} + +func X__uselocale(tls *TLS, new1 Tlocale_t) (r Tlocale_t) { + if __ccgo_strace { + trc("tls=%v new1=%v, (%v:)", tls, new1, origin(2)) + defer func() { trc("-> %v", r) }() + } + var global, old, v1 Tlocale_t + var self Tpthread_t + _, _, _, _ = global, old, self, v1 + self = uintptr(___get_tp(tls)) + old = (*t__pthread)(unsafe.Pointer(self)).Flocale + global = uintptr(unsafe.Pointer(&X__libc)) + 32 + if new1 != 0 { + if new1 == uintptr(-Int32FromInt32(1)) { + v1 = global + } else { + v1 = new1 + } + (*t__pthread)(unsafe.Pointer(self)).Flocale = v1 + } + if old == global { + v1 = uintptr(-Int32FromInt32(1)) + } else { + v1 = old + } + return v1 +} + +func Xuselocale(tls *TLS, new1 Tlocale_t) (r Tlocale_t) { + if __ccgo_strace { + trc("tls=%v new1=%v, (%v:)", tls, new1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__uselocale(tls, new1) +} + +// C documentation +// +// /* FIXME: stub */ +func X__wcscoll_l(tls *TLS, l uintptr, r uintptr, locale Tlocale_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v locale=%v, (%v:)", tls, l, r, locale, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return Xwcscmp(tls, l, r) +} + +func Xwcscoll(tls *TLS, l uintptr, r uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v, (%v:)", tls, l, r, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return X__wcscoll_l(tls, l, r, (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale) +} + +// C documentation +// +// /* FIXME: stub */ +func Xwcscoll_l(tls *TLS, l uintptr, r uintptr, locale Tlocale_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v locale=%v, (%v:)", tls, l, r, locale, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return X__wcscoll_l(tls, l, r, locale) +} + +// C documentation +// +// /* collate only by code points */ +func X__wcsxfrm_l(tls *TLS, dest uintptr, src uintptr, n Tsize_t, loc Tlocale_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v n=%v loc=%v, (%v:)", tls, dest, src, n, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l Tsize_t + _ = l + l = Xwcslen(tls, src) + if l < n { + Xwmemcpy(tls, dest, src, l+uint32(1)) + } else { + if n != 0 { + Xwmemcpy(tls, dest, src, n-uint32(1)) + **(**Twchar_t)(__ccgo_up(dest + uintptr(n-uint32(1))*4)) = 0 + } + } + return l +} + +func Xwcsxfrm(tls *TLS, dest uintptr, src uintptr, n Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v n=%v, (%v:)", tls, dest, src, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__wcsxfrm_l(tls, dest, src, n, (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale) +} + +// C documentation +// +// /* collate only by code points */ +func Xwcsxfrm_l(tls *TLS, dest uintptr, src uintptr, n Tsize_t, loc Tlocale_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v n=%v loc=%v, (%v:)", tls, dest, src, n, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__wcsxfrm_l(tls, dest, src, n, loc) +} + +func Xreallocarray(tls *TLS, ptr uintptr, m Tsize_t, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v ptr=%v m=%v n=%v, (%v:)", tls, ptr, m, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + if n != 0 && m > Uint32FromInt32(-Int32FromInt32(1))/n { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOMEM) + return uintptr(0) + } + return Xrealloc(tls, ptr, m*n) +} + +const LDBL_EPSILON2 = 0 +const LDBL_MAX2 = 0 +const LDBL_MIN2 = 0 + +var _C1 = float64(0.0416666666666666) /* 0x3FA55555, 0x5555554C */ +var _C2 = -Float64FromFloat64(0.001388888888887411) /* 0xBF56C16C, 0x16C15177 */ +var _C3 = float64(2.480158728947673e-05) /* 0x3EFA01A0, 0x19CB1590 */ +var _C4 = -Float64FromFloat64(2.7557314351390663e-07) /* 0xBE927E4F, 0x809C52AD */ +var _C5 = float64(2.087572321298175e-09) /* 0x3E21EE9E, 0xBDB4B1C4 */ +var _C6 = -Float64FromFloat64(1.1359647557788195e-11) /* 0xBDA8FAE9, 0xBE8838D4 */ + +func X__cos(tls *TLS, x float64, y float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var hz, r, w, z Tdouble_t + _, _, _, _ = hz, r, w, z + z = Tdouble_t(x * x) + w = Tdouble_t(z * z) + r = Tdouble_t(z*(_C1+Tdouble_t(z*(float64(_C2)+Tdouble_t(z*_C3))))) + Tdouble_t(Tdouble_t(w*w)*(float64(_C4)+Tdouble_t(z*(_C5+Tdouble_t(z*float64(_C6)))))) + hz = Tdouble_t(Float64FromFloat64(0.5) * z) + w = Float64FromFloat64(1) - hz + return float64(w + (Float64FromFloat64(1) - w - hz + (Tdouble_t(z*r) - Tdouble_t(x*y)))) +} + +// C documentation +// +// /* |cos(x) - c(x)| < 2**-34.1 (~[-5.37e-11, 5.295e-11]). */ + +var _C0 = -Float64FromFloat64(0.499999997251031) /* -0.499999997251031003120 */ +var _C11 = float64(0.04166662332373906) /* 0.0416666233237390631894 */ +var _C21 = -Float64FromFloat64(0.001388676377460993) /* -0.00138867637746099294692 */ +var _C31 = float64(2.439044879627741e-05) /* 0.0000243904487962774090654 */ + +func X__cosdf(tls *TLS, x float64) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, w, z Tdouble_t + _, _, _ = r, w, z + /* Try to optimize for parallel evaluation as in __tandf.c. */ + z = Tdouble_t(x * x) + w = Tdouble_t(z * z) + r = float64(_C21) + Tdouble_t(z*_C31) + return float32(Float64FromFloat64(1) + Tdouble_t(z*float64(_C0)) + Tdouble_t(w*_C11) + Tdouble_t(Tdouble_t(w*z)*r)) +} + +// C documentation +// +// /* k is such that k*ln2 has minimal relative error and x - kln2 > log(DBL_MIN) */ +var _k2 = int32(2043) +var _kln22 = float64(1416.0996898839683) + +// C documentation +// +// /* exp(x)/2 for x >= log(DBL_MAX), slightly better than 0.5*exp(x/2)*exp(x/2) */ +func X__expo2(tls *TLS, x float64, sign float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v sign=%v, (%v:)", tls, x, sign, origin(2)) + defer func() { trc("-> %v", r) }() + } + var scale float64 + var v1 Tuint64_t + _, _ = scale, v1 + /* note that k is odd and scale*scale overflows */ + v1 = uint64(Uint32FromInt32(Int32FromInt32(0x3ff)+_k2/Int32FromInt32(2))< log(FLT_MIN) */ +var _k3 = int32(235) +var _kln23 = Float32FromFloat32(162.88958740234375) + +// C documentation +// +// /* expf(x)/2 for x >= log(FLT_MAX), slightly better than 0.5f*expf(x/2)*expf(x/2) */ +func X__expo2f(tls *TLS, x float32, sign float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v sign=%v, (%v:)", tls, x, sign, origin(2)) + defer func() { trc("-> %v", r) }() + } + var scale float32 + var v1 Tuint32_t + _, _ = scale, v1 + /* note that k is odd and scale*scale overflows */ + v1 = Uint32FromInt32(Int32FromInt32(0x7f)+_k3/Int32FromInt32(2)) << int32(23) + scale = *(*float32)(unsafe.Pointer(&v1)) + /* exp(x - k ln2) * 2**(k-1) */ + /* in directed rounding correct sign before rounding or overflow is important */ + return float32(float32(Xexpf(tls, x-_kln23)*float32(sign*scale)) * scale) +} + +func X__fpclassify(tls *TLS, x float64) (r int32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e, v1 int32 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _ = e, v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + e = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + if !(e != 0) { + if *(*Tuint64_t)(unsafe.Pointer(bp))< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e, v1 int32 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _ = e, v1 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + e = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(23) & uint32(0xff)) + if !(e != 0) { + if *(*Tuint32_t)(unsafe.Pointer(bp))< %v", r) }() + } + return X__fpclassify(tls, x) +} + +const pio2_hi = 0 +const pio2_lo = 0 + +func X__math_divzero(tls *TLS, sign Tuint32_t) (r float64) { + if __ccgo_strace { + trc("tls=%v sign=%v, (%v:)", tls, sign, origin(2)) + defer func() { trc("-> %v", r) }() + } + var y, v1, v2 float64 + _, _, _ = y, v1, v2 + if sign != 0 { + v1 = -Float64FromFloat64(1) + } else { + v1 = float64(1) + } + y = v1 + v2 = y + goto _3 +_3: + return v2 / float64(0) +} + +func X__math_divzerof(tls *TLS, sign Tuint32_t) (r float32) { + if __ccgo_strace { + trc("tls=%v sign=%v, (%v:)", tls, sign, origin(2)) + defer func() { trc("-> %v", r) }() + } + var y, v1, v2 float32 + _, _, _ = y, v1, v2 + if sign != 0 { + v1 = -Float32FromFloat32(1) + } else { + v1 = Float32FromFloat32(1) + } + y = v1 + v2 = y + goto _3 +_3: + return v2 / Float32FromFloat32(0) +} + +func X__math_invalid(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return (x - x) / (x - x) +} + +func X__math_invalidf(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return (x - x) / (x - x) +} + +func X__math_oflow(tls *TLS, sign Tuint32_t) (r float64) { + if __ccgo_strace { + trc("tls=%v sign=%v, (%v:)", tls, sign, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__math_xflow(tls, sign, float64(3.105036184601418e+231)) +} + +func X__math_oflowf(tls *TLS, sign Tuint32_t) (r float32) { + if __ccgo_strace { + trc("tls=%v sign=%v, (%v:)", tls, sign, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__math_xflowf(tls, sign, Float32FromFloat32(1.5845632502852868e+29)) +} + +func X__math_uflow(tls *TLS, sign Tuint32_t) (r float64) { + if __ccgo_strace { + trc("tls=%v sign=%v, (%v:)", tls, sign, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__math_xflow(tls, sign, float64(1.2882297539194267e-231)) +} + +func X__math_uflowf(tls *TLS, sign Tuint32_t) (r float32) { + if __ccgo_strace { + trc("tls=%v sign=%v, (%v:)", tls, sign, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__math_xflowf(tls, sign, Float32FromFloat32(2.524354896707238e-29)) +} + +func X__math_xflow(tls *TLS, sign Tuint32_t, y2 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v sign=%v y2=%v, (%v:)", tls, sign, y2, origin(2)) + defer func() { trc("-> %v", r) }() + } + var y, y1, v1, v2, v4 float64 + _, _, _, _, _ = y, y1, v1, v2, v4 + if sign != 0 { + v1 = -y2 + } else { + v1 = y2 + } + y1 = v1 + v2 = y1 + goto _3 +_3: + y = float64(v2 * y2) + v4 = y + goto _5 +_5: + return v4 +} + +func X__math_xflowf(tls *TLS, sign Tuint32_t, y2 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v sign=%v y2=%v, (%v:)", tls, sign, y2, origin(2)) + defer func() { trc("-> %v", r) }() + } + var y, y1, v1, v2, v4 float32 + _, _, _, _, _ = y, y1, v1, v2, v4 + if sign != 0 { + v1 = -y2 + } else { + v1 = y2 + } + y1 = v1 + v2 = y1 + goto _3 +_3: + y = float32(v2 * y2) + v4 = y + goto _5 +_5: + return v4 +} + +const DBL_EPSILON1 = 2.220446049250313e-16 +const EPS = 0 + +// C documentation +// +// /* +// * invpio2: 53 bits of 2/pi +// * pio2_1: first 33 bit of pi/2 +// * pio2_1t: pi/2 - pio2_1 +// * pio2_2: second 33 bit of pi/2 +// * pio2_2t: pi/2 - (pio2_1+pio2_2) +// * pio2_3: third 33 bit of pi/2 +// * pio2_3t: pi/2 - (pio2_1+pio2_2+pio2_3) +// */ + +var _toint = Float64FromFloat64(1.5) / Float64FromFloat64(2.220446049250313e-16) +var _pio4 = float64(0.7853981633974483) +var _invpio2 = float64(0.6366197723675814) /* 0x3FE45F30, 0x6DC9C883 */ +var _pio2_1 = float64(1.5707963267341256) /* 0x3FF921FB, 0x54400000 */ +var _pio2_1t = float64(6.077100506506192e-11) /* 0x3DD0B461, 0x1A626331 */ +var _pio2_2 = float64(6.077100506303966e-11) /* 0x3DD0B461, 0x1A600000 */ +var _pio2_2t = float64(2.0222662487959506e-21) /* 0x3BA3198A, 0x2E037073 */ +var _pio2_3 = float64(2.0222662487111665e-21) /* 0x3BA3198A, 0x2E000000 */ +var _pio2_3t = float64(8.4784276603689e-32) /* 0x397B839A, 0x252049C1 */ + +// C documentation +// +// /* caller must handle the case when reduction is not needed: |x| ~<= pi/4 */ +func X__rem_pio2(tls *TLS, x float64, y uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + var ex, ey, i, n, sign int32 + var fn, r, t, w, z Tdouble_t + var ix Tuint32_t + var v2 float64 + var _ /* tx at bp+8 */ [3]float64 + var _ /* ty at bp+32 */ [2]float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _, _, _, _, _, _ = ex, ey, fn, i, ix, n, r, sign, t, w, z, v2 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + sign = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(63)) + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32) & uint64(0x7fffffff)) + if ix <= uint32(0x400f6a7a) { /* |x| ~<= 5pi/4 */ + if ix&uint32(0xfffff) == uint32(0x921fb) { /* |x| ~= pi/2 or 2pi/2 */ + goto medium + } /* cancellation -- use medium case */ + if ix <= uint32(0x4002d97c) { /* |x| ~<= 3pi/4 */ + if !(sign != 0) { + z = x - _pio2_1 /* one round good to 85 bits */ + **(**float64)(__ccgo_up(y)) = z - _pio2_1t + **(**float64)(__ccgo_up(y + 1*8)) = z - float64(**(**float64)(__ccgo_up(y))) - _pio2_1t + return int32(1) + } else { + z = x + _pio2_1 + **(**float64)(__ccgo_up(y)) = z + _pio2_1t + **(**float64)(__ccgo_up(y + 1*8)) = z - float64(**(**float64)(__ccgo_up(y))) + _pio2_1t + return -int32(1) + } + } else { + if !(sign != 0) { + z = x - float64(Float64FromInt32(2)*_pio2_1) + **(**float64)(__ccgo_up(y)) = z - Tdouble_t(Float64FromInt32(2)*_pio2_1t) + **(**float64)(__ccgo_up(y + 1*8)) = z - float64(**(**float64)(__ccgo_up(y))) - Tdouble_t(Float64FromInt32(2)*_pio2_1t) + return int32(2) + } else { + z = x + float64(Float64FromInt32(2)*_pio2_1) + **(**float64)(__ccgo_up(y)) = z + Tdouble_t(Float64FromInt32(2)*_pio2_1t) + **(**float64)(__ccgo_up(y + 1*8)) = z - float64(**(**float64)(__ccgo_up(y))) + Tdouble_t(Float64FromInt32(2)*_pio2_1t) + return -int32(2) + } + } + } + if ix <= uint32(0x401c463b) { /* |x| ~<= 9pi/4 */ + if ix <= uint32(0x4015fdbc) { /* |x| ~<= 7pi/4 */ + if ix == uint32(0x4012d97c) { /* |x| ~= 3pi/2 */ + goto medium + } + if !(sign != 0) { + z = x - float64(Float64FromInt32(3)*_pio2_1) + **(**float64)(__ccgo_up(y)) = z - Tdouble_t(Float64FromInt32(3)*_pio2_1t) + **(**float64)(__ccgo_up(y + 1*8)) = z - float64(**(**float64)(__ccgo_up(y))) - Tdouble_t(Float64FromInt32(3)*_pio2_1t) + return int32(3) + } else { + z = x + float64(Float64FromInt32(3)*_pio2_1) + **(**float64)(__ccgo_up(y)) = z + Tdouble_t(Float64FromInt32(3)*_pio2_1t) + **(**float64)(__ccgo_up(y + 1*8)) = z - float64(**(**float64)(__ccgo_up(y))) + Tdouble_t(Float64FromInt32(3)*_pio2_1t) + return -int32(3) + } + } else { + if ix == uint32(0x401921fb) { /* |x| ~= 4pi/2 */ + goto medium + } + if !(sign != 0) { + z = x - float64(Float64FromInt32(4)*_pio2_1) + **(**float64)(__ccgo_up(y)) = z - Tdouble_t(Float64FromInt32(4)*_pio2_1t) + **(**float64)(__ccgo_up(y + 1*8)) = z - float64(**(**float64)(__ccgo_up(y))) - Tdouble_t(Float64FromInt32(4)*_pio2_1t) + return int32(4) + } else { + z = x + float64(Float64FromInt32(4)*_pio2_1) + **(**float64)(__ccgo_up(y)) = z + Tdouble_t(Float64FromInt32(4)*_pio2_1t) + **(**float64)(__ccgo_up(y + 1*8)) = z - float64(**(**float64)(__ccgo_up(y))) + Tdouble_t(Float64FromInt32(4)*_pio2_1t) + return -int32(4) + } + } + } + if !(ix < uint32(0x413921fb)) { + goto _1 + } /* |x| ~< 2^20*(pi/2), medium size */ + goto medium +medium: + ; + /* rint(x/(pi/2)) */ + fn = Tdouble_t(x*_invpio2) + float64(_toint) - float64(_toint) + n = int32(fn) + r = x - Tdouble_t(fn*_pio2_1) + w = Tdouble_t(fn * _pio2_1t) /* 1st round, good to 85 bits */ + /* Matters with directed rounding. */ + if r-w < -_pio4 { + n = n - 1 + fn = fn - 1 + r = x - Tdouble_t(fn*_pio2_1) + w = Tdouble_t(fn * _pio2_1t) + } else { + if r-w > _pio4 { + n = n + 1 + fn = fn + 1 + r = x - Tdouble_t(fn*_pio2_1) + w = Tdouble_t(fn * _pio2_1t) + } + } + **(**float64)(__ccgo_up(y)) = r - w + *(*float64)(unsafe.Pointer(bp)) = **(**float64)(__ccgo_up(y)) + ey = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + ex = Int32FromUint32(ix >> int32(20)) + if ex-ey > int32(16) { /* 2nd round, good to 118 bits */ + t = r + w = Tdouble_t(fn * _pio2_2) + r = t - w + w = Tdouble_t(fn*_pio2_2t) - (t - r - w) + **(**float64)(__ccgo_up(y)) = r - w + *(*float64)(unsafe.Pointer(bp)) = **(**float64)(__ccgo_up(y)) + ey = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + if ex-ey > int32(49) { /* 3rd round, good to 151 bits, covers all cases */ + t = r + w = Tdouble_t(fn * _pio2_3) + r = t - w + w = Tdouble_t(fn*_pio2_3t) - (t - r - w) + **(**float64)(__ccgo_up(y)) = r - w + } + } + **(**float64)(__ccgo_up(y + 1*8)) = r - float64(**(**float64)(__ccgo_up(y))) - w + return n +_1: + ; + /* + * all other (large) arguments + */ + if ix >= uint32(0x7ff00000) { /* x is inf or NaN */ + v2 = x - x + **(**float64)(__ccgo_up(y + 1*8)) = v2 + **(**float64)(__ccgo_up(y)) = v2 + return 0 + } + /* set z = scalbn(|x|,-ilogb(x)+23) */ + *(*float64)(unsafe.Pointer(bp)) = x + *(*Tuint64_t)(unsafe.Pointer(bp)) &= Uint64FromInt32(-Int32FromInt32(1)) >> Int32FromInt32(12) + *(*Tuint64_t)(unsafe.Pointer(bp)) |= Uint64FromInt32(Int32FromInt32(0x3ff)+Int32FromInt32(23)) << Int32FromInt32(52) + z = *(*float64)(unsafe.Pointer(bp)) + i = 0 + for { + if !(i < int32(2)) { + break + } + (**(**[3]float64)(__ccgo_up(bp + 8)))[i] = float64(int32(z)) + z = Tdouble_t((z - (**(**[3]float64)(__ccgo_up(bp + 8)))[i]) * Float64FromFloat64(1.6777216e+07)) + goto _3 + _3: + ; + i = i + 1 + } + (**(**[3]float64)(__ccgo_up(bp + 8)))[i] = z + /* skip zero terms, first term is non-zero */ + for (**(**[3]float64)(__ccgo_up(bp + 8)))[i] == float64(0) { + i = i - 1 + } + n = X__rem_pio2_large(tls, bp+8, bp+32, Int32FromUint32(ix>>Int32FromInt32(20))-(Int32FromInt32(0x3ff)+Int32FromInt32(23)), i+int32(1), int32(1)) + if sign != 0 { + **(**float64)(__ccgo_up(y)) = -(**(**[2]float64)(__ccgo_up(bp + 32)))[0] + **(**float64)(__ccgo_up(y + 1*8)) = -(**(**[2]float64)(__ccgo_up(bp + 32)))[int32(1)] + return -n + } + **(**float64)(__ccgo_up(y)) = (**(**[2]float64)(__ccgo_up(bp + 32)))[0] + **(**float64)(__ccgo_up(y + 1*8)) = (**(**[2]float64)(__ccgo_up(bp + 32)))[int32(1)] + return n +} + +const DBL_EPSILON2 = 0 + +var _init_jk = [4]int32{ + 0: int32(3), + 1: int32(4), + 2: int32(4), + 3: int32(6), +} /* initial value for jk */ + +// C documentation +// +// /* +// * Table of constants for 2/pi, 396 Hex digits (476 decimal) of 2/pi +// * +// * integer array, contains the (24*i)-th to (24*i+23)-th +// * bit of 2/pi after binary point. The corresponding +// * floating value is +// * +// * ipio2[i] * 2^(-24(i+1)). +// * +// * NB: This table must have at least (e0-3)/24 + jk terms. +// * For quad precision (e0 <= 16360, jk = 6), this is 686. +// */ +var _ipio2 = [66]Tint32_t{ + 0: int32(0xA2F983), + 1: int32(0x6E4E44), + 2: int32(0x1529FC), + 3: int32(0x2757D1), + 4: int32(0xF534DD), + 5: int32(0xC0DB62), + 6: int32(0x95993C), + 7: int32(0x439041), + 8: int32(0xFE5163), + 9: int32(0xABDEBB), + 10: int32(0xC561B7), + 11: int32(0x246E3A), + 12: int32(0x424DD2), + 13: int32(0xE00649), + 14: int32(0x2EEA09), + 15: int32(0xD1921C), + 16: int32(0xFE1DEB), + 17: int32(0x1CB129), + 18: int32(0xA73EE8), + 19: int32(0x8235F5), + 20: int32(0x2EBB44), + 21: int32(0x84E99C), + 22: int32(0x7026B4), + 23: int32(0x5F7E41), + 24: int32(0x3991D6), + 25: int32(0x398353), + 26: int32(0x39F49C), + 27: int32(0x845F8B), + 28: int32(0xBDF928), + 29: int32(0x3B1FF8), + 30: int32(0x97FFDE), + 31: int32(0x05980F), + 32: int32(0xEF2F11), + 33: int32(0x8B5A0A), + 34: int32(0x6D1F6D), + 35: int32(0x367ECF), + 36: int32(0x27CB09), + 37: int32(0xB74F46), + 38: int32(0x3F669E), + 39: int32(0x5FEA2D), + 40: int32(0x7527BA), + 41: int32(0xC7EBE5), + 42: int32(0xF17B3D), + 43: int32(0x0739F7), + 44: int32(0x8A5292), + 45: int32(0xEA6BFB), + 46: int32(0x5FB11F), + 47: int32(0x8D5D08), + 48: int32(0x560330), + 49: int32(0x46FC7B), + 50: int32(0x6BABF0), + 51: int32(0xCFBC20), + 52: int32(0x9AF436), + 53: int32(0x1DA9E3), + 54: int32(0x91615E), + 55: int32(0xE61B08), + 56: int32(0x659985), + 57: int32(0x5F14A0), + 58: int32(0x68408D), + 59: int32(0xFFD880), + 60: int32(0x4D7327), + 61: int32(0x310606), + 62: int32(0x1556CA), + 63: int32(0x73A8C9), + 64: int32(0x60E27B), + 65: int32(0xC08C6B), +} + +var _PIo2 = [8]float64{ + 0: float64(1.570796251296997), + 1: float64(7.549789415861596e-08), + 2: float64(5.390302529957765e-15), + 3: float64(3.282003415807913e-22), + 4: float64(1.270655753080676e-29), + 5: float64(1.2293330898111133e-36), + 6: float64(2.7337005381646456e-44), + 7: float64(2.1674168387780482e-51), +} + +func X__rem_pio2_large(tls *TLS, x uintptr, y uintptr, e0 int32, nx int32, prec int32) (r int32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v e0=%v nx=%v prec=%v, (%v:)", tls, x, y, e0, nx, prec, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(240) + defer tls.Free(240) + var carry, i, ih, j, jk, jp, jv, jx, jz, k, m, n, q0 Tint32_t + var f, q [20]float64 + var fw, z, v2 float64 + var _ /* fq at bp+80 */ [20]float64 + var _ /* iq at bp+0 */ [20]Tint32_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = carry, f, fw, i, ih, j, jk, jp, jv, jx, jz, k, m, n, q, q0, z, v2 + /* initialize jk*/ + jk = _init_jk[prec] + jp = jk + /* determine jx,jv,q0, note that 3>q0 */ + jx = nx - int32(1) + jv = (e0 - int32(3)) / int32(24) + if jv < 0 { + jv = 0 + } + q0 = e0 - int32(24)*(jv+int32(1)) + /* set up f[0] to f[jx+jk] where f[jx+jk] = ipio2[jv+jk] */ + j = jv - jx + m = jx + jk + i = 0 + for { + if !(i <= m) { + break + } + if j < 0 { + v2 = float64(0) + } else { + v2 = float64(_ipio2[j]) + } + f[i] = v2 + goto _1 + _1: + ; + i = i + 1 + j = j + 1 + } + /* compute q[0],q[1],...q[jk] */ + i = 0 + for { + if !(i <= jk) { + break + } + j = 0 + fw = Float64FromFloat64(0) + for { + if !(j <= jx) { + break + } + fw = fw + float64(**(**float64)(__ccgo_up(x + uintptr(j)*8))*f[jx+i-j]) + goto _4 + _4: + ; + j = j + 1 + } + q[i] = fw + goto _3 + _3: + ; + i = i + 1 + } + jz = jk + goto recompute +recompute: + ; + /* distill q[] into iq[] reversingly */ + i = 0 + j = jz + z = q[jz] + for { + if !(j > 0) { + break + } + fw = float64(int32(float64(Float64FromFloat64(5.960464477539063e-08) * z))) + (**(**[20]Tint32_t)(__ccgo_up(bp)))[i] = int32(z - float64(Float64FromFloat64(1.6777216e+07)*fw)) + z = q[j-int32(1)] + fw + goto _5 + _5: + ; + i = i + 1 + j = j - 1 + } + /* compute n */ + z = Xscalbn(tls, z, q0) /* actual value of z */ + z = z - float64(float64(8)*Xfloor(tls, float64(z*float64(0.125)))) /* trim off integer >= 8 */ + n = int32(z) + z = z - float64(n) + ih = 0 + if q0 > 0 { /* need iq[jz-1] to determine n */ + i = (**(**[20]Tint32_t)(__ccgo_up(bp)))[jz-int32(1)] >> (int32(24) - q0) + n = n + i + **(**Tint32_t)(__ccgo_up(bp + uintptr(jz-int32(1))*4)) -= i << (int32(24) - q0) + ih = (**(**[20]Tint32_t)(__ccgo_up(bp)))[jz-int32(1)] >> (int32(23) - q0) + } else { + if q0 == 0 { + ih = (**(**[20]Tint32_t)(__ccgo_up(bp)))[jz-int32(1)] >> int32(23) + } else { + if z >= float64(0.5) { + ih = int32(2) + } + } + } + if ih > 0 { /* q > 0.5 */ + n = n + int32(1) + carry = 0 + i = 0 + for { + if !(i < jz) { + break + } /* compute 1-q */ + j = (**(**[20]Tint32_t)(__ccgo_up(bp)))[i] + if carry == 0 { + if j != 0 { + carry = int32(1) + (**(**[20]Tint32_t)(__ccgo_up(bp)))[i] = int32(0x1000000) - j + } + } else { + (**(**[20]Tint32_t)(__ccgo_up(bp)))[i] = int32(0xffffff) - j + } + goto _6 + _6: + ; + i = i + 1 + } + if q0 > 0 { /* rare case: chance is 1 in 12 */ + switch q0 { + case int32(1): + **(**Tint32_t)(__ccgo_up(bp + uintptr(jz-int32(1))*4)) &= int32(0x7fffff) + case int32(2): + **(**Tint32_t)(__ccgo_up(bp + uintptr(jz-int32(1))*4)) &= int32(0x3fffff) + break + } + } + if ih == int32(2) { + z = float64(1) - z + if carry != 0 { + z = z - Xscalbn(tls, float64(1), q0) + } + } + } + /* check if recomputation is needed */ + if z == float64(0) { + j = 0 + i = jz - int32(1) + for { + if !(i >= jk) { + break + } + j = j | (**(**[20]Tint32_t)(__ccgo_up(bp)))[i] + goto _7 + _7: + ; + i = i - 1 + } + if j == 0 { /* need recomputation */ + k = int32(1) + for { + if !((**(**[20]Tint32_t)(__ccgo_up(bp)))[jk-k] == 0) { + break + } + goto _8 + _8: + ; + k = k + 1 + } /* k = no. of terms needed */ + i = jz + int32(1) + for { + if !(i <= jz+k) { + break + } /* add q[jz+1] to q[jz+k] */ + f[jx+i] = float64(_ipio2[jv+i]) + j = 0 + fw = Float64FromFloat64(0) + for { + if !(j <= jx) { + break + } + fw = fw + float64(**(**float64)(__ccgo_up(x + uintptr(j)*8))*f[jx+i-j]) + goto _10 + _10: + ; + j = j + 1 + } + q[i] = fw + goto _9 + _9: + ; + i = i + 1 + } + jz = jz + k + goto recompute + } + } + /* chop off zero terms */ + if z == float64(0) { + jz = jz - int32(1) + q0 = q0 - int32(24) + for (**(**[20]Tint32_t)(__ccgo_up(bp)))[jz] == 0 { + jz = jz - 1 + q0 = q0 - int32(24) + } + } else { /* break z into 24-bit if necessary */ + z = Xscalbn(tls, z, -q0) + if z >= float64(1.6777216e+07) { + fw = float64(int32(float64(Float64FromFloat64(5.960464477539063e-08) * z))) + (**(**[20]Tint32_t)(__ccgo_up(bp)))[jz] = int32(z - float64(Float64FromFloat64(1.6777216e+07)*fw)) + jz = jz + int32(1) + q0 = q0 + int32(24) + (**(**[20]Tint32_t)(__ccgo_up(bp)))[jz] = int32(fw) + } else { + (**(**[20]Tint32_t)(__ccgo_up(bp)))[jz] = int32(z) + } + } + /* convert integer "bit" chunk to floating-point value */ + fw = Xscalbn(tls, float64(1), q0) + i = jz + for { + if !(i >= 0) { + break + } + q[i] = float64(fw * float64((**(**[20]Tint32_t)(__ccgo_up(bp)))[i])) + fw = fw * float64(5.960464477539063e-08) + goto _11 + _11: + ; + i = i - 1 + } + /* compute PIo2[0,...,jp]*q[jz,...,0] */ + i = jz + for { + if !(i >= 0) { + break + } + fw = float64(0) + k = Int32FromInt32(0) + for { + if !(k <= jp && k <= jz-i) { + break + } + fw = fw + float64(_PIo2[k]*q[i+k]) + goto _13 + _13: + ; + k = k + 1 + } + (**(**[20]float64)(__ccgo_up(bp + 80)))[jz-i] = fw + goto _12 + _12: + ; + i = i - 1 + } + /* compress fq[] into y[] */ + switch prec { + case 0: + goto _14 + case int32(2): + goto _15 + case int32(1): + goto _16 + case int32(3): + goto _17 + } + goto _18 +_14: + ; + fw = float64(0) + i = jz + for { + if !(i >= 0) { + break + } + fw = fw + (**(**[20]float64)(__ccgo_up(bp + 80)))[i] + goto _19 + _19: + ; + i = i - 1 + } + if ih == 0 { + v2 = fw + } else { + v2 = -fw + } + **(**float64)(__ccgo_up(y)) = v2 + goto _18 +_16: + ; +_15: + ; + fw = float64(0) + i = jz + for { + if !(i >= 0) { + break + } + fw = fw + (**(**[20]float64)(__ccgo_up(bp + 80)))[i] + goto _21 + _21: + ; + i = i - 1 + } + // TODO: drop excess precision here once double_t is used + fw = fw + if ih == 0 { + v2 = fw + } else { + v2 = -fw + } + **(**float64)(__ccgo_up(y)) = v2 + fw = (**(**[20]float64)(__ccgo_up(bp + 80)))[0] - fw + i = int32(1) + for { + if !(i <= jz) { + break + } + fw = fw + (**(**[20]float64)(__ccgo_up(bp + 80)))[i] + goto _23 + _23: + ; + i = i + 1 + } + if ih == 0 { + v2 = fw + } else { + v2 = -fw + } + **(**float64)(__ccgo_up(y + 1*8)) = v2 + goto _18 +_17: + ; /* painful */ + i = jz +_27: + ; + if !(i > 0) { + goto _25 + } + fw = (**(**[20]float64)(__ccgo_up(bp + 80)))[i-int32(1)] + (**(**[20]float64)(__ccgo_up(bp + 80)))[i] + **(**float64)(__ccgo_up(bp + 80 + uintptr(i)*8)) += (**(**[20]float64)(__ccgo_up(bp + 80)))[i-int32(1)] - fw + (**(**[20]float64)(__ccgo_up(bp + 80)))[i-int32(1)] = fw + goto _26 +_26: + ; + i = i - 1 + goto _27 + goto _25 +_25: + ; + i = jz + for { + if !(i > int32(1)) { + break + } + fw = (**(**[20]float64)(__ccgo_up(bp + 80)))[i-int32(1)] + (**(**[20]float64)(__ccgo_up(bp + 80)))[i] + **(**float64)(__ccgo_up(bp + 80 + uintptr(i)*8)) += (**(**[20]float64)(__ccgo_up(bp + 80)))[i-int32(1)] - fw + (**(**[20]float64)(__ccgo_up(bp + 80)))[i-int32(1)] = fw + goto _28 + _28: + ; + i = i - 1 + } + fw = float64(0) + i = jz + for { + if !(i >= int32(2)) { + break + } + fw = fw + (**(**[20]float64)(__ccgo_up(bp + 80)))[i] + goto _29 + _29: + ; + i = i - 1 + } + if ih == 0 { + **(**float64)(__ccgo_up(y)) = (**(**[20]float64)(__ccgo_up(bp + 80)))[0] + **(**float64)(__ccgo_up(y + 1*8)) = (**(**[20]float64)(__ccgo_up(bp + 80)))[int32(1)] + **(**float64)(__ccgo_up(y + 2*8)) = fw + } else { + **(**float64)(__ccgo_up(y)) = -(**(**[20]float64)(__ccgo_up(bp + 80)))[0] + **(**float64)(__ccgo_up(y + 1*8)) = -(**(**[20]float64)(__ccgo_up(bp + 80)))[int32(1)] + **(**float64)(__ccgo_up(y + 2*8)) = -fw + } +_18: + ; + return n & int32(7) +} + +const DBL_EPSILON3 = 2.220446049250313e-16 + +// C documentation +// +// /* +// * invpio2: 53 bits of 2/pi +// * pio2_1: first 25 bits of pi/2 +// * pio2_1t: pi/2 - pio2_1 +// */ + +var _toint1 = Float64FromFloat64(1.5) / Float64FromFloat64(2.220446049250313e-16) +var _pio41 = float64(0.7853981852531433) +var _invpio21 = float64(0.6366197723675814) /* 0x3FE45F30, 0x6DC9C883 */ +var _pio2_11 = float64(1.5707963109016418) /* 0x3FF921FB, 0x50000000 */ +var _pio2_1t1 = float64(1.5893254773528196e-08) /* 0x3E5110b4, 0x611A6263 */ + +func X__rem_pio2f(tls *TLS, x float32, y uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var e0, n, sign int32 + var fn Tdouble_t + var ix Tuint32_t + var _ /* tx at bp+8 */ [1]float64 + var _ /* ty at bp+16 */ [1]float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _ = e0, fn, ix, n, sign + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + ix = *(*Tuint32_t)(unsafe.Pointer(bp)) & uint32(0x7fffffff) + /* 25+53 bit pi is good enough for medium size */ + if ix < uint32(0x4dc90fdb) { /* |x| ~< 2^28*(pi/2), medium size */ + /* Use a specialized rint() to get fn. */ + fn = Tdouble_t(float64(x)*_invpio21) + float64(_toint1) - float64(_toint1) + n = int32(fn) + **(**float64)(__ccgo_up(y)) = float64(x) - Tdouble_t(fn*_pio2_11) - Tdouble_t(fn*_pio2_1t1) + /* Matters with directed rounding. */ + if **(**float64)(__ccgo_up(y)) < -_pio41 { + n = n - 1 + fn = fn - 1 + **(**float64)(__ccgo_up(y)) = float64(x) - Tdouble_t(fn*_pio2_11) - Tdouble_t(fn*_pio2_1t1) + } else { + if **(**float64)(__ccgo_up(y)) > _pio41 { + n = n + 1 + fn = fn + 1 + **(**float64)(__ccgo_up(y)) = float64(x) - Tdouble_t(fn*_pio2_11) - Tdouble_t(fn*_pio2_1t1) + } + } + return n + } + if ix >= uint32(0x7f800000) { /* x is inf or NaN */ + **(**float64)(__ccgo_up(y)) = float64(x - x) + return 0 + } + /* scale x into [2^23, 2^24-1] */ + sign = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(31)) + e0 = Int32FromUint32(ix>>Int32FromInt32(23) - Uint32FromInt32(Int32FromInt32(0x7f)+Int32FromInt32(23))) /* e0 = ilogb(|x|)-23, positive */ + *(*Tuint32_t)(unsafe.Pointer(bp)) = ix - Uint32FromInt32(e0< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* y at bp+0 */ struct { + Fi [0]Tuint64_t + Fd float64 + } + *(*struct { + Fi [0]Tuint64_t + Fd float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Fd float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + return Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(63)) +} + +// C documentation +// +// // FIXME: macro in math.h +func X__signbitf(tls *TLS, x float32) (r int32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* y at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + return Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(31)) +} + +func X__signbitl(tls *TLS, x float64) (r int32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__signbit(tls, x) +} + +var _S1 = -Float64FromFloat64(0.16666666666666632) /* 0xBFC55555, 0x55555549 */ +var _S2 = float64(0.00833333333332249) /* 0x3F811111, 0x1110F8A6 */ +var _S3 = -Float64FromFloat64(0.0001984126982985795) /* 0xBF2A01A0, 0x19C161D5 */ +var _S4 = float64(2.7557313707070068e-06) /* 0x3EC71DE3, 0x57B1FE7D */ +var _S5 = -Float64FromFloat64(2.5050760253406863e-08) /* 0xBE5AE5E6, 0x8A2B9CEB */ +var _S6 = float64(1.58969099521155e-10) /* 0x3DE5D93A, 0x5ACFD57C */ + +func X__sin(tls *TLS, x float64, y float64, iy int32) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v iy=%v, (%v:)", tls, x, y, iy, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v, w, z Tdouble_t + _, _, _, _ = r, v, w, z + z = Tdouble_t(x * x) + w = Tdouble_t(z * z) + r = _S2 + Tdouble_t(z*(float64(_S3)+Tdouble_t(z*_S4))) + Tdouble_t(Tdouble_t(z*w)*(float64(_S5)+Tdouble_t(z*_S6))) + v = Tdouble_t(z * x) + if iy == 0 { + return x + Tdouble_t(v*(float64(_S1)+Tdouble_t(z*r))) + } else { + return x - (Tdouble_t(z*(Tdouble_t(float64(0.5)*y)-Tdouble_t(v*r))) - y - Tdouble_t(v*float64(_S1))) + } + return r1 +} + +// C documentation +// +// /* |sin(x)/x - s(x)| < 2**-37.5 (~[-4.89e-12, 4.824e-12]). */ + +var _S11 = -Float64FromFloat64(0.16666666641626524) /* -0.166666666416265235595 */ +var _S21 = float64(0.008333329385889463) /* 0.0083333293858894631756 */ +var _S31 = -Float64FromFloat64(0.00019839334836096632) /* -0.000198393348360966317347 */ +var _S41 = float64(2.718311493989822e-06) /* 0.0000027183114939898219064 */ + +func X__sindf(tls *TLS, x float64) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, s, w, z Tdouble_t + _, _, _, _ = r, s, w, z + /* Try to optimize for parallel evaluation as in __tandf.c. */ + z = Tdouble_t(x * x) + w = Tdouble_t(z * z) + r = float64(_S31) + Tdouble_t(z*_S41) + s = Tdouble_t(z * x) + return float32(x + Tdouble_t(s*(float64(_S11)+Tdouble_t(z*_S21))) + Tdouble_t(Tdouble_t(s*w)*r)) +} + +var _T = [13]float64{ + 0: float64(0.3333333333333341), + 1: float64(0.13333333333320124), + 2: float64(0.05396825397622605), + 3: float64(0.021869488294859542), + 4: float64(0.0088632398235993), + 5: float64(0.0035920791075913124), + 6: float64(0.0014562094543252903), + 7: float64(0.0005880412408202641), + 8: float64(0.0002464631348184699), + 9: float64(7.817944429395571e-05), + 10: float64(7.140724913826082e-05), + 11: -Float64FromFloat64(1.8558637485527546e-05), + 12: float64(2.590730518636337e-05), +} +var _pio42 = float64(0.7853981633974483) /* 3FE921FB, 54442D18 */ +var _pio4lo = float64(3.061616997868383e-17) /* 3C81A626, 33145C07 */ + +func X__tan(tls *TLS, x float64, y float64, odd int32) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v odd=%v, (%v:)", tls, x, y, odd, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var a, r, s, v, w, z, v1 Tdouble_t + var a0, w0 float64 + var big, sign int32 + var hx Tuint32_t + var v2 Tuint64_t + _, _, _, _, _, _, _, _, _, _, _, _, _ = a, a0, big, hx, r, s, sign, v, w, w0, z, v1, v2 + hx = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + big = BoolInt32(hx&uint32(0x7fffffff) >= uint32(0x3FE59428)) /* |x| >= 0.6744 */ + if big != 0 { + sign = Int32FromUint32(hx >> int32(31)) + if sign != 0 { + x = -x + y = -y + } + x = _pio42 - x + (_pio4lo - y) + y = float64(0) + } + z = Tdouble_t(x * x) + w = Tdouble_t(z * z) + /* + * Break x^5*(T[1]+x^2*T[2]+...) into + * x^5(T[1]+x^4*T[3]+...+x^20*T[11]) + + * x^5(x^2*(T[2]+x^4*T[4]+...+x^22*[T12])) + */ + r = _T[int32(1)] + Tdouble_t(w*(_T[int32(3)]+Tdouble_t(w*(_T[int32(5)]+Tdouble_t(w*(_T[int32(7)]+Tdouble_t(w*(_T[int32(9)]+Tdouble_t(w*_T[int32(11)]))))))))) + v = Tdouble_t(z * (_T[int32(2)] + Tdouble_t(w*(_T[int32(4)]+Tdouble_t(w*(_T[int32(6)]+Tdouble_t(w*(_T[int32(8)]+Tdouble_t(w*(_T[int32(10)]+Tdouble_t(w*_T[int32(12)]))))))))))) + s = Tdouble_t(z * x) + r = y + Tdouble_t(z*(Tdouble_t(s*(r+v))+y)) + Tdouble_t(s*_T[0]) + w = x + r + if big != 0 { + s = float64(int32(1) - int32(2)*odd) + v = s - Tdouble_t(Float64FromFloat64(2)*(x+(r-Tdouble_t(w*w)/(w+s)))) + if sign != 0 { + v1 = -v + } else { + v1 = v + } + return v1 + } + if !(odd != 0) { + return w + } + /* -1.0/(x+r) has up to 2ulp error, so compute it accurately */ + w0 = w + v2 = *(*Tuint64_t)(unsafe.Pointer(&w0))>>Int32FromInt32(32)<>Int32FromInt32(32)< %v", r1) }() + } + var r, s, t, u, w, z, v1 Tdouble_t + _, _, _, _, _, _, _ = r, s, t, u, w, z, v1 + z = Tdouble_t(x * x) + /* + * Split up the polynomial into small independent terms to give + * opportunities for parallel evaluation. The chosen splitting is + * micro-optimized for Athlons (XP, X64). It costs 2 multiplications + * relative to Horner's method on sequential machines. + * + * We add the small terms from lowest degree up for efficiency on + * non-sequential machines (the lowest degree terms tend to be ready + * earlier). Apart from this, we don't care about order of + * operations, and don't need to to care since we have precision to + * spare. However, the chosen splitting is good for accuracy too, + * and would give results as accurate as Horner's method if the + * small terms were added from highest degree down. + */ + r = _T1[int32(4)] + Tdouble_t(z*_T1[int32(5)]) + t = _T1[int32(2)] + Tdouble_t(z*_T1[int32(3)]) + w = Tdouble_t(z * z) + s = Tdouble_t(z * x) + u = _T1[0] + Tdouble_t(z*_T1[int32(1)]) + r = x + Tdouble_t(s*u) + Tdouble_t(Tdouble_t(s*w)*(t+Tdouble_t(w*r))) + if odd != 0 { + v1 = float64(-Float64FromFloat64(1)) / r + } else { + v1 = r + } + return float32(v1) +} + +var _pio2_hi = float64(1.5707963267948966) /* 0x3FF921FB, 0x54442D18 */ +var _pio2_lo = float64(6.123233995736766e-17) /* 0x3C91A626, 0x33145C07 */ +var _pS0 = float64(0.16666666666666666) /* 0x3FC55555, 0x55555555 */ +var _pS1 = -Float64FromFloat64(0.3255658186224009) /* 0xBFD4D612, 0x03EB6F7D */ +var _pS2 = float64(0.20121253213486293) /* 0x3FC9C155, 0x0E884455 */ +var _pS3 = -Float64FromFloat64(0.04005553450067941) /* 0xBFA48228, 0xB5688F3B */ +var _pS4 = float64(0.0007915349942898145) /* 0x3F49EFE0, 0x7501B288 */ +var _pS5 = float64(3.479331075960212e-05) /* 0x3F023DE1, 0x0DFDF709 */ +var _qS1 = -Float64FromFloat64(2.403394911734414) /* 0xC0033A27, 0x1C8A2D4B */ +var _qS2 = float64(2.0209457602335057) /* 0x40002AE5, 0x9C598AC8 */ +var _qS3 = -Float64FromFloat64(0.6882839716054533) /* 0xBFE6066C, 0x1B8D0159 */ +var _qS4 = float64(0.07703815055590194) /* 0x3FB3B8C5, 0xB12E9282 */ + +func _R(tls *TLS, z float64) (r float64) { + var p, q Tdouble_t + _, _ = p, q + p = Tdouble_t(z * (_pS0 + float64(z*(_pS1+float64(z*(_pS2+float64(z*(_pS3+float64(z*(_pS4+float64(z*_pS5))))))))))) + q = float64(1) + float64(z*(_qS1+float64(z*(_qS2+float64(z*(_qS3+float64(z*_qS4))))))) + return p / q +} + +func Xacos(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + var c, df, s, w, z float64 + var hx, ix, lx Tuint32_t + var v1 Tuint64_t + _, _, _, _, _, _, _, _, _ = c, df, hx, ix, lx, s, w, z, v1 + hx = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + ix = hx & uint32(0x7fffffff) + /* |x| >= 1 or nan */ + if ix >= uint32(0x3ff00000) { + lx = uint32(*(*Tuint64_t)(unsafe.Pointer(&x))) + if ix-uint32(0x3ff00000)|lx == uint32(0) { + /* acos(1)=0, acos(-1)=pi */ + if hx>>int32(31) != 0 { + return float64(Float64FromInt32(2)*_pio2_hi) + Float64FromFloat32(7.52316384526264e-37) + } + return Float64FromInt32(0) + } + return Float64FromInt32(0) / (x - x) + } + /* |x| < 0.5 */ + if ix < uint32(0x3fe00000) { + if ix <= uint32(0x3c600000) { /* |x| < 2**-57 */ + return _pio2_hi + Float64FromFloat32(7.52316384526264e-37) + } + return _pio2_hi - (x - (_pio2_lo - float64(x*_R(tls, float64(x*x))))) + } + /* x < -0.5 */ + if hx>>int32(31) != 0 { + z = float64((float64(1) + x) * float64(0.5)) + s = Xsqrt(tls, z) + w = float64(_R(tls, z)*s) - _pio2_lo + return float64(Float64FromInt32(2) * (_pio2_hi - (s + w))) + } + /* x > 0.5 */ + z = float64((float64(1) - x) * float64(0.5)) + s = Xsqrt(tls, z) + df = s + v1 = *(*Tuint64_t)(unsafe.Pointer(&df))>>Int32FromInt32(32)< %v", r) }() + } + var c, df, s, w, z float32 + var hx, ix, v1 Tuint32_t + _, _, _, _, _, _, _, _ = c, df, hx, ix, s, w, z, v1 + hx = *(*Tuint32_t)(unsafe.Pointer(&x)) + ix = hx & uint32(0x7fffffff) + /* |x| >= 1 or nan */ + if ix >= uint32(0x3f800000) { + if ix == uint32(0x3f800000) { + if hx>>int32(31) != 0 { + return float32(Float32FromInt32(2)*_pio2_hi1) + Float32FromFloat32(7.52316384526264e-37) + } + return Float32FromInt32(0) + } + return Float32FromInt32(0) / (x - x) + } + /* |x| < 0.5 */ + if ix < uint32(0x3f000000) { + if ix <= uint32(0x32800000) { /* |x| < 2**-26 */ + return _pio2_hi1 + Float32FromFloat32(7.52316384526264e-37) + } + return _pio2_hi1 - (x - (_pio2_lo1 - float32(x*_R1(tls, float32(x*x))))) + } + /* x < -0.5 */ + if hx>>int32(31) != 0 { + z = float32((Float32FromInt32(1) + x) * Float32FromFloat32(0.5)) + s = Xsqrtf(tls, z) + w = float32(_R1(tls, z)*s) - _pio2_lo1 + return float32(Float32FromInt32(2) * (_pio2_hi1 - (s + w))) + } + /* x > 0.5 */ + z = float32((Float32FromInt32(1) - x) * Float32FromFloat32(0.5)) + s = Xsqrtf(tls, z) + hx = *(*Tuint32_t)(unsafe.Pointer(&s)) + v1 = hx & uint32(0xfffff000) + df = *(*float32)(unsafe.Pointer(&v1)) + c = (z - float32(df*df)) / (s + df) + w = float32(_R1(tls, z)*s) + c + return float32(Float32FromInt32(2) * (df + w)) +} + +// C documentation +// +// /* acosh(x) = log(x + sqrt(x*x-1)) */ +func Xacosh(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e uint32 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _ = e + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + e = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + /* x < 1 domain error is handled in the called functions */ + if e < Uint32FromInt32(Int32FromInt32(0x3ff)+Int32FromInt32(1)) { + /* |x| < 2, up to 2ulp error in [1,1.125] */ + return Xlog1p(tls, x-Float64FromInt32(1)+Xsqrt(tls, float64((x-Float64FromInt32(1))*(x-Float64FromInt32(1)))+float64(Float64FromInt32(2)*(x-Float64FromInt32(1))))) + } + if e < Uint32FromInt32(Int32FromInt32(0x3ff)+Int32FromInt32(26)) { + /* |x| < 0x1p26 */ + return Xlog(tls, float64(Float64FromInt32(2)*x)-Float64FromInt32(1)/(x+Xsqrt(tls, float64(x*x)-Float64FromInt32(1)))) + } + /* |x| >= 0x1p26 or nan */ + return Xlog(tls, x) + float64(0.6931471805599453) +} + +// C documentation +// +// /* acosh(x) = log(x + sqrt(x*x-1)) */ +func Xacoshf(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var a Tuint32_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _ = a + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + a = *(*Tuint32_t)(unsafe.Pointer(bp)) & uint32(0x7fffffff) + if a < Uint32FromInt32(Int32FromInt32(0x3f800000)+Int32FromInt32(1)<= 0x1p12 or x <= -2 or nan */ + return Xlogf(tls, x) + Float32FromFloat32(0.6931471805599453) +} + +func Xacoshl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xacosh(tls, x) +} + +func Xacosl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xacos(tls, x) +} + +var _pio2_hi2 = float64(1.5707963267948966) /* 0x3FF921FB, 0x54442D18 */ +var _pio2_lo2 = float64(6.123233995736766e-17) /* 0x3C91A626, 0x33145C07 */ +/* coefficients for R(x^2) */ +var _pS02 = float64(0.16666666666666666) /* 0x3FC55555, 0x55555555 */ +var _pS12 = -Float64FromFloat64(0.3255658186224009) /* 0xBFD4D612, 0x03EB6F7D */ +var _pS22 = float64(0.20121253213486293) /* 0x3FC9C155, 0x0E884455 */ +var _pS31 = -Float64FromFloat64(0.04005553450067941) /* 0xBFA48228, 0xB5688F3B */ +var _pS41 = float64(0.0007915349942898145) /* 0x3F49EFE0, 0x7501B288 */ +var _pS51 = float64(3.479331075960212e-05) /* 0x3F023DE1, 0x0DFDF709 */ +var _qS12 = -Float64FromFloat64(2.403394911734414) /* 0xC0033A27, 0x1C8A2D4B */ +var _qS21 = float64(2.0209457602335057) /* 0x40002AE5, 0x9C598AC8 */ +var _qS31 = -Float64FromFloat64(0.6882839716054533) /* 0xBFE6066C, 0x1B8D0159 */ +var _qS41 = float64(0.07703815055590194) /* 0x3FB3B8C5, 0xB12E9282 */ + +func _R2(tls *TLS, z float64) (r float64) { + var p, q Tdouble_t + _, _ = p, q + p = Tdouble_t(z * (_pS02 + float64(z*(_pS12+float64(z*(_pS22+float64(z*(_pS31+float64(z*(_pS41+float64(z*_pS51))))))))))) + q = float64(1) + float64(z*(_qS12+float64(z*(_qS21+float64(z*(_qS31+float64(z*_qS41))))))) + return p / q +} + +func Xasin(tls *TLS, x float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var c, f, r, s, z float64 + var hx, ix, lx Tuint32_t + var v1 Tuint64_t + _, _, _, _, _, _, _, _, _ = c, f, hx, ix, lx, r, s, z, v1 + hx = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + ix = hx & uint32(0x7fffffff) + /* |x| >= 1 or nan */ + if ix >= uint32(0x3ff00000) { + lx = uint32(*(*Tuint64_t)(unsafe.Pointer(&x))) + if ix-uint32(0x3ff00000)|lx == uint32(0) { + /* asin(1) = +-pi/2 with inexact */ + return float64(x*_pio2_hi2) + Float64FromFloat32(7.52316384526264e-37) + } + return Float64FromInt32(0) / (x - x) + } + /* |x| < 0.5 */ + if ix < uint32(0x3fe00000) { + /* if 0x1p-1022 <= |x| < 0x1p-26, avoid raising underflow */ + if ix < uint32(0x3e500000) && ix >= uint32(0x00100000) { + return x + } + return x + float64(x*_R2(tls, float64(x*x))) + } + /* 1 > |x| >= 0.5 */ + z = float64((Float64FromInt32(1) - Xfabs(tls, x)) * float64(0.5)) + s = Xsqrt(tls, z) + r = _R2(tls, z) + if ix >= uint32(0x3fef3333) { /* if |x| > 0.975 */ + x = _pio2_hi2 - (float64(Float64FromInt32(2)*(s+float64(s*r))) - _pio2_lo2) + } else { + /* f+c = sqrt(z) */ + f = s + v1 = *(*Tuint64_t)(unsafe.Pointer(&f))>>Int32FromInt32(32)<>int32(31) != 0 { + return -x + } + return x +} + +var _pio2 = float64(1.5707963267948966) + +/* coefficients for R(x^2) */ +var _pS03 = float32(0.16666586697) +var _pS13 = float32(-Float64FromFloat64(0.042743422091)) +var _pS23 = float32(-Float64FromFloat64(0.008656363003)) +var _qS13 = float32(-Float64FromFloat64(0.7066296339)) + +func _R3(tls *TLS, z float32) (r float32) { + var p, q Tfloat_t + _, _ = p, q + p = Tfloat_t(z * (_pS03 + float32(z*(_pS13+float32(z*_pS23))))) + q = float64(Float32FromFloat32(1) + float32(z*_qS13)) + return float32(p / q) +} + +func Xasinf(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + var hx, ix Tuint32_t + var s float64 + var z float32 + _, _, _, _ = hx, ix, s, z + hx = *(*Tuint32_t)(unsafe.Pointer(&x)) + ix = hx & uint32(0x7fffffff) + if ix >= uint32(0x3f800000) { /* |x| >= 1 */ + if ix == uint32(0x3f800000) { /* |x| == 1 */ + return float32(float64(float64(x)*_pio2) + Float64FromFloat32(7.52316384526264e-37)) + } /* asin(+-1) = +-pi/2 with inexact */ + return Float32FromInt32(0) / (x - x) /* asin(|x|>1) is NaN */ + } + if ix < uint32(0x3f000000) { /* |x| < 0.5 */ + /* if 0x1p-126 <= |x| < 0x1p-12, avoid raising underflow */ + if ix < uint32(0x39800000) && ix >= uint32(0x00800000) { + return x + } + return x + float32(x*_R3(tls, float32(x*x))) + } + /* 1 > |x| >= 0.5 */ + z = float32((Float32FromInt32(1) - Xfabsf(tls, x)) * Float32FromFloat32(0.5)) + s = Xsqrt(tls, float64(z)) + x = float32(_pio2 - float64(Float64FromInt32(2)*(s+float64(s*float64(_R3(tls, z)))))) + if hx>>int32(31) != 0 { + return -x + } + return x +} + +// C documentation +// +// /* asinh(x) = sign(x)*log(|x|+sqrt(x*x+1)) ~= x - x^3/6 + o(x^5) */ +func Xasinh(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e, s uint32 + var y float32 + var y1, y2, v1 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _ = e, s, y, y1, y2, v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + e = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + s = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(63)) + /* |x| */ + *(*Tuint64_t)(unsafe.Pointer(bp)) &= Uint64FromInt32(-Int32FromInt32(1)) / Uint64FromInt32(2) + x3 = *(*float64)(unsafe.Pointer(bp)) + if e >= Uint32FromInt32(Int32FromInt32(0x3ff)+Int32FromInt32(26)) { + /* |x| >= 0x1p26 or inf or nan */ + x3 = Xlog(tls, x3) + float64(0.6931471805599453) + } else { + if e >= Uint32FromInt32(Int32FromInt32(0x3ff)+Int32FromInt32(1)) { + /* |x| >= 2 */ + x3 = Xlog(tls, float64(Float64FromInt32(2)*x3)+Float64FromInt32(1)/(Xsqrt(tls, float64(x3*x3)+Float64FromInt32(1))+x3)) + } else { + if e >= Uint32FromInt32(Int32FromInt32(0x3ff)-Int32FromInt32(26)) { + /* |x| >= 0x1p-26, up to 1.6ulp error in [0.125,0.5] */ + x3 = Xlog1p(tls, x3+float64(x3*x3)/(Xsqrt(tls, float64(x3*x3)+Float64FromInt32(1))+Float64FromInt32(1))) + } else { + /* |x| < 0x1p-26, raise inexact if x != 0 */ + if uint32(8) == uint32(4) { + y = float32(x3 + Float64FromFloat32(1.329227995784916e+36)) + } else { + if uint32(8) == uint32(8) { + y1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } else { + y2 = float64(x3 + Float64FromFloat32(1.329227995784916e+36)) + } + } + } + } + } + if s != 0 { + v1 = -x3 + } else { + v1 = x3 + } + return v1 +} + +// C documentation +// +// /* asinh(x) = sign(x)*log(|x|+sqrt(x*x+1)) ~= x - x^3/6 + o(x^5) */ +func Xasinhf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var i Tuint32_t + var s uint32 + var y, v1 float32 + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _ = i, s, y, y1, y2, v1 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + i = *(*Tuint32_t)(unsafe.Pointer(bp)) & uint32(0x7fffffff) + s = *(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(31) + /* |x| */ + *(*Tuint32_t)(unsafe.Pointer(bp)) = i + x3 = *(*float32)(unsafe.Pointer(bp)) + if i >= Uint32FromInt32(Int32FromInt32(0x3f800000)+Int32FromInt32(12)<= 0x1p12 or inf or nan */ + x3 = Xlogf(tls, x3) + Float32FromFloat32(0.6931471805599453) + } else { + if i >= Uint32FromInt32(Int32FromInt32(0x3f800000)+Int32FromInt32(1)<= 2 */ + x3 = Xlogf(tls, float32(Float32FromInt32(2)*x3)+Float32FromInt32(1)/(Xsqrtf(tls, float32(x3*x3)+Float32FromInt32(1))+x3)) + } else { + if i >= Uint32FromInt32(Int32FromInt32(0x3f800000)-Int32FromInt32(12)<= 0x1p-12, up to 1.6ulp error in [0.125,0.5] */ + x3 = Xlog1pf(tls, x3+float32(x3*x3)/(Xsqrtf(tls, float32(x3*x3)+Float32FromInt32(1))+Float32FromInt32(1))) + } else { + /* |x| < 0x1p-12, raise inexact if x!=0 */ + if uint32(4) == uint32(4) { + y = x3 + Float32FromFloat32(1.329227995784916e+36) + } else { + if uint32(4) == uint32(8) { + y1 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } else { + y2 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } + } + } + } + } + if s != 0 { + v1 = -x3 + } else { + v1 = x3 + } + return v1 +} + +func Xasinhl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xasinh(tls, x) +} + +func Xasinl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xasin(tls, x) +} + +var _atanhi = [4]float64{ + 0: float64(0.4636476090008061), + 1: float64(0.7853981633974483), + 2: float64(0.982793723247329), + 3: float64(1.5707963267948966), +} + +var _atanlo = [4]float64{ + 0: float64(2.2698777452961687e-17), + 1: float64(3.061616997868383e-17), + 2: float64(1.3903311031230998e-17), + 3: float64(6.123233995736766e-17), +} + +var _aT = [11]float64{ + 0: float64(0.3333333333333293), + 1: -Float64FromFloat64(0.19999999999876483), + 2: float64(0.14285714272503466), + 3: -Float64FromFloat64(0.11111110405462356), + 4: float64(0.09090887133436507), + 5: -Float64FromFloat64(0.0769187620504483), + 6: float64(0.06661073137387531), + 7: -Float64FromFloat64(0.058335701337905735), + 8: float64(0.049768779946159324), + 9: -Float64FromFloat64(0.036531572744216916), + 10: float64(0.016285820115365782), +} + +func Xatan(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var id int32 + var ix, sign Tuint32_t + var s1, s2, w, z, v3 Tdouble_t + var y float32 + var y1, y2 float64 + var v1 uint64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _, _, _, _, _, _, _, _, _, _, _, _ = id, ix, s1, s2, sign, w, y, y1, y2, z, v1, v3 + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x3)) >> int32(32)) + sign = ix >> int32(31) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x44100000) { /* if |x| >= 2^66 */ + *(*float64)(unsafe.Pointer(bp)) = x3 + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 + _2: + if BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var __u1, __u2 Tuint64_t + var ix, iy, lx, ly, m Tuint32_t + var z, v6 float64 + var v1, v3 uint64 + var v5 bool + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _, _, _, _, _, _, _, _, _, _, _, _ = __u1, __u2, ix, iy, lx, ly, m, z, v1, v3, v5, v6 + *(*float64)(unsafe.Pointer(bp)) = x + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + ; + if v5 = BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<> int32(32)) + lx = uint32(__u1) + __u2 = *(*Tuint64_t)(unsafe.Pointer(&y)) + iy = uint32(__u2 >> int32(32)) + ly = uint32(__u2) + if ix-uint32(0x3ff00000)|lx == uint32(0) { /* x = 1.0 */ + return Xatan(tls, y) + } + m = iy>>Int32FromInt32(31)&uint32(1) | ix>>Int32FromInt32(30)&uint32(2) /* 2*sign(x)+sign(y) */ + ix = ix & uint32(0x7fffffff) + iy = iy & uint32(0x7fffffff) + /* when y = 0 */ + if iy|ly == uint32(0) { + switch m { + case uint32(0): + fallthrough + case uint32(1): + return y /* atan(+-0,+anything)=+-0 */ + case uint32(2): + return _pi /* atan(+0,-anything) = pi */ + case uint32(3): + return -_pi /* atan(-0,-anything) =-pi */ + } + } + /* when x = 0 */ + if ix|lx == uint32(0) { + if m&uint32(1) != 0 { + v6 = -_pi / Float64FromInt32(2) + } else { + v6 = _pi / Float64FromInt32(2) + } + return v6 + } + /* when x is INF */ + if ix == uint32(0x7ff00000) { + if iy == uint32(0x7ff00000) { + switch m { + case uint32(0): + return _pi / Float64FromInt32(4) /* atan(+INF,+INF) */ + case uint32(1): + return -_pi / Float64FromInt32(4) /* atan(-INF,+INF) */ + case uint32(2): + return float64(Float64FromInt32(3)*_pi) / Float64FromInt32(4) /* atan(+INF,-INF) */ + case uint32(3): + return float64(float64(-Int32FromInt32(3))*_pi) / Float64FromInt32(4) /* atan(-INF,-INF) */ + } + } else { + switch m { + case uint32(0): + return float64(0) /* atan(+...,+INF) */ + case uint32(1): + return -Float64FromFloat64(0) /* atan(-...,+INF) */ + case uint32(2): + return _pi /* atan(+...,-INF) */ + case uint32(3): + return -_pi /* atan(-...,-INF) */ + } + } + } + /* |y/x| > 0x1p64 */ + if ix+Uint32FromInt32(Int32FromInt32(64)< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ix, iy, m Tuint32_t + var z, v6 float32 + var v1, v3 uint32 + var v5 bool + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _, _, _, _, _, _, _, _ = ix, iy, m, z, v1, v3, v5, v6 + *(*float32)(unsafe.Pointer(bp)) = x + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + ; + if v5 = BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0; !v5 { + *(*float32)(unsafe.Pointer(bp)) = y + v3 = *(*uint32)(unsafe.Pointer(bp)) + goto _4 + _4: + } + if v5 || BoolInt32(v3&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return x + y + } + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + iy = *(*Tuint32_t)(unsafe.Pointer(&y)) + if ix == uint32(0x3f800000) { /* x=1.0 */ + return Xatanf(tls, y) + } + m = iy>>Int32FromInt32(31)&uint32(1) | ix>>Int32FromInt32(30)&uint32(2) /* 2*sign(x)+sign(y) */ + ix = ix & uint32(0x7fffffff) + iy = iy & uint32(0x7fffffff) + /* when y = 0 */ + if iy == uint32(0) { + switch m { + case uint32(0): + fallthrough + case uint32(1): + return y /* atan(+-0,+anything)=+-0 */ + case uint32(2): + return _pi1 /* atan(+0,-anything) = pi */ + case uint32(3): + return -_pi1 /* atan(-0,-anything) =-pi */ + } + } + /* when x = 0 */ + if ix == uint32(0) { + if m&uint32(1) != 0 { + v6 = -_pi1 / Float32FromInt32(2) + } else { + v6 = _pi1 / Float32FromInt32(2) + } + return v6 + } + /* when x is INF */ + if ix == uint32(0x7f800000) { + if iy == uint32(0x7f800000) { + switch m { + case uint32(0): + return _pi1 / Float32FromInt32(4) /* atan(+INF,+INF) */ + case uint32(1): + return -_pi1 / Float32FromInt32(4) /* atan(-INF,+INF) */ + case uint32(2): + return float32(Float32FromInt32(3)*_pi1) / Float32FromInt32(4) /*atan(+INF,-INF)*/ + case uint32(3): + return float32(float32(-Int32FromInt32(3))*_pi1) / Float32FromInt32(4) /*atan(-INF,-INF)*/ + } + } else { + switch m { + case uint32(0): + return Float32FromFloat32(0) /* atan(+...,+INF) */ + case uint32(1): + return -Float32FromFloat32(0) /* atan(-...,+INF) */ + case uint32(2): + return _pi1 /* atan(+...,-INF) */ + case uint32(3): + return -_pi1 /* atan(-...,-INF) */ + } + } + } + /* |y/x| > 0x1p26 */ + if ix+Uint32FromInt32(Int32FromInt32(26)< %v", r) }() + } + return Xatan2(tls, y, x) +} + +var _atanhi1 = [4]float32{ + 0: float32(0.46364760399), + 1: float32(0.78539812565), + 2: float32(0.98279368877), + 3: float32(1.5707962513), +} + +var _atanlo1 = [4]float32{ + 0: float32(5.012158244e-09), + 1: float32(3.7748947079e-08), + 2: float32(3.447321717e-08), + 3: float32(7.5497894159e-08), +} + +var _aT1 = [5]float32{ + 0: float32(0.33333328366), + 1: float32(-Float64FromFloat64(0.19999158382)), + 2: float32(0.14253635705), + 3: float32(-Float64FromFloat64(0.10648017377)), + 4: float32(0.061687607318), +} + +func Xatanf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var id int32 + var ix, sign Tuint32_t + var s1, s2, w, z, v3 Tfloat_t + var y float32 + var y1, y2 float64 + var v1 uint32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _, _, _, _, _, _, _, _, _, _, _, _ = id, ix, s1, s2, sign, w, y, y1, y2, z, v1, v3 + ix = *(*Tuint32_t)(unsafe.Pointer(&x3)) + sign = ix >> int32(31) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x4c800000) { /* if |x| >= 2**26 */ + *(*float32)(unsafe.Pointer(bp)) = x3 + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 + _2: + if BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return x3 + } + z = float64(_atanhi1[int32(3)] + Float32FromFloat32(7.52316384526264e-37)) + if sign != 0 { + v3 = -z + } else { + v3 = z + } + return float32(v3) + } + if ix < uint32(0x3ee00000) { /* |x| < 0.4375 */ + if ix < uint32(0x39800000) { /* |x| < 2**-12 */ + if ix < uint32(0x00800000) { + /* raise underflow for subnormal x */ + if uint32(4) == uint32(4) { + y = float32(x3 * x3) + } else { + if uint32(4) == uint32(8) { + y1 = float64(x3 * x3) + } else { + y2 = float64(x3 * x3) + } + } + } + return x3 + } + id = -int32(1) + } else { + x3 = Xfabsf(tls, x3) + if ix < uint32(0x3f980000) { /* |x| < 1.1875 */ + if ix < uint32(0x3f300000) { /* 7/16 <= |x| < 11/16 */ + id = 0 + x3 = (float32(Float32FromFloat32(2)*x3) - Float32FromFloat32(1)) / (Float32FromFloat32(2) + x3) + } else { /* 11/16 <= |x| < 19/16 */ + id = int32(1) + x3 = (x3 - Float32FromFloat32(1)) / (x3 + Float32FromFloat32(1)) + } + } else { + if ix < uint32(0x401c0000) { /* |x| < 2.4375 */ + id = int32(2) + x3 = (x3 - Float32FromFloat32(1.5)) / (Float32FromFloat32(1) + float32(Float32FromFloat32(1.5)*x3)) + } else { /* 2.4375 <= |x| < 2**26 */ + id = int32(3) + x3 = -Float32FromFloat32(1) / x3 + } + } + } + /* end of argument reduction */ + z = Tfloat_t(x3 * x3) + w = Tfloat_t(z * z) + /* break sum from i=0 to 10 aT[i]z**(i+1) into odd and even poly */ + s1 = Tfloat_t(z * (float64(_aT1[0]) + Tfloat_t(w*(float64(_aT1[int32(2)])+Tfloat_t(w*float64(_aT1[int32(4)])))))) + s2 = Tfloat_t(w * (float64(_aT1[int32(1)]) + Tfloat_t(w*float64(_aT1[int32(3)])))) + if id < 0 { + return float32(float64(x3) - Tfloat_t(float64(x3)*(s1+s2))) + } + z = float64(_atanhi1[id]) - (Tfloat_t(float64(x3)*(s1+s2)) - float64(_atanlo1[id]) - float64(x3)) + if sign != 0 { + v3 = -z + } else { + v3 = z + } + return float32(v3) +} + +// C documentation +// +// /* atanh(x) = log((1+x)/(1-x))/2 = log1p(2x/(1-x))/2 ~= x + x^3/3 + o(x^5) */ +func Xatanh(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e, s uint32 + var y float32 + var y1, y2 float64 + var y3, v1 Tdouble_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _ = e, s, y, y1, y2, y3, v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + e = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + s = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(63)) + /* |x| */ + *(*Tuint64_t)(unsafe.Pointer(bp)) &= Uint64FromInt32(-Int32FromInt32(1)) / Uint64FromInt32(2) + y3 = *(*float64)(unsafe.Pointer(bp)) + if e < Uint32FromInt32(Int32FromInt32(0x3ff)-Int32FromInt32(1)) { + if e < Uint32FromInt32(Int32FromInt32(0x3ff)-Int32FromInt32(32)) { + /* handle underflow */ + if e == uint32(0) { + if uint32(4) == uint32(4) { + y = float32(y3) + } else { + if uint32(4) == uint32(8) { + y1 = float64(float32(y3)) + } else { + y2 = float64(float32(y3)) + } + } + } + } else { + /* |x| < 0.5, up to 1.7ulp error */ + y3 = Tdouble_t(float64(0.5) * Xlog1p(tls, float64(Tdouble_t(Float64FromInt32(2)*y3)+Tdouble_t(Tdouble_t(Float64FromInt32(2)*y3)*y3)/(Float64FromInt32(1)-y3)))) + } + } else { + /* avoid overflow */ + y3 = Tdouble_t(float64(0.5) * Xlog1p(tls, float64(Float64FromInt32(2)*(y3/(Float64FromInt32(1)-y3))))) + } + if s != 0 { + v1 = -y3 + } else { + v1 = y3 + } + return v1 +} + +// C documentation +// +// /* atanh(x) = log((1+x)/(1-x))/2 = log1p(2x/(1-x))/2 ~= x + x^3/3 + o(x^5) */ +func Xatanhf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var s uint32 + var y float32 + var y1, y2 float64 + var y3, v1 Tfloat_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _ = s, y, y1, y2, y3, v1 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + s = *(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(31) + /* |x| */ + *(*Tuint32_t)(unsafe.Pointer(bp)) &= uint32(0x7fffffff) + y3 = float64(*(*float32)(unsafe.Pointer(bp))) + if *(*Tuint32_t)(unsafe.Pointer(bp)) < Uint32FromInt32(Int32FromInt32(0x3f800000)-Int32FromInt32(1)< %v", r) }() + } + return Xatanh(tls, x) +} + +func Xatanl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xatan(tls, x) +} + +var _B1 = uint32(715094163) /* B1 = (1023-1023/3-0.03306235651)*2**20 */ +var _B2 = uint32(696219795) /* B2 = (1023-1023/3-54/3-0.03306235651)*2**20 */ + +// C documentation +// +// /* |1/cbrt(x) - p(x)| < 2**-23.5 (~[-7.93e-8, 7.929e-8]). */ + +var _P0 = float64(1.87595182427177) /* 0x3ffe03e6, 0x0f61e692 */ +var _P1 = -Float64FromFloat64(1.8849797954337717) /* 0xbffe28e0, 0x92f02420 */ +var _P2 = float64(1.6214297201053545) /* 0x3ff9f160, 0x4a49d6c2 */ +var _P3 = -Float64FromFloat64(0.758397934778766) /* 0xbfe844cb, 0xbee751d9 */ +var _P4 = float64(0.14599619288661245) /* 0x3fc2b000, 0xd4e4edd7 */ + +func Xcbrt(tls *TLS, x float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var hx Tuint32_t + var r, s, t, w Tdouble_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _ = hx, r, s, t, w + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + hx = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32) & uint64(0x7fffffff)) + if hx >= uint32(0x7ff00000) { /* cbrt(NaN,INF) is itself */ + return x + x + } + /* + * Rough cbrt to 5 bits: + * cbrt(2**e*(1+m) ~= 2**(e/3)*(1+(e%3+m)/3) + * where e is integral and >= 0, m is real and in [0, 1), and "/" and + * "%" are integer division and modulus with rounding towards minus + * infinity. The RHS is always >= the LHS and has a maximum relative + * error of about 1 in 16. Adding a bias of -0.03306235651 to the + * (e%3+m)/3 term reduces the error to about 1 in 32. With the IEEE + * floating point representation, for finite positive normal values, + * ordinary integer divison of the value in bits magically gives + * almost exactly the RHS of the above provided we first subtract the + * exponent bias (1023 for doubles) and later add it back. We do the + * subtraction virtually to keep e >= 0 so that ordinary integer + * division rounds towards minus infinity; this is also efficient. + */ + if hx < uint32(0x00100000) { /* zero or subnormal? */ + *(*float64)(unsafe.Pointer(bp)) = float64(x * float64(1.8014398509481984e+16)) + hx = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32) & uint64(0x7fffffff)) + if hx == uint32(0) { + return x + } /* cbrt(0) is itself */ + hx = hx/uint32(3) + _B2 + } else { + hx = hx/uint32(3) + _B1 + } + *(*Tuint64_t)(unsafe.Pointer(bp)) &= Uint64FromUint64(1) << Int32FromInt32(63) + *(*Tuint64_t)(unsafe.Pointer(bp)) |= uint64(hx) << int32(32) + t = *(*float64)(unsafe.Pointer(bp)) + /* + * New cbrt to 23 bits: + * cbrt(x) = t*cbrt(x/t**3) ~= t*P(t**3/x) + * where P(r) is a polynomial of degree 4 that approximates 1/cbrt(r) + * to within 2**-23.5 when |r - 1| < 1/10. The rough approximation + * has produced t such than |t/cbrt(x) - 1| ~< 1/32, and cubing this + * gives us bounds for r = t**3/x. + * + * Try to optimize for parallel evaluation as in __tanf.c. + */ + r = Tdouble_t(Tdouble_t(t*t) * (t / x)) + t = Tdouble_t(t * (_P0 + Tdouble_t(r*(float64(_P1)+Tdouble_t(r*_P2))) + Tdouble_t(Tdouble_t(Tdouble_t(r*r)*r)*(float64(_P3)+Tdouble_t(r*_P4))))) + /* + * Round t away from zero to 23 bits (sloppily except for ensuring that + * the result is larger in magnitude than cbrt(x) but not much more than + * 2 23-bit ulps larger). With rounding towards zero, the error bound + * would be ~5/6 instead of ~4/6. With a maximum error of 2 23-bit ulps + * in the rounded t, the infinite-precision error in the Newton + * approximation barely affects third digit in the final error + * 0.667; the error in the rounded t can be up to about 3 23-bit ulps + * before the final error is larger than 0.667 ulps. + */ + *(*float64)(unsafe.Pointer(bp)) = t + *(*Tuint64_t)(unsafe.Pointer(bp)) = (*(*Tuint64_t)(unsafe.Pointer(bp)) + uint64(0x80000000)) & uint64(0xffffffffc0000000) + t = *(*float64)(unsafe.Pointer(bp)) + /* one step Newton iteration to 53 bits with error < 0.667 ulps */ + s = Tdouble_t(t * t) /* t*t is exact */ + r = x / s /* error <= 0.5 ulps; |r| < |t| */ + w = t + t /* t+t is exact */ + r = (r - t) / (w + r) /* r-t is exact; w+r ~= 3*t */ + t = t + Tdouble_t(t*r) /* error <= 0.5 + 0.5/3 + epsilon */ + return t +} + +var _B11 = uint32(709958130) /* B1 = (127-127.0/3-0.03306235651)*2**23 */ +var _B21 = uint32(642849266) /* B2 = (127-127.0/3-24/3-0.03306235651)*2**23 */ + +func Xcbrtf(tls *TLS, x float32) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var T, r Tdouble_t + var hx Tuint32_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _ = T, hx, r + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + hx = *(*Tuint32_t)(unsafe.Pointer(bp)) & uint32(0x7fffffff) + if hx >= uint32(0x7f800000) { /* cbrt(NaN,INF) is itself */ + return x + x + } + /* rough cbrt to 5 bits */ + if hx < uint32(0x00800000) { /* zero or subnormal? */ + if hx == uint32(0) { + return x + } /* cbrt(+-0) is itself */ + *(*float32)(unsafe.Pointer(bp)) = float32(x * Float32FromFloat32(1.6777216e+07)) + hx = *(*Tuint32_t)(unsafe.Pointer(bp)) & uint32(0x7fffffff) + hx = hx/uint32(3) + _B21 + } else { + hx = hx/uint32(3) + _B11 + } + *(*Tuint32_t)(unsafe.Pointer(bp)) &= uint32(0x80000000) + *(*Tuint32_t)(unsafe.Pointer(bp)) |= hx + /* + * First step Newton iteration (solving t*t-x/t == 0) to 16 bits. In + * double precision so that its terms can be arranged for efficiency + * without causing overflow or underflow. + */ + T = float64(*(*float32)(unsafe.Pointer(bp))) + r = Tdouble_t(Tdouble_t(T*T) * T) + T = Tdouble_t(T*(float64(x)+float64(x)+r)) / (float64(x) + r + r) + /* + * Second step Newton iteration to 47 bits. In double precision for + * efficiency and accuracy. + */ + r = Tdouble_t(Tdouble_t(T*T) * T) + T = Tdouble_t(T*(float64(x)+float64(x)+r)) / (float64(x) + r + r) + /* rounding to 24 bits is perfect in round-to-nearest mode */ + return float32(T) +} + +func Xcbrtl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xcbrt(tls, x) +} + +const DBL_EPSILON5 = 2.220446049250313e-16 + +var _toint2 = float64(Float64FromInt32(1) / Float64FromFloat64(2.220446049250313e-16)) + +func Xceil(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e int32 + var y float32 + var y1, y2, v1 float64 + var y3 Tdouble_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _ = e, y, y1, y2, y3, v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + e = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + if e >= Int32FromInt32(0x3ff)+Int32FromInt32(52) || x3 == Float64FromInt32(0) { + return x3 + } + /* y = int(x) - x, where int(x) is an integer neighbor of x */ + if *(*Tuint64_t)(unsafe.Pointer(bp))>>int32(63) != 0 { + y3 = x3 - _toint2 + _toint2 - x3 + } else { + y3 = x3 + _toint2 - _toint2 - x3 + } + /* special case because of non-nearest rounding modes */ + if e <= Int32FromInt32(0x3ff)-Int32FromInt32(1) { + if uint32(8) == uint32(4) { + y = float32(y3) + } else { + if uint32(8) == uint32(8) { + y1 = y3 + } else { + y2 = y3 + } + } + if *(*Tuint64_t)(unsafe.Pointer(bp))>>int32(63) != 0 { + v1 = -Float64FromFloat64(0) + } else { + v1 = Float64FromInt32(1) + } + return v1 + } + if y3 < Float64FromInt32(0) { + return float64(x3 + y3 + Float64FromInt32(1)) + } + return x3 + y3 +} + +const DBL_EPSILON6 = 0 + +func Xceilf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e int32 + var m Tuint32_t + var y float32 + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _ = e, m, y, y1, y2 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + e = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp))>>Int32FromInt32(23)&Uint32FromInt32(0xff)) - int32(0x7f) + if e >= int32(23) { + return x3 + } + if e >= 0 { + m = Uint32FromInt32(int32(0x007fffff) >> e) + if *(*Tuint32_t)(unsafe.Pointer(bp))&m == uint32(0) { + return x3 + } + if uint32(4) == uint32(4) { + y = x3 + Float32FromFloat32(1.329227995784916e+36) + } else { + if uint32(4) == uint32(8) { + y1 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } else { + y2 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } + } + if *(*Tuint32_t)(unsafe.Pointer(bp))>>int32(31) == uint32(0) { + *(*Tuint32_t)(unsafe.Pointer(bp)) += m + } + *(*Tuint32_t)(unsafe.Pointer(bp)) &= ^m + } else { + if uint32(4) == uint32(4) { + y = x3 + Float32FromFloat32(1.329227995784916e+36) + } else { + if uint32(4) == uint32(8) { + y1 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } else { + y2 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } + } + if *(*Tuint32_t)(unsafe.Pointer(bp))>>int32(31) != 0 { + *(*float32)(unsafe.Pointer(bp)) = float32(-Float64FromFloat64(0)) + } else { + if *(*Tuint32_t)(unsafe.Pointer(bp))< %v", r) }() + } + return Xceil(tls, x) +} + +func Xcopysign(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* ux at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + var _ /* uy at bp+8 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp + 8)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp + 8)) = y + *(*Tuint64_t)(unsafe.Pointer(bp)) &= -Uint64FromUint64(1) / Uint64FromInt32(2) + *(*Tuint64_t)(unsafe.Pointer(bp)) |= *(*Tuint64_t)(unsafe.Pointer(bp + 8)) & (Uint64FromUint64(1) << Int32FromInt32(63)) + return *(*float64)(unsafe.Pointer(bp)) +} + +func Xcopysignf(tls *TLS, x float32, y float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* ux at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + var _ /* uy at bp+4 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp + 4)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp + 4)) = y + *(*Tuint32_t)(unsafe.Pointer(bp)) &= uint32(0x7fffffff) + *(*Tuint32_t)(unsafe.Pointer(bp)) |= *(*Tuint32_t)(unsafe.Pointer(bp + 4)) & uint32(0x80000000) + return *(*float32)(unsafe.Pointer(bp)) +} + +func Xcopysignl(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xcopysign(tls, x, y) +} + +func Xcos(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ix Tuint32_t + var n uint32 + var y float32 + var y1, y2 float64 + var _ /* y at bp+0 */ [2]float64 + _, _, _, _, _ = ix, n, y, y1, y2 + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x3)) >> int32(32)) + ix = ix & uint32(0x7fffffff) + /* |x| ~< pi/4 */ + if ix <= uint32(0x3fe921fb) { + if ix < uint32(0x3e46a09e) { /* |x| < 2**-27 * sqrt(2) */ + /* raise inexact if x!=0 */ + if uint32(8) == uint32(4) { + y = float32(x3 + Float64FromFloat32(1.329227995784916e+36)) + } else { + if uint32(8) == uint32(8) { + y1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } else { + y2 = float64(x3 + Float64FromFloat32(1.329227995784916e+36)) + } + } + return float64(1) + } + return X__cos(tls, x3, Float64FromInt32(0)) + } + /* cos(Inf or NaN) is NaN */ + if ix >= uint32(0x7ff00000) { + return x3 - x3 + } + /* argument reduction */ + n = Uint32FromInt32(X__rem_pio2(tls, x3, bp)) + switch n & Uint32FromInt32(3) { + case uint32(0): + return X__cos(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)]) + case uint32(1): + return -X__sin(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)], int32(1)) + case uint32(2): + return -X__cos(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)]) + default: + return X__sin(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)], int32(1)) + } + return r +} + +const M_PI_23 = 1.5707963267948966 + +// C documentation +// +// /* Small multiples of pi/2 rounded to double precision. */ + +var _c1pio2 = float64(Float64FromInt32(1) * Float64FromFloat64(1.5707963267948966)) /* 0x3FF921FB, 0x54442D18 */ +var _c2pio2 = float64(Float64FromInt32(2) * Float64FromFloat64(1.5707963267948966)) /* 0x400921FB, 0x54442D18 */ +var _c3pio2 = float64(Float64FromInt32(3) * Float64FromFloat64(1.5707963267948966)) /* 0x4012D97C, 0x7F3321D2 */ +var _c4pio2 = float64(Float64FromInt32(4) * Float64FromFloat64(1.5707963267948966)) /* 0x401921FB, 0x54442D18 */ + +func Xcosf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ix Tuint32_t + var n, sign uint32 + var y float32 + var y1, y2, v1 float64 + var _ /* y at bp+0 */ float64 + _, _, _, _, _, _, _ = ix, n, sign, y, y1, y2, v1 + ix = *(*Tuint32_t)(unsafe.Pointer(&x3)) + sign = ix >> int32(31) + ix = ix & uint32(0x7fffffff) + if ix <= uint32(0x3f490fda) { /* |x| ~<= pi/4 */ + if ix < uint32(0x39800000) { /* |x| < 2**-12 */ + /* raise inexact if x != 0 */ + if uint32(4) == uint32(4) { + y = x3 + Float32FromFloat32(1.329227995784916e+36) + } else { + if uint32(4) == uint32(8) { + y1 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } else { + y2 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } + } + return Float32FromFloat32(1) + } + return X__cosdf(tls, float64(x3)) + } + if ix <= uint32(0x407b53d1) { /* |x| ~<= 5*pi/4 */ + if ix > uint32(0x4016cbe3) { /* |x| ~> 3*pi/4 */ + if sign != 0 { + v1 = float64(x3) + _c2pio2 + } else { + v1 = float64(x3) - _c2pio2 + } + return -X__cosdf(tls, v1) + } else { + if sign != 0 { + return X__sindf(tls, float64(x3)+_c1pio2) + } else { + return X__sindf(tls, _c1pio2-float64(x3)) + } + } + } + if ix <= uint32(0x40e231d5) { /* |x| ~<= 9*pi/4 */ + if ix > uint32(0x40afeddf) { /* |x| ~> 7*pi/4 */ + if sign != 0 { + v1 = float64(x3) + _c4pio2 + } else { + v1 = float64(x3) - _c4pio2 + } + return X__cosdf(tls, v1) + } else { + if sign != 0 { + return X__sindf(tls, float64(-x3)-_c3pio2) + } else { + return X__sindf(tls, float64(x3)-_c3pio2) + } + } + } + /* cos(Inf or NaN) is NaN */ + if ix >= uint32(0x7f800000) { + return x3 - x3 + } + /* general argument reduction needed */ + n = Uint32FromInt32(X__rem_pio2f(tls, x3, bp)) + switch n & Uint32FromInt32(3) { + case uint32(0): + return X__cosdf(tls, **(**float64)(__ccgo_up(bp))) + case uint32(1): + return X__sindf(tls, -**(**float64)(__ccgo_up(bp))) + case uint32(2): + return -X__cosdf(tls, **(**float64)(__ccgo_up(bp))) + default: + return X__sindf(tls, **(**float64)(__ccgo_up(bp))) + } + return r +} + +const M_PI_24 = 0 + +// C documentation +// +// /* cosh(x) = (exp(x) + 1/exp(x))/2 +// * = 1 + 0.5*(exp(x)-1)*(exp(x)-1)/exp(x) +// * = 1 + x*x/2 + o(x^4) +// */ +func Xcosh(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var t, y1, y2 float64 + var w Tuint32_t + var y float32 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _ = t, w, y, y1, y2 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + /* |x| */ + *(*Tuint64_t)(unsafe.Pointer(bp)) &= Uint64FromInt32(-Int32FromInt32(1)) / Uint64FromInt32(2) + x3 = *(*float64)(unsafe.Pointer(bp)) + w = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32)) + /* |x| < log(2) */ + if w < uint32(0x3fe62e42) { + if w < Uint32FromInt32(Int32FromInt32(0x3ff00000)-Int32FromInt32(26)<log(0x1p26) then the 1/t is not needed */ + return float64(float64(0.5) * (t + Float64FromInt32(1)/t)) + } + /* |x| > log(DBL_MAX) or nan */ + /* note: the result is stored to handle overflow */ + t = X__expo2(tls, x3, float64(1)) + return t +} + +func Xcoshf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var t, y float32 + var w Tuint32_t + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _ = t, w, y, y1, y2 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + /* |x| */ + *(*Tuint32_t)(unsafe.Pointer(bp)) &= uint32(0x7fffffff) + x3 = *(*float32)(unsafe.Pointer(bp)) + w = *(*Tuint32_t)(unsafe.Pointer(bp)) + /* |x| < log(2) */ + if w < uint32(0x3f317217) { + if w < Uint32FromInt32(Int32FromInt32(0x3f800000)-Int32FromInt32(12)< log(FLT_MAX) or nan */ + t = X__expo2f(tls, x3, Float32FromFloat32(1)) + return t +} + +func Xcoshl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xcosh(tls, x) +} + +func Xcosl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xcos(tls, x) +} + +var _erx = float64(0.8450629115104675) /* 0x3FEB0AC1, 0x60000000 */ +/* + * Coefficients for approximation to erf on [0,0.84375] + */ +var _efx8 = float64(1.0270333367641007) /* 0x3FF06EBA, 0x8214DB69 */ +var _pp0 = float64(0.12837916709551256) /* 0x3FC06EBA, 0x8214DB68 */ +var _pp1 = -Float64FromFloat64(0.3250421072470015) /* 0xBFD4CD7D, 0x691CB913 */ +var _pp2 = -Float64FromFloat64(0.02848174957559851) /* 0xBF9D2A51, 0xDBD7194F */ +var _pp3 = -Float64FromFloat64(0.005770270296489442) /* 0xBF77A291, 0x236668E4 */ +var _pp4 = -Float64FromFloat64(2.3763016656650163e-05) /* 0xBEF8EAD6, 0x120016AC */ +var _qq1 = float64(0.39791722395915535) /* 0x3FD97779, 0xCDDADC09 */ +var _qq2 = float64(0.0650222499887673) /* 0x3FB0A54C, 0x5536CEBA */ +var _qq3 = float64(0.005081306281875766) /* 0x3F74D022, 0xC4D36B0F */ +var _qq4 = float64(0.00013249473800432164) /* 0x3F215DC9, 0x221C1A10 */ +var _qq5 = -Float64FromFloat64(3.960228278775368e-06) /* 0xBED09C43, 0x42A26120 */ +/* + * Coefficients for approximation to erf in [0.84375,1.25] + */ +var _pa0 = -Float64FromFloat64(0.0023621185607526594) /* 0xBF6359B8, 0xBEF77538 */ +var _pa1 = float64(0.41485611868374833) /* 0x3FDA8D00, 0xAD92B34D */ +var _pa2 = -Float64FromFloat64(0.3722078760357013) /* 0xBFD7D240, 0xFBB8C3F1 */ +var _pa3 = float64(0.31834661990116175) /* 0x3FD45FCA, 0x805120E4 */ +var _pa4 = -Float64FromFloat64(0.11089469428239668) /* 0xBFBC6398, 0x3D3E28EC */ +var _pa5 = float64(0.035478304325618236) /* 0x3FA22A36, 0x599795EB */ +var _pa6 = -Float64FromFloat64(0.002166375594868791) /* 0xBF61BF38, 0x0A96073F */ +var _qa1 = float64(0.10642088040084423) /* 0x3FBB3E66, 0x18EEE323 */ +var _qa2 = float64(0.540397917702171) /* 0x3FE14AF0, 0x92EB6F33 */ +var _qa3 = float64(0.07182865441419627) /* 0x3FB2635C, 0xD99FE9A7 */ +var _qa4 = float64(0.12617121980876164) /* 0x3FC02660, 0xE763351F */ +var _qa5 = float64(0.01363708391202905) /* 0x3F8BEDC2, 0x6B51DD1C */ +var _qa6 = float64(0.011984499846799107) /* 0x3F888B54, 0x5735151D */ +/* + * Coefficients for approximation to erfc in [1.25,1/0.35] + */ +var _ra0 = -Float64FromFloat64(0.009864944034847148) /* 0xBF843412, 0x600D6435 */ +var _ra1 = -Float64FromFloat64(0.6938585727071818) /* 0xBFE63416, 0xE4BA7360 */ +var _ra2 = -Float64FromFloat64(10.558626225323291) /* 0xC0251E04, 0x41B0E726 */ +var _ra3 = -Float64FromFloat64(62.375332450326006) /* 0xC04F300A, 0xE4CBA38D */ +var _ra4 = -Float64FromFloat64(162.39666946257347) /* 0xC0644CB1, 0x84282266 */ +var _ra5 = -Float64FromFloat64(184.60509290671104) /* 0xC067135C, 0xEBCCABB2 */ +var _ra6 = -Float64FromFloat64(81.2874355063066) /* 0xC0545265, 0x57E4D2F2 */ +var _ra7 = -Float64FromFloat64(9.814329344169145) /* 0xC023A0EF, 0xC69AC25C */ +var _sa1 = float64(19.651271667439257) /* 0x4033A6B9, 0xBD707687 */ +var _sa2 = float64(137.65775414351904) /* 0x4061350C, 0x526AE721 */ +var _sa3 = float64(434.56587747522923) /* 0x407B290D, 0xD58A1A71 */ +var _sa4 = float64(645.3872717332679) /* 0x40842B19, 0x21EC2868 */ +var _sa5 = float64(429.00814002756783) /* 0x407AD021, 0x57700314 */ +var _sa6 = float64(108.63500554177944) /* 0x405B28A3, 0xEE48AE2C */ +var _sa7 = float64(6.570249770319282) /* 0x401A47EF, 0x8E484A93 */ +var _sa8 = -Float64FromFloat64(0.0604244152148581) /* 0xBFAEEFF2, 0xEE749A62 */ +/* + * Coefficients for approximation to erfc in [1/.35,28] + */ +var _rb0 = -Float64FromFloat64(0.0098649429247001) /* 0xBF843412, 0x39E86F4A */ +var _rb1 = -Float64FromFloat64(0.799283237680523) /* 0xBFE993BA, 0x70C285DE */ +var _rb2 = -Float64FromFloat64(17.757954917754752) /* 0xC031C209, 0x555F995A */ +var _rb3 = -Float64FromFloat64(160.63638485582192) /* 0xC064145D, 0x43C5ED98 */ +var _rb4 = -Float64FromFloat64(637.5664433683896) /* 0xC083EC88, 0x1375F228 */ +var _rb5 = -Float64FromFloat64(1025.0951316110772) /* 0xC0900461, 0x6A2E5992 */ +var _rb6 = -Float64FromFloat64(483.5191916086514) /* 0xC07E384E, 0x9BDC383F */ +var _sb1 = float64(30.33806074348246) /* 0x403E568B, 0x261D5190 */ +var _sb2 = float64(325.7925129965739) /* 0x40745CAE, 0x221B9F0A */ +var _sb3 = float64(1536.729586084437) /* 0x409802EB, 0x189D5118 */ +var _sb4 = float64(3199.8582195085955) /* 0x40A8FFB7, 0x688C246A */ +var _sb5 = float64(2553.0504064331644) /* 0x40A3F219, 0xCEDF3BE6 */ +var _sb6 = float64(474.52854120695537) /* 0x407DA874, 0xE79FE763 */ +var _sb7 = -Float64FromFloat64(22.44095244658582) /* 0xC03670E2, 0x42712D62 */ + +func _erfc1(tls *TLS, x float64) (r float64) { + var P, Q, s Tdouble_t + _, _, _ = P, Q, s + s = float64(Xfabs(tls, x) - Float64FromInt32(1)) + P = float64(_pa0) + Tdouble_t(s*(_pa1+Tdouble_t(s*(float64(_pa2)+Tdouble_t(s*(_pa3+Tdouble_t(s*(float64(_pa4)+Tdouble_t(s*(_pa5+Tdouble_t(s*float64(_pa6)))))))))))) + Q = Float64FromInt32(1) + Tdouble_t(s*(_qa1+Tdouble_t(s*(_qa2+Tdouble_t(s*(_qa3+Tdouble_t(s*(_qa4+Tdouble_t(s*(_qa5+Tdouble_t(s*_qa6))))))))))) + return float64(Float64FromInt32(1)-_erx) - P/Q +} + +func _erfc2(tls *TLS, ix Tuint32_t, x float64) (r float64) { + var R, S, s Tdouble_t + var z float64 + var v1 Tuint64_t + _, _, _, _, _ = R, S, s, z, v1 + if ix < uint32(0x3ff40000) { /* |x| < 1.25 */ + return _erfc1(tls, x) + } + x = Xfabs(tls, x) + s = float64(Float64FromInt32(1) / float64(x*x)) + if ix < uint32(0x4006db6d) { /* |x| < 1/.35 ~ 2.85714 */ + R = float64(_ra0) + Tdouble_t(s*(float64(_ra1)+Tdouble_t(s*(float64(_ra2)+Tdouble_t(s*(float64(_ra3)+Tdouble_t(s*(float64(_ra4)+Tdouble_t(s*(float64(_ra5)+Tdouble_t(s*(float64(_ra6)+Tdouble_t(s*float64(_ra7)))))))))))))) + S = Float64FromFloat64(1) + Tdouble_t(s*(_sa1+Tdouble_t(s*(_sa2+Tdouble_t(s*(_sa3+Tdouble_t(s*(_sa4+Tdouble_t(s*(_sa5+Tdouble_t(s*(_sa6+Tdouble_t(s*(_sa7+Tdouble_t(s*float64(_sa8)))))))))))))))) + } else { /* |x| > 1/.35 */ + R = float64(_rb0) + Tdouble_t(s*(float64(_rb1)+Tdouble_t(s*(float64(_rb2)+Tdouble_t(s*(float64(_rb3)+Tdouble_t(s*(float64(_rb4)+Tdouble_t(s*(float64(_rb5)+Tdouble_t(s*float64(_rb6)))))))))))) + S = Float64FromFloat64(1) + Tdouble_t(s*(_sb1+Tdouble_t(s*(_sb2+Tdouble_t(s*(_sb3+Tdouble_t(s*(_sb4+Tdouble_t(s*(_sb5+Tdouble_t(s*(_sb6+Tdouble_t(s*float64(_sb7)))))))))))))) + } + z = x + v1 = *(*Tuint64_t)(unsafe.Pointer(&z))>>Int32FromInt32(32)< %v", r1) }() + } + var ix Tuint32_t + var r, s, y, z, v1 float64 + var sign int32 + _, _, _, _, _, _, _ = ix, r, s, sign, y, z, v1 + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x7ff00000) { + /* erf(nan)=nan, erf(+-inf)=+-1 */ + return float64(int32(1)-int32(2)*sign) + Float64FromInt32(1)/x + } + if ix < uint32(0x3feb0000) { /* |x| < 0.84375 */ + if ix < uint32(0x3e300000) { /* |x| < 2**-28 */ + /* avoid underflow */ + return float64(float64(0.125) * (float64(Float64FromInt32(8)*x) + float64(_efx8*x))) + } + z = float64(x * x) + r = _pp0 + float64(z*(_pp1+float64(z*(_pp2+float64(z*(_pp3+float64(z*_pp4))))))) + s = float64(1) + float64(z*(_qq1+float64(z*(_qq2+float64(z*(_qq3+float64(z*(_qq4+float64(z*_qq5))))))))) + y = r / s + return x + float64(x*y) + } + if ix < uint32(0x40180000) { /* 0.84375 <= |x| < 6 */ + y = Float64FromInt32(1) - _erfc2(tls, ix, x) + } else { + y = Float64FromInt32(1) - Float64FromFloat64(2.2250738585072014e-308) + } + if sign != 0 { + v1 = -y + } else { + v1 = y + } + return v1 +} + +func Xerfc(tls *TLS, x float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var ix Tuint32_t + var r, s, y, z, v1 float64 + var sign int32 + _, _, _, _, _, _, _ = ix, r, s, sign, y, z, v1 + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x7ff00000) { + /* erfc(nan)=nan, erfc(+-inf)=0,2 */ + return float64(int32(2)*sign) + Float64FromInt32(1)/x + } + if ix < uint32(0x3feb0000) { /* |x| < 0.84375 */ + if ix < uint32(0x3c700000) { /* |x| < 2**-56 */ + return float64(1) - x + } + z = float64(x * x) + r = _pp0 + float64(z*(_pp1+float64(z*(_pp2+float64(z*(_pp3+float64(z*_pp4))))))) + s = float64(1) + float64(z*(_qq1+float64(z*(_qq2+float64(z*(_qq3+float64(z*(_qq4+float64(z*_qq5))))))))) + y = r / s + if sign != 0 || ix < uint32(0x3fd00000) { /* x < 1/4 */ + return float64(1) - (x + float64(x*y)) + } + return float64(0.5) - (x - float64(0.5) + float64(x*y)) + } + if ix < uint32(0x403c0000) { /* 0.84375 <= |x| < 28 */ + if sign != 0 { + v1 = Float64FromInt32(2) - _erfc2(tls, ix, x) + } else { + v1 = _erfc2(tls, ix, x) + } + return v1 + } + if sign != 0 { + v1 = Float64FromInt32(2) - Float64FromFloat64(2.2250738585072014e-308) + } else { + v1 = float64(Float64FromFloat64(2.2250738585072014e-308) * Float64FromFloat64(2.2250738585072014e-308)) + } + return v1 +} + +var _erx1 = float32(0.84506291151) /* 0x3f58560b */ +/* + * Coefficients for approximation to erf on [0,0.84375] + */ +var _efx81 = float32(1.027033329) /* 0x3f8375d4 */ +var _pp01 = float32(0.12837916613) /* 0x3e0375d4 */ +var _pp11 = float32(-Float64FromFloat64(0.32504209876)) /* 0xbea66beb */ +var _pp21 = float32(-Float64FromFloat64(0.028481749818)) /* 0xbce9528f */ +var _pp31 = float32(-Float64FromFloat64(0.005770270247)) /* 0xbbbd1489 */ +var _pp41 = float32(-Float64FromFloat64(2.3763017452e-05)) /* 0xb7c756b1 */ +var _qq11 = float32(0.39791721106) /* 0x3ecbbbce */ +var _qq21 = float32(0.0650222525) /* 0x3d852a63 */ +var _qq31 = float32(0.0050813062117) /* 0x3ba68116 */ +var _qq41 = float32(0.00013249473704) /* 0x390aee49 */ +var _qq51 = float32(-Float64FromFloat64(3.9602282413e-06)) /* 0xb684e21a */ +/* + * Coefficients for approximation to erf in [0.84375,1.25] + */ +var _pa01 = float32(-Float64FromFloat64(0.0023621185683)) /* 0xbb1acdc6 */ +var _pa11 = float32(0.41485610604) /* 0x3ed46805 */ +var _pa21 = float32(-Float64FromFloat64(0.37220788002)) /* 0xbebe9208 */ +var _pa31 = float32(0.31834661961) /* 0x3ea2fe54 */ +var _pa41 = float32(-Float64FromFloat64(0.11089469492)) /* 0xbde31cc2 */ +var _pa51 = float32(0.035478305072) /* 0x3d1151b3 */ +var _pa61 = float32(-Float64FromFloat64(0.0021663755178)) /* 0xbb0df9c0 */ +var _qa11 = float32(0.10642088205) /* 0x3dd9f331 */ +var _qa21 = float32(0.54039794207) /* 0x3f0a5785 */ +var _qa31 = float32(0.071828655899) /* 0x3d931ae7 */ +var _qa41 = float32(0.12617121637) /* 0x3e013307 */ +var _qa51 = float32(0.013637083583) /* 0x3c5f6e13 */ +var _qa61 = float32(0.011984500103) /* 0x3c445aa3 */ +/* + * Coefficients for approximation to erfc in [1.25,1/0.35] + */ +var _ra01 = float32(-Float64FromFloat64(0.0098649440333)) /* 0xbc21a093 */ +var _ra11 = float32(-Float64FromFloat64(0.6938585639)) /* 0xbf31a0b7 */ +var _ra21 = float32(-Float64FromFloat64(10.558626175)) /* 0xc128f022 */ +var _ra31 = float32(-Float64FromFloat64(62.375331879)) /* 0xc2798057 */ +var _ra41 = float32(-Float64FromFloat64(162.39666748)) /* 0xc322658c */ +var _ra51 = float32(-Float64FromFloat64(184.60508728)) /* 0xc3389ae7 */ +var _ra61 = float32(-Float64FromFloat64(81.287437439)) /* 0xc2a2932b */ +var _ra71 = float32(-Float64FromFloat64(9.8143291473)) /* 0xc11d077e */ +var _sa11 = float32(19.65127182) /* 0x419d35ce */ +var _sa21 = float32(137.65776062) /* 0x4309a863 */ +var _sa31 = float32(434.56588745) /* 0x43d9486f */ +var _sa41 = float32(645.38726807) /* 0x442158c9 */ +var _sa51 = float32(429.00814819) /* 0x43d6810b */ +var _sa61 = float32(108.63500214) /* 0x42d9451f */ +var _sa71 = float32(6.5702495575) /* 0x40d23f7c */ +var _sa81 = float32(-Float64FromFloat64(0.060424413532)) /* 0xbd777f97 */ +/* + * Coefficients for approximation to erfc in [1/.35,28] + */ +var _rb01 = float32(-Float64FromFloat64(0.009864943102)) /* 0xbc21a092 */ +var _rb11 = float32(-Float64FromFloat64(0.79928326607)) /* 0xbf4c9dd4 */ +var _rb21 = float32(-Float64FromFloat64(17.757955551)) /* 0xc18e104b */ +var _rb31 = float32(-Float64FromFloat64(160.63638306)) /* 0xc320a2ea */ +var _rb41 = float32(-Float64FromFloat64(637.56646729)) /* 0xc41f6441 */ +var _rb51 = float32(-Float64FromFloat64(1025.0950928)) /* 0xc480230b */ +var _rb61 = float32(-Float64FromFloat64(483.51919556)) /* 0xc3f1c275 */ +var _sb11 = float32(30.338060379) /* 0x41f2b459 */ +var _sb21 = float32(325.79251099) /* 0x43a2e571 */ +var _sb31 = float32(1536.7296143) /* 0x44c01759 */ +var _sb41 = float32(3199.8581543) /* 0x4547fdbb */ +var _sb51 = float32(2553.050293) /* 0x451f90ce */ +var _sb61 = float32(474.52853394) /* 0x43ed43a7 */ +var _sb71 = float32(-Float64FromFloat64(22.440952301)) /* 0xc1b38712 */ + +func _erfc11(tls *TLS, x float32) (r float32) { + var P, Q, s Tfloat_t + _, _, _ = P, Q, s + s = float64(Xfabsf(tls, x) - Float32FromInt32(1)) + P = float64(_pa01) + Tfloat_t(s*(float64(_pa11)+Tfloat_t(s*(float64(_pa21)+Tfloat_t(s*(float64(_pa31)+Tfloat_t(s*(float64(_pa41)+Tfloat_t(s*(float64(_pa51)+Tfloat_t(s*float64(_pa61)))))))))))) + Q = Float64FromInt32(1) + Tfloat_t(s*(float64(_qa11)+Tfloat_t(s*(float64(_qa21)+Tfloat_t(s*(float64(_qa31)+Tfloat_t(s*(float64(_qa41)+Tfloat_t(s*(float64(_qa51)+Tfloat_t(s*float64(_qa61)))))))))))) + return float32(float64(Float32FromInt32(1)-_erx1) - P/Q) +} + +func _erfc21(tls *TLS, ix Tuint32_t, x float32) (r float32) { + var R, S, s Tfloat_t + var z float32 + var v1 Tuint32_t + _, _, _, _, _ = R, S, s, z, v1 + if ix < uint32(0x3fa00000) { /* |x| < 1.25 */ + return _erfc11(tls, x) + } + x = Xfabsf(tls, x) + s = float64(Float32FromInt32(1) / float32(x*x)) + if ix < uint32(0x4036db6d) { /* |x| < 1/0.35 */ + R = float64(_ra01) + Tfloat_t(s*(float64(_ra11)+Tfloat_t(s*(float64(_ra21)+Tfloat_t(s*(float64(_ra31)+Tfloat_t(s*(float64(_ra41)+Tfloat_t(s*(float64(_ra51)+Tfloat_t(s*(float64(_ra61)+Tfloat_t(s*float64(_ra71)))))))))))))) + S = Float64FromFloat32(1) + Tfloat_t(s*(float64(_sa11)+Tfloat_t(s*(float64(_sa21)+Tfloat_t(s*(float64(_sa31)+Tfloat_t(s*(float64(_sa41)+Tfloat_t(s*(float64(_sa51)+Tfloat_t(s*(float64(_sa61)+Tfloat_t(s*(float64(_sa71)+Tfloat_t(s*float64(_sa81)))))))))))))))) + } else { /* |x| >= 1/0.35 */ + R = float64(_rb01) + Tfloat_t(s*(float64(_rb11)+Tfloat_t(s*(float64(_rb21)+Tfloat_t(s*(float64(_rb31)+Tfloat_t(s*(float64(_rb41)+Tfloat_t(s*(float64(_rb51)+Tfloat_t(s*float64(_rb61)))))))))))) + S = Float64FromFloat32(1) + Tfloat_t(s*(float64(_sb11)+Tfloat_t(s*(float64(_sb21)+Tfloat_t(s*(float64(_sb31)+Tfloat_t(s*(float64(_sb41)+Tfloat_t(s*(float64(_sb51)+Tfloat_t(s*(float64(_sb61)+Tfloat_t(s*float64(_sb71)))))))))))))) + } + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + v1 = ix & uint32(0xffffe000) + z = *(*float32)(unsafe.Pointer(&v1)) + return float32(Xexpf(tls, float32(-z*z)-Float32FromFloat32(0.5625))*Xexpf(tls, float32(Tfloat_t((z-x)*(z+x))+R/S))) / x +} + +func Xerff(tls *TLS, x float32) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var ix Tuint32_t + var r, s, y, z, v1 float32 + var sign int32 + _, _, _, _, _, _, _ = ix, r, s, sign, y, z, v1 + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x7f800000) { + /* erf(nan)=nan, erf(+-inf)=+-1 */ + return float32(int32(1)-int32(2)*sign) + Float32FromInt32(1)/x + } + if ix < uint32(0x3f580000) { /* |x| < 0.84375 */ + if ix < uint32(0x31800000) { /* |x| < 2**-28 */ + /*avoid underflow */ + return float32(Float32FromFloat32(0.125) * (float32(Float32FromInt32(8)*x) + float32(_efx81*x))) + } + z = float32(x * x) + r = _pp01 + float32(z*(_pp11+float32(z*(_pp21+float32(z*(_pp31+float32(z*_pp41))))))) + s = Float32FromInt32(1) + float32(z*(_qq11+float32(z*(_qq21+float32(z*(_qq31+float32(z*(_qq41+float32(z*_qq51))))))))) + y = r / s + return x + float32(x*y) + } + if ix < uint32(0x40c00000) { /* |x| < 6 */ + y = Float32FromInt32(1) - _erfc21(tls, ix, x) + } else { + y = Float32FromInt32(1) - Float32FromFloat32(7.52316384526264e-37) + } + if sign != 0 { + v1 = -y + } else { + v1 = y + } + return v1 +} + +func Xerfcf(tls *TLS, x float32) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var ix Tuint32_t + var r, s, y, z, v1 float32 + var sign int32 + _, _, _, _, _, _, _ = ix, r, s, sign, y, z, v1 + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x7f800000) { + /* erfc(nan)=nan, erfc(+-inf)=0,2 */ + return float32(int32(2)*sign) + Float32FromInt32(1)/x + } + if ix < uint32(0x3f580000) { /* |x| < 0.84375 */ + if ix < uint32(0x23800000) { /* |x| < 2**-56 */ + return Float32FromFloat32(1) - x + } + z = float32(x * x) + r = _pp01 + float32(z*(_pp11+float32(z*(_pp21+float32(z*(_pp31+float32(z*_pp41))))))) + s = Float32FromFloat32(1) + float32(z*(_qq11+float32(z*(_qq21+float32(z*(_qq31+float32(z*(_qq41+float32(z*_qq51))))))))) + y = r / s + if sign != 0 || ix < uint32(0x3e800000) { /* x < 1/4 */ + return Float32FromFloat32(1) - (x + float32(x*y)) + } + return Float32FromFloat32(0.5) - (x - Float32FromFloat32(0.5) + float32(x*y)) + } + if ix < uint32(0x41e00000) { /* |x| < 28 */ + if sign != 0 { + v1 = Float32FromInt32(2) - _erfc21(tls, ix, x) + } else { + v1 = _erfc21(tls, ix, x) + } + return v1 + } + if sign != 0 { + v1 = Float32FromInt32(2) - Float32FromFloat32(7.52316384526264e-37) + } else { + v1 = float32(Float32FromFloat32(7.52316384526264e-37) * Float32FromFloat32(7.52316384526264e-37)) + } + return v1 +} + +func Xerfl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xerf(tls, x) +} + +func Xerfcl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xerfc(tls, x) +} + +const EXP2_POLY_ORDER = 5 +const EXP_POLY_ORDER = 5 +const EXP_TABLE_BITS = 7 +const EXP_USE_TOINT_NARROW = 0 +const N = 128 + +// C documentation +// +// /* Handle cases that may overflow or underflow when computing the result that +// is scale*(1+TMP) without intermediate rounding. The bit representation of +// scale is in SBITS, however it has a computed exponent that may have +// overflown into the sign bit so that needs to be adjusted before using it as +// a double. (int32_t)KI is the k used in the argument reduction and exponent +// adjustment of scale, positive k here means the result may overflow and +// negative k means the result may underflow. */ +func _specialcase(tls *TLS, tmp Tdouble_t, sbits Tuint64_t, ki Tuint64_t) (r float64) { + var hi, lo, scale, y3 Tdouble_t + var y, y1, y2, v1 float64 + _, _, _, _, _, _, _, _ = hi, lo, scale, y, y1, y2, y3, v1 + if ki&uint64(0x80000000) == uint64(0) { + /* k > 0, the exponent of scale might have overflowed by <= 460. */ + sbits = sbits - Uint64FromUint64(1009)<> int32(52)) +} + +func Xexp(tls *TLS, x1 float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x1=%v, (%v:)", tls, x1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var abstop Tuint32_t + var idx, ki, sbits, top, v5 Tuint64_t + var kd, r, r2, scale, tail, tmp, z Tdouble_t + var y, v1 float64 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = abstop, idx, kd, ki, r, r2, sbits, scale, tail, tmp, top, y, z, v1, v5 + abstop = _top12(tls, x1) & uint32(0x7ff) + if abstop-_top12(tls, float64(5.551115123125783e-17)) >= _top12(tls, float64(512))-_top12(tls, float64(5.551115123125783e-17)) { + if abstop-_top12(tls, float64(5.551115123125783e-17)) >= uint32(0x80000000) { + /* Avoid spurious underflow for tiny x. */ + /* Note: 0 is common input. */ + return float64(1) + x1 + } + if abstop >= _top12(tls, float64(1024)) { + v1 = float64(-X__builtin_inff(tls)) + if *(*Tuint64_t)(unsafe.Pointer(&x1)) == *(*Tuint64_t)(unsafe.Pointer(&v1)) { + return float64(0) + } + if abstop >= _top12(tls, float64(X__builtin_inff(tls))) { + return float64(1) + x1 + } + if *(*Tuint64_t)(unsafe.Pointer(&x1))>>int32(63) != 0 { + return X__math_uflow(tls, uint32(0)) + } else { + return X__math_oflow(tls, uint32(0)) + } + } + /* Large x is special cased below. */ + abstop = uint32(0) + } + /* exp(x) = 2^(k/N) * exp(r), with exp(r) in [2^(-1/2N),2^(1/2N)]. */ + /* x = ln2/N*k + r, with int k and r in [-ln2/2N, ln2/2N]. */ + z = Tdouble_t(X__exp_data.Finvln2N * x1) + /* z - kd is in [-1, 1] in non-nearest rounding modes. */ + y = z + X__exp_data.Fshift + v1 = y + goto _3 +_3: + kd = v1 + v1 = kd + ki = *(*Tuint64_t)(unsafe.Pointer(&v1)) + kd = kd - X__exp_data.Fshift + r = x1 + Tdouble_t(kd*X__exp_data.Fnegln2hiN) + Tdouble_t(kd*X__exp_data.Fnegln2loN) + /* 2^(k/N) ~= scale * (1 + tail). */ + idx = uint64(2) * (ki % Uint64FromInt32(Int32FromInt32(1)< 2^-200 and scale > 2^-739, so there + is no spurious underflow here even without fma. */ + y = scale + Tdouble_t(scale*tmp) + v1 = y + goto _7 +_7: + return v1 +} + +const HUGE = 0 + +func Xexp10(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var y float64 + var _ /* n at bp+0 */ float64 + var _ /* u at bp+8 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _ = y + y = Xmodf(tls, x, bp) + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp + 8)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp + 8)) = **(**float64)(__ccgo_up(bp)) + /* fabs(n) < 16 without raising invalid on nan */ + if *(*Tuint64_t)(unsafe.Pointer(bp + 8))>>int32(52)&uint64(0x7ff) < Uint64FromInt32(Int32FromInt32(0x3ff)+Int32FromInt32(4)) { + if !(y != 0) { + return _p10[int32(**(**float64)(__ccgo_up(bp)))+int32(15)] + } + y = Xexp2(tls, float64(float64(3.321928094887362)*y)) + return float64(y * _p10[int32(**(**float64)(__ccgo_up(bp)))+int32(15)]) + } + return Xpow(tls, float64(10), x) +} + +var _p10 = [31]float64{ + 0: float64(1e-15), + 1: float64(1e-14), + 2: float64(1e-13), + 3: float64(1e-12), + 4: float64(1e-11), + 5: float64(1e-10), + 6: float64(1e-09), + 7: float64(1e-08), + 8: float64(1e-07), + 9: float64(1e-06), + 10: float64(1e-05), + 11: float64(0.0001), + 12: float64(0.001), + 13: float64(0.01), + 14: float64(0.1), + 15: Float64FromInt32(1), + 16: float64(10), + 17: float64(100), + 18: float64(1000), + 19: float64(10000), + 20: float64(100000), + 21: float64(1e+06), + 22: float64(1e+07), + 23: float64(1e+08), + 24: float64(1e+09), + 25: float64(1e+10), + 26: float64(1e+11), + 27: float64(1e+12), + 28: float64(1e+13), + 29: float64(1e+14), + 30: float64(1e+15), +} + +func Xpow10(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xexp10(tls, x) +} + +func Xexp10f(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var y float32 + var _ /* n at bp+0 */ float32 + var _ /* u at bp+4 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _ = y + y = Xmodff(tls, x, bp) + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp + 4)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp + 4)) = **(**float32)(__ccgo_up(bp)) + /* fabsf(n) < 8 without raising invalid on nan */ + if *(*Tuint32_t)(unsafe.Pointer(bp + 4))>>int32(23)&uint32(0xff) < Uint32FromInt32(Int32FromInt32(0x7f)+Int32FromInt32(3)) { + if !(y != 0) { + return _p101[int32(**(**float32)(__ccgo_up(bp)))+int32(7)] + } + y = Xexp2f(tls, float32(Float32FromFloat32(3.321928094887362)*y)) + return float32(y * _p101[int32(**(**float32)(__ccgo_up(bp)))+int32(7)]) + } + return float32(Xexp2(tls, float64(float64(3.321928094887362)*float64(x)))) +} + +var _p101 = [15]float32{ + 0: Float32FromFloat32(1e-07), + 1: Float32FromFloat32(1e-06), + 2: Float32FromFloat32(1e-05), + 3: Float32FromFloat32(0.0001), + 4: Float32FromFloat32(0.001), + 5: Float32FromFloat32(0.01), + 6: Float32FromFloat32(0.1), + 7: Float32FromInt32(1), + 8: float32(10), + 9: float32(100), + 10: float32(1000), + 11: float32(10000), + 12: float32(100000), + 13: float32(1e+06), + 14: float32(1e+07), +} + +func Xpow10f(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xexp10f(tls, x) +} + +func Xexp10l(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xexp10(tls, x) +} + +func Xpow10l(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xexp10l(tls, x) +} + +// C documentation +// +// /* Handle cases that may overflow or underflow when computing the result that +// is scale*(1+TMP) without intermediate rounding. The bit representation of +// scale is in SBITS, however it has a computed exponent that may have +// overflown into the sign bit so that needs to be adjusted before using it as +// a double. (int32_t)KI is the k used in the argument reduction and exponent +// adjustment of scale, positive k here means the result may overflow and +// negative k means the result may underflow. */ +func _specialcase1(tls *TLS, tmp Tdouble_t, sbits Tuint64_t, ki Tuint64_t) (r float64) { + var hi, lo, scale, y3 Tdouble_t + var y, y1, y2, v1 float64 + _, _, _, _, _, _, _, _ = hi, lo, scale, y, y1, y2, y3, v1 + if ki&uint64(0x80000000) == uint64(0) { + /* k > 0, the exponent of scale might have overflowed by 1. */ + sbits = sbits - Uint64FromUint64(1)<> int32(52)) +} + +func Xexp2(tls *TLS, x1 float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x1=%v, (%v:)", tls, x1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var abstop Tuint32_t + var idx, ki, sbits, top, v7 Tuint64_t + var kd, r, r2, scale, tail, tmp Tdouble_t + var y, v1 float64 + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = abstop, idx, kd, ki, r, r2, sbits, scale, tail, tmp, top, y, v1, v7 + abstop = _top121(tls, x1) & uint32(0x7ff) + if abstop-_top121(tls, float64(5.551115123125783e-17)) >= _top121(tls, float64(512))-_top121(tls, float64(5.551115123125783e-17)) { + if abstop-_top121(tls, float64(5.551115123125783e-17)) >= uint32(0x80000000) { + /* Avoid spurious underflow for tiny x. */ + /* Note: 0 is common input. */ + return float64(1) + x1 + } + if abstop >= _top121(tls, float64(1024)) { + v1 = float64(-X__builtin_inff(tls)) + if *(*Tuint64_t)(unsafe.Pointer(&x1)) == *(*Tuint64_t)(unsafe.Pointer(&v1)) { + return float64(0) + } + if abstop >= _top121(tls, float64(X__builtin_inff(tls))) { + return float64(1) + x1 + } + if !(*(*Tuint64_t)(unsafe.Pointer(&x1))>>Int32FromInt32(63) != 0) { + return X__math_oflow(tls, uint32(0)) + } else { + v1 = -Float64FromFloat64(1075) + if *(*Tuint64_t)(unsafe.Pointer(&x1)) >= *(*Tuint64_t)(unsafe.Pointer(&v1)) { + return X__math_uflow(tls, uint32(0)) + } + } + } + v1 = float64(928) + if uint64(2)**(*Tuint64_t)(unsafe.Pointer(&x1)) > uint64(2)**(*Tuint64_t)(unsafe.Pointer(&v1)) { + /* Large x is special cased below. */ + abstop = uint32(0) + } + } + /* exp2(x) = 2^(k/N) * 2^r, with 2^r in [2^(-1/2N),2^(1/2N)]. */ + /* x = k/N + r, with int k and r in [-1/2N, 1/2N]. */ + y = x1 + X__exp_data.Fexp2_shift + v1 = y + goto _5 +_5: + kd = v1 + v1 = kd + ki = *(*Tuint64_t)(unsafe.Pointer(&v1)) /* k. */ + kd = kd - X__exp_data.Fexp2_shift /* k/N for int k. */ + r = x1 - kd + /* 2^(k/N) ~= scale * (1 + tail). */ + idx = uint64(2) * (ki % Uint64FromInt32(Int32FromInt32(1)< 2^-65 and scale > 2^-928, so there + is no spurious underflow here even without fma. */ + y = scale + Tdouble_t(scale*tmp) + v1 = y + goto _9 +_9: + return v1 +} + +const EXP2F_POLY_ORDER = 3 +const EXP2F_TABLE_BITS = 5 +const N1 = 32 + +/* +EXP2F_TABLE_BITS = 5 +EXP2F_POLY_ORDER = 3 + +ULP error: 0.502 (nearest rounding.) +Relative error: 1.69 * 2^-34 in [-1/64, 1/64] (before rounding.) +Wrong count: 168353 (all nearest rounding wrong results with fma.) +Non-nearest ULP error: 1 (rounded ULP error) +*/ + +func _top122(tls *TLS, x float32) (r Tuint32_t) { + return *(*Tuint32_t)(unsafe.Pointer(&x)) >> int32(20) +} + +func Xexp2f(tls *TLS, x2 float32) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x2=%v, (%v:)", tls, x2, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var abstop Tuint32_t + var kd, r, r2, s, xd, y2, z Tdouble_t + var ki, t Tuint64_t + var y, v1 float32 + var y1, v2 float64 + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = abstop, kd, ki, r, r2, s, t, xd, y, y1, y2, z, v1, v2 + xd = float64(x2) + abstop = _top122(tls, x2) & uint32(0x7ff) + if abstop >= _top122(tls, Float32FromFloat32(128)) { + /* |x| >= 128 or x is nan. */ + v1 = -X__builtin_inff(tls) + if *(*Tuint32_t)(unsafe.Pointer(&x2)) == *(*Tuint32_t)(unsafe.Pointer(&v1)) { + return Float32FromFloat32(0) + } + if abstop >= _top122(tls, X__builtin_inff(tls)) { + return x2 + x2 + } + if x2 > Float32FromFloat32(0) { + return X__math_oflowf(tls, uint32(0)) + } + if x2 <= -Float32FromFloat32(150) { + return X__math_uflowf(tls, uint32(0)) + } + } + /* x = k/N + r with r in [-1/(2N), 1/(2N)] and int k. */ + y1 = xd + X__exp2f_data.Fshift_scaled + v2 = y1 + goto _3 +_3: + kd = v2 + v2 = kd + ki = *(*Tuint64_t)(unsafe.Pointer(&v2)) + kd = kd - X__exp2f_data.Fshift_scaled /* k/N for int k. */ + r = xd - kd + /* exp2(x) = 2^(k/N) * 2^r ~= s * (C0*r^3 + C1*r^2 + C2*r + 1) */ + t = **(**Tuint64_t)(__ccgo_up(uintptr(unsafe.Pointer(&X__exp2f_data)) + uintptr(ki%Uint64FromInt32(Int32FromInt32(1)< %v", r) }() + } + return Xexp2(tls, x) +} + +const N2 = 128 + +type Texp_data = struct { + Finvln2N float64 + Fshift float64 + Fnegln2hiN float64 + Fnegln2loN float64 + Fpoly [4]float64 + Fexp2_shift float64 + Fexp2_poly [5]float64 + Ftab [256]Tuint64_t +} + +const N3 = 32 + +/* +EXP2F_TABLE_BITS = 5 +EXP2F_POLY_ORDER = 3 + +ULP error: 0.502 (nearest rounding.) +Relative error: 1.69 * 2^-34 in [-ln2/64, ln2/64] (before rounding.) +Wrong count: 170635 (all nearest rounding wrong results with fma.) +Non-nearest ULP error: 1 (rounded ULP error) +*/ + +func _top123(tls *TLS, x float32) (r Tuint32_t) { + return *(*Tuint32_t)(unsafe.Pointer(&x)) >> int32(20) +} + +func Xexpf(tls *TLS, x2 float32) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x2=%v, (%v:)", tls, x2, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var abstop Tuint32_t + var kd, r, r2, s, xd, y2, z Tdouble_t + var ki, t Tuint64_t + var y, v1 float32 + var y1, v2 float64 + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = abstop, kd, ki, r, r2, s, t, xd, y, y1, y2, z, v1, v2 + xd = float64(x2) + abstop = _top123(tls, x2) & uint32(0x7ff) + if abstop >= _top123(tls, Float32FromFloat32(88)) { + /* |x| >= 88 or x is nan. */ + v1 = -X__builtin_inff(tls) + if *(*Tuint32_t)(unsafe.Pointer(&x2)) == *(*Tuint32_t)(unsafe.Pointer(&v1)) { + return Float32FromFloat32(0) + } + if abstop >= _top123(tls, X__builtin_inff(tls)) { + return x2 + x2 + } + if x2 > Float32FromFloat32(88.72283172607422) { /* x > log(0x1p128) ~= 88.72 */ + return X__math_oflowf(tls, uint32(0)) + } + if x2 < -Float32FromFloat32(103.97207641601562) { /* x < log(0x1p-150) ~= -103.97 */ + return X__math_uflowf(tls, uint32(0)) + } + } + /* x*N/Ln2 = k + r with r in [-1/2, 1/2] and int k. */ + z = Tdouble_t(X__exp2f_data.Finvln2_scaled * xd) + /* Round and convert z to int, the result is in [-150*N, 128*N] and + ideally ties-to-even rule is used, otherwise the magnitude of r + can be bigger which gives larger approximation error. */ + y1 = z + X__exp2f_data.Fshift + v2 = y1 + goto _3 +_3: + kd = v2 + v2 = kd + ki = *(*Tuint64_t)(unsafe.Pointer(&v2)) + kd = kd - X__exp2f_data.Fshift + r = z - kd + /* exp(x) = 2^(k/N) * 2^(r/N) ~= s * (C0*r^3 + C1*r^2 + C2*r + 1) */ + t = **(**Tuint64_t)(__ccgo_up(uintptr(unsafe.Pointer(&X__exp2f_data)) + uintptr(ki%Uint64FromInt32(Int32FromInt32(1)< %v", r) }() + } + return Xexp(tls, x) +} + +var _o_threshold = float64(709.782712893384) /* 0x40862E42, 0xFEFA39EF */ +var _ln2_hi = float64(0.6931471803691238) /* 0x3fe62e42, 0xfee00000 */ +var _ln2_lo = float64(1.9082149292705877e-10) /* 0x3dea39ef, 0x35793c76 */ +var _invln2 = float64(1.4426950408889634) /* 0x3ff71547, 0x652b82fe */ +/* Scaled Q's: Qn_here = 2**n * Qn_above, for R(2*z) where z = hxs = x*x/2: */ +var _Q1 = -Float64FromFloat64(0.03333333333333313) /* BFA11111 111110F4 */ +var _Q2 = float64(0.0015873015872548146) /* 3F5A01A0 19FE5585 */ +var _Q3 = -Float64FromFloat64(7.93650757867488e-05) /* BF14CE19 9EAADBB7 */ +var _Q4 = float64(4.008217827329362e-06) /* 3ED0CFCA 86E65239 */ +var _Q5 = -Float64FromFloat64(2.0109921818362437e-07) /* BE8AFDB7 6E09C32D */ + +func Xexpm1(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var c, e, hfx, hi, hxs, lo, r1, t, twopk, y3 Tdouble_t + var hx Tuint32_t + var k, sign int32 + var y float32 + var y1, y2, v3 float64 + var v1 uint64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + var _ /* u at bp+8 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = c, e, hfx, hi, hx, hxs, k, lo, r1, sign, t, twopk, y, y1, y2, y3, v1, v3 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp + 8)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp + 8)) = x3 + hx = uint32(*(*Tuint64_t)(unsafe.Pointer(bp + 8)) >> int32(32) & uint64(0x7fffffff)) + sign = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp + 8)) >> int32(63)) + /* filter out huge and non-finite argument */ + if hx >= uint32(0x4043687A) { /* if |x|>=56*ln2 */ + *(*float64)(unsafe.Pointer(bp)) = x3 + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 + _2: + if BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)< _o_threshold { + x3 = x3 * float64(8.98846567431158e+307) + return x3 + } + } + /* argument reduction */ + if hx > uint32(0x3fd62e42) { /* if |x| > 0.5 ln2 */ + if hx < uint32(0x3FF0A2B2) { /* and |x| < 1.5 ln2 */ + if !(sign != 0) { + hi = x3 - _ln2_hi + lo = _ln2_lo + k = int32(1) + } else { + hi = x3 + _ln2_hi + lo = -_ln2_lo + k = -int32(1) + } + } else { + if sign != 0 { + v3 = -Float64FromFloat64(0.5) + } else { + v3 = float64(0.5) + } + k = int32(float64(_invln2*x3) + v3) + t = float64(k) + hi = x3 - Tdouble_t(t*_ln2_hi) /* t*ln2_hi is exact here */ + lo = Tdouble_t(t * _ln2_lo) + } + x3 = hi - lo + c = hi - x3 - lo + } else { + if hx < uint32(0x3c900000) { /* |x| < 2**-54, return x */ + if hx < uint32(0x00100000) { + if uint32(4) == uint32(4) { + y = float32(x3) + } else { + if uint32(4) == uint32(8) { + y1 = float64(float32(x3)) + } else { + y2 = float64(float32(x3)) + } + } + } + return x3 + } else { + k = 0 + } + } + /* x is now in primary range */ + hfx = Tdouble_t(float64(0.5) * x3) + hxs = Tdouble_t(x3 * hfx) + r1 = Float64FromFloat64(1) + Tdouble_t(hxs*(float64(_Q1)+Tdouble_t(hxs*(_Q2+Tdouble_t(hxs*(float64(_Q3)+Tdouble_t(hxs*(_Q4+Tdouble_t(hxs*float64(_Q5)))))))))) + t = Float64FromFloat64(3) - Tdouble_t(r1*hfx) + e = Tdouble_t(hxs * ((r1 - t) / (Float64FromFloat64(6) - Tdouble_t(x3*t)))) + if k == 0 { /* c is 0 */ + return x3 - (Tdouble_t(x3*e) - hxs) + } + e = Tdouble_t(x3*(e-c)) - c + e = e - hxs + /* exp(x) ~ 2^k (Xreduced - e + 1) */ + if k == -int32(1) { + return float64(Tdouble_t(Float64FromFloat64(0.5)*(x3-e)) - Float64FromFloat64(0.5)) + } + if k == int32(1) { + if x3 < -Float64FromFloat64(0.25) { + return float64(float64(-Float64FromFloat64(2)) * (e - float64(x3+Float64FromFloat64(0.5)))) + } + return float64(Float64FromFloat64(1) + Tdouble_t(Float64FromFloat64(2)*(x3-e))) + } + *(*Tuint64_t)(unsafe.Pointer(bp + 8)) = Uint64FromInt32(Int32FromInt32(0x3ff)+k) << int32(52) /* 2^k */ + twopk = *(*float64)(unsafe.Pointer(bp + 8)) + if k < 0 || k > int32(56) { /* suffice to return exp(x)-1 */ + y3 = x3 - e + Float64FromFloat64(1) + if k == int32(1024) { + y3 = Tdouble_t(Tdouble_t(y3*Float64FromFloat64(2)) * Float64FromFloat64(8.98846567431158e+307)) + } else { + y3 = Tdouble_t(y3 * twopk) + } + return float64(y3 - Float64FromFloat64(1)) + } + *(*Tuint64_t)(unsafe.Pointer(bp + 8)) = Uint64FromInt32(Int32FromInt32(0x3ff)-k) << int32(52) /* 2^-k */ + if k < int32(20) { + y3 = Tdouble_t((x3 - e + float64(Float64FromInt32(1)-*(*float64)(unsafe.Pointer(bp + 8)))) * twopk) + } else { + y3 = Tdouble_t((x3 - (e + *(*float64)(unsafe.Pointer(bp + 8))) + Float64FromInt32(1)) * twopk) + } + return y3 +} + +var _ln2_hi1 = float32(0.69313812256) /* 0x3f317180 */ +var _ln2_lo1 = float32(9.0580006145e-06) /* 0x3717f7d1 */ +var _invln21 = float32(1.4426950216) /* 0x3fb8aa3b */ +/* + * Domain [-0.34568, 0.34568], range ~[-6.694e-10, 6.696e-10]: + * |6 / x * (1 + 2 * (1 / (exp(x) - 1) - 1 / x)) - q(x)| < 2**-30.04 + * Scaled coefficients: Qn_here = 2**n * Qn_for_q (see s_expm1.c): + */ +var _Q11 = float32(-Float64FromFloat64(0.033333212137)) /* -0x888868.0p-28 */ +var _Q21 = float32(0.0015807170421) /* 0xcf3010.0p-33 */ + +func Xexpm1f(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var c, e, hfx, hi, hxs, lo, r1, t, twopk, y3 Tfloat_t + var hx Tuint32_t + var k, sign int32 + var y, v1 float32 + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = c, e, hfx, hi, hx, hxs, k, lo, r1, sign, t, twopk, y, y1, y2, y3, v1 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + hx = *(*Tuint32_t)(unsafe.Pointer(bp)) & uint32(0x7fffffff) + sign = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(31)) + /* filter out huge and non-finite argument */ + if hx >= uint32(0x4195b844) { /* if |x|>=27*ln2 */ + if hx > uint32(0x7f800000) { /* NaN */ + return x3 + } + if sign != 0 { + return float32(-Int32FromInt32(1)) + } + if hx > uint32(0x42b17217) { /* x > log(FLT_MAX) */ + x3 = x3 * Float32FromFloat32(1.7014118346046923e+38) + return x3 + } + } + /* argument reduction */ + if hx > uint32(0x3eb17218) { /* if |x| > 0.5 ln2 */ + if hx < uint32(0x3F851592) { /* and |x| < 1.5 ln2 */ + if !(sign != 0) { + hi = float64(x3 - _ln2_hi1) + lo = float64(_ln2_lo1) + k = int32(1) + } else { + hi = float64(x3 + _ln2_hi1) + lo = float64(-_ln2_lo1) + k = -int32(1) + } + } else { + if sign != 0 { + v1 = -Float32FromFloat32(0.5) + } else { + v1 = Float32FromFloat32(0.5) + } + k = int32(float32(_invln21*x3) + v1) + t = float64(k) + hi = float64(x3) - Tfloat_t(t*float64(_ln2_hi1)) /* t*ln2_hi is exact here */ + lo = Tfloat_t(t * float64(_ln2_lo1)) + } + x3 = float32(hi - lo) + c = hi - float64(x3) - lo + } else { + if hx < uint32(0x33000000) { /* when |x|<2**-25, return x */ + if hx < uint32(0x00800000) { + if uint32(4) == uint32(4) { + y = float32(x3 * x3) + } else { + if uint32(4) == uint32(8) { + y1 = float64(x3 * x3) + } else { + y2 = float64(x3 * x3) + } + } + } + return x3 + } else { + k = 0 + } + } + /* x is now in primary range */ + hfx = Tfloat_t(Float32FromFloat32(0.5) * x3) + hxs = Tfloat_t(float64(x3) * hfx) + r1 = Float64FromFloat32(1) + Tfloat_t(hxs*(float64(_Q11)+Tfloat_t(hxs*float64(_Q21)))) + t = Float64FromFloat32(3) - Tfloat_t(r1*hfx) + e = Tfloat_t(hxs * ((r1 - t) / (Float64FromFloat32(6) - Tfloat_t(float64(x3)*t)))) + if k == 0 { /* c is 0 */ + return float32(float64(x3) - (Tfloat_t(float64(x3)*e) - hxs)) + } + e = Tfloat_t(float64(x3)*(e-c)) - c + e = e - hxs + /* exp(x) ~ 2^k (Xreduced - e + 1) */ + if k == -int32(1) { + return float32(Tfloat_t(Float64FromFloat32(0.5)*(float64(x3)-e)) - Float64FromFloat32(0.5)) + } + if k == int32(1) { + if x3 < -Float32FromFloat32(0.25) { + return float32(float64(-Float32FromFloat32(2)) * (e - float64(x3+Float32FromFloat32(0.5)))) + } + return float32(Float64FromFloat32(1) + Tfloat_t(Float64FromFloat32(2)*(float64(x3)-e))) + } + *(*Tuint32_t)(unsafe.Pointer(bp)) = Uint32FromInt32((int32(0x7f) + k) << int32(23)) /* 2^k */ + twopk = float64(*(*float32)(unsafe.Pointer(bp))) + if k < 0 || k > int32(56) { /* suffice to return exp(x)-1 */ + y3 = float64(x3) - e + Float64FromFloat32(1) + if k == int32(128) { + y3 = Tfloat_t(Tfloat_t(y3*Float64FromFloat32(2)) * Float64FromFloat32(1.7014118346046923e+38)) + } else { + y3 = Tfloat_t(y3 * twopk) + } + return float32(y3 - Float64FromFloat32(1)) + } + *(*Tuint32_t)(unsafe.Pointer(bp)) = Uint32FromInt32((int32(0x7f) - k) << int32(23)) /* 2^-k */ + if k < int32(23) { + y3 = Tfloat_t((float64(x3) - e + float64(Float32FromInt32(1)-*(*float32)(unsafe.Pointer(bp)))) * twopk) + } else { + y3 = Tfloat_t((float64(x3) - (e + float64(*(*float32)(unsafe.Pointer(bp)))) + Float64FromInt32(1)) * twopk) + } + return float32(y3) +} + +func Xexpm1l(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xexpm1(tls, x) +} + +func Xfabs(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + *(*Tuint64_t)(unsafe.Pointer(bp)) &= -Uint64FromUint64(1) / Uint64FromInt32(2) + return *(*float64)(unsafe.Pointer(bp)) +} + +func Xfabsf(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + *(*Tuint32_t)(unsafe.Pointer(bp)) &= uint32(0x7fffffff) + return *(*float32)(unsafe.Pointer(bp)) +} + +func Xfabsl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfabs(tls, x) +} + +func Xfdim(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uint64 + var v5 float64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _, _ = v1, v5 + *(*float64)(unsafe.Pointer(bp)) = x + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + if BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)< y { + v5 = x - y + } else { + v5 = Float64FromInt32(0) + } + return v5 +} + +func Xfdimf(tls *TLS, x float32, y float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uint32 + var v5 float32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _, _ = v1, v5 + *(*float32)(unsafe.Pointer(bp)) = x + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + if BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return x + } + *(*float32)(unsafe.Pointer(bp)) = y + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _4 +_4: + if BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return y + } + if x > y { + v5 = x - y + } else { + v5 = Float32FromInt32(0) + } + return v5 +} + +func Xfdiml(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfdim(tls, x, y) +} + +func Xfinite(tls *TLS, x float64) (r int32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uint64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _ = v1 + *(*float64)(unsafe.Pointer(bp)) = x + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + return BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) < Uint64FromUint64(0x7ff)< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uint32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _ = v1 + *(*float32)(unsafe.Pointer(bp)) = x + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + return BoolInt32(v1&uint32(0x7fffffff) < uint32(0x7f800000)) +} + +const DBL_EPSILON7 = 2.220446049250313e-16 + +var _toint3 = float64(Float64FromInt32(1) / Float64FromFloat64(2.220446049250313e-16)) + +func Xfloor(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e, v1 int32 + var y float32 + var y1, y2 float64 + var y3 Tdouble_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _ = e, y, y1, y2, y3, v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + e = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + if e >= Int32FromInt32(0x3ff)+Int32FromInt32(52) || x3 == Float64FromInt32(0) { + return x3 + } + /* y = int(x) - x, where int(x) is an integer neighbor of x */ + if *(*Tuint64_t)(unsafe.Pointer(bp))>>int32(63) != 0 { + y3 = x3 - _toint3 + _toint3 - x3 + } else { + y3 = x3 + _toint3 - _toint3 - x3 + } + /* special case because of non-nearest rounding modes */ + if e <= Int32FromInt32(0x3ff)-Int32FromInt32(1) { + if uint32(8) == uint32(4) { + y = float32(y3) + } else { + if uint32(8) == uint32(8) { + y1 = y3 + } else { + y2 = y3 + } + } + if *(*Tuint64_t)(unsafe.Pointer(bp))>>int32(63) != 0 { + v1 = -int32(1) + } else { + v1 = 0 + } + return float64(v1) + } + if y3 > Float64FromInt32(0) { + return float64(x3 + y3 - Float64FromInt32(1)) + } + return x3 + y3 +} + +const DBL_EPSILON8 = 0 + +func Xfloorf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e int32 + var m Tuint32_t + var y float32 + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _ = e, m, y, y1, y2 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + e = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp))>>Int32FromInt32(23)&Uint32FromInt32(0xff)) - int32(0x7f) + if e >= int32(23) { + return x3 + } + if e >= 0 { + m = Uint32FromInt32(int32(0x007fffff) >> e) + if *(*Tuint32_t)(unsafe.Pointer(bp))&m == uint32(0) { + return x3 + } + if uint32(4) == uint32(4) { + y = x3 + Float32FromFloat32(1.329227995784916e+36) + } else { + if uint32(4) == uint32(8) { + y1 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } else { + y2 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } + } + if *(*Tuint32_t)(unsafe.Pointer(bp))>>int32(31) != 0 { + *(*Tuint32_t)(unsafe.Pointer(bp)) += m + } + *(*Tuint32_t)(unsafe.Pointer(bp)) &= ^m + } else { + if uint32(4) == uint32(4) { + y = x3 + Float32FromFloat32(1.329227995784916e+36) + } else { + if uint32(4) == uint32(8) { + y1 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } else { + y2 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } + } + if *(*Tuint32_t)(unsafe.Pointer(bp))>>int32(31) == uint32(0) { + *(*Tuint32_t)(unsafe.Pointer(bp)) = uint32(0) + } else { + if *(*Tuint32_t)(unsafe.Pointer(bp))< %v", r) }() + } + return Xfloor(tls, x) +} + +const DBL_MIN1 = 2.2250738585072014e-308 +const FLT_MIN1 = 1.1754943508222875e-38 +const ZEROINFNAN = 971 + +type Tnum = struct { + Fm Tuint64_t + Fe int32 + Fsign int32 +} + +func _normalize(tls *TLS, x float64) (r Tnum) { + var e, sign, v2 int32 + var ix Tuint64_t + var v1 float64 + _, _, _, _, _ = e, ix, sign, v1, v2 + ix = *(*Tuint64_t)(unsafe.Pointer(&x)) + e = Int32FromUint64(ix >> int32(52)) + sign = e & int32(0x800) + e = e & int32(0x7ff) + if !(e != 0) { + v1 = float64(x * float64(9.223372036854776e+18)) + ix = *(*Tuint64_t)(unsafe.Pointer(&v1)) + e = Int32FromUint64(ix >> int32(52) & uint64(0x7ff)) + if e != 0 { + v2 = e - int32(63) + } else { + v2 = int32(0x800) + } + e = v2 + } + ix = ix & (Uint64FromUint64(1)<> int32(32) + ylo = uint64(uint32(y)) + yhi = y >> int32(32) + t1 = xlo * ylo + t2 = xlo*yhi + xhi*ylo + t3 = xhi * yhi + **(**Tuint64_t)(__ccgo_up(lo)) = t1 + t2<>Int32FromInt32(32) + BoolUint64(t1 > **(**Tuint64_t)(__ccgo_up(lo))) +} + +func Xfma(tls *TLS, x1 float64, y float64, z float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x1=%v y=%v z=%v, (%v:)", tls, x1, y, z, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var c, r float64 + var d, e, nonzero, samesign, sign, v2 int32 + var fltmin float32 + var i Tint64_t + var nx, ny, nz Tnum + var t, zhi, zlo, v1 Tuint64_t + var tiny Tdouble_t + var _ /* rhi at bp+0 */ Tuint64_t + var _ /* rlo at bp+8 */ Tuint64_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = c, d, e, fltmin, i, nonzero, nx, ny, nz, r, samesign, sign, t, tiny, zhi, zlo, v1, v2 + nx = _normalize(tls, x1) + ny = _normalize(tls, y) + nz = _normalize(tls, z) + if nx.Fe >= Int32FromInt32(0x7ff)-Int32FromInt32(0x3ff)-Int32FromInt32(52)-Int32FromInt32(1) || ny.Fe >= Int32FromInt32(0x7ff)-Int32FromInt32(0x3ff)-Int32FromInt32(52)-Int32FromInt32(1) { + return float64(x1*y) + z + } + if nz.Fe >= Int32FromInt32(0x7ff)-Int32FromInt32(0x3ff)-Int32FromInt32(52)-Int32FromInt32(1) { + if nz.Fe > Int32FromInt32(0x7ff)-Int32FromInt32(0x3ff)-Int32FromInt32(52)-Int32FromInt32(1) { /* z==0 */ + return float64(x1*y) + z + } + return z + } + _mul(tls, bp, bp+8, nx.Fm, ny.Fm) + /* either top 20 or 21 bits of rhi and last 2 bits of rlo are 0 */ + /* align exponents */ + e = nx.Fe + ny.Fe + d = nz.Fe - e + /* shift bits z<<=kz, r>>=kr, so kz+kr == d, set e = e+kr (== ez-kz) */ + if d > 0 { + if d < int32(64) { + zlo = nz.Fm << d + zhi = nz.Fm >> (int32(64) - d) + } else { + zlo = uint64(0) + zhi = nz.Fm + e = nz.Fe - int32(64) + d = d - int32(64) + if d == 0 { + } else { + if d < int32(64) { + **(**Tuint64_t)(__ccgo_up(bp + 8)) = **(**Tuint64_t)(__ccgo_up(bp))<<(int32(64)-d) | **(**Tuint64_t)(__ccgo_up(bp + 8))>>d | BoolUint64(!!(**(**Tuint64_t)(__ccgo_up(bp + 8))<<(Int32FromInt32(64)-d) != 0)) + **(**Tuint64_t)(__ccgo_up(bp)) = **(**Tuint64_t)(__ccgo_up(bp)) >> d + } else { + **(**Tuint64_t)(__ccgo_up(bp + 8)) = uint64(1) + **(**Tuint64_t)(__ccgo_up(bp)) = uint64(0) + } + } + } + } else { + zhi = uint64(0) + d = -d + if d == 0 { + zlo = nz.Fm + } else { + if d < int32(64) { + zlo = nz.Fm>>d | BoolUint64(!!(nz.Fm<<(Int32FromInt32(64)-d) != 0)) + } else { + zlo = uint64(1) + } + } + } + /* add */ + sign = nx.Fsign ^ ny.Fsign + samesign = BoolInt32(!(sign^nz.Fsign != 0)) + nonzero = int32(1) + if samesign != 0 { + /* r += z */ + **(**Tuint64_t)(__ccgo_up(bp + 8)) = **(**Tuint64_t)(__ccgo_up(bp + 8)) + zlo + **(**Tuint64_t)(__ccgo_up(bp)) = **(**Tuint64_t)(__ccgo_up(bp)) + (zhi + BoolUint64(**(**Tuint64_t)(__ccgo_up(bp + 8)) < zlo)) + } else { + /* r -= z */ + t = **(**Tuint64_t)(__ccgo_up(bp + 8)) + **(**Tuint64_t)(__ccgo_up(bp + 8)) = **(**Tuint64_t)(__ccgo_up(bp + 8)) - zlo + **(**Tuint64_t)(__ccgo_up(bp)) = **(**Tuint64_t)(__ccgo_up(bp)) - zhi - BoolUint64(t < **(**Tuint64_t)(__ccgo_up(bp + 8))) + if **(**Tuint64_t)(__ccgo_up(bp))>>int32(63) != 0 { + **(**Tuint64_t)(__ccgo_up(bp + 8)) = -**(**Tuint64_t)(__ccgo_up(bp + 8)) + **(**Tuint64_t)(__ccgo_up(bp)) = -**(**Tuint64_t)(__ccgo_up(bp)) - BoolUint64(!!(**(**Tuint64_t)(__ccgo_up(bp + 8)) != 0)) + sign = BoolInt32(!(sign != 0)) + } + nonzero = BoolInt32(!!(**(**Tuint64_t)(__ccgo_up(bp)) != 0)) + } + /* set rhi to top 63bit of the result (last bit is sticky) */ + if nonzero != 0 { + e = e + int32(64) + v1 = **(**Tuint64_t)(__ccgo_up(bp)) + if v1>>Int32FromInt32(32) != 0 { + v2 = _a_clz_32(tls, uint32(v1>>int32(32))) + goto _3 + } + v2 = _a_clz_32(tls, uint32(v1)) + int32(32) + goto _3 + _3: + d = v2 - int32(1) + /* note: d > 0 */ + **(**Tuint64_t)(__ccgo_up(bp)) = **(**Tuint64_t)(__ccgo_up(bp))<>(int32(64)-d) | BoolUint64(!!(**(**Tuint64_t)(__ccgo_up(bp + 8))<>Int32FromInt32(32) != 0 { + v2 = _a_clz_32(tls, uint32(v1>>int32(32))) + goto _6 + } + v2 = _a_clz_32(tls, uint32(v1)) + int32(32) + goto _6 + _6: + d = v2 - int32(1) + if d < 0 { + **(**Tuint64_t)(__ccgo_up(bp)) = **(**Tuint64_t)(__ccgo_up(bp + 8))>>int32(1) | **(**Tuint64_t)(__ccgo_up(bp + 8))&uint64(1) + } else { + **(**Tuint64_t)(__ccgo_up(bp)) = **(**Tuint64_t)(__ccgo_up(bp + 8)) << d + } + } else { + /* exact +-0 */ + return float64(x1*y) + z + } + } + e = e - d + /* convert to double */ + i = Int64FromUint64(**(**Tuint64_t)(__ccgo_up(bp))) /* i is in [1<<62,(1<<63)-1] */ + if sign != 0 { + i = -i + } + r = float64(i) /* |r| is in [0x1p62,0x1p63] */ + if e < -Int32FromInt32(1022)-Int32FromInt32(62) { + /* result is subnormal before rounding */ + if e == -Int32FromInt32(1022)-Int32FromInt32(63) { + c = float64(9.223372036854776e+18) + if sign != 0 { + c = -c + } + if r == c { + /* min normal after rounding, underflow depends + on arch behaviour which can be imitated by + a double to float conversion */ + fltmin = float32(float64(Float64FromFloat64(1.0842021401737618e-19)*Float64FromFloat32(1.1754943508222875e-38)) * r) + return float64(Float64FromFloat64(2.2250738585072014e-308) / Float64FromFloat32(1.1754943508222875e-38) * float64(fltmin)) + } + /* one bit is lost when scaled, add another top bit to + only round once at conversion if it is inexact */ + if **(**Tuint64_t)(__ccgo_up(bp))<>int32(1) | **(**Tuint64_t)(__ccgo_up(bp))&uint64(1) | Uint64FromUint64(1)<>d | BoolUint64(!!(**(**Tuint64_t)(__ccgo_up(bp))<<(Int32FromInt32(64)-d) != 0))) << d) + if sign != 0 { + i = -i + } + r = float64(i) + } + } + return Xscalbn(tls, r, e) +} + +const DBL_MIN2 = 0 +const FLT_MIN2 = 0 + +func Xfmal(tls *TLS, x float64, y float64, z float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v z=%v, (%v:)", tls, x, y, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfma(tls, x, y, z) +} + +func Xfmax(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1, v3, v5 uint64 + var v9 float64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _, _, _, _ = v1, v3, v5, v9 + *(*float64)(unsafe.Pointer(bp)) = x + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + if BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(63)) != Int32FromUint64(v3>>Int32FromInt32(63)) { + *(*float64)(unsafe.Pointer(bp)) = x + v5 = *(*uint64)(unsafe.Pointer(bp)) + goto _11 + _11: + if Int32FromUint64(v5>>Int32FromInt32(63)) != 0 { + v9 = y + } else { + v9 = x + } + return v9 + } + if x < y { + v9 = y + } else { + v9 = x + } + return v9 +} + +func Xfmaxf(tls *TLS, x float32, y float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1, v3, v5 uint32 + var v9 float32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _, _, _, _ = v1, v3, v5, v9 + *(*float32)(unsafe.Pointer(bp)) = x + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + if BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return y + } + *(*float32)(unsafe.Pointer(bp)) = y + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _4 +_4: + if BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return x + } + /* handle signed zeroes, see C99 Annex F.9.9.2 */ + *(*float32)(unsafe.Pointer(bp)) = x + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _6 +_6: + *(*float32)(unsafe.Pointer(bp)) = y + v3 = *(*uint32)(unsafe.Pointer(bp)) + goto _8 +_8: + if Int32FromUint32(v1>>Int32FromInt32(31)) != Int32FromUint32(v3>>Int32FromInt32(31)) { + *(*float32)(unsafe.Pointer(bp)) = x + v5 = *(*uint32)(unsafe.Pointer(bp)) + goto _11 + _11: + if Int32FromUint32(v5>>Int32FromInt32(31)) != 0 { + v9 = y + } else { + v9 = x + } + return v9 + } + if x < y { + v9 = y + } else { + v9 = x + } + return v9 +} + +func Xfmaxl(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfmax(tls, x, y) +} + +func Xfmin(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1, v3, v5 uint64 + var v9 float64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _, _, _, _ = v1, v3, v5, v9 + *(*float64)(unsafe.Pointer(bp)) = x + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + if BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(63)) != Int32FromUint64(v3>>Int32FromInt32(63)) { + *(*float64)(unsafe.Pointer(bp)) = x + v5 = *(*uint64)(unsafe.Pointer(bp)) + goto _11 + _11: + if Int32FromUint64(v5>>Int32FromInt32(63)) != 0 { + v9 = x + } else { + v9 = y + } + return v9 + } + if x < y { + v9 = x + } else { + v9 = y + } + return v9 +} + +func Xfminf(tls *TLS, x float32, y float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1, v3, v5 uint32 + var v9 float32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _, _, _, _ = v1, v3, v5, v9 + *(*float32)(unsafe.Pointer(bp)) = x + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + if BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return y + } + *(*float32)(unsafe.Pointer(bp)) = y + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _4 +_4: + if BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return x + } + /* handle signed zeros, see C99 Annex F.9.9.2 */ + *(*float32)(unsafe.Pointer(bp)) = x + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _6 +_6: + *(*float32)(unsafe.Pointer(bp)) = y + v3 = *(*uint32)(unsafe.Pointer(bp)) + goto _8 +_8: + if Int32FromUint32(v1>>Int32FromInt32(31)) != Int32FromUint32(v3>>Int32FromInt32(31)) { + *(*float32)(unsafe.Pointer(bp)) = x + v5 = *(*uint32)(unsafe.Pointer(bp)) + goto _11 + _11: + if Int32FromUint32(v5>>Int32FromInt32(31)) != 0 { + v9 = x + } else { + v9 = y + } + return v9 + } + if x < y { + v9 = x + } else { + v9 = y + } + return v9 +} + +func Xfminl(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfmin(tls, x, y) +} + +func Xfmod(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var ex, ey, sx int32 + var i, uxi Tuint64_t + var v1 uint64 + var v3 bool + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + var _ /* ux at bp+8 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + var _ /* uy at bp+16 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _ = ex, ey, i, sx, uxi, v1, v3 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp + 8)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp + 8)) = x + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp + 16)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp + 16)) = y + ex = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp + 8)) >> int32(52) & uint64(0x7ff)) + ey = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp + 16)) >> int32(52) & uint64(0x7ff)) + sx = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp + 8)) >> int32(63)) + /* in the followings uxi should be ux.i, but then gcc wrongly adds */ + /* float load/store to inner loops ruining performance and code size */ + uxi = *(*Tuint64_t)(unsafe.Pointer(bp + 8)) + if v3 = *(*Tuint64_t)(unsafe.Pointer(bp + 16))<>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>int32(63) == uint64(0)) { + break + } + goto _4 + _4: + ; + ex = ex - 1 + i = i << uint64(1) + } + uxi = uxi << Uint64FromInt32(-ex+int32(1)) + } else { + uxi = uxi & (-Uint64FromUint64(1) >> Int32FromInt32(12)) + uxi = uxi | Uint64FromUint64(1)<>int32(63) == uint64(0)) { + break + } + goto _5 + _5: + ; + ey = ey - 1 + i = i << uint64(1) + } + *(*Tuint64_t)(unsafe.Pointer(bp + 16)) <<= Uint64FromInt32(-ey + int32(1)) + } else { + *(*Tuint64_t)(unsafe.Pointer(bp + 16)) &= -Uint64FromUint64(1) >> Int32FromInt32(12) + *(*Tuint64_t)(unsafe.Pointer(bp + 16)) |= Uint64FromUint64(1) << Int32FromInt32(52) + } + /* x mod y */ + for { + if !(ex > ey) { + break + } + i = uxi - *(*Tuint64_t)(unsafe.Pointer(bp + 16)) + if i>>int32(63) == uint64(0) { + if i == uint64(0) { + return float64(Float64FromInt32(0) * x) + } + uxi = i + } + uxi = uxi << uint64(1) + goto _6 + _6: + ; + ex = ex - 1 + } + i = uxi - *(*Tuint64_t)(unsafe.Pointer(bp + 16)) + if i>>int32(63) == uint64(0) { + if i == uint64(0) { + return float64(Float64FromInt32(0) * x) + } + uxi = i + } + for { + if !(uxi>>int32(52) == uint64(0)) { + break + } + goto _7 + _7: + ; + uxi = uxi << uint64(1) + ex = ex - 1 + } + /* scale result */ + if ex > 0 { + uxi = uxi - Uint64FromUint64(1)<> Uint64FromInt32(-ex+int32(1)) + } + uxi = uxi | Uint64FromInt32(sx)< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ex, ey int32 + var i, sx, uxi Tuint32_t + var v1 uint32 + var v3 bool + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + var _ /* ux at bp+4 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + var _ /* uy at bp+8 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _, _ = ex, ey, i, sx, uxi, v1, v3 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp + 4)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp + 4)) = x + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp + 8)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp + 8)) = y + ex = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp + 4)) >> int32(23) & uint32(0xff)) + ey = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp + 8)) >> int32(23) & uint32(0xff)) + sx = *(*Tuint32_t)(unsafe.Pointer(bp + 4)) & uint32(0x80000000) + uxi = *(*Tuint32_t)(unsafe.Pointer(bp + 4)) + if v3 = *(*Tuint32_t)(unsafe.Pointer(bp + 8))< uint32(0x7f800000)) != 0 || ex == int32(0xff) { + return float32(x*y) / float32(x*y) + } + if uxi<>int32(31) == uint32(0)) { + break + } + goto _4 + _4: + ; + ex = ex - 1 + i = i << uint32(1) + } + uxi = uxi << Uint32FromInt32(-ex+int32(1)) + } else { + uxi = uxi & (-Uint32FromUint32(1) >> Int32FromInt32(9)) + uxi = uxi | Uint32FromUint32(1)<>int32(31) == uint32(0)) { + break + } + goto _5 + _5: + ; + ey = ey - 1 + i = i << uint32(1) + } + *(*Tuint32_t)(unsafe.Pointer(bp + 8)) <<= Uint32FromInt32(-ey + int32(1)) + } else { + *(*Tuint32_t)(unsafe.Pointer(bp + 8)) &= -Uint32FromUint32(1) >> Int32FromInt32(9) + *(*Tuint32_t)(unsafe.Pointer(bp + 8)) |= Uint32FromUint32(1) << Int32FromInt32(23) + } + /* x mod y */ + for { + if !(ex > ey) { + break + } + i = uxi - *(*Tuint32_t)(unsafe.Pointer(bp + 8)) + if i>>int32(31) == uint32(0) { + if i == uint32(0) { + return float32(Float32FromInt32(0) * x) + } + uxi = i + } + uxi = uxi << uint32(1) + goto _6 + _6: + ; + ex = ex - 1 + } + i = uxi - *(*Tuint32_t)(unsafe.Pointer(bp + 8)) + if i>>int32(31) == uint32(0) { + if i == uint32(0) { + return float32(Float32FromInt32(0) * x) + } + uxi = i + } + for { + if !(uxi>>int32(23) == uint32(0)) { + break + } + goto _7 + _7: + ; + uxi = uxi << uint32(1) + ex = ex - 1 + } + /* scale result up */ + if ex > 0 { + uxi = uxi - Uint32FromUint32(1)<> Uint32FromInt32(-ex+int32(1)) + } + uxi = uxi | sx + *(*Tuint32_t)(unsafe.Pointer(bp + 4)) = uxi + return *(*float32)(unsafe.Pointer(bp + 4)) +} + +func Xfmodl(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfmod(tls, x, y) +} + +func Xfrexp(tls *TLS, x float64, e uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v e=%v, (%v:)", tls, x, e, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ee int32 + var _ /* y at bp+0 */ struct { + Fi [0]Tuint64_t + Fd float64 + } + _ = ee + *(*struct { + Fi [0]Tuint64_t + Fd float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Fd float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + ee = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + if !(ee != 0) { + if x != 0 { + x = Xfrexp(tls, float64(x*float64(1.8446744073709552e+19)), e) + **(**int32)(__ccgo_up(e)) -= int32(64) + } else { + **(**int32)(__ccgo_up(e)) = 0 + } + return x + } else { + if ee == int32(0x7ff) { + return x + } + } + **(**int32)(__ccgo_up(e)) = ee - int32(0x3fe) + *(*Tuint64_t)(unsafe.Pointer(bp)) &= uint64(0x800fffffffffffff) + *(*Tuint64_t)(unsafe.Pointer(bp)) |= uint64(0x3fe0000000000000) + return *(*float64)(unsafe.Pointer(bp)) +} + +func Xfrexpf(tls *TLS, x float32, e uintptr) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v e=%v, (%v:)", tls, x, e, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ee int32 + var v1 uintptr + var _ /* y at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _ = ee, v1 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + ee = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(23) & uint32(0xff)) + if !(ee != 0) { + if x != 0 { + x = Xfrexpf(tls, float32(float64(x)*float64(1.8446744073709552e+19)), e) + **(**int32)(__ccgo_up(e)) -= int32(64) + } else { + **(**int32)(__ccgo_up(e)) = 0 + } + return x + } else { + if ee == int32(0xff) { + return x + } + } + **(**int32)(__ccgo_up(e)) = ee - int32(0x7e) + v1 = bp + *(*Tuint32_t)(unsafe.Pointer(v1)) = Tuint32_t(*(*Tuint32_t)(unsafe.Pointer(v1)) & Uint32FromUint32(0x807fffff)) + v1 = bp + *(*Tuint32_t)(unsafe.Pointer(v1)) = Tuint32_t(*(*Tuint32_t)(unsafe.Pointer(v1)) | Uint32FromUint32(0x3f000000)) + return *(*float32)(unsafe.Pointer(bp)) +} + +func Xfrexpl(tls *TLS, x float64, e uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v e=%v, (%v:)", tls, x, e, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfrexp(tls, x, e) +} + +const SPLIT = 1 + +func _sq(tls *TLS, hi uintptr, lo uintptr, x float64) { + var xc, xh, xl Tdouble_t + _, _, _ = xc, xh, xl + xc = Tdouble_t(x * float64(Float64FromFloat64(1.34217728e+08)+Float64FromInt32(1))) + xh = x - xc + xc + xl = x - xh + **(**Tdouble_t)(__ccgo_up(hi)) = Tdouble_t(x * x) + **(**Tdouble_t)(__ccgo_up(lo)) = Tdouble_t(xh*xh) - **(**Tdouble_t)(__ccgo_up(hi)) + Tdouble_t(Tdouble_t(Float64FromInt32(2)*xh)*xl) + Tdouble_t(xl*xl) +} + +func Xhypot(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + var ex, ey int32 + var ut struct { + Fi [0]Tuint64_t + Ff float64 + } + var z Tdouble_t + var _ /* hx at bp+16 */ Tdouble_t + var _ /* hy at bp+32 */ Tdouble_t + var _ /* lx at bp+24 */ Tdouble_t + var _ /* ly at bp+40 */ Tdouble_t + var _ /* ux at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + var _ /* uy at bp+8 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _ = ex, ey, ut, z + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp + 8)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp + 8)) = y + /* arrange |x| >= |y| */ + *(*Tuint64_t)(unsafe.Pointer(bp)) &= -Uint64FromUint64(1) >> Int32FromInt32(1) + *(*Tuint64_t)(unsafe.Pointer(bp + 8)) &= -Uint64FromUint64(1) >> Int32FromInt32(1) + if *(*Tuint64_t)(unsafe.Pointer(bp)) < *(*Tuint64_t)(unsafe.Pointer(bp + 8)) { + ut = **(**struct { + Fi [0]Tuint64_t + Ff float64 + })(__ccgo_up(bp)) + **(**struct { + Fi [0]Tuint64_t + Ff float64 + })(__ccgo_up(bp)) = **(**struct { + Fi [0]Tuint64_t + Ff float64 + })(__ccgo_up(bp + 8)) + **(**struct { + Fi [0]Tuint64_t + Ff float64 + })(__ccgo_up(bp + 8)) = ut + } + /* special cases */ + ex = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52)) + ey = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp + 8)) >> int32(52)) + x = *(*float64)(unsafe.Pointer(bp)) + y = *(*float64)(unsafe.Pointer(bp + 8)) + /* note: hypot(inf,nan) == inf */ + if ey == int32(0x7ff) { + return y + } + if ex == int32(0x7ff) || *(*Tuint64_t)(unsafe.Pointer(bp + 8)) == uint64(0) { + return x + } + /* note: hypot(x,y) ~= x + y*y/x/2 with inexact for small y/x */ + /* 64 difference is enough for ld80 double_t */ + if ex-ey > int32(64) { + return x + y + } + /* precise sqrt argument in nearest rounding mode without overflow */ + /* xh*xh must not overflow and xl*xl must not underflow in sq */ + z = Float64FromInt32(1) + if ex > Int32FromInt32(0x3ff)+Int32FromInt32(510) { + z = Float64FromFloat64(5.260135901548374e+210) + x = x * float64(1.90109156629516e-211) + y = y * float64(1.90109156629516e-211) + } else { + if ey < Int32FromInt32(0x3ff)-Int32FromInt32(450) { + z = Float64FromFloat64(1.90109156629516e-211) + x = x * float64(5.260135901548374e+210) + y = y * float64(5.260135901548374e+210) + } + } + _sq(tls, bp+16, bp+24, x) + _sq(tls, bp+32, bp+40, y) + return float64(z * Xsqrt(tls, float64(**(**Tdouble_t)(__ccgo_up(bp + 40))+**(**Tdouble_t)(__ccgo_up(bp + 24))+**(**Tdouble_t)(__ccgo_up(bp + 32))+**(**Tdouble_t)(__ccgo_up(bp + 16))))) +} + +func Xhypotf(tls *TLS, x float32, y float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ut struct { + Fi [0]Tuint32_t + Ff float32 + } + var z Tfloat_t + var _ /* ux at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + var _ /* uy at bp+4 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _ = ut, z + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp + 4)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp + 4)) = y + *(*Tuint32_t)(unsafe.Pointer(bp)) &= -Uint32FromUint32(1) >> Int32FromInt32(1) + *(*Tuint32_t)(unsafe.Pointer(bp + 4)) &= -Uint32FromUint32(1) >> Int32FromInt32(1) + if *(*Tuint32_t)(unsafe.Pointer(bp)) < *(*Tuint32_t)(unsafe.Pointer(bp + 4)) { + ut = **(**struct { + Fi [0]Tuint32_t + Ff float32 + })(__ccgo_up(bp)) + **(**struct { + Fi [0]Tuint32_t + Ff float32 + })(__ccgo_up(bp)) = **(**struct { + Fi [0]Tuint32_t + Ff float32 + })(__ccgo_up(bp + 4)) + **(**struct { + Fi [0]Tuint32_t + Ff float32 + })(__ccgo_up(bp + 4)) = ut + } + x = *(*float32)(unsafe.Pointer(bp)) + y = *(*float32)(unsafe.Pointer(bp + 4)) + if *(*Tuint32_t)(unsafe.Pointer(bp + 4)) == Uint32FromInt32(Int32FromInt32(0xff)<= Uint32FromInt32(Int32FromInt32(0xff)<= Uint32FromInt32(Int32FromInt32(25)<= Uint32FromInt32((Int32FromInt32(0x7f)+Int32FromInt32(60))< %v", r) }() + } + return Xhypot(tls, x, y) +} + +func Xilogb(tls *TLS, x3 float64) (r int32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e, v2 int32 + var i Tuint64_t + var y float32 + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _ = e, i, y, y1, y2, v2 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + i = *(*Tuint64_t)(unsafe.Pointer(bp)) + e = Int32FromUint64(i >> int32(52) & uint64(0x7ff)) + if !(e != 0) { + i = i << uint64(12) + if i == uint64(0) { + if uint32(4) == uint32(4) { + y = Float32FromInt32(0) / Float32FromFloat32(0) + } else { + if uint32(4) == uint32(8) { + y1 = float64(Float32FromInt32(0) / Float32FromFloat32(0)) + } else { + y2 = float64(Float32FromInt32(0) / Float32FromFloat32(0)) + } + } + return -Int32FromInt32(1) - Int32FromInt32(0x7fffffff) + } + /* subnormal x */ + e = -int32(0x3ff) + for { + if !(i>>int32(63) == uint64(0)) { + break + } + goto _1 + _1: + ; + e = e - 1 + i = i << uint64(1) + } + return e + } + if e == int32(0x7ff) { + if uint32(4) == uint32(4) { + y = Float32FromInt32(0) / Float32FromFloat32(0) + } else { + if uint32(4) == uint32(8) { + y1 = float64(Float32FromInt32(0) / Float32FromFloat32(0)) + } else { + y2 = float64(Float32FromInt32(0) / Float32FromFloat32(0)) + } + } + if i< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e, v2 int32 + var i Tuint32_t + var y float32 + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _ = e, i, y, y1, y2, v2 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + i = *(*Tuint32_t)(unsafe.Pointer(bp)) + e = Int32FromUint32(i >> int32(23) & uint32(0xff)) + if !(e != 0) { + i = i << uint32(9) + if i == uint32(0) { + if uint32(4) == uint32(4) { + y = Float32FromInt32(0) / Float32FromFloat32(0) + } else { + if uint32(4) == uint32(8) { + y1 = float64(Float32FromInt32(0) / Float32FromFloat32(0)) + } else { + y2 = float64(Float32FromInt32(0) / Float32FromFloat32(0)) + } + } + return -Int32FromInt32(1) - Int32FromInt32(0x7fffffff) + } + /* subnormal x */ + e = -int32(0x7f) + for { + if !(i>>int32(31) == uint32(0)) { + break + } + goto _1 + _1: + ; + e = e - 1 + i = i << uint32(1) + } + return e + } + if e == int32(0xff) { + if uint32(4) == uint32(4) { + y = Float32FromInt32(0) / Float32FromFloat32(0) + } else { + if uint32(4) == uint32(8) { + y1 = float64(Float32FromInt32(0) / Float32FromFloat32(0)) + } else { + y2 = float64(Float32FromInt32(0) / Float32FromFloat32(0)) + } + } + if i< %v", r) }() + } + return Xilogb(tls, x) +} + +var _invsqrtpi = float64(0.5641895835477563) /* 0x3FE20DD7, 0x50429B6D */ +var _tpi = float64(0.6366197723675814) /* 0x3FE45F30, 0x6DC9C883 */ + +// C documentation +// +// /* common method when |x|>=2 */ +func _common(tls *TLS, ix Tuint32_t, x float64, y0 int32) (r float64) { + var c, cc, s, ss, z float64 + _, _, _, _, _ = c, cc, s, ss, z + /* + * j0(x) = sqrt(2/(pi*x))*(p0(x)*cos(x-pi/4)-q0(x)*sin(x-pi/4)) + * y0(x) = sqrt(2/(pi*x))*(p0(x)*sin(x-pi/4)+q0(x)*cos(x-pi/4)) + * + * sin(x-pi/4) = (sin(x) - cos(x))/sqrt(2) + * cos(x-pi/4) = (sin(x) + cos(x))/sqrt(2) + * sin(x) +- cos(x) = -cos(2x)/(sin(x) -+ cos(x)) + */ + s = Xsin(tls, x) + c = Xcos(tls, x) + if y0 != 0 { + c = -c + } + cc = s + c + /* avoid overflow in 2*x, big ulp error when x>=0x1p1023 */ + if ix < uint32(0x7fe00000) { + ss = s - c + z = -Xcos(tls, float64(Float64FromInt32(2)*x)) + if float64(s*c) < Float64FromInt32(0) { + cc = z / ss + } else { + ss = z / cc + } + if ix < uint32(0x48000000) { + if y0 != 0 { + ss = -ss + } + cc = float64(_pzero(tls, x)*cc) - float64(_qzero(tls, x)*ss) + } + } + return float64(_invsqrtpi*cc) / Xsqrt(tls, x) +} + +// C documentation +// +// /* R0/S0 on [0, 2.00] */ + +var _R02 = float64(0.015624999999999995) /* 0x3F8FFFFF, 0xFFFFFFFD */ +var _R03 = -Float64FromFloat64(0.00018997929423885472) /* 0xBF28E6A5, 0xB61AC6E9 */ +var _R04 = float64(1.8295404953270067e-06) /* 0x3EBEB1D1, 0x0C503919 */ +var _R05 = -Float64FromFloat64(4.618326885321032e-09) /* 0xBE33D5E7, 0x73D63FCE */ +var _S01 = float64(0.015619102946489001) /* 0x3F8FFCE8, 0x82C8C2A4 */ +var _S02 = float64(0.00011692678466333745) /* 0x3F1EA6D2, 0xDD57DBF4 */ +var _S03 = float64(5.135465502073181e-07) /* 0x3EA13B54, 0xCE84D5A9 */ +var _S04 = float64(1.1661400333379e-09) /* 0x3E1408BC, 0xF4745D8F */ + +func Xj0(tls *TLS, x float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var ix Tuint32_t + var r, s, z float64 + _, _, _, _ = ix, r, s, z + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + ix = ix & uint32(0x7fffffff) + /* j0(+-inf)=0, j0(nan)=nan */ + if ix >= uint32(0x7ff00000) { + return Float64FromInt32(1) / float64(x*x) + } + x = Xfabs(tls, x) + if ix >= uint32(0x40000000) { /* |x| >= 2 */ + /* large ulp error near zeros: 2.4, 5.52, 8.6537,.. */ + return _common(tls, ix, x, 0) + } + /* 1 - x*x/4 + x*x*R(x^2)/S(x^2) */ + if ix >= uint32(0x3f200000) { /* |x| >= 2**-13 */ + /* up to 4ulp error close to 2 */ + z = float64(x * x) + r = float64(z * (_R02 + float64(z*(_R03+float64(z*(_R04+float64(z*_R05))))))) + s = Float64FromInt32(1) + float64(z*(_S01+float64(z*(_S02+float64(z*(_S03+float64(z*_S04))))))) + return float64((Float64FromInt32(1)+x/Float64FromInt32(2))*(Float64FromInt32(1)-x/Float64FromInt32(2))) + float64(z*(r/s)) + } + /* 1 - x*x/4 */ + /* prevent underflow */ + /* inexact should be raised when x!=0, this is not done correctly */ + if ix >= uint32(0x38000000) { /* |x| >= 2**-127 */ + x = float64(float64(float64(0.25)*x) * x) + } + return Float64FromInt32(1) - x +} + +var _u00 = -Float64FromFloat64(0.07380429510868723) /* 0xBFB2E4D6, 0x99CBD01F */ +var _u01 = float64(0.17666645250918112) /* 0x3FC69D01, 0x9DE9E3FC */ +var _u02 = -Float64FromFloat64(0.01381856719455969) /* 0xBF8C4CE8, 0xB16CFA97 */ +var _u03 = float64(0.00034745343209368365) /* 0x3F36C54D, 0x20B29B6B */ +var _u04 = -Float64FromFloat64(3.8140705372436416e-06) /* 0xBECFFEA7, 0x73D25CAD */ +var _u05 = float64(1.9559013703502292e-08) /* 0x3E550057, 0x3B4EABD4 */ +var _u06 = -Float64FromFloat64(3.982051941321034e-11) /* 0xBDC5E43D, 0x693FB3C8 */ +var _v01 = float64(0.01273048348341237) /* 0x3F8A1270, 0x91C9C71A */ +var _v02 = float64(7.600686273503533e-05) /* 0x3F13ECBB, 0xF578C6C1 */ +var _v03 = float64(2.591508518404578e-07) /* 0x3E91642D, 0x7FF202FD */ +var _v04 = float64(4.4111031133267547e-10) /* 0x3DFE5018, 0x3BD6D9EF */ + +func Xy0(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __u Tuint64_t + var ix, lx Tuint32_t + var u, v, z float64 + _, _, _, _, _, _ = __u, ix, lx, u, v, z + __u = *(*Tuint64_t)(unsafe.Pointer(&x)) + ix = uint32(__u >> int32(32)) + lx = uint32(__u) + /* y0(nan)=nan, y0(<0)=nan, y0(0)=-inf, y0(inf)=0 */ + if ix<>int32(31) != 0 { + return Float64FromInt32(0) / Float64FromFloat64(0) + } + if ix >= uint32(0x7ff00000) { + return Float64FromInt32(1) / x + } + if ix >= uint32(0x40000000) { /* x >= 2 */ + /* large ulp errors near zeros: 3.958, 7.086,.. */ + return _common(tls, ix, x, int32(1)) + } + /* U(x^2)/V(x^2) + (2/pi)*j0(x)*log(x) */ + if ix >= uint32(0x3e400000) { /* x >= 2**-27 */ + /* large ulp error near the first zero, x ~= 0.89 */ + z = float64(x * x) + u = _u00 + float64(z*(_u01+float64(z*(_u02+float64(z*(_u03+float64(z*(_u04+float64(z*(_u05+float64(z*_u06))))))))))) + v = float64(1) + float64(z*(_v01+float64(z*(_v02+float64(z*(_v03+float64(z*_v04))))))) + return u/v + float64(_tpi*float64(Xj0(tls, x)*Xlog(tls, x))) + } + return _u00 + float64(_tpi*Xlog(tls, x)) +} + +// C documentation +// +// /* The asymptotic expansions of pzero is +// * 1 - 9/128 s^2 + 11025/98304 s^4 - ..., where s = 1/x. +// * For x >= 2, We approximate pzero by +// * pzero(x) = 1 + (R/S) +// * where R = pR0 + pR1*s^2 + pR2*s^4 + ... + pR5*s^10 +// * S = 1 + pS0*s^2 + ... + pS4*s^10 +// * and +// * | pzero(x)-1-R/S | <= 2 ** ( -60.26) +// */ +var _pR8 = [6]float64{ + 1: -Float64FromFloat64(0.07031249999999004), + 2: -Float64FromFloat64(8.081670412753498), + 3: -Float64FromFloat64(257.06310567970485), + 4: -Float64FromFloat64(2485.216410094288), + 5: -Float64FromFloat64(5253.043804907295), +} +var _pS8 = [5]float64{ + 0: float64(116.53436461966818), + 1: float64(3833.7447536412183), + 2: float64(40597.857264847255), + 3: float64(116752.97256437592), + 4: float64(47627.728414673096), +} + +var _pR5 = [6]float64{ + 0: -Float64FromFloat64(1.141254646918945e-11), + 1: -Float64FromFloat64(0.07031249408735993), + 2: -Float64FromFloat64(4.159610644705878), + 3: -Float64FromFloat64(67.67476522651673), + 4: -Float64FromFloat64(331.23129964917297), + 5: -Float64FromFloat64(346.4333883656049), +} +var _pS52 = [5]float64{ + 0: float64(60.753938269230034), + 1: float64(1051.2523059570458), + 2: float64(5978.970943338558), + 3: float64(9625.445143577745), + 4: float64(2406.058159229391), +} + +var _pR3 = [6]float64{ + 0: -Float64FromFloat64(2.547046017719519e-09), + 1: -Float64FromFloat64(0.07031196163814817), + 2: -Float64FromFloat64(2.409032215495296), + 3: -Float64FromFloat64(21.96597747348831), + 4: -Float64FromFloat64(58.07917047017376), + 5: -Float64FromFloat64(31.44794705948885), +} +var _pS32 = [5]float64{ + 0: float64(35.85603380552097), + 1: float64(361.51398305030386), + 2: float64(1193.6078379211153), + 3: float64(1127.9967985690741), + 4: float64(173.58093081333575), +} + +var _pR2 = [6]float64{ + 0: -Float64FromFloat64(8.875343330325264e-08), + 1: -Float64FromFloat64(0.07030309954836247), + 2: -Float64FromFloat64(1.4507384678095299), + 3: -Float64FromFloat64(7.635696138235278), + 4: -Float64FromFloat64(11.193166886035675), + 5: -Float64FromFloat64(3.2336457935133534), +} +var _pS24 = [5]float64{ + 0: float64(22.22029975320888), + 1: float64(136.2067942182152), + 2: float64(270.4702786580835), + 3: float64(153.87539420832033), + 4: float64(14.65761769482562), +} + +func _pzero(tls *TLS, x float64) (r1 float64) { + var ix Tuint32_t + var p, q uintptr + var r, s, z Tdouble_t + _, _, _, _, _, _ = ix, p, q, r, s, z + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x40200000) { + p = uintptr(unsafe.Pointer(&_pR8)) + q = uintptr(unsafe.Pointer(&_pS8)) + } else { + if ix >= uint32(0x40122E8B) { + p = uintptr(unsafe.Pointer(&_pR5)) + q = uintptr(unsafe.Pointer(&_pS52)) + } else { + if ix >= uint32(0x4006DB6D) { + p = uintptr(unsafe.Pointer(&_pR3)) + q = uintptr(unsafe.Pointer(&_pS32)) + } else { /*ix >= 0x40000000*/ + p = uintptr(unsafe.Pointer(&_pR2)) + q = uintptr(unsafe.Pointer(&_pS24)) + } + } + } + z = float64(1) / float64(x*x) + r = float64(**(**float64)(__ccgo_up(p))) + Tdouble_t(z*(float64(**(**float64)(__ccgo_up(p + 1*8)))+Tdouble_t(z*(float64(**(**float64)(__ccgo_up(p + 2*8)))+Tdouble_t(z*(float64(**(**float64)(__ccgo_up(p + 3*8)))+Tdouble_t(z*(float64(**(**float64)(__ccgo_up(p + 4*8)))+Tdouble_t(z*float64(**(**float64)(__ccgo_up(p + 5*8)))))))))))) + s = Float64FromFloat64(1) + Tdouble_t(z*(float64(**(**float64)(__ccgo_up(q)))+Tdouble_t(z*(float64(**(**float64)(__ccgo_up(q + 1*8)))+Tdouble_t(z*(float64(**(**float64)(__ccgo_up(q + 2*8)))+Tdouble_t(z*(float64(**(**float64)(__ccgo_up(q + 3*8)))+Tdouble_t(z*float64(**(**float64)(__ccgo_up(q + 4*8)))))))))))) + return float64(Float64FromFloat64(1) + r/s) +} + +// C documentation +// +// /* For x >= 8, the asymptotic expansions of qzero is +// * -1/8 s + 75/1024 s^3 - ..., where s = 1/x. +// * We approximate pzero by +// * qzero(x) = s*(-1.25 + (R/S)) +// * where R = qR0 + qR1*s^2 + qR2*s^4 + ... + qR5*s^10 +// * S = 1 + qS0*s^2 + ... + qS5*s^12 +// * and +// * | qzero(x)/s +1.25-R/S | <= 2 ** ( -61.22) +// */ +var _qR8 = [6]float64{ + 1: float64(0.0732421874999935), + 2: float64(11.76820646822527), + 3: float64(557.6733802564019), + 4: float64(8859.197207564686), + 5: float64(37014.62677768878), +} +var _qS8 = [6]float64{ + 0: float64(163.77602689568982), + 1: float64(8098.344946564498), + 2: float64(142538.29141912048), + 3: float64(803309.2571195144), + 4: float64(840501.5798190605), + 5: -Float64FromFloat64(343899.2935378666), +} + +var _qR5 = [6]float64{ + 0: float64(1.8408596359451553e-11), + 1: float64(0.07324217666126848), + 2: float64(5.8356350896205695), + 3: float64(135.11157728644983), + 4: float64(1027.243765961641), + 5: float64(1989.9778586460538), +} +var _qS5 = [6]float64{ + 0: float64(82.77661022365378), + 1: float64(2077.81416421393), + 2: float64(18847.28877857181), + 3: float64(56751.11228949473), + 4: float64(35976.75384251145), + 5: -Float64FromFloat64(5354.342756019448), +} + +var _qR3 = [6]float64{ + 0: float64(4.377410140897386e-09), + 1: float64(0.07324111800429114), + 2: float64(3.344231375161707), + 3: float64(42.621844074541265), + 4: float64(170.8080913405656), + 5: float64(166.73394869665117), +} +var _qS32 = [6]float64{ + 0: float64(48.75887297245872), + 1: float64(709.689221056606), + 2: float64(3704.1482262011136), + 3: float64(6460.425167525689), + 4: float64(2516.3336892036896), + 5: -Float64FromFloat64(149.2474518361564), +} + +var _qR2 = [6]float64{ + 0: float64(1.5044444488698327e-07), + 1: float64(0.07322342659630793), + 2: float64(1.99819174093816), + 3: float64(14.495602934788574), + 4: float64(31.666231750478154), + 5: float64(16.252707571092927), +} +var _qS22 = [6]float64{ + 0: float64(30.36558483552192), + 1: float64(269.34811860804984), + 2: float64(844.7837575953201), + 3: float64(882.9358451124886), + 4: float64(212.66638851179883), + 5: -Float64FromFloat64(5.3109549388266695), +} + +func _qzero(tls *TLS, x float64) (r1 float64) { + var ix Tuint32_t + var p, q uintptr + var r, s, z Tdouble_t + _, _, _, _, _, _ = ix, p, q, r, s, z + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x40200000) { + p = uintptr(unsafe.Pointer(&_qR8)) + q = uintptr(unsafe.Pointer(&_qS8)) + } else { + if ix >= uint32(0x40122E8B) { + p = uintptr(unsafe.Pointer(&_qR5)) + q = uintptr(unsafe.Pointer(&_qS5)) + } else { + if ix >= uint32(0x4006DB6D) { + p = uintptr(unsafe.Pointer(&_qR3)) + q = uintptr(unsafe.Pointer(&_qS32)) + } else { /*ix >= 0x40000000*/ + p = uintptr(unsafe.Pointer(&_qR2)) + q = uintptr(unsafe.Pointer(&_qS22)) + } + } + } + z = float64(1) / float64(x*x) + r = float64(**(**float64)(__ccgo_up(p))) + Tdouble_t(z*(float64(**(**float64)(__ccgo_up(p + 1*8)))+Tdouble_t(z*(float64(**(**float64)(__ccgo_up(p + 2*8)))+Tdouble_t(z*(float64(**(**float64)(__ccgo_up(p + 3*8)))+Tdouble_t(z*(float64(**(**float64)(__ccgo_up(p + 4*8)))+Tdouble_t(z*float64(**(**float64)(__ccgo_up(p + 5*8)))))))))))) + s = Float64FromFloat64(1) + Tdouble_t(z*(float64(**(**float64)(__ccgo_up(q)))+Tdouble_t(z*(float64(**(**float64)(__ccgo_up(q + 1*8)))+Tdouble_t(z*(float64(**(**float64)(__ccgo_up(q + 2*8)))+Tdouble_t(z*(float64(**(**float64)(__ccgo_up(q + 3*8)))+Tdouble_t(z*(float64(**(**float64)(__ccgo_up(q + 4*8)))+Tdouble_t(z*float64(**(**float64)(__ccgo_up(q + 5*8)))))))))))))) + return (float64(-Float64FromFloat64(0.125)) + r/s) / x +} + +var _invsqrtpi1 = float32(0.56418961287) /* 0x3f106ebb */ +var _tpi1 = float32(0.63661974669) /* 0x3f22f983 */ + +func _common1(tls *TLS, ix Tuint32_t, x float32, y0 int32) (r float32) { + var c, cc, s, ss, z float32 + _, _, _, _, _ = c, cc, s, ss, z + /* + * j0(x) = 1/sqrt(pi) * (P(0,x)*cc - Q(0,x)*ss) / sqrt(x) + * y0(x) = 1/sqrt(pi) * (P(0,x)*ss + Q(0,x)*cc) / sqrt(x) + */ + s = Xsinf(tls, x) + c = Xcosf(tls, x) + if y0 != 0 { + c = -c + } + cc = s + c + if ix < uint32(0x7f000000) { + ss = s - c + z = -Xcosf(tls, float32(Float32FromInt32(2)*x)) + if float32(s*c) < Float32FromInt32(0) { + cc = z / ss + } else { + ss = z / cc + } + if ix < uint32(0x58800000) { + if y0 != 0 { + ss = -ss + } + cc = float32(_pzerof(tls, x)*cc) - float32(_qzerof(tls, x)*ss) + } + } + return float32(_invsqrtpi1*cc) / Xsqrtf(tls, x) +} + +// C documentation +// +// /* R0/S0 on [0, 2.00] */ + +var _R021 = float32(0.015625) /* 0x3c800000 */ +var _R031 = float32(-Float64FromFloat64(0.00018997929874)) /* 0xb947352e */ +var _R041 = float32(1.8295404516e-06) /* 0x35f58e88 */ +var _R051 = float32(-Float64FromFloat64(4.6183270541e-09)) /* 0xb19eaf3c */ +var _S011 = float32(0.015619102865) /* 0x3c7fe744 */ +var _S021 = float32(0.00011692678527) /* 0x38f53697 */ +var _S031 = float32(5.1354652442e-07) /* 0x3509daa6 */ +var _S041 = float32(1.1661400734e-09) /* 0x30a045e8 */ + +func Xj0f(tls *TLS, x float32) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var ix Tuint32_t + var r, s, z float32 + _, _, _, _ = ix, r, s, z + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x7f800000) { + return Float32FromInt32(1) / float32(x*x) + } + x = Xfabsf(tls, x) + if ix >= uint32(0x40000000) { /* |x| >= 2 */ + /* large ulp error near zeros */ + return _common1(tls, ix, x, 0) + } + if ix >= uint32(0x3a000000) { /* |x| >= 2**-11 */ + /* up to 4ulp error near 2 */ + z = float32(x * x) + r = float32(z * (_R021 + float32(z*(_R031+float32(z*(_R041+float32(z*_R051))))))) + s = Float32FromInt32(1) + float32(z*(_S011+float32(z*(_S021+float32(z*(_S031+float32(z*_S041))))))) + return float32((Float32FromInt32(1)+x/Float32FromInt32(2))*(Float32FromInt32(1)-x/Float32FromInt32(2))) + float32(z*(r/s)) + } + if ix >= uint32(0x21800000) { /* |x| >= 2**-60 */ + x = float32(float32(Float32FromFloat32(0.25)*x) * x) + } + return Float32FromInt32(1) - x +} + +var _u001 = float32(-Float64FromFloat64(0.073804296553)) /* 0xbd9726b5 */ +var _u011 = float32(0.17666645348) /* 0x3e34e80d */ +var _u021 = float32(-Float64FromFloat64(0.013818567619)) /* 0xbc626746 */ +var _u031 = float32(0.00034745343146) /* 0x39b62a69 */ +var _u041 = float32(-Float64FromFloat64(3.8140706238e-06)) /* 0xb67ff53c */ +var _u051 = float32(1.9559013964e-08) /* 0x32a802ba */ +var _u061 = float32(-Float64FromFloat64(3.982051841e-11)) /* 0xae2f21eb */ +var _v011 = float32(0.012730483897) /* 0x3c509385 */ +var _v021 = float32(7.6006865129e-05) /* 0x389f65e0 */ +var _v031 = float32(2.5915085189e-07) /* 0x348b216c */ +var _v041 = float32(4.4111031494e-10) /* 0x2ff280c2 */ + +func Xy0f(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ix Tuint32_t + var u, v, z float32 + _, _, _, _ = ix, u, v, z + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + if ix&uint32(0x7fffffff) == uint32(0) { + return float32(-Int32FromInt32(1)) / Float32FromFloat32(0) + } + if ix>>int32(31) != 0 { + return Float32FromInt32(0) / Float32FromFloat32(0) + } + if ix >= uint32(0x7f800000) { + return Float32FromInt32(1) / x + } + if ix >= uint32(0x40000000) { /* |x| >= 2.0 */ + /* large ulp error near zeros */ + return _common1(tls, ix, x, int32(1)) + } + if ix >= uint32(0x39000000) { /* x >= 2**-13 */ + /* large ulp error at x ~= 0.89 */ + z = float32(x * x) + u = _u001 + float32(z*(_u011+float32(z*(_u021+float32(z*(_u031+float32(z*(_u041+float32(z*(_u051+float32(z*_u061))))))))))) + v = Float32FromInt32(1) + float32(z*(_v011+float32(z*(_v021+float32(z*(_v031+float32(z*_v041))))))) + return u/v + float32(_tpi1*float32(Xj0f(tls, x)*Xlogf(tls, x))) + } + return _u001 + float32(_tpi1*Xlogf(tls, x)) +} + +// C documentation +// +// /* The asymptotic expansions of pzero is +// * 1 - 9/128 s^2 + 11025/98304 s^4 - ..., where s = 1/x. +// * For x >= 2, We approximate pzero by +// * pzero(x) = 1 + (R/S) +// * where R = pR0 + pR1*s^2 + pR2*s^4 + ... + pR5*s^10 +// * S = 1 + pS0*s^2 + ... + pS4*s^10 +// * and +// * | pzero(x)-1-R/S | <= 2 ** ( -60.26) +// */ +var _pR81 = [6]float32{ + 1: float32(-Float64FromFloat64(0.0703125)), + 2: float32(-Float64FromFloat64(8.0816707611)), + 3: float32(-Float64FromFloat64(257.06311035)), + 4: float32(-Float64FromFloat64(2485.2163086)), + 5: float32(-Float64FromFloat64(5253.0439453)), +} +var _pS81 = [5]float32{ + 0: float32(116.53436279), + 1: float32(3833.744873), + 2: float32(40597.855469), + 3: float32(116752.96875), + 4: float32(47627.726562), +} +var _pR51 = [6]float32{ + 0: float32(-Float64FromFloat64(1.1412546255e-11)), + 1: float32(-Float64FromFloat64(0.070312492549)), + 2: float32(-Float64FromFloat64(4.1596107483)), + 3: float32(-Float64FromFloat64(67.674766541)), + 4: float32(-Float64FromFloat64(331.23129272)), + 5: float32(-Float64FromFloat64(346.43338013)), +} +var _pS53 = [5]float32{ + 0: float32(60.753936768), + 1: float32(1051.2523193), + 2: float32(5978.9707031), + 3: float32(9625.4453125), + 4: float32(2406.0581055), +} + +var _pR31 = [6]float32{ + 0: float32(-Float64FromFloat64(2.5470459075e-09)), + 1: float32(-Float64FromFloat64(0.070311963558)), + 2: float32(-Float64FromFloat64(2.4090321064)), + 3: float32(-Float64FromFloat64(21.965976715)), + 4: float32(-Float64FromFloat64(58.079170227)), + 5: float32(-Float64FromFloat64(31.447946548)), +} +var _pS33 = [5]float32{ + 0: float32(35.856033325), + 1: float32(361.51397705), + 2: float32(1193.6077881), + 3: float32(1127.9968262), + 4: float32(173.58093262), +} + +var _pR21 = [6]float32{ + 0: float32(-Float64FromFloat64(8.8753431271e-08)), + 1: float32(-Float64FromFloat64(0.070303097367)), + 2: float32(-Float64FromFloat64(1.45073843)), + 3: float32(-Float64FromFloat64(7.6356959343)), + 4: float32(-Float64FromFloat64(11.193166733)), + 5: float32(-Float64FromFloat64(3.2336456776)), +} +var _pS25 = [5]float32{ + 0: float32(22.220300674), + 1: float32(136.20678711), + 2: float32(270.47027588), + 3: float32(153.87539673), + 4: float32(14.657617569), +} + +func _pzerof(tls *TLS, x float32) (r1 float32) { + var ix Tuint32_t + var p, q uintptr + var r, s, z Tfloat_t + _, _, _, _, _, _ = ix, p, q, r, s, z + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x41000000) { + p = uintptr(unsafe.Pointer(&_pR81)) + q = uintptr(unsafe.Pointer(&_pS81)) + } else { + if ix >= uint32(0x409173eb) { + p = uintptr(unsafe.Pointer(&_pR51)) + q = uintptr(unsafe.Pointer(&_pS53)) + } else { + if ix >= uint32(0x4036d917) { + p = uintptr(unsafe.Pointer(&_pR31)) + q = uintptr(unsafe.Pointer(&_pS33)) + } else { /*ix >= 0x40000000*/ + p = uintptr(unsafe.Pointer(&_pR21)) + q = uintptr(unsafe.Pointer(&_pS25)) + } + } + } + z = float64(Float32FromFloat32(1) / float32(x*x)) + r = float64(**(**float32)(__ccgo_up(p))) + Tfloat_t(z*(float64(**(**float32)(__ccgo_up(p + 1*4)))+Tfloat_t(z*(float64(**(**float32)(__ccgo_up(p + 2*4)))+Tfloat_t(z*(float64(**(**float32)(__ccgo_up(p + 3*4)))+Tfloat_t(z*(float64(**(**float32)(__ccgo_up(p + 4*4)))+Tfloat_t(z*float64(**(**float32)(__ccgo_up(p + 5*4)))))))))))) + s = Float64FromFloat32(1) + Tfloat_t(z*(float64(**(**float32)(__ccgo_up(q)))+Tfloat_t(z*(float64(**(**float32)(__ccgo_up(q + 1*4)))+Tfloat_t(z*(float64(**(**float32)(__ccgo_up(q + 2*4)))+Tfloat_t(z*(float64(**(**float32)(__ccgo_up(q + 3*4)))+Tfloat_t(z*float64(**(**float32)(__ccgo_up(q + 4*4)))))))))))) + return float32(Float64FromFloat32(1) + r/s) +} + +// C documentation +// +// /* For x >= 8, the asymptotic expansions of qzero is +// * -1/8 s + 75/1024 s^3 - ..., where s = 1/x. +// * We approximate pzero by +// * qzero(x) = s*(-1.25 + (R/S)) +// * where R = qR0 + qR1*s^2 + qR2*s^4 + ... + qR5*s^10 +// * S = 1 + qS0*s^2 + ... + qS5*s^12 +// * and +// * | qzero(x)/s +1.25-R/S | <= 2 ** ( -61.22) +// */ +var _qR81 = [6]float32{ + 1: float32(0.0732421875), + 2: float32(11.768206596), + 3: float32(557.67340088), + 4: float32(8859.1972656), + 5: float32(37014.625), +} +var _qS81 = [6]float32{ + 0: float32(163.77603149), + 1: float32(8098.3447266), + 2: float32(142538.29688), + 3: float32(803309.25), + 4: float32(840501.5625), + 5: float32(-Float64FromFloat64(343899.28125)), +} + +var _qR51 = [6]float32{ + 0: float32(1.8408595828e-11), + 1: float32(0.073242180049), + 2: float32(5.8356351852), + 3: float32(135.11157227), + 4: float32(1027.2437744), + 5: float32(1989.9779053), +} +var _qS51 = [6]float32{ + 0: float32(82.776611328), + 1: float32(2077.814209), + 2: float32(18847.289062), + 3: float32(56751.113281), + 4: float32(35976.753906), + 5: float32(-Float64FromFloat64(5354.3427734)), +} + +var _qR31 = [6]float32{ + 0: float32(4.37740999e-09), + 1: float32(0.073241114616), + 2: float32(3.3442313671), + 3: float32(42.621845245), + 4: float32(170.80809021), + 5: float32(166.73394775), +} +var _qS33 = [6]float32{ + 0: float32(48.758872986), + 1: float32(709.68920898), + 2: float32(3704.1481934), + 3: float32(6460.425293), + 4: float32(2516.3337402), + 5: float32(-Float64FromFloat64(149.24745178)), +} + +var _qR21 = [6]float32{ + 0: float32(1.5044444979e-07), + 1: float32(0.073223426938), + 2: float32(1.9981917143), + 3: float32(14.495602608), + 4: float32(31.666231155), + 5: float32(16.252708435), +} +var _qS23 = [6]float32{ + 0: float32(30.365585327), + 1: float32(269.34811401), + 2: float32(844.78375244), + 3: float32(882.93585205), + 4: float32(212.66638184), + 5: float32(-Float64FromFloat64(5.3109550476)), +} + +func _qzerof(tls *TLS, x float32) (r1 float32) { + var ix Tuint32_t + var p, q uintptr + var r, s, z Tfloat_t + _, _, _, _, _, _ = ix, p, q, r, s, z + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x41000000) { + p = uintptr(unsafe.Pointer(&_qR81)) + q = uintptr(unsafe.Pointer(&_qS81)) + } else { + if ix >= uint32(0x409173eb) { + p = uintptr(unsafe.Pointer(&_qR51)) + q = uintptr(unsafe.Pointer(&_qS51)) + } else { + if ix >= uint32(0x4036d917) { + p = uintptr(unsafe.Pointer(&_qR31)) + q = uintptr(unsafe.Pointer(&_qS33)) + } else { /*ix >= 0x40000000*/ + p = uintptr(unsafe.Pointer(&_qR21)) + q = uintptr(unsafe.Pointer(&_qS23)) + } + } + } + z = float64(Float32FromFloat32(1) / float32(x*x)) + r = float64(**(**float32)(__ccgo_up(p))) + Tfloat_t(z*(float64(**(**float32)(__ccgo_up(p + 1*4)))+Tfloat_t(z*(float64(**(**float32)(__ccgo_up(p + 2*4)))+Tfloat_t(z*(float64(**(**float32)(__ccgo_up(p + 3*4)))+Tfloat_t(z*(float64(**(**float32)(__ccgo_up(p + 4*4)))+Tfloat_t(z*float64(**(**float32)(__ccgo_up(p + 5*4)))))))))))) + s = Float64FromFloat32(1) + Tfloat_t(z*(float64(**(**float32)(__ccgo_up(q)))+Tfloat_t(z*(float64(**(**float32)(__ccgo_up(q + 1*4)))+Tfloat_t(z*(float64(**(**float32)(__ccgo_up(q + 2*4)))+Tfloat_t(z*(float64(**(**float32)(__ccgo_up(q + 3*4)))+Tfloat_t(z*(float64(**(**float32)(__ccgo_up(q + 4*4)))+Tfloat_t(z*float64(**(**float32)(__ccgo_up(q + 5*4)))))))))))))) + return float32((float64(-Float32FromFloat32(0.125)) + r/s) / float64(x)) +} + +var _invsqrtpi2 = float64(0.5641895835477563) /* 0x3FE20DD7, 0x50429B6D */ +var _tpi2 = float64(0.6366197723675814) /* 0x3FE45F30, 0x6DC9C883 */ + +func _common2(tls *TLS, ix Tuint32_t, x float64, y1 int32, sign int32) (r float64) { + var c, cc, s, ss, z float64 + _, _, _, _, _ = c, cc, s, ss, z + /* + * j1(x) = sqrt(2/(pi*x))*(p1(x)*cos(x-3pi/4)-q1(x)*sin(x-3pi/4)) + * y1(x) = sqrt(2/(pi*x))*(p1(x)*sin(x-3pi/4)+q1(x)*cos(x-3pi/4)) + * + * sin(x-3pi/4) = -(sin(x) + cos(x))/sqrt(2) + * cos(x-3pi/4) = (sin(x) - cos(x))/sqrt(2) + * sin(x) +- cos(x) = -cos(2x)/(sin(x) -+ cos(x)) + */ + s = Xsin(tls, x) + if y1 != 0 { + s = -s + } + c = Xcos(tls, x) + cc = s - c + if ix < uint32(0x7fe00000) { + /* avoid overflow in 2*x */ + ss = -s - c + z = Xcos(tls, float64(Float64FromInt32(2)*x)) + if float64(s*c) > Float64FromInt32(0) { + cc = z / ss + } else { + ss = z / cc + } + if ix < uint32(0x48000000) { + if y1 != 0 { + ss = -ss + } + cc = float64(_pone(tls, x)*cc) - float64(_qone(tls, x)*ss) + } + } + if sign != 0 { + cc = -cc + } + return float64(_invsqrtpi2*cc) / Xsqrt(tls, x) +} + +// C documentation +// +// /* R0/S0 on [0,2] */ + +var _r00 = -Float64FromFloat64(0.0625) /* 0xBFB00000, 0x00000000 */ +var _r01 = float64(0.001407056669551897) /* 0x3F570D9F, 0x98472C61 */ +var _r02 = -Float64FromFloat64(1.599556310840356e-05) /* 0xBEF0C5C6, 0xBA169668 */ +var _r03 = float64(4.9672799960958445e-08) /* 0x3E6AAAFA, 0x46CA0BD9 */ +var _s01 = float64(0.019153759953836346) /* 0x3F939D0B, 0x12637E53 */ +var _s02 = float64(0.00018594678558863092) /* 0x3F285F56, 0xB9CDF664 */ +var _s03 = float64(1.1771846404262368e-06) /* 0x3EB3BFF8, 0x333F8498 */ +var _s04 = float64(5.0463625707621704e-09) /* 0x3E35AC88, 0xC97DFF2C */ +var _s05 = float64(1.2354227442613791e-11) /* 0x3DAB2ACF, 0xCFB97ED8 */ + +func Xj1(tls *TLS, x float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var ix Tuint32_t + var r, s, z float64 + var sign int32 + _, _, _, _, _ = ix, r, s, sign, z + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x7ff00000) { + return Float64FromInt32(1) / float64(x*x) + } + if ix >= uint32(0x40000000) { /* |x| >= 2 */ + return _common2(tls, ix, Xfabs(tls, x), 0, sign) + } + if ix >= uint32(0x38000000) { /* |x| >= 2**-127 */ + z = float64(x * x) + r = float64(z * (_r00 + float64(z*(_r01+float64(z*(_r02+float64(z*_r03))))))) + s = Float64FromInt32(1) + float64(z*(_s01+float64(z*(_s02+float64(z*(_s03+float64(z*(_s04+float64(z*_s05))))))))) + z = r / s + } else { + /* avoid underflow, raise inexact if x!=0 */ + z = x + } + return float64((float64(0.5) + z) * x) +} + +var _U0 = [5]float64{ + 0: -Float64FromFloat64(0.19605709064623894), + 1: float64(0.05044387166398113), + 2: -Float64FromFloat64(0.0019125689587576355), + 3: float64(2.352526005616105e-05), + 4: -Float64FromFloat64(9.190991580398789e-08), +} +var _V0 = [5]float64{ + 0: float64(0.01991673182366499), + 1: float64(0.00020255258102513517), + 2: float64(1.3560880109751623e-06), + 3: float64(6.227414523646215e-09), + 4: float64(1.6655924620799208e-11), +} + +func Xy1(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __u Tuint64_t + var ix, lx Tuint32_t + var u, v, z float64 + _, _, _, _, _, _ = __u, ix, lx, u, v, z + __u = *(*Tuint64_t)(unsafe.Pointer(&x)) + ix = uint32(__u >> int32(32)) + lx = uint32(__u) + /* y1(nan)=nan, y1(<0)=nan, y1(0)=-inf, y1(inf)=0 */ + if ix<>int32(31) != 0 { + return Float64FromInt32(0) / Float64FromFloat64(0) + } + if ix >= uint32(0x7ff00000) { + return Float64FromInt32(1) / x + } + if ix >= uint32(0x40000000) { /* x >= 2 */ + return _common2(tls, ix, x, int32(1), 0) + } + if ix < uint32(0x3c900000) { /* x < 2**-54 */ + return -_tpi2 / x + } + z = float64(x * x) + u = _U0[0] + float64(z*(_U0[int32(1)]+float64(z*(_U0[int32(2)]+float64(z*(_U0[int32(3)]+float64(z*_U0[int32(4)]))))))) + v = Float64FromInt32(1) + float64(z*(_V0[0]+float64(z*(_V0[int32(1)]+float64(z*(_V0[int32(2)]+float64(z*(_V0[int32(3)]+float64(z*_V0[int32(4)]))))))))) + return float64(x*(u/v)) + float64(_tpi2*(float64(Xj1(tls, x)*Xlog(tls, x))-Float64FromInt32(1)/x)) +} + +/* For x >= 8, the asymptotic expansions of pone is + * 1 + 15/128 s^2 - 4725/2^15 s^4 - ..., where s = 1/x. + * We approximate pone by + * pone(x) = 1 + (R/S) + * where R = pr0 + pr1*s^2 + pr2*s^4 + ... + pr5*s^10 + * S = 1 + ps0*s^2 + ... + ps4*s^10 + * and + * | pone(x)-1-R/S | <= 2 ** ( -60.06) + */ + +var _pr8 = [6]float64{ + 1: float64(0.11718749999998865), + 2: float64(13.239480659307358), + 3: float64(412.05185430737856), + 4: float64(3874.7453891396053), + 5: float64(7914.479540318917), +} +var _ps8 = [5]float64{ + 0: float64(114.20737037567841), + 1: float64(3650.9308342085346), + 2: float64(36956.206026903346), + 3: float64(97602.79359349508), + 4: float64(30804.27206278888), +} + +var _pr5 = [6]float64{ + 0: float64(1.3199051955624352e-11), + 1: float64(0.1171874931906141), + 2: float64(6.802751278684329), + 3: float64(108.30818299018911), + 4: float64(517.6361395331998), + 5: float64(528.7152013633375), +} +var _ps5 = [5]float64{ + 0: float64(59.28059872211313), + 1: float64(991.4014187336144), + 2: float64(5353.26695291488), + 3: float64(7844.690317495512), + 4: float64(1504.0468881036106), +} + +var _pr3 = [6]float64{ + 0: float64(3.025039161373736e-09), + 1: float64(0.11718686556725359), + 2: float64(3.9329775003331564), + 3: float64(35.11940355916369), + 4: float64(91.05501107507813), + 5: float64(48.55906851973649), +} +var _ps3 = [5]float64{ + 0: float64(34.79130950012515), + 1: float64(336.76245874782575), + 2: float64(1046.8713997577513), + 3: float64(890.8113463982564), + 4: float64(103.78793243963928), +} + +var _pr2 = [6]float64{ + 0: float64(1.0771083010687374e-07), + 1: float64(0.11717621946268335), + 2: float64(2.368514966676088), + 3: float64(12.242610914826123), + 4: float64(17.693971127168773), + 5: float64(5.073523125888185), +} +var _ps2 = [5]float64{ + 0: float64(21.43648593638214), + 1: float64(125.29022716840275), + 2: float64(232.2764690571628), + 3: float64(117.6793732871471), + 4: float64(8.364638933716183), +} + +func _pone(tls *TLS, x float64) (r1 float64) { + var ix Tuint32_t + var p, q uintptr + var r, s, z Tdouble_t + _, _, _, _, _, _ = ix, p, q, r, s, z + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x40200000) { + p = uintptr(unsafe.Pointer(&_pr8)) + q = uintptr(unsafe.Pointer(&_ps8)) + } else { + if ix >= uint32(0x40122E8B) { + p = uintptr(unsafe.Pointer(&_pr5)) + q = uintptr(unsafe.Pointer(&_ps5)) + } else { + if ix >= uint32(0x4006DB6D) { + p = uintptr(unsafe.Pointer(&_pr3)) + q = uintptr(unsafe.Pointer(&_ps3)) + } else { /*ix >= 0x40000000*/ + p = uintptr(unsafe.Pointer(&_pr2)) + q = uintptr(unsafe.Pointer(&_ps2)) + } + } + } + z = float64(1) / float64(x*x) + r = float64(**(**float64)(__ccgo_up(p))) + Tdouble_t(z*(float64(**(**float64)(__ccgo_up(p + 1*8)))+Tdouble_t(z*(float64(**(**float64)(__ccgo_up(p + 2*8)))+Tdouble_t(z*(float64(**(**float64)(__ccgo_up(p + 3*8)))+Tdouble_t(z*(float64(**(**float64)(__ccgo_up(p + 4*8)))+Tdouble_t(z*float64(**(**float64)(__ccgo_up(p + 5*8)))))))))))) + s = Float64FromFloat64(1) + Tdouble_t(z*(float64(**(**float64)(__ccgo_up(q)))+Tdouble_t(z*(float64(**(**float64)(__ccgo_up(q + 1*8)))+Tdouble_t(z*(float64(**(**float64)(__ccgo_up(q + 2*8)))+Tdouble_t(z*(float64(**(**float64)(__ccgo_up(q + 3*8)))+Tdouble_t(z*float64(**(**float64)(__ccgo_up(q + 4*8)))))))))))) + return float64(Float64FromFloat64(1) + r/s) +} + +/* For x >= 8, the asymptotic expansions of qone is + * 3/8 s - 105/1024 s^3 - ..., where s = 1/x. + * We approximate pone by + * qone(x) = s*(0.375 + (R/S)) + * where R = qr1*s^2 + qr2*s^4 + ... + qr5*s^10 + * S = 1 + qs1*s^2 + ... + qs6*s^12 + * and + * | qone(x)/s -0.375-R/S | <= 2 ** ( -61.13) + */ + +var _qr8 = [6]float64{ + 1: -Float64FromFloat64(0.10253906249999271), + 2: -Float64FromFloat64(16.271753454459), + 3: -Float64FromFloat64(759.6017225139501), + 4: -Float64FromFloat64(11849.806670242959), + 5: -Float64FromFloat64(48438.512428575035), +} +var _qs8 = [6]float64{ + 0: float64(161.3953697007229), + 1: float64(7825.385999233485), + 2: float64(133875.33628724958), + 3: float64(719657.7236832409), + 4: float64(666601.2326177764), + 5: -Float64FromFloat64(294490.26430383464), +} + +var _qr5 = [6]float64{ + 0: -Float64FromFloat64(2.089799311417641e-11), + 1: -Float64FromFloat64(0.10253905024137543), + 2: -Float64FromFloat64(8.05644828123936), + 3: -Float64FromFloat64(183.66960747488838), + 4: -Float64FromFloat64(1373.1937606550816), + 5: -Float64FromFloat64(2612.4444045321566), +} +var _qs5 = [6]float64{ + 0: float64(81.27655013843358), + 1: float64(1991.7987346048596), + 2: float64(17468.48519249089), + 3: float64(49851.42709103523), + 4: float64(27948.075163891812), + 5: -Float64FromFloat64(4719.183547951285), +} + +var _qr3 = [6]float64{ + 0: -Float64FromFloat64(5.078312264617666e-09), + 1: -Float64FromFloat64(0.10253782982083709), + 2: -Float64FromFloat64(4.610115811394734), + 3: -Float64FromFloat64(57.847221656278364), + 4: -Float64FromFloat64(228.2445407376317), + 5: -Float64FromFloat64(219.21012847890933), +} +var _qs3 = [6]float64{ + 0: float64(47.66515503237295), + 1: float64(673.8651126766997), + 2: float64(3380.1528667952634), + 3: float64(5547.729097207228), + 4: float64(1903.119193388108), + 5: -Float64FromFloat64(135.20119144430734), +} + +var _qr2 = [6]float64{ + 0: -Float64FromFloat64(1.7838172751095887e-07), + 1: -Float64FromFloat64(0.10251704260798555), + 2: -Float64FromFloat64(2.7522056827818746), + 3: -Float64FromFloat64(19.663616264370372), + 4: -Float64FromFloat64(42.32531333728305), + 5: -Float64FromFloat64(21.371921170370406), +} +var _qs2 = [6]float64{ + 0: float64(29.533362906052385), + 1: float64(252.98154998219053), + 2: float64(757.5028348686454), + 3: float64(739.3932053204672), + 4: float64(155.94900333666612), + 5: -Float64FromFloat64(4.959498988226282), +} + +func _qone(tls *TLS, x float64) (r1 float64) { + var ix Tuint32_t + var p, q uintptr + var r, s, z Tdouble_t + _, _, _, _, _, _ = ix, p, q, r, s, z + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x40200000) { + p = uintptr(unsafe.Pointer(&_qr8)) + q = uintptr(unsafe.Pointer(&_qs8)) + } else { + if ix >= uint32(0x40122E8B) { + p = uintptr(unsafe.Pointer(&_qr5)) + q = uintptr(unsafe.Pointer(&_qs5)) + } else { + if ix >= uint32(0x4006DB6D) { + p = uintptr(unsafe.Pointer(&_qr3)) + q = uintptr(unsafe.Pointer(&_qs3)) + } else { /*ix >= 0x40000000*/ + p = uintptr(unsafe.Pointer(&_qr2)) + q = uintptr(unsafe.Pointer(&_qs2)) + } + } + } + z = float64(1) / float64(x*x) + r = float64(**(**float64)(__ccgo_up(p))) + Tdouble_t(z*(float64(**(**float64)(__ccgo_up(p + 1*8)))+Tdouble_t(z*(float64(**(**float64)(__ccgo_up(p + 2*8)))+Tdouble_t(z*(float64(**(**float64)(__ccgo_up(p + 3*8)))+Tdouble_t(z*(float64(**(**float64)(__ccgo_up(p + 4*8)))+Tdouble_t(z*float64(**(**float64)(__ccgo_up(p + 5*8)))))))))))) + s = Float64FromFloat64(1) + Tdouble_t(z*(float64(**(**float64)(__ccgo_up(q)))+Tdouble_t(z*(float64(**(**float64)(__ccgo_up(q + 1*8)))+Tdouble_t(z*(float64(**(**float64)(__ccgo_up(q + 2*8)))+Tdouble_t(z*(float64(**(**float64)(__ccgo_up(q + 3*8)))+Tdouble_t(z*(float64(**(**float64)(__ccgo_up(q + 4*8)))+Tdouble_t(z*float64(**(**float64)(__ccgo_up(q + 5*8)))))))))))))) + return float64((Float64FromFloat64(0.375) + r/s) / x) +} + +var _invsqrtpi3 = float32(0.56418961287) /* 0x3f106ebb */ +var _tpi3 = float32(0.63661974669) /* 0x3f22f983 */ + +func _common3(tls *TLS, ix Tuint32_t, x float32, y1 int32, sign int32) (r float32) { + var c, cc, s, ss, z float64 + _, _, _, _, _ = c, cc, s, ss, z + s = float64(Xsinf(tls, x)) + if y1 != 0 { + s = -s + } + c = float64(Xcosf(tls, x)) + cc = s - c + if ix < uint32(0x7f000000) { + ss = -s - c + z = float64(Xcosf(tls, float32(Float32FromInt32(2)*x))) + if float64(s*c) > Float64FromInt32(0) { + cc = z / ss + } else { + ss = z / cc + } + if ix < uint32(0x58800000) { + if y1 != 0 { + ss = -ss + } + cc = float64(float64(_ponef(tls, x))*cc) - float64(float64(_qonef(tls, x))*ss) + } + } + if sign != 0 { + cc = -cc + } + return float32(float64(float64(_invsqrtpi3)*cc) / float64(Xsqrtf(tls, x))) +} + +// C documentation +// +// /* R0/S0 on [0,2] */ + +var _r001 = float32(-Float64FromFloat64(0.0625)) /* 0xbd800000 */ +var _r011 = float32(0.0014070566976) /* 0x3ab86cfd */ +var _r021 = float32(-Float64FromFloat64(1.5995563444e-05)) /* 0xb7862e36 */ +var _r031 = float32(4.9672799207e-08) /* 0x335557d2 */ +var _s011 = float32(0.019153760746) /* 0x3c9ce859 */ +var _s021 = float32(0.00018594678841) /* 0x3942fab6 */ +var _s031 = float32(1.1771846857e-06) /* 0x359dffc2 */ +var _s041 = float32(5.046362439e-09) /* 0x31ad6446 */ +var _s051 = float32(1.2354227016e-11) /* 0x2d59567e */ + +func Xj1f(tls *TLS, x float32) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var ix Tuint32_t + var r, s, z float32 + var sign int32 + _, _, _, _, _ = ix, r, s, sign, z + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x7f800000) { + return Float32FromInt32(1) / float32(x*x) + } + if ix >= uint32(0x40000000) { /* |x| >= 2 */ + return _common3(tls, ix, Xfabsf(tls, x), 0, sign) + } + if ix >= uint32(0x39000000) { /* |x| >= 2**-13 */ + z = float32(x * x) + r = float32(z * (_r001 + float32(z*(_r011+float32(z*(_r021+float32(z*_r031))))))) + s = Float32FromInt32(1) + float32(z*(_s011+float32(z*(_s021+float32(z*(_s031+float32(z*(_s041+float32(z*_s051))))))))) + z = Float32FromFloat32(0.5) + r/s + } else { + z = Float32FromFloat32(0.5) + } + return float32(z * x) +} + +var _U01 = [5]float32{ + 0: float32(-Float64FromFloat64(0.19605709612)), + 1: float32(0.050443872809), + 2: float32(-Float64FromFloat64(0.0019125689287)), + 3: float32(2.3525259166e-05), + 4: float32(-Float64FromFloat64(9.1909917899e-08)), +} +var _V01 = [5]float32{ + 0: float32(0.019916731864), + 1: float32(0.0002025525755), + 2: float32(1.3560879779e-06), + 3: float32(6.227414584e-09), + 4: float32(1.6655924903e-11), +} + +func Xy1f(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ix Tuint32_t + var u, v, z float32 + _, _, _, _ = ix, u, v, z + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + if ix&uint32(0x7fffffff) == uint32(0) { + return float32(-Int32FromInt32(1)) / Float32FromFloat32(0) + } + if ix>>int32(31) != 0 { + return Float32FromInt32(0) / Float32FromFloat32(0) + } + if ix >= uint32(0x7f800000) { + return Float32FromInt32(1) / x + } + if ix >= uint32(0x40000000) { /* |x| >= 2.0 */ + return _common3(tls, ix, x, int32(1), 0) + } + if ix < uint32(0x33000000) { /* x < 2**-25 */ + return -_tpi3 / x + } + z = float32(x * x) + u = _U01[0] + float32(z*(_U01[int32(1)]+float32(z*(_U01[int32(2)]+float32(z*(_U01[int32(3)]+float32(z*_U01[int32(4)]))))))) + v = Float32FromFloat32(1) + float32(z*(_V01[0]+float32(z*(_V01[int32(1)]+float32(z*(_V01[int32(2)]+float32(z*(_V01[int32(3)]+float32(z*_V01[int32(4)]))))))))) + return float32(x*(u/v)) + float32(_tpi3*(float32(Xj1f(tls, x)*Xlogf(tls, x))-Float32FromFloat32(1)/x)) +} + +/* For x >= 8, the asymptotic expansions of pone is + * 1 + 15/128 s^2 - 4725/2^15 s^4 - ..., where s = 1/x. + * We approximate pone by + * pone(x) = 1 + (R/S) + * where R = pr0 + pr1*s^2 + pr2*s^4 + ... + pr5*s^10 + * S = 1 + ps0*s^2 + ... + ps4*s^10 + * and + * | pone(x)-1-R/S | <= 2 ** ( -60.06) + */ + +var _pr81 = [6]float32{ + 1: float32(0.1171875), + 2: float32(13.239480972), + 3: float32(412.05184937), + 4: float32(3874.7453613), + 5: float32(7914.4794922), +} +var _ps81 = [5]float32{ + 0: float32(114.20736694), + 1: float32(3650.9309082), + 2: float32(36956.207031), + 3: float32(97602.796875), + 4: float32(30804.271484), +} + +var _pr51 = [6]float32{ + 0: float32(1.3199052094e-11), + 1: float32(0.11718749255), + 2: float32(6.8027510643), + 3: float32(108.30818176), + 4: float32(517.63616943), + 5: float32(528.71520996), +} +var _ps51 = [5]float32{ + 0: float32(59.280597687), + 1: float32(991.40142822), + 2: float32(5353.2670898), + 3: float32(7844.6904297), + 4: float32(1504.046875), +} + +var _pr31 = [6]float32{ + 0: float32(3.0250391081e-09), + 1: float32(0.1171868667), + 2: float32(3.932977438), + 3: float32(35.119403839), + 4: float32(91.055007935), + 5: float32(48.559066772), +} +var _ps31 = [5]float32{ + 0: float32(34.791309357), + 1: float32(336.76245117), + 2: float32(1046.87146), + 3: float32(890.81134033), + 4: float32(103.78793335), +} + +var _pr21 = [6]float32{ + 0: float32(1.0771083225e-07), + 1: float32(0.11717621982), + 2: float32(2.3685150146), + 3: float32(12.242610931), + 4: float32(17.693971634), + 5: float32(5.0735230446), +} +var _ps21 = [5]float32{ + 0: float32(21.436485291), + 1: float32(125.2902298), + 2: float32(232.276474), + 3: float32(117.67937469), + 4: float32(8.3646392822), +} + +func _ponef(tls *TLS, x float32) (r1 float32) { + var ix Tuint32_t + var p, q uintptr + var r, s, z Tfloat_t + _, _, _, _, _, _ = ix, p, q, r, s, z + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x41000000) { + p = uintptr(unsafe.Pointer(&_pr81)) + q = uintptr(unsafe.Pointer(&_ps81)) + } else { + if ix >= uint32(0x409173eb) { + p = uintptr(unsafe.Pointer(&_pr51)) + q = uintptr(unsafe.Pointer(&_ps51)) + } else { + if ix >= uint32(0x4036d917) { + p = uintptr(unsafe.Pointer(&_pr31)) + q = uintptr(unsafe.Pointer(&_ps31)) + } else { /*ix >= 0x40000000*/ + p = uintptr(unsafe.Pointer(&_pr21)) + q = uintptr(unsafe.Pointer(&_ps21)) + } + } + } + z = float64(Float32FromFloat32(1) / float32(x*x)) + r = float64(**(**float32)(__ccgo_up(p))) + Tfloat_t(z*(float64(**(**float32)(__ccgo_up(p + 1*4)))+Tfloat_t(z*(float64(**(**float32)(__ccgo_up(p + 2*4)))+Tfloat_t(z*(float64(**(**float32)(__ccgo_up(p + 3*4)))+Tfloat_t(z*(float64(**(**float32)(__ccgo_up(p + 4*4)))+Tfloat_t(z*float64(**(**float32)(__ccgo_up(p + 5*4)))))))))))) + s = Float64FromFloat32(1) + Tfloat_t(z*(float64(**(**float32)(__ccgo_up(q)))+Tfloat_t(z*(float64(**(**float32)(__ccgo_up(q + 1*4)))+Tfloat_t(z*(float64(**(**float32)(__ccgo_up(q + 2*4)))+Tfloat_t(z*(float64(**(**float32)(__ccgo_up(q + 3*4)))+Tfloat_t(z*float64(**(**float32)(__ccgo_up(q + 4*4)))))))))))) + return float32(Float64FromFloat32(1) + r/s) +} + +/* For x >= 8, the asymptotic expansions of qone is + * 3/8 s - 105/1024 s^3 - ..., where s = 1/x. + * We approximate pone by + * qone(x) = s*(0.375 + (R/S)) + * where R = qr1*s^2 + qr2*s^4 + ... + qr5*s^10 + * S = 1 + qs1*s^2 + ... + qs6*s^12 + * and + * | qone(x)/s -0.375-R/S | <= 2 ** ( -61.13) + */ + +var _qr81 = [6]float32{ + 1: float32(-Float64FromFloat64(0.1025390625)), + 2: float32(-Float64FromFloat64(16.271753311)), + 3: float32(-Float64FromFloat64(759.60174561)), + 4: float32(-Float64FromFloat64(11849.806641)), + 5: float32(-Float64FromFloat64(48438.511719)), +} +var _qs81 = [6]float32{ + 0: float32(161.39537048), + 1: float32(7825.3862305), + 2: float32(133875.34375), + 3: float32(719657.75), + 4: float32(666601.25), + 5: float32(-Float64FromFloat64(294490.25)), +} + +var _qr51 = [6]float32{ + 0: float32(-Float64FromFloat64(2.0897993405e-11)), + 1: float32(-Float64FromFloat64(0.1025390476)), + 2: float32(-Float64FromFloat64(8.0564479828)), + 3: float32(-Float64FromFloat64(183.66960144)), + 4: float32(-Float64FromFloat64(1373.1937256)), + 5: float32(-Float64FromFloat64(2612.4443359)), +} +var _qs51 = [6]float32{ + 0: float32(81.276550293), + 1: float32(1991.7987061), + 2: float32(17468.484375), + 3: float32(49851.425781), + 4: float32(27948.074219), + 5: float32(-Float64FromFloat64(4719.1835938)), +} + +var _qr31 = [6]float32{ + 0: float32(-Float64FromFloat64(5.0783124372e-09)), + 1: float32(-Float64FromFloat64(0.10253783315)), + 2: float32(-Float64FromFloat64(4.6101160049)), + 3: float32(-Float64FromFloat64(57.847221375)), + 4: float32(-Float64FromFloat64(228.24453735)), + 5: float32(-Float64FromFloat64(219.21012878)), +} +var _qs31 = [6]float32{ + 0: float32(47.665153503), + 1: float32(673.8651123), + 2: float32(3380.152832), + 3: float32(5547.7290039), + 4: float32(1903.1191406), + 5: float32(-Float64FromFloat64(135.20118713)), +} + +var _qr21 = [6]float32{ + 0: float32(-Float64FromFloat64(1.7838172539e-07)), + 1: float32(-Float64FromFloat64(0.10251704603)), + 2: float32(-Float64FromFloat64(2.7522056103)), + 3: float32(-Float64FromFloat64(19.66361618)), + 4: float32(-Float64FromFloat64(42.325313568)), + 5: float32(-Float64FromFloat64(21.371921539)), +} +var _qs21 = [6]float32{ + 0: float32(29.533363342), + 1: float32(252.98155212), + 2: float32(757.50280762), + 3: float32(739.39318848), + 4: float32(155.94900513), + 5: float32(-Float64FromFloat64(4.9594988823)), +} + +func _qonef(tls *TLS, x float32) (r1 float32) { + var ix Tuint32_t + var p, q uintptr + var r, s, z Tfloat_t + _, _, _, _, _, _ = ix, p, q, r, s, z + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x41000000) { + p = uintptr(unsafe.Pointer(&_qr81)) + q = uintptr(unsafe.Pointer(&_qs81)) + } else { + if ix >= uint32(0x409173eb) { + p = uintptr(unsafe.Pointer(&_qr51)) + q = uintptr(unsafe.Pointer(&_qs51)) + } else { + if ix >= uint32(0x4036d917) { + p = uintptr(unsafe.Pointer(&_qr31)) + q = uintptr(unsafe.Pointer(&_qs31)) + } else { /*ix >= 0x40000000*/ + p = uintptr(unsafe.Pointer(&_qr21)) + q = uintptr(unsafe.Pointer(&_qs21)) + } + } + } + z = float64(Float32FromFloat32(1) / float32(x*x)) + r = float64(**(**float32)(__ccgo_up(p))) + Tfloat_t(z*(float64(**(**float32)(__ccgo_up(p + 1*4)))+Tfloat_t(z*(float64(**(**float32)(__ccgo_up(p + 2*4)))+Tfloat_t(z*(float64(**(**float32)(__ccgo_up(p + 3*4)))+Tfloat_t(z*(float64(**(**float32)(__ccgo_up(p + 4*4)))+Tfloat_t(z*float64(**(**float32)(__ccgo_up(p + 5*4)))))))))))) + s = Float64FromFloat32(1) + Tfloat_t(z*(float64(**(**float32)(__ccgo_up(q)))+Tfloat_t(z*(float64(**(**float32)(__ccgo_up(q + 1*4)))+Tfloat_t(z*(float64(**(**float32)(__ccgo_up(q + 2*4)))+Tfloat_t(z*(float64(**(**float32)(__ccgo_up(q + 3*4)))+Tfloat_t(z*(float64(**(**float32)(__ccgo_up(q + 4*4)))+Tfloat_t(z*float64(**(**float32)(__ccgo_up(q + 5*4)))))))))))))) + return float32((Float64FromFloat32(0.375) + r/s) / float64(x)) +} + +var _invsqrtpi4 = float64(0.5641895835477563) /* 0x3FE20DD7, 0x50429B6D */ + +func Xjn(tls *TLS, n int32, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v n=%v x=%v, (%v:)", tls, n, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __u Tuint64_t + var a, b, h, nf, q0, q1, t, temp, tmp, w, z, v6 float64 + var i, k, nm1, sign int32 + var ix, lx Tuint32_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = __u, a, b, h, i, ix, k, lx, nf, nm1, q0, q1, sign, t, temp, tmp, w, z, v6 + __u = *(*Tuint64_t)(unsafe.Pointer(&x)) + ix = uint32(__u >> int32(32)) + lx = uint32(__u) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix|(lx|-lx)>>int32(31) > uint32(0x7ff00000) { /* nan */ + return x + } + /* J(-n,x) = (-1)^n * J(n, x), J(n, -x) = (-1)^n * J(n, x) + * Thus, J(-n,x) = J(n,-x) + */ + /* nm1 = |n|-1 is used instead of |n| to handle n==INT_MIN */ + if n == 0 { + return Xj0(tls, x) + } + if n < 0 { + nm1 = -(n + int32(1)) + x = -x + sign = sign ^ int32(1) + } else { + nm1 = n - int32(1) + } + if nm1 == 0 { + return Xj1(tls, x) + } + sign = sign & n /* even n: 0, odd n: signbit(x) */ + x = Xfabs(tls, x) + if ix|lx == uint32(0) || ix == uint32(0x7ff00000) { /* if x is 0 or inf */ + b = float64(0) + } else { + if float64(nm1) < x { + /* Safe to use J(n+1,x)=2n/x *J(n,x)-J(n-1,x) */ + if ix >= uint32(0x52d00000) { /* x > 2**302 */ + /* (x >> n**2) + * Jn(x) = cos(x-(2n+1)*pi/4)*sqrt(2/x*pi) + * Yn(x) = sin(x-(2n+1)*pi/4)*sqrt(2/x*pi) + * Let s=sin(x), c=cos(x), + * xn=x-(2n+1)*pi/4, sqt2 = sqrt(2),then + * + * n sin(xn)*sqt2 cos(xn)*sqt2 + * ---------------------------------- + * 0 s-c c+s + * 1 -s-c -c+s + * 2 -s+c -c-s + * 3 s+c c-s + */ + switch nm1 & Int32FromInt32(3) { + case 0: + temp = -Xcos(tls, x) + Xsin(tls, x) + case int32(1): + temp = -Xcos(tls, x) - Xsin(tls, x) + case int32(2): + temp = Xcos(tls, x) - Xsin(tls, x) + default: + fallthrough + case int32(3): + temp = Xcos(tls, x) + Xsin(tls, x) + break + } + b = float64(_invsqrtpi4*temp) / Xsqrt(tls, x) + } else { + a = Xj0(tls, x) + b = Xj1(tls, x) + i = 0 + for { + if !(i < nm1) { + break + } + i = i + 1 + temp = b + b = float64(b*(float64(float64(2)*float64(i))/x)) - a /* avoid underflow */ + a = temp + goto _1 + _1: + } + } + } else { + if ix < uint32(0x3e100000) { /* x < 2**-29 */ + /* x is tiny, return the first Taylor expansion of J(n,x) + * J(n,x) = 1/n!*(x/2)^n - ... + */ + if nm1 > int32(32) { /* underflow */ + b = float64(0) + } else { + temp = float64(x * float64(0.5)) + b = temp + a = float64(1) + i = int32(2) + for { + if !(i <= nm1+int32(1)) { + break + } + a = a * float64(i) /* a = n! */ + b = b * temp /* b = (x/2)^n */ + goto _2 + _2: + ; + i = i + 1 + } + b = b / a + } + } else { + nf = float64(nm1) + float64(1) + w = float64(Float64FromInt32(2)*nf) / x + h = Float64FromInt32(2) / x + z = w + h + q0 = w + q1 = float64(w*z) - float64(1) + k = int32(1) + for q1 < float64(1e+09) { + k = k + int32(1) + z = z + h + tmp = float64(z*q1) - q0 + q0 = q1 + q1 = tmp + } + t = float64(0) + i = k + for { + if !(i >= 0) { + break + } + t = Float64FromInt32(1) / (float64(Float64FromInt32(2)*(float64(i)+nf))/x - t) + goto _3 + _3: + ; + i = i - 1 + } + a = t + b = float64(1) + /* estimate log((2/x)^n*n!) = n*log(2/x)+n*ln(n) + * Hence, if n*(log(2n/x)) > ... + * single 8.8722839355e+01 + * double 7.09782712893383973096e+02 + * long double 1.1356523406294143949491931077970765006170e+04 + * then recurrent value may overflow and the result is + * likely underflow to zero + */ + tmp = float64(nf * Xlog(tls, Xfabs(tls, w))) + if tmp < float64(709.782712893384) { + i = nm1 + for { + if !(i > 0) { + break + } + temp = b + b = float64(b*float64(float64(2)*float64(i)))/x - a + a = temp + goto _4 + _4: + ; + i = i - 1 + } + } else { + i = nm1 + for { + if !(i > 0) { + break + } + temp = b + b = float64(b*float64(float64(2)*float64(i)))/x - a + a = temp + /* scale b to avoid spurious overflow */ + if b > float64(3.273390607896142e+150) { + a = a / b + t = t / b + b = float64(1) + } + goto _5 + _5: + ; + i = i - 1 + } + } + z = Xj0(tls, x) + w = Xj1(tls, x) + if Xfabs(tls, z) >= Xfabs(tls, w) { + b = float64(t*z) / b + } else { + b = float64(t*w) / a + } + } + } + } + if sign != 0 { + v6 = -b + } else { + v6 = b + } + return v6 +} + +func Xyn(tls *TLS, n int32, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v n=%v x=%v, (%v:)", tls, n, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __u Tuint64_t + var a, b, temp, v1 float64 + var i, nm1, sign int32 + var ib, ix, lx Tuint32_t + _, _, _, _, _, _, _, _, _, _, _ = __u, a, b, i, ib, ix, lx, nm1, sign, temp, v1 + __u = *(*Tuint64_t)(unsafe.Pointer(&x)) + ix = uint32(__u >> int32(32)) + lx = uint32(__u) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix|(lx|-lx)>>int32(31) > uint32(0x7ff00000) { /* nan */ + return x + } + if sign != 0 && ix|lx != uint32(0) { /* x < 0 */ + return Float64FromInt32(0) / Float64FromFloat64(0) + } + if ix == uint32(0x7ff00000) { + return float64(0) + } + if n == 0 { + return Xy0(tls, x) + } + if n < 0 { + nm1 = -(n + int32(1)) + sign = n & int32(1) + } else { + nm1 = n - int32(1) + sign = 0 + } + if nm1 == 0 { + if sign != 0 { + v1 = -Xy1(tls, x) + } else { + v1 = Xy1(tls, x) + } + return v1 + } + if ix >= uint32(0x52d00000) { /* x > 2**302 */ + /* (x >> n**2) + * Jn(x) = cos(x-(2n+1)*pi/4)*sqrt(2/x*pi) + * Yn(x) = sin(x-(2n+1)*pi/4)*sqrt(2/x*pi) + * Let s=sin(x), c=cos(x), + * xn=x-(2n+1)*pi/4, sqt2 = sqrt(2),then + * + * n sin(xn)*sqt2 cos(xn)*sqt2 + * ---------------------------------- + * 0 s-c c+s + * 1 -s-c -c+s + * 2 -s+c -c-s + * 3 s+c c-s + */ + switch nm1 & Int32FromInt32(3) { + case 0: + temp = -Xsin(tls, x) - Xcos(tls, x) + case int32(1): + temp = -Xsin(tls, x) + Xcos(tls, x) + case int32(2): + temp = Xsin(tls, x) + Xcos(tls, x) + default: + fallthrough + case int32(3): + temp = Xsin(tls, x) - Xcos(tls, x) + break + } + b = float64(_invsqrtpi4*temp) / Xsqrt(tls, x) + } else { + a = Xy0(tls, x) + b = Xy1(tls, x) + /* quit if b is -inf */ + ib = uint32(*(*Tuint64_t)(unsafe.Pointer(&b)) >> int32(32)) + i = 0 + for { + if !(i < nm1 && ib != uint32(0xfff00000)) { + break + } + i = i + 1 + temp = b + b = float64(float64(float64(2)*float64(i))/x*b) - a + ib = uint32(*(*Tuint64_t)(unsafe.Pointer(&b)) >> int32(32)) + a = temp + goto _2 + _2: + } + } + if sign != 0 { + v1 = -b + } else { + v1 = b + } + return v1 +} + +func Xjnf(tls *TLS, n int32, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v n=%v x=%v, (%v:)", tls, n, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, b, h, nf, q0, q1, t, temp, tmp, w, z, v6 float32 + var i, k, nm1, sign int32 + var ix Tuint32_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = a, b, h, i, ix, k, nf, nm1, q0, q1, sign, t, temp, tmp, w, z, v6 + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix > uint32(0x7f800000) { /* nan */ + return x + } + /* J(-n,x) = J(n,-x), use |n|-1 to avoid overflow in -n */ + if n == 0 { + return Xj0f(tls, x) + } + if n < 0 { + nm1 = -(n + int32(1)) + x = -x + sign = sign ^ int32(1) + } else { + nm1 = n - int32(1) + } + if nm1 == 0 { + return Xj1f(tls, x) + } + sign = sign & n /* even n: 0, odd n: signbit(x) */ + x = Xfabsf(tls, x) + if ix == uint32(0) || ix == uint32(0x7f800000) { /* if x is 0 or inf */ + b = Float32FromFloat32(0) + } else { + if float32(nm1) < x { + /* Safe to use J(n+1,x)=2n/x *J(n,x)-J(n-1,x) */ + a = Xj0f(tls, x) + b = Xj1f(tls, x) + i = 0 + for { + if !(i < nm1) { + break + } + i = i + 1 + temp = b + b = float32(b*(float32(Float32FromFloat32(2)*float32(i))/x)) - a + a = temp + goto _1 + _1: + } + } else { + if ix < uint32(0x35800000) { /* x < 2**-20 */ + /* x is tiny, return the first Taylor expansion of J(n,x) + * J(n,x) = 1/n!*(x/2)^n - ... + */ + if nm1 > int32(8) { /* underflow */ + nm1 = int32(8) + } + temp = float32(Float32FromFloat32(0.5) * x) + b = temp + a = Float32FromFloat32(1) + i = int32(2) + for { + if !(i <= nm1+int32(1)) { + break + } + a = a * float32(i) /* a = n! */ + b = b * temp /* b = (x/2)^n */ + goto _2 + _2: + ; + i = i + 1 + } + b = b / a + } else { + nf = float32(nm1) + Float32FromFloat32(1) + w = float32(Float32FromInt32(2)*nf) / x + h = Float32FromInt32(2) / x + z = w + h + q0 = w + q1 = float32(w*z) - Float32FromFloat32(1) + k = int32(1) + for q1 < Float32FromFloat32(10000) { + k = k + int32(1) + z = z + h + tmp = float32(z*q1) - q0 + q0 = q1 + q1 = tmp + } + t = Float32FromFloat32(0) + i = k + for { + if !(i >= 0) { + break + } + t = Float32FromFloat32(1) / (float32(Float32FromInt32(2)*(float32(i)+nf))/x - t) + goto _3 + _3: + ; + i = i - 1 + } + a = t + b = Float32FromFloat32(1) + /* estimate log((2/x)^n*n!) = n*log(2/x)+n*ln(n) + * Hence, if n*(log(2n/x)) > ... + * single 8.8722839355e+01 + * double 7.09782712893383973096e+02 + * long double 1.1356523406294143949491931077970765006170e+04 + * then recurrent value may overflow and the result is + * likely underflow to zero + */ + tmp = float32(nf * Xlogf(tls, Xfabsf(tls, w))) + if tmp < Float32FromFloat32(88.721679688) { + i = nm1 + for { + if !(i > 0) { + break + } + temp = b + b = float32(float32(Float32FromFloat32(2)*float32(i))*b)/x - a + a = temp + goto _4 + _4: + ; + i = i - 1 + } + } else { + i = nm1 + for { + if !(i > 0) { + break + } + temp = b + b = float32(float32(Float32FromFloat32(2)*float32(i))*b)/x - a + a = temp + /* scale b to avoid spurious overflow */ + if b > Float32FromFloat32(1.152921504606847e+18) { + a = a / b + t = t / b + b = Float32FromFloat32(1) + } + goto _5 + _5: + ; + i = i - 1 + } + } + z = Xj0f(tls, x) + w = Xj1f(tls, x) + if Xfabsf(tls, z) >= Xfabsf(tls, w) { + b = float32(t*z) / b + } else { + b = float32(t*w) / a + } + } + } + } + if sign != 0 { + v6 = -b + } else { + v6 = b + } + return v6 +} + +func Xynf(tls *TLS, n int32, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v n=%v x=%v, (%v:)", tls, n, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, b, temp, v1 float32 + var i, nm1, sign int32 + var ib, ix Tuint32_t + _, _, _, _, _, _, _, _, _ = a, b, i, ib, ix, nm1, sign, temp, v1 + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix > uint32(0x7f800000) { /* nan */ + return x + } + if sign != 0 && ix != uint32(0) { /* x < 0 */ + return Float32FromInt32(0) / Float32FromFloat32(0) + } + if ix == uint32(0x7f800000) { + return Float32FromFloat32(0) + } + if n == 0 { + return Xy0f(tls, x) + } + if n < 0 { + nm1 = -(n + int32(1)) + sign = n & int32(1) + } else { + nm1 = n - int32(1) + sign = 0 + } + if nm1 == 0 { + if sign != 0 { + v1 = -Xy1f(tls, x) + } else { + v1 = Xy1f(tls, x) + } + return v1 + } + a = Xy0f(tls, x) + b = Xy1f(tls, x) + /* quit if b is -inf */ + ib = *(*Tuint32_t)(unsafe.Pointer(&b)) + i = 0 + for { + if !(i < nm1 && ib != uint32(0xff800000)) { + break + } + i = i + 1 + temp = b + b = float32(float32(Float32FromFloat32(2)*float32(i))/x*b) - a + ib = *(*Tuint32_t)(unsafe.Pointer(&b)) + a = temp + goto _2 + _2: + } + if sign != 0 { + v1 = -b + } else { + v1 = b + } + return v1 +} + +func Xldexp(tls *TLS, x float64, n int32) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xscalbn(tls, x, n) +} + +func Xldexpf(tls *TLS, x float32, n int32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xscalbnf(tls, x, n) +} + +func Xldexpl(tls *TLS, x float64, n int32) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xscalbnl(tls, x, n) +} + +func Xlgamma(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lgamma_r(tls, x, uintptr(unsafe.Pointer(&Xsigngam))) +} + +var _pi2 = float64(3.141592653589793) /* 0x400921FB, 0x54442D18 */ +var _a0 = float64(0.07721566490153287) /* 0x3FB3C467, 0xE37DB0C8 */ +var _a1 = float64(0.3224670334241136) /* 0x3FD4A34C, 0xC4A60FAD */ +var _a2 = float64(0.06735230105312927) /* 0x3FB13E00, 0x1A5562A7 */ +var _a3 = float64(0.020580808432516733) /* 0x3F951322, 0xAC92547B */ +var _a4 = float64(0.007385550860814029) /* 0x3F7E404F, 0xB68FEFE8 */ +var _a5 = float64(0.0028905138367341563) /* 0x3F67ADD8, 0xCCB7926B */ +var _a6 = float64(0.0011927076318336207) /* 0x3F538A94, 0x116F3F5D */ +var _a7 = float64(0.0005100697921535113) /* 0x3F40B6C6, 0x89B99C00 */ +var _a8 = float64(0.00022086279071390839) /* 0x3F2CF2EC, 0xED10E54D */ +var _a9 = float64(0.00010801156724758394) /* 0x3F1C5088, 0x987DFB07 */ +var _a10 = float64(2.5214456545125733e-05) /* 0x3EFA7074, 0x428CFA52 */ +var _a11 = float64(4.4864094961891516e-05) /* 0x3F07858E, 0x90A45837 */ +var _tc = float64(1.4616321449683622) /* 0x3FF762D8, 0x6356BE3F */ +var _tf = -Float64FromFloat64(0.12148629053584961) /* 0xBFBF19B9, 0xBCC38A42 */ +/* tt = -(tail of tf) */ +var _tt = -Float64FromFloat64(3.638676997039505e-18) /* 0xBC50C7CA, 0xA48A971F */ +var _t0 = float64(0.48383612272381005) /* 0x3FDEF72B, 0xC8EE38A2 */ +var _t1 = -Float64FromFloat64(0.1475877229945939) /* 0xBFC2E427, 0x8DC6C509 */ +var _t2 = float64(0.06462494023913339) /* 0x3FB08B42, 0x94D5419B */ +var _t3 = -Float64FromFloat64(0.032788541075985965) /* 0xBFA0C9A8, 0xDF35B713 */ +var _t4 = float64(0.01797067508118204) /* 0x3F9266E7, 0x970AF9EC */ +var _t5 = -Float64FromFloat64(0.010314224129834144) /* 0xBF851F9F, 0xBA91EC6A */ +var _t6 = float64(0.006100538702462913) /* 0x3F78FCE0, 0xE370E344 */ +var _t7 = -Float64FromFloat64(0.0036845201678113826) /* 0xBF6E2EFF, 0xB3E914D7 */ +var _t8 = float64(0.0022596478090061247) /* 0x3F6282D3, 0x2E15C915 */ +var _t9 = -Float64FromFloat64(0.0014034646998923284) /* 0xBF56FE8E, 0xBF2D1AF1 */ +var _t10 = float64(0.000881081882437654) /* 0x3F4CDF0C, 0xEF61A8E9 */ +var _t11 = -Float64FromFloat64(0.0005385953053567405) /* 0xBF41A610, 0x9C73E0EC */ +var _t12 = float64(0.00031563207090362595) /* 0x3F34AF6D, 0x6C0EBBF7 */ +var _t13 = -Float64FromFloat64(0.00031275416837512086) /* 0xBF347F24, 0xECC38C38 */ +var _t14 = float64(0.0003355291926355191) /* 0x3F35FD3E, 0xE8C2D3F4 */ +var _u0 = -Float64FromFloat64(0.07721566490153287) /* 0xBFB3C467, 0xE37DB0C8 */ +var _u1 = float64(0.6328270640250934) /* 0x3FE4401E, 0x8B005DFF */ +var _u2 = float64(1.4549225013723477) /* 0x3FF7475C, 0xD119BD6F */ +var _u3 = float64(0.9777175279633727) /* 0x3FEF4976, 0x44EA8450 */ +var _u4 = float64(0.22896372806469245) /* 0x3FCD4EAE, 0xF6010924 */ +var _u5 = float64(0.013381091853678766) /* 0x3F8B678B, 0xBF2BAB09 */ +var _v1 = float64(2.4559779371304113) /* 0x4003A5D7, 0xC2BD619C */ +var _v2 = float64(2.128489763798934) /* 0x40010725, 0xA42B18F5 */ +var _v3 = float64(0.7692851504566728) /* 0x3FE89DFB, 0xE45050AF */ +var _v4 = float64(0.10422264559336913) /* 0x3FBAAE55, 0xD6537C88 */ +var _v5 = float64(0.003217092422824239) /* 0x3F6A5ABB, 0x57D0CF61 */ +var _s0 = -Float64FromFloat64(0.07721566490153287) /* 0xBFB3C467, 0xE37DB0C8 */ +var _s1 = float64(0.21498241596060885) /* 0x3FCB848B, 0x36E20878 */ +var _s2 = float64(0.325778796408931) /* 0x3FD4D98F, 0x4F139F59 */ +var _s3 = float64(0.14635047265246445) /* 0x3FC2BB9C, 0xBEE5F2F7 */ +var _s4 = float64(0.02664227030336386) /* 0x3F9B481C, 0x7E939961 */ +var _s5 = float64(0.0018402845140733772) /* 0x3F5E26B6, 0x7368F239 */ +var _s6 = float64(3.194753265841009e-05) /* 0x3F00BFEC, 0xDD17E945 */ +var _r1 = float64(1.3920053346762105) /* 0x3FF645A7, 0x62C4AB74 */ +var _r2 = float64(0.7219355475671381) /* 0x3FE71A18, 0x93D3DCDC */ +var _r3 = float64(0.17193386563280308) /* 0x3FC601ED, 0xCCFBDF27 */ +var _r4 = float64(0.01864591917156529) /* 0x3F9317EA, 0x742ED475 */ +var _r5 = float64(0.0007779424963818936) /* 0x3F497DDA, 0xCA41A95B */ +var _r6 = float64(7.326684307446256e-06) /* 0x3EDEBAF7, 0xA5B38140 */ +var _w0 = float64(0.4189385332046727) /* 0x3FDACFE3, 0x90C97D69 */ +var _w1 = float64(0.08333333333333297) /* 0x3FB55555, 0x5555553B */ +var _w2 = -Float64FromFloat64(0.0027777777772877554) /* 0xBF66C16C, 0x16B02E5C */ +var _w3 = float64(0.0007936505586430196) /* 0x3F4A019F, 0x98CF38B6 */ +var _w4 = -Float64FromFloat64(0.00059518755745034) /* 0xBF4380CB, 0x8C0FE741 */ +var _w5 = float64(0.0008363399189962821) /* 0x3F4B67BA, 0x4CDAD5D1 */ +var _w6 = -Float64FromFloat64(0.0016309293409657527) /* 0xBF5AB89D, 0x0B9E43E4 */ + +// C documentation +// +// /* sin(pi*x) assuming x > 2^-100, if sin(pi*x)==0 the sign is arbitrary */ +func _sin_pi(tls *TLS, x float64) (r float64) { + var n int32 + _ = n + /* spurious inexact if odd int */ + x = float64(float64(2) * (float64(x*float64(0.5)) - Xfloor(tls, float64(x*float64(0.5))))) /* x mod 2.0 */ + n = int32(float64(x * Float64FromFloat64(4))) + n = (n + int32(1)) / int32(2) + x = x - float64(float32(n)*Float32FromFloat32(0.5)) + x = x * _pi2 + switch n { + default: /* case 4: */ + fallthrough + case 0: + return X__sin(tls, x, float64(0), 0) + case int32(1): + return X__cos(tls, x, float64(0)) + case int32(2): + return X__sin(tls, -x, float64(0), 0) + case int32(3): + return -X__cos(tls, x, float64(0)) + } + return r +} + +func X__lgamma_r(tls *TLS, x float64, signgamp uintptr) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x=%v signgamp=%v, (%v:)", tls, x, signgamp, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var i, sign int32 + var ix Tuint32_t + var nadj, p, p1, p2, p3, q, r, t, w, y, z Tdouble_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = i, ix, nadj, p, p1, p2, p3, q, r, sign, t, w, y, z + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + /* purge off +-inf, NaN, +-0, tiny and negative arguments */ + **(**int32)(__ccgo_up(signgamp)) = int32(1) + sign = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(63)) + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32) & uint64(0x7fffffff)) + if ix >= uint32(0x7ff00000) { + return float64(x * x) + } + if ix < Uint32FromInt32((Int32FromInt32(0x3ff)-Int32FromInt32(70))< Float64FromFloat64(0) { + **(**int32)(__ccgo_up(signgamp)) = -int32(1) + } else { + t = -t + } + nadj = Xlog(tls, _pi2/Tdouble_t(t*x)) + } + /* purge off 1 and 2 */ + if (ix == uint32(0x3ff00000) || ix == uint32(0x40000000)) && uint32(*(*Tuint64_t)(unsafe.Pointer(bp))) == uint32(0) { + r = Float64FromInt32(0) + } else { + if ix < uint32(0x40000000) { + if ix <= uint32(0x3feccccc) { /* lgamma(x) = lgamma(x+1)-log(x) */ + r = -Xlog(tls, x) + if ix >= uint32(0x3FE76944) { + y = float64(1) - x + i = 0 + } else { + if ix >= uint32(0x3FCDA661) { + y = float64(x - (_tc - Float64FromFloat64(1))) + i = int32(1) + } else { + y = x + i = int32(2) + } + } + } else { + r = Float64FromFloat64(0) + if ix >= uint32(0x3FFBB4C3) { /* [1.7316,2] */ + y = float64(2) - x + i = 0 + } else { + if ix >= uint32(0x3FF3B4C4) { /* [1.23,1.73] */ + y = x - _tc + i = int32(1) + } else { + y = x - float64(1) + i = int32(2) + } + } + } + switch i { + case 0: + z = Tdouble_t(y * y) + p1 = _a0 + Tdouble_t(z*(_a2+Tdouble_t(z*(_a4+Tdouble_t(z*(_a6+Tdouble_t(z*(_a8+Tdouble_t(z*_a10))))))))) + p2 = Tdouble_t(z * (_a1 + Tdouble_t(z*(_a3+Tdouble_t(z*(_a5+Tdouble_t(z*(_a7+Tdouble_t(z*(_a9+Tdouble_t(z*_a11))))))))))) + p = Tdouble_t(y*p1) + p2 + r = r + (p - Tdouble_t(Float64FromFloat64(0.5)*y)) + case int32(1): + z = Tdouble_t(y * y) + w = Tdouble_t(z * y) + p1 = _t0 + Tdouble_t(w*(float64(_t3)+Tdouble_t(w*(_t6+Tdouble_t(w*(float64(_t9)+Tdouble_t(w*_t12))))))) /* parallel comp */ + p2 = float64(_t1) + Tdouble_t(w*(_t4+Tdouble_t(w*(float64(_t7)+Tdouble_t(w*(_t10+Tdouble_t(w*float64(_t13)))))))) + p3 = _t2 + Tdouble_t(w*(float64(_t5)+Tdouble_t(w*(_t8+Tdouble_t(w*(float64(_t11)+Tdouble_t(w*_t14))))))) + p = Tdouble_t(z*p1) - (float64(_tt) - Tdouble_t(w*(p2+Tdouble_t(y*p3)))) + r = r + (float64(_tf) + p) + case int32(2): + p1 = Tdouble_t(y * (float64(_u0) + Tdouble_t(y*(_u1+Tdouble_t(y*(_u2+Tdouble_t(y*(_u3+Tdouble_t(y*(_u4+Tdouble_t(y*_u5))))))))))) + p2 = Float64FromFloat64(1) + Tdouble_t(y*(_v1+Tdouble_t(y*(_v2+Tdouble_t(y*(_v3+Tdouble_t(y*(_v4+Tdouble_t(y*_v5))))))))) + r = r + (Tdouble_t(float64(-Float64FromFloat64(0.5))*y) + p1/p2) + } + } else { + if ix < uint32(0x40200000) { /* x < 8.0 */ + i = int32(x) + y = x - float64(i) + p = Tdouble_t(y * (float64(_s0) + Tdouble_t(y*(_s1+Tdouble_t(y*(_s2+Tdouble_t(y*(_s3+Tdouble_t(y*(_s4+Tdouble_t(y*(_s5+Tdouble_t(y*_s6))))))))))))) + q = Float64FromFloat64(1) + Tdouble_t(y*(_r1+Tdouble_t(y*(_r2+Tdouble_t(y*(_r3+Tdouble_t(y*(_r4+Tdouble_t(y*(_r5+Tdouble_t(y*_r6))))))))))) + r = Tdouble_t(Float64FromFloat64(0.5)*y) + p/q + z = Float64FromFloat64(1) /* lgamma(1+s) = log(s) + lgamma(s) */ + switch i { + case int32(7): + z = z * (y + Float64FromFloat64(6)) /* FALLTHRU */ + fallthrough + case int32(6): + z = z * (y + Float64FromFloat64(5)) /* FALLTHRU */ + fallthrough + case int32(5): + z = z * (y + Float64FromFloat64(4)) /* FALLTHRU */ + fallthrough + case int32(4): + z = z * (y + Float64FromFloat64(3)) /* FALLTHRU */ + fallthrough + case int32(3): + z = z * (y + Float64FromFloat64(2)) /* FALLTHRU */ + r = r + Xlog(tls, z) + break + } + } else { + if ix < uint32(0x43900000) { /* 8.0 <= x < 2**58 */ + t = Xlog(tls, x) + z = float64(1) / x + y = Tdouble_t(z * z) + w = _w0 + Tdouble_t(z*(_w1+Tdouble_t(y*(float64(_w2)+Tdouble_t(y*(_w3+Tdouble_t(y*(float64(_w4)+Tdouble_t(y*(_w5+Tdouble_t(y*float64(_w6)))))))))))) + r = Tdouble_t(float64(x-Float64FromFloat64(0.5))*(t-Float64FromFloat64(1))) + w + } else { /* 2**58 <= x <= inf */ + r = Tdouble_t(x * (Xlog(tls, x) - float64(1))) + } + } + } + } + if sign != 0 { + r = nadj - r + } + return r +} + +func Xlgamma_r(tls *TLS, x float64, signgamp uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v signgamp=%v, (%v:)", tls, x, signgamp, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lgamma_r(tls, x, signgamp) +} + +func Xlgammaf(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lgammaf_r(tls, x, uintptr(unsafe.Pointer(&Xsigngam))) +} + +var _pi3 = float32(3.141592741) /* 0x40490fdb */ +var _a01 = float32(0.077215664089) /* 0x3d9e233f */ +var _a12 = float32(0.32246702909) /* 0x3ea51a66 */ +var _a21 = float32(0.067352302372) /* 0x3d89f001 */ +var _a31 = float32(0.020580807701) /* 0x3ca89915 */ +var _a41 = float32(0.0073855509982) /* 0x3bf2027e */ +var _a51 = float32(0.0028905137442) /* 0x3b3d6ec6 */ +var _a61 = float32(0.0011927076848) /* 0x3a9c54a1 */ +var _a71 = float32(0.00051006977446) /* 0x3a05b634 */ +var _a81 = float32(0.00022086278477) /* 0x39679767 */ +var _a91 = float32(0.00010801156895) /* 0x38e28445 */ +var _a101 = float32(2.52144564e-05) /* 0x37d383a2 */ +var _a111 = float32(4.4864096708e-05) /* 0x383c2c75 */ +var _tc1 = float32(1.4616321325) /* 0x3fbb16c3 */ +var _tf1 = float32(-Float64FromFloat64(0.12148628384)) /* 0xbdf8cdcd */ +/* tt = -(tail of tf) */ +var _tt1 = float32(6.6971006518e-09) /* 0x31e61c52 */ +var _t01 = float32(0.48383611441) /* 0x3ef7b95e */ +var _t15 = float32(-Float64FromFloat64(0.14758771658)) /* 0xbe17213c */ +var _t21 = float32(0.064624942839) /* 0x3d845a15 */ +var _t31 = float32(-Float64FromFloat64(0.032788541168)) /* 0xbd064d47 */ +var _t41 = float32(0.017970675603) /* 0x3c93373d */ +var _t51 = float32(-Float64FromFloat64(0.010314224288)) /* 0xbc28fcfe */ +var _t61 = float32(0.0061005386524) /* 0x3bc7e707 */ +var _t71 = float32(-Float64FromFloat64(0.0036845202558)) /* 0xbb7177fe */ +var _t81 = float32(0.0022596477065) /* 0x3b141699 */ +var _t91 = float32(-Float64FromFloat64(0.0014034647029)) /* 0xbab7f476 */ +var _t101 = float32(0.00088108185446) /* 0x3a66f867 */ +var _t111 = float32(-Float64FromFloat64(0.00053859531181)) /* 0xba0d3085 */ +var _t121 = float32(0.00031563205994) /* 0x39a57b6b */ +var _t131 = float32(-Float64FromFloat64(0.00031275415677)) /* 0xb9a3f927 */ +var _t141 = float32(0.00033552918467) /* 0x39afe9f7 */ +var _u07 = float32(-Float64FromFloat64(0.077215664089)) /* 0xbd9e233f */ +var _u11 = float32(0.63282704353) /* 0x3f2200f4 */ +var _u21 = float32(1.4549225569) /* 0x3fba3ae7 */ +var _u31 = float32(0.97771751881) /* 0x3f7a4bb2 */ +var _u41 = float32(0.22896373272) /* 0x3e6a7578 */ +var _u51 = float32(0.013381091878) /* 0x3c5b3c5e */ +var _v11 = float32(2.4559779167) /* 0x401d2ebe */ +var _v21 = float32(2.1284897327) /* 0x4008392d */ +var _v31 = float32(0.76928514242) /* 0x3f44efdf */ +var _v41 = float32(0.10422264785) /* 0x3dd572af */ +var _v51 = float32(0.0032170924824) /* 0x3b52d5db */ +var _s06 = float32(-Float64FromFloat64(0.077215664089)) /* 0xbd9e233f */ +var _s11 = float32(0.21498242021) /* 0x3e5c245a */ +var _s21 = float32(0.32577878237) /* 0x3ea6cc7a */ +var _s31 = float32(0.14635047317) /* 0x3e15dce6 */ +var _s41 = float32(0.026642270386) /* 0x3cda40e4 */ +var _s51 = float32(0.0018402845599) /* 0x3af135b4 */ +var _s61 = float32(3.1947532989e-05) /* 0x3805ff67 */ +var _r11 = float32(1.3920053244) /* 0x3fb22d3b */ +var _r21 = float32(0.72193557024) /* 0x3f38d0c5 */ +var _r31 = float32(0.17193385959) /* 0x3e300f6e */ +var _r41 = float32(0.018645919859) /* 0x3c98bf54 */ +var _r51 = float32(0.00077794247773) /* 0x3a4beed6 */ +var _r61 = float32(7.3266842264e-06) /* 0x36f5d7bd */ +var _w01 = float32(0.41893854737) /* 0x3ed67f1d */ +var _w11 = float32(0.083333335817) /* 0x3daaaaab */ +var _w21 = float32(-Float64FromFloat64(0.002777777845)) /* 0xbb360b61 */ +var _w31 = float32(0.00079365057172) /* 0x3a500cfd */ +var _w41 = float32(-Float64FromFloat64(0.00059518753551)) /* 0xba1c065c */ +var _w51 = float32(0.00083633989561) /* 0x3a5b3dd2 */ +var _w61 = float32(-Float64FromFloat64(0.0016309292987)) /* 0xbad5c4e8 */ + +// C documentation +// +// /* sin(pi*x) assuming x > 2^-100, if sin(pi*x)==0 the sign is arbitrary */ +func _sin_pi1(tls *TLS, x float32) (r float32) { + var n int32 + var y Tdouble_t + _, _ = n, y + /* spurious inexact if odd int */ + x = float32(Float32FromInt32(2) * (float32(x*Float32FromFloat32(0.5)) - Xfloorf(tls, float32(x*Float32FromFloat32(0.5))))) /* x mod 2.0 */ + n = int32(float32(x * Float32FromInt32(4))) + n = (n + int32(1)) / int32(2) + y = float64(x - float32(float32(n)*Float32FromFloat32(0.5))) + y = y * Float64FromFloat64(3.141592653589793) + switch n { + default: /* case 4: */ + fallthrough + case 0: + return X__sindf(tls, y) + case int32(1): + return X__cosdf(tls, y) + case int32(2): + return X__sindf(tls, -y) + case int32(3): + return -X__cosdf(tls, y) + } + return r +} + +func X__lgammaf_r(tls *TLS, x float32, signgamp uintptr) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x=%v signgamp=%v, (%v:)", tls, x, signgamp, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var i, sign int32 + var ix Tuint32_t + var nadj, p, p1, p2, p3, q, r, t, w, y, z float32 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = i, ix, nadj, p, p1, p2, p3, q, r, sign, t, w, y, z + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + /* purge off +-inf, NaN, +-0, tiny and negative arguments */ + **(**int32)(__ccgo_up(signgamp)) = int32(1) + sign = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(31)) + ix = *(*Tuint32_t)(unsafe.Pointer(bp)) & uint32(0x7fffffff) + if ix >= uint32(0x7f800000) { + return float32(x * x) + } + if ix < uint32(0x35000000) { /* |x| < 2**-21, return -log(|x|) */ + if sign != 0 { + **(**int32)(__ccgo_up(signgamp)) = -int32(1) + x = -x + } + return -Xlogf(tls, x) + } + if sign != 0 { + x = -x + t = _sin_pi1(tls, x) + if t == Float32FromFloat32(0) { /* -integer */ + return Float32FromFloat32(1) / (x - x) + } + if t > Float32FromFloat32(0) { + **(**int32)(__ccgo_up(signgamp)) = -int32(1) + } else { + t = -t + } + nadj = Xlogf(tls, _pi3/float32(t*x)) + } + /* purge off 1 and 2 */ + if ix == uint32(0x3f800000) || ix == uint32(0x40000000) { + r = Float32FromInt32(0) + } else { + if ix < uint32(0x40000000) { + if ix <= uint32(0x3f666666) { /* lgamma(x) = lgamma(x+1)-log(x) */ + r = -Xlogf(tls, x) + if ix >= uint32(0x3f3b4a20) { + y = Float32FromFloat32(1) - x + i = 0 + } else { + if ix >= uint32(0x3e6d3308) { + y = x - (_tc1 - Float32FromFloat32(1)) + i = int32(1) + } else { + y = x + i = int32(2) + } + } + } else { + r = Float32FromFloat32(0) + if ix >= uint32(0x3fdda618) { /* [1.7316,2] */ + y = Float32FromFloat32(2) - x + i = 0 + } else { + if ix >= uint32(0x3F9da620) { /* [1.23,1.73] */ + y = x - _tc1 + i = int32(1) + } else { + y = x - Float32FromFloat32(1) + i = int32(2) + } + } + } + switch i { + case 0: + z = float32(y * y) + p1 = _a01 + float32(z*(_a21+float32(z*(_a41+float32(z*(_a61+float32(z*(_a81+float32(z*_a101))))))))) + p2 = float32(z * (_a12 + float32(z*(_a31+float32(z*(_a51+float32(z*(_a71+float32(z*(_a91+float32(z*_a111))))))))))) + p = float32(y*p1) + p2 + r = r + (p - float32(Float32FromFloat32(0.5)*y)) + case int32(1): + z = float32(y * y) + w = float32(z * y) + p1 = _t01 + float32(w*(_t31+float32(w*(_t61+float32(w*(_t91+float32(w*_t121))))))) /* parallel comp */ + p2 = _t15 + float32(w*(_t41+float32(w*(_t71+float32(w*(_t101+float32(w*_t131))))))) + p3 = _t21 + float32(w*(_t51+float32(w*(_t81+float32(w*(_t111+float32(w*_t141))))))) + p = float32(z*p1) - (_tt1 - float32(w*(p2+float32(y*p3)))) + r = r + (_tf1 + p) + case int32(2): + p1 = float32(y * (_u07 + float32(y*(_u11+float32(y*(_u21+float32(y*(_u31+float32(y*(_u41+float32(y*_u51))))))))))) + p2 = Float32FromFloat32(1) + float32(y*(_v11+float32(y*(_v21+float32(y*(_v31+float32(y*(_v41+float32(y*_v51))))))))) + r = r + (float32(-Float32FromFloat32(0.5)*y) + p1/p2) + } + } else { + if ix < uint32(0x41000000) { /* x < 8.0 */ + i = int32(x) + y = x - float32(i) + p = float32(y * (_s06 + float32(y*(_s11+float32(y*(_s21+float32(y*(_s31+float32(y*(_s41+float32(y*(_s51+float32(y*_s61))))))))))))) + q = Float32FromFloat32(1) + float32(y*(_r11+float32(y*(_r21+float32(y*(_r31+float32(y*(_r41+float32(y*(_r51+float32(y*_r61))))))))))) + r = float32(Float32FromFloat32(0.5)*y) + p/q + z = Float32FromFloat32(1) /* lgamma(1+s) = log(s) + lgamma(s) */ + switch i { + case int32(7): + z = z * (y + Float32FromFloat32(6)) /* FALLTHRU */ + fallthrough + case int32(6): + z = z * (y + Float32FromFloat32(5)) /* FALLTHRU */ + fallthrough + case int32(5): + z = z * (y + Float32FromFloat32(4)) /* FALLTHRU */ + fallthrough + case int32(4): + z = z * (y + Float32FromFloat32(3)) /* FALLTHRU */ + fallthrough + case int32(3): + z = z * (y + Float32FromFloat32(2)) /* FALLTHRU */ + r = r + Xlogf(tls, z) + break + } + } else { + if ix < uint32(0x5c800000) { /* 8.0 <= x < 2**58 */ + t = Xlogf(tls, x) + z = Float32FromFloat32(1) / x + y = float32(z * z) + w = _w01 + float32(z*(_w11+float32(y*(_w21+float32(y*(_w31+float32(y*(_w41+float32(y*(_w51+float32(y*_w61))))))))))) + r = float32((x-Float32FromFloat32(0.5))*(t-Float32FromFloat32(1))) + w + } else { /* 2**58 <= x <= inf */ + r = float32(x * (Xlogf(tls, x) - Float32FromFloat32(1))) + } + } + } + } + if sign != 0 { + r = nadj - r + } + return r +} + +func Xlgammaf_r(tls *TLS, x float32, signgamp uintptr) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v signgamp=%v, (%v:)", tls, x, signgamp, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lgammaf_r(tls, x, signgamp) +} + +func X__lgammal_r(tls *TLS, x float64, sg uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v sg=%v, (%v:)", tls, x, sg, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lgamma_r(tls, x, sg) +} + +func Xlgammal(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lgammal_r(tls, x, uintptr(unsafe.Pointer(&Xsigngam))) +} + +func Xlgammal_r(tls *TLS, x float64, sg uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v sg=%v, (%v:)", tls, x, sg, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lgammal_r(tls, x, sg) +} + +/* uses LLONG_MAX > 2^53, see comments in lrint.c */ + +func Xllrint(tls *TLS, x float64) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int64(Xrint(tls, x)) +} + +/* uses LLONG_MAX > 2^24, see comments in lrint.c */ + +func Xllrintf(tls *TLS, x float32) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int64(Xrintf(tls, x)) +} + +func Xllrintl(tls *TLS, x float64) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xllrint(tls, x) +} + +func Xllround(tls *TLS, x float64) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int64(Xround(tls, x)) +} + +func Xllroundf(tls *TLS, x float32) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int64(Xroundf(tls, x)) +} + +func Xllroundl(tls *TLS, x float64) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int64(Xroundl(tls, x)) +} + +const LOG_POLY1_ORDER = 12 +const LOG_POLY_ORDER = 6 +const LOG_TABLE_BITS = 7 +const N4 = 128 +const OFF = 4604367669032910848 + +// C documentation +// +// /* Top 16 bits of a double. */ +func _top16(tls *TLS, x float64) (r Tuint32_t) { + return uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(48)) +} + +func Xlog(tls *TLS, x1 float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x1=%v, (%v:)", tls, x1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var hi, invc, kd, lo, logc, r, r2, r3, rhi, rlo, w, y1, z Tdouble_t + var i, k int32 + var ix, iz, tmp Tuint64_t + var top Tuint32_t + var y, v1, v2, v3, v4 float64 + var v5 bool + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = hi, i, invc, ix, iz, k, kd, lo, logc, r, r2, r3, rhi, rlo, tmp, top, w, y, y1, z, v1, v2, v3, v4, v5 + ix = *(*Tuint64_t)(unsafe.Pointer(&x1)) + top = _top16(tls, x1) + v1 = Float64FromFloat64(1) - Float64FromFloat64(0.0625) + v2 = Float64FromFloat64(1) + Float64FromFloat64(0.064697265625) + v3 = Float64FromFloat64(1) - Float64FromFloat64(0.0625) + if ix-*(*Tuint64_t)(unsafe.Pointer(&v1)) < *(*Tuint64_t)(unsafe.Pointer(&v2))-*(*Tuint64_t)(unsafe.Pointer(&v3)) { + /* Handle close to 1.0 inputs separately. */ + /* Fix sign of zero with downward rounding when x==1. */ + if v5 = Bool(int32(WANT_ROUNDING) != 0); v5 { + v4 = float64(1) + } + if v5 && ix == *(*Tuint64_t)(unsafe.Pointer(&v4)) { + return Float64FromInt32(0) + } + r = x1 - float64(1) + r2 = Tdouble_t(r * r) + r3 = Tdouble_t(r * r2) + y1 = Tdouble_t(r3 * (float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56 + 1*8))) + Tdouble_t(r*float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56 + 2*8)))) + Tdouble_t(r2*float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56 + 3*8)))) + Tdouble_t(r3*(float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56 + 4*8)))+Tdouble_t(r*float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56 + 5*8))))+Tdouble_t(r2*float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56 + 6*8))))+Tdouble_t(r3*(float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56 + 7*8)))+Tdouble_t(r*float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56 + 8*8))))+Tdouble_t(r2*float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56 + 9*8))))+Tdouble_t(r3*float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56 + 10*8)))))))))) + /* Worst-case error is around 0.507 ULP. */ + w = Tdouble_t(r * Float64FromFloat64(1.34217728e+08)) + rhi = r + w - w + rlo = r - rhi + w = Tdouble_t(Tdouble_t(rhi*rhi) * float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56)))) /* B[0] == -0.5. */ + hi = r + w + lo = r - hi + w + lo = lo + Tdouble_t(Tdouble_t(float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56)))*rlo)*(rhi+r)) + y1 = y1 + lo + y1 = y1 + hi + y = y1 + v1 = y + goto _7 + _7: + return v1 + } + if top-uint32(0x0010) >= Uint32FromInt32(Int32FromInt32(0x7ff0)-Int32FromInt32(0x0010)) { + /* x < 0x1p-1022 or inf or nan. */ + if ix*uint64(2) == uint64(0) { + return X__math_divzero(tls, uint32(1)) + } + v1 = float64(X__builtin_inff(tls)) + if ix == *(*Tuint64_t)(unsafe.Pointer(&v1)) { /* log(inf) == inf. */ + return x1 + } + if top&uint32(0x8000) != 0 || top&uint32(0x7ff0) == uint32(0x7ff0) { + return X__math_invalid(tls, x1) + } + /* x is subnormal, normalize it. */ + v1 = float64(x1 * float64(4.503599627370496e+15)) + ix = *(*Tuint64_t)(unsafe.Pointer(&v1)) + ix = ix - Uint64FromUint64(52)<> (Int32FromInt32(52) - Int32FromInt32(LOG_TABLE_BITS)) % Uint64FromInt32(Int32FromInt32(1)<> int32(52)) /* arithmetic shift */ + iz = ix - tmp&(Uint64FromUint64(0xfff)< 0x1p-5: + 0.5 + 4.13/N + abs-poly-error*2^57 ULP (+ 0.002 ULP without fma) + Worst case error if |y| > 0x1p-4: + 0.5 + 2.06/N + abs-poly-error*2^56 ULP (+ 0.001 ULP without fma). */ + y1 = lo + Tdouble_t(r2*float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 16)))) + Tdouble_t(Tdouble_t(r*r2)*(float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 16 + 1*8)))+Tdouble_t(r*float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 16 + 2*8))))+Tdouble_t(r2*(float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 16 + 3*8)))+Tdouble_t(r*float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 16 + 4*8)))))))) + hi + y = y1 + v1 = y + goto _11 +_11: + return v1 +} + +var _ivln10hi = float64(0.4342944818781689) /* 0x3fdbcb7b, 0x15200000 */ +var _ivln10lo = float64(2.5082946711645275e-11) /* 0x3dbb9438, 0xca9aadd5 */ +var _log10_2hi = float64(0.30102999566361177) /* 0x3FD34413, 0x509F6000 */ +var _log10_2lo = float64(3.694239077158931e-13) /* 0x3D59FEF3, 0x11F12B36 */ +var _Lg1 = float64(0.6666666666666735) /* 3FE55555 55555593 */ +var _Lg2 = float64(0.3999999999940942) /* 3FD99999 9997FA04 */ +var _Lg3 = float64(0.2857142874366239) /* 3FD24924 94229359 */ +var _Lg4 = float64(0.22222198432149784) /* 3FCC71C5 1D8E78AF */ +var _Lg5 = float64(0.1818357216161805) /* 3FC74664 96CB03DE */ +var _Lg6 = float64(0.15313837699209373) /* 3FC39A09 D078C69F */ +var _Lg7 = float64(0.14798198605116586) /* 3FC2F112 DF3E5244 */ + +func Xlog10(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var R, dk, f, hfsq, hi, lo, s, t1, t2, val_hi, val_lo, w, y, z Tdouble_t + var hx Tuint32_t + var k int32 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = R, dk, f, hfsq, hi, hx, k, lo, s, t1, t2, val_hi, val_lo, w, y, z + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + hx = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32)) + k = 0 + if hx < uint32(0x00100000) || hx>>int32(31) != 0 { + if *(*Tuint64_t)(unsafe.Pointer(bp))<>int32(31) != 0 { + return (x - x) / float64(0) + } /* log(-#) = NaN */ + /* subnormal number, scale x up */ + k = k - int32(54) + x = x * float64(1.8014398509481984e+16) + *(*float64)(unsafe.Pointer(bp)) = x + hx = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32)) + } else { + if hx >= uint32(0x7ff00000) { + return x + } else { + if hx == uint32(0x3ff00000) && *(*Tuint64_t)(unsafe.Pointer(bp))<>Int32FromInt32(20)) - int32(0x3ff)) + hx = hx&uint32(0x000fffff) + uint32(0x3fe6a09e) + *(*Tuint64_t)(unsafe.Pointer(bp)) = uint64(hx)< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var R, dk, f, hfsq, hi, lo, s, t1, t2, w, z Tfloat_t + var ix Tuint32_t + var k int32 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _, _, _, _, _, _, _, _ = R, dk, f, hfsq, hi, ix, k, lo, s, t1, t2, w, z + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + ix = *(*Tuint32_t)(unsafe.Pointer(bp)) + k = 0 + if ix < uint32(0x00800000) || ix>>int32(31) != 0 { /* x < 2**-126 */ + if ix<>int32(31) != 0 { + return (x - x) / Float32FromFloat32(0) + } /* log(-#) = NaN */ + /* subnormal number, scale up x */ + k = k - int32(25) + x = x * Float32FromFloat32(3.3554432e+07) + *(*float32)(unsafe.Pointer(bp)) = x + ix = *(*Tuint32_t)(unsafe.Pointer(bp)) + } else { + if ix >= uint32(0x7f800000) { + return x + } else { + if ix == uint32(0x3f800000) { + return Float32FromInt32(0) + } + } + } + /* reduce x into [sqrt(2)/2, sqrt(2)] */ + ix = ix + Uint32FromInt32(Int32FromInt32(0x3f800000)-Int32FromInt32(0x3f3504f3)) + k = k + (Int32FromUint32(ix>>Int32FromInt32(23)) - int32(0x7f)) + ix = ix&uint32(0x007fffff) + uint32(0x3f3504f3) + *(*Tuint32_t)(unsafe.Pointer(bp)) = ix + x = *(*float32)(unsafe.Pointer(bp)) + f = float64(x - Float32FromFloat32(1)) + s = f / (Float64FromFloat32(2) + f) + z = Tfloat_t(s * s) + w = Tfloat_t(z * z) + t1 = Tfloat_t(w * (float64(_Lg21) + Tfloat_t(w*float64(_Lg41)))) + t2 = Tfloat_t(z * (float64(_Lg11) + Tfloat_t(w*float64(_Lg31)))) + R = t2 + t1 + hfsq = Tfloat_t(Tfloat_t(Float64FromFloat32(0.5)*f) * f) + hi = f - hfsq + *(*float32)(unsafe.Pointer(bp)) = float32(hi) + *(*Tuint32_t)(unsafe.Pointer(bp)) &= uint32(0xfffff000) + hi = float64(*(*float32)(unsafe.Pointer(bp))) + lo = f - hi - hfsq + Tfloat_t(s*(hfsq+R)) + dk = float64(k) + return float32(Tfloat_t(dk*float64(_log10_2lo1)) + Tfloat_t((lo+hi)*float64(_ivln10lo1)) + Tfloat_t(lo*float64(_ivln10hi1)) + Tfloat_t(hi*float64(_ivln10hi1)) + Tfloat_t(dk*float64(_log10_2hi1))) +} + +func Xlog10l(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xlog10(tls, x) +} + +var _ln2_hi2 = float64(0.6931471803691238) /* 3fe62e42 fee00000 */ +var _ln2_lo2 = float64(1.9082149292705877e-10) /* 3dea39ef 35793c76 */ +var _Lg12 = float64(0.6666666666666735) /* 3FE55555 55555593 */ +var _Lg22 = float64(0.3999999999940942) /* 3FD99999 9997FA04 */ +var _Lg32 = float64(0.2857142874366239) /* 3FD24924 94229359 */ +var _Lg42 = float64(0.22222198432149784) /* 3FCC71C5 1D8E78AF */ +var _Lg51 = float64(0.1818357216161805) /* 3FC74664 96CB03DE */ +var _Lg61 = float64(0.15313837699209373) /* 3FC39A09 D078C69F */ +var _Lg71 = float64(0.14798198605116586) /* 3FC2F112 DF3E5244 */ + +func Xlog1p(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var R, c, dk, f, hfsq, s, t1, t2, w, z Tdouble_t + var hu, hx Tuint32_t + var k int32 + var y float32 + var y1, y2, v1 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = R, c, dk, f, hfsq, hu, hx, k, s, t1, t2, w, y, y1, y2, z, v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + hx = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32)) + k = int32(1) + if hx < uint32(0x3fda827a) || hx>>int32(31) != 0 { /* 1+x < sqrt(2)+ */ + if hx >= uint32(0xbff00000) { /* x <= -1.0 */ + if x3 == float64(-Int32FromInt32(1)) { + return x3 / float64(0) + } /* log1p(-1) = -inf */ + return (x3 - x3) / float64(0) /* log1p(x<-1) = NaN */ + } + if hx<= uint32(0x7ff00000) { + return x3 + } + } + if k != 0 { + *(*float64)(unsafe.Pointer(bp)) = Float64FromInt32(1) + x3 + hu = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32)) + hu = hu + Uint32FromInt32(Int32FromInt32(0x3ff00000)-Int32FromInt32(0x3fe6a09e)) + k = Int32FromUint32(hu>>Int32FromInt32(20)) - int32(0x3ff) + /* correction term ~ log(1+x)-log(u), avoid underflow in c/u */ + if k < int32(54) { + if k >= int32(2) { + v1 = Float64FromInt32(1) - (*(*float64)(unsafe.Pointer(bp)) - x3) + } else { + v1 = x3 - (*(*float64)(unsafe.Pointer(bp)) - Float64FromInt32(1)) + } + c = v1 + c = c / *(*float64)(unsafe.Pointer(bp)) + } else { + c = Float64FromInt32(0) + } + /* reduce u into [sqrt(2)/2, sqrt(2)] */ + hu = hu&uint32(0x000fffff) + uint32(0x3fe6a09e) + *(*Tuint64_t)(unsafe.Pointer(bp)) = uint64(hu)< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var R, c, dk, f, hfsq, s, t1, t2, w, z Tfloat_t + var iu, ix Tuint32_t + var k int32 + var y, v1 float32 + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = R, c, dk, f, hfsq, iu, ix, k, s, t1, t2, w, y, y1, y2, z, v1 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + ix = *(*Tuint32_t)(unsafe.Pointer(bp)) + k = int32(1) + if ix < uint32(0x3ed413d0) || ix>>int32(31) != 0 { /* 1+x < sqrt(2)+ */ + if ix >= uint32(0xbf800000) { /* x <= -1.0 */ + if x3 == float32(-Int32FromInt32(1)) { + return x3 / Float32FromFloat32(0) + } /* log1p(-1)=+inf */ + return (x3 - x3) / Float32FromFloat32(0) /* log1p(x<-1)=NaN */ + } + if ix<= uint32(0x7f800000) { + return x3 + } + } + if k != 0 { + *(*float32)(unsafe.Pointer(bp)) = Float32FromInt32(1) + x3 + iu = *(*Tuint32_t)(unsafe.Pointer(bp)) + iu = iu + Uint32FromInt32(Int32FromInt32(0x3f800000)-Int32FromInt32(0x3f3504f3)) + k = Int32FromUint32(iu>>Int32FromInt32(23)) - int32(0x7f) + /* correction term ~ log(1+x)-log(u), avoid underflow in c/u */ + if k < int32(25) { + if k >= int32(2) { + v1 = Float32FromInt32(1) - (*(*float32)(unsafe.Pointer(bp)) - x3) + } else { + v1 = x3 - (*(*float32)(unsafe.Pointer(bp)) - Float32FromInt32(1)) + } + c = float64(v1) + c = c / float64(*(*float32)(unsafe.Pointer(bp))) + } else { + c = Float64FromInt32(0) + } + /* reduce u into [sqrt(2)/2, sqrt(2)] */ + iu = iu&uint32(0x007fffff) + uint32(0x3f3504f3) + *(*Tuint32_t)(unsafe.Pointer(bp)) = iu + f = float64(*(*float32)(unsafe.Pointer(bp)) - Float32FromInt32(1)) + } + s = f / (Float64FromFloat32(2) + f) + z = Tfloat_t(s * s) + w = Tfloat_t(z * z) + t1 = Tfloat_t(w * (float64(_Lg23) + Tfloat_t(w*float64(_Lg43)))) + t2 = Tfloat_t(z * (float64(_Lg13) + Tfloat_t(w*float64(_Lg33)))) + R = t2 + t1 + hfsq = Tfloat_t(Tfloat_t(Float64FromFloat32(0.5)*f) * f) + dk = float64(k) + return float32(Tfloat_t(s*(hfsq+R)) + (Tfloat_t(dk*float64(_ln2_lo3)) + c) - hfsq + f + Tfloat_t(dk*float64(_ln2_hi3))) +} + +func Xlog1pl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xlog1p(tls, x) +} + +const LOG2_POLY1_ORDER = 11 +const LOG2_POLY_ORDER = 7 +const LOG2_TABLE_BITS = 6 +const N5 = 64 + +// C documentation +// +// /* Top 16 bits of a double. */ +func _top161(tls *TLS, x float64) (r Tuint32_t) { + return uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(48)) +} + +func Xlog2(tls *TLS, x1 float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x1=%v, (%v:)", tls, x1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var hi, invc, kd, lo, logc, p, r, r2, r4, rhi, rhi1, rlo, rlo1, t1, t2, t3, y1, z Tdouble_t + var i, k int32 + var ix, iz, tmp, v6 Tuint64_t + var top Tuint32_t + var y, v1, v2, v3, v4 float64 + var v5 bool + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = hi, i, invc, ix, iz, k, kd, lo, logc, p, r, r2, r4, rhi, rhi1, rlo, rlo1, t1, t2, t3, tmp, top, y, y1, z, v1, v2, v3, v4, v5, v6 + ix = *(*Tuint64_t)(unsafe.Pointer(&x1)) + top = _top161(tls, x1) + v1 = Float64FromFloat64(1) - Float64FromFloat64(0.04239702224731445) + v2 = Float64FromFloat64(1) + Float64FromFloat64(0.044274330139160156) + v3 = Float64FromFloat64(1) - Float64FromFloat64(0.04239702224731445) + if ix-*(*Tuint64_t)(unsafe.Pointer(&v1)) < *(*Tuint64_t)(unsafe.Pointer(&v2))-*(*Tuint64_t)(unsafe.Pointer(&v3)) { + /* Handle close to 1.0 inputs separately. */ + /* Fix sign of zero with downward rounding when x==1. */ + if v5 = Bool(int32(WANT_ROUNDING) != 0); v5 { + v4 = float64(1) + } + if v5 && ix == *(*Tuint64_t)(unsafe.Pointer(&v4)) { + return Float64FromInt32(0) + } + r = x1 - float64(1) + v1 = r + v6 = *(*Tuint64_t)(unsafe.Pointer(&v1)) & (-Uint64FromUint64(1) << Int32FromInt32(32)) + rhi = *(*float64)(unsafe.Pointer(&v6)) + rlo = r - rhi + hi = Tdouble_t(rhi * X__log2_data.Finvln2hi) + lo = Tdouble_t(rlo*X__log2_data.Finvln2hi) + Tdouble_t(r*X__log2_data.Finvln2lo) + r2 = Tdouble_t(r * r) /* rounding error: 0x1p-62. */ + r4 = Tdouble_t(r2 * r2) + /* Worst-case error is less than 0.54 ULP (0.55 ULP without fma). */ + p = Tdouble_t(r2 * (float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 64))) + Tdouble_t(r*float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 64 + 1*8)))))) + y1 = hi + p + lo = lo + (hi - y1 + p) + lo = lo + Tdouble_t(r4*(float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 64 + 2*8)))+Tdouble_t(r*float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 64 + 3*8))))+Tdouble_t(r2*(float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 64 + 4*8)))+Tdouble_t(r*float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 64 + 5*8))))))+Tdouble_t(r4*(float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 64 + 6*8)))+Tdouble_t(r*float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 64 + 7*8))))+Tdouble_t(r2*(float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 64 + 8*8)))+Tdouble_t(r*float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 64 + 9*8)))))))))) + y1 = y1 + lo + y = y1 + v1 = y + goto _9 + _9: + return v1 + } + if top-uint32(0x0010) >= Uint32FromInt32(Int32FromInt32(0x7ff0)-Int32FromInt32(0x0010)) { + /* x < 0x1p-1022 or inf or nan. */ + if ix*uint64(2) == uint64(0) { + return X__math_divzero(tls, uint32(1)) + } + v1 = float64(X__builtin_inff(tls)) + if ix == *(*Tuint64_t)(unsafe.Pointer(&v1)) { /* log(inf) == inf. */ + return x1 + } + if top&uint32(0x8000) != 0 || top&uint32(0x7ff0) == uint32(0x7ff0) { + return X__math_invalid(tls, x1) + } + /* x is subnormal, normalize it. */ + v1 = float64(x1 * float64(4.503599627370496e+15)) + ix = *(*Tuint64_t)(unsafe.Pointer(&v1)) + ix = ix - Uint64FromUint64(52)<> (Int32FromInt32(52) - Int32FromInt32(LOG2_TABLE_BITS)) % Uint64FromInt32(Int32FromInt32(1)<> int32(52)) /* arithmetic shift */ + iz = ix - tmp&(Uint64FromUint64(0xfff)< 0x1p-4: 0.547 ULP (0.550 ULP without fma). + ~ 0.5 + 2/N/ln2 + abs-poly-error*0x1p56 ULP (+ 0.003 ULP without fma). */ + p = float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 16))) + Tdouble_t(r*float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 16 + 1*8)))) + Tdouble_t(r2*(float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 16 + 2*8)))+Tdouble_t(r*float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 16 + 3*8)))))) + Tdouble_t(r4*(float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 16 + 4*8)))+Tdouble_t(r*float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 16 + 5*8)))))) + y1 = lo + Tdouble_t(r2*p) + hi + y = y1 + v1 = y + goto _15 +_15: + return v1 +} + +type Tlog2_data = struct { + Finvln2hi float64 + Finvln2lo float64 + Fpoly [6]float64 + Fpoly1 [10]float64 + Ftab [64]struct { + Finvc float64 + Flogc float64 + } + Ftab2 [64]struct { + Fchi float64 + Fclo float64 + } +} + +const LOG2F_POLY_ORDER = 4 +const LOG2F_TABLE_BITS = 4 +const N6 = 16 +const OFF1 = 1060306944 + +/* +LOG2F_TABLE_BITS = 4 +LOG2F_POLY_ORDER = 4 + +ULP error: 0.752 (nearest rounding.) +Relative error: 1.9 * 2^-26 (before rounding.) +*/ + +func Xlog2f(tls *TLS, x1 float32) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x1=%v, (%v:)", tls, x1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var i, k int32 + var invc, logc, p, r, r2, y0, y1, z Tdouble_t + var ix, iz, tmp, top Tuint32_t + var y, v1 float32 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = i, invc, ix, iz, k, logc, p, r, r2, tmp, top, y, y0, y1, z, v1 + ix = *(*Tuint32_t)(unsafe.Pointer(&x1)) + /* Fix sign of zero with downward rounding when x==1. */ + if Bool(int32(WANT_ROUNDING) != 0) && ix == uint32(0x3f800000) { + return Float32FromInt32(0) + } + if ix-uint32(0x00800000) >= Uint32FromInt32(Int32FromInt32(0x7f800000)-Int32FromInt32(0x00800000)) { + /* x < 0x1p-126 or inf or nan. */ + if ix*uint32(2) == uint32(0) { + return X__math_divzerof(tls, uint32(1)) + } + if ix == uint32(0x7f800000) { /* log2(inf) == inf. */ + return x1 + } + if ix&uint32(0x80000000) != 0 || ix*uint32(2) >= uint32(0xff000000) { + return X__math_invalidf(tls, x1) + } + /* x is subnormal, normalize it. */ + v1 = float32(x1 * Float32FromFloat32(8.388608e+06)) + ix = *(*Tuint32_t)(unsafe.Pointer(&v1)) + ix = ix - Uint32FromInt32(Int32FromInt32(23)<> (Int32FromInt32(23) - Int32FromInt32(LOG2F_TABLE_BITS)) % Uint32FromInt32(Int32FromInt32(1)<> int32(23) /* arithmetic shift */ + invc = (**(**struct { + Finvc float64 + Flogc float64 + })(__ccgo_up(uintptr(unsafe.Pointer(&X__log2f_data)) + uintptr(i)*16))).Finvc + logc = (**(**struct { + Finvc float64 + Flogc float64 + })(__ccgo_up(uintptr(unsafe.Pointer(&X__log2f_data)) + uintptr(i)*16))).Flogc + z = float64(*(*float32)(unsafe.Pointer(&iz))) + /* log2(x) = log1p(z/c-1)/ln2 + log2(c) + k */ + r = Tdouble_t(z*invc) - Float64FromInt32(1) + y0 = logc + float64(k) + /* Pipelined polynomial evaluation to approximate log1p(r)/ln2. */ + r2 = Tdouble_t(r * r) + y1 = Tdouble_t(float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2f_data)) + 256 + 1*8)))*r) + float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2f_data)) + 256 + 2*8))) + y1 = Tdouble_t(float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2f_data)) + 256)))*r2) + y1 + p = Tdouble_t(float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2f_data)) + 256 + 3*8)))*r) + y0 + y1 = Tdouble_t(y1*r2) + p + y = float32(y1) + v1 = y + goto _3 +_3: + return v1 +} + +type Tlog2f_data = struct { + Ftab [16]struct { + Finvc float64 + Flogc float64 + } + Fpoly [4]float64 +} + +func Xlog2l(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xlog2(tls, x) +} + +const N7 = 128 + +type Tlog_data = struct { + Fln2hi float64 + Fln2lo float64 + Fpoly [5]float64 + Fpoly1 [11]float64 + Ftab [128]struct { + Finvc float64 + Flogc float64 + } + Ftab2 [128]struct { + Fchi float64 + Fclo float64 + } +} + +/* +special cases: + logb(+-0) = -inf, and raise divbyzero + logb(+-inf) = +inf + logb(nan) = nan +*/ + +func Xlogb(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uint64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _ = v1 + *(*float64)(unsafe.Pointer(bp)) = x + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + if !(BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) < Uint64FromUint64(0x7ff)< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uint32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _ = v1 + *(*float32)(unsafe.Pointer(bp)) = x + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + if !(BoolInt32(v1&Uint32FromInt32(0x7fffffff) < Uint32FromInt32(0x7f800000)) != 0) { + return float32(x * x) + } + if x == Float32FromInt32(0) { + return float32(-Int32FromInt32(1)) / float32(x*x) + } + return float32(Xilogbf(tls, x)) +} + +func Xlogbl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uint64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _ = v1 + *(*float64)(unsafe.Pointer(bp)) = x + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + if !(BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) < Uint64FromUint64(0x7ff)< %v", r1) }() + } + var i, k int32 + var invc, logc, r, r2, y0, y1, z Tdouble_t + var ix, iz, tmp Tuint32_t + var y, v1 float32 + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = i, invc, ix, iz, k, logc, r, r2, tmp, y, y0, y1, z, v1 + ix = *(*Tuint32_t)(unsafe.Pointer(&x1)) + /* Fix sign of zero with downward rounding when x==1. */ + if Bool(int32(WANT_ROUNDING) != 0) && ix == uint32(0x3f800000) { + return Float32FromInt32(0) + } + if ix-uint32(0x00800000) >= Uint32FromInt32(Int32FromInt32(0x7f800000)-Int32FromInt32(0x00800000)) { + /* x < 0x1p-126 or inf or nan. */ + if ix*uint32(2) == uint32(0) { + return X__math_divzerof(tls, uint32(1)) + } + if ix == uint32(0x7f800000) { /* log(inf) == inf. */ + return x1 + } + if ix&uint32(0x80000000) != 0 || ix*uint32(2) >= uint32(0xff000000) { + return X__math_invalidf(tls, x1) + } + /* x is subnormal, normalize it. */ + v1 = float32(x1 * Float32FromFloat32(8.388608e+06)) + ix = *(*Tuint32_t)(unsafe.Pointer(&v1)) + ix = ix - Uint32FromInt32(Int32FromInt32(23)<> (Int32FromInt32(23) - Int32FromInt32(LOGF_TABLE_BITS)) % Uint32FromInt32(Int32FromInt32(1)<> int32(23) /* arithmetic shift */ + iz = ix - tmp&uint32(0xff800000) + invc = (**(**struct { + Finvc float64 + Flogc float64 + })(__ccgo_up(uintptr(unsafe.Pointer(&X__logf_data)) + uintptr(i)*16))).Finvc + logc = (**(**struct { + Finvc float64 + Flogc float64 + })(__ccgo_up(uintptr(unsafe.Pointer(&X__logf_data)) + uintptr(i)*16))).Flogc + z = float64(*(*float32)(unsafe.Pointer(&iz))) + /* log(x) = log1p(z/c-1) + log(c) + k*Ln2 */ + r = Tdouble_t(z*invc) - Float64FromInt32(1) + y0 = logc + Tdouble_t(float64(k)*X__logf_data.Fln2) + /* Pipelined polynomial evaluation to approximate log1p(r). */ + r2 = Tdouble_t(r * r) + y1 = Tdouble_t(float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__logf_data)) + 264 + 1*8)))*r) + float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__logf_data)) + 264 + 2*8))) + y1 = Tdouble_t(float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__logf_data)) + 264)))*r2) + y1 + y1 = Tdouble_t(y1*r2) + (y0 + r) + y = float32(y1) + v1 = y + goto _3 +_3: + return v1 +} + +type Tlogf_data = struct { + Ftab [16]struct { + Finvc float64 + Flogc float64 + } + Fln2 float64 + Fpoly [3]float64 +} + +func Xlogl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xlog(tls, x) +} + +const DBL_EPSILON9 = 2.220446049250313e-16 + +/* +If the result cannot be represented (overflow, nan), then +lrint raises the invalid exception. + +Otherwise if the input was not an integer then the inexact +exception is raised. + +C99 is a bit vague about whether inexact exception is +allowed to be raised when invalid is raised. +(F.9 explicitly allows spurious inexact exceptions, F.9.6.5 +does not make it clear if that rule applies to lrint, but +IEEE 754r 7.8 seems to forbid spurious inexact exception in +the ineger conversion functions) + +So we try to make sure that no spurious inexact exception is +raised in case of an overflow. + +If the bit size of long > precision of double, then there +cannot be inexact rounding in case the result overflows, +otherwise LONG_MAX and LONG_MIN can be represented exactly +as a double. +*/ + +// C documentation +// +// /* avoid stack frame in lrint */ +func _lrint_slow(tls *TLS, x float64) (r int32) { + var e int32 + _ = e + e = Xfetestexcept(tls, int32(FE_INEXACT)) + x = Xrint(tls, x) + if !(e != 0) && (x > Float64FromInt32(0x7fffffff) || x < float64(-Int32FromInt32(0x7fffffff)-Int32FromInt32(1))) { + Xfeclearexcept(tls, int32(FE_INEXACT)) + } + /* conversion */ + return int32(x) +} + +func Xlrint(tls *TLS, x float64) (r int32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + var abstop Tuint32_t + var sign, v1 Tuint64_t + var toint, y Tdouble_t + var v2 float64 + _, _, _, _, _, _ = abstop, sign, toint, y, v1, v2 + abstop = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32) & uint64(0x7fffffff)) + sign = *(*Tuint64_t)(unsafe.Pointer(&x)) & (Uint64FromUint64(1) << Int32FromInt32(63)) + if abstop < uint32(0x41dfffff) { + v2 = Float64FromInt32(1) / Float64FromFloat64(2.220446049250313e-16) + v1 = *(*Tuint64_t)(unsafe.Pointer(&v2)) | sign + /* |x| < 0x7ffffc00, no overflow */ + toint = *(*float64)(unsafe.Pointer(&v1)) + y = x + toint - toint + return int32(y) + } + return _lrint_slow(tls, x) +} + +/* uses LONG_MAX > 2^24, see comments in lrint.c */ + +func Xlrintf(tls *TLS, x float32) (r int32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(Xrintf(tls, x)) +} + +const DBL_EPSILON10 = 0 + +func Xlrintl(tls *TLS, x float64) (r int32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xlrint(tls, x) +} + +func Xlround(tls *TLS, x float64) (r int32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(Xround(tls, x)) +} + +func Xlroundf(tls *TLS, x float32) (r int32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(Xroundf(tls, x)) +} + +func Xlroundl(tls *TLS, x float64) (r int32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(Xroundl(tls, x)) +} + +func Xmodf(tls *TLS, x float64, iptr uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v iptr=%v, (%v:)", tls, x, iptr, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e int32 + var mask Tuint64_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _ = e, mask + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + e = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp))>>Int32FromInt32(52)&Uint64FromInt32(0x7ff)) - int32(0x3ff) + /* no fractional part */ + if e >= int32(52) { + **(**float64)(__ccgo_up(iptr)) = x + if e == int32(0x400) && *(*Tuint64_t)(unsafe.Pointer(bp))<> Int32FromInt32(12) >> e + if *(*Tuint64_t)(unsafe.Pointer(bp))&mask == uint64(0) { + **(**float64)(__ccgo_up(iptr)) = x + *(*Tuint64_t)(unsafe.Pointer(bp)) &= Uint64FromUint64(1) << Int32FromInt32(63) + return *(*float64)(unsafe.Pointer(bp)) + } + *(*Tuint64_t)(unsafe.Pointer(bp)) &= ^mask + **(**float64)(__ccgo_up(iptr)) = *(*float64)(unsafe.Pointer(bp)) + return x - *(*float64)(unsafe.Pointer(bp)) +} + +func Xmodff(tls *TLS, x float32, iptr uintptr) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v iptr=%v, (%v:)", tls, x, iptr, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e int32 + var mask Tuint32_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _ = e, mask + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + e = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp))>>Int32FromInt32(23)&Uint32FromInt32(0xff)) - int32(0x7f) + /* no fractional part */ + if e >= int32(23) { + **(**float32)(__ccgo_up(iptr)) = x + if e == int32(0x80) && *(*Tuint32_t)(unsafe.Pointer(bp))<> e) + if *(*Tuint32_t)(unsafe.Pointer(bp))&mask == uint32(0) { + **(**float32)(__ccgo_up(iptr)) = x + *(*Tuint32_t)(unsafe.Pointer(bp)) &= uint32(0x80000000) + return *(*float32)(unsafe.Pointer(bp)) + } + *(*Tuint32_t)(unsafe.Pointer(bp)) &= ^mask + **(**float32)(__ccgo_up(iptr)) = *(*float32)(unsafe.Pointer(bp)) + return x - *(*float32)(unsafe.Pointer(bp)) +} + +func Xmodfl(tls *TLS, x float64, iptr uintptr) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x=%v iptr=%v, (%v:)", tls, x, iptr, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var r float64 + var _ /* d at bp+0 */ float64 + _ = r + r = Xmodf(tls, x, bp) + **(**float64)(__ccgo_up(iptr)) = float64(**(**float64)(__ccgo_up(bp))) + return r +} + +func Xnan(tls *TLS, s uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + return float64(X__builtin_nanf(tls, __ccgo_ts)) +} + +func Xnanf(tls *TLS, s uintptr) (r float32) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__builtin_nanf(tls, __ccgo_ts) +} + +func Xnanl(tls *TLS, s uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + return float64(X__builtin_nanf(tls, __ccgo_ts)) +} + +func Xnextafter(tls *TLS, x3 float64, y3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v y3=%v, (%v:)", tls, x3, y3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var ax, ay Tuint64_t + var e int32 + var y float32 + var y1, y2 float64 + var v1, v3 uint64 + var v5 bool + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + var _ /* ux at bp+8 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + var _ /* uy at bp+16 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _, _, _ = ax, ay, e, y, y1, y2, v1, v3, v5 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp + 8)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp + 8)) = x3 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp + 16)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp + 16)) = y3 + *(*float64)(unsafe.Pointer(bp)) = x3 + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + ; + if v5 = BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)< ay || (*(*Tuint64_t)(unsafe.Pointer(bp + 8))^*(*Tuint64_t)(unsafe.Pointer(bp + 16)))&(Uint64FromUint64(1)<> int32(52) & uint64(0x7ff)) + /* raise overflow if ux.f is infinite and x is finite */ + if e == int32(0x7ff) { + if uint32(8) == uint32(4) { + y = float32(x3 + x3) + } else { + if uint32(8) == uint32(8) { + y1 = x3 + x3 + } else { + y2 = x3 + x3 + } + } + } + /* raise underflow if ux.f is subnormal or zero */ + if e == 0 { + if uint32(8) == uint32(4) { + y = float32(float64(x3*x3) + float64(*(*float64)(unsafe.Pointer(bp + 8))**(*float64)(unsafe.Pointer(bp + 8)))) + } else { + if uint32(8) == uint32(8) { + y1 = float64(x3*x3) + float64(*(*float64)(unsafe.Pointer(bp + 8))**(*float64)(unsafe.Pointer(bp + 8))) + } else { + y2 = float64(x3*x3) + float64(*(*float64)(unsafe.Pointer(bp + 8))**(*float64)(unsafe.Pointer(bp + 8))) + } + } + } + return *(*float64)(unsafe.Pointer(bp + 8)) +} + +func Xnextafterf(tls *TLS, x3 float32, y3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v y3=%v, (%v:)", tls, x3, y3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ax, ay, e Tuint32_t + var y float32 + var y1, y2 float64 + var v1, v3 uint32 + var v5 bool + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + var _ /* ux at bp+4 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + var _ /* uy at bp+8 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _, _, _, _ = ax, ay, e, y, y1, y2, v1, v3, v5 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp + 4)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp + 4)) = x3 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp + 8)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp + 8)) = y3 + *(*float32)(unsafe.Pointer(bp)) = x3 + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + ; + if v5 = BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0; !v5 { + *(*float32)(unsafe.Pointer(bp)) = y3 + v3 = *(*uint32)(unsafe.Pointer(bp)) + goto _4 + _4: + } + if v5 || BoolInt32(v3&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return x3 + y3 + } + if *(*Tuint32_t)(unsafe.Pointer(bp + 4)) == *(*Tuint32_t)(unsafe.Pointer(bp + 8)) { + return y3 + } + ax = *(*Tuint32_t)(unsafe.Pointer(bp + 4)) & uint32(0x7fffffff) + ay = *(*Tuint32_t)(unsafe.Pointer(bp + 8)) & uint32(0x7fffffff) + if ax == uint32(0) { + if ay == uint32(0) { + return y3 + } + *(*Tuint32_t)(unsafe.Pointer(bp + 4)) = *(*Tuint32_t)(unsafe.Pointer(bp + 8))&uint32(0x80000000) | uint32(1) + } else { + if ax > ay || (*(*Tuint32_t)(unsafe.Pointer(bp + 4))^*(*Tuint32_t)(unsafe.Pointer(bp + 8)))&uint32(0x80000000) != 0 { + *(*Tuint32_t)(unsafe.Pointer(bp + 4)) = *(*Tuint32_t)(unsafe.Pointer(bp + 4)) - 1 + } else { + *(*Tuint32_t)(unsafe.Pointer(bp + 4)) = *(*Tuint32_t)(unsafe.Pointer(bp + 4)) + 1 + } + } + e = *(*Tuint32_t)(unsafe.Pointer(bp + 4)) & uint32(0x7f800000) + /* raise overflow if ux.f is infinite and x is finite */ + if e == uint32(0x7f800000) { + if uint32(4) == uint32(4) { + y = x3 + x3 + } else { + if uint32(4) == uint32(8) { + y1 = float64(x3 + x3) + } else { + y2 = float64(x3 + x3) + } + } + } + /* raise underflow if ux.f is subnormal or zero */ + if e == uint32(0) { + if uint32(4) == uint32(4) { + y = float32(x3*x3) + float32(*(*float32)(unsafe.Pointer(bp + 4))**(*float32)(unsafe.Pointer(bp + 4))) + } else { + if uint32(4) == uint32(8) { + y1 = float64(float32(x3*x3) + float32(*(*float32)(unsafe.Pointer(bp + 4))**(*float32)(unsafe.Pointer(bp + 4)))) + } else { + y2 = float64(float32(x3*x3) + float32(*(*float32)(unsafe.Pointer(bp + 4))**(*float32)(unsafe.Pointer(bp + 4)))) + } + } + } + return *(*float32)(unsafe.Pointer(bp + 4)) +} + +func Xnextafterl(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xnextafter(tls, x, y) +} + +func Xnexttoward(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xnextafter(tls, x, y) +} + +func Xnexttowardf(tls *TLS, x3 float32, y3 float64) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v y3=%v, (%v:)", tls, x3, y3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var e Tuint32_t + var y float32 + var y1, y2 float64 + var v1 uint32 + var v3 uint64 + var v5 bool + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + var _ /* __u at bp+8 */ struct { + F__i [0]uint64 + F__f float64 + } + var _ /* ux at bp+16 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _, _ = e, y, y1, y2, v1, v3, v5 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp + 16)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp + 16)) = x3 + *(*float32)(unsafe.Pointer(bp)) = x3 + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + ; + if v5 = BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0; !v5 { + *(*float64)(unsafe.Pointer(bp + 8)) = y3 + v3 = *(*uint64)(unsafe.Pointer(bp + 8)) + goto _4 + _4: + } + if v5 || BoolInt32(v3&(-Uint64FromUint64(1)>>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(63)) != 0 { + *(*Tuint32_t)(unsafe.Pointer(bp + 16)) |= uint32(0x80000000) + } + } else { + if float64(x3) < y3 { + *(*float32)(unsafe.Pointer(bp)) = x3 + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _9 + _9: + if Int32FromUint32(v1>>Int32FromInt32(31)) != 0 { + *(*Tuint32_t)(unsafe.Pointer(bp + 16)) = *(*Tuint32_t)(unsafe.Pointer(bp + 16)) - 1 + } else { + *(*Tuint32_t)(unsafe.Pointer(bp + 16)) = *(*Tuint32_t)(unsafe.Pointer(bp + 16)) + 1 + } + } else { + *(*float32)(unsafe.Pointer(bp)) = x3 + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _11 + _11: + if Int32FromUint32(v1>>Int32FromInt32(31)) != 0 { + *(*Tuint32_t)(unsafe.Pointer(bp + 16)) = *(*Tuint32_t)(unsafe.Pointer(bp + 16)) + 1 + } else { + *(*Tuint32_t)(unsafe.Pointer(bp + 16)) = *(*Tuint32_t)(unsafe.Pointer(bp + 16)) - 1 + } + } + } + e = *(*Tuint32_t)(unsafe.Pointer(bp + 16)) & uint32(0x7f800000) + /* raise overflow if ux.f is infinite and x is finite */ + if e == uint32(0x7f800000) { + if uint32(4) == uint32(4) { + y = x3 + x3 + } else { + if uint32(4) == uint32(8) { + y1 = float64(x3 + x3) + } else { + y2 = float64(x3 + x3) + } + } + } + /* raise underflow if ux.f is subnormal or zero */ + if e == uint32(0) { + if uint32(4) == uint32(4) { + y = float32(x3*x3) + float32(*(*float32)(unsafe.Pointer(bp + 16))**(*float32)(unsafe.Pointer(bp + 16))) + } else { + if uint32(4) == uint32(8) { + y1 = float64(float32(x3*x3) + float32(*(*float32)(unsafe.Pointer(bp + 16))**(*float32)(unsafe.Pointer(bp + 16)))) + } else { + y2 = float64(float32(x3*x3) + float32(*(*float32)(unsafe.Pointer(bp + 16))**(*float32)(unsafe.Pointer(bp + 16)))) + } + } + } + return *(*float32)(unsafe.Pointer(bp + 16)) +} + +func Xnexttowardl(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xnextafterl(tls, x, y) +} + +const OFF2 = 4604531861337669632 +const POW_LOG_POLY_ORDER = 8 +const POW_LOG_TABLE_BITS = 7 +const SIGN_BIAS = 262144 + +/* +Worst-case error: 0.54 ULP (~= ulperr_exp + 1024*Ln2*relerr_log*2^53) +relerr_log: 1.3 * 2^-68 (Relative error of log, 1.5 * 2^-68 without fma) +ulperr_exp: 0.509 ULP (ULP error of exp, 0.511 ULP without fma) +*/ + +// C documentation +// +// /* Top 12 bits of a double (sign and exponent bits). */ +func _top124(tls *TLS, x float64) (r Tuint32_t) { + return uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(52)) +} + +// C documentation +// +// /* Compute y+TAIL = log(x) where the rounded result is y and TAIL has about +// additional 15 bits precision. IX is the bit representation of x, but +// normalized in the subnormal range using the sign bit for the exponent. */ +func _log_inline(tls *TLS, ix Tuint64_t, tail uintptr) (r1 Tdouble_t) { + var ar, ar2, ar3, arhi, arhi2, hi, invc, kd, lo, lo1, lo2, lo3, lo4, logc, logctail, p, r, rhi, rlo, t1, t2, y, z, zhi, zlo Tdouble_t + var i, k int32 + var iz, tmp, v1 Tuint64_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = ar, ar2, ar3, arhi, arhi2, hi, i, invc, iz, k, kd, lo, lo1, lo2, lo3, lo4, logc, logctail, p, r, rhi, rlo, t1, t2, tmp, y, z, zhi, zlo, v1 + /* x = 2^k z; where z is in range [OFF,2*OFF) and exact. + The range is split into N subintervals. + The ith subinterval contains z and c is near its center. */ + tmp = ix - uint64(OFF2) + i = Int32FromUint64(tmp >> (Int32FromInt32(52) - Int32FromInt32(POW_LOG_TABLE_BITS)) % Uint64FromInt32(Int32FromInt32(1)<> int32(52)) /* arithmetic shift */ + iz = ix - tmp&(Uint64FromUint64(0xfff)< 0, the exponent of scale might have overflowed by <= 460. */ + sbits = sbits - Uint64FromUint64(1009)<= _top124(tls, float64(512))-_top124(tls, float64(5.551115123125783e-17)) { + if abstop-_top124(tls, float64(5.551115123125783e-17)) >= uint32(0x80000000) { + /* Avoid spurious underflow for tiny x. */ + /* Note: 0 is common input. */ + one = Float64FromFloat64(1) + x1 + if sign_bias != 0 { + v1 = -one + } else { + v1 = one + } + return v1 + } + if abstop >= _top124(tls, float64(1024)) { + /* Note: inf and nan are already handled. */ + v2 = x1 + if *(*Tuint64_t)(unsafe.Pointer(&v2))>>int32(63) != 0 { + return X__math_uflow(tls, sign_bias) + } else { + return X__math_oflow(tls, sign_bias) + } + } + /* Large x is special cased below. */ + abstop = uint32(0) + } + /* exp(x) = 2^(k/N) * exp(r), with exp(r) in [2^(-1/2N),2^(1/2N)]. */ + /* x = ln2/N*k + r, with int k and r in [-ln2/2N, ln2/2N]. */ + z = Tdouble_t(X__exp_data.Finvln2N * x1) + /* z - kd is in [-1, 1] in non-nearest rounding modes. */ + y = z + X__exp_data.Fshift + v2 = y + goto _4 +_4: + kd = v2 + v2 = kd + ki = *(*Tuint64_t)(unsafe.Pointer(&v2)) + kd = kd - X__exp_data.Fshift + r = x1 + Tdouble_t(kd*X__exp_data.Fnegln2hiN) + Tdouble_t(kd*X__exp_data.Fnegln2loN) + /* The code assumes 2^-200 < |xtail| < 2^-8/N. */ + r = r + xtail + /* 2^(k/N) ~= scale * (1 + tail). */ + idx = uint64(2) * (ki % Uint64FromInt32(Int32FromInt32(1)< 2^-200 and scale > 2^-739, so there + is no spurious underflow here even without fma. */ + y = scale + Tdouble_t(scale*tmp) + v2 = y + goto _8 +_8: + return v2 +} + +// C documentation +// +// /* Returns 0 if not int, 1 if odd int, 2 if even int. The argument is +// the bit representation of a non-zero finite floating-point value. */ +func _checkint(tls *TLS, iy Tuint64_t) (r int32) { + var e int32 + _ = e + e = Int32FromUint64(iy >> int32(52) & uint64(0x7ff)) + if e < int32(0x3ff) { + return 0 + } + if e > Int32FromInt32(0x3ff)+Int32FromInt32(52) { + return int32(2) + } + if iy&(uint64(1)<<(Int32FromInt32(0x3ff)+Int32FromInt32(52)-e)-uint64(1)) != 0 { + return 0 + } + if iy&(uint64(1)<<(Int32FromInt32(0x3ff)+Int32FromInt32(52)-e)) != 0 { + return int32(1) + } + return int32(2) +} + +// C documentation +// +// /* Returns 1 if input is the bit representation of 0, infinity or nan. */ +func _zeroinfnan(tls *TLS, i Tuint64_t) (r int32) { + var v1 float64 + _ = v1 + v1 = float64(X__builtin_inff(tls)) + return BoolInt32(uint64(2)*i-uint64(1) >= uint64(2)**(*Tuint64_t)(unsafe.Pointer(&v1))-uint64(1)) +} + +func Xpow(tls *TLS, x1 float64, y1 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x1=%v y1=%v, (%v:)", tls, x1, y1, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ehi, elo, hi, lhi, llo, x2, yhi, ylo, v7 Tdouble_t + var ix, iy, v16, v17 Tuint64_t + var sign_bias, topx, topy Tuint32_t + var y, v1, v2 float64 + var yint int32 + var v4 bool + var _ /* lo at bp+0 */ Tdouble_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = ehi, elo, hi, ix, iy, lhi, llo, sign_bias, topx, topy, x2, y, yhi, yint, ylo, v1, v16, v17, v2, v4, v7 + sign_bias = uint32(0) + ix = *(*Tuint64_t)(unsafe.Pointer(&x1)) + iy = *(*Tuint64_t)(unsafe.Pointer(&y1)) + topx = _top124(tls, x1) + topy = _top124(tls, y1) + if topx-uint32(0x001) >= Uint32FromInt32(Int32FromInt32(0x7ff)-Int32FromInt32(0x001)) || topy&uint32(0x7ff)-uint32(0x3be) >= Uint32FromInt32(Int32FromInt32(0x43e)-Int32FromInt32(0x3be)) { + /* Note: if |y| > 1075 * ln2 * 2^53 ~= 0x1.749p62 then pow(x,y) = inf/0 + and if |y| < 2^-54 / 1075 ~= 0x1.e7b6p-65 then pow(x,y) = +-1. */ + /* Special cases: (x < 0x1p-126 or inf or nan) or + (|y| < 0x1p-65 or |y| >= 0x1p63 or nan). */ + if _zeroinfnan(tls, iy) != 0 { + if uint64(2)*iy == uint64(0) { + return float64(1) + } + v1 = float64(1) + if ix == *(*Tuint64_t)(unsafe.Pointer(&v1)) { + return float64(1) + } + v1 = float64(X__builtin_inff(tls)) + if v4 = uint64(2)*ix > uint64(2)**(*Tuint64_t)(unsafe.Pointer(&v1)); !v4 { + v2 = float64(X__builtin_inff(tls)) + } + if v4 || uint64(2)*iy > uint64(2)**(*Tuint64_t)(unsafe.Pointer(&v2)) { + return x1 + y1 + } + v1 = float64(1) + if uint64(2)*ix == uint64(2)**(*Tuint64_t)(unsafe.Pointer(&v1)) { + return float64(1) + } + v1 = float64(1) + if BoolInt32(uint64(2)*ix < uint64(2)**(*Tuint64_t)(unsafe.Pointer(&v1))) == BoolInt32(!(iy>>Int32FromInt32(63) != 0)) { + return float64(0) + } /* |x|<1 && y==inf or |x|>1 && y==-inf. */ + return float64(y1 * y1) + } + if _zeroinfnan(tls, ix) != 0 { + x2 = Tdouble_t(x1 * x1) + if ix>>int32(63) != 0 && _checkint(tls, iy) == int32(1) { + x2 = -x2 + } + /* Without the barrier some versions of clang hoist the 1/x2 and + thus division by zero exception can be signaled spuriously. */ + if iy>>int32(63) != 0 { + y = float64(Float64FromInt32(1) / x2) + v1 = y + goto _9 + _9: + v7 = v1 + } else { + v7 = x2 + } + return v7 + } + /* Here x and y are non-zero finite. */ + if ix>>int32(63) != 0 { + /* Finite x < 0. */ + yint = _checkint(tls, iy) + if yint == 0 { + return X__math_invalid(tls, x1) + } + if yint == int32(1) { + sign_bias = Uint32FromInt32(Int32FromInt32(0x800) << Int32FromInt32(EXP_TABLE_BITS)) + } + ix = ix & uint64(0x7fffffffffffffff) + topx = topx & uint32(0x7ff) + } + if topy&uint32(0x7ff)-uint32(0x3be) >= Uint32FromInt32(Int32FromInt32(0x43e)-Int32FromInt32(0x3be)) { + /* Note: sign_bias == 0 here because y is not odd. */ + v1 = float64(1) + if ix == *(*Tuint64_t)(unsafe.Pointer(&v1)) { + return float64(1) + } + if topy&uint32(0x7ff) < uint32(0x3be) { + /* |y| < 2^-65, x^y ~= 1 + y*log(x). */ + if int32(WANT_ROUNDING) != 0 { + v2 = float64(1) + if ix > *(*Tuint64_t)(unsafe.Pointer(&v2)) { + v1 = float64(1) + y1 + } else { + v1 = float64(1) - y1 + } + return v1 + } else { + return float64(1) + } + } + v2 = float64(1) + if BoolInt32(ix > *(*Tuint64_t)(unsafe.Pointer(&v2))) == BoolInt32(topy < uint32(0x800)) { + v1 = X__math_oflow(tls, uint32(0)) + } else { + v1 = X__math_uflow(tls, uint32(0)) + } + return v1 + } + if topx == uint32(0) { + /* Normalize subnormal x so exponent becomes negative. */ + v1 = float64(x1 * float64(4.503599627370496e+15)) + ix = *(*Tuint64_t)(unsafe.Pointer(&v1)) + ix = ix & uint64(0x7fffffffffffffff) + ix = ix - Uint64FromUint64(52)<> (Int32FromInt32(23) - Int32FromInt32(POWF_LOG2_TABLE_BITS)) % Uint32FromInt32(Int32FromInt32(1)<> (Int32FromInt32(23) - Int32FromInt32(POWF_SCALE_BITS)) /* arithmetic shift */ + invc = (**(**struct { + Finvc float64 + Flogc float64 + })(__ccgo_up(uintptr(unsafe.Pointer(&X__powf_log2_data)) + uintptr(i)*16))).Finvc + logc = (**(**struct { + Finvc float64 + Flogc float64 + })(__ccgo_up(uintptr(unsafe.Pointer(&X__powf_log2_data)) + uintptr(i)*16))).Flogc + z = float64(*(*float32)(unsafe.Pointer(&iz))) + /* log2(x) = log1p(z/c-1)/ln2 + log2(c) + k */ + r = Tdouble_t(z*invc) - Float64FromInt32(1) + y0 = logc + float64(k) + /* Pipelined polynomial evaluation to approximate log1p(r)/ln2. */ + r2 = Tdouble_t(r * r) + y = Tdouble_t(float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__powf_log2_data)) + 256)))*r) + float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__powf_log2_data)) + 256 + 1*8))) + p = Tdouble_t(float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__powf_log2_data)) + 256 + 2*8)))*r) + float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__powf_log2_data)) + 256 + 3*8))) + r4 = Tdouble_t(r2 * r2) + q = Tdouble_t(float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__powf_log2_data)) + 256 + 4*8)))*r) + y0 + q = Tdouble_t(p*r2) + q + y = Tdouble_t(y*r4) + q + return y +} + +// C documentation +// +// /* The output of log2 and thus the input of exp2 is either scaled by N +// (in case of fast toint intrinsics) or not. The unscaled xd must be +// in [-1021,1023], sign_bias sets the sign of the result. */ +func _exp2_inline(tls *TLS, xd Tdouble_t, sign_bias Tuint32_t) (r1 float32) { + var kd, r, r2, s, y2, z Tdouble_t + var ki, ski, t Tuint64_t + var y, v4 float32 + var y1, v1 float64 + _, _, _, _, _, _, _, _, _, _, _, _, _ = kd, ki, r, r2, s, ski, t, y, y1, y2, z, v1, v4 + /* x = k/N + r with r in [-1/(2N), 1/(2N)] */ + y1 = xd + X__exp2f_data.Fshift_scaled + v1 = y1 + goto _2 +_2: + kd = v1 + v1 = kd + ki = *(*Tuint64_t)(unsafe.Pointer(&v1)) + kd = kd - X__exp2f_data.Fshift_scaled /* k/N */ + r = xd - kd + /* exp2(x) = 2^(k/N) * 2^r ~= s * (C0*r^3 + C1*r^2 + C2*r + 1) */ + t = **(**Tuint64_t)(__ccgo_up(uintptr(unsafe.Pointer(&X__exp2f_data)) + uintptr(ki%Uint64FromInt32(Int32FromInt32(1)<> int32(23) & uint32(0xff)) + if e < int32(0x7f) { + return 0 + } + if e > Int32FromInt32(0x7f)+Int32FromInt32(23) { + return int32(2) + } + if iy&Uint32FromInt32(Int32FromInt32(1)<<(Int32FromInt32(0x7f)+Int32FromInt32(23)-e)-Int32FromInt32(1)) != 0 { + return 0 + } + if iy&Uint32FromInt32(Int32FromInt32(1)<<(Int32FromInt32(0x7f)+Int32FromInt32(23)-e)) != 0 { + return int32(1) + } + return int32(2) +} + +func _zeroinfnan1(tls *TLS, ix Tuint32_t) (r int32) { + return BoolInt32(uint32(2)*ix-uint32(1) >= Uint32FromUint32(2)*Uint32FromInt32(0x7f800000)-Uint32FromInt32(1)) +} + +func Xpowf(tls *TLS, x1 float32, y1 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x1=%v y1=%v, (%v:)", tls, x1, y1, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ix, iy, sign_bias Tuint32_t + var logx, ylogx Tdouble_t + var x2, v1 Tfloat_t + var y, v2 float32 + var yint int32 + var v5, v6 float64 + _, _, _, _, _, _, _, _, _, _, _, _ = ix, iy, logx, sign_bias, x2, y, yint, ylogx, v1, v2, v5, v6 + sign_bias = uint32(0) + ix = *(*Tuint32_t)(unsafe.Pointer(&x1)) + iy = *(*Tuint32_t)(unsafe.Pointer(&y1)) + if ix-uint32(0x00800000) >= Uint32FromInt32(Int32FromInt32(0x7f800000)-Int32FromInt32(0x00800000)) || _zeroinfnan1(tls, iy) != 0 { + /* Either (x < 0x1p-126 or inf or nan) or (y is 0 or inf or nan). */ + if _zeroinfnan1(tls, iy) != 0 { + if uint32(2)*iy == uint32(0) { + return Float32FromFloat32(1) + } + if ix == uint32(0x3f800000) { + return Float32FromFloat32(1) + } + if uint32(2)*ix > Uint32FromUint32(2)*Uint32FromInt32(0x7f800000) || uint32(2)*iy > Uint32FromUint32(2)*Uint32FromInt32(0x7f800000) { + return x1 + y1 + } + if uint32(2)*ix == Uint32FromInt32(Int32FromInt32(2)*Int32FromInt32(0x3f800000)) { + return Float32FromFloat32(1) + } + if BoolInt32(uint32(2)*ix < Uint32FromInt32(Int32FromInt32(2)*Int32FromInt32(0x3f800000))) == BoolInt32(!(iy&Uint32FromUint32(0x80000000) != 0)) { + return Float32FromFloat32(0) + } /* |x|<1 && y==inf or |x|>1 && y==-inf. */ + return float32(y1 * y1) + } + if _zeroinfnan1(tls, ix) != 0 { + x2 = Tfloat_t(x1 * x1) + if ix&uint32(0x80000000) != 0 && _checkint1(tls, iy) == int32(1) { + x2 = -x2 + } + /* Without the barrier some versions of clang hoist the 1/x2 and + thus division by zero exception can be signaled spuriously. */ + if iy&uint32(0x80000000) != 0 { + y = float32(Float64FromInt32(1) / x2) + v2 = y + goto _3 + _3: + v1 = float64(v2) + } else { + v1 = x2 + } + return float32(v1) + } + /* x and y are non-zero finite. */ + if ix&uint32(0x80000000) != 0 { + /* Finite x < 0. */ + yint = _checkint1(tls, iy) + if yint == 0 { + return X__math_invalidf(tls, x1) + } + if yint == int32(1) { + sign_bias = Uint32FromInt32(Int32FromInt32(1) << (Int32FromInt32(EXP2F_TABLE_BITS) + Int32FromInt32(11))) + } + ix = ix & uint32(0x7fffffff) + } + if ix < uint32(0x00800000) { + /* Normalize subnormal x so exponent becomes negative. */ + v2 = float32(x1 * Float32FromFloat32(8.388608e+06)) + ix = *(*Tuint32_t)(unsafe.Pointer(&v2)) + ix = ix & uint32(0x7fffffff) + ix = ix - Uint32FromInt32(Int32FromInt32(23)<>int32(47)&uint64(0xffff) >= *(*Tuint64_t)(unsafe.Pointer(&v6))>>int32(47) { + /* |y*log(x)| >= 126. */ + if ylogx > Tdouble_t(float64(127.99999995700433)*float64(Int32FromInt32(1)< %v", r) }() + } + return Xpow(tls, x, y) +} + +func Xremainder(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* q at bp+0 */ int32 + return Xremquo(tls, x, y, bp) +} + +func Xdrem(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xremainder(tls, x, y) +} + +func Xremainderf(tls *TLS, x float32, y float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* q at bp+0 */ int32 + return Xremquof(tls, x, y, bp) +} + +func Xdremf(tls *TLS, x float32, y float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xremainderf(tls, x, y) +} + +func Xremainderl(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xremainder(tls, x, y) +} + +func Xremquo(tls *TLS, x float64, y float64, quo uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v quo=%v, (%v:)", tls, x, y, quo, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var ex, ey, sx, sy, v8 int32 + var i, uxi Tuint64_t + var q Tuint32_t + var v1 uint64 + var v3 bool + var v9 float64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + var _ /* ux at bp+8 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + var _ /* uy at bp+16 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _, _, _, _, _ = ex, ey, i, q, sx, sy, uxi, v1, v3, v8, v9 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp + 8)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp + 8)) = x + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp + 16)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp + 16)) = y + ex = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp + 8)) >> int32(52) & uint64(0x7ff)) + ey = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp + 16)) >> int32(52) & uint64(0x7ff)) + sx = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp + 8)) >> int32(63)) + sy = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp + 16)) >> int32(63)) + uxi = *(*Tuint64_t)(unsafe.Pointer(bp + 8)) + **(**int32)(__ccgo_up(quo)) = 0 + if v3 = *(*Tuint64_t)(unsafe.Pointer(bp + 16))<>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>int32(63) == uint64(0)) { + break + } + goto _4 + _4: + ; + ex = ex - 1 + i = i << uint64(1) + } + uxi = uxi << Uint64FromInt32(-ex+int32(1)) + } else { + uxi = uxi & (-Uint64FromUint64(1) >> Int32FromInt32(12)) + uxi = uxi | Uint64FromUint64(1)<>int32(63) == uint64(0)) { + break + } + goto _5 + _5: + ; + ey = ey - 1 + i = i << uint64(1) + } + *(*Tuint64_t)(unsafe.Pointer(bp + 16)) <<= Uint64FromInt32(-ey + int32(1)) + } else { + *(*Tuint64_t)(unsafe.Pointer(bp + 16)) &= -Uint64FromUint64(1) >> Int32FromInt32(12) + *(*Tuint64_t)(unsafe.Pointer(bp + 16)) |= Uint64FromUint64(1) << Int32FromInt32(52) + } + q = uint32(0) + if ex < ey { + if ex+int32(1) == ey { + goto end + } + return x + } + /* x mod y */ + for { + if !(ex > ey) { + break + } + i = uxi - *(*Tuint64_t)(unsafe.Pointer(bp + 16)) + if i>>int32(63) == uint64(0) { + uxi = i + q = q + 1 + } + uxi = uxi << uint64(1) + q = q << uint32(1) + goto _6 + _6: + ; + ex = ex - 1 + } + i = uxi - *(*Tuint64_t)(unsafe.Pointer(bp + 16)) + if i>>int32(63) == uint64(0) { + uxi = i + q = q + 1 + } + if uxi == uint64(0) { + ex = -int32(60) + } else { + for { + if !(uxi>>int32(52) == uint64(0)) { + break + } + goto _7 + _7: + ; + uxi = uxi << uint64(1) + ex = ex - 1 + } + } + goto end +end: + ; + /* scale result and decide between |x| and |x|-|y| */ + if ex > 0 { + uxi = uxi - Uint64FromUint64(1)<> Uint64FromInt32(-ex+int32(1)) + } + *(*Tuint64_t)(unsafe.Pointer(bp + 8)) = uxi + x = *(*float64)(unsafe.Pointer(bp + 8)) + if sy != 0 { + y = -y + } + if ex == ey || ex+int32(1) == ey && (float64(Float64FromInt32(2)*x) > y || float64(Float64FromInt32(2)*x) == y && q%uint32(2) != 0) { + x = x - y + q = q + 1 + } + q = q & uint32(0x7fffffff) + if sx^sy != 0 { + v8 = -Int32FromUint32(q) + } else { + v8 = Int32FromUint32(q) + } + **(**int32)(__ccgo_up(quo)) = v8 + if sx != 0 { + v9 = -x + } else { + v9 = x + } + return v9 +} + +func Xremquof(tls *TLS, x float32, y float32, quo uintptr) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v quo=%v, (%v:)", tls, x, y, quo, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ex, ey, sx, sy, v8 int32 + var i, q, uxi Tuint32_t + var v1 uint32 + var v3 bool + var v9 float32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + var _ /* ux at bp+4 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + var _ /* uy at bp+8 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _, _, _, _, _, _ = ex, ey, i, q, sx, sy, uxi, v1, v3, v8, v9 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp + 4)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp + 4)) = x + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp + 8)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp + 8)) = y + ex = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp + 4)) >> int32(23) & uint32(0xff)) + ey = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp + 8)) >> int32(23) & uint32(0xff)) + sx = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp + 4)) >> int32(31)) + sy = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp + 8)) >> int32(31)) + uxi = *(*Tuint32_t)(unsafe.Pointer(bp + 4)) + **(**int32)(__ccgo_up(quo)) = 0 + if v3 = *(*Tuint32_t)(unsafe.Pointer(bp + 8))< uint32(0x7f800000)) != 0 || ex == int32(0xff) { + return float32(x*y) / float32(x*y) + } + if *(*Tuint32_t)(unsafe.Pointer(bp + 4))<>int32(31) == uint32(0)) { + break + } + goto _4 + _4: + ; + ex = ex - 1 + i = i << uint32(1) + } + uxi = uxi << Uint32FromInt32(-ex+int32(1)) + } else { + uxi = uxi & (-Uint32FromUint32(1) >> Int32FromInt32(9)) + uxi = uxi | Uint32FromUint32(1)<>int32(31) == uint32(0)) { + break + } + goto _5 + _5: + ; + ey = ey - 1 + i = i << uint32(1) + } + *(*Tuint32_t)(unsafe.Pointer(bp + 8)) <<= Uint32FromInt32(-ey + int32(1)) + } else { + *(*Tuint32_t)(unsafe.Pointer(bp + 8)) &= -Uint32FromUint32(1) >> Int32FromInt32(9) + *(*Tuint32_t)(unsafe.Pointer(bp + 8)) |= Uint32FromUint32(1) << Int32FromInt32(23) + } + q = uint32(0) + if ex < ey { + if ex+int32(1) == ey { + goto end + } + return x + } + /* x mod y */ + for { + if !(ex > ey) { + break + } + i = uxi - *(*Tuint32_t)(unsafe.Pointer(bp + 8)) + if i>>int32(31) == uint32(0) { + uxi = i + q = q + 1 + } + uxi = uxi << uint32(1) + q = q << uint32(1) + goto _6 + _6: + ; + ex = ex - 1 + } + i = uxi - *(*Tuint32_t)(unsafe.Pointer(bp + 8)) + if i>>int32(31) == uint32(0) { + uxi = i + q = q + 1 + } + if uxi == uint32(0) { + ex = -int32(30) + } else { + for { + if !(uxi>>int32(23) == uint32(0)) { + break + } + goto _7 + _7: + ; + uxi = uxi << uint32(1) + ex = ex - 1 + } + } + goto end +end: + ; + /* scale result and decide between |x| and |x|-|y| */ + if ex > 0 { + uxi = uxi - Uint32FromUint32(1)<> Uint32FromInt32(-ex+int32(1)) + } + *(*Tuint32_t)(unsafe.Pointer(bp + 4)) = uxi + x = *(*float32)(unsafe.Pointer(bp + 4)) + if sy != 0 { + y = -y + } + if ex == ey || ex+int32(1) == ey && (float32(Float32FromInt32(2)*x) > y || float32(Float32FromInt32(2)*x) == y && q%uint32(2) != 0) { + x = x - y + q = q + 1 + } + q = q & uint32(0x7fffffff) + if sx^sy != 0 { + v8 = -Int32FromUint32(q) + } else { + v8 = Int32FromUint32(q) + } + **(**int32)(__ccgo_up(quo)) = v8 + if sx != 0 { + v9 = -x + } else { + v9 = x + } + return v9 +} + +func Xremquol(tls *TLS, x float64, y float64, quo uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v quo=%v, (%v:)", tls, x, y, quo, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xremquo(tls, x, y, quo) +} + +const DBL_EPSILON11 = 2.220446049250313e-16 + +var _toint4 = float64(Float64FromInt32(1) / Float64FromFloat64(2.220446049250313e-16)) + +func Xrint(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e, s int32 + var y Tdouble_t + var v1 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _ = e, s, y, v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + e = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + s = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(63)) + if e >= Int32FromInt32(0x3ff)+Int32FromInt32(52) { + return x + } + if s != 0 { + y = x - _toint4 + _toint4 + } else { + y = x + _toint4 - _toint4 + } + if y == Float64FromInt32(0) { + if s != 0 { + v1 = -Float64FromFloat64(0) + } else { + v1 = Float64FromInt32(0) + } + return v1 + } + return y +} + +const DBL_EPSILON12 = 0 +const FLT_EPSILON1 = 1.1920928955078125e-07 + +var _toint5 = float64(Float32FromInt32(1) / Float32FromFloat32(1.1920928955078125e-07)) + +func Xrintf(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e, s int32 + var y Tfloat_t + var v1 float32 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _ = e, s, y, v1 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + e = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(23) & uint32(0xff)) + s = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(31)) + if e >= Int32FromInt32(0x7f)+Int32FromInt32(23) { + return x + } + if s != 0 { + y = float64(x) - _toint5 + _toint5 + } else { + y = float64(x) + _toint5 - _toint5 + } + if y == Float64FromInt32(0) { + if s != 0 { + v1 = -Float32FromFloat32(0) + } else { + v1 = Float32FromFloat32(0) + } + return v1 + } + return float32(y) +} + +const FLT_EPSILON2 = 0 + +func Xrintl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xrint(tls, x) +} + +const DBL_EPSILON13 = 2.220446049250313e-16 + +var _toint6 = float64(Float64FromInt32(1) / Float64FromFloat64(2.220446049250313e-16)) + +func Xround(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e int32 + var y float32 + var y1, y2 float64 + var y3 Tdouble_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _ = e, y, y1, y2, y3 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + e = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + if e >= Int32FromInt32(0x3ff)+Int32FromInt32(52) { + return x3 + } + if *(*Tuint64_t)(unsafe.Pointer(bp))>>int32(63) != 0 { + x3 = -x3 + } + if e < Int32FromInt32(0x3ff)-Int32FromInt32(1) { + /* raise inexact if x!=0 */ + if uint32(8) == uint32(4) { + y = float32(x3 + _toint6) + } else { + if uint32(8) == uint32(8) { + y1 = x3 + _toint6 + } else { + y2 = x3 + _toint6 + } + } + return float64(Float64FromInt32(0) * *(*float64)(unsafe.Pointer(bp))) + } + y3 = x3 + _toint6 - _toint6 - x3 + if y3 > Float64FromFloat64(0.5) { + y3 = y3 + x3 - Float64FromInt32(1) + } else { + if y3 <= float64(-Float64FromFloat64(0.5)) { + y3 = y3 + x3 + Float64FromInt32(1) + } else { + y3 = y3 + x3 + } + } + if *(*Tuint64_t)(unsafe.Pointer(bp))>>int32(63) != 0 { + y3 = -y3 + } + return y3 +} + +const DBL_EPSILON14 = 0 +const FLT_EPSILON3 = 1.1920928955078125e-07 + +var _toint7 = float64(Float32FromInt32(1) / Float32FromFloat32(1.1920928955078125e-07)) + +func Xroundf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e int32 + var y float32 + var y1, y2 float64 + var y3 Tfloat_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _ = e, y, y1, y2, y3 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + e = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(23) & uint32(0xff)) + if e >= Int32FromInt32(0x7f)+Int32FromInt32(23) { + return x3 + } + if *(*Tuint32_t)(unsafe.Pointer(bp))>>int32(31) != 0 { + x3 = -x3 + } + if e < Int32FromInt32(0x7f)-Int32FromInt32(1) { + if uint32(8) == uint32(4) { + y = float32(float64(x3) + _toint7) + } else { + if uint32(8) == uint32(8) { + y1 = float64(x3) + _toint7 + } else { + y2 = float64(x3) + _toint7 + } + } + return float32(Float32FromInt32(0) * *(*float32)(unsafe.Pointer(bp))) + } + y3 = float64(x3) + _toint7 - _toint7 - float64(x3) + if y3 > Float64FromFloat32(0.5) { + y3 = y3 + float64(x3) - Float64FromInt32(1) + } else { + if y3 <= float64(-Float32FromFloat32(0.5)) { + y3 = y3 + float64(x3) + Float64FromInt32(1) + } else { + y3 = y3 + float64(x3) + } + } + if *(*Tuint32_t)(unsafe.Pointer(bp))>>int32(31) != 0 { + y3 = -y3 + } + return float32(y3) +} + +const FLT_EPSILON4 = 0 + +func Xroundl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xround(tls, x) +} + +func Xscalb(tls *TLS, x float64, fn float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v fn=%v, (%v:)", tls, x, fn, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1, v3 uint64 + var v5 bool + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _, _, _ = v1, v3, v5 + *(*float64)(unsafe.Pointer(bp)) = x + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + ; + if v5 = BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) < Uint64FromUint64(0x7ff)< float64(0) { + return float64(x * fn) + } else { + return x / -fn + } + } + if Xrint(tls, fn) != fn { + return (fn - fn) / (fn - fn) + } + if fn > float64(65000) { + return Xscalbn(tls, x, int32(65000)) + } + if -fn > float64(65000) { + return Xscalbn(tls, x, -int32(65000)) + } + return Xscalbn(tls, x, int32(fn)) +} + +func Xscalbf(tls *TLS, x float32, fn float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v fn=%v, (%v:)", tls, x, fn, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1, v3 uint32 + var v5 bool + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _, _, _ = v1, v3, v5 + *(*float32)(unsafe.Pointer(bp)) = x + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + ; + if v5 = BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0; !v5 { + *(*float32)(unsafe.Pointer(bp)) = fn + v3 = *(*uint32)(unsafe.Pointer(bp)) + goto _4 + _4: + } + if v5 || BoolInt32(v3&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return float32(x * fn) + } + *(*float32)(unsafe.Pointer(bp)) = fn + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _7 +_7: + if !(BoolInt32(v1&Uint32FromInt32(0x7fffffff) < Uint32FromInt32(0x7f800000)) != 0) { + if fn > Float32FromFloat32(0) { + return float32(x * fn) + } else { + return x / -fn + } + } + if Xrintf(tls, fn) != fn { + return (fn - fn) / (fn - fn) + } + if fn > Float32FromFloat32(65000) { + return Xscalbnf(tls, x, int32(65000)) + } + if -fn > Float32FromFloat32(65000) { + return Xscalbnf(tls, x, -int32(65000)) + } + return Xscalbnf(tls, x, int32(fn)) +} + +func Xscalbln(tls *TLS, x float64, n int32) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + if n > int32(INT_MAX) { + n = int32(INT_MAX) + } else { + if n < int32(-Int32FromInt32(1)-Int32FromInt32(0x7fffffff)) { + n = int32(-Int32FromInt32(1) - Int32FromInt32(0x7fffffff)) + } + } + return Xscalbn(tls, x, n) +} + +func Xscalblnf(tls *TLS, x float32, n int32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + if n > int32(INT_MAX) { + n = int32(INT_MAX) + } else { + if n < int32(-Int32FromInt32(1)-Int32FromInt32(0x7fffffff)) { + n = int32(-Int32FromInt32(1) - Int32FromInt32(0x7fffffff)) + } + } + return Xscalbnf(tls, x, n) +} + +func Xscalblnl(tls *TLS, x float64, n int32) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xscalbln(tls, x, n) +} + +func Xscalbn(tls *TLS, x float64, n int32) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var y Tdouble_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _ = y + y = x + if n > int32(1023) { + y = y * Float64FromFloat64(8.98846567431158e+307) + n = n - int32(1023) + if n > int32(1023) { + y = y * Float64FromFloat64(8.98846567431158e+307) + n = n - int32(1023) + if n > int32(1023) { + n = int32(1023) + } + } + } else { + if n < -int32(1022) { + /* make sure final n < -53 to avoid double + rounding in the subnormal range */ + y = y * Tdouble_t(Float64FromFloat64(2.2250738585072014e-308)*Float64FromFloat64(9.007199254740992e+15)) + n = n + (Int32FromInt32(1022) - Int32FromInt32(53)) + if n < -int32(1022) { + y = y * Tdouble_t(Float64FromFloat64(2.2250738585072014e-308)*Float64FromFloat64(9.007199254740992e+15)) + n = n + (Int32FromInt32(1022) - Int32FromInt32(53)) + if n < -int32(1022) { + n = -int32(1022) + } + } + } + } + *(*Tuint64_t)(unsafe.Pointer(bp)) = Uint64FromInt32(Int32FromInt32(0x3ff)+n) << int32(52) + x = float64(y * *(*float64)(unsafe.Pointer(bp))) + return x +} + +func Xscalbnf(tls *TLS, x float32, n int32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var y Tfloat_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _ = y + y = float64(x) + if n > int32(127) { + y = y * Float64FromFloat32(1.7014118346046923e+38) + n = n - int32(127) + if n > int32(127) { + y = y * Float64FromFloat32(1.7014118346046923e+38) + n = n - int32(127) + if n > int32(127) { + n = int32(127) + } + } + } else { + if n < -int32(126) { + y = y * Tfloat_t(Float32FromFloat32(1.1754943508222875e-38)*Float32FromFloat32(1.6777216e+07)) + n = n + (Int32FromInt32(126) - Int32FromInt32(24)) + if n < -int32(126) { + y = y * Tfloat_t(Float32FromFloat32(1.1754943508222875e-38)*Float32FromFloat32(1.6777216e+07)) + n = n + (Int32FromInt32(126) - Int32FromInt32(24)) + if n < -int32(126) { + n = -int32(126) + } + } + } + } + *(*Tuint32_t)(unsafe.Pointer(bp)) = Uint32FromInt32(Int32FromInt32(0x7f)+n) << int32(23) + x = float32(y * float64(*(*float32)(unsafe.Pointer(bp)))) + return x +} + +func Xscalbnl(tls *TLS, x float64, n int32) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xscalbn(tls, x, n) +} + +func Xsignificand(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xscalbn(tls, x, -Xilogb(tls, x)) +} + +func Xsignificandf(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xscalbnf(tls, x, -Xilogbf(tls, x)) +} + +func Xsin(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ix Tuint32_t + var n uint32 + var y float32 + var y1, y2, v1 float64 + var _ /* y at bp+0 */ [2]float64 + _, _, _, _, _, _ = ix, n, y, y1, y2, v1 + /* High word of x. */ + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x3)) >> int32(32)) + ix = ix & uint32(0x7fffffff) + /* |x| ~< pi/4 */ + if ix <= uint32(0x3fe921fb) { + if ix < uint32(0x3e500000) { /* |x| < 2**-26 */ + /* raise inexact if x != 0 and underflow if subnormal*/ + if uint32(8) == uint32(4) { + if ix < uint32(0x00100000) { + v1 = x3 / Float64FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } + y = float32(v1) + } else { + if uint32(8) == uint32(8) { + if ix < uint32(0x00100000) { + v1 = x3 / Float64FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } + y1 = v1 + } else { + if ix < uint32(0x00100000) { + v1 = x3 / Float64FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } + y2 = v1 + } + } + return x3 + } + return X__sin(tls, x3, float64(0), 0) + } + /* sin(Inf or NaN) is NaN */ + if ix >= uint32(0x7ff00000) { + return x3 - x3 + } + /* argument reduction needed */ + n = Uint32FromInt32(X__rem_pio2(tls, x3, bp)) + switch n & Uint32FromInt32(3) { + case uint32(0): + return X__sin(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)], int32(1)) + case uint32(1): + return X__cos(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)]) + case uint32(2): + return -X__sin(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)], int32(1)) + default: + return -X__cos(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)]) + } + return r +} + +func Xsincos(tls *TLS, x3 float64, sin uintptr, cos uintptr) { + if __ccgo_strace { + trc("tls=%v x3=%v sin=%v cos=%v, (%v:)", tls, x3, sin, cos, origin(2)) + } + bp := tls.Alloc(16) + defer tls.Free(16) + var c, s, y1, y2, v1 float64 + var ix Tuint32_t + var n uint32 + var y float32 + var _ /* y at bp+0 */ [2]float64 + _, _, _, _, _, _, _, _ = c, ix, n, s, y, y1, y2, v1 + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x3)) >> int32(32)) + ix = ix & uint32(0x7fffffff) + /* |x| ~< pi/4 */ + if ix <= uint32(0x3fe921fb) { + /* if |x| < 2**-27 * sqrt(2) */ + if ix < uint32(0x3e46a09e) { + /* raise inexact if x!=0 and underflow if subnormal */ + if uint32(8) == uint32(4) { + if ix < uint32(0x00100000) { + v1 = x3 / Float64FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } + y = float32(v1) + } else { + if uint32(8) == uint32(8) { + if ix < uint32(0x00100000) { + v1 = x3 / Float64FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } + y1 = v1 + } else { + if ix < uint32(0x00100000) { + v1 = x3 / Float64FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } + y2 = v1 + } + } + **(**float64)(__ccgo_up(sin)) = x3 + **(**float64)(__ccgo_up(cos)) = float64(1) + return + } + **(**float64)(__ccgo_up(sin)) = X__sin(tls, x3, float64(0), 0) + **(**float64)(__ccgo_up(cos)) = X__cos(tls, x3, float64(0)) + return + } + /* sincos(Inf or NaN) is NaN */ + if ix >= uint32(0x7ff00000) { + v1 = x3 - x3 + **(**float64)(__ccgo_up(cos)) = v1 + **(**float64)(__ccgo_up(sin)) = v1 + return + } + /* argument reduction needed */ + n = Uint32FromInt32(X__rem_pio2(tls, x3, bp)) + s = X__sin(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)], int32(1)) + c = X__cos(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)]) + switch n & Uint32FromInt32(3) { + case uint32(0): + **(**float64)(__ccgo_up(sin)) = s + **(**float64)(__ccgo_up(cos)) = c + case uint32(1): + **(**float64)(__ccgo_up(sin)) = c + **(**float64)(__ccgo_up(cos)) = -s + case uint32(2): + **(**float64)(__ccgo_up(sin)) = -s + **(**float64)(__ccgo_up(cos)) = -c + case uint32(3): + fallthrough + default: + **(**float64)(__ccgo_up(sin)) = -c + **(**float64)(__ccgo_up(cos)) = s + break + } +} + +const M_PI_25 = 1.5707963267948966 + +// C documentation +// +// /* Small multiples of pi/2 rounded to double precision. */ + +var _s1pio2 = float64(Float64FromInt32(1) * Float64FromFloat64(1.5707963267948966)) /* 0x3FF921FB, 0x54442D18 */ +var _s2pio2 = float64(Float64FromInt32(2) * Float64FromFloat64(1.5707963267948966)) /* 0x400921FB, 0x54442D18 */ +var _s3pio2 = float64(Float64FromInt32(3) * Float64FromFloat64(1.5707963267948966)) /* 0x4012D97C, 0x7F3321D2 */ +var _s4pio2 = float64(Float64FromInt32(4) * Float64FromFloat64(1.5707963267948966)) /* 0x401921FB, 0x54442D18 */ + +func Xsincosf(tls *TLS, x3 float32, sin uintptr, cos uintptr) { + if __ccgo_strace { + trc("tls=%v x3=%v sin=%v cos=%v, (%v:)", tls, x3, sin, cos, origin(2)) + } + bp := tls.Alloc(16) + defer tls.Free(16) + var c, s Tfloat_t + var ix Tuint32_t + var n, sign uint32 + var y, v1 float32 + var y1, y2, v4 float64 + var _ /* y at bp+0 */ float64 + _, _, _, _, _, _, _, _, _, _ = c, ix, n, s, sign, y, y1, y2, v1, v4 + ix = *(*Tuint32_t)(unsafe.Pointer(&x3)) + sign = ix >> int32(31) + ix = ix & uint32(0x7fffffff) + /* |x| ~<= pi/4 */ + if ix <= uint32(0x3f490fda) { + /* |x| < 2**-12 */ + if ix < uint32(0x39800000) { + /* raise inexact if x!=0 and underflow if subnormal */ + if uint32(4) == uint32(4) { + if ix < uint32(0x00100000) { + v1 = x3 / Float32FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float32FromFloat32(1.329227995784916e+36) + } + y = v1 + } else { + if uint32(4) == uint32(8) { + if ix < uint32(0x00100000) { + v1 = x3 / Float32FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float32FromFloat32(1.329227995784916e+36) + } + y1 = float64(v1) + } else { + if ix < uint32(0x00100000) { + v1 = x3 / Float32FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float32FromFloat32(1.329227995784916e+36) + } + y2 = float64(v1) + } + } + **(**float32)(__ccgo_up(sin)) = x3 + **(**float32)(__ccgo_up(cos)) = Float32FromFloat32(1) + return + } + **(**float32)(__ccgo_up(sin)) = X__sindf(tls, float64(x3)) + **(**float32)(__ccgo_up(cos)) = X__cosdf(tls, float64(x3)) + return + } + /* |x| ~<= 5*pi/4 */ + if ix <= uint32(0x407b53d1) { + if ix <= uint32(0x4016cbe3) { /* |x| ~<= 3pi/4 */ + if sign != 0 { + **(**float32)(__ccgo_up(sin)) = -X__cosdf(tls, float64(x3)+_s1pio2) + **(**float32)(__ccgo_up(cos)) = X__sindf(tls, float64(x3)+_s1pio2) + } else { + **(**float32)(__ccgo_up(sin)) = X__cosdf(tls, _s1pio2-float64(x3)) + **(**float32)(__ccgo_up(cos)) = X__sindf(tls, _s1pio2-float64(x3)) + } + return + } + /* -sin(x+c) is not correct if x+c could be 0: -0 vs +0 */ + if sign != 0 { + v4 = float64(x3) + _s2pio2 + } else { + v4 = float64(x3) - _s2pio2 + } + **(**float32)(__ccgo_up(sin)) = -X__sindf(tls, v4) + if sign != 0 { + v4 = float64(x3) + _s2pio2 + } else { + v4 = float64(x3) - _s2pio2 + } + **(**float32)(__ccgo_up(cos)) = -X__cosdf(tls, v4) + return + } + /* |x| ~<= 9*pi/4 */ + if ix <= uint32(0x40e231d5) { + if ix <= uint32(0x40afeddf) { /* |x| ~<= 7*pi/4 */ + if sign != 0 { + **(**float32)(__ccgo_up(sin)) = X__cosdf(tls, float64(x3)+_s3pio2) + **(**float32)(__ccgo_up(cos)) = -X__sindf(tls, float64(x3)+_s3pio2) + } else { + **(**float32)(__ccgo_up(sin)) = -X__cosdf(tls, float64(x3)-_s3pio2) + **(**float32)(__ccgo_up(cos)) = X__sindf(tls, float64(x3)-_s3pio2) + } + return + } + if sign != 0 { + v4 = float64(x3) + _s4pio2 + } else { + v4 = float64(x3) - _s4pio2 + } + **(**float32)(__ccgo_up(sin)) = X__sindf(tls, v4) + if sign != 0 { + v4 = float64(x3) + _s4pio2 + } else { + v4 = float64(x3) - _s4pio2 + } + **(**float32)(__ccgo_up(cos)) = X__cosdf(tls, v4) + return + } + /* sin(Inf or NaN) is NaN */ + if ix >= uint32(0x7f800000) { + v1 = x3 - x3 + **(**float32)(__ccgo_up(cos)) = v1 + **(**float32)(__ccgo_up(sin)) = v1 + return + } + /* general argument reduction needed */ + n = Uint32FromInt32(X__rem_pio2f(tls, x3, bp)) + s = float64(X__sindf(tls, **(**float64)(__ccgo_up(bp)))) + c = float64(X__cosdf(tls, **(**float64)(__ccgo_up(bp)))) + switch n & Uint32FromInt32(3) { + case uint32(0): + **(**float32)(__ccgo_up(sin)) = float32(s) + **(**float32)(__ccgo_up(cos)) = float32(c) + case uint32(1): + **(**float32)(__ccgo_up(sin)) = float32(c) + **(**float32)(__ccgo_up(cos)) = float32(-s) + case uint32(2): + **(**float32)(__ccgo_up(sin)) = float32(-s) + **(**float32)(__ccgo_up(cos)) = float32(-c) + case uint32(3): + fallthrough + default: + **(**float32)(__ccgo_up(sin)) = float32(-c) + **(**float32)(__ccgo_up(cos)) = float32(s) + break + } +} + +const M_PI_26 = 0 + +func Xsincosl(tls *TLS, x float64, sin uintptr, cos uintptr) { + if __ccgo_strace { + trc("tls=%v x=%v sin=%v cos=%v, (%v:)", tls, x, sin, cos, origin(2)) + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* cosd at bp+8 */ float64 + var _ /* sind at bp+0 */ float64 + Xsincos(tls, x, bp, bp+8) + **(**float64)(__ccgo_up(sin)) = float64(**(**float64)(__ccgo_up(bp))) + **(**float64)(__ccgo_up(cos)) = float64(**(**float64)(__ccgo_up(bp + 8))) +} + +const M_PI_27 = 1.5707963267948966 + +// C documentation +// +// /* Small multiples of pi/2 rounded to double precision. */ + +var _s1pio21 = float64(Float64FromInt32(1) * Float64FromFloat64(1.5707963267948966)) /* 0x3FF921FB, 0x54442D18 */ +var _s2pio21 = float64(Float64FromInt32(2) * Float64FromFloat64(1.5707963267948966)) /* 0x400921FB, 0x54442D18 */ +var _s3pio21 = float64(Float64FromInt32(3) * Float64FromFloat64(1.5707963267948966)) /* 0x4012D97C, 0x7F3321D2 */ +var _s4pio21 = float64(Float64FromInt32(4) * Float64FromFloat64(1.5707963267948966)) /* 0x401921FB, 0x54442D18 */ + +func Xsinf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ix Tuint32_t + var n, sign int32 + var y, v1 float32 + var y1, y2, v4 float64 + var _ /* y at bp+0 */ float64 + _, _, _, _, _, _, _, _ = ix, n, sign, y, y1, y2, v1, v4 + ix = *(*Tuint32_t)(unsafe.Pointer(&x3)) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix <= uint32(0x3f490fda) { /* |x| ~<= pi/4 */ + if ix < uint32(0x39800000) { /* |x| < 2**-12 */ + /* raise inexact if x!=0 and underflow if subnormal */ + if uint32(4) == uint32(4) { + if ix < uint32(0x00800000) { + v1 = x3 / Float32FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float32FromFloat32(1.329227995784916e+36) + } + y = v1 + } else { + if uint32(4) == uint32(8) { + if ix < uint32(0x00800000) { + v1 = x3 / Float32FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float32FromFloat32(1.329227995784916e+36) + } + y1 = float64(v1) + } else { + if ix < uint32(0x00800000) { + v1 = x3 / Float32FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float32FromFloat32(1.329227995784916e+36) + } + y2 = float64(v1) + } + } + return x3 + } + return X__sindf(tls, float64(x3)) + } + if ix <= uint32(0x407b53d1) { /* |x| ~<= 5*pi/4 */ + if ix <= uint32(0x4016cbe3) { /* |x| ~<= 3pi/4 */ + if sign != 0 { + return -X__cosdf(tls, float64(x3)+_s1pio21) + } else { + return X__cosdf(tls, float64(x3)-_s1pio21) + } + } + if sign != 0 { + v4 = -(float64(x3) + _s2pio21) + } else { + v4 = -(float64(x3) - _s2pio21) + } + return X__sindf(tls, v4) + } + if ix <= uint32(0x40e231d5) { /* |x| ~<= 9*pi/4 */ + if ix <= uint32(0x40afeddf) { /* |x| ~<= 7*pi/4 */ + if sign != 0 { + return X__cosdf(tls, float64(x3)+_s3pio21) + } else { + return -X__cosdf(tls, float64(x3)-_s3pio21) + } + } + if sign != 0 { + v4 = float64(x3) + _s4pio21 + } else { + v4 = float64(x3) - _s4pio21 + } + return X__sindf(tls, v4) + } + /* sin(Inf or NaN) is NaN */ + if ix >= uint32(0x7f800000) { + return x3 - x3 + } + /* general argument reduction needed */ + n = X__rem_pio2f(tls, x3, bp) + switch n & Int32FromInt32(3) { + case 0: + return X__sindf(tls, **(**float64)(__ccgo_up(bp))) + case int32(1): + return X__cosdf(tls, **(**float64)(__ccgo_up(bp))) + case int32(2): + return X__sindf(tls, -**(**float64)(__ccgo_up(bp))) + default: + return -X__cosdf(tls, **(**float64)(__ccgo_up(bp))) + } + return r +} + +const M_PI_28 = 0 + +// C documentation +// +// /* sinh(x) = (exp(x) - 1/exp(x))/2 +// * = (exp(x)-1 + (exp(x)-1)/exp(x))/2 +// * = x + x^3/6 + o(x^5) +// */ +func Xsinh(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var absx, h, t float64 + var w Tuint32_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _ = absx, h, t, w + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + h = float64(0.5) + if *(*Tuint64_t)(unsafe.Pointer(bp))>>int32(63) != 0 { + h = -h + } + /* |x| */ + *(*Tuint64_t)(unsafe.Pointer(bp)) &= Uint64FromInt32(-Int32FromInt32(1)) / Uint64FromInt32(2) + absx = *(*float64)(unsafe.Pointer(bp)) + w = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32)) + /* |x| < log(DBL_MAX) */ + if w < uint32(0x40862e42) { + t = Xexpm1(tls, absx) + if w < uint32(0x3ff00000) { + if w < Uint32FromInt32(Int32FromInt32(0x3ff00000)-Int32FromInt32(26)<log(0x1p26)+eps could be just h*exp(x) */ + return float64(h * (t + t/(t+Float64FromInt32(1)))) + } + /* |x| > log(DBL_MAX) or nan */ + /* note: the result is stored to handle overflow */ + t = X__expo2(tls, absx, float64(Float64FromInt32(2)*h)) + return t +} + +func Xsinhf(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var absx, h, t float32 + var w Tuint32_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _ = absx, h, t, w + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + h = float32(0.5) + if *(*Tuint32_t)(unsafe.Pointer(bp))>>int32(31) != 0 { + h = -h + } + /* |x| */ + *(*Tuint32_t)(unsafe.Pointer(bp)) &= uint32(0x7fffffff) + absx = *(*float32)(unsafe.Pointer(bp)) + w = *(*Tuint32_t)(unsafe.Pointer(bp)) + /* |x| < log(FLT_MAX) */ + if w < uint32(0x42b17217) { + t = Xexpm1f(tls, absx) + if w < uint32(0x3f800000) { + if w < Uint32FromInt32(Int32FromInt32(0x3f800000)-Int32FromInt32(12)< logf(FLT_MAX) or nan */ + t = X__expo2f(tls, absx, float32(Float32FromInt32(2)*h)) + return t +} + +func Xsinhl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xsinh(tls, x) +} + +func Xsinl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xsin(tls, x) +} + +const FENV_SUPPORT = 1 + +// C documentation +// +// /* returns a*b*2^-32 - e, with error 0 <= e < 1. */ +func _mul32(tls *TLS, a Tuint32_t, b Tuint32_t) (r Tuint32_t) { + return uint32(uint64(a) * uint64(b) >> int32(32)) +} + +// C documentation +// +// /* returns a*b*2^-64 - e, with error 0 <= e < 3. */ +func _mul64(tls *TLS, a Tuint64_t, b Tuint64_t) (r Tuint64_t) { + var ahi, alo, bhi, blo Tuint64_t + _, _, _, _ = ahi, alo, bhi, blo + ahi = a >> int32(32) + alo = a & uint64(0xffffffff) + bhi = b >> int32(32) + blo = b & uint64(0xffffffff) + return ahi*bhi + ahi*blo>>int32(32) + alo*bhi>>int32(32) +} + +func Xsqrt(tls *TLS, x1 float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x1=%v, (%v:)", tls, x1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var d, d0, d1, d2, i, ix, m, r, s, tiny, top, u Tuint64_t + var even int32 + var t, y, y1, v1 float64 + var v2 int64 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = d, d0, d1, d2, even, i, ix, m, r, s, t, tiny, top, u, y, y1, v1, v2 + /* special case handling. */ + ix = *(*Tuint64_t)(unsafe.Pointer(&x1)) + top = ix >> int32(52) + if top-uint64(0x001) >= Uint64FromInt32(Int32FromInt32(0x7ff)-Int32FromInt32(0x001)) { + /* x < 0x1p-1022 or inf or nan. */ + if ix*uint64(2) == uint64(0) { + return x1 + } + if ix == uint64(0x7ff0000000000000) { + return x1 + } + if ix > uint64(0x7ff0000000000000) { + return X__math_invalid(tls, x1) + } + /* x is subnormal, normalize it. */ + v1 = float64(x1 * float64(4.503599627370496e+15)) + ix = *(*Tuint64_t)(unsafe.Pointer(&v1)) + top = ix >> int32(52) + top = top - uint64(52) + } + /* argument reduction: + x = 4^e m; with integer e, and m in [1, 4) + m: fixed point representation [2.62] + 2^e is the exponent part of the result. */ + even = Int32FromUint64(top & uint64(1)) + m = ix<> uint64(1) + } + top = (top + uint64(0x3ff)) >> int32(1) + i = ix >> Int32FromInt32(46) % uint64(128) + r = uint64(uint32(X__rsqrt_tab[i]) << int32(16)) + /* |r sqrt(m) - 1| < 0x1.fdp-9 */ + s = uint64(_mul32(tls, uint32(m>>int32(32)), uint32(r))) + /* |s/sqrt(m) - 1| < 0x1.fdp-9 */ + d = uint64(_mul32(tls, uint32(s), uint32(r))) + u = _three - d + r = uint64(_mul32(tls, uint32(r), uint32(u)) << int32(1)) + /* |r sqrt(m) - 1| < 0x1.7bp-16 */ + s = uint64(_mul32(tls, uint32(s), uint32(u)) << int32(1)) + /* |s/sqrt(m) - 1| < 0x1.7bp-16 */ + d = uint64(_mul32(tls, uint32(s), uint32(r))) + u = _three - d + r = uint64(_mul32(tls, uint32(r), uint32(u)) << int32(1)) + /* |r sqrt(m) - 1| < 0x1.3704p-29 (measured worst-case) */ + r = r << int32(32) + s = _mul64(tls, m, r) + d = _mul64(tls, s, r) + u = _three<> int32(9) + d0 = m<>int32(63) + s = s & uint64(0x000fffffffffffff) + s = s | top<=13bit table would be needed (16k). + + a newton-raphson iteration for r is + w = r*r + u = 3 - m*w + r = r*u/2 + can use a goldschmidt iteration for s at the end or + s = m*r + + first goldschmidt iteration is + s = m*r + u = 3 - s*r + r = r*u/2 + s = s*u/2 + next goldschmidt iteration is + u = 3 - s*r + r = r*u/2 + s = s*u/2 + and at the end r is not computed only s. + + they use the same amount of operations and converge at the + same quadratic rate, i.e. if + r1 sqrt(m) - 1 = e, then + r2 sqrt(m) - 1 = -3/2 e^2 - 1/2 e^3 + the advantage of goldschmidt is that the mul for s and r + are independent (computed in parallel), however it is not + "self synchronizing": it only uses the input m in the + first iteration so rounding errors accumulate. at the end + or when switching to larger precision arithmetics rounding + errors dominate so the first iteration should be used. + + the fixed point representations are + m: 2.30 r: 0.32, s: 2.30, d: 2.30, u: 2.30, three: 2.30 + and after switching to 64 bit + m: 2.62 r: 0.64, s: 2.62, d: 2.62, u: 2.62, three: 2.62 */ + +var _three = uint64(0xc0000000) + +func _mul321(tls *TLS, a Tuint32_t, b Tuint32_t) (r Tuint32_t) { + return uint32(uint64(a) * uint64(b) >> int32(32)) +} + +/* see sqrt.c for more detailed comments. */ + +func Xsqrtf(tls *TLS, x1 float32) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x1=%v, (%v:)", tls, x1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var d, d0, d1, d2, even, ey, i, ix, m, m0, m1, r, s, tiny, u Tuint32_t + var t, y, y1, v1 float32 + var v2 uint32 + var v3 int32 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = d, d0, d1, d2, even, ey, i, ix, m, m0, m1, r, s, t, tiny, u, y, y1, v1, v2, v3 + ix = *(*Tuint32_t)(unsafe.Pointer(&x1)) + if ix-uint32(0x00800000) >= Uint32FromInt32(Int32FromInt32(0x7f800000)-Int32FromInt32(0x00800000)) { + /* x < 0x1p-126 or inf or nan. */ + if ix*uint32(2) == uint32(0) { + return x1 + } + if ix == uint32(0x7f800000) { + return x1 + } + if ix > uint32(0x7f800000) { + return X__math_invalidf(tls, x1) + } + /* x is subnormal, normalize it. */ + v1 = float32(x1 * Float32FromFloat32(8.388608e+06)) + ix = *(*Tuint32_t)(unsafe.Pointer(&v1)) + ix = ix - Uint32FromInt32(Int32FromInt32(23)<> int32(1) + ey = ey + Uint32FromInt32(Int32FromInt32(0x3f800000)>>Int32FromInt32(1)) + ey = ey & uint32(0x7f800000) + i = ix >> Int32FromInt32(17) % uint32(128) + r = uint32(X__rsqrt_tab[i]) << int32(16) + /* |r*sqrt(m) - 1| < 0x1p-8 */ + s = _mul321(tls, m, r) + /* |s/sqrt(m) - 1| < 0x1p-8 */ + d = _mul321(tls, s, r) + u = _three1 - d + r = _mul321(tls, r, u) << int32(1) + /* |r*sqrt(m) - 1| < 0x1.7bp-16 */ + s = _mul321(tls, s, u) << int32(1) + /* |s/sqrt(m) - 1| < 0x1.7bp-16 */ + d = _mul321(tls, s, r) + u = _three1 - d + s = _mul321(tls, s, u) + /* -0x1.03p-28 < s/sqrt(m) - 1 < 0x1.fp-31 */ + s = (s - uint32(1)) >> int32(6) + d0 = m<>int32(31) + s = s & uint32(0x007fffff) + s = s | ey + y1 = *(*float32)(unsafe.Pointer(&s)) + if int32(FENV_SUPPORT) != 0 { + if d2 == uint32(0) { + v3 = 0 + } else { + v3 = int32(0x01000000) + } + /* handle rounding and inexact exception. */ + tiny = Uint32FromInt32(v3) + tiny = tiny | (d1^d2)&uint32(0x80000000) + t = *(*float32)(unsafe.Pointer(&tiny)) + y = y1 + t + v1 = y + goto _5 + _5: + y1 = v1 + } + return y1 +} + +/* compute r ~ 1/sqrt(m), s ~ sqrt(m) with 2 goldschmidt iterations. */ +var _three1 = uint32(0xc0000000) + +func Xsqrtl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xsqrt(tls, x) +} + +func Xtan(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ix Tuint32_t + var n uint32 + var y float32 + var y1, y2, v1 float64 + var _ /* y at bp+0 */ [2]float64 + _, _, _, _, _, _ = ix, n, y, y1, y2, v1 + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x3)) >> int32(32)) + ix = ix & uint32(0x7fffffff) + /* |x| ~< pi/4 */ + if ix <= uint32(0x3fe921fb) { + if ix < uint32(0x3e400000) { /* |x| < 2**-27 */ + /* raise inexact if x!=0 and underflow if subnormal */ + if uint32(8) == uint32(4) { + if ix < uint32(0x00100000) { + v1 = x3 / Float64FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } + y = float32(v1) + } else { + if uint32(8) == uint32(8) { + if ix < uint32(0x00100000) { + v1 = x3 / Float64FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } + y1 = v1 + } else { + if ix < uint32(0x00100000) { + v1 = x3 / Float64FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } + y2 = v1 + } + } + return x3 + } + return X__tan(tls, x3, float64(0), 0) + } + /* tan(Inf or NaN) is NaN */ + if ix >= uint32(0x7ff00000) { + return x3 - x3 + } + /* argument reduction */ + n = Uint32FromInt32(X__rem_pio2(tls, x3, bp)) + return X__tan(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)], Int32FromUint32(n&uint32(1))) +} + +const M_PI_29 = 1.5707963267948966 + +// C documentation +// +// /* Small multiples of pi/2 rounded to double precision. */ + +var _t1pio2 = float64(Float64FromInt32(1) * Float64FromFloat64(1.5707963267948966)) /* 0x3FF921FB, 0x54442D18 */ +var _t2pio2 = float64(Float64FromInt32(2) * Float64FromFloat64(1.5707963267948966)) /* 0x400921FB, 0x54442D18 */ +var _t3pio2 = float64(Float64FromInt32(3) * Float64FromFloat64(1.5707963267948966)) /* 0x4012D97C, 0x7F3321D2 */ +var _t4pio2 = float64(Float64FromInt32(4) * Float64FromFloat64(1.5707963267948966)) /* 0x401921FB, 0x54442D18 */ + +func Xtanf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ix Tuint32_t + var n, sign uint32 + var y, v1 float32 + var y1, y2, v4 float64 + var _ /* y at bp+0 */ float64 + _, _, _, _, _, _, _, _ = ix, n, sign, y, y1, y2, v1, v4 + ix = *(*Tuint32_t)(unsafe.Pointer(&x3)) + sign = ix >> int32(31) + ix = ix & uint32(0x7fffffff) + if ix <= uint32(0x3f490fda) { /* |x| ~<= pi/4 */ + if ix < uint32(0x39800000) { /* |x| < 2**-12 */ + /* raise inexact if x!=0 and underflow if subnormal */ + if uint32(4) == uint32(4) { + if ix < uint32(0x00800000) { + v1 = x3 / Float32FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float32FromFloat32(1.329227995784916e+36) + } + y = v1 + } else { + if uint32(4) == uint32(8) { + if ix < uint32(0x00800000) { + v1 = x3 / Float32FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float32FromFloat32(1.329227995784916e+36) + } + y1 = float64(v1) + } else { + if ix < uint32(0x00800000) { + v1 = x3 / Float32FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float32FromFloat32(1.329227995784916e+36) + } + y2 = float64(v1) + } + } + return x3 + } + return X__tandf(tls, float64(x3), 0) + } + if ix <= uint32(0x407b53d1) { /* |x| ~<= 5*pi/4 */ + if ix <= uint32(0x4016cbe3) { /* |x| ~<= 3pi/4 */ + if sign != 0 { + v4 = float64(x3) + _t1pio2 + } else { + v4 = float64(x3) - _t1pio2 + } + return X__tandf(tls, v4, int32(1)) + } else { + if sign != 0 { + v4 = float64(x3) + _t2pio2 + } else { + v4 = float64(x3) - _t2pio2 + } + return X__tandf(tls, v4, 0) + } + } + if ix <= uint32(0x40e231d5) { /* |x| ~<= 9*pi/4 */ + if ix <= uint32(0x40afeddf) { /* |x| ~<= 7*pi/4 */ + if sign != 0 { + v4 = float64(x3) + _t3pio2 + } else { + v4 = float64(x3) - _t3pio2 + } + return X__tandf(tls, v4, int32(1)) + } else { + if sign != 0 { + v4 = float64(x3) + _t4pio2 + } else { + v4 = float64(x3) - _t4pio2 + } + return X__tandf(tls, v4, 0) + } + } + /* tan(Inf or NaN) is NaN */ + if ix >= uint32(0x7f800000) { + return x3 - x3 + } + /* argument reduction */ + n = Uint32FromInt32(X__rem_pio2f(tls, x3, bp)) + return X__tandf(tls, **(**float64)(__ccgo_up(bp)), Int32FromUint32(n&uint32(1))) +} + +const M_PI_210 = 0 + +// C documentation +// +// /* tanh(x) = (exp(x) - exp(-x))/(exp(x) + exp(-x)) +// * = (exp(2*x) - 1)/(exp(2*x) - 1 + 2) +// * = (1 - exp(-2*x))/(exp(-2*x) - 1 + 2) +// */ +func Xtanh(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var sign int32 + var t, v1 Tdouble_t + var w Tuint32_t + var y float32 + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _ = sign, t, w, y, y1, y2, v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + /* x = |x| */ + sign = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(63)) + *(*Tuint64_t)(unsafe.Pointer(bp)) &= Uint64FromInt32(-Int32FromInt32(1)) / Uint64FromInt32(2) + x3 = *(*float64)(unsafe.Pointer(bp)) + w = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32)) + if w > uint32(0x3fe193ea) { + /* |x| > log(3)/2 ~= 0.5493 or nan */ + if w > uint32(0x40340000) { + /* |x| > 20 or nan */ + /* note: this branch avoids raising overflow */ + t = float64(Float64FromInt32(1) - Float64FromInt32(0)/x3) + } else { + t = Xexpm1(tls, float64(Float64FromInt32(2)*x3)) + t = Float64FromInt32(1) - Float64FromInt32(2)/(t+Float64FromInt32(2)) + } + } else { + if w > uint32(0x3fd058ae) { + /* |x| > log(5/3)/2 ~= 0.2554 */ + t = Xexpm1(tls, float64(Float64FromInt32(2)*x3)) + t = t / (t + Float64FromInt32(2)) + } else { + if w >= uint32(0x00100000) { + /* |x| >= 0x1p-1022, up to 2ulp error in [0.1,0.2554] */ + t = Xexpm1(tls, float64(float64(-Int32FromInt32(2))*x3)) + t = -t / (t + Float64FromInt32(2)) + } else { + /* |x| is subnormal */ + /* note: the branch above would not raise underflow in [0x1p-1023,0x1p-1022) */ + if uint32(4) == uint32(4) { + y = float32(x3) + } else { + if uint32(4) == uint32(8) { + y1 = float64(float32(x3)) + } else { + y2 = float64(float32(x3)) + } + } + t = x3 + } + } + } + if sign != 0 { + v1 = -t + } else { + v1 = t + } + return v1 +} + +func Xtanhf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var sign int32 + var t, y, v1 float32 + var w Tuint32_t + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _, _ = sign, t, w, y, y1, y2, v1 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + /* x = |x| */ + sign = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(31)) + *(*Tuint32_t)(unsafe.Pointer(bp)) &= uint32(0x7fffffff) + x3 = *(*float32)(unsafe.Pointer(bp)) + w = *(*Tuint32_t)(unsafe.Pointer(bp)) + if w > uint32(0x3f0c9f54) { + /* |x| > log(3)/2 ~= 0.5493 or nan */ + if w > uint32(0x41200000) { + /* |x| > 10 */ + t = Float32FromInt32(1) + Float32FromInt32(0)/x3 + } else { + t = Xexpm1f(tls, float32(Float32FromInt32(2)*x3)) + t = Float32FromInt32(1) - Float32FromInt32(2)/(t+Float32FromInt32(2)) + } + } else { + if w > uint32(0x3e82c578) { + /* |x| > log(5/3)/2 ~= 0.2554 */ + t = Xexpm1f(tls, float32(Float32FromInt32(2)*x3)) + t = t / (t + Float32FromInt32(2)) + } else { + if w >= uint32(0x00800000) { + /* |x| >= 0x1p-126 */ + t = Xexpm1f(tls, float32(float32(-Int32FromInt32(2))*x3)) + t = -t / (t + Float32FromInt32(2)) + } else { + /* |x| is subnormal */ + if uint32(4) == uint32(4) { + y = float32(x3 * x3) + } else { + if uint32(4) == uint32(8) { + y1 = float64(x3 * x3) + } else { + y2 = float64(x3 * x3) + } + } + t = x3 + } + } + } + if sign != 0 { + v1 = -t + } else { + v1 = t + } + return v1 +} + +func Xtanhl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xtanh(tls, x) +} + +func Xtanl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xtan(tls, x) +} + +const N10 = 12 + +var _pi4 = float64(3.141592653589793) + +// C documentation +// +// /* sin(pi x) with x > 0x1p-100, if sin(pi*x)==0 the sign is arbitrary */ +func _sinpi(tls *TLS, x float64) (r float64) { + var n int32 + _ = n + /* argument reduction: x = |x| mod 2 */ + /* spurious inexact when x is odd int */ + x = float64(x * float64(0.5)) + x = float64(Float64FromInt32(2) * (x - Xfloor(tls, x))) + /* reduce x into [-.25,.25] */ + n = int32(Float64FromInt32(4) * x) + n = (n + int32(1)) / int32(2) + x = x - float64(float64(n)*float64(0.5)) + x = x * _pi4 + switch n { + default: /* case 4 */ + fallthrough + case 0: + return X__sin(tls, x, Float64FromInt32(0), 0) + case int32(1): + return X__cos(tls, x, Float64FromInt32(0)) + case int32(2): + return X__sin(tls, -x, Float64FromInt32(0), 0) + case int32(3): + return -X__cos(tls, x, Float64FromInt32(0)) + } + return r +} + +// C documentation +// +// //static const double g = 6.024680040776729583740234375; +var _gmhalf = float64(5.52468004077673) +var _Snum = [13]float64{ + 0: float64(2.353137688041076e+10), + 1: float64(4.29198036426491e+10), + 2: float64(3.571195923735567e+10), + 3: float64(1.792103442603721e+10), + 4: float64(6.039542586352028e+09), + 5: float64(1.4397204073117216e+09), + 6: float64(2.4887455786205417e+08), + 7: float64(3.1426415585400194e+07), + 8: float64(2.8763706289353725e+06), + 9: float64(186056.26539522348), + 10: float64(8071.672002365816), + 11: float64(210.82427775157936), + 12: float64(2.5066282746310002), +} +var _Sden = [13]float64{ + 1: Float64FromInt32(39916800), + 2: Float64FromInt32(120543840), + 3: Float64FromInt32(150917976), + 4: Float64FromInt32(105258076), + 5: Float64FromInt32(45995730), + 6: Float64FromInt32(13339535), + 7: Float64FromInt32(2637558), + 8: Float64FromInt32(357423), + 9: Float64FromInt32(32670), + 10: Float64FromInt32(1925), + 11: Float64FromInt32(66), + 12: Float64FromInt32(1), +} + +// C documentation +// +// /* n! for small integer n */ +var _fact = [23]float64{ + 0: Float64FromInt32(1), + 1: Float64FromInt32(1), + 2: Float64FromInt32(2), + 3: Float64FromInt32(6), + 4: Float64FromInt32(24), + 5: Float64FromInt32(120), + 6: Float64FromInt32(720), + 7: float64(5040), + 8: float64(40320), + 9: float64(362880), + 10: float64(3.6288e+06), + 11: float64(3.99168e+07), + 12: float64(4.790016e+08), + 13: float64(6.2270208e+09), + 14: float64(8.71782912e+10), + 15: float64(1.307674368e+12), + 16: float64(2.0922789888e+13), + 17: float64(3.55687428096e+14), + 18: float64(6.402373705728e+15), + 19: float64(1.21645100408832e+17), + 20: float64(2.43290200817664e+18), + 21: float64(5.109094217170944e+19), + 22: float64(1.1240007277776077e+21), +} + +// C documentation +// +// /* S(x) rational function for positive x */ +func _S(tls *TLS, x float64) (r float64) { + var den, num Tdouble_t + var i int32 + _, _, _ = den, i, num + num = Float64FromInt32(0) + den = Float64FromInt32(0) + /* to avoid overflow handle large x differently */ + if x < Float64FromInt32(8) { + i = int32(N10) + for { + if !(i >= 0) { + break + } + num = Tdouble_t(num*x) + _Snum[i] + den = Tdouble_t(den*x) + _Sden[i] + goto _1 + _1: + ; + i = i - 1 + } + } else { + i = 0 + for { + if !(i <= int32(N10)) { + break + } + num = num/x + _Snum[i] + den = den/x + _Sden[i] + goto _2 + _2: + ; + i = i + 1 + } + } + return num / den +} + +func Xtgamma(tls *TLS, x3 float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var absx, y1, y2, y3, v1 float64 + var dy, r, z Tdouble_t + var ix Tuint32_t + var sign int32 + var y float32 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _, _, _, _, _ = absx, dy, ix, r, sign, y, y1, y2, y3, z, v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32) & uint64(0x7fffffff)) + sign = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(63)) + /* special cases */ + if ix >= uint32(0x7ff00000) { + /* tgamma(nan)=nan, tgamma(inf)=inf, tgamma(-inf)=nan with invalid */ + return x3 + float64(X__builtin_inff(tls)) + } + if ix < Uint32FromInt32((Int32FromInt32(0x3ff)-Int32FromInt32(54))<= 172: tgamma(x)=inf with overflow */ + /* x =< -184: tgamma(x)=+-0 with underflow */ + if ix >= uint32(0x40670000) { /* |x| >= 184 */ + if sign != 0 { + if uint32(4) == uint32(4) { + y = float32(Float64FromFloat64(1.1754943508222875e-38) / x3) + } else { + if uint32(4) == uint32(8) { + y1 = float64(float32(Float64FromFloat64(1.1754943508222875e-38) / x3)) + } else { + y2 = float64(float32(Float64FromFloat64(1.1754943508222875e-38) / x3)) + } + } + if float64(Xfloor(tls, x3)*float64(0.5)) == Xfloor(tls, float64(x3*float64(0.5))) { + return Float64FromInt32(0) + } + return -Float64FromFloat64(0) + } + x3 = x3 * float64(8.98846567431158e+307) + return x3 + } + if sign != 0 { + v1 = -x3 + } else { + v1 = x3 + } + absx = v1 + /* handle the error of x + g - 0.5 */ + y3 = absx + _gmhalf + if absx > _gmhalf { + dy = y3 - absx + dy = dy - _gmhalf + } else { + dy = y3 - _gmhalf + dy = dy - absx + } + z = absx - float64(0.5) + r = Tdouble_t(_S(tls, absx) * Xexp(tls, -y3)) + if x3 < Float64FromInt32(0) { + /* reflection formula for negative x */ + /* sinpi(absx) is not 0, integers are already handled */ + r = -_pi4 / Tdouble_t(Tdouble_t(_sinpi(tls, absx)*absx)*r) + dy = -dy + z = -z + } + r = r + Tdouble_t(Tdouble_t(dy*float64(_gmhalf+Float64FromFloat64(0.5)))*r)/y3 + z = Xpow(tls, y3, float64(Float64FromFloat64(0.5)*z)) + y3 = float64(Tdouble_t(r*z) * z) + return y3 +} + +func Xtgammaf(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return float32(Xtgamma(tls, float64(x))) +} + +func Xtgammal(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xtgamma(tls, x) +} + +func Xtrunc(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e int32 + var m Tuint64_t + var y float32 + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _ = e, m, y, y1, y2 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + e = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp))>>Int32FromInt32(52)&Uint64FromInt32(0x7ff)) - int32(0x3ff) + int32(12) + if e >= Int32FromInt32(52)+Int32FromInt32(12) { + return x3 + } + if e < int32(12) { + e = int32(1) + } + m = -Uint64FromUint64(1) >> e + if *(*Tuint64_t)(unsafe.Pointer(bp))&m == uint64(0) { + return x3 + } + if uint32(8) == uint32(4) { + y = float32(x3 + Float64FromFloat32(1.329227995784916e+36)) + } else { + if uint32(8) == uint32(8) { + y1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } else { + y2 = float64(x3 + Float64FromFloat32(1.329227995784916e+36)) + } + } + *(*Tuint64_t)(unsafe.Pointer(bp)) &= ^m + return *(*float64)(unsafe.Pointer(bp)) +} + +func Xtruncf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e int32 + var m Tuint32_t + var y float32 + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _ = e, m, y, y1, y2 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + e = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp))>>Int32FromInt32(23)&Uint32FromInt32(0xff)) - int32(0x7f) + int32(9) + if e >= Int32FromInt32(23)+Int32FromInt32(9) { + return x3 + } + if e < int32(9) { + e = int32(1) + } + m = -Uint32FromUint32(1) >> e + if *(*Tuint32_t)(unsafe.Pointer(bp))&m == uint32(0) { + return x3 + } + if uint32(4) == uint32(4) { + y = x3 + Float32FromFloat32(1.329227995784916e+36) + } else { + if uint32(4) == uint32(8) { + y1 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } else { + y2 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } + } + *(*Tuint32_t)(unsafe.Pointer(bp)) &= ^m + return *(*float32)(unsafe.Pointer(bp)) +} + +func Xtruncl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xtrunc(tls, x) +} + +var _digits = [65]int8{'.', '/', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'} + +func Xa64l(tls *TLS, s uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var d uintptr + var e int32 + var x Tuint32_t + _, _, _ = d, e, x + x = uint32(0) + e = 0 + for { + if !(e < int32(36) && **(**int8)(__ccgo_up(s)) != 0) { + break + } + d = Xstrchr(tls, uintptr(unsafe.Pointer(&_digits)), int32(**(**int8)(__ccgo_up(s)))) + if !(d != 0) { + break + } + x = x | Uint32FromInt32(int32(d)-t__predefined_ptrdiff_t(uintptr(unsafe.Pointer(&_digits))))< %v", r) }() + } + var p uintptr + var x Tuint32_t + _, _ = p, x + x = Uint32FromInt32(x0) + p = uintptr(unsafe.Pointer(&_s)) + for { + if !(x != 0) { + break + } + **(**int8)(__ccgo_up(p)) = _digits[x&uint32(63)] + goto _1 + _1: + ; + p = p + 1 + x = x >> uint32(6) + } + **(**int8)(__ccgo_up(p)) = 0 + return uintptr(unsafe.Pointer(&_s)) +} + +var _s [7]int8 + +func Xbasename(tls *TLS, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var i Tsize_t + _ = i + if !(s != 0) || !(**(**int8)(__ccgo_up(s)) != 0) { + return __ccgo_ts + 483 + } + i = _strlen(tls, s) - uint32(1) + for { + if !(i != 0 && int32(**(**int8)(__ccgo_up(s + uintptr(i)))) == int32('/')) { + break + } + **(**int8)(__ccgo_up(s + uintptr(i))) = 0 + goto _1 + _1: + ; + i = i - 1 + } + for { + if !(i != 0 && int32(**(**int8)(__ccgo_up(s + uintptr(i-uint32(1))))) != int32('/')) { + break + } + goto _2 + _2: + ; + i = i - 1 + } + return s + uintptr(i) +} + +func X__xpg_basename(tls *TLS, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xbasename(tls, s) +} + +func Xdirname(tls *TLS, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var i Tsize_t + _ = i + if !(s != 0) || !(**(**int8)(__ccgo_up(s)) != 0) { + return __ccgo_ts + 483 + } + i = _strlen(tls, s) - uint32(1) + for { + if !(int32(**(**int8)(__ccgo_up(s + uintptr(i)))) == int32('/')) { + break + } + if !(i != 0) { + return __ccgo_ts + 491 + } + goto _1 + _1: + ; + i = i - 1 + } + for { + if !(int32(**(**int8)(__ccgo_up(s + uintptr(i)))) != int32('/')) { + break + } + if !(i != 0) { + return __ccgo_ts + 483 + } + goto _2 + _2: + ; + i = i - 1 + } + for { + if !(int32(**(**int8)(__ccgo_up(s + uintptr(i)))) == int32('/')) { + break + } + if !(i != 0) { + return __ccgo_ts + 491 + } + goto _3 + _3: + ; + i = i - 1 + } + **(**int8)(__ccgo_up(s + uintptr(i+uint32(1)))) = 0 + return s +} + +func Xffs(tls *TLS, i int32) (r int32) { + if __ccgo_strace { + trc("tls=%v i=%v, (%v:)", tls, i, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1, v3 int32 + var v2 uint32 + _, _, _ = v1, v2, v3 + if i != 0 { + v2 = Uint32FromInt32(i) + v3 = _a_ctz_32(tls, v2) + goto _4 + _4: + v1 = v3 + int32(1) + } else { + v1 = 0 + } + return v1 +} + +func Xffsl(tls *TLS, i int32) (r int32) { + if __ccgo_strace { + trc("tls=%v i=%v, (%v:)", tls, i, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1, v3 int32 + var v2 uint32 + _, _, _ = v1, v2, v3 + if i != 0 { + v2 = Uint32FromInt32(i) + v3 = _a_ctz_32(tls, v2) + goto _4 + _4: + v1 = v3 + int32(1) + } else { + v1 = 0 + } + return v1 +} + +func Xffsll(tls *TLS, i int64) (r int32) { + if __ccgo_strace { + trc("tls=%v i=%v, (%v:)", tls, i, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + _ = v1 + if i != 0 { + v1 = _a_ctz_64(tls, Uint64FromInt64(i)) + int32(1) + } else { + v1 = 0 + } + return v1 +} + +const MM_APPL = 8 +const MM_CONSOLE = 512 +const MM_ERROR = 2 +const MM_FIRM = 4 +const MM_HALT = 1 +const MM_HARD = 1 +const MM_INFO = 4 +const MM_NOCON = 4 +const MM_NOMSG = 1 +const MM_NOSEV = 0 +const MM_NOTOK = -1 +const MM_NRECOV = 128 +const MM_NULLMC = 0 +const MM_NULLSEV = 0 +const MM_OK = 0 +const MM_OPSYS = 32 +const MM_PRINT = 256 +const MM_RECOVER = 64 +const MM_SOFT = 2 +const MM_UTIL = 16 +const MM_WARNING = 3 + +// C documentation +// +// /* +// * If lstr is the first part of bstr, check that the next char in bstr +// * is either \0 or : +// */ +func __strcolcmp(tls *TLS, lstr uintptr, bstr uintptr) (r int32) { + var i Tsize_t + _ = i + i = uint32(0) + for **(**int8)(__ccgo_up(lstr + uintptr(i))) != 0 && **(**int8)(__ccgo_up(bstr + uintptr(i))) != 0 && int32(**(**int8)(__ccgo_up(bstr + uintptr(i)))) == int32(**(**int8)(__ccgo_up(lstr + uintptr(i)))) { + i = i + 1 + } + if **(**int8)(__ccgo_up(lstr + uintptr(i))) != 0 || **(**int8)(__ccgo_up(bstr + uintptr(i))) != 0 && int32(**(**int8)(__ccgo_up(bstr + uintptr(i)))) != int32(':') { + return int32(1) + } + return 0 +} + +func Xfmtmsg(tls *TLS, classification int32, label uintptr, severity int32, text uintptr, action uintptr, tag uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v classification=%v label=%v severity=%v text=%v action=%v tag=%v, (%v:)", tls, classification, label, severity, text, action, tag, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(80) + defer tls.Free(80) + var cmsg, errstring, v1, v2, v3, v4, v5, v6, v7, v8 uintptr + var consolefd, i, ret, verb int32 + var msgs [6]uintptr + var _ /* cs at bp+0 */ int32 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = cmsg, consolefd, errstring, i, msgs, ret, verb, v1, v2, v3, v4, v5, v6, v7, v8 + ret = 0 + verb = 0 + errstring = uintptr(MM_NULLSEV) + cmsg = Xgetenv(tls, __ccgo_ts+493) + msgs = [6]uintptr{ + 0: __ccgo_ts + 501, + 1: __ccgo_ts + 507, + 2: __ccgo_ts + 516, + 3: __ccgo_ts + 521, + 4: __ccgo_ts + 528, + 5: UintptrFromInt32(0), + } + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp) + if severity == int32(MM_HALT) { + errstring = __ccgo_ts + 532 + } else { + if severity == int32(MM_ERROR) { + errstring = __ccgo_ts + 539 + } else { + if severity == int32(MM_WARNING) { + errstring = __ccgo_ts + 547 + } else { + if severity == int32(MM_INFO) { + errstring = __ccgo_ts + 557 + } + } + } + } + if classification&int32(MM_CONSOLE) != 0 { + consolefd = Xopen(tls, __ccgo_ts+564, int32(O_WRONLY), 0) + if consolefd < 0 { + ret = int32(MM_NOCON) + } else { + if label != 0 { + v1 = label + } else { + v1 = __ccgo_ts + } + if label != 0 { + v2 = __ccgo_ts + 289 + } else { + v2 = __ccgo_ts + } + if severity != 0 { + v3 = errstring + } else { + v3 = __ccgo_ts + } + if text != 0 { + v4 = text + } else { + v4 = __ccgo_ts + } + if action != 0 { + v5 = __ccgo_ts + 577 + } else { + v5 = __ccgo_ts + } + if action != 0 { + v6 = action + } else { + v6 = __ccgo_ts + } + if action != 0 { + v7 = __ccgo_ts + 587 + } else { + v7 = __ccgo_ts + } + if tag != 0 { + v8 = tag + } else { + v8 = __ccgo_ts + } + if Xdprintf(tls, consolefd, __ccgo_ts+589, VaList(bp+16, v1, v2, v3, v4, v5, v6, v7, v8)) < int32(1) { + ret = int32(MM_NOCON) + } + Xclose(tls, consolefd) + } + } + if classification&int32(MM_PRINT) != 0 { + for cmsg != 0 && **(**int8)(__ccgo_up(cmsg)) != 0 { + i = 0 + for { + if !(msgs[i] != 0) { + break + } + if !(__strcolcmp(tls, msgs[i], cmsg) != 0) { + break + } + goto _9 + _9: + ; + i = i + 1 + } + if msgs[i] == UintptrFromInt32(0) { + //ignore MSGVERB-unrecognized component + verb = int32(0xFF) + break + } else { + verb = verb | int32(1)< %v", r) }() + } + bp := tls.Alloc(288) + defer tls.Free(288) + var res uintptr + var _ /* a at bp+0 */ Tstat + var _ /* b at bp+144 */ Tstat + _ = res + res = Xgetenv(tls, __ccgo_ts+607) + if res != 0 && **(**int8)(__ccgo_up(res)) != 0 && !(Xstat(tls, res, bp) != 0) && !(Xstat(tls, __ccgo_ts+483, bp+144) != 0) && (**(**Tstat)(__ccgo_up(bp))).Fst_dev == (**(**Tstat)(__ccgo_up(bp + 144))).Fst_dev && (**(**Tstat)(__ccgo_up(bp))).Fst_ino == (**(**Tstat)(__ccgo_up(bp + 144))).Fst_ino { + return Xstrdup(tls, res) + } + return Xgetcwd(tls, uintptr(0), uint32(0)) +} + +func X__getauxval(tls *TLS, item uint32) (r uint32) { + if __ccgo_strace { + trc("tls=%v item=%v, (%v:)", tls, item, origin(2)) + defer func() { trc("-> %v", r) }() + } + var auxv uintptr + _ = auxv + auxv = X__libc.Fauxv + if item == uint32(AT_SECURE) { + return Uint32FromInt8(X__libc.Fsecure) + } + for { + if !(**(**Tsize_t)(__ccgo_up(auxv)) != 0) { + break + } + if uint32(**(**Tsize_t)(__ccgo_up(auxv))) == item { + return uint32(**(**Tsize_t)(__ccgo_up(auxv + 1*4))) + } + goto _1 + _1: + ; + auxv = auxv + uintptr(2)*4 + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOENT) + return uint32(0) +} + +func Xgetauxval(tls *TLS, item uint32) (r uint32) { + if __ccgo_strace { + trc("tls=%v item=%v, (%v:)", tls, item, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__getauxval(tls, item) +} + +type Tutsname = struct { + Fsysname [65]int8 + Fnodename [65]int8 + Frelease [65]int8 + Fversion [65]int8 + Fmachine [65]int8 + Fdomainname [65]int8 +} + +func Xgetdomainname(tls *TLS, name uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v len1=%v, (%v:)", tls, name, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(400) + defer tls.Free(400) + var _ /* temp at bp+0 */ Tutsname + Xuname(tls, bp) + if !(len1 != 0) || _strlen(tls, bp+325) >= len1 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + Xstrcpy(tls, name, bp+325) + return 0 +} + +func Xgetentropy(tls *TLS, buffer uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v buffer=%v len1=%v, (%v:)", tls, buffer, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var pos uintptr + var ret int32 + var _ /* cs at bp+0 */ int32 + _, _ = pos, ret + ret = 0 + pos = buffer + if len1 > uint32(256) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EIO) + return -int32(1) + } + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp) + for len1 != 0 { + ret = Xgetrandom(tls, pos, len1, uint32(0)) + if ret < 0 { + if **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EINTR) { + continue + } else { + break + } + } + pos = pos + uintptr(ret) + len1 = len1 - Uint32FromInt32(ret) + ret = 0 + } + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp)), uintptr(0)) + return ret +} + +func Xgethostid(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return 0 +} + +const optpos = 0 + +type t__ucontext1 = Tucontext_t1 + +func X__getopt_msg(tls *TLS, a uintptr, b uintptr, c uintptr, l Tsize_t) { + if __ccgo_strace { + trc("tls=%v a=%v b=%v c=%v l=%v, (%v:)", tls, a, b, c, l, origin(2)) + } + var __need_unlock, v1 int32 + var f uintptr + _, _, _ = __need_unlock, f, v1 + f = uintptr(unsafe.Pointer(&X__stderr_FILE)) + b = X__lctrans_cur(tls, b) + if AtomicLoadPInt32(f+76) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + _ = Xfputs(tls, a, f) >= 0 && Xfwrite(tls, b, _strlen(tls, b), uint32(1), f) != 0 && Xfwrite(tls, c, uint32(1), l, f) == l && Xputc(tls, int32('\n'), f) != 0 + if __need_unlock != 0 { + ___unlockfile(tls, f) + } +} + +func Xgetopt(tls *TLS, argc int32, argv uintptr, optstring uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v argc=%v argv=%v optstring=%v, (%v:)", tls, argc, argv, optstring, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var i, k, l, v1 int32 + var optchar uintptr + var _ /* c at bp+0 */ Twchar_t + var _ /* d at bp+4 */ Twchar_t + _, _, _, _, _ = i, k, l, optchar, v1 + if !(Xoptind != 0) || Xoptreset != 0 { + Xoptreset = 0 + X__optpos = 0 + Xoptind = int32(1) + } + if Xoptind >= argc || !(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*4)) != 0) { + return -int32(1) + } + if int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*4))))) != int32('-') { + if int32(**(**int8)(__ccgo_up(optstring))) == int32('-') { + v1 = Xoptind + Xoptind = Xoptind + 1 + Xoptarg = **(**uintptr)(__ccgo_up(argv + uintptr(v1)*4)) + return int32(1) + } + return -int32(1) + } + if !(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*4)) + 1)) != 0) { + return -int32(1) + } + if int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*4)) + 1))) == int32('-') && !(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*4)) + 2)) != 0) { + Xoptind = Xoptind + 1 + return -Int32FromInt32(1) + } + if !(X__optpos != 0) { + X__optpos = X__optpos + 1 + } + v1 = Xmbtowc(tls, bp, **(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*4))+uintptr(X__optpos), uint32(MB_LEN_MAX)) + k = v1 + if v1 < 0 { + k = int32(1) + **(**Twchar_t)(__ccgo_up(bp)) = int32(0xfffd) /* replacement char */ + } + optchar = **(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*4)) + uintptr(X__optpos) + X__optpos = X__optpos + k + if !(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*4)) + uintptr(X__optpos))) != 0) { + Xoptind = Xoptind + 1 + X__optpos = 0 + } + if int32(**(**int8)(__ccgo_up(optstring))) == int32('-') || int32(**(**int8)(__ccgo_up(optstring))) == int32('+') { + optstring = optstring + 1 + } + i = 0 + **(**Twchar_t)(__ccgo_up(bp + 4)) = 0 + for cond := true; cond; cond = l != 0 && **(**Twchar_t)(__ccgo_up(bp + 4)) != **(**Twchar_t)(__ccgo_up(bp)) { + l = Xmbtowc(tls, bp+4, optstring+uintptr(i), uint32(MB_LEN_MAX)) + if l > 0 { + i = i + l + } else { + i = i + 1 + } + } + if **(**Twchar_t)(__ccgo_up(bp + 4)) != **(**Twchar_t)(__ccgo_up(bp)) || **(**Twchar_t)(__ccgo_up(bp)) == int32(':') { + Xoptopt = int32(**(**Twchar_t)(__ccgo_up(bp))) + if int32(**(**int8)(__ccgo_up(optstring))) != int32(':') && Xopterr != 0 { + X__getopt_msg(tls, **(**uintptr)(__ccgo_up(argv)), __ccgo_ts+611, optchar, Uint32FromInt32(k)) + } + return int32('?') + } + if int32(**(**int8)(__ccgo_up(optstring + uintptr(i)))) == int32(':') { + Xoptarg = uintptr(0) + if int32(**(**int8)(__ccgo_up(optstring + uintptr(i+int32(1))))) != int32(':') || X__optpos != 0 { + v1 = Xoptind + Xoptind = Xoptind + 1 + Xoptarg = **(**uintptr)(__ccgo_up(argv + uintptr(v1)*4)) + if X__optpos != 0 { + Xoptarg = Xoptarg + uintptr(X__optpos) + } + X__optpos = 0 + } + if Xoptind > argc { + Xoptopt = int32(**(**Twchar_t)(__ccgo_up(bp))) + if int32(**(**int8)(__ccgo_up(optstring))) == int32(':') { + return int32(':') + } + if Xopterr != 0 { + X__getopt_msg(tls, **(**uintptr)(__ccgo_up(argv)), __ccgo_ts+635, optchar, Uint32FromInt32(k)) + } + return int32('?') + } + } + return int32(**(**Twchar_t)(__ccgo_up(bp))) +} + +func X__posix_getopt(tls *TLS, argc int32, argv uintptr, optstring uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v argc=%v argv=%v optstring=%v, (%v:)", tls, argc, argv, optstring, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetopt(tls, argc, argv, optstring) +} + +const no_argument = 0 +const optional_argument = 2 +const required_argument = 1 + +type Toption = struct { + Fname uintptr + Fhas_arg int32 + Fflag uintptr + Fval int32 +} + +func _permute(tls *TLS, argv uintptr, dest int32, src int32) { + var av, tmp uintptr + var i int32 + _, _, _ = av, i, tmp + av = argv + tmp = **(**uintptr)(__ccgo_up(av + uintptr(src)*4)) + i = src + for { + if !(i > dest) { + break + } + **(**uintptr)(__ccgo_up(av + uintptr(i)*4)) = **(**uintptr)(__ccgo_up(av + uintptr(i-int32(1))*4)) + goto _1 + _1: + ; + i = i - 1 + } + **(**uintptr)(__ccgo_up(av + uintptr(dest)*4)) = tmp +} + +func ___getopt_long(tls *TLS, argc int32, argv uintptr, optstring uintptr, longopts uintptr, idx uintptr, longonly int32) (r int32) { + var cnt, i, i1, resumed, ret, skipped int32 + _, _, _, _, _, _ = cnt, i, i1, resumed, ret, skipped + if !(Xoptind != 0) || Xoptreset != 0 { + Xoptreset = 0 + X__optpos = 0 + Xoptind = int32(1) + } + if Xoptind >= argc || !(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*4)) != 0) { + return -int32(1) + } + skipped = Xoptind + if int32(**(**int8)(__ccgo_up(optstring))) != int32('+') && int32(**(**int8)(__ccgo_up(optstring))) != int32('-') { + i = Xoptind + for { + if i >= argc || !(**(**uintptr)(__ccgo_up(argv + uintptr(i)*4)) != 0) { + return -int32(1) + } + if int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(i)*4))))) == int32('-') && **(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(i)*4)) + 1)) != 0 { + break + } + goto _1 + _1: + ; + i = i + 1 + } + Xoptind = i + } + resumed = Xoptind + ret = ___getopt_long_core(tls, argc, argv, optstring, longopts, idx, longonly) + if resumed > skipped { + cnt = Xoptind - resumed + i1 = 0 + for { + if !(i1 < cnt) { + break + } + _permute(tls, argv, skipped, Xoptind-int32(1)) + goto _2 + _2: + ; + i1 = i1 + 1 + } + Xoptind = skipped + cnt + } + return ret +} + +func ___getopt_long_core(tls *TLS, argc int32, argv uintptr, optstring uintptr, longopts uintptr, idx uintptr, longonly int32) (r int32) { + var arg, name, opt, start, v5 uintptr + var cnt, colon, i, j, l, match, v2 int32 + _, _, _, _, _, _, _, _, _, _, _, _ = arg, cnt, colon, i, j, l, match, name, opt, start, v2, v5 + Xoptarg = uintptr(0) + if longopts != 0 && int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*4))))) == int32('-') && (longonly != 0 && **(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*4)) + 1)) != 0 && int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*4)) + 1))) != int32('-') || int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*4)) + 1))) == int32('-') && **(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*4)) + 2)) != 0) { + colon = BoolInt32(int32(**(**int8)(__ccgo_up(optstring + BoolUintptr(int32(**(**int8)(__ccgo_up(optstring))) == int32('+') || int32(**(**int8)(__ccgo_up(optstring))) == int32('-'))))) == int32(':')) + start = **(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*4)) + uintptr(1) + v2 = Int32FromInt32(0) + i = v2 + cnt = v2 + for { + if !((**(**Toption)(__ccgo_up(longopts + uintptr(i)*16))).Fname != 0) { + break + } + name = (**(**Toption)(__ccgo_up(longopts + uintptr(i)*16))).Fname + opt = start + if int32(**(**int8)(__ccgo_up(opt))) == int32('-') { + opt = opt + 1 + } + for **(**int8)(__ccgo_up(opt)) != 0 && int32(**(**int8)(__ccgo_up(opt))) != int32('=') && int32(**(**int8)(__ccgo_up(opt))) == int32(**(**int8)(__ccgo_up(name))) { + name = name + 1 + opt = opt + 1 + } + if **(**int8)(__ccgo_up(opt)) != 0 && int32(**(**int8)(__ccgo_up(opt))) != int32('=') { + goto _1 + } + arg = opt + match = i + if !(**(**int8)(__ccgo_up(name)) != 0) { + cnt = int32(1) + break + } + cnt = cnt + 1 + goto _1 + _1: + ; + i = i + 1 + } + if cnt == int32(1) && longonly != 0 && int32(arg)-int32(start) == Xmblen(tls, start, uint32(MB_LEN_MAX)) { + l = int32(arg) - int32(start) + i = 0 + for { + if !(**(**int8)(__ccgo_up(optstring + uintptr(i))) != 0) { + break + } + j = 0 + for { + if !(j < l && int32(**(**int8)(__ccgo_up(start + uintptr(j)))) == int32(**(**int8)(__ccgo_up(optstring + uintptr(i+j))))) { + break + } + goto _4 + _4: + ; + j = j + 1 + } + if j == l { + cnt = cnt + 1 + break + } + goto _3 + _3: + ; + i = i + 1 + } + } + if cnt == int32(1) { + i = match + opt = arg + Xoptind = Xoptind + 1 + if int32(**(**int8)(__ccgo_up(opt))) == int32('=') { + if !((**(**Toption)(__ccgo_up(longopts + uintptr(i)*16))).Fhas_arg != 0) { + Xoptopt = (**(**Toption)(__ccgo_up(longopts + uintptr(i)*16))).Fval + if colon != 0 || !(Xopterr != 0) { + return int32('?') + } + X__getopt_msg(tls, **(**uintptr)(__ccgo_up(argv)), __ccgo_ts+667, (**(**Toption)(__ccgo_up(longopts + uintptr(i)*16))).Fname, _strlen(tls, (**(**Toption)(__ccgo_up(longopts + uintptr(i)*16))).Fname)) + return int32('?') + } + Xoptarg = opt + uintptr(1) + } else { + if (**(**Toption)(__ccgo_up(longopts + uintptr(i)*16))).Fhas_arg == int32(required_argument) { + v5 = **(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*4)) + Xoptarg = v5 + if !(v5 != 0) { + Xoptopt = (**(**Toption)(__ccgo_up(longopts + uintptr(i)*16))).Fval + if colon != 0 { + return int32(':') + } + if !(Xopterr != 0) { + return int32('?') + } + X__getopt_msg(tls, **(**uintptr)(__ccgo_up(argv)), __ccgo_ts+635, (**(**Toption)(__ccgo_up(longopts + uintptr(i)*16))).Fname, _strlen(tls, (**(**Toption)(__ccgo_up(longopts + uintptr(i)*16))).Fname)) + return int32('?') + } + Xoptind = Xoptind + 1 + } + } + if idx != 0 { + **(**int32)(__ccgo_up(idx)) = i + } + if (**(**Toption)(__ccgo_up(longopts + uintptr(i)*16))).Fflag != 0 { + **(**int32)(__ccgo_up((**(**Toption)(__ccgo_up(longopts + uintptr(i)*16))).Fflag)) = (**(**Toption)(__ccgo_up(longopts + uintptr(i)*16))).Fval + return 0 + } + return (**(**Toption)(__ccgo_up(longopts + uintptr(i)*16))).Fval + } + if int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*4)) + 1))) == int32('-') { + Xoptopt = 0 + if !(colon != 0) && Xopterr != 0 { + if cnt != 0 { + v5 = __ccgo_ts + 704 + } else { + v5 = __ccgo_ts + 611 + } + X__getopt_msg(tls, **(**uintptr)(__ccgo_up(argv)), v5, **(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*4))+uintptr(2), _strlen(tls, **(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*4))+uintptr(2))) + } + Xoptind = Xoptind + 1 + return int32('?') + } + } + return Xgetopt(tls, argc, argv, optstring) +} + +func Xgetopt_long(tls *TLS, argc int32, argv uintptr, optstring uintptr, longopts uintptr, idx uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v argc=%v argv=%v optstring=%v longopts=%v idx=%v, (%v:)", tls, argc, argv, optstring, longopts, idx, origin(2)) + defer func() { trc("-> %v", r) }() + } + return ___getopt_long(tls, argc, argv, optstring, longopts, idx, 0) +} + +func Xgetopt_long_only(tls *TLS, argc int32, argv uintptr, optstring uintptr, longopts uintptr, idx uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v argc=%v argv=%v optstring=%v longopts=%v idx=%v, (%v:)", tls, argc, argv, optstring, longopts, idx, origin(2)) + defer func() { trc("-> %v", r) }() + } + return ___getopt_long(tls, argc, argv, optstring, longopts, idx, int32(1)) +} + +func Xgetpriority(tls *TLS, which int32, who Tid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v which=%v who=%v, (%v:)", tls, which, who, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret int32 + _ = ret + ret = X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_getpriority), which, Int32FromUint32(who)))) + if ret < 0 { + return ret + } + return int32(20) - ret +} + +func Xgetresgid(tls *TLS, rgid uintptr, egid uintptr, sgid uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v rgid=%v egid=%v sgid=%v, (%v:)", tls, rgid, egid, sgid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_getresgid32), int32(rgid), int32(egid), int32(sgid)))) +} + +func Xgetresuid(tls *TLS, ruid uintptr, euid uintptr, suid uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v ruid=%v euid=%v suid=%v, (%v:)", tls, ruid, euid, suid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_getresuid32), int32(ruid), int32(euid), int32(suid)))) +} + +func Xgetrlimit(tls *TLS, resource int32, rlim uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v resource=%v rlim=%v, (%v:)", tls, resource, rlim, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ret int32 + var v1 uint64 + var _ /* k_rlim at bp+0 */ [2]uint32 + _, _ = ret, v1 + ret = X__syscall_ret(tls, Uint32FromInt32(X__syscall4(tls, int32(SYS_prlimit64), int32(Int32FromInt32(0)), resource, int32(Int32FromInt32(0)), int32(rlim)))) + if !(ret != 0) { + if (*Trlimit)(unsafe.Pointer(rlim)).Frlim_cur >= ^Uint64FromUint64(0) { + (*Trlimit)(unsafe.Pointer(rlim)).Frlim_cur = ^Uint64FromUint64(0) + } + if (*Trlimit)(unsafe.Pointer(rlim)).Frlim_max >= ^Uint64FromUint64(0) { + (*Trlimit)(unsafe.Pointer(rlim)).Frlim_max = ^Uint64FromUint64(0) + } + } + if !(ret != 0) || **(**int32)(__ccgo_up(X__errno_location(tls))) != int32(ENOSYS) { + return ret + } + if X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_ugetrlimit), resource, int32(bp)))) < 0 { + return -int32(1) + } + if (**(**[2]uint32)(__ccgo_up(bp)))[0] == -Uint32FromUint32(1) { + v1 = ^Uint64FromUint64(0) + } else { + v1 = uint64((**(**[2]uint32)(__ccgo_up(bp)))[0]) + } + (*Trlimit)(unsafe.Pointer(rlim)).Frlim_cur = v1 + if (**(**[2]uint32)(__ccgo_up(bp)))[int32(1)] == -Uint32FromUint32(1) { + v1 = ^Uint64FromUint64(0) + } else { + v1 = uint64((**(**[2]uint32)(__ccgo_up(bp)))[int32(1)]) + } + (*Trlimit)(unsafe.Pointer(rlim)).Frlim_max = v1 + if (*Trlimit)(unsafe.Pointer(rlim)).Frlim_cur >= ^Uint64FromUint64(0) { + (*Trlimit)(unsafe.Pointer(rlim)).Frlim_cur = ^Uint64FromUint64(0) + } + if (*Trlimit)(unsafe.Pointer(rlim)).Frlim_max >= ^Uint64FromUint64(0) { + (*Trlimit)(unsafe.Pointer(rlim)).Frlim_max = ^Uint64FromUint64(0) + } + return 0 +} + +func Xgetrusage(tls *TLS, who int32, ru uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v who=%v ru=%v, (%v:)", tls, who, ru, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var dest uintptr + var r int32 + var _ /* kru at bp+0 */ [4]int32 + _, _ = dest, r + dest = ru + 32 - uintptr(Uint32FromInt32(4)*Uint32FromInt64(4)) + r = int32(X__syscall2(tls, int32(SYS_getrusage), who, int32(dest))) + if !(r != 0) && Bool(uint32(8) > uint32(4)) { + Xmemcpy(tls, bp, dest, Uint32FromInt32(4)*Uint32FromInt64(4)) + (*Trusage)(unsafe.Pointer(ru)).Fru_utime = Ttimeval{ + Ftv_sec: int64((**(**[4]int32)(__ccgo_up(bp)))[0]), + Ftv_usec: int64((**(**[4]int32)(__ccgo_up(bp)))[int32(1)]), + } + (*Trusage)(unsafe.Pointer(ru)).Fru_stime = Ttimeval{ + Ftv_sec: int64((**(**[4]int32)(__ccgo_up(bp)))[int32(2)]), + Ftv_usec: int64((**(**[4]int32)(__ccgo_up(bp)))[int32(3)]), + } + } + return X__syscall_ret(tls, Uint32FromInt32(r)) +} + +func Xgetsubopt(tls *TLS, opt uintptr, keys uintptr, val uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v opt=%v keys=%v val=%v, (%v:)", tls, opt, keys, val, origin(2)) + defer func() { trc("-> %v", r) }() + } + var i int32 + var l Tsize_t + var s, v1, v2 uintptr + _, _, _, _, _ = i, l, s, v1, v2 + s = **(**uintptr)(__ccgo_up(opt)) + **(**uintptr)(__ccgo_up(val)) = UintptrFromInt32(0) + **(**uintptr)(__ccgo_up(opt)) = Xstrchr(tls, s, int32(',')) + if **(**uintptr)(__ccgo_up(opt)) != 0 { + v2 = opt + v1 = *(*uintptr)(unsafe.Pointer(v2)) + *(*uintptr)(unsafe.Pointer(v2)) = *(*uintptr)(unsafe.Pointer(v2)) + 1 + **(**int8)(__ccgo_up(v1)) = 0 + } else { + **(**uintptr)(__ccgo_up(opt)) = s + uintptr(_strlen(tls, s)) + } + i = 0 + for { + if !(**(**uintptr)(__ccgo_up(keys + uintptr(i)*4)) != 0) { + break + } + l = _strlen(tls, **(**uintptr)(__ccgo_up(keys + uintptr(i)*4))) + if Xstrncmp(tls, **(**uintptr)(__ccgo_up(keys + uintptr(i)*4)), s, l) != 0 { + goto _3 + } + if int32(**(**int8)(__ccgo_up(s + uintptr(l)))) == int32('=') { + **(**uintptr)(__ccgo_up(val)) = s + uintptr(l) + uintptr(1) + } else { + if **(**int8)(__ccgo_up(s + uintptr(l))) != 0 { + goto _3 + } + } + return i + goto _3 + _3: + ; + i = i + 1 + } + return -int32(1) +} + +const R = 2 +const W = 1 +const WR = 3 + +type Tioctl_compat_map = struct { + Fnew_req int32 + Fold_req int32 + Fold_size uint8 + Fdir uint8 + Fforce_align uint8 + Fnoffs uint8 + Foffsets [8]uint8 +} + +/* yields a type for a struct with original size n, with a misaligned + * timeval/timespec expanded from 32- to 64-bit. for use with ioctl + * number producing macros; only size of result is meaningful. */ + +type Tv4l2_event = struct { + Fa Tuint32_t + Fb [8]Tuint64_t + Fc [2]Tuint32_t + Fts [2]Tuint32_t + Fd [9]Tuint32_t +} + +var _compat_map = [20]Tioctl_compat_map{ + 0: { + Fnew_req: Int32FromUint32(Uint32FromUint32(2)< %v", r1) }() + } + bp := tls.Alloc(256) + defer tls.Free(256) + var ap Tva_list + var arg uintptr + var i, r int32 + var _ /* u at bp+0 */ struct { + Fbuf [0][256]int8 + Falign int64 + F__ccgo_pad2 [248]byte + } + _, _, _, _ = ap, arg, i, r + ap = va + arg = VaUintptr(&ap) + _ = ap + r = int32(X__syscall3(tls, int32(SYS_ioctl), fd, req, int32(arg))) + if Bool(Uint32FromUint32(2)< %v", r) }() + } + return int32(X__libc.Fsecure) +} + +func Xlockf(tls *TLS, fd int32, op int32, size Toff_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v op=%v size=%v, (%v:)", tls, fd, op, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + var _ /* l at bp+0 */ Tflock + **(**Tflock)(__ccgo_up(bp)) = Tflock{ + Fl_type: int16(F_WRLCK), + Fl_whence: int16(1), + Fl_len: size, + } + switch op { + case int32(F_TEST): + (**(**Tflock)(__ccgo_up(bp))).Fl_type = F_RDLCK + if Xfcntl(tls, fd, int32(F_GETLK), VaList(bp+32, bp)) < 0 { + return -int32(1) + } + if int32((**(**Tflock)(__ccgo_up(bp))).Fl_type) == int32(F_UNLCK) || (**(**Tflock)(__ccgo_up(bp))).Fl_pid == Xgetpid(tls) { + return 0 + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EACCES) + return -int32(1) + case F_ULOCK: + (**(**Tflock)(__ccgo_up(bp))).Fl_type = int16(F_UNLCK) + fallthrough + case int32(F_TLOCK): + return Xfcntl(tls, fd, int32(F_SETLK), VaList(bp+32, bp)) + case int32(F_LOCK): + return Xfcntl(tls, fd, int32(F_SETLKW), VaList(bp+32, bp)) + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) +} + +const ACCOUNTING = 9 +const UTMP_FILE = "_PATH_UTMP" +const UTMP_FILENAME = "_PATH_UTMP" +const UT_HOSTSIZE = 256 +const UT_LINESIZE = 32 +const UT_NAMESIZE = 32 +const WTMP_FILE = "_PATH_WTMP" +const WTMP_FILENAME = "_PATH_WTMP" +const _PATH_UTMP = "/dev/null/utmp" +const _PATH_WTMP = "/dev/null/wtmp" +const ut_name = 0 +const utmp = 0 + +type Tlastlog = struct { + Fll_time Ttime_t + Fll_line [32]int8 + Fll_host [256]int8 +} + +func Xlogin_tty(tls *TLS, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + Xsetsid(tls) + if Xioctl(tls, fd, int32(TIOCSCTTY), VaList(bp+8, UintptrFromInt32(0))) != 0 { + return -int32(1) + } + Xdup2(tls, fd, 0) + Xdup2(tls, fd, int32(1)) + Xdup2(tls, fd, int32(2)) + if fd > int32(2) { + Xclose(tls, fd) + } + return 0 +} + +const MNTOPT_DEFAULTS = "defaults" +const MNTOPT_NOAUTO = "noauto" +const MNTOPT_NOSUID = "nosuid" +const MNTOPT_RO = "ro" +const MNTOPT_RW = "rw" +const MNTOPT_SUID = "suid" +const MNTTYPE_IGNORE = "ignore" +const MNTTYPE_NFS = "nfs" +const MNTTYPE_SWAP = "swap" +const MOUNTED = "/etc/mtab" +const SENTINEL = 0 + +type Tmntent = struct { + Fmnt_fsname uintptr + Fmnt_dir uintptr + Fmnt_type uintptr + Fmnt_opts uintptr + Fmnt_freq int32 + Fmnt_passno int32 +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +var _internal_buf uintptr +var _internal_bufsize Tsize_t + +func Xsetmntent(tls *TLS, name uintptr, mode uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v mode=%v, (%v:)", tls, name, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfopen(tls, name, mode) +} + +func Xendmntent(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + if f != 0 { + Xfclose(tls, f) + } + return int32(1) +} + +func _unescape_ent(tls *TLS, beg uintptr) (r uintptr) { + var cval uint8 + var dest, src, val, v1, v2 uintptr + var i int32 + _, _, _, _, _, _, _ = cval, dest, i, src, val, v1, v2 + dest = beg + src = beg + for **(**int8)(__ccgo_up(src)) != 0 { + cval = uint8(0) + if int32(**(**int8)(__ccgo_up(src))) != int32('\\') { + v1 = dest + dest = dest + 1 + v2 = src + src = src + 1 + **(**int8)(__ccgo_up(v1)) = **(**int8)(__ccgo_up(v2)) + continue + } + if int32(**(**int8)(__ccgo_up(src + 1))) == int32('\\') { + src = src + 1 + v1 = dest + dest = dest + 1 + v2 = src + src = src + 1 + **(**int8)(__ccgo_up(v1)) = **(**int8)(__ccgo_up(v2)) + continue + } + val = src + uintptr(1) + i = 0 + for { + if !(i < int32(3)) { + break + } + if int32(**(**int8)(__ccgo_up(val))) >= int32('0') && int32(**(**int8)(__ccgo_up(val))) <= int32('7') { + cval = Uint8FromInt32(int32(cval) << Int32FromInt32(3)) + v1 = val + val = val + 1 + cval = Uint8FromInt32(int32(cval) + (int32(**(**int8)(__ccgo_up(v1))) - Int32FromUint8('0'))) + } else { + break + } + goto _5 + _5: + ; + i = i + 1 + } + if cval != 0 { + v1 = dest + dest = dest + 1 + **(**int8)(__ccgo_up(v1)) = Int8FromUint8(cval) + src = val + } else { + v1 = dest + dest = dest + 1 + v2 = src + src = src + 1 + **(**int8)(__ccgo_up(v1)) = **(**int8)(__ccgo_up(v2)) + } + } + **(**int8)(__ccgo_up(dest)) = 0 + return beg +} + +func Xgetmntent_r(tls *TLS, f uintptr, mnt uintptr, linebuf uintptr, buflen int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v mnt=%v linebuf=%v buflen=%v, (%v:)", tls, f, mnt, linebuf, buflen, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(128) + defer tls.Free(128) + var i, len1 Tsize_t + var use_internal int32 + var _ /* n at bp+0 */ [8]int32 + _, _, _ = i, len1, use_internal + use_internal = BoolInt32(linebuf == uintptr(unsafe.Pointer(&_internal_buf))) + (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_freq = 0 + (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_passno = 0 + for cond := true; cond; cond = int32(**(**int8)(__ccgo_up(linebuf + uintptr((**(**[8]int32)(__ccgo_up(bp)))[0])))) == int32('#') || Uint32FromInt32((**(**[8]int32)(__ccgo_up(bp)))[int32(1)]) == len1 { + if use_internal != 0 { + Xgetline(tls, uintptr(unsafe.Pointer(&_internal_buf)), uintptr(unsafe.Pointer(&_internal_bufsize)), f) + linebuf = _internal_buf + } else { + Xfgets(tls, linebuf, buflen, f) + } + if Xfeof(tls, f) != 0 || Xferror(tls, f) != 0 { + return uintptr(0) + } + if !(Xstrchr(tls, linebuf, int32('\n')) != 0) { + Xfscanf(tls, f, __ccgo_ts+728, 0) + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ERANGE) + return uintptr(0) + } + len1 = _strlen(tls, linebuf) + if len1 > uint32(INT_MAX) { + continue + } + i = uint32(0) + for { + if !(i < Uint32FromInt64(32)/Uint32FromInt64(4)) { + break + } + (**(**[8]int32)(__ccgo_up(bp)))[i] = Int32FromUint32(len1) + goto _1 + _1: + ; + i = i + 1 + } + Xsscanf(tls, linebuf, __ccgo_ts+740, VaList(bp+40, bp, bp+uintptr(1)*4, bp+uintptr(2)*4, bp+uintptr(3)*4, bp+uintptr(4)*4, bp+uintptr(5)*4, bp+uintptr(6)*4, bp+uintptr(7)*4, mnt+16, mnt+20)) + } + **(**int8)(__ccgo_up(linebuf + uintptr((**(**[8]int32)(__ccgo_up(bp)))[int32(1)]))) = 0 + **(**int8)(__ccgo_up(linebuf + uintptr((**(**[8]int32)(__ccgo_up(bp)))[int32(3)]))) = 0 + **(**int8)(__ccgo_up(linebuf + uintptr((**(**[8]int32)(__ccgo_up(bp)))[int32(5)]))) = 0 + **(**int8)(__ccgo_up(linebuf + uintptr((**(**[8]int32)(__ccgo_up(bp)))[int32(7)]))) = 0 + (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_fsname = _unescape_ent(tls, linebuf+uintptr((**(**[8]int32)(__ccgo_up(bp)))[0])) + (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_dir = _unescape_ent(tls, linebuf+uintptr((**(**[8]int32)(__ccgo_up(bp)))[int32(2)])) + (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_type = _unescape_ent(tls, linebuf+uintptr((**(**[8]int32)(__ccgo_up(bp)))[int32(4)])) + (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_opts = _unescape_ent(tls, linebuf+uintptr((**(**[8]int32)(__ccgo_up(bp)))[int32(6)])) + return mnt +} + +func Xgetmntent(tls *TLS, f uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetmntent_r(tls, f, uintptr(unsafe.Pointer(&_mnt)), uintptr(unsafe.Pointer(&_internal_buf)), 0) +} + +var _mnt Tmntent + +func Xaddmntent(tls *TLS, f uintptr, mnt uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v mnt=%v, (%v:)", tls, f, mnt, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + if Xfseek(tls, f, 0, int32(2)) != 0 { + return int32(1) + } + return BoolInt32(Xfprintf(tls, f, __ccgo_ts+795, VaList(bp+8, (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_fsname, (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_dir, (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_type, (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_opts, (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_freq, (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_passno)) < 0) +} + +func Xhasmntopt(tls *TLS, mnt uintptr, opt uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v mnt=%v opt=%v, (%v:)", tls, mnt, opt, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrstr(tls, (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_opts, opt) +} + +type Thistory = struct { + Fchain uintptr + Fdev Tdev_t + Fino Tino_t + Flevel int32 + Fbase int32 +} + +func _do_nftw(tls *TLS, path uintptr, __ccgo_fp_fn uintptr, fd_limit int32, flags int32, h uintptr) (r1 int32) { + bp := tls.Alloc(192) + defer tls.Free(192) + var d, de, v10 uintptr + var dfd, err, r, type1, v3 int32 + var j, k, l Tsize_t + var v1 uint32 + var v8 bool + var v2 Tino_t + var _ /* lev at bp+176 */ TFTW + var _ /* new at bp+144 */ Thistory + var _ /* st at bp+0 */ Tstat + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = d, de, dfd, err, j, k, l, r, type1, v1, v10, v2, v3, v8 + l = _strlen(tls, path) + if l != 0 && int32(**(**int8)(__ccgo_up(path + uintptr(l-uint32(1))))) == int32('/') { + v1 = l - uint32(1) + } else { + v1 = l + } + j = v1 + v2 = Uint64FromInt32(0) + (**(**Tstat)(__ccgo_up(bp))).Fst_ino = v2 + (**(**Tstat)(__ccgo_up(bp))).Fst_dev = v2 + if flags&int32(FTW_PHYS) != 0 { + v3 = Xlstat(tls, path, bp) + } else { + v3 = BoolInt32(Xstat(tls, path, bp) < 0) + } + if v3 != 0 { + if !(flags&Int32FromInt32(FTW_PHYS) != 0) && **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(ENOENT) && !(Xlstat(tls, path, bp) != 0) { + type1 = int32(FTW_SLN) + } else { + if **(**int32)(__ccgo_up(X__errno_location(tls))) != int32(EACCES) { + return -int32(1) + } else { + type1 = int32(FTW_NS) + } + } + } else { + if (**(**Tstat)(__ccgo_up(bp))).Fst_mode&uint32(S_IFMT) == uint32(S_IFDIR) { + if flags&int32(FTW_DEPTH) != 0 { + type1 = int32(FTW_DP) + } else { + type1 = int32(FTW_D) + } + } else { + if (**(**Tstat)(__ccgo_up(bp))).Fst_mode&uint32(S_IFMT) == uint32(S_IFLNK) { + if flags&int32(FTW_PHYS) != 0 { + type1 = int32(FTW_SL) + } else { + type1 = int32(FTW_SLN) + } + } else { + type1 = int32(FTW_F) + } + } + } + if flags&int32(FTW_MOUNT) != 0 && h != 0 && type1 != int32(FTW_NS) && (**(**Tstat)(__ccgo_up(bp))).Fst_dev != (*Thistory)(unsafe.Pointer(h)).Fdev { + return 0 + } + (**(**Thistory)(__ccgo_up(bp + 144))).Fchain = h + (**(**Thistory)(__ccgo_up(bp + 144))).Fdev = (**(**Tstat)(__ccgo_up(bp))).Fst_dev + (**(**Thistory)(__ccgo_up(bp + 144))).Fino = (**(**Tstat)(__ccgo_up(bp))).Fst_ino + if h != 0 { + v3 = (*Thistory)(unsafe.Pointer(h)).Flevel + int32(1) + } else { + v3 = 0 + } + (**(**Thistory)(__ccgo_up(bp + 144))).Flevel = v3 + (**(**Thistory)(__ccgo_up(bp + 144))).Fbase = Int32FromUint32(j + uint32(1)) + (**(**TFTW)(__ccgo_up(bp + 176))).Flevel = (**(**Thistory)(__ccgo_up(bp + 144))).Flevel + if h != 0 { + (**(**TFTW)(__ccgo_up(bp + 176))).Fbase = (*Thistory)(unsafe.Pointer(h)).Fbase + } else { + k = j + for { + if !(k != 0 && int32(**(**int8)(__ccgo_up(path + uintptr(k)))) == int32('/')) { + break + } + goto _5 + _5: + ; + k = k - 1 + } + for { + if !(k != 0 && int32(**(**int8)(__ccgo_up(path + uintptr(k-uint32(1))))) != int32('/')) { + break + } + goto _6 + _6: + ; + k = k - 1 + } + (**(**TFTW)(__ccgo_up(bp + 176))).Fbase = Int32FromUint32(k) + } + if type1 == int32(FTW_D) || type1 == int32(FTW_DP) { + dfd = Xopen(tls, path, O_RDONLY, 0) + err = **(**int32)(__ccgo_up(X__errno_location(tls))) + if dfd < 0 && err == int32(EACCES) { + type1 = int32(FTW_DNR) + } + if !(fd_limit != 0) { + Xclose(tls, dfd) + } + } + if v8 = !(flags&Int32FromInt32(FTW_DEPTH) != 0); v8 { + v3 = (*(*func(*TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_fn})))(tls, path, bp, type1, bp+176) + r = v3 + } + if v8 && v3 != 0 { + return r + } + for { + if !(h != 0) { + break + } + if (*Thistory)(unsafe.Pointer(h)).Fdev == (**(**Tstat)(__ccgo_up(bp))).Fst_dev && (*Thistory)(unsafe.Pointer(h)).Fino == (**(**Tstat)(__ccgo_up(bp))).Fst_ino { + return 0 + } + goto _9 + _9: + ; + h = (*Thistory)(unsafe.Pointer(h)).Fchain + } + if (type1 == int32(FTW_D) || type1 == int32(FTW_DP)) && fd_limit != 0 { + if dfd < 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = err + return -int32(1) + } + d = Xfdopendir(tls, dfd) + if d != 0 { + for { + v10 = Xreaddir(tls, d) + de = v10 + if !(v10 != 0) { + break + } + if int32(**(**int8)(__ccgo_up(de + 19))) == int32('.') && (!(**(**int8)(__ccgo_up(de + 19 + 1)) != 0) || int32(**(**int8)(__ccgo_up(de + 19 + 1))) == int32('.') && !(**(**int8)(__ccgo_up(de + 19 + 2)) != 0)) { + continue + } + if _strlen(tls, de+19) >= uint32(PATH_MAX)-l { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENAMETOOLONG) + Xclosedir(tls, d) + return -int32(1) + } + **(**int8)(__ccgo_up(path + uintptr(j))) = int8('/') + Xstrcpy(tls, path+uintptr(j)+uintptr(1), de+19) + v3 = _do_nftw(tls, path, __ccgo_fp_fn, fd_limit-int32(1), flags, bp+144) + r = v3 + if v3 != 0 { + Xclosedir(tls, d) + return r + } + } + Xclosedir(tls, d) + } else { + Xclose(tls, dfd) + return -int32(1) + } + } + **(**int8)(__ccgo_up(path + uintptr(l))) = 0 + if v8 = flags&int32(FTW_DEPTH) != 0; v8 { + v3 = (*(*func(*TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_fn})))(tls, path, bp, type1, bp+176) + r = v3 + } + if v8 && v3 != 0 { + return r + } + return 0 +} + +type t__ccgo_fp__Xnftw_1 = func(*TLS, uintptr, uintptr, int32, uintptr) int32 + +func Xnftw(tls *TLS, path uintptr, __ccgo_fp_fn uintptr, fd_limit int32, flags int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v path=%v __ccgo_fp_fn=%v fd_limit=%v flags=%v, (%v:)", tls, path, __ccgo_fp_fn, fd_limit, flags, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(4112) + defer tls.Free(4112) + var l Tsize_t + var r int32 + var _ /* cs at bp+0 */ int32 + var _ /* pathbuf at bp+4 */ [4097]int8 + _, _ = l, r + if fd_limit <= 0 { + return 0 + } + l = _strlen(tls, path) + if l > uint32(PATH_MAX) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENAMETOOLONG) + return -int32(1) + } + Xmemcpy(tls, bp+4, path, l+uint32(1)) + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp) + r = _do_nftw(tls, bp+4, __ccgo_fp_fn, fd_limit, flags, UintptrFromInt32(0)) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp)), uintptr(0)) + return r +} + +/* Nonstandard, but vastly superior to the standard functions */ + +func Xopenpty(tls *TLS, pm uintptr, ps uintptr, name uintptr, tio uintptr, ws uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v pm=%v ps=%v name=%v tio=%v ws=%v, (%v:)", tls, pm, ps, name, tio, ws, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + var m, s, v1 int32 + var _ /* buf at bp+8 */ [20]int8 + var _ /* cs at bp+4 */ int32 + var _ /* n at bp+0 */ int32 + _, _, _ = m, s, v1 + **(**int32)(__ccgo_up(bp)) = 0 + m = Xopen(tls, __ccgo_ts+814, Int32FromInt32(O_RDWR)|Int32FromInt32(O_NOCTTY), 0) + if m < 0 { + return -int32(1) + } + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp+4) + if Xioctl(tls, m, int32(TIOCSPTLCK), VaList(bp+40, bp)) != 0 || Xioctl(tls, m, Int32FromUint32(TIOCGPTN), VaList(bp+40, bp)) != 0 { + goto fail + } + if !(name != 0) { + name = bp + 8 + } + Xsnprintf(tls, name, uint32(20), __ccgo_ts+824, VaList(bp+40, **(**int32)(__ccgo_up(bp)))) + v1 = Xopen(tls, name, Int32FromInt32(O_RDWR)|Int32FromInt32(O_NOCTTY), 0) + s = v1 + if v1 < 0 { + goto fail + } + if tio != 0 { + Xtcsetattr(tls, s, TCSANOW, tio) + } + if ws != 0 { + Xioctl(tls, s, int32(TIOCSWINSZ), VaList(bp+40, ws)) + } + **(**int32)(__ccgo_up(pm)) = m + **(**int32)(__ccgo_up(ps)) = s + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 4)), uintptr(0)) + return 0 + goto fail +fail: + ; + Xclose(tls, m) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 4)), uintptr(0)) + return -int32(1) +} + +func Xptsname(tls *TLS, fd int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + var err int32 + _ = err + err = X__ptsname_r(tls, fd, uintptr(unsafe.Pointer(&_buf2)), uint32(22)) + if err != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = err + return uintptr(0) + } + return uintptr(unsafe.Pointer(&_buf2)) +} + +var _buf2 [22]int8 + +func Xposix_openpt(tls *TLS, flags int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v flags=%v, (%v:)", tls, flags, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + r = Xopen(tls, __ccgo_ts+814, flags, 0) + if r < 0 && **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(ENOSPC) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EAGAIN) + } + return r +} + +func Xgrantpt(tls *TLS, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + return 0 +} + +func Xunlockpt(tls *TLS, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var _ /* unlock at bp+0 */ int32 + **(**int32)(__ccgo_up(bp)) = 0 + return Xioctl(tls, fd, int32(TIOCSPTLCK), VaList(bp+16, bp)) +} + +func X__ptsname_r(tls *TLS, fd int32, buf uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v len1=%v, (%v:)", tls, fd, buf, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var err, v1 int32 + var _ /* pty at bp+0 */ int32 + _, _ = err, v1 + if !(buf != 0) { + len1 = uint32(0) + } + v1 = int32(X__syscall3(tls, int32(SYS_ioctl), fd, Int32FromUint32(Uint32FromUint32(TIOCGPTN)), int32(bp))) + err = v1 + if v1 != 0 { + return -err + } + if Uint32FromInt32(Xsnprintf(tls, buf, len1, __ccgo_ts+824, VaList(bp+16, **(**int32)(__ccgo_up(bp))))) >= len1 { + return int32(ERANGE) + } + return 0 +} + +func Xptsname_r(tls *TLS, fd int32, buf uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v len1=%v, (%v:)", tls, fd, buf, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__ptsname_r(tls, fd, buf, len1) +} + +func _slash_len(tls *TLS, s uintptr) (r Tsize_t) { + var s0 uintptr + _ = s0 + s0 = s + for int32(**(**int8)(__ccgo_up(s))) == int32('/') { + s = s + 1 + } + return Uint32FromInt32(int32(s) - int32(s0)) +} + +func Xrealpath(tls *TLS, filename uintptr, resolved uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v filename=%v resolved=%v, (%v:)", tls, filename, resolved, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(8208) + defer tls.Free(8208) + var check_dir, up int32 + var cnt, l, l0, nup, p, q, v4 Tsize_t + var k Tssize_t + var z uintptr + var _ /* output at bp+4097 */ [4096]int8 + var _ /* stack at bp+0 */ [4097]int8 + _, _, _, _, _, _, _, _, _, _, _ = check_dir, cnt, k, l, l0, nup, p, q, up, z, v4 + cnt = uint32(0) + nup = uint32(0) + check_dir = 0 + if !(filename != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(0) + } + l = Xstrnlen(tls, filename, uint32(4097)) + if !(l != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOENT) + return uintptr(0) + } + if l >= uint32(PATH_MAX) { + goto toolong + } + p = uint32(4097) - l - uint32(1) + q = uint32(0) + Xmemcpy(tls, bp+uintptr(p), filename, l+uint32(1)) + /* Main loop. Each iteration pops the next part from stack of + * remaining path components and consumes any slashes that follow. + * If not a link, it's moved to output; if a link, contents are + * pushed to the stack. */ + goto restart +restart: + ; +_3: + ; + /* If stack starts with /, the whole component is / or // + * and the output state must be reset. */ + if int32((**(**[4097]int8)(__ccgo_up(bp)))[p]) == int32('/') { + check_dir = 0 + nup = uint32(0) + q = uint32(0) + v4 = q + q = q + 1 + (**(**[4096]int8)(__ccgo_up(bp + 4097)))[v4] = int8('/') + p = p + 1 + /* Initial // is special. */ + if int32((**(**[4097]int8)(__ccgo_up(bp)))[p]) == int32('/') && int32((**(**[4097]int8)(__ccgo_up(bp)))[p+uint32(1)]) != int32('/') { + v4 = q + q = q + 1 + (**(**[4096]int8)(__ccgo_up(bp + 4097)))[v4] = int8('/') + } + goto _2 + } + z = X__strchrnul(tls, bp+uintptr(p), int32('/')) + v4 = Uint32FromInt32(int32(z) - int32(bp+uintptr(p))) + l = v4 + l0 = v4 + if !(l != 0) && !(check_dir != 0) { + goto _1 + } + /* Skip any . component but preserve check_dir status. */ + if l == uint32(1) && int32((**(**[4097]int8)(__ccgo_up(bp)))[p]) == int32('.') { + p = p + l + goto _2 + } + /* Copy next component onto output at least temporarily, to + * call readlink, but wait to advance output position until + * determining it's not a link. */ + if q != 0 && int32((**(**[4096]int8)(__ccgo_up(bp + 4097)))[q-uint32(1)]) != int32('/') { + if !(p != 0) { + goto toolong + } + p = p - 1 + v4 = p + (**(**[4097]int8)(__ccgo_up(bp)))[v4] = int8('/') + l = l + 1 + } + if q+l >= uint32(PATH_MAX) { + goto toolong + } + Xmemcpy(tls, bp+4097+uintptr(q), bp+uintptr(p), l) + (**(**[4096]int8)(__ccgo_up(bp + 4097)))[q+l] = 0 + p = p + l + up = 0 + if l0 == uint32(2) && int32((**(**[4097]int8)(__ccgo_up(bp)))[p-uint32(2)]) == int32('.') && int32((**(**[4097]int8)(__ccgo_up(bp)))[p-uint32(1)]) == int32('.') { + up = int32(1) + /* Any non-.. path components we could cancel start + * after nup repetitions of the 3-byte string "../"; + * if there are none, accumulate .. components to + * later apply to cwd, if needed. */ + if q <= uint32(3)*nup { + nup = nup + 1 + q = q + l + goto _2 + } + /* When previous components are already known to be + * directories, processing .. can skip readlink. */ + if !(check_dir != 0) { + goto skip_readlink + } + } + k = Xreadlink(tls, bp+4097, bp, p) + if Uint32FromInt32(k) == p { + goto toolong + } + if !(k != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOENT) + return uintptr(0) + } + if !(k < 0) { + goto _8 + } + if **(**int32)(__ccgo_up(X__errno_location(tls))) != int32(EINVAL) { + return uintptr(0) + } + goto skip_readlink +skip_readlink: + ; + check_dir = 0 + if up != 0 { + for q != 0 && int32((**(**[4096]int8)(__ccgo_up(bp + 4097)))[q-uint32(1)]) != int32('/') { + q = q - 1 + } + if q > uint32(1) && (q > uint32(2) || int32((**(**[4096]int8)(__ccgo_up(bp + 4097)))[0]) != int32('/')) { + q = q - 1 + } + goto _2 + } + if l0 != 0 { + q = q + l + } + check_dir = int32((**(**[4097]int8)(__ccgo_up(bp)))[p]) + goto _2 +_8: + ; + cnt = cnt + 1 + v4 = cnt + if v4 == uint32(SYMLOOP_MAX) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ELOOP) + return uintptr(0) + } + /* If link contents end in /, strip any slashes already on + * stack to avoid /->// or //->/// or spurious toolong. */ + if int32((**(**[4097]int8)(__ccgo_up(bp)))[k-int32(1)]) == int32('/') { + for int32((**(**[4097]int8)(__ccgo_up(bp)))[p]) == int32('/') { + p = p + 1 + } + } + p = p - Uint32FromInt32(k) + Xmemmove(tls, bp+uintptr(p), bp, Uint32FromInt32(k)) + /* Skip the stack advancement in case we have a new + * absolute base path. */ + goto restart + goto _2 +_2: + ; + p = p + _slash_len(tls, bp+uintptr(p)) + goto _3 + goto _1 +_1: + ; + (**(**[4096]int8)(__ccgo_up(bp + 4097)))[q] = 0 + if int32((**(**[4096]int8)(__ccgo_up(bp + 4097)))[0]) != int32('/') { + if !(Xgetcwd(tls, bp, uint32(4097)) != 0) { + return uintptr(0) + } + l = _strlen(tls, bp) + /* Cancel any initial .. components. */ + p = uint32(0) + for { + v4 = nup + nup = nup - 1 + if !(v4 != 0) { + break + } + for l > uint32(1) && int32((**(**[4097]int8)(__ccgo_up(bp)))[l-uint32(1)]) != int32('/') { + l = l - 1 + } + if l > uint32(1) { + l = l - 1 + } + p = p + uint32(2) + if p < q { + p = p + 1 + } + } + if q-p != 0 && int32((**(**[4097]int8)(__ccgo_up(bp)))[l-uint32(1)]) != int32('/') { + v4 = l + l = l + 1 + (**(**[4097]int8)(__ccgo_up(bp)))[v4] = int8('/') + } + if l+(q-p)+uint32(1) >= uint32(PATH_MAX) { + goto toolong + } + Xmemmove(tls, bp+4097+uintptr(l), bp+4097+uintptr(p), q-p+uint32(1)) + Xmemcpy(tls, bp+4097, bp, l) + q = l + q - p + } + if resolved != 0 { + return Xmemcpy(tls, resolved, bp+4097, q+uint32(1)) + } else { + return Xstrdup(tls, bp+4097) + } + goto toolong +toolong: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENAMETOOLONG) + return uintptr(0) +} + +func Xsetdomainname(tls *TLS, name uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v len1=%v, (%v:)", tls, name, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_setdomainname), int32(name), Int32FromUint32(len1)))) +} + +func Xsetpriority(tls *TLS, which int32, who Tid_t, prio int32) (r int32) { + if __ccgo_strace { + trc("tls=%v which=%v who=%v prio=%v, (%v:)", tls, which, who, prio, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_setpriority), which, Int32FromUint32(who), prio))) +} + +type Tctx = struct { + Flim [2]uint32 + Fres int32 + Ferr int32 +} + +func _do_setrlimit(tls *TLS, p uintptr) { + var c uintptr + _ = c + c = p + if (*Tctx)(unsafe.Pointer(c)).Ferr > 0 { + return + } + (*Tctx)(unsafe.Pointer(c)).Ferr = int32(-X__syscall2(tls, int32(SYS_setrlimit), (*Tctx)(unsafe.Pointer(c)).Fres, int32(c))) +} + +func Xsetrlimit(tls *TLS, resource int32, rlim uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v resource=%v rlim=%v, (%v:)", tls, resource, rlim, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var ret int32 + var v1, v2 uint64 + var _ /* c at bp+16 */ Tctx + var _ /* tmp at bp+0 */ Trlimit + _, _, _ = ret, v1, v2 + if ^Uint64FromUint64(0) != ^Uint64FromUint64(0) { + **(**Trlimit)(__ccgo_up(bp)) = **(**Trlimit)(__ccgo_up(rlim)) + if (**(**Trlimit)(__ccgo_up(bp))).Frlim_cur >= ^Uint64FromUint64(0) { + (**(**Trlimit)(__ccgo_up(bp))).Frlim_cur = ^Uint64FromUint64(0) + } + if (**(**Trlimit)(__ccgo_up(bp))).Frlim_max >= ^Uint64FromUint64(0) { + (**(**Trlimit)(__ccgo_up(bp))).Frlim_max = ^Uint64FromUint64(0) + } + rlim = bp + } + ret = int32(X__syscall4(tls, int32(SYS_prlimit64), int32(Int32FromInt32(0)), resource, int32(rlim), int32(Int32FromInt32(0)))) + if ret != -int32(ENOSYS) { + return X__syscall_ret(tls, Uint32FromInt32(ret)) + } + if (*Trlimit)(unsafe.Pointer(rlim)).Frlim_cur < uint64(-Uint32FromUint32(1)) { + v1 = (*Trlimit)(unsafe.Pointer(rlim)).Frlim_cur + } else { + v1 = uint64(-Uint32FromUint32(1)) + } + if (*Trlimit)(unsafe.Pointer(rlim)).Frlim_max < uint64(-Uint32FromUint32(1)) { + v2 = (*Trlimit)(unsafe.Pointer(rlim)).Frlim_max + } else { + v2 = uint64(-Uint32FromUint32(1)) + } + **(**Tctx)(__ccgo_up(bp + 16)) = Tctx{ + Flim: [2]uint32{ + 0: uint32(v1), + 1: uint32(v2), + }, + Fres: resource, + Ferr: -int32(1), + } + ___synccall(tls, __ccgo_fp(_do_setrlimit), bp+16) + if (**(**Tctx)(__ccgo_up(bp + 16))).Ferr != 0 { + if (**(**Tctx)(__ccgo_up(bp + 16))).Ferr > 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = (**(**Tctx)(__ccgo_up(bp + 16))).Ferr + } + return -int32(1) + } + return 0 +} + +func Xsyscall(tls *TLS, n int32, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v n=%v va=%v, (%v:)", tls, n, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, b, c, d, e, f Tsyscall_arg_t + var ap Tva_list + _, _, _, _, _, _, _ = a, ap, b, c, d, e, f + ap = va + a = VaInt32(&ap) + b = VaInt32(&ap) + c = VaInt32(&ap) + d = VaInt32(&ap) + e = VaInt32(&ap) + f = VaInt32(&ap) + _ = ap + return X__syscall_ret(tls, Uint32FromInt32(X__syscall6(tls, n, a, b, c, d, e, f))) +} + +const AF_ALG = 38 +const AF_APPLETALK = 5 +const AF_ASH = 18 +const AF_ATMPVC = 8 +const AF_ATMSVC = 20 +const AF_AX25 = 3 +const AF_BLUETOOTH = 31 +const AF_BRIDGE = 7 +const AF_CAIF = 37 +const AF_CAN = 29 +const AF_DECnet = 12 +const AF_ECONET = 19 +const AF_FILE = 1 +const AF_IB = 27 +const AF_IEEE802154 = 36 +const AF_INET = 2 +const AF_INET6 = 10 +const AF_IPX = 4 +const AF_IRDA = 23 +const AF_ISDN = 34 +const AF_IUCV = 32 +const AF_KCM = 41 +const AF_KEY = 15 +const AF_LLC = 26 +const AF_LOCAL = 1 +const AF_MAX = 45 +const AF_MPLS = 28 +const AF_NETBEUI = 13 +const AF_NETLINK = 16 +const AF_NETROM = 6 +const AF_NFC = 39 +const AF_PACKET = 17 +const AF_PHONET = 35 +const AF_PPPOX = 24 +const AF_QIPCRTR = 42 +const AF_RDS = 21 +const AF_ROSE = 11 +const AF_ROUTE = 16 +const AF_RXRPC = 33 +const AF_SECURITY = 14 +const AF_SMC = 43 +const AF_SNA = 22 +const AF_TIPC = 30 +const AF_UNIX = 1 +const AF_UNSPEC = 0 +const AF_VSOCK = 40 +const AF_WANPIPE = 25 +const AF_X25 = 9 +const AF_XDP = 44 +const LOG_ALERT = 1 +const LOG_AUTH = 32 +const LOG_AUTHPRIV = 80 +const LOG_CONS = 2 +const LOG_CRIT = 2 +const LOG_CRON = 72 +const LOG_DAEMON = 24 +const LOG_DEBUG = 7 +const LOG_EMERG = 0 +const LOG_ERR = 3 +const LOG_FACMASK = 1016 +const LOG_FTP = 88 +const LOG_INFO = 6 +const LOG_KERN = 0 +const LOG_LOCAL0 = 128 +const LOG_LOCAL1 = 136 +const LOG_LOCAL2 = 144 +const LOG_LOCAL3 = 152 +const LOG_LOCAL4 = 160 +const LOG_LOCAL5 = 168 +const LOG_LOCAL6 = 176 +const LOG_LOCAL7 = 184 +const LOG_LPR = 48 +const LOG_MAIL = 16 +const LOG_NDELAY = 8 +const LOG_NEWS = 56 +const LOG_NFACILITIES = 24 +const LOG_NOTICE = 5 +const LOG_NOWAIT = 16 +const LOG_ODELAY = 4 +const LOG_PERROR = 32 +const LOG_PID = 1 +const LOG_PRIMASK = 7 +const LOG_SYSLOG = 40 +const LOG_USER = 8 +const LOG_UUCP = 64 +const LOG_WARNING = 4 +const MSG_BATCH = 262144 +const MSG_CMSG_CLOEXEC = 1073741824 +const MSG_CONFIRM = 2048 +const MSG_CTRUNC = 8 +const MSG_DONTROUTE = 4 +const MSG_DONTWAIT = 64 +const MSG_EOR = 128 +const MSG_ERRQUEUE = 8192 +const MSG_FASTOPEN = 536870912 +const MSG_FIN = 512 +const MSG_MORE = 32768 +const MSG_NOSIGNAL = 16384 +const MSG_OOB = 1 +const MSG_PEEK = 2 +const MSG_PROXY = 16 +const MSG_RST = 4096 +const MSG_SYN = 1024 +const MSG_TRUNC = 32 +const MSG_WAITALL = 256 +const MSG_WAITFORONE = 65536 +const MSG_ZEROCOPY = 67108864 +const PF_ALG = 38 +const PF_APPLETALK = 5 +const PF_ASH = 18 +const PF_ATMPVC = 8 +const PF_ATMSVC = 20 +const PF_AX25 = 3 +const PF_BLUETOOTH = 31 +const PF_BRIDGE = 7 +const PF_CAIF = 37 +const PF_CAN = 29 +const PF_DECnet = 12 +const PF_ECONET = 19 +const PF_FILE = 1 +const PF_IB = 27 +const PF_IEEE802154 = 36 +const PF_INET = 2 +const PF_INET6 = 10 +const PF_IPX = 4 +const PF_IRDA = 23 +const PF_ISDN = 34 +const PF_IUCV = 32 +const PF_KCM = 41 +const PF_KEY = 15 +const PF_LLC = 26 +const PF_LOCAL = 1 +const PF_MAX = 45 +const PF_MPLS = 28 +const PF_NETBEUI = 13 +const PF_NETLINK = 16 +const PF_NETROM = 6 +const PF_NFC = 39 +const PF_PACKET = 17 +const PF_PHONET = 35 +const PF_PPPOX = 24 +const PF_QIPCRTR = 42 +const PF_RDS = 21 +const PF_ROSE = 11 +const PF_ROUTE = 16 +const PF_RXRPC = 33 +const PF_SECURITY = 14 +const PF_SMC = 43 +const PF_SNA = 22 +const PF_TIPC = 30 +const PF_UNIX = 1 +const PF_UNSPEC = 0 +const PF_VSOCK = 40 +const PF_WANPIPE = 25 +const PF_X25 = 9 +const PF_XDP = 44 +const SCM_CREDENTIALS = 2 +const SCM_RIGHTS = 1 +const SCM_TIMESTAMP = 63 +const SCM_TIMESTAMPING = 65 +const SCM_TIMESTAMPING_OPT_STATS = 54 +const SCM_TIMESTAMPING_PKTINFO = 58 +const SCM_TIMESTAMPNS = 64 +const SCM_TXTIME = 61 +const SCM_WIFI_STATUS = 41 +const SHUT_RD = 0 +const SHUT_RDWR = 2 +const SHUT_WR = 1 +const SOCK_CLOEXEC = 524288 +const SOCK_DCCP = 6 +const SOCK_DGRAM = 2 +const SOCK_NONBLOCK = 2048 +const SOCK_PACKET = 10 +const SOCK_RAW = 3 +const SOCK_RDM = 4 +const SOCK_SEQPACKET = 5 +const SOCK_STREAM = 1 +const SOL_AAL = 265 +const SOL_ALG = 279 +const SOL_ATM = 264 +const SOL_BLUETOOTH = 274 +const SOL_CAIF = 278 +const SOL_DCCP = 269 +const SOL_DECNET = 261 +const SOL_ICMPV6 = 58 +const SOL_IP = 0 +const SOL_IPV6 = 41 +const SOL_IRDA = 266 +const SOL_IUCV = 277 +const SOL_KCM = 281 +const SOL_LLC = 268 +const SOL_NETBEUI = 267 +const SOL_NETLINK = 270 +const SOL_NFC = 280 +const SOL_PACKET = 263 +const SOL_PNPIPE = 275 +const SOL_PPPOL2TP = 273 +const SOL_RAW = 255 +const SOL_RDS = 276 +const SOL_RXRPC = 272 +const SOL_SOCKET = 1 +const SOL_TIPC = 271 +const SOL_TLS = 282 +const SOL_X25 = 262 +const SOL_XDP = 283 +const SOMAXCONN = 128 +const SO_ACCEPTCONN = 30 +const SO_ATTACH_BPF = 50 +const SO_ATTACH_FILTER = 26 +const SO_ATTACH_REUSEPORT_CBPF = 51 +const SO_ATTACH_REUSEPORT_EBPF = 52 +const SO_BINDTODEVICE = 25 +const SO_BINDTOIFINDEX = 62 +const SO_BPF_EXTENSIONS = 48 +const SO_BROADCAST = 6 +const SO_BSDCOMPAT = 14 +const SO_BUSY_POLL = 46 +const SO_BUSY_POLL_BUDGET = 70 +const SO_CNX_ADVICE = 53 +const SO_COOKIE = 57 +const SO_DEBUG = 1 +const SO_DETACH_BPF = 27 +const SO_DETACH_FILTER = 27 +const SO_DETACH_REUSEPORT_BPF = 68 +const SO_DOMAIN = 39 +const SO_DONTROUTE = 5 +const SO_ERROR = 4 +const SO_GET_FILTER = 26 +const SO_INCOMING_CPU = 49 +const SO_INCOMING_NAPI_ID = 56 +const SO_KEEPALIVE = 9 +const SO_LINGER = 13 +const SO_LOCK_FILTER = 44 +const SO_MARK = 36 +const SO_MAX_PACING_RATE = 47 +const SO_MEMINFO = 55 +const SO_NOFCS = 43 +const SO_NO_CHECK = 11 +const SO_OOBINLINE = 10 +const SO_PASSCRED = 16 +const SO_PASSSEC = 34 +const SO_PEEK_OFF = 42 +const SO_PEERCRED = 17 +const SO_PEERGROUPS = 59 +const SO_PEERNAME = 28 +const SO_PEERSEC = 31 +const SO_PREFER_BUSY_POLL = 69 +const SO_PRIORITY = 12 +const SO_PROTOCOL = 38 +const SO_RCVBUF = 8 +const SO_RCVBUFFORCE = 33 +const SO_RCVLOWAT = 18 +const SO_RCVTIMEO = 66 +const SO_REUSEADDR = 2 +const SO_REUSEPORT = 15 +const SO_RXQ_OVFL = 40 +const SO_SECURITY_AUTHENTICATION = 22 +const SO_SECURITY_ENCRYPTION_NETWORK = 24 +const SO_SECURITY_ENCRYPTION_TRANSPORT = 23 +const SO_SELECT_ERR_QUEUE = 45 +const SO_SNDBUF = 7 +const SO_SNDBUFFORCE = 32 +const SO_SNDLOWAT = 19 +const SO_SNDTIMEO = 67 +const SO_TIMESTAMP = 63 +const SO_TIMESTAMPING = 65 +const SO_TIMESTAMPNS = 64 +const SO_TXTIME = 61 +const SO_TYPE = 3 +const SO_WIFI_STATUS = 41 +const SO_ZEROCOPY = 60 + +type Tsocklen_t = uint32 + +type Tsa_family_t = uint16 + +type Tmsghdr = struct { + Fmsg_name uintptr + Fmsg_namelen Tsocklen_t + Fmsg_iov uintptr + Fmsg_iovlen int32 + Fmsg_control uintptr + Fmsg_controllen Tsocklen_t + Fmsg_flags int32 +} + +type Tcmsghdr = struct { + Fcmsg_len Tsocklen_t + Fcmsg_level int32 + Fcmsg_type int32 +} + +type Tlinger = struct { + Fl_onoff int32 + Fl_linger int32 +} + +type Tsockaddr = struct { + Fsa_family Tsa_family_t + Fsa_data [14]int8 +} + +type Tsockaddr_storage = struct { + Fss_family Tsa_family_t + F__ss_padding [122]int8 + F__ss_align uint32 +} + +var _lock2 [1]int32 +var _log_ident [32]int8 +var _log_opt int32 +var _log_facility = Int32FromInt32(1) << Int32FromInt32(3) +var _log_mask = int32(0xff) +var _log_fd = -int32(1) + +func Xsetlogmask(tls *TLS, maskpri int32) (r int32) { + if __ccgo_strace { + trc("tls=%v maskpri=%v, (%v:)", tls, maskpri, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret int32 + _ = ret + ___lock(tls, uintptr(unsafe.Pointer(&_lock2))) + ret = _log_mask + if maskpri != 0 { + _log_mask = maskpri + } + ___unlock(tls, uintptr(unsafe.Pointer(&_lock2))) + return ret +} + +var _log_addr = struct { + Fsun_family int16 + Fsun_path [9]int8 +}{ + Fsun_family: int16(PF_LOCAL), + Fsun_path: [9]int8{'/', 'd', 'e', 'v', '/', 'l', 'o', 'g'}, +} + +func Xcloselog(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* cs at bp+0 */ int32 + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp) + ___lock(tls, uintptr(unsafe.Pointer(&_lock2))) + Xclose(tls, _log_fd) + _log_fd = -int32(1) + ___unlock(tls, uintptr(unsafe.Pointer(&_lock2))) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp)), uintptr(0)) +} + +func ___openlog(tls *TLS) { + _log_fd = Xsocket(tls, int32(PF_LOCAL), Int32FromInt32(SOCK_DGRAM)|Int32FromInt32(SOCK_CLOEXEC), 0) + if _log_fd >= 0 { + Xconnect(tls, _log_fd, uintptr(unsafe.Pointer(&_log_addr)), uint32(12)) + } +} + +func Xopenlog(tls *TLS, ident uintptr, opt int32, facility int32) { + if __ccgo_strace { + trc("tls=%v ident=%v opt=%v facility=%v, (%v:)", tls, ident, opt, facility, origin(2)) + } + bp := tls.Alloc(16) + defer tls.Free(16) + var n Tsize_t + var _ /* cs at bp+0 */ int32 + _ = n + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp) + ___lock(tls, uintptr(unsafe.Pointer(&_lock2))) + if ident != 0 { + n = Xstrnlen(tls, ident, Uint32FromInt64(32)-Uint32FromInt32(1)) + Xmemcpy(tls, uintptr(unsafe.Pointer(&_log_ident)), ident, n) + _log_ident[n] = 0 + } else { + _log_ident[0] = 0 + } + _log_opt = opt + _log_facility = facility + if opt&int32(LOG_NDELAY) != 0 && _log_fd < 0 { + ___openlog(tls) + } + ___unlock(tls, uintptr(unsafe.Pointer(&_lock2))) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp)), uintptr(0)) +} + +func _is_lost_conn(tls *TLS, e int32) (r int32) { + return BoolInt32(e == int32(ECONNREFUSED) || e == int32(ECONNRESET) || e == int32(ENOTCONN) || e == int32(EPIPE)) +} + +func __vsyslog(tls *TLS, priority int32, message uintptr, ap Tva_list) { + bp := tls.Alloc(1168) + defer tls.Free(1168) + var errno_save, fd, l, l2, pid, v1 int32 + var _ /* buf at bp+68 */ [1024]int8 + var _ /* hlen at bp+1092 */ int32 + var _ /* now at bp+16 */ Ttime_t + var _ /* timebuf at bp+0 */ [16]int8 + var _ /* tm at bp+24 */ Ttm + _, _, _, _, _, _ = errno_save, fd, l, l2, pid, v1 + errno_save = **(**int32)(__ccgo_up(X__errno_location(tls))) + if _log_fd < 0 { + ___openlog(tls) + } + if !(priority&Int32FromInt32(LOG_FACMASK) != 0) { + priority = priority | _log_facility + } + **(**Ttime_t)(__ccgo_up(bp + 16)) = Xtime(tls, UintptrFromInt32(0)) + Xgmtime_r(tls, bp+16, bp+24) + Xstrftime_l(tls, bp, uint32(16), __ccgo_ts+836, bp+24, uintptr(unsafe.Pointer(&X__c_locale))) + if _log_opt&int32(LOG_PID) != 0 { + v1 = Xgetpid(tls) + } else { + v1 = 0 + } + pid = v1 + l = Xsnprintf(tls, bp+68, uint32(1024), __ccgo_ts+845, VaList(bp+1104, priority, bp, bp+1092, uintptr(unsafe.Pointer(&_log_ident)), __ccgo_ts+867+BoolUintptr(!(pid != 0)), pid, __ccgo_ts+869+BoolUintptr(!(pid != 0)))) + **(**int32)(__ccgo_up(X__errno_location(tls))) = errno_save + l2 = Xvsnprintf(tls, bp+68+uintptr(l), uint32(1024)-Uint32FromInt32(l), message, ap) + if l2 >= 0 { + if Uint32FromInt32(l2) >= uint32(1024)-Uint32FromInt32(l) { + l = Int32FromUint32(Uint32FromInt64(1024) - Uint32FromInt32(1)) + } else { + l = l + l2 + } + if int32((**(**[1024]int8)(__ccgo_up(bp + 68)))[l-int32(1)]) != int32('\n') { + v1 = l + l = l + 1 + (**(**[1024]int8)(__ccgo_up(bp + 68)))[v1] = int8('\n') + } + if Xsend(tls, _log_fd, bp+68, Uint32FromInt32(l), 0) < 0 && (!(_is_lost_conn(tls, **(**int32)(__ccgo_up(X__errno_location(tls)))) != 0) || Xconnect(tls, _log_fd, uintptr(unsafe.Pointer(&_log_addr)), uint32(12)) < 0 || Xsend(tls, _log_fd, bp+68, Uint32FromInt32(l), 0) < 0) && _log_opt&int32(LOG_CONS) != 0 { + fd = Xopen(tls, __ccgo_ts+564, Int32FromInt32(O_WRONLY)|Int32FromInt32(O_NOCTTY)|Int32FromInt32(O_CLOEXEC), 0) + if fd >= 0 { + Xdprintf(tls, fd, __ccgo_ts+871, VaList(bp+1104, l-**(**int32)(__ccgo_up(bp + 1092)), bp+68+uintptr(**(**int32)(__ccgo_up(bp + 1092))))) + Xclose(tls, fd) + } + } + if _log_opt&int32(LOG_PERROR) != 0 { + Xdprintf(tls, int32(2), __ccgo_ts+871, VaList(bp+1104, l-**(**int32)(__ccgo_up(bp + 1092)), bp+68+uintptr(**(**int32)(__ccgo_up(bp + 1092))))) + } + } +} + +func ___vsyslog(tls *TLS, priority int32, message uintptr, ap Tva_list) { + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* cs at bp+0 */ int32 + if !(_log_mask&(Int32FromInt32(1)<<(priority&Int32FromInt32(7))) != 0) || priority & ^Int32FromInt32(0x3ff) != 0 { + return + } + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp) + ___lock(tls, uintptr(unsafe.Pointer(&_lock2))) + __vsyslog(tls, priority, message, ap) + ___unlock(tls, uintptr(unsafe.Pointer(&_lock2))) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp)), uintptr(0)) +} + +func Xsyslog(tls *TLS, priority int32, message uintptr, va uintptr) { + if __ccgo_strace { + trc("tls=%v priority=%v message=%v va=%v, (%v:)", tls, priority, message, va, origin(2)) + } + var ap Tva_list + _ = ap + ap = va + ___vsyslog(tls, priority, message, ap) + _ = ap +} + +type Tutsname1 = struct { + Fsysname [65]int8 + Fnodename [65]int8 + Frelease [65]int8 + Fversion [65]int8 + Fmachine [65]int8 + F__domainname [65]int8 +} + +func Xuname(tls *TLS, uts uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v uts=%v, (%v:)", tls, uts, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall1(tls, int32(SYS_uname), int32(uts)))) +} + +func X__madvise(tls *TLS, addr uintptr, len1 Tsize_t, advice int32) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v len1=%v advice=%v, (%v:)", tls, addr, len1, advice, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_madvise), int32(addr), Int32FromUint32(len1), advice))) +} + +func Xmadvise(tls *TLS, addr uintptr, len1 Tsize_t, advice int32) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v len1=%v advice=%v, (%v:)", tls, addr, len1, advice, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__madvise(tls, addr, len1, advice) +} + +func Xmincore(tls *TLS, addr uintptr, len1 Tsize_t, vec uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v len1=%v vec=%v, (%v:)", tls, addr, len1, vec, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_mincore), int32(addr), Int32FromUint32(len1), int32(vec)))) +} + +func Xmlock(tls *TLS, addr uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v len1=%v, (%v:)", tls, addr, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_mlock), int32(addr), Int32FromUint32(len1)))) +} + +func Xmlockall(tls *TLS, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v flags=%v, (%v:)", tls, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall1(tls, int32(SYS_mlockall), flags))) +} + +const OFF_MASK = 4095 +const UNIT = 4096 + +func _dummy5(tls *TLS) { +} + +func X__mmap(tls *TLS, start uintptr, len1 Tsize_t, prot int32, flags int32, fd int32, off Toff_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v start=%v len1=%v prot=%v flags=%v fd=%v off=%v, (%v:)", tls, start, len1, prot, flags, fd, off, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret int32 + _ = ret + if Uint64FromInt64(off)&(-Uint64FromUint64(0x2000)<<(Uint32FromInt32(8)*Uint32FromInt64(4)-Uint32FromInt32(1))|(Uint64FromUint64(4096)-Uint64FromInt32(1))) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(-Int32FromInt32(1)) + } + if len1 >= Uint32FromInt32(Int32FromInt32(INT32_MAX)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOMEM) + return uintptr(-Int32FromInt32(1)) + } + if flags&int32(MAP_FIXED) != 0 { + _dummy5(tls) + } + ret = X__syscall6(tls, int32(SYS_mmap2), int32(start), Int32FromUint32(len1), prot, flags, fd, Int32FromUint64(Uint64FromInt64(off)/Uint64FromUint64(4096))) + /* Fixup incorrect EPERM from kernel. */ + if ret == -int32(EPERM) && !(start != 0) && flags&int32(MAP_ANON) != 0 && !(flags&Int32FromInt32(MAP_FIXED) != 0) { + ret = -int32(ENOMEM) + } + return uintptr(X__syscall_ret(tls, Uint32FromInt32(ret))) +} + +func Xmmap(tls *TLS, start uintptr, len1 Tsize_t, prot int32, flags int32, fd int32, off Toff_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v start=%v len1=%v prot=%v flags=%v fd=%v off=%v, (%v:)", tls, start, len1, prot, flags, fd, off, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__mmap(tls, start, len1, prot, flags, fd, off) +} + +func X__mprotect(tls *TLS, addr uintptr, len1 Tsize_t, prot int32) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v len1=%v prot=%v, (%v:)", tls, addr, len1, prot, origin(2)) + defer func() { trc("-> %v", r) }() + } + var end, start Tsize_t + _, _ = end, start + start = uint32(addr) & Uint32FromInt32(-Int32FromInt32(PAGESIZE)) + end = uint32(addr+uintptr(len1)+UintptrFromInt32(PAGESIZE)-UintptrFromInt32(1)) & Uint32FromInt32(-Int32FromInt32(PAGESIZE)) + return X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_mprotect), Int32FromUint32(start), Int32FromUint32(end-start), prot))) +} + +func Xmprotect(tls *TLS, addr uintptr, len1 Tsize_t, prot int32) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v len1=%v prot=%v, (%v:)", tls, addr, len1, prot, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__mprotect(tls, addr, len1, prot) +} + +func _dummy6(tls *TLS) { +} + +func X__mremap(tls *TLS, old_addr uintptr, old_len Tsize_t, new_len Tsize_t, flags int32, va uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v old_addr=%v old_len=%v new_len=%v flags=%v va=%v, (%v:)", tls, old_addr, old_len, new_len, flags, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var new_addr uintptr + _, _ = ap, new_addr + new_addr = uintptr(0) + if new_len >= Uint32FromInt32(Int32FromInt32(INT32_MAX)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOMEM) + return uintptr(-Int32FromInt32(1)) + } + if flags&int32(MREMAP_FIXED) != 0 { + _dummy6(tls) + ap = va + new_addr = VaUintptr(&ap) + _ = ap + } + return uintptr(X__syscall_ret(tls, Uint32FromInt32(X__syscall5(tls, int32(SYS_mremap), int32(old_addr), Int32FromUint32(old_len), Int32FromUint32(new_len), flags, int32(new_addr))))) +} + +func Xmremap(tls *TLS, old_addr uintptr, old_len Tsize_t, new_len Tsize_t, flags int32, va uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v old_addr=%v old_len=%v new_len=%v flags=%v va=%v, (%v:)", tls, old_addr, old_len, new_len, flags, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__mremap(tls, old_addr, old_len, new_len, flags, va) +} + +func Xmsync(tls *TLS, start uintptr, len1 Tsize_t, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v start=%v len1=%v flags=%v, (%v:)", tls, start, len1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(___syscall_cp(tls, int32(SYS_msync), int32(start), Int32FromUint32(len1), flags, 0, 0, 0))) +} + +func Xmunlock(tls *TLS, addr uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v len1=%v, (%v:)", tls, addr, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_munlock), int32(addr), Int32FromUint32(len1)))) +} + +func Xmunlockall(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall0(tls, int32(SYS_munlockall)))) +} + +func _dummy7(tls *TLS) { +} + +func X__munmap(tls *TLS, start uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v start=%v len1=%v, (%v:)", tls, start, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + _dummy7(tls) + return X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_munmap), int32(start), Int32FromUint32(len1)))) +} + +func Xmunmap(tls *TLS, start uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v start=%v len1=%v, (%v:)", tls, start, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__munmap(tls, start, len1) +} + +func Xposix_madvise(tls *TLS, addr uintptr, len1 Tsize_t, advice int32) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v len1=%v advice=%v, (%v:)", tls, addr, len1, advice, origin(2)) + defer func() { trc("-> %v", r) }() + } + if advice == int32(MADV_DONTNEED) { + return 0 + } + return int32(-X__syscall3(tls, int32(SYS_madvise), int32(addr), Int32FromUint32(len1), advice)) +} + +func X__shm_mapname(tls *TLS, name uintptr, buf uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v buf=%v, (%v:)", tls, name, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + var p, v1 uintptr + _, _ = p, v1 + for int32(**(**int8)(__ccgo_up(name))) == int32('/') { + name = name + 1 + } + v1 = X__strchrnul(tls, name, int32('/')) + p = v1 + if **(**int8)(__ccgo_up(v1)) != 0 || p == name || int32(p)-int32(name) <= int32(2) && int32(**(**int8)(__ccgo_up(name))) == int32('.') && int32(**(**int8)(__ccgo_up(p + uintptr(-Int32FromInt32(1))))) == int32('.') { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(0) + } + if int32(p)-int32(name) > int32(NAME_MAX) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENAMETOOLONG) + return uintptr(0) + } + Xmemcpy(tls, buf, __ccgo_ts+876, uint32(9)) + Xmemcpy(tls, buf+uintptr(9), name, Uint32FromInt32(int32(p)-int32(name)+int32(1))) + return buf +} + +func Xshm_open(tls *TLS, name uintptr, flag int32, mode Tmode_t) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v flag=%v mode=%v, (%v:)", tls, name, flag, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(288) + defer tls.Free(288) + var fd int32 + var v1 uintptr + var _ /* buf at bp+4 */ [265]int8 + var _ /* cs at bp+0 */ int32 + _, _ = fd, v1 + v1 = X__shm_mapname(tls, name, bp+4) + name = v1 + if !(v1 != 0) { + return -int32(1) + } + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp) + fd = Xopen(tls, name, flag|int32(O_NOFOLLOW)|int32(O_CLOEXEC)|int32(O_NONBLOCK), VaList(bp+280, mode)) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp)), uintptr(0)) + return fd +} + +func Xshm_unlink(tls *TLS, name uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(272) + defer tls.Free(272) + var v1 uintptr + var _ /* buf at bp+0 */ [265]int8 + _ = v1 + v1 = X__shm_mapname(tls, name, bp) + name = v1 + if !(v1 != 0) { + return -int32(1) + } + return Xunlink(tls, name) +} + +const SA = 194 +const SB = 244 +const bittab = 0 + +func Xbtowc(tls *TLS, c int32) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + var b, v3 int32 + var v1, v2 uint32 + _, _, _, _ = b, v1, v2, v3 + b = Int32FromUint8(Uint8FromInt32(c)) + if Uint32FromInt32(b) < uint32(128) { + v1 = Uint32FromInt32(b) + } else { + if !!(**(**uintptr)(__ccgo_up((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale)) != 0) { + v3 = int32(4) + } else { + v3 = int32(1) + } + if v3 == int32(1) && c != -int32(1) { + v2 = Uint32FromInt32(Int32FromInt32(0xdfff) & int32(int8(c))) + } else { + v2 = uint32(0xffffffff) + } + v1 = v2 + } + return v1 +} + +type Tchar16_t = uint16 + +type Tchar32_t = uint32 + +func Xc16rtomb(tls *TLS, s uintptr, c16 Tchar16_t, ps uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v c16=%v ps=%v, (%v:)", tls, s, c16, ps, origin(2)) + defer func() { trc("-> %v", r) }() + } + var wc Twchar_t + var x uintptr + _, _ = wc, x + if !(ps != 0) { + ps = uintptr(unsafe.Pointer(&_internal_state)) + } + x = ps + if !(s != 0) { + if **(**uint32)(__ccgo_up(x)) != 0 { + goto ilseq + } + return uint32(1) + } + if !(**(**uint32)(__ccgo_up(x)) != 0) && uint32(c16)-uint32(0xd800) < uint32(0x400) { + **(**uint32)(__ccgo_up(x)) = Uint32FromInt32((Int32FromUint16(c16) - int32(0xd7c0)) << int32(10)) + return uint32(0) + } + if **(**uint32)(__ccgo_up(x)) != 0 { + if uint32(c16)-uint32(0xdc00) >= uint32(0x400) { + goto ilseq + } else { + wc = Int32FromUint32(**(**uint32)(__ccgo_up(x)) + uint32(c16) - uint32(0xdc00)) + } + **(**uint32)(__ccgo_up(x)) = uint32(0) + } else { + wc = Int32FromUint16(c16) + } + return Xwcrtomb(tls, s, wc, uintptr(0)) + goto ilseq +ilseq: + ; + **(**uint32)(__ccgo_up(x)) = uint32(0) + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EILSEQ) + return Uint32FromInt32(-Int32FromInt32(1)) +} + +var _internal_state uint32 + +func Xc32rtomb(tls *TLS, s uintptr, c32 Tchar32_t, ps uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v c32=%v ps=%v, (%v:)", tls, s, c32, ps, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwcrtomb(tls, s, Int32FromUint32(c32), ps) +} + +func Xmblen(tls *TLS, s uintptr, n Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v, (%v:)", tls, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xmbtowc(tls, uintptr(0), s, n) +} + +func Xmbrlen(tls *TLS, s uintptr, n Tsize_t, st uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v st=%v, (%v:)", tls, s, n, st, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 uintptr + _ = v1 + if st != 0 { + v1 = st + } else { + v1 = uintptr(unsafe.Pointer(&_internal)) + } + return Xmbrtowc(tls, uintptr(0), s, n, v1) +} + +var _internal uint32 + +func Xmbrtoc16(tls *TLS, pc16 uintptr, s uintptr, n Tsize_t, ps uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v pc16=%v s=%v n=%v ps=%v, (%v:)", tls, pc16, s, n, ps, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var pending uintptr + var ret Tsize_t + var _ /* wc at bp+0 */ Twchar_t + _, _ = pending, ret + if !(ps != 0) { + ps = uintptr(unsafe.Pointer(&_internal_state1)) + } + pending = ps + if !(s != 0) { + return Xmbrtoc16(tls, uintptr(0), __ccgo_ts, uint32(1), ps) + } + /* mbrtowc states for partial UTF-8 characters have the high bit set; + * we use nonzero states without high bit for pending surrogates. */ + if Int32FromUint32(**(**uint32)(__ccgo_up(pending))) > 0 { + if pc16 != 0 { + **(**Tchar16_t)(__ccgo_up(pc16)) = uint16(**(**uint32)(__ccgo_up(pending))) + } + **(**uint32)(__ccgo_up(pending)) = uint32(0) + return Uint32FromInt32(-Int32FromInt32(3)) + } + ret = Xmbrtowc(tls, bp, s, n, ps) + if ret <= uint32(4) { + if **(**Twchar_t)(__ccgo_up(bp)) >= int32(0x10000) { + **(**uint32)(__ccgo_up(pending)) = Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp))&int32(0x3ff) + int32(0xdc00)) + **(**Twchar_t)(__ccgo_up(bp)) = int32(0xd7c0) + **(**Twchar_t)(__ccgo_up(bp))>>Int32FromInt32(10) + } + if pc16 != 0 { + **(**Tchar16_t)(__ccgo_up(pc16)) = Uint16FromInt32(**(**Twchar_t)(__ccgo_up(bp))) + } + } + return ret +} + +var _internal_state1 uint32 + +func Xmbrtoc32(tls *TLS, pc32 uintptr, s uintptr, n Tsize_t, ps uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v pc32=%v s=%v n=%v ps=%v, (%v:)", tls, pc32, s, n, ps, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ret Tsize_t + var _ /* wc at bp+0 */ Twchar_t + _ = ret + if !(ps != 0) { + ps = uintptr(unsafe.Pointer(&_internal_state2)) + } + if !(s != 0) { + return Xmbrtoc32(tls, uintptr(0), __ccgo_ts, uint32(1), ps) + } + ret = Xmbrtowc(tls, bp, s, n, ps) + if ret <= uint32(4) && pc32 != 0 { + **(**Tchar32_t)(__ccgo_up(pc32)) = Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp))) + } + return ret +} + +var _internal_state2 uint32 + +func Xmbrtowc(tls *TLS, wc uintptr, src uintptr, n Tsize_t, st uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v wc=%v src=%v n=%v st=%v, (%v:)", tls, wc, src, n, st, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var N Tsize_t + var c uint32 + var s, v3 uintptr + var v1 Twchar_t + var v2 int32 + var _ /* dummy at bp+0 */ Twchar_t + _, _, _, _, _, _ = N, c, s, v1, v2, v3 + s = src + N = n + if !(st != 0) { + st = uintptr(unsafe.Pointer(&_internal_state3)) + } + c = **(**uint32)(__ccgo_up(st)) + if !(s != 0) { + if c != 0 { + goto ilseq + } + return uint32(0) + } else { + if !(wc != 0) { + wc = bp + } + } + if !(n != 0) { + return Uint32FromInt32(-Int32FromInt32(2)) + } + if !(c != 0) { + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) < int32(0x80) { + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(s))) + **(**Twchar_t)(__ccgo_up(wc)) = v1 + return BoolUint32(!!(v1 != 0)) + } + if !!(**(**uintptr)(__ccgo_up((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale)) != 0) { + v2 = int32(4) + } else { + v2 = int32(1) + } + if v2 == int32(1) { + **(**Twchar_t)(__ccgo_up(wc)) = int32(Int32FromInt32(0xdfff) & int32(Int8FromUint8(**(**uint8)(__ccgo_up(s))))) + return Uint32FromInt32(1) + } + if uint32(**(**uint8)(__ccgo_up(s)))-uint32(0xc2) > Uint32FromUint32(0xf4)-Uint32FromUint32(0xc2) { + goto ilseq + } + v3 = s + s = s + 1 + c = X__fsmu8[uint32(**(**uint8)(__ccgo_up(v3)))-uint32(0xc2)] + n = n - 1 + } + if n != 0 { + if (Int32FromUint8(**(**uint8)(__ccgo_up(s)))>>int32(3)-int32(0x10)|(Int32FromUint8(**(**uint8)(__ccgo_up(s)))>>int32(3)+Int32FromUint32(c)>>Int32FromInt32(26))) & ^Int32FromInt32(7) != 0 { + goto ilseq + } + goto loop + loop: + ; + v3 = s + s = s + 1 + c = c<= uint32(0x40) { + goto ilseq + } + goto loop + } + } + **(**uint32)(__ccgo_up(st)) = c + return Uint32FromInt32(-Int32FromInt32(2)) + goto ilseq +ilseq: + ; + **(**uint32)(__ccgo_up(st)) = uint32(0) + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EILSEQ) + return Uint32FromInt32(-Int32FromInt32(1)) +} + +var _internal_state3 uint32 + +func Xmbsinit(tls *TLS, st uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v st=%v, (%v:)", tls, st, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(!(st != 0) || !(**(**uint32)(__ccgo_up(st)) != 0)) +} + +func Xmbsnrtowcs(tls *TLS, wcs uintptr, src uintptr, n Tsize_t, wn Tsize_t, st uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v wcs=%v src=%v n=%v wn=%v st=%v, (%v:)", tls, wcs, src, n, wn, st, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(1040) + defer tls.Free(1040) + var cnt, l, n2, v1 Tsize_t + var tmp_s, ws uintptr + var v2 bool + var v3 uint32 + var _ /* s at bp+1024 */ uintptr + var _ /* wbuf at bp+0 */ [256]Twchar_t + _, _, _, _, _, _, _, _ = cnt, l, n2, tmp_s, ws, v1, v2, v3 + cnt = uint32(0) + **(**uintptr)(__ccgo_up(bp + 1024)) = **(**uintptr)(__ccgo_up(src)) + if !(wcs != 0) { + ws = bp + wn = Uint32FromInt64(1024) / Uint32FromInt64(4) + } else { + ws = wcs + } + /* making sure output buffer size is at most n/4 will ensure + * that mbsrtowcs never reads more than n input bytes. thus + * we can use mbsrtowcs as long as it's practical.. */ + for { + if v2 = **(**uintptr)(__ccgo_up(bp + 1024)) != 0 && wn != 0; v2 { + v1 = n / Uint32FromInt32(4) + n2 = v1 + } + if !(v2 && (v1 >= wn || n2 > uint32(32))) { + break + } + if n2 >= wn { + n2 = wn + } + tmp_s = **(**uintptr)(__ccgo_up(bp + 1024)) + l = Xmbsrtowcs(tls, ws, bp+1024, n2, st) + if !(l+Uint32FromInt32(1) != 0) { + cnt = l + wn = uint32(0) + break + } + if ws != bp { + ws = ws + uintptr(l)*4 + wn = wn - l + } + if **(**uintptr)(__ccgo_up(bp + 1024)) != 0 { + v3 = n - Uint32FromInt32(int32(**(**uintptr)(__ccgo_up(bp + 1024)))-int32(tmp_s)) + } else { + v3 = uint32(0) + } + n = v3 + cnt = cnt + l + } + if **(**uintptr)(__ccgo_up(bp + 1024)) != 0 { + for wn != 0 && n != 0 { + l = Xmbrtowc(tls, ws, **(**uintptr)(__ccgo_up(bp + 1024)), n, st) + if l+uint32(2) <= uint32(2) { + if !(l+Uint32FromInt32(1) != 0) { + cnt = l + break + } + if !(l != 0) { + **(**uintptr)(__ccgo_up(bp + 1024)) = uintptr(0) + break + } + /* have to roll back partial character */ + **(**uint32)(__ccgo_up(st)) = uint32(0) + break + } + **(**uintptr)(__ccgo_up(bp + 1024)) = **(**uintptr)(__ccgo_up(bp + 1024)) + uintptr(l) + n = n - l + /* safe - this loop runs fewer than sizeof(wbuf)/8 times */ + ws += 4 + wn = wn - 1 + cnt = cnt + 1 + } + } + if wcs != 0 { + **(**uintptr)(__ccgo_up(src)) = **(**uintptr)(__ccgo_up(bp + 1024)) + } + return cnt +} + +func Xmbsrtowcs(tls *TLS, ws uintptr, src uintptr, wn Tsize_t, st uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v ws=%v src=%v wn=%v st=%v, (%v:)", tls, ws, src, wn, st, origin(2)) + defer func() { trc("-> %v", r) }() + } + var c, v1 uint32 + var s, v5, v6 uintptr + var wn0 Tsize_t + var v2 bool + var v3 int32 + _, _, _, _, _, _, _, _ = c, s, wn0, v1, v2, v3, v5, v6 + s = **(**uintptr)(__ccgo_up(src)) + wn0 = wn + c = uint32(0) + if v2 = st != 0; v2 { + v1 = **(**uint32)(__ccgo_up(st)) + c = v1 + } + if v2 && v1 != 0 { + if ws != 0 { + **(**uint32)(__ccgo_up(st)) = uint32(0) + goto resume + } else { + goto resume0 + } + } + if !!(**(**uintptr)(__ccgo_up((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale)) != 0) { + v3 = int32(4) + } else { + v3 = int32(1) + } + if v3 == int32(1) { + if !(ws != 0) { + return _strlen(tls, s) + } + for { + if !(wn != 0) { + **(**uintptr)(__ccgo_up(src)) = s + return wn0 + } + if !(**(**uint8)(__ccgo_up(s)) != 0) { + break + } + v5 = s + s = s + 1 + c = uint32(**(**uint8)(__ccgo_up(v5))) + v5 = ws + ws += 4 + **(**Twchar_t)(__ccgo_up(v5)) = int32(Int32FromInt32(0xdfff) & int32(Int8FromUint32(c))) + wn = wn - 1 + goto _4 + _4: + } + **(**Twchar_t)(__ccgo_up(ws)) = 0 + **(**uintptr)(__ccgo_up(src)) = uintptr(0) + return wn0 - wn + } + if !!(ws != 0) { + goto _7 + } +_11: + ; + if uint32(**(**uint8)(__ccgo_up(s)))-uint32(1) < uint32(0x7f) && uint32(s)%uint32(4) == uint32(0) { + for !((**(**uint32)(__ccgo_up(s))|(**(**uint32)(__ccgo_up(s))-Uint32FromInt32(0x01010101)))&Uint32FromUint32(0x80808080) != 0) { + s = s + uintptr(4) + wn = wn - uint32(4) + } + } + if uint32(**(**uint8)(__ccgo_up(s)))-uint32(1) < uint32(0x7f) { + s = s + 1 + wn = wn - 1 + goto _10 + } + if uint32(**(**uint8)(__ccgo_up(s)))-uint32(0xc2) > Uint32FromUint32(0xf4)-Uint32FromUint32(0xc2) { + goto _9 + } + v5 = s + s = s + 1 + c = X__fsmu8[uint32(**(**uint8)(__ccgo_up(v5)))-uint32(0xc2)] + goto resume0 +resume0: + ; + if (Int32FromUint8(**(**uint8)(__ccgo_up(s)))>>int32(3)-int32(0x10)|(Int32FromUint8(**(**uint8)(__ccgo_up(s)))>>int32(3)+Int32FromUint32(c)>>Int32FromInt32(26))) & ^Int32FromInt32(7) != 0 { + s = s - 1 + goto _9 + } + s = s + 1 + if c&(Uint32FromUint32(1)<= uint32(0x40) { + s = s - uintptr(2) + goto _9 + } + s = s + 1 + if c&(Uint32FromUint32(1)<= uint32(0x40) { + s = s - uintptr(3) + goto _9 + } + s = s + 1 + } + } + wn = wn - 1 + c = uint32(0) + goto _10 +_10: + ; + goto _11 + goto _9 +_9: + ; + goto _8 +_7: + ; +_15: + ; + if !(wn != 0) { + **(**uintptr)(__ccgo_up(src)) = s + return wn0 + } + if uint32(**(**uint8)(__ccgo_up(s)))-uint32(1) < uint32(0x7f) && uint32(s)%uint32(4) == uint32(0) { + for wn >= uint32(5) && !((**(**uint32)(__ccgo_up(s))|(**(**uint32)(__ccgo_up(s))-Uint32FromInt32(0x01010101)))&Uint32FromUint32(0x80808080) != 0) { + v5 = ws + ws += 4 + v6 = s + s = s + 1 + **(**Twchar_t)(__ccgo_up(v5)) = Int32FromUint8(**(**uint8)(__ccgo_up(v6))) + v5 = ws + ws += 4 + v6 = s + s = s + 1 + **(**Twchar_t)(__ccgo_up(v5)) = Int32FromUint8(**(**uint8)(__ccgo_up(v6))) + v5 = ws + ws += 4 + v6 = s + s = s + 1 + **(**Twchar_t)(__ccgo_up(v5)) = Int32FromUint8(**(**uint8)(__ccgo_up(v6))) + v5 = ws + ws += 4 + v6 = s + s = s + 1 + **(**Twchar_t)(__ccgo_up(v5)) = Int32FromUint8(**(**uint8)(__ccgo_up(v6))) + wn = wn - uint32(4) + } + } + if uint32(**(**uint8)(__ccgo_up(s)))-uint32(1) < uint32(0x7f) { + v5 = ws + ws += 4 + v6 = s + s = s + 1 + **(**Twchar_t)(__ccgo_up(v5)) = Int32FromUint8(**(**uint8)(__ccgo_up(v6))) + wn = wn - 1 + goto _14 + } + if uint32(**(**uint8)(__ccgo_up(s)))-uint32(0xc2) > Uint32FromUint32(0xf4)-Uint32FromUint32(0xc2) { + goto _13 + } + v5 = s + s = s + 1 + c = X__fsmu8[uint32(**(**uint8)(__ccgo_up(v5)))-uint32(0xc2)] + goto resume +resume: + ; + if (Int32FromUint8(**(**uint8)(__ccgo_up(s)))>>int32(3)-int32(0x10)|(Int32FromUint8(**(**uint8)(__ccgo_up(s)))>>int32(3)+Int32FromUint32(c)>>Int32FromInt32(26))) & ^Int32FromInt32(7) != 0 { + s = s - 1 + goto _13 + } + v5 = s + s = s + 1 + c = c<= uint32(0x40) { + s = s - uintptr(2) + goto _13 + } + v5 = s + s = s + 1 + c = c<= uint32(0x40) { + s = s - uintptr(3) + goto _13 + } + v5 = s + s = s + 1 + c = c< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + *(*uintptr)(unsafe.Pointer(bp)) = _s + return Xmbsrtowcs(tls, ws, bp, wn, uintptr(0)) +} + +func Xmbtowc(tls *TLS, wc uintptr, src uintptr, n Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v src=%v n=%v, (%v:)", tls, wc, src, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var c uint32 + var s, v3 uintptr + var v1 Twchar_t + var v2 int32 + var _ /* dummy at bp+0 */ Twchar_t + _, _, _, _, _ = c, s, v1, v2, v3 + s = src + if !(s != 0) { + return 0 + } + if !(n != 0) { + goto ilseq + } + if !(wc != 0) { + wc = bp + } + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) < int32(0x80) { + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(s))) + **(**Twchar_t)(__ccgo_up(wc)) = v1 + return BoolInt32(!!(v1 != 0)) + } + if !!(**(**uintptr)(__ccgo_up((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale)) != 0) { + v2 = int32(4) + } else { + v2 = int32(1) + } + if v2 == int32(1) { + **(**Twchar_t)(__ccgo_up(wc)) = int32(Int32FromInt32(0xdfff) & int32(Int8FromUint8(**(**uint8)(__ccgo_up(s))))) + return Int32FromInt32(1) + } + if uint32(**(**uint8)(__ccgo_up(s)))-uint32(0xc2) > Uint32FromUint32(0xf4)-Uint32FromUint32(0xc2) { + goto ilseq + } + v3 = s + s = s + 1 + c = X__fsmu8[uint32(**(**uint8)(__ccgo_up(v3)))-uint32(0xc2)] + /* Avoid excessive checks against n: If shifting the state n-1 + * times does not clear the high bit, then the value of n is + * insufficient to read a character */ + if n < uint32(4) && c<<(uint32(6)*n-uint32(6))&(Uint32FromUint32(1)<>int32(3)-int32(0x10)|(Int32FromUint8(**(**uint8)(__ccgo_up(s)))>>int32(3)+Int32FromUint32(c)>>Int32FromInt32(26))) & ^Int32FromInt32(7) != 0 { + goto ilseq + } + v3 = s + s = s + 1 + c = c<= uint32(0x40) { + goto ilseq + } + v3 = s + s = s + 1 + c = c<= uint32(0x40) { + goto ilseq + } + v3 = s + s = s + 1 + **(**Twchar_t)(__ccgo_up(wc)) = Int32FromUint32(c< %v", r) }() + } + var v1 int32 + var v2 uintptr + _, _ = v1, v2 + if !(s != 0) { + return uint32(1) + } + if Uint32FromInt32(wc) < uint32(0x80) { + **(**int8)(__ccgo_up(s)) = int8(wc) + return uint32(1) + } else { + if !!(**(**uintptr)(__ccgo_up((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale)) != 0) { + v1 = int32(4) + } else { + v1 = int32(1) + } + if v1 == int32(1) { + if !(Uint32FromInt32(wc)-Uint32FromInt32(0xdf80) < Uint32FromInt32(0x80)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EILSEQ) + return Uint32FromInt32(-Int32FromInt32(1)) + } + **(**int8)(__ccgo_up(s)) = int8(wc) + return uint32(1) + } else { + if Uint32FromInt32(wc) < uint32(0x800) { + v2 = s + s = s + 1 + **(**int8)(__ccgo_up(v2)) = int8(int32(0xc0) | wc>>Int32FromInt32(6)) + **(**int8)(__ccgo_up(s)) = int8(int32(0x80) | wc&int32(0x3f)) + return uint32(2) + } else { + if Uint32FromInt32(wc) < uint32(0xd800) || Uint32FromInt32(wc)-uint32(0xe000) < uint32(0x2000) { + v2 = s + s = s + 1 + **(**int8)(__ccgo_up(v2)) = int8(int32(0xe0) | wc>>Int32FromInt32(12)) + v2 = s + s = s + 1 + **(**int8)(__ccgo_up(v2)) = int8(int32(0x80) | wc>>Int32FromInt32(6)&int32(0x3f)) + **(**int8)(__ccgo_up(s)) = int8(int32(0x80) | wc&int32(0x3f)) + return uint32(3) + } else { + if Uint32FromInt32(wc)-uint32(0x10000) < uint32(0x100000) { + v2 = s + s = s + 1 + **(**int8)(__ccgo_up(v2)) = int8(int32(0xf0) | wc>>Int32FromInt32(18)) + v2 = s + s = s + 1 + **(**int8)(__ccgo_up(v2)) = int8(int32(0x80) | wc>>Int32FromInt32(12)&int32(0x3f)) + v2 = s + s = s + 1 + **(**int8)(__ccgo_up(v2)) = int8(int32(0x80) | wc>>Int32FromInt32(6)&int32(0x3f)) + **(**int8)(__ccgo_up(s)) = int8(int32(0x80) | wc&int32(0x3f)) + return uint32(4) + } + } + } + } + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EILSEQ) + return Uint32FromInt32(-Int32FromInt32(1)) +} + +func Xwcsnrtombs(tls *TLS, dst uintptr, wcs uintptr, wn Tsize_t, n Tsize_t, st uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v dst=%v wcs=%v wn=%v n=%v st=%v, (%v:)", tls, dst, wcs, wn, n, st, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var cnt, l Tsize_t + var ws, v1 uintptr + var _ /* tmp at bp+0 */ [4]int8 + _, _, _, _ = cnt, l, ws, v1 + ws = **(**uintptr)(__ccgo_up(wcs)) + cnt = uint32(0) + if !(dst != 0) { + n = uint32(0) + } + for ws != 0 && wn != 0 { + if n < uint32(MB_LEN_MAX) { + v1 = bp + } else { + v1 = dst + } + l = Xwcrtomb(tls, v1, **(**Twchar_t)(__ccgo_up(ws)), uintptr(0)) + if l == Uint32FromInt32(-Int32FromInt32(1)) { + cnt = Uint32FromInt32(-Int32FromInt32(1)) + break + } + if dst != 0 { + if n < uint32(MB_LEN_MAX) { + if l > n { + break + } + Xmemcpy(tls, dst, bp, l) + } + dst = dst + uintptr(l) + n = n - l + } + if !(**(**Twchar_t)(__ccgo_up(ws)) != 0) { + ws = uintptr(0) + break + } + ws += 4 + wn = wn - 1 + cnt = cnt + l + } + if dst != 0 { + **(**uintptr)(__ccgo_up(wcs)) = ws + } + return cnt +} + +func Xwcsrtombs(tls *TLS, s uintptr, ws uintptr, n Tsize_t, st uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v ws=%v n=%v st=%v, (%v:)", tls, s, ws, n, st, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var N, l Tsize_t + var ws2, v2 uintptr + var _ /* buf at bp+0 */ [4]int8 + _, _, _, _ = N, l, ws2, v2 + N = n + if !(s != 0) { + n = uint32(0) + ws2 = **(**uintptr)(__ccgo_up(ws)) + for { + if !(**(**Twchar_t)(__ccgo_up(ws2)) != 0) { + break + } + if Uint32FromInt32(**(**Twchar_t)(__ccgo_up(ws2))) >= uint32(0x80) { + l = Xwcrtomb(tls, bp, **(**Twchar_t)(__ccgo_up(ws2)), uintptr(0)) + if !(l+Uint32FromInt32(1) != 0) { + return Uint32FromInt32(-Int32FromInt32(1)) + } + n = n + l + } else { + n = n + 1 + } + goto _1 + _1: + ; + ws2 += 4 + } + return n + } + for n >= uint32(4) { + if Uint32FromInt32(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(ws)))))-uint32(1) >= uint32(0x7f) { + if !(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(ws)))) != 0) { + **(**int8)(__ccgo_up(s)) = 0 + **(**uintptr)(__ccgo_up(ws)) = uintptr(0) + return N - n + } + l = Xwcrtomb(tls, s, **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(ws)))), uintptr(0)) + if !(l+Uint32FromInt32(1) != 0) { + return Uint32FromInt32(-Int32FromInt32(1)) + } + s = s + uintptr(l) + n = n - l + } else { + v2 = s + s = s + 1 + **(**int8)(__ccgo_up(v2)) = int8(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(ws))))) + n = n - 1 + } + **(**uintptr)(__ccgo_up(ws)) += 4 + } + for n != 0 { + if Uint32FromInt32(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(ws)))))-uint32(1) >= uint32(0x7f) { + if !(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(ws)))) != 0) { + **(**int8)(__ccgo_up(s)) = 0 + **(**uintptr)(__ccgo_up(ws)) = uintptr(0) + return N - n + } + l = Xwcrtomb(tls, bp, **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(ws)))), uintptr(0)) + if !(l+Uint32FromInt32(1) != 0) { + return Uint32FromInt32(-Int32FromInt32(1)) + } + if l > n { + return N - n + } + Xwcrtomb(tls, s, **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(ws)))), uintptr(0)) + s = s + uintptr(l) + n = n - l + } else { + v2 = s + s = s + 1 + **(**int8)(__ccgo_up(v2)) = int8(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(ws))))) + n = n - 1 + } + **(**uintptr)(__ccgo_up(ws)) += 4 + } + return N +} + +func Xwcstombs(tls *TLS, s uintptr, ws uintptr, n Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v ws=%v n=%v, (%v:)", tls, s, ws, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + *(*uintptr)(unsafe.Pointer(bp)) = ws + return Xwcsrtombs(tls, s, bp, n, uintptr(0)) +} + +func Xwctob(tls *TLS, c Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + _ = v1 + if c < uint32(128) { + return Int32FromUint32(c) + } + if !!(**(**uintptr)(__ccgo_up((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale)) != 0) { + v1 = int32(4) + } else { + v1 = int32(1) + } + if v1 == int32(1) && c-uint32(0xdf80) < uint32(0x80) { + return Int32FromUint8(uint8(c)) + } + return -int32(1) +} + +func Xwctomb(tls *TLS, s uintptr, wc Twchar_t) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v wc=%v, (%v:)", tls, s, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + if !(s != 0) { + return 0 + } + return Int32FromUint32(Xwcrtomb(tls, s, wc, uintptr(0))) +} + +func Xaccept(tls *TLS, fd int32, addr uintptr, len1 uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v addr=%v len1=%v, (%v:)", tls, fd, addr, len1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + var r, v1, v10, v2, v3 int32 + var v4, v5, v6, v7, v8, v9 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _, _, _ = r, v1, v10, v2, v3, v4, v5, v6, v7, v8, v9 + v1 = int32(SYS_accept4) + v2 = int32(__SC_accept) + v3 = int32(1) + v4 = fd + v5 = int32(addr) + v6 = int32(len1) + v7 = int32(Int32FromInt32(0)) + v8 = int32(Int32FromInt32(0)) + v9 = int32(Int32FromInt32(0)) + if v3 != 0 { + r = ___syscall_cp(tls, v1, v4, v5, v6, v7, v8, v9) + } else { + r = X__syscall6(tls, v1, v4, v5, v6, v7, v8, v9) + } + if r != int32(-Int32FromInt32(ENOSYS)) { + v10 = r + goto _11 + } + if v3 != 0 { + *(*[6]int32)(unsafe.Pointer(bp)) = [6]int32{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = ___syscall_cp(tls, int32(SYS_socketcall), v2, int32(bp), 0, 0, 0, 0) + } else { + *(*[6]int32)(unsafe.Pointer(bp + 24)) = [6]int32{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = X__syscall2(tls, int32(SYS_socketcall), v2, int32(bp+24)) + } + v10 = r + goto _11 +_11: + return X__syscall_ret(tls, Uint32FromInt32(v10)) +} + +type Tucred = struct { + Fpid Tpid_t + Fuid Tuid_t + Fgid Tgid_t +} + +type Tmmsghdr = struct { + Fmsg_hdr Tmsghdr + Fmsg_len uint32 +} + +func Xaccept4(tls *TLS, fd int32, addr uintptr, len1 uintptr, flg int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v addr=%v len1=%v flg=%v, (%v:)", tls, fd, addr, len1, flg, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + var r, ret, v1, v10, v2, v3 int32 + var v4, v5, v6, v7, v8, v9 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _, _, _, _ = r, ret, v1, v10, v2, v3, v4, v5, v6, v7, v8, v9 + if !(flg != 0) { + return Xaccept(tls, fd, addr, len1) + } + v1 = int32(SYS_accept4) + v2 = int32(__SC_accept4) + v3 = int32(1) + v4 = fd + v5 = int32(addr) + v6 = int32(len1) + v7 = flg + v8 = int32(Int32FromInt32(0)) + v9 = int32(Int32FromInt32(0)) + if v3 != 0 { + r = ___syscall_cp(tls, v1, v4, v5, v6, v7, v8, v9) + } else { + r = X__syscall6(tls, v1, v4, v5, v6, v7, v8, v9) + } + if r != int32(-Int32FromInt32(ENOSYS)) { + v10 = r + goto _11 + } + if v3 != 0 { + *(*[6]int32)(unsafe.Pointer(bp)) = [6]int32{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = ___syscall_cp(tls, int32(SYS_socketcall), v2, int32(bp), 0, 0, 0, 0) + } else { + *(*[6]int32)(unsafe.Pointer(bp + 24)) = [6]int32{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = X__syscall2(tls, int32(SYS_socketcall), v2, int32(bp+24)) + } + v10 = r + goto _11 +_11: + ret = X__syscall_ret(tls, Uint32FromInt32(v10)) + if ret >= 0 || **(**int32)(__ccgo_up(X__errno_location(tls))) != int32(ENOSYS) && **(**int32)(__ccgo_up(X__errno_location(tls))) != int32(EINVAL) { + return ret + } + if flg & ^(Int32FromInt32(SOCK_CLOEXEC)|Int32FromInt32(SOCK_NONBLOCK)) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + ret = Xaccept(tls, fd, addr, len1) + if ret < 0 { + return ret + } + if flg&int32(SOCK_CLOEXEC) != 0 { + X__syscall3(tls, int32(SYS_fcntl64), ret, int32(Int32FromInt32(F_SETFD)), int32(Int32FromInt32(FD_CLOEXEC))) + } + if flg&int32(SOCK_NONBLOCK) != 0 { + X__syscall3(tls, int32(SYS_fcntl64), ret, int32(Int32FromInt32(F_SETFL)), int32(Int32FromInt32(O_NONBLOCK))) + } + return ret +} + +func Xbind(tls *TLS, fd int32, addr uintptr, len1 Tsocklen_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v addr=%v len1=%v, (%v:)", tls, fd, addr, len1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + var r, v1, v10, v2, v3 int32 + var v4, v5, v6, v7, v8, v9 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _, _, _ = r, v1, v10, v2, v3, v4, v5, v6, v7, v8, v9 + v1 = int32(SYS_bind) + v2 = int32(__SC_bind) + v3 = 0 + v4 = fd + v5 = int32(addr) + v6 = Int32FromUint32(len1) + v7 = int32(Int32FromInt32(0)) + v8 = int32(Int32FromInt32(0)) + v9 = int32(Int32FromInt32(0)) + if v3 != 0 { + r = ___syscall_cp(tls, v1, v4, v5, v6, v7, v8, v9) + } else { + r = X__syscall6(tls, v1, v4, v5, v6, v7, v8, v9) + } + if r != int32(-Int32FromInt32(ENOSYS)) { + v10 = r + goto _11 + } + if v3 != 0 { + *(*[6]int32)(unsafe.Pointer(bp)) = [6]int32{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = ___syscall_cp(tls, int32(SYS_socketcall), v2, int32(bp), 0, 0, 0, 0) + } else { + *(*[6]int32)(unsafe.Pointer(bp + 24)) = [6]int32{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = X__syscall2(tls, int32(SYS_socketcall), v2, int32(bp+24)) + } + v10 = r + goto _11 +_11: + return X__syscall_ret(tls, Uint32FromInt32(v10)) +} + +func Xconnect(tls *TLS, fd int32, addr uintptr, len1 Tsocklen_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v addr=%v len1=%v, (%v:)", tls, fd, addr, len1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + var r, v1, v10, v2, v3 int32 + var v4, v5, v6, v7, v8, v9 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _, _, _ = r, v1, v10, v2, v3, v4, v5, v6, v7, v8, v9 + v1 = int32(SYS_connect) + v2 = int32(__SC_connect) + v3 = int32(1) + v4 = fd + v5 = int32(addr) + v6 = Int32FromUint32(len1) + v7 = int32(Int32FromInt32(0)) + v8 = int32(Int32FromInt32(0)) + v9 = int32(Int32FromInt32(0)) + if v3 != 0 { + r = ___syscall_cp(tls, v1, v4, v5, v6, v7, v8, v9) + } else { + r = X__syscall6(tls, v1, v4, v5, v6, v7, v8, v9) + } + if r != int32(-Int32FromInt32(ENOSYS)) { + v10 = r + goto _11 + } + if v3 != 0 { + *(*[6]int32)(unsafe.Pointer(bp)) = [6]int32{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = ___syscall_cp(tls, int32(SYS_socketcall), v2, int32(bp), 0, 0, 0, 0) + } else { + *(*[6]int32)(unsafe.Pointer(bp + 24)) = [6]int32{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = X__syscall2(tls, int32(SYS_socketcall), v2, int32(bp+24)) + } + v10 = r + goto _11 +_11: + return X__syscall_ret(tls, Uint32FromInt32(v10)) +} + +const ADD = 0 +const C_ANY = 0 +const C_CHAOS = 0 +const C_HS = 0 +const C_IN = 0 +const C_NONE = 0 +const DELETE = 0 +const FORMERR = 0 +const GETLONG = 0 +const GETSHORT = 0 +const HFIXEDSZ = 12 +const IN6ADDRSZ = 16 +const INADDRSZ = 4 +const INDIR_MASK = 192 +const INET6_ADDRSTRLEN = 46 +const INET_ADDRSTRLEN = 16 +const INT16SZ = 2 +const INT32SZ = 4 +const INT8SZ = 1 +const IN_CLASSA_HOST = 16777215 +const IN_CLASSA_MAX = 128 +const IN_CLASSA_NET = 4278190080 +const IN_CLASSA_NSHIFT = 24 +const IN_CLASSB_HOST = 65535 +const IN_CLASSB_MAX = 65536 +const IN_CLASSB_NET = 4294901760 +const IN_CLASSB_NSHIFT = 16 +const IN_CLASSC_HOST = 255 +const IN_CLASSC_NET = 4294967040 +const IN_CLASSC_NSHIFT = 8 +const IN_LOOPBACKNET = 127 +const IPPORT_RESERVED = 1024 +const IPPROTO_AH = 51 +const IPPROTO_BEETPH = 94 +const IPPROTO_COMP = 108 +const IPPROTO_DCCP = 33 +const IPPROTO_DSTOPTS = 60 +const IPPROTO_EGP = 8 +const IPPROTO_ENCAP = 98 +const IPPROTO_ESP = 50 +const IPPROTO_ETHERNET = 143 +const IPPROTO_FRAGMENT = 44 +const IPPROTO_GRE = 47 +const IPPROTO_HOPOPTS = 0 +const IPPROTO_ICMP = 1 +const IPPROTO_ICMPV6 = 58 +const IPPROTO_IDP = 22 +const IPPROTO_IGMP = 2 +const IPPROTO_IP = 0 +const IPPROTO_IPIP = 4 +const IPPROTO_IPV6 = 41 +const IPPROTO_MAX = 263 +const IPPROTO_MH = 135 +const IPPROTO_MPLS = 137 +const IPPROTO_MPTCP = 262 +const IPPROTO_MTP = 92 +const IPPROTO_NONE = 59 +const IPPROTO_PIM = 103 +const IPPROTO_PUP = 12 +const IPPROTO_RAW = 255 +const IPPROTO_ROUTING = 43 +const IPPROTO_RSVP = 46 +const IPPROTO_SCTP = 132 +const IPPROTO_TCP = 6 +const IPPROTO_TP = 29 +const IPPROTO_UDP = 17 +const IPPROTO_UDPLITE = 136 +const IPV6_2292DSTOPTS = 4 +const IPV6_2292HOPLIMIT = 8 +const IPV6_2292HOPOPTS = 3 +const IPV6_2292PKTINFO = 2 +const IPV6_2292PKTOPTIONS = 6 +const IPV6_2292RTHDR = 5 +const IPV6_ADDRFORM = 1 +const IPV6_ADDR_PREFERENCES = 72 +const IPV6_ADD_MEMBERSHIP = 20 +const IPV6_AUTHHDR = 10 +const IPV6_AUTOFLOWLABEL = 70 +const IPV6_CHECKSUM = 7 +const IPV6_DONTFRAG = 62 +const IPV6_DROP_MEMBERSHIP = 21 +const IPV6_DSTOPTS = 59 +const IPV6_FREEBIND = 78 +const IPV6_HDRINCL = 36 +const IPV6_HOPLIMIT = 52 +const IPV6_HOPOPTS = 54 +const IPV6_IPSEC_POLICY = 34 +const IPV6_JOIN_ANYCAST = 27 +const IPV6_JOIN_GROUP = 20 +const IPV6_LEAVE_ANYCAST = 28 +const IPV6_LEAVE_GROUP = 21 +const IPV6_MINHOPCOUNT = 73 +const IPV6_MTU = 24 +const IPV6_MTU_DISCOVER = 23 +const IPV6_MULTICAST_ALL = 29 +const IPV6_MULTICAST_HOPS = 18 +const IPV6_MULTICAST_IF = 17 +const IPV6_MULTICAST_LOOP = 19 +const IPV6_NEXTHOP = 9 +const IPV6_ORIGDSTADDR = 74 +const IPV6_PATHMTU = 61 +const IPV6_PKTINFO = 50 +const IPV6_PMTUDISC_DO = 2 +const IPV6_PMTUDISC_DONT = 0 +const IPV6_PMTUDISC_INTERFACE = 4 +const IPV6_PMTUDISC_OMIT = 5 +const IPV6_PMTUDISC_PROBE = 3 +const IPV6_PMTUDISC_WANT = 1 +const IPV6_PREFER_SRC_CGA = 8 +const IPV6_PREFER_SRC_COA = 4 +const IPV6_PREFER_SRC_HOME = 1024 +const IPV6_PREFER_SRC_NONCGA = 2048 +const IPV6_PREFER_SRC_PUBLIC = 2 +const IPV6_PREFER_SRC_PUBTMP_DEFAULT = 256 +const IPV6_PREFER_SRC_TMP = 1 +const IPV6_RECVDSTOPTS = 58 +const IPV6_RECVERR = 25 +const IPV6_RECVFRAGSIZE = 77 +const IPV6_RECVHOPLIMIT = 51 +const IPV6_RECVHOPOPTS = 53 +const IPV6_RECVORIGDSTADDR = 74 +const IPV6_RECVPATHMTU = 60 +const IPV6_RECVPKTINFO = 49 +const IPV6_RECVRTHDR = 56 +const IPV6_RECVTCLASS = 66 +const IPV6_ROUTER_ALERT = 22 +const IPV6_ROUTER_ALERT_ISOLATE = 30 +const IPV6_RTHDR = 57 +const IPV6_RTHDRDSTOPTS = 55 +const IPV6_RTHDR_LOOSE = 0 +const IPV6_RTHDR_STRICT = 1 +const IPV6_RTHDR_TYPE_0 = 0 +const IPV6_RXDSTOPTS = 59 +const IPV6_RXHOPOPTS = 54 +const IPV6_TCLASS = 67 +const IPV6_TRANSPARENT = 75 +const IPV6_UNICAST_HOPS = 16 +const IPV6_UNICAST_IF = 76 +const IPV6_V6ONLY = 26 +const IPV6_XFRM_POLICY = 35 +const IP_ADD_MEMBERSHIP = 35 +const IP_ADD_SOURCE_MEMBERSHIP = 39 +const IP_BIND_ADDRESS_NO_PORT = 24 +const IP_BLOCK_SOURCE = 38 +const IP_CHECKSUM = 23 +const IP_DEFAULT_MULTICAST_LOOP = 1 +const IP_DEFAULT_MULTICAST_TTL = 1 +const IP_DROP_MEMBERSHIP = 36 +const IP_DROP_SOURCE_MEMBERSHIP = 40 +const IP_FREEBIND = 15 +const IP_HDRINCL = 3 +const IP_IPSEC_POLICY = 16 +const IP_MAX_MEMBERSHIPS = 20 +const IP_MINTTL = 21 +const IP_MSFILTER = 41 +const IP_MTU = 14 +const IP_MTU_DISCOVER = 10 +const IP_MULTICAST_ALL = 49 +const IP_MULTICAST_IF = 32 +const IP_MULTICAST_LOOP = 34 +const IP_MULTICAST_TTL = 33 +const IP_NODEFRAG = 22 +const IP_OPTIONS = 4 +const IP_ORIGDSTADDR = 20 +const IP_PASSSEC = 18 +const IP_PKTINFO = 8 +const IP_PKTOPTIONS = 9 +const IP_PMTUDISC = 10 +const IP_PMTUDISC_DO = 2 +const IP_PMTUDISC_DONT = 0 +const IP_PMTUDISC_INTERFACE = 4 +const IP_PMTUDISC_OMIT = 5 +const IP_PMTUDISC_PROBE = 3 +const IP_PMTUDISC_WANT = 1 +const IP_RECVERR = 11 +const IP_RECVERR_RFC4884 = 26 +const IP_RECVFRAGSIZE = 25 +const IP_RECVOPTS = 6 +const IP_RECVORIGDSTADDR = 20 +const IP_RECVRETOPTS = 7 +const IP_RECVTOS = 13 +const IP_RECVTTL = 12 +const IP_RETOPTS = 7 +const IP_ROUTER_ALERT = 5 +const IP_TOS = 1 +const IP_TRANSPARENT = 19 +const IP_TTL = 2 +const IP_UNBLOCK_SOURCE = 37 +const IP_UNICAST_IF = 50 +const IP_XFRM_POLICY = 17 +const IQUERY = 0 +const LOCALDOMAINPARTS = 2 +const MAXCDNAME = 255 +const MAXDFLSRCH = 3 +const MAXDNAME = 1025 +const MAXDNSRCH = 6 +const MAXLABEL = 63 +const MAXNS = 3 +const MAXRESOLVSORT = 10 +const NAMESERVER_PORT = 53 +const NOERROR = 0 +const NOTAUTH = 0 +const NOTIMP = 0 +const NOTZONE = 0 +const NS_ALG_DH = 2 +const NS_ALG_DSA = 3 +const NS_ALG_DSS = 3 +const NS_ALG_EXPIRE_ONLY = 253 +const NS_ALG_MD5RSA = 1 +const NS_ALG_PRIVATE_OID = 254 +const NS_CMPRSFLGS = 192 +const NS_DEFAULTPORT = 53 +const NS_DSA_MAX_BYTES = 405 +const NS_DSA_MIN_SIZE = 213 +const NS_DSA_SIG_SIZE = 41 +const NS_HFIXEDSZ = 12 +const NS_IN6ADDRSZ = 16 +const NS_INADDRSZ = 4 +const NS_INT16SZ = 2 +const NS_INT32SZ = 4 +const NS_INT8SZ = 1 +const NS_KEY_EXTENDED_FLAGS = 4096 +const NS_KEY_NAME_ENTITY = 512 +const NS_KEY_NAME_RESERVED = 768 +const NS_KEY_NAME_TYPE = 768 +const NS_KEY_NAME_USER = 0 +const NS_KEY_NAME_ZONE = 256 +const NS_KEY_NO_AUTH = 32768 +const NS_KEY_NO_CONF = 16384 +const NS_KEY_PROT_ANY = 255 +const NS_KEY_PROT_DNSSEC = 3 +const NS_KEY_PROT_EMAIL = 2 +const NS_KEY_PROT_IPSEC = 4 +const NS_KEY_PROT_TLS = 1 +const NS_KEY_RESERVED10 = 32 +const NS_KEY_RESERVED11 = 16 +const NS_KEY_RESERVED2 = 8192 +const NS_KEY_RESERVED4 = 2048 +const NS_KEY_RESERVED5 = 1024 +const NS_KEY_RESERVED8 = 128 +const NS_KEY_RESERVED9 = 64 +const NS_KEY_RESERVED_BITMASK = 11504 +const NS_KEY_RESERVED_BITMASK2 = 65535 +const NS_KEY_SIGNATORYMASK = 15 +const NS_KEY_TYPEMASK = 49152 +const NS_KEY_TYPE_AUTH_CONF = 0 +const NS_KEY_TYPE_AUTH_ONLY = 16384 +const NS_KEY_TYPE_CONF_ONLY = 32768 +const NS_KEY_TYPE_NO_KEY = 49152 +const NS_MAXCDNAME = 255 +const NS_MAXDNAME = 1025 +const NS_MAXLABEL = 63 +const NS_MAXMSG = 65535 +const NS_MD5RSA_MAX_BASE64 = 10928 +const NS_MD5RSA_MAX_BITS = 4096 +const NS_MD5RSA_MAX_BYTES = 8195 +const NS_MD5RSA_MAX_SIZE = 512 +const NS_MD5RSA_MIN_BITS = 512 +const NS_MD5RSA_MIN_SIZE = 64 +const NS_NOTIFY_OP = 0 +const NS_NXT_BITS = 8 +const NS_NXT_MAX = 127 +const NS_OPT_DNSSEC_OK = 32768 +const NS_OPT_NSID = 3 +const NS_PACKETSZ = 512 +const NS_QFIXEDSZ = 4 +const NS_RRFIXEDSZ = 10 +const NS_SIG_ALG = 2 +const NS_SIG_EXPIR = 8 +const NS_SIG_FOOT = 16 +const NS_SIG_LABELS = 3 +const NS_SIG_OTTL = 4 +const NS_SIG_SIGNED = 12 +const NS_SIG_SIGNER = 18 +const NS_SIG_TYPE = 0 +const NS_TSIG_ALG_HMAC_MD5 = "HMAC-MD5.SIG-ALG.REG.INT" +const NS_TSIG_ERROR_FORMERR = -12 +const NS_TSIG_ERROR_NO_SPACE = -11 +const NS_TSIG_ERROR_NO_TSIG = -10 +const NS_TSIG_FUDGE = 300 +const NS_TSIG_TCP_COUNT = 100 +const NS_UPDATE_OP = 0 +const NXDOMAIN = 0 +const NXRRSET = 0 +const PACKETSZ = 512 +const PRIX16 = "X" +const PRIX32 = "X" +const PRIX8 = "X" +const PRIXFAST16 = "X" +const PRIXFAST32 = "X" +const PRIXFAST8 = "X" +const PRIXLEAST16 = "X" +const PRIXLEAST32 = "X" +const PRIXLEAST8 = "X" +const PRId16 = "d" +const PRId32 = "d" +const PRId8 = "d" +const PRIdFAST16 = "d" +const PRIdFAST32 = "d" +const PRIdFAST8 = "d" +const PRIdLEAST16 = "d" +const PRIdLEAST32 = "d" +const PRIdLEAST8 = "d" +const PRIi16 = "i" +const PRIi32 = "i" +const PRIi8 = "i" +const PRIiFAST16 = "i" +const PRIiFAST32 = "i" +const PRIiFAST8 = "i" +const PRIiLEAST16 = "i" +const PRIiLEAST32 = "i" +const PRIiLEAST8 = "i" +const PRIo16 = "o" +const PRIo32 = "o" +const PRIo8 = "o" +const PRIoFAST16 = "o" +const PRIoFAST32 = "o" +const PRIoFAST8 = "o" +const PRIoLEAST16 = "o" +const PRIoLEAST32 = "o" +const PRIoLEAST8 = "o" +const PRIu16 = "u" +const PRIu32 = "u" +const PRIu8 = "u" +const PRIuFAST16 = "u" +const PRIuFAST32 = "u" +const PRIuFAST8 = "u" +const PRIuLEAST16 = "u" +const PRIuLEAST32 = "u" +const PRIuLEAST8 = "u" +const PRIx16 = "x" +const PRIx32 = "x" +const PRIx8 = "x" +const PRIxFAST16 = "x" +const PRIxFAST32 = "x" +const PRIxFAST8 = "x" +const PRIxLEAST16 = "x" +const PRIxLEAST32 = "x" +const PRIxLEAST8 = "x" +const PUTLONG = 0 +const PUTSHORT = 0 +const QFIXEDSZ = 4 +const QUERY = 0 +const REFUSED = 0 +const RES_AAONLY = 4 +const RES_BLAST = 131072 +const RES_DEBUG = 2 +const RES_DEFAULT = 524992 +const RES_DEFNAMES = 128 +const RES_DFLRETRY = 2 +const RES_DNSRCH = 512 +const RES_EXHAUSTIVE = 1 +const RES_F_CONN = 2 +const RES_F_EDNS0ERR = 4 +const RES_F_VC = 1 +const RES_IGNTC = 32 +const RES_INIT = 1 +const RES_INSECURE1 = 1024 +const RES_INSECURE2 = 2048 +const RES_KEEPTSIG = 65536 +const RES_MAXNDOTS = 15 +const RES_MAXRETRANS = 30 +const RES_MAXRETRY = 5 +const RES_MAXTIME = 65535 +const RES_NOALIASES = 4096 +const RES_NOCHECKNAME = 32768 +const RES_NOIP6DOTINT = 524288 +const RES_PRF_ADD = 128 +const RES_PRF_ANS = 32 +const RES_PRF_AUTH = 64 +const RES_PRF_CLASS = 4 +const RES_PRF_CMD = 8 +const RES_PRF_HEAD1 = 256 +const RES_PRF_HEAD2 = 512 +const RES_PRF_HEADX = 2048 +const RES_PRF_INIT = 16384 +const RES_PRF_QUERY = 4096 +const RES_PRF_QUES = 16 +const RES_PRF_REPLY = 8192 +const RES_PRF_STATS = 1 +const RES_PRF_TTLID = 1024 +const RES_PRF_UPDATE = 2 +const RES_PRIMARY = 16 +const RES_RECURSE = 64 +const RES_ROTATE = 16384 +const RES_SNGLKUP = 2097152 +const RES_SNGLKUPREOP = 4194304 +const RES_STAYOPEN = 256 +const RES_TIMEOUT = 5 +const RES_USEBSTRING = 262144 +const RES_USEVC = 8 +const RES_USE_DNSSEC = 8388608 +const RES_USE_EDNS0 = 1048576 +const RES_USE_INET6 = 8192 +const RRFIXEDSZ = 10 +const SCNd16 = "hd" +const SCNd32 = "d" +const SCNd8 = "hhd" +const SCNdFAST16 = "d" +const SCNdFAST32 = "d" +const SCNdFAST8 = "hhd" +const SCNdLEAST16 = "hd" +const SCNdLEAST32 = "d" +const SCNdLEAST8 = "hhd" +const SCNi16 = "hi" +const SCNi32 = "i" +const SCNi8 = "hhi" +const SCNiFAST16 = "i" +const SCNiFAST32 = "i" +const SCNiFAST8 = "hhi" +const SCNiLEAST16 = "hi" +const SCNiLEAST32 = "i" +const SCNiLEAST8 = "hhi" +const SCNo16 = "ho" +const SCNo32 = "o" +const SCNo8 = "hho" +const SCNoFAST16 = "o" +const SCNoFAST32 = "o" +const SCNoFAST8 = "hho" +const SCNoLEAST16 = "ho" +const SCNoLEAST32 = "o" +const SCNoLEAST8 = "hho" +const SCNu16 = "hu" +const SCNu32 = "u" +const SCNu8 = "hhu" +const SCNuFAST16 = "u" +const SCNuFAST32 = "u" +const SCNuFAST8 = "hhu" +const SCNuLEAST16 = "hu" +const SCNuLEAST32 = "u" +const SCNuLEAST8 = "hhu" +const SCNx16 = "hx" +const SCNx32 = "x" +const SCNx8 = "hhx" +const SCNxFAST16 = "x" +const SCNxFAST32 = "x" +const SCNxFAST8 = "hhx" +const SCNxLEAST16 = "hx" +const SCNxLEAST32 = "x" +const SCNxLEAST8 = "hhx" +const SERVFAIL = 0 +const STATUS = 0 +const S_ADDT = 0 +const S_PREREQ = 0 +const S_UPDATE = 0 +const S_ZONE = 0 +const T_A = 0 +const T_A6 = 0 +const T_AAAA = 0 +const T_AFSDB = 0 +const T_ANY = 0 +const T_ATMA = 0 +const T_AVC = 0 +const T_AXFR = 0 +const T_CAA = 0 +const T_CDNSKEY = 0 +const T_CDS = 0 +const T_CNAME = 0 +const T_CSYNC = 0 +const T_DHCID = 0 +const T_DLV = 0 +const T_DNAME = 0 +const T_DNSKEY = 0 +const T_DS = 0 +const T_EID = 0 +const T_EUI48 = 0 +const T_EUI64 = 0 +const T_GID = 0 +const T_GPOS = 0 +const T_HINFO = 0 +const T_HIP = 0 +const T_IPSECKEY = 0 +const T_ISDN = 0 +const T_IXFR = 0 +const T_KEY = 0 +const T_L32 = 0 +const T_L64 = 0 +const T_LOC = 0 +const T_LP = 0 +const T_MAILA = 0 +const T_MAILB = 0 +const T_MB = 0 +const T_MD = 0 +const T_MF = 0 +const T_MG = 0 +const T_MINFO = 0 +const T_MR = 0 +const T_MX = 0 +const T_NAPTR = 0 +const T_NID = 0 +const T_NIMLOC = 0 +const T_NINFO = 0 +const T_NS = 0 +const T_NSAP = 0 +const T_NSAP_PTR = 0 +const T_NSEC = 0 +const T_NSEC3 = 0 +const T_NSEC3PARAM = 0 +const T_NULL = 0 +const T_NXT = 0 +const T_OPENPGPKEY = 0 +const T_PTR = 0 +const T_PX = 0 +const T_RKEY = 0 +const T_RP = 0 +const T_RRSIG = 0 +const T_RT = 0 +const T_SIG = 0 +const T_SMIMEA = 0 +const T_SOA = 0 +const T_SPF = 0 +const T_SRV = 0 +const T_SSHFP = 0 +const T_TA = 0 +const T_TALINK = 0 +const T_TKEY = 0 +const T_TLSA = 0 +const T_TSIG = 0 +const T_TXT = 0 +const T_UID = 0 +const T_UINFO = 0 +const T_UNSPEC = 0 +const T_URI = 0 +const T_WKS = 0 +const T_X25 = 0 +const YXDOMAIN = 0 +const YXRRSET = 0 +const _PATH_RESCONF = "/etc/resolv.conf" +const __BIND = 19950621 +const __NAMESER = 19991006 +const __PRI64 = "ll" +const __PRIPTR = "" +const __RES = 19960801 +const __UAPI_DEF_IN6_ADDR = 0 +const __UAPI_DEF_IN6_ADDR_ALT = 0 +const __UAPI_DEF_IN6_PKTINFO = 0 +const __UAPI_DEF_IN_ADDR = 0 +const __UAPI_DEF_IN_CLASS = 0 +const __UAPI_DEF_IN_IPPROTO = 0 +const __UAPI_DEF_IN_PKTINFO = 0 +const __UAPI_DEF_IP6_MTUINFO = 0 +const __UAPI_DEF_IPPROTO_V6 = 0 +const __UAPI_DEF_IPV6_MREQ = 0 +const __UAPI_DEF_IPV6_OPTIONS = 0 +const __UAPI_DEF_IP_MREQ = 0 +const __UAPI_DEF_SOCKADDR_IN = 0 +const __UAPI_DEF_SOCKADDR_IN6 = 0 +const _res = 0 + +type Tns_sect = int32 + +type ___ns_sect = int32 + +const _ns_s_qd = 0 +const _ns_s_zn = 0 +const _ns_s_an = 1 +const _ns_s_pr = 1 +const _ns_s_ns = 2 +const _ns_s_ud = 2 +const _ns_s_ar = 3 +const _ns_s_max = 4 + +type Tns_msg = struct { + F_msg uintptr + F_eom uintptr + F_id Tuint16_t + F_flags Tuint16_t + F_counts [4]Tuint16_t + F_sections [4]uintptr + F_sect Tns_sect + F_rrnum int32 + F_msg_ptr uintptr +} + +type t__ns_msg = Tns_msg + +type T_ns_flagdata = struct { + Fmask int32 + Fshift int32 +} + +type Tns_rr = struct { + Fname [1025]int8 + Ftype1 Tuint16_t + Frr_class Tuint16_t + Fttl Tuint32_t + Frdlength Tuint16_t + Frdata uintptr +} + +type t__ns_rr = Tns_rr + +type Tns_flag = int32 + +type ___ns_flag = int32 + +const _ns_f_qr = 0 +const _ns_f_opcode = 1 +const _ns_f_aa = 2 +const _ns_f_tc = 3 +const _ns_f_rd = 4 +const _ns_f_ra = 5 +const _ns_f_z = 6 +const _ns_f_ad = 7 +const _ns_f_cd = 8 +const _ns_f_rcode = 9 +const _ns_f_max = 10 + +type Tns_opcode = int32 + +type ___ns_opcode = int32 + +const _ns_o_query = 0 +const _ns_o_iquery = 1 +const _ns_o_status = 2 +const _ns_o_notify = 4 +const _ns_o_update = 5 +const _ns_o_max = 6 + +type Tns_rcode = int32 + +type ___ns_rcode = int32 + +const _ns_r_noerror = 0 +const _ns_r_formerr = 1 +const _ns_r_servfail = 2 +const _ns_r_nxdomain = 3 +const _ns_r_notimpl = 4 +const _ns_r_refused = 5 +const _ns_r_yxdomain = 6 +const _ns_r_yxrrset = 7 +const _ns_r_nxrrset = 8 +const _ns_r_notauth = 9 +const _ns_r_notzone = 10 +const _ns_r_max = 11 +const _ns_r_badvers = 16 +const _ns_r_badsig = 16 +const _ns_r_badkey = 17 +const _ns_r_badtime = 18 + +type Tns_update_operation = int32 + +type ___ns_update_operation = int32 + +const _ns_uop_delete = 0 +const _ns_uop_add = 1 +const _ns_uop_max = 2 + +type Tns_tsig_key = struct { + Fname [1025]int8 + Falg [1025]int8 + Fdata uintptr + Flen1 int32 +} + +type Tns_tcp_tsig_state = struct { + Fcounter int32 + Fkey uintptr + Fctx uintptr + Fsig [512]uint8 + Fsiglen int32 +} + +type Tns_type = int32 + +type ___ns_type = int32 + +const _ns_t_invalid = 0 +const _ns_t_a = 1 +const _ns_t_ns = 2 +const _ns_t_md = 3 +const _ns_t_mf = 4 +const _ns_t_cname = 5 +const _ns_t_soa = 6 +const _ns_t_mb = 7 +const _ns_t_mg = 8 +const _ns_t_mr = 9 +const _ns_t_null = 10 +const _ns_t_wks = 11 +const _ns_t_ptr = 12 +const _ns_t_hinfo = 13 +const _ns_t_minfo = 14 +const _ns_t_mx = 15 +const _ns_t_txt = 16 +const _ns_t_rp = 17 +const _ns_t_afsdb = 18 +const _ns_t_x25 = 19 +const _ns_t_isdn = 20 +const _ns_t_rt = 21 +const _ns_t_nsap = 22 +const _ns_t_nsap_ptr = 23 +const _ns_t_sig = 24 +const _ns_t_key = 25 +const _ns_t_px = 26 +const _ns_t_gpos = 27 +const _ns_t_aaaa = 28 +const _ns_t_loc = 29 +const _ns_t_nxt = 30 +const _ns_t_eid = 31 +const _ns_t_nimloc = 32 +const _ns_t_srv = 33 +const _ns_t_atma = 34 +const _ns_t_naptr = 35 +const _ns_t_kx = 36 +const _ns_t_cert = 37 +const _ns_t_a6 = 38 +const _ns_t_dname = 39 +const _ns_t_sink = 40 +const _ns_t_opt = 41 +const _ns_t_apl = 42 +const _ns_t_ds = 43 +const _ns_t_sshfp = 44 +const _ns_t_ipseckey = 45 +const _ns_t_rrsig = 46 +const _ns_t_nsec = 47 +const _ns_t_dnskey = 48 +const _ns_t_dhcid = 49 +const _ns_t_nsec3 = 50 +const _ns_t_nsec3param = 51 +const _ns_t_tlsa = 52 +const _ns_t_smimea = 53 +const _ns_t_hip = 55 +const _ns_t_ninfo = 56 +const _ns_t_rkey = 57 +const _ns_t_talink = 58 +const _ns_t_cds = 59 +const _ns_t_cdnskey = 60 +const _ns_t_openpgpkey = 61 +const _ns_t_csync = 62 +const _ns_t_spf = 99 +const _ns_t_uinfo = 100 +const _ns_t_uid = 101 +const _ns_t_gid = 102 +const _ns_t_unspec = 103 +const _ns_t_nid = 104 +const _ns_t_l32 = 105 +const _ns_t_l64 = 106 +const _ns_t_lp = 107 +const _ns_t_eui48 = 108 +const _ns_t_eui64 = 109 +const _ns_t_tkey = 249 +const _ns_t_tsig = 250 +const _ns_t_ixfr = 251 +const _ns_t_axfr = 252 +const _ns_t_mailb = 253 +const _ns_t_maila = 254 +const _ns_t_any = 255 +const _ns_t_zxfr = 256 +const _ns_t_uri = 256 +const _ns_t_caa = 257 +const _ns_t_avc = 258 +const _ns_t_ta = 32768 +const _ns_t_dlv = 32769 +const _ns_t_max = 65536 + +type Tns_class = int32 + +type ___ns_class = int32 + +const _ns_c_invalid = 0 +const _ns_c_in = 1 +const _ns_c_2 = 2 +const _ns_c_chaos = 3 +const _ns_c_hs = 4 +const _ns_c_none = 254 +const _ns_c_any = 255 +const _ns_c_max = 65536 + +type Tns_key_types = int32 + +type ___ns_key_types = int32 + +const _ns_kt_rsa = 1 +const _ns_kt_dh = 2 +const _ns_kt_dsa = 3 +const _ns_kt_private = 254 + +type Tns_cert_types = int32 + +type ___ns_cert_types = int32 + +const _cert_t_pkix = 1 +const _cert_t_spki = 2 +const _cert_t_pgp = 3 +const _cert_t_url = 253 +const _cert_t_oid = 254 + +type THEADER = struct { + F__ccgo0 uint32 + F__ccgo4 uint32 + F__ccgo8 uint32 +} + +type Timaxdiv_t = struct { + Fquot Tintmax_t + Frem Tintmax_t +} + +type Tin_port_t = uint16 + +type Tin_addr_t = uint32 + +type Tin_addr = struct { + Fs_addr Tin_addr_t +} + +type Tsockaddr_in = struct { + Fsin_family Tsa_family_t + Fsin_port Tin_port_t + Fsin_addr Tin_addr + Fsin_zero [8]Tuint8_t +} + +type Tin6_addr = struct { + F__in6_union struct { + F__s6_addr16 [0][8]Tuint16_t + F__s6_addr32 [0][4]Tuint32_t + F__s6_addr [16]Tuint8_t + } +} + +type Tsockaddr_in6 = struct { + Fsin6_family Tsa_family_t + Fsin6_port Tin_port_t + Fsin6_flowinfo Tuint32_t + Fsin6_addr Tin6_addr + Fsin6_scope_id Tuint32_t +} + +type Tipv6_mreq = struct { + Fipv6mr_multiaddr Tin6_addr + Fipv6mr_interface uint32 +} + +type Tip_opts = struct { + Fip_dst Tin_addr + Fip_opts [40]int8 +} + +type Tres_state = uintptr + +type t__res_state = struct { + Fretrans int32 + Fretry int32 + Foptions uint32 + Fnscount int32 + Fnsaddr_list [3]Tsockaddr_in + Fid uint16 + Fdnsrch [7]uintptr + Fdefdname [256]int8 + Fpfcode uint32 + F__ccgo356 uint32 + Fsort_list [10]struct { + Faddr Tin_addr + Fmask Tuint32_t + } + Fqhook uintptr + Frhook uintptr + Fres_h_errno int32 + F_vcsock int32 + F_flags uint32 + F_u struct { + F_ext [0]struct { + Fnscount Tuint16_t + Fnsmap [3]Tuint16_t + Fnssocks [3]int32 + Fnscount6 Tuint16_t + Fnsinit Tuint16_t + Fnsaddrs [3]uintptr + F_initstamp [2]uint32 + } + Fpad [52]int8 + } +} + +type Tres_sym = struct { + Fnumber int32 + Fname uintptr + Fhumanname uintptr +} + +/* RFC 1035 message compression */ + +// C documentation +// +// /* label start offsets of a compressed domain name s */ +func _getoffs(tls *TLS, offs uintptr, base uintptr, s uintptr) (r int32) { + var i, v2 int32 + _, _ = i, v2 + i = 0 + for { + for Int32FromUint8(**(**uint8)(__ccgo_up(s)))&int32(0xc0) != 0 { + if Int32FromUint8(**(**uint8)(__ccgo_up(s)))&int32(0xc0) != int32(0xc0) { + return 0 + } + s = base + uintptr(Int32FromUint8(**(**uint8)(__ccgo_up(s)))&Int32FromInt32(0x3f)<= int32(0x4000) { + return 0 + } + v2 = i + i = i + 1 + **(**int16)(__ccgo_up(offs + uintptr(v2)*2)) = int16(int32(s) - int32(base)) + s = s + uintptr(Int32FromUint8(**(**uint8)(__ccgo_up(s)))+int32(1)) + goto _1 + _1: + } + return r +} + +// C documentation +// +// /* label lengths of an ascii domain name s */ +func _getlens(tls *TLS, lens uintptr, s uintptr, l int32) (r int32) { + var i, j, k, v3 int32 + _, _, _, _ = i, j, k, v3 + i = 0 + j = 0 + k = 0 + for { + for { + if !(j < l && int32(**(**int8)(__ccgo_up(s + uintptr(j)))) != int32('.')) { + break + } + goto _2 + _2: + ; + j = j + 1 + } + if Uint32FromInt32(j-k)-uint32(1) > uint32(62) { + return 0 + } + v3 = i + i = i + 1 + **(**uint8)(__ccgo_up(lens + uintptr(v3))) = Uint8FromInt32(j - k) + if j == l { + return i + } + j = j + 1 + v3 = j + k = v3 + goto _1 + _1: + } + return r +} + +// C documentation +// +// /* longest suffix match of an ascii domain with a compressed domain name dn */ +func _match(tls *TLS, offset uintptr, base uintptr, dn uintptr, end uintptr, lens uintptr, nlen int32) (r int32) { + bp := tls.Alloc(256) + defer tls.Free(256) + var l, m, noff, o, v2 int32 + var _ /* offs at bp+0 */ [128]int16 + _, _, _, _, _ = l, m, noff, o, v2 + m = 0 + noff = _getoffs(tls, bp, base, dn) + if !(noff != 0) { + return 0 + } + for { + nlen = nlen - 1 + v2 = nlen + l = Int32FromUint8(**(**uint8)(__ccgo_up(lens + uintptr(v2)))) + noff = noff - 1 + v2 = noff + o = int32((**(**[128]int16)(__ccgo_up(bp)))[v2]) + end = end - uintptr(l) + if l != Int32FromUint8(**(**uint8)(__ccgo_up(base + uintptr(o)))) || Xmemcmp(tls, base+uintptr(o)+uintptr(1), end, Uint32FromInt32(l)) != 0 { + return m + } + **(**int32)(__ccgo_up(offset)) = o + m = m + l + if nlen != 0 { + m = m + 1 + } + if !(nlen != 0) || !(noff != 0) { + return m + } + end = end - 1 + goto _1 + _1: + } + return r +} + +func Xdn_comp(tls *TLS, src uintptr, dst uintptr, space int32, dnptrs uintptr, lastdnptr uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v src=%v dst=%v space=%v dnptrs=%v lastdnptr=%v, (%v:)", tls, src, dst, space, dnptrs, lastdnptr, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(144) + defer tls.Free(144) + var bestlen, bestoff, i, j, m, n, v3 int32 + var end, p, v8 uintptr + var l Tsize_t + var _ /* lens at bp+4 */ [127]uint8 + var _ /* offset at bp+0 */ int32 + _, _, _, _, _, _, _, _, _, _, _ = bestlen, bestoff, end, i, j, l, m, n, p, v3, v8 + m = 0 + bestlen = 0 + l = Xstrnlen(tls, src, uint32(255)) + if l != 0 && int32(**(**int8)(__ccgo_up(src + uintptr(l-uint32(1))))) == int32('.') { + l = l - 1 + } + if l > uint32(253) || space <= 0 { + return -int32(1) + } + if !(l != 0) { + **(**uint8)(__ccgo_up(dst)) = uint8(0) + return int32(1) + } + end = src + uintptr(l) + n = _getlens(tls, bp+4, src, Int32FromUint32(l)) + if !(n != 0) { + return -int32(1) + } + p = dnptrs + if p != 0 && **(**uintptr)(__ccgo_up(p)) != 0 { + p += 4 + for { + if !(**(**uintptr)(__ccgo_up(p)) != 0) { + break + } + m = _match(tls, bp, **(**uintptr)(__ccgo_up(dnptrs)), **(**uintptr)(__ccgo_up(p)), end, bp+4, n) + if m > bestlen { + bestlen = m + bestoff = **(**int32)(__ccgo_up(bp)) + if Uint32FromInt32(m) == l { + break + } + } + goto _1 + _1: + ; + p += 4 + } + } + /* encode unmatched part */ + if Uint32FromInt32(space) < l-Uint32FromInt32(bestlen)+uint32(2)+BoolUint32(Uint32FromInt32(bestlen-Int32FromInt32(1)) < l-Uint32FromInt32(1)) { + return -int32(1) + } + Xmemcpy(tls, dst+uintptr(1), src, l-Uint32FromInt32(bestlen)) + v3 = Int32FromInt32(0) + j = v3 + i = v3 + for { + if !(Uint32FromInt32(i) < l-Uint32FromInt32(bestlen)) { + break + } + **(**uint8)(__ccgo_up(dst + uintptr(i))) = (**(**[127]uint8)(__ccgo_up(bp + 4)))[j] + goto _2 + _2: + ; + v3 = j + j = j + 1 + i = i + (Int32FromUint8((**(**[127]uint8)(__ccgo_up(bp + 4)))[v3]) + int32(1)) + } + /* add tail */ + if bestlen != 0 { + v3 = i + i = i + 1 + **(**uint8)(__ccgo_up(dst + uintptr(v3))) = Uint8FromInt32(int32(0xc0) | bestoff>>int32(8)) + v3 = i + i = i + 1 + **(**uint8)(__ccgo_up(dst + uintptr(v3))) = Uint8FromInt32(bestoff) + } else { + v3 = i + i = i + 1 + **(**uint8)(__ccgo_up(dst + uintptr(v3))) = uint8(0) + } + /* save dst pointer */ + if i > int32(2) && lastdnptr != 0 && dnptrs != 0 && **(**uintptr)(__ccgo_up(dnptrs)) != 0 { + for **(**uintptr)(__ccgo_up(p)) != 0 { + p += 4 + } + if p+uintptr(1)*4 < lastdnptr { + v8 = p + p += 4 + **(**uintptr)(__ccgo_up(v8)) = dst + **(**uintptr)(__ccgo_up(p)) = uintptr(0) + } + } + return i +} + +func X__dn_expand(tls *TLS, base uintptr, end uintptr, src uintptr, dest uintptr, space int32) (r int32) { + if __ccgo_strace { + trc("tls=%v base=%v end=%v src=%v dest=%v space=%v, (%v:)", tls, base, end, src, dest, space, origin(2)) + defer func() { trc("-> %v", r) }() + } + var dbegin, dend, p, v3, v4 uintptr + var i, j, len1, v1 int32 + _, _, _, _, _, _, _, _, _ = dbegin, dend, i, j, len1, p, v1, v3, v4 + p = src + dbegin = dest + len1 = -int32(1) + if p == end || space <= 0 { + return -int32(1) + } + if space > int32(254) { + v1 = int32(254) + } else { + v1 = space + } + dend = dest + uintptr(v1) + /* detect reference loop using an iteration counter */ + i = 0 + for { + if !(i < int32(end)-int32(base)) { + break + } + /* loop invariants: p= int32(end)-int32(base) { + return -int32(1) + } + p = base + uintptr(j) + } else { + if **(**uint8)(__ccgo_up(p)) != 0 { + if dest != dbegin { + v3 = dest + dest = dest + 1 + **(**int8)(__ccgo_up(v3)) = int8('.') + } + v3 = p + p = p + 1 + j = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + if j >= int32(end)-int32(p) || j >= int32(dend)-int32(dest) { + return -int32(1) + } + for { + v1 = j + j = j - 1 + if !(v1 != 0) { + break + } + v3 = dest + dest = dest + 1 + v4 = p + p = p + 1 + **(**int8)(__ccgo_up(v3)) = Int8FromUint8(**(**uint8)(__ccgo_up(v4))) + } + } else { + **(**int8)(__ccgo_up(dest)) = 0 + if len1 < 0 { + len1 = int32(p+uintptr(1)) - int32(src) + } + return len1 + } + } + goto _2 + _2: + ; + i = i + int32(2) + } + return -int32(1) +} + +func Xdn_expand(tls *TLS, base uintptr, end uintptr, src uintptr, dest uintptr, space int32) (r int32) { + if __ccgo_strace { + trc("tls=%v base=%v end=%v src=%v dest=%v space=%v, (%v:)", tls, base, end, src, dest, space, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__dn_expand(tls, base, end, src, dest, space) +} + +func Xdn_skipname(tls *TLS, s uintptr, end uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v end=%v, (%v:)", tls, s, end, origin(2)) + defer func() { trc("-> %v", r) }() + } + var p uintptr + _ = p + p = s + for p < end { + if !(**(**uint8)(__ccgo_up(p)) != 0) { + return int32(p) - int32(s) + int32(1) + } else { + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) >= int32(192) { + if p+uintptr(1) < end { + return int32(p) - int32(s) + int32(2) + } else { + break + } + } else { + if int32(end)-int32(p) < Int32FromUint8(**(**uint8)(__ccgo_up(p)))+int32(1) { + break + } else { + p = p + uintptr(Int32FromUint8(**(**uint8)(__ccgo_up(p)))+int32(1)) + } + } + } + } + return -int32(1) +} + +const AI_ADDRCONFIG = 32 +const AI_ALL = 16 +const AI_CANONNAME = 2 +const AI_NUMERICHOST = 4 +const AI_NUMERICSERV = 1024 +const AI_PASSIVE = 1 +const AI_V4MAPPED = 8 +const EAI_AGAIN = -3 +const EAI_BADFLAGS = -1 +const EAI_FAIL = -4 +const EAI_FAMILY = -6 +const EAI_MEMORY = -10 +const EAI_NODATA = -5 +const EAI_NONAME = -2 +const EAI_OVERFLOW = -12 +const EAI_SERVICE = -8 +const EAI_SOCKTYPE = -7 +const EAI_SYSTEM = -11 +const MAXADDRS = 48 +const MAXSERVS = 2 +const NI_DGRAM = 16 +const NI_NAMEREQD = 8 +const NI_NOFQDN = 4 +const NI_NUMERICHOST = 1 +const NI_NUMERICSCOPE = 256 +const NI_NUMERICSERV = 2 + +type Taddrinfo = struct { + Fai_flags int32 + Fai_family int32 + Fai_socktype int32 + Fai_protocol int32 + Fai_addrlen Tsocklen_t + Fai_addr uintptr + Fai_canonname uintptr + Fai_next uintptr +} + +type Tnetent = struct { + Fn_name uintptr + Fn_aliases uintptr + Fn_addrtype int32 + Fn_net Tuint32_t +} + +type Thostent = struct { + Fh_name uintptr + Fh_aliases uintptr + Fh_addrtype int32 + Fh_length int32 + Fh_addr_list uintptr +} + +type Tservent = struct { + Fs_name uintptr + Fs_aliases uintptr + Fs_port int32 + Fs_proto uintptr +} + +type Tprotoent = struct { + Fp_name uintptr + Fp_aliases uintptr + Fp_proto int32 +} + +type Taibuf = struct { + Fai Taddrinfo + Fsa Tsa + Flock [1]int32 + Fslot int16 + Fref int16 +} + +type Taddress = struct { + Ffamily int32 + Fscopeid uint32 + Faddr [16]Tuint8_t + Fsortkey int32 +} + +type Tservice = struct { + Fport Tuint16_t + Fproto uint8 + Fsocktype uint8 +} + +type Tresolvconf = struct { + Fns [3]Taddress + Fnns uint32 + Fattempts uint32 + Fndots uint32 + Ftimeout uint32 +} + +type t__ccgo_fp__X__dns_parse_2 = func(*TLS, uintptr, int32, uintptr, int32, uintptr, int32) int32 + +func X__dns_parse(tls *TLS, r uintptr, rlen int32, __ccgo_fp_callback uintptr, ctx uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v r=%v rlen=%v __ccgo_fp_callback=%v ctx=%v, (%v:)", tls, r, rlen, __ccgo_fp_callback, ctx, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var ancount, len1, qdcount, v1 int32 + var p uintptr + _, _, _, _, _ = ancount, len1, p, qdcount, v1 + if rlen < int32(12) { + return -int32(1) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(r + 3)))&int32(15) != 0 { + return 0 + } + p = r + uintptr(12) + qdcount = Int32FromUint8(**(**uint8)(__ccgo_up(r + 4)))*int32(256) + Int32FromUint8(**(**uint8)(__ccgo_up(r + 5))) + ancount = Int32FromUint8(**(**uint8)(__ccgo_up(r + 6)))*int32(256) + Int32FromUint8(**(**uint8)(__ccgo_up(r + 7))) + for { + v1 = qdcount + qdcount = qdcount - 1 + if !(v1 != 0) { + break + } + for int32(p)-int32(r) < rlen && uint32(**(**uint8)(__ccgo_up(p)))-uint32(1) < uint32(127) { + p = p + 1 + } + if p > r+uintptr(rlen)-uintptr(6) { + return -int32(1) + } + p = p + uintptr(int32(5)+BoolInt32(!!(**(**uint8)(__ccgo_up(p)) != 0))) + } + for { + v1 = ancount + ancount = ancount - 1 + if !(v1 != 0) { + break + } + for int32(p)-int32(r) < rlen && uint32(**(**uint8)(__ccgo_up(p)))-uint32(1) < uint32(127) { + p = p + 1 + } + if p > r+uintptr(rlen)-uintptr(12) { + return -int32(1) + } + p = p + uintptr(int32(1)+BoolInt32(!!(**(**uint8)(__ccgo_up(p)) != 0))) + len1 = Int32FromUint8(**(**uint8)(__ccgo_up(p + 8)))*int32(256) + Int32FromUint8(**(**uint8)(__ccgo_up(p + 9))) + if len1+int32(10) > int32(r+uintptr(rlen))-int32(p) { + return -int32(1) + } + if (*(*func(*TLS, uintptr, int32, uintptr, int32, uintptr, int32) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_callback})))(tls, ctx, Int32FromUint8(**(**uint8)(__ccgo_up(p + 1))), p+uintptr(10), len1, r, rlen) < 0 { + return -int32(1) + } + p = p + uintptr(int32(10)+len1) + } + return 0 +} + +type Tsa = struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte +} + +func Xsethostent(tls *TLS, x int32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + } +} + +func Xgethostent(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(0) +} + +func Xgetnetent(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(0) +} + +func Xendhostent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } +} + +func Xendnetent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + Xendhostent(tls) +} + +func Xsetnetent(tls *TLS, x int32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + } + Xsethostent(tls, x) +} + +const ARPD_FLUSH = 3 +const ARPD_LOOKUP = 2 +const ARPD_UPDATE = 1 +const ARPHRD_6LOWPAN = 825 +const ARPHRD_ADAPT = 264 +const ARPHRD_APPLETLK = 8 +const ARPHRD_ARCNET = 7 +const ARPHRD_ASH = 781 +const ARPHRD_ATM = 19 +const ARPHRD_AX25 = 3 +const ARPHRD_BIF = 775 +const ARPHRD_CAIF = 822 +const ARPHRD_CAN = 280 +const ARPHRD_CHAOS = 5 +const ARPHRD_CISCO = 513 +const ARPHRD_CSLIP = 257 +const ARPHRD_CSLIP6 = 259 +const ARPHRD_DDCMP = 517 +const ARPHRD_DLCI = 15 +const ARPHRD_ECONET = 782 +const ARPHRD_EETHER = 2 +const ARPHRD_ETHER = 1 +const ARPHRD_EUI64 = 27 +const ARPHRD_FCAL = 785 +const ARPHRD_FCFABRIC = 787 +const ARPHRD_FCPL = 786 +const ARPHRD_FCPP = 784 +const ARPHRD_FDDI = 774 +const ARPHRD_FRAD = 770 +const ARPHRD_HDLC = 513 +const ARPHRD_HIPPI = 780 +const ARPHRD_HWX25 = 272 +const ARPHRD_IEEE1394 = 24 +const ARPHRD_IEEE802 = 6 +const ARPHRD_IEEE80211 = 801 +const ARPHRD_IEEE80211_PRISM = 802 +const ARPHRD_IEEE80211_RADIOTAP = 803 +const ARPHRD_IEEE802154 = 804 +const ARPHRD_IEEE802154_MONITOR = 805 +const ARPHRD_IEEE802_TR = 800 +const ARPHRD_INFINIBAND = 32 +const ARPHRD_IP6GRE = 823 +const ARPHRD_IPDDP = 777 +const ARPHRD_IPGRE = 778 +const ARPHRD_IRDA = 783 +const ARPHRD_LAPB = 516 +const ARPHRD_LOCALTLK = 773 +const ARPHRD_LOOPBACK = 772 +const ARPHRD_METRICOM = 23 +const ARPHRD_NETLINK = 824 +const ARPHRD_NETROM = 0 +const ARPHRD_NONE = 65534 +const ARPHRD_PHONET = 820 +const ARPHRD_PHONET_PIPE = 821 +const ARPHRD_PIMREG = 779 +const ARPHRD_PPP = 512 +const ARPHRD_PRONET = 4 +const ARPHRD_RAWHDLC = 518 +const ARPHRD_RAWIP = 519 +const ARPHRD_ROSE = 270 +const ARPHRD_RSRVD = 260 +const ARPHRD_SIT = 776 +const ARPHRD_SKIP = 771 +const ARPHRD_SLIP = 256 +const ARPHRD_SLIP6 = 258 +const ARPHRD_TUNNEL = 768 +const ARPHRD_TUNNEL6 = 769 +const ARPHRD_VOID = 65535 +const ARPHRD_VSOCKMON = 826 +const ARPHRD_X25 = 271 +const ARPOP_InREPLY = 9 +const ARPOP_InREQUEST = 8 +const ARPOP_NAK = 10 +const ARPOP_REPLY = 2 +const ARPOP_REQUEST = 1 +const ARPOP_RREPLY = 4 +const ARPOP_RREQUEST = 3 +const ATF_COM = 2 +const ATF_DONTPUB = 64 +const ATF_MAGIC = 128 +const ATF_NETMASK = 32 +const ATF_PERM = 4 +const ATF_PUBL = 8 +const ATF_USETRAILERS = 16 +const ETHERMIN = 46 +const ETHERMTU = 1500 +const ETHERTYPE_AARP = 33011 +const ETHERTYPE_ARP = 2054 +const ETHERTYPE_AT = 32923 +const ETHERTYPE_IP = 2048 +const ETHERTYPE_IPV6 = 34525 +const ETHERTYPE_IPX = 33079 +const ETHERTYPE_LOOPBACK = 36864 +const ETHERTYPE_NTRAILER = 16 +const ETHERTYPE_PUP = 512 +const ETHERTYPE_REVARP = 32821 +const ETHERTYPE_SPRITE = 1280 +const ETHERTYPE_TRAIL = 4096 +const ETHERTYPE_VLAN = 33024 +const ETHER_ADDR_LEN = 6 +const ETHER_CRC_LEN = 4 +const ETHER_HDR_LEN = 14 +const ETHER_MAX_LEN = 1518 +const ETHER_MIN_LEN = 64 +const ETHER_TYPE_LEN = 2 +const ETH_ALEN = 6 +const ETH_DATA_LEN = 1500 +const ETH_FCS_LEN = 4 +const ETH_FRAME_LEN = 1514 +const ETH_HLEN = 14 +const ETH_MAX_MTU = 65535 +const ETH_MIN_MTU = 68 +const ETH_P_1588 = 35063 +const ETH_P_8021AD = 34984 +const ETH_P_8021AH = 35047 +const ETH_P_8021Q = 33024 +const ETH_P_80221 = 35095 +const ETH_P_802_2 = 4 +const ETH_P_802_3 = 1 +const ETH_P_802_3_MIN = 1536 +const ETH_P_802_EX1 = 34997 +const ETH_P_AARP = 33011 +const ETH_P_AF_IUCV = 64507 +const ETH_P_ALL = 3 +const ETH_P_AOE = 34978 +const ETH_P_ARCNET = 26 +const ETH_P_ARP = 2054 +const ETH_P_ATALK = 32923 +const ETH_P_ATMFATE = 34948 +const ETH_P_ATMMPOA = 34892 +const ETH_P_AX25 = 2 +const ETH_P_BATMAN = 17157 +const ETH_P_BPQ = 2303 +const ETH_P_CAIF = 247 +const ETH_P_CAN = 12 +const ETH_P_CANFD = 13 +const ETH_P_CFM = 35074 +const ETH_P_CONTROL = 22 +const ETH_P_CUST = 24582 +const ETH_P_DDCMP = 6 +const ETH_P_DEC = 24576 +const ETH_P_DIAG = 24581 +const ETH_P_DNA_DL = 24577 +const ETH_P_DNA_RC = 24578 +const ETH_P_DNA_RT = 24579 +const ETH_P_DSA = 27 +const ETH_P_DSA_8021Q = 56027 +const ETH_P_ECONET = 24 +const ETH_P_EDSA = 56026 +const ETH_P_ERSPAN = 35006 +const ETH_P_ERSPAN2 = 8939 +const ETH_P_FCOE = 35078 +const ETH_P_FIP = 35092 +const ETH_P_HDLC = 25 +const ETH_P_HSR = 35119 +const ETH_P_IBOE = 35093 +const ETH_P_IEEE802154 = 246 +const ETH_P_IEEEPUP = 2560 +const ETH_P_IEEEPUPAT = 2561 +const ETH_P_IFE = 60734 +const ETH_P_IP = 2048 +const ETH_P_IPV6 = 34525 +const ETH_P_IPX = 33079 +const ETH_P_IRDA = 23 +const ETH_P_LAT = 24580 +const ETH_P_LINK_CTL = 34924 +const ETH_P_LLDP = 35020 +const ETH_P_LOCALTALK = 9 +const ETH_P_LOOP = 96 +const ETH_P_LOOPBACK = 36864 +const ETH_P_MACSEC = 35045 +const ETH_P_MAP = 249 +const ETH_P_MOBITEX = 21 +const ETH_P_MPLS_MC = 34888 +const ETH_P_MPLS_UC = 34887 +const ETH_P_MRP = 35043 +const ETH_P_MVRP = 35061 +const ETH_P_NCSI = 35064 +const ETH_P_NSH = 35151 +const ETH_P_PAE = 34958 +const ETH_P_PAUSE = 34824 +const ETH_P_PHONET = 245 +const ETH_P_PPPTALK = 16 +const ETH_P_PPP_DISC = 34915 +const ETH_P_PPP_MP = 8 +const ETH_P_PPP_SES = 34916 +const ETH_P_PREAUTH = 35015 +const ETH_P_PRP = 35067 +const ETH_P_PUP = 512 +const ETH_P_PUPAT = 513 +const ETH_P_QINQ1 = 37120 +const ETH_P_QINQ2 = 37376 +const ETH_P_QINQ3 = 37632 +const ETH_P_RARP = 32821 +const ETH_P_SCA = 24583 +const ETH_P_SLOW = 34825 +const ETH_P_SNAP = 5 +const ETH_P_TDLS = 35085 +const ETH_P_TEB = 25944 +const ETH_P_TIPC = 35018 +const ETH_P_TRAILER = 28 +const ETH_P_TR_802_2 = 17 +const ETH_P_TSN = 8944 +const ETH_P_WAN_PPP = 7 +const ETH_P_WCCP = 34878 +const ETH_P_X25 = 2053 +const ETH_P_XDSA = 248 +const ETH_TLEN = 2 +const ETH_ZLEN = 60 +const MAX_ADDR_LEN = 7 +const __UAPI_DEF_ETHHDR = 0 + +type Tethhdr = struct { + Fh_dest [6]Tuint8_t + Fh_source [6]Tuint8_t + Fh_proto Tuint16_t +} + +type Tether_addr = struct { + Fether_addr_octet [6]Tuint8_t +} + +type Tether_header = struct { + Fether_dhost [6]Tuint8_t + Fether_shost [6]Tuint8_t + Fether_type Tuint16_t +} + +type Tarphdr = struct { + Far_hrd Tuint16_t + Far_pro Tuint16_t + Far_hln Tuint8_t + Far_pln Tuint8_t + Far_op Tuint16_t +} + +type Tarpreq = struct { + Farp_pa Tsockaddr + Farp_ha Tsockaddr + Farp_flags int32 + Farp_netmask Tsockaddr + Farp_dev [16]int8 +} + +type Tarpreq_old = struct { + Farp_pa Tsockaddr + Farp_ha Tsockaddr + Farp_flags int32 + Farp_netmask Tsockaddr +} + +type Tarpd_request = struct { + Freq uint16 + Fip Tuint32_t + Fdev uint32 + Fstamp uint32 + Fupdated uint32 + Fha [7]uint8 +} + +type Tether_arp = struct { + Fea_hdr Tarphdr + Farp_sha [6]Tuint8_t + Farp_spa [4]Tuint8_t + Farp_tha [6]Tuint8_t + Farp_tpa [4]Tuint8_t +} + +func Xether_aton_r(tls *TLS, x uintptr, p_a uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v x=%v p_a=%v, (%v:)", tls, x, p_a, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ii int32 + var n uint32 + var _ /* a at bp+0 */ Tether_addr + var _ /* y at bp+8 */ uintptr + _, _ = ii, n + ii = 0 + for { + if !(ii < int32(6)) { + break + } + if ii != 0 { + if int32(**(**int8)(__ccgo_up(x))) != int32(':') { + return uintptr(0) + } else { + x = x + 1 + } + } + n = Xstrtoul(tls, x, bp+8, int32(16)) + x = **(**uintptr)(__ccgo_up(bp + 8)) + if n > uint32(0xFF) { + return uintptr(0) + } /* bad byte */ + **(**Tuint8_t)(__ccgo_up(bp + uintptr(ii))) = uint8(n) + goto _1 + _1: + ; + ii = ii + 1 + } + if int32(**(**int8)(__ccgo_up(x))) != 0 { + return uintptr(0) + } /* bad format */ + **(**Tether_addr)(__ccgo_up(p_a)) = **(**Tether_addr)(__ccgo_up(bp)) + return p_a +} + +func Xether_aton(tls *TLS, x uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xether_aton_r(tls, x, uintptr(unsafe.Pointer(&_a))) +} + +var _a Tether_addr + +func Xether_ntoa_r(tls *TLS, p_a uintptr, x uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v p_a=%v x=%v, (%v:)", tls, p_a, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ii int32 + var y, v2 uintptr + _, _, _ = ii, y, v2 + y = x + ii = 0 + for { + if !(ii < int32(6)) { + break + } + if ii == 0 { + v2 = __ccgo_ts + 886 + } else { + v2 = __ccgo_ts + 891 + } + x = x + uintptr(Xsprintf(tls, x, v2, VaList(bp+8, Int32FromUint8(**(**Tuint8_t)(__ccgo_up(p_a + uintptr(ii))))))) + goto _1 + _1: + ; + ii = ii + 1 + } + return y +} + +func Xether_ntoa(tls *TLS, p_a uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v p_a=%v, (%v:)", tls, p_a, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xether_ntoa_r(tls, p_a, uintptr(unsafe.Pointer(&_x))) +} + +var _x [18]int8 + +func Xether_line(tls *TLS, l uintptr, e uintptr, hostname uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v l=%v e=%v hostname=%v, (%v:)", tls, l, e, hostname, origin(2)) + defer func() { trc("-> %v", r) }() + } + return -int32(1) +} + +func Xether_ntohost(tls *TLS, hostname uintptr, e uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v hostname=%v e=%v, (%v:)", tls, hostname, e, origin(2)) + defer func() { trc("-> %v", r) }() + } + return -int32(1) +} + +func Xether_hostton(tls *TLS, hostname uintptr, e uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v hostname=%v e=%v, (%v:)", tls, hostname, e, origin(2)) + defer func() { trc("-> %v", r) }() + } + return -int32(1) +} + +func Xfreeaddrinfo(tls *TLS, p uintptr) { + if __ccgo_strace { + trc("tls=%v p=%v, (%v:)", tls, p, origin(2)) + } + var b, v2 uintptr + var cnt Tsize_t + _, _, _ = b, cnt, v2 + cnt = uint32(1) + for { + if !((*Taddrinfo)(unsafe.Pointer(p)).Fai_next != 0) { + break + } + goto _1 + _1: + ; + cnt = cnt + 1 + p = (*Taddrinfo)(unsafe.Pointer(p)).Fai_next + } + b = p - uintptr(uint32(UintptrFromInt32(0))) + b = b - uintptr((*Taibuf)(unsafe.Pointer(b)).Fslot)*68 + ___lock(tls, b+60) + v2 = b + 66 + *(*int16)(unsafe.Pointer(v2)) = int16(uint32(*(*int16)(unsafe.Pointer(v2))) - cnt) + if !(*(*int16)(unsafe.Pointer(v2)) != 0) { + Xfree(tls, b) + } else { + ___unlock(tls, b+60) + } +} + +var _msgs = [252]int8{'I', 'n', 'v', 'a', 'l', 'i', 'd', ' ', 'f', 'l', 'a', 'g', 's', 0, 'N', 'a', 'm', 'e', ' ', 'd', 'o', 'e', 's', ' ', 'n', 'o', 't', ' ', 'r', 'e', 's', 'o', 'l', 'v', 'e', 0, 'T', 'r', 'y', ' ', 'a', 'g', 'a', 'i', 'n', 0, 'N', 'o', 'n', '-', 'r', 'e', 'c', 'o', 'v', 'e', 'r', 'a', 'b', 'l', 'e', ' ', 'e', 'r', 'r', 'o', 'r', 0, 'N', 'a', 'm', 'e', ' ', 'h', 'a', 's', ' ', 'n', 'o', ' ', 'u', 's', 'a', 'b', 'l', 'e', ' ', 'a', 'd', 'd', 'r', 'e', 's', 's', 0, 'U', 'n', 'r', 'e', 'c', 'o', 'g', 'n', 'i', 'z', 'e', 'd', ' ', 'a', 'd', 'd', 'r', 'e', 's', 's', ' ', 'f', 'a', 'm', 'i', 'l', 'y', ' ', 'o', 'r', ' ', 'i', 'n', 'v', 'a', 'l', 'i', 'd', ' ', 'l', 'e', 'n', 'g', 't', 'h', 0, 'U', 'n', 'r', 'e', 'c', 'o', 'g', 'n', 'i', 'z', 'e', 'd', ' ', 's', 'o', 'c', 'k', 'e', 't', ' ', 't', 'y', 'p', 'e', 0, 'U', 'n', 'r', 'e', 'c', 'o', 'g', 'n', 'i', 'z', 'e', 'd', ' ', 's', 'e', 'r', 'v', 'i', 'c', 'e', 0, 'U', 'n', 'k', 'n', 'o', 'w', 'n', ' ', 'e', 'r', 'r', 'o', 'r', 0, 'O', 'u', 't', ' ', 'o', 'f', ' ', 'm', 'e', 'm', 'o', 'r', 'y', 0, 'S', 'y', 's', 't', 'e', 'm', ' ', 'e', 'r', 'r', 'o', 'r', 0, 'O', 'v', 'e', 'r', 'f', 'l', 'o', 'w', 0, 0, 'U', 'n', 'k', 'n', 'o', 'w', 'n', ' ', 'e', 'r', 'r', 'o', 'r'} + +func Xgai_strerror(tls *TLS, ecode int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v ecode=%v, (%v:)", tls, ecode, origin(2)) + defer func() { trc("-> %v", r) }() + } + var s uintptr + _ = s + s = uintptr(unsafe.Pointer(&_msgs)) + ecode = ecode + 1 + for { + if !(ecode != 0 && **(**int8)(__ccgo_up(s)) != 0) { + break + } + for { + if !(**(**int8)(__ccgo_up(s)) != 0) { + break + } + goto _2 + _2: + ; + s = s + 1 + } + goto _1 + _1: + ; + ecode = ecode + 1 + s = s + 1 + } + if !(**(**int8)(__ccgo_up(s)) != 0) { + s = s + 1 + } + return X__lctrans_cur(tls, s) +} + +func Xgetaddrinfo(tls *TLS, host uintptr, serv uintptr, hint uintptr, res uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v host=%v serv=%v hint=%v res=%v, (%v:)", tls, host, serv, hint, res, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(1616) + defer tls.Free(1616) + var canon_len, family, flags, i, j, k, mask, naddrs, nais, no_family, nservs, proto, r, s, saved_errno, socktype, v3 int32 + var out, outcanon uintptr + var ta [2]uintptr + var tf [2]int32 + var tl [2]Tsocklen_t + var v5 uint32 + var _ /* addrs at bp+8 */ [48]Taddress + var _ /* canon at bp+1352 */ [256]int8 + var _ /* cs at bp+1608 */ int32 + var _ /* ports at bp+0 */ [2]Tservice + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = canon_len, family, flags, i, j, k, mask, naddrs, nais, no_family, nservs, out, outcanon, proto, r, s, saved_errno, socktype, ta, tf, tl, v3, v5 + family = PF_UNSPEC + flags = 0 + proto = 0 + socktype = 0 + no_family = 0 + if !(host != 0) && !(serv != 0) { + return -int32(2) + } + if hint != 0 { + family = (*Taddrinfo)(unsafe.Pointer(hint)).Fai_family + flags = (*Taddrinfo)(unsafe.Pointer(hint)).Fai_flags + proto = (*Taddrinfo)(unsafe.Pointer(hint)).Fai_protocol + socktype = (*Taddrinfo)(unsafe.Pointer(hint)).Fai_socktype + mask = Int32FromInt32(AI_PASSIVE) | Int32FromInt32(AI_CANONNAME) | Int32FromInt32(AI_NUMERICHOST) | Int32FromInt32(AI_V4MAPPED) | Int32FromInt32(AI_ALL) | Int32FromInt32(AI_ADDRCONFIG) | Int32FromInt32(AI_NUMERICSERV) + if flags&mask != flags { + return -int32(1) + } + switch family { + case int32(PF_INET): + fallthrough + case int32(PF_INET6): + fallthrough + case PF_UNSPEC: + default: + return -int32(6) + } + } + if flags&int32(AI_ADDRCONFIG) != 0 { + tf = [2]int32{ + 0: int32(PF_INET), + 1: int32(PF_INET6), + } + ta = [2]uintptr{ + 0: uintptr(unsafe.Pointer(&_lo4)), + 1: uintptr(unsafe.Pointer(&_lo6)), + } + tl = [2]Tsocklen_t{ + 0: uint32(16), + 1: uint32(28), + } + i = 0 + for { + if !(i < int32(2)) { + break + } + if family == tf[int32(1)-i] { + goto _1 + } + s = Xsocket(tls, tf[i], Int32FromInt32(SOCK_CLOEXEC)|Int32FromInt32(SOCK_DGRAM), int32(IPPROTO_UDP)) + if s >= 0 { + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp+1608) + r = Xconnect(tls, s, ta[i], tl[i]) + saved_errno = **(**int32)(__ccgo_up(X__errno_location(tls))) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 1608)), uintptr(0)) + Xclose(tls, s) + if !(r != 0) { + goto _1 + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = saved_errno + } + switch **(**int32)(__ccgo_up(X__errno_location(tls))) { + case int32(EADDRNOTAVAIL): + fallthrough + case int32(EAFNOSUPPORT): + fallthrough + case int32(EHOSTUNREACH): + fallthrough + case int32(ENETDOWN): + fallthrough + case int32(ENETUNREACH): + default: + return -int32(11) + } + if family == tf[i] { + no_family = int32(1) + } + family = tf[int32(1)-i] + goto _1 + _1: + ; + i = i + 1 + } + } + nservs = X__lookup_serv(tls, bp, serv, proto, socktype, flags) + if nservs < 0 { + return nservs + } + naddrs = X__lookup_name(tls, bp+8, bp+1352, host, family, flags) + if naddrs < 0 { + return naddrs + } + if no_family != 0 { + return -int32(5) + } + nais = nservs * naddrs + canon_len = Int32FromUint32(_strlen(tls, bp+1352)) + out = Xcalloc(tls, uint32(1), Uint32FromInt32(nais)*uint32(68)+Uint32FromInt32(canon_len)+uint32(1)) + if !(out != 0) { + return -int32(10) + } + if canon_len != 0 { + outcanon = out + uintptr(nais)*68 + Xmemcpy(tls, outcanon, bp+1352, Uint32FromInt32(canon_len+int32(1))) + } else { + outcanon = uintptr(0) + } + v3 = Int32FromInt32(0) + i = v3 + k = v3 + for { + if !(i < naddrs) { + break + } + j = 0 + for { + if !(j < nservs) { + break + } + (**(**Taibuf)(__ccgo_up(out + uintptr(k)*68))).Fslot = int16(k) + if (**(**[48]Taddress)(__ccgo_up(bp + 8)))[i].Ffamily == int32(PF_INET) { + v5 = uint32(16) + } else { + v5 = uint32(28) + } + (**(**Taibuf)(__ccgo_up(out + uintptr(k)*68))).Fai = Taddrinfo{ + Fai_family: (**(**[48]Taddress)(__ccgo_up(bp + 8)))[i].Ffamily, + Fai_socktype: Int32FromUint8((**(**[2]Tservice)(__ccgo_up(bp)))[j].Fsocktype), + Fai_protocol: Int32FromUint8((**(**[2]Tservice)(__ccgo_up(bp)))[j].Fproto), + Fai_addrlen: v5, + Fai_addr: out + uintptr(k)*68 + 32, + Fai_canonname: outcanon, + } + if k != 0 { + (**(**Taibuf)(__ccgo_up(out + uintptr(k-int32(1))*68))).Fai.Fai_next = out + uintptr(k)*68 + } + switch (**(**[48]Taddress)(__ccgo_up(bp + 8)))[i].Ffamily { + case int32(PF_INET): + *(*Tsa_family_t)(unsafe.Pointer(out + uintptr(k)*68 + 32)) = uint16(PF_INET) + *(*Tin_port_t)(unsafe.Pointer(out + uintptr(k)*68 + 32 + 2)) = Xhtons(tls, (**(**[2]Tservice)(__ccgo_up(bp)))[j].Fport) + Xmemcpy(tls, out+uintptr(k)*68+32+4, bp+8+uintptr(i)*28+8, uint32(4)) + case int32(PF_INET6): + *(*Tsa_family_t)(unsafe.Pointer(out + uintptr(k)*68 + 32)) = uint16(PF_INET6) + *(*Tin_port_t)(unsafe.Pointer(out + uintptr(k)*68 + 32 + 2)) = Xhtons(tls, (**(**[2]Tservice)(__ccgo_up(bp)))[j].Fport) + *(*Tuint32_t)(unsafe.Pointer(out + uintptr(k)*68 + 32 + 24)) = (**(**[48]Taddress)(__ccgo_up(bp + 8)))[i].Fscopeid + Xmemcpy(tls, out+uintptr(k)*68+32+8, bp+8+uintptr(i)*28+8, uint32(16)) + break + } + goto _4 + _4: + ; + j = j + 1 + k = k + 1 + } + goto _2 + _2: + ; + i = i + 1 + } + (**(**Taibuf)(__ccgo_up(out))).Fref = int16(nais) + **(**uintptr)(__ccgo_up(res)) = out + return 0 +} + +/* Define the "an address is configured" condition for address + * families via ability to create a socket for the family plus + * routability of the loopback address for the family. */ +var _lo4 = Tsockaddr_in{ + Fsin_family: uint16(PF_INET), + Fsin_port: uint16(65535), + Fsin_addr: Tin_addr{ + Fs_addr: uint32(0x0100007f), + }, +} + +var _lo6 = Tsockaddr_in6{ + Fsin6_family: uint16(PF_INET6), + Fsin6_port: uint16(65535), + Fsin6_addr: Tin6_addr{ + F__in6_union: *(*struct { + F__s6_addr16 [0][8]Tuint16_t + F__s6_addr32 [0][4]Tuint32_t + F__s6_addr [16]Tuint8_t + })(unsafe.Pointer(&[16]Tuint8_t{ + 15: uint8(1), + })), + }, +} + +const EAI_ADDRFAMILY = -9 +const EAI_ALLDONE = -103 +const EAI_CANCELED = -101 +const EAI_IDN_ENCODE = -105 +const EAI_INPROGRESS = -100 +const EAI_INTR = -104 +const EAI_NOTCANCELED = -102 +const HOST_NOT_FOUND = 1 +const MCAST_BLOCK_SOURCE = 43 +const MCAST_EXCLUDE = 0 +const MCAST_INCLUDE = 1 +const MCAST_JOIN_GROUP = 42 +const MCAST_JOIN_SOURCE_GROUP = 46 +const MCAST_LEAVE_GROUP = 45 +const MCAST_LEAVE_SOURCE_GROUP = 47 +const MCAST_MSFILTER = 48 +const MCAST_UNBLOCK_SOURCE = 44 +const NI_MAXHOST = 255 +const NI_MAXSERV = 32 +const NO_ADDRESS = 4 +const NO_DATA = 4 +const NO_RECOVERY = 3 +const TRY_AGAIN = 2 +const h_errno = 0 + +type Tip_mreq = struct { + Fimr_multiaddr Tin_addr + Fimr_interface Tin_addr +} + +type Tip_mreqn = struct { + Fimr_multiaddr Tin_addr + Fimr_address Tin_addr + Fimr_ifindex int32 +} + +type Tip_mreq_source = struct { + Fimr_multiaddr Tin_addr + Fimr_interface Tin_addr + Fimr_sourceaddr Tin_addr +} + +type Tip_msfilter = struct { + Fimsf_multiaddr Tin_addr + Fimsf_interface Tin_addr + Fimsf_fmode Tuint32_t + Fimsf_numsrc Tuint32_t + Fimsf_slist [1]Tin_addr +} + +type Tgroup_req = struct { + Fgr_interface Tuint32_t + Fgr_group Tsockaddr_storage +} + +type Tgroup_source_req = struct { + Fgsr_interface Tuint32_t + Fgsr_group Tsockaddr_storage + Fgsr_source Tsockaddr_storage +} + +type Tgroup_filter = struct { + Fgf_interface Tuint32_t + Fgf_group Tsockaddr_storage + Fgf_fmode Tuint32_t + Fgf_numsrc Tuint32_t + Fgf_slist [1]Tsockaddr_storage +} + +type Tin_pktinfo = struct { + Fipi_ifindex int32 + Fipi_spec_dst Tin_addr + Fipi_addr Tin_addr +} + +type Tin6_pktinfo = struct { + Fipi6_addr Tin6_addr + Fipi6_ifindex uint32 +} + +type Tip6_mtuinfo = struct { + Fip6m_addr Tsockaddr_in6 + Fip6m_mtu Tuint32_t +} + +func Xgethostbyaddr(tls *TLS, a uintptr, l Tsocklen_t, af int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v a=%v l=%v af=%v, (%v:)", tls, a, l, af, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var err int32 + var size Tsize_t + var _ /* res at bp+0 */ uintptr + _, _ = err, size + size = uint32(63) + for cond := true; cond; cond = err == int32(ERANGE) { + Xfree(tls, _h) + size = size + (size + uint32(1)) + _h = Xmalloc(tls, size) + if !(_h != 0) { + **(**int32)(__ccgo_up(X__h_errno_location(tls))) = int32(NO_RECOVERY) + return uintptr(0) + } + err = Xgethostbyaddr_r(tls, a, l, af, _h, _h+UintptrFromInt32(1)*20, size-uint32(20), bp, X__h_errno_location(tls)) + } + return **(**uintptr)(__ccgo_up(bp)) +} + +var _h uintptr + +func Xgethostbyaddr_r(tls *TLS, a uintptr, l Tsocklen_t, af int32, h uintptr, buf uintptr, buflen Tsize_t, res uintptr, err uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v a=%v l=%v af=%v h=%v buf=%v buflen=%v res=%v err=%v, (%v:)", tls, a, l, af, h, buf, buflen, res, err, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var i int32 + var sl Tsocklen_t + var v1 uint32 + var _ /* sa at bp+0 */ struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + } + _, _, _ = i, sl, v1 + *(*struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + })(unsafe.Pointer(bp)) = struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + }{} + *(*uint16)(unsafe.Pointer(bp)) = Uint16FromInt32(af) + if af == int32(PF_INET6) { + v1 = uint32(28) + } else { + v1 = uint32(16) + } + sl = v1 + **(**uintptr)(__ccgo_up(res)) = uintptr(0) + /* Load address argument into sockaddr structure */ + if af == int32(PF_INET6) && l == uint32(16) { + Xmemcpy(tls, bp+8, a, uint32(16)) + } else { + if af == int32(PF_INET) && l == uint32(4) { + Xmemcpy(tls, bp+4, a, uint32(4)) + } else { + **(**int32)(__ccgo_up(err)) = int32(NO_RECOVERY) + return int32(EINVAL) + } + } + /* Align buffer and check for space for pointers and ip address */ + i = Int32FromUint32(uint32(buf) & (Uint32FromInt64(4) - Uint32FromInt32(1))) + if !(i != 0) { + i = int32(4) + } + if buflen <= Uint32FromInt32(5)*Uint32FromInt64(4)-Uint32FromInt32(i)+l { + return int32(ERANGE) + } + buf = buf + uintptr(uint32(4)-Uint32FromInt32(i)) + buflen = buflen - (Uint32FromInt32(5)*Uint32FromInt64(4) - Uint32FromInt32(i) + l) + (*Thostent)(unsafe.Pointer(h)).Fh_addr_list = buf + buf = buf + uintptr(Uint32FromInt32(2)*Uint32FromInt64(4)) + (*Thostent)(unsafe.Pointer(h)).Fh_aliases = buf + buf = buf + uintptr(Uint32FromInt32(2)*Uint32FromInt64(4)) + **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_addr_list)) = buf + Xmemcpy(tls, **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_addr_list)), a, l) + buf = buf + uintptr(l) + **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_addr_list + 1*4)) = uintptr(0) + **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_aliases)) = buf + **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_aliases + 1*4)) = uintptr(0) + switch Xgetnameinfo(tls, bp, sl, buf, buflen, uintptr(0), uint32(0), 0) { + case -int32(3): + **(**int32)(__ccgo_up(err)) = int32(TRY_AGAIN) + return int32(EAGAIN) + case -int32(12): + return int32(ERANGE) + default: + fallthrough + case -int32(4): + **(**int32)(__ccgo_up(err)) = int32(NO_RECOVERY) + return int32(EBADMSG) + case -int32(11): + **(**int32)(__ccgo_up(err)) = int32(NO_RECOVERY) + return **(**int32)(__ccgo_up(X__errno_location(tls))) + case 0: + break + } + (*Thostent)(unsafe.Pointer(h)).Fh_addrtype = af + (*Thostent)(unsafe.Pointer(h)).Fh_length = Int32FromUint32(l) + (*Thostent)(unsafe.Pointer(h)).Fh_name = **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_aliases)) + **(**uintptr)(__ccgo_up(res)) = h + return 0 +} + +func Xgethostbyname(tls *TLS, name uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgethostbyname2(tls, name, int32(PF_INET)) +} + +func Xgethostbyname2(tls *TLS, name uintptr, af int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v af=%v, (%v:)", tls, name, af, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var err int32 + var size Tsize_t + var _ /* res at bp+0 */ uintptr + _, _ = err, size + size = uint32(63) + for cond := true; cond; cond = err == int32(ERANGE) { + Xfree(tls, _h1) + size = size + (size + uint32(1)) + _h1 = Xmalloc(tls, size) + if !(_h1 != 0) { + **(**int32)(__ccgo_up(X__h_errno_location(tls))) = int32(NO_RECOVERY) + return uintptr(0) + } + err = Xgethostbyname2_r(tls, name, af, _h1, _h1+UintptrFromInt32(1)*20, size-uint32(20), bp, X__h_errno_location(tls)) + } + return **(**uintptr)(__ccgo_up(bp)) +} + +var _h1 uintptr + +func Xgethostbyname2_r(tls *TLS, name uintptr, af int32, h uintptr, buf uintptr, buflen Tsize_t, res uintptr, err uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v af=%v h=%v buf=%v buflen=%v res=%v err=%v, (%v:)", tls, name, af, h, buf, buflen, res, err, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(1600) + defer tls.Free(1600) + var align, need Tsize_t + var cnt, i, v1 int32 + var v3 uintptr + var _ /* addrs at bp+0 */ [48]Taddress + var _ /* canon at bp+1344 */ [256]int8 + _, _, _, _, _, _ = align, cnt, i, need, v1, v3 + **(**uintptr)(__ccgo_up(res)) = uintptr(0) + cnt = X__lookup_name(tls, bp, bp+1344, name, af, int32(AI_CANONNAME)) + if cnt < 0 { + switch cnt { + case -int32(2): + **(**int32)(__ccgo_up(err)) = int32(HOST_NOT_FOUND) + return 0 + case -int32(5): + **(**int32)(__ccgo_up(err)) = int32(NO_DATA) + return 0 + case -int32(3): + **(**int32)(__ccgo_up(err)) = int32(TRY_AGAIN) + return int32(EAGAIN) + default: + fallthrough + case -int32(4): + **(**int32)(__ccgo_up(err)) = int32(NO_RECOVERY) + return int32(EBADMSG) + case -int32(11): + **(**int32)(__ccgo_up(err)) = int32(NO_RECOVERY) + return **(**int32)(__ccgo_up(X__errno_location(tls))) + } + } + (*Thostent)(unsafe.Pointer(h)).Fh_addrtype = af + if af == int32(PF_INET6) { + v1 = int32(16) + } else { + v1 = int32(4) + } + (*Thostent)(unsafe.Pointer(h)).Fh_length = v1 + /* Align buffer */ + align = -uint32(buf) & (Uint32FromInt64(4) - Uint32FromInt32(1)) + need = Uint32FromInt32(4) * Uint32FromInt64(4) + need = need + Uint32FromInt32(cnt+Int32FromInt32(1))*(uint32(4)+Uint32FromInt32((*Thostent)(unsafe.Pointer(h)).Fh_length)) + need = need + (_strlen(tls, name) + uint32(1)) + need = need + (_strlen(tls, bp+1344) + uint32(1)) + need = need + align + if need > buflen { + return int32(ERANGE) + } + buf = buf + uintptr(align) + (*Thostent)(unsafe.Pointer(h)).Fh_aliases = buf + buf = buf + uintptr(Uint32FromInt32(3)*Uint32FromInt64(4)) + (*Thostent)(unsafe.Pointer(h)).Fh_addr_list = buf + buf = buf + uintptr(Uint32FromInt32(cnt+Int32FromInt32(1))*uint32(4)) + i = 0 + for { + if !(i < cnt) { + break + } + **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_addr_list + uintptr(i)*4)) = buf + buf = buf + uintptr((*Thostent)(unsafe.Pointer(h)).Fh_length) + Xmemcpy(tls, **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_addr_list + uintptr(i)*4)), bp+uintptr(i)*28+8, Uint32FromInt32((*Thostent)(unsafe.Pointer(h)).Fh_length)) + goto _2 + _2: + ; + i = i + 1 + } + **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_addr_list + uintptr(i)*4)) = uintptr(0) + v3 = buf + **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_aliases)) = v3 + (*Thostent)(unsafe.Pointer(h)).Fh_name = v3 + Xstrcpy(tls, (*Thostent)(unsafe.Pointer(h)).Fh_name, bp+1344) + buf = buf + uintptr(_strlen(tls, (*Thostent)(unsafe.Pointer(h)).Fh_name)+uint32(1)) + if Xstrcmp(tls, (*Thostent)(unsafe.Pointer(h)).Fh_name, name) != 0 { + **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_aliases + 1*4)) = buf + Xstrcpy(tls, **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_aliases + 1*4)), name) + buf = buf + uintptr(_strlen(tls, **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_aliases + 1*4)))+uint32(1)) + } else { + **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_aliases + 1*4)) = uintptr(0) + } + **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_aliases + 2*4)) = uintptr(0) + **(**uintptr)(__ccgo_up(res)) = h + return 0 +} + +func Xgethostbyname_r(tls *TLS, name uintptr, h uintptr, buf uintptr, buflen Tsize_t, res uintptr, err uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v h=%v buf=%v buflen=%v res=%v err=%v, (%v:)", tls, name, h, buf, buflen, res, err, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgethostbyname2_r(tls, name, int32(PF_INET), h, buf, buflen, res, err) +} + +const IFADDRS_HASH_SIZE = 64 +const IFA_ADDRESS = 1 +const IFA_BROADCAST = 4 +const IFA_LABEL = 3 +const IFA_LOCAL = 2 +const IFF_ALLMULTI = 512 +const IFF_AUTOMEDIA = 16384 +const IFF_BROADCAST = 2 +const IFF_DEBUG = 4 +const IFF_DORMANT = 131072 +const IFF_DYNAMIC = 32768 +const IFF_ECHO = 262144 +const IFF_LOOPBACK = 8 +const IFF_LOWER_UP = 65536 +const IFF_MASTER = 1024 +const IFF_MULTICAST = 4096 +const IFF_NOARP = 128 +const IFF_NOTRAILERS = 32 +const IFF_POINTOPOINT = 16 +const IFF_PORTSEL = 8192 +const IFF_PROMISC = 256 +const IFF_RUNNING = 64 +const IFF_SLAVE = 2048 +const IFF_UP = 1 +const IFF_VOLATILE = 461914 +const IFHWADDRLEN = 6 +const IFLA_ADDRESS = 1 +const IFLA_BROADCAST = 2 +const IFLA_IFNAME = 3 +const IFLA_STATS = 7 +const IFNAMSIZ = 16 +const IF_NAMESIZE = 16 +const NETLINK_ROUTE = 0 +const NLMSG_DONE = 3 +const NLMSG_ERROR = 2 +const NLMSG_NOOP = 1 +const NLMSG_OVERRUN = 4 +const NLM_F_ACK = 4 +const NLM_F_ATOMIC = 1024 +const NLM_F_DUMP = 768 +const NLM_F_MATCH = 512 +const NLM_F_MULTI = 2 +const NLM_F_REQUEST = 1 +const NLM_F_ROOT = 256 +const RTM_GETADDR = 22 +const RTM_GETLINK = 18 +const RTM_NEWADDR = 20 +const RTM_NEWLINK = 16 +const __UAPI_DEF_IF_IFCONF = 0 +const __UAPI_DEF_IF_IFMAP = 0 +const __UAPI_DEF_IF_IFNAMSIZ = 0 +const __UAPI_DEF_IF_IFREQ = 0 +const __UAPI_DEF_IF_NET_DEVICE_FLAGS = 0 +const __UAPI_DEF_IF_NET_DEVICE_FLAGS_LOWER_UP_DORMANT_ECHO = 0 + +type Tifaddrs = struct { + Fifa_next uintptr + Fifa_name uintptr + Fifa_flags uint32 + Fifa_addr uintptr + Fifa_netmask uintptr + Fifa_ifu struct { + Fifu_dstaddr [0]uintptr + Fifu_broadaddr uintptr + } + Fifa_data uintptr +} + +type Tif_nameindex = struct { + Fif_index uint32 + Fif_name uintptr +} + +type Tifaddr = struct { + Fifa_addr Tsockaddr + Fifa_ifu struct { + Fifu_dstaddr [0]Tsockaddr + Fifu_broadaddr Tsockaddr + } + Fifa_ifp uintptr + Fifa_next uintptr +} + +type Tifmap = struct { + Fmem_start uint32 + Fmem_end uint32 + Fbase_addr uint16 + Firq uint8 + Fdma uint8 + Fport uint8 +} + +type Tifreq = struct { + Fifr_ifrn struct { + Fifrn_name [16]int8 + } + Fifr_ifru struct { + Fifru_dstaddr [0]Tsockaddr + Fifru_broadaddr [0]Tsockaddr + Fifru_netmask [0]Tsockaddr + Fifru_hwaddr [0]Tsockaddr + Fifru_flags [0]int16 + Fifru_ivalue [0]int32 + Fifru_mtu [0]int32 + Fifru_map [0]Tifmap + Fifru_slave [0][16]int8 + Fifru_newname [0][16]int8 + Fifru_data [0]uintptr + Fifru_addr Tsockaddr + } +} + +type Tifconf = struct { + Fifc_len int32 + Fifc_ifcu struct { + Fifcu_req [0]uintptr + Fifcu_buf uintptr + } +} + +type Tnlmsghdr = struct { + Fnlmsg_len Tuint32_t + Fnlmsg_type Tuint16_t + Fnlmsg_flags Tuint16_t + Fnlmsg_seq Tuint32_t + Fnlmsg_pid Tuint32_t +} + +type Trtattr = struct { + Frta_len uint16 + Frta_type uint16 +} + +type Trtgenmsg = struct { + Frtgen_family uint8 +} + +type Tifinfomsg = struct { + Fifi_family uint8 + F__ifi_pad uint8 + Fifi_type uint16 + Fifi_index int32 + Fifi_flags uint32 + Fifi_change uint32 +} + +type Tifaddrmsg = struct { + Fifa_family Tuint8_t + Fifa_prefixlen Tuint8_t + Fifa_flags Tuint8_t + Fifa_scope Tuint8_t + Fifa_index Tuint32_t +} + +/* getifaddrs() reports hardware addresses with PF_PACKET that implies + * struct sockaddr_ll. But e.g. Infiniband socket address length is + * longer than sockaddr_ll.ssl_addr[8] can hold. Use this hack struct + * to extend ssl_addr - callers should be able to still use it. */ +type Tsockaddr_ll_hack = struct { + Fsll_family uint16 + Fsll_protocol uint16 + Fsll_ifindex int32 + Fsll_hatype uint16 + Fsll_pkttype uint8 + Fsll_halen uint8 + Fsll_addr [24]uint8 +} + +type Tsockany = struct { + Fll [0]Tsockaddr_ll_hack + Fv4 [0]Tsockaddr_in + Fv6 [0]Tsockaddr_in6 + Fsa Tsockaddr + F__ccgo_pad4 [20]byte +} + +type Tifaddrs_storage = struct { + Fifa Tifaddrs + Fhash_next uintptr + Faddr Tsockany + Fnetmask Tsockany + Fifu Tsockany + Findex uint32 + Fname [17]int8 +} + +type Tifaddrs_ctx = struct { + Ffirst uintptr + Flast uintptr + Fhash [64]uintptr +} + +func Xfreeifaddrs(tls *TLS, ifp uintptr) { + if __ccgo_strace { + trc("tls=%v ifp=%v, (%v:)", tls, ifp, origin(2)) + } + var n uintptr + _ = n + for ifp != 0 { + n = (*Tifaddrs)(unsafe.Pointer(ifp)).Fifa_next + Xfree(tls, ifp) + ifp = n + } +} + +func _copy_addr(tls *TLS, r uintptr, af int32, sa uintptr, addr uintptr, addrlen Tsize_t, ifindex int32) { + var dst uintptr + var len1 int32 + _, _ = dst, len1 + switch af { + case int32(PF_INET): + dst = sa + 4 + len1 = int32(4) + case int32(PF_INET6): + dst = sa + 8 + len1 = int32(16) + if Int32FromUint8(**(**Tuint8_t)(__ccgo_up(addr))) == int32(0xfe) && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(addr + 1)))&int32(0xc0) == int32(0x80) || Int32FromUint8(**(**Tuint8_t)(__ccgo_up(addr))) == int32(0xff) && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(addr + 1)))&int32(0xf) == int32(0x2) { + (*(*Tsockaddr_in6)(unsafe.Pointer(sa))).Fsin6_scope_id = Uint32FromInt32(ifindex) + } + default: + return + } + if addrlen < Uint32FromInt32(len1) { + return + } + (*Tsockany)(unsafe.Pointer(sa)).Fsa.Fsa_family = Uint16FromInt32(af) + Xmemcpy(tls, dst, addr, Uint32FromInt32(len1)) + **(**uintptr)(__ccgo_up(r)) = sa +} + +func _gen_netmask(tls *TLS, r uintptr, af int32, sa uintptr, prefixlen int32) { + bp := tls.Alloc(16) + defer tls.Free(16) + var i, v1 int32 + var _ /* addr at bp+0 */ [16]Tuint8_t + _, _ = i, v1 + **(**[16]Tuint8_t)(__ccgo_up(bp)) = [16]Tuint8_t{} + if Uint32FromInt32(prefixlen) > Uint32FromInt32(8)*Uint32FromInt64(16) { + prefixlen = Int32FromUint32(Uint32FromInt32(8) * Uint32FromInt64(16)) + } + i = prefixlen / int32(8) + Xmemset(tls, bp, int32(0xff), Uint32FromInt32(i)) + if Uint32FromInt32(i) < uint32(16) { + v1 = i + i = i + 1 + (**(**[16]Tuint8_t)(__ccgo_up(bp)))[v1] = Uint8FromInt32(int32(0xff) << (int32(8) - prefixlen%int32(8))) + } + _copy_addr(tls, r, af, sa, bp, uint32(16), 0) +} + +func _copy_lladdr(tls *TLS, r uintptr, sa uintptr, addr uintptr, addrlen Tsize_t, ifindex int32, hatype uint16) { + if addrlen > uint32(24) { + return + } + (*(*Tsockaddr_ll_hack)(unsafe.Pointer(sa))).Fsll_family = uint16(PF_PACKET) + (*(*Tsockaddr_ll_hack)(unsafe.Pointer(sa))).Fsll_ifindex = ifindex + (*(*Tsockaddr_ll_hack)(unsafe.Pointer(sa))).Fsll_hatype = hatype + (*(*Tsockaddr_ll_hack)(unsafe.Pointer(sa))).Fsll_halen = uint8(addrlen) + Xmemcpy(tls, sa+12, addr, addrlen) + **(**uintptr)(__ccgo_up(r)) = sa +} + +func _netlink_msg_to_ifaddr(tls *TLS, pctx uintptr, h uintptr) (r int32) { + var bucket uint32 + var ctx, ifa, ifi, ifs, ifs0, rta uintptr + var stats_len int32 + _, _, _, _, _, _, _, _ = bucket, ctx, ifa, ifi, ifs, ifs0, rta, stats_len + ctx = pctx + ifi = h + UintptrFromInt64(16) + ifa = h + UintptrFromInt64(16) + stats_len = 0 + if Int32FromUint16((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_type) == int32(RTM_NEWLINK) { + rta = h + UintptrFromInt64(16) + uintptr((Uint32FromInt64(16)+Uint32FromInt32(3))&Uint32FromInt32(^Int32FromInt32(3))) + for { + if !(Uint32FromInt32(int32(h+uintptr((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_len))-int32(rta)) >= uint32(4)) { + break + } + if Int32FromUint16((*Trtattr)(unsafe.Pointer(rta)).Frta_type) != int32(IFLA_STATS) { + goto _1 + } + stats_len = Int32FromUint32(uint32((*Trtattr)(unsafe.Pointer(rta)).Frta_len) - Uint32FromInt64(4)) + break + goto _1 + _1: + ; + rta = rta + uintptr((Int32FromUint16((*Trtattr)(unsafe.Pointer(rta)).Frta_len)+Int32FromInt32(3)) & ^Int32FromInt32(3)) + } + } else { + ifs0 = **(**uintptr)(__ccgo_up(ctx + 8 + uintptr((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_index%uint32(IFADDRS_HASH_SIZE))*4)) + for { + if !(ifs0 != 0) { + break + } + if (*Tifaddrs_storage)(unsafe.Pointer(ifs0)).Findex == (*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_index { + break + } + goto _2 + _2: + ; + ifs0 = (*Tifaddrs_storage)(unsafe.Pointer(ifs0)).Fhash_next + } + if !(ifs0 != 0) { + return 0 + } + } + ifs = Xcalloc(tls, uint32(1), uint32(164)+Uint32FromInt32(stats_len)) + if ifs == uintptr(0) { + return -int32(1) + } + if Int32FromUint16((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_type) == int32(RTM_NEWLINK) { + (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Findex = Uint32FromInt32((*Tifinfomsg)(unsafe.Pointer(ifi)).Fifi_index) + (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_flags = (*Tifinfomsg)(unsafe.Pointer(ifi)).Fifi_flags + rta = h + UintptrFromInt64(16) + uintptr((Uint32FromInt64(16)+Uint32FromInt32(3))&Uint32FromInt32(^Int32FromInt32(3))) + for { + if !(Uint32FromInt32(int32(h+uintptr((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_len))-int32(rta)) >= uint32(4)) { + break + } + switch Int32FromUint16((*Trtattr)(unsafe.Pointer(rta)).Frta_type) { + case int32(IFLA_IFNAME): + if uint32((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-uint32(4) < uint32(17) { + Xmemcpy(tls, ifs+144, rta+UintptrFromInt64(4), uint32((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-Uint32FromInt64(4)) + (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_name = ifs + 144 + } + case int32(IFLA_ADDRESS): + _copy_lladdr(tls, ifs+12, ifs+32, rta+UintptrFromInt64(4), uint32((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-Uint32FromInt64(4), (*Tifinfomsg)(unsafe.Pointer(ifi)).Fifi_index, (*Tifinfomsg)(unsafe.Pointer(ifi)).Fifi_type) + case int32(IFLA_BROADCAST): + _copy_lladdr(tls, ifs+20, ifs+104, rta+UintptrFromInt64(4), uint32((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-Uint32FromInt64(4), (*Tifinfomsg)(unsafe.Pointer(ifi)).Fifi_index, (*Tifinfomsg)(unsafe.Pointer(ifi)).Fifi_type) + case int32(IFLA_STATS): + (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_data = ifs + UintptrFromInt32(1)*164 + Xmemcpy(tls, (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_data, rta+UintptrFromInt64(4), uint32((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-Uint32FromInt64(4)) + break + } + goto _3 + _3: + ; + rta = rta + uintptr((Int32FromUint16((*Trtattr)(unsafe.Pointer(rta)).Frta_len)+Int32FromInt32(3)) & ^Int32FromInt32(3)) + } + if (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_name != 0 { + bucket = (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Findex % uint32(IFADDRS_HASH_SIZE) + (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fhash_next = **(**uintptr)(__ccgo_up(ctx + 8 + uintptr(bucket)*4)) + **(**uintptr)(__ccgo_up(ctx + 8 + uintptr(bucket)*4)) = ifs + } + } else { + (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_name = (*Tifaddrs_storage)(unsafe.Pointer(ifs0)).Fifa.Fifa_name + (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_flags = (*Tifaddrs_storage)(unsafe.Pointer(ifs0)).Fifa.Fifa_flags + rta = h + UintptrFromInt64(16) + uintptr((Uint32FromInt64(8)+Uint32FromInt32(3))&Uint32FromInt32(^Int32FromInt32(3))) + for { + if !(Uint32FromInt32(int32(h+uintptr((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_len))-int32(rta)) >= uint32(4)) { + break + } + switch Int32FromUint16((*Trtattr)(unsafe.Pointer(rta)).Frta_type) { + case int32(IFA_ADDRESS): + /* If ifa_addr is already set we, received an IFA_LOCAL before + * so treat this as destination address */ + if (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_addr != 0 { + _copy_addr(tls, ifs+20, Int32FromUint8((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_family), ifs+104, rta+UintptrFromInt64(4), uint32((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-Uint32FromInt64(4), Int32FromUint32((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_index)) + } else { + _copy_addr(tls, ifs+12, Int32FromUint8((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_family), ifs+32, rta+UintptrFromInt64(4), uint32((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-Uint32FromInt64(4), Int32FromUint32((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_index)) + } + case int32(IFA_BROADCAST): + _copy_addr(tls, ifs+20, Int32FromUint8((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_family), ifs+104, rta+UintptrFromInt64(4), uint32((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-Uint32FromInt64(4), Int32FromUint32((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_index)) + case int32(IFA_LOCAL): + /* If ifa_addr is set and we get IFA_LOCAL, assume we have + * a point-to-point network. Move address to correct field. */ + if (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_addr != 0 { + (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifu = (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Faddr + *(*uintptr)(unsafe.Pointer(ifs + 20)) = ifs + 104 + Xmemset(tls, ifs+32, 0, uint32(36)) + } + _copy_addr(tls, ifs+12, Int32FromUint8((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_family), ifs+32, rta+UintptrFromInt64(4), uint32((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-Uint32FromInt64(4), Int32FromUint32((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_index)) + case int32(IFA_LABEL): + if uint32((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-uint32(4) < uint32(17) { + Xmemcpy(tls, ifs+144, rta+UintptrFromInt64(4), uint32((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-Uint32FromInt64(4)) + (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_name = ifs + 144 + } + break + } + goto _4 + _4: + ; + rta = rta + uintptr((Int32FromUint16((*Trtattr)(unsafe.Pointer(rta)).Frta_len)+Int32FromInt32(3)) & ^Int32FromInt32(3)) + } + if (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_addr != 0 { + _gen_netmask(tls, ifs+16, Int32FromUint8((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_family), ifs+68, Int32FromUint8((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_prefixlen)) + } + } + if (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_name != 0 { + if !((*Tifaddrs_ctx)(unsafe.Pointer(ctx)).Ffirst != 0) { + (*Tifaddrs_ctx)(unsafe.Pointer(ctx)).Ffirst = ifs + } + if (*Tifaddrs_ctx)(unsafe.Pointer(ctx)).Flast != 0 { + (*Tifaddrs)(unsafe.Pointer((*Tifaddrs_ctx)(unsafe.Pointer(ctx)).Flast)).Fifa_next = ifs + } + (*Tifaddrs_ctx)(unsafe.Pointer(ctx)).Flast = ifs + } else { + Xfree(tls, ifs) + } + return 0 +} + +func Xgetifaddrs(tls *TLS, ifap uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v ifap=%v, (%v:)", tls, ifap, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(272) + defer tls.Free(272) + var ctx uintptr + var r int32 + var _ /* _ctx at bp+0 */ Tifaddrs_ctx + _, _ = ctx, r + ctx = bp + Xmemset(tls, ctx, 0, uint32(264)) + r = X__rtnetlink_enumerate(tls, PF_UNSPEC, PF_UNSPEC, __ccgo_fp(_netlink_msg_to_ifaddr), ctx) + if r == 0 { + **(**uintptr)(__ccgo_up(ifap)) = (*Tifaddrs_ctx)(unsafe.Pointer(ctx)).Ffirst + } else { + Xfreeifaddrs(tls, (*Tifaddrs_ctx)(unsafe.Pointer(ctx)).Ffirst) + } + return r +} + +const RR_PTR = 12 + +func _itoa(tls *TLS, p uintptr, x uint32) (r uintptr) { + var v1 uintptr + _ = v1 + p = p + uintptr(Uint32FromInt32(3)*Uint32FromInt64(4)) + p = p - 1 + v1 = p + **(**int8)(__ccgo_up(v1)) = 0 + for cond := true; cond; cond = x != 0 { + p = p - 1 + v1 = p + **(**int8)(__ccgo_up(v1)) = Int8FromUint32(uint32('0') + x%uint32(10)) + x = x / uint32(10) + } + return p +} + +func _mkptr4(tls *TLS, s uintptr, ip uintptr) { + bp := tls.Alloc(48) + defer tls.Free(48) + Xsprintf(tls, s, __ccgo_ts+897, VaList(bp+8, Int32FromUint8(**(**uint8)(__ccgo_up(ip + 3))), Int32FromUint8(**(**uint8)(__ccgo_up(ip + 2))), Int32FromUint8(**(**uint8)(__ccgo_up(ip + 1))), Int32FromUint8(**(**uint8)(__ccgo_up(ip))))) +} + +func _mkptr6(tls *TLS, s uintptr, ip uintptr) { + var i int32 + var v2 uintptr + _, _ = i, v2 + i = int32(15) + for { + if !(i >= 0) { + break + } + v2 = s + s = s + 1 + **(**int8)(__ccgo_up(v2)) = _xdigits[Int32FromUint8(**(**uint8)(__ccgo_up(ip + uintptr(i))))&int32(15)] + v2 = s + s = s + 1 + **(**int8)(__ccgo_up(v2)) = int8('.') + v2 = s + s = s + 1 + **(**int8)(__ccgo_up(v2)) = _xdigits[Int32FromUint8(**(**uint8)(__ccgo_up(ip + uintptr(i))))>>int32(4)] + v2 = s + s = s + 1 + **(**int8)(__ccgo_up(v2)) = int8('.') + goto _1 + _1: + ; + i = i - 1 + } + Xstrcpy(tls, s, __ccgo_ts+922) +} + +var _xdigits = [17]int8{'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'} + +func _reverse_hosts(tls *TLS, buf uintptr, a uintptr, scopeid uint32, family int32) { + bp := tls.Alloc(1728) + defer tls.Free(1728) + var f, p, z, v1, v2 uintptr + var v4, v5 int32 + var v7 bool + var _ /* _buf at bp+512 */ [1032]uint8 + var _ /* _f at bp+1588 */ TFILE + var _ /* atmp at bp+1544 */ [16]uint8 + var _ /* iplit at bp+1560 */ Taddress + var _ /* line at bp+0 */ [512]int8 + _, _, _, _, _, _, _, _ = f, p, z, v1, v2, v4, v5, v7 + f = X__fopen_rb_ca(tls, __ccgo_ts+931, bp+1588, bp+512, uint32(1032)) + if !(f != 0) { + return + } + if family == int32(PF_INET) { + Xmemcpy(tls, bp+1544+uintptr(12), a, uint32(4)) + Xmemcpy(tls, bp+1544, __ccgo_ts+942, uint32(12)) + a = bp + 1544 + } + for Xfgets(tls, bp, int32(512), f) != 0 { + v1 = Xstrchr(tls, bp, int32('#')) + p = v1 + if v1 != 0 { + v2 = p + p = p + 1 + **(**int8)(__ccgo_up(v2)) = int8('\n') + **(**int8)(__ccgo_up(p)) = Int8FromInt32(0) + } + p = bp + for { + if v7 = **(**int8)(__ccgo_up(p)) != 0; v7 { + v4 = int32(**(**int8)(__ccgo_up(p))) + v5 = BoolInt32(v4 == int32(' ') || Uint32FromInt32(v4)-uint32('\t') < uint32(5)) + goto _6 + _6: + } + if !(v7 && !(v5 != 0)) { + break + } + goto _3 + _3: + ; + p = p + 1 + } + if !(**(**int8)(__ccgo_up(p)) != 0) { + continue + } + v1 = p + p = p + 1 + **(**int8)(__ccgo_up(v1)) = 0 + if X__lookup_ipliteral(tls, bp+1560, bp, PF_UNSPEC) <= 0 { + continue + } + if (**(**Taddress)(__ccgo_up(bp + 1560))).Ffamily == int32(PF_INET) { + Xmemcpy(tls, bp+1560+8+uintptr(12), bp+1560+8, uint32(4)) + Xmemcpy(tls, bp+1560+8, __ccgo_ts+942, uint32(12)) + (**(**Taddress)(__ccgo_up(bp + 1560))).Fscopeid = uint32(0) + } + if Xmemcmp(tls, a, bp+1560+8, uint32(16)) != 0 || (**(**Taddress)(__ccgo_up(bp + 1560))).Fscopeid != scopeid { + continue + } + for { + if v7 = **(**int8)(__ccgo_up(p)) != 0; v7 { + v4 = int32(**(**int8)(__ccgo_up(p))) + v5 = BoolInt32(v4 == int32(' ') || Uint32FromInt32(v4)-uint32('\t') < uint32(5)) + goto _12 + _12: + } + if !(v7 && v5 != 0) { + break + } + goto _9 + _9: + ; + p = p + 1 + } + z = p + for { + if v7 = **(**int8)(__ccgo_up(z)) != 0; v7 { + v4 = int32(**(**int8)(__ccgo_up(z))) + v5 = BoolInt32(v4 == int32(' ') || Uint32FromInt32(v4)-uint32('\t') < uint32(5)) + goto _17 + _17: + } + if !(v7 && !(v5 != 0)) { + break + } + goto _14 + _14: + ; + z = z + 1 + } + **(**int8)(__ccgo_up(z)) = 0 + if int32(z)-int32(p) < int32(256) { + Xmemcpy(tls, buf, p, Uint32FromInt32(int32(z)-int32(p)+int32(1))) + break + } + } + X__fclose_ca(tls, f) +} + +func _reverse_services(tls *TLS, buf uintptr, port int32, dgram int32) { + bp := tls.Alloc(1312) + defer tls.Free(1312) + var f, p, v1, v2 uintptr + var svport uint32 + var v4, v5 int32 + var v7 bool + var _ /* _buf at bp+132 */ [1032]uint8 + var _ /* _f at bp+1164 */ TFILE + var _ /* line at bp+0 */ [128]int8 + var _ /* z at bp+128 */ uintptr + _, _, _, _, _, _, _, _ = f, p, svport, v1, v2, v4, v5, v7 + f = X__fopen_rb_ca(tls, __ccgo_ts+955, bp+1164, bp+132, uint32(1032)) + if !(f != 0) { + return + } + for Xfgets(tls, bp, int32(128), f) != 0 { + v1 = Xstrchr(tls, bp, int32('#')) + p = v1 + if v1 != 0 { + v2 = p + p = p + 1 + **(**int8)(__ccgo_up(v2)) = int8('\n') + **(**int8)(__ccgo_up(p)) = Int8FromInt32(0) + } + p = bp + for { + if v7 = **(**int8)(__ccgo_up(p)) != 0; v7 { + v4 = int32(**(**int8)(__ccgo_up(p))) + v5 = BoolInt32(v4 == int32(' ') || Uint32FromInt32(v4)-uint32('\t') < uint32(5)) + goto _6 + _6: + } + if !(v7 && !(v5 != 0)) { + break + } + goto _3 + _3: + ; + p = p + 1 + } + if !(**(**int8)(__ccgo_up(p)) != 0) { + continue + } + v1 = p + p = p + 1 + **(**int8)(__ccgo_up(v1)) = 0 + svport = Xstrtoul(tls, p, bp+128, int32(10)) + if svport != Uint32FromInt32(port) || **(**uintptr)(__ccgo_up(bp + 128)) == p { + continue + } + if dgram != 0 && Xstrncmp(tls, **(**uintptr)(__ccgo_up(bp + 128)), __ccgo_ts+969, uint32(4)) != 0 { + continue + } + if !(dgram != 0) && Xstrncmp(tls, **(**uintptr)(__ccgo_up(bp + 128)), __ccgo_ts+974, uint32(4)) != 0 { + continue + } + if int32(p)-t__predefined_ptrdiff_t(bp) > int32(32) { + continue + } + Xmemcpy(tls, buf, bp, Uint32FromInt32(int32(p)-t__predefined_ptrdiff_t(bp))) + break + } + X__fclose_ca(tls, f) +} + +func _dns_parse_callback(tls *TLS, c uintptr, rr int32, data uintptr, len1 int32, packet uintptr, plen int32) (r int32) { + if rr != int32(RR_PTR) { + return 0 + } + if X__dn_expand(tls, packet, packet+uintptr(plen), data, c, int32(256)) <= 0 { + **(**int8)(__ccgo_up(c)) = 0 + } + return 0 +} + +func Xgetnameinfo(tls *TLS, sa uintptr, sl Tsocklen_t, node uintptr, nodelen Tsocklen_t, serv uintptr, servlen Tsocklen_t, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v sa=%v sl=%v node=%v nodelen=%v serv=%v servlen=%v flags=%v, (%v:)", tls, sa, sl, node, nodelen, serv, servlen, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(976) + defer tls.Free(976) + var a, p, p1, v1 uintptr + var af, port, qlen, rlen int32 + var scopeid uint32 + var _ /* buf at bp+78 */ [256]int8 + var _ /* num at bp+334 */ [13]int8 + var _ /* ptr at bp+0 */ [78]int8 + var _ /* query at bp+347 */ [96]uint8 + var _ /* reply at bp+443 */ [512]uint8 + var _ /* tmp at bp+955 */ [17]int8 + _, _, _, _, _, _, _, _, _ = a, af, p, p1, port, qlen, rlen, scopeid, v1 + af = Int32FromUint16((*Tsockaddr)(unsafe.Pointer(sa)).Fsa_family) + switch af { + case int32(PF_INET): + a = sa + 4 + if sl < uint32(16) { + return -int32(6) + } + _mkptr4(tls, bp, a) + scopeid = uint32(0) + case int32(PF_INET6): + a = sa + 8 + if sl < uint32(28) { + return -int32(6) + } + if Xmemcmp(tls, a, __ccgo_ts+942, uint32(12)) != 0 { + _mkptr6(tls, bp, a) + } else { + _mkptr4(tls, bp, a+uintptr(12)) + } + scopeid = (*Tsockaddr_in6)(unsafe.Pointer(sa)).Fsin6_scope_id + default: + return -int32(6) + } + if node != 0 && nodelen != 0 { + (**(**[256]int8)(__ccgo_up(bp + 78)))[0] = 0 + if !(flags&Int32FromInt32(NI_NUMERICHOST) != 0) { + _reverse_hosts(tls, bp+78, a, scopeid, af) + } + if !(**(**int8)(__ccgo_up(bp + 78)) != 0) && !(flags&Int32FromInt32(NI_NUMERICHOST) != 0) { + qlen = X__res_mkquery(tls, 0, bp, int32(1), int32(RR_PTR), uintptr(0), 0, uintptr(0), bp+347, int32(96)) + (**(**[96]uint8)(__ccgo_up(bp + 347)))[int32(3)] = uint8(0) /* don't need AD flag */ + rlen = X__res_send(tls, bp+347, qlen, bp+443, int32(512)) + (**(**[256]int8)(__ccgo_up(bp + 78)))[0] = 0 + if rlen > 0 { + if Uint32FromInt32(rlen) > uint32(512) { + rlen = int32(512) + } + X__dns_parse(tls, bp+443, rlen, __ccgo_fp(_dns_parse_callback), bp+78) + } + } + if !(**(**int8)(__ccgo_up(bp + 78)) != 0) { + if flags&int32(NI_NAMEREQD) != 0 { + return -int32(2) + } + Xinet_ntop(tls, af, a, bp+78, uint32(256)) + if scopeid != 0 { + p = uintptr(0) + if !(flags&Int32FromInt32(NI_NUMERICSCOPE) != 0) && (Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a))) == int32(0xfe) && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a + 1)))&int32(0xc0) == int32(0x80) || Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a))) == int32(0xff) && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a + 1)))&int32(0xf) == int32(0x2)) { + p = Xif_indextoname(tls, scopeid, bp+955+uintptr(1)) + } + if !(p != 0) { + p = _itoa(tls, bp+334, scopeid) + } + p = p - 1 + v1 = p + **(**int8)(__ccgo_up(v1)) = int8('%') + Xstrcat(tls, bp+78, p) + } + } + if _strlen(tls, bp+78) >= nodelen { + return -int32(12) + } + Xstrcpy(tls, node, bp+78) + } + if serv != 0 && servlen != 0 { + p1 = bp + 78 + port = Int32FromUint16(Xntohs(tls, (*Tsockaddr_in)(unsafe.Pointer(sa)).Fsin_port)) + (**(**[256]int8)(__ccgo_up(bp + 78)))[0] = 0 + if !(flags&Int32FromInt32(NI_NUMERICSERV) != 0) { + _reverse_services(tls, bp+78, port, flags&int32(NI_DGRAM)) + } + if !(**(**int8)(__ccgo_up(p1)) != 0) { + p1 = _itoa(tls, bp+334, Uint32FromInt32(port)) + } + if _strlen(tls, p1) >= servlen { + return -int32(12) + } + Xstrcpy(tls, serv, p1) + } + return 0 +} + +func Xgetpeername(tls *TLS, fd int32, addr uintptr, len1 uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v addr=%v len1=%v, (%v:)", tls, fd, addr, len1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + var r, v1, v10, v2, v3 int32 + var v4, v5, v6, v7, v8, v9 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _, _, _ = r, v1, v10, v2, v3, v4, v5, v6, v7, v8, v9 + v1 = int32(SYS_getpeername) + v2 = int32(__SC_getpeername) + v3 = 0 + v4 = fd + v5 = int32(addr) + v6 = int32(len1) + v7 = int32(Int32FromInt32(0)) + v8 = int32(Int32FromInt32(0)) + v9 = int32(Int32FromInt32(0)) + if v3 != 0 { + r = ___syscall_cp(tls, v1, v4, v5, v6, v7, v8, v9) + } else { + r = X__syscall6(tls, v1, v4, v5, v6, v7, v8, v9) + } + if r != int32(-Int32FromInt32(ENOSYS)) { + v10 = r + goto _11 + } + if v3 != 0 { + *(*[6]int32)(unsafe.Pointer(bp)) = [6]int32{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = ___syscall_cp(tls, int32(SYS_socketcall), v2, int32(bp), 0, 0, 0, 0) + } else { + *(*[6]int32)(unsafe.Pointer(bp + 24)) = [6]int32{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = X__syscall2(tls, int32(SYS_socketcall), v2, int32(bp+24)) + } + v10 = r + goto _11 +_11: + return X__syscall_ret(tls, Uint32FromInt32(v10)) +} + +func Xgetservbyname(tls *TLS, name uintptr, prots uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v prots=%v, (%v:)", tls, name, prots, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* res at bp+0 */ uintptr + if Xgetservbyname_r(tls, name, prots, uintptr(unsafe.Pointer(&_se)), uintptr(unsafe.Pointer(&_buf3)), uint32(8), bp) != 0 { + return uintptr(0) + } + return uintptr(unsafe.Pointer(&_se)) +} + +var _se Tservent + +var _buf3 [2]uintptr + +const ALIGN = 0 + +func Xgetservbyname_r(tls *TLS, name uintptr, prots uintptr, se uintptr, buf uintptr, buflen Tsize_t, res uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v prots=%v se=%v buf=%v buflen=%v res=%v, (%v:)", tls, name, prots, se, buf, buflen, res, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var align, cnt, proto int32 + var v1 uintptr + var _ /* end at bp+8 */ uintptr + var _ /* servs at bp+0 */ [2]Tservice + _, _, _, _ = align, cnt, proto, v1 + **(**uintptr)(__ccgo_up(res)) = uintptr(0) + /* Don't treat numeric port number strings as service records. */ + **(**uintptr)(__ccgo_up(bp + 8)) = __ccgo_ts + Xstrtoul(tls, name, bp+8, int32(10)) + if !(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)))) != 0) { + return int32(ENOENT) + } + /* Align buffer */ + align = Int32FromUint32(-uint32(buf) & (Uint32FromInt64(8) - Uint32FromInt64(4) - Uint32FromInt32(1))) + if buflen < Uint32FromInt32(2)*Uint32FromInt64(4)+Uint32FromInt32(align) { + return int32(ERANGE) + } + buf = buf + uintptr(align) + if !(prots != 0) { + proto = 0 + } else { + if !(Xstrcmp(tls, prots, __ccgo_ts+979) != 0) { + proto = int32(IPPROTO_TCP) + } else { + if !(Xstrcmp(tls, prots, __ccgo_ts+983) != 0) { + proto = int32(IPPROTO_UDP) + } else { + return int32(EINVAL) + } + } + } + cnt = X__lookup_serv(tls, bp, name, proto, 0, 0) + if cnt < 0 { + switch cnt { + case -int32(10): + fallthrough + case -int32(11): + return int32(ENOMEM) + default: + return int32(ENOENT) + } + } + (*Tservent)(unsafe.Pointer(se)).Fs_name = name + (*Tservent)(unsafe.Pointer(se)).Fs_aliases = buf + **(**uintptr)(__ccgo_up((*Tservent)(unsafe.Pointer(se)).Fs_aliases)) = (*Tservent)(unsafe.Pointer(se)).Fs_name + **(**uintptr)(__ccgo_up((*Tservent)(unsafe.Pointer(se)).Fs_aliases + 1*4)) = uintptr(0) + (*Tservent)(unsafe.Pointer(se)).Fs_port = Int32FromUint16(Xhtons(tls, (**(**[2]Tservice)(__ccgo_up(bp)))[0].Fport)) + if Int32FromUint8((**(**[2]Tservice)(__ccgo_up(bp)))[0].Fproto) == int32(IPPROTO_TCP) { + v1 = __ccgo_ts + 979 + } else { + v1 = __ccgo_ts + 983 + } + (*Tservent)(unsafe.Pointer(se)).Fs_proto = v1 + **(**uintptr)(__ccgo_up(res)) = se + return 0 +} + +func Xgetsockname(tls *TLS, fd int32, addr uintptr, len1 uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v addr=%v len1=%v, (%v:)", tls, fd, addr, len1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + var r, v1, v10, v2, v3 int32 + var v4, v5, v6, v7, v8, v9 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _, _, _ = r, v1, v10, v2, v3, v4, v5, v6, v7, v8, v9 + v1 = int32(SYS_getsockname) + v2 = int32(__SC_getsockname) + v3 = 0 + v4 = fd + v5 = int32(addr) + v6 = int32(len1) + v7 = int32(Int32FromInt32(0)) + v8 = int32(Int32FromInt32(0)) + v9 = int32(Int32FromInt32(0)) + if v3 != 0 { + r = ___syscall_cp(tls, v1, v4, v5, v6, v7, v8, v9) + } else { + r = X__syscall6(tls, v1, v4, v5, v6, v7, v8, v9) + } + if r != int32(-Int32FromInt32(ENOSYS)) { + v10 = r + goto _11 + } + if v3 != 0 { + *(*[6]int32)(unsafe.Pointer(bp)) = [6]int32{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = ___syscall_cp(tls, int32(SYS_socketcall), v2, int32(bp), 0, 0, 0, 0) + } else { + *(*[6]int32)(unsafe.Pointer(bp + 24)) = [6]int32{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = X__syscall2(tls, int32(SYS_socketcall), v2, int32(bp+24)) + } + v10 = r + goto _11 +_11: + return X__syscall_ret(tls, Uint32FromInt32(v10)) +} + +func Xgetsockopt(tls *TLS, fd int32, level int32, optname int32, optval uintptr, optlen uintptr) (r2 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v level=%v optname=%v optval=%v optlen=%v, (%v:)", tls, fd, level, optname, optval, optlen, origin(2)) + defer func() { trc("-> %v", r2) }() + } + bp := tls.Alloc(160) + defer tls.Free(160) + var r, r1, v1, v10, v2, v3 int32 + var tv uintptr + var v4, v5, v6, v7, v8, v9 Tsyscall_arg_t + var _ /* tv32 at bp+152 */ [2]int32 + _, _, _, _, _, _, _, _, _, _, _, _, _ = r, r1, tv, v1, v10, v2, v3, v4, v5, v6, v7, v8, v9 + v1 = int32(SYS_getsockopt) + v2 = int32(__SC_getsockopt) + v3 = 0 + v4 = fd + v5 = level + v6 = optname + v7 = int32(optval) + v8 = int32(optlen) + v9 = int32(Int32FromInt32(0)) + if v3 != 0 { + r = ___syscall_cp(tls, v1, v4, v5, v6, v7, v8, v9) + } else { + r = X__syscall6(tls, v1, v4, v5, v6, v7, v8, v9) + } + if r != int32(-Int32FromInt32(ENOSYS)) { + v10 = r + goto _11 + } + if v3 != 0 { + *(*[6]int32)(unsafe.Pointer(bp + 100)) = [6]int32{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = ___syscall_cp(tls, int32(SYS_socketcall), v2, int32(bp+100), 0, 0, 0, 0) + } else { + *(*[6]int32)(unsafe.Pointer(bp + 124)) = [6]int32{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = X__syscall2(tls, int32(SYS_socketcall), v2, int32(bp+124)) + } + v10 = r + goto _11 +_11: + r1 = v10 + if r1 == -int32(ENOPROTOOPT) { + switch level { + case int32(SOL_SOCKET): + switch optname { + case int32(SO_RCVTIMEO): + fallthrough + case int32(SO_SNDTIMEO): + if false { + break + } + if **(**Tsocklen_t)(__ccgo_up(optlen)) < uint32(16) { + return X__syscall_ret(tls, Uint32FromInt32(-Int32FromInt32(EINVAL))) + } + if optname == int32(SO_RCVTIMEO) { + optname = int32(SO_RCVTIMEO_OLD) + } + if optname == int32(SO_SNDTIMEO) { + optname = int32(SO_SNDTIMEO_OLD) + } + *(*[1]Tsocklen_t)(unsafe.Pointer(bp + 48)) = [1]Tsocklen_t{ + 0: uint32(8), + } + v1 = int32(SYS_getsockopt) + v2 = int32(__SC_getsockopt) + v3 = 0 + v4 = fd + v5 = level + v6 = optname + v7 = int32(bp + 152) + v8 = int32(bp + 48) + v9 = int32(Int32FromInt32(0)) + if v3 != 0 { + r = ___syscall_cp(tls, v1, v4, v5, v6, v7, v8, v9) + } else { + r = X__syscall6(tls, v1, v4, v5, v6, v7, v8, v9) + } + if r != int32(-Int32FromInt32(ENOSYS)) { + v10 = r + goto _22 + } + if v3 != 0 { + *(*[6]int32)(unsafe.Pointer(bp + 100)) = [6]int32{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = ___syscall_cp(tls, int32(SYS_socketcall), v2, int32(bp+100), 0, 0, 0, 0) + } else { + *(*[6]int32)(unsafe.Pointer(bp + 124)) = [6]int32{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = X__syscall2(tls, int32(SYS_socketcall), v2, int32(bp+124)) + } + v10 = r + goto _22 + _22: + r1 = v10 + if r1 < 0 { + break + } + tv = optval + (*Ttimeval)(unsafe.Pointer(tv)).Ftv_sec = int64((**(**[2]int32)(__ccgo_up(bp + 152)))[0]) + (*Ttimeval)(unsafe.Pointer(tv)).Ftv_usec = int64((**(**[2]int32)(__ccgo_up(bp + 152)))[int32(1)]) + **(**Tsocklen_t)(__ccgo_up(optlen)) = uint32(16) + case int32(SO_TIMESTAMP): + fallthrough + case int32(SO_TIMESTAMPNS): + if false { + break + } + if optname == int32(SO_TIMESTAMP) { + optname = int32(SO_TIMESTAMP_OLD) + } + if optname == int32(SO_TIMESTAMPNS) { + optname = int32(SO_TIMESTAMPNS_OLD) + } + v1 = int32(SYS_getsockopt) + v2 = int32(__SC_getsockopt) + v3 = 0 + v4 = fd + v5 = level + v6 = optname + v7 = int32(optval) + v8 = int32(optlen) + v9 = int32(Int32FromInt32(0)) + if v3 != 0 { + r = ___syscall_cp(tls, v1, v4, v5, v6, v7, v8, v9) + } else { + r = X__syscall6(tls, v1, v4, v5, v6, v7, v8, v9) + } + if r != int32(-Int32FromInt32(ENOSYS)) { + v10 = r + goto _33 + } + if v3 != 0 { + *(*[6]int32)(unsafe.Pointer(bp + 100)) = [6]int32{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = ___syscall_cp(tls, int32(SYS_socketcall), v2, int32(bp+100), 0, 0, 0, 0) + } else { + *(*[6]int32)(unsafe.Pointer(bp + 124)) = [6]int32{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = X__syscall2(tls, int32(SYS_socketcall), v2, int32(bp+124)) + } + v10 = r + goto _33 + _33: + r1 = v10 + break + } + } + } + return X__syscall_ret(tls, Uint32FromInt32(r1)) +} + +func X__h_errno_location(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + if !((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Fstack != 0) { + return uintptr(unsafe.Pointer(&Xh_errno)) + } + return uintptr(___get_tp(tls)) + 88 +} + +func Xherror(tls *TLS, msg uintptr) { + if __ccgo_strace { + trc("tls=%v msg=%v, (%v:)", tls, msg, origin(2)) + } + bp := tls.Alloc(32) + defer tls.Free(32) + var v1, v2 uintptr + _, _ = v1, v2 + if msg != 0 { + v1 = msg + } else { + v1 = __ccgo_ts + } + if msg != 0 { + v2 = __ccgo_ts + 289 + } else { + v2 = __ccgo_ts + } + Xfprintf(tls, uintptr(unsafe.Pointer(&X__stderr_FILE)), __ccgo_ts+987, VaList(bp+8, v1, v2, Xhstrerror(tls, **(**int32)(__ccgo_up(X__h_errno_location(tls)))))) +} + +var _msgs1 = [84]int8{'H', 'o', 's', 't', ' ', 'n', 'o', 't', ' ', 'f', 'o', 'u', 'n', 'd', 0, 'T', 'r', 'y', ' ', 'a', 'g', 'a', 'i', 'n', 0, 'N', 'o', 'n', '-', 'r', 'e', 'c', 'o', 'v', 'e', 'r', 'a', 'b', 'l', 'e', ' ', 'e', 'r', 'r', 'o', 'r', 0, 'A', 'd', 'd', 'r', 'e', 's', 's', ' ', 'n', 'o', 't', ' ', 'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e', 0, 0, 'U', 'n', 'k', 'n', 'o', 'w', 'n', ' ', 'e', 'r', 'r', 'o', 'r'} + +func Xhstrerror(tls *TLS, ecode int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v ecode=%v, (%v:)", tls, ecode, origin(2)) + defer func() { trc("-> %v", r) }() + } + var s uintptr + _ = s + s = uintptr(unsafe.Pointer(&_msgs1)) + ecode = ecode - 1 + for { + if !(ecode != 0 && **(**int8)(__ccgo_up(s)) != 0) { + break + } + for { + if !(**(**int8)(__ccgo_up(s)) != 0) { + break + } + goto _2 + _2: + ; + s = s + 1 + } + goto _1 + _1: + ; + ecode = ecode - 1 + s = s + 1 + } + if !(**(**int8)(__ccgo_up(s)) != 0) { + s = s + 1 + } + return X__lctrans_cur(tls, s) +} + +func Xhtonl(tls *TLS, n Tuint32_t) (r Tuint32_t) { + if __ccgo_strace { + trc("tls=%v n=%v, (%v:)", tls, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var u struct { + Fc [0]int8 + Fi int32 + } + var v1 uint32 + var v2, v3 Tuint32_t + _, _, _, _ = u, v1, v2, v3 + u = *(*struct { + Fc [0]int8 + Fi int32 + })(unsafe.Pointer(&struct{ f int32 }{f: int32(1)})) + if *(*int8)(unsafe.Pointer(&u)) != 0 { + v2 = n + v3 = v2>>int32(24) | v2>>int32(8)&uint32(0xff00) | v2< %v", r) }() + } + var u struct { + Fc [0]int8 + Fi int32 + } + var v1 int32 + var v2, v3 Tuint16_t + _, _, _, _ = u, v1, v2, v3 + u = *(*struct { + Fc [0]int8 + Fi int32 + })(unsafe.Pointer(&struct{ f int32 }{f: int32(1)})) + if *(*int8)(unsafe.Pointer(&u)) != 0 { + v2 = n + v3 = Uint16FromInt32(Int32FromUint16(v2)<>int32(8)) + goto _4 + _4: + v1 = Int32FromUint16(v3) + } else { + v1 = Int32FromUint16(n) + } + return Uint16FromInt32(v1) +} + +func Xif_freenameindex(tls *TLS, idx uintptr) { + if __ccgo_strace { + trc("tls=%v idx=%v, (%v:)", tls, idx, origin(2)) + } + Xfree(tls, idx) +} + +func Xif_indextoname(tls *TLS, index uint32, name uintptr) (r1 uintptr) { + if __ccgo_strace { + trc("tls=%v index=%v name=%v, (%v:)", tls, index, name, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + var fd, r, v1 int32 + var _ /* ifr at bp+0 */ Tifreq + _, _, _ = fd, r, v1 + v1 = Xsocket(tls, int32(PF_LOCAL), Int32FromInt32(SOCK_DGRAM)|Int32FromInt32(SOCK_CLOEXEC), 0) + fd = v1 + if v1 < 0 { + return uintptr(0) + } + *(*int32)(unsafe.Pointer(bp + 16)) = Int32FromUint32(index) + r = Xioctl(tls, fd, int32(SIOCGIFNAME), VaList(bp+40, bp)) + X__syscall1(tls, int32(SYS_close), fd) + if r < 0 { + if **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(ENODEV) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENXIO) + } + return uintptr(0) + } + return Xstrncpy(tls, name, bp, uint32(IF_NAMESIZE)) +} + +type Tifnamemap = struct { + Fhash_next uint32 + Findex uint32 + Fnamelen uint8 + Fname [16]int8 +} + +type Tifnameindexctx = struct { + Fnum uint32 + Fallocated uint32 + Fstr_bytes uint32 + Flist uintptr + Fhash [64]uint32 +} + +func _netlink_msg_to_nameindex(tls *TLS, pctx uintptr, h uintptr) (r int32) { + var a Tsize_t + var bucket, index, namelen, type1 int32 + var ctx, ifa, ifi, map1, rta uintptr + var i, v2 uint32 + _, _, _, _, _, _, _, _, _, _, _, _ = a, bucket, ctx, i, ifa, ifi, index, map1, namelen, rta, type1, v2 + ctx = pctx + if Int32FromUint16((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_type) == int32(RTM_NEWLINK) { + ifi = h + UintptrFromInt64(16) + index = (*Tifinfomsg)(unsafe.Pointer(ifi)).Fifi_index + type1 = int32(IFLA_IFNAME) + rta = h + UintptrFromInt64(16) + uintptr((Uint32FromInt64(16)+Uint32FromInt32(3))&Uint32FromInt32(^Int32FromInt32(3))) + } else { + ifa = h + UintptrFromInt64(16) + index = Int32FromUint32((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_index) + type1 = int32(IFA_LABEL) + rta = h + UintptrFromInt64(16) + uintptr((Uint32FromInt64(8)+Uint32FromInt32(3))&Uint32FromInt32(^Int32FromInt32(3))) + } + for { + if !(Uint32FromInt32(int32(h+uintptr((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_len))-int32(rta)) >= uint32(4)) { + break + } + if Int32FromUint16((*Trtattr)(unsafe.Pointer(rta)).Frta_type) != type1 { + goto _1 + } + namelen = Int32FromUint32(uint32((*Trtattr)(unsafe.Pointer(rta)).Frta_len) - uint32(4) - uint32(1)) + if namelen > int32(IF_NAMESIZE) { + return 0 + } + /* suppress duplicates */ + bucket = index % int32(IFADDRS_HASH_SIZE) + i = **(**uint32)(__ccgo_up(ctx + 16 + uintptr(bucket)*4)) + for i != 0 { + map1 = (*Tifnameindexctx)(unsafe.Pointer(ctx)).Flist + uintptr(i-uint32(1))*28 + if (*Tifnamemap)(unsafe.Pointer(map1)).Findex == Uint32FromInt32(index) && Int32FromUint8((*Tifnamemap)(unsafe.Pointer(map1)).Fnamelen) == namelen && Xmemcmp(tls, map1+9, rta+UintptrFromInt64(4), Uint32FromInt32(namelen)) == 0 { + return 0 + } + i = (*Tifnamemap)(unsafe.Pointer(map1)).Fhash_next + } + if (*Tifnameindexctx)(unsafe.Pointer(ctx)).Fnum >= (*Tifnameindexctx)(unsafe.Pointer(ctx)).Fallocated { + if (*Tifnameindexctx)(unsafe.Pointer(ctx)).Fallocated != 0 { + v2 = (*Tifnameindexctx)(unsafe.Pointer(ctx)).Fallocated*uint32(2) + uint32(1) + } else { + v2 = uint32(8) + } + a = v2 + if a > Uint32FromUint32(0xffffffff)/Uint32FromInt64(28) { + return -int32(1) + } + map1 = Xrealloc(tls, (*Tifnameindexctx)(unsafe.Pointer(ctx)).Flist, a*uint32(28)) + if !(map1 != 0) { + return -int32(1) + } + (*Tifnameindexctx)(unsafe.Pointer(ctx)).Flist = map1 + (*Tifnameindexctx)(unsafe.Pointer(ctx)).Fallocated = a + } + map1 = (*Tifnameindexctx)(unsafe.Pointer(ctx)).Flist + uintptr((*Tifnameindexctx)(unsafe.Pointer(ctx)).Fnum)*28 + (*Tifnamemap)(unsafe.Pointer(map1)).Findex = Uint32FromInt32(index) + (*Tifnamemap)(unsafe.Pointer(map1)).Fnamelen = Uint8FromInt32(namelen) + Xmemcpy(tls, map1+9, rta+UintptrFromInt64(4), Uint32FromInt32(namelen)) + **(**uint32)(__ccgo_up(ctx + 8)) += Uint32FromInt32(namelen + int32(1)) + (*Tifnameindexctx)(unsafe.Pointer(ctx)).Fnum = (*Tifnameindexctx)(unsafe.Pointer(ctx)).Fnum + 1 + (*Tifnamemap)(unsafe.Pointer(map1)).Fhash_next = **(**uint32)(__ccgo_up(ctx + 16 + uintptr(bucket)*4)) + **(**uint32)(__ccgo_up(ctx + 16 + uintptr(bucket)*4)) = (*Tifnameindexctx)(unsafe.Pointer(ctx)).Fnum + return 0 + goto _1 + _1: + ; + rta = rta + uintptr((Int32FromUint16((*Trtattr)(unsafe.Pointer(rta)).Frta_len)+Int32FromInt32(3)) & ^Int32FromInt32(3)) + } + return 0 +} + +func Xif_nameindex(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(288) + defer tls.Free(288) + var ctx, d, ifs, p, s, v2 uintptr + var i int32 + var _ /* _ctx at bp+0 */ Tifnameindexctx + var _ /* cs at bp+272 */ int32 + _, _, _, _, _, _, _ = ctx, d, i, ifs, p, s, v2 + ctx = bp + ifs = uintptr(0) + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp+272) + Xmemset(tls, ctx, 0, uint32(272)) + if X__rtnetlink_enumerate(tls, PF_UNSPEC, int32(PF_INET), __ccgo_fp(_netlink_msg_to_nameindex), ctx) < 0 { + goto err + } + ifs = Xmalloc(tls, ((*Tifnameindexctx)(unsafe.Pointer(ctx)).Fnum+Uint32FromInt32(1))*8+(*Tifnameindexctx)(unsafe.Pointer(ctx)).Fstr_bytes) + if !(ifs != 0) { + goto err + } + p = ifs + uintptr((*Tifnameindexctx)(unsafe.Pointer(ctx)).Fnum)*8 + UintptrFromInt32(1)*8 + i = Int32FromUint32((*Tifnameindexctx)(unsafe.Pointer(ctx)).Fnum) + d = ifs + s = (*Tifnameindexctx)(unsafe.Pointer(ctx)).Flist + for { + if !(i != 0) { + break + } + (*Tif_nameindex)(unsafe.Pointer(d)).Fif_index = (*Tifnamemap)(unsafe.Pointer(s)).Findex + (*Tif_nameindex)(unsafe.Pointer(d)).Fif_name = p + Xmemcpy(tls, p, s+9, uint32((*Tifnamemap)(unsafe.Pointer(s)).Fnamelen)) + p = p + uintptr((*Tifnamemap)(unsafe.Pointer(s)).Fnamelen) + v2 = p + p = p + 1 + **(**int8)(__ccgo_up(v2)) = 0 + goto _1 + _1: + ; + i = i - 1 + s += 28 + d += 8 + } + (*Tif_nameindex)(unsafe.Pointer(d)).Fif_index = uint32(0) + (*Tif_nameindex)(unsafe.Pointer(d)).Fif_name = uintptr(0) + goto err +err: + ; + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 272)), uintptr(0)) + Xfree(tls, (*Tifnameindexctx)(unsafe.Pointer(ctx)).Flist) + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOBUFS) + return ifs +} + +func Xif_nametoindex(tls *TLS, name uintptr) (r1 uint32) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + var fd, r, v1 int32 + var _ /* ifr at bp+0 */ Tifreq + _, _, _ = fd, r, v1 + v1 = Xsocket(tls, int32(PF_LOCAL), Int32FromInt32(SOCK_DGRAM)|Int32FromInt32(SOCK_CLOEXEC), 0) + fd = v1 + if v1 < 0 { + return uint32(0) + } + Xstrncpy(tls, bp, name, uint32(16)) + r = Xioctl(tls, fd, int32(SIOCGIFINDEX), VaList(bp+40, bp)) + X__syscall1(tls, int32(SYS_close), fd) + if r < 0 { + v1 = 0 + } else { + v1 = *(*int32)(unsafe.Pointer(bp + 16)) + } + return Uint32FromInt32(v1) +} + +func Xinet_addr(tls *TLS, p uintptr) (r Tin_addr_t) { + if __ccgo_strace { + trc("tls=%v p=%v, (%v:)", tls, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* a at bp+0 */ Tin_addr + if !(X__inet_aton(tls, p, bp) != 0) { + return Uint32FromInt32(-Int32FromInt32(1)) + } + return (**(**Tin_addr)(__ccgo_up(bp))).Fs_addr +} + +func X__inet_aton(tls *TLS, s0 uintptr, dest uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s0=%v dest=%v, (%v:)", tls, s0, dest, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var d, s uintptr + var i int32 + var _ /* a at bp+0 */ [4]uint32 + var _ /* z at bp+16 */ uintptr + _, _, _ = d, i, s + s = s0 + d = dest + **(**[4]uint32)(__ccgo_up(bp)) = [4]uint32{} + i = 0 + for { + if !(i < int32(4)) { + break + } + (**(**[4]uint32)(__ccgo_up(bp)))[i] = Xstrtoul(tls, s, bp+16, 0) + if **(**uintptr)(__ccgo_up(bp + 16)) == s || **(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 16)))) != 0 && int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 16))))) != int32('.') || !(BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(s)))-Uint32FromUint8('0') < Uint32FromInt32(10)) != 0) { + return 0 + } + if !(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 16)))) != 0) { + break + } + s = **(**uintptr)(__ccgo_up(bp + 16)) + uintptr(1) + goto _1 + _1: + ; + i = i + 1 + } + if i == int32(4) { + return 0 + } + switch i { + case 0: + (**(**[4]uint32)(__ccgo_up(bp)))[int32(1)] = (**(**[4]uint32)(__ccgo_up(bp)))[0] & uint32(0xffffff) + **(**uint32)(__ccgo_up(bp)) >>= uint32(24) + fallthrough + case int32(1): + (**(**[4]uint32)(__ccgo_up(bp)))[int32(2)] = (**(**[4]uint32)(__ccgo_up(bp)))[int32(1)] & uint32(0xffff) + **(**uint32)(__ccgo_up(bp + 1*4)) >>= uint32(16) + fallthrough + case int32(2): + (**(**[4]uint32)(__ccgo_up(bp)))[int32(3)] = (**(**[4]uint32)(__ccgo_up(bp)))[int32(2)] & uint32(0xff) + **(**uint32)(__ccgo_up(bp + 2*4)) >>= uint32(8) + } + i = 0 + for { + if !(i < int32(4)) { + break + } + if (**(**[4]uint32)(__ccgo_up(bp)))[i] > uint32(255) { + return 0 + } + **(**uint8)(__ccgo_up(d + uintptr(i))) = uint8((**(**[4]uint32)(__ccgo_up(bp)))[i]) + goto _2 + _2: + ; + i = i + 1 + } + return int32(1) +} + +func Xinet_aton(tls *TLS, s0 uintptr, dest uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s0=%v dest=%v, (%v:)", tls, s0, dest, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__inet_aton(tls, s0, dest) +} + +func Xinet_network(tls *TLS, p uintptr) (r Tin_addr_t) { + if __ccgo_strace { + trc("tls=%v p=%v, (%v:)", tls, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xntohl(tls, Xinet_addr(tls, p)) +} + +func Xinet_makeaddr(tls *TLS, n Tin_addr_t, h Tin_addr_t) (r Tin_addr) { + if __ccgo_strace { + trc("tls=%v n=%v h=%v, (%v:)", tls, n, h, origin(2)) + defer func() { trc("-> %v", r) }() + } + if n < uint32(256) { + h = h | n< %v", r) }() + } + var h Tuint32_t + _ = h + h = in.Fs_addr + if h>>int32(24) < uint32(128) { + return h & uint32(0xffffff) + } + if h>>int32(24) < uint32(192) { + return h & uint32(0xffff) + } + return h & uint32(0xff) +} + +func Xinet_netof(tls *TLS, in Tin_addr) (r Tin_addr_t) { + if __ccgo_strace { + trc("tls=%v in=%v, (%v:)", tls, in, origin(2)) + defer func() { trc("-> %v", r) }() + } + var h Tuint32_t + _ = h + h = in.Fs_addr + if h>>int32(24) < uint32(128) { + return h >> int32(24) + } + if h>>int32(24) < uint32(192) { + return h >> int32(16) + } + return h >> int32(8) +} + +func Xinet_ntoa(tls *TLS, _in Tin_addr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v _in=%v, (%v:)", tls, _in, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + *(*Tin_addr)(unsafe.Pointer(bp)) = _in + var a uintptr + _ = a + a = bp + Xsnprintf(tls, uintptr(unsafe.Pointer(&_buf4)), uint32(16), __ccgo_ts+995, VaList(bp+16, Int32FromUint8(**(**uint8)(__ccgo_up(a))), Int32FromUint8(**(**uint8)(__ccgo_up(a + 1))), Int32FromUint8(**(**uint8)(__ccgo_up(a + 2))), Int32FromUint8(**(**uint8)(__ccgo_up(a + 3))))) + return uintptr(unsafe.Pointer(&_buf4)) +} + +var _buf4 [16]int8 + +func Xinet_ntop(tls *TLS, af int32, a0 uintptr, s uintptr, l Tsocklen_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v af=%v a0=%v s=%v l=%v, (%v:)", tls, af, a0, s, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(192) + defer tls.Free(192) + var a uintptr + var best, i, j, max, v2 int32 + var v3 int8 + var _ /* buf at bp+0 */ [100]int8 + _, _, _, _, _, _, _ = a, best, i, j, max, v2, v3 + a = a0 + switch af { + case int32(PF_INET): + if Uint32FromInt32(Xsnprintf(tls, s, l, __ccgo_ts+995, VaList(bp+112, Int32FromUint8(**(**uint8)(__ccgo_up(a))), Int32FromUint8(**(**uint8)(__ccgo_up(a + 1))), Int32FromUint8(**(**uint8)(__ccgo_up(a + 2))), Int32FromUint8(**(**uint8)(__ccgo_up(a + 3)))))) < l { + return s + } + case int32(PF_INET6): + if Xmemcmp(tls, a, __ccgo_ts+942, uint32(12)) != 0 { + Xsnprintf(tls, bp, uint32(100), __ccgo_ts+1007, VaList(bp+112, int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 1))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 2)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 3))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 4)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 5))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 6)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 7))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 8)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 9))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 10)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 11))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 12)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 13))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 14)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 15))))) + } else { + Xsnprintf(tls, bp, uint32(100), __ccgo_ts+1031, VaList(bp+112, int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 1))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 2)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 3))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 4)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 5))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 6)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 7))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 8)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 9))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 10)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 11))), Int32FromUint8(**(**uint8)(__ccgo_up(a + 12))), Int32FromUint8(**(**uint8)(__ccgo_up(a + 13))), Int32FromUint8(**(**uint8)(__ccgo_up(a + 14))), Int32FromUint8(**(**uint8)(__ccgo_up(a + 15))))) + } + /* Replace longest /(^0|:)[:0]{2,}/ with "::" */ + v2 = Int32FromInt32(0) + best = v2 + i = v2 + max = Int32FromInt32(2) + for { + if !((**(**[100]int8)(__ccgo_up(bp)))[i] != 0) { + break + } + if i != 0 && int32((**(**[100]int8)(__ccgo_up(bp)))[i]) != int32(':') { + goto _1 + } + j = Int32FromUint32(Xstrspn(tls, bp+uintptr(i), __ccgo_ts+1061)) + if j > max { + best = i + max = j + } + goto _1 + _1: + ; + i = i + 1 + } + if max > int32(3) { + v3 = Int8FromUint8(':') + (**(**[100]int8)(__ccgo_up(bp)))[best+int32(1)] = v3 + (**(**[100]int8)(__ccgo_up(bp)))[best] = v3 + Xmemmove(tls, bp+uintptr(best)+uintptr(2), bp+uintptr(best)+uintptr(max), Uint32FromInt32(i-best-max+int32(1))) + } + if _strlen(tls, bp) < l { + Xstrcpy(tls, s, bp) + return s + } + default: + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EAFNOSUPPORT) + return uintptr(0) + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOSPC) + return uintptr(0) +} + +func _hexval(tls *TLS, c uint32) (r int32) { + if c-uint32('0') < uint32(10) { + return Int32FromUint32(c - uint32('0')) + } + c = c | uint32(32) + if c-uint32('a') < uint32(6) { + return Int32FromUint32(c - uint32('a') + uint32(10)) + } + return -int32(1) +} + +func Xinet_pton(tls *TLS, af int32, s uintptr, a0 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v af=%v s=%v a0=%v, (%v:)", tls, af, s, a0, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var a, v4 uintptr + var brk, d, i, j, need_v4, v, v3, v9 int32 + var v5 bool + var _ /* ip at bp+0 */ [8]Tuint16_t + _, _, _, _, _, _, _, _, _, _, _ = a, brk, d, i, j, need_v4, v, v3, v4, v5, v9 + a = a0 + brk = -int32(1) + need_v4 = 0 + if af == int32(PF_INET) { + i = 0 + for { + if !(i < int32(4)) { + break + } + v3 = Int32FromInt32(0) + j = v3 + v = v3 + for { + if !(j < int32(3) && BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(s + uintptr(j))))-uint32('0') < uint32(10)) != 0) { + break + } + v = int32(10)*v + int32(**(**int8)(__ccgo_up(s + uintptr(j)))) - int32('0') + goto _2 + _2: + ; + j = j + 1 + } + if j == 0 || j > int32(1) && int32(**(**int8)(__ccgo_up(s))) == int32('0') || v > int32(255) { + return 0 + } + **(**uint8)(__ccgo_up(a + uintptr(i))) = Uint8FromInt32(v) + if int32(**(**int8)(__ccgo_up(s + uintptr(j)))) == 0 && i == int32(3) { + return int32(1) + } + if int32(**(**int8)(__ccgo_up(s + uintptr(j)))) != int32('.') { + return 0 + } + s = s + uintptr(j+int32(1)) + goto _1 + _1: + ; + i = i + 1 + } + return 0 + } else { + if af != int32(PF_INET6) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EAFNOSUPPORT) + return -int32(1) + } + } + if v5 = int32(**(**int8)(__ccgo_up(s))) == int32(':'); v5 { + s = s + 1 + v4 = s + } + if v5 && int32(**(**int8)(__ccgo_up(v4))) != int32(':') { + return 0 + } + i = 0 + for { + if int32(**(**int8)(__ccgo_up(s))) == int32(':') && brk < 0 { + brk = i + (**(**[8]Tuint16_t)(__ccgo_up(bp)))[i&int32(7)] = uint16(0) + s = s + 1 + v4 = s + if !(**(**int8)(__ccgo_up(v4)) != 0) { + break + } + if i == int32(7) { + return 0 + } + goto _6 + } + v3 = Int32FromInt32(0) + j = v3 + v = v3 + for { + if v5 = j < int32(4); v5 { + v9 = _hexval(tls, Uint32FromInt8(**(**int8)(__ccgo_up(s + uintptr(j))))) + d = v9 + } + if !(v5 && v9 >= 0) { + break + } + v = int32(16)*v + d + goto _8 + _8: + ; + j = j + 1 + } + if j == 0 { + return 0 + } + (**(**[8]Tuint16_t)(__ccgo_up(bp)))[i&int32(7)] = Uint16FromInt32(v) + if !(**(**int8)(__ccgo_up(s + uintptr(j))) != 0) && (brk >= 0 || i == int32(7)) { + break + } + if i == int32(7) { + return 0 + } + if int32(**(**int8)(__ccgo_up(s + uintptr(j)))) != int32(':') { + if int32(**(**int8)(__ccgo_up(s + uintptr(j)))) != int32('.') || i < int32(6) && brk < 0 { + return 0 + } + need_v4 = int32(1) + i = i + 1 + (**(**[8]Tuint16_t)(__ccgo_up(bp)))[i&int32(7)] = uint16(0) + break + } + s = s + uintptr(j+int32(1)) + goto _6 + _6: + ; + i = i + 1 + } + if brk >= 0 { + Xmemmove(tls, bp+uintptr(brk)*2+uintptr(7)*2-uintptr(i)*2, bp+uintptr(brk)*2, Uint32FromInt32(int32(2)*(i+int32(1)-brk))) + j = 0 + for { + if !(j < int32(7)-i) { + break + } + (**(**[8]Tuint16_t)(__ccgo_up(bp)))[brk+j] = uint16(0) + goto _12 + _12: + ; + j = j + 1 + } + } + j = 0 + for { + if !(j < int32(8)) { + break + } + v4 = a + a = a + 1 + **(**uint8)(__ccgo_up(v4)) = Uint8FromInt32(Int32FromUint16((**(**[8]Tuint16_t)(__ccgo_up(bp)))[j]) >> int32(8)) + v4 = a + a = a + 1 + **(**uint8)(__ccgo_up(v4)) = uint8((**(**[8]Tuint16_t)(__ccgo_up(bp)))[j]) + goto _13 + _13: + ; + j = j + 1 + } + if need_v4 != 0 && Xinet_pton(tls, int32(PF_INET), s, a-uintptr(4)) <= 0 { + return 0 + } + return int32(1) +} + +func Xlisten(tls *TLS, fd int32, backlog int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v backlog=%v, (%v:)", tls, fd, backlog, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + var r, v1, v10, v2, v3 int32 + var v4, v5, v6, v7, v8, v9 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _, _, _ = r, v1, v10, v2, v3, v4, v5, v6, v7, v8, v9 + v1 = int32(SYS_listen) + v2 = int32(__SC_listen) + v3 = 0 + v4 = fd + v5 = backlog + v6 = int32(Int32FromInt32(0)) + v7 = int32(Int32FromInt32(0)) + v8 = int32(Int32FromInt32(0)) + v9 = int32(Int32FromInt32(0)) + if v3 != 0 { + r = ___syscall_cp(tls, v1, v4, v5, v6, v7, v8, v9) + } else { + r = X__syscall6(tls, v1, v4, v5, v6, v7, v8, v9) + } + if r != int32(-Int32FromInt32(ENOSYS)) { + v10 = r + goto _11 + } + if v3 != 0 { + *(*[6]int32)(unsafe.Pointer(bp)) = [6]int32{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = ___syscall_cp(tls, int32(SYS_socketcall), v2, int32(bp), 0, 0, 0, 0) + } else { + *(*[6]int32)(unsafe.Pointer(bp + 24)) = [6]int32{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = X__syscall2(tls, int32(SYS_socketcall), v2, int32(bp+24)) + } + v10 = r + goto _11 +_11: + return X__syscall_ret(tls, Uint32FromInt32(v10)) +} + +func X__lookup_ipliteral(tls *TLS, buf uintptr, name uintptr, family int32) (r int32) { + if __ccgo_strace { + trc("tls=%v buf=%v name=%v family=%v, (%v:)", tls, buf, name, family, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(96) + defer tls.Free(96) + var p, v1 uintptr + var scopeid uint64 + var _ /* a4 at bp+0 */ Tin_addr + var _ /* a6 at bp+4 */ Tin6_addr + var _ /* tmp at bp+20 */ [64]int8 + var _ /* z at bp+84 */ uintptr + _, _, _ = p, scopeid, v1 + if X__inet_aton(tls, name, bp) > 0 { + if family == int32(PF_INET6) { /* wrong family */ + return -int32(5) + } + Xmemcpy(tls, buf+8, bp, uint32(4)) + (**(**Taddress)(__ccgo_up(buf))).Ffamily = int32(PF_INET) + (**(**Taddress)(__ccgo_up(buf))).Fscopeid = uint32(0) + return int32(1) + } + p = Xstrchr(tls, name, int32('%')) + scopeid = uint64(0) + if p != 0 && int32(p)-int32(name) < int32(64) { + Xmemcpy(tls, bp+20, name, Uint32FromInt32(int32(p)-int32(name))) + (**(**[64]int8)(__ccgo_up(bp + 20)))[int32(p)-int32(name)] = 0 + name = bp + 20 + } + if Xinet_pton(tls, int32(PF_INET6), name, bp+4) <= 0 { + return 0 + } + if family == int32(PF_INET) { /* wrong family */ + return -int32(5) + } + Xmemcpy(tls, buf+8, bp+4, uint32(16)) + (**(**Taddress)(__ccgo_up(buf))).Ffamily = int32(PF_INET6) + if p != 0 { + p = p + 1 + v1 = p + if BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(v1)))-uint32('0') < uint32(10)) != 0 { + scopeid = Xstrtoull(tls, p, bp+84, int32(10)) + } else { + **(**uintptr)(__ccgo_up(bp + 84)) = p - uintptr(1) + } + if **(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 84)))) != 0 { + if !(Int32FromUint8(**(**Tuint8_t)(__ccgo_up(bp + 4))) == int32(0xfe) && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(bp + 4 + 1)))&int32(0xc0) == int32(0x80)) && !(Int32FromUint8(**(**Tuint8_t)(__ccgo_up(bp + 4))) == int32(0xff) && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(bp + 4 + 1)))&int32(0xf) == int32(0x2)) { + return -int32(2) + } + scopeid = uint64(Xif_nametoindex(tls, p)) + if !(scopeid != 0) { + return -int32(2) + } + } + if scopeid > uint64(0xffffffff) { + return -int32(2) + } + } + (**(**Taddress)(__ccgo_up(buf))).Fscopeid = uint32(scopeid) + return int32(1) +} + +const ABUF_SIZE = 4800 +const DAS_MATCHINGLABEL = 268435456 +const DAS_MATCHINGSCOPE = 536870912 +const DAS_ORDER_SHIFT = 0 +const DAS_PREC_SHIFT = 20 +const DAS_PREFIX_SHIFT = 8 +const DAS_SCOPE_SHIFT = 16 +const DAS_USABLE = 1073741824 +const RR_A = 1 +const RR_AAAA = 28 +const RR_CNAME = 5 + +func _is_valid_hostname(tls *TLS, host uintptr) (r int32) { + var s uintptr + _ = s + if Xstrnlen(tls, host, uint32(255))-uint32(1) >= uint32(254) || Xmbstowcs(tls, uintptr(0), host, uint32(0)) == Uint32FromInt32(-Int32FromInt32(1)) { + return 0 + } + s = host + for { + if !(Int32FromUint8(**(**uint8)(__ccgo_up(s))) >= int32(0x80) || Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('.') || Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('-') || Xisalnum(tls, Int32FromUint8(**(**uint8)(__ccgo_up(s)))) != 0) { + break + } + goto _1 + _1: + ; + s = s + 1 + } + return BoolInt32(!(**(**uint8)(__ccgo_up(s)) != 0)) +} + +func _name_from_null(tls *TLS, buf uintptr, name uintptr, family int32, flags int32) (r int32) { + var cnt, v1 int32 + _, _ = cnt, v1 + cnt = 0 + if name != 0 { + return 0 + } + if flags&int32(AI_PASSIVE) != 0 { + if family != int32(PF_INET6) { + v1 = cnt + cnt = cnt + 1 + **(**Taddress)(__ccgo_up(buf + uintptr(v1)*28)) = Taddress{ + Ffamily: int32(PF_INET), + } + } + if family != int32(PF_INET) { + v1 = cnt + cnt = cnt + 1 + **(**Taddress)(__ccgo_up(buf + uintptr(v1)*28)) = Taddress{ + Ffamily: int32(PF_INET6), + } + } + } else { + if family != int32(PF_INET6) { + v1 = cnt + cnt = cnt + 1 + **(**Taddress)(__ccgo_up(buf + uintptr(v1)*28)) = Taddress{ + Ffamily: int32(PF_INET), + Faddr: [16]Tuint8_t{ + 0: uint8(127), + 3: uint8(1), + }, + } + } + if family != int32(PF_INET) { + v1 = cnt + cnt = cnt + 1 + **(**Taddress)(__ccgo_up(buf + uintptr(v1)*28)) = Taddress{ + Ffamily: int32(PF_INET6), + Faddr: [16]Tuint8_t{ + 15: uint8(1), + }, + } + } + } + return cnt +} + +func _name_from_numeric(tls *TLS, buf uintptr, name uintptr, family int32) (r int32) { + return X__lookup_ipliteral(tls, buf, name, family) +} + +func _name_from_hosts(tls *TLS, buf uintptr, canon uintptr, name uintptr, family int32) (r int32) { + bp := tls.Alloc(1680) + defer tls.Free(1680) + var badfam, cnt, have_canon, v5, v6, v8, v9 int32 + var f, p, z, v1, v2 uintptr + var l Tsize_t + var v11, v12 bool + var _ /* _buf at bp+512 */ [1032]uint8 + var _ /* _f at bp+1544 */ TFILE + var _ /* line at bp+0 */ [512]int8 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = badfam, cnt, f, have_canon, l, p, z, v1, v11, v12, v2, v5, v6, v8, v9 + l = _strlen(tls, name) + cnt = 0 + badfam = 0 + have_canon = 0 + f = X__fopen_rb_ca(tls, __ccgo_ts+931, bp+1544, bp+512, uint32(1032)) + if !(f != 0) { + switch **(**int32)(__ccgo_up(X__errno_location(tls))) { + case int32(ENOENT): + fallthrough + case int32(ENOTDIR): + fallthrough + case int32(EACCES): + return 0 + default: + return -int32(11) + } + } + for Xfgets(tls, bp, int32(512), f) != 0 && cnt < int32(MAXADDRS) { + v1 = Xstrchr(tls, bp, int32('#')) + p = v1 + if v1 != 0 { + v2 = p + p = p + 1 + **(**int8)(__ccgo_up(v2)) = int8('\n') + **(**int8)(__ccgo_up(p)) = Int8FromInt32(0) + } + p = bp + uintptr(1) + for { + v1 = Xstrstr(tls, p, name) + p = v1 + if v12 = v1 != 0; v12 { + v5 = int32(**(**int8)(__ccgo_up(p + uintptr(-Int32FromInt32(1))))) + v6 = BoolInt32(v5 == int32(' ') || Uint32FromInt32(v5)-uint32('\t') < uint32(5)) + goto _7 + _7: + ; + if v11 = !(v6 != 0); !v11 { + v8 = int32(**(**int8)(__ccgo_up(p + uintptr(l)))) + v9 = BoolInt32(v8 == int32(' ') || Uint32FromInt32(v8)-uint32('\t') < uint32(5)) + goto _10 + _10: + } + } + if !(v12 && (v11 || !(v9 != 0))) { + break + } + goto _3 + _3: + ; + p = p + 1 + } + if !(p != 0) { + continue + } + /* Isolate IP address to parse */ + p = bp + for { + if v11 = **(**int8)(__ccgo_up(p)) != 0; v11 { + v5 = int32(**(**int8)(__ccgo_up(p))) + v6 = BoolInt32(v5 == int32(' ') || Uint32FromInt32(v5)-uint32('\t') < uint32(5)) + goto _16 + _16: + } + if !(v11 && !(v6 != 0)) { + break + } + goto _13 + _13: + ; + p = p + 1 + } + v1 = p + p = p + 1 + **(**int8)(__ccgo_up(v1)) = 0 + switch _name_from_numeric(tls, buf+uintptr(cnt)*28, bp, family) { + case int32(1): + cnt = cnt + 1 + case 0: + continue + default: + badfam = -int32(5) + break + } + if have_canon != 0 { + continue + } + /* Extract first name as canonical name */ + for { + if v11 = **(**int8)(__ccgo_up(p)) != 0; v11 { + v5 = int32(**(**int8)(__ccgo_up(p))) + v6 = BoolInt32(v5 == int32(' ') || Uint32FromInt32(v5)-uint32('\t') < uint32(5)) + goto _22 + _22: + } + if !(v11 && v6 != 0) { + break + } + goto _19 + _19: + ; + p = p + 1 + } + z = p + for { + if v11 = **(**int8)(__ccgo_up(z)) != 0; v11 { + v5 = int32(**(**int8)(__ccgo_up(z))) + v6 = BoolInt32(v5 == int32(' ') || Uint32FromInt32(v5)-uint32('\t') < uint32(5)) + goto _27 + _27: + } + if !(v11 && !(v6 != 0)) { + break + } + goto _24 + _24: + ; + z = z + 1 + } + **(**int8)(__ccgo_up(z)) = 0 + if _is_valid_hostname(tls, p) != 0 { + have_canon = int32(1) + Xmemcpy(tls, canon, p, Uint32FromInt32(int32(z)-int32(p)+int32(1))) + } + } + X__fclose_ca(tls, f) + if cnt != 0 { + v5 = cnt + } else { + v5 = badfam + } + return v5 +} + +type Tdpc_ctx = struct { + Faddrs uintptr + Fcanon uintptr + Fcnt int32 + Frrtype int32 +} + +func _dns_parse_callback1(tls *TLS, c uintptr, rr int32, data uintptr, len1 int32, packet uintptr, plen int32) (r int32) { + bp := tls.Alloc(256) + defer tls.Free(256) + var ctx, v2 uintptr + var family, v1 int32 + var _ /* tmp at bp+0 */ [256]int8 + _, _, _, _ = ctx, family, v1, v2 + ctx = c + if rr == int32(RR_CNAME) { + if X__dn_expand(tls, packet, packet+uintptr(plen), data, bp, int32(256)) > 0 && _is_valid_hostname(tls, bp) != 0 { + Xstrcpy(tls, (*Tdpc_ctx)(unsafe.Pointer(ctx)).Fcanon, bp) + } + return 0 + } + if (*Tdpc_ctx)(unsafe.Pointer(ctx)).Fcnt >= int32(MAXADDRS) { + return 0 + } + if rr != (*Tdpc_ctx)(unsafe.Pointer(ctx)).Frrtype { + return 0 + } + switch rr { + case int32(RR_A): + if len1 != int32(4) { + return -int32(1) + } + family = int32(PF_INET) + case int32(RR_AAAA): + if len1 != int32(16) { + return -int32(1) + } + family = int32(PF_INET6) + break + } + (**(**Taddress)(__ccgo_up((*Tdpc_ctx)(unsafe.Pointer(ctx)).Faddrs + uintptr((*Tdpc_ctx)(unsafe.Pointer(ctx)).Fcnt)*28))).Ffamily = family + (**(**Taddress)(__ccgo_up((*Tdpc_ctx)(unsafe.Pointer(ctx)).Faddrs + uintptr((*Tdpc_ctx)(unsafe.Pointer(ctx)).Fcnt)*28))).Fscopeid = uint32(0) + v2 = ctx + 8 + v1 = *(*int32)(unsafe.Pointer(v2)) + *(*int32)(unsafe.Pointer(v2)) = *(*int32)(unsafe.Pointer(v2)) + 1 + Xmemcpy(tls, (*Tdpc_ctx)(unsafe.Pointer(ctx)).Faddrs+uintptr(v1)*28+8, data, Uint32FromInt32(len1)) + return 0 +} + +func _name_from_dns(tls *TLS, buf uintptr, canon uintptr, name uintptr, family int32, conf uintptr) (r int32) { + bp := tls.Alloc(10208) + defer tls.Free(10208) + var i, nq int32 + var qtypes [2]int32 + var _ /* abuf at bp+560 */ [2][4800]uint8 + var _ /* alens at bp+10184 */ [2]int32 + var _ /* ap at bp+10168 */ [2]uintptr + var _ /* ctx at bp+10192 */ Tdpc_ctx + var _ /* qbuf at bp+0 */ [2][280]uint8 + var _ /* qlens at bp+10176 */ [2]int32 + var _ /* qp at bp+10160 */ [2]uintptr + _, _, _ = i, nq, qtypes + **(**[2]uintptr)(__ccgo_up(bp + 10160)) = [2]uintptr{ + 0: bp, + 1: bp + 1*280, + } + **(**[2]uintptr)(__ccgo_up(bp + 10168)) = [2]uintptr{ + 0: bp + 560, + 1: bp + 560 + 1*4800, + } + nq = 0 + **(**Tdpc_ctx)(__ccgo_up(bp + 10192)) = Tdpc_ctx{ + Faddrs: buf, + Fcanon: canon, + } + i = 0 + for { + if !(i < int32(2)) { + break + } + if family != _afrr[i].Faf { + (**(**[2]int32)(__ccgo_up(bp + 10176)))[nq] = X__res_mkquery(tls, 0, name, int32(1), _afrr[i].Frr, uintptr(0), 0, uintptr(0), bp+uintptr(nq)*280, int32(280)) + if (**(**[2]int32)(__ccgo_up(bp + 10176)))[nq] == -int32(1) { + return 0 + } + qtypes[nq] = _afrr[i].Frr + **(**uint8)(__ccgo_up(bp + uintptr(nq)*280 + 3)) = uint8(0) /* don't need AD flag */ + /* Ensure query IDs are distinct. */ + if nq != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(bp + uintptr(nq)*280))) == Int32FromUint8(**(**uint8)(__ccgo_up(bp))) { + **(**uint8)(__ccgo_up(bp + uintptr(nq)*280)) = **(**uint8)(__ccgo_up(bp + uintptr(nq)*280)) + 1 + } + nq = nq + 1 + } + goto _1 + _1: + ; + i = i + 1 + } + if X__res_msend_rc(tls, nq, bp+10160, bp+10176, bp+10168, bp+10184, int32(4800), conf) < 0 { + return -int32(11) + } + i = 0 + for { + if !(i < nq) { + break + } + if (**(**[2]int32)(__ccgo_up(bp + 10184)))[i] < int32(4) || Int32FromUint8(**(**uint8)(__ccgo_up(bp + 560 + uintptr(i)*4800 + 3)))&int32(15) == int32(2) { + return -int32(3) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(bp + 560 + uintptr(i)*4800 + 3)))&int32(15) == int32(3) { + return 0 + } + if Int32FromUint8(**(**uint8)(__ccgo_up(bp + 560 + uintptr(i)*4800 + 3)))&int32(15) != 0 { + return -int32(4) + } + goto _2 + _2: + ; + i = i + 1 + } + i = nq - int32(1) + for { + if !(i >= 0) { + break + } + (**(**Tdpc_ctx)(__ccgo_up(bp + 10192))).Frrtype = qtypes[i] + if Uint32FromInt32((**(**[2]int32)(__ccgo_up(bp + 10184)))[i]) > uint32(4800) { + (**(**[2]int32)(__ccgo_up(bp + 10184)))[i] = int32(4800) + } + X__dns_parse(tls, bp+560+uintptr(i)*4800, (**(**[2]int32)(__ccgo_up(bp + 10184)))[i], __ccgo_fp(_dns_parse_callback1), bp+10192) + goto _3 + _3: + ; + i = i - 1 + } + if (**(**Tdpc_ctx)(__ccgo_up(bp + 10192))).Fcnt != 0 { + return (**(**Tdpc_ctx)(__ccgo_up(bp + 10192))).Fcnt + } + return -int32(5) +} + +var _afrr = [2]struct { + Faf int32 + Frr int32 +}{ + 0: { + Faf: int32(PF_INET6), + Frr: int32(RR_A), + }, + 1: { + Faf: int32(PF_INET), + Frr: int32(RR_AAAA), + }, +} + +func _name_from_dns_search(tls *TLS, buf uintptr, canon uintptr, name uintptr, family int32) (r int32) { + bp := tls.Alloc(368) + defer tls.Free(368) + var cnt, v5, v6 int32 + var dots, l, v2 Tsize_t + var p, z uintptr + var v12 bool + var _ /* conf at bp+256 */ Tresolvconf + var _ /* search at bp+0 */ [256]int8 + _, _, _, _, _, _, _, _, _ = cnt, dots, l, p, z, v12, v2, v5, v6 + if X__get_resolv_conf(tls, bp+256, bp, uint32(256)) < 0 { + return -int32(1) + } + /* Count dots, suppress search when >=ndots or name ends in + * a dot, which is an explicit request for global scope. */ + v2 = Uint32FromInt32(0) + l = v2 + dots = v2 + for { + if !(**(**int8)(__ccgo_up(name + uintptr(l))) != 0) { + break + } + if int32(**(**int8)(__ccgo_up(name + uintptr(l)))) == int32('.') { + dots = dots + 1 + } + goto _1 + _1: + ; + l = l + 1 + } + if dots >= (**(**Tresolvconf)(__ccgo_up(bp + 256))).Fndots || int32(**(**int8)(__ccgo_up(name + uintptr(l-uint32(1))))) == int32('.') { + **(**int8)(__ccgo_up(bp)) = 0 + } + /* Strip final dot for canon, fail if multiple trailing dots. */ + if int32(**(**int8)(__ccgo_up(name + uintptr(l-uint32(1))))) == int32('.') { + l = l - 1 + } + if !(l != 0) || int32(**(**int8)(__ccgo_up(name + uintptr(l-uint32(1))))) == int32('.') { + return -int32(2) + } + /* This can never happen; the caller already checked length. */ + if l >= uint32(256) { + return -int32(2) + } + /* Name with search domain appended is setup in canon[]. This both + * provides the desired default canonical name (if the requested + * name is not a CNAME record) and serves as a buffer for passing + * the full requested name to name_from_dns. */ + Xmemcpy(tls, canon, name, l) + **(**int8)(__ccgo_up(canon + uintptr(l))) = int8('.') + p = bp + for { + if !(**(**int8)(__ccgo_up(p)) != 0) { + break + } + for { + v5 = int32(**(**int8)(__ccgo_up(p))) + v6 = BoolInt32(v5 == int32(' ') || Uint32FromInt32(v5)-uint32('\t') < uint32(5)) + goto _7 + _7: + if !(v6 != 0) { + break + } + goto _4 + _4: + ; + p = p + 1 + } + z = p + for { + if v12 = **(**int8)(__ccgo_up(z)) != 0; v12 { + v5 = int32(**(**int8)(__ccgo_up(z))) + v6 = BoolInt32(v5 == int32(' ') || Uint32FromInt32(v5)-uint32('\t') < uint32(5)) + goto _11 + _11: + } + if !(v12 && !(v6 != 0)) { + break + } + goto _8 + _8: + ; + z = z + 1 + } + if z == p { + break + } + if Uint32FromInt32(int32(z)-int32(p)) < uint32(256)-l-uint32(1) { + Xmemcpy(tls, canon+uintptr(l)+uintptr(1), p, Uint32FromInt32(int32(z)-int32(p))) + **(**int8)(__ccgo_up(canon + uintptr(Uint32FromInt32(int32(z)-int32(p)+int32(1))+l))) = 0 + cnt = _name_from_dns(tls, buf, canon, canon, family, bp+256) + if cnt != 0 { + return cnt + } + } + goto _3 + _3: + ; + p = z + } + **(**int8)(__ccgo_up(canon + uintptr(l))) = 0 + return _name_from_dns(tls, buf, canon, name, family, bp+256) +} + +type Tpolicy = struct { + Faddr [16]uint8 + Flen1 uint8 + Fmask uint8 + Fprec uint8 + Flabel uint8 +} + +var _defpolicy = [6]Tpolicy{ + 0: { + Faddr: [16]uint8{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1}, + Flen1: uint8(15), + Fmask: uint8(0xff), + Fprec: uint8(50), + }, + 1: { + Faddr: [16]uint8{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255}, + Flen1: uint8(11), + Fmask: uint8(0xff), + Fprec: uint8(35), + Flabel: uint8(4), + }, + 2: { + Faddr: [16]uint8{' ', 2}, + Flen1: uint8(1), + Fmask: uint8(0xff), + Fprec: uint8(30), + Flabel: uint8(2), + }, + 3: { + Faddr: [16]uint8{' ', 1}, + Flen1: uint8(3), + Fmask: uint8(0xff), + Fprec: uint8(5), + Flabel: uint8(5), + }, + 4: { + Faddr: [16]uint8{252}, + Fmask: uint8(0xfe), + Fprec: uint8(3), + Flabel: uint8(13), + }, + 5: { + Faddr: [16]uint8{}, + Fprec: uint8(40), + Flabel: uint8(1), + }, +} + +func _policyof(tls *TLS, a uintptr) (r uintptr) { + var i int32 + _ = i + i = 0 + for { + if Xmemcmp(tls, a, uintptr(unsafe.Pointer(&_defpolicy))+uintptr(i)*20, uint32(_defpolicy[i].Flen1)) != 0 { + goto _1 + } + if Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a + uintptr(_defpolicy[i].Flen1))))&Int32FromUint8(_defpolicy[i].Fmask) != Int32FromUint8(**(**uint8)(__ccgo_up(uintptr(unsafe.Pointer(&_defpolicy)) + uintptr(i)*20 + uintptr(_defpolicy[i].Flen1)))) { + goto _1 + } + return uintptr(unsafe.Pointer(&_defpolicy)) + uintptr(i)*20 + goto _1 + _1: + ; + i = i + 1 + } + return r +} + +func _labelof(tls *TLS, a uintptr) (r int32) { + return Int32FromUint8((*Tpolicy)(unsafe.Pointer(_policyof(tls, a))).Flabel) +} + +func _scopeof(tls *TLS, a uintptr) (r int32) { + if Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a))) == int32(0xff) { + return Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a + 1))) & int32(15) + } + if Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a))) == int32(0xfe) && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a + 1)))&int32(0xc0) == int32(0x80) { + return int32(2) + } + if **(**Tuint32_t)(__ccgo_up(a)) == uint32(0) && **(**Tuint32_t)(__ccgo_up(a + 1*4)) == uint32(0) && **(**Tuint32_t)(__ccgo_up(a + 2*4)) == uint32(0) && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a + 12))) == 0 && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a + 13))) == 0 && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a + 14))) == 0 && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a + 15))) == int32(1) { + return int32(2) + } + if Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a))) == int32(0xfe) && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a + 1)))&int32(0xc0) == int32(0xc0) { + return int32(5) + } + return int32(14) +} + +func _prefixmatch(tls *TLS, s uintptr, d uintptr) (r int32) { + var i uint32 + _ = i + i = uint32(0) + for { + if !(i < uint32(128) && !((Int32FromUint8(**(**Tuint8_t)(__ccgo_up(s + uintptr(i/uint32(8)))))^Int32FromUint8(**(**Tuint8_t)(__ccgo_up(d + uintptr(i/uint32(8))))))&(Int32FromInt32(128)>>(i%Uint32FromInt32(8))) != 0)) { + break + } + goto _1 + _1: + ; + i = i + 1 + } + return Int32FromUint32(i) +} + +func _addrcmp(tls *TLS, _a uintptr, _b uintptr) (r int32) { + var a, b uintptr + _, _ = a, b + a = _a + b = _b + return (*Taddress)(unsafe.Pointer(b)).Fsortkey - (*Taddress)(unsafe.Pointer(a)).Fsortkey +} + +func X__lookup_name(tls *TLS, buf uintptr, canon uintptr, name uintptr, family int32, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v buf=%v canon=%v name=%v family=%v flags=%v, (%v:)", tls, buf, canon, name, family, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(96) + defer tls.Free(96) + var cnt, dlabel, dprec, dscope, family1, fd, i, j, key, prefixlen, v1 int32 + var da, dpolicy, sa uintptr + var dalen Tsocklen_t + var l Tsize_t + var _ /* cs at bp+0 */ int32 + var _ /* da4 at bp+76 */ Tsockaddr_in + var _ /* da6 at bp+32 */ Tsockaddr_in6 + var _ /* sa4 at bp+60 */ Tsockaddr_in + var _ /* sa6 at bp+4 */ Tsockaddr_in6 + var _ /* salen at bp+92 */ Tsocklen_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = cnt, da, dalen, dlabel, dpolicy, dprec, dscope, family1, fd, i, j, key, l, prefixlen, sa, v1 + cnt = 0 + **(**int8)(__ccgo_up(canon)) = 0 + if name != 0 { + /* reject empty name and check len so it fits into temp bufs */ + l = Xstrnlen(tls, name, uint32(255)) + if l-uint32(1) >= uint32(254) { + return -int32(2) + } + Xmemcpy(tls, canon, name, l+uint32(1)) + } + /* Procedurally, a request for v6 addresses with the v4-mapped + * flag set is like a request for unspecified family, followed + * by filtering of the results. */ + if flags&int32(AI_V4MAPPED) != 0 { + if family == int32(PF_INET6) { + family = PF_UNSPEC + } else { + flags = flags - int32(AI_V4MAPPED) + } + } + /* Try each backend until there's at least one result. */ + cnt = _name_from_null(tls, buf, name, family, flags) + if !(cnt != 0) { + cnt = _name_from_numeric(tls, buf, name, family) + } + if !(cnt != 0) && !(flags&Int32FromInt32(AI_NUMERICHOST) != 0) { + cnt = _name_from_hosts(tls, buf, canon, name, family) + if !(cnt != 0) { + cnt = _name_from_dns_search(tls, buf, canon, name, family) + } + } + if cnt <= 0 { + if cnt != 0 { + v1 = cnt + } else { + v1 = -int32(2) + } + return v1 + } + /* Filter/transform results for v4-mapped lookup, if requested. */ + if flags&int32(AI_V4MAPPED) != 0 { + if !(flags&Int32FromInt32(AI_ALL) != 0) { + /* If any v6 results exist, remove v4 results. */ + i = 0 + for { + if !(i < cnt && (**(**Taddress)(__ccgo_up(buf + uintptr(i)*28))).Ffamily != int32(PF_INET6)) { + break + } + goto _2 + _2: + ; + i = i + 1 + } + if i < cnt { + j = 0 + for { + if !(i < cnt) { + break + } + if (**(**Taddress)(__ccgo_up(buf + uintptr(i)*28))).Ffamily == int32(PF_INET6) { + v1 = j + j = j + 1 + **(**Taddress)(__ccgo_up(buf + uintptr(v1)*28)) = **(**Taddress)(__ccgo_up(buf + uintptr(i)*28)) + } + goto _3 + _3: + ; + i = i + 1 + } + v1 = j + i = v1 + cnt = v1 + } + } + /* Translate any remaining v4 results to v6 */ + i = 0 + for { + if !(i < cnt) { + break + } + if (**(**Taddress)(__ccgo_up(buf + uintptr(i)*28))).Ffamily != int32(PF_INET) { + goto _6 + } + Xmemcpy(tls, buf+uintptr(i)*28+8+uintptr(12), buf+uintptr(i)*28+8, uint32(4)) + Xmemcpy(tls, buf+uintptr(i)*28+8, __ccgo_ts+942, uint32(12)) + (**(**Taddress)(__ccgo_up(buf + uintptr(i)*28))).Ffamily = int32(PF_INET6) + goto _6 + _6: + ; + i = i + 1 + } + } + /* No further processing is needed if there are fewer than 2 + * results or if there are only IPv4 results. */ + if cnt < int32(2) || family == int32(PF_INET) { + return cnt + } + i = 0 + for { + if !(i < cnt) { + break + } + if (**(**Taddress)(__ccgo_up(buf + uintptr(i)*28))).Ffamily != int32(PF_INET) { + break + } + goto _7 + _7: + ; + i = i + 1 + } + if i == cnt { + return cnt + } + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp) + /* The following implements a subset of RFC 3484/6724 destination + * address selection by generating a single 31-bit sort key for + * each address. Rules 3, 4, and 7 are omitted for having + * excessive runtime and code size cost and dubious benefit. + * So far the label/precedence table cannot be customized. */ + i = 0 + for { + if !(i < cnt) { + break + } + family1 = (**(**Taddress)(__ccgo_up(buf + uintptr(i)*28))).Ffamily + key = 0 + **(**Tsockaddr_in6)(__ccgo_up(bp + 4)) = Tsockaddr_in6{} + **(**Tsockaddr_in6)(__ccgo_up(bp + 32)) = Tsockaddr_in6{ + Fsin6_family: uint16(PF_INET6), + Fsin6_port: uint16(65535), + Fsin6_scope_id: (**(**Taddress)(__ccgo_up(buf + uintptr(i)*28))).Fscopeid, + } + **(**Tsockaddr_in)(__ccgo_up(bp + 60)) = Tsockaddr_in{} + **(**Tsockaddr_in)(__ccgo_up(bp + 76)) = Tsockaddr_in{ + Fsin_family: uint16(PF_INET), + Fsin_port: uint16(65535), + } + if family1 == int32(PF_INET6) { + Xmemcpy(tls, bp+32+8, buf+uintptr(i)*28+8, uint32(16)) + da = bp + 32 + dalen = uint32(28) + sa = bp + 4 + **(**Tsocklen_t)(__ccgo_up(bp + 92)) = uint32(28) + } else { + Xmemcpy(tls, bp+4+8, __ccgo_ts+942, uint32(12)) + Xmemcpy(tls, bp+32+8+uintptr(12), buf+uintptr(i)*28+8, uint32(4)) + Xmemcpy(tls, bp+32+8, __ccgo_ts+942, uint32(12)) + Xmemcpy(tls, bp+32+8+uintptr(12), buf+uintptr(i)*28+8, uint32(4)) + Xmemcpy(tls, bp+76+4, buf+uintptr(i)*28+8, uint32(4)) + da = bp + 76 + dalen = uint32(16) + sa = bp + 60 + **(**Tsocklen_t)(__ccgo_up(bp + 92)) = uint32(16) + } + dpolicy = _policyof(tls, bp+32+8) + dscope = _scopeof(tls, bp+32+8) + dlabel = Int32FromUint8((*Tpolicy)(unsafe.Pointer(dpolicy)).Flabel) + dprec = Int32FromUint8((*Tpolicy)(unsafe.Pointer(dpolicy)).Fprec) + prefixlen = 0 + fd = Xsocket(tls, family1, Int32FromInt32(SOCK_DGRAM)|Int32FromInt32(SOCK_CLOEXEC), int32(IPPROTO_UDP)) + if fd >= 0 { + if !(Xconnect(tls, fd, da, dalen) != 0) { + key = key | int32(DAS_USABLE) + if !(Xgetsockname(tls, fd, sa, bp+92) != 0) { + if family1 == int32(PF_INET) { + Xmemcpy(tls, bp+4+8+uintptr(12), bp+60+4, uint32(4)) + } + if dscope == _scopeof(tls, bp+4+8) { + key = key | int32(DAS_MATCHINGSCOPE) + } + if dlabel == _labelof(tls, bp+4+8) { + key = key | int32(DAS_MATCHINGLABEL) + } + prefixlen = _prefixmatch(tls, bp+4+8, bp+32+8) + } + } + Xclose(tls, fd) + } + key = key | dprec< %v", r) }() + } + bp := tls.Alloc(1312) + defer tls.Free(1312) + var cnt, v1, v2 int32 + var f, p, v3, v4 uintptr + var l Tsize_t + var port uint32 + var v10 bool + var _ /* _buf at bp+132 */ [1032]uint8 + var _ /* _f at bp+1164 */ TFILE + var _ /* line at bp+0 */ [128]int8 + var _ /* z at bp+128 */ uintptr + _, _, _, _, _, _, _, _, _, _ = cnt, f, l, p, port, v1, v10, v2, v3, v4 + cnt = 0 + **(**uintptr)(__ccgo_up(bp + 128)) = __ccgo_ts + port = uint32(0) + switch socktype { + case int32(SOCK_STREAM): + switch proto { + case 0: + proto = int32(IPPROTO_TCP) + fallthrough + case int32(IPPROTO_TCP): + default: + return -int32(8) + } + case int32(SOCK_DGRAM): + switch proto { + case 0: + proto = int32(IPPROTO_UDP) + fallthrough + case int32(IPPROTO_UDP): + default: + return -int32(8) + } + fallthrough + case 0: + default: + if name != 0 { + return -int32(8) + } + (**(**Tservice)(__ccgo_up(buf))).Fport = uint16(0) + (**(**Tservice)(__ccgo_up(buf))).Fproto = Uint8FromInt32(proto) + (**(**Tservice)(__ccgo_up(buf))).Fsocktype = Uint8FromInt32(socktype) + return int32(1) + } + if name != 0 { + if !(**(**int8)(__ccgo_up(name)) != 0) { + return -int32(8) + } + port = Xstrtoul(tls, name, bp+128, int32(10)) + } + if !(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 128)))) != 0) { + if port > uint32(65535) { + return -int32(8) + } + if proto != int32(IPPROTO_UDP) { + (**(**Tservice)(__ccgo_up(buf + uintptr(cnt)*4))).Fport = uint16(port) + (**(**Tservice)(__ccgo_up(buf + uintptr(cnt)*4))).Fsocktype = uint8(SOCK_STREAM) + v1 = cnt + cnt = cnt + 1 + (**(**Tservice)(__ccgo_up(buf + uintptr(v1)*4))).Fproto = uint8(IPPROTO_TCP) + } + if proto != int32(IPPROTO_TCP) { + (**(**Tservice)(__ccgo_up(buf + uintptr(cnt)*4))).Fport = uint16(port) + (**(**Tservice)(__ccgo_up(buf + uintptr(cnt)*4))).Fsocktype = uint8(SOCK_DGRAM) + v1 = cnt + cnt = cnt + 1 + (**(**Tservice)(__ccgo_up(buf + uintptr(v1)*4))).Fproto = uint8(IPPROTO_UDP) + } + return cnt + } + if flags&int32(AI_NUMERICSERV) != 0 { + return -int32(2) + } + l = _strlen(tls, name) + f = X__fopen_rb_ca(tls, __ccgo_ts+955, bp+1164, bp+132, uint32(1032)) + if !(f != 0) { + switch **(**int32)(__ccgo_up(X__errno_location(tls))) { + case int32(ENOENT): + fallthrough + case int32(ENOTDIR): + fallthrough + case int32(EACCES): + return -int32(8) + default: + return -int32(11) + } + } + for Xfgets(tls, bp, int32(128), f) != 0 && cnt < int32(MAXSERVS) { + v3 = Xstrchr(tls, bp, int32('#')) + p = v3 + if v3 != 0 { + v4 = p + p = p + 1 + **(**int8)(__ccgo_up(v4)) = int8('\n') + **(**int8)(__ccgo_up(p)) = Int8FromInt32(0) + } + /* Find service name */ + p = bp + for { + v3 = Xstrstr(tls, p, name) + p = v3 + if !(v3 != 0) { + break + } + if v10 = p > bp; v10 { + v1 = int32(**(**int8)(__ccgo_up(p + uintptr(-Int32FromInt32(1))))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _9 + _9: + } + if v10 && !(v2 != 0) { + goto _5 + } + if v10 = **(**int8)(__ccgo_up(p + uintptr(l))) != 0; v10 { + v1 = int32(**(**int8)(__ccgo_up(p + uintptr(l)))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _13 + _13: + } + if v10 && !(v2 != 0) { + goto _5 + } + break + goto _5 + _5: + ; + p = p + 1 + } + if !(p != 0) { + continue + } + /* Skip past canonical name at beginning of line */ + p = bp + for { + if v10 = **(**int8)(__ccgo_up(p)) != 0; v10 { + v1 = int32(**(**int8)(__ccgo_up(p))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _18 + _18: + } + if !(v10 && !(v2 != 0)) { + break + } + goto _15 + _15: + ; + p = p + 1 + } + port = Xstrtoul(tls, p, bp+128, int32(10)) + if port > uint32(65535) || **(**uintptr)(__ccgo_up(bp + 128)) == p { + continue + } + if !(Xstrncmp(tls, **(**uintptr)(__ccgo_up(bp + 128)), __ccgo_ts+969, uint32(4)) != 0) { + if proto == int32(IPPROTO_TCP) { + continue + } + (**(**Tservice)(__ccgo_up(buf + uintptr(cnt)*4))).Fport = uint16(port) + (**(**Tservice)(__ccgo_up(buf + uintptr(cnt)*4))).Fsocktype = uint8(SOCK_DGRAM) + v1 = cnt + cnt = cnt + 1 + (**(**Tservice)(__ccgo_up(buf + uintptr(v1)*4))).Fproto = uint8(IPPROTO_UDP) + } + if !(Xstrncmp(tls, **(**uintptr)(__ccgo_up(bp + 128)), __ccgo_ts+974, uint32(4)) != 0) { + if proto == int32(IPPROTO_UDP) { + continue + } + (**(**Tservice)(__ccgo_up(buf + uintptr(cnt)*4))).Fport = uint16(port) + (**(**Tservice)(__ccgo_up(buf + uintptr(cnt)*4))).Fsocktype = uint8(SOCK_STREAM) + v1 = cnt + cnt = cnt + 1 + (**(**Tservice)(__ccgo_up(buf + uintptr(v1)*4))).Fproto = uint8(IPPROTO_TCP) + } + } + X__fclose_ca(tls, f) + if cnt > 0 { + v1 = cnt + } else { + v1 = -int32(8) + } + return v1 +} + +func ___netlink_enumerate(tls *TLS, fd int32, seq uint32, type1 int32, af int32, __ccgo_fp_cb uintptr, ctx uintptr) (r1 int32) { + bp := tls.Alloc(8192) + defer tls.Free(8192) + var h uintptr + var r, ret int32 + var _ /* u at bp+0 */ struct { + Freq [0]struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + } + Freply [0]Tnlmsghdr + Fbuf [8192]Tuint8_t + } + _, _, _ = h, r, ret + Xmemset(tls, bp, 0, uint32(20)) + (*(*struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + })(unsafe.Pointer(&**(**struct { + Freq [0]struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + } + Freply [0]Tnlmsghdr + Fbuf [8192]Tuint8_t + })(__ccgo_up(bp))))).Fnlh.Fnlmsg_len = uint32(20) + (*(*struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + })(unsafe.Pointer(&**(**struct { + Freq [0]struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + } + Freply [0]Tnlmsghdr + Fbuf [8192]Tuint8_t + })(__ccgo_up(bp))))).Fnlh.Fnlmsg_type = Uint16FromInt32(type1) + (*(*struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + })(unsafe.Pointer(&**(**struct { + Freq [0]struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + } + Freply [0]Tnlmsghdr + Fbuf [8192]Tuint8_t + })(__ccgo_up(bp))))).Fnlh.Fnlmsg_flags = Uint16FromInt32(Int32FromInt32(NLM_F_ROOT) | Int32FromInt32(NLM_F_MATCH) | Int32FromInt32(NLM_F_REQUEST)) + (*(*struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + })(unsafe.Pointer(&**(**struct { + Freq [0]struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + } + Freply [0]Tnlmsghdr + Fbuf [8192]Tuint8_t + })(__ccgo_up(bp))))).Fnlh.Fnlmsg_seq = seq + (*(*struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + })(unsafe.Pointer(&**(**struct { + Freq [0]struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + } + Freply [0]Tnlmsghdr + Fbuf [8192]Tuint8_t + })(__ccgo_up(bp))))).Fg.Frtgen_family = Uint8FromInt32(af) + r = Xsend(tls, fd, bp, uint32(20), 0) + if r < 0 { + return r + } + for int32(1) != 0 { + r = Xrecv(tls, fd, bp, uint32(8192), int32(MSG_DONTWAIT)) + if r <= 0 { + return -int32(1) + } + h = bp + for { + if !(Uint32FromInt32(int32(bp+uintptr(r))-int32(h)) >= uint32(16)) { + break + } + if Int32FromUint16((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_type) == int32(NLMSG_DONE) { + return 0 + } + if Int32FromUint16((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_type) == int32(NLMSG_ERROR) { + return -int32(1) + } + ret = (*(*func(*TLS, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cb})))(tls, ctx, h) + if ret != 0 { + return ret + } + goto _1 + _1: + ; + h = h + uintptr(((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_len+Uint32FromInt32(3))&Uint32FromInt32(^Int32FromInt32(3))) + } + } + return r1 +} + +type t__ccgo_fp__X__rtnetlink_enumerate_2 = func(*TLS, uintptr, uintptr) int32 + +func X__rtnetlink_enumerate(tls *TLS, link_af int32, addr_af int32, __ccgo_fp_cb uintptr, ctx uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v link_af=%v addr_af=%v __ccgo_fp_cb=%v ctx=%v, (%v:)", tls, link_af, addr_af, __ccgo_fp_cb, ctx, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var fd, r int32 + _, _ = fd, r + fd = Xsocket(tls, int32(PF_NETLINK), Int32FromInt32(SOCK_RAW)|Int32FromInt32(SOCK_CLOEXEC), NETLINK_ROUTE) + if fd < 0 { + return -int32(1) + } + r = ___netlink_enumerate(tls, fd, uint32(1), int32(RTM_GETLINK), link_af, __ccgo_fp_cb, ctx) + if !(r != 0) { + r = ___netlink_enumerate(tls, fd, uint32(2), int32(RTM_GETADDR), addr_af, __ccgo_fp_cb, ctx) + } + X__syscall1(tls, int32(SYS_close), fd) + return r +} + +func Xgetnetbyaddr(tls *TLS, net Tuint32_t, type1 int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v net=%v type1=%v, (%v:)", tls, net, type1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(0) +} + +func Xgetnetbyname(tls *TLS, name uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(0) +} + +func Xns_get16(tls *TLS, cp uintptr) (r uint32) { + if __ccgo_strace { + trc("tls=%v cp=%v, (%v:)", tls, cp, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(cp)))< %v", r) }() + } + return uint32(uint32(**(**uint8)(__ccgo_up(cp)))<> int32(8)) + v1 = cp + cp = cp + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(s) +} + +func Xns_put32(tls *TLS, l uint32, cp uintptr) { + if __ccgo_strace { + trc("tls=%v l=%v cp=%v, (%v:)", tls, l, cp, origin(2)) + } + var v1 uintptr + _ = v1 + v1 = cp + cp = cp + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(l >> int32(24)) + v1 = cp + cp = cp + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(l >> int32(16)) + v1 = cp + cp = cp + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(l >> int32(8)) + v1 = cp + cp = cp + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(l) +} + +func Xns_initparse(tls *TLS, msg uintptr, msglen int32, handle uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v msg=%v msglen=%v handle=%v, (%v:)", tls, msg, msglen, handle, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var i, r int32 + _, _ = i, r + (*Tns_msg)(unsafe.Pointer(handle)).F_msg = msg + (*Tns_msg)(unsafe.Pointer(handle)).F_eom = msg + uintptr(msglen) + if msglen < (Int32FromInt32(2)+int32(_ns_s_max))*Int32FromInt32(NS_INT16SZ) { + goto bad + } + msg = msg + uintptr(2) + (*Tns_msg)(unsafe.Pointer(handle)).F_id = uint16(Xns_get16(tls, msg-uintptr(2))) + msg = msg + uintptr(2) + (*Tns_msg)(unsafe.Pointer(handle)).F_flags = uint16(Xns_get16(tls, msg-uintptr(2))) + i = 0 + for { + if !(i < int32(_ns_s_max)) { + break + } + msg = msg + uintptr(2) + **(**Tuint16_t)(__ccgo_up(handle + 12 + uintptr(i)*2)) = uint16(Xns_get16(tls, msg-uintptr(2))) + goto _1 + _1: + ; + i = i + 1 + } + i = 0 + for { + if !(i < int32(_ns_s_max)) { + break + } + if **(**Tuint16_t)(__ccgo_up(handle + 12 + uintptr(i)*2)) != 0 { + **(**uintptr)(__ccgo_up(handle + 20 + uintptr(i)*4)) = msg + r = Xns_skiprr(tls, msg, (*Tns_msg)(unsafe.Pointer(handle)).F_eom, i, Int32FromUint16(**(**Tuint16_t)(__ccgo_up(handle + 12 + uintptr(i)*2)))) + if r < 0 { + return -int32(1) + } + msg = msg + uintptr(r) + } else { + **(**uintptr)(__ccgo_up(handle + 20 + uintptr(i)*4)) = UintptrFromInt32(0) + } + goto _2 + _2: + ; + i = i + 1 + } + if msg != (*Tns_msg)(unsafe.Pointer(handle)).F_eom { + goto bad + } + (*Tns_msg)(unsafe.Pointer(handle)).F_sect = int32(_ns_s_max) + (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum = -int32(1) + (*Tns_msg)(unsafe.Pointer(handle)).F_msg_ptr = UintptrFromInt32(0) + return 0 + goto bad +bad: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EMSGSIZE) + return -int32(1) +} + +func Xns_skiprr(tls *TLS, ptr uintptr, eom uintptr, section Tns_sect, count int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v ptr=%v eom=%v section=%v count=%v, (%v:)", tls, ptr, eom, section, count, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var p uintptr + var r, v1 int32 + _, _, _ = p, r, v1 + p = ptr + for { + v1 = count + count = count - 1 + if !(v1 != 0) { + break + } + r = Xdn_skipname(tls, p, eom) + if r < 0 { + goto bad + } + if r+Int32FromInt32(2)*Int32FromInt32(NS_INT16SZ) > int32(eom)-int32(p) { + goto bad + } + p = p + uintptr(r+Int32FromInt32(2)*Int32FromInt32(NS_INT16SZ)) + if section != int32(_ns_s_qd) { + if Int32FromInt32(NS_INT32SZ)+Int32FromInt32(NS_INT16SZ) > int32(eom)-int32(p) { + goto bad + } + p = p + uintptr(NS_INT32SZ) + p = p + uintptr(2) + r = Int32FromUint32(Xns_get16(tls, p-uintptr(2))) + if r > int32(eom)-int32(p) { + goto bad + } + p = p + uintptr(r) + } + } + return int32(p) - int32(ptr) + goto bad +bad: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EMSGSIZE) + return -int32(1) +} + +func Xns_parserr(tls *TLS, handle uintptr, section Tns_sect, rrnum int32, rr uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v handle=%v section=%v rrnum=%v rr=%v, (%v:)", tls, handle, section, rrnum, rr, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + var v1 uintptr + _, _ = r, v1 + if section < 0 || section >= int32(_ns_s_max) { + goto bad + } + if section != (*Tns_msg)(unsafe.Pointer(handle)).F_sect { + (*Tns_msg)(unsafe.Pointer(handle)).F_sect = section + (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum = 0 + (*Tns_msg)(unsafe.Pointer(handle)).F_msg_ptr = **(**uintptr)(__ccgo_up(handle + 20 + uintptr(section)*4)) + } + if rrnum == -int32(1) { + rrnum = (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum + } + if rrnum < 0 || rrnum >= Int32FromUint16(**(**Tuint16_t)(__ccgo_up(handle + 12 + uintptr(section)*2))) { + goto bad + } + if rrnum < (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum { + (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum = 0 + (*Tns_msg)(unsafe.Pointer(handle)).F_msg_ptr = **(**uintptr)(__ccgo_up(handle + 20 + uintptr(section)*4)) + } + if rrnum > (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum { + r = Xns_skiprr(tls, (*Tns_msg)(unsafe.Pointer(handle)).F_msg_ptr, (*Tns_msg)(unsafe.Pointer(handle)).F_eom, section, rrnum-(*Tns_msg)(unsafe.Pointer(handle)).F_rrnum) + if r < 0 { + return -int32(1) + } + **(**uintptr)(__ccgo_up(handle + 44)) += uintptr(r) + (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum = rrnum + } + r = Xns_name_uncompress(tls, (*Tns_msg)(unsafe.Pointer(handle)).F_msg, (*Tns_msg)(unsafe.Pointer(handle)).F_eom, (*Tns_msg)(unsafe.Pointer(handle)).F_msg_ptr, rr, uint32(NS_MAXDNAME)) + if r < 0 { + return -int32(1) + } + **(**uintptr)(__ccgo_up(handle + 44)) += uintptr(r) + if Int32FromInt32(2)*Int32FromInt32(NS_INT16SZ) > int32((*Tns_msg)(unsafe.Pointer(handle)).F_eom)-int32((*Tns_msg)(unsafe.Pointer(handle)).F_msg_ptr) { + goto size + } + v1 = handle + 44 + *(*uintptr)(unsafe.Pointer(v1)) += uintptr(2) + (*Tns_rr)(unsafe.Pointer(rr)).Ftype1 = uint16(Xns_get16(tls, *(*uintptr)(unsafe.Pointer(v1))-uintptr(2))) + v1 = handle + 44 + *(*uintptr)(unsafe.Pointer(v1)) += uintptr(2) + (*Tns_rr)(unsafe.Pointer(rr)).Frr_class = uint16(Xns_get16(tls, *(*uintptr)(unsafe.Pointer(v1))-uintptr(2))) + if section != int32(_ns_s_qd) { + if Int32FromInt32(NS_INT32SZ)+Int32FromInt32(NS_INT16SZ) > int32((*Tns_msg)(unsafe.Pointer(handle)).F_eom)-int32((*Tns_msg)(unsafe.Pointer(handle)).F_msg_ptr) { + goto size + } + v1 = handle + 44 + *(*uintptr)(unsafe.Pointer(v1)) += uintptr(4) + (*Tns_rr)(unsafe.Pointer(rr)).Fttl = Xns_get32(tls, *(*uintptr)(unsafe.Pointer(v1))-uintptr(4)) + v1 = handle + 44 + *(*uintptr)(unsafe.Pointer(v1)) += uintptr(2) + (*Tns_rr)(unsafe.Pointer(rr)).Frdlength = uint16(Xns_get16(tls, *(*uintptr)(unsafe.Pointer(v1))-uintptr(2))) + if Int32FromUint16((*Tns_rr)(unsafe.Pointer(rr)).Frdlength) > int32((*Tns_msg)(unsafe.Pointer(handle)).F_eom)-int32((*Tns_msg)(unsafe.Pointer(handle)).F_msg_ptr) { + goto size + } + (*Tns_rr)(unsafe.Pointer(rr)).Frdata = (*Tns_msg)(unsafe.Pointer(handle)).F_msg_ptr + **(**uintptr)(__ccgo_up(handle + 44)) += uintptr((*Tns_rr)(unsafe.Pointer(rr)).Frdlength) + } else { + (*Tns_rr)(unsafe.Pointer(rr)).Fttl = uint32(0) + (*Tns_rr)(unsafe.Pointer(rr)).Frdlength = uint16(0) + (*Tns_rr)(unsafe.Pointer(rr)).Frdata = UintptrFromInt32(0) + } + (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum = (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum + 1 + if (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum > Int32FromUint16(**(**Tuint16_t)(__ccgo_up(handle + 12 + uintptr(section)*2))) { + (*Tns_msg)(unsafe.Pointer(handle)).F_sect = section + int32(1) + if (*Tns_msg)(unsafe.Pointer(handle)).F_sect == int32(_ns_s_max) { + (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum = -int32(1) + (*Tns_msg)(unsafe.Pointer(handle)).F_msg_ptr = UintptrFromInt32(0) + } else { + (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum = 0 + } + } + return 0 + goto bad +bad: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENODEV) + return -int32(1) + goto size +size: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EMSGSIZE) + return -int32(1) +} + +func Xns_name_uncompress(tls *TLS, msg uintptr, eom uintptr, src uintptr, dst uintptr, dstsiz Tsize_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v msg=%v eom=%v src=%v dst=%v dstsiz=%v, (%v:)", tls, msg, eom, src, dst, dstsiz, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + r = Xdn_expand(tls, msg, eom, src, dst, Int32FromUint32(dstsiz)) + if r < 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EMSGSIZE) + } + return r +} + +func Xntohl(tls *TLS, n Tuint32_t) (r Tuint32_t) { + if __ccgo_strace { + trc("tls=%v n=%v, (%v:)", tls, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var u struct { + Fc [0]int8 + Fi int32 + } + var v1 uint32 + var v2, v3 Tuint32_t + _, _, _, _ = u, v1, v2, v3 + u = *(*struct { + Fc [0]int8 + Fi int32 + })(unsafe.Pointer(&struct{ f int32 }{f: int32(1)})) + if *(*int8)(unsafe.Pointer(&u)) != 0 { + v2 = n + v3 = v2>>int32(24) | v2>>int32(8)&uint32(0xff00) | v2< %v", r) }() + } + var u struct { + Fc [0]int8 + Fi int32 + } + var v1 int32 + var v2, v3 Tuint16_t + _, _, _, _ = u, v1, v2, v3 + u = *(*struct { + Fc [0]int8 + Fi int32 + })(unsafe.Pointer(&struct{ f int32 }{f: int32(1)})) + if *(*int8)(unsafe.Pointer(&u)) != 0 { + v2 = n + v3 = Uint16FromInt32(Int32FromUint16(v2)<>int32(8)) + goto _4 + _4: + v1 = Int32FromUint16(v3) + } else { + v1 = Int32FromUint16(n) + } + return Uint16FromInt32(v1) +} + +/* do we really need all these?? */ + +var _idx int32 +var _protos = [239]uint8{0, 'i', 'p', 0, 1, 'i', 'c', 'm', 'p', 0, 2, 'i', 'g', 'm', 'p', 0, 3, 'g', 'g', 'p', 0, 4, 'i', 'p', 'e', 'n', 'c', 'a', 'p', 0, 5, 's', 't', 0, 6, 't', 'c', 'p', 0, 8, 'e', 'g', 'p', 0, 12, 'p', 'u', 'p', 0, 17, 'u', 'd', 'p', 0, 20, 'h', 'm', 'p', 0, 22, 'x', 'n', 's', '-', 'i', 'd', 'p', 0, 27, 'r', 'd', 'p', 0, 29, 'i', 's', 'o', '-', 't', 'p', '4', 0, '$', 'x', 't', 'p', 0, '%', 'd', 'd', 'p', 0, '&', 'i', 'd', 'p', 'r', '-', 'c', 'm', 't', 'p', 0, ')', 'i', 'p', 'v', '6', 0, '+', 'i', 'p', 'v', '6', '-', 'r', 'o', 'u', 't', 'e', 0, ',', 'i', 'p', 'v', '6', '-', 'f', 'r', 'a', 'g', 0, '-', 'i', 'd', 'r', 'p', 0, '.', 'r', 's', 'v', 'p', 0, '/', 'g', 'r', 'e', 0, '2', 'e', 's', 'p', 0, '3', 'a', 'h', 0, '9', 's', 'k', 'i', 'p', 0, ':', 'i', 'p', 'v', '6', '-', 'i', 'c', 'm', 'p', 0, ';', 'i', 'p', 'v', '6', '-', 'n', 'o', 'n', 'x', 't', 0, '<', 'i', 'p', 'v', '6', '-', 'o', 'p', 't', 's', 0, 'I', 'r', 's', 'p', 'f', 0, 'Q', 'v', 'm', 't', 'p', 0, 'Y', 'o', 's', 'p', 'f', 0, '^', 'i', 'p', 'i', 'p', 0, 'b', 'e', 'n', 'c', 'a', 'p', 0, 'g', 'p', 'i', 'm', 0, 255, 'r', 'a', 'w'} + +func Xendprotoent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + _idx = 0 +} + +func Xsetprotoent(tls *TLS, stayopen int32) { + if __ccgo_strace { + trc("tls=%v stayopen=%v, (%v:)", tls, stayopen, origin(2)) + } + _idx = 0 +} + +func Xgetprotoent(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + if Uint32FromInt32(_idx) >= uint32(239) { + return UintptrFromInt32(0) + } + _p.Fp_proto = Int32FromUint8(_protos[_idx]) + _p.Fp_name = uintptr(unsafe.Pointer(&_protos)) + uintptr(_idx+int32(1)) + _p.Fp_aliases = uintptr(unsafe.Pointer(&_aliases)) + _idx = Int32FromUint32(uint32(_idx) + (_strlen(tls, _p.Fp_name) + Uint32FromInt32(2))) + return uintptr(unsafe.Pointer(&_p)) +} + +var _p Tprotoent + +var _aliases uintptr + +func Xgetprotobyname(tls *TLS, name uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + var p uintptr + _ = p + Xendprotoent(tls) + for cond := true; cond; cond = p != 0 && Xstrcmp(tls, name, (*Tprotoent)(unsafe.Pointer(p)).Fp_name) != 0 { + p = Xgetprotoent(tls) + } + return p +} + +func Xgetprotobynumber(tls *TLS, num int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v num=%v, (%v:)", tls, num, origin(2)) + defer func() { trc("-> %v", r) }() + } + var p uintptr + _ = p + Xendprotoent(tls) + for cond := true; cond; cond = p != 0 && (*Tprotoent)(unsafe.Pointer(p)).Fp_proto != num { + p = Xgetprotoent(tls) + } + return p +} + +func Xrecv(tls *TLS, fd int32, buf uintptr, len1 Tsize_t, flags int32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v len1=%v flags=%v, (%v:)", tls, fd, buf, len1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xrecvfrom(tls, fd, buf, len1, flags, uintptr(0), uintptr(0)) +} + +func Xrecvfrom(tls *TLS, fd int32, buf uintptr, len1 Tsize_t, flags int32, addr uintptr, alen uintptr) (r1 Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v len1=%v flags=%v addr=%v alen=%v, (%v:)", tls, fd, buf, len1, flags, addr, alen, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + var r, v1, v10, v2, v3 int32 + var v4, v5, v6, v7, v8, v9 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _, _, _ = r, v1, v10, v2, v3, v4, v5, v6, v7, v8, v9 + v1 = int32(SYS_recvfrom) + v2 = int32(__SC_recvfrom) + v3 = int32(1) + v4 = fd + v5 = int32(buf) + v6 = Int32FromUint32(len1) + v7 = flags + v8 = int32(addr) + v9 = int32(alen) + if v3 != 0 { + r = ___syscall_cp(tls, v1, v4, v5, v6, v7, v8, v9) + } else { + r = X__syscall6(tls, v1, v4, v5, v6, v7, v8, v9) + } + if r != int32(-Int32FromInt32(ENOSYS)) { + v10 = r + goto _11 + } + if v3 != 0 { + *(*[6]int32)(unsafe.Pointer(bp)) = [6]int32{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = ___syscall_cp(tls, int32(SYS_socketcall), v2, int32(bp), 0, 0, 0, 0) + } else { + *(*[6]int32)(unsafe.Pointer(bp + 24)) = [6]int32{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = X__syscall2(tls, int32(SYS_socketcall), v2, int32(bp+24)) + } + v10 = r + goto _11 +_11: + return X__syscall_ret(tls, Uint32FromInt32(v10)) +} + +func Xrecvmmsg(tls *TLS, fd int32, msgvec uintptr, vlen uint32, flags uint32, timeout uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v msgvec=%v vlen=%v flags=%v timeout=%v, (%v:)", tls, fd, msgvec, vlen, flags, timeout, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var csize, v3 uintptr + var i, i1, ns, r, v2 int32 + var s Ttime_t + var v1 int64 + var v4 t__predefined_size_t + var v7 uint64 + _, _, _, _, _, _, _, _, _, _, _ = csize, i, i1, ns, r, s, v1, v2, v3, v4, v7 + defer func() { Xrealloc(tls, csize, 0) }() + if timeout != 0 { + v1 = (*Ttimespec)(unsafe.Pointer(timeout)).Ftv_sec + } else { + v1 = 0 + } + s = v1 + if timeout != 0 { + v2 = (*Ttimespec)(unsafe.Pointer(timeout)).Ftv_nsec + } else { + v2 = 0 + } + ns = v2 + if timeout != 0 { + *(*[2]int64)(unsafe.Pointer(bp)) = [2]int64{ + 0: s, + 1: int64(ns), + } + v3 = bp + } else { + v3 = uintptr(0) + } + r = int32(___syscall_cp(tls, int32(SYS_recvmmsg_time64), fd, int32(msgvec), Int32FromUint32(vlen), Int32FromUint32(flags), int32(v3), 0)) + if Bool(false) || r != -int32(ENOSYS) { + return X__syscall_ret(tls, Uint32FromInt32(r)) + } + if vlen > uint32(IOV_MAX) { + vlen = uint32(IOV_MAX) + } + v4 = vlen * 4 + csize = Xrealloc(tls, csize, v4) + i = 0 + for { + if !(Uint32FromInt32(i) < vlen) { + break + } + *(*Tsocklen_t)(unsafe.Add(unsafe.Pointer(csize), i*4)) = (**(**Tmmsghdr)(__ccgo_up(msgvec + uintptr(i)*32))).Fmsg_hdr.Fmsg_controllen + goto _5 + _5: + ; + i = i + 1 + } + if timeout != 0 { + if !((Uint64FromInt64(s)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) { + v7 = Uint64FromInt64(s) + } else { + v7 = uint64(0x7fffffff) + (0+Uint64FromInt64(s))>>int32(63) + } + *(*[2]int32)(unsafe.Pointer(bp + 16)) = [2]int32{ + 0: int32(Int32FromUint64(v7)), + 1: ns, + } + v3 = bp + 16 + } else { + v3 = uintptr(0) + } + r = int32(___syscall_cp(tls, int32(SYS_recvmmsg), fd, int32(msgvec), Int32FromUint32(vlen), Int32FromUint32(flags), int32(v3), 0)) + i1 = 0 + for { + if !(i1 < r) { + break + } + X__convert_scm_timestamps(tls, msgvec+uintptr(i1)*32, *(*Tsocklen_t)(unsafe.Add(unsafe.Pointer(csize), i1*4))) + goto _8 + _8: + ; + i1 = i1 + 1 + } + return X__syscall_ret(tls, Uint32FromInt32(r)) +} + +func X__convert_scm_timestamps(tls *TLS, msg uintptr, csize Tsocklen_t) { + if __ccgo_strace { + trc("tls=%v msg=%v csize=%v, (%v:)", tls, msg, csize, origin(2)) + } + bp := tls.Alloc(32) + defer tls.Free(32) + var cmsg, last, v2 uintptr + var type1 int32 + var _ /* tmp at bp+0 */ int32 + var _ /* tvts at bp+4 */ [2]int64 + _, _, _, _ = cmsg, last, type1, v2 + if false { + return + } + if !((*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_control != 0) || !((*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_controllen != 0) { + return + } + last = uintptr(0) + type1 = 0 + if (*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_controllen >= uint32(12) { + v2 = (*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_control + } else { + v2 = UintptrFromInt32(0) + } + cmsg = v2 + for { + if !(cmsg != 0) { + break + } + if (*Tcmsghdr)(unsafe.Pointer(cmsg)).Fcmsg_level == int32(SOL_SOCKET) { + switch (*Tcmsghdr)(unsafe.Pointer(cmsg)).Fcmsg_type { + case int32(SO_TIMESTAMP_OLD): + goto _3 + case int32(SO_TIMESTAMPNS_OLD): + goto _4 + } + goto _5 + _3: + ; + if type1 != 0 { + goto _5 + } + type1 = int32(SO_TIMESTAMP) + goto common + _4: + ; + type1 = int32(SO_TIMESTAMPNS) + goto common + common: + ; + Xmemcpy(tls, bp, cmsg+UintptrFromInt32(1)*12, uint32(4)) + (**(**[2]int64)(__ccgo_up(bp + 4)))[0] = int64(**(**int32)(__ccgo_up(bp))) + Xmemcpy(tls, bp, cmsg+UintptrFromInt32(1)*12+uintptr(4), uint32(4)) + (**(**[2]int64)(__ccgo_up(bp + 4)))[int32(1)] = int64(**(**int32)(__ccgo_up(bp))) + goto _5 + _5: + } + last = cmsg + goto _1 + _1: + ; + if (*Tcmsghdr)(unsafe.Pointer(cmsg)).Fcmsg_len < uint32(12) || uint32((*Tcmsghdr)(unsafe.Pointer(cmsg)).Fcmsg_len+Uint32FromInt64(4)-Uint32FromInt32(1))&Uint32FromInt32(^Int32FromUint32(Uint32FromInt64(4)-Uint32FromInt32(1)))+uint32(12) >= Uint32FromInt32(int32((*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_control+uintptr((*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_controllen))-int32(cmsg)) { + v2 = uintptr(0) + } else { + v2 = cmsg + uintptr(uint32((*Tcmsghdr)(unsafe.Pointer(cmsg)).Fcmsg_len+Uint32FromInt64(4)-Uint32FromInt32(1))&Uint32FromInt32(^Int32FromUint32(Uint32FromInt64(4)-Uint32FromInt32(1)))) + } + cmsg = v2 + } + if !(last != 0) || !(type1 != 0) { + return + } + if (Uint32FromInt64(16)+Uint32FromInt64(4)-Uint32FromInt32(1)) & ^(Uint32FromInt64(4)-Uint32FromInt32(1)) + (Uint32FromInt64(12)+Uint32FromInt64(4)-Uint32FromInt32(1)) & ^(Uint32FromInt64(4)-Uint32FromInt32(1)) > csize-(*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_controllen { + **(**int32)(__ccgo_up(msg + 24)) |= int32(MSG_CTRUNC) + return + } + **(**Tsocklen_t)(__ccgo_up(msg + 20)) += (Uint32FromInt64(16)+Uint32FromInt64(4)-Uint32FromInt32(1)) & ^(Uint32FromInt64(4)-Uint32FromInt32(1)) + (Uint32FromInt64(12)+Uint32FromInt64(4)-Uint32FromInt32(1)) & ^(Uint32FromInt64(4)-Uint32FromInt32(1)) + if (*Tcmsghdr)(unsafe.Pointer(last)).Fcmsg_len < uint32(12) || uint32((*Tcmsghdr)(unsafe.Pointer(last)).Fcmsg_len+Uint32FromInt64(4)-Uint32FromInt32(1))&Uint32FromInt32(^Int32FromUint32(Uint32FromInt64(4)-Uint32FromInt32(1)))+uint32(12) >= Uint32FromInt32(int32((*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_control+uintptr((*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_controllen))-int32(last)) { + v2 = uintptr(0) + } else { + v2 = last + uintptr(uint32((*Tcmsghdr)(unsafe.Pointer(last)).Fcmsg_len+Uint32FromInt64(4)-Uint32FromInt32(1))&Uint32FromInt32(^Int32FromUint32(Uint32FromInt64(4)-Uint32FromInt32(1)))) + } + cmsg = v2 + (*Tcmsghdr)(unsafe.Pointer(cmsg)).Fcmsg_level = int32(SOL_SOCKET) + (*Tcmsghdr)(unsafe.Pointer(cmsg)).Fcmsg_type = type1 + (*Tcmsghdr)(unsafe.Pointer(cmsg)).Fcmsg_len = (Uint32FromInt64(12)+Uint32FromInt64(4)-Uint32FromInt32(1)) & ^(Uint32FromInt64(4)-Uint32FromInt32(1)) + Uint32FromInt64(16) + Xmemcpy(tls, cmsg+UintptrFromInt32(1)*12, bp+4, uint32(16)) +} + +func Xrecvmsg(tls *TLS, fd int32, msg uintptr, flags int32) (r2 Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v msg=%v flags=%v, (%v:)", tls, fd, msg, flags, origin(2)) + defer func() { trc("-> %v", r2) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + var orig_controllen Tsocklen_t + var r, v1, v10, v2, v3 int32 + var r1 Tssize_t + var v4, v5, v6, v7, v8, v9 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _, _, _, _, _ = orig_controllen, r, r1, v1, v10, v2, v3, v4, v5, v6, v7, v8, v9 + orig_controllen = (*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_controllen + v1 = int32(SYS_recvmsg) + v2 = int32(__SC_recvmsg) + v3 = int32(1) + v4 = fd + v5 = int32(msg) + v6 = flags + v7 = int32(Int32FromInt32(0)) + v8 = int32(Int32FromInt32(0)) + v9 = int32(Int32FromInt32(0)) + if v3 != 0 { + r = ___syscall_cp(tls, v1, v4, v5, v6, v7, v8, v9) + } else { + r = X__syscall6(tls, v1, v4, v5, v6, v7, v8, v9) + } + if r != int32(-Int32FromInt32(ENOSYS)) { + v10 = r + goto _11 + } + if v3 != 0 { + *(*[6]int32)(unsafe.Pointer(bp)) = [6]int32{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = ___syscall_cp(tls, int32(SYS_socketcall), v2, int32(bp), 0, 0, 0, 0) + } else { + *(*[6]int32)(unsafe.Pointer(bp + 24)) = [6]int32{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = X__syscall2(tls, int32(SYS_socketcall), v2, int32(bp+24)) + } + v10 = r + goto _11 +_11: + r1 = X__syscall_ret(tls, Uint32FromInt32(v10)) + if r1 >= 0 { + X__convert_scm_timestamps(tls, msg, orig_controllen) + } + return r1 +} + +func Xres_init(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return 0 +} + +func X__res_mkquery(tls *TLS, op int32, dname uintptr, class int32, type1 int32, data uintptr, datalen int32, newrr uintptr, buf uintptr, buflen int32) (r int32) { + if __ccgo_strace { + trc("tls=%v op=%v dname=%v class=%v type1=%v data=%v datalen=%v newrr=%v buf=%v buflen=%v, (%v:)", tls, op, dname, class, type1, data, datalen, newrr, buf, buflen, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(304) + defer tls.Free(304) + var i, id, j, n int32 + var l Tsize_t + var _ /* q at bp+0 */ [280]uint8 + var _ /* ts at bp+280 */ Ttimespec + _, _, _, _, _ = i, id, j, l, n + l = Xstrnlen(tls, dname, uint32(255)) + if l != 0 && int32(**(**int8)(__ccgo_up(dname + uintptr(l-uint32(1))))) == int32('.') { + l = l - 1 + } + if l != 0 && int32(**(**int8)(__ccgo_up(dname + uintptr(l-uint32(1))))) == int32('.') { + return -int32(1) + } + n = Int32FromUint32(uint32(17) + l + BoolUint32(!!(l != 0))) + if l > uint32(253) || buflen < n || Uint32FromInt32(op) > uint32(15) || Uint32FromInt32(class) > uint32(255) || Uint32FromInt32(type1) > uint32(255) { + return -int32(1) + } + /* Construct query template - ID will be filled later */ + Xmemset(tls, bp, 0, Uint32FromInt32(n)) + (**(**[280]uint8)(__ccgo_up(bp)))[int32(2)] = Uint8FromInt32(op*int32(8) + int32(1)) + (**(**[280]uint8)(__ccgo_up(bp)))[int32(3)] = uint8(32) /* AD */ + (**(**[280]uint8)(__ccgo_up(bp)))[int32(5)] = uint8(1) + Xmemcpy(tls, bp+uintptr(13), dname, l) + i = int32(13) + for { + if !((**(**[280]uint8)(__ccgo_up(bp)))[i] != 0) { + break + } + j = i + for { + if !((**(**[280]uint8)(__ccgo_up(bp)))[j] != 0 && Int32FromUint8((**(**[280]uint8)(__ccgo_up(bp)))[j]) != int32('.')) { + break + } + goto _2 + _2: + ; + j = j + 1 + } + if Uint32FromInt32(j-i)-uint32(1) > uint32(62) { + return -int32(1) + } + (**(**[280]uint8)(__ccgo_up(bp)))[i-int32(1)] = Uint8FromInt32(j - i) + goto _1 + _1: + ; + i = j + int32(1) + } + (**(**[280]uint8)(__ccgo_up(bp)))[i+int32(1)] = Uint8FromInt32(type1) + (**(**[280]uint8)(__ccgo_up(bp)))[i+int32(3)] = Uint8FromInt32(class) + /* Make a reasonably unpredictable id */ + Xclock_gettime(tls, CLOCK_REALTIME, bp+280) + id = Int32FromUint32((Uint32FromInt32((**(**Ttimespec)(__ccgo_up(bp + 280))).Ftv_nsec) + Uint32FromInt32((**(**Ttimespec)(__ccgo_up(bp + 280))).Ftv_nsec)/uint32(65536)) & uint32(0xffff)) + (**(**[280]uint8)(__ccgo_up(bp)))[0] = Uint8FromInt32(id / int32(256)) + (**(**[280]uint8)(__ccgo_up(bp)))[int32(1)] = Uint8FromInt32(id) + Xmemcpy(tls, buf, bp, Uint32FromInt32(n)) + return n +} + +func Xres_mkquery(tls *TLS, op int32, dname uintptr, class int32, type1 int32, data uintptr, datalen int32, newrr uintptr, buf uintptr, buflen int32) (r int32) { + if __ccgo_strace { + trc("tls=%v op=%v dname=%v class=%v type1=%v data=%v datalen=%v newrr=%v buf=%v buflen=%v, (%v:)", tls, op, dname, class, type1, data, datalen, newrr, buf, buflen, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__res_mkquery(tls, op, dname, class, type1, data, datalen, newrr, buf, buflen) +} + +const POLLERR = 8 +const POLLHUP = 16 +const POLLIN = 1 +const POLLMSG = 1024 +const POLLNVAL = 32 +const POLLOUT = 4 +const POLLPRI = 2 +const POLLRDBAND = 128 +const POLLRDHUP = 8192 +const POLLRDNORM = 64 +const POLLWRBAND = 512 +const POLLWRNORM = 256 +const TCP_CC_INFO = 26 +const TCP_CLOSE = 7 +const TCP_CLOSE_WAIT = 8 +const TCP_CLOSING = 11 +const TCP_CM_INQ = 36 +const TCP_CONGESTION = 13 +const TCP_CORK = 3 +const TCP_DEFER_ACCEPT = 9 +const TCP_ESTABLISHED = 1 +const TCP_FASTOPEN = 23 +const TCP_FASTOPEN_CONNECT = 30 +const TCP_FASTOPEN_KEY = 33 +const TCP_FASTOPEN_NO_COOKIE = 34 +const TCP_FIN_WAIT1 = 4 +const TCP_FIN_WAIT2 = 5 +const TCP_INFO = 11 +const TCP_INQ = 36 +const TCP_KEEPCNT = 6 +const TCP_KEEPIDLE = 4 +const TCP_KEEPINTVL = 5 +const TCP_LAST_ACK = 9 +const TCP_LINGER2 = 8 +const TCP_LISTEN = 10 +const TCP_MAXSEG = 2 +const TCP_MD5SIG = 14 +const TCP_MD5SIG_EXT = 32 +const TCP_NODELAY = 1 +const TCP_NOTSENT_LOWAT = 25 +const TCP_QUEUE_SEQ = 21 +const TCP_QUICKACK = 12 +const TCP_REPAIR = 19 +const TCP_REPAIR_OPTIONS = 22 +const TCP_REPAIR_QUEUE = 20 +const TCP_REPAIR_WINDOW = 29 +const TCP_SAVED_SYN = 28 +const TCP_SAVE_SYN = 27 +const TCP_SYNCNT = 7 +const TCP_SYN_RECV = 3 +const TCP_SYN_SENT = 2 +const TCP_THIN_DUPACK = 17 +const TCP_THIN_LINEAR_TIMEOUTS = 16 +const TCP_TIMESTAMP = 24 +const TCP_TIME_WAIT = 6 +const TCP_TX_DELAY = 37 +const TCP_ULP = 31 +const TCP_USER_TIMEOUT = 18 +const TCP_WINDOW_CLAMP = 10 +const TCP_ZEROCOPY_RECEIVE = 35 + +const _TCP_NLA_PAD = 0 +const _TCP_NLA_BUSY = 1 +const _TCP_NLA_RWND_LIMITED = 2 +const _TCP_NLA_SNDBUF_LIMITED = 3 +const _TCP_NLA_DATA_SEGS_OUT = 4 +const _TCP_NLA_TOTAL_RETRANS = 5 +const _TCP_NLA_PACING_RATE = 6 +const _TCP_NLA_DELIVERY_RATE = 7 +const _TCP_NLA_SND_CWND = 8 +const _TCP_NLA_REORDERING = 9 +const _TCP_NLA_MIN_RTT = 10 +const _TCP_NLA_RECUR_RETRANS = 11 +const _TCP_NLA_DELIVERY_RATE_APP_LMT = 12 +const _TCP_NLA_SNDQ_SIZE = 13 +const _TCP_NLA_CA_STATE = 14 +const _TCP_NLA_SND_SSTHRESH = 15 +const _TCP_NLA_DELIVERED = 16 +const _TCP_NLA_DELIVERED_CE = 17 +const _TCP_NLA_BYTES_SENT = 18 +const _TCP_NLA_BYTES_RETRANS = 19 +const _TCP_NLA_DSACK_DUPS = 20 +const _TCP_NLA_REORD_SEEN = 21 +const _TCP_NLA_SRTT = 22 +const _TCP_NLA_TIMEOUT_REHASH = 23 +const _TCP_NLA_BYTES_NOTSENT = 24 +const _TCP_NLA_EDT = 25 +const _TCP_NLA_TTL = 26 + +type Tnfds_t = uint32 + +type Tpollfd = struct { + Ffd int32 + Fevents int16 + Frevents int16 +} + +func _cleanup(tls *TLS, p uintptr) { + var i int32 + var pfd uintptr + _, _ = i, pfd + pfd = p + i = 0 + for { + if !((**(**Tpollfd)(__ccgo_up(pfd + uintptr(i)*8))).Ffd >= -int32(1)) { + break + } + if (**(**Tpollfd)(__ccgo_up(pfd + uintptr(i)*8))).Ffd >= 0 { + X__syscall1(tls, int32(SYS_close), int32((**(**Tpollfd)(__ccgo_up(pfd + uintptr(i)*8))).Ffd)) + } + goto _1 + _1: + ; + i = i + 1 + } +} + +func _mtime(tls *TLS) (r uint32) { + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* ts at bp+0 */ Ttimespec + if Xclock_gettime(tls, int32(CLOCK_MONOTONIC), bp) < 0 && **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(ENOSYS) { + Xclock_gettime(tls, CLOCK_REALTIME, bp) + } + return Uint32FromInt64((**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec)*uint32(1000) + Uint32FromInt32((**(**Ttimespec)(__ccgo_up(bp))).Ftv_nsec/int32(1000000)) +} + +func _start_tcp(tls *TLS, pfd uintptr, family int32, sa uintptr, sl Tsocklen_t, q uintptr, ql int32) (r1 int32) { + bp := tls.Alloc(64) + defer tls.Free(64) + var fd, r int32 + var _ /* mh at bp+24 */ Tmsghdr + _, _ = fd, r + *(*[2]Tuint8_t)(unsafe.Pointer(bp + 16)) = [2]Tuint8_t{ + 0: Uint8FromInt32(ql >> int32(8)), + 1: Uint8FromInt32(ql), + } + *(*[2]Tiovec)(unsafe.Pointer(bp)) = [2]Tiovec{ + 0: { + Fiov_base: bp + 16, + Fiov_len: uint32(2), + }, + 1: { + Fiov_base: q, + Fiov_len: Uint32FromInt32(ql), + }, + } + **(**Tmsghdr)(__ccgo_up(bp + 24)) = Tmsghdr{ + Fmsg_name: sa, + Fmsg_namelen: sl, + Fmsg_iov: bp, + Fmsg_iovlen: int32(2), + } + fd = Xsocket(tls, family, Int32FromInt32(SOCK_STREAM)|Int32FromInt32(SOCK_CLOEXEC)|Int32FromInt32(SOCK_NONBLOCK), 0) + (*Tpollfd)(unsafe.Pointer(pfd)).Ffd = fd + (*Tpollfd)(unsafe.Pointer(pfd)).Fevents = int16(POLLOUT) + *(*int32)(unsafe.Pointer(bp + 20)) = int32(1) + if !(Xsetsockopt(tls, fd, int32(IPPROTO_TCP), int32(TCP_FASTOPEN_CONNECT), bp+20, uint32(4)) != 0) { + r = Xsendmsg(tls, fd, bp+24, Int32FromInt32(MSG_FASTOPEN)|Int32FromInt32(MSG_NOSIGNAL)) + if r == ql+int32(2) { + (*Tpollfd)(unsafe.Pointer(pfd)).Fevents = int16(POLLIN) + } + if r >= 0 { + return r + } + if **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EINPROGRESS) { + return 0 + } + } + r = Xconnect(tls, fd, sa, sl) + if !(r != 0) || **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EINPROGRESS) { + return 0 + } + Xclose(tls, fd) + (*Tpollfd)(unsafe.Pointer(pfd)).Ffd = -int32(1) + return -int32(1) +} + +func _step_mh(tls *TLS, mh uintptr, n Tsize_t) { + /* Adjust iovec in msghdr to skip first n bytes. */ + for (*Tmsghdr)(unsafe.Pointer(mh)).Fmsg_iovlen != 0 && n >= (*Tiovec)(unsafe.Pointer((*Tmsghdr)(unsafe.Pointer(mh)).Fmsg_iov)).Fiov_len { + n = n - (*Tiovec)(unsafe.Pointer((*Tmsghdr)(unsafe.Pointer(mh)).Fmsg_iov)).Fiov_len + (*Tmsghdr)(unsafe.Pointer(mh)).Fmsg_iov += 8 + (*Tmsghdr)(unsafe.Pointer(mh)).Fmsg_iovlen = (*Tmsghdr)(unsafe.Pointer(mh)).Fmsg_iovlen - 1 + } + if !((*Tmsghdr)(unsafe.Pointer(mh)).Fmsg_iovlen != 0) { + return + } + (*Tiovec)(unsafe.Pointer((*Tmsghdr)(unsafe.Pointer(mh)).Fmsg_iov)).Fiov_base = (*Tiovec)(unsafe.Pointer((*Tmsghdr)(unsafe.Pointer(mh)).Fmsg_iov)).Fiov_base + uintptr(n) + **(**Tsize_t)(__ccgo_up((*Tmsghdr)(unsafe.Pointer(mh)).Fmsg_iov + 4)) -= n +} + +/* Internal contract for __res_msend[_rc]: asize must be >=512, nqueries + * must be sufficiently small to be safe as VLA size. In practice it's + * either 1 or 2, anyway. */ + +func X__res_msend_rc(tls *TLS, nqueries int32, queries uintptr, qlens uintptr, answers uintptr, alens uintptr, asize int32, conf uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v nqueries=%v queries=%v qlens=%v answers=%v alens=%v asize=%v conf=%v, (%v:)", tls, nqueries, queries, qlens, answers, alens, asize, conf, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(272) + defer tls.Free(272) + var alen, attempts, family, fd, i, j, next, nns, r, rcode, retry_interval, rlen, servfail_retry, timeout, v6 int32 + var alen_buf, apos, iplit, pfd, qpos uintptr + var sl Tsocklen_t + var t0, t1, t2, v10 uint32 + var v1, v2, v3, v4 t__predefined_size_t + var v18 bool + var _ /* __cb at bp+164 */ t__ptcb + var _ /* cs at bp+160 */ int32 + var _ /* mh at bp+176 */ Tmsghdr + var _ /* mh at bp+204 */ Tmsghdr + var _ /* mh at bp+232 */ Tmsghdr + var _ /* ns at bp+76 */ [3]struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + } + var _ /* sa at bp+48 */ struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = alen, alen_buf, apos, attempts, family, fd, i, iplit, j, next, nns, pfd, qpos, r, rcode, retry_interval, rlen, servfail_retry, sl, t0, t1, t2, timeout, v1, v10, v18, v2, v3, v4, v6 + defer func() { + Xrealloc(tls, alen_buf, 0) + Xrealloc(tls, apos, 0) + Xrealloc(tls, pfd, 0) + Xrealloc(tls, qpos, 0) + }() + *(*struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + })(unsafe.Pointer(bp + 48)) = struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + }{} + *(*uint16)(unsafe.Pointer(bp + 48)) = uint16(0) + **(**[3]struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + })(__ccgo_up(bp + 76)) = [3]struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + }{} + sl = uint32(16) + nns = 0 + family = int32(PF_INET) + v1 = Uint32FromInt32(nqueries+int32(2)) * 8 + pfd = Xrealloc(tls, pfd, v1) + v2 = Uint32FromInt32(nqueries) * 4 + qpos = Xrealloc(tls, qpos, v2) + v3 = Uint32FromInt32(nqueries) * 4 + apos = Xrealloc(tls, apos, v3) + v4 = Uint32FromInt32(nqueries) * 2 + alen_buf = Xrealloc(tls, alen_buf, v4) + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp+160) + timeout = Int32FromUint32(uint32(1000) * (*Tresolvconf)(unsafe.Pointer(conf)).Ftimeout) + attempts = Int32FromUint32((*Tresolvconf)(unsafe.Pointer(conf)).Fattempts) + nns = 0 + for { + if !(Uint32FromInt32(nns) < (*Tresolvconf)(unsafe.Pointer(conf)).Fnns) { + break + } + iplit = conf + uintptr(nns)*28 + if (*Taddress)(unsafe.Pointer(iplit)).Ffamily == int32(PF_INET) { + Xmemcpy(tls, bp+76+uintptr(nns)*28+4, iplit+8, uint32(4)) + (**(**[3]struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + })(__ccgo_up(bp + 76)))[nns].Fsin.Fsin_port = Xhtons(tls, uint16(53)) + (**(**[3]struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + })(__ccgo_up(bp + 76)))[nns].Fsin.Fsin_family = uint16(PF_INET) + } else { + sl = uint32(28) + Xmemcpy(tls, bp+76+uintptr(nns)*28+8, iplit+8, uint32(16)) + (*(*Tsockaddr_in6)(unsafe.Pointer(bp + 76 + uintptr(nns)*28))).Fsin6_port = Xhtons(tls, uint16(53)) + (*(*Tsockaddr_in6)(unsafe.Pointer(bp + 76 + uintptr(nns)*28))).Fsin6_scope_id = (*Taddress)(unsafe.Pointer(iplit)).Fscopeid + v6 = Int32FromInt32(PF_INET6) + family = v6 + (*(*Tsockaddr_in6)(unsafe.Pointer(bp + 76 + uintptr(nns)*28))).Fsin6_family = Uint16FromInt32(v6) + } + goto _5 + _5: + ; + nns = nns + 1 + } + /* Get local address and open/bind a socket */ + fd = Xsocket(tls, family, Int32FromInt32(SOCK_DGRAM)|Int32FromInt32(SOCK_CLOEXEC)|Int32FromInt32(SOCK_NONBLOCK), 0) + /* Handle case where system lacks IPv6 support */ + if fd < 0 && family == int32(PF_INET6) && **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EAFNOSUPPORT) { + i = 0 + for { + if !(i < nns && (**(**Taddress)(__ccgo_up(conf + uintptr(nns)*28))).Ffamily == int32(PF_INET6)) { + break + } + goto _7 + _7: + ; + i = i + 1 + } + if i == nns { + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 160)), uintptr(0)) + return -int32(1) + } + fd = Xsocket(tls, int32(PF_INET), Int32FromInt32(SOCK_DGRAM)|Int32FromInt32(SOCK_CLOEXEC)|Int32FromInt32(SOCK_NONBLOCK), 0) + family = int32(PF_INET) + sl = uint32(16) + } + /* Convert any IPv4 addresses in a mixed environment to v4-mapped */ + if fd >= 0 && family == int32(PF_INET6) { + *(*int32)(unsafe.Pointer(bp)) = 0 + Xsetsockopt(tls, fd, int32(IPPROTO_IPV6), int32(IPV6_V6ONLY), bp, uint32(4)) + i = 0 + for { + if !(i < nns) { + break + } + if Int32FromUint16((**(**[3]struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + })(__ccgo_up(bp + 76)))[i].Fsin.Fsin_family) != int32(PF_INET) { + goto _8 + } + Xmemcpy(tls, bp+76+uintptr(i)*28+8+uintptr(12), bp+76+uintptr(i)*28+4, uint32(4)) + Xmemcpy(tls, bp+76+uintptr(i)*28+8, __ccgo_ts+942, uint32(12)) + (*(*Tsockaddr_in6)(unsafe.Pointer(bp + 76 + uintptr(i)*28))).Fsin6_family = uint16(PF_INET6) + (*(*Tsockaddr_in6)(unsafe.Pointer(bp + 76 + uintptr(i)*28))).Fsin6_flowinfo = uint32(0) + (*(*Tsockaddr_in6)(unsafe.Pointer(bp + 76 + uintptr(i)*28))).Fsin6_scope_id = uint32(0) + goto _8 + _8: + ; + i = i + 1 + } + } + (**(**struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + })(__ccgo_up(bp + 48))).Fsin.Fsin_family = Uint16FromInt32(family) + if fd < 0 || Xbind(tls, fd, bp+48, sl) < 0 { + if fd >= 0 { + Xclose(tls, fd) + } + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 160)), uintptr(0)) + return -int32(1) + } + /* Past this point, there are no errors. Each individual query will + * yield either no reply (indicated by zero length) or an answer + * packet which is up to the caller to interpret. */ + i = 0 + for { + if !(i < nqueries) { + break + } + (*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), i*8))).Ffd = -int32(1) + goto _9 + _9: + ; + i = i + 1 + } + (*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), nqueries*8))).Ffd = fd + (*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), nqueries*8))).Fevents = int16(POLLIN) + (*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), (nqueries+int32(1))*8))).Ffd = -int32(2) + __pthread_cleanup_push(tls, bp+164, __ccgo_fp(_cleanup), pfd) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 160)), uintptr(0)) + Xmemset(tls, alens, 0, uint32(4)*Uint32FromInt32(nqueries)) + retry_interval = timeout / attempts + next = 0 + v10 = _mtime(tls) + t2 = v10 + t0 = v10 + t1 = t2 - Uint32FromInt32(retry_interval) + for { + if !(t2-t0 < Uint32FromInt32(timeout)) { + break + } + /* This is the loop exit condition: that all queries + * have an accepted answer. */ + i = 0 + for { + if !(i < nqueries && **(**int32)(__ccgo_up(alens + uintptr(i)*4)) > 0) { + break + } + goto _12 + _12: + ; + i = i + 1 + } + if i == nqueries { + break + } + if t2-t1 >= Uint32FromInt32(retry_interval) { + /* Query all configured namservers in parallel */ + i = 0 + for { + if !(i < nqueries) { + break + } + if !(**(**int32)(__ccgo_up(alens + uintptr(i)*4)) != 0) { + j = 0 + for { + if !(j < nns) { + break + } + Xsendto(tls, fd, **(**uintptr)(__ccgo_up(queries + uintptr(i)*4)), Uint32FromInt32(**(**int32)(__ccgo_up(qlens + uintptr(i)*4))), int32(MSG_NOSIGNAL), bp+76+uintptr(j)*28, sl) + goto _14 + _14: + ; + j = j + 1 + } + } + goto _13 + _13: + ; + i = i + 1 + } + t1 = t2 + servfail_retry = int32(2) * nqueries + } + /* Wait for a response, or until time to retry */ + if Xpoll(tls, pfd, Uint32FromInt32(nqueries+int32(1)), Int32FromUint32(t1+Uint32FromInt32(retry_interval)-t2)) <= 0 { + goto _11 + } + for next < nqueries { + *(*[1]Tiovec)(unsafe.Pointer(bp + 8)) = [1]Tiovec{ + 0: { + Fiov_base: **(**uintptr)(__ccgo_up(answers + uintptr(next)*4)), + Fiov_len: Uint32FromInt32(asize), + }, + } + **(**Tmsghdr)(__ccgo_up(bp + 176)) = Tmsghdr{ + Fmsg_name: bp + 48, + Fmsg_namelen: sl, + Fmsg_iov: bp + 8, + Fmsg_iovlen: int32(1), + } + rlen = Xrecvmsg(tls, fd, bp+176, 0) + if rlen < 0 { + break + } + /* Ignore non-identifiable packets */ + if rlen < int32(4) { + continue + } + /* Ignore replies from addresses we didn't send to */ + j = 0 + for { + if !(j < nns && Xmemcmp(tls, bp+76+uintptr(j)*28, bp+48, sl) != 0) { + break + } + goto _15 + _15: + ; + j = j + 1 + } + if j == nns { + continue + } + /* Find which query this answer goes with, if any */ + i = next + for { + if !(i < nqueries && (Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(answers + uintptr(next)*4))))) != Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(queries + uintptr(i)*4))))) || Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(answers + uintptr(next)*4)) + 1))) != Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(queries + uintptr(i)*4)) + 1))))) { + break + } + goto _16 + _16: + ; + i = i + 1 + } + if i == nqueries { + continue + } + if **(**int32)(__ccgo_up(alens + uintptr(i)*4)) != 0 { + continue + } + /* Only accept positive or negative responses; + * retry immediately on server failure, and ignore + * all other codes such as refusal. */ + switch Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(answers + uintptr(next)*4)) + 3))) & Int32FromInt32(15) { + case 0: + fallthrough + case int32(3): + case int32(2): + if v18 = servfail_retry != 0; v18 { + v6 = servfail_retry + servfail_retry = servfail_retry - 1 + } + if v18 && v6 != 0 { + Xsendto(tls, fd, **(**uintptr)(__ccgo_up(queries + uintptr(i)*4)), Uint32FromInt32(**(**int32)(__ccgo_up(qlens + uintptr(i)*4))), int32(MSG_NOSIGNAL), bp+76+uintptr(j)*28, sl) + } + fallthrough + default: + continue + } + /* Store answer in the right slot, or update next + * available temp slot if it's already in place. */ + **(**int32)(__ccgo_up(alens + uintptr(i)*4)) = rlen + if i == next { + for { + if !(next < nqueries && **(**int32)(__ccgo_up(alens + uintptr(next)*4)) != 0) { + break + } + goto _19 + _19: + ; + next = next + 1 + } + } else { + Xmemcpy(tls, **(**uintptr)(__ccgo_up(answers + uintptr(i)*4)), **(**uintptr)(__ccgo_up(answers + uintptr(next)*4)), Uint32FromInt32(rlen)) + } + /* Ignore further UDP if all slots full or TCP-mode */ + if next == nqueries { + (*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), nqueries*8))).Fevents = 0 + } + /* If answer is truncated (TC bit), fallback to TCP */ + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(answers + uintptr(i)*4)) + 2)))&int32(2) != 0 || (**(**Tmsghdr)(__ccgo_up(bp + 176))).Fmsg_flags&int32(MSG_TRUNC) != 0 { + **(**int32)(__ccgo_up(alens + uintptr(i)*4)) = -int32(1) + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), uintptr(0)) + r = _start_tcp(tls, pfd+uintptr(i)*8, family, bp+76+uintptr(j)*28, sl, **(**uintptr)(__ccgo_up(queries + uintptr(i)*4)), **(**int32)(__ccgo_up(qlens + uintptr(i)*4))) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 160)), uintptr(0)) + if r >= 0 { + *(*int32)(unsafe.Add(unsafe.Pointer(qpos), i*4)) = r + *(*int32)(unsafe.Add(unsafe.Pointer(apos), i*4)) = 0 + } + continue + } + } + i = 0 + for { + if !(i < nqueries) { + break + } + if int32((*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), i*8))).Frevents)&int32(POLLOUT) != 0 { + *(*[2]Tuint8_t)(unsafe.Pointer(bp + 28)) = [2]Tuint8_t{ + 0: Uint8FromInt32(**(**int32)(__ccgo_up(qlens + uintptr(i)*4)) >> int32(8)), + 1: Uint8FromInt32(**(**int32)(__ccgo_up(qlens + uintptr(i)*4))), + } + *(*[2]Tiovec)(unsafe.Pointer(bp + 12)) = [2]Tiovec{ + 0: { + Fiov_base: bp + 28, + Fiov_len: uint32(2), + }, + 1: { + Fiov_base: **(**uintptr)(__ccgo_up(queries + uintptr(i)*4)), + Fiov_len: Uint32FromInt32(**(**int32)(__ccgo_up(qlens + uintptr(i)*4))), + }, + } + **(**Tmsghdr)(__ccgo_up(bp + 204)) = Tmsghdr{ + Fmsg_iov: bp + 12, + Fmsg_iovlen: int32(2), + } + _step_mh(tls, bp+204, Uint32FromInt32(*(*int32)(unsafe.Add(unsafe.Pointer(qpos), i*4)))) + r = Xsendmsg(tls, (*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), i*8))).Ffd, bp+204, int32(MSG_NOSIGNAL)) + if r < 0 { + goto out + } + **(**int32)(__ccgo_up(qpos + uintptr(i)*4)) += r + if *(*int32)(unsafe.Add(unsafe.Pointer(qpos), i*4)) == **(**int32)(__ccgo_up(qlens + uintptr(i)*4))+int32(2) { + (*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), i*8))).Fevents = int16(POLLIN) + } + } + goto _20 + _20: + ; + i = i + 1 + } + i = 0 + for { + if !(i < nqueries) { + break + } + if int32((*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), i*8))).Frevents)&int32(POLLIN) != 0 { + *(*[2]Tiovec)(unsafe.Pointer(bp + 32)) = [2]Tiovec{ + 0: { + Fiov_base: alen_buf + uintptr(i)*2, + Fiov_len: uint32(2), + }, + 1: { + Fiov_base: **(**uintptr)(__ccgo_up(answers + uintptr(i)*4)), + Fiov_len: Uint32FromInt32(asize), + }, + } + **(**Tmsghdr)(__ccgo_up(bp + 232)) = Tmsghdr{ + Fmsg_iov: bp + 32, + Fmsg_iovlen: int32(2), + } + _step_mh(tls, bp+232, Uint32FromInt32(*(*int32)(unsafe.Add(unsafe.Pointer(apos), i*4)))) + r = Xrecvmsg(tls, (*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), i*8))).Ffd, bp+232, 0) + if r <= 0 { + goto out + } + **(**int32)(__ccgo_up(apos + uintptr(i)*4)) += r + if *(*int32)(unsafe.Add(unsafe.Pointer(apos), i*4)) < int32(2) { + goto _21 + } + alen = Int32FromUint8(**(**uint8)(__ccgo_up(alen_buf + uintptr(i)*2)))*int32(256) + Int32FromUint8(**(**uint8)(__ccgo_up(alen_buf + uintptr(i)*2 + 1))) + if alen < int32(13) { + goto out + } + if *(*int32)(unsafe.Add(unsafe.Pointer(apos), i*4)) < alen+int32(2) && *(*int32)(unsafe.Add(unsafe.Pointer(apos), i*4)) < asize+int32(2) { + goto _21 + } + rcode = Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(answers + uintptr(i)*4)) + 3))) & int32(15) + if rcode != 0 && rcode != int32(3) { + goto out + } + /* Storing the length here commits the accepted answer. + * Immediately close TCP socket so as not to consume + * resources we no longer need. */ + **(**int32)(__ccgo_up(alens + uintptr(i)*4)) = alen + X__syscall1(tls, int32(SYS_close), (*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), i*8))).Ffd) + (*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), i*8))).Ffd = -int32(1) + } + goto _21 + _21: + ; + i = i + 1 + } + goto _11 + _11: + ; + t2 = _mtime(tls) + } + goto out +out: + ; + __pthread_cleanup_pop(tls, bp+164, int32(1)) + /* Disregard any incomplete TCP results */ + i = 0 + for { + if !(i < nqueries) { + break + } + if **(**int32)(__ccgo_up(alens + uintptr(i)*4)) < 0 { + **(**int32)(__ccgo_up(alens + uintptr(i)*4)) = 0 + } + goto _22 + _22: + ; + i = i + 1 + } + return 0 +} + +func X__res_msend(tls *TLS, nqueries int32, queries uintptr, qlens uintptr, answers uintptr, alens uintptr, asize int32) (r int32) { + if __ccgo_strace { + trc("tls=%v nqueries=%v queries=%v qlens=%v answers=%v alens=%v asize=%v, (%v:)", tls, nqueries, queries, qlens, answers, alens, asize, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(112) + defer tls.Free(112) + var _ /* conf at bp+0 */ Tresolvconf + if X__get_resolv_conf(tls, bp, uintptr(0), uint32(0)) < 0 { + return -int32(1) + } + return X__res_msend_rc(tls, nqueries, queries, qlens, answers, alens, asize, bp) +} + +func X__res_send(tls *TLS, _msg uintptr, _msglen int32, _answer uintptr, _anslen int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v _msg=%v _msglen=%v _answer=%v _anslen=%v, (%v:)", tls, _msg, _msglen, _answer, _anslen, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(528) + defer tls.Free(528) + *(*uintptr)(unsafe.Pointer(bp)) = _msg + *(*int32)(unsafe.Pointer(bp + 4)) = _msglen + *(*uintptr)(unsafe.Pointer(bp + 8)) = _answer + *(*int32)(unsafe.Pointer(bp + 12)) = _anslen + var r, v1 int32 + var _ /* buf at bp+16 */ [512]uint8 + _, _ = r, v1 + if **(**int32)(__ccgo_up(bp + 12)) < int32(512) { + r = X__res_send(tls, **(**uintptr)(__ccgo_up(bp)), **(**int32)(__ccgo_up(bp + 4)), bp+16, int32(512)) + if r >= 0 { + if r < **(**int32)(__ccgo_up(bp + 12)) { + v1 = r + } else { + v1 = **(**int32)(__ccgo_up(bp + 12)) + } + Xmemcpy(tls, **(**uintptr)(__ccgo_up(bp + 8)), bp+16, Uint32FromInt32(v1)) + } + return r + } + r = X__res_msend(tls, int32(1), bp, bp+4, bp+8, bp+12, **(**int32)(__ccgo_up(bp + 12))) + if r < 0 || !(**(**int32)(__ccgo_up(bp + 12)) != 0) { + v1 = -int32(1) + } else { + v1 = **(**int32)(__ccgo_up(bp + 12)) + } + return v1 +} + +func Xres_send(tls *TLS, _msg uintptr, _msglen int32, _answer uintptr, _anslen int32) (r int32) { + if __ccgo_strace { + trc("tls=%v _msg=%v _msglen=%v _answer=%v _anslen=%v, (%v:)", tls, _msg, _msglen, _answer, _anslen, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__res_send(tls, _msg, _msglen, _answer, _anslen) +} + +/* This is completely unused, and exists purely to satisfy broken apps. */ + +func X__res_state(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(unsafe.Pointer(&_res1)) +} + +var _res1 t__res_state + +func X__get_resolv_conf(tls *TLS, conf uintptr, search uintptr, search_sz Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v conf=%v search=%v search_sz=%v, (%v:)", tls, conf, search, search_sz, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(656) + defer tls.Free(656) + var c, nns, v1, v2 int32 + var f, p uintptr + var l Tsize_t + var x, x1, x2, v5 uint32 + var v4 bool + var _ /* _buf at bp+256 */ [256]uint8 + var _ /* _f at bp+512 */ TFILE + var _ /* line at bp+0 */ [256]int8 + var _ /* z at bp+648 */ uintptr + _, _, _, _, _, _, _, _, _, _, _, _ = c, f, l, nns, p, x, x1, x2, v1, v2, v4, v5 + nns = 0 + (*Tresolvconf)(unsafe.Pointer(conf)).Fndots = uint32(1) + (*Tresolvconf)(unsafe.Pointer(conf)).Ftimeout = uint32(5) + (*Tresolvconf)(unsafe.Pointer(conf)).Fattempts = uint32(2) + if search != 0 { + **(**int8)(__ccgo_up(search)) = 0 + } + f = X__fopen_rb_ca(tls, __ccgo_ts+1064, bp+512, bp+256, uint32(256)) + if !(f != 0) { + switch **(**int32)(__ccgo_up(X__errno_location(tls))) { + case int32(ENOENT): + fallthrough + case int32(ENOTDIR): + fallthrough + case int32(EACCES): + goto no_resolv_conf + default: + return -int32(1) + } + } + for Xfgets(tls, bp, int32(256), f) != 0 { + if !(Xstrchr(tls, bp, int32('\n')) != 0) && !((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_EOF) != 0) { + for cond := true; cond; cond = c != int32('\n') && c != -int32(1) { + c = Xgetc(tls, f) + } + continue + } + if v4 = !(Xstrncmp(tls, bp, __ccgo_ts+1081, uint32(7)) != 0); v4 { + v1 = int32((**(**[256]int8)(__ccgo_up(bp)))[int32(7)]) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _3 + _3: + } + if v4 && v2 != 0 { + p = Xstrstr(tls, bp, __ccgo_ts+1089) + if p != 0 && BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(p + 6)))-uint32('0') < uint32(10)) != 0 { + p = p + uintptr(6) + x = Xstrtoul(tls, p, bp+648, int32(10)) + if **(**uintptr)(__ccgo_up(bp + 648)) != p { + if x > uint32(15) { + v5 = uint32(15) + } else { + v5 = x + } + (*Tresolvconf)(unsafe.Pointer(conf)).Fndots = v5 + } + } + p = Xstrstr(tls, bp, __ccgo_ts+1096) + if p != 0 && BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(p + 9)))-uint32('0') < uint32(10)) != 0 { + p = p + uintptr(9) + x1 = Xstrtoul(tls, p, bp+648, int32(10)) + if **(**uintptr)(__ccgo_up(bp + 648)) != p { + if x1 > uint32(10) { + v5 = uint32(10) + } else { + v5 = x1 + } + (*Tresolvconf)(unsafe.Pointer(conf)).Fattempts = v5 + } + } + p = Xstrstr(tls, bp, __ccgo_ts+1106) + if p != 0 && (BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(p + 8)))-uint32('0') < uint32(10)) != 0 || int32(**(**int8)(__ccgo_up(p + 8))) == int32('.')) { + p = p + uintptr(8) + x2 = Xstrtoul(tls, p, bp+648, int32(10)) + if **(**uintptr)(__ccgo_up(bp + 648)) != p { + if x2 > uint32(60) { + v5 = uint32(60) + } else { + v5 = x2 + } + (*Tresolvconf)(unsafe.Pointer(conf)).Ftimeout = v5 + } + } + continue + } + if v4 = !(Xstrncmp(tls, bp, __ccgo_ts+1115, uint32(10)) != 0); v4 { + v1 = int32((**(**[256]int8)(__ccgo_up(bp)))[int32(10)]) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _10 + _10: + } + if v4 && v2 != 0 { + if nns >= int32(MAXNS) { + continue + } + p = bp + uintptr(11) + for { + v1 = int32(**(**int8)(__ccgo_up(p))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _15 + _15: + if !(v2 != 0) { + break + } + goto _12 + _12: + ; + p = p + 1 + } + **(**uintptr)(__ccgo_up(bp + 648)) = p + for { + if v4 = **(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 648)))) != 0; v4 { + v1 = int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 648))))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _19 + _19: + } + if !(v4 && !(v2 != 0)) { + break + } + goto _16 + _16: + ; + **(**uintptr)(__ccgo_up(bp + 648)) = **(**uintptr)(__ccgo_up(bp + 648)) + 1 + } + **(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 648)))) = 0 + if X__lookup_ipliteral(tls, conf+uintptr(nns)*28, p, PF_UNSPEC) > 0 { + nns = nns + 1 + } + continue + } + if !(search != 0) { + continue + } + if v4 = Xstrncmp(tls, bp, __ccgo_ts+1126, uint32(6)) != 0 && Xstrncmp(tls, bp, __ccgo_ts+1133, uint32(6)) != 0; !v4 { + v1 = int32((**(**[256]int8)(__ccgo_up(bp)))[int32(6)]) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _23 + _23: + } + if v4 || !(v2 != 0) { + continue + } + p = bp + uintptr(7) + for { + v1 = int32(**(**int8)(__ccgo_up(p))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _28 + _28: + if !(v2 != 0) { + break + } + goto _25 + _25: + ; + p = p + 1 + } + l = _strlen(tls, p) + /* This can never happen anyway with chosen buffer sizes. */ + if l >= search_sz { + continue + } + Xmemcpy(tls, search, p, l+uint32(1)) + } + X__fclose_ca(tls, f) + goto no_resolv_conf +no_resolv_conf: + ; + if !(nns != 0) { + X__lookup_ipliteral(tls, conf, __ccgo_ts+1140, PF_UNSPEC) + nns = int32(1) + } + (*Tresolvconf)(unsafe.Pointer(conf)).Fnns = Uint32FromInt32(nns) + return 0 +} + +func Xsend(tls *TLS, fd int32, buf uintptr, len1 Tsize_t, flags int32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v len1=%v flags=%v, (%v:)", tls, fd, buf, len1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xsendto(tls, fd, buf, len1, flags, uintptr(0), uint32(0)) +} + +func Xsendmmsg(tls *TLS, fd int32, msgvec uintptr, vlen uint32, flags uint32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v msgvec=%v vlen=%v flags=%v, (%v:)", tls, fd, msgvec, vlen, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(___syscall_cp(tls, int32(SYS_sendmmsg), fd, int32(msgvec), Int32FromUint32(vlen), Int32FromUint32(flags), 0, 0))) +} + +func Xsendmsg(tls *TLS, fd int32, msg uintptr, flags int32) (r1 Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v msg=%v flags=%v, (%v:)", tls, fd, msg, flags, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + var r, v1, v10, v2, v3 int32 + var v4, v5, v6, v7, v8, v9 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _, _, _ = r, v1, v10, v2, v3, v4, v5, v6, v7, v8, v9 + v1 = int32(SYS_sendmsg) + v2 = int32(__SC_sendmsg) + v3 = int32(1) + v4 = fd + v5 = int32(msg) + v6 = flags + v7 = int32(Int32FromInt32(0)) + v8 = int32(Int32FromInt32(0)) + v9 = int32(Int32FromInt32(0)) + if v3 != 0 { + r = ___syscall_cp(tls, v1, v4, v5, v6, v7, v8, v9) + } else { + r = X__syscall6(tls, v1, v4, v5, v6, v7, v8, v9) + } + if r != int32(-Int32FromInt32(ENOSYS)) { + v10 = r + goto _11 + } + if v3 != 0 { + *(*[6]int32)(unsafe.Pointer(bp)) = [6]int32{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = ___syscall_cp(tls, int32(SYS_socketcall), v2, int32(bp), 0, 0, 0, 0) + } else { + *(*[6]int32)(unsafe.Pointer(bp + 24)) = [6]int32{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = X__syscall2(tls, int32(SYS_socketcall), v2, int32(bp+24)) + } + v10 = r + goto _11 +_11: + return X__syscall_ret(tls, Uint32FromInt32(v10)) +} + +func Xsendto(tls *TLS, fd int32, buf uintptr, len1 Tsize_t, flags int32, addr uintptr, alen Tsocklen_t) (r1 Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v len1=%v flags=%v addr=%v alen=%v, (%v:)", tls, fd, buf, len1, flags, addr, alen, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + var r, v1, v10, v2, v3 int32 + var v4, v5, v6, v7, v8, v9 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _, _, _ = r, v1, v10, v2, v3, v4, v5, v6, v7, v8, v9 + v1 = int32(SYS_sendto) + v2 = int32(__SC_sendto) + v3 = int32(1) + v4 = fd + v5 = int32(buf) + v6 = Int32FromUint32(len1) + v7 = flags + v8 = int32(addr) + v9 = Int32FromUint32(alen) + if v3 != 0 { + r = ___syscall_cp(tls, v1, v4, v5, v6, v7, v8, v9) + } else { + r = X__syscall6(tls, v1, v4, v5, v6, v7, v8, v9) + } + if r != int32(-Int32FromInt32(ENOSYS)) { + v10 = r + goto _11 + } + if v3 != 0 { + *(*[6]int32)(unsafe.Pointer(bp)) = [6]int32{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = ___syscall_cp(tls, int32(SYS_socketcall), v2, int32(bp), 0, 0, 0, 0) + } else { + *(*[6]int32)(unsafe.Pointer(bp + 24)) = [6]int32{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = X__syscall2(tls, int32(SYS_socketcall), v2, int32(bp+24)) + } + v10 = r + goto _11 +_11: + return X__syscall_ret(tls, Uint32FromInt32(v10)) +} + +func Xendservent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } +} + +func Xsetservent(tls *TLS, stayopen int32) { + if __ccgo_strace { + trc("tls=%v stayopen=%v, (%v:)", tls, stayopen, origin(2)) + } +} + +func Xgetservent(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(0) +} + +func Xsetsockopt(tls *TLS, fd int32, level int32, optname int32, optval uintptr, optlen Tsocklen_t) (r2 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v level=%v optname=%v optval=%v optlen=%v, (%v:)", tls, fd, level, optname, optval, optlen, origin(2)) + defer func() { trc("-> %v", r2) }() + } + bp := tls.Alloc(160) + defer tls.Free(160) + var r, r1, v1, v10, v2, v3 int32 + var s Ttime_t + var tv uintptr + var us Tsuseconds_t + var v12 uint64 + var v4, v5, v6, v7, v8, v9 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = r, r1, s, tv, us, v1, v10, v12, v2, v3, v4, v5, v6, v7, v8, v9 + v1 = int32(SYS_setsockopt) + v2 = int32(__SC_setsockopt) + v3 = 0 + v4 = fd + v5 = level + v6 = optname + v7 = int32(optval) + v8 = Int32FromUint32(optlen) + v9 = int32(Int32FromInt32(0)) + if v3 != 0 { + r = ___syscall_cp(tls, v1, v4, v5, v6, v7, v8, v9) + } else { + r = X__syscall6(tls, v1, v4, v5, v6, v7, v8, v9) + } + if r != int32(-Int32FromInt32(ENOSYS)) { + v10 = r + goto _11 + } + if v3 != 0 { + *(*[6]int32)(unsafe.Pointer(bp + 104)) = [6]int32{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = ___syscall_cp(tls, int32(SYS_socketcall), v2, int32(bp+104), 0, 0, 0, 0) + } else { + *(*[6]int32)(unsafe.Pointer(bp + 128)) = [6]int32{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = X__syscall2(tls, int32(SYS_socketcall), v2, int32(bp+128)) + } + v10 = r + goto _11 +_11: + r1 = v10 + if r1 == -int32(ENOPROTOOPT) { + switch level { + case int32(SOL_SOCKET): + switch optname { + case int32(SO_RCVTIMEO): + fallthrough + case int32(SO_SNDTIMEO): + if false { + break + } + if optlen < uint32(16) { + return X__syscall_ret(tls, Uint32FromInt32(-Int32FromInt32(EINVAL))) + } + tv = optval + s = (*Ttimeval)(unsafe.Pointer(tv)).Ftv_sec + us = (*Ttimeval)(unsafe.Pointer(tv)).Ftv_usec + if !!((Uint64FromInt64(s)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) { + return X__syscall_ret(tls, Uint32FromInt32(-Int32FromInt32(EOPNOTSUPP))) + } + if optname == int32(SO_RCVTIMEO) { + optname = int32(SO_RCVTIMEO_OLD) + } + if optname == int32(SO_SNDTIMEO) { + optname = int32(SO_SNDTIMEO_OLD) + } + if !((Uint64FromInt64(us)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) { + v12 = Uint64FromInt64(us) + } else { + v12 = uint64(0x7fffffff) + (0+Uint64FromInt64(us))>>int32(63) + } + *(*[2]int32)(unsafe.Pointer(bp + 48)) = [2]int32{ + 0: int32(s), + 1: int32(Int32FromUint64(v12)), + } + v1 = int32(SYS_setsockopt) + v2 = int32(__SC_setsockopt) + v3 = 0 + v4 = fd + v5 = level + v6 = optname + v7 = int32(bp + 48) + v8 = Int32FromUint32(Uint32FromInt32(2) * Uint32FromInt64(4)) + v9 = int32(Int32FromInt32(0)) + if v3 != 0 { + r = ___syscall_cp(tls, v1, v4, v5, v6, v7, v8, v9) + } else { + r = X__syscall6(tls, v1, v4, v5, v6, v7, v8, v9) + } + if r != int32(-Int32FromInt32(ENOSYS)) { + v10 = r + goto _23 + } + if v3 != 0 { + *(*[6]int32)(unsafe.Pointer(bp + 104)) = [6]int32{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = ___syscall_cp(tls, int32(SYS_socketcall), v2, int32(bp+104), 0, 0, 0, 0) + } else { + *(*[6]int32)(unsafe.Pointer(bp + 128)) = [6]int32{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = X__syscall2(tls, int32(SYS_socketcall), v2, int32(bp+128)) + } + v10 = r + goto _23 + _23: + r1 = v10 + case int32(SO_TIMESTAMP): + fallthrough + case int32(SO_TIMESTAMPNS): + if false { + break + } + if optname == int32(SO_TIMESTAMP) { + optname = int32(SO_TIMESTAMP_OLD) + } + if optname == int32(SO_TIMESTAMPNS) { + optname = int32(SO_TIMESTAMPNS_OLD) + } + v1 = int32(SYS_setsockopt) + v2 = int32(__SC_setsockopt) + v3 = 0 + v4 = fd + v5 = level + v6 = optname + v7 = int32(optval) + v8 = Int32FromUint32(optlen) + v9 = int32(Int32FromInt32(0)) + if v3 != 0 { + r = ___syscall_cp(tls, v1, v4, v5, v6, v7, v8, v9) + } else { + r = X__syscall6(tls, v1, v4, v5, v6, v7, v8, v9) + } + if r != int32(-Int32FromInt32(ENOSYS)) { + v10 = r + goto _34 + } + if v3 != 0 { + *(*[6]int32)(unsafe.Pointer(bp + 104)) = [6]int32{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = ___syscall_cp(tls, int32(SYS_socketcall), v2, int32(bp+104), 0, 0, 0, 0) + } else { + *(*[6]int32)(unsafe.Pointer(bp + 128)) = [6]int32{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = X__syscall2(tls, int32(SYS_socketcall), v2, int32(bp+128)) + } + v10 = r + goto _34 + _34: + r1 = v10 + break + } + } + } + return X__syscall_ret(tls, Uint32FromInt32(r1)) +} + +func Xshutdown(tls *TLS, fd int32, how int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v how=%v, (%v:)", tls, fd, how, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + var r, v1, v10, v2, v3 int32 + var v4, v5, v6, v7, v8, v9 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _, _, _ = r, v1, v10, v2, v3, v4, v5, v6, v7, v8, v9 + v1 = int32(SYS_shutdown) + v2 = int32(__SC_shutdown) + v3 = 0 + v4 = fd + v5 = how + v6 = int32(Int32FromInt32(0)) + v7 = int32(Int32FromInt32(0)) + v8 = int32(Int32FromInt32(0)) + v9 = int32(Int32FromInt32(0)) + if v3 != 0 { + r = ___syscall_cp(tls, v1, v4, v5, v6, v7, v8, v9) + } else { + r = X__syscall6(tls, v1, v4, v5, v6, v7, v8, v9) + } + if r != int32(-Int32FromInt32(ENOSYS)) { + v10 = r + goto _11 + } + if v3 != 0 { + *(*[6]int32)(unsafe.Pointer(bp)) = [6]int32{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = ___syscall_cp(tls, int32(SYS_socketcall), v2, int32(bp), 0, 0, 0, 0) + } else { + *(*[6]int32)(unsafe.Pointer(bp + 24)) = [6]int32{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = X__syscall2(tls, int32(SYS_socketcall), v2, int32(bp+24)) + } + v10 = r + goto _11 +_11: + return X__syscall_ret(tls, Uint32FromInt32(v10)) +} + +func Xsockatmark(tls *TLS, s int32) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var _ /* ret at bp+0 */ int32 + if Xioctl(tls, s, int32(SIOCATMARK), VaList(bp+16, bp)) < 0 { + return -int32(1) + } + return **(**int32)(__ccgo_up(bp)) +} + +func Xsocket(tls *TLS, domain int32, type1 int32, protocol int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v domain=%v type1=%v protocol=%v, (%v:)", tls, domain, type1, protocol, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(96) + defer tls.Free(96) + var r, s, v1, v10, v12, v13, v14, v2, v21, v3 int32 + var v15, v16, v17, v18, v19, v20, v4, v5, v6, v7, v8, v9 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = r, s, v1, v10, v12, v13, v14, v15, v16, v17, v18, v19, v2, v20, v21, v3, v4, v5, v6, v7, v8, v9 + v1 = int32(SYS_socket) + v2 = int32(__SC_socket) + v3 = 0 + v4 = domain + v5 = type1 + v6 = protocol + v7 = int32(Int32FromInt32(0)) + v8 = int32(Int32FromInt32(0)) + v9 = int32(Int32FromInt32(0)) + if v3 != 0 { + r = ___syscall_cp(tls, v1, v4, v5, v6, v7, v8, v9) + } else { + r = X__syscall6(tls, v1, v4, v5, v6, v7, v8, v9) + } + if r != int32(-Int32FromInt32(ENOSYS)) { + v10 = r + goto _11 + } + if v3 != 0 { + *(*[6]int32)(unsafe.Pointer(bp + 48)) = [6]int32{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = ___syscall_cp(tls, int32(SYS_socketcall), v2, int32(bp+48), 0, 0, 0, 0) + } else { + *(*[6]int32)(unsafe.Pointer(bp + 72)) = [6]int32{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = X__syscall2(tls, int32(SYS_socketcall), v2, int32(bp+72)) + } + v10 = r + goto _11 +_11: + s = v10 + if (s == -int32(EINVAL) || s == -int32(EPROTONOSUPPORT)) && type1&(Int32FromInt32(SOCK_CLOEXEC)|Int32FromInt32(SOCK_NONBLOCK)) != 0 { + v12 = int32(SYS_socket) + v13 = int32(__SC_socket) + v14 = 0 + v15 = domain + v16 = int32(type1 & ^(Int32FromInt32(SOCK_CLOEXEC) | Int32FromInt32(SOCK_NONBLOCK))) + v17 = protocol + v18 = int32(Int32FromInt32(0)) + v19 = int32(Int32FromInt32(0)) + v20 = int32(Int32FromInt32(0)) + if v14 != 0 { + r = ___syscall_cp(tls, v12, v15, v16, v17, v18, v19, v20) + } else { + r = X__syscall6(tls, v12, v15, v16, v17, v18, v19, v20) + } + if r != int32(-Int32FromInt32(ENOSYS)) { + v21 = r + goto _22 + } + if v14 != 0 { + *(*[6]int32)(unsafe.Pointer(bp + 48)) = [6]int32{ + 0: v15, + 1: v16, + 2: v17, + 3: v18, + 4: v19, + 5: v20, + } + r = ___syscall_cp(tls, int32(SYS_socketcall), v13, int32(bp+48), 0, 0, 0, 0) + } else { + *(*[6]int32)(unsafe.Pointer(bp + 72)) = [6]int32{ + 0: v15, + 1: v16, + 2: v17, + 3: v18, + 4: v19, + 5: v20, + } + r = X__syscall2(tls, int32(SYS_socketcall), v13, int32(bp+72)) + } + v21 = r + goto _22 + _22: + s = v21 + if s < 0 { + return X__syscall_ret(tls, Uint32FromInt32(s)) + } + if type1&int32(SOCK_CLOEXEC) != 0 { + X__syscall3(tls, int32(SYS_fcntl64), s, int32(Int32FromInt32(F_SETFD)), int32(Int32FromInt32(FD_CLOEXEC))) + } + if type1&int32(SOCK_NONBLOCK) != 0 { + X__syscall3(tls, int32(SYS_fcntl64), s, int32(Int32FromInt32(F_SETFL)), int32(Int32FromInt32(O_NONBLOCK))) + } + } + return X__syscall_ret(tls, Uint32FromInt32(s)) +} + +func Xsocketpair(tls *TLS, domain int32, type1 int32, protocol int32, fd uintptr) (r2 int32) { + if __ccgo_strace { + trc("tls=%v domain=%v type1=%v protocol=%v fd=%v, (%v:)", tls, domain, type1, protocol, fd, origin(2)) + defer func() { trc("-> %v", r2) }() + } + bp := tls.Alloc(96) + defer tls.Free(96) + var r, r1, v1, v10, v12, v13, v14, v2, v21, v3 int32 + var v15, v16, v17, v18, v19, v20, v4, v5, v6, v7, v8, v9 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = r, r1, v1, v10, v12, v13, v14, v15, v16, v17, v18, v19, v2, v20, v21, v3, v4, v5, v6, v7, v8, v9 + v1 = int32(SYS_socketpair) + v2 = int32(__SC_socketpair) + v3 = 0 + v4 = domain + v5 = type1 + v6 = protocol + v7 = int32(fd) + v8 = int32(Int32FromInt32(0)) + v9 = int32(Int32FromInt32(0)) + if v3 != 0 { + r = ___syscall_cp(tls, v1, v4, v5, v6, v7, v8, v9) + } else { + r = X__syscall6(tls, v1, v4, v5, v6, v7, v8, v9) + } + if r != int32(-Int32FromInt32(ENOSYS)) { + v10 = r + goto _11 + } + if v3 != 0 { + *(*[6]int32)(unsafe.Pointer(bp + 48)) = [6]int32{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = ___syscall_cp(tls, int32(SYS_socketcall), v2, int32(bp+48), 0, 0, 0, 0) + } else { + *(*[6]int32)(unsafe.Pointer(bp + 72)) = [6]int32{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = X__syscall2(tls, int32(SYS_socketcall), v2, int32(bp+72)) + } + v10 = r + goto _11 +_11: + r1 = X__syscall_ret(tls, Uint32FromInt32(v10)) + if r1 < 0 && (**(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EINVAL) || **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EPROTONOSUPPORT)) && type1&(Int32FromInt32(SOCK_CLOEXEC)|Int32FromInt32(SOCK_NONBLOCK)) != 0 { + v12 = int32(SYS_socketpair) + v13 = int32(__SC_socketpair) + v14 = 0 + v15 = domain + v16 = int32(type1 & ^(Int32FromInt32(SOCK_CLOEXEC) | Int32FromInt32(SOCK_NONBLOCK))) + v17 = protocol + v18 = int32(fd) + v19 = int32(Int32FromInt32(0)) + v20 = int32(Int32FromInt32(0)) + if v14 != 0 { + r = ___syscall_cp(tls, v12, v15, v16, v17, v18, v19, v20) + } else { + r = X__syscall6(tls, v12, v15, v16, v17, v18, v19, v20) + } + if r != int32(-Int32FromInt32(ENOSYS)) { + v21 = r + goto _22 + } + if v14 != 0 { + *(*[6]int32)(unsafe.Pointer(bp + 48)) = [6]int32{ + 0: v15, + 1: v16, + 2: v17, + 3: v18, + 4: v19, + 5: v20, + } + r = ___syscall_cp(tls, int32(SYS_socketcall), v13, int32(bp+48), 0, 0, 0, 0) + } else { + *(*[6]int32)(unsafe.Pointer(bp + 72)) = [6]int32{ + 0: v15, + 1: v16, + 2: v17, + 3: v18, + 4: v19, + 5: v20, + } + r = X__syscall2(tls, int32(SYS_socketcall), v13, int32(bp+72)) + } + v21 = r + goto _22 + _22: + r1 = X__syscall_ret(tls, Uint32FromInt32(v21)) + if r1 < 0 { + return r1 + } + if type1&int32(SOCK_CLOEXEC) != 0 { + X__syscall3(tls, int32(SYS_fcntl64), int32(**(**int32)(__ccgo_up(fd))), int32(Int32FromInt32(F_SETFD)), int32(Int32FromInt32(FD_CLOEXEC))) + X__syscall3(tls, int32(SYS_fcntl64), int32(**(**int32)(__ccgo_up(fd + 1*4))), int32(Int32FromInt32(F_SETFD)), int32(Int32FromInt32(FD_CLOEXEC))) + } + if type1&int32(SOCK_NONBLOCK) != 0 { + X__syscall3(tls, int32(SYS_fcntl64), int32(**(**int32)(__ccgo_up(fd))), int32(Int32FromInt32(F_SETFL)), int32(Int32FromInt32(O_NONBLOCK))) + X__syscall3(tls, int32(SYS_fcntl64), int32(**(**int32)(__ccgo_up(fd + 1*4))), int32(Int32FromInt32(F_SETFL)), int32(Int32FromInt32(O_NONBLOCK))) + } + } + return r1 +} + +const SHADOW = "/etc/shadow" + +type Tgroup = struct { + Fgr_name uintptr + Fgr_passwd uintptr + Fgr_gid Tgid_t + Fgr_mem uintptr +} + +type Tspwd = struct { + Fsp_namp uintptr + Fsp_pwdp uintptr + Fsp_lstchg int32 + Fsp_min int32 + Fsp_max int32 + Fsp_warn int32 + Fsp_inact int32 + Fsp_expire int32 + Fsp_flag uint32 +} + +func Xfgetgrent(tls *TLS, f uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* nmem at bp+8 */ Tsize_t + var _ /* res at bp+0 */ uintptr + var _ /* size at bp+4 */ Tsize_t + **(**Tsize_t)(__ccgo_up(bp + 4)) = uint32(0) + **(**Tsize_t)(__ccgo_up(bp + 8)) = uint32(0) + X__getgrent_a(tls, f, uintptr(unsafe.Pointer(&_gr)), uintptr(unsafe.Pointer(&_line1)), bp+4, uintptr(unsafe.Pointer(&_mem)), bp+8, bp) + return **(**uintptr)(__ccgo_up(bp)) +} + +var _line1 uintptr + +var _mem uintptr + +var _gr Tgroup + +func Xfgetpwent(tls *TLS, f uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* res at bp+4 */ uintptr + var _ /* size at bp+0 */ Tsize_t + **(**Tsize_t)(__ccgo_up(bp)) = uint32(0) + X__getpwent_a(tls, f, uintptr(unsafe.Pointer(&_pw)), uintptr(unsafe.Pointer(&_line2)), bp, bp+4) + return **(**uintptr)(__ccgo_up(bp + 4)) +} + +var _line2 uintptr + +var _pw Tpasswd + +const GETGRBYGID = 3 +const GETGRBYNAME = 2 +const GETINITGR = 15 +const GETPWBYNAME = 0 +const GETPWBYUID = 1 +const GRFOUND = 1 +const GRGID = 4 +const GRMEMCNT = 5 +const GRNAMELEN = 2 +const GRPASSWDLEN = 3 +const GRVERSION = 0 +const GR_LEN = 6 +const INITGRFOUND = 1 +const INITGRNGRPS = 2 +const INITGRVERSION = 0 +const INITGR_LEN = 3 +const NSCDVERSION = 2 +const PWDIRLEN = 7 +const PWFOUND = 1 +const PWGECOSLEN = 6 +const PWGID = 5 +const PWNAMELEN = 2 +const PWPASSWDLEN = 3 +const PWSHELLLEN = 8 +const PWUID = 4 +const PWVERSION = 0 +const PW_LEN = 9 +const REQKEYLEN = 2 +const REQTYPE = 1 +const REQVERSION = 0 +const REQ_LEN = 3 + +func _itoa1(tls *TLS, p uintptr, x Tuint32_t) (r uintptr) { + var v1 uintptr + _ = v1 + // number of digits in a uint32_t + NUL + p = p + uintptr(11) + p = p - 1 + v1 = p + **(**int8)(__ccgo_up(v1)) = 0 + for cond := true; cond; cond = x != 0 { + p = p - 1 + v1 = p + **(**int8)(__ccgo_up(v1)) = Int8FromUint32(uint32('0') + x%uint32(10)) + x = x / uint32(10) + } + return p +} + +func X__getgr_a(tls *TLS, name uintptr, gid Tgid_t, gr uintptr, buf uintptr, size uintptr, mem uintptr, nmem uintptr, res uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v gid=%v gr=%v buf=%v size=%v mem=%v nmem=%v res=%v, (%v:)", tls, name, gid, gr, buf, size, mem, nmem, res, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + var f, key, ptr, tmp, tmp1 uintptr + var grlist_len, len1 Tsize_t + var i, req, v10 Tint32_t + var rv, v1 int32 + var v5, v6 Tuint32_t + var _ /* cs at bp+0 */ int32 + var _ /* gidbuf at bp+28 */ [11]int8 + var _ /* groupbuf at bp+4 */ [6]Tint32_t + var _ /* name_len at bp+44 */ Tuint32_t + var _ /* swap at bp+40 */ int32 + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = f, grlist_len, i, key, len1, ptr, req, rv, tmp, tmp1, v1, v10, v5, v6 + rv = 0 + **(**uintptr)(__ccgo_up(res)) = uintptr(0) + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp) + f = Xfopen(tls, __ccgo_ts+1150, __ccgo_ts+315) + if !(f != 0) { + rv = **(**int32)(__ccgo_up(X__errno_location(tls))) + goto done + } + for { + v1 = X__getgrent_a(tls, f, gr, buf, size, mem, nmem, res) + rv = v1 + if !(!(v1 != 0) && **(**uintptr)(__ccgo_up(res)) != 0) { + break + } + if name != 0 && !(Xstrcmp(tls, name, (*Tgroup)(unsafe.Pointer(**(**uintptr)(__ccgo_up(res)))).Fgr_name) != 0) || !(name != 0) && (*Tgroup)(unsafe.Pointer(**(**uintptr)(__ccgo_up(res)))).Fgr_gid == gid { + break + } + } + Xfclose(tls, f) + if !(**(**uintptr)(__ccgo_up(res)) != 0) && (rv == 0 || rv == int32(ENOENT) || rv == int32(ENOTDIR)) { + if name != 0 { + v1 = int32(GETGRBYNAME) + } else { + v1 = int32(GETGRBYGID) + } + req = v1 + **(**[6]Tint32_t)(__ccgo_up(bp + 4)) = [6]Tint32_t{} + len1 = uint32(0) + grlist_len = uint32(0) + **(**[11]int8)(__ccgo_up(bp + 28)) = [11]int8{} + **(**int32)(__ccgo_up(bp + 40)) = 0 + if name != 0 { + key = name + } else { + if gid < uint32(0) || gid > uint32(0xffffffff) { + rv = 0 + goto done + } + key = _itoa1(tls, bp+28, gid) + } + f = X__nscd_query(tls, req, key, bp+4, uint32(24), bp+40) + if !(f != 0) { + rv = **(**int32)(__ccgo_up(X__errno_location(tls))) + goto done + } + if !((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRFOUND)] != 0) { + rv = 0 + goto cleanup_f + } + if !((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRNAMELEN)] != 0) || !((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRPASSWDLEN)] != 0) { + rv = int32(EIO) + goto cleanup_f + } + if Uint32FromInt32((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRNAMELEN)]) > uint32(0xffffffff)-Uint32FromInt32((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRPASSWDLEN)]) { + rv = int32(ENOMEM) + goto cleanup_f + } + len1 = Uint32FromInt32((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRNAMELEN)] + (**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRPASSWDLEN)]) + i = 0 + for { + if !(i < (**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRMEMCNT)]) { + break + } + if Xfread(tls, bp+44, uint32(4), uint32(1), f) < uint32(1) { + if Xferror(tls, f) != 0 { + v1 = **(**int32)(__ccgo_up(X__errno_location(tls))) + } else { + v1 = int32(EIO) + } + rv = v1 + goto cleanup_f + } + if **(**int32)(__ccgo_up(bp + 40)) != 0 { + v5 = **(**Tuint32_t)(__ccgo_up(bp + 44)) + v6 = v5>>int32(24) | v5>>int32(8)&uint32(0xff00) | v5< uint32(0xffffffff)-grlist_len || **(**Tuint32_t)(__ccgo_up(bp + 44)) > uint32(0xffffffff)-len1 { + rv = int32(ENOMEM) + goto cleanup_f + } + len1 = len1 + **(**Tuint32_t)(__ccgo_up(bp + 44)) + grlist_len = grlist_len + **(**Tuint32_t)(__ccgo_up(bp + 44)) + goto _3 + _3: + ; + i = i + 1 + } + if len1 > **(**Tsize_t)(__ccgo_up(size)) || !(**(**uintptr)(__ccgo_up(buf)) != 0) { + tmp = Xrealloc(tls, **(**uintptr)(__ccgo_up(buf)), len1) + if !(tmp != 0) { + rv = **(**int32)(__ccgo_up(X__errno_location(tls))) + goto cleanup_f + } + **(**uintptr)(__ccgo_up(buf)) = tmp + **(**Tsize_t)(__ccgo_up(size)) = len1 + } + if !(Xfread(tls, **(**uintptr)(__ccgo_up(buf)), len1, uint32(1), f) != 0) { + if Xferror(tls, f) != 0 { + v1 = **(**int32)(__ccgo_up(X__errno_location(tls))) + } else { + v1 = int32(EIO) + } + rv = v1 + goto cleanup_f + } + if Uint32FromInt32((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRMEMCNT)]+int32(1)) > **(**Tsize_t)(__ccgo_up(nmem)) { + if Uint32FromInt32((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRMEMCNT)]+int32(1)) > Uint32FromUint32(0xffffffff)/Uint32FromInt64(4) { + rv = int32(ENOMEM) + goto cleanup_f + } + tmp1 = Xrealloc(tls, **(**uintptr)(__ccgo_up(mem)), Uint32FromInt32((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRMEMCNT)]+Int32FromInt32(1))*uint32(4)) + if !(tmp1 != 0) { + rv = **(**int32)(__ccgo_up(X__errno_location(tls))) + goto cleanup_f + } + **(**uintptr)(__ccgo_up(mem)) = tmp1 + **(**Tsize_t)(__ccgo_up(nmem)) = Uint32FromInt32((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRMEMCNT)] + int32(1)) + } + if (**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRMEMCNT)] != 0 { + **(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(mem)))) = **(**uintptr)(__ccgo_up(buf)) + uintptr((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRNAMELEN)]) + uintptr((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRPASSWDLEN)]) + ptr = **(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(mem)))) + i = Int32FromInt32(0) + for { + if !(ptr != **(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(mem))))+uintptr(grlist_len)) { + break + } + if !(**(**int8)(__ccgo_up(ptr)) != 0) { + i = i + 1 + v10 = i + **(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(mem)) + uintptr(v10)*4)) = ptr + uintptr(1) + } + goto _9 + _9: + ; + ptr = ptr + 1 + } + **(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(mem)) + uintptr(i)*4)) = uintptr(0) + if i != (**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRMEMCNT)] { + rv = int32(EIO) + goto cleanup_f + } + } else { + **(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(mem)))) = uintptr(0) + } + (*Tgroup)(unsafe.Pointer(gr)).Fgr_name = **(**uintptr)(__ccgo_up(buf)) + (*Tgroup)(unsafe.Pointer(gr)).Fgr_passwd = (*Tgroup)(unsafe.Pointer(gr)).Fgr_name + uintptr((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRNAMELEN)]) + (*Tgroup)(unsafe.Pointer(gr)).Fgr_gid = Uint32FromInt32((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRGID)]) + (*Tgroup)(unsafe.Pointer(gr)).Fgr_mem = **(**uintptr)(__ccgo_up(mem)) + if **(**int8)(__ccgo_up((*Tgroup)(unsafe.Pointer(gr)).Fgr_passwd + uintptr(-Int32FromInt32(1)))) != 0 || **(**int8)(__ccgo_up((*Tgroup)(unsafe.Pointer(gr)).Fgr_passwd + uintptr((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRPASSWDLEN)]-int32(1)))) != 0 { + rv = int32(EIO) + goto cleanup_f + } + if name != 0 && Xstrcmp(tls, name, (*Tgroup)(unsafe.Pointer(gr)).Fgr_name) != 0 || !(name != 0) && gid != (*Tgroup)(unsafe.Pointer(gr)).Fgr_gid { + rv = int32(EIO) + goto cleanup_f + } + **(**uintptr)(__ccgo_up(res)) = gr + goto cleanup_f + cleanup_f: + ; + Xfclose(tls, f) + goto done + } + goto done +done: + ; + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp)), uintptr(0)) + if rv != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = rv + } + return rv +} + +func _getgr_r(tls *TLS, name uintptr, gid Tgid_t, gr uintptr, buf uintptr, size Tsize_t, res uintptr) (r int32) { + bp := tls.Alloc(32) + defer tls.Free(32) + var i Tsize_t + var rv int32 + var _ /* cs at bp+16 */ int32 + var _ /* len at bp+4 */ Tsize_t + var _ /* line at bp+0 */ uintptr + var _ /* mem at bp+8 */ uintptr + var _ /* nmem at bp+12 */ Tsize_t + _, _ = i, rv + **(**uintptr)(__ccgo_up(bp)) = uintptr(0) + **(**Tsize_t)(__ccgo_up(bp + 4)) = uint32(0) + **(**uintptr)(__ccgo_up(bp + 8)) = uintptr(0) + **(**Tsize_t)(__ccgo_up(bp + 12)) = uint32(0) + rv = 0 + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp+16) + rv = X__getgr_a(tls, name, gid, gr, bp, bp+4, bp+8, bp+12, res) + if **(**uintptr)(__ccgo_up(res)) != 0 && size < **(**Tsize_t)(__ccgo_up(bp + 4))+(**(**Tsize_t)(__ccgo_up(bp + 12))+uint32(1))*uint32(4)+uint32(32) { + **(**uintptr)(__ccgo_up(res)) = uintptr(0) + rv = int32(ERANGE) + } + if **(**uintptr)(__ccgo_up(res)) != 0 { + buf = buf + uintptr((uint32(16)-uint32(buf))%uint32(16)) + (*Tgroup)(unsafe.Pointer(gr)).Fgr_mem = buf + buf = buf + uintptr((**(**Tsize_t)(__ccgo_up(bp + 12))+uint32(1))*uint32(4)) + Xmemcpy(tls, buf, **(**uintptr)(__ccgo_up(bp)), **(**Tsize_t)(__ccgo_up(bp + 4))) + (*Tgroup)(unsafe.Pointer(gr)).Fgr_name = uintptr(int32((*Tgroup)(unsafe.Pointer(gr)).Fgr_name)-int32(**(**uintptr)(__ccgo_up(bp)))) + buf + (*Tgroup)(unsafe.Pointer(gr)).Fgr_passwd = uintptr(int32((*Tgroup)(unsafe.Pointer(gr)).Fgr_passwd)-int32(**(**uintptr)(__ccgo_up(bp)))) + buf + i = uint32(0) + for { + if !(**(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + uintptr(i)*4)) != 0) { + break + } + **(**uintptr)(__ccgo_up((*Tgroup)(unsafe.Pointer(gr)).Fgr_mem + uintptr(i)*4)) = uintptr(int32(**(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + uintptr(i)*4)))-int32(**(**uintptr)(__ccgo_up(bp)))) + buf + goto _1 + _1: + ; + i = i + 1 + } + **(**uintptr)(__ccgo_up((*Tgroup)(unsafe.Pointer(gr)).Fgr_mem + uintptr(i)*4)) = uintptr(0) + } + Xfree(tls, **(**uintptr)(__ccgo_up(bp + 8))) + Xfree(tls, **(**uintptr)(__ccgo_up(bp))) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 16)), uintptr(0)) + if rv != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = rv + } + return rv +} + +func Xgetgrnam_r(tls *TLS, name uintptr, gr uintptr, buf uintptr, size Tsize_t, res uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v gr=%v buf=%v size=%v res=%v, (%v:)", tls, name, gr, buf, size, res, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _getgr_r(tls, name, uint32(0), gr, buf, size, res) +} + +func Xgetgrgid_r(tls *TLS, gid Tgid_t, gr uintptr, buf uintptr, size Tsize_t, res uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v gid=%v gr=%v buf=%v size=%v res=%v, (%v:)", tls, gid, gr, buf, size, res, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _getgr_r(tls, uintptr(0), gid, gr, buf, size, res) +} + +var _f1 uintptr +var _line3 uintptr +var _mem1 uintptr +var _gr1 Tgroup + +func Xsetgrent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + if _f1 != 0 { + Xfclose(tls, _f1) + } + _f1 = uintptr(0) +} + +func Xgetgrent(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* nmem at bp+8 */ Tsize_t + var _ /* res at bp+0 */ uintptr + var _ /* size at bp+4 */ Tsize_t + **(**Tsize_t)(__ccgo_up(bp + 4)) = uint32(0) + **(**Tsize_t)(__ccgo_up(bp + 8)) = uint32(0) + if !(_f1 != 0) { + _f1 = Xfopen(tls, __ccgo_ts+1150, __ccgo_ts+315) + } + if !(_f1 != 0) { + return uintptr(0) + } + X__getgrent_a(tls, _f1, uintptr(unsafe.Pointer(&_gr1)), uintptr(unsafe.Pointer(&_line3)), bp+4, uintptr(unsafe.Pointer(&_mem1)), bp+8, bp) + return **(**uintptr)(__ccgo_up(bp)) +} + +func Xgetgrgid(tls *TLS, gid Tgid_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v gid=%v, (%v:)", tls, gid, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* nmem at bp+8 */ Tsize_t + var _ /* res at bp+0 */ uintptr + var _ /* size at bp+4 */ Tsize_t + **(**Tsize_t)(__ccgo_up(bp + 4)) = uint32(0) + **(**Tsize_t)(__ccgo_up(bp + 8)) = uint32(0) + X__getgr_a(tls, uintptr(0), gid, uintptr(unsafe.Pointer(&_gr1)), uintptr(unsafe.Pointer(&_line3)), bp+4, uintptr(unsafe.Pointer(&_mem1)), bp+8, bp) + return **(**uintptr)(__ccgo_up(bp)) +} + +func Xgetgrnam(tls *TLS, name uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* nmem at bp+8 */ Tsize_t + var _ /* res at bp+0 */ uintptr + var _ /* size at bp+4 */ Tsize_t + **(**Tsize_t)(__ccgo_up(bp + 4)) = uint32(0) + **(**Tsize_t)(__ccgo_up(bp + 8)) = uint32(0) + X__getgr_a(tls, name, uint32(0), uintptr(unsafe.Pointer(&_gr1)), uintptr(unsafe.Pointer(&_line3)), bp+4, uintptr(unsafe.Pointer(&_mem1)), bp+8, bp) + return **(**uintptr)(__ccgo_up(bp)) +} + +func Xendgrent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + Xsetgrent(tls) +} + +func _atou(tls *TLS, s uintptr) (r uint32) { + var x uint32 + _ = x + x = uint32(0) + for { + if !(Uint32FromInt32(int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(s)))))-int32('0')) < uint32(10)) { + break + } + x = uint32(10)*x + Uint32FromInt32(int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(s)))))-Int32FromUint8('0')) + goto _1 + _1: + ; + **(**uintptr)(__ccgo_up(s)) = **(**uintptr)(__ccgo_up(s)) + 1 + } + return x +} + +func X__getgrent_a(tls *TLS, f uintptr, gr uintptr, line uintptr, size uintptr, mem uintptr, nmem uintptr, res uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v gr=%v line=%v size=%v mem=%v nmem=%v res=%v, (%v:)", tls, f, gr, line, size, mem, nmem, res, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var i, v13 Tsize_t + var l, v2 Tssize_t + var mems, v4 uintptr + var rv, v3 int32 + var _ /* cs at bp+4 */ int32 + var _ /* s at bp+0 */ uintptr + _, _, _, _, _, _, _, _ = i, l, mems, rv, v13, v2, v3, v4 + rv = 0 + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp+4) + for { + v2 = Xgetline(tls, line, size, f) + l = v2 + if v2 < 0 { + if Xferror(tls, f) != 0 { + v3 = **(**int32)(__ccgo_up(X__errno_location(tls))) + } else { + v3 = 0 + } + rv = v3 + Xfree(tls, **(**uintptr)(__ccgo_up(line))) + **(**uintptr)(__ccgo_up(line)) = uintptr(0) + gr = uintptr(0) + goto end + } + **(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(line)) + uintptr(l-int32(1)))) = 0 + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(line)) + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + (*Tgroup)(unsafe.Pointer(gr)).Fgr_name = v4 + v4 = Xstrchr(tls, **(**uintptr)(__ccgo_up(bp)), int32(':')) + **(**uintptr)(__ccgo_up(bp)) = v4 + if !(v4 != 0) { + goto _1 + } + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + **(**int8)(__ccgo_up(v4)) = 0 + (*Tgroup)(unsafe.Pointer(gr)).Fgr_passwd = **(**uintptr)(__ccgo_up(bp)) + v4 = Xstrchr(tls, **(**uintptr)(__ccgo_up(bp)), int32(':')) + **(**uintptr)(__ccgo_up(bp)) = v4 + if !(v4 != 0) { + goto _1 + } + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + **(**int8)(__ccgo_up(v4)) = 0 + (*Tgroup)(unsafe.Pointer(gr)).Fgr_gid = _atou(tls, bp) + if int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp))))) != int32(':') { + goto _1 + } + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + **(**int8)(__ccgo_up(v4)) = 0 + mems = **(**uintptr)(__ccgo_up(bp)) + break + goto _1 + _1: + } + **(**Tsize_t)(__ccgo_up(nmem)) = BoolUint32(!!(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)))) != 0)) + for { + if !(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)))) != 0) { + break + } + if int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp))))) == int32(',') { + **(**Tsize_t)(__ccgo_up(nmem)) = **(**Tsize_t)(__ccgo_up(nmem)) + 1 + } + goto _10 + _10: + ; + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + } + Xfree(tls, **(**uintptr)(__ccgo_up(mem))) + **(**uintptr)(__ccgo_up(mem)) = Xcalloc(tls, uint32(4), **(**Tsize_t)(__ccgo_up(nmem))+uint32(1)) + if !(**(**uintptr)(__ccgo_up(mem)) != 0) { + rv = **(**int32)(__ccgo_up(X__errno_location(tls))) + Xfree(tls, **(**uintptr)(__ccgo_up(line))) + **(**uintptr)(__ccgo_up(line)) = uintptr(0) + gr = uintptr(0) + goto end + } + if **(**int8)(__ccgo_up(mems)) != 0 { + **(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(mem)))) = mems + **(**uintptr)(__ccgo_up(bp)) = mems + i = Uint32FromInt32(0) + for { + if !(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)))) != 0) { + break + } + if int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp))))) == int32(',') { + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + **(**int8)(__ccgo_up(v4)) = 0 + i = i + 1 + v13 = i + **(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(mem)) + uintptr(v13)*4)) = **(**uintptr)(__ccgo_up(bp)) + } + goto _11 + _11: + ; + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + } + i = i + 1 + v13 = i + **(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(mem)) + uintptr(v13)*4)) = uintptr(0) + } else { + **(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(mem)))) = uintptr(0) + } + (*Tgroup)(unsafe.Pointer(gr)).Fgr_mem = **(**uintptr)(__ccgo_up(mem)) + goto end +end: + ; + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 4)), uintptr(0)) + **(**uintptr)(__ccgo_up(res)) = gr + if rv != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = rv + } + return rv +} + +func Xgetgrouplist(tls *TLS, user uintptr, gid Tgid_t, groups uintptr, ngroups uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v user=%v gid=%v groups=%v ngroups=%v, (%v:)", tls, user, gid, groups, ngroups, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var f, nscdbuf, v1 uintptr + var i, n, v9 Tssize_t + var nbytes Tsize_t + var nlim, ret, rv, v6 int32 + var v3, v4 Tuint32_t + var _ /* buf at bp+36 */ uintptr + var _ /* gr at bp+0 */ Tgroup + var _ /* mem at bp+40 */ uintptr + var _ /* nmem at bp+44 */ Tsize_t + var _ /* res at bp+16 */ uintptr + var _ /* resp at bp+24 */ [3]Tint32_t + var _ /* size at bp+48 */ Tsize_t + var _ /* swap at bp+20 */ int32 + _, _, _, _, _, _, _, _, _, _, _, _, _ = f, i, n, nbytes, nlim, nscdbuf, ret, rv, v1, v3, v4, v6, v9 + ret = -int32(1) + n = int32(1) + **(**int32)(__ccgo_up(bp + 20)) = 0 + nscdbuf = uintptr(0) + **(**uintptr)(__ccgo_up(bp + 36)) = uintptr(0) + **(**uintptr)(__ccgo_up(bp + 40)) = uintptr(0) + **(**Tsize_t)(__ccgo_up(bp + 44)) = uint32(0) + nlim = **(**int32)(__ccgo_up(ngroups)) + if nlim >= int32(1) { + v1 = groups + groups += 4 + **(**Tgid_t)(__ccgo_up(v1)) = gid + } + f = X__nscd_query(tls, int32(GETINITGR), user, bp+24, uint32(12), bp+20) + if !(f != 0) { + goto cleanup + } + if (**(**[3]Tint32_t)(__ccgo_up(bp + 24)))[int32(INITGRFOUND)] != 0 { + nscdbuf = Xcalloc(tls, Uint32FromInt32((**(**[3]Tint32_t)(__ccgo_up(bp + 24)))[int32(INITGRNGRPS)]), uint32(4)) + if !(nscdbuf != 0) { + goto cleanup + } + nbytes = uint32(4) * Uint32FromInt32((**(**[3]Tint32_t)(__ccgo_up(bp + 24)))[int32(INITGRNGRPS)]) + if nbytes != 0 && !(Xfread(tls, nscdbuf, nbytes, uint32(1), f) != 0) { + if !(Xferror(tls, f) != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EIO) + } + goto cleanup + } + if **(**int32)(__ccgo_up(bp + 20)) != 0 { + i = 0 + for { + if !(i < (**(**[3]Tint32_t)(__ccgo_up(bp + 24)))[int32(INITGRNGRPS)]) { + break + } + v3 = **(**Tuint32_t)(__ccgo_up(nscdbuf + uintptr(i)*4)) + v4 = v3>>int32(24) | v3>>int32(8)&uint32(0xff00) | v3< nlim { + v6 = -int32(1) + } else { + v6 = n + } + ret = v6 + **(**int32)(__ccgo_up(ngroups)) = n + goto cleanup +cleanup: + ; + if f != 0 { + Xfclose(tls, f) + } + Xfree(tls, nscdbuf) + Xfree(tls, **(**uintptr)(__ccgo_up(bp + 36))) + Xfree(tls, **(**uintptr)(__ccgo_up(bp + 40))) + return ret +} + +func _itoa2(tls *TLS, p uintptr, x Tuint32_t) (r uintptr) { + var v1 uintptr + _ = v1 + // number of digits in a uint32_t + NUL + p = p + uintptr(11) + p = p - 1 + v1 = p + **(**int8)(__ccgo_up(v1)) = 0 + for cond := true; cond; cond = x != 0 { + p = p - 1 + v1 = p + **(**int8)(__ccgo_up(v1)) = Int8FromUint32(uint32('0') + x%uint32(10)) + x = x / uint32(10) + } + return p +} + +func X__getpw_a(tls *TLS, name uintptr, uid Tuid_t, pw uintptr, buf uintptr, size uintptr, res uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v uid=%v pw=%v buf=%v size=%v res=%v, (%v:)", tls, name, uid, pw, buf, size, res, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var f, key, tmp uintptr + var len1 Tsize_t + var req Tint32_t + var rv, v1 int32 + var _ /* cs at bp+4 */ int32 + var _ /* passwdbuf at bp+8 */ [9]Tint32_t + var _ /* uidbuf at bp+44 */ [11]int8 + _, _, _, _, _, _, _ = f, key, len1, req, rv, tmp, v1 + rv = 0 + **(**uintptr)(__ccgo_up(res)) = uintptr(0) + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp+4) + f = Xfopen(tls, __ccgo_ts+1161, __ccgo_ts+315) + if !(f != 0) { + rv = **(**int32)(__ccgo_up(X__errno_location(tls))) + goto done + } + for { + v1 = X__getpwent_a(tls, f, pw, buf, size, res) + rv = v1 + if !(!(v1 != 0) && **(**uintptr)(__ccgo_up(res)) != 0) { + break + } + if name != 0 && !(Xstrcmp(tls, name, (*Tpasswd)(unsafe.Pointer(**(**uintptr)(__ccgo_up(res)))).Fpw_name) != 0) || !(name != 0) && (*Tpasswd)(unsafe.Pointer(**(**uintptr)(__ccgo_up(res)))).Fpw_uid == uid { + break + } + } + Xfclose(tls, f) + if !(**(**uintptr)(__ccgo_up(res)) != 0) && (rv == 0 || rv == int32(ENOENT) || rv == int32(ENOTDIR)) { + if name != 0 { + v1 = GETPWBYNAME + } else { + v1 = int32(GETPWBYUID) + } + req = v1 + **(**[9]Tint32_t)(__ccgo_up(bp + 8)) = [9]Tint32_t{} + len1 = uint32(0) + **(**[11]int8)(__ccgo_up(bp + 44)) = [11]int8{} + if name != 0 { + key = name + } else { + /* uid outside of this range can't be queried with the + * nscd interface, but might happen if uid_t ever + * happens to be a larger type (this is not true as of + * now) + */ + if uid < uint32(0) || uid > uint32(0xffffffff) { + rv = 0 + goto done + } + key = _itoa2(tls, bp+44, uid) + } + *(*[1]int32)(unsafe.Pointer(bp)) = [1]int32{} + f = X__nscd_query(tls, req, key, bp+8, uint32(36), bp) + if !(f != 0) { + rv = **(**int32)(__ccgo_up(X__errno_location(tls))) + goto done + } + if !((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWFOUND)] != 0) { + rv = 0 + goto cleanup_f + } + /* A zero length response from nscd is invalid. We ignore + * invalid responses and just report an error, rather than + * trying to do something with them. + */ + if !((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWNAMELEN)] != 0) || !((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWPASSWDLEN)] != 0) || !((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWGECOSLEN)] != 0) || !((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWDIRLEN)] != 0) || !((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWSHELLLEN)] != 0) { + rv = int32(EIO) + goto cleanup_f + } + if Uint32FromInt32((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWNAMELEN)]|(**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWPASSWDLEN)]|(**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWGECOSLEN)]|(**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWDIRLEN)]|(**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWSHELLLEN)]) >= Uint32FromUint32(0xffffffff)/Uint32FromInt32(8) { + rv = int32(ENOMEM) + goto cleanup_f + } + len1 = Uint32FromInt32((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWNAMELEN)] + (**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWPASSWDLEN)] + (**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWGECOSLEN)] + (**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWDIRLEN)] + (**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWSHELLLEN)]) + if len1 > **(**Tsize_t)(__ccgo_up(size)) || !(**(**uintptr)(__ccgo_up(buf)) != 0) { + tmp = Xrealloc(tls, **(**uintptr)(__ccgo_up(buf)), len1) + if !(tmp != 0) { + rv = **(**int32)(__ccgo_up(X__errno_location(tls))) + goto cleanup_f + } + **(**uintptr)(__ccgo_up(buf)) = tmp + **(**Tsize_t)(__ccgo_up(size)) = len1 + } + if !(Xfread(tls, **(**uintptr)(__ccgo_up(buf)), len1, uint32(1), f) != 0) { + if Xferror(tls, f) != 0 { + v1 = **(**int32)(__ccgo_up(X__errno_location(tls))) + } else { + v1 = int32(EIO) + } + rv = v1 + goto cleanup_f + } + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_name = **(**uintptr)(__ccgo_up(buf)) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_passwd = (*Tpasswd)(unsafe.Pointer(pw)).Fpw_name + uintptr((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWNAMELEN)]) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_gecos = (*Tpasswd)(unsafe.Pointer(pw)).Fpw_passwd + uintptr((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWPASSWDLEN)]) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_dir = (*Tpasswd)(unsafe.Pointer(pw)).Fpw_gecos + uintptr((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWGECOSLEN)]) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_shell = (*Tpasswd)(unsafe.Pointer(pw)).Fpw_dir + uintptr((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWDIRLEN)]) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_uid = Uint32FromInt32((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWUID)]) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_gid = Uint32FromInt32((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWGID)]) + /* Don't assume that nscd made sure to null terminate strings. + * It's supposed to, but malicious nscd should be ignored + * rather than causing a crash. + */ + if **(**int8)(__ccgo_up((*Tpasswd)(unsafe.Pointer(pw)).Fpw_passwd + uintptr(-Int32FromInt32(1)))) != 0 || **(**int8)(__ccgo_up((*Tpasswd)(unsafe.Pointer(pw)).Fpw_gecos + uintptr(-Int32FromInt32(1)))) != 0 || **(**int8)(__ccgo_up((*Tpasswd)(unsafe.Pointer(pw)).Fpw_dir + uintptr(-Int32FromInt32(1)))) != 0 || **(**int8)(__ccgo_up((*Tpasswd)(unsafe.Pointer(pw)).Fpw_shell + uintptr((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWSHELLLEN)]-int32(1)))) != 0 { + rv = int32(EIO) + goto cleanup_f + } + if name != 0 && Xstrcmp(tls, name, (*Tpasswd)(unsafe.Pointer(pw)).Fpw_name) != 0 || !(name != 0) && uid != (*Tpasswd)(unsafe.Pointer(pw)).Fpw_uid { + rv = int32(EIO) + goto cleanup_f + } + **(**uintptr)(__ccgo_up(res)) = pw + goto cleanup_f + cleanup_f: + ; + Xfclose(tls, f) + goto done + } + goto done +done: + ; + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 4)), uintptr(0)) + if rv != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = rv + } + return rv +} + +func _getpw_r(tls *TLS, name uintptr, uid Tuid_t, pw uintptr, buf uintptr, size Tsize_t, res uintptr) (r int32) { + bp := tls.Alloc(16) + defer tls.Free(16) + var rv int32 + var _ /* cs at bp+8 */ int32 + var _ /* len at bp+4 */ Tsize_t + var _ /* line at bp+0 */ uintptr + _ = rv + **(**uintptr)(__ccgo_up(bp)) = uintptr(0) + **(**Tsize_t)(__ccgo_up(bp + 4)) = uint32(0) + rv = 0 + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp+8) + rv = X__getpw_a(tls, name, uid, pw, bp, bp+4, res) + if **(**uintptr)(__ccgo_up(res)) != 0 && size < **(**Tsize_t)(__ccgo_up(bp + 4)) { + **(**uintptr)(__ccgo_up(res)) = uintptr(0) + rv = int32(ERANGE) + } + if **(**uintptr)(__ccgo_up(res)) != 0 { + Xmemcpy(tls, buf, **(**uintptr)(__ccgo_up(bp)), **(**Tsize_t)(__ccgo_up(bp + 4))) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_name = uintptr(int32((*Tpasswd)(unsafe.Pointer(pw)).Fpw_name)-int32(**(**uintptr)(__ccgo_up(bp)))) + buf + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_passwd = uintptr(int32((*Tpasswd)(unsafe.Pointer(pw)).Fpw_passwd)-int32(**(**uintptr)(__ccgo_up(bp)))) + buf + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_gecos = uintptr(int32((*Tpasswd)(unsafe.Pointer(pw)).Fpw_gecos)-int32(**(**uintptr)(__ccgo_up(bp)))) + buf + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_dir = uintptr(int32((*Tpasswd)(unsafe.Pointer(pw)).Fpw_dir)-int32(**(**uintptr)(__ccgo_up(bp)))) + buf + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_shell = uintptr(int32((*Tpasswd)(unsafe.Pointer(pw)).Fpw_shell)-int32(**(**uintptr)(__ccgo_up(bp)))) + buf + } + Xfree(tls, **(**uintptr)(__ccgo_up(bp))) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 8)), uintptr(0)) + if rv != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = rv + } + return rv +} + +func Xgetpwnam_r(tls *TLS, name uintptr, pw uintptr, buf uintptr, size Tsize_t, res uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v pw=%v buf=%v size=%v res=%v, (%v:)", tls, name, pw, buf, size, res, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _getpw_r(tls, name, uint32(0), pw, buf, size, res) +} + +func Xgetpwuid_r(tls *TLS, uid Tuid_t, pw uintptr, buf uintptr, size Tsize_t, res uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v uid=%v pw=%v buf=%v size=%v res=%v, (%v:)", tls, uid, pw, buf, size, res, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _getpw_r(tls, uintptr(0), uid, pw, buf, size, res) +} + +var _f2 uintptr +var _line4 uintptr +var _pw1 Tpasswd +var _size Tsize_t + +func Xsetpwent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + if _f2 != 0 { + Xfclose(tls, _f2) + } + _f2 = uintptr(0) +} + +func Xgetpwent(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* res at bp+0 */ uintptr + if !(_f2 != 0) { + _f2 = Xfopen(tls, __ccgo_ts+1161, __ccgo_ts+315) + } + if !(_f2 != 0) { + return uintptr(0) + } + X__getpwent_a(tls, _f2, uintptr(unsafe.Pointer(&_pw1)), uintptr(unsafe.Pointer(&_line4)), uintptr(unsafe.Pointer(&_size)), bp) + return **(**uintptr)(__ccgo_up(bp)) +} + +func Xgetpwuid(tls *TLS, uid Tuid_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v uid=%v, (%v:)", tls, uid, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* res at bp+0 */ uintptr + X__getpw_a(tls, uintptr(0), uid, uintptr(unsafe.Pointer(&_pw1)), uintptr(unsafe.Pointer(&_line4)), uintptr(unsafe.Pointer(&_size)), bp) + return **(**uintptr)(__ccgo_up(bp)) +} + +func Xgetpwnam(tls *TLS, name uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* res at bp+0 */ uintptr + X__getpw_a(tls, name, uint32(0), uintptr(unsafe.Pointer(&_pw1)), uintptr(unsafe.Pointer(&_line4)), uintptr(unsafe.Pointer(&_size)), bp) + return **(**uintptr)(__ccgo_up(bp)) +} + +func Xendpwent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + Xsetpwent(tls) +} + +func _atou1(tls *TLS, s uintptr) (r uint32) { + var x uint32 + _ = x + x = uint32(0) + for { + if !(Uint32FromInt32(int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(s)))))-int32('0')) < uint32(10)) { + break + } + x = uint32(10)*x + Uint32FromInt32(int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(s)))))-Int32FromUint8('0')) + goto _1 + _1: + ; + **(**uintptr)(__ccgo_up(s)) = **(**uintptr)(__ccgo_up(s)) + 1 + } + return x +} + +func X__getpwent_a(tls *TLS, f uintptr, pw uintptr, line uintptr, size uintptr, res uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v pw=%v line=%v size=%v res=%v, (%v:)", tls, f, pw, line, size, res, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var l, v2 Tssize_t + var rv, v3 int32 + var v4 uintptr + var _ /* cs at bp+4 */ int32 + var _ /* s at bp+0 */ uintptr + _, _, _, _, _ = l, rv, v2, v3, v4 + rv = 0 + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp+4) + for { + v2 = Xgetline(tls, line, size, f) + l = v2 + if v2 < 0 { + if Xferror(tls, f) != 0 { + v3 = **(**int32)(__ccgo_up(X__errno_location(tls))) + } else { + v3 = 0 + } + rv = v3 + Xfree(tls, **(**uintptr)(__ccgo_up(line))) + **(**uintptr)(__ccgo_up(line)) = uintptr(0) + pw = uintptr(0) + break + } + **(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(line)) + uintptr(l-int32(1)))) = 0 + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(line)) + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_name = v4 + v4 = Xstrchr(tls, **(**uintptr)(__ccgo_up(bp)), int32(':')) + **(**uintptr)(__ccgo_up(bp)) = v4 + if !(v4 != 0) { + goto _1 + } + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + **(**int8)(__ccgo_up(v4)) = 0 + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_passwd = **(**uintptr)(__ccgo_up(bp)) + v4 = Xstrchr(tls, **(**uintptr)(__ccgo_up(bp)), int32(':')) + **(**uintptr)(__ccgo_up(bp)) = v4 + if !(v4 != 0) { + goto _1 + } + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + **(**int8)(__ccgo_up(v4)) = 0 + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_uid = _atou1(tls, bp) + if int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp))))) != int32(':') { + goto _1 + } + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + **(**int8)(__ccgo_up(v4)) = 0 + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_gid = _atou1(tls, bp) + if int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp))))) != int32(':') { + goto _1 + } + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + **(**int8)(__ccgo_up(v4)) = 0 + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_gecos = **(**uintptr)(__ccgo_up(bp)) + v4 = Xstrchr(tls, **(**uintptr)(__ccgo_up(bp)), int32(':')) + **(**uintptr)(__ccgo_up(bp)) = v4 + if !(v4 != 0) { + goto _1 + } + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + **(**int8)(__ccgo_up(v4)) = 0 + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_dir = **(**uintptr)(__ccgo_up(bp)) + v4 = Xstrchr(tls, **(**uintptr)(__ccgo_up(bp)), int32(':')) + **(**uintptr)(__ccgo_up(bp)) = v4 + if !(v4 != 0) { + goto _1 + } + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + **(**int8)(__ccgo_up(v4)) = 0 + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_shell = **(**uintptr)(__ccgo_up(bp)) + break + goto _1 + _1: + } + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 4)), uintptr(0)) + **(**uintptr)(__ccgo_up(res)) = pw + if rv != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = rv + } + return rv +} + +func Xsetspent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } +} + +func Xendspent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } +} + +func Xgetspent(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(0) +} + +func Xlckpwdf(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return 0 +} + +func Xulckpwdf(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return 0 +} + +var _addr = struct { + Fsun_family int16 + Fsun_path [21]int8 +}{ + Fsun_family: int16(PF_LOCAL), + Fsun_path: [21]int8{'/', 'v', 'a', 'r', '/', 'r', 'u', 'n', '/', 'n', 's', 'c', 'd', '/', 's', 'o', 'c', 'k', 'e', 't'}, +} + +func X__nscd_query(tls *TLS, req Tint32_t, key uintptr, buf uintptr, len1 Tsize_t, swap uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v req=%v key=%v buf=%v len1=%v swap=%v, (%v:)", tls, req, key, buf, len1, swap, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var errno_save, fd int32 + var f, v1 uintptr + var i Tsize_t + var v3, v4 Tuint32_t + var _ /* msg at bp+28 */ Tmsghdr + var _ /* req_buf at bp+16 */ [3]Tint32_t + _, _, _, _, _, _, _ = errno_save, f, fd, i, v1, v3, v4 + f = uintptr(0) + **(**[3]Tint32_t)(__ccgo_up(bp + 16)) = [3]Tint32_t{ + 0: int32(NSCDVERSION), + 1: req, + 2: Int32FromUint32(Xstrnlen(tls, key, uint32(LOGIN_NAME_MAX)) + uint32(1)), + } + *(*[2]Tiovec)(unsafe.Pointer(bp)) = [2]Tiovec{ + 0: { + Fiov_base: bp + 16, + Fiov_len: uint32(12), + }, + 1: { + Fiov_base: key, + Fiov_len: _strlen(tls, key) + uint32(1), + }, + } + **(**Tmsghdr)(__ccgo_up(bp + 28)) = Tmsghdr{ + Fmsg_iov: bp, + Fmsg_iovlen: int32(2), + } + errno_save = **(**int32)(__ccgo_up(X__errno_location(tls))) + **(**int32)(__ccgo_up(swap)) = 0 + goto retry +retry: + ; + Xmemset(tls, buf, 0, len1) + **(**Tint32_t)(__ccgo_up(buf)) = int32(NSCDVERSION) + fd = Xsocket(tls, int32(PF_LOCAL), Int32FromInt32(SOCK_STREAM)|Int32FromInt32(SOCK_CLOEXEC), 0) + if fd < 0 { + if **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EAFNOSUPPORT) { + f = Xfopen(tls, __ccgo_ts+1173, __ccgo_ts+1183) + if f != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = errno_save + } + return f + } + return uintptr(0) + } + v1 = Xfdopen(tls, fd, __ccgo_ts+1186) + f = v1 + if !(v1 != 0) { + Xclose(tls, fd) + return uintptr(0) + } + if (**(**[3]Tint32_t)(__ccgo_up(bp + 16)))[int32(2)] > int32(LOGIN_NAME_MAX) { + return f + } + if Xconnect(tls, fd, uintptr(unsafe.Pointer(&_addr)), uint32(24)) < 0 { + /* If there isn't a running nscd we simulate a "not found" + * result and the caller is responsible for calling + * fclose on the (unconnected) socket. The value of + * errno must be left unchanged in this case. */ + if **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EACCES) || **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(ECONNREFUSED) || **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(ENOENT) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = errno_save + return f + } + goto error + } + if Xsendmsg(tls, fd, bp+28, int32(MSG_NOSIGNAL)) < 0 { + goto error + } + if !(Xfread(tls, buf, len1, uint32(1), f) != 0) { + /* If the VERSION entry mismatches nscd will disconnect. The + * most likely cause is that the endianness mismatched. So, we + * byteswap and try once more. (if we already swapped, just + * fail out) + */ + if Xferror(tls, f) != 0 { + goto error + } + if !(**(**int32)(__ccgo_up(swap)) != 0) { + Xfclose(tls, f) + i = uint32(0) + for { + if !(i < Uint32FromInt64(12)/Uint32FromInt64(4)) { + break + } + v3 = Uint32FromInt32((**(**[3]Tint32_t)(__ccgo_up(bp + 16)))[i]) + v4 = v3>>int32(24) | v3>>int32(8)&uint32(0xff00) | v3<>int32(24) | v3>>int32(8)&uint32(0xff00) | v3< %v", r1) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var i Tsize_t + var r, v1 int32 + var v4 uintptr + _, _, _, _ = i, r, v1, v4 + Xflockfile(tls, f) + v1 = Xfprintf(tls, f, __ccgo_ts+1188, VaList(bp+8, (*Tgroup)(unsafe.Pointer(gr)).Fgr_name, (*Tgroup)(unsafe.Pointer(gr)).Fgr_passwd, (*Tgroup)(unsafe.Pointer(gr)).Fgr_gid)) + r = v1 + if v1 < 0 { + goto done + } + if (*Tgroup)(unsafe.Pointer(gr)).Fgr_mem != 0 { + i = uint32(0) + for { + if !(**(**uintptr)(__ccgo_up((*Tgroup)(unsafe.Pointer(gr)).Fgr_mem + uintptr(i)*4)) != 0) { + break + } + if i != 0 { + v4 = __ccgo_ts + 1198 + } else { + v4 = __ccgo_ts + } + v1 = Xfprintf(tls, f, __ccgo_ts+1200, VaList(bp+8, v4, **(**uintptr)(__ccgo_up((*Tgroup)(unsafe.Pointer(gr)).Fgr_mem + uintptr(i)*4)))) + r = v1 + if v1 < 0 { + goto done + } + goto _2 + _2: + ; + i = i + 1 + } + } + r = Xfputc(tls, int32('\n'), f) + goto done +done: + ; + Xfunlockfile(tls, f) + if r < 0 { + v1 = -int32(1) + } else { + v1 = 0 + } + return v1 +} + +func Xputpwent(tls *TLS, pw uintptr, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v pw=%v f=%v, (%v:)", tls, pw, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var v1 int32 + _ = v1 + if Xfprintf(tls, f, __ccgo_ts+1205, VaList(bp+8, (*Tpasswd)(unsafe.Pointer(pw)).Fpw_name, (*Tpasswd)(unsafe.Pointer(pw)).Fpw_passwd, (*Tpasswd)(unsafe.Pointer(pw)).Fpw_uid, (*Tpasswd)(unsafe.Pointer(pw)).Fpw_gid, (*Tpasswd)(unsafe.Pointer(pw)).Fpw_gecos, (*Tpasswd)(unsafe.Pointer(pw)).Fpw_dir, (*Tpasswd)(unsafe.Pointer(pw)).Fpw_shell)) < 0 { + v1 = -int32(1) + } else { + v1 = 0 + } + return v1 +} + +func Xputspent(tls *TLS, sp uintptr, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v sp=%v f=%v, (%v:)", tls, sp, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(144) + defer tls.Free(144) + var v1, v10, v11, v12, v13, v14, v15, v16, v4, v5, v6, v7, v8, v9 int32 + var v17 uint32 + var v2, v3 uintptr + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = v1, v10, v11, v12, v13, v14, v15, v16, v17, v2, v3, v4, v5, v6, v7, v8, v9 + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_namp != 0 { + v2 = (*Tspwd)(unsafe.Pointer(sp)).Fsp_namp + } else { + v2 = __ccgo_ts + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_pwdp != 0 { + v3 = (*Tspwd)(unsafe.Pointer(sp)).Fsp_pwdp + } else { + v3 = __ccgo_ts + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_lstchg == -int32(1) { + v4 = 0 + } else { + v4 = -int32(1) + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_lstchg == -int32(1) { + v5 = 0 + } else { + v5 = (*Tspwd)(unsafe.Pointer(sp)).Fsp_lstchg + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_min == -int32(1) { + v6 = 0 + } else { + v6 = -int32(1) + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_min == -int32(1) { + v7 = 0 + } else { + v7 = (*Tspwd)(unsafe.Pointer(sp)).Fsp_min + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_max == -int32(1) { + v8 = 0 + } else { + v8 = -int32(1) + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_max == -int32(1) { + v9 = 0 + } else { + v9 = (*Tspwd)(unsafe.Pointer(sp)).Fsp_max + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_warn == -int32(1) { + v10 = 0 + } else { + v10 = -int32(1) + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_warn == -int32(1) { + v11 = 0 + } else { + v11 = (*Tspwd)(unsafe.Pointer(sp)).Fsp_warn + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_inact == -int32(1) { + v12 = 0 + } else { + v12 = -int32(1) + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_inact == -int32(1) { + v13 = 0 + } else { + v13 = (*Tspwd)(unsafe.Pointer(sp)).Fsp_inact + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_expire == -int32(1) { + v14 = 0 + } else { + v14 = -int32(1) + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_expire == -int32(1) { + v15 = 0 + } else { + v15 = (*Tspwd)(unsafe.Pointer(sp)).Fsp_expire + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_flag == Uint32FromInt32(-Int32FromInt32(1)) { + v16 = 0 + } else { + v16 = -int32(1) + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_flag == Uint32FromInt32(-Int32FromInt32(1)) { + v17 = uint32(0) + } else { + v17 = (*Tspwd)(unsafe.Pointer(sp)).Fsp_flag + } + if Xfprintf(tls, f, __ccgo_ts+1227, VaList(bp+8, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17)) < 0 { + v1 = -int32(1) + } else { + v1 = 0 + } + return v1 +} + +func X__rand48_step(tls *TLS, xi uintptr, lc uintptr) (r Tuint64_t) { + if __ccgo_strace { + trc("tls=%v xi=%v lc=%v, (%v:)", tls, xi, lc, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, x Tuint64_t + _, _ = a, x + x = uint64(uint32(**(**uint16)(__ccgo_up(xi)))|(uint32(**(**uint16)(__ccgo_up(xi + 1*2)))+0)<> int32(16)) + **(**uint16)(__ccgo_up(xi + 2*2)) = uint16(x >> int32(32)) + return x & uint64(0xffffffffffff) +} + +func Xerand48(tls *TLS, s uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* x at bp+0 */ struct { + Ff [0]float64 + Fu Tuint64_t + } + *(*struct { + Ff [0]float64 + Fu Tuint64_t + })(unsafe.Pointer(bp)) = struct { + Ff [0]float64 + Fu Tuint64_t + }{} + *(*uint64)(unsafe.Pointer(bp)) = uint64(0x3ff0000000000000) | X__rand48_step(tls, s, uintptr(unsafe.Pointer(&X__seed48))+uintptr(3)*2)< %v", r) }() + } + return Xerand48(tls, uintptr(unsafe.Pointer(&X__seed48))) +} + +func Xlcong48(tls *TLS, p uintptr) { + if __ccgo_strace { + trc("tls=%v p=%v, (%v:)", tls, p, origin(2)) + } + Xmemcpy(tls, uintptr(unsafe.Pointer(&X__seed48)), p, uint32(14)) +} + +func Xnrand48(tls *TLS, s uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Int32FromUint64(X__rand48_step(tls, s, uintptr(unsafe.Pointer(&X__seed48))+uintptr(3)*2) >> int32(17)) +} + +func Xlrand48(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xnrand48(tls, uintptr(unsafe.Pointer(&X__seed48))) +} + +func Xjrand48(tls *TLS, s uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(Int32FromUint64(X__rand48_step(tls, s, uintptr(unsafe.Pointer(&X__seed48))+uintptr(3)*2) >> Int32FromInt32(16))) +} + +func Xmrand48(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xjrand48(tls, uintptr(unsafe.Pointer(&X__seed48))) +} + +var _seed Tuint64_t + +func Xsrand(tls *TLS, s uint32) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + } + _seed = uint64(s - uint32(1)) +} + +func Xrand(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + _seed = uint64(6364136223846793005)*_seed + uint64(1) + return Int32FromUint64(_seed >> int32(33)) +} + +func _temper(tls *TLS, x uint32) (r uint32) { + x = x ^ x>>int32(11) + x = x ^ x<>int32(18) + return x +} + +func Xrand_r(tls *TLS, seed uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v seed=%v, (%v:)", tls, seed, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 uint32 + _ = v1 + v1 = **(**uint32)(__ccgo_up(seed))*Uint32FromInt32(1103515245) + Uint32FromInt32(12345) + **(**uint32)(__ccgo_up(seed)) = v1 + return Int32FromUint32(_temper(tls, v1) / uint32(2)) +} + +/* +this code uses the same lagged fibonacci generator as the +original bsd random implementation except for the seeding +which was broken in the original +*/ + +var _init = [32]Tuint32_t{ + 1: uint32(0x5851f42d), + 2: uint32(0xc0b18ccf), + 3: uint32(0xcbb5f646), + 4: uint32(0xc7033129), + 5: uint32(0x30705b04), + 6: uint32(0x20fd5db4), + 7: uint32(0x9a8b7f78), + 8: uint32(0x502959d8), + 9: uint32(0xab894868), + 10: uint32(0x6c0356a7), + 11: uint32(0x88cdb7ff), + 12: uint32(0xb477d43f), + 13: uint32(0x70a3a52b), + 14: uint32(0xa8e4baf1), + 15: uint32(0xfd8341fc), + 16: uint32(0x8ae16fd9), + 17: uint32(0x742d2f7a), + 18: uint32(0x0d1f0796), + 19: uint32(0x76035e09), + 20: uint32(0x40f7702c), + 21: uint32(0x6fa72ca5), + 22: uint32(0xaaa84157), + 23: uint32(0x58a0df74), + 24: uint32(0xc74a0364), + 25: uint32(0xae533cc4), + 26: uint32(0x04185faf), + 27: uint32(0x6de3b115), + 28: uint32(0x0cab8628), + 29: uint32(0xf043bfa4), + 30: uint32(0x398150e9), + 31: uint32(0x37521657), +} + +var _n = int32(31) +var _i = int32(3) +var _j = int32(0) +var _x1 = uintptr(unsafe.Pointer(&_init)) + uintptr(1)*4 +var _lock3 [1]int32 + +func _lcg31(tls *TLS, x Tuint32_t) (r Tuint32_t) { + return (uint32(1103515245)*x + uint32(12345)) & uint32(0x7fffffff) +} + +func _lcg64(tls *TLS, x Tuint64_t) (r Tuint64_t) { + return uint64(6364136223846793005)*x + uint64(1) +} + +func _savestate(tls *TLS) (r uintptr) { + **(**Tuint32_t)(__ccgo_up(_x1 + uintptr(-Int32FromInt32(1))*4)) = Uint32FromInt32(_n<> int32(16)) + _i = Int32FromUint32(**(**Tuint32_t)(__ccgo_up(_x1 + uintptr(-Int32FromInt32(1))*4)) >> Int32FromInt32(8) & uint32(0xff)) + _j = Int32FromUint32(**(**Tuint32_t)(__ccgo_up(_x1 + uintptr(-Int32FromInt32(1))*4)) & uint32(0xff)) +} + +func ___srandom(tls *TLS, seed uint32) { + var k, v1 int32 + var s Tuint64_t + _, _, _ = k, s, v1 + s = uint64(seed) + if _n == 0 { + **(**Tuint32_t)(__ccgo_up(_x1)) = uint32(s) + return + } + if _n == int32(31) || _n == int32(7) { + v1 = int32(3) + } else { + v1 = int32(1) + } + _i = v1 + _j = 0 + k = 0 + for { + if !(k < _n) { + break + } + s = _lcg64(tls, s) + **(**Tuint32_t)(__ccgo_up(_x1 + uintptr(k)*4)) = uint32(s >> int32(32)) + goto _2 + _2: + ; + k = k + 1 + } + /* make sure x contains at least one odd number */ + **(**Tuint32_t)(__ccgo_up(_x1)) |= uint32(1) +} + +func Xsrandom(tls *TLS, seed uint32) { + if __ccgo_strace { + trc("tls=%v seed=%v, (%v:)", tls, seed, origin(2)) + } + ___lock(tls, uintptr(unsafe.Pointer(&_lock3))) + ___srandom(tls, seed) + ___unlock(tls, uintptr(unsafe.Pointer(&_lock3))) +} + +func Xinitstate(tls *TLS, seed uint32, state uintptr, size Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v seed=%v state=%v size=%v, (%v:)", tls, seed, state, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + var old uintptr + _ = old + if size < uint32(8) { + return uintptr(0) + } + ___lock(tls, uintptr(unsafe.Pointer(&_lock3))) + old = _savestate(tls) + if size < uint32(32) { + _n = 0 + } else { + if size < uint32(64) { + _n = int32(7) + } else { + if size < uint32(128) { + _n = int32(15) + } else { + if size < uint32(256) { + _n = int32(31) + } else { + _n = int32(63) + } + } + } + } + _x1 = state + uintptr(1)*4 + ___srandom(tls, seed) + _savestate(tls) + ___unlock(tls, uintptr(unsafe.Pointer(&_lock3))) + return old +} + +func Xsetstate(tls *TLS, state uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v state=%v, (%v:)", tls, state, origin(2)) + defer func() { trc("-> %v", r) }() + } + var old uintptr + _ = old + ___lock(tls, uintptr(unsafe.Pointer(&_lock3))) + old = _savestate(tls) + _loadstate(tls, state) + ___unlock(tls, uintptr(unsafe.Pointer(&_lock3))) + return old +} + +func Xrandom(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + var k, v2 int32 + var v1 Tuint32_t + _, _, _ = k, v1, v2 + ___lock(tls, uintptr(unsafe.Pointer(&_lock3))) + if _n == 0 { + v1 = _lcg31(tls, **(**Tuint32_t)(__ccgo_up(_x1))) + **(**Tuint32_t)(__ccgo_up(_x1)) = v1 + k = Int32FromUint32(v1) + goto end + } + **(**Tuint32_t)(__ccgo_up(_x1 + uintptr(_i)*4)) += **(**Tuint32_t)(__ccgo_up(_x1 + uintptr(_j)*4)) + k = Int32FromUint32(**(**Tuint32_t)(__ccgo_up(_x1 + uintptr(_i)*4)) >> int32(1)) + _i = _i + 1 + v2 = _i + if v2 == _n { + _i = 0 + } + _j = _j + 1 + v2 = _j + if v2 == _n { + _j = 0 + } + goto end +end: + ; + ___unlock(tls, uintptr(unsafe.Pointer(&_lock3))) + return k +} + +func Xseed48(tls *TLS, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + Xmemcpy(tls, uintptr(unsafe.Pointer(&_p1)), uintptr(unsafe.Pointer(&X__seed48)), uint32(6)) + Xmemcpy(tls, uintptr(unsafe.Pointer(&X__seed48)), s, uint32(6)) + return uintptr(unsafe.Pointer(&_p1)) +} + +var _p1 [3]uint16 + +func Xsrand48(tls *TLS, seed int32) { + if __ccgo_strace { + trc("tls=%v seed=%v, (%v:)", tls, seed, origin(2)) + } + bp := tls.Alloc(16) + defer tls.Free(16) + *(*[3]uint16)(unsafe.Pointer(bp)) = [3]uint16{ + 0: uint16(0x330e), + 1: Uint16FromInt32(seed), + 2: Uint16FromInt32(seed >> int32(16)), + } + Xseed48(tls, bp) +} + +func Xexecl(tls *TLS, path uintptr, argv0 uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v argv0=%v va=%v, (%v:)", tls, path, argv0, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var argc, i int32 + var argv uintptr + var v2 t__predefined_size_t + _, _, _, _, _ = ap, argc, argv, i, v2 + defer func() { Xrealloc(tls, argv, 0) }() + ap = va + argc = int32(1) + for { + if !(VaUintptr(&ap) != 0) { + break + } + goto _1 + _1: + ; + argc = argc + 1 + } + _ = ap + v2 = Uint32FromInt32(argc+int32(1)) * 4 + argv = Xrealloc(tls, argv, v2) + ap = va + *(*uintptr)(unsafe.Add(unsafe.Pointer(argv), 0*4)) = argv0 + i = int32(1) + for { + if !(i < argc) { + break + } + *(*uintptr)(unsafe.Add(unsafe.Pointer(argv), i*4)) = VaUintptr(&ap) + goto _3 + _3: + ; + i = i + 1 + } + *(*uintptr)(unsafe.Add(unsafe.Pointer(argv), i*4)) = UintptrFromInt32(0) + _ = ap + return Xexecv(tls, path, argv) + return r +} + +func Xexecle(tls *TLS, path uintptr, argv0 uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v argv0=%v va=%v, (%v:)", tls, path, argv0, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var argc, i int32 + var argv, envp uintptr + var v2 t__predefined_size_t + _, _, _, _, _, _ = ap, argc, argv, envp, i, v2 + defer func() { Xrealloc(tls, argv, 0) }() + ap = va + argc = int32(1) + for { + if !(VaUintptr(&ap) != 0) { + break + } + goto _1 + _1: + ; + argc = argc + 1 + } + _ = ap + v2 = Uint32FromInt32(argc+int32(1)) * 4 + argv = Xrealloc(tls, argv, v2) + ap = va + *(*uintptr)(unsafe.Add(unsafe.Pointer(argv), 0*4)) = argv0 + i = int32(1) + for { + if !(i <= argc) { + break + } + *(*uintptr)(unsafe.Add(unsafe.Pointer(argv), i*4)) = VaUintptr(&ap) + goto _3 + _3: + ; + i = i + 1 + } + envp = VaUintptr(&ap) + _ = ap + return Xexecve(tls, path, argv, envp) + return r +} + +func Xexeclp(tls *TLS, file uintptr, argv0 uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v file=%v argv0=%v va=%v, (%v:)", tls, file, argv0, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var argc, i int32 + var argv uintptr + var v2 t__predefined_size_t + _, _, _, _, _ = ap, argc, argv, i, v2 + defer func() { Xrealloc(tls, argv, 0) }() + ap = va + argc = int32(1) + for { + if !(VaUintptr(&ap) != 0) { + break + } + goto _1 + _1: + ; + argc = argc + 1 + } + _ = ap + v2 = Uint32FromInt32(argc+int32(1)) * 4 + argv = Xrealloc(tls, argv, v2) + ap = va + *(*uintptr)(unsafe.Add(unsafe.Pointer(argv), 0*4)) = argv0 + i = int32(1) + for { + if !(i < argc) { + break + } + *(*uintptr)(unsafe.Add(unsafe.Pointer(argv), i*4)) = VaUintptr(&ap) + goto _3 + _3: + ; + i = i + 1 + } + *(*uintptr)(unsafe.Add(unsafe.Pointer(argv), i*4)) = UintptrFromInt32(0) + _ = ap + return Xexecvp(tls, file, argv) + return r +} + +func Xexecv(tls *TLS, path uintptr, argv uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v argv=%v, (%v:)", tls, path, argv, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xexecve(tls, path, argv, Xenviron) +} + +func Xexecve(tls *TLS, path uintptr, argv uintptr, envp uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v argv=%v envp=%v, (%v:)", tls, path, argv, envp, origin(2)) + defer func() { trc("-> %v", r) }() + } + /* do we need to use environ if envp is null? */ + return X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_execve), int32(path), int32(argv), int32(envp)))) +} + +func X__execvpe(tls *TLS, file uintptr, argv uintptr, envp uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v file=%v argv=%v envp=%v, (%v:)", tls, file, argv, envp, origin(2)) + defer func() { trc("-> %v", r) }() + } + var b, p, path, z, v3 uintptr + var k, l Tsize_t + var seen_eacces int32 + var v2 t__predefined_size_t + _, _, _, _, _, _, _, _, _ = b, k, l, p, path, seen_eacces, z, v2, v3 + defer func() { Xrealloc(tls, b, 0) }() + path = Xgetenv(tls, __ccgo_ts+1276) + seen_eacces = 0 + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOENT) + if !(**(**int8)(__ccgo_up(file)) != 0) { + return -int32(1) + } + if Xstrchr(tls, file, int32('/')) != 0 { + return Xexecve(tls, file, argv, envp) + } + if !(path != 0) { + path = __ccgo_ts + 1281 + } + k = Xstrnlen(tls, file, Uint32FromInt32(Int32FromInt32(NAME_MAX)+Int32FromInt32(1))) + if k > uint32(NAME_MAX) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENAMETOOLONG) + return -int32(1) + } + l = Xstrnlen(tls, path, Uint32FromInt32(Int32FromInt32(PATH_MAX)-Int32FromInt32(1))) + uint32(1) + p = path + for { + v2 = l + k + uint32(1) + b = Xrealloc(tls, b, v2) + z = X__strchrnul(tls, p, int32(':')) + if Uint32FromInt32(int32(z)-int32(p)) >= l { + v3 = z + z = z + 1 + if !(**(**int8)(__ccgo_up(v3)) != 0) { + break + } + goto _1 + } + Xmemcpy(tls, b, p, Uint32FromInt32(int32(z)-int32(p))) + *(*int8)(unsafe.Add(unsafe.Pointer(b), int32(z)-int32(p))) = int8('/') + Xmemcpy(tls, b+uintptr(int32(z)-int32(p))+BoolUintptr(z > p), file, k+uint32(1)) + Xexecve(tls, b, argv, envp) + switch **(**int32)(__ccgo_up(X__errno_location(tls))) { + case int32(EACCES): + seen_eacces = int32(1) + fallthrough + case int32(ENOENT): + fallthrough + case int32(ENOTDIR): + default: + return -int32(1) + } + v3 = z + z = z + 1 + if !(**(**int8)(__ccgo_up(v3)) != 0) { + break + } + goto _1 + _1: + ; + p = z + } + if seen_eacces != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EACCES) + } + return -int32(1) +} + +func Xexecvp(tls *TLS, file uintptr, argv uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v file=%v argv=%v, (%v:)", tls, file, argv, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__execvpe(tls, file, argv, Xenviron) +} + +func Xexecvpe(tls *TLS, file uintptr, argv uintptr, envp uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v file=%v argv=%v envp=%v, (%v:)", tls, file, argv, envp, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__execvpe(tls, file, argv, envp) +} + +func Xfexecve(tls *TLS, fd int32, argv uintptr, envp uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v argv=%v envp=%v, (%v:)", tls, fd, argv, envp, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var r int32 + var _ /* buf at bp+0 */ [27]int8 + _ = r + r = int32(X__syscall5(tls, int32(SYS_execveat), fd, int32(__ccgo_ts), int32(argv), int32(envp), int32(Int32FromInt32(AT_EMPTY_PATH)))) + if r != -int32(ENOSYS) { + return X__syscall_ret(tls, Uint32FromInt32(r)) + } + X__procfdname(tls, bp, Uint32FromInt32(fd)) + Xexecve(tls, bp, argv, envp) + if **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(ENOENT) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EBADF) + } + return -int32(1) +} + +var _dummy_lockptr = uintptr(0) + +var _atfork_locks = [10]uintptr{ + 0: uintptr(unsafe.Pointer(&X__at_quick_exit_lockptr)), + 1: uintptr(unsafe.Pointer(&_dummy_lockptr)), + 2: uintptr(unsafe.Pointer(&X__gettext_lockptr)), + 3: uintptr(unsafe.Pointer(&X__locale_lockptr)), + 4: uintptr(unsafe.Pointer(&X__random_lockptr)), + 5: uintptr(unsafe.Pointer(&_dummy_lockptr)), + 6: uintptr(unsafe.Pointer(&X__stdio_ofl_lockptr)), + 7: uintptr(unsafe.Pointer(&X__syslog_lockptr)), + 8: uintptr(unsafe.Pointer(&X__timezone_lockptr)), + 9: uintptr(unsafe.Pointer(&_dummy_lockptr)), +} + +func _dummy8(tls *TLS, x int32) { +} + +func _dummy_0(tls *TLS) { +} + +const FDOP_CHDIR = 4 +const FDOP_CLOSE = 1 +const FDOP_DUP2 = 2 +const FDOP_FCHDIR = 5 +const FDOP_OPEN = 3 +const POSIX_SPAWN_RESETIDS = 1 +const POSIX_SPAWN_SETPGROUP = 2 +const POSIX_SPAWN_SETSCHEDPARAM = 16 +const POSIX_SPAWN_SETSCHEDULER = 32 +const POSIX_SPAWN_SETSID = 128 +const POSIX_SPAWN_SETSIGDEF = 4 +const POSIX_SPAWN_SETSIGMASK = 8 +const POSIX_SPAWN_USEVFORK = 64 + +type Tposix_spawnattr_t = struct { + F__flags int32 + F__pgrp Tpid_t + F__def Tsigset_t + F__mask Tsigset_t + F__prio int32 + F__pol int32 + F__fn uintptr + F__pad [60]int8 +} + +type Tposix_spawn_file_actions_t = struct { + F__pad0 [2]int32 + F__actions uintptr + F__pad [16]int32 +} + +type Tfdop = struct { + Fnext uintptr + Fprev uintptr + Fcmd int32 + Ffd int32 + Fsrcfd int32 + Foflag int32 + Fmode Tmode_t +} + +func Xposix_spawn_file_actions_addchdir_np(tls *TLS, fa uintptr, path uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fa=%v path=%v, (%v:)", tls, fa, path, origin(2)) + defer func() { trc("-> %v", r) }() + } + var op, v1 uintptr + _, _ = op, v1 + op = Xmalloc(tls, uint32(28)+_strlen(tls, path)+uint32(1)) + if !(op != 0) { + return int32(ENOMEM) + } + (*Tfdop)(unsafe.Pointer(op)).Fcmd = int32(FDOP_CHDIR) + (*Tfdop)(unsafe.Pointer(op)).Ffd = -int32(1) + Xstrcpy(tls, op+28, path) + v1 = (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions + (*Tfdop)(unsafe.Pointer(op)).Fnext = v1 + if v1 != 0 { + (*Tfdop)(unsafe.Pointer((*Tfdop)(unsafe.Pointer(op)).Fnext)).Fprev = op + } + (*Tfdop)(unsafe.Pointer(op)).Fprev = uintptr(0) + (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions = op + return 0 +} + +func Xposix_spawn_file_actions_addclose(tls *TLS, fa uintptr, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fa=%v fd=%v, (%v:)", tls, fa, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + var op, v1 uintptr + _, _ = op, v1 + if fd < 0 { + return int32(EBADF) + } + op = Xmalloc(tls, uint32(28)) + if !(op != 0) { + return int32(ENOMEM) + } + (*Tfdop)(unsafe.Pointer(op)).Fcmd = int32(FDOP_CLOSE) + (*Tfdop)(unsafe.Pointer(op)).Ffd = fd + v1 = (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions + (*Tfdop)(unsafe.Pointer(op)).Fnext = v1 + if v1 != 0 { + (*Tfdop)(unsafe.Pointer((*Tfdop)(unsafe.Pointer(op)).Fnext)).Fprev = op + } + (*Tfdop)(unsafe.Pointer(op)).Fprev = uintptr(0) + (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions = op + return 0 +} + +func Xposix_spawn_file_actions_adddup2(tls *TLS, fa uintptr, srcfd int32, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fa=%v srcfd=%v fd=%v, (%v:)", tls, fa, srcfd, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + var op, v1 uintptr + _, _ = op, v1 + if srcfd < 0 || fd < 0 { + return int32(EBADF) + } + op = Xmalloc(tls, uint32(28)) + if !(op != 0) { + return int32(ENOMEM) + } + (*Tfdop)(unsafe.Pointer(op)).Fcmd = int32(FDOP_DUP2) + (*Tfdop)(unsafe.Pointer(op)).Fsrcfd = srcfd + (*Tfdop)(unsafe.Pointer(op)).Ffd = fd + v1 = (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions + (*Tfdop)(unsafe.Pointer(op)).Fnext = v1 + if v1 != 0 { + (*Tfdop)(unsafe.Pointer((*Tfdop)(unsafe.Pointer(op)).Fnext)).Fprev = op + } + (*Tfdop)(unsafe.Pointer(op)).Fprev = uintptr(0) + (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions = op + return 0 +} + +func Xposix_spawn_file_actions_addfchdir_np(tls *TLS, fa uintptr, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fa=%v fd=%v, (%v:)", tls, fa, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + var op, v1 uintptr + _, _ = op, v1 + if fd < 0 { + return int32(EBADF) + } + op = Xmalloc(tls, uint32(28)) + if !(op != 0) { + return int32(ENOMEM) + } + (*Tfdop)(unsafe.Pointer(op)).Fcmd = int32(FDOP_FCHDIR) + (*Tfdop)(unsafe.Pointer(op)).Ffd = fd + v1 = (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions + (*Tfdop)(unsafe.Pointer(op)).Fnext = v1 + if v1 != 0 { + (*Tfdop)(unsafe.Pointer((*Tfdop)(unsafe.Pointer(op)).Fnext)).Fprev = op + } + (*Tfdop)(unsafe.Pointer(op)).Fprev = uintptr(0) + (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions = op + return 0 +} + +func Xposix_spawn_file_actions_addopen(tls *TLS, fa uintptr, fd int32, path uintptr, flags int32, mode Tmode_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fa=%v fd=%v path=%v flags=%v mode=%v, (%v:)", tls, fa, fd, path, flags, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + var op, v1 uintptr + _, _ = op, v1 + if fd < 0 { + return int32(EBADF) + } + op = Xmalloc(tls, uint32(28)+_strlen(tls, path)+uint32(1)) + if !(op != 0) { + return int32(ENOMEM) + } + (*Tfdop)(unsafe.Pointer(op)).Fcmd = int32(FDOP_OPEN) + (*Tfdop)(unsafe.Pointer(op)).Ffd = fd + (*Tfdop)(unsafe.Pointer(op)).Foflag = flags + (*Tfdop)(unsafe.Pointer(op)).Fmode = mode + Xstrcpy(tls, op+28, path) + v1 = (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions + (*Tfdop)(unsafe.Pointer(op)).Fnext = v1 + if v1 != 0 { + (*Tfdop)(unsafe.Pointer((*Tfdop)(unsafe.Pointer(op)).Fnext)).Fprev = op + } + (*Tfdop)(unsafe.Pointer(op)).Fprev = uintptr(0) + (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions = op + return 0 +} + +func Xposix_spawn_file_actions_destroy(tls *TLS, fa uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fa=%v, (%v:)", tls, fa, origin(2)) + defer func() { trc("-> %v", r) }() + } + var next, op uintptr + _, _ = next, op + op = (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions + for op != 0 { + next = (*Tfdop)(unsafe.Pointer(op)).Fnext + Xfree(tls, op) + op = next + } + return 0 +} + +func Xposix_spawn_file_actions_init(tls *TLS, fa uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fa=%v, (%v:)", tls, fa, origin(2)) + defer func() { trc("-> %v", r) }() + } + (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions = uintptr(0) + return 0 +} + +func Xposix_spawnattr_destroy(tls *TLS, attr uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v, (%v:)", tls, attr, origin(2)) + defer func() { trc("-> %v", r) }() + } + return 0 +} + +func Xposix_spawnattr_getflags(tls *TLS, attr uintptr, flags uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v flags=%v, (%v:)", tls, attr, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + **(**int16)(__ccgo_up(flags)) = int16((*Tposix_spawnattr_t)(unsafe.Pointer(attr)).F__flags) + return 0 +} + +func Xposix_spawnattr_getpgroup(tls *TLS, attr uintptr, pgrp uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v pgrp=%v, (%v:)", tls, attr, pgrp, origin(2)) + defer func() { trc("-> %v", r) }() + } + **(**Tpid_t)(__ccgo_up(pgrp)) = (*Tposix_spawnattr_t)(unsafe.Pointer(attr)).F__pgrp + return 0 +} + +func Xposix_spawnattr_getsigdefault(tls *TLS, attr uintptr, def uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v def=%v, (%v:)", tls, attr, def, origin(2)) + defer func() { trc("-> %v", r) }() + } + **(**Tsigset_t)(__ccgo_up(def)) = (*Tposix_spawnattr_t)(unsafe.Pointer(attr)).F__def + return 0 +} + +func Xposix_spawnattr_getsigmask(tls *TLS, attr uintptr, mask uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v mask=%v, (%v:)", tls, attr, mask, origin(2)) + defer func() { trc("-> %v", r) }() + } + **(**Tsigset_t)(__ccgo_up(mask)) = (*Tposix_spawnattr_t)(unsafe.Pointer(attr)).F__mask + return 0 +} + +func Xposix_spawnattr_init(tls *TLS, attr uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v, (%v:)", tls, attr, origin(2)) + defer func() { trc("-> %v", r) }() + } + **(**Tposix_spawnattr_t)(__ccgo_up(attr)) = Tposix_spawnattr_t{} + return 0 +} + +func Xposix_spawnattr_getschedparam(tls *TLS, attr uintptr, schedparam uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v schedparam=%v, (%v:)", tls, attr, schedparam, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(ENOSYS) +} + +func Xposix_spawnattr_setschedparam(tls *TLS, attr uintptr, schedparam uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v schedparam=%v, (%v:)", tls, attr, schedparam, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(ENOSYS) +} + +func Xposix_spawnattr_getschedpolicy(tls *TLS, attr uintptr, policy uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v policy=%v, (%v:)", tls, attr, policy, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(ENOSYS) +} + +func Xposix_spawnattr_setschedpolicy(tls *TLS, attr uintptr, policy int32) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v policy=%v, (%v:)", tls, attr, policy, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(ENOSYS) +} + +func Xposix_spawnattr_setflags(tls *TLS, attr uintptr, flags int16) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v flags=%v, (%v:)", tls, attr, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + var all_flags uint32 + _ = all_flags + all_flags = Uint32FromInt32(Int32FromInt32(POSIX_SPAWN_RESETIDS) | Int32FromInt32(POSIX_SPAWN_SETPGROUP) | Int32FromInt32(POSIX_SPAWN_SETSIGDEF) | Int32FromInt32(POSIX_SPAWN_SETSIGMASK) | Int32FromInt32(POSIX_SPAWN_SETSCHEDPARAM) | Int32FromInt32(POSIX_SPAWN_SETSCHEDULER) | Int32FromInt32(POSIX_SPAWN_USEVFORK) | Int32FromInt32(POSIX_SPAWN_SETSID)) + if Uint32FromInt16(flags) & ^all_flags != 0 { + return int32(EINVAL) + } + (*Tposix_spawnattr_t)(unsafe.Pointer(attr)).F__flags = int32(flags) + return 0 +} + +func Xposix_spawnattr_setpgroup(tls *TLS, attr uintptr, pgrp Tpid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v pgrp=%v, (%v:)", tls, attr, pgrp, origin(2)) + defer func() { trc("-> %v", r) }() + } + (*Tposix_spawnattr_t)(unsafe.Pointer(attr)).F__pgrp = pgrp + return 0 +} + +func Xposix_spawnattr_setsigdefault(tls *TLS, attr uintptr, def uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v def=%v, (%v:)", tls, attr, def, origin(2)) + defer func() { trc("-> %v", r) }() + } + (*Tposix_spawnattr_t)(unsafe.Pointer(attr)).F__def = **(**Tsigset_t)(__ccgo_up(def)) + return 0 +} + +func Xposix_spawnattr_setsigmask(tls *TLS, attr uintptr, mask uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v mask=%v, (%v:)", tls, attr, mask, origin(2)) + defer func() { trc("-> %v", r) }() + } + (*Tposix_spawnattr_t)(unsafe.Pointer(attr)).F__mask = **(**Tsigset_t)(__ccgo_up(mask)) + return 0 +} + +func Xvfork(tls *TLS) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + /* vfork syscall cannot be made from C code */ + return X__syscall_ret(tls, Uint32FromInt32(X__syscall0(tls, int32(SYS_fork)))) +} + +func Xwait(tls *TLS, status uintptr) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v status=%v, (%v:)", tls, status, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwaitpid(tls, -Int32FromInt32(1), status, 0) +} + +func Xwaitid(tls *TLS, type1 Tidtype_t, id Tid_t, info uintptr, options int32) (r int32) { + if __ccgo_strace { + trc("tls=%v type1=%v id=%v info=%v options=%v, (%v:)", tls, type1, id, info, options, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(___syscall_cp(tls, int32(SYS_waitid), type1, Int32FromUint32(id), int32(info), options, int32(Int32FromInt32(0)), 0))) +} + +func Xwaitpid(tls *TLS, pid Tpid_t, status uintptr, options int32) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v pid=%v status=%v options=%v, (%v:)", tls, pid, status, options, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(___syscall_cp(tls, int32(SYS_wait4), pid, int32(status), options, int32(Int32FromInt32(0)), 0, 0))) +} + +const BRACKET = -3 +const END = 0 +const FNM_CASEFOLD = 16 +const FNM_FILE_NAME = 1 +const FNM_LEADING_DIR = 8 +const FNM_NOESCAPE = 2 +const FNM_NOMATCH = 1 +const FNM_NOSYS = -1 +const FNM_PATHNAME = 1 +const FNM_PERIOD = 4 +const QUESTION = -4 +const STAR = -5 +const UNMATCHABLE = -2 + +func _str_next(tls *TLS, str uintptr, n Tsize_t, step uintptr) (r int32) { + bp := tls.Alloc(16) + defer tls.Free(16) + var k int32 + var _ /* wc at bp+0 */ Twchar_t + _ = k + if !(n != 0) { + **(**Tsize_t)(__ccgo_up(step)) = uint32(0) + return 0 + } + if Uint32FromInt8(**(**int8)(__ccgo_up(str))) >= uint32(128) { + k = Xmbtowc(tls, bp, str, n) + if k < 0 { + **(**Tsize_t)(__ccgo_up(step)) = uint32(1) + return -int32(1) + } + **(**Tsize_t)(__ccgo_up(step)) = Uint32FromInt32(k) + return int32(**(**Twchar_t)(__ccgo_up(bp))) + } + **(**Tsize_t)(__ccgo_up(step)) = uint32(1) + return int32(**(**int8)(__ccgo_up(str))) +} + +func _pat_next(tls *TLS, pat uintptr, m Tsize_t, step uintptr, flags int32) (r int32) { + bp := tls.Alloc(16) + defer tls.Free(16) + var esc, k1, z int32 + var k Tsize_t + var _ /* wc at bp+0 */ Twchar_t + _, _, _, _ = esc, k, k1, z + esc = 0 + if !(m != 0) || !(**(**int8)(__ccgo_up(pat)) != 0) { + **(**Tsize_t)(__ccgo_up(step)) = uint32(0) + return END + } + **(**Tsize_t)(__ccgo_up(step)) = uint32(1) + if int32(**(**int8)(__ccgo_up(pat))) == int32('\\') && **(**int8)(__ccgo_up(pat + 1)) != 0 && !(flags&Int32FromInt32(FNM_NOESCAPE) != 0) { + **(**Tsize_t)(__ccgo_up(step)) = uint32(2) + pat = pat + 1 + esc = int32(1) + goto escaped + } + if int32(**(**int8)(__ccgo_up(pat))) == int32('[') { + k = uint32(1) + if k < m { + if int32(**(**int8)(__ccgo_up(pat + uintptr(k)))) == int32('^') || int32(**(**int8)(__ccgo_up(pat + uintptr(k)))) == int32('!') { + k = k + 1 + } + } + if k < m { + if int32(**(**int8)(__ccgo_up(pat + uintptr(k)))) == int32(']') { + k = k + 1 + } + } + for { + if !(k < m && **(**int8)(__ccgo_up(pat + uintptr(k))) != 0 && int32(**(**int8)(__ccgo_up(pat + uintptr(k)))) != int32(']')) { + break + } + if k+uint32(1) < m && **(**int8)(__ccgo_up(pat + uintptr(k+uint32(1)))) != 0 && int32(**(**int8)(__ccgo_up(pat + uintptr(k)))) == int32('[') && (int32(**(**int8)(__ccgo_up(pat + uintptr(k+uint32(1))))) == int32(':') || int32(**(**int8)(__ccgo_up(pat + uintptr(k+uint32(1))))) == int32('.') || int32(**(**int8)(__ccgo_up(pat + uintptr(k+uint32(1))))) == int32('=')) { + z = int32(**(**int8)(__ccgo_up(pat + uintptr(k+uint32(1))))) + k = k + uint32(2) + if k < m && **(**int8)(__ccgo_up(pat + uintptr(k))) != 0 { + k = k + 1 + } + for k < m && **(**int8)(__ccgo_up(pat + uintptr(k))) != 0 && (int32(**(**int8)(__ccgo_up(pat + uintptr(k-uint32(1))))) != z || int32(**(**int8)(__ccgo_up(pat + uintptr(k)))) != int32(']')) { + k = k + 1 + } + if k == m || !(**(**int8)(__ccgo_up(pat + uintptr(k))) != 0) { + break + } + } + goto _1 + _1: + ; + k = k + 1 + } + if k == m || !(**(**int8)(__ccgo_up(pat + uintptr(k))) != 0) { + **(**Tsize_t)(__ccgo_up(step)) = uint32(1) + return int32('[') + } + **(**Tsize_t)(__ccgo_up(step)) = k + uint32(1) + return -int32(3) + } + if int32(**(**int8)(__ccgo_up(pat))) == int32('*') { + return -int32(5) + } + if int32(**(**int8)(__ccgo_up(pat))) == int32('?') { + return -int32(4) + } + goto escaped +escaped: + ; + if Uint32FromInt8(**(**int8)(__ccgo_up(pat))) >= uint32(128) { + k1 = Xmbtowc(tls, bp, pat, m) + if k1 < 0 { + **(**Tsize_t)(__ccgo_up(step)) = uint32(0) + return -int32(2) + } + **(**Tsize_t)(__ccgo_up(step)) = Uint32FromInt32(k1 + esc) + return int32(**(**Twchar_t)(__ccgo_up(bp))) + } + return int32(**(**int8)(__ccgo_up(pat))) +} + +func _casefold(tls *TLS, k int32) (r int32) { + var c int32 + var v1 uint32 + _, _ = c, v1 + c = Int32FromUint32(Xtowupper(tls, Uint32FromInt32(k))) + if c == k { + v1 = Xtowlower(tls, Uint32FromInt32(k)) + } else { + v1 = Uint32FromInt32(c) + } + return Int32FromUint32(v1) +} + +func _match_bracket(tls *TLS, p uintptr, k int32, kfold int32) (r int32) { + bp := tls.Alloc(32) + defer tls.Free(32) + var inv, l, l1, z int32 + var p0 uintptr + var _ /* buf at bp+8 */ [16]int8 + var _ /* wc at bp+0 */ Twchar_t + var _ /* wc2 at bp+4 */ Twchar_t + _, _, _, _, _ = inv, l, l1, p0, z + inv = 0 + p = p + 1 + if int32(**(**int8)(__ccgo_up(p))) == int32('^') || int32(**(**int8)(__ccgo_up(p))) == int32('!') { + inv = int32(1) + p = p + 1 + } + if int32(**(**int8)(__ccgo_up(p))) == int32(']') { + if k == int32(']') { + return BoolInt32(!(inv != 0)) + } + p = p + 1 + } else { + if int32(**(**int8)(__ccgo_up(p))) == int32('-') { + if k == int32('-') { + return BoolInt32(!(inv != 0)) + } + p = p + 1 + } + } + **(**Twchar_t)(__ccgo_up(bp)) = int32(**(**int8)(__ccgo_up(p + uintptr(-Int32FromInt32(1))))) + for { + if !(int32(**(**int8)(__ccgo_up(p))) != int32(']')) { + break + } + if int32(**(**int8)(__ccgo_up(p))) == int32('-') && int32(**(**int8)(__ccgo_up(p + 1))) != int32(']') { + l = Xmbtowc(tls, bp+4, p+uintptr(1), uint32(4)) + if l < 0 { + return 0 + } + if **(**Twchar_t)(__ccgo_up(bp)) <= **(**Twchar_t)(__ccgo_up(bp + 4)) { + if uint32(Uint32FromInt32(k))-Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp))) <= Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp + 4))-**(**Twchar_t)(__ccgo_up(bp))) || uint32(Uint32FromInt32(kfold))-Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp))) <= Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp + 4))-**(**Twchar_t)(__ccgo_up(bp))) { + return BoolInt32(!(inv != 0)) + } + } + p = p + uintptr(l-int32(1)) + goto _1 + } + if int32(**(**int8)(__ccgo_up(p))) == int32('[') && (int32(**(**int8)(__ccgo_up(p + 1))) == int32(':') || int32(**(**int8)(__ccgo_up(p + 1))) == int32('.') || int32(**(**int8)(__ccgo_up(p + 1))) == int32('=')) { + p0 = p + uintptr(2) + z = int32(**(**int8)(__ccgo_up(p + 1))) + p = p + uintptr(3) + for int32(**(**int8)(__ccgo_up(p + uintptr(-Int32FromInt32(1))))) != z || int32(**(**int8)(__ccgo_up(p))) != int32(']') { + p = p + 1 + } + if z == int32(':') && int32(p-uintptr(1))-int32(p0) < int32(16) { + Xmemcpy(tls, bp+8, p0, Uint32FromInt32(int32(p-uintptr(1))-int32(p0))) + (**(**[16]int8)(__ccgo_up(bp + 8)))[int32(p-uintptr(1))-int32(p0)] = 0 + if Xiswctype(tls, Uint32FromInt32(k), Xwctype(tls, bp+8)) != 0 || Xiswctype(tls, Uint32FromInt32(kfold), Xwctype(tls, bp+8)) != 0 { + return BoolInt32(!(inv != 0)) + } + } + goto _1 + } + if Uint32FromInt8(**(**int8)(__ccgo_up(p))) < uint32(128) { + **(**Twchar_t)(__ccgo_up(bp)) = Int32FromUint8(Uint8FromInt8(**(**int8)(__ccgo_up(p)))) + } else { + l1 = Xmbtowc(tls, bp, p, uint32(4)) + if l1 < 0 { + return 0 + } + p = p + uintptr(l1-int32(1)) + } + if **(**Twchar_t)(__ccgo_up(bp)) == k || **(**Twchar_t)(__ccgo_up(bp)) == kfold { + return BoolInt32(!(inv != 0)) + } + goto _1 + _1: + ; + p = p + 1 + } + return inv +} + +func _fnmatch_internal(tls *TLS, pat uintptr, m Tsize_t, str uintptr, n Tsize_t, flags int32) (r int32) { + bp := tls.Alloc(16) + defer tls.Free(16) + var c, k, kfold, v2 int32 + var endpat, endstr, p, ptail, s, stail, v6 uintptr + var tailcnt Tsize_t + var v9 bool + var _ /* pinc at bp+0 */ Tsize_t + var _ /* sinc at bp+4 */ Tsize_t + _, _, _, _, _, _, _, _, _, _, _, _, _ = c, endpat, endstr, k, kfold, p, ptail, s, stail, tailcnt, v2, v6, v9 + tailcnt = uint32(0) + if flags&int32(FNM_PERIOD) != 0 { + if int32(**(**int8)(__ccgo_up(str))) == int32('.') && int32(**(**int8)(__ccgo_up(pat))) != int32('.') { + return int32(FNM_NOMATCH) + } + } + for { + v2 = _pat_next(tls, pat, m, bp, flags) + c = v2 + switch v2 { + case -int32(2): + return int32(FNM_NOMATCH) + case -int32(5): + pat = pat + 1 + m = m - 1 + default: + k = _str_next(tls, str, n, bp+4) + if k <= 0 { + if c == END { + v2 = 0 + } else { + v2 = int32(FNM_NOMATCH) + } + return v2 + } + str = str + uintptr(**(**Tsize_t)(__ccgo_up(bp + 4))) + n = n - **(**Tsize_t)(__ccgo_up(bp + 4)) + if flags&int32(FNM_CASEFOLD) != 0 { + v2 = _casefold(tls, k) + } else { + v2 = k + } + kfold = v2 + if c == -int32(3) { + if !(_match_bracket(tls, pat, k, kfold) != 0) { + return int32(FNM_NOMATCH) + } + } else { + if c != -int32(4) && k != c && kfold != c { + return int32(FNM_NOMATCH) + } + } + pat = pat + uintptr(**(**Tsize_t)(__ccgo_up(bp))) + m = m - **(**Tsize_t)(__ccgo_up(bp)) + goto _1 + } + break + goto _1 + _1: + } + /* Compute real pat length if it was initially unknown/-1 */ + m = Xstrnlen(tls, pat, m) + endpat = pat + uintptr(m) + /* Find the last * in pat and count chars needed after it */ + v6 = pat + ptail = v6 + p = v6 + for { + if !(p < endpat) { + break + } + switch _pat_next(tls, p, Uint32FromInt32(int32(endpat)-int32(p)), bp, flags) { + case -int32(2): + return int32(FNM_NOMATCH) + case -int32(5): + tailcnt = uint32(0) + ptail = p + uintptr(1) + default: + tailcnt = tailcnt + 1 + break + } + goto _5 + _5: + ; + p = p + uintptr(**(**Tsize_t)(__ccgo_up(bp))) + } + /* Past this point we need not check for UNMATCHABLE in pat, + * because all of pat has already been parsed once. */ + /* Compute real str length if it was initially unknown/-1 */ + n = Xstrnlen(tls, str, n) + endstr = str + uintptr(n) + if n < tailcnt { + return int32(FNM_NOMATCH) + } + /* Find the final tailcnt chars of str, accounting for UTF-8. + * On illegal sequences we may get it wrong, but in that case + * we necessarily have a matching failure anyway. */ + s = endstr + for { + if !(s > str && tailcnt != 0) { + break + } + if v9 = Uint32FromInt8(**(**int8)(__ccgo_up(s + uintptr(-Int32FromInt32(1))))) < uint32(128); !v9 { + if !!(**(**uintptr)(__ccgo_up((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale)) != 0) { + v2 = int32(4) + } else { + v2 = int32(1) + } + } + if v9 || v2 == int32(1) { + s = s - 1 + } else { + for { + s = s - 1 + v6 = s + if !(uint32(Uint8FromInt8(**(**int8)(__ccgo_up(v6))))-uint32(0x80) < uint32(0x40) && s > str) { + break + } + } + } + goto _7 + _7: + ; + tailcnt = tailcnt - 1 + } + if tailcnt != 0 { + return int32(FNM_NOMATCH) + } + stail = s + /* Check that the pat and str tails match */ + p = ptail + for { + c = _pat_next(tls, p, Uint32FromInt32(int32(endpat)-int32(p)), bp, flags) + p = p + uintptr(**(**Tsize_t)(__ccgo_up(bp))) + v2 = _str_next(tls, s, Uint32FromInt32(int32(endstr)-int32(s)), bp+4) + k = v2 + if v2 <= 0 { + if c != END { + return int32(FNM_NOMATCH) + } + break + } + s = s + uintptr(**(**Tsize_t)(__ccgo_up(bp + 4))) + if flags&int32(FNM_CASEFOLD) != 0 { + v2 = _casefold(tls, k) + } else { + v2 = k + } + kfold = v2 + if c == -int32(3) { + if !(_match_bracket(tls, p-uintptr(**(**Tsize_t)(__ccgo_up(bp))), k, kfold) != 0) { + return int32(FNM_NOMATCH) + } + } else { + if c != -int32(4) && k != c && kfold != c { + return int32(FNM_NOMATCH) + } + } + goto _11 + _11: + } + /* We're all done with the tails now, so throw them out */ + endstr = stail + endpat = ptail + /* Match pattern components until there are none left */ + for pat < endpat { + p = pat + s = str + for { + c = _pat_next(tls, p, Uint32FromInt32(int32(endpat)-int32(p)), bp, flags) + p = p + uintptr(**(**Tsize_t)(__ccgo_up(bp))) + /* Encountering * completes/commits a component */ + if c == -int32(5) { + pat = p + str = s + break + } + k = _str_next(tls, s, Uint32FromInt32(int32(endstr)-int32(s)), bp+4) + if !(k != 0) { + return int32(FNM_NOMATCH) + } + if flags&int32(FNM_CASEFOLD) != 0 { + v2 = _casefold(tls, k) + } else { + v2 = k + } + kfold = v2 + if c == -int32(3) { + if !(_match_bracket(tls, p-uintptr(**(**Tsize_t)(__ccgo_up(bp))), k, kfold) != 0) { + break + } + } else { + if c != -int32(4) && k != c && kfold != c { + break + } + } + s = s + uintptr(**(**Tsize_t)(__ccgo_up(bp + 4))) + goto _14 + _14: + } + if c == -int32(5) { + continue + } + /* If we failed, advance str, by 1 char if it's a valid + * char, or past all invalid bytes otherwise. */ + k = _str_next(tls, str, Uint32FromInt32(int32(endstr)-int32(str)), bp+4) + if k > 0 { + str = str + uintptr(**(**Tsize_t)(__ccgo_up(bp + 4))) + } else { + str = str + 1 + for { + if !(_str_next(tls, str, Uint32FromInt32(int32(endstr)-int32(str)), bp+4) < 0) { + break + } + goto _16 + _16: + ; + str = str + 1 + } + } + } + return 0 +} + +func Xfnmatch(tls *TLS, pat uintptr, str uintptr, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v pat=%v str=%v flags=%v, (%v:)", tls, pat, str, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var c, v4 int32 + var p, s uintptr + var _ /* inc at bp+0 */ Tsize_t + _, _, _, _ = c, p, s, v4 + if flags&int32(FNM_PATHNAME) != 0 { + for { + s = str + for { + if !(**(**int8)(__ccgo_up(s)) != 0 && int32(**(**int8)(__ccgo_up(s))) != int32('/')) { + break + } + goto _2 + _2: + ; + s = s + 1 + } + p = pat + for { + v4 = _pat_next(tls, p, Uint32FromInt32(-Int32FromInt32(1)), bp, flags) + c = v4 + if !(v4 != END && c != int32('/')) { + break + } + goto _3 + _3: + ; + p = p + uintptr(**(**Tsize_t)(__ccgo_up(bp))) + } + if c != int32(**(**int8)(__ccgo_up(s))) && (!(**(**int8)(__ccgo_up(s)) != 0) || !(flags&Int32FromInt32(FNM_LEADING_DIR) != 0)) { + return int32(FNM_NOMATCH) + } + if _fnmatch_internal(tls, pat, Uint32FromInt32(int32(p)-int32(pat)), str, Uint32FromInt32(int32(s)-int32(str)), flags) != 0 { + return int32(FNM_NOMATCH) + } + if !(c != 0) { + return 0 + } + str = s + uintptr(1) + pat = p + uintptr(**(**Tsize_t)(__ccgo_up(bp))) + goto _1 + _1: + } + } else { + if flags&int32(FNM_LEADING_DIR) != 0 { + s = str + for { + if !(**(**int8)(__ccgo_up(s)) != 0) { + break + } + if int32(**(**int8)(__ccgo_up(s))) != int32('/') { + goto _5 + } + if !(_fnmatch_internal(tls, pat, Uint32FromInt32(-Int32FromInt32(1)), str, Uint32FromInt32(int32(s)-int32(str)), flags) != 0) { + return 0 + } + goto _5 + _5: + ; + s = s + 1 + } + } + } + return _fnmatch_internal(tls, pat, Uint32FromInt32(-Int32FromInt32(1)), str, Uint32FromInt32(-Int32FromInt32(1)), flags) +} + +const GLOB_ABORTED = 2 +const GLOB_APPEND = 32 +const GLOB_DOOFFS = 8 +const GLOB_ERR = 1 +const GLOB_MARK = 2 +const GLOB_NOCHECK = 16 +const GLOB_NOESCAPE = 64 +const GLOB_NOMATCH = 3 +const GLOB_NOSORT = 4 +const GLOB_NOSPACE = 1 +const GLOB_NOSYS = 4 +const GLOB_PERIOD = 128 +const GLOB_TILDE = 4096 +const GLOB_TILDE_CHECK = 16384 + +type Tglob_t = struct { + Fgl_pathc Tsize_t + Fgl_pathv uintptr + Fgl_offs Tsize_t + F__dummy1 int32 + F__dummy2 [5]uintptr +} + +type Tmatch = struct { + Fnext uintptr +} + +func _append(tls *TLS, tail uintptr, name uintptr, len1 Tsize_t, mark int32) (r int32) { + var new1 uintptr + _ = new1 + new1 = Xmalloc(tls, uint32(4)+len1+uint32(2)) + if !(new1 != 0) { + return -int32(1) + } + (*Tmatch)(unsafe.Pointer(**(**uintptr)(__ccgo_up(tail)))).Fnext = new1 + (*Tmatch)(unsafe.Pointer(new1)).Fnext = UintptrFromInt32(0) + Xmemcpy(tls, new1+4, name, len1+uint32(1)) + if mark != 0 && len1 != 0 && int32(**(**int8)(__ccgo_up(name + uintptr(len1-uint32(1))))) != int32('/') { + *(*int8)(unsafe.Pointer(new1 + 4 + uintptr(len1))) = int8('/') + *(*int8)(unsafe.Pointer(new1 + 4 + uintptr(len1+uint32(1)))) = 0 + } + **(**uintptr)(__ccgo_up(tail)) = new1 + return 0 +} + +func _do_glob(tls *TLS, buf uintptr, pos Tsize_t, type1 int32, pat uintptr, flags int32, __ccgo_fp_errfunc uintptr, tail uintptr) (r1 int32) { + bp := tls.Alloc(144) + defer tls.Free(144) + var de, dir, p, p2, v2 uintptr + var fnm_flags, in_bracket, old_errno, overflow, r, readerr, v10, v9 int32 + var i, j, v4 Tptrdiff_t + var l, v1 Tsize_t + var saved_sep int8 + var _ /* st at bp+0 */ Tstat + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = de, dir, fnm_flags, i, in_bracket, j, l, old_errno, overflow, p, p2, r, readerr, saved_sep, v1, v10, v2, v4, v9 + /* If GLOB_MARK is unused, we don't care about type. */ + if !(type1 != 0) && !(flags&Int32FromInt32(GLOB_MARK) != 0) { + type1 = int32(DT_REG) + } + /* Special-case the remaining pattern being all slashes, in + * which case we can use caller-passed type if it's a dir. */ + if **(**int8)(__ccgo_up(pat)) != 0 && type1 != int32(DT_DIR) { + type1 = 0 + } + for pos+uint32(1) < uint32(PATH_MAX) && int32(**(**int8)(__ccgo_up(pat))) == int32('/') { + v1 = pos + pos = pos + 1 + v2 = pat + pat = pat + 1 + **(**int8)(__ccgo_up(buf + uintptr(v1))) = **(**int8)(__ccgo_up(v2)) + } + /* Consume maximal [escaped-]literal prefix of pattern, copying + * and un-escaping it to the running buffer as we go. */ + i = 0 + j = 0 + in_bracket = 0 + overflow = 0 + for { + if !(int32(**(**int8)(__ccgo_up(pat + uintptr(i)))) != int32('*') && int32(**(**int8)(__ccgo_up(pat + uintptr(i)))) != int32('?') && (!(in_bracket != 0) || int32(**(**int8)(__ccgo_up(pat + uintptr(i)))) != int32(']'))) { + break + } + if !(**(**int8)(__ccgo_up(pat + uintptr(i))) != 0) { + if overflow != 0 { + return 0 + } + pat = pat + uintptr(i) + pos = pos + Uint32FromInt32(j) + v4 = Int32FromInt32(0) + j = v4 + i = v4 + break + } else { + if int32(**(**int8)(__ccgo_up(pat + uintptr(i)))) == int32('[') { + in_bracket = int32(1) + } else { + if int32(**(**int8)(__ccgo_up(pat + uintptr(i)))) == int32('\\') && !(flags&Int32FromInt32(GLOB_NOESCAPE) != 0) { + /* Backslashes inside a bracket are (at least by + * our interpretation) non-special, so if next + * char is ']' we have a complete expression. */ + if in_bracket != 0 && int32(**(**int8)(__ccgo_up(pat + uintptr(i+int32(1))))) == int32(']') { + break + } + /* Unpaired final backslash never matches. */ + if !(**(**int8)(__ccgo_up(pat + uintptr(i+int32(1)))) != 0) { + return 0 + } + i = i + 1 + } + } + } + if int32(**(**int8)(__ccgo_up(pat + uintptr(i)))) == int32('/') { + if overflow != 0 { + return 0 + } + in_bracket = 0 + pat = pat + uintptr(i+int32(1)) + i = -int32(1) + pos = pos + Uint32FromInt32(j+int32(1)) + j = -int32(1) + } + /* Only store a character if it fits in the buffer, but if + * a potential bracket expression is open, the overflow + * must be remembered and handled later only if the bracket + * is unterminated (and thereby a literal), so as not to + * disallow long bracket expressions with short matches. */ + if pos+Uint32FromInt32(j+Int32FromInt32(1)) < uint32(PATH_MAX) { + v4 = j + j = j + 1 + **(**int8)(__ccgo_up(buf + uintptr(pos+Uint32FromInt32(v4)))) = **(**int8)(__ccgo_up(pat + uintptr(i))) + } else { + if in_bracket != 0 { + overflow = int32(1) + } else { + return 0 + } + } + /* If we consume any new components, the caller-passed type + * or dummy type from above is no longer valid. */ + type1 = 0 + goto _3 + _3: + ; + i = i + 1 + } + **(**int8)(__ccgo_up(buf + uintptr(pos))) = 0 + if !(**(**int8)(__ccgo_up(pat)) != 0) { + if flags&int32(GLOB_MARK) != 0 && (!(type1 != 0) || type1 == int32(DT_LNK)) && !(Xstat(tls, buf, bp) != 0) { + if (**(**Tstat)(__ccgo_up(bp))).Fst_mode&uint32(S_IFMT) == uint32(S_IFDIR) { + type1 = int32(DT_DIR) + } else { + type1 = int32(DT_REG) + } + } + if !(type1 != 0) && Xlstat(tls, buf, bp) != 0 { + if **(**int32)(__ccgo_up(X__errno_location(tls))) != int32(ENOENT) && ((*(*func(*TLS, uintptr, int32) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_errfunc})))(tls, buf, **(**int32)(__ccgo_up(X__errno_location(tls)))) != 0 || flags&int32(GLOB_ERR) != 0) { + return int32(GLOB_ABORTED) + } + return 0 + } + if _append(tls, tail, buf, pos, BoolInt32(flags&int32(GLOB_MARK) != 0 && type1 == int32(DT_DIR))) != 0 { + return int32(GLOB_NOSPACE) + } + return 0 + } + p2 = Xstrchr(tls, pat, int32('/')) + saved_sep = int8('/') + /* Check if the '/' was escaped and, if so, remove the escape char + * so that it will not be unpaired when passed to fnmatch. */ + if p2 != 0 && !(flags&Int32FromInt32(GLOB_NOESCAPE) != 0) { + p = p2 + for { + if !(p > pat && int32(**(**int8)(__ccgo_up(p + uintptr(-Int32FromInt32(1))))) == int32('\\')) { + break + } + goto _6 + _6: + ; + p = p - 1 + } + if (int32(p2)-int32(p))%int32(2) != 0 { + p2 = p2 - 1 + saved_sep = int8('\\') + } + } + if pos != 0 { + v2 = buf + } else { + v2 = __ccgo_ts + 483 + } + dir = Xopendir(tls, v2) + if !(dir != 0) { + if (*(*func(*TLS, uintptr, int32) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_errfunc})))(tls, buf, **(**int32)(__ccgo_up(X__errno_location(tls)))) != 0 || flags&int32(GLOB_ERR) != 0 { + return int32(GLOB_ABORTED) + } + return 0 + } + old_errno = **(**int32)(__ccgo_up(X__errno_location(tls))) + for { + **(**int32)(__ccgo_up(X__errno_location(tls))) = 0 + v2 = Xreaddir(tls, dir) + de = v2 + if !(v2 != 0) { + break + } + /* Quickly skip non-directories when there's pattern left. */ + if p2 != 0 && (*Tdirent)(unsafe.Pointer(de)).Fd_type != 0 && Int32FromUint8((*Tdirent)(unsafe.Pointer(de)).Fd_type) != int32(DT_DIR) && Int32FromUint8((*Tdirent)(unsafe.Pointer(de)).Fd_type) != int32(DT_LNK) { + continue + } + l = _strlen(tls, de+19) + if l >= uint32(PATH_MAX)-pos { + continue + } + if p2 != 0 { + **(**int8)(__ccgo_up(p2)) = 0 + } + if flags&int32(GLOB_NOESCAPE) != 0 { + v9 = int32(FNM_NOESCAPE) + } else { + v9 = 0 + } + if !(flags&Int32FromInt32(GLOB_PERIOD) != 0) { + v10 = int32(FNM_PERIOD) + } else { + v10 = 0 + } + fnm_flags = v9 | v10 + if Xfnmatch(tls, pat, de+19, fnm_flags) != 0 { + continue + } + /* With GLOB_PERIOD, don't allow matching . or .. unless + * fnmatch would match them with FNM_PERIOD rules in effect. */ + if p2 != 0 && flags&int32(GLOB_PERIOD) != 0 && int32(**(**int8)(__ccgo_up(de + 19))) == int32('.') && (!(**(**int8)(__ccgo_up(de + 19 + 1)) != 0) || int32(**(**int8)(__ccgo_up(de + 19 + 1))) == int32('.') && !(**(**int8)(__ccgo_up(de + 19 + 2)) != 0)) && Xfnmatch(tls, pat, de+19, fnm_flags|int32(FNM_PERIOD)) != 0 { + continue + } + Xmemcpy(tls, buf+uintptr(pos), de+19, l+uint32(1)) + if p2 != 0 { + **(**int8)(__ccgo_up(p2)) = saved_sep + } + if p2 != 0 { + v2 = p2 + } else { + v2 = __ccgo_ts + } + r = _do_glob(tls, buf, pos+l, Int32FromUint8((*Tdirent)(unsafe.Pointer(de)).Fd_type), v2, flags, __ccgo_fp_errfunc, tail) + if r != 0 { + Xclosedir(tls, dir) + return r + } + } + readerr = **(**int32)(__ccgo_up(X__errno_location(tls))) + if p2 != 0 { + **(**int8)(__ccgo_up(p2)) = saved_sep + } + Xclosedir(tls, dir) + if readerr != 0 && ((*(*func(*TLS, uintptr, int32) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_errfunc})))(tls, buf, **(**int32)(__ccgo_up(X__errno_location(tls)))) != 0 || flags&int32(GLOB_ERR) != 0) { + return int32(GLOB_ABORTED) + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = old_errno + return 0 +} + +func _ignore_err(tls *TLS, path uintptr, err int32) (r int32) { + return 0 +} + +func _freelist(tls *TLS, head uintptr) { + var match, next uintptr + _, _ = match, next + match = (*Tmatch)(unsafe.Pointer(head)).Fnext + for { + if !(match != 0) { + break + } + next = (*Tmatch)(unsafe.Pointer(match)).Fnext + Xfree(tls, match) + goto _1 + _1: + ; + match = next + } +} + +func _sort(tls *TLS, a uintptr, b uintptr) (r int32) { + return Xstrcmp(tls, **(**uintptr)(__ccgo_up(a)), **(**uintptr)(__ccgo_up(b))) +} + +func _expand_tilde(tls *TLS, pat uintptr, buf uintptr, pos uintptr) (r int32) { + bp := tls.Alloc(32) + defer tls.Free(32) + var delim, v1 int8 + var home, name_end, p, v2 uintptr + var i, v10 Tsize_t + var v4 int32 + var _ /* pw at bp+0 */ Tpasswd + var _ /* res at bp+28 */ uintptr + _, _, _, _, _, _, _, _, _ = delim, home, i, name_end, p, v1, v10, v2, v4 + p = **(**uintptr)(__ccgo_up(pat)) + uintptr(1) + i = uint32(0) + name_end = X__strchrnul(tls, p, int32('/')) + v1 = **(**int8)(__ccgo_up(name_end)) + delim = v1 + if v1 != 0 { + v2 = name_end + name_end = name_end + 1 + **(**int8)(__ccgo_up(v2)) = 0 + } + **(**uintptr)(__ccgo_up(pat)) = name_end + if **(**int8)(__ccgo_up(p)) != 0 { + v2 = UintptrFromInt32(0) + } else { + v2 = Xgetenv(tls, __ccgo_ts+1310) + } + home = v2 + if !(home != 0) { + if **(**int8)(__ccgo_up(p)) != 0 { + v4 = Xgetpwnam_r(tls, p, bp, buf, uint32(PATH_MAX), bp+28) + } else { + v4 = Xgetpwuid_r(tls, Xgetuid(tls), bp, buf, uint32(PATH_MAX), bp+28) + } + switch v4 { + case int32(ENOMEM): + goto _5 + default: + goto _6 + case 0: + goto _7 + } + goto _8 + _5: + ; + return int32(GLOB_NOSPACE) + _7: + ; + if !!(**(**uintptr)(__ccgo_up(bp + 28)) != 0) { + goto _9 + } + _6: + ; + return int32(GLOB_NOMATCH) + _9: + ; + _8: + ; + home = (**(**Tpasswd)(__ccgo_up(bp))).Fpw_dir + } + for i < Uint32FromInt32(Int32FromInt32(PATH_MAX)-Int32FromInt32(2)) && **(**int8)(__ccgo_up(home)) != 0 { + v10 = i + i = i + 1 + v2 = home + home = home + 1 + **(**int8)(__ccgo_up(buf + uintptr(v10))) = **(**int8)(__ccgo_up(v2)) + } + if **(**int8)(__ccgo_up(home)) != 0 { + return int32(GLOB_NOMATCH) + } + v1 = delim + **(**int8)(__ccgo_up(buf + uintptr(i))) = v1 + if v1 != 0 { + i = i + 1 + v10 = i + **(**int8)(__ccgo_up(buf + uintptr(v10))) = 0 + } + **(**Tsize_t)(__ccgo_up(pos)) = i + return 0 +} + +type t__ccgo_fp__Xglob_2 = func(*TLS, uintptr, int32) int32 + +func Xglob(tls *TLS, pat uintptr, flags int32, __ccgo_fp_errfunc uintptr, g uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v pat=%v flags=%v __ccgo_fp_errfunc=%v g=%v, (%v:)", tls, pat, flags, __ccgo_fp_errfunc, g, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(4112) + defer tls.Free(4112) + var cnt, i, offs Tsize_t + var error1 int32 + var p, pathv uintptr + var v1 uint32 + var _ /* buf at bp+8 */ [4096]int8 + var _ /* head at bp+0 */ Tmatch + var _ /* pos at bp+4104 */ Tsize_t + var _ /* s at bp+4108 */ uintptr + var _ /* tail at bp+4 */ uintptr + _, _, _, _, _, _, _ = cnt, error1, i, offs, p, pathv, v1 + **(**Tmatch)(__ccgo_up(bp)) = struct { + Fnext uintptr + }{} + **(**uintptr)(__ccgo_up(bp + 4)) = bp + if flags&int32(GLOB_DOOFFS) != 0 { + v1 = (*Tglob_t)(unsafe.Pointer(g)).Fgl_offs + } else { + v1 = uint32(0) + } + offs = v1 + error1 = 0 + if !(__ccgo_fp_errfunc != 0) { + __ccgo_fp_errfunc = __ccgo_fp(_ignore_err) + } + if !(flags&Int32FromInt32(GLOB_APPEND) != 0) { + (*Tglob_t)(unsafe.Pointer(g)).Fgl_offs = offs + (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathc = uint32(0) + (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv = UintptrFromInt32(0) + } + if **(**int8)(__ccgo_up(pat)) != 0 { + p = Xstrdup(tls, pat) + if !(p != 0) { + return int32(GLOB_NOSPACE) + } + (**(**[4096]int8)(__ccgo_up(bp + 8)))[0] = 0 + **(**Tsize_t)(__ccgo_up(bp + 4104)) = uint32(0) + **(**uintptr)(__ccgo_up(bp + 4108)) = p + if flags&(Int32FromInt32(GLOB_TILDE)|Int32FromInt32(GLOB_TILDE_CHECK)) != 0 && int32(**(**int8)(__ccgo_up(p))) == int32('~') { + error1 = _expand_tilde(tls, bp+4108, bp+8, bp+4104) + } + if !(error1 != 0) { + error1 = _do_glob(tls, bp+8, **(**Tsize_t)(__ccgo_up(bp + 4104)), 0, **(**uintptr)(__ccgo_up(bp + 4108)), flags, __ccgo_fp_errfunc, bp+4) + } + Xfree(tls, p) + } + if error1 == int32(GLOB_NOSPACE) { + _freelist(tls, bp) + return error1 + } + cnt = uint32(0) + **(**uintptr)(__ccgo_up(bp + 4)) = (**(**Tmatch)(__ccgo_up(bp))).Fnext + for { + if !(**(**uintptr)(__ccgo_up(bp + 4)) != 0) { + break + } + goto _2 + _2: + ; + **(**uintptr)(__ccgo_up(bp + 4)) = (*Tmatch)(unsafe.Pointer(**(**uintptr)(__ccgo_up(bp + 4)))).Fnext + cnt = cnt + 1 + } + if !(cnt != 0) { + if flags&int32(GLOB_NOCHECK) != 0 { + **(**uintptr)(__ccgo_up(bp + 4)) = bp + if _append(tls, bp+4, pat, _strlen(tls, pat), 0) != 0 { + return int32(GLOB_NOSPACE) + } + cnt = cnt + 1 + } else { + if !(error1 != 0) { + return int32(GLOB_NOMATCH) + } + } + } + if flags&int32(GLOB_APPEND) != 0 { + pathv = Xrealloc(tls, (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv, (offs+(*Tglob_t)(unsafe.Pointer(g)).Fgl_pathc+cnt+uint32(1))*uint32(4)) + if !(pathv != 0) { + _freelist(tls, bp) + return int32(GLOB_NOSPACE) + } + (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv = pathv + offs = offs + (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathc + } else { + (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv = Xmalloc(tls, (offs+cnt+uint32(1))*uint32(4)) + if !((*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv != 0) { + _freelist(tls, bp) + return int32(GLOB_NOSPACE) + } + i = uint32(0) + for { + if !(i < offs) { + break + } + **(**uintptr)(__ccgo_up((*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv + uintptr(i)*4)) = UintptrFromInt32(0) + goto _3 + _3: + ; + i = i + 1 + } + } + i = uint32(0) + **(**uintptr)(__ccgo_up(bp + 4)) = (**(**Tmatch)(__ccgo_up(bp))).Fnext + for { + if !(i < cnt) { + break + } + **(**uintptr)(__ccgo_up((*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv + uintptr(offs+i)*4)) = **(**uintptr)(__ccgo_up(bp + 4)) + 4 + goto _4 + _4: + ; + **(**uintptr)(__ccgo_up(bp + 4)) = (*Tmatch)(unsafe.Pointer(**(**uintptr)(__ccgo_up(bp + 4)))).Fnext + i = i + 1 + } + **(**uintptr)(__ccgo_up((*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv + uintptr(offs+i)*4)) = UintptrFromInt32(0) + **(**Tsize_t)(__ccgo_up(g)) += cnt + if !(flags&Int32FromInt32(GLOB_NOSORT) != 0) { + Xqsort(tls, (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv+uintptr(offs)*4, cnt, uint32(4), __ccgo_fp(_sort)) + } + return error1 +} + +func Xglobfree(tls *TLS, g uintptr) { + if __ccgo_strace { + trc("tls=%v g=%v, (%v:)", tls, g, origin(2)) + } + var i Tsize_t + _ = i + i = uint32(0) + for { + if !(i < (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathc) { + break + } + Xfree(tls, **(**uintptr)(__ccgo_up((*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv + uintptr((*Tglob_t)(unsafe.Pointer(g)).Fgl_offs+i)*4))-uintptr(uint32(UintptrFromInt32(0)+4))) + goto _1 + _1: + ; + i = i + 1 + } + Xfree(tls, (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv) + (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathc = uint32(0) + (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv = UintptrFromInt32(0) +} + +const ASSERTION = -2 +const ASSERT_AT_BOL = 1 +const ASSERT_AT_BOW = 16 +const ASSERT_AT_EOL = 2 +const ASSERT_AT_EOW = 32 +const ASSERT_AT_WB = 64 +const ASSERT_AT_WB_NEG = 128 +const ASSERT_BACKREF = 256 +const ASSERT_CHAR_CLASS = 4 +const ASSERT_CHAR_CLASS_NEG = 8 +const ASSERT_LAST = 256 +const BACKREF = -4 +const COPY_MAXIMIZE_FIRST_TAG = 2 +const COPY_REMOVE_TAGS = 1 +const EMPTY1 = -1 +const MAX_NEG_CLASSES = 64 +const REG_BADBR = 10 +const REG_BADPAT = 2 +const REG_BADRPT = 13 +const REG_EBRACE = 9 +const REG_EBRACK = 7 +const REG_ECOLLATE = 3 +const REG_ECTYPE = 4 +const REG_EESCAPE = 5 +const REG_ENOSYS = -1 +const REG_EPAREN = 8 +const REG_ERANGE = 11 +const REG_ESPACE = 12 +const REG_ESUBREG = 6 +const REG_EXTENDED = 1 +const REG_ICASE = 2 +const REG_NEWLINE = 4 +const REG_NOMATCH = 1 +const REG_NOSUB = 8 +const REG_NOTBOL = 1 +const REG_NOTEOL = 2 +const REG_OK = 0 +const TAG = -3 +const TRE_CHAR_MAX = 1114111 +const TRE_MEM_BLOCK_SIZE = 1024 +const TRE_REGEX_T_FIELD = 0 +const tre_ctype = 0 +const tre_isalnum = 0 +const tre_isalpha = 0 +const tre_isblank = 0 +const tre_iscntrl = 0 +const tre_isctype = 0 +const tre_isdigit = 0 +const tre_isgraph = 0 +const tre_islower = 0 +const tre_isprint = 0 +const tre_ispunct = 0 +const tre_isspace = 0 +const tre_isupper = 0 +const tre_isxdigit = 0 +const tre_mem_alloc_impl = 0 +const tre_mem_destroy = 0 +const tre_mem_new_impl = 0 +const tre_strlen = 0 +const tre_tolower = 0 +const tre_toupper = 0 +const xcalloc = 0 +const xfree = 0 +const xmalloc = 0 +const xrealloc = 0 + +type Tregoff_t = int32 + +type Tregex_t = struct { + Fre_nsub Tsize_t + F__opaque uintptr + F__padding [4]uintptr + F__nsub2 Tsize_t + F__padding2 int8 +} + +type Tre_pattern_buffer = Tregex_t + +type Tregmatch_t = struct { + Frm_so Tregoff_t + Frm_eo Tregoff_t +} + +type Treg_errcode_t = int32 + +type Ttre_char_t = int32 + +type Ttre_cint_t = uint32 + +type Ttre_ctype_t = uint32 + +type Ttre_tnfa_transition_t = struct { + Fcode_min Ttre_cint_t + Fcode_max Ttre_cint_t + Fstate uintptr + Fstate_id int32 + Ftags uintptr + Fassertions int32 + Fu struct { + Fbackref [0]int32 + Fclass Ttre_ctype_t + } + Fneg_classes uintptr +} + +type Ttnfa_transition = Ttre_tnfa_transition_t + +type Ttre_tag_direction_t = int32 + +const _TRE_TAG_MINIMIZE = 0 +const _TRE_TAG_MAXIMIZE = 1 + +type Ttre_submatch_data = struct { + Fso_tag int32 + Feo_tag int32 + Fparents uintptr +} + +type Ttre_submatch_data_t = struct { + Fso_tag int32 + Feo_tag int32 + Fparents uintptr +} + +type Ttre_tnfa_t = struct { + Ftransitions uintptr + Fnum_transitions uint32 + Finitial uintptr + Ffinal uintptr + Fsubmatch_data uintptr + Ffirstpos_chars uintptr + Ffirst_char int32 + Fnum_submatches uint32 + Ftag_directions uintptr + Fminimal_tags uintptr + Fnum_tags int32 + Fnum_minimals int32 + Fend_tag int32 + Fnum_states int32 + Fcflags int32 + Fhave_backrefs int32 + Fhave_approx int32 +} + +type Ttnfa = Ttre_tnfa_t + +type Ttre_list_t = struct { + Fdata uintptr + Fnext uintptr +} + +type Ttre_list = Ttre_list_t + +type Ttre_mem_t = uintptr + +type Ttre_mem_struct = struct { + Fblocks uintptr + Fcurrent uintptr + Fptr uintptr + Fn Tsize_t + Ffailed int32 + Fprovided uintptr +} + +/*********************************************************************** + from tre-compile.h +***********************************************************************/ + +type Ttre_pos_and_tags_t = struct { + Fposition int32 + Fcode_min int32 + Fcode_max int32 + Ftags uintptr + Fassertions int32 + Fclass Ttre_ctype_t + Fneg_classes uintptr + Fbackref int32 +} + +/*********************************************************************** + from tre-ast.c and tre-ast.h +***********************************************************************/ + +// C documentation +// +// /* The different AST node types. */ +type Ttre_ast_type_t = int32 + +const _LITERAL = 0 +const _CATENATION = 1 +const _ITERATION = 2 +const _UNION = 3 + +/* Special subtypes of TRE_LITERAL. */ + +// C documentation +// +// /* A generic AST node. All AST nodes consist of this node on the top +// level with `obj' pointing to the actual content. */ +type Ttre_ast_node_t = struct { + Ftype1 Ttre_ast_type_t + Fobj uintptr + Fnullable int32 + Fsubmatch_id int32 + Fnum_submatches int32 + Fnum_tags int32 + Ffirstpos uintptr + Flastpos uintptr +} + +// C documentation +// +// /* A "literal" node. These are created for assertions, back references, +// tags, matching parameter settings, and all expressions that match one +// character. */ +type Ttre_literal_t = struct { + Fcode_min int32 + Fcode_max int32 + Fposition int32 + Fclass Ttre_ctype_t + Fneg_classes uintptr +} + +// C documentation +// +// /* A "catenation" node. These are created when two regexps are concatenated. +// If there are more than one subexpressions in sequence, the `left' part +// holds all but the last, and `right' part holds the last subexpression +// (catenation is left associative). */ +type Ttre_catenation_t = struct { + Fleft uintptr + Fright uintptr +} + +// C documentation +// +// /* An "iteration" node. These are created for the "*", "+", "?", and "{m,n}" +// operators. */ +type Ttre_iteration_t = struct { + Farg uintptr + Fmin int32 + Fmax int32 + F__ccgo12 uint8 +} + +// C documentation +// +// /* An "union" node. These are created for the "|" operator. */ +type Ttre_union_t = struct { + Fleft uintptr + Fright uintptr +} + +func _tre_ast_new_node(tls *TLS, mem Ttre_mem_t, type1 int32, obj uintptr) (r uintptr) { + var node uintptr + _ = node + node = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), int32(1), uint32(32)) + if !(node != 0) || !(obj != 0) { + return uintptr(0) + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj = obj + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 = type1 + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnullable = -int32(1) + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fsubmatch_id = -int32(1) + return node +} + +func _tre_ast_new_literal(tls *TLS, mem Ttre_mem_t, code_min int32, code_max int32, position int32) (r uintptr) { + var lit, node uintptr + _, _ = lit, node + lit = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), int32(1), uint32(20)) + node = _tre_ast_new_node(tls, mem, int32(_LITERAL), lit) + if !(node != 0) { + return uintptr(0) + } + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min = code_min + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max = code_max + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition = position + return node +} + +func _tre_ast_new_iter(tls *TLS, mem Ttre_mem_t, arg uintptr, min int32, max int32, minimal int32) (r uintptr) { + var iter, node uintptr + _, _ = iter, node + iter = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), int32(1), uint32(16)) + node = _tre_ast_new_node(tls, mem, int32(_ITERATION), iter) + if !(node != 0) { + return uintptr(0) + } + (*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg = arg + (*Ttre_iteration_t)(unsafe.Pointer(iter)).Fmin = min + (*Ttre_iteration_t)(unsafe.Pointer(iter)).Fmax = max + SetBitFieldPtr8Uint32(iter+12, Uint32FromInt32(minimal), 0, 0x1) + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_submatches = (*Ttre_ast_node_t)(unsafe.Pointer(arg)).Fnum_submatches + return node +} + +func _tre_ast_new_union(tls *TLS, mem Ttre_mem_t, left uintptr, right uintptr) (r uintptr) { + var node, un uintptr + _, _ = node, un + if !(left != 0) { + return right + } + un = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), int32(1), uint32(8)) + node = _tre_ast_new_node(tls, mem, int32(_UNION), un) + if !(node != 0) || !(right != 0) { + return uintptr(0) + } + (*Ttre_union_t)(unsafe.Pointer(un)).Fleft = left + (*Ttre_union_t)(unsafe.Pointer(un)).Fright = right + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_submatches = (*Ttre_ast_node_t)(unsafe.Pointer(left)).Fnum_submatches + (*Ttre_ast_node_t)(unsafe.Pointer(right)).Fnum_submatches + return node +} + +func _tre_ast_new_catenation(tls *TLS, mem Ttre_mem_t, left uintptr, right uintptr) (r uintptr) { + var cat, node uintptr + _, _ = cat, node + if !(left != 0) { + return right + } + cat = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), int32(1), uint32(8)) + node = _tre_ast_new_node(tls, mem, int32(_CATENATION), cat) + if !(node != 0) { + return uintptr(0) + } + (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft = left + (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright = right + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_submatches = (*Ttre_ast_node_t)(unsafe.Pointer(left)).Fnum_submatches + (*Ttre_ast_node_t)(unsafe.Pointer(right)).Fnum_submatches + return node +} + +/*********************************************************************** + from tre-stack.c and tre-stack.h +***********************************************************************/ + +type Ttre_stack_t = struct { + Fsize int32 + Fmax_size int32 + Fincrement int32 + Fptr int32 + Fstack uintptr +} + +/*********************************************************************** + from tre-stack.c and tre-stack.h +***********************************************************************/ + +type Ttre_stack_rec = Ttre_stack_t + +/* Just to save some typing. */ + +type Ttre_stack_item = struct { + Fint_value [0]int32 + Fvoidptr_value uintptr +} + +func _tre_stack_new(tls *TLS, size int32, max_size int32, increment int32) (r uintptr) { + var s uintptr + _ = s + s = Xmalloc(tls, uint32(20)) + if s != UintptrFromInt32(0) { + (*Ttre_stack_t)(unsafe.Pointer(s)).Fstack = Xmalloc(tls, uint32(4)*Uint32FromInt32(size)) + if (*Ttre_stack_t)(unsafe.Pointer(s)).Fstack == UintptrFromInt32(0) { + Xfree(tls, s) + return UintptrFromInt32(0) + } + (*Ttre_stack_t)(unsafe.Pointer(s)).Fsize = size + (*Ttre_stack_t)(unsafe.Pointer(s)).Fmax_size = max_size + (*Ttre_stack_t)(unsafe.Pointer(s)).Fincrement = increment + (*Ttre_stack_t)(unsafe.Pointer(s)).Fptr = 0 + } + return s +} + +func _tre_stack_destroy(tls *TLS, s uintptr) { + Xfree(tls, (*Ttre_stack_t)(unsafe.Pointer(s)).Fstack) + Xfree(tls, s) +} + +func _tre_stack_num_objects(tls *TLS, s uintptr) (r int32) { + return (*Ttre_stack_t)(unsafe.Pointer(s)).Fptr +} + +func _tre_stack_push(tls *TLS, s uintptr, value Ttre_stack_item) (r Treg_errcode_t) { + var new_buffer uintptr + var new_size int32 + _, _ = new_buffer, new_size + if (*Ttre_stack_t)(unsafe.Pointer(s)).Fptr < (*Ttre_stack_t)(unsafe.Pointer(s)).Fsize { + **(**Ttre_stack_item)(__ccgo_up((*Ttre_stack_t)(unsafe.Pointer(s)).Fstack + uintptr((*Ttre_stack_t)(unsafe.Pointer(s)).Fptr)*4)) = value + (*Ttre_stack_t)(unsafe.Pointer(s)).Fptr = (*Ttre_stack_t)(unsafe.Pointer(s)).Fptr + 1 + } else { + if (*Ttre_stack_t)(unsafe.Pointer(s)).Fsize >= (*Ttre_stack_t)(unsafe.Pointer(s)).Fmax_size { + return int32(REG_ESPACE) + } else { + new_size = (*Ttre_stack_t)(unsafe.Pointer(s)).Fsize + (*Ttre_stack_t)(unsafe.Pointer(s)).Fincrement + if new_size > (*Ttre_stack_t)(unsafe.Pointer(s)).Fmax_size { + new_size = (*Ttre_stack_t)(unsafe.Pointer(s)).Fmax_size + } + new_buffer = Xrealloc(tls, (*Ttre_stack_t)(unsafe.Pointer(s)).Fstack, uint32(4)*Uint32FromInt32(new_size)) + if new_buffer == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + (*Ttre_stack_t)(unsafe.Pointer(s)).Fsize = new_size + (*Ttre_stack_t)(unsafe.Pointer(s)).Fstack = new_buffer + _tre_stack_push(tls, s, value) + } + } + return REG_OK +} + +func _tre_stack_push_int(tls *TLS, s uintptr, value int32) (r Treg_errcode_t) { + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* item at bp+0 */ Ttre_stack_item + *(*int32)(unsafe.Pointer(bp)) = value + return _tre_stack_push(tls, s, **(**Ttre_stack_item)(__ccgo_up(bp))) +} + +func _tre_stack_push_voidptr(tls *TLS, s uintptr, value uintptr) (r Treg_errcode_t) { + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* item at bp+0 */ Ttre_stack_item + *(*uintptr)(unsafe.Pointer(bp)) = value + return _tre_stack_push(tls, s, **(**Ttre_stack_item)(__ccgo_up(bp))) +} + +func _tre_stack_pop_int(tls *TLS, s uintptr) (r int32) { + var v1 int32 + var v2 uintptr + _, _ = v1, v2 + v2 = s + 12 + *(*int32)(unsafe.Pointer(v2)) = *(*int32)(unsafe.Pointer(v2)) - 1 + v1 = *(*int32)(unsafe.Pointer(v2)) + return *(*int32)(unsafe.Pointer((*Ttre_stack_t)(unsafe.Pointer(s)).Fstack + uintptr(v1)*4)) +} + +func _tre_stack_pop_voidptr(tls *TLS, s uintptr) (r uintptr) { + var v1 int32 + var v2 uintptr + _, _ = v1, v2 + v2 = s + 12 + *(*int32)(unsafe.Pointer(v2)) = *(*int32)(unsafe.Pointer(v2)) - 1 + v1 = *(*int32)(unsafe.Pointer(v2)) + return *(*uintptr)(unsafe.Pointer((*Ttre_stack_t)(unsafe.Pointer(s)).Fstack + uintptr(v1)*4)) +} + +/*********************************************************************** + from tre-parse.c and tre-parse.h +***********************************************************************/ + +// C documentation +// +// /* Parse context. */ +type Ttre_parse_ctx_t = struct { + Fmem Ttre_mem_t + Fstack uintptr + Fn uintptr + Fs uintptr + Fstart uintptr + Fsubmatch_id int32 + Fposition int32 + Fmax_backref int32 + Fcflags int32 +} + +// C documentation +// +// /* Some macros for expanding \w, \s, etc. */ +var _tre_macros = [13]struct { + Fc int8 + Fexpansion uintptr +}{ + 0: { + Fc: int8('t'), + Fexpansion: __ccgo_ts + 1315, + }, + 1: { + Fc: int8('n'), + Fexpansion: __ccgo_ts + 301, + }, + 2: { + Fc: int8('r'), + Fexpansion: __ccgo_ts + 1317, + }, + 3: { + Fc: int8('f'), + Fexpansion: __ccgo_ts + 1319, + }, + 4: { + Fc: int8('a'), + Fexpansion: __ccgo_ts + 1321, + }, + 5: { + Fc: int8('e'), + Fexpansion: __ccgo_ts + 1323, + }, + 6: { + Fc: int8('w'), + Fexpansion: __ccgo_ts + 1325, + }, + 7: { + Fc: int8('W'), + Fexpansion: __ccgo_ts + 1338, + }, + 8: { + Fc: int8('s'), + Fexpansion: __ccgo_ts + 1352, + }, + 9: { + Fc: int8('S'), + Fexpansion: __ccgo_ts + 1364, + }, + 10: { + Fc: int8('d'), + Fexpansion: __ccgo_ts + 1377, + }, + 11: { + Fc: int8('D'), + Fexpansion: __ccgo_ts + 1389, + }, + 12: {}, +} + +// C documentation +// +// /* Expands a macro delimited by `regex' and `regex_end' to `buf', which +// must have at least `len' items. Sets buf[0] to zero if the there +// is no match in `tre_macros'. */ +func _tre_expand_macro(tls *TLS, s uintptr) (r uintptr) { + var i int32 + _ = i + i = 0 + for { + if !(_tre_macros[i].Fc != 0 && int32(_tre_macros[i].Fc) != int32(**(**int8)(__ccgo_up(s)))) { + break + } + goto _1 + _1: + ; + i = i + 1 + } + return _tre_macros[i].Fexpansion +} + +func _tre_compare_lit(tls *TLS, a uintptr, b uintptr) (r int32) { + var la, lb uintptr + _, _ = la, lb + la = a + lb = b + /* assumes the range of valid code_min is < INT_MAX */ + return (*Ttre_literal_t)(unsafe.Pointer(**(**uintptr)(__ccgo_up(la)))).Fcode_min - (*Ttre_literal_t)(unsafe.Pointer(**(**uintptr)(__ccgo_up(lb)))).Fcode_min +} + +type Tliterals = struct { + Fmem Ttre_mem_t + Fa uintptr + Flen1 int32 + Fcap1 int32 +} + +func _tre_new_lit(tls *TLS, p uintptr) (r uintptr) { + var a, v2 uintptr + var v1 int32 + _, _, _ = a, v1, v2 + if (*Tliterals)(unsafe.Pointer(p)).Flen1 >= (*Tliterals)(unsafe.Pointer(p)).Fcap1 { + if (*Tliterals)(unsafe.Pointer(p)).Fcap1 >= Int32FromInt32(1)< max { + return int32(REG_ERANGE) + } + s = s + uintptr(len1) + } + } + if class != 0 && (*Tneg)(unsafe.Pointer(neg)).Fnegate != 0 { + if (*Tneg)(unsafe.Pointer(neg)).Flen1 >= int32(MAX_NEG_CLASSES) { + return int32(REG_ESPACE) + } + v6 = neg + 4 + v2 = *(*int32)(unsafe.Pointer(v6)) + *(*int32)(unsafe.Pointer(v6)) = *(*int32)(unsafe.Pointer(v6)) + 1 + **(**Ttre_ctype_t)(__ccgo_up(neg + 8 + uintptr(v2)*4)) = class + } else { + lit = _tre_new_lit(tls, ls) + if !(lit != 0) { + return int32(REG_ESPACE) + } + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min = min + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max = max + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fclass = class + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition = -int32(1) + /* Add opposite-case codepoints if REG_ICASE is present. + It seems that POSIX requires that bracket negation + should happen before case-folding, but most practical + implementations do it the other way around. Changing + the order would need efficient representation of + case-fold ranges and bracket range sets even with + simple patterns so this is ok for now. */ + if (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fcflags&int32(REG_ICASE) != 0 && !(class != 0) { + if _add_icase_literals(tls, ls, min, max) != 0 { + return int32(REG_ESPACE) + } + } + } + goto _1 + _1: + } + return r +} + +func _parse_bracket(tls *TLS, ctx uintptr, s uintptr) (r Treg_errcode_t) { + bp := tls.Alloc(288) + defer tls.Free(288) + var err Treg_errcode_t + var i, max, min, negmax, negmin, v1 int32 + var lit, n, nc, node uintptr + var _ /* ls at bp+0 */ Tliterals + var _ /* neg at bp+16 */ Tneg + _, _, _, _, _, _, _, _, _, _, _ = err, i, lit, max, min, n, nc, negmax, negmin, node, v1 + node = uintptr(0) + nc = uintptr(0) + (**(**Tliterals)(__ccgo_up(bp))).Fmem = (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem + (**(**Tliterals)(__ccgo_up(bp))).Flen1 = 0 + (**(**Tliterals)(__ccgo_up(bp))).Fcap1 = int32(32) + (**(**Tliterals)(__ccgo_up(bp))).Fa = Xmalloc(tls, Uint32FromInt32((**(**Tliterals)(__ccgo_up(bp))).Fcap1)*uint32(4)) + if !((**(**Tliterals)(__ccgo_up(bp))).Fa != 0) { + return int32(REG_ESPACE) + } + (**(**Tneg)(__ccgo_up(bp + 16))).Flen1 = 0 + (**(**Tneg)(__ccgo_up(bp + 16))).Fnegate = BoolInt32(int32(**(**int8)(__ccgo_up(s))) == int32('^')) + if (**(**Tneg)(__ccgo_up(bp + 16))).Fnegate != 0 { + s = s + 1 + } + err = _parse_bracket_terms(tls, ctx, s, bp, bp+16) + if err != REG_OK { + goto parse_bracket_done + } + if (**(**Tneg)(__ccgo_up(bp + 16))).Fnegate != 0 { + /* + * With REG_NEWLINE, POSIX requires that newlines are not matched by + * any form of a non-matching list. + */ + if (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fcflags&int32(REG_NEWLINE) != 0 { + lit = _tre_new_lit(tls, bp) + if !(lit != 0) { + err = int32(REG_ESPACE) + goto parse_bracket_done + } + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min = int32('\n') + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max = int32('\n') + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition = -int32(1) + } + /* Sort the array if we need to negate it. */ + Xqsort(tls, (**(**Tliterals)(__ccgo_up(bp))).Fa, Uint32FromInt32((**(**Tliterals)(__ccgo_up(bp))).Flen1), uint32(4), __ccgo_fp(_tre_compare_lit)) + /* extra lit for the last negated range */ + lit = _tre_new_lit(tls, bp) + if !(lit != 0) { + err = int32(REG_ESPACE) + goto parse_bracket_done + } + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min = int32(Int32FromInt32(TRE_CHAR_MAX) + Int32FromInt32(1)) + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max = int32(Int32FromInt32(TRE_CHAR_MAX) + Int32FromInt32(1)) + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition = -int32(1) + /* negated classes */ + if (**(**Tneg)(__ccgo_up(bp + 16))).Flen1 != 0 { + nc = X__tre_mem_alloc_impl(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, 0, UintptrFromInt32(0), 0, Uint32FromInt32((**(**Tneg)(__ccgo_up(bp + 16))).Flen1+Int32FromInt32(1))*uint32(4)) + if !(nc != 0) { + err = int32(REG_ESPACE) + goto parse_bracket_done + } + Xmemcpy(tls, nc, bp+16+8, Uint32FromInt32((**(**Tneg)(__ccgo_up(bp + 16))).Flen1)*uint32(4)) + **(**Ttre_ctype_t)(__ccgo_up(nc + uintptr((**(**Tneg)(__ccgo_up(bp + 16))).Flen1)*4)) = uint32(0) + } + } + /* Build a union of the items in the array, negated if necessary. */ + v1 = Int32FromInt32(0) + negmin = v1 + negmax = v1 + i = 0 + for { + if !(i < (**(**Tliterals)(__ccgo_up(bp))).Flen1) { + break + } + lit = **(**uintptr)(__ccgo_up((**(**Tliterals)(__ccgo_up(bp))).Fa + uintptr(i)*4)) + min = (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min + max = (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max + if (**(**Tneg)(__ccgo_up(bp + 16))).Fnegate != 0 { + if min <= negmin { + /* Overlap. */ + if max+int32(1) >= negmin { + v1 = max + int32(1) + } else { + v1 = negmin + } + negmin = v1 + goto _2 + } + negmax = min - int32(1) + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min = negmin + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max = negmax + negmin = max + int32(1) + } + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition = (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fposition + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fneg_classes = nc + n = _tre_ast_new_node(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, int32(_LITERAL), lit) + node = _tre_ast_new_union(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, node, n) + if !(node != 0) { + err = int32(REG_ESPACE) + break + } + goto _2 + _2: + ; + i = i + 1 + } + goto parse_bracket_done +parse_bracket_done: + ; + Xfree(tls, (**(**Tliterals)(__ccgo_up(bp))).Fa) + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fposition = (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fposition + 1 + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fn = node + return err +} + +func _parse_dup_count(tls *TLS, s uintptr, n uintptr) (r uintptr) { + **(**int32)(__ccgo_up(n)) = -int32(1) + if !(BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(s)))-Uint32FromUint8('0') < Uint32FromInt32(10)) != 0) { + return s + } + **(**int32)(__ccgo_up(n)) = 0 + for { + **(**int32)(__ccgo_up(n)) = int32(10)***(**int32)(__ccgo_up(n)) + (int32(**(**int8)(__ccgo_up(s))) - int32('0')) + s = s + 1 + if !(BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(s)))-Uint32FromUint8('0') < Uint32FromInt32(10)) != 0) || **(**int32)(__ccgo_up(n)) > int32(RE_DUP_MAX) { + break + } + goto _1 + _1: + } + return s +} + +func _parse_dup(tls *TLS, s uintptr, ere int32, pmin uintptr, pmax uintptr) (r uintptr) { + bp := tls.Alloc(16) + defer tls.Free(16) + var v1, v4 uintptr + var v2, v3, v5 bool + var _ /* max at bp+4 */ int32 + var _ /* min at bp+0 */ int32 + _, _, _, _, _ = v1, v2, v3, v4, v5 + s = _parse_dup_count(tls, s, bp) + if int32(**(**int8)(__ccgo_up(s))) == int32(',') { + s = _parse_dup_count(tls, s+uintptr(1), bp+4) + } else { + **(**int32)(__ccgo_up(bp + 4)) = **(**int32)(__ccgo_up(bp)) + } + if v3 = **(**int32)(__ccgo_up(bp + 4)) < **(**int32)(__ccgo_up(bp)) && **(**int32)(__ccgo_up(bp + 4)) >= 0 || **(**int32)(__ccgo_up(bp + 4)) > int32(RE_DUP_MAX) || **(**int32)(__ccgo_up(bp)) > int32(RE_DUP_MAX) || **(**int32)(__ccgo_up(bp)) < 0; !v3 { + if v2 = !(ere != 0); v2 { + v1 = s + s = s + 1 + } + } + if v5 = v3 || v2 && int32(**(**int8)(__ccgo_up(v1))) != int32('\\'); !v5 { + v4 = s + s = s + 1 + } + if v5 || int32(**(**int8)(__ccgo_up(v4))) != int32('}') { + return uintptr(0) + } + **(**int32)(__ccgo_up(pmin)) = **(**int32)(__ccgo_up(bp)) + **(**int32)(__ccgo_up(pmax)) = **(**int32)(__ccgo_up(bp + 4)) + return s +} + +func _hexval1(tls *TLS, c uint32) (r int32) { + if c-uint32('0') < uint32(10) { + return Int32FromUint32(c - uint32('0')) + } + c = c | uint32(32) + if c-uint32('a') < uint32(6) { + return Int32FromUint32(c - uint32('a') + uint32(10)) + } + return -int32(1) +} + +func _marksub(tls *TLS, ctx uintptr, node uintptr, subid int32) (r Treg_errcode_t) { + var n uintptr + _ = n + if (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fsubmatch_id >= 0 { + n = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(1), -int32(1), -int32(1)) + if !(n != 0) { + return int32(REG_ESPACE) + } + n = _tre_ast_new_catenation(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, n, node) + if !(n != 0) { + return int32(REG_ESPACE) + } + (*Ttre_ast_node_t)(unsafe.Pointer(n)).Fnum_submatches = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_submatches + node = n + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fsubmatch_id = subid + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_submatches = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_submatches + 1 + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fn = node + return REG_OK +} + +/* +BRE grammar: +Regex = Branch | '^' | '$' | '^$' | '^' Branch | Branch '$' | '^' Branch '$' +Branch = Atom | Branch Atom +Atom = char | quoted_char | '.' | Bracket | Atom Dup | '\(' Branch '\)' | back_ref +Dup = '*' | '\{' Count '\}' | '\{' Count ',\}' | '\{' Count ',' Count '\}' + +(leading ^ and trailing $ in a sub expr may be an anchor or literal as well) + +ERE grammar: +Regex = Branch | Regex '|' Branch +Branch = Atom | Branch Atom +Atom = char | quoted_char | '.' | Bracket | Atom Dup | '(' Regex ')' | '^' | '$' +Dup = '*' | '+' | '?' | '{' Count '}' | '{' Count ',}' | '{' Count ',' Count '}' + +(a*+?, ^*, $+, \X, {, (|a) are unspecified) +*/ + +func _parse_atom(tls *TLS, ctx uintptr, s uintptr) (r Treg_errcode_t) { + bp := tls.Alloc(16) + defer tls.Free(16) + var c, ere, i, len1, v, val, v16 int32 + var err Treg_errcode_t + var node, p, tmp1, tmp11, tmp2, tmp21, v14 uintptr + var _ /* wc at bp+0 */ Twchar_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = c, ere, err, i, len1, node, p, tmp1, tmp11, tmp2, tmp21, v, val, v14, v16 + ere = (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fcflags & int32(REG_EXTENDED) + switch int32(**(**int8)(__ccgo_up(s))) { + case int32('['): + goto _1 + case int32('\\'): + goto _2 + case int32('.'): + goto _3 + case int32('^'): + goto _4 + case int32('$'): + goto _5 + case int32('?'): + goto _6 + case int32('+'): + goto _7 + case int32('{'): + goto _8 + case int32('*'): + goto _9 + case int32('|'): + goto _10 + case 0: + goto _11 + default: + goto _12 + } + goto _13 +_1: + ; + return _parse_bracket(tls, ctx, s+uintptr(1)) +_2: + ; + p = _tre_expand_macro(tls, s+uintptr(1)) + if p != 0 { + /* assume \X expansion is a single atom */ + err = _parse_atom(tls, ctx, p) + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fs = s + uintptr(2) + return err + } + /* extensions: \b, \B, \<, \>, \xHH \x{HHHH} */ + s = s + 1 + v14 = s + switch int32(**(**int8)(__ccgo_up(v14))) { + case 0: + return int32(REG_EESCAPE) + case int32('b'): + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(2), int32(ASSERT_AT_WB), -int32(1)) + case int32('B'): + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(2), int32(ASSERT_AT_WB_NEG), -int32(1)) + case int32('<'): + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(2), int32(ASSERT_AT_BOW), -int32(1)) + case int32('>'): + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(2), int32(ASSERT_AT_EOW), -int32(1)) + case int32('x'): + s = s + 1 + v = 0 + len1 = int32(2) + if int32(**(**int8)(__ccgo_up(s))) == int32('{') { + len1 = int32(8) + s = s + 1 + } + i = 0 + for { + if !(i < len1 && v < int32(0x110000)) { + break + } + c = _hexval1(tls, Uint32FromInt8(**(**int8)(__ccgo_up(s + uintptr(i))))) + if c < 0 { + break + } + v = int32(16)*v + c + goto _15 + _15: + ; + i = i + 1 + } + s = s + uintptr(i) + if len1 == int32(8) { + if int32(**(**int8)(__ccgo_up(s))) != int32('}') { + return int32(REG_EBRACE) + } + s = s + 1 + } + v14 = ctx + 24 + v16 = *(*int32)(unsafe.Pointer(v14)) + *(*int32)(unsafe.Pointer(v14)) = *(*int32)(unsafe.Pointer(v14)) + 1 + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, v, v, v16) + s = s - 1 + case int32('{'): + fallthrough + case int32('+'): + fallthrough + case int32('?'): + /* extension: treat \+, \? as repetitions in BRE */ + /* reject repetitions after empty expression in BRE */ + if !(ere != 0) { + return int32(REG_BADRPT) + } + fallthrough + case int32('|'): + /* extension: treat \| as alternation in BRE */ + if !(ere != 0) { + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(1), -int32(1), -int32(1)) + s = s - 1 + goto end + } + /* fallthrough */ + fallthrough + default: + if !(ere != 0) && Uint32FromInt8(**(**int8)(__ccgo_up(s)))-uint32('1') < uint32(9) { + /* back reference */ + val = int32(**(**int8)(__ccgo_up(s))) - int32('0') + v14 = ctx + 24 + v16 = *(*int32)(unsafe.Pointer(v14)) + *(*int32)(unsafe.Pointer(v14)) = *(*int32)(unsafe.Pointer(v14)) + 1 + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(4), val, v16) + if val >= (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmax_backref { + v16 = val + } else { + v16 = (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmax_backref + } + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmax_backref = v16 + } else { + /* extension: accept unknown escaped char + as a literal */ + goto parse_literal + } + } + s = s + 1 + goto _13 +_3: + ; + if (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fcflags&int32(REG_NEWLINE) != 0 { + v14 = ctx + 24 + v16 = *(*int32)(unsafe.Pointer(v14)) + *(*int32)(unsafe.Pointer(v14)) = *(*int32)(unsafe.Pointer(v14)) + 1 + tmp1 = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, 0, Int32FromUint8('\n')-Int32FromInt32(1), v16) + v14 = ctx + 24 + v16 = *(*int32)(unsafe.Pointer(v14)) + *(*int32)(unsafe.Pointer(v14)) = *(*int32)(unsafe.Pointer(v14)) + 1 + tmp2 = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, Int32FromUint8('\n')+Int32FromInt32(1), int32(TRE_CHAR_MAX), v16) + if tmp1 != 0 && tmp2 != 0 { + node = _tre_ast_new_union(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, tmp1, tmp2) + } else { + node = uintptr(0) + } + } else { + v14 = ctx + 24 + v16 = *(*int32)(unsafe.Pointer(v14)) + *(*int32)(unsafe.Pointer(v14)) = *(*int32)(unsafe.Pointer(v14)) + 1 + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, 0, int32(TRE_CHAR_MAX), v16) + } + s = s + 1 + goto _13 +_4: + ; + /* '^' has a special meaning everywhere in EREs, and at beginning of BRE. */ + if !(ere != 0) && s != (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fstart { + goto parse_literal + } + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(2), int32(ASSERT_AT_BOL), -int32(1)) + s = s + 1 + goto _13 +_5: + ; + /* '$' is special everywhere in EREs, and at the end of a BRE subexpression. */ + if !(ere != 0) && **(**int8)(__ccgo_up(s + 1)) != 0 && (int32(**(**int8)(__ccgo_up(s + 1))) != int32('\\') || int32(**(**int8)(__ccgo_up(s + 2))) != int32(')') && int32(**(**int8)(__ccgo_up(s + 2))) != int32('|')) { + goto parse_literal + } + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(2), int32(ASSERT_AT_EOL), -int32(1)) + s = s + 1 + goto _13 +_9: + ; +_8: + ; +_7: + ; +_6: + ; + /* reject repetitions after empty expression in ERE */ + if ere != 0 { + return int32(REG_BADRPT) + } +_10: + ; + if !(ere != 0) { + goto parse_literal + } +_11: + ; + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(1), -int32(1), -int32(1)) + goto _13 +_12: + ; + goto parse_literal +parse_literal: + ; + len1 = Xmbtowc(tls, bp, s, Uint32FromInt32(-Int32FromInt32(1))) + if len1 < 0 { + return int32(REG_BADPAT) + } + if (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fcflags&int32(REG_ICASE) != 0 && (Xiswupper(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp)))) != 0 || Xiswlower(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp)))) != 0) { + /* multiple opposite case characters are not supported */ + tmp11 = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, Int32FromUint32(Xtowupper(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp))))), Int32FromUint32(Xtowupper(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp))))), (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fposition) + tmp21 = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, Int32FromUint32(Xtowlower(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp))))), Int32FromUint32(Xtowlower(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp))))), (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fposition) + if tmp11 != 0 && tmp21 != 0 { + node = _tre_ast_new_union(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, tmp11, tmp21) + } else { + node = uintptr(0) + } + } else { + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, int32(**(**Twchar_t)(__ccgo_up(bp))), int32(**(**Twchar_t)(__ccgo_up(bp))), (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fposition) + } + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fposition = (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fposition + 1 + s = s + uintptr(len1) + goto _13 +_13: + ; + goto end +end: + ; + if !(node != 0) { + return int32(REG_ESPACE) + } + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fn = node + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fs = s + return REG_OK +} + +func _tre_parse(tls *TLS, ctx uintptr) (r Treg_errcode_t) { + bp := tls.Alloc(16) + defer tls.Free(16) + var c, depth, ere, subid, v2 int32 + var err, v1 Treg_errcode_t + var nbranch, nunion, s, stack, v8 uintptr + var _ /* max at bp+4 */ int32 + var _ /* min at bp+0 */ int32 + _, _, _, _, _, _, _, _, _, _, _, _ = c, depth, ere, err, nbranch, nunion, s, stack, subid, v1, v2, v8 + nbranch = uintptr(0) + nunion = uintptr(0) + ere = (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fcflags & int32(REG_EXTENDED) + s = (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fstart + subid = 0 + depth = 0 + stack = (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fstack + v2 = subid + subid = subid + 1 + v1 = _tre_stack_push_int(tls, stack, v2) + err = v1 + if v1 != REG_OK { + return err + } + for { + if !(ere != 0) && int32(**(**int8)(__ccgo_up(s))) == int32('\\') && int32(**(**int8)(__ccgo_up(s + 1))) == int32('(') || ere != 0 && int32(**(**int8)(__ccgo_up(s))) == int32('(') { + v1 = _tre_stack_push_voidptr(tls, stack, nunion) + err = v1 + if v1 != REG_OK { + return err + } + v1 = _tre_stack_push_voidptr(tls, stack, nbranch) + err = v1 + if v1 != REG_OK { + return err + } + v2 = subid + subid = subid + 1 + v1 = _tre_stack_push_int(tls, stack, v2) + err = v1 + if v1 != REG_OK { + return err + } + s = s + 1 + if !(ere != 0) { + s = s + 1 + } + depth = depth + 1 + v8 = UintptrFromInt32(0) + nunion = v8 + nbranch = v8 + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fstart = s + goto _3 + } + if !(ere != 0) && int32(**(**int8)(__ccgo_up(s))) == int32('\\') && int32(**(**int8)(__ccgo_up(s + 1))) == int32(')') || ere != 0 && int32(**(**int8)(__ccgo_up(s))) == int32(')') && depth != 0 { + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fn = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(1), -int32(1), -int32(1)) + if !((*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fn != 0) { + return int32(REG_ESPACE) + } + } else { + err = _parse_atom(tls, ctx, s) + if err != REG_OK { + return err + } + s = (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fs + } + goto parse_iter + parse_iter: + ; + for { + if int32(**(**int8)(__ccgo_up(s))) != int32('\\') && int32(**(**int8)(__ccgo_up(s))) != int32('*') { + if !(ere != 0) { + break + } + if int32(**(**int8)(__ccgo_up(s))) != int32('+') && int32(**(**int8)(__ccgo_up(s))) != int32('?') && int32(**(**int8)(__ccgo_up(s))) != int32('{') { + break + } + } + if int32(**(**int8)(__ccgo_up(s))) == int32('\\') && ere != 0 { + break + } + /* extension: treat \+, \? as repetitions in BRE */ + if int32(**(**int8)(__ccgo_up(s))) == int32('\\') && int32(**(**int8)(__ccgo_up(s + 1))) != int32('+') && int32(**(**int8)(__ccgo_up(s + 1))) != int32('?') && int32(**(**int8)(__ccgo_up(s + 1))) != int32('{') { + break + } + if int32(**(**int8)(__ccgo_up(s))) == int32('\\') { + s = s + 1 + } + /* handle ^* at the start of a BRE. */ + if !(ere != 0) && s == (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fstart+uintptr(1) && int32(**(**int8)(__ccgo_up(s + uintptr(-Int32FromInt32(1))))) == int32('^') { + break + } + /* extension: multiple consecutive *+?{,} is unspecified, + but (a+)+ has to be supported so accepting a++ makes + sense, note however that the RE_DUP_MAX limit can be + circumvented: (a{255}){255} uses a lot of memory.. */ + if int32(**(**int8)(__ccgo_up(s))) == int32('{') { + s = _parse_dup(tls, s+uintptr(1), ere, bp, bp+4) + if !(s != 0) { + return int32(REG_BADBR) + } + } else { + **(**int32)(__ccgo_up(bp)) = 0 + **(**int32)(__ccgo_up(bp + 4)) = -int32(1) + if int32(**(**int8)(__ccgo_up(s))) == int32('+') { + **(**int32)(__ccgo_up(bp)) = int32(1) + } + if int32(**(**int8)(__ccgo_up(s))) == int32('?') { + **(**int32)(__ccgo_up(bp + 4)) = int32(1) + } + s = s + 1 + } + if **(**int32)(__ccgo_up(bp + 4)) == 0 { + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fn = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(1), -int32(1), -int32(1)) + } else { + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fn = _tre_ast_new_iter(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fn, **(**int32)(__ccgo_up(bp)), **(**int32)(__ccgo_up(bp + 4)), 0) + } + if !((*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fn != 0) { + return int32(REG_ESPACE) + } + goto _9 + _9: + } + nbranch = _tre_ast_new_catenation(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, nbranch, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fn) + if ere != 0 && int32(**(**int8)(__ccgo_up(s))) == int32('|') || ere != 0 && int32(**(**int8)(__ccgo_up(s))) == int32(')') && depth != 0 || !(ere != 0) && int32(**(**int8)(__ccgo_up(s))) == int32('\\') && int32(**(**int8)(__ccgo_up(s + 1))) == int32(')') || !(ere != 0) && int32(**(**int8)(__ccgo_up(s))) == int32('\\') && int32(**(**int8)(__ccgo_up(s + 1))) == int32('|') || !(**(**int8)(__ccgo_up(s)) != 0) { + /* extension: empty branch is unspecified (), (|a), (a|) + here they are not rejected but match on empty string */ + c = int32(**(**int8)(__ccgo_up(s))) + nunion = _tre_ast_new_union(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, nunion, nbranch) + nbranch = uintptr(0) + if c == int32('\\') && int32(**(**int8)(__ccgo_up(s + 1))) == int32('|') { + s = s + uintptr(2) + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fstart = s + } else { + if c == int32('|') { + s = s + 1 + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fstart = s + } else { + if c == int32('\\') { + if !(depth != 0) { + return int32(REG_EPAREN) + } + s = s + uintptr(2) + } else { + if c == int32(')') { + s = s + 1 + } + } + depth = depth - 1 + err = _marksub(tls, ctx, nunion, _tre_stack_pop_int(tls, stack)) + if err != REG_OK { + return err + } + if !(c != 0) && depth < 0 { + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fsubmatch_id = subid + return REG_OK + } + if !(c != 0) || depth < 0 { + return int32(REG_EPAREN) + } + nbranch = _tre_stack_pop_voidptr(tls, stack) + nunion = _tre_stack_pop_voidptr(tls, stack) + goto parse_iter + } + } + } + goto _3 + _3: + } + return r +} + +/*********************************************************************** + from tre-compile.c +***********************************************************************/ + +/* + TODO: + - Fix tre_ast_to_tnfa() to recurse using a stack instead of recursive + function calls. +*/ + +/* + Algorithms to setup tags so that submatch addressing can be done. +*/ + +// C documentation +// +// /* Inserts a catenation node to the root of the tree given in `node'. +// As the left child a new tag with number `tag_id' to `node' is added, +// and the right child is the old root. */ +func _tre_add_tag_left(tls *TLS, mem Ttre_mem_t, node uintptr, tag_id int32) (r Treg_errcode_t) { + var c uintptr + _ = c + c = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint32(8)) + if c == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + (*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft = _tre_ast_new_literal(tls, mem, -int32(3), tag_id, -int32(1)) + if (*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + (*Ttre_catenation_t)(unsafe.Pointer(c)).Fright = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint32(32)) + if (*Ttre_catenation_t)(unsafe.Pointer(c)).Fright == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fright)).Fobj = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fright)).Ftype1 = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fright)).Fnullable = -int32(1) + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fright)).Fsubmatch_id = -int32(1) + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fright)).Ffirstpos = UintptrFromInt32(0) + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fright)).Flastpos = UintptrFromInt32(0) + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fright)).Fnum_tags = 0 + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fright)).Fnum_submatches = 0 + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj = c + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 = int32(_CATENATION) + return REG_OK +} + +// C documentation +// +// /* Inserts a catenation node to the root of the tree given in `node'. +// As the right child a new tag with number `tag_id' to `node' is added, +// and the left child is the old root. */ +func _tre_add_tag_right(tls *TLS, mem Ttre_mem_t, node uintptr, tag_id int32) (r Treg_errcode_t) { + var c uintptr + _ = c + c = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint32(8)) + if c == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + (*Ttre_catenation_t)(unsafe.Pointer(c)).Fright = _tre_ast_new_literal(tls, mem, -int32(3), tag_id, -int32(1)) + if (*Ttre_catenation_t)(unsafe.Pointer(c)).Fright == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + (*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint32(32)) + if (*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft)).Fobj = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft)).Ftype1 = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft)).Fnullable = -int32(1) + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft)).Fsubmatch_id = -int32(1) + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft)).Ffirstpos = UintptrFromInt32(0) + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft)).Flastpos = UintptrFromInt32(0) + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft)).Fnum_tags = 0 + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft)).Fnum_submatches = 0 + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj = c + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 = int32(_CATENATION) + return REG_OK +} + +type Ttre_addtags_symbol_t = int32 + +const _ADDTAGS_RECURSE = 0 +const _ADDTAGS_AFTER_ITERATION = 1 +const _ADDTAGS_AFTER_UNION_LEFT = 2 +const _ADDTAGS_AFTER_UNION_RIGHT = 3 +const _ADDTAGS_AFTER_CAT_LEFT = 4 +const _ADDTAGS_AFTER_CAT_RIGHT = 5 +const _ADDTAGS_SET_SUBMATCH_END = 6 + +type Ttre_tag_states_t = struct { + Ftag int32 + Fnext_tag int32 +} + +// C documentation +// +// /* Go through `regset' and set submatch data for submatches that are +// using this tag. */ +func _tre_purge_regset(tls *TLS, regset uintptr, tnfa uintptr, tag int32) { + var i, id, start int32 + _, _, _ = i, id, start + i = 0 + for { + if !(**(**int32)(__ccgo_up(regset + uintptr(i)*4)) >= 0) { + break + } + id = **(**int32)(__ccgo_up(regset + uintptr(i)*4)) / int32(2) + start = BoolInt32(!(**(**int32)(__ccgo_up(regset + uintptr(i)*4))%Int32FromInt32(2) != 0)) + if start != 0 { + (**(**Ttre_submatch_data_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fsubmatch_data + uintptr(id)*12))).Fso_tag = tag + } else { + (**(**Ttre_submatch_data_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fsubmatch_data + uintptr(id)*12))).Feo_tag = tag + } + goto _1 + _1: + ; + i = i + 1 + } + **(**int32)(__ccgo_up(regset)) = -int32(1) +} + +// C documentation +// +// /* Adds tags to appropriate locations in the parse tree in `tree', so that +// subexpressions marked for submatch addressing can be traced. */ +func _tre_add_tags(tls *TLS, mem Ttre_mem_t, stack uintptr, tree uintptr, tnfa uintptr) (r Treg_errcode_t) { + var added_tags, bottom, enter_tag, first_pass, i1, i2, i3, i4, i5, i6, i7, id, id1, left_tag, minimal, minimal_tag, new_tag, next_tag, num_minimals, num_tags, reserved_tag, right_tag, tag, tag_left, tag_right, v22 int32 + var cat, iter, left, left1, left2, lit, node, orig_regset, p, parents, regset, right, right1, right2, saved_states, uni uintptr + var direction Ttre_tag_direction_t + var i uint32 + var status Treg_errcode_t + var symbol Ttre_addtags_symbol_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = added_tags, bottom, cat, direction, enter_tag, first_pass, i, i1, i2, i3, i4, i5, i6, i7, id, id1, iter, left, left1, left2, left_tag, lit, minimal, minimal_tag, new_tag, next_tag, node, num_minimals, num_tags, orig_regset, p, parents, regset, reserved_tag, right, right1, right2, right_tag, saved_states, status, symbol, tag, tag_left, tag_right, uni, v22 + status = REG_OK + node = tree /* Tree node we are currently looking at. */ + bottom = _tre_stack_num_objects(tls, stack) + /* True for first pass (counting number of needed tags) */ + first_pass = BoolInt32(mem == UintptrFromInt32(0) || tnfa == UintptrFromInt32(0)) + num_tags = 0 /* Total number of tags. */ + num_minimals = 0 /* Number of special minimal tags. */ + tag = 0 /* The tag that is to be added next. */ + next_tag = int32(1) /* Stack of submatches the current submatch is + contained in. */ + minimal_tag = -int32(1) + direction = int32(_TRE_TAG_MINIMIZE) + if !(first_pass != 0) { + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fend_tag = 0 + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags)) = -int32(1) + } + regset = Xmalloc(tls, uint32(4)*(((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_submatches+uint32(1))*uint32(2))) + if regset == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + **(**int32)(__ccgo_up(regset)) = -int32(1) + orig_regset = regset + parents = Xmalloc(tls, uint32(4)*((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_submatches+uint32(1))) + if parents == UintptrFromInt32(0) { + Xfree(tls, regset) + return int32(REG_ESPACE) + } + **(**int32)(__ccgo_up(parents)) = -int32(1) + saved_states = Xmalloc(tls, uint32(8)*((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_submatches+uint32(1))) + if saved_states == UintptrFromInt32(0) { + Xfree(tls, regset) + Xfree(tls, parents) + return int32(REG_ESPACE) + } else { + i = uint32(0) + for { + if !(i <= (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_submatches) { + break + } + (**(**Ttre_tag_states_t)(__ccgo_up(saved_states + uintptr(i)*8))).Ftag = -int32(1) + goto _1 + _1: + ; + i = i + 1 + } + } + status = _tre_stack_push_voidptr(tls, stack, node) + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_RECURSE)) + for _tre_stack_num_objects(tls, stack) > bottom { + if status != REG_OK { + break + } + symbol = _tre_stack_pop_int(tls, stack) + switch symbol { + case int32(_ADDTAGS_SET_SUBMATCH_END): + goto _2 + case int32(_ADDTAGS_RECURSE): + goto _3 + case int32(_ADDTAGS_AFTER_ITERATION): + goto _4 + case int32(_ADDTAGS_AFTER_CAT_LEFT): + goto _5 + case int32(_ADDTAGS_AFTER_CAT_RIGHT): + goto _6 + case int32(_ADDTAGS_AFTER_UNION_LEFT): + goto _7 + case int32(_ADDTAGS_AFTER_UNION_RIGHT): + goto _8 + default: + goto _9 + } + goto _10 + _2: + ; + id = _tre_stack_pop_int(tls, stack) + /* Add end of this submatch to regset. */ + i1 = 0 + for { + if !(**(**int32)(__ccgo_up(regset + uintptr(i1)*4)) >= 0) { + break + } + goto _11 + _11: + ; + i1 = i1 + 1 + } + **(**int32)(__ccgo_up(regset + uintptr(i1)*4)) = id*int32(2) + int32(1) + **(**int32)(__ccgo_up(regset + uintptr(i1+int32(1))*4)) = -int32(1) + /* Pop this submatch from the parents stack. */ + i1 = 0 + for { + if !(**(**int32)(__ccgo_up(parents + uintptr(i1)*4)) >= 0) { + break + } + goto _12 + _12: + ; + i1 = i1 + 1 + } + **(**int32)(__ccgo_up(parents + uintptr(i1-int32(1))*4)) = -int32(1) + goto _10 + _3: + ; + node = _tre_stack_pop_voidptr(tls, stack) + if (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fsubmatch_id >= 0 { + id1 = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fsubmatch_id + /* Add start of this submatch to regset. */ + i2 = 0 + for { + if !(**(**int32)(__ccgo_up(regset + uintptr(i2)*4)) >= 0) { + break + } + goto _13 + _13: + ; + i2 = i2 + 1 + } + **(**int32)(__ccgo_up(regset + uintptr(i2)*4)) = id1 * int32(2) + **(**int32)(__ccgo_up(regset + uintptr(i2+int32(1))*4)) = -int32(1) + if !(first_pass != 0) { + i2 = 0 + for { + if !(**(**int32)(__ccgo_up(parents + uintptr(i2)*4)) >= 0) { + break + } + goto _14 + _14: + ; + i2 = i2 + 1 + } + (**(**Ttre_submatch_data_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fsubmatch_data + uintptr(id1)*12))).Fparents = UintptrFromInt32(0) + if i2 > 0 { + p = Xmalloc(tls, uint32(4)*Uint32FromInt32(i2+Int32FromInt32(1))) + if p == UintptrFromInt32(0) { + status = int32(REG_ESPACE) + goto _10 + } + (**(**Ttre_submatch_data_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fsubmatch_data + uintptr(id1)*12))).Fparents = p + i2 = 0 + for { + if !(**(**int32)(__ccgo_up(parents + uintptr(i2)*4)) >= 0) { + break + } + **(**int32)(__ccgo_up(p + uintptr(i2)*4)) = **(**int32)(__ccgo_up(parents + uintptr(i2)*4)) + goto _15 + _15: + ; + i2 = i2 + 1 + } + **(**int32)(__ccgo_up(p + uintptr(i2)*4)) = -int32(1) + } + } + /* Add end of this submatch to regset after processing this + node. */ + status = _tre_stack_push_int(tls, stack, (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fsubmatch_id) + if status != REG_OK { + goto _10 + } + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_SET_SUBMATCH_END)) + if status != REG_OK { + goto _10 + } + } + switch (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 { + case int32(_LITERAL): + lit = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + if !((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min < Int32FromInt32(0)) || (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min == -int32(4) { + if **(**int32)(__ccgo_up(regset)) >= 0 { + /* Regset is not empty, so add a tag before the + literal or backref. */ + if !(first_pass != 0) { + status = _tre_add_tag_left(tls, mem, node, tag) + **(**Ttre_tag_direction_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions + uintptr(tag)*4)) = direction + if minimal_tag >= 0 { + i3 = 0 + for { + if !(**(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i3)*4)) >= 0) { + break + } + goto _16 + _16: + ; + i3 = i3 + 1 + } + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i3)*4)) = tag + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i3+int32(1))*4)) = minimal_tag + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i3+int32(2))*4)) = -int32(1) + minimal_tag = -int32(1) + num_minimals = num_minimals + 1 + } + _tre_purge_regset(tls, regset, tnfa, tag) + } else { + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_tags = int32(1) + } + **(**int32)(__ccgo_up(regset)) = -int32(1) + tag = next_tag + num_tags = num_tags + 1 + next_tag = next_tag + 1 + } + } else { + } + case int32(_CATENATION): + cat = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + left = (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft + right = (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright + reserved_tag = -int32(1) + /* After processing right child. */ + status = _tre_stack_push_voidptr(tls, stack, node) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_AFTER_CAT_RIGHT)) + if status != REG_OK { + break + } + /* Process right child. */ + status = _tre_stack_push_voidptr(tls, stack, right) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_RECURSE)) + if status != REG_OK { + break + } + /* After processing left child. */ + status = _tre_stack_push_int(tls, stack, next_tag+(*Ttre_ast_node_t)(unsafe.Pointer(left)).Fnum_tags) + if status != REG_OK { + break + } + if (*Ttre_ast_node_t)(unsafe.Pointer(left)).Fnum_tags > 0 && (*Ttre_ast_node_t)(unsafe.Pointer(right)).Fnum_tags > 0 { + /* Reserve the next tag to the right child. */ + reserved_tag = next_tag + next_tag = next_tag + 1 + } + status = _tre_stack_push_int(tls, stack, reserved_tag) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_AFTER_CAT_LEFT)) + if status != REG_OK { + break + } + /* Process left child. */ + status = _tre_stack_push_voidptr(tls, stack, left) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_RECURSE)) + if status != REG_OK { + break + } + case int32(_ITERATION): + iter = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + if first_pass != 0 { + status = _tre_stack_push_int(tls, stack, BoolInt32(**(**int32)(__ccgo_up(regset)) >= 0 || int32(uint32(*(*uint8)(unsafe.Pointer(iter + 12))&0x1>>0)) != 0)) + if status != REG_OK { + break + } + } else { + status = _tre_stack_push_int(tls, stack, tag) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(uint32(*(*uint8)(unsafe.Pointer(iter + 12))&0x1>>0))) + if status != REG_OK { + break + } + } + status = _tre_stack_push_voidptr(tls, stack, node) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_AFTER_ITERATION)) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_RECURSE)) + if status != REG_OK { + break + } + /* Regset is not empty, so add a tag here. */ + if **(**int32)(__ccgo_up(regset)) >= 0 || int32(uint32(*(*uint8)(unsafe.Pointer(iter + 12))&0x1>>0)) != 0 { + if !(first_pass != 0) { + status = _tre_add_tag_left(tls, mem, node, tag) + if int32(uint32(*(*uint8)(unsafe.Pointer(iter + 12))&0x1>>0)) != 0 { + **(**Ttre_tag_direction_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions + uintptr(tag)*4)) = int32(_TRE_TAG_MAXIMIZE) + } else { + **(**Ttre_tag_direction_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions + uintptr(tag)*4)) = direction + } + if minimal_tag >= 0 { + i4 = 0 + for { + if !(**(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i4)*4)) >= 0) { + break + } + goto _17 + _17: + ; + i4 = i4 + 1 + } + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i4)*4)) = tag + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i4+int32(1))*4)) = minimal_tag + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i4+int32(2))*4)) = -int32(1) + minimal_tag = -int32(1) + num_minimals = num_minimals + 1 + } + _tre_purge_regset(tls, regset, tnfa, tag) + } + **(**int32)(__ccgo_up(regset)) = -int32(1) + tag = next_tag + num_tags = num_tags + 1 + next_tag = next_tag + 1 + } + direction = int32(_TRE_TAG_MINIMIZE) + case int32(_UNION): + uni = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + left1 = (*Ttre_union_t)(unsafe.Pointer(uni)).Fleft + right1 = (*Ttre_union_t)(unsafe.Pointer(uni)).Fright + if **(**int32)(__ccgo_up(regset)) >= 0 { + left_tag = next_tag + right_tag = next_tag + int32(1) + } else { + left_tag = tag + right_tag = next_tag + } + /* After processing right child. */ + status = _tre_stack_push_int(tls, stack, right_tag) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, left_tag) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, regset) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, BoolInt32(**(**int32)(__ccgo_up(regset)) >= 0)) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, node) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, right1) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, left1) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_AFTER_UNION_RIGHT)) + if status != REG_OK { + break + } + /* Process right child. */ + status = _tre_stack_push_voidptr(tls, stack, right1) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_RECURSE)) + if status != REG_OK { + break + } + /* After processing left child. */ + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_AFTER_UNION_LEFT)) + if status != REG_OK { + break + } + /* Process left child. */ + status = _tre_stack_push_voidptr(tls, stack, left1) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_RECURSE)) + if status != REG_OK { + break + } + /* Regset is not empty, so add a tag here. */ + if **(**int32)(__ccgo_up(regset)) >= 0 { + if !(first_pass != 0) { + status = _tre_add_tag_left(tls, mem, node, tag) + **(**Ttre_tag_direction_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions + uintptr(tag)*4)) = direction + if minimal_tag >= 0 { + i5 = 0 + for { + if !(**(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i5)*4)) >= 0) { + break + } + goto _18 + _18: + ; + i5 = i5 + 1 + } + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i5)*4)) = tag + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i5+int32(1))*4)) = minimal_tag + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i5+int32(2))*4)) = -int32(1) + minimal_tag = -int32(1) + num_minimals = num_minimals + 1 + } + _tre_purge_regset(tls, regset, tnfa, tag) + } + **(**int32)(__ccgo_up(regset)) = -int32(1) + tag = next_tag + num_tags = num_tags + 1 + next_tag = next_tag + 1 + } + if (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_submatches > 0 { + /* The next two tags are reserved for markers. */ + next_tag = next_tag + 1 + tag = next_tag + next_tag = next_tag + 1 + } + break + } + if (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fsubmatch_id >= 0 { + /* Push this submatch on the parents stack. */ + i6 = 0 + for { + if !(**(**int32)(__ccgo_up(parents + uintptr(i6)*4)) >= 0) { + break + } + goto _19 + _19: + ; + i6 = i6 + 1 + } + **(**int32)(__ccgo_up(parents + uintptr(i6)*4)) = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fsubmatch_id + **(**int32)(__ccgo_up(parents + uintptr(i6+int32(1))*4)) = -int32(1) + } + goto _10 /* end case: ADDTAGS_RECURSE */ + _4: + ; + minimal = 0 + node = _tre_stack_pop_voidptr(tls, stack) + if first_pass != 0 { + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_tags = (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_iteration_t)(unsafe.Pointer((*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj)).Farg)).Fnum_tags + _tre_stack_pop_int(tls, stack) + minimal_tag = -int32(1) + } else { + minimal = _tre_stack_pop_int(tls, stack) + enter_tag = _tre_stack_pop_int(tls, stack) + if minimal != 0 { + minimal_tag = enter_tag + } + } + if !(first_pass != 0) { + if minimal != 0 { + direction = int32(_TRE_TAG_MINIMIZE) + } else { + direction = int32(_TRE_TAG_MAXIMIZE) + } + } + goto _10 + _5: + ; + new_tag = _tre_stack_pop_int(tls, stack) + next_tag = _tre_stack_pop_int(tls, stack) + if new_tag >= 0 { + tag = new_tag + } + goto _10 + _6: + ; + node = _tre_stack_pop_voidptr(tls, stack) + if first_pass != 0 { + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_tags = (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer((*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj)).Fleft)).Fnum_tags + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer((*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj)).Fright)).Fnum_tags + } + goto _10 + _7: + ; + /* Lift the bottom of the `regset' array so that when processing + the right operand the items currently in the array are + invisible. The original bottom was saved at ADDTAGS_UNION and + will be restored at ADDTAGS_AFTER_UNION_RIGHT below. */ + _21: + ; + if !(**(**int32)(__ccgo_up(regset)) >= 0) { + goto _20 + } + regset += 4 + goto _21 + _20: + ; + goto _10 + _8: + ; + left2 = _tre_stack_pop_voidptr(tls, stack) + right2 = _tre_stack_pop_voidptr(tls, stack) + node = _tre_stack_pop_voidptr(tls, stack) + added_tags = _tre_stack_pop_int(tls, stack) + if first_pass != 0 { + if (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_submatches > 0 { + v22 = int32(2) + } else { + v22 = 0 + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_tags = (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_union_t)(unsafe.Pointer((*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj)).Fleft)).Fnum_tags + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_union_t)(unsafe.Pointer((*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj)).Fright)).Fnum_tags + added_tags + v22 + } + regset = _tre_stack_pop_voidptr(tls, stack) + tag_left = _tre_stack_pop_int(tls, stack) + tag_right = _tre_stack_pop_int(tls, stack) + /* Add tags after both children, the left child gets a smaller + tag than the right child. This guarantees that we prefer + the left child over the right child. */ + /* XXX - This is not always necessary (if the children have + tags which must be seen for every match of that child). */ + /* XXX - Check if this is the only place where tre_add_tag_right + is used. If so, use tre_add_tag_left (putting the tag before + the child as opposed after the child) and throw away + tre_add_tag_right. */ + if (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_submatches > 0 { + if !(first_pass != 0) { + status = _tre_add_tag_right(tls, mem, left2, tag_left) + **(**Ttre_tag_direction_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions + uintptr(tag_left)*4)) = int32(_TRE_TAG_MAXIMIZE) + if status == REG_OK { + status = _tre_add_tag_right(tls, mem, right2, tag_right) + } + **(**Ttre_tag_direction_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions + uintptr(tag_right)*4)) = int32(_TRE_TAG_MAXIMIZE) + } + num_tags = num_tags + int32(2) + } + direction = int32(_TRE_TAG_MAXIMIZE) + goto _10 + _9: + ; + goto _10 + _10: + /* end switch(symbol) */ + } /* end while(tre_stack_num_objects(stack) > bottom) */ + if !(first_pass != 0) { + _tre_purge_regset(tls, regset, tnfa, tag) + } + if !(first_pass != 0) && minimal_tag >= 0 { + i7 = 0 + for { + if !(**(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i7)*4)) >= 0) { + break + } + goto _23 + _23: + ; + i7 = i7 + 1 + } + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i7)*4)) = tag + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i7+int32(1))*4)) = minimal_tag + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i7+int32(2))*4)) = -int32(1) + minimal_tag = -int32(1) + num_minimals = num_minimals + 1 + } + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fend_tag = num_tags + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags = num_tags + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_minimals = num_minimals + Xfree(tls, orig_regset) + Xfree(tls, parents) + Xfree(tls, saved_states) + return status +} + +/* + AST to TNFA compilation routines. +*/ + +type Ttre_copyast_symbol_t = int32 + +const _COPY_RECURSE = 0 +const _COPY_SET_RESULT_PTR = 1 + +/* Flags for tre_copy_ast(). */ + +func _tre_copy_ast(tls *TLS, mem Ttre_mem_t, stack uintptr, ast uintptr, flags int32, pos_add uintptr, tag_directions uintptr, copy1 uintptr, max_pos uintptr) (r Treg_errcode_t) { + var bottom, first_tag, max, min, num_copied, pos, v1 int32 + var cat, iter, lit, node, p, result, tmp, tmp1, uni uintptr + var status Treg_errcode_t + var symbol Ttre_copyast_symbol_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = bottom, cat, first_tag, iter, lit, max, min, node, num_copied, p, pos, result, status, symbol, tmp, tmp1, uni, v1 + status = REG_OK + bottom = _tre_stack_num_objects(tls, stack) + num_copied = 0 + first_tag = int32(1) + result = copy1 + status = _tre_stack_push_voidptr(tls, stack, ast) + status = _tre_stack_push_int(tls, stack, int32(_COPY_RECURSE)) + for status == REG_OK && _tre_stack_num_objects(tls, stack) > bottom { + if status != REG_OK { + break + } + symbol = _tre_stack_pop_int(tls, stack) + switch symbol { + case int32(_COPY_SET_RESULT_PTR): + result = _tre_stack_pop_voidptr(tls, stack) + case int32(_COPY_RECURSE): + node = _tre_stack_pop_voidptr(tls, stack) + switch (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 { + case int32(_LITERAL): + lit = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + pos = (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition + min = (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min + max = (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max + if !((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min < Int32FromInt32(0)) || (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min == -int32(4) { + /* XXX - e.g. [ab] has only one position but two + nodes, so we are creating holes in the state space + here. Not fatal, just wastes memory. */ + pos = pos + **(**int32)(__ccgo_up(pos_add)) + num_copied = num_copied + 1 + } else { + if (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min == -int32(3) && flags&int32(COPY_REMOVE_TAGS) != 0 { + /* Change this tag to empty. */ + min = -int32(1) + v1 = -Int32FromInt32(1) + pos = v1 + max = v1 + } else { + if (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min == -int32(3) && flags&int32(COPY_MAXIMIZE_FIRST_TAG) != 0 && first_tag != 0 { + /* Maximize the first tag. */ + **(**Ttre_tag_direction_t)(__ccgo_up(tag_directions + uintptr(max)*4)) = int32(_TRE_TAG_MAXIMIZE) + first_tag = 0 + } + } + } + **(**uintptr)(__ccgo_up(result)) = _tre_ast_new_literal(tls, mem, min, max, pos) + if **(**uintptr)(__ccgo_up(result)) == UintptrFromInt32(0) { + status = int32(REG_ESPACE) + } else { + p = (*Ttre_ast_node_t)(unsafe.Pointer(**(**uintptr)(__ccgo_up(result)))).Fobj + (*Ttre_literal_t)(unsafe.Pointer(p)).Fclass = (*Ttre_literal_t)(unsafe.Pointer(lit)).Fclass + (*Ttre_literal_t)(unsafe.Pointer(p)).Fneg_classes = (*Ttre_literal_t)(unsafe.Pointer(lit)).Fneg_classes + } + if pos > **(**int32)(__ccgo_up(max_pos)) { + **(**int32)(__ccgo_up(max_pos)) = pos + } + case int32(_UNION): + uni = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + **(**uintptr)(__ccgo_up(result)) = _tre_ast_new_union(tls, mem, (*Ttre_union_t)(unsafe.Pointer(uni)).Fleft, (*Ttre_union_t)(unsafe.Pointer(uni)).Fright) + if **(**uintptr)(__ccgo_up(result)) == UintptrFromInt32(0) { + status = int32(REG_ESPACE) + break + } + tmp = (*Ttre_ast_node_t)(unsafe.Pointer(**(**uintptr)(__ccgo_up(result)))).Fobj + result = tmp + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_union_t)(unsafe.Pointer(uni)).Fright) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_COPY_RECURSE)) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, tmp+4) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_COPY_SET_RESULT_PTR)) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_union_t)(unsafe.Pointer(uni)).Fleft) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_COPY_RECURSE)) + if status != REG_OK { + break + } + case int32(_CATENATION): + cat = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + **(**uintptr)(__ccgo_up(result)) = _tre_ast_new_catenation(tls, mem, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright) + if **(**uintptr)(__ccgo_up(result)) == UintptrFromInt32(0) { + status = int32(REG_ESPACE) + break + } + tmp1 = (*Ttre_ast_node_t)(unsafe.Pointer(**(**uintptr)(__ccgo_up(result)))).Fobj + (*Ttre_catenation_t)(unsafe.Pointer(tmp1)).Fleft = UintptrFromInt32(0) + (*Ttre_catenation_t)(unsafe.Pointer(tmp1)).Fright = UintptrFromInt32(0) + result = tmp1 + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_COPY_RECURSE)) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, tmp1+4) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_COPY_SET_RESULT_PTR)) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_COPY_RECURSE)) + if status != REG_OK { + break + } + case int32(_ITERATION): + iter = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_COPY_RECURSE)) + if status != REG_OK { + break + } + **(**uintptr)(__ccgo_up(result)) = _tre_ast_new_iter(tls, mem, (*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg, (*Ttre_iteration_t)(unsafe.Pointer(iter)).Fmin, (*Ttre_iteration_t)(unsafe.Pointer(iter)).Fmax, int32(uint32(*(*uint8)(unsafe.Pointer(iter + 12))&0x1>>0))) + if **(**uintptr)(__ccgo_up(result)) == UintptrFromInt32(0) { + status = int32(REG_ESPACE) + break + } + iter = (*Ttre_ast_node_t)(unsafe.Pointer(**(**uintptr)(__ccgo_up(result)))).Fobj + result = iter + default: + break + } + break + } + } + **(**int32)(__ccgo_up(pos_add)) += num_copied + return status +} + +type Ttre_expand_ast_symbol_t = int32 + +const _EXPAND_RECURSE = 0 +const _EXPAND_AFTER_ITER = 1 + +// C documentation +// +// /* Expands each iteration node that has a finite nonzero minimum or maximum +// iteration count to a catenated sequence of copies of the node. */ +func _tre_expand_ast(tls *TLS, mem Ttre_mem_t, stack uintptr, ast uintptr, position uintptr, tag_directions uintptr) (r Treg_errcode_t) { + bp := tls.Alloc(32) + defer tls.Free(32) + var _status, _status1, status Treg_errcode_t + var bottom, flags, iter_depth, j, pos_add_last, pos_add_save, pos_add_total, v2 int32 + var cat, iter, iter1, lit, node, seq1, tmp, uni uintptr + var symbol Ttre_expand_ast_symbol_t + var _ /* copy at bp+12 */ uintptr + var _ /* copy at bp+16 */ uintptr + var _ /* max_pos at bp+4 */ int32 + var _ /* pos_add at bp+0 */ int32 + var _ /* seq2 at bp+8 */ uintptr + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = _status, _status1, bottom, cat, flags, iter, iter1, iter_depth, j, lit, node, pos_add_last, pos_add_save, pos_add_total, seq1, status, symbol, tmp, uni, v2 + status = REG_OK + bottom = _tre_stack_num_objects(tls, stack) + **(**int32)(__ccgo_up(bp)) = 0 + pos_add_total = 0 + **(**int32)(__ccgo_up(bp + 4)) = 0 + iter_depth = 0 + _status = _tre_stack_push_voidptr(tls, stack, ast) + if _status != REG_OK { + return _status + } + _status1 = _tre_stack_push_int(tls, stack, int32(_EXPAND_RECURSE)) + if _status1 != REG_OK { + return _status1 + } + for status == REG_OK && _tre_stack_num_objects(tls, stack) > bottom { + if status != REG_OK { + break + } + symbol = _tre_stack_pop_int(tls, stack) + node = _tre_stack_pop_voidptr(tls, stack) + switch symbol { + case int32(_EXPAND_RECURSE): + switch (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 { + case int32(_LITERAL): + lit = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + if !((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min < Int32FromInt32(0)) || (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min == -int32(4) { + **(**int32)(__ccgo_up(lit + 8)) += **(**int32)(__ccgo_up(bp)) + if (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition > **(**int32)(__ccgo_up(bp + 4)) { + **(**int32)(__ccgo_up(bp + 4)) = (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition + } + } + case int32(_UNION): + uni = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_union_t)(unsafe.Pointer(uni)).Fright) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_EXPAND_RECURSE)) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_union_t)(unsafe.Pointer(uni)).Fleft) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_EXPAND_RECURSE)) + if status != REG_OK { + break + } + case int32(_CATENATION): + cat = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_EXPAND_RECURSE)) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_EXPAND_RECURSE)) + if status != REG_OK { + break + } + case int32(_ITERATION): + iter = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + status = _tre_stack_push_int(tls, stack, **(**int32)(__ccgo_up(bp))) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, node) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_EXPAND_AFTER_ITER)) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_EXPAND_RECURSE)) + if status != REG_OK { + break + } + /* If we are going to expand this node at EXPAND_AFTER_ITER + then don't increase the `pos' fields of the nodes now, it + will get done when expanding. */ + if (*Ttre_iteration_t)(unsafe.Pointer(iter)).Fmin > int32(1) || (*Ttre_iteration_t)(unsafe.Pointer(iter)).Fmax > int32(1) { + **(**int32)(__ccgo_up(bp)) = 0 + } + iter_depth = iter_depth + 1 + default: + break + } + case int32(_EXPAND_AFTER_ITER): + iter1 = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + **(**int32)(__ccgo_up(bp)) = _tre_stack_pop_int(tls, stack) + pos_add_last = **(**int32)(__ccgo_up(bp)) + if (*Ttre_iteration_t)(unsafe.Pointer(iter1)).Fmin > int32(1) || (*Ttre_iteration_t)(unsafe.Pointer(iter1)).Fmax > int32(1) { + seq1 = UintptrFromInt32(0) + **(**uintptr)(__ccgo_up(bp + 8)) = UintptrFromInt32(0) + pos_add_save = **(**int32)(__ccgo_up(bp)) + /* Create a catenated sequence of copies of the node. */ + j = 0 + for { + if !(j < (*Ttre_iteration_t)(unsafe.Pointer(iter1)).Fmin) { + break + } + if j+int32(1) < (*Ttre_iteration_t)(unsafe.Pointer(iter1)).Fmin { + v2 = int32(COPY_REMOVE_TAGS) + } else { + v2 = int32(COPY_MAXIMIZE_FIRST_TAG) + } + /* Remove tags from all but the last copy. */ + flags = v2 + pos_add_save = **(**int32)(__ccgo_up(bp)) + status = _tre_copy_ast(tls, mem, stack, (*Ttre_iteration_t)(unsafe.Pointer(iter1)).Farg, flags, bp, tag_directions, bp+12, bp+4) + if status != REG_OK { + return status + } + if seq1 != UintptrFromInt32(0) { + seq1 = _tre_ast_new_catenation(tls, mem, seq1, **(**uintptr)(__ccgo_up(bp + 12))) + } else { + seq1 = **(**uintptr)(__ccgo_up(bp + 12)) + } + if seq1 == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + goto _1 + _1: + ; + j = j + 1 + } + if (*Ttre_iteration_t)(unsafe.Pointer(iter1)).Fmax == -int32(1) { + /* No upper limit. */ + pos_add_save = **(**int32)(__ccgo_up(bp)) + status = _tre_copy_ast(tls, mem, stack, (*Ttre_iteration_t)(unsafe.Pointer(iter1)).Farg, 0, bp, UintptrFromInt32(0), bp+8, bp+4) + if status != REG_OK { + return status + } + **(**uintptr)(__ccgo_up(bp + 8)) = _tre_ast_new_iter(tls, mem, **(**uintptr)(__ccgo_up(bp + 8)), 0, -int32(1), 0) + if **(**uintptr)(__ccgo_up(bp + 8)) == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + } else { + j = (*Ttre_iteration_t)(unsafe.Pointer(iter1)).Fmin + for { + if !(j < (*Ttre_iteration_t)(unsafe.Pointer(iter1)).Fmax) { + break + } + pos_add_save = **(**int32)(__ccgo_up(bp)) + status = _tre_copy_ast(tls, mem, stack, (*Ttre_iteration_t)(unsafe.Pointer(iter1)).Farg, 0, bp, UintptrFromInt32(0), bp+16, bp+4) + if status != REG_OK { + return status + } + if **(**uintptr)(__ccgo_up(bp + 8)) != UintptrFromInt32(0) { + **(**uintptr)(__ccgo_up(bp + 8)) = _tre_ast_new_catenation(tls, mem, **(**uintptr)(__ccgo_up(bp + 16)), **(**uintptr)(__ccgo_up(bp + 8))) + } else { + **(**uintptr)(__ccgo_up(bp + 8)) = **(**uintptr)(__ccgo_up(bp + 16)) + } + if **(**uintptr)(__ccgo_up(bp + 8)) == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + tmp = _tre_ast_new_literal(tls, mem, -int32(1), -int32(1), -int32(1)) + if tmp == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + **(**uintptr)(__ccgo_up(bp + 8)) = _tre_ast_new_union(tls, mem, tmp, **(**uintptr)(__ccgo_up(bp + 8))) + if **(**uintptr)(__ccgo_up(bp + 8)) == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + goto _3 + _3: + ; + j = j + 1 + } + } + **(**int32)(__ccgo_up(bp)) = pos_add_save + if seq1 == UintptrFromInt32(0) { + seq1 = **(**uintptr)(__ccgo_up(bp + 8)) + } else { + if **(**uintptr)(__ccgo_up(bp + 8)) != UintptrFromInt32(0) { + seq1 = _tre_ast_new_catenation(tls, mem, seq1, **(**uintptr)(__ccgo_up(bp + 8))) + } + } + if seq1 == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj = (*Ttre_ast_node_t)(unsafe.Pointer(seq1)).Fobj + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 = (*Ttre_ast_node_t)(unsafe.Pointer(seq1)).Ftype1 + } + iter_depth = iter_depth - 1 + pos_add_total = pos_add_total + (**(**int32)(__ccgo_up(bp)) - pos_add_last) + if iter_depth == 0 { + **(**int32)(__ccgo_up(bp)) = pos_add_total + } + default: + break + } + } + **(**int32)(__ccgo_up(position)) += pos_add_total + /* `max_pos' should never be larger than `*position' if the above + code works, but just an extra safeguard let's make sure + `*position' is set large enough so enough memory will be + allocated for the transition table. */ + if **(**int32)(__ccgo_up(bp + 4)) > **(**int32)(__ccgo_up(position)) { + **(**int32)(__ccgo_up(position)) = **(**int32)(__ccgo_up(bp + 4)) + } + return status +} + +func _tre_set_empty(tls *TLS, mem Ttre_mem_t) (r uintptr) { + var new_set uintptr + _ = new_set + new_set = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), int32(1), uint32(32)) + if new_set == UintptrFromInt32(0) { + return UintptrFromInt32(0) + } + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set))).Fposition = -int32(1) + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set))).Fcode_min = -int32(1) + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set))).Fcode_max = -int32(1) + return new_set +} + +func _tre_set_one(tls *TLS, mem Ttre_mem_t, position int32, code_min int32, code_max int32, class Ttre_ctype_t, neg_classes uintptr, backref int32) (r uintptr) { + var new_set uintptr + _ = new_set + new_set = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), int32(1), Uint32FromInt64(32)*Uint32FromInt32(2)) + if new_set == UintptrFromInt32(0) { + return UintptrFromInt32(0) + } + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set))).Fposition = position + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set))).Fcode_min = code_min + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set))).Fcode_max = code_max + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set))).Fclass = class + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set))).Fneg_classes = neg_classes + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set))).Fbackref = backref + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + 1*32))).Fposition = -int32(1) + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + 1*32))).Fcode_min = -int32(1) + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + 1*32))).Fcode_max = -int32(1) + return new_set +} + +func _tre_set_union(tls *TLS, mem Ttre_mem_t, set1 uintptr, set2 uintptr, tags uintptr, assertions int32) (r uintptr) { + var i, j, num_tags, s1, s2 int32 + var new_set, new_tags uintptr + _, _, _, _, _, _, _ = i, j, new_set, new_tags, num_tags, s1, s2 + num_tags = 0 + for { + if !(tags != UintptrFromInt32(0) && **(**int32)(__ccgo_up(tags + uintptr(num_tags)*4)) >= 0) { + break + } + goto _1 + _1: + ; + num_tags = num_tags + 1 + } + s1 = 0 + for { + if !((**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*32))).Fposition >= 0) { + break + } + goto _2 + _2: + ; + s1 = s1 + 1 + } + s2 = 0 + for { + if !((**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*32))).Fposition >= 0) { + break + } + goto _3 + _3: + ; + s2 = s2 + 1 + } + new_set = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), int32(1), uint32(32)*Uint32FromInt32(s1+s2+Int32FromInt32(1))) + if !(new_set != 0) { + return UintptrFromInt32(0) + } + s1 = 0 + for { + if !((**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*32))).Fposition >= 0) { + break + } + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1)*32))).Fposition = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*32))).Fposition + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1)*32))).Fcode_min = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*32))).Fcode_min + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1)*32))).Fcode_max = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*32))).Fcode_max + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1)*32))).Fassertions = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*32))).Fassertions | assertions + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1)*32))).Fclass = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*32))).Fclass + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1)*32))).Fneg_classes = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*32))).Fneg_classes + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1)*32))).Fbackref = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*32))).Fbackref + if (**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*32))).Ftags == UintptrFromInt32(0) && tags == UintptrFromInt32(0) { + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1)*32))).Ftags = UintptrFromInt32(0) + } else { + i = 0 + for { + if !((**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*32))).Ftags != UintptrFromInt32(0) && **(**int32)(__ccgo_up((**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*32))).Ftags + uintptr(i)*4)) >= 0) { + break + } + goto _5 + _5: + ; + i = i + 1 + } + new_tags = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, Uint32FromInt64(4)*Uint32FromInt32(i+num_tags+Int32FromInt32(1))) + if new_tags == UintptrFromInt32(0) { + return UintptrFromInt32(0) + } + j = 0 + for { + if !(j < i) { + break + } + **(**int32)(__ccgo_up(new_tags + uintptr(j)*4)) = **(**int32)(__ccgo_up((**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*32))).Ftags + uintptr(j)*4)) + goto _6 + _6: + ; + j = j + 1 + } + i = 0 + for { + if !(i < num_tags) { + break + } + **(**int32)(__ccgo_up(new_tags + uintptr(j+i)*4)) = **(**int32)(__ccgo_up(tags + uintptr(i)*4)) + goto _7 + _7: + ; + i = i + 1 + } + **(**int32)(__ccgo_up(new_tags + uintptr(j+i)*4)) = -int32(1) + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1)*32))).Ftags = new_tags + } + goto _4 + _4: + ; + s1 = s1 + 1 + } + s2 = 0 + for { + if !((**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*32))).Fposition >= 0) { + break + } + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1+s2)*32))).Fposition = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*32))).Fposition + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1+s2)*32))).Fcode_min = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*32))).Fcode_min + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1+s2)*32))).Fcode_max = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*32))).Fcode_max + /* XXX - why not | assertions here as well? */ + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1+s2)*32))).Fassertions = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*32))).Fassertions + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1+s2)*32))).Fclass = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*32))).Fclass + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1+s2)*32))).Fneg_classes = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*32))).Fneg_classes + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1+s2)*32))).Fbackref = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*32))).Fbackref + if (**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*32))).Ftags == UintptrFromInt32(0) { + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1+s2)*32))).Ftags = UintptrFromInt32(0) + } else { + i = 0 + for { + if !(**(**int32)(__ccgo_up((**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*32))).Ftags + uintptr(i)*4)) >= 0) { + break + } + goto _9 + _9: + ; + i = i + 1 + } + new_tags = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint32(4)*Uint32FromInt32(i+Int32FromInt32(1))) + if new_tags == UintptrFromInt32(0) { + return UintptrFromInt32(0) + } + j = 0 + for { + if !(j < i) { + break + } + **(**int32)(__ccgo_up(new_tags + uintptr(j)*4)) = **(**int32)(__ccgo_up((**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*32))).Ftags + uintptr(j)*4)) + goto _10 + _10: + ; + j = j + 1 + } + **(**int32)(__ccgo_up(new_tags + uintptr(j)*4)) = -int32(1) + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1+s2)*32))).Ftags = new_tags + } + goto _8 + _8: + ; + s2 = s2 + 1 + } + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1+s2)*32))).Fposition = -int32(1) + return new_set +} + +// C documentation +// +// /* Finds the empty path through `node' which is the one that should be +// taken according to POSIX.2 rules, and adds the tags on that path to +// `tags'. `tags' may be NULL. If `num_tags_seen' is not NULL, it is +// set to the number of tags seen on the path. */ +func _tre_match_empty(tls *TLS, stack uintptr, node uintptr, tags uintptr, assertions uintptr, num_tags_seen uintptr) (r Treg_errcode_t) { + var bottom, i int32 + var cat, iter, lit, uni, v2 uintptr + var status Treg_errcode_t + _, _, _, _, _, _, _, _ = bottom, cat, i, iter, lit, status, uni, v2 + bottom = _tre_stack_num_objects(tls, stack) + status = REG_OK + if num_tags_seen != 0 { + **(**int32)(__ccgo_up(num_tags_seen)) = 0 + } + status = _tre_stack_push_voidptr(tls, stack, node) + /* Walk through the tree recursively. */ + for status == REG_OK && _tre_stack_num_objects(tls, stack) > bottom { + node = _tre_stack_pop_voidptr(tls, stack) + switch (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 { + case int32(_LITERAL): + lit = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + switch (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min { + case -int32(3): + if (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max >= 0 { + if tags != UintptrFromInt32(0) { + /* Add the tag to `tags'. */ + i = 0 + for { + if !(**(**int32)(__ccgo_up(tags + uintptr(i)*4)) >= 0) { + break + } + if int32(**(**int32)(__ccgo_up(tags + uintptr(i)*4))) == (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max { + break + } + goto _1 + _1: + ; + i = i + 1 + } + if **(**int32)(__ccgo_up(tags + uintptr(i)*4)) < 0 { + **(**int32)(__ccgo_up(tags + uintptr(i)*4)) = (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max + **(**int32)(__ccgo_up(tags + uintptr(i+int32(1))*4)) = -int32(1) + } + } + if num_tags_seen != 0 { + **(**int32)(__ccgo_up(num_tags_seen)) = **(**int32)(__ccgo_up(num_tags_seen)) + 1 + } + } + case -int32(2): + if assertions != UintptrFromInt32(0) { + v2 = assertions + *(*int32)(unsafe.Pointer(v2)) = *(*int32)(unsafe.Pointer(v2)) | (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max + } + case -int32(1): + default: + break + } + case int32(_UNION): + /* Subexpressions starting earlier take priority over ones + starting later, so we prefer the left subexpression over the + right subexpression. */ + uni = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + if (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_union_t)(unsafe.Pointer(uni)).Fleft)).Fnullable != 0 { + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_union_t)(unsafe.Pointer(uni)).Fleft) + if status != REG_OK { + break + } + } else { + if (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_union_t)(unsafe.Pointer(uni)).Fright)).Fnullable != 0 { + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_union_t)(unsafe.Pointer(uni)).Fright) + if status != REG_OK { + break + } + } else { + } + } + case int32(_CATENATION): + /* The path must go through both children. */ + cat = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright) + if status != REG_OK { + break + } + case int32(_ITERATION): + /* A match with an empty string is preferred over no match at + all, so we go through the argument if possible. */ + iter = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + if (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg)).Fnullable != 0 { + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg) + if status != REG_OK { + break + } + } + default: + break + } + } + return status +} + +type Ttre_nfl_stack_symbol_t = int32 + +const _NFL_RECURSE = 0 +const _NFL_POST_UNION = 1 +const _NFL_POST_CATENATION = 2 +const _NFL_POST_ITERATION = 3 + +// C documentation +// +// /* Computes and fills in the fields `nullable', `firstpos', and `lastpos' for +// the nodes of the AST `tree'. */ +func _tre_compute_nfl(tls *TLS, mem Ttre_mem_t, stack uintptr, tree uintptr) (r Treg_errcode_t) { + bp := tls.Alloc(16) + defer tls.Free(16) + var _status, _status1, _status10, _status11, _status12, _status13, _status14, _status15, _status16, _status17, _status2, _status3, _status4, _status5, _status6, _status7, _status8, _status9, status Treg_errcode_t + var bottom int32 + var cat, iter, lit, node, tags, uni uintptr + var symbol Ttre_nfl_stack_symbol_t + var _ /* assertions at bp+4 */ int32 + var _ /* num_tags at bp+0 */ int32 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = _status, _status1, _status10, _status11, _status12, _status13, _status14, _status15, _status16, _status17, _status2, _status3, _status4, _status5, _status6, _status7, _status8, _status9, bottom, cat, iter, lit, node, status, symbol, tags, uni + bottom = _tre_stack_num_objects(tls, stack) + _status = _tre_stack_push_voidptr(tls, stack, tree) + if _status != REG_OK { + return _status + } + _status1 = _tre_stack_push_int(tls, stack, int32(_NFL_RECURSE)) + if _status1 != REG_OK { + return _status1 + } + for _tre_stack_num_objects(tls, stack) > bottom { + symbol = _tre_stack_pop_int(tls, stack) + node = _tre_stack_pop_voidptr(tls, stack) + switch symbol { + case int32(_NFL_RECURSE): + switch (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 { + case int32(_LITERAL): + lit = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + if (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min == -int32(4) { + /* Back references: nullable = false, firstpos = {i}, + lastpos = {i}. */ + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnullable = 0 + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos = _tre_set_one(tls, mem, (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition, 0, int32(TRE_CHAR_MAX), uint32(0), UintptrFromInt32(0), -int32(1)) + if !((*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos != 0) { + return int32(REG_ESPACE) + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos = _tre_set_one(tls, mem, (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition, 0, int32(TRE_CHAR_MAX), uint32(0), UintptrFromInt32(0), (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max) + if !((*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos != 0) { + return int32(REG_ESPACE) + } + } else { + if (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min < 0 { + /* Tags, empty strings, params, and zero width assertions: + nullable = true, firstpos = {}, and lastpos = {}. */ + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnullable = int32(1) + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos = _tre_set_empty(tls, mem) + if !((*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos != 0) { + return int32(REG_ESPACE) + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos = _tre_set_empty(tls, mem) + if !((*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos != 0) { + return int32(REG_ESPACE) + } + } else { + /* Literal at position i: nullable = false, firstpos = {i}, + lastpos = {i}. */ + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnullable = 0 + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos = _tre_set_one(tls, mem, (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition, (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min, (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max, uint32(0), UintptrFromInt32(0), -int32(1)) + if !((*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos != 0) { + return int32(REG_ESPACE) + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos = _tre_set_one(tls, mem, (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition, (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min, (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max, (*Ttre_literal_t)(unsafe.Pointer(lit)).Fclass, (*Ttre_literal_t)(unsafe.Pointer(lit)).Fneg_classes, -int32(1)) + if !((*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos != 0) { + return int32(REG_ESPACE) + } + } + } + case int32(_UNION): + /* Compute the attributes for the two subtrees, and after that + for this node. */ + _status2 = _tre_stack_push_voidptr(tls, stack, node) + if _status2 != REG_OK { + return _status2 + } + _status3 = _tre_stack_push_int(tls, stack, int32(_NFL_POST_UNION)) + if _status3 != REG_OK { + return _status3 + } + _status4 = _tre_stack_push_voidptr(tls, stack, (*Ttre_union_t)(unsafe.Pointer((*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj)).Fright) + if _status4 != REG_OK { + return _status4 + } + _status5 = _tre_stack_push_int(tls, stack, int32(_NFL_RECURSE)) + if _status5 != REG_OK { + return _status5 + } + _status6 = _tre_stack_push_voidptr(tls, stack, (*Ttre_union_t)(unsafe.Pointer((*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj)).Fleft) + if _status6 != REG_OK { + return _status6 + } + _status7 = _tre_stack_push_int(tls, stack, int32(_NFL_RECURSE)) + if _status7 != REG_OK { + return _status7 + } + case int32(_CATENATION): + /* Compute the attributes for the two subtrees, and after that + for this node. */ + _status8 = _tre_stack_push_voidptr(tls, stack, node) + if _status8 != REG_OK { + return _status8 + } + _status9 = _tre_stack_push_int(tls, stack, int32(_NFL_POST_CATENATION)) + if _status9 != REG_OK { + return _status9 + } + _status10 = _tre_stack_push_voidptr(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer((*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj)).Fright) + if _status10 != REG_OK { + return _status10 + } + _status11 = _tre_stack_push_int(tls, stack, int32(_NFL_RECURSE)) + if _status11 != REG_OK { + return _status11 + } + _status12 = _tre_stack_push_voidptr(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer((*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj)).Fleft) + if _status12 != REG_OK { + return _status12 + } + _status13 = _tre_stack_push_int(tls, stack, int32(_NFL_RECURSE)) + if _status13 != REG_OK { + return _status13 + } + case int32(_ITERATION): + /* Compute the attributes for the subtree, and after that for + this node. */ + _status14 = _tre_stack_push_voidptr(tls, stack, node) + if _status14 != REG_OK { + return _status14 + } + _status15 = _tre_stack_push_int(tls, stack, int32(_NFL_POST_ITERATION)) + if _status15 != REG_OK { + return _status15 + } + _status16 = _tre_stack_push_voidptr(tls, stack, (*Ttre_iteration_t)(unsafe.Pointer((*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj)).Farg) + if _status16 != REG_OK { + return _status16 + } + _status17 = _tre_stack_push_int(tls, stack, int32(_NFL_RECURSE)) + if _status17 != REG_OK { + return _status17 + } + break + } + case int32(_NFL_POST_UNION): + uni = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnullable = BoolInt32((*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_union_t)(unsafe.Pointer(uni)).Fleft)).Fnullable != 0 || (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_union_t)(unsafe.Pointer(uni)).Fright)).Fnullable != 0) + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos = _tre_set_union(tls, mem, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_union_t)(unsafe.Pointer(uni)).Fleft)).Ffirstpos, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_union_t)(unsafe.Pointer(uni)).Fright)).Ffirstpos, UintptrFromInt32(0), 0) + if !((*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos != 0) { + return int32(REG_ESPACE) + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos = _tre_set_union(tls, mem, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_union_t)(unsafe.Pointer(uni)).Fleft)).Flastpos, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_union_t)(unsafe.Pointer(uni)).Fright)).Flastpos, UintptrFromInt32(0), 0) + if !((*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos != 0) { + return int32(REG_ESPACE) + } + case int32(_NFL_POST_ITERATION): + iter = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + if (*Ttre_iteration_t)(unsafe.Pointer(iter)).Fmin == 0 || (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg)).Fnullable != 0 { + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnullable = int32(1) + } else { + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnullable = 0 + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos = (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg)).Ffirstpos + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos = (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg)).Flastpos + case int32(_NFL_POST_CATENATION): + cat = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnullable = BoolInt32((*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft)).Fnullable != 0 && (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright)).Fnullable != 0) + /* Compute firstpos. */ + if (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft)).Fnullable != 0 { + /* The left side matches the empty string. Make a first pass + with tre_match_empty() to get the number of tags and + parameters. */ + status = _tre_match_empty(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft, UintptrFromInt32(0), UintptrFromInt32(0), bp) + if status != REG_OK { + return status + } + /* Allocate arrays for the tags and parameters. */ + tags = Xmalloc(tls, uint32(4)*Uint32FromInt32(**(**int32)(__ccgo_up(bp))+Int32FromInt32(1))) + if !(tags != 0) { + return int32(REG_ESPACE) + } + **(**int32)(__ccgo_up(tags)) = -int32(1) + **(**int32)(__ccgo_up(bp + 4)) = 0 + /* Second pass with tre_mach_empty() to get the list of + tags and parameters. */ + status = _tre_match_empty(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft, tags, bp+4, UintptrFromInt32(0)) + if status != REG_OK { + Xfree(tls, tags) + return status + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos = _tre_set_union(tls, mem, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright)).Ffirstpos, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft)).Ffirstpos, tags, **(**int32)(__ccgo_up(bp + 4))) + Xfree(tls, tags) + if !((*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos != 0) { + return int32(REG_ESPACE) + } + } else { + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos = (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft)).Ffirstpos + } + /* Compute lastpos. */ + if (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright)).Fnullable != 0 { + /* The right side matches the empty string. Make a first pass + with tre_match_empty() to get the number of tags and + parameters. */ + status = _tre_match_empty(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright, UintptrFromInt32(0), UintptrFromInt32(0), bp) + if status != REG_OK { + return status + } + /* Allocate arrays for the tags and parameters. */ + tags = Xmalloc(tls, uint32(4)*Uint32FromInt32(**(**int32)(__ccgo_up(bp))+Int32FromInt32(1))) + if !(tags != 0) { + return int32(REG_ESPACE) + } + **(**int32)(__ccgo_up(tags)) = -int32(1) + **(**int32)(__ccgo_up(bp + 4)) = 0 + /* Second pass with tre_mach_empty() to get the list of + tags and parameters. */ + status = _tre_match_empty(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright, tags, bp+4, UintptrFromInt32(0)) + if status != REG_OK { + Xfree(tls, tags) + return status + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos = _tre_set_union(tls, mem, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft)).Flastpos, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright)).Flastpos, tags, **(**int32)(__ccgo_up(bp + 4))) + Xfree(tls, tags) + if !((*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos != 0) { + return int32(REG_ESPACE) + } + } else { + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos = (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright)).Flastpos + } + default: + break + } + } + return REG_OK +} + +// C documentation +// +// /* Adds a transition from each position in `p1' to each position in `p2'. */ +func _tre_make_trans(tls *TLS, p1 uintptr, p2 uintptr, transitions uintptr, counts uintptr, offs uintptr) (r Treg_errcode_t) { + var dup, i, j, k, l, prev_p2_pos, v1, v2 int32 + var orig_p2, trans uintptr + _, _, _, _, _, _, _, _, _, _ = dup, i, j, k, l, orig_p2, prev_p2_pos, trans, v1, v2 + orig_p2 = p2 + if transitions != UintptrFromInt32(0) { + for (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fposition >= 0 { + p2 = orig_p2 + prev_p2_pos = -int32(1) + for (*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Fposition >= 0 { + /* Optimization: if this position was already handled, skip it. */ + if (*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Fposition == prev_p2_pos { + p2 += 32 + continue + } + prev_p2_pos = (*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Fposition + /* Set `trans' to point to the next unused transition from + position `p1->position'. */ + trans = transitions + uintptr(**(**int32)(__ccgo_up(offs + uintptr((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fposition)*4)))*32 + for (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fstate != UintptrFromInt32(0) { + trans += 32 + } + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fstate == UintptrFromInt32(0) { + (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans + UintptrFromInt32(1)*32)).Fstate = UintptrFromInt32(0) + } + /* Use the character ranges, assertions, etc. from `p1' for + the transition from `p1' to `p2'. */ + (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fcode_min = Uint32FromInt32((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fcode_min) + (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fcode_max = Uint32FromInt32((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fcode_max) + (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fstate = transitions + uintptr(**(**int32)(__ccgo_up(offs + uintptr((*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Fposition)*4)))*32 + (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fstate_id = (*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Fposition + if (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fclass != 0 { + v1 = int32(ASSERT_CHAR_CLASS) + } else { + v1 = 0 + } + if (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fneg_classes != UintptrFromInt32(0) { + v2 = int32(ASSERT_CHAR_CLASS_NEG) + } else { + v2 = 0 + } + (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fassertions = (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fassertions | (*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Fassertions | v1 | v2 + if (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fbackref >= 0 { + *(*int32)(unsafe.Pointer(trans + 24)) = (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fbackref + **(**int32)(__ccgo_up(trans + 20)) |= int32(ASSERT_BACKREF) + } else { + *(*Ttre_ctype_t)(unsafe.Pointer(trans + 24)) = (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fclass + } + if (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fneg_classes != UintptrFromInt32(0) { + i = 0 + for { + if !(**(**Ttre_ctype_t)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fneg_classes + uintptr(i)*4)) != Uint32FromInt32(0)) { + break + } + goto _3 + _3: + ; + i = i + 1 + } + (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fneg_classes = Xmalloc(tls, uint32(4)*Uint32FromInt32(i+Int32FromInt32(1))) + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fneg_classes == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + i = 0 + for { + if !(**(**Ttre_ctype_t)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fneg_classes + uintptr(i)*4)) != Uint32FromInt32(0)) { + break + } + **(**Ttre_ctype_t)(__ccgo_up((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fneg_classes + uintptr(i)*4)) = **(**Ttre_ctype_t)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fneg_classes + uintptr(i)*4)) + goto _4 + _4: + ; + i = i + 1 + } + **(**Ttre_ctype_t)(__ccgo_up((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fneg_classes + uintptr(i)*4)) = Uint32FromInt32(0) + } else { + (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fneg_classes = UintptrFromInt32(0) + } + /* Find out how many tags this transition has. */ + i = 0 + if (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Ftags != UintptrFromInt32(0) { + for **(**int32)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Ftags + uintptr(i)*4)) >= 0 { + i = i + 1 + } + } + j = 0 + if (*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Ftags != UintptrFromInt32(0) { + for **(**int32)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Ftags + uintptr(j)*4)) >= 0 { + j = j + 1 + } + } + /* If we are overwriting a transition, free the old tag array. */ + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags != UintptrFromInt32(0) { + Xfree(tls, (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags) + } + (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags = UintptrFromInt32(0) + /* If there were any tags, allocate an array and fill it. */ + if i+j > 0 { + (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags = Xmalloc(tls, uint32(4)*Uint32FromInt32(i+j+Int32FromInt32(1))) + if !((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags != 0) { + return int32(REG_ESPACE) + } + i = 0 + if (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Ftags != UintptrFromInt32(0) { + for **(**int32)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Ftags + uintptr(i)*4)) >= 0 { + **(**int32)(__ccgo_up((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags + uintptr(i)*4)) = **(**int32)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Ftags + uintptr(i)*4)) + i = i + 1 + } + } + l = i + j = 0 + if (*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Ftags != UintptrFromInt32(0) { + for **(**int32)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Ftags + uintptr(j)*4)) >= 0 { + /* Don't add duplicates. */ + dup = 0 + k = 0 + for { + if !(k < i) { + break + } + if **(**int32)(__ccgo_up((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags + uintptr(k)*4)) == **(**int32)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Ftags + uintptr(j)*4)) { + dup = int32(1) + break + } + goto _5 + _5: + ; + k = k + 1 + } + if !(dup != 0) { + v1 = l + l = l + 1 + **(**int32)(__ccgo_up((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags + uintptr(v1)*4)) = **(**int32)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Ftags + uintptr(j)*4)) + } + j = j + 1 + } + } + **(**int32)(__ccgo_up((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags + uintptr(l)*4)) = -int32(1) + } + p2 += 32 + } + p1 += 32 + } + } else { + /* Compute a maximum limit for the number of transitions leaving + from each state. */ + for (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fposition >= 0 { + p2 = orig_p2 + for (*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Fposition >= 0 { + **(**int32)(__ccgo_up(counts + uintptr((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fposition)*4)) = **(**int32)(__ccgo_up(counts + uintptr((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fposition)*4)) + 1 + p2 += 32 + } + p1 += 32 + } + } + return REG_OK +} + +// C documentation +// +// /* Converts the syntax tree to a TNFA. All the transitions in the TNFA are +// labelled with one character range (there are no transitions on empty +// strings). The TNFA takes O(n^2) space in the worst case, `n' is size of +// the regexp. */ +func _tre_ast_to_tnfa(tls *TLS, node uintptr, transitions uintptr, counts uintptr, offs uintptr) (r Treg_errcode_t) { + var cat, iter, uni uintptr + var errcode Treg_errcode_t + _, _, _, _ = cat, errcode, iter, uni + errcode = REG_OK + /* XXX - recurse using a stack!. */ + switch (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 { + case int32(_LITERAL): + case int32(_UNION): + uni = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + errcode = _tre_ast_to_tnfa(tls, (*Ttre_union_t)(unsafe.Pointer(uni)).Fleft, transitions, counts, offs) + if errcode != REG_OK { + return errcode + } + errcode = _tre_ast_to_tnfa(tls, (*Ttre_union_t)(unsafe.Pointer(uni)).Fright, transitions, counts, offs) + case int32(_CATENATION): + cat = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + /* Add a transition from each position in cat->left->lastpos + to each position in cat->right->firstpos. */ + errcode = _tre_make_trans(tls, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft)).Flastpos, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright)).Ffirstpos, transitions, counts, offs) + if errcode != REG_OK { + return errcode + } + errcode = _tre_ast_to_tnfa(tls, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft, transitions, counts, offs) + if errcode != REG_OK { + return errcode + } + errcode = _tre_ast_to_tnfa(tls, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright, transitions, counts, offs) + case int32(_ITERATION): + iter = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + if (*Ttre_iteration_t)(unsafe.Pointer(iter)).Fmax == -int32(1) { + /* Add a transition from each last position in the iterated + expression to each first position. */ + errcode = _tre_make_trans(tls, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg)).Flastpos, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg)).Ffirstpos, transitions, counts, offs) + if errcode != REG_OK { + return errcode + } + } + errcode = _tre_ast_to_tnfa(tls, (*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg, transitions, counts, offs) + break + } + return errcode +} + +func Xregcomp(tls *TLS, preg uintptr, regex uintptr, cflags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v preg=%v regex=%v cflags=%v, (%v:)", tls, preg, regex, cflags, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + var add, i, j, v1 int32 + var counts, initial, offs, p, stack, submatch_data, tag_directions, tmp_ast_l, tmp_ast_r, tnfa, transitions, tree, v2 uintptr + var errcode Treg_errcode_t + var mem Ttre_mem_t + var _ /* parse_ctx at bp+0 */ Ttre_parse_ctx_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = add, counts, errcode, i, initial, j, mem, offs, p, stack, submatch_data, tag_directions, tmp_ast_l, tmp_ast_r, tnfa, transitions, tree, v1, v2 + counts = UintptrFromInt32(0) + offs = UintptrFromInt32(0) + add = 0 + tnfa = UintptrFromInt32(0) + tag_directions = UintptrFromInt32(0) + /* Allocate a stack used throughout the compilation process for various + purposes. */ + stack = _tre_stack_new(tls, int32(512), int32(1024000), int32(128)) + if !(stack != 0) { + return int32(REG_ESPACE) + } + /* Allocate a fast memory allocator. */ + mem = X__tre_mem_new_impl(tls, 0, UintptrFromInt32(0)) + if !(mem != 0) { + _tre_stack_destroy(tls, stack) + return int32(REG_ESPACE) + } + /* Parse the regexp. */ + Xmemset(tls, bp, 0, uint32(36)) + (**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fmem = mem + (**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fstack = stack + (**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fstart = regex + (**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fcflags = cflags + (**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fmax_backref = -int32(1) + errcode = _tre_parse(tls, bp) + if errcode != REG_OK { + errcode = errcode + if int32(1) != 0 { + goto error_exit + } + } + (*Tregex_t)(unsafe.Pointer(preg)).Fre_nsub = Uint32FromInt32((**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fsubmatch_id - int32(1)) + tree = (**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fn + /* Referring to nonexistent subexpressions is illegal. */ + if (**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fmax_backref > Int32FromUint32((*Tregex_t)(unsafe.Pointer(preg)).Fre_nsub) { + errcode = int32(REG_ESUBREG) + if int32(1) != 0 { + goto error_exit + } + } + /* Allocate the TNFA struct. */ + tnfa = Xcalloc(tls, uint32(1), uint32(68)) + if tnfa == UintptrFromInt32(0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fhave_backrefs = BoolInt32((**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fmax_backref >= 0) + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fhave_approx = 0 + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_submatches = Uint32FromInt32((**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fsubmatch_id) + /* Set up tags for submatch addressing. If REG_NOSUB is set and the + regexp does not have back references, this can be skipped. */ + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fhave_backrefs != 0 || !(cflags&Int32FromInt32(REG_NOSUB) != 0) { + /* Figure out how many tags we will need. */ + errcode = _tre_add_tags(tls, UintptrFromInt32(0), stack, tree, tnfa) + if errcode != REG_OK { + errcode = errcode + if int32(1) != 0 { + goto error_exit + } + } + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags > 0 { + tag_directions = Xmalloc(tls, uint32(4)*Uint32FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags+Int32FromInt32(1))) + if tag_directions == UintptrFromInt32(0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions = tag_directions + Xmemset(tls, tag_directions, -int32(1), uint32(4)*Uint32FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags+Int32FromInt32(1))) + } + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags = Xcalloc(tls, Uint32FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags)*uint32(2)+uint32(1), uint32(4)) + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags == UintptrFromInt32(0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + submatch_data = Xcalloc(tls, Uint32FromInt32((**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fsubmatch_id), uint32(12)) + if submatch_data == UintptrFromInt32(0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fsubmatch_data = submatch_data + errcode = _tre_add_tags(tls, mem, stack, tree, tnfa) + if errcode != REG_OK { + errcode = errcode + if int32(1) != 0 { + goto error_exit + } + } + } + /* Expand iteration nodes. */ + errcode = _tre_expand_ast(tls, mem, stack, tree, bp+24, tag_directions) + if errcode != REG_OK { + errcode = errcode + if int32(1) != 0 { + goto error_exit + } + } + /* Add a dummy node for the final state. + XXX - For certain patterns this dummy node can be optimized away, + for example "a*" or "ab*". Figure out a simple way to detect + this possibility. */ + tmp_ast_l = tree + v2 = bp + 24 + v1 = *(*int32)(unsafe.Pointer(v2)) + *(*int32)(unsafe.Pointer(v2)) = *(*int32)(unsafe.Pointer(v2)) + 1 + tmp_ast_r = _tre_ast_new_literal(tls, mem, 0, 0, v1) + if tmp_ast_r == UintptrFromInt32(0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + tree = _tre_ast_new_catenation(tls, mem, tmp_ast_l, tmp_ast_r) + if tree == UintptrFromInt32(0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + errcode = _tre_compute_nfl(tls, mem, stack, tree) + if errcode != REG_OK { + errcode = errcode + if int32(1) != 0 { + goto error_exit + } + } + counts = Xmalloc(tls, uint32(4)*Uint32FromInt32((**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fposition)) + if counts == UintptrFromInt32(0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + offs = Xmalloc(tls, uint32(4)*Uint32FromInt32((**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fposition)) + if offs == UintptrFromInt32(0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + i = 0 + for { + if !(i < (**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fposition) { + break + } + **(**int32)(__ccgo_up(counts + uintptr(i)*4)) = 0 + goto _3 + _3: + ; + i = i + 1 + } + _tre_ast_to_tnfa(tls, tree, UintptrFromInt32(0), counts, UintptrFromInt32(0)) + add = 0 + i = 0 + for { + if !(i < (**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fposition) { + break + } + **(**int32)(__ccgo_up(offs + uintptr(i)*4)) = add + add = add + (**(**int32)(__ccgo_up(counts + uintptr(i)*4)) + int32(1)) + **(**int32)(__ccgo_up(counts + uintptr(i)*4)) = 0 + goto _4 + _4: + ; + i = i + 1 + } + transitions = Xcalloc(tls, Uint32FromInt32(add)+uint32(1), uint32(32)) + if transitions == UintptrFromInt32(0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftransitions = transitions + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_transitions = Uint32FromInt32(add) + errcode = _tre_ast_to_tnfa(tls, tree, transitions, counts, offs) + if errcode != REG_OK { + errcode = errcode + if int32(1) != 0 { + goto error_exit + } + } + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ffirstpos_chars = UintptrFromInt32(0) + p = (*Ttre_ast_node_t)(unsafe.Pointer(tree)).Ffirstpos + i = 0 + for (*Ttre_pos_and_tags_t)(unsafe.Pointer(p)).Fposition >= 0 { + i = i + 1 + p += 32 + } + initial = Xcalloc(tls, Uint32FromInt32(i)+uint32(1), uint32(32)) + if initial == UintptrFromInt32(0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Finitial = initial + i = 0 + p = (*Ttre_ast_node_t)(unsafe.Pointer(tree)).Ffirstpos + for { + if !((*Ttre_pos_and_tags_t)(unsafe.Pointer(p)).Fposition >= 0) { + break + } + (**(**Ttre_tnfa_transition_t)(__ccgo_up(initial + uintptr(i)*32))).Fstate = transitions + uintptr(**(**int32)(__ccgo_up(offs + uintptr((*Ttre_pos_and_tags_t)(unsafe.Pointer(p)).Fposition)*4)))*32 + (**(**Ttre_tnfa_transition_t)(__ccgo_up(initial + uintptr(i)*32))).Fstate_id = (*Ttre_pos_and_tags_t)(unsafe.Pointer(p)).Fposition + (**(**Ttre_tnfa_transition_t)(__ccgo_up(initial + uintptr(i)*32))).Ftags = UintptrFromInt32(0) + /* Copy the arrays p->tags, and p->params, they are allocated + from a tre_mem object. */ + if (*Ttre_pos_and_tags_t)(unsafe.Pointer(p)).Ftags != 0 { + j = 0 + for { + if !(**(**int32)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p)).Ftags + uintptr(j)*4)) >= 0) { + break + } + goto _6 + _6: + ; + j = j + 1 + } + (**(**Ttre_tnfa_transition_t)(__ccgo_up(initial + uintptr(i)*32))).Ftags = Xmalloc(tls, uint32(4)*Uint32FromInt32(j+Int32FromInt32(1))) + if !((**(**Ttre_tnfa_transition_t)(__ccgo_up(initial + uintptr(i)*32))).Ftags != 0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + Xmemcpy(tls, (**(**Ttre_tnfa_transition_t)(__ccgo_up(initial + uintptr(i)*32))).Ftags, (*Ttre_pos_and_tags_t)(unsafe.Pointer(p)).Ftags, uint32(4)*Uint32FromInt32(j+Int32FromInt32(1))) + } + (**(**Ttre_tnfa_transition_t)(__ccgo_up(initial + uintptr(i)*32))).Fassertions = (*Ttre_pos_and_tags_t)(unsafe.Pointer(p)).Fassertions + i = i + 1 + goto _5 + _5: + ; + p += 32 + } + (**(**Ttre_tnfa_transition_t)(__ccgo_up(initial + uintptr(i)*32))).Fstate = UintptrFromInt32(0) + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_transitions = Uint32FromInt32(add) + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ffinal = transitions + uintptr(**(**int32)(__ccgo_up(offs + uintptr((**(**Ttre_pos_and_tags_t)(__ccgo_up((*Ttre_ast_node_t)(unsafe.Pointer(tree)).Flastpos))).Fposition)*4)))*32 + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states = (**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fposition + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags = cflags + X__tre_mem_destroy(tls, mem) + _tre_stack_destroy(tls, stack) + Xfree(tls, counts) + Xfree(tls, offs) + (*Tregex_t)(unsafe.Pointer(preg)).F__opaque = tnfa + return REG_OK + goto error_exit +error_exit: + ; + /* Free everything that was allocated and return the error code. */ + X__tre_mem_destroy(tls, mem) + if stack != UintptrFromInt32(0) { + _tre_stack_destroy(tls, stack) + } + if counts != UintptrFromInt32(0) { + Xfree(tls, counts) + } + if offs != UintptrFromInt32(0) { + Xfree(tls, offs) + } + (*Tregex_t)(unsafe.Pointer(preg)).F__opaque = tnfa + Xregfree(tls, preg) + return errcode +} + +func Xregfree(tls *TLS, preg uintptr) { + if __ccgo_strace { + trc("tls=%v preg=%v, (%v:)", tls, preg, origin(2)) + } + var i uint32 + var tnfa, trans uintptr + _, _, _ = i, tnfa, trans + tnfa = (*Tregex_t)(unsafe.Pointer(preg)).F__opaque + if !(tnfa != 0) { + return + } + i = uint32(0) + for { + if !(i < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_transitions) { + break + } + if (**(**Ttre_tnfa_transition_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftransitions + uintptr(i)*32))).Fstate != 0 { + if (**(**Ttre_tnfa_transition_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftransitions + uintptr(i)*32))).Ftags != 0 { + Xfree(tls, (**(**Ttre_tnfa_transition_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftransitions + uintptr(i)*32))).Ftags) + } + if (**(**Ttre_tnfa_transition_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftransitions + uintptr(i)*32))).Fneg_classes != 0 { + Xfree(tls, (**(**Ttre_tnfa_transition_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftransitions + uintptr(i)*32))).Fneg_classes) + } + } + goto _1 + _1: + ; + i = i + 1 + } + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftransitions != 0 { + Xfree(tls, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftransitions) + } + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Finitial != 0 { + trans = (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Finitial + for { + if !((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fstate != 0) { + break + } + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags != 0 { + Xfree(tls, (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags) + } + goto _2 + _2: + ; + trans += 32 + } + Xfree(tls, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Finitial) + } + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fsubmatch_data != 0 { + i = uint32(0) + for { + if !(i < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_submatches) { + break + } + if (**(**Ttre_submatch_data_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fsubmatch_data + uintptr(i)*12))).Fparents != 0 { + Xfree(tls, (**(**Ttre_submatch_data_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fsubmatch_data + uintptr(i)*12))).Fparents) + } + goto _3 + _3: + ; + i = i + 1 + } + Xfree(tls, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fsubmatch_data) + } + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions != 0 { + Xfree(tls, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions) + } + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ffirstpos_chars != 0 { + Xfree(tls, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ffirstpos_chars) + } + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags != 0 { + Xfree(tls, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags) + } + Xfree(tls, tnfa) +} + +/* Error message strings for error codes listed in `regex.h'. This list + needs to be in sync with the codes listed there, naturally. */ + +/* Converted to single string by Rich Felker to remove the need for + * data relocations at runtime, 27 Feb 2006. */ + +var _messages = [286]int8{'N', 'o', ' ', 'e', 'r', 'r', 'o', 'r', 0, 'N', 'o', ' ', 'm', 'a', 't', 'c', 'h', 0, 'I', 'n', 'v', 'a', 'l', 'i', 'd', ' ', 'r', 'e', 'g', 'e', 'x', 'p', 0, 'U', 'n', 'k', 'n', 'o', 'w', 'n', ' ', 'c', 'o', 'l', 'l', 'a', 't', 'i', 'n', 'g', ' ', 'e', 'l', 'e', 'm', 'e', 'n', 't', 0, 'U', 'n', 'k', 'n', 'o', 'w', 'n', ' ', 'c', 'h', 'a', 'r', 'a', 'c', 't', 'e', 'r', ' ', 'c', 'l', 'a', 's', 's', ' ', 'n', 'a', 'm', 'e', 0, 'T', 'r', 'a', 'i', 'l', 'i', 'n', 'g', ' ', 'b', 'a', 'c', 'k', 's', 'l', 'a', 's', 'h', 0, 'I', 'n', 'v', 'a', 'l', 'i', 'd', ' ', 'b', 'a', 'c', 'k', ' ', 'r', 'e', 'f', 'e', 'r', 'e', 'n', 'c', 'e', 0, 'M', 'i', 's', 's', 'i', 'n', 'g', ' ', '\'', ']', '\'', 0, 'M', 'i', 's', 's', 'i', 'n', 'g', ' ', '\'', ')', '\'', 0, 'M', 'i', 's', 's', 'i', 'n', 'g', ' ', '\'', '}', '\'', 0, 'I', 'n', 'v', 'a', 'l', 'i', 'd', ' ', 'c', 'o', 'n', 't', 'e', 'n', 't', 's', ' ', 'o', 'f', ' ', '{', '}', 0, 'I', 'n', 'v', 'a', 'l', 'i', 'd', ' ', 'c', 'h', 'a', 'r', 'a', 'c', 't', 'e', 'r', ' ', 'r', 'a', 'n', 'g', 'e', 0, 'O', 'u', 't', ' ', 'o', 'f', ' ', 'm', 'e', 'm', 'o', 'r', 'y', 0, 'R', 'e', 'p', 'e', 't', 'i', 't', 'i', 'o', 'n', ' ', 'n', 'o', 't', ' ', 'p', 'r', 'e', 'c', 'e', 'd', 'e', 'd', ' ', 'b', 'y', ' ', 'v', 'a', 'l', 'i', 'd', ' ', 'e', 'x', 'p', 'r', 'e', 's', 's', 'i', 'o', 'n', 0, 0, 'U', 'n', 'k', 'n', 'o', 'w', 'n', ' ', 'e', 'r', 'r', 'o', 'r'} + +func Xregerror(tls *TLS, e int32, preg uintptr, buf uintptr, size Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v e=%v preg=%v buf=%v size=%v, (%v:)", tls, e, preg, buf, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var s uintptr + _ = s + s = uintptr(unsafe.Pointer(&_messages)) + for { + if !(e != 0 && **(**int8)(__ccgo_up(s)) != 0) { + break + } + goto _1 + _1: + ; + e = e - 1 + s = s + uintptr(_strlen(tls, s)+uint32(1)) + } + if !(**(**int8)(__ccgo_up(s)) != 0) { + s = s + 1 + } + s = X__lctrans_cur(tls, s) + return Uint32FromInt32(int32(1) + Xsnprintf(tls, buf, size, __ccgo_ts+15, VaList(bp+8, s))) +} + +const tre_bt_mem_alloc = 0 +const tre_bt_mem_destroy = 0 +const tre_bt_mem_new = 0 + +/*********************************************************************** + from tre-match-utils.h +***********************************************************************/ + +// C documentation +// +// /* Returns 1 if `t1' wins `t2', 0 otherwise. */ +func _tre_tag_order(tls *TLS, num_tags int32, tag_directions uintptr, t1 uintptr, t2 uintptr) (r int32) { + var i int32 + _ = i + i = 0 + for { + if !(i < num_tags) { + break + } + if **(**Ttre_tag_direction_t)(__ccgo_up(tag_directions + uintptr(i)*4)) == int32(_TRE_TAG_MINIMIZE) { + if **(**Tregoff_t)(__ccgo_up(t1 + uintptr(i)*4)) < **(**Tregoff_t)(__ccgo_up(t2 + uintptr(i)*4)) { + return int32(1) + } + if **(**Tregoff_t)(__ccgo_up(t1 + uintptr(i)*4)) > **(**Tregoff_t)(__ccgo_up(t2 + uintptr(i)*4)) { + return 0 + } + } else { + if **(**Tregoff_t)(__ccgo_up(t1 + uintptr(i)*4)) > **(**Tregoff_t)(__ccgo_up(t2 + uintptr(i)*4)) { + return int32(1) + } + if **(**Tregoff_t)(__ccgo_up(t1 + uintptr(i)*4)) < **(**Tregoff_t)(__ccgo_up(t2 + uintptr(i)*4)) { + return 0 + } + } + goto _1 + _1: + ; + i = i + 1 + } + /* assert(0);*/ + return 0 +} + +func _tre_neg_char_classes_match(tls *TLS, classes uintptr, wc Ttre_cint_t, icase int32) (r int32) { + for **(**Ttre_ctype_t)(__ccgo_up(classes)) != Uint32FromInt32(0) { + if !(icase != 0) && Xiswctype(tls, wc, **(**Ttre_ctype_t)(__ccgo_up(classes))) != 0 || icase != 0 && (Xiswctype(tls, Xtowupper(tls, wc), **(**Ttre_ctype_t)(__ccgo_up(classes))) != 0 || Xiswctype(tls, Xtowlower(tls, wc), **(**Ttre_ctype_t)(__ccgo_up(classes))) != 0) { + return int32(1) + } else { + classes += 4 + } + } + return 0 /* No match. */ +} + +/*********************************************************************** + from tre-match-parallel.c +***********************************************************************/ + +/* + This algorithm searches for matches basically by reading characters + in the searched string one by one, starting at the beginning. All + matching paths in the TNFA are traversed in parallel. When two or + more paths reach the same state, exactly one is chosen according to + tag ordering rules; if returning submatches is not required it does + not matter which path is chosen. + + The worst case time required for finding the leftmost and longest + match, or determining that there is no match, is always linearly + dependent on the length of the text being searched. + + This algorithm cannot handle TNFAs with back referencing nodes. + See `tre-match-backtrack.c'. +*/ + +type Ttre_tnfa_reach_t = struct { + Fstate uintptr + Ftags uintptr +} + +type Ttre_reach_pos_t = struct { + Fpos Tregoff_t + Ftags uintptr +} + +func _tre_tnfa_run_parallel(tls *TLS, tnfa uintptr, string1 uintptr, match_tags uintptr, eflags int32, match_end_ofs uintptr) (r Treg_errcode_t) { + bp := tls.Alloc(16) + defer tls.Free(16) + var buf, reach, reach_i, reach_next, reach_next_i, reach_pos, str_byte, tag_i, tmp_buf, tmp_iptr, tmp_tags, trans_i uintptr + var end, i, new_match, num_tags, reg_newline, reg_notbol, reg_noteol, skip, start, v18 int32 + var match_eo, pos, pos_add_next, v7 Tregoff_t + var pbytes, rbytes, tbytes, total_bytes, xbytes Tsize_t + var prev_c Ttre_char_t + var ret Treg_errcode_t + var v1 uint32 + var _ /* next_c at bp+0 */ Ttre_char_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = buf, end, i, match_eo, new_match, num_tags, pbytes, pos, pos_add_next, prev_c, rbytes, reach, reach_i, reach_next, reach_next_i, reach_pos, reg_newline, reg_notbol, reg_noteol, ret, skip, start, str_byte, tag_i, tbytes, tmp_buf, tmp_iptr, tmp_tags, total_bytes, trans_i, xbytes, v1, v18, v7 + /* State variables required by GET_NEXT_WCHAR. */ + prev_c = 0 + **(**Ttre_char_t)(__ccgo_up(bp)) = 0 + str_byte = string1 + pos = -int32(1) + pos_add_next = int32(1) + reg_notbol = eflags & int32(REG_NOTBOL) + reg_noteol = eflags & int32(REG_NOTEOL) + reg_newline = (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags & int32(REG_NEWLINE) + match_eo = -int32(1) /* end offset of match (-1 if no match found yet) */ + new_match = 0 + tmp_tags = UintptrFromInt32(0) + if !(match_tags != 0) { + num_tags = 0 + } else { + num_tags = (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags + } + /* Allocate memory for temporary data required for matching. This needs to + be done for every matching operation to be thread safe. This allocates + everything in a single large block with calloc(). */ + /* Ensure that tbytes and xbytes*num_states cannot overflow, and that + * they don't contribute more than 1/8 of SIZE_MAX to total_bytes. */ + if Uint32FromInt32(num_tags) > uint32(0xffffffff)/(Uint32FromInt32(8)*Uint32FromInt64(4)*Uint32FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states)) { + return int32(REG_ESPACE) + } + /* Likewise check rbytes. */ + if Uint32FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states+int32(1)) > Uint32FromUint32(0xffffffff)/(Uint32FromInt32(8)*Uint32FromInt64(8)) { + return int32(REG_ESPACE) + } + /* Likewise check pbytes. */ + if Uint32FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states) > Uint32FromUint32(0xffffffff)/(Uint32FromInt32(8)*Uint32FromInt64(8)) { + return int32(REG_ESPACE) + } + /* Compute the length of the block we need. */ + tbytes = uint32(4) * Uint32FromInt32(num_tags) + rbytes = uint32(8) * Uint32FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states+Int32FromInt32(1)) + pbytes = uint32(8) * Uint32FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states) + xbytes = uint32(4) * Uint32FromInt32(num_tags) + total_bytes = (Uint32FromInt64(4)-Uint32FromInt32(1))*Uint32FromInt32(4) + (rbytes+xbytes*Uint32FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states))*uint32(2) + tbytes + pbytes + /* Allocate the memory. */ + buf = Xcalloc(tls, total_bytes, uint32(1)) + if buf == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + /* Get the various pointers within tmp_buf (properly aligned). */ + tmp_tags = buf + tmp_buf = buf + uintptr(tbytes) + if Uint32FromInt32(int32(tmp_buf))%uint32(4) != 0 { + v1 = uint32(4) - Uint32FromInt32(int32(tmp_buf))%uint32(4) + } else { + v1 = uint32(0) + } + tmp_buf = tmp_buf + uintptr(v1) + reach_next = tmp_buf + tmp_buf = tmp_buf + uintptr(rbytes) + if Uint32FromInt32(int32(tmp_buf))%uint32(4) != 0 { + v1 = uint32(4) - Uint32FromInt32(int32(tmp_buf))%uint32(4) + } else { + v1 = uint32(0) + } + tmp_buf = tmp_buf + uintptr(v1) + reach = tmp_buf + tmp_buf = tmp_buf + uintptr(rbytes) + if Uint32FromInt32(int32(tmp_buf))%uint32(4) != 0 { + v1 = uint32(4) - Uint32FromInt32(int32(tmp_buf))%uint32(4) + } else { + v1 = uint32(0) + } + tmp_buf = tmp_buf + uintptr(v1) + reach_pos = tmp_buf + tmp_buf = tmp_buf + uintptr(pbytes) + if Uint32FromInt32(int32(tmp_buf))%uint32(4) != 0 { + v1 = uint32(4) - Uint32FromInt32(int32(tmp_buf))%uint32(4) + } else { + v1 = uint32(0) + } + tmp_buf = tmp_buf + uintptr(v1) + i = 0 + for { + if !(i < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states) { + break + } + (**(**Ttre_tnfa_reach_t)(__ccgo_up(reach + uintptr(i)*8))).Ftags = tmp_buf + tmp_buf = tmp_buf + uintptr(xbytes) + (**(**Ttre_tnfa_reach_t)(__ccgo_up(reach_next + uintptr(i)*8))).Ftags = tmp_buf + tmp_buf = tmp_buf + uintptr(xbytes) + goto _5 + _5: + ; + i = i + 1 + } + i = 0 + for { + if !(i < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states) { + break + } + (**(**Ttre_reach_pos_t)(__ccgo_up(reach_pos + uintptr(i)*8))).Fpos = -int32(1) + goto _6 + _6: + ; + i = i + 1 + } + prev_c = **(**Ttre_char_t)(__ccgo_up(bp)) + pos = pos + pos_add_next + v7 = Xmbtowc(tls, bp, str_byte, uint32(MB_LEN_MAX)) + pos_add_next = v7 + if v7 <= 0 { + if pos_add_next < 0 { + ret = int32(REG_NOMATCH) + goto error_exit + } else { + pos_add_next = pos_add_next + 1 + } + } + str_byte = str_byte + uintptr(pos_add_next) + pos = 0 + reach_next_i = reach_next + for int32(1) != 0 { + /* If no match found yet, add the initial states to `reach_next'. */ + if match_eo < 0 { + trans_i = (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Finitial + for (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate != UintptrFromInt32(0) { + if (**(**Ttre_reach_pos_t)(__ccgo_up(reach_pos + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*8))).Fpos < pos { + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions != 0 && ((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_BOL) != 0 && (pos > 0 || reg_notbol != 0) && (prev_c != int32('\n') || !(reg_newline != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_EOL) != 0 && (**(**Ttre_char_t)(__ccgo_up(bp)) != int32('\000') || reg_noteol != 0) && (**(**Ttre_char_t)(__ccgo_up(bp)) != int32('\n') || !(reg_newline != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_BOW) != 0 && (prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0 || !(**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_EOW) != 0 && (!(prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0) || (**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_WB) != 0 && (pos != 0 && **(**Ttre_char_t)(__ccgo_up(bp)) != int32('\000') && BoolInt32(prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0) == BoolInt32(**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_WB_NEG) != 0 && (pos == 0 || **(**Ttre_char_t)(__ccgo_up(bp)) == int32('\000') || BoolInt32(prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0) != BoolInt32(**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0))) { + trans_i += 32 + continue + } + (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Fstate = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate + i = 0 + for { + if !(i < num_tags) { + break + } + **(**Tregoff_t)(__ccgo_up((*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Ftags + uintptr(i)*4)) = -int32(1) + goto _8 + _8: + ; + i = i + 1 + } + tag_i = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Ftags + if tag_i != 0 { + for **(**int32)(__ccgo_up(tag_i)) >= 0 { + if **(**int32)(__ccgo_up(tag_i)) < num_tags { + **(**Tregoff_t)(__ccgo_up((*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Ftags + uintptr(**(**int32)(__ccgo_up(tag_i)))*4)) = pos + } + tag_i += 4 + } + } + if (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Fstate == (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ffinal { + match_eo = pos + new_match = int32(1) + i = 0 + for { + if !(i < num_tags) { + break + } + **(**Tregoff_t)(__ccgo_up(match_tags + uintptr(i)*4)) = **(**Tregoff_t)(__ccgo_up((*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Ftags + uintptr(i)*4)) + goto _9 + _9: + ; + i = i + 1 + } + } + (**(**Ttre_reach_pos_t)(__ccgo_up(reach_pos + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*8))).Fpos = pos + (**(**Ttre_reach_pos_t)(__ccgo_up(reach_pos + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*8))).Ftags = reach_next_i + 4 + reach_next_i += 8 + } + trans_i += 32 + } + (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Fstate = UintptrFromInt32(0) + } else { + if num_tags == 0 || reach_next_i == reach_next { + /* We have found a match. */ + break + } + } + /* Check for end of string. */ + if !(**(**Ttre_char_t)(__ccgo_up(bp)) != 0) { + break + } + prev_c = **(**Ttre_char_t)(__ccgo_up(bp)) + pos = pos + pos_add_next + v7 = Xmbtowc(tls, bp, str_byte, uint32(MB_LEN_MAX)) + pos_add_next = v7 + if v7 <= 0 { + if pos_add_next < 0 { + ret = int32(REG_NOMATCH) + goto error_exit + } else { + pos_add_next = pos_add_next + 1 + } + } + str_byte = str_byte + uintptr(pos_add_next) + /* Swap `reach' and `reach_next'. */ + reach_i = reach + reach = reach_next + reach_next = reach_i + /* For each state in `reach', weed out states that don't fulfill the + minimal matching conditions. */ + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_minimals != 0 && new_match != 0 { + new_match = 0 + reach_next_i = reach_next + reach_i = reach + for { + if !((*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_i)).Fstate != 0) { + break + } + skip = 0 + i = 0 + for { + if !(**(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i)*4)) >= 0) { + break + } + end = **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i)*4)) + start = **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i+int32(1))*4)) + if end >= num_tags { + skip = int32(1) + break + } else { + if **(**Tregoff_t)(__ccgo_up((*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_i)).Ftags + uintptr(start)*4)) == **(**Tregoff_t)(__ccgo_up(match_tags + uintptr(start)*4)) && **(**Tregoff_t)(__ccgo_up((*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_i)).Ftags + uintptr(end)*4)) < **(**Tregoff_t)(__ccgo_up(match_tags + uintptr(end)*4)) { + skip = int32(1) + break + } + } + goto _12 + _12: + ; + i = i + int32(2) + } + if !(skip != 0) { + (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Fstate = (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_i)).Fstate + tmp_iptr = (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Ftags + (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Ftags = (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_i)).Ftags + (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_i)).Ftags = tmp_iptr + reach_next_i += 8 + } + goto _11 + _11: + ; + reach_i += 8 + } + (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Fstate = UintptrFromInt32(0) + /* Swap `reach' and `reach_next'. */ + reach_i = reach + reach = reach_next + reach_next = reach_i + } + /* For each state in `reach' see if there is a transition leaving with + the current input symbol to a state not yet in `reach_next', and + add the destination states to `reach_next'. */ + reach_next_i = reach_next + reach_i = reach + for { + if !((*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_i)).Fstate != 0) { + break + } + trans_i = (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_i)).Fstate + for { + if !((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate != 0) { + break + } + /* Does this transition match the input symbol? */ + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fcode_min <= Uint32FromInt32(prev_c) && (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fcode_max >= Uint32FromInt32(prev_c) { + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions != 0 && ((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_BOL) != 0 && (pos > 0 || reg_notbol != 0) && (prev_c != int32('\n') || !(reg_newline != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_EOL) != 0 && (**(**Ttre_char_t)(__ccgo_up(bp)) != int32('\000') || reg_noteol != 0) && (**(**Ttre_char_t)(__ccgo_up(bp)) != int32('\n') || !(reg_newline != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_BOW) != 0 && (prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0 || !(**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_EOW) != 0 && (!(prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0) || (**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_WB) != 0 && (pos != 0 && **(**Ttre_char_t)(__ccgo_up(bp)) != int32('\000') && BoolInt32(prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0) == BoolInt32(**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_WB_NEG) != 0 && (pos == 0 || **(**Ttre_char_t)(__ccgo_up(bp)) == int32('\000') || BoolInt32(prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0) != BoolInt32(**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || ((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_CHAR_CLASS) != 0 && !((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags&Int32FromInt32(REG_ICASE) != 0) && !(Xiswctype(tls, Uint32FromInt32(prev_c), *(*Ttre_ctype_t)(unsafe.Pointer(trans_i + 24))) != 0) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_CHAR_CLASS) != 0 && (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags&int32(REG_ICASE) != 0 && !(Xiswctype(tls, Xtowlower(tls, Uint32FromInt32(prev_c)), *(*Ttre_ctype_t)(unsafe.Pointer(trans_i + 24))) != 0) && !(Xiswctype(tls, Xtowupper(tls, Uint32FromInt32(prev_c)), *(*Ttre_ctype_t)(unsafe.Pointer(trans_i + 24))) != 0) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_CHAR_CLASS_NEG) != 0 && _tre_neg_char_classes_match(tls, (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fneg_classes, Uint32FromInt32(prev_c), (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags&int32(REG_ICASE)) != 0)) { + goto _14 + } + /* Compute the tags after this transition. */ + i = 0 + for { + if !(i < num_tags) { + break + } + **(**Tregoff_t)(__ccgo_up(tmp_tags + uintptr(i)*4)) = **(**Tregoff_t)(__ccgo_up((*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_i)).Ftags + uintptr(i)*4)) + goto _15 + _15: + ; + i = i + 1 + } + tag_i = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Ftags + if tag_i != UintptrFromInt32(0) { + for **(**int32)(__ccgo_up(tag_i)) >= 0 { + if **(**int32)(__ccgo_up(tag_i)) < num_tags { + **(**Tregoff_t)(__ccgo_up(tmp_tags + uintptr(**(**int32)(__ccgo_up(tag_i)))*4)) = pos + } + tag_i += 4 + } + } + if (**(**Ttre_reach_pos_t)(__ccgo_up(reach_pos + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*8))).Fpos < pos { + /* Found an unvisited node. */ + (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Fstate = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate + tmp_iptr = (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Ftags + (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Ftags = tmp_tags + tmp_tags = tmp_iptr + (**(**Ttre_reach_pos_t)(__ccgo_up(reach_pos + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*8))).Fpos = pos + (**(**Ttre_reach_pos_t)(__ccgo_up(reach_pos + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*8))).Ftags = reach_next_i + 4 + if (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Fstate == (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ffinal && (match_eo == -int32(1) || num_tags > 0 && **(**Tregoff_t)(__ccgo_up((*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Ftags)) <= **(**Tregoff_t)(__ccgo_up(match_tags))) { + match_eo = pos + new_match = int32(1) + i = 0 + for { + if !(i < num_tags) { + break + } + **(**Tregoff_t)(__ccgo_up(match_tags + uintptr(i)*4)) = **(**Tregoff_t)(__ccgo_up((*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Ftags + uintptr(i)*4)) + goto _16 + _16: + ; + i = i + 1 + } + } + reach_next_i += 8 + } else { + /* Another path has also reached this state. We choose + the winner by examining the tag values for both + paths. */ + if _tre_tag_order(tls, num_tags, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions, tmp_tags, **(**uintptr)(__ccgo_up((**(**Ttre_reach_pos_t)(__ccgo_up(reach_pos + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*8))).Ftags))) != 0 { + /* The new path wins. */ + tmp_iptr = **(**uintptr)(__ccgo_up((**(**Ttre_reach_pos_t)(__ccgo_up(reach_pos + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*8))).Ftags)) + **(**uintptr)(__ccgo_up((**(**Ttre_reach_pos_t)(__ccgo_up(reach_pos + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*8))).Ftags)) = tmp_tags + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate == (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ffinal { + match_eo = pos + new_match = int32(1) + i = 0 + for { + if !(i < num_tags) { + break + } + **(**Tregoff_t)(__ccgo_up(match_tags + uintptr(i)*4)) = **(**Tregoff_t)(__ccgo_up(tmp_tags + uintptr(i)*4)) + goto _17 + _17: + ; + i = i + 1 + } + } + tmp_tags = tmp_iptr + } + } + } + goto _14 + _14: + ; + trans_i += 32 + } + goto _13 + _13: + ; + reach_i += 8 + } + (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Fstate = UintptrFromInt32(0) + } + **(**Tregoff_t)(__ccgo_up(match_end_ofs)) = match_eo + if match_eo >= 0 { + v18 = REG_OK + } else { + v18 = int32(REG_NOMATCH) + } + ret = v18 + goto error_exit +error_exit: + ; + Xfree(tls, buf) + return ret +} + +/*********************************************************************** + from tre-match-backtrack.c +***********************************************************************/ + +/* + This matcher is for regexps that use back referencing. Regexp matching + with back referencing is an NP-complete problem on the number of back + references. The easiest way to match them is to use a backtracking + routine which basically goes through all possible paths in the TNFA + and chooses the one which results in the best (leftmost and longest) + match. This can be spectacularly expensive and may run out of stack + space, but there really is no better known generic algorithm. Quoting + Henry Spencer from comp.compilers: + + + POSIX.2 REs require longest match, which is really exciting to + implement since the obsolete ("basic") variant also includes + \. I haven't found a better way of tackling this than doing + a preliminary match using a DFA (or simulation) on a modified RE + that just replicates subREs for \, and then doing a + backtracking match to determine whether the subRE matches were + right. This can be rather slow, but I console myself with the + thought that people who use \ deserve very slow execution. + (Pun unintentional but very appropriate.) + +*/ + +type Ttre_backtrack_item_t = struct { + Fpos Tregoff_t + Fstr_byte uintptr + Fstate uintptr + Fstate_id int32 + Fnext_c int32 + Ftags uintptr +} + +type Ttre_backtrack_t = uintptr + +type Ttre_backtrack_struct = struct { + Fitem Ttre_backtrack_item_t + Fprev uintptr + Fnext uintptr +} + +func _tre_tnfa_run_backtrack(tls *TLS, tnfa uintptr, string1 uintptr, match_tags uintptr, eflags int32, match_end_ofs uintptr) (r Treg_errcode_t) { + bp := tls.Alloc(16) + defer tls.Free(16) + var bt, empty_br_match, i, i1, i2, i3, i4, next_c_start, reg_newline, reg_notbol, reg_noteol, result, ret, v20 int32 + var bt_len, eo, match_eo, pos, pos_add_next, pos_start, so, v3 Tregoff_t + var mem Ttre_mem_t + var next_state, next_tags, pmatch, state, states_seen, str_byte, str_byte_start, tags, tmp, tmp1, trans_i, v6 uintptr + var prev_c Ttre_char_t + var s, s1, stack Ttre_backtrack_t + var _ /* next_c at bp+0 */ Ttre_char_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = bt, bt_len, empty_br_match, eo, i, i1, i2, i3, i4, match_eo, mem, next_c_start, next_state, next_tags, pmatch, pos, pos_add_next, pos_start, prev_c, reg_newline, reg_notbol, reg_noteol, result, ret, s, s1, so, stack, state, states_seen, str_byte, str_byte_start, tags, tmp, tmp1, trans_i, v20, v3, v6 + /* State variables required by GET_NEXT_WCHAR. */ + prev_c = 0 + **(**Ttre_char_t)(__ccgo_up(bp)) = 0 + str_byte = string1 + pos = 0 + pos_add_next = int32(1) + reg_notbol = eflags & int32(REG_NOTBOL) + reg_noteol = eflags & int32(REG_NOTEOL) + reg_newline = (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags & int32(REG_NEWLINE) + pos_start = -int32(1) + /* End offset of best match so far, or -1 if no match found yet. */ + match_eo = -int32(1) + tags = UintptrFromInt32(0) + states_seen = UintptrFromInt32(0) + /* Memory allocator to for allocating the backtracking stack. */ + mem = X__tre_mem_new_impl(tls, 0, UintptrFromInt32(0)) + pmatch = UintptrFromInt32(0) + if !(mem != 0) { + return int32(REG_ESPACE) + } + stack = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint32(32)) + if !(stack != 0) { + ret = int32(REG_ESPACE) + goto error_exit + } + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fprev = UintptrFromInt32(0) + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fnext = UintptrFromInt32(0) + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags != 0 { + tags = Xmalloc(tls, uint32(4)*Uint32FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags)) + if !(tags != 0) { + ret = int32(REG_ESPACE) + goto error_exit + } + } + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_submatches != 0 { + pmatch = Xmalloc(tls, uint32(8)*(*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_submatches) + if !(pmatch != 0) { + ret = int32(REG_ESPACE) + goto error_exit + } + } + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states != 0 { + states_seen = Xmalloc(tls, uint32(4)*Uint32FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states)) + if !(states_seen != 0) { + ret = int32(REG_ESPACE) + goto error_exit + } + } + goto retry +retry: + ; + i = 0 + for { + if !(i < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags) { + break + } + **(**Tregoff_t)(__ccgo_up(tags + uintptr(i)*4)) = -int32(1) + if match_tags != 0 { + **(**Tregoff_t)(__ccgo_up(match_tags + uintptr(i)*4)) = -int32(1) + } + goto _1 + _1: + ; + i = i + 1 + } + i = 0 + for { + if !(i < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states) { + break + } + **(**int32)(__ccgo_up(states_seen + uintptr(i)*4)) = 0 + goto _2 + _2: + ; + i = i + 1 + } + state = UintptrFromInt32(0) + pos = pos_start + prev_c = **(**Ttre_char_t)(__ccgo_up(bp)) + pos = pos + pos_add_next + v3 = Xmbtowc(tls, bp, str_byte, uint32(MB_LEN_MAX)) + pos_add_next = v3 + if v3 <= 0 { + if pos_add_next < 0 { + ret = int32(REG_NOMATCH) + goto error_exit + } else { + pos_add_next = pos_add_next + 1 + } + } + str_byte = str_byte + uintptr(pos_add_next) + pos_start = pos + next_c_start = int32(**(**Ttre_char_t)(__ccgo_up(bp))) + str_byte_start = str_byte + /* Handle initial states. */ + next_tags = UintptrFromInt32(0) + trans_i = (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Finitial + for { + if !((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate != 0) { + break + } + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions != 0 && ((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_BOL) != 0 && (pos > 0 || reg_notbol != 0) && (prev_c != int32('\n') || !(reg_newline != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_EOL) != 0 && (**(**Ttre_char_t)(__ccgo_up(bp)) != int32('\000') || reg_noteol != 0) && (**(**Ttre_char_t)(__ccgo_up(bp)) != int32('\n') || !(reg_newline != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_BOW) != 0 && (prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0 || !(**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_EOW) != 0 && (!(prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0) || (**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_WB) != 0 && (pos != 0 && **(**Ttre_char_t)(__ccgo_up(bp)) != int32('\000') && BoolInt32(prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0) == BoolInt32(**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_WB_NEG) != 0 && (pos == 0 || **(**Ttre_char_t)(__ccgo_up(bp)) == int32('\000') || BoolInt32(prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0) != BoolInt32(**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0))) { + goto _4 + } + if state == UintptrFromInt32(0) { + /* Start from this state. */ + state = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate + next_tags = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Ftags + } else { + /* Backtrack to this state. */ + if !((*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fnext != 0) { + s = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint32(32)) + if !(s != 0) { + X__tre_mem_destroy(tls, mem) + if tags != 0 { + Xfree(tls, tags) + } + if pmatch != 0 { + Xfree(tls, pmatch) + } + if states_seen != 0 { + Xfree(tls, states_seen) + } + return int32(REG_ESPACE) + } + (*Ttre_backtrack_struct)(unsafe.Pointer(s)).Fprev = stack + (*Ttre_backtrack_struct)(unsafe.Pointer(s)).Fnext = UintptrFromInt32(0) + (*Ttre_backtrack_struct)(unsafe.Pointer(s)).Fitem.Ftags = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint32(4)*Uint32FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags)) + if !((*Ttre_backtrack_struct)(unsafe.Pointer(s)).Fitem.Ftags != 0) { + X__tre_mem_destroy(tls, mem) + if tags != 0 { + Xfree(tls, tags) + } + if pmatch != 0 { + Xfree(tls, pmatch) + } + if states_seen != 0 { + Xfree(tls, states_seen) + } + return int32(REG_ESPACE) + } + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fnext = s + stack = s + } else { + stack = (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fnext + } + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fpos = pos + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstr_byte = str_byte + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstate = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstate_id = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fnext_c = int32(**(**Ttre_char_t)(__ccgo_up(bp))) + i1 = 0 + for { + if !(i1 < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags) { + break + } + **(**Tregoff_t)(__ccgo_up((*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Ftags + uintptr(i1)*4)) = **(**Tregoff_t)(__ccgo_up(tags + uintptr(i1)*4)) + goto _5 + _5: + ; + i1 = i1 + 1 + } + tmp = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Ftags + if tmp != 0 { + for **(**int32)(__ccgo_up(tmp)) >= 0 { + v6 = tmp + tmp += 4 + **(**Tregoff_t)(__ccgo_up((*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Ftags + uintptr(**(**int32)(__ccgo_up(v6)))*4)) = pos + } + } + } + goto _4 + _4: + ; + trans_i += 32 + } + if next_tags != 0 { + for { + if !(**(**int32)(__ccgo_up(next_tags)) >= 0) { + break + } + **(**Tregoff_t)(__ccgo_up(tags + uintptr(**(**int32)(__ccgo_up(next_tags)))*4)) = pos + goto _7 + _7: + ; + next_tags += 4 + } + } + if state == UintptrFromInt32(0) { + goto backtrack + } +_9: + ; + if !(int32(1) != 0) { + goto _8 + } + if state == (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ffinal { + if match_eo < pos || match_eo == pos && match_tags != 0 && _tre_tag_order(tls, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions, tags, match_tags) != 0 { + /* This match wins the previous match. */ + match_eo = pos + if match_tags != 0 { + i2 = 0 + for { + if !(i2 < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags) { + break + } + **(**Tregoff_t)(__ccgo_up(match_tags + uintptr(i2)*4)) = **(**Tregoff_t)(__ccgo_up(tags + uintptr(i2)*4)) + goto _10 + _10: + ; + i2 = i2 + 1 + } + } + } + /* Our TNFAs never have transitions leaving from the final state, + so we jump right to backtracking. */ + goto backtrack + } + /* Go to the next character in the input string. */ + empty_br_match = 0 + trans_i = state + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate != 0 && (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_BACKREF) != 0 { + bt = *(*int32)(unsafe.Pointer(trans_i + 24)) + /* Get the substring we need to match against. Remember to + turn off REG_NOSUB temporarily. */ + _tre_fill_pmatch(tls, Uint32FromInt32(bt+int32(1)), pmatch, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags & ^Int32FromInt32(REG_NOSUB), tnfa, tags, pos) + so = (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(bt)*8))).Frm_so + eo = (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(bt)*8))).Frm_eo + bt_len = eo - so + result = Xstrncmp(tls, string1+uintptr(so), str_byte-uintptr(1), Uint32FromInt32(bt_len)) + if result == 0 { + /* Back reference matched. Check for infinite loop. */ + if bt_len == 0 { + empty_br_match = int32(1) + } + if empty_br_match != 0 && **(**int32)(__ccgo_up(states_seen + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*4)) != 0 { + goto backtrack + } + **(**int32)(__ccgo_up(states_seen + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*4)) = empty_br_match + /* Advance in input string and resync `prev_c', `next_c' + and pos. */ + str_byte = str_byte + uintptr(bt_len-int32(1)) + pos = pos + (bt_len - int32(1)) + prev_c = **(**Ttre_char_t)(__ccgo_up(bp)) + pos = pos + pos_add_next + v3 = Xmbtowc(tls, bp, str_byte, uint32(MB_LEN_MAX)) + pos_add_next = v3 + if v3 <= 0 { + if pos_add_next < 0 { + ret = int32(REG_NOMATCH) + goto error_exit + } else { + pos_add_next = pos_add_next + 1 + } + } + str_byte = str_byte + uintptr(pos_add_next) + } else { + goto backtrack + } + } else { + /* Check for end of string. */ + if **(**Ttre_char_t)(__ccgo_up(bp)) == int32('\000') { + goto backtrack + } + /* Read the next character. */ + prev_c = **(**Ttre_char_t)(__ccgo_up(bp)) + pos = pos + pos_add_next + v3 = Xmbtowc(tls, bp, str_byte, uint32(MB_LEN_MAX)) + pos_add_next = v3 + if v3 <= 0 { + if pos_add_next < 0 { + ret = int32(REG_NOMATCH) + goto error_exit + } else { + pos_add_next = pos_add_next + 1 + } + } + str_byte = str_byte + uintptr(pos_add_next) + } + next_state = UintptrFromInt32(0) + trans_i = state + for { + if !((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate != 0) { + break + } + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fcode_min <= Uint32FromInt32(prev_c) && (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fcode_max >= Uint32FromInt32(prev_c) { + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions != 0 && ((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_BOL) != 0 && (pos > 0 || reg_notbol != 0) && (prev_c != int32('\n') || !(reg_newline != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_EOL) != 0 && (**(**Ttre_char_t)(__ccgo_up(bp)) != int32('\000') || reg_noteol != 0) && (**(**Ttre_char_t)(__ccgo_up(bp)) != int32('\n') || !(reg_newline != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_BOW) != 0 && (prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0 || !(**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_EOW) != 0 && (!(prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0) || (**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_WB) != 0 && (pos != 0 && **(**Ttre_char_t)(__ccgo_up(bp)) != int32('\000') && BoolInt32(prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0) == BoolInt32(**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_WB_NEG) != 0 && (pos == 0 || **(**Ttre_char_t)(__ccgo_up(bp)) == int32('\000') || BoolInt32(prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0) != BoolInt32(**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || ((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_CHAR_CLASS) != 0 && !((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags&Int32FromInt32(REG_ICASE) != 0) && !(Xiswctype(tls, Uint32FromInt32(prev_c), *(*Ttre_ctype_t)(unsafe.Pointer(trans_i + 24))) != 0) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_CHAR_CLASS) != 0 && (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags&int32(REG_ICASE) != 0 && !(Xiswctype(tls, Xtowlower(tls, Uint32FromInt32(prev_c)), *(*Ttre_ctype_t)(unsafe.Pointer(trans_i + 24))) != 0) && !(Xiswctype(tls, Xtowupper(tls, Uint32FromInt32(prev_c)), *(*Ttre_ctype_t)(unsafe.Pointer(trans_i + 24))) != 0) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_CHAR_CLASS_NEG) != 0 && _tre_neg_char_classes_match(tls, (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fneg_classes, Uint32FromInt32(prev_c), (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags&int32(REG_ICASE)) != 0)) { + goto _13 + } + if next_state == UintptrFromInt32(0) { + /* First matching transition. */ + next_state = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate + next_tags = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Ftags + } else { + /* Second matching transition. We may need to backtrack here + to take this transition instead of the first one, so we + push this transition in the backtracking stack so we can + jump back here if needed. */ + if !((*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fnext != 0) { + s1 = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint32(32)) + if !(s1 != 0) { + X__tre_mem_destroy(tls, mem) + if tags != 0 { + Xfree(tls, tags) + } + if pmatch != 0 { + Xfree(tls, pmatch) + } + if states_seen != 0 { + Xfree(tls, states_seen) + } + return int32(REG_ESPACE) + } + (*Ttre_backtrack_struct)(unsafe.Pointer(s1)).Fprev = stack + (*Ttre_backtrack_struct)(unsafe.Pointer(s1)).Fnext = UintptrFromInt32(0) + (*Ttre_backtrack_struct)(unsafe.Pointer(s1)).Fitem.Ftags = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint32(4)*Uint32FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags)) + if !((*Ttre_backtrack_struct)(unsafe.Pointer(s1)).Fitem.Ftags != 0) { + X__tre_mem_destroy(tls, mem) + if tags != 0 { + Xfree(tls, tags) + } + if pmatch != 0 { + Xfree(tls, pmatch) + } + if states_seen != 0 { + Xfree(tls, states_seen) + } + return int32(REG_ESPACE) + } + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fnext = s1 + stack = s1 + } else { + stack = (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fnext + } + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fpos = pos + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstr_byte = str_byte + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstate = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstate_id = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fnext_c = int32(**(**Ttre_char_t)(__ccgo_up(bp))) + i3 = 0 + for { + if !(i3 < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags) { + break + } + **(**Tregoff_t)(__ccgo_up((*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Ftags + uintptr(i3)*4)) = **(**Tregoff_t)(__ccgo_up(tags + uintptr(i3)*4)) + goto _14 + _14: + ; + i3 = i3 + 1 + } + tmp1 = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Ftags + for { + if !(tmp1 != 0 && **(**int32)(__ccgo_up(tmp1)) >= 0) { + break + } + **(**Tregoff_t)(__ccgo_up((*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Ftags + uintptr(**(**int32)(__ccgo_up(tmp1)))*4)) = pos + goto _15 + _15: + ; + tmp1 += 4 + } + } + } + goto _13 + _13: + ; + trans_i += 32 + } + if !(next_state != UintptrFromInt32(0)) { + goto _16 + } + /* Matching transitions were found. Take the first one. */ + state = next_state + /* Update the tag values. */ + if next_tags != 0 { + for **(**int32)(__ccgo_up(next_tags)) >= 0 { + v6 = next_tags + next_tags += 4 + **(**Tregoff_t)(__ccgo_up(tags + uintptr(**(**int32)(__ccgo_up(v6)))*4)) = pos + } + } + goto _17 +_16: + ; + goto backtrack +backtrack: + ; + /* A matching transition was not found. Try to backtrack. */ + if (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fprev != 0 { + if (*Ttre_tnfa_transition_t)(unsafe.Pointer((*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstate)).Fassertions&int32(ASSERT_BACKREF) != 0 { + **(**int32)(__ccgo_up(states_seen + uintptr((*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstate_id)*4)) = 0 + } + pos = (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fpos + str_byte = (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstr_byte + state = (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstate + **(**Ttre_char_t)(__ccgo_up(bp)) = (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fnext_c + i4 = 0 + for { + if !(i4 < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags) { + break + } + **(**Tregoff_t)(__ccgo_up(tags + uintptr(i4)*4)) = **(**Tregoff_t)(__ccgo_up((*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Ftags + uintptr(i4)*4)) + goto _19 + _19: + ; + i4 = i4 + 1 + } + stack = (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fprev + } else { + if match_eo < 0 { + /* Try starting from a later position in the input string. */ + /* Check for end of string. */ + if **(**Ttre_char_t)(__ccgo_up(bp)) == int32('\000') { + goto _8 + } + **(**Ttre_char_t)(__ccgo_up(bp)) = next_c_start + str_byte = str_byte_start + goto retry + } else { + goto _8 + } + } +_17: + ; + goto _9 +_8: + ; + if match_eo >= 0 { + v20 = REG_OK + } else { + v20 = int32(REG_NOMATCH) + } + ret = v20 + **(**Tregoff_t)(__ccgo_up(match_end_ofs)) = match_eo + goto error_exit +error_exit: + ; + X__tre_mem_destroy(tls, mem) + if tags != 0 { + Xfree(tls, tags) + } + if pmatch != 0 { + Xfree(tls, pmatch) + } + if states_seen != 0 { + Xfree(tls, states_seen) + } + return ret +} + +/*********************************************************************** + from regexec.c +***********************************************************************/ + +// C documentation +// +// /* Fills the POSIX.2 regmatch_t array according to the TNFA tag and match +// endpoint values. */ +func _tre_fill_pmatch(tls *TLS, nmatch Tsize_t, pmatch uintptr, cflags int32, tnfa uintptr, tags uintptr, match_eo Tregoff_t) { + var i, j uint32 + var parents, submatch_data uintptr + var v1 Tregoff_t + _, _, _, _, _ = i, j, parents, submatch_data, v1 + i = uint32(0) + if match_eo >= 0 && !(cflags&Int32FromInt32(REG_NOSUB) != 0) { + /* Construct submatch offsets from the tags. */ + submatch_data = (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fsubmatch_data + for i < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_submatches && i < nmatch { + if (**(**Ttre_submatch_data_t)(__ccgo_up(submatch_data + uintptr(i)*12))).Fso_tag == (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fend_tag { + (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*8))).Frm_so = match_eo + } else { + (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*8))).Frm_so = **(**Tregoff_t)(__ccgo_up(tags + uintptr((**(**Ttre_submatch_data_t)(__ccgo_up(submatch_data + uintptr(i)*12))).Fso_tag)*4)) + } + if (**(**Ttre_submatch_data_t)(__ccgo_up(submatch_data + uintptr(i)*12))).Feo_tag == (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fend_tag { + (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*8))).Frm_eo = match_eo + } else { + (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*8))).Frm_eo = **(**Tregoff_t)(__ccgo_up(tags + uintptr((**(**Ttre_submatch_data_t)(__ccgo_up(submatch_data + uintptr(i)*12))).Feo_tag)*4)) + } + /* If either of the endpoints were not used, this submatch + was not part of the match. */ + if (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*8))).Frm_so == -int32(1) || (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*8))).Frm_eo == -int32(1) { + v1 = -Int32FromInt32(1) + (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*8))).Frm_eo = v1 + (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*8))).Frm_so = v1 + } + i = i + 1 + } + /* Reset all submatches that are not within all of their parent + submatches. */ + i = uint32(0) + for i < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_submatches && i < nmatch { + if (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*8))).Frm_eo == -int32(1) { + } + parents = (**(**Ttre_submatch_data_t)(__ccgo_up(submatch_data + uintptr(i)*12))).Fparents + if parents != UintptrFromInt32(0) { + j = uint32(0) + for { + if !(**(**int32)(__ccgo_up(parents + uintptr(j)*4)) >= 0) { + break + } + if (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*8))).Frm_so < (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(**(**int32)(__ccgo_up(parents + uintptr(j)*4)))*8))).Frm_so || (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*8))).Frm_eo > (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(**(**int32)(__ccgo_up(parents + uintptr(j)*4)))*8))).Frm_eo { + v1 = -Int32FromInt32(1) + (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*8))).Frm_eo = v1 + (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*8))).Frm_so = v1 + } + goto _2 + _2: + ; + j = j + 1 + } + } + i = i + 1 + } + } + for i < nmatch { + (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*8))).Frm_so = -int32(1) + (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*8))).Frm_eo = -int32(1) + i = i + 1 + } +} + +/* + Wrapper functions for POSIX compatible regexp matching. +*/ + +func Xregexec(tls *TLS, preg uintptr, string1 uintptr, nmatch Tsize_t, pmatch uintptr, eflags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v preg=%v string1=%v nmatch=%v pmatch=%v eflags=%v, (%v:)", tls, preg, string1, nmatch, pmatch, eflags, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var status Treg_errcode_t + var tags, tnfa uintptr + var _ /* eo at bp+0 */ Tregoff_t + _, _, _ = status, tags, tnfa + tnfa = (*Tregex_t)(unsafe.Pointer(preg)).F__opaque + tags = UintptrFromInt32(0) + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags&int32(REG_NOSUB) != 0 { + nmatch = uint32(0) + } + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags > 0 && nmatch > uint32(0) { + tags = Xmalloc(tls, uint32(4)*Uint32FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags)) + if tags == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + } + /* Dispatch to the appropriate matcher. */ + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fhave_backrefs != 0 { + /* The regex has back references, use the backtracking matcher. */ + status = _tre_tnfa_run_backtrack(tls, tnfa, string1, tags, eflags, bp) + } else { + /* Exact matching, no back references, use the parallel matcher. */ + status = _tre_tnfa_run_parallel(tls, tnfa, string1, tags, eflags, bp) + } + if status == REG_OK { + /* A match was found, so fill the submatch registers. */ + _tre_fill_pmatch(tls, nmatch, pmatch, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags, tnfa, tags, **(**Tregoff_t)(__ccgo_up(bp))) + } + if tags != 0 { + Xfree(tls, tags) + } + return status +} + +/* + This memory allocator is for allocating small memory blocks efficiently + in terms of memory overhead and execution speed. The allocated blocks + cannot be freed individually, only all at once. There can be multiple + allocators, though. +*/ + +// C documentation +// +// /* Returns a new memory allocator or NULL if out of memory. */ +func X__tre_mem_new_impl(tls *TLS, provided int32, provided_block uintptr) (r Ttre_mem_t) { + if __ccgo_strace { + trc("tls=%v provided=%v provided_block=%v, (%v:)", tls, provided, provided_block, origin(2)) + defer func() { trc("-> %v", r) }() + } + var mem Ttre_mem_t + _ = mem + if provided != 0 { + mem = provided_block + Xmemset(tls, mem, 0, uint32(24)) + } else { + mem = Xcalloc(tls, uint32(1), uint32(24)) + } + if mem == UintptrFromInt32(0) { + return UintptrFromInt32(0) + } + return mem +} + +// C documentation +// +// /* Frees the memory allocator and all memory allocated with it. */ +func X__tre_mem_destroy(tls *TLS, mem Ttre_mem_t) { + if __ccgo_strace { + trc("tls=%v mem=%v, (%v:)", tls, mem, origin(2)) + } + var l, tmp uintptr + _, _ = l, tmp + l = (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fblocks + for l != UintptrFromInt32(0) { + Xfree(tls, (*Ttre_list_t)(unsafe.Pointer(l)).Fdata) + tmp = (*Ttre_list_t)(unsafe.Pointer(l)).Fnext + Xfree(tls, l) + l = tmp + } + Xfree(tls, mem) +} + +// C documentation +// +// /* Allocates a block of `size' bytes from `mem'. Returns a pointer to the +// allocated block or NULL if an underlying malloc() failed. */ +func X__tre_mem_alloc_impl(tls *TLS, mem Ttre_mem_t, provided int32, provided_block uintptr, zero int32, size Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v mem=%v provided=%v provided_block=%v zero=%v size=%v, (%v:)", tls, mem, provided, provided_block, zero, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + var block_size int32 + var l, ptr uintptr + var v1 uint32 + _, _, _, _ = block_size, l, ptr, v1 + if (*Ttre_mem_struct)(unsafe.Pointer(mem)).Ffailed != 0 { + return UintptrFromInt32(0) + } + if (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fn < size { + if provided != 0 { + if provided_block == UintptrFromInt32(0) { + (*Ttre_mem_struct)(unsafe.Pointer(mem)).Ffailed = int32(1) + return UintptrFromInt32(0) + } + (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fptr = provided_block + (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fn = uint32(TRE_MEM_BLOCK_SIZE) + } else { + if size*uint32(8) > uint32(TRE_MEM_BLOCK_SIZE) { + block_size = Int32FromUint32(size * uint32(8)) + } else { + block_size = int32(TRE_MEM_BLOCK_SIZE) + } + l = Xmalloc(tls, uint32(8)) + if l == UintptrFromInt32(0) { + (*Ttre_mem_struct)(unsafe.Pointer(mem)).Ffailed = int32(1) + return UintptrFromInt32(0) + } + (*Ttre_list_t)(unsafe.Pointer(l)).Fdata = Xmalloc(tls, Uint32FromInt32(block_size)) + if (*Ttre_list_t)(unsafe.Pointer(l)).Fdata == UintptrFromInt32(0) { + Xfree(tls, l) + (*Ttre_mem_struct)(unsafe.Pointer(mem)).Ffailed = int32(1) + return UintptrFromInt32(0) + } + (*Ttre_list_t)(unsafe.Pointer(l)).Fnext = UintptrFromInt32(0) + if (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fcurrent != UintptrFromInt32(0) { + (*Ttre_list_t)(unsafe.Pointer((*Ttre_mem_struct)(unsafe.Pointer(mem)).Fcurrent)).Fnext = l + } + if (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fblocks == UintptrFromInt32(0) { + (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fblocks = l + } + (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fcurrent = l + (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fptr = (*Ttre_list_t)(unsafe.Pointer(l)).Fdata + (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fn = Uint32FromInt32(block_size) + } + } + /* Make sure the next pointer will be aligned. */ + if (Uint32FromInt32(int32((*Ttre_mem_struct)(unsafe.Pointer(mem)).Fptr))+size)%uint32(4) != 0 { + v1 = uint32(4) - (Uint32FromInt32(int32((*Ttre_mem_struct)(unsafe.Pointer(mem)).Fptr))+size)%uint32(4) + } else { + v1 = uint32(0) + } + size = size + v1 + /* Allocate from current block. */ + ptr = (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fptr + **(**uintptr)(__ccgo_up(mem + 8)) += uintptr(size) + **(**Tsize_t)(__ccgo_up(mem + 12)) -= size + /* Set to zero if needed. */ + if zero != 0 { + Xmemset(tls, ptr, 0, size) + } + return ptr +} + +const MAXSIZE = 1 +const MINSIZE = 8 + +type TACTION = int32 + +const _FIND = 0 +const _ENTER = 1 + +type TVISIT = int32 + +const _preorder = 0 +const _postorder = 1 +const _endorder = 2 +const _leaf = 3 + +type TENTRY = struct { + Fkey uintptr + Fdata uintptr +} + +type Tentry = TENTRY + +type Thsearch_data = struct { + F__tab uintptr + F__unused1 uint32 + F__unused2 uint32 +} + +type Tqelem = struct { + Fq_forw uintptr + Fq_back uintptr + Fq_data [1]int8 +} + +/* +open addressing hash table with 2^n table size +quadratic probing is used in case of hash collision +tab indices and hash are size_t +after resize fails with ENOMEM the state of tab is still usable + +with the posix api items cannot be iterated and length cannot be queried +*/ + +type t__tab = struct { + Fentries uintptr + Fmask Tsize_t + Fused Tsize_t +} + +var _htab Thsearch_data + +func _keyhash(tls *TLS, k uintptr) (r Tsize_t) { + var h Tsize_t + var p, v1 uintptr + _, _, _ = h, p, v1 + p = k + h = uint32(0) + for **(**uint8)(__ccgo_up(p)) != 0 { + v1 = p + p = p + 1 + h = uint32(31)*h + uint32(**(**uint8)(__ccgo_up(v1))) + } + return h +} + +func _resize(tls *TLS, nel Tsize_t, htab uintptr) (r int32) { + var e, newe, oldtab uintptr + var i, j, newsize, oldsize, v4 Tsize_t + _, _, _, _, _, _, _, _ = e, i, j, newe, newsize, oldsize, oldtab, v4 + oldsize = (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fmask + uint32(1) + oldtab = (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fentries + if nel > Uint32FromInt32(-Int32FromInt32(1))/Uint32FromInt32(2)+Uint32FromInt32(1) { + nel = Uint32FromInt32(-Int32FromInt32(1))/Uint32FromInt32(2) + Uint32FromInt32(1) + } + newsize = uint32(MINSIZE) + for { + if !(newsize < nel) { + break + } + goto _1 + _1: + ; + newsize = newsize * uint32(2) + } + (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fentries = Xcalloc(tls, newsize, uint32(8)) + if !((*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fentries != 0) { + (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fentries = oldtab + return 0 + } + (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fmask = newsize - uint32(1) + if !(oldtab != 0) { + return int32(1) + } + e = oldtab + for { + if !(e < oldtab+uintptr(oldsize)*8) { + break + } + if (*TENTRY)(unsafe.Pointer(e)).Fkey != 0 { + i = _keyhash(tls, (*TENTRY)(unsafe.Pointer(e)).Fkey) + j = Uint32FromInt32(1) + for { + newe = (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fentries + uintptr(i&(*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fmask)*8 + if !((*TENTRY)(unsafe.Pointer(newe)).Fkey != 0) { + break + } + goto _3 + _3: + ; + v4 = j + j = j + 1 + i = i + v4 + } + **(**TENTRY)(__ccgo_up(newe)) = **(**TENTRY)(__ccgo_up(e)) + } + goto _2 + _2: + ; + e += 8 + } + Xfree(tls, oldtab) + return int32(1) +} + +func Xhcreate(tls *TLS, nel Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v nel=%v, (%v:)", tls, nel, origin(2)) + defer func() { trc("-> %v", r) }() + } + return ___hcreate_r(tls, nel, uintptr(unsafe.Pointer(&_htab))) +} + +func Xhdestroy(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + ___hdestroy_r(tls, uintptr(unsafe.Pointer(&_htab))) +} + +func _lookup(tls *TLS, key uintptr, hash Tsize_t, htab uintptr) (r uintptr) { + var e uintptr + var i, j, v2 Tsize_t + _, _, _, _ = e, i, j, v2 + i = hash + j = Uint32FromInt32(1) + for { + e = (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fentries + uintptr(i&(*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fmask)*8 + if !((*TENTRY)(unsafe.Pointer(e)).Fkey != 0) || Xstrcmp(tls, (*TENTRY)(unsafe.Pointer(e)).Fkey, key) == 0 { + break + } + goto _1 + _1: + ; + v2 = j + j = j + 1 + i = i + v2 + } + return e +} + +func Xhsearch(tls *TLS, item TENTRY, action TACTION) (r uintptr) { + if __ccgo_strace { + trc("tls=%v item=%v action=%v, (%v:)", tls, item, action, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* e at bp+0 */ uintptr + ___hsearch_r(tls, item, action, bp, uintptr(unsafe.Pointer(&_htab))) + return **(**uintptr)(__ccgo_up(bp)) +} + +func ___hcreate_r(tls *TLS, nel Tsize_t, htab uintptr) (r1 int32) { + var r int32 + _ = r + (*Thsearch_data)(unsafe.Pointer(htab)).F__tab = Xcalloc(tls, uint32(1), uint32(12)) + if !((*Thsearch_data)(unsafe.Pointer(htab)).F__tab != 0) { + return 0 + } + r = _resize(tls, nel, htab) + if r == 0 { + Xfree(tls, (*Thsearch_data)(unsafe.Pointer(htab)).F__tab) + (*Thsearch_data)(unsafe.Pointer(htab)).F__tab = uintptr(0) + } + return r +} + +func ___hdestroy_r(tls *TLS, htab uintptr) { + if (*Thsearch_data)(unsafe.Pointer(htab)).F__tab != 0 { + Xfree(tls, (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fentries) + } + Xfree(tls, (*Thsearch_data)(unsafe.Pointer(htab)).F__tab) + (*Thsearch_data)(unsafe.Pointer(htab)).F__tab = uintptr(0) +} + +func ___hsearch_r(tls *TLS, item TENTRY, action TACTION, retval uintptr, htab uintptr) (r int32) { + var e, v2 uintptr + var hash, v1 Tsize_t + _, _, _, _ = e, hash, v1, v2 + hash = _keyhash(tls, item.Fkey) + e = _lookup(tls, item.Fkey, hash, htab) + if (*TENTRY)(unsafe.Pointer(e)).Fkey != 0 { + **(**uintptr)(__ccgo_up(retval)) = e + return int32(1) + } + if action == int32(_FIND) { + **(**uintptr)(__ccgo_up(retval)) = uintptr(0) + return 0 + } + **(**TENTRY)(__ccgo_up(e)) = item + v2 = (*Thsearch_data)(unsafe.Pointer(htab)).F__tab + 8 + *(*Tsize_t)(unsafe.Pointer(v2)) = *(*Tsize_t)(unsafe.Pointer(v2)) + 1 + v1 = *(*Tsize_t)(unsafe.Pointer(v2)) + if v1 > (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fmask-(*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fmask/uint32(4) { + if !(_resize(tls, uint32(2)*(*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fused, htab) != 0) { + (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fused = (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fused - 1 + (*TENTRY)(unsafe.Pointer(e)).Fkey = uintptr(0) + **(**uintptr)(__ccgo_up(retval)) = uintptr(0) + return 0 + } + e = _lookup(tls, item.Fkey, hash, htab) + } + **(**uintptr)(__ccgo_up(retval)) = e + return int32(1) +} + +type Tnode = struct { + Fnext uintptr + Fprev uintptr +} + +func Xinsque(tls *TLS, element uintptr, pred uintptr) { + if __ccgo_strace { + trc("tls=%v element=%v pred=%v, (%v:)", tls, element, pred, origin(2)) + } + var e, p, v1 uintptr + _, _, _ = e, p, v1 + e = element + p = pred + if !(p != 0) { + v1 = UintptrFromInt32(0) + (*Tnode)(unsafe.Pointer(e)).Fprev = v1 + (*Tnode)(unsafe.Pointer(e)).Fnext = v1 + return + } + (*Tnode)(unsafe.Pointer(e)).Fnext = (*Tnode)(unsafe.Pointer(p)).Fnext + (*Tnode)(unsafe.Pointer(e)).Fprev = p + (*Tnode)(unsafe.Pointer(p)).Fnext = e + if (*Tnode)(unsafe.Pointer(e)).Fnext != 0 { + (*Tnode)(unsafe.Pointer((*Tnode)(unsafe.Pointer(e)).Fnext)).Fprev = e + } +} + +func Xremque(tls *TLS, element uintptr) { + if __ccgo_strace { + trc("tls=%v element=%v, (%v:)", tls, element, origin(2)) + } + var e uintptr + _ = e + e = element + if (*Tnode)(unsafe.Pointer(e)).Fnext != 0 { + (*Tnode)(unsafe.Pointer((*Tnode)(unsafe.Pointer(e)).Fnext)).Fprev = (*Tnode)(unsafe.Pointer(e)).Fprev + } + if (*Tnode)(unsafe.Pointer(e)).Fprev != 0 { + (*Tnode)(unsafe.Pointer((*Tnode)(unsafe.Pointer(e)).Fprev)).Fnext = (*Tnode)(unsafe.Pointer(e)).Fnext + } +} + +type t__ccgo_fp__Xlsearch_4 = func(*TLS, uintptr, uintptr) int32 + +func Xlsearch(tls *TLS, key uintptr, base uintptr, nelp uintptr, width Tsize_t, __ccgo_fp_compar uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v base=%v nelp=%v width=%v __ccgo_fp_compar=%v, (%v:)", tls, key, base, nelp, width, __ccgo_fp_compar, origin(2)) + defer func() { trc("-> %v", r) }() + } + var i, n Tsize_t + var p uintptr + var v1 t__predefined_size_t + _, _, _, _ = i, n, p, v1 + defer func() {}() + v1 = width + p = base + n = **(**Tsize_t)(__ccgo_up(nelp)) + i = uint32(0) + for { + if !(i < n) { + break + } + if (*(*func(*TLS, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_compar})))(tls, key, p+uintptr(i)*uintptr(v1)) == 0 { + return p + uintptr(i)*uintptr(v1) + } + goto _2 + _2: + ; + i = i + 1 + } + **(**Tsize_t)(__ccgo_up(nelp)) = n + uint32(1) + return Xmemcpy(tls, p+uintptr(n)*uintptr(v1), key, width) +} + +type t__ccgo_fp__Xlfind_4 = func(*TLS, uintptr, uintptr) int32 + +func Xlfind(tls *TLS, key uintptr, base uintptr, nelp uintptr, width Tsize_t, __ccgo_fp_compar uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v base=%v nelp=%v width=%v __ccgo_fp_compar=%v, (%v:)", tls, key, base, nelp, width, __ccgo_fp_compar, origin(2)) + defer func() { trc("-> %v", r) }() + } + var i, n Tsize_t + var p uintptr + var v1 t__predefined_size_t + _, _, _, _ = i, n, p, v1 + defer func() {}() + v1 = width + p = base + n = **(**Tsize_t)(__ccgo_up(nelp)) + i = uint32(0) + for { + if !(i < n) { + break + } + if (*(*func(*TLS, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_compar})))(tls, key, p+uintptr(i)*uintptr(v1)) == 0 { + return p + uintptr(i)*uintptr(v1) + } + goto _2 + _2: + ; + i = i + 1 + } + return uintptr(0) +} + +const MAXH = 0 + +type Tnode1 = struct { + Fkey uintptr + Fa [2]uintptr + Fh int32 +} + +type t__ccgo_fp__Xtdelete_2 = func(*TLS, uintptr, uintptr) int32 + +func Xtdelete(tls *TLS, key uintptr, rootp uintptr, __ccgo_fp_cmp uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v rootp=%v __ccgo_fp_cmp=%v, (%v:)", tls, key, rootp, __ccgo_fp_cmp, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a [49]uintptr + var c, i, v1 int32 + var child, deleted, n, parent uintptr + _, _, _, _, _, _, _, _ = a, c, child, deleted, i, n, parent, v1 + if !(rootp != 0) { + return uintptr(0) + } + n = **(**uintptr)(__ccgo_up(rootp)) + i = 0 + /* *a[0] is an arbitrary non-null pointer that is returned when + the root node is deleted. */ + v1 = i + i = i + 1 + a[v1] = rootp + v1 = i + i = i + 1 + a[v1] = rootp + for { + if !(n != 0) { + return uintptr(0) + } + c = (*(*func(*TLS, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cmp})))(tls, key, (*Tnode1)(unsafe.Pointer(n)).Fkey) + if !(c != 0) { + break + } + v1 = i + i = i + 1 + a[v1] = n + 4 + BoolUintptr(c > 0)*4 + n = **(**uintptr)(__ccgo_up(n + 4 + BoolUintptr(c > 0)*4)) + goto _3 + _3: + } + parent = **(**uintptr)(__ccgo_up(a[i-int32(2)])) + if **(**uintptr)(__ccgo_up(n + 4)) != 0 { + /* free the preceding node instead of the deleted one. */ + deleted = n + v1 = i + i = i + 1 + a[v1] = n + 4 + n = **(**uintptr)(__ccgo_up(n + 4)) + for **(**uintptr)(__ccgo_up(n + 4 + 1*4)) != 0 { + v1 = i + i = i + 1 + a[v1] = n + 4 + 1*4 + n = **(**uintptr)(__ccgo_up(n + 4 + 1*4)) + } + (*Tnode1)(unsafe.Pointer(deleted)).Fkey = (*Tnode1)(unsafe.Pointer(n)).Fkey + child = **(**uintptr)(__ccgo_up(n + 4)) + } else { + child = **(**uintptr)(__ccgo_up(n + 4 + 1*4)) + } + /* freed node has at most one child, move it up and rebalance. */ + Xfree(tls, n) + i = i - 1 + v1 = i + **(**uintptr)(__ccgo_up(a[v1])) = child + for { + i = i - 1 + v1 = i + if !(v1 != 0 && X__tsearch_balance(tls, a[i]) != 0) { + break + } + } + return parent +} + +type t__ccgo_fp__Xtdestroy_1 = func(*TLS, uintptr) + +func Xtdestroy(tls *TLS, root uintptr, __ccgo_fp_freekey uintptr) { + if __ccgo_strace { + trc("tls=%v root=%v __ccgo_fp_freekey=%v, (%v:)", tls, root, __ccgo_fp_freekey, origin(2)) + } + var r uintptr + _ = r + r = root + if r == uintptr(0) { + return + } + Xtdestroy(tls, **(**uintptr)(__ccgo_up(r + 4)), __ccgo_fp_freekey) + Xtdestroy(tls, **(**uintptr)(__ccgo_up(r + 4 + 1*4)), __ccgo_fp_freekey) + if __ccgo_fp_freekey != 0 { + (*(*func(*TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_freekey})))(tls, (*Tnode1)(unsafe.Pointer(r)).Fkey) + } + Xfree(tls, r) +} + +type t__ccgo_fp__Xtfind_2 = func(*TLS, uintptr, uintptr) int32 + +func Xtfind(tls *TLS, key uintptr, rootp uintptr, __ccgo_fp_cmp uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v rootp=%v __ccgo_fp_cmp=%v, (%v:)", tls, key, rootp, __ccgo_fp_cmp, origin(2)) + defer func() { trc("-> %v", r) }() + } + var c int32 + var n uintptr + _, _ = c, n + if !(rootp != 0) { + return uintptr(0) + } + n = **(**uintptr)(__ccgo_up(rootp)) + for { + if !(n != 0) { + break + } + c = (*(*func(*TLS, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cmp})))(tls, key, (*Tnode1)(unsafe.Pointer(n)).Fkey) + if !(c != 0) { + break + } + n = **(**uintptr)(__ccgo_up(n + 4 + BoolUintptr(c > 0)*4)) + goto _1 + _1: + } + return n +} + +func _height(tls *TLS, n uintptr) (r int32) { + var v1 int32 + _ = v1 + if n != 0 { + v1 = (*Tnode1)(unsafe.Pointer(n)).Fh + } else { + v1 = 0 + } + return v1 +} + +func _rot(tls *TLS, p uintptr, x uintptr, dir int32) (r int32) { + var hx, hz int32 + var y, z uintptr + _, _, _, _ = hx, hz, y, z + y = **(**uintptr)(__ccgo_up(x + 4 + uintptr(dir)*4)) + z = **(**uintptr)(__ccgo_up(y + 4 + BoolUintptr(!(dir != 0))*4)) + hx = (*Tnode1)(unsafe.Pointer(x)).Fh + hz = _height(tls, z) + if hz > _height(tls, **(**uintptr)(__ccgo_up(y + 4 + uintptr(dir)*4))) { + /* + * x + * / \ dir z + * A y / * / \ --> x y + * z D /| | * / \ A B C D + * B C + */ + **(**uintptr)(__ccgo_up(x + 4 + uintptr(dir)*4)) = **(**uintptr)(__ccgo_up(z + 4 + BoolUintptr(!(dir != 0))*4)) + **(**uintptr)(__ccgo_up(y + 4 + BoolUintptr(!(dir != 0))*4)) = **(**uintptr)(__ccgo_up(z + 4 + uintptr(dir)*4)) + **(**uintptr)(__ccgo_up(z + 4 + BoolUintptr(!(dir != 0))*4)) = x + **(**uintptr)(__ccgo_up(z + 4 + uintptr(dir)*4)) = y + (*Tnode1)(unsafe.Pointer(x)).Fh = hz + (*Tnode1)(unsafe.Pointer(y)).Fh = hz + (*Tnode1)(unsafe.Pointer(z)).Fh = hz + int32(1) + } else { + /* + * x y + * / \ / * A y --> x D + * / \ / * z D A z + */ + **(**uintptr)(__ccgo_up(x + 4 + uintptr(dir)*4)) = z + **(**uintptr)(__ccgo_up(y + 4 + BoolUintptr(!(dir != 0))*4)) = x + (*Tnode1)(unsafe.Pointer(x)).Fh = hz + int32(1) + (*Tnode1)(unsafe.Pointer(y)).Fh = hz + int32(2) + z = y + } + **(**uintptr)(__ccgo_up(p)) = z + return (*Tnode1)(unsafe.Pointer(z)).Fh - hx +} + +// C documentation +// +// /* balance *p, return 0 if height is unchanged. */ +func X__tsearch_balance(tls *TLS, p uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v p=%v, (%v:)", tls, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + var h0, h1, old, v1 int32 + var n uintptr + _, _, _, _, _ = h0, h1, n, old, v1 + n = **(**uintptr)(__ccgo_up(p)) + h0 = _height(tls, **(**uintptr)(__ccgo_up(n + 4))) + h1 = _height(tls, **(**uintptr)(__ccgo_up(n + 4 + 1*4))) + if Uint32FromInt32(h0-h1)+uint32(1) < uint32(3) { + old = (*Tnode1)(unsafe.Pointer(n)).Fh + if h0 < h1 { + v1 = h1 + int32(1) + } else { + v1 = h0 + int32(1) + } + (*Tnode1)(unsafe.Pointer(n)).Fh = v1 + return (*Tnode1)(unsafe.Pointer(n)).Fh - old + } + return _rot(tls, p, n, BoolInt32(h0 < h1)) +} + +type t__ccgo_fp__Xtsearch_2 = func(*TLS, uintptr, uintptr) int32 + +func Xtsearch(tls *TLS, key uintptr, rootp uintptr, __ccgo_fp_cmp uintptr) (r1 uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v rootp=%v __ccgo_fp_cmp=%v, (%v:)", tls, key, rootp, __ccgo_fp_cmp, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var a [48]uintptr + var c, i, v1 int32 + var n, r, v4 uintptr + var v7 bool + _, _, _, _, _, _, _, _ = a, c, i, n, r, v1, v4, v7 + if !(rootp != 0) { + return uintptr(0) + } + n = **(**uintptr)(__ccgo_up(rootp)) + i = 0 + v1 = i + i = i + 1 + a[v1] = rootp + for { + if !(n != 0) { + break + } + c = (*(*func(*TLS, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cmp})))(tls, key, (*Tnode1)(unsafe.Pointer(n)).Fkey) + if !(c != 0) { + return n + } + v1 = i + i = i + 1 + a[v1] = n + 4 + BoolUintptr(c > 0)*4 + n = **(**uintptr)(__ccgo_up(n + 4 + BoolUintptr(c > 0)*4)) + goto _2 + _2: + } + r = Xmalloc(tls, uint32(16)) + if !(r != 0) { + return uintptr(0) + } + (*Tnode1)(unsafe.Pointer(r)).Fkey = key + v4 = UintptrFromInt32(0) + **(**uintptr)(__ccgo_up(r + 4 + 1*4)) = v4 + **(**uintptr)(__ccgo_up(r + 4)) = v4 + (*Tnode1)(unsafe.Pointer(r)).Fh = int32(1) + /* insert new node, rebalance ancestors. */ + i = i - 1 + v1 = i + **(**uintptr)(__ccgo_up(a[v1])) = r + for { + if v7 = i != 0; v7 { + i = i - 1 + v1 = i + } + if !(v7 && X__tsearch_balance(tls, a[v1]) != 0) { + break + } + } + return r +} + +func _walk(tls *TLS, r uintptr, __ccgo_fp_action uintptr, d int32) { + if !(r != 0) { + return + } + if (*Tnode1)(unsafe.Pointer(r)).Fh == int32(1) { + (*(*func(*TLS, uintptr, TVISIT, int32))(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_action})))(tls, r, int32(_leaf), d) + } else { + (*(*func(*TLS, uintptr, TVISIT, int32))(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_action})))(tls, r, int32(_preorder), d) + _walk(tls, **(**uintptr)(__ccgo_up(r + 4)), __ccgo_fp_action, d+int32(1)) + (*(*func(*TLS, uintptr, TVISIT, int32))(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_action})))(tls, r, int32(_postorder), d) + _walk(tls, **(**uintptr)(__ccgo_up(r + 4 + 1*4)), __ccgo_fp_action, d+int32(1)) + (*(*func(*TLS, uintptr, TVISIT, int32))(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_action})))(tls, r, int32(_endorder), d) + } +} + +type t__ccgo_fp__Xtwalk_1 = func(*TLS, uintptr, int32, int32) + +func Xtwalk(tls *TLS, root uintptr, __ccgo_fp_action uintptr) { + if __ccgo_strace { + trc("tls=%v root=%v __ccgo_fp_action=%v, (%v:)", tls, root, __ccgo_fp_action, origin(2)) + } + _walk(tls, root, __ccgo_fp_action, 0) +} + +func Xpoll(tls *TLS, fds uintptr, n Tnfds_t, timeout int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fds=%v n=%v timeout=%v, (%v:)", tls, fds, n, timeout, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(___syscall_cp(tls, int32(SYS_poll), int32(fds), Int32FromUint32(n), timeout, 0, 0, 0))) +} + +func Xppoll(tls *TLS, fds uintptr, n Tnfds_t, to uintptr, mask uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fds=%v n=%v to=%v mask=%v, (%v:)", tls, fds, n, to, mask, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var ns, r, v2 int32 + var s Ttime_t + var v1 int64 + var v3 uintptr + var v4 uint64 + _, _, _, _, _, _, _ = ns, r, s, v1, v2, v3, v4 + if to != 0 { + v1 = (*Ttimespec)(unsafe.Pointer(to)).Ftv_sec + } else { + v1 = 0 + } + s = v1 + if to != 0 { + v2 = (*Ttimespec)(unsafe.Pointer(to)).Ftv_nsec + } else { + v2 = 0 + } + ns = v2 + r = -int32(ENOSYS) + if Bool(false) || !!((Uint64FromInt64(s)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) { + if to != 0 { + *(*[2]int64)(unsafe.Pointer(bp)) = [2]int64{ + 0: s, + 1: int64(ns), + } + v3 = bp + } else { + v3 = uintptr(0) + } + r = int32(___syscall_cp(tls, int32(SYS_ppoll_time64), int32(fds), Int32FromUint32(n), int32(v3), int32(mask), int32(Int32FromInt32(_NSIG)/Int32FromInt32(8)), 0)) + } + if Bool(false) || r != -int32(ENOSYS) { + return X__syscall_ret(tls, Uint32FromInt32(r)) + } + if !((Uint64FromInt64(s)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) { + v4 = Uint64FromInt64(s) + } else { + v4 = uint64(0x7fffffff) + (0+Uint64FromInt64(s))>>int32(63) + } + s = int64(Int32FromUint64(v4)) + if to != 0 { + *(*[2]int32)(unsafe.Pointer(bp + 16)) = [2]int32{ + 0: int32(s), + 1: ns, + } + v3 = bp + 16 + } else { + v3 = uintptr(0) + } + return X__syscall_ret(tls, Uint32FromInt32(___syscall_cp(tls, int32(SYS_ppoll), int32(fds), Int32FromUint32(n), int32(v3), int32(mask), int32(Int32FromInt32(_NSIG)/Int32FromInt32(8)), 0))) +} + +func Xpselect(tls *TLS, n int32, rfds uintptr, wfds uintptr, efds uintptr, ts uintptr, mask uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v n=%v rfds=%v wfds=%v efds=%v ts=%v mask=%v, (%v:)", tls, n, rfds, wfds, efds, ts, mask, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var ns, r, v2 int32 + var s Ttime_t + var v1 int64 + var v3 uintptr + var v4 uint64 + var _ /* data at bp+24 */ [2]Tsyscall_arg_t + _, _, _, _, _, _, _ = ns, r, s, v1, v2, v3, v4 + **(**[2]Tsyscall_arg_t)(__ccgo_up(bp + 24)) = [2]Tsyscall_arg_t{ + 0: Int32FromUint32(uint32(mask)), + 1: int32(Int32FromInt32(_NSIG) / Int32FromInt32(8)), + } + if ts != 0 { + v1 = (*Ttimespec)(unsafe.Pointer(ts)).Ftv_sec + } else { + v1 = 0 + } + s = v1 + if ts != 0 { + v2 = (*Ttimespec)(unsafe.Pointer(ts)).Ftv_nsec + } else { + v2 = 0 + } + ns = v2 + r = -int32(ENOSYS) + if Bool(false) || !!((Uint64FromInt64(s)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) { + if ts != 0 { + *(*[2]int64)(unsafe.Pointer(bp)) = [2]int64{ + 0: s, + 1: int64(ns), + } + v3 = bp + } else { + v3 = uintptr(0) + } + r = int32(___syscall_cp(tls, int32(SYS_pselect6_time64), n, int32(rfds), int32(wfds), int32(efds), int32(v3), int32(bp+24))) + } + if Bool(false) || r != -int32(ENOSYS) { + return X__syscall_ret(tls, Uint32FromInt32(r)) + } + if !((Uint64FromInt64(s)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) { + v4 = Uint64FromInt64(s) + } else { + v4 = uint64(0x7fffffff) + (0+Uint64FromInt64(s))>>int32(63) + } + s = int64(Int32FromUint64(v4)) + if ts != 0 { + *(*[2]int32)(unsafe.Pointer(bp + 16)) = [2]int32{ + 0: int32(s), + 1: ns, + } + v3 = bp + 16 + } else { + v3 = uintptr(0) + } + return X__syscall_ret(tls, Uint32FromInt32(___syscall_cp(tls, int32(SYS_pselect6), n, int32(rfds), int32(wfds), int32(efds), int32(v3), int32(bp+24)))) +} + +func Xselect(tls *TLS, n int32, rfds uintptr, wfds uintptr, efds uintptr, tv uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v n=%v rfds=%v wfds=%v efds=%v tv=%v, (%v:)", tls, n, rfds, wfds, efds, tv, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var max_time, s Ttime_t + var ns, r int32 + var us Tsuseconds_t + var v1, v2 int64 + var v3 uintptr + var v4 uint64 + _, _, _, _, _, _, _, _, _ = max_time, ns, r, s, us, v1, v2, v3, v4 + if tv != 0 { + v1 = (*Ttimeval)(unsafe.Pointer(tv)).Ftv_sec + } else { + v1 = 0 + } + s = v1 + if tv != 0 { + v2 = (*Ttimeval)(unsafe.Pointer(tv)).Ftv_usec + } else { + v2 = 0 + } + us = v2 + max_time = Int64FromUint64(Uint64FromUint64(1)<<(Uint32FromInt32(8)*Uint32FromInt64(8)-Uint32FromInt32(1)) - Uint64FromInt32(1)) + if s < 0 || us < 0 { + return X__syscall_ret(tls, Uint32FromInt32(-Int32FromInt32(EINVAL))) + } + if us/int64(1000000) > max_time-s { + s = max_time + us = int64(999999) + ns = int32(999999999) + } else { + s = s + us/int64(1000000) + us = us % int64(1000000) + ns = int32(us * int64(1000)) + } + r = -int32(ENOSYS) + if Bool(false) || !!((Uint64FromInt64(s)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) { + if tv != 0 { + *(*[2]int64)(unsafe.Pointer(bp)) = [2]int64{ + 0: s, + 1: int64(ns), + } + v3 = bp + } else { + v3 = uintptr(0) + } + *(*[2]Tsyscall_arg_t)(unsafe.Pointer(bp + 16)) = [2]Tsyscall_arg_t{ + 1: int32(Int32FromInt32(_NSIG) / Int32FromInt32(8)), + } + r = int32(___syscall_cp(tls, int32(SYS_pselect6_time64), n, int32(rfds), int32(wfds), int32(efds), int32(v3), int32(bp+16))) + } + if Bool(false) || r != -int32(ENOSYS) { + return X__syscall_ret(tls, Uint32FromInt32(r)) + } + if !((Uint64FromInt64(s)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) { + v4 = Uint64FromInt64(s) + } else { + v4 = uint64(0x7fffffff) + (0+Uint64FromInt64(s))>>int32(63) + } + s = int64(Int32FromUint64(v4)) + if tv != 0 { + *(*[2]int32)(unsafe.Pointer(bp + 24)) = [2]int32{ + 0: int32(s), + 1: int32(us), + } + v3 = bp + 24 + } else { + v3 = uintptr(0) + } + return X__syscall_ret(tls, Uint32FromInt32(___syscall_cp(tls, int32(SYS__newselect), n, int32(rfds), int32(wfds), int32(efds), int32(v3), 0))) +} + +var _all_mask = [2]uint32{ + 0: -Uint32FromUint32(1), + 1: -Uint32FromUint32(1), +} + +var _app_mask = [2]uint32{ + 0: uint32(0x7fffffff), + 1: uint32(0xfffffffc), +} + +func X__block_all_sigs(tls *TLS, set uintptr) { + if __ccgo_strace { + trc("tls=%v set=%v, (%v:)", tls, set, origin(2)) + } + X__syscall4(tls, int32(SYS_rt_sigprocmask), int32(Int32FromInt32(SIG_BLOCK)), int32(uintptr(unsafe.Pointer(&_all_mask))), int32(set), int32(Int32FromInt32(_NSIG)/Int32FromInt32(8))) +} + +func X__block_app_sigs(tls *TLS, set uintptr) { + if __ccgo_strace { + trc("tls=%v set=%v, (%v:)", tls, set, origin(2)) + } + X__syscall4(tls, int32(SYS_rt_sigprocmask), int32(Int32FromInt32(SIG_BLOCK)), int32(uintptr(unsafe.Pointer(&_app_mask))), int32(set), int32(Int32FromInt32(_NSIG)/Int32FromInt32(8))) +} + +func X__restore_sigs(tls *TLS, set uintptr) { + if __ccgo_strace { + trc("tls=%v set=%v, (%v:)", tls, set, origin(2)) + } + X__syscall4(tls, int32(SYS_rt_sigprocmask), int32(Int32FromInt32(SIG_SETMASK)), int32(set), int32(Int32FromInt32(0)), int32(Int32FromInt32(_NSIG)/Int32FromInt32(8))) +} + +func Xgetitimer(tls *TLS, which int32, old uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v which=%v old=%v, (%v:)", tls, which, old, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var r int32 + var _ /* old32 at bp+0 */ [4]int32 + _ = r + if uint32(8) > uint32(4) { + r = int32(X__syscall2(tls, int32(SYS_getitimer), which, int32(bp))) + if !(r != 0) { + (*Titimerval)(unsafe.Pointer(old)).Fit_interval.Ftv_sec = int64((**(**[4]int32)(__ccgo_up(bp)))[0]) + (*Titimerval)(unsafe.Pointer(old)).Fit_interval.Ftv_usec = int64((**(**[4]int32)(__ccgo_up(bp)))[int32(1)]) + (*Titimerval)(unsafe.Pointer(old)).Fit_value.Ftv_sec = int64((**(**[4]int32)(__ccgo_up(bp)))[int32(2)]) + (*Titimerval)(unsafe.Pointer(old)).Fit_value.Ftv_usec = int64((**(**[4]int32)(__ccgo_up(bp)))[int32(3)]) + } + return X__syscall_ret(tls, Uint32FromInt32(r)) + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_getitimer), which, int32(old)))) +} + +func Xkill(tls *TLS, pid Tpid_t, sig int32) (r int32) { + if __ccgo_strace { + trc("tls=%v pid=%v sig=%v, (%v:)", tls, pid, sig, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_kill), pid, sig))) +} + +func Xkillpg(tls *TLS, pgid Tpid_t, sig int32) (r int32) { + if __ccgo_strace { + trc("tls=%v pgid=%v sig=%v, (%v:)", tls, pgid, sig, origin(2)) + defer func() { trc("-> %v", r) }() + } + if pgid < 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + return Xkill(tls, -pgid, sig) +} + +func Xpsiginfo(tls *TLS, si uintptr, msg uintptr) { + if __ccgo_strace { + trc("tls=%v si=%v msg=%v, (%v:)", tls, si, msg, origin(2)) + } + Xpsignal(tls, (*Tsiginfo_t)(unsafe.Pointer(si)).Fsi_signo, msg) +} + +func Xpsignal(tls *TLS, sig int32, msg uintptr) { + if __ccgo_strace { + trc("tls=%v sig=%v msg=%v, (%v:)", tls, sig, msg, origin(2)) + } + bp := tls.Alloc(32) + defer tls.Free(32) + var __need_unlock, old_errno, old_mode, v1 int32 + var f, old_locale, s, v2, v3 uintptr + _, _, _, _, _, _, _, _, _ = __need_unlock, f, old_errno, old_locale, old_mode, s, v1, v2, v3 + f = uintptr(unsafe.Pointer(&X__stderr_FILE)) + s = Xstrsignal(tls, sig) + if AtomicLoadPInt32(f+76) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + /* Save stderr's orientation and encoding rule, since psignal is not + * permitted to change them. Save errno and restore it if there is no + * error since fprintf might change it even on success but psignal is + * not permitted to do so. */ + old_locale = (*TFILE)(unsafe.Pointer(f)).Flocale + old_mode = (*TFILE)(unsafe.Pointer(f)).Fmode + old_errno = **(**int32)(__ccgo_up(X__errno_location(tls))) + if msg != 0 { + v2 = msg + } else { + v2 = __ccgo_ts + } + if msg != 0 { + v3 = __ccgo_ts + 289 + } else { + v3 = __ccgo_ts + } + if Xfprintf(tls, f, __ccgo_ts+987, VaList(bp+8, v2, v3, s)) >= 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = old_errno + } + (*TFILE)(unsafe.Pointer(f)).Fmode = old_mode + (*TFILE)(unsafe.Pointer(f)).Flocale = old_locale + if __need_unlock != 0 { + ___unlockfile(tls, f) + } +} + +func Xraise(tls *TLS, sig int32) (r int32) { + if __ccgo_strace { + trc("tls=%v sig=%v, (%v:)", tls, sig, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(128) + defer tls.Free(128) + var ret int32 + var _ /* set at bp+0 */ Tsigset_t + _ = ret + X__block_app_sigs(tls, bp) + ret = X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_tkill), (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Ftid, sig))) + X__restore_sigs(tls, bp) + return ret +} + +/* These functions will not work, but suffice for targets where the + * kernel sigaction structure does not actually use sa_restorer. */ +func X__restore(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } +} + +func X__restore_rt(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } +} + +func Xsetitimer(tls *TLS, which int32, new1 uintptr, old uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v which=%v new1=%v old=%v, (%v:)", tls, which, new1, old, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var is, vs Ttime_t + var ius, r, vus int32 + var _ /* old32 at bp+16 */ [4]int32 + _, _, _, _, _ = is, ius, r, vs, vus + if uint32(8) > uint32(4) { + is = (*Titimerval)(unsafe.Pointer(new1)).Fit_interval.Ftv_sec + vs = (*Titimerval)(unsafe.Pointer(new1)).Fit_value.Ftv_sec + ius = int32((*Titimerval)(unsafe.Pointer(new1)).Fit_interval.Ftv_usec) + vus = int32((*Titimerval)(unsafe.Pointer(new1)).Fit_value.Ftv_usec) + if !!((Uint64FromInt64(is)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) || !!((Uint64FromInt64(vs)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) { + return X__syscall_ret(tls, Uint32FromInt32(-Int32FromInt32(EOPNOTSUPP))) + } + *(*[4]int32)(unsafe.Pointer(bp)) = [4]int32{ + 0: int32(is), + 1: ius, + 2: int32(vs), + 3: vus, + } + r = int32(X__syscall3(tls, int32(SYS_setitimer), which, int32(bp), int32(bp+16))) + if !(r != 0) && old != 0 { + (*Titimerval)(unsafe.Pointer(old)).Fit_interval.Ftv_sec = int64((**(**[4]int32)(__ccgo_up(bp + 16)))[0]) + (*Titimerval)(unsafe.Pointer(old)).Fit_interval.Ftv_usec = int64((**(**[4]int32)(__ccgo_up(bp + 16)))[int32(1)]) + (*Titimerval)(unsafe.Pointer(old)).Fit_value.Ftv_sec = int64((**(**[4]int32)(__ccgo_up(bp + 16)))[int32(2)]) + (*Titimerval)(unsafe.Pointer(old)).Fit_value.Ftv_usec = int64((**(**[4]int32)(__ccgo_up(bp + 16)))[int32(3)]) + } + return X__syscall_ret(tls, Uint32FromInt32(r)) + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_setitimer), which, int32(new1), int32(old)))) +} + +type Tk_sigaction = struct { + Fhandler uintptr + Fflags uint32 + Frestorer uintptr + Fmask [2]uint32 +} + +var _unmask_done int32 +var _handler_set [2]uint32 + +func X__get_handler_set(tls *TLS, set uintptr) { + if __ccgo_strace { + trc("tls=%v set=%v, (%v:)", tls, set, origin(2)) + } + Xmemcpy(tls, set, uintptr(unsafe.Pointer(&_handler_set)), uint32(8)) +} + +func X__libc_sigaction(tls *TLS, sig int32, sa uintptr, old uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v sig=%v sa=%v old=%v, (%v:)", tls, sig, sa, old, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var r, v2 int32 + var v1, v3 uintptr + var _ /* ksa at bp+16 */ Tk_sigaction + var _ /* ksa_old at bp+36 */ Tk_sigaction + var _ /* u at bp+8 */ struct { + Fr [0][2]Tuint32_t + Fv Tuint64_t + } + _, _, _, _ = r, v1, v2, v3 + if sa != 0 { + if uint32(*(*uintptr)(unsafe.Pointer(sa))) > uint32(1) { + v1 = uintptr(unsafe.Pointer(&_handler_set)) + uintptr(Uint32FromInt32(sig-Int32FromInt32(1))/(Uint32FromInt32(8)*Uint32FromInt64(4)))*4 + v2 = Int32FromUint32(uint32(1) << (Uint32FromInt32(sig-Int32FromInt32(1)) % (Uint32FromInt32(8) * Uint32FromInt64(4)))) + if Uint32FromInt64(4) == Uint32FromInt64(4) { + _a_or(tls, v1, v2) + } else { + v3 = v1 + *(*struct { + Fr [0][2]Tuint32_t + Fv Tuint64_t + })(unsafe.Pointer(bp + 8)) = struct { + Fr [0][2]Tuint32_t + Fv Tuint64_t + }{} + *(*uint64)(unsafe.Pointer(bp + 8)) = Uint64FromInt32(v2) + if **(**Tuint32_t)(__ccgo_up(bp + 8)) != 0 { + _a_or(tls, v3, Int32FromUint32(**(**Tuint32_t)(__ccgo_up(bp + 8)))) + } + if **(**Tuint32_t)(__ccgo_up(bp + 8 + 1*4)) != 0 { + _a_or(tls, v3+uintptr(1)*4, Int32FromUint32(**(**Tuint32_t)(__ccgo_up(bp + 8 + 1*4)))) + } + } + /* If pthread_create has not yet been called, + * implementation-internal signals might not + * yet have been unblocked. They must be + * unblocked before any signal handler is + * installed, so that an application cannot + * receive an illegal sigset_t (with them + * blocked) as part of the ucontext_t passed + * to the signal handler. */ + if !(X__libc.Fthreaded != 0) && !(_unmask_done != 0) { + *(*[2]uint32)(unsafe.Pointer(bp)) = [2]uint32{ + 1: Uint32FromUint32(3) << (Int32FromInt32(32) * BoolInt32(Uint32FromInt64(4) > Uint32FromInt32(4))), + } + X__syscall4(tls, int32(SYS_rt_sigprocmask), int32(Int32FromInt32(SIG_UNBLOCK)), int32(bp), int32(Int32FromInt32(0)), int32(Int32FromInt32(_NSIG)/Int32FromInt32(8))) + _unmask_done = int32(1) + } + if !((*Tsigaction)(unsafe.Pointer(sa)).Fsa_flags&Int32FromInt32(SA_RESTART) != 0) { + _a_store(tls, uintptr(unsafe.Pointer(&X__eintr_valid_flag)), int32(1)) + } + } + (**(**Tk_sigaction)(__ccgo_up(bp + 16))).Fhandler = *(*uintptr)(unsafe.Pointer(sa)) + (**(**Tk_sigaction)(__ccgo_up(bp + 16))).Fflags = Uint32FromInt32((*Tsigaction)(unsafe.Pointer(sa)).Fsa_flags) + (**(**Tk_sigaction)(__ccgo_up(bp + 16))).Fflags |= uint32(SA_RESTORER) + if (*Tsigaction)(unsafe.Pointer(sa)).Fsa_flags&int32(SA_SIGINFO) != 0 { + v1 = __ccgo_fp(X__restore_rt) + } else { + v1 = __ccgo_fp(X__restore) + } + (**(**Tk_sigaction)(__ccgo_up(bp + 16))).Frestorer = v1 + Xmemcpy(tls, bp+16+12, sa+4, Uint32FromInt32(Int32FromInt32(_NSIG)/Int32FromInt32(8))) + } + if sa != 0 { + v1 = bp + 16 + } else { + v1 = uintptr(0) + } + if old != 0 { + v3 = bp + 36 + } else { + v3 = uintptr(0) + } + r = int32(X__syscall4(tls, int32(SYS_rt_sigaction), sig, int32(v1), int32(v3), int32(Int32FromInt32(_NSIG)/Int32FromInt32(8)))) + if old != 0 && !(r != 0) { + *(*uintptr)(unsafe.Pointer(old)) = (**(**Tk_sigaction)(__ccgo_up(bp + 36))).Fhandler + (*Tsigaction)(unsafe.Pointer(old)).Fsa_flags = Int32FromUint32((**(**Tk_sigaction)(__ccgo_up(bp + 36))).Fflags) + Xmemcpy(tls, old+4, bp+36+12, Uint32FromInt32(Int32FromInt32(_NSIG)/Int32FromInt32(8))) + } + return X__syscall_ret(tls, Uint32FromInt32(r)) +} + +func X__sigaction(tls *TLS, sig int32, sa uintptr, old uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v sig=%v sa=%v old=%v, (%v:)", tls, sig, sa, old, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var r int32 + var _ /* set at bp+0 */ [2]uint32 + _ = r + if Uint32FromInt32(sig)-uint32(32) < uint32(3) || Uint32FromInt32(sig)-uint32(1) >= Uint32FromInt32(Int32FromInt32(_NSIG)-Int32FromInt32(1)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + /* Doing anything with the disposition of SIGABRT requires a lock, + * so that it cannot be changed while abort is terminating the + * process and so any change made by abort can't be observed. */ + if sig == int32(SIGABRT) { + X__block_all_sigs(tls, bp) + ___lock(tls, uintptr(unsafe.Pointer(&X__abort_lock))) + } + r = X__libc_sigaction(tls, sig, sa, old) + if sig == int32(SIGABRT) { + ___unlock(tls, uintptr(unsafe.Pointer(&X__abort_lock))) + X__restore_sigs(tls, bp) + } + return r +} + +func Xsigaction(tls *TLS, sig int32, sa uintptr, old uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v sig=%v sa=%v old=%v, (%v:)", tls, sig, sa, old, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__sigaction(tls, sig, sa, old) +} + +func Xsigaddset(tls *TLS, set uintptr, sig int32) (r int32) { + if __ccgo_strace { + trc("tls=%v set=%v sig=%v, (%v:)", tls, set, sig, origin(2)) + defer func() { trc("-> %v", r) }() + } + var s uint32 + _ = s + s = Uint32FromInt32(sig - int32(1)) + if s >= Uint32FromInt32(Int32FromInt32(_NSIG)-Int32FromInt32(1)) || Uint32FromInt32(sig)-uint32(32) < uint32(3) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + **(**uint32)(__ccgo_up(set + uintptr(s/uint32(8)/uint32(4))*4)) |= uint32(1) << (s & (Uint32FromInt32(8)*Uint32FromInt64(4) - Uint32FromInt32(1))) + return 0 +} + +func Xsigaltstack(tls *TLS, ss uintptr, old uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v ss=%v old=%v, (%v:)", tls, ss, old, origin(2)) + defer func() { trc("-> %v", r) }() + } + if ss != 0 { + if !((*Tstack_t)(unsafe.Pointer(ss)).Fss_flags&Int32FromInt32(SS_DISABLE) != 0) && (*Tstack_t)(unsafe.Pointer(ss)).Fss_size < uint32(MINSIGSTKSZ) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOMEM) + return -int32(1) + } + if (*Tstack_t)(unsafe.Pointer(ss)).Fss_flags&int32(SS_ONSTACK) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_sigaltstack), int32(ss), int32(old)))) +} + +const SST_SIZE = 8 + +func Xsigandset(tls *TLS, dest uintptr, left uintptr, right uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v dest=%v left=%v right=%v, (%v:)", tls, dest, left, right, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var d, l, r uintptr + var i uint32 + _, _, _, _ = d, i, l, r + i = uint32(0) + d = dest + l = left + r = right + for { + if !(i < uint32(Uint32FromInt32(Int32FromInt32(_NSIG)/Int32FromInt32(8))/Uint32FromInt64(4))) { + break + } + **(**uint32)(__ccgo_up(d + uintptr(i)*4)) = **(**uint32)(__ccgo_up(l + uintptr(i)*4)) & **(**uint32)(__ccgo_up(r + uintptr(i)*4)) + goto _1 + _1: + ; + i = i + 1 + } + return 0 +} + +func Xsigdelset(tls *TLS, set uintptr, sig int32) (r int32) { + if __ccgo_strace { + trc("tls=%v set=%v sig=%v, (%v:)", tls, set, sig, origin(2)) + defer func() { trc("-> %v", r) }() + } + var s uint32 + _ = s + s = Uint32FromInt32(sig - int32(1)) + if s >= Uint32FromInt32(Int32FromInt32(_NSIG)-Int32FromInt32(1)) || Uint32FromInt32(sig)-uint32(32) < uint32(3) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + **(**uint32)(__ccgo_up(set + uintptr(s/uint32(8)/uint32(4))*4)) &= ^(Uint32FromUint32(1) << (s & (Uint32FromInt32(8)*Uint32FromInt64(4) - Uint32FromInt32(1)))) + return 0 +} + +func Xsigemptyset(tls *TLS, set uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v set=%v, (%v:)", tls, set, origin(2)) + defer func() { trc("-> %v", r) }() + } + **(**uint32)(__ccgo_up(set)) = uint32(0) + if Bool(uint32(4) == uint32(4)) || Bool(int32(_NSIG) > int32(65)) { + **(**uint32)(__ccgo_up(set + 1*4)) = uint32(0) + } + if Bool(uint32(4) == uint32(4)) && Bool(int32(_NSIG) > int32(65)) { + **(**uint32)(__ccgo_up(set + 2*4)) = uint32(0) + **(**uint32)(__ccgo_up(set + 3*4)) = uint32(0) + } + return 0 +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xsigfillset(tls *TLS, set uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v set=%v, (%v:)", tls, set, origin(2)) + defer func() { trc("-> %v", r) }() + } + **(**uint32)(__ccgo_up(set)) = uint32(0x7fffffff) + **(**uint32)(__ccgo_up(set + 1*4)) = uint32(0xfffffffc) + if int32(_NSIG) > int32(65) { + **(**uint32)(__ccgo_up(set + 2*4)) = uint32(0xffffffff) + **(**uint32)(__ccgo_up(set + 3*4)) = uint32(0xffffffff) + } + return 0 +} + +func Xsigisemptyset(tls *TLS, set uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v set=%v, (%v:)", tls, set, origin(2)) + defer func() { trc("-> %v", r) }() + } + var i Tsize_t + _ = i + i = uint32(0) + for { + if !(i < Uint32FromInt32(Int32FromInt32(_NSIG)/Int32FromInt32(8))/Uint32FromInt64(4)) { + break + } + if **(**uint32)(__ccgo_up(set + uintptr(i)*4)) != 0 { + return 0 + } + goto _1 + _1: + ; + i = i + 1 + } + return int32(1) +} + +func Xsigismember(tls *TLS, set uintptr, sig int32) (r int32) { + if __ccgo_strace { + trc("tls=%v set=%v sig=%v, (%v:)", tls, set, sig, origin(2)) + defer func() { trc("-> %v", r) }() + } + var s uint32 + _ = s + s = Uint32FromInt32(sig - int32(1)) + if s >= Uint32FromInt32(Int32FromInt32(_NSIG)-Int32FromInt32(1)) { + return 0 + } + return BoolInt32(!!(**(**uint32)(__ccgo_up(set + uintptr(s/uint32(8)/uint32(4))*4))&(Uint32FromUint32(1)<<(s&(Uint32FromInt32(8)*Uint32FromInt64(4)-Uint32FromInt32(1)))) != 0)) +} + +func Xsigorset(tls *TLS, dest uintptr, left uintptr, right uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v dest=%v left=%v right=%v, (%v:)", tls, dest, left, right, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var d, l, r uintptr + var i uint32 + _, _, _, _ = d, i, l, r + i = uint32(0) + d = dest + l = left + r = right + for { + if !(i < uint32(Uint32FromInt32(Int32FromInt32(_NSIG)/Int32FromInt32(8))/Uint32FromInt64(4))) { + break + } + **(**uint32)(__ccgo_up(d + uintptr(i)*4)) = **(**uint32)(__ccgo_up(l + uintptr(i)*4)) | **(**uint32)(__ccgo_up(r + uintptr(i)*4)) + goto _1 + _1: + ; + i = i + 1 + } + return 0 +} + +func Xsigpending(tls *TLS, set uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v set=%v, (%v:)", tls, set, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_rt_sigpending), int32(set), int32(Int32FromInt32(_NSIG)/Int32FromInt32(8))))) +} + +func Xsigprocmask(tls *TLS, how int32, set uintptr, old uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v how=%v set=%v old=%v, (%v:)", tls, how, set, old, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + r = _pthread_sigmask(tls, how, set, old) + if !(r != 0) { + return r + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = r + return -int32(1) +} + +func Xsigqueue(tls *TLS, pid Tpid_t, sig int32, value Tsigval) (r1 int32) { + if __ccgo_strace { + trc("tls=%v pid=%v sig=%v value=%v, (%v:)", tls, pid, sig, value, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(256) + defer tls.Free(256) + var r int32 + var _ /* set at bp+128 */ Tsigset_t + var _ /* si at bp+0 */ Tsiginfo_t + _ = r + Xmemset(tls, bp, 0, uint32(128)) + (**(**Tsiginfo_t)(__ccgo_up(bp))).Fsi_signo = sig + (**(**Tsiginfo_t)(__ccgo_up(bp))).Fsi_code = -int32(1) + *(*Tsigval)(unsafe.Pointer(bp + 12 + 8)) = value + *(*Tuid_t)(unsafe.Pointer(bp + 12 + 4)) = Xgetuid(tls) + X__block_app_sigs(tls, bp+128) + *(*Tpid_t)(unsafe.Pointer(bp + 12)) = Xgetpid(tls) + r = X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_rt_sigqueueinfo), pid, sig, int32(bp)))) + X__restore_sigs(tls, bp+128) + return r +} + +func X__libc_current_sigrtmax(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Int32FromInt32(_NSIG) - Int32FromInt32(1) +} + +func X__libc_current_sigrtmin(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(35) +} + +type t__jmp_buf = [6]uint32 + +type Tjmp_buf = [1]t__jmp_buf_tag + +type t__jmp_buf_tag = struct { + F__jb t__jmp_buf + F__fl uint32 + F__ss [32]uint32 +} + +type Tsigjmp_buf = [1]t__jmp_buf_tag + +func X__sigsetjmp_tail(tls *TLS, jb uintptr, ret int32) (r int32) { + if __ccgo_strace { + trc("tls=%v jb=%v ret=%v, (%v:)", tls, jb, ret, origin(2)) + defer func() { trc("-> %v", r) }() + } + var p, v1, v2 uintptr + _, _, _ = p, v1, v2 + p = jb + 28 + if ret != 0 { + v1 = p + } else { + v1 = uintptr(0) + } + if ret != 0 { + v2 = uintptr(0) + } else { + v2 = p + } + X__syscall4(tls, int32(SYS_rt_sigprocmask), int32(Int32FromInt32(SIG_SETMASK)), int32(v1), int32(v2), int32(Int32FromInt32(_NSIG)/Int32FromInt32(8))) + return ret +} + +func Xsigsuspend(tls *TLS, mask uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v mask=%v, (%v:)", tls, mask, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(___syscall_cp(tls, int32(SYS_rt_sigsuspend), int32(mask), int32(Int32FromInt32(_NSIG)/Int32FromInt32(8)), 0, 0, 0, 0))) +} + +func _do_sigtimedwait(tls *TLS, mask uintptr, si uintptr, ts uintptr) (r1 int32) { + bp := tls.Alloc(32) + defer tls.Free(32) + var ns, r, v2 int32 + var s Ttime_t + var v1 int64 + var v3 uintptr + var v5 uint64 + _, _, _, _, _, _, _ = ns, r, s, v1, v2, v3, v5 + if ts != 0 { + v1 = (*Ttimespec)(unsafe.Pointer(ts)).Ftv_sec + } else { + v1 = 0 + } + s = v1 + if ts != 0 { + v2 = (*Ttimespec)(unsafe.Pointer(ts)).Ftv_nsec + } else { + v2 = 0 + } + ns = v2 + r = -int32(ENOSYS) + if Bool(false) || !!((Uint64FromInt64(s)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) { + if ts != 0 { + *(*[2]int64)(unsafe.Pointer(bp)) = [2]int64{ + 0: s, + 1: int64(ns), + } + v3 = bp + } else { + v3 = uintptr(0) + } + r = int32(___syscall_cp(tls, int32(SYS_rt_sigtimedwait_time64), int32(mask), int32(si), int32(v3), int32(Int32FromInt32(_NSIG)/Int32FromInt32(8)), 0, 0)) + } + if Bool(false) || r != -int32(ENOSYS) { + return r + } + if ts != 0 { + if !((Uint64FromInt64(s)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) { + v5 = Uint64FromInt64(s) + } else { + v5 = uint64(0x7fffffff) + (0+Uint64FromInt64(s))>>int32(63) + } + *(*[2]int32)(unsafe.Pointer(bp + 16)) = [2]int32{ + 0: int32(Int32FromUint64(v5)), + 1: ns, + } + v3 = bp + 16 + } else { + v3 = uintptr(0) + } + return int32(___syscall_cp(tls, int32(SYS_rt_sigtimedwait), int32(mask), int32(si), int32(v3), int32(Int32FromInt32(_NSIG)/Int32FromInt32(8)), 0, 0)) + return r1 +} + +func Xsigtimedwait(tls *TLS, mask uintptr, si uintptr, timeout uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v mask=%v si=%v timeout=%v, (%v:)", tls, mask, si, timeout, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret int32 + _ = ret + for cond := true; cond; cond = ret == -int32(EINTR) { + ret = _do_sigtimedwait(tls, mask, si, timeout) + } + return X__syscall_ret(tls, Uint32FromInt32(ret)) +} + +func Xsigwait(tls *TLS, mask uintptr, sig uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v mask=%v sig=%v, (%v:)", tls, mask, sig, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(128) + defer tls.Free(128) + var _ /* si at bp+0 */ Tsiginfo_t + if Xsigtimedwait(tls, mask, bp, uintptr(0)) < 0 { + return -int32(1) + } + **(**int32)(__ccgo_up(sig)) = (**(**Tsiginfo_t)(__ccgo_up(bp))).Fsi_signo + return 0 +} + +func Xsigwaitinfo(tls *TLS, mask uintptr, si uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v mask=%v si=%v, (%v:)", tls, mask, si, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xsigtimedwait(tls, mask, si, uintptr(0)) +} + +func X__xmknod(tls *TLS, ver int32, path uintptr, mode Tmode_t, dev uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v ver=%v path=%v mode=%v dev=%v, (%v:)", tls, ver, path, mode, dev, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xmknod(tls, path, mode, **(**Tdev_t)(__ccgo_up(dev))) +} + +func X__xmknodat(tls *TLS, ver int32, fd int32, path uintptr, mode Tmode_t, dev uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v ver=%v fd=%v path=%v mode=%v dev=%v, (%v:)", tls, ver, fd, path, mode, dev, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xmknodat(tls, fd, path, mode, **(**Tdev_t)(__ccgo_up(dev))) +} + +func Xchmod(tls *TLS, path uintptr, mode Tmode_t) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v mode=%v, (%v:)", tls, path, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_chmod), int32(path), Int32FromUint32(mode)))) +} + +func Xfchmod(tls *TLS, fd int32, mode Tmode_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v mode=%v, (%v:)", tls, fd, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var ret int32 + var _ /* buf at bp+0 */ [27]int8 + _ = ret + ret = int32(X__syscall2(tls, int32(SYS_fchmod), fd, Int32FromUint32(mode))) + if ret != -int32(EBADF) || X__syscall2(tls, int32(SYS_fcntl64), fd, int32(Int32FromInt32(F_GETFD))) < 0 { + return X__syscall_ret(tls, Uint32FromInt32(ret)) + } + X__procfdname(tls, bp, Uint32FromInt32(fd)) + return X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_chmod), int32(bp), Int32FromUint32(mode)))) +} + +func Xfchmodat(tls *TLS, fd int32, path uintptr, mode Tmode_t, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v path=%v mode=%v flag=%v, (%v:)", tls, fd, path, mode, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(176) + defer tls.Free(176) + var fd2, ret, v1 int32 + var _ /* proc at bp+144 */ [27]int8 + var _ /* st at bp+0 */ Tstat + _, _, _ = fd2, ret, v1 + if !(flag != 0) { + return X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_fchmodat), fd, int32(path), Int32FromUint32(mode)))) + } + ret = int32(X__syscall4(tls, int32(SYS_fchmodat2), fd, int32(path), Int32FromUint32(mode), flag)) + if ret != -int32(ENOSYS) { + return X__syscall_ret(tls, Uint32FromInt32(ret)) + } + if flag != int32(AT_SYMLINK_NOFOLLOW) { + return X__syscall_ret(tls, Uint32FromInt32(-Int32FromInt32(EINVAL))) + } + if Xfstatat(tls, fd, path, bp, flag) != 0 { + return -int32(1) + } + if (**(**Tstat)(__ccgo_up(bp))).Fst_mode&uint32(S_IFMT) == uint32(S_IFLNK) { + return X__syscall_ret(tls, Uint32FromInt32(-Int32FromInt32(EOPNOTSUPP))) + } + v1 = int32(X__syscall3(tls, int32(SYS_openat), fd, int32(path), int32(Int32FromInt32(O_RDONLY)|Int32FromInt32(O_PATH)|Int32FromInt32(O_NOFOLLOW)|Int32FromInt32(O_NOCTTY)|Int32FromInt32(O_CLOEXEC)))) + fd2 = v1 + if v1 < 0 { + if fd2 == -int32(ELOOP) { + return X__syscall_ret(tls, Uint32FromInt32(-Int32FromInt32(EOPNOTSUPP))) + } + return X__syscall_ret(tls, Uint32FromInt32(fd2)) + } + X__procfdname(tls, bp+144, Uint32FromInt32(fd2)) + ret = Xstat(tls, bp+144, bp) + if !(ret != 0) { + if (**(**Tstat)(__ccgo_up(bp))).Fst_mode&uint32(S_IFMT) == uint32(S_IFLNK) { + ret = X__syscall_ret(tls, Uint32FromInt32(-Int32FromInt32(EOPNOTSUPP))) + } else { + ret = X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_fchmodat), int32(-Int32FromInt32(100)), int32(bp+144), Int32FromUint32(mode)))) + } + } + X__syscall1(tls, int32(SYS_close), fd2) + return ret +} + +func X__fstat(tls *TLS, fd int32, st uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v st=%v, (%v:)", tls, fd, st, origin(2)) + defer func() { trc("-> %v", r) }() + } + if fd < 0 { + return X__syscall_ret(tls, Uint32FromInt32(-Int32FromInt32(EBADF))) + } + return X__fstatat(tls, fd, __ccgo_ts, st, int32(AT_EMPTY_PATH)) +} + +func Xfstat(tls *TLS, fd int32, st uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v st=%v, (%v:)", tls, fd, st, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fstat(tls, fd, st) +} + +type Tstatx1 = struct { + Fstx_mask Tuint32_t + Fstx_blksize Tuint32_t + Fstx_attributes Tuint64_t + Fstx_nlink Tuint32_t + Fstx_uid Tuint32_t + Fstx_gid Tuint32_t + Fstx_mode Tuint16_t + Fpad1 Tuint16_t + Fstx_ino Tuint64_t + Fstx_size Tuint64_t + Fstx_blocks Tuint64_t + Fstx_attributes_mask Tuint64_t + Fstx_atime struct { + Ftv_sec Tint64_t + Ftv_nsec Tuint32_t + Fpad Tint32_t + } + Fstx_btime struct { + Ftv_sec Tint64_t + Ftv_nsec Tuint32_t + Fpad Tint32_t + } + Fstx_ctime struct { + Ftv_sec Tint64_t + Ftv_nsec Tuint32_t + Fpad Tint32_t + } + Fstx_mtime struct { + Ftv_sec Tint64_t + Ftv_nsec Tuint32_t + Fpad Tint32_t + } + Fstx_rdev_major Tuint32_t + Fstx_rdev_minor Tuint32_t + Fstx_dev_major Tuint32_t + Fstx_dev_minor Tuint32_t + Fspare [14]Tuint64_t +} + +func _fstatat_statx(tls *TLS, fd int32, path uintptr, st uintptr, flag int32) (r int32) { + bp := tls.Alloc(256) + defer tls.Free(256) + var ret int32 + var _ /* stx at bp+0 */ Tstatx1 + _ = ret + flag = flag | int32(AT_NO_AUTOMOUNT) + ret = int32(X__syscall5(tls, int32(SYS_statx), fd, int32(path), flag, int32(Int32FromInt32(0x7ff)), int32(bp))) + if ret != 0 { + return ret + } + **(**Tstat)(__ccgo_up(st)) = Tstat{ + Fst_dev: uint64((**(**Tstatx1)(__ccgo_up(bp))).Fstx_dev_major)&Uint64FromUint64(0xfffff000)<= 0 && !(**(**int8)(__ccgo_up(path)) != 0) { + ret = int32(X__syscall2(tls, int32(SYS_fstat64), fd, int32(bp))) + if ret == -int32(EBADF) && X__syscall2(tls, int32(SYS_fcntl64), fd, int32(Int32FromInt32(F_GETFD))) >= 0 { + ret = int32(X__syscall4(tls, int32(SYS_fstatat64), fd, int32(path), int32(bp), flag)) + if ret == -int32(EINVAL) { + X__procfdname(tls, bp+96, Uint32FromInt32(fd)) + ret = int32(X__syscall2(tls, int32(SYS_stat64), int32(bp+96), int32(bp))) + } + } + } else { + if (fd == -int32(100) || int32(**(**int8)(__ccgo_up(path))) == int32('/')) && flag == int32(AT_SYMLINK_NOFOLLOW) { + ret = int32(X__syscall2(tls, int32(SYS_lstat64), int32(path), int32(bp))) + } else { + if (fd == -int32(100) || int32(**(**int8)(__ccgo_up(path))) == int32('/')) && !(flag != 0) { + ret = int32(X__syscall2(tls, int32(SYS_stat64), int32(path), int32(bp))) + } else { + ret = int32(X__syscall4(tls, int32(SYS_fstatat64), fd, int32(path), int32(bp), flag)) + } + } + } + if ret != 0 { + return ret + } + **(**Tstat)(__ccgo_up(st)) = Tstat{ + Fst_dev: (**(**Tkstat)(__ccgo_up(bp))).Fst_dev, + Fst_mode: (**(**Tkstat)(__ccgo_up(bp))).Fst_mode, + Fst_nlink: (**(**Tkstat)(__ccgo_up(bp))).Fst_nlink, + Fst_uid: (**(**Tkstat)(__ccgo_up(bp))).Fst_uid, + Fst_gid: (**(**Tkstat)(__ccgo_up(bp))).Fst_gid, + Fst_rdev: (**(**Tkstat)(__ccgo_up(bp))).Fst_rdev, + Fst_size: (**(**Tkstat)(__ccgo_up(bp))).Fst_size, + Fst_blksize: (**(**Tkstat)(__ccgo_up(bp))).Fst_blksize, + Fst_blocks: (**(**Tkstat)(__ccgo_up(bp))).Fst_blocks, + F__st_atim32: struct { + Ftv_sec int32 + Ftv_nsec int32 + }{ + Ftv_sec: (**(**Tkstat)(__ccgo_up(bp))).Fst_atime_sec, + Ftv_nsec: (**(**Tkstat)(__ccgo_up(bp))).Fst_atime_nsec, + }, + F__st_mtim32: struct { + Ftv_sec int32 + Ftv_nsec int32 + }{ + Ftv_sec: (**(**Tkstat)(__ccgo_up(bp))).Fst_mtime_sec, + Ftv_nsec: (**(**Tkstat)(__ccgo_up(bp))).Fst_mtime_nsec, + }, + F__st_ctim32: struct { + Ftv_sec int32 + Ftv_nsec int32 + }{ + Ftv_sec: (**(**Tkstat)(__ccgo_up(bp))).Fst_ctime_sec, + Ftv_nsec: (**(**Tkstat)(__ccgo_up(bp))).Fst_ctime_nsec, + }, + Fst_ino: (**(**Tkstat)(__ccgo_up(bp))).Fst_ino, + Fst_atim: Ttimespec{ + Ftv_sec: int64((**(**Tkstat)(__ccgo_up(bp))).Fst_atime_sec), + Ftv_nsec: (**(**Tkstat)(__ccgo_up(bp))).Fst_atime_nsec, + }, + Fst_mtim: Ttimespec{ + Ftv_sec: int64((**(**Tkstat)(__ccgo_up(bp))).Fst_mtime_sec), + Ftv_nsec: (**(**Tkstat)(__ccgo_up(bp))).Fst_mtime_nsec, + }, + Fst_ctim: Ttimespec{ + Ftv_sec: int64((**(**Tkstat)(__ccgo_up(bp))).Fst_ctime_sec), + Ftv_nsec: (**(**Tkstat)(__ccgo_up(bp))).Fst_ctime_nsec, + }, + } + return 0 +} + +func X__fstatat(tls *TLS, fd int32, path uintptr, st uintptr, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v path=%v st=%v flag=%v, (%v:)", tls, fd, path, st, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret int32 + _ = ret + if uint32(4) < uint32(8) { + ret = _fstatat_statx(tls, fd, path, st, flag) + if ret != -int32(ENOSYS) { + return X__syscall_ret(tls, Uint32FromInt32(ret)) + } + } + ret = _fstatat_kstat(tls, fd, path, st, flag) + return X__syscall_ret(tls, Uint32FromInt32(ret)) +} + +func Xfstatat(tls *TLS, fd int32, path uintptr, st uintptr, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v path=%v st=%v flag=%v, (%v:)", tls, fd, path, st, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fstatat(tls, fd, path, st, flag) +} + +func Xfutimens(tls *TLS, fd int32, times uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v times=%v, (%v:)", tls, fd, times, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xutimensat(tls, fd, uintptr(0), times, 0) +} + +func X__futimesat(tls *TLS, dirfd int32, pathname uintptr, times uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v dirfd=%v pathname=%v times=%v, (%v:)", tls, dirfd, pathname, times, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var i int32 + var v2 uintptr + var _ /* ts at bp+0 */ [2]Ttimespec + _, _ = i, v2 + if times != 0 { + i = 0 + for { + if !(i < int32(2)) { + break + } + if Uint64FromInt64((**(**Ttimeval)(__ccgo_up(times + uintptr(i)*16))).Ftv_usec) >= uint64(1000000) { + return X__syscall_ret(tls, Uint32FromInt32(-Int32FromInt32(EINVAL))) + } + (**(**[2]Ttimespec)(__ccgo_up(bp)))[i].Ftv_sec = (**(**Ttimeval)(__ccgo_up(times + uintptr(i)*16))).Ftv_sec + (**(**[2]Ttimespec)(__ccgo_up(bp)))[i].Ftv_nsec = int32((**(**Ttimeval)(__ccgo_up(times + uintptr(i)*16))).Ftv_usec * int64(1000)) + goto _1 + _1: + ; + i = i + 1 + } + } + if times != 0 { + v2 = bp + } else { + v2 = uintptr(0) + } + return Xutimensat(tls, dirfd, pathname, v2, 0) +} + +func Xfutimesat(tls *TLS, dirfd int32, pathname uintptr, times uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v dirfd=%v pathname=%v times=%v, (%v:)", tls, dirfd, pathname, times, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__futimesat(tls, dirfd, pathname, times) +} + +func Xlchmod(tls *TLS, path uintptr, mode Tmode_t) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v mode=%v, (%v:)", tls, path, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfchmodat(tls, -int32(100), path, mode, int32(AT_SYMLINK_NOFOLLOW)) +} + +func Xlstat(tls *TLS, path uintptr, buf uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v buf=%v, (%v:)", tls, path, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfstatat(tls, -int32(100), path, buf, int32(AT_SYMLINK_NOFOLLOW)) +} + +func Xmkdir(tls *TLS, path uintptr, mode Tmode_t) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v mode=%v, (%v:)", tls, path, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_mkdir), int32(path), Int32FromUint32(mode)))) +} + +func Xmkdirat(tls *TLS, fd int32, path uintptr, mode Tmode_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v path=%v mode=%v, (%v:)", tls, fd, path, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_mkdirat), fd, int32(path), Int32FromUint32(mode)))) +} + +func Xmkfifo(tls *TLS, path uintptr, mode Tmode_t) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v mode=%v, (%v:)", tls, path, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xmknod(tls, path, mode|uint32(S_IFIFO), uint64(0)) +} + +func Xmkfifoat(tls *TLS, fd int32, path uintptr, mode Tmode_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v path=%v mode=%v, (%v:)", tls, fd, path, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xmknodat(tls, fd, path, mode|uint32(S_IFIFO), uint64(0)) +} + +func Xmknod(tls *TLS, path uintptr, mode Tmode_t, dev Tdev_t) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v mode=%v dev=%v, (%v:)", tls, path, mode, dev, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_mknod), int32(path), Int32FromUint32(mode), Int32FromUint64(dev)))) +} + +func Xmknodat(tls *TLS, fd int32, path uintptr, mode Tmode_t, dev Tdev_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v path=%v mode=%v dev=%v, (%v:)", tls, fd, path, mode, dev, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall4(tls, int32(SYS_mknodat), fd, int32(path), Int32FromUint32(mode), Int32FromUint64(dev)))) +} + +func Xstat(tls *TLS, path uintptr, buf uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v buf=%v, (%v:)", tls, path, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfstatat(tls, -int32(100), path, buf, 0) +} + +func ___statfs(tls *TLS, path uintptr, buf uintptr) (r int32) { + **(**Tstatfs)(__ccgo_up(buf)) = Tstatfs{} + return X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_statfs64), int32(path), Int32FromUint32(Uint32FromInt64(84)), int32(buf)))) +} + +func Xfstatfs(tls *TLS, fd int32, buf uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v, (%v:)", tls, fd, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + **(**Tstatfs)(__ccgo_up(buf)) = Tstatfs{} + return X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_fstatfs64), fd, Int32FromUint32(Uint32FromInt64(84)), int32(buf)))) +} + +func _fixup(tls *TLS, out uintptr, in uintptr) { + var v1 uint32 + _ = v1 + **(**Tstatvfs)(__ccgo_up(out)) = Tstatvfs{} + (*Tstatvfs)(unsafe.Pointer(out)).Ff_bsize = (*Tstatfs)(unsafe.Pointer(in)).Ff_bsize + if (*Tstatfs)(unsafe.Pointer(in)).Ff_frsize != 0 { + v1 = (*Tstatfs)(unsafe.Pointer(in)).Ff_frsize + } else { + v1 = (*Tstatfs)(unsafe.Pointer(in)).Ff_bsize + } + (*Tstatvfs)(unsafe.Pointer(out)).Ff_frsize = v1 + (*Tstatvfs)(unsafe.Pointer(out)).Ff_blocks = (*Tstatfs)(unsafe.Pointer(in)).Ff_blocks + (*Tstatvfs)(unsafe.Pointer(out)).Ff_bfree = (*Tstatfs)(unsafe.Pointer(in)).Ff_bfree + (*Tstatvfs)(unsafe.Pointer(out)).Ff_bavail = (*Tstatfs)(unsafe.Pointer(in)).Ff_bavail + (*Tstatvfs)(unsafe.Pointer(out)).Ff_files = (*Tstatfs)(unsafe.Pointer(in)).Ff_files + (*Tstatvfs)(unsafe.Pointer(out)).Ff_ffree = (*Tstatfs)(unsafe.Pointer(in)).Ff_ffree + (*Tstatvfs)(unsafe.Pointer(out)).Ff_favail = (*Tstatfs)(unsafe.Pointer(in)).Ff_ffree + (*Tstatvfs)(unsafe.Pointer(out)).Ff_fsid = Uint32FromInt32(**(**int32)(__ccgo_up(in + 48))) + (*Tstatvfs)(unsafe.Pointer(out)).Ff_flag = (*Tstatfs)(unsafe.Pointer(in)).Ff_flags + (*Tstatvfs)(unsafe.Pointer(out)).Ff_namemax = (*Tstatfs)(unsafe.Pointer(in)).Ff_namelen + (*Tstatvfs)(unsafe.Pointer(out)).Ff_type = (*Tstatfs)(unsafe.Pointer(in)).Ff_type +} + +func Xstatvfs(tls *TLS, path uintptr, buf uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v buf=%v, (%v:)", tls, path, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(96) + defer tls.Free(96) + var _ /* kbuf at bp+0 */ Tstatfs + if ___statfs(tls, path, bp) < 0 { + return -int32(1) + } + _fixup(tls, buf, bp) + return 0 +} + +func Xfstatvfs(tls *TLS, fd int32, buf uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v, (%v:)", tls, fd, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(96) + defer tls.Free(96) + var _ /* kbuf at bp+0 */ Tstatfs + if Xfstatfs(tls, fd, bp) < 0 { + return -int32(1) + } + _fixup(tls, buf, bp) + return 0 +} + +func Xumask(tls *TLS, mode Tmode_t) (r Tmode_t) { + if __ccgo_strace { + trc("tls=%v mode=%v, (%v:)", tls, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Uint32FromInt32(X__syscall_ret(tls, Uint32FromInt32(X__syscall1(tls, int32(SYS_umask), Int32FromUint32(mode))))) +} + +func Xutimensat(tls *TLS, fd int32, path uintptr, times uintptr, flags int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v path=%v times=%v flags=%v, (%v:)", tls, fd, path, times, flags, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var i, ns0, ns1, r int32 + var s0, s1 Ttime_t + var tv, v1 uintptr + var _ /* tmp at bp+48 */ [4]int32 + _, _, _, _, _, _, _, _ = i, ns0, ns1, r, s0, s1, tv, v1 + if times != 0 && (**(**Ttimespec)(__ccgo_up(times))).Ftv_nsec == int32(UTIME_NOW) && (**(**Ttimespec)(__ccgo_up(times + 1*16))).Ftv_nsec == int32(UTIME_NOW) { + times = uintptr(0) + } + r = -int32(ENOSYS) + s0 = 0 + s1 = 0 + ns0 = 0 + ns1 = 0 + if times != 0 { + ns0 = (**(**Ttimespec)(__ccgo_up(times))).Ftv_nsec + ns1 = (**(**Ttimespec)(__ccgo_up(times + 1*16))).Ftv_nsec + if !(ns0 == int32(UTIME_NOW) || ns0 == int32(UTIME_OMIT)) { + s0 = (**(**Ttimespec)(__ccgo_up(times))).Ftv_sec + } + if !(ns1 == int32(UTIME_NOW) || ns1 == int32(UTIME_OMIT)) { + s1 = (**(**Ttimespec)(__ccgo_up(times + 1*16))).Ftv_sec + } + } + if Bool(false) || !!((Uint64FromInt64(s0)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) || !!((Uint64FromInt64(s1)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) { + if times != 0 { + *(*[4]int64)(unsafe.Pointer(bp)) = [4]int64{ + 0: s0, + 1: int64(ns0), + 2: s1, + 3: int64(ns1), + } + v1 = bp + } else { + v1 = uintptr(0) + } + r = int32(X__syscall4(tls, int32(SYS_utimensat_time64), fd, int32(path), int32(v1), flags)) + } + if Bool(false) || r != -int32(ENOSYS) { + return X__syscall_ret(tls, Uint32FromInt32(r)) + } + if !!((Uint64FromInt64(s0)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) || !!((Uint64FromInt64(s1)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) { + return X__syscall_ret(tls, Uint32FromInt32(-Int32FromInt32(EOPNOTSUPP))) + } + if times != 0 { + *(*[4]int32)(unsafe.Pointer(bp + 32)) = [4]int32{ + 0: int32(s0), + 1: ns0, + 2: int32(s1), + 3: ns1, + } + v1 = bp + 32 + } else { + v1 = uintptr(0) + } + r = int32(X__syscall4(tls, int32(SYS_utimensat), fd, int32(path), int32(v1), flags)) + if r != -int32(ENOSYS) || flags != 0 { + return X__syscall_ret(tls, Uint32FromInt32(r)) + } + tv = uintptr(0) + if times != 0 { + tv = bp + 48 + i = 0 + for { + if !(i < int32(2)) { + break + } + if Uint64FromInt32((**(**Ttimespec)(__ccgo_up(times + uintptr(i)*16))).Ftv_nsec) >= uint64(1000000000) { + if (**(**Ttimespec)(__ccgo_up(times + uintptr(i)*16))).Ftv_nsec == int32(UTIME_NOW) || (**(**Ttimespec)(__ccgo_up(times + uintptr(i)*16))).Ftv_nsec == int32(UTIME_OMIT) { + return X__syscall_ret(tls, Uint32FromInt32(-Int32FromInt32(ENOSYS))) + } + return X__syscall_ret(tls, Uint32FromInt32(-Int32FromInt32(EINVAL))) + } + (**(**[4]int32)(__ccgo_up(bp + 48)))[int32(2)*i+0] = int32((**(**Ttimespec)(__ccgo_up(times + uintptr(i)*16))).Ftv_sec) + (**(**[4]int32)(__ccgo_up(bp + 48)))[int32(2)*i+int32(1)] = (**(**Ttimespec)(__ccgo_up(times + uintptr(i)*16))).Ftv_nsec / int32(1000) + goto _3 + _3: + ; + i = i + 1 + } + } + r = int32(X__syscall3(tls, int32(SYS_futimesat), fd, int32(path), int32(tv))) + if r != -int32(ENOSYS) || fd != -int32(100) { + return X__syscall_ret(tls, Uint32FromInt32(r)) + } + r = int32(X__syscall2(tls, int32(SYS_utimes), int32(path), int32(tv))) + return X__syscall_ret(tls, Uint32FromInt32(r)) +} + +func X__fclose_ca(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return (*(*func(*TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fclose1})))(tls, f) +} + +func X__fdopen(tls *TLS, fd int32, mode uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v fd=%v mode=%v, (%v:)", tls, fd, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var f, v1 uintptr + var flags, v2 int32 + var _ /* wsz at bp+0 */ Twinsize + _, _, _, _ = f, flags, v1, v2 + /* Check for valid initial mode character */ + if !(Xstrchr(tls, __ccgo_ts+1402, int32(**(**int8)(__ccgo_up(mode)))) != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(0) + } + /* Allocate FILE+buffer or fail */ + v1 = Xmalloc(tls, Uint32FromInt64(136)+Uint32FromInt32(UNGET)+Uint32FromInt32(BUFSIZ)) + f = v1 + if !(v1 != 0) { + return uintptr(0) + } + /* Zero-fill only the struct, not the buffer */ + Xmemset(tls, f, 0, uint32(136)) + /* Impose mode restrictions */ + if !(Xstrchr(tls, mode, int32('+')) != 0) { + if int32(**(**int8)(__ccgo_up(mode))) == int32('r') { + v2 = int32(F_NOWR) + } else { + v2 = int32(F_NORD) + } + (*TFILE)(unsafe.Pointer(f)).Fflags = Uint32FromInt32(v2) + } + /* Apply close-on-exec flag */ + if Xstrchr(tls, mode, int32('e')) != 0 { + X__syscall3(tls, int32(SYS_fcntl64), fd, int32(Int32FromInt32(F_SETFD)), int32(Int32FromInt32(FD_CLOEXEC))) + } + /* Set append mode on fd if opened for append */ + if int32(**(**int8)(__ccgo_up(mode))) == int32('a') { + flags = int32(X__syscall2(tls, int32(SYS_fcntl64), fd, int32(Int32FromInt32(F_GETFL)))) + if !(flags&Int32FromInt32(O_APPEND) != 0) { + X__syscall3(tls, int32(SYS_fcntl64), fd, int32(Int32FromInt32(F_SETFL)), int32(flags|Int32FromInt32(O_APPEND))) + } + **(**uint32)(__ccgo_up(f)) |= uint32(F_APP) + } + (*TFILE)(unsafe.Pointer(f)).Ffd = fd + (*TFILE)(unsafe.Pointer(f)).Fbuf = f + uintptr(136) + uintptr(UNGET) + (*TFILE)(unsafe.Pointer(f)).Fbuf_size = uint32(BUFSIZ) + /* Activate line buffered mode for terminals */ + (*TFILE)(unsafe.Pointer(f)).Flbf = -int32(1) + if !((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_NOWR) != 0) && !(X__syscall3(tls, int32(SYS_ioctl), fd, int32(Int32FromInt32(TIOCGWINSZ)), int32(bp)) != 0) { + (*TFILE)(unsafe.Pointer(f)).Flbf = int32('\n') + } + /* Initialize op ptrs. No problem if some are unneeded. */ + (*TFILE)(unsafe.Pointer(f)).Fread = __ccgo_fp(X__stdio_read) + (*TFILE)(unsafe.Pointer(f)).Fwrite = __ccgo_fp(X__stdio_write) + (*TFILE)(unsafe.Pointer(f)).Fseek = __ccgo_fp(X__stdio_seek) + (*TFILE)(unsafe.Pointer(f)).Fclose1 = __ccgo_fp(X__stdio_close) + if !(X__libc.Fthreaded != 0) { + AtomicStorePInt32(f+76, -int32(1)) + } + /* Add new FILE to open file list */ + return X__ofl_add(tls, f) +} + +func Xfdopen(tls *TLS, fd int32, mode uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v fd=%v mode=%v, (%v:)", tls, fd, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fdopen(tls, fd, mode) +} + +func X__fmodeflags(tls *TLS, mode uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v mode=%v, (%v:)", tls, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + var flags int32 + _ = flags + if Xstrchr(tls, mode, int32('+')) != 0 { + flags = int32(O_RDWR) + } else { + if int32(**(**int8)(__ccgo_up(mode))) == int32('r') { + flags = O_RDONLY + } else { + flags = int32(O_WRONLY) + } + } + if Xstrchr(tls, mode, int32('x')) != 0 { + flags = flags | int32(O_EXCL) + } + if Xstrchr(tls, mode, int32('e')) != 0 { + flags = flags | int32(O_CLOEXEC) + } + if int32(**(**int8)(__ccgo_up(mode))) != int32('r') { + flags = flags | int32(O_CREAT) + } + if int32(**(**int8)(__ccgo_up(mode))) == int32('w') { + flags = flags | int32(O_TRUNC) + } + if int32(**(**int8)(__ccgo_up(mode))) == int32('a') { + flags = flags | int32(O_APPEND) + } + return flags +} + +func X__fopen_rb_ca(tls *TLS, filename uintptr, f uintptr, buf uintptr, len1 Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v filename=%v f=%v buf=%v len1=%v, (%v:)", tls, filename, f, buf, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + Xmemset(tls, f, 0, uint32(136)) + (*TFILE)(unsafe.Pointer(f)).Ffd = X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_open), int32(filename), int32(Int32FromInt32(O_RDONLY)|Int32FromInt32(O_CLOEXEC)|Int32FromInt32(O_LARGEFILE))))) + if (*TFILE)(unsafe.Pointer(f)).Ffd < 0 { + return uintptr(0) + } + X__syscall3(tls, int32(SYS_fcntl64), (*TFILE)(unsafe.Pointer(f)).Ffd, int32(Int32FromInt32(F_SETFD)), int32(Int32FromInt32(FD_CLOEXEC))) + (*TFILE)(unsafe.Pointer(f)).Fflags = Uint32FromInt32(Int32FromInt32(F_NOWR) | Int32FromInt32(F_PERM)) + (*TFILE)(unsafe.Pointer(f)).Fbuf = buf + uintptr(UNGET) + (*TFILE)(unsafe.Pointer(f)).Fbuf_size = len1 - uint32(UNGET) + (*TFILE)(unsafe.Pointer(f)).Fread = __ccgo_fp(X__stdio_read) + (*TFILE)(unsafe.Pointer(f)).Fseek = __ccgo_fp(X__stdio_seek) + (*TFILE)(unsafe.Pointer(f)).Fclose1 = __ccgo_fp(X__stdio_close) + AtomicStorePInt32(f+76, -int32(1)) + return f +} + +func X__overflow(tls *TLS, f uintptr, _c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v _c=%v, (%v:)", tls, f, _c, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uint8 + var v2, v3 uintptr + var _ /* c at bp+0 */ uint8 + _, _, _ = v1, v2, v3 + **(**uint8)(__ccgo_up(bp)) = Uint8FromInt32(_c) + if !((*TFILE)(unsafe.Pointer(f)).Fwend != 0) && X__towrite(tls, f) != 0 { + return -int32(1) + } + if (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwend && Int32FromUint8(**(**uint8)(__ccgo_up(bp))) != (*TFILE)(unsafe.Pointer(f)).Flbf { + v1 = **(**uint8)(__ccgo_up(bp)) + v3 = f + 20 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + **(**uint8)(__ccgo_up(v2)) = v1 + return Int32FromUint8(v1) + } + if (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tsize_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fwrite})))(tls, f, bp, uint32(1)) != uint32(1) { + return -int32(1) + } + return Int32FromUint8(**(**uint8)(__ccgo_up(bp))) +} + +func _dummy9(tls *TLS, fd int32) (r int32) { + return fd +} + +func X__stdio_close(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall1(tls, int32(SYS_close), _dummy9(tls, (*TFILE)(unsafe.Pointer(f)).Ffd)))) +} + +var _dummy_file = uintptr(0) + +func _close_file(tls *TLS, f uintptr) { + if !(f != 0) { + return + } + if AtomicLoadPInt32(f+76) >= 0 { + ___lockfile(tls, f) + } + if (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwbase { + (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tsize_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fwrite})))(tls, f, uintptr(0), uint32(0)) + } + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + (*(*func(*TLS, uintptr, Toff_t, int32) Toff_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fseek})))(tls, f, int64(int32((*TFILE)(unsafe.Pointer(f)).Frpos)-int32((*TFILE)(unsafe.Pointer(f)).Frend)), int32(1)) + } +} + +func X__stdio_exit(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + var f uintptr + _ = f + f = **(**uintptr)(__ccgo_up(X__ofl_lock(tls))) + for { + if !(f != 0) { + break + } + _close_file(tls, f) + goto _1 + _1: + ; + f = (*TFILE)(unsafe.Pointer(f)).Fnext + } + _close_file(tls, AtomicLoadPUintptr(uintptr(unsafe.Pointer(&X__stdin_used)))) + _close_file(tls, AtomicLoadPUintptr(uintptr(unsafe.Pointer(&X__stdout_used)))) + _close_file(tls, AtomicLoadPUintptr(uintptr(unsafe.Pointer(&X__stderr_used)))) +} + +func X__stdio_exit_needed(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + X__stdio_exit(tls) +} + +func X__stdio_read(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v f=%v buf=%v len1=%v, (%v:)", tls, f, buf, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var cnt Tssize_t + var v1 int32 + var v3, v4 uintptr + var _ /* iov at bp+0 */ [2]Tiovec + _, _, _, _ = cnt, v1, v3, v4 + **(**[2]Tiovec)(__ccgo_up(bp)) = [2]Tiovec{ + 0: { + Fiov_base: buf, + Fiov_len: len1 - BoolUint32(!!((*TFILE)(unsafe.Pointer(f)).Fbuf_size != 0)), + }, + 1: { + Fiov_base: (*TFILE)(unsafe.Pointer(f)).Fbuf, + Fiov_len: (*TFILE)(unsafe.Pointer(f)).Fbuf_size, + }, + } + if (**(**[2]Tiovec)(__ccgo_up(bp)))[0].Fiov_len != 0 { + v1 = X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_readv), (*TFILE)(unsafe.Pointer(f)).Ffd, int32(bp), int32(Int32FromInt32(2))))) + } else { + v1 = X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_read), (*TFILE)(unsafe.Pointer(f)).Ffd, int32((**(**[2]Tiovec)(__ccgo_up(bp)))[int32(1)].Fiov_base), Int32FromUint32((**(**[2]Tiovec)(__ccgo_up(bp)))[int32(1)].Fiov_len)))) + } + cnt = v1 + if cnt <= 0 { + if cnt != 0 { + v1 = int32(F_ERR) + } else { + v1 = int32(F_EOF) + } + **(**uint32)(__ccgo_up(f)) |= Uint32FromInt32(v1) + return uint32(0) + } + if Uint32FromInt32(cnt) <= (**(**[2]Tiovec)(__ccgo_up(bp)))[0].Fiov_len { + return Uint32FromInt32(cnt) + } + cnt = Int32FromUint32(uint32(cnt) - (**(**[2]Tiovec)(__ccgo_up(bp)))[0].Fiov_len) + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Frend = (*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr(cnt) + if (*TFILE)(unsafe.Pointer(f)).Fbuf_size != 0 { + v4 = f + 4 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + **(**uint8)(__ccgo_up(buf + uintptr(len1-uint32(1)))) = **(**uint8)(__ccgo_up(v3)) + } + return len1 +} + +func X__stdio_seek(tls *TLS, f uintptr, off Toff_t, whence int32) (r Toff_t) { + if __ccgo_strace { + trc("tls=%v f=%v off=%v whence=%v, (%v:)", tls, f, off, whence, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lseek(tls, (*TFILE)(unsafe.Pointer(f)).Ffd, off, whence) +} + +func X__stdio_write(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v f=%v buf=%v len1=%v, (%v:)", tls, f, buf, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var cnt Tssize_t + var iov, v2, v3 uintptr + var iovcnt int32 + var rem Tsize_t + var v5 uint32 + var _ /* iovs at bp+0 */ [2]Tiovec + _, _, _, _, _, _, _ = cnt, iov, iovcnt, rem, v2, v3, v5 + **(**[2]Tiovec)(__ccgo_up(bp)) = [2]Tiovec{ + 0: { + Fiov_base: (*TFILE)(unsafe.Pointer(f)).Fwbase, + Fiov_len: Uint32FromInt32(int32((*TFILE)(unsafe.Pointer(f)).Fwpos) - int32((*TFILE)(unsafe.Pointer(f)).Fwbase)), + }, + 1: { + Fiov_base: buf, + Fiov_len: len1, + }, + } + iov = bp + rem = (**(**Tiovec)(__ccgo_up(iov))).Fiov_len + (**(**Tiovec)(__ccgo_up(iov + 1*8))).Fiov_len + iovcnt = int32(2) + for { + cnt = X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_writev), (*TFILE)(unsafe.Pointer(f)).Ffd, int32(iov), iovcnt))) + if Uint32FromInt32(cnt) == rem { + (*TFILE)(unsafe.Pointer(f)).Fwend = (*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr((*TFILE)(unsafe.Pointer(f)).Fbuf_size) + v2 = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Fwbase = v2 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v2 + return len1 + } + if cnt < 0 { + v3 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Fwend = v3 + v2 = v3 + (*TFILE)(unsafe.Pointer(f)).Fwbase = v2 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v2 + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) + if iovcnt == int32(2) { + v5 = uint32(0) + } else { + v5 = len1 - (**(**Tiovec)(__ccgo_up(iov))).Fiov_len + } + return v5 + } + rem = rem - Uint32FromInt32(cnt) + if Uint32FromInt32(cnt) > (**(**Tiovec)(__ccgo_up(iov))).Fiov_len { + cnt = Int32FromUint32(uint32(cnt) - (**(**Tiovec)(__ccgo_up(iov))).Fiov_len) + iov += 8 + iovcnt = iovcnt - 1 + } + (**(**Tiovec)(__ccgo_up(iov))).Fiov_base = (**(**Tiovec)(__ccgo_up(iov))).Fiov_base + uintptr(cnt) + (**(**Tiovec)(__ccgo_up(iov))).Fiov_len -= Uint32FromInt32(cnt) + goto _1 + _1: + } + return r +} + +func X__stdout_write(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v f=%v buf=%v len1=%v, (%v:)", tls, f, buf, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* wsz at bp+0 */ Twinsize + (*TFILE)(unsafe.Pointer(f)).Fwrite = __ccgo_fp(X__stdio_write) + if !((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_SVB) != 0) && X__syscall3(tls, int32(SYS_ioctl), (*TFILE)(unsafe.Pointer(f)).Ffd, int32(Int32FromInt32(TIOCGWINSZ)), int32(bp)) != 0 { + (*TFILE)(unsafe.Pointer(f)).Flbf = -int32(1) + } + return X__stdio_write(tls, f, buf, len1) +} + +func X__toread(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1, v2 uintptr + var v4 int32 + _, _, _ = v1, v2, v4 + **(**int32)(__ccgo_up(f + 72)) |= (*TFILE)(unsafe.Pointer(f)).Fmode - int32(1) + if (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwbase { + (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tsize_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fwrite})))(tls, f, uintptr(0), uint32(0)) + } + v2 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Fwend = v2 + v1 = v2 + (*TFILE)(unsafe.Pointer(f)).Fwbase = v1 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v1 + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_NORD) != 0 { + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) + return -int32(1) + } + v1 = (*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr((*TFILE)(unsafe.Pointer(f)).Fbuf_size) + (*TFILE)(unsafe.Pointer(f)).Frend = v1 + (*TFILE)(unsafe.Pointer(f)).Frpos = v1 + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_EOF) != 0 { + v4 = -int32(1) + } else { + v4 = 0 + } + return v4 +} + +func X__toread_needs_stdio_exit(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + X__stdio_exit_needed(tls) +} + +func X__towrite(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 uintptr + _ = v1 + **(**int32)(__ccgo_up(f + 72)) |= (*TFILE)(unsafe.Pointer(f)).Fmode - int32(1) + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_NOWR) != 0 { + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) + return -int32(1) + } + /* Clear read buffer (easier than summoning nasal demons) */ + v1 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Frend = v1 + (*TFILE)(unsafe.Pointer(f)).Frpos = v1 + /* Activate write through the buffer. */ + v1 = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Fwbase = v1 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v1 + (*TFILE)(unsafe.Pointer(f)).Fwend = (*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr((*TFILE)(unsafe.Pointer(f)).Fbuf_size) + return 0 +} + +func X__towrite_needs_stdio_exit(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + X__stdio_exit_needed(tls) +} + +/* This function assumes it will never be called if there is already + * data buffered for reading. */ + +func X__uflow(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* c at bp+0 */ uint8 + if !(X__toread(tls, f) != 0) && (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tsize_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fread})))(tls, f, bp, uint32(1)) == uint32(1) { + return Int32FromUint8(**(**uint8)(__ccgo_up(bp))) + } + return -int32(1) +} + +func Xasprintf(tls *TLS, s uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v va=%v, (%v:)", tls, s, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvasprintf(tls, s, fmt, ap) + _ = ap + return ret +} + +func Xclearerr(tls *TLS, f uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } + var __need_unlock, v1 int32 + _, _ = __need_unlock, v1 + if AtomicLoadPInt32(f+76) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + **(**uint32)(__ccgo_up(f)) &= Uint32FromInt32(^(Int32FromInt32(F_EOF) | Int32FromInt32(F_ERR))) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } +} + +func Xclearerr_unlocked(tls *TLS, f uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } + Xclearerr(tls, f) +} + +func Xdprintf(tls *TLS, fd int32, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v fmt=%v va=%v, (%v:)", tls, fd, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvdprintf(tls, fd, fmt, ap) + _ = ap + return ret +} + +const FSETLOCKING_BYCALLER = 2 +const FSETLOCKING_INTERNAL = 1 +const FSETLOCKING_QUERY = 0 + +func X_flushlbf(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + Xfflush(tls, uintptr(0)) +} + +func X__fsetlocking(tls *TLS, f uintptr, type1 int32) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v type1=%v, (%v:)", tls, f, type1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return 0 +} + +func X__fwriting(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32((*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_NORD) != 0 || (*TFILE)(unsafe.Pointer(f)).Fwend != 0) +} + +func X__freading(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32((*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_NOWR) != 0 || (*TFILE)(unsafe.Pointer(f)).Frend != 0) +} + +func X__freadable(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(!((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_NORD) != 0)) +} + +func X__fwritable(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(!((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_NOWR) != 0)) +} + +func X__flbf(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32((*TFILE)(unsafe.Pointer(f)).Flbf >= 0) +} + +func X__fbufsize(tls *TLS, f uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return (*TFILE)(unsafe.Pointer(f)).Fbuf_size +} + +func X__fpending(tls *TLS, f uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + _ = v1 + if (*TFILE)(unsafe.Pointer(f)).Fwend != 0 { + v1 = int32((*TFILE)(unsafe.Pointer(f)).Fwpos) - int32((*TFILE)(unsafe.Pointer(f)).Fwbase) + } else { + v1 = 0 + } + return Uint32FromInt32(v1) +} + +func X__fpurge(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1, v2 uintptr + _, _ = v1, v2 + if !(f != 0) { // libbsd fpurge test fails w/o this. + return int32(1) + } + v2 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Fwend = v2 + v1 = v2 + (*TFILE)(unsafe.Pointer(f)).Fwbase = v1 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v1 + v1 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Frend = v1 + (*TFILE)(unsafe.Pointer(f)).Frpos = v1 + return 0 +} + +func Xfpurge(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fpurge(tls, f) +} + +func X__freadahead(tls *TLS, f uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + _ = v1 + if (*TFILE)(unsafe.Pointer(f)).Frend != 0 { + v1 = int32((*TFILE)(unsafe.Pointer(f)).Frend) - int32((*TFILE)(unsafe.Pointer(f)).Frpos) + } else { + v1 = 0 + } + return Uint32FromInt32(v1) +} + +func X__freadptr(tls *TLS, f uintptr, sizep uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v sizep=%v, (%v:)", tls, f, sizep, origin(2)) + defer func() { trc("-> %v", r) }() + } + if (*TFILE)(unsafe.Pointer(f)).Frpos == (*TFILE)(unsafe.Pointer(f)).Frend { + return uintptr(0) + } + **(**Tsize_t)(__ccgo_up(sizep)) = Uint32FromInt32(int32((*TFILE)(unsafe.Pointer(f)).Frend) - int32((*TFILE)(unsafe.Pointer(f)).Frpos)) + return (*TFILE)(unsafe.Pointer(f)).Frpos +} + +func X__freadptrinc(tls *TLS, f uintptr, inc Tsize_t) { + if __ccgo_strace { + trc("tls=%v f=%v inc=%v, (%v:)", tls, f, inc, origin(2)) + } + **(**uintptr)(__ccgo_up(f + 4)) += uintptr(inc) +} + +func X__fseterr(tls *TLS, f uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) +} + +func _dummy10(tls *TLS, f uintptr) { +} + +func Xfclose(tls *TLS, f uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var __need_unlock, r, v1 int32 + var head uintptr + _, _, _, _ = __need_unlock, head, r, v1 + if AtomicLoadPInt32(f+76) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + r = Xfflush(tls, f) + r = r | (*(*func(*TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fclose1})))(tls, f) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + /* Past this point, f is closed and any further explict access + * to it is undefined. However, it still exists as an entry in + * the open file list and possibly in the thread's locked files + * list, if it was closed while explicitly locked. Functions + * which process these lists must tolerate dead FILE objects + * (which necessarily have inactive buffer pointers) without + * producing any side effects. */ + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_PERM) != 0 { + return r + } + X__unlist_locked_file(tls, f) + head = X__ofl_lock(tls) + if (*TFILE)(unsafe.Pointer(f)).Fprev != 0 { + (*TFILE)(unsafe.Pointer((*TFILE)(unsafe.Pointer(f)).Fprev)).Fnext = (*TFILE)(unsafe.Pointer(f)).Fnext + } + if (*TFILE)(unsafe.Pointer(f)).Fnext != 0 { + (*TFILE)(unsafe.Pointer((*TFILE)(unsafe.Pointer(f)).Fnext)).Fprev = (*TFILE)(unsafe.Pointer(f)).Fprev + } + if **(**uintptr)(__ccgo_up(head)) == f { + **(**uintptr)(__ccgo_up(head)) = (*TFILE)(unsafe.Pointer(f)).Fnext + } + X__ofl_unlock(tls) + Xfree(tls, (*TFILE)(unsafe.Pointer(f)).Fgetln_buf) + Xfree(tls, f) + return r +} + +func Xfeof(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, ret, v1 int32 + _, _, _ = __need_unlock, ret, v1 + if AtomicLoadPInt32(f+76) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + ret = BoolInt32(!!((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_EOF) != 0)) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return ret +} + +func X_IO_feof_unlocked(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfeof(tls, f) +} + +func Xfeof_unlocked(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfeof(tls, f) +} + +func Xferror(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, ret, v1 int32 + _, _, _ = __need_unlock, ret, v1 + if AtomicLoadPInt32(f+76) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + ret = BoolInt32(!!((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_ERR) != 0)) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return ret +} + +func X_IO_ferror_unlocked(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xferror(tls, f) +} + +func Xferror_unlocked(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xferror(tls, f) +} + +// C documentation +// +// /* stdout.c will override this if linked */ +var _dummy11 = uintptr(0) + +func Xfflush(tls *TLS, f uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var __need_unlock, __need_unlock1, r, v2 int32 + var v4, v5 uintptr + _, _, _, _, _, _ = __need_unlock, __need_unlock1, r, v2, v4, v5 + if !(f != 0) { + r = 0 + if AtomicLoadPUintptr(uintptr(unsafe.Pointer(&X__stdout_used))) != 0 { + r = r | Xfflush(tls, AtomicLoadPUintptr(uintptr(unsafe.Pointer(&X__stdout_used)))) + } + if AtomicLoadPUintptr(uintptr(unsafe.Pointer(&X__stderr_used))) != 0 { + r = r | Xfflush(tls, AtomicLoadPUintptr(uintptr(unsafe.Pointer(&X__stderr_used)))) + } + f = **(**uintptr)(__ccgo_up(X__ofl_lock(tls))) + for { + if !(f != 0) { + break + } + if AtomicLoadPInt32(f+76) >= 0 { + v2 = ___lockfile(tls, f) + } else { + v2 = 0 + } + __need_unlock = v2 + if (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwbase { + r = r | Xfflush(tls, f) + } + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + goto _1 + _1: + ; + f = (*TFILE)(unsafe.Pointer(f)).Fnext + } + X__ofl_unlock(tls) + return r + } + if AtomicLoadPInt32(f+76) >= 0 { + v2 = ___lockfile(tls, f) + } else { + v2 = 0 + } + __need_unlock1 = v2 + /* If writing, flush output */ + if (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwbase { + (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tsize_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fwrite})))(tls, f, uintptr(0), uint32(0)) + if !((*TFILE)(unsafe.Pointer(f)).Fwpos != 0) { + if __need_unlock1 != 0 { + ___unlockfile(tls, f) + } + return -int32(1) + } + } + /* If reading, sync position, per POSIX */ + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + (*(*func(*TLS, uintptr, Toff_t, int32) Toff_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fseek})))(tls, f, int64(int32((*TFILE)(unsafe.Pointer(f)).Frpos)-int32((*TFILE)(unsafe.Pointer(f)).Frend)), int32(1)) + } + /* Clear read and write modes */ + v5 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Fwend = v5 + v4 = v5 + (*TFILE)(unsafe.Pointer(f)).Fwbase = v4 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v4 + v4 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Frend = v4 + (*TFILE)(unsafe.Pointer(f)).Frpos = v4 + if __need_unlock1 != 0 { + ___unlockfile(tls, f) + } + return 0 +} + +func Xfflush_unlocked(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfflush(tls, f) +} + +func _locking_getc(tls *TLS, f uintptr) (r int32) { + var c, v1, v5, v6 int32 + var v2, v3, v4 uintptr + _, _, _, _, _, _, _ = c, v1, v2, v3, v4, v5, v6 + if _a_cas(tls, f+76, 0, Int32FromInt32(MAYBE_WAITERS)-Int32FromInt32(1)) != 0 { + ___lockfile(tls, f) + } + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + v3 = f + 4 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__uflow(tls, f) + } + c = v1 + if _a_swap(tls, f+76, 0)&int32(MAYBE_WAITERS) != 0 { + v4 = f + 76 + v5 = int32(1) + v6 = int32(1) + if v6 != 0 { + v6 = int32(FUTEX_PRIVATE) + } + if v5 < Int32FromInt32(0) { + v5 = int32(INT_MAX) + } + _ = X__syscall3(tls, int32(SYS_futex), int32(v4), int32(Int32FromInt32(FUTEX_WAKE)|v6), v5) != -int32(ENOSYS) || X__syscall3(tls, int32(SYS_futex), int32(v4), int32(Int32FromInt32(FUTEX_WAKE)), v5) != 0 + } + return c +} + +func Xfgetc(tls *TLS, f1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f1=%v, (%v:)", tls, f1, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l, v2, v4 int32 + var v1, v5, v6 uintptr + _, _, _, _, _, _ = l, v1, v2, v4, v5, v6 + v1 = f1 + l = AtomicLoadPInt32(v1 + 76) + if l < 0 || l != 0 && l & ^Int32FromInt32(MAYBE_WAITERS) == (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Ftid { + if (*TFILE)(unsafe.Pointer(v1)).Frpos != (*TFILE)(unsafe.Pointer(v1)).Frend { + v6 = v1 + 4 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + v4 = Int32FromUint8(**(**uint8)(__ccgo_up(v5))) + } else { + v4 = X__uflow(tls, v1) + } + v2 = v4 + goto _3 + } + v2 = _locking_getc(tls, v1) + goto _3 +_3: + return v2 +} + +func Xfgetln(tls *TLS, f uintptr, plen uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v plen=%v, (%v:)", tls, f, plen, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var __need_unlock, v1, v2 int32 + var l, v8 Tssize_t + var ret, z, v3, v4 uintptr + var v6 bool + _, _, _, _, _, _, _, _, _, _ = __need_unlock, l, ret, z, v1, v2, v3, v4, v6, v8 + ret = uintptr(0) + if AtomicLoadPInt32(f+76) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + v4 = f + 4 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v2 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v2 = X__uflow(tls, f) + } + Xungetc(tls, v2, f) + if v6 = (*TFILE)(unsafe.Pointer(f)).Frend != 0; v6 { + v3 = Xmemchr(tls, (*TFILE)(unsafe.Pointer(f)).Frpos, int32('\n'), Uint32FromInt32(int32((*TFILE)(unsafe.Pointer(f)).Frend)-int32((*TFILE)(unsafe.Pointer(f)).Frpos))) + z = v3 + } + if v6 && v3 != 0 { + ret = (*TFILE)(unsafe.Pointer(f)).Frpos + z = z + 1 + v3 = z + **(**Tsize_t)(__ccgo_up(plen)) = Uint32FromInt32(int32(v3) - int32(ret)) + (*TFILE)(unsafe.Pointer(f)).Frpos = z + } else { + *(*[1]Tsize_t)(unsafe.Pointer(bp)) = [1]Tsize_t{} + v8 = Xgetline(tls, f+96, bp, f) + l = v8 + if v8 > 0 { + **(**Tsize_t)(__ccgo_up(plen)) = Uint32FromInt32(l) + ret = (*TFILE)(unsafe.Pointer(f)).Fgetln_buf + } + } + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return ret +} + +func Xfgetpos(tls *TLS, f uintptr, pos uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v pos=%v, (%v:)", tls, f, pos, origin(2)) + defer func() { trc("-> %v", r) }() + } + var off Toff_t + _ = off + off = X__ftello(tls, f) + if off < 0 { + return -int32(1) + } + **(**int64)(__ccgo_up(pos)) = off + return 0 +} + +func Xfgets(tls *TLS, s uintptr, n int32, f uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v f=%v, (%v:)", tls, s, n, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, c, v1, v2 int32 + var k Tsize_t + var p, z, v6, v7 uintptr + var v3 uint32 + var v8 int8 + _, _, _, _, _, _, _, _, _, _, _ = __need_unlock, c, k, p, z, v1, v2, v3, v6, v7, v8 + p = s + if AtomicLoadPInt32(f+76) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + if n <= int32(1) { + **(**int32)(__ccgo_up(f + 72)) |= (*TFILE)(unsafe.Pointer(f)).Fmode - int32(1) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + if n < int32(1) { + return uintptr(0) + } + **(**int8)(__ccgo_up(s)) = 0 + return s + } + n = n - 1 + for n != 0 { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + z = Xmemchr(tls, (*TFILE)(unsafe.Pointer(f)).Frpos, int32('\n'), Uint32FromInt32(int32((*TFILE)(unsafe.Pointer(f)).Frend)-int32((*TFILE)(unsafe.Pointer(f)).Frpos))) + if z != 0 { + v1 = int32(z) - int32((*TFILE)(unsafe.Pointer(f)).Frpos) + int32(1) + } else { + v1 = int32((*TFILE)(unsafe.Pointer(f)).Frend) - int32((*TFILE)(unsafe.Pointer(f)).Frpos) + } + k = Uint32FromInt32(v1) + if k < Uint32FromInt32(n) { + v3 = k + } else { + v3 = Uint32FromInt32(n) + } + k = v3 + Xmemcpy(tls, p, (*TFILE)(unsafe.Pointer(f)).Frpos, k) + **(**uintptr)(__ccgo_up(f + 4)) += uintptr(k) + p = p + uintptr(k) + n = Int32FromUint32(uint32(n) - k) + if z != 0 || !(n != 0) { + break + } + } + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + v7 = f + 4 + v6 = *(*uintptr)(unsafe.Pointer(v7)) + *(*uintptr)(unsafe.Pointer(v7)) = *(*uintptr)(unsafe.Pointer(v7)) + 1 + v2 = Int32FromUint8(**(**uint8)(__ccgo_up(v6))) + } else { + v2 = X__uflow(tls, f) + } + v1 = v2 + c = v1 + if v1 < 0 { + if p == s || !((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_EOF) != 0) { + s = uintptr(0) + } + break + } + n = n - 1 + v8 = int8(c) + v6 = p + p = p + 1 + **(**int8)(__ccgo_up(v6)) = v8 + if int32(v8) == int32('\n') { + break + } + } + if s != 0 { + **(**int8)(__ccgo_up(p)) = 0 + } + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return s +} + +func Xfgets_unlocked(tls *TLS, s uintptr, n int32, f uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v f=%v, (%v:)", tls, s, n, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfgets(tls, s, n, f) +} + +func ___fgetwc_unlocked_internal(tls *TLS, f uintptr) (r Twint_t) { + bp := tls.Alloc(32) + defer tls.Free(32) + var c, first, v1, v2 int32 + var l Tsize_t + var v3, v4 uintptr + var _ /* b at bp+16 */ uint8 + var _ /* st at bp+8 */ Tmbstate_t + var _ /* wc at bp+0 */ Twchar_t + _, _, _, _, _, _, _ = c, first, l, v1, v2, v3, v4 + /* Convert character from buffer if possible */ + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + l = Uint32FromInt32(Xmbtowc(tls, bp, (*TFILE)(unsafe.Pointer(f)).Frpos, Uint32FromInt32(int32((*TFILE)(unsafe.Pointer(f)).Frend)-int32((*TFILE)(unsafe.Pointer(f)).Frpos)))) + if l+uint32(1) >= uint32(1) { + **(**uintptr)(__ccgo_up(f + 4)) += uintptr(l + BoolUint32(!(l != 0))) /* l==0 means 1 byte, null */ + return Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp))) + } + } + /* Convert character byte-by-byte */ + **(**Tmbstate_t)(__ccgo_up(bp + 8)) = Tmbstate_t{} + first = int32(1) + for cond := true; cond; cond = l == Uint32FromInt32(-Int32FromInt32(2)) { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + v4 = f + 4 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v2 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v2 = X__uflow(tls, f) + } + v1 = v2 + c = v1 + **(**uint8)(__ccgo_up(bp + 16)) = Uint8FromInt32(v1) + if c < 0 { + if !(first != 0) { + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EILSEQ) + } + return uint32(0xffffffff) + } + l = Xmbrtowc(tls, bp, bp+16, uint32(1), bp+8) + if l == Uint32FromInt32(-Int32FromInt32(1)) { + if !(first != 0) { + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) + Xungetc(tls, Int32FromUint8(**(**uint8)(__ccgo_up(bp + 16))), f) + } + return uint32(0xffffffff) + } + first = 0 + } + return Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp))) +} + +func X__fgetwc_unlocked(tls *TLS, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var loc Tlocale_t + var ploc uintptr + var wc Twchar_t + _, _, _ = loc, ploc, wc + ploc = uintptr(___get_tp(tls)) + 96 + loc = **(**Tlocale_t)(__ccgo_up(ploc)) + if (*TFILE)(unsafe.Pointer(f)).Fmode <= 0 { + Xfwide(tls, f, int32(1)) + } + **(**Tlocale_t)(__ccgo_up(ploc)) = (*TFILE)(unsafe.Pointer(f)).Flocale + wc = Int32FromUint32(___fgetwc_unlocked_internal(tls, f)) + **(**Tlocale_t)(__ccgo_up(ploc)) = loc + return Uint32FromInt32(wc) +} + +func Xfgetwc(tls *TLS, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, v1 int32 + var c Twint_t + _, _, _ = __need_unlock, c, v1 + if AtomicLoadPInt32(f+76) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + c = X__fgetwc_unlocked(tls, f) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return c +} + +func Xfgetwc_unlocked(tls *TLS, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fgetwc_unlocked(tls, f) +} + +func Xgetwc_unlocked(tls *TLS, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fgetwc_unlocked(tls, f) +} + +func Xfgetws(tls *TLS, s uintptr, n int32, f uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v f=%v, (%v:)", tls, s, n, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, v1 int32 + var c Twint_t + var p, v4 uintptr + _, _, _, _, _ = __need_unlock, c, p, v1, v4 + p = s + v1 = n + n = n - 1 + if !(v1 != 0) { + return s + } + if AtomicLoadPInt32(f+76) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + for { + if !(n != 0) { + break + } + c = X__fgetwc_unlocked(tls, f) + if c == uint32(0xffffffff) { + break + } + v4 = p + p += 4 + **(**Twchar_t)(__ccgo_up(v4)) = Int32FromUint32(c) + if c == uint32('\n') { + break + } + goto _3 + _3: + ; + n = n - 1 + } + **(**Twchar_t)(__ccgo_up(p)) = 0 + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_ERR) != 0 { + p = s + } + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + if p == s { + v4 = UintptrFromInt32(0) + } else { + v4 = s + } + return v4 +} + +func Xfgetws_unlocked(tls *TLS, s uintptr, n int32, f uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v f=%v, (%v:)", tls, s, n, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfgetws(tls, s, n, f) +} + +func Xfileno(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, fd, v1 int32 + _, _, _ = __need_unlock, fd, v1 + if AtomicLoadPInt32(f+76) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + fd = (*TFILE)(unsafe.Pointer(f)).Ffd + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + if fd < 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EBADF) + return -int32(1) + } + return fd +} + +func Xfileno_unlocked(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfileno(tls, f) +} + +func Xflockfile(tls *TLS, f uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } + if !(Xftrylockfile(tls, f) != 0) { + return + } + ___lockfile(tls, f) + X__register_locked_file(tls, f, uintptr(___get_tp(tls))) +} + +type Tcookie = struct { + Fpos Tsize_t + Flen1 Tsize_t + Fsize Tsize_t + Fbuf uintptr + Fmode int32 +} + +type Tmem_FILE = struct { + Ff TFILE + Fc Tcookie + Fbuf [1032]uint8 +} + +func _mseek(tls *TLS, f uintptr, off Toff_t, whence int32) (r Toff_t) { + bp := tls.Alloc(16) + defer tls.Free(16) + var base Tssize_t + var c uintptr + var v2 Tsize_t + _, _, _ = base, c, v2 + c = (*TFILE)(unsafe.Pointer(f)).Fcookie + if !(Uint32FromInt32(whence) > uint32(2)) { + goto _1 + } + goto fail +fail: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return int64(-int32(1)) +_1: + ; + *(*[3]Tsize_t)(unsafe.Pointer(bp)) = [3]Tsize_t{ + 1: (*Tcookie)(unsafe.Pointer(c)).Fpos, + 2: (*Tcookie)(unsafe.Pointer(c)).Flen1, + } + base = Int32FromUint32(**(**Tsize_t)(__ccgo_up(bp + uintptr(whence)*4))) + if off < int64(-base) || off > int64(Int32FromUint32((*Tcookie)(unsafe.Pointer(c)).Fsize)-base) { + goto fail + } + v2 = Uint32FromInt64(int64(base) + off) + (*Tcookie)(unsafe.Pointer(c)).Fpos = v2 + return Int64FromUint32(v2) +} + +func _mread(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + var c uintptr + var rem Tsize_t + _, _ = c, rem + c = (*TFILE)(unsafe.Pointer(f)).Fcookie + rem = (*Tcookie)(unsafe.Pointer(c)).Flen1 - (*Tcookie)(unsafe.Pointer(c)).Fpos + if (*Tcookie)(unsafe.Pointer(c)).Fpos > (*Tcookie)(unsafe.Pointer(c)).Flen1 { + rem = uint32(0) + } + if len1 > rem { + len1 = rem + **(**uint32)(__ccgo_up(f)) |= uint32(F_EOF) + } + Xmemcpy(tls, buf, (*Tcookie)(unsafe.Pointer(c)).Fbuf+uintptr((*Tcookie)(unsafe.Pointer(c)).Fpos), len1) + **(**Tsize_t)(__ccgo_up(c)) += len1 + rem = rem - len1 + if rem > (*TFILE)(unsafe.Pointer(f)).Fbuf_size { + rem = (*TFILE)(unsafe.Pointer(f)).Fbuf_size + } + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Frend = (*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr(rem) + Xmemcpy(tls, (*TFILE)(unsafe.Pointer(f)).Frpos, (*Tcookie)(unsafe.Pointer(c)).Fbuf+uintptr((*Tcookie)(unsafe.Pointer(c)).Fpos), rem) + **(**Tsize_t)(__ccgo_up(c)) += rem + return len1 +} + +func _mwrite(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + var c uintptr + var len2, rem Tsize_t + _, _, _ = c, len2, rem + c = (*TFILE)(unsafe.Pointer(f)).Fcookie + len2 = Uint32FromInt32(int32((*TFILE)(unsafe.Pointer(f)).Fwpos) - int32((*TFILE)(unsafe.Pointer(f)).Fwbase)) + if len2 != 0 { + (*TFILE)(unsafe.Pointer(f)).Fwpos = (*TFILE)(unsafe.Pointer(f)).Fwbase + if _mwrite(tls, f, (*TFILE)(unsafe.Pointer(f)).Fwpos, len2) < len2 { + return uint32(0) + } + } + if (*Tcookie)(unsafe.Pointer(c)).Fmode == int32('a') { + (*Tcookie)(unsafe.Pointer(c)).Fpos = (*Tcookie)(unsafe.Pointer(c)).Flen1 + } + rem = (*Tcookie)(unsafe.Pointer(c)).Fsize - (*Tcookie)(unsafe.Pointer(c)).Fpos + if len1 > rem { + len1 = rem + } + Xmemcpy(tls, (*Tcookie)(unsafe.Pointer(c)).Fbuf+uintptr((*Tcookie)(unsafe.Pointer(c)).Fpos), buf, len1) + **(**Tsize_t)(__ccgo_up(c)) += len1 + if (*Tcookie)(unsafe.Pointer(c)).Fpos > (*Tcookie)(unsafe.Pointer(c)).Flen1 { + (*Tcookie)(unsafe.Pointer(c)).Flen1 = (*Tcookie)(unsafe.Pointer(c)).Fpos + if (*Tcookie)(unsafe.Pointer(c)).Flen1 < (*Tcookie)(unsafe.Pointer(c)).Fsize { + **(**uint8)(__ccgo_up((*Tcookie)(unsafe.Pointer(c)).Fbuf + uintptr((*Tcookie)(unsafe.Pointer(c)).Flen1))) = uint8(0) + } else { + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_NORD) != 0 && (*Tcookie)(unsafe.Pointer(c)).Fsize != 0 { + **(**uint8)(__ccgo_up((*Tcookie)(unsafe.Pointer(c)).Fbuf + uintptr((*Tcookie)(unsafe.Pointer(c)).Fsize-uint32(1)))) = uint8(0) + } + } + } + return len1 +} + +func _mclose(tls *TLS, m uintptr) (r int32) { + return 0 +} + +func Xfmemopen(tls *TLS, buf uintptr, size Tsize_t, mode uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v buf=%v size=%v mode=%v, (%v:)", tls, buf, size, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + var f uintptr + var plus, v2 int32 + var v1 uint32 + var v3 Tsize_t + _, _, _, _, _ = f, plus, v1, v2, v3 + plus = BoolInt32(!!(Xstrchr(tls, mode, int32('+')) != 0)) + if !(Xstrchr(tls, __ccgo_ts+1402, int32(**(**int8)(__ccgo_up(mode)))) != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(0) + } + if !(buf != 0) && size > Uint32FromInt32(Int32FromInt32(INT32_MAX)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOMEM) + return uintptr(0) + } + if buf != 0 { + v1 = uint32(0) + } else { + v1 = size + } + f = Xmalloc(tls, uint32(1188)+v1) + if !(f != 0) { + return uintptr(0) + } + Xmemset(tls, f, 0, uint32(UintptrFromInt32(0)+156)) + (*Tmem_FILE)(unsafe.Pointer(f)).Ff.Fcookie = f + 136 + (*Tmem_FILE)(unsafe.Pointer(f)).Ff.Ffd = -int32(1) + (*Tmem_FILE)(unsafe.Pointer(f)).Ff.Flbf = -int32(1) + (*Tmem_FILE)(unsafe.Pointer(f)).Ff.Fbuf = f + 156 + uintptr(UNGET) + (*Tmem_FILE)(unsafe.Pointer(f)).Ff.Fbuf_size = Uint32FromInt64(1032) - Uint32FromInt32(UNGET) + if !(buf != 0) { + buf = f + 1188 + Xmemset(tls, buf, 0, size) + } + (*Tmem_FILE)(unsafe.Pointer(f)).Fc.Fbuf = buf + (*Tmem_FILE)(unsafe.Pointer(f)).Fc.Fsize = size + (*Tmem_FILE)(unsafe.Pointer(f)).Fc.Fmode = int32(**(**int8)(__ccgo_up(mode))) + if !(plus != 0) { + if int32(**(**int8)(__ccgo_up(mode))) == int32('r') { + v2 = int32(F_NOWR) + } else { + v2 = int32(F_NORD) + } + (*Tmem_FILE)(unsafe.Pointer(f)).Ff.Fflags = Uint32FromInt32(v2) + } + if int32(**(**int8)(__ccgo_up(mode))) == int32('r') { + (*Tmem_FILE)(unsafe.Pointer(f)).Fc.Flen1 = size + } else { + if int32(**(**int8)(__ccgo_up(mode))) == int32('a') { + v3 = Xstrnlen(tls, buf, size) + (*Tmem_FILE)(unsafe.Pointer(f)).Fc.Fpos = v3 + (*Tmem_FILE)(unsafe.Pointer(f)).Fc.Flen1 = v3 + } else { + if plus != 0 { + **(**uint8)(__ccgo_up((*Tmem_FILE)(unsafe.Pointer(f)).Fc.Fbuf)) = uint8(0) + } + } + } + (*Tmem_FILE)(unsafe.Pointer(f)).Ff.Fread = __ccgo_fp(_mread) + (*Tmem_FILE)(unsafe.Pointer(f)).Ff.Fwrite = __ccgo_fp(_mwrite) + (*Tmem_FILE)(unsafe.Pointer(f)).Ff.Fseek = __ccgo_fp(_mseek) + (*Tmem_FILE)(unsafe.Pointer(f)).Ff.Fclose1 = __ccgo_fp(_mclose) + if !(X__libc.Fthreaded != 0) { + AtomicStorePInt32(f+76, -int32(1)) + } + return X__ofl_add(tls, f) +} + +func Xfopen(tls *TLS, filename uintptr, mode uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v filename=%v mode=%v, (%v:)", tls, filename, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + var f uintptr + var fd, flags int32 + _, _, _ = f, fd, flags + /* Check for valid initial mode character */ + if !(Xstrchr(tls, __ccgo_ts+1402, int32(**(**int8)(__ccgo_up(mode)))) != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(0) + } + /* Compute the flags to pass to open() */ + flags = X__fmodeflags(tls, mode) + fd = X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_open), int32(filename), int32(flags|Int32FromInt32(O_LARGEFILE)), int32(Int32FromInt32(0666))))) + if fd < 0 { + return uintptr(0) + } + if flags&int32(O_CLOEXEC) != 0 { + X__syscall3(tls, int32(SYS_fcntl64), fd, int32(Int32FromInt32(F_SETFD)), int32(Int32FromInt32(FD_CLOEXEC))) + } + f = X__fdopen(tls, fd, mode) + if f != 0 { + return f + } + X__syscall1(tls, int32(SYS_close), fd) + return uintptr(0) +} + +type Tfcookie = struct { + Fcookie uintptr + Fiofuncs Tcookie_io_functions_t +} + +type Tcookie_FILE = struct { + Ff TFILE + Ffc Tfcookie + Fbuf [1032]uint8 +} + +func _cookieread(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + var fc, v2, v3 uintptr + var len2, readlen, remain, v1 Tsize_t + var ret Tssize_t + var v4 int32 + _, _, _, _, _, _, _, _, _ = fc, len2, readlen, remain, ret, v1, v2, v3, v4 + fc = (*TFILE)(unsafe.Pointer(f)).Fcookie + ret = -int32(1) + remain = len1 + readlen = uint32(0) + len2 = len1 - BoolUint32(!!((*TFILE)(unsafe.Pointer(f)).Fbuf_size != 0)) + if !((*Tfcookie)(unsafe.Pointer(fc)).Fiofuncs.Fread != 0) { + goto bail + } + if len2 != 0 { + ret = (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tssize_t)(unsafe.Pointer(&struct{ uintptr }{(*Tfcookie)(unsafe.Pointer(fc)).Fiofuncs.Fread})))(tls, (*Tfcookie)(unsafe.Pointer(fc)).Fcookie, buf, len2) + if ret <= 0 { + goto bail + } + readlen = readlen + Uint32FromInt32(ret) + remain = remain - Uint32FromInt32(ret) + } + if !((*TFILE)(unsafe.Pointer(f)).Fbuf_size != 0) || remain > BoolUint32(!!((*TFILE)(unsafe.Pointer(f)).Fbuf_size != 0)) { + return readlen + } + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Fbuf + ret = (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tssize_t)(unsafe.Pointer(&struct{ uintptr }{(*Tfcookie)(unsafe.Pointer(fc)).Fiofuncs.Fread})))(tls, (*Tfcookie)(unsafe.Pointer(fc)).Fcookie, (*TFILE)(unsafe.Pointer(f)).Frpos, (*TFILE)(unsafe.Pointer(f)).Fbuf_size) + if ret <= 0 { + goto bail + } + (*TFILE)(unsafe.Pointer(f)).Frend = (*TFILE)(unsafe.Pointer(f)).Frpos + uintptr(ret) + v1 = readlen + readlen = readlen + 1 + v3 = f + 4 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + **(**uint8)(__ccgo_up(buf + uintptr(v1))) = **(**uint8)(__ccgo_up(v2)) + return readlen + goto bail +bail: + ; + if ret == 0 { + v4 = int32(F_EOF) + } else { + v4 = int32(F_ERR) + } + **(**uint32)(__ccgo_up(f)) |= Uint32FromInt32(v4) + v2 = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Frend = v2 + (*TFILE)(unsafe.Pointer(f)).Frpos = v2 + return readlen +} + +func _cookiewrite(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + var fc, v1, v2 uintptr + var len2 Tsize_t + var ret Tssize_t + _, _, _, _, _ = fc, len2, ret, v1, v2 + fc = (*TFILE)(unsafe.Pointer(f)).Fcookie + len2 = Uint32FromInt32(int32((*TFILE)(unsafe.Pointer(f)).Fwpos) - int32((*TFILE)(unsafe.Pointer(f)).Fwbase)) + if !((*Tfcookie)(unsafe.Pointer(fc)).Fiofuncs.Fwrite != 0) { + return len1 + } + if len2 != 0 { + (*TFILE)(unsafe.Pointer(f)).Fwpos = (*TFILE)(unsafe.Pointer(f)).Fwbase + if _cookiewrite(tls, f, (*TFILE)(unsafe.Pointer(f)).Fwpos, len2) < len2 { + return uint32(0) + } + } + ret = (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tssize_t)(unsafe.Pointer(&struct{ uintptr }{(*Tfcookie)(unsafe.Pointer(fc)).Fiofuncs.Fwrite})))(tls, (*Tfcookie)(unsafe.Pointer(fc)).Fcookie, buf, len1) + if ret < 0 { + v2 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Fwend = v2 + v1 = v2 + (*TFILE)(unsafe.Pointer(f)).Fwbase = v1 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v1 + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) + return uint32(0) + } + return Uint32FromInt32(ret) +} + +func _cookieseek(tls *TLS, f uintptr, _off Toff_t, whence int32) (r Toff_t) { + bp := tls.Alloc(16) + defer tls.Free(16) + *(*Toff_t)(unsafe.Pointer(bp)) = _off + var fc uintptr + var res int32 + _, _ = fc, res + fc = (*TFILE)(unsafe.Pointer(f)).Fcookie + if Uint32FromInt32(whence) > uint32(2) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return int64(-int32(1)) + } + if !((*Tfcookie)(unsafe.Pointer(fc)).Fiofuncs.Fseek != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOPNOTSUPP) + return int64(-int32(1)) + } + res = (*(*func(*TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(&struct{ uintptr }{(*Tfcookie)(unsafe.Pointer(fc)).Fiofuncs.Fseek})))(tls, (*Tfcookie)(unsafe.Pointer(fc)).Fcookie, bp, whence) + if res < 0 { + return int64(res) + } + return **(**Toff_t)(__ccgo_up(bp)) +} + +func _cookieclose(tls *TLS, f uintptr) (r int32) { + var fc uintptr + _ = fc + fc = (*TFILE)(unsafe.Pointer(f)).Fcookie + if (*Tfcookie)(unsafe.Pointer(fc)).Fiofuncs.Fclose1 != 0 { + return (*(*func(*TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*Tfcookie)(unsafe.Pointer(fc)).Fiofuncs.Fclose1})))(tls, (*Tfcookie)(unsafe.Pointer(fc)).Fcookie) + } + return 0 +} + +func Xfopencookie(tls *TLS, cookie uintptr, mode uintptr, iofuncs Tcookie_io_functions_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v cookie=%v mode=%v iofuncs=%v, (%v:)", tls, cookie, mode, iofuncs, origin(2)) + defer func() { trc("-> %v", r) }() + } + var f, v1 uintptr + var v2 int32 + _, _, _ = f, v1, v2 + /* Check for valid initial mode character */ + if !(Xstrchr(tls, __ccgo_ts+1402, int32(**(**int8)(__ccgo_up(mode)))) != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(0) + } + /* Allocate FILE+fcookie+buffer or fail */ + v1 = Xmalloc(tls, uint32(1188)) + f = v1 + if !(v1 != 0) { + return uintptr(0) + } + /* Zero-fill only the struct, not the buffer */ + Xmemset(tls, f, 0, uint32(136)) + /* Impose mode restrictions */ + if !(Xstrchr(tls, mode, int32('+')) != 0) { + if int32(**(**int8)(__ccgo_up(mode))) == int32('r') { + v2 = int32(F_NOWR) + } else { + v2 = int32(F_NORD) + } + (*Tcookie_FILE)(unsafe.Pointer(f)).Ff.Fflags = Uint32FromInt32(v2) + } + /* Set up our fcookie */ + (*Tcookie_FILE)(unsafe.Pointer(f)).Ffc.Fcookie = cookie + (*Tcookie_FILE)(unsafe.Pointer(f)).Ffc.Fiofuncs = iofuncs + (*Tcookie_FILE)(unsafe.Pointer(f)).Ff.Ffd = -int32(1) + (*Tcookie_FILE)(unsafe.Pointer(f)).Ff.Fcookie = f + 136 + (*Tcookie_FILE)(unsafe.Pointer(f)).Ff.Fbuf = f + 156 + uintptr(UNGET) + (*Tcookie_FILE)(unsafe.Pointer(f)).Ff.Fbuf_size = Uint32FromInt64(1032) - Uint32FromInt32(UNGET) + (*Tcookie_FILE)(unsafe.Pointer(f)).Ff.Flbf = -int32(1) + /* Initialize op ptrs. No problem if some are unneeded. */ + (*Tcookie_FILE)(unsafe.Pointer(f)).Ff.Fread = __ccgo_fp(_cookieread) + (*Tcookie_FILE)(unsafe.Pointer(f)).Ff.Fwrite = __ccgo_fp(_cookiewrite) + (*Tcookie_FILE)(unsafe.Pointer(f)).Ff.Fseek = __ccgo_fp(_cookieseek) + (*Tcookie_FILE)(unsafe.Pointer(f)).Ff.Fclose1 = __ccgo_fp(_cookieclose) + /* Add new FILE to open file list */ + return X__ofl_add(tls, f) +} + +func Xfprintf(tls *TLS, f uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v va=%v, (%v:)", tls, f, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvfprintf(tls, f, fmt, ap) + _ = ap + return ret +} + +func _locking_putc(tls *TLS, c int32, f uintptr) (r int32) { + var v1, v6 int32 + var v2 uint8 + var v3, v4 uintptr + _, _, _, _, _ = v1, v2, v3, v4, v6 + if _a_cas(tls, f+76, 0, Int32FromInt32(MAYBE_WAITERS)-Int32FromInt32(1)) != 0 { + ___lockfile(tls, f) + } + if Int32FromUint8(Uint8FromInt32(c)) != (*TFILE)(unsafe.Pointer(f)).Flbf && (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwend { + v2 = Uint8FromInt32(c) + v4 = f + 20 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + **(**uint8)(__ccgo_up(v3)) = v2 + v1 = Int32FromUint8(v2) + } else { + v1 = X__overflow(tls, f, Int32FromUint8(Uint8FromInt32(c))) + } + c = v1 + if _a_swap(tls, f+76, 0)&int32(MAYBE_WAITERS) != 0 { + v3 = f + 76 + v1 = int32(1) + v6 = int32(1) + if v6 != 0 { + v6 = int32(FUTEX_PRIVATE) + } + if v1 < Int32FromInt32(0) { + v1 = int32(INT_MAX) + } + _ = X__syscall3(tls, int32(SYS_futex), int32(v3), int32(Int32FromInt32(FUTEX_WAKE)|v6), v1) != -int32(ENOSYS) || X__syscall3(tls, int32(SYS_futex), int32(v3), int32(Int32FromInt32(FUTEX_WAKE)), v1) != 0 + } + return c +} + +func Xfputc(tls *TLS, c1 int32, f1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v c1=%v f1=%v, (%v:)", tls, c1, f1, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l, v1, v3, v5 int32 + var v2, v7, v8 uintptr + var v6 uint8 + _, _, _, _, _, _, _, _ = l, v1, v2, v3, v5, v6, v7, v8 + v1 = c1 + v2 = f1 + l = AtomicLoadPInt32(v2 + 76) + if l < 0 || l != 0 && l & ^Int32FromInt32(MAYBE_WAITERS) == (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Ftid { + if Int32FromUint8(Uint8FromInt32(v1)) != (*TFILE)(unsafe.Pointer(v2)).Flbf && (*TFILE)(unsafe.Pointer(v2)).Fwpos != (*TFILE)(unsafe.Pointer(v2)).Fwend { + v6 = Uint8FromInt32(v1) + v8 = v2 + 20 + v7 = *(*uintptr)(unsafe.Pointer(v8)) + *(*uintptr)(unsafe.Pointer(v8)) = *(*uintptr)(unsafe.Pointer(v8)) + 1 + **(**uint8)(__ccgo_up(v7)) = v6 + v5 = Int32FromUint8(v6) + } else { + v5 = X__overflow(tls, v2, Int32FromUint8(Uint8FromInt32(v1))) + } + v3 = v5 + goto _4 + } + v3 = _locking_putc(tls, v1, v2) + goto _4 +_4: + return v3 +} + +func Xfputs(tls *TLS, s uintptr, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v f=%v, (%v:)", tls, s, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l Tsize_t + _ = l + l = _strlen(tls, s) + return BoolInt32(Xfwrite(tls, s, uint32(1), l, f) == l) - int32(1) +} + +func Xfputs_unlocked(tls *TLS, s uintptr, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v f=%v, (%v:)", tls, s, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfputs(tls, s, f) +} + +func X__fputwc_unlocked(tls *TLS, c Twchar_t, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v f=%v, (%v:)", tls, c, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var l, v1 int32 + var loc Tlocale_t + var ploc, v3, v4 uintptr + var v2 uint8 + var _ /* mbc at bp+0 */ [4]int8 + _, _, _, _, _, _, _ = l, loc, ploc, v1, v2, v3, v4 + ploc = uintptr(___get_tp(tls)) + 96 + loc = **(**Tlocale_t)(__ccgo_up(ploc)) + if (*TFILE)(unsafe.Pointer(f)).Fmode <= 0 { + Xfwide(tls, f, int32(1)) + } + **(**Tlocale_t)(__ccgo_up(ploc)) = (*TFILE)(unsafe.Pointer(f)).Flocale + if BoolInt32(Uint32FromInt32(c) < uint32(128)) != 0 { + if Int32FromUint8(Uint8FromInt32(c)) != (*TFILE)(unsafe.Pointer(f)).Flbf && (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwend { + v2 = Uint8FromInt32(c) + v4 = f + 20 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + **(**uint8)(__ccgo_up(v3)) = v2 + v1 = Int32FromUint8(v2) + } else { + v1 = X__overflow(tls, f, Int32FromUint8(Uint8FromInt32(c))) + } + c = v1 + } else { + if (*TFILE)(unsafe.Pointer(f)).Fwpos+uintptr(MB_LEN_MAX) < (*TFILE)(unsafe.Pointer(f)).Fwend { + l = Xwctomb(tls, (*TFILE)(unsafe.Pointer(f)).Fwpos, c) + if l < 0 { + c = Int32FromUint32(0xffffffff) + } else { + **(**uintptr)(__ccgo_up(f + 20)) += uintptr(l) + } + } else { + l = Xwctomb(tls, bp, c) + if l < 0 || X__fwritex(tls, bp, Uint32FromInt32(l), f) < Uint32FromInt32(l) { + c = Int32FromUint32(0xffffffff) + } + } + } + if Uint32FromInt32(c) == uint32(0xffffffff) { + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) + } + **(**Tlocale_t)(__ccgo_up(ploc)) = loc + return Uint32FromInt32(c) +} + +func Xfputwc(tls *TLS, c Twchar_t, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v f=%v, (%v:)", tls, c, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, v1 int32 + _, _ = __need_unlock, v1 + if AtomicLoadPInt32(f+76) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + c = Int32FromUint32(X__fputwc_unlocked(tls, c, f)) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return Uint32FromInt32(c) +} + +func Xfputwc_unlocked(tls *TLS, c Twchar_t, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v f=%v, (%v:)", tls, c, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fputwc_unlocked(tls, c, f) +} + +func Xputwc_unlocked(tls *TLS, c Twchar_t, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v f=%v, (%v:)", tls, c, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fputwc_unlocked(tls, c, f) +} + +func Xfputws(tls *TLS, _ws uintptr, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v _ws=%v f=%v, (%v:)", tls, _ws, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(1040) + defer tls.Free(1040) + *(*uintptr)(unsafe.Pointer(bp)) = _ws + var __need_unlock, v1 int32 + var l, v2 Tsize_t + var loc Tlocale_t + var ploc uintptr + var v3 bool + var _ /* buf at bp+4 */ [1024]uint8 + _, _, _, _, _, _, _ = __need_unlock, l, loc, ploc, v1, v2, v3 + l = uint32(0) + ploc = uintptr(___get_tp(tls)) + 96 + loc = **(**Tlocale_t)(__ccgo_up(ploc)) + if AtomicLoadPInt32(f+76) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + Xfwide(tls, f, int32(1)) + **(**Tlocale_t)(__ccgo_up(ploc)) = (*TFILE)(unsafe.Pointer(f)).Flocale + for { + if v3 = **(**uintptr)(__ccgo_up(bp)) != 0; v3 { + v2 = Xwcsrtombs(tls, bp+4, bp, uint32(1024), uintptr(0)) + l = v2 + } + if !(v3 && v2+uint32(1) > uint32(1)) { + break + } + if X__fwritex(tls, bp+4, l, f) < l { + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + **(**Tlocale_t)(__ccgo_up(ploc)) = loc + return -int32(1) + } + } + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + **(**Tlocale_t)(__ccgo_up(ploc)) = loc + return Int32FromUint32(l) /* 0 or -1 */ +} + +func Xfputws_unlocked(tls *TLS, _ws uintptr, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v _ws=%v f=%v, (%v:)", tls, _ws, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfputws(tls, _ws, f) +} + +func Xfread(tls *TLS, destv uintptr, size Tsize_t, nmemb Tsize_t, f uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v destv=%v size=%v nmemb=%v f=%v, (%v:)", tls, destv, size, nmemb, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, v1 int32 + var dest uintptr + var k, l, len1 Tsize_t + var v2 uint32 + _, _, _, _, _, _, _ = __need_unlock, dest, k, l, len1, v1, v2 + dest = destv + len1 = size * nmemb + l = len1 + if !(size != 0) { + nmemb = uint32(0) + } + if AtomicLoadPInt32(f+76) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + **(**int32)(__ccgo_up(f + 72)) |= (*TFILE)(unsafe.Pointer(f)).Fmode - int32(1) + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + /* First exhaust the buffer. */ + if Uint32FromInt32(int32((*TFILE)(unsafe.Pointer(f)).Frend)-int32((*TFILE)(unsafe.Pointer(f)).Frpos)) < l { + v2 = Uint32FromInt32(int32((*TFILE)(unsafe.Pointer(f)).Frend) - int32((*TFILE)(unsafe.Pointer(f)).Frpos)) + } else { + v2 = l + } + k = v2 + Xmemcpy(tls, dest, (*TFILE)(unsafe.Pointer(f)).Frpos, k) + **(**uintptr)(__ccgo_up(f + 4)) += uintptr(k) + dest = dest + uintptr(k) + l = l - k + } + /* Read the remainder directly */ + for { + if !(l != 0) { + break + } + if X__toread(tls, f) != 0 { + v2 = uint32(0) + } else { + v2 = (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tsize_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fread})))(tls, f, dest, l) + } + k = v2 + if !(k != 0) { + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return (len1 - l) / size + } + goto _3 + _3: + ; + l = l - k + dest = dest + uintptr(k) + } + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return nmemb +} + +func Xfread_unlocked(tls *TLS, destv uintptr, size Tsize_t, nmemb Tsize_t, f uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v destv=%v size=%v nmemb=%v f=%v, (%v:)", tls, destv, size, nmemb, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfread(tls, destv, size, nmemb, f) +} + +/* The basic idea of this implementation is to open a new FILE, + * hack the necessary parts of the new FILE into the old one, then + * close the new FILE. */ + +/* Locking IS necessary because another thread may provably hold the + * lock, via flockfile or otherwise, when freopen is called, and in that + * case, freopen cannot act until the lock is released. */ + +func Xfreopen(tls *TLS, filename uintptr, mode uintptr, f uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v filename=%v mode=%v f=%v, (%v:)", tls, filename, mode, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, fl, v1 int32 + var f2 uintptr + _, _, _, _ = __need_unlock, f2, fl, v1 + fl = X__fmodeflags(tls, mode) + if AtomicLoadPInt32(f+76) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + Xfflush(tls, f) + if !(filename != 0) { + if fl&int32(O_CLOEXEC) != 0 { + X__syscall3(tls, int32(SYS_fcntl64), (*TFILE)(unsafe.Pointer(f)).Ffd, int32(Int32FromInt32(F_SETFD)), int32(Int32FromInt32(FD_CLOEXEC))) + } + fl = fl & ^(Int32FromInt32(O_CREAT) | Int32FromInt32(O_EXCL) | Int32FromInt32(O_CLOEXEC)) + if X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_fcntl64), (*TFILE)(unsafe.Pointer(f)).Ffd, int32(Int32FromInt32(F_SETFL)), fl))) < 0 { + goto fail + } + } else { + f2 = Xfopen(tls, filename, mode) + if !(f2 != 0) { + goto fail + } + if (*TFILE)(unsafe.Pointer(f2)).Ffd == (*TFILE)(unsafe.Pointer(f)).Ffd { + (*TFILE)(unsafe.Pointer(f2)).Ffd = -int32(1) + } else { + if X__dup3(tls, (*TFILE)(unsafe.Pointer(f2)).Ffd, (*TFILE)(unsafe.Pointer(f)).Ffd, fl&int32(O_CLOEXEC)) < 0 { + goto fail2 + } + } + (*TFILE)(unsafe.Pointer(f)).Fflags = (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_PERM) | (*TFILE)(unsafe.Pointer(f2)).Fflags + (*TFILE)(unsafe.Pointer(f)).Fread = (*TFILE)(unsafe.Pointer(f2)).Fread + (*TFILE)(unsafe.Pointer(f)).Fwrite = (*TFILE)(unsafe.Pointer(f2)).Fwrite + (*TFILE)(unsafe.Pointer(f)).Fseek = (*TFILE)(unsafe.Pointer(f2)).Fseek + (*TFILE)(unsafe.Pointer(f)).Fclose1 = (*TFILE)(unsafe.Pointer(f2)).Fclose1 + Xfclose(tls, f2) + } + (*TFILE)(unsafe.Pointer(f)).Fmode = 0 + (*TFILE)(unsafe.Pointer(f)).Flocale = uintptr(0) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return f + goto fail2 +fail2: + ; + Xfclose(tls, f2) + goto fail +fail: + ; + Xfclose(tls, f) + return UintptrFromInt32(0) +} + +func Xfscanf(tls *TLS, f uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v va=%v, (%v:)", tls, f, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvfscanf(tls, f, fmt, ap) + _ = ap + return ret +} + +func X__isoc99_fscanf(tls *TLS, f uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v va=%v, (%v:)", tls, f, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfscanf(tls, f, fmt, va) +} + +func X__fseeko_unlocked(tls *TLS, f uintptr, off Toff_t, whence int32) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v off=%v whence=%v, (%v:)", tls, f, off, whence, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1, v2 uintptr + _, _ = v1, v2 + /* Fail immediately for invalid whence argument. */ + if whence != int32(1) && whence != 0 && whence != int32(2) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + /* Adjust relative offset for unread data in buffer, if any. */ + if whence == int32(1) && (*TFILE)(unsafe.Pointer(f)).Frend != 0 { + off = off - int64(int32((*TFILE)(unsafe.Pointer(f)).Frend)-int32((*TFILE)(unsafe.Pointer(f)).Frpos)) + } + /* Flush write buffer, and report error on failure. */ + if (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwbase { + (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tsize_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fwrite})))(tls, f, uintptr(0), uint32(0)) + if !((*TFILE)(unsafe.Pointer(f)).Fwpos != 0) { + return -int32(1) + } + } + /* Leave writing mode */ + v2 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Fwend = v2 + v1 = v2 + (*TFILE)(unsafe.Pointer(f)).Fwbase = v1 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v1 + /* Perform the underlying seek. */ + if (*(*func(*TLS, uintptr, Toff_t, int32) Toff_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fseek})))(tls, f, off, whence) < 0 { + return -int32(1) + } + /* If seek succeeded, file is seekable and we discard read buffer. */ + v1 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Frend = v1 + (*TFILE)(unsafe.Pointer(f)).Frpos = v1 + **(**uint32)(__ccgo_up(f)) &= Uint32FromInt32(^Int32FromInt32(F_EOF)) + return 0 +} + +func X__fseeko(tls *TLS, f uintptr, off Toff_t, whence int32) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v off=%v whence=%v, (%v:)", tls, f, off, whence, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, result, v1 int32 + _, _, _ = __need_unlock, result, v1 + if AtomicLoadPInt32(f+76) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + result = X__fseeko_unlocked(tls, f, off, whence) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return result +} + +func Xfseek(tls *TLS, f uintptr, off int32, whence int32) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v off=%v whence=%v, (%v:)", tls, f, off, whence, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fseeko(tls, f, int64(off), whence) +} + +func Xfseeko(tls *TLS, f uintptr, off Toff_t, whence int32) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v off=%v whence=%v, (%v:)", tls, f, off, whence, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fseeko(tls, f, off, whence) +} + +func Xfsetpos(tls *TLS, f uintptr, pos uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v pos=%v, (%v:)", tls, f, pos, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fseeko(tls, f, **(**int64)(__ccgo_up(pos)), 0) +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func X__ftello_unlocked(tls *TLS, f uintptr) (r Toff_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var pos Toff_t + var v1 int32 + _, _ = pos, v1 + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_APP) != 0 && (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwbase { + v1 = int32(2) + } else { + v1 = int32(1) + } + pos = (*(*func(*TLS, uintptr, Toff_t, int32) Toff_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fseek})))(tls, f, 0, v1) + if pos < 0 { + return pos + } + /* Adjust for data in buffer. */ + if (*TFILE)(unsafe.Pointer(f)).Frend != 0 { + pos = pos + int64(int32((*TFILE)(unsafe.Pointer(f)).Frpos)-int32((*TFILE)(unsafe.Pointer(f)).Frend)) + } else { + if (*TFILE)(unsafe.Pointer(f)).Fwbase != 0 { + pos = pos + int64(int32((*TFILE)(unsafe.Pointer(f)).Fwpos)-int32((*TFILE)(unsafe.Pointer(f)).Fwbase)) + } + } + return pos +} + +func X__ftello(tls *TLS, f uintptr) (r Toff_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, v1 int32 + var pos Toff_t + _, _, _ = __need_unlock, pos, v1 + if AtomicLoadPInt32(f+76) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + pos = X__ftello_unlocked(tls, f) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return pos +} + +func Xftell(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var pos Toff_t + _ = pos + pos = X__ftello(tls, f) + if pos > int64(0x7fffffff) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOVERFLOW) + return -int32(1) + } + return int32(pos) +} + +func Xftello(tls *TLS, f uintptr) (r Toff_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__ftello(tls, f) +} + +func X__do_orphaned_stdio_locks(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + var f uintptr + _ = f + f = (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Fstdio_locks + for { + if !(f != 0) { + break + } + _a_store(tls, f+76, int32(0x40000000)) + goto _1 + _1: + ; + f = (*TFILE)(unsafe.Pointer(f)).Fnext_locked + } +} + +func X__unlist_locked_file(tls *TLS, f uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } + if (*TFILE)(unsafe.Pointer(f)).Flockcount != 0 { + if (*TFILE)(unsafe.Pointer(f)).Fnext_locked != 0 { + (*TFILE)(unsafe.Pointer((*TFILE)(unsafe.Pointer(f)).Fnext_locked)).Fprev_locked = (*TFILE)(unsafe.Pointer(f)).Fprev_locked + } + if (*TFILE)(unsafe.Pointer(f)).Fprev_locked != 0 { + (*TFILE)(unsafe.Pointer((*TFILE)(unsafe.Pointer(f)).Fprev_locked)).Fnext_locked = (*TFILE)(unsafe.Pointer(f)).Fnext_locked + } else { + (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Fstdio_locks = (*TFILE)(unsafe.Pointer(f)).Fnext_locked + } + } +} + +func X__register_locked_file(tls *TLS, f uintptr, self Tpthread_t) { + if __ccgo_strace { + trc("tls=%v f=%v self=%v, (%v:)", tls, f, self, origin(2)) + } + (*TFILE)(unsafe.Pointer(f)).Flockcount = int32(1) + (*TFILE)(unsafe.Pointer(f)).Fprev_locked = uintptr(0) + (*TFILE)(unsafe.Pointer(f)).Fnext_locked = (*t__pthread)(unsafe.Pointer(self)).Fstdio_locks + if (*TFILE)(unsafe.Pointer(f)).Fnext_locked != 0 { + (*TFILE)(unsafe.Pointer((*TFILE)(unsafe.Pointer(f)).Fnext_locked)).Fprev_locked = f + } + (*t__pthread)(unsafe.Pointer(self)).Fstdio_locks = f +} + +func Xftrylockfile(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var owner, tid, v1 int32 + var self Tpthread_t + _, _, _, _ = owner, self, tid, v1 + self = uintptr(___get_tp(tls)) + tid = (*t__pthread)(unsafe.Pointer(self)).Ftid + owner = AtomicLoadPInt32(f + 76) + if owner & ^Int32FromInt32(MAYBE_WAITERS) == tid { + if (*TFILE)(unsafe.Pointer(f)).Flockcount == int32(0x7fffffff) { + return -int32(1) + } + (*TFILE)(unsafe.Pointer(f)).Flockcount = (*TFILE)(unsafe.Pointer(f)).Flockcount + 1 + return 0 + } + if owner < 0 { + v1 = Int32FromInt32(0) + owner = v1 + AtomicStorePInt32(f+76, v1) + } + if owner != 0 || _a_cas(tls, f+76, 0, tid) != 0 { + return -int32(1) + } + X__register_locked_file(tls, f, self) + return 0 +} + +func Xfunlockfile(tls *TLS, f uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } + if (*TFILE)(unsafe.Pointer(f)).Flockcount == int32(1) { + X__unlist_locked_file(tls, f) + (*TFILE)(unsafe.Pointer(f)).Flockcount = 0 + ___unlockfile(tls, f) + } else { + (*TFILE)(unsafe.Pointer(f)).Flockcount = (*TFILE)(unsafe.Pointer(f)).Flockcount - 1 + } +} + +func Xfwide(tls *TLS, f uintptr, mode int32) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v mode=%v, (%v:)", tls, f, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, v1, v3 int32 + var v2 Tlocale_t + _, _, _, _ = __need_unlock, v1, v2, v3 + if AtomicLoadPInt32(f+76) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + if mode != 0 { + if !((*TFILE)(unsafe.Pointer(f)).Flocale != 0) { + if !!(**(**uintptr)(__ccgo_up((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale)) != 0) { + v3 = int32(4) + } else { + v3 = int32(1) + } + if v3 == int32(1) { + v2 = uintptr(unsafe.Pointer(&X__c_locale)) + } else { + v2 = uintptr(unsafe.Pointer(&X__c_dot_utf8_locale)) + } + (*TFILE)(unsafe.Pointer(f)).Flocale = v2 + } + if !((*TFILE)(unsafe.Pointer(f)).Fmode != 0) { + if mode > 0 { + v1 = int32(1) + } else { + v1 = -int32(1) + } + (*TFILE)(unsafe.Pointer(f)).Fmode = v1 + } + } + mode = (*TFILE)(unsafe.Pointer(f)).Fmode + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return mode +} + +func Xfwprintf(tls *TLS, f uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v va=%v, (%v:)", tls, f, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvfwprintf(tls, f, fmt, ap) + _ = ap + return ret +} + +func X__fwritex(tls *TLS, s uintptr, l Tsize_t, f uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v l=%v f=%v, (%v:)", tls, s, l, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var i, n Tsize_t + _, _ = i, n + i = uint32(0) + if !((*TFILE)(unsafe.Pointer(f)).Fwend != 0) && X__towrite(tls, f) != 0 { + return uint32(0) + } + if l > Uint32FromInt32(int32((*TFILE)(unsafe.Pointer(f)).Fwend)-int32((*TFILE)(unsafe.Pointer(f)).Fwpos)) { + return (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tsize_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fwrite})))(tls, f, s, l) + } + if (*TFILE)(unsafe.Pointer(f)).Flbf >= 0 { + /* Match /^(.*\n|)/ */ + i = l + for { + if !(i != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(i-uint32(1))))) != int32('\n')) { + break + } + goto _1 + _1: + ; + i = i - 1 + } + if i != 0 { + n = (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tsize_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fwrite})))(tls, f, s, i) + if n < i { + return n + } + s = s + uintptr(i) + l = l - i + } + } + Xmemcpy(tls, (*TFILE)(unsafe.Pointer(f)).Fwpos, s, l) + **(**uintptr)(__ccgo_up(f + 20)) += uintptr(l) + return l + i +} + +func Xfwrite(tls *TLS, src uintptr, size Tsize_t, nmemb Tsize_t, f uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v src=%v size=%v nmemb=%v f=%v, (%v:)", tls, src, size, nmemb, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, v1 int32 + var k, l Tsize_t + var v2 uint32 + _, _, _, _, _ = __need_unlock, k, l, v1, v2 + l = size * nmemb + if !(size != 0) { + nmemb = uint32(0) + } + if AtomicLoadPInt32(f+76) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + k = X__fwritex(tls, src, l, f) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + if k == l { + v2 = nmemb + } else { + v2 = k / size + } + return v2 +} + +func Xfwrite_unlocked(tls *TLS, src uintptr, size Tsize_t, nmemb Tsize_t, f uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v src=%v size=%v nmemb=%v f=%v, (%v:)", tls, src, size, nmemb, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfwrite(tls, src, size, nmemb, f) +} + +func Xfwscanf(tls *TLS, f uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v va=%v, (%v:)", tls, f, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvfwscanf(tls, f, fmt, ap) + _ = ap + return ret +} + +func X__isoc99_fwscanf(tls *TLS, f uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v va=%v, (%v:)", tls, f, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfwscanf(tls, f, fmt, va) +} + +func _locking_getc1(tls *TLS, f uintptr) (r int32) { + var c, v1, v5, v6 int32 + var v2, v3, v4 uintptr + _, _, _, _, _, _, _ = c, v1, v2, v3, v4, v5, v6 + if _a_cas(tls, f+76, 0, Int32FromInt32(MAYBE_WAITERS)-Int32FromInt32(1)) != 0 { + ___lockfile(tls, f) + } + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + v3 = f + 4 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__uflow(tls, f) + } + c = v1 + if _a_swap(tls, f+76, 0)&int32(MAYBE_WAITERS) != 0 { + v4 = f + 76 + v5 = int32(1) + v6 = int32(1) + if v6 != 0 { + v6 = int32(FUTEX_PRIVATE) + } + if v5 < Int32FromInt32(0) { + v5 = int32(INT_MAX) + } + _ = X__syscall3(tls, int32(SYS_futex), int32(v4), int32(Int32FromInt32(FUTEX_WAKE)|v6), v5) != -int32(ENOSYS) || X__syscall3(tls, int32(SYS_futex), int32(v4), int32(Int32FromInt32(FUTEX_WAKE)), v5) != 0 + } + return c +} + +func Xgetc(tls *TLS, f1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f1=%v, (%v:)", tls, f1, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l, v2, v4 int32 + var v1, v5, v6 uintptr + _, _, _, _, _, _ = l, v1, v2, v4, v5, v6 + v1 = f1 + l = AtomicLoadPInt32(v1 + 76) + if l < 0 || l != 0 && l & ^Int32FromInt32(MAYBE_WAITERS) == (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Ftid { + if (*TFILE)(unsafe.Pointer(v1)).Frpos != (*TFILE)(unsafe.Pointer(v1)).Frend { + v6 = v1 + 4 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + v4 = Int32FromUint8(**(**uint8)(__ccgo_up(v5))) + } else { + v4 = X__uflow(tls, v1) + } + v2 = v4 + goto _3 + } + v2 = _locking_getc1(tls, v1) + goto _3 +_3: + return v2 +} + +func X_IO_getc(tls *TLS, f1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f1=%v, (%v:)", tls, f1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetc(tls, f1) +} + +func Xgetc_unlocked(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + var v2, v3 uintptr + _, _, _ = v1, v2, v3 + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + v3 = f + 4 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__uflow(tls, f) + } + return v1 +} + +func X_IO_getc_unlocked(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetc_unlocked(tls, f) +} + +func Xfgetc_unlocked(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetc_unlocked(tls, f) +} + +func _locking_getc2(tls *TLS, f uintptr) (r int32) { + var c, v1, v5, v6 int32 + var v2, v3, v4 uintptr + _, _, _, _, _, _, _ = c, v1, v2, v3, v4, v5, v6 + if _a_cas(tls, f+76, 0, Int32FromInt32(MAYBE_WAITERS)-Int32FromInt32(1)) != 0 { + ___lockfile(tls, f) + } + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + v3 = f + 4 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__uflow(tls, f) + } + c = v1 + if _a_swap(tls, f+76, 0)&int32(MAYBE_WAITERS) != 0 { + v4 = f + 76 + v5 = int32(1) + v6 = int32(1) + if v6 != 0 { + v6 = int32(FUTEX_PRIVATE) + } + if v5 < Int32FromInt32(0) { + v5 = int32(INT_MAX) + } + _ = X__syscall3(tls, int32(SYS_futex), int32(v4), int32(Int32FromInt32(FUTEX_WAKE)|v6), v5) != -int32(ENOSYS) || X__syscall3(tls, int32(SYS_futex), int32(v4), int32(Int32FromInt32(FUTEX_WAKE)), v5) != 0 + } + return c +} + +func Xgetchar(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l, v2, v4 int32 + var v1, v5, v6 uintptr + _, _, _, _, _, _ = l, v1, v2, v4, v5, v6 + v1 = uintptr(unsafe.Pointer(&X__stdin_FILE)) + l = AtomicLoadPInt32(v1 + 76) + if l < 0 || l != 0 && l & ^Int32FromInt32(MAYBE_WAITERS) == (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Ftid { + if (*TFILE)(unsafe.Pointer(v1)).Frpos != (*TFILE)(unsafe.Pointer(v1)).Frend { + v6 = v1 + 4 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + v4 = Int32FromUint8(**(**uint8)(__ccgo_up(v5))) + } else { + v4 = X__uflow(tls, v1) + } + v2 = v4 + goto _3 + } + v2 = _locking_getc2(tls, v1) + goto _3 +_3: + return v2 +} + +func Xgetchar_unlocked(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + var v2, v3 uintptr + _, _, _ = v1, v2, v3 + if (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdin_FILE)))).Frpos != (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdin_FILE)))).Frend { + v3 = uintptr(unsafe.Pointer(&X__stdin_FILE)) + 4 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__uflow(tls, uintptr(unsafe.Pointer(&X__stdin_FILE))) + } + return v1 +} + +func Xgetdelim(tls *TLS, s uintptr, n uintptr, delim int32, f uintptr) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v delim=%v f=%v, (%v:)", tls, s, n, delim, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, c, v1, v3 int32 + var i, k, m, v11 Tsize_t + var tmp, z, v6, v7 uintptr + var v10 int8 + _, _, _, _, _, _, _, _, _, _, _, _, _ = __need_unlock, c, i, k, m, tmp, z, v1, v10, v11, v3, v6, v7 + i = uint32(0) + if AtomicLoadPInt32(f+76) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + if !(n != 0) || !(s != 0) { + **(**int32)(__ccgo_up(f + 72)) |= (*TFILE)(unsafe.Pointer(f)).Fmode - int32(1) + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + if !(**(**uintptr)(__ccgo_up(s)) != 0) { + **(**Tsize_t)(__ccgo_up(n)) = uint32(0) + } + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + z = Xmemchr(tls, (*TFILE)(unsafe.Pointer(f)).Frpos, delim, Uint32FromInt32(int32((*TFILE)(unsafe.Pointer(f)).Frend)-int32((*TFILE)(unsafe.Pointer(f)).Frpos))) + if z != 0 { + v1 = int32(z) - int32((*TFILE)(unsafe.Pointer(f)).Frpos) + int32(1) + } else { + v1 = int32((*TFILE)(unsafe.Pointer(f)).Frend) - int32((*TFILE)(unsafe.Pointer(f)).Frpos) + } + k = Uint32FromInt32(v1) + } else { + z = uintptr(0) + k = uint32(0) + } + if i+k >= **(**Tsize_t)(__ccgo_up(n)) { + m = i + k + uint32(2) + if !(z != 0) && m < Uint32FromUint32(0xffffffff)/Uint32FromInt32(4) { + m = m + m/uint32(2) + } + tmp = Xrealloc(tls, **(**uintptr)(__ccgo_up(s)), m) + if !(tmp != 0) { + m = i + k + uint32(2) + tmp = Xrealloc(tls, **(**uintptr)(__ccgo_up(s)), m) + if !(tmp != 0) { + /* Copy as much as fits and ensure no + * pushback remains in the FILE buf. */ + k = **(**Tsize_t)(__ccgo_up(n)) - i + Xmemcpy(tls, **(**uintptr)(__ccgo_up(s))+uintptr(i), (*TFILE)(unsafe.Pointer(f)).Frpos, k) + **(**uintptr)(__ccgo_up(f + 4)) += uintptr(k) + **(**int32)(__ccgo_up(f + 72)) |= (*TFILE)(unsafe.Pointer(f)).Fmode - int32(1) + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOMEM) + return -int32(1) + } + } + **(**uintptr)(__ccgo_up(s)) = tmp + **(**Tsize_t)(__ccgo_up(n)) = m + } + if k != 0 { + Xmemcpy(tls, **(**uintptr)(__ccgo_up(s))+uintptr(i), (*TFILE)(unsafe.Pointer(f)).Frpos, k) + **(**uintptr)(__ccgo_up(f + 4)) += uintptr(k) + i = i + k + } + if z != 0 { + break + } + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + v7 = f + 4 + v6 = *(*uintptr)(unsafe.Pointer(v7)) + *(*uintptr)(unsafe.Pointer(v7)) = *(*uintptr)(unsafe.Pointer(v7)) + 1 + v3 = Int32FromUint8(**(**uint8)(__ccgo_up(v6))) + } else { + v3 = X__uflow(tls, f) + } + v1 = v3 + c = v1 + if v1 == -int32(1) { + if !(i != 0) || !((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_EOF) != 0) { + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return -int32(1) + } + break + } + /* If the byte read by getc won't fit without growing the + * output buffer, push it back for next iteration. */ + if i+uint32(1) >= **(**Tsize_t)(__ccgo_up(n)) { + v7 = f + 4 + *(*uintptr)(unsafe.Pointer(v7)) = *(*uintptr)(unsafe.Pointer(v7)) - 1 + v6 = *(*uintptr)(unsafe.Pointer(v7)) + **(**uint8)(__ccgo_up(v6)) = Uint8FromInt32(c) + } else { + v10 = int8(c) + v11 = i + i = i + 1 + **(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(s)) + uintptr(v11))) = v10 + if int32(v10) == delim { + break + } + } + goto _2 + _2: + } + **(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(s)) + uintptr(i))) = 0 + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return Int32FromUint32(i) +} + +func X__getdelim(tls *TLS, s uintptr, n uintptr, delim int32, f uintptr) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v delim=%v f=%v, (%v:)", tls, s, n, delim, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetdelim(tls, s, n, delim, f) +} + +func Xgetline(tls *TLS, s uintptr, n uintptr, f uintptr) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v f=%v, (%v:)", tls, s, n, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetdelim(tls, s, n, int32('\n'), f) +} + +func Xgets(tls *TLS, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, c, v1, v2, v3 int32 + var i, v6 Tsize_t + var v4, v5 uintptr + _, _, _, _, _, _, _, _, _ = __need_unlock, c, i, v1, v2, v3, v4, v5, v6 + i = uint32(0) + if AtomicLoadPInt32(uintptr(unsafe.Pointer(&X__stdin_FILE))+76) >= 0 { + v1 = ___lockfile(tls, uintptr(unsafe.Pointer(&X__stdin_FILE))) + } else { + v1 = 0 + } + __need_unlock = v1 + for { + if (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdin_FILE)))).Frpos != (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdin_FILE)))).Frend { + v5 = uintptr(unsafe.Pointer(&X__stdin_FILE)) + 4 + v4 = *(*uintptr)(unsafe.Pointer(v5)) + *(*uintptr)(unsafe.Pointer(v5)) = *(*uintptr)(unsafe.Pointer(v5)) + 1 + v3 = Int32FromUint8(**(**uint8)(__ccgo_up(v4))) + } else { + v3 = X__uflow(tls, uintptr(unsafe.Pointer(&X__stdin_FILE))) + } + v2 = v3 + c = v2 + if !(v2 != -int32(1) && c != int32('\n')) { + break + } + v6 = i + i = i + 1 + **(**int8)(__ccgo_up(s + uintptr(v6))) = int8(c) + } + **(**int8)(__ccgo_up(s + uintptr(i))) = 0 + if c != int32('\n') && (!((*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdin_FILE)))).Fflags&Uint32FromInt32(F_EOF) != 0) || !(i != 0)) { + s = uintptr(0) + } + if __need_unlock != 0 { + ___unlockfile(tls, uintptr(unsafe.Pointer(&X__stdin_FILE))) + } + return s +} + +func Xgetw(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 int32 + var _ /* x at bp+0 */ int32 + _ = v1 + if Xfread(tls, bp, uint32(4), uint32(1), f) != 0 { + v1 = **(**int32)(__ccgo_up(bp)) + } else { + v1 = -int32(1) + } + return v1 +} + +func Xgetwc(tls *TLS, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfgetwc(tls, f) +} + +func Xgetwchar(tls *TLS) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfgetwc(tls, uintptr(unsafe.Pointer(&X__stdin_FILE))) +} + +func Xgetwchar_unlocked(tls *TLS) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetwchar(tls) +} + +var _ofl_head uintptr +var _ofl_lock [1]int32 + +func X__ofl_lock(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + ___lock(tls, uintptr(unsafe.Pointer(&_ofl_lock))) + return uintptr(unsafe.Pointer(&_ofl_head)) +} + +func X__ofl_unlock(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + ___unlock(tls, uintptr(unsafe.Pointer(&_ofl_lock))) +} + +func X__ofl_add(tls *TLS, f uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var head uintptr + _ = head + head = X__ofl_lock(tls) + (*TFILE)(unsafe.Pointer(f)).Fnext = **(**uintptr)(__ccgo_up(head)) + if **(**uintptr)(__ccgo_up(head)) != 0 { + (*TFILE)(unsafe.Pointer(**(**uintptr)(__ccgo_up(head)))).Fprev = f + } + **(**uintptr)(__ccgo_up(head)) = f + X__ofl_unlock(tls) + return f +} + +type Tcookie1 = struct { + Fbufp uintptr + Fsizep uintptr + Fpos Tsize_t + Fbuf uintptr + Flen1 Tsize_t + Fspace Tsize_t +} + +type Tms_FILE = struct { + Ff TFILE + Fc Tcookie1 + Fbuf [1024]uint8 +} + +func _ms_seek(tls *TLS, f uintptr, off Toff_t, whence int32) (r Toff_t) { + bp := tls.Alloc(16) + defer tls.Free(16) + var base Tssize_t + var c uintptr + var v2 Tsize_t + _, _, _ = base, c, v2 + c = (*TFILE)(unsafe.Pointer(f)).Fcookie + if !(Uint32FromInt32(whence) > uint32(2)) { + goto _1 + } + goto fail +fail: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return int64(-int32(1)) +_1: + ; + *(*[3]Tsize_t)(unsafe.Pointer(bp)) = [3]Tsize_t{ + 1: (*Tcookie1)(unsafe.Pointer(c)).Fpos, + 2: (*Tcookie1)(unsafe.Pointer(c)).Flen1, + } + base = Int32FromUint32(**(**Tsize_t)(__ccgo_up(bp + uintptr(whence)*4))) + if off < int64(-base) || off > int64(int32(0x7fffffff)-base) { + goto fail + } + v2 = Uint32FromInt64(int64(base) + off) + (*Tcookie1)(unsafe.Pointer(c)).Fpos = v2 + return Int64FromUint32(v2) +} + +func _ms_write(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + var c, newbuf, v1 uintptr + var len2 Tsize_t + _, _, _, _ = c, len2, newbuf, v1 + c = (*TFILE)(unsafe.Pointer(f)).Fcookie + len2 = Uint32FromInt32(int32((*TFILE)(unsafe.Pointer(f)).Fwpos) - int32((*TFILE)(unsafe.Pointer(f)).Fwbase)) + if len2 != 0 { + (*TFILE)(unsafe.Pointer(f)).Fwpos = (*TFILE)(unsafe.Pointer(f)).Fwbase + if _ms_write(tls, f, (*TFILE)(unsafe.Pointer(f)).Fwbase, len2) < len2 { + return uint32(0) + } + } + if len1+(*Tcookie1)(unsafe.Pointer(c)).Fpos >= (*Tcookie1)(unsafe.Pointer(c)).Fspace { + len2 = uint32(2)*(*Tcookie1)(unsafe.Pointer(c)).Fspace + uint32(1) | ((*Tcookie1)(unsafe.Pointer(c)).Fpos + len1 + uint32(1)) + newbuf = Xrealloc(tls, (*Tcookie1)(unsafe.Pointer(c)).Fbuf, len2) + if !(newbuf != 0) { + return uint32(0) + } + v1 = newbuf + (*Tcookie1)(unsafe.Pointer(c)).Fbuf = v1 + **(**uintptr)(__ccgo_up((*Tcookie1)(unsafe.Pointer(c)).Fbufp)) = v1 + Xmemset(tls, (*Tcookie1)(unsafe.Pointer(c)).Fbuf+uintptr((*Tcookie1)(unsafe.Pointer(c)).Fspace), 0, len2-(*Tcookie1)(unsafe.Pointer(c)).Fspace) + (*Tcookie1)(unsafe.Pointer(c)).Fspace = len2 + } + Xmemcpy(tls, (*Tcookie1)(unsafe.Pointer(c)).Fbuf+uintptr((*Tcookie1)(unsafe.Pointer(c)).Fpos), buf, len1) + **(**Tsize_t)(__ccgo_up(c + 8)) += len1 + if (*Tcookie1)(unsafe.Pointer(c)).Fpos >= (*Tcookie1)(unsafe.Pointer(c)).Flen1 { + (*Tcookie1)(unsafe.Pointer(c)).Flen1 = (*Tcookie1)(unsafe.Pointer(c)).Fpos + } + **(**Tsize_t)(__ccgo_up((*Tcookie1)(unsafe.Pointer(c)).Fsizep)) = (*Tcookie1)(unsafe.Pointer(c)).Fpos + return len1 +} + +func _ms_close(tls *TLS, f uintptr) (r int32) { + return 0 +} + +func Xopen_memstream(tls *TLS, bufp uintptr, sizep uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v bufp=%v sizep=%v, (%v:)", tls, bufp, sizep, origin(2)) + defer func() { trc("-> %v", r) }() + } + var buf, f, v1 uintptr + var v3, v4, v5 Tsize_t + _, _, _, _, _, _ = buf, f, v1, v3, v4, v5 + v1 = Xmalloc(tls, uint32(1184)) + f = v1 + if !(v1 != 0) { + return uintptr(0) + } + v1 = Xmalloc(tls, uint32(1)) + buf = v1 + if !(v1 != 0) { + Xfree(tls, f) + return uintptr(0) + } + Xmemset(tls, f, 0, uint32(136)) + Xmemset(tls, f+136, 0, uint32(24)) + (*Tms_FILE)(unsafe.Pointer(f)).Ff.Fcookie = f + 136 + (*Tms_FILE)(unsafe.Pointer(f)).Fc.Fbufp = bufp + (*Tms_FILE)(unsafe.Pointer(f)).Fc.Fsizep = sizep + v5 = Uint32FromInt32(0) + **(**Tsize_t)(__ccgo_up(sizep)) = v5 + v4 = v5 + (*Tms_FILE)(unsafe.Pointer(f)).Fc.Fspace = v4 + v3 = v4 + (*Tms_FILE)(unsafe.Pointer(f)).Fc.Flen1 = v3 + (*Tms_FILE)(unsafe.Pointer(f)).Fc.Fpos = v3 + v1 = buf + **(**uintptr)(__ccgo_up(bufp)) = v1 + (*Tms_FILE)(unsafe.Pointer(f)).Fc.Fbuf = v1 + **(**int8)(__ccgo_up(buf)) = 0 + (*Tms_FILE)(unsafe.Pointer(f)).Ff.Fflags = uint32(F_NORD) + (*Tms_FILE)(unsafe.Pointer(f)).Ff.Ffd = -int32(1) + (*Tms_FILE)(unsafe.Pointer(f)).Ff.Fbuf = f + 160 + (*Tms_FILE)(unsafe.Pointer(f)).Ff.Fbuf_size = uint32(1024) + (*Tms_FILE)(unsafe.Pointer(f)).Ff.Flbf = -int32(1) + (*Tms_FILE)(unsafe.Pointer(f)).Ff.Fwrite = __ccgo_fp(_ms_write) + (*Tms_FILE)(unsafe.Pointer(f)).Ff.Fseek = __ccgo_fp(_ms_seek) + (*Tms_FILE)(unsafe.Pointer(f)).Ff.Fclose1 = __ccgo_fp(_ms_close) + (*Tms_FILE)(unsafe.Pointer(f)).Ff.Fmode = -int32(1) + if !(X__libc.Fthreaded != 0) { + AtomicStorePInt32(f+76, -int32(1)) + } + return X__ofl_add(tls, f) +} + +type Tcookie2 = struct { + Fbufp uintptr + Fsizep uintptr + Fpos Tsize_t + Fbuf uintptr + Flen1 Tsize_t + Fspace Tsize_t + Fmbs Tmbstate_t +} + +type Twms_FILE = struct { + Ff TFILE + Fc Tcookie2 + Fbuf [1]uint8 +} + +func _wms_seek(tls *TLS, f uintptr, off Toff_t, whence int32) (r Toff_t) { + bp := tls.Alloc(16) + defer tls.Free(16) + var base Tssize_t + var c uintptr + var v2 Tsize_t + _, _, _ = base, c, v2 + c = (*TFILE)(unsafe.Pointer(f)).Fcookie + if !(Uint32FromInt32(whence) > uint32(2)) { + goto _1 + } + goto fail +fail: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return int64(-int32(1)) +_1: + ; + *(*[3]Tsize_t)(unsafe.Pointer(bp)) = [3]Tsize_t{ + 1: (*Tcookie2)(unsafe.Pointer(c)).Fpos, + 2: (*Tcookie2)(unsafe.Pointer(c)).Flen1, + } + base = Int32FromUint32(**(**Tsize_t)(__ccgo_up(bp + uintptr(whence)*4))) + if off < int64(-base) || off > int64(Int32FromInt32(0x7fffffff)/Int32FromInt32(4)-base) { + goto fail + } + Xmemset(tls, c+24, 0, uint32(8)) + v2 = Uint32FromInt64(int64(base) + off) + (*Tcookie2)(unsafe.Pointer(c)).Fpos = v2 + return Int64FromUint32(v2) +} + +func _wms_write(tls *TLS, f uintptr, _buf uintptr, len1 Tsize_t) (r Tsize_t) { + bp := tls.Alloc(16) + defer tls.Free(16) + *(*uintptr)(unsafe.Pointer(bp)) = _buf + var c, newbuf, v1 uintptr + var len2 Tsize_t + _, _, _, _ = c, len2, newbuf, v1 + c = (*TFILE)(unsafe.Pointer(f)).Fcookie + len2 = Uint32FromInt32(int32((*TFILE)(unsafe.Pointer(f)).Fwpos) - int32((*TFILE)(unsafe.Pointer(f)).Fwbase)) + if len2 != 0 { + (*TFILE)(unsafe.Pointer(f)).Fwpos = (*TFILE)(unsafe.Pointer(f)).Fwbase + if _wms_write(tls, f, (*TFILE)(unsafe.Pointer(f)).Fwbase, len2) < len2 { + return uint32(0) + } + } + if len1+(*Tcookie2)(unsafe.Pointer(c)).Fpos >= (*Tcookie2)(unsafe.Pointer(c)).Fspace { + len2 = uint32(2)*(*Tcookie2)(unsafe.Pointer(c)).Fspace + uint32(1) | ((*Tcookie2)(unsafe.Pointer(c)).Fpos + len1 + uint32(1)) + if len2 > Uint32FromInt32(Int32FromInt32(0x7fffffff)/Int32FromInt32(4)) { + return uint32(0) + } + newbuf = Xrealloc(tls, (*Tcookie2)(unsafe.Pointer(c)).Fbuf, len2*uint32(4)) + if !(newbuf != 0) { + return uint32(0) + } + v1 = newbuf + (*Tcookie2)(unsafe.Pointer(c)).Fbuf = v1 + **(**uintptr)(__ccgo_up((*Tcookie2)(unsafe.Pointer(c)).Fbufp)) = v1 + Xmemset(tls, (*Tcookie2)(unsafe.Pointer(c)).Fbuf+uintptr((*Tcookie2)(unsafe.Pointer(c)).Fspace)*4, 0, uint32(4)*(len2-(*Tcookie2)(unsafe.Pointer(c)).Fspace)) + (*Tcookie2)(unsafe.Pointer(c)).Fspace = len2 + } + len2 = Xmbsnrtowcs(tls, (*Tcookie2)(unsafe.Pointer(c)).Fbuf+uintptr((*Tcookie2)(unsafe.Pointer(c)).Fpos)*4, bp, len1, (*Tcookie2)(unsafe.Pointer(c)).Fspace-(*Tcookie2)(unsafe.Pointer(c)).Fpos, c+24) + if len2 == Uint32FromInt32(-Int32FromInt32(1)) { + return uint32(0) + } + **(**Tsize_t)(__ccgo_up(c + 8)) += len2 + if (*Tcookie2)(unsafe.Pointer(c)).Fpos >= (*Tcookie2)(unsafe.Pointer(c)).Flen1 { + (*Tcookie2)(unsafe.Pointer(c)).Flen1 = (*Tcookie2)(unsafe.Pointer(c)).Fpos + } + **(**Tsize_t)(__ccgo_up((*Tcookie2)(unsafe.Pointer(c)).Fsizep)) = (*Tcookie2)(unsafe.Pointer(c)).Fpos + return len1 +} + +func _wms_close(tls *TLS, f uintptr) (r int32) { + return 0 +} + +func Xopen_wmemstream(tls *TLS, bufp uintptr, sizep uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v bufp=%v sizep=%v, (%v:)", tls, bufp, sizep, origin(2)) + defer func() { trc("-> %v", r) }() + } + var buf, f, v1 uintptr + var v3, v4, v5 Tsize_t + _, _, _, _, _, _ = buf, f, v1, v3, v4, v5 + v1 = Xmalloc(tls, uint32(172)) + f = v1 + if !(v1 != 0) { + return uintptr(0) + } + v1 = Xmalloc(tls, uint32(4)) + buf = v1 + if !(v1 != 0) { + Xfree(tls, f) + return uintptr(0) + } + Xmemset(tls, f, 0, uint32(136)) + Xmemset(tls, f+136, 0, uint32(32)) + (*Twms_FILE)(unsafe.Pointer(f)).Ff.Fcookie = f + 136 + (*Twms_FILE)(unsafe.Pointer(f)).Fc.Fbufp = bufp + (*Twms_FILE)(unsafe.Pointer(f)).Fc.Fsizep = sizep + v5 = Uint32FromInt32(0) + **(**Tsize_t)(__ccgo_up(sizep)) = v5 + v4 = v5 + (*Twms_FILE)(unsafe.Pointer(f)).Fc.Fspace = v4 + v3 = v4 + (*Twms_FILE)(unsafe.Pointer(f)).Fc.Flen1 = v3 + (*Twms_FILE)(unsafe.Pointer(f)).Fc.Fpos = v3 + v1 = buf + **(**uintptr)(__ccgo_up(bufp)) = v1 + (*Twms_FILE)(unsafe.Pointer(f)).Fc.Fbuf = v1 + **(**Twchar_t)(__ccgo_up(buf)) = 0 + (*Twms_FILE)(unsafe.Pointer(f)).Ff.Fflags = uint32(F_NORD) + (*Twms_FILE)(unsafe.Pointer(f)).Ff.Ffd = -int32(1) + (*Twms_FILE)(unsafe.Pointer(f)).Ff.Fbuf = f + 168 + (*Twms_FILE)(unsafe.Pointer(f)).Ff.Fbuf_size = uint32(0) + (*Twms_FILE)(unsafe.Pointer(f)).Ff.Flbf = -int32(1) + (*Twms_FILE)(unsafe.Pointer(f)).Ff.Fwrite = __ccgo_fp(_wms_write) + (*Twms_FILE)(unsafe.Pointer(f)).Ff.Fseek = __ccgo_fp(_wms_seek) + (*Twms_FILE)(unsafe.Pointer(f)).Ff.Fclose1 = __ccgo_fp(_wms_close) + if !(X__libc.Fthreaded != 0) { + AtomicStorePInt32(f+76, -int32(1)) + } + Xfwide(tls, f, int32(1)) + return X__ofl_add(tls, f) +} + +func Xpclose(tls *TLS, f uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var pid Tpid_t + var r, v1 int32 + var _ /* status at bp+0 */ int32 + _, _, _ = pid, r, v1 + pid = (*TFILE)(unsafe.Pointer(f)).Fpipe_pid + Xfclose(tls, f) + for { + v1 = int32(X__syscall4(tls, int32(SYS_wait4), pid, int32(bp), int32(Int32FromInt32(0)), int32(Int32FromInt32(0)))) + r = v1 + if !(v1 == -int32(EINTR)) { + break + } + } + if r < 0 { + return X__syscall_ret(tls, Uint32FromInt32(r)) + } + return **(**int32)(__ccgo_up(bp)) +} + +func Xperror(tls *TLS, msg uintptr) { + if __ccgo_strace { + trc("tls=%v msg=%v, (%v:)", tls, msg, origin(2)) + } + var __need_unlock, old_mode, v1 int32 + var errstr, f, old_locale uintptr + _, _, _, _, _, _ = __need_unlock, errstr, f, old_locale, old_mode, v1 + f = uintptr(unsafe.Pointer(&X__stderr_FILE)) + errstr = Xstrerror(tls, **(**int32)(__ccgo_up(X__errno_location(tls)))) + if AtomicLoadPInt32(f+76) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + /* Save stderr's orientation and encoding rule, since perror is not + * permitted to change them. */ + old_locale = (*TFILE)(unsafe.Pointer(f)).Flocale + old_mode = (*TFILE)(unsafe.Pointer(f)).Fmode + if msg != 0 && **(**int8)(__ccgo_up(msg)) != 0 { + Xfwrite(tls, msg, _strlen(tls, msg), uint32(1), f) + Xfputc(tls, int32(':'), f) + Xfputc(tls, int32(' '), f) + } + Xfwrite(tls, errstr, _strlen(tls, errstr), uint32(1), f) + Xfputc(tls, int32('\n'), f) + (*TFILE)(unsafe.Pointer(f)).Fmode = old_mode + (*TFILE)(unsafe.Pointer(f)).Flocale = old_locale + if __need_unlock != 0 { + ___unlockfile(tls, f) + } +} + +func Xprintf(tls *TLS, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v va=%v, (%v:)", tls, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvfprintf(tls, uintptr(unsafe.Pointer(&X__stdout_FILE)), fmt, ap) + _ = ap + return ret +} + +func _locking_putc1(tls *TLS, c int32, f uintptr) (r int32) { + var v1, v6 int32 + var v2 uint8 + var v3, v4 uintptr + _, _, _, _, _ = v1, v2, v3, v4, v6 + if _a_cas(tls, f+76, 0, Int32FromInt32(MAYBE_WAITERS)-Int32FromInt32(1)) != 0 { + ___lockfile(tls, f) + } + if Int32FromUint8(Uint8FromInt32(c)) != (*TFILE)(unsafe.Pointer(f)).Flbf && (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwend { + v2 = Uint8FromInt32(c) + v4 = f + 20 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + **(**uint8)(__ccgo_up(v3)) = v2 + v1 = Int32FromUint8(v2) + } else { + v1 = X__overflow(tls, f, Int32FromUint8(Uint8FromInt32(c))) + } + c = v1 + if _a_swap(tls, f+76, 0)&int32(MAYBE_WAITERS) != 0 { + v3 = f + 76 + v1 = int32(1) + v6 = int32(1) + if v6 != 0 { + v6 = int32(FUTEX_PRIVATE) + } + if v1 < Int32FromInt32(0) { + v1 = int32(INT_MAX) + } + _ = X__syscall3(tls, int32(SYS_futex), int32(v3), int32(Int32FromInt32(FUTEX_WAKE)|v6), v1) != -int32(ENOSYS) || X__syscall3(tls, int32(SYS_futex), int32(v3), int32(Int32FromInt32(FUTEX_WAKE)), v1) != 0 + } + return c +} + +func Xputc(tls *TLS, c1 int32, f1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v c1=%v f1=%v, (%v:)", tls, c1, f1, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l, v1, v3, v5 int32 + var v2, v7, v8 uintptr + var v6 uint8 + _, _, _, _, _, _, _, _ = l, v1, v2, v3, v5, v6, v7, v8 + v1 = c1 + v2 = f1 + l = AtomicLoadPInt32(v2 + 76) + if l < 0 || l != 0 && l & ^Int32FromInt32(MAYBE_WAITERS) == (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Ftid { + if Int32FromUint8(Uint8FromInt32(v1)) != (*TFILE)(unsafe.Pointer(v2)).Flbf && (*TFILE)(unsafe.Pointer(v2)).Fwpos != (*TFILE)(unsafe.Pointer(v2)).Fwend { + v6 = Uint8FromInt32(v1) + v8 = v2 + 20 + v7 = *(*uintptr)(unsafe.Pointer(v8)) + *(*uintptr)(unsafe.Pointer(v8)) = *(*uintptr)(unsafe.Pointer(v8)) + 1 + **(**uint8)(__ccgo_up(v7)) = v6 + v5 = Int32FromUint8(v6) + } else { + v5 = X__overflow(tls, v2, Int32FromUint8(Uint8FromInt32(v1))) + } + v3 = v5 + goto _4 + } + v3 = _locking_putc1(tls, v1, v2) + goto _4 +_4: + return v3 +} + +func X_IO_putc(tls *TLS, c1 int32, f1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v c1=%v f1=%v, (%v:)", tls, c1, f1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xputc(tls, c1, f1) +} + +func Xputc_unlocked(tls *TLS, c int32, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v f=%v, (%v:)", tls, c, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + var v2 uint8 + var v3, v4 uintptr + _, _, _, _ = v1, v2, v3, v4 + if Int32FromUint8(Uint8FromInt32(c)) != (*TFILE)(unsafe.Pointer(f)).Flbf && (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwend { + v2 = Uint8FromInt32(c) + v4 = f + 20 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + **(**uint8)(__ccgo_up(v3)) = v2 + v1 = Int32FromUint8(v2) + } else { + v1 = X__overflow(tls, f, Int32FromUint8(Uint8FromInt32(c))) + } + return v1 +} + +func X_IO_putc_unlocked(tls *TLS, c int32, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v f=%v, (%v:)", tls, c, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xputc_unlocked(tls, c, f) +} + +func Xfputc_unlocked(tls *TLS, c int32, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v f=%v, (%v:)", tls, c, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xputc_unlocked(tls, c, f) +} + +func _locking_putc2(tls *TLS, c int32, f uintptr) (r int32) { + var v1, v6 int32 + var v2 uint8 + var v3, v4 uintptr + _, _, _, _, _ = v1, v2, v3, v4, v6 + if _a_cas(tls, f+76, 0, Int32FromInt32(MAYBE_WAITERS)-Int32FromInt32(1)) != 0 { + ___lockfile(tls, f) + } + if Int32FromUint8(Uint8FromInt32(c)) != (*TFILE)(unsafe.Pointer(f)).Flbf && (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwend { + v2 = Uint8FromInt32(c) + v4 = f + 20 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + **(**uint8)(__ccgo_up(v3)) = v2 + v1 = Int32FromUint8(v2) + } else { + v1 = X__overflow(tls, f, Int32FromUint8(Uint8FromInt32(c))) + } + c = v1 + if _a_swap(tls, f+76, 0)&int32(MAYBE_WAITERS) != 0 { + v3 = f + 76 + v1 = int32(1) + v6 = int32(1) + if v6 != 0 { + v6 = int32(FUTEX_PRIVATE) + } + if v1 < Int32FromInt32(0) { + v1 = int32(INT_MAX) + } + _ = X__syscall3(tls, int32(SYS_futex), int32(v3), int32(Int32FromInt32(FUTEX_WAKE)|v6), v1) != -int32(ENOSYS) || X__syscall3(tls, int32(SYS_futex), int32(v3), int32(Int32FromInt32(FUTEX_WAKE)), v1) != 0 + } + return c +} + +func Xputchar(tls *TLS, c1 int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c1=%v, (%v:)", tls, c1, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l, v1, v3, v5 int32 + var v2, v7, v8 uintptr + var v6 uint8 + _, _, _, _, _, _, _, _ = l, v1, v2, v3, v5, v6, v7, v8 + v1 = c1 + v2 = uintptr(unsafe.Pointer(&X__stdout_FILE)) + l = AtomicLoadPInt32(v2 + 76) + if l < 0 || l != 0 && l & ^Int32FromInt32(MAYBE_WAITERS) == (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Ftid { + if Int32FromUint8(Uint8FromInt32(v1)) != (*TFILE)(unsafe.Pointer(v2)).Flbf && (*TFILE)(unsafe.Pointer(v2)).Fwpos != (*TFILE)(unsafe.Pointer(v2)).Fwend { + v6 = Uint8FromInt32(v1) + v8 = v2 + 20 + v7 = *(*uintptr)(unsafe.Pointer(v8)) + *(*uintptr)(unsafe.Pointer(v8)) = *(*uintptr)(unsafe.Pointer(v8)) + 1 + **(**uint8)(__ccgo_up(v7)) = v6 + v5 = Int32FromUint8(v6) + } else { + v5 = X__overflow(tls, v2, Int32FromUint8(Uint8FromInt32(v1))) + } + v3 = v5 + goto _4 + } + v3 = _locking_putc2(tls, v1, v2) + goto _4 +_4: + return v3 +} + +func Xputchar_unlocked(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + var v2 uint8 + var v3, v4 uintptr + _, _, _, _ = v1, v2, v3, v4 + if Int32FromUint8(Uint8FromInt32(c)) != (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdout_FILE)))).Flbf && (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdout_FILE)))).Fwpos != (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdout_FILE)))).Fwend { + v2 = Uint8FromInt32(c) + v4 = uintptr(unsafe.Pointer(&X__stdout_FILE)) + 20 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + **(**uint8)(__ccgo_up(v3)) = v2 + v1 = Int32FromUint8(v2) + } else { + v1 = X__overflow(tls, uintptr(unsafe.Pointer(&X__stdout_FILE)), Int32FromUint8(Uint8FromInt32(c))) + } + return v1 +} + +func Xputs(tls *TLS, s uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var __need_unlock, r, v1, v2 int32 + var v3 uint8 + var v4, v5 uintptr + var v6 bool + _, _, _, _, _, _, _, _ = __need_unlock, r, v1, v2, v3, v4, v5, v6 + if AtomicLoadPInt32(uintptr(unsafe.Pointer(&X__stdout_FILE))+76) >= 0 { + v1 = ___lockfile(tls, uintptr(unsafe.Pointer(&X__stdout_FILE))) + } else { + v1 = 0 + } + __need_unlock = v1 + if v6 = Xfputs(tls, s, uintptr(unsafe.Pointer(&X__stdout_FILE))) < 0; !v6 { + if Int32FromUint8(Uint8FromInt32(Int32FromUint8('\n'))) != (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdout_FILE)))).Flbf && (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdout_FILE)))).Fwpos != (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdout_FILE)))).Fwend { + v3 = Uint8FromInt32(Int32FromUint8('\n')) + v5 = uintptr(unsafe.Pointer(&X__stdout_FILE)) + 20 + v4 = *(*uintptr)(unsafe.Pointer(v5)) + *(*uintptr)(unsafe.Pointer(v5)) = *(*uintptr)(unsafe.Pointer(v5)) + 1 + **(**uint8)(__ccgo_up(v4)) = v3 + v2 = Int32FromUint8(v3) + } else { + v2 = X__overflow(tls, uintptr(unsafe.Pointer(&X__stdout_FILE)), Int32FromUint8(Uint8FromInt32(Int32FromUint8('\n')))) + } + } + r = -BoolInt32(v6 || v2 < 0) + if __need_unlock != 0 { + ___unlockfile(tls, uintptr(unsafe.Pointer(&X__stdout_FILE))) + } + return r +} + +func Xputw(tls *TLS, _x int32, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v _x=%v f=%v, (%v:)", tls, _x, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + *(*int32)(unsafe.Pointer(bp)) = _x + return Int32FromUint32(Xfwrite(tls, bp, uint32(4), uint32(1), f)) - int32(1) +} + +func Xputwc(tls *TLS, c Twchar_t, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v f=%v, (%v:)", tls, c, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfputwc(tls, c, f) +} + +func Xputwchar(tls *TLS, c Twchar_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfputwc(tls, c, uintptr(unsafe.Pointer(&X__stdout_FILE))) +} + +func Xputwchar_unlocked(tls *TLS, c Twchar_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xputwchar(tls, c) +} + +func Xremove(tls *TLS, path uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v path=%v, (%v:)", tls, path, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + r = int32(X__syscall1(tls, int32(SYS_unlink), int32(path))) + if r == -int32(EISDIR) { + r = int32(X__syscall1(tls, int32(SYS_rmdir), int32(path))) + } + return X__syscall_ret(tls, Uint32FromInt32(r)) +} + +func Xrename(tls *TLS, old uintptr, new1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v old=%v new1=%v, (%v:)", tls, old, new1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_rename), int32(old), int32(new1)))) +} + +func Xrewind(tls *TLS, f uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } + var __need_unlock, v1 int32 + _, _ = __need_unlock, v1 + if AtomicLoadPInt32(f+76) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + X__fseeko_unlocked(tls, f, 0, 0) + **(**uint32)(__ccgo_up(f)) &= Uint32FromInt32(^Int32FromInt32(F_ERR)) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } +} + +func Xscanf(tls *TLS, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v va=%v, (%v:)", tls, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvscanf(tls, fmt, ap) + _ = ap + return ret +} + +func X__isoc99_scanf(tls *TLS, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v va=%v, (%v:)", tls, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xscanf(tls, fmt, va) +} + +func Xsetbuf(tls *TLS, f uintptr, buf uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v buf=%v, (%v:)", tls, f, buf, origin(2)) + } + var v1 int32 + _ = v1 + if buf != 0 { + v1 = _IOFBF + } else { + v1 = int32(_IONBF) + } + Xsetvbuf(tls, f, buf, v1, uint32(BUFSIZ)) +} + +func Xsetbuffer(tls *TLS, f uintptr, buf uintptr, size Tsize_t) { + if __ccgo_strace { + trc("tls=%v f=%v buf=%v size=%v, (%v:)", tls, f, buf, size, origin(2)) + } + var v1 int32 + _ = v1 + if buf != 0 { + v1 = _IOFBF + } else { + v1 = int32(_IONBF) + } + Xsetvbuf(tls, f, buf, v1, size) +} + +func Xsetlinebuf(tls *TLS, f uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } + Xsetvbuf(tls, f, uintptr(0), int32(_IOLBF), uint32(0)) +} + +/* The behavior of this function is undefined except when it is the first + * operation on the stream, so the presence or absence of locking is not + * observable in a program whose behavior is defined. Thus no locking is + * performed here. No allocation of buffers is performed, but a buffer + * provided by the caller is used as long as it is suitably sized. */ + +func Xsetvbuf(tls *TLS, f uintptr, buf uintptr, type1 int32, size Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v buf=%v type1=%v size=%v, (%v:)", tls, f, buf, type1, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + (*TFILE)(unsafe.Pointer(f)).Flbf = -int32(1) + if type1 == int32(_IONBF) { + (*TFILE)(unsafe.Pointer(f)).Fbuf_size = uint32(0) + } else { + if type1 == int32(_IOLBF) || type1 == _IOFBF { + if buf != 0 && size >= uint32(UNGET) { + (*TFILE)(unsafe.Pointer(f)).Fbuf = buf + UintptrFromInt32(UNGET) + (*TFILE)(unsafe.Pointer(f)).Fbuf_size = size - uint32(UNGET) + } + if type1 == int32(_IOLBF) && (*TFILE)(unsafe.Pointer(f)).Fbuf_size != 0 { + (*TFILE)(unsafe.Pointer(f)).Flbf = int32('\n') + } + } else { + return -int32(1) + } + } + **(**uint32)(__ccgo_up(f)) |= uint32(F_SVB) + return 0 +} + +func Xsnprintf(tls *TLS, s uintptr, n Tsize_t, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v fmt=%v va=%v, (%v:)", tls, s, n, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvsnprintf(tls, s, n, fmt, ap) + _ = ap + return ret +} + +func Xsprintf(tls *TLS, s uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v va=%v, (%v:)", tls, s, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvsprintf(tls, s, fmt, ap) + _ = ap + return ret +} + +func Xsscanf(tls *TLS, s uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v va=%v, (%v:)", tls, s, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvsscanf(tls, s, fmt, ap) + _ = ap + return ret +} + +func X__isoc99_sscanf(tls *TLS, s uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v va=%v, (%v:)", tls, s, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xsscanf(tls, s, fmt, va) +} + +var _buf5 [8]uint8 + +func init() { + p := unsafe.Pointer(&X__stderr_FILE) + *(*uintptr)(unsafe.Add(p, 12)) = __ccgo_fp(X__stdio_close) + *(*uintptr)(unsafe.Add(p, 36)) = __ccgo_fp(X__stdio_write) + *(*uintptr)(unsafe.Add(p, 40)) = __ccgo_fp(X__stdio_seek) +} + +var _buf6 [1032]uint8 + +func init() { + p := unsafe.Pointer(&X__stdin_FILE) + *(*uintptr)(unsafe.Add(p, 12)) = __ccgo_fp(X__stdio_close) + *(*uintptr)(unsafe.Add(p, 32)) = __ccgo_fp(X__stdio_read) + *(*uintptr)(unsafe.Add(p, 40)) = __ccgo_fp(X__stdio_seek) +} + +var _buf7 [1032]uint8 + +func init() { + p := unsafe.Pointer(&X__stdout_FILE) + *(*uintptr)(unsafe.Add(p, 12)) = __ccgo_fp(X__stdio_close) + *(*uintptr)(unsafe.Add(p, 36)) = __ccgo_fp(X__stdout_write) + *(*uintptr)(unsafe.Add(p, 40)) = __ccgo_fp(X__stdio_seek) +} + +func Xswprintf(tls *TLS, s uintptr, n Tsize_t, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v fmt=%v va=%v, (%v:)", tls, s, n, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvswprintf(tls, s, n, fmt, ap) + _ = ap + return ret +} + +func Xswscanf(tls *TLS, s uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v va=%v, (%v:)", tls, s, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvswscanf(tls, s, fmt, ap) + _ = ap + return ret +} + +func X__isoc99_swscanf(tls *TLS, s uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v va=%v, (%v:)", tls, s, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xswscanf(tls, s, fmt, va) +} + +const MAXTRIES = 100 + +func Xtempnam(tls *TLS, dir uintptr, pfx uintptr) (r1 uintptr) { + if __ccgo_strace { + trc("tls=%v dir=%v pfx=%v, (%v:)", tls, dir, pfx, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(4112) + defer tls.Free(4112) + var dl, l, pl Tsize_t + var r, try int32 + var _ /* s at bp+1 */ [4096]int8 + _, _, _, _, _ = dl, l, pl, r, try + if !(dir != 0) { + dir = __ccgo_ts + 1406 + } + if !(pfx != 0) { + pfx = __ccgo_ts + 1411 + } + dl = _strlen(tls, dir) + pl = _strlen(tls, pfx) + l = dl + uint32(1) + pl + uint32(1) + uint32(6) + if l >= uint32(PATH_MAX) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENAMETOOLONG) + return uintptr(0) + } + Xmemcpy(tls, bp+1, dir, dl) + (**(**[4096]int8)(__ccgo_up(bp + 1)))[dl] = int8('/') + Xmemcpy(tls, bp+1+uintptr(dl)+uintptr(1), pfx, pl) + (**(**[4096]int8)(__ccgo_up(bp + 1)))[dl+uint32(1)+pl] = int8('_') + (**(**[4096]int8)(__ccgo_up(bp + 1)))[l] = 0 + try = 0 + for { + if !(try < int32(MAXTRIES)) { + break + } + ___randname(tls, bp+1+uintptr(l)-uintptr(6)) + *(*[1]int8)(unsafe.Pointer(bp)) = [1]int8{} + r = int32(X__syscall3(tls, int32(SYS_readlink), int32(bp+1), int32(bp), int32(Int32FromInt32(1)))) + if r == -int32(ENOENT) { + return Xstrdup(tls, bp+1) + } + goto _1 + _1: + ; + try = try + 1 + } + return uintptr(0) +} + +func Xtmpfile(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var f uintptr + var fd, try int32 + var _ /* s at bp+0 */ [20]int8 + _, _, _ = f, fd, try + **(**[20]int8)(__ccgo_up(bp)) = [20]int8{'/', 't', 'm', 'p', '/', 't', 'm', 'p', 'f', 'i', 'l', 'e', '_', 'X', 'X', 'X', 'X', 'X', 'X'} + try = 0 + for { + if !(try < int32(MAXTRIES)) { + break + } + ___randname(tls, bp+uintptr(13)) + fd = X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_open), int32(bp), int32(Int32FromInt32(O_RDWR)|Int32FromInt32(O_CREAT)|Int32FromInt32(O_EXCL)|Int32FromInt32(O_LARGEFILE)), int32(Int32FromInt32(0600))))) + if fd >= 0 { + X__syscall1(tls, int32(SYS_unlink), int32(bp)) + f = X__fdopen(tls, fd, __ccgo_ts+1416) + if !(f != 0) { + X__syscall1(tls, int32(SYS_close), fd) + } + return f + } + goto _1 + _1: + ; + try = try + 1 + } + return uintptr(0) +} + +func Xtmpnam(tls *TLS, buf uintptr) (r1 uintptr) { + if __ccgo_strace { + trc("tls=%v buf=%v, (%v:)", tls, buf, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var r, try int32 + var v2 uintptr + var _ /* s at bp+1 */ [19]int8 + _, _, _ = r, try, v2 + **(**[19]int8)(__ccgo_up(bp + 1)) = [19]int8{'/', 't', 'm', 'p', '/', 't', 'm', 'p', 'n', 'a', 'm', '_', 'X', 'X', 'X', 'X', 'X', 'X'} + try = 0 + for { + if !(try < int32(MAXTRIES)) { + break + } + ___randname(tls, bp+1+uintptr(12)) + *(*[1]int8)(unsafe.Pointer(bp)) = [1]int8{} + r = int32(X__syscall3(tls, int32(SYS_readlink), int32(bp+1), int32(bp), int32(Int32FromInt32(1)))) + if r == -int32(ENOENT) { + if buf != 0 { + v2 = buf + } else { + v2 = uintptr(unsafe.Pointer(&_internal1)) + } + return Xstrcpy(tls, v2, bp+1) + } + goto _1 + _1: + ; + try = try + 1 + } + return uintptr(0) +} + +var _internal1 [20]int8 + +func Xungetc(tls *TLS, c int32, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v f=%v, (%v:)", tls, c, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, v1 int32 + var v2, v3 uintptr + _, _, _, _ = __need_unlock, v1, v2, v3 + if c == -int32(1) { + return c + } + if AtomicLoadPInt32(f+76) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + if !((*TFILE)(unsafe.Pointer(f)).Frpos != 0) { + X__toread(tls, f) + } + if !((*TFILE)(unsafe.Pointer(f)).Frpos != 0) || (*TFILE)(unsafe.Pointer(f)).Frpos <= (*TFILE)(unsafe.Pointer(f)).Fbuf-uintptr(UNGET) { + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return -int32(1) + } + v3 = f + 4 + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) - 1 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + **(**uint8)(__ccgo_up(v2)) = Uint8FromInt32(c) + **(**uint32)(__ccgo_up(f)) &= Uint32FromInt32(^Int32FromInt32(F_EOF)) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return Int32FromUint8(Uint8FromInt32(c)) +} + +func Xungetwc(tls *TLS, c Twint_t, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v f=%v, (%v:)", tls, c, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var __need_unlock, l, v1 int32 + var loc Tlocale_t + var ploc, v4, v5 uintptr + var v3 bool + var _ /* mbc at bp+0 */ [4]uint8 + _, _, _, _, _, _, _, _ = __need_unlock, l, loc, ploc, v1, v3, v4, v5 + ploc = uintptr(___get_tp(tls)) + 96 + loc = **(**Tlocale_t)(__ccgo_up(ploc)) + if AtomicLoadPInt32(f+76) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + if (*TFILE)(unsafe.Pointer(f)).Fmode <= 0 { + Xfwide(tls, f, int32(1)) + } + **(**Tlocale_t)(__ccgo_up(ploc)) = (*TFILE)(unsafe.Pointer(f)).Flocale + if !((*TFILE)(unsafe.Pointer(f)).Frpos != 0) { + X__toread(tls, f) + } + if v3 = !((*TFILE)(unsafe.Pointer(f)).Frpos != 0) || c == uint32(0xffffffff); !v3 { + v1 = Int32FromUint32(Xwcrtomb(tls, bp, Int32FromUint32(c), uintptr(0))) + l = v1 + } + if v3 || v1 < 0 || (*TFILE)(unsafe.Pointer(f)).Frpos < (*TFILE)(unsafe.Pointer(f)).Fbuf-uintptr(UNGET)+uintptr(l) { + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + **(**Tlocale_t)(__ccgo_up(ploc)) = loc + return uint32(0xffffffff) + } + if BoolInt32(c < uint32(128)) != 0 { + v5 = f + 4 + *(*uintptr)(unsafe.Pointer(v5)) = *(*uintptr)(unsafe.Pointer(v5)) - 1 + v4 = *(*uintptr)(unsafe.Pointer(v5)) + **(**uint8)(__ccgo_up(v4)) = uint8(c) + } else { + v4 = f + 4 + *(*uintptr)(unsafe.Pointer(v4)) -= uintptr(l) + Xmemcpy(tls, *(*uintptr)(unsafe.Pointer(v4)), bp, Uint32FromInt32(l)) + } + **(**uint32)(__ccgo_up(f)) &= Uint32FromInt32(^Int32FromInt32(F_EOF)) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + **(**Tlocale_t)(__ccgo_up(ploc)) = loc + return c +} + +func Xvasprintf(tls *TLS, s uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v ap=%v, (%v:)", tls, s, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap2 Tva_list + var l int32 + var v1 uintptr + var v2 bool + _, _, _, _ = ap2, l, v1, v2 + ap2 = ap + l = Xvsnprintf(tls, uintptr(0), uint32(0), fmt, ap2) + _ = ap2 + if v2 = l < 0; !v2 { + v1 = Xmalloc(tls, Uint32FromInt32(l)+uint32(1)) + **(**uintptr)(__ccgo_up(s)) = v1 + } + if v2 || !(v1 != 0) { + return -int32(1) + } + return Xvsnprintf(tls, **(**uintptr)(__ccgo_up(s)), Uint32FromInt32(l)+uint32(1), fmt, ap) +} + +func Xvdprintf(tls *TLS, fd int32, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v fmt=%v ap=%v, (%v:)", tls, fd, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(144) + defer tls.Free(144) + var _ /* f at bp+0 */ TFILE + **(**TFILE)(__ccgo_up(bp)) = TFILE{ + Fwrite: __ccgo_fp(X__stdio_write), + Fbuf: fmt, + Ffd: fd, + Flock: -int32(1), + Flbf: -int32(1), + } + return Xvfprintf(tls, bp, fmt, ap) +} + +const ALT_FORM = 8 +const FLAGMASK = 75913 +const GROUPED = 128 +const LDBL_EPSILON3 = 2.22044604925031308085e-16 +const LEFT_ADJ = 8192 +const MARK_POS = 2048 +const PAD_POS = 1 +const ZERO_PAD = 65536 + +const _BARE = 0 +const _LPRE = 1 +const _LLPRE = 2 +const _HPRE = 3 +const _HHPRE = 4 +const _BIGLPRE = 5 +const _ZTPRE = 6 +const _JPRE = 7 +const _STOP = 8 +const _PTR = 9 +const _INT = 10 +const _UINT = 11 +const _ULLONG = 12 +const _LONG = 13 +const _ULONG = 14 +const _SHORT = 15 +const _USHORT = 16 +const _CHAR = 17 +const _UCHAR = 18 +const _LLONG = 19 +const _SIZET = 20 +const _IMAX = 21 +const _UMAX = 22 +const _PDIFF = 23 +const _UIPTR = 24 +const _DBL = 25 +const _LDBL = 26 +const _NOARG = 27 +const _MAXSTATE = 28 + +var _states = [8][58]uint8{ + 0: { + 0: uint8(_DBL), + 2: uint8(_UINT), + 4: uint8(_DBL), + 5: uint8(_DBL), + 6: uint8(_DBL), + 11: uint8(_BIGLPRE), + 18: uint8(_PTR), + 23: uint8(_UINT), + 32: uint8(_DBL), + 34: uint8(_INT), + 35: uint8(_INT), + 36: uint8(_DBL), + 37: uint8(_DBL), + 38: uint8(_DBL), + 39: uint8(_HPRE), + 40: uint8(_INT), + 41: uint8(_JPRE), + 43: uint8(_LPRE), + 44: uint8(_NOARG), + 45: uint8(_PTR), + 46: uint8(_UINT), + 47: uint8(_UIPTR), + 50: uint8(_PTR), + 51: uint8(_ZTPRE), + 52: uint8(_UINT), + 55: uint8(_UINT), + 57: uint8(_ZTPRE), + }, + 1: { + 0: uint8(_DBL), + 4: uint8(_DBL), + 5: uint8(_DBL), + 6: uint8(_DBL), + 23: uint8(_ULONG), + 32: uint8(_DBL), + 34: uint8(_UINT), + 35: uint8(_LONG), + 36: uint8(_DBL), + 37: uint8(_DBL), + 38: uint8(_DBL), + 40: uint8(_LONG), + 43: uint8(_LLPRE), + 45: uint8(_PTR), + 46: uint8(_ULONG), + 50: uint8(_PTR), + 52: uint8(_ULONG), + 55: uint8(_ULONG), + }, + 2: { + 23: uint8(_ULLONG), + 35: uint8(_LLONG), + 40: uint8(_LLONG), + 45: uint8(_PTR), + 46: uint8(_ULLONG), + 52: uint8(_ULLONG), + 55: uint8(_ULLONG), + }, + 3: { + 23: uint8(_USHORT), + 35: uint8(_SHORT), + 39: uint8(_HHPRE), + 40: uint8(_SHORT), + 45: uint8(_PTR), + 46: uint8(_USHORT), + 52: uint8(_USHORT), + 55: uint8(_USHORT), + }, + 4: { + 23: uint8(_UCHAR), + 35: uint8(_CHAR), + 40: uint8(_CHAR), + 45: uint8(_PTR), + 46: uint8(_UCHAR), + 52: uint8(_UCHAR), + 55: uint8(_UCHAR), + }, + 5: { + 0: uint8(_LDBL), + 4: uint8(_LDBL), + 5: uint8(_LDBL), + 6: uint8(_LDBL), + 32: uint8(_LDBL), + 36: uint8(_LDBL), + 37: uint8(_LDBL), + 38: uint8(_LDBL), + 45: uint8(_PTR), + }, + 6: { + 23: uint8(_SIZET), + 35: uint8(_PDIFF), + 40: uint8(_PDIFF), + 45: uint8(_PTR), + 46: uint8(_SIZET), + 52: uint8(_SIZET), + 55: uint8(_SIZET), + }, + 7: { + 23: uint8(_UMAX), + 35: uint8(_IMAX), + 40: uint8(_IMAX), + 45: uint8(_PTR), + 46: uint8(_UMAX), + 52: uint8(_UMAX), + 55: uint8(_UMAX), + }, +} + +type Targ = struct { + Ff [0]float64 + Fp [0]uintptr + Fi Tuintmax_t +} + +func _pop_arg(tls *TLS, arg uintptr, type1 int32, ap uintptr) { + switch type1 { + case int32(_PTR): + *(*uintptr)(unsafe.Pointer(arg)) = VaUintptr(&**(**Tva_list)(__ccgo_up(ap))) + case int32(_INT): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt32(VaInt32(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_UINT): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(VaUint32(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_LONG): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt32(VaInt32(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_ULONG): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(VaUint32(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_ULLONG): + (*Targ)(unsafe.Pointer(arg)).Fi = VaUint64(&**(**Tva_list)(__ccgo_up(ap))) + case int32(_SHORT): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt16(int16(VaInt32(&**(**Tva_list)(__ccgo_up(ap))))) + case int32(_USHORT): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(Uint16FromInt32(VaInt32(&**(**Tva_list)(__ccgo_up(ap))))) + case int32(_CHAR): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt8(int8(VaInt32(&**(**Tva_list)(__ccgo_up(ap))))) + case int32(_UCHAR): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(Uint8FromInt32(VaInt32(&**(**Tva_list)(__ccgo_up(ap))))) + case int32(_LLONG): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt64(VaInt64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_SIZET): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(VaUint32(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_IMAX): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt64(VaInt64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_UMAX): + (*Targ)(unsafe.Pointer(arg)).Fi = VaUint64(&**(**Tva_list)(__ccgo_up(ap))) + case int32(_PDIFF): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt32(VaInt32(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_UIPTR): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(uint32(VaUintptr(&**(**Tva_list)(__ccgo_up(ap))))) + case int32(_DBL): + *(*float64)(unsafe.Pointer(arg)) = float64(VaFloat64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_LDBL): + *(*float64)(unsafe.Pointer(arg)) = VaFloat64(&**(**Tva_list)(__ccgo_up(ap))) + } +} + +func _out(tls *TLS, f uintptr, s uintptr, l Tsize_t) { + if !((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_ERR) != 0) { + X__fwritex(tls, s, l, f) + } +} + +func _pad3(tls *TLS, f uintptr, c int8, w int32, l int32, fl int32) { + bp := tls.Alloc(256) + defer tls.Free(256) + var v1 uint32 + var _ /* pad at bp+0 */ [256]int8 + _ = v1 + if Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8('0')-Int32FromUint8(' '))) != 0 || l >= w { + return + } + l = w - l + if Uint32FromInt32(l) > uint32(256) { + v1 = uint32(256) + } else { + v1 = Uint32FromInt32(l) + } + Xmemset(tls, bp, int32(c), v1) + for { + if !(Uint32FromInt32(l) >= uint32(256)) { + break + } + _out(tls, f, bp, uint32(256)) + goto _2 + _2: + ; + l = Int32FromUint32(uint32(l) - Uint32FromInt64(256)) + } + _out(tls, f, bp, Uint32FromInt32(l)) +} + +var _xdigits1 = [16]int8{'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'} + +func _fmt_x(tls *TLS, x Tuintmax_t, s uintptr, lower int32) (r uintptr) { + var v2 uintptr + _ = v2 + for { + if !(x != 0) { + break + } + s = s - 1 + v2 = s + **(**int8)(__ccgo_up(v2)) = int8(int32(_xdigits1[x&uint64(15)]) | lower) + goto _1 + _1: + ; + x = x >> uint64(4) + } + return s +} + +func _fmt_o(tls *TLS, x Tuintmax_t, s uintptr) (r uintptr) { + var v2 uintptr + _ = v2 + for { + if !(x != 0) { + break + } + s = s - 1 + v2 = s + **(**int8)(__ccgo_up(v2)) = Int8FromUint64(uint64('0') + x&uint64(7)) + goto _1 + _1: + ; + x = x >> uint64(3) + } + return s +} + +func _fmt_u(tls *TLS, x Tuintmax_t, s uintptr) (r uintptr) { + var y uint32 + var v2 uintptr + _, _ = y, v2 + for { + if !(x > uint64(Uint32FromUint32(2)*Uint32FromInt32(0x7fffffff)+Uint32FromInt32(1))) { + break + } + s = s - 1 + v2 = s + **(**int8)(__ccgo_up(v2)) = Int8FromUint64(uint64('0') + x%uint64(10)) + goto _1 + _1: + ; + x = x / uint64(10) + } + y = uint32(x) + for { + if !(y != 0) { + break + } + s = s - 1 + v2 = s + **(**int8)(__ccgo_up(v2)) = Int8FromUint32(uint32('0') + y%uint32(10)) + goto _3 + _3: + ; + y = y / uint32(10) + } + return s +} + +// C documentation +// +// /* Do not override this check. The floating point printing code below +// * depends on the float.h constants being right. If they are wrong, it +// * may overflow the stack. */ +type Tcompiler_defines_long_double_incorrectly = [1]int8 + +func _fmt_fp(tls *TLS, f uintptr, y float64, w int32, p int32, fl int32, t int32) (r1 int32) { + bp := tls.Alloc(560) + defer tls.Free(560) + var a, b, d, ebuf, estr, prefix, r, s, s1, s2, s3, s4, z, v5, v6 uintptr + var carry, carry1, rm, x2 Tuint32_t + var e, i, j, l, need, pl, re, sh, sh1, x, v7, v8, v9 int32 + var round, round1, small float64 + var x1 Tuint64_t + var v1 uint64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + var _ /* big at bp+8 */ [126]Tuint32_t + var _ /* buf at bp+516 */ [22]int8 + var _ /* e2 at bp+512 */ int32 + var _ /* ebuf0 at bp+538 */ [12]int8 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = a, b, carry, carry1, d, e, ebuf, estr, i, j, l, need, pl, prefix, r, re, rm, round, round1, s, s1, s2, s3, s4, sh, sh1, small, x, x1, x2, z, v1, v5, v6, v7, v8, v9 + **(**int32)(__ccgo_up(bp + 512)) = 0 + prefix = __ccgo_ts + 1419 + ebuf = bp + 538 + uintptr(Uint32FromInt32(3)*Uint32FromInt64(4)) + pl = int32(1) + *(*float64)(unsafe.Pointer(bp)) = y + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + if Int32FromUint64(v1>>Int32FromInt32(63)) != 0 { + y = -y + } else { + if Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('+')-Int32FromUint8(' '))) != 0 { + prefix = prefix + uintptr(3) + } else { + if Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8(' ')-Int32FromUint8(' '))) != 0 { + prefix = prefix + uintptr(6) + } else { + prefix = prefix + 1 + pl = Int32FromInt32(0) + } + } + } + *(*float64)(unsafe.Pointer(bp)) = y + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _4 +_4: + if !(BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) < Uint64FromUint64(0x7ff)< int32(3)+pl { + v7 = w + } else { + v7 = int32(3) + pl + } + return v7 + } + y = float64(Xfrexpl(tls, y, bp+512) * Float64FromInt32(2)) + if y != 0 { + **(**int32)(__ccgo_up(bp + 512)) = **(**int32)(__ccgo_up(bp + 512)) - 1 + } + if t|int32(32) == int32('a') { + round = Float64FromFloat64(8) + if t&int32(32) != 0 { + prefix = prefix + uintptr(9) + } + pl = pl + int32(2) + if p < 0 || p >= Int32FromInt32(LDBL_MANT_DIG)/Int32FromInt32(4)-Int32FromInt32(1) { + re = 0 + } else { + re = Int32FromInt32(LDBL_MANT_DIG)/Int32FromInt32(4) - Int32FromInt32(1) - p + } + if re != 0 { + round = round * float64(Int32FromInt32(1)<<(Int32FromInt32(LDBL_MANT_DIG)%Int32FromInt32(4))) + for { + v7 = re + re = re - 1 + if !(v7 != 0) { + break + } + round = round * Float64FromInt32(16) + } + if int32(**(**int8)(__ccgo_up(prefix))) == int32('-') { + y = -y + y = y - round + y = y + round + y = -y + } else { + y = y + round + y = y - round + } + } + if **(**int32)(__ccgo_up(bp + 512)) < 0 { + v7 = -**(**int32)(__ccgo_up(bp + 512)) + } else { + v7 = **(**int32)(__ccgo_up(bp + 512)) + } + estr = _fmt_u(tls, Uint64FromInt32(v7), ebuf) + if estr == ebuf { + estr = estr - 1 + v5 = estr + **(**int8)(__ccgo_up(v5)) = int8('0') + } + estr = estr - 1 + v5 = estr + if **(**int32)(__ccgo_up(bp + 512)) < 0 { + v7 = int32('-') + } else { + v7 = int32('+') + } + **(**int8)(__ccgo_up(v5)) = int8(v7) + estr = estr - 1 + v5 = estr + **(**int8)(__ccgo_up(v5)) = int8(t + (Int32FromUint8('p') - Int32FromUint8('a'))) + s = bp + 516 + for cond := true; cond; cond = y != 0 { + x = int32(y) + v5 = s + s = s + 1 + **(**int8)(__ccgo_up(v5)) = int8(int32(_xdigits1[x]) | t&int32(32)) + y = float64(Float64FromInt32(16) * (y - float64(x))) + if int32(s)-t__predefined_ptrdiff_t(bp+516) == int32(1) && (y != 0 || p > 0 || Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0) { + v5 = s + s = s + 1 + **(**int8)(__ccgo_up(v5)) = int8('.') + } + } + if p > Int32FromInt32(INT_MAX)-Int32FromInt32(2)-(int32(ebuf)-int32(estr))-pl { + return -int32(1) + } + if p != 0 && int32(s)-t__predefined_ptrdiff_t(bp+516)-int32(2) < p { + l = p + int32(2) + (int32(ebuf) - int32(estr)) + } else { + l = int32(s) - t__predefined_ptrdiff_t(bp+516) + (int32(ebuf) - int32(estr)) + } + _pad3(tls, f, int8(' '), w, pl+l, fl) + _out(tls, f, prefix, Uint32FromInt32(pl)) + _pad3(tls, f, int8('0'), w, pl+l, Int32FromUint32(Uint32FromInt32(fl)^Uint32FromUint32(1)<<(Int32FromUint8('0')-Int32FromUint8(' ')))) + _out(tls, f, bp+516, Uint32FromInt32(int32(s)-t__predefined_ptrdiff_t(bp+516))) + _pad3(tls, f, int8('0'), l-(int32(ebuf)-int32(estr))-(int32(s)-t__predefined_ptrdiff_t(bp+516)), 0, 0) + _out(tls, f, estr, Uint32FromInt32(int32(ebuf)-int32(estr))) + _pad3(tls, f, int8(' '), w, pl+l, Int32FromUint32(Uint32FromInt32(fl)^Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' ')))) + if w > pl+l { + v7 = w + } else { + v7 = pl + l + } + return v7 + } + if p < 0 { + p = int32(6) + } + if y != 0 { + y = y * Float64FromFloat64(2.68435456e+08) + **(**int32)(__ccgo_up(bp + 512)) = **(**int32)(__ccgo_up(bp + 512)) - int32(28) + } + if **(**int32)(__ccgo_up(bp + 512)) < 0 { + v6 = bp + 8 + z = v6 + v5 = v6 + r = v5 + a = v5 + } else { + v6 = bp + 8 + uintptr(Uint32FromInt64(504)/Uint32FromInt64(4))*4 - UintptrFromInt32(LDBL_MANT_DIG)*4 - UintptrFromInt32(1)*4 + z = v6 + v5 = v6 + r = v5 + a = v5 + } + for cond := true; cond; cond = y != 0 { + **(**Tuint32_t)(__ccgo_up(z)) = uint32(y) + v5 = z + z += 4 + y = float64(Float64FromInt32(1000000000) * (y - float64(**(**Tuint32_t)(__ccgo_up(v5))))) + } + for **(**int32)(__ccgo_up(bp + 512)) > 0 { + carry = uint32(0) + if int32(29) < **(**int32)(__ccgo_up(bp + 512)) { + v7 = int32(29) + } else { + v7 = **(**int32)(__ccgo_up(bp + 512)) + } + sh = v7 + d = z - uintptr(1)*4 + for { + if !(d >= a) { + break + } + x1 = uint64(**(**Tuint32_t)(__ccgo_up(d)))< a && !(**(**Tuint32_t)(__ccgo_up(z + uintptr(-Int32FromInt32(1))*4)) != 0) { + z -= 4 + } + **(**int32)(__ccgo_up(bp + 512)) = **(**int32)(__ccgo_up(bp + 512)) - sh + } + for **(**int32)(__ccgo_up(bp + 512)) < 0 { + carry1 = uint32(0) + if int32(9) < -**(**int32)(__ccgo_up(bp + 512)) { + v7 = int32(9) + } else { + v7 = -**(**int32)(__ccgo_up(bp + 512)) + } + sh1 = v7 + need = Int32FromUint32(uint32(1) + (Uint32FromInt32(p)+Uint32FromInt32(LDBL_MANT_DIG)/Uint32FromUint32(3)+uint32(8))/uint32(9)) + d = a + for { + if !(d < z) { + break + } + rm = **(**Tuint32_t)(__ccgo_up(d)) & Uint32FromInt32(int32(1)<>sh1 + carry1 + carry1 = Uint32FromInt32(Int32FromInt32(1000000000)>>sh1) * rm + goto _26 + _26: + ; + d += 4 + } + if !(**(**Tuint32_t)(__ccgo_up(a)) != 0) { + a += 4 + } + if carry1 != 0 { + v5 = z + z += 4 + **(**Tuint32_t)(__ccgo_up(v5)) = carry1 + } + /* Avoid (slow!) computation past requested precision */ + if t|int32(32) == int32('f') { + v5 = r + } else { + v5 = a + } + b = v5 + if (int32(z)-int32(b))/4 > need { + z = b + uintptr(need)*4 + } + **(**int32)(__ccgo_up(bp + 512)) = **(**int32)(__ccgo_up(bp + 512)) + sh1 + } + if a < z { + i = int32(10) + e = Int32FromInt32(9) * ((int32(r) - int32(a)) / 4) + for { + if !(**(**Tuint32_t)(__ccgo_up(a)) >= Uint32FromInt32(i)) { + break + } + goto _29 + _29: + ; + i = i * int32(10) + e = e + 1 + } + } else { + e = 0 + } + /* Perform rounding: j is precision after the radix (possibly neg) */ + j = p - BoolInt32(t|int32(32) != int32('f'))*e - BoolInt32(t|int32(32) == int32('g') && p != 0) + if j < int32(9)*((int32(z)-int32(r))/4-int32(1)) { + /* We avoid C's broken division of negative numbers */ + d = r + uintptr(1)*4 + uintptr((j+Int32FromInt32(9)*Int32FromInt32(LDBL_MAX_EXP))/Int32FromInt32(9)-Int32FromInt32(LDBL_MAX_EXP))*4 + j = j + Int32FromInt32(9)*Int32FromInt32(LDBL_MAX_EXP) + j = j % int32(9) + i = int32(10) + j = j + 1 + for { + if !(j < int32(9)) { + break + } + goto _30 + _30: + ; + i = i * int32(10) + j = j + 1 + } + x2 = **(**Tuint32_t)(__ccgo_up(d)) % Uint32FromInt32(i) + /* Are there any significant digits past j? */ + if x2 != 0 || d+uintptr(1)*4 != z { + round1 = Float64FromInt32(2) / Float64FromFloat64(2.22044604925031308085e-16) + if **(**Tuint32_t)(__ccgo_up(d))/Uint32FromInt32(i)&uint32(1) != 0 || i == int32(1000000000) && d > a && **(**Tuint32_t)(__ccgo_up(d + uintptr(-Int32FromInt32(1))*4))&uint32(1) != 0 { + round1 = round1 + Float64FromInt32(2) + } + if x2 < Uint32FromInt32(i/int32(2)) { + small = Float64FromFloat64(0.5) + } else { + if x2 == Uint32FromInt32(i/int32(2)) && d+uintptr(1)*4 == z { + small = Float64FromFloat64(1) + } else { + small = Float64FromFloat64(1.5) + } + } + if pl != 0 && int32(**(**int8)(__ccgo_up(prefix))) == int32('-') { + round1 = round1 * float64(-Int32FromInt32(1)) + small = small * float64(-Int32FromInt32(1)) + } + **(**Tuint32_t)(__ccgo_up(d)) -= x2 + /* Decide whether to round by probing round+small */ + if round1+small != round1 { + **(**Tuint32_t)(__ccgo_up(d)) = **(**Tuint32_t)(__ccgo_up(d)) + Uint32FromInt32(i) + for **(**Tuint32_t)(__ccgo_up(d)) > uint32(999999999) { + v5 = d + d -= 4 + **(**Tuint32_t)(__ccgo_up(v5)) = uint32(0) + if d < a { + a -= 4 + v5 = a + **(**Tuint32_t)(__ccgo_up(v5)) = uint32(0) + } + **(**Tuint32_t)(__ccgo_up(d)) = **(**Tuint32_t)(__ccgo_up(d)) + 1 + } + i = int32(10) + e = Int32FromInt32(9) * ((int32(r) - int32(a)) / 4) + for { + if !(**(**Tuint32_t)(__ccgo_up(a)) >= Uint32FromInt32(i)) { + break + } + goto _33 + _33: + ; + i = i * int32(10) + e = e + 1 + } + } + } + if z > d+uintptr(1)*4 { + z = d + uintptr(1)*4 + } + } + for { + if !(z > a && !(**(**Tuint32_t)(__ccgo_up(z + uintptr(-Int32FromInt32(1))*4)) != 0)) { + break + } + goto _34 + _34: + ; + z -= 4 + } + if t|int32(32) == int32('g') { + if !(p != 0) { + p = p + 1 + } + if p > e && e >= -int32(4) { + t = t - 1 + p = p - (e + int32(1)) + } else { + t = t - int32(2) + p = p - 1 + } + if !(Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0) { + /* Count trailing zeros in last place */ + if z > a && **(**Tuint32_t)(__ccgo_up(z + uintptr(-Int32FromInt32(1))*4)) != 0 { + i = int32(10) + j = Int32FromInt32(0) + for { + if !(**(**Tuint32_t)(__ccgo_up(z + uintptr(-Int32FromInt32(1))*4))%Uint32FromInt32(i) == uint32(0)) { + break + } + goto _35 + _35: + ; + i = i * int32(10) + j = j + 1 + } + } else { + j = int32(9) + } + if t|int32(32) == int32('f') { + if 0 > int32(9)*((int32(z)-int32(r))/4-int32(1))-j { + v8 = 0 + } else { + v8 = int32(9)*((int32(z)-int32(r))/4-int32(1)) - j + } + if p < v8 { + v7 = p + } else { + if 0 > int32(9)*((int32(z)-int32(r))/4-int32(1))-j { + v9 = 0 + } else { + v9 = int32(9)*((int32(z)-int32(r))/4-int32(1)) - j + } + v7 = v9 + } + p = v7 + } else { + if 0 > int32(9)*((int32(z)-int32(r))/4-int32(1))+e-j { + v8 = 0 + } else { + v8 = int32(9)*((int32(z)-int32(r))/4-int32(1)) + e - j + } + if p < v8 { + v7 = p + } else { + if 0 > int32(9)*((int32(z)-int32(r))/4-int32(1))+e-j { + v9 = 0 + } else { + v9 = int32(9)*((int32(z)-int32(r))/4-int32(1)) + e - j + } + v7 = v9 + } + p = v7 + } + } + } + if p > Int32FromInt32(INT_MAX)-Int32FromInt32(1)-BoolInt32(p != 0 || Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0) { + return -int32(1) + } + l = int32(1) + p + BoolInt32(p != 0 || Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0) + if t|int32(32) == int32('f') { + if e > int32(INT_MAX)-l { + return -int32(1) + } + if e > 0 { + l = l + e + } + } else { + if e < 0 { + v7 = -e + } else { + v7 = e + } + estr = _fmt_u(tls, Uint64FromInt32(v7), ebuf) + for int32(ebuf)-int32(estr) < int32(2) { + estr = estr - 1 + v5 = estr + **(**int8)(__ccgo_up(v5)) = int8('0') + } + estr = estr - 1 + v5 = estr + if e < 0 { + v7 = int32('-') + } else { + v7 = int32('+') + } + **(**int8)(__ccgo_up(v5)) = int8(v7) + estr = estr - 1 + v5 = estr + **(**int8)(__ccgo_up(v5)) = int8(t) + if int32(ebuf)-int32(estr) > int32(INT_MAX)-l { + return -int32(1) + } + l = l + (int32(ebuf) - int32(estr)) + } + if l > int32(INT_MAX)-pl { + return -int32(1) + } + _pad3(tls, f, int8(' '), w, pl+l, fl) + _out(tls, f, prefix, Uint32FromInt32(pl)) + _pad3(tls, f, int8('0'), w, pl+l, Int32FromUint32(Uint32FromInt32(fl)^Uint32FromUint32(1)<<(Int32FromUint8('0')-Int32FromUint8(' ')))) + if t|int32(32) == int32('f') { + if a > r { + a = r + } + d = a + for { + if !(d <= r) { + break + } + s2 = _fmt_u(tls, uint64(**(**Tuint32_t)(__ccgo_up(d))), bp+516+uintptr(9)) + if d != a { + for s2 > bp+516 { + s2 = s2 - 1 + v5 = s2 + **(**int8)(__ccgo_up(v5)) = int8('0') + } + } else { + if s2 == bp+516+uintptr(9) { + s2 = s2 - 1 + v5 = s2 + **(**int8)(__ccgo_up(v5)) = int8('0') + } + } + _out(tls, f, s2, Uint32FromInt32(int32(bp+516+uintptr(9))-int32(s2))) + goto _47 + _47: + ; + d += 4 + } + if p != 0 || Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0 { + _out(tls, f, __ccgo_ts+483, uint32(1)) + } + for { + if !(d < z && p > 0) { + break + } + s3 = _fmt_u(tls, uint64(**(**Tuint32_t)(__ccgo_up(d))), bp+516+uintptr(9)) + for s3 > bp+516 { + s3 = s3 - 1 + v5 = s3 + **(**int8)(__ccgo_up(v5)) = int8('0') + } + if int32(9) < p { + v7 = int32(9) + } else { + v7 = p + } + _out(tls, f, s3, Uint32FromInt32(v7)) + goto _50 + _50: + ; + d += 4 + p = p - int32(9) + } + _pad3(tls, f, int8('0'), p+int32(9), int32(9), 0) + } else { + if z <= a { + z = a + uintptr(1)*4 + } + d = a + for { + if !(d < z && p >= 0) { + break + } + s4 = _fmt_u(tls, uint64(**(**Tuint32_t)(__ccgo_up(d))), bp+516+uintptr(9)) + if s4 == bp+516+uintptr(9) { + s4 = s4 - 1 + v5 = s4 + **(**int8)(__ccgo_up(v5)) = int8('0') + } + if d != a { + for s4 > bp+516 { + s4 = s4 - 1 + v5 = s4 + **(**int8)(__ccgo_up(v5)) = int8('0') + } + } else { + v5 = s4 + s4 = s4 + 1 + _out(tls, f, v5, uint32(1)) + if p > 0 || Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0 { + _out(tls, f, __ccgo_ts+483, uint32(1)) + } + } + if int32(bp+516+UintptrFromInt32(9))-int32(s4) < p { + v7 = int32(bp+516+UintptrFromInt32(9)) - int32(s4) + } else { + v7 = p + } + _out(tls, f, s4, Uint32FromInt32(v7)) + p = p - (int32(bp+516+uintptr(9)) - int32(s4)) + goto _53 + _53: + ; + d += 4 + } + _pad3(tls, f, int8('0'), p+int32(18), int32(18), 0) + _out(tls, f, estr, Uint32FromInt32(int32(ebuf)-int32(estr))) + } + _pad3(tls, f, int8(' '), w, pl+l, Int32FromUint32(Uint32FromInt32(fl)^Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' ')))) + if w > pl+l { + v7 = w + } else { + v7 = pl + l + } + return v7 +} + +func _getint(tls *TLS, s uintptr) (r int32) { + var i int32 + _ = i + i = 0 + for { + if !(BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(s)))))-uint32('0') < uint32(10)) != 0) { + break + } + if Uint32FromInt32(i) > Uint32FromInt32(INT_MAX)/Uint32FromUint32(10) || int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(s)))))-int32('0') > int32(INT_MAX)-int32(10)*i { + i = -int32(1) + } else { + i = int32(10)*i + (int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(s))))) - int32('0')) + } + goto _1 + _1: + ; + **(**uintptr)(__ccgo_up(s)) = **(**uintptr)(__ccgo_up(s)) + 1 + } + return i +} + +func _printf_core(tls *TLS, f uintptr, fmt uintptr, ap uintptr, nl_arg uintptr, nl_type uintptr) (r int32) { + bp := tls.Alloc(64) + defer tls.Free(64) + var a, prefix, ws, z, v8 uintptr + var argpos, cnt, l, p, pl, t, w, xp, v5, v6 int32 + var fl, l10n, ps, st, v31 uint32 + var i Tsize_t + var v45 bool + var _ /* arg at bp+8 */ Targ + var _ /* buf at bp+16 */ [24]int8 + var _ /* mb at bp+48 */ [4]int8 + var _ /* s at bp+0 */ uintptr + var _ /* wc at bp+40 */ [2]Twchar_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = a, argpos, cnt, fl, i, l, l10n, p, pl, prefix, ps, st, t, w, ws, xp, z, v31, v45, v5, v6, v8 + **(**uintptr)(__ccgo_up(bp)) = fmt + l10n = uint32(0) + cnt = 0 + l = 0 + for { + /* This error is only specified for snprintf, but since it's + * unspecified for other forms, do the same. Stop immediately + * on overflow; otherwise %n could produce wrong results. */ + if l > int32(INT_MAX)-cnt { + goto overflow + } + /* Update output count, end loop when fmt is exhausted */ + cnt = cnt + l + if !(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)))) != 0) { + break + } + /* Handle literal text and %% format specifiers */ + a = **(**uintptr)(__ccgo_up(bp)) + for { + if !(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)))) != 0 && int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp))))) != int32('%')) { + break + } + goto _2 + _2: + ; + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + } + z = **(**uintptr)(__ccgo_up(bp)) + for { + if !(int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp))))) == int32('%') && int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 1))) == int32('%')) { + break + } + goto _3 + _3: + ; + z = z + 1 + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + uintptr(2) + } + if int32(z)-int32(a) > int32(INT_MAX)-cnt { + goto overflow + } + l = int32(z) - int32(a) + if f != 0 { + _out(tls, f, a, Uint32FromInt32(l)) + } + if l != 0 { + goto _1 + } + if BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 1)))-uint32('0') < uint32(10)) != 0 && int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 2))) == int32('$') { + l10n = uint32(1) + argpos = int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 1))) - int32('0') + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + uintptr(3) + } else { + argpos = -int32(1) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + } + /* Read modifier flags */ + fl = uint32(0) + for { + if !(Uint32FromInt8(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)))))-uint32(' ') < uint32(32) && (Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8('0')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8(' ')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8('+')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8('\'')-Int32FromUint8(' ')))&(uint32(1)<<(int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)))))-int32(' '))) != 0) { + break + } + fl = fl | uint32(1)<<(int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)))))-int32(' ')) + goto _4 + _4: + ; + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + } + /* Read field width */ + if int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp))))) == int32('*') { + if BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 1)))-uint32('0') < uint32(10)) != 0 && int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 2))) == int32('$') { + l10n = uint32(1) + if !(f != 0) { + **(**int32)(__ccgo_up(nl_type + uintptr(int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 1)))-int32('0'))*4)) = int32(_INT) + w = Int32FromInt32(0) + } else { + w = Int32FromUint64(*(*Tuintmax_t)(unsafe.Pointer(nl_arg + uintptr(int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 1)))-int32('0'))*8))) + } + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + uintptr(3) + } else { + if !(l10n != 0) { + if f != 0 { + v5 = VaInt32(&**(**Tva_list)(__ccgo_up(ap))) + } else { + v5 = 0 + } + w = v5 + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + } else { + goto inval + } + } + if w < 0 { + fl = fl | Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' ')) + w = -w + } + } else { + v5 = _getint(tls, bp) + w = v5 + if v5 < 0 { + goto overflow + } + } + /* Read precision */ + if int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp))))) == int32('.') && int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 1))) == int32('*') { + if BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 2)))-uint32('0') < uint32(10)) != 0 && int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 3))) == int32('$') { + if !(f != 0) { + **(**int32)(__ccgo_up(nl_type + uintptr(int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 2)))-int32('0'))*4)) = int32(_INT) + p = Int32FromInt32(0) + } else { + p = Int32FromUint64(*(*Tuintmax_t)(unsafe.Pointer(nl_arg + uintptr(int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 2)))-int32('0'))*8))) + } + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + uintptr(4) + } else { + if !(l10n != 0) { + if f != 0 { + v5 = VaInt32(&**(**Tva_list)(__ccgo_up(ap))) + } else { + v5 = 0 + } + p = v5 + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + uintptr(2) + } else { + goto inval + } + } + xp = BoolInt32(p >= 0) + } else { + if int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp))))) == int32('.') { + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + p = _getint(tls, bp) + xp = int32(1) + } else { + p = -int32(1) + xp = 0 + } + } + /* Format specifier state machine */ + st = uint32(0) + for cond := true; cond; cond = st-uint32(1) < uint32(_STOP) { + if Uint32FromInt8(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)))))-uint32('A') > Uint32FromInt32(Int32FromUint8('z')-Int32FromUint8('A')) { + goto inval + } + ps = st + v8 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + st = uint32(**(**uint8)(__ccgo_up(uintptr(unsafe.Pointer(&_states)) + uintptr(st)*58 + uintptr(int32(**(**int8)(__ccgo_up(v8)))-int32('A'))))) + } + if !(st != 0) { + goto inval + } + /* Check validity of argument type (nl/normal) */ + if st == uint32(_NOARG) { + if argpos >= 0 { + goto inval + } + } else { + if argpos >= 0 { + if !(f != 0) { + **(**int32)(__ccgo_up(nl_type + uintptr(argpos)*4)) = Int32FromUint32(st) + } else { + **(**Targ)(__ccgo_up(bp + 8)) = **(**Targ)(__ccgo_up(nl_arg + uintptr(argpos)*8)) + } + } else { + if f != 0 { + _pop_arg(tls, bp+8, Int32FromUint32(st), ap) + } else { + return 0 + } + } + } + if !(f != 0) { + goto _1 + } + /* Do not process any new directives once in error state. */ + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_ERR) != 0 { + return -int32(1) + } + z = bp + 16 + uintptr(24) + prefix = __ccgo_ts + 1450 + pl = 0 + t = int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + uintptr(-Int32FromInt32(1))))) + /* Transform ls,lc -> S,C */ + if ps != 0 && t&int32(15) == int32(3) { + t = t & ^Int32FromInt32(32) + } + /* - and 0 flags are mutually exclusive */ + if fl&(Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' '))) != 0 { + fl = fl & ^(Uint32FromUint32(1) << (Int32FromUint8('0') - Int32FromUint8(' '))) + } + switch t { + case int32('n'): + goto _9 + case int32('p'): + goto _10 + case int32('X'): + goto _11 + case int32('x'): + goto _12 + case int32('o'): + goto _13 + case int32('i'): + goto _14 + case int32('d'): + goto _15 + case int32('u'): + goto _16 + case int32('c'): + goto _17 + case int32('s'): + goto _18 + case int32('m'): + goto _19 + case int32('C'): + goto _20 + case int32('S'): + goto _21 + case int32('A'): + goto _22 + case int32('G'): + goto _23 + case int32('F'): + goto _24 + case int32('E'): + goto _25 + case int32('a'): + goto _26 + case int32('g'): + goto _27 + case int32('f'): + goto _28 + case int32('e'): + goto _29 + } + goto _30 + _9: + ; + switch ps { + case uint32(_BARE): + **(**int32)(__ccgo_up(*(*uintptr)(unsafe.Pointer(&**(**Targ)(__ccgo_up(bp + 8)))))) = cnt + case uint32(_LPRE): + **(**int32)(__ccgo_up(*(*uintptr)(unsafe.Pointer(&**(**Targ)(__ccgo_up(bp + 8)))))) = cnt + case uint32(_LLPRE): + **(**int64)(__ccgo_up(*(*uintptr)(unsafe.Pointer(&**(**Targ)(__ccgo_up(bp + 8)))))) = int64(cnt) + case uint32(_HPRE): + **(**uint16)(__ccgo_up(*(*uintptr)(unsafe.Pointer(&**(**Targ)(__ccgo_up(bp + 8)))))) = Uint16FromInt32(cnt) + case uint32(_HHPRE): + **(**uint8)(__ccgo_up(*(*uintptr)(unsafe.Pointer(&**(**Targ)(__ccgo_up(bp + 8)))))) = Uint8FromInt32(cnt) + case uint32(_ZTPRE): + **(**Tsize_t)(__ccgo_up(*(*uintptr)(unsafe.Pointer(&**(**Targ)(__ccgo_up(bp + 8)))))) = Uint32FromInt32(cnt) + case uint32(_JPRE): + **(**Tuintmax_t)(__ccgo_up(*(*uintptr)(unsafe.Pointer(&**(**Targ)(__ccgo_up(bp + 8)))))) = Uint64FromInt32(cnt) + break + } + goto _1 + _10: + ; + if Uint32FromInt32(p) > Uint32FromInt32(2)*Uint32FromInt64(4) { + v31 = Uint32FromInt32(p) + } else { + v31 = Uint32FromInt32(2) * Uint32FromInt64(4) + } + p = Int32FromUint32(v31) + t = int32('x') + fl = fl | Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' ')) + _12: + ; + _11: + ; + a = _fmt_x(tls, *(*Tuintmax_t)(unsafe.Pointer(bp + 8)), z, t&int32(32)) + if *(*Tuintmax_t)(unsafe.Pointer(bp + 8)) != 0 && fl&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0 { + prefix = prefix + uintptr(t>>Int32FromInt32(4)) + pl = Int32FromInt32(2) + } + if !(0 != 0) { + goto _32 + } + _13: + ; + a = _fmt_o(tls, *(*Tuintmax_t)(unsafe.Pointer(bp + 8)), z) + if fl&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0 && p < int32(z)-int32(a)+int32(1) { + p = int32(z) - int32(a) + int32(1) + } + _32: + ; + if !(0 != 0) { + goto _33 + } + _15: + ; + _14: + ; + pl = int32(1) + if *(*Tuintmax_t)(unsafe.Pointer(bp + 8)) > Uint64FromInt64(Int64FromInt64(INT64_MAX)) { + *(*Tuintmax_t)(unsafe.Pointer(bp + 8)) = -*(*Tuintmax_t)(unsafe.Pointer(bp + 8)) + } else { + if fl&(Uint32FromUint32(1)<<(Int32FromUint8('+')-Int32FromUint8(' '))) != 0 { + prefix = prefix + 1 + } else { + if fl&(Uint32FromUint32(1)<<(Int32FromUint8(' ')-Int32FromUint8(' '))) != 0 { + prefix = prefix + uintptr(2) + } else { + pl = 0 + } + } + } + _16: + ; + a = _fmt_u(tls, *(*Tuintmax_t)(unsafe.Pointer(bp + 8)), z) + _33: + ; + if xp != 0 && p < 0 { + goto overflow + } + if xp != 0 { + fl = fl & ^(Uint32FromUint32(1) << (Int32FromUint8('0') - Int32FromUint8(' '))) + } + if !(*(*Tuintmax_t)(unsafe.Pointer(bp + 8)) != 0) && !(p != 0) { + a = z + goto _30 + } + if p > int32(z)-int32(a)+BoolInt32(!(*(*Tuintmax_t)(unsafe.Pointer(bp + 8)) != 0)) { + v5 = p + } else { + v5 = int32(z) - int32(a) + BoolInt32(!(*(*Tuintmax_t)(unsafe.Pointer(bp + 8)) != 0)) + } + p = v5 + goto _30 + goto narrow_c + narrow_c: + ; + _17: + ; + v5 = Int32FromInt32(1) + p = v5 + v8 = z - uintptr(v5) + a = v8 + **(**int8)(__ccgo_up(v8)) = Int8FromUint64(*(*Tuintmax_t)(unsafe.Pointer(bp + 8))) + fl = fl & ^(Uint32FromUint32(1) << (Int32FromUint8('0') - Int32FromUint8(' '))) + goto _30 + _19: + ; + if !(int32(1) != 0) { + goto _37 + } + a = Xstrerror(tls, **(**int32)(__ccgo_up(X__errno_location(tls)))) + goto _38 + _37: + ; + _18: + ; + if *(*uintptr)(unsafe.Pointer(&**(**Targ)(__ccgo_up(bp + 8)))) != 0 { + v8 = *(*uintptr)(unsafe.Pointer(&**(**Targ)(__ccgo_up(bp + 8)))) + } else { + v8 = __ccgo_ts + 1460 + } + a = v8 + _38: + ; + if p < 0 { + v5 = int32(INT_MAX) + } else { + v5 = p + } + z = a + uintptr(Xstrnlen(tls, a, Uint32FromInt32(v5))) + if p < 0 && **(**int8)(__ccgo_up(z)) != 0 { + goto overflow + } + p = int32(z) - int32(a) + fl = fl & ^(Uint32FromUint32(1) << (Int32FromUint8('0') - Int32FromUint8(' '))) + goto _30 + _20: + ; + if !(*(*Tuintmax_t)(unsafe.Pointer(bp + 8)) != 0) { + goto narrow_c + } + (**(**[2]Twchar_t)(__ccgo_up(bp + 40)))[0] = Int32FromUint64(*(*Tuintmax_t)(unsafe.Pointer(bp + 8))) + (**(**[2]Twchar_t)(__ccgo_up(bp + 40)))[int32(1)] = 0 + *(*uintptr)(unsafe.Pointer(&**(**Targ)(__ccgo_up(bp + 8)))) = bp + 40 + p = -int32(1) + _21: + ; + ws = *(*uintptr)(unsafe.Pointer(&**(**Targ)(__ccgo_up(bp + 8)))) + v5 = Int32FromInt32(0) + l = v5 + i = Uint32FromInt32(v5) + for { + if v45 = i < Uint32FromInt32(p) && **(**Twchar_t)(__ccgo_up(ws)) != 0; v45 { + v8 = ws + ws += 4 + v6 = Xwctomb(tls, bp+48, **(**Twchar_t)(__ccgo_up(v8))) + l = v6 + } + if !(v45 && v6 >= 0 && Uint32FromInt32(l) <= Uint32FromInt32(p)-i) { + break + } + goto _41 + _41: + ; + i = i + Uint32FromInt32(l) + } + if l < 0 { + return -int32(1) + } + if i > uint32(INT_MAX) { + goto overflow + } + p = Int32FromUint32(i) + _pad3(tls, f, int8(' '), w, p, Int32FromUint32(fl)) + ws = *(*uintptr)(unsafe.Pointer(&**(**Targ)(__ccgo_up(bp + 8)))) + i = uint32(0) + for { + if v45 = i < 0+Uint32FromInt32(p) && **(**Twchar_t)(__ccgo_up(ws)) != 0; v45 { + v8 = ws + ws += 4 + v5 = Xwctomb(tls, bp+48, **(**Twchar_t)(__ccgo_up(v8))) + l = v5 + } + if !(v45 && i+Uint32FromInt32(v5) <= Uint32FromInt32(p)) { + break + } + _out(tls, f, bp+48, Uint32FromInt32(l)) + goto _46 + _46: + ; + i = i + Uint32FromInt32(l) + } + _pad3(tls, f, int8(' '), w, p, Int32FromUint32(fl^Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' ')))) + if w > p { + v5 = w + } else { + v5 = p + } + l = v5 + goto _1 + _29: + ; + _28: + ; + _27: + ; + _26: + ; + _25: + ; + _24: + ; + _23: + ; + _22: + ; + if xp != 0 && p < 0 { + goto overflow + } + l = _fmt_fp(tls, f, *(*float64)(unsafe.Pointer(bp + 8)), w, p, Int32FromUint32(fl), t) + if l < 0 { + goto overflow + } + goto _1 + _30: + ; + if p < int32(z)-int32(a) { + p = int32(z) - int32(a) + } + if p > int32(INT_MAX)-pl { + goto overflow + } + if w < pl+p { + w = pl + p + } + if w > int32(INT_MAX)-cnt { + goto overflow + } + _pad3(tls, f, int8(' '), w, pl+p, Int32FromUint32(fl)) + _out(tls, f, prefix, Uint32FromInt32(pl)) + _pad3(tls, f, int8('0'), w, pl+p, Int32FromUint32(fl^Uint32FromUint32(1)<<(Int32FromUint8('0')-Int32FromUint8(' ')))) + _pad3(tls, f, int8('0'), p, int32(z)-int32(a), 0) + _out(tls, f, a, Uint32FromInt32(int32(z)-int32(a))) + _pad3(tls, f, int8(' '), w, pl+p, Int32FromUint32(fl^Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' ')))) + l = w + goto _1 + _1: + } + if f != 0 { + return cnt + } + if !(l10n != 0) { + return 0 + } + i = uint32(1) + for { + if !(i <= uint32(NL_ARGMAX) && **(**int32)(__ccgo_up(nl_type + uintptr(i)*4)) != 0) { + break + } + _pop_arg(tls, nl_arg+uintptr(i)*8, **(**int32)(__ccgo_up(nl_type + uintptr(i)*4)), ap) + goto _51 + _51: + ; + i = i + 1 + } + for { + if !(i <= uint32(NL_ARGMAX) && !(**(**int32)(__ccgo_up(nl_type + uintptr(i)*4)) != 0)) { + break + } + goto _52 + _52: + ; + i = i + 1 + } + if i <= uint32(NL_ARGMAX) { + goto inval + } + return int32(1) + goto inval +inval: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + goto overflow +overflow: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOVERFLOW) + return -int32(1) +} + +func Xvfprintf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v ap=%v, (%v:)", tls, f, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(208) + defer tls.Free(208) + var __need_unlock, olderr, ret, v1 int32 + var saved_buf, v2, v3 uintptr + var _ /* ap2 at bp+0 */ Tva_list + var _ /* internal_buf at bp+124 */ [80]uint8 + var _ /* nl_arg at bp+44 */ [10]Targ + var _ /* nl_type at bp+4 */ [10]int32 + _, _, _, _, _, _, _ = __need_unlock, olderr, ret, saved_buf, v1, v2, v3 + **(**[10]int32)(__ccgo_up(bp + 4)) = [10]int32{} + saved_buf = uintptr(0) + /* the copy allows passing va_list* even if va_list is an array */ + **(**Tva_list)(__ccgo_up(bp)) = ap + if _printf_core(tls, uintptr(0), fmt, bp, bp+44, bp+4) < 0 { + _ = **(**Tva_list)(__ccgo_up(bp)) + return -int32(1) + } + if AtomicLoadPInt32(f+76) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + olderr = Int32FromUint32((*TFILE)(unsafe.Pointer(f)).Fflags & uint32(F_ERR)) + **(**uint32)(__ccgo_up(f)) &= Uint32FromInt32(^Int32FromInt32(F_ERR)) + if !((*TFILE)(unsafe.Pointer(f)).Fbuf_size != 0) { + saved_buf = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Fbuf = bp + 124 + (*TFILE)(unsafe.Pointer(f)).Fbuf_size = uint32(80) + v3 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Fwend = v3 + v2 = v3 + (*TFILE)(unsafe.Pointer(f)).Fwbase = v2 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v2 + } + if !((*TFILE)(unsafe.Pointer(f)).Fwend != 0) && X__towrite(tls, f) != 0 { + ret = -int32(1) + } else { + ret = _printf_core(tls, f, fmt, bp, bp+44, bp+4) + } + if saved_buf != 0 { + (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tsize_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fwrite})))(tls, f, uintptr(0), uint32(0)) + if !((*TFILE)(unsafe.Pointer(f)).Fwpos != 0) { + ret = -int32(1) + } + (*TFILE)(unsafe.Pointer(f)).Fbuf = saved_buf + (*TFILE)(unsafe.Pointer(f)).Fbuf_size = uint32(0) + v3 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Fwend = v3 + v2 = v3 + (*TFILE)(unsafe.Pointer(f)).Fwbase = v2 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v2 + } + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_ERR) != 0 { + ret = -int32(1) + } + **(**uint32)(__ccgo_up(f)) |= Uint32FromInt32(olderr) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + _ = **(**Tva_list)(__ccgo_up(bp)) + return ret +} + +const SIZE_L = 2 +const SIZE_def = 0 +const SIZE_h = -1 +const SIZE_hh = -2 +const SIZE_l = 1 +const SIZE_ll = 3 + +func _store_int(tls *TLS, dest uintptr, size int32, i uint64) { + if !(dest != 0) { + return + } + switch size { + case -int32(2): + **(**int8)(__ccgo_up(dest)) = Int8FromUint64(i) + case -int32(1): + **(**int16)(__ccgo_up(dest)) = Int16FromUint64(i) + case SIZE_def: + **(**int32)(__ccgo_up(dest)) = Int32FromUint64(i) + case int32(SIZE_l): + **(**int32)(__ccgo_up(dest)) = Int32FromUint64(i) + case int32(SIZE_ll): + **(**int64)(__ccgo_up(dest)) = Int64FromUint64(i) + break + } +} + +func _arg_n(tls *TLS, ap Tva_list, n uint32) (r uintptr) { + var ap2 Tva_list + var i uint32 + var p uintptr + _, _, _ = ap2, i, p + ap2 = ap + i = n + for { + if !(i > uint32(1)) { + break + } + _ = VaUintptr(&ap2) + goto _1 + _1: + ; + i = i - 1 + } + p = VaUintptr(&ap2) + _ = ap2 + return p +} + +func Xvfscanf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v ap=%v, (%v:)", tls, f, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(288) + defer tls.Free(288) + var __need_unlock, alloc, base, c, invert, matches, size, t, width, v1, v3, v4, v6 int32 + var dest, p, s, tmp, tmp1, wcs, v10, v11, v17 uintptr + var i, k, v64 Tsize_t + var pos Toff_t + var x uint64 + var y float64 + var v59 uint32 + var _ /* scanset at bp+16 */ [257]uint8 + var _ /* st at bp+8 */ Tmbstate_t + var _ /* wc at bp+276 */ Twchar_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = __need_unlock, alloc, base, c, dest, i, invert, k, matches, p, pos, s, size, t, tmp, tmp1, wcs, width, x, y, v1, v10, v11, v17, v3, v4, v59, v6, v64 + alloc = 0 + dest = UintptrFromInt32(0) + matches = 0 + pos = 0 + if AtomicLoadPInt32(f+76) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + if !((*TFILE)(unsafe.Pointer(f)).Frpos != 0) { + X__toread(tls, f) + } + if !((*TFILE)(unsafe.Pointer(f)).Frpos != 0) { + goto input_fail + } + p = fmt + for { + if !(**(**uint8)(__ccgo_up(p)) != 0) { + break + } + alloc = 0 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(p))) + v3 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _5 + _5: + if v3 != 0 { + for { + v4 = Int32FromUint8(**(**uint8)(__ccgo_up(p + 1))) + v6 = BoolInt32(v4 == int32(' ') || Uint32FromInt32(v4)-uint32('\t') < uint32(5)) + goto _8 + _8: + if !(v6 != 0) { + break + } + p = p + 1 + } + X__shlim(tls, f, int64(Int32FromInt32(0))) + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v11 = f + 4 + v10 = *(*uintptr)(unsafe.Pointer(v11)) + *(*uintptr)(unsafe.Pointer(v11)) = *(*uintptr)(unsafe.Pointer(v11)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v10))) + } else { + v1 = X__shgetc(tls, f) + } + v3 = v1 + v4 = BoolInt32(v3 == int32(' ') || Uint32FromInt32(v3)-uint32('\t') < uint32(5)) + goto _14 + _14: + if !(v4 != 0) { + break + } + } + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + pos = pos + ((*TFILE)(unsafe.Pointer(f)).Fshcnt + int64(int32((*TFILE)(unsafe.Pointer(f)).Frpos)-int32((*TFILE)(unsafe.Pointer(f)).Fbuf))) + goto _2 + } + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) != int32('%') || Int32FromUint8(**(**uint8)(__ccgo_up(p + 1))) == int32('%') { + X__shlim(tls, f, int64(Int32FromInt32(0))) + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('%') { + p = p + 1 + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v11 = f + 4 + v10 = *(*uintptr)(unsafe.Pointer(v11)) + *(*uintptr)(unsafe.Pointer(v11)) = *(*uintptr)(unsafe.Pointer(v11)) + 1 + v3 = Int32FromUint8(**(**uint8)(__ccgo_up(v10))) + } else { + v3 = X__shgetc(tls, f) + } + v1 = v3 + c = v1 + v4 = v1 + v6 = BoolInt32(v4 == int32(' ') || Uint32FromInt32(v4)-uint32('\t') < uint32(5)) + goto _21 + _21: + if !(v6 != 0) { + break + } + } + } else { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v11 = f + 4 + v10 = *(*uintptr)(unsafe.Pointer(v11)) + *(*uintptr)(unsafe.Pointer(v11)) = *(*uintptr)(unsafe.Pointer(v11)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v10))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + if c != Int32FromUint8(**(**uint8)(__ccgo_up(p))) { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + if c < 0 { + goto input_fail + } + goto match_fail + } + pos = pos + ((*TFILE)(unsafe.Pointer(f)).Fshcnt + int64(int32((*TFILE)(unsafe.Pointer(f)).Frpos)-int32((*TFILE)(unsafe.Pointer(f)).Fbuf))) + goto _2 + } + p = p + 1 + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('*') { + dest = uintptr(0) + p = p + 1 + } else { + if BoolInt32(uint32(**(**uint8)(__ccgo_up(p)))-uint32('0') < uint32(10)) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(p + 1))) == int32('$') { + dest = _arg_n(tls, ap, Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(p)))-int32('0'))) + p = p + uintptr(2) + } else { + dest = VaUintptr(&ap) + } + } + width = 0 + for { + if !(BoolInt32(uint32(**(**uint8)(__ccgo_up(p)))-uint32('0') < uint32(10)) != 0) { + break + } + width = int32(10)*width + Int32FromUint8(**(**uint8)(__ccgo_up(p))) - int32('0') + goto _25 + _25: + ; + p = p + 1 + } + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('m') { + wcs = uintptr(0) + s = uintptr(0) + alloc = BoolInt32(!!(dest != 0)) + p = p + 1 + } else { + alloc = 0 + } + size = SIZE_def + v10 = p + p = p + 1 + switch Int32FromUint8(**(**uint8)(__ccgo_up(v10))) { + case int32('h'): + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('h') { + p = p + 1 + size = -Int32FromInt32(2) + } else { + size = -int32(1) + } + case int32('l'): + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('l') { + p = p + 1 + size = Int32FromInt32(SIZE_ll) + } else { + size = int32(SIZE_l) + } + case int32('j'): + size = int32(SIZE_ll) + case int32('z'): + fallthrough + case int32('t'): + size = int32(SIZE_l) + case int32('L'): + size = int32(SIZE_L) + case int32('d'): + fallthrough + case int32('i'): + fallthrough + case int32('o'): + fallthrough + case int32('u'): + fallthrough + case int32('x'): + fallthrough + case int32('a'): + fallthrough + case int32('e'): + fallthrough + case int32('f'): + fallthrough + case int32('g'): + fallthrough + case int32('A'): + fallthrough + case int32('E'): + fallthrough + case int32('F'): + fallthrough + case int32('G'): + fallthrough + case int32('X'): + fallthrough + case int32('s'): + fallthrough + case int32('c'): + fallthrough + case int32('['): + fallthrough + case int32('S'): + fallthrough + case int32('C'): + fallthrough + case int32('p'): + fallthrough + case int32('n'): + p = p - 1 + default: + goto fmt_fail + } + t = Int32FromUint8(**(**uint8)(__ccgo_up(p))) + /* C or S */ + if t&int32(0x2f) == int32(3) { + t = t | int32(32) + size = int32(SIZE_l) + } + switch t { + case int32('c'): + if width < int32(1) { + width = int32(1) + } + fallthrough + case int32('['): + case int32('n'): + _store_int(tls, dest, size, Uint64FromInt64(pos)) + /* do not increment match count, etc! */ + goto _2 + default: + X__shlim(tls, f, int64(Int32FromInt32(0))) + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v11 = f + 4 + v10 = *(*uintptr)(unsafe.Pointer(v11)) + *(*uintptr)(unsafe.Pointer(v11)) = *(*uintptr)(unsafe.Pointer(v11)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v10))) + } else { + v1 = X__shgetc(tls, f) + } + v3 = v1 + v4 = BoolInt32(v3 == int32(' ') || Uint32FromInt32(v3)-uint32('\t') < uint32(5)) + goto _32 + _32: + if !(v4 != 0) { + break + } + } + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + pos = pos + ((*TFILE)(unsafe.Pointer(f)).Fshcnt + int64(int32((*TFILE)(unsafe.Pointer(f)).Frpos)-int32((*TFILE)(unsafe.Pointer(f)).Fbuf))) + } + X__shlim(tls, f, int64(width)) + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v11 = f + 4 + v10 = *(*uintptr)(unsafe.Pointer(v11)) + *(*uintptr)(unsafe.Pointer(v11)) = *(*uintptr)(unsafe.Pointer(v11)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v10))) + } else { + v1 = X__shgetc(tls, f) + } + if v1 < 0 { + goto input_fail + } + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + switch t { + case int32('['): + goto _36 + case int32('c'): + goto _37 + case int32('s'): + goto _38 + case int32('x'): + goto _39 + case int32('X'): + goto _40 + case int32('p'): + goto _41 + case int32('o'): + goto _42 + case int32('u'): + goto _43 + case int32('d'): + goto _44 + case int32('i'): + goto _45 + case int32('G'): + goto _46 + case int32('g'): + goto _47 + case int32('F'): + goto _48 + case int32('f'): + goto _49 + case int32('E'): + goto _50 + case int32('e'): + goto _51 + case int32('A'): + goto _52 + case int32('a'): + goto _53 + } + goto _54 + _38: + ; + _37: + ; + _36: + ; + if t == int32('c') || t == int32('s') { + Xmemset(tls, bp+16, -int32(1), uint32(257)) + (**(**[257]uint8)(__ccgo_up(bp + 16)))[0] = uint8(0) + if t == int32('s') { + (**(**[257]uint8)(__ccgo_up(bp + 16)))[Int32FromInt32(1)+Int32FromUint8('\t')] = uint8(0) + (**(**[257]uint8)(__ccgo_up(bp + 16)))[Int32FromInt32(1)+Int32FromUint8('\n')] = uint8(0) + (**(**[257]uint8)(__ccgo_up(bp + 16)))[Int32FromInt32(1)+Int32FromUint8('\v')] = uint8(0) + (**(**[257]uint8)(__ccgo_up(bp + 16)))[Int32FromInt32(1)+Int32FromUint8('\f')] = uint8(0) + (**(**[257]uint8)(__ccgo_up(bp + 16)))[Int32FromInt32(1)+Int32FromUint8('\r')] = uint8(0) + (**(**[257]uint8)(__ccgo_up(bp + 16)))[Int32FromInt32(1)+Int32FromUint8(' ')] = uint8(0) + } + } else { + p = p + 1 + v10 = p + if Int32FromUint8(**(**uint8)(__ccgo_up(v10))) == int32('^') { + p = p + 1 + invert = Int32FromInt32(1) + } else { + invert = 0 + } + Xmemset(tls, bp+16, invert, uint32(257)) + (**(**[257]uint8)(__ccgo_up(bp + 16)))[0] = uint8(0) + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('-') { + p = p + 1 + (**(**[257]uint8)(__ccgo_up(bp + 16)))[Int32FromInt32(1)+Int32FromUint8('-')] = Uint8FromInt32(Int32FromInt32(1) - invert) + } else { + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32(']') { + p = p + 1 + (**(**[257]uint8)(__ccgo_up(bp + 16)))[Int32FromInt32(1)+Int32FromUint8(']')] = Uint8FromInt32(Int32FromInt32(1) - invert) + } + } + for { + if !(Int32FromUint8(**(**uint8)(__ccgo_up(p))) != int32(']')) { + break + } + if !(**(**uint8)(__ccgo_up(p)) != 0) { + goto fmt_fail + } + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('-') && **(**uint8)(__ccgo_up(p + 1)) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(p + 1))) != int32(']') { + v10 = p + p = p + 1 + c = Int32FromUint8(**(**uint8)(__ccgo_up(v10 + uintptr(-Int32FromInt32(1))))) + for { + if !(c < Int32FromUint8(**(**uint8)(__ccgo_up(p)))) { + break + } + (**(**[257]uint8)(__ccgo_up(bp + 16)))[int32(1)+c] = Uint8FromInt32(int32(1) - invert) + goto _57 + _57: + ; + c = c + 1 + } + } + (**(**[257]uint8)(__ccgo_up(bp + 16)))[int32(1)+Int32FromUint8(**(**uint8)(__ccgo_up(p)))] = Uint8FromInt32(int32(1) - invert) + goto _56 + _56: + ; + p = p + 1 + } + } + wcs = uintptr(0) + s = uintptr(0) + i = uint32(0) + if t == int32('c') { + v59 = Uint32FromInt32(width) + uint32(1) + } else { + v59 = uint32(31) + } + k = v59 + if size == int32(SIZE_l) { + if alloc != 0 { + wcs = Xmalloc(tls, k*uint32(4)) + if !(wcs != 0) { + goto alloc_fail + } + } else { + wcs = dest + } + **(**Tmbstate_t)(__ccgo_up(bp + 8)) = Tmbstate_t{} + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v11 = f + 4 + v10 = *(*uintptr)(unsafe.Pointer(v11)) + *(*uintptr)(unsafe.Pointer(v11)) = *(*uintptr)(unsafe.Pointer(v11)) + 1 + v3 = Int32FromUint8(**(**uint8)(__ccgo_up(v10))) + } else { + v3 = X__shgetc(tls, f) + } + v1 = v3 + c = v1 + if !((**(**[257]uint8)(__ccgo_up(bp + 16)))[v1+int32(1)] != 0) { + break + } + *(*int8)(unsafe.Pointer(bp)) = int8(c) + switch Xmbrtowc(tls, bp+276, bp, uint32(1), bp+8) { + case Uint32FromInt32(-Int32FromInt32(1)): + goto input_fail + case Uint32FromInt32(-Int32FromInt32(2)): + continue + } + if wcs != 0 { + v64 = i + i = i + 1 + **(**Twchar_t)(__ccgo_up(wcs + uintptr(v64)*4)) = **(**Twchar_t)(__ccgo_up(bp + 276)) + } + if alloc != 0 && i == k { + k = k + (k + uint32(1)) + tmp = Xrealloc(tls, wcs, k*uint32(4)) + if !(tmp != 0) { + goto alloc_fail + } + wcs = tmp + } + } + if !(Xmbsinit(tls, bp+8) != 0) { + goto input_fail + } + } else { + if alloc != 0 { + s = Xmalloc(tls, k) + if !(s != 0) { + goto alloc_fail + } + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v11 = f + 4 + v10 = *(*uintptr)(unsafe.Pointer(v11)) + *(*uintptr)(unsafe.Pointer(v11)) = *(*uintptr)(unsafe.Pointer(v11)) + 1 + v3 = Int32FromUint8(**(**uint8)(__ccgo_up(v10))) + } else { + v3 = X__shgetc(tls, f) + } + v1 = v3 + c = v1 + if !((**(**[257]uint8)(__ccgo_up(bp + 16)))[v1+int32(1)] != 0) { + break + } + v64 = i + i = i + 1 + **(**int8)(__ccgo_up(s + uintptr(v64))) = int8(c) + if i == k { + k = k + (k + uint32(1)) + tmp1 = Xrealloc(tls, s, k) + if !(tmp1 != 0) { + goto alloc_fail + } + s = tmp1 + } + } + } else { + v10 = dest + s = v10 + if v10 != 0 { + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v17 = f + 4 + v11 = *(*uintptr)(unsafe.Pointer(v17)) + *(*uintptr)(unsafe.Pointer(v17)) = *(*uintptr)(unsafe.Pointer(v17)) + 1 + v3 = Int32FromUint8(**(**uint8)(__ccgo_up(v11))) + } else { + v3 = X__shgetc(tls, f) + } + v1 = v3 + c = v1 + if !((**(**[257]uint8)(__ccgo_up(bp + 16)))[v1+int32(1)] != 0) { + break + } + v64 = i + i = i + 1 + **(**int8)(__ccgo_up(s + uintptr(v64))) = int8(c) + } + } else { + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v11 = f + 4 + v10 = *(*uintptr)(unsafe.Pointer(v11)) + *(*uintptr)(unsafe.Pointer(v11)) = *(*uintptr)(unsafe.Pointer(v11)) + 1 + v3 = Int32FromUint8(**(**uint8)(__ccgo_up(v10))) + } else { + v3 = X__shgetc(tls, f) + } + v1 = v3 + c = v1 + if !((**(**[257]uint8)(__ccgo_up(bp + 16)))[v1+int32(1)] != 0) { + break + } + } + } + } + } + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + if !((*TFILE)(unsafe.Pointer(f)).Fshcnt+int64(int32((*TFILE)(unsafe.Pointer(f)).Frpos)-int32((*TFILE)(unsafe.Pointer(f)).Fbuf)) != 0) { + goto match_fail + } + if t == int32('c') && (*TFILE)(unsafe.Pointer(f)).Fshcnt+int64(int32((*TFILE)(unsafe.Pointer(f)).Frpos)-int32((*TFILE)(unsafe.Pointer(f)).Fbuf)) != int64(width) { + goto match_fail + } + if alloc != 0 { + if size == int32(SIZE_l) { + **(**uintptr)(__ccgo_up(dest)) = wcs + } else { + **(**uintptr)(__ccgo_up(dest)) = s + } + } + if t != int32('c') { + if wcs != 0 { + **(**Twchar_t)(__ccgo_up(wcs + uintptr(i)*4)) = 0 + } + if s != 0 { + **(**int8)(__ccgo_up(s + uintptr(i))) = 0 + } + } + goto _54 + _41: + ; + _40: + ; + _39: + ; + base = int32(16) + goto int_common + _42: + ; + base = int32(8) + goto int_common + _44: + ; + _43: + ; + base = int32(10) + goto int_common + _45: + ; + base = 0 + goto int_common + int_common: + ; + x = X__intscan(tls, f, Uint32FromInt32(base), 0, Uint64FromUint64(2)*Uint64FromInt64(0x7fffffffffffffff)+Uint64FromInt32(1)) + if !((*TFILE)(unsafe.Pointer(f)).Fshcnt+int64(int32((*TFILE)(unsafe.Pointer(f)).Frpos)-int32((*TFILE)(unsafe.Pointer(f)).Fbuf)) != 0) { + goto match_fail + } + if t == int32('p') && dest != 0 { + **(**uintptr)(__ccgo_up(dest)) = uintptr(uint32(x)) + } else { + _store_int(tls, dest, size, x) + } + goto _54 + _53: + ; + _52: + ; + _51: + ; + _50: + ; + _49: + ; + _48: + ; + _47: + ; + _46: + ; + y = X__floatscan(tls, f, size, 0) + if !((*TFILE)(unsafe.Pointer(f)).Fshcnt+int64(int32((*TFILE)(unsafe.Pointer(f)).Frpos)-int32((*TFILE)(unsafe.Pointer(f)).Fbuf)) != 0) { + goto match_fail + } + if dest != 0 { + switch size { + case SIZE_def: + **(**float32)(__ccgo_up(dest)) = float32(y) + case int32(SIZE_l): + **(**float64)(__ccgo_up(dest)) = y + case int32(SIZE_L): + **(**float64)(__ccgo_up(dest)) = y + break + } + } + goto _54 + _54: + ; + pos = pos + ((*TFILE)(unsafe.Pointer(f)).Fshcnt + int64(int32((*TFILE)(unsafe.Pointer(f)).Frpos)-int32((*TFILE)(unsafe.Pointer(f)).Fbuf))) + if dest != 0 { + matches = matches + 1 + } + goto _2 + _2: + ; + p = p + 1 + } + if !(0 != 0) { + goto _80 + } + goto fmt_fail +fmt_fail: + ; + goto alloc_fail +alloc_fail: + ; + goto input_fail +input_fail: + ; + if !(matches != 0) { + matches = matches - 1 + } + goto match_fail +match_fail: + ; + if alloc != 0 { + Xfree(tls, s) + Xfree(tls, wcs) + } +_80: + ; + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return matches +} + +func X__isoc99_vfscanf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v ap=%v, (%v:)", tls, f, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvfscanf(tls, f, fmt, ap) +} + +var _states1 = [8][58]uint8{ + 0: { + 0: uint8(_DBL), + 2: uint8(_UINT), + 4: uint8(_DBL), + 5: uint8(_DBL), + 6: uint8(_DBL), + 11: uint8(_BIGLPRE), + 18: uint8(_PTR), + 23: uint8(_UINT), + 32: uint8(_DBL), + 34: uint8(_INT), + 35: uint8(_INT), + 36: uint8(_DBL), + 37: uint8(_DBL), + 38: uint8(_DBL), + 39: uint8(_HPRE), + 40: uint8(_INT), + 41: uint8(_JPRE), + 43: uint8(_LPRE), + 44: uint8(_NOARG), + 45: uint8(_PTR), + 46: uint8(_UINT), + 47: uint8(_UIPTR), + 50: uint8(_PTR), + 51: uint8(_ZTPRE), + 52: uint8(_UINT), + 55: uint8(_UINT), + 57: uint8(_ZTPRE), + }, + 1: { + 0: uint8(_DBL), + 4: uint8(_DBL), + 5: uint8(_DBL), + 6: uint8(_DBL), + 23: uint8(_ULONG), + 32: uint8(_DBL), + 34: uint8(_UINT), + 35: uint8(_LONG), + 36: uint8(_DBL), + 37: uint8(_DBL), + 38: uint8(_DBL), + 40: uint8(_LONG), + 43: uint8(_LLPRE), + 45: uint8(_PTR), + 46: uint8(_ULONG), + 50: uint8(_PTR), + 52: uint8(_ULONG), + 55: uint8(_ULONG), + }, + 2: { + 23: uint8(_ULLONG), + 35: uint8(_LLONG), + 40: uint8(_LLONG), + 45: uint8(_PTR), + 46: uint8(_ULLONG), + 52: uint8(_ULLONG), + 55: uint8(_ULLONG), + }, + 3: { + 23: uint8(_USHORT), + 35: uint8(_SHORT), + 39: uint8(_HHPRE), + 40: uint8(_SHORT), + 45: uint8(_PTR), + 46: uint8(_USHORT), + 52: uint8(_USHORT), + 55: uint8(_USHORT), + }, + 4: { + 23: uint8(_UCHAR), + 35: uint8(_CHAR), + 40: uint8(_CHAR), + 45: uint8(_PTR), + 46: uint8(_UCHAR), + 52: uint8(_UCHAR), + 55: uint8(_UCHAR), + }, + 5: { + 0: uint8(_LDBL), + 4: uint8(_LDBL), + 5: uint8(_LDBL), + 6: uint8(_LDBL), + 32: uint8(_LDBL), + 36: uint8(_LDBL), + 37: uint8(_LDBL), + 38: uint8(_LDBL), + 45: uint8(_PTR), + }, + 6: { + 23: uint8(_SIZET), + 35: uint8(_PDIFF), + 40: uint8(_PDIFF), + 45: uint8(_PTR), + 46: uint8(_SIZET), + 52: uint8(_SIZET), + 55: uint8(_SIZET), + }, + 7: { + 23: uint8(_UMAX), + 35: uint8(_IMAX), + 40: uint8(_IMAX), + 45: uint8(_PTR), + 46: uint8(_UMAX), + 52: uint8(_UMAX), + 55: uint8(_UMAX), + }, +} + +func _pop_arg1(tls *TLS, arg uintptr, type1 int32, ap uintptr) { + switch type1 { + case int32(_PTR): + *(*uintptr)(unsafe.Pointer(arg)) = VaUintptr(&**(**Tva_list)(__ccgo_up(ap))) + case int32(_INT): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt32(VaInt32(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_UINT): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(VaUint32(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_LONG): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt32(VaInt32(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_ULONG): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(VaUint32(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_ULLONG): + (*Targ)(unsafe.Pointer(arg)).Fi = VaUint64(&**(**Tva_list)(__ccgo_up(ap))) + case int32(_SHORT): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt16(int16(VaInt32(&**(**Tva_list)(__ccgo_up(ap))))) + case int32(_USHORT): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(Uint16FromInt32(VaInt32(&**(**Tva_list)(__ccgo_up(ap))))) + case int32(_CHAR): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt8(int8(VaInt32(&**(**Tva_list)(__ccgo_up(ap))))) + case int32(_UCHAR): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(Uint8FromInt32(VaInt32(&**(**Tva_list)(__ccgo_up(ap))))) + case int32(_LLONG): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt64(VaInt64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_SIZET): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(VaUint32(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_IMAX): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt64(VaInt64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_UMAX): + (*Targ)(unsafe.Pointer(arg)).Fi = VaUint64(&**(**Tva_list)(__ccgo_up(ap))) + case int32(_PDIFF): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt32(VaInt32(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_UIPTR): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(uint32(VaUintptr(&**(**Tva_list)(__ccgo_up(ap))))) + case int32(_DBL): + *(*float64)(unsafe.Pointer(arg)) = float64(VaFloat64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_LDBL): + *(*float64)(unsafe.Pointer(arg)) = VaFloat64(&**(**Tva_list)(__ccgo_up(ap))) + } +} + +func _out1(tls *TLS, f uintptr, s uintptr, l Tsize_t) { + var v1 Tsize_t + var v2 uintptr + _, _ = v1, v2 + for { + v1 = l + l = l - 1 + if !(v1 != 0 && !((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_ERR) != 0)) { + break + } + v2 = s + s += 4 + Xfputwc(tls, **(**Twchar_t)(__ccgo_up(v2)), f) + } +} + +func _pad4(tls *TLS, f uintptr, n int32, fl int32) { + bp := tls.Alloc(32) + defer tls.Free(32) + if Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' '))) != 0 || !(n != 0) || (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_ERR) != 0 { + return + } + Xfprintf(tls, f, __ccgo_ts+1467, VaList(bp+8, n, __ccgo_ts)) +} + +func _getint1(tls *TLS, s uintptr) (r int32) { + var i int32 + _ = i + i = 0 + for { + if !(BoolInt32(Uint32FromInt32(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(s)))))-uint32('0') < uint32(10)) != 0) { + break + } + if Uint32FromInt32(i) > Uint32FromInt32(INT_MAX)/Uint32FromUint32(10) || **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(s))))-int32('0') > int32(INT_MAX)-int32(10)*i { + i = -int32(1) + } else { + i = int32(int32(10)*i + (**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(s)))) - int32('0'))) + } + goto _1 + _1: + ; + **(**uintptr)(__ccgo_up(s)) += 4 + } + return i +} + +var _sizeprefix = [24]int8{ + 0: int8('L'), + 3: int8('j'), + 4: int8('L'), + 5: int8('L'), + 6: int8('L'), + 8: int8('j'), + 14: int8('j'), + 15: int8('j'), + 20: int8('j'), + 23: int8('j'), +} + +func _wprintf_core(tls *TLS, f uintptr, fmt uintptr, ap uintptr, nl_arg uintptr, nl_type uintptr) (r int32) { + bp := tls.Alloc(112) + defer tls.Free(112) + var a, bs, z, v8 uintptr + var argpos, cnt, i, l, p, t, w, xp, v5, v6, v7 int32 + var fl, l10n, ps, st uint32 + var v15 bool + var v9 uint64 + var _ /* arg at bp+8 */ Targ + var _ /* charfmt at bp+16 */ [16]int8 + var _ /* s at bp+4 */ uintptr + var _ /* wc at bp+32 */ Twchar_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = a, argpos, bs, cnt, fl, i, l, l10n, p, ps, st, t, w, xp, z, v15, v5, v6, v7, v8, v9 + **(**uintptr)(__ccgo_up(bp + 4)) = fmt + l10n = uint32(0) + cnt = 0 + l = 0 + for { + /* This error is only specified for snprintf, but since it's + * unspecified for other forms, do the same. Stop immediately + * on overflow; otherwise %n could produce wrong results. */ + if l > int32(INT_MAX)-cnt { + goto overflow + } + /* Update output count, end loop when fmt is exhausted */ + cnt = cnt + l + if !(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 4)))) != 0) { + break + } + /* Handle literal text and %% format specifiers */ + a = **(**uintptr)(__ccgo_up(bp + 4)) + for { + if !(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 4)))) != 0 && **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 4)))) != int32('%')) { + break + } + goto _2 + _2: + ; + **(**uintptr)(__ccgo_up(bp + 4)) += 4 + } + z = **(**uintptr)(__ccgo_up(bp + 4)) + for { + if !(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 4)))) == int32('%') && **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 4)) + 1*4)) == int32('%')) { + break + } + goto _3 + _3: + ; + z += 4 + **(**uintptr)(__ccgo_up(bp + 4)) = **(**uintptr)(__ccgo_up(bp + 4)) + uintptr(2)*4 + } + if (int32(z)-int32(a))/4 > int32(INT_MAX)-cnt { + goto overflow + } + l = (int32(z) - int32(a)) / 4 + if f != 0 { + _out1(tls, f, a, Uint32FromInt32(l)) + } + if l != 0 { + goto _1 + } + if BoolInt32(Uint32FromInt32(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 4)) + 1*4)))-uint32('0') < uint32(10)) != 0 && **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 4)) + 2*4)) == int32('$') { + l10n = uint32(1) + argpos = int32(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 4)) + 1*4)) - int32('0')) + **(**uintptr)(__ccgo_up(bp + 4)) = **(**uintptr)(__ccgo_up(bp + 4)) + uintptr(3)*4 + } else { + argpos = -int32(1) + **(**uintptr)(__ccgo_up(bp + 4)) += 4 + } + /* Read modifier flags */ + fl = uint32(0) + for { + if !(Uint32FromInt32(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 4)))))-uint32(' ') < uint32(32) && (Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8('0')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8(' ')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8('+')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8('\'')-Int32FromUint8(' ')))&(uint32(1)<<(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 4))))-int32(' '))) != 0) { + break + } + fl = fl | uint32(1)<<(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 4))))-int32(' ')) + goto _4 + _4: + ; + **(**uintptr)(__ccgo_up(bp + 4)) += 4 + } + /* Read field width */ + if **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 4)))) == int32('*') { + if BoolInt32(Uint32FromInt32(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 4)) + 1*4)))-uint32('0') < uint32(10)) != 0 && **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 4)) + 2*4)) == int32('$') { + l10n = uint32(1) + **(**int32)(__ccgo_up(nl_type + uintptr(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 4)) + 1*4))-int32('0'))*4)) = int32(_INT) + w = Int32FromUint64(*(*Tuintmax_t)(unsafe.Pointer(nl_arg + uintptr(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 4)) + 1*4))-int32('0'))*8))) + **(**uintptr)(__ccgo_up(bp + 4)) = **(**uintptr)(__ccgo_up(bp + 4)) + uintptr(3)*4 + } else { + if !(l10n != 0) { + if f != 0 { + v5 = VaInt32(&**(**Tva_list)(__ccgo_up(ap))) + } else { + v5 = 0 + } + w = v5 + **(**uintptr)(__ccgo_up(bp + 4)) += 4 + } else { + goto inval + } + } + if w < 0 { + fl = fl | Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' ')) + w = -w + } + } else { + v5 = _getint1(tls, bp+4) + w = v5 + if v5 < 0 { + goto overflow + } + } + /* Read precision */ + if **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 4)))) == int32('.') && **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 4)) + 1*4)) == int32('*') { + if BoolInt32(Uint32FromInt32(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 4)) + 2*4)))-uint32('0') < uint32(10)) != 0 && **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 4)) + 3*4)) == int32('$') { + **(**int32)(__ccgo_up(nl_type + uintptr(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 4)) + 2*4))-int32('0'))*4)) = int32(_INT) + p = Int32FromUint64(*(*Tuintmax_t)(unsafe.Pointer(nl_arg + uintptr(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 4)) + 2*4))-int32('0'))*8))) + **(**uintptr)(__ccgo_up(bp + 4)) = **(**uintptr)(__ccgo_up(bp + 4)) + uintptr(4)*4 + } else { + if !(l10n != 0) { + if f != 0 { + v5 = VaInt32(&**(**Tva_list)(__ccgo_up(ap))) + } else { + v5 = 0 + } + p = v5 + **(**uintptr)(__ccgo_up(bp + 4)) = **(**uintptr)(__ccgo_up(bp + 4)) + uintptr(2)*4 + } else { + goto inval + } + } + xp = BoolInt32(p >= 0) + } else { + if **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 4)))) == int32('.') { + **(**uintptr)(__ccgo_up(bp + 4)) += 4 + p = _getint1(tls, bp+4) + xp = int32(1) + } else { + p = -int32(1) + xp = 0 + } + } + /* Format specifier state machine */ + st = uint32(0) + for cond := true; cond; cond = st-uint32(1) < uint32(_STOP) { + if Uint32FromInt32(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 4)))))-uint32('A') > Uint32FromInt32(Int32FromUint8('z')-Int32FromUint8('A')) { + goto inval + } + ps = st + v8 = **(**uintptr)(__ccgo_up(bp + 4)) + **(**uintptr)(__ccgo_up(bp + 4)) += 4 + st = uint32(**(**uint8)(__ccgo_up(uintptr(unsafe.Pointer(&_states1)) + uintptr(st)*58 + uintptr(**(**Twchar_t)(__ccgo_up(v8))-int32('A'))))) + } + if !(st != 0) { + goto inval + } + /* Check validity of argument type (nl/normal) */ + if st == uint32(_NOARG) { + if argpos >= 0 { + goto inval + } + } else { + if argpos >= 0 { + **(**int32)(__ccgo_up(nl_type + uintptr(argpos)*4)) = Int32FromUint32(st) + **(**Targ)(__ccgo_up(bp + 8)) = **(**Targ)(__ccgo_up(nl_arg + uintptr(argpos)*8)) + } else { + if f != 0 { + _pop_arg1(tls, bp+8, Int32FromUint32(st), ap) + } else { + return 0 + } + } + } + if !(f != 0) { + goto _1 + } + /* Do not process any new directives once in error state. */ + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_ERR) != 0 { + return -int32(1) + } + t = int32(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 4)) + uintptr(-Int32FromInt32(1))*4))) + if ps != 0 && t&int32(15) == int32(3) { + t = t & ^Int32FromInt32(32) + } + switch t { + case int32('n'): + switch ps { + case uint32(_BARE): + **(**int32)(__ccgo_up(*(*uintptr)(unsafe.Pointer(&**(**Targ)(__ccgo_up(bp + 8)))))) = cnt + case uint32(_LPRE): + **(**int32)(__ccgo_up(*(*uintptr)(unsafe.Pointer(&**(**Targ)(__ccgo_up(bp + 8)))))) = cnt + case uint32(_LLPRE): + **(**int64)(__ccgo_up(*(*uintptr)(unsafe.Pointer(&**(**Targ)(__ccgo_up(bp + 8)))))) = int64(cnt) + case uint32(_HPRE): + **(**uint16)(__ccgo_up(*(*uintptr)(unsafe.Pointer(&**(**Targ)(__ccgo_up(bp + 8)))))) = Uint16FromInt32(cnt) + case uint32(_HHPRE): + **(**uint8)(__ccgo_up(*(*uintptr)(unsafe.Pointer(&**(**Targ)(__ccgo_up(bp + 8)))))) = Uint8FromInt32(cnt) + case uint32(_ZTPRE): + **(**Tsize_t)(__ccgo_up(*(*uintptr)(unsafe.Pointer(&**(**Targ)(__ccgo_up(bp + 8)))))) = Uint32FromInt32(cnt) + case uint32(_JPRE): + **(**Tuintmax_t)(__ccgo_up(*(*uintptr)(unsafe.Pointer(&**(**Targ)(__ccgo_up(bp + 8)))))) = Uint64FromInt32(cnt) + break + } + goto _1 + case int32('c'): + fallthrough + case int32('C'): + if w < int32(1) { + w = int32(1) + } + _pad4(tls, f, w-int32(1), Int32FromUint32(fl)) + if t == int32('C') { + v9 = *(*Tuintmax_t)(unsafe.Pointer(bp + 8)) + } else { + v9 = uint64(Xbtowc(tls, Int32FromUint64(*(*Tuintmax_t)(unsafe.Pointer(bp + 8))))) + } + *(*Twchar_t)(unsafe.Pointer(bp)) = Int32FromUint64(v9) + _out1(tls, f, bp, uint32(1)) + _pad4(tls, f, w-int32(1), Int32FromUint32(fl^Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' ')))) + l = w + goto _1 + case int32('S'): + a = *(*uintptr)(unsafe.Pointer(&**(**Targ)(__ccgo_up(bp + 8)))) + if p < 0 { + v5 = int32(INT_MAX) + } else { + v5 = p + } + z = a + uintptr(Xwcsnlen(tls, a, Uint32FromInt32(v5)))*4 + if p < 0 && **(**Twchar_t)(__ccgo_up(z)) != 0 { + goto overflow + } + p = (int32(z) - int32(a)) / 4 + if w < p { + w = p + } + _pad4(tls, f, w-p, Int32FromUint32(fl)) + _out1(tls, f, a, Uint32FromInt32(p)) + _pad4(tls, f, w-p, Int32FromUint32(fl^Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' ')))) + l = w + goto _1 + case int32('m'): + *(*uintptr)(unsafe.Pointer(&**(**Targ)(__ccgo_up(bp + 8)))) = Xstrerror(tls, **(**int32)(__ccgo_up(X__errno_location(tls)))) + fallthrough + case int32('s'): + if !(*(*uintptr)(unsafe.Pointer(&**(**Targ)(__ccgo_up(bp + 8)))) != 0) { + *(*uintptr)(unsafe.Pointer(&**(**Targ)(__ccgo_up(bp + 8)))) = __ccgo_ts + 1460 + } + bs = *(*uintptr)(unsafe.Pointer(&**(**Targ)(__ccgo_up(bp + 8)))) + v5 = Int32FromInt32(0) + l = v5 + i = v5 + for { + if p < 0 { + v6 = int32(INT_MAX) + } else { + v6 = p + } + if v15 = l < v6; v15 { + v7 = Xmbtowc(tls, bp+32, bs, uint32(MB_LEN_MAX)) + i = v7 + } + if !(v15 && v7 > 0) { + break + } + goto _11 + _11: + ; + bs = bs + uintptr(i) + l = l + 1 + } + if i < 0 { + return -int32(1) + } + if p < 0 && **(**int8)(__ccgo_up(bs)) != 0 { + goto overflow + } + p = l + if w < p { + w = p + } + _pad4(tls, f, w-p, Int32FromUint32(fl)) + bs = *(*uintptr)(unsafe.Pointer(&**(**Targ)(__ccgo_up(bp + 8)))) + for { + v5 = l + l = l - 1 + if !(v5 != 0) { + break + } + i = Xmbtowc(tls, bp+32, bs, uint32(MB_LEN_MAX)) + bs = bs + uintptr(i) + _out1(tls, f, bp+32, uint32(1)) + } + _pad4(tls, f, w-p, Int32FromUint32(fl^Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' ')))) + l = w + goto _1 + } + if xp != 0 && p < 0 { + goto overflow + } + Xsnprintf(tls, bp+16, uint32(16), __ccgo_ts+1471, VaList(bp+48, __ccgo_ts+1491+BoolUintptr(!(fl&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0)), __ccgo_ts+1493+BoolUintptr(!(fl&(Uint32FromUint32(1)<<(Int32FromUint8('+')-Int32FromUint8(' '))) != 0)), __ccgo_ts+1495+BoolUintptr(!(fl&(Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' '))) != 0)), __ccgo_ts+587+BoolUintptr(!(fl&(Uint32FromUint32(1)<<(Int32FromUint8(' ')-Int32FromUint8(' '))) != 0)), __ccgo_ts+1497+BoolUintptr(!(fl&(Uint32FromUint32(1)<<(Int32FromUint8('0')-Int32FromUint8(' '))) != 0)), int32(_sizeprefix[t|int32(32)-int32('a')]), t)) + switch t | Int32FromInt32(32) { + case int32('a'): + fallthrough + case int32('e'): + fallthrough + case int32('f'): + fallthrough + case int32('g'): + l = Xfprintf(tls, f, bp+16, VaList(bp+48, w, p, *(*float64)(unsafe.Pointer(bp + 8)))) + case int32('d'): + fallthrough + case int32('i'): + fallthrough + case int32('o'): + fallthrough + case int32('u'): + fallthrough + case int32('x'): + fallthrough + case int32('p'): + l = Xfprintf(tls, f, bp+16, VaList(bp+48, w, p, *(*Tuintmax_t)(unsafe.Pointer(bp + 8)))) + break + } + goto _1 + _1: + } + if f != 0 { + return cnt + } + if !(l10n != 0) { + return 0 + } + i = int32(1) + for { + if !(i <= int32(NL_ARGMAX) && **(**int32)(__ccgo_up(nl_type + uintptr(i)*4)) != 0) { + break + } + _pop_arg1(tls, nl_arg+uintptr(i)*8, **(**int32)(__ccgo_up(nl_type + uintptr(i)*4)), ap) + goto _17 + _17: + ; + i = i + 1 + } + for { + if !(i <= int32(NL_ARGMAX) && !(**(**int32)(__ccgo_up(nl_type + uintptr(i)*4)) != 0)) { + break + } + goto _18 + _18: + ; + i = i + 1 + } + if i <= int32(NL_ARGMAX) { + return -int32(1) + } + return int32(1) + goto inval +inval: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + goto overflow +overflow: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOVERFLOW) + return -int32(1) +} + +func Xvfwprintf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v ap=%v, (%v:)", tls, f, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(128) + defer tls.Free(128) + var __need_unlock, olderr, ret, v1 int32 + var _ /* ap2 at bp+0 */ Tva_list + var _ /* nl_arg at bp+44 */ [10]Targ + var _ /* nl_type at bp+4 */ [10]int32 + _, _, _, _ = __need_unlock, olderr, ret, v1 + **(**[10]int32)(__ccgo_up(bp + 4)) = [10]int32{} + /* the copy allows passing va_list* even if va_list is an array */ + **(**Tva_list)(__ccgo_up(bp)) = ap + if _wprintf_core(tls, uintptr(0), fmt, bp, bp+44, bp+4) < 0 { + _ = **(**Tva_list)(__ccgo_up(bp)) + return -int32(1) + } + if AtomicLoadPInt32(f+76) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + Xfwide(tls, f, int32(1)) + olderr = Int32FromUint32((*TFILE)(unsafe.Pointer(f)).Fflags & uint32(F_ERR)) + **(**uint32)(__ccgo_up(f)) &= Uint32FromInt32(^Int32FromInt32(F_ERR)) + ret = _wprintf_core(tls, f, fmt, bp, bp+44, bp+4) + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_ERR) != 0 { + ret = -int32(1) + } + **(**uint32)(__ccgo_up(f)) |= Uint32FromInt32(olderr) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + _ = **(**Tva_list)(__ccgo_up(bp)) + return ret +} + +func _store_int1(tls *TLS, dest uintptr, size int32, i uint64) { + if !(dest != 0) { + return + } + switch size { + case -int32(2): + **(**int8)(__ccgo_up(dest)) = Int8FromUint64(i) + case -int32(1): + **(**int16)(__ccgo_up(dest)) = Int16FromUint64(i) + case SIZE_def: + **(**int32)(__ccgo_up(dest)) = Int32FromUint64(i) + case int32(SIZE_l): + **(**int32)(__ccgo_up(dest)) = Int32FromUint64(i) + case int32(SIZE_ll): + **(**int64)(__ccgo_up(dest)) = Int64FromUint64(i) + break + } +} + +func _arg_n1(tls *TLS, ap Tva_list, n uint32) (r uintptr) { + var ap2 Tva_list + var i uint32 + var p uintptr + _, _, _ = ap2, i, p + ap2 = ap + i = n + for { + if !(i > uint32(1)) { + break + } + _ = VaUintptr(&ap2) + goto _1 + _1: + ; + i = i - 1 + } + p = VaUintptr(&ap2) + _ = ap2 + return p +} + +func _in_set(tls *TLS, set uintptr, c int32) (r int32) { + var j int32 + var p, v3 uintptr + _, _, _ = j, p, v3 + p = set + if **(**Twchar_t)(__ccgo_up(p)) == int32('-') { + if c == int32('-') { + return int32(1) + } + p += 4 + } else { + if **(**Twchar_t)(__ccgo_up(p)) == int32(']') { + if c == int32(']') { + return int32(1) + } + p += 4 + } + } + for { + if !(**(**Twchar_t)(__ccgo_up(p)) != 0 && **(**Twchar_t)(__ccgo_up(p)) != int32(']')) { + break + } + if **(**Twchar_t)(__ccgo_up(p)) == int32('-') && **(**Twchar_t)(__ccgo_up(p + 1*4)) != 0 && **(**Twchar_t)(__ccgo_up(p + 1*4)) != int32(']') { + v3 = p + p += 4 + j = int32(**(**Twchar_t)(__ccgo_up(v3 + uintptr(-Int32FromInt32(1))*4))) + for { + if !(j < **(**Twchar_t)(__ccgo_up(p))) { + break + } + if c == j { + return int32(1) + } + goto _2 + _2: + ; + j = j + 1 + } + } + if c == **(**Twchar_t)(__ccgo_up(p)) { + return int32(1) + } + goto _1 + _1: + ; + p += 4 + } + return 0 +} + +func Xvfwscanf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v ap=%v, (%v:)", tls, f, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(80) + defer tls.Free(80) + var __need_unlock, alloc, c, gotmatch, invert, l, matches, size, t, width, v1 int32 + var dest, p, s, set, tmp1, tmp2, wcs, v5, v6 uintptr + var i, k, v37 Tsize_t + var pos Toff_t + var v4 uint32 + var _ /* cnt at bp+0 */ Toff_t + var _ /* tmp at bp+8 */ [22]int8 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = __need_unlock, alloc, c, dest, gotmatch, i, invert, k, l, matches, p, pos, s, set, size, t, tmp1, tmp2, wcs, width, v1, v37, v4, v5, v6 + dest = UintptrFromInt32(0) + matches = 0 + pos = 0 + if AtomicLoadPInt32(f+76) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + Xfwide(tls, f, int32(1)) + p = fmt + for { + if !(**(**Twchar_t)(__ccgo_up(p)) != 0) { + break + } + alloc = 0 + if Xiswspace(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(p)))) != 0 { + for Xiswspace(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(p + 1*4)))) != 0 { + p += 4 + } + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend && Int32FromUint8(**(**uint8)(__ccgo_up((*TFILE)(unsafe.Pointer(f)).Frpos))) < int32(128) { + v6 = f + 4 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + v4 = uint32(**(**uint8)(__ccgo_up(v5))) + } else { + v4 = Xgetwc(tls, f) + } + v1 = Int32FromUint32(v4) + c = v1 + if !(Xiswspace(tls, Uint32FromInt32(v1)) != 0) { + break + } + pos = pos + 1 + } + if (*TFILE)(unsafe.Pointer(f)).Frend != 0 && Uint32FromInt32(c) < uint32(128) { + v6 = f + 4 + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) - 1 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + _ = **(**uint8)(__ccgo_up(v5)) + } else { + Xungetwc(tls, Uint32FromInt32(c), f) + } + goto _2 + } + if **(**Twchar_t)(__ccgo_up(p)) != int32('%') || **(**Twchar_t)(__ccgo_up(p + 1*4)) == int32('%') { + if **(**Twchar_t)(__ccgo_up(p)) == int32('%') { + p += 4 + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend && Int32FromUint8(**(**uint8)(__ccgo_up((*TFILE)(unsafe.Pointer(f)).Frpos))) < int32(128) { + v6 = f + 4 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + v4 = uint32(**(**uint8)(__ccgo_up(v5))) + } else { + v4 = Xgetwc(tls, f) + } + v1 = Int32FromUint32(v4) + c = v1 + if !(Xiswspace(tls, Uint32FromInt32(v1)) != 0) { + break + } + pos = pos + 1 + } + } else { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend && Int32FromUint8(**(**uint8)(__ccgo_up((*TFILE)(unsafe.Pointer(f)).Frpos))) < int32(128) { + v6 = f + 4 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + v4 = uint32(**(**uint8)(__ccgo_up(v5))) + } else { + v4 = Xgetwc(tls, f) + } + c = Int32FromUint32(v4) + } + if c != **(**Twchar_t)(__ccgo_up(p)) { + if (*TFILE)(unsafe.Pointer(f)).Frend != 0 && Uint32FromInt32(c) < uint32(128) { + v6 = f + 4 + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) - 1 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + _ = **(**uint8)(__ccgo_up(v5)) + } else { + Xungetwc(tls, Uint32FromInt32(c), f) + } + if c < 0 { + goto input_fail + } + goto match_fail + } + pos = pos + 1 + goto _2 + } + p += 4 + if **(**Twchar_t)(__ccgo_up(p)) == int32('*') { + dest = uintptr(0) + p += 4 + } else { + if BoolInt32(Uint32FromInt32(**(**Twchar_t)(__ccgo_up(p)))-uint32('0') < uint32(10)) != 0 && **(**Twchar_t)(__ccgo_up(p + 1*4)) == int32('$') { + dest = _arg_n1(tls, ap, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(p))-int32('0'))) + p = p + uintptr(2)*4 + } else { + dest = VaUintptr(&ap) + } + } + width = 0 + for { + if !(BoolInt32(Uint32FromInt32(**(**Twchar_t)(__ccgo_up(p)))-uint32('0') < uint32(10)) != 0) { + break + } + width = int32(int32(10)*width + **(**Twchar_t)(__ccgo_up(p)) - int32('0')) + goto _18 + _18: + ; + p += 4 + } + if **(**Twchar_t)(__ccgo_up(p)) == int32('m') { + wcs = uintptr(0) + s = uintptr(0) + alloc = BoolInt32(!!(dest != 0)) + p += 4 + } else { + alloc = 0 + } + size = SIZE_def + v5 = p + p += 4 + switch **(**Twchar_t)(__ccgo_up(v5)) { + case int32('h'): + if **(**Twchar_t)(__ccgo_up(p)) == int32('h') { + p += 4 + size = -Int32FromInt32(2) + } else { + size = -int32(1) + } + case int32('l'): + if **(**Twchar_t)(__ccgo_up(p)) == int32('l') { + p += 4 + size = Int32FromInt32(SIZE_ll) + } else { + size = int32(SIZE_l) + } + case int32('j'): + size = int32(SIZE_ll) + case int32('z'): + fallthrough + case int32('t'): + size = int32(SIZE_l) + case int32('L'): + size = int32(SIZE_L) + case int32('d'): + fallthrough + case int32('i'): + fallthrough + case int32('o'): + fallthrough + case int32('u'): + fallthrough + case int32('x'): + fallthrough + case int32('a'): + fallthrough + case int32('e'): + fallthrough + case int32('f'): + fallthrough + case int32('g'): + fallthrough + case int32('A'): + fallthrough + case int32('E'): + fallthrough + case int32('F'): + fallthrough + case int32('G'): + fallthrough + case int32('X'): + fallthrough + case int32('s'): + fallthrough + case int32('c'): + fallthrough + case int32('['): + fallthrough + case int32('S'): + fallthrough + case int32('C'): + fallthrough + case int32('p'): + fallthrough + case int32('n'): + p -= 4 + default: + goto fmt_fail + } + t = int32(**(**Twchar_t)(__ccgo_up(p))) + /* Transform S,C -> ls,lc */ + if t&int32(0x2f) == int32(3) { + size = int32(SIZE_l) + t = t | int32(32) + } + if t != int32('n') { + if t != int32('[') && t|int32(32) != int32('c') { + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend && Int32FromUint8(**(**uint8)(__ccgo_up((*TFILE)(unsafe.Pointer(f)).Frpos))) < int32(128) { + v6 = f + 4 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + v4 = uint32(**(**uint8)(__ccgo_up(v5))) + } else { + v4 = Xgetwc(tls, f) + } + v1 = Int32FromUint32(v4) + c = v1 + if !(Xiswspace(tls, Uint32FromInt32(v1)) != 0) { + break + } + pos = pos + 1 + } + } else { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend && Int32FromUint8(**(**uint8)(__ccgo_up((*TFILE)(unsafe.Pointer(f)).Frpos))) < int32(128) { + v6 = f + 4 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + v4 = uint32(**(**uint8)(__ccgo_up(v5))) + } else { + v4 = Xgetwc(tls, f) + } + c = Int32FromUint32(v4) + } + if c < 0 { + goto input_fail + } + if (*TFILE)(unsafe.Pointer(f)).Frend != 0 && Uint32FromInt32(c) < uint32(128) { + v6 = f + 4 + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) - 1 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + _ = **(**uint8)(__ccgo_up(v5)) + } else { + Xungetwc(tls, Uint32FromInt32(c), f) + } + } + switch t { + case int32('n'): + _store_int1(tls, dest, size, Uint64FromInt64(pos)) + /* do not increment match count, etc! */ + goto _2 + case int32('s'): + fallthrough + case int32('c'): + fallthrough + case int32('['): + if t == int32('c') { + if width < int32(1) { + width = int32(1) + } + invert = int32(1) + set = __ccgo_ts + 1499 + } else { + if t == int32('s') { + invert = int32(1) + set = uintptr(unsafe.Pointer(&_spaces1)) + } else { + p += 4 + v5 = p + if **(**Twchar_t)(__ccgo_up(v5)) == int32('^') { + p += 4 + invert = Int32FromInt32(1) + } else { + invert = 0 + } + set = p + if **(**Twchar_t)(__ccgo_up(p)) == int32(']') { + p += 4 + } + for **(**Twchar_t)(__ccgo_up(p)) != int32(']') { + if !(**(**Twchar_t)(__ccgo_up(p)) != 0) { + goto fmt_fail + } + p += 4 + } + } + } + if size == SIZE_def { + v5 = dest + } else { + v5 = uintptr(0) + } + s = v5 + if size == int32(SIZE_l) { + v5 = dest + } else { + v5 = uintptr(0) + } + wcs = v5 + gotmatch = 0 + if width < int32(1) { + width = -int32(1) + } + i = uint32(0) + if alloc != 0 { + if t == int32('c') { + v4 = Uint32FromInt32(width) + uint32(1) + } else { + v4 = uint32(31) + } + k = v4 + if size == int32(SIZE_l) { + wcs = Xmalloc(tls, k*uint32(4)) + if !(wcs != 0) { + goto alloc_fail + } + } else { + s = Xmalloc(tls, k) + if !(s != 0) { + goto alloc_fail + } + } + } + for width != 0 { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend && Int32FromUint8(**(**uint8)(__ccgo_up((*TFILE)(unsafe.Pointer(f)).Frpos))) < int32(128) { + v6 = f + 4 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + v4 = uint32(**(**uint8)(__ccgo_up(v5))) + } else { + v4 = Xgetwc(tls, f) + } + v1 = Int32FromUint32(v4) + c = v1 + if v1 < 0 { + break + } + if _in_set(tls, set, c) == invert { + break + } + if wcs != 0 { + v37 = i + i = i + 1 + **(**Twchar_t)(__ccgo_up(wcs + uintptr(v37)*4)) = c + if alloc != 0 && i == k { + k = k + (k + uint32(1)) + tmp1 = Xrealloc(tls, wcs, k*uint32(4)) + if !(tmp1 != 0) { + goto alloc_fail + } + wcs = tmp1 + } + } else { + if size != int32(SIZE_l) { + if s != 0 { + v5 = s + uintptr(i) + } else { + v5 = bp + 8 + } + l = Xwctomb(tls, v5, c) + if l < 0 { + goto input_fail + } + i = i + Uint32FromInt32(l) + if alloc != 0 && i > k-uint32(4) { + k = k + (k + uint32(1)) + tmp2 = Xrealloc(tls, s, k) + if !(tmp2 != 0) { + goto alloc_fail + } + s = tmp2 + } + } + } + pos = pos + 1 + width = width - BoolInt32(width > 0) + gotmatch = int32(1) + } + if width != 0 { + if (*TFILE)(unsafe.Pointer(f)).Frend != 0 && Uint32FromInt32(c) < uint32(128) { + v6 = f + 4 + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) - 1 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + _ = **(**uint8)(__ccgo_up(v5)) + } else { + Xungetwc(tls, Uint32FromInt32(c), f) + } + if t == int32('c') || !(gotmatch != 0) { + goto match_fail + } + } + if alloc != 0 { + if size == int32(SIZE_l) { + **(**uintptr)(__ccgo_up(dest)) = wcs + } else { + **(**uintptr)(__ccgo_up(dest)) = s + } + } + if t != int32('c') { + if wcs != 0 { + **(**Twchar_t)(__ccgo_up(wcs + uintptr(i)*4)) = 0 + } + if s != 0 { + **(**int8)(__ccgo_up(s + uintptr(i))) = 0 + } + } + case int32('d'): + fallthrough + case int32('i'): + fallthrough + case int32('o'): + fallthrough + case int32('u'): + fallthrough + case int32('x'): + fallthrough + case int32('a'): + fallthrough + case int32('e'): + fallthrough + case int32('f'): + fallthrough + case int32('g'): + fallthrough + case int32('A'): + fallthrough + case int32('E'): + fallthrough + case int32('F'): + fallthrough + case int32('G'): + fallthrough + case int32('X'): + fallthrough + case int32('p'): + if width < int32(1) { + width = 0 + } + Xsnprintf(tls, bp+8, uint32(22), __ccgo_ts+1503, VaList(bp+40, int32(1)+BoolInt32(!(dest != 0)), __ccgo_ts+1521, width, uintptr(unsafe.Pointer(&_size_pfx))+uintptr(size+int32(2))*3, t)) + **(**Toff_t)(__ccgo_up(bp)) = 0 + if dest != 0 { + v5 = dest + } else { + v5 = bp + } + if Xfscanf(tls, f, bp+8, VaList(bp+40, v5, bp)) == -int32(1) { + goto input_fail + } else { + if !(**(**Toff_t)(__ccgo_up(bp)) != 0) { + goto match_fail + } + } + pos = pos + **(**Toff_t)(__ccgo_up(bp)) + default: + goto fmt_fail + } + if dest != 0 { + matches = matches + 1 + } + goto _2 + _2: + ; + p += 4 + } + if !(0 != 0) { + goto _42 + } + goto fmt_fail +fmt_fail: + ; + goto alloc_fail +alloc_fail: + ; + goto input_fail +input_fail: + ; + if !(matches != 0) { + matches = matches - 1 + } + goto match_fail +match_fail: + ; + if alloc != 0 { + Xfree(tls, s) + Xfree(tls, wcs) + } +_42: + ; + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return matches +} + +var _size_pfx = [6][3]int8{ + 0: {'h', 'h'}, + 1: {'h'}, + 2: {}, + 3: {'l'}, + 4: {'L'}, + 5: {'l', 'l'}, +} + +var _spaces1 = [22]Twchar_t{ + 0: int32(' '), + 1: int32('\t'), + 2: int32('\n'), + 3: int32('\r'), + 4: int32(11), + 5: int32(12), + 6: int32(0x0085), + 7: int32(0x2000), + 8: int32(0x2001), + 9: int32(0x2002), + 10: int32(0x2003), + 11: int32(0x2004), + 12: int32(0x2005), + 13: int32(0x2006), + 14: int32(0x2008), + 15: int32(0x2009), + 16: int32(0x200a), + 17: int32(0x2028), + 18: int32(0x2029), + 19: int32(0x205f), + 20: int32(0x3000), +} + +func X__isoc99_vfwscanf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v ap=%v, (%v:)", tls, f, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvfwscanf(tls, f, fmt, ap) +} + +func Xvprintf(tls *TLS, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v ap=%v, (%v:)", tls, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvfprintf(tls, uintptr(unsafe.Pointer(&X__stdout_FILE)), fmt, ap) +} + +func Xvscanf(tls *TLS, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v ap=%v, (%v:)", tls, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvfscanf(tls, uintptr(unsafe.Pointer(&X__stdin_FILE)), fmt, ap) +} + +func X__isoc99_vscanf(tls *TLS, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v ap=%v, (%v:)", tls, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvscanf(tls, fmt, ap) +} + +type Tcookie3 = struct { + Fs uintptr + Fn Tsize_t +} + +func _sn_write(tls *TLS, f uintptr, s uintptr, l Tsize_t) (r Tsize_t) { + var c, v3 uintptr + var k Tsize_t + var v1 uint32 + _, _, _, _ = c, k, v1, v3 + c = (*TFILE)(unsafe.Pointer(f)).Fcookie + if (*Tcookie3)(unsafe.Pointer(c)).Fn < Uint32FromInt32(int32((*TFILE)(unsafe.Pointer(f)).Fwpos)-int32((*TFILE)(unsafe.Pointer(f)).Fwbase)) { + v1 = (*Tcookie3)(unsafe.Pointer(c)).Fn + } else { + v1 = Uint32FromInt32(int32((*TFILE)(unsafe.Pointer(f)).Fwpos) - int32((*TFILE)(unsafe.Pointer(f)).Fwbase)) + } + k = v1 + if k != 0 { + Xmemcpy(tls, (*Tcookie3)(unsafe.Pointer(c)).Fs, (*TFILE)(unsafe.Pointer(f)).Fwbase, k) + **(**uintptr)(__ccgo_up(c)) += uintptr(k) + **(**Tsize_t)(__ccgo_up(c + 4)) -= k + } + if (*Tcookie3)(unsafe.Pointer(c)).Fn < l { + v1 = (*Tcookie3)(unsafe.Pointer(c)).Fn + } else { + v1 = l + } + k = v1 + if k != 0 { + Xmemcpy(tls, (*Tcookie3)(unsafe.Pointer(c)).Fs, s, k) + **(**uintptr)(__ccgo_up(c)) += uintptr(k) + **(**Tsize_t)(__ccgo_up(c + 4)) -= k + } + **(**int8)(__ccgo_up((*Tcookie3)(unsafe.Pointer(c)).Fs)) = 0 + v3 = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Fwbase = v3 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v3 + /* pretend to succeed, even if we discarded extra data */ + return l +} + +func Xvsnprintf(tls *TLS, s uintptr, n Tsize_t, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v fmt=%v ap=%v, (%v:)", tls, s, n, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(160) + defer tls.Free(160) + var v1 uintptr + var v2 uint32 + var _ /* buf at bp+0 */ [1]uint8 + var _ /* c at bp+8 */ Tcookie3 + var _ /* dummy at bp+1 */ [1]int8 + var _ /* f at bp+16 */ TFILE + _, _ = v1, v2 + if n != 0 { + v1 = s + } else { + v1 = bp + 1 + } + if n != 0 { + v2 = n - uint32(1) + } else { + v2 = uint32(0) + } + **(**Tcookie3)(__ccgo_up(bp + 8)) = Tcookie3{ + Fs: v1, + Fn: v2, + } + **(**TFILE)(__ccgo_up(bp + 16)) = TFILE{ + Fwrite: __ccgo_fp(_sn_write), + Fbuf: bp, + Flock: -int32(1), + Flbf: -int32(1), + Fcookie: bp + 8, + } + **(**int8)(__ccgo_up((**(**Tcookie3)(__ccgo_up(bp + 8))).Fs)) = 0 + return Xvfprintf(tls, bp+16, fmt, ap) +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xvsprintf(tls *TLS, s uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v ap=%v, (%v:)", tls, s, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvsnprintf(tls, s, uint32(INT_MAX), fmt, ap) +} + +func _string_read(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + var end, src uintptr + var k Tsize_t + _, _, _ = end, k, src + src = (*TFILE)(unsafe.Pointer(f)).Fcookie + k = len1 + uint32(256) + end = Xmemchr(tls, src, 0, k) + if end != 0 { + k = Uint32FromInt32(int32(end) - int32(src)) + } + if k < len1 { + len1 = k + } + Xmemcpy(tls, buf, src, len1) + (*TFILE)(unsafe.Pointer(f)).Frpos = src + uintptr(len1) + (*TFILE)(unsafe.Pointer(f)).Frend = src + uintptr(k) + (*TFILE)(unsafe.Pointer(f)).Fcookie = src + uintptr(k) + return len1 +} + +func Xvsscanf(tls *TLS, s uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v ap=%v, (%v:)", tls, s, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(144) + defer tls.Free(144) + var _ /* f at bp+0 */ TFILE + **(**TFILE)(__ccgo_up(bp)) = TFILE{ + Fread: __ccgo_fp(_string_read), + Fbuf: s, + Flock: -int32(1), + Fcookie: s, + } + return Xvfscanf(tls, bp, fmt, ap) +} + +func X__isoc99_vsscanf(tls *TLS, s uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v ap=%v, (%v:)", tls, s, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvsscanf(tls, s, fmt, ap) +} + +type Tcookie4 = struct { + Fws uintptr + Fl Tsize_t +} + +func _sw_write(tls *TLS, f uintptr, s uintptr, l Tsize_t) (r Tsize_t) { + var c, v3, v4 uintptr + var i, v1 int32 + var l0 Tsize_t + var v2 bool + _, _, _, _, _, _, _ = c, i, l0, v1, v2, v3, v4 + l0 = l + i = 0 + c = (*TFILE)(unsafe.Pointer(f)).Fcookie + if s != (*TFILE)(unsafe.Pointer(f)).Fwbase && _sw_write(tls, f, (*TFILE)(unsafe.Pointer(f)).Fwbase, Uint32FromInt32(int32((*TFILE)(unsafe.Pointer(f)).Fwpos)-int32((*TFILE)(unsafe.Pointer(f)).Fwbase))) == Uint32FromInt32(-Int32FromInt32(1)) { + return Uint32FromInt32(-Int32FromInt32(1)) + } + for { + if v2 = (*Tcookie4)(unsafe.Pointer(c)).Fl != 0 && l != 0; v2 { + v1 = Xmbtowc(tls, (*Tcookie4)(unsafe.Pointer(c)).Fws, s, l) + i = v1 + } + if !(v2 && v1 >= 0) { + break + } + if !(i != 0) { + i = int32(1) + } + s = s + uintptr(i) + l = l - Uint32FromInt32(i) + (*Tcookie4)(unsafe.Pointer(c)).Fl = (*Tcookie4)(unsafe.Pointer(c)).Fl - 1 + (*Tcookie4)(unsafe.Pointer(c)).Fws += 4 + } + **(**Twchar_t)(__ccgo_up((*Tcookie4)(unsafe.Pointer(c)).Fws)) = 0 + if i < 0 { + v4 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Fwend = v4 + v3 = v4 + (*TFILE)(unsafe.Pointer(f)).Fwbase = v3 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v3 + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) + return Uint32FromInt32(i) + } + (*TFILE)(unsafe.Pointer(f)).Fwend = (*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr((*TFILE)(unsafe.Pointer(f)).Fbuf_size) + v3 = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Fwbase = v3 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v3 + return l0 +} + +func Xvswprintf(tls *TLS, s uintptr, n Tsize_t, fmt uintptr, ap Tva_list) (r1 int32) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v fmt=%v ap=%v, (%v:)", tls, s, n, fmt, ap, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(400) + defer tls.Free(400) + var r, v1 int32 + var _ /* buf at bp+0 */ [256]uint8 + var _ /* c at bp+256 */ Tcookie4 + var _ /* f at bp+264 */ TFILE + _, _ = r, v1 + **(**Tcookie4)(__ccgo_up(bp + 256)) = Tcookie4{ + Fws: s, + Fl: n - uint32(1), + } + **(**TFILE)(__ccgo_up(bp + 264)) = TFILE{ + Fwrite: __ccgo_fp(_sw_write), + Fbuf: bp, + Fbuf_size: uint32(256), + Flock: -int32(1), + Flbf: -int32(1), + Fcookie: bp + 256, + } + if !(n != 0) { + return -int32(1) + } + r = Xvfwprintf(tls, bp+264, fmt, ap) + _sw_write(tls, bp+264, uintptr(0), uint32(0)) + if Uint32FromInt32(r) >= n { + v1 = -int32(1) + } else { + v1 = r + } + return v1 +} + +func _wstring_read(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + bp := tls.Alloc(16) + defer tls.Free(16) + var k Tsize_t + var v1, v2 uintptr + var _ /* src at bp+0 */ uintptr + _, _, _ = k, v1, v2 + **(**uintptr)(__ccgo_up(bp)) = (*TFILE)(unsafe.Pointer(f)).Fcookie + if !(**(**uintptr)(__ccgo_up(bp)) != 0) { + return uint32(0) + } + k = Xwcsrtombs(tls, (*TFILE)(unsafe.Pointer(f)).Fbuf, bp, (*TFILE)(unsafe.Pointer(f)).Fbuf_size, uintptr(0)) + if k == Uint32FromInt32(-Int32FromInt32(1)) { + v1 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Frend = v1 + (*TFILE)(unsafe.Pointer(f)).Frpos = v1 + return uint32(0) + } + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Frend = (*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr(k) + (*TFILE)(unsafe.Pointer(f)).Fcookie = **(**uintptr)(__ccgo_up(bp)) + if !(len1 != 0) || !(k != 0) { + return uint32(0) + } + v2 = f + 4 + v1 = *(*uintptr)(unsafe.Pointer(v2)) + *(*uintptr)(unsafe.Pointer(v2)) = *(*uintptr)(unsafe.Pointer(v2)) + 1 + **(**uint8)(__ccgo_up(buf)) = **(**uint8)(__ccgo_up(v1)) + return uint32(1) +} + +func Xvswscanf(tls *TLS, s uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v ap=%v, (%v:)", tls, s, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(400) + defer tls.Free(400) + var _ /* buf at bp+0 */ [256]uint8 + var _ /* f at bp+256 */ TFILE + **(**TFILE)(__ccgo_up(bp + 256)) = TFILE{ + Fread: __ccgo_fp(_wstring_read), + Fbuf: bp, + Fbuf_size: uint32(256), + Flock: -int32(1), + Fcookie: s, + } + return Xvfwscanf(tls, bp+256, fmt, ap) +} + +func X__isoc99_vswscanf(tls *TLS, s uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v ap=%v, (%v:)", tls, s, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvswscanf(tls, s, fmt, ap) +} + +func Xvwprintf(tls *TLS, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v ap=%v, (%v:)", tls, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvfwprintf(tls, uintptr(unsafe.Pointer(&X__stdout_FILE)), fmt, ap) +} + +func Xvwscanf(tls *TLS, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v ap=%v, (%v:)", tls, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvfwscanf(tls, uintptr(unsafe.Pointer(&X__stdin_FILE)), fmt, ap) +} + +func X__isoc99_vwscanf(tls *TLS, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v ap=%v, (%v:)", tls, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvwscanf(tls, fmt, ap) +} + +func Xwprintf(tls *TLS, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v va=%v, (%v:)", tls, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvwprintf(tls, fmt, ap) + _ = ap + return ret +} + +func Xwscanf(tls *TLS, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v va=%v, (%v:)", tls, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvwscanf(tls, fmt, ap) + _ = ap + return ret +} + +func X__isoc99_wscanf(tls *TLS, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v va=%v, (%v:)", tls, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwscanf(tls, fmt, va) +} + +func Xabs(tls *TLS, a int32) (r int32) { + if __ccgo_strace { + trc("tls=%v a=%v, (%v:)", tls, a, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + _ = v1 + if a > 0 { + v1 = a + } else { + v1 = -a + } + return v1 +} + +func Xatof(tls *TLS, s uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtod(tls, s, uintptr(0)) +} + +func Xatoi(tls *TLS, s uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var n, neg, v1, v2 int32 + var v4 uintptr + _, _, _, _, _ = n, neg, v1, v2, v4 + n = 0 + neg = 0 + for { + v1 = int32(**(**int8)(__ccgo_up(s))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _3 + _3: + if !(v2 != 0) { + break + } + s = s + 1 + } + switch int32(**(**int8)(__ccgo_up(s))) { + case int32('-'): + neg = int32(1) + fallthrough + case int32('+'): + s = s + 1 + } + /* Compute n as a negative number to avoid overflow on INT_MIN */ + for BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(s)))-uint32('0') < uint32(10)) != 0 { + v4 = s + s = s + 1 + n = int32(10)*n - (int32(**(**int8)(__ccgo_up(v4))) - int32('0')) + } + if neg != 0 { + v1 = n + } else { + v1 = -n + } + return v1 +} + +func Xatol(tls *TLS, s uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var n, neg, v1, v2 int32 + var v4 uintptr + _, _, _, _, _ = n, neg, v1, v2, v4 + n = 0 + neg = 0 + for { + v1 = int32(**(**int8)(__ccgo_up(s))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _3 + _3: + if !(v2 != 0) { + break + } + s = s + 1 + } + switch int32(**(**int8)(__ccgo_up(s))) { + case int32('-'): + neg = int32(1) + fallthrough + case int32('+'): + s = s + 1 + } + /* Compute n as a negative number to avoid overflow on LONG_MIN */ + for BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(s)))-uint32('0') < uint32(10)) != 0 { + v4 = s + s = s + 1 + n = int32(10)*n - int32(int32(**(**int8)(__ccgo_up(v4)))-Int32FromUint8('0')) + } + if neg != 0 { + v1 = n + } else { + v1 = -n + } + return v1 +} + +func Xatoll(tls *TLS, s uintptr) (r int64) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var n, v5 int64 + var neg, v1, v2 int32 + var v4 uintptr + _, _, _, _, _, _ = n, neg, v1, v2, v4, v5 + n = 0 + neg = 0 + for { + v1 = int32(**(**int8)(__ccgo_up(s))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _3 + _3: + if !(v2 != 0) { + break + } + s = s + 1 + } + switch int32(**(**int8)(__ccgo_up(s))) { + case int32('-'): + neg = int32(1) + fallthrough + case int32('+'): + s = s + 1 + } + /* Compute n as a negative number to avoid overflow on LLONG_MIN */ + for BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(s)))-uint32('0') < uint32(10)) != 0 { + v4 = s + s = s + 1 + n = int64(10)*n - int64(int32(**(**int8)(__ccgo_up(v4)))-Int32FromUint8('0')) + } + if neg != 0 { + v5 = n + } else { + v5 = -n + } + return v5 +} + +type t__ccgo_fp__Xbsearch_4 = func(*TLS, uintptr, uintptr) int32 + +func Xbsearch(tls *TLS, key uintptr, base uintptr, nel Tsize_t, width Tsize_t, __ccgo_fp_cmp uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v base=%v nel=%v width=%v __ccgo_fp_cmp=%v, (%v:)", tls, key, base, nel, width, __ccgo_fp_cmp, origin(2)) + defer func() { trc("-> %v", r) }() + } + var sign int32 + var try uintptr + _, _ = sign, try + for nel > uint32(0) { + try = base + uintptr(width*(nel/uint32(2))) + sign = (*(*func(*TLS, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cmp})))(tls, key, try) + if sign < 0 { + nel = nel / uint32(2) + } else { + if sign > 0 { + base = try + uintptr(width) + nel = nel - (nel/uint32(2) + uint32(1)) + } else { + return try + } + } + } + return UintptrFromInt32(0) +} + +func Xdiv(tls *TLS, num int32, den int32) (r Tdiv_t) { + if __ccgo_strace { + trc("tls=%v num=%v den=%v, (%v:)", tls, num, den, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Tdiv_t{ + Fquot: num / den, + Frem: num % den, + } +} + +func Xecvt(tls *TLS, x float64, n int32, dp uintptr, sign uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v dp=%v sign=%v, (%v:)", tls, x, n, dp, sign, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var i, j, v1 int32 + var _ /* tmp at bp+0 */ [32]int8 + _, _, _ = i, j, v1 + if Uint32FromInt32(n)-uint32(1) > uint32(15) { + n = int32(15) + } + Xsprintf(tls, bp, __ccgo_ts+1524, VaList(bp+40, n-int32(1), x)) + v1 = BoolInt32(int32((**(**[32]int8)(__ccgo_up(bp)))[0]) == Int32FromUint8('-')) + **(**int32)(__ccgo_up(sign)) = v1 + i = v1 + j = 0 + for { + if !(int32((**(**[32]int8)(__ccgo_up(bp)))[i]) != int32('e')) { + break + } + _buf8[j] = (**(**[32]int8)(__ccgo_up(bp)))[i] + goto _2 + _2: + ; + v1 = i + i = i + 1 + j = j + BoolInt32(int32((**(**[32]int8)(__ccgo_up(bp)))[v1]) != int32('.')) + } + _buf8[j] = 0 + **(**int32)(__ccgo_up(dp)) = Xatoi(tls, bp+uintptr(i)+uintptr(1)) + int32(1) + return uintptr(unsafe.Pointer(&_buf8)) +} + +var _buf8 [16]int8 + +func Xfcvt(tls *TLS, x float64, n int32, dp uintptr, sign uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v dp=%v sign=%v, (%v:)", tls, x, n, dp, sign, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(1536) + defer tls.Free(1536) + var i, lz int32 + var _ /* tmp at bp+0 */ [1500]int8 + _, _ = i, lz + if Uint32FromInt32(n) > uint32(1400) { + n = int32(1400) + } + Xsprintf(tls, bp, __ccgo_ts+1529, VaList(bp+1512, n, x)) + i = BoolInt32(int32((**(**[1500]int8)(__ccgo_up(bp)))[0]) == int32('-')) + if int32((**(**[1500]int8)(__ccgo_up(bp)))[i]) == int32('0') { + lz = Int32FromUint32(Xstrspn(tls, bp+uintptr(i)+uintptr(2), __ccgo_ts+1497)) + } else { + lz = -Int32FromUint32(Xstrcspn(tls, bp+uintptr(i), __ccgo_ts+483)) + } + if n <= lz { + **(**int32)(__ccgo_up(sign)) = i + **(**int32)(__ccgo_up(dp)) = int32(1) + if Uint32FromInt32(n) > uint32(14) { + n = int32(14) + } + return __ccgo_ts + 1534 + UintptrFromInt32(14) - uintptr(n) + } + return Xecvt(tls, x, n-lz, dp, sign) +} + +func Xgcvt(tls *TLS, x float64, n int32, b uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v b=%v, (%v:)", tls, x, n, b, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + Xsprintf(tls, b, __ccgo_ts+1550, VaList(bp+8, n, x)) + return b +} + +func Ximaxabs(tls *TLS, a Tintmax_t) (r Tintmax_t) { + if __ccgo_strace { + trc("tls=%v a=%v, (%v:)", tls, a, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int64 + _ = v1 + if a > 0 { + v1 = a + } else { + v1 = -a + } + return v1 +} + +func Ximaxdiv(tls *TLS, num Tintmax_t, den Tintmax_t) (r Timaxdiv_t) { + if __ccgo_strace { + trc("tls=%v num=%v den=%v, (%v:)", tls, num, den, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Timaxdiv_t{ + Fquot: num / den, + Frem: num % den, + } +} + +func Xlabs(tls *TLS, a int32) (r int32) { + if __ccgo_strace { + trc("tls=%v a=%v, (%v:)", tls, a, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + _ = v1 + if a > 0 { + v1 = a + } else { + v1 = -a + } + return v1 +} + +func Xldiv(tls *TLS, num int32, den int32) (r Tldiv_t) { + if __ccgo_strace { + trc("tls=%v num=%v den=%v, (%v:)", tls, num, den, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Tldiv_t{ + Fquot: num / den, + Frem: num % den, + } +} + +func Xllabs(tls *TLS, a int64) (r int64) { + if __ccgo_strace { + trc("tls=%v a=%v, (%v:)", tls, a, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int64 + _ = v1 + if a > 0 { + v1 = a + } else { + v1 = -a + } + return v1 +} + +func Xlldiv(tls *TLS, num int64, den int64) (r Tlldiv_t) { + if __ccgo_strace { + trc("tls=%v num=%v den=%v, (%v:)", tls, num, den, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Tlldiv_t{ + Fquot: num / den, + Frem: num % den, + } +} + +type Tcmpfun = uintptr + +func _pntz(tls *TLS, p uintptr) (r1 int32) { + var r, v2, v4, v6 int32 + var v1, v5 uint32 + var v8 bool + _, _, _, _, _, _, _ = r, v1, v2, v4, v5, v6, v8 + v1 = uint32(**(**Tsize_t)(__ccgo_up(p)) - Uint32FromInt32(1)) + v2 = _a_ctz_32(tls, v1) + goto _3 +_3: + r = v2 + if v8 = r != 0; !v8 { + v5 = uint32(**(**Tsize_t)(__ccgo_up(p + 1*4))) + v6 = _a_ctz_32(tls, v5) + goto _7 + _7: + v4 = Int32FromUint32(Uint32FromInt32(8)*Uint32FromInt64(4) + Uint32FromInt32(v6)) + r = v4 + } + if v8 || Uint32FromInt32(v4) != Uint32FromInt32(8)*Uint32FromInt64(4) { + return r + } + return 0 +} + +func _cycle(tls *TLS, width Tsize_t, ar uintptr, n int32) { + bp := tls.Alloc(256) + defer tls.Free(256) + var i int32 + var l Tsize_t + var v1 uint32 + var _ /* tmp at bp+0 */ [256]uint8 + _, _, _ = i, l, v1 + if n < int32(2) { + return + } + **(**uintptr)(__ccgo_up(ar + uintptr(n)*4)) = bp + for width != 0 { + if uint32(256) < width { + v1 = uint32(256) + } else { + v1 = width + } + l = v1 + Xmemcpy(tls, **(**uintptr)(__ccgo_up(ar + uintptr(n)*4)), **(**uintptr)(__ccgo_up(ar)), l) + i = 0 + for { + if !(i < n) { + break + } + Xmemcpy(tls, **(**uintptr)(__ccgo_up(ar + uintptr(i)*4)), **(**uintptr)(__ccgo_up(ar + uintptr(i+int32(1))*4)), l) + **(**uintptr)(__ccgo_up(ar + uintptr(i)*4)) += uintptr(l) + goto _2 + _2: + ; + i = i + 1 + } + width = width - l + } +} + +// C documentation +// +// /* shl() and shr() need n > 0 */ +func _shl(tls *TLS, p uintptr, n int32) { + if Uint32FromInt32(n) >= Uint32FromInt32(8)*Uint32FromInt64(4) { + n = Int32FromUint32(uint32(n) - Uint32FromInt32(8)*Uint32FromInt64(4)) + **(**Tsize_t)(__ccgo_up(p + 1*4)) = **(**Tsize_t)(__ccgo_up(p)) + **(**Tsize_t)(__ccgo_up(p)) = uint32(0) + } + **(**Tsize_t)(__ccgo_up(p + 1*4)) <<= Uint32FromInt32(n) + **(**Tsize_t)(__ccgo_up(p + 1*4)) |= **(**Tsize_t)(__ccgo_up(p)) >> (Uint32FromInt64(4)*Uint32FromInt32(8) - Uint32FromInt32(n)) + **(**Tsize_t)(__ccgo_up(p)) <<= Uint32FromInt32(n) +} + +func _shr(tls *TLS, p uintptr, n int32) { + if Uint32FromInt32(n) >= Uint32FromInt32(8)*Uint32FromInt64(4) { + n = Int32FromUint32(uint32(n) - Uint32FromInt32(8)*Uint32FromInt64(4)) + **(**Tsize_t)(__ccgo_up(p)) = **(**Tsize_t)(__ccgo_up(p + 1*4)) + **(**Tsize_t)(__ccgo_up(p + 1*4)) = uint32(0) + } + **(**Tsize_t)(__ccgo_up(p)) >>= Uint32FromInt32(n) + **(**Tsize_t)(__ccgo_up(p)) |= **(**Tsize_t)(__ccgo_up(p + 1*4)) << (Uint32FromInt64(4)*Uint32FromInt32(8) - Uint32FromInt32(n)) + **(**Tsize_t)(__ccgo_up(p + 1*4)) >>= Uint32FromInt32(n) +} + +func _sift(tls *TLS, head uintptr, width Tsize_t, __ccgo_fp_cmp Tcmpfun, arg uintptr, pshift int32, lp uintptr) { + bp := tls.Alloc(240) + defer tls.Free(240) + var i, v1 int32 + var lf, rt uintptr + var _ /* ar at bp+0 */ [57]uintptr + _, _, _, _ = i, lf, rt, v1 + i = int32(1) + (**(**[57]uintptr)(__ccgo_up(bp)))[0] = head + for pshift > int32(1) { + rt = head - uintptr(width) + lf = head - uintptr(width) - uintptr(**(**Tsize_t)(__ccgo_up(lp + uintptr(pshift-int32(2))*4))) + if (*(*func(*TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cmp})))(tls, (**(**[57]uintptr)(__ccgo_up(bp)))[0], lf, arg) >= 0 && (*(*func(*TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cmp})))(tls, (**(**[57]uintptr)(__ccgo_up(bp)))[0], rt, arg) >= 0 { + break + } + if (*(*func(*TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cmp})))(tls, lf, rt, arg) >= 0 { + v1 = i + i = i + 1 + (**(**[57]uintptr)(__ccgo_up(bp)))[v1] = lf + head = lf + pshift = pshift - int32(1) + } else { + v1 = i + i = i + 1 + (**(**[57]uintptr)(__ccgo_up(bp)))[v1] = rt + head = rt + pshift = pshift - int32(2) + } + } + _cycle(tls, width, bp, i) +} + +func _trinkle(tls *TLS, head uintptr, width Tsize_t, __ccgo_fp_cmp Tcmpfun, arg uintptr, pp uintptr, pshift int32, trusty int32, lp uintptr) { + bp := tls.Alloc(240) + defer tls.Free(240) + var i, trail, v1 int32 + var lf, rt, stepson uintptr + var _ /* ar at bp+8 */ [57]uintptr + var _ /* p at bp+0 */ [2]Tsize_t + _, _, _, _, _, _ = i, lf, rt, stepson, trail, v1 + i = int32(1) + (**(**[2]Tsize_t)(__ccgo_up(bp)))[0] = **(**Tsize_t)(__ccgo_up(pp)) + (**(**[2]Tsize_t)(__ccgo_up(bp)))[int32(1)] = **(**Tsize_t)(__ccgo_up(pp + 1*4)) + (**(**[57]uintptr)(__ccgo_up(bp + 8)))[0] = head + for (**(**[2]Tsize_t)(__ccgo_up(bp)))[0] != uint32(1) || (**(**[2]Tsize_t)(__ccgo_up(bp)))[int32(1)] != uint32(0) { + stepson = head - uintptr(**(**Tsize_t)(__ccgo_up(lp + uintptr(pshift)*4))) + if (*(*func(*TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cmp})))(tls, stepson, (**(**[57]uintptr)(__ccgo_up(bp + 8)))[0], arg) <= 0 { + break + } + if !(trusty != 0) && pshift > int32(1) { + rt = head - uintptr(width) + lf = head - uintptr(width) - uintptr(**(**Tsize_t)(__ccgo_up(lp + uintptr(pshift-int32(2))*4))) + if (*(*func(*TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cmp})))(tls, rt, stepson, arg) >= 0 || (*(*func(*TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cmp})))(tls, lf, stepson, arg) >= 0 { + break + } + } + v1 = i + i = i + 1 + (**(**[57]uintptr)(__ccgo_up(bp + 8)))[v1] = stepson + head = stepson + trail = _pntz(tls, bp) + _shr(tls, bp, trail) + pshift = pshift + trail + trusty = 0 + } + if !(trusty != 0) { + _cycle(tls, width, bp+8, i) + _sift(tls, head, width, __ccgo_fp_cmp, arg, pshift, lp) + } +} + +type t__ccgo_fp__X__qsort_r_3 = func(*TLS, uintptr, uintptr, uintptr) int32 + +func X__qsort_r(tls *TLS, base uintptr, nel Tsize_t, width Tsize_t, __ccgo_fp_cmp Tcmpfun, arg uintptr) { + if __ccgo_strace { + trc("tls=%v base=%v nel=%v width=%v __ccgo_fp_cmp=%v arg=%v, (%v:)", tls, base, nel, width, __ccgo_fp_cmp, arg, origin(2)) + } + bp := tls.Alloc(208) + defer tls.Free(208) + var head, high uintptr + var i, size, v2, v3 Tsize_t + var pshift, trail int32 + var _ /* lp at bp+0 */ [48]Tsize_t + var _ /* p at bp+192 */ [2]Tsize_t + _, _, _, _, _, _, _, _ = head, high, i, pshift, size, trail, v2, v3 + size = width * nel + **(**[2]Tsize_t)(__ccgo_up(bp + 192)) = [2]Tsize_t{ + 0: uint32(1), + } + pshift = int32(1) + if !(size != 0) { + return + } + head = base + high = head + uintptr(size) - uintptr(width) + /* Precompute Leonardo numbers, scaled by element width */ + v2 = width + (**(**[48]Tsize_t)(__ccgo_up(bp)))[int32(1)] = v2 + (**(**[48]Tsize_t)(__ccgo_up(bp)))[0] = v2 + i = Uint32FromInt32(2) + for { + v3 = (**(**[48]Tsize_t)(__ccgo_up(bp)))[i-uint32(2)] + (**(**[48]Tsize_t)(__ccgo_up(bp)))[i-uint32(1)] + width + (**(**[48]Tsize_t)(__ccgo_up(bp)))[i] = v3 + if !(v3 < size) { + break + } + goto _1 + _1: + ; + i = i + 1 + } + for head < high { + if (**(**[2]Tsize_t)(__ccgo_up(bp + 192)))[0]&uint32(3) == uint32(3) { + _sift(tls, head, width, __ccgo_fp_cmp, arg, pshift, bp) + _shr(tls, bp+192, int32(2)) + pshift = pshift + int32(2) + } else { + if (**(**[48]Tsize_t)(__ccgo_up(bp)))[pshift-int32(1)] >= Uint32FromInt32(int32(high)-int32(head)) { + _trinkle(tls, head, width, __ccgo_fp_cmp, arg, bp+192, pshift, 0, bp) + } else { + _sift(tls, head, width, __ccgo_fp_cmp, arg, pshift, bp) + } + if pshift == int32(1) { + _shl(tls, bp+192, int32(1)) + pshift = 0 + } else { + _shl(tls, bp+192, pshift-int32(1)) + pshift = int32(1) + } + } + **(**Tsize_t)(__ccgo_up(bp + 192)) |= uint32(1) + head = head + uintptr(width) + } + _trinkle(tls, head, width, __ccgo_fp_cmp, arg, bp+192, pshift, 0, bp) + for pshift != int32(1) || (**(**[2]Tsize_t)(__ccgo_up(bp + 192)))[0] != uint32(1) || (**(**[2]Tsize_t)(__ccgo_up(bp + 192)))[int32(1)] != uint32(0) { + if pshift <= int32(1) { + trail = _pntz(tls, bp+192) + _shr(tls, bp+192, trail) + pshift = pshift + trail + } else { + _shl(tls, bp+192, int32(2)) + pshift = pshift - int32(2) + **(**Tsize_t)(__ccgo_up(bp + 192)) ^= uint32(7) + _shr(tls, bp+192, int32(1)) + _trinkle(tls, head-uintptr((**(**[48]Tsize_t)(__ccgo_up(bp)))[pshift])-uintptr(width), width, __ccgo_fp_cmp, arg, bp+192, pshift+int32(1), int32(1), bp) + _shl(tls, bp+192, int32(1)) + **(**Tsize_t)(__ccgo_up(bp + 192)) |= uint32(1) + _trinkle(tls, head-uintptr(width), width, __ccgo_fp_cmp, arg, bp+192, pshift, int32(1), bp) + } + head = head - uintptr(width) + } +} + +type t__ccgo_fp__Xqsort_r_3 = func(*TLS, uintptr, uintptr, uintptr) int32 + +func Xqsort_r(tls *TLS, base uintptr, nel Tsize_t, width Tsize_t, __ccgo_fp_cmp Tcmpfun, arg uintptr) { + if __ccgo_strace { + trc("tls=%v base=%v nel=%v width=%v __ccgo_fp_cmp=%v arg=%v, (%v:)", tls, base, nel, width, __ccgo_fp_cmp, arg, origin(2)) + } + X__qsort_r(tls, base, nel, width, __ccgo_fp_cmp, arg) +} + +func _wrapper_cmp(tls *TLS, v1 uintptr, v2 uintptr, cmp uintptr) (r int32) { + return (*(*func(*TLS, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{cmp})))(tls, v1, v2) +} + +type t__ccgo_fp__Xqsort_3 = func(*TLS, uintptr, uintptr) int32 + +func Xqsort(tls *TLS, base uintptr, nel Tsize_t, width Tsize_t, __ccgo_fp_cmp Tcmpfun) { + if __ccgo_strace { + trc("tls=%v base=%v nel=%v width=%v __ccgo_fp_cmp=%v, (%v:)", tls, base, nel, width, __ccgo_fp_cmp, origin(2)) + } + X__qsort_r(tls, base, nel, width, __ccgo_fp(_wrapper_cmp), __ccgo_fp_cmp) +} + +func _strtox(tls *TLS, s uintptr, p uintptr, prec int32) (r float64) { + bp := tls.Alloc(144) + defer tls.Free(144) + var cnt Toff_t + var y float64 + var v1 uintptr + var _ /* f at bp+0 */ TFILE + _, _, _ = cnt, y, v1 + v1 = s + (*TFILE)(unsafe.Pointer(bp)).Frpos = v1 + (*TFILE)(unsafe.Pointer(bp)).Fbuf = v1 + (*TFILE)(unsafe.Pointer(bp)).Frend = uintptr(-Int32FromInt32(1)) + X__shlim(tls, bp, int64(Int32FromInt32(0))) + y = X__floatscan(tls, bp, prec, int32(1)) + cnt = (*TFILE)(unsafe.Pointer(bp)).Fshcnt + int64(int32((*TFILE)(unsafe.Pointer(bp)).Frpos)-int32((*TFILE)(unsafe.Pointer(bp)).Fbuf)) + if p != 0 { + if cnt != 0 { + v1 = s + uintptr(cnt) + } else { + v1 = s + } + **(**uintptr)(__ccgo_up(p)) = v1 + } + return y +} + +func Xstrtof(tls *TLS, s uintptr, p uintptr) (r float32) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + return float32(_strtox(tls, s, p, 0)) +} + +func Xstrtod(tls *TLS, s uintptr, p uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _strtox(tls, s, p, int32(1)) +} + +func Xstrtold(tls *TLS, s uintptr, p uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _strtox(tls, s, p, int32(2)) +} + +func _strtox1(tls *TLS, s uintptr, p uintptr, base int32, lim uint64) (r uint64) { + bp := tls.Alloc(144) + defer tls.Free(144) + var cnt Tsize_t + var y uint64 + var v1 uintptr + var _ /* f at bp+0 */ TFILE + _, _, _ = cnt, y, v1 + v1 = s + (*TFILE)(unsafe.Pointer(bp)).Frpos = v1 + (*TFILE)(unsafe.Pointer(bp)).Fbuf = v1 + (*TFILE)(unsafe.Pointer(bp)).Frend = uintptr(-Int32FromInt32(1)) + X__shlim(tls, bp, int64(Int32FromInt32(0))) + y = X__intscan(tls, bp, Uint32FromInt32(base), int32(1), lim) + if p != 0 { + cnt = Uint32FromInt64((*TFILE)(unsafe.Pointer(bp)).Fshcnt + int64(int32((*TFILE)(unsafe.Pointer(bp)).Frpos)-int32((*TFILE)(unsafe.Pointer(bp)).Fbuf))) + **(**uintptr)(__ccgo_up(p)) = s + uintptr(cnt) + } + return y +} + +func Xstrtoull(tls *TLS, s uintptr, p uintptr, base int32) (r uint64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _strtox1(tls, s, p, base, Uint64FromUint64(2)*Uint64FromInt64(0x7fffffffffffffff)+Uint64FromInt32(1)) +} + +func Xstrtoll(tls *TLS, s uintptr, p uintptr, base int32) (r int64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Int64FromUint64(_strtox1(tls, s, p, base, Uint64FromInt64(-Int64FromInt64(0x7fffffffffffffff)-Int64FromInt32(1)))) +} + +func Xstrtoul(tls *TLS, s uintptr, p uintptr, base int32) (r uint32) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uint32(_strtox1(tls, s, p, base, uint64(Uint32FromUint32(2)*Uint32FromInt32(0x7fffffff)+Uint32FromInt32(1)))) +} + +func Xstrtol(tls *TLS, s uintptr, p uintptr, base int32) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Int32FromUint64(_strtox1(tls, s, p, base, uint64(Uint32FromUint32(0)+Uint32FromInt32(-Int32FromInt32(0x7fffffff)-Int32FromInt32(1))))) +} + +func Xstrtoimax(tls *TLS, s uintptr, p uintptr, base int32) (r Tintmax_t) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtoll(tls, s, p, base) +} + +func Xstrtoumax(tls *TLS, s uintptr, p uintptr, base int32) (r Tuintmax_t) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtoull(tls, s, p, base) +} + +func X__strtoimax_internal(tls *TLS, s uintptr, p uintptr, base int32) (r Tintmax_t) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtoimax(tls, s, p, base) +} + +func X__strtol_internal(tls *TLS, s uintptr, p uintptr, base int32) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtol(tls, s, p, base) +} + +func X__strtoll_internal(tls *TLS, s uintptr, p uintptr, base int32) (r int64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtoll(tls, s, p, base) +} + +func X__strtoul_internal(tls *TLS, s uintptr, p uintptr, base int32) (r uint32) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtoul(tls, s, p, base) +} + +func X__strtoull_internal(tls *TLS, s uintptr, p uintptr, base int32) (r uint64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtoull(tls, s, p, base) +} + +func X__strtoumax_internal(tls *TLS, s uintptr, p uintptr, base int32) (r Tuintmax_t) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtoumax(tls, s, p, base) +} + +/* This read function heavily cheats. It knows: + * (1) len will always be 1 + * (2) non-ascii characters don't matter */ + +func _do_read(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + var i Tsize_t + var wcs, v3, v4 uintptr + var v2 int32 + _, _, _, _, _ = i, wcs, v2, v3, v4 + wcs = (*TFILE)(unsafe.Pointer(f)).Fcookie + if !(**(**Twchar_t)(__ccgo_up(wcs)) != 0) { + wcs = __ccgo_ts + 1555 + } + i = uint32(0) + for { + if !(i < (*TFILE)(unsafe.Pointer(f)).Fbuf_size && **(**Twchar_t)(__ccgo_up(wcs + uintptr(i)*4)) != 0) { + break + } + if **(**Twchar_t)(__ccgo_up(wcs + uintptr(i)*4)) < int32(128) { + v2 = **(**Twchar_t)(__ccgo_up(wcs + uintptr(i)*4)) + } else { + v2 = int32('@') + } + **(**uint8)(__ccgo_up((*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr(i))) = Uint8FromInt32(v2) + goto _1 + _1: + ; + i = i + 1 + } + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Frend = (*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr(i) + (*TFILE)(unsafe.Pointer(f)).Fcookie = wcs + uintptr(i)*4 + if i != 0 && len1 != 0 { + v4 = f + 4 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + **(**uint8)(__ccgo_up(buf)) = **(**uint8)(__ccgo_up(v3)) + return uint32(1) + } + return uint32(0) +} + +func _wcstox(tls *TLS, s uintptr, p uintptr, prec int32) (r float64) { + bp := tls.Alloc(208) + defer tls.Free(208) + var cnt Tsize_t + var t, v1, v2 uintptr + var y float64 + var _ /* buf at bp+0 */ [64]uint8 + var _ /* f at bp+64 */ TFILE + _, _, _, _, _ = cnt, t, y, v1, v2 + t = s + **(**TFILE)(__ccgo_up(bp + 64)) = TFILE{} + (**(**TFILE)(__ccgo_up(bp + 64))).Fflags = uint32(0) + v2 = bp + UintptrFromInt32(4) + (**(**TFILE)(__ccgo_up(bp + 64))).Fbuf = v2 + v1 = v2 + (**(**TFILE)(__ccgo_up(bp + 64))).Frend = v1 + (**(**TFILE)(__ccgo_up(bp + 64))).Frpos = v1 + (**(**TFILE)(__ccgo_up(bp + 64))).Fbuf_size = Uint32FromInt64(64) - Uint32FromInt32(4) + AtomicStorePInt32(bp+64+76, -int32(1)) + (**(**TFILE)(__ccgo_up(bp + 64))).Fread = __ccgo_fp(_do_read) + for Xiswspace(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(t)))) != 0 { + t += 4 + } + (**(**TFILE)(__ccgo_up(bp + 64))).Fcookie = t + X__shlim(tls, bp+64, int64(Int32FromInt32(0))) + y = X__floatscan(tls, bp+64, prec, int32(1)) + if p != 0 { + cnt = Uint32FromInt64((*TFILE)(unsafe.Pointer(bp+64)).Fshcnt + int64(int32((*TFILE)(unsafe.Pointer(bp+64)).Frpos)-int32((*TFILE)(unsafe.Pointer(bp+64)).Fbuf))) + if cnt != 0 { + v1 = t + uintptr(cnt)*4 + } else { + v1 = s + } + **(**uintptr)(__ccgo_up(p)) = v1 + } + return y +} + +func Xwcstof(tls *TLS, s uintptr, p uintptr) (r float32) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + return float32(_wcstox(tls, s, p, 0)) +} + +func Xwcstod(tls *TLS, s uintptr, p uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _wcstox(tls, s, p, int32(1)) +} + +func Xwcstold(tls *TLS, s uintptr, p uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _wcstox(tls, s, p, int32(2)) +} + +/* This read function heavily cheats. It knows: + * (1) len will always be 1 + * (2) non-ascii characters don't matter */ + +func _do_read1(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + var i Tsize_t + var wcs, v3, v4 uintptr + var v2 int32 + _, _, _, _, _ = i, wcs, v2, v3, v4 + wcs = (*TFILE)(unsafe.Pointer(f)).Fcookie + if !(**(**Twchar_t)(__ccgo_up(wcs)) != 0) { + wcs = __ccgo_ts + 1555 + } + i = uint32(0) + for { + if !(i < (*TFILE)(unsafe.Pointer(f)).Fbuf_size && **(**Twchar_t)(__ccgo_up(wcs + uintptr(i)*4)) != 0) { + break + } + if **(**Twchar_t)(__ccgo_up(wcs + uintptr(i)*4)) < int32(128) { + v2 = **(**Twchar_t)(__ccgo_up(wcs + uintptr(i)*4)) + } else { + v2 = int32('@') + } + **(**uint8)(__ccgo_up((*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr(i))) = Uint8FromInt32(v2) + goto _1 + _1: + ; + i = i + 1 + } + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Frend = (*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr(i) + (*TFILE)(unsafe.Pointer(f)).Fcookie = wcs + uintptr(i)*4 + if i != 0 && len1 != 0 { + v4 = f + 4 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + **(**uint8)(__ccgo_up(buf)) = **(**uint8)(__ccgo_up(v3)) + return uint32(1) + } + return uint32(0) +} + +func _wcstox1(tls *TLS, s uintptr, p uintptr, base int32, lim uint64) (r uint64) { + bp := tls.Alloc(208) + defer tls.Free(208) + var cnt Tsize_t + var t, v1, v2 uintptr + var y uint64 + var _ /* buf at bp+0 */ [64]uint8 + var _ /* f at bp+64 */ TFILE + _, _, _, _, _ = cnt, t, y, v1, v2 + t = s + **(**TFILE)(__ccgo_up(bp + 64)) = TFILE{} + (**(**TFILE)(__ccgo_up(bp + 64))).Fflags = uint32(0) + v2 = bp + UintptrFromInt32(4) + (**(**TFILE)(__ccgo_up(bp + 64))).Fbuf = v2 + v1 = v2 + (**(**TFILE)(__ccgo_up(bp + 64))).Frend = v1 + (**(**TFILE)(__ccgo_up(bp + 64))).Frpos = v1 + (**(**TFILE)(__ccgo_up(bp + 64))).Fbuf_size = Uint32FromInt64(64) - Uint32FromInt32(4) + AtomicStorePInt32(bp+64+76, -int32(1)) + (**(**TFILE)(__ccgo_up(bp + 64))).Fread = __ccgo_fp(_do_read1) + for Xiswspace(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(t)))) != 0 { + t += 4 + } + (**(**TFILE)(__ccgo_up(bp + 64))).Fcookie = t + X__shlim(tls, bp+64, int64(Int32FromInt32(0))) + y = X__intscan(tls, bp+64, Uint32FromInt32(base), int32(1), lim) + if p != 0 { + cnt = Uint32FromInt64((*TFILE)(unsafe.Pointer(bp+64)).Fshcnt + int64(int32((*TFILE)(unsafe.Pointer(bp+64)).Frpos)-int32((*TFILE)(unsafe.Pointer(bp+64)).Fbuf))) + if cnt != 0 { + v1 = t + uintptr(cnt)*4 + } else { + v1 = s + } + **(**uintptr)(__ccgo_up(p)) = v1 + } + return y +} + +func Xwcstoull(tls *TLS, s uintptr, p uintptr, base int32) (r uint64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _wcstox1(tls, s, p, base, Uint64FromUint64(2)*Uint64FromInt64(0x7fffffffffffffff)+Uint64FromInt32(1)) +} + +func Xwcstoll(tls *TLS, s uintptr, p uintptr, base int32) (r int64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Int64FromUint64(_wcstox1(tls, s, p, base, Uint64FromInt64(-Int64FromInt64(0x7fffffffffffffff)-Int64FromInt32(1)))) +} + +func Xwcstoul(tls *TLS, s uintptr, p uintptr, base int32) (r uint32) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uint32(_wcstox1(tls, s, p, base, uint64(Uint32FromUint32(2)*Uint32FromInt32(0x7fffffff)+Uint32FromInt32(1)))) +} + +func Xwcstol(tls *TLS, s uintptr, p uintptr, base int32) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Int32FromUint64(_wcstox1(tls, s, p, base, uint64(Uint32FromUint32(0)+Uint32FromInt32(-Int32FromInt32(0x7fffffff)-Int32FromInt32(1))))) +} + +func Xwcstoimax(tls *TLS, s uintptr, p uintptr, base int32) (r Tintmax_t) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwcstoll(tls, s, p, base) +} + +func Xwcstoumax(tls *TLS, s uintptr, p uintptr, base int32) (r Tuintmax_t) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwcstoull(tls, s, p, base) +} + +func Xbcmp(tls *TLS, s1 uintptr, s2 uintptr, n Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v s1=%v s2=%v n=%v, (%v:)", tls, s1, s2, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xmemcmp(tls, s1, s2, n) +} + +func Xbcopy(tls *TLS, s1 uintptr, s2 uintptr, n Tsize_t) { + if __ccgo_strace { + trc("tls=%v s1=%v s2=%v n=%v, (%v:)", tls, s1, s2, n, origin(2)) + } + Xmemmove(tls, s2, s1, n) +} + +func Xbzero(tls *TLS, s uintptr, n Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v, (%v:)", tls, s, n, origin(2)) + } + Xmemset(tls, s, 0, n) +} + +func Xexplicit_bzero(tls *TLS, d uintptr, n Tsize_t) { + if __ccgo_strace { + trc("tls=%v d=%v n=%v, (%v:)", tls, d, n, origin(2)) + } + d = Xmemset(tls, d, 0, n) +} + +func Xindex(tls *TLS, s uintptr, c int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrchr(tls, s, c) +} + +const ALIGN1 = -1 +const HIGHS = 0 +const ONES = 0 + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xmemccpy(tls *TLS, dest uintptr, src uintptr, c int32, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v c=%v n=%v, (%v:)", tls, dest, src, c, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var d, s, wd, ws uintptr + var k Tsize_t + var v2 uint8 + var v3 bool + _, _, _, _, _, _, _ = d, k, s, wd, ws, v2, v3 + d = dest + s = src + c = Int32FromUint8(Uint8FromInt32(c)) + if uint32(s)&(Uint32FromInt64(4)-Uint32FromInt32(1)) == uint32(d)&(Uint32FromInt64(4)-Uint32FromInt32(1)) { + for { + if v3 = uint32(s)&(Uint32FromInt64(4)-Uint32FromInt32(1)) != 0 && n != 0; v3 { + v2 = **(**uint8)(__ccgo_up(s)) + **(**uint8)(__ccgo_up(d)) = v2 + } + if !(v3 && Int32FromUint8(v2) != c) { + break + } + goto _1 + _1: + ; + n = n - 1 + s = s + 1 + d = d + 1 + } + if uint32(s)&(Uint32FromInt64(4)-Uint32FromInt32(1)) != 0 { + goto tail + } + k = Uint32FromInt32(-Int32FromInt32(1)) / Uint32FromInt32(UCHAR_MAX) * Uint32FromInt32(c) + wd = d + ws = s + for { + if !(n >= uint32(4) && !((**(**uint32)(__ccgo_up(ws))^k-Uint32FromInt32(-Int32FromInt32(1))/Uint32FromInt32(UCHAR_MAX)) & ^(**(**uint32)(__ccgo_up(ws))^k) & (Uint32FromInt32(-Int32FromInt32(1))/Uint32FromInt32(UCHAR_MAX)*Uint32FromInt32(Int32FromInt32(UCHAR_MAX)/Int32FromInt32(2)+Int32FromInt32(1))) != 0)) { + break + } + **(**uint32)(__ccgo_up(wd)) = **(**uint32)(__ccgo_up(ws)) + goto _4 + _4: + ; + n = n - uint32(4) + ws += 4 + wd += 4 + } + d = wd + s = ws + } + for { + if v3 = n != 0; v3 { + v2 = **(**uint8)(__ccgo_up(s)) + **(**uint8)(__ccgo_up(d)) = v2 + } + if !(v3 && Int32FromUint8(v2) != c) { + break + } + goto _5 + _5: + ; + n = n - 1 + s = s + 1 + d = d + 1 + } + goto tail +tail: + ; + if n != 0 { + return d + uintptr(1) + } + return uintptr(0) +} + +const SS = 0 + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xmemchr(tls *TLS, src uintptr, c int32, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v src=%v c=%v n=%v, (%v:)", tls, src, c, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var k Tsize_t + var s, w, v4 uintptr + _, _, _, _ = k, s, w, v4 + s = src + c = Int32FromUint8(Uint8FromInt32(c)) + for { + if !(uint32(s)&(Uint32FromInt64(4)-Uint32FromInt32(1)) != 0 && n != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(s))) != c) { + break + } + goto _1 + _1: + ; + s = s + 1 + n = n - 1 + } + if n != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(s))) != c { + k = Uint32FromInt32(-Int32FromInt32(1)) / Uint32FromInt32(UCHAR_MAX) * Uint32FromInt32(c) + w = s + for { + if !(n >= Uint32FromInt64(4) && !((**(**uint32)(__ccgo_up(w))^k-Uint32FromInt32(-Int32FromInt32(1))/Uint32FromInt32(UCHAR_MAX)) & ^(**(**uint32)(__ccgo_up(w))^k) & (Uint32FromInt32(-Int32FromInt32(1))/Uint32FromInt32(UCHAR_MAX)*Uint32FromInt32(Int32FromInt32(UCHAR_MAX)/Int32FromInt32(2)+Int32FromInt32(1))) != 0)) { + break + } + goto _2 + _2: + ; + w += 4 + n = n - Uint32FromInt64(4) + } + s = w + } + for { + if !(n != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(s))) != c) { + break + } + goto _3 + _3: + ; + s = s + 1 + n = n - 1 + } + if n != 0 { + v4 = s + } else { + v4 = uintptr(0) + } + return v4 +} + +func Xmemcmp(tls *TLS, vl uintptr, vr uintptr, n Tsize_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v vl=%v vr=%v n=%v, (%v:)", tls, vl, vr, n, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var l, r uintptr + var v2 int32 + _, _, _ = l, r, v2 + l = vl + r = vr + for { + if !(n != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(l))) == Int32FromUint8(**(**uint8)(__ccgo_up(r)))) { + break + } + goto _1 + _1: + ; + n = n - 1 + l = l + 1 + r = r + 1 + } + if n != 0 { + v2 = Int32FromUint8(**(**uint8)(__ccgo_up(l))) - Int32FromUint8(**(**uint8)(__ccgo_up(r))) + } else { + v2 = 0 + } + return v2 +} + +const LS = 0 +const RS = 0 + +func Xmemcpy(tls *TLS, dest uintptr, src uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v n=%v, (%v:)", tls, dest, src, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var d, s, v2, v3 uintptr + var w, x Tuint32_t + _, _, _, _, _, _ = d, s, w, x, v2, v3 + d = dest + s = src + for { + if !(uint32(s)%uint32(4) != 0 && n != 0) { + break + } + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + goto _1 + _1: + ; + n = n - 1 + } + if uint32(d)%uint32(4) == uint32(0) { + for { + if !(n >= uint32(16)) { + break + } + **(**uint32)(__ccgo_up(d + UintptrFromInt32(0))) = **(**uint32)(__ccgo_up(s + UintptrFromInt32(0))) + **(**uint32)(__ccgo_up(d + UintptrFromInt32(4))) = **(**uint32)(__ccgo_up(s + UintptrFromInt32(4))) + **(**uint32)(__ccgo_up(d + UintptrFromInt32(8))) = **(**uint32)(__ccgo_up(s + UintptrFromInt32(8))) + **(**uint32)(__ccgo_up(d + UintptrFromInt32(12))) = **(**uint32)(__ccgo_up(s + UintptrFromInt32(12))) + goto _4 + _4: + ; + s = s + uintptr(16) + d = d + uintptr(16) + n = n - uint32(16) + } + if n&uint32(8) != 0 { + **(**uint32)(__ccgo_up(d + UintptrFromInt32(0))) = **(**uint32)(__ccgo_up(s + UintptrFromInt32(0))) + **(**uint32)(__ccgo_up(d + UintptrFromInt32(4))) = **(**uint32)(__ccgo_up(s + UintptrFromInt32(4))) + d = d + uintptr(8) + s = s + uintptr(8) + } + if n&uint32(4) != 0 { + **(**uint32)(__ccgo_up(d + UintptrFromInt32(0))) = **(**uint32)(__ccgo_up(s + UintptrFromInt32(0))) + d = d + uintptr(4) + s = s + uintptr(4) + } + if n&uint32(2) != 0 { + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + } + if n&uint32(1) != 0 { + **(**uint8)(__ccgo_up(d)) = **(**uint8)(__ccgo_up(s)) + } + return dest + } + if n >= uint32(32) { + switch uint32(d) % Uint32FromInt32(4) { + case uint32(1): + w = **(**uint32)(__ccgo_up(s)) + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + n = n - uint32(3) + for { + if !(n >= uint32(17)) { + break + } + x = **(**uint32)(__ccgo_up(s + UintptrFromInt32(1))) + **(**uint32)(__ccgo_up(d + UintptrFromInt32(0))) = w>>Int32FromInt32(24) | x<>Int32FromInt32(24) | w<>Int32FromInt32(24) | x<>Int32FromInt32(24) | w<= uint32(18)) { + break + } + x = **(**uint32)(__ccgo_up(s + UintptrFromInt32(2))) + **(**uint32)(__ccgo_up(d + UintptrFromInt32(0))) = w>>Int32FromInt32(16) | x<>Int32FromInt32(16) | w<>Int32FromInt32(16) | x<>Int32FromInt32(16) | w<= uint32(19)) { + break + } + x = **(**uint32)(__ccgo_up(s + UintptrFromInt32(3))) + **(**uint32)(__ccgo_up(d + UintptrFromInt32(0))) = w>>Int32FromInt32(8) | x<>Int32FromInt32(8) | w<>Int32FromInt32(8) | x<>Int32FromInt32(8) | w< Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(jp+k)))) { + jp = jp + k + k = uint32(1) + p = jp - ip + } else { + v2 = jp + jp = jp + 1 + ip = v2 + v2 = Uint32FromInt32(1) + p = v2 + k = v2 + } + } + } + ms = ip + p0 = p + /* And with the opposite comparison */ + ip = Uint32FromInt32(-Int32FromInt32(1)) + jp = uint32(0) + v2 = Uint32FromInt32(1) + p = v2 + k = v2 + for jp+k < l { + if Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(ip+k)))) == Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(jp+k)))) { + if k == p { + jp = jp + p + k = uint32(1) + } else { + k = k + 1 + } + } else { + if Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(ip+k)))) < Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(jp+k)))) { + jp = jp + k + k = uint32(1) + p = jp - ip + } else { + v2 = jp + jp = jp + 1 + ip = v2 + v2 = Uint32FromInt32(1) + p = v2 + k = v2 + } + } + } + if ip+uint32(1) > ms+uint32(1) { + ms = ip + } else { + p = p0 + } + /* Periodic needle? */ + if Xmemcmp(tls, n, n+uintptr(p), ms+uint32(1)) != 0 { + mem0 = uint32(0) + if ms > l-ms-uint32(1) { + v8 = ms + } else { + v8 = l - ms - uint32(1) + } + p = v8 + uint32(1) + } else { + mem0 = l - p + } + mem = uint32(0) + /* Search loop */ + for { + /* If remainder of haystack is shorter than needle, done */ + if Uint32FromInt32(int32(z)-int32(h)) < l { + return uintptr(0) + } + /* Check last byte first; advance by shift on mismatch */ + if (**(**[8]Tsize_t)(__ccgo_up(bp)))[uint32(**(**uint8)(__ccgo_up(h + uintptr(l-uint32(1)))))/(Uint32FromInt32(8)*Uint32FromInt64(4))]&(Uint32FromInt32(1)<<(uint32(**(**uint8)(__ccgo_up(h + uintptr(l-uint32(1)))))%(Uint32FromInt32(8)*Uint32FromInt64(4)))) != 0 { + k = l - shift[**(**uint8)(__ccgo_up(h + uintptr(l-uint32(1))))] + if k != 0 { + if k < mem { + k = mem + } + h = h + uintptr(k) + mem = uint32(0) + goto _9 + } + } else { + h = h + uintptr(l) + mem = uint32(0) + goto _9 + } + /* Compare right half */ + if ms+uint32(1) > mem { + v8 = ms + uint32(1) + } else { + v8 = mem + } + k = v8 + for { + if !(k < l && Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(k)))) == Int32FromUint8(**(**uint8)(__ccgo_up(h + uintptr(k))))) { + break + } + goto _10 + _10: + ; + k = k + 1 + } + if k < l { + h = h + uintptr(k-ms) + mem = uint32(0) + goto _9 + } + /* Compare left half */ + k = ms + uint32(1) + for { + if !(k > mem && Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(k-uint32(1))))) == Int32FromUint8(**(**uint8)(__ccgo_up(h + uintptr(k-uint32(1)))))) { + break + } + goto _12 + _12: + ; + k = k - 1 + } + if k <= mem { + return h + } + h = h + uintptr(p) + mem = mem0 + goto _9 + _9: + } + return r +} + +func Xmemmem(tls *TLS, h0 uintptr, k Tsize_t, n0 uintptr, l Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v h0=%v k=%v n0=%v l=%v, (%v:)", tls, h0, k, n0, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + var h, n uintptr + _, _ = h, n + h = h0 + n = n0 + /* Return immediately on empty needle */ + if !(l != 0) { + return h + } + /* Return immediately when needle is longer than haystack */ + if k < l { + return uintptr(0) + } + /* Use faster algorithms for short needles */ + h = Xmemchr(tls, h0, Int32FromUint8(**(**uint8)(__ccgo_up(n))), k) + if !(h != 0) || l == uint32(1) { + return h + } + k = k - Uint32FromInt32(int32(h)-int32(h0)) + if k < l { + return uintptr(0) + } + if l == uint32(2) { + return _twobyte_memmem(tls, h, k, n) + } + if l == uint32(3) { + return _threebyte_memmem(tls, h, k, n) + } + if l == uint32(4) { + return _fourbyte_memmem(tls, h, k, n) + } + return _twoway_memmem(tls, h, h+uintptr(k), n, l) +} + +const WS = 0 + +type TWT = uint32 + +func Xmemmove(tls *TLS, dest uintptr, src uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v n=%v, (%v:)", tls, dest, src, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var d, s, v2, v3 uintptr + var v1 Tsize_t + _, _, _, _, _ = d, s, v1, v2, v3 + d = dest + s = src + if d == s { + return d + } + if uint32(s)-uint32(d)-n <= Uint32FromInt32(-Int32FromInt32(2))*n { + return Xmemcpy(tls, d, s, n) + } + if d < s { + if uint32(s)%Uint32FromInt64(4) == uint32(d)%Uint32FromInt64(4) { + for uint32(d)%Uint32FromInt64(4) != 0 { + v1 = n + n = n - 1 + if !(v1 != 0) { + return dest + } + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**int8)(__ccgo_up(v2)) = **(**int8)(__ccgo_up(v3)) + } + for { + if !(n >= Uint32FromInt64(4)) { + break + } + **(**TWT)(__ccgo_up(d)) = **(**TWT)(__ccgo_up(s)) + goto _4 + _4: + ; + n = n - Uint32FromInt64(4) + d = d + uintptr(Uint32FromInt64(4)) + s = s + uintptr(Uint32FromInt64(4)) + } + } + for { + if !(n != 0) { + break + } + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**int8)(__ccgo_up(v2)) = **(**int8)(__ccgo_up(v3)) + goto _5 + _5: + ; + n = n - 1 + } + } else { + if uint32(s)%Uint32FromInt64(4) == uint32(d)%Uint32FromInt64(4) { + for uint32(d+uintptr(n))%Uint32FromInt64(4) != 0 { + v1 = n + n = n - 1 + if !(v1 != 0) { + return dest + } + **(**int8)(__ccgo_up(d + uintptr(n))) = **(**int8)(__ccgo_up(s + uintptr(n))) + } + for n >= Uint32FromInt64(4) { + n = n - Uint32FromInt64(4) + **(**TWT)(__ccgo_up(d + uintptr(n))) = **(**TWT)(__ccgo_up(s + uintptr(n))) + } + } + for n != 0 { + n = n - 1 + **(**int8)(__ccgo_up(d + uintptr(n))) = **(**int8)(__ccgo_up(s + uintptr(n))) + } + } + return dest +} + +func Xmempcpy(tls *TLS, dest uintptr, src uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v n=%v, (%v:)", tls, dest, src, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xmemcpy(tls, dest, src, n) + uintptr(n) +} + +func X__memrchr(tls *TLS, m uintptr, c int32, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v m=%v c=%v n=%v, (%v:)", tls, m, c, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var s uintptr + var v1 Tsize_t + _, _ = s, v1 + s = m + c = Int32FromUint8(Uint8FromInt32(c)) + for { + v1 = n + n = n - 1 + if !(v1 != 0) { + break + } + if Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(n)))) == c { + return s + uintptr(n) + } + } + return uintptr(0) +} + +func Xmemrchr(tls *TLS, m uintptr, c int32, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v m=%v c=%v n=%v, (%v:)", tls, m, c, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__memrchr(tls, m, c, n) +} + +func Xmemset(tls *TLS, dest uintptr, c int32, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v dest=%v c=%v n=%v, (%v:)", tls, dest, c, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var c32 uint32 + var c64 uint64 + var k Tsize_t + var s uintptr + _, _, _, _ = c32, c64, k, s + s = dest + /* Fill head and tail with minimal branching. Each + * conditional ensures that all the subsequently used + * offsets are well-defined and in the dest region. */ + if !(n != 0) { + return dest + } + **(**uint8)(__ccgo_up(s)) = Uint8FromInt32(c) + **(**uint8)(__ccgo_up(s + uintptr(n-uint32(1)))) = Uint8FromInt32(c) + if n <= uint32(2) { + return dest + } + **(**uint8)(__ccgo_up(s + 1)) = Uint8FromInt32(c) + **(**uint8)(__ccgo_up(s + 2)) = Uint8FromInt32(c) + **(**uint8)(__ccgo_up(s + uintptr(n-uint32(2)))) = Uint8FromInt32(c) + **(**uint8)(__ccgo_up(s + uintptr(n-uint32(3)))) = Uint8FromInt32(c) + if n <= uint32(6) { + return dest + } + **(**uint8)(__ccgo_up(s + 3)) = Uint8FromInt32(c) + **(**uint8)(__ccgo_up(s + uintptr(n-uint32(4)))) = Uint8FromInt32(c) + if n <= uint32(8) { + return dest + } + /* Advance pointer to align it at a 4-byte boundary, + * and truncate n to a multiple of 4. The previous code + * already took care of any head/tail that get cut off + * by the alignment. */ + k = -uint32(s) & uint32(3) + s = s + uintptr(k) + n = n - k + n = n & Uint32FromInt32(-Int32FromInt32(4)) + c32 = Uint32FromInt32(-Int32FromInt32(1)) / Uint32FromInt32(255) * uint32(Uint8FromInt32(c)) + /* In preparation to copy 32 bytes at a time, aligned on + * an 8-byte bounary, fill head/tail up to 28 bytes each. + * As in the initial byte-based head/tail fill, each + * conditional below ensures that the subsequent offsets + * are valid (e.g. !(n<=24) implies n>=28). */ + **(**uint32)(__ccgo_up(s + UintptrFromInt32(0))) = c32 + **(**uint32)(__ccgo_up(s + uintptr(n) - UintptrFromInt32(4))) = c32 + if n <= uint32(8) { + return dest + } + **(**uint32)(__ccgo_up(s + UintptrFromInt32(4))) = c32 + **(**uint32)(__ccgo_up(s + UintptrFromInt32(8))) = c32 + **(**uint32)(__ccgo_up(s + uintptr(n) - UintptrFromInt32(12))) = c32 + **(**uint32)(__ccgo_up(s + uintptr(n) - UintptrFromInt32(8))) = c32 + if n <= uint32(24) { + return dest + } + **(**uint32)(__ccgo_up(s + UintptrFromInt32(12))) = c32 + **(**uint32)(__ccgo_up(s + UintptrFromInt32(16))) = c32 + **(**uint32)(__ccgo_up(s + UintptrFromInt32(20))) = c32 + **(**uint32)(__ccgo_up(s + UintptrFromInt32(24))) = c32 + **(**uint32)(__ccgo_up(s + uintptr(n) - UintptrFromInt32(28))) = c32 + **(**uint32)(__ccgo_up(s + uintptr(n) - UintptrFromInt32(24))) = c32 + **(**uint32)(__ccgo_up(s + uintptr(n) - UintptrFromInt32(20))) = c32 + **(**uint32)(__ccgo_up(s + uintptr(n) - UintptrFromInt32(16))) = c32 + /* Align to a multiple of 8 so we can fill 64 bits at a time, + * and avoid writing the same bytes twice as much as is + * practical without introducing additional branching. */ + k = uint32(24) + uint32(s)&uint32(4) + s = s + uintptr(k) + n = n - k + /* If this loop is reached, 28 tail bytes have already been + * filled, so any remainder when n drops below 32 can be + * safely ignored. */ + c64 = uint64(c32) | uint64(c32)<= uint32(32)) { + break + } + **(**uint64)(__ccgo_up(s + UintptrFromInt32(0))) = c64 + **(**uint64)(__ccgo_up(s + UintptrFromInt32(8))) = c64 + **(**uint64)(__ccgo_up(s + UintptrFromInt32(16))) = c64 + **(**uint64)(__ccgo_up(s + UintptrFromInt32(24))) = c64 + goto _1 + _1: + ; + n = n - uint32(32) + s = s + uintptr(32) + } + return dest +} + +func Xrindex(tls *TLS, s uintptr, c int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrrchr(tls, s, c) +} + +const ALIGN2 = 0 + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func X__stpcpy(tls *TLS, d uintptr, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v, (%v:)", tls, d, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var wd, ws, v4, v5 uintptr + var v2 int8 + _, _, _, _, _ = wd, ws, v2, v4, v5 + if uint32(s)%Uint32FromInt64(4) == uint32(d)%Uint32FromInt64(4) { + for { + if !(uint32(s)%Uint32FromInt64(4) != 0) { + break + } + v2 = **(**int8)(__ccgo_up(s)) + **(**int8)(__ccgo_up(d)) = v2 + if !(v2 != 0) { + return d + } + goto _1 + _1: + ; + s = s + 1 + d = d + 1 + } + wd = d + ws = s + for { + if !!((**(**uint32)(__ccgo_up(ws))-Uint32FromInt32(-Int32FromInt32(1))/Uint32FromInt32(UCHAR_MAX)) & ^**(**uint32)(__ccgo_up(ws)) & (Uint32FromInt32(-Int32FromInt32(1))/Uint32FromInt32(UCHAR_MAX)*Uint32FromInt32(Int32FromInt32(UCHAR_MAX)/Int32FromInt32(2)+Int32FromInt32(1))) != 0) { + break + } + goto _3 + _3: + ; + v4 = wd + wd += 4 + v5 = ws + ws += 4 + **(**uint32)(__ccgo_up(v4)) = **(**uint32)(__ccgo_up(v5)) + } + d = wd + s = ws + } + for { + v2 = **(**int8)(__ccgo_up(s)) + **(**int8)(__ccgo_up(d)) = v2 + if !(v2 != 0) { + break + } + goto _6 + _6: + ; + s = s + 1 + d = d + 1 + } + return d +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xstpcpy(tls *TLS, d uintptr, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v, (%v:)", tls, d, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__stpcpy(tls, d, s) +} + +const ALIGN3 = -1 + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func X__stpncpy(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var wd, ws uintptr + var v2 int8 + var v3 bool + _, _, _, _ = wd, ws, v2, v3 + if uint32(s)&(Uint32FromInt64(4)-Uint32FromInt32(1)) == uint32(d)&(Uint32FromInt64(4)-Uint32FromInt32(1)) { + for { + if v3 = uint32(s)&(Uint32FromInt64(4)-Uint32FromInt32(1)) != 0 && n != 0; v3 { + v2 = **(**int8)(__ccgo_up(s)) + **(**int8)(__ccgo_up(d)) = v2 + } + if !(v3 && v2 != 0) { + break + } + goto _1 + _1: + ; + n = n - 1 + s = s + 1 + d = d + 1 + } + if !(n != 0) || !(**(**int8)(__ccgo_up(s)) != 0) { + goto tail + } + wd = d + ws = s + for { + if !(n >= uint32(4) && !((**(**uint32)(__ccgo_up(ws))-Uint32FromInt32(-Int32FromInt32(1))/Uint32FromInt32(UCHAR_MAX)) & ^**(**uint32)(__ccgo_up(ws)) & (Uint32FromInt32(-Int32FromInt32(1))/Uint32FromInt32(UCHAR_MAX)*Uint32FromInt32(Int32FromInt32(UCHAR_MAX)/Int32FromInt32(2)+Int32FromInt32(1))) != 0)) { + break + } + **(**uint32)(__ccgo_up(wd)) = **(**uint32)(__ccgo_up(ws)) + goto _4 + _4: + ; + n = n - uint32(4) + ws += 4 + wd += 4 + } + d = wd + s = ws + } + for { + if v3 = n != 0; v3 { + v2 = **(**int8)(__ccgo_up(s)) + **(**int8)(__ccgo_up(d)) = v2 + } + if !(v3 && v2 != 0) { + break + } + goto _5 + _5: + ; + n = n - 1 + s = s + 1 + d = d + 1 + } + goto tail +tail: + ; + Xmemset(tls, d, 0, n) + return d +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xstpncpy(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__stpncpy(tls, d, s, n) +} + +func Xstrcasecmp(tls *TLS, _l uintptr, _r uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v _l=%v _r=%v, (%v:)", tls, _l, _r, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var l, r uintptr + _, _ = l, r + l = _l + r = _r + for { + if !(**(**uint8)(__ccgo_up(l)) != 0 && **(**uint8)(__ccgo_up(r)) != 0 && (Int32FromUint8(**(**uint8)(__ccgo_up(l))) == Int32FromUint8(**(**uint8)(__ccgo_up(r))) || Xtolower(tls, Int32FromUint8(**(**uint8)(__ccgo_up(l)))) == Xtolower(tls, Int32FromUint8(**(**uint8)(__ccgo_up(r)))))) { + break + } + goto _1 + _1: + ; + l = l + 1 + r = r + 1 + } + return Xtolower(tls, Int32FromUint8(**(**uint8)(__ccgo_up(l)))) - Xtolower(tls, Int32FromUint8(**(**uint8)(__ccgo_up(r)))) +} + +func X__strcasecmp_l(tls *TLS, l uintptr, r uintptr, loc Tlocale_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v loc=%v, (%v:)", tls, l, r, loc, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return Xstrcasecmp(tls, l, r) +} + +func Xstrcasecmp_l(tls *TLS, l uintptr, r uintptr, loc Tlocale_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v loc=%v, (%v:)", tls, l, r, loc, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return X__strcasecmp_l(tls, l, r, loc) +} + +func Xstrcasestr(tls *TLS, h uintptr, n uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v h=%v n=%v, (%v:)", tls, h, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l Tsize_t + _ = l + l = _strlen(tls, n) + for { + if !(**(**int8)(__ccgo_up(h)) != 0) { + break + } + if !(Xstrncasecmp(tls, h, n, l) != 0) { + return h + } + goto _1 + _1: + ; + h = h + 1 + } + return uintptr(0) +} + +func Xstrcat(tls *TLS, dest uintptr, src uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v, (%v:)", tls, dest, src, origin(2)) + defer func() { trc("-> %v", r) }() + } + Xstrcpy(tls, dest+uintptr(_strlen(tls, dest)), src) + return dest +} + +func Xstrchr(tls *TLS, s uintptr, c int32) (r1 uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v1 uintptr + _, _ = r, v1 + r = X__strchrnul(tls, s, c) + if Int32FromUint8(**(**uint8)(__ccgo_up(r))) == Int32FromUint8(Uint8FromInt32(c)) { + v1 = r + } else { + v1 = uintptr(0) + } + return v1 +} + +const ALIGN4 = 0 + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func X__strchrnul(tls *TLS, s uintptr, c int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + var k Tsize_t + var w uintptr + _, _ = k, w + c = Int32FromUint8(Uint8FromInt32(c)) + if !(c != 0) { + return s + uintptr(_strlen(tls, s)) + } + for { + if !(uint32(s)%Uint32FromInt64(4) != 0) { + break + } + if !(**(**int8)(__ccgo_up(s)) != 0) || Int32FromUint8(**(**uint8)(__ccgo_up(s))) == c { + return s + } + goto _1 + _1: + ; + s = s + 1 + } + k = Uint32FromInt32(-Int32FromInt32(1)) / Uint32FromInt32(UCHAR_MAX) * Uint32FromInt32(c) + w = s + for { + if !(!((**(**uint32)(__ccgo_up(w))-Uint32FromInt32(-Int32FromInt32(1))/Uint32FromInt32(UCHAR_MAX)) & ^**(**uint32)(__ccgo_up(w)) & (Uint32FromInt32(-Int32FromInt32(1))/Uint32FromInt32(UCHAR_MAX)*Uint32FromInt32(Int32FromInt32(UCHAR_MAX)/Int32FromInt32(2)+Int32FromInt32(1))) != 0) && !((**(**uint32)(__ccgo_up(w))^k-Uint32FromInt32(-Int32FromInt32(1))/Uint32FromInt32(UCHAR_MAX)) & ^(**(**uint32)(__ccgo_up(w))^k) & (Uint32FromInt32(-Int32FromInt32(1))/Uint32FromInt32(UCHAR_MAX)*Uint32FromInt32(Int32FromInt32(UCHAR_MAX)/Int32FromInt32(2)+Int32FromInt32(1))) != 0)) { + break + } + goto _2 + _2: + ; + w += 4 + } + s = w + for { + if !(**(**int8)(__ccgo_up(s)) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(s))) != c) { + break + } + goto _3 + _3: + ; + s = s + 1 + } + return s +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xstrchrnul(tls *TLS, s uintptr, c int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__strchrnul(tls, s, c) +} + +func Xstrcmp(tls *TLS, l uintptr, r uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v, (%v:)", tls, l, r, origin(2)) + defer func() { trc("-> %v", r1) }() + } + for { + if !(int32(**(**int8)(__ccgo_up(l))) == int32(**(**int8)(__ccgo_up(r))) && **(**int8)(__ccgo_up(l)) != 0) { + break + } + goto _1 + _1: + ; + l = l + 1 + r = r + 1 + } + return Int32FromUint8(**(**uint8)(__ccgo_up(l))) - Int32FromUint8(**(**uint8)(__ccgo_up(r))) +} + +func Xstrcpy(tls *TLS, dest uintptr, src uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v, (%v:)", tls, dest, src, origin(2)) + defer func() { trc("-> %v", r) }() + } + X__stpcpy(tls, dest, src) + return dest +} + +func Xstrcspn(tls *TLS, s uintptr, c uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var a, v2 uintptr + var v3 bool + var _ /* byteset at bp+0 */ [8]Tsize_t + _, _, _ = a, v2, v3 + a = s + if !(**(**int8)(__ccgo_up(c)) != 0) || !(**(**int8)(__ccgo_up(c + 1)) != 0) { + return Uint32FromInt32(int32(X__strchrnul(tls, s, int32(**(**int8)(__ccgo_up(c))))) - int32(a)) + } + Xmemset(tls, bp, 0, uint32(32)) + for { + if v3 = **(**int8)(__ccgo_up(c)) != 0; v3 { + v2 = bp + uintptr(uint32(**(**uint8)(__ccgo_up(c)))/(Uint32FromInt32(8)*Uint32FromInt64(4)))*4 + *(*Tsize_t)(unsafe.Pointer(v2)) |= Uint32FromInt32(1) << (uint32(**(**uint8)(__ccgo_up(c))) % (Uint32FromInt32(8) * Uint32FromInt64(4))) + } + if !(v3 && *(*Tsize_t)(unsafe.Pointer(v2)) != 0) { + break + } + goto _1 + _1: + ; + c = c + 1 + } + for { + if !(**(**int8)(__ccgo_up(s)) != 0 && !((**(**[8]Tsize_t)(__ccgo_up(bp)))[uint32(**(**uint8)(__ccgo_up(s)))/(Uint32FromInt32(8)*Uint32FromInt64(4))]&(Uint32FromInt32(1)<<(uint32(**(**uint8)(__ccgo_up(s)))%(Uint32FromInt32(8)*Uint32FromInt64(4)))) != 0)) { + break + } + goto _4 + _4: + ; + s = s + 1 + } + return Uint32FromInt32(int32(s) - int32(a)) +} + +func Xstrdup(tls *TLS, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var d uintptr + var l Tsize_t + _, _ = d, l + l = _strlen(tls, s) + d = Xmalloc(tls, l+uint32(1)) + if !(d != 0) { + return UintptrFromInt32(0) + } + return Xmemcpy(tls, d, s, l+uint32(1)) +} + +func Xstrerror_r(tls *TLS, err int32, buf uintptr, buflen Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v err=%v buf=%v buflen=%v, (%v:)", tls, err, buf, buflen, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l Tsize_t + var msg uintptr + _, _ = l, msg + msg = Xstrerror(tls, err) + l = _strlen(tls, msg) + if l >= buflen { + if buflen != 0 { + Xmemcpy(tls, buf, msg, buflen-uint32(1)) + **(**int8)(__ccgo_up(buf + uintptr(buflen-uint32(1)))) = 0 + } + return int32(ERANGE) + } + Xmemcpy(tls, buf, msg, l+uint32(1)) + return 0 +} + +func X__xpg_strerror_r(tls *TLS, err int32, buf uintptr, buflen Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v err=%v buf=%v buflen=%v, (%v:)", tls, err, buf, buflen, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrerror_r(tls, err, buf, buflen) +} + +func Xstrlcat(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l Tsize_t + _ = l + l = Xstrnlen(tls, d, n) + if l == n { + return l + _strlen(tls, s) + } + return l + Xstrlcpy(tls, d+uintptr(l), s, n-l) +} + +const ALIGN5 = -1 + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xstrlcpy(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var d0, wd, ws uintptr + var v1 Tsize_t + var v3 int8 + var v4 bool + _, _, _, _, _, _ = d0, wd, ws, v1, v3, v4 + d0 = d + v1 = n + n = n - 1 + if !(v1 != 0) { + goto finish + } + if uint32(s)&(Uint32FromInt64(4)-Uint32FromInt32(1)) == uint32(d)&(Uint32FromInt64(4)-Uint32FromInt32(1)) { + for { + if v4 = uint32(s)&(Uint32FromInt64(4)-Uint32FromInt32(1)) != 0 && n != 0; v4 { + v3 = **(**int8)(__ccgo_up(s)) + **(**int8)(__ccgo_up(d)) = v3 + } + if !(v4 && v3 != 0) { + break + } + goto _2 + _2: + ; + n = n - 1 + s = s + 1 + d = d + 1 + } + if n != 0 && **(**int8)(__ccgo_up(s)) != 0 { + wd = d + ws = s + for { + if !(n >= uint32(4) && !((**(**uint32)(__ccgo_up(ws))-Uint32FromInt32(-Int32FromInt32(1))/Uint32FromInt32(UCHAR_MAX)) & ^**(**uint32)(__ccgo_up(ws)) & (Uint32FromInt32(-Int32FromInt32(1))/Uint32FromInt32(UCHAR_MAX)*Uint32FromInt32(Int32FromInt32(UCHAR_MAX)/Int32FromInt32(2)+Int32FromInt32(1))) != 0)) { + break + } + **(**Tsize_t)(__ccgo_up(wd)) = **(**uint32)(__ccgo_up(ws)) + goto _5 + _5: + ; + n = n - uint32(4) + ws += 4 + wd += 4 + } + d = wd + s = ws + } + } + for { + if v4 = n != 0; v4 { + v3 = **(**int8)(__ccgo_up(s)) + **(**int8)(__ccgo_up(d)) = v3 + } + if !(v4 && v3 != 0) { + break + } + goto _6 + _6: + ; + n = n - 1 + s = s + 1 + d = d + 1 + } + **(**int8)(__ccgo_up(d)) = 0 + goto finish +finish: + ; + return Uint32FromInt32(int32(d)-int32(d0)) + _strlen(tls, s) + return r +} + +const ALIGN6 = 0 + +func Xstrncasecmp(tls *TLS, _l uintptr, _r uintptr, n Tsize_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v _l=%v _r=%v n=%v, (%v:)", tls, _l, _r, n, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var l, r uintptr + var v1 Tsize_t + _, _, _ = l, r, v1 + l = _l + r = _r + v1 = n + n = n - 1 + if !(v1 != 0) { + return 0 + } + for { + if !(**(**uint8)(__ccgo_up(l)) != 0 && **(**uint8)(__ccgo_up(r)) != 0 && n != 0 && (Int32FromUint8(**(**uint8)(__ccgo_up(l))) == Int32FromUint8(**(**uint8)(__ccgo_up(r))) || Xtolower(tls, Int32FromUint8(**(**uint8)(__ccgo_up(l)))) == Xtolower(tls, Int32FromUint8(**(**uint8)(__ccgo_up(r)))))) { + break + } + goto _2 + _2: + ; + l = l + 1 + r = r + 1 + n = n - 1 + } + return Xtolower(tls, Int32FromUint8(**(**uint8)(__ccgo_up(l)))) - Xtolower(tls, Int32FromUint8(**(**uint8)(__ccgo_up(r)))) +} + +func X__strncasecmp_l(tls *TLS, l uintptr, r uintptr, n Tsize_t, loc Tlocale_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v n=%v loc=%v, (%v:)", tls, l, r, n, loc, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return Xstrncasecmp(tls, l, r, n) +} + +func Xstrncasecmp_l(tls *TLS, l uintptr, r uintptr, n Tsize_t, loc Tlocale_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v n=%v loc=%v, (%v:)", tls, l, r, n, loc, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return X__strncasecmp_l(tls, l, r, n, loc) +} + +func Xstrncat(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, v1, v2 uintptr + _, _, _ = a, v1, v2 + a = d + d = d + uintptr(_strlen(tls, d)) + for n != 0 && **(**int8)(__ccgo_up(s)) != 0 { + n = n - 1 + v1 = d + d = d + 1 + v2 = s + s = s + 1 + **(**int8)(__ccgo_up(v1)) = **(**int8)(__ccgo_up(v2)) + } + v1 = d + d = d + 1 + **(**int8)(__ccgo_up(v1)) = 0 + return a +} + +func Xstrncmp(tls *TLS, _l uintptr, _r uintptr, n Tsize_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v _l=%v _r=%v n=%v, (%v:)", tls, _l, _r, n, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var l, r uintptr + var v1 Tsize_t + _, _, _ = l, r, v1 + l = _l + r = _r + v1 = n + n = n - 1 + if !(v1 != 0) { + return 0 + } + for { + if !(**(**uint8)(__ccgo_up(l)) != 0 && **(**uint8)(__ccgo_up(r)) != 0 && n != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(l))) == Int32FromUint8(**(**uint8)(__ccgo_up(r)))) { + break + } + goto _2 + _2: + ; + l = l + 1 + r = r + 1 + n = n - 1 + } + return Int32FromUint8(**(**uint8)(__ccgo_up(l))) - Int32FromUint8(**(**uint8)(__ccgo_up(r))) +} + +func Xstrncpy(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + X__stpncpy(tls, d, s, n) + return d +} + +func Xstrndup(tls *TLS, s uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v, (%v:)", tls, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var d uintptr + var l Tsize_t + _, _ = d, l + l = Xstrnlen(tls, s, n) + d = Xmalloc(tls, l+uint32(1)) + if !(d != 0) { + return UintptrFromInt32(0) + } + Xmemcpy(tls, d, s, l) + **(**int8)(__ccgo_up(d + uintptr(l))) = 0 + return d +} + +func Xstrnlen(tls *TLS, s uintptr, n Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v, (%v:)", tls, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var p uintptr + var v1 uint32 + _, _ = p, v1 + p = Xmemchr(tls, s, 0, n) + if p != 0 { + v1 = Uint32FromInt32(int32(p) - int32(s)) + } else { + v1 = n + } + return v1 +} + +func Xstrpbrk(tls *TLS, s uintptr, b uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v b=%v, (%v:)", tls, s, b, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 uintptr + _ = v1 + s = s + uintptr(Xstrcspn(tls, s, b)) + if **(**int8)(__ccgo_up(s)) != 0 { + v1 = s + } else { + v1 = uintptr(0) + } + return v1 +} + +func Xstrrchr(tls *TLS, s uintptr, c int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__memrchr(tls, s, c, _strlen(tls, s)+uint32(1)) +} + +func Xstrsep(tls *TLS, str uintptr, sep uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v str=%v sep=%v, (%v:)", tls, str, sep, origin(2)) + defer func() { trc("-> %v", r) }() + } + var end, s, v1 uintptr + _, _, _ = end, s, v1 + s = **(**uintptr)(__ccgo_up(str)) + if !(s != 0) { + return UintptrFromInt32(0) + } + end = s + uintptr(Xstrcspn(tls, s, sep)) + if **(**int8)(__ccgo_up(end)) != 0 { + v1 = end + end = end + 1 + **(**int8)(__ccgo_up(v1)) = 0 + } else { + end = uintptr(0) + } + **(**uintptr)(__ccgo_up(str)) = end + return s +} + +var _strings = [671]int8{'U', 'n', 'k', 'n', 'o', 'w', 'n', ' ', 's', 'i', 'g', 'n', 'a', 'l', 0, 'H', 'a', 'n', 'g', 'u', 'p', 0, 'I', 'n', 't', 'e', 'r', 'r', 'u', 'p', 't', 0, 'Q', 'u', 'i', 't', 0, 'I', 'l', 'l', 'e', 'g', 'a', 'l', ' ', 'i', 'n', 's', 't', 'r', 'u', 'c', 't', 'i', 'o', 'n', 0, 'T', 'r', 'a', 'c', 'e', '/', 'b', 'r', 'e', 'a', 'k', 'p', 'o', 'i', 'n', 't', ' ', 't', 'r', 'a', 'p', 0, 'A', 'b', 'o', 'r', 't', 'e', 'd', 0, 'B', 'u', 's', ' ', 'e', 'r', 'r', 'o', 'r', 0, 'A', 'r', 'i', 't', 'h', 'm', 'e', 't', 'i', 'c', ' ', 'e', 'x', 'c', 'e', 'p', 't', 'i', 'o', 'n', 0, 'K', 'i', 'l', 'l', 'e', 'd', 0, 'U', 's', 'e', 'r', ' ', 'd', 'e', 'f', 'i', 'n', 'e', 'd', ' ', 's', 'i', 'g', 'n', 'a', 'l', ' ', '1', 0, 'S', 'e', 'g', 'm', 'e', 'n', 't', 'a', 't', 'i', 'o', 'n', ' ', 'f', 'a', 'u', 'l', 't', 0, 'U', 's', 'e', 'r', ' ', 'd', 'e', 'f', 'i', 'n', 'e', 'd', ' ', 's', 'i', 'g', 'n', 'a', 'l', ' ', '2', 0, 'B', 'r', 'o', 'k', 'e', 'n', ' ', 'p', 'i', 'p', 'e', 0, 'A', 'l', 'a', 'r', 'm', ' ', 'c', 'l', 'o', 'c', 'k', 0, 'T', 'e', 'r', 'm', 'i', 'n', 'a', 't', 'e', 'd', 0, 'S', 't', 'a', 'c', 'k', ' ', 'f', 'a', 'u', 'l', 't', 0, 'C', 'h', 'i', 'l', 'd', ' ', 'p', 'r', 'o', 'c', 'e', 's', 's', ' ', 's', 't', 'a', 't', 'u', 's', 0, 'C', 'o', 'n', 't', 'i', 'n', 'u', 'e', 'd', 0, 'S', 't', 'o', 'p', 'p', 'e', 'd', ' ', '(', 's', 'i', 'g', 'n', 'a', 'l', ')', 0, 'S', 't', 'o', 'p', 'p', 'e', 'd', 0, 'S', 't', 'o', 'p', 'p', 'e', 'd', ' ', '(', 't', 't', 'y', ' ', 'i', 'n', 'p', 'u', 't', ')', 0, 'S', 't', 'o', 'p', 'p', 'e', 'd', ' ', '(', 't', 't', 'y', ' ', 'o', 'u', 't', 'p', 'u', 't', ')', 0, 'U', 'r', 'g', 'e', 'n', 't', ' ', 'I', '/', 'O', ' ', 'c', 'o', 'n', 'd', 'i', 't', 'i', 'o', 'n', 0, 'C', 'P', 'U', ' ', 't', 'i', 'm', 'e', ' ', 'l', 'i', 'm', 'i', 't', ' ', 'e', 'x', 'c', 'e', 'e', 'd', 'e', 'd', 0, 'F', 'i', 'l', 'e', ' ', 's', 'i', 'z', 'e', ' ', 'l', 'i', 'm', 'i', 't', ' ', 'e', 'x', 'c', 'e', 'e', 'd', 'e', 'd', 0, 'V', 'i', 'r', 't', 'u', 'a', 'l', ' ', 't', 'i', 'm', 'e', 'r', ' ', 'e', 'x', 'p', 'i', 'r', 'e', 'd', 0, 'P', 'r', 'o', 'f', 'i', 'l', 'i', 'n', 'g', ' ', 't', 'i', 'm', 'e', 'r', ' ', 'e', 'x', 'p', 'i', 'r', 'e', 'd', 0, 'W', 'i', 'n', 'd', 'o', 'w', ' ', 'c', 'h', 'a', 'n', 'g', 'e', 'd', 0, 'I', '/', 'O', ' ', 'p', 'o', 's', 's', 'i', 'b', 'l', 'e', 0, 'P', 'o', 'w', 'e', 'r', ' ', 'f', 'a', 'i', 'l', 'u', 'r', 'e', 0, 'B', 'a', 'd', ' ', 's', 'y', 's', 't', 'e', 'm', ' ', 'c', 'a', 'l', 'l', 0, 'R', 'T', '3', '2', 0, 'R', 'T', '3', '3', 0, 'R', 'T', '3', '4', 0, 'R', 'T', '3', '5', 0, 'R', 'T', '3', '6', 0, 'R', 'T', '3', '7', 0, 'R', 'T', '3', '8', 0, 'R', 'T', '3', '9', 0, 'R', 'T', '4', '0', 0, 'R', 'T', '4', '1', 0, 'R', 'T', '4', '2', 0, 'R', 'T', '4', '3', 0, 'R', 'T', '4', '4', 0, 'R', 'T', '4', '5', 0, 'R', 'T', '4', '6', 0, 'R', 'T', '4', '7', 0, 'R', 'T', '4', '8', 0, 'R', 'T', '4', '9', 0, 'R', 'T', '5', '0', 0, 'R', 'T', '5', '1', 0, 'R', 'T', '5', '2', 0, 'R', 'T', '5', '3', 0, 'R', 'T', '5', '4', 0, 'R', 'T', '5', '5', 0, 'R', 'T', '5', '6', 0, 'R', 'T', '5', '7', 0, 'R', 'T', '5', '8', 0, 'R', 'T', '5', '9', 0, 'R', 'T', '6', '0', 0, 'R', 'T', '6', '1', 0, 'R', 'T', '6', '2', 0, 'R', 'T', '6', '3', 0, 'R', 'T', '6', '4'} + +func Xstrsignal(tls *TLS, signum int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v signum=%v, (%v:)", tls, signum, origin(2)) + defer func() { trc("-> %v", r) }() + } + var s uintptr + var v2 int32 + _, _ = s, v2 + s = uintptr(unsafe.Pointer(&_strings)) + signum = signum + if Uint32FromInt32(signum)-uint32(1) >= Uint32FromInt32(Int32FromInt32(_NSIG)-Int32FromInt32(1)) { + signum = 0 + } + for { + v2 = signum + signum = signum - 1 + if !(v2 != 0) { + break + } + for { + if !(**(**int8)(__ccgo_up(s)) != 0) { + break + } + goto _3 + _3: + ; + s = s + 1 + } + goto _1 + _1: + ; + s = s + 1 + } + return X__lctrans_cur(tls, s) +} + +func Xstrspn(tls *TLS, s uintptr, c uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var a, v3 uintptr + var v4 bool + var _ /* byteset at bp+0 */ [8]Tsize_t + _, _, _ = a, v3, v4 + a = s + **(**[8]Tsize_t)(__ccgo_up(bp)) = [8]Tsize_t{} + if !(**(**int8)(__ccgo_up(c)) != 0) { + return uint32(0) + } + if !(**(**int8)(__ccgo_up(c + 1)) != 0) { + for { + if !(int32(**(**int8)(__ccgo_up(s))) == int32(**(**int8)(__ccgo_up(c)))) { + break + } + goto _1 + _1: + ; + s = s + 1 + } + return Uint32FromInt32(int32(s) - int32(a)) + } + for { + if v4 = **(**int8)(__ccgo_up(c)) != 0; v4 { + v3 = bp + uintptr(uint32(**(**uint8)(__ccgo_up(c)))/(Uint32FromInt32(8)*Uint32FromInt64(4)))*4 + *(*Tsize_t)(unsafe.Pointer(v3)) |= Uint32FromInt32(1) << (uint32(**(**uint8)(__ccgo_up(c))) % (Uint32FromInt32(8) * Uint32FromInt64(4))) + } + if !(v4 && *(*Tsize_t)(unsafe.Pointer(v3)) != 0) { + break + } + goto _2 + _2: + ; + c = c + 1 + } + for { + if !(**(**int8)(__ccgo_up(s)) != 0 && (**(**[8]Tsize_t)(__ccgo_up(bp)))[uint32(**(**uint8)(__ccgo_up(s)))/(Uint32FromInt32(8)*Uint32FromInt64(4))]&(Uint32FromInt32(1)<<(uint32(**(**uint8)(__ccgo_up(s)))%(Uint32FromInt32(8)*Uint32FromInt64(4)))) != 0) { + break + } + goto _5 + _5: + ; + s = s + 1 + } + return Uint32FromInt32(int32(s) - int32(a)) +} + +func _twobyte_strstr(tls *TLS, h uintptr, n uintptr) (r uintptr) { + var hw, nw Tuint16_t + var v2 uintptr + _, _, _ = hw, nw, v2 + nw = Uint16FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(n)))< Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(jp+k)))) { + jp = jp + k + k = uint32(1) + p = jp - ip + } else { + v2 = jp + jp = jp + 1 + ip = v2 + v2 = Uint32FromInt32(1) + p = v2 + k = v2 + } + } + } + ms = ip + p0 = p + /* And with the opposite comparison */ + ip = Uint32FromInt32(-Int32FromInt32(1)) + jp = uint32(0) + v2 = Uint32FromInt32(1) + p = v2 + k = v2 + for jp+k < l { + if Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(ip+k)))) == Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(jp+k)))) { + if k == p { + jp = jp + p + k = uint32(1) + } else { + k = k + 1 + } + } else { + if Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(ip+k)))) < Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(jp+k)))) { + jp = jp + k + k = uint32(1) + p = jp - ip + } else { + v2 = jp + jp = jp + 1 + ip = v2 + v2 = Uint32FromInt32(1) + p = v2 + k = v2 + } + } + } + if ip+uint32(1) > ms+uint32(1) { + ms = ip + } else { + p = p0 + } + /* Periodic needle? */ + if Xmemcmp(tls, n, n+uintptr(p), ms+uint32(1)) != 0 { + mem0 = uint32(0) + if ms > l-ms-uint32(1) { + v8 = ms + } else { + v8 = l - ms - uint32(1) + } + p = v8 + uint32(1) + } else { + mem0 = l - p + } + mem = uint32(0) + /* Initialize incremental end-of-haystack pointer */ + z = h + /* Search loop */ + for { + /* Update incremental end-of-haystack pointer */ + if Uint32FromInt32(int32(z)-int32(h)) < l { + /* Fast estimate for MAX(l,63) */ + grow = l | uint32(63) + z2 = Xmemchr(tls, z, 0, grow) + if z2 != 0 { + z = z2 + if Uint32FromInt32(int32(z)-int32(h)) < l { + return uintptr(0) + } + } else { + z = z + uintptr(grow) + } + } + /* Check last byte first; advance by shift on mismatch */ + if (**(**[8]Tsize_t)(__ccgo_up(bp)))[uint32(**(**uint8)(__ccgo_up(h + uintptr(l-uint32(1)))))/(Uint32FromInt32(8)*Uint32FromInt64(4))]&(Uint32FromInt32(1)<<(uint32(**(**uint8)(__ccgo_up(h + uintptr(l-uint32(1)))))%(Uint32FromInt32(8)*Uint32FromInt64(4)))) != 0 { + k = l - shift[**(**uint8)(__ccgo_up(h + uintptr(l-uint32(1))))] + if k != 0 { + if k < mem { + k = mem + } + h = h + uintptr(k) + mem = uint32(0) + goto _9 + } + } else { + h = h + uintptr(l) + mem = uint32(0) + goto _9 + } + /* Compare right half */ + if ms+uint32(1) > mem { + v8 = ms + uint32(1) + } else { + v8 = mem + } + k = v8 + for { + if !(**(**uint8)(__ccgo_up(n + uintptr(k))) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(k)))) == Int32FromUint8(**(**uint8)(__ccgo_up(h + uintptr(k))))) { + break + } + goto _10 + _10: + ; + k = k + 1 + } + if **(**uint8)(__ccgo_up(n + uintptr(k))) != 0 { + h = h + uintptr(k-ms) + mem = uint32(0) + goto _9 + } + /* Compare left half */ + k = ms + uint32(1) + for { + if !(k > mem && Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(k-uint32(1))))) == Int32FromUint8(**(**uint8)(__ccgo_up(h + uintptr(k-uint32(1)))))) { + break + } + goto _12 + _12: + ; + k = k - 1 + } + if k <= mem { + return h + } + h = h + uintptr(p) + mem = mem0 + goto _9 + _9: + } + return r +} + +func Xstrstr(tls *TLS, h uintptr, n uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v h=%v n=%v, (%v:)", tls, h, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + /* Return immediately on empty needle */ + if !(**(**int8)(__ccgo_up(n)) != 0) { + return h + } + /* Use faster algorithms for short needles */ + h = Xstrchr(tls, h, int32(**(**int8)(__ccgo_up(n)))) + if !(h != 0) || !(**(**int8)(__ccgo_up(n + 1)) != 0) { + return h + } + if !(**(**int8)(__ccgo_up(h + 1)) != 0) { + return uintptr(0) + } + if !(**(**int8)(__ccgo_up(n + 2)) != 0) { + return _twobyte_strstr(tls, h, n) + } + if !(**(**int8)(__ccgo_up(h + 2)) != 0) { + return uintptr(0) + } + if !(**(**int8)(__ccgo_up(n + 3)) != 0) { + return _threebyte_strstr(tls, h, n) + } + if !(**(**int8)(__ccgo_up(h + 3)) != 0) { + return uintptr(0) + } + if !(**(**int8)(__ccgo_up(n + 4)) != 0) { + return _fourbyte_strstr(tls, h, n) + } + return _twoway_strstr(tls, h, n) +} + +func Xstrtok(tls *TLS, s uintptr, sep uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v sep=%v, (%v:)", tls, s, sep, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 uintptr + var v2 bool + _, _ = v1, v2 + if v2 = !(s != 0); v2 { + v1 = _p2 + s = v1 + } + if v2 && !(v1 != 0) { + return UintptrFromInt32(0) + } + s = s + uintptr(Xstrspn(tls, s, sep)) + if !(**(**int8)(__ccgo_up(s)) != 0) { + v1 = UintptrFromInt32(0) + _p2 = v1 + return v1 + } + _p2 = s + uintptr(Xstrcspn(tls, s, sep)) + if **(**int8)(__ccgo_up(_p2)) != 0 { + v1 = _p2 + _p2 = _p2 + 1 + **(**int8)(__ccgo_up(v1)) = 0 + } else { + _p2 = uintptr(0) + } + return s +} + +var _p2 uintptr + +func Xstrtok_r(tls *TLS, s uintptr, sep uintptr, p uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v sep=%v p=%v, (%v:)", tls, s, sep, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1, v3 uintptr + var v2 bool + _, _, _ = v1, v2, v3 + if v2 = !(s != 0); v2 { + v1 = **(**uintptr)(__ccgo_up(p)) + s = v1 + } + if v2 && !(v1 != 0) { + return UintptrFromInt32(0) + } + s = s + uintptr(Xstrspn(tls, s, sep)) + if !(**(**int8)(__ccgo_up(s)) != 0) { + v1 = UintptrFromInt32(0) + **(**uintptr)(__ccgo_up(p)) = v1 + return v1 + } + **(**uintptr)(__ccgo_up(p)) = s + uintptr(Xstrcspn(tls, s, sep)) + if **(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(p)))) != 0 { + v3 = p + v1 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + **(**int8)(__ccgo_up(v1)) = 0 + } else { + **(**uintptr)(__ccgo_up(p)) = uintptr(0) + } + return s +} + +func Xstrverscmp(tls *TLS, l0 uintptr, r0 uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l0=%v r0=%v, (%v:)", tls, l0, r0, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var c, z int32 + var dp, i, j, v2 Tsize_t + var l, r uintptr + _, _, _, _, _, _, _, _ = c, dp, i, j, l, r, z, v2 + l = l0 + r = r0 + z = int32(1) + /* Find maximal matching prefix and track its maximal digit + * suffix and whether those digits are all zeros. */ + v2 = Uint32FromInt32(0) + i = v2 + dp = v2 + for { + if !(Int32FromUint8(**(**uint8)(__ccgo_up(l + uintptr(i)))) == Int32FromUint8(**(**uint8)(__ccgo_up(r + uintptr(i))))) { + break + } + c = Int32FromUint8(**(**uint8)(__ccgo_up(l + uintptr(i)))) + if !(c != 0) { + return 0 + } + if !(BoolInt32(Uint32FromInt32(c)-Uint32FromUint8('0') < Uint32FromInt32(10)) != 0) { + dp = i + uint32(1) + z = Int32FromInt32(1) + } else { + if c != int32('0') { + z = 0 + } + } + goto _1 + _1: + ; + i = i + 1 + } + if Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(l + uintptr(dp))))-int32('1')) < uint32(9) && Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(r + uintptr(dp))))-int32('1')) < uint32(9) { + /* If we're looking at non-degenerate digit sequences starting + * with nonzero digits, longest digit string is greater. */ + j = i + for { + if !(BoolInt32(uint32(**(**uint8)(__ccgo_up(l + uintptr(j))))-uint32('0') < uint32(10)) != 0) { + break + } + if !(BoolInt32(uint32(**(**uint8)(__ccgo_up(r + uintptr(j))))-Uint32FromUint8('0') < Uint32FromInt32(10)) != 0) { + return int32(1) + } + goto _3 + _3: + ; + j = j + 1 + } + if BoolInt32(uint32(**(**uint8)(__ccgo_up(r + uintptr(j))))-uint32('0') < uint32(10)) != 0 { + return -int32(1) + } + } else { + if z != 0 && dp < i && (BoolInt32(uint32(**(**uint8)(__ccgo_up(l + uintptr(i))))-uint32('0') < uint32(10)) != 0 || BoolInt32(uint32(**(**uint8)(__ccgo_up(r + uintptr(i))))-uint32('0') < uint32(10)) != 0) { + /* Otherwise, if common prefix of digit sequence is + * all zeros, digits order less than non-digits. */ + return Int32FromUint8(Uint8FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(l + uintptr(i))))-Int32FromUint8('0'))) - Int32FromUint8(Uint8FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(r + uintptr(i))))-Int32FromUint8('0'))) + } + } + return Int32FromUint8(**(**uint8)(__ccgo_up(l + uintptr(i)))) - Int32FromUint8(**(**uint8)(__ccgo_up(r + uintptr(i)))) +} + +func Xswab(tls *TLS, _src uintptr, _dest uintptr, n Tssize_t) { + if __ccgo_strace { + trc("tls=%v _src=%v _dest=%v n=%v, (%v:)", tls, _src, _dest, n, origin(2)) + } + var dest, src uintptr + _, _ = dest, src + src = _src + dest = _dest + for { + if !(n > int32(1)) { + break + } + **(**int8)(__ccgo_up(dest)) = **(**int8)(__ccgo_up(src + 1)) + **(**int8)(__ccgo_up(dest + 1)) = **(**int8)(__ccgo_up(src)) + dest = dest + uintptr(2) + src = src + uintptr(2) + goto _1 + _1: + ; + n = n - int32(2) + } +} + +func Xwcpcpy(tls *TLS, d uintptr, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v, (%v:)", tls, d, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwcscpy(tls, d, s) + uintptr(Xwcslen(tls, s))*4 +} + +func Xwcpncpy(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwcsncpy(tls, d, s, n) + uintptr(Xwcsnlen(tls, s, n))*4 +} + +func Xwcscasecmp(tls *TLS, l uintptr, r uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v, (%v:)", tls, l, r, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return Xwcsncasecmp(tls, l, r, Uint32FromInt32(-Int32FromInt32(1))) +} + +func Xwcscasecmp_l(tls *TLS, l uintptr, r uintptr, locale Tlocale_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v locale=%v, (%v:)", tls, l, r, locale, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return Xwcscasecmp(tls, l, r) +} + +func Xwcscat(tls *TLS, dest uintptr, src uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v, (%v:)", tls, dest, src, origin(2)) + defer func() { trc("-> %v", r) }() + } + Xwcscpy(tls, dest+uintptr(Xwcslen(tls, dest))*4, src) + return dest +} + +func Xwcschr(tls *TLS, s uintptr, c Twchar_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v2 uintptr + _ = v2 + if !(c != 0) { + return s + uintptr(Xwcslen(tls, s))*4 + } + for { + if !(**(**Twchar_t)(__ccgo_up(s)) != 0 && **(**Twchar_t)(__ccgo_up(s)) != c) { + break + } + goto _1 + _1: + ; + s += 4 + } + if **(**Twchar_t)(__ccgo_up(s)) != 0 { + v2 = s + } else { + v2 = uintptr(0) + } + return v2 +} + +func Xwcscmp(tls *TLS, l uintptr, r uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v, (%v:)", tls, l, r, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var v2 int32 + _ = v2 + for { + if !(**(**Twchar_t)(__ccgo_up(l)) == **(**Twchar_t)(__ccgo_up(r)) && **(**Twchar_t)(__ccgo_up(l)) != 0 && **(**Twchar_t)(__ccgo_up(r)) != 0) { + break + } + goto _1 + _1: + ; + l += 4 + r += 4 + } + if **(**Twchar_t)(__ccgo_up(l)) < **(**Twchar_t)(__ccgo_up(r)) { + v2 = -int32(1) + } else { + v2 = BoolInt32(**(**Twchar_t)(__ccgo_up(l)) > **(**Twchar_t)(__ccgo_up(r))) + } + return v2 +} + +func Xwcscpy(tls *TLS, d uintptr, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v, (%v:)", tls, d, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, v2, v3 uintptr + var v1 Twchar_t + _, _, _, _ = a, v1, v2, v3 + a = d + for { + v2 = s + s += 4 + v1 = **(**Twchar_t)(__ccgo_up(v2)) + v3 = d + d += 4 + **(**Twchar_t)(__ccgo_up(v3)) = v1 + if !(v1 != 0) { + break + } + } + return a +} + +func Xwcscspn(tls *TLS, s uintptr, c uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, v2, v3 uintptr + var v1 uint32 + _, _, _, _ = a, v1, v2, v3 + if !(**(**Twchar_t)(__ccgo_up(c)) != 0) { + return Xwcslen(tls, s) + } + if !(**(**Twchar_t)(__ccgo_up(c + 1*4)) != 0) { + v3 = s + a = v3 + v2 = Xwcschr(tls, v3, **(**Twchar_t)(__ccgo_up(c))) + s = v2 + if v2 != 0 { + v1 = Uint32FromInt32((int32(s) - int32(a)) / 4) + } else { + v1 = Xwcslen(tls, a) + } + return v1 + } + a = s + for { + if !(**(**Twchar_t)(__ccgo_up(s)) != 0 && !(Xwcschr(tls, c, **(**Twchar_t)(__ccgo_up(s))) != 0)) { + break + } + goto _4 + _4: + ; + s += 4 + } + return Uint32FromInt32((int32(s) - int32(a)) / 4) +} + +func Xwcsdup(tls *TLS, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var d uintptr + var l Tsize_t + _, _ = d, l + l = Xwcslen(tls, s) + d = Xmalloc(tls, (l+uint32(1))*uint32(4)) + if !(d != 0) { + return UintptrFromInt32(0) + } + return Xwmemcpy(tls, d, s, l+uint32(1)) +} + +func Xwcslen(tls *TLS, s uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a uintptr + _ = a + a = s + for { + if !(**(**Twchar_t)(__ccgo_up(s)) != 0) { + break + } + goto _1 + _1: + ; + s += 4 + } + return Uint32FromInt32((int32(s) - int32(a)) / 4) +} + +func Xwcsncasecmp(tls *TLS, l uintptr, r uintptr, n Tsize_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v n=%v, (%v:)", tls, l, r, n, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var v1 Tsize_t + _ = v1 + v1 = n + n = n - 1 + if !(v1 != 0) { + return 0 + } + for { + if !(**(**Twchar_t)(__ccgo_up(l)) != 0 && **(**Twchar_t)(__ccgo_up(r)) != 0 && n != 0 && (**(**Twchar_t)(__ccgo_up(l)) == **(**Twchar_t)(__ccgo_up(r)) || Xtowlower(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(l)))) == Xtowlower(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(r)))))) { + break + } + goto _2 + _2: + ; + l += 4 + r += 4 + n = n - 1 + } + return Int32FromUint32(Xtowlower(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(l)))) - Xtowlower(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(r))))) +} + +func Xwcsncasecmp_l(tls *TLS, l uintptr, r uintptr, n Tsize_t, locale Tlocale_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v n=%v locale=%v, (%v:)", tls, l, r, n, locale, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return Xwcsncasecmp(tls, l, r, n) +} + +func Xwcsncat(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, v1, v2 uintptr + _, _, _ = a, v1, v2 + a = d + d = d + uintptr(Xwcslen(tls, d))*4 + for n != 0 && **(**Twchar_t)(__ccgo_up(s)) != 0 { + n = n - 1 + v1 = d + d += 4 + v2 = s + s += 4 + **(**Twchar_t)(__ccgo_up(v1)) = **(**Twchar_t)(__ccgo_up(v2)) + } + v1 = d + d += 4 + **(**Twchar_t)(__ccgo_up(v1)) = 0 + return a +} + +func Xwcsncmp(tls *TLS, l uintptr, r uintptr, n Tsize_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v n=%v, (%v:)", tls, l, r, n, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var v2, v3 int32 + _, _ = v2, v3 + for { + if !(n != 0 && **(**Twchar_t)(__ccgo_up(l)) == **(**Twchar_t)(__ccgo_up(r)) && **(**Twchar_t)(__ccgo_up(l)) != 0 && **(**Twchar_t)(__ccgo_up(r)) != 0) { + break + } + goto _1 + _1: + ; + n = n - 1 + l += 4 + r += 4 + } + if n != 0 { + if **(**Twchar_t)(__ccgo_up(l)) < **(**Twchar_t)(__ccgo_up(r)) { + v3 = -int32(1) + } else { + v3 = BoolInt32(**(**Twchar_t)(__ccgo_up(l)) > **(**Twchar_t)(__ccgo_up(r))) + } + v2 = v3 + } else { + v2 = 0 + } + return v2 +} + +func Xwcsncpy(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, v1, v2 uintptr + _, _, _ = a, v1, v2 + a = d + for n != 0 && **(**Twchar_t)(__ccgo_up(s)) != 0 { + n = n - 1 + v1 = d + d += 4 + v2 = s + s += 4 + **(**Twchar_t)(__ccgo_up(v1)) = **(**Twchar_t)(__ccgo_up(v2)) + } + Xwmemset(tls, d, 0, n) + return a +} + +func Xwcsnlen(tls *TLS, s uintptr, n Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v, (%v:)", tls, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var z uintptr + _ = z + z = Xwmemchr(tls, s, 0, n) + if z != 0 { + n = Uint32FromInt32((int32(z) - int32(s)) / 4) + } + return n +} + +func Xwcspbrk(tls *TLS, s uintptr, b uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v b=%v, (%v:)", tls, s, b, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 uintptr + _ = v1 + s = s + uintptr(Xwcscspn(tls, s, b))*4 + if **(**Twchar_t)(__ccgo_up(s)) != 0 { + v1 = s + } else { + v1 = UintptrFromInt32(0) + } + return v1 +} + +func Xwcsrchr(tls *TLS, s uintptr, c Twchar_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + var p, v2 uintptr + _, _ = p, v2 + p = s + uintptr(Xwcslen(tls, s))*4 + for { + if !(p >= s && **(**Twchar_t)(__ccgo_up(p)) != c) { + break + } + goto _1 + _1: + ; + p -= 4 + } + if p >= s { + v2 = p + } else { + v2 = uintptr(0) + } + return v2 +} + +func Xwcsspn(tls *TLS, s uintptr, c uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a uintptr + _ = a + a = s + for { + if !(**(**Twchar_t)(__ccgo_up(s)) != 0 && Xwcschr(tls, c, **(**Twchar_t)(__ccgo_up(s))) != 0) { + break + } + goto _1 + _1: + ; + s += 4 + } + return Uint32FromInt32((int32(s) - int32(a)) / 4) +} + +func _twoway_wcsstr(tls *TLS, h uintptr, n uintptr) (r uintptr) { + var grow, ip, jp, k, l, mem, mem0, ms, p, p0, v2 Tsize_t + var z, z2 uintptr + var v8 uint32 + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = grow, ip, jp, k, l, mem, mem0, ms, p, p0, z, z2, v2, v8 + /* Computing length of needle */ + l = uint32(0) + for { + if !(**(**Twchar_t)(__ccgo_up(n + uintptr(l)*4)) != 0 && **(**Twchar_t)(__ccgo_up(h + uintptr(l)*4)) != 0) { + break + } + goto _1 + _1: + ; + l = l + 1 + } + if **(**Twchar_t)(__ccgo_up(n + uintptr(l)*4)) != 0 { + return uintptr(0) + } /* hit the end of h */ + /* Compute maximal suffix */ + ip = Uint32FromInt32(-Int32FromInt32(1)) + jp = uint32(0) + v2 = Uint32FromInt32(1) + p = v2 + k = v2 + for jp+k < l { + if **(**Twchar_t)(__ccgo_up(n + uintptr(ip+k)*4)) == **(**Twchar_t)(__ccgo_up(n + uintptr(jp+k)*4)) { + if k == p { + jp = jp + p + k = uint32(1) + } else { + k = k + 1 + } + } else { + if **(**Twchar_t)(__ccgo_up(n + uintptr(ip+k)*4)) > **(**Twchar_t)(__ccgo_up(n + uintptr(jp+k)*4)) { + jp = jp + k + k = uint32(1) + p = jp - ip + } else { + v2 = jp + jp = jp + 1 + ip = v2 + v2 = Uint32FromInt32(1) + p = v2 + k = v2 + } + } + } + ms = ip + p0 = p + /* And with the opposite comparison */ + ip = Uint32FromInt32(-Int32FromInt32(1)) + jp = uint32(0) + v2 = Uint32FromInt32(1) + p = v2 + k = v2 + for jp+k < l { + if **(**Twchar_t)(__ccgo_up(n + uintptr(ip+k)*4)) == **(**Twchar_t)(__ccgo_up(n + uintptr(jp+k)*4)) { + if k == p { + jp = jp + p + k = uint32(1) + } else { + k = k + 1 + } + } else { + if **(**Twchar_t)(__ccgo_up(n + uintptr(ip+k)*4)) < **(**Twchar_t)(__ccgo_up(n + uintptr(jp+k)*4)) { + jp = jp + k + k = uint32(1) + p = jp - ip + } else { + v2 = jp + jp = jp + 1 + ip = v2 + v2 = Uint32FromInt32(1) + p = v2 + k = v2 + } + } + } + if ip+uint32(1) > ms+uint32(1) { + ms = ip + } else { + p = p0 + } + /* Periodic needle? */ + if Xwmemcmp(tls, n, n+uintptr(p)*4, ms+uint32(1)) != 0 { + mem0 = uint32(0) + if ms > l-ms-uint32(1) { + v8 = ms + } else { + v8 = l - ms - uint32(1) + } + p = v8 + uint32(1) + } else { + mem0 = l - p + } + mem = uint32(0) + /* Initialize incremental end-of-haystack pointer */ + z = h + /* Search loop */ + for { + /* Update incremental end-of-haystack pointer */ + if Uint32FromInt32((int32(z)-int32(h))/4) < l { + /* Fast estimate for MIN(l,63) */ + grow = l | uint32(63) + z2 = Xwmemchr(tls, z, 0, grow) + if z2 != 0 { + z = z2 + if Uint32FromInt32((int32(z)-int32(h))/4) < l { + return uintptr(0) + } + } else { + z = z + uintptr(grow)*4 + } + } + /* Compare right half */ + if ms+uint32(1) > mem { + v8 = ms + uint32(1) + } else { + v8 = mem + } + k = v8 + for { + if !(**(**Twchar_t)(__ccgo_up(n + uintptr(k)*4)) != 0 && **(**Twchar_t)(__ccgo_up(n + uintptr(k)*4)) == **(**Twchar_t)(__ccgo_up(h + uintptr(k)*4))) { + break + } + goto _10 + _10: + ; + k = k + 1 + } + if **(**Twchar_t)(__ccgo_up(n + uintptr(k)*4)) != 0 { + h = h + uintptr(k-ms)*4 + mem = uint32(0) + goto _9 + } + /* Compare left half */ + k = ms + uint32(1) + for { + if !(k > mem && **(**Twchar_t)(__ccgo_up(n + uintptr(k-uint32(1))*4)) == **(**Twchar_t)(__ccgo_up(h + uintptr(k-uint32(1))*4))) { + break + } + goto _12 + _12: + ; + k = k - 1 + } + if k <= mem { + return h + } + h = h + uintptr(p)*4 + mem = mem0 + goto _9 + _9: + } + return r +} + +func Xwcsstr(tls *TLS, h uintptr, n uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v h=%v n=%v, (%v:)", tls, h, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + /* Return immediately on empty needle or haystack */ + if !(**(**Twchar_t)(__ccgo_up(n)) != 0) { + return h + } + if !(**(**Twchar_t)(__ccgo_up(h)) != 0) { + return uintptr(0) + } + /* Use faster algorithms for short needles */ + h = Xwcschr(tls, h, **(**Twchar_t)(__ccgo_up(n))) + if !(h != 0) || !(**(**Twchar_t)(__ccgo_up(n + 1*4)) != 0) { + return h + } + if !(**(**Twchar_t)(__ccgo_up(h + 1*4)) != 0) { + return uintptr(0) + } + return _twoway_wcsstr(tls, h, n) +} + +func Xwcstok(tls *TLS, s uintptr, sep uintptr, p uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v sep=%v p=%v, (%v:)", tls, s, sep, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1, v3 uintptr + var v2 bool + _, _, _ = v1, v2, v3 + if v2 = !(s != 0); v2 { + v1 = **(**uintptr)(__ccgo_up(p)) + s = v1 + } + if v2 && !(v1 != 0) { + return UintptrFromInt32(0) + } + s = s + uintptr(Xwcsspn(tls, s, sep))*4 + if !(**(**Twchar_t)(__ccgo_up(s)) != 0) { + v1 = UintptrFromInt32(0) + **(**uintptr)(__ccgo_up(p)) = v1 + return v1 + } + **(**uintptr)(__ccgo_up(p)) = s + uintptr(Xwcscspn(tls, s, sep))*4 + if **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(p)))) != 0 { + v3 = p + v1 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) += 4 + **(**Twchar_t)(__ccgo_up(v1)) = 0 + } else { + **(**uintptr)(__ccgo_up(p)) = uintptr(0) + } + return s +} + +func Xwcswcs(tls *TLS, haystack uintptr, needle uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v haystack=%v needle=%v, (%v:)", tls, haystack, needle, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwcsstr(tls, haystack, needle) +} + +func Xwmemchr(tls *TLS, s uintptr, c Twchar_t, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v n=%v, (%v:)", tls, s, c, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v2 uintptr + _ = v2 + for { + if !(n != 0 && **(**Twchar_t)(__ccgo_up(s)) != c) { + break + } + goto _1 + _1: + ; + n = n - 1 + s += 4 + } + if n != 0 { + v2 = s + } else { + v2 = uintptr(0) + } + return v2 +} + +func Xwmemcmp(tls *TLS, l uintptr, r uintptr, n Tsize_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v n=%v, (%v:)", tls, l, r, n, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var v2, v3 int32 + _, _ = v2, v3 + for { + if !(n != 0 && **(**Twchar_t)(__ccgo_up(l)) == **(**Twchar_t)(__ccgo_up(r))) { + break + } + goto _1 + _1: + ; + n = n - 1 + l += 4 + r += 4 + } + if n != 0 { + if **(**Twchar_t)(__ccgo_up(l)) < **(**Twchar_t)(__ccgo_up(r)) { + v3 = -int32(1) + } else { + v3 = BoolInt32(**(**Twchar_t)(__ccgo_up(l)) > **(**Twchar_t)(__ccgo_up(r))) + } + v2 = v3 + } else { + v2 = 0 + } + return v2 +} + +func Xwmemcpy(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, v2, v3 uintptr + var v1 Tsize_t + _, _, _, _ = a, v1, v2, v3 + a = d + for { + v1 = n + n = n - 1 + if !(v1 != 0) { + break + } + v2 = d + d += 4 + v3 = s + s += 4 + **(**Twchar_t)(__ccgo_up(v2)) = **(**Twchar_t)(__ccgo_up(v3)) + } + return a +} + +func Xwmemmove(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var d0, v3, v4 uintptr + var v1 Tsize_t + _, _, _, _ = d0, v1, v3, v4 + d0 = d + if d == s { + return d + } + if uint32(d)-uint32(s) < n*uint32(4) { + for { + v1 = n + n = n - 1 + if !(v1 != 0) { + break + } + **(**Twchar_t)(__ccgo_up(d + uintptr(n)*4)) = **(**Twchar_t)(__ccgo_up(s + uintptr(n)*4)) + } + } else { + for { + v1 = n + n = n - 1 + if !(v1 != 0) { + break + } + v3 = d + d += 4 + v4 = s + s += 4 + **(**Twchar_t)(__ccgo_up(v3)) = **(**Twchar_t)(__ccgo_up(v4)) + } + } + return d0 +} + +func Xwmemset(tls *TLS, d uintptr, c Twchar_t, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v c=%v n=%v, (%v:)", tls, d, c, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret, v2 uintptr + var v1 Tsize_t + _, _, _ = ret, v1, v2 + ret = d + for { + v1 = n + n = n - 1 + if !(v1 != 0) { + break + } + v2 = d + d += 4 + **(**Twchar_t)(__ccgo_up(v2)) = c + } + return ret +} + +func Xmkdtemp(tls *TLS, template uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v template=%v, (%v:)", tls, template, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l Tsize_t + var retries, v1 int32 + _, _, _ = l, retries, v1 + l = _strlen(tls, template) + retries = int32(100) + if l < uint32(6) || Xmemcmp(tls, template+uintptr(l)-uintptr(6), __ccgo_ts+1563, uint32(6)) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(0) + } + for { + ___randname(tls, template+uintptr(l)-uintptr(6)) + if !(Xmkdir(tls, template, uint32(0700)) != 0) { + return template + } + goto _2 + _2: + ; + retries = retries - 1 + v1 = retries + if !(v1 != 0 && **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EEXIST)) { + break + } + } + Xmemcpy(tls, template+uintptr(l)-uintptr(6), __ccgo_ts+1563, uint32(6)) + return uintptr(0) +} + +func Xmkostemp(tls *TLS, template uintptr, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v template=%v flags=%v, (%v:)", tls, template, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__mkostemps(tls, template, 0, flags) +} + +func X__mkostemps(tls *TLS, template uintptr, len1 int32, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v template=%v len1=%v flags=%v, (%v:)", tls, template, len1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var fd, retries, v1 int32 + var l Tsize_t + _, _, _, _ = fd, l, retries, v1 + l = _strlen(tls, template) + if l < uint32(6) || Uint32FromInt32(len1) > l-uint32(6) || Xmemcmp(tls, template+uintptr(l)-uintptr(len1)-uintptr(6), __ccgo_ts+1563, uint32(6)) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + flags = flags - flags&(Int32FromInt32(03)|Int32FromInt32(O_PATH)) + retries = int32(100) + for { + ___randname(tls, template+uintptr(l)-uintptr(len1)-uintptr(6)) + v1 = Xopen(tls, template, flags|int32(O_RDWR)|int32(O_CREAT)|int32(O_EXCL), VaList(bp+8, int32(0600))) + fd = v1 + if v1 >= 0 { + return fd + } + goto _2 + _2: + ; + retries = retries - 1 + v1 = retries + if !(v1 != 0 && **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EEXIST)) { + break + } + } + Xmemcpy(tls, template+uintptr(l)-uintptr(len1)-uintptr(6), __ccgo_ts+1563, uint32(6)) + return -int32(1) +} + +func Xmkostemps(tls *TLS, template uintptr, len1 int32, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v template=%v len1=%v flags=%v, (%v:)", tls, template, len1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__mkostemps(tls, template, len1, flags) +} + +func Xmkstemp(tls *TLS, template uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v template=%v, (%v:)", tls, template, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__mkostemps(tls, template, 0, 0) +} + +func Xmkstemps(tls *TLS, template uintptr, len1 int32) (r int32) { + if __ccgo_strace { + trc("tls=%v template=%v len1=%v, (%v:)", tls, template, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__mkostemps(tls, template, len1, 0) +} + +func Xmktemp(tls *TLS, template uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v template=%v, (%v:)", tls, template, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(144) + defer tls.Free(144) + var l Tsize_t + var retries, v1 int32 + var _ /* st at bp+0 */ Tstat + _, _, _ = l, retries, v1 + l = _strlen(tls, template) + retries = int32(100) + if l < uint32(6) || Xmemcmp(tls, template+uintptr(l)-uintptr(6), __ccgo_ts+1563, uint32(6)) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + **(**int8)(__ccgo_up(template)) = 0 + return template + } + for { + ___randname(tls, template+uintptr(l)-uintptr(6)) + if Xstat(tls, template, bp) != 0 { + if **(**int32)(__ccgo_up(X__errno_location(tls))) != int32(ENOENT) { + **(**int8)(__ccgo_up(template)) = 0 + } + return template + } + goto _2 + _2: + ; + retries = retries - 1 + v1 = retries + if !(v1 != 0) { + break + } + } + **(**int8)(__ccgo_up(template)) = 0 + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EEXIST) + return template +} + +func Xcfgetospeed(tls *TLS, tio uintptr) (r Tspeed_t) { + if __ccgo_strace { + trc("tls=%v tio=%v, (%v:)", tls, tio, origin(2)) + defer func() { trc("-> %v", r) }() + } + return (*Ttermios)(unsafe.Pointer(tio)).Fc_cflag & uint32(CBAUD) +} + +func Xcfgetispeed(tls *TLS, tio uintptr) (r Tspeed_t) { + if __ccgo_strace { + trc("tls=%v tio=%v, (%v:)", tls, tio, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xcfgetospeed(tls, tio) +} + +func Xcfmakeraw(tls *TLS, t uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v, (%v:)", tls, t, origin(2)) + } + **(**Ttcflag_t)(__ccgo_up(t)) &= Uint32FromInt32(^(Int32FromInt32(IGNBRK) | Int32FromInt32(BRKINT) | Int32FromInt32(PARMRK) | Int32FromInt32(ISTRIP) | Int32FromInt32(INLCR) | Int32FromInt32(IGNCR) | Int32FromInt32(ICRNL) | Int32FromInt32(IXON))) + **(**Ttcflag_t)(__ccgo_up(t + 4)) &= Uint32FromInt32(^Int32FromInt32(OPOST)) + **(**Ttcflag_t)(__ccgo_up(t + 12)) &= Uint32FromInt32(^(Int32FromInt32(ECHO) | Int32FromInt32(ECHONL) | Int32FromInt32(ICANON) | Int32FromInt32(ISIG) | Int32FromInt32(IEXTEN))) + **(**Ttcflag_t)(__ccgo_up(t + 8)) &= Uint32FromInt32(^(Int32FromInt32(CSIZE) | Int32FromInt32(PARENB))) + **(**Ttcflag_t)(__ccgo_up(t + 8)) |= uint32(CS8) + **(**Tcc_t)(__ccgo_up(t + 17 + 6)) = uint8(1) + **(**Tcc_t)(__ccgo_up(t + 17 + 5)) = uint8(0) +} + +func Xcfsetospeed(tls *TLS, tio uintptr, speed Tspeed_t) (r int32) { + if __ccgo_strace { + trc("tls=%v tio=%v speed=%v, (%v:)", tls, tio, speed, origin(2)) + defer func() { trc("-> %v", r) }() + } + if speed&Uint32FromInt32(^Int32FromInt32(CBAUD)) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + **(**Ttcflag_t)(__ccgo_up(tio + 8)) &= Uint32FromInt32(^Int32FromInt32(CBAUD)) + **(**Ttcflag_t)(__ccgo_up(tio + 8)) |= speed + return 0 +} + +func Xcfsetispeed(tls *TLS, tio uintptr, speed Tspeed_t) (r int32) { + if __ccgo_strace { + trc("tls=%v tio=%v speed=%v, (%v:)", tls, tio, speed, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + _ = v1 + if speed != 0 { + v1 = Xcfsetospeed(tls, tio, speed) + } else { + v1 = 0 + } + return v1 +} + +func Xcfsetspeed(tls *TLS, tio uintptr, speed Tspeed_t) (r int32) { + if __ccgo_strace { + trc("tls=%v tio=%v speed=%v, (%v:)", tls, tio, speed, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xcfsetospeed(tls, tio, speed) +} + +func Xtcdrain(tls *TLS, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(___syscall_cp(tls, int32(SYS_ioctl), fd, int32(Int32FromInt32(TCSBRK)), int32(Int32FromInt32(1)), 0, 0, 0))) +} + +func Xtcflow(tls *TLS, fd int32, action int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v action=%v, (%v:)", tls, fd, action, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + return Xioctl(tls, fd, int32(TCXONC), VaList(bp+8, action)) +} + +func Xtcflush(tls *TLS, fd int32, queue int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v queue=%v, (%v:)", tls, fd, queue, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + return Xioctl(tls, fd, int32(TCFLSH), VaList(bp+8, queue)) +} + +func Xtcgetattr(tls *TLS, fd int32, tio uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v tio=%v, (%v:)", tls, fd, tio, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + if Xioctl(tls, fd, int32(TCGETS), VaList(bp+8, tio)) != 0 { + return -int32(1) + } + return 0 +} + +func Xtcgetsid(tls *TLS, fd int32) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var _ /* sid at bp+0 */ int32 + if Xioctl(tls, fd, int32(TIOCGSID), VaList(bp+16, bp)) < 0 { + return -int32(1) + } + return **(**int32)(__ccgo_up(bp)) +} + +func Xtcgetwinsize(tls *TLS, fd int32, wsz uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v wsz=%v, (%v:)", tls, fd, wsz, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_ioctl), fd, int32(Int32FromInt32(TIOCGWINSZ)), int32(wsz)))) +} + +func Xtcsendbreak(tls *TLS, fd int32, dur int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v dur=%v, (%v:)", tls, fd, dur, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + /* nonzero duration is implementation-defined, so ignore it */ + return Xioctl(tls, fd, int32(TCSBRK), VaList(bp+8, 0)) +} + +func Xtcsetattr(tls *TLS, fd int32, act int32, tio uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v act=%v tio=%v, (%v:)", tls, fd, act, tio, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + if act < 0 || act > int32(2) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + return Xioctl(tls, fd, int32(TCSETS)+act, VaList(bp+8, tio)) +} + +func Xtcsetwinsize(tls *TLS, fd int32, wsz uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v wsz=%v, (%v:)", tls, fd, wsz, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_ioctl), fd, int32(Int32FromInt32(TIOCSWINSZ)), int32(wsz)))) +} + +func X__map_file(tls *TLS, pathname uintptr, size uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v pathname=%v size=%v, (%v:)", tls, pathname, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(144) + defer tls.Free(144) + var fd int32 + var map1, v1 uintptr + var _ /* st at bp+0 */ Tstat + _, _, _ = fd, map1, v1 + map1 = uintptr(-Int32FromInt32(1)) + fd = X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_open), int32(pathname), int32(Int32FromInt32(O_RDONLY)|Int32FromInt32(O_CLOEXEC)|Int32FromInt32(O_NONBLOCK)|Int32FromInt32(O_LARGEFILE))))) + if fd < 0 { + return uintptr(0) + } + if !(X__fstat(tls, fd, bp) != 0) { + map1 = X__mmap(tls, uintptr(0), Uint32FromInt64((**(**Tstat)(__ccgo_up(bp))).Fst_size), int32(PROT_READ), int32(MAP_SHARED), fd, 0) + **(**Tsize_t)(__ccgo_up(size)) = Uint32FromInt64((**(**Tstat)(__ccgo_up(bp))).Fst_size) + } + X__syscall1(tls, int32(SYS_close), fd) + if map1 == uintptr(-Int32FromInt32(1)) { + v1 = uintptr(0) + } else { + v1 = map1 + } + return v1 +} + +func X__month_to_secs(tls *TLS, month int32, is_leap int32) (r int32) { + if __ccgo_strace { + trc("tls=%v month=%v is_leap=%v, (%v:)", tls, month, is_leap, origin(2)) + defer func() { trc("-> %v", r) }() + } + var t int32 + _ = t + t = _secs_through_month[month] + if is_leap != 0 && month >= int32(2) { + t = t + int32(86400) + } + return t +} + +var _secs_through_month = [12]int32{ + 1: Int32FromInt32(31) * Int32FromInt32(86400), + 2: Int32FromInt32(59) * Int32FromInt32(86400), + 3: Int32FromInt32(90) * Int32FromInt32(86400), + 4: Int32FromInt32(120) * Int32FromInt32(86400), + 5: Int32FromInt32(151) * Int32FromInt32(86400), + 6: Int32FromInt32(181) * Int32FromInt32(86400), + 7: Int32FromInt32(212) * Int32FromInt32(86400), + 8: Int32FromInt32(243) * Int32FromInt32(86400), + 9: Int32FromInt32(273) * Int32FromInt32(86400), + 10: Int32FromInt32(304) * Int32FromInt32(86400), + 11: Int32FromInt32(334) * Int32FromInt32(86400), +} + +const DAYS_PER_100Y = 36524 +const DAYS_PER_400Y = 146097 +const DAYS_PER_4Y = 1461 +const LEAPOCH = 951868800 + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +/* 2000-03-01 (mod 400 year, immediately after feb29 */ + +func X__secs_to_tm(tls *TLS, t int64, tm uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v t=%v tm=%v, (%v:)", tls, t, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + var c_cycles, leap, months, q_cycles, qc_cycles, remdays, remsecs, remyears, wday, yday int32 + var days, secs, years int64 + _, _, _, _, _, _, _, _, _, _, _, _, _ = c_cycles, days, leap, months, q_cycles, qc_cycles, remdays, remsecs, remyears, secs, wday, yday, years + /* Reject time_t values whose year would overflow int */ + if t < int64(-Int32FromInt32(1)-Int32FromInt32(0x7fffffff))*Int64FromInt64(31622400) || t > Int64FromInt32(INT_MAX)*Int64FromInt64(31622400) { + return -int32(1) + } + secs = t - (Int64FromInt64(946684800) + int64(Int32FromInt32(86400)*(Int32FromInt32(31)+Int32FromInt32(29)))) + days = secs / int64(86400) + remsecs = int32(secs % int64(86400)) + if remsecs < 0 { + remsecs = remsecs + int32(86400) + days = days - 1 + } + wday = int32((int64(3) + days) % int64(7)) + if wday < 0 { + wday = wday + int32(7) + } + qc_cycles = int32(days / int64(Int32FromInt32(365)*Int32FromInt32(400)+Int32FromInt32(97))) + remdays = int32(days % int64(Int32FromInt32(365)*Int32FromInt32(400)+Int32FromInt32(97))) + if remdays < 0 { + remdays = remdays + (Int32FromInt32(365)*Int32FromInt32(400) + Int32FromInt32(97)) + qc_cycles = qc_cycles - 1 + } + c_cycles = remdays / (Int32FromInt32(365)*Int32FromInt32(100) + Int32FromInt32(24)) + if c_cycles == int32(4) { + c_cycles = c_cycles - 1 + } + remdays = remdays - c_cycles*(Int32FromInt32(365)*Int32FromInt32(100)+Int32FromInt32(24)) + q_cycles = remdays / (Int32FromInt32(365)*Int32FromInt32(4) + Int32FromInt32(1)) + if q_cycles == int32(25) { + q_cycles = q_cycles - 1 + } + remdays = remdays - q_cycles*(Int32FromInt32(365)*Int32FromInt32(4)+Int32FromInt32(1)) + remyears = remdays / int32(365) + if remyears == int32(4) { + remyears = remyears - 1 + } + remdays = remdays - remyears*int32(365) + leap = BoolInt32(!(remyears != 0) && (q_cycles != 0 || !(c_cycles != 0))) + yday = remdays + int32(31) + int32(28) + leap + if yday >= int32(365)+leap { + yday = yday - (int32(365) + leap) + } + years = int64(remyears+int32(4)*q_cycles+int32(100)*c_cycles) + int64(400)*int64(qc_cycles) + months = 0 + for { + if !(int32(_days_in_month[months]) <= remdays) { + break + } + remdays = remdays - int32(_days_in_month[months]) + goto _1 + _1: + ; + months = months + 1 + } + if months >= int32(10) { + months = months - int32(12) + years = years + 1 + } + if years+int64(100) > int64(INT_MAX) || years+int64(100) < int64(-Int32FromInt32(1)-Int32FromInt32(0x7fffffff)) { + return -int32(1) + } + (*Ttm)(unsafe.Pointer(tm)).Ftm_year = int32(years + int64(100)) + (*Ttm)(unsafe.Pointer(tm)).Ftm_mon = months + int32(2) + (*Ttm)(unsafe.Pointer(tm)).Ftm_mday = remdays + int32(1) + (*Ttm)(unsafe.Pointer(tm)).Ftm_wday = wday + (*Ttm)(unsafe.Pointer(tm)).Ftm_yday = yday + (*Ttm)(unsafe.Pointer(tm)).Ftm_hour = remsecs / int32(3600) + (*Ttm)(unsafe.Pointer(tm)).Ftm_min = remsecs / int32(60) % int32(60) + (*Ttm)(unsafe.Pointer(tm)).Ftm_sec = remsecs % int32(60) + return 0 +} + +var _days_in_month = [12]int8{ + 0: int8(31), + 1: int8(30), + 2: int8(31), + 3: int8(30), + 4: int8(31), + 5: int8(31), + 6: int8(30), + 7: int8(31), + 8: int8(30), + 9: int8(31), + 10: int8(31), + 11: int8(29), +} + +func X__tm_to_secs(tls *TLS, tm uintptr) (r int64) { + if __ccgo_strace { + trc("tls=%v tm=%v, (%v:)", tls, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var adj, month int32 + var t, year int64 + var _ /* is_leap at bp+0 */ int32 + _, _, _, _ = adj, month, t, year + year = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_year) + month = (*Ttm)(unsafe.Pointer(tm)).Ftm_mon + if month >= int32(12) || month < 0 { + adj = month / int32(12) + month = month % int32(12) + if month < 0 { + adj = adj - 1 + month = month + int32(12) + } + year = year + int64(adj) + } + t = X__year_to_secs(tls, year, bp) + t = t + int64(X__month_to_secs(tls, month, **(**int32)(__ccgo_up(bp)))) + t = t + int64(86400)*int64((*Ttm)(unsafe.Pointer(tm)).Ftm_mday-Int32FromInt32(1)) + t = t + int64(3600)*int64((*Ttm)(unsafe.Pointer(tm)).Ftm_hour) + t = t + int64(60)*int64((*Ttm)(unsafe.Pointer(tm)).Ftm_min) + t = t + int64((*Ttm)(unsafe.Pointer(tm)).Ftm_sec) + return t +} + +var _std_name [7]int8 +var _dst_name [7]int8 + +var _dst_off int32 +var _r0 [5]int32 +var _r12 [5]int32 + +var _zi uintptr +var _trans uintptr +var _index uintptr +var _types uintptr +var _abbrevs uintptr +var _abbrevs_end uintptr +var _map_size Tsize_t + +var _old_tz_buf [32]int8 +var _old_tz = uintptr(unsafe.Pointer(&_old_tz_buf)) +var _old_tz_size = uint32(32) + +var _lock4 [1]int32 + +func _getint2(tls *TLS, p uintptr) (r int32) { + var x uint32 + _ = x + x = uint32(0) + for { + if !(Uint32FromInt32(int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(p)))))-int32('0')) < uint32(10)) { + break + } + x = Uint32FromInt32(int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(p)))))-int32('0')) + uint32(10)*x + goto _1 + _1: + ; + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + } + return Int32FromUint32(x) +} + +func _getoff(tls *TLS, p uintptr) (r int32) { + var neg, off, v1 int32 + _, _, _ = neg, off, v1 + neg = 0 + if int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(p))))) == int32('-') { + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + neg = int32(1) + } else { + if int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(p))))) == int32('+') { + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + } + } + off = int32(3600) * _getint2(tls, p) + if int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(p))))) == int32(':') { + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + off = off + int32(60)*_getint2(tls, p) + if int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(p))))) == int32(':') { + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + off = off + _getint2(tls, p) + } + } + if neg != 0 { + v1 = -off + } else { + v1 = off + } + return v1 +} + +func _getrule(tls *TLS, p uintptr, rule uintptr) { + var r, v1 int32 + _, _ = r, v1 + v1 = int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(p))))) + **(**int32)(__ccgo_up(rule)) = v1 + r = v1 + if r != int32('M') { + if r == int32('J') { + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + } else { + **(**int32)(__ccgo_up(rule)) = 0 + } + **(**int32)(__ccgo_up(rule + 1*4)) = _getint2(tls, p) + } else { + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + **(**int32)(__ccgo_up(rule + 1*4)) = _getint2(tls, p) + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + **(**int32)(__ccgo_up(rule + 2*4)) = _getint2(tls, p) + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + **(**int32)(__ccgo_up(rule + 3*4)) = _getint2(tls, p) + } + if int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(p))))) == int32('/') { + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + **(**int32)(__ccgo_up(rule + 4*4)) = _getoff(tls, p) + } else { + **(**int32)(__ccgo_up(rule + 4*4)) = int32(7200) + } +} + +func _getname(tls *TLS, d uintptr, p uintptr) { + var i, v3 int32 + _, _ = i, v3 + if int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(p))))) == int32('<') { + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + i = 0 + for { + if !(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(p)) + uintptr(i))) != 0 && int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(p)) + uintptr(i)))) != int32('>')) { + break + } + if i < int32(TZNAME_MAX) { + **(**int8)(__ccgo_up(d + uintptr(i))) = **(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(p)) + uintptr(i))) + } + goto _1 + _1: + ; + i = i + 1 + } + if **(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(p)) + uintptr(i))) != 0 { + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + } + } else { + i = 0 + for { + if !(Uint32FromInt32(int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(p)) + uintptr(i))))|int32(32)-int32('a')) < uint32(26)) { + break + } + if i < int32(TZNAME_MAX) { + **(**int8)(__ccgo_up(d + uintptr(i))) = **(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(p)) + uintptr(i))) + } + goto _2 + _2: + ; + i = i + 1 + } + } + **(**uintptr)(__ccgo_up(p)) += uintptr(i) + if i < int32(TZNAME_MAX) { + v3 = i + } else { + v3 = int32(TZNAME_MAX) + } + **(**int8)(__ccgo_up(d + uintptr(v3))) = 0 +} + +func _zi_read32(tls *TLS, z uintptr) (r Tuint32_t) { + return uint32(**(**uint8)(__ccgo_up(z)))< Uint32FromInt32(Int32FromInt32(PATH_MAX)+Int32FromInt32(1)) { + **(**uintptr)(__ccgo_up(bp + 288)) = uintptr(unsafe.Pointer(&X__utc)) + i = Uint32FromInt32(3) + } + if i >= _old_tz_size { + _old_tz_size = _old_tz_size * uint32(2) + if i >= _old_tz_size { + _old_tz_size = i + uint32(1) + } + if _old_tz_size > Uint32FromInt32(Int32FromInt32(PATH_MAX)+Int32FromInt32(2)) { + _old_tz_size = Uint32FromInt32(Int32FromInt32(PATH_MAX) + Int32FromInt32(2)) + } + _old_tz = Xmalloc(tls, _old_tz_size) + } + if _old_tz != 0 { + Xmemcpy(tls, _old_tz, **(**uintptr)(__ccgo_up(bp + 288)), i+uint32(1)) + } + posix_form = 0 + if int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 288))))) != int32(':') { + **(**uintptr)(__ccgo_up(bp + 292)) = **(**uintptr)(__ccgo_up(bp + 288)) + _getname(tls, bp+301, bp+292) + if **(**uintptr)(__ccgo_up(bp + 292)) != **(**uintptr)(__ccgo_up(bp + 288)) && (int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 292))))) == int32('+') || int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 292))))) == int32('-') || BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 292)))))-uint32('0') < uint32(10)) != 0 || !(Xstrcmp(tls, bp+301, __ccgo_ts+1588) != 0) || !(Xstrcmp(tls, bp+301, __ccgo_ts+1592) != 0)) { + posix_form = int32(1) + } + } + /* Non-suid can use an absolute tzfile pathname or a relative + * pathame beginning with "."; in secure mode, only the + * standard path will be searched. */ + if !(posix_form != 0) { + if int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 288))))) == int32(':') { + **(**uintptr)(__ccgo_up(bp + 288)) = **(**uintptr)(__ccgo_up(bp + 288)) + 1 + } + if int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 288))))) == int32('/') || int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 288))))) == int32('.') { + if !(X__libc.Fsecure != 0) || !(Xstrcmp(tls, **(**uintptr)(__ccgo_up(bp + 288)), __ccgo_ts+1573) != 0) { + map1 = X__map_file(tls, **(**uintptr)(__ccgo_up(bp + 288)), uintptr(unsafe.Pointer(&_map_size))) + } + } else { + l = _strlen(tls, **(**uintptr)(__ccgo_up(bp + 288))) + if l <= uint32(NAME_MAX) && !(Xstrchr(tls, **(**uintptr)(__ccgo_up(bp + 288)), int32('.')) != 0) { + Xmemcpy(tls, pathname, **(**uintptr)(__ccgo_up(bp + 288)), l+uint32(1)) + **(**int8)(__ccgo_up(pathname + uintptr(l))) = 0 + try = uintptr(unsafe.Pointer(&_search)) + for { + if !(!(map1 != 0) && **(**int8)(__ccgo_up(try)) != 0) { + break + } + l = _strlen(tls, try) + Xmemcpy(tls, pathname-uintptr(l), try, l) + map1 = X__map_file(tls, pathname-uintptr(l), uintptr(unsafe.Pointer(&_map_size))) + goto _3 + _3: + ; + try = try + uintptr(l+uint32(1)) + } + } + } + if !(map1 != 0) { + **(**uintptr)(__ccgo_up(bp + 288)) = uintptr(unsafe.Pointer(&X__utc)) + } + } + if map1 != 0 && (_map_size < uint32(44) || Xmemcmp(tls, map1, __ccgo_ts+1596, uint32(4)) != 0) { + X__munmap(tls, map1, _map_size) + map1 = uintptr(0) + **(**uintptr)(__ccgo_up(bp + 288)) = uintptr(unsafe.Pointer(&X__utc)) + } + _zi = map1 + if map1 != 0 { + scale = int32(2) + if Int32FromUint8(**(**uint8)(__ccgo_up(map1 + 4))) != int32('1') { + *(*[6]uint8)(unsafe.Pointer(bp)) = [6]uint8{ + 0: uint8(1), + 1: uint8(1), + 2: uint8(8), + 3: uint8(5), + 4: uint8(6), + 5: uint8(1), + } + skip = _zi_dotprod(tls, _zi+uintptr(20), bp, uint32(6)) + _trans = _zi + uintptr(skip) + uintptr(44) + uintptr(44) + scale = scale + 1 + } else { + _trans = _zi + uintptr(44) + } + _index = _trans + uintptr(_zi_read32(tls, _trans-uintptr(12))<> scale) + if !(n != 0) { + if alt != 0 { + **(**Tsize_t)(__ccgo_up(alt)) = uint32(0) + } + return uint32(0) + } + /* Binary search for 'most-recent rule before t'. */ + for n > uint32(1) { + m = a + n/uint32(2) + x = uint64(_zi_read32(tls, _trans+uintptr(m<> scale) + if a == n-uint32(1) { + return Uint32FromInt32(-Int32FromInt32(1)) + } + if a == uint32(0) { + x = uint64(_zi_read32(tls, _trans)) + if scale == int32(3) { + x = x<>(m-int32(1))&int32(1) + } + return r +} + +/* Convert a POSIX DST rule plus year to seconds since epoch. */ + +func _rule_to_secs(tls *TLS, rule uintptr, year int32) (r int64) { + bp := tls.Alloc(16) + defer tls.Free(16) + var d, days, m, n, wday, x int32 + var t int64 + var _ /* is_leap at bp+0 */ int32 + _, _, _, _, _, _, _ = d, days, m, n, t, wday, x + t = X__year_to_secs(tls, int64(year), bp) + if **(**int32)(__ccgo_up(rule)) != int32('M') { + x = **(**int32)(__ccgo_up(rule + 1*4)) + if **(**int32)(__ccgo_up(rule)) == int32('J') && (x < int32(60) || !(**(**int32)(__ccgo_up(bp)) != 0)) { + x = x - 1 + } + t = t + int64(int32(86400)*x) + } else { + m = **(**int32)(__ccgo_up(rule + 1*4)) + n = **(**int32)(__ccgo_up(rule + 2*4)) + d = **(**int32)(__ccgo_up(rule + 3*4)) + t = t + int64(X__month_to_secs(tls, m-int32(1), **(**int32)(__ccgo_up(bp)))) + wday = int32((t+int64(Int32FromInt32(4)*Int32FromInt32(86400)))%int64(Int32FromInt32(7)*Int32FromInt32(86400))) / int32(86400) + days = d - wday + if days < 0 { + days = days + int32(7) + } + if n == int32(5) && days+int32(28) >= _days_in_month1(tls, m, **(**int32)(__ccgo_up(bp))) { + n = int32(4) + } + t = t + int64(int32(86400)*(days+int32(7)*(n-int32(1)))) + } + t = t + int64(**(**int32)(__ccgo_up(rule + 4*4))) + return t +} + +/* Determine the time zone in effect for a given time in seconds since the + * epoch. It can be given in local or universal time. The results will + * indicate whether DST is in effect at the queried time, and will give both + * the GMT offset for the active zone/DST rule and the opposite DST. This + * enables a caller to efficiently adjust for the case where an explicit + * DST specification mismatches what would be in effect at the time. */ + +func X__secs_to_zone(tls *TLS, t int64, local int32, isdst uintptr, offset uintptr, oppoff uintptr, zonename uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v local=%v isdst=%v offset=%v oppoff=%v zonename=%v, (%v:)", tls, t, local, isdst, offset, oppoff, zonename, origin(2)) + } + bp := tls.Alloc(16) + defer tls.Free(16) + var i Tsize_t + var t0, t1, y int64 + var _ /* alt at bp+0 */ Tsize_t + _, _, _, _ = i, t0, t1, y + ___lock(tls, uintptr(unsafe.Pointer(&_lock4))) + _do_tzset(tls) + if _zi != 0 { + i = _scan_trans(tls, t, local, bp) + if i != Uint32FromInt32(-Int32FromInt32(1)) { + **(**int32)(__ccgo_up(isdst)) = Int32FromUint8(**(**uint8)(__ccgo_up(_types + uintptr(uint32(6)*i+uint32(4))))) + **(**int32)(__ccgo_up(offset)) = int32(Int32FromUint32(_zi_read32(tls, _types+uintptr(uint32(6)*i)))) + **(**uintptr)(__ccgo_up(zonename)) = _abbrevs + uintptr(**(**uint8)(__ccgo_up(_types + uintptr(uint32(6)*i+uint32(5))))) + if oppoff != 0 { + **(**int32)(__ccgo_up(oppoff)) = int32(Int32FromUint32(_zi_read32(tls, _types+uintptr(uint32(6)***(**Tsize_t)(__ccgo_up(bp)))))) + } + ___unlock(tls, uintptr(unsafe.Pointer(&_lock4))) + return + } + } + if !(Xdaylight != 0) { + goto std + } + /* FIXME: may be broken if DST changes right at year boundary? + * Also, this could be more efficient.*/ + y = t/int64(31556952) + int64(70) + for X__year_to_secs(tls, y, uintptr(0)) > t { + y = y - 1 + } + for X__year_to_secs(tls, y+int64(1), uintptr(0)) < t { + y = y + 1 + } + t0 = _rule_to_secs(tls, uintptr(unsafe.Pointer(&_r0)), int32(y)) + t1 = _rule_to_secs(tls, uintptr(unsafe.Pointer(&_r12)), int32(y)) + if !(local != 0) { + t0 = t0 + int64(Xtimezone) + t1 = t1 + int64(_dst_off) + } + if t0 < t1 { + if t >= t0 && t < t1 { + goto dst + } + goto std + } else { + if t >= t1 && t < t0 { + goto std + } + goto dst + } + goto std +std: + ; + **(**int32)(__ccgo_up(isdst)) = 0 + **(**int32)(__ccgo_up(offset)) = -Xtimezone + if oppoff != 0 { + **(**int32)(__ccgo_up(oppoff)) = -_dst_off + } + **(**uintptr)(__ccgo_up(zonename)) = Xtzname[0] + ___unlock(tls, uintptr(unsafe.Pointer(&_lock4))) + return + goto dst +dst: + ; + **(**int32)(__ccgo_up(isdst)) = int32(1) + **(**int32)(__ccgo_up(offset)) = -_dst_off + if oppoff != 0 { + **(**int32)(__ccgo_up(oppoff)) = -Xtimezone + } + **(**uintptr)(__ccgo_up(zonename)) = Xtzname[int32(1)] + ___unlock(tls, uintptr(unsafe.Pointer(&_lock4))) +} + +func ___tzset(tls *TLS) { + ___lock(tls, uintptr(unsafe.Pointer(&_lock4))) + _do_tzset(tls) + ___unlock(tls, uintptr(unsafe.Pointer(&_lock4))) +} + +func X__tm_to_tzname(tls *TLS, tm uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v tm=%v, (%v:)", tls, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + var p uintptr + _ = p + p = (*Ttm)(unsafe.Pointer(tm)).F__tm_zone + ___lock(tls, uintptr(unsafe.Pointer(&_lock4))) + _do_tzset(tls) + if p != uintptr(unsafe.Pointer(&X__utc)) && p != Xtzname[0] && p != Xtzname[int32(1)] && (!(_zi != 0) || uint32(p)-uint32(_abbrevs) >= Uint32FromInt32(int32(_abbrevs_end)-int32(_abbrevs))) { + p = __ccgo_ts + } + ___unlock(tls, uintptr(unsafe.Pointer(&_lock4))) + return p +} + +func X__year_to_secs(tls *TLS, year int64, is_leap uintptr) (r int64) { + if __ccgo_strace { + trc("tls=%v year=%v is_leap=%v, (%v:)", tls, year, is_leap, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var centuries, cycles, leaps, leaps1, rem, y int32 + var _ /* dummy at bp+0 */ int32 + _, _, _, _, _, _ = centuries, cycles, leaps, leaps1, rem, y + if Uint64FromInt64(year)-uint64(2) <= uint64(136) { + y = int32(year) + leaps = (y - int32(68)) >> int32(2) + if !((y-Int32FromInt32(68))&Int32FromInt32(3) != 0) { + leaps = leaps - 1 + if is_leap != 0 { + **(**int32)(__ccgo_up(is_leap)) = int32(1) + } + } else { + if is_leap != 0 { + **(**int32)(__ccgo_up(is_leap)) = 0 + } + } + return int64(int32(31536000)*(y-int32(70)) + int32(86400)*leaps) + } + if !(is_leap != 0) { + is_leap = bp + } + cycles = int32((year - int64(100)) / int64(400)) + rem = int32((year - int64(100)) % int64(400)) + if rem < 0 { + cycles = cycles - 1 + rem = rem + int32(400) + } + if !(rem != 0) { + **(**int32)(__ccgo_up(is_leap)) = int32(1) + centuries = 0 + leaps1 = 0 + } else { + if rem >= int32(200) { + if rem >= int32(300) { + centuries = int32(3) + rem = rem - int32(300) + } else { + centuries = int32(2) + rem = rem - int32(200) + } + } else { + if rem >= int32(100) { + centuries = int32(1) + rem = rem - int32(100) + } else { + centuries = 0 + } + } + if !(rem != 0) { + **(**int32)(__ccgo_up(is_leap)) = 0 + leaps1 = 0 + } else { + leaps1 = Int32FromUint32(Uint32FromInt32(rem) / uint32(4)) + rem = Int32FromUint32(uint32(rem) % Uint32FromUint32(4)) + **(**int32)(__ccgo_up(is_leap)) = BoolInt32(!(rem != 0)) + } + } + leaps1 = leaps1 + (int32(97)*cycles + int32(24)*centuries - **(**int32)(__ccgo_up(is_leap))) + return (year-int64(100))*int64(31536000) + int64(leaps1)*int64(86400) + int64(946684800) + int64(86400) +} + +func Xasctime(tls *TLS, tm uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v tm=%v, (%v:)", tls, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__asctime_r(tls, tm, uintptr(unsafe.Pointer(&_buf9))) +} + +var _buf9 [26]int8 + +func X__asctime_r(tls *TLS, tm uintptr, buf uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v tm=%v buf=%v, (%v:)", tls, tm, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + if Xsnprintf(tls, buf, uint32(26), __ccgo_ts+1601, VaList(bp+8, X__nl_langinfo_l(tls, int32(ABDAY_1)+(*Ttm)(unsafe.Pointer(tm)).Ftm_wday, uintptr(unsafe.Pointer(&X__c_locale))), X__nl_langinfo_l(tls, int32(ABMON_1)+(*Ttm)(unsafe.Pointer(tm)).Ftm_mon, uintptr(unsafe.Pointer(&X__c_locale))), (*Ttm)(unsafe.Pointer(tm)).Ftm_mday, (*Ttm)(unsafe.Pointer(tm)).Ftm_hour, (*Ttm)(unsafe.Pointer(tm)).Ftm_min, (*Ttm)(unsafe.Pointer(tm)).Ftm_sec, int32(1900)+(*Ttm)(unsafe.Pointer(tm)).Ftm_year)) >= int32(26) { + /* ISO C requires us to use the above format string, + * even if it will not fit in the buffer. Thus asctime_r + * is _supposed_ to crash if the fields in tm are too large. + * We follow this behavior and crash "gracefully" to warn + * application developers that they may not be so lucky + * on other implementations (e.g. stack smashing..). + */ + _a_crash(tls) + } + return buf +} + +func Xasctime_r(tls *TLS, tm uintptr, buf uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v tm=%v buf=%v, (%v:)", tls, tm, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__asctime_r(tls, tm, buf) +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xclock(tls *TLS) (r Tclock_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* ts at bp+0 */ Ttimespec + if X__clock_gettime(tls, int32(CLOCK_PROCESS_CPUTIME_ID), bp) != 0 { + return -int32(1) + } + if (**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec > int64(Int32FromInt32(0x7fffffff)/Int32FromInt32(1000000)) || int64((**(**Ttimespec)(__ccgo_up(bp))).Ftv_nsec/int32(1000)) > int64(0x7fffffff)-int64(1000000)*(**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec { + return -int32(1) + } + return int32((**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec*int64(1000000) + int64((**(**Ttimespec)(__ccgo_up(bp))).Ftv_nsec/int32(1000))) +} + +func Xclock_getcpuclockid(tls *TLS, pid Tpid_t, clk uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v pid=%v clk=%v, (%v:)", tls, pid, clk, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var id Tclockid_t + var ret int32 + var _ /* ts at bp+0 */ Ttimespec + _, _ = id, ret + id = Int32FromUint32(Uint32FromInt32(-pid-Int32FromInt32(1))*uint32(8) + uint32(2)) + ret = int32(X__syscall2(tls, int32(Int32FromInt32(__NR_timer_create)+Int32FromInt32(7)), id, int32(bp))) + if ret == -int32(EINVAL) { + ret = -int32(ESRCH) + } + if ret != 0 { + return -ret + } + **(**Tclockid_t)(__ccgo_up(clk)) = id + return 0 +} + +func Xclock_getres(tls *TLS, clk Tclockid_t, ts uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v clk=%v ts=%v, (%v:)", tls, clk, ts, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var r int32 + var _ /* ts32 at bp+0 */ [2]int32 + _ = r + /* On a 32-bit arch, use the old syscall if it exists. */ + if Int32FromInt32(__NR_timer_create)+Int32FromInt32(7) != int32(SYS_clock_getres_time64) { + r = int32(X__syscall2(tls, int32(Int32FromInt32(__NR_timer_create)+Int32FromInt32(7)), clk, int32(bp))) + if !(r != 0) && ts != 0 { + (*Ttimespec)(unsafe.Pointer(ts)).Ftv_sec = int64((**(**[2]int32)(__ccgo_up(bp)))[0]) + (*Ttimespec)(unsafe.Pointer(ts)).Ftv_nsec = (**(**[2]int32)(__ccgo_up(bp)))[int32(1)] + } + return X__syscall_ret(tls, Uint32FromInt32(r)) + } + /* If reaching this point, it's a 64-bit arch or time64-only + * 32-bit arch and we can get result directly into timespec. */ + return X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(Int32FromInt32(__NR_timer_create)+Int32FromInt32(7)), clk, int32(ts)))) +} + +func X__clock_gettime(tls *TLS, clk Tclockid_t, ts uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v clk=%v ts=%v, (%v:)", tls, clk, ts, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var r int32 + var _ /* ts32 at bp+0 */ [2]int32 + _ = r + r = -int32(ENOSYS) + if uint32(8) > uint32(4) { + r = int32(X__syscall2(tls, int32(SYS_clock_gettime64), clk, int32(ts))) + } + if Bool(Int32FromInt32(__NR_timer_create)+Int32FromInt32(6) == int32(SYS_clock_gettime64)) || r != -int32(ENOSYS) { + return X__syscall_ret(tls, Uint32FromInt32(r)) + } + r = int32(X__syscall2(tls, int32(Int32FromInt32(__NR_timer_create)+Int32FromInt32(6)), clk, int32(bp))) + if r == -int32(ENOSYS) && clk == CLOCK_REALTIME { + r = int32(X__syscall2(tls, int32(SYS_gettimeofday_time32), int32(bp), int32(Int32FromInt32(0)))) + **(**int32)(__ccgo_up(bp + 1*4)) *= int32(1000) + } + if !(r != 0) { + (*Ttimespec)(unsafe.Pointer(ts)).Ftv_sec = int64((**(**[2]int32)(__ccgo_up(bp)))[0]) + (*Ttimespec)(unsafe.Pointer(ts)).Ftv_nsec = (**(**[2]int32)(__ccgo_up(bp)))[int32(1)] + return r + } + return X__syscall_ret(tls, Uint32FromInt32(r)) +} + +func Xclock_gettime(tls *TLS, clk Tclockid_t, ts uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v clk=%v ts=%v, (%v:)", tls, clk, ts, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__clock_gettime(tls, clk, ts) +} + +func X__clock_nanosleep(tls *TLS, clk Tclockid_t, flags int32, req uintptr, rem uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v clk=%v flags=%v req=%v rem=%v, (%v:)", tls, clk, flags, req, rem, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var extra int64 + var ns, r int32 + var s Ttime_t + var v1, v2 uint64 + var _ /* ts32 at bp+16 */ [2]int32 + _, _, _, _, _, _ = extra, ns, r, s, v1, v2 + if clk == int32(CLOCK_THREAD_CPUTIME_ID) { + return int32(EINVAL) + } + s = (*Ttimespec)(unsafe.Pointer(req)).Ftv_sec + ns = (*Ttimespec)(unsafe.Pointer(req)).Ftv_nsec + r = -int32(ENOSYS) + if Bool(Int32FromInt32(__NR_timer_create)+Int32FromInt32(8) == int32(SYS_clock_nanosleep_time64)) || !!((Uint64FromInt64(s)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) { + *(*[2]int64)(unsafe.Pointer(bp)) = [2]int64{ + 0: s, + 1: int64(ns), + } + r = int32(___syscall_cp(tls, int32(SYS_clock_nanosleep_time64), clk, flags, int32(bp), int32(rem), 0, 0)) + } + if Bool(Int32FromInt32(__NR_timer_create)+Int32FromInt32(8) == int32(SYS_clock_nanosleep_time64)) || r != -int32(ENOSYS) { + return -r + } + if !((Uint64FromInt64(s)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) { + v1 = Uint64FromInt64(s) + } else { + v1 = uint64(0x7fffffff) + (0+Uint64FromInt64(s))>>int32(63) + } + extra = s - int64(Int32FromUint64(v1)) + if !((Uint64FromInt64(s)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) { + v2 = Uint64FromInt64(s) + } else { + v2 = uint64(0x7fffffff) + (0+Uint64FromInt64(s))>>int32(63) + } + **(**[2]int32)(__ccgo_up(bp + 16)) = [2]int32{ + 0: int32(Int32FromUint64(v2)), + 1: ns, + } + if clk == CLOCK_REALTIME && !(flags != 0) { + r = int32(___syscall_cp(tls, int32(SYS_nanosleep), int32(bp+16), int32(bp+16), 0, 0, 0, 0)) + } else { + r = int32(___syscall_cp(tls, int32(Int32FromInt32(__NR_timer_create)+Int32FromInt32(8)), clk, flags, int32(bp+16), int32(bp+16), 0, 0)) + } + if r == -int32(EINTR) && rem != 0 && !(flags&Int32FromInt32(TIMER_ABSTIME) != 0) { + (*Ttimespec)(unsafe.Pointer(rem)).Ftv_sec = int64((**(**[2]int32)(__ccgo_up(bp + 16)))[0]) + extra + (*Ttimespec)(unsafe.Pointer(rem)).Ftv_nsec = (**(**[2]int32)(__ccgo_up(bp + 16)))[int32(1)] + } + return -r +} + +func Xclock_nanosleep(tls *TLS, clk Tclockid_t, flags int32, req uintptr, rem uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v clk=%v flags=%v req=%v rem=%v, (%v:)", tls, clk, flags, req, rem, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__clock_nanosleep(tls, clk, flags, req, rem) +} + +func Xclock_settime(tls *TLS, clk Tclockid_t, ts uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v clk=%v ts=%v, (%v:)", tls, clk, ts, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var ns, r int32 + var s Ttime_t + _, _, _ = ns, r, s + s = (*Ttimespec)(unsafe.Pointer(ts)).Ftv_sec + ns = (*Ttimespec)(unsafe.Pointer(ts)).Ftv_nsec + r = -int32(ENOSYS) + if Bool(Int32FromInt32(__NR_timer_create)+Int32FromInt32(5) == int32(SYS_clock_settime64)) || !!((Uint64FromInt64(s)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) { + *(*[2]int64)(unsafe.Pointer(bp)) = [2]int64{ + 0: s, + 1: int64(ns), + } + r = int32(X__syscall2(tls, int32(SYS_clock_settime64), clk, int32(bp))) + } + if Bool(Int32FromInt32(__NR_timer_create)+Int32FromInt32(5) == int32(SYS_clock_settime64)) || r != -int32(ENOSYS) { + return X__syscall_ret(tls, Uint32FromInt32(r)) + } + if !!((Uint64FromInt64(s)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) { + return X__syscall_ret(tls, Uint32FromInt32(-Int32FromInt32(EOPNOTSUPP))) + } + *(*[2]int32)(unsafe.Pointer(bp + 16)) = [2]int32{ + 0: int32(s), + 1: ns, + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(Int32FromInt32(__NR_timer_create)+Int32FromInt32(5)), clk, int32(bp+16)))) +} + +func Xctime(tls *TLS, t uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v, (%v:)", tls, t, origin(2)) + defer func() { trc("-> %v", r) }() + } + var tm uintptr + _ = tm + tm = Xlocaltime(tls, t) + if !(tm != 0) { + return uintptr(0) + } + return Xasctime(tls, tm) +} + +func Xctime_r(tls *TLS, t uintptr, buf uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v buf=%v, (%v:)", tls, t, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + var tm_p, v1 uintptr + var _ /* tm at bp+0 */ Ttm + _, _ = tm_p, v1 + tm_p = Xlocaltime_r(tls, t, bp) + if tm_p != 0 { + v1 = Xasctime_r(tls, tm_p, buf) + } else { + v1 = uintptr(0) + } + return v1 +} + +func Xdifftime(tls *TLS, t1 Ttime_t, t0 Ttime_t) (r float64) { + if __ccgo_strace { + trc("tls=%v t1=%v t0=%v, (%v:)", tls, t1, t0, origin(2)) + defer func() { trc("-> %v", r) }() + } + return float64(t1 - t0) +} + +type Ttimeb = struct { + Ftime Ttime_t + Fmillitm uint16 + Ftimezone int16 + Fdstflag int16 +} + +func Xftime(tls *TLS, tp uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v tp=%v, (%v:)", tls, tp, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 int16 + var _ /* ts at bp+0 */ Ttimespec + _ = v1 + Xclock_gettime(tls, CLOCK_REALTIME, bp) + (*Ttimeb)(unsafe.Pointer(tp)).Ftime = (**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec + (*Ttimeb)(unsafe.Pointer(tp)).Fmillitm = Uint16FromInt32((**(**Ttimespec)(__ccgo_up(bp))).Ftv_nsec / int32(1000000)) + v1 = Int16FromInt32(0) + (*Ttimeb)(unsafe.Pointer(tp)).Fdstflag = v1 + (*Ttimeb)(unsafe.Pointer(tp)).Ftimezone = v1 + return 0 +} + +func Xgetdate(tls *TLS, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(112) + defer tls.Free(112) + var datemsk, f, p, ret uintptr + var _ /* cs at bp+100 */ int32 + var _ /* fmt at bp+0 */ [100]int8 + _, _, _, _ = datemsk, f, p, ret + ret = uintptr(0) + datemsk = Xgetenv(tls, __ccgo_ts+1633) + f = uintptr(0) + _pthread_setcancelstate(tls, PTHREAD_CANCEL_DEFERRED, bp+100) + if !(datemsk != 0) { + Xgetdate_err = int32(1) + goto out + } + f = Xfopen(tls, datemsk, __ccgo_ts+315) + if !(f != 0) { + if **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(ENOMEM) { + Xgetdate_err = int32(6) + } else { + Xgetdate_err = int32(2) + } + goto out + } + for Xfgets(tls, bp, int32(100), f) != 0 { + p = Xstrptime(tls, s, bp, uintptr(unsafe.Pointer(&_tmbuf))) + if p != 0 && !(**(**int8)(__ccgo_up(p)) != 0) { + ret = uintptr(unsafe.Pointer(&_tmbuf)) + goto out + } + } + if Xferror(tls, f) != 0 { + Xgetdate_err = int32(5) + } else { + Xgetdate_err = int32(7) + } + goto out +out: + ; + if f != 0 { + Xfclose(tls, f) + } + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 100)), uintptr(0)) + return ret +} + +var _tmbuf Ttm + +func Xgettimeofday(tls *TLS, tv uintptr, tz uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v tv=%v tz=%v, (%v:)", tls, tv, tz, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* ts at bp+0 */ Ttimespec + if !(tv != 0) { + return 0 + } + Xclock_gettime(tls, CLOCK_REALTIME, bp) + (*Ttimeval)(unsafe.Pointer(tv)).Ftv_sec = (**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec + (*Ttimeval)(unsafe.Pointer(tv)).Ftv_usec = int64(int32((**(**Ttimespec)(__ccgo_up(bp))).Ftv_nsec) / int32(1000)) + return 0 +} + +func Xgmtime(tls *TLS, t uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v, (%v:)", tls, t, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__gmtime_r(tls, t, uintptr(unsafe.Pointer(&_tm))) +} + +var _tm Ttm + +func X__gmtime_r(tls *TLS, t uintptr, tm uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v tm=%v, (%v:)", tls, t, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + if X__secs_to_tm(tls, **(**Ttime_t)(__ccgo_up(t)), tm) < 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOVERFLOW) + return uintptr(0) + } + (*Ttm)(unsafe.Pointer(tm)).Ftm_isdst = 0 + (*Ttm)(unsafe.Pointer(tm)).F__tm_gmtoff = 0 + (*Ttm)(unsafe.Pointer(tm)).F__tm_zone = uintptr(unsafe.Pointer(&X__utc)) + return tm +} + +func Xgmtime_r(tls *TLS, t uintptr, tm uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v tm=%v, (%v:)", tls, t, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__gmtime_r(tls, t, tm) +} + +func Xlocaltime(tls *TLS, t uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v, (%v:)", tls, t, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__localtime_r(tls, t, uintptr(unsafe.Pointer(&_tm1))) +} + +var _tm1 Ttm + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func X__localtime_r(tls *TLS, t uintptr, tm uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v tm=%v, (%v:)", tls, t, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + /* Reject time_t values whose year would overflow int because + * __secs_to_zone cannot safely handle them. */ + if **(**Ttime_t)(__ccgo_up(t)) < int64(-Int32FromInt32(1)-Int32FromInt32(0x7fffffff))*Int64FromInt64(31622400) || **(**Ttime_t)(__ccgo_up(t)) > Int64FromInt32(INT_MAX)*Int64FromInt64(31622400) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOVERFLOW) + return uintptr(0) + } + X__secs_to_zone(tls, **(**Ttime_t)(__ccgo_up(t)), 0, tm+32, tm+36, uintptr(0), tm+40) + if X__secs_to_tm(tls, **(**Ttime_t)(__ccgo_up(t))+int64((*Ttm)(unsafe.Pointer(tm)).F__tm_gmtoff), tm) < 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOVERFLOW) + return uintptr(0) + } + return tm +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xlocaltime_r(tls *TLS, t uintptr, tm uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v tm=%v, (%v:)", tls, t, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__localtime_r(tls, t, tm) +} + +func Xmktime(tls *TLS, tm uintptr) (r Ttime_t) { + if __ccgo_strace { + trc("tls=%v tm=%v, (%v:)", tls, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + var t int64 + var _ /* new at bp+0 */ Ttm + var _ /* opp at bp+44 */ int32 + _ = t + t = X__tm_to_secs(tls, tm) + X__secs_to_zone(tls, t, int32(1), bp+32, bp+36, bp+44, bp+40) + if (*Ttm)(unsafe.Pointer(tm)).Ftm_isdst >= 0 && (**(**Ttm)(__ccgo_up(bp))).Ftm_isdst != (*Ttm)(unsafe.Pointer(tm)).Ftm_isdst { + t = t - int64(**(**int32)(__ccgo_up(bp + 44))-(**(**Ttm)(__ccgo_up(bp))).F__tm_gmtoff) + } + t = t - int64((**(**Ttm)(__ccgo_up(bp))).F__tm_gmtoff) + if t != t { + goto error + } + X__secs_to_zone(tls, t, 0, bp+32, bp+36, bp+44, bp+40) + if X__secs_to_tm(tls, t+int64((**(**Ttm)(__ccgo_up(bp))).F__tm_gmtoff), bp) < 0 { + goto error + } + **(**Ttm)(__ccgo_up(tm)) = **(**Ttm)(__ccgo_up(bp)) + return t + goto error +error: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOVERFLOW) + return int64(-int32(1)) +} + +func Xnanosleep(tls *TLS, req uintptr, rem uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v req=%v rem=%v, (%v:)", tls, req, rem, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(-X__clock_nanosleep(tls, CLOCK_REALTIME, 0, req, rem))) +} + +func _is_leap(tls *TLS, y int32) (r int32) { + /* Avoid overflow */ + if y > Int32FromInt32(INT_MAX)-Int32FromInt32(1900) { + y = y - int32(2000) + } + y = y + int32(1900) + return BoolInt32(!(y%Int32FromInt32(4) != 0) && (y%int32(100) != 0 || !(y%Int32FromInt32(400) != 0))) +} + +func _week_num(tls *TLS, tm uintptr) (r int32) { + var dec31, jan1, val int32 + _, _, _ = dec31, jan1, val + val = Int32FromUint32((Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_yday) + uint32(7) - (Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_wday)+uint32(6))%uint32(7)) / uint32(7)) + /* If 1 Jan is just 1-3 days past Monday, + * the previous week is also in this year. */ + if (Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_wday)+uint32(371)-Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_yday)-uint32(2))%uint32(7) <= uint32(2) { + val = val + 1 + } + if !(val != 0) { + val = int32(52) + /* If 31 December of prev year a Thursday, + * or Friday of a leap year, then the + * prev year has 53 weeks. */ + dec31 = Int32FromUint32((Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_wday) + uint32(7) - Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_yday) - uint32(1)) % uint32(7)) + if dec31 == int32(4) || dec31 == int32(5) && _is_leap(tls, (*Ttm)(unsafe.Pointer(tm)).Ftm_year%int32(400)-int32(1)) != 0 { + val = val + 1 + } + } else { + if val == int32(53) { + /* If 1 January is not a Thursday, and not + * a Wednesday of a leap year, then this + * year has only 52 weeks. */ + jan1 = Int32FromUint32((Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_wday) + uint32(371) - Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_yday)) % uint32(7)) + if jan1 != int32(4) && (jan1 != int32(3) || !(_is_leap(tls, (*Ttm)(unsafe.Pointer(tm)).Ftm_year) != 0)) { + val = int32(1) + } + } + } + return val +} + +func X__strftime_fmt_1(tls *TLS, s uintptr, l uintptr, f int32, tm uintptr, loc Tlocale_t, pad int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v l=%v f=%v tm=%v loc=%v pad=%v, (%v:)", tls, s, l, f, tm, loc, pad, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var d, fmt, v4, v5 uintptr + var def_pad, width, v1 int32 + var item Tnl_item + var val int64 + _, _, _, _, _, _, _, _, _ = d, def_pad, fmt, item, val, width, v1, v4, v5 + fmt = __ccgo_ts + 1495 + width = int32(2) + def_pad = int32('0') + switch f { + case int32('a'): + if Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_wday) > uint32(6) { + goto string + } + item = int32(ABDAY_1) + (*Ttm)(unsafe.Pointer(tm)).Ftm_wday + goto nl_strcat + case int32('A'): + if Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_wday) > uint32(6) { + goto string + } + item = int32(DAY_1) + (*Ttm)(unsafe.Pointer(tm)).Ftm_wday + goto nl_strcat + case int32('h'): + fallthrough + case int32('b'): + if Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_mon) > uint32(11) { + goto string + } + item = int32(ABMON_1) + (*Ttm)(unsafe.Pointer(tm)).Ftm_mon + goto nl_strcat + case int32('B'): + if Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_mon) > uint32(11) { + goto string + } + item = int32(MON_1) + (*Ttm)(unsafe.Pointer(tm)).Ftm_mon + goto nl_strcat + case int32('c'): + item = int32(D_T_FMT) + goto nl_strftime + case int32('C'): + val = (int64(1900) + int64((*Ttm)(unsafe.Pointer(tm)).Ftm_year)) / int64(100) + goto number + case int32('e'): + def_pad = int32('_') + fallthrough + case int32('d'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_mday) + goto number + case int32('D'): + fmt = __ccgo_ts + 1641 + goto recu_strftime + case int32('F'): + fmt = __ccgo_ts + 1650 + goto recu_strftime + case int32('g'): + fallthrough + case int32('G'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_year) + int64(1900) + if (*Ttm)(unsafe.Pointer(tm)).Ftm_yday < int32(3) && _week_num(tls, tm) != int32(1) { + val = val - 1 + } else { + if (*Ttm)(unsafe.Pointer(tm)).Ftm_yday > int32(360) && _week_num(tls, tm) == int32(1) { + val = val + 1 + } + } + if f == int32('g') { + val = val % int64(100) + } else { + width = int32(4) + } + goto number + case int32('H'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_hour) + goto number + case int32('l'): + def_pad = int32('_') + fallthrough + case int32('I'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_hour) + if !(val != 0) { + val = int64(12) + } else { + if val > int64(12) { + val = val - int64(12) + } + } + goto number + case int32('j'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_yday + int32(1)) + width = int32(3) + goto number + case int32('k'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_hour) + def_pad = int32('_') + goto number + case int32('m'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_mon + int32(1)) + goto number + case int32('M'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_min) + goto number + case int32('n'): + **(**Tsize_t)(__ccgo_up(l)) = uint32(1) + return __ccgo_ts + 301 + case int32('p'): + if (*Ttm)(unsafe.Pointer(tm)).Ftm_hour >= int32(12) { + v1 = int32(PM_STR) + } else { + v1 = int32(AM_STR) + } + item = v1 + goto nl_strcat + case int32('P'): + if (*Ttm)(unsafe.Pointer(tm)).Ftm_hour >= int32(12) { + v1 = int32(PM_STR) + } else { + v1 = int32(AM_STR) + } + item = v1 + fmt = X__nl_langinfo_l(tls, item, loc) + d = s + **(**Tsize_t)(__ccgo_up(l)) = uint32(0) + for { + if !(**(**int8)(__ccgo_up(fmt)) != 0) { + break + } + v4 = d + d = d + 1 + v5 = fmt + fmt = fmt + 1 + **(**int8)(__ccgo_up(v4)) = int8(Xtolower(tls, int32(**(**int8)(__ccgo_up(v5))))) + goto _3 + _3: + ; + **(**Tsize_t)(__ccgo_up(l)) = **(**Tsize_t)(__ccgo_up(l)) + 1 + } + return s + case int32('r'): + item = int32(T_FMT_AMPM) + goto nl_strftime + case int32('R'): + fmt = __ccgo_ts + 1659 + goto recu_strftime + case int32('s'): + val = X__tm_to_secs(tls, tm) - int64((*Ttm)(unsafe.Pointer(tm)).F__tm_gmtoff) + width = int32(1) + goto number + case int32('S'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_sec) + goto number + case int32('t'): + **(**Tsize_t)(__ccgo_up(l)) = uint32(1) + return __ccgo_ts + 1315 + case int32('T'): + fmt = __ccgo_ts + 1665 + goto recu_strftime + case int32('u'): + if (*Ttm)(unsafe.Pointer(tm)).Ftm_wday != 0 { + v1 = (*Ttm)(unsafe.Pointer(tm)).Ftm_wday + } else { + v1 = int32(7) + } + val = int64(v1) + width = int32(1) + goto number + case int32('U'): + val = Int64FromUint32((Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_yday) + uint32(7) - Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_wday)) / uint32(7)) + goto number + case int32('W'): + val = Int64FromUint32((Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_yday) + uint32(7) - (Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_wday)+uint32(6))%uint32(7)) / uint32(7)) + goto number + case int32('V'): + val = int64(_week_num(tls, tm)) + goto number + case int32('w'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_wday) + width = int32(1) + goto number + case int32('x'): + item = int32(D_FMT) + goto nl_strftime + case int32('X'): + item = int32(T_FMT) + goto nl_strftime + case int32('y'): + val = (int64((*Ttm)(unsafe.Pointer(tm)).Ftm_year) + int64(1900)) % int64(100) + if val < 0 { + val = -val + } + goto number + case int32('Y'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_year) + int64(1900) + if val >= int64(10000) { + **(**Tsize_t)(__ccgo_up(l)) = Uint32FromInt32(Xsnprintf(tls, s, uint32(100), __ccgo_ts+1674, VaList(bp+8, val))) + return s + } + width = int32(4) + goto number + case int32('z'): + if (*Ttm)(unsafe.Pointer(tm)).Ftm_isdst < 0 { + **(**Tsize_t)(__ccgo_up(l)) = uint32(0) + return __ccgo_ts + } + **(**Tsize_t)(__ccgo_up(l)) = Uint32FromInt32(Xsnprintf(tls, s, uint32(100), __ccgo_ts+1680, VaList(bp+8, (*Ttm)(unsafe.Pointer(tm)).F__tm_gmtoff/int32(3600)*int32(100)+(*Ttm)(unsafe.Pointer(tm)).F__tm_gmtoff%int32(3600)/int32(60)))) + return s + case int32('Z'): + if (*Ttm)(unsafe.Pointer(tm)).Ftm_isdst < 0 { + **(**Tsize_t)(__ccgo_up(l)) = uint32(0) + return __ccgo_ts + } + fmt = X__tm_to_tzname(tls, tm) + goto string + case int32('%'): + **(**Tsize_t)(__ccgo_up(l)) = uint32(1) + return __ccgo_ts + 348 + default: + return uintptr(0) + } + goto number +number: + ; + if pad != 0 { + v1 = pad + } else { + v1 = def_pad + } + switch v1 { + case int32('-'): + **(**Tsize_t)(__ccgo_up(l)) = Uint32FromInt32(Xsnprintf(tls, s, uint32(100), __ccgo_ts+1687, VaList(bp+8, val))) + case int32('_'): + **(**Tsize_t)(__ccgo_up(l)) = Uint32FromInt32(Xsnprintf(tls, s, uint32(100), __ccgo_ts+1692, VaList(bp+8, width, val))) + case int32('0'): + fallthrough + default: + **(**Tsize_t)(__ccgo_up(l)) = Uint32FromInt32(Xsnprintf(tls, s, uint32(100), __ccgo_ts+1698, VaList(bp+8, width, val))) + break + } + return s + goto nl_strcat +nl_strcat: + ; + fmt = X__nl_langinfo_l(tls, item, loc) + goto string +string: + ; + **(**Tsize_t)(__ccgo_up(l)) = _strlen(tls, fmt) + return fmt + goto nl_strftime +nl_strftime: + ; + fmt = X__nl_langinfo_l(tls, item, loc) + goto recu_strftime +recu_strftime: + ; + **(**Tsize_t)(__ccgo_up(l)) = X__strftime_l(tls, s, uint32(100), fmt, tm, loc) + if !(**(**Tsize_t)(__ccgo_up(l)) != 0) { + return uintptr(0) + } + return s +} + +func X__strftime_l(tls *TLS, s uintptr, n Tsize_t, f uintptr, tm uintptr, loc Tlocale_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v f=%v tm=%v loc=%v, (%v:)", tls, s, n, f, tm, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(112) + defer tls.Free(112) + var d, l, v2 Tsize_t + var pad, plus, v4 int32 + var t, v3 uintptr + var width uint32 + var v9 bool + var _ /* buf at bp+4 */ [100]int8 + var _ /* k at bp+0 */ Tsize_t + var _ /* p at bp+104 */ uintptr + _, _, _, _, _, _, _, _, _, _ = d, l, pad, plus, t, width, v2, v3, v4, v9 + l = uint32(0) + for { + if !(l < n) { + break + } + if !(**(**int8)(__ccgo_up(f)) != 0) { + **(**int8)(__ccgo_up(s + uintptr(l))) = 0 + return l + } + if int32(**(**int8)(__ccgo_up(f))) != int32('%') { + v2 = l + l = l + 1 + **(**int8)(__ccgo_up(s + uintptr(v2))) = **(**int8)(__ccgo_up(f)) + goto _1 + } + f = f + 1 + pad = 0 + if int32(**(**int8)(__ccgo_up(f))) == int32('-') || int32(**(**int8)(__ccgo_up(f))) == int32('_') || int32(**(**int8)(__ccgo_up(f))) == int32('0') { + v3 = f + f = f + 1 + pad = int32(**(**int8)(__ccgo_up(v3))) + } + v4 = BoolInt32(int32(**(**int8)(__ccgo_up(f))) == Int32FromUint8('+')) + plus = v4 + if v4 != 0 { + f = f + 1 + } + if BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(f)))-uint32('0') < uint32(10)) != 0 { + width = Xstrtoul(tls, f, bp+104, int32(10)) + } else { + width = uint32(0) + **(**uintptr)(__ccgo_up(bp + 104)) = f + } + if int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 104))))) == int32('C') || int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 104))))) == int32('F') || int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 104))))) == int32('G') || int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 104))))) == int32('Y') { + if !(width != 0) && **(**uintptr)(__ccgo_up(bp + 104)) != f { + width = uint32(1) + } + } else { + width = uint32(0) + } + f = **(**uintptr)(__ccgo_up(bp + 104)) + if int32(**(**int8)(__ccgo_up(f))) == int32('E') || int32(**(**int8)(__ccgo_up(f))) == int32('O') { + f = f + 1 + } + t = X__strftime_fmt_1(tls, bp+4, bp, int32(**(**int8)(__ccgo_up(f))), tm, loc, pad) + if !(t != 0) { + break + } + if width != 0 { + /* Trim off any sign and leading zeros, then + * count remaining digits to determine behavior + * for the + flag. */ + if int32(**(**int8)(__ccgo_up(t))) == int32('+') || int32(**(**int8)(__ccgo_up(t))) == int32('-') { + t = t + 1 + **(**Tsize_t)(__ccgo_up(bp)) = **(**Tsize_t)(__ccgo_up(bp)) - 1 + } + for { + if !(int32(**(**int8)(__ccgo_up(t))) == int32('0') && Uint32FromInt32(int32(**(**int8)(__ccgo_up(t + 1)))-int32('0')) < uint32(10)) { + break + } + goto _5 + _5: + ; + t = t + 1 + **(**Tsize_t)(__ccgo_up(bp)) = **(**Tsize_t)(__ccgo_up(bp)) - 1 + } + if width < uint32(**(**Tsize_t)(__ccgo_up(bp))) { + width = uint32(**(**Tsize_t)(__ccgo_up(bp))) + } + d = uint32(0) + for { + if !(Uint32FromInt32(int32(**(**int8)(__ccgo_up(t + uintptr(d))))-int32('0')) < uint32(10)) { + break + } + goto _6 + _6: + ; + d = d + 1 + } + if (*Ttm)(unsafe.Pointer(tm)).Ftm_year < -int32(1900) { + v2 = l + l = l + 1 + **(**int8)(__ccgo_up(s + uintptr(v2))) = int8('-') + width = width - 1 + } else { + if v9 = plus != 0; v9 { + if int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 104))))) == int32('C') { + v4 = int32(3) + } else { + v4 = int32(5) + } + } + if v9 && d+(width-uint32(**(**Tsize_t)(__ccgo_up(bp)))) >= Uint32FromInt32(v4) { + v2 = l + l = l + 1 + **(**int8)(__ccgo_up(s + uintptr(v2))) = int8('+') + width = width - 1 + } + } + for { + if !(width > uint32(**(**Tsize_t)(__ccgo_up(bp))) && l < n) { + break + } + v2 = l + l = l + 1 + **(**int8)(__ccgo_up(s + uintptr(v2))) = int8('0') + goto _11 + _11: + ; + width = width - 1 + } + } + if **(**Tsize_t)(__ccgo_up(bp)) > n-l { + **(**Tsize_t)(__ccgo_up(bp)) = n - l + } + Xmemcpy(tls, s+uintptr(l), t, **(**Tsize_t)(__ccgo_up(bp))) + l = l + **(**Tsize_t)(__ccgo_up(bp)) + goto _1 + _1: + ; + f = f + 1 + } + if n != 0 { + if l == n { + l = n - uint32(1) + } + **(**int8)(__ccgo_up(s + uintptr(l))) = 0 + } + return uint32(0) +} + +func Xstrftime(tls *TLS, s uintptr, n Tsize_t, f uintptr, tm uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v f=%v tm=%v, (%v:)", tls, s, n, f, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__strftime_l(tls, s, n, f, tm, (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale) +} + +func Xstrftime_l(tls *TLS, s uintptr, n Tsize_t, f uintptr, tm uintptr, loc Tlocale_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v f=%v tm=%v loc=%v, (%v:)", tls, s, n, f, tm, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__strftime_l(tls, s, n, f, tm, loc) +} + +func Xstrptime(tls *TLS, s uintptr, f uintptr, tm uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v f=%v tm=%v, (%v:)", tls, s, f, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var adj, i, min, neg, range1, w, want_century, v1, v2, v5, v6 int32 + var dest, ex, v9 uintptr + var len1 Tsize_t + var v8 bool + var _ /* century at bp+4 */ int32 + var _ /* dummy at bp+0 */ int32 + var _ /* new_f at bp+12 */ uintptr + var _ /* relyear at bp+8 */ int32 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = adj, dest, ex, i, len1, min, neg, range1, w, want_century, v1, v2, v5, v6, v8, v9 + want_century = 0 + **(**int32)(__ccgo_up(bp + 4)) = 0 + **(**int32)(__ccgo_up(bp + 8)) = 0 + for **(**int8)(__ccgo_up(f)) != 0 { + if int32(**(**int8)(__ccgo_up(f))) != int32('%') { + v1 = int32(**(**int8)(__ccgo_up(f))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _3 + _3: + if v2 != 0 { + for { + if v8 = **(**int8)(__ccgo_up(s)) != 0; v8 { + v5 = int32(**(**int8)(__ccgo_up(s))) + v6 = BoolInt32(v5 == int32(' ') || Uint32FromInt32(v5)-uint32('\t') < uint32(5)) + goto _7 + _7: + } + if !(v8 && v6 != 0) { + break + } + goto _4 + _4: + ; + s = s + 1 + } + } else { + if int32(**(**int8)(__ccgo_up(s))) != int32(**(**int8)(__ccgo_up(f))) { + return uintptr(0) + } else { + s = s + 1 + } + } + f = f + 1 + continue + } + f = f + 1 + if int32(**(**int8)(__ccgo_up(f))) == int32('+') { + f = f + 1 + } + if BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(f)))-uint32('0') < uint32(10)) != 0 { + w = Int32FromUint32(Xstrtoul(tls, f, bp+12, int32(10))) + f = **(**uintptr)(__ccgo_up(bp + 12)) + } else { + w = -int32(1) + } + adj = 0 + v9 = f + f = f + 1 + switch int32(**(**int8)(__ccgo_up(v9))) { + case int32('A'): + goto _10 + case int32('a'): + goto _11 + case int32('h'): + goto _12 + case int32('B'): + goto _13 + case int32('b'): + goto _14 + case int32('c'): + goto _15 + case int32('C'): + goto _16 + case int32('e'): + goto _17 + case int32('d'): + goto _18 + case int32('D'): + goto _19 + case int32('H'): + goto _20 + case int32('I'): + goto _21 + case int32('j'): + goto _22 + case int32('m'): + goto _23 + case int32('M'): + goto _24 + case int32('t'): + goto _25 + case int32('n'): + goto _26 + case int32('p'): + goto _27 + case int32('r'): + goto _28 + case int32('R'): + goto _29 + case int32('S'): + goto _30 + case int32('T'): + goto _31 + case int32('W'): + goto _32 + case int32('U'): + goto _33 + case int32('w'): + goto _34 + case int32('x'): + goto _35 + case int32('X'): + goto _36 + case int32('y'): + goto _37 + case int32('Y'): + goto _38 + case int32('%'): + goto _39 + default: + goto _40 + } + goto _41 + _11: + ; + _10: + ; + dest = tm + 24 + min = int32(ABDAY_1) + range1 = int32(7) + goto symbolic_range + _14: + ; + _13: + ; + _12: + ; + dest = tm + 16 + min = int32(ABMON_1) + range1 = int32(12) + goto symbolic_range + _15: + ; + s = Xstrptime(tls, s, Xnl_langinfo(tls, int32(D_T_FMT)), tm) + if !(s != 0) { + return uintptr(0) + } + goto _41 + _16: + ; + dest = bp + 4 + if w < 0 { + w = int32(2) + } + want_century = want_century | int32(2) + goto numeric_digits + _18: + ; + _17: + ; + dest = tm + 12 + min = int32(1) + range1 = int32(31) + goto numeric_range + _19: + ; + s = Xstrptime(tls, s, __ccgo_ts+1641, tm) + if !(s != 0) { + return uintptr(0) + } + goto _41 + _20: + ; + dest = tm + 8 + min = 0 + range1 = int32(24) + goto numeric_range + _21: + ; + dest = tm + 8 + min = int32(1) + range1 = int32(12) + goto numeric_range + _22: + ; + dest = tm + 28 + min = int32(1) + range1 = int32(366) + adj = int32(1) + goto numeric_range + _23: + ; + dest = tm + 16 + min = int32(1) + range1 = int32(12) + adj = int32(1) + goto numeric_range + _24: + ; + dest = tm + 4 + min = 0 + range1 = int32(60) + goto numeric_range + _26: + ; + _25: + ; + _44: + ; + if v8 = **(**int8)(__ccgo_up(s)) != 0; v8 { + v1 = int32(**(**int8)(__ccgo_up(s))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _47 + _47: + } + if !(v8 && v2 != 0) { + goto _42 + } + goto _43 + _43: + ; + s = s + 1 + goto _44 + goto _42 + _42: + ; + goto _41 + _27: + ; + ex = Xnl_langinfo(tls, int32(AM_STR)) + len1 = _strlen(tls, ex) + if !(Xstrncasecmp(tls, s, ex, len1) != 0) { + **(**int32)(__ccgo_up(tm + 8)) %= int32(12) + s = s + uintptr(len1) + goto _41 + } + ex = Xnl_langinfo(tls, int32(PM_STR)) + len1 = _strlen(tls, ex) + if !(Xstrncasecmp(tls, s, ex, len1) != 0) { + **(**int32)(__ccgo_up(tm + 8)) %= int32(12) + **(**int32)(__ccgo_up(tm + 8)) += int32(12) + s = s + uintptr(len1) + goto _41 + } + return uintptr(0) + _28: + ; + s = Xstrptime(tls, s, Xnl_langinfo(tls, int32(T_FMT_AMPM)), tm) + if !(s != 0) { + return uintptr(0) + } + goto _41 + _29: + ; + s = Xstrptime(tls, s, __ccgo_ts+1659, tm) + if !(s != 0) { + return uintptr(0) + } + goto _41 + _30: + ; + dest = tm + min = 0 + range1 = int32(61) + goto numeric_range + _31: + ; + s = Xstrptime(tls, s, __ccgo_ts+1665, tm) + if !(s != 0) { + return uintptr(0) + } + goto _41 + _33: + ; + _32: + ; + /* Throw away result, for now. (FIXME?) */ + dest = bp + min = 0 + range1 = int32(54) + goto numeric_range + _34: + ; + dest = tm + 24 + min = 0 + range1 = int32(7) + goto numeric_range + _35: + ; + s = Xstrptime(tls, s, Xnl_langinfo(tls, int32(D_FMT)), tm) + if !(s != 0) { + return uintptr(0) + } + goto _41 + _36: + ; + s = Xstrptime(tls, s, Xnl_langinfo(tls, int32(T_FMT)), tm) + if !(s != 0) { + return uintptr(0) + } + goto _41 + _37: + ; + dest = bp + 8 + w = int32(2) + want_century = want_century | int32(1) + goto numeric_digits + _38: + ; + dest = tm + 20 + if w < 0 { + w = int32(4) + } + adj = int32(1900) + want_century = 0 + goto numeric_digits + _39: + ; + v9 = s + s = s + 1 + if int32(**(**int8)(__ccgo_up(v9))) != int32('%') { + return uintptr(0) + } + goto _41 + _40: + ; + return uintptr(0) + goto numeric_range + numeric_range: + ; + if !(BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(s)))-Uint32FromUint8('0') < Uint32FromInt32(10)) != 0) { + return uintptr(0) + } + **(**int32)(__ccgo_up(dest)) = 0 + i = int32(1) + for { + if !(i <= min+range1 && BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(s)))-uint32('0') < uint32(10)) != 0) { + break + } + v9 = s + s = s + 1 + **(**int32)(__ccgo_up(dest)) = **(**int32)(__ccgo_up(dest))*int32(10) + int32(**(**int8)(__ccgo_up(v9))) - int32('0') + goto _50 + _50: + ; + i = i * int32(10) + } + if Uint32FromInt32(**(**int32)(__ccgo_up(dest))-min) >= Uint32FromInt32(range1) { + return uintptr(0) + } + **(**int32)(__ccgo_up(dest)) -= adj + switch int32(dest) - int32(tm) { + case Int32FromUint32(uint32(UintptrFromInt32(0) + 28)): + } + goto update + goto numeric_digits + numeric_digits: + ; + neg = 0 + if int32(**(**int8)(__ccgo_up(s))) == int32('+') { + s = s + 1 + } else { + if int32(**(**int8)(__ccgo_up(s))) == int32('-') { + neg = int32(1) + s = s + 1 + } + } + if !(BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(s)))-Uint32FromUint8('0') < Uint32FromInt32(10)) != 0) { + return uintptr(0) + } + v1 = Int32FromInt32(0) + i = v1 + **(**int32)(__ccgo_up(dest)) = v1 + for { + if !(i < w && BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(s)))-uint32('0') < uint32(10)) != 0) { + break + } + v9 = s + s = s + 1 + **(**int32)(__ccgo_up(dest)) = **(**int32)(__ccgo_up(dest))*int32(10) + int32(**(**int8)(__ccgo_up(v9))) - int32('0') + goto _52 + _52: + ; + i = i + 1 + } + if neg != 0 { + **(**int32)(__ccgo_up(dest)) = -**(**int32)(__ccgo_up(dest)) + } + **(**int32)(__ccgo_up(dest)) -= adj + goto update + goto symbolic_range + symbolic_range: + ; + i = int32(2)*range1 - int32(1) + for { + if !(i >= 0) { + break + } + ex = Xnl_langinfo(tls, min+i) + len1 = _strlen(tls, ex) + if Xstrncasecmp(tls, s, ex, len1) != 0 { + goto _55 + } + s = s + uintptr(len1) + **(**int32)(__ccgo_up(dest)) = i % range1 + break + goto _55 + _55: + ; + i = i - 1 + } + if i < 0 { + return uintptr(0) + } + goto update + goto update + update: + ; + //FIXME + _41: + } + if want_century != 0 { + (*Ttm)(unsafe.Pointer(tm)).Ftm_year = **(**int32)(__ccgo_up(bp + 8)) + if want_century&int32(2) != 0 { + **(**int32)(__ccgo_up(tm + 20)) += **(**int32)(__ccgo_up(bp + 4))*int32(100) - int32(1900) + } else { + if (*Ttm)(unsafe.Pointer(tm)).Ftm_year <= int32(68) { + **(**int32)(__ccgo_up(tm + 20)) += int32(100) + } + } + } + return s +} + +func Xtime(tls *TLS, t uintptr) (r Ttime_t) { + if __ccgo_strace { + trc("tls=%v t=%v, (%v:)", tls, t, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* ts at bp+0 */ Ttimespec + X__clock_gettime(tls, CLOCK_REALTIME, bp) + if t != 0 { + **(**Ttime_t)(__ccgo_up(t)) = (**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec + } + return (**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec +} + +func Xtimegm(tls *TLS, tm uintptr) (r Ttime_t) { + if __ccgo_strace { + trc("tls=%v tm=%v, (%v:)", tls, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + var t int64 + var _ /* new at bp+0 */ Ttm1 + _ = t + t = X__tm_to_secs(tls, tm) + if X__secs_to_tm(tls, t, bp) < 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOVERFLOW) + return int64(-int32(1)) + } + **(**Ttm1)(__ccgo_up(tm)) = **(**Ttm1)(__ccgo_up(bp)) + (*Ttm1)(unsafe.Pointer(tm)).Ftm_isdst = 0 + (*Ttm1)(unsafe.Pointer(tm)).Ftm_gmtoff = 0 + (*Ttm1)(unsafe.Pointer(tm)).Ftm_zone = uintptr(unsafe.Pointer(&X__utc)) + return t +} + +func Xtimer_delete(tls *TLS, t Ttimer_t) (r int32) { + if __ccgo_strace { + trc("tls=%v t=%v, (%v:)", tls, t, origin(2)) + defer func() { trc("-> %v", r) }() + } + var td Tpthread_t + _ = td + if int32(t) < 0 { + td = uintptr(uint32(t) << Int32FromInt32(1)) + _a_store(tls, td+92, AtomicLoadPInt32(td+92)|(-Int32FromInt32(1)-Int32FromInt32(0x7fffffff))) + X__syscall2(tls, int32(SYS_tkill), (*t__pthread)(unsafe.Pointer(td)).Ftid, int32(Int32FromInt32(SIGTIMER))) + return 0 + } + return int32(X__syscall1(tls, int32(Int32FromInt32(__NR_timer_create)+Int32FromInt32(4)), int32(t))) +} + +func Xtimer_getoverrun(tls *TLS, t Ttimer_t) (r int32) { + if __ccgo_strace { + trc("tls=%v t=%v, (%v:)", tls, t, origin(2)) + defer func() { trc("-> %v", r) }() + } + var td Tpthread_t + _ = td + if int32(t) < 0 { + td = uintptr(uint32(t) << Int32FromInt32(1)) + t = uintptr(Uint32FromInt32(AtomicLoadPInt32(td+92) & Int32FromInt32(INT_MAX))) + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall1(tls, int32(Int32FromInt32(__NR_timer_create)+Int32FromInt32(3)), int32(t)))) +} + +func Xtimer_gettime(tls *TLS, t Ttimer_t, val uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v t=%v val=%v, (%v:)", tls, t, val, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var r int32 + var td Tpthread_t + var _ /* val32 at bp+0 */ [4]int32 + _, _ = r, td + if int32(t) < 0 { + td = uintptr(uint32(t) << Int32FromInt32(1)) + t = uintptr(Uint32FromInt32(AtomicLoadPInt32(td+92) & Int32FromInt32(INT_MAX))) + } + r = -int32(ENOSYS) + if uint32(8) > uint32(4) { + r = int32(X__syscall2(tls, int32(SYS_timer_gettime64), int32(t), int32(val))) + } + if Bool(Int32FromInt32(__NR_timer_create)+Int32FromInt32(2) == int32(SYS_timer_gettime64)) || r != -int32(ENOSYS) { + return X__syscall_ret(tls, Uint32FromInt32(r)) + } + r = int32(X__syscall2(tls, int32(Int32FromInt32(__NR_timer_create)+Int32FromInt32(2)), int32(t), int32(bp))) + if !(r != 0) { + (*Titimerspec)(unsafe.Pointer(val)).Fit_interval.Ftv_sec = int64((**(**[4]int32)(__ccgo_up(bp)))[0]) + (*Titimerspec)(unsafe.Pointer(val)).Fit_interval.Ftv_nsec = (**(**[4]int32)(__ccgo_up(bp)))[int32(1)] + (*Titimerspec)(unsafe.Pointer(val)).Fit_value.Ftv_sec = int64((**(**[4]int32)(__ccgo_up(bp)))[int32(2)]) + (*Titimerspec)(unsafe.Pointer(val)).Fit_value.Ftv_nsec = (**(**[4]int32)(__ccgo_up(bp)))[int32(3)] + } + return X__syscall_ret(tls, Uint32FromInt32(r)) + return X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(Int32FromInt32(__NR_timer_create)+Int32FromInt32(2)), int32(t), int32(val)))) +} + +func Xtimer_settime(tls *TLS, t Ttimer_t, flags int32, val uintptr, old uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v t=%v flags=%v val=%v old=%v, (%v:)", tls, t, flags, val, old, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var ins, r, vns int32 + var is, vs Ttime_t + var td Tpthread_t + var _ /* old32 at bp+48 */ [4]int32 + _, _, _, _, _, _ = ins, is, r, td, vns, vs + if int32(t) < 0 { + td = uintptr(uint32(t) << Int32FromInt32(1)) + t = uintptr(Uint32FromInt32(AtomicLoadPInt32(td+92) & Int32FromInt32(INT_MAX))) + } + is = (*Titimerspec)(unsafe.Pointer(val)).Fit_interval.Ftv_sec + vs = (*Titimerspec)(unsafe.Pointer(val)).Fit_value.Ftv_sec + ins = (*Titimerspec)(unsafe.Pointer(val)).Fit_interval.Ftv_nsec + vns = (*Titimerspec)(unsafe.Pointer(val)).Fit_value.Ftv_nsec + r = -int32(ENOSYS) + if Bool(Int32FromInt32(__NR_timer_create)+Int32FromInt32(1) == int32(SYS_timer_settime64)) || !!((Uint64FromInt64(is)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) || !!((Uint64FromInt64(vs)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) || Bool(uint32(8) > uint32(4)) && old != 0 { + *(*[4]int64)(unsafe.Pointer(bp)) = [4]int64{ + 0: is, + 1: int64(ins), + 2: vs, + 3: int64(vns), + } + r = int32(X__syscall4(tls, int32(SYS_timer_settime64), int32(t), flags, int32(bp), int32(old))) + } + if Bool(Int32FromInt32(__NR_timer_create)+Int32FromInt32(1) == int32(SYS_timer_settime64)) || r != -int32(ENOSYS) { + return X__syscall_ret(tls, Uint32FromInt32(r)) + } + if !!((Uint64FromInt64(is)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) || !!((Uint64FromInt64(vs)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) { + return X__syscall_ret(tls, Uint32FromInt32(-Int32FromInt32(EOPNOTSUPP))) + } + *(*[4]int32)(unsafe.Pointer(bp + 32)) = [4]int32{ + 0: int32(is), + 1: ins, + 2: int32(vs), + 3: vns, + } + r = int32(X__syscall4(tls, int32(Int32FromInt32(__NR_timer_create)+Int32FromInt32(1)), int32(t), flags, int32(bp+32), int32(bp+48))) + if !(r != 0) && old != 0 { + (*Titimerspec)(unsafe.Pointer(old)).Fit_interval.Ftv_sec = int64((**(**[4]int32)(__ccgo_up(bp + 48)))[0]) + (*Titimerspec)(unsafe.Pointer(old)).Fit_interval.Ftv_nsec = (**(**[4]int32)(__ccgo_up(bp + 48)))[int32(1)] + (*Titimerspec)(unsafe.Pointer(old)).Fit_value.Ftv_sec = int64((**(**[4]int32)(__ccgo_up(bp + 48)))[int32(2)]) + (*Titimerspec)(unsafe.Pointer(old)).Fit_value.Ftv_nsec = (**(**[4]int32)(__ccgo_up(bp + 48)))[int32(3)] + } + return X__syscall_ret(tls, Uint32FromInt32(r)) + return X__syscall_ret(tls, Uint32FromInt32(X__syscall4(tls, int32(Int32FromInt32(__NR_timer_create)+Int32FromInt32(1)), int32(t), flags, int32(val), int32(old)))) +} + +type Ttms = struct { + Ftms_utime Tclock_t + Ftms_stime Tclock_t + Ftms_cutime Tclock_t + Ftms_cstime Tclock_t +} + +func Xtimes(tls *TLS, tms uintptr) (r Tclock_t) { + if __ccgo_strace { + trc("tls=%v tms=%v, (%v:)", tls, tms, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall1(tls, int32(SYS_times), int32(tms)) +} + +// C documentation +// +// /* There is no other implemented value than TIME_UTC; all other values +// * are considered erroneous. */ +func Xtimespec_get(tls *TLS, ts uintptr, base int32) (r int32) { + if __ccgo_strace { + trc("tls=%v ts=%v base=%v, (%v:)", tls, ts, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret, v1 int32 + _, _ = ret, v1 + if base != int32(TIME_UTC) { + return 0 + } + ret = X__clock_gettime(tls, CLOCK_REALTIME, ts) + if ret < 0 { + v1 = 0 + } else { + v1 = base + } + return v1 +} + +type Tutimbuf = struct { + Factime Ttime_t + Fmodtime Ttime_t +} + +func Xutime(tls *TLS, path uintptr, times uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v times=%v, (%v:)", tls, path, times, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var v1 uintptr + _ = v1 + if times != 0 { + *(*[2]Ttimespec)(unsafe.Pointer(bp)) = [2]Ttimespec{ + 0: { + Ftv_sec: (*Tutimbuf)(unsafe.Pointer(times)).Factime, + }, + 1: { + Ftv_sec: (*Tutimbuf)(unsafe.Pointer(times)).Fmodtime, + }, + } + v1 = bp + } else { + v1 = uintptr(0) + } + return Xutimensat(tls, -int32(100), path, v1, 0) +} + +func X__wcsftime_l(tls *TLS, s uintptr, n Tsize_t, f uintptr, tm uintptr, loc Tlocale_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v f=%v tm=%v loc=%v, (%v:)", tls, s, n, f, tm, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(512) + defer tls.Free(512) + var l, v2 Tsize_t + var pad, plus, v4 int32 + var t, t_mb, v3 uintptr + var width uint32 + var _ /* buf at bp+4 */ [100]int8 + var _ /* k at bp+0 */ Tsize_t + var _ /* p at bp+504 */ uintptr + var _ /* wbuf at bp+104 */ [100]Twchar_t + _, _, _, _, _, _, _, _, _ = l, pad, plus, t, t_mb, width, v2, v3, v4 + l = uint32(0) + for { + if !(l < n) { + break + } + if !(**(**Twchar_t)(__ccgo_up(f)) != 0) { + **(**Twchar_t)(__ccgo_up(s + uintptr(l)*4)) = 0 + return l + } + if **(**Twchar_t)(__ccgo_up(f)) != int32('%') { + v2 = l + l = l + 1 + **(**Twchar_t)(__ccgo_up(s + uintptr(v2)*4)) = **(**Twchar_t)(__ccgo_up(f)) + goto _1 + } + f += 4 + pad = 0 + if **(**Twchar_t)(__ccgo_up(f)) == int32('-') || **(**Twchar_t)(__ccgo_up(f)) == int32('_') || **(**Twchar_t)(__ccgo_up(f)) == int32('0') { + v3 = f + f += 4 + pad = int32(**(**Twchar_t)(__ccgo_up(v3))) + } + v4 = BoolInt32(**(**Twchar_t)(__ccgo_up(f)) == Int32FromUint8('+')) + plus = v4 + if v4 != 0 { + f += 4 + } + width = Xwcstoul(tls, f, bp+504, int32(10)) + if **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 504)))) == int32('C') || **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 504)))) == int32('F') || **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 504)))) == int32('G') || **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 504)))) == int32('Y') { + if !(width != 0) && **(**uintptr)(__ccgo_up(bp + 504)) != f { + width = uint32(1) + } + } else { + width = uint32(0) + } + f = **(**uintptr)(__ccgo_up(bp + 504)) + if **(**Twchar_t)(__ccgo_up(f)) == int32('E') || **(**Twchar_t)(__ccgo_up(f)) == int32('O') { + f += 4 + } + t_mb = X__strftime_fmt_1(tls, bp+4, bp, int32(**(**Twchar_t)(__ccgo_up(f))), tm, loc, pad) + if !(t_mb != 0) { + break + } + **(**Tsize_t)(__ccgo_up(bp)) = Xmbstowcs(tls, bp+104, t_mb, Uint32FromInt64(400)/Uint32FromInt64(4)) + if **(**Tsize_t)(__ccgo_up(bp)) == Uint32FromInt32(-Int32FromInt32(1)) { + return uint32(0) + } + t = bp + 104 + if width != 0 { + for { + if !(**(**Twchar_t)(__ccgo_up(t)) == int32('+') || **(**Twchar_t)(__ccgo_up(t)) == int32('-') || **(**Twchar_t)(__ccgo_up(t)) == int32('0') && **(**Twchar_t)(__ccgo_up(t + 1*4)) != 0) { + break + } + goto _5 + _5: + ; + t += 4 + **(**Tsize_t)(__ccgo_up(bp)) = **(**Tsize_t)(__ccgo_up(bp)) - 1 + } + width = width - 1 + if plus != 0 && (*Ttm)(unsafe.Pointer(tm)).Ftm_year >= Int32FromInt32(10000)-Int32FromInt32(1900) { + v2 = l + l = l + 1 + **(**Twchar_t)(__ccgo_up(s + uintptr(v2)*4)) = int32('+') + } else { + if (*Ttm)(unsafe.Pointer(tm)).Ftm_year < -int32(1900) { + v2 = l + l = l + 1 + **(**Twchar_t)(__ccgo_up(s + uintptr(v2)*4)) = int32('-') + } else { + width = width + 1 + } + } + for { + if !(width > uint32(**(**Tsize_t)(__ccgo_up(bp))) && l < n) { + break + } + v2 = l + l = l + 1 + **(**Twchar_t)(__ccgo_up(s + uintptr(v2)*4)) = int32('0') + goto _8 + _8: + ; + width = width - 1 + } + } + if **(**Tsize_t)(__ccgo_up(bp)) >= n-l { + **(**Tsize_t)(__ccgo_up(bp)) = n - l + } + Xwmemcpy(tls, s+uintptr(l)*4, t, **(**Tsize_t)(__ccgo_up(bp))) + l = l + **(**Tsize_t)(__ccgo_up(bp)) + goto _1 + _1: + ; + f += 4 + } + if n != 0 { + if l == n { + l = n - uint32(1) + } + **(**Twchar_t)(__ccgo_up(s + uintptr(l)*4)) = 0 + } + return uint32(0) +} + +func Xwcsftime(tls *TLS, wcs uintptr, n Tsize_t, f uintptr, tm uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v wcs=%v n=%v f=%v tm=%v, (%v:)", tls, wcs, n, f, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__wcsftime_l(tls, wcs, n, f, tm, (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale) +} + +func Xwcsftime_l(tls *TLS, s uintptr, n Tsize_t, f uintptr, tm uintptr, loc Tlocale_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v f=%v tm=%v loc=%v, (%v:)", tls, s, n, f, tm, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__wcsftime_l(tls, s, n, f, tm, loc) +} + +func X_exit(tls *TLS, status int32) { + if __ccgo_strace { + trc("tls=%v status=%v, (%v:)", tls, status, origin(2)) + } + X_Exit(tls, status) +} + +func Xaccess(tls *TLS, filename uintptr, amode int32) (r int32) { + if __ccgo_strace { + trc("tls=%v filename=%v amode=%v, (%v:)", tls, filename, amode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_access), int32(filename), amode))) +} + +func Xacct(tls *TLS, filename uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v filename=%v, (%v:)", tls, filename, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall1(tls, int32(SYS_acct), int32(filename)))) +} + +func Xalarm(tls *TLS, seconds uint32) (r uint32) { + if __ccgo_strace { + trc("tls=%v seconds=%v, (%v:)", tls, seconds, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var _ /* it at bp+0 */ Titimerval + var _ /* old at bp+32 */ Titimerval + **(**Titimerval)(__ccgo_up(bp)) = Titimerval{ + Fit_value: Ttimeval{ + Ftv_sec: Int64FromUint32(seconds), + }, + } + **(**Titimerval)(__ccgo_up(bp + 32)) = Titimerval{} + Xsetitimer(tls, ITIMER_REAL, bp, bp+32) + return Uint32FromInt64((**(**Titimerval)(__ccgo_up(bp + 32))).Fit_value.Ftv_sec + BoolInt64(!!((**(**Titimerval)(__ccgo_up(bp + 32))).Fit_value.Ftv_usec != 0))) +} + +func Xchdir(tls *TLS, path uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v, (%v:)", tls, path, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall1(tls, int32(SYS_chdir), int32(path)))) +} + +func Xchown(tls *TLS, path uintptr, uid Tuid_t, gid Tgid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v uid=%v gid=%v, (%v:)", tls, path, uid, gid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_chown32), int32(path), Int32FromUint32(uid), Int32FromUint32(gid)))) +} + +func _dummy12(tls *TLS, fd int32) (r int32) { + return fd +} + +func Xclose(tls *TLS, fd int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + fd = _dummy12(tls, fd) + r = int32(___syscall_cp(tls, int32(SYS_close), fd, 0, 0, 0, 0, 0)) + if r == -int32(EINTR) { + r = 0 + } + return X__syscall_ret(tls, Uint32FromInt32(r)) +} + +func Xctermid(tls *TLS, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 uintptr + _ = v1 + if s != 0 { + v1 = Xstrcpy(tls, s, __ccgo_ts+292) + } else { + v1 = __ccgo_ts + 292 + } + return v1 +} + +func Xdup(tls *TLS, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall1(tls, int32(SYS_dup), fd))) +} + +func Xdup2(tls *TLS, old int32, new1 int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v old=%v new1=%v, (%v:)", tls, old, new1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v1 int32 + _, _ = r, v1 + for { + v1 = int32(X__syscall2(tls, int32(SYS_dup2), old, new1)) + r = v1 + if !(v1 == -int32(EBUSY)) { + break + } + } + return X__syscall_ret(tls, Uint32FromInt32(r)) +} + +func X__dup3(tls *TLS, old int32, new1 int32, flags int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v old=%v new1=%v flags=%v, (%v:)", tls, old, new1, flags, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v1 int32 + _, _ = r, v1 + if old == new1 { + return X__syscall_ret(tls, Uint32FromInt32(-Int32FromInt32(EINVAL))) + } + if flags != 0 { + for { + v1 = int32(X__syscall3(tls, int32(SYS_dup3), old, new1, flags)) + r = v1 + if !(v1 == -int32(EBUSY)) { + break + } + } + if r != -int32(ENOSYS) { + return X__syscall_ret(tls, Uint32FromInt32(r)) + } + if flags & ^Int32FromInt32(O_CLOEXEC) != 0 { + return X__syscall_ret(tls, Uint32FromInt32(-Int32FromInt32(EINVAL))) + } + } + for { + v1 = int32(X__syscall2(tls, int32(SYS_dup2), old, new1)) + r = v1 + if !(v1 == -int32(EBUSY)) { + break + } + } + if r >= 0 && flags&int32(O_CLOEXEC) != 0 { + X__syscall3(tls, int32(SYS_fcntl64), new1, int32(Int32FromInt32(F_SETFD)), int32(Int32FromInt32(FD_CLOEXEC))) + } + return X__syscall_ret(tls, Uint32FromInt32(r)) +} + +func Xdup3(tls *TLS, old int32, new1 int32, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v old=%v new1=%v flags=%v, (%v:)", tls, old, new1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__dup3(tls, old, new1, flags) +} + +type Tctx1 = struct { + Ffd int32 + Ffilename uintptr + Famode int32 + Fp int32 +} + +func _checker(tls *TLS, p uintptr) (r int32) { + bp := tls.Alloc(16) + defer tls.Free(16) + var c uintptr + var _ /* ret at bp+0 */ int32 + _ = c + c = p + if X__syscall2(tls, int32(SYS_setregid32), X__syscall0(tls, int32(SYS_getegid32)), int32(-Int32FromInt32(1))) != 0 || X__syscall2(tls, int32(SYS_setreuid32), X__syscall0(tls, int32(SYS_geteuid32)), int32(-Int32FromInt32(1))) != 0 { + X__syscall1(tls, int32(SYS_exit), int32(Int32FromInt32(1))) + } + **(**int32)(__ccgo_up(bp)) = int32(X__syscall4(tls, int32(SYS_faccessat), (*Tctx1)(unsafe.Pointer(c)).Ffd, int32((*Tctx1)(unsafe.Pointer(c)).Ffilename), (*Tctx1)(unsafe.Pointer(c)).Famode, int32(Int32FromInt32(0)))) + X__syscall3(tls, int32(SYS_write), (*Tctx1)(unsafe.Pointer(c)).Fp, int32(bp), Int32FromUint32(Uint32FromInt64(4))) + return 0 +} + +func Xfaccessat(tls *TLS, fd int32, filename uintptr, amode int32, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v filename=%v amode=%v flag=%v, (%v:)", tls, fd, filename, amode, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret int32 + _ = ret + if flag != 0 { + ret = int32(X__syscall4(tls, int32(SYS_faccessat2), fd, int32(filename), amode, flag)) + if ret != -int32(ENOSYS) { + return X__syscall_ret(tls, Uint32FromInt32(ret)) + } + } + if flag & ^Int32FromInt32(AT_EACCESS) != 0 { + return X__syscall_ret(tls, Uint32FromInt32(-Int32FromInt32(EINVAL))) + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_faccessat), fd, int32(filename), amode))) +} + +func Xfchdir(tls *TLS, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var ret int32 + var _ /* buf at bp+0 */ [27]int8 + _ = ret + ret = int32(X__syscall1(tls, int32(SYS_fchdir), fd)) + if ret != -int32(EBADF) || X__syscall2(tls, int32(SYS_fcntl64), fd, int32(Int32FromInt32(F_GETFD))) < 0 { + return X__syscall_ret(tls, Uint32FromInt32(ret)) + } + X__procfdname(tls, bp, Uint32FromInt32(fd)) + return X__syscall_ret(tls, Uint32FromInt32(X__syscall1(tls, int32(SYS_chdir), int32(bp)))) +} + +func Xfchown(tls *TLS, fd int32, uid Tuid_t, gid Tgid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v uid=%v gid=%v, (%v:)", tls, fd, uid, gid, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var ret int32 + var _ /* buf at bp+0 */ [27]int8 + _ = ret + ret = int32(X__syscall3(tls, int32(SYS_fchown32), fd, Int32FromUint32(uid), Int32FromUint32(gid))) + if ret != -int32(EBADF) || X__syscall2(tls, int32(SYS_fcntl64), fd, int32(Int32FromInt32(F_GETFD))) < 0 { + return X__syscall_ret(tls, Uint32FromInt32(ret)) + } + X__procfdname(tls, bp, Uint32FromInt32(fd)) + return X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_chown32), int32(bp), Int32FromUint32(uid), Int32FromUint32(gid)))) +} + +func Xfchownat(tls *TLS, fd int32, path uintptr, uid Tuid_t, gid Tgid_t, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v path=%v uid=%v gid=%v flag=%v, (%v:)", tls, fd, path, uid, gid, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall5(tls, int32(SYS_fchownat), fd, int32(path), Int32FromUint32(uid), Int32FromUint32(gid), flag))) +} + +func Xfdatasync(tls *TLS, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(___syscall_cp(tls, int32(SYS_fdatasync), fd, 0, 0, 0, 0, 0))) +} + +func Xfsync(tls *TLS, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(___syscall_cp(tls, int32(SYS_fsync), fd, 0, 0, 0, 0, 0))) +} + +func Xftruncate(tls *TLS, fd int32, length Toff_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v length=%v, (%v:)", tls, fd, length, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_ftruncate64), fd, int32(length), int32(length>>Int32FromInt32(32))))) +} + +func Xgetcwd(tls *TLS, buf uintptr, size Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v buf=%v size=%v, (%v:)", tls, buf, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret, v2 int32 + var tmp, v3 uintptr + var v1 t__predefined_size_t + _, _, _, _, _ = ret, tmp, v1, v2, v3 + defer func() { Xrealloc(tls, tmp, 0) }() + if buf != 0 { + v2 = int32(1) + } else { + v2 = int32(PATH_MAX) + } + v1 = Uint32FromInt32(v2) + tmp = Xrealloc(tls, tmp, v1) + if !(buf != 0) { + buf = tmp + size = v1 + } else { + if !(size != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(0) + } + } + ret = X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_getcwd), int32(buf), Int32FromUint32(size)))) + if ret < 0 { + return uintptr(0) + } + if ret == 0 || int32(**(**int8)(__ccgo_up(buf))) != int32('/') { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOENT) + return uintptr(0) + } + if buf == tmp { + v3 = Xstrdup(tls, buf) + } else { + v3 = buf + } + return v3 +} + +func Xgetegid(tls *TLS) (r Tgid_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Uint32FromInt32(X__syscall0(tls, int32(SYS_getegid32))) +} + +func Xgeteuid(tls *TLS) (r Tuid_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Uint32FromInt32(X__syscall0(tls, int32(SYS_geteuid32))) +} + +func Xgetgid(tls *TLS) (r Tgid_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Uint32FromInt32(X__syscall0(tls, int32(SYS_getgid32))) +} + +func Xgetgroups(tls *TLS, count int32, list uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v count=%v list=%v, (%v:)", tls, count, list, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_getgroups32), count, int32(list)))) +} + +func Xgethostname(tls *TLS, name uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v len1=%v, (%v:)", tls, name, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(400) + defer tls.Free(400) + var i Tsize_t + var v2 int8 + var v3 bool + var _ /* uts at bp+0 */ Tutsname1 + _, _, _ = i, v2, v3 + if Xuname(tls, bp) != 0 { + return -int32(1) + } + if len1 > uint32(65) { + len1 = uint32(65) + } + i = uint32(0) + for { + if v3 = i < len1; v3 { + v2 = **(**int8)(__ccgo_up(bp + 65 + uintptr(i))) + **(**int8)(__ccgo_up(name + uintptr(i))) = v2 + } + if !(v3 && v2 != 0) { + break + } + goto _1 + _1: + ; + i = i + 1 + } + if i != 0 && i == len1 { + **(**int8)(__ccgo_up(name + uintptr(i-uint32(1)))) = 0 + } + return 0 +} + +func Xgetlogin(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetenv(tls, __ccgo_ts+1705) +} + +func Xgetlogin_r(tls *TLS, name uintptr, size Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v size=%v, (%v:)", tls, name, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + var logname uintptr + _ = logname + logname = Xgetlogin(tls) + if !(logname != 0) { + return int32(ENXIO) + } /* or...? */ + if _strlen(tls, logname) >= size { + return int32(ERANGE) + } + Xstrcpy(tls, name, logname) + return 0 +} + +func Xgetpgid(tls *TLS, pid Tpid_t) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v pid=%v, (%v:)", tls, pid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall1(tls, int32(SYS_getpgid), pid))) +} + +func Xgetpgrp(tls *TLS) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall1(tls, int32(SYS_getpgid), int32(Int32FromInt32(0)))) +} + +func Xgetpid(tls *TLS) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall0(tls, int32(SYS_getpid))) +} + +func Xgetppid(tls *TLS) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall0(tls, int32(SYS_getppid))) +} + +func Xgetsid(tls *TLS, pid Tpid_t) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v pid=%v, (%v:)", tls, pid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall1(tls, int32(SYS_getsid), pid))) +} + +func Xgetuid(tls *TLS) (r Tuid_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Uint32FromInt32(X__syscall0(tls, int32(SYS_getuid32))) +} + +func Xisatty(tls *TLS, fd int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var r uint32 + var _ /* wsz at bp+0 */ Twinsize + _ = r + r = Uint32FromInt32(X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_ioctl), fd, int32(Int32FromInt32(TIOCGWINSZ)), int32(bp))))) + if r == uint32(0) { + return int32(1) + } + if **(**int32)(__ccgo_up(X__errno_location(tls))) != int32(EBADF) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOTTY) + } + return 0 +} + +func Xlchown(tls *TLS, path uintptr, uid Tuid_t, gid Tgid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v uid=%v gid=%v, (%v:)", tls, path, uid, gid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_lchown32), int32(path), Int32FromUint32(uid), Int32FromUint32(gid)))) +} + +func Xlink(tls *TLS, existing uintptr, new1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v existing=%v new1=%v, (%v:)", tls, existing, new1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_link), int32(existing), int32(new1)))) +} + +func Xlinkat(tls *TLS, fd1 int32, existing uintptr, fd2 int32, new1 uintptr, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd1=%v existing=%v fd2=%v new1=%v flag=%v, (%v:)", tls, fd1, existing, fd2, new1, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall5(tls, int32(SYS_linkat), fd1, int32(existing), fd2, int32(new1), flag))) +} + +func X__lseek(tls *TLS, fd int32, offset Toff_t, whence int32) (r Toff_t) { + if __ccgo_strace { + trc("tls=%v fd=%v offset=%v whence=%v, (%v:)", tls, fd, offset, whence, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 int64 + var _ /* result at bp+0 */ Toff_t + _ = v1 + if X__syscall_ret(tls, Uint32FromInt32(X__syscall5(tls, int32(SYS__llseek), fd, int32(offset>>Int32FromInt32(32)), int32(offset), int32(bp), whence))) != 0 { + v1 = int64(-int32(1)) + } else { + v1 = **(**Toff_t)(__ccgo_up(bp)) + } + return v1 +} + +func Xlseek(tls *TLS, fd int32, offset Toff_t, whence int32) (r Toff_t) { + if __ccgo_strace { + trc("tls=%v fd=%v offset=%v whence=%v, (%v:)", tls, fd, offset, whence, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lseek(tls, fd, offset, whence) +} + +func Xnice(tls *TLS, inc int32) (r int32) { + if __ccgo_strace { + trc("tls=%v inc=%v, (%v:)", tls, inc, origin(2)) + defer func() { trc("-> %v", r) }() + } + var prio int32 + _ = prio + prio = inc + // Only query old priority if it can affect the result. + // This also avoids issues with integer overflow. + if inc > -Int32FromInt32(2)*Int32FromInt32(NZERO) && inc < Int32FromInt32(2)*Int32FromInt32(NZERO) { + prio = prio + Xgetpriority(tls, PRIO_PROCESS, uint32(0)) + } + if prio > Int32FromInt32(NZERO)-Int32FromInt32(1) { + prio = Int32FromInt32(NZERO) - Int32FromInt32(1) + } + if prio < -int32(NZERO) { + prio = -int32(NZERO) + } + if Xsetpriority(tls, PRIO_PROCESS, uint32(0), prio) != 0 { + if **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EACCES) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EPERM) + } + return -int32(1) + } else { + return prio + } + return r +} + +func Xpause(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(___syscall_cp(tls, int32(SYS_pause), 0, 0, 0, 0, 0, 0))) +} + +func Xpipe(tls *TLS, fd uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall1(tls, int32(SYS_pipe), int32(fd)))) +} + +func Xpipe2(tls *TLS, fd uintptr, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v flag=%v, (%v:)", tls, fd, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret int32 + _ = ret + if !(flag != 0) { + return Xpipe(tls, fd) + } + ret = int32(X__syscall2(tls, int32(SYS_pipe2), int32(fd), flag)) + if ret != -int32(ENOSYS) { + return X__syscall_ret(tls, Uint32FromInt32(ret)) + } + if flag & ^(Int32FromInt32(O_CLOEXEC)|Int32FromInt32(O_NONBLOCK)) != 0 { + return X__syscall_ret(tls, Uint32FromInt32(-Int32FromInt32(EINVAL))) + } + ret = Xpipe(tls, fd) + if ret != 0 { + return ret + } + if flag&int32(O_CLOEXEC) != 0 { + X__syscall3(tls, int32(SYS_fcntl64), int32(**(**int32)(__ccgo_up(fd))), int32(Int32FromInt32(F_SETFD)), int32(Int32FromInt32(FD_CLOEXEC))) + X__syscall3(tls, int32(SYS_fcntl64), int32(**(**int32)(__ccgo_up(fd + 1*4))), int32(Int32FromInt32(F_SETFD)), int32(Int32FromInt32(FD_CLOEXEC))) + } + if flag&int32(O_NONBLOCK) != 0 { + X__syscall3(tls, int32(SYS_fcntl64), int32(**(**int32)(__ccgo_up(fd))), int32(Int32FromInt32(F_SETFL)), int32(Int32FromInt32(O_NONBLOCK))) + X__syscall3(tls, int32(SYS_fcntl64), int32(**(**int32)(__ccgo_up(fd + 1*4))), int32(Int32FromInt32(F_SETFL)), int32(Int32FromInt32(O_NONBLOCK))) + } + return 0 +} + +func Xposix_close(tls *TLS, fd int32, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v flags=%v, (%v:)", tls, fd, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xclose(tls, fd) +} + +func Xpread(tls *TLS, fd int32, buf uintptr, size Tsize_t, ofs Toff_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v size=%v ofs=%v, (%v:)", tls, fd, buf, size, ofs, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(___syscall_cp(tls, int32(SYS_pread64), fd, int32(buf), Int32FromUint32(size), int32(ofs), int32(ofs>>Int32FromInt32(32)), 0))) +} + +func Xpreadv(tls *TLS, fd int32, iov uintptr, count int32, ofs Toff_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v iov=%v count=%v ofs=%v, (%v:)", tls, fd, iov, count, ofs, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(___syscall_cp(tls, int32(SYS_preadv), fd, int32(iov), count, int32(ofs), int32(ofs>>Int32FromInt32(32)), 0))) +} + +func Xpwrite(tls *TLS, fd int32, buf uintptr, size Tsize_t, ofs Toff_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v size=%v ofs=%v, (%v:)", tls, fd, buf, size, ofs, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(___syscall_cp(tls, int32(SYS_pwrite64), fd, int32(buf), Int32FromUint32(size), int32(ofs), int32(ofs>>Int32FromInt32(32)), 0))) +} + +func Xpwritev(tls *TLS, fd int32, iov uintptr, count int32, ofs Toff_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v iov=%v count=%v ofs=%v, (%v:)", tls, fd, iov, count, ofs, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(___syscall_cp(tls, int32(SYS_pwritev), fd, int32(iov), count, int32(ofs), int32(ofs>>Int32FromInt32(32)), 0))) +} + +func Xread(tls *TLS, fd int32, buf uintptr, count Tsize_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v count=%v, (%v:)", tls, fd, buf, count, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(___syscall_cp(tls, int32(SYS_read), fd, int32(buf), Int32FromUint32(count), 0, 0, 0))) +} + +func Xreadlink(tls *TLS, path uintptr, buf uintptr, bufsize Tsize_t) (r1 Tssize_t) { + if __ccgo_strace { + trc("tls=%v path=%v buf=%v bufsize=%v, (%v:)", tls, path, buf, bufsize, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var r int32 + var _ /* dummy at bp+0 */ [1]int8 + _ = r + if !(bufsize != 0) { + buf = bp + bufsize = uint32(1) + } + r = int32(X__syscall3(tls, int32(SYS_readlink), int32(path), int32(buf), Int32FromUint32(bufsize))) + if buf == bp && r > 0 { + r = 0 + } + return X__syscall_ret(tls, Uint32FromInt32(r)) +} + +func Xreadlinkat(tls *TLS, fd int32, path uintptr, buf uintptr, bufsize Tsize_t) (r1 Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v path=%v buf=%v bufsize=%v, (%v:)", tls, fd, path, buf, bufsize, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var r int32 + var _ /* dummy at bp+0 */ [1]int8 + _ = r + if !(bufsize != 0) { + buf = bp + bufsize = uint32(1) + } + r = int32(X__syscall4(tls, int32(SYS_readlinkat), fd, int32(path), int32(buf), Int32FromUint32(bufsize))) + if buf == bp && r > 0 { + r = 0 + } + return X__syscall_ret(tls, Uint32FromInt32(r)) +} + +func Xreadv(tls *TLS, fd int32, iov uintptr, count int32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v iov=%v count=%v, (%v:)", tls, fd, iov, count, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(___syscall_cp(tls, int32(SYS_readv), fd, int32(iov), count, 0, 0, 0))) +} + +func Xrenameat(tls *TLS, oldfd int32, old uintptr, newfd int32, new1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v oldfd=%v old=%v newfd=%v new1=%v, (%v:)", tls, oldfd, old, newfd, new1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall4(tls, int32(SYS_renameat), oldfd, int32(old), newfd, int32(new1)))) +} + +func Xrmdir(tls *TLS, path uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v, (%v:)", tls, path, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall1(tls, int32(SYS_rmdir), int32(path)))) +} + +func Xsetgid(tls *TLS, gid Tgid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v gid=%v, (%v:)", tls, gid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__setxid(tls, int32(SYS_setgid32), Int32FromUint32(gid), 0, 0) +} + +func Xsetpgid(tls *TLS, pid Tpid_t, pgid Tpid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v pid=%v pgid=%v, (%v:)", tls, pid, pgid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_setpgid), pid, pgid))) +} + +func Xsetpgrp(tls *TLS) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xsetpgid(tls, 0, 0) +} + +func Xsetsid(tls *TLS) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall0(tls, int32(SYS_setsid)))) +} + +func Xsetuid(tls *TLS, uid Tuid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v uid=%v, (%v:)", tls, uid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__setxid(tls, int32(SYS_setuid32), Int32FromUint32(uid), 0, 0) +} + +type Tctx2 = struct { + Fid int32 + Feid int32 + Fsid int32 + Fnr int32 + Fret int32 +} + +func _do_setxid(tls *TLS, p uintptr) { + var c uintptr + var ret int32 + _, _ = c, ret + c = p + if (*Tctx2)(unsafe.Pointer(c)).Fret < 0 { + return + } + ret = int32(X__syscall3(tls, (*Tctx2)(unsafe.Pointer(c)).Fnr, (*Tctx2)(unsafe.Pointer(c)).Fid, (*Tctx2)(unsafe.Pointer(c)).Feid, (*Tctx2)(unsafe.Pointer(c)).Fsid)) + if ret != 0 && !((*Tctx2)(unsafe.Pointer(c)).Fret != 0) { + /* If one thread fails to set ids after another has already + * succeeded, forcibly killing the process is the only safe + * thing to do. State is inconsistent and dangerous. Use + * SIGKILL because it is uncatchable. */ + X__block_all_sigs(tls, uintptr(0)) + X__syscall2(tls, int32(SYS_kill), X__syscall0(tls, int32(SYS_getpid)), int32(Int32FromInt32(SIGKILL))) + } + (*Tctx2)(unsafe.Pointer(c)).Fret = ret +} + +func X__setxid(tls *TLS, nr int32, id int32, eid int32, sid int32) (r int32) { + if __ccgo_strace { + trc("tls=%v nr=%v id=%v eid=%v sid=%v, (%v:)", tls, nr, id, eid, sid, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var v1 int32 + var _ /* c at bp+0 */ Tctx2 + _ = v1 + /* ret is initially nonzero so that failure of the first thread does not + * trigger the safety kill above. */ + **(**Tctx2)(__ccgo_up(bp)) = Tctx2{ + Fid: id, + Feid: eid, + Fsid: sid, + Fnr: nr, + Fret: int32(1), + } + ___synccall(tls, __ccgo_fp(_do_setxid), bp) + if (**(**Tctx2)(__ccgo_up(bp))).Fret > 0 { + v1 = -int32(EAGAIN) + } else { + v1 = (**(**Tctx2)(__ccgo_up(bp))).Fret + } + return X__syscall_ret(tls, Uint32FromInt32(v1)) +} + +func Xsleep(tls *TLS, seconds uint32) (r uint32) { + if __ccgo_strace { + trc("tls=%v seconds=%v, (%v:)", tls, seconds, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* tv at bp+0 */ Ttimespec + **(**Ttimespec)(__ccgo_up(bp)) = Ttimespec{ + Ftv_sec: Int64FromUint32(seconds), + } + if Xnanosleep(tls, bp, bp) != 0 { + return Uint32FromInt64((**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec) + } + return uint32(0) +} + +func Xsymlink(tls *TLS, existing uintptr, new1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v existing=%v new1=%v, (%v:)", tls, existing, new1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_symlink), int32(existing), int32(new1)))) +} + +func Xsymlinkat(tls *TLS, existing uintptr, fd int32, new1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v existing=%v fd=%v new1=%v, (%v:)", tls, existing, fd, new1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_symlinkat), int32(existing), fd, int32(new1)))) +} + +func Xsync(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + X__syscall0(tls, int32(SYS_sync)) +} + +func Xtcgetpgrp(tls *TLS, fd int32) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var _ /* pgrp at bp+0 */ int32 + if Xioctl(tls, fd, int32(TIOCGPGRP), VaList(bp+16, bp)) < 0 { + return -int32(1) + } + return **(**int32)(__ccgo_up(bp)) +} + +func Xtcsetpgrp(tls *TLS, fd int32, pgrp Tpid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v pgrp=%v, (%v:)", tls, fd, pgrp, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var _ /* pgrp_int at bp+0 */ int32 + **(**int32)(__ccgo_up(bp)) = pgrp + return Xioctl(tls, fd, int32(TIOCSPGRP), VaList(bp+16, bp)) +} + +func Xtruncate(tls *TLS, path uintptr, length Toff_t) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v length=%v, (%v:)", tls, path, length, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_truncate64), int32(path), int32(length), int32(length>>Int32FromInt32(32))))) +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xttyname(tls *TLS, fd int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + var result, v1 int32 + _, _ = result, v1 + v1 = Xttyname_r(tls, fd, uintptr(unsafe.Pointer(&_buf10)), uint32(32)) + result = v1 + if v1 != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = result + return UintptrFromInt32(0) + } + return uintptr(unsafe.Pointer(&_buf10)) +} + +var _buf10 [32]int8 + +func Xttyname_r(tls *TLS, fd int32, name uintptr, size Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v name=%v size=%v, (%v:)", tls, fd, name, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(320) + defer tls.Free(320) + var l Tssize_t + var _ /* procname at bp+288 */ [29]int8 + var _ /* st1 at bp+0 */ Tstat + var _ /* st2 at bp+144 */ Tstat + _ = l + if !(Xisatty(tls, fd) != 0) { + return **(**int32)(__ccgo_up(X__errno_location(tls))) + } + X__procfdname(tls, bp+288, Uint32FromInt32(fd)) + l = Xreadlink(tls, bp+288, name, size) + if l < 0 { + return **(**int32)(__ccgo_up(X__errno_location(tls))) + } else { + if Uint32FromInt32(l) == size { + return int32(ERANGE) + } + } + **(**int8)(__ccgo_up(name + uintptr(l))) = 0 + if Xstat(tls, name, bp) != 0 || Xfstat(tls, fd, bp+144) != 0 { + return **(**int32)(__ccgo_up(X__errno_location(tls))) + } + if (**(**Tstat)(__ccgo_up(bp))).Fst_dev != (**(**Tstat)(__ccgo_up(bp + 144))).Fst_dev || (**(**Tstat)(__ccgo_up(bp))).Fst_ino != (**(**Tstat)(__ccgo_up(bp + 144))).Fst_ino { + return int32(ENODEV) + } + return 0 +} + +func Xualarm(tls *TLS, value uint32, interval uint32) (r uint32) { + if __ccgo_strace { + trc("tls=%v value=%v interval=%v, (%v:)", tls, value, interval, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var _ /* it at bp+0 */ Titimerval + var _ /* it_old at bp+32 */ Titimerval + **(**Titimerval)(__ccgo_up(bp)) = Titimerval{ + Fit_interval: Ttimeval{ + Ftv_usec: Int64FromUint32(interval), + }, + Fit_value: Ttimeval{ + Ftv_usec: Int64FromUint32(value), + }, + } + Xsetitimer(tls, ITIMER_REAL, bp, bp+32) + return Uint32FromInt64((**(**Titimerval)(__ccgo_up(bp + 32))).Fit_value.Ftv_sec*int64(1000000) + (**(**Titimerval)(__ccgo_up(bp + 32))).Fit_value.Ftv_usec) +} + +func Xunlink(tls *TLS, path uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v, (%v:)", tls, path, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall1(tls, int32(SYS_unlink), int32(path)))) +} + +func Xunlinkat(tls *TLS, fd int32, path uintptr, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v path=%v flag=%v, (%v:)", tls, fd, path, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_unlinkat), fd, int32(path), flag))) +} + +func Xusleep(tls *TLS, useconds uint32) (r int32) { + if __ccgo_strace { + trc("tls=%v useconds=%v, (%v:)", tls, useconds, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* tv at bp+0 */ Ttimespec + **(**Ttimespec)(__ccgo_up(bp)) = Ttimespec{ + Ftv_sec: Int64FromUint32(useconds / uint32(1000000)), + Ftv_nsec: Int32FromUint32(useconds % uint32(1000000) * uint32(1000)), + } + return Xnanosleep(tls, bp, bp) +} + +func Xwrite(tls *TLS, fd int32, buf uintptr, count Tsize_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v count=%v, (%v:)", tls, fd, buf, count, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(___syscall_cp(tls, int32(SYS_write), fd, int32(buf), Int32FromUint32(count), 0, 0, 0))) +} + +func Xwritev(tls *TLS, fd int32, iov uintptr, count int32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v iov=%v count=%v, (%v:)", tls, fd, iov, count, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(___syscall_cp(tls, int32(SYS_writev), fd, int32(iov), count, 0, 0, 0))) +} + +type Ttime32_t = int32 + +type Ttimeval32 = struct { + Ftv_sec int32 + Ftv_usec int32 +} + +type Titimerval32 = struct { + Fit_interval Ttimeval32 + Fit_value Ttimeval32 +} + +type Ttimespec32 = struct { + Ftv_sec int32 + Ftv_nsec int32 +} + +type Titimerspec32 = struct { + Fit_interval Ttimespec32 + Fit_value Ttimespec32 +} + +func X__fxstat(tls *TLS, ver int32, fd int32, buf uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v ver=%v fd=%v buf=%v, (%v:)", tls, ver, fd, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fstat_time32(tls, fd, buf) +} + +func X__fxstatat(tls *TLS, ver int32, fd int32, path uintptr, buf uintptr, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v ver=%v fd=%v path=%v buf=%v flag=%v, (%v:)", tls, ver, fd, path, buf, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fstatat_time32(tls, fd, path, buf, flag) +} + +func X__lxstat(tls *TLS, ver int32, path uintptr, buf uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v ver=%v path=%v buf=%v, (%v:)", tls, ver, path, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lstat_time32(tls, path, buf) +} + +func X__xstat(tls *TLS, ver int32, path uintptr, buf uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v ver=%v path=%v buf=%v, (%v:)", tls, ver, path, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__stat_time32(tls, path, buf) +} + +type Tregister_t = int32 + +type Tu_int64_t = uint64 + +type Tu_int8_t = uint8 + +type Tu_int16_t = uint16 + +type Tu_int32_t = uint32 + +type Tcaddr_t = uintptr + +type Tu_char = uint8 + +type Tu_short = uint16 + +type Tushort = uint16 + +type Tu_int = uint32 + +type Tuint = uint32 + +type Tu_long = uint32 + +type Tulong = uint32 + +type Tquad_t = int64 + +type Tu_quad_t = uint64 + +func X__adjtime32(tls *TLS, in32 uintptr, out32 uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v in32=%v out32=%v, (%v:)", tls, in32, out32, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var r int32 + var _ /* out at bp+16 */ Ttimeval + _ = r + *(*Ttimeval)(unsafe.Pointer(bp)) = Ttimeval{ + Ftv_sec: int64((*Ttimeval32)(unsafe.Pointer(in32)).Ftv_sec), + Ftv_usec: int64((*Ttimeval32)(unsafe.Pointer(in32)).Ftv_usec), + } + r = Xadjtime(tls, bp, bp+16) + if r != 0 { + return r + } + /* We can't range-check the result because success was already + * committed by the above call. */ + if out32 != 0 { + (*Ttimeval32)(unsafe.Pointer(out32)).Ftv_sec = int32((**(**Ttimeval)(__ccgo_up(bp + 16))).Ftv_sec) + (*Ttimeval32)(unsafe.Pointer(out32)).Ftv_usec = int32((**(**Ttimeval)(__ccgo_up(bp + 16))).Ftv_usec) + } + return r +} + +func X__adjtimex_time32(tls *TLS, tx32 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v tx32=%v, (%v:)", tls, tx32, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__clock_adjtime32(tls, CLOCK_REALTIME, tx32) +} + +type Ttimex32 = struct { + Fmodes uint32 + Foffset int32 + Ffreq int32 + Fmaxerror int32 + Festerror int32 + Fstatus int32 + Fconstant int32 + Fprecision int32 + Ftolerance int32 + Ftime Ttimeval32 + Ftick int32 + Fppsfreq int32 + Fjitter int32 + Fshift int32 + Fstabil int32 + Fjitcnt int32 + Fcalcnt int32 + Ferrcnt int32 + Fstbcnt int32 + Ftai int32 + F__padding [11]int32 +} + +func X__clock_adjtime32(tls *TLS, clock_id Tclockid_t, tx32 uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v clock_id=%v tx32=%v, (%v:)", tls, clock_id, tx32, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(144) + defer tls.Free(144) + var r int32 + var _ /* utx at bp+0 */ Ttimex + _ = r + **(**Ttimex)(__ccgo_up(bp)) = Ttimex{ + Fmodes: (*Ttimex32)(unsafe.Pointer(tx32)).Fmodes, + Foffset: (*Ttimex32)(unsafe.Pointer(tx32)).Foffset, + Ffreq: (*Ttimex32)(unsafe.Pointer(tx32)).Ffreq, + Fmaxerror: (*Ttimex32)(unsafe.Pointer(tx32)).Fmaxerror, + Festerror: (*Ttimex32)(unsafe.Pointer(tx32)).Festerror, + Fstatus: (*Ttimex32)(unsafe.Pointer(tx32)).Fstatus, + Fconstant: (*Ttimex32)(unsafe.Pointer(tx32)).Fconstant, + Fprecision: (*Ttimex32)(unsafe.Pointer(tx32)).Fprecision, + Ftolerance: (*Ttimex32)(unsafe.Pointer(tx32)).Ftolerance, + Ftime: Ttimeval{ + Ftv_sec: int64((*Ttimex32)(unsafe.Pointer(tx32)).Ftime.Ftv_sec), + Ftv_usec: int64((*Ttimex32)(unsafe.Pointer(tx32)).Ftime.Ftv_usec), + }, + Ftick: (*Ttimex32)(unsafe.Pointer(tx32)).Ftick, + Fppsfreq: (*Ttimex32)(unsafe.Pointer(tx32)).Fppsfreq, + Fjitter: (*Ttimex32)(unsafe.Pointer(tx32)).Fjitter, + Fshift: (*Ttimex32)(unsafe.Pointer(tx32)).Fshift, + Fstabil: (*Ttimex32)(unsafe.Pointer(tx32)).Fstabil, + Fjitcnt: (*Ttimex32)(unsafe.Pointer(tx32)).Fjitcnt, + Fcalcnt: (*Ttimex32)(unsafe.Pointer(tx32)).Fcalcnt, + Ferrcnt: (*Ttimex32)(unsafe.Pointer(tx32)).Ferrcnt, + Fstbcnt: (*Ttimex32)(unsafe.Pointer(tx32)).Fstbcnt, + Ftai: (*Ttimex32)(unsafe.Pointer(tx32)).Ftai, + } + r = Xclock_adjtime(tls, clock_id, bp) + if r < 0 { + return r + } + (*Ttimex32)(unsafe.Pointer(tx32)).Fmodes = (**(**Ttimex)(__ccgo_up(bp))).Fmodes + (*Ttimex32)(unsafe.Pointer(tx32)).Foffset = (**(**Ttimex)(__ccgo_up(bp))).Foffset + (*Ttimex32)(unsafe.Pointer(tx32)).Ffreq = (**(**Ttimex)(__ccgo_up(bp))).Ffreq + (*Ttimex32)(unsafe.Pointer(tx32)).Fmaxerror = (**(**Ttimex)(__ccgo_up(bp))).Fmaxerror + (*Ttimex32)(unsafe.Pointer(tx32)).Festerror = (**(**Ttimex)(__ccgo_up(bp))).Festerror + (*Ttimex32)(unsafe.Pointer(tx32)).Fstatus = (**(**Ttimex)(__ccgo_up(bp))).Fstatus + (*Ttimex32)(unsafe.Pointer(tx32)).Fconstant = (**(**Ttimex)(__ccgo_up(bp))).Fconstant + (*Ttimex32)(unsafe.Pointer(tx32)).Fprecision = (**(**Ttimex)(__ccgo_up(bp))).Fprecision + (*Ttimex32)(unsafe.Pointer(tx32)).Ftolerance = (**(**Ttimex)(__ccgo_up(bp))).Ftolerance + (*Ttimex32)(unsafe.Pointer(tx32)).Ftime.Ftv_sec = int32((**(**Ttimex)(__ccgo_up(bp))).Ftime.Ftv_sec) + (*Ttimex32)(unsafe.Pointer(tx32)).Ftime.Ftv_usec = int32((**(**Ttimex)(__ccgo_up(bp))).Ftime.Ftv_usec) + (*Ttimex32)(unsafe.Pointer(tx32)).Ftick = (**(**Ttimex)(__ccgo_up(bp))).Ftick + (*Ttimex32)(unsafe.Pointer(tx32)).Fppsfreq = (**(**Ttimex)(__ccgo_up(bp))).Fppsfreq + (*Ttimex32)(unsafe.Pointer(tx32)).Fjitter = (**(**Ttimex)(__ccgo_up(bp))).Fjitter + (*Ttimex32)(unsafe.Pointer(tx32)).Fshift = (**(**Ttimex)(__ccgo_up(bp))).Fshift + (*Ttimex32)(unsafe.Pointer(tx32)).Fstabil = (**(**Ttimex)(__ccgo_up(bp))).Fstabil + (*Ttimex32)(unsafe.Pointer(tx32)).Fjitcnt = (**(**Ttimex)(__ccgo_up(bp))).Fjitcnt + (*Ttimex32)(unsafe.Pointer(tx32)).Fcalcnt = (**(**Ttimex)(__ccgo_up(bp))).Fcalcnt + (*Ttimex32)(unsafe.Pointer(tx32)).Ferrcnt = (**(**Ttimex)(__ccgo_up(bp))).Ferrcnt + (*Ttimex32)(unsafe.Pointer(tx32)).Fstbcnt = (**(**Ttimex)(__ccgo_up(bp))).Fstbcnt + (*Ttimex32)(unsafe.Pointer(tx32)).Ftai = (**(**Ttimex)(__ccgo_up(bp))).Ftai + return r +} + +func X__clock_getres_time32(tls *TLS, clk Tclockid_t, ts32 uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v clk=%v ts32=%v, (%v:)", tls, clk, ts32, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var r int32 + var _ /* ts at bp+0 */ Ttimespec + _ = r + r = Xclock_getres(tls, clk, bp) + if !(r != 0) && ts32 != 0 { + (*Ttimespec32)(unsafe.Pointer(ts32)).Ftv_sec = int32((**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec) + (*Ttimespec32)(unsafe.Pointer(ts32)).Ftv_nsec = (**(**Ttimespec)(__ccgo_up(bp))).Ftv_nsec + } + return r +} + +func X__clock_gettime32(tls *TLS, clk Tclockid_t, ts32 uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v clk=%v ts32=%v, (%v:)", tls, clk, ts32, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var r int32 + var _ /* ts at bp+0 */ Ttimespec + _ = r + r = Xclock_gettime(tls, clk, bp) + if r != 0 { + return r + } + if (**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec < int64(-Int32FromInt32(1)-Int32FromInt32(0x7fffffff)) || (**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec > int64(Int32FromInt32(INT32_MAX)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOVERFLOW) + return -int32(1) + } + (*Ttimespec32)(unsafe.Pointer(ts32)).Ftv_sec = int32((**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec) + (*Ttimespec32)(unsafe.Pointer(ts32)).Ftv_nsec = (**(**Ttimespec)(__ccgo_up(bp))).Ftv_nsec + return 0 +} + +func X__clock_nanosleep_time32(tls *TLS, clk Tclockid_t, flags int32, req32 uintptr, rem32 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v clk=%v flags=%v req32=%v rem32=%v, (%v:)", tls, clk, flags, req32, rem32, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var ret int32 + var _ /* rem at bp+16 */ Ttimespec + _ = ret + *(*Ttimespec)(unsafe.Pointer(bp)) = Ttimespec{ + Ftv_sec: int64((*Ttimespec32)(unsafe.Pointer(req32)).Ftv_sec), + Ftv_nsec: (*Ttimespec32)(unsafe.Pointer(req32)).Ftv_nsec, + } + ret = Xclock_nanosleep(tls, clk, flags, bp, bp+16) + if ret == int32(EINTR) && rem32 != 0 && !(flags&Int32FromInt32(TIMER_ABSTIME) != 0) { + (*Ttimespec32)(unsafe.Pointer(rem32)).Ftv_sec = int32((**(**Ttimespec)(__ccgo_up(bp + 16))).Ftv_sec) + (*Ttimespec32)(unsafe.Pointer(rem32)).Ftv_nsec = (**(**Ttimespec)(__ccgo_up(bp + 16))).Ftv_nsec + } + return ret +} + +func X__clock_settime32(tls *TLS, clk Tclockid_t, ts32 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v clk=%v ts32=%v, (%v:)", tls, clk, ts32, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + *(*Ttimespec)(unsafe.Pointer(bp)) = Ttimespec{ + Ftv_sec: int64((*Ttimespec32)(unsafe.Pointer(ts32)).Ftv_sec), + Ftv_nsec: (*Ttimespec32)(unsafe.Pointer(ts32)).Ftv_nsec, + } + return Xclock_settime(tls, clk, bp) +} + +func X__ctime32(tls *TLS, t uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v, (%v:)", tls, t, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + *(*Ttime_t)(unsafe.Pointer(bp)) = int64(**(**Ttime32_t)(__ccgo_up(t))) + return Xctime(tls, bp) +} + +func X__ctime32_r(tls *TLS, t uintptr, buf uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v buf=%v, (%v:)", tls, t, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + *(*Ttime_t)(unsafe.Pointer(bp)) = int64(**(**Ttime32_t)(__ccgo_up(t))) + return Xctime_r(tls, bp, buf) +} + +func X__difftime32(tls *TLS, t1 Ttime32_t, t2 Ttime32_t) (r float64) { + if __ccgo_strace { + trc("tls=%v t1=%v t2=%v, (%v:)", tls, t1, t2, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xdifftime(tls, int64(t1), int64(t2)) +} + +func X__fstat_time32(tls *TLS, fd int32, st32 uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v st32=%v, (%v:)", tls, fd, st32, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(144) + defer tls.Free(144) + var r int32 + var _ /* st at bp+0 */ Tstat + _ = r + r = Xfstat(tls, fd, bp) + if !(r != 0) { + Xmemcpy(tls, st32, bp, uint32(UintptrFromInt32(0)+96)) + } + return r +} + +func X__fstatat_time32(tls *TLS, fd int32, path uintptr, st32 uintptr, flag int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v path=%v st32=%v flag=%v, (%v:)", tls, fd, path, st32, flag, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(144) + defer tls.Free(144) + var r int32 + var _ /* st at bp+0 */ Tstat + _ = r + r = Xfstatat(tls, fd, path, bp, flag) + if !(r != 0) { + Xmemcpy(tls, st32, bp, uint32(UintptrFromInt32(0)+96)) + } + return r +} + +type Ttimeb32 = struct { + Ftime Tint32_t + Fmillitm uint16 + Ftimezone int16 + Fdstflag int16 +} + +func X__ftime32(tls *TLS, tp uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v tp=%v, (%v:)", tls, tp, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* tb at bp+0 */ Ttimeb + if Xftime(tls, bp) < 0 { + return -int32(1) + } + if (**(**Ttimeb)(__ccgo_up(bp))).Ftime < int64(-Int32FromInt32(1)-Int32FromInt32(0x7fffffff)) || (**(**Ttimeb)(__ccgo_up(bp))).Ftime > int64(Int32FromInt32(INT32_MAX)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOVERFLOW) + return -int32(1) + } + (*Ttimeb32)(unsafe.Pointer(tp)).Ftime = int32((**(**Ttimeb)(__ccgo_up(bp))).Ftime) + (*Ttimeb32)(unsafe.Pointer(tp)).Fmillitm = (**(**Ttimeb)(__ccgo_up(bp))).Fmillitm + (*Ttimeb32)(unsafe.Pointer(tp)).Ftimezone = (**(**Ttimeb)(__ccgo_up(bp))).Ftimezone + (*Ttimeb32)(unsafe.Pointer(tp)).Fdstflag = (**(**Ttimeb)(__ccgo_up(bp))).Fdstflag + return 0 +} + +func X__futimens_time32(tls *TLS, fd int32, times32 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v times32=%v, (%v:)", tls, fd, times32, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var v1 uintptr + _ = v1 + if !(times32 != 0) { + v1 = uintptr(0) + } else { + *(*[2]Ttimespec)(unsafe.Pointer(bp)) = [2]Ttimespec{ + 0: { + Ftv_sec: int64((**(**Ttimespec32)(__ccgo_up(times32))).Ftv_sec), + Ftv_nsec: (**(**Ttimespec32)(__ccgo_up(times32))).Ftv_nsec, + }, + 1: { + Ftv_sec: int64((**(**Ttimespec32)(__ccgo_up(times32 + 1*8))).Ftv_sec), + Ftv_nsec: (**(**Ttimespec32)(__ccgo_up(times32 + 1*8))).Ftv_nsec, + }, + } + v1 = bp + } + return Xfutimens(tls, fd, v1) +} + +func X__futimes_time32(tls *TLS, fd int32, times32 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v times32=%v, (%v:)", tls, fd, times32, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var v1 uintptr + _ = v1 + if !(times32 != 0) { + v1 = uintptr(0) + } else { + *(*[2]Ttimeval)(unsafe.Pointer(bp)) = [2]Ttimeval{ + 0: { + Ftv_sec: int64((**(**Ttimeval32)(__ccgo_up(times32))).Ftv_sec), + Ftv_usec: int64((**(**Ttimeval32)(__ccgo_up(times32))).Ftv_usec), + }, + 1: { + Ftv_sec: int64((**(**Ttimeval32)(__ccgo_up(times32 + 1*8))).Ftv_sec), + Ftv_usec: int64((**(**Ttimeval32)(__ccgo_up(times32 + 1*8))).Ftv_usec), + }, + } + v1 = bp + } + return Xfutimes(tls, fd, v1) +} + +func X__futimesat_time32(tls *TLS, dirfd int32, pathname uintptr, times32 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v dirfd=%v pathname=%v times32=%v, (%v:)", tls, dirfd, pathname, times32, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var v1 uintptr + _ = v1 + if !(times32 != 0) { + v1 = uintptr(0) + } else { + *(*[2]Ttimeval)(unsafe.Pointer(bp)) = [2]Ttimeval{ + 0: { + Ftv_sec: int64((**(**Ttimeval32)(__ccgo_up(times32))).Ftv_sec), + Ftv_usec: int64((**(**Ttimeval32)(__ccgo_up(times32))).Ftv_usec), + }, + 1: { + Ftv_sec: int64((**(**Ttimeval32)(__ccgo_up(times32 + 1*8))).Ftv_sec), + Ftv_usec: int64((**(**Ttimeval32)(__ccgo_up(times32 + 1*8))).Ftv_usec), + }, + } + v1 = bp + } + return Xfutimesat(tls, dirfd, pathname, v1) +} + +func X__getitimer_time32(tls *TLS, which int32, old32 uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v which=%v old32=%v, (%v:)", tls, which, old32, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var r int32 + var _ /* old at bp+0 */ Titimerval + _ = r + r = Xgetitimer(tls, which, bp) + if r != 0 { + return r + } + (*Titimerval32)(unsafe.Pointer(old32)).Fit_interval.Ftv_sec = int32((**(**Titimerval)(__ccgo_up(bp))).Fit_interval.Ftv_sec) + (*Titimerval32)(unsafe.Pointer(old32)).Fit_interval.Ftv_usec = int32((**(**Titimerval)(__ccgo_up(bp))).Fit_interval.Ftv_usec) + (*Titimerval32)(unsafe.Pointer(old32)).Fit_value.Ftv_sec = int32((**(**Titimerval)(__ccgo_up(bp))).Fit_value.Ftv_sec) + (*Titimerval32)(unsafe.Pointer(old32)).Fit_value.Ftv_usec = int32((**(**Titimerval)(__ccgo_up(bp))).Fit_value.Ftv_usec) + return 0 +} + +type Tcompat_rusage = struct { + Fru_utime Ttimeval32 + Fru_stime Ttimeval32 + Fru_maxrss int32 + Fru_ixrss int32 + Fru_idrss int32 + Fru_isrss int32 + Fru_minflt int32 + Fru_majflt int32 + Fru_nswap int32 + Fru_inblock int32 + Fru_oublock int32 + Fru_msgsnd int32 + Fru_msgrcv int32 + Fru_nsignals int32 + Fru_nvcsw int32 + Fru_nivcsw int32 +} + +func X__getrusage_time32(tls *TLS, who int32, usage uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v who=%v usage=%v, (%v:)", tls, who, usage, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(160) + defer tls.Free(160) + var r int32 + var _ /* ru at bp+0 */ Trusage + _ = r + r = Xgetrusage(tls, who, bp) + if !(r != 0) { + (*Tcompat_rusage)(unsafe.Pointer(usage)).Fru_utime.Ftv_sec = int32((**(**Trusage)(__ccgo_up(bp))).Fru_utime.Ftv_sec) + (*Tcompat_rusage)(unsafe.Pointer(usage)).Fru_utime.Ftv_usec = int32((**(**Trusage)(__ccgo_up(bp))).Fru_utime.Ftv_usec) + (*Tcompat_rusage)(unsafe.Pointer(usage)).Fru_stime.Ftv_sec = int32((**(**Trusage)(__ccgo_up(bp))).Fru_stime.Ftv_sec) + (*Tcompat_rusage)(unsafe.Pointer(usage)).Fru_stime.Ftv_usec = int32((**(**Trusage)(__ccgo_up(bp))).Fru_stime.Ftv_usec) + Xmemcpy(tls, usage+16, bp+32, Uint32FromInt64(72)-uint32(UintptrFromInt32(0)+16)) + } + return r +} + +func X__gettimeofday_time32(tls *TLS, tv32 uintptr, tz uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v tv32=%v tz=%v, (%v:)", tls, tv32, tz, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var r int32 + var _ /* tv at bp+0 */ Ttimeval + _ = r + if !(tv32 != 0) { + return 0 + } + r = Xgettimeofday(tls, bp, uintptr(0)) + if r != 0 { + return r + } + if (**(**Ttimeval)(__ccgo_up(bp))).Ftv_sec < int64(-Int32FromInt32(1)-Int32FromInt32(0x7fffffff)) || (**(**Ttimeval)(__ccgo_up(bp))).Ftv_sec > int64(Int32FromInt32(INT32_MAX)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOVERFLOW) + return -int32(1) + } + (*Ttimeval32)(unsafe.Pointer(tv32)).Ftv_sec = int32((**(**Ttimeval)(__ccgo_up(bp))).Ftv_sec) + (*Ttimeval32)(unsafe.Pointer(tv32)).Ftv_usec = int32((**(**Ttimeval)(__ccgo_up(bp))).Ftv_usec) + return 0 +} + +func X__gmtime32(tls *TLS, t uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v, (%v:)", tls, t, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + *(*Ttime_t)(unsafe.Pointer(bp)) = int64(**(**Ttime32_t)(__ccgo_up(t))) + return Xgmtime(tls, bp) +} + +func X__gmtime32_r(tls *TLS, t uintptr, tm uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v tm=%v, (%v:)", tls, t, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + *(*Ttime_t)(unsafe.Pointer(bp)) = int64(**(**Ttime32_t)(__ccgo_up(t))) + return Xgmtime_r(tls, bp, tm) +} + +func X__localtime32(tls *TLS, t uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v, (%v:)", tls, t, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + *(*Ttime_t)(unsafe.Pointer(bp)) = int64(**(**Ttime32_t)(__ccgo_up(t))) + return Xlocaltime(tls, bp) +} + +func X__localtime32_r(tls *TLS, t uintptr, tm uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v tm=%v, (%v:)", tls, t, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + *(*Ttime_t)(unsafe.Pointer(bp)) = int64(**(**Ttime32_t)(__ccgo_up(t))) + return Xlocaltime_r(tls, bp, tm) +} + +func X__lstat_time32(tls *TLS, path uintptr, st32 uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v path=%v st32=%v, (%v:)", tls, path, st32, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(144) + defer tls.Free(144) + var r int32 + var _ /* st at bp+0 */ Tstat + _ = r + r = Xlstat(tls, path, bp) + if !(r != 0) { + Xmemcpy(tls, st32, bp, uint32(UintptrFromInt32(0)+96)) + } + return r +} + +func X__lutimes_time32(tls *TLS, path uintptr, times32 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v times32=%v, (%v:)", tls, path, times32, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var v1 uintptr + _ = v1 + if !(times32 != 0) { + v1 = uintptr(0) + } else { + *(*[2]Ttimeval)(unsafe.Pointer(bp)) = [2]Ttimeval{ + 0: { + Ftv_sec: int64((**(**Ttimeval32)(__ccgo_up(times32))).Ftv_sec), + Ftv_usec: int64((**(**Ttimeval32)(__ccgo_up(times32))).Ftv_usec), + }, + 1: { + Ftv_sec: int64((**(**Ttimeval32)(__ccgo_up(times32 + 1*8))).Ftv_sec), + Ftv_usec: int64((**(**Ttimeval32)(__ccgo_up(times32 + 1*8))).Ftv_usec), + }, + } + v1 = bp + } + return Xlutimes(tls, path, v1) +} + +func X__mktime32(tls *TLS, tm uintptr) (r Ttime32_t) { + if __ccgo_strace { + trc("tls=%v tm=%v, (%v:)", tls, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + var t Ttime_t + var _ /* tmp at bp+0 */ Ttm + _ = t + **(**Ttm)(__ccgo_up(bp)) = **(**Ttm)(__ccgo_up(tm)) + t = Xmktime(tls, bp) + if t < int64(-Int32FromInt32(1)-Int32FromInt32(0x7fffffff)) || t > int64(Int32FromInt32(INT32_MAX)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOVERFLOW) + return -int32(1) + } + **(**Ttm)(__ccgo_up(tm)) = **(**Ttm)(__ccgo_up(bp)) + return int32(t) +} + +func X__nanosleep_time32(tls *TLS, req32 uintptr, rem32 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v req32=%v rem32=%v, (%v:)", tls, req32, rem32, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var ret int32 + var _ /* rem at bp+16 */ Ttimespec + _ = ret + *(*Ttimespec)(unsafe.Pointer(bp)) = Ttimespec{ + Ftv_sec: int64((*Ttimespec32)(unsafe.Pointer(req32)).Ftv_sec), + Ftv_nsec: (*Ttimespec32)(unsafe.Pointer(req32)).Ftv_nsec, + } + ret = Xnanosleep(tls, bp, bp+16) + if ret < 0 && **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EINTR) && rem32 != 0 { + (*Ttimespec32)(unsafe.Pointer(rem32)).Ftv_sec = int32((**(**Ttimespec)(__ccgo_up(bp + 16))).Ftv_sec) + (*Ttimespec32)(unsafe.Pointer(rem32)).Ftv_nsec = (**(**Ttimespec)(__ccgo_up(bp + 16))).Ftv_nsec + } + return ret +} + +func X__ppoll_time32(tls *TLS, fds uintptr, n Tnfds_t, ts32 uintptr, mask uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fds=%v n=%v ts32=%v mask=%v, (%v:)", tls, fds, n, ts32, mask, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uintptr + _ = v1 + if !(ts32 != 0) { + v1 = uintptr(0) + } else { + *(*Ttimespec)(unsafe.Pointer(bp)) = Ttimespec{ + Ftv_sec: int64((*Ttimespec32)(unsafe.Pointer(ts32)).Ftv_sec), + Ftv_nsec: (*Ttimespec32)(unsafe.Pointer(ts32)).Ftv_nsec, + } + v1 = bp + } + return Xppoll(tls, fds, n, v1, mask) +} + +func X__pselect_time32(tls *TLS, n int32, rfds uintptr, wfds uintptr, efds uintptr, ts32 uintptr, mask uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v n=%v rfds=%v wfds=%v efds=%v ts32=%v mask=%v, (%v:)", tls, n, rfds, wfds, efds, ts32, mask, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uintptr + _ = v1 + if !(ts32 != 0) { + v1 = uintptr(0) + } else { + *(*Ttimespec)(unsafe.Pointer(bp)) = Ttimespec{ + Ftv_sec: int64((*Ttimespec32)(unsafe.Pointer(ts32)).Ftv_sec), + Ftv_nsec: (*Ttimespec32)(unsafe.Pointer(ts32)).Ftv_nsec, + } + v1 = bp + } + return Xpselect(tls, n, rfds, wfds, efds, v1, mask) +} + +func X__recvmmsg_time32(tls *TLS, fd int32, msgvec uintptr, vlen uint32, flags uint32, ts32 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v msgvec=%v vlen=%v flags=%v ts32=%v, (%v:)", tls, fd, msgvec, vlen, flags, ts32, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uintptr + _ = v1 + if ts32 != 0 { + *(*Ttimespec)(unsafe.Pointer(bp)) = Ttimespec{ + Ftv_sec: int64((*Ttimespec32)(unsafe.Pointer(ts32)).Ftv_sec), + Ftv_nsec: (*Ttimespec32)(unsafe.Pointer(ts32)).Ftv_nsec, + } + v1 = bp + } else { + v1 = uintptr(0) + } + return Xrecvmmsg(tls, fd, msgvec, vlen, flags, v1) +} + +func X__select_time32(tls *TLS, n int32, rfds uintptr, wfds uintptr, efds uintptr, tv32 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v n=%v rfds=%v wfds=%v efds=%v tv32=%v, (%v:)", tls, n, rfds, wfds, efds, tv32, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uintptr + _ = v1 + if !(tv32 != 0) { + v1 = uintptr(0) + } else { + *(*Ttimeval)(unsafe.Pointer(bp)) = Ttimeval{ + Ftv_sec: int64((*Ttimeval32)(unsafe.Pointer(tv32)).Ftv_sec), + Ftv_usec: int64((*Ttimeval32)(unsafe.Pointer(tv32)).Ftv_usec), + } + v1 = bp + } + return Xselect(tls, n, rfds, wfds, efds, v1) +} + +func X__semtimedop_time32(tls *TLS, id int32, buf uintptr, n Tsize_t, ts32 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v id=%v buf=%v n=%v ts32=%v, (%v:)", tls, id, buf, n, ts32, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uintptr + _ = v1 + if !(ts32 != 0) { + v1 = uintptr(0) + } else { + *(*Ttimespec)(unsafe.Pointer(bp)) = Ttimespec{ + Ftv_sec: int64((*Ttimespec32)(unsafe.Pointer(ts32)).Ftv_sec), + Ftv_nsec: (*Ttimespec32)(unsafe.Pointer(ts32)).Ftv_nsec, + } + v1 = bp + } + return Xsemtimedop(tls, id, buf, n, v1) +} + +func X__setitimer_time32(tls *TLS, which int32, new32 uintptr, old32 uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v which=%v new32=%v old32=%v, (%v:)", tls, which, new32, old32, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var r int32 + var _ /* old at bp+32 */ Titimerval + _ = r + *(*Titimerval)(unsafe.Pointer(bp)) = Titimerval{ + Fit_interval: Ttimeval{ + Ftv_sec: int64((*Titimerval32)(unsafe.Pointer(new32)).Fit_interval.Ftv_sec), + Ftv_usec: int64((*Titimerval32)(unsafe.Pointer(new32)).Fit_interval.Ftv_usec), + }, + Fit_value: Ttimeval{ + Ftv_sec: int64((*Titimerval32)(unsafe.Pointer(new32)).Fit_value.Ftv_sec), + Ftv_usec: int64((*Titimerval32)(unsafe.Pointer(new32)).Fit_value.Ftv_usec), + }, + } + r = Xsetitimer(tls, which, bp, bp+32) + if r != 0 { + return r + } + /* The above call has already committed to success by changing the + * timer setting, so we can't fail on out-of-range old value. + * Since these are relative times, values large enough to overflow + * don't make sense anyway. */ + if old32 != 0 { + (*Titimerval32)(unsafe.Pointer(old32)).Fit_interval.Ftv_sec = int32((**(**Titimerval)(__ccgo_up(bp + 32))).Fit_interval.Ftv_sec) + (*Titimerval32)(unsafe.Pointer(old32)).Fit_interval.Ftv_usec = int32((**(**Titimerval)(__ccgo_up(bp + 32))).Fit_interval.Ftv_usec) + (*Titimerval32)(unsafe.Pointer(old32)).Fit_value.Ftv_sec = int32((**(**Titimerval)(__ccgo_up(bp + 32))).Fit_value.Ftv_sec) + (*Titimerval32)(unsafe.Pointer(old32)).Fit_value.Ftv_usec = int32((**(**Titimerval)(__ccgo_up(bp + 32))).Fit_value.Ftv_usec) + } + return 0 +} + +func X__settimeofday_time32(tls *TLS, tv32 uintptr, tz uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v tv32=%v tz=%v, (%v:)", tls, tv32, tz, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uintptr + _ = v1 + if !(tv32 != 0) { + v1 = uintptr(0) + } else { + *(*Ttimeval)(unsafe.Pointer(bp)) = Ttimeval{ + Ftv_sec: int64((*Ttimeval32)(unsafe.Pointer(tv32)).Ftv_sec), + Ftv_usec: int64((*Ttimeval32)(unsafe.Pointer(tv32)).Ftv_usec), + } + v1 = bp + } + return Xsettimeofday(tls, v1, uintptr(0)) +} + +func X__sigtimedwait_time32(tls *TLS, set uintptr, si uintptr, ts32 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v set=%v si=%v ts32=%v, (%v:)", tls, set, si, ts32, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uintptr + _ = v1 + if !(ts32 != 0) { + v1 = uintptr(0) + } else { + *(*Ttimespec)(unsafe.Pointer(bp)) = Ttimespec{ + Ftv_sec: int64((*Ttimespec32)(unsafe.Pointer(ts32)).Ftv_sec), + Ftv_nsec: (*Ttimespec32)(unsafe.Pointer(ts32)).Ftv_nsec, + } + v1 = bp + } + return Xsigtimedwait(tls, set, si, v1) +} + +func X__stat_time32(tls *TLS, path uintptr, st32 uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v path=%v st32=%v, (%v:)", tls, path, st32, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(144) + defer tls.Free(144) + var r int32 + var _ /* st at bp+0 */ Tstat + _ = r + r = Xstat(tls, path, bp) + if !(r != 0) { + Xmemcpy(tls, st32, bp, uint32(UintptrFromInt32(0)+96)) + } + return r +} + +func X__stime32(tls *TLS, t uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v t=%v, (%v:)", tls, t, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + *(*Ttime_t)(unsafe.Pointer(bp)) = int64(**(**Ttime32_t)(__ccgo_up(t))) + return Xstime(tls, bp) +} + +func X__time32(tls *TLS, p uintptr) (r Ttime32_t) { + if __ccgo_strace { + trc("tls=%v p=%v, (%v:)", tls, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + var t Ttime_t + _ = t + t = Xtime(tls, uintptr(0)) + if t < int64(-Int32FromInt32(1)-Int32FromInt32(0x7fffffff)) || t > int64(Int32FromInt32(INT32_MAX)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOVERFLOW) + return -int32(1) + } + if p != 0 { + **(**Ttime32_t)(__ccgo_up(p)) = int32(t) + } + return int32(t) +} + +func X__time32gm(tls *TLS, tm uintptr) (r Ttime32_t) { + if __ccgo_strace { + trc("tls=%v tm=%v, (%v:)", tls, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + var t Ttime_t + _ = t + t = Xtimegm(tls, tm) + if t < int64(-Int32FromInt32(1)-Int32FromInt32(0x7fffffff)) || t > int64(Int32FromInt32(INT32_MAX)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOVERFLOW) + return -int32(1) + } + return int32(t) +} + +func X__timer_gettime32(tls *TLS, t Ttimer_t, val32 uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v t=%v val32=%v, (%v:)", tls, t, val32, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var r int32 + var _ /* old at bp+0 */ Titimerspec + _ = r + r = Xtimer_gettime(tls, t, bp) + if r != 0 { + return r + } + /* No range checking for consistency with settime */ + (*Titimerspec32)(unsafe.Pointer(val32)).Fit_interval.Ftv_sec = int32((**(**Titimerspec)(__ccgo_up(bp))).Fit_interval.Ftv_sec) + (*Titimerspec32)(unsafe.Pointer(val32)).Fit_interval.Ftv_nsec = (**(**Titimerspec)(__ccgo_up(bp))).Fit_interval.Ftv_nsec + (*Titimerspec32)(unsafe.Pointer(val32)).Fit_value.Ftv_sec = int32((**(**Titimerspec)(__ccgo_up(bp))).Fit_value.Ftv_sec) + (*Titimerspec32)(unsafe.Pointer(val32)).Fit_value.Ftv_nsec = (**(**Titimerspec)(__ccgo_up(bp))).Fit_value.Ftv_nsec + return 0 +} + +func X__timer_settime32(tls *TLS, t Ttimer_t, flags int32, val32 uintptr, old32 uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v t=%v flags=%v val32=%v old32=%v, (%v:)", tls, t, flags, val32, old32, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var r int32 + var v1 uintptr + var _ /* old at bp+32 */ Titimerspec + _, _ = r, v1 + *(*Titimerspec)(unsafe.Pointer(bp)) = Titimerspec{ + Fit_interval: Ttimespec{ + Ftv_sec: int64((*Titimerspec32)(unsafe.Pointer(val32)).Fit_interval.Ftv_sec), + Ftv_nsec: (*Titimerspec32)(unsafe.Pointer(val32)).Fit_interval.Ftv_nsec, + }, + Fit_value: Ttimespec{ + Ftv_sec: int64((*Titimerspec32)(unsafe.Pointer(val32)).Fit_value.Ftv_sec), + Ftv_nsec: (*Titimerspec32)(unsafe.Pointer(val32)).Fit_value.Ftv_nsec, + }, + } + if old32 != 0 { + v1 = bp + 32 + } else { + v1 = uintptr(0) + } + r = Xtimer_settime(tls, t, flags, bp, v1) + if r != 0 { + return r + } + /* The above call has already committed to success by changing the + * timer setting, so we can't fail on out-of-range old value. + * Since these are relative times, values large enough to overflow + * don't make sense anyway. */ + if old32 != 0 { + (*Titimerspec32)(unsafe.Pointer(old32)).Fit_interval.Ftv_sec = int32((**(**Titimerspec)(__ccgo_up(bp + 32))).Fit_interval.Ftv_sec) + (*Titimerspec32)(unsafe.Pointer(old32)).Fit_interval.Ftv_nsec = (**(**Titimerspec)(__ccgo_up(bp + 32))).Fit_interval.Ftv_nsec + (*Titimerspec32)(unsafe.Pointer(old32)).Fit_value.Ftv_sec = int32((**(**Titimerspec)(__ccgo_up(bp + 32))).Fit_value.Ftv_sec) + (*Titimerspec32)(unsafe.Pointer(old32)).Fit_value.Ftv_nsec = (**(**Titimerspec)(__ccgo_up(bp + 32))).Fit_value.Ftv_nsec + } + return 0 +} + +func X__timerfd_gettime32(tls *TLS, t int32, val32 uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v t=%v val32=%v, (%v:)", tls, t, val32, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var r int32 + var _ /* old at bp+0 */ Titimerspec + _ = r + r = Xtimerfd_gettime(tls, t, bp) + if r != 0 { + return r + } + /* No range checking for consistency with settime */ + (*Titimerspec32)(unsafe.Pointer(val32)).Fit_interval.Ftv_sec = int32((**(**Titimerspec)(__ccgo_up(bp))).Fit_interval.Ftv_sec) + (*Titimerspec32)(unsafe.Pointer(val32)).Fit_interval.Ftv_nsec = (**(**Titimerspec)(__ccgo_up(bp))).Fit_interval.Ftv_nsec + (*Titimerspec32)(unsafe.Pointer(val32)).Fit_value.Ftv_sec = int32((**(**Titimerspec)(__ccgo_up(bp))).Fit_value.Ftv_sec) + (*Titimerspec32)(unsafe.Pointer(val32)).Fit_value.Ftv_nsec = (**(**Titimerspec)(__ccgo_up(bp))).Fit_value.Ftv_nsec + return 0 +} + +func X__timerfd_settime32(tls *TLS, t int32, flags int32, val32 uintptr, old32 uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v t=%v flags=%v val32=%v old32=%v, (%v:)", tls, t, flags, val32, old32, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var r int32 + var v1 uintptr + var _ /* old at bp+32 */ Titimerspec + _, _ = r, v1 + *(*Titimerspec)(unsafe.Pointer(bp)) = Titimerspec{ + Fit_interval: Ttimespec{ + Ftv_sec: int64((*Titimerspec32)(unsafe.Pointer(val32)).Fit_interval.Ftv_sec), + Ftv_nsec: (*Titimerspec32)(unsafe.Pointer(val32)).Fit_interval.Ftv_nsec, + }, + Fit_value: Ttimespec{ + Ftv_sec: int64((*Titimerspec32)(unsafe.Pointer(val32)).Fit_value.Ftv_sec), + Ftv_nsec: (*Titimerspec32)(unsafe.Pointer(val32)).Fit_value.Ftv_nsec, + }, + } + if old32 != 0 { + v1 = bp + 32 + } else { + v1 = uintptr(0) + } + r = Xtimerfd_settime(tls, t, flags, bp, v1) + if r != 0 { + return r + } + /* The above call has already committed to success by changing the + * timer setting, so we can't fail on out-of-range old value. + * Since these are relative times, values large enough to overflow + * don't make sense anyway. */ + if old32 != 0 { + (*Titimerspec32)(unsafe.Pointer(old32)).Fit_interval.Ftv_sec = int32((**(**Titimerspec)(__ccgo_up(bp + 32))).Fit_interval.Ftv_sec) + (*Titimerspec32)(unsafe.Pointer(old32)).Fit_interval.Ftv_nsec = (**(**Titimerspec)(__ccgo_up(bp + 32))).Fit_interval.Ftv_nsec + (*Titimerspec32)(unsafe.Pointer(old32)).Fit_value.Ftv_sec = int32((**(**Titimerspec)(__ccgo_up(bp + 32))).Fit_value.Ftv_sec) + (*Titimerspec32)(unsafe.Pointer(old32)).Fit_value.Ftv_nsec = (**(**Titimerspec)(__ccgo_up(bp + 32))).Fit_value.Ftv_nsec + } + return 0 +} + +func X__timespec_get_time32(tls *TLS, ts32 uintptr, base int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v ts32=%v base=%v, (%v:)", tls, ts32, base, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var r int32 + var _ /* ts at bp+0 */ Ttimespec + _ = r + r = Xtimespec_get(tls, bp, base) + if !(r != 0) { + return r + } + if (**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec < int64(-Int32FromInt32(1)-Int32FromInt32(0x7fffffff)) || (**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec > int64(Int32FromInt32(INT32_MAX)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOVERFLOW) + return 0 + } + (*Ttimespec32)(unsafe.Pointer(ts32)).Ftv_sec = int32((**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec) + (*Ttimespec32)(unsafe.Pointer(ts32)).Ftv_nsec = (**(**Ttimespec)(__ccgo_up(bp))).Ftv_nsec + return r +} + +type Tutimbuf32 = struct { + Factime Ttime32_t + Fmodtime Ttime32_t +} + +func X__utime_time32(tls *TLS, path uintptr, times32 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v times32=%v, (%v:)", tls, path, times32, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uintptr + _ = v1 + if !(times32 != 0) { + v1 = uintptr(0) + } else { + *(*Tutimbuf)(unsafe.Pointer(bp)) = Tutimbuf{ + Factime: int64((*Tutimbuf32)(unsafe.Pointer(times32)).Factime), + Fmodtime: int64((*Tutimbuf32)(unsafe.Pointer(times32)).Fmodtime), + } + v1 = bp + } + return Xutime(tls, path, v1) +} + +func X__utimensat_time32(tls *TLS, fd int32, path uintptr, times32 uintptr, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v path=%v times32=%v flags=%v, (%v:)", tls, fd, path, times32, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var v1 uintptr + _ = v1 + if !(times32 != 0) { + v1 = uintptr(0) + } else { + *(*[2]Ttimespec)(unsafe.Pointer(bp)) = [2]Ttimespec{ + 0: { + Ftv_sec: int64((**(**Ttimespec32)(__ccgo_up(times32))).Ftv_sec), + Ftv_nsec: (**(**Ttimespec32)(__ccgo_up(times32))).Ftv_nsec, + }, + 1: { + Ftv_sec: int64((**(**Ttimespec32)(__ccgo_up(times32 + 1*8))).Ftv_sec), + Ftv_nsec: (**(**Ttimespec32)(__ccgo_up(times32 + 1*8))).Ftv_nsec, + }, + } + v1 = bp + } + return Xutimensat(tls, fd, path, v1, flags) +} + +func X__utimes_time32(tls *TLS, path uintptr, times32 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v times32=%v, (%v:)", tls, path, times32, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var v1 uintptr + _ = v1 + if !(times32 != 0) { + v1 = uintptr(0) + } else { + *(*[2]Ttimeval)(unsafe.Pointer(bp)) = [2]Ttimeval{ + 0: { + Ftv_sec: int64((**(**Ttimeval32)(__ccgo_up(times32))).Ftv_sec), + Ftv_usec: int64((**(**Ttimeval32)(__ccgo_up(times32))).Ftv_usec), + }, + 1: { + Ftv_sec: int64((**(**Ttimeval32)(__ccgo_up(times32 + 1*8))).Ftv_sec), + Ftv_usec: int64((**(**Ttimeval32)(__ccgo_up(times32 + 1*8))).Ftv_usec), + }, + } + v1 = bp + } + return Xutimes(tls, path, v1) +} + +func X__wait3_time32(tls *TLS, status uintptr, options int32, usage uintptr) (r1 Tpid_t) { + if __ccgo_strace { + trc("tls=%v status=%v options=%v usage=%v, (%v:)", tls, status, options, usage, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(160) + defer tls.Free(160) + var r int32 + var v1 uintptr + var _ /* ru at bp+0 */ Trusage + _, _ = r, v1 + if usage != 0 { + v1 = bp + } else { + v1 = uintptr(0) + } + r = Xwait3(tls, status, options, v1) + if !(r != 0) && usage != 0 { + (*Tcompat_rusage)(unsafe.Pointer(usage)).Fru_utime.Ftv_sec = int32((**(**Trusage)(__ccgo_up(bp))).Fru_utime.Ftv_sec) + (*Tcompat_rusage)(unsafe.Pointer(usage)).Fru_utime.Ftv_usec = int32((**(**Trusage)(__ccgo_up(bp))).Fru_utime.Ftv_usec) + (*Tcompat_rusage)(unsafe.Pointer(usage)).Fru_stime.Ftv_sec = int32((**(**Trusage)(__ccgo_up(bp))).Fru_stime.Ftv_sec) + (*Tcompat_rusage)(unsafe.Pointer(usage)).Fru_stime.Ftv_usec = int32((**(**Trusage)(__ccgo_up(bp))).Fru_stime.Ftv_usec) + Xmemcpy(tls, usage+16, bp+32, Uint32FromInt64(72)-uint32(UintptrFromInt32(0)+16)) + } + return r +} + +func X__wait4_time32(tls *TLS, pid Tpid_t, status uintptr, options int32, usage uintptr) (r1 Tpid_t) { + if __ccgo_strace { + trc("tls=%v pid=%v status=%v options=%v usage=%v, (%v:)", tls, pid, status, options, usage, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(160) + defer tls.Free(160) + var r int32 + var v1 uintptr + var _ /* ru at bp+0 */ Trusage + _, _ = r, v1 + if usage != 0 { + v1 = bp + } else { + v1 = uintptr(0) + } + r = Xwait4(tls, pid, status, options, v1) + if !(r != 0) && usage != 0 { + (*Tcompat_rusage)(unsafe.Pointer(usage)).Fru_utime.Ftv_sec = int32((**(**Trusage)(__ccgo_up(bp))).Fru_utime.Ftv_sec) + (*Tcompat_rusage)(unsafe.Pointer(usage)).Fru_utime.Ftv_usec = int32((**(**Trusage)(__ccgo_up(bp))).Fru_utime.Ftv_usec) + (*Tcompat_rusage)(unsafe.Pointer(usage)).Fru_stime.Ftv_sec = int32((**(**Trusage)(__ccgo_up(bp))).Fru_stime.Ftv_sec) + (*Tcompat_rusage)(unsafe.Pointer(usage)).Fru_stime.Ftv_usec = int32((**(**Trusage)(__ccgo_up(bp))).Fru_stime.Ftv_usec) + Xmemcpy(tls, usage+16, bp+32, Uint32FromInt64(72)-uint32(UintptrFromInt32(0)+16)) + } + return r +} + +func __ccgo_fp(f interface{}) uintptr { + type iface [2]uintptr + return (*iface)(unsafe.Pointer(&f))[1] +} + +func __ccgo_up(n uintptr) unsafe.Pointer { + return unsafe.Pointer(&n) +} + +var X__abort_lock [1]int32 + +var X__at_quick_exit_lockptr = uintptr(unsafe.Pointer(&_lock)) + +var X__c_dot_utf8 = t__locale_map{ + Fmap1: uintptr(unsafe.Pointer(&_empty_mo)), + Fmap_size: uint32(20), + Fname: [24]int8{'C', '.', 'U', 'T', 'F', '-', '8'}, +} + +var X__c_dot_utf8_locale = t__locale_struct{ + Fcat: [6]uintptr{ + 0: uintptr(unsafe.Pointer(&X__c_dot_utf8)), + }, +} + +var X__c_locale = t__locale_struct{} + +var Xdaylight int32 + +var X__eintr_valid_flag int32 + +var Xenviron uintptr + +var X__exp2f_data = Texp2f_data{ + Ftab: [32]Tuint64_t{ + 0: uint64(0x3ff0000000000000), + 1: uint64(0x3fefd9b0d3158574), + 2: uint64(0x3fefb5586cf9890f), + 3: uint64(0x3fef9301d0125b51), + 4: uint64(0x3fef72b83c7d517b), + 5: uint64(0x3fef54873168b9aa), + 6: uint64(0x3fef387a6e756238), + 7: uint64(0x3fef1e9df51fdee1), + 8: uint64(0x3fef06fe0a31b715), + 9: uint64(0x3feef1a7373aa9cb), + 10: uint64(0x3feedea64c123422), + 11: uint64(0x3feece086061892d), + 12: uint64(0x3feebfdad5362a27), + 13: uint64(0x3feeb42b569d4f82), + 14: uint64(0x3feeab07dd485429), + 15: uint64(0x3feea47eb03a5585), + 16: uint64(0x3feea09e667f3bcd), + 17: uint64(0x3fee9f75e8ec5f74), + 18: uint64(0x3feea11473eb0187), + 19: uint64(0x3feea589994cce13), + 20: uint64(0x3feeace5422aa0db), + 21: uint64(0x3feeb737b0cdc5e5), + 22: uint64(0x3feec49182a3f090), + 23: uint64(0x3feed503b23e255d), + 24: uint64(0x3feee89f995ad3ad), + 25: uint64(0x3feeff76f2fb5e47), + 26: uint64(0x3fef199bdd85529c), + 27: uint64(0x3fef3720dcef9069), + 28: uint64(0x3fef5818dcfba487), + 29: uint64(0x3fef7c97337b9b5f), + 30: uint64(0x3fefa4afa2a490da), + 31: uint64(0x3fefd0765b6e4540), + }, + Fshift_scaled: Float64FromFloat64(6.755399441055744e+15) / float64(Int32FromInt32(1)<>Int32FromInt32(6) | Uint32FromInt32(0x0), + 31: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0x1), + 32: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0x2), + 33: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0x3), + 34: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0x4), + 35: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0x5), + 36: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0x6), + 37: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0x7), + 38: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0x8), + 39: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0x9), + 40: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0xa), + 41: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0xb), + 42: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0xc), + 43: (Uint32FromUint32(0x40)-Uint32FromInt32(0xa0))<>Int32FromInt32(6) | Uint32FromInt32(0xd), + 44: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0xe), + 45: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0xf), + 46: (Uint32FromUint32(0)-Uint32FromInt32(0x90))<>Int32FromInt32(6) | (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(12) | Uint32FromInt32(0x0), + 47: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(12) | Uint32FromInt32(0x1), + 48: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(12) | Uint32FromInt32(0x2), + 49: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(12) | Uint32FromInt32(0x3), + 50: (Uint32FromUint32(0x40)-Uint32FromInt32(0x90))<>Int32FromInt32(6) | (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(12) | Uint32FromInt32(0x4), +} + +var X__gettext_lockptr = uintptr(unsafe.Pointer(&_lock1)) + +var X__hwcap Tsize_t + +var X__libc t__libc + +var X__libc_version = [6]int8{'1', '.', '2', '.', '5'} + +var X__locale_lock [1]int32 + +var X__locale_lockptr = uintptr(unsafe.Pointer(&X__locale_lock)) + +var X__log2_data = Tlog2_data{ + Finvln2hi: float64(1.4426950407214463), + Finvln2lo: float64(1.6751713164886512e-10), + Fpoly: [6]float64{ + 0: -Float64FromFloat64(0.7213475204444882), + 1: float64(0.4808983469629985), + 2: -Float64FromFloat64(0.36067375954075914), + 3: float64(0.2885390073180969), + 4: -Float64FromFloat64(0.2404693555628422), + 5: float64(0.2061202382173603), + }, + Fpoly1: [10]float64{ + 0: -Float64FromFloat64(0.7213475204444817), + 1: float64(0.48089834696298744), + 2: -Float64FromFloat64(0.360673760222145), + 3: float64(0.2885390081805197), + 4: -Float64FromFloat64(0.24044917405728863), + 5: float64(0.2060992861022954), + 6: -Float64FromFloat64(0.18033596705327856), + 7: float64(0.1603032746063156), + 8: -Float64FromFloat64(0.14483316576701266), + 9: float64(0.13046826811283835), + }, + Ftab: [64]struct { + Finvc float64 + Flogc float64 + }{ + 0: { + Finvc: float64(1.4463276106642393), + Flogc: -Float64FromFloat64(0.5323943771486483), + }, + 1: { + Finvc: float64(1.4301675812282968), + Flogc: -Float64FromFloat64(0.516184206053822), + }, + 2: { + Finvc: float64(1.4143648676229383), + Flogc: -Float64FromFloat64(0.5001543441974263), + }, + 3: { + Finvc: float64(1.3989068970611538), + Flogc: -Float64FromFloat64(0.4842999484799293), + }, + 4: { + Finvc: float64(1.3837838957784339), + Flogc: -Float64FromFloat64(0.46861865624623533), + }, + 5: { + Finvc: float64(1.368983882697786), + Flogc: -Float64FromFloat64(0.4531054615783887), + }, + 6: { + Finvc: float64(1.3544972916324536), + Flogc: -Float64FromFloat64(0.43775750882059583), + }, + 7: { + Finvc: float64(1.3403139676437443), + Flogc: -Float64FromFloat64(0.4225709906127122), + }, + 8: { + Finvc: float64(1.3264249304188642), + Flogc: -Float64FromFloat64(0.40754302793970965), + }, + 9: { + Finvc: float64(1.3128203652112156), + Flogc: -Float64FromFloat64(0.3926695240384106), + }, + 10: { + Finvc: float64(1.299492412370217), + Flogc: -Float64FromFloat64(0.3779482100565019), + }, + 11: { + Finvc: float64(1.28643198385998), + Flogc: -Float64FromFloat64(0.36337518101890964), + }, + 12: { + Finvc: float64(1.2736319291846832), + Flogc: -Float64FromFloat64(0.3489484089425332), + }, + 13: { + Finvc: float64(1.2610838968062879), + Flogc: -Float64FromFloat64(0.33466425780738973), + }, + 14: { + Finvc: float64(1.248780314313572), + Flogc: -Float64FromFloat64(0.3205197000629596), + }, + 15: { + Finvc: float64(1.2367150450059063), + Flogc: -Float64FromFloat64(0.3065131231801388), + }, + 16: { + Finvc: float64(1.2248804968401878), + Flogc: -Float64FromFloat64(0.2926410022678283), + }, + 17: { + Finvc: float64(1.2132702353497795), + Flogc: -Float64FromFloat64(0.2789009220805383), + }, + 18: { + Finvc: float64(1.2018780785715362), + Flogc: -Float64FromFloat64(0.2652905529862437), + }, + 19: { + Finvc: float64(1.190697765061355), + Flogc: -Float64FromFloat64(0.2518072602367738), + }, + 20: { + Finvc: float64(1.1797235410550593), + Flogc: -Float64FromFloat64(0.23844881494437686), + }, + 21: { + Finvc: float64(1.1689498986205256), + Flogc: -Float64FromFloat64(0.22521309705462045), + }, + 22: { + Finvc: float64(1.158371137408455), + Flogc: -Float64FromFloat64(0.21209756102439314), + }, + 23: { + Finvc: float64(1.1479820146386086), + Flogc: -Float64FromFloat64(0.1991000395789797), + }, + 24: { + Finvc: float64(1.1377775576851088), + Flogc: -Float64FromFloat64(0.18621852970682085), + }, + 25: { + Finvc: float64(1.127753150630225), + Flogc: -Float64FromFloat64(0.17345131655361), + }, + 26: { + Finvc: float64(1.1179037012282074), + Flogc: -Float64FromFloat64(0.16079591649577196), + }, + 27: { + Finvc: float64(1.1082251967632821), + Flogc: -Float64FromFloat64(0.14825107384353942), + }, + 28: { + Finvc: float64(1.098712461056607), + Flogc: -Float64FromFloat64(0.13581387465410444), + }, + 29: { + Finvc: float64(1.0893619091634283), + Flogc: -Float64FromFloat64(0.12348332762257996), + }, + 30: { + Finvc: float64(1.0801689912316736), + Flogc: -Float64FromFloat64(0.11125703807351783), + }, + 31: { + Finvc: float64(1.071129489697672), + Flogc: -Float64FromFloat64(0.09913289918449664), + }, + 32: { + Finvc: float64(1.0622406576750423), + Flogc: -Float64FromFloat64(0.08711065531497297), + }, + 33: { + Finvc: float64(1.0534977607927976), + Flogc: -Float64FromFloat64(0.07518724771330199), + }, + 34: { + Finvc: float64(1.044897877982342), + Flogc: -Float64FromFloat64(0.06336194888240243), + }, + 35: { + Finvc: float64(1.0364370289499079), + Flogc: -Float64FromFloat64(0.0516324649456692), + }, + 36: { + Finvc: float64(1.0281122132034575), + Flogc: -Float64FromFloat64(0.039997735929773626), + }, + 37: { + Finvc: float64(1.0199202450036955), + Flogc: -Float64FromFloat64(0.028456341769015125), + }, + 38: { + Finvc: float64(1.0118577522306755), + Flogc: -Float64FromFloat64(0.017006489068080555), + }, + 39: { + Finvc: float64(1.003921649236766), + Flogc: -Float64FromFloat64(0.005646678981520381), + }, + 40: { + Finvc: float64(0.9922480467550775), + Flogc: float64(0.011227277611396858), + }, + 41: { + Finvc: float64(0.9770993366178549), + Flogc: float64(0.033422853921138085), + }, + 42: { + Finvc: float64(0.9624059787315814), + Flogc: float64(0.05528248992573026), + }, + 43: { + Finvc: float64(0.9481480598286369), + Flogc: float64(0.07681573143713649), + }, + 44: { + Finvc: float64(0.9343065931261065), + Flogc: float64(0.09803204623631245), + }, + 45: { + Finvc: float64(0.9208633936884979), + Flogc: float64(0.11894094059630334), + }, + 46: { + Finvc: float64(0.9078013641840602), + Flogc: float64(0.13955143862290242), + }, + 47: { + Finvc: float64(0.8951048181512927), + Flogc: float64(0.15987146080919956), + }, + 48: { + Finvc: float64(0.882758574260473), + Flogc: float64(0.17990916589428707), + }, + 49: { + Finvc: float64(0.8707481902241709), + Flogc: float64(0.19967252559081317), + }, + 50: { + Finvc: float64(0.8590602881746972), + Flogc: float64(0.2191687127685782), + }, + 51: { + Finvc: float64(0.8476822044336688), + Flogc: float64(0.23840459427242422), + }, + 52: { + Finvc: float64(0.8366013284053287), + Flogc: float64(0.25738780610663525), + }, + 53: { + Finvc: float64(0.8258064913621258), + Flogc: float64(0.27612433583180973), + }, + 54: { + Finvc: float64(0.8152865101579193), + Flogc: float64(0.2946209507022104), + }, + 55: { + Finvc: float64(0.8050314363208223), + Flogc: float64(0.31288297359969874), + }, + 56: { + Finvc: float64(0.7950310492640542), + Flogc: float64(0.33091689015759584), + }, + 57: { + Finvc: float64(0.7852760432487271), + Flogc: float64(0.3487282100279572), + }, + 58: { + Finvc: float64(0.7757575660314712), + Flogc: float64(0.36632223233368677), + }, + 59: { + Finvc: float64(0.7664670566588946), + Flogc: float64(0.383704309808536), + }, + 60: { + Finvc: float64(0.7573965608078645), + Flogc: float64(0.4008792246509074), + }, + 61: { + Finvc: float64(0.7485380168514022), + Flogc: float64(0.41785250494945103), + }, + 62: { + Finvc: float64(0.7398844213755009), + Flogc: float64(0.4346281724315304), + }, + 63: { + Finvc: float64(0.7314286113178112), + Flogc: float64(0.45121103315341315), + }, + }, + Ftab2: [64]struct { + Fchi float64 + Fclo float64 + }{ + 0: { + Fchi: float64(0.6914062848739648), + Fclo: float64(4.339971893418182e-17), + }, + 1: { + Fchi: float64(0.6992187580850853), + Fclo: float64(7.805593338712074e-18), + }, + 2: { + Fchi: float64(0.7070311366547563), + Fclo: float64(3.20843320369626e-17), + }, + 3: { + Fchi: float64(0.7148438556567389), + Fclo: float64(4.336491946473985e-17), + }, + 4: { + Fchi: float64(0.7226561915128084), + Fclo: float64(4.681890319761607e-17), + }, + 5: { + Fchi: float64(0.730468789763508), + Fclo: -Float64FromFloat64(1.647126642147294e-17), + }, + 6: { + Fchi: float64(0.7382812842650944), + Fclo: float64(2.0846837208642192e-17), + }, + 7: { + Fchi: float64(0.7460938437864584), + Fclo: -Float64FromFloat64(7.82131795361932e-18), + }, + 8: { + Fchi: float64(0.7539062159244969), + Fclo: -Float64FromFloat64(3.470987810015201e-17), + }, + 9: { + Fchi: float64(0.761718835645205), + Fclo: float64(1.2996798345429576e-17), + }, + 10: { + Fchi: float64(0.7695312342578777), + Fclo: -Float64FromFloat64(5.2071007285622585e-17), + }, + 11: { + Fchi: float64(0.7773438569208053), + Fclo: -Float64FromFloat64(4.513636731226183e-17), + }, + 12: { + Fchi: float64(0.7851561955110148), + Fclo: -Float64FromFloat64(2.0797044446832382e-17), + }, + 13: { + Fchi: float64(0.7929686538163826), + Fclo: -Float64FromFloat64(1.9947626198727574e-17), + }, + 14: { + Fchi: float64(0.8007813612514213), + Fclo: float64(1.472064871061342e-17), + }, + 15: { + Fchi: float64(0.8085937047812207), + Fclo: float64(5.290804109377209e-17), + }, + 16: { + Fchi: float64(0.816406173973453), + Fclo: -Float64FromFloat64(1.129659587857177e-17), + }, + 17: { + Fchi: float64(0.8242186867064328), + Fclo: float64(3.901543738154691e-17), + }, + 18: { + Fchi: float64(0.8320311501051142), + Fclo: -Float64FromFloat64(3.212482853127187e-17), + }, + 19: { + Fchi: float64(0.8398436860662717), + Fclo: float64(5.220081794706035e-18), + }, + 20: { + Fchi: float64(0.8476562221566525), + Fclo: -Float64FromFloat64(5.37416378988278e-17), + }, + 21: { + Fchi: float64(0.8554686571084844), + Fclo: float64(4.291992377471359e-18), + }, + 22: { + Fchi: float64(0.8632811779454657), + Fclo: float64(1.7319616935225806e-17), + }, + 23: { + Fchi: float64(0.8710937865301015), + Fclo: float64(1.8251073579011692e-17), + }, + 24: { + Fchi: float64(0.8789064200163806), + Fclo: float64(1.2113671810693101e-17), + }, + 25: { + Fchi: float64(0.8867188705623812), + Fclo: -Float64FromFloat64(2.431195196496269e-17), + }, + 26: { + Fchi: float64(0.894531433164887), + Fclo: -Float64FromFloat64(2.258952781769403e-17), + }, + 27: { + Fchi: float64(0.9023436779100781), + Fclo: float64(4.3322028821617186e-17), + }, + 28: { + Fchi: float64(0.9101562378188762), + Fclo: -Float64FromFloat64(5.2414676705491076e-18), + }, + 29: { + Fchi: float64(0.9179685755379005), + Fclo: -Float64FromFloat64(2.3432856904274634e-17), + }, + 30: { + Fchi: float64(0.9257810658494647), + Fclo: float64(3.9914341909758727e-17), + }, + 31: { + Fchi: float64(0.9335939394986237), + Fclo: -Float64FromFloat64(1.8218382846902827e-17), + }, + 32: { + Fchi: float64(0.9414062555172099), + Fclo: float64(4.423669374431538e-17), + }, + 33: { + Fchi: float64(0.9492189136192009), + Fclo: -Float64FromFloat64(2.6059674623550364e-17), + }, + 34: { + Fchi: float64(0.9570313243730211), + Fclo: -Float64FromFloat64(4.947019261946595e-17), + }, + 35: { + Fchi: float64(0.9648439529540691), + Fclo: -Float64FromFloat64(5.4644837229582306e-17), + }, + 36: { + Fchi: float64(0.9726564738338594), + Fclo: -Float64FromFloat64(5.4656321533328614e-17), + }, + 37: { + Fchi: float64(0.9804688208697894), + Fclo: -Float64FromFloat64(1.782581090537996e-18), + }, + 38: { + Fchi: float64(0.98828120632121), + Fclo: -Float64FromFloat64(5.2277711573086786e-18), + }, + 39: { + Fchi: float64(0.9960936700192217), + Fclo: float64(4.1586638841164565e-17), + }, + 40: { + Fchi: float64(1.007812515499802), + Fclo: float64(9.540912389137736e-17), + }, + 41: { + Fchi: float64(1.0234373952820537), + Fclo: float64(3.985821704561347e-17), + }, + 42: { + Fchi: float64(1.0390625391978199), + Fclo: -Float64FromFloat64(5.179495640960355e-18), + }, + 43: { + Fchi: float64(1.0546875982436061), + Fclo: -Float64FromFloat64(6.074512782488841e-17), + }, + 44: { + Fchi: float64(1.07031247275489), + Fclo: -Float64FromFloat64(4.853656019321416e-17), + }, + 45: { + Fchi: float64(1.0859374005459401), + Fclo: -Float64FromFloat64(1.0233609026899023e-16), + }, + 46: { + Fchi: float64(1.101562565835984), + Fclo: float64(9.714504510281668e-17), + }, + 47: { + Fchi: float64(1.1171875960464082), + Fclo: -Float64FromFloat64(5.728631491659617e-17), + }, + 48: { + Fchi: float64(1.1328125595809087), + Fclo: -Float64FromFloat64(4.3353271744463366e-17), + }, + 49: { + Fchi: float64(1.1484376438870962), + Fclo: float64(5.029455257812864e-17), + }, + 50: { + Fchi: float64(1.1640626551656426), + Fclo: -Float64FromFloat64(1.3886091944776072e-17), + }, + 51: { + Fchi: float64(1.179687381390876), + Fclo: float64(9.535864385063222e-17), + }, + 52: { + Fchi: float64(1.19531246968748), + Fclo: float64(2.5970710873556995e-17), + }, + 53: { + Fchi: float64(1.2109374417129501), + Fclo: -Float64FromFloat64(1.0412863482435496e-16), + }, + 54: { + Fchi: float64(1.2265626715770166), + Fclo: float64(1.903080930681457e-17), + }, + 55: { + Fchi: float64(1.2421875157698543), + Fclo: float64(9.884933154288451e-17), + }, + 56: { + Fchi: float64(1.2578125104996614), + Fclo: float64(2.605028401046449e-17), + }, + 57: { + Fchi: float64(1.273437549250769), + Fclo: float64(3.128070230699857e-17), + }, + 58: { + Fchi: float64(1.2890625161616944), + Fclo: -Float64FromFloat64(4.506460293510891e-17), + }, + 59: { + Fchi: float64(1.3046875156762752), + Fclo: -Float64FromFloat64(2.0874781900380847e-17), + }, + 60: { + Fchi: float64(1.3203123063212308), + Fclo: float64(8.50535702424751e-17), + }, + 61: { + Fchi: float64(1.3359374907988373), + Fclo: -Float64FromFloat64(3.99657459893118e-17), + }, + 62: { + Fchi: float64(1.351562448282023), + Fclo: float64(4.1576596545784e-17), + }, + 63: { + Fchi: float64(1.3671874254389709), + Fclo: -Float64FromFloat64(6.072295450780066e-17), + }, + }, +} + +var X__log2f_data = Tlog2f_data{ + Ftab: [16]struct { + Finvc float64 + Flogc float64 + }{ + 0: { + Finvc: float64(1.398907162146528), + Flogc: -Float64FromFloat64(0.48430022186289673), + }, + 1: { + Finvc: float64(1.3403141896637998), + Flogc: -Float64FromFloat64(0.42257122959194704), + }, + 2: { + Finvc: float64(1.286432210124115), + Flogc: -Float64FromFloat64(0.3633754347673556), + }, + 3: { + Finvc: float64(1.2367150214269895), + Flogc: -Float64FromFloat64(0.30651309567405577), + }, + 4: { + Finvc: float64(1.1906977166711752), + Flogc: -Float64FromFloat64(0.25180720160537634), + }, + 5: { + Finvc: float64(1.1479821020556429), + Flogc: -Float64FromFloat64(0.19910014943794563), + }, + 6: { + Finvc: float64(1.1082251448272158), + Flogc: -Float64FromFloat64(0.14825100623281615), + }, + 7: { + Finvc: float64(1.0711297413057381), + Flogc: -Float64FromFloat64(0.09913323807318392), + }, + 8: { + Finvc: float64(1.036437278977283), + Flogc: -Float64FromFloat64(0.051632812977629436), + }, + 9: { + Finvc: float64(1), + }, + 10: { + Finvc: float64(0.9492859795739057), + Flogc: float64(0.07508531937943004), + }, + 11: { + Finvc: float64(0.8951049428609004), + Flogc: float64(0.15987125980713107), + }, + 12: { + Finvc: float64(0.8476821620351103), + Flogc: float64(0.2384046664317681), + }, + 13: { + Finvc: float64(0.8050314851692001), + Flogc: float64(0.31288288605863257), + }, + 14: { + Finvc: float64(0.7664671008843108), + Flogc: float64(0.38370422656453185), + }, + 15: { + Finvc: float64(0.731428603316328), + Flogc: float64(0.451211048935815), + }, + }, + Fpoly: [4]float64{ + 0: -Float64FromFloat64(0.36051725506874704), + 1: float64(0.4811247078767291), + 2: -Float64FromFloat64(0.7213476299867769), + 3: float64(1.4426950186867042), + }, +} + +var X__log_data = Tlog_data{ + Fln2hi: float64(0.6931471805598903), + Fln2lo: float64(5.497923018708371e-14), + Fpoly: [5]float64{ + 0: -Float64FromFloat64(0.5000000000000001), + 1: float64(0.33333333331825593), + 2: -Float64FromFloat64(0.2499999999622955), + 3: float64(0.20000304511814496), + 4: -Float64FromFloat64(0.16667054827627667), + }, + Fpoly1: [11]float64{ + 0: -Float64FromFloat64(0.5), + 1: float64(0.3333333333333352), + 2: -Float64FromFloat64(0.24999999999998432), + 3: float64(0.19999999999320328), + 4: -Float64FromFloat64(0.16666666669929706), + 5: float64(0.14285715076560868), + 6: -Float64FromFloat64(0.12499997863982555), + 7: float64(0.11110712032936046), + 8: -Float64FromFloat64(0.10000486757818193), + 9: float64(0.09181994006195467), + 10: -Float64FromFloat64(0.08328363062289341), + }, + Ftab: [128]struct { + Finvc float64 + Flogc float64 + }{ + 0: { + Finvc: float64(1.4504249240398293), + Flogc: -Float64FromFloat64(0.3718565645633589), + }, + 1: { + Finvc: float64(1.442253508327276), + Flogc: -Float64FromFloat64(0.36620682668944937), + }, + 2: { + Finvc: float64(1.4341736174350004), + Flogc: -Float64FromFloat64(0.3605888069791945), + }, + 3: { + Finvc: float64(1.426183816329995), + Flogc: -Float64FromFloat64(0.3550022171419869), + }, + 4: { + Finvc: float64(1.4182825527052965), + Flogc: -Float64FromFloat64(0.34944666968829097), + }, + 5: { + Finvc: float64(1.4104682921759335), + Flogc: -Float64FromFloat64(0.3439217713603284), + }, + 6: { + Finvc: float64(1.4027396147468003), + Flogc: -Float64FromFloat64(0.3384271921261188), + }, + 7: { + Finvc: float64(1.3950954438932313), + Flogc: -Float64FromFloat64(0.332962831494342), + }, + 8: { + Finvc: float64(1.3875338232485754), + Flogc: -Float64FromFloat64(0.32752794345742586), + }, + 9: { + Finvc: float64(1.3800539211058593), + Flogc: -Float64FromFloat64(0.32212257167088865), + }, + 10: { + Finvc: float64(1.3726542695419708), + Flogc: -Float64FromFloat64(0.3167462884799761), + }, + 11: { + Finvc: float64(1.3653332798446802), + Flogc: -Float64FromFloat64(0.3113985598928366), + }, + 12: { + Finvc: float64(1.358090204587874), + Flogc: -Float64FromFloat64(0.3060794515165526), + }, + 13: { + Finvc: float64(1.3509234892132138), + Flogc: -Float64FromFloat64(0.300788424667644), + }, + 14: { + Finvc: float64(1.3438320840699889), + Flogc: -Float64FromFloat64(0.2955252968476998), + }, + 15: { + Finvc: float64(1.3368146974742003), + Flogc: -Float64FromFloat64(0.29028969275850613), + }, + 16: { + Finvc: float64(1.329870114677736), + Flogc: -Float64FromFloat64(0.2850812793277555), + }, + 17: { + Finvc: float64(1.322997339161106), + Flogc: -Float64FromFloat64(0.27989987391470095), + }, + 18: { + Finvc: float64(1.316195352741367), + Flogc: -Float64FromFloat64(0.27474526621870154), + }, + 19: { + Finvc: float64(1.3094628125672239), + Flogc: -Float64FromFloat64(0.2696169863701243), + }, + 20: { + Finvc: float64(1.3027990455471041), + Flogc: -Float64FromFloat64(0.26451506180308115), + }, + 21: { + Finvc: float64(1.2962024229438942), + Flogc: -Float64FromFloat64(0.2594387762767383), + }, + 22: { + Finvc: float64(1.2896726275815547), + Flogc: -Float64FromFloat64(0.2543884090981692), + }, + 23: { + Finvc: float64(1.2832080305745537), + Flogc: -Float64FromFloat64(0.24936321635129843), + }, + 24: { + Finvc: float64(1.276807885983376), + Flogc: -Float64FromFloat64(0.24436312405975968), + }, + 25: { + Finvc: float64(1.2704714060687552), + Flogc: -Float64FromFloat64(0.23938801747897287), + }, + 26: { + Finvc: float64(1.2641976054949482), + Flogc: -Float64FromFloat64(0.23443761696705678), + }, + 27: { + Finvc: float64(1.257985357514882), + Flogc: -Float64FromFloat64(0.22951151871518505), + }, + 28: { + Finvc: float64(1.2518337750655457), + Flogc: -Float64FromFloat64(0.2246094963439873), + }, + 29: { + Finvc: float64(1.2457421919097305), + Flogc: -Float64FromFloat64(0.21973149037705753), + }, + 30: { + Finvc: float64(1.2397094966625508), + Flogc: -Float64FromFloat64(0.2148770752847895), + }, + 31: { + Finvc: float64(1.2337348463589233), + Flogc: -Float64FromFloat64(0.210046029103637), + }, + 32: { + Finvc: float64(1.2278176973028803), + Flogc: -Float64FromFloat64(0.20523836373934046), + }, + 33: { + Finvc: float64(1.2219570190618474), + Flogc: -Float64FromFloat64(0.20045368751368642), + }, + 34: { + Finvc: float64(1.2161519732977757), + Flogc: -Float64FromFloat64(0.1956917537758045), + }, + 35: { + Finvc: float64(1.2104018095009725), + Flogc: -Float64FromFloat64(0.19095237845203883), + }, + 36: { + Finvc: float64(1.204705805718973), + Flogc: -Float64FromFloat64(0.18623539250290833), + }, + 37: { + Finvc: float64(1.1990631185441964), + Flogc: -Float64FromFloat64(0.18154051731551135), + }, + 38: { + Finvc: float64(1.1934733004462308), + Flogc: -Float64FromFloat64(0.1768677957431919), + }, + 39: { + Finvc: float64(1.1879350812847385), + Flogc: -Float64FromFloat64(0.17221657406412305), + }, + 40: { + Finvc: float64(1.1824481322833125), + Flogc: -Float64FromFloat64(0.16758697765942543), + }, + 41: { + Finvc: float64(1.1770114976921955), + Flogc: -Float64FromFloat64(0.16297859687290384), + }, + 42: { + Finvc: float64(1.1716248121809465), + Flogc: -Float64FromFloat64(0.15839151377804228), + }, + 43: { + Finvc: float64(1.1662869231674715), + Flogc: -Float64FromFloat64(0.15382513241456763), + }, + 44: { + Finvc: float64(1.1609977486762766), + Flogc: -Float64FromFloat64(0.14927976358922024), + }, + 45: { + Finvc: float64(1.1557563220795803), + Flogc: -Float64FromFloat64(0.14475495398119165), + }, + 46: { + Finvc: float64(1.1505619105480347), + Flogc: -Float64FromFloat64(0.14025044090817573), + }, + 47: { + Finvc: float64(1.1454138888505974), + Flogc: -Float64FromFloat64(0.1357660466685502), + }, + 48: { + Finvc: float64(1.140311877374656), + Flogc: -Float64FromFloat64(0.1313018016355727), + }, + 49: { + Finvc: float64(1.1352550225747513), + Flogc: -Float64FromFloat64(0.12685731518763532), + }, + 50: { + Finvc: float64(1.1302429094831266), + Flogc: -Float64FromFloat64(0.1224325737671279), + }, + 51: { + Finvc: float64(1.1252747693068048), + Flogc: -Float64FromFloat64(0.11802724521862729), + }, + 52: { + Finvc: float64(1.1203501571039876), + Flogc: -Float64FromFloat64(0.11364127671663482), + }, + 53: { + Finvc: float64(1.1154683327680124), + Flogc: -Float64FromFloat64(0.10927434611278386), + }, + 54: { + Finvc: float64(1.1106291463292157), + Flogc: -Float64FromFloat64(0.10492665324943573), + }, + 55: { + Finvc: float64(1.1058315813301596), + Flogc: -Float64FromFloat64(0.10059761422644442), + }, + 56: { + Finvc: float64(1.1010752177696026), + Flogc: -Float64FromFloat64(0.09628717309055901), + }, + 57: { + Finvc: float64(1.0963597137952512), + Flogc: -Float64FromFloat64(0.09199534069557558), + }, + 58: { + Finvc: float64(1.0916844827550398), + Flogc: -Float64FromFloat64(0.08772190036688698), + }, + 59: { + Finvc: float64(1.0870487291277784), + Flogc: -Float64FromFloat64(0.08346643613867855), + }, + 60: { + Finvc: float64(1.082452357388312), + Flogc: -Float64FromFloat64(0.07922916827544668), + }, + 61: { + Finvc: float64(1.0778948225025884), + Flogc: -Float64FromFloat64(0.0750099004750382), + }, + 62: { + Finvc: float64(1.0733751731601076), + Flogc: -Float64FromFloat64(0.07080805133352897), + }, + 63: { + Finvc: float64(1.068893585073351), + Flogc: -Float64FromFloat64(0.06662408085151128), + }, + 64: { + Finvc: float64(1.0644491706655506), + Flogc: -Float64FromFloat64(0.06245745471915143), + }, + 65: { + Finvc: float64(1.0600414846328305), + Flogc: -Float64FromFloat64(0.0583080438042316), + }, + 66: { + Finvc: float64(1.0556701316181605), + Flogc: -Float64FromFloat64(0.05417576112313327), + }, + 67: { + Finvc: float64(1.051334750556926), + Flogc: -Float64FromFloat64(0.050060547896805474), + }, + 68: { + Finvc: float64(1.0470347288442157), + Flogc: -Float64FromFloat64(0.045962101199052086), + }, + 69: { + Finvc: float64(1.0427699229652954), + Flogc: -Float64FromFloat64(0.04188056008865715), + }, + 70: { + Finvc: float64(1.0385395013738175), + Flogc: -Float64FromFloat64(0.03781540056183985), + }, + 71: { + Finvc: float64(1.034343418940345), + Flogc: -Float64FromFloat64(0.03376684757915882), + }, + 72: { + Finvc: float64(1.0301811073173315), + Flogc: -Float64FromFloat64(0.029734619131772888), + }, + 73: { + Finvc: float64(1.026052043621297), + Flogc: -Float64FromFloat64(0.025718470239212365), + }, + 74: { + Finvc: float64(1.0219561082336197), + Flogc: -Float64FromFloat64(0.021718543925430822), + }, + 75: { + Finvc: float64(1.0178926505784922), + Flogc: -Float64FromFloat64(0.01773446126981071), + }, + 76: { + Finvc: float64(1.0138614436244586), + Flogc: -Float64FromFloat64(0.013766252464051831), + }, + 77: { + Finvc: float64(1.0098620186501341), + Flogc: -Float64FromFloat64(0.009813706322574944), + }, + 78: { + Finvc: float64(1.0058938559734134), + Flogc: -Float64FromFloat64(0.005876555150052809), + }, + 79: { + Finvc: float64(1.00195696235014), + Flogc: -Float64FromFloat64(0.0019550499938532084), + }, + 80: { + Finvc: float64(0.9961089923088509), + Flogc: float64(0.0038985973556009412), + }, + 81: { + Finvc: float64(0.9884170338185201), + Flogc: float64(0.011650571286395461), + }, + 82: { + Finvc: float64(0.9808429191005297), + Flogc: float64(0.019342955478919066), + }, + 83: { + Finvc: float64(0.9733840169987446), + Flogc: float64(0.0269766014846482), + }, + 84: { + Finvc: float64(0.9660377568876556), + Flogc: float64(0.034552359728422744), + }, + 85: { + Finvc: float64(0.9588014945307369), + Flogc: float64(0.04207121767183253), + }, + 86: { + Finvc: float64(0.9516728569073111), + Flogc: float64(0.049533940950141186), + }, + 87: { + Finvc: float64(0.9446494635965822), + Flogc: float64(0.056941358295944156), + }, + 88: { + Finvc: float64(0.9377288993026223), + Flogc: float64(0.06429439168346107), + }, + 89: { + Finvc: float64(0.9309091073790681), + Flogc: float64(0.0715936354946507), + }, + 90: { + Finvc: float64(0.924187681612722), + Flogc: float64(0.07884010933776153), + }, + 91: { + Finvc: float64(0.9175626765599192), + Flogc: float64(0.08603438905970506), + }, + 92: { + Finvc: float64(0.9110320403624034), + Flogc: float64(0.09317721180013905), + }, + 93: { + Finvc: float64(0.9045935839762024), + Flogc: float64(0.10026951462748457), + }, + 94: { + Finvc: float64(0.8982456375922825), + Flogc: float64(0.10731170956330516), + }, + 95: { + Finvc: float64(0.8919860966782501), + Flogc: float64(0.11430473320717738), + }, + 96: { + Finvc: float64(0.8858131121185129), + Flogc: float64(0.12124928503033061), + }, + 97: { + Finvc: float64(0.879725075760676), + Flogc: float64(0.12814583422959913), + }, + 98: { + Finvc: float64(0.8737201372634685), + Flogc: float64(0.1349951636851756), + }, + 99: { + Finvc: float64(0.8677966405782273), + Flogc: float64(0.1417978768189414), + }, + 100: { + Finvc: float64(0.8619528050060739), + Flogc: float64(0.14855476039031146), + }, + 101: { + Finvc: float64(0.8561872354420692), + Flogc: float64(0.1552661937658968), + }, + 102: { + Finvc: float64(0.8504983927816893), + Flogc: float64(0.16193275688146969), + }, + 103: { + Finvc: float64(0.8448844572790304), + Flogc: float64(0.16855539792220497), + }, + 104: { + Finvc: float64(0.8393442741575965), + Flogc: float64(0.1751343179947753), + }, + 105: { + Finvc: float64(0.8338762249349438), + Flogc: float64(0.1816702989864325), + }, + 106: { + Finvc: float64(0.8284789320557778), + Flogc: float64(0.18816387146023317), + }, + 107: { + Finvc: float64(0.8231510800065832), + Flogc: float64(0.1946155228479256), + }, + 108: { + Finvc: float64(0.8178913903778707), + Flogc: float64(0.20102572579389744), + }, + 109: { + Finvc: float64(0.8126984007245374), + Flogc: float64(0.2073952090795501), + }, + 110: { + Finvc: float64(0.8075710029460227), + Flogc: float64(0.21372429840596396), + }, + 111: { + Finvc: float64(0.8025078881160415), + Flogc: float64(0.2200135945981856), + }, + 112: { + Finvc: float64(0.7975077379364331), + Flogc: float64(0.22626374162859975), + }, + 113: { + Finvc: float64(0.792569604966373), + Flogc: float64(0.23247494747693054), + }, + 114: { + Finvc: float64(0.7876923641254114), + Flogc: float64(0.23864766620658884), + }, + 115: { + Finvc: float64(0.7828746724940998), + Flogc: float64(0.24478265647405806), + }, + 116: { + Finvc: float64(0.7781155388790811), + Flogc: float64(0.25088025827324145), + }, + 117: { + Finvc: float64(0.7734139557869777), + Flogc: float64(0.2569408552510595), + }, + 118: { + Finvc: float64(0.7687687179914933), + Flogc: float64(0.26296511155101143), + }, + 119: { + Finvc: float64(0.7641790698041854), + Flogc: float64(0.2689531327189343), + }, + 120: { + Finvc: float64(0.7596438763692399), + Flogc: float64(0.27490553924610595), + }, + 121: { + Finvc: float64(0.7551621951078668), + Flogc: float64(0.2808227248478943), + }, + 122: { + Finvc: float64(0.7507331780216866), + Flogc: float64(0.286704979267256), + }, + 123: { + Finvc: float64(0.7463557196361751), + Flogc: float64(0.29255295645509705), + }, + 124: { + Finvc: float64(0.7420289364869653), + Flogc: float64(0.2983670386142876), + }, + 125: { + Finvc: float64(0.7377521537065876), + Flogc: float64(0.30414734587282055), + }, + 126: { + Finvc: float64(0.7335242966002608), + Flogc: float64(0.30989455774829366), + }, + 127: { + Finvc: float64(0.729344777457841), + Flogc: float64(0.31560871301871884), + }, + }, + Ftab2: [128]struct { + Fchi float64 + Fclo float64 + }{ + 0: { + Fchi: float64(0.6894531274426304), + Fclo: float64(2.60290652810535e-17), + }, + 1: { + Fchi: float64(0.6933593811533166), + Fclo: float64(5.1607448519931415e-17), + }, + 2: { + Fchi: float64(0.6972656502972674), + Fclo: float64(5.290672414887869e-17), + }, + 3: { + Fchi: float64(0.7011718886092148), + Fclo: float64(7.801030634806013e-18), + }, + 4: { + Fchi: float64(0.7050781228976939), + Fclo: -Float64FromFloat64(2.471355337688684e-17), + }, + 5: { + Fchi: float64(0.7089843887644558), + Fclo: -Float64FromFloat64(4.6413389636862956e-17), + }, + 6: { + Fchi: float64(0.7128906815542553), + Fclo: float64(3.3387408065940366e-17), + }, + 7: { + Fchi: float64(0.7167968359278303), + Fclo: -Float64FromFloat64(2.6454587338050098e-17), + }, + 8: { + Fchi: float64(0.7207031520563163), + Fclo: float64(2.4284096334522285e-17), + }, + 9: { + Fchi: float64(0.7246093683054673), + Fclo: float64(4.85782435031982e-17), + }, + 10: { + Fchi: float64(0.7285155644718035), + Fclo: -Float64FromFloat64(1.3014776598894487e-17), + }, + 11: { + Fchi: float64(0.7324219036935506), + Fclo: -Float64FromFloat64(1.0402317671225898e-17), + }, + 12: { + Fchi: float64(0.73632811474659), + Fclo: float64(3.078291427467431e-17), + }, + 13: { + Fchi: float64(0.7402343715130797), + Fclo: -Float64FromFloat64(1.4304998976623033e-17), + }, + 14: { + Fchi: float64(0.7441405900738403), + Fclo: -Float64FromFloat64(2.8625955785571303e-17), + }, + 15: { + Fchi: float64(0.7480468324364), + Fclo: float64(5.1609093535635645e-17), + }, + 16: { + Fchi: float64(0.7519531335902885), + Fclo: float64(4.423423949536319e-17), + }, + 17: { + Fchi: float64(0.7558594189116706), + Fclo: -Float64FromFloat64(4.683016762099508e-17), + }, + 18: { + Fchi: float64(0.7597656365502305), + Fclo: float64(4.466742007514772e-17), + }, + 19: { + Fchi: float64(0.7636719350887737), + Fclo: -Float64FromFloat64(4.8134498775190266e-17), + }, + 20: { + Fchi: float64(0.767578087670501), + Fclo: -Float64FromFloat64(4.3371015350542286e-17), + }, + 21: { + Fchi: float64(0.7714844396979536), + Fclo: -Float64FromFloat64(2.515644472251707e-17), + }, + 22: { + Fchi: float64(0.7753905747966752), + Fclo: -Float64FromFloat64(4.163636184961329e-17), + }, + 23: { + Fchi: float64(0.7792968686084766), + Fclo: float64(3.3837161384165165e-17), + }, + 24: { + Fchi: float64(0.783203182701066), + Fclo: float64(4.379206565056758e-17), + }, + 25: { + Fchi: float64(0.7871094109030913), + Fclo: float64(2.7322930976146396e-17), + }, + 26: { + Fchi: float64(0.7910155783031153), + Fclo: -Float64FromFloat64(5.463661225364046e-17), + }, + 27: { + Fchi: float64(0.7949218121071572), + Fclo: -Float64FromFloat64(1.4320502634189868e-17), + }, + 28: { + Fchi: float64(0.7988281031542229), + Fclo: -Float64FromFloat64(4.0766731402809024e-17), + }, + 29: { + Fchi: float64(0.8027343109146796), + Fclo: -Float64FromFloat64(4.0338264352540086e-17), + }, + 30: { + Fchi: float64(0.8066405901480322), + Fclo: float64(1.7241428071650815e-18), + }, + 31: { + Fchi: float64(0.8105469363625933), + Fclo: -Float64FromFloat64(4.5534218930924523e-17), + }, + 32: { + Fchi: float64(0.8144531571720115), + Fclo: float64(1.821216920589142e-17), + }, + 33: { + Fchi: float64(0.8183593894061396), + Fclo: float64(4.9864288025894273e-17), + }, + 34: { + Fchi: float64(0.8222656559018297), + Fclo: float64(4.335990416726689e-17), + }, + 35: { + Fchi: float64(0.8261719308006343), + Fclo: -Float64FromFloat64(5.422001471661127e-17), + }, + 36: { + Fchi: float64(0.830078177803083), + Fclo: -Float64FromFloat64(5.333603728929035e-17), + }, + 37: { + Fchi: float64(0.8339844538076674), + Fclo: -Float64FromFloat64(1.1270648442682386e-17), + }, + 38: { + Fchi: float64(0.8378905498984414), + Fclo: -Float64FromFloat64(3.165126734800398e-17), + }, + 39: { + Fchi: float64(0.8417968420618669), + Fclo: float64(1.1286283062565865e-17), + }, + 40: { + Fchi: float64(0.8457030568173808), + Fclo: float64(5.643595964448442e-18), + }, + 41: { + Fchi: float64(0.8496093725173733), + Fclo: -Float64FromFloat64(2.1687834632368187e-17), + }, + 42: { + Fchi: float64(0.8535155534462677), + Fclo: -Float64FromFloat64(2.2548234217914977e-17), + }, + 43: { + Fchi: float64(0.8574219432077146), + Fclo: float64(4.683260556353139e-17), + }, + 44: { + Fchi: float64(0.8613281129443706), + Fclo: float64(2.5148296884122795e-17), + }, + 45: { + Fchi: float64(0.8652342893532053), + Fclo: -Float64FromFloat64(8.672187570949467e-18), + }, + 46: { + Fchi: float64(0.8691405397938828), + Fclo: -Float64FromFloat64(1.2576268285559751e-17), + }, + 47: { + Fchi: float64(0.8730468608194392), + Fclo: -Float64FromFloat64(2.9930851265148e-17), + }, + 48: { + Fchi: float64(0.8769530685783117), + Fclo: float64(4.814801507681644e-17), + }, + 49: { + Fchi: float64(0.8808593488818101), + Fclo: -Float64FromFloat64(9.10549533611022e-18), + }, + 50: { + Fchi: float64(0.8847655593409667), + Fclo: -Float64FromFloat64(3.512414651620766e-17), + }, + 51: { + Fchi: float64(0.888671840226208), + Fclo: float64(3.555261815374023e-17), + }, + 52: { + Fchi: float64(0.8925780870017613), + Fclo: float64(1.692380503540994e-17), + }, + 53: { + Fchi: float64(0.8964844367374554), + Fclo: -Float64FromFloat64(1.0837881791715702e-17), + }, + 54: { + Fchi: float64(0.9003905608862683), + Fclo: float64(5.2900545724138363e-17), + }, + 55: { + Fchi: float64(0.9042968358682077), + Fclo: float64(5.3330721088784517e-17), + }, + 56: { + Fchi: float64(0.9082031671057441), + Fclo: float64(1.8640040753232978e-17), + }, + 57: { + Fchi: float64(0.9121093993305497), + Fclo: float64(4.467972832054075e-17), + }, + 58: { + Fchi: float64(0.9160155849026457), + Fclo: -Float64FromFloat64(5.216213419585033e-18), + }, + 59: { + Fchi: float64(0.9199219622862499), + Fclo: -Float64FromFloat64(2.7324731032846873e-17), + }, + 60: { + Fchi: float64(0.9238281880717143), + Fclo: -Float64FromFloat64(1.7769263393434193e-17), + }, + 61: { + Fchi: float64(0.9277343012727929), + Fclo: float64(4.943363080817441e-17), + }, + 62: { + Fchi: float64(0.9316407021562788), + Fclo: float64(4.164434042024055e-17), + }, + 63: { + Fchi: float64(0.935546825207466), + Fclo: float64(1.3011820859795741e-17), + }, + 64: { + Fchi: float64(0.9394530312562943), + Fclo: -Float64FromFloat64(2.7332907838481398e-17), + }, + 65: { + Fchi: float64(0.9433593066844669), + Fclo: float64(2.342133170803292e-17), + }, + 66: { + Fchi: float64(0.9472655994038329), + Fclo: float64(1.6478717480487438e-17), + }, + 67: { + Fchi: float64(0.9511718313032721), + Fclo: -Float64FromFloat64(5.19608290131499e-18), + }, + 68: { + Fchi: float64(0.9550781578218178), + Fclo: -Float64FromFloat64(3.5565573220579e-17), + }, + 69: { + Fchi: float64(0.9589843147339043), + Fclo: float64(2.0816772146458738e-17), + }, + 70: { + Fchi: float64(0.9628906735633685), + Fclo: -Float64FromFloat64(3.471962826146841e-18), + }, + 71: { + Fchi: float64(0.9667968893972092), + Fclo: -Float64FromFloat64(3.68646834472642e-17), + }, + 72: { + Fchi: float64(0.9707031054025779), + Fclo: -Float64FromFloat64(3.4674108076868834e-18), + }, + 73: { + Fchi: float64(0.9746094325494931), + Fclo: float64(4.598152624774392e-17), + }, + 74: { + Fchi: float64(0.9785156054582722), + Fclo: float64(4.553145752392568e-17), + }, + 75: { + Fchi: float64(0.9824218687812282), + Fclo: -Float64FromFloat64(7.811259169418978e-18), + }, + 76: { + Fchi: float64(0.9863280690752917), + Fclo: float64(2.0375615178047467e-17), + }, + 77: { + Fchi: float64(0.9902342909546034), + Fclo: -Float64FromFloat64(1.344597043422914e-17), + }, + 78: { + Fchi: float64(0.9941406780264008), + Fclo: float64(1.51853723695054e-17), + }, + 79: { + Fchi: float64(0.9980468598715558), + Fclo: -Float64FromFloat64(1.301926039598001e-17), + }, + 80: { + Fchi: float64(1.0039062067717412), + Fclo: -Float64FromFloat64(4.596120641744973e-17), + }, + 81: { + Fchi: float64(1.0117187035281372), + Fclo: -Float64FromFloat64(8.152405002665349e-17), + }, + 82: { + Fchi: float64(1.0195312424919558), + Fclo: float64(8.239927014757811e-17), + }, + 83: { + Fchi: float64(1.0273437641634193), + Fclo: float64(3.122851005327045e-17), + }, + 84: { + Fchi: float64(1.0351562274561221), + Fclo: -Float64FromFloat64(1.3010212611128995e-17), + }, + 85: { + Fchi: float64(1.0429687539123276), + Fclo: -Float64FromFloat64(5.984116688633458e-17), + }, + 86: { + Fchi: float64(1.0507812561238108), + Fclo: float64(2.860923854822335e-17), + }, + 87: { + Fchi: float64(1.0585937308350133), + Fclo: -Float64FromFloat64(1.9962944508904598e-17), + }, + 88: { + Fchi: float64(1.0664062936992642), + Fclo: float64(5.291469130309099e-17), + }, + 89: { + Fchi: float64(1.0742187309945372), + Fclo: float64(1.0321575006732523e-16), + }, + 90: { + Fchi: float64(1.082031301537134), + Fclo: float64(9.021194373419119e-17), + }, + 91: { + Fchi: float64(1.0898438063644336), + Fclo: float64(5.202798992357953e-17), + }, + 92: { + Fchi: float64(1.0976562356711468), + Fclo: float64(5.898318482500785e-17), + }, + 93: { + Fchi: float64(1.1054688179463226), + Fclo: float64(8.846377690653252e-17), + }, + 94: { + Fchi: float64(1.113281220803328), + Fclo: -Float64FromFloat64(9.529455965212574e-18), + }, + 95: { + Fchi: float64(1.1210937073167315), + Fclo: float64(6.765080709377787e-17), + }, + 96: { + Fchi: float64(1.1289062967338532), + Fclo: float64(1.0929327370933015e-16), + }, + 97: { + Fchi: float64(1.1367187631150848), + Fclo: float64(6.938570551230516e-17), + }, + 98: { + Fchi: float64(1.1445312490244826), + Fclo: float64(1.908841015045148e-17), + }, + 99: { + Fchi: float64(1.1523437096203593), + Fclo: float64(2.7744504138979832e-17), + }, + 100: { + Fchi: float64(1.1601563266482477), + Fclo: -Float64FromFloat64(1.5621964097491672e-17), + }, + 101: { + Fchi: float64(1.1679688257483505), + Fclo: -Float64FromFloat64(6.4191661495975e-17), + }, + 102: { + Fchi: float64(1.1757811754697645), + Fclo: -Float64FromFloat64(4.336465165059268e-17), + }, + 103: { + Fchi: float64(1.183593793665613), + Fclo: -Float64FromFloat64(3.8159292551356396e-17), + }, + 104: { + Fchi: float64(1.1914062331617676), + Fclo: -Float64FromFloat64(2.94933042768015e-17), + }, + 105: { + Fchi: float64(1.1992187450577771), + Fclo: -Float64FromFloat64(6.244142916351348e-17), + }, + 106: { + Fchi: float64(1.2070312971249755), + Fclo: float64(7.458644622627413e-17), + }, + 107: { + Fchi: float64(1.2148438169965134), + Fclo: float64(2.7760519266147807e-17), + }, + 108: { + Fchi: float64(1.222656225220801), + Fclo: -Float64FromFloat64(7.025106921079665e-17), + }, + 109: { + Fchi: float64(1.2304687681290862), + Fclo: float64(3.7292622364618835e-17), + }, + 110: { + Fchi: float64(1.2382812116234925), + Fclo: float64(2.2558949940652082e-17), + }, + 111: { + Fchi: float64(1.2460936706149877), + Fclo: float64(8.499368944400665e-17), + }, + 112: { + Fchi: float64(1.2539063289686938), + Fclo: float64(1.039515474644361e-17), + }, + 113: { + Fchi: float64(1.2617188367227732), + Fclo: float64(3.297262223275499e-17), + }, + 114: { + Fchi: float64(1.2695311590462317), + Fclo: float64(4.509883253594155e-17), + }, + 115: { + Fchi: float64(1.277343660657941), + Fclo: -Float64FromFloat64(7.546987371769545e-17), + }, + 116: { + Fchi: float64(1.2851561882963496), + Fclo: float64(9.454295598818184e-17), + }, + 117: { + Fchi: float64(1.2929686521915196), + Fclo: -Float64FromFloat64(7.28545609119749e-17), + }, + 118: { + Fchi: float64(1.3007813359167737), + Fclo: -Float64FromFloat64(8.934357651462802e-17), + }, + 119: { + Fchi: float64(1.3085938093753886), + Fclo: float64(8.15257059458102e-17), + }, + 120: { + Fchi: float64(1.3164063202609564), + Fclo: float64(6.946341460765881e-18), + }, + 121: { + Fchi: float64(1.3242188320313901), + Fclo: -Float64FromFloat64(7.892731380721676e-17), + }, + 122: { + Fchi: float64(1.3320311786874468), + Fclo: -Float64FromFloat64(4.3384657500713545e-17), + }, + 123: { + Fchi: float64(1.3398436880573092), + Fclo: float64(9.627577954598792e-17), + }, + 124: { + Fchi: float64(1.3476563390295309), + Fclo: float64(4.2492400590204517e-17), + }, + 125: { + Fchi: float64(1.3554687641043626), + Fclo: -Float64FromFloat64(1.0843419551446047e-16), + }, + 126: { + Fchi: float64(1.3632813590971713), + Fclo: -Float64FromFloat64(8.50172782472025e-17), + }, + 127: { + Fchi: float64(1.3710936595522603), + Fclo: -Float64FromFloat64(7.110627206162922e-17), + }, + }, +} + +var X__logf_data = Tlogf_data{ + Ftab: [16]struct { + Finvc float64 + Flogc float64 + }{ + 0: { + Finvc: float64(1.398907162146528), + Flogc: -Float64FromFloat64(0.33569133332882284), + }, + 1: { + Finvc: float64(1.3403141896637998), + Flogc: -Float64FromFloat64(0.2929040563774074), + }, + 2: { + Finvc: float64(1.286432210124115), + Flogc: -Float64FromFloat64(0.2518726580937369), + }, + 3: { + Finvc: float64(1.2367150214269895), + Flogc: -Float64FromFloat64(0.21245868807117255), + }, + 4: { + Finvc: float64(1.1906977166711752), + Flogc: -Float64FromFloat64(0.17453945183745634), + }, + 5: { + Finvc: float64(1.1479821020556429), + Flogc: -Float64FromFloat64(0.1380057072319758), + }, + 6: { + Finvc: float64(1.1082251448272158), + Flogc: -Float64FromFloat64(0.10275976698545139), + }, + 7: { + Finvc: float64(1.0711297413057381), + Flogc: -Float64FromFloat64(0.06871392447020525), + }, + 8: { + Finvc: float64(1.036437278977283), + Flogc: -Float64FromFloat64(0.0357891387398228), + }, + 9: { + Finvc: float64(1), + }, + 10: { + Finvc: float64(0.9492859795739057), + Flogc: float64(0.05204517742929496), + }, + 11: { + Finvc: float64(0.8951049428609004), + Flogc: float64(0.11081431298787942), + }, + 12: { + Finvc: float64(0.8476821620351103), + Flogc: float64(0.1652495223695143), + }, + 13: { + Finvc: float64(0.8050314851692001), + Flogc: float64(0.21687389031699977), + }, + 14: { + Finvc: float64(0.7664671008843108), + Flogc: float64(0.2659635028121397), + }, + 15: { + Finvc: float64(0.731428603316328), + Flogc: float64(0.3127556664073557), + }, + }, + Fln2: float64(0.6931471805599453), + Fpoly: [3]float64{ + 0: -Float64FromFloat64(0.25089342214237154), + 1: float64(0.333456765744066), + 2: -Float64FromFloat64(0.4999997485802103), + }, +} + +var X__optpos int32 + +var Xoptreset int32 + +var X__pow_log_data = Tpow_log_data{ + Fln2hi: float64(0.6931471805598903), + Fln2lo: float64(5.497923018708371e-14), + Fpoly: [7]float64{ + 0: -Float64FromFloat64(0.5), + 1: float64(Float64FromFloat64(0.3333333333333339) * float64(-Int32FromInt32(2))), + 2: float64(-Float64FromFloat64(0.25000000000000033) * float64(-Int32FromInt32(2))), + 3: float64(Float64FromFloat64(0.1999999998830994) * Float64FromInt32(4)), + 4: float64(-Float64FromFloat64(0.16666666658719348) * Float64FromInt32(4)), + 5: float64(Float64FromFloat64(0.14286370355743763) * float64(-Int32FromInt32(8))), + 6: float64(-Float64FromFloat64(0.12500519079594427) * float64(-Int32FromInt32(8))), + }, + Ftab: [128]struct { + Finvc float64 + Fpad float64 + Flogc float64 + Flogctail float64 + }{ + 0: { + Finvc: float64(1.4140625), + Flogc: -Float64FromFloat64(0.3464667673462145), + Flogctail: float64(5.929407345889625e-15), + }, + 1: { + Finvc: float64(1.40625), + Flogc: -Float64FromFloat64(0.34092658697056777), + Flogctail: -Float64FromFloat64(2.544157440035963e-14), + }, + 2: { + Finvc: float64(1.3984375), + Flogc: -Float64FromFloat64(0.3353555419211034), + Flogctail: -Float64FromFloat64(3.443525940775045e-14), + }, + 3: { + Finvc: float64(1.390625), + Flogc: -Float64FromFloat64(0.3297532863724655), + Flogctail: -Float64FromFloat64(2.500123826022799e-15), + }, + 4: { + Finvc: float64(1.3828125), + Flogc: -Float64FromFloat64(0.32411946865420305), + Flogctail: -Float64FromFloat64(8.929337133850617e-15), + }, + 5: { + Finvc: float64(1.375), + Flogc: -Float64FromFloat64(0.31845373111855224), + Flogctail: float64(1.7625431312172662e-14), + }, + 6: { + Finvc: float64(1.3671875), + Flogc: -Float64FromFloat64(0.31275571000389846), + Flogctail: float64(1.5688303180062087e-15), + }, + 7: { + Finvc: float64(1.359375), + Flogc: -Float64FromFloat64(0.3070250352949415), + Flogctail: float64(2.9655274673691784e-14), + }, + 8: { + Finvc: float64(1.3515625), + Flogc: -Float64FromFloat64(0.3012613305781997), + Flogctail: float64(3.7923164802093147e-14), + }, + 9: { + Finvc: float64(1.34375), + Flogc: -Float64FromFloat64(0.2954642128938758), + Flogctail: float64(3.993416384387844e-14), + }, + 10: { + Finvc: float64(1.3359375), + Flogc: -Float64FromFloat64(0.28963329258306203), + Flogctail: float64(1.9352855826489123e-14), + }, + 11: { + Finvc: float64(1.3359375), + Flogc: -Float64FromFloat64(0.28963329258306203), + Flogctail: float64(1.9352855826489123e-14), + }, + 12: { + Finvc: float64(1.328125), + Flogc: -Float64FromFloat64(0.28376817313062475), + Flogctail: -Float64FromFloat64(1.9852665484979036e-14), + }, + 13: { + Finvc: float64(1.3203125), + Flogc: -Float64FromFloat64(0.27786845100342816), + Flogctail: -Float64FromFloat64(2.814323765595281e-14), + }, + 14: { + Finvc: float64(1.3125), + Flogc: -Float64FromFloat64(0.2719337154836694), + Flogctail: float64(2.7643769993528702e-14), + }, + 15: { + Finvc: float64(1.3046875), + Flogc: -Float64FromFloat64(0.2659635484970977), + Flogctail: -Float64FromFloat64(4.025092402293806e-14), + }, + 16: { + Finvc: float64(1.296875), + Flogc: -Float64FromFloat64(0.25995752443691345), + Flogctail: -Float64FromFloat64(1.2621729398885316e-14), + }, + 17: { + Finvc: float64(1.2890625), + Flogc: -Float64FromFloat64(0.25391520998095984), + Flogctail: -Float64FromFloat64(3.600176732637335e-15), + }, + 18: { + Finvc: float64(1.2890625), + Flogc: -Float64FromFloat64(0.25391520998095984), + Flogctail: -Float64FromFloat64(3.600176732637335e-15), + }, + 19: { + Finvc: float64(1.28125), + Flogc: -Float64FromFloat64(0.2478361639045943), + Flogctail: float64(1.3029797173308663e-14), + }, + 20: { + Finvc: float64(1.2734375), + Flogc: -Float64FromFloat64(0.2417199368871934), + Flogctail: float64(4.8230289429940886e-14), + }, + 21: { + Finvc: float64(1.265625), + Flogc: -Float64FromFloat64(0.23556607131274632), + Flogctail: -Float64FromFloat64(2.0592242769647135e-14), + }, + 22: { + Finvc: float64(1.2578125), + Flogc: -Float64FromFloat64(0.22937410106487732), + Flogctail: float64(3.149265065191484e-14), + }, + 23: { + Finvc: float64(1.25), + Flogc: -Float64FromFloat64(0.22314355131425145), + Flogctail: float64(4.169796584527195e-14), + }, + 24: { + Finvc: float64(1.25), + Flogc: -Float64FromFloat64(0.22314355131425145), + Flogctail: float64(4.169796584527195e-14), + }, + 25: { + Finvc: float64(1.2421875), + Flogc: -Float64FromFloat64(0.21687393830063684), + Flogctail: float64(2.2477465222466186e-14), + }, + 26: { + Finvc: float64(1.234375), + Flogc: -Float64FromFloat64(0.21056476910735), + Flogctail: float64(3.6507188831790577e-16), + }, + 27: { + Finvc: float64(1.2265625), + Flogc: -Float64FromFloat64(0.2042155414286526), + Flogctail: -Float64FromFloat64(3.827767260205414e-14), + }, + 28: { + Finvc: float64(1.2265625), + Flogc: -Float64FromFloat64(0.2042155414286526), + Flogctail: -Float64FromFloat64(3.827767260205414e-14), + }, + 29: { + Finvc: float64(1.21875), + Flogc: -Float64FromFloat64(0.19782574332987224), + Flogctail: -Float64FromFloat64(4.7641388950792196e-14), + }, + 30: { + Finvc: float64(1.2109375), + Flogc: -Float64FromFloat64(0.19139485299967873), + Flogctail: float64(4.9278276214647115e-14), + }, + 31: { + Finvc: float64(1.203125), + Flogc: -Float64FromFloat64(0.18492233849406148), + Flogctail: float64(4.9485167661250996e-14), + }, + 32: { + Finvc: float64(1.203125), + Flogc: -Float64FromFloat64(0.18492233849406148), + Flogctail: float64(4.9485167661250996e-14), + }, + 33: { + Finvc: float64(1.1953125), + Flogc: -Float64FromFloat64(0.1784076574728033), + Flogctail: -Float64FromFloat64(1.5003333854266542e-14), + }, + 34: { + Finvc: float64(1.1875), + Flogc: -Float64FromFloat64(0.17185025692663203), + Flogctail: -Float64FromFloat64(2.7194441649495324e-14), + }, + 35: { + Finvc: float64(1.1875), + Flogc: -Float64FromFloat64(0.17185025692663203), + Flogctail: -Float64FromFloat64(2.7194441649495324e-14), + }, + 36: { + Finvc: float64(1.1796875), + Flogc: -Float64FromFloat64(0.1652495728952772), + Flogctail: -Float64FromFloat64(2.99659267292569e-14), + }, + 37: { + Finvc: float64(1.171875), + Flogc: -Float64FromFloat64(0.15860503017665906), + Flogctail: float64(2.0472357800461955e-14), + }, + 38: { + Finvc: float64(1.171875), + Flogc: -Float64FromFloat64(0.15860503017665906), + Flogctail: float64(2.0472357800461955e-14), + }, + 39: { + Finvc: float64(1.1640625), + Flogc: -Float64FromFloat64(0.15191604202584585), + Flogctail: float64(3.879296723063646e-15), + }, + 40: { + Finvc: float64(1.15625), + Flogc: -Float64FromFloat64(0.1451820098444614), + Flogctail: -Float64FromFloat64(3.6506824353335045e-14), + }, + 41: { + Finvc: float64(1.1484375), + Flogc: -Float64FromFloat64(0.13840232285906495), + Flogctail: -Float64FromFloat64(5.4183331379008994e-14), + }, + 42: { + Finvc: float64(1.1484375), + Flogc: -Float64FromFloat64(0.13840232285906495), + Flogctail: -Float64FromFloat64(5.4183331379008994e-14), + }, + 43: { + Finvc: float64(1.140625), + Flogc: -Float64FromFloat64(0.131576357788731), + Flogctail: float64(1.1729485484531301e-14), + }, + 44: { + Finvc: float64(1.140625), + Flogc: -Float64FromFloat64(0.131576357788731), + Flogctail: float64(1.1729485484531301e-14), + }, + 45: { + Finvc: float64(1.1328125), + Flogc: -Float64FromFloat64(0.12470347850091912), + Flogctail: -Float64FromFloat64(3.811763084710266e-14), + }, + 46: { + Finvc: float64(1.125), + Flogc: -Float64FromFloat64(0.11778303565643), + Flogctail: float64(4.654729747598445e-14), + }, + 47: { + Finvc: float64(1.125), + Flogc: -Float64FromFloat64(0.11778303565643), + Flogctail: float64(4.654729747598445e-14), + }, + 48: { + Finvc: float64(1.1171875), + Flogc: -Float64FromFloat64(0.11081436634026431), + Flogctail: -Float64FromFloat64(2.5799991283069902e-14), + }, + 49: { + Finvc: float64(1.109375), + Flogc: -Float64FromFloat64(0.10379679368168127), + Flogctail: float64(3.7700471749674615e-14), + }, + 50: { + Finvc: float64(1.109375), + Flogc: -Float64FromFloat64(0.10379679368168127), + Flogctail: float64(3.7700471749674615e-14), + }, + 51: { + Finvc: float64(1.1015625), + Flogc: -Float64FromFloat64(0.09672962645856842), + Flogctail: float64(1.7306161136093256e-14), + }, + 52: { + Finvc: float64(1.1015625), + Flogc: -Float64FromFloat64(0.09672962645856842), + Flogctail: float64(1.7306161136093256e-14), + }, + 53: { + Finvc: float64(1.09375), + Flogc: -Float64FromFloat64(0.089612158689647), + Flogctail: -Float64FromFloat64(4.012913552726574e-14), + }, + 54: { + Finvc: float64(1.0859375), + Flogc: -Float64FromFloat64(0.08244366921110213), + Flogctail: float64(2.7541708360737882e-14), + }, + 55: { + Finvc: float64(1.0859375), + Flogc: -Float64FromFloat64(0.08244366921110213), + Flogctail: float64(2.7541708360737882e-14), + }, + 56: { + Finvc: float64(1.078125), + Flogc: -Float64FromFloat64(0.07522342123763792), + Flogctail: float64(5.0396178134370583e-14), + }, + 57: { + Finvc: float64(1.078125), + Flogc: -Float64FromFloat64(0.07522342123763792), + Flogctail: float64(5.0396178134370583e-14), + }, + 58: { + Finvc: float64(1.0703125), + Flogc: -Float64FromFloat64(0.06795066190852594), + Flogctail: float64(1.8195060030168815e-14), + }, + 59: { + Finvc: float64(1.0625), + Flogc: -Float64FromFloat64(0.06062462181648698), + Flogctail: float64(5.213620639136504e-14), + }, + 60: { + Finvc: float64(1.0625), + Flogc: -Float64FromFloat64(0.06062462181648698), + Flogctail: float64(5.213620639136504e-14), + }, + 61: { + Finvc: float64(1.0546875), + Flogc: -Float64FromFloat64(0.053244514518837605), + Flogctail: float64(2.532168943117445e-14), + }, + 62: { + Finvc: float64(1.0546875), + Flogc: -Float64FromFloat64(0.053244514518837605), + Flogctail: float64(2.532168943117445e-14), + }, + 63: { + Finvc: float64(1.046875), + Flogc: -Float64FromFloat64(0.045809536031242715), + Flogctail: -Float64FromFloat64(5.148849572685811e-14), + }, + 64: { + Finvc: float64(1.046875), + Flogc: -Float64FromFloat64(0.045809536031242715), + Flogctail: -Float64FromFloat64(5.148849572685811e-14), + }, + 65: { + Finvc: float64(1.0390625), + Flogc: -Float64FromFloat64(0.038318864302141264), + Flogctail: float64(4.6652946995830086e-15), + }, + 66: { + Finvc: float64(1.0390625), + Flogc: -Float64FromFloat64(0.038318864302141264), + Flogctail: float64(4.6652946995830086e-15), + }, + 67: { + Finvc: float64(1.03125), + Flogc: -Float64FromFloat64(0.03077165866670839), + Flogctail: -Float64FromFloat64(4.529814257790929e-14), + }, + 68: { + Finvc: float64(1.03125), + Flogc: -Float64FromFloat64(0.03077165866670839), + Flogctail: -Float64FromFloat64(4.529814257790929e-14), + }, + 69: { + Finvc: float64(1.0234375), + Flogc: -Float64FromFloat64(0.023167059281490765), + Flogctail: -Float64FromFloat64(4.361324067851568e-14), + }, + 70: { + Finvc: float64(1.015625), + Flogc: -Float64FromFloat64(0.015504186535963527), + Flogctail: -Float64FromFloat64(1.7274567499706107e-15), + }, + 71: { + Finvc: float64(1.015625), + Flogc: -Float64FromFloat64(0.015504186535963527), + Flogctail: -Float64FromFloat64(1.7274567499706107e-15), + }, + 72: { + Finvc: float64(1.0078125), + Flogc: -Float64FromFloat64(0.0077821404420319595), + Flogctail: -Float64FromFloat64(2.298941004620351e-14), + }, + 73: { + Finvc: float64(1.0078125), + Flogc: -Float64FromFloat64(0.0077821404420319595), + Flogctail: -Float64FromFloat64(2.298941004620351e-14), + }, + 74: { + Finvc: float64(1), + }, + 75: { + Finvc: float64(1), + }, + 76: { + Finvc: float64(0.9921875), + Flogc: float64(0.007843177461040796), + Flogctail: -Float64FromFloat64(1.4902732911301337e-14), + }, + 77: { + Finvc: float64(0.984375), + Flogc: float64(0.01574835696817445), + Flogctail: -Float64FromFloat64(3.527980389655325e-14), + }, + 78: { + Finvc: float64(0.9765625), + Flogc: float64(0.023716526617363343), + Flogctail: -Float64FromFloat64(4.730054772033249e-14), + }, + 79: { + Finvc: float64(0.96875), + Flogc: float64(0.03174869831457272), + Flogctail: float64(7.580310369375161e-15), + }, + 80: { + Finvc: float64(0.9609375), + Flogc: float64(0.039845908547249564), + Flogctail: -Float64FromFloat64(4.9893776716773285e-14), + }, + 81: { + Finvc: float64(0.953125), + Flogc: float64(0.048009219186383234), + Flogctail: -Float64FromFloat64(2.262629393030674e-14), + }, + 82: { + Finvc: float64(0.9453125), + Flogc: float64(0.056239718322899535), + Flogctail: -Float64FromFloat64(2.345674491018699e-14), + }, + 83: { + Finvc: float64(0.94140625), + Flogc: float64(0.06038051098892083), + Flogctail: -Float64FromFloat64(1.3352588834854848e-14), + }, + 84: { + Finvc: float64(0.93359375), + Flogc: float64(0.06871389254808946), + Flogctail: -Float64FromFloat64(3.765296820388875e-14), + }, + 85: { + Finvc: float64(0.92578125), + Flogc: float64(0.07711730334438016), + Flogctail: float64(5.1128335719851986e-14), + }, + 86: { + Finvc: float64(0.91796875), + Flogc: float64(0.08559193033545398), + Flogctail: -Float64FromFloat64(5.046674438470119e-14), + }, + 87: { + Finvc: float64(0.9140625), + Flogc: float64(0.08985632912185793), + Flogctail: float64(3.1218748807418837e-15), + }, + 88: { + Finvc: float64(0.90625), + Flogc: float64(0.09844007281321865), + Flogctail: float64(3.3871241029241416e-14), + }, + 89: { + Finvc: float64(0.8984375), + Flogc: float64(0.10709813555638448), + Flogctail: -Float64FromFloat64(1.7376727386423858e-14), + }, + 90: { + Finvc: float64(0.89453125), + Flogc: float64(0.11145544092528326), + Flogctail: float64(3.957125899799804e-14), + }, + 91: { + Finvc: float64(0.88671875), + Flogc: float64(0.12022742699821265), + Flogctail: -Float64FromFloat64(5.2849453521890294e-14), + }, + 92: { + Finvc: float64(0.8828125), + Flogc: float64(0.12464244520731427), + Flogctail: -Float64FromFloat64(3.767012502308738e-14), + }, + 93: { + Finvc: float64(0.875), + Flogc: float64(0.13353139262449076), + Flogctail: float64(3.1859736349078334e-14), + }, + 94: { + Finvc: float64(0.87109375), + Flogc: float64(0.13800567301939282), + Flogctail: float64(5.0900642926060466e-14), + }, + 95: { + Finvc: float64(0.86328125), + Flogc: float64(0.14701474296180095), + Flogctail: float64(8.710783796122478e-15), + }, + 96: { + Finvc: float64(0.859375), + Flogc: float64(0.15154989812720032), + Flogctail: float64(6.157896229122976e-16), + }, + 97: { + Finvc: float64(0.8515625), + Flogc: float64(0.16068238169043525), + Flogctail: float64(3.821577743916796e-14), + }, + 98: { + Finvc: float64(0.84765625), + Flogc: float64(0.16528009093906348), + Flogctail: float64(3.9440046718453496e-14), + }, + 99: { + Finvc: float64(0.83984375), + Flogc: float64(0.17453941635187675), + Flogctail: float64(2.2924522154618074e-14), + }, + 100: { + Finvc: float64(0.8359375), + Flogc: float64(0.17920142945774842), + Flogctail: -Float64FromFloat64(3.742530094732263e-14), + }, + 101: { + Finvc: float64(0.83203125), + Flogc: float64(0.18388527877016259), + Flogctail: -Float64FromFloat64(2.5223102140407338e-14), + }, + 102: { + Finvc: float64(0.82421875), + Flogc: float64(0.1933193110035063), + Flogctail: -Float64FromFloat64(1.0320443688698849e-14), + }, + 103: { + Finvc: float64(0.8203125), + Flogc: float64(0.19806991376208316), + Flogctail: float64(1.0634128304268335e-14), + }, + 104: { + Finvc: float64(0.8125), + Flogc: float64(0.20763936477828793), + Flogctail: -Float64FromFloat64(4.3425422595242564e-14), + }, + 105: { + Finvc: float64(0.80859375), + Flogc: float64(0.21245865121420593), + Flogctail: -Float64FromFloat64(1.2527395755711364e-14), + }, + 106: { + Finvc: float64(0.8046875), + Flogc: float64(0.21730127569003344), + Flogctail: -Float64FromFloat64(5.204008743405884e-14), + }, + 107: { + Finvc: float64(0.80078125), + Flogc: float64(0.22216746534115828), + Flogctail: -Float64FromFloat64(3.979844515951702e-15), + }, + 108: { + Finvc: float64(0.79296875), + Flogc: float64(0.2319714654378231), + Flogctail: -Float64FromFloat64(4.7955860343296286e-14), + }, + 109: { + Finvc: float64(0.7890625), + Flogc: float64(0.2369097470783572), + Flogctail: float64(5.015686013791602e-16), + }, + 110: { + Finvc: float64(0.78515625), + Flogc: float64(0.24187253642048745), + Flogctail: -Float64FromFloat64(7.252318953240293e-16), + }, + 111: { + Finvc: float64(0.78125), + Flogc: float64(0.2468600779315011), + Flogctail: float64(2.4688324156011588e-14), + }, + 112: { + Finvc: float64(0.7734375), + Flogc: float64(0.2569104137850218), + Flogctail: float64(5.465121253624792e-15), + }, + 113: { + Finvc: float64(0.76953125), + Flogc: float64(0.26197371574153294), + Flogctail: float64(4.102651071698446e-14), + }, + 114: { + Finvc: float64(0.765625), + Flogc: float64(0.2670627852490952), + Flogctail: -Float64FromFloat64(4.996736502345936e-14), + }, + 115: { + Finvc: float64(0.76171875), + Flogc: float64(0.27217788591576664), + Flogctail: float64(4.903580708156347e-14), + }, + 116: { + Finvc: float64(0.7578125), + Flogc: float64(0.27731928541618345), + Flogctail: float64(5.089628039500759e-14), + }, + 117: { + Finvc: float64(0.75390625), + Flogc: float64(0.28248725557466514), + Flogctail: float64(1.1782016386565151e-14), + }, + 118: { + Finvc: float64(0.74609375), + Flogc: float64(0.29290401643288533), + Flogctail: float64(4.727452940514406e-14), + }, + 119: { + Finvc: float64(0.7421875), + Flogc: float64(0.29815337231912054), + Flogctail: -Float64FromFloat64(4.4204083338755686e-14), + }, + 120: { + Finvc: float64(0.73828125), + Flogc: float64(0.3034304294199046), + Flogctail: float64(1.548345993498083e-14), + }, + 121: { + Finvc: float64(0.734375), + Flogc: float64(0.30873548164959175), + Flogctail: float64(2.1522127491642888e-14), + }, + 122: { + Finvc: float64(0.73046875), + Flogc: float64(0.3140688276249648), + Flogctail: float64(1.1054030169005386e-14), + }, + 123: { + Finvc: float64(0.7265625), + Flogc: float64(0.31943077076641657), + Flogctail: -Float64FromFloat64(5.534326352070679e-14), + }, + 124: { + Finvc: float64(0.72265625), + Flogc: float64(0.3248216194012912), + Flogctail: -Float64FromFloat64(5.351646604259541e-14), + }, + 125: { + Finvc: float64(0.71875), + Flogc: float64(0.33024168687052224), + Flogctail: float64(5.4612144489920215e-14), + }, + 126: { + Finvc: float64(0.71484375), + Flogc: float64(0.3356912916381134), + Flogctail: float64(2.8136969901227338e-14), + }, + 127: { + Finvc: float64(0.7109375), + Flogc: float64(0.3411707574027787), + Flogctail: -Float64FromFloat64(1.156568624616423e-14), + }, + }, +} + +var X__powf_log2_data = Tpowf_log2_data{ + Ftab: [16]struct { + Finvc float64 + Flogc float64 + }{ + 0: { + Finvc: float64(1.398907162146528), + Flogc: float64(-Float64FromFloat64(0.48430022186289673) * float64(Int32FromInt32(1)<> int32(32)) + **(**int32)(__ccgo_up(expt)) = Int32FromUint32(hx>>Int32FromInt32(20) - Uint32FromInt32(Int32FromInt32(0x3ff)+Int32FromInt32(1023)) + _k) + v1 = uint64(hx&Uint32FromInt32(0xfffff)|Uint32FromInt32((Int32FromInt32(0x3ff)+Int32FromInt32(1023))<= ln(DBL_MAX)) +// * where care is needed to avoid overflow. +// * +// * The present implementation is narrowly tailored for our hyperbolic and +// * exponential functions. We assume expt is small (0 or -1), and the caller +// * has filtered out very large x, for which overflow would be inevitable. +// */ +func X__ldexp_cexp(tls *TLS, z complex128, expt int32) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v expt=%v, (%v:)", tls, z, expt, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var exp_x, scale1, scale2, x, y float64 + var half_expt int32 + var v1 Tuint64_t + var v3 [2]float64 + var _ /* ex_expt at bp+0 */ int32 + _, _, _, _, _, _, _, _ = exp_x, half_expt, scale1, scale2, x, y, v1, v3 + x = Float64FromComplex128(z) + y = +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] + exp_x = ___frexp_exp(tls, x, bp) + expt = expt + **(**int32)(__ccgo_up(bp)) + /* + * Arrange so that scale1 * scale2 == 2**expt. We use this to + * compensate for scalbn being horrendously slow. + */ + half_expt = expt / int32(2) + v1 = Uint64FromInt32((Int32FromInt32(0x3ff)+half_expt)<>Int32FromInt32(23) - Uint32FromInt32(Int32FromInt32(0x7f)+Int32FromInt32(127)) + _k1) + v1 = hx&uint32(0x7fffff) | Uint32FromInt32((Int32FromInt32(0x7f)+Int32FromInt32(127))< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var exp_x, scale1, scale2, x, y float32 + var half_expt int32 + var v1 Tuint32_t + var v3 [2]float32 + var _ /* ex_expt at bp+0 */ int32 + _, _, _, _, _, _, _, _ = exp_x, half_expt, scale1, scale2, x, y, v1, v3 + x = Float32FromComplex64(z) + y = +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] + exp_x = ___frexp_expf(tls, x, bp) + expt = expt + **(**int32)(__ccgo_up(bp)) + half_expt = expt / int32(2) + v1 = Uint32FromInt32((int32(0x7f) + half_expt) << int32(23)) + scale1 = *(*float32)(unsafe.Pointer(&v1)) + half_expt = expt - half_expt + v1 = Uint32FromInt32((int32(0x7f) + half_expt) << int32(23)) + scale2 = *(*float32)(unsafe.Pointer(&v1)) + v3 = [2]float32{ + 0: float32(float32(float32(Xcosf(tls, y)*exp_x)*scale1) * scale2), + 1: float32(float32(float32(Xsinf(tls, y)*exp_x)*scale1) * scale2), + } + return *(*complex64)(unsafe.Pointer(&v3)) +} + +func Xcabs(tls *TLS, z complex128) (r float64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xhypot(tls, Float64FromComplex128(z), +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)]) +} + +func Xcabsf(tls *TLS, z complex64) (r float32) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xhypotf(tls, Float32FromComplex64(z), +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)]) +} + +func Xcabsl(tls *TLS, z complex128) (r float64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xcabs(tls, Complex128FromComplex128(z)) +} + +const M_PI_21 = 1.5707963267948966 + +// FIXME: Hull et al. "Implementing the complex arcsine and arccosine functions using exception handling" 1997 + +/* acos(z) = pi/2 - asin(z) */ + +func Xcacos(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float64 + _ = v1 + z = Xcasin(tls, z) + v1 = [2]float64{ + 0: float64(1.5707963267948966) - Float64FromComplex128(z), + 1: -+(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +// FIXME + +var _float_pi_2 = float32(1.5707963267948966) + +func Xcacosf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float32 + _ = v1 + z = Xcasinf(tls, z) + v1 = [2]float32{ + 0: _float_pi_2 - Float32FromComplex64(z), + 1: -+(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + } + return *(*complex64)(unsafe.Pointer(&v1)) +} + +const M_PI_22 = 0 + +/* acosh(z) = i acos(z) */ + +func Xcacosh(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var zineg int32 + var v1 uint64 + var v3 [2]float64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _, _, _ = zineg, v1, v3 + *(*float64)(unsafe.Pointer(bp)) = +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + zineg = Int32FromUint64(v1 >> Int32FromInt32(63)) + z = Xcacos(tls, z) + if zineg != 0 { + v3 = [2]float64{ + 0: +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: -Float64FromComplex128(z), + } + return *(*complex128)(unsafe.Pointer(&v3)) + } else { + v3 = [2]float64{ + 0: -+(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: Float64FromComplex128(z), + } + return *(*complex128)(unsafe.Pointer(&v3)) + } + return r +} + +func Xcacoshf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var zineg int32 + var v1 uint32 + var v3 [2]float32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _, _, _ = zineg, v1, v3 + *(*float32)(unsafe.Pointer(bp)) = +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + zineg = Int32FromUint32(v1 >> Int32FromInt32(31)) + z = Xcacosf(tls, z) + if zineg != 0 { + v3 = [2]float32{ + 0: +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: -Float32FromComplex64(z), + } + return *(*complex64)(unsafe.Pointer(&v3)) + } else { + v3 = [2]float32{ + 0: -+(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: Float32FromComplex64(z), + } + return *(*complex64)(unsafe.Pointer(&v3)) + } + return r +} + +func Xcacoshl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcacosh(tls, Complex128FromComplex128(z))) +} + +func Xcacosl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcacos(tls, Complex128FromComplex128(z))) +} + +func Xcarg(tls *TLS, z complex128) (r float64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xatan2(tls, +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], Float64FromComplex128(z)) +} + +func Xcargf(tls *TLS, z complex64) (r float32) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xatan2f(tls, +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], Float32FromComplex64(z)) +} + +func Xcargl(tls *TLS, z complex128) (r float64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xcarg(tls, Complex128FromComplex128(z)) +} + +// FIXME + +/* asin(z) = -i log(i z + sqrt(1 - z*z)) */ + +func Xcasin(tls *TLS, z complex128) (r1 complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, w complex128 + var x, y float64 + var v1, v2 [2]float64 + _, _, _, _, _, _ = r, w, x, y, v1, v2 + x = Float64FromComplex128(z) + y = +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] + v1 = [2]float64{ + 0: float64(1) - float64((x-y)*(x+y)), + 1: float64(float64(-Float64FromFloat64(2)*x) * y), + } + w = *(*complex128)(unsafe.Pointer(&v1)) + v1 = [2]float64{ + 0: -y, + 1: x, + } + r = Xclog(tls, *(*complex128)(unsafe.Pointer(&v1))+Xcsqrt(tls, w)) + v2 = [2]float64{ + 0: +(*(*[2]float64)(unsafe.Pointer(&r)))[int32(1)], + 1: -Float64FromComplex128(r), + } + return *(*complex128)(unsafe.Pointer(&v2)) +} + +// FIXME + +func Xcasinf(tls *TLS, z complex64) (r1 complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, w complex64 + var x, y float32 + var v1, v2 [2]float32 + _, _, _, _, _, _ = r, w, x, y, v1, v2 + x = Float32FromComplex64(z) + y = +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] + v1 = [2]float32{ + 0: float32(Float64FromFloat64(1) - float64((x-y)*(x+y))), + 1: float32(float64(float64(-Float64FromFloat64(2)*float64(x)) * float64(y))), + } + w = *(*complex64)(unsafe.Pointer(&v1)) + v1 = [2]float32{ + 0: -y, + 1: x, + } + r = Xclogf(tls, *(*complex64)(unsafe.Pointer(&v1))+Xcsqrtf(tls, w)) + v2 = [2]float32{ + 0: +(*(*[2]float32)(unsafe.Pointer(&r)))[int32(1)], + 1: -Float32FromComplex64(r), + } + return *(*complex64)(unsafe.Pointer(&v2)) +} + +/* asinh(z) = -i asin(i z) */ + +func Xcasinh(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float64 + _ = v1 + v1 = [2]float64{ + 0: -+(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: Float64FromComplex128(z), + } + z = Xcasin(tls, *(*complex128)(unsafe.Pointer(&v1))) + v1 = [2]float64{ + 0: +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: -Float64FromComplex128(z), + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +func Xcasinhf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float32 + _ = v1 + v1 = [2]float32{ + 0: -+(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: Float32FromComplex64(z), + } + z = Xcasinf(tls, *(*complex64)(unsafe.Pointer(&v1))) + v1 = [2]float32{ + 0: +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: -Float32FromComplex64(z), + } + return *(*complex64)(unsafe.Pointer(&v1)) +} + +func Xcasinhl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcasinh(tls, Complex128FromComplex128(z))) +} + +func Xcasinl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcasin(tls, Complex128FromComplex128(z))) +} + +const MAXNUM = 0 +const M_PI1 = 3.141592653589793 + +var _DP1 = float64(3.141592651605606) +var _DP2 = float64(1.9841871479187034e-09) +var _DP3 = float64(1.1442377452219664e-17) + +func __redupi(tls *TLS, x float64) (r float64) { + var i int64 + var t float64 + _, _ = i, t + t = x / float64(3.141592653589793) + if t >= float64(0) { + t = t + float64(0.5) + } else { + t = t - float64(0.5) + } + i = int64(t) /* the multiple */ + t = float64(i) + t = x - float64(t*_DP1) - float64(t*_DP2) - float64(t*_DP3) + return t +} + +func Xcatan(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, t, x, x2, y float64 + var w complex128 + var v1 [2]float64 + _, _, _, _, _, _, _ = a, t, w, x, x2, y, v1 + x = Float64FromComplex128(z) + y = +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] + x2 = float64(x * x) + a = float64(1) - x2 - float64(y*y) + t = float64(float64(0.5) * Xatan2(tls, float64(float64(2)*x), a)) + w = Complex128FromFloat64(__redupi(tls, t)) + t = y - float64(1) + a = x2 + float64(t*t) + t = y + float64(1) + a = (x2 + float64(t*t)) / a + v1 = [2]float64{ + 0: Float64FromComplex128(w), + 1: float64(float64(0.25) * Xlog(tls, a)), + } + w = *(*complex128)(unsafe.Pointer(&v1)) + return w +} + +const MAXNUMF = 0 + +var _DP11 = float64(3.140625) +var _DP21 = float64(0.0009675025939941406) +var _DP31 = float64(1.5099579909783765e-07) + +var _float_pi = float32(3.141592653589793) + +func __redupif(tls *TLS, xx float32) (r float32) { + var i int64 + var t, x float32 + _, _, _ = i, t, x + x = xx + t = x / _float_pi + if t >= Float32FromFloat32(0) { + t = t + Float32FromFloat32(0.5) + } else { + t = t - Float32FromFloat32(0.5) + } + i = int64(t) /* the multiple */ + t = float32(i) + t = float32(float64(x) - float64(float64(t)*_DP11) - float64(float64(t)*_DP21) - float64(float64(t)*_DP31)) + return t +} + +func Xcatanf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, t, x, x2, y float32 + var w complex64 + var v1 [2]float32 + _, _, _, _, _, _, _ = a, t, w, x, x2, y, v1 + x = Float32FromComplex64(z) + y = +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] + x2 = float32(x * x) + a = Float32FromFloat32(1) - x2 - float32(y*y) + t = float32(Float32FromFloat32(0.5) * Xatan2f(tls, float32(Float32FromFloat32(2)*x), a)) + w = Complex64FromFloat32(__redupif(tls, t)) + t = y - Float32FromFloat32(1) + a = x2 + float32(t*t) + t = y + Float32FromFloat32(1) + a = (x2 + float32(t*t)) / a + v1 = [2]float32{ + 0: Float32FromComplex64(w), + 1: float32(Float32FromFloat32(0.25) * Xlogf(tls, a)), + } + w = *(*complex64)(unsafe.Pointer(&v1)) + return w +} + +const M_PI2 = 0 + +/* atanh = -i atan(i z) */ + +func Xcatanh(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float64 + _ = v1 + v1 = [2]float64{ + 0: -+(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: Float64FromComplex128(z), + } + z = Xcatan(tls, *(*complex128)(unsafe.Pointer(&v1))) + v1 = [2]float64{ + 0: +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: -Float64FromComplex128(z), + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +func Xcatanhf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float32 + _ = v1 + v1 = [2]float32{ + 0: -+(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: Float32FromComplex64(z), + } + z = Xcatanf(tls, *(*complex64)(unsafe.Pointer(&v1))) + v1 = [2]float32{ + 0: +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: -Float32FromComplex64(z), + } + return *(*complex64)(unsafe.Pointer(&v1)) +} + +func Xcatanhl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcatanh(tls, Complex128FromComplex128(z))) +} + +func Xcatanl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcatan(tls, Complex128FromComplex128(z))) +} + +/* cos(z) = cosh(i z) */ + +func Xccos(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float64 + _ = v1 + v1 = [2]float64{ + 0: -+(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: Float64FromComplex128(z), + } + return Xccosh(tls, *(*complex128)(unsafe.Pointer(&v1))) +} + +func Xccosf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float32 + _ = v1 + v1 = [2]float32{ + 0: -+(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: Float32FromComplex64(z), + } + return Xccoshf(tls, *(*complex64)(unsafe.Pointer(&v1))) +} + +var _huge = float64(8.98846567431158e+307) + +func Xccosh(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __u, __u1 Tuint64_t + var h, x, y float64 + var hx, hy, ix, iy, lx, ly Tint32_t + var v1 [2]float64 + _, _, _, _, _, _, _, _, _, _, _, _ = __u, __u1, h, hx, hy, ix, iy, lx, ly, x, y, v1 + x = Float64FromComplex128(z) + y = +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] + __u = *(*Tuint64_t)(unsafe.Pointer(&x)) + hx = Int32FromUint64(__u >> int32(32)) + lx = Int32FromUint32(uint32(__u)) + __u1 = *(*Tuint64_t)(unsafe.Pointer(&y)) + hy = Int32FromUint64(__u1 >> int32(32)) + ly = Int32FromUint32(uint32(__u1)) + ix = int32(0x7fffffff) & hx + iy = int32(0x7fffffff) & hy + /* Handle the nearly-non-exceptional cases where x and y are finite. */ + if ix < int32(0x7ff00000) && iy < int32(0x7ff00000) { + if iy|ly == 0 { + v1 = [2]float64{ + 0: Xcosh(tls, x), + 1: float64(x * y), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + if ix < int32(0x40360000) { /* small x: normal case */ + v1 = [2]float64{ + 0: float64(Xcosh(tls, x) * Xcos(tls, y)), + 1: float64(Xsinh(tls, x) * Xsin(tls, y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* |x| >= 22, so cosh(x) ~= exp(|x|) */ + if ix < int32(0x40862e42) { + /* x < 710: exp(|x|) won't overflow */ + h = float64(Xexp(tls, Xfabs(tls, x)) * float64(0.5)) + v1 = [2]float64{ + 0: float64(h * Xcos(tls, y)), + 1: float64(Xcopysign(tls, h, x) * Xsin(tls, y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } else { + if ix < int32(0x4096bbaa) { + /* x < 1455: scale to avoid overflow */ + v1 = [2]float64{ + 0: Xfabs(tls, x), + 1: y, + } + z = X__ldexp_cexp(tls, *(*complex128)(unsafe.Pointer(&v1)), -int32(1)) + v1 = [2]float64{ + 0: Float64FromComplex128(z), + 1: float64(+(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] * Xcopysign(tls, Float64FromInt32(1), x)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } else { + /* x >= 1455: the result always overflows */ + h = float64(_huge * x) + v1 = [2]float64{ + 0: float64(float64(h*h) * Xcos(tls, y)), + 1: float64(h * Xsin(tls, y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + } + } + /* + * cosh(+-0 +- I Inf) = dNaN + I sign(d(+-0, dNaN))0. + * The sign of 0 in the result is unspecified. Choice = normally + * the same as dNaN. Raise the invalid floating-point exception. + * + * cosh(+-0 +- I NaN) = d(NaN) + I sign(d(+-0, NaN))0. + * The sign of 0 in the result is unspecified. Choice = normally + * the same as d(NaN). + */ + if ix|lx == 0 && iy >= int32(0x7ff00000) { + v1 = [2]float64{ + 0: y - y, + 1: Xcopysign(tls, Float64FromInt32(0), float64(x*(y-y))), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* + * cosh(+-Inf +- I 0) = +Inf + I (+-)(+-)0. + * + * cosh(NaN +- I 0) = d(NaN) + I sign(d(NaN, +-0))0. + * The sign of 0 in the result is unspecified. + */ + if iy|ly == 0 && ix >= int32(0x7ff00000) { + if hx&int32(0xfffff)|lx == 0 { + v1 = [2]float64{ + 0: float64(x * x), + 1: float64(Xcopysign(tls, Float64FromInt32(0), x) * y), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + v1 = [2]float64{ + 0: float64(x * x), + 1: Xcopysign(tls, Float64FromInt32(0), float64((x+x)*y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* + * cosh(x +- I Inf) = dNaN + I dNaN. + * Raise the invalid floating-point exception for finite nonzero x. + * + * cosh(x + I NaN) = d(NaN) + I d(NaN). + * Optionally raises the invalid floating-point exception for finite + * nonzero x. Choice = don't raise (except for signaling NaNs). + */ + if ix < int32(0x7ff00000) && iy >= int32(0x7ff00000) { + v1 = [2]float64{ + 0: y - y, + 1: float64(x * (y - y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* + * cosh(+-Inf + I NaN) = +Inf + I d(NaN). + * + * cosh(+-Inf +- I Inf) = +Inf + I dNaN. + * The sign of Inf in the result is unspecified. Choice = always +. + * Raise the invalid floating-point exception. + * + * cosh(+-Inf + I y) = +Inf cos(y) +- I Inf sin(y) + */ + if ix >= int32(0x7ff00000) && hx&int32(0xfffff)|lx == 0 { + if iy >= int32(0x7ff00000) { + v1 = [2]float64{ + 0: float64(x * x), + 1: float64(x * (y - y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + v1 = [2]float64{ + 0: float64(float64(x*x) * Xcos(tls, y)), + 1: float64(x * Xsin(tls, y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* + * cosh(NaN + I NaN) = d(NaN) + I d(NaN). + * + * cosh(NaN +- I Inf) = d(NaN) + I d(NaN). + * Optionally raises the invalid floating-point exception. + * Choice = raise. + * + * cosh(NaN + I y) = d(NaN) + I d(NaN). + * Optionally raises the invalid floating-point exception for finite + * nonzero y. Choice = don't raise (except for signaling NaNs). + */ + v1 = [2]float64{ + 0: float64(float64(x*x) * (y - y)), + 1: float64((x + x) * (y - y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +var _huge1 = float32(1.7014118346046923e+38) + +func Xccoshf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var h, x, y float32 + var hx, hy, ix, iy Tint32_t + var v1 [2]float32 + _, _, _, _, _, _, _, _ = h, hx, hy, ix, iy, x, y, v1 + x = Float32FromComplex64(z) + y = +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] + hx = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(&x))) + hy = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(&y))) + ix = int32(0x7fffffff) & hx + iy = int32(0x7fffffff) & hy + if ix < int32(0x7f800000) && iy < int32(0x7f800000) { + if iy == 0 { + v1 = [2]float32{ + 0: Xcoshf(tls, x), + 1: float32(x * y), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + if ix < int32(0x41100000) { /* small x: normal case */ + v1 = [2]float32{ + 0: float32(Xcoshf(tls, x) * Xcosf(tls, y)), + 1: float32(Xsinhf(tls, x) * Xsinf(tls, y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + /* |x| >= 9, so cosh(x) ~= exp(|x|) */ + if ix < int32(0x42b17218) { + /* x < 88.7: expf(|x|) won't overflow */ + h = float32(Xexpf(tls, Xfabsf(tls, x)) * Float32FromFloat32(0.5)) + v1 = [2]float32{ + 0: float32(h * Xcosf(tls, y)), + 1: float32(Xcopysignf(tls, h, x) * Xsinf(tls, y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } else { + if ix < int32(0x4340b1e7) { + /* x < 192.7: scale to avoid overflow */ + v1 = [2]float32{ + 0: Xfabsf(tls, x), + 1: y, + } + z = X__ldexp_cexpf(tls, *(*complex64)(unsafe.Pointer(&v1)), -int32(1)) + v1 = [2]float32{ + 0: Float32FromComplex64(z), + 1: float32(+(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] * Xcopysignf(tls, Float32FromInt32(1), x)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } else { + /* x >= 192.7: the result always overflows */ + h = float32(_huge1 * x) + v1 = [2]float32{ + 0: float32(float32(h*h) * Xcosf(tls, y)), + 1: float32(h * Xsinf(tls, y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + } + } + if ix == 0 && iy >= int32(0x7f800000) { + v1 = [2]float32{ + 0: y - y, + 1: Xcopysignf(tls, Float32FromInt32(0), float32(x*(y-y))), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + if iy == 0 && ix >= int32(0x7f800000) { + if hx&int32(0x7fffff) == 0 { + v1 = [2]float32{ + 0: float32(x * x), + 1: float32(Xcopysignf(tls, Float32FromInt32(0), x) * y), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + v1 = [2]float32{ + 0: float32(x * x), + 1: Xcopysignf(tls, Float32FromInt32(0), float32((x+x)*y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + if ix < int32(0x7f800000) && iy >= int32(0x7f800000) { + v1 = [2]float32{ + 0: y - y, + 1: float32(x * (y - y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + if ix >= int32(0x7f800000) && hx&int32(0x7fffff) == 0 { + if iy >= int32(0x7f800000) { + v1 = [2]float32{ + 0: float32(x * x), + 1: float32(x * (y - y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + v1 = [2]float32{ + 0: float32(float32(x*x) * Xcosf(tls, y)), + 1: float32(x * Xsinf(tls, y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + v1 = [2]float32{ + 0: float32(float32(x*x) * (y - y)), + 1: float32((x + x) * (y - y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) +} + +// C documentation +// +// //FIXME +func Xccoshl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xccosh(tls, Complex128FromComplex128(z))) +} + +func Xccosl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xccos(tls, Complex128FromComplex128(z))) +} + +var _exp_ovfl = uint32(0x40862e42) /* high bits of MAX_EXP * ln2 ~= 710 */ +var _cexp_ovfl = uint32(0x4096b8e4) /* (MAX_EXP - MIN_DENORM_EXP) * ln2 */ + +func Xcexp(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __u, __u1 Tuint64_t + var exp_x, x, y float64 + var hx, hy, lx, ly Tuint32_t + var v1 [2]float64 + _, _, _, _, _, _, _, _, _, _ = __u, __u1, exp_x, hx, hy, lx, ly, x, y, v1 + x = Float64FromComplex128(z) + y = +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] + __u = *(*Tuint64_t)(unsafe.Pointer(&y)) + hy = uint32(__u >> int32(32)) + ly = uint32(__u) + hy = hy & uint32(0x7fffffff) + /* cexp(x + I 0) = exp(x) + I 0 */ + if hy|ly == uint32(0) { + v1 = [2]float64{ + 0: Xexp(tls, x), + 1: y, + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + __u1 = *(*Tuint64_t)(unsafe.Pointer(&x)) + hx = uint32(__u1 >> int32(32)) + lx = uint32(__u1) + /* cexp(0 + I y) = cos(y) + I sin(y) */ + if hx&uint32(0x7fffffff)|lx == uint32(0) { + v1 = [2]float64{ + 0: Xcos(tls, y), + 1: Xsin(tls, y), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + if hy >= uint32(0x7ff00000) { + if lx != uint32(0) || hx&uint32(0x7fffffff) != uint32(0x7ff00000) { + /* cexp(finite|NaN +- I Inf|NaN) = NaN + I NaN */ + v1 = [2]float64{ + 0: y - y, + 1: y - y, + } + return *(*complex128)(unsafe.Pointer(&v1)) + } else { + if hx&uint32(0x80000000) != 0 { + /* cexp(-Inf +- I Inf|NaN) = 0 + I 0 */ + v1 = [2]float64{} + return *(*complex128)(unsafe.Pointer(&v1)) + } else { + /* cexp(+Inf +- I Inf|NaN) = Inf + I NaN */ + v1 = [2]float64{ + 0: x, + 1: y - y, + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + } + } + if hx >= _exp_ovfl && hx <= _cexp_ovfl { + /* + * x is between 709.7 and 1454.3, so we must scale to avoid + * overflow in exp(x). + */ + return X__ldexp_cexp(tls, z, 0) + } else { + /* + * Cases covered here: + * - x < exp_ovfl and exp(x) won't overflow (common case) + * - x > cexp_ovfl, so exp(x) * s overflows for all s > 0 + * - x = +-Inf (generated by exp()) + * - x = NaN (spurious inexact exception from y) + */ + exp_x = Xexp(tls, x) + v1 = [2]float64{ + 0: float64(exp_x * Xcos(tls, y)), + 1: float64(exp_x * Xsin(tls, y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + return r +} + +var _exp_ovfl1 = uint32(0x42b17218) /* MAX_EXP * ln2 ~= 88.722839355 */ +var _cexp_ovfl1 = uint32(0x43400074) /* (MAX_EXP - MIN_DENORM_EXP) * ln2 */ + +func Xcexpf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var exp_x, x, y float32 + var hx, hy Tuint32_t + var v1 [2]float32 + _, _, _, _, _, _ = exp_x, hx, hy, x, y, v1 + x = Float32FromComplex64(z) + y = +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] + hy = *(*Tuint32_t)(unsafe.Pointer(&y)) + hy = hy & uint32(0x7fffffff) + /* cexp(x + I 0) = exp(x) + I 0 */ + if hy == uint32(0) { + v1 = [2]float32{ + 0: Xexpf(tls, x), + 1: y, + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + hx = *(*Tuint32_t)(unsafe.Pointer(&x)) + /* cexp(0 + I y) = cos(y) + I sin(y) */ + if hx&uint32(0x7fffffff) == uint32(0) { + v1 = [2]float32{ + 0: Xcosf(tls, y), + 1: Xsinf(tls, y), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + if hy >= uint32(0x7f800000) { + if hx&uint32(0x7fffffff) != uint32(0x7f800000) { + /* cexp(finite|NaN +- I Inf|NaN) = NaN + I NaN */ + v1 = [2]float32{ + 0: y - y, + 1: y - y, + } + return *(*complex64)(unsafe.Pointer(&v1)) + } else { + if hx&uint32(0x80000000) != 0 { + /* cexp(-Inf +- I Inf|NaN) = 0 + I 0 */ + v1 = [2]float32{} + return *(*complex64)(unsafe.Pointer(&v1)) + } else { + /* cexp(+Inf +- I Inf|NaN) = Inf + I NaN */ + v1 = [2]float32{ + 0: x, + 1: y - y, + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + } + } + if hx >= _exp_ovfl1 && hx <= _cexp_ovfl1 { + /* + * x is between 88.7 and 192, so we must scale to avoid + * overflow in expf(x). + */ + return X__ldexp_cexpf(tls, z, 0) + } else { + /* + * Cases covered here: + * - x < exp_ovfl and exp(x) won't overflow (common case) + * - x > cexp_ovfl, so exp(x) * s overflows for all s > 0 + * - x = +-Inf (generated by exp()) + * - x = NaN (spurious inexact exception from y) + */ + exp_x = Xexpf(tls, x) + v1 = [2]float32{ + 0: float32(exp_x * Xcosf(tls, y)), + 1: float32(exp_x * Xsinf(tls, y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + return r +} + +// C documentation +// +// //FIXME +func Xcexpl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcexp(tls, Complex128FromComplex128(z))) +} + +func Xcimag(tls *TLS, z complex128) (r float64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] +} + +func Xcimagf(tls *TLS, z complex64) (r float32) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] +} + +func Xcimagl(tls *TLS, z complex128) (r float64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] +} + +// FIXME + +/* log(z) = log(|z|) + i arg(z) */ + +func Xclog(tls *TLS, z complex128) (r1 complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var phi, r float64 + var v1 [2]float64 + _, _, _ = phi, r, v1 + r = Xcabs(tls, z) + phi = Xcarg(tls, z) + v1 = [2]float64{ + 0: Xlog(tls, r), + 1: phi, + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +// FIXME + +func Xclogf(tls *TLS, z complex64) (r1 complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var phi, r float32 + var v1 [2]float32 + _, _, _ = phi, r, v1 + r = Xcabsf(tls, z) + phi = Xcargf(tls, z) + v1 = [2]float32{ + 0: Xlogf(tls, r), + 1: phi, + } + return *(*complex64)(unsafe.Pointer(&v1)) +} + +func Xclogl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xclog(tls, Complex128FromComplex128(z))) +} + +func Xconj(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float64 + _ = v1 + v1 = [2]float64{ + 0: Float64FromComplex128(z), + 1: -+(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +func Xconjf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float32 + _ = v1 + v1 = [2]float32{ + 0: Float32FromComplex64(z), + 1: -+(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + } + return *(*complex64)(unsafe.Pointer(&v1)) +} + +func Xconjl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float64 + _ = v1 + v1 = [2]float64{ + 0: Float64FromComplex128(z), + 1: -+(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +/* pow(z, c) = exp(c log(z)), See C99 G.6.4.1 */ + +func Xcpow(tls *TLS, z complex128, c complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v c=%v, (%v:)", tls, z, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xcexp(tls, c*Xclog(tls, z)) +} + +func Xcpowf(tls *TLS, z complex64, c complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v c=%v, (%v:)", tls, z, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xcexpf(tls, c*Xclogf(tls, z)) +} + +func Xcpowl(tls *TLS, z complex128, c complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v c=%v, (%v:)", tls, z, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcpow(tls, Complex128FromComplex128(z), Complex128FromComplex128(c))) +} + +func Xcproj(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1, v3 uint64 + var v5 bool + var v6 [2]float64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _, _, _, _ = v1, v3, v5, v6 + *(*float64)(unsafe.Pointer(bp)) = Float64FromComplex128(z) + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + ; + if v5 = BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) == Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) == Uint64FromUint64(0x7ff)< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1, v3 uint32 + var v5 bool + var v6 [2]float32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _, _, _, _ = v1, v3, v5, v6 + *(*float32)(unsafe.Pointer(bp)) = Float32FromComplex64(z) + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + ; + if v5 = BoolInt32(v1&uint32(0x7fffffff) == uint32(0x7f800000)) != 0; !v5 { + *(*float32)(unsafe.Pointer(bp)) = +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] + v3 = *(*uint32)(unsafe.Pointer(bp)) + goto _4 + _4: + } + if v5 || BoolInt32(v3&uint32(0x7fffffff) == uint32(0x7f800000)) != 0 { + v6 = [2]float32{ + 0: X__builtin_inff(tls), + 1: Xcopysignf(tls, float32(0), +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)]), + } + return *(*complex64)(unsafe.Pointer(&v6)) + } + return z +} + +func Xcprojl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcproj(tls, Complex128FromComplex128(z))) +} + +func Xcreal(tls *TLS, z complex128) (r float64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Float64FromComplex128(z) +} + +func Xcrealf(tls *TLS, z complex64) (r float32) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Float32FromComplex64(z) +} + +func Xcreall(tls *TLS, z complex128) (r float64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Float64FromComplex128(z) +} + +/* sin(z) = -i sinh(i z) */ + +func Xcsin(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float64 + _ = v1 + v1 = [2]float64{ + 0: -+(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: Float64FromComplex128(z), + } + z = Xcsinh(tls, *(*complex128)(unsafe.Pointer(&v1))) + v1 = [2]float64{ + 0: +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: -Float64FromComplex128(z), + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +func Xcsinf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float32 + _ = v1 + v1 = [2]float32{ + 0: -+(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: Float32FromComplex64(z), + } + z = Xcsinhf(tls, *(*complex64)(unsafe.Pointer(&v1))) + v1 = [2]float32{ + 0: +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: -Float32FromComplex64(z), + } + return *(*complex64)(unsafe.Pointer(&v1)) +} + +var _huge2 = float64(8.98846567431158e+307) + +func Xcsinh(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __u, __u1 Tuint64_t + var h, x, y float64 + var hx, hy, ix, iy, lx, ly Tint32_t + var v1 [2]float64 + _, _, _, _, _, _, _, _, _, _, _, _ = __u, __u1, h, hx, hy, ix, iy, lx, ly, x, y, v1 + x = Float64FromComplex128(z) + y = +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] + __u = *(*Tuint64_t)(unsafe.Pointer(&x)) + hx = Int32FromUint64(__u >> int32(32)) + lx = Int32FromUint32(uint32(__u)) + __u1 = *(*Tuint64_t)(unsafe.Pointer(&y)) + hy = Int32FromUint64(__u1 >> int32(32)) + ly = Int32FromUint32(uint32(__u1)) + ix = int32(0x7fffffff) & hx + iy = int32(0x7fffffff) & hy + /* Handle the nearly-non-exceptional cases where x and y are finite. */ + if ix < int32(0x7ff00000) && iy < int32(0x7ff00000) { + if iy|ly == 0 { + v1 = [2]float64{ + 0: Xsinh(tls, x), + 1: y, + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + if ix < int32(0x40360000) { /* small x: normal case */ + v1 = [2]float64{ + 0: float64(Xsinh(tls, x) * Xcos(tls, y)), + 1: float64(Xcosh(tls, x) * Xsin(tls, y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* |x| >= 22, so cosh(x) ~= exp(|x|) */ + if ix < int32(0x40862e42) { + /* x < 710: exp(|x|) won't overflow */ + h = float64(Xexp(tls, Xfabs(tls, x)) * float64(0.5)) + v1 = [2]float64{ + 0: float64(Xcopysign(tls, h, x) * Xcos(tls, y)), + 1: float64(h * Xsin(tls, y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } else { + if ix < int32(0x4096bbaa) { + /* x < 1455: scale to avoid overflow */ + v1 = [2]float64{ + 0: Xfabs(tls, x), + 1: y, + } + z = X__ldexp_cexp(tls, *(*complex128)(unsafe.Pointer(&v1)), -int32(1)) + v1 = [2]float64{ + 0: float64(Float64FromComplex128(z) * Xcopysign(tls, Float64FromInt32(1), x)), + 1: +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + } + return *(*complex128)(unsafe.Pointer(&v1)) + } else { + /* x >= 1455: the result always overflows */ + h = float64(_huge2 * x) + v1 = [2]float64{ + 0: float64(h * Xcos(tls, y)), + 1: float64(float64(h*h) * Xsin(tls, y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + } + } + /* + * sinh(+-0 +- I Inf) = sign(d(+-0, dNaN))0 + I dNaN. + * The sign of 0 in the result is unspecified. Choice = normally + * the same as dNaN. Raise the invalid floating-point exception. + * + * sinh(+-0 +- I NaN) = sign(d(+-0, NaN))0 + I d(NaN). + * The sign of 0 in the result is unspecified. Choice = normally + * the same as d(NaN). + */ + if ix|lx == 0 && iy >= int32(0x7ff00000) { + v1 = [2]float64{ + 0: Xcopysign(tls, Float64FromInt32(0), float64(x*(y-y))), + 1: y - y, + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* + * sinh(+-Inf +- I 0) = +-Inf + I +-0. + * + * sinh(NaN +- I 0) = d(NaN) + I +-0. + */ + if iy|ly == 0 && ix >= int32(0x7ff00000) { + if hx&int32(0xfffff)|lx == 0 { + v1 = [2]float64{ + 0: x, + 1: y, + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + v1 = [2]float64{ + 0: x, + 1: Xcopysign(tls, Float64FromInt32(0), y), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* + * sinh(x +- I Inf) = dNaN + I dNaN. + * Raise the invalid floating-point exception for finite nonzero x. + * + * sinh(x + I NaN) = d(NaN) + I d(NaN). + * Optionally raises the invalid floating-point exception for finite + * nonzero x. Choice = don't raise (except for signaling NaNs). + */ + if ix < int32(0x7ff00000) && iy >= int32(0x7ff00000) { + v1 = [2]float64{ + 0: y - y, + 1: float64(x * (y - y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* + * sinh(+-Inf + I NaN) = +-Inf + I d(NaN). + * The sign of Inf in the result is unspecified. Choice = normally + * the same as d(NaN). + * + * sinh(+-Inf +- I Inf) = +Inf + I dNaN. + * The sign of Inf in the result is unspecified. Choice = always +. + * Raise the invalid floating-point exception. + * + * sinh(+-Inf + I y) = +-Inf cos(y) + I Inf sin(y) + */ + if ix >= int32(0x7ff00000) && hx&int32(0xfffff)|lx == 0 { + if iy >= int32(0x7ff00000) { + v1 = [2]float64{ + 0: float64(x * x), + 1: float64(x * (y - y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + v1 = [2]float64{ + 0: float64(x * Xcos(tls, y)), + 1: float64(float64(X__builtin_inff(tls)) * Xsin(tls, y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* + * sinh(NaN + I NaN) = d(NaN) + I d(NaN). + * + * sinh(NaN +- I Inf) = d(NaN) + I d(NaN). + * Optionally raises the invalid floating-point exception. + * Choice = raise. + * + * sinh(NaN + I y) = d(NaN) + I d(NaN). + * Optionally raises the invalid floating-point exception for finite + * nonzero y. Choice = don't raise (except for signaling NaNs). + */ + v1 = [2]float64{ + 0: float64(float64(x*x) * (y - y)), + 1: float64((x + x) * (y - y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +var _huge3 = float32(1.7014118346046923e+38) + +func Xcsinhf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var h, x, y float32 + var hx, hy, ix, iy Tint32_t + var v1 [2]float32 + _, _, _, _, _, _, _, _ = h, hx, hy, ix, iy, x, y, v1 + x = Float32FromComplex64(z) + y = +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] + hx = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(&x))) + hy = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(&y))) + ix = int32(0x7fffffff) & hx + iy = int32(0x7fffffff) & hy + if ix < int32(0x7f800000) && iy < int32(0x7f800000) { + if iy == 0 { + v1 = [2]float32{ + 0: Xsinhf(tls, x), + 1: y, + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + if ix < int32(0x41100000) { /* small x: normal case */ + v1 = [2]float32{ + 0: float32(Xsinhf(tls, x) * Xcosf(tls, y)), + 1: float32(Xcoshf(tls, x) * Xsinf(tls, y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + /* |x| >= 9, so cosh(x) ~= exp(|x|) */ + if ix < int32(0x42b17218) { + /* x < 88.7: expf(|x|) won't overflow */ + h = float32(Xexpf(tls, Xfabsf(tls, x)) * Float32FromFloat32(0.5)) + v1 = [2]float32{ + 0: float32(Xcopysignf(tls, h, x) * Xcosf(tls, y)), + 1: float32(h * Xsinf(tls, y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } else { + if ix < int32(0x4340b1e7) { + /* x < 192.7: scale to avoid overflow */ + v1 = [2]float32{ + 0: Xfabsf(tls, x), + 1: y, + } + z = X__ldexp_cexpf(tls, *(*complex64)(unsafe.Pointer(&v1)), -int32(1)) + v1 = [2]float32{ + 0: float32(Float32FromComplex64(z) * Xcopysignf(tls, Float32FromInt32(1), x)), + 1: +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + } + return *(*complex64)(unsafe.Pointer(&v1)) + } else { + /* x >= 192.7: the result always overflows */ + h = float32(_huge3 * x) + v1 = [2]float32{ + 0: float32(h * Xcosf(tls, y)), + 1: float32(float32(h*h) * Xsinf(tls, y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + } + } + if ix == 0 && iy >= int32(0x7f800000) { + v1 = [2]float32{ + 0: Xcopysignf(tls, Float32FromInt32(0), float32(x*(y-y))), + 1: y - y, + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + if iy == 0 && ix >= int32(0x7f800000) { + if hx&int32(0x7fffff) == 0 { + v1 = [2]float32{ + 0: x, + 1: y, + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + v1 = [2]float32{ + 0: x, + 1: Xcopysignf(tls, Float32FromInt32(0), y), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + if ix < int32(0x7f800000) && iy >= int32(0x7f800000) { + v1 = [2]float32{ + 0: y - y, + 1: float32(x * (y - y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + if ix >= int32(0x7f800000) && hx&int32(0x7fffff) == 0 { + if iy >= int32(0x7f800000) { + v1 = [2]float32{ + 0: float32(x * x), + 1: float32(x * (y - y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + v1 = [2]float32{ + 0: float32(x * Xcosf(tls, y)), + 1: float32(X__builtin_inff(tls) * Xsinf(tls, y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + v1 = [2]float32{ + 0: float32(float32(x*x) * (y - y)), + 1: float32((x + x) * (y - y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) +} + +// C documentation +// +// //FIXME +func Xcsinhl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcsinh(tls, Complex128FromComplex128(z))) +} + +func Xcsinl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcsin(tls, Complex128FromComplex128(z))) +} + +const THRESH = 7.446288774449766e+307 + +/* + * gcc doesn't implement complex multiplication or division correctly, + * so we need to handle infinities specially. We turn on this pragma to + * notify conforming c99 compilers that the fast-but-incorrect code that + * gcc generates is acceptable, since the special cases have already been + * handled. + */ + +/* We risk spurious overflow for components >= DBL_MAX / (1 + sqrt(2)). */ + +func Xcsqrt(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var a, b, t float64 + var result complex128 + var scale int32 + var v1 [2]float64 + var v2, v5 uint64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _, _, _, _, _, _, _, _ = a, b, result, scale, t, v1, v2, v5 + a = Float64FromComplex128(z) + b = +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] + /* Handle special cases. */ + if z == Complex128FromInt32(0) { + v1 = [2]float64{ + 1: b, + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + *(*float64)(unsafe.Pointer(bp)) = b + v2 = *(*uint64)(unsafe.Pointer(bp)) + goto _3 +_3: + if BoolInt32(v2&(-Uint64FromUint64(1)>>Int32FromInt32(1)) == Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) == Uint64FromUint64(0x7ff)<>Int32FromInt32(63)) != 0 { + v1 = [2]float64{ + 0: Xfabs(tls, b-b), + 1: Xcopysign(tls, a, b), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } else { + v1 = [2]float64{ + 0: a, + 1: Xcopysign(tls, b-b, b), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + } + /* + * The remaining special case (b is NaN) is handled just fine by + * the normal code path below. + */ + /* Scale to avoid overflow. */ + if Xfabs(tls, a) >= float64(7.446288774449766e+307) || Xfabs(tls, b) >= float64(7.446288774449766e+307) { + a = a * float64(0.25) + b = b * float64(0.25) + scale = int32(1) + } else { + scale = 0 + } + /* Algorithm 312, CACM vol 10, Oct 1967. */ + if a >= Float64FromInt32(0) { + t = Xsqrt(tls, float64((a+Xhypot(tls, a, b))*float64(0.5))) + v1 = [2]float64{ + 0: t, + 1: b / float64(Float64FromInt32(2)*t), + } + result = *(*complex128)(unsafe.Pointer(&v1)) + } else { + t = Xsqrt(tls, float64((-a+Xhypot(tls, a, b))*float64(0.5))) + v1 = [2]float64{ + 0: Xfabs(tls, b) / float64(Float64FromInt32(2)*t), + 1: Xcopysign(tls, t, b), + } + result = *(*complex128)(unsafe.Pointer(&v1)) + } + /* Rescale. */ + if scale != 0 { + result = result * Complex128FromInt32(2) + } + return result +} + +/* + * gcc doesn't implement complex multiplication or division correctly, + * so we need to handle infinities specially. We turn on this pragma to + * notify conforming c99 compilers that the fast-but-incorrect code that + * gcc generates is acceptable, since the special cases have already been + * handled. + */ + +func Xcsqrtf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var a, b float32 + var t float64 + var v1 [2]float32 + var v2, v5 uint32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _, _, _, _, _, _ = a, b, t, v1, v2, v5 + a = Float32FromComplex64(z) + b = +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] + /* Handle special cases. */ + if z == Complex64FromInt32(0) { + v1 = [2]float32{ + 1: b, + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + *(*float32)(unsafe.Pointer(bp)) = b + v2 = *(*uint32)(unsafe.Pointer(bp)) + goto _3 +_3: + if BoolInt32(v2&uint32(0x7fffffff) == uint32(0x7f800000)) != 0 { + v1 = [2]float32{ + 0: X__builtin_inff(tls), + 1: b, + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + *(*float32)(unsafe.Pointer(bp)) = a + v2 = *(*uint32)(unsafe.Pointer(bp)) + goto _6 +_6: + if BoolInt32(v2&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + t = float64((b - b) / (b - b)) /* raise invalid if b is not a NaN */ + v1 = [2]float32{ + 0: a, + 1: float32(t), + } + return *(*complex64)(unsafe.Pointer(&v1)) /* return NaN + NaN i */ + } + *(*float32)(unsafe.Pointer(bp)) = a + v2 = *(*uint32)(unsafe.Pointer(bp)) + goto _9 +_9: + if BoolInt32(v2&uint32(0x7fffffff) == uint32(0x7f800000)) != 0 { + /* + * csqrtf(inf + NaN i) = inf + NaN i + * csqrtf(inf + y i) = inf + 0 i + * csqrtf(-inf + NaN i) = NaN +- inf i + * csqrtf(-inf + y i) = 0 + inf i + */ + *(*float32)(unsafe.Pointer(bp)) = a + v5 = *(*uint32)(unsafe.Pointer(bp)) + goto _11 + _11: + if Int32FromUint32(v5>>Int32FromInt32(31)) != 0 { + v1 = [2]float32{ + 0: Xfabsf(tls, b-b), + 1: Xcopysignf(tls, a, b), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } else { + v1 = [2]float32{ + 0: a, + 1: Xcopysignf(tls, b-b, b), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + } + /* + * The remaining special case (b is NaN) is handled just fine by + * the normal code path below. + */ + /* + * We compute t in double precision to avoid overflow and to + * provide correct rounding in nearly all cases. + * This is Algorithm 312, CACM vol 10, Oct 1967. + */ + if a >= Float32FromInt32(0) { + t = Xsqrt(tls, float64((float64(a)+Xhypot(tls, float64(a), float64(b)))*float64(0.5))) + v1 = [2]float32{ + 0: float32(t), + 1: float32(float64(b) / float64(Float64FromFloat64(2)*t)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } else { + t = Xsqrt(tls, float64((float64(-a)+Xhypot(tls, float64(a), float64(b)))*float64(0.5))) + v1 = [2]float32{ + 0: float32(float64(Xfabsf(tls, b)) / float64(Float64FromFloat64(2)*t)), + 1: Xcopysignf(tls, float32(t), b), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + return r +} + +// C documentation +// +// //FIXME +func Xcsqrtl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcsqrt(tls, Complex128FromComplex128(z))) +} + +/* tan(z) = -i tanh(i z) */ + +func Xctan(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float64 + _ = v1 + v1 = [2]float64{ + 0: -+(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: Float64FromComplex128(z), + } + z = Xctanh(tls, *(*complex128)(unsafe.Pointer(&v1))) + v1 = [2]float64{ + 0: +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: -Float64FromComplex128(z), + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +func Xctanf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float32 + _ = v1 + v1 = [2]float32{ + 0: -+(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: Float32FromComplex64(z), + } + z = Xctanhf(tls, *(*complex64)(unsafe.Pointer(&v1))) + v1 = [2]float32{ + 0: +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: -Float32FromComplex64(z), + } + return *(*complex64)(unsafe.Pointer(&v1)) +} + +func Xctanh(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var __u1, v3 Tuint64_t + var beta, denom, exp_mx, rho, s, t, x, y, v2 float64 + var hx, ix, lx Tuint32_t + var v1 [2]float64 + var v6 uint64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = __u1, beta, denom, exp_mx, hx, ix, lx, rho, s, t, x, y, v1, v2, v3, v6 + x = Float64FromComplex128(z) + y = +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] + __u1 = *(*Tuint64_t)(unsafe.Pointer(&x)) + hx = uint32(__u1 >> int32(32)) + lx = uint32(__u1) + ix = hx & uint32(0x7fffffff) + /* + * ctanh(NaN + i 0) = NaN + i 0 + * + * ctanh(NaN + i y) = NaN + i NaN for y != 0 + * + * The imaginary part has the sign of x*sin(2*y), but there's no + * special effort to get this right. + * + * ctanh(+-Inf +- i Inf) = +-1 +- 0 + * + * ctanh(+-Inf + i y) = +-1 + 0 sin(2y) for y finite + * + * The imaginary part of the sign is unspecified. This special + * case is only needed to avoid a spurious invalid exception when + * y is infinite. + */ + if ix >= uint32(0x7ff00000) { + if ix&uint32(0xfffff)|lx != 0 { /* x is NaN */ + if y == Float64FromInt32(0) { + v2 = y + } else { + v2 = float64(x * y) + } + v1 = [2]float64{ + 0: x, + 1: v2, + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + v3 = uint64(hx-Uint32FromInt32(0x40000000))<>Int32FromInt32(1)) == Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) < Uint64FromUint64(0x7ff)<= uint32(0x40360000) { /* x >= 22 */ + exp_mx = Xexp(tls, -Xfabs(tls, x)) + v1 = [2]float64{ + 0: Xcopysign(tls, Float64FromInt32(1), x), + 1: float64(float64(float64(float64(Float64FromInt32(4)*Xsin(tls, y))*Xcos(tls, y))*exp_mx) * exp_mx), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* Kahan's algorithm */ + t = Xtan(tls, y) + beta = float64(1) + float64(t*t) /* = 1 / cos^2(y) */ + s = Xsinh(tls, x) + rho = Xsqrt(tls, Float64FromInt32(1)+float64(s*s)) /* = cosh(x) */ + denom = Float64FromInt32(1) + float64(float64(beta*s)*s) + v1 = [2]float64{ + 0: float64(float64(beta*rho)*s) / denom, + 1: t / denom, + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +func Xctanhf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var beta, denom, exp_mx, rho, s, t, x, y, v2 float32 + var hx, ix, v3 Tuint32_t + var v1 [2]float32 + var v6 uint32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = beta, denom, exp_mx, hx, ix, rho, s, t, x, y, v1, v2, v3, v6 + x = Float32FromComplex64(z) + y = +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] + hx = *(*Tuint32_t)(unsafe.Pointer(&x)) + ix = hx & uint32(0x7fffffff) + if ix >= uint32(0x7f800000) { + if ix&uint32(0x7fffff) != 0 { + if y == Float32FromInt32(0) { + v2 = y + } else { + v2 = float32(x * y) + } + v1 = [2]float32{ + 0: x, + 1: v2, + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + v3 = hx - uint32(0x40000000) + x = *(*float32)(unsafe.Pointer(&v3)) + *(*float32)(unsafe.Pointer(bp)) = y + v6 = *(*uint32)(unsafe.Pointer(bp)) + goto _7 + _7: + if BoolInt32(v6&uint32(0x7fffffff) == uint32(0x7f800000)) != 0 { + v2 = y + } else { + v2 = float32(Xsinf(tls, y) * Xcosf(tls, y)) + } + v1 = [2]float32{ + 0: x, + 1: Xcopysignf(tls, Float32FromInt32(0), v2), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + *(*float32)(unsafe.Pointer(bp)) = y + v6 = *(*uint32)(unsafe.Pointer(bp)) + goto _9 +_9: + if !(BoolInt32(v6&Uint32FromInt32(0x7fffffff) < Uint32FromInt32(0x7f800000)) != 0) { + if ix != 0 { + v2 = y - y + } else { + v2 = x + } + v1 = [2]float32{ + 0: v2, + 1: y - y, + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + if ix >= uint32(0x41300000) { /* x >= 11 */ + exp_mx = Xexpf(tls, -Xfabsf(tls, x)) + v1 = [2]float32{ + 0: Xcopysignf(tls, Float32FromInt32(1), x), + 1: float32(float32(float32(float32(Float32FromInt32(4)*Xsinf(tls, y))*Xcosf(tls, y))*exp_mx) * exp_mx), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + t = Xtanf(tls, y) + beta = float32(float64(1) + float64(t*t)) + s = Xsinhf(tls, x) + rho = Xsqrtf(tls, Float32FromInt32(1)+float32(s*s)) + denom = Float32FromInt32(1) + float32(float32(beta*s)*s) + v1 = [2]float32{ + 0: float32(float32(beta*rho)*s) / denom, + 1: t / denom, + } + return *(*complex64)(unsafe.Pointer(&v1)) +} + +// C documentation +// +// //FIXME +func Xctanhl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xctanh(tls, Complex128FromComplex128(z))) +} + +func Xctanl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xctan(tls, Complex128FromComplex128(z))) +} + +const BUFSIZ = 1024 +const E2BIG = 7 +const EACCES = 13 +const EADDRINUSE = 98 +const EADDRNOTAVAIL = 99 +const EADV = 68 +const EAFNOSUPPORT = 97 +const EAGAIN = 11 +const EALREADY = 114 +const EBADE = 52 +const EBADF = 9 +const EBADFD = 77 +const EBADMSG = 74 +const EBADR = 53 +const EBADRQC = 56 +const EBADSLT = 57 +const EBFONT = 59 +const EBUSY = 16 +const ECANCELED = 125 +const ECHILD = 10 +const ECHRNG = 44 +const ECOMM = 70 +const ECONNABORTED = 103 +const ECONNREFUSED = 111 +const ECONNRESET = 104 +const EDEADLK = 35 +const EDEADLOCK = 35 +const EDESTADDRREQ = 89 +const EDOM = 33 +const EDOTDOT = 73 +const EDQUOT = 122 +const EEXIST = 17 +const EFAULT = 14 +const EFBIG = 27 +const EHOSTDOWN = 112 +const EHOSTUNREACH = 113 +const EHWPOISON = 133 +const EIDRM = 43 +const EILSEQ = 84 +const EINPROGRESS = 115 +const EINTR = 4 +const EINVAL = 22 +const EIO = 5 +const EISCONN = 106 +const EISDIR = 21 +const EISNAM = 120 +const EKEYEXPIRED = 127 +const EKEYREJECTED = 129 +const EKEYREVOKED = 128 +const EL2HLT = 51 +const EL2NSYNC = 45 +const EL3HLT = 46 +const EL3RST = 47 +const ELIBACC = 79 +const ELIBBAD = 80 +const ELIBEXEC = 83 +const ELIBMAX = 82 +const ELIBSCN = 81 +const ELNRNG = 48 +const ELOOP = 40 +const EMEDIUMTYPE = 124 +const EMFILE = 24 +const EMLINK = 31 +const EMSGSIZE = 90 +const EMULTIHOP = 72 +const ENAMETOOLONG = 36 +const ENAVAIL = 119 +const ENETDOWN = 100 +const ENETRESET = 102 +const ENETUNREACH = 101 +const ENFILE = 23 +const ENOANO = 55 +const ENOBUFS = 105 +const ENOCSI = 50 +const ENODATA = 61 +const ENODEV = 19 +const ENOENT = 2 +const ENOEXEC = 8 +const ENOKEY = 126 +const ENOLCK = 37 +const ENOLINK = 67 +const ENOMEDIUM = 123 +const ENOMEM = 12 +const ENOMSG = 42 +const ENONET = 64 +const ENOPKG = 65 +const ENOPROTOOPT = 92 +const ENOSPC = 28 +const ENOSR = 63 +const ENOSTR = 60 +const ENOSYS = 38 +const ENOTBLK = 15 +const ENOTCONN = 107 +const ENOTDIR = 20 +const ENOTEMPTY = 39 +const ENOTNAM = 118 +const ENOTRECOVERABLE = 131 +const ENOTSOCK = 88 +const ENOTSUP = 95 +const ENOTTY = 25 +const ENOTUNIQ = 76 +const ENXIO = 6 +const EOPNOTSUPP = 95 +const EOVERFLOW = 75 +const EOWNERDEAD = 130 +const EPERM = 1 +const EPFNOSUPPORT = 96 +const EPIPE = 32 +const EPROTO = 71 +const EPROTONOSUPPORT = 93 +const EPROTOTYPE = 91 +const ERANGE = 34 +const EREMCHG = 78 +const EREMOTE = 66 +const EREMOTEIO = 121 +const ERESTART = 85 +const ERFKILL = 132 +const EROFS = 30 +const ESHUTDOWN = 108 +const ESOCKTNOSUPPORT = 94 +const ESPIPE = 29 +const ESRCH = 3 +const ESRMNT = 69 +const ESTALE = 116 +const ESTRPIPE = 86 +const ETIME = 62 +const ETIMEDOUT = 110 +const ETOOMANYREFS = 109 +const ETXTBSY = 26 +const EUCLEAN = 117 +const EUNATCH = 49 +const EUSERS = 87 +const EWOULDBLOCK = 11 +const EXDEV = 18 +const EXFULL = 54 +const FILENAME_MAX = 4096 +const FOPEN_MAX = 1000 +const F_LOCK = 1 +const F_OK = 0 +const F_TEST = 3 +const F_TLOCK = 2 +const F_ULOCK = 0 +const L_ctermid = 20 +const L_tmpnam = 20 +const POSIX_CLOSE_RESTART = 0 +const P_tmpdir = "/tmp" +const R_OK = 4 +const SEEK_DATA = 3 +const SEEK_HOLE = 4 +const STDERR_FILENO = 2 +const STDIN_FILENO = 0 +const STDOUT_FILENO = 1 +const TMP_MAX = 10000 +const W_OK = 2 +const X_OK = 1 +const _CS_GNU_LIBC_VERSION = 2 +const _CS_GNU_LIBPTHREAD_VERSION = 3 +const _CS_PATH = 0 +const _CS_POSIX_V5_WIDTH_RESTRICTED_ENVS = 4 +const _CS_POSIX_V6_ILP32_OFF32_CFLAGS = 1116 +const _CS_POSIX_V6_ILP32_OFF32_LDFLAGS = 1117 +const _CS_POSIX_V6_ILP32_OFF32_LIBS = 1118 +const _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS = 1119 +const _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS = 1120 +const _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS = 1121 +const _CS_POSIX_V6_ILP32_OFFBIG_LIBS = 1122 +const _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS = 1123 +const _CS_POSIX_V6_LP64_OFF64_CFLAGS = 1124 +const _CS_POSIX_V6_LP64_OFF64_LDFLAGS = 1125 +const _CS_POSIX_V6_LP64_OFF64_LIBS = 1126 +const _CS_POSIX_V6_LP64_OFF64_LINTFLAGS = 1127 +const _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS = 1128 +const _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS = 1129 +const _CS_POSIX_V6_LPBIG_OFFBIG_LIBS = 1130 +const _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS = 1131 +const _CS_POSIX_V6_WIDTH_RESTRICTED_ENVS = 1 +const _CS_POSIX_V7_ILP32_OFF32_CFLAGS = 1132 +const _CS_POSIX_V7_ILP32_OFF32_LDFLAGS = 1133 +const _CS_POSIX_V7_ILP32_OFF32_LIBS = 1134 +const _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS = 1135 +const _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS = 1136 +const _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS = 1137 +const _CS_POSIX_V7_ILP32_OFFBIG_LIBS = 1138 +const _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS = 1139 +const _CS_POSIX_V7_LP64_OFF64_CFLAGS = 1140 +const _CS_POSIX_V7_LP64_OFF64_LDFLAGS = 1141 +const _CS_POSIX_V7_LP64_OFF64_LIBS = 1142 +const _CS_POSIX_V7_LP64_OFF64_LINTFLAGS = 1143 +const _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS = 1144 +const _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS = 1145 +const _CS_POSIX_V7_LPBIG_OFFBIG_LIBS = 1146 +const _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS = 1147 +const _CS_POSIX_V7_THREADS_CFLAGS = 1150 +const _CS_POSIX_V7_THREADS_LDFLAGS = 1151 +const _CS_POSIX_V7_WIDTH_RESTRICTED_ENVS = 5 +const _CS_V6_ENV = 1148 +const _CS_V7_ENV = 1149 +const _IOFBF = 0 +const _IOLBF = 1 +const _IONBF = 2 +const _PC_2_SYMLINKS = 20 +const _PC_ALLOC_SIZE_MIN = 18 +const _PC_ASYNC_IO = 10 +const _PC_CHOWN_RESTRICTED = 6 +const _PC_FILESIZEBITS = 13 +const _PC_LINK_MAX = 0 +const _PC_MAX_CANON = 1 +const _PC_MAX_INPUT = 2 +const _PC_NAME_MAX = 3 +const _PC_NO_TRUNC = 7 +const _PC_PATH_MAX = 4 +const _PC_PIPE_BUF = 5 +const _PC_PRIO_IO = 11 +const _PC_REC_INCR_XFER_SIZE = 14 +const _PC_REC_MAX_XFER_SIZE = 15 +const _PC_REC_MIN_XFER_SIZE = 16 +const _PC_REC_XFER_ALIGN = 17 +const _PC_SOCK_MAXBUF = 12 +const _PC_SYMLINK_MAX = 19 +const _PC_SYNC_IO = 9 +const _PC_VDISABLE = 8 +const _POSIX2_C_BIND = 200809 +const _POSIX2_VERSION = 200809 +const _POSIX_ADVISORY_INFO = 200809 +const _POSIX_ASYNCHRONOUS_IO = 200809 +const _POSIX_BARRIERS = 200809 +const _POSIX_CHOWN_RESTRICTED = 1 +const _POSIX_CLOCK_SELECTION = 200809 +const _POSIX_CPUTIME = 200809 +const _POSIX_FSYNC = 200809 +const _POSIX_IPV6 = 200809 +const _POSIX_JOB_CONTROL = 1 +const _POSIX_MAPPED_FILES = 200809 +const _POSIX_MEMLOCK = 200809 +const _POSIX_MEMLOCK_RANGE = 200809 +const _POSIX_MEMORY_PROTECTION = 200809 +const _POSIX_MESSAGE_PASSING = 200809 +const _POSIX_MONOTONIC_CLOCK = 200809 +const _POSIX_NO_TRUNC = 1 +const _POSIX_RAW_SOCKETS = 200809 +const _POSIX_READER_WRITER_LOCKS = 200809 +const _POSIX_REALTIME_SIGNALS = 200809 +const _POSIX_REGEXP = 1 +const _POSIX_SAVED_IDS = 1 +const _POSIX_SEMAPHORES = 200809 +const _POSIX_SHARED_MEMORY_OBJECTS = 200809 +const _POSIX_SHELL = 1 +const _POSIX_SPAWN = 200809 +const _POSIX_SPIN_LOCKS = 200809 +const _POSIX_THREADS = 200809 +const _POSIX_THREAD_ATTR_STACKADDR = 200809 +const _POSIX_THREAD_ATTR_STACKSIZE = 200809 +const _POSIX_THREAD_CPUTIME = 200809 +const _POSIX_THREAD_PRIORITY_SCHEDULING = 200809 +const _POSIX_THREAD_PROCESS_SHARED = 200809 +const _POSIX_THREAD_SAFE_FUNCTIONS = 200809 +const _POSIX_TIMEOUTS = 200809 +const _POSIX_TIMERS = 200809 +const _POSIX_V6_LP64_OFF64 = 1 +const _POSIX_V7_LP64_OFF64 = 1 +const _POSIX_VDISABLE = 0 +const _POSIX_VERSION = 200809 +const _SC_2_CHAR_TERM = 95 +const _SC_2_C_BIND = 47 +const _SC_2_C_DEV = 48 +const _SC_2_FORT_DEV = 49 +const _SC_2_FORT_RUN = 50 +const _SC_2_LOCALEDEF = 52 +const _SC_2_PBS = 168 +const _SC_2_PBS_ACCOUNTING = 169 +const _SC_2_PBS_CHECKPOINT = 175 +const _SC_2_PBS_LOCATE = 170 +const _SC_2_PBS_MESSAGE = 171 +const _SC_2_PBS_TRACK = 172 +const _SC_2_SW_DEV = 51 +const _SC_2_UPE = 97 +const _SC_2_VERSION = 46 +const _SC_ADVISORY_INFO = 132 +const _SC_AIO_LISTIO_MAX = 23 +const _SC_AIO_MAX = 24 +const _SC_AIO_PRIO_DELTA_MAX = 25 +const _SC_ARG_MAX = 0 +const _SC_ASYNCHRONOUS_IO = 12 +const _SC_ATEXIT_MAX = 87 +const _SC_AVPHYS_PAGES = 86 +const _SC_BARRIERS = 133 +const _SC_BC_BASE_MAX = 36 +const _SC_BC_DIM_MAX = 37 +const _SC_BC_SCALE_MAX = 38 +const _SC_BC_STRING_MAX = 39 +const _SC_CHILD_MAX = 1 +const _SC_CLK_TCK = 2 +const _SC_CLOCK_SELECTION = 137 +const _SC_COLL_WEIGHTS_MAX = 40 +const _SC_CPUTIME = 138 +const _SC_DELAYTIMER_MAX = 26 +const _SC_EXPR_NEST_MAX = 42 +const _SC_FSYNC = 15 +const _SC_GETGR_R_SIZE_MAX = 69 +const _SC_GETPW_R_SIZE_MAX = 70 +const _SC_HOST_NAME_MAX = 180 +const _SC_IOV_MAX = 60 +const _SC_IPV6 = 235 +const _SC_JOB_CONTROL = 7 +const _SC_LINE_MAX = 43 +const _SC_LOGIN_NAME_MAX = 71 +const _SC_MAPPED_FILES = 16 +const _SC_MEMLOCK = 17 +const _SC_MEMLOCK_RANGE = 18 +const _SC_MEMORY_PROTECTION = 19 +const _SC_MESSAGE_PASSING = 20 +const _SC_MINSIGSTKSZ = 249 +const _SC_MONOTONIC_CLOCK = 149 +const _SC_MQ_OPEN_MAX = 27 +const _SC_MQ_PRIO_MAX = 28 +const _SC_NGROUPS_MAX = 3 +const _SC_NPROCESSORS_CONF = 83 +const _SC_NPROCESSORS_ONLN = 84 +const _SC_NZERO = 109 +const _SC_OPEN_MAX = 4 +const _SC_PAGESIZE = 30 +const _SC_PAGE_SIZE = 30 +const _SC_PASS_MAX = 88 +const _SC_PHYS_PAGES = 85 +const _SC_PRIORITIZED_IO = 13 +const _SC_PRIORITY_SCHEDULING = 10 +const _SC_RAW_SOCKETS = 236 +const _SC_READER_WRITER_LOCKS = 153 +const _SC_REALTIME_SIGNALS = 9 +const _SC_REGEXP = 155 +const _SC_RE_DUP_MAX = 44 +const _SC_RTSIG_MAX = 31 +const _SC_SAVED_IDS = 8 +const _SC_SEMAPHORES = 21 +const _SC_SEM_NSEMS_MAX = 32 +const _SC_SEM_VALUE_MAX = 33 +const _SC_SHARED_MEMORY_OBJECTS = 22 +const _SC_SHELL = 157 +const _SC_SIGQUEUE_MAX = 34 +const _SC_SIGSTKSZ = 250 +const _SC_SPAWN = 159 +const _SC_SPIN_LOCKS = 154 +const _SC_SPORADIC_SERVER = 160 +const _SC_SS_REPL_MAX = 241 +const _SC_STREAMS = 174 +const _SC_STREAM_MAX = 5 +const _SC_SYMLOOP_MAX = 173 +const _SC_SYNCHRONIZED_IO = 14 +const _SC_THREADS = 67 +const _SC_THREAD_ATTR_STACKADDR = 77 +const _SC_THREAD_ATTR_STACKSIZE = 78 +const _SC_THREAD_CPUTIME = 139 +const _SC_THREAD_DESTRUCTOR_ITERATIONS = 73 +const _SC_THREAD_KEYS_MAX = 74 +const _SC_THREAD_PRIORITY_SCHEDULING = 79 +const _SC_THREAD_PRIO_INHERIT = 80 +const _SC_THREAD_PRIO_PROTECT = 81 +const _SC_THREAD_PROCESS_SHARED = 82 +const _SC_THREAD_ROBUST_PRIO_INHERIT = 247 +const _SC_THREAD_ROBUST_PRIO_PROTECT = 248 +const _SC_THREAD_SAFE_FUNCTIONS = 68 +const _SC_THREAD_SPORADIC_SERVER = 161 +const _SC_THREAD_STACK_MIN = 75 +const _SC_THREAD_THREADS_MAX = 76 +const _SC_TIMEOUTS = 164 +const _SC_TIMERS = 11 +const _SC_TIMER_MAX = 35 +const _SC_TRACE = 181 +const _SC_TRACE_EVENT_FILTER = 182 +const _SC_TRACE_EVENT_NAME_MAX = 242 +const _SC_TRACE_INHERIT = 183 +const _SC_TRACE_LOG = 184 +const _SC_TRACE_NAME_MAX = 243 +const _SC_TRACE_SYS_MAX = 244 +const _SC_TRACE_USER_EVENT_MAX = 245 +const _SC_TTY_NAME_MAX = 72 +const _SC_TYPED_MEMORY_OBJECTS = 165 +const _SC_TZNAME_MAX = 6 +const _SC_UIO_MAXIOV = 60 +const _SC_V6_ILP32_OFF32 = 176 +const _SC_V6_ILP32_OFFBIG = 177 +const _SC_V6_LP64_OFF64 = 178 +const _SC_V6_LPBIG_OFFBIG = 179 +const _SC_V7_ILP32_OFF32 = 237 +const _SC_V7_ILP32_OFFBIG = 238 +const _SC_V7_LP64_OFF64 = 239 +const _SC_V7_LPBIG_OFFBIG = 240 +const _SC_VERSION = 29 +const _SC_XBS5_ILP32_OFF32 = 125 +const _SC_XBS5_ILP32_OFFBIG = 126 +const _SC_XBS5_LP64_OFF64 = 127 +const _SC_XBS5_LPBIG_OFFBIG = 128 +const _SC_XOPEN_CRYPT = 92 +const _SC_XOPEN_ENH_I18N = 93 +const _SC_XOPEN_LEGACY = 129 +const _SC_XOPEN_REALTIME = 130 +const _SC_XOPEN_REALTIME_THREADS = 131 +const _SC_XOPEN_SHM = 94 +const _SC_XOPEN_STREAMS = 246 +const _SC_XOPEN_UNIX = 91 +const _SC_XOPEN_VERSION = 89 +const _SC_XOPEN_XCU_VERSION = 90 +const _SC_XOPEN_XPG2 = 98 +const _SC_XOPEN_XPG3 = 99 +const _SC_XOPEN_XPG4 = 100 +const _XOPEN_ENH_I18N = 1 +const _XOPEN_UNIX = 1 +const _XOPEN_VERSION = 700 + +type Tsize_t = uint64 + +type Tssize_t = int64 + +type Toff_t = int64 + +type Tpid_t = int32 + +type Tuid_t = uint32 + +type Tgid_t = uint32 + +type Tuseconds_t = uint32 + +type Tva_list = uintptr + +type t__isoc_va_list = uintptr + +type Tfpos_t = struct { + F__lldata [0]int64 + F__align [0]float64 + F__opaque [16]int8 +} + +type T_G_fpos64_t = Tfpos_t + +func Xconfstr(tls *TLS, name int32, buf uintptr, len1 Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v name=%v buf=%v len1=%v, (%v:)", tls, name, buf, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var s uintptr + _ = s + s = __ccgo_ts + if !(name != 0) { + s = __ccgo_ts + 1 + } else { + if Uint32FromInt32(name) & ^Uint32FromUint32(4) != uint32(1) && Uint32FromInt32(name-int32(_CS_POSIX_V6_ILP32_OFF32_CFLAGS)) > uint32(35) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uint64(0) + } + } + // snprintf is overkill but avoid wasting code size to implement + // this completely useless function and its truncation semantics + return Uint64FromInt32(Xsnprintf(tls, buf, len1, __ccgo_ts+15, VaList(bp+8, s)) + int32(1)) +} + +const ARG_MAX = 131072 +const BC_BASE_MAX = 99 +const BC_DIM_MAX = 2048 +const BC_SCALE_MAX = 99 +const BC_STRING_MAX = 1000 +const CHARCLASS_NAME_MAX = 14 +const CHAR_BIT = 8 +const CHAR_MAX = 255 +const CHAR_MIN = 0 +const COLL_WEIGHTS_MAX = 2 +const DELAYTIMER_MAX = 2147483647 +const EXPR_NEST_MAX = 32 +const FILESIZEBITS = 64 +const HOST_NAME_MAX = 255 +const INT_MAX = 2147483647 +const INT_MIN = -2147483648 +const IOV_MAX = 1024 +const LINE_MAX = 4096 +const LLONG_MAX = 9223372036854775807 +const LLONG_MIN = -9223372036854775808 +const LOGIN_NAME_MAX = 256 +const LONG_BIT = 64 +const LONG_MAX = 9223372036854775807 +const LONG_MIN = -9223372036854775808 +const MB_LEN_MAX = 4 +const MQ_PRIO_MAX = 32768 +const NAME_MAX = 255 +const NGROUPS_MAX = 32 +const NL_ARGMAX = 9 +const NL_LANGMAX = 32 +const NL_MSGMAX = 32767 +const NL_SETMAX = 255 +const NL_TEXTMAX = 2048 +const NZERO = 20 +const PAGESIZE = 4096 +const PAGE_SIZE = 4096 +const PATH_MAX = 4096 +const PIPE_BUF = 4096 +const PTHREAD_DESTRUCTOR_ITERATIONS = 4 +const PTHREAD_KEYS_MAX = 128 +const PTHREAD_STACK_MIN = 2048 +const RE_DUP_MAX = 255 +const SCHAR_MAX = 127 +const SCHAR_MIN = -128 +const SEEK_CUR = 1 +const SEEK_END = 2 +const SEEK_SET = 0 +const SEM_NSEMS_MAX = 256 +const SEM_VALUE_MAX = 2147483647 +const SHRT_MAX = 32767 +const SHRT_MIN = -32768 +const SSIZE_MAX = 9223372036854775807 +const SYMLOOP_MAX = 40 +const TTY_NAME_MAX = 32 +const TZNAME_MAX = 6 +const UCHAR_MAX = 255 +const UINT_MAX = 4294967295 +const ULLONG_MAX = 18446744073709551615 +const ULONG_MAX = 18446744073709551615 +const USHRT_MAX = 65535 +const WORD_BIT = 32 +const _POSIX2_BC_BASE_MAX = 99 +const _POSIX2_BC_DIM_MAX = 2048 +const _POSIX2_BC_SCALE_MAX = 99 +const _POSIX2_BC_STRING_MAX = 1000 +const _POSIX2_CHARCLASS_NAME_MAX = 14 +const _POSIX2_COLL_WEIGHTS_MAX = 2 +const _POSIX2_EXPR_NEST_MAX = 32 +const _POSIX2_LINE_MAX = 2048 +const _POSIX2_RE_DUP_MAX = 255 +const _POSIX_AIO_LISTIO_MAX = 2 +const _POSIX_AIO_MAX = 1 +const _POSIX_ARG_MAX = 4096 +const _POSIX_CHILD_MAX = 25 +const _POSIX_CLOCKRES_MIN = 20000000 +const _POSIX_DELAYTIMER_MAX = 32 +const _POSIX_HOST_NAME_MAX = 255 +const _POSIX_LINK_MAX = 8 +const _POSIX_LOGIN_NAME_MAX = 9 +const _POSIX_MAX_CANON = 255 +const _POSIX_MAX_INPUT = 255 +const _POSIX_MQ_OPEN_MAX = 8 +const _POSIX_MQ_PRIO_MAX = 32 +const _POSIX_NAME_MAX = 14 +const _POSIX_NGROUPS_MAX = 8 +const _POSIX_OPEN_MAX = 20 +const _POSIX_PATH_MAX = 256 +const _POSIX_PIPE_BUF = 512 +const _POSIX_RE_DUP_MAX = 255 +const _POSIX_RTSIG_MAX = 8 +const _POSIX_SEM_NSEMS_MAX = 256 +const _POSIX_SEM_VALUE_MAX = 32767 +const _POSIX_SIGQUEUE_MAX = 32 +const _POSIX_SSIZE_MAX = 32767 +const _POSIX_SS_REPL_MAX = 4 +const _POSIX_STREAM_MAX = 8 +const _POSIX_SYMLINK_MAX = 255 +const _POSIX_SYMLOOP_MAX = 8 +const _POSIX_THREAD_DESTRUCTOR_ITERATIONS = 4 +const _POSIX_THREAD_KEYS_MAX = 128 +const _POSIX_THREAD_THREADS_MAX = 64 +const _POSIX_TIMER_MAX = 32 +const _POSIX_TRACE_EVENT_NAME_MAX = 30 +const _POSIX_TRACE_NAME_MAX = 8 +const _POSIX_TRACE_SYS_MAX = 8 +const _POSIX_TRACE_USER_EVENT_MAX = 32 +const _POSIX_TTY_NAME_MAX = 9 +const _POSIX_TZNAME_MAX = 6 +const _XOPEN_IOV_MAX = 16 +const _XOPEN_NAME_MAX = 255 +const _XOPEN_PATH_MAX = 1024 + +func Xfpathconf(tls *TLS, fd int32, name int32) (r int64) { + if __ccgo_strace { + trc("tls=%v fd=%v name=%v, (%v:)", tls, fd, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + if Uint64FromInt32(name) >= Uint64FromInt64(42)/Uint64FromInt64(2) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return int64(-int32(1)) + } + return int64(_values[name]) +} + +var _values = [21]int16{ + 0: int16(_POSIX_LINK_MAX), + 1: int16(_POSIX_MAX_CANON), + 2: int16(_POSIX_MAX_INPUT), + 3: int16(NAME_MAX), + 4: int16(PATH_MAX), + 5: int16(PIPE_BUF), + 6: int16(1), + 7: int16(1), + 9: int16(1), + 10: int16(-int32(1)), + 11: int16(-int32(1)), + 12: int16(-int32(1)), + 13: int16(FILESIZEBITS), + 14: int16(4096), + 15: int16(4096), + 16: int16(4096), + 17: int16(4096), + 18: int16(4096), + 19: int16(-int32(1)), + 20: int16(1), +} + +const SI_LOAD_SHIFT = 16 + +type Tsysinfo = struct { + Fuptime uint64 + Floads [3]uint64 + Ftotalram uint64 + Ffreeram uint64 + Fsharedram uint64 + Fbufferram uint64 + Ftotalswap uint64 + Ffreeswap uint64 + Fprocs uint16 + Fpad uint16 + Ftotalhigh uint64 + Ffreehigh uint64 + Fmem_unit uint32 + F__reserved [256]int8 +} + +func Xget_nprocs_conf(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(Xsysconf(tls, int32(_SC_NPROCESSORS_CONF))) +} + +func Xget_nprocs(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(Xsysconf(tls, int32(_SC_NPROCESSORS_ONLN))) +} + +func Xget_phys_pages(tls *TLS) (r int64) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xsysconf(tls, int32(_SC_PHYS_PAGES)) +} + +func Xget_avphys_pages(tls *TLS) (r int64) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xsysconf(tls, int32(_SC_AVPHYS_PAGES)) +} + +func Xpathconf(tls *TLS, path uintptr, name int32) (r int64) { + if __ccgo_strace { + trc("tls=%v path=%v name=%v, (%v:)", tls, path, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfpathconf(tls, -int32(1), name) +} + +const AT_BASE = 7 +const AT_BASE_PLATFORM = 24 +const AT_CLKTCK = 17 +const AT_DCACHEBSIZE = 19 +const AT_EGID = 14 +const AT_ENTRY = 9 +const AT_EUID = 12 +const AT_EXECFD = 2 +const AT_EXECFN = 31 +const AT_FLAGS = 8 +const AT_FPUCW = 18 +const AT_GID = 13 +const AT_HWCAP = 16 +const AT_HWCAP2 = 26 +const AT_ICACHEBSIZE = 20 +const AT_IGNORE = 1 +const AT_IGNOREPPC = 22 +const AT_L1D_CACHEGEOMETRY = 43 +const AT_L1D_CACHESHAPE = 35 +const AT_L1D_CACHESIZE = 42 +const AT_L1I_CACHEGEOMETRY = 41 +const AT_L1I_CACHESHAPE = 34 +const AT_L1I_CACHESIZE = 40 +const AT_L2_CACHEGEOMETRY = 45 +const AT_L2_CACHESHAPE = 36 +const AT_L2_CACHESIZE = 44 +const AT_L3_CACHEGEOMETRY = 47 +const AT_L3_CACHESHAPE = 37 +const AT_L3_CACHESIZE = 46 +const AT_MINSIGSTKSZ = 51 +const AT_NOTELF = 10 +const AT_NULL = 0 +const AT_PAGESZ = 6 +const AT_PHDR = 3 +const AT_PHENT = 4 +const AT_PHNUM = 5 +const AT_PLATFORM = 15 +const AT_RANDOM = 25 +const AT_SECURE = 23 +const AT_SYSINFO = 32 +const AT_SYSINFO_EHDR = 33 +const AT_UCACHEBSIZE = 21 +const AT_UID = 11 +const BUS_ADRALN = 1 +const BUS_ADRERR = 2 +const BUS_MCEERR_AO = 5 +const BUS_MCEERR_AR = 4 +const BUS_OBJERR = 3 +const CLD_CONTINUED = 6 +const CLD_DUMPED = 3 +const CLD_EXITED = 1 +const CLD_KILLED = 2 +const CLD_STOPPED = 5 +const CLD_TRAPPED = 4 +const DF_1_CONFALT = 8192 +const DF_1_DIRECT = 256 +const DF_1_DISPRELDNE = 32768 +const DF_1_DISPRELPND = 65536 +const DF_1_EDITED = 2097152 +const DF_1_ENDFILTEE = 16384 +const DF_1_GLOBAL = 2 +const DF_1_GLOBAUDIT = 16777216 +const DF_1_GROUP = 4 +const DF_1_IGNMULDEF = 262144 +const DF_1_INITFIRST = 32 +const DF_1_INTERPOSE = 1024 +const DF_1_LOADFLTR = 16 +const DF_1_NODEFLIB = 2048 +const DF_1_NODELETE = 8 +const DF_1_NODIRECT = 131072 +const DF_1_NODUMP = 4096 +const DF_1_NOHDR = 1048576 +const DF_1_NOKSYMS = 524288 +const DF_1_NOOPEN = 64 +const DF_1_NORELOC = 4194304 +const DF_1_NOW = 1 +const DF_1_ORIGIN = 128 +const DF_1_PIE = 134217728 +const DF_1_SINGLETON = 33554432 +const DF_1_STUB = 67108864 +const DF_1_SYMINTPOSE = 8388608 +const DF_1_TRANS = 512 +const DF_BIND_NOW = 8 +const DF_ORIGIN = 1 +const DF_P1_GROUPPERM = 2 +const DF_P1_LAZYLOAD = 1 +const DF_STATIC_TLS = 16 +const DF_SYMBOLIC = 2 +const DF_TEXTREL = 4 +const DTF_1_CONFEXP = 2 +const DTF_1_PARINIT = 1 +const DT_ADDRNUM = 11 +const DT_ADDRRNGHI = 1879047935 +const DT_ADDRRNGLO = 1879047680 +const DT_ALPHA_NUM = 1 +const DT_ALPHA_PLTRO = 1879048192 +const DT_AUDIT = 1879047932 +const DT_AUXILIARY = 2147483645 +const DT_BIND_NOW = 24 +const DT_CHECKSUM = 1879047672 +const DT_CONFIG = 1879047930 +const DT_DEBUG = 21 +const DT_DEPAUDIT = 1879047931 +const DT_ENCODING = 32 +const DT_EXTRANUM = 3 +const DT_FEATURE_1 = 1879047676 +const DT_FILTER = 2147483647 +const DT_FINI = 13 +const DT_FINI_ARRAY = 26 +const DT_FINI_ARRAYSZ = 28 +const DT_FLAGS = 30 +const DT_FLAGS_1 = 1879048187 +const DT_GNU_CONFLICT = 1879047928 +const DT_GNU_CONFLICTSZ = 1879047670 +const DT_GNU_HASH = 1879047925 +const DT_GNU_LIBLIST = 1879047929 +const DT_GNU_LIBLISTSZ = 1879047671 +const DT_GNU_PRELINKED = 1879047669 +const DT_HASH = 4 +const DT_HIOS = 1879044096 +const DT_HIPROC = 2147483647 +const DT_IA_64_NUM = 1 +const DT_IA_64_PLT_RESERVE = 1879048192 +const DT_INIT = 12 +const DT_INIT_ARRAY = 25 +const DT_INIT_ARRAYSZ = 27 +const DT_JMPREL = 23 +const DT_LOOS = 1610612749 +const DT_LOPROC = 1879048192 +const DT_MIPS_AUX_DYNAMIC = 1879048241 +const DT_MIPS_BASE_ADDRESS = 1879048198 +const DT_MIPS_COMPACT_SIZE = 1879048239 +const DT_MIPS_CONFLICT = 1879048200 +const DT_MIPS_CONFLICTNO = 1879048203 +const DT_MIPS_CXX_FLAGS = 1879048226 +const DT_MIPS_DELTA_CLASS = 1879048215 +const DT_MIPS_DELTA_CLASSSYM = 1879048224 +const DT_MIPS_DELTA_CLASSSYM_NO = 1879048225 +const DT_MIPS_DELTA_CLASS_NO = 1879048216 +const DT_MIPS_DELTA_INSTANCE = 1879048217 +const DT_MIPS_DELTA_INSTANCE_NO = 1879048218 +const DT_MIPS_DELTA_RELOC = 1879048219 +const DT_MIPS_DELTA_RELOC_NO = 1879048220 +const DT_MIPS_DELTA_SYM = 1879048221 +const DT_MIPS_DELTA_SYM_NO = 1879048222 +const DT_MIPS_DYNSTR_ALIGN = 1879048235 +const DT_MIPS_FLAGS = 1879048197 +const DT_MIPS_GOTSYM = 1879048211 +const DT_MIPS_GP_VALUE = 1879048240 +const DT_MIPS_HIDDEN_GOTIDX = 1879048231 +const DT_MIPS_HIPAGENO = 1879048212 +const DT_MIPS_ICHECKSUM = 1879048195 +const DT_MIPS_INTERFACE = 1879048234 +const DT_MIPS_INTERFACE_SIZE = 1879048236 +const DT_MIPS_IVERSION = 1879048196 +const DT_MIPS_LIBLIST = 1879048201 +const DT_MIPS_LIBLISTNO = 1879048208 +const DT_MIPS_LOCALPAGE_GOTIDX = 1879048229 +const DT_MIPS_LOCAL_GOTIDX = 1879048230 +const DT_MIPS_LOCAL_GOTNO = 1879048202 +const DT_MIPS_MSYM = 1879048199 +const DT_MIPS_NUM = 54 +const DT_MIPS_OPTIONS = 1879048233 +const DT_MIPS_PERF_SUFFIX = 1879048238 +const DT_MIPS_PIXIE_INIT = 1879048227 +const DT_MIPS_PLTGOT = 1879048242 +const DT_MIPS_PROTECTED_GOTIDX = 1879048232 +const DT_MIPS_RLD_MAP = 1879048214 +const DT_MIPS_RLD_MAP_REL = 1879048245 +const DT_MIPS_RLD_TEXT_RESOLVE_ADDR = 1879048237 +const DT_MIPS_RLD_VERSION = 1879048193 +const DT_MIPS_RWPLT = 1879048244 +const DT_MIPS_SYMBOL_LIB = 1879048228 +const DT_MIPS_SYMTABNO = 1879048209 +const DT_MIPS_TIME_STAMP = 1879048194 +const DT_MIPS_UNREFEXTNO = 1879048210 +const DT_MOVEENT = 1879047674 +const DT_MOVESZ = 1879047675 +const DT_MOVETAB = 1879047934 +const DT_NEEDED = 1 +const DT_NIOS2_GP = 1879048194 +const DT_NULL = 0 +const DT_NUM = 38 +const DT_PLTGOT = 3 +const DT_PLTPAD = 1879047933 +const DT_PLTPADSZ = 1879047673 +const DT_PLTREL = 20 +const DT_PLTRELSZ = 2 +const DT_POSFLAG_1 = 1879047677 +const DT_PPC64_GLINK = 1879048192 +const DT_PPC64_NUM = 4 +const DT_PPC64_OPD = 1879048193 +const DT_PPC64_OPDSZ = 1879048194 +const DT_PPC64_OPT = 1879048195 +const DT_PPC_GOT = 1879048192 +const DT_PPC_NUM = 2 +const DT_PPC_OPT = 1879048193 +const DT_PREINIT_ARRAY = 32 +const DT_PREINIT_ARRAYSZ = 33 +const DT_PROCNUM = 54 +const DT_REL = 17 +const DT_RELA = 7 +const DT_RELACOUNT = 1879048185 +const DT_RELAENT = 9 +const DT_RELASZ = 8 +const DT_RELCOUNT = 1879048186 +const DT_RELENT = 19 +const DT_RELR = 36 +const DT_RELRENT = 37 +const DT_RELRSZ = 35 +const DT_RELSZ = 18 +const DT_RPATH = 15 +const DT_RUNPATH = 29 +const DT_SONAME = 14 +const DT_SPARC_NUM = 2 +const DT_SPARC_REGISTER = 1879048193 +const DT_STRSZ = 10 +const DT_STRTAB = 5 +const DT_SYMBOLIC = 16 +const DT_SYMENT = 11 +const DT_SYMINENT = 1879047679 +const DT_SYMINFO = 1879047935 +const DT_SYMINSZ = 1879047678 +const DT_SYMTAB = 6 +const DT_SYMTAB_SHNDX = 34 +const DT_TEXTREL = 22 +const DT_TLSDESC_GOT = 1879047927 +const DT_TLSDESC_PLT = 1879047926 +const DT_VALNUM = 12 +const DT_VALRNGHI = 1879047679 +const DT_VALRNGLO = 1879047424 +const DT_VERDEF = 1879048188 +const DT_VERDEFNUM = 1879048189 +const DT_VERNEED = 1879048190 +const DT_VERNEEDNUM = 1879048191 +const DT_VERSIONTAGNUM = 16 +const DT_VERSYM = 1879048176 +const EFA_PARISC_1_0 = 523 +const EFA_PARISC_1_1 = 528 +const EFA_PARISC_2_0 = 532 +const EF_ALPHA_32BIT = 1 +const EF_ALPHA_CANRELAX = 2 +const EF_ARM_ABI_FLOAT_HARD = 1024 +const EF_ARM_ABI_FLOAT_SOFT = 512 +const EF_ARM_ALIGN8 = 64 +const EF_ARM_APCS_26 = 8 +const EF_ARM_APCS_FLOAT = 16 +const EF_ARM_BE8 = 8388608 +const EF_ARM_DYNSYMSUSESEGIDX = 8 +const EF_ARM_EABIMASK = 4278190080 +const EF_ARM_EABI_UNKNOWN = 0 +const EF_ARM_EABI_VER1 = 16777216 +const EF_ARM_EABI_VER2 = 33554432 +const EF_ARM_EABI_VER3 = 50331648 +const EF_ARM_EABI_VER4 = 67108864 +const EF_ARM_EABI_VER5 = 83886080 +const EF_ARM_HASENTRY = 2 +const EF_ARM_INTERWORK = 4 +const EF_ARM_LE8 = 4194304 +const EF_ARM_MAPSYMSFIRST = 16 +const EF_ARM_MAVERICK_FLOAT = 2048 +const EF_ARM_NEW_ABI = 128 +const EF_ARM_OLD_ABI = 256 +const EF_ARM_PIC = 32 +const EF_ARM_RELEXEC = 1 +const EF_ARM_SOFT_FLOAT = 512 +const EF_ARM_SYMSARESORTED = 4 +const EF_ARM_VFP_FLOAT = 1024 +const EF_CPU32 = 8454144 +const EF_IA_64_ABI64 = 16 +const EF_IA_64_ARCH = 4278190080 +const EF_IA_64_MASKOS = 15 +const EF_LARCH_ABI_DOUBLE_FLOAT = 3 +const EF_LARCH_ABI_MODIFIER_MASK = 7 +const EF_LARCH_ABI_SINGLE_FLOAT = 2 +const EF_LARCH_ABI_SOFT_FLOAT = 1 +const EF_LARCH_OBJABI_V1 = 64 +const EF_MIPS_64BIT_WHIRL = 16 +const EF_MIPS_ABI2 = 32 +const EF_MIPS_ABI_ON32 = 64 +const EF_MIPS_ARCH = 4026531840 +const EF_MIPS_ARCH_1 = 0 +const EF_MIPS_ARCH_2 = 268435456 +const EF_MIPS_ARCH_3 = 536870912 +const EF_MIPS_ARCH_32 = 1342177280 +const EF_MIPS_ARCH_32R2 = 1879048192 +const EF_MIPS_ARCH_4 = 805306368 +const EF_MIPS_ARCH_5 = 1073741824 +const EF_MIPS_ARCH_64 = 1610612736 +const EF_MIPS_ARCH_64R2 = 2147483648 +const EF_MIPS_CPIC = 4 +const EF_MIPS_FP64 = 512 +const EF_MIPS_NAN2008 = 1024 +const EF_MIPS_NOREORDER = 1 +const EF_MIPS_PIC = 2 +const EF_MIPS_XGOT = 8 +const EF_PARISC_ARCH = 65535 +const EF_PARISC_EXT = 131072 +const EF_PARISC_LAZYSWAP = 4194304 +const EF_PARISC_LSB = 262144 +const EF_PARISC_NO_KABP = 1048576 +const EF_PARISC_TRAPNIL = 65536 +const EF_PARISC_WIDE = 524288 +const EF_PPC64_ABI = 3 +const EF_PPC_EMB = 2147483648 +const EF_PPC_RELOCATABLE = 65536 +const EF_PPC_RELOCATABLE_LIB = 32768 +const EF_SH1 = 1 +const EF_SH2 = 2 +const EF_SH2A = 13 +const EF_SH2A_NOFPU = 19 +const EF_SH2A_SH3E = 24 +const EF_SH2A_SH3_NOFPU = 22 +const EF_SH2A_SH4 = 23 +const EF_SH2A_SH4_NOFPU = 21 +const EF_SH2E = 11 +const EF_SH3 = 3 +const EF_SH3E = 8 +const EF_SH3_DSP = 5 +const EF_SH3_NOMMU = 20 +const EF_SH4 = 9 +const EF_SH4A = 12 +const EF_SH4AL_DSP = 6 +const EF_SH4A_NOFPU = 17 +const EF_SH4_NOFPU = 16 +const EF_SH4_NOMMU_NOFPU = 18 +const EF_SH_DSP = 4 +const EF_SH_MACH_MASK = 31 +const EF_SH_UNKNOWN = 0 +const EF_SPARCV9_MM = 3 +const EF_SPARCV9_PSO = 1 +const EF_SPARCV9_RMO = 2 +const EF_SPARCV9_TSO = 0 +const EF_SPARC_32PLUS = 256 +const EF_SPARC_EXT_MASK = 16776960 +const EF_SPARC_HAL_R1 = 1024 +const EF_SPARC_LEDATA = 8388608 +const EF_SPARC_SUN_US1 = 512 +const EF_SPARC_SUN_US3 = 2048 +const EI_ABIVERSION = 8 +const EI_CLASS = 4 +const EI_DATA = 5 +const EI_MAG0 = 0 +const EI_MAG1 = 1 +const EI_MAG2 = 2 +const EI_MAG3 = 3 +const EI_NIDENT = 16 +const EI_OSABI = 7 +const EI_PAD = 9 +const EI_VERSION = 6 +const ELFCLASS32 = 1 +const ELFCLASS64 = 2 +const ELFCLASSNONE = 0 +const ELFCLASSNUM = 3 +const ELFCOMPRESS_HIOS = 1879048191 +const ELFCOMPRESS_HIPROC = 2147483647 +const ELFCOMPRESS_LOOS = 1610612736 +const ELFCOMPRESS_LOPROC = 1879048192 +const ELFCOMPRESS_ZLIB = 1 +const ELFCOMPRESS_ZSTD = 2 +const ELFDATA2LSB = 1 +const ELFDATA2MSB = 2 +const ELFDATANONE = 0 +const ELFDATANUM = 3 +const ELFMAG = "\\177ELF" +const ELFMAG0 = 127 +const ELFMAG1 = 69 +const ELFMAG2 = 76 +const ELFMAG3 = 70 +const ELFOSABI_AIX = 7 +const ELFOSABI_ARM = 97 +const ELFOSABI_FREEBSD = 9 +const ELFOSABI_GNU = 3 +const ELFOSABI_HPUX = 1 +const ELFOSABI_IRIX = 8 +const ELFOSABI_LINUX = 3 +const ELFOSABI_MODESTO = 11 +const ELFOSABI_NETBSD = 2 +const ELFOSABI_NONE = 0 +const ELFOSABI_OPENBSD = 12 +const ELFOSABI_SOLARIS = 6 +const ELFOSABI_STANDALONE = 255 +const ELFOSABI_SYSV = 0 +const ELFOSABI_TRU64 = 10 +const ELF_NOTE_ABI = 1 +const ELF_NOTE_GNU = "GNU" +const ELF_NOTE_OS_FREEBSD = 3 +const ELF_NOTE_OS_GNU = 1 +const ELF_NOTE_OS_LINUX = 0 +const ELF_NOTE_OS_SOLARIS2 = 2 +const ELF_NOTE_PAGESIZE_HINT = 1 +const ELF_NOTE_SOLARIS = "SUNW Solaris" +const EM_386 = 3 +const EM_56800EX = 200 +const EM_68HC05 = 72 +const EM_68HC08 = 71 +const EM_68HC11 = 70 +const EM_68HC12 = 53 +const EM_68HC16 = 69 +const EM_68K = 4 +const EM_78KOR = 199 +const EM_8051 = 165 +const EM_860 = 7 +const EM_88K = 5 +const EM_960 = 19 +const EM_AARCH64 = 183 +const EM_ALPHA = 36902 +const EM_ALTERA_NIOS2 = 113 +const EM_AMDGPU = 224 +const EM_ARC = 45 +const EM_ARCA = 109 +const EM_ARC_A5 = 93 +const EM_ARC_COMPACT = 93 +const EM_ARC_COMPACT2 = 195 +const EM_ARM = 40 +const EM_AVR = 83 +const EM_AVR32 = 185 +const EM_BA1 = 201 +const EM_BA2 = 202 +const EM_BLACKFIN = 106 +const EM_BPF = 247 +const EM_C166 = 116 +const EM_CDP = 215 +const EM_CE = 119 +const EM_CLOUDSHIELD = 192 +const EM_COGE = 216 +const EM_COLDFIRE = 52 +const EM_COOL = 217 +const EM_COREA_1ST = 193 +const EM_COREA_2ND = 194 +const EM_CR = 103 +const EM_CR16 = 177 +const EM_CRAYNV2 = 172 +const EM_CRIS = 76 +const EM_CRX = 114 +const EM_CSKY = 252 +const EM_CSR_KALIMBA = 219 +const EM_CUDA = 190 +const EM_CYPRESS_M8C = 161 +const EM_D10V = 85 +const EM_D30V = 86 +const EM_DSP24 = 136 +const EM_DSPIC30F = 118 +const EM_DXP = 112 +const EM_ECOG16 = 176 +const EM_ECOG1X = 168 +const EM_ECOG2 = 134 +const EM_EMX16 = 212 +const EM_EMX8 = 213 +const EM_ETPU = 178 +const EM_EXCESS = 111 +const EM_F2MC16 = 104 +const EM_FAKE_ALPHA = 41 +const EM_FIREPATH = 78 +const EM_FR20 = 37 +const EM_FR30 = 84 +const EM_FT32 = 222 +const EM_FX66 = 66 +const EM_H8S = 48 +const EM_H8_300 = 46 +const EM_H8_300H = 47 +const EM_H8_500 = 49 +const EM_HUANY = 81 +const EM_IA_64 = 50 +const EM_IP2K = 101 +const EM_JAVELIN = 77 +const EM_K10M = 181 +const EM_KM32 = 210 +const EM_KMX32 = 211 +const EM_KVARC = 214 +const EM_L10M = 180 +const EM_LATTICEMICO32 = 138 +const EM_LOONGARCH = 258 +const EM_M16C = 117 +const EM_M32 = 1 +const EM_M32C = 120 +const EM_M32R = 88 +const EM_MANIK = 171 +const EM_MAX = 102 +const EM_MAXQ30 = 169 +const EM_MCHP_PIC = 204 +const EM_MCST_ELBRUS = 175 +const EM_ME16 = 59 +const EM_METAG = 174 +const EM_MICROBLAZE = 189 +const EM_MIPS = 8 +const EM_MIPS_RS3_LE = 10 +const EM_MIPS_X = 51 +const EM_MMA = 54 +const EM_MMDSP_PLUS = 160 +const EM_MMIX = 80 +const EM_MN10200 = 90 +const EM_MN10300 = 89 +const EM_MOXIE = 223 +const EM_MSP430 = 105 +const EM_NCPU = 56 +const EM_NDR1 = 57 +const EM_NDS32 = 167 +const EM_NONE = 0 +const EM_NORC = 218 +const EM_NS32K = 97 +const EM_NUM = 259 +const EM_OPEN8 = 196 +const EM_OPENRISC = 92 +const EM_OR1K = 92 +const EM_PARISC = 15 +const EM_PCP = 55 +const EM_PDSP = 63 +const EM_PJ = 91 +const EM_PPC = 20 +const EM_PPC64 = 21 +const EM_PRISM = 82 +const EM_QDSP6 = 164 +const EM_R32C = 162 +const EM_RCE = 39 +const EM_RH32 = 38 +const EM_RISCV = 243 +const EM_RL78 = 197 +const EM_RS08 = 132 +const EM_RX = 173 +const EM_S370 = 9 +const EM_S390 = 22 +const EM_SCORE7 = 135 +const EM_SEP = 108 +const EM_SE_C17 = 139 +const EM_SE_C33 = 107 +const EM_SH = 42 +const EM_SHARC = 133 +const EM_SLE9X = 179 +const EM_SNP1K = 99 +const EM_SPARC = 2 +const EM_SPARC32PLUS = 18 +const EM_SPARCV9 = 43 +const EM_ST100 = 60 +const EM_ST19 = 74 +const EM_ST200 = 100 +const EM_ST7 = 68 +const EM_ST9PLUS = 67 +const EM_STARCORE = 58 +const EM_STM8 = 186 +const EM_STXP7X = 166 +const EM_SVX = 73 +const EM_TILE64 = 187 +const EM_TILEGX = 191 +const EM_TILEPRO = 188 +const EM_TINYJ = 61 +const EM_TI_ARP32 = 143 +const EM_TI_C2000 = 141 +const EM_TI_C5500 = 142 +const EM_TI_C6000 = 140 +const EM_TI_PRU = 144 +const EM_TMM_GPP = 96 +const EM_TPC = 98 +const EM_TRICORE = 44 +const EM_TRIMEDIA = 163 +const EM_TSK3000 = 131 +const EM_UNICORE = 110 +const EM_V800 = 36 +const EM_V850 = 87 +const EM_VAX = 75 +const EM_VIDEOCORE = 95 +const EM_VIDEOCORE3 = 137 +const EM_VIDEOCORE5 = 198 +const EM_VISIUM = 221 +const EM_VPP500 = 17 +const EM_X86_64 = 62 +const EM_XCORE = 203 +const EM_XGATE = 115 +const EM_XIMO16 = 170 +const EM_XTENSA = 94 +const EM_Z80 = 220 +const EM_ZSP = 79 +const ET_CORE = 4 +const ET_DYN = 3 +const ET_EXEC = 2 +const ET_HIOS = 65279 +const ET_HIPROC = 65535 +const ET_LOOS = 65024 +const ET_LOPROC = 65280 +const ET_NONE = 0 +const ET_NUM = 5 +const ET_REL = 1 +const EV_CURRENT = 1 +const EV_NONE = 0 +const EV_NUM = 2 +const EXIT_FAILURE = 1 +const EXIT_SUCCESS = 0 +const E_MIPS_ARCH_1 = 0 +const E_MIPS_ARCH_2 = 268435456 +const E_MIPS_ARCH_3 = 536870912 +const E_MIPS_ARCH_32 = 1342177280 +const E_MIPS_ARCH_4 = 805306368 +const E_MIPS_ARCH_5 = 1073741824 +const E_MIPS_ARCH_64 = 1610612736 +const FD_SETSIZE = 1024 +const FPE_FLTDIV = 3 +const FPE_FLTINV = 7 +const FPE_FLTOVF = 4 +const FPE_FLTRES = 6 +const FPE_FLTSUB = 8 +const FPE_FLTUND = 5 +const FPE_INTDIV = 1 +const FPE_INTOVF = 2 +const GRP_COMDAT = 1 +const ILL_BADSTK = 8 +const ILL_COPROC = 7 +const ILL_ILLADR = 3 +const ILL_ILLOPC = 1 +const ILL_ILLOPN = 2 +const ILL_ILLTRP = 4 +const ILL_PRVOPC = 5 +const ILL_PRVREG = 6 +const IPC_64 = 0 +const ITIMER_PROF = 2 +const ITIMER_REAL = 0 +const ITIMER_VIRTUAL = 1 +const JT_ARG_MAX = -254 +const JT_AVPHYS_PAGES = -247 +const JT_DELAYTIMER_MAX = -245 +const JT_MINSIGSTKSZ = -244 +const JT_MQ_PRIO_MAX = -253 +const JT_NPROCESSORS_CONF = -250 +const JT_NPROCESSORS_ONLN = -249 +const JT_PAGE_SIZE = -252 +const JT_PHYS_PAGES = -248 +const JT_SEM_VALUE_MAX = -251 +const JT_SIGSTKSZ = -243 +const JT_ZERO = -246 +const LITUSE_ALPHA_ADDR = 0 +const LITUSE_ALPHA_BASE = 1 +const LITUSE_ALPHA_BYTOFF = 2 +const LITUSE_ALPHA_JSR = 3 +const LITUSE_ALPHA_TLS_GD = 4 +const LITUSE_ALPHA_TLS_LDM = 5 +const LL_DELAY_LOAD = 16 +const LL_DELTA = 32 +const LL_EXACT_MATCH = 1 +const LL_EXPORTS = 8 +const LL_IGNORE_INT_VER = 2 +const LL_NONE = 0 +const LL_REQUIRE_MINOR = 4 +const MB_CUR_MAX = 0 +const MINSIGSTKSZ = 2048 +const MIPS_AFL_ASE_DSP = 1 +const MIPS_AFL_ASE_DSPR2 = 2 +const MIPS_AFL_ASE_EVA = 4 +const MIPS_AFL_ASE_MASK = 8191 +const MIPS_AFL_ASE_MCU = 8 +const MIPS_AFL_ASE_MDMX = 16 +const MIPS_AFL_ASE_MICROMIPS = 2048 +const MIPS_AFL_ASE_MIPS16 = 1024 +const MIPS_AFL_ASE_MIPS3D = 32 +const MIPS_AFL_ASE_MSA = 512 +const MIPS_AFL_ASE_MT = 64 +const MIPS_AFL_ASE_SMARTMIPS = 128 +const MIPS_AFL_ASE_VIRT = 256 +const MIPS_AFL_ASE_XPA = 4096 +const MIPS_AFL_EXT_10000 = 11 +const MIPS_AFL_EXT_3900 = 10 +const MIPS_AFL_EXT_4010 = 8 +const MIPS_AFL_EXT_4100 = 9 +const MIPS_AFL_EXT_4111 = 13 +const MIPS_AFL_EXT_4120 = 14 +const MIPS_AFL_EXT_4650 = 7 +const MIPS_AFL_EXT_5400 = 15 +const MIPS_AFL_EXT_5500 = 16 +const MIPS_AFL_EXT_5900 = 6 +const MIPS_AFL_EXT_LOONGSON_2E = 17 +const MIPS_AFL_EXT_LOONGSON_2F = 18 +const MIPS_AFL_EXT_LOONGSON_3A = 4 +const MIPS_AFL_EXT_OCTEON = 5 +const MIPS_AFL_EXT_OCTEON2 = 2 +const MIPS_AFL_EXT_OCTEONP = 3 +const MIPS_AFL_EXT_SB1 = 12 +const MIPS_AFL_EXT_XLR = 1 +const MIPS_AFL_FLAGS1_ODDSPREG = 1 +const MIPS_AFL_REG_128 = 3 +const MIPS_AFL_REG_32 = 1 +const MIPS_AFL_REG_64 = 2 +const MIPS_AFL_REG_NONE = 0 +const NT_386_IOPERM = 513 +const NT_386_TLS = 512 +const NT_ARC_V2 = 1536 +const NT_ARM_HW_BREAK = 1026 +const NT_ARM_HW_WATCH = 1027 +const NT_ARM_PACA_KEYS = 1031 +const NT_ARM_PACG_KEYS = 1032 +const NT_ARM_PAC_ENABLED_KEYS = 1034 +const NT_ARM_PAC_MASK = 1030 +const NT_ARM_SVE = 1029 +const NT_ARM_SYSTEM_CALL = 1028 +const NT_ARM_TAGGED_ADDR_CTRL = 1033 +const NT_ARM_TLS = 1025 +const NT_ARM_VFP = 1024 +const NT_ASRS = 8 +const NT_AUXV = 6 +const NT_FILE = 1179208773 +const NT_FPREGSET = 2 +const NT_GNU_ABI_TAG = 1 +const NT_GNU_BUILD_ID = 3 +const NT_GNU_GOLD_VERSION = 4 +const NT_GNU_PROPERTY_TYPE_0 = 5 +const NT_GWINDOWS = 7 +const NT_LOONGARCH_CPUCFG = 2560 +const NT_LOONGARCH_CSR = 2561 +const NT_LOONGARCH_LASX = 2563 +const NT_LOONGARCH_LBT = 2564 +const NT_LOONGARCH_LSX = 2562 +const NT_LWPSINFO = 17 +const NT_LWPSTATUS = 16 +const NT_METAG_CBUF = 1280 +const NT_METAG_RPIPE = 1281 +const NT_METAG_TLS = 1282 +const NT_MIPS_DSP = 2048 +const NT_MIPS_FP_MODE = 2049 +const NT_MIPS_MSA = 2050 +const NT_PLATFORM = 5 +const NT_PPC_DSCR = 261 +const NT_PPC_EBB = 262 +const NT_PPC_PMU = 263 +const NT_PPC_PPR = 260 +const NT_PPC_SPE = 257 +const NT_PPC_TAR = 259 +const NT_PPC_TM_CDSCR = 271 +const NT_PPC_TM_CFPR = 265 +const NT_PPC_TM_CGPR = 264 +const NT_PPC_TM_CPPR = 270 +const NT_PPC_TM_CTAR = 269 +const NT_PPC_TM_CVMX = 266 +const NT_PPC_TM_CVSX = 267 +const NT_PPC_TM_SPR = 268 +const NT_PPC_VMX = 256 +const NT_PPC_VSX = 258 +const NT_PRCRED = 14 +const NT_PRFPREG = 2 +const NT_PRFPXREG = 20 +const NT_PRPSINFO = 3 +const NT_PRSTATUS = 1 +const NT_PRXFPREG = 1189489535 +const NT_PRXREG = 4 +const NT_PSINFO = 13 +const NT_PSTATUS = 10 +const NT_RISCV_CSR = 2304 +const NT_RISCV_VECTOR = 2305 +const NT_S390_CTRS = 772 +const NT_S390_GS_BC = 780 +const NT_S390_GS_CB = 779 +const NT_S390_HIGH_GPRS = 768 +const NT_S390_LAST_BREAK = 774 +const NT_S390_PREFIX = 773 +const NT_S390_RI_CB = 781 +const NT_S390_SYSTEM_CALL = 775 +const NT_S390_TDB = 776 +const NT_S390_TIMER = 769 +const NT_S390_TODCMP = 770 +const NT_S390_TODPREG = 771 +const NT_S390_VXRS_HIGH = 778 +const NT_S390_VXRS_LOW = 777 +const NT_SIGINFO = 1397311305 +const NT_TASKSTRUCT = 4 +const NT_UTSNAME = 15 +const NT_VERSION = 1 +const NT_VMCOREDD = 1792 +const NT_X86_XSTATE = 514 +const ODK_EXCEPTIONS = 2 +const ODK_FILL = 5 +const ODK_HWAND = 7 +const ODK_HWOR = 8 +const ODK_HWPATCH = 4 +const ODK_NULL = 0 +const ODK_PAD = 3 +const ODK_REGINFO = 1 +const ODK_TAGS = 6 +const OEX_DISMISS = 524288 +const OEX_FPDBUG = 262144 +const OEX_FPU_DIV0 = 8 +const OEX_FPU_INEX = 1 +const OEX_FPU_INVAL = 16 +const OEX_FPU_MAX = 7936 +const OEX_FPU_MIN = 31 +const OEX_FPU_OFLO = 4 +const OEX_FPU_UFLO = 2 +const OEX_PAGE0 = 65536 +const OEX_PRECISEFP = 262144 +const OEX_SMM = 131072 +const OHWA0_R4KEOP_CHECKED = 1 +const OHWA1_R4KEOP_CLEAN = 2 +const OHW_R4KEOP = 1 +const OHW_R5KCVTL = 8 +const OHW_R5KEOP = 4 +const OHW_R8KPFETCH = 2 +const OPAD_POSTFIX = 2 +const OPAD_PREFIX = 1 +const OPAD_SYMBOL = 4 +const PF_ARM_ABS = 1073741824 +const PF_ARM_PI = 536870912 +const PF_ARM_SB = 268435456 +const PF_HP_CODE = 16777216 +const PF_HP_FAR_SHARED = 2097152 +const PF_HP_LAZYSWAP = 67108864 +const PF_HP_MODIFY = 33554432 +const PF_HP_NEAR_SHARED = 4194304 +const PF_HP_PAGE_SIZE = 1048576 +const PF_HP_SBP = 134217728 +const PF_IA_64_NORECOV = 2147483648 +const PF_MASKOS = 267386880 +const PF_MASKPROC = 4026531840 +const PF_MIPS_LOCAL = 268435456 +const PF_PARISC_SBP = 134217728 +const PF_R = 4 +const PF_W = 2 +const PF_X = 1 +const PN_XNUM = 65535 +const POLL_ERR = 4 +const POLL_HUP = 6 +const POLL_IN = 1 +const POLL_MSG = 3 +const POLL_OUT = 2 +const POLL_PRI = 5 +const PPC64_OPT_LOCALENTRY = 4 +const PPC64_OPT_MULTI_TOC = 2 +const PPC64_OPT_TLS = 1 +const PPC_OPT_TLS = 1 +const PRIO_MAX = 20 +const PRIO_MIN = -20 +const PRIO_PGRP = 1 +const PRIO_PROCESS = 0 +const PRIO_USER = 2 +const PT_ARM_EXIDX = 1879048193 +const PT_DYNAMIC = 2 +const PT_GNU_EH_FRAME = 1685382480 +const PT_GNU_PROPERTY = 1685382483 +const PT_GNU_RELRO = 1685382482 +const PT_GNU_STACK = 1685382481 +const PT_HIOS = 1879048191 +const PT_HIPROC = 2147483647 +const PT_HISUNW = 1879048191 +const PT_HP_CORE_COMM = 1610612740 +const PT_HP_CORE_KERNEL = 1610612739 +const PT_HP_CORE_LOADABLE = 1610612742 +const PT_HP_CORE_MMF = 1610612745 +const PT_HP_CORE_NONE = 1610612737 +const PT_HP_CORE_PROC = 1610612741 +const PT_HP_CORE_SHM = 1610612744 +const PT_HP_CORE_STACK = 1610612743 +const PT_HP_CORE_VERSION = 1610612738 +const PT_HP_FASTBIND = 1610612753 +const PT_HP_HSL_ANNOT = 1610612755 +const PT_HP_OPT_ANNOT = 1610612754 +const PT_HP_PARALLEL = 1610612752 +const PT_HP_STACK = 1610612756 +const PT_HP_TLS = 1610612736 +const PT_IA_64_ARCHEXT = 1879048192 +const PT_IA_64_HP_HSL_ANOT = 1610612755 +const PT_IA_64_HP_OPT_ANOT = 1610612754 +const PT_IA_64_HP_STACK = 1610612756 +const PT_IA_64_UNWIND = 1879048193 +const PT_INTERP = 3 +const PT_LOAD = 1 +const PT_LOOS = 1610612736 +const PT_LOPROC = 1879048192 +const PT_LOSUNW = 1879048186 +const PT_MIPS_ABIFLAGS = 1879048195 +const PT_MIPS_OPTIONS = 1879048194 +const PT_MIPS_REGINFO = 1879048192 +const PT_MIPS_RTPROC = 1879048193 +const PT_NOTE = 4 +const PT_NULL = 0 +const PT_NUM = 8 +const PT_PARISC_ARCHEXT = 1879048192 +const PT_PARISC_UNWIND = 1879048193 +const PT_PHDR = 6 +const PT_SHLIB = 5 +const PT_SUNWBSS = 1879048186 +const PT_SUNWSTACK = 1879048187 +const PT_TLS = 7 +const RAND_MAX = 2147483647 +const RHF_CORD = 4096 +const RHF_DEFAULT_DELAY_LOAD = 512 +const RHF_DELTA_C_PLUS_PLUS = 64 +const RHF_GUARANTEE_INIT = 32 +const RHF_GUARANTEE_START_INIT = 128 +const RHF_NONE = 0 +const RHF_NOTPOT = 2 +const RHF_NO_LIBRARY_REPLACEMENT = 4 +const RHF_NO_MOVE = 8 +const RHF_NO_UNRES_UNDEF = 8192 +const RHF_PIXIE = 256 +const RHF_QUICKSTART = 1 +const RHF_REQUICKSTART = 1024 +const RHF_REQUICKSTARTED = 2048 +const RHF_RLD_ORDER_SAFE = 16384 +const RHF_SGI_ONLY = 16 +const RLIMIT_AS = 9 +const RLIMIT_CORE = 4 +const RLIMIT_CPU = 0 +const RLIMIT_DATA = 2 +const RLIMIT_FSIZE = 1 +const RLIMIT_LOCKS = 10 +const RLIMIT_MEMLOCK = 8 +const RLIMIT_MSGQUEUE = 12 +const RLIMIT_NICE = 13 +const RLIMIT_NLIMITS = 16 +const RLIMIT_NOFILE = 7 +const RLIMIT_NPROC = 6 +const RLIMIT_RSS = 5 +const RLIMIT_RTPRIO = 14 +const RLIMIT_RTTIME = 15 +const RLIMIT_SIGPENDING = 11 +const RLIMIT_STACK = 3 +const RLIM_INFINITY = 18446744073709551615 +const RLIM_NLIMITS = 16 +const RLIM_SAVED_CUR = 18446744073709551615 +const RLIM_SAVED_MAX = 18446744073709551615 +const RUSAGE_CHILDREN = -1 +const RUSAGE_SELF = 0 +const RUSAGE_THREAD = 1 +const R_386_16 = 20 +const R_386_32 = 1 +const R_386_32PLT = 11 +const R_386_8 = 22 +const R_386_COPY = 5 +const R_386_GLOB_DAT = 6 +const R_386_GOT32 = 3 +const R_386_GOT32X = 43 +const R_386_GOTOFF = 9 +const R_386_GOTPC = 10 +const R_386_IRELATIVE = 42 +const R_386_JMP_SLOT = 7 +const R_386_NONE = 0 +const R_386_NUM = 44 +const R_386_PC16 = 21 +const R_386_PC32 = 2 +const R_386_PC8 = 23 +const R_386_PLT32 = 4 +const R_386_RELATIVE = 8 +const R_386_SIZE32 = 38 +const R_386_TLS_DESC = 41 +const R_386_TLS_DESC_CALL = 40 +const R_386_TLS_DTPMOD32 = 35 +const R_386_TLS_DTPOFF32 = 36 +const R_386_TLS_GD = 18 +const R_386_TLS_GD_32 = 24 +const R_386_TLS_GD_CALL = 26 +const R_386_TLS_GD_POP = 27 +const R_386_TLS_GD_PUSH = 25 +const R_386_TLS_GOTDESC = 39 +const R_386_TLS_GOTIE = 16 +const R_386_TLS_IE = 15 +const R_386_TLS_IE_32 = 33 +const R_386_TLS_LDM = 19 +const R_386_TLS_LDM_32 = 28 +const R_386_TLS_LDM_CALL = 30 +const R_386_TLS_LDM_POP = 31 +const R_386_TLS_LDM_PUSH = 29 +const R_386_TLS_LDO_32 = 32 +const R_386_TLS_LE = 17 +const R_386_TLS_LE_32 = 34 +const R_386_TLS_TPOFF = 14 +const R_386_TLS_TPOFF32 = 37 +const R_390_12 = 2 +const R_390_16 = 3 +const R_390_20 = 57 +const R_390_32 = 4 +const R_390_64 = 22 +const R_390_8 = 1 +const R_390_COPY = 9 +const R_390_GLOB_DAT = 10 +const R_390_GOT12 = 6 +const R_390_GOT16 = 15 +const R_390_GOT20 = 58 +const R_390_GOT32 = 7 +const R_390_GOT64 = 24 +const R_390_GOTENT = 26 +const R_390_GOTOFF16 = 27 +const R_390_GOTOFF32 = 13 +const R_390_GOTOFF64 = 28 +const R_390_GOTPC = 14 +const R_390_GOTPCDBL = 21 +const R_390_GOTPLT12 = 29 +const R_390_GOTPLT16 = 30 +const R_390_GOTPLT20 = 59 +const R_390_GOTPLT32 = 31 +const R_390_GOTPLT64 = 32 +const R_390_GOTPLTENT = 33 +const R_390_JMP_SLOT = 11 +const R_390_NONE = 0 +const R_390_NUM = 61 +const R_390_PC16 = 16 +const R_390_PC16DBL = 17 +const R_390_PC32 = 5 +const R_390_PC32DBL = 19 +const R_390_PC64 = 23 +const R_390_PLT16DBL = 18 +const R_390_PLT32 = 8 +const R_390_PLT32DBL = 20 +const R_390_PLT64 = 25 +const R_390_PLTOFF16 = 34 +const R_390_PLTOFF32 = 35 +const R_390_PLTOFF64 = 36 +const R_390_RELATIVE = 12 +const R_390_TLS_DTPMOD = 54 +const R_390_TLS_DTPOFF = 55 +const R_390_TLS_GD32 = 40 +const R_390_TLS_GD64 = 41 +const R_390_TLS_GDCALL = 38 +const R_390_TLS_GOTIE12 = 42 +const R_390_TLS_GOTIE20 = 60 +const R_390_TLS_GOTIE32 = 43 +const R_390_TLS_GOTIE64 = 44 +const R_390_TLS_IE32 = 47 +const R_390_TLS_IE64 = 48 +const R_390_TLS_IEENT = 49 +const R_390_TLS_LDCALL = 39 +const R_390_TLS_LDM32 = 45 +const R_390_TLS_LDM64 = 46 +const R_390_TLS_LDO32 = 52 +const R_390_TLS_LDO64 = 53 +const R_390_TLS_LE32 = 50 +const R_390_TLS_LE64 = 51 +const R_390_TLS_LOAD = 37 +const R_390_TLS_TPOFF = 56 +const R_68K_16 = 2 +const R_68K_32 = 1 +const R_68K_8 = 3 +const R_68K_COPY = 19 +const R_68K_GLOB_DAT = 20 +const R_68K_GOT16 = 8 +const R_68K_GOT16O = 11 +const R_68K_GOT32 = 7 +const R_68K_GOT32O = 10 +const R_68K_GOT8 = 9 +const R_68K_GOT8O = 12 +const R_68K_JMP_SLOT = 21 +const R_68K_NONE = 0 +const R_68K_NUM = 43 +const R_68K_PC16 = 5 +const R_68K_PC32 = 4 +const R_68K_PC8 = 6 +const R_68K_PLT16 = 14 +const R_68K_PLT16O = 17 +const R_68K_PLT32 = 13 +const R_68K_PLT32O = 16 +const R_68K_PLT8 = 15 +const R_68K_PLT8O = 18 +const R_68K_RELATIVE = 22 +const R_68K_TLS_DTPMOD32 = 40 +const R_68K_TLS_DTPREL32 = 41 +const R_68K_TLS_GD16 = 26 +const R_68K_TLS_GD32 = 25 +const R_68K_TLS_GD8 = 27 +const R_68K_TLS_IE16 = 35 +const R_68K_TLS_IE32 = 34 +const R_68K_TLS_IE8 = 36 +const R_68K_TLS_LDM16 = 29 +const R_68K_TLS_LDM32 = 28 +const R_68K_TLS_LDM8 = 30 +const R_68K_TLS_LDO16 = 32 +const R_68K_TLS_LDO32 = 31 +const R_68K_TLS_LDO8 = 33 +const R_68K_TLS_LE16 = 38 +const R_68K_TLS_LE32 = 37 +const R_68K_TLS_LE8 = 39 +const R_68K_TLS_TPREL32 = 42 +const R_AARCH64_ABS16 = 259 +const R_AARCH64_ABS32 = 258 +const R_AARCH64_ABS64 = 257 +const R_AARCH64_ADD_ABS_LO12_NC = 277 +const R_AARCH64_ADR_GOT_PAGE = 311 +const R_AARCH64_ADR_PREL_LO21 = 274 +const R_AARCH64_ADR_PREL_PG_HI21 = 275 +const R_AARCH64_ADR_PREL_PG_HI21_NC = 276 +const R_AARCH64_CALL26 = 283 +const R_AARCH64_CONDBR19 = 280 +const R_AARCH64_COPY = 1024 +const R_AARCH64_GLOB_DAT = 1025 +const R_AARCH64_GOTREL32 = 308 +const R_AARCH64_GOTREL64 = 307 +const R_AARCH64_GOT_LD_PREL19 = 309 +const R_AARCH64_JUMP26 = 282 +const R_AARCH64_JUMP_SLOT = 1026 +const R_AARCH64_LD64_GOTOFF_LO15 = 310 +const R_AARCH64_LD64_GOTPAGE_LO15 = 313 +const R_AARCH64_LD64_GOT_LO12_NC = 312 +const R_AARCH64_LDST128_ABS_LO12_NC = 299 +const R_AARCH64_LDST16_ABS_LO12_NC = 284 +const R_AARCH64_LDST32_ABS_LO12_NC = 285 +const R_AARCH64_LDST64_ABS_LO12_NC = 286 +const R_AARCH64_LDST8_ABS_LO12_NC = 278 +const R_AARCH64_LD_PREL_LO19 = 273 +const R_AARCH64_MOVW_GOTOFF_G0 = 300 +const R_AARCH64_MOVW_GOTOFF_G0_NC = 301 +const R_AARCH64_MOVW_GOTOFF_G1 = 302 +const R_AARCH64_MOVW_GOTOFF_G1_NC = 303 +const R_AARCH64_MOVW_GOTOFF_G2 = 304 +const R_AARCH64_MOVW_GOTOFF_G2_NC = 305 +const R_AARCH64_MOVW_GOTOFF_G3 = 306 +const R_AARCH64_MOVW_PREL_G0 = 287 +const R_AARCH64_MOVW_PREL_G0_NC = 288 +const R_AARCH64_MOVW_PREL_G1 = 289 +const R_AARCH64_MOVW_PREL_G1_NC = 290 +const R_AARCH64_MOVW_PREL_G2 = 291 +const R_AARCH64_MOVW_PREL_G2_NC = 292 +const R_AARCH64_MOVW_PREL_G3 = 293 +const R_AARCH64_MOVW_SABS_G0 = 270 +const R_AARCH64_MOVW_SABS_G1 = 271 +const R_AARCH64_MOVW_SABS_G2 = 272 +const R_AARCH64_MOVW_UABS_G0 = 263 +const R_AARCH64_MOVW_UABS_G0_NC = 264 +const R_AARCH64_MOVW_UABS_G1 = 265 +const R_AARCH64_MOVW_UABS_G1_NC = 266 +const R_AARCH64_MOVW_UABS_G2 = 267 +const R_AARCH64_MOVW_UABS_G2_NC = 268 +const R_AARCH64_MOVW_UABS_G3 = 269 +const R_AARCH64_NONE = 0 +const R_AARCH64_P32_ABS32 = 1 +const R_AARCH64_P32_COPY = 180 +const R_AARCH64_P32_GLOB_DAT = 181 +const R_AARCH64_P32_IRELATIVE = 188 +const R_AARCH64_P32_JUMP_SLOT = 182 +const R_AARCH64_P32_RELATIVE = 183 +const R_AARCH64_P32_TLSDESC = 187 +const R_AARCH64_P32_TLS_DTPMOD = 184 +const R_AARCH64_P32_TLS_DTPREL = 185 +const R_AARCH64_P32_TLS_TPREL = 186 +const R_AARCH64_PREL16 = 262 +const R_AARCH64_PREL32 = 261 +const R_AARCH64_PREL64 = 260 +const R_AARCH64_RELATIVE = 1027 +const R_AARCH64_TLSDESC = 1031 +const R_AARCH64_TLSDESC_ADD = 568 +const R_AARCH64_TLSDESC_ADD_LO12 = 564 +const R_AARCH64_TLSDESC_ADR_PAGE21 = 562 +const R_AARCH64_TLSDESC_ADR_PREL21 = 561 +const R_AARCH64_TLSDESC_CALL = 569 +const R_AARCH64_TLSDESC_LD64_LO12 = 563 +const R_AARCH64_TLSDESC_LDR = 567 +const R_AARCH64_TLSDESC_LD_PREL19 = 560 +const R_AARCH64_TLSDESC_OFF_G0_NC = 566 +const R_AARCH64_TLSDESC_OFF_G1 = 565 +const R_AARCH64_TLSGD_ADD_LO12_NC = 514 +const R_AARCH64_TLSGD_ADR_PAGE21 = 513 +const R_AARCH64_TLSGD_ADR_PREL21 = 512 +const R_AARCH64_TLSGD_MOVW_G0_NC = 516 +const R_AARCH64_TLSGD_MOVW_G1 = 515 +const R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21 = 541 +const R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC = 542 +const R_AARCH64_TLSIE_LD_GOTTPREL_PREL19 = 543 +const R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC = 540 +const R_AARCH64_TLSIE_MOVW_GOTTPREL_G1 = 539 +const R_AARCH64_TLSLD_ADD_DTPREL_HI12 = 528 +const R_AARCH64_TLSLD_ADD_DTPREL_LO12 = 529 +const R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC = 530 +const R_AARCH64_TLSLD_ADD_LO12_NC = 519 +const R_AARCH64_TLSLD_ADR_PAGE21 = 518 +const R_AARCH64_TLSLD_ADR_PREL21 = 517 +const R_AARCH64_TLSLD_LDST128_DTPREL_LO12 = 572 +const R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC = 573 +const R_AARCH64_TLSLD_LDST16_DTPREL_LO12 = 533 +const R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC = 534 +const R_AARCH64_TLSLD_LDST32_DTPREL_LO12 = 535 +const R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC = 536 +const R_AARCH64_TLSLD_LDST64_DTPREL_LO12 = 537 +const R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC = 538 +const R_AARCH64_TLSLD_LDST8_DTPREL_LO12 = 531 +const R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC = 532 +const R_AARCH64_TLSLD_LD_PREL19 = 522 +const R_AARCH64_TLSLD_MOVW_DTPREL_G0 = 526 +const R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC = 527 +const R_AARCH64_TLSLD_MOVW_DTPREL_G1 = 524 +const R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC = 525 +const R_AARCH64_TLSLD_MOVW_DTPREL_G2 = 523 +const R_AARCH64_TLSLD_MOVW_G0_NC = 521 +const R_AARCH64_TLSLD_MOVW_G1 = 520 +const R_AARCH64_TLSLE_ADD_TPREL_HI12 = 549 +const R_AARCH64_TLSLE_ADD_TPREL_LO12 = 550 +const R_AARCH64_TLSLE_ADD_TPREL_LO12_NC = 551 +const R_AARCH64_TLSLE_LDST128_TPREL_LO12 = 570 +const R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC = 571 +const R_AARCH64_TLSLE_LDST16_TPREL_LO12 = 554 +const R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC = 555 +const R_AARCH64_TLSLE_LDST32_TPREL_LO12 = 556 +const R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC = 557 +const R_AARCH64_TLSLE_LDST64_TPREL_LO12 = 558 +const R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC = 559 +const R_AARCH64_TLSLE_LDST8_TPREL_LO12 = 552 +const R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC = 553 +const R_AARCH64_TLSLE_MOVW_TPREL_G0 = 547 +const R_AARCH64_TLSLE_MOVW_TPREL_G0_NC = 548 +const R_AARCH64_TLSLE_MOVW_TPREL_G1 = 545 +const R_AARCH64_TLSLE_MOVW_TPREL_G1_NC = 546 +const R_AARCH64_TLSLE_MOVW_TPREL_G2 = 544 +const R_AARCH64_TLS_DTPMOD = 1028 +const R_AARCH64_TLS_DTPMOD64 = 1028 +const R_AARCH64_TLS_DTPREL = 1029 +const R_AARCH64_TLS_DTPREL64 = 1029 +const R_AARCH64_TLS_TPREL = 1030 +const R_AARCH64_TLS_TPREL64 = 1030 +const R_AARCH64_TSTBR14 = 279 +const R_ALPHA_BRADDR = 7 +const R_ALPHA_COPY = 24 +const R_ALPHA_DTPMOD64 = 31 +const R_ALPHA_DTPREL16 = 36 +const R_ALPHA_DTPREL64 = 33 +const R_ALPHA_DTPRELHI = 34 +const R_ALPHA_DTPRELLO = 35 +const R_ALPHA_GLOB_DAT = 25 +const R_ALPHA_GOTDTPREL = 32 +const R_ALPHA_GOTTPREL = 37 +const R_ALPHA_GPDISP = 6 +const R_ALPHA_GPREL16 = 19 +const R_ALPHA_GPREL32 = 3 +const R_ALPHA_GPRELHIGH = 17 +const R_ALPHA_GPRELLOW = 18 +const R_ALPHA_HINT = 8 +const R_ALPHA_JMP_SLOT = 26 +const R_ALPHA_LITERAL = 4 +const R_ALPHA_LITUSE = 5 +const R_ALPHA_NONE = 0 +const R_ALPHA_NUM = 46 +const R_ALPHA_REFLONG = 1 +const R_ALPHA_REFQUAD = 2 +const R_ALPHA_RELATIVE = 27 +const R_ALPHA_SREL16 = 9 +const R_ALPHA_SREL32 = 10 +const R_ALPHA_SREL64 = 11 +const R_ALPHA_TLSGD = 29 +const R_ALPHA_TLS_GD_HI = 28 +const R_ALPHA_TLS_LDM = 30 +const R_ALPHA_TPREL16 = 41 +const R_ALPHA_TPREL64 = 38 +const R_ALPHA_TPRELHI = 39 +const R_ALPHA_TPRELLO = 40 +const R_ARM_ABS12 = 6 +const R_ARM_ABS16 = 5 +const R_ARM_ABS32 = 2 +const R_ARM_ABS32_NOI = 55 +const R_ARM_ABS8 = 8 +const R_ARM_ALU_PCREL_15_8 = 33 +const R_ARM_ALU_PCREL_23_15 = 34 +const R_ARM_ALU_PCREL_7_0 = 32 +const R_ARM_ALU_PC_G0 = 58 +const R_ARM_ALU_PC_G0_NC = 57 +const R_ARM_ALU_PC_G1 = 60 +const R_ARM_ALU_PC_G1_NC = 59 +const R_ARM_ALU_PC_G2 = 61 +const R_ARM_ALU_SBREL_19_12 = 36 +const R_ARM_ALU_SBREL_27_20 = 37 +const R_ARM_ALU_SB_G0 = 71 +const R_ARM_ALU_SB_G0_NC = 70 +const R_ARM_ALU_SB_G1 = 73 +const R_ARM_ALU_SB_G1_NC = 72 +const R_ARM_ALU_SB_G2 = 74 +const R_ARM_AMP_VCALL9 = 12 +const R_ARM_BASE_ABS = 31 +const R_ARM_CALL = 28 +const R_ARM_COPY = 20 +const R_ARM_GLOB_DAT = 21 +const R_ARM_GNU_VTENTRY = 100 +const R_ARM_GNU_VTINHERIT = 101 +const R_ARM_GOT32 = 26 +const R_ARM_GOTOFF = 24 +const R_ARM_GOTOFF12 = 98 +const R_ARM_GOTPC = 25 +const R_ARM_GOTRELAX = 99 +const R_ARM_GOT_ABS = 95 +const R_ARM_GOT_BREL12 = 97 +const R_ARM_GOT_PREL = 96 +const R_ARM_IRELATIVE = 160 +const R_ARM_JUMP24 = 29 +const R_ARM_JUMP_SLOT = 22 +const R_ARM_LDC_PC_G0 = 67 +const R_ARM_LDC_PC_G1 = 68 +const R_ARM_LDC_PC_G2 = 69 +const R_ARM_LDC_SB_G0 = 81 +const R_ARM_LDC_SB_G1 = 82 +const R_ARM_LDC_SB_G2 = 83 +const R_ARM_LDRS_PC_G0 = 64 +const R_ARM_LDRS_PC_G1 = 65 +const R_ARM_LDRS_PC_G2 = 66 +const R_ARM_LDRS_SB_G0 = 78 +const R_ARM_LDRS_SB_G1 = 79 +const R_ARM_LDRS_SB_G2 = 80 +const R_ARM_LDR_PC_G1 = 62 +const R_ARM_LDR_PC_G2 = 63 +const R_ARM_LDR_SBREL_11_0 = 35 +const R_ARM_LDR_SB_G0 = 75 +const R_ARM_LDR_SB_G1 = 76 +const R_ARM_LDR_SB_G2 = 77 +const R_ARM_ME_TOO = 128 +const R_ARM_MOVT_ABS = 44 +const R_ARM_MOVT_BREL = 85 +const R_ARM_MOVT_PREL = 46 +const R_ARM_MOVW_ABS_NC = 43 +const R_ARM_MOVW_BREL = 86 +const R_ARM_MOVW_BREL_NC = 84 +const R_ARM_MOVW_PREL_NC = 45 +const R_ARM_NONE = 0 +const R_ARM_NUM = 256 +const R_ARM_PC13 = 4 +const R_ARM_PC24 = 1 +const R_ARM_PLT32 = 27 +const R_ARM_PLT32_ABS = 94 +const R_ARM_PREL31 = 42 +const R_ARM_RABS22 = 253 +const R_ARM_RBASE = 255 +const R_ARM_REL32 = 3 +const R_ARM_REL32_NOI = 56 +const R_ARM_RELATIVE = 23 +const R_ARM_RPC24 = 254 +const R_ARM_RREL32 = 252 +const R_ARM_RSBREL32 = 250 +const R_ARM_RXPC25 = 249 +const R_ARM_SBREL31 = 39 +const R_ARM_SBREL32 = 9 +const R_ARM_TARGET1 = 38 +const R_ARM_TARGET2 = 41 +const R_ARM_THM_ABS5 = 7 +const R_ARM_THM_ALU_PREL_11_0 = 53 +const R_ARM_THM_GOT_BREL12 = 131 +const R_ARM_THM_JUMP19 = 51 +const R_ARM_THM_JUMP24 = 30 +const R_ARM_THM_JUMP6 = 52 +const R_ARM_THM_MOVT_ABS = 48 +const R_ARM_THM_MOVT_BREL = 88 +const R_ARM_THM_MOVT_PREL = 50 +const R_ARM_THM_MOVW_ABS_NC = 47 +const R_ARM_THM_MOVW_BREL = 89 +const R_ARM_THM_MOVW_BREL_NC = 87 +const R_ARM_THM_MOVW_PREL_NC = 49 +const R_ARM_THM_PC11 = 102 +const R_ARM_THM_PC12 = 54 +const R_ARM_THM_PC22 = 10 +const R_ARM_THM_PC8 = 11 +const R_ARM_THM_PC9 = 103 +const R_ARM_THM_RPC22 = 251 +const R_ARM_THM_SWI8 = 14 +const R_ARM_THM_TLS_CALL = 93 +const R_ARM_THM_TLS_DESCSEQ = 129 +const R_ARM_THM_TLS_DESCSEQ16 = 129 +const R_ARM_THM_TLS_DESCSEQ32 = 130 +const R_ARM_THM_XPC22 = 16 +const R_ARM_TLS_CALL = 91 +const R_ARM_TLS_DESC = 13 +const R_ARM_TLS_DESCSEQ = 92 +const R_ARM_TLS_DTPMOD32 = 17 +const R_ARM_TLS_DTPOFF32 = 18 +const R_ARM_TLS_GD32 = 104 +const R_ARM_TLS_GOTDESC = 90 +const R_ARM_TLS_IE12GP = 111 +const R_ARM_TLS_IE32 = 107 +const R_ARM_TLS_LDM32 = 105 +const R_ARM_TLS_LDO12 = 109 +const R_ARM_TLS_LDO32 = 106 +const R_ARM_TLS_LE12 = 110 +const R_ARM_TLS_LE32 = 108 +const R_ARM_TLS_TPOFF32 = 19 +const R_ARM_V4BX = 40 +const R_ARM_XPC25 = 15 +const R_BPF_MAP_FD = 1 +const R_BPF_NONE = 0 +const R_CKCORE_ADDR32 = 1 +const R_CKCORE_ADDRGOT = 17 +const R_CKCORE_ADDRGOT_HI16 = 36 +const R_CKCORE_ADDRGOT_LO16 = 37 +const R_CKCORE_ADDRPLT = 18 +const R_CKCORE_ADDRPLT_HI16 = 38 +const R_CKCORE_ADDRPLT_LO16 = 39 +const R_CKCORE_ADDR_HI16 = 24 +const R_CKCORE_ADDR_LO16 = 25 +const R_CKCORE_COPY = 10 +const R_CKCORE_DOFFSET_IMM18 = 44 +const R_CKCORE_DOFFSET_IMM18BY2 = 45 +const R_CKCORE_DOFFSET_IMM18BY4 = 46 +const R_CKCORE_DOFFSET_LO16 = 42 +const R_CKCORE_GLOB_DAT = 11 +const R_CKCORE_GOT12 = 30 +const R_CKCORE_GOT32 = 15 +const R_CKCORE_GOTOFF = 13 +const R_CKCORE_GOTOFF_HI16 = 28 +const R_CKCORE_GOTOFF_LO16 = 29 +const R_CKCORE_GOTPC = 14 +const R_CKCORE_GOTPC_HI16 = 26 +const R_CKCORE_GOTPC_LO16 = 27 +const R_CKCORE_GOT_HI16 = 31 +const R_CKCORE_GOT_IMM18BY4 = 48 +const R_CKCORE_GOT_LO16 = 32 +const R_CKCORE_JUMP_SLOT = 12 +const R_CKCORE_NONE = 0 +const R_CKCORE_PCREL32 = 5 +const R_CKCORE_PCRELIMM11BY2 = 3 +const R_CKCORE_PCRELIMM8BY4 = 2 +const R_CKCORE_PCRELJSR_IMM11BY2 = 6 +const R_CKCORE_PCREL_IMM10BY2 = 22 +const R_CKCORE_PCREL_IMM10BY4 = 23 +const R_CKCORE_PCREL_IMM16BY2 = 20 +const R_CKCORE_PCREL_IMM16BY4 = 21 +const R_CKCORE_PCREL_IMM18BY2 = 43 +const R_CKCORE_PCREL_IMM26BY2 = 19 +const R_CKCORE_PCREL_IMM7BY4 = 50 +const R_CKCORE_PCREL_JSR_IMM26BY2 = 40 +const R_CKCORE_PLT12 = 33 +const R_CKCORE_PLT32 = 16 +const R_CKCORE_PLT_HI16 = 34 +const R_CKCORE_PLT_IMM18BY4 = 49 +const R_CKCORE_PLT_LO16 = 35 +const R_CKCORE_RELATIVE = 9 +const R_CKCORE_TLS_DTPMOD32 = 56 +const R_CKCORE_TLS_DTPOFF32 = 57 +const R_CKCORE_TLS_GD32 = 53 +const R_CKCORE_TLS_IE32 = 52 +const R_CKCORE_TLS_LDM32 = 54 +const R_CKCORE_TLS_LDO32 = 55 +const R_CKCORE_TLS_LE32 = 51 +const R_CKCORE_TLS_TPOFF32 = 58 +const R_CKCORE_TOFFSET_LO16 = 41 +const R_CRIS_16 = 2 +const R_CRIS_16_GOT = 13 +const R_CRIS_16_GOTPLT = 15 +const R_CRIS_16_PCREL = 5 +const R_CRIS_32 = 3 +const R_CRIS_32_GOT = 14 +const R_CRIS_32_GOTPLT = 16 +const R_CRIS_32_GOTREL = 17 +const R_CRIS_32_PCREL = 6 +const R_CRIS_32_PLT_GOTREL = 18 +const R_CRIS_32_PLT_PCREL = 19 +const R_CRIS_8 = 1 +const R_CRIS_8_PCREL = 4 +const R_CRIS_COPY = 9 +const R_CRIS_GLOB_DAT = 10 +const R_CRIS_GNU_VTENTRY = 8 +const R_CRIS_GNU_VTINHERIT = 7 +const R_CRIS_JUMP_SLOT = 11 +const R_CRIS_NONE = 0 +const R_CRIS_NUM = 20 +const R_CRIS_RELATIVE = 12 +const R_IA64_COPY = 132 +const R_IA64_DIR32LSB = 37 +const R_IA64_DIR32MSB = 36 +const R_IA64_DIR64LSB = 39 +const R_IA64_DIR64MSB = 38 +const R_IA64_DTPMOD64LSB = 167 +const R_IA64_DTPMOD64MSB = 166 +const R_IA64_DTPREL14 = 177 +const R_IA64_DTPREL22 = 178 +const R_IA64_DTPREL32LSB = 181 +const R_IA64_DTPREL32MSB = 180 +const R_IA64_DTPREL64I = 179 +const R_IA64_DTPREL64LSB = 183 +const R_IA64_DTPREL64MSB = 182 +const R_IA64_FPTR32LSB = 69 +const R_IA64_FPTR32MSB = 68 +const R_IA64_FPTR64I = 67 +const R_IA64_FPTR64LSB = 71 +const R_IA64_FPTR64MSB = 70 +const R_IA64_GPREL22 = 42 +const R_IA64_GPREL32LSB = 45 +const R_IA64_GPREL32MSB = 44 +const R_IA64_GPREL64I = 43 +const R_IA64_GPREL64LSB = 47 +const R_IA64_GPREL64MSB = 46 +const R_IA64_IMM14 = 33 +const R_IA64_IMM22 = 34 +const R_IA64_IMM64 = 35 +const R_IA64_IPLTLSB = 129 +const R_IA64_IPLTMSB = 128 +const R_IA64_LDXMOV = 135 +const R_IA64_LTOFF22 = 50 +const R_IA64_LTOFF22X = 134 +const R_IA64_LTOFF64I = 51 +const R_IA64_LTOFF_DTPMOD22 = 170 +const R_IA64_LTOFF_DTPREL22 = 186 +const R_IA64_LTOFF_FPTR22 = 82 +const R_IA64_LTOFF_FPTR32LSB = 85 +const R_IA64_LTOFF_FPTR32MSB = 84 +const R_IA64_LTOFF_FPTR64I = 83 +const R_IA64_LTOFF_FPTR64LSB = 87 +const R_IA64_LTOFF_FPTR64MSB = 86 +const R_IA64_LTOFF_TPREL22 = 154 +const R_IA64_LTV32LSB = 117 +const R_IA64_LTV32MSB = 116 +const R_IA64_LTV64LSB = 119 +const R_IA64_LTV64MSB = 118 +const R_IA64_NONE = 0 +const R_IA64_PCREL21B = 73 +const R_IA64_PCREL21BI = 121 +const R_IA64_PCREL21F = 75 +const R_IA64_PCREL21M = 74 +const R_IA64_PCREL22 = 122 +const R_IA64_PCREL32LSB = 77 +const R_IA64_PCREL32MSB = 76 +const R_IA64_PCREL60B = 72 +const R_IA64_PCREL64I = 123 +const R_IA64_PCREL64LSB = 79 +const R_IA64_PCREL64MSB = 78 +const R_IA64_PLTOFF22 = 58 +const R_IA64_PLTOFF64I = 59 +const R_IA64_PLTOFF64LSB = 63 +const R_IA64_PLTOFF64MSB = 62 +const R_IA64_REL32LSB = 109 +const R_IA64_REL32MSB = 108 +const R_IA64_REL64LSB = 111 +const R_IA64_REL64MSB = 110 +const R_IA64_SECREL32LSB = 101 +const R_IA64_SECREL32MSB = 100 +const R_IA64_SECREL64LSB = 103 +const R_IA64_SECREL64MSB = 102 +const R_IA64_SEGREL32LSB = 93 +const R_IA64_SEGREL32MSB = 92 +const R_IA64_SEGREL64LSB = 95 +const R_IA64_SEGREL64MSB = 94 +const R_IA64_SUB = 133 +const R_IA64_TPREL14 = 145 +const R_IA64_TPREL22 = 146 +const R_IA64_TPREL64I = 147 +const R_IA64_TPREL64LSB = 151 +const R_IA64_TPREL64MSB = 150 +const R_LARCH_32 = 1 +const R_LARCH_32_PCREL = 99 +const R_LARCH_64 = 2 +const R_LARCH_ABS64_HI12 = 70 +const R_LARCH_ABS64_LO20 = 69 +const R_LARCH_ABS_HI20 = 67 +const R_LARCH_ABS_LO12 = 68 +const R_LARCH_ADD16 = 48 +const R_LARCH_ADD24 = 49 +const R_LARCH_ADD32 = 50 +const R_LARCH_ADD64 = 51 +const R_LARCH_ADD8 = 47 +const R_LARCH_B16 = 64 +const R_LARCH_B21 = 65 +const R_LARCH_B26 = 66 +const R_LARCH_COPY = 4 +const R_LARCH_GNU_VTENTRY = 58 +const R_LARCH_GNU_VTINHERIT = 57 +const R_LARCH_GOT64_HI12 = 82 +const R_LARCH_GOT64_LO20 = 81 +const R_LARCH_GOT64_PC_HI12 = 78 +const R_LARCH_GOT64_PC_LO20 = 77 +const R_LARCH_GOT_HI20 = 79 +const R_LARCH_GOT_LO12 = 80 +const R_LARCH_GOT_PC_HI20 = 75 +const R_LARCH_GOT_PC_LO12 = 76 +const R_LARCH_IRELATIVE = 12 +const R_LARCH_JUMP_SLOT = 5 +const R_LARCH_MARK_LA = 20 +const R_LARCH_MARK_PCREL = 21 +const R_LARCH_NONE = 0 +const R_LARCH_PCALA64_HI12 = 74 +const R_LARCH_PCALA64_LO20 = 73 +const R_LARCH_PCALA_HI20 = 71 +const R_LARCH_PCALA_LO12 = 72 +const R_LARCH_RELATIVE = 3 +const R_LARCH_RELAX = 100 +const R_LARCH_SOP_ADD = 35 +const R_LARCH_SOP_AND = 36 +const R_LARCH_SOP_ASSERT = 30 +const R_LARCH_SOP_IF_ELSE = 37 +const R_LARCH_SOP_NOT = 31 +const R_LARCH_SOP_POP_32_S_0_10_10_16_S2 = 45 +const R_LARCH_SOP_POP_32_S_0_5_10_16_S2 = 44 +const R_LARCH_SOP_POP_32_S_10_12 = 40 +const R_LARCH_SOP_POP_32_S_10_16 = 41 +const R_LARCH_SOP_POP_32_S_10_16_S2 = 42 +const R_LARCH_SOP_POP_32_S_10_5 = 38 +const R_LARCH_SOP_POP_32_S_5_20 = 43 +const R_LARCH_SOP_POP_32_U = 46 +const R_LARCH_SOP_POP_32_U_10_12 = 39 +const R_LARCH_SOP_PUSH_ABSOLUTE = 23 +const R_LARCH_SOP_PUSH_DUP = 24 +const R_LARCH_SOP_PUSH_GPREL = 25 +const R_LARCH_SOP_PUSH_PCREL = 22 +const R_LARCH_SOP_PUSH_PLT_PCREL = 29 +const R_LARCH_SOP_PUSH_TLS_GD = 28 +const R_LARCH_SOP_PUSH_TLS_GOT = 27 +const R_LARCH_SOP_PUSH_TLS_TPREL = 26 +const R_LARCH_SOP_SL = 33 +const R_LARCH_SOP_SR = 34 +const R_LARCH_SOP_SUB = 32 +const R_LARCH_SUB16 = 53 +const R_LARCH_SUB24 = 54 +const R_LARCH_SUB32 = 55 +const R_LARCH_SUB64 = 56 +const R_LARCH_SUB8 = 52 +const R_LARCH_TLS_DTPMOD32 = 6 +const R_LARCH_TLS_DTPMOD64 = 7 +const R_LARCH_TLS_DTPREL32 = 8 +const R_LARCH_TLS_DTPREL64 = 9 +const R_LARCH_TLS_GD_HI20 = 98 +const R_LARCH_TLS_GD_PC_HI20 = 97 +const R_LARCH_TLS_IE64_HI12 = 94 +const R_LARCH_TLS_IE64_LO20 = 93 +const R_LARCH_TLS_IE64_PC_HI12 = 90 +const R_LARCH_TLS_IE64_PC_LO20 = 89 +const R_LARCH_TLS_IE_HI20 = 91 +const R_LARCH_TLS_IE_LO12 = 92 +const R_LARCH_TLS_IE_PC_HI20 = 87 +const R_LARCH_TLS_IE_PC_LO12 = 88 +const R_LARCH_TLS_LD_HI20 = 96 +const R_LARCH_TLS_LD_PC_HI20 = 95 +const R_LARCH_TLS_LE64_HI12 = 86 +const R_LARCH_TLS_LE64_LO20 = 85 +const R_LARCH_TLS_LE_HI20 = 83 +const R_LARCH_TLS_LE_LO12 = 84 +const R_LARCH_TLS_TPREL32 = 10 +const R_LARCH_TLS_TPREL64 = 11 +const R_M32R_10_PCREL = 4 +const R_M32R_10_PCREL_RELA = 36 +const R_M32R_16 = 1 +const R_M32R_16_RELA = 33 +const R_M32R_18_PCREL = 5 +const R_M32R_18_PCREL_RELA = 37 +const R_M32R_24 = 3 +const R_M32R_24_RELA = 35 +const R_M32R_26_PCREL = 6 +const R_M32R_26_PCREL_RELA = 38 +const R_M32R_26_PLTREL = 49 +const R_M32R_32 = 2 +const R_M32R_32_RELA = 34 +const R_M32R_COPY = 50 +const R_M32R_GLOB_DAT = 51 +const R_M32R_GNU_VTENTRY = 12 +const R_M32R_GNU_VTINHERIT = 11 +const R_M32R_GOT16_HI_SLO = 57 +const R_M32R_GOT16_HI_ULO = 56 +const R_M32R_GOT16_LO = 58 +const R_M32R_GOT24 = 48 +const R_M32R_GOTOFF = 54 +const R_M32R_GOTOFF_HI_SLO = 63 +const R_M32R_GOTOFF_HI_ULO = 62 +const R_M32R_GOTOFF_LO = 64 +const R_M32R_GOTPC24 = 55 +const R_M32R_GOTPC_HI_SLO = 60 +const R_M32R_GOTPC_HI_ULO = 59 +const R_M32R_GOTPC_LO = 61 +const R_M32R_HI16_SLO = 8 +const R_M32R_HI16_SLO_RELA = 40 +const R_M32R_HI16_ULO = 7 +const R_M32R_HI16_ULO_RELA = 39 +const R_M32R_JMP_SLOT = 52 +const R_M32R_LO16 = 9 +const R_M32R_LO16_RELA = 41 +const R_M32R_NONE = 0 +const R_M32R_NUM = 256 +const R_M32R_REL32 = 45 +const R_M32R_RELATIVE = 53 +const R_M32R_RELA_GNU_VTENTRY = 44 +const R_M32R_RELA_GNU_VTINHERIT = 43 +const R_M32R_SDA16 = 10 +const R_M32R_SDA16_RELA = 42 +const R_MICROBLAZE_32 = 1 +const R_MICROBLAZE_32_LO = 6 +const R_MICROBLAZE_32_PCREL = 2 +const R_MICROBLAZE_32_PCREL_LO = 4 +const R_MICROBLAZE_32_SYM_OP_SYM = 10 +const R_MICROBLAZE_64 = 5 +const R_MICROBLAZE_64_NONE = 9 +const R_MICROBLAZE_64_PCREL = 3 +const R_MICROBLAZE_COPY = 21 +const R_MICROBLAZE_GLOB_DAT = 18 +const R_MICROBLAZE_GNU_VTENTRY = 12 +const R_MICROBLAZE_GNU_VTINHERIT = 11 +const R_MICROBLAZE_GOTOFF_32 = 20 +const R_MICROBLAZE_GOTOFF_64 = 19 +const R_MICROBLAZE_GOTPC_64 = 13 +const R_MICROBLAZE_GOT_64 = 14 +const R_MICROBLAZE_JUMP_SLOT = 17 +const R_MICROBLAZE_NONE = 0 +const R_MICROBLAZE_PLT_64 = 15 +const R_MICROBLAZE_REL = 16 +const R_MICROBLAZE_SRO32 = 7 +const R_MICROBLAZE_SRW32 = 8 +const R_MICROBLAZE_TLS = 22 +const R_MICROBLAZE_TLSDTPMOD32 = 25 +const R_MICROBLAZE_TLSDTPREL32 = 26 +const R_MICROBLAZE_TLSDTPREL64 = 27 +const R_MICROBLAZE_TLSGD = 23 +const R_MICROBLAZE_TLSGOTTPREL32 = 28 +const R_MICROBLAZE_TLSLD = 24 +const R_MICROBLAZE_TLSTPREL32 = 29 +const R_MIPS_16 = 1 +const R_MIPS_26 = 4 +const R_MIPS_32 = 2 +const R_MIPS_64 = 18 +const R_MIPS_ADD_IMMEDIATE = 34 +const R_MIPS_CALL16 = 11 +const R_MIPS_CALL_HI16 = 30 +const R_MIPS_CALL_LO16 = 31 +const R_MIPS_COPY = 126 +const R_MIPS_DELETE = 27 +const R_MIPS_GLOB_DAT = 51 +const R_MIPS_GOT16 = 9 +const R_MIPS_GOT_DISP = 19 +const R_MIPS_GOT_HI16 = 22 +const R_MIPS_GOT_LO16 = 23 +const R_MIPS_GOT_OFST = 21 +const R_MIPS_GOT_PAGE = 20 +const R_MIPS_GPREL16 = 7 +const R_MIPS_GPREL32 = 12 +const R_MIPS_HI16 = 5 +const R_MIPS_HIGHER = 28 +const R_MIPS_HIGHEST = 29 +const R_MIPS_INSERT_A = 25 +const R_MIPS_INSERT_B = 26 +const R_MIPS_JALR = 37 +const R_MIPS_JUMP_SLOT = 127 +const R_MIPS_LITERAL = 8 +const R_MIPS_LO16 = 6 +const R_MIPS_NONE = 0 +const R_MIPS_NUM = 128 +const R_MIPS_PC16 = 10 +const R_MIPS_PJUMP = 35 +const R_MIPS_REL16 = 33 +const R_MIPS_REL32 = 3 +const R_MIPS_RELGOT = 36 +const R_MIPS_SCN_DISP = 32 +const R_MIPS_SHIFT5 = 16 +const R_MIPS_SHIFT6 = 17 +const R_MIPS_SUB = 24 +const R_MIPS_TLS_DTPMOD32 = 38 +const R_MIPS_TLS_DTPMOD64 = 40 +const R_MIPS_TLS_DTPREL32 = 39 +const R_MIPS_TLS_DTPREL64 = 41 +const R_MIPS_TLS_DTPREL_HI16 = 44 +const R_MIPS_TLS_DTPREL_LO16 = 45 +const R_MIPS_TLS_GD = 42 +const R_MIPS_TLS_GOTTPREL = 46 +const R_MIPS_TLS_LDM = 43 +const R_MIPS_TLS_TPREL32 = 47 +const R_MIPS_TLS_TPREL64 = 48 +const R_MIPS_TLS_TPREL_HI16 = 49 +const R_MIPS_TLS_TPREL_LO16 = 50 +const R_MN10300_16 = 2 +const R_MN10300_24 = 9 +const R_MN10300_32 = 1 +const R_MN10300_8 = 3 +const R_MN10300_COPY = 20 +const R_MN10300_GLOB_DAT = 21 +const R_MN10300_GNU_VTENTRY = 8 +const R_MN10300_GNU_VTINHERIT = 7 +const R_MN10300_GOT16 = 19 +const R_MN10300_GOT24 = 18 +const R_MN10300_GOT32 = 17 +const R_MN10300_GOTOFF16 = 14 +const R_MN10300_GOTOFF24 = 13 +const R_MN10300_GOTOFF32 = 12 +const R_MN10300_GOTPC16 = 11 +const R_MN10300_GOTPC32 = 10 +const R_MN10300_JMP_SLOT = 22 +const R_MN10300_NONE = 0 +const R_MN10300_NUM = 24 +const R_MN10300_PCREL16 = 5 +const R_MN10300_PCREL32 = 4 +const R_MN10300_PCREL8 = 6 +const R_MN10300_PLT16 = 16 +const R_MN10300_PLT32 = 15 +const R_MN10300_RELATIVE = 23 +const R_NIOS2_ALIGN = 21 +const R_NIOS2_BFD_RELOC_16 = 13 +const R_NIOS2_BFD_RELOC_32 = 12 +const R_NIOS2_BFD_RELOC_8 = 14 +const R_NIOS2_CACHE_OPX = 6 +const R_NIOS2_CALL16 = 23 +const R_NIOS2_CALL26 = 4 +const R_NIOS2_CALL26_NOAT = 41 +const R_NIOS2_CALLR = 20 +const R_NIOS2_CALL_HA = 45 +const R_NIOS2_CALL_LO = 44 +const R_NIOS2_CJMP = 19 +const R_NIOS2_COPY = 36 +const R_NIOS2_GLOB_DAT = 37 +const R_NIOS2_GNU_VTENTRY = 17 +const R_NIOS2_GNU_VTINHERIT = 16 +const R_NIOS2_GOT16 = 22 +const R_NIOS2_GOTOFF = 40 +const R_NIOS2_GOTOFF_HA = 25 +const R_NIOS2_GOTOFF_LO = 24 +const R_NIOS2_GOT_HA = 43 +const R_NIOS2_GOT_LO = 42 +const R_NIOS2_GPREL = 15 +const R_NIOS2_HI16 = 9 +const R_NIOS2_HIADJ16 = 11 +const R_NIOS2_IMM5 = 5 +const R_NIOS2_IMM6 = 7 +const R_NIOS2_IMM8 = 8 +const R_NIOS2_JUMP_SLOT = 38 +const R_NIOS2_LO16 = 10 +const R_NIOS2_NONE = 0 +const R_NIOS2_PCREL16 = 3 +const R_NIOS2_PCREL_HA = 27 +const R_NIOS2_PCREL_LO = 26 +const R_NIOS2_RELATIVE = 39 +const R_NIOS2_S16 = 1 +const R_NIOS2_TLS_DTPMOD = 33 +const R_NIOS2_TLS_DTPREL = 34 +const R_NIOS2_TLS_GD16 = 28 +const R_NIOS2_TLS_IE16 = 31 +const R_NIOS2_TLS_LDM16 = 29 +const R_NIOS2_TLS_LDO16 = 30 +const R_NIOS2_TLS_LE16 = 32 +const R_NIOS2_TLS_TPREL = 35 +const R_NIOS2_U16 = 2 +const R_NIOS2_UJMP = 18 +const R_OR1K_16 = 2 +const R_OR1K_16_PCREL = 10 +const R_OR1K_32 = 1 +const R_OR1K_32_PCREL = 9 +const R_OR1K_8 = 3 +const R_OR1K_8_PCREL = 11 +const R_OR1K_COPY = 18 +const R_OR1K_GLOB_DAT = 19 +const R_OR1K_GNU_VTENTRY = 7 +const R_OR1K_GNU_VTINHERIT = 8 +const R_OR1K_GOT16 = 14 +const R_OR1K_GOTOFF_HI16 = 16 +const R_OR1K_GOTOFF_LO16 = 17 +const R_OR1K_GOTPC_HI16 = 12 +const R_OR1K_GOTPC_LO16 = 13 +const R_OR1K_HI_16_IN_INSN = 5 +const R_OR1K_INSN_REL_26 = 6 +const R_OR1K_JMP_SLOT = 20 +const R_OR1K_LO_16_IN_INSN = 4 +const R_OR1K_NONE = 0 +const R_OR1K_PLT26 = 15 +const R_OR1K_RELATIVE = 21 +const R_OR1K_TLS_DTPMOD = 34 +const R_OR1K_TLS_DTPOFF = 33 +const R_OR1K_TLS_GD_HI16 = 22 +const R_OR1K_TLS_GD_LO16 = 23 +const R_OR1K_TLS_IE_HI16 = 28 +const R_OR1K_TLS_IE_LO16 = 29 +const R_OR1K_TLS_LDM_HI16 = 24 +const R_OR1K_TLS_LDM_LO16 = 25 +const R_OR1K_TLS_LDO_HI16 = 26 +const R_OR1K_TLS_LDO_LO16 = 27 +const R_OR1K_TLS_LE_HI16 = 30 +const R_OR1K_TLS_LE_LO16 = 31 +const R_OR1K_TLS_TPOFF = 32 +const R_PARISC_COPY = 128 +const R_PARISC_DIR14DR = 84 +const R_PARISC_DIR14R = 6 +const R_PARISC_DIR14WR = 83 +const R_PARISC_DIR16DF = 87 +const R_PARISC_DIR16F = 85 +const R_PARISC_DIR16WF = 86 +const R_PARISC_DIR17F = 4 +const R_PARISC_DIR17R = 3 +const R_PARISC_DIR21L = 2 +const R_PARISC_DIR32 = 1 +const R_PARISC_DIR64 = 80 +const R_PARISC_DPREL14R = 22 +const R_PARISC_DPREL21L = 18 +const R_PARISC_EPLT = 130 +const R_PARISC_FPTR64 = 64 +const R_PARISC_GNU_VTENTRY = 232 +const R_PARISC_GNU_VTINHERIT = 233 +const R_PARISC_GPREL14DR = 92 +const R_PARISC_GPREL14R = 30 +const R_PARISC_GPREL14WR = 91 +const R_PARISC_GPREL16DF = 95 +const R_PARISC_GPREL16F = 93 +const R_PARISC_GPREL16WF = 94 +const R_PARISC_GPREL21L = 26 +const R_PARISC_GPREL64 = 88 +const R_PARISC_HIRESERVE = 255 +const R_PARISC_IPLT = 129 +const R_PARISC_LORESERVE = 128 +const R_PARISC_LTOFF14DR = 100 +const R_PARISC_LTOFF14R = 38 +const R_PARISC_LTOFF14WR = 99 +const R_PARISC_LTOFF16DF = 103 +const R_PARISC_LTOFF16F = 101 +const R_PARISC_LTOFF16WF = 102 +const R_PARISC_LTOFF21L = 34 +const R_PARISC_LTOFF64 = 96 +const R_PARISC_LTOFF_FPTR14DR = 124 +const R_PARISC_LTOFF_FPTR14R = 62 +const R_PARISC_LTOFF_FPTR14WR = 123 +const R_PARISC_LTOFF_FPTR16DF = 127 +const R_PARISC_LTOFF_FPTR16F = 125 +const R_PARISC_LTOFF_FPTR16WF = 126 +const R_PARISC_LTOFF_FPTR21L = 58 +const R_PARISC_LTOFF_FPTR32 = 57 +const R_PARISC_LTOFF_FPTR64 = 120 +const R_PARISC_LTOFF_TP14DR = 228 +const R_PARISC_LTOFF_TP14F = 167 +const R_PARISC_LTOFF_TP14R = 166 +const R_PARISC_LTOFF_TP14WR = 227 +const R_PARISC_LTOFF_TP16DF = 231 +const R_PARISC_LTOFF_TP16F = 229 +const R_PARISC_LTOFF_TP16WF = 230 +const R_PARISC_LTOFF_TP21L = 162 +const R_PARISC_LTOFF_TP64 = 224 +const R_PARISC_NONE = 0 +const R_PARISC_PCREL14DR = 76 +const R_PARISC_PCREL14R = 14 +const R_PARISC_PCREL14WR = 75 +const R_PARISC_PCREL16DF = 79 +const R_PARISC_PCREL16F = 77 +const R_PARISC_PCREL16WF = 78 +const R_PARISC_PCREL17F = 12 +const R_PARISC_PCREL17R = 11 +const R_PARISC_PCREL21L = 10 +const R_PARISC_PCREL22F = 74 +const R_PARISC_PCREL32 = 9 +const R_PARISC_PCREL64 = 72 +const R_PARISC_PLABEL14R = 70 +const R_PARISC_PLABEL21L = 66 +const R_PARISC_PLABEL32 = 65 +const R_PARISC_PLTOFF14DR = 116 +const R_PARISC_PLTOFF14R = 54 +const R_PARISC_PLTOFF14WR = 115 +const R_PARISC_PLTOFF16DF = 119 +const R_PARISC_PLTOFF16F = 117 +const R_PARISC_PLTOFF16WF = 118 +const R_PARISC_PLTOFF21L = 50 +const R_PARISC_SECREL32 = 41 +const R_PARISC_SECREL64 = 104 +const R_PARISC_SEGBASE = 48 +const R_PARISC_SEGREL32 = 49 +const R_PARISC_SEGREL64 = 112 +const R_PARISC_TLS_DTPMOD32 = 242 +const R_PARISC_TLS_DTPMOD64 = 243 +const R_PARISC_TLS_DTPOFF32 = 244 +const R_PARISC_TLS_DTPOFF64 = 245 +const R_PARISC_TLS_GD14R = 235 +const R_PARISC_TLS_GD21L = 234 +const R_PARISC_TLS_GDCALL = 236 +const R_PARISC_TLS_IE14R = 166 +const R_PARISC_TLS_IE21L = 162 +const R_PARISC_TLS_LDM14R = 238 +const R_PARISC_TLS_LDM21L = 237 +const R_PARISC_TLS_LDMCALL = 239 +const R_PARISC_TLS_LDO14R = 241 +const R_PARISC_TLS_LDO21L = 240 +const R_PARISC_TLS_LE14R = 158 +const R_PARISC_TLS_LE21L = 154 +const R_PARISC_TLS_TPREL32 = 153 +const R_PARISC_TLS_TPREL64 = 216 +const R_PARISC_TPREL14DR = 220 +const R_PARISC_TPREL14R = 158 +const R_PARISC_TPREL14WR = 219 +const R_PARISC_TPREL16DF = 223 +const R_PARISC_TPREL16F = 221 +const R_PARISC_TPREL16WF = 222 +const R_PARISC_TPREL21L = 154 +const R_PARISC_TPREL32 = 153 +const R_PARISC_TPREL64 = 216 +const R_PPC64_ADDR14 = 7 +const R_PPC64_ADDR14_BRNTAKEN = 9 +const R_PPC64_ADDR14_BRTAKEN = 8 +const R_PPC64_ADDR16 = 3 +const R_PPC64_ADDR16_DS = 56 +const R_PPC64_ADDR16_HA = 6 +const R_PPC64_ADDR16_HI = 5 +const R_PPC64_ADDR16_HIGH = 110 +const R_PPC64_ADDR16_HIGHA = 111 +const R_PPC64_ADDR16_HIGHER = 39 +const R_PPC64_ADDR16_HIGHERA = 40 +const R_PPC64_ADDR16_HIGHEST = 41 +const R_PPC64_ADDR16_HIGHESTA = 42 +const R_PPC64_ADDR16_LO = 4 +const R_PPC64_ADDR16_LO_DS = 57 +const R_PPC64_ADDR24 = 2 +const R_PPC64_ADDR30 = 37 +const R_PPC64_ADDR32 = 1 +const R_PPC64_ADDR64 = 38 +const R_PPC64_COPY = 19 +const R_PPC64_DTPMOD64 = 68 +const R_PPC64_DTPREL16 = 74 +const R_PPC64_DTPREL16_DS = 101 +const R_PPC64_DTPREL16_HA = 77 +const R_PPC64_DTPREL16_HI = 76 +const R_PPC64_DTPREL16_HIGH = 114 +const R_PPC64_DTPREL16_HIGHA = 115 +const R_PPC64_DTPREL16_HIGHER = 103 +const R_PPC64_DTPREL16_HIGHERA = 104 +const R_PPC64_DTPREL16_HIGHEST = 105 +const R_PPC64_DTPREL16_HIGHESTA = 106 +const R_PPC64_DTPREL16_LO = 75 +const R_PPC64_DTPREL16_LO_DS = 102 +const R_PPC64_DTPREL64 = 78 +const R_PPC64_GLOB_DAT = 20 +const R_PPC64_GOT16 = 14 +const R_PPC64_GOT16_DS = 58 +const R_PPC64_GOT16_HA = 17 +const R_PPC64_GOT16_HI = 16 +const R_PPC64_GOT16_LO = 15 +const R_PPC64_GOT16_LO_DS = 59 +const R_PPC64_GOT_DTPREL16_DS = 91 +const R_PPC64_GOT_DTPREL16_HA = 94 +const R_PPC64_GOT_DTPREL16_HI = 93 +const R_PPC64_GOT_DTPREL16_LO_DS = 92 +const R_PPC64_GOT_TLSGD16 = 79 +const R_PPC64_GOT_TLSGD16_HA = 82 +const R_PPC64_GOT_TLSGD16_HI = 81 +const R_PPC64_GOT_TLSGD16_LO = 80 +const R_PPC64_GOT_TLSLD16 = 83 +const R_PPC64_GOT_TLSLD16_HA = 86 +const R_PPC64_GOT_TLSLD16_HI = 85 +const R_PPC64_GOT_TLSLD16_LO = 84 +const R_PPC64_GOT_TPREL16_DS = 87 +const R_PPC64_GOT_TPREL16_HA = 90 +const R_PPC64_GOT_TPREL16_HI = 89 +const R_PPC64_GOT_TPREL16_LO_DS = 88 +const R_PPC64_IRELATIVE = 248 +const R_PPC64_JMP_IREL = 247 +const R_PPC64_JMP_SLOT = 21 +const R_PPC64_NONE = 0 +const R_PPC64_PLT16_HA = 31 +const R_PPC64_PLT16_HI = 30 +const R_PPC64_PLT16_LO = 29 +const R_PPC64_PLT16_LO_DS = 60 +const R_PPC64_PLT32 = 27 +const R_PPC64_PLT64 = 45 +const R_PPC64_PLTGOT16 = 52 +const R_PPC64_PLTGOT16_DS = 65 +const R_PPC64_PLTGOT16_HA = 55 +const R_PPC64_PLTGOT16_HI = 54 +const R_PPC64_PLTGOT16_LO = 53 +const R_PPC64_PLTGOT16_LO_DS = 66 +const R_PPC64_PLTREL32 = 28 +const R_PPC64_PLTREL64 = 46 +const R_PPC64_REL14 = 11 +const R_PPC64_REL14_BRNTAKEN = 13 +const R_PPC64_REL14_BRTAKEN = 12 +const R_PPC64_REL16 = 249 +const R_PPC64_REL16_HA = 252 +const R_PPC64_REL16_HI = 251 +const R_PPC64_REL16_LO = 250 +const R_PPC64_REL24 = 10 +const R_PPC64_REL32 = 26 +const R_PPC64_REL64 = 44 +const R_PPC64_RELATIVE = 22 +const R_PPC64_SECTOFF = 33 +const R_PPC64_SECTOFF_DS = 61 +const R_PPC64_SECTOFF_HA = 36 +const R_PPC64_SECTOFF_HI = 35 +const R_PPC64_SECTOFF_LO = 34 +const R_PPC64_SECTOFF_LO_DS = 62 +const R_PPC64_TLS = 67 +const R_PPC64_TLSGD = 107 +const R_PPC64_TLSLD = 108 +const R_PPC64_TOC = 51 +const R_PPC64_TOC16 = 47 +const R_PPC64_TOC16_DS = 63 +const R_PPC64_TOC16_HA = 50 +const R_PPC64_TOC16_HI = 49 +const R_PPC64_TOC16_LO = 48 +const R_PPC64_TOC16_LO_DS = 64 +const R_PPC64_TOCSAVE = 109 +const R_PPC64_TPREL16 = 69 +const R_PPC64_TPREL16_DS = 95 +const R_PPC64_TPREL16_HA = 72 +const R_PPC64_TPREL16_HI = 71 +const R_PPC64_TPREL16_HIGH = 112 +const R_PPC64_TPREL16_HIGHA = 113 +const R_PPC64_TPREL16_HIGHER = 97 +const R_PPC64_TPREL16_HIGHERA = 98 +const R_PPC64_TPREL16_HIGHEST = 99 +const R_PPC64_TPREL16_HIGHESTA = 100 +const R_PPC64_TPREL16_LO = 70 +const R_PPC64_TPREL16_LO_DS = 96 +const R_PPC64_TPREL64 = 73 +const R_PPC64_UADDR16 = 25 +const R_PPC64_UADDR32 = 24 +const R_PPC64_UADDR64 = 43 +const R_PPC_ADDR14 = 7 +const R_PPC_ADDR14_BRNTAKEN = 9 +const R_PPC_ADDR14_BRTAKEN = 8 +const R_PPC_ADDR16 = 3 +const R_PPC_ADDR16_HA = 6 +const R_PPC_ADDR16_HI = 5 +const R_PPC_ADDR16_LO = 4 +const R_PPC_ADDR24 = 2 +const R_PPC_ADDR32 = 1 +const R_PPC_COPY = 19 +const R_PPC_DIAB_RELSDA_HA = 185 +const R_PPC_DIAB_RELSDA_HI = 184 +const R_PPC_DIAB_RELSDA_LO = 183 +const R_PPC_DIAB_SDA21_HA = 182 +const R_PPC_DIAB_SDA21_HI = 181 +const R_PPC_DIAB_SDA21_LO = 180 +const R_PPC_DTPMOD32 = 68 +const R_PPC_DTPREL16 = 74 +const R_PPC_DTPREL16_HA = 77 +const R_PPC_DTPREL16_HI = 76 +const R_PPC_DTPREL16_LO = 75 +const R_PPC_DTPREL32 = 78 +const R_PPC_EMB_BIT_FLD = 115 +const R_PPC_EMB_MRKREF = 110 +const R_PPC_EMB_NADDR16 = 102 +const R_PPC_EMB_NADDR16_HA = 105 +const R_PPC_EMB_NADDR16_HI = 104 +const R_PPC_EMB_NADDR16_LO = 103 +const R_PPC_EMB_NADDR32 = 101 +const R_PPC_EMB_RELSDA = 116 +const R_PPC_EMB_RELSEC16 = 111 +const R_PPC_EMB_RELST_HA = 114 +const R_PPC_EMB_RELST_HI = 113 +const R_PPC_EMB_RELST_LO = 112 +const R_PPC_EMB_SDA21 = 109 +const R_PPC_EMB_SDA2I16 = 107 +const R_PPC_EMB_SDA2REL = 108 +const R_PPC_EMB_SDAI16 = 106 +const R_PPC_GLOB_DAT = 20 +const R_PPC_GOT16 = 14 +const R_PPC_GOT16_HA = 17 +const R_PPC_GOT16_HI = 16 +const R_PPC_GOT16_LO = 15 +const R_PPC_GOT_DTPREL16 = 91 +const R_PPC_GOT_DTPREL16_HA = 94 +const R_PPC_GOT_DTPREL16_HI = 93 +const R_PPC_GOT_DTPREL16_LO = 92 +const R_PPC_GOT_TLSGD16 = 79 +const R_PPC_GOT_TLSGD16_HA = 82 +const R_PPC_GOT_TLSGD16_HI = 81 +const R_PPC_GOT_TLSGD16_LO = 80 +const R_PPC_GOT_TLSLD16 = 83 +const R_PPC_GOT_TLSLD16_HA = 86 +const R_PPC_GOT_TLSLD16_HI = 85 +const R_PPC_GOT_TLSLD16_LO = 84 +const R_PPC_GOT_TPREL16 = 87 +const R_PPC_GOT_TPREL16_HA = 90 +const R_PPC_GOT_TPREL16_HI = 89 +const R_PPC_GOT_TPREL16_LO = 88 +const R_PPC_IRELATIVE = 248 +const R_PPC_JMP_SLOT = 21 +const R_PPC_LOCAL24PC = 23 +const R_PPC_NONE = 0 +const R_PPC_PLT16_HA = 31 +const R_PPC_PLT16_HI = 30 +const R_PPC_PLT16_LO = 29 +const R_PPC_PLT32 = 27 +const R_PPC_PLTREL24 = 18 +const R_PPC_PLTREL32 = 28 +const R_PPC_REL14 = 11 +const R_PPC_REL14_BRNTAKEN = 13 +const R_PPC_REL14_BRTAKEN = 12 +const R_PPC_REL16 = 249 +const R_PPC_REL16_HA = 252 +const R_PPC_REL16_HI = 251 +const R_PPC_REL16_LO = 250 +const R_PPC_REL24 = 10 +const R_PPC_REL32 = 26 +const R_PPC_RELATIVE = 22 +const R_PPC_SDAREL16 = 32 +const R_PPC_SECTOFF = 33 +const R_PPC_SECTOFF_HA = 36 +const R_PPC_SECTOFF_HI = 35 +const R_PPC_SECTOFF_LO = 34 +const R_PPC_TLS = 67 +const R_PPC_TLSGD = 95 +const R_PPC_TLSLD = 96 +const R_PPC_TOC16 = 255 +const R_PPC_TPREL16 = 69 +const R_PPC_TPREL16_HA = 72 +const R_PPC_TPREL16_HI = 71 +const R_PPC_TPREL16_LO = 70 +const R_PPC_TPREL32 = 73 +const R_PPC_UADDR16 = 25 +const R_PPC_UADDR32 = 24 +const R_RISCV_32 = 1 +const R_RISCV_32_PCREL = 57 +const R_RISCV_64 = 2 +const R_RISCV_ADD16 = 34 +const R_RISCV_ADD32 = 35 +const R_RISCV_ADD64 = 36 +const R_RISCV_ADD8 = 33 +const R_RISCV_ALIGN = 43 +const R_RISCV_BRANCH = 16 +const R_RISCV_CALL = 18 +const R_RISCV_CALL_PLT = 19 +const R_RISCV_COPY = 4 +const R_RISCV_GOT32_PCREL = 41 +const R_RISCV_GOT_HI20 = 20 +const R_RISCV_HI20 = 26 +const R_RISCV_IRELATIVE = 58 +const R_RISCV_JAL = 17 +const R_RISCV_JUMP_SLOT = 5 +const R_RISCV_LO12_I = 27 +const R_RISCV_LO12_S = 28 +const R_RISCV_NONE = 0 +const R_RISCV_PCREL_HI20 = 23 +const R_RISCV_PCREL_LO12_I = 24 +const R_RISCV_PCREL_LO12_S = 25 +const R_RISCV_PLT32 = 59 +const R_RISCV_RELATIVE = 3 +const R_RISCV_RELAX = 51 +const R_RISCV_RVC_BRANCH = 44 +const R_RISCV_RVC_JUMP = 45 +const R_RISCV_RVC_LUI = 46 +const R_RISCV_SET16 = 55 +const R_RISCV_SET32 = 56 +const R_RISCV_SET6 = 53 +const R_RISCV_SET8 = 54 +const R_RISCV_SET_ULEB128 = 60 +const R_RISCV_SUB16 = 38 +const R_RISCV_SUB32 = 39 +const R_RISCV_SUB6 = 52 +const R_RISCV_SUB64 = 40 +const R_RISCV_SUB8 = 37 +const R_RISCV_SUB_ULEB128 = 61 +const R_RISCV_TLSDESC = 12 +const R_RISCV_TLSDESC_ADD_LO12 = 64 +const R_RISCV_TLSDESC_CALL = 65 +const R_RISCV_TLSDESC_HI20 = 62 +const R_RISCV_TLSDESC_LOAD_LO12 = 63 +const R_RISCV_TLS_DTPMOD32 = 6 +const R_RISCV_TLS_DTPMOD64 = 7 +const R_RISCV_TLS_DTPREL32 = 8 +const R_RISCV_TLS_DTPREL64 = 9 +const R_RISCV_TLS_GD_HI20 = 22 +const R_RISCV_TLS_GOT_HI20 = 21 +const R_RISCV_TLS_TPREL32 = 10 +const R_RISCV_TLS_TPREL64 = 11 +const R_RISCV_TPREL_ADD = 32 +const R_RISCV_TPREL_HI20 = 29 +const R_RISCV_TPREL_LO12_I = 30 +const R_RISCV_TPREL_LO12_S = 31 +const R_SH_ALIGN = 29 +const R_SH_CODE = 30 +const R_SH_COPY = 162 +const R_SH_COUNT = 28 +const R_SH_DATA = 31 +const R_SH_DIR32 = 1 +const R_SH_DIR8BP = 7 +const R_SH_DIR8L = 9 +const R_SH_DIR8W = 8 +const R_SH_DIR8WPL = 5 +const R_SH_DIR8WPN = 3 +const R_SH_DIR8WPZ = 6 +const R_SH_FUNCDESC = 207 +const R_SH_FUNCDESC_VALUE = 208 +const R_SH_GLOB_DAT = 163 +const R_SH_GNU_VTENTRY = 35 +const R_SH_GNU_VTINHERIT = 34 +const R_SH_GOT20 = 201 +const R_SH_GOT32 = 160 +const R_SH_GOTFUNCDESC = 203 +const R_SH_GOTFUNCDEST20 = 204 +const R_SH_GOTOFF = 166 +const R_SH_GOTOFF20 = 202 +const R_SH_GOTOFFFUNCDESC = 205 +const R_SH_GOTOFFFUNCDEST20 = 206 +const R_SH_GOTPC = 167 +const R_SH_IND12W = 4 +const R_SH_JMP_SLOT = 164 +const R_SH_LABEL = 32 +const R_SH_NONE = 0 +const R_SH_NUM = 256 +const R_SH_PLT32 = 161 +const R_SH_REL32 = 2 +const R_SH_RELATIVE = 165 +const R_SH_SWITCH16 = 25 +const R_SH_SWITCH32 = 26 +const R_SH_SWITCH8 = 33 +const R_SH_TLS_DTPMOD32 = 149 +const R_SH_TLS_DTPOFF32 = 150 +const R_SH_TLS_GD_32 = 144 +const R_SH_TLS_IE_32 = 147 +const R_SH_TLS_LDO_32 = 146 +const R_SH_TLS_LD_32 = 145 +const R_SH_TLS_LE_32 = 148 +const R_SH_TLS_TPOFF32 = 151 +const R_SH_USES = 27 +const R_SPARC_10 = 30 +const R_SPARC_11 = 31 +const R_SPARC_13 = 11 +const R_SPARC_16 = 2 +const R_SPARC_22 = 10 +const R_SPARC_32 = 3 +const R_SPARC_5 = 44 +const R_SPARC_6 = 45 +const R_SPARC_64 = 32 +const R_SPARC_7 = 43 +const R_SPARC_8 = 1 +const R_SPARC_COPY = 19 +const R_SPARC_DISP16 = 5 +const R_SPARC_DISP32 = 6 +const R_SPARC_DISP64 = 46 +const R_SPARC_DISP8 = 4 +const R_SPARC_GLOB_DAT = 20 +const R_SPARC_GLOB_JMP = 42 +const R_SPARC_GNU_VTENTRY = 251 +const R_SPARC_GNU_VTINHERIT = 250 +const R_SPARC_GOT10 = 13 +const R_SPARC_GOT13 = 14 +const R_SPARC_GOT22 = 15 +const R_SPARC_GOTDATA_HIX22 = 80 +const R_SPARC_GOTDATA_LOX10 = 81 +const R_SPARC_GOTDATA_OP = 84 +const R_SPARC_GOTDATA_OP_HIX22 = 82 +const R_SPARC_GOTDATA_OP_LOX10 = 83 +const R_SPARC_H34 = 85 +const R_SPARC_H44 = 50 +const R_SPARC_HH22 = 34 +const R_SPARC_HI22 = 9 +const R_SPARC_HIPLT22 = 25 +const R_SPARC_HIX22 = 48 +const R_SPARC_HM10 = 35 +const R_SPARC_JMP_SLOT = 21 +const R_SPARC_L44 = 52 +const R_SPARC_LM22 = 36 +const R_SPARC_LO10 = 12 +const R_SPARC_LOPLT10 = 26 +const R_SPARC_LOX10 = 49 +const R_SPARC_M44 = 51 +const R_SPARC_NONE = 0 +const R_SPARC_NUM = 253 +const R_SPARC_OLO10 = 33 +const R_SPARC_PC10 = 16 +const R_SPARC_PC22 = 17 +const R_SPARC_PCPLT10 = 29 +const R_SPARC_PCPLT22 = 28 +const R_SPARC_PCPLT32 = 27 +const R_SPARC_PC_HH22 = 37 +const R_SPARC_PC_HM10 = 38 +const R_SPARC_PC_LM22 = 39 +const R_SPARC_PLT32 = 24 +const R_SPARC_PLT64 = 47 +const R_SPARC_REGISTER = 53 +const R_SPARC_RELATIVE = 22 +const R_SPARC_REV32 = 252 +const R_SPARC_SIZE32 = 86 +const R_SPARC_SIZE64 = 87 +const R_SPARC_TLS_DTPMOD32 = 74 +const R_SPARC_TLS_DTPMOD64 = 75 +const R_SPARC_TLS_DTPOFF32 = 76 +const R_SPARC_TLS_DTPOFF64 = 77 +const R_SPARC_TLS_GD_ADD = 58 +const R_SPARC_TLS_GD_CALL = 59 +const R_SPARC_TLS_GD_HI22 = 56 +const R_SPARC_TLS_GD_LO10 = 57 +const R_SPARC_TLS_IE_ADD = 71 +const R_SPARC_TLS_IE_HI22 = 67 +const R_SPARC_TLS_IE_LD = 69 +const R_SPARC_TLS_IE_LDX = 70 +const R_SPARC_TLS_IE_LO10 = 68 +const R_SPARC_TLS_LDM_ADD = 62 +const R_SPARC_TLS_LDM_CALL = 63 +const R_SPARC_TLS_LDM_HI22 = 60 +const R_SPARC_TLS_LDM_LO10 = 61 +const R_SPARC_TLS_LDO_ADD = 66 +const R_SPARC_TLS_LDO_HIX22 = 64 +const R_SPARC_TLS_LDO_LOX10 = 65 +const R_SPARC_TLS_LE_HIX22 = 72 +const R_SPARC_TLS_LE_LOX10 = 73 +const R_SPARC_TLS_TPOFF32 = 78 +const R_SPARC_TLS_TPOFF64 = 79 +const R_SPARC_UA16 = 55 +const R_SPARC_UA32 = 23 +const R_SPARC_UA64 = 54 +const R_SPARC_WDISP16 = 40 +const R_SPARC_WDISP19 = 41 +const R_SPARC_WDISP22 = 8 +const R_SPARC_WDISP30 = 7 +const R_SPARC_WPLT30 = 18 +const R_X86_64_16 = 12 +const R_X86_64_32 = 10 +const R_X86_64_32S = 11 +const R_X86_64_64 = 1 +const R_X86_64_8 = 14 +const R_X86_64_COPY = 5 +const R_X86_64_DTPMOD64 = 16 +const R_X86_64_DTPOFF32 = 21 +const R_X86_64_DTPOFF64 = 17 +const R_X86_64_GLOB_DAT = 6 +const R_X86_64_GOT32 = 3 +const R_X86_64_GOT64 = 27 +const R_X86_64_GOTOFF64 = 25 +const R_X86_64_GOTPC32 = 26 +const R_X86_64_GOTPC32_TLSDESC = 34 +const R_X86_64_GOTPC64 = 29 +const R_X86_64_GOTPCREL = 9 +const R_X86_64_GOTPCREL64 = 28 +const R_X86_64_GOTPCRELX = 41 +const R_X86_64_GOTPLT64 = 30 +const R_X86_64_GOTTPOFF = 22 +const R_X86_64_IRELATIVE = 37 +const R_X86_64_JUMP_SLOT = 7 +const R_X86_64_NONE = 0 +const R_X86_64_NUM = 43 +const R_X86_64_PC16 = 13 +const R_X86_64_PC32 = 2 +const R_X86_64_PC64 = 24 +const R_X86_64_PC8 = 15 +const R_X86_64_PLT32 = 4 +const R_X86_64_PLTOFF64 = 31 +const R_X86_64_RELATIVE = 8 +const R_X86_64_RELATIVE64 = 38 +const R_X86_64_REX_GOTPCRELX = 42 +const R_X86_64_SIZE32 = 32 +const R_X86_64_SIZE64 = 33 +const R_X86_64_TLSDESC = 36 +const R_X86_64_TLSDESC_CALL = 35 +const R_X86_64_TLSGD = 19 +const R_X86_64_TLSLD = 20 +const R_X86_64_TPOFF32 = 23 +const R_X86_64_TPOFF64 = 18 +const SA_EXPOSE_TAGBITS = 2048 +const SA_NOCLDSTOP = 1 +const SA_NOCLDWAIT = 2 +const SA_NODEFER = 1073741824 +const SA_ONSTACK = 134217728 +const SA_RESETHAND = 2147483648 +const SA_RESTART = 268435456 +const SA_RESTORER = 67108864 +const SA_SIGINFO = 4 +const SA_UNSUPPORTED = 1024 +const SCM_TIMESTAMPING_OLD = 37 +const SCM_TIMESTAMPNS_OLD = 35 +const SCM_TIMESTAMP_OLD = 29 +const SEGV_ACCERR = 2 +const SEGV_BNDERR = 3 +const SEGV_MAPERR = 1 +const SEGV_MTEAERR = 8 +const SEGV_MTESERR = 9 +const SEGV_PKUERR = 4 +const SELFMAG = 4 +const SHF_ALLOC = 2 +const SHF_ALPHA_GPREL = 268435456 +const SHF_ARM_COMDEF = 2147483648 +const SHF_ARM_ENTRYSECT = 268435456 +const SHF_COMPRESSED = 2048 +const SHF_EXCLUDE = 2147483648 +const SHF_EXECINSTR = 4 +const SHF_GROUP = 512 +const SHF_IA_64_NORECOV = 536870912 +const SHF_IA_64_SHORT = 268435456 +const SHF_INFO_LINK = 64 +const SHF_LINK_ORDER = 128 +const SHF_MASKOS = 267386880 +const SHF_MASKPROC = 4026531840 +const SHF_MERGE = 16 +const SHF_MIPS_ADDR = 1073741824 +const SHF_MIPS_GPREL = 268435456 +const SHF_MIPS_LOCAL = 67108864 +const SHF_MIPS_MERGE = 536870912 +const SHF_MIPS_NAMES = 33554432 +const SHF_MIPS_NODUPE = 16777216 +const SHF_MIPS_NOSTRIP = 134217728 +const SHF_MIPS_STRINGS = 2147483648 +const SHF_ORDERED = 1073741824 +const SHF_OS_NONCONFORMING = 256 +const SHF_PARISC_HUGE = 1073741824 +const SHF_PARISC_SBP = 2147483648 +const SHF_PARISC_SHORT = 536870912 +const SHF_STRINGS = 32 +const SHF_TLS = 1024 +const SHF_WRITE = 1 +const SHN_ABS = 65521 +const SHN_AFTER = 65281 +const SHN_BEFORE = 65280 +const SHN_COMMON = 65522 +const SHN_HIOS = 65343 +const SHN_HIPROC = 65311 +const SHN_HIRESERVE = 65535 +const SHN_LOOS = 65312 +const SHN_LOPROC = 65280 +const SHN_LORESERVE = 65280 +const SHN_MIPS_ACOMMON = 65280 +const SHN_MIPS_DATA = 65282 +const SHN_MIPS_SCOMMON = 65283 +const SHN_MIPS_SUNDEFINED = 65284 +const SHN_MIPS_TEXT = 65281 +const SHN_PARISC_ANSI_COMMON = 65280 +const SHN_PARISC_HUGE_COMMON = 65281 +const SHN_UNDEF = 0 +const SHN_XINDEX = 65535 +const SHT_ALPHA_DEBUG = 1879048193 +const SHT_ALPHA_REGINFO = 1879048194 +const SHT_ARM_ATTRIBUTES = 1879048195 +const SHT_ARM_EXIDX = 1879048193 +const SHT_ARM_PREEMPTMAP = 1879048194 +const SHT_CHECKSUM = 1879048184 +const SHT_DYNAMIC = 6 +const SHT_DYNSYM = 11 +const SHT_FINI_ARRAY = 15 +const SHT_GNU_ATTRIBUTES = 1879048181 +const SHT_GNU_HASH = 1879048182 +const SHT_GNU_LIBLIST = 1879048183 +const SHT_GNU_verdef = 1879048189 +const SHT_GNU_verneed = 1879048190 +const SHT_GNU_versym = 1879048191 +const SHT_GROUP = 17 +const SHT_HASH = 5 +const SHT_HIOS = 1879048191 +const SHT_HIPROC = 2147483647 +const SHT_HISUNW = 1879048191 +const SHT_HIUSER = 2415919103 +const SHT_IA_64_EXT = 1879048192 +const SHT_IA_64_UNWIND = 1879048193 +const SHT_INIT_ARRAY = 14 +const SHT_LOOS = 1610612736 +const SHT_LOPROC = 1879048192 +const SHT_LOSUNW = 1879048186 +const SHT_LOUSER = 2147483648 +const SHT_MIPS_AUXSYM = 1879048214 +const SHT_MIPS_CONFLICT = 1879048194 +const SHT_MIPS_CONTENT = 1879048204 +const SHT_MIPS_DEBUG = 1879048197 +const SHT_MIPS_DELTACLASS = 1879048221 +const SHT_MIPS_DELTADECL = 1879048223 +const SHT_MIPS_DELTAINST = 1879048220 +const SHT_MIPS_DELTASYM = 1879048219 +const SHT_MIPS_DENSE = 1879048211 +const SHT_MIPS_DWARF = 1879048222 +const SHT_MIPS_EH_REGION = 1879048231 +const SHT_MIPS_EVENTS = 1879048225 +const SHT_MIPS_EXTSYM = 1879048210 +const SHT_MIPS_FDESC = 1879048209 +const SHT_MIPS_GPTAB = 1879048195 +const SHT_MIPS_IFACE = 1879048203 +const SHT_MIPS_LIBLIST = 1879048192 +const SHT_MIPS_LINE = 1879048217 +const SHT_MIPS_LOCSTR = 1879048216 +const SHT_MIPS_LOCSYM = 1879048213 +const SHT_MIPS_MSYM = 1879048193 +const SHT_MIPS_OPTIONS = 1879048205 +const SHT_MIPS_OPTSYM = 1879048215 +const SHT_MIPS_PACKAGE = 1879048199 +const SHT_MIPS_PACKSYM = 1879048200 +const SHT_MIPS_PDESC = 1879048212 +const SHT_MIPS_PDR_EXCEPTION = 1879048233 +const SHT_MIPS_PIXIE = 1879048227 +const SHT_MIPS_REGINFO = 1879048198 +const SHT_MIPS_RELD = 1879048201 +const SHT_MIPS_RFDESC = 1879048218 +const SHT_MIPS_SHDR = 1879048208 +const SHT_MIPS_SYMBOL_LIB = 1879048224 +const SHT_MIPS_TRANSLATE = 1879048226 +const SHT_MIPS_UCODE = 1879048196 +const SHT_MIPS_WHIRL = 1879048230 +const SHT_MIPS_XLATE = 1879048228 +const SHT_MIPS_XLATE_DEBUG = 1879048229 +const SHT_MIPS_XLATE_OLD = 1879048232 +const SHT_NOBITS = 8 +const SHT_NOTE = 7 +const SHT_NULL = 0 +const SHT_NUM = 20 +const SHT_PARISC_DOC = 1879048194 +const SHT_PARISC_EXT = 1879048192 +const SHT_PARISC_UNWIND = 1879048193 +const SHT_PREINIT_ARRAY = 16 +const SHT_PROGBITS = 1 +const SHT_REL = 9 +const SHT_RELA = 4 +const SHT_RELR = 19 +const SHT_SHLIB = 10 +const SHT_STRTAB = 3 +const SHT_SUNW_COMDAT = 1879048187 +const SHT_SUNW_move = 1879048186 +const SHT_SUNW_syminfo = 1879048188 +const SHT_SYMTAB = 2 +const SHT_SYMTAB_SHNDX = 18 +const SIGABRT = 6 +const SIGALRM = 14 +const SIGBUS = 7 +const SIGCHLD = 17 +const SIGCONT = 18 +const SIGEV_NONE = 1 +const SIGEV_SIGNAL = 0 +const SIGEV_THREAD = 2 +const SIGEV_THREAD_ID = 4 +const SIGFPE = 8 +const SIGHUP = 1 +const SIGILL = 4 +const SIGINT = 2 +const SIGIO = 29 +const SIGIOT = 6 +const SIGKILL = 9 +const SIGPIPE = 13 +const SIGPOLL = 29 +const SIGPROF = 27 +const SIGPWR = 30 +const SIGQUIT = 3 +const SIGRTMAX = 0 +const SIGRTMIN = 0 +const SIGSEGV = 11 +const SIGSTKFLT = 16 +const SIGSTKSZ = 8192 +const SIGSTOP = 19 +const SIGSYS = 31 +const SIGTERM = 15 +const SIGTRAP = 5 +const SIGTSTP = 20 +const SIGTTIN = 21 +const SIGTTOU = 22 +const SIGUNUSED = 31 +const SIGURG = 23 +const SIGUSR1 = 10 +const SIGUSR2 = 12 +const SIGVTALRM = 26 +const SIGWINCH = 28 +const SIGXCPU = 24 +const SIGXFSZ = 25 +const SIG_BLOCK = 0 +const SIG_SETMASK = 2 +const SIG_UNBLOCK = 1 +const SIOCGSTAMPNS_OLD = 35079 +const SIOCGSTAMP_OLD = 35078 +const SI_ASYNCIO = -4 +const SI_ASYNCNL = -60 +const SI_KERNEL = 128 +const SI_MESGQ = -3 +const SI_QUEUE = -1 +const SI_SIGIO = -5 +const SI_TIMER = -2 +const SI_TKILL = -6 +const SI_USER = 0 +const SO_RCVTIMEO_OLD = 20 +const SO_SNDTIMEO_OLD = 21 +const SO_TIMESTAMPING_OLD = 37 +const SO_TIMESTAMPNS_OLD = 35 +const SO_TIMESTAMP_OLD = 29 +const SS_AUTODISARM = 2147483648 +const SS_DISABLE = 2 +const SS_FLAG_BITS = 2147483648 +const SS_ONSTACK = 1 +const STB_GLOBAL = 1 +const STB_GNU_UNIQUE = 10 +const STB_HIOS = 12 +const STB_HIPROC = 15 +const STB_LOCAL = 0 +const STB_LOOS = 10 +const STB_LOPROC = 13 +const STB_MIPS_SPLIT_COMMON = 13 +const STB_NUM = 3 +const STB_WEAK = 2 +const STN_UNDEF = 0 +const STO_ALPHA_NOPV = 128 +const STO_ALPHA_STD_GPLOAD = 136 +const STO_MIPS_DEFAULT = 0 +const STO_MIPS_HIDDEN = 2 +const STO_MIPS_INTERNAL = 1 +const STO_MIPS_PLT = 8 +const STO_MIPS_PROTECTED = 3 +const STO_MIPS_SC_ALIGN_UNUSED = 255 +const STO_PPC64_LOCAL_BIT = 5 +const STO_PPC64_LOCAL_MASK = 224 +const STT_ARM_16BIT = 15 +const STT_ARM_TFUNC = 13 +const STT_COMMON = 5 +const STT_FILE = 4 +const STT_FUNC = 2 +const STT_GNU_IFUNC = 10 +const STT_HIOS = 12 +const STT_HIPROC = 15 +const STT_HP_OPAQUE = 11 +const STT_HP_STUB = 12 +const STT_LOOS = 10 +const STT_LOPROC = 13 +const STT_NOTYPE = 0 +const STT_NUM = 7 +const STT_OBJECT = 1 +const STT_PARISC_MILLICODE = 13 +const STT_SECTION = 3 +const STT_SPARC_REGISTER = 13 +const STT_TLS = 6 +const STV_DEFAULT = 0 +const STV_HIDDEN = 2 +const STV_INTERNAL = 1 +const STV_PROTECTED = 3 +const SYMINFO_BT_LOWRESERVE = 65280 +const SYMINFO_BT_PARENT = 65534 +const SYMINFO_BT_SELF = 65535 +const SYMINFO_CURRENT = 1 +const SYMINFO_FLG_COPY = 4 +const SYMINFO_FLG_DIRECT = 1 +const SYMINFO_FLG_LAZYLOAD = 8 +const SYMINFO_FLG_PASSTHRU = 2 +const SYMINFO_NONE = 0 +const SYMINFO_NUM = 2 +const SYSCALL_MMAP2_UNIT = 4096 +const SYSCALL_RLIM_INFINITY = 18446744073709551615 +const SYS__sysctl = 156 +const SYS_accept = 43 +const SYS_accept4 = 288 +const SYS_access = 21 +const SYS_acct = 163 +const SYS_add_key = 248 +const SYS_adjtimex = 159 +const SYS_afs_syscall = 183 +const SYS_alarm = 37 +const SYS_arch_prctl = 158 +const SYS_bind = 49 +const SYS_bpf = 321 +const SYS_brk = 12 +const SYS_cachestat = 451 +const SYS_capget = 125 +const SYS_capset = 126 +const SYS_chdir = 80 +const SYS_chmod = 90 +const SYS_chown = 92 +const SYS_chroot = 161 +const SYS_clock_adjtime = 305 +const SYS_clock_getres = 229 +const SYS_clock_gettime = 228 +const SYS_clock_nanosleep = 230 +const SYS_clock_settime = 227 +const SYS_clone = 56 +const SYS_clone3 = 435 +const SYS_close = 3 +const SYS_close_range = 436 +const SYS_connect = 42 +const SYS_copy_file_range = 326 +const SYS_creat = 85 +const SYS_create_module = 174 +const SYS_delete_module = 176 +const SYS_dup = 32 +const SYS_dup2 = 33 +const SYS_dup3 = 292 +const SYS_epoll_create = 213 +const SYS_epoll_create1 = 291 +const SYS_epoll_ctl = 233 +const SYS_epoll_ctl_old = 214 +const SYS_epoll_pwait = 281 +const SYS_epoll_pwait2 = 441 +const SYS_epoll_wait = 232 +const SYS_epoll_wait_old = 215 +const SYS_eventfd = 284 +const SYS_eventfd2 = 290 +const SYS_execve = 59 +const SYS_execveat = 322 +const SYS_exit = 60 +const SYS_exit_group = 231 +const SYS_faccessat = 269 +const SYS_faccessat2 = 439 +const SYS_fadvise64 = 221 +const SYS_fallocate = 285 +const SYS_fanotify_init = 300 +const SYS_fanotify_mark = 301 +const SYS_fchdir = 81 +const SYS_fchmod = 91 +const SYS_fchmodat = 268 +const SYS_fchmodat2 = 452 +const SYS_fchown = 93 +const SYS_fchownat = 260 +const SYS_fcntl = 72 +const SYS_fdatasync = 75 +const SYS_fgetxattr = 193 +const SYS_finit_module = 313 +const SYS_flistxattr = 196 +const SYS_flock = 73 +const SYS_fork = 57 +const SYS_fremovexattr = 199 +const SYS_fsconfig = 431 +const SYS_fsetxattr = 190 +const SYS_fsmount = 432 +const SYS_fsopen = 430 +const SYS_fspick = 433 +const SYS_fstat = 5 +const SYS_fstatfs = 138 +const SYS_fsync = 74 +const SYS_ftruncate = 77 +const SYS_futex = 202 +const SYS_futex_waitv = 449 +const SYS_futimesat = 261 +const SYS_get_kernel_syms = 177 +const SYS_get_mempolicy = 239 +const SYS_get_robust_list = 274 +const SYS_get_thread_area = 211 +const SYS_getcpu = 309 +const SYS_getcwd = 79 +const SYS_getdents64 = 217 +const SYS_getegid = 108 +const SYS_geteuid = 107 +const SYS_getgid = 104 +const SYS_getgroups = 115 +const SYS_getitimer = 36 +const SYS_getpeername = 52 +const SYS_getpgid = 121 +const SYS_getpgrp = 111 +const SYS_getpid = 39 +const SYS_getpmsg = 181 +const SYS_getppid = 110 +const SYS_getpriority = 140 +const SYS_getrandom = 318 +const SYS_getresgid = 120 +const SYS_getresuid = 118 +const SYS_getrlimit = 97 +const SYS_getrusage = 98 +const SYS_getsid = 124 +const SYS_getsockname = 51 +const SYS_getsockopt = 55 +const SYS_gettid = 186 +const SYS_gettimeofday = 96 +const SYS_getuid = 102 +const SYS_getxattr = 191 +const SYS_init_module = 175 +const SYS_inotify_add_watch = 254 +const SYS_inotify_init = 253 +const SYS_inotify_init1 = 294 +const SYS_inotify_rm_watch = 255 +const SYS_io_cancel = 210 +const SYS_io_destroy = 207 +const SYS_io_getevents = 208 +const SYS_io_pgetevents = 333 +const SYS_io_setup = 206 +const SYS_io_submit = 209 +const SYS_io_uring_enter = 426 +const SYS_io_uring_register = 427 +const SYS_io_uring_setup = 425 +const SYS_ioctl = 16 +const SYS_ioperm = 173 +const SYS_iopl = 172 +const SYS_ioprio_get = 252 +const SYS_ioprio_set = 251 +const SYS_kcmp = 312 +const SYS_kexec_file_load = 320 +const SYS_kexec_load = 246 +const SYS_keyctl = 250 +const SYS_kill = 62 +const SYS_landlock_add_rule = 445 +const SYS_landlock_create_ruleset = 444 +const SYS_landlock_restrict_self = 446 +const SYS_lchown = 94 +const SYS_lgetxattr = 192 +const SYS_link = 86 +const SYS_linkat = 265 +const SYS_listen = 50 +const SYS_listxattr = 194 +const SYS_llistxattr = 195 +const SYS_lookup_dcookie = 212 +const SYS_lremovexattr = 198 +const SYS_lseek = 8 +const SYS_lsetxattr = 189 +const SYS_lstat = 6 +const SYS_madvise = 28 +const SYS_mbind = 237 +const SYS_membarrier = 324 +const SYS_memfd_create = 319 +const SYS_memfd_secret = 447 +const SYS_migrate_pages = 256 +const SYS_mincore = 27 +const SYS_mkdir = 83 +const SYS_mkdirat = 258 +const SYS_mknod = 133 +const SYS_mknodat = 259 +const SYS_mlock = 149 +const SYS_mlock2 = 325 +const SYS_mlockall = 151 +const SYS_mmap = 9 +const SYS_modify_ldt = 154 +const SYS_mount = 165 +const SYS_mount_setattr = 442 +const SYS_move_mount = 429 +const SYS_move_pages = 279 +const SYS_mprotect = 10 +const SYS_mq_getsetattr = 245 +const SYS_mq_notify = 244 +const SYS_mq_open = 240 +const SYS_mq_timedreceive = 243 +const SYS_mq_timedsend = 242 +const SYS_mq_unlink = 241 +const SYS_mremap = 25 +const SYS_msgctl = 71 +const SYS_msgget = 68 +const SYS_msgrcv = 70 +const SYS_msgsnd = 69 +const SYS_msync = 26 +const SYS_munlock = 150 +const SYS_munlockall = 152 +const SYS_munmap = 11 +const SYS_name_to_handle_at = 303 +const SYS_nanosleep = 35 +const SYS_newfstatat = 262 +const SYS_nfsservctl = 180 +const SYS_open = 2 +const SYS_open_by_handle_at = 304 +const SYS_open_tree = 428 +const SYS_openat = 257 +const SYS_openat2 = 437 +const SYS_pause = 34 +const SYS_perf_event_open = 298 +const SYS_personality = 135 +const SYS_pidfd_getfd = 438 +const SYS_pidfd_open = 434 +const SYS_pidfd_send_signal = 424 +const SYS_pipe = 22 +const SYS_pipe2 = 293 +const SYS_pivot_root = 155 +const SYS_pkey_alloc = 330 +const SYS_pkey_free = 331 +const SYS_pkey_mprotect = 329 +const SYS_poll = 7 +const SYS_ppoll = 271 +const SYS_prctl = 157 +const SYS_pread64 = 17 +const SYS_preadv = 295 +const SYS_preadv2 = 327 +const SYS_prlimit64 = 302 +const SYS_process_madvise = 440 +const SYS_process_mrelease = 448 +const SYS_process_vm_readv = 310 +const SYS_process_vm_writev = 311 +const SYS_pselect6 = 270 +const SYS_ptrace = 101 +const SYS_putpmsg = 182 +const SYS_pwrite64 = 18 +const SYS_pwritev = 296 +const SYS_pwritev2 = 328 +const SYS_query_module = 178 +const SYS_quotactl = 179 +const SYS_read = 0 +const SYS_readahead = 187 +const SYS_readlink = 89 +const SYS_readlinkat = 267 +const SYS_readv = 19 +const SYS_reboot = 169 +const SYS_recvfrom = 45 +const SYS_recvmmsg = 299 +const SYS_recvmsg = 47 +const SYS_remap_file_pages = 216 +const SYS_removexattr = 197 +const SYS_rename = 82 +const SYS_renameat = 264 +const SYS_renameat2 = 316 +const SYS_request_key = 249 +const SYS_restart_syscall = 219 +const SYS_rmdir = 84 +const SYS_rseq = 334 +const SYS_rt_sigaction = 13 +const SYS_rt_sigpending = 127 +const SYS_rt_sigprocmask = 14 +const SYS_rt_sigqueueinfo = 129 +const SYS_rt_sigreturn = 15 +const SYS_rt_sigsuspend = 130 +const SYS_rt_sigtimedwait = 128 +const SYS_rt_tgsigqueueinfo = 297 +const SYS_sched_get_priority_max = 146 +const SYS_sched_get_priority_min = 147 +const SYS_sched_getaffinity = 204 +const SYS_sched_getattr = 315 +const SYS_sched_getparam = 143 +const SYS_sched_getscheduler = 145 +const SYS_sched_rr_get_interval = 148 +const SYS_sched_setaffinity = 203 +const SYS_sched_setattr = 314 +const SYS_sched_setparam = 142 +const SYS_sched_setscheduler = 144 +const SYS_sched_yield = 24 +const SYS_seccomp = 317 +const SYS_security = 185 +const SYS_select = 23 +const SYS_semctl = 66 +const SYS_semget = 64 +const SYS_semop = 65 +const SYS_semtimedop = 220 +const SYS_sendfile = 40 +const SYS_sendmmsg = 307 +const SYS_sendmsg = 46 +const SYS_sendto = 44 +const SYS_set_mempolicy = 238 +const SYS_set_mempolicy_home_node = 450 +const SYS_set_robust_list = 273 +const SYS_set_thread_area = 205 +const SYS_set_tid_address = 218 +const SYS_setdomainname = 171 +const SYS_setfsgid = 123 +const SYS_setfsuid = 122 +const SYS_setgid = 106 +const SYS_setgroups = 116 +const SYS_sethostname = 170 +const SYS_setitimer = 38 +const SYS_setns = 308 +const SYS_setpgid = 109 +const SYS_setpriority = 141 +const SYS_setregid = 114 +const SYS_setresgid = 119 +const SYS_setresuid = 117 +const SYS_setreuid = 113 +const SYS_setrlimit = 160 +const SYS_setsid = 112 +const SYS_setsockopt = 54 +const SYS_settimeofday = 164 +const SYS_setuid = 105 +const SYS_setxattr = 188 +const SYS_shmat = 30 +const SYS_shmctl = 31 +const SYS_shmdt = 67 +const SYS_shmget = 29 +const SYS_shutdown = 48 +const SYS_sigaltstack = 131 +const SYS_signalfd = 282 +const SYS_signalfd4 = 289 +const SYS_socket = 41 +const SYS_socketpair = 53 +const SYS_splice = 275 +const SYS_stat = 4 +const SYS_statfs = 137 +const SYS_statx = 332 +const SYS_swapoff = 168 +const SYS_swapon = 167 +const SYS_symlink = 88 +const SYS_symlinkat = 266 +const SYS_sync = 162 +const SYS_sync_file_range = 277 +const SYS_syncfs = 306 +const SYS_sysfs = 139 +const SYS_sysinfo = 99 +const SYS_syslog = 103 +const SYS_tee = 276 +const SYS_tgkill = 234 +const SYS_time = 201 +const SYS_timer_create = 222 +const SYS_timer_delete = 226 +const SYS_timer_getoverrun = 225 +const SYS_timer_gettime = 224 +const SYS_timer_settime = 223 +const SYS_timerfd_create = 283 +const SYS_timerfd_gettime = 287 +const SYS_timerfd_settime = 286 +const SYS_times = 100 +const SYS_tkill = 200 +const SYS_truncate = 76 +const SYS_tuxcall = 184 +const SYS_umask = 95 +const SYS_umount2 = 166 +const SYS_uname = 63 +const SYS_unlink = 87 +const SYS_unlinkat = 263 +const SYS_unshare = 272 +const SYS_uselib = 134 +const SYS_userfaultfd = 323 +const SYS_ustat = 136 +const SYS_utime = 132 +const SYS_utimensat = 280 +const SYS_utimes = 235 +const SYS_vfork = 58 +const SYS_vhangup = 153 +const SYS_vmsplice = 278 +const SYS_vserver = 236 +const SYS_wait4 = 61 +const SYS_waitid = 247 +const SYS_write = 1 +const SYS_writev = 20 +const TRAP_BRANCH = 3 +const TRAP_BRKPT = 1 +const TRAP_HWBKPT = 4 +const TRAP_TRACE = 2 +const TRAP_UNK = 5 +const VER = -255 +const VER_DEF_CURRENT = 1 +const VER_DEF_NONE = 0 +const VER_DEF_NUM = 2 +const VER_FLG_BASE = 1 +const VER_FLG_WEAK = 2 +const VER_NDX_ELIMINATE = 65281 +const VER_NDX_GLOBAL = 1 +const VER_NDX_LOCAL = 0 +const VER_NDX_LORESERVE = 65280 +const VER_NEED_CURRENT = 1 +const VER_NEED_NONE = 0 +const VER_NEED_NUM = 2 +const WNOHANG = 1 +const WUNTRACED = 2 +const _NSIG = 65 +const __NR__sysctl = 156 +const __NR_accept = 43 +const __NR_accept4 = 288 +const __NR_access = 21 +const __NR_acct = 163 +const __NR_add_key = 248 +const __NR_adjtimex = 159 +const __NR_afs_syscall = 183 +const __NR_alarm = 37 +const __NR_arch_prctl = 158 +const __NR_bind = 49 +const __NR_bpf = 321 +const __NR_brk = 12 +const __NR_cachestat = 451 +const __NR_capget = 125 +const __NR_capset = 126 +const __NR_chdir = 80 +const __NR_chmod = 90 +const __NR_chown = 92 +const __NR_chroot = 161 +const __NR_clock_adjtime = 305 +const __NR_clock_getres = 229 +const __NR_clock_gettime = 228 +const __NR_clock_nanosleep = 230 +const __NR_clock_settime = 227 +const __NR_clone = 56 +const __NR_clone3 = 435 +const __NR_close = 3 +const __NR_close_range = 436 +const __NR_connect = 42 +const __NR_copy_file_range = 326 +const __NR_creat = 85 +const __NR_create_module = 174 +const __NR_delete_module = 176 +const __NR_dup = 32 +const __NR_dup2 = 33 +const __NR_dup3 = 292 +const __NR_epoll_create = 213 +const __NR_epoll_create1 = 291 +const __NR_epoll_ctl = 233 +const __NR_epoll_ctl_old = 214 +const __NR_epoll_pwait = 281 +const __NR_epoll_pwait2 = 441 +const __NR_epoll_wait = 232 +const __NR_epoll_wait_old = 215 +const __NR_eventfd = 284 +const __NR_eventfd2 = 290 +const __NR_execve = 59 +const __NR_execveat = 322 +const __NR_exit = 60 +const __NR_exit_group = 231 +const __NR_faccessat = 269 +const __NR_faccessat2 = 439 +const __NR_fadvise64 = 221 +const __NR_fallocate = 285 +const __NR_fanotify_init = 300 +const __NR_fanotify_mark = 301 +const __NR_fchdir = 81 +const __NR_fchmod = 91 +const __NR_fchmodat = 268 +const __NR_fchmodat2 = 452 +const __NR_fchown = 93 +const __NR_fchownat = 260 +const __NR_fcntl = 72 +const __NR_fdatasync = 75 +const __NR_fgetxattr = 193 +const __NR_finit_module = 313 +const __NR_flistxattr = 196 +const __NR_flock = 73 +const __NR_fork = 57 +const __NR_fremovexattr = 199 +const __NR_fsconfig = 431 +const __NR_fsetxattr = 190 +const __NR_fsmount = 432 +const __NR_fsopen = 430 +const __NR_fspick = 433 +const __NR_fstat = 5 +const __NR_fstatfs = 138 +const __NR_fsync = 74 +const __NR_ftruncate = 77 +const __NR_futex = 202 +const __NR_futex_waitv = 449 +const __NR_futimesat = 261 +const __NR_get_kernel_syms = 177 +const __NR_get_mempolicy = 239 +const __NR_get_robust_list = 274 +const __NR_get_thread_area = 211 +const __NR_getcpu = 309 +const __NR_getcwd = 79 +const __NR_getdents = 78 +const __NR_getdents64 = 217 +const __NR_getegid = 108 +const __NR_geteuid = 107 +const __NR_getgid = 104 +const __NR_getgroups = 115 +const __NR_getitimer = 36 +const __NR_getpeername = 52 +const __NR_getpgid = 121 +const __NR_getpgrp = 111 +const __NR_getpid = 39 +const __NR_getpmsg = 181 +const __NR_getppid = 110 +const __NR_getpriority = 140 +const __NR_getrandom = 318 +const __NR_getresgid = 120 +const __NR_getresuid = 118 +const __NR_getrlimit = 97 +const __NR_getrusage = 98 +const __NR_getsid = 124 +const __NR_getsockname = 51 +const __NR_getsockopt = 55 +const __NR_gettid = 186 +const __NR_gettimeofday = 96 +const __NR_getuid = 102 +const __NR_getxattr = 191 +const __NR_init_module = 175 +const __NR_inotify_add_watch = 254 +const __NR_inotify_init = 253 +const __NR_inotify_init1 = 294 +const __NR_inotify_rm_watch = 255 +const __NR_io_cancel = 210 +const __NR_io_destroy = 207 +const __NR_io_getevents = 208 +const __NR_io_pgetevents = 333 +const __NR_io_setup = 206 +const __NR_io_submit = 209 +const __NR_io_uring_enter = 426 +const __NR_io_uring_register = 427 +const __NR_io_uring_setup = 425 +const __NR_ioctl = 16 +const __NR_ioperm = 173 +const __NR_iopl = 172 +const __NR_ioprio_get = 252 +const __NR_ioprio_set = 251 +const __NR_kcmp = 312 +const __NR_kexec_file_load = 320 +const __NR_kexec_load = 246 +const __NR_keyctl = 250 +const __NR_kill = 62 +const __NR_landlock_add_rule = 445 +const __NR_landlock_create_ruleset = 444 +const __NR_landlock_restrict_self = 446 +const __NR_lchown = 94 +const __NR_lgetxattr = 192 +const __NR_link = 86 +const __NR_linkat = 265 +const __NR_listen = 50 +const __NR_listxattr = 194 +const __NR_llistxattr = 195 +const __NR_lookup_dcookie = 212 +const __NR_lremovexattr = 198 +const __NR_lseek = 8 +const __NR_lsetxattr = 189 +const __NR_lstat = 6 +const __NR_madvise = 28 +const __NR_mbind = 237 +const __NR_membarrier = 324 +const __NR_memfd_create = 319 +const __NR_memfd_secret = 447 +const __NR_migrate_pages = 256 +const __NR_mincore = 27 +const __NR_mkdir = 83 +const __NR_mkdirat = 258 +const __NR_mknod = 133 +const __NR_mknodat = 259 +const __NR_mlock = 149 +const __NR_mlock2 = 325 +const __NR_mlockall = 151 +const __NR_mmap = 9 +const __NR_modify_ldt = 154 +const __NR_mount = 165 +const __NR_mount_setattr = 442 +const __NR_move_mount = 429 +const __NR_move_pages = 279 +const __NR_mprotect = 10 +const __NR_mq_getsetattr = 245 +const __NR_mq_notify = 244 +const __NR_mq_open = 240 +const __NR_mq_timedreceive = 243 +const __NR_mq_timedsend = 242 +const __NR_mq_unlink = 241 +const __NR_mremap = 25 +const __NR_msgctl = 71 +const __NR_msgget = 68 +const __NR_msgrcv = 70 +const __NR_msgsnd = 69 +const __NR_msync = 26 +const __NR_munlock = 150 +const __NR_munlockall = 152 +const __NR_munmap = 11 +const __NR_name_to_handle_at = 303 +const __NR_nanosleep = 35 +const __NR_newfstatat = 262 +const __NR_nfsservctl = 180 +const __NR_open = 2 +const __NR_open_by_handle_at = 304 +const __NR_open_tree = 428 +const __NR_openat = 257 +const __NR_openat2 = 437 +const __NR_pause = 34 +const __NR_perf_event_open = 298 +const __NR_personality = 135 +const __NR_pidfd_getfd = 438 +const __NR_pidfd_open = 434 +const __NR_pidfd_send_signal = 424 +const __NR_pipe = 22 +const __NR_pipe2 = 293 +const __NR_pivot_root = 155 +const __NR_pkey_alloc = 330 +const __NR_pkey_free = 331 +const __NR_pkey_mprotect = 329 +const __NR_poll = 7 +const __NR_ppoll = 271 +const __NR_prctl = 157 +const __NR_pread64 = 17 +const __NR_preadv = 295 +const __NR_preadv2 = 327 +const __NR_prlimit64 = 302 +const __NR_process_madvise = 440 +const __NR_process_mrelease = 448 +const __NR_process_vm_readv = 310 +const __NR_process_vm_writev = 311 +const __NR_pselect6 = 270 +const __NR_ptrace = 101 +const __NR_putpmsg = 182 +const __NR_pwrite64 = 18 +const __NR_pwritev = 296 +const __NR_pwritev2 = 328 +const __NR_query_module = 178 +const __NR_quotactl = 179 +const __NR_read = 0 +const __NR_readahead = 187 +const __NR_readlink = 89 +const __NR_readlinkat = 267 +const __NR_readv = 19 +const __NR_reboot = 169 +const __NR_recvfrom = 45 +const __NR_recvmmsg = 299 +const __NR_recvmsg = 47 +const __NR_remap_file_pages = 216 +const __NR_removexattr = 197 +const __NR_rename = 82 +const __NR_renameat = 264 +const __NR_renameat2 = 316 +const __NR_request_key = 249 +const __NR_restart_syscall = 219 +const __NR_rmdir = 84 +const __NR_rseq = 334 +const __NR_rt_sigaction = 13 +const __NR_rt_sigpending = 127 +const __NR_rt_sigprocmask = 14 +const __NR_rt_sigqueueinfo = 129 +const __NR_rt_sigreturn = 15 +const __NR_rt_sigsuspend = 130 +const __NR_rt_sigtimedwait = 128 +const __NR_rt_tgsigqueueinfo = 297 +const __NR_sched_get_priority_max = 146 +const __NR_sched_get_priority_min = 147 +const __NR_sched_getaffinity = 204 +const __NR_sched_getattr = 315 +const __NR_sched_getparam = 143 +const __NR_sched_getscheduler = 145 +const __NR_sched_rr_get_interval = 148 +const __NR_sched_setaffinity = 203 +const __NR_sched_setattr = 314 +const __NR_sched_setparam = 142 +const __NR_sched_setscheduler = 144 +const __NR_sched_yield = 24 +const __NR_seccomp = 317 +const __NR_security = 185 +const __NR_select = 23 +const __NR_semctl = 66 +const __NR_semget = 64 +const __NR_semop = 65 +const __NR_semtimedop = 220 +const __NR_sendfile = 40 +const __NR_sendmmsg = 307 +const __NR_sendmsg = 46 +const __NR_sendto = 44 +const __NR_set_mempolicy = 238 +const __NR_set_mempolicy_home_node = 450 +const __NR_set_robust_list = 273 +const __NR_set_thread_area = 205 +const __NR_set_tid_address = 218 +const __NR_setdomainname = 171 +const __NR_setfsgid = 123 +const __NR_setfsuid = 122 +const __NR_setgid = 106 +const __NR_setgroups = 116 +const __NR_sethostname = 170 +const __NR_setitimer = 38 +const __NR_setns = 308 +const __NR_setpgid = 109 +const __NR_setpriority = 141 +const __NR_setregid = 114 +const __NR_setresgid = 119 +const __NR_setresuid = 117 +const __NR_setreuid = 113 +const __NR_setrlimit = 160 +const __NR_setsid = 112 +const __NR_setsockopt = 54 +const __NR_settimeofday = 164 +const __NR_setuid = 105 +const __NR_setxattr = 188 +const __NR_shmat = 30 +const __NR_shmctl = 31 +const __NR_shmdt = 67 +const __NR_shmget = 29 +const __NR_shutdown = 48 +const __NR_sigaltstack = 131 +const __NR_signalfd = 282 +const __NR_signalfd4 = 289 +const __NR_socket = 41 +const __NR_socketpair = 53 +const __NR_splice = 275 +const __NR_stat = 4 +const __NR_statfs = 137 +const __NR_statx = 332 +const __NR_swapoff = 168 +const __NR_swapon = 167 +const __NR_symlink = 88 +const __NR_symlinkat = 266 +const __NR_sync = 162 +const __NR_sync_file_range = 277 +const __NR_syncfs = 306 +const __NR_sysfs = 139 +const __NR_sysinfo = 99 +const __NR_syslog = 103 +const __NR_tee = 276 +const __NR_tgkill = 234 +const __NR_time = 201 +const __NR_timer_create = 222 +const __NR_timer_delete = 226 +const __NR_timer_getoverrun = 225 +const __NR_timer_gettime = 224 +const __NR_timer_settime = 223 +const __NR_timerfd_create = 283 +const __NR_timerfd_gettime = 287 +const __NR_timerfd_settime = 286 +const __NR_times = 100 +const __NR_tkill = 200 +const __NR_truncate = 76 +const __NR_tuxcall = 184 +const __NR_umask = 95 +const __NR_umount2 = 166 +const __NR_uname = 63 +const __NR_unlink = 87 +const __NR_unlinkat = 263 +const __NR_unshare = 272 +const __NR_uselib = 134 +const __NR_userfaultfd = 323 +const __NR_ustat = 136 +const __NR_utime = 132 +const __NR_utimensat = 280 +const __NR_utimes = 235 +const __NR_vfork = 58 +const __NR_vhangup = 153 +const __NR_vmsplice = 278 +const __NR_vserver = 236 +const __NR_wait4 = 61 +const __NR_waitid = 247 +const __NR_write = 1 +const __NR_writev = 20 +const __SC_accept = 5 +const __SC_accept4 = 18 +const __SC_bind = 2 +const __SC_connect = 3 +const __SC_getpeername = 7 +const __SC_getsockname = 6 +const __SC_getsockopt = 15 +const __SC_listen = 4 +const __SC_recv = 10 +const __SC_recvfrom = 12 +const __SC_recvmmsg = 19 +const __SC_recvmsg = 17 +const __SC_send = 9 +const __SC_sendmmsg = 20 +const __SC_sendmsg = 16 +const __SC_sendto = 11 +const __SC_setsockopt = 14 +const __SC_shutdown = 13 +const __SC_socket = 1 +const __SC_socketpair = 8 +const libc = 0 + +type Ttime_t = int64 + +type Tsuseconds_t = int64 + +type Ttimeval = struct { + Ftv_sec Ttime_t + Ftv_usec Tsuseconds_t +} + +type Ttimespec = struct { + Ftv_sec Ttime_t + Ftv_nsec int64 +} + +type Tsigset_t = struct { + F__bits [16]uint64 +} + +type t__sigset_t = Tsigset_t + +type Tfd_mask = uint64 + +type Tfd_set = struct { + Ffds_bits [16]uint64 +} + +type Titimerval = struct { + Fit_interval Ttimeval + Fit_value Ttimeval +} + +type Tid_t = uint32 + +type Trlim_t = uint64 + +type Trlimit = struct { + Frlim_cur Trlim_t + Frlim_max Trlim_t +} + +type Trusage = struct { + Fru_utime Ttimeval + Fru_stime Ttimeval + Fru_maxrss int64 + Fru_ixrss int64 + Fru_idrss int64 + Fru_isrss int64 + Fru_minflt int64 + Fru_majflt int64 + Fru_nswap int64 + Fru_inblock int64 + Fru_oublock int64 + Fru_msgsnd int64 + Fru_msgrcv int64 + Fru_nsignals int64 + Fru_nvcsw int64 + Fru_nivcsw int64 + F__reserved [16]int64 +} + +type Tclock_t = int64 + +type Tpthread_t = uintptr + +type Tpthread_attr_t = struct { + F__u struct { + F__vi [0][14]int32 + F__s [0][7]uint64 + F__i [14]int32 + } +} + +type Tstack_t = struct { + Fss_sp uintptr + Fss_flags int32 + Fss_size Tsize_t +} + +type Tsigaltstack = Tstack_t + +type Tmcontext_t = struct { + F__space [32]uint64 +} + +type Tucontext_t = struct { + Fuc_flags uint64 + Fuc_link uintptr + Fuc_stack Tstack_t + Fuc_mcontext Tmcontext_t + Fuc_sigmask Tsigset_t + F__fpregs_mem [64]uint64 +} + +type t__ucontext = Tucontext_t + +type Tsigval = struct { + Fsival_ptr [0]uintptr + Fsival_int int32 + F__ccgo_pad2 [4]byte +} + +type Tsiginfo_t = struct { + Fsi_signo int32 + Fsi_errno int32 + Fsi_code int32 + F__si_fields struct { + F__si_common [0]struct { + F__first struct { + F__timer [0]struct { + Fsi_timerid int32 + Fsi_overrun int32 + } + F__piduid struct { + Fsi_pid Tpid_t + Fsi_uid Tuid_t + } + } + F__second struct { + F__sigchld [0]struct { + Fsi_status int32 + Fsi_utime Tclock_t + Fsi_stime Tclock_t + } + Fsi_value Tsigval + F__ccgo_pad2 [16]byte + } + } + F__sigfault [0]struct { + Fsi_addr uintptr + Fsi_addr_lsb int16 + F__first struct { + Fsi_pkey [0]uint32 + F__addr_bnd struct { + Fsi_lower uintptr + Fsi_upper uintptr + } + } + } + F__sigpoll [0]struct { + Fsi_band int64 + Fsi_fd int32 + } + F__sigsys [0]struct { + Fsi_call_addr uintptr + Fsi_syscall int32 + Fsi_arch uint32 + } + F__pad [112]int8 + } +} + +type Tsigaction = struct { + F__sa_handler struct { + Fsa_sigaction [0]uintptr + Fsa_handler uintptr + } + Fsa_mask Tsigset_t + Fsa_flags int32 + Fsa_restorer uintptr +} + +type Tsigevent = struct { + Fsigev_value Tsigval + Fsigev_signo int32 + Fsigev_notify int32 + F__sev_fields struct { + Fsigev_notify_thread_id [0]Tpid_t + F__sev_thread [0]struct { + Fsigev_notify_function uintptr + Fsigev_notify_attributes uintptr + } + F__pad [48]int8 + } +} + +type Tsig_atomic_t = int32 + +type TElf32_Half = uint16 + +type TElf64_Half = uint16 + +type TElf32_Word = uint32 + +type TElf32_Sword = int32 + +type TElf64_Word = uint32 + +type TElf64_Sword = int32 + +type TElf32_Xword = uint64 + +type TElf32_Sxword = int64 + +type TElf64_Xword = uint64 + +type TElf64_Sxword = int64 + +type TElf32_Addr = uint32 + +type TElf64_Addr = uint64 + +type TElf32_Off = uint32 + +type TElf64_Off = uint64 + +type TElf32_Section = uint16 + +type TElf64_Section = uint16 + +type TElf32_Versym = uint16 + +type TElf64_Versym = uint16 + +type TElf32_Ehdr = struct { + Fe_ident [16]uint8 + Fe_type TElf32_Half + Fe_machine TElf32_Half + Fe_version TElf32_Word + Fe_entry TElf32_Addr + Fe_phoff TElf32_Off + Fe_shoff TElf32_Off + Fe_flags TElf32_Word + Fe_ehsize TElf32_Half + Fe_phentsize TElf32_Half + Fe_phnum TElf32_Half + Fe_shentsize TElf32_Half + Fe_shnum TElf32_Half + Fe_shstrndx TElf32_Half +} + +type TElf64_Ehdr = struct { + Fe_ident [16]uint8 + Fe_type TElf64_Half + Fe_machine TElf64_Half + Fe_version TElf64_Word + Fe_entry TElf64_Addr + Fe_phoff TElf64_Off + Fe_shoff TElf64_Off + Fe_flags TElf64_Word + Fe_ehsize TElf64_Half + Fe_phentsize TElf64_Half + Fe_phnum TElf64_Half + Fe_shentsize TElf64_Half + Fe_shnum TElf64_Half + Fe_shstrndx TElf64_Half +} + +type TElf32_Shdr = struct { + Fsh_name TElf32_Word + Fsh_type TElf32_Word + Fsh_flags TElf32_Word + Fsh_addr TElf32_Addr + Fsh_offset TElf32_Off + Fsh_size TElf32_Word + Fsh_link TElf32_Word + Fsh_info TElf32_Word + Fsh_addralign TElf32_Word + Fsh_entsize TElf32_Word +} + +type TElf64_Shdr = struct { + Fsh_name TElf64_Word + Fsh_type TElf64_Word + Fsh_flags TElf64_Xword + Fsh_addr TElf64_Addr + Fsh_offset TElf64_Off + Fsh_size TElf64_Xword + Fsh_link TElf64_Word + Fsh_info TElf64_Word + Fsh_addralign TElf64_Xword + Fsh_entsize TElf64_Xword +} + +type TElf32_Chdr = struct { + Fch_type TElf32_Word + Fch_size TElf32_Word + Fch_addralign TElf32_Word +} + +type TElf64_Chdr = struct { + Fch_type TElf64_Word + Fch_reserved TElf64_Word + Fch_size TElf64_Xword + Fch_addralign TElf64_Xword +} + +type TElf32_Sym = struct { + Fst_name TElf32_Word + Fst_value TElf32_Addr + Fst_size TElf32_Word + Fst_info uint8 + Fst_other uint8 + Fst_shndx TElf32_Section +} + +type TElf64_Sym = struct { + Fst_name TElf64_Word + Fst_info uint8 + Fst_other uint8 + Fst_shndx TElf64_Section + Fst_value TElf64_Addr + Fst_size TElf64_Xword +} + +type TElf32_Syminfo = struct { + Fsi_boundto TElf32_Half + Fsi_flags TElf32_Half +} + +type TElf64_Syminfo = struct { + Fsi_boundto TElf64_Half + Fsi_flags TElf64_Half +} + +type TElf32_Rel = struct { + Fr_offset TElf32_Addr + Fr_info TElf32_Word +} + +type TElf64_Rel = struct { + Fr_offset TElf64_Addr + Fr_info TElf64_Xword +} + +type TElf32_Rela = struct { + Fr_offset TElf32_Addr + Fr_info TElf32_Word + Fr_addend TElf32_Sword +} + +type TElf64_Rela = struct { + Fr_offset TElf64_Addr + Fr_info TElf64_Xword + Fr_addend TElf64_Sxword +} + +type TElf32_Relr = uint32 + +type TElf64_Relr = uint64 + +type TElf32_Phdr = struct { + Fp_type TElf32_Word + Fp_offset TElf32_Off + Fp_vaddr TElf32_Addr + Fp_paddr TElf32_Addr + Fp_filesz TElf32_Word + Fp_memsz TElf32_Word + Fp_flags TElf32_Word + Fp_align TElf32_Word +} + +type TElf64_Phdr = struct { + Fp_type TElf64_Word + Fp_flags TElf64_Word + Fp_offset TElf64_Off + Fp_vaddr TElf64_Addr + Fp_paddr TElf64_Addr + Fp_filesz TElf64_Xword + Fp_memsz TElf64_Xword + Fp_align TElf64_Xword +} + +type TElf32_Dyn = struct { + Fd_tag TElf32_Sword + Fd_un struct { + Fd_ptr [0]TElf32_Addr + Fd_val TElf32_Word + } +} + +type TElf64_Dyn = struct { + Fd_tag TElf64_Sxword + Fd_un struct { + Fd_ptr [0]TElf64_Addr + Fd_val TElf64_Xword + } +} + +type TElf32_Verdef = struct { + Fvd_version TElf32_Half + Fvd_flags TElf32_Half + Fvd_ndx TElf32_Half + Fvd_cnt TElf32_Half + Fvd_hash TElf32_Word + Fvd_aux TElf32_Word + Fvd_next TElf32_Word +} + +type TElf64_Verdef = struct { + Fvd_version TElf64_Half + Fvd_flags TElf64_Half + Fvd_ndx TElf64_Half + Fvd_cnt TElf64_Half + Fvd_hash TElf64_Word + Fvd_aux TElf64_Word + Fvd_next TElf64_Word +} + +type TElf32_Verdaux = struct { + Fvda_name TElf32_Word + Fvda_next TElf32_Word +} + +type TElf64_Verdaux = struct { + Fvda_name TElf64_Word + Fvda_next TElf64_Word +} + +type TElf32_Verneed = struct { + Fvn_version TElf32_Half + Fvn_cnt TElf32_Half + Fvn_file TElf32_Word + Fvn_aux TElf32_Word + Fvn_next TElf32_Word +} + +type TElf64_Verneed = struct { + Fvn_version TElf64_Half + Fvn_cnt TElf64_Half + Fvn_file TElf64_Word + Fvn_aux TElf64_Word + Fvn_next TElf64_Word +} + +type TElf32_Vernaux = struct { + Fvna_hash TElf32_Word + Fvna_flags TElf32_Half + Fvna_other TElf32_Half + Fvna_name TElf32_Word + Fvna_next TElf32_Word +} + +type TElf64_Vernaux = struct { + Fvna_hash TElf64_Word + Fvna_flags TElf64_Half + Fvna_other TElf64_Half + Fvna_name TElf64_Word + Fvna_next TElf64_Word +} + +type TElf32_auxv_t = struct { + Fa_type Tuint32_t + Fa_un struct { + Fa_val Tuint32_t + } +} + +type TElf64_auxv_t = struct { + Fa_type Tuint64_t + Fa_un struct { + Fa_val Tuint64_t + } +} + +type TElf32_Nhdr = struct { + Fn_namesz TElf32_Word + Fn_descsz TElf32_Word + Fn_type TElf32_Word +} + +type TElf64_Nhdr = struct { + Fn_namesz TElf64_Word + Fn_descsz TElf64_Word + Fn_type TElf64_Word +} + +type TElf32_Move = struct { + Fm_value TElf32_Xword + Fm_info TElf32_Word + Fm_poffset TElf32_Word + Fm_repeat TElf32_Half + Fm_stride TElf32_Half +} + +type TElf64_Move = struct { + Fm_value TElf64_Xword + Fm_info TElf64_Xword + Fm_poffset TElf64_Xword + Fm_repeat TElf64_Half + Fm_stride TElf64_Half +} + +type TElf32_gptab = struct { + Fgt_entry [0]struct { + Fgt_g_value TElf32_Word + Fgt_bytes TElf32_Word + } + Fgt_header struct { + Fgt_current_g_value TElf32_Word + Fgt_unused TElf32_Word + } +} + +type TElf32_RegInfo = struct { + Fri_gprmask TElf32_Word + Fri_cprmask [4]TElf32_Word + Fri_gp_value TElf32_Sword +} + +type TElf_Options = struct { + Fkind uint8 + Fsize uint8 + Fsection TElf32_Section + Finfo TElf32_Word +} + +type TElf_Options_Hw = struct { + Fhwp_flags1 TElf32_Word + Fhwp_flags2 TElf32_Word +} + +type TElf32_Lib = struct { + Fl_name TElf32_Word + Fl_time_stamp TElf32_Word + Fl_checksum TElf32_Word + Fl_version TElf32_Word + Fl_flags TElf32_Word +} + +type TElf64_Lib = struct { + Fl_name TElf64_Word + Fl_time_stamp TElf64_Word + Fl_checksum TElf64_Word + Fl_version TElf64_Word + Fl_flags TElf64_Word +} + +type TElf32_Conflict = uint32 + +type TElf_MIPS_ABIFlags_v0 = struct { + Fversion TElf32_Half + Fisa_level uint8 + Fisa_rev uint8 + Fgpr_size uint8 + Fcpr1_size uint8 + Fcpr2_size uint8 + Ffp_abi uint8 + Fisa_ext TElf32_Word + Fases TElf32_Word + Fflags1 TElf32_Word + Fflags2 TElf32_Word +} + +const _Val_GNU_MIPS_ABI_FP_ANY = 0 +const _Val_GNU_MIPS_ABI_FP_DOUBLE = 1 +const _Val_GNU_MIPS_ABI_FP_SINGLE = 2 +const _Val_GNU_MIPS_ABI_FP_SOFT = 3 +const _Val_GNU_MIPS_ABI_FP_OLD_64 = 4 +const _Val_GNU_MIPS_ABI_FP_XX = 5 +const _Val_GNU_MIPS_ABI_FP_64 = 6 +const _Val_GNU_MIPS_ABI_FP_64A = 7 +const _Val_GNU_MIPS_ABI_FP_MAX = 7 + +type Tsyscall_arg_t = int64 + +type Twchar_t = int32 + +type Tdiv_t = struct { + Fquot int32 + Frem int32 +} + +type Tldiv_t = struct { + Fquot int64 + Frem int64 +} + +type Tlldiv_t = struct { + Fquot int64 + Frem int64 +} + +type t__locale_struct = struct { + Fcat [6]uintptr +} + +type Ttls_module = struct { + Fnext uintptr + Fimage uintptr + Flen1 Tsize_t + Fsize Tsize_t + Falign Tsize_t + Foffset Tsize_t +} + +type t__libc = struct { + Fcan_do_threads int8 + Fthreaded int8 + Fsecure int8 + Fneed_locks int8 + Fthreads_minus_1 int32 + Fauxv uintptr + Ftls_head uintptr + Ftls_size Tsize_t + Ftls_align Tsize_t + Ftls_cnt Tsize_t + Fpage_size Tsize_t + Fglobal_locale t__locale_struct +} + +func Xsysconf(tls *TLS, name int32) (r int64) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(512) + defer tls.Free(512) + var cnt, i, v3 int32 + var mem, v1 uint64 + var val int64 + var v5 uintptr + var _ /* lim at bp+0 */ Trlimit + var _ /* set at bp+16 */ [128]uint8 + var _ /* si at bp+144 */ Tsysinfo + _, _, _, _, _, _, _ = cnt, i, mem, val, v1, v3, v5 + if Uint64FromInt32(name) >= Uint64FromInt64(502)/Uint64FromInt64(2) || !(_values1[name] != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return int64(-int32(1)) + } else { + if int32(_values1[name]) >= -int32(1) { + return int64(_values1[name]) + } else { + if int32(_values1[name]) < -int32(256) { + Xgetrlimit(tls, int32(_values1[name])&int32(16383), bp) + if (**(**Trlimit)(__ccgo_up(bp))).Frlim_cur == ^Uint64FromUint64(0) { + return int64(-int32(1)) + } + if (**(**Trlimit)(__ccgo_up(bp))).Frlim_cur > uint64(0x7fffffffffffffff) { + v1 = uint64(0x7fffffffffffffff) + } else { + v1 = (**(**Trlimit)(__ccgo_up(bp))).Frlim_cur + } + return Int64FromUint64(v1) + } + } + } + switch Int32FromUint8(Uint8FromInt16(_values1[name])) { + case (-Int32FromInt32(256) | Int32FromInt32(1)) & Int32FromInt32(255): + return int64(200809) + case (-Int32FromInt32(256) | Int32FromInt32(2)) & Int32FromInt32(255): + return int64(ARG_MAX) + case (-Int32FromInt32(256) | Int32FromInt32(3)) & Int32FromInt32(255): + return int64(MQ_PRIO_MAX) + case (-Int32FromInt32(256) | Int32FromInt32(4)) & Int32FromInt32(255): + return int64(PAGESIZE) + case (-Int32FromInt32(256) | Int32FromInt32(5)) & Int32FromInt32(255): + return int64(SEM_VALUE_MAX) + case (-Int32FromInt32(256) | Int32FromInt32(11)) & Int32FromInt32(255): + return int64(DELAYTIMER_MAX) + case (-Int32FromInt32(256) | Int32FromInt32(6)) & Int32FromInt32(255): + fallthrough + case (-Int32FromInt32(256) | Int32FromInt32(7)) & Int32FromInt32(255): + **(**[128]uint8)(__ccgo_up(bp + 16)) = [128]uint8{ + 0: uint8(1), + } + X__syscall3(tls, int64(SYS_sched_getaffinity), int64(Int32FromInt32(0)), Int64FromUint64(Uint64FromInt64(128)), int64(bp+16)) + v3 = Int32FromInt32(0) + cnt = v3 + i = v3 + for { + if !(Uint64FromInt32(i) < uint64(128)) { + break + } + for { + if !((**(**[128]uint8)(__ccgo_up(bp + 16)))[i] != 0) { + break + } + goto _4 + _4: + ; + v5 = bp + 16 + uintptr(i) + *(*uint8)(unsafe.Pointer(v5)) = uint8(int32(*(*uint8)(unsafe.Pointer(v5))) & (Int32FromUint8((**(**[128]uint8)(__ccgo_up(bp + 16)))[i]) - Int32FromInt32(1))) + cnt = cnt + 1 + } + goto _2 + _2: + ; + i = i + 1 + } + return int64(cnt) + case (-Int32FromInt32(256) | Int32FromInt32(8)) & Int32FromInt32(255): + fallthrough + case (-Int32FromInt32(256) | Int32FromInt32(9)) & Int32FromInt32(255): + X__lsysinfo(tls, bp+144) + if !((**(**Tsysinfo)(__ccgo_up(bp + 144))).Fmem_unit != 0) { + (**(**Tsysinfo)(__ccgo_up(bp + 144))).Fmem_unit = uint32(1) + } + if name == int32(_SC_PHYS_PAGES) { + mem = uint64((**(**Tsysinfo)(__ccgo_up(bp + 144))).Ftotalram) + } else { + mem = uint64((**(**Tsysinfo)(__ccgo_up(bp + 144))).Ffreeram + (**(**Tsysinfo)(__ccgo_up(bp + 144))).Fbufferram) + } + mem = mem * uint64((**(**Tsysinfo)(__ccgo_up(bp + 144))).Fmem_unit) + mem = mem / uint64(PAGESIZE) + if mem > uint64(0x7fffffffffffffff) { + v1 = uint64(0x7fffffffffffffff) + } else { + v1 = mem + } + return Int64FromUint64(v1) + case (-Int32FromInt32(256) | Int32FromInt32(12)) & Int32FromInt32(255): + fallthrough + case (-Int32FromInt32(256) | Int32FromInt32(13)) & Int32FromInt32(255): + val = Int64FromUint64(X__getauxval(tls, uint64(AT_MINSIGSTKSZ))) + if val < int64(MINSIGSTKSZ) { + val = int64(MINSIGSTKSZ) + } + if int32(_values1[name]) == -Int32FromInt32(256)|Int32FromInt32(13) { + val = val + int64(Int32FromInt32(SIGSTKSZ)-Int32FromInt32(MINSIGSTKSZ)) + } + return val + case (-Int32FromInt32(256) | Int32FromInt32(10)) & Int32FromInt32(255): + return 0 + } + return int64(_values1[name]) +} + +var _values1 = [251]int16{ + 0: int16(-Int32FromInt32(256) | Int32FromInt32(2)), + 1: int16(-Int32FromInt32(32768) | Int32FromInt32(RLIMIT_NPROC)), + 2: int16(100), + 3: int16(32), + 4: int16(-Int32FromInt32(32768) | Int32FromInt32(RLIMIT_NOFILE)), + 5: int16(-int32(1)), + 6: int16(TZNAME_MAX), + 7: int16(1), + 8: int16(1), + 9: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 10: int16(-int32(1)), + 11: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 12: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 13: int16(-int32(1)), + 14: int16(-int32(1)), + 15: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 16: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 17: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 18: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 19: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 20: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 21: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 22: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 23: int16(-int32(1)), + 24: int16(-int32(1)), + 25: int16(-Int32FromInt32(256) | Int32FromInt32(10)), + 26: int16(-Int32FromInt32(256) | Int32FromInt32(11)), + 27: int16(-int32(1)), + 28: int16(-Int32FromInt32(256) | Int32FromInt32(3)), + 29: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 30: int16(-Int32FromInt32(256) | Int32FromInt32(4)), + 31: int16(Int32FromInt32(_NSIG) - Int32FromInt32(1) - Int32FromInt32(31) - Int32FromInt32(3)), + 32: int16(SEM_NSEMS_MAX), + 33: int16(-Int32FromInt32(256) | Int32FromInt32(5)), + 34: int16(-int32(1)), + 35: int16(-int32(1)), + 36: int16(_POSIX2_BC_BASE_MAX), + 37: int16(_POSIX2_BC_DIM_MAX), + 38: int16(_POSIX2_BC_SCALE_MAX), + 39: int16(_POSIX2_BC_STRING_MAX), + 40: int16(COLL_WEIGHTS_MAX), + 42: int16(-int32(1)), + 43: int16(-int32(1)), + 44: int16(RE_DUP_MAX), + 46: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 47: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 48: int16(-int32(1)), + 49: int16(-int32(1)), + 50: int16(-int32(1)), + 51: int16(-int32(1)), + 52: int16(-int32(1)), + 60: int16(IOV_MAX), + 67: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 68: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 69: int16(-int32(1)), + 70: int16(-int32(1)), + 71: int16(256), + 72: int16(TTY_NAME_MAX), + 73: int16(PTHREAD_DESTRUCTOR_ITERATIONS), + 74: int16(PTHREAD_KEYS_MAX), + 75: int16(PTHREAD_STACK_MIN), + 76: int16(-int32(1)), + 77: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 78: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 79: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 80: int16(-int32(1)), + 81: int16(-int32(1)), + 82: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 83: int16(-Int32FromInt32(256) | Int32FromInt32(6)), + 84: int16(-Int32FromInt32(256) | Int32FromInt32(7)), + 85: int16(-Int32FromInt32(256) | Int32FromInt32(8)), + 86: int16(-Int32FromInt32(256) | Int32FromInt32(9)), + 87: int16(-int32(1)), + 88: int16(-int32(1)), + 89: int16(_XOPEN_VERSION), + 90: int16(_XOPEN_VERSION), + 91: int16(1), + 92: int16(-int32(1)), + 93: int16(1), + 94: int16(1), + 95: int16(-int32(1)), + 97: int16(-int32(1)), + 98: int16(-int32(1)), + 99: int16(-int32(1)), + 100: int16(-int32(1)), + 109: int16(NZERO), + 125: int16(-int32(1)), + 126: int16(-int32(1)), + 127: int16(1), + 128: int16(-int32(1)), + 129: int16(-int32(1)), + 130: int16(-int32(1)), + 131: int16(-int32(1)), + 132: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 133: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 137: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 138: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 139: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 149: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 153: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 154: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 155: int16(1), + 157: int16(1), + 159: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 160: int16(-int32(1)), + 161: int16(-int32(1)), + 164: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 165: int16(-int32(1)), + 168: int16(-int32(1)), + 169: int16(-int32(1)), + 170: int16(-int32(1)), + 171: int16(-int32(1)), + 172: int16(-int32(1)), + 173: int16(SYMLOOP_MAX), + 174: int16(-Int32FromInt32(256) | Int32FromInt32(10)), + 175: int16(-int32(1)), + 176: int16(-int32(1)), + 177: int16(-int32(1)), + 178: int16(1), + 179: int16(-int32(1)), + 180: int16(HOST_NAME_MAX), + 181: int16(-int32(1)), + 182: int16(-int32(1)), + 183: int16(-int32(1)), + 184: int16(-int32(1)), + 235: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 236: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 237: int16(-int32(1)), + 238: int16(-int32(1)), + 239: int16(1), + 240: int16(-int32(1)), + 241: int16(-int32(1)), + 242: int16(-int32(1)), + 243: int16(-int32(1)), + 244: int16(-int32(1)), + 245: int16(-int32(1)), + 246: int16(-Int32FromInt32(256) | Int32FromInt32(10)), + 247: int16(-int32(1)), + 248: int16(-int32(1)), + 249: int16(-Int32FromInt32(256) | Int32FromInt32(12)), + 250: int16(-Int32FromInt32(256) | Int32FromInt32(13)), +} + +type Tcrypt_data = struct { + Finitialized int32 + F__buf [256]int8 +} + +func Xcrypt(tls *TLS, key uintptr, salt uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v salt=%v, (%v:)", tls, key, salt, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__crypt_r(tls, key, salt, uintptr(unsafe.Pointer(&_buf))) +} + +/* This buffer is sufficiently large for all + * currently-supported hash types. It needs to be updated if + * longer hashes are added. The cast to struct crypt_data * is + * purely to meet the public API requirements of the crypt_r + * function; the implementation of crypt_r uses the object + * purely as a char buffer. */ +var _buf [128]int8 + +const BF_N = 16 + +type Tlocale_t = uintptr + +type TBF_word = uint32 + +type TBF_word_signed = int32 + +/* Number of Blowfish rounds, this is also hardcoded into a few places */ + +type TBF_key = [18]TBF_word + +type TBF_ctx = struct { + FPS [0][1042]TBF_word + Fs struct { + FP TBF_key + FS [4][256]TBF_word + } +} + +// C documentation +// +// /* +// * Magic IV for 64 Blowfish encryptions that we do at the end. +// * The string is "OrpheanBeholderScryDoubt" on big-endian. +// */ +var _BF_magic_w = [6]TBF_word{ + 0: uint32(0x4F727068), + 1: uint32(0x65616E42), + 2: uint32(0x65686F6C), + 3: uint32(0x64657253), + 4: uint32(0x63727944), + 5: uint32(0x6F756274), +} + +// C documentation +// +// /* +// * P-box and S-box tables initialized with digits of Pi. +// */ +var _BF_init_state = *(*TBF_ctx)(unsafe.Pointer(&struct { + FP TBF_key + FS [4][256]TBF_word +}{ + FP: TBF_key{ + 0: uint32(0x243f6a88), + 1: uint32(0x85a308d3), + 2: uint32(0x13198a2e), + 3: uint32(0x03707344), + 4: uint32(0xa4093822), + 5: uint32(0x299f31d0), + 6: uint32(0x082efa98), + 7: uint32(0xec4e6c89), + 8: uint32(0x452821e6), + 9: uint32(0x38d01377), + 10: uint32(0xbe5466cf), + 11: uint32(0x34e90c6c), + 12: uint32(0xc0ac29b7), + 13: uint32(0xc97c50dd), + 14: uint32(0x3f84d5b5), + 15: uint32(0xb5470917), + 16: uint32(0x9216d5d9), + 17: uint32(0x8979fb1b), + }, + FS: [4][256]TBF_word{ + 0: { + 0: uint32(0xd1310ba6), + 1: uint32(0x98dfb5ac), + 2: uint32(0x2ffd72db), + 3: uint32(0xd01adfb7), + 4: uint32(0xb8e1afed), + 5: uint32(0x6a267e96), + 6: uint32(0xba7c9045), + 7: uint32(0xf12c7f99), + 8: uint32(0x24a19947), + 9: uint32(0xb3916cf7), + 10: uint32(0x0801f2e2), + 11: uint32(0x858efc16), + 12: uint32(0x636920d8), + 13: uint32(0x71574e69), + 14: uint32(0xa458fea3), + 15: uint32(0xf4933d7e), + 16: uint32(0x0d95748f), + 17: uint32(0x728eb658), + 18: uint32(0x718bcd58), + 19: uint32(0x82154aee), + 20: uint32(0x7b54a41d), + 21: uint32(0xc25a59b5), + 22: uint32(0x9c30d539), + 23: uint32(0x2af26013), + 24: uint32(0xc5d1b023), + 25: uint32(0x286085f0), + 26: uint32(0xca417918), + 27: uint32(0xb8db38ef), + 28: uint32(0x8e79dcb0), + 29: uint32(0x603a180e), + 30: uint32(0x6c9e0e8b), + 31: uint32(0xb01e8a3e), + 32: uint32(0xd71577c1), + 33: uint32(0xbd314b27), + 34: uint32(0x78af2fda), + 35: uint32(0x55605c60), + 36: uint32(0xe65525f3), + 37: uint32(0xaa55ab94), + 38: uint32(0x57489862), + 39: uint32(0x63e81440), + 40: uint32(0x55ca396a), + 41: uint32(0x2aab10b6), + 42: uint32(0xb4cc5c34), + 43: uint32(0x1141e8ce), + 44: uint32(0xa15486af), + 45: uint32(0x7c72e993), + 46: uint32(0xb3ee1411), + 47: uint32(0x636fbc2a), + 48: uint32(0x2ba9c55d), + 49: uint32(0x741831f6), + 50: uint32(0xce5c3e16), + 51: uint32(0x9b87931e), + 52: uint32(0xafd6ba33), + 53: uint32(0x6c24cf5c), + 54: uint32(0x7a325381), + 55: uint32(0x28958677), + 56: uint32(0x3b8f4898), + 57: uint32(0x6b4bb9af), + 58: uint32(0xc4bfe81b), + 59: uint32(0x66282193), + 60: uint32(0x61d809cc), + 61: uint32(0xfb21a991), + 62: uint32(0x487cac60), + 63: uint32(0x5dec8032), + 64: uint32(0xef845d5d), + 65: uint32(0xe98575b1), + 66: uint32(0xdc262302), + 67: uint32(0xeb651b88), + 68: uint32(0x23893e81), + 69: uint32(0xd396acc5), + 70: uint32(0x0f6d6ff3), + 71: uint32(0x83f44239), + 72: uint32(0x2e0b4482), + 73: uint32(0xa4842004), + 74: uint32(0x69c8f04a), + 75: uint32(0x9e1f9b5e), + 76: uint32(0x21c66842), + 77: uint32(0xf6e96c9a), + 78: uint32(0x670c9c61), + 79: uint32(0xabd388f0), + 80: uint32(0x6a51a0d2), + 81: uint32(0xd8542f68), + 82: uint32(0x960fa728), + 83: uint32(0xab5133a3), + 84: uint32(0x6eef0b6c), + 85: uint32(0x137a3be4), + 86: uint32(0xba3bf050), + 87: uint32(0x7efb2a98), + 88: uint32(0xa1f1651d), + 89: uint32(0x39af0176), + 90: uint32(0x66ca593e), + 91: uint32(0x82430e88), + 92: uint32(0x8cee8619), + 93: uint32(0x456f9fb4), + 94: uint32(0x7d84a5c3), + 95: uint32(0x3b8b5ebe), + 96: uint32(0xe06f75d8), + 97: uint32(0x85c12073), + 98: uint32(0x401a449f), + 99: uint32(0x56c16aa6), + 100: uint32(0x4ed3aa62), + 101: uint32(0x363f7706), + 102: uint32(0x1bfedf72), + 103: uint32(0x429b023d), + 104: uint32(0x37d0d724), + 105: uint32(0xd00a1248), + 106: uint32(0xdb0fead3), + 107: uint32(0x49f1c09b), + 108: uint32(0x075372c9), + 109: uint32(0x80991b7b), + 110: uint32(0x25d479d8), + 111: uint32(0xf6e8def7), + 112: uint32(0xe3fe501a), + 113: uint32(0xb6794c3b), + 114: uint32(0x976ce0bd), + 115: uint32(0x04c006ba), + 116: uint32(0xc1a94fb6), + 117: uint32(0x409f60c4), + 118: uint32(0x5e5c9ec2), + 119: uint32(0x196a2463), + 120: uint32(0x68fb6faf), + 121: uint32(0x3e6c53b5), + 122: uint32(0x1339b2eb), + 123: uint32(0x3b52ec6f), + 124: uint32(0x6dfc511f), + 125: uint32(0x9b30952c), + 126: uint32(0xcc814544), + 127: uint32(0xaf5ebd09), + 128: uint32(0xbee3d004), + 129: uint32(0xde334afd), + 130: uint32(0x660f2807), + 131: uint32(0x192e4bb3), + 132: uint32(0xc0cba857), + 133: uint32(0x45c8740f), + 134: uint32(0xd20b5f39), + 135: uint32(0xb9d3fbdb), + 136: uint32(0x5579c0bd), + 137: uint32(0x1a60320a), + 138: uint32(0xd6a100c6), + 139: uint32(0x402c7279), + 140: uint32(0x679f25fe), + 141: uint32(0xfb1fa3cc), + 142: uint32(0x8ea5e9f8), + 143: uint32(0xdb3222f8), + 144: uint32(0x3c7516df), + 145: uint32(0xfd616b15), + 146: uint32(0x2f501ec8), + 147: uint32(0xad0552ab), + 148: uint32(0x323db5fa), + 149: uint32(0xfd238760), + 150: uint32(0x53317b48), + 151: uint32(0x3e00df82), + 152: uint32(0x9e5c57bb), + 153: uint32(0xca6f8ca0), + 154: uint32(0x1a87562e), + 155: uint32(0xdf1769db), + 156: uint32(0xd542a8f6), + 157: uint32(0x287effc3), + 158: uint32(0xac6732c6), + 159: uint32(0x8c4f5573), + 160: uint32(0x695b27b0), + 161: uint32(0xbbca58c8), + 162: uint32(0xe1ffa35d), + 163: uint32(0xb8f011a0), + 164: uint32(0x10fa3d98), + 165: uint32(0xfd2183b8), + 166: uint32(0x4afcb56c), + 167: uint32(0x2dd1d35b), + 168: uint32(0x9a53e479), + 169: uint32(0xb6f84565), + 170: uint32(0xd28e49bc), + 171: uint32(0x4bfb9790), + 172: uint32(0xe1ddf2da), + 173: uint32(0xa4cb7e33), + 174: uint32(0x62fb1341), + 175: uint32(0xcee4c6e8), + 176: uint32(0xef20cada), + 177: uint32(0x36774c01), + 178: uint32(0xd07e9efe), + 179: uint32(0x2bf11fb4), + 180: uint32(0x95dbda4d), + 181: uint32(0xae909198), + 182: uint32(0xeaad8e71), + 183: uint32(0x6b93d5a0), + 184: uint32(0xd08ed1d0), + 185: uint32(0xafc725e0), + 186: uint32(0x8e3c5b2f), + 187: uint32(0x8e7594b7), + 188: uint32(0x8ff6e2fb), + 189: uint32(0xf2122b64), + 190: uint32(0x8888b812), + 191: uint32(0x900df01c), + 192: uint32(0x4fad5ea0), + 193: uint32(0x688fc31c), + 194: uint32(0xd1cff191), + 195: uint32(0xb3a8c1ad), + 196: uint32(0x2f2f2218), + 197: uint32(0xbe0e1777), + 198: uint32(0xea752dfe), + 199: uint32(0x8b021fa1), + 200: uint32(0xe5a0cc0f), + 201: uint32(0xb56f74e8), + 202: uint32(0x18acf3d6), + 203: uint32(0xce89e299), + 204: uint32(0xb4a84fe0), + 205: uint32(0xfd13e0b7), + 206: uint32(0x7cc43b81), + 207: uint32(0xd2ada8d9), + 208: uint32(0x165fa266), + 209: uint32(0x80957705), + 210: uint32(0x93cc7314), + 211: uint32(0x211a1477), + 212: uint32(0xe6ad2065), + 213: uint32(0x77b5fa86), + 214: uint32(0xc75442f5), + 215: uint32(0xfb9d35cf), + 216: uint32(0xebcdaf0c), + 217: uint32(0x7b3e89a0), + 218: uint32(0xd6411bd3), + 219: uint32(0xae1e7e49), + 220: uint32(0x00250e2d), + 221: uint32(0x2071b35e), + 222: uint32(0x226800bb), + 223: uint32(0x57b8e0af), + 224: uint32(0x2464369b), + 225: uint32(0xf009b91e), + 226: uint32(0x5563911d), + 227: uint32(0x59dfa6aa), + 228: uint32(0x78c14389), + 229: uint32(0xd95a537f), + 230: uint32(0x207d5ba2), + 231: uint32(0x02e5b9c5), + 232: uint32(0x83260376), + 233: uint32(0x6295cfa9), + 234: uint32(0x11c81968), + 235: uint32(0x4e734a41), + 236: uint32(0xb3472dca), + 237: uint32(0x7b14a94a), + 238: uint32(0x1b510052), + 239: uint32(0x9a532915), + 240: uint32(0xd60f573f), + 241: uint32(0xbc9bc6e4), + 242: uint32(0x2b60a476), + 243: uint32(0x81e67400), + 244: uint32(0x08ba6fb5), + 245: uint32(0x571be91f), + 246: uint32(0xf296ec6b), + 247: uint32(0x2a0dd915), + 248: uint32(0xb6636521), + 249: uint32(0xe7b9f9b6), + 250: uint32(0xff34052e), + 251: uint32(0xc5855664), + 252: uint32(0x53b02d5d), + 253: uint32(0xa99f8fa1), + 254: uint32(0x08ba4799), + 255: uint32(0x6e85076a), + }, + 1: { + 0: uint32(0x4b7a70e9), + 1: uint32(0xb5b32944), + 2: uint32(0xdb75092e), + 3: uint32(0xc4192623), + 4: uint32(0xad6ea6b0), + 5: uint32(0x49a7df7d), + 6: uint32(0x9cee60b8), + 7: uint32(0x8fedb266), + 8: uint32(0xecaa8c71), + 9: uint32(0x699a17ff), + 10: uint32(0x5664526c), + 11: uint32(0xc2b19ee1), + 12: uint32(0x193602a5), + 13: uint32(0x75094c29), + 14: uint32(0xa0591340), + 15: uint32(0xe4183a3e), + 16: uint32(0x3f54989a), + 17: uint32(0x5b429d65), + 18: uint32(0x6b8fe4d6), + 19: uint32(0x99f73fd6), + 20: uint32(0xa1d29c07), + 21: uint32(0xefe830f5), + 22: uint32(0x4d2d38e6), + 23: uint32(0xf0255dc1), + 24: uint32(0x4cdd2086), + 25: uint32(0x8470eb26), + 26: uint32(0x6382e9c6), + 27: uint32(0x021ecc5e), + 28: uint32(0x09686b3f), + 29: uint32(0x3ebaefc9), + 30: uint32(0x3c971814), + 31: uint32(0x6b6a70a1), + 32: uint32(0x687f3584), + 33: uint32(0x52a0e286), + 34: uint32(0xb79c5305), + 35: uint32(0xaa500737), + 36: uint32(0x3e07841c), + 37: uint32(0x7fdeae5c), + 38: uint32(0x8e7d44ec), + 39: uint32(0x5716f2b8), + 40: uint32(0xb03ada37), + 41: uint32(0xf0500c0d), + 42: uint32(0xf01c1f04), + 43: uint32(0x0200b3ff), + 44: uint32(0xae0cf51a), + 45: uint32(0x3cb574b2), + 46: uint32(0x25837a58), + 47: uint32(0xdc0921bd), + 48: uint32(0xd19113f9), + 49: uint32(0x7ca92ff6), + 50: uint32(0x94324773), + 51: uint32(0x22f54701), + 52: uint32(0x3ae5e581), + 53: uint32(0x37c2dadc), + 54: uint32(0xc8b57634), + 55: uint32(0x9af3dda7), + 56: uint32(0xa9446146), + 57: uint32(0x0fd0030e), + 58: uint32(0xecc8c73e), + 59: uint32(0xa4751e41), + 60: uint32(0xe238cd99), + 61: uint32(0x3bea0e2f), + 62: uint32(0x3280bba1), + 63: uint32(0x183eb331), + 64: uint32(0x4e548b38), + 65: uint32(0x4f6db908), + 66: uint32(0x6f420d03), + 67: uint32(0xf60a04bf), + 68: uint32(0x2cb81290), + 69: uint32(0x24977c79), + 70: uint32(0x5679b072), + 71: uint32(0xbcaf89af), + 72: uint32(0xde9a771f), + 73: uint32(0xd9930810), + 74: uint32(0xb38bae12), + 75: uint32(0xdccf3f2e), + 76: uint32(0x5512721f), + 77: uint32(0x2e6b7124), + 78: uint32(0x501adde6), + 79: uint32(0x9f84cd87), + 80: uint32(0x7a584718), + 81: uint32(0x7408da17), + 82: uint32(0xbc9f9abc), + 83: uint32(0xe94b7d8c), + 84: uint32(0xec7aec3a), + 85: uint32(0xdb851dfa), + 86: uint32(0x63094366), + 87: uint32(0xc464c3d2), + 88: uint32(0xef1c1847), + 89: uint32(0x3215d908), + 90: uint32(0xdd433b37), + 91: uint32(0x24c2ba16), + 92: uint32(0x12a14d43), + 93: uint32(0x2a65c451), + 94: uint32(0x50940002), + 95: uint32(0x133ae4dd), + 96: uint32(0x71dff89e), + 97: uint32(0x10314e55), + 98: uint32(0x81ac77d6), + 99: uint32(0x5f11199b), + 100: uint32(0x043556f1), + 101: uint32(0xd7a3c76b), + 102: uint32(0x3c11183b), + 103: uint32(0x5924a509), + 104: uint32(0xf28fe6ed), + 105: uint32(0x97f1fbfa), + 106: uint32(0x9ebabf2c), + 107: uint32(0x1e153c6e), + 108: uint32(0x86e34570), + 109: uint32(0xeae96fb1), + 110: uint32(0x860e5e0a), + 111: uint32(0x5a3e2ab3), + 112: uint32(0x771fe71c), + 113: uint32(0x4e3d06fa), + 114: uint32(0x2965dcb9), + 115: uint32(0x99e71d0f), + 116: uint32(0x803e89d6), + 117: uint32(0x5266c825), + 118: uint32(0x2e4cc978), + 119: uint32(0x9c10b36a), + 120: uint32(0xc6150eba), + 121: uint32(0x94e2ea78), + 122: uint32(0xa5fc3c53), + 123: uint32(0x1e0a2df4), + 124: uint32(0xf2f74ea7), + 125: uint32(0x361d2b3d), + 126: uint32(0x1939260f), + 127: uint32(0x19c27960), + 128: uint32(0x5223a708), + 129: uint32(0xf71312b6), + 130: uint32(0xebadfe6e), + 131: uint32(0xeac31f66), + 132: uint32(0xe3bc4595), + 133: uint32(0xa67bc883), + 134: uint32(0xb17f37d1), + 135: uint32(0x018cff28), + 136: uint32(0xc332ddef), + 137: uint32(0xbe6c5aa5), + 138: uint32(0x65582185), + 139: uint32(0x68ab9802), + 140: uint32(0xeecea50f), + 141: uint32(0xdb2f953b), + 142: uint32(0x2aef7dad), + 143: uint32(0x5b6e2f84), + 144: uint32(0x1521b628), + 145: uint32(0x29076170), + 146: uint32(0xecdd4775), + 147: uint32(0x619f1510), + 148: uint32(0x13cca830), + 149: uint32(0xeb61bd96), + 150: uint32(0x0334fe1e), + 151: uint32(0xaa0363cf), + 152: uint32(0xb5735c90), + 153: uint32(0x4c70a239), + 154: uint32(0xd59e9e0b), + 155: uint32(0xcbaade14), + 156: uint32(0xeecc86bc), + 157: uint32(0x60622ca7), + 158: uint32(0x9cab5cab), + 159: uint32(0xb2f3846e), + 160: uint32(0x648b1eaf), + 161: uint32(0x19bdf0ca), + 162: uint32(0xa02369b9), + 163: uint32(0x655abb50), + 164: uint32(0x40685a32), + 165: uint32(0x3c2ab4b3), + 166: uint32(0x319ee9d5), + 167: uint32(0xc021b8f7), + 168: uint32(0x9b540b19), + 169: uint32(0x875fa099), + 170: uint32(0x95f7997e), + 171: uint32(0x623d7da8), + 172: uint32(0xf837889a), + 173: uint32(0x97e32d77), + 174: uint32(0x11ed935f), + 175: uint32(0x16681281), + 176: uint32(0x0e358829), + 177: uint32(0xc7e61fd6), + 178: uint32(0x96dedfa1), + 179: uint32(0x7858ba99), + 180: uint32(0x57f584a5), + 181: uint32(0x1b227263), + 182: uint32(0x9b83c3ff), + 183: uint32(0x1ac24696), + 184: uint32(0xcdb30aeb), + 185: uint32(0x532e3054), + 186: uint32(0x8fd948e4), + 187: uint32(0x6dbc3128), + 188: uint32(0x58ebf2ef), + 189: uint32(0x34c6ffea), + 190: uint32(0xfe28ed61), + 191: uint32(0xee7c3c73), + 192: uint32(0x5d4a14d9), + 193: uint32(0xe864b7e3), + 194: uint32(0x42105d14), + 195: uint32(0x203e13e0), + 196: uint32(0x45eee2b6), + 197: uint32(0xa3aaabea), + 198: uint32(0xdb6c4f15), + 199: uint32(0xfacb4fd0), + 200: uint32(0xc742f442), + 201: uint32(0xef6abbb5), + 202: uint32(0x654f3b1d), + 203: uint32(0x41cd2105), + 204: uint32(0xd81e799e), + 205: uint32(0x86854dc7), + 206: uint32(0xe44b476a), + 207: uint32(0x3d816250), + 208: uint32(0xcf62a1f2), + 209: uint32(0x5b8d2646), + 210: uint32(0xfc8883a0), + 211: uint32(0xc1c7b6a3), + 212: uint32(0x7f1524c3), + 213: uint32(0x69cb7492), + 214: uint32(0x47848a0b), + 215: uint32(0x5692b285), + 216: uint32(0x095bbf00), + 217: uint32(0xad19489d), + 218: uint32(0x1462b174), + 219: uint32(0x23820e00), + 220: uint32(0x58428d2a), + 221: uint32(0x0c55f5ea), + 222: uint32(0x1dadf43e), + 223: uint32(0x233f7061), + 224: uint32(0x3372f092), + 225: uint32(0x8d937e41), + 226: uint32(0xd65fecf1), + 227: uint32(0x6c223bdb), + 228: uint32(0x7cde3759), + 229: uint32(0xcbee7460), + 230: uint32(0x4085f2a7), + 231: uint32(0xce77326e), + 232: uint32(0xa6078084), + 233: uint32(0x19f8509e), + 234: uint32(0xe8efd855), + 235: uint32(0x61d99735), + 236: uint32(0xa969a7aa), + 237: uint32(0xc50c06c2), + 238: uint32(0x5a04abfc), + 239: uint32(0x800bcadc), + 240: uint32(0x9e447a2e), + 241: uint32(0xc3453484), + 242: uint32(0xfdd56705), + 243: uint32(0x0e1e9ec9), + 244: uint32(0xdb73dbd3), + 245: uint32(0x105588cd), + 246: uint32(0x675fda79), + 247: uint32(0xe3674340), + 248: uint32(0xc5c43465), + 249: uint32(0x713e38d8), + 250: uint32(0x3d28f89e), + 251: uint32(0xf16dff20), + 252: uint32(0x153e21e7), + 253: uint32(0x8fb03d4a), + 254: uint32(0xe6e39f2b), + 255: uint32(0xdb83adf7), + }, + 2: { + 0: uint32(0xe93d5a68), + 1: uint32(0x948140f7), + 2: uint32(0xf64c261c), + 3: uint32(0x94692934), + 4: uint32(0x411520f7), + 5: uint32(0x7602d4f7), + 6: uint32(0xbcf46b2e), + 7: uint32(0xd4a20068), + 8: uint32(0xd4082471), + 9: uint32(0x3320f46a), + 10: uint32(0x43b7d4b7), + 11: uint32(0x500061af), + 12: uint32(0x1e39f62e), + 13: uint32(0x97244546), + 14: uint32(0x14214f74), + 15: uint32(0xbf8b8840), + 16: uint32(0x4d95fc1d), + 17: uint32(0x96b591af), + 18: uint32(0x70f4ddd3), + 19: uint32(0x66a02f45), + 20: uint32(0xbfbc09ec), + 21: uint32(0x03bd9785), + 22: uint32(0x7fac6dd0), + 23: uint32(0x31cb8504), + 24: uint32(0x96eb27b3), + 25: uint32(0x55fd3941), + 26: uint32(0xda2547e6), + 27: uint32(0xabca0a9a), + 28: uint32(0x28507825), + 29: uint32(0x530429f4), + 30: uint32(0x0a2c86da), + 31: uint32(0xe9b66dfb), + 32: uint32(0x68dc1462), + 33: uint32(0xd7486900), + 34: uint32(0x680ec0a4), + 35: uint32(0x27a18dee), + 36: uint32(0x4f3ffea2), + 37: uint32(0xe887ad8c), + 38: uint32(0xb58ce006), + 39: uint32(0x7af4d6b6), + 40: uint32(0xaace1e7c), + 41: uint32(0xd3375fec), + 42: uint32(0xce78a399), + 43: uint32(0x406b2a42), + 44: uint32(0x20fe9e35), + 45: uint32(0xd9f385b9), + 46: uint32(0xee39d7ab), + 47: uint32(0x3b124e8b), + 48: uint32(0x1dc9faf7), + 49: uint32(0x4b6d1856), + 50: uint32(0x26a36631), + 51: uint32(0xeae397b2), + 52: uint32(0x3a6efa74), + 53: uint32(0xdd5b4332), + 54: uint32(0x6841e7f7), + 55: uint32(0xca7820fb), + 56: uint32(0xfb0af54e), + 57: uint32(0xd8feb397), + 58: uint32(0x454056ac), + 59: uint32(0xba489527), + 60: uint32(0x55533a3a), + 61: uint32(0x20838d87), + 62: uint32(0xfe6ba9b7), + 63: uint32(0xd096954b), + 64: uint32(0x55a867bc), + 65: uint32(0xa1159a58), + 66: uint32(0xcca92963), + 67: uint32(0x99e1db33), + 68: uint32(0xa62a4a56), + 69: uint32(0x3f3125f9), + 70: uint32(0x5ef47e1c), + 71: uint32(0x9029317c), + 72: uint32(0xfdf8e802), + 73: uint32(0x04272f70), + 74: uint32(0x80bb155c), + 75: uint32(0x05282ce3), + 76: uint32(0x95c11548), + 77: uint32(0xe4c66d22), + 78: uint32(0x48c1133f), + 79: uint32(0xc70f86dc), + 80: uint32(0x07f9c9ee), + 81: uint32(0x41041f0f), + 82: uint32(0x404779a4), + 83: uint32(0x5d886e17), + 84: uint32(0x325f51eb), + 85: uint32(0xd59bc0d1), + 86: uint32(0xf2bcc18f), + 87: uint32(0x41113564), + 88: uint32(0x257b7834), + 89: uint32(0x602a9c60), + 90: uint32(0xdff8e8a3), + 91: uint32(0x1f636c1b), + 92: uint32(0x0e12b4c2), + 93: uint32(0x02e1329e), + 94: uint32(0xaf664fd1), + 95: uint32(0xcad18115), + 96: uint32(0x6b2395e0), + 97: uint32(0x333e92e1), + 98: uint32(0x3b240b62), + 99: uint32(0xeebeb922), + 100: uint32(0x85b2a20e), + 101: uint32(0xe6ba0d99), + 102: uint32(0xde720c8c), + 103: uint32(0x2da2f728), + 104: uint32(0xd0127845), + 105: uint32(0x95b794fd), + 106: uint32(0x647d0862), + 107: uint32(0xe7ccf5f0), + 108: uint32(0x5449a36f), + 109: uint32(0x877d48fa), + 110: uint32(0xc39dfd27), + 111: uint32(0xf33e8d1e), + 112: uint32(0x0a476341), + 113: uint32(0x992eff74), + 114: uint32(0x3a6f6eab), + 115: uint32(0xf4f8fd37), + 116: uint32(0xa812dc60), + 117: uint32(0xa1ebddf8), + 118: uint32(0x991be14c), + 119: uint32(0xdb6e6b0d), + 120: uint32(0xc67b5510), + 121: uint32(0x6d672c37), + 122: uint32(0x2765d43b), + 123: uint32(0xdcd0e804), + 124: uint32(0xf1290dc7), + 125: uint32(0xcc00ffa3), + 126: uint32(0xb5390f92), + 127: uint32(0x690fed0b), + 128: uint32(0x667b9ffb), + 129: uint32(0xcedb7d9c), + 130: uint32(0xa091cf0b), + 131: uint32(0xd9155ea3), + 132: uint32(0xbb132f88), + 133: uint32(0x515bad24), + 134: uint32(0x7b9479bf), + 135: uint32(0x763bd6eb), + 136: uint32(0x37392eb3), + 137: uint32(0xcc115979), + 138: uint32(0x8026e297), + 139: uint32(0xf42e312d), + 140: uint32(0x6842ada7), + 141: uint32(0xc66a2b3b), + 142: uint32(0x12754ccc), + 143: uint32(0x782ef11c), + 144: uint32(0x6a124237), + 145: uint32(0xb79251e7), + 146: uint32(0x06a1bbe6), + 147: uint32(0x4bfb6350), + 148: uint32(0x1a6b1018), + 149: uint32(0x11caedfa), + 150: uint32(0x3d25bdd8), + 151: uint32(0xe2e1c3c9), + 152: uint32(0x44421659), + 153: uint32(0x0a121386), + 154: uint32(0xd90cec6e), + 155: uint32(0xd5abea2a), + 156: uint32(0x64af674e), + 157: uint32(0xda86a85f), + 158: uint32(0xbebfe988), + 159: uint32(0x64e4c3fe), + 160: uint32(0x9dbc8057), + 161: uint32(0xf0f7c086), + 162: uint32(0x60787bf8), + 163: uint32(0x6003604d), + 164: uint32(0xd1fd8346), + 165: uint32(0xf6381fb0), + 166: uint32(0x7745ae04), + 167: uint32(0xd736fccc), + 168: uint32(0x83426b33), + 169: uint32(0xf01eab71), + 170: uint32(0xb0804187), + 171: uint32(0x3c005e5f), + 172: uint32(0x77a057be), + 173: uint32(0xbde8ae24), + 174: uint32(0x55464299), + 175: uint32(0xbf582e61), + 176: uint32(0x4e58f48f), + 177: uint32(0xf2ddfda2), + 178: uint32(0xf474ef38), + 179: uint32(0x8789bdc2), + 180: uint32(0x5366f9c3), + 181: uint32(0xc8b38e74), + 182: uint32(0xb475f255), + 183: uint32(0x46fcd9b9), + 184: uint32(0x7aeb2661), + 185: uint32(0x8b1ddf84), + 186: uint32(0x846a0e79), + 187: uint32(0x915f95e2), + 188: uint32(0x466e598e), + 189: uint32(0x20b45770), + 190: uint32(0x8cd55591), + 191: uint32(0xc902de4c), + 192: uint32(0xb90bace1), + 193: uint32(0xbb8205d0), + 194: uint32(0x11a86248), + 195: uint32(0x7574a99e), + 196: uint32(0xb77f19b6), + 197: uint32(0xe0a9dc09), + 198: uint32(0x662d09a1), + 199: uint32(0xc4324633), + 200: uint32(0xe85a1f02), + 201: uint32(0x09f0be8c), + 202: uint32(0x4a99a025), + 203: uint32(0x1d6efe10), + 204: uint32(0x1ab93d1d), + 205: uint32(0x0ba5a4df), + 206: uint32(0xa186f20f), + 207: uint32(0x2868f169), + 208: uint32(0xdcb7da83), + 209: uint32(0x573906fe), + 210: uint32(0xa1e2ce9b), + 211: uint32(0x4fcd7f52), + 212: uint32(0x50115e01), + 213: uint32(0xa70683fa), + 214: uint32(0xa002b5c4), + 215: uint32(0x0de6d027), + 216: uint32(0x9af88c27), + 217: uint32(0x773f8641), + 218: uint32(0xc3604c06), + 219: uint32(0x61a806b5), + 220: uint32(0xf0177a28), + 221: uint32(0xc0f586e0), + 222: uint32(0x006058aa), + 223: uint32(0x30dc7d62), + 224: uint32(0x11e69ed7), + 225: uint32(0x2338ea63), + 226: uint32(0x53c2dd94), + 227: uint32(0xc2c21634), + 228: uint32(0xbbcbee56), + 229: uint32(0x90bcb6de), + 230: uint32(0xebfc7da1), + 231: uint32(0xce591d76), + 232: uint32(0x6f05e409), + 233: uint32(0x4b7c0188), + 234: uint32(0x39720a3d), + 235: uint32(0x7c927c24), + 236: uint32(0x86e3725f), + 237: uint32(0x724d9db9), + 238: uint32(0x1ac15bb4), + 239: uint32(0xd39eb8fc), + 240: uint32(0xed545578), + 241: uint32(0x08fca5b5), + 242: uint32(0xd83d7cd3), + 243: uint32(0x4dad0fc4), + 244: uint32(0x1e50ef5e), + 245: uint32(0xb161e6f8), + 246: uint32(0xa28514d9), + 247: uint32(0x6c51133c), + 248: uint32(0x6fd5c7e7), + 249: uint32(0x56e14ec4), + 250: uint32(0x362abfce), + 251: uint32(0xddc6c837), + 252: uint32(0xd79a3234), + 253: uint32(0x92638212), + 254: uint32(0x670efa8e), + 255: uint32(0x406000e0), + }, + 3: { + 0: uint32(0x3a39ce37), + 1: uint32(0xd3faf5cf), + 2: uint32(0xabc27737), + 3: uint32(0x5ac52d1b), + 4: uint32(0x5cb0679e), + 5: uint32(0x4fa33742), + 6: uint32(0xd3822740), + 7: uint32(0x99bc9bbe), + 8: uint32(0xd5118e9d), + 9: uint32(0xbf0f7315), + 10: uint32(0xd62d1c7e), + 11: uint32(0xc700c47b), + 12: uint32(0xb78c1b6b), + 13: uint32(0x21a19045), + 14: uint32(0xb26eb1be), + 15: uint32(0x6a366eb4), + 16: uint32(0x5748ab2f), + 17: uint32(0xbc946e79), + 18: uint32(0xc6a376d2), + 19: uint32(0x6549c2c8), + 20: uint32(0x530ff8ee), + 21: uint32(0x468dde7d), + 22: uint32(0xd5730a1d), + 23: uint32(0x4cd04dc6), + 24: uint32(0x2939bbdb), + 25: uint32(0xa9ba4650), + 26: uint32(0xac9526e8), + 27: uint32(0xbe5ee304), + 28: uint32(0xa1fad5f0), + 29: uint32(0x6a2d519a), + 30: uint32(0x63ef8ce2), + 31: uint32(0x9a86ee22), + 32: uint32(0xc089c2b8), + 33: uint32(0x43242ef6), + 34: uint32(0xa51e03aa), + 35: uint32(0x9cf2d0a4), + 36: uint32(0x83c061ba), + 37: uint32(0x9be96a4d), + 38: uint32(0x8fe51550), + 39: uint32(0xba645bd6), + 40: uint32(0x2826a2f9), + 41: uint32(0xa73a3ae1), + 42: uint32(0x4ba99586), + 43: uint32(0xef5562e9), + 44: uint32(0xc72fefd3), + 45: uint32(0xf752f7da), + 46: uint32(0x3f046f69), + 47: uint32(0x77fa0a59), + 48: uint32(0x80e4a915), + 49: uint32(0x87b08601), + 50: uint32(0x9b09e6ad), + 51: uint32(0x3b3ee593), + 52: uint32(0xe990fd5a), + 53: uint32(0x9e34d797), + 54: uint32(0x2cf0b7d9), + 55: uint32(0x022b8b51), + 56: uint32(0x96d5ac3a), + 57: uint32(0x017da67d), + 58: uint32(0xd1cf3ed6), + 59: uint32(0x7c7d2d28), + 60: uint32(0x1f9f25cf), + 61: uint32(0xadf2b89b), + 62: uint32(0x5ad6b472), + 63: uint32(0x5a88f54c), + 64: uint32(0xe029ac71), + 65: uint32(0xe019a5e6), + 66: uint32(0x47b0acfd), + 67: uint32(0xed93fa9b), + 68: uint32(0xe8d3c48d), + 69: uint32(0x283b57cc), + 70: uint32(0xf8d56629), + 71: uint32(0x79132e28), + 72: uint32(0x785f0191), + 73: uint32(0xed756055), + 74: uint32(0xf7960e44), + 75: uint32(0xe3d35e8c), + 76: uint32(0x15056dd4), + 77: uint32(0x88f46dba), + 78: uint32(0x03a16125), + 79: uint32(0x0564f0bd), + 80: uint32(0xc3eb9e15), + 81: uint32(0x3c9057a2), + 82: uint32(0x97271aec), + 83: uint32(0xa93a072a), + 84: uint32(0x1b3f6d9b), + 85: uint32(0x1e6321f5), + 86: uint32(0xf59c66fb), + 87: uint32(0x26dcf319), + 88: uint32(0x7533d928), + 89: uint32(0xb155fdf5), + 90: uint32(0x03563482), + 91: uint32(0x8aba3cbb), + 92: uint32(0x28517711), + 93: uint32(0xc20ad9f8), + 94: uint32(0xabcc5167), + 95: uint32(0xccad925f), + 96: uint32(0x4de81751), + 97: uint32(0x3830dc8e), + 98: uint32(0x379d5862), + 99: uint32(0x9320f991), + 100: uint32(0xea7a90c2), + 101: uint32(0xfb3e7bce), + 102: uint32(0x5121ce64), + 103: uint32(0x774fbe32), + 104: uint32(0xa8b6e37e), + 105: uint32(0xc3293d46), + 106: uint32(0x48de5369), + 107: uint32(0x6413e680), + 108: uint32(0xa2ae0810), + 109: uint32(0xdd6db224), + 110: uint32(0x69852dfd), + 111: uint32(0x09072166), + 112: uint32(0xb39a460a), + 113: uint32(0x6445c0dd), + 114: uint32(0x586cdecf), + 115: uint32(0x1c20c8ae), + 116: uint32(0x5bbef7dd), + 117: uint32(0x1b588d40), + 118: uint32(0xccd2017f), + 119: uint32(0x6bb4e3bb), + 120: uint32(0xdda26a7e), + 121: uint32(0x3a59ff45), + 122: uint32(0x3e350a44), + 123: uint32(0xbcb4cdd5), + 124: uint32(0x72eacea8), + 125: uint32(0xfa6484bb), + 126: uint32(0x8d6612ae), + 127: uint32(0xbf3c6f47), + 128: uint32(0xd29be463), + 129: uint32(0x542f5d9e), + 130: uint32(0xaec2771b), + 131: uint32(0xf64e6370), + 132: uint32(0x740e0d8d), + 133: uint32(0xe75b1357), + 134: uint32(0xf8721671), + 135: uint32(0xaf537d5d), + 136: uint32(0x4040cb08), + 137: uint32(0x4eb4e2cc), + 138: uint32(0x34d2466a), + 139: uint32(0x0115af84), + 140: uint32(0xe1b00428), + 141: uint32(0x95983a1d), + 142: uint32(0x06b89fb4), + 143: uint32(0xce6ea048), + 144: uint32(0x6f3f3b82), + 145: uint32(0x3520ab82), + 146: uint32(0x011a1d4b), + 147: uint32(0x277227f8), + 148: uint32(0x611560b1), + 149: uint32(0xe7933fdc), + 150: uint32(0xbb3a792b), + 151: uint32(0x344525bd), + 152: uint32(0xa08839e1), + 153: uint32(0x51ce794b), + 154: uint32(0x2f32c9b7), + 155: uint32(0xa01fbac9), + 156: uint32(0xe01cc87e), + 157: uint32(0xbcc7d1f6), + 158: uint32(0xcf0111c3), + 159: uint32(0xa1e8aac7), + 160: uint32(0x1a908749), + 161: uint32(0xd44fbd9a), + 162: uint32(0xd0dadecb), + 163: uint32(0xd50ada38), + 164: uint32(0x0339c32a), + 165: uint32(0xc6913667), + 166: uint32(0x8df9317c), + 167: uint32(0xe0b12b4f), + 168: uint32(0xf79e59b7), + 169: uint32(0x43f5bb3a), + 170: uint32(0xf2d519ff), + 171: uint32(0x27d9459c), + 172: uint32(0xbf97222c), + 173: uint32(0x15e6fc2a), + 174: uint32(0x0f91fc71), + 175: uint32(0x9b941525), + 176: uint32(0xfae59361), + 177: uint32(0xceb69ceb), + 178: uint32(0xc2a86459), + 179: uint32(0x12baa8d1), + 180: uint32(0xb6c1075e), + 181: uint32(0xe3056a0c), + 182: uint32(0x10d25065), + 183: uint32(0xcb03a442), + 184: uint32(0xe0ec6e0e), + 185: uint32(0x1698db3b), + 186: uint32(0x4c98a0be), + 187: uint32(0x3278e964), + 188: uint32(0x9f1f9532), + 189: uint32(0xe0d392df), + 190: uint32(0xd3a0342b), + 191: uint32(0x8971f21e), + 192: uint32(0x1b0a7441), + 193: uint32(0x4ba3348c), + 194: uint32(0xc5be7120), + 195: uint32(0xc37632d8), + 196: uint32(0xdf359f8d), + 197: uint32(0x9b992f2e), + 198: uint32(0xe60b6f47), + 199: uint32(0x0fe3f11d), + 200: uint32(0xe54cda54), + 201: uint32(0x1edad891), + 202: uint32(0xce6279cf), + 203: uint32(0xcd3e7e6f), + 204: uint32(0x1618b166), + 205: uint32(0xfd2c1d05), + 206: uint32(0x848fd2c5), + 207: uint32(0xf6fb2299), + 208: uint32(0xf523f357), + 209: uint32(0xa6327623), + 210: uint32(0x93a83531), + 211: uint32(0x56cccd02), + 212: uint32(0xacf08162), + 213: uint32(0x5a75ebb5), + 214: uint32(0x6e163697), + 215: uint32(0x88d273cc), + 216: uint32(0xde966292), + 217: uint32(0x81b949d0), + 218: uint32(0x4c50901b), + 219: uint32(0x71c65614), + 220: uint32(0xe6c6c7bd), + 221: uint32(0x327a140a), + 222: uint32(0x45e1d006), + 223: uint32(0xc3f27b9a), + 224: uint32(0xc9aa53fd), + 225: uint32(0x62a80f00), + 226: uint32(0xbb25bfe2), + 227: uint32(0x35bdd2f6), + 228: uint32(0x71126905), + 229: uint32(0xb2040222), + 230: uint32(0xb6cbcf7c), + 231: uint32(0xcd769c2b), + 232: uint32(0x53113ec0), + 233: uint32(0x1640e3d3), + 234: uint32(0x38abbd60), + 235: uint32(0x2547adf0), + 236: uint32(0xba38209c), + 237: uint32(0xf746ce76), + 238: uint32(0x77afa1c5), + 239: uint32(0x20756060), + 240: uint32(0x85cbfe4e), + 241: uint32(0x8ae88dd8), + 242: uint32(0x7aaaf9b0), + 243: uint32(0x4cf9aa7e), + 244: uint32(0x1948c25c), + 245: uint32(0x02fb8a8c), + 246: uint32(0x01c36ae4), + 247: uint32(0xd6ebe1f9), + 248: uint32(0x90d4f869), + 249: uint32(0xa65cdea0), + 250: uint32(0x3f09252d), + 251: uint32(0xc208e69f), + 252: uint32(0xb74e6132), + 253: uint32(0xce77e25b), + 254: uint32(0x578fdfe3), + 255: uint32(0x3ac372e6), + }, + }, +})) + +var _BF_itoa64 = [65]uint8{'.', '/', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9'} + +var _BF_atoi64 = [96]uint8{ + 0: uint8(64), + 1: uint8(64), + 2: uint8(64), + 3: uint8(64), + 4: uint8(64), + 5: uint8(64), + 6: uint8(64), + 7: uint8(64), + 8: uint8(64), + 9: uint8(64), + 10: uint8(64), + 11: uint8(64), + 12: uint8(64), + 13: uint8(64), + 15: uint8(1), + 16: uint8(54), + 17: uint8(55), + 18: uint8(56), + 19: uint8(57), + 20: uint8(58), + 21: uint8(59), + 22: uint8(60), + 23: uint8(61), + 24: uint8(62), + 25: uint8(63), + 26: uint8(64), + 27: uint8(64), + 28: uint8(64), + 29: uint8(64), + 30: uint8(64), + 31: uint8(64), + 32: uint8(64), + 33: uint8(2), + 34: uint8(3), + 35: uint8(4), + 36: uint8(5), + 37: uint8(6), + 38: uint8(7), + 39: uint8(8), + 40: uint8(9), + 41: uint8(10), + 42: uint8(11), + 43: uint8(12), + 44: uint8(13), + 45: uint8(14), + 46: uint8(15), + 47: uint8(16), + 48: uint8(17), + 49: uint8(18), + 50: uint8(19), + 51: uint8(20), + 52: uint8(21), + 53: uint8(22), + 54: uint8(23), + 55: uint8(24), + 56: uint8(25), + 57: uint8(26), + 58: uint8(27), + 59: uint8(64), + 60: uint8(64), + 61: uint8(64), + 62: uint8(64), + 63: uint8(64), + 64: uint8(64), + 65: uint8(28), + 66: uint8(29), + 67: uint8(30), + 68: uint8(31), + 69: uint8(32), + 70: uint8(33), + 71: uint8(34), + 72: uint8(35), + 73: uint8(36), + 74: uint8(37), + 75: uint8(38), + 76: uint8(39), + 77: uint8(40), + 78: uint8(41), + 79: uint8(42), + 80: uint8(43), + 81: uint8(44), + 82: uint8(45), + 83: uint8(46), + 84: uint8(47), + 85: uint8(48), + 86: uint8(49), + 87: uint8(50), + 88: uint8(51), + 89: uint8(52), + 90: uint8(53), + 91: uint8(64), + 92: uint8(64), + 93: uint8(64), + 94: uint8(64), + 95: uint8(64), +} + +func _BF_decode(tls *TLS, dst uintptr, src uintptr, size int32) (r int32) { + var c1, c2, c3, c4, tmp uint32 + var dptr, end, sptr, v1 uintptr + _, _, _, _, _, _, _, _, _ = c1, c2, c3, c4, dptr, end, sptr, tmp, v1 + dptr = dst + end = dptr + uintptr(size) + sptr = src + for cond := true; cond; cond = dptr < end { + v1 = sptr + sptr = sptr + 1 + tmp = uint32(**(**uint8)(__ccgo_up(v1))) + tmp = tmp - uint32(0x20) + if tmp >= uint32(0x60) { + return -int32(1) + } + tmp = uint32(_BF_atoi64[tmp]) + if tmp > uint32(63) { + return -int32(1) + } + c1 = tmp + v1 = sptr + sptr = sptr + 1 + tmp = uint32(**(**uint8)(__ccgo_up(v1))) + tmp = tmp - uint32(0x20) + if tmp >= uint32(0x60) { + return -int32(1) + } + tmp = uint32(_BF_atoi64[tmp]) + if tmp > uint32(63) { + return -int32(1) + } + c2 = tmp + v1 = dptr + dptr = dptr + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(c1<>int32(4)) + if dptr >= end { + break + } + v1 = sptr + sptr = sptr + 1 + tmp = uint32(**(**uint8)(__ccgo_up(v1))) + tmp = tmp - uint32(0x20) + if tmp >= uint32(0x60) { + return -int32(1) + } + tmp = uint32(_BF_atoi64[tmp]) + if tmp > uint32(63) { + return -int32(1) + } + c3 = tmp + v1 = dptr + dptr = dptr + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(c2&uint32(0x0F)<>int32(2)) + if dptr >= end { + break + } + v1 = sptr + sptr = sptr + 1 + tmp = uint32(**(**uint8)(__ccgo_up(v1))) + tmp = tmp - uint32(0x20) + if tmp >= uint32(0x60) { + return -int32(1) + } + tmp = uint32(_BF_atoi64[tmp]) + if tmp > uint32(63) { + return -int32(1) + } + c4 = tmp + v1 = dptr + dptr = dptr + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(c3&uint32(0x03)<>int32(2)] + c1 = c1 & uint32(0x03) << int32(4) + if sptr >= end { + v1 = dptr + dptr = dptr + 1 + **(**uint8)(__ccgo_up(v1)) = _BF_itoa64[c1] + break + } + v1 = sptr + sptr = sptr + 1 + c2 = uint32(**(**uint8)(__ccgo_up(v1))) + c1 = c1 | c2>>int32(4) + v1 = dptr + dptr = dptr + 1 + **(**uint8)(__ccgo_up(v1)) = _BF_itoa64[c1] + c1 = c2 & uint32(0x0f) << int32(2) + if sptr >= end { + v1 = dptr + dptr = dptr + 1 + **(**uint8)(__ccgo_up(v1)) = _BF_itoa64[c1] + break + } + v1 = sptr + sptr = sptr + 1 + c2 = uint32(**(**uint8)(__ccgo_up(v1))) + c1 = c1 | c2>>int32(6) + v1 = dptr + dptr = dptr + 1 + **(**uint8)(__ccgo_up(v1)) = _BF_itoa64[c1] + v1 = dptr + dptr = dptr + 1 + **(**uint8)(__ccgo_up(v1)) = _BF_itoa64[c2&uint32(0x3f)] + } +} + +func _BF_swap(tls *TLS, x uintptr, count int32) { + var tmp TBF_word + var v1, v2 int32 + var v4 uintptr + _, _, _, _ = tmp, v1, v2, v4 + v1 = int32(1) + if *(*int8)(unsafe.Pointer(&v1)) != 0 { + for { + tmp = **(**TBF_word)(__ccgo_up(x)) + tmp = tmp<>Int32FromInt32(16) + v4 = x + x += 4 + **(**TBF_word)(__ccgo_up(v4)) = tmp&uint32(0x00FF00FF)<>Int32FromInt32(8)&uint32(0x00FF00FF) + goto _3 + _3: + ; + count = count - 1 + v2 = count + if !(v2 != 0) { + break + } + } + } +} + +func _BF_encrypt(tls *TLS, ctx uintptr, L TBF_word, R TBF_word, start uintptr, end uintptr) (r TBF_word) { + var i int32 + var ptr, v2 uintptr + var tmp1, tmp2, tmp3, tmp4 TBF_word + _, _, _, _, _, _, _ = i, ptr, tmp1, tmp2, tmp3, tmp4, v2 + ptr = start + for cond := true; cond; cond = ptr < end { + L = L ^ **(**TBF_word)(__ccgo_up(ctx)) + i = 0 + for { + if !(i < int32(16)) { + break + } + tmp1 = L & uint32(0xFF) + tmp2 = L >> int32(8) + tmp2 = tmp2 & uint32(0xFF) + tmp3 = L >> int32(16) + tmp3 = tmp3 & uint32(0xFF) + tmp4 = L >> int32(24) + tmp1 = **(**TBF_word)(__ccgo_up(ctx + 72 + 3*1024 + uintptr(tmp1)*4)) + tmp2 = **(**TBF_word)(__ccgo_up(ctx + 72 + 2*1024 + uintptr(tmp2)*4)) + tmp3 = **(**TBF_word)(__ccgo_up(ctx + 72 + 1*1024 + uintptr(tmp3)*4)) + tmp3 = tmp3 + **(**TBF_word)(__ccgo_up(ctx + 72 + uintptr(tmp4)*4)) + tmp3 = tmp3 ^ tmp2 + R = R ^ **(**TBF_word)(__ccgo_up(ctx + uintptr(i+int32(1))*4)) + tmp3 = tmp3 + tmp1 + R = R ^ tmp3 + tmp1 = R & uint32(0xFF) + tmp2 = R >> int32(8) + tmp2 = tmp2 & uint32(0xFF) + tmp3 = R >> int32(16) + tmp3 = tmp3 & uint32(0xFF) + tmp4 = R >> int32(24) + tmp1 = **(**TBF_word)(__ccgo_up(ctx + 72 + 3*1024 + uintptr(tmp1)*4)) + tmp2 = **(**TBF_word)(__ccgo_up(ctx + 72 + 2*1024 + uintptr(tmp2)*4)) + tmp3 = **(**TBF_word)(__ccgo_up(ctx + 72 + 1*1024 + uintptr(tmp3)*4)) + tmp3 = tmp3 + **(**TBF_word)(__ccgo_up(ctx + 72 + uintptr(tmp4)*4)) + tmp3 = tmp3 ^ tmp2 + L = L ^ **(**TBF_word)(__ccgo_up(ctx + uintptr(i+int32(1)+int32(1))*4)) + tmp3 = tmp3 + tmp1 + L = L ^ tmp3 + goto _1 + _1: + ; + i = i + int32(2) + } + tmp4 = R + R = L + L = tmp4 ^ **(**TBF_word)(__ccgo_up(ctx + uintptr(Int32FromInt32(BF_N)+Int32FromInt32(1))*4)) + v2 = ptr + ptr += 4 + **(**TBF_word)(__ccgo_up(v2)) = L + v2 = ptr + ptr += 4 + **(**TBF_word)(__ccgo_up(v2)) = R + } + return L +} + +func _BF_set_key(tls *TLS, key uintptr, expanded uintptr, initial uintptr, flags uint8) { + bp := tls.Alloc(16) + defer tls.Free(16) + var bug, i, j uint32 + var diff, safety, sign, v1 TBF_word + var ptr uintptr + var _ /* tmp at bp+0 */ [2]TBF_word + _, _, _, _, _, _, _, _ = bug, diff, i, j, ptr, safety, sign, v1 + ptr = key + /* + * There was a sign extension bug in older revisions of this function. While + * we would have liked to simply fix the bug and move on, we have to provide + * a backwards compatibility feature (essentially the bug) for some systems and + * a safety measure for some others. The latter is needed because for certain + * multiple inputs to the buggy algorithm there exist easily found inputs to + * the correct algorithm that produce the same hash. Thus, we optionally + * deviate from the correct algorithm just enough to avoid such collisions. + * While the bug itself affected the majority of passwords containing + * characters with the 8th bit set (although only a percentage of those in a + * collision-producing way), the anti-collision safety measure affects + * only a subset of passwords containing the '\xff' character (not even all of + * those passwords, just some of them). This character is not found in valid + * UTF-8 sequences and is rarely used in popular 8-bit character encodings. + * Thus, the safety measure is unlikely to cause much annoyance, and is a + * reasonable tradeoff to use when authenticating against existing hashes that + * are not reliably known to have been computed with the correct algorithm. + * + * We use an approach that tries to minimize side-channel leaks of password + * information - that is, we mostly use fixed-cost bitwise operations instead + * of branches or table lookups. (One conditional branch based on password + * length remains. It is not part of the bug aftermath, though, and is + * difficult and possibly unreasonable to avoid given the use of C strings by + * the caller, which results in similar timing leaks anyway.) + * + * For actual implementation, we set an array index in the variable "bug" + * (0 means no bug, 1 means sign extension bug emulation) and a flag in the + * variable "safety" (bit 16 is set when the safety measure is requested). + * Valid combinations of settings are: + * + * Prefix "$2a$": bug = 0, safety = 0x10000 + * Prefix "$2b$": bug = 0, safety = 0 + * Prefix "$2x$": bug = 1, safety = 0 + * Prefix "$2y$": bug = 0, safety = 0 + */ + bug = Uint32FromInt32(Int32FromUint8(flags) & int32(1)) + safety = uint32(flags) & uint32(2) << int32(15) + v1 = Uint32FromInt32(0) + diff = v1 + sign = v1 + i = uint32(0) + for { + if !(i < Uint32FromInt32(Int32FromInt32(BF_N)+Int32FromInt32(2))) { + break + } + v1 = Uint32FromInt32(0) + (**(**[2]TBF_word)(__ccgo_up(bp)))[int32(1)] = v1 + (**(**[2]TBF_word)(__ccgo_up(bp)))[0] = v1 + j = uint32(0) + for { + if !(j < uint32(4)) { + break + } + **(**TBF_word)(__ccgo_up(bp)) <<= uint32(8) + **(**TBF_word)(__ccgo_up(bp)) |= uint32(Uint8FromInt8(**(**int8)(__ccgo_up(ptr)))) /* correct */ + **(**TBF_word)(__ccgo_up(bp + 1*4)) <<= uint32(8) + **(**TBF_word)(__ccgo_up(bp + 1*4)) |= Uint32FromInt8(int8(**(**int8)(__ccgo_up(ptr)))) /* bug */ + /* + * Sign extension in the first char has no effect - nothing to overwrite yet, + * and those extra 24 bits will be fully shifted out of the 32-bit word. For + * chars 2, 3, 4 in each four-char block, we set bit 7 of "sign" if sign + * extension in tmp[1] occurs. Once this flag is set, it remains set. + */ + if j != 0 { + sign = sign | (**(**[2]TBF_word)(__ccgo_up(bp)))[int32(1)]&uint32(0x80) + } + if !(**(**int8)(__ccgo_up(ptr)) != 0) { + ptr = key + } else { + ptr = ptr + 1 + } + goto _4 + _4: + ; + j = j + 1 + } + diff = diff | ((**(**[2]TBF_word)(__ccgo_up(bp)))[0] ^ (**(**[2]TBF_word)(__ccgo_up(bp)))[int32(1)]) /* Non-zero on any differences */ + **(**TBF_word)(__ccgo_up(expanded + uintptr(i)*4)) = (**(**[2]TBF_word)(__ccgo_up(bp)))[bug] + **(**TBF_word)(__ccgo_up(initial + uintptr(i)*4)) = **(**TBF_word)(__ccgo_up(uintptr(unsafe.Pointer(&_BF_init_state)) + uintptr(i)*4)) ^ (**(**[2]TBF_word)(__ccgo_up(bp)))[bug] + goto _2 + _2: + ; + i = i + 1 + } + /* + * At this point, "diff" is zero iff the correct and buggy algorithms produced + * exactly the same result. If so and if "sign" is non-zero, which indicates + * that there was a non-benign sign extension, this means that we have a + * collision between the correctly computed hash for this password and a set of + * passwords that could be supplied to the buggy algorithm. Our safety measure + * is meant to protect from such many-buggy to one-correct collisions, by + * deviating from the correct algorithm in such cases. Let's check for this. + */ + diff = diff | diff>>int32(16) /* still zero iff exact match */ + diff = diff & uint32(0xffff) /* ditto */ + diff = diff + uint32(0xffff) /* bit 16 set iff "diff" was non-zero (on non-match) */ + sign = sign << uint32(9) /* move the non-benign sign extension flag to bit 16 */ + sign = sign & (^diff & safety) /* action needed? */ + /* + * If we have determined that we need to deviate from the correct algorithm, + * flip bit 16 in initial expanded key. (The choice of 16 is arbitrary, but + * let's stick to it now. It came out of the approach we used above, and it's + * not any worse than any other choice we could make.) + * + * It is crucial that we don't do the same to the expanded key used in the main + * Eksblowfish loop. By doing it to only one of these two, we deviate from a + * state that could be directly specified by a password to the buggy algorithm + * (and to the fully correct one as well, but that's a side-effect). + */ + **(**TBF_word)(__ccgo_up(initial)) ^= sign +} + +var _flags_by_subtype = [26]uint8{ + 0: uint8(2), + 1: uint8(4), + 23: uint8(1), + 24: uint8(4), +} + +func _BF_crypt(tls *TLS, key uintptr, setting uintptr, output uintptr, min TBF_word) (r uintptr) { + bp := tls.Alloc(4272) + defer tls.Free(4272) + var L, L1, R, count, tmp1, tmp2, tmp3, tmp4, v1 TBF_word + var done, i int32 + var ptr uintptr + var _ /* LR at bp+4264 */ [2]TBF_word + var _ /* data at bp+0 */ struct { + Fctx TBF_ctx + Fexpanded_key TBF_key + Fbinary struct { + Foutput [0][6]TBF_word + Fsalt [4]TBF_word + F__ccgo_pad2 [8]byte + } + } + _, _, _, _, _, _, _, _, _, _, _, _ = L, L1, R, count, done, i, ptr, tmp1, tmp2, tmp3, tmp4, v1 + if int32(**(**int8)(__ccgo_up(setting))) != int32('$') || int32(**(**int8)(__ccgo_up(setting + 1))) != int32('2') || Uint32FromInt32(int32(**(**int8)(__ccgo_up(setting + 2)))-int32('a')) > uint32(25) || !(_flags_by_subtype[int32(**(**int8)(__ccgo_up(setting + 2)))-int32('a')] != 0) || int32(**(**int8)(__ccgo_up(setting + 3))) != int32('$') || Uint32FromInt32(int32(**(**int8)(__ccgo_up(setting + 4)))-int32('0')) > uint32(1) || Uint32FromInt32(int32(**(**int8)(__ccgo_up(setting + 5)))-int32('0')) > uint32(9) || int32(**(**int8)(__ccgo_up(setting + 6))) != int32('$') { + return UintptrFromInt32(0) + } + count = Uint32FromInt32(1) << ((int32(**(**int8)(__ccgo_up(setting + 4)))-int32('0'))*int32(10) + (int32(**(**int8)(__ccgo_up(setting + 5))) - int32('0'))) + if count < min || _BF_decode(tls, bp+4240, setting+7, int32(16)) != 0 { + return UintptrFromInt32(0) + } + _BF_swap(tls, bp+4240, int32(4)) + _BF_set_key(tls, key, bp+4168, bp, _flags_by_subtype[int32(**(**int8)(__ccgo_up(setting + 2)))-int32('a')]) + Xmemcpy(tls, bp+72, uintptr(unsafe.Pointer(&_BF_init_state))+72, uint64(4096)) + L = uint32(0) + R = uint32(0) + ptr = bp + for cond := true; cond; cond = int32(1) != 0 { + L = _BF_encrypt(tls, bp, L^**(**TBF_word)(__ccgo_up(bp + 4240)), R^**(**TBF_word)(__ccgo_up(bp + 4240 + 1*4)), ptr, ptr) + R = **(**TBF_word)(__ccgo_up(ptr + UintptrFromInt32(1)*4)) + ptr = ptr + uintptr(2)*4 + if ptr >= bp+uintptr(Int32FromInt32(BF_N)+Int32FromInt32(2)+Int32FromInt32(4)*Int32FromInt32(0x100))*4 { + break + } + L = _BF_encrypt(tls, bp, L^**(**TBF_word)(__ccgo_up(bp + 4240 + 2*4)), R^**(**TBF_word)(__ccgo_up(bp + 4240 + 3*4)), ptr, ptr) + R = **(**TBF_word)(__ccgo_up(ptr + UintptrFromInt32(1)*4)) + ptr = ptr + uintptr(2)*4 + } + for { + i = 0 + for { + if !(i < Int32FromInt32(BF_N)+Int32FromInt32(2)) { + break + } + **(**TBF_word)(__ccgo_up(bp + uintptr(i)*4)) ^= **(**TBF_word)(__ccgo_up(bp + 4168 + uintptr(i)*4)) + **(**TBF_word)(__ccgo_up(bp + uintptr(i+int32(1))*4)) ^= **(**TBF_word)(__ccgo_up(bp + 4168 + uintptr(i+int32(1))*4)) + goto _3 + _3: + ; + i = i + int32(2) + } + done = 0 + for cond := true; cond; cond = int32(1) != 0 { + _BF_encrypt(tls, bp, uint32(0), uint32(0), bp, bp+uintptr(Int32FromInt32(BF_N)+Int32FromInt32(2)+Int32FromInt32(4)*Int32FromInt32(0x100))*4) + if done != 0 { + break + } + done = int32(1) + tmp1 = **(**TBF_word)(__ccgo_up(bp + 4240)) + tmp2 = **(**TBF_word)(__ccgo_up(bp + 4240 + 1*4)) + tmp3 = **(**TBF_word)(__ccgo_up(bp + 4240 + 2*4)) + tmp4 = **(**TBF_word)(__ccgo_up(bp + 4240 + 3*4)) + i = 0 + for { + if !(i < int32(BF_N)) { + break + } + **(**TBF_word)(__ccgo_up(bp + uintptr(i)*4)) ^= tmp1 + **(**TBF_word)(__ccgo_up(bp + uintptr(i+int32(1))*4)) ^= tmp2 + **(**TBF_word)(__ccgo_up(bp + uintptr(i+int32(2))*4)) ^= tmp3 + **(**TBF_word)(__ccgo_up(bp + uintptr(i+int32(3))*4)) ^= tmp4 + goto _4 + _4: + ; + i = i + int32(4) + } + **(**TBF_word)(__ccgo_up(bp + 16*4)) ^= tmp1 + **(**TBF_word)(__ccgo_up(bp + 17*4)) ^= tmp2 + } + goto _2 + _2: + ; + count = count - 1 + v1 = count + if !(v1 != 0) { + break + } + } + i = 0 + for { + if !(i < int32(6)) { + break + } + L1 = _BF_magic_w[i] + (**(**[2]TBF_word)(__ccgo_up(bp + 4264)))[int32(1)] = _BF_magic_w[i+int32(1)] + count = uint32(64) + for { + L1 = _BF_encrypt(tls, bp, L1, (**(**[2]TBF_word)(__ccgo_up(bp + 4264)))[int32(1)], bp+4264, bp+4264) + goto _7 + _7: + ; + count = count - 1 + v1 = count + if !(v1 != 0) { + break + } + } + **(**TBF_word)(__ccgo_up(bp + 4240 + uintptr(i)*4)) = L1 + **(**TBF_word)(__ccgo_up(bp + 4240 + uintptr(i+int32(1))*4)) = (**(**[2]TBF_word)(__ccgo_up(bp + 4264)))[int32(1)] + goto _5 + _5: + ; + i = i + int32(2) + } + Xmemcpy(tls, output, setting, Uint64FromInt32(Int32FromInt32(7)+Int32FromInt32(22)-Int32FromInt32(1))) + **(**int8)(__ccgo_up(output + uintptr(Int32FromInt32(7)+Int32FromInt32(22)-Int32FromInt32(1)))) = Int8FromUint8(_BF_itoa64[Int32FromUint8(_BF_atoi64[int32(**(**int8)(__ccgo_up(setting + uintptr(Int32FromInt32(7)+Int32FromInt32(22)-Int32FromInt32(1)))))-int32(0x20)])&int32(0x30)]) + /* This has to be bug-compatible with the original implementation, so + * only encode 23 of the 24 bytes. :-) */ + _BF_swap(tls, bp+4240, int32(6)) + _BF_encode(tls, output+uintptr(Int32FromInt32(7)+Int32FromInt32(22)), bp+4240, int32(23)) + **(**int8)(__ccgo_up(output + uintptr(Int32FromInt32(7)+Int32FromInt32(22)+Int32FromInt32(31)))) = int8('\000') + return output +} + +// C documentation +// +// /* +// * Please preserve the runtime self-test. It serves two purposes at once: +// * +// * 1. We really can't afford the risk of producing incompatible hashes e.g. +// * when there's something like gcc bug 26587 again, whereas an application or +// * library integrating this code might not also integrate our external tests or +// * it might not run them after every build. Even if it does, the miscompile +// * might only occur on the production build, but not on a testing build (such +// * as because of different optimization settings). It is painful to recover +// * from incorrectly-computed hashes - merely fixing whatever broke is not +// * enough. Thus, a proactive measure like this self-test is needed. +// * +// * 2. We don't want to leave sensitive data from our actual password hash +// * computation on the stack or in registers. Previous revisions of the code +// * would do explicit cleanups, but simply running the self-test after hash +// * computation is more reliable. +// * +// * The performance cost of this quick self-test is around 0.6% at the "$2a$08" +// * setting. +// */ +func X__crypt_blowfish(tls *TLS, key uintptr, setting uintptr, output uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v setting=%v output=%v, (%v:)", tls, key, setting, output, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(384) + defer tls.Free(384) + var flags uint32 + var k, p, retval, test_hash, test_key, test_setting uintptr + var ok int32 + var _ /* ae at bp+96 */ TBF_key + var _ /* ai at bp+168 */ TBF_key + var _ /* buf at bp+0 */ struct { + Fs [30]int8 + Fo [63]int8 + } + var _ /* ye at bp+240 */ TBF_key + var _ /* yi at bp+312 */ TBF_key + _, _, _, _, _, _, _, _ = flags, k, ok, p, retval, test_hash, test_key, test_setting + test_key = __ccgo_ts + 18 + test_setting = __ccgo_ts + 28 + test_hash = uintptr(unsafe.Pointer(&_test_hashes)) + /* Hash the supplied password */ + retval = _BF_crypt(tls, key, setting, output, uint32(16)) + /* + * Do a quick self-test. It is important that we make both calls to BF_crypt() + * from the same scope such that they likely use the same stack locations, + * which makes the second call overwrite the first call's sensitive data on the + * stack and makes it more likely that any alignment related issues would be + * detected by the self-test. + */ + Xmemcpy(tls, bp, test_setting, uint64(30)) + if retval != 0 { + flags = uint32(_flags_by_subtype[int32(**(**int8)(__ccgo_up(setting + 2)))-int32('a')]) + test_hash = uintptr(unsafe.Pointer(&_test_hashes)) + uintptr(flags&uint32(1))*34 + **(**int8)(__ccgo_up(bp + 2)) = **(**int8)(__ccgo_up(setting + 2)) + } + Xmemset(tls, bp+30, int32(0x55), uint64(63)) + **(**int8)(__ccgo_up(bp + 30 + uintptr(Uint64FromInt64(63)-Uint64FromInt32(1)))) = 0 + p = _BF_crypt(tls, test_key, bp, bp+30, uint32(1)) + ok = BoolInt32(p == bp+30 && !(Xmemcmp(tls, p, bp, Uint64FromInt32(Int32FromInt32(7)+Int32FromInt32(22))) != 0) && !(Xmemcmp(tls, p+uintptr(Int32FromInt32(7)+Int32FromInt32(22)), test_hash, Uint64FromInt32(Int32FromInt32(31)+Int32FromInt32(1)+Int32FromInt32(1)+Int32FromInt32(1))) != 0)) + k = __ccgo_ts + 58 + _BF_set_key(tls, k, bp+96, bp+168, uint8(2)) /* $2a$ */ + _BF_set_key(tls, k, bp+240, bp+312, uint8(4)) /* $2y$ */ + **(**TBF_word)(__ccgo_up(bp + 168)) ^= uint32(0x10000) /* undo the safety (for comparison) */ + ok = BoolInt32(ok != 0 && (**(**TBF_key)(__ccgo_up(bp + 168)))[0] == uint32(0xdb9c59bc) && (**(**TBF_key)(__ccgo_up(bp + 240)))[int32(17)] == uint32(0x33343500) && !(Xmemcmp(tls, bp+96, bp+240, uint64(72)) != 0) && !(Xmemcmp(tls, bp+168, bp+312, uint64(72)) != 0)) + if ok != 0 && retval != 0 { + return retval + } + return __ccgo_ts + 70 +} + +var _test_hashes = [2][34]int8{ + 0: {'i', '1', 'D', '7', '0', '9', 'v', 'f', 'a', 'm', 'u', 'l', 'i', 'm', 'l', 'G', 'c', 'q', '0', 'q', 'q', '3', 'U', 'v', 'u', 'U', 'a', 's', 'v', 'E', 'a', 0, 'U'}, + 1: {'V', 'U', 'r', 'P', 'm', 'X', 'D', '6', 'q', '/', 'n', 'V', 'S', 'S', 'p', '7', 'p', 'N', 'D', 'h', 'C', 'R', '9', '0', '7', '1', 'I', 'f', 'I', 'R', 'e', 0, 'U'}, +} + +const _PASSWORD_EFMT1 = 95 + +type Texpanded_key = struct { + Fl [16]Tuint32_t + Fr [16]Tuint32_t +} + +var _key_shifts = [16]uint8{ + 0: uint8(1), + 1: uint8(1), + 2: uint8(2), + 3: uint8(2), + 4: uint8(2), + 5: uint8(2), + 6: uint8(2), + 7: uint8(2), + 8: uint8(1), + 9: uint8(2), + 10: uint8(2), + 11: uint8(2), + 12: uint8(2), + 13: uint8(2), + 14: uint8(2), + 15: uint8(1), +} + +var _psbox = [8][64]Tuint32_t{ + 0: { + 0: uint32(0x00808200), + 2: uint32(0x00008000), + 3: uint32(0x00808202), + 4: uint32(0x00808002), + 5: uint32(0x00008202), + 6: uint32(0x00000002), + 7: uint32(0x00008000), + 8: uint32(0x00000200), + 9: uint32(0x00808200), + 10: uint32(0x00808202), + 11: uint32(0x00000200), + 12: uint32(0x00800202), + 13: uint32(0x00808002), + 14: uint32(0x00800000), + 15: uint32(0x00000002), + 16: uint32(0x00000202), + 17: uint32(0x00800200), + 18: uint32(0x00800200), + 19: uint32(0x00008200), + 20: uint32(0x00008200), + 21: uint32(0x00808000), + 22: uint32(0x00808000), + 23: uint32(0x00800202), + 24: uint32(0x00008002), + 25: uint32(0x00800002), + 26: uint32(0x00800002), + 27: uint32(0x00008002), + 29: uint32(0x00000202), + 30: uint32(0x00008202), + 31: uint32(0x00800000), + 32: uint32(0x00008000), + 33: uint32(0x00808202), + 34: uint32(0x00000002), + 35: uint32(0x00808000), + 36: uint32(0x00808200), + 37: uint32(0x00800000), + 38: uint32(0x00800000), + 39: uint32(0x00000200), + 40: uint32(0x00808002), + 41: uint32(0x00008000), + 42: uint32(0x00008200), + 43: uint32(0x00800002), + 44: uint32(0x00000200), + 45: uint32(0x00000002), + 46: uint32(0x00800202), + 47: uint32(0x00008202), + 48: uint32(0x00808202), + 49: uint32(0x00008002), + 50: uint32(0x00808000), + 51: uint32(0x00800202), + 52: uint32(0x00800002), + 53: uint32(0x00000202), + 54: uint32(0x00008202), + 55: uint32(0x00808200), + 56: uint32(0x00000202), + 57: uint32(0x00800200), + 58: uint32(0x00800200), + 60: uint32(0x00008002), + 61: uint32(0x00008200), + 63: uint32(0x00808002), + }, + 1: { + 0: uint32(0x40084010), + 1: uint32(0x40004000), + 2: uint32(0x00004000), + 3: uint32(0x00084010), + 4: uint32(0x00080000), + 5: uint32(0x00000010), + 6: uint32(0x40080010), + 7: uint32(0x40004010), + 8: uint32(0x40000010), + 9: uint32(0x40084010), + 10: uint32(0x40084000), + 11: uint32(0x40000000), + 12: uint32(0x40004000), + 13: uint32(0x00080000), + 14: uint32(0x00000010), + 15: uint32(0x40080010), + 16: uint32(0x00084000), + 17: uint32(0x00080010), + 18: uint32(0x40004010), + 20: uint32(0x40000000), + 21: uint32(0x00004000), + 22: uint32(0x00084010), + 23: uint32(0x40080000), + 24: uint32(0x00080010), + 25: uint32(0x40000010), + 27: uint32(0x00084000), + 28: uint32(0x00004010), + 29: uint32(0x40084000), + 30: uint32(0x40080000), + 31: uint32(0x00004010), + 33: uint32(0x00084010), + 34: uint32(0x40080010), + 35: uint32(0x00080000), + 36: uint32(0x40004010), + 37: uint32(0x40080000), + 38: uint32(0x40084000), + 39: uint32(0x00004000), + 40: uint32(0x40080000), + 41: uint32(0x40004000), + 42: uint32(0x00000010), + 43: uint32(0x40084010), + 44: uint32(0x00084010), + 45: uint32(0x00000010), + 46: uint32(0x00004000), + 47: uint32(0x40000000), + 48: uint32(0x00004010), + 49: uint32(0x40084000), + 50: uint32(0x00080000), + 51: uint32(0x40000010), + 52: uint32(0x00080010), + 53: uint32(0x40004010), + 54: uint32(0x40000010), + 55: uint32(0x00080010), + 56: uint32(0x00084000), + 58: uint32(0x40004000), + 59: uint32(0x00004010), + 60: uint32(0x40000000), + 61: uint32(0x40080010), + 62: uint32(0x40084010), + 63: uint32(0x00084000), + }, + 2: { + 0: uint32(0x00000104), + 1: uint32(0x04010100), + 3: uint32(0x04010004), + 4: uint32(0x04000100), + 6: uint32(0x00010104), + 7: uint32(0x04000100), + 8: uint32(0x00010004), + 9: uint32(0x04000004), + 10: uint32(0x04000004), + 11: uint32(0x00010000), + 12: uint32(0x04010104), + 13: uint32(0x00010004), + 14: uint32(0x04010000), + 15: uint32(0x00000104), + 16: uint32(0x04000000), + 17: uint32(0x00000004), + 18: uint32(0x04010100), + 19: uint32(0x00000100), + 20: uint32(0x00010100), + 21: uint32(0x04010000), + 22: uint32(0x04010004), + 23: uint32(0x00010104), + 24: uint32(0x04000104), + 25: uint32(0x00010100), + 26: uint32(0x00010000), + 27: uint32(0x04000104), + 28: uint32(0x00000004), + 29: uint32(0x04010104), + 30: uint32(0x00000100), + 31: uint32(0x04000000), + 32: uint32(0x04010100), + 33: uint32(0x04000000), + 34: uint32(0x00010004), + 35: uint32(0x00000104), + 36: uint32(0x00010000), + 37: uint32(0x04010100), + 38: uint32(0x04000100), + 40: uint32(0x00000100), + 41: uint32(0x00010004), + 42: uint32(0x04010104), + 43: uint32(0x04000100), + 44: uint32(0x04000004), + 45: uint32(0x00000100), + 47: uint32(0x04010004), + 48: uint32(0x04000104), + 49: uint32(0x00010000), + 50: uint32(0x04000000), + 51: uint32(0x04010104), + 52: uint32(0x00000004), + 53: uint32(0x00010104), + 54: uint32(0x00010100), + 55: uint32(0x04000004), + 56: uint32(0x04010000), + 57: uint32(0x04000104), + 58: uint32(0x00000104), + 59: uint32(0x04010000), + 60: uint32(0x00010104), + 61: uint32(0x00000004), + 62: uint32(0x04010004), + 63: uint32(0x00010100), + }, + 3: { + 0: uint32(0x80401000), + 1: uint32(0x80001040), + 2: uint32(0x80001040), + 3: uint32(0x00000040), + 4: uint32(0x00401040), + 5: uint32(0x80400040), + 6: uint32(0x80400000), + 7: uint32(0x80001000), + 9: uint32(0x00401000), + 10: uint32(0x00401000), + 11: uint32(0x80401040), + 12: uint32(0x80000040), + 14: uint32(0x00400040), + 15: uint32(0x80400000), + 16: uint32(0x80000000), + 17: uint32(0x00001000), + 18: uint32(0x00400000), + 19: uint32(0x80401000), + 20: uint32(0x00000040), + 21: uint32(0x00400000), + 22: uint32(0x80001000), + 23: uint32(0x00001040), + 24: uint32(0x80400040), + 25: uint32(0x80000000), + 26: uint32(0x00001040), + 27: uint32(0x00400040), + 28: uint32(0x00001000), + 29: uint32(0x00401040), + 30: uint32(0x80401040), + 31: uint32(0x80000040), + 32: uint32(0x00400040), + 33: uint32(0x80400000), + 34: uint32(0x00401000), + 35: uint32(0x80401040), + 36: uint32(0x80000040), + 39: uint32(0x00401000), + 40: uint32(0x00001040), + 41: uint32(0x00400040), + 42: uint32(0x80400040), + 43: uint32(0x80000000), + 44: uint32(0x80401000), + 45: uint32(0x80001040), + 46: uint32(0x80001040), + 47: uint32(0x00000040), + 48: uint32(0x80401040), + 49: uint32(0x80000040), + 50: uint32(0x80000000), + 51: uint32(0x00001000), + 52: uint32(0x80400000), + 53: uint32(0x80001000), + 54: uint32(0x00401040), + 55: uint32(0x80400040), + 56: uint32(0x80001000), + 57: uint32(0x00001040), + 58: uint32(0x00400000), + 59: uint32(0x80401000), + 60: uint32(0x00000040), + 61: uint32(0x00400000), + 62: uint32(0x00001000), + 63: uint32(0x00401040), + }, + 4: { + 0: uint32(0x00000080), + 1: uint32(0x01040080), + 2: uint32(0x01040000), + 3: uint32(0x21000080), + 4: uint32(0x00040000), + 5: uint32(0x00000080), + 6: uint32(0x20000000), + 7: uint32(0x01040000), + 8: uint32(0x20040080), + 9: uint32(0x00040000), + 10: uint32(0x01000080), + 11: uint32(0x20040080), + 12: uint32(0x21000080), + 13: uint32(0x21040000), + 14: uint32(0x00040080), + 15: uint32(0x20000000), + 16: uint32(0x01000000), + 17: uint32(0x20040000), + 18: uint32(0x20040000), + 20: uint32(0x20000080), + 21: uint32(0x21040080), + 22: uint32(0x21040080), + 23: uint32(0x01000080), + 24: uint32(0x21040000), + 25: uint32(0x20000080), + 27: uint32(0x21000000), + 28: uint32(0x01040080), + 29: uint32(0x01000000), + 30: uint32(0x21000000), + 31: uint32(0x00040080), + 32: uint32(0x00040000), + 33: uint32(0x21000080), + 34: uint32(0x00000080), + 35: uint32(0x01000000), + 36: uint32(0x20000000), + 37: uint32(0x01040000), + 38: uint32(0x21000080), + 39: uint32(0x20040080), + 40: uint32(0x01000080), + 41: uint32(0x20000000), + 42: uint32(0x21040000), + 43: uint32(0x01040080), + 44: uint32(0x20040080), + 45: uint32(0x00000080), + 46: uint32(0x01000000), + 47: uint32(0x21040000), + 48: uint32(0x21040080), + 49: uint32(0x00040080), + 50: uint32(0x21000000), + 51: uint32(0x21040080), + 52: uint32(0x01040000), + 54: uint32(0x20040000), + 55: uint32(0x21000000), + 56: uint32(0x00040080), + 57: uint32(0x01000080), + 58: uint32(0x20000080), + 59: uint32(0x00040000), + 61: uint32(0x20040000), + 62: uint32(0x01040080), + 63: uint32(0x20000080), + }, + 5: { + 0: uint32(0x10000008), + 1: uint32(0x10200000), + 2: uint32(0x00002000), + 3: uint32(0x10202008), + 4: uint32(0x10200000), + 5: uint32(0x00000008), + 6: uint32(0x10202008), + 7: uint32(0x00200000), + 8: uint32(0x10002000), + 9: uint32(0x00202008), + 10: uint32(0x00200000), + 11: uint32(0x10000008), + 12: uint32(0x00200008), + 13: uint32(0x10002000), + 14: uint32(0x10000000), + 15: uint32(0x00002008), + 17: uint32(0x00200008), + 18: uint32(0x10002008), + 19: uint32(0x00002000), + 20: uint32(0x00202000), + 21: uint32(0x10002008), + 22: uint32(0x00000008), + 23: uint32(0x10200008), + 24: uint32(0x10200008), + 26: uint32(0x00202008), + 27: uint32(0x10202000), + 28: uint32(0x00002008), + 29: uint32(0x00202000), + 30: uint32(0x10202000), + 31: uint32(0x10000000), + 32: uint32(0x10002000), + 33: uint32(0x00000008), + 34: uint32(0x10200008), + 35: uint32(0x00202000), + 36: uint32(0x10202008), + 37: uint32(0x00200000), + 38: uint32(0x00002008), + 39: uint32(0x10000008), + 40: uint32(0x00200000), + 41: uint32(0x10002000), + 42: uint32(0x10000000), + 43: uint32(0x00002008), + 44: uint32(0x10000008), + 45: uint32(0x10202008), + 46: uint32(0x00202000), + 47: uint32(0x10200000), + 48: uint32(0x00202008), + 49: uint32(0x10202000), + 51: uint32(0x10200008), + 52: uint32(0x00000008), + 53: uint32(0x00002000), + 54: uint32(0x10200000), + 55: uint32(0x00202008), + 56: uint32(0x00002000), + 57: uint32(0x00200008), + 58: uint32(0x10002008), + 60: uint32(0x10202000), + 61: uint32(0x10000000), + 62: uint32(0x00200008), + 63: uint32(0x10002008), + }, + 6: { + 0: uint32(0x00100000), + 1: uint32(0x02100001), + 2: uint32(0x02000401), + 4: uint32(0x00000400), + 5: uint32(0x02000401), + 6: uint32(0x00100401), + 7: uint32(0x02100400), + 8: uint32(0x02100401), + 9: uint32(0x00100000), + 11: uint32(0x02000001), + 12: uint32(0x00000001), + 13: uint32(0x02000000), + 14: uint32(0x02100001), + 15: uint32(0x00000401), + 16: uint32(0x02000400), + 17: uint32(0x00100401), + 18: uint32(0x00100001), + 19: uint32(0x02000400), + 20: uint32(0x02000001), + 21: uint32(0x02100000), + 22: uint32(0x02100400), + 23: uint32(0x00100001), + 24: uint32(0x02100000), + 25: uint32(0x00000400), + 26: uint32(0x00000401), + 27: uint32(0x02100401), + 28: uint32(0x00100400), + 29: uint32(0x00000001), + 30: uint32(0x02000000), + 31: uint32(0x00100400), + 32: uint32(0x02000000), + 33: uint32(0x00100400), + 34: uint32(0x00100000), + 35: uint32(0x02000401), + 36: uint32(0x02000401), + 37: uint32(0x02100001), + 38: uint32(0x02100001), + 39: uint32(0x00000001), + 40: uint32(0x00100001), + 41: uint32(0x02000000), + 42: uint32(0x02000400), + 43: uint32(0x00100000), + 44: uint32(0x02100400), + 45: uint32(0x00000401), + 46: uint32(0x00100401), + 47: uint32(0x02100400), + 48: uint32(0x00000401), + 49: uint32(0x02000001), + 50: uint32(0x02100401), + 51: uint32(0x02100000), + 52: uint32(0x00100400), + 54: uint32(0x00000001), + 55: uint32(0x02100401), + 57: uint32(0x00100401), + 58: uint32(0x02100000), + 59: uint32(0x00000400), + 60: uint32(0x02000001), + 61: uint32(0x02000400), + 62: uint32(0x00000400), + 63: uint32(0x00100001), + }, + 7: { + 0: uint32(0x08000820), + 1: uint32(0x00000800), + 2: uint32(0x00020000), + 3: uint32(0x08020820), + 4: uint32(0x08000000), + 5: uint32(0x08000820), + 6: uint32(0x00000020), + 7: uint32(0x08000000), + 8: uint32(0x00020020), + 9: uint32(0x08020000), + 10: uint32(0x08020820), + 11: uint32(0x00020800), + 12: uint32(0x08020800), + 13: uint32(0x00020820), + 14: uint32(0x00000800), + 15: uint32(0x00000020), + 16: uint32(0x08020000), + 17: uint32(0x08000020), + 18: uint32(0x08000800), + 19: uint32(0x00000820), + 20: uint32(0x00020800), + 21: uint32(0x00020020), + 22: uint32(0x08020020), + 23: uint32(0x08020800), + 24: uint32(0x00000820), + 27: uint32(0x08020020), + 28: uint32(0x08000020), + 29: uint32(0x08000800), + 30: uint32(0x00020820), + 31: uint32(0x00020000), + 32: uint32(0x00020820), + 33: uint32(0x00020000), + 34: uint32(0x08020800), + 35: uint32(0x00000800), + 36: uint32(0x00000020), + 37: uint32(0x08020020), + 38: uint32(0x00000800), + 39: uint32(0x00020820), + 40: uint32(0x08000800), + 41: uint32(0x00000020), + 42: uint32(0x08000020), + 43: uint32(0x08020000), + 44: uint32(0x08020020), + 45: uint32(0x08000000), + 46: uint32(0x00020000), + 47: uint32(0x08000820), + 49: uint32(0x08020820), + 50: uint32(0x00020020), + 51: uint32(0x08000020), + 52: uint32(0x08020000), + 53: uint32(0x08000800), + 54: uint32(0x08000820), + 56: uint32(0x08020820), + 57: uint32(0x00020800), + 58: uint32(0x00020800), + 59: uint32(0x00000820), + 60: uint32(0x00000820), + 61: uint32(0x00020020), + 62: uint32(0x08000000), + 63: uint32(0x08020800), + }, +} +var _ip_maskl = [16][16]Tuint32_t{ + 0: { + 1: uint32(0x00010000), + 3: uint32(0x00010000), + 4: uint32(0x01000000), + 5: uint32(0x01010000), + 6: uint32(0x01000000), + 7: uint32(0x01010000), + 9: uint32(0x00010000), + 11: uint32(0x00010000), + 12: uint32(0x01000000), + 13: uint32(0x01010000), + 14: uint32(0x01000000), + 15: uint32(0x01010000), + }, + 1: { + 1: uint32(0x00000001), + 3: uint32(0x00000001), + 4: uint32(0x00000100), + 5: uint32(0x00000101), + 6: uint32(0x00000100), + 7: uint32(0x00000101), + 9: uint32(0x00000001), + 11: uint32(0x00000001), + 12: uint32(0x00000100), + 13: uint32(0x00000101), + 14: uint32(0x00000100), + 15: uint32(0x00000101), + }, + 2: { + 1: uint32(0x00020000), + 3: uint32(0x00020000), + 4: uint32(0x02000000), + 5: uint32(0x02020000), + 6: uint32(0x02000000), + 7: uint32(0x02020000), + 9: uint32(0x00020000), + 11: uint32(0x00020000), + 12: uint32(0x02000000), + 13: uint32(0x02020000), + 14: uint32(0x02000000), + 15: uint32(0x02020000), + }, + 3: { + 1: uint32(0x00000002), + 3: uint32(0x00000002), + 4: uint32(0x00000200), + 5: uint32(0x00000202), + 6: uint32(0x00000200), + 7: uint32(0x00000202), + 9: uint32(0x00000002), + 11: uint32(0x00000002), + 12: uint32(0x00000200), + 13: uint32(0x00000202), + 14: uint32(0x00000200), + 15: uint32(0x00000202), + }, + 4: { + 1: uint32(0x00040000), + 3: uint32(0x00040000), + 4: uint32(0x04000000), + 5: uint32(0x04040000), + 6: uint32(0x04000000), + 7: uint32(0x04040000), + 9: uint32(0x00040000), + 11: uint32(0x00040000), + 12: uint32(0x04000000), + 13: uint32(0x04040000), + 14: uint32(0x04000000), + 15: uint32(0x04040000), + }, + 5: { + 1: uint32(0x00000004), + 3: uint32(0x00000004), + 4: uint32(0x00000400), + 5: uint32(0x00000404), + 6: uint32(0x00000400), + 7: uint32(0x00000404), + 9: uint32(0x00000004), + 11: uint32(0x00000004), + 12: uint32(0x00000400), + 13: uint32(0x00000404), + 14: uint32(0x00000400), + 15: uint32(0x00000404), + }, + 6: { + 1: uint32(0x00080000), + 3: uint32(0x00080000), + 4: uint32(0x08000000), + 5: uint32(0x08080000), + 6: uint32(0x08000000), + 7: uint32(0x08080000), + 9: uint32(0x00080000), + 11: uint32(0x00080000), + 12: uint32(0x08000000), + 13: uint32(0x08080000), + 14: uint32(0x08000000), + 15: uint32(0x08080000), + }, + 7: { + 1: uint32(0x00000008), + 3: uint32(0x00000008), + 4: uint32(0x00000800), + 5: uint32(0x00000808), + 6: uint32(0x00000800), + 7: uint32(0x00000808), + 9: uint32(0x00000008), + 11: uint32(0x00000008), + 12: uint32(0x00000800), + 13: uint32(0x00000808), + 14: uint32(0x00000800), + 15: uint32(0x00000808), + }, + 8: { + 1: uint32(0x00100000), + 3: uint32(0x00100000), + 4: uint32(0x10000000), + 5: uint32(0x10100000), + 6: uint32(0x10000000), + 7: uint32(0x10100000), + 9: uint32(0x00100000), + 11: uint32(0x00100000), + 12: uint32(0x10000000), + 13: uint32(0x10100000), + 14: uint32(0x10000000), + 15: uint32(0x10100000), + }, + 9: { + 1: uint32(0x00000010), + 3: uint32(0x00000010), + 4: uint32(0x00001000), + 5: uint32(0x00001010), + 6: uint32(0x00001000), + 7: uint32(0x00001010), + 9: uint32(0x00000010), + 11: uint32(0x00000010), + 12: uint32(0x00001000), + 13: uint32(0x00001010), + 14: uint32(0x00001000), + 15: uint32(0x00001010), + }, + 10: { + 1: uint32(0x00200000), + 3: uint32(0x00200000), + 4: uint32(0x20000000), + 5: uint32(0x20200000), + 6: uint32(0x20000000), + 7: uint32(0x20200000), + 9: uint32(0x00200000), + 11: uint32(0x00200000), + 12: uint32(0x20000000), + 13: uint32(0x20200000), + 14: uint32(0x20000000), + 15: uint32(0x20200000), + }, + 11: { + 1: uint32(0x00000020), + 3: uint32(0x00000020), + 4: uint32(0x00002000), + 5: uint32(0x00002020), + 6: uint32(0x00002000), + 7: uint32(0x00002020), + 9: uint32(0x00000020), + 11: uint32(0x00000020), + 12: uint32(0x00002000), + 13: uint32(0x00002020), + 14: uint32(0x00002000), + 15: uint32(0x00002020), + }, + 12: { + 1: uint32(0x00400000), + 3: uint32(0x00400000), + 4: uint32(0x40000000), + 5: uint32(0x40400000), + 6: uint32(0x40000000), + 7: uint32(0x40400000), + 9: uint32(0x00400000), + 11: uint32(0x00400000), + 12: uint32(0x40000000), + 13: uint32(0x40400000), + 14: uint32(0x40000000), + 15: uint32(0x40400000), + }, + 13: { + 1: uint32(0x00000040), + 3: uint32(0x00000040), + 4: uint32(0x00004000), + 5: uint32(0x00004040), + 6: uint32(0x00004000), + 7: uint32(0x00004040), + 9: uint32(0x00000040), + 11: uint32(0x00000040), + 12: uint32(0x00004000), + 13: uint32(0x00004040), + 14: uint32(0x00004000), + 15: uint32(0x00004040), + }, + 14: { + 1: uint32(0x00800000), + 3: uint32(0x00800000), + 4: uint32(0x80000000), + 5: uint32(0x80800000), + 6: uint32(0x80000000), + 7: uint32(0x80800000), + 9: uint32(0x00800000), + 11: uint32(0x00800000), + 12: uint32(0x80000000), + 13: uint32(0x80800000), + 14: uint32(0x80000000), + 15: uint32(0x80800000), + }, + 15: { + 1: uint32(0x00000080), + 3: uint32(0x00000080), + 4: uint32(0x00008000), + 5: uint32(0x00008080), + 6: uint32(0x00008000), + 7: uint32(0x00008080), + 9: uint32(0x00000080), + 11: uint32(0x00000080), + 12: uint32(0x00008000), + 13: uint32(0x00008080), + 14: uint32(0x00008000), + 15: uint32(0x00008080), + }, +} +var _ip_maskr = [16][16]Tuint32_t{ + 0: { + 2: uint32(0x00010000), + 3: uint32(0x00010000), + 6: uint32(0x00010000), + 7: uint32(0x00010000), + 8: uint32(0x01000000), + 9: uint32(0x01000000), + 10: uint32(0x01010000), + 11: uint32(0x01010000), + 12: uint32(0x01000000), + 13: uint32(0x01000000), + 14: uint32(0x01010000), + 15: uint32(0x01010000), + }, + 1: { + 2: uint32(0x00000001), + 3: uint32(0x00000001), + 6: uint32(0x00000001), + 7: uint32(0x00000001), + 8: uint32(0x00000100), + 9: uint32(0x00000100), + 10: uint32(0x00000101), + 11: uint32(0x00000101), + 12: uint32(0x00000100), + 13: uint32(0x00000100), + 14: uint32(0x00000101), + 15: uint32(0x00000101), + }, + 2: { + 2: uint32(0x00020000), + 3: uint32(0x00020000), + 6: uint32(0x00020000), + 7: uint32(0x00020000), + 8: uint32(0x02000000), + 9: uint32(0x02000000), + 10: uint32(0x02020000), + 11: uint32(0x02020000), + 12: uint32(0x02000000), + 13: uint32(0x02000000), + 14: uint32(0x02020000), + 15: uint32(0x02020000), + }, + 3: { + 2: uint32(0x00000002), + 3: uint32(0x00000002), + 6: uint32(0x00000002), + 7: uint32(0x00000002), + 8: uint32(0x00000200), + 9: uint32(0x00000200), + 10: uint32(0x00000202), + 11: uint32(0x00000202), + 12: uint32(0x00000200), + 13: uint32(0x00000200), + 14: uint32(0x00000202), + 15: uint32(0x00000202), + }, + 4: { + 2: uint32(0x00040000), + 3: uint32(0x00040000), + 6: uint32(0x00040000), + 7: uint32(0x00040000), + 8: uint32(0x04000000), + 9: uint32(0x04000000), + 10: uint32(0x04040000), + 11: uint32(0x04040000), + 12: uint32(0x04000000), + 13: uint32(0x04000000), + 14: uint32(0x04040000), + 15: uint32(0x04040000), + }, + 5: { + 2: uint32(0x00000004), + 3: uint32(0x00000004), + 6: uint32(0x00000004), + 7: uint32(0x00000004), + 8: uint32(0x00000400), + 9: uint32(0x00000400), + 10: uint32(0x00000404), + 11: uint32(0x00000404), + 12: uint32(0x00000400), + 13: uint32(0x00000400), + 14: uint32(0x00000404), + 15: uint32(0x00000404), + }, + 6: { + 2: uint32(0x00080000), + 3: uint32(0x00080000), + 6: uint32(0x00080000), + 7: uint32(0x00080000), + 8: uint32(0x08000000), + 9: uint32(0x08000000), + 10: uint32(0x08080000), + 11: uint32(0x08080000), + 12: uint32(0x08000000), + 13: uint32(0x08000000), + 14: uint32(0x08080000), + 15: uint32(0x08080000), + }, + 7: { + 2: uint32(0x00000008), + 3: uint32(0x00000008), + 6: uint32(0x00000008), + 7: uint32(0x00000008), + 8: uint32(0x00000800), + 9: uint32(0x00000800), + 10: uint32(0x00000808), + 11: uint32(0x00000808), + 12: uint32(0x00000800), + 13: uint32(0x00000800), + 14: uint32(0x00000808), + 15: uint32(0x00000808), + }, + 8: { + 2: uint32(0x00100000), + 3: uint32(0x00100000), + 6: uint32(0x00100000), + 7: uint32(0x00100000), + 8: uint32(0x10000000), + 9: uint32(0x10000000), + 10: uint32(0x10100000), + 11: uint32(0x10100000), + 12: uint32(0x10000000), + 13: uint32(0x10000000), + 14: uint32(0x10100000), + 15: uint32(0x10100000), + }, + 9: { + 2: uint32(0x00000010), + 3: uint32(0x00000010), + 6: uint32(0x00000010), + 7: uint32(0x00000010), + 8: uint32(0x00001000), + 9: uint32(0x00001000), + 10: uint32(0x00001010), + 11: uint32(0x00001010), + 12: uint32(0x00001000), + 13: uint32(0x00001000), + 14: uint32(0x00001010), + 15: uint32(0x00001010), + }, + 10: { + 2: uint32(0x00200000), + 3: uint32(0x00200000), + 6: uint32(0x00200000), + 7: uint32(0x00200000), + 8: uint32(0x20000000), + 9: uint32(0x20000000), + 10: uint32(0x20200000), + 11: uint32(0x20200000), + 12: uint32(0x20000000), + 13: uint32(0x20000000), + 14: uint32(0x20200000), + 15: uint32(0x20200000), + }, + 11: { + 2: uint32(0x00000020), + 3: uint32(0x00000020), + 6: uint32(0x00000020), + 7: uint32(0x00000020), + 8: uint32(0x00002000), + 9: uint32(0x00002000), + 10: uint32(0x00002020), + 11: uint32(0x00002020), + 12: uint32(0x00002000), + 13: uint32(0x00002000), + 14: uint32(0x00002020), + 15: uint32(0x00002020), + }, + 12: { + 2: uint32(0x00400000), + 3: uint32(0x00400000), + 6: uint32(0x00400000), + 7: uint32(0x00400000), + 8: uint32(0x40000000), + 9: uint32(0x40000000), + 10: uint32(0x40400000), + 11: uint32(0x40400000), + 12: uint32(0x40000000), + 13: uint32(0x40000000), + 14: uint32(0x40400000), + 15: uint32(0x40400000), + }, + 13: { + 2: uint32(0x00000040), + 3: uint32(0x00000040), + 6: uint32(0x00000040), + 7: uint32(0x00000040), + 8: uint32(0x00004000), + 9: uint32(0x00004000), + 10: uint32(0x00004040), + 11: uint32(0x00004040), + 12: uint32(0x00004000), + 13: uint32(0x00004000), + 14: uint32(0x00004040), + 15: uint32(0x00004040), + }, + 14: { + 2: uint32(0x00800000), + 3: uint32(0x00800000), + 6: uint32(0x00800000), + 7: uint32(0x00800000), + 8: uint32(0x80000000), + 9: uint32(0x80000000), + 10: uint32(0x80800000), + 11: uint32(0x80800000), + 12: uint32(0x80000000), + 13: uint32(0x80000000), + 14: uint32(0x80800000), + 15: uint32(0x80800000), + }, + 15: { + 2: uint32(0x00000080), + 3: uint32(0x00000080), + 6: uint32(0x00000080), + 7: uint32(0x00000080), + 8: uint32(0x00008000), + 9: uint32(0x00008000), + 10: uint32(0x00008080), + 11: uint32(0x00008080), + 12: uint32(0x00008000), + 13: uint32(0x00008000), + 14: uint32(0x00008080), + 15: uint32(0x00008080), + }, +} +var _fp_maskl = [8][16]Tuint32_t{ + 0: { + 1: uint32(0x40000000), + 2: uint32(0x00400000), + 3: uint32(0x40400000), + 4: uint32(0x00004000), + 5: uint32(0x40004000), + 6: uint32(0x00404000), + 7: uint32(0x40404000), + 8: uint32(0x00000040), + 9: uint32(0x40000040), + 10: uint32(0x00400040), + 11: uint32(0x40400040), + 12: uint32(0x00004040), + 13: uint32(0x40004040), + 14: uint32(0x00404040), + 15: uint32(0x40404040), + }, + 1: { + 1: uint32(0x10000000), + 2: uint32(0x00100000), + 3: uint32(0x10100000), + 4: uint32(0x00001000), + 5: uint32(0x10001000), + 6: uint32(0x00101000), + 7: uint32(0x10101000), + 8: uint32(0x00000010), + 9: uint32(0x10000010), + 10: uint32(0x00100010), + 11: uint32(0x10100010), + 12: uint32(0x00001010), + 13: uint32(0x10001010), + 14: uint32(0x00101010), + 15: uint32(0x10101010), + }, + 2: { + 1: uint32(0x04000000), + 2: uint32(0x00040000), + 3: uint32(0x04040000), + 4: uint32(0x00000400), + 5: uint32(0x04000400), + 6: uint32(0x00040400), + 7: uint32(0x04040400), + 8: uint32(0x00000004), + 9: uint32(0x04000004), + 10: uint32(0x00040004), + 11: uint32(0x04040004), + 12: uint32(0x00000404), + 13: uint32(0x04000404), + 14: uint32(0x00040404), + 15: uint32(0x04040404), + }, + 3: { + 1: uint32(0x01000000), + 2: uint32(0x00010000), + 3: uint32(0x01010000), + 4: uint32(0x00000100), + 5: uint32(0x01000100), + 6: uint32(0x00010100), + 7: uint32(0x01010100), + 8: uint32(0x00000001), + 9: uint32(0x01000001), + 10: uint32(0x00010001), + 11: uint32(0x01010001), + 12: uint32(0x00000101), + 13: uint32(0x01000101), + 14: uint32(0x00010101), + 15: uint32(0x01010101), + }, + 4: { + 1: uint32(0x80000000), + 2: uint32(0x00800000), + 3: uint32(0x80800000), + 4: uint32(0x00008000), + 5: uint32(0x80008000), + 6: uint32(0x00808000), + 7: uint32(0x80808000), + 8: uint32(0x00000080), + 9: uint32(0x80000080), + 10: uint32(0x00800080), + 11: uint32(0x80800080), + 12: uint32(0x00008080), + 13: uint32(0x80008080), + 14: uint32(0x00808080), + 15: uint32(0x80808080), + }, + 5: { + 1: uint32(0x20000000), + 2: uint32(0x00200000), + 3: uint32(0x20200000), + 4: uint32(0x00002000), + 5: uint32(0x20002000), + 6: uint32(0x00202000), + 7: uint32(0x20202000), + 8: uint32(0x00000020), + 9: uint32(0x20000020), + 10: uint32(0x00200020), + 11: uint32(0x20200020), + 12: uint32(0x00002020), + 13: uint32(0x20002020), + 14: uint32(0x00202020), + 15: uint32(0x20202020), + }, + 6: { + 1: uint32(0x08000000), + 2: uint32(0x00080000), + 3: uint32(0x08080000), + 4: uint32(0x00000800), + 5: uint32(0x08000800), + 6: uint32(0x00080800), + 7: uint32(0x08080800), + 8: uint32(0x00000008), + 9: uint32(0x08000008), + 10: uint32(0x00080008), + 11: uint32(0x08080008), + 12: uint32(0x00000808), + 13: uint32(0x08000808), + 14: uint32(0x00080808), + 15: uint32(0x08080808), + }, + 7: { + 1: uint32(0x02000000), + 2: uint32(0x00020000), + 3: uint32(0x02020000), + 4: uint32(0x00000200), + 5: uint32(0x02000200), + 6: uint32(0x00020200), + 7: uint32(0x02020200), + 8: uint32(0x00000002), + 9: uint32(0x02000002), + 10: uint32(0x00020002), + 11: uint32(0x02020002), + 12: uint32(0x00000202), + 13: uint32(0x02000202), + 14: uint32(0x00020202), + 15: uint32(0x02020202), + }, +} +var _fp_maskr = [8][16]Tuint32_t{ + 0: { + 1: uint32(0x40000000), + 2: uint32(0x00400000), + 3: uint32(0x40400000), + 4: uint32(0x00004000), + 5: uint32(0x40004000), + 6: uint32(0x00404000), + 7: uint32(0x40404000), + 8: uint32(0x00000040), + 9: uint32(0x40000040), + 10: uint32(0x00400040), + 11: uint32(0x40400040), + 12: uint32(0x00004040), + 13: uint32(0x40004040), + 14: uint32(0x00404040), + 15: uint32(0x40404040), + }, + 1: { + 1: uint32(0x10000000), + 2: uint32(0x00100000), + 3: uint32(0x10100000), + 4: uint32(0x00001000), + 5: uint32(0x10001000), + 6: uint32(0x00101000), + 7: uint32(0x10101000), + 8: uint32(0x00000010), + 9: uint32(0x10000010), + 10: uint32(0x00100010), + 11: uint32(0x10100010), + 12: uint32(0x00001010), + 13: uint32(0x10001010), + 14: uint32(0x00101010), + 15: uint32(0x10101010), + }, + 2: { + 1: uint32(0x04000000), + 2: uint32(0x00040000), + 3: uint32(0x04040000), + 4: uint32(0x00000400), + 5: uint32(0x04000400), + 6: uint32(0x00040400), + 7: uint32(0x04040400), + 8: uint32(0x00000004), + 9: uint32(0x04000004), + 10: uint32(0x00040004), + 11: uint32(0x04040004), + 12: uint32(0x00000404), + 13: uint32(0x04000404), + 14: uint32(0x00040404), + 15: uint32(0x04040404), + }, + 3: { + 1: uint32(0x01000000), + 2: uint32(0x00010000), + 3: uint32(0x01010000), + 4: uint32(0x00000100), + 5: uint32(0x01000100), + 6: uint32(0x00010100), + 7: uint32(0x01010100), + 8: uint32(0x00000001), + 9: uint32(0x01000001), + 10: uint32(0x00010001), + 11: uint32(0x01010001), + 12: uint32(0x00000101), + 13: uint32(0x01000101), + 14: uint32(0x00010101), + 15: uint32(0x01010101), + }, + 4: { + 1: uint32(0x80000000), + 2: uint32(0x00800000), + 3: uint32(0x80800000), + 4: uint32(0x00008000), + 5: uint32(0x80008000), + 6: uint32(0x00808000), + 7: uint32(0x80808000), + 8: uint32(0x00000080), + 9: uint32(0x80000080), + 10: uint32(0x00800080), + 11: uint32(0x80800080), + 12: uint32(0x00008080), + 13: uint32(0x80008080), + 14: uint32(0x00808080), + 15: uint32(0x80808080), + }, + 5: { + 1: uint32(0x20000000), + 2: uint32(0x00200000), + 3: uint32(0x20200000), + 4: uint32(0x00002000), + 5: uint32(0x20002000), + 6: uint32(0x00202000), + 7: uint32(0x20202000), + 8: uint32(0x00000020), + 9: uint32(0x20000020), + 10: uint32(0x00200020), + 11: uint32(0x20200020), + 12: uint32(0x00002020), + 13: uint32(0x20002020), + 14: uint32(0x00202020), + 15: uint32(0x20202020), + }, + 6: { + 1: uint32(0x08000000), + 2: uint32(0x00080000), + 3: uint32(0x08080000), + 4: uint32(0x00000800), + 5: uint32(0x08000800), + 6: uint32(0x00080800), + 7: uint32(0x08080800), + 8: uint32(0x00000008), + 9: uint32(0x08000008), + 10: uint32(0x00080008), + 11: uint32(0x08080008), + 12: uint32(0x00000808), + 13: uint32(0x08000808), + 14: uint32(0x00080808), + 15: uint32(0x08080808), + }, + 7: { + 1: uint32(0x02000000), + 2: uint32(0x00020000), + 3: uint32(0x02020000), + 4: uint32(0x00000200), + 5: uint32(0x02000200), + 6: uint32(0x00020200), + 7: uint32(0x02020200), + 8: uint32(0x00000002), + 9: uint32(0x02000002), + 10: uint32(0x00020002), + 11: uint32(0x02020002), + 12: uint32(0x00000202), + 13: uint32(0x02000202), + 14: uint32(0x00020202), + 15: uint32(0x02020202), + }, +} +var _key_perm_maskl = [8][16]Tuint32_t{ + 0: { + 2: uint32(0x00000010), + 3: uint32(0x00000010), + 4: uint32(0x00001000), + 5: uint32(0x00001000), + 6: uint32(0x00001010), + 7: uint32(0x00001010), + 8: uint32(0x00100000), + 9: uint32(0x00100000), + 10: uint32(0x00100010), + 11: uint32(0x00100010), + 12: uint32(0x00101000), + 13: uint32(0x00101000), + 14: uint32(0x00101010), + 15: uint32(0x00101010), + }, + 1: { + 2: uint32(0x00000020), + 3: uint32(0x00000020), + 4: uint32(0x00002000), + 5: uint32(0x00002000), + 6: uint32(0x00002020), + 7: uint32(0x00002020), + 8: uint32(0x00200000), + 9: uint32(0x00200000), + 10: uint32(0x00200020), + 11: uint32(0x00200020), + 12: uint32(0x00202000), + 13: uint32(0x00202000), + 14: uint32(0x00202020), + 15: uint32(0x00202020), + }, + 2: { + 2: uint32(0x00000040), + 3: uint32(0x00000040), + 4: uint32(0x00004000), + 5: uint32(0x00004000), + 6: uint32(0x00004040), + 7: uint32(0x00004040), + 8: uint32(0x00400000), + 9: uint32(0x00400000), + 10: uint32(0x00400040), + 11: uint32(0x00400040), + 12: uint32(0x00404000), + 13: uint32(0x00404000), + 14: uint32(0x00404040), + 15: uint32(0x00404040), + }, + 3: { + 2: uint32(0x00000080), + 3: uint32(0x00000080), + 4: uint32(0x00008000), + 5: uint32(0x00008000), + 6: uint32(0x00008080), + 7: uint32(0x00008080), + 8: uint32(0x00800000), + 9: uint32(0x00800000), + 10: uint32(0x00800080), + 11: uint32(0x00800080), + 12: uint32(0x00808000), + 13: uint32(0x00808000), + 14: uint32(0x00808080), + 15: uint32(0x00808080), + }, + 4: { + 1: uint32(0x00000001), + 2: uint32(0x00000100), + 3: uint32(0x00000101), + 4: uint32(0x00010000), + 5: uint32(0x00010001), + 6: uint32(0x00010100), + 7: uint32(0x00010101), + 8: uint32(0x01000000), + 9: uint32(0x01000001), + 10: uint32(0x01000100), + 11: uint32(0x01000101), + 12: uint32(0x01010000), + 13: uint32(0x01010001), + 14: uint32(0x01010100), + 15: uint32(0x01010101), + }, + 5: { + 1: uint32(0x00000002), + 2: uint32(0x00000200), + 3: uint32(0x00000202), + 4: uint32(0x00020000), + 5: uint32(0x00020002), + 6: uint32(0x00020200), + 7: uint32(0x00020202), + 8: uint32(0x02000000), + 9: uint32(0x02000002), + 10: uint32(0x02000200), + 11: uint32(0x02000202), + 12: uint32(0x02020000), + 13: uint32(0x02020002), + 14: uint32(0x02020200), + 15: uint32(0x02020202), + }, + 6: { + 1: uint32(0x00000004), + 2: uint32(0x00000400), + 3: uint32(0x00000404), + 4: uint32(0x00040000), + 5: uint32(0x00040004), + 6: uint32(0x00040400), + 7: uint32(0x00040404), + 8: uint32(0x04000000), + 9: uint32(0x04000004), + 10: uint32(0x04000400), + 11: uint32(0x04000404), + 12: uint32(0x04040000), + 13: uint32(0x04040004), + 14: uint32(0x04040400), + 15: uint32(0x04040404), + }, + 7: { + 1: uint32(0x00000008), + 2: uint32(0x00000800), + 3: uint32(0x00000808), + 4: uint32(0x00080000), + 5: uint32(0x00080008), + 6: uint32(0x00080800), + 7: uint32(0x00080808), + 8: uint32(0x08000000), + 9: uint32(0x08000008), + 10: uint32(0x08000800), + 11: uint32(0x08000808), + 12: uint32(0x08080000), + 13: uint32(0x08080008), + 14: uint32(0x08080800), + 15: uint32(0x08080808), + }, +} +var _key_perm_maskr = [12][16]Tuint32_t{ + 0: { + 1: uint32(0x00000001), + 3: uint32(0x00000001), + 5: uint32(0x00000001), + 7: uint32(0x00000001), + 9: uint32(0x00000001), + 11: uint32(0x00000001), + 13: uint32(0x00000001), + 15: uint32(0x00000001), + }, + 1: { + 2: uint32(0x00100000), + 3: uint32(0x00100000), + 4: uint32(0x00001000), + 5: uint32(0x00001000), + 6: uint32(0x00101000), + 7: uint32(0x00101000), + 8: uint32(0x00000010), + 9: uint32(0x00000010), + 10: uint32(0x00100010), + 11: uint32(0x00100010), + 12: uint32(0x00001010), + 13: uint32(0x00001010), + 14: uint32(0x00101010), + 15: uint32(0x00101010), + }, + 2: { + 1: uint32(0x00000002), + 3: uint32(0x00000002), + 5: uint32(0x00000002), + 7: uint32(0x00000002), + 9: uint32(0x00000002), + 11: uint32(0x00000002), + 13: uint32(0x00000002), + 15: uint32(0x00000002), + }, + 3: { + 2: uint32(0x00200000), + 3: uint32(0x00200000), + 4: uint32(0x00002000), + 5: uint32(0x00002000), + 6: uint32(0x00202000), + 7: uint32(0x00202000), + 8: uint32(0x00000020), + 9: uint32(0x00000020), + 10: uint32(0x00200020), + 11: uint32(0x00200020), + 12: uint32(0x00002020), + 13: uint32(0x00002020), + 14: uint32(0x00202020), + 15: uint32(0x00202020), + }, + 4: { + 1: uint32(0x00000004), + 3: uint32(0x00000004), + 5: uint32(0x00000004), + 7: uint32(0x00000004), + 9: uint32(0x00000004), + 11: uint32(0x00000004), + 13: uint32(0x00000004), + 15: uint32(0x00000004), + }, + 5: { + 2: uint32(0x00400000), + 3: uint32(0x00400000), + 4: uint32(0x00004000), + 5: uint32(0x00004000), + 6: uint32(0x00404000), + 7: uint32(0x00404000), + 8: uint32(0x00000040), + 9: uint32(0x00000040), + 10: uint32(0x00400040), + 11: uint32(0x00400040), + 12: uint32(0x00004040), + 13: uint32(0x00004040), + 14: uint32(0x00404040), + 15: uint32(0x00404040), + }, + 6: { + 1: uint32(0x00000008), + 3: uint32(0x00000008), + 5: uint32(0x00000008), + 7: uint32(0x00000008), + 9: uint32(0x00000008), + 11: uint32(0x00000008), + 13: uint32(0x00000008), + 15: uint32(0x00000008), + }, + 7: { + 2: uint32(0x00800000), + 3: uint32(0x00800000), + 4: uint32(0x00008000), + 5: uint32(0x00008000), + 6: uint32(0x00808000), + 7: uint32(0x00808000), + 8: uint32(0x00000080), + 9: uint32(0x00000080), + 10: uint32(0x00800080), + 11: uint32(0x00800080), + 12: uint32(0x00008080), + 13: uint32(0x00008080), + 14: uint32(0x00808080), + 15: uint32(0x00808080), + }, + 8: { + 2: uint32(0x01000000), + 3: uint32(0x01000000), + 4: uint32(0x00010000), + 5: uint32(0x00010000), + 6: uint32(0x01010000), + 7: uint32(0x01010000), + 8: uint32(0x00000100), + 9: uint32(0x00000100), + 10: uint32(0x01000100), + 11: uint32(0x01000100), + 12: uint32(0x00010100), + 13: uint32(0x00010100), + 14: uint32(0x01010100), + 15: uint32(0x01010100), + }, + 9: { + 2: uint32(0x02000000), + 3: uint32(0x02000000), + 4: uint32(0x00020000), + 5: uint32(0x00020000), + 6: uint32(0x02020000), + 7: uint32(0x02020000), + 8: uint32(0x00000200), + 9: uint32(0x00000200), + 10: uint32(0x02000200), + 11: uint32(0x02000200), + 12: uint32(0x00020200), + 13: uint32(0x00020200), + 14: uint32(0x02020200), + 15: uint32(0x02020200), + }, + 10: { + 2: uint32(0x04000000), + 3: uint32(0x04000000), + 4: uint32(0x00040000), + 5: uint32(0x00040000), + 6: uint32(0x04040000), + 7: uint32(0x04040000), + 8: uint32(0x00000400), + 9: uint32(0x00000400), + 10: uint32(0x04000400), + 11: uint32(0x04000400), + 12: uint32(0x00040400), + 13: uint32(0x00040400), + 14: uint32(0x04040400), + 15: uint32(0x04040400), + }, + 11: { + 2: uint32(0x08000000), + 3: uint32(0x08000000), + 4: uint32(0x00080000), + 5: uint32(0x00080000), + 6: uint32(0x08080000), + 7: uint32(0x08080000), + 8: uint32(0x00000800), + 9: uint32(0x00000800), + 10: uint32(0x08000800), + 11: uint32(0x08000800), + 12: uint32(0x00080800), + 13: uint32(0x00080800), + 14: uint32(0x08080800), + 15: uint32(0x08080800), + }, +} +var _comp_maskl0 = [4][8]Tuint32_t{ + 0: { + 1: uint32(0x00020000), + 2: uint32(0x00000001), + 3: uint32(0x00020001), + 4: uint32(0x00080000), + 5: uint32(0x000a0000), + 6: uint32(0x00080001), + 7: uint32(0x000a0001), + }, + 1: { + 1: uint32(0x00001000), + 3: uint32(0x00001000), + 4: uint32(0x00000040), + 5: uint32(0x00001040), + 6: uint32(0x00000040), + 7: uint32(0x00001040), + }, + 2: { + 1: uint32(0x00400000), + 2: uint32(0x00000020), + 3: uint32(0x00400020), + 4: uint32(0x00008000), + 5: uint32(0x00408000), + 6: uint32(0x00008020), + 7: uint32(0x00408020), + }, + 3: { + 1: uint32(0x00100000), + 2: uint32(0x00000800), + 3: uint32(0x00100800), + 5: uint32(0x00100000), + 6: uint32(0x00000800), + 7: uint32(0x00100800), + }, +} +var _comp_maskr0 = [4][8]Tuint32_t{ + 0: { + 1: uint32(0x00200000), + 2: uint32(0x00020000), + 3: uint32(0x00220000), + 4: uint32(0x00000002), + 5: uint32(0x00200002), + 6: uint32(0x00020002), + 7: uint32(0x00220002), + }, + 1: { + 2: uint32(0x00100000), + 3: uint32(0x00100000), + 4: uint32(0x00000004), + 5: uint32(0x00000004), + 6: uint32(0x00100004), + 7: uint32(0x00100004), + }, + 2: { + 1: uint32(0x00004000), + 2: uint32(0x00000800), + 3: uint32(0x00004800), + 5: uint32(0x00004000), + 6: uint32(0x00000800), + 7: uint32(0x00004800), + }, + 3: { + 1: uint32(0x00400000), + 2: uint32(0x00008000), + 3: uint32(0x00408000), + 4: uint32(0x00000008), + 5: uint32(0x00400008), + 6: uint32(0x00008008), + 7: uint32(0x00408008), + }, +} +var _comp_maskl1 = [4][16]Tuint32_t{ + 0: { + 1: uint32(0x00000010), + 2: uint32(0x00004000), + 3: uint32(0x00004010), + 4: uint32(0x00040000), + 5: uint32(0x00040010), + 6: uint32(0x00044000), + 7: uint32(0x00044010), + 8: uint32(0x00000100), + 9: uint32(0x00000110), + 10: uint32(0x00004100), + 11: uint32(0x00004110), + 12: uint32(0x00040100), + 13: uint32(0x00040110), + 14: uint32(0x00044100), + 15: uint32(0x00044110), + }, + 1: { + 1: uint32(0x00800000), + 2: uint32(0x00000002), + 3: uint32(0x00800002), + 4: uint32(0x00000200), + 5: uint32(0x00800200), + 6: uint32(0x00000202), + 7: uint32(0x00800202), + 8: uint32(0x00200000), + 9: uint32(0x00a00000), + 10: uint32(0x00200002), + 11: uint32(0x00a00002), + 12: uint32(0x00200200), + 13: uint32(0x00a00200), + 14: uint32(0x00200202), + 15: uint32(0x00a00202), + }, + 2: { + 1: uint32(0x00002000), + 2: uint32(0x00000004), + 3: uint32(0x00002004), + 4: uint32(0x00000400), + 5: uint32(0x00002400), + 6: uint32(0x00000404), + 7: uint32(0x00002404), + 9: uint32(0x00002000), + 10: uint32(0x00000004), + 11: uint32(0x00002004), + 12: uint32(0x00000400), + 13: uint32(0x00002400), + 14: uint32(0x00000404), + 15: uint32(0x00002404), + }, + 3: { + 1: uint32(0x00010000), + 2: uint32(0x00000008), + 3: uint32(0x00010008), + 4: uint32(0x00000080), + 5: uint32(0x00010080), + 6: uint32(0x00000088), + 7: uint32(0x00010088), + 9: uint32(0x00010000), + 10: uint32(0x00000008), + 11: uint32(0x00010008), + 12: uint32(0x00000080), + 13: uint32(0x00010080), + 14: uint32(0x00000088), + 15: uint32(0x00010088), + }, +} +var _comp_maskr1 = [4][16]Tuint32_t{ + 0: { + 2: uint32(0x00000080), + 3: uint32(0x00000080), + 4: uint32(0x00002000), + 5: uint32(0x00002000), + 6: uint32(0x00002080), + 7: uint32(0x00002080), + 8: uint32(0x00000001), + 9: uint32(0x00000001), + 10: uint32(0x00000081), + 11: uint32(0x00000081), + 12: uint32(0x00002001), + 13: uint32(0x00002001), + 14: uint32(0x00002081), + 15: uint32(0x00002081), + }, + 1: { + 1: uint32(0x00000010), + 2: uint32(0x00800000), + 3: uint32(0x00800010), + 4: uint32(0x00010000), + 5: uint32(0x00010010), + 6: uint32(0x00810000), + 7: uint32(0x00810010), + 8: uint32(0x00000200), + 9: uint32(0x00000210), + 10: uint32(0x00800200), + 11: uint32(0x00800210), + 12: uint32(0x00010200), + 13: uint32(0x00010210), + 14: uint32(0x00810200), + 15: uint32(0x00810210), + }, + 2: { + 1: uint32(0x00000400), + 2: uint32(0x00001000), + 3: uint32(0x00001400), + 4: uint32(0x00080000), + 5: uint32(0x00080400), + 6: uint32(0x00081000), + 7: uint32(0x00081400), + 8: uint32(0x00000020), + 9: uint32(0x00000420), + 10: uint32(0x00001020), + 11: uint32(0x00001420), + 12: uint32(0x00080020), + 13: uint32(0x00080420), + 14: uint32(0x00081020), + 15: uint32(0x00081420), + }, + 3: { + 1: uint32(0x00000100), + 2: uint32(0x00040000), + 3: uint32(0x00040100), + 5: uint32(0x00000100), + 6: uint32(0x00040000), + 7: uint32(0x00040100), + 8: uint32(0x00000040), + 9: uint32(0x00000140), + 10: uint32(0x00040040), + 11: uint32(0x00040140), + 12: uint32(0x00000040), + 13: uint32(0x00000140), + 14: uint32(0x00040040), + 15: uint32(0x00040140), + }, +} + +var _ascii64 = [65]uint8{'.', '/', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'} + +/* 0000000000111111111122222222223333333333444444444455555555556666 */ +/* 0123456789012345678901234567890123456789012345678901234567890123 */ + +// C documentation +// +// /* +// * We match the behavior of UFC-crypt on systems where "char" is signed by +// * default (the majority), regardless of char's signedness on our system. +// */ +func _ascii_to_bin(tls *TLS, ch int32) (r Tuint32_t) { + var retval, sch, v1 int32 + _, _, _ = retval, sch, v1 + if ch < int32(0x80) { + v1 = ch + } else { + v1 = -(int32(0x100) - ch) + } + sch = v1 + retval = sch - int32('.') + if sch >= int32('A') { + retval = sch - (Int32FromUint8('A') - Int32FromInt32(12)) + if sch >= int32('a') { + retval = sch - (Int32FromUint8('a') - Int32FromInt32(38)) + } + } + retval = retval & int32(0x3f) + return Uint32FromInt32(retval) +} + +// C documentation +// +// /* +// * When we choose to "support" invalid salts, nevertheless disallow those +// * containing characters that would violate the passwd file format. +// */ +func _ascii_is_unsafe(tls *TLS, ch uint8) (r int32) { + return BoolInt32(!(ch != 0) || Int32FromUint8(ch) == int32('\n') || Int32FromUint8(ch) == int32(':')) +} + +func _setup_salt(tls *TLS, salt Tuint32_t) (r Tuint32_t) { + var i uint32 + var obit, saltbit, saltbits Tuint32_t + _, _, _, _ = i, obit, saltbit, saltbits + saltbits = uint32(0) + saltbit = uint32(1) + obit = uint32(0x800000) + i = uint32(0) + for { + if !(i < uint32(24)) { + break + } + if salt&saltbit != 0 { + saltbits = saltbits | obit + } + saltbit = saltbit << uint32(1) + obit = obit >> uint32(1) + goto _1 + _1: + ; + i = i + 1 + } + return saltbits +} + +func X__des_setkey(tls *TLS, key uintptr, ekey uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v ekey=%v, (%v:)", tls, key, ekey, origin(2)) + } + var i, ibit, j, round, shifts uint32 + var k0, k1, kl, kr, rawkey0, rawkey1, t0, t1, v1 Tuint32_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = i, ibit, j, k0, k1, kl, kr, rawkey0, rawkey1, round, shifts, t0, t1, v1 + rawkey0 = uint32(**(**uint8)(__ccgo_up(key + 3))) | uint32(**(**uint8)(__ccgo_up(key + 2)))<>ibit&uint32(0xf))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_key_perm_maskl)) + uintptr(i+uint32(4))*64 + uintptr(rawkey1>>ibit&uint32(0xf))*4))) + k1 = k1 | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_key_perm_maskr)) + uintptr(j)*64 + uintptr(rawkey0>>ibit&uint32(0xf))*4)) + ibit = ibit - uint32(4) + k1 = k1 | (**(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_key_perm_maskr)) + uintptr(j+uint32(1))*64 + uintptr(rawkey0>>ibit&uint32(0xf))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_key_perm_maskr)) + uintptr(i+uint32(8))*64 + uintptr(rawkey1>>ibit&uint32(0xf))*4))) + goto _2 + _2: + ; + i = i + 1 + ibit = ibit - uint32(4) + } + /* + * Rotate subkeys and do compression permutation. + */ + shifts = uint32(0) + round = uint32(0) + for { + if !(round < uint32(16)) { + break + } + shifts = shifts + uint32(_key_shifts[round]) + t0 = k0<>(Uint32FromInt32(28)-shifts) + t1 = k1<>(Uint32FromInt32(28)-shifts) + v1 = Uint32FromInt32(0) + kr = v1 + kl = v1 + ibit = uint32(25) + i = uint32(0) + for { + if !(i < uint32(4)) { + break + } + kl = kl | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_comp_maskl0)) + uintptr(i)*32 + uintptr(t0>>ibit&uint32(7))*4)) + kr = kr | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_comp_maskr0)) + uintptr(i)*32 + uintptr(t1>>ibit&uint32(7))*4)) + ibit = ibit - uint32(4) + kl = kl | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_comp_maskl1)) + uintptr(i)*64 + uintptr(t0>>ibit&uint32(0xf))*4)) + kr = kr | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_comp_maskr1)) + uintptr(i)*64 + uintptr(t1>>ibit&uint32(0xf))*4)) + ibit = ibit - uint32(3) + goto _5 + _5: + ; + i = i + 1 + } + **(**Tuint32_t)(__ccgo_up(ekey + uintptr(round)*4)) = kl + **(**Tuint32_t)(__ccgo_up(ekey + 64 + uintptr(round)*4)) = kr + goto _3 + _3: + ; + round = round + 1 + } +} + +// C documentation +// +// /* +// * l_in, r_in, l_out, and r_out are in pseudo-"big-endian" format. +// */ +func X__do_des(tls *TLS, l_in Tuint32_t, r_in Tuint32_t, l_out uintptr, r_out uintptr, count Tuint32_t, saltbits Tuint32_t, ekey uintptr) { + if __ccgo_strace { + trc("tls=%v l_in=%v r_in=%v l_out=%v r_out=%v count=%v saltbits=%v ekey=%v, (%v:)", tls, l_in, r_in, l_out, r_out, count, saltbits, ekey, origin(2)) + } + var f, l, lo, r, r48l, r48r, ro, v1 Tuint32_t + var i, i1, ibit, ibit1, round, v4 uint32 + var kl, kr, v5 uintptr + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = f, i, i1, ibit, ibit1, kl, kr, l, lo, r, r48l, r48r, ro, round, v1, v4, v5 + /* + * Do initial permutation (IP). + */ + v1 = Uint32FromInt32(0) + r = v1 + l = v1 + if l_in|r_in != 0 { + i = uint32(0) + ibit = Uint32FromInt32(28) + for { + if !(i < uint32(8)) { + break + } + l = l | (**(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_ip_maskl)) + uintptr(i)*64 + uintptr(l_in>>ibit&uint32(0xf))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_ip_maskl)) + uintptr(i+uint32(8))*64 + uintptr(r_in>>ibit&uint32(0xf))*4))) + r = r | (**(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_ip_maskr)) + uintptr(i)*64 + uintptr(l_in>>ibit&uint32(0xf))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_ip_maskr)) + uintptr(i+uint32(8))*64 + uintptr(r_in>>ibit&uint32(0xf))*4))) + goto _2 + _2: + ; + i = i + 1 + ibit = ibit - uint32(4) + } + } + for { + v1 = count + count = count - 1 + if !(v1 != 0) { + break + } + /* + * Do each round. + */ + round = uint32(16) + kl = ekey + kr = ekey + 64 + for { + v4 = round + round = round - 1 + if !(v4 != 0) { + break + } + /* + * Expand R to 48 bits (simulate the E-box). + */ + r48l = r&uint32(0x00000001)<>int32(9) | r&uint32(0x1f800000)>>int32(11) | r&uint32(0x01f80000)>>int32(13) | r&uint32(0x001f8000)>>int32(15) + r48r = r&uint32(0x0001f800)<>int32(31) + /* + * Do salting for crypt() and friends, and + * XOR with the permuted key. + */ + f = (r48l ^ r48r) & saltbits + v5 = kl + kl += 4 + r48l = r48l ^ (f ^ **(**Tuint32_t)(__ccgo_up(v5))) + v5 = kr + kr += 4 + r48r = r48r ^ (f ^ **(**Tuint32_t)(__ccgo_up(v5))) + /* + * Do S-box lookups (which shrink it back to 32 bits) + * and do the P-box permutation at the same time. + */ + f = **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_psbox)) + uintptr(r48l>>int32(18))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_psbox)) + 1*256 + uintptr(r48l>>Int32FromInt32(12)&uint32(0x3f))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_psbox)) + 2*256 + uintptr(r48l>>Int32FromInt32(6)&uint32(0x3f))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_psbox)) + 3*256 + uintptr(r48l&uint32(0x3f))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_psbox)) + 4*256 + uintptr(r48r>>int32(18))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_psbox)) + 5*256 + uintptr(r48r>>Int32FromInt32(12)&uint32(0x3f))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_psbox)) + 6*256 + uintptr(r48r>>Int32FromInt32(6)&uint32(0x3f))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_psbox)) + 7*256 + uintptr(r48r&uint32(0x3f))*4)) + /* + * Now that we've permuted things, complete f(). + */ + f = f ^ l + l = r + r = f + } + r = l + l = f + } + /* + * Do final permutation (inverse of IP). + */ + v1 = Uint32FromInt32(0) + ro = v1 + lo = v1 + i1 = uint32(0) + ibit1 = Uint32FromInt32(28) + for { + if !(i1 < uint32(4)) { + break + } + ro = ro | (**(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_fp_maskr)) + uintptr(i1)*64 + uintptr(l>>ibit1&uint32(0xf))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_fp_maskr)) + uintptr(i1+uint32(4))*64 + uintptr(r>>ibit1&uint32(0xf))*4))) + ibit1 = ibit1 - uint32(4) + lo = lo | (**(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_fp_maskl)) + uintptr(i1)*64 + uintptr(l>>ibit1&uint32(0xf))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_fp_maskl)) + uintptr(i1+uint32(4))*64 + uintptr(r>>ibit1&uint32(0xf))*4))) + goto _8 + _8: + ; + i1 = i1 + 1 + ibit1 = ibit1 - uint32(4) + } + **(**Tuint32_t)(__ccgo_up(l_out)) = lo + **(**Tuint32_t)(__ccgo_up(r_out)) = ro +} + +func _des_cipher(tls *TLS, in uintptr, out uintptr, count Tuint32_t, saltbits Tuint32_t, ekey uintptr) { + bp := tls.Alloc(16) + defer tls.Free(16) + var rawl, rawr Tuint32_t + var _ /* l_out at bp+0 */ Tuint32_t + var _ /* r_out at bp+4 */ Tuint32_t + _, _ = rawl, rawr + rawl = uint32(**(**uint8)(__ccgo_up(in + 3))) | uint32(**(**uint8)(__ccgo_up(in + 2)))<> int32(24)) + **(**uint8)(__ccgo_up(out + 1)) = uint8(**(**Tuint32_t)(__ccgo_up(bp)) >> int32(16)) + **(**uint8)(__ccgo_up(out + 2)) = uint8(**(**Tuint32_t)(__ccgo_up(bp)) >> int32(8)) + **(**uint8)(__ccgo_up(out + 3)) = uint8(**(**Tuint32_t)(__ccgo_up(bp))) + **(**uint8)(__ccgo_up(out + 4)) = uint8(**(**Tuint32_t)(__ccgo_up(bp + 4)) >> int32(24)) + **(**uint8)(__ccgo_up(out + 5)) = uint8(**(**Tuint32_t)(__ccgo_up(bp + 4)) >> int32(16)) + **(**uint8)(__ccgo_up(out + 6)) = uint8(**(**Tuint32_t)(__ccgo_up(bp + 4)) >> int32(8)) + **(**uint8)(__ccgo_up(out + 7)) = uint8(**(**Tuint32_t)(__ccgo_up(bp + 4))) +} + +func __crypt_extended_r_uut(tls *TLS, _key uintptr, _setting uintptr, output uintptr) (r uintptr) { + bp := tls.Alloc(144) + defer tls.Free(144) + var count, l, salt, value, value1 Tuint32_t + var i uint32 + var key, p, q, setting, v1, v4, v5 uintptr + var _ /* ekey at bp+0 */ Texpanded_key + var _ /* keybuf at bp+128 */ [8]uint8 + var _ /* r0 at bp+136 */ Tuint32_t + var _ /* r1 at bp+140 */ Tuint32_t + _, _, _, _, _, _, _, _, _, _, _, _, _ = count, i, key, l, p, q, salt, setting, value, value1, v1, v4, v5 + key = _key + setting = _setting + /* + * Copy the key, shifting each character left by one bit and padding + * with zeroes. + */ + q = bp + 128 + for q <= bp+128+uintptr(Uint64FromInt64(8)-Uint64FromInt32(1)) { + v1 = q + q = q + 1 + **(**uint8)(__ccgo_up(v1)) = Uint8FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(key))) << int32(1)) + if **(**uint8)(__ccgo_up(key)) != 0 { + key = key + 1 + } + } + X__des_setkey(tls, bp+128, bp) + if Int32FromUint8(**(**uint8)(__ccgo_up(setting))) == int32('_') { + /* + * "new"-style: + * setting - underscore, 4 chars of count, 4 chars of salt + * key - unlimited characters + */ + i = uint32(1) + count = Uint32FromInt32(0) + for { + if !(i < uint32(5)) { + break + } + value = _ascii_to_bin(tls, Int32FromUint8(**(**uint8)(__ccgo_up(setting + uintptr(i))))) + if Int32FromUint8(_ascii64[value]) != Int32FromUint8(**(**uint8)(__ccgo_up(setting + uintptr(i)))) { + return UintptrFromInt32(0) + } + count = count | value<<((i-uint32(1))*uint32(6)) + goto _2 + _2: + ; + i = i + 1 + } + if !(count != 0) { + return UintptrFromInt32(0) + } + i = uint32(5) + salt = Uint32FromInt32(0) + for { + if !(i < uint32(9)) { + break + } + value1 = _ascii_to_bin(tls, Int32FromUint8(**(**uint8)(__ccgo_up(setting + uintptr(i))))) + if Int32FromUint8(_ascii64[value1]) != Int32FromUint8(**(**uint8)(__ccgo_up(setting + uintptr(i)))) { + return UintptrFromInt32(0) + } + salt = salt | value1<<((i-uint32(5))*uint32(6)) + goto _3 + _3: + ; + i = i + 1 + } + for **(**uint8)(__ccgo_up(key)) != 0 { + /* + * Encrypt the key with itself. + */ + _des_cipher(tls, bp+128, bp+128, uint32(1), uint32(0), bp) + /* + * And XOR with the next 8 characters of the key. + */ + q = bp + 128 + for q <= bp+128+uintptr(Uint64FromInt64(8)-Uint64FromInt32(1)) && **(**uint8)(__ccgo_up(key)) != 0 { + v4 = q + q = q + 1 + v1 = v4 + v5 = key + key = key + 1 + *(*uint8)(unsafe.Pointer(v1)) = uint8(int32(*(*uint8)(unsafe.Pointer(v1))) ^ Int32FromUint8(**(**uint8)(__ccgo_up(v5)))<> int32(8) + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l>>Int32FromInt32(18)&uint32(0x3f)] + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l>>Int32FromInt32(12)&uint32(0x3f)] + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l>>Int32FromInt32(6)&uint32(0x3f)] + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l&uint32(0x3f)] + l = **(**Tuint32_t)(__ccgo_up(bp + 136))<>Int32FromInt32(16)&uint32(0xffff) + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l>>Int32FromInt32(18)&uint32(0x3f)] + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l>>Int32FromInt32(12)&uint32(0x3f)] + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l>>Int32FromInt32(6)&uint32(0x3f)] + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l&uint32(0x3f)] + l = **(**Tuint32_t)(__ccgo_up(bp + 140)) << int32(2) + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l>>Int32FromInt32(12)&uint32(0x3f)] + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l>>Int32FromInt32(6)&uint32(0x3f)] + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l&uint32(0x3f)] + **(**uint8)(__ccgo_up(p)) = uint8(0) + return output +} + +func X__crypt_des(tls *TLS, key uintptr, setting uintptr, output uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v setting=%v output=%v, (%v:)", tls, key, setting, output, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var p, retval, test_hash, test_key, test_setting, v1 uintptr + var _ /* test_buf at bp+0 */ [21]int8 + _, _, _, _, _, _ = p, retval, test_hash, test_key, test_setting, v1 + test_key = __ccgo_ts + 72 + test_setting = __ccgo_ts + 93 + test_hash = __ccgo_ts + 103 + if int32(**(**int8)(__ccgo_up(setting))) != int32('_') { + test_setting = __ccgo_ts + 124 + test_hash = __ccgo_ts + 127 + } + /* + * Hash the supplied password. + */ + retval = __crypt_extended_r_uut(tls, key, setting, output) + /* + * Perform a quick self-test. It is important that we make both calls + * to _crypt_extended_r_uut() from the same scope such that they likely + * use the same stack locations, which makes the second call overwrite + * the first call's sensitive data on the stack and makes it more + * likely that any alignment related issues would be detected. + */ + p = __crypt_extended_r_uut(tls, test_key, test_setting, bp) + if p != 0 && !(Xstrcmp(tls, p, test_hash) != 0) && retval != 0 { + return retval + } + if int32(**(**int8)(__ccgo_up(setting))) == int32('*') { + v1 = __ccgo_ts + 141 + } else { + v1 = __ccgo_ts + 70 + } + return v1 +} + +const KEY_MAX = 30000 +const SALT_MAX = 8 + +/* public domain md5 implementation based on rfc1321 and libtomcrypt */ + +type Tmd5 = struct { + Flen1 Tuint64_t + Fh [4]Tuint32_t + Fbuf [64]Tuint8_t +} + +func _rol(tls *TLS, n Tuint32_t, k int32) (r Tuint32_t) { + return n<>(Int32FromInt32(32)-k) +} + +var _tab = [64]Tuint32_t{ + 0: uint32(0xd76aa478), + 1: uint32(0xe8c7b756), + 2: uint32(0x242070db), + 3: uint32(0xc1bdceee), + 4: uint32(0xf57c0faf), + 5: uint32(0x4787c62a), + 6: uint32(0xa8304613), + 7: uint32(0xfd469501), + 8: uint32(0x698098d8), + 9: uint32(0x8b44f7af), + 10: uint32(0xffff5bb1), + 11: uint32(0x895cd7be), + 12: uint32(0x6b901122), + 13: uint32(0xfd987193), + 14: uint32(0xa679438e), + 15: uint32(0x49b40821), + 16: uint32(0xf61e2562), + 17: uint32(0xc040b340), + 18: uint32(0x265e5a51), + 19: uint32(0xe9b6c7aa), + 20: uint32(0xd62f105d), + 21: uint32(0x02441453), + 22: uint32(0xd8a1e681), + 23: uint32(0xe7d3fbc8), + 24: uint32(0x21e1cde6), + 25: uint32(0xc33707d6), + 26: uint32(0xf4d50d87), + 27: uint32(0x455a14ed), + 28: uint32(0xa9e3e905), + 29: uint32(0xfcefa3f8), + 30: uint32(0x676f02d9), + 31: uint32(0x8d2a4c8a), + 32: uint32(0xfffa3942), + 33: uint32(0x8771f681), + 34: uint32(0x6d9d6122), + 35: uint32(0xfde5380c), + 36: uint32(0xa4beea44), + 37: uint32(0x4bdecfa9), + 38: uint32(0xf6bb4b60), + 39: uint32(0xbebfbc70), + 40: uint32(0x289b7ec6), + 41: uint32(0xeaa127fa), + 42: uint32(0xd4ef3085), + 43: uint32(0x04881d05), + 44: uint32(0xd9d4d039), + 45: uint32(0xe6db99e5), + 46: uint32(0x1fa27cf8), + 47: uint32(0xc4ac5665), + 48: uint32(0xf4292244), + 49: uint32(0x432aff97), + 50: uint32(0xab9423a7), + 51: uint32(0xfc93a039), + 52: uint32(0x655b59c3), + 53: uint32(0x8f0ccc92), + 54: uint32(0xffeff47d), + 55: uint32(0x85845dd1), + 56: uint32(0x6fa87e4f), + 57: uint32(0xfe2ce6e0), + 58: uint32(0xa3014314), + 59: uint32(0x4e0811a1), + 60: uint32(0xf7537e82), + 61: uint32(0xbd3af235), + 62: uint32(0x2ad7d2bb), + 63: uint32(0xeb86d391), +} + +func _processblock(tls *TLS, s uintptr, buf uintptr) { + bp := tls.Alloc(64) + defer tls.Free(64) + var a, b, c, d, i Tuint32_t + var _ /* W at bp+0 */ [16]Tuint32_t + _, _, _, _, _ = a, b, c, d, i + i = uint32(0) + for { + if !(i < uint32(16)) { + break + } + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[i] = uint32(**(**Tuint8_t)(__ccgo_up(buf + uintptr(uint32(4)*i)))) + **(**Tuint32_t)(__ccgo_up(bp + uintptr(i)*4)) |= uint32(**(**Tuint8_t)(__ccgo_up(buf + uintptr(uint32(4)*i+uint32(1))))) << int32(8) + **(**Tuint32_t)(__ccgo_up(bp + uintptr(i)*4)) |= uint32(**(**Tuint8_t)(__ccgo_up(buf + uintptr(uint32(4)*i+uint32(2))))) << int32(16) + **(**Tuint32_t)(__ccgo_up(bp + uintptr(i)*4)) |= uint32(**(**Tuint8_t)(__ccgo_up(buf + uintptr(uint32(4)*i+uint32(3))))) << int32(24) + goto _1 + _1: + ; + i = i + 1 + } + a = **(**Tuint32_t)(__ccgo_up(s + 8)) + b = **(**Tuint32_t)(__ccgo_up(s + 8 + 1*4)) + c = **(**Tuint32_t)(__ccgo_up(s + 8 + 2*4)) + d = **(**Tuint32_t)(__ccgo_up(s + 8 + 3*4)) + i = uint32(0) + for i < uint32(16) { + a = a + (d ^ b&(c^d) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[i] + _tab[i]) + a = _rol(tls, a, int32(7)) + b + i = i + 1 + d = d + (c ^ a&(b^c) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[i] + _tab[i]) + d = _rol(tls, d, int32(12)) + a + i = i + 1 + c = c + (b ^ d&(a^b) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[i] + _tab[i]) + c = _rol(tls, c, int32(17)) + d + i = i + 1 + b = b + (a ^ c&(d^a) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[i] + _tab[i]) + b = _rol(tls, b, int32(22)) + c + i = i + 1 + } + for i < uint32(32) { + a = a + (c ^ d&(c^b) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[(uint32(5)*i+uint32(1))%uint32(16)] + _tab[i]) + a = _rol(tls, a, int32(5)) + b + i = i + 1 + d = d + (b ^ c&(b^a) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[(uint32(5)*i+uint32(1))%uint32(16)] + _tab[i]) + d = _rol(tls, d, int32(9)) + a + i = i + 1 + c = c + (a ^ b&(a^d) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[(uint32(5)*i+uint32(1))%uint32(16)] + _tab[i]) + c = _rol(tls, c, int32(14)) + d + i = i + 1 + b = b + (d ^ a&(d^c) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[(uint32(5)*i+uint32(1))%uint32(16)] + _tab[i]) + b = _rol(tls, b, int32(20)) + c + i = i + 1 + } + for i < uint32(48) { + a = a + (b ^ c ^ d + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[(uint32(3)*i+uint32(5))%uint32(16)] + _tab[i]) + a = _rol(tls, a, int32(4)) + b + i = i + 1 + d = d + (a ^ b ^ c + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[(uint32(3)*i+uint32(5))%uint32(16)] + _tab[i]) + d = _rol(tls, d, int32(11)) + a + i = i + 1 + c = c + (d ^ a ^ b + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[(uint32(3)*i+uint32(5))%uint32(16)] + _tab[i]) + c = _rol(tls, c, int32(16)) + d + i = i + 1 + b = b + (c ^ d ^ a + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[(uint32(3)*i+uint32(5))%uint32(16)] + _tab[i]) + b = _rol(tls, b, int32(23)) + c + i = i + 1 + } + for i < uint32(64) { + a = a + (c ^ (b | ^d) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[uint32(7)*i%uint32(16)] + _tab[i]) + a = _rol(tls, a, int32(6)) + b + i = i + 1 + d = d + (b ^ (a | ^c) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[uint32(7)*i%uint32(16)] + _tab[i]) + d = _rol(tls, d, int32(10)) + a + i = i + 1 + c = c + (a ^ (d | ^b) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[uint32(7)*i%uint32(16)] + _tab[i]) + c = _rol(tls, c, int32(15)) + d + i = i + 1 + b = b + (d ^ (c | ^a) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[uint32(7)*i%uint32(16)] + _tab[i]) + b = _rol(tls, b, int32(21)) + c + i = i + 1 + } + **(**Tuint32_t)(__ccgo_up(s + 8)) += a + **(**Tuint32_t)(__ccgo_up(s + 8 + 1*4)) += b + **(**Tuint32_t)(__ccgo_up(s + 8 + 2*4)) += c + **(**Tuint32_t)(__ccgo_up(s + 8 + 3*4)) += d +} + +func _pad(tls *TLS, s uintptr) { + var r, v1 uint32 + _, _ = r, v1 + r = uint32((*Tmd5)(unsafe.Pointer(s)).Flen1 % uint64(64)) + v1 = r + r = r + 1 + **(**Tuint8_t)(__ccgo_up(s + 24 + uintptr(v1))) = uint8(0x80) + if r > uint32(56) { + Xmemset(tls, s+24+uintptr(r), 0, uint64(uint32(64)-r)) + r = uint32(0) + _processblock(tls, s, s+24) + } + Xmemset(tls, s+24+uintptr(r), 0, uint64(uint32(56)-r)) + **(**Tuint64_t)(__ccgo_up(s)) *= uint64(8) + **(**Tuint8_t)(__ccgo_up(s + 24 + 56)) = uint8((*Tmd5)(unsafe.Pointer(s)).Flen1) + **(**Tuint8_t)(__ccgo_up(s + 24 + 57)) = uint8((*Tmd5)(unsafe.Pointer(s)).Flen1 >> int32(8)) + **(**Tuint8_t)(__ccgo_up(s + 24 + 58)) = uint8((*Tmd5)(unsafe.Pointer(s)).Flen1 >> int32(16)) + **(**Tuint8_t)(__ccgo_up(s + 24 + 59)) = uint8((*Tmd5)(unsafe.Pointer(s)).Flen1 >> int32(24)) + **(**Tuint8_t)(__ccgo_up(s + 24 + 60)) = uint8((*Tmd5)(unsafe.Pointer(s)).Flen1 >> int32(32)) + **(**Tuint8_t)(__ccgo_up(s + 24 + 61)) = uint8((*Tmd5)(unsafe.Pointer(s)).Flen1 >> int32(40)) + **(**Tuint8_t)(__ccgo_up(s + 24 + 62)) = uint8((*Tmd5)(unsafe.Pointer(s)).Flen1 >> int32(48)) + **(**Tuint8_t)(__ccgo_up(s + 24 + 63)) = uint8((*Tmd5)(unsafe.Pointer(s)).Flen1 >> int32(56)) + _processblock(tls, s, s+24) +} + +func _md5_init(tls *TLS, s uintptr) { + (*Tmd5)(unsafe.Pointer(s)).Flen1 = uint64(0) + **(**Tuint32_t)(__ccgo_up(s + 8)) = uint32(0x67452301) + **(**Tuint32_t)(__ccgo_up(s + 8 + 1*4)) = uint32(0xefcdab89) + **(**Tuint32_t)(__ccgo_up(s + 8 + 2*4)) = uint32(0x98badcfe) + **(**Tuint32_t)(__ccgo_up(s + 8 + 3*4)) = uint32(0x10325476) +} + +func _md5_sum(tls *TLS, s uintptr, md uintptr) { + var i int32 + _ = i + _pad(tls, s) + i = 0 + for { + if !(i < int32(4)) { + break + } + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(4)*i))) = uint8(**(**Tuint32_t)(__ccgo_up(s + 8 + uintptr(i)*4))) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(4)*i+int32(1)))) = uint8(**(**Tuint32_t)(__ccgo_up(s + 8 + uintptr(i)*4)) >> int32(8)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(4)*i+int32(2)))) = uint8(**(**Tuint32_t)(__ccgo_up(s + 8 + uintptr(i)*4)) >> int32(16)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(4)*i+int32(3)))) = uint8(**(**Tuint32_t)(__ccgo_up(s + 8 + uintptr(i)*4)) >> int32(24)) + goto _1 + _1: + ; + i = i + 1 + } +} + +func _md5_update(tls *TLS, s uintptr, m uintptr, len1 uint64) { + var p uintptr + var r uint32 + _, _ = p, r + p = m + r = uint32((*Tmd5)(unsafe.Pointer(s)).Flen1 % uint64(64)) + **(**Tuint64_t)(__ccgo_up(s)) += len1 + if r != 0 { + if len1 < uint64(uint32(64)-r) { + Xmemcpy(tls, s+24+uintptr(r), p, len1) + return + } + Xmemcpy(tls, s+24+uintptr(r), p, uint64(uint32(64)-r)) + len1 = len1 - uint64(uint32(64)-r) + p = p + uintptr(uint32(64)-r) + _processblock(tls, s, s+24) + } + for { + if !(len1 >= uint64(64)) { + break + } + _processblock(tls, s, p) + goto _1 + _1: + ; + len1 = len1 - uint64(64) + p = p + uintptr(64) + } + Xmemcpy(tls, s+24, p, len1) +} + +/*- + * Copyright (c) 2003 Poul-Henning Kamp + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + */ + +/* key limit is not part of the original design, added for DoS protection */ + +var _b64 = [65]uint8{'.', '/', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'} + +func _to64(tls *TLS, s uintptr, u uint32, n int32) (r uintptr) { + var v1 int32 + var v2 uintptr + _, _ = v1, v2 + for { + n = n - 1 + v1 = n + if !(v1 >= 0) { + break + } + v2 = s + s = s + 1 + **(**int8)(__ccgo_up(v2)) = Int8FromUint8(_b64[u%uint32(64)]) + u = u / uint32(64) + } + return s +} + +func _md5crypt(tls *TLS, key uintptr, setting uintptr, output uintptr) (r uintptr) { + bp := tls.Alloc(112) + defer tls.Free(112) + var i, klen, slen uint32 + var p, salt, v5 uintptr + var _ /* ctx at bp+0 */ Tmd5 + var _ /* md at bp+88 */ [16]uint8 + _, _, _, _, _, _ = i, klen, p, salt, slen, v5 + /* reject large keys */ + klen = uint32(Xstrnlen(tls, key, Uint64FromInt32(Int32FromInt32(KEY_MAX)+Int32FromInt32(1)))) + if klen > uint32(KEY_MAX) { + return uintptr(0) + } + /* setting: $1$salt$ (closing $ is optional) */ + if Xstrncmp(tls, setting, __ccgo_ts+143, uint64(3)) != 0 { + return uintptr(0) + } + salt = setting + uintptr(3) + i = uint32(0) + for { + if !(i < uint32(SALT_MAX) && **(**int8)(__ccgo_up(salt + uintptr(i))) != 0 && int32(**(**int8)(__ccgo_up(salt + uintptr(i)))) != int32('$')) { + break + } + goto _1 + _1: + ; + i = i + 1 + } + slen = i + /* md5(key salt key) */ + _md5_init(tls, bp) + _md5_update(tls, bp, key, uint64(klen)) + _md5_update(tls, bp, salt, uint64(slen)) + _md5_update(tls, bp, key, uint64(klen)) + _md5_sum(tls, bp, bp+88) + /* md5(key $1$ salt repeated-md weird-key[0]-0) */ + _md5_init(tls, bp) + _md5_update(tls, bp, key, uint64(klen)) + _md5_update(tls, bp, setting, uint64(uint32(3)+slen)) + i = klen + for { + if !(uint64(i) > uint64(16)) { + break + } + _md5_update(tls, bp, bp+88, uint64(16)) + goto _2 + _2: + ; + i = uint32(uint64(i) - Uint64FromInt64(16)) + } + _md5_update(tls, bp, bp+88, uint64(i)) + (**(**[16]uint8)(__ccgo_up(bp + 88)))[0] = uint8(0) + i = klen + for { + if !(i != 0) { + break + } + if i&uint32(1) != 0 { + _md5_update(tls, bp, bp+88, uint64(1)) + } else { + _md5_update(tls, bp, key, uint64(1)) + } + goto _3 + _3: + ; + i = i >> uint32(1) + } + _md5_sum(tls, bp, bp+88) + /* md = f(md, key, salt) iteration */ + i = uint32(0) + for { + if !(i < uint32(1000)) { + break + } + _md5_init(tls, bp) + if i%uint32(2) != 0 { + _md5_update(tls, bp, key, uint64(klen)) + } else { + _md5_update(tls, bp, bp+88, uint64(16)) + } + if i%uint32(3) != 0 { + _md5_update(tls, bp, salt, uint64(slen)) + } + if i%uint32(7) != 0 { + _md5_update(tls, bp, key, uint64(klen)) + } + if i%uint32(2) != 0 { + _md5_update(tls, bp, bp+88, uint64(16)) + } else { + _md5_update(tls, bp, key, uint64(klen)) + } + _md5_sum(tls, bp, bp+88) + goto _4 + _4: + ; + i = i + 1 + } + /* output is $1$salt$hash */ + Xmemcpy(tls, output, setting, uint64(uint32(3)+slen)) + p = output + uintptr(3) + uintptr(slen) + v5 = p + p = p + 1 + **(**int8)(__ccgo_up(v5)) = int8('$') + i = uint32(0) + for { + if !(i < uint32(5)) { + break + } + p = _to64(tls, p, Uint32FromInt32(Int32FromUint8((**(**[16]uint8)(__ccgo_up(bp + 88)))[**(**uint8)(__ccgo_up(uintptr(unsafe.Pointer(&_perm)) + uintptr(i)*3))])< %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var p, q uintptr + var _ /* testbuf at bp+0 */ [64]int8 + _, _ = p, q + p = _md5crypt(tls, key, setting, output) + /* self test and stack cleanup */ + q = _md5crypt(tls, uintptr(unsafe.Pointer(&_testkey)), uintptr(unsafe.Pointer(&_testsetting)), bp) + if !(p != 0) || q != bp || Xmemcmp(tls, bp, uintptr(unsafe.Pointer(&_testhash)), uint64(35)) != 0 { + return __ccgo_ts + 70 + } + return p +} + +var _testkey = [18]int8{'X', 'y', '0', '1', '@', '#', 1, 2, -128, 127, -1, 13, 10, -127, 9, ' ', '!'} + +var _testsetting = [13]int8{'$', '1', '$', 'a', 'b', 'c', 'd', '0', '1', '2', '3', '$'} + +var _testhash = [35]int8{'$', '1', '$', 'a', 'b', 'c', 'd', '0', '1', '2', '3', '$', '9', 'Q', 'c', 'g', '8', 'D', 'y', 'v', 'i', 'e', 'k', 'V', '3', 't', 'D', 'G', 'M', 'Z', 'y', 'n', 'J', '1'} + +func X__crypt_r(tls *TLS, key uintptr, salt uintptr, data uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v salt=%v data=%v, (%v:)", tls, key, salt, data, origin(2)) + defer func() { trc("-> %v", r) }() + } + var output uintptr + _ = output + /* Per the crypt_r API, the caller has provided a pointer to + * struct crypt_data; however, this implementation does not + * use the structure to store any internal state, and treats + * it purely as a char buffer for storing the result. */ + output = data + if int32(**(**int8)(__ccgo_up(salt))) == int32('$') && **(**int8)(__ccgo_up(salt + 1)) != 0 && **(**int8)(__ccgo_up(salt + 2)) != 0 { + if int32(**(**int8)(__ccgo_up(salt + 1))) == int32('1') && int32(**(**int8)(__ccgo_up(salt + 2))) == int32('$') { + return X__crypt_md5(tls, key, salt, output) + } + if int32(**(**int8)(__ccgo_up(salt + 1))) == int32('2') && int32(**(**int8)(__ccgo_up(salt + 3))) == int32('$') { + return X__crypt_blowfish(tls, key, salt, output) + } + if int32(**(**int8)(__ccgo_up(salt + 1))) == int32('5') && int32(**(**int8)(__ccgo_up(salt + 2))) == int32('$') { + return X__crypt_sha256(tls, key, salt, output) + } + if int32(**(**int8)(__ccgo_up(salt + 1))) == int32('6') && int32(**(**int8)(__ccgo_up(salt + 2))) == int32('$') { + return X__crypt_sha512(tls, key, salt, output) + } + } + return X__crypt_des(tls, key, salt, output) +} + +func Xcrypt_r(tls *TLS, key uintptr, salt uintptr, data uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v salt=%v data=%v, (%v:)", tls, key, salt, data, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__crypt_r(tls, key, salt, data) +} + +const KEY_MAX1 = 256 +const ROUNDS_DEFAULT = 5000 +const ROUNDS_MAX = 9999999 +const ROUNDS_MIN = 1000 +const SALT_MAX1 = 16 + +/* public domain sha256 implementation based on fips180-3 */ + +type Tsha256 = struct { + Flen1 Tuint64_t + Fh [8]Tuint32_t + Fbuf [64]Tuint8_t +} + +func _ror(tls *TLS, n Tuint32_t, k int32) (r Tuint32_t) { + return n>>k | n<<(Int32FromInt32(32)-k) +} + +var _K = [64]Tuint32_t{ + 0: uint32(0x428a2f98), + 1: uint32(0x71374491), + 2: uint32(0xb5c0fbcf), + 3: uint32(0xe9b5dba5), + 4: uint32(0x3956c25b), + 5: uint32(0x59f111f1), + 6: uint32(0x923f82a4), + 7: uint32(0xab1c5ed5), + 8: uint32(0xd807aa98), + 9: uint32(0x12835b01), + 10: uint32(0x243185be), + 11: uint32(0x550c7dc3), + 12: uint32(0x72be5d74), + 13: uint32(0x80deb1fe), + 14: uint32(0x9bdc06a7), + 15: uint32(0xc19bf174), + 16: uint32(0xe49b69c1), + 17: uint32(0xefbe4786), + 18: uint32(0x0fc19dc6), + 19: uint32(0x240ca1cc), + 20: uint32(0x2de92c6f), + 21: uint32(0x4a7484aa), + 22: uint32(0x5cb0a9dc), + 23: uint32(0x76f988da), + 24: uint32(0x983e5152), + 25: uint32(0xa831c66d), + 26: uint32(0xb00327c8), + 27: uint32(0xbf597fc7), + 28: uint32(0xc6e00bf3), + 29: uint32(0xd5a79147), + 30: uint32(0x06ca6351), + 31: uint32(0x14292967), + 32: uint32(0x27b70a85), + 33: uint32(0x2e1b2138), + 34: uint32(0x4d2c6dfc), + 35: uint32(0x53380d13), + 36: uint32(0x650a7354), + 37: uint32(0x766a0abb), + 38: uint32(0x81c2c92e), + 39: uint32(0x92722c85), + 40: uint32(0xa2bfe8a1), + 41: uint32(0xa81a664b), + 42: uint32(0xc24b8b70), + 43: uint32(0xc76c51a3), + 44: uint32(0xd192e819), + 45: uint32(0xd6990624), + 46: uint32(0xf40e3585), + 47: uint32(0x106aa070), + 48: uint32(0x19a4c116), + 49: uint32(0x1e376c08), + 50: uint32(0x2748774c), + 51: uint32(0x34b0bcb5), + 52: uint32(0x391c0cb3), + 53: uint32(0x4ed8aa4a), + 54: uint32(0x5b9cca4f), + 55: uint32(0x682e6ff3), + 56: uint32(0x748f82ee), + 57: uint32(0x78a5636f), + 58: uint32(0x84c87814), + 59: uint32(0x8cc70208), + 60: uint32(0x90befffa), + 61: uint32(0xa4506ceb), + 62: uint32(0xbef9a3f7), + 63: uint32(0xc67178f2), +} + +func _processblock1(tls *TLS, s uintptr, buf uintptr) { + bp := tls.Alloc(256) + defer tls.Free(256) + var a, b, c, d, e, f, g, h, t1, t2 Tuint32_t + var i int32 + var _ /* W at bp+0 */ [64]Tuint32_t + _, _, _, _, _, _, _, _, _, _, _ = a, b, c, d, e, f, g, h, i, t1, t2 + i = 0 + for { + if !(i < int32(16)) { + break + } + (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i] = uint32(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(4)*i)))) << int32(24) + **(**Tuint32_t)(__ccgo_up(bp + uintptr(i)*4)) |= uint32(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(4)*i+int32(1))))) << int32(16) + **(**Tuint32_t)(__ccgo_up(bp + uintptr(i)*4)) |= uint32(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(4)*i+int32(2))))) << int32(8) + **(**Tuint32_t)(__ccgo_up(bp + uintptr(i)*4)) |= uint32(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(4)*i+int32(3))))) + goto _1 + _1: + ; + i = i + 1 + } + for { + if !(i < int32(64)) { + break + } + (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i] = _ror(tls, (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i-int32(2)], int32(17)) ^ _ror(tls, (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i-int32(2)], int32(19)) ^ (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i-int32(2)]>>Int32FromInt32(10) + (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i-int32(7)] + (_ror(tls, (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i-int32(15)], int32(7)) ^ _ror(tls, (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i-int32(15)], int32(18)) ^ (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i-int32(15)]>>Int32FromInt32(3)) + (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i-int32(16)] + goto _2 + _2: + ; + i = i + 1 + } + a = **(**Tuint32_t)(__ccgo_up(s + 8)) + b = **(**Tuint32_t)(__ccgo_up(s + 8 + 1*4)) + c = **(**Tuint32_t)(__ccgo_up(s + 8 + 2*4)) + d = **(**Tuint32_t)(__ccgo_up(s + 8 + 3*4)) + e = **(**Tuint32_t)(__ccgo_up(s + 8 + 4*4)) + f = **(**Tuint32_t)(__ccgo_up(s + 8 + 5*4)) + g = **(**Tuint32_t)(__ccgo_up(s + 8 + 6*4)) + h = **(**Tuint32_t)(__ccgo_up(s + 8 + 7*4)) + i = 0 + for { + if !(i < int32(64)) { + break + } + t1 = h + (_ror(tls, e, int32(6)) ^ _ror(tls, e, int32(11)) ^ _ror(tls, e, int32(25))) + (g ^ e&(f^g)) + _K[i] + (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i] + t2 = _ror(tls, a, int32(2)) ^ _ror(tls, a, int32(13)) ^ _ror(tls, a, int32(22)) + (a&b | c&(a|b)) + h = g + g = f + f = e + e = d + t1 + d = c + c = b + b = a + a = t1 + t2 + goto _3 + _3: + ; + i = i + 1 + } + **(**Tuint32_t)(__ccgo_up(s + 8)) += a + **(**Tuint32_t)(__ccgo_up(s + 8 + 1*4)) += b + **(**Tuint32_t)(__ccgo_up(s + 8 + 2*4)) += c + **(**Tuint32_t)(__ccgo_up(s + 8 + 3*4)) += d + **(**Tuint32_t)(__ccgo_up(s + 8 + 4*4)) += e + **(**Tuint32_t)(__ccgo_up(s + 8 + 5*4)) += f + **(**Tuint32_t)(__ccgo_up(s + 8 + 6*4)) += g + **(**Tuint32_t)(__ccgo_up(s + 8 + 7*4)) += h +} + +func _pad1(tls *TLS, s uintptr) { + var r, v1 uint32 + _, _ = r, v1 + r = uint32((*Tsha256)(unsafe.Pointer(s)).Flen1 % uint64(64)) + v1 = r + r = r + 1 + **(**Tuint8_t)(__ccgo_up(s + 40 + uintptr(v1))) = uint8(0x80) + if r > uint32(56) { + Xmemset(tls, s+40+uintptr(r), 0, uint64(uint32(64)-r)) + r = uint32(0) + _processblock1(tls, s, s+40) + } + Xmemset(tls, s+40+uintptr(r), 0, uint64(uint32(56)-r)) + **(**Tuint64_t)(__ccgo_up(s)) *= uint64(8) + **(**Tuint8_t)(__ccgo_up(s + 40 + 56)) = uint8((*Tsha256)(unsafe.Pointer(s)).Flen1 >> int32(56)) + **(**Tuint8_t)(__ccgo_up(s + 40 + 57)) = uint8((*Tsha256)(unsafe.Pointer(s)).Flen1 >> int32(48)) + **(**Tuint8_t)(__ccgo_up(s + 40 + 58)) = uint8((*Tsha256)(unsafe.Pointer(s)).Flen1 >> int32(40)) + **(**Tuint8_t)(__ccgo_up(s + 40 + 59)) = uint8((*Tsha256)(unsafe.Pointer(s)).Flen1 >> int32(32)) + **(**Tuint8_t)(__ccgo_up(s + 40 + 60)) = uint8((*Tsha256)(unsafe.Pointer(s)).Flen1 >> int32(24)) + **(**Tuint8_t)(__ccgo_up(s + 40 + 61)) = uint8((*Tsha256)(unsafe.Pointer(s)).Flen1 >> int32(16)) + **(**Tuint8_t)(__ccgo_up(s + 40 + 62)) = uint8((*Tsha256)(unsafe.Pointer(s)).Flen1 >> int32(8)) + **(**Tuint8_t)(__ccgo_up(s + 40 + 63)) = uint8((*Tsha256)(unsafe.Pointer(s)).Flen1) + _processblock1(tls, s, s+40) +} + +func _sha256_init(tls *TLS, s uintptr) { + (*Tsha256)(unsafe.Pointer(s)).Flen1 = uint64(0) + **(**Tuint32_t)(__ccgo_up(s + 8)) = uint32(0x6a09e667) + **(**Tuint32_t)(__ccgo_up(s + 8 + 1*4)) = uint32(0xbb67ae85) + **(**Tuint32_t)(__ccgo_up(s + 8 + 2*4)) = uint32(0x3c6ef372) + **(**Tuint32_t)(__ccgo_up(s + 8 + 3*4)) = uint32(0xa54ff53a) + **(**Tuint32_t)(__ccgo_up(s + 8 + 4*4)) = uint32(0x510e527f) + **(**Tuint32_t)(__ccgo_up(s + 8 + 5*4)) = uint32(0x9b05688c) + **(**Tuint32_t)(__ccgo_up(s + 8 + 6*4)) = uint32(0x1f83d9ab) + **(**Tuint32_t)(__ccgo_up(s + 8 + 7*4)) = uint32(0x5be0cd19) +} + +func _sha256_sum(tls *TLS, s uintptr, md uintptr) { + var i int32 + _ = i + _pad1(tls, s) + i = 0 + for { + if !(i < int32(8)) { + break + } + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(4)*i))) = uint8(**(**Tuint32_t)(__ccgo_up(s + 8 + uintptr(i)*4)) >> int32(24)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(4)*i+int32(1)))) = uint8(**(**Tuint32_t)(__ccgo_up(s + 8 + uintptr(i)*4)) >> int32(16)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(4)*i+int32(2)))) = uint8(**(**Tuint32_t)(__ccgo_up(s + 8 + uintptr(i)*4)) >> int32(8)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(4)*i+int32(3)))) = uint8(**(**Tuint32_t)(__ccgo_up(s + 8 + uintptr(i)*4))) + goto _1 + _1: + ; + i = i + 1 + } +} + +func _sha256_update(tls *TLS, s uintptr, m uintptr, len1 uint64) { + var p uintptr + var r uint32 + _, _ = p, r + p = m + r = uint32((*Tsha256)(unsafe.Pointer(s)).Flen1 % uint64(64)) + **(**Tuint64_t)(__ccgo_up(s)) += len1 + if r != 0 { + if len1 < uint64(uint32(64)-r) { + Xmemcpy(tls, s+40+uintptr(r), p, len1) + return + } + Xmemcpy(tls, s+40+uintptr(r), p, uint64(uint32(64)-r)) + len1 = len1 - uint64(uint32(64)-r) + p = p + uintptr(uint32(64)-r) + _processblock1(tls, s, s+40) + } + for { + if !(len1 >= uint64(64)) { + break + } + _processblock1(tls, s, p) + goto _1 + _1: + ; + len1 = len1 - uint64(64) + p = p + uintptr(64) + } + Xmemcpy(tls, s+40, p, len1) +} + +var _b641 = [65]uint8{'.', '/', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'} + +func _to641(tls *TLS, s uintptr, u uint32, n int32) (r uintptr) { + var v1 int32 + var v2 uintptr + _, _ = v1, v2 + for { + n = n - 1 + v1 = n + if !(v1 >= 0) { + break + } + v2 = s + s = s + 1 + **(**int8)(__ccgo_up(v2)) = Int8FromUint8(_b641[u%uint32(64)]) + u = u / uint32(64) + } + return s +} + +/* key limit is not part of the original design, added for DoS protection. + * rounds limit has been lowered (versus the reference/spec), also for DoS + * protection. runtime is O(klen^2 + klen*rounds) */ + +// C documentation +// +// /* hash n bytes of the repeated md message digest */ +func _hashmd(tls *TLS, s uintptr, n uint32, md uintptr) { + var i uint32 + _ = i + i = n + for { + if !(i > uint32(32)) { + break + } + _sha256_update(tls, s, md, uint64(32)) + goto _1 + _1: + ; + i = i - uint32(32) + } + _sha256_update(tls, s, md, uint64(i)) +} + +func _sha256crypt(tls *TLS, key uintptr, setting uintptr, output uintptr) (r1 uintptr) { + bp := tls.Alloc(272) + defer tls.Free(272) + var i, klen, r, slen uint32 + var p, salt uintptr + var u uint64 + var _ /* ctx at bp+0 */ Tsha256 + var _ /* end at bp+224 */ uintptr + var _ /* kmd at bp+136 */ [32]uint8 + var _ /* md at bp+104 */ [32]uint8 + var _ /* rounds at bp+200 */ [20]int8 + var _ /* smd at bp+168 */ [32]uint8 + _, _, _, _, _, _, _ = i, klen, p, r, salt, slen, u + **(**[20]int8)(__ccgo_up(bp + 200)) = [20]int8{} + /* reject large keys */ + klen = uint32(Xstrnlen(tls, key, Uint64FromInt32(Int32FromInt32(KEY_MAX1)+Int32FromInt32(1)))) + if klen > uint32(KEY_MAX1) { + return uintptr(0) + } + /* setting: $5$rounds=n$salt$ (rounds=n$ and closing $ are optional) */ + if Xstrncmp(tls, setting, __ccgo_ts+147, uint64(3)) != 0 { + return uintptr(0) + } + salt = setting + uintptr(3) + r = uint32(ROUNDS_DEFAULT) + if Xstrncmp(tls, salt, __ccgo_ts+151, Uint64FromInt64(8)-Uint64FromInt32(1)) == 0 { + /* + * this is a deviation from the reference: + * bad rounds setting is rejected if it is + * - empty + * - unterminated (missing '$') + * - begins with anything but a decimal digit + * the reference implementation treats these bad + * rounds as part of the salt or parse them with + * strtoul semantics which may cause problems + * including non-portable hashes that depend on + * the host's value of ULONG_MAX. + */ + salt = salt + uintptr(Uint64FromInt64(8)-Uint64FromInt32(1)) + if !(BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(salt)))-Uint32FromUint8('0') < Uint32FromInt32(10)) != 0) { + return uintptr(0) + } + u = Xstrtoul(tls, salt, bp+224, int32(10)) + if int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 224))))) != int32('$') { + return uintptr(0) + } + salt = **(**uintptr)(__ccgo_up(bp + 224)) + uintptr(1) + if u < uint64(ROUNDS_MIN) { + r = uint32(ROUNDS_MIN) + } else { + if u > uint64(ROUNDS_MAX) { + return uintptr(0) + } else { + r = uint32(u) + } + } + /* needed when rounds is zero prefixed or out of bounds */ + Xsprintf(tls, bp+200, __ccgo_ts+159, VaList(bp+240, r)) + } + i = uint32(0) + for { + if !(i < uint32(SALT_MAX1) && **(**int8)(__ccgo_up(salt + uintptr(i))) != 0 && int32(**(**int8)(__ccgo_up(salt + uintptr(i)))) != int32('$')) { + break + } + /* reject characters that interfere with /etc/shadow parsing */ + if int32(**(**int8)(__ccgo_up(salt + uintptr(i)))) == int32('\n') || int32(**(**int8)(__ccgo_up(salt + uintptr(i)))) == int32(':') { + return uintptr(0) + } + goto _1 + _1: + ; + i = i + 1 + } + slen = i + /* B = sha(key salt key) */ + _sha256_init(tls, bp) + _sha256_update(tls, bp, key, uint64(klen)) + _sha256_update(tls, bp, salt, uint64(slen)) + _sha256_update(tls, bp, key, uint64(klen)) + _sha256_sum(tls, bp, bp+104) + /* A = sha(key salt repeat-B alternate-B-key) */ + _sha256_init(tls, bp) + _sha256_update(tls, bp, key, uint64(klen)) + _sha256_update(tls, bp, salt, uint64(slen)) + _hashmd(tls, bp, klen, bp+104) + i = klen + for { + if !(i > uint32(0)) { + break + } + if i&uint32(1) != 0 { + _sha256_update(tls, bp, bp+104, uint64(32)) + } else { + _sha256_update(tls, bp, key, uint64(klen)) + } + goto _2 + _2: + ; + i = i >> uint32(1) + } + _sha256_sum(tls, bp, bp+104) + /* DP = sha(repeat-key), this step takes O(klen^2) time */ + _sha256_init(tls, bp) + i = uint32(0) + for { + if !(i < klen) { + break + } + _sha256_update(tls, bp, key, uint64(klen)) + goto _3 + _3: + ; + i = i + 1 + } + _sha256_sum(tls, bp, bp+136) + /* DS = sha(repeat-salt) */ + _sha256_init(tls, bp) + i = uint32(0) + for { + if !(i < Uint32FromInt32(int32(16)+Int32FromUint8((**(**[32]uint8)(__ccgo_up(bp + 104)))[0]))) { + break + } + _sha256_update(tls, bp, salt, uint64(slen)) + goto _4 + _4: + ; + i = i + 1 + } + _sha256_sum(tls, bp, bp+168) + /* iterate A = f(A,DP,DS), this step takes O(rounds*klen) time */ + i = uint32(0) + for { + if !(i < r) { + break + } + _sha256_init(tls, bp) + if i%uint32(2) != 0 { + _hashmd(tls, bp, klen, bp+136) + } else { + _sha256_update(tls, bp, bp+104, uint64(32)) + } + if i%uint32(3) != 0 { + _sha256_update(tls, bp, bp+168, uint64(slen)) + } + if i%uint32(7) != 0 { + _hashmd(tls, bp, klen, bp+136) + } + if i%uint32(2) != 0 { + _sha256_update(tls, bp, bp+104, uint64(32)) + } else { + _hashmd(tls, bp, klen, bp+136) + } + _sha256_sum(tls, bp, bp+104) + goto _5 + _5: + ; + i = i + 1 + } + /* output is $5$rounds=n$salt$hash */ + p = output + p = p + uintptr(Xsprintf(tls, p, __ccgo_ts+170, VaList(bp+240, bp+200, slen, salt))) + i = uint32(0) + for { + if !(i < uint32(10)) { + break + } + p = _to641(tls, p, Uint32FromInt32(Int32FromUint8((**(**[32]uint8)(__ccgo_up(bp + 104)))[**(**uint8)(__ccgo_up(uintptr(unsafe.Pointer(&_perm1)) + uintptr(i)*3))])< %v", r) }() + } + bp := tls.Alloc(128) + defer tls.Free(128) + var p, q uintptr + var _ /* testbuf at bp+0 */ [128]int8 + _, _ = p, q + p = _sha256crypt(tls, key, setting, output) + /* self test and stack cleanup */ + q = _sha256crypt(tls, uintptr(unsafe.Pointer(&_testkey1)), uintptr(unsafe.Pointer(&_testsetting1)), bp) + if !(p != 0) || q != bp || Xmemcmp(tls, bp, uintptr(unsafe.Pointer(&_testhash1)), uint64(73)) != 0 { + return __ccgo_ts + 70 + } + return p +} + +var _testkey1 = [18]int8{'X', 'y', '0', '1', '@', '#', 1, 2, -128, 127, -1, 13, 10, -127, 9, ' ', '!'} + +var _testsetting1 = [30]int8{'$', '5', '$', 'r', 'o', 'u', 'n', 'd', 's', '=', '1', '2', '3', '4', '$', 'a', 'b', 'c', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '$'} + +var _testhash1 = [73]int8{'$', '5', '$', 'r', 'o', 'u', 'n', 'd', 's', '=', '1', '2', '3', '4', '$', 'a', 'b', 'c', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '$', '3', 'V', 'f', 'D', 'j', 'P', 't', '0', '5', 'V', 'H', 'F', 'n', '4', '7', 'C', '/', 'o', 'j', 'F', 'Z', '6', 'K', 'R', 'P', 'Y', 'r', 'O', 'j', 'j', '1', 'l', 'L', 'b', 'H', '.', 'd', 'k', 'F', '3', 'b', 'Z', '6'} + +/* public domain sha512 implementation based on fips180-3 */ +/* >=2^64 bits messages are not supported (about 2000 peta bytes) */ + +type Tsha512 = struct { + Flen1 Tuint64_t + Fh [8]Tuint64_t + Fbuf [128]Tuint8_t +} + +func _ror1(tls *TLS, n Tuint64_t, k int32) (r Tuint64_t) { + return n>>k | n<<(Int32FromInt32(64)-k) +} + +var _K1 = [80]Tuint64_t{ + 0: uint64(0x428a2f98d728ae22), + 1: uint64(0x7137449123ef65cd), + 2: uint64(0xb5c0fbcfec4d3b2f), + 3: uint64(0xe9b5dba58189dbbc), + 4: uint64(0x3956c25bf348b538), + 5: uint64(0x59f111f1b605d019), + 6: uint64(0x923f82a4af194f9b), + 7: uint64(0xab1c5ed5da6d8118), + 8: uint64(0xd807aa98a3030242), + 9: uint64(0x12835b0145706fbe), + 10: uint64(0x243185be4ee4b28c), + 11: uint64(0x550c7dc3d5ffb4e2), + 12: uint64(0x72be5d74f27b896f), + 13: uint64(0x80deb1fe3b1696b1), + 14: uint64(0x9bdc06a725c71235), + 15: uint64(0xc19bf174cf692694), + 16: uint64(0xe49b69c19ef14ad2), + 17: uint64(0xefbe4786384f25e3), + 18: uint64(0x0fc19dc68b8cd5b5), + 19: uint64(0x240ca1cc77ac9c65), + 20: uint64(0x2de92c6f592b0275), + 21: uint64(0x4a7484aa6ea6e483), + 22: uint64(0x5cb0a9dcbd41fbd4), + 23: uint64(0x76f988da831153b5), + 24: uint64(0x983e5152ee66dfab), + 25: uint64(0xa831c66d2db43210), + 26: uint64(0xb00327c898fb213f), + 27: uint64(0xbf597fc7beef0ee4), + 28: uint64(0xc6e00bf33da88fc2), + 29: uint64(0xd5a79147930aa725), + 30: uint64(0x06ca6351e003826f), + 31: uint64(0x142929670a0e6e70), + 32: uint64(0x27b70a8546d22ffc), + 33: uint64(0x2e1b21385c26c926), + 34: uint64(0x4d2c6dfc5ac42aed), + 35: uint64(0x53380d139d95b3df), + 36: uint64(0x650a73548baf63de), + 37: uint64(0x766a0abb3c77b2a8), + 38: uint64(0x81c2c92e47edaee6), + 39: uint64(0x92722c851482353b), + 40: uint64(0xa2bfe8a14cf10364), + 41: uint64(0xa81a664bbc423001), + 42: uint64(0xc24b8b70d0f89791), + 43: uint64(0xc76c51a30654be30), + 44: uint64(0xd192e819d6ef5218), + 45: uint64(0xd69906245565a910), + 46: uint64(0xf40e35855771202a), + 47: uint64(0x106aa07032bbd1b8), + 48: uint64(0x19a4c116b8d2d0c8), + 49: uint64(0x1e376c085141ab53), + 50: uint64(0x2748774cdf8eeb99), + 51: uint64(0x34b0bcb5e19b48a8), + 52: uint64(0x391c0cb3c5c95a63), + 53: uint64(0x4ed8aa4ae3418acb), + 54: uint64(0x5b9cca4f7763e373), + 55: uint64(0x682e6ff3d6b2b8a3), + 56: uint64(0x748f82ee5defb2fc), + 57: uint64(0x78a5636f43172f60), + 58: uint64(0x84c87814a1f0ab72), + 59: uint64(0x8cc702081a6439ec), + 60: uint64(0x90befffa23631e28), + 61: uint64(0xa4506cebde82bde9), + 62: uint64(0xbef9a3f7b2c67915), + 63: uint64(0xc67178f2e372532b), + 64: uint64(0xca273eceea26619c), + 65: uint64(0xd186b8c721c0c207), + 66: uint64(0xeada7dd6cde0eb1e), + 67: uint64(0xf57d4f7fee6ed178), + 68: uint64(0x06f067aa72176fba), + 69: uint64(0x0a637dc5a2c898a6), + 70: uint64(0x113f9804bef90dae), + 71: uint64(0x1b710b35131c471b), + 72: uint64(0x28db77f523047d84), + 73: uint64(0x32caab7b40c72493), + 74: uint64(0x3c9ebe0a15c9bebc), + 75: uint64(0x431d67c49c100d4c), + 76: uint64(0x4cc5d4becb3e42b6), + 77: uint64(0x597f299cfc657e2a), + 78: uint64(0x5fcb6fab3ad6faec), + 79: uint64(0x6c44198c4a475817), +} + +func _processblock2(tls *TLS, s uintptr, buf uintptr) { + bp := tls.Alloc(640) + defer tls.Free(640) + var a, b, c, d, e, f, g, h, t1, t2 Tuint64_t + var i int32 + var _ /* W at bp+0 */ [80]Tuint64_t + _, _, _, _, _, _, _, _, _, _, _ = a, b, c, d, e, f, g, h, i, t1, t2 + i = 0 + for { + if !(i < int32(16)) { + break + } + (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i] = uint64(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(8)*i)))) << int32(56) + **(**Tuint64_t)(__ccgo_up(bp + uintptr(i)*8)) |= uint64(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(8)*i+int32(1))))) << int32(48) + **(**Tuint64_t)(__ccgo_up(bp + uintptr(i)*8)) |= uint64(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(8)*i+int32(2))))) << int32(40) + **(**Tuint64_t)(__ccgo_up(bp + uintptr(i)*8)) |= uint64(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(8)*i+int32(3))))) << int32(32) + **(**Tuint64_t)(__ccgo_up(bp + uintptr(i)*8)) |= uint64(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(8)*i+int32(4))))) << int32(24) + **(**Tuint64_t)(__ccgo_up(bp + uintptr(i)*8)) |= uint64(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(8)*i+int32(5))))) << int32(16) + **(**Tuint64_t)(__ccgo_up(bp + uintptr(i)*8)) |= uint64(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(8)*i+int32(6))))) << int32(8) + **(**Tuint64_t)(__ccgo_up(bp + uintptr(i)*8)) |= uint64(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(8)*i+int32(7))))) + goto _1 + _1: + ; + i = i + 1 + } + for { + if !(i < int32(80)) { + break + } + (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i] = _ror1(tls, (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i-int32(2)], int32(19)) ^ _ror1(tls, (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i-int32(2)], int32(61)) ^ (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i-int32(2)]>>Int32FromInt32(6) + (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i-int32(7)] + (_ror1(tls, (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i-int32(15)], int32(1)) ^ _ror1(tls, (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i-int32(15)], int32(8)) ^ (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i-int32(15)]>>Int32FromInt32(7)) + (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i-int32(16)] + goto _2 + _2: + ; + i = i + 1 + } + a = **(**Tuint64_t)(__ccgo_up(s + 8)) + b = **(**Tuint64_t)(__ccgo_up(s + 8 + 1*8)) + c = **(**Tuint64_t)(__ccgo_up(s + 8 + 2*8)) + d = **(**Tuint64_t)(__ccgo_up(s + 8 + 3*8)) + e = **(**Tuint64_t)(__ccgo_up(s + 8 + 4*8)) + f = **(**Tuint64_t)(__ccgo_up(s + 8 + 5*8)) + g = **(**Tuint64_t)(__ccgo_up(s + 8 + 6*8)) + h = **(**Tuint64_t)(__ccgo_up(s + 8 + 7*8)) + i = 0 + for { + if !(i < int32(80)) { + break + } + t1 = h + (_ror1(tls, e, int32(14)) ^ _ror1(tls, e, int32(18)) ^ _ror1(tls, e, int32(41))) + (g ^ e&(f^g)) + _K1[i] + (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i] + t2 = _ror1(tls, a, int32(28)) ^ _ror1(tls, a, int32(34)) ^ _ror1(tls, a, int32(39)) + (a&b | c&(a|b)) + h = g + g = f + f = e + e = d + t1 + d = c + c = b + b = a + a = t1 + t2 + goto _3 + _3: + ; + i = i + 1 + } + **(**Tuint64_t)(__ccgo_up(s + 8)) += a + **(**Tuint64_t)(__ccgo_up(s + 8 + 1*8)) += b + **(**Tuint64_t)(__ccgo_up(s + 8 + 2*8)) += c + **(**Tuint64_t)(__ccgo_up(s + 8 + 3*8)) += d + **(**Tuint64_t)(__ccgo_up(s + 8 + 4*8)) += e + **(**Tuint64_t)(__ccgo_up(s + 8 + 5*8)) += f + **(**Tuint64_t)(__ccgo_up(s + 8 + 6*8)) += g + **(**Tuint64_t)(__ccgo_up(s + 8 + 7*8)) += h +} + +func _pad2(tls *TLS, s uintptr) { + var r, v1 uint32 + _, _ = r, v1 + r = uint32((*Tsha512)(unsafe.Pointer(s)).Flen1 % uint64(128)) + v1 = r + r = r + 1 + **(**Tuint8_t)(__ccgo_up(s + 72 + uintptr(v1))) = uint8(0x80) + if r > uint32(112) { + Xmemset(tls, s+72+uintptr(r), 0, uint64(uint32(128)-r)) + r = uint32(0) + _processblock2(tls, s, s+72) + } + Xmemset(tls, s+72+uintptr(r), 0, uint64(uint32(120)-r)) + **(**Tuint64_t)(__ccgo_up(s)) *= uint64(8) + **(**Tuint8_t)(__ccgo_up(s + 72 + 120)) = uint8((*Tsha512)(unsafe.Pointer(s)).Flen1 >> int32(56)) + **(**Tuint8_t)(__ccgo_up(s + 72 + 121)) = uint8((*Tsha512)(unsafe.Pointer(s)).Flen1 >> int32(48)) + **(**Tuint8_t)(__ccgo_up(s + 72 + 122)) = uint8((*Tsha512)(unsafe.Pointer(s)).Flen1 >> int32(40)) + **(**Tuint8_t)(__ccgo_up(s + 72 + 123)) = uint8((*Tsha512)(unsafe.Pointer(s)).Flen1 >> int32(32)) + **(**Tuint8_t)(__ccgo_up(s + 72 + 124)) = uint8((*Tsha512)(unsafe.Pointer(s)).Flen1 >> int32(24)) + **(**Tuint8_t)(__ccgo_up(s + 72 + 125)) = uint8((*Tsha512)(unsafe.Pointer(s)).Flen1 >> int32(16)) + **(**Tuint8_t)(__ccgo_up(s + 72 + 126)) = uint8((*Tsha512)(unsafe.Pointer(s)).Flen1 >> int32(8)) + **(**Tuint8_t)(__ccgo_up(s + 72 + 127)) = uint8((*Tsha512)(unsafe.Pointer(s)).Flen1) + _processblock2(tls, s, s+72) +} + +func _sha512_init(tls *TLS, s uintptr) { + (*Tsha512)(unsafe.Pointer(s)).Flen1 = uint64(0) + **(**Tuint64_t)(__ccgo_up(s + 8)) = uint64(0x6a09e667f3bcc908) + **(**Tuint64_t)(__ccgo_up(s + 8 + 1*8)) = uint64(0xbb67ae8584caa73b) + **(**Tuint64_t)(__ccgo_up(s + 8 + 2*8)) = uint64(0x3c6ef372fe94f82b) + **(**Tuint64_t)(__ccgo_up(s + 8 + 3*8)) = uint64(0xa54ff53a5f1d36f1) + **(**Tuint64_t)(__ccgo_up(s + 8 + 4*8)) = uint64(0x510e527fade682d1) + **(**Tuint64_t)(__ccgo_up(s + 8 + 5*8)) = uint64(0x9b05688c2b3e6c1f) + **(**Tuint64_t)(__ccgo_up(s + 8 + 6*8)) = uint64(0x1f83d9abfb41bd6b) + **(**Tuint64_t)(__ccgo_up(s + 8 + 7*8)) = uint64(0x5be0cd19137e2179) +} + +func _sha512_sum(tls *TLS, s uintptr, md uintptr) { + var i int32 + _ = i + _pad2(tls, s) + i = 0 + for { + if !(i < int32(8)) { + break + } + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(8)*i))) = uint8(**(**Tuint64_t)(__ccgo_up(s + 8 + uintptr(i)*8)) >> int32(56)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(8)*i+int32(1)))) = uint8(**(**Tuint64_t)(__ccgo_up(s + 8 + uintptr(i)*8)) >> int32(48)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(8)*i+int32(2)))) = uint8(**(**Tuint64_t)(__ccgo_up(s + 8 + uintptr(i)*8)) >> int32(40)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(8)*i+int32(3)))) = uint8(**(**Tuint64_t)(__ccgo_up(s + 8 + uintptr(i)*8)) >> int32(32)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(8)*i+int32(4)))) = uint8(**(**Tuint64_t)(__ccgo_up(s + 8 + uintptr(i)*8)) >> int32(24)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(8)*i+int32(5)))) = uint8(**(**Tuint64_t)(__ccgo_up(s + 8 + uintptr(i)*8)) >> int32(16)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(8)*i+int32(6)))) = uint8(**(**Tuint64_t)(__ccgo_up(s + 8 + uintptr(i)*8)) >> int32(8)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(8)*i+int32(7)))) = uint8(**(**Tuint64_t)(__ccgo_up(s + 8 + uintptr(i)*8))) + goto _1 + _1: + ; + i = i + 1 + } +} + +func _sha512_update(tls *TLS, s uintptr, m uintptr, len1 uint64) { + var p uintptr + var r uint32 + _, _ = p, r + p = m + r = uint32((*Tsha512)(unsafe.Pointer(s)).Flen1 % uint64(128)) + **(**Tuint64_t)(__ccgo_up(s)) += len1 + if r != 0 { + if len1 < uint64(uint32(128)-r) { + Xmemcpy(tls, s+72+uintptr(r), p, len1) + return + } + Xmemcpy(tls, s+72+uintptr(r), p, uint64(uint32(128)-r)) + len1 = len1 - uint64(uint32(128)-r) + p = p + uintptr(uint32(128)-r) + _processblock2(tls, s, s+72) + } + for { + if !(len1 >= uint64(128)) { + break + } + _processblock2(tls, s, p) + goto _1 + _1: + ; + len1 = len1 - uint64(128) + p = p + uintptr(128) + } + Xmemcpy(tls, s+72, p, len1) +} + +var _b642 = [65]uint8{'.', '/', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'} + +func _to642(tls *TLS, s uintptr, u uint32, n int32) (r uintptr) { + var v1 int32 + var v2 uintptr + _, _ = v1, v2 + for { + n = n - 1 + v1 = n + if !(v1 >= 0) { + break + } + v2 = s + s = s + 1 + **(**int8)(__ccgo_up(v2)) = Int8FromUint8(_b642[u%uint32(64)]) + u = u / uint32(64) + } + return s +} + +/* key limit is not part of the original design, added for DoS protection. + * rounds limit has been lowered (versus the reference/spec), also for DoS + * protection. runtime is O(klen^2 + klen*rounds) */ + +// C documentation +// +// /* hash n bytes of the repeated md message digest */ +func _hashmd1(tls *TLS, s uintptr, n uint32, md uintptr) { + var i uint32 + _ = i + i = n + for { + if !(i > uint32(64)) { + break + } + _sha512_update(tls, s, md, uint64(64)) + goto _1 + _1: + ; + i = i - uint32(64) + } + _sha512_update(tls, s, md, uint64(i)) +} + +func _sha512crypt(tls *TLS, key uintptr, setting uintptr, output uintptr) (r1 uintptr) { + bp := tls.Alloc(464) + defer tls.Free(464) + var i, klen, r, slen uint32 + var p, salt uintptr + var u uint64 + var _ /* ctx at bp+0 */ Tsha512 + var _ /* end at bp+416 */ uintptr + var _ /* kmd at bp+264 */ [64]uint8 + var _ /* md at bp+200 */ [64]uint8 + var _ /* rounds at bp+392 */ [20]int8 + var _ /* smd at bp+328 */ [64]uint8 + _, _, _, _, _, _, _ = i, klen, p, r, salt, slen, u + **(**[20]int8)(__ccgo_up(bp + 392)) = [20]int8{} + /* reject large keys */ + i = uint32(0) + for { + if !(i <= uint32(KEY_MAX1) && **(**int8)(__ccgo_up(key + uintptr(i))) != 0) { + break + } + goto _1 + _1: + ; + i = i + 1 + } + if i > uint32(KEY_MAX1) { + return uintptr(0) + } + klen = i + /* setting: $6$rounds=n$salt$ (rounds=n$ and closing $ are optional) */ + if Xstrncmp(tls, setting, __ccgo_ts+181, uint64(3)) != 0 { + return uintptr(0) + } + salt = setting + uintptr(3) + r = uint32(ROUNDS_DEFAULT) + if Xstrncmp(tls, salt, __ccgo_ts+151, Uint64FromInt64(8)-Uint64FromInt32(1)) == 0 { + /* + * this is a deviation from the reference: + * bad rounds setting is rejected if it is + * - empty + * - unterminated (missing '$') + * - begins with anything but a decimal digit + * the reference implementation treats these bad + * rounds as part of the salt or parse them with + * strtoul semantics which may cause problems + * including non-portable hashes that depend on + * the host's value of ULONG_MAX. + */ + salt = salt + uintptr(Uint64FromInt64(8)-Uint64FromInt32(1)) + if !(BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(salt)))-Uint32FromUint8('0') < Uint32FromInt32(10)) != 0) { + return uintptr(0) + } + u = Xstrtoul(tls, salt, bp+416, int32(10)) + if int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 416))))) != int32('$') { + return uintptr(0) + } + salt = **(**uintptr)(__ccgo_up(bp + 416)) + uintptr(1) + if u < uint64(ROUNDS_MIN) { + r = uint32(ROUNDS_MIN) + } else { + if u > uint64(ROUNDS_MAX) { + return uintptr(0) + } else { + r = uint32(u) + } + } + /* needed when rounds is zero prefixed or out of bounds */ + Xsprintf(tls, bp+392, __ccgo_ts+159, VaList(bp+432, r)) + } + i = uint32(0) + for { + if !(i < uint32(SALT_MAX1) && **(**int8)(__ccgo_up(salt + uintptr(i))) != 0 && int32(**(**int8)(__ccgo_up(salt + uintptr(i)))) != int32('$')) { + break + } + /* reject characters that interfere with /etc/shadow parsing */ + if int32(**(**int8)(__ccgo_up(salt + uintptr(i)))) == int32('\n') || int32(**(**int8)(__ccgo_up(salt + uintptr(i)))) == int32(':') { + return uintptr(0) + } + goto _2 + _2: + ; + i = i + 1 + } + slen = i + /* B = sha(key salt key) */ + _sha512_init(tls, bp) + _sha512_update(tls, bp, key, uint64(klen)) + _sha512_update(tls, bp, salt, uint64(slen)) + _sha512_update(tls, bp, key, uint64(klen)) + _sha512_sum(tls, bp, bp+200) + /* A = sha(key salt repeat-B alternate-B-key) */ + _sha512_init(tls, bp) + _sha512_update(tls, bp, key, uint64(klen)) + _sha512_update(tls, bp, salt, uint64(slen)) + _hashmd1(tls, bp, klen, bp+200) + i = klen + for { + if !(i > uint32(0)) { + break + } + if i&uint32(1) != 0 { + _sha512_update(tls, bp, bp+200, uint64(64)) + } else { + _sha512_update(tls, bp, key, uint64(klen)) + } + goto _3 + _3: + ; + i = i >> uint32(1) + } + _sha512_sum(tls, bp, bp+200) + /* DP = sha(repeat-key), this step takes O(klen^2) time */ + _sha512_init(tls, bp) + i = uint32(0) + for { + if !(i < klen) { + break + } + _sha512_update(tls, bp, key, uint64(klen)) + goto _4 + _4: + ; + i = i + 1 + } + _sha512_sum(tls, bp, bp+264) + /* DS = sha(repeat-salt) */ + _sha512_init(tls, bp) + i = uint32(0) + for { + if !(i < Uint32FromInt32(int32(16)+Int32FromUint8((**(**[64]uint8)(__ccgo_up(bp + 200)))[0]))) { + break + } + _sha512_update(tls, bp, salt, uint64(slen)) + goto _5 + _5: + ; + i = i + 1 + } + _sha512_sum(tls, bp, bp+328) + /* iterate A = f(A,DP,DS), this step takes O(rounds*klen) time */ + i = uint32(0) + for { + if !(i < r) { + break + } + _sha512_init(tls, bp) + if i%uint32(2) != 0 { + _hashmd1(tls, bp, klen, bp+264) + } else { + _sha512_update(tls, bp, bp+200, uint64(64)) + } + if i%uint32(3) != 0 { + _sha512_update(tls, bp, bp+328, uint64(slen)) + } + if i%uint32(7) != 0 { + _hashmd1(tls, bp, klen, bp+264) + } + if i%uint32(2) != 0 { + _sha512_update(tls, bp, bp+200, uint64(64)) + } else { + _hashmd1(tls, bp, klen, bp+264) + } + _sha512_sum(tls, bp, bp+200) + goto _6 + _6: + ; + i = i + 1 + } + /* output is $6$rounds=n$salt$hash */ + p = output + p = p + uintptr(Xsprintf(tls, p, __ccgo_ts+185, VaList(bp+432, bp+392, slen, salt))) + i = uint32(0) + for { + if !(i < uint32(21)) { + break + } + p = _to642(tls, p, Uint32FromInt32(Int32FromUint8((**(**[64]uint8)(__ccgo_up(bp + 200)))[**(**uint8)(__ccgo_up(uintptr(unsafe.Pointer(&_perm2)) + uintptr(i)*3))])< %v", r) }() + } + bp := tls.Alloc(128) + defer tls.Free(128) + var p, q uintptr + var _ /* testbuf at bp+0 */ [128]int8 + _, _ = p, q + p = _sha512crypt(tls, key, setting, output) + /* self test and stack cleanup */ + q = _sha512crypt(tls, uintptr(unsafe.Pointer(&_testkey2)), uintptr(unsafe.Pointer(&_testsetting2)), bp) + if !(p != 0) || q != bp || Xmemcmp(tls, bp, uintptr(unsafe.Pointer(&_testhash2)), uint64(116)) != 0 { + return __ccgo_ts + 70 + } + return p +} + +var _testkey2 = [18]int8{'X', 'y', '0', '1', '@', '#', 1, 2, -128, 127, -1, 13, 10, -127, 9, ' ', '!'} + +var _testsetting2 = [30]int8{'$', '6', '$', 'r', 'o', 'u', 'n', 'd', 's', '=', '1', '2', '3', '4', '$', 'a', 'b', 'c', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '$'} + +var _testhash2 = [116]int8{'$', '6', '$', 'r', 'o', 'u', 'n', 'd', 's', '=', '1', '2', '3', '4', '$', 'a', 'b', 'c', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '$', 'B', 'C', 'p', 't', '8', 'z', 'L', 'r', 'c', '/', 'R', 'c', 'y', 'u', 'X', 'm', 'C', 'D', 'O', 'E', '1', 'A', 'L', 'q', 'M', 'X', 'B', '2', 'M', 'H', '6', 'n', '1', 'g', '8', '9', '1', 'H', 'h', 'F', 'j', '8', '.', 'w', '7', 'L', 'x', 'G', 'v', '.', 'F', 'T', 'k', 'q', 'q', '6', 'V', 'x', 'c', '/', 'k', 'm', '3', 'Y', '0', 'j', 'E', '0', 'j', '2', '4', 'j', 'Y', '5', 'P', 'I', 'v', '/', 'o', 'O', 'u', '6', 'r', 'e', 'g', '1'} + +var ___encrypt_key Texpanded_key + +func Xsetkey(tls *TLS, key uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v, (%v:)", tls, key, origin(2)) + } + bp := tls.Alloc(16) + defer tls.Free(16) + var i, j int32 + var v3 uintptr + var _ /* bkey at bp+0 */ [8]uint8 + _, _, _ = i, j, v3 + i = 0 + for { + if !(i < int32(8)) { + break + } + (**(**[8]uint8)(__ccgo_up(bp)))[i] = uint8(0) + j = int32(7) + for { + if !(j >= 0) { + break + } + v3 = bp + uintptr(i) + *(*uint8)(unsafe.Pointer(v3)) = uint8(uint32(*(*uint8)(unsafe.Pointer(v3))) | Uint32FromInt32(int32(**(**int8)(__ccgo_up(key)))&Int32FromInt32(1))<= 0) { + break + } + **(**Tuint32_t)(__ccgo_up(bp + 128 + uintptr(i)*4)) |= Uint32FromInt32(int32(**(**int8)(__ccgo_up(p)))&Int32FromInt32(1)) << j + goto _2 + _2: + ; + j = j - 1 + p = p + 1 + } + goto _1 + _1: + ; + i = i + 1 + } + key = uintptr(unsafe.Pointer(&___encrypt_key)) + if edflag != 0 { + key = bp + i = 0 + for { + if !(i < int32(16)) { + break + } + **(**Tuint32_t)(__ccgo_up(bp + uintptr(i)*4)) = **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&___encrypt_key)) + uintptr(int32(15)-i)*4)) + **(**Tuint32_t)(__ccgo_up(bp + 64 + uintptr(i)*4)) = **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&___encrypt_key)) + 64 + uintptr(int32(15)-i)*4)) + goto _3 + _3: + ; + i = i + 1 + } + } + X__do_des(tls, (**(**[2]Tuint32_t)(__ccgo_up(bp + 128)))[0], (**(**[2]Tuint32_t)(__ccgo_up(bp + 128)))[int32(1)], bp+128, bp+128+uintptr(1)*4, uint32(1), uint32(0), key) + p = block + i = 0 + for { + if !(i < int32(2)) { + break + } + j = int32(31) + for { + if !(j >= 0) { + break + } + v6 = p + p = p + 1 + **(**int8)(__ccgo_up(v6)) = Int8FromUint32((**(**[2]Tuint32_t)(__ccgo_up(bp + 128)))[i] >> j & uint32(1)) + goto _5 + _5: + ; + j = j - 1 + } + goto _4 + _4: + ; + i = i + 1 + } +} + +var _table = [384]uint16{ + 128: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 129: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 130: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 131: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 132: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 133: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 134: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 135: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 136: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 137: Uint16FromInt32((Int32FromInt32(0x320)/Int32FromInt32(256) | Int32FromInt32(0x320)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 138: Uint16FromInt32((Int32FromInt32(0x220)/Int32FromInt32(256) | Int32FromInt32(0x220)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 139: Uint16FromInt32((Int32FromInt32(0x220)/Int32FromInt32(256) | Int32FromInt32(0x220)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 140: Uint16FromInt32((Int32FromInt32(0x220)/Int32FromInt32(256) | Int32FromInt32(0x220)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 141: Uint16FromInt32((Int32FromInt32(0x220)/Int32FromInt32(256) | Int32FromInt32(0x220)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 142: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 143: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 144: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 145: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 146: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 147: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 148: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 149: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 150: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 151: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 152: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 153: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 154: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 155: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 156: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 157: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 158: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 159: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 160: Uint16FromInt32((Int32FromInt32(0x160)/Int32FromInt32(256) | Int32FromInt32(0x160)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 161: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 162: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 163: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 164: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 165: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 166: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 167: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 168: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 169: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 170: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 171: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 172: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 173: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 174: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 175: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 176: Uint16FromInt32((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 177: Uint16FromInt32((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 178: Uint16FromInt32((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 179: Uint16FromInt32((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 180: Uint16FromInt32((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 181: Uint16FromInt32((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 182: Uint16FromInt32((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 183: Uint16FromInt32((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 184: Uint16FromInt32((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 185: Uint16FromInt32((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 186: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 187: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 188: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 189: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 190: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 191: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 192: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 193: Uint16FromInt32((Int32FromInt32(0x8d5)/Int32FromInt32(256) | Int32FromInt32(0x8d5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 194: Uint16FromInt32((Int32FromInt32(0x8d5)/Int32FromInt32(256) | Int32FromInt32(0x8d5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 195: Uint16FromInt32((Int32FromInt32(0x8d5)/Int32FromInt32(256) | Int32FromInt32(0x8d5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 196: Uint16FromInt32((Int32FromInt32(0x8d5)/Int32FromInt32(256) | Int32FromInt32(0x8d5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 197: Uint16FromInt32((Int32FromInt32(0x8d5)/Int32FromInt32(256) | Int32FromInt32(0x8d5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 198: Uint16FromInt32((Int32FromInt32(0x8d5)/Int32FromInt32(256) | Int32FromInt32(0x8d5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 199: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 200: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 201: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 202: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 203: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 204: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 205: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 206: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 207: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 208: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 209: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 210: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 211: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 212: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 213: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 214: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 215: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 216: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 217: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 218: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 219: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 220: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 221: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 222: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 223: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 224: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 225: Uint16FromInt32((Int32FromInt32(0x8d6)/Int32FromInt32(256) | Int32FromInt32(0x8d6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 226: Uint16FromInt32((Int32FromInt32(0x8d6)/Int32FromInt32(256) | Int32FromInt32(0x8d6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 227: Uint16FromInt32((Int32FromInt32(0x8d6)/Int32FromInt32(256) | Int32FromInt32(0x8d6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 228: Uint16FromInt32((Int32FromInt32(0x8d6)/Int32FromInt32(256) | Int32FromInt32(0x8d6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 229: Uint16FromInt32((Int32FromInt32(0x8d6)/Int32FromInt32(256) | Int32FromInt32(0x8d6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 230: Uint16FromInt32((Int32FromInt32(0x8d6)/Int32FromInt32(256) | Int32FromInt32(0x8d6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 231: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 232: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 233: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 234: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 235: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 236: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 237: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 238: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 239: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 240: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 241: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 242: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 243: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 244: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 245: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 246: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 247: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 248: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 249: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 250: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 251: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 252: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 253: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 254: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 255: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), +} + +var _ptable = uintptr(unsafe.Pointer(&_table)) + uintptr(128)*2 + +func X__ctype_b_loc(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(unsafe.Pointer(&_ptable)) +} + +const CLOCKS_PER_SEC = 1000000 +const CLOCK_BOOTTIME = 7 +const CLOCK_BOOTTIME_ALARM = 9 +const CLOCK_MONOTONIC = 1 +const CLOCK_MONOTONIC_COARSE = 6 +const CLOCK_MONOTONIC_RAW = 4 +const CLOCK_PROCESS_CPUTIME_ID = 2 +const CLOCK_REALTIME = 0 +const CLOCK_REALTIME_ALARM = 8 +const CLOCK_REALTIME_COARSE = 5 +const CLOCK_SGI_CYCLE = 10 +const CLOCK_TAI = 11 +const CLOCK_THREAD_CPUTIME_ID = 3 +const C_LOCALE = 0 +const DEFAULT_GUARD_MAX = 1048576 +const DEFAULT_GUARD_SIZE = 8192 +const DEFAULT_STACK_MAX = 8388608 +const DEFAULT_STACK_SIZE = 131072 +const DTP_OFFSET = 0 +const FUTEX_CLOCK_REALTIME = 256 +const FUTEX_CMP_REQUEUE = 4 +const FUTEX_FD = 2 +const FUTEX_LOCK_PI = 6 +const FUTEX_PRIVATE = 128 +const FUTEX_REQUEUE = 3 +const FUTEX_TRYLOCK_PI = 8 +const FUTEX_UNLOCK_PI = 7 +const FUTEX_WAIT = 0 +const FUTEX_WAIT_BITSET = 9 +const FUTEX_WAKE = 1 +const FUTEX_WAKE_OP = 5 +const LC_ALL = 6 +const LC_ALL_MASK = 2147483647 +const LC_COLLATE = 3 +const LC_COLLATE_MASK = 8 +const LC_CTYPE = 0 +const LC_CTYPE_MASK = 1 +const LC_GLOBAL_LOCALE = -1 +const LC_MESSAGES = 5 +const LC_MESSAGES_MASK = 32 +const LC_MONETARY = 4 +const LC_MONETARY_MASK = 16 +const LC_NUMERIC = 1 +const LC_NUMERIC_MASK = 2 +const LC_TIME = 2 +const LC_TIME_MASK = 4 +const LOCALE_NAME_MAX = 23 +const MAP_32BIT = 64 +const MAP_ANON = 32 +const MAP_ANONYMOUS = 32 +const MAP_DENYWRITE = 2048 +const MAP_EXECUTABLE = 4096 +const MAP_FAILED = -1 +const MAP_FILE = 0 +const MAP_FIXED = 16 +const MAP_FIXED_NOREPLACE = 1048576 +const MAP_GROWSDOWN = 256 +const MAP_HUGETLB = 262144 +const MAP_HUGE_16GB = 2281701376 +const MAP_HUGE_16KB = 939524096 +const MAP_HUGE_16MB = 1610612736 +const MAP_HUGE_1GB = 2013265920 +const MAP_HUGE_1MB = 1342177280 +const MAP_HUGE_256MB = 1879048192 +const MAP_HUGE_2GB = 2080374784 +const MAP_HUGE_2MB = 1409286144 +const MAP_HUGE_32MB = 1677721600 +const MAP_HUGE_512KB = 1275068416 +const MAP_HUGE_512MB = 1946157056 +const MAP_HUGE_64KB = 1073741824 +const MAP_HUGE_8MB = 1543503872 +const MAP_HUGE_MASK = 63 +const MAP_HUGE_SHIFT = 26 +const MAP_LOCKED = 8192 +const MAP_NONBLOCK = 65536 +const MAP_NORESERVE = 16384 +const MAP_POPULATE = 32768 +const MAP_PRIVATE = 2 +const MAP_SHARED = 1 +const MAP_SHARED_VALIDATE = 3 +const MAP_STACK = 131072 +const MAP_SYNC = 524288 +const MAP_TYPE = 15 +const MCL_CURRENT = 1 +const MCL_FUTURE = 2 +const MCL_ONFAULT = 4 +const MS_ASYNC = 1 +const MS_INVALIDATE = 2 +const MS_SYNC = 4 +const POSIX_MADV_DONTNEED = 4 +const POSIX_MADV_NORMAL = 0 +const POSIX_MADV_RANDOM = 1 +const POSIX_MADV_SEQUENTIAL = 2 +const POSIX_MADV_WILLNEED = 3 +const PROT_EXEC = 4 +const PROT_GROWSDOWN = 16777216 +const PROT_GROWSUP = 33554432 +const PROT_NONE = 0 +const PROT_READ = 1 +const PROT_WRITE = 2 +const PTHREAD_BARRIER_SERIAL_THREAD = -1 +const PTHREAD_CANCELED = -1 +const PTHREAD_CANCEL_ASYNCHRONOUS = 1 +const PTHREAD_CANCEL_DEFERRED = 0 +const PTHREAD_CANCEL_DISABLE = 1 +const PTHREAD_CANCEL_ENABLE = 0 +const PTHREAD_CANCEL_MASKED = 2 +const PTHREAD_CREATE_DETACHED = 1 +const PTHREAD_CREATE_JOINABLE = 0 +const PTHREAD_EXPLICIT_SCHED = 1 +const PTHREAD_INHERIT_SCHED = 0 +const PTHREAD_MUTEX_DEFAULT = 0 +const PTHREAD_MUTEX_ERRORCHECK = 2 +const PTHREAD_MUTEX_NORMAL = 0 +const PTHREAD_MUTEX_RECURSIVE = 1 +const PTHREAD_MUTEX_ROBUST = 1 +const PTHREAD_MUTEX_STALLED = 0 +const PTHREAD_ONCE_INIT = 0 +const PTHREAD_PRIO_INHERIT = 1 +const PTHREAD_PRIO_NONE = 0 +const PTHREAD_PRIO_PROTECT = 2 +const PTHREAD_PROCESS_PRIVATE = 0 +const PTHREAD_PROCESS_SHARED = 1 +const PTHREAD_SCOPE_PROCESS = 1 +const PTHREAD_SCOPE_SYSTEM = 0 +const SCHED_BATCH = 3 +const SCHED_DEADLINE = 6 +const SCHED_FIFO = 1 +const SCHED_IDLE = 5 +const SCHED_OTHER = 0 +const SCHED_RESET_ON_FORK = 1073741824 +const SCHED_RR = 2 +const SIGCANCEL = 33 +const SIGSYNCCALL = 34 +const SIGTIMER = 32 +const TIMER_ABSTIME = 1 +const TIME_UTC = 1 +const TP_OFFSET = 0 +const UTF8_LOCALE = 0 +const __CCGO_SIZEOF_GO_MUTEX = 8 +const __SU = 0 +const pthread = 0 +const tls_mod_off_t = 0 + +type Tlconv = struct { + Fdecimal_point uintptr + Fthousands_sep uintptr + Fgrouping uintptr + Fint_curr_symbol uintptr + Fcurrency_symbol uintptr + Fmon_decimal_point uintptr + Fmon_thousands_sep uintptr + Fmon_grouping uintptr + Fpositive_sign uintptr + Fnegative_sign uintptr + Fint_frac_digits int8 + Ffrac_digits int8 + Fp_cs_precedes int8 + Fp_sep_by_space int8 + Fn_cs_precedes int8 + Fn_sep_by_space int8 + Fp_sign_posn int8 + Fn_sign_posn int8 + Fint_p_cs_precedes int8 + Fint_p_sep_by_space int8 + Fint_n_cs_precedes int8 + Fint_n_sep_by_space int8 + Fint_p_sign_posn int8 + Fint_n_sign_posn int8 +} + +type t__locale_map = struct { + Fmap1 uintptr + Fmap_size Tsize_t + Fname [24]int8 + Fnext uintptr +} + +type Tclockid_t = int32 + +type t__pthread = struct { + Fself uintptr + Fdtv uintptr + Fprev uintptr + Fnext uintptr + Fsysinfo Tuintptr_t + Fcanary Tuintptr_t + Ftid int32 + Ferrno_val int32 + Fdetach_state int32 + Fcancel int32 + Fcanceldisable uint8 + Fcancelasync uint8 + F__ccgo66 uint8 + Fmap_base uintptr + Fmap_size Tsize_t + Fstack uintptr + Fstack_size Tsize_t + Fguard_size Tsize_t + Fresult uintptr + Fcancelbuf uintptr + Ftsd uintptr + Frobust_list struct { + Fhead uintptr + Foff int64 + Fpending uintptr + } + Fh_errno_val int32 + Ftimer_id int32 + Flocale Tlocale_t + Fkilllock [1]int32 + Fdlerror_buf uintptr + Fstdio_locks uintptr + F__ccgo_join_mutex [1]int64 +} + +type Tpthread_once_t = int32 + +type Tpthread_key_t = uint32 + +type Tpthread_spinlock_t = int32 + +type Tpthread_mutexattr_t = struct { + F__attr uint32 +} + +type Tpthread_condattr_t = struct { + F__attr uint32 +} + +type Tpthread_barrierattr_t = struct { + F__attr uint32 +} + +type Tpthread_rwlockattr_t = struct { + F__attr [2]uint32 +} + +type Tpthread_mutex_t = struct { + F__u struct { + F__vi [0][10]int32 + F__p [0][5]uintptr + F__i [10]int32 + } +} + +type Tpthread_cond_t = struct { + F__u struct { + F__vi [0][12]int32 + F__p [0][6]uintptr + F__i [12]int32 + } +} + +type Tpthread_rwlock_t = struct { + F__u struct { + F__vi [0][14]int32 + F__p [0][7]uintptr + F__i [14]int32 + } +} + +type Tpthread_barrier_t = struct { + F__u struct { + F__vi [0][8]int32 + F__p [0][4]uintptr + F__i [8]int32 + } +} + +type Tsched_param = struct { + Fsched_priority int32 + F__reserved1 int32 + F__reserved2 [2]struct { + F__reserved1 Ttime_t + F__reserved2 int64 + } + F__reserved3 int32 +} + +type Ttimer_t = uintptr + +type Ttm = struct { + Ftm_sec int32 + Ftm_min int32 + Ftm_hour int32 + Ftm_mday int32 + Ftm_mon int32 + Ftm_year int32 + Ftm_wday int32 + Ftm_yday int32 + Ftm_isdst int32 + F__tm_gmtoff int64 + F__tm_zone uintptr +} + +type Titimerspec = struct { + Fit_interval Ttimespec + Fit_value Ttimespec +} + +type t__ptcb = struct { + F__f uintptr + F__x uintptr + F__next uintptr +} + +type Tmode_t = uint32 + +const _DT_EXITED = 0 +const _DT_EXITING = 1 +const _DT_JOINABLE = 2 +const _DT_DETACHED = 3 + +func X__ctype_get_mb_cur_max(tls *TLS) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + _ = v1 + if !!(**(**uintptr)(__ccgo_up((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale)) != 0) { + v1 = int32(4) + } else { + v1 = int32(1) + } + return Uint64FromInt32(v1) +} + +var _table1 = [384]Tint32_t{ + 129: int32(1), + 130: int32(2), + 131: int32(3), + 132: int32(4), + 133: int32(5), + 134: int32(6), + 135: int32(7), + 136: int32(8), + 137: int32(9), + 138: int32(10), + 139: int32(11), + 140: int32(12), + 141: int32(13), + 142: int32(14), + 143: int32(15), + 144: int32(16), + 145: int32(17), + 146: int32(18), + 147: int32(19), + 148: int32(20), + 149: int32(21), + 150: int32(22), + 151: int32(23), + 152: int32(24), + 153: int32(25), + 154: int32(26), + 155: int32(27), + 156: int32(28), + 157: int32(29), + 158: int32(30), + 159: int32(31), + 160: int32(32), + 161: int32(33), + 162: int32(34), + 163: int32(35), + 164: int32(36), + 165: int32(37), + 166: int32(38), + 167: int32(39), + 168: int32(40), + 169: int32(41), + 170: int32(42), + 171: int32(43), + 172: int32(44), + 173: int32(45), + 174: int32(46), + 175: int32(47), + 176: int32(48), + 177: int32(49), + 178: int32(50), + 179: int32(51), + 180: int32(52), + 181: int32(53), + 182: int32(54), + 183: int32(55), + 184: int32(56), + 185: int32(57), + 186: int32(58), + 187: int32(59), + 188: int32(60), + 189: int32(61), + 190: int32(62), + 191: int32(63), + 192: int32(64), + 193: int32('a'), + 194: int32('b'), + 195: int32('c'), + 196: int32('d'), + 197: int32('e'), + 198: int32('f'), + 199: int32('g'), + 200: int32('h'), + 201: int32('i'), + 202: int32('j'), + 203: int32('k'), + 204: int32('l'), + 205: int32('m'), + 206: int32('n'), + 207: int32('o'), + 208: int32('p'), + 209: int32('q'), + 210: int32('r'), + 211: int32('s'), + 212: int32('t'), + 213: int32('u'), + 214: int32('v'), + 215: int32('w'), + 216: int32('x'), + 217: int32('y'), + 218: int32('z'), + 219: int32(91), + 220: int32(92), + 221: int32(93), + 222: int32(94), + 223: int32(95), + 224: int32(96), + 225: int32('a'), + 226: int32('b'), + 227: int32('c'), + 228: int32('d'), + 229: int32('e'), + 230: int32('f'), + 231: int32('g'), + 232: int32('h'), + 233: int32('i'), + 234: int32('j'), + 235: int32('k'), + 236: int32('l'), + 237: int32('m'), + 238: int32('n'), + 239: int32('o'), + 240: int32('p'), + 241: int32('q'), + 242: int32('r'), + 243: int32('s'), + 244: int32('t'), + 245: int32('u'), + 246: int32('v'), + 247: int32('w'), + 248: int32('x'), + 249: int32('y'), + 250: int32('z'), + 251: int32(123), + 252: int32(124), + 253: int32(125), + 254: int32(126), + 255: int32(127), +} + +var _ptable1 = uintptr(unsafe.Pointer(&_table1)) + uintptr(128)*4 + +func X__ctype_tolower_loc(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(unsafe.Pointer(&_ptable1)) +} + +var _table2 = [384]Tint32_t{ + 129: int32(1), + 130: int32(2), + 131: int32(3), + 132: int32(4), + 133: int32(5), + 134: int32(6), + 135: int32(7), + 136: int32(8), + 137: int32(9), + 138: int32(10), + 139: int32(11), + 140: int32(12), + 141: int32(13), + 142: int32(14), + 143: int32(15), + 144: int32(16), + 145: int32(17), + 146: int32(18), + 147: int32(19), + 148: int32(20), + 149: int32(21), + 150: int32(22), + 151: int32(23), + 152: int32(24), + 153: int32(25), + 154: int32(26), + 155: int32(27), + 156: int32(28), + 157: int32(29), + 158: int32(30), + 159: int32(31), + 160: int32(32), + 161: int32(33), + 162: int32(34), + 163: int32(35), + 164: int32(36), + 165: int32(37), + 166: int32(38), + 167: int32(39), + 168: int32(40), + 169: int32(41), + 170: int32(42), + 171: int32(43), + 172: int32(44), + 173: int32(45), + 174: int32(46), + 175: int32(47), + 176: int32(48), + 177: int32(49), + 178: int32(50), + 179: int32(51), + 180: int32(52), + 181: int32(53), + 182: int32(54), + 183: int32(55), + 184: int32(56), + 185: int32(57), + 186: int32(58), + 187: int32(59), + 188: int32(60), + 189: int32(61), + 190: int32(62), + 191: int32(63), + 192: int32(64), + 193: int32('A'), + 194: int32('B'), + 195: int32('C'), + 196: int32('D'), + 197: int32('E'), + 198: int32('F'), + 199: int32('G'), + 200: int32('H'), + 201: int32('I'), + 202: int32('J'), + 203: int32('K'), + 204: int32('L'), + 205: int32('M'), + 206: int32('N'), + 207: int32('O'), + 208: int32('P'), + 209: int32('Q'), + 210: int32('R'), + 211: int32('S'), + 212: int32('T'), + 213: int32('U'), + 214: int32('V'), + 215: int32('W'), + 216: int32('X'), + 217: int32('Y'), + 218: int32('Z'), + 219: int32(91), + 220: int32(92), + 221: int32(93), + 222: int32(94), + 223: int32(95), + 224: int32(96), + 225: int32('A'), + 226: int32('B'), + 227: int32('C'), + 228: int32('D'), + 229: int32('E'), + 230: int32('F'), + 231: int32('G'), + 232: int32('H'), + 233: int32('I'), + 234: int32('J'), + 235: int32('K'), + 236: int32('L'), + 237: int32('M'), + 238: int32('N'), + 239: int32('O'), + 240: int32('P'), + 241: int32('Q'), + 242: int32('R'), + 243: int32('S'), + 244: int32('T'), + 245: int32('U'), + 246: int32('V'), + 247: int32('W'), + 248: int32('X'), + 249: int32('Y'), + 250: int32('Z'), + 251: int32(123), + 252: int32(124), + 253: int32(125), + 254: int32(126), + 255: int32(127), +} + +var _ptable2 = uintptr(unsafe.Pointer(&_table2)) + uintptr(128)*4 + +func X__ctype_toupper_loc(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(unsafe.Pointer(&_ptable2)) +} + +func Xisalnum(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(BoolInt32(Uint32FromInt32(c)|uint32(32)-uint32('a') < uint32(26)) != 0 || BoolInt32(Uint32FromInt32(c)-uint32('0') < uint32(10)) != 0) +} + +func X__isalnum_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xisalnum(tls, c) +} + +func Xisalnum_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__isalnum_l(tls, c, l) +} + +func Xisalpha(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(Uint32FromInt32(c)|uint32(32)-uint32('a') < uint32(26)) +} + +func X__isalpha_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xisalpha(tls, c) +} + +func Xisalpha_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__isalpha_l(tls, c, l) +} + +func Xisascii(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(!(c & ^Int32FromInt32(0x7f) != 0)) +} + +func Xisblank(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(c == int32(' ') || c == int32('\t')) +} + +func X__isblank_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xisblank(tls, c) +} + +func Xisblank_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__isblank_l(tls, c, l) +} + +func Xiscntrl(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(Uint32FromInt32(c) < uint32(0x20) || c == int32(0x7f)) +} + +func X__iscntrl_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiscntrl(tls, c) +} + +func Xiscntrl_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iscntrl_l(tls, c, l) +} + +func Xisdigit(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(Uint32FromInt32(c)-uint32('0') < uint32(10)) +} + +func X__isdigit_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xisdigit(tls, c) +} + +func Xisdigit_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__isdigit_l(tls, c, l) +} + +func Xisgraph(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(Uint32FromInt32(c)-uint32(0x21) < uint32(0x5e)) +} + +func X__isgraph_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xisgraph(tls, c) +} + +func Xisgraph_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__isgraph_l(tls, c, l) +} + +func Xislower(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(Uint32FromInt32(c)-uint32('a') < uint32(26)) +} + +func X__islower_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xislower(tls, c) +} + +func Xislower_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__islower_l(tls, c, l) +} + +func Xisprint(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(Uint32FromInt32(c)-uint32(0x20) < uint32(0x5f)) +} + +func X__isprint_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xisprint(tls, c) +} + +func Xisprint_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__isprint_l(tls, c, l) +} + +func Xispunct(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(BoolInt32(Uint32FromInt32(c)-uint32(0x21) < uint32(0x5e)) != 0 && !(Xisalnum(tls, c) != 0)) +} + +func X__ispunct_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xispunct(tls, c) +} + +func Xispunct_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__ispunct_l(tls, c, l) +} + +func Xisspace(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(c == int32(' ') || Uint32FromInt32(c)-uint32('\t') < uint32(5)) +} + +func X__isspace_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xisspace(tls, c) +} + +func Xisspace_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__isspace_l(tls, c, l) +} + +func Xisupper(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(Uint32FromInt32(c)-uint32('A') < uint32(26)) +} + +func X__isupper_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xisupper(tls, c) +} + +func Xisupper_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__isupper_l(tls, c, l) +} + +type Twint_t = uint32 + +type Twctype_t = uint64 + +type Twctrans_t = uintptr + +func Xiswalnum(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(BoolInt32(wc-uint32('0') < uint32(10)) != 0 || Xiswalpha(tls, wc) != 0) +} + +func X__iswalnum_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswalnum(tls, c) +} + +func Xiswalnum_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswalnum_l(tls, c, l) +} + +var _table3 = [3904]uint8{ + 0: uint8(18), + 1: uint8(17), + 2: uint8(19), + 3: uint8(20), + 4: uint8(21), + 5: uint8(22), + 6: uint8(23), + 7: uint8(24), + 8: uint8(25), + 9: uint8(26), + 10: uint8(27), + 11: uint8(28), + 12: uint8(29), + 13: uint8(30), + 14: uint8(31), + 15: uint8(32), + 16: uint8(33), + 17: uint8(17), + 18: uint8(34), + 19: uint8(35), + 20: uint8(36), + 21: uint8(17), + 22: uint8(37), + 23: uint8(38), + 24: uint8(39), + 25: uint8(40), + 26: uint8(41), + 27: uint8(42), + 28: uint8(43), + 29: uint8(44), + 30: uint8(17), + 31: uint8(45), + 32: uint8(46), + 33: uint8(47), + 34: uint8(16), + 35: uint8(16), + 36: uint8(48), + 37: uint8(16), + 38: uint8(16), + 39: uint8(16), + 40: uint8(16), + 41: uint8(16), + 42: uint8(16), + 43: uint8(16), + 44: uint8(49), + 45: uint8(50), + 46: uint8(51), + 47: uint8(16), + 48: uint8(52), + 49: uint8(53), + 50: uint8(16), + 51: uint8(16), + 52: uint8(17), + 53: uint8(17), + 54: uint8(17), + 55: uint8(17), + 56: uint8(17), + 57: uint8(17), + 58: uint8(17), + 59: uint8(17), + 60: uint8(17), + 61: uint8(17), + 62: uint8(17), + 63: uint8(17), + 64: uint8(17), + 65: uint8(17), + 66: uint8(17), + 67: uint8(17), + 68: uint8(17), + 69: uint8(17), + 70: uint8(17), + 71: uint8(17), + 72: uint8(17), + 73: uint8(17), + 74: uint8(17), + 75: uint8(17), + 76: uint8(17), + 77: uint8(54), + 78: uint8(17), + 79: uint8(17), + 80: uint8(17), + 81: uint8(17), + 82: uint8(17), + 83: uint8(17), + 84: uint8(17), + 85: uint8(17), + 86: uint8(17), + 87: uint8(17), + 88: uint8(17), + 89: uint8(17), + 90: uint8(17), + 91: uint8(17), + 92: uint8(17), + 93: uint8(17), + 94: uint8(17), + 95: uint8(17), + 96: uint8(17), + 97: uint8(17), + 98: uint8(17), + 99: uint8(17), + 100: uint8(17), + 101: uint8(17), + 102: uint8(17), + 103: uint8(17), + 104: uint8(17), + 105: uint8(17), + 106: uint8(17), + 107: uint8(17), + 108: uint8(17), + 109: uint8(17), + 110: uint8(17), + 111: uint8(17), + 112: uint8(17), + 113: uint8(17), + 114: uint8(17), + 115: uint8(17), + 116: uint8(17), + 117: uint8(17), + 118: uint8(17), + 119: uint8(17), + 120: uint8(17), + 121: uint8(17), + 122: uint8(17), + 123: uint8(17), + 124: uint8(17), + 125: uint8(17), + 126: uint8(17), + 127: uint8(17), + 128: uint8(17), + 129: uint8(17), + 130: uint8(17), + 131: uint8(17), + 132: uint8(17), + 133: uint8(17), + 134: uint8(17), + 135: uint8(17), + 136: uint8(17), + 137: uint8(17), + 138: uint8(17), + 139: uint8(17), + 140: uint8(17), + 141: uint8(17), + 142: uint8(17), + 143: uint8(17), + 144: uint8(17), + 145: uint8(17), + 146: uint8(17), + 147: uint8(17), + 148: uint8(17), + 149: uint8(17), + 150: uint8(17), + 151: uint8(17), + 152: uint8(17), + 153: uint8(17), + 154: uint8(17), + 155: uint8(17), + 156: uint8(17), + 157: uint8(17), + 158: uint8(17), + 159: uint8(55), + 160: uint8(17), + 161: uint8(17), + 162: uint8(17), + 163: uint8(17), + 164: uint8(56), + 165: uint8(17), + 166: uint8(57), + 167: uint8(58), + 168: uint8(59), + 169: uint8(60), + 170: uint8(61), + 171: uint8(62), + 172: uint8(17), + 173: uint8(17), + 174: uint8(17), + 175: uint8(17), + 176: uint8(17), + 177: uint8(17), + 178: uint8(17), + 179: uint8(17), + 180: uint8(17), + 181: uint8(17), + 182: uint8(17), + 183: uint8(17), + 184: uint8(17), + 185: uint8(17), + 186: uint8(17), + 187: uint8(17), + 188: uint8(17), + 189: uint8(17), + 190: uint8(17), + 191: uint8(17), + 192: uint8(17), + 193: uint8(17), + 194: uint8(17), + 195: uint8(17), + 196: uint8(17), + 197: uint8(17), + 198: uint8(17), + 199: uint8(17), + 200: uint8(17), + 201: uint8(17), + 202: uint8(17), + 203: uint8(17), + 204: uint8(17), + 205: uint8(17), + 206: uint8(17), + 207: uint8(17), + 208: uint8(17), + 209: uint8(17), + 210: uint8(17), + 211: uint8(17), + 212: uint8(17), + 213: uint8(17), + 214: uint8(17), + 215: uint8(63), + 216: uint8(16), + 217: uint8(16), + 218: uint8(16), + 219: uint8(16), + 220: uint8(16), + 221: uint8(16), + 222: uint8(16), + 223: uint8(16), + 224: uint8(16), + 225: uint8(16), + 226: uint8(16), + 227: uint8(16), + 228: uint8(16), + 229: uint8(16), + 230: uint8(16), + 231: uint8(16), + 232: uint8(16), + 233: uint8(16), + 234: uint8(16), + 235: uint8(16), + 236: uint8(16), + 237: uint8(16), + 238: uint8(16), + 239: uint8(16), + 240: uint8(16), + 241: uint8(16), + 242: uint8(16), + 243: uint8(16), + 244: uint8(16), + 245: uint8(16), + 246: uint8(16), + 247: uint8(16), + 248: uint8(16), + 249: uint8(17), + 250: uint8(64), + 251: uint8(65), + 252: uint8(17), + 253: uint8(66), + 254: uint8(67), + 255: uint8(68), + 256: uint8(69), + 257: uint8(70), + 258: uint8(71), + 259: uint8(72), + 260: uint8(73), + 261: uint8(74), + 262: uint8(17), + 263: uint8(75), + 264: uint8(76), + 265: uint8(77), + 266: uint8(78), + 267: uint8(79), + 268: uint8(80), + 269: uint8(81), + 270: uint8(16), + 271: uint8(82), + 272: uint8(83), + 273: uint8(84), + 274: uint8(85), + 275: uint8(86), + 276: uint8(87), + 277: uint8(88), + 278: uint8(89), + 279: uint8(90), + 280: uint8(91), + 281: uint8(92), + 282: uint8(93), + 283: uint8(16), + 284: uint8(94), + 285: uint8(95), + 286: uint8(96), + 287: uint8(16), + 288: uint8(17), + 289: uint8(17), + 290: uint8(17), + 291: uint8(97), + 292: uint8(98), + 293: uint8(99), + 294: uint8(16), + 295: uint8(16), + 296: uint8(16), + 297: uint8(16), + 298: uint8(16), + 299: uint8(16), + 300: uint8(16), + 301: uint8(16), + 302: uint8(16), + 303: uint8(16), + 304: uint8(17), + 305: uint8(17), + 306: uint8(17), + 307: uint8(17), + 308: uint8(100), + 309: uint8(16), + 310: uint8(16), + 311: uint8(16), + 312: uint8(16), + 313: uint8(16), + 314: uint8(16), + 315: uint8(16), + 316: uint8(16), + 317: uint8(16), + 318: uint8(16), + 319: uint8(16), + 320: uint8(16), + 321: uint8(16), + 322: uint8(16), + 323: uint8(16), + 324: uint8(17), + 325: uint8(17), + 326: uint8(101), + 327: uint8(16), + 328: uint8(16), + 329: uint8(16), + 330: uint8(16), + 331: uint8(16), + 332: uint8(16), + 333: uint8(16), + 334: uint8(16), + 335: uint8(16), + 336: uint8(16), + 337: uint8(16), + 338: uint8(16), + 339: uint8(16), + 340: uint8(16), + 341: uint8(16), + 342: uint8(16), + 343: uint8(16), + 344: uint8(16), + 345: uint8(16), + 346: uint8(16), + 347: uint8(16), + 348: uint8(16), + 349: uint8(16), + 350: uint8(16), + 351: uint8(16), + 352: uint8(16), + 353: uint8(16), + 354: uint8(16), + 355: uint8(16), + 356: uint8(16), + 357: uint8(16), + 358: uint8(16), + 359: uint8(16), + 360: uint8(17), + 361: uint8(17), + 362: uint8(102), + 363: uint8(103), + 364: uint8(16), + 365: uint8(16), + 366: uint8(104), + 367: uint8(105), + 368: uint8(17), + 369: uint8(17), + 370: uint8(17), + 371: uint8(17), + 372: uint8(17), + 373: uint8(17), + 374: uint8(17), + 375: uint8(17), + 376: uint8(17), + 377: uint8(17), + 378: uint8(17), + 379: uint8(17), + 380: uint8(17), + 381: uint8(17), + 382: uint8(17), + 383: uint8(17), + 384: uint8(17), + 385: uint8(17), + 386: uint8(17), + 387: uint8(17), + 388: uint8(17), + 389: uint8(17), + 390: uint8(17), + 391: uint8(106), + 392: uint8(17), + 393: uint8(17), + 394: uint8(107), + 395: uint8(16), + 396: uint8(16), + 397: uint8(16), + 398: uint8(16), + 399: uint8(16), + 400: uint8(16), + 401: uint8(16), + 402: uint8(16), + 403: uint8(16), + 404: uint8(16), + 405: uint8(16), + 406: uint8(16), + 407: uint8(16), + 408: uint8(16), + 409: uint8(16), + 410: uint8(16), + 411: uint8(16), + 412: uint8(16), + 413: uint8(16), + 414: uint8(16), + 415: uint8(16), + 416: uint8(16), + 417: uint8(16), + 418: uint8(16), + 419: uint8(16), + 420: uint8(16), + 421: uint8(16), + 422: uint8(16), + 423: uint8(16), + 424: uint8(16), + 425: uint8(16), + 426: uint8(16), + 427: uint8(16), + 428: uint8(16), + 429: uint8(16), + 430: uint8(16), + 431: uint8(16), + 432: uint8(17), + 433: uint8(108), + 434: uint8(109), + 435: uint8(16), + 436: uint8(16), + 437: uint8(16), + 438: uint8(16), + 439: uint8(16), + 440: uint8(16), + 441: uint8(16), + 442: uint8(16), + 443: uint8(16), + 444: uint8(110), + 445: uint8(16), + 446: uint8(16), + 447: uint8(16), + 448: uint8(16), + 449: uint8(16), + 450: uint8(16), + 451: uint8(16), + 452: uint8(16), + 453: uint8(16), + 454: uint8(16), + 455: uint8(16), + 456: uint8(16), + 457: uint8(16), + 458: uint8(16), + 459: uint8(16), + 460: uint8(16), + 461: uint8(16), + 462: uint8(16), + 463: uint8(16), + 464: uint8(16), + 465: uint8(16), + 466: uint8(16), + 467: uint8(16), + 468: uint8(111), + 469: uint8(112), + 470: uint8(113), + 471: uint8(114), + 472: uint8(16), + 473: uint8(16), + 474: uint8(16), + 475: uint8(16), + 476: uint8(16), + 477: uint8(16), + 478: uint8(16), + 479: uint8(16), + 480: uint8(115), + 481: uint8(116), + 482: uint8(117), + 483: uint8(16), + 484: uint8(16), + 485: uint8(16), + 486: uint8(16), + 487: uint8(16), + 488: uint8(118), + 489: uint8(119), + 490: uint8(16), + 491: uint8(16), + 492: uint8(16), + 493: uint8(16), + 494: uint8(120), + 495: uint8(16), + 496: uint8(16), + 497: uint8(121), + 498: uint8(16), + 499: uint8(16), + 500: uint8(16), + 501: uint8(16), + 502: uint8(16), + 503: uint8(16), + 504: uint8(16), + 505: uint8(16), + 506: uint8(16), + 507: uint8(16), + 508: uint8(16), + 509: uint8(16), + 510: uint8(16), + 511: uint8(16), + 544: uint8(255), + 545: uint8(255), + 546: uint8(255), + 547: uint8(255), + 548: uint8(255), + 549: uint8(255), + 550: uint8(255), + 551: uint8(255), + 552: uint8(255), + 553: uint8(255), + 554: uint8(255), + 555: uint8(255), + 556: uint8(255), + 557: uint8(255), + 558: uint8(255), + 559: uint8(255), + 560: uint8(255), + 561: uint8(255), + 562: uint8(255), + 563: uint8(255), + 564: uint8(255), + 565: uint8(255), + 566: uint8(255), + 567: uint8(255), + 568: uint8(255), + 569: uint8(255), + 570: uint8(255), + 571: uint8(255), + 572: uint8(255), + 573: uint8(255), + 574: uint8(255), + 575: uint8(255), + 584: uint8(254), + 585: uint8(255), + 586: uint8(255), + 587: uint8(7), + 588: uint8(254), + 589: uint8(255), + 590: uint8(255), + 591: uint8(7), + 597: uint8(4), + 598: uint8(32), + 599: uint8(4), + 600: uint8(255), + 601: uint8(255), + 602: uint8(127), + 603: uint8(255), + 604: uint8(255), + 605: uint8(255), + 606: uint8(127), + 607: uint8(255), + 608: uint8(255), + 609: uint8(255), + 610: uint8(255), + 611: uint8(255), + 612: uint8(255), + 613: uint8(255), + 614: uint8(255), + 615: uint8(255), + 616: uint8(255), + 617: uint8(255), + 618: uint8(255), + 619: uint8(255), + 620: uint8(255), + 621: uint8(255), + 622: uint8(255), + 623: uint8(255), + 624: uint8(255), + 625: uint8(255), + 626: uint8(255), + 627: uint8(255), + 628: uint8(255), + 629: uint8(255), + 630: uint8(255), + 631: uint8(255), + 632: uint8(195), + 633: uint8(255), + 634: uint8(3), + 636: uint8(31), + 637: uint8(80), + 648: uint8(32), + 654: uint8(223), + 655: uint8(188), + 656: uint8(64), + 657: uint8(215), + 658: uint8(255), + 659: uint8(255), + 660: uint8(251), + 661: uint8(255), + 662: uint8(255), + 663: uint8(255), + 664: uint8(255), + 665: uint8(255), + 666: uint8(255), + 667: uint8(255), + 668: uint8(255), + 669: uint8(255), + 670: uint8(191), + 671: uint8(255), + 672: uint8(255), + 673: uint8(255), + 674: uint8(255), + 675: uint8(255), + 676: uint8(255), + 677: uint8(255), + 678: uint8(255), + 679: uint8(255), + 680: uint8(255), + 681: uint8(255), + 682: uint8(255), + 683: uint8(255), + 684: uint8(255), + 685: uint8(255), + 686: uint8(255), + 687: uint8(255), + 688: uint8(3), + 689: uint8(252), + 690: uint8(255), + 691: uint8(255), + 692: uint8(255), + 693: uint8(255), + 694: uint8(255), + 695: uint8(255), + 696: uint8(255), + 697: uint8(255), + 698: uint8(255), + 699: uint8(255), + 700: uint8(255), + 701: uint8(255), + 702: uint8(255), + 703: uint8(255), + 704: uint8(255), + 705: uint8(255), + 706: uint8(255), + 707: uint8(255), + 708: uint8(255), + 709: uint8(255), + 710: uint8(254), + 711: uint8(255), + 712: uint8(255), + 713: uint8(255), + 714: uint8(127), + 715: uint8(2), + 716: uint8(255), + 717: uint8(255), + 718: uint8(255), + 719: uint8(255), + 720: uint8(255), + 721: uint8(1), + 726: uint8(255), + 727: uint8(191), + 728: uint8(182), + 730: uint8(255), + 731: uint8(255), + 732: uint8(255), + 733: uint8(135), + 734: uint8(7), + 738: uint8(255), + 739: uint8(7), + 740: uint8(255), + 741: uint8(255), + 742: uint8(255), + 743: uint8(255), + 744: uint8(255), + 745: uint8(255), + 746: uint8(255), + 747: uint8(254), + 748: uint8(255), + 749: uint8(195), + 750: uint8(255), + 751: uint8(255), + 752: uint8(255), + 753: uint8(255), + 754: uint8(255), + 755: uint8(255), + 756: uint8(255), + 757: uint8(255), + 758: uint8(255), + 759: uint8(255), + 760: uint8(255), + 761: uint8(255), + 762: uint8(239), + 763: uint8(31), + 764: uint8(254), + 765: uint8(225), + 766: uint8(255), + 767: uint8(159), + 770: uint8(255), + 771: uint8(255), + 772: uint8(255), + 773: uint8(255), + 774: uint8(255), + 775: uint8(255), + 777: uint8(224), + 778: uint8(255), + 779: uint8(255), + 780: uint8(255), + 781: uint8(255), + 782: uint8(255), + 783: uint8(255), + 784: uint8(255), + 785: uint8(255), + 786: uint8(255), + 787: uint8(255), + 788: uint8(255), + 789: uint8(255), + 790: uint8(3), + 792: uint8(255), + 793: uint8(255), + 794: uint8(255), + 795: uint8(255), + 796: uint8(255), + 797: uint8(7), + 798: uint8(48), + 799: uint8(4), + 800: uint8(255), + 801: uint8(255), + 802: uint8(255), + 803: uint8(252), + 804: uint8(255), + 805: uint8(31), + 808: uint8(255), + 809: uint8(255), + 810: uint8(255), + 811: uint8(1), + 812: uint8(255), + 813: uint8(7), + 820: uint8(255), + 821: uint8(255), + 822: uint8(223), + 823: uint8(63), + 826: uint8(240), + 827: uint8(255), + 828: uint8(248), + 829: uint8(3), + 830: uint8(255), + 831: uint8(255), + 832: uint8(255), + 833: uint8(255), + 834: uint8(255), + 835: uint8(255), + 836: uint8(255), + 837: uint8(255), + 838: uint8(255), + 839: uint8(239), + 840: uint8(255), + 841: uint8(223), + 842: uint8(225), + 843: uint8(255), + 844: uint8(207), + 845: uint8(255), + 846: uint8(254), + 847: uint8(255), + 848: uint8(239), + 849: uint8(159), + 850: uint8(249), + 851: uint8(255), + 852: uint8(255), + 853: uint8(253), + 854: uint8(197), + 855: uint8(227), + 856: uint8(159), + 857: uint8(89), + 858: uint8(128), + 859: uint8(176), + 860: uint8(207), + 861: uint8(255), + 862: uint8(3), + 863: uint8(16), + 864: uint8(238), + 865: uint8(135), + 866: uint8(249), + 867: uint8(255), + 868: uint8(255), + 869: uint8(253), + 870: uint8(109), + 871: uint8(195), + 872: uint8(135), + 873: uint8(25), + 874: uint8(2), + 875: uint8(94), + 876: uint8(192), + 877: uint8(255), + 878: uint8(63), + 880: uint8(238), + 881: uint8(191), + 882: uint8(251), + 883: uint8(255), + 884: uint8(255), + 885: uint8(253), + 886: uint8(237), + 887: uint8(227), + 888: uint8(191), + 889: uint8(27), + 890: uint8(1), + 892: uint8(207), + 893: uint8(255), + 895: uint8(30), + 896: uint8(238), + 897: uint8(159), + 898: uint8(249), + 899: uint8(255), + 900: uint8(255), + 901: uint8(253), + 902: uint8(237), + 903: uint8(227), + 904: uint8(159), + 905: uint8(25), + 906: uint8(192), + 907: uint8(176), + 908: uint8(207), + 909: uint8(255), + 910: uint8(2), + 912: uint8(236), + 913: uint8(199), + 914: uint8(61), + 915: uint8(214), + 916: uint8(24), + 917: uint8(199), + 918: uint8(255), + 919: uint8(195), + 920: uint8(199), + 921: uint8(29), + 922: uint8(129), + 924: uint8(192), + 925: uint8(255), + 928: uint8(239), + 929: uint8(223), + 930: uint8(253), + 931: uint8(255), + 932: uint8(255), + 933: uint8(253), + 934: uint8(255), + 935: uint8(227), + 936: uint8(223), + 937: uint8(29), + 938: uint8(96), + 939: uint8(7), + 940: uint8(207), + 941: uint8(255), + 944: uint8(239), + 945: uint8(223), + 946: uint8(253), + 947: uint8(255), + 948: uint8(255), + 949: uint8(253), + 950: uint8(239), + 951: uint8(227), + 952: uint8(223), + 953: uint8(29), + 954: uint8(96), + 955: uint8(64), + 956: uint8(207), + 957: uint8(255), + 958: uint8(6), + 960: uint8(239), + 961: uint8(223), + 962: uint8(253), + 963: uint8(255), + 964: uint8(255), + 965: uint8(255), + 966: uint8(255), + 967: uint8(231), + 968: uint8(223), + 969: uint8(93), + 970: uint8(240), + 971: uint8(128), + 972: uint8(207), + 973: uint8(255), + 975: uint8(252), + 976: uint8(236), + 977: uint8(255), + 978: uint8(127), + 979: uint8(252), + 980: uint8(255), + 981: uint8(255), + 982: uint8(251), + 983: uint8(47), + 984: uint8(127), + 985: uint8(128), + 986: uint8(95), + 987: uint8(255), + 988: uint8(192), + 989: uint8(255), + 990: uint8(12), + 992: uint8(254), + 993: uint8(255), + 994: uint8(255), + 995: uint8(255), + 996: uint8(255), + 997: uint8(127), + 998: uint8(255), + 999: uint8(7), + 1000: uint8(63), + 1001: uint8(32), + 1002: uint8(255), + 1003: uint8(3), + 1008: uint8(214), + 1009: uint8(247), + 1010: uint8(255), + 1011: uint8(255), + 1012: uint8(175), + 1013: uint8(255), + 1014: uint8(255), + 1015: uint8(59), + 1016: uint8(95), + 1017: uint8(32), + 1018: uint8(255), + 1019: uint8(243), + 1024: uint8(1), + 1028: uint8(255), + 1029: uint8(3), + 1032: uint8(255), + 1033: uint8(254), + 1034: uint8(255), + 1035: uint8(255), + 1036: uint8(255), + 1037: uint8(31), + 1038: uint8(254), + 1039: uint8(255), + 1040: uint8(3), + 1041: uint8(255), + 1042: uint8(255), + 1043: uint8(254), + 1044: uint8(255), + 1045: uint8(255), + 1046: uint8(255), + 1047: uint8(31), + 1056: uint8(255), + 1057: uint8(255), + 1058: uint8(255), + 1059: uint8(255), + 1060: uint8(255), + 1061: uint8(255), + 1062: uint8(127), + 1063: uint8(249), + 1064: uint8(255), + 1065: uint8(3), + 1066: uint8(255), + 1067: uint8(255), + 1068: uint8(255), + 1069: uint8(255), + 1070: uint8(255), + 1071: uint8(255), + 1072: uint8(255), + 1073: uint8(255), + 1074: uint8(255), + 1075: uint8(63), + 1076: uint8(255), + 1077: uint8(255), + 1078: uint8(255), + 1079: uint8(255), + 1080: uint8(191), + 1081: uint8(32), + 1082: uint8(255), + 1083: uint8(255), + 1084: uint8(255), + 1085: uint8(255), + 1086: uint8(255), + 1087: uint8(247), + 1088: uint8(255), + 1089: uint8(255), + 1090: uint8(255), + 1091: uint8(255), + 1092: uint8(255), + 1093: uint8(255), + 1094: uint8(255), + 1095: uint8(255), + 1096: uint8(255), + 1097: uint8(61), + 1098: uint8(127), + 1099: uint8(61), + 1100: uint8(255), + 1101: uint8(255), + 1102: uint8(255), + 1103: uint8(255), + 1104: uint8(255), + 1105: uint8(61), + 1106: uint8(255), + 1107: uint8(255), + 1108: uint8(255), + 1109: uint8(255), + 1110: uint8(61), + 1111: uint8(127), + 1112: uint8(61), + 1113: uint8(255), + 1114: uint8(127), + 1115: uint8(255), + 1116: uint8(255), + 1117: uint8(255), + 1118: uint8(255), + 1119: uint8(255), + 1120: uint8(255), + 1121: uint8(255), + 1122: uint8(61), + 1123: uint8(255), + 1124: uint8(255), + 1125: uint8(255), + 1126: uint8(255), + 1127: uint8(255), + 1128: uint8(255), + 1129: uint8(255), + 1130: uint8(255), + 1131: uint8(7), + 1136: uint8(255), + 1137: uint8(255), + 1140: uint8(255), + 1141: uint8(255), + 1142: uint8(255), + 1143: uint8(255), + 1144: uint8(255), + 1145: uint8(255), + 1146: uint8(255), + 1147: uint8(255), + 1148: uint8(255), + 1149: uint8(255), + 1150: uint8(63), + 1151: uint8(63), + 1152: uint8(254), + 1153: uint8(255), + 1154: uint8(255), + 1155: uint8(255), + 1156: uint8(255), + 1157: uint8(255), + 1158: uint8(255), + 1159: uint8(255), + 1160: uint8(255), + 1161: uint8(255), + 1162: uint8(255), + 1163: uint8(255), + 1164: uint8(255), + 1165: uint8(255), + 1166: uint8(255), + 1167: uint8(255), + 1168: uint8(255), + 1169: uint8(255), + 1170: uint8(255), + 1171: uint8(255), + 1172: uint8(255), + 1173: uint8(255), + 1174: uint8(255), + 1175: uint8(255), + 1176: uint8(255), + 1177: uint8(255), + 1178: uint8(255), + 1179: uint8(255), + 1180: uint8(255), + 1181: uint8(255), + 1182: uint8(255), + 1183: uint8(255), + 1184: uint8(255), + 1185: uint8(255), + 1186: uint8(255), + 1187: uint8(255), + 1188: uint8(255), + 1189: uint8(255), + 1190: uint8(255), + 1191: uint8(255), + 1192: uint8(255), + 1193: uint8(255), + 1194: uint8(255), + 1195: uint8(255), + 1196: uint8(255), + 1197: uint8(159), + 1198: uint8(255), + 1199: uint8(255), + 1200: uint8(254), + 1201: uint8(255), + 1202: uint8(255), + 1203: uint8(7), + 1204: uint8(255), + 1205: uint8(255), + 1206: uint8(255), + 1207: uint8(255), + 1208: uint8(255), + 1209: uint8(255), + 1210: uint8(255), + 1211: uint8(255), + 1212: uint8(255), + 1213: uint8(199), + 1214: uint8(255), + 1215: uint8(1), + 1216: uint8(255), + 1217: uint8(223), + 1218: uint8(15), + 1220: uint8(255), + 1221: uint8(255), + 1222: uint8(15), + 1224: uint8(255), + 1225: uint8(255), + 1226: uint8(15), + 1228: uint8(255), + 1229: uint8(223), + 1230: uint8(13), + 1232: uint8(255), + 1233: uint8(255), + 1234: uint8(255), + 1235: uint8(255), + 1236: uint8(255), + 1237: uint8(255), + 1238: uint8(207), + 1239: uint8(255), + 1240: uint8(255), + 1241: uint8(1), + 1242: uint8(128), + 1243: uint8(16), + 1244: uint8(255), + 1245: uint8(3), + 1250: uint8(255), + 1251: uint8(3), + 1252: uint8(255), + 1253: uint8(255), + 1254: uint8(255), + 1255: uint8(255), + 1256: uint8(255), + 1257: uint8(255), + 1258: uint8(255), + 1259: uint8(255), + 1260: uint8(255), + 1261: uint8(255), + 1262: uint8(255), + 1263: uint8(1), + 1264: uint8(255), + 1265: uint8(255), + 1266: uint8(255), + 1267: uint8(255), + 1268: uint8(255), + 1269: uint8(7), + 1270: uint8(255), + 1271: uint8(255), + 1272: uint8(255), + 1273: uint8(255), + 1274: uint8(255), + 1275: uint8(255), + 1276: uint8(255), + 1277: uint8(255), + 1278: uint8(63), + 1280: uint8(255), + 1281: uint8(255), + 1282: uint8(255), + 1283: uint8(127), + 1284: uint8(255), + 1285: uint8(15), + 1286: uint8(255), + 1287: uint8(1), + 1288: uint8(192), + 1289: uint8(255), + 1290: uint8(255), + 1291: uint8(255), + 1292: uint8(255), + 1293: uint8(63), + 1294: uint8(31), + 1296: uint8(255), + 1297: uint8(255), + 1298: uint8(255), + 1299: uint8(255), + 1300: uint8(255), + 1301: uint8(15), + 1302: uint8(255), + 1303: uint8(255), + 1304: uint8(255), + 1305: uint8(3), + 1306: uint8(255), + 1307: uint8(3), + 1312: uint8(255), + 1313: uint8(255), + 1314: uint8(255), + 1315: uint8(15), + 1316: uint8(255), + 1317: uint8(255), + 1318: uint8(255), + 1319: uint8(255), + 1320: uint8(255), + 1321: uint8(255), + 1322: uint8(255), + 1323: uint8(127), + 1324: uint8(254), + 1325: uint8(255), + 1326: uint8(31), + 1328: uint8(255), + 1329: uint8(3), + 1330: uint8(255), + 1331: uint8(3), + 1332: uint8(128), + 1344: uint8(255), + 1345: uint8(255), + 1346: uint8(255), + 1347: uint8(255), + 1348: uint8(255), + 1349: uint8(255), + 1350: uint8(239), + 1351: uint8(255), + 1352: uint8(239), + 1353: uint8(15), + 1354: uint8(255), + 1355: uint8(3), + 1360: uint8(255), + 1361: uint8(255), + 1362: uint8(255), + 1363: uint8(255), + 1364: uint8(255), + 1365: uint8(243), + 1366: uint8(255), + 1367: uint8(255), + 1368: uint8(255), + 1369: uint8(255), + 1370: uint8(255), + 1371: uint8(255), + 1372: uint8(191), + 1373: uint8(255), + 1374: uint8(3), + 1376: uint8(255), + 1377: uint8(255), + 1378: uint8(255), + 1379: uint8(255), + 1380: uint8(255), + 1381: uint8(255), + 1382: uint8(127), + 1384: uint8(255), + 1385: uint8(227), + 1386: uint8(255), + 1387: uint8(255), + 1388: uint8(255), + 1389: uint8(255), + 1390: uint8(255), + 1391: uint8(63), + 1392: uint8(255), + 1393: uint8(1), + 1394: uint8(255), + 1395: uint8(255), + 1396: uint8(255), + 1397: uint8(255), + 1398: uint8(255), + 1399: uint8(231), + 1405: uint8(222), + 1406: uint8(111), + 1407: uint8(4), + 1408: uint8(255), + 1409: uint8(255), + 1410: uint8(255), + 1411: uint8(255), + 1412: uint8(255), + 1413: uint8(255), + 1414: uint8(255), + 1415: uint8(255), + 1416: uint8(255), + 1417: uint8(255), + 1418: uint8(255), + 1419: uint8(255), + 1420: uint8(255), + 1421: uint8(255), + 1422: uint8(255), + 1423: uint8(255), + 1424: uint8(255), + 1425: uint8(255), + 1426: uint8(255), + 1427: uint8(255), + 1428: uint8(255), + 1429: uint8(255), + 1430: uint8(255), + 1431: uint8(255), + 1436: uint8(128), + 1437: uint8(255), + 1438: uint8(31), + 1440: uint8(255), + 1441: uint8(255), + 1442: uint8(63), + 1443: uint8(63), + 1444: uint8(255), + 1445: uint8(255), + 1446: uint8(255), + 1447: uint8(255), + 1448: uint8(63), + 1449: uint8(63), + 1450: uint8(255), + 1451: uint8(170), + 1452: uint8(255), + 1453: uint8(255), + 1454: uint8(255), + 1455: uint8(63), + 1456: uint8(255), + 1457: uint8(255), + 1458: uint8(255), + 1459: uint8(255), + 1460: uint8(255), + 1461: uint8(255), + 1462: uint8(223), + 1463: uint8(95), + 1464: uint8(220), + 1465: uint8(31), + 1466: uint8(207), + 1467: uint8(15), + 1468: uint8(255), + 1469: uint8(31), + 1470: uint8(220), + 1471: uint8(31), + 1486: uint8(2), + 1487: uint8(128), + 1490: uint8(255), + 1491: uint8(31), + 1504: uint8(132), + 1505: uint8(252), + 1506: uint8(47), + 1507: uint8(62), + 1508: uint8(80), + 1509: uint8(189), + 1510: uint8(255), + 1511: uint8(243), + 1512: uint8(224), + 1513: uint8(67), + 1516: uint8(255), + 1517: uint8(255), + 1518: uint8(255), + 1519: uint8(255), + 1520: uint8(255), + 1521: uint8(1), + 1558: uint8(192), + 1559: uint8(255), + 1560: uint8(255), + 1561: uint8(255), + 1562: uint8(255), + 1563: uint8(255), + 1564: uint8(255), + 1565: uint8(3), + 1568: uint8(255), + 1569: uint8(255), + 1570: uint8(255), + 1571: uint8(255), + 1572: uint8(255), + 1573: uint8(127), + 1574: uint8(255), + 1575: uint8(255), + 1576: uint8(255), + 1577: uint8(255), + 1578: uint8(255), + 1579: uint8(127), + 1580: uint8(255), + 1581: uint8(255), + 1582: uint8(255), + 1583: uint8(255), + 1584: uint8(255), + 1585: uint8(255), + 1586: uint8(255), + 1587: uint8(255), + 1588: uint8(255), + 1589: uint8(255), + 1590: uint8(255), + 1591: uint8(255), + 1592: uint8(255), + 1593: uint8(255), + 1594: uint8(255), + 1595: uint8(255), + 1596: uint8(31), + 1597: uint8(120), + 1598: uint8(12), + 1600: uint8(255), + 1601: uint8(255), + 1602: uint8(255), + 1603: uint8(255), + 1604: uint8(191), + 1605: uint8(32), + 1606: uint8(255), + 1607: uint8(255), + 1608: uint8(255), + 1609: uint8(255), + 1610: uint8(255), + 1611: uint8(255), + 1612: uint8(255), + 1613: uint8(128), + 1616: uint8(255), + 1617: uint8(255), + 1618: uint8(127), + 1620: uint8(127), + 1621: uint8(127), + 1622: uint8(127), + 1623: uint8(127), + 1624: uint8(127), + 1625: uint8(127), + 1626: uint8(127), + 1627: uint8(127), + 1628: uint8(255), + 1629: uint8(255), + 1630: uint8(255), + 1631: uint8(255), + 1637: uint8(128), + 1664: uint8(224), + 1668: uint8(254), + 1669: uint8(3), + 1670: uint8(62), + 1671: uint8(31), + 1672: uint8(254), + 1673: uint8(255), + 1674: uint8(255), + 1675: uint8(255), + 1676: uint8(255), + 1677: uint8(255), + 1678: uint8(255), + 1679: uint8(255), + 1680: uint8(255), + 1681: uint8(255), + 1682: uint8(127), + 1683: uint8(224), + 1684: uint8(254), + 1685: uint8(255), + 1686: uint8(255), + 1687: uint8(255), + 1688: uint8(255), + 1689: uint8(255), + 1690: uint8(255), + 1691: uint8(255), + 1692: uint8(255), + 1693: uint8(255), + 1694: uint8(255), + 1695: uint8(247), + 1696: uint8(224), + 1697: uint8(255), + 1698: uint8(255), + 1699: uint8(255), + 1700: uint8(255), + 1701: uint8(255), + 1702: uint8(254), + 1703: uint8(255), + 1704: uint8(255), + 1705: uint8(255), + 1706: uint8(255), + 1707: uint8(255), + 1708: uint8(255), + 1709: uint8(255), + 1710: uint8(255), + 1711: uint8(255), + 1712: uint8(255), + 1713: uint8(127), + 1716: uint8(255), + 1717: uint8(255), + 1718: uint8(255), + 1719: uint8(7), + 1726: uint8(255), + 1727: uint8(255), + 1728: uint8(255), + 1729: uint8(255), + 1730: uint8(255), + 1731: uint8(255), + 1732: uint8(255), + 1733: uint8(255), + 1734: uint8(255), + 1735: uint8(255), + 1736: uint8(255), + 1737: uint8(255), + 1738: uint8(255), + 1739: uint8(255), + 1740: uint8(255), + 1741: uint8(255), + 1742: uint8(255), + 1743: uint8(255), + 1744: uint8(255), + 1745: uint8(255), + 1746: uint8(255), + 1747: uint8(255), + 1748: uint8(255), + 1749: uint8(255), + 1750: uint8(63), + 1760: uint8(255), + 1761: uint8(255), + 1762: uint8(255), + 1763: uint8(255), + 1764: uint8(255), + 1765: uint8(255), + 1766: uint8(255), + 1767: uint8(255), + 1768: uint8(255), + 1769: uint8(255), + 1770: uint8(255), + 1771: uint8(255), + 1772: uint8(255), + 1773: uint8(255), + 1774: uint8(255), + 1775: uint8(255), + 1776: uint8(255), + 1777: uint8(255), + 1778: uint8(255), + 1779: uint8(255), + 1780: uint8(255), + 1781: uint8(255), + 1782: uint8(255), + 1783: uint8(255), + 1784: uint8(255), + 1785: uint8(255), + 1786: uint8(255), + 1787: uint8(255), + 1788: uint8(255), + 1789: uint8(255), + 1792: uint8(255), + 1793: uint8(255), + 1794: uint8(255), + 1795: uint8(255), + 1796: uint8(255), + 1797: uint8(255), + 1798: uint8(255), + 1799: uint8(255), + 1800: uint8(255), + 1801: uint8(255), + 1802: uint8(255), + 1803: uint8(255), + 1804: uint8(255), + 1805: uint8(255), + 1806: uint8(255), + 1807: uint8(255), + 1808: uint8(255), + 1809: uint8(31), + 1818: uint8(255), + 1819: uint8(255), + 1820: uint8(255), + 1821: uint8(255), + 1822: uint8(255), + 1823: uint8(63), + 1824: uint8(255), + 1825: uint8(31), + 1826: uint8(255), + 1827: uint8(255), + 1828: uint8(255), + 1829: uint8(15), + 1832: uint8(255), + 1833: uint8(255), + 1834: uint8(255), + 1835: uint8(255), + 1836: uint8(255), + 1837: uint8(127), + 1838: uint8(240), + 1839: uint8(143), + 1840: uint8(255), + 1841: uint8(255), + 1842: uint8(255), + 1843: uint8(255), + 1844: uint8(255), + 1845: uint8(255), + 1846: uint8(255), + 1847: uint8(255), + 1848: uint8(255), + 1849: uint8(255), + 1850: uint8(255), + 1851: uint8(255), + 1852: uint8(255), + 1853: uint8(255), + 1858: uint8(128), + 1859: uint8(255), + 1860: uint8(252), + 1861: uint8(255), + 1862: uint8(255), + 1863: uint8(255), + 1864: uint8(255), + 1865: uint8(255), + 1866: uint8(255), + 1867: uint8(255), + 1868: uint8(255), + 1869: uint8(255), + 1870: uint8(255), + 1871: uint8(255), + 1872: uint8(255), + 1873: uint8(249), + 1874: uint8(255), + 1875: uint8(255), + 1876: uint8(255), + 1877: uint8(255), + 1878: uint8(255), + 1879: uint8(255), + 1880: uint8(124), + 1886: uint8(128), + 1887: uint8(255), + 1888: uint8(191), + 1889: uint8(255), + 1890: uint8(255), + 1891: uint8(255), + 1892: uint8(255), + 1896: uint8(255), + 1897: uint8(255), + 1898: uint8(255), + 1899: uint8(255), + 1900: uint8(255), + 1901: uint8(255), + 1902: uint8(15), + 1904: uint8(255), + 1905: uint8(255), + 1906: uint8(255), + 1907: uint8(255), + 1908: uint8(255), + 1909: uint8(255), + 1910: uint8(255), + 1911: uint8(255), + 1912: uint8(47), + 1914: uint8(255), + 1915: uint8(3), + 1918: uint8(252), + 1919: uint8(232), + 1920: uint8(255), + 1921: uint8(255), + 1922: uint8(255), + 1923: uint8(255), + 1924: uint8(255), + 1925: uint8(7), + 1926: uint8(255), + 1927: uint8(255), + 1928: uint8(255), + 1929: uint8(255), + 1930: uint8(7), + 1932: uint8(255), + 1933: uint8(255), + 1934: uint8(255), + 1935: uint8(31), + 1936: uint8(255), + 1937: uint8(255), + 1938: uint8(255), + 1939: uint8(255), + 1940: uint8(255), + 1941: uint8(255), + 1942: uint8(247), + 1943: uint8(255), + 1945: uint8(128), + 1946: uint8(255), + 1947: uint8(3), + 1948: uint8(255), + 1949: uint8(255), + 1950: uint8(255), + 1951: uint8(127), + 1952: uint8(255), + 1953: uint8(255), + 1954: uint8(255), + 1955: uint8(255), + 1956: uint8(255), + 1957: uint8(255), + 1958: uint8(127), + 1960: uint8(255), + 1961: uint8(63), + 1962: uint8(255), + 1963: uint8(3), + 1964: uint8(255), + 1965: uint8(255), + 1966: uint8(127), + 1967: uint8(252), + 1968: uint8(255), + 1969: uint8(255), + 1970: uint8(255), + 1971: uint8(255), + 1972: uint8(255), + 1973: uint8(255), + 1974: uint8(255), + 1975: uint8(127), + 1976: uint8(5), + 1979: uint8(56), + 1980: uint8(255), + 1981: uint8(255), + 1982: uint8(60), + 1984: uint8(126), + 1985: uint8(126), + 1986: uint8(126), + 1988: uint8(127), + 1989: uint8(127), + 1990: uint8(255), + 1991: uint8(255), + 1992: uint8(255), + 1993: uint8(255), + 1994: uint8(255), + 1995: uint8(247), + 1996: uint8(255), + 1998: uint8(255), + 1999: uint8(255), + 2000: uint8(255), + 2001: uint8(255), + 2002: uint8(255), + 2003: uint8(255), + 2004: uint8(255), + 2005: uint8(255), + 2006: uint8(255), + 2007: uint8(255), + 2008: uint8(255), + 2009: uint8(255), + 2010: uint8(255), + 2011: uint8(255), + 2012: uint8(255), + 2013: uint8(7), + 2014: uint8(255), + 2015: uint8(3), + 2016: uint8(255), + 2017: uint8(255), + 2018: uint8(255), + 2019: uint8(255), + 2020: uint8(255), + 2021: uint8(255), + 2022: uint8(255), + 2023: uint8(255), + 2024: uint8(255), + 2025: uint8(255), + 2026: uint8(255), + 2027: uint8(255), + 2028: uint8(255), + 2029: uint8(255), + 2030: uint8(255), + 2031: uint8(255), + 2032: uint8(255), + 2033: uint8(255), + 2034: uint8(255), + 2035: uint8(255), + 2036: uint8(15), + 2038: uint8(255), + 2039: uint8(255), + 2040: uint8(127), + 2041: uint8(248), + 2042: uint8(255), + 2043: uint8(255), + 2044: uint8(255), + 2045: uint8(255), + 2046: uint8(255), + 2047: uint8(15), + 2048: uint8(255), + 2049: uint8(255), + 2050: uint8(255), + 2051: uint8(255), + 2052: uint8(255), + 2053: uint8(255), + 2054: uint8(255), + 2055: uint8(255), + 2056: uint8(255), + 2057: uint8(255), + 2058: uint8(255), + 2059: uint8(255), + 2060: uint8(255), + 2061: uint8(63), + 2062: uint8(255), + 2063: uint8(255), + 2064: uint8(255), + 2065: uint8(255), + 2066: uint8(255), + 2067: uint8(255), + 2068: uint8(255), + 2069: uint8(255), + 2070: uint8(255), + 2071: uint8(255), + 2072: uint8(255), + 2073: uint8(255), + 2074: uint8(255), + 2075: uint8(3), + 2080: uint8(127), + 2082: uint8(248), + 2083: uint8(224), + 2084: uint8(255), + 2085: uint8(253), + 2086: uint8(127), + 2087: uint8(95), + 2088: uint8(219), + 2089: uint8(255), + 2090: uint8(255), + 2091: uint8(255), + 2092: uint8(255), + 2093: uint8(255), + 2094: uint8(255), + 2095: uint8(255), + 2096: uint8(255), + 2097: uint8(255), + 2098: uint8(255), + 2099: uint8(255), + 2100: uint8(255), + 2101: uint8(255), + 2102: uint8(3), + 2106: uint8(248), + 2107: uint8(255), + 2108: uint8(255), + 2109: uint8(255), + 2110: uint8(255), + 2111: uint8(255), + 2112: uint8(255), + 2113: uint8(255), + 2114: uint8(255), + 2115: uint8(255), + 2116: uint8(255), + 2117: uint8(255), + 2118: uint8(255), + 2119: uint8(63), + 2122: uint8(255), + 2123: uint8(255), + 2124: uint8(255), + 2125: uint8(255), + 2126: uint8(255), + 2127: uint8(255), + 2128: uint8(255), + 2129: uint8(255), + 2130: uint8(252), + 2131: uint8(255), + 2132: uint8(255), + 2133: uint8(255), + 2134: uint8(255), + 2135: uint8(255), + 2136: uint8(255), + 2142: uint8(255), + 2143: uint8(15), + 2158: uint8(223), + 2159: uint8(255), + 2160: uint8(255), + 2161: uint8(255), + 2162: uint8(255), + 2163: uint8(255), + 2164: uint8(255), + 2165: uint8(255), + 2166: uint8(255), + 2167: uint8(255), + 2168: uint8(255), + 2169: uint8(255), + 2170: uint8(255), + 2171: uint8(255), + 2172: uint8(255), + 2173: uint8(255), + 2174: uint8(255), + 2175: uint8(31), + 2178: uint8(255), + 2179: uint8(3), + 2180: uint8(254), + 2181: uint8(255), + 2182: uint8(255), + 2183: uint8(7), + 2184: uint8(254), + 2185: uint8(255), + 2186: uint8(255), + 2187: uint8(7), + 2188: uint8(192), + 2189: uint8(255), + 2190: uint8(255), + 2191: uint8(255), + 2192: uint8(255), + 2193: uint8(255), + 2194: uint8(255), + 2195: uint8(255), + 2196: uint8(255), + 2197: uint8(255), + 2198: uint8(255), + 2199: uint8(127), + 2200: uint8(252), + 2201: uint8(252), + 2202: uint8(252), + 2203: uint8(28), + 2208: uint8(255), + 2209: uint8(239), + 2210: uint8(255), + 2211: uint8(255), + 2212: uint8(127), + 2213: uint8(255), + 2214: uint8(255), + 2215: uint8(183), + 2216: uint8(255), + 2217: uint8(63), + 2218: uint8(255), + 2219: uint8(63), + 2224: uint8(255), + 2225: uint8(255), + 2226: uint8(255), + 2227: uint8(255), + 2228: uint8(255), + 2229: uint8(255), + 2230: uint8(255), + 2231: uint8(255), + 2232: uint8(255), + 2233: uint8(255), + 2234: uint8(255), + 2235: uint8(255), + 2236: uint8(255), + 2237: uint8(255), + 2238: uint8(255), + 2239: uint8(7), + 2248: uint8(255), + 2249: uint8(255), + 2250: uint8(255), + 2251: uint8(255), + 2252: uint8(255), + 2253: uint8(255), + 2254: uint8(31), + 2288: uint8(255), + 2289: uint8(255), + 2290: uint8(255), + 2291: uint8(31), + 2292: uint8(255), + 2293: uint8(255), + 2294: uint8(255), + 2295: uint8(255), + 2296: uint8(255), + 2297: uint8(255), + 2298: uint8(1), + 2304: uint8(255), + 2305: uint8(255), + 2306: uint8(255), + 2307: uint8(255), + 2309: uint8(224), + 2310: uint8(255), + 2311: uint8(255), + 2312: uint8(255), + 2313: uint8(7), + 2314: uint8(255), + 2315: uint8(255), + 2316: uint8(255), + 2317: uint8(255), + 2318: uint8(255), + 2319: uint8(7), + 2320: uint8(255), + 2321: uint8(255), + 2322: uint8(255), + 2323: uint8(63), + 2324: uint8(255), + 2325: uint8(255), + 2326: uint8(255), + 2327: uint8(255), + 2328: uint8(15), + 2329: uint8(255), + 2330: uint8(62), + 2336: uint8(255), + 2337: uint8(255), + 2338: uint8(255), + 2339: uint8(255), + 2340: uint8(255), + 2341: uint8(255), + 2342: uint8(255), + 2343: uint8(255), + 2344: uint8(255), + 2345: uint8(255), + 2346: uint8(255), + 2347: uint8(255), + 2348: uint8(255), + 2349: uint8(255), + 2350: uint8(255), + 2351: uint8(255), + 2352: uint8(255), + 2353: uint8(255), + 2354: uint8(255), + 2355: uint8(63), + 2356: uint8(255), + 2357: uint8(3), + 2358: uint8(255), + 2359: uint8(255), + 2360: uint8(255), + 2361: uint8(255), + 2362: uint8(15), + 2363: uint8(255), + 2364: uint8(255), + 2365: uint8(255), + 2366: uint8(255), + 2367: uint8(15), + 2368: uint8(255), + 2369: uint8(255), + 2370: uint8(255), + 2371: uint8(255), + 2372: uint8(255), + 2374: uint8(255), + 2375: uint8(255), + 2376: uint8(255), + 2377: uint8(255), + 2378: uint8(255), + 2379: uint8(255), + 2380: uint8(15), + 2400: uint8(255), + 2401: uint8(255), + 2402: uint8(255), + 2403: uint8(255), + 2404: uint8(255), + 2405: uint8(255), + 2406: uint8(127), + 2408: uint8(255), + 2409: uint8(255), + 2410: uint8(63), + 2412: uint8(255), + 2432: uint8(63), + 2433: uint8(253), + 2434: uint8(255), + 2435: uint8(255), + 2436: uint8(255), + 2437: uint8(255), + 2438: uint8(191), + 2439: uint8(145), + 2440: uint8(255), + 2441: uint8(255), + 2442: uint8(63), + 2444: uint8(255), + 2445: uint8(255), + 2446: uint8(127), + 2448: uint8(255), + 2449: uint8(255), + 2450: uint8(255), + 2451: uint8(127), + 2460: uint8(255), + 2461: uint8(255), + 2462: uint8(55), + 2464: uint8(255), + 2465: uint8(255), + 2466: uint8(63), + 2468: uint8(255), + 2469: uint8(255), + 2470: uint8(255), + 2471: uint8(3), + 2480: uint8(255), + 2481: uint8(255), + 2482: uint8(255), + 2483: uint8(255), + 2484: uint8(255), + 2485: uint8(255), + 2486: uint8(255), + 2487: uint8(192), + 2496: uint8(111), + 2497: uint8(240), + 2498: uint8(239), + 2499: uint8(254), + 2500: uint8(255), + 2501: uint8(255), + 2502: uint8(63), + 2508: uint8(255), + 2509: uint8(255), + 2510: uint8(255), + 2511: uint8(31), + 2512: uint8(255), + 2513: uint8(255), + 2514: uint8(255), + 2515: uint8(31), + 2520: uint8(255), + 2521: uint8(254), + 2522: uint8(255), + 2523: uint8(255), + 2524: uint8(31), + 2528: uint8(255), + 2529: uint8(255), + 2530: uint8(255), + 2531: uint8(255), + 2532: uint8(255), + 2533: uint8(255), + 2534: uint8(63), + 2536: uint8(255), + 2537: uint8(255), + 2538: uint8(63), + 2540: uint8(255), + 2541: uint8(255), + 2542: uint8(7), + 2544: uint8(255), + 2545: uint8(255), + 2546: uint8(3), + 2560: uint8(255), + 2561: uint8(255), + 2562: uint8(255), + 2563: uint8(255), + 2564: uint8(255), + 2565: uint8(255), + 2566: uint8(255), + 2567: uint8(255), + 2568: uint8(255), + 2569: uint8(1), + 2576: uint8(255), + 2577: uint8(255), + 2578: uint8(255), + 2579: uint8(255), + 2580: uint8(255), + 2581: uint8(255), + 2582: uint8(7), + 2584: uint8(255), + 2585: uint8(255), + 2586: uint8(255), + 2587: uint8(255), + 2588: uint8(255), + 2589: uint8(255), + 2590: uint8(7), + 2592: uint8(255), + 2593: uint8(255), + 2594: uint8(255), + 2595: uint8(255), + 2596: uint8(255), + 2598: uint8(255), + 2599: uint8(3), + 2624: uint8(255), + 2625: uint8(255), + 2626: uint8(255), + 2627: uint8(31), + 2628: uint8(128), + 2630: uint8(255), + 2631: uint8(255), + 2632: uint8(63), + 2652: uint8(255), + 2653: uint8(255), + 2654: uint8(127), + 2656: uint8(255), + 2657: uint8(255), + 2658: uint8(255), + 2659: uint8(255), + 2660: uint8(255), + 2661: uint8(255), + 2662: uint8(255), + 2663: uint8(255), + 2664: uint8(63), + 2668: uint8(192), + 2669: uint8(255), + 2672: uint8(252), + 2673: uint8(255), + 2674: uint8(255), + 2675: uint8(255), + 2676: uint8(255), + 2677: uint8(255), + 2678: uint8(255), + 2679: uint8(1), + 2682: uint8(255), + 2683: uint8(255), + 2684: uint8(255), + 2685: uint8(1), + 2686: uint8(255), + 2687: uint8(3), + 2688: uint8(255), + 2689: uint8(255), + 2690: uint8(255), + 2691: uint8(255), + 2692: uint8(255), + 2693: uint8(255), + 2694: uint8(199), + 2695: uint8(255), + 2696: uint8(112), + 2698: uint8(255), + 2699: uint8(255), + 2700: uint8(255), + 2701: uint8(255), + 2702: uint8(71), + 2704: uint8(255), + 2705: uint8(255), + 2706: uint8(255), + 2707: uint8(255), + 2708: uint8(255), + 2709: uint8(255), + 2710: uint8(255), + 2711: uint8(255), + 2712: uint8(30), + 2714: uint8(255), + 2715: uint8(23), + 2720: uint8(255), + 2721: uint8(255), + 2722: uint8(251), + 2723: uint8(255), + 2724: uint8(255), + 2725: uint8(255), + 2726: uint8(159), + 2727: uint8(64), + 2736: uint8(127), + 2737: uint8(189), + 2738: uint8(255), + 2739: uint8(191), + 2740: uint8(255), + 2741: uint8(1), + 2742: uint8(255), + 2743: uint8(255), + 2744: uint8(255), + 2745: uint8(255), + 2746: uint8(255), + 2747: uint8(255), + 2748: uint8(255), + 2749: uint8(1), + 2750: uint8(255), + 2751: uint8(3), + 2752: uint8(239), + 2753: uint8(159), + 2754: uint8(249), + 2755: uint8(255), + 2756: uint8(255), + 2757: uint8(253), + 2758: uint8(237), + 2759: uint8(227), + 2760: uint8(159), + 2761: uint8(25), + 2762: uint8(129), + 2763: uint8(224), + 2764: uint8(15), + 2784: uint8(255), + 2785: uint8(255), + 2786: uint8(255), + 2787: uint8(255), + 2788: uint8(255), + 2789: uint8(255), + 2790: uint8(255), + 2791: uint8(255), + 2792: uint8(187), + 2793: uint8(7), + 2794: uint8(255), + 2795: uint8(131), + 2800: uint8(255), + 2801: uint8(255), + 2802: uint8(255), + 2803: uint8(255), + 2804: uint8(255), + 2805: uint8(255), + 2806: uint8(255), + 2807: uint8(255), + 2808: uint8(179), + 2810: uint8(255), + 2811: uint8(3), + 2832: uint8(255), + 2833: uint8(255), + 2834: uint8(255), + 2835: uint8(255), + 2836: uint8(255), + 2837: uint8(255), + 2838: uint8(63), + 2839: uint8(127), + 2843: uint8(63), + 2848: uint8(255), + 2849: uint8(255), + 2850: uint8(255), + 2851: uint8(255), + 2852: uint8(255), + 2853: uint8(255), + 2854: uint8(255), + 2855: uint8(127), + 2856: uint8(17), + 2858: uint8(255), + 2859: uint8(3), + 2864: uint8(255), + 2865: uint8(255), + 2866: uint8(255), + 2867: uint8(255), + 2868: uint8(255), + 2869: uint8(255), + 2870: uint8(63), + 2871: uint8(1), + 2872: uint8(255), + 2873: uint8(3), + 2880: uint8(255), + 2881: uint8(255), + 2882: uint8(255), + 2883: uint8(231), + 2884: uint8(255), + 2885: uint8(7), + 2886: uint8(255), + 2887: uint8(3), + 2912: uint8(255), + 2913: uint8(255), + 2914: uint8(255), + 2915: uint8(255), + 2916: uint8(255), + 2917: uint8(255), + 2918: uint8(255), + 2919: uint8(1), + 2932: uint8(255), + 2933: uint8(255), + 2934: uint8(255), + 2935: uint8(255), + 2936: uint8(255), + 2937: uint8(255), + 2938: uint8(255), + 2939: uint8(255), + 2940: uint8(255), + 2941: uint8(3), + 2943: uint8(128), + 2964: uint8(255), + 2965: uint8(252), + 2966: uint8(255), + 2967: uint8(255), + 2968: uint8(255), + 2969: uint8(255), + 2970: uint8(255), + 2971: uint8(252), + 2972: uint8(26), + 2976: uint8(255), + 2977: uint8(255), + 2978: uint8(255), + 2979: uint8(255), + 2980: uint8(255), + 2981: uint8(255), + 2982: uint8(231), + 2983: uint8(127), + 2986: uint8(255), + 2987: uint8(255), + 2988: uint8(255), + 2989: uint8(255), + 2990: uint8(255), + 2991: uint8(255), + 2992: uint8(255), + 2993: uint8(255), + 2994: uint8(255), + 2995: uint8(32), + 3000: uint8(255), + 3001: uint8(255), + 3002: uint8(255), + 3003: uint8(255), + 3004: uint8(255), + 3005: uint8(255), + 3006: uint8(255), + 3007: uint8(1), + 3008: uint8(255), + 3009: uint8(253), + 3010: uint8(255), + 3011: uint8(255), + 3012: uint8(255), + 3013: uint8(255), + 3014: uint8(127), + 3015: uint8(127), + 3016: uint8(1), + 3018: uint8(255), + 3019: uint8(3), + 3022: uint8(252), + 3023: uint8(255), + 3024: uint8(255), + 3025: uint8(255), + 3026: uint8(252), + 3027: uint8(255), + 3028: uint8(255), + 3029: uint8(254), + 3030: uint8(127), + 3040: uint8(127), + 3041: uint8(251), + 3042: uint8(255), + 3043: uint8(255), + 3044: uint8(255), + 3045: uint8(255), + 3046: uint8(127), + 3047: uint8(180), + 3048: uint8(203), + 3050: uint8(255), + 3051: uint8(3), + 3052: uint8(191), + 3053: uint8(253), + 3054: uint8(255), + 3055: uint8(255), + 3056: uint8(255), + 3057: uint8(127), + 3058: uint8(123), + 3059: uint8(1), + 3060: uint8(255), + 3061: uint8(3), + 3100: uint8(255), + 3101: uint8(255), + 3102: uint8(127), + 3104: uint8(255), + 3105: uint8(255), + 3106: uint8(255), + 3107: uint8(255), + 3108: uint8(255), + 3109: uint8(255), + 3110: uint8(255), + 3111: uint8(255), + 3112: uint8(255), + 3113: uint8(255), + 3114: uint8(255), + 3115: uint8(255), + 3116: uint8(255), + 3117: uint8(255), + 3118: uint8(255), + 3119: uint8(255), + 3120: uint8(255), + 3121: uint8(255), + 3122: uint8(255), + 3123: uint8(3), + 3136: uint8(255), + 3137: uint8(255), + 3138: uint8(255), + 3139: uint8(255), + 3140: uint8(255), + 3141: uint8(255), + 3142: uint8(255), + 3143: uint8(255), + 3144: uint8(255), + 3145: uint8(255), + 3146: uint8(255), + 3147: uint8(255), + 3148: uint8(255), + 3149: uint8(127), + 3152: uint8(255), + 3153: uint8(255), + 3154: uint8(255), + 3155: uint8(255), + 3156: uint8(255), + 3157: uint8(255), + 3158: uint8(255), + 3159: uint8(255), + 3160: uint8(255), + 3161: uint8(255), + 3162: uint8(255), + 3163: uint8(255), + 3164: uint8(255), + 3165: uint8(255), + 3166: uint8(255), + 3167: uint8(255), + 3168: uint8(255), + 3169: uint8(255), + 3170: uint8(255), + 3171: uint8(255), + 3172: uint8(255), + 3173: uint8(255), + 3174: uint8(255), + 3175: uint8(255), + 3176: uint8(15), + 3200: uint8(255), + 3201: uint8(255), + 3202: uint8(255), + 3203: uint8(255), + 3204: uint8(255), + 3205: uint8(127), + 3232: uint8(255), + 3233: uint8(255), + 3234: uint8(255), + 3235: uint8(255), + 3236: uint8(255), + 3237: uint8(255), + 3238: uint8(255), + 3239: uint8(255), + 3240: uint8(127), + 3264: uint8(255), + 3265: uint8(255), + 3266: uint8(255), + 3267: uint8(255), + 3268: uint8(255), + 3269: uint8(255), + 3270: uint8(255), + 3271: uint8(1), + 3272: uint8(255), + 3273: uint8(255), + 3274: uint8(255), + 3275: uint8(127), + 3276: uint8(255), + 3277: uint8(3), + 3290: uint8(255), + 3291: uint8(255), + 3292: uint8(255), + 3293: uint8(63), + 3296: uint8(255), + 3297: uint8(255), + 3298: uint8(255), + 3299: uint8(255), + 3300: uint8(255), + 3301: uint8(255), + 3304: uint8(15), + 3306: uint8(255), + 3307: uint8(3), + 3308: uint8(248), + 3309: uint8(255), + 3310: uint8(255), + 3311: uint8(224), + 3312: uint8(255), + 3313: uint8(255), + 3336: uint8(255), + 3337: uint8(255), + 3338: uint8(255), + 3339: uint8(255), + 3340: uint8(255), + 3341: uint8(255), + 3342: uint8(255), + 3343: uint8(255), + 3360: uint8(255), + 3361: uint8(255), + 3362: uint8(255), + 3363: uint8(255), + 3364: uint8(255), + 3365: uint8(255), + 3366: uint8(255), + 3367: uint8(255), + 3368: uint8(255), + 3369: uint8(135), + 3370: uint8(255), + 3371: uint8(255), + 3372: uint8(255), + 3373: uint8(255), + 3374: uint8(255), + 3375: uint8(255), + 3376: uint8(255), + 3377: uint8(128), + 3378: uint8(255), + 3379: uint8(255), + 3388: uint8(11), + 3392: uint8(255), + 3393: uint8(255), + 3394: uint8(255), + 3395: uint8(255), + 3396: uint8(255), + 3397: uint8(255), + 3398: uint8(255), + 3399: uint8(255), + 3400: uint8(255), + 3401: uint8(255), + 3402: uint8(255), + 3403: uint8(255), + 3404: uint8(255), + 3405: uint8(255), + 3406: uint8(255), + 3407: uint8(255), + 3408: uint8(255), + 3409: uint8(255), + 3410: uint8(255), + 3411: uint8(255), + 3412: uint8(255), + 3413: uint8(255), + 3414: uint8(255), + 3415: uint8(255), + 3416: uint8(255), + 3417: uint8(255), + 3418: uint8(255), + 3419: uint8(255), + 3420: uint8(255), + 3421: uint8(255), + 3422: uint8(255), + 3424: uint8(255), + 3425: uint8(255), + 3426: uint8(255), + 3427: uint8(255), + 3428: uint8(255), + 3429: uint8(255), + 3430: uint8(255), + 3431: uint8(255), + 3432: uint8(255), + 3433: uint8(255), + 3434: uint8(255), + 3435: uint8(255), + 3436: uint8(255), + 3437: uint8(255), + 3438: uint8(255), + 3439: uint8(255), + 3440: uint8(255), + 3441: uint8(255), + 3442: uint8(255), + 3443: uint8(255), + 3444: uint8(255), + 3445: uint8(255), + 3446: uint8(255), + 3447: uint8(255), + 3448: uint8(255), + 3449: uint8(255), + 3450: uint8(255), + 3451: uint8(255), + 3452: uint8(255), + 3453: uint8(255), + 3454: uint8(7), + 3456: uint8(255), + 3457: uint8(255), + 3458: uint8(255), + 3459: uint8(127), + 3466: uint8(7), + 3468: uint8(240), + 3470: uint8(255), + 3471: uint8(255), + 3472: uint8(255), + 3473: uint8(255), + 3474: uint8(255), + 3475: uint8(255), + 3476: uint8(255), + 3477: uint8(255), + 3478: uint8(255), + 3479: uint8(255), + 3480: uint8(255), + 3481: uint8(255), + 3482: uint8(255), + 3483: uint8(255), + 3484: uint8(255), + 3485: uint8(255), + 3486: uint8(255), + 3487: uint8(255), + 3488: uint8(255), + 3489: uint8(255), + 3490: uint8(255), + 3491: uint8(255), + 3492: uint8(255), + 3493: uint8(255), + 3494: uint8(255), + 3495: uint8(255), + 3496: uint8(255), + 3497: uint8(255), + 3498: uint8(255), + 3499: uint8(255), + 3500: uint8(255), + 3501: uint8(255), + 3502: uint8(255), + 3503: uint8(255), + 3504: uint8(255), + 3505: uint8(255), + 3506: uint8(255), + 3507: uint8(255), + 3508: uint8(255), + 3509: uint8(255), + 3510: uint8(255), + 3511: uint8(255), + 3512: uint8(255), + 3513: uint8(255), + 3514: uint8(255), + 3515: uint8(255), + 3516: uint8(255), + 3517: uint8(255), + 3518: uint8(255), + 3519: uint8(15), + 3520: uint8(255), + 3521: uint8(255), + 3522: uint8(255), + 3523: uint8(255), + 3524: uint8(255), + 3525: uint8(255), + 3526: uint8(255), + 3527: uint8(255), + 3528: uint8(255), + 3529: uint8(255), + 3530: uint8(255), + 3531: uint8(255), + 3532: uint8(255), + 3533: uint8(7), + 3534: uint8(255), + 3535: uint8(31), + 3536: uint8(255), + 3537: uint8(1), + 3538: uint8(255), + 3539: uint8(67), + 3552: uint8(255), + 3553: uint8(255), + 3554: uint8(255), + 3555: uint8(255), + 3556: uint8(255), + 3557: uint8(255), + 3558: uint8(255), + 3559: uint8(255), + 3560: uint8(255), + 3561: uint8(255), + 3562: uint8(223), + 3563: uint8(255), + 3564: uint8(255), + 3565: uint8(255), + 3566: uint8(255), + 3567: uint8(255), + 3568: uint8(255), + 3569: uint8(255), + 3570: uint8(255), + 3571: uint8(223), + 3572: uint8(100), + 3573: uint8(222), + 3574: uint8(255), + 3575: uint8(235), + 3576: uint8(239), + 3577: uint8(255), + 3578: uint8(255), + 3579: uint8(255), + 3580: uint8(255), + 3581: uint8(255), + 3582: uint8(255), + 3583: uint8(255), + 3584: uint8(191), + 3585: uint8(231), + 3586: uint8(223), + 3587: uint8(223), + 3588: uint8(255), + 3589: uint8(255), + 3590: uint8(255), + 3591: uint8(123), + 3592: uint8(95), + 3593: uint8(252), + 3594: uint8(253), + 3595: uint8(255), + 3596: uint8(255), + 3597: uint8(255), + 3598: uint8(255), + 3599: uint8(255), + 3600: uint8(255), + 3601: uint8(255), + 3602: uint8(255), + 3603: uint8(255), + 3604: uint8(255), + 3605: uint8(255), + 3606: uint8(255), + 3607: uint8(255), + 3608: uint8(255), + 3609: uint8(255), + 3610: uint8(255), + 3611: uint8(255), + 3612: uint8(255), + 3613: uint8(255), + 3614: uint8(255), + 3615: uint8(255), + 3616: uint8(255), + 3617: uint8(255), + 3618: uint8(255), + 3619: uint8(255), + 3620: uint8(255), + 3621: uint8(255), + 3622: uint8(255), + 3623: uint8(255), + 3624: uint8(255), + 3625: uint8(255), + 3626: uint8(255), + 3627: uint8(255), + 3628: uint8(255), + 3629: uint8(255), + 3630: uint8(255), + 3631: uint8(255), + 3632: uint8(255), + 3633: uint8(255), + 3634: uint8(255), + 3635: uint8(255), + 3636: uint8(63), + 3637: uint8(255), + 3638: uint8(255), + 3639: uint8(255), + 3640: uint8(253), + 3641: uint8(255), + 3642: uint8(255), + 3643: uint8(247), + 3644: uint8(255), + 3645: uint8(255), + 3646: uint8(255), + 3647: uint8(247), + 3648: uint8(255), + 3649: uint8(255), + 3650: uint8(223), + 3651: uint8(255), + 3652: uint8(255), + 3653: uint8(255), + 3654: uint8(223), + 3655: uint8(255), + 3656: uint8(255), + 3657: uint8(127), + 3658: uint8(255), + 3659: uint8(255), + 3660: uint8(255), + 3661: uint8(127), + 3662: uint8(255), + 3663: uint8(255), + 3664: uint8(255), + 3665: uint8(253), + 3666: uint8(255), + 3667: uint8(255), + 3668: uint8(255), + 3669: uint8(253), + 3670: uint8(255), + 3671: uint8(255), + 3672: uint8(247), + 3673: uint8(207), + 3674: uint8(255), + 3675: uint8(255), + 3676: uint8(255), + 3677: uint8(255), + 3678: uint8(255), + 3679: uint8(255), + 3680: uint8(127), + 3681: uint8(255), + 3682: uint8(255), + 3683: uint8(249), + 3684: uint8(219), + 3685: uint8(7), + 3712: uint8(255), + 3713: uint8(255), + 3714: uint8(255), + 3715: uint8(255), + 3716: uint8(255), + 3717: uint8(31), + 3718: uint8(128), + 3719: uint8(63), + 3720: uint8(255), + 3721: uint8(67), + 3768: uint8(255), + 3769: uint8(255), + 3770: uint8(255), + 3771: uint8(255), + 3772: uint8(255), + 3773: uint8(15), + 3774: uint8(255), + 3775: uint8(3), + 3776: uint8(255), + 3777: uint8(255), + 3778: uint8(255), + 3779: uint8(255), + 3780: uint8(255), + 3781: uint8(255), + 3782: uint8(255), + 3783: uint8(255), + 3784: uint8(255), + 3785: uint8(255), + 3786: uint8(255), + 3787: uint8(255), + 3788: uint8(255), + 3789: uint8(255), + 3790: uint8(255), + 3791: uint8(255), + 3792: uint8(255), + 3793: uint8(255), + 3794: uint8(255), + 3795: uint8(255), + 3796: uint8(255), + 3797: uint8(255), + 3798: uint8(255), + 3799: uint8(255), + 3800: uint8(31), + 3808: uint8(255), + 3809: uint8(255), + 3810: uint8(255), + 3811: uint8(255), + 3812: uint8(255), + 3813: uint8(255), + 3814: uint8(255), + 3815: uint8(255), + 3816: uint8(143), + 3817: uint8(8), + 3818: uint8(255), + 3819: uint8(3), + 3840: uint8(239), + 3841: uint8(255), + 3842: uint8(255), + 3843: uint8(255), + 3844: uint8(150), + 3845: uint8(254), + 3846: uint8(247), + 3847: uint8(10), + 3848: uint8(132), + 3849: uint8(234), + 3850: uint8(150), + 3851: uint8(170), + 3852: uint8(150), + 3853: uint8(247), + 3854: uint8(247), + 3855: uint8(94), + 3856: uint8(255), + 3857: uint8(251), + 3858: uint8(255), + 3859: uint8(15), + 3860: uint8(238), + 3861: uint8(251), + 3862: uint8(255), + 3863: uint8(15), + 3878: uint8(255), + 3879: uint8(255), + 3880: uint8(255), + 3881: uint8(3), + 3882: uint8(255), + 3883: uint8(255), + 3884: uint8(255), + 3885: uint8(3), + 3886: uint8(255), + 3887: uint8(255), + 3888: uint8(255), + 3889: uint8(3), +} + +func Xiswalpha(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + if wc < uint32(0x20000) { + return Int32FromUint8(_table3[Uint32FromInt32(Int32FromUint8(_table3[wc>>int32(8)])*int32(32))+wc&uint32(255)>>int32(3)]) >> (wc & uint32(7)) & int32(1) + } + if wc < uint32(0x2fffe) { + return int32(1) + } + return 0 +} + +func X__iswalpha_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswalpha(tls, c) +} + +func Xiswalpha_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswalpha_l(tls, c, l) +} + +func Xiswblank(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xisblank(tls, Int32FromUint32(wc)) +} + +func X__iswblank_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswblank(tls, c) +} + +func Xiswblank_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswblank_l(tls, c, l) +} + +func Xiswcntrl(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(wc < uint32(32) || wc-Uint32FromInt32(0x7f) < uint32(33) || wc-Uint32FromInt32(0x2028) < uint32(2) || wc-Uint32FromInt32(0xfff9) < uint32(3)) +} + +func X__iswcntrl_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswcntrl(tls, c) +} + +func Xiswcntrl_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswcntrl_l(tls, c, l) +} + +const WCTYPE_ALNUM = 1 +const WCTYPE_ALPHA = 2 +const WCTYPE_BLANK = 3 +const WCTYPE_CNTRL = 4 +const WCTYPE_DIGIT = 5 +const WCTYPE_GRAPH = 6 +const WCTYPE_LOWER = 7 +const WCTYPE_PRINT = 8 +const WCTYPE_PUNCT = 9 +const WCTYPE_SPACE = 10 +const WCTYPE_UPPER = 11 +const WCTYPE_XDIGIT = 12 + +func Xiswctype(tls *TLS, wc Twint_t, type1 Twctype_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v type1=%v, (%v:)", tls, wc, type1, origin(2)) + defer func() { trc("-> %v", r) }() + } + switch type1 { + case uint64(WCTYPE_ALNUM): + return Xiswalnum(tls, wc) + case uint64(WCTYPE_ALPHA): + return Xiswalpha(tls, wc) + case uint64(WCTYPE_BLANK): + return Xiswblank(tls, wc) + case uint64(WCTYPE_CNTRL): + return Xiswcntrl(tls, wc) + case uint64(WCTYPE_DIGIT): + return BoolInt32(wc-uint32('0') < uint32(10)) + case uint64(WCTYPE_GRAPH): + return Xiswgraph(tls, wc) + case uint64(WCTYPE_LOWER): + return Xiswlower(tls, wc) + case uint64(WCTYPE_PRINT): + return Xiswprint(tls, wc) + case uint64(WCTYPE_PUNCT): + return Xiswpunct(tls, wc) + case uint64(WCTYPE_SPACE): + return Xiswspace(tls, wc) + case uint64(WCTYPE_UPPER): + return Xiswupper(tls, wc) + case uint64(WCTYPE_XDIGIT): + return Xiswxdigit(tls, wc) + } + return 0 +} + +func Xwctype(tls *TLS, s uintptr) (r Twctype_t) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var i int32 + var p uintptr + _, _ = i, p + i = int32(1) + p = uintptr(unsafe.Pointer(&_names)) + for { + if !(**(**int8)(__ccgo_up(p)) != 0) { + break + } + if int32(**(**int8)(__ccgo_up(s))) == int32(**(**int8)(__ccgo_up(p))) && !(Xstrcmp(tls, s, p) != 0) { + return Uint64FromInt32(i) + } + goto _1 + _1: + ; + i = i + 1 + p = p + uintptr(6) + } + return uint64(0) +} + +/* order must match! */ +var _names = [73]int8{'a', 'l', 'n', 'u', 'm', 0, 'a', 'l', 'p', 'h', 'a', 0, 'b', 'l', 'a', 'n', 'k', 0, 'c', 'n', 't', 'r', 'l', 0, 'd', 'i', 'g', 'i', 't', 0, 'g', 'r', 'a', 'p', 'h', 0, 'l', 'o', 'w', 'e', 'r', 0, 'p', 'r', 'i', 'n', 't', 0, 'p', 'u', 'n', 'c', 't', 0, 's', 'p', 'a', 'c', 'e', 0, 'u', 'p', 'p', 'e', 'r', 0, 'x', 'd', 'i', 'g', 'i', 't'} + +func X__iswctype_l(tls *TLS, c Twint_t, t Twctype_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v t=%v l=%v, (%v:)", tls, c, t, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswctype(tls, c, t) +} + +func X__wctype_l(tls *TLS, s uintptr, l Tlocale_t) (r Twctype_t) { + if __ccgo_strace { + trc("tls=%v s=%v l=%v, (%v:)", tls, s, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwctype(tls, s) +} + +func Xiswctype_l(tls *TLS, c Twint_t, t Twctype_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v t=%v l=%v, (%v:)", tls, c, t, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswctype_l(tls, c, t, l) +} + +func Xwctype_l(tls *TLS, s uintptr, l Tlocale_t) (r Twctype_t) { + if __ccgo_strace { + trc("tls=%v s=%v l=%v, (%v:)", tls, s, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__wctype_l(tls, s, l) +} + +func Xiswdigit(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(wc-uint32('0') < uint32(10)) +} + +func X__iswdigit_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswdigit(tls, c) +} + +func Xiswdigit_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswdigit_l(tls, c, l) +} + +func Xiswgraph(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + /* ISO C defines this function as: */ + return BoolInt32(!(Xiswspace(tls, wc) != 0) && Xiswprint(tls, wc) != 0) +} + +func X__iswgraph_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswgraph(tls, c) +} + +func Xiswgraph_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswgraph_l(tls, c, l) +} + +func Xiswlower(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(Xtowupper(tls, wc) != wc) +} + +func X__iswlower_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswlower(tls, c) +} + +func Xiswlower_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswlower_l(tls, c, l) +} + +/* Consider all legal codepoints as printable except for: + * - C0 and C1 control characters + * - U+2028 and U+2029 (line/para break) + * - U+FFF9 through U+FFFB (interlinear annotation controls) + * The following code is optimized heavily to make hot paths for the + * expected printable characters. */ + +func Xiswprint(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + if wc < uint32(0xff) { + return BoolInt32((wc+uint32(1))&uint32(0x7f) >= uint32(0x21)) + } + if wc < uint32(0x2028) || wc-uint32(0x202a) < Uint32FromInt32(Int32FromInt32(0xd800)-Int32FromInt32(0x202a)) || wc-uint32(0xe000) < Uint32FromInt32(Int32FromInt32(0xfff9)-Int32FromInt32(0xe000)) { + return int32(1) + } + if wc-uint32(0xfffc) > Uint32FromInt32(Int32FromInt32(0x10ffff)-Int32FromInt32(0xfffc)) || wc&uint32(0xfffe) == uint32(0xfffe) { + return 0 + } + return int32(1) +} + +func X__iswprint_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswprint(tls, c) +} + +func Xiswprint_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswprint_l(tls, c, l) +} + +var _table4 = [4000]uint8{ + 0: uint8(18), + 1: uint8(16), + 2: uint8(19), + 3: uint8(20), + 4: uint8(21), + 5: uint8(22), + 6: uint8(23), + 7: uint8(24), + 8: uint8(25), + 9: uint8(26), + 10: uint8(27), + 11: uint8(28), + 12: uint8(29), + 13: uint8(30), + 14: uint8(31), + 15: uint8(32), + 16: uint8(33), + 17: uint8(16), + 18: uint8(16), + 19: uint8(34), + 20: uint8(35), + 21: uint8(16), + 22: uint8(36), + 23: uint8(37), + 24: uint8(38), + 25: uint8(39), + 26: uint8(40), + 27: uint8(41), + 28: uint8(42), + 29: uint8(43), + 30: uint8(16), + 31: uint8(44), + 32: uint8(45), + 33: uint8(46), + 34: uint8(17), + 35: uint8(17), + 36: uint8(47), + 37: uint8(17), + 38: uint8(17), + 39: uint8(17), + 40: uint8(17), + 41: uint8(17), + 42: uint8(17), + 43: uint8(48), + 44: uint8(49), + 45: uint8(50), + 46: uint8(51), + 47: uint8(52), + 48: uint8(53), + 49: uint8(54), + 50: uint8(55), + 51: uint8(17), + 52: uint8(16), + 53: uint8(16), + 54: uint8(16), + 55: uint8(16), + 56: uint8(16), + 57: uint8(16), + 58: uint8(16), + 59: uint8(16), + 60: uint8(16), + 61: uint8(16), + 62: uint8(16), + 63: uint8(16), + 64: uint8(16), + 65: uint8(16), + 66: uint8(16), + 67: uint8(16), + 68: uint8(16), + 69: uint8(16), + 70: uint8(16), + 71: uint8(16), + 72: uint8(16), + 73: uint8(16), + 74: uint8(16), + 75: uint8(16), + 76: uint8(16), + 77: uint8(56), + 78: uint8(16), + 79: uint8(16), + 80: uint8(16), + 81: uint8(16), + 82: uint8(16), + 83: uint8(16), + 84: uint8(16), + 85: uint8(16), + 86: uint8(16), + 87: uint8(16), + 88: uint8(16), + 89: uint8(16), + 90: uint8(16), + 91: uint8(16), + 92: uint8(16), + 93: uint8(16), + 94: uint8(16), + 95: uint8(16), + 96: uint8(16), + 97: uint8(16), + 98: uint8(16), + 99: uint8(16), + 100: uint8(16), + 101: uint8(16), + 102: uint8(16), + 103: uint8(16), + 104: uint8(16), + 105: uint8(16), + 106: uint8(16), + 107: uint8(16), + 108: uint8(16), + 109: uint8(16), + 110: uint8(16), + 111: uint8(16), + 112: uint8(16), + 113: uint8(16), + 114: uint8(16), + 115: uint8(16), + 116: uint8(16), + 117: uint8(16), + 118: uint8(16), + 119: uint8(16), + 120: uint8(16), + 121: uint8(16), + 122: uint8(16), + 123: uint8(16), + 124: uint8(16), + 125: uint8(16), + 126: uint8(16), + 127: uint8(16), + 128: uint8(16), + 129: uint8(16), + 130: uint8(16), + 131: uint8(16), + 132: uint8(16), + 133: uint8(16), + 134: uint8(16), + 135: uint8(16), + 136: uint8(16), + 137: uint8(16), + 138: uint8(16), + 139: uint8(16), + 140: uint8(16), + 141: uint8(16), + 142: uint8(16), + 143: uint8(16), + 144: uint8(16), + 145: uint8(16), + 146: uint8(16), + 147: uint8(16), + 148: uint8(16), + 149: uint8(16), + 150: uint8(16), + 151: uint8(16), + 152: uint8(16), + 153: uint8(16), + 154: uint8(16), + 155: uint8(16), + 156: uint8(16), + 157: uint8(16), + 158: uint8(16), + 159: uint8(16), + 160: uint8(16), + 161: uint8(16), + 162: uint8(16), + 163: uint8(16), + 164: uint8(57), + 165: uint8(16), + 166: uint8(58), + 167: uint8(59), + 168: uint8(60), + 169: uint8(61), + 170: uint8(62), + 171: uint8(63), + 172: uint8(16), + 173: uint8(16), + 174: uint8(16), + 175: uint8(16), + 176: uint8(16), + 177: uint8(16), + 178: uint8(16), + 179: uint8(16), + 180: uint8(16), + 181: uint8(16), + 182: uint8(16), + 183: uint8(16), + 184: uint8(16), + 185: uint8(16), + 186: uint8(16), + 187: uint8(16), + 188: uint8(16), + 189: uint8(16), + 190: uint8(16), + 191: uint8(16), + 192: uint8(16), + 193: uint8(16), + 194: uint8(16), + 195: uint8(16), + 196: uint8(16), + 197: uint8(16), + 198: uint8(16), + 199: uint8(16), + 200: uint8(16), + 201: uint8(16), + 202: uint8(16), + 203: uint8(16), + 204: uint8(16), + 205: uint8(16), + 206: uint8(16), + 207: uint8(16), + 208: uint8(16), + 209: uint8(16), + 210: uint8(16), + 211: uint8(16), + 212: uint8(16), + 213: uint8(16), + 214: uint8(16), + 215: uint8(16), + 216: uint8(16), + 217: uint8(16), + 218: uint8(16), + 219: uint8(16), + 220: uint8(16), + 221: uint8(16), + 222: uint8(16), + 223: uint8(16), + 224: uint8(64), + 225: uint8(16), + 226: uint8(16), + 227: uint8(16), + 228: uint8(16), + 229: uint8(16), + 230: uint8(16), + 231: uint8(16), + 232: uint8(16), + 233: uint8(16), + 234: uint8(16), + 235: uint8(16), + 236: uint8(16), + 237: uint8(16), + 238: uint8(16), + 239: uint8(16), + 240: uint8(16), + 241: uint8(16), + 242: uint8(16), + 243: uint8(16), + 244: uint8(16), + 245: uint8(16), + 246: uint8(16), + 247: uint8(16), + 248: uint8(65), + 249: uint8(16), + 250: uint8(16), + 251: uint8(66), + 252: uint8(16), + 253: uint8(67), + 254: uint8(68), + 255: uint8(69), + 256: uint8(16), + 257: uint8(70), + 258: uint8(71), + 259: uint8(72), + 260: uint8(16), + 261: uint8(73), + 262: uint8(16), + 263: uint8(16), + 264: uint8(74), + 265: uint8(75), + 266: uint8(76), + 267: uint8(77), + 268: uint8(78), + 269: uint8(16), + 270: uint8(79), + 271: uint8(80), + 272: uint8(81), + 273: uint8(82), + 274: uint8(83), + 275: uint8(84), + 276: uint8(85), + 277: uint8(86), + 278: uint8(87), + 279: uint8(88), + 280: uint8(89), + 281: uint8(90), + 282: uint8(91), + 283: uint8(16), + 284: uint8(92), + 285: uint8(93), + 286: uint8(94), + 287: uint8(95), + 288: uint8(16), + 289: uint8(16), + 290: uint8(16), + 291: uint8(16), + 292: uint8(96), + 293: uint8(16), + 294: uint8(16), + 295: uint8(16), + 296: uint8(16), + 297: uint8(16), + 298: uint8(16), + 299: uint8(16), + 300: uint8(16), + 301: uint8(16), + 302: uint8(16), + 303: uint8(16), + 304: uint8(16), + 305: uint8(16), + 306: uint8(16), + 307: uint8(16), + 308: uint8(97), + 309: uint8(16), + 310: uint8(16), + 311: uint8(16), + 312: uint8(16), + 313: uint8(16), + 314: uint8(16), + 315: uint8(16), + 316: uint8(16), + 317: uint8(16), + 318: uint8(16), + 319: uint8(16), + 320: uint8(16), + 321: uint8(16), + 322: uint8(16), + 323: uint8(16), + 324: uint8(16), + 325: uint8(16), + 326: uint8(16), + 327: uint8(16), + 328: uint8(16), + 329: uint8(16), + 330: uint8(16), + 331: uint8(16), + 332: uint8(16), + 333: uint8(16), + 334: uint8(16), + 335: uint8(16), + 336: uint8(16), + 337: uint8(16), + 338: uint8(16), + 339: uint8(16), + 340: uint8(16), + 341: uint8(16), + 342: uint8(16), + 343: uint8(16), + 344: uint8(16), + 345: uint8(16), + 346: uint8(16), + 347: uint8(16), + 348: uint8(16), + 349: uint8(16), + 350: uint8(16), + 351: uint8(16), + 352: uint8(16), + 353: uint8(16), + 354: uint8(16), + 355: uint8(16), + 356: uint8(16), + 357: uint8(16), + 358: uint8(16), + 359: uint8(16), + 360: uint8(16), + 361: uint8(16), + 362: uint8(98), + 363: uint8(99), + 364: uint8(16), + 365: uint8(16), + 366: uint8(100), + 367: uint8(101), + 368: uint8(16), + 369: uint8(16), + 370: uint8(16), + 371: uint8(16), + 372: uint8(16), + 373: uint8(16), + 374: uint8(16), + 375: uint8(16), + 376: uint8(16), + 377: uint8(16), + 378: uint8(16), + 379: uint8(16), + 380: uint8(16), + 381: uint8(16), + 382: uint8(16), + 383: uint8(16), + 384: uint8(16), + 385: uint8(16), + 386: uint8(16), + 387: uint8(16), + 388: uint8(16), + 389: uint8(16), + 390: uint8(16), + 391: uint8(16), + 392: uint8(16), + 393: uint8(16), + 394: uint8(16), + 395: uint8(16), + 396: uint8(16), + 397: uint8(16), + 398: uint8(16), + 399: uint8(16), + 400: uint8(16), + 401: uint8(16), + 402: uint8(16), + 403: uint8(16), + 404: uint8(16), + 405: uint8(16), + 406: uint8(16), + 407: uint8(16), + 408: uint8(16), + 409: uint8(16), + 410: uint8(16), + 411: uint8(16), + 412: uint8(16), + 413: uint8(16), + 414: uint8(16), + 415: uint8(16), + 416: uint8(16), + 417: uint8(16), + 418: uint8(16), + 419: uint8(16), + 420: uint8(16), + 421: uint8(16), + 422: uint8(16), + 423: uint8(16), + 424: uint8(16), + 425: uint8(16), + 426: uint8(16), + 427: uint8(16), + 428: uint8(16), + 429: uint8(16), + 430: uint8(16), + 431: uint8(16), + 432: uint8(16), + 433: uint8(16), + 434: uint8(16), + 435: uint8(16), + 436: uint8(16), + 437: uint8(16), + 438: uint8(16), + 439: uint8(16), + 440: uint8(16), + 441: uint8(16), + 442: uint8(16), + 443: uint8(16), + 444: uint8(102), + 445: uint8(16), + 446: uint8(16), + 447: uint8(16), + 448: uint8(16), + 449: uint8(16), + 450: uint8(16), + 451: uint8(16), + 452: uint8(16), + 453: uint8(16), + 454: uint8(16), + 455: uint8(16), + 456: uint8(16), + 457: uint8(16), + 458: uint8(16), + 459: uint8(16), + 460: uint8(16), + 461: uint8(16), + 462: uint8(16), + 463: uint8(16), + 464: uint8(103), + 465: uint8(104), + 466: uint8(105), + 467: uint8(106), + 468: uint8(16), + 469: uint8(16), + 470: uint8(107), + 471: uint8(108), + 472: uint8(17), + 473: uint8(17), + 474: uint8(109), + 475: uint8(16), + 476: uint8(16), + 477: uint8(16), + 478: uint8(16), + 479: uint8(16), + 480: uint8(16), + 481: uint8(110), + 482: uint8(111), + 483: uint8(16), + 484: uint8(16), + 485: uint8(16), + 486: uint8(16), + 487: uint8(16), + 488: uint8(112), + 489: uint8(113), + 490: uint8(16), + 491: uint8(16), + 492: uint8(114), + 493: uint8(115), + 494: uint8(116), + 495: uint8(16), + 496: uint8(117), + 497: uint8(118), + 498: uint8(119), + 499: uint8(17), + 500: uint8(17), + 501: uint8(17), + 502: uint8(120), + 503: uint8(121), + 504: uint8(122), + 505: uint8(123), + 506: uint8(124), + 507: uint8(16), + 508: uint8(16), + 509: uint8(16), + 510: uint8(16), + 511: uint8(16), + 544: uint8(255), + 545: uint8(255), + 546: uint8(255), + 547: uint8(255), + 548: uint8(255), + 549: uint8(255), + 550: uint8(255), + 551: uint8(255), + 552: uint8(255), + 553: uint8(255), + 554: uint8(255), + 555: uint8(255), + 556: uint8(255), + 557: uint8(255), + 558: uint8(255), + 559: uint8(255), + 560: uint8(255), + 561: uint8(255), + 562: uint8(255), + 563: uint8(255), + 564: uint8(255), + 565: uint8(255), + 566: uint8(255), + 567: uint8(255), + 568: uint8(255), + 569: uint8(255), + 570: uint8(255), + 571: uint8(255), + 572: uint8(255), + 573: uint8(255), + 574: uint8(255), + 575: uint8(255), + 580: uint8(254), + 581: uint8(255), + 583: uint8(252), + 584: uint8(1), + 587: uint8(248), + 588: uint8(1), + 591: uint8(120), + 596: uint8(255), + 597: uint8(251), + 598: uint8(223), + 599: uint8(251), + 602: uint8(128), + 606: uint8(128), + 632: uint8(60), + 634: uint8(252), + 635: uint8(255), + 636: uint8(224), + 637: uint8(175), + 638: uint8(255), + 639: uint8(255), + 640: uint8(255), + 641: uint8(255), + 642: uint8(255), + 643: uint8(255), + 644: uint8(255), + 645: uint8(255), + 646: uint8(255), + 647: uint8(255), + 648: uint8(223), + 649: uint8(255), + 650: uint8(255), + 651: uint8(255), + 652: uint8(255), + 653: uint8(255), + 654: uint8(32), + 655: uint8(64), + 656: uint8(176), + 670: uint8(64), + 688: uint8(252), + 689: uint8(3), + 715: uint8(252), + 721: uint8(230), + 722: uint8(254), + 723: uint8(255), + 724: uint8(255), + 725: uint8(255), + 727: uint8(64), + 728: uint8(73), + 734: uint8(24), + 736: uint8(255), + 737: uint8(255), + 739: uint8(216), + 747: uint8(1), + 749: uint8(60), + 762: uint8(16), + 763: uint8(224), + 764: uint8(1), + 765: uint8(30), + 767: uint8(96), + 768: uint8(255), + 769: uint8(191), + 776: uint8(255), + 777: uint8(7), + 797: uint8(248), + 798: uint8(207), + 799: uint8(227), + 803: uint8(3), + 805: uint8(32), + 806: uint8(255), + 807: uint8(127), + 811: uint8(78), + 826: uint8(8), + 828: uint8(7), + 829: uint8(252), + 839: uint8(16), + 841: uint8(32), + 842: uint8(30), + 844: uint8(48), + 846: uint8(1), + 855: uint8(16), + 857: uint8(32), + 862: uint8(252), + 863: uint8(111), + 871: uint8(16), + 873: uint8(32), + 878: uint8(64), + 887: uint8(16), + 889: uint8(32), + 894: uint8(3), + 895: uint8(224), + 903: uint8(16), + 905: uint8(32), + 910: uint8(253), + 921: uint8(32), + 926: uint8(255), + 927: uint8(7), + 928: uint8(16), + 937: uint8(32), + 942: uint8(128), + 943: uint8(255), + 944: uint8(16), + 951: uint8(16), + 953: uint8(32), + 967: uint8(24), + 969: uint8(160), + 971: uint8(127), + 974: uint8(255), + 975: uint8(3), + 985: uint8(4), + 990: uint8(16), + 997: uint8(128), + 999: uint8(128), + 1000: uint8(192), + 1001: uint8(223), + 1003: uint8(12), + 1015: uint8(4), + 1017: uint8(31), + 1024: uint8(254), + 1025: uint8(255), + 1026: uint8(255), + 1027: uint8(255), + 1029: uint8(252), + 1030: uint8(255), + 1031: uint8(255), + 1040: uint8(252), + 1047: uint8(192), + 1048: uint8(255), + 1049: uint8(223), + 1050: uint8(255), + 1051: uint8(7), + 1062: uint8(128), + 1063: uint8(6), + 1065: uint8(252), + 1075: uint8(192), + 1087: uint8(8), + 1099: uint8(224), + 1100: uint8(255), + 1101: uint8(255), + 1102: uint8(255), + 1103: uint8(31), + 1106: uint8(255), + 1107: uint8(3), + 1120: uint8(1), + 1165: uint8(96), + 1168: uint8(1), + 1171: uint8(24), + 1181: uint8(56), + 1186: uint8(16), + 1190: uint8(112), + 1206: uint8(48), + 1209: uint8(254), + 1210: uint8(127), + 1211: uint8(47), + 1214: uint8(255), + 1215: uint8(3), + 1216: uint8(255), + 1217: uint8(127), + 1255: uint8(14), + 1256: uint8(49), + 1275: uint8(196), + 1276: uint8(255), + 1277: uint8(255), + 1278: uint8(255), + 1279: uint8(255), + 1283: uint8(192), + 1292: uint8(1), + 1294: uint8(224), + 1295: uint8(159), + 1300: uint8(127), + 1301: uint8(63), + 1302: uint8(255), + 1303: uint8(127), + 1318: uint8(16), + 1320: uint8(16), + 1323: uint8(252), + 1324: uint8(255), + 1325: uint8(255), + 1326: uint8(255), + 1327: uint8(31), + 1333: uint8(12), + 1340: uint8(64), + 1342: uint8(12), + 1343: uint8(240), + 1350: uint8(128), + 1351: uint8(248), + 1359: uint8(192), + 1368: uint8(255), + 1370: uint8(255), + 1371: uint8(255), + 1372: uint8(255), + 1373: uint8(33), + 1374: uint8(144), + 1375: uint8(3), + 1400: uint8(255), + 1401: uint8(255), + 1402: uint8(255), + 1403: uint8(255), + 1404: uint8(127), + 1406: uint8(224), + 1407: uint8(251), + 1431: uint8(160), + 1432: uint8(3), + 1433: uint8(224), + 1435: uint8(224), + 1437: uint8(224), + 1439: uint8(96), + 1440: uint8(128), + 1441: uint8(248), + 1442: uint8(255), + 1443: uint8(255), + 1444: uint8(255), + 1445: uint8(252), + 1446: uint8(255), + 1447: uint8(255), + 1448: uint8(255), + 1449: uint8(255), + 1450: uint8(255), + 1451: uint8(127), + 1452: uint8(223), + 1453: uint8(255), + 1454: uint8(241), + 1455: uint8(127), + 1456: uint8(255), + 1457: uint8(127), + 1460: uint8(255), + 1461: uint8(255), + 1462: uint8(255), + 1463: uint8(255), + 1466: uint8(255), + 1467: uint8(255), + 1468: uint8(255), + 1469: uint8(255), + 1470: uint8(1), + 1472: uint8(123), + 1473: uint8(3), + 1474: uint8(208), + 1475: uint8(193), + 1476: uint8(175), + 1477: uint8(66), + 1479: uint8(12), + 1480: uint8(31), + 1481: uint8(188), + 1482: uint8(255), + 1483: uint8(255), + 1489: uint8(14), + 1490: uint8(255), + 1491: uint8(255), + 1492: uint8(255), + 1493: uint8(255), + 1494: uint8(255), + 1495: uint8(255), + 1496: uint8(255), + 1497: uint8(255), + 1498: uint8(255), + 1499: uint8(255), + 1500: uint8(255), + 1501: uint8(255), + 1502: uint8(255), + 1503: uint8(255), + 1504: uint8(255), + 1505: uint8(255), + 1506: uint8(255), + 1507: uint8(255), + 1508: uint8(127), + 1512: uint8(255), + 1513: uint8(7), + 1516: uint8(255), + 1517: uint8(255), + 1518: uint8(255), + 1519: uint8(255), + 1520: uint8(255), + 1521: uint8(255), + 1522: uint8(255), + 1523: uint8(255), + 1524: uint8(255), + 1525: uint8(255), + 1526: uint8(63), + 1533: uint8(252), + 1534: uint8(255), + 1535: uint8(255), + 1536: uint8(255), + 1537: uint8(255), + 1538: uint8(255), + 1539: uint8(255), + 1540: uint8(255), + 1541: uint8(255), + 1542: uint8(255), + 1543: uint8(255), + 1544: uint8(255), + 1545: uint8(255), + 1546: uint8(255), + 1547: uint8(255), + 1548: uint8(255), + 1549: uint8(255), + 1550: uint8(207), + 1551: uint8(255), + 1552: uint8(255), + 1553: uint8(255), + 1554: uint8(63), + 1555: uint8(255), + 1556: uint8(255), + 1557: uint8(255), + 1558: uint8(255), + 1559: uint8(255), + 1560: uint8(255), + 1561: uint8(255), + 1562: uint8(255), + 1563: uint8(255), + 1564: uint8(255), + 1565: uint8(255), + 1566: uint8(255), + 1567: uint8(255), + 1596: uint8(224), + 1597: uint8(135), + 1598: uint8(3), + 1599: uint8(254), + 1614: uint8(1), + 1615: uint8(128), + 1632: uint8(255), + 1633: uint8(255), + 1634: uint8(255), + 1635: uint8(255), + 1636: uint8(255), + 1637: uint8(127), + 1638: uint8(255), + 1639: uint8(255), + 1640: uint8(255), + 1641: uint8(255), + 1648: uint8(255), + 1649: uint8(255), + 1650: uint8(255), + 1651: uint8(251), + 1652: uint8(255), + 1653: uint8(255), + 1654: uint8(255), + 1655: uint8(255), + 1656: uint8(255), + 1657: uint8(255), + 1658: uint8(255), + 1659: uint8(255), + 1660: uint8(255), + 1661: uint8(255), + 1662: uint8(15), + 1664: uint8(255), + 1665: uint8(255), + 1666: uint8(255), + 1667: uint8(255), + 1668: uint8(255), + 1669: uint8(255), + 1670: uint8(255), + 1671: uint8(255), + 1672: uint8(255), + 1673: uint8(255), + 1674: uint8(255), + 1675: uint8(255), + 1676: uint8(255), + 1677: uint8(255), + 1678: uint8(255), + 1679: uint8(255), + 1680: uint8(255), + 1681: uint8(255), + 1682: uint8(255), + 1683: uint8(255), + 1684: uint8(255), + 1685: uint8(255), + 1686: uint8(255), + 1687: uint8(255), + 1688: uint8(255), + 1689: uint8(255), + 1690: uint8(63), + 1694: uint8(255), + 1695: uint8(15), + 1696: uint8(30), + 1697: uint8(255), + 1698: uint8(255), + 1699: uint8(255), + 1700: uint8(1), + 1701: uint8(252), + 1702: uint8(193), + 1703: uint8(224), + 1715: uint8(30), + 1716: uint8(1), + 1727: uint8(8), + 1746: uint8(255), + 1747: uint8(255), + 1752: uint8(255), + 1753: uint8(255), + 1754: uint8(255), + 1755: uint8(255), + 1756: uint8(15), + 1760: uint8(255), + 1761: uint8(255), + 1762: uint8(255), + 1763: uint8(127), + 1764: uint8(255), + 1765: uint8(255), + 1766: uint8(255), + 1767: uint8(255), + 1768: uint8(255), + 1769: uint8(255), + 1770: uint8(255), + 1771: uint8(255), + 1772: uint8(255), + 1773: uint8(255), + 1774: uint8(255), + 1775: uint8(255), + 1776: uint8(255), + 1777: uint8(255), + 1778: uint8(255), + 1779: uint8(255), + 1780: uint8(255), + 1781: uint8(255), + 1782: uint8(255), + 1783: uint8(255), + 1784: uint8(255), + 1785: uint8(255), + 1786: uint8(255), + 1787: uint8(255), + 1788: uint8(255), + 1789: uint8(255), + 1790: uint8(255), + 1791: uint8(255), + 1816: uint8(255), + 1817: uint8(255), + 1818: uint8(255), + 1819: uint8(255), + 1820: uint8(255), + 1821: uint8(255), + 1822: uint8(255), + 1823: uint8(255), + 1842: uint8(255), + 1843: uint8(255), + 1844: uint8(255), + 1845: uint8(255), + 1846: uint8(255), + 1847: uint8(255), + 1848: uint8(127), + 1855: uint8(192), + 1857: uint8(224), + 1869: uint8(128), + 1870: uint8(15), + 1871: uint8(112), + 1886: uint8(255), + 1888: uint8(255), + 1889: uint8(255), + 1890: uint8(127), + 1892: uint8(3), + 1905: uint8(6), + 1920: uint8(64), + 1925: uint8(15), + 1926: uint8(255), + 1927: uint8(3), + 1934: uint8(240), + 1944: uint8(16), + 1945: uint8(192), + 1948: uint8(255), + 1949: uint8(255), + 1950: uint8(3), + 1951: uint8(23), + 1957: uint8(248), + 1962: uint8(8), + 1963: uint8(128), + 1974: uint8(8), + 1976: uint8(255), + 1977: uint8(63), + 1979: uint8(192), + 1995: uint8(240), + 1998: uint8(128), + 1999: uint8(3), + 2007: uint8(128), + 2008: uint8(2), + 2011: uint8(192), + 2014: uint8(67), + 2027: uint8(8), + 2045: uint8(56), + 2048: uint8(1), + 2111: uint8(128), + 2117: uint8(2), + 2134: uint8(252), + 2135: uint8(255), + 2136: uint8(3), + 2151: uint8(192), + 2175: uint8(48), + 2176: uint8(255), + 2177: uint8(255), + 2178: uint8(255), + 2179: uint8(3), + 2180: uint8(255), + 2181: uint8(255), + 2182: uint8(255), + 2183: uint8(255), + 2184: uint8(255), + 2185: uint8(255), + 2186: uint8(247), + 2187: uint8(255), + 2188: uint8(127), + 2189: uint8(15), + 2207: uint8(128), + 2208: uint8(254), + 2209: uint8(255), + 2211: uint8(252), + 2212: uint8(1), + 2215: uint8(248), + 2216: uint8(1), + 2219: uint8(248), + 2220: uint8(63), + 2236: uint8(127), + 2237: uint8(127), + 2239: uint8(48), + 2240: uint8(135), + 2241: uint8(255), + 2242: uint8(255), + 2243: uint8(255), + 2244: uint8(255), + 2245: uint8(255), + 2246: uint8(143), + 2247: uint8(255), + 2254: uint8(224), + 2255: uint8(255), + 2256: uint8(255), + 2257: uint8(127), + 2258: uint8(255), + 2259: uint8(15), + 2260: uint8(1), + 2266: uint8(255), + 2267: uint8(255), + 2268: uint8(255), + 2269: uint8(255), + 2270: uint8(255), + 2271: uint8(63), + 2300: uint8(255), + 2301: uint8(255), + 2302: uint8(255), + 2303: uint8(15), + 2308: uint8(15), + 2323: uint8(128), + 2330: uint8(1), + 2349: uint8(128), + 2378: uint8(128), + 2379: uint8(255), + 2382: uint8(128), + 2383: uint8(255), + 2388: uint8(128), + 2389: uint8(255), + 2399: uint8(248), + 2402: uint8(192), + 2403: uint8(143), + 2407: uint8(128), + 2423: uint8(48), + 2424: uint8(255), + 2425: uint8(255), + 2426: uint8(252), + 2427: uint8(255), + 2428: uint8(255), + 2429: uint8(255), + 2430: uint8(255), + 2431: uint8(255), + 2439: uint8(135), + 2440: uint8(255), + 2441: uint8(1), + 2442: uint8(255), + 2443: uint8(1), + 2447: uint8(224), + 2451: uint8(224), + 2457: uint8(1), + 2460: uint8(96), + 2461: uint8(248), + 2462: uint8(127), + 2471: uint8(254), + 2475: uint8(255), + 2479: uint8(255), + 2483: uint8(30), + 2485: uint8(254), + 2527: uint8(252), + 2540: uint8(255), + 2541: uint8(255), + 2542: uint8(255), + 2543: uint8(127), + 2563: uint8(224), + 2564: uint8(127), + 2568: uint8(192), + 2569: uint8(255), + 2570: uint8(255), + 2571: uint8(3), + 2600: uint8(192), + 2601: uint8(63), + 2602: uint8(252), + 2603: uint8(255), + 2604: uint8(63), + 2607: uint8(128), + 2608: uint8(3), + 2615: uint8(254), + 2616: uint8(3), + 2617: uint8(32), + 2630: uint8(24), + 2632: uint8(15), + 2638: uint8(56), + 2648: uint8(225), + 2649: uint8(63), + 2651: uint8(232), + 2652: uint8(254), + 2653: uint8(255), + 2654: uint8(31), + 2662: uint8(96), + 2663: uint8(63), + 2677: uint8(2), + 2685: uint8(6), + 2695: uint8(24), + 2697: uint8(32), + 2700: uint8(192), + 2701: uint8(31), + 2702: uint8(31), + 2728: uint8(68), + 2729: uint8(248), + 2731: uint8(104), + 2744: uint8(76), + 2775: uint8(128), + 2776: uint8(255), + 2777: uint8(255), + 2778: uint8(255), + 2791: uint8(128), + 2792: uint8(14), + 2796: uint8(255), + 2797: uint8(31), + 2806: uint8(192), + 2821: uint8(8), + 2823: uint8(252), + 2855: uint8(14), + 2877: uint8(252), + 2878: uint8(7), + 2908: uint8(5), + 2918: uint8(24), + 2919: uint8(128), + 2920: uint8(255), + 2931: uint8(223), + 2932: uint8(7), + 2951: uint8(128), + 2952: uint8(62), + 2955: uint8(252), + 2956: uint8(255), + 2957: uint8(31), + 2958: uint8(3), + 2984: uint8(52), + 2994: uint8(128), + 3038: uint8(128), + 3039: uint8(1), + 3064: uint8(255), + 3065: uint8(255), + 3066: uint8(255), + 3067: uint8(255), + 3068: uint8(255), + 3069: uint8(255), + 3070: uint8(3), + 3071: uint8(128), + 3086: uint8(31), + 3110: uint8(255), + 3111: uint8(1), + 3149: uint8(192), + 3166: uint8(63), + 3174: uint8(255), + 3175: uint8(255), + 3176: uint8(48), + 3179: uint8(248), + 3180: uint8(3), + 3216: uint8(255), + 3217: uint8(255), + 3218: uint8(255), + 3219: uint8(7), + 3260: uint8(4), + 3283: uint8(176), + 3284: uint8(15), + 3296: uint8(255), + 3297: uint8(255), + 3298: uint8(255), + 3299: uint8(255), + 3300: uint8(255), + 3301: uint8(255), + 3302: uint8(255), + 3303: uint8(255), + 3304: uint8(255), + 3305: uint8(255), + 3306: uint8(255), + 3307: uint8(255), + 3308: uint8(255), + 3309: uint8(255), + 3310: uint8(255), + 3311: uint8(255), + 3312: uint8(255), + 3313: uint8(255), + 3314: uint8(255), + 3315: uint8(255), + 3316: uint8(255), + 3317: uint8(255), + 3318: uint8(255), + 3319: uint8(255), + 3320: uint8(255), + 3321: uint8(255), + 3322: uint8(255), + 3323: uint8(255), + 3324: uint8(255), + 3325: uint8(255), + 3326: uint8(63), + 3328: uint8(255), + 3329: uint8(255), + 3330: uint8(255), + 3331: uint8(255), + 3332: uint8(127), + 3333: uint8(254), + 3334: uint8(255), + 3335: uint8(255), + 3336: uint8(255), + 3337: uint8(255), + 3338: uint8(255), + 3339: uint8(255), + 3340: uint8(255), + 3341: uint8(255), + 3342: uint8(255), + 3343: uint8(255), + 3344: uint8(255), + 3345: uint8(255), + 3346: uint8(255), + 3347: uint8(255), + 3348: uint8(255), + 3349: uint8(255), + 3350: uint8(255), + 3351: uint8(255), + 3352: uint8(255), + 3353: uint8(255), + 3354: uint8(255), + 3355: uint8(255), + 3356: uint8(255), + 3357: uint8(1), + 3360: uint8(255), + 3361: uint8(255), + 3362: uint8(255), + 3363: uint8(255), + 3364: uint8(255), + 3365: uint8(255), + 3366: uint8(255), + 3367: uint8(255), + 3368: uint8(63), + 3388: uint8(255), + 3389: uint8(255), + 3390: uint8(15), + 3392: uint8(255), + 3393: uint8(255), + 3394: uint8(255), + 3395: uint8(255), + 3396: uint8(255), + 3397: uint8(255), + 3398: uint8(255), + 3399: uint8(255), + 3400: uint8(255), + 3401: uint8(255), + 3402: uint8(127), + 3404: uint8(255), + 3405: uint8(255), + 3406: uint8(255), + 3407: uint8(1), + 3448: uint8(2), + 3451: uint8(8), + 3455: uint8(8), + 3458: uint8(32), + 3462: uint8(32), + 3465: uint8(128), + 3469: uint8(128), + 3473: uint8(2), + 3477: uint8(2), + 3480: uint8(8), + 3488: uint8(255), + 3489: uint8(255), + 3490: uint8(255), + 3491: uint8(255), + 3492: uint8(255), + 3493: uint8(255), + 3494: uint8(255), + 3495: uint8(255), + 3496: uint8(255), + 3497: uint8(255), + 3498: uint8(255), + 3499: uint8(255), + 3500: uint8(255), + 3501: uint8(255), + 3502: uint8(255), + 3503: uint8(255), + 3504: uint8(255), + 3505: uint8(15), + 3507: uint8(248), + 3508: uint8(254), + 3509: uint8(255), + 3526: uint8(127), + 3529: uint8(128), + 3581: uint8(240), + 3583: uint8(128), + 3608: uint8(128), + 3609: uint8(255), + 3610: uint8(127), + 3624: uint8(112), + 3625: uint8(7), + 3627: uint8(192), + 3662: uint8(254), + 3663: uint8(255), + 3664: uint8(255), + 3665: uint8(255), + 3666: uint8(255), + 3667: uint8(255), + 3668: uint8(255), + 3669: uint8(255), + 3670: uint8(31), + 3680: uint8(254), + 3681: uint8(255), + 3682: uint8(255), + 3683: uint8(255), + 3684: uint8(255), + 3685: uint8(255), + 3686: uint8(255), + 3687: uint8(63), + 3742: uint8(3), + 3744: uint8(255), + 3745: uint8(255), + 3746: uint8(255), + 3747: uint8(255), + 3748: uint8(255), + 3749: uint8(15), + 3750: uint8(255), + 3751: uint8(255), + 3752: uint8(255), + 3753: uint8(255), + 3754: uint8(255), + 3755: uint8(255), + 3756: uint8(255), + 3757: uint8(255), + 3758: uint8(255), + 3759: uint8(255), + 3760: uint8(255), + 3761: uint8(255), + 3762: uint8(15), + 3764: uint8(255), + 3765: uint8(127), + 3766: uint8(254), + 3767: uint8(255), + 3768: uint8(254), + 3769: uint8(255), + 3770: uint8(254), + 3771: uint8(255), + 3772: uint8(255), + 3773: uint8(255), + 3774: uint8(63), + 3776: uint8(255), + 3777: uint8(31), + 3778: uint8(255), + 3779: uint8(255), + 3780: uint8(255), + 3781: uint8(255), + 3785: uint8(252), + 3789: uint8(28), + 3793: uint8(252), + 3794: uint8(255), + 3795: uint8(255), + 3796: uint8(255), + 3797: uint8(31), + 3804: uint8(192), + 3805: uint8(255), + 3806: uint8(255), + 3807: uint8(255), + 3808: uint8(7), + 3810: uint8(255), + 3811: uint8(255), + 3812: uint8(255), + 3813: uint8(255), + 3814: uint8(255), + 3815: uint8(15), + 3816: uint8(255), + 3817: uint8(1), + 3818: uint8(3), + 3820: uint8(63), + 3840: uint8(255), + 3841: uint8(255), + 3842: uint8(255), + 3843: uint8(255), + 3844: uint8(255), + 3845: uint8(255), + 3846: uint8(255), + 3847: uint8(255), + 3848: uint8(255), + 3849: uint8(255), + 3850: uint8(255), + 3851: uint8(255), + 3852: uint8(255), + 3853: uint8(255), + 3854: uint8(255), + 3855: uint8(255), + 3856: uint8(255), + 3857: uint8(255), + 3858: uint8(255), + 3859: uint8(255), + 3860: uint8(255), + 3861: uint8(255), + 3862: uint8(255), + 3863: uint8(255), + 3864: uint8(255), + 3865: uint8(255), + 3866: uint8(63), + 3868: uint8(255), + 3869: uint8(31), + 3870: uint8(255), + 3871: uint8(7), + 3872: uint8(255), + 3873: uint8(255), + 3874: uint8(255), + 3875: uint8(255), + 3876: uint8(255), + 3877: uint8(255), + 3878: uint8(255), + 3879: uint8(255), + 3880: uint8(255), + 3881: uint8(255), + 3882: uint8(255), + 3883: uint8(255), + 3884: uint8(255), + 3885: uint8(255), + 3886: uint8(15), + 3888: uint8(255), + 3889: uint8(255), + 3890: uint8(255), + 3891: uint8(255), + 3892: uint8(255), + 3893: uint8(255), + 3894: uint8(255), + 3895: uint8(255), + 3896: uint8(255), + 3897: uint8(255), + 3898: uint8(255), + 3899: uint8(1), + 3900: uint8(255), + 3901: uint8(15), + 3904: uint8(255), + 3905: uint8(15), + 3906: uint8(255), + 3907: uint8(255), + 3908: uint8(255), + 3909: uint8(255), + 3910: uint8(255), + 3911: uint8(255), + 3912: uint8(255), + 3914: uint8(255), + 3915: uint8(3), + 3916: uint8(255), + 3917: uint8(255), + 3918: uint8(255), + 3919: uint8(255), + 3920: uint8(255), + 3922: uint8(255), + 3923: uint8(255), + 3924: uint8(255), + 3925: uint8(63), + 3936: uint8(255), + 3937: uint8(239), + 3938: uint8(255), + 3939: uint8(255), + 3940: uint8(255), + 3941: uint8(255), + 3942: uint8(255), + 3943: uint8(255), + 3944: uint8(255), + 3945: uint8(255), + 3946: uint8(255), + 3947: uint8(255), + 3948: uint8(255), + 3949: uint8(255), + 3950: uint8(123), + 3951: uint8(252), + 3952: uint8(255), + 3953: uint8(255), + 3954: uint8(255), + 3955: uint8(255), + 3956: uint8(231), + 3957: uint8(199), + 3958: uint8(255), + 3959: uint8(255), + 3960: uint8(255), + 3961: uint8(231), + 3962: uint8(255), + 3963: uint8(255), + 3964: uint8(255), + 3965: uint8(255), + 3966: uint8(255), + 3967: uint8(255), + 3968: uint8(255), + 3969: uint8(255), + 3970: uint8(255), + 3971: uint8(255), + 3972: uint8(255), + 3973: uint8(255), + 3974: uint8(255), + 3975: uint8(255), + 3976: uint8(255), + 3977: uint8(255), + 3978: uint8(15), + 3980: uint8(255), + 3981: uint8(63), + 3982: uint8(15), + 3983: uint8(7), + 3984: uint8(7), + 3986: uint8(63), +} + +func Xiswpunct(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + if wc < uint32(0x20000) { + return Int32FromUint8(_table4[Uint32FromInt32(Int32FromUint8(_table4[wc>>int32(8)])*int32(32))+wc&uint32(255)>>int32(3)]) >> (wc & uint32(7)) & int32(1) + } + return 0 +} + +func X__iswpunct_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswpunct(tls, c) +} + +func Xiswpunct_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswpunct_l(tls, c, l) +} + +type Tmbstate_t = struct { + F__opaque1 uint32 + F__opaque2 uint32 +} + +type t__mbstate_t = Tmbstate_t + +/* Our definition of whitespace is the Unicode White_Space property, + * minus non-breaking spaces (U+00A0, U+2007, and U+202F) and script- + * specific characters with non-blank glyphs (U+1680 and U+180E). */ + +func Xiswspace(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(wc != 0 && Xwcschr(tls, uintptr(unsafe.Pointer(&_spaces)), Int32FromUint32(wc)) != 0) +} + +var _spaces = [22]Twchar_t{ + 0: int32(' '), + 1: int32('\t'), + 2: int32('\n'), + 3: int32('\r'), + 4: int32(11), + 5: int32(12), + 6: int32(0x0085), + 7: int32(0x2000), + 8: int32(0x2001), + 9: int32(0x2002), + 10: int32(0x2003), + 11: int32(0x2004), + 12: int32(0x2005), + 13: int32(0x2006), + 14: int32(0x2008), + 15: int32(0x2009), + 16: int32(0x200a), + 17: int32(0x2028), + 18: int32(0x2029), + 19: int32(0x205f), + 20: int32(0x3000), +} + +func X__iswspace_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswspace(tls, c) +} + +func Xiswspace_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswspace_l(tls, c, l) +} + +func Xiswupper(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(Xtowlower(tls, wc) != wc) +} + +func X__iswupper_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswupper(tls, c) +} + +func Xiswupper_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswupper_l(tls, c, l) +} + +func Xiswxdigit(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(wc-Uint32FromUint8('0') < uint32(10) || wc|Uint32FromInt32(32)-Uint32FromUint8('a') < uint32(6)) +} + +func X__iswxdigit_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswxdigit(tls, c) +} + +func Xiswxdigit_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswxdigit_l(tls, c, l) +} + +func Xisxdigit(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(BoolInt32(Uint32FromInt32(c)-uint32('0') < uint32(10)) != 0 || Uint32FromInt32(c)|uint32(32)-uint32('a') < uint32(6)) +} + +func X__isxdigit_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xisxdigit(tls, c) +} + +func Xisxdigit_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__isxdigit_l(tls, c, l) +} + +// C documentation +// +// /* nonsense function that should NEVER be used! */ +func Xtoascii(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return c & int32(0x7f) +} + +func Xtolower(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + if BoolInt32(Uint32FromInt32(c)-uint32('A') < uint32(26)) != 0 { + return c | int32(32) + } + return c +} + +func X__tolower_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xtolower(tls, c) +} + +func Xtolower_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__tolower_l(tls, c, l) +} + +func Xtoupper(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + if BoolInt32(Uint32FromInt32(c)-uint32('a') < uint32(26)) != 0 { + return c & int32(0x5f) + } + return c +} + +func X__toupper_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xtoupper(tls, c) +} + +func Xtoupper_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__toupper_l(tls, c, l) +} + +var _tab1 = [2666]uint8{ + 0: uint8(7), + 1: uint8(8), + 2: uint8(9), + 3: uint8(10), + 4: uint8(11), + 5: uint8(12), + 6: uint8(6), + 7: uint8(6), + 8: uint8(6), + 9: uint8(6), + 10: uint8(6), + 11: uint8(6), + 12: uint8(6), + 13: uint8(6), + 14: uint8(6), + 15: uint8(6), + 16: uint8(13), + 17: uint8(6), + 18: uint8(6), + 19: uint8(14), + 20: uint8(6), + 21: uint8(6), + 22: uint8(6), + 23: uint8(6), + 24: uint8(6), + 25: uint8(6), + 26: uint8(6), + 27: uint8(6), + 28: uint8(15), + 29: uint8(16), + 30: uint8(17), + 31: uint8(18), + 32: uint8(6), + 33: uint8(19), + 34: uint8(6), + 35: uint8(6), + 36: uint8(6), + 37: uint8(6), + 38: uint8(6), + 39: uint8(6), + 40: uint8(6), + 41: uint8(6), + 42: uint8(6), + 43: uint8(6), + 44: uint8(20), + 45: uint8(21), + 46: uint8(6), + 47: uint8(6), + 48: uint8(6), + 49: uint8(6), + 50: uint8(6), + 51: uint8(6), + 52: uint8(6), + 53: uint8(6), + 54: uint8(6), + 55: uint8(6), + 56: uint8(6), + 57: uint8(6), + 58: uint8(6), + 59: uint8(6), + 60: uint8(6), + 61: uint8(6), + 62: uint8(6), + 63: uint8(6), + 64: uint8(6), + 65: uint8(6), + 66: uint8(6), + 67: uint8(6), + 68: uint8(6), + 69: uint8(6), + 70: uint8(6), + 71: uint8(6), + 72: uint8(6), + 73: uint8(6), + 74: uint8(6), + 75: uint8(6), + 76: uint8(6), + 77: uint8(6), + 78: uint8(6), + 79: uint8(6), + 80: uint8(6), + 81: uint8(6), + 82: uint8(6), + 83: uint8(6), + 84: uint8(6), + 85: uint8(6), + 86: uint8(6), + 87: uint8(6), + 88: uint8(6), + 89: uint8(6), + 90: uint8(6), + 91: uint8(6), + 92: uint8(6), + 93: uint8(6), + 94: uint8(6), + 95: uint8(6), + 96: uint8(6), + 97: uint8(6), + 98: uint8(6), + 99: uint8(6), + 100: uint8(6), + 101: uint8(6), + 102: uint8(6), + 103: uint8(6), + 104: uint8(6), + 105: uint8(6), + 106: uint8(6), + 107: uint8(6), + 108: uint8(6), + 109: uint8(6), + 110: uint8(6), + 111: uint8(6), + 112: uint8(6), + 113: uint8(6), + 114: uint8(6), + 115: uint8(6), + 116: uint8(6), + 117: uint8(6), + 118: uint8(6), + 119: uint8(6), + 120: uint8(6), + 121: uint8(6), + 122: uint8(6), + 123: uint8(6), + 124: uint8(6), + 125: uint8(6), + 126: uint8(6), + 127: uint8(6), + 128: uint8(6), + 129: uint8(6), + 130: uint8(6), + 131: uint8(6), + 132: uint8(6), + 133: uint8(6), + 134: uint8(6), + 135: uint8(6), + 136: uint8(6), + 137: uint8(6), + 138: uint8(6), + 139: uint8(6), + 140: uint8(6), + 141: uint8(6), + 142: uint8(6), + 143: uint8(6), + 144: uint8(6), + 145: uint8(6), + 146: uint8(6), + 147: uint8(6), + 148: uint8(6), + 149: uint8(6), + 150: uint8(6), + 151: uint8(6), + 152: uint8(6), + 153: uint8(6), + 154: uint8(6), + 155: uint8(6), + 156: uint8(6), + 157: uint8(6), + 158: uint8(6), + 159: uint8(6), + 160: uint8(6), + 161: uint8(6), + 162: uint8(6), + 163: uint8(6), + 164: uint8(6), + 165: uint8(6), + 166: uint8(22), + 167: uint8(23), + 168: uint8(6), + 169: uint8(6), + 170: uint8(6), + 171: uint8(24), + 172: uint8(6), + 173: uint8(6), + 174: uint8(6), + 175: uint8(6), + 176: uint8(6), + 177: uint8(6), + 178: uint8(6), + 179: uint8(6), + 180: uint8(6), + 181: uint8(6), + 182: uint8(6), + 183: uint8(6), + 184: uint8(6), + 185: uint8(6), + 186: uint8(6), + 187: uint8(6), + 188: uint8(6), + 189: uint8(6), + 190: uint8(6), + 191: uint8(6), + 192: uint8(6), + 193: uint8(6), + 194: uint8(6), + 195: uint8(6), + 196: uint8(6), + 197: uint8(6), + 198: uint8(6), + 199: uint8(6), + 200: uint8(6), + 201: uint8(6), + 202: uint8(6), + 203: uint8(6), + 204: uint8(6), + 205: uint8(6), + 206: uint8(6), + 207: uint8(6), + 208: uint8(6), + 209: uint8(6), + 210: uint8(6), + 211: uint8(6), + 212: uint8(6), + 213: uint8(6), + 214: uint8(6), + 215: uint8(6), + 216: uint8(6), + 217: uint8(6), + 218: uint8(6), + 219: uint8(6), + 220: uint8(6), + 221: uint8(6), + 222: uint8(6), + 223: uint8(6), + 224: uint8(6), + 225: uint8(6), + 226: uint8(6), + 227: uint8(6), + 228: uint8(6), + 229: uint8(6), + 230: uint8(6), + 231: uint8(6), + 232: uint8(6), + 233: uint8(6), + 234: uint8(6), + 235: uint8(6), + 236: uint8(6), + 237: uint8(6), + 238: uint8(6), + 239: uint8(6), + 240: uint8(6), + 241: uint8(6), + 242: uint8(6), + 243: uint8(6), + 244: uint8(6), + 245: uint8(6), + 246: uint8(6), + 247: uint8(6), + 248: uint8(6), + 249: uint8(6), + 250: uint8(6), + 251: uint8(6), + 252: uint8(6), + 253: uint8(6), + 254: uint8(6), + 255: uint8(25), + 256: uint8(6), + 257: uint8(6), + 258: uint8(6), + 259: uint8(6), + 260: uint8(26), + 261: uint8(6), + 262: uint8(6), + 263: uint8(6), + 264: uint8(6), + 265: uint8(6), + 266: uint8(6), + 267: uint8(6), + 268: uint8(27), + 269: uint8(6), + 270: uint8(6), + 271: uint8(6), + 272: uint8(6), + 273: uint8(6), + 274: uint8(6), + 275: uint8(6), + 276: uint8(6), + 277: uint8(6), + 278: uint8(6), + 279: uint8(6), + 280: uint8(28), + 281: uint8(6), + 282: uint8(6), + 283: uint8(6), + 284: uint8(6), + 285: uint8(6), + 286: uint8(6), + 287: uint8(6), + 288: uint8(6), + 289: uint8(6), + 290: uint8(6), + 291: uint8(6), + 292: uint8(6), + 293: uint8(6), + 294: uint8(6), + 295: uint8(6), + 296: uint8(6), + 297: uint8(6), + 298: uint8(6), + 299: uint8(6), + 300: uint8(6), + 301: uint8(6), + 302: uint8(6), + 303: uint8(6), + 304: uint8(6), + 305: uint8(6), + 306: uint8(6), + 307: uint8(6), + 308: uint8(6), + 309: uint8(6), + 310: uint8(6), + 311: uint8(6), + 312: uint8(6), + 313: uint8(6), + 314: uint8(6), + 315: uint8(6), + 316: uint8(6), + 317: uint8(6), + 318: uint8(6), + 319: uint8(6), + 320: uint8(6), + 321: uint8(6), + 322: uint8(6), + 323: uint8(6), + 324: uint8(6), + 325: uint8(6), + 326: uint8(6), + 327: uint8(6), + 328: uint8(6), + 329: uint8(6), + 330: uint8(6), + 331: uint8(6), + 332: uint8(6), + 333: uint8(6), + 334: uint8(6), + 335: uint8(6), + 336: uint8(6), + 337: uint8(6), + 338: uint8(6), + 339: uint8(6), + 340: uint8(6), + 341: uint8(6), + 342: uint8(6), + 343: uint8(6), + 344: uint8(6), + 345: uint8(6), + 346: uint8(6), + 347: uint8(6), + 348: uint8(6), + 349: uint8(6), + 350: uint8(6), + 351: uint8(6), + 352: uint8(6), + 353: uint8(6), + 354: uint8(6), + 355: uint8(6), + 356: uint8(6), + 357: uint8(6), + 358: uint8(6), + 359: uint8(6), + 360: uint8(6), + 361: uint8(6), + 362: uint8(6), + 363: uint8(6), + 364: uint8(6), + 365: uint8(6), + 366: uint8(29), + 367: uint8(6), + 368: uint8(6), + 369: uint8(6), + 370: uint8(6), + 371: uint8(6), + 372: uint8(6), + 373: uint8(6), + 374: uint8(6), + 375: uint8(6), + 376: uint8(6), + 377: uint8(6), + 378: uint8(6), + 379: uint8(6), + 380: uint8(6), + 381: uint8(6), + 382: uint8(6), + 383: uint8(6), + 384: uint8(6), + 385: uint8(6), + 386: uint8(6), + 387: uint8(6), + 388: uint8(6), + 389: uint8(6), + 390: uint8(6), + 391: uint8(6), + 392: uint8(6), + 393: uint8(6), + 394: uint8(6), + 395: uint8(6), + 396: uint8(6), + 397: uint8(6), + 398: uint8(6), + 399: uint8(6), + 400: uint8(6), + 401: uint8(6), + 402: uint8(6), + 403: uint8(6), + 404: uint8(6), + 405: uint8(6), + 406: uint8(6), + 407: uint8(6), + 408: uint8(6), + 409: uint8(6), + 410: uint8(6), + 411: uint8(6), + 412: uint8(6), + 413: uint8(6), + 414: uint8(6), + 415: uint8(6), + 416: uint8(6), + 417: uint8(6), + 418: uint8(6), + 419: uint8(6), + 420: uint8(6), + 421: uint8(6), + 422: uint8(6), + 423: uint8(6), + 424: uint8(6), + 425: uint8(6), + 426: uint8(6), + 427: uint8(6), + 428: uint8(6), + 429: uint8(6), + 430: uint8(6), + 431: uint8(6), + 432: uint8(6), + 433: uint8(6), + 434: uint8(6), + 435: uint8(6), + 436: uint8(6), + 437: uint8(6), + 438: uint8(6), + 439: uint8(6), + 440: uint8(6), + 441: uint8(6), + 442: uint8(6), + 443: uint8(6), + 444: uint8(6), + 445: uint8(6), + 446: uint8(6), + 447: uint8(6), + 448: uint8(6), + 449: uint8(6), + 450: uint8(6), + 451: uint8(6), + 452: uint8(6), + 453: uint8(6), + 454: uint8(6), + 455: uint8(6), + 456: uint8(6), + 457: uint8(6), + 458: uint8(6), + 459: uint8(6), + 460: uint8(6), + 461: uint8(6), + 462: uint8(6), + 463: uint8(6), + 464: uint8(6), + 465: uint8(6), + 466: uint8(6), + 467: uint8(6), + 468: uint8(6), + 469: uint8(6), + 470: uint8(6), + 471: uint8(6), + 472: uint8(6), + 473: uint8(6), + 474: uint8(6), + 475: uint8(6), + 476: uint8(6), + 477: uint8(6), + 478: uint8(6), + 479: uint8(6), + 480: uint8(6), + 481: uint8(6), + 482: uint8(6), + 483: uint8(6), + 484: uint8(6), + 485: uint8(6), + 486: uint8(6), + 487: uint8(6), + 488: uint8(6), + 489: uint8(30), + 490: uint8(6), + 491: uint8(6), + 492: uint8(6), + 493: uint8(6), + 494: uint8(6), + 495: uint8(6), + 496: uint8(6), + 497: uint8(6), + 498: uint8(6), + 499: uint8(6), + 500: uint8(6), + 501: uint8(6), + 502: uint8(6), + 503: uint8(6), + 504: uint8(6), + 505: uint8(6), + 506: uint8(6), + 507: uint8(6), + 508: uint8(6), + 509: uint8(6), + 510: uint8(6), + 511: uint8(6), + 623: uint8(36), + 624: uint8(43), + 625: uint8(43), + 626: uint8(43), + 627: uint8(43), + 628: uint8(43), + 629: uint8(43), + 630: uint8(43), + 631: uint8(43), + 632: uint8(1), + 634: uint8(84), + 635: uint8(86), + 636: uint8(86), + 637: uint8(86), + 638: uint8(86), + 639: uint8(86), + 640: uint8(86), + 641: uint8(86), + 642: uint8(86), + 662: uint8(24), + 666: uint8(43), + 667: uint8(43), + 668: uint8(43), + 669: uint8(43), + 670: uint8(43), + 671: uint8(43), + 672: uint8(43), + 673: uint8(7), + 674: uint8(43), + 675: uint8(43), + 676: uint8(91), + 677: uint8(86), + 678: uint8(86), + 679: uint8(86), + 680: uint8(86), + 681: uint8(86), + 682: uint8(86), + 683: uint8(86), + 684: uint8(74), + 685: uint8(86), + 686: uint8(86), + 687: uint8(5), + 688: uint8(49), + 689: uint8(80), + 690: uint8(49), + 691: uint8(80), + 692: uint8(49), + 693: uint8(80), + 694: uint8(49), + 695: uint8(80), + 696: uint8(49), + 697: uint8(80), + 698: uint8(49), + 699: uint8(80), + 700: uint8(49), + 701: uint8(80), + 702: uint8(49), + 703: uint8(80), + 704: uint8(36), + 705: uint8(80), + 706: uint8(121), + 707: uint8(49), + 708: uint8(80), + 709: uint8(49), + 710: uint8(80), + 711: uint8(49), + 712: uint8(56), + 713: uint8(80), + 714: uint8(49), + 715: uint8(80), + 716: uint8(49), + 717: uint8(80), + 718: uint8(49), + 719: uint8(80), + 720: uint8(49), + 721: uint8(80), + 722: uint8(49), + 723: uint8(80), + 724: uint8(49), + 725: uint8(80), + 726: uint8(49), + 727: uint8(80), + 728: uint8(78), + 729: uint8(49), + 730: uint8(2), + 731: uint8(78), + 732: uint8(13), + 733: uint8(13), + 734: uint8(78), + 735: uint8(3), + 736: uint8(78), + 738: uint8(36), + 739: uint8(110), + 741: uint8(78), + 742: uint8(49), + 743: uint8(38), + 744: uint8(110), + 745: uint8(81), + 746: uint8(78), + 747: uint8(36), + 748: uint8(80), + 749: uint8(78), + 750: uint8(57), + 751: uint8(20), + 752: uint8(129), + 753: uint8(27), + 754: uint8(29), + 755: uint8(29), + 756: uint8(83), + 757: uint8(49), + 758: uint8(80), + 759: uint8(49), + 760: uint8(80), + 761: uint8(13), + 762: uint8(49), + 763: uint8(80), + 764: uint8(49), + 765: uint8(80), + 766: uint8(49), + 767: uint8(80), + 768: uint8(27), + 769: uint8(83), + 770: uint8(36), + 771: uint8(80), + 772: uint8(49), + 773: uint8(2), + 774: uint8(92), + 775: uint8(123), + 776: uint8(92), + 777: uint8(123), + 778: uint8(92), + 779: uint8(123), + 780: uint8(92), + 781: uint8(123), + 782: uint8(92), + 783: uint8(123), + 784: uint8(20), + 785: uint8(121), + 786: uint8(92), + 787: uint8(123), + 788: uint8(92), + 789: uint8(123), + 790: uint8(92), + 791: uint8(45), + 792: uint8(43), + 793: uint8(73), + 794: uint8(3), + 795: uint8(72), + 796: uint8(3), + 797: uint8(120), + 798: uint8(92), + 799: uint8(123), + 800: uint8(20), + 802: uint8(150), + 803: uint8(10), + 804: uint8(1), + 805: uint8(43), + 806: uint8(40), + 807: uint8(6), + 808: uint8(6), + 810: uint8(42), + 811: uint8(6), + 812: uint8(42), + 813: uint8(42), + 814: uint8(43), + 815: uint8(7), + 816: uint8(187), + 817: uint8(181), + 818: uint8(43), + 819: uint8(30), + 821: uint8(43), + 822: uint8(7), + 823: uint8(43), + 824: uint8(43), + 825: uint8(43), + 826: uint8(1), + 827: uint8(43), + 828: uint8(43), + 829: uint8(43), + 830: uint8(43), + 831: uint8(43), + 832: uint8(43), + 833: uint8(43), + 834: uint8(43), + 835: uint8(43), + 836: uint8(43), + 837: uint8(43), + 838: uint8(43), + 839: uint8(43), + 840: uint8(43), + 841: uint8(43), + 842: uint8(43), + 843: uint8(43), + 844: uint8(43), + 845: uint8(43), + 846: uint8(43), + 847: uint8(43), + 848: uint8(43), + 849: uint8(43), + 850: uint8(43), + 851: uint8(43), + 852: uint8(43), + 853: uint8(43), + 854: uint8(43), + 855: uint8(43), + 856: uint8(43), + 857: uint8(43), + 858: uint8(43), + 859: uint8(1), + 860: uint8(43), + 861: uint8(43), + 862: uint8(43), + 863: uint8(43), + 864: uint8(43), + 865: uint8(43), + 866: uint8(43), + 867: uint8(43), + 868: uint8(43), + 869: uint8(43), + 870: uint8(43), + 871: uint8(43), + 872: uint8(43), + 873: uint8(43), + 874: uint8(43), + 875: uint8(43), + 876: uint8(43), + 877: uint8(43), + 878: uint8(43), + 879: uint8(43), + 880: uint8(43), + 881: uint8(43), + 882: uint8(43), + 883: uint8(42), + 884: uint8(43), + 885: uint8(43), + 886: uint8(43), + 887: uint8(43), + 888: uint8(43), + 889: uint8(43), + 890: uint8(43), + 891: uint8(43), + 892: uint8(43), + 893: uint8(43), + 894: uint8(43), + 895: uint8(43), + 896: uint8(43), + 897: uint8(205), + 898: uint8(70), + 899: uint8(205), + 900: uint8(43), + 902: uint8(37), + 903: uint8(43), + 904: uint8(7), + 905: uint8(1), + 906: uint8(6), + 907: uint8(1), + 908: uint8(85), + 909: uint8(86), + 910: uint8(86), + 911: uint8(86), + 912: uint8(86), + 913: uint8(86), + 914: uint8(85), + 915: uint8(86), + 916: uint8(86), + 917: uint8(2), + 918: uint8(36), + 919: uint8(129), + 920: uint8(129), + 921: uint8(129), + 922: uint8(129), + 923: uint8(129), + 924: uint8(21), + 925: uint8(129), + 926: uint8(129), + 927: uint8(129), + 930: uint8(43), + 932: uint8(178), + 933: uint8(209), + 934: uint8(178), + 935: uint8(209), + 936: uint8(178), + 937: uint8(209), + 938: uint8(178), + 939: uint8(209), + 942: uint8(205), + 943: uint8(204), + 944: uint8(1), + 946: uint8(215), + 947: uint8(215), + 948: uint8(215), + 949: uint8(215), + 950: uint8(215), + 951: uint8(131), + 952: uint8(129), + 953: uint8(129), + 954: uint8(129), + 955: uint8(129), + 956: uint8(129), + 957: uint8(129), + 958: uint8(129), + 959: uint8(129), + 960: uint8(129), + 961: uint8(129), + 962: uint8(172), + 963: uint8(172), + 964: uint8(172), + 965: uint8(172), + 966: uint8(172), + 967: uint8(172), + 968: uint8(172), + 969: uint8(172), + 970: uint8(172), + 971: uint8(172), + 972: uint8(28), + 978: uint8(49), + 979: uint8(80), + 980: uint8(49), + 981: uint8(80), + 982: uint8(49), + 983: uint8(80), + 984: uint8(49), + 985: uint8(80), + 986: uint8(49), + 987: uint8(80), + 988: uint8(49), + 989: uint8(2), + 992: uint8(49), + 993: uint8(80), + 994: uint8(49), + 995: uint8(80), + 996: uint8(49), + 997: uint8(80), + 998: uint8(49), + 999: uint8(80), + 1000: uint8(49), + 1001: uint8(80), + 1002: uint8(49), + 1003: uint8(80), + 1004: uint8(49), + 1005: uint8(80), + 1006: uint8(49), + 1007: uint8(80), + 1008: uint8(49), + 1009: uint8(80), + 1010: uint8(78), + 1011: uint8(49), + 1012: uint8(80), + 1013: uint8(49), + 1014: uint8(80), + 1015: uint8(78), + 1016: uint8(49), + 1017: uint8(80), + 1018: uint8(49), + 1019: uint8(80), + 1020: uint8(49), + 1021: uint8(80), + 1022: uint8(49), + 1023: uint8(80), + 1024: uint8(49), + 1025: uint8(80), + 1026: uint8(49), + 1027: uint8(80), + 1028: uint8(49), + 1029: uint8(80), + 1030: uint8(49), + 1031: uint8(2), + 1032: uint8(135), + 1033: uint8(166), + 1034: uint8(135), + 1035: uint8(166), + 1036: uint8(135), + 1037: uint8(166), + 1038: uint8(135), + 1039: uint8(166), + 1040: uint8(135), + 1041: uint8(166), + 1042: uint8(135), + 1043: uint8(166), + 1044: uint8(135), + 1045: uint8(166), + 1046: uint8(135), + 1047: uint8(166), + 1048: uint8(42), + 1049: uint8(43), + 1050: uint8(43), + 1051: uint8(43), + 1052: uint8(43), + 1053: uint8(43), + 1054: uint8(43), + 1055: uint8(43), + 1056: uint8(43), + 1057: uint8(43), + 1058: uint8(43), + 1059: uint8(43), + 1060: uint8(43), + 1064: uint8(84), + 1065: uint8(86), + 1066: uint8(86), + 1067: uint8(86), + 1068: uint8(86), + 1069: uint8(86), + 1070: uint8(86), + 1071: uint8(86), + 1072: uint8(86), + 1073: uint8(86), + 1074: uint8(86), + 1075: uint8(86), + 1076: uint8(86), + 1171: uint8(84), + 1172: uint8(86), + 1173: uint8(86), + 1174: uint8(86), + 1175: uint8(86), + 1176: uint8(86), + 1177: uint8(86), + 1178: uint8(86), + 1179: uint8(86), + 1180: uint8(86), + 1181: uint8(86), + 1182: uint8(86), + 1183: uint8(86), + 1184: uint8(12), + 1186: uint8(12), + 1187: uint8(42), + 1188: uint8(43), + 1189: uint8(43), + 1190: uint8(43), + 1191: uint8(43), + 1192: uint8(43), + 1193: uint8(43), + 1194: uint8(43), + 1195: uint8(43), + 1196: uint8(43), + 1197: uint8(43), + 1198: uint8(43), + 1199: uint8(43), + 1200: uint8(43), + 1201: uint8(7), + 1202: uint8(42), + 1203: uint8(1), + 1257: uint8(42), + 1258: uint8(43), + 1259: uint8(43), + 1260: uint8(43), + 1261: uint8(43), + 1262: uint8(43), + 1263: uint8(43), + 1264: uint8(43), + 1265: uint8(43), + 1266: uint8(43), + 1267: uint8(43), + 1268: uint8(43), + 1269: uint8(43), + 1270: uint8(43), + 1271: uint8(43), + 1272: uint8(43), + 1273: uint8(43), + 1274: uint8(43), + 1275: uint8(43), + 1276: uint8(43), + 1277: uint8(43), + 1278: uint8(43), + 1279: uint8(43), + 1280: uint8(43), + 1281: uint8(43), + 1282: uint8(43), + 1283: uint8(43), + 1284: uint8(86), + 1285: uint8(86), + 1286: uint8(108), + 1287: uint8(129), + 1288: uint8(21), + 1290: uint8(43), + 1291: uint8(43), + 1292: uint8(43), + 1293: uint8(43), + 1294: uint8(43), + 1295: uint8(43), + 1296: uint8(43), + 1297: uint8(43), + 1298: uint8(43), + 1299: uint8(43), + 1300: uint8(43), + 1301: uint8(43), + 1302: uint8(43), + 1303: uint8(43), + 1304: uint8(43), + 1305: uint8(43), + 1306: uint8(43), + 1307: uint8(43), + 1308: uint8(43), + 1309: uint8(43), + 1310: uint8(43), + 1311: uint8(43), + 1312: uint8(43), + 1313: uint8(43), + 1314: uint8(43), + 1315: uint8(43), + 1316: uint8(43), + 1317: uint8(43), + 1318: uint8(43), + 1319: uint8(43), + 1320: uint8(43), + 1321: uint8(43), + 1322: uint8(43), + 1323: uint8(43), + 1324: uint8(43), + 1325: uint8(43), + 1326: uint8(43), + 1327: uint8(43), + 1328: uint8(43), + 1329: uint8(43), + 1330: uint8(43), + 1331: uint8(43), + 1332: uint8(7), + 1333: uint8(108), + 1334: uint8(3), + 1335: uint8(65), + 1336: uint8(43), + 1337: uint8(43), + 1338: uint8(86), + 1339: uint8(86), + 1340: uint8(86), + 1341: uint8(86), + 1342: uint8(86), + 1343: uint8(86), + 1344: uint8(86), + 1345: uint8(86), + 1346: uint8(86), + 1347: uint8(86), + 1348: uint8(86), + 1349: uint8(86), + 1350: uint8(86), + 1351: uint8(86), + 1352: uint8(44), + 1353: uint8(86), + 1354: uint8(43), + 1355: uint8(43), + 1356: uint8(43), + 1357: uint8(43), + 1358: uint8(43), + 1359: uint8(43), + 1360: uint8(43), + 1361: uint8(43), + 1362: uint8(43), + 1363: uint8(43), + 1364: uint8(43), + 1365: uint8(43), + 1366: uint8(43), + 1367: uint8(43), + 1368: uint8(43), + 1369: uint8(43), + 1370: uint8(43), + 1371: uint8(43), + 1372: uint8(43), + 1373: uint8(43), + 1374: uint8(43), + 1375: uint8(1), + 1416: uint8(12), + 1417: uint8(108), + 1423: uint8(6), + 1462: uint8(6), + 1463: uint8(37), + 1464: uint8(6), + 1465: uint8(37), + 1466: uint8(6), + 1467: uint8(37), + 1468: uint8(6), + 1469: uint8(37), + 1470: uint8(6), + 1471: uint8(37), + 1472: uint8(6), + 1473: uint8(37), + 1474: uint8(6), + 1475: uint8(37), + 1476: uint8(6), + 1477: uint8(37), + 1478: uint8(6), + 1479: uint8(37), + 1480: uint8(6), + 1481: uint8(37), + 1482: uint8(6), + 1483: uint8(37), + 1484: uint8(6), + 1485: uint8(37), + 1486: uint8(6), + 1487: uint8(37), + 1488: uint8(6), + 1489: uint8(37), + 1490: uint8(6), + 1491: uint8(37), + 1492: uint8(6), + 1493: uint8(37), + 1494: uint8(6), + 1495: uint8(37), + 1496: uint8(6), + 1497: uint8(37), + 1498: uint8(6), + 1499: uint8(37), + 1500: uint8(6), + 1501: uint8(37), + 1502: uint8(6), + 1503: uint8(37), + 1504: uint8(6), + 1505: uint8(37), + 1506: uint8(6), + 1507: uint8(37), + 1508: uint8(6), + 1509: uint8(37), + 1510: uint8(6), + 1511: uint8(37), + 1512: uint8(86), + 1513: uint8(122), + 1514: uint8(158), + 1515: uint8(38), + 1516: uint8(6), + 1517: uint8(37), + 1518: uint8(6), + 1519: uint8(37), + 1520: uint8(6), + 1521: uint8(37), + 1522: uint8(6), + 1523: uint8(37), + 1524: uint8(6), + 1525: uint8(37), + 1526: uint8(6), + 1527: uint8(37), + 1528: uint8(6), + 1529: uint8(37), + 1530: uint8(6), + 1531: uint8(37), + 1532: uint8(6), + 1533: uint8(37), + 1534: uint8(6), + 1535: uint8(37), + 1536: uint8(6), + 1537: uint8(37), + 1538: uint8(6), + 1539: uint8(37), + 1540: uint8(6), + 1541: uint8(37), + 1542: uint8(6), + 1543: uint8(37), + 1544: uint8(6), + 1545: uint8(37), + 1546: uint8(6), + 1547: uint8(1), + 1548: uint8(43), + 1549: uint8(43), + 1550: uint8(79), + 1551: uint8(86), + 1552: uint8(86), + 1553: uint8(44), + 1554: uint8(43), + 1555: uint8(127), + 1556: uint8(86), + 1557: uint8(86), + 1558: uint8(57), + 1559: uint8(43), + 1560: uint8(43), + 1561: uint8(85), + 1562: uint8(86), + 1563: uint8(86), + 1564: uint8(43), + 1565: uint8(43), + 1566: uint8(79), + 1567: uint8(86), + 1568: uint8(86), + 1569: uint8(44), + 1570: uint8(43), + 1571: uint8(127), + 1572: uint8(86), + 1573: uint8(86), + 1574: uint8(129), + 1575: uint8(55), + 1576: uint8(117), + 1577: uint8(91), + 1578: uint8(123), + 1579: uint8(92), + 1580: uint8(43), + 1581: uint8(43), + 1582: uint8(79), + 1583: uint8(86), + 1584: uint8(86), + 1585: uint8(2), + 1586: uint8(172), + 1587: uint8(4), + 1590: uint8(57), + 1591: uint8(43), + 1592: uint8(43), + 1593: uint8(85), + 1594: uint8(86), + 1595: uint8(86), + 1596: uint8(43), + 1597: uint8(43), + 1598: uint8(79), + 1599: uint8(86), + 1600: uint8(86), + 1601: uint8(44), + 1602: uint8(43), + 1603: uint8(43), + 1604: uint8(86), + 1605: uint8(86), + 1606: uint8(50), + 1607: uint8(19), + 1608: uint8(129), + 1609: uint8(87), + 1611: uint8(111), + 1612: uint8(129), + 1613: uint8(126), + 1614: uint8(201), + 1615: uint8(215), + 1616: uint8(126), + 1617: uint8(45), + 1618: uint8(129), + 1619: uint8(129), + 1620: uint8(14), + 1621: uint8(126), + 1622: uint8(57), + 1623: uint8(127), + 1624: uint8(111), + 1625: uint8(87), + 1627: uint8(129), + 1628: uint8(129), + 1629: uint8(126), + 1630: uint8(21), + 1632: uint8(126), + 1633: uint8(3), + 1634: uint8(43), + 1635: uint8(43), + 1636: uint8(43), + 1637: uint8(43), + 1638: uint8(43), + 1639: uint8(43), + 1640: uint8(43), + 1641: uint8(43), + 1642: uint8(43), + 1643: uint8(43), + 1644: uint8(43), + 1645: uint8(43), + 1646: uint8(7), + 1647: uint8(43), + 1648: uint8(36), + 1649: uint8(43), + 1650: uint8(151), + 1651: uint8(43), + 1652: uint8(43), + 1653: uint8(43), + 1654: uint8(43), + 1655: uint8(43), + 1656: uint8(43), + 1657: uint8(43), + 1658: uint8(43), + 1659: uint8(43), + 1660: uint8(42), + 1661: uint8(43), + 1662: uint8(43), + 1663: uint8(43), + 1664: uint8(43), + 1665: uint8(43), + 1666: uint8(86), + 1667: uint8(86), + 1668: uint8(86), + 1669: uint8(86), + 1670: uint8(86), + 1671: uint8(128), + 1672: uint8(129), + 1673: uint8(129), + 1674: uint8(129), + 1675: uint8(129), + 1676: uint8(57), + 1677: uint8(187), + 1678: uint8(42), + 1679: uint8(43), + 1680: uint8(43), + 1681: uint8(43), + 1682: uint8(43), + 1683: uint8(43), + 1684: uint8(43), + 1685: uint8(43), + 1686: uint8(43), + 1687: uint8(43), + 1688: uint8(43), + 1689: uint8(43), + 1690: uint8(43), + 1691: uint8(43), + 1692: uint8(43), + 1693: uint8(43), + 1694: uint8(43), + 1695: uint8(43), + 1696: uint8(43), + 1697: uint8(43), + 1698: uint8(43), + 1699: uint8(43), + 1700: uint8(43), + 1701: uint8(43), + 1702: uint8(43), + 1703: uint8(43), + 1704: uint8(43), + 1705: uint8(43), + 1706: uint8(43), + 1707: uint8(43), + 1708: uint8(43), + 1709: uint8(43), + 1710: uint8(43), + 1711: uint8(43), + 1712: uint8(43), + 1713: uint8(43), + 1714: uint8(43), + 1715: uint8(43), + 1716: uint8(43), + 1717: uint8(43), + 1718: uint8(43), + 1719: uint8(1), + 1720: uint8(129), + 1721: uint8(129), + 1722: uint8(129), + 1723: uint8(129), + 1724: uint8(129), + 1725: uint8(129), + 1726: uint8(129), + 1727: uint8(129), + 1728: uint8(129), + 1729: uint8(129), + 1730: uint8(129), + 1731: uint8(129), + 1732: uint8(129), + 1733: uint8(129), + 1734: uint8(129), + 1735: uint8(201), + 1736: uint8(172), + 1737: uint8(172), + 1738: uint8(172), + 1739: uint8(172), + 1740: uint8(172), + 1741: uint8(172), + 1742: uint8(172), + 1743: uint8(172), + 1744: uint8(172), + 1745: uint8(172), + 1746: uint8(172), + 1747: uint8(172), + 1748: uint8(172), + 1749: uint8(172), + 1750: uint8(172), + 1751: uint8(208), + 1752: uint8(13), + 1754: uint8(78), + 1755: uint8(49), + 1756: uint8(2), + 1757: uint8(180), + 1758: uint8(193), + 1759: uint8(193), + 1760: uint8(215), + 1761: uint8(215), + 1762: uint8(36), + 1763: uint8(80), + 1764: uint8(49), + 1765: uint8(80), + 1766: uint8(49), + 1767: uint8(80), + 1768: uint8(49), + 1769: uint8(80), + 1770: uint8(49), + 1771: uint8(80), + 1772: uint8(49), + 1773: uint8(80), + 1774: uint8(49), + 1775: uint8(80), + 1776: uint8(49), + 1777: uint8(80), + 1778: uint8(49), + 1779: uint8(80), + 1780: uint8(49), + 1781: uint8(80), + 1782: uint8(49), + 1783: uint8(80), + 1784: uint8(49), + 1785: uint8(80), + 1786: uint8(49), + 1787: uint8(80), + 1788: uint8(49), + 1789: uint8(80), + 1790: uint8(49), + 1791: uint8(80), + 1792: uint8(49), + 1793: uint8(80), + 1794: uint8(49), + 1795: uint8(80), + 1796: uint8(215), + 1797: uint8(215), + 1798: uint8(83), + 1799: uint8(193), + 1800: uint8(71), + 1801: uint8(212), + 1802: uint8(215), + 1803: uint8(215), + 1804: uint8(215), + 1805: uint8(5), + 1806: uint8(43), + 1807: uint8(43), + 1808: uint8(43), + 1809: uint8(43), + 1810: uint8(43), + 1811: uint8(43), + 1812: uint8(43), + 1813: uint8(43), + 1814: uint8(43), + 1815: uint8(43), + 1816: uint8(43), + 1817: uint8(43), + 1818: uint8(7), + 1819: uint8(1), + 1821: uint8(1), + 1913: uint8(78), + 1914: uint8(49), + 1915: uint8(80), + 1916: uint8(49), + 1917: uint8(80), + 1918: uint8(49), + 1919: uint8(80), + 1920: uint8(49), + 1921: uint8(80), + 1922: uint8(49), + 1923: uint8(80), + 1924: uint8(49), + 1925: uint8(80), + 1926: uint8(49), + 1927: uint8(80), + 1928: uint8(13), + 1934: uint8(36), + 1935: uint8(80), + 1936: uint8(49), + 1937: uint8(80), + 1938: uint8(49), + 1939: uint8(80), + 1940: uint8(49), + 1941: uint8(80), + 1942: uint8(49), + 1943: uint8(80), + 1978: uint8(43), + 1979: uint8(43), + 1980: uint8(43), + 1981: uint8(43), + 1982: uint8(43), + 1983: uint8(43), + 1984: uint8(43), + 1985: uint8(43), + 1986: uint8(43), + 1987: uint8(43), + 1988: uint8(43), + 1989: uint8(121), + 1990: uint8(92), + 1991: uint8(123), + 1992: uint8(92), + 1993: uint8(123), + 1994: uint8(79), + 1995: uint8(123), + 1996: uint8(92), + 1997: uint8(123), + 1998: uint8(92), + 1999: uint8(123), + 2000: uint8(92), + 2001: uint8(123), + 2002: uint8(92), + 2003: uint8(123), + 2004: uint8(92), + 2005: uint8(123), + 2006: uint8(92), + 2007: uint8(123), + 2008: uint8(92), + 2009: uint8(123), + 2010: uint8(92), + 2011: uint8(123), + 2012: uint8(92), + 2013: uint8(123), + 2014: uint8(92), + 2015: uint8(45), + 2016: uint8(43), + 2017: uint8(43), + 2018: uint8(121), + 2019: uint8(20), + 2020: uint8(92), + 2021: uint8(123), + 2022: uint8(92), + 2023: uint8(45), + 2024: uint8(121), + 2025: uint8(42), + 2026: uint8(92), + 2027: uint8(39), + 2028: uint8(92), + 2029: uint8(123), + 2030: uint8(92), + 2031: uint8(123), + 2032: uint8(92), + 2033: uint8(123), + 2034: uint8(164), + 2036: uint8(10), + 2037: uint8(180), + 2038: uint8(92), + 2039: uint8(123), + 2040: uint8(92), + 2041: uint8(123), + 2042: uint8(79), + 2043: uint8(3), + 2044: uint8(42), + 2045: uint8(43), + 2046: uint8(43), + 2047: uint8(43), + 2048: uint8(43), + 2049: uint8(43), + 2050: uint8(43), + 2051: uint8(43), + 2052: uint8(43), + 2053: uint8(43), + 2054: uint8(43), + 2055: uint8(43), + 2056: uint8(43), + 2057: uint8(43), + 2058: uint8(43), + 2059: uint8(43), + 2060: uint8(43), + 2061: uint8(43), + 2062: uint8(43), + 2063: uint8(1), + 2091: uint8(72), + 2101: uint8(42), + 2102: uint8(43), + 2103: uint8(43), + 2104: uint8(43), + 2105: uint8(43), + 2106: uint8(43), + 2107: uint8(43), + 2108: uint8(43), + 2109: uint8(43), + 2110: uint8(43), + 2111: uint8(43), + 2112: uint8(43), + 2113: uint8(43), + 2114: uint8(43), + 2115: uint8(43), + 2116: uint8(43), + 2117: uint8(43), + 2118: uint8(43), + 2119: uint8(43), + 2120: uint8(43), + 2121: uint8(43), + 2122: uint8(43), + 2123: uint8(43), + 2124: uint8(43), + 2125: uint8(43), + 2126: uint8(43), + 2127: uint8(43), + 2161: uint8(43), + 2162: uint8(43), + 2163: uint8(43), + 2164: uint8(43), + 2165: uint8(43), + 2166: uint8(43), + 2167: uint8(43), + 2168: uint8(43), + 2169: uint8(7), + 2171: uint8(72), + 2172: uint8(86), + 2173: uint8(86), + 2174: uint8(86), + 2175: uint8(86), + 2176: uint8(86), + 2177: uint8(86), + 2178: uint8(86), + 2179: uint8(86), + 2180: uint8(2), + 2236: uint8(43), + 2237: uint8(43), + 2238: uint8(43), + 2239: uint8(43), + 2240: uint8(43), + 2241: uint8(43), + 2242: uint8(43), + 2243: uint8(43), + 2244: uint8(43), + 2245: uint8(43), + 2246: uint8(43), + 2247: uint8(43), + 2248: uint8(43), + 2249: uint8(85), + 2250: uint8(86), + 2251: uint8(86), + 2252: uint8(86), + 2253: uint8(86), + 2254: uint8(86), + 2255: uint8(86), + 2256: uint8(86), + 2257: uint8(86), + 2258: uint8(86), + 2259: uint8(86), + 2260: uint8(86), + 2261: uint8(86), + 2262: uint8(14), + 2294: uint8(36), + 2295: uint8(43), + 2296: uint8(43), + 2297: uint8(43), + 2298: uint8(43), + 2299: uint8(43), + 2300: uint8(43), + 2301: uint8(43), + 2302: uint8(43), + 2303: uint8(43), + 2304: uint8(43), + 2305: uint8(43), + 2306: uint8(7), + 2308: uint8(86), + 2309: uint8(86), + 2310: uint8(86), + 2311: uint8(86), + 2312: uint8(86), + 2313: uint8(86), + 2314: uint8(86), + 2315: uint8(86), + 2316: uint8(86), + 2317: uint8(86), + 2318: uint8(86), + 2319: uint8(86), + 2364: uint8(36), + 2365: uint8(43), + 2366: uint8(43), + 2367: uint8(43), + 2368: uint8(43), + 2369: uint8(43), + 2370: uint8(43), + 2371: uint8(43), + 2372: uint8(43), + 2373: uint8(43), + 2374: uint8(43), + 2375: uint8(43), + 2376: uint8(43), + 2377: uint8(43), + 2378: uint8(43), + 2379: uint8(43), + 2380: uint8(43), + 2381: uint8(7), + 2386: uint8(86), + 2387: uint8(86), + 2388: uint8(86), + 2389: uint8(86), + 2390: uint8(86), + 2391: uint8(86), + 2392: uint8(86), + 2393: uint8(86), + 2394: uint8(86), + 2395: uint8(86), + 2396: uint8(86), + 2397: uint8(86), + 2398: uint8(86), + 2399: uint8(86), + 2400: uint8(86), + 2401: uint8(86), + 2402: uint8(86), + 2461: uint8(42), + 2462: uint8(43), + 2463: uint8(43), + 2464: uint8(43), + 2465: uint8(43), + 2466: uint8(43), + 2467: uint8(43), + 2468: uint8(43), + 2469: uint8(43), + 2470: uint8(43), + 2471: uint8(43), + 2472: uint8(86), + 2473: uint8(86), + 2474: uint8(86), + 2475: uint8(86), + 2476: uint8(86), + 2477: uint8(86), + 2478: uint8(86), + 2479: uint8(86), + 2480: uint8(86), + 2481: uint8(86), + 2482: uint8(14), + 2515: uint8(42), + 2516: uint8(43), + 2517: uint8(43), + 2518: uint8(43), + 2519: uint8(43), + 2520: uint8(43), + 2521: uint8(43), + 2522: uint8(43), + 2523: uint8(43), + 2524: uint8(43), + 2525: uint8(43), + 2526: uint8(86), + 2527: uint8(86), + 2528: uint8(86), + 2529: uint8(86), + 2530: uint8(86), + 2531: uint8(86), + 2532: uint8(86), + 2533: uint8(86), + 2534: uint8(86), + 2535: uint8(86), + 2536: uint8(14), + 2580: uint8(43), + 2581: uint8(43), + 2582: uint8(43), + 2583: uint8(43), + 2584: uint8(43), + 2585: uint8(43), + 2586: uint8(43), + 2587: uint8(43), + 2588: uint8(43), + 2589: uint8(43), + 2590: uint8(43), + 2591: uint8(85), + 2592: uint8(86), + 2593: uint8(86), + 2594: uint8(86), + 2595: uint8(86), + 2596: uint8(86), + 2597: uint8(86), + 2598: uint8(86), + 2599: uint8(86), + 2600: uint8(86), + 2601: uint8(86), + 2602: uint8(14), +} +var _rules = [240]int32{ + 1: int32(0x2001), + 2: -int32(0x2000), + 3: int32(0x1dbf00), + 4: int32(0x2e700), + 5: int32(0x7900), + 6: int32(0x2402), + 7: int32(0x101), + 8: -int32(0x100), + 10: int32(0x201), + 11: -int32(0x200), + 12: -int32(0xc6ff), + 13: -int32(0xe800), + 14: -int32(0x78ff), + 15: -int32(0x12c00), + 16: int32(0xc300), + 17: int32(0xd201), + 18: int32(0xce01), + 19: int32(0xcd01), + 20: int32(0x4f01), + 21: int32(0xca01), + 22: int32(0xcb01), + 23: int32(0xcf01), + 24: int32(0x6100), + 25: int32(0xd301), + 26: int32(0xd101), + 27: int32(0xa300), + 28: int32(0xd501), + 29: int32(0x8200), + 30: int32(0xd601), + 31: int32(0xda01), + 32: int32(0xd901), + 33: int32(0xdb01), + 34: int32(0x3800), + 35: int32(0x3), + 36: -int32(0x4f00), + 37: -int32(0x60ff), + 38: -int32(0x37ff), + 39: int32(0x242802), + 41: int32(0x101), + 42: -int32(0x100), + 43: -int32(0xcd00), + 44: -int32(0xda00), + 45: -int32(0x81ff), + 46: int32(0x2a2b01), + 47: -int32(0xa2ff), + 48: int32(0x2a2801), + 49: int32(0x2a3f00), + 50: -int32(0xc2ff), + 51: int32(0x4501), + 52: int32(0x4701), + 53: int32(0x2a1f00), + 54: int32(0x2a1c00), + 55: int32(0x2a1e00), + 56: -int32(0xd200), + 57: -int32(0xce00), + 58: -int32(0xca00), + 59: -int32(0xcb00), + 60: int32(0xa54f00), + 61: int32(0xa54b00), + 62: -int32(0xcf00), + 63: int32(0xa52800), + 64: int32(0xa54400), + 65: -int32(0xd100), + 66: -int32(0xd300), + 67: int32(0x29f700), + 68: int32(0xa54100), + 69: int32(0x29fd00), + 70: -int32(0xd500), + 71: -int32(0xd600), + 72: int32(0x29e700), + 73: int32(0xa54300), + 74: int32(0xa52a00), + 75: -int32(0x4500), + 76: -int32(0xd900), + 77: -int32(0x4700), + 78: -int32(0xdb00), + 79: int32(0xa51500), + 80: int32(0xa51200), + 81: int32(0x4c2402), + 83: int32(0x2001), + 84: -int32(0x2000), + 85: int32(0x101), + 86: -int32(0x100), + 87: int32(0x5400), + 88: int32(0x7401), + 89: int32(0x2601), + 90: int32(0x2501), + 91: int32(0x4001), + 92: int32(0x3f01), + 93: -int32(0x2600), + 94: -int32(0x2500), + 95: -int32(0x1f00), + 96: -int32(0x4000), + 97: -int32(0x3f00), + 98: int32(0x801), + 99: -int32(0x3e00), + 100: -int32(0x3900), + 101: -int32(0x2f00), + 102: -int32(0x3600), + 103: -int32(0x800), + 104: -int32(0x5600), + 105: -int32(0x5000), + 106: int32(0x700), + 107: -int32(0x7400), + 108: -int32(0x3bff), + 109: -int32(0x6000), + 110: -int32(0x6ff), + 111: int32(0x701a02), + 112: int32(0x101), + 113: -int32(0x100), + 114: int32(0x2001), + 115: -int32(0x2000), + 116: int32(0x5001), + 117: int32(0xf01), + 118: -int32(0xf00), + 120: int32(0x3001), + 121: -int32(0x3000), + 122: int32(0x101), + 123: -int32(0x100), + 125: int32(0xbc000), + 126: int32(0x1c6001), + 128: int32(0x97d001), + 129: int32(0x801), + 130: -int32(0x800), + 131: int32(0x8a0502), + 133: -int32(0xbbfff), + 134: -int32(0x186200), + 135: int32(0x89c200), + 136: -int32(0x182500), + 137: -int32(0x186e00), + 138: -int32(0x186d00), + 139: -int32(0x186400), + 140: -int32(0x186300), + 141: -int32(0x185c00), + 143: int32(0x8a3800), + 144: int32(0x8a0400), + 145: int32(0xee600), + 146: int32(0x101), + 147: -int32(0x100), + 149: -int32(0x3b00), + 150: -int32(0x1dbeff), + 151: int32(0x8f1d02), + 152: int32(0x800), + 153: -int32(0x7ff), + 155: int32(0x5600), + 156: -int32(0x55ff), + 157: int32(0x4a00), + 158: int32(0x6400), + 159: int32(0x8000), + 160: int32(0x7000), + 161: int32(0x7e00), + 162: int32(0x900), + 163: -int32(0x49ff), + 164: -int32(0x8ff), + 165: -int32(0x1c2500), + 166: -int32(0x63ff), + 167: -int32(0x6fff), + 168: -int32(0x7fff), + 169: -int32(0x7dff), + 170: int32(0xac0502), + 172: int32(0x1001), + 173: -int32(0x1000), + 174: int32(0x1c01), + 175: int32(0x101), + 176: -int32(0x1d5cff), + 177: -int32(0x20beff), + 178: -int32(0x2045ff), + 179: -int32(0x1c00), + 180: int32(0xb10b02), + 181: int32(0x101), + 182: -int32(0x100), + 183: int32(0x3001), + 184: -int32(0x3000), + 186: -int32(0x29f6ff), + 187: -int32(0xee5ff), + 188: -int32(0x29e6ff), + 189: -int32(0x2a2b00), + 190: -int32(0x2a2800), + 191: -int32(0x2a1bff), + 192: -int32(0x29fcff), + 193: -int32(0x2a1eff), + 194: -int32(0x2a1dff), + 195: -int32(0x2a3eff), + 197: -int32(0x1c6000), + 199: int32(0x101), + 200: -int32(0x100), + 201: int32(0xbc0c02), + 203: int32(0x101), + 204: -int32(0x100), + 205: -int32(0xa543ff), + 206: int32(0x3a001), + 207: -int32(0x8a03ff), + 208: -int32(0xa527ff), + 209: int32(0x3000), + 210: -int32(0xa54eff), + 211: -int32(0xa54aff), + 212: -int32(0xa540ff), + 213: -int32(0xa511ff), + 214: -int32(0xa529ff), + 215: -int32(0xa514ff), + 216: -int32(0x2fff), + 217: -int32(0xa542ff), + 218: -int32(0x8a37ff), + 220: -int32(0x97d000), + 221: -int32(0x3a000), + 223: int32(0x2001), + 224: -int32(0x2000), + 226: int32(0x2801), + 227: -int32(0x2800), + 229: int32(0x4001), + 230: -int32(0x4000), + 232: int32(0x2001), + 233: -int32(0x2000), + 235: int32(0x2001), + 236: -int32(0x2000), + 238: int32(0x2201), + 239: -int32(0x2200), +} +var _rulebases = [512]uint8{ + 1: uint8(6), + 2: uint8(39), + 3: uint8(81), + 4: uint8(111), + 5: uint8(119), + 16: uint8(124), + 19: uint8(127), + 28: uint8(131), + 29: uint8(142), + 30: uint8(146), + 31: uint8(151), + 33: uint8(170), + 44: uint8(180), + 45: uint8(196), + 166: uint8(198), + 167: uint8(201), + 171: uint8(219), + 255: uint8(222), + 260: uint8(225), + 268: uint8(228), + 280: uint8(231), + 366: uint8(234), + 489: uint8(237), +} +var _exceptions = [200][2]uint8{ + 0: { + 0: uint8(48), + 1: uint8(12), + }, + 1: { + 0: uint8(49), + 1: uint8(13), + }, + 2: { + 0: uint8(120), + 1: uint8(14), + }, + 3: { + 0: uint8(127), + 1: uint8(15), + }, + 4: { + 0: uint8(128), + 1: uint8(16), + }, + 5: { + 0: uint8(129), + 1: uint8(17), + }, + 6: { + 0: uint8(134), + 1: uint8(18), + }, + 7: { + 0: uint8(137), + 1: uint8(19), + }, + 8: { + 0: uint8(138), + 1: uint8(19), + }, + 9: { + 0: uint8(142), + 1: uint8(20), + }, + 10: { + 0: uint8(143), + 1: uint8(21), + }, + 11: { + 0: uint8(144), + 1: uint8(22), + }, + 12: { + 0: uint8(147), + 1: uint8(19), + }, + 13: { + 0: uint8(148), + 1: uint8(23), + }, + 14: { + 0: uint8(149), + 1: uint8(24), + }, + 15: { + 0: uint8(150), + 1: uint8(25), + }, + 16: { + 0: uint8(151), + 1: uint8(26), + }, + 17: { + 0: uint8(154), + 1: uint8(27), + }, + 18: { + 0: uint8(156), + 1: uint8(25), + }, + 19: { + 0: uint8(157), + 1: uint8(28), + }, + 20: { + 0: uint8(158), + 1: uint8(29), + }, + 21: { + 0: uint8(159), + 1: uint8(30), + }, + 22: { + 0: uint8(166), + 1: uint8(31), + }, + 23: { + 0: uint8(169), + 1: uint8(31), + }, + 24: { + 0: uint8(174), + 1: uint8(31), + }, + 25: { + 0: uint8(177), + 1: uint8(32), + }, + 26: { + 0: uint8(178), + 1: uint8(32), + }, + 27: { + 0: uint8(183), + 1: uint8(33), + }, + 28: { + 0: uint8(191), + 1: uint8(34), + }, + 29: { + 0: uint8(197), + 1: uint8(35), + }, + 30: { + 0: uint8(200), + 1: uint8(35), + }, + 31: { + 0: uint8(203), + 1: uint8(35), + }, + 32: { + 0: uint8(221), + 1: uint8(36), + }, + 33: { + 0: uint8(242), + 1: uint8(35), + }, + 34: { + 0: uint8(246), + 1: uint8(37), + }, + 35: { + 0: uint8(247), + 1: uint8(38), + }, + 36: { + 0: uint8(32), + 1: uint8(45), + }, + 37: { + 0: uint8(58), + 1: uint8(46), + }, + 38: { + 0: uint8(61), + 1: uint8(47), + }, + 39: { + 0: uint8(62), + 1: uint8(48), + }, + 40: { + 0: uint8(63), + 1: uint8(49), + }, + 41: { + 0: uint8(64), + 1: uint8(49), + }, + 42: { + 0: uint8(67), + 1: uint8(50), + }, + 43: { + 0: uint8(68), + 1: uint8(51), + }, + 44: { + 0: uint8(69), + 1: uint8(52), + }, + 45: { + 0: uint8(80), + 1: uint8(53), + }, + 46: { + 0: uint8(81), + 1: uint8(54), + }, + 47: { + 0: uint8(82), + 1: uint8(55), + }, + 48: { + 0: uint8(83), + 1: uint8(56), + }, + 49: { + 0: uint8(84), + 1: uint8(57), + }, + 50: { + 0: uint8(89), + 1: uint8(58), + }, + 51: { + 0: uint8(91), + 1: uint8(59), + }, + 52: { + 0: uint8(92), + 1: uint8(60), + }, + 53: { + 0: uint8(97), + 1: uint8(61), + }, + 54: { + 0: uint8(99), + 1: uint8(62), + }, + 55: { + 0: uint8(101), + 1: uint8(63), + }, + 56: { + 0: uint8(102), + 1: uint8(64), + }, + 57: { + 0: uint8(104), + 1: uint8(65), + }, + 58: { + 0: uint8(105), + 1: uint8(66), + }, + 59: { + 0: uint8(106), + 1: uint8(64), + }, + 60: { + 0: uint8(107), + 1: uint8(67), + }, + 61: { + 0: uint8(108), + 1: uint8(68), + }, + 62: { + 0: uint8(111), + 1: uint8(66), + }, + 63: { + 0: uint8(113), + 1: uint8(69), + }, + 64: { + 0: uint8(114), + 1: uint8(70), + }, + 65: { + 0: uint8(117), + 1: uint8(71), + }, + 66: { + 0: uint8(125), + 1: uint8(72), + }, + 67: { + 0: uint8(130), + 1: uint8(73), + }, + 68: { + 0: uint8(135), + 1: uint8(74), + }, + 69: { + 0: uint8(137), + 1: uint8(75), + }, + 70: { + 0: uint8(138), + 1: uint8(76), + }, + 71: { + 0: uint8(139), + 1: uint8(76), + }, + 72: { + 0: uint8(140), + 1: uint8(77), + }, + 73: { + 0: uint8(146), + 1: uint8(78), + }, + 74: { + 0: uint8(157), + 1: uint8(79), + }, + 75: { + 0: uint8(158), + 1: uint8(80), + }, + 76: { + 0: uint8(69), + 1: uint8(87), + }, + 77: { + 0: uint8(123), + 1: uint8(29), + }, + 78: { + 0: uint8(124), + 1: uint8(29), + }, + 79: { + 0: uint8(125), + 1: uint8(29), + }, + 80: { + 0: uint8(127), + 1: uint8(88), + }, + 81: { + 0: uint8(134), + 1: uint8(89), + }, + 82: { + 0: uint8(136), + 1: uint8(90), + }, + 83: { + 0: uint8(137), + 1: uint8(90), + }, + 84: { + 0: uint8(138), + 1: uint8(90), + }, + 85: { + 0: uint8(140), + 1: uint8(91), + }, + 86: { + 0: uint8(142), + 1: uint8(92), + }, + 87: { + 0: uint8(143), + 1: uint8(92), + }, + 88: { + 0: uint8(172), + 1: uint8(93), + }, + 89: { + 0: uint8(173), + 1: uint8(94), + }, + 90: { + 0: uint8(174), + 1: uint8(94), + }, + 91: { + 0: uint8(175), + 1: uint8(94), + }, + 92: { + 0: uint8(194), + 1: uint8(95), + }, + 93: { + 0: uint8(204), + 1: uint8(96), + }, + 94: { + 0: uint8(205), + 1: uint8(97), + }, + 95: { + 0: uint8(206), + 1: uint8(97), + }, + 96: { + 0: uint8(207), + 1: uint8(98), + }, + 97: { + 0: uint8(208), + 1: uint8(99), + }, + 98: { + 0: uint8(209), + 1: uint8(100), + }, + 99: { + 0: uint8(213), + 1: uint8(101), + }, + 100: { + 0: uint8(214), + 1: uint8(102), + }, + 101: { + 0: uint8(215), + 1: uint8(103), + }, + 102: { + 0: uint8(240), + 1: uint8(104), + }, + 103: { + 0: uint8(241), + 1: uint8(105), + }, + 104: { + 0: uint8(242), + 1: uint8(106), + }, + 105: { + 0: uint8(243), + 1: uint8(107), + }, + 106: { + 0: uint8(244), + 1: uint8(108), + }, + 107: { + 0: uint8(245), + 1: uint8(109), + }, + 108: { + 0: uint8(249), + 1: uint8(110), + }, + 109: { + 0: uint8(253), + 1: uint8(45), + }, + 110: { + 0: uint8(254), + 1: uint8(45), + }, + 111: { + 0: uint8(255), + 1: uint8(45), + }, + 112: { + 0: uint8(80), + 1: uint8(105), + }, + 113: { + 0: uint8(81), + 1: uint8(105), + }, + 114: { + 0: uint8(82), + 1: uint8(105), + }, + 115: { + 0: uint8(83), + 1: uint8(105), + }, + 116: { + 0: uint8(84), + 1: uint8(105), + }, + 117: { + 0: uint8(85), + 1: uint8(105), + }, + 118: { + 0: uint8(86), + 1: uint8(105), + }, + 119: { + 0: uint8(87), + 1: uint8(105), + }, + 120: { + 0: uint8(88), + 1: uint8(105), + }, + 121: { + 0: uint8(89), + 1: uint8(105), + }, + 122: { + 0: uint8(90), + 1: uint8(105), + }, + 123: { + 0: uint8(91), + 1: uint8(105), + }, + 124: { + 0: uint8(92), + 1: uint8(105), + }, + 125: { + 0: uint8(93), + 1: uint8(105), + }, + 126: { + 0: uint8(94), + 1: uint8(105), + }, + 127: { + 0: uint8(95), + 1: uint8(105), + }, + 128: { + 0: uint8(130), + }, + 129: { + 0: uint8(131), + }, + 130: { + 0: uint8(132), + }, + 131: { + 0: uint8(133), + }, + 132: { + 0: uint8(134), + }, + 133: { + 0: uint8(135), + }, + 134: { + 0: uint8(136), + }, + 135: { + 0: uint8(137), + }, + 136: { + 0: uint8(192), + 1: uint8(117), + }, + 137: { + 0: uint8(207), + 1: uint8(118), + }, + 138: { + 0: uint8(128), + 1: uint8(137), + }, + 139: { + 0: uint8(129), + 1: uint8(138), + }, + 140: { + 0: uint8(130), + 1: uint8(139), + }, + 141: { + 0: uint8(133), + 1: uint8(140), + }, + 142: { + 0: uint8(134), + 1: uint8(141), + }, + 143: { + 0: uint8(112), + 1: uint8(157), + }, + 144: { + 0: uint8(113), + 1: uint8(157), + }, + 145: { + 0: uint8(118), + 1: uint8(158), + }, + 146: { + 0: uint8(119), + 1: uint8(158), + }, + 147: { + 0: uint8(120), + 1: uint8(159), + }, + 148: { + 0: uint8(121), + 1: uint8(159), + }, + 149: { + 0: uint8(122), + 1: uint8(160), + }, + 150: { + 0: uint8(123), + 1: uint8(160), + }, + 151: { + 0: uint8(124), + 1: uint8(161), + }, + 152: { + 0: uint8(125), + 1: uint8(161), + }, + 153: { + 0: uint8(179), + 1: uint8(162), + }, + 154: { + 0: uint8(186), + 1: uint8(163), + }, + 155: { + 0: uint8(187), + 1: uint8(163), + }, + 156: { + 0: uint8(188), + 1: uint8(164), + }, + 157: { + 0: uint8(190), + 1: uint8(165), + }, + 158: { + 0: uint8(195), + 1: uint8(162), + }, + 159: { + 0: uint8(204), + 1: uint8(164), + }, + 160: { + 0: uint8(218), + 1: uint8(166), + }, + 161: { + 0: uint8(219), + 1: uint8(166), + }, + 162: { + 0: uint8(229), + 1: uint8(106), + }, + 163: { + 0: uint8(234), + 1: uint8(167), + }, + 164: { + 0: uint8(235), + 1: uint8(167), + }, + 165: { + 0: uint8(236), + 1: uint8(110), + }, + 166: { + 0: uint8(243), + 1: uint8(162), + }, + 167: { + 0: uint8(248), + 1: uint8(168), + }, + 168: { + 0: uint8(249), + 1: uint8(168), + }, + 169: { + 0: uint8(250), + 1: uint8(169), + }, + 170: { + 0: uint8(251), + 1: uint8(169), + }, + 171: { + 0: uint8(252), + 1: uint8(164), + }, + 172: { + 0: uint8(38), + 1: uint8(176), + }, + 173: { + 0: uint8(42), + 1: uint8(177), + }, + 174: { + 0: uint8(43), + 1: uint8(178), + }, + 175: { + 0: uint8(78), + 1: uint8(179), + }, + 176: { + 0: uint8(132), + 1: uint8(8), + }, + 177: { + 0: uint8(98), + 1: uint8(186), + }, + 178: { + 0: uint8(99), + 1: uint8(187), + }, + 179: { + 0: uint8(100), + 1: uint8(188), + }, + 180: { + 0: uint8(101), + 1: uint8(189), + }, + 181: { + 0: uint8(102), + 1: uint8(190), + }, + 182: { + 0: uint8(109), + 1: uint8(191), + }, + 183: { + 0: uint8(110), + 1: uint8(192), + }, + 184: { + 0: uint8(111), + 1: uint8(193), + }, + 185: { + 0: uint8(112), + 1: uint8(194), + }, + 186: { + 0: uint8(126), + 1: uint8(195), + }, + 187: { + 0: uint8(127), + 1: uint8(195), + }, + 188: { + 0: uint8(125), + 1: uint8(207), + }, + 189: { + 0: uint8(141), + 1: uint8(208), + }, + 190: { + 0: uint8(148), + 1: uint8(209), + }, + 191: { + 0: uint8(171), + 1: uint8(210), + }, + 192: { + 0: uint8(172), + 1: uint8(211), + }, + 193: { + 0: uint8(173), + 1: uint8(212), + }, + 194: { + 0: uint8(176), + 1: uint8(213), + }, + 195: { + 0: uint8(177), + 1: uint8(214), + }, + 196: { + 0: uint8(178), + 1: uint8(215), + }, + 197: { + 0: uint8(196), + 1: uint8(216), + }, + 198: { + 0: uint8(197), + 1: uint8(217), + }, + 199: { + 0: uint8(198), + 1: uint8(218), + }, +} + +func _casemap(tls *TLS, c uint32, dir int32) (r1 int32) { + var b, rt, try, v, x, xb, xn, y uint32 + var c0, r, rd, v1 int32 + _, _, _, _, _, _, _, _, _, _, _, _ = b, c0, r, rd, rt, try, v, x, xb, xn, y, v1 + c0 = Int32FromUint32(c) + if c >= uint32(0x20000) { + return Int32FromUint32(c) + } + b = c >> int32(8) + c = c & uint32(255) + x = c / uint32(3) + y = c % uint32(3) + /* lookup entry in two-level base-6 table */ + v = uint32(_tab1[Uint32FromInt32(Int32FromUint8(_tab1[b])*int32(86))+x]) + v = v * Uint32FromInt32(_mt[y]) >> int32(11) % uint32(6) + /* use the bit vector out of the tables as an index into + * a block-specific set of rules and decode the rule into + * a type and a case-mapping delta. */ + r = _rules[uint32(_rulebases[b])+v] + rt = Uint32FromInt32(r & int32(255)) + rd = r >> int32(8) + /* rules 0/1 are simple lower/upper case with a delta. + * apply according to desired mapping direction. */ + if rt < uint32(2) { + return Int32FromUint32(Uint32FromInt32(c0) + Uint32FromInt32(rd)&-(rt^Uint32FromInt32(dir))) + } + /* binary search. endpoints of the binary search for + * this block are stored in the rule delta field. */ + xn = Uint32FromInt32(rd & int32(0xff)) + xb = Uint32FromInt32(rd) >> int32(8) + for xn != 0 { + try = uint32(**(**uint8)(__ccgo_up(uintptr(unsafe.Pointer(&_exceptions)) + uintptr(xb+xn/uint32(2))*2))) + if try == c { + r = _rules[**(**uint8)(__ccgo_up(uintptr(unsafe.Pointer(&_exceptions)) + uintptr(xb+xn/uint32(2))*2 + 1))] + rt = Uint32FromInt32(r & int32(255)) + rd = r >> int32(8) + if rt < uint32(2) { + return Int32FromUint32(Uint32FromInt32(c0) + Uint32FromInt32(rd)&-(rt^Uint32FromInt32(dir))) + } + /* Hard-coded for the four exceptional titlecase */ + if dir != 0 { + v1 = -int32(1) + } else { + v1 = int32(1) + } + return c0 + v1 + } else { + if try > c { + xn = xn / uint32(2) + } else { + xb = xb + xn/uint32(2) + xn = xn - xn/uint32(2) + } + } + } + return c0 +} + +var _mt = [3]int32{ + 0: int32(2048), + 1: int32(342), + 2: int32(57), +} + +func Xtowlower(tls *TLS, wc Twint_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Uint32FromInt32(_casemap(tls, wc, 0)) +} + +func Xtowupper(tls *TLS, wc Twint_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Uint32FromInt32(_casemap(tls, wc, int32(1))) +} + +func X__towupper_l(tls *TLS, c Twint_t, l Tlocale_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xtowupper(tls, c) +} + +func X__towlower_l(tls *TLS, c Twint_t, l Tlocale_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xtowlower(tls, c) +} + +func Xtowlower_l(tls *TLS, c Twint_t, l Tlocale_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__towlower_l(tls, c, l) +} + +func Xtowupper_l(tls *TLS, c Twint_t, l Tlocale_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__towupper_l(tls, c, l) +} + +func Xwcswidth(tls *TLS, wcs uintptr, n Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wcs=%v n=%v, (%v:)", tls, wcs, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var k, l, v3 int32 + var v2 Tsize_t + var v4 bool + _, _, _, _, _ = k, l, v2, v3, v4 + l = 0 + k = 0 + for { + v2 = n + n = n - 1 + if v4 = v2 != 0 && **(**Twchar_t)(__ccgo_up(wcs)) != 0; v4 { + v3 = Xwcwidth(tls, **(**Twchar_t)(__ccgo_up(wcs))) + k = v3 + } + if !(v4 && v3 >= 0) { + break + } + goto _1 + _1: + ; + l = l + k + wcs += 4 + } + if k < 0 { + v3 = k + } else { + v3 = l + } + return v3 +} + +func Xwctrans(tls *TLS, class uintptr) (r Twctrans_t) { + if __ccgo_strace { + trc("tls=%v class=%v, (%v:)", tls, class, origin(2)) + defer func() { trc("-> %v", r) }() + } + if !(Xstrcmp(tls, class, __ccgo_ts+196) != 0) { + return UintptrFromInt32(1) + } + if !(Xstrcmp(tls, class, __ccgo_ts+204) != 0) { + return UintptrFromInt32(2) + } + return uintptr(0) +} + +func Xtowctrans(tls *TLS, wc Twint_t, trans Twctrans_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v wc=%v trans=%v, (%v:)", tls, wc, trans, origin(2)) + defer func() { trc("-> %v", r) }() + } + if trans == UintptrFromInt32(1) { + return Xtowupper(tls, wc) + } + if trans == UintptrFromInt32(2) { + return Xtowlower(tls, wc) + } + return wc +} + +func X__wctrans_l(tls *TLS, s uintptr, l Tlocale_t) (r Twctrans_t) { + if __ccgo_strace { + trc("tls=%v s=%v l=%v, (%v:)", tls, s, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwctrans(tls, s) +} + +func X__towctrans_l(tls *TLS, c Twint_t, t Twctrans_t, l Tlocale_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v t=%v l=%v, (%v:)", tls, c, t, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xtowctrans(tls, c, t) +} + +func Xtowctrans_l(tls *TLS, c Twint_t, t Twctrans_t, l Tlocale_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v t=%v l=%v, (%v:)", tls, c, t, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__towctrans_l(tls, c, t, l) +} + +func Xwctrans_l(tls *TLS, s uintptr, l Tlocale_t) (r Twctrans_t) { + if __ccgo_strace { + trc("tls=%v s=%v l=%v, (%v:)", tls, s, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__wctrans_l(tls, s, l) +} + +var _table5 = [2784]uint8{ + 0: uint8(16), + 1: uint8(16), + 2: uint8(16), + 3: uint8(18), + 4: uint8(19), + 5: uint8(20), + 6: uint8(21), + 7: uint8(22), + 8: uint8(23), + 9: uint8(24), + 10: uint8(25), + 11: uint8(26), + 12: uint8(27), + 13: uint8(28), + 14: uint8(29), + 15: uint8(30), + 16: uint8(31), + 17: uint8(32), + 18: uint8(16), + 19: uint8(33), + 20: uint8(16), + 21: uint8(16), + 22: uint8(16), + 23: uint8(34), + 24: uint8(35), + 25: uint8(36), + 26: uint8(37), + 27: uint8(38), + 28: uint8(39), + 29: uint8(40), + 30: uint8(16), + 31: uint8(16), + 32: uint8(41), + 33: uint8(16), + 34: uint8(16), + 35: uint8(16), + 36: uint8(16), + 37: uint8(16), + 38: uint8(16), + 39: uint8(16), + 40: uint8(16), + 41: uint8(16), + 42: uint8(16), + 43: uint8(16), + 44: uint8(42), + 45: uint8(43), + 46: uint8(16), + 47: uint8(16), + 48: uint8(44), + 49: uint8(16), + 50: uint8(16), + 51: uint8(16), + 52: uint8(16), + 53: uint8(16), + 54: uint8(16), + 55: uint8(16), + 56: uint8(16), + 57: uint8(16), + 58: uint8(16), + 59: uint8(16), + 60: uint8(16), + 61: uint8(16), + 62: uint8(16), + 63: uint8(16), + 64: uint8(16), + 65: uint8(16), + 66: uint8(16), + 67: uint8(16), + 68: uint8(16), + 69: uint8(16), + 70: uint8(16), + 71: uint8(16), + 72: uint8(16), + 73: uint8(16), + 74: uint8(16), + 75: uint8(16), + 76: uint8(16), + 77: uint8(16), + 78: uint8(16), + 79: uint8(16), + 80: uint8(16), + 81: uint8(16), + 82: uint8(16), + 83: uint8(16), + 84: uint8(16), + 85: uint8(16), + 86: uint8(16), + 87: uint8(16), + 88: uint8(16), + 89: uint8(16), + 90: uint8(16), + 91: uint8(16), + 92: uint8(16), + 93: uint8(16), + 94: uint8(16), + 95: uint8(16), + 96: uint8(16), + 97: uint8(16), + 98: uint8(16), + 99: uint8(16), + 100: uint8(16), + 101: uint8(16), + 102: uint8(16), + 103: uint8(16), + 104: uint8(16), + 105: uint8(16), + 106: uint8(16), + 107: uint8(16), + 108: uint8(16), + 109: uint8(16), + 110: uint8(16), + 111: uint8(16), + 112: uint8(16), + 113: uint8(16), + 114: uint8(16), + 115: uint8(16), + 116: uint8(16), + 117: uint8(16), + 118: uint8(16), + 119: uint8(16), + 120: uint8(16), + 121: uint8(16), + 122: uint8(16), + 123: uint8(16), + 124: uint8(16), + 125: uint8(16), + 126: uint8(16), + 127: uint8(16), + 128: uint8(16), + 129: uint8(16), + 130: uint8(16), + 131: uint8(16), + 132: uint8(16), + 133: uint8(16), + 134: uint8(16), + 135: uint8(16), + 136: uint8(16), + 137: uint8(16), + 138: uint8(16), + 139: uint8(16), + 140: uint8(16), + 141: uint8(16), + 142: uint8(16), + 143: uint8(16), + 144: uint8(16), + 145: uint8(16), + 146: uint8(16), + 147: uint8(16), + 148: uint8(16), + 149: uint8(16), + 150: uint8(16), + 151: uint8(16), + 152: uint8(16), + 153: uint8(16), + 154: uint8(16), + 155: uint8(16), + 156: uint8(16), + 157: uint8(16), + 158: uint8(16), + 159: uint8(16), + 160: uint8(16), + 161: uint8(16), + 162: uint8(16), + 163: uint8(16), + 164: uint8(16), + 165: uint8(16), + 166: uint8(45), + 167: uint8(16), + 168: uint8(46), + 169: uint8(47), + 170: uint8(48), + 171: uint8(49), + 172: uint8(16), + 173: uint8(16), + 174: uint8(16), + 175: uint8(16), + 176: uint8(16), + 177: uint8(16), + 178: uint8(16), + 179: uint8(16), + 180: uint8(16), + 181: uint8(16), + 182: uint8(16), + 183: uint8(16), + 184: uint8(16), + 185: uint8(16), + 186: uint8(16), + 187: uint8(16), + 188: uint8(16), + 189: uint8(16), + 190: uint8(16), + 191: uint8(16), + 192: uint8(16), + 193: uint8(16), + 194: uint8(16), + 195: uint8(16), + 196: uint8(16), + 197: uint8(16), + 198: uint8(16), + 199: uint8(16), + 200: uint8(16), + 201: uint8(16), + 202: uint8(16), + 203: uint8(16), + 204: uint8(16), + 205: uint8(16), + 206: uint8(16), + 207: uint8(16), + 208: uint8(16), + 209: uint8(16), + 210: uint8(16), + 211: uint8(16), + 212: uint8(16), + 213: uint8(16), + 214: uint8(16), + 215: uint8(50), + 216: uint8(16), + 217: uint8(16), + 218: uint8(16), + 219: uint8(16), + 220: uint8(16), + 221: uint8(16), + 222: uint8(16), + 223: uint8(16), + 224: uint8(16), + 225: uint8(16), + 226: uint8(16), + 227: uint8(16), + 228: uint8(16), + 229: uint8(16), + 230: uint8(16), + 231: uint8(16), + 232: uint8(16), + 233: uint8(16), + 234: uint8(16), + 235: uint8(16), + 236: uint8(16), + 237: uint8(16), + 238: uint8(16), + 239: uint8(16), + 240: uint8(16), + 241: uint8(16), + 242: uint8(16), + 243: uint8(16), + 244: uint8(16), + 245: uint8(16), + 246: uint8(16), + 247: uint8(16), + 248: uint8(16), + 249: uint8(16), + 250: uint8(16), + 251: uint8(51), + 252: uint8(16), + 253: uint8(16), + 254: uint8(52), + 255: uint8(53), + 256: uint8(16), + 257: uint8(54), + 258: uint8(55), + 259: uint8(56), + 260: uint8(16), + 261: uint8(16), + 262: uint8(16), + 263: uint8(16), + 264: uint8(16), + 265: uint8(16), + 266: uint8(57), + 267: uint8(16), + 268: uint8(16), + 269: uint8(58), + 270: uint8(16), + 271: uint8(59), + 272: uint8(60), + 273: uint8(61), + 274: uint8(62), + 275: uint8(63), + 276: uint8(64), + 277: uint8(65), + 278: uint8(66), + 279: uint8(67), + 280: uint8(68), + 281: uint8(69), + 282: uint8(70), + 283: uint8(16), + 284: uint8(71), + 285: uint8(72), + 286: uint8(73), + 287: uint8(16), + 288: uint8(16), + 289: uint8(16), + 290: uint8(16), + 291: uint8(16), + 292: uint8(16), + 293: uint8(16), + 294: uint8(16), + 295: uint8(16), + 296: uint8(16), + 297: uint8(16), + 298: uint8(16), + 299: uint8(16), + 300: uint8(16), + 301: uint8(16), + 302: uint8(16), + 303: uint8(16), + 304: uint8(16), + 305: uint8(16), + 306: uint8(16), + 307: uint8(16), + 308: uint8(74), + 309: uint8(16), + 310: uint8(16), + 311: uint8(16), + 312: uint8(16), + 313: uint8(16), + 314: uint8(16), + 315: uint8(16), + 316: uint8(16), + 317: uint8(16), + 318: uint8(16), + 319: uint8(16), + 320: uint8(16), + 321: uint8(16), + 322: uint8(16), + 323: uint8(16), + 324: uint8(16), + 325: uint8(16), + 326: uint8(16), + 327: uint8(16), + 328: uint8(16), + 329: uint8(16), + 330: uint8(16), + 331: uint8(16), + 332: uint8(16), + 333: uint8(16), + 334: uint8(16), + 335: uint8(16), + 336: uint8(16), + 337: uint8(16), + 338: uint8(16), + 339: uint8(16), + 340: uint8(16), + 341: uint8(16), + 342: uint8(16), + 343: uint8(16), + 344: uint8(16), + 345: uint8(16), + 346: uint8(16), + 347: uint8(16), + 348: uint8(16), + 349: uint8(16), + 350: uint8(16), + 351: uint8(16), + 352: uint8(16), + 353: uint8(16), + 354: uint8(16), + 355: uint8(16), + 356: uint8(16), + 357: uint8(16), + 358: uint8(16), + 359: uint8(16), + 360: uint8(16), + 361: uint8(16), + 362: uint8(75), + 363: uint8(76), + 364: uint8(16), + 365: uint8(16), + 366: uint8(16), + 367: uint8(77), + 368: uint8(16), + 369: uint8(16), + 370: uint8(16), + 371: uint8(16), + 372: uint8(16), + 373: uint8(16), + 374: uint8(16), + 375: uint8(16), + 376: uint8(16), + 377: uint8(16), + 378: uint8(16), + 379: uint8(16), + 380: uint8(16), + 381: uint8(16), + 382: uint8(16), + 383: uint8(16), + 384: uint8(16), + 385: uint8(16), + 386: uint8(16), + 387: uint8(16), + 388: uint8(16), + 389: uint8(16), + 390: uint8(16), + 391: uint8(16), + 392: uint8(16), + 393: uint8(16), + 394: uint8(16), + 395: uint8(16), + 396: uint8(16), + 397: uint8(16), + 398: uint8(16), + 399: uint8(16), + 400: uint8(16), + 401: uint8(16), + 402: uint8(16), + 403: uint8(16), + 404: uint8(16), + 405: uint8(16), + 406: uint8(16), + 407: uint8(16), + 408: uint8(16), + 409: uint8(16), + 410: uint8(16), + 411: uint8(16), + 412: uint8(16), + 413: uint8(16), + 414: uint8(16), + 415: uint8(16), + 416: uint8(16), + 417: uint8(16), + 418: uint8(16), + 419: uint8(16), + 420: uint8(16), + 421: uint8(16), + 422: uint8(16), + 423: uint8(16), + 424: uint8(16), + 425: uint8(16), + 426: uint8(16), + 427: uint8(16), + 428: uint8(16), + 429: uint8(16), + 430: uint8(16), + 431: uint8(16), + 432: uint8(16), + 433: uint8(16), + 434: uint8(16), + 435: uint8(16), + 436: uint8(16), + 437: uint8(16), + 438: uint8(16), + 439: uint8(16), + 440: uint8(16), + 441: uint8(16), + 442: uint8(16), + 443: uint8(16), + 444: uint8(78), + 445: uint8(16), + 446: uint8(16), + 447: uint8(16), + 448: uint8(16), + 449: uint8(16), + 450: uint8(16), + 451: uint8(16), + 452: uint8(16), + 453: uint8(16), + 454: uint8(16), + 455: uint8(16), + 456: uint8(16), + 457: uint8(16), + 458: uint8(16), + 459: uint8(16), + 460: uint8(16), + 461: uint8(16), + 462: uint8(16), + 463: uint8(16), + 464: uint8(16), + 465: uint8(79), + 466: uint8(80), + 467: uint8(16), + 468: uint8(16), + 469: uint8(16), + 470: uint8(16), + 471: uint8(16), + 472: uint8(16), + 473: uint8(16), + 474: uint8(81), + 475: uint8(16), + 476: uint8(16), + 477: uint8(16), + 478: uint8(16), + 479: uint8(16), + 480: uint8(82), + 481: uint8(83), + 482: uint8(84), + 483: uint8(16), + 484: uint8(16), + 485: uint8(16), + 486: uint8(16), + 487: uint8(16), + 488: uint8(85), + 489: uint8(86), + 490: uint8(16), + 491: uint8(16), + 492: uint8(16), + 493: uint8(16), + 494: uint8(16), + 495: uint8(16), + 496: uint8(16), + 497: uint8(16), + 498: uint8(16), + 499: uint8(16), + 500: uint8(16), + 501: uint8(16), + 502: uint8(16), + 503: uint8(16), + 504: uint8(16), + 505: uint8(16), + 506: uint8(16), + 507: uint8(16), + 508: uint8(16), + 509: uint8(16), + 510: uint8(16), + 511: uint8(16), + 544: uint8(255), + 545: uint8(255), + 546: uint8(255), + 547: uint8(255), + 548: uint8(255), + 549: uint8(255), + 550: uint8(255), + 551: uint8(255), + 552: uint8(255), + 553: uint8(255), + 554: uint8(255), + 555: uint8(255), + 556: uint8(255), + 557: uint8(255), + 558: uint8(255), + 559: uint8(255), + 560: uint8(255), + 561: uint8(255), + 562: uint8(255), + 563: uint8(255), + 564: uint8(255), + 565: uint8(255), + 566: uint8(255), + 567: uint8(255), + 568: uint8(255), + 569: uint8(255), + 570: uint8(255), + 571: uint8(255), + 572: uint8(255), + 573: uint8(255), + 574: uint8(255), + 575: uint8(255), + 576: uint8(255), + 577: uint8(255), + 578: uint8(255), + 579: uint8(255), + 580: uint8(255), + 581: uint8(255), + 582: uint8(255), + 583: uint8(255), + 584: uint8(255), + 585: uint8(255), + 586: uint8(255), + 587: uint8(255), + 588: uint8(255), + 589: uint8(255), + 624: uint8(248), + 625: uint8(3), + 658: uint8(254), + 659: uint8(255), + 660: uint8(255), + 661: uint8(255), + 662: uint8(255), + 663: uint8(191), + 664: uint8(182), + 672: uint8(63), + 674: uint8(255), + 675: uint8(23), + 681: uint8(248), + 682: uint8(255), + 683: uint8(255), + 686: uint8(1), + 698: uint8(192), + 699: uint8(191), + 700: uint8(159), + 701: uint8(61), + 705: uint8(128), + 706: uint8(2), + 710: uint8(255), + 711: uint8(255), + 712: uint8(255), + 713: uint8(7), + 724: uint8(192), + 725: uint8(255), + 726: uint8(1), + 733: uint8(248), + 734: uint8(15), + 735: uint8(32), + 738: uint8(192), + 739: uint8(251), + 740: uint8(239), + 741: uint8(62), + 747: uint8(14), + 762: uint8(248), + 763: uint8(255), + 764: uint8(255), + 765: uint8(255), + 766: uint8(255), + 767: uint8(255), + 768: uint8(7), + 775: uint8(20), + 776: uint8(254), + 777: uint8(33), + 778: uint8(254), + 780: uint8(12), + 784: uint8(2), + 791: uint8(16), + 792: uint8(30), + 793: uint8(32), + 796: uint8(12), + 799: uint8(64), + 800: uint8(6), + 807: uint8(16), + 808: uint8(134), + 809: uint8(57), + 810: uint8(2), + 814: uint8(35), + 816: uint8(6), + 823: uint8(16), + 824: uint8(190), + 825: uint8(33), + 828: uint8(12), + 831: uint8(252), + 832: uint8(2), + 839: uint8(144), + 840: uint8(30), + 841: uint8(32), + 842: uint8(64), + 844: uint8(12), + 848: uint8(4), + 856: uint8(1), + 857: uint8(32), + 864: uint8(17), + 871: uint8(192), + 872: uint8(193), + 873: uint8(61), + 874: uint8(96), + 876: uint8(12), + 880: uint8(2), + 887: uint8(144), + 888: uint8(64), + 889: uint8(48), + 892: uint8(12), + 896: uint8(3), + 903: uint8(24), + 904: uint8(30), + 905: uint8(32), + 908: uint8(12), + 921: uint8(4), + 922: uint8(92), + 934: uint8(242), + 935: uint8(7), + 936: uint8(128), + 937: uint8(127), + 950: uint8(242), + 951: uint8(31), + 953: uint8(63), + 963: uint8(3), + 966: uint8(160), + 967: uint8(2), + 974: uint8(254), + 975: uint8(127), + 976: uint8(223), + 977: uint8(224), + 978: uint8(255), + 979: uint8(254), + 980: uint8(255), + 981: uint8(255), + 982: uint8(255), + 983: uint8(31), + 984: uint8(64), + 997: uint8(224), + 998: uint8(253), + 999: uint8(102), + 1003: uint8(195), + 1004: uint8(1), + 1006: uint8(30), + 1008: uint8(100), + 1009: uint8(32), + 1011: uint8(32), + 1036: uint8(255), + 1037: uint8(255), + 1038: uint8(255), + 1039: uint8(255), + 1040: uint8(255), + 1041: uint8(255), + 1042: uint8(255), + 1043: uint8(255), + 1044: uint8(255), + 1045: uint8(255), + 1046: uint8(255), + 1047: uint8(255), + 1048: uint8(255), + 1049: uint8(255), + 1050: uint8(255), + 1051: uint8(255), + 1052: uint8(255), + 1053: uint8(255), + 1054: uint8(255), + 1055: uint8(255), + 1067: uint8(224), + 1090: uint8(28), + 1094: uint8(28), + 1098: uint8(12), + 1102: uint8(12), + 1110: uint8(176), + 1111: uint8(63), + 1112: uint8(64), + 1113: uint8(254), + 1114: uint8(15), + 1115: uint8(32), + 1121: uint8(120), + 1136: uint8(96), + 1141: uint8(2), + 1156: uint8(135), + 1157: uint8(1), + 1158: uint8(4), + 1159: uint8(14), + 1186: uint8(128), + 1187: uint8(9), + 1194: uint8(64), + 1195: uint8(127), + 1196: uint8(229), + 1197: uint8(31), + 1198: uint8(248), + 1199: uint8(159), + 1206: uint8(255), + 1207: uint8(127), + 1216: uint8(15), + 1222: uint8(208), + 1223: uint8(23), + 1224: uint8(4), + 1229: uint8(248), + 1230: uint8(15), + 1232: uint8(3), + 1236: uint8(60), + 1237: uint8(59), + 1244: uint8(64), + 1245: uint8(163), + 1246: uint8(3), + 1253: uint8(240), + 1254: uint8(207), + 1274: uint8(247), + 1275: uint8(255), + 1276: uint8(253), + 1277: uint8(33), + 1278: uint8(16), + 1279: uint8(3), + 1304: uint8(255), + 1305: uint8(255), + 1306: uint8(255), + 1307: uint8(255), + 1308: uint8(255), + 1309: uint8(255), + 1310: uint8(255), + 1311: uint8(251), + 1313: uint8(248), + 1317: uint8(124), + 1324: uint8(223), + 1325: uint8(255), + 1338: uint8(255), + 1339: uint8(255), + 1340: uint8(255), + 1341: uint8(255), + 1342: uint8(1), + 1373: uint8(128), + 1374: uint8(3), + 1391: uint8(128), + 1404: uint8(255), + 1405: uint8(255), + 1406: uint8(255), + 1407: uint8(255), + 1413: uint8(60), + 1427: uint8(6), + 1453: uint8(128), + 1454: uint8(247), + 1455: uint8(63), + 1459: uint8(192), + 1470: uint8(3), + 1472: uint8(68), + 1473: uint8(8), + 1476: uint8(96), + 1496: uint8(48), + 1500: uint8(255), + 1501: uint8(255), + 1502: uint8(3), + 1503: uint8(128), + 1508: uint8(192), + 1509: uint8(63), + 1512: uint8(128), + 1513: uint8(255), + 1514: uint8(3), + 1520: uint8(7), + 1526: uint8(200), + 1527: uint8(51), + 1532: uint8(32), + 1541: uint8(126), + 1542: uint8(102), + 1544: uint8(8), + 1545: uint8(16), + 1551: uint8(16), + 1558: uint8(157), + 1559: uint8(193), + 1560: uint8(2), + 1565: uint8(48), + 1566: uint8(64), + 1596: uint8(32), + 1597: uint8(33), + 1622: uint8(255), + 1623: uint8(255), + 1624: uint8(255), + 1625: uint8(255), + 1626: uint8(255), + 1627: uint8(255), + 1628: uint8(255), + 1629: uint8(255), + 1630: uint8(255), + 1631: uint8(255), + 1635: uint8(64), + 1664: uint8(255), + 1665: uint8(255), + 1668: uint8(255), + 1669: uint8(255), + 1695: uint8(128), + 1727: uint8(14), + 1759: uint8(32), + 1788: uint8(1), + 1806: uint8(192), + 1807: uint8(7), + 1824: uint8(110), + 1825: uint8(240), + 1831: uint8(135), + 1852: uint8(96), + 1860: uint8(240), + 1896: uint8(192), + 1897: uint8(255), + 1898: uint8(1), + 1920: uint8(2), + 1927: uint8(255), + 1928: uint8(127), + 1935: uint8(128), + 1936: uint8(3), + 1942: uint8(120), + 1943: uint8(38), + 1945: uint8(32), + 1952: uint8(7), + 1956: uint8(128), + 1957: uint8(239), + 1958: uint8(31), + 1966: uint8(8), + 1968: uint8(3), + 1974: uint8(192), + 1975: uint8(127), + 1977: uint8(30), + 1989: uint8(128), + 1990: uint8(211), + 1991: uint8(64), + 2011: uint8(128), + 2012: uint8(248), + 2013: uint8(7), + 2016: uint8(3), + 2023: uint8(24), + 2024: uint8(1), + 2028: uint8(192), + 2029: uint8(31), + 2030: uint8(31), + 2055: uint8(255), + 2056: uint8(92), + 2059: uint8(64), + 2070: uint8(248), + 2071: uint8(133), + 2072: uint8(13), + 2102: uint8(60), + 2103: uint8(176), + 2104: uint8(1), + 2107: uint8(48), + 2118: uint8(248), + 2119: uint8(167), + 2120: uint8(1), + 2133: uint8(40), + 2134: uint8(191), + 2147: uint8(224), + 2148: uint8(188), + 2149: uint8(15), + 2181: uint8(128), + 2182: uint8(255), + 2183: uint8(6), + 2234: uint8(240), + 2235: uint8(12), + 2236: uint8(1), + 2240: uint8(254), + 2241: uint8(7), + 2246: uint8(248), + 2247: uint8(121), + 2248: uint8(128), + 2250: uint8(126), + 2251: uint8(14), + 2257: uint8(252), + 2258: uint8(127), + 2259: uint8(3), + 2278: uint8(127), + 2279: uint8(191), + 2290: uint8(252), + 2291: uint8(255), + 2292: uint8(255), + 2293: uint8(252), + 2294: uint8(109), + 2310: uint8(126), + 2311: uint8(180), + 2312: uint8(191), + 2322: uint8(163), + 2366: uint8(24), + 2374: uint8(255), + 2375: uint8(1), + 2430: uint8(31), + 2438: uint8(127), + 2473: uint8(128), + 2481: uint8(128), + 2482: uint8(7), + 2515: uint8(96), + 2516: uint8(15), + 2540: uint8(128), + 2541: uint8(3), + 2542: uint8(248), + 2543: uint8(255), + 2544: uint8(231), + 2545: uint8(15), + 2549: uint8(60), + 2568: uint8(28), + 2592: uint8(255), + 2593: uint8(255), + 2594: uint8(255), + 2595: uint8(255), + 2596: uint8(255), + 2597: uint8(255), + 2598: uint8(127), + 2599: uint8(248), + 2600: uint8(255), + 2601: uint8(255), + 2602: uint8(255), + 2603: uint8(255), + 2604: uint8(255), + 2605: uint8(31), + 2606: uint8(32), + 2608: uint8(16), + 2611: uint8(248), + 2612: uint8(254), + 2613: uint8(255), + 2624: uint8(127), + 2625: uint8(255), + 2626: uint8(255), + 2627: uint8(249), + 2628: uint8(219), + 2629: uint8(7), + 2662: uint8(127), + 2717: uint8(240), + 2746: uint8(127), + 2760: uint8(240), + 2761: uint8(7), +} + +var _wtable = [1600]uint8{ + 0: uint8(16), + 1: uint8(16), + 2: uint8(16), + 3: uint8(16), + 4: uint8(16), + 5: uint8(16), + 6: uint8(16), + 7: uint8(16), + 8: uint8(16), + 9: uint8(16), + 10: uint8(16), + 11: uint8(16), + 12: uint8(16), + 13: uint8(16), + 14: uint8(16), + 15: uint8(16), + 16: uint8(16), + 17: uint8(18), + 18: uint8(16), + 19: uint8(16), + 20: uint8(16), + 21: uint8(16), + 22: uint8(16), + 23: uint8(16), + 24: uint8(16), + 25: uint8(16), + 26: uint8(16), + 27: uint8(16), + 28: uint8(16), + 29: uint8(16), + 30: uint8(16), + 31: uint8(16), + 32: uint8(16), + 33: uint8(16), + 34: uint8(16), + 35: uint8(19), + 36: uint8(16), + 37: uint8(20), + 38: uint8(21), + 39: uint8(22), + 40: uint8(16), + 41: uint8(16), + 42: uint8(16), + 43: uint8(23), + 44: uint8(16), + 45: uint8(16), + 46: uint8(24), + 47: uint8(25), + 48: uint8(26), + 49: uint8(27), + 50: uint8(28), + 51: uint8(17), + 52: uint8(17), + 53: uint8(17), + 54: uint8(17), + 55: uint8(17), + 56: uint8(17), + 57: uint8(17), + 58: uint8(17), + 59: uint8(17), + 60: uint8(17), + 61: uint8(17), + 62: uint8(17), + 63: uint8(17), + 64: uint8(17), + 65: uint8(17), + 66: uint8(17), + 67: uint8(17), + 68: uint8(17), + 69: uint8(17), + 70: uint8(17), + 71: uint8(17), + 72: uint8(17), + 73: uint8(17), + 74: uint8(17), + 75: uint8(17), + 76: uint8(17), + 77: uint8(29), + 78: uint8(17), + 79: uint8(17), + 80: uint8(17), + 81: uint8(17), + 82: uint8(17), + 83: uint8(17), + 84: uint8(17), + 85: uint8(17), + 86: uint8(17), + 87: uint8(17), + 88: uint8(17), + 89: uint8(17), + 90: uint8(17), + 91: uint8(17), + 92: uint8(17), + 93: uint8(17), + 94: uint8(17), + 95: uint8(17), + 96: uint8(17), + 97: uint8(17), + 98: uint8(17), + 99: uint8(17), + 100: uint8(17), + 101: uint8(17), + 102: uint8(17), + 103: uint8(17), + 104: uint8(17), + 105: uint8(17), + 106: uint8(17), + 107: uint8(17), + 108: uint8(17), + 109: uint8(17), + 110: uint8(17), + 111: uint8(17), + 112: uint8(17), + 113: uint8(17), + 114: uint8(17), + 115: uint8(17), + 116: uint8(17), + 117: uint8(17), + 118: uint8(17), + 119: uint8(17), + 120: uint8(17), + 121: uint8(17), + 122: uint8(17), + 123: uint8(17), + 124: uint8(17), + 125: uint8(17), + 126: uint8(17), + 127: uint8(17), + 128: uint8(17), + 129: uint8(17), + 130: uint8(17), + 131: uint8(17), + 132: uint8(17), + 133: uint8(17), + 134: uint8(17), + 135: uint8(17), + 136: uint8(17), + 137: uint8(17), + 138: uint8(17), + 139: uint8(17), + 140: uint8(17), + 141: uint8(17), + 142: uint8(17), + 143: uint8(17), + 144: uint8(17), + 145: uint8(17), + 146: uint8(17), + 147: uint8(17), + 148: uint8(17), + 149: uint8(17), + 150: uint8(17), + 151: uint8(17), + 152: uint8(17), + 153: uint8(17), + 154: uint8(17), + 155: uint8(17), + 156: uint8(17), + 157: uint8(17), + 158: uint8(17), + 159: uint8(17), + 160: uint8(17), + 161: uint8(17), + 162: uint8(17), + 163: uint8(17), + 164: uint8(30), + 165: uint8(16), + 166: uint8(16), + 167: uint8(16), + 168: uint8(16), + 169: uint8(31), + 170: uint8(16), + 171: uint8(16), + 172: uint8(17), + 173: uint8(17), + 174: uint8(17), + 175: uint8(17), + 176: uint8(17), + 177: uint8(17), + 178: uint8(17), + 179: uint8(17), + 180: uint8(17), + 181: uint8(17), + 182: uint8(17), + 183: uint8(17), + 184: uint8(17), + 185: uint8(17), + 186: uint8(17), + 187: uint8(17), + 188: uint8(17), + 189: uint8(17), + 190: uint8(17), + 191: uint8(17), + 192: uint8(17), + 193: uint8(17), + 194: uint8(17), + 195: uint8(17), + 196: uint8(17), + 197: uint8(17), + 198: uint8(17), + 199: uint8(17), + 200: uint8(17), + 201: uint8(17), + 202: uint8(17), + 203: uint8(17), + 204: uint8(17), + 205: uint8(17), + 206: uint8(17), + 207: uint8(17), + 208: uint8(17), + 209: uint8(17), + 210: uint8(17), + 211: uint8(17), + 212: uint8(17), + 213: uint8(17), + 214: uint8(17), + 215: uint8(32), + 216: uint8(16), + 217: uint8(16), + 218: uint8(16), + 219: uint8(16), + 220: uint8(16), + 221: uint8(16), + 222: uint8(16), + 223: uint8(16), + 224: uint8(16), + 225: uint8(16), + 226: uint8(16), + 227: uint8(16), + 228: uint8(16), + 229: uint8(16), + 230: uint8(16), + 231: uint8(16), + 232: uint8(16), + 233: uint8(16), + 234: uint8(16), + 235: uint8(16), + 236: uint8(16), + 237: uint8(16), + 238: uint8(16), + 239: uint8(16), + 240: uint8(16), + 241: uint8(16), + 242: uint8(16), + 243: uint8(16), + 244: uint8(16), + 245: uint8(16), + 246: uint8(16), + 247: uint8(16), + 248: uint8(16), + 249: uint8(17), + 250: uint8(17), + 251: uint8(16), + 252: uint8(16), + 253: uint8(16), + 254: uint8(33), + 255: uint8(34), + 256: uint8(16), + 257: uint8(16), + 258: uint8(16), + 259: uint8(16), + 260: uint8(16), + 261: uint8(16), + 262: uint8(16), + 263: uint8(16), + 264: uint8(16), + 265: uint8(16), + 266: uint8(16), + 267: uint8(16), + 268: uint8(16), + 269: uint8(16), + 270: uint8(16), + 271: uint8(16), + 272: uint8(16), + 273: uint8(16), + 274: uint8(16), + 275: uint8(16), + 276: uint8(16), + 277: uint8(16), + 278: uint8(16), + 279: uint8(16), + 280: uint8(16), + 281: uint8(16), + 282: uint8(16), + 283: uint8(16), + 284: uint8(16), + 285: uint8(16), + 286: uint8(16), + 287: uint8(16), + 288: uint8(16), + 289: uint8(16), + 290: uint8(16), + 291: uint8(16), + 292: uint8(16), + 293: uint8(16), + 294: uint8(16), + 295: uint8(16), + 296: uint8(16), + 297: uint8(16), + 298: uint8(16), + 299: uint8(16), + 300: uint8(16), + 301: uint8(16), + 302: uint8(16), + 303: uint8(16), + 304: uint8(16), + 305: uint8(16), + 306: uint8(16), + 307: uint8(16), + 308: uint8(16), + 309: uint8(16), + 310: uint8(16), + 311: uint8(16), + 312: uint8(16), + 313: uint8(16), + 314: uint8(16), + 315: uint8(16), + 316: uint8(16), + 317: uint8(16), + 318: uint8(16), + 319: uint8(16), + 320: uint8(16), + 321: uint8(16), + 322: uint8(16), + 323: uint8(16), + 324: uint8(16), + 325: uint8(16), + 326: uint8(16), + 327: uint8(16), + 328: uint8(16), + 329: uint8(16), + 330: uint8(16), + 331: uint8(16), + 332: uint8(16), + 333: uint8(16), + 334: uint8(16), + 335: uint8(16), + 336: uint8(16), + 337: uint8(16), + 338: uint8(16), + 339: uint8(16), + 340: uint8(16), + 341: uint8(16), + 342: uint8(16), + 343: uint8(16), + 344: uint8(16), + 345: uint8(16), + 346: uint8(16), + 347: uint8(16), + 348: uint8(16), + 349: uint8(16), + 350: uint8(16), + 351: uint8(16), + 352: uint8(16), + 353: uint8(16), + 354: uint8(16), + 355: uint8(16), + 356: uint8(16), + 357: uint8(16), + 358: uint8(16), + 359: uint8(16), + 360: uint8(16), + 361: uint8(16), + 362: uint8(16), + 363: uint8(16), + 364: uint8(16), + 365: uint8(16), + 366: uint8(16), + 367: uint8(35), + 368: uint8(17), + 369: uint8(17), + 370: uint8(17), + 371: uint8(17), + 372: uint8(17), + 373: uint8(17), + 374: uint8(17), + 375: uint8(17), + 376: uint8(17), + 377: uint8(17), + 378: uint8(17), + 379: uint8(17), + 380: uint8(17), + 381: uint8(17), + 382: uint8(17), + 383: uint8(17), + 384: uint8(17), + 385: uint8(17), + 386: uint8(17), + 387: uint8(17), + 388: uint8(17), + 389: uint8(17), + 390: uint8(17), + 391: uint8(36), + 392: uint8(17), + 393: uint8(17), + 394: uint8(37), + 395: uint8(16), + 396: uint8(16), + 397: uint8(16), + 398: uint8(16), + 399: uint8(16), + 400: uint8(16), + 401: uint8(16), + 402: uint8(16), + 403: uint8(16), + 404: uint8(16), + 405: uint8(16), + 406: uint8(16), + 407: uint8(16), + 408: uint8(16), + 409: uint8(16), + 410: uint8(16), + 411: uint8(16), + 412: uint8(16), + 413: uint8(16), + 414: uint8(16), + 415: uint8(16), + 416: uint8(16), + 417: uint8(16), + 418: uint8(16), + 419: uint8(16), + 420: uint8(16), + 421: uint8(16), + 422: uint8(16), + 423: uint8(16), + 424: uint8(16), + 425: uint8(16), + 426: uint8(16), + 427: uint8(16), + 428: uint8(16), + 429: uint8(16), + 430: uint8(16), + 431: uint8(16), + 432: uint8(17), + 433: uint8(38), + 434: uint8(39), + 435: uint8(16), + 436: uint8(16), + 437: uint8(16), + 438: uint8(16), + 439: uint8(16), + 440: uint8(16), + 441: uint8(16), + 442: uint8(16), + 443: uint8(16), + 444: uint8(16), + 445: uint8(16), + 446: uint8(16), + 447: uint8(16), + 448: uint8(16), + 449: uint8(16), + 450: uint8(16), + 451: uint8(16), + 452: uint8(16), + 453: uint8(16), + 454: uint8(16), + 455: uint8(16), + 456: uint8(16), + 457: uint8(16), + 458: uint8(16), + 459: uint8(16), + 460: uint8(16), + 461: uint8(16), + 462: uint8(16), + 463: uint8(16), + 464: uint8(16), + 465: uint8(16), + 466: uint8(16), + 467: uint8(16), + 468: uint8(16), + 469: uint8(16), + 470: uint8(16), + 471: uint8(16), + 472: uint8(16), + 473: uint8(16), + 474: uint8(16), + 475: uint8(16), + 476: uint8(16), + 477: uint8(16), + 478: uint8(16), + 479: uint8(16), + 480: uint8(16), + 481: uint8(16), + 482: uint8(16), + 483: uint8(16), + 484: uint8(16), + 485: uint8(16), + 486: uint8(16), + 487: uint8(16), + 488: uint8(16), + 489: uint8(16), + 490: uint8(16), + 491: uint8(16), + 492: uint8(16), + 493: uint8(16), + 494: uint8(16), + 495: uint8(16), + 496: uint8(40), + 497: uint8(41), + 498: uint8(42), + 499: uint8(43), + 500: uint8(44), + 501: uint8(45), + 502: uint8(46), + 503: uint8(47), + 504: uint8(16), + 505: uint8(48), + 506: uint8(49), + 507: uint8(16), + 508: uint8(16), + 509: uint8(16), + 510: uint8(16), + 511: uint8(16), + 544: uint8(255), + 545: uint8(255), + 546: uint8(255), + 547: uint8(255), + 548: uint8(255), + 549: uint8(255), + 550: uint8(255), + 551: uint8(255), + 552: uint8(255), + 553: uint8(255), + 554: uint8(255), + 555: uint8(255), + 556: uint8(255), + 557: uint8(255), + 558: uint8(255), + 559: uint8(255), + 560: uint8(255), + 561: uint8(255), + 562: uint8(255), + 563: uint8(255), + 564: uint8(255), + 565: uint8(255), + 566: uint8(255), + 567: uint8(255), + 568: uint8(255), + 569: uint8(255), + 570: uint8(255), + 571: uint8(255), + 572: uint8(255), + 573: uint8(255), + 574: uint8(255), + 575: uint8(255), + 576: uint8(255), + 577: uint8(255), + 578: uint8(255), + 579: uint8(255), + 580: uint8(255), + 581: uint8(255), + 582: uint8(255), + 583: uint8(255), + 584: uint8(255), + 585: uint8(255), + 586: uint8(255), + 587: uint8(255), + 611: uint8(12), + 613: uint8(6), + 637: uint8(30), + 638: uint8(9), + 671: uint8(96), + 674: uint8(48), + 681: uint8(255), + 682: uint8(15), + 687: uint8(128), + 690: uint8(8), + 692: uint8(2), + 693: uint8(12), + 695: uint8(96), + 696: uint8(48), + 697: uint8(64), + 698: uint8(16), + 701: uint8(4), + 702: uint8(44), + 703: uint8(36), + 704: uint8(32), + 705: uint8(12), + 709: uint8(1), + 713: uint8(80), + 714: uint8(184), + 722: uint8(224), + 726: uint8(1), + 727: uint8(128), + 739: uint8(24), + 746: uint8(33), + 784: uint8(255), + 785: uint8(255), + 786: uint8(255), + 787: uint8(251), + 788: uint8(255), + 789: uint8(255), + 790: uint8(255), + 791: uint8(255), + 792: uint8(255), + 793: uint8(255), + 794: uint8(255), + 795: uint8(255), + 796: uint8(255), + 797: uint8(255), + 798: uint8(15), + 800: uint8(255), + 801: uint8(255), + 802: uint8(255), + 803: uint8(255), + 804: uint8(255), + 805: uint8(255), + 806: uint8(255), + 807: uint8(255), + 808: uint8(255), + 809: uint8(255), + 810: uint8(255), + 811: uint8(255), + 812: uint8(255), + 813: uint8(255), + 814: uint8(255), + 815: uint8(255), + 816: uint8(255), + 817: uint8(255), + 818: uint8(255), + 819: uint8(255), + 820: uint8(255), + 821: uint8(255), + 822: uint8(255), + 823: uint8(255), + 824: uint8(255), + 825: uint8(255), + 826: uint8(63), + 830: uint8(255), + 831: uint8(15), + 832: uint8(255), + 833: uint8(255), + 834: uint8(255), + 835: uint8(255), + 836: uint8(255), + 837: uint8(255), + 838: uint8(255), + 839: uint8(127), + 840: uint8(254), + 841: uint8(255), + 842: uint8(255), + 843: uint8(255), + 844: uint8(255), + 845: uint8(255), + 846: uint8(255), + 847: uint8(255), + 848: uint8(255), + 849: uint8(255), + 850: uint8(127), + 851: uint8(254), + 852: uint8(255), + 853: uint8(255), + 854: uint8(255), + 855: uint8(255), + 856: uint8(255), + 857: uint8(255), + 858: uint8(255), + 859: uint8(255), + 860: uint8(255), + 861: uint8(255), + 862: uint8(255), + 863: uint8(255), + 864: uint8(224), + 865: uint8(255), + 866: uint8(255), + 867: uint8(255), + 868: uint8(255), + 869: uint8(255), + 870: uint8(254), + 871: uint8(255), + 872: uint8(255), + 873: uint8(255), + 874: uint8(255), + 875: uint8(255), + 876: uint8(255), + 877: uint8(255), + 878: uint8(255), + 879: uint8(255), + 880: uint8(255), + 881: uint8(127), + 882: uint8(255), + 883: uint8(255), + 884: uint8(255), + 885: uint8(255), + 886: uint8(255), + 887: uint8(7), + 888: uint8(255), + 889: uint8(255), + 890: uint8(255), + 891: uint8(255), + 892: uint8(15), + 894: uint8(255), + 895: uint8(255), + 896: uint8(255), + 897: uint8(255), + 898: uint8(255), + 899: uint8(127), + 900: uint8(255), + 901: uint8(255), + 902: uint8(255), + 903: uint8(255), + 904: uint8(255), + 906: uint8(255), + 907: uint8(255), + 908: uint8(255), + 909: uint8(255), + 910: uint8(255), + 911: uint8(255), + 912: uint8(255), + 913: uint8(255), + 914: uint8(255), + 915: uint8(255), + 916: uint8(255), + 917: uint8(255), + 918: uint8(255), + 919: uint8(255), + 920: uint8(255), + 921: uint8(255), + 922: uint8(255), + 923: uint8(255), + 924: uint8(255), + 925: uint8(255), + 926: uint8(255), + 927: uint8(255), + 928: uint8(255), + 929: uint8(255), + 930: uint8(255), + 931: uint8(255), + 932: uint8(255), + 933: uint8(255), + 934: uint8(255), + 935: uint8(255), + 936: uint8(255), + 937: uint8(255), + 938: uint8(255), + 939: uint8(255), + 940: uint8(255), + 941: uint8(255), + 942: uint8(255), + 943: uint8(255), + 944: uint8(255), + 945: uint8(255), + 946: uint8(255), + 947: uint8(255), + 948: uint8(255), + 949: uint8(255), + 950: uint8(255), + 951: uint8(255), + 960: uint8(255), + 961: uint8(255), + 962: uint8(255), + 963: uint8(255), + 964: uint8(255), + 965: uint8(255), + 966: uint8(255), + 967: uint8(255), + 968: uint8(255), + 969: uint8(255), + 970: uint8(255), + 971: uint8(255), + 972: uint8(255), + 973: uint8(255), + 974: uint8(255), + 975: uint8(255), + 976: uint8(255), + 977: uint8(31), + 978: uint8(255), + 979: uint8(255), + 980: uint8(255), + 981: uint8(255), + 982: uint8(255), + 983: uint8(255), + 984: uint8(127), + 1004: uint8(255), + 1005: uint8(255), + 1006: uint8(255), + 1007: uint8(31), + 1024: uint8(255), + 1025: uint8(255), + 1026: uint8(255), + 1027: uint8(255), + 1028: uint8(255), + 1029: uint8(255), + 1030: uint8(255), + 1031: uint8(255), + 1032: uint8(255), + 1033: uint8(255), + 1034: uint8(255), + 1035: uint8(255), + 1036: uint8(255), + 1037: uint8(255), + 1038: uint8(255), + 1039: uint8(255), + 1040: uint8(255), + 1041: uint8(255), + 1042: uint8(255), + 1043: uint8(255), + 1044: uint8(15), + 1058: uint8(255), + 1059: uint8(3), + 1062: uint8(255), + 1063: uint8(255), + 1064: uint8(255), + 1065: uint8(255), + 1066: uint8(247), + 1067: uint8(255), + 1068: uint8(127), + 1069: uint8(15), + 1088: uint8(254), + 1089: uint8(255), + 1090: uint8(255), + 1091: uint8(255), + 1092: uint8(255), + 1093: uint8(255), + 1094: uint8(255), + 1095: uint8(255), + 1096: uint8(255), + 1097: uint8(255), + 1098: uint8(255), + 1099: uint8(255), + 1100: uint8(1), + 1116: uint8(127), + 1148: uint8(15), + 1152: uint8(255), + 1153: uint8(255), + 1154: uint8(255), + 1155: uint8(255), + 1156: uint8(255), + 1157: uint8(255), + 1158: uint8(255), + 1159: uint8(255), + 1160: uint8(255), + 1161: uint8(255), + 1162: uint8(255), + 1163: uint8(255), + 1164: uint8(255), + 1165: uint8(255), + 1166: uint8(255), + 1167: uint8(255), + 1168: uint8(255), + 1169: uint8(255), + 1170: uint8(255), + 1171: uint8(255), + 1172: uint8(255), + 1173: uint8(255), + 1174: uint8(255), + 1175: uint8(255), + 1176: uint8(255), + 1177: uint8(255), + 1178: uint8(255), + 1179: uint8(255), + 1180: uint8(255), + 1181: uint8(255), + 1182: uint8(255), + 1184: uint8(255), + 1185: uint8(255), + 1186: uint8(255), + 1187: uint8(255), + 1188: uint8(255), + 1189: uint8(255), + 1190: uint8(255), + 1191: uint8(255), + 1192: uint8(255), + 1193: uint8(255), + 1194: uint8(255), + 1195: uint8(255), + 1196: uint8(255), + 1197: uint8(255), + 1198: uint8(255), + 1199: uint8(255), + 1200: uint8(255), + 1201: uint8(255), + 1202: uint8(255), + 1203: uint8(255), + 1204: uint8(255), + 1205: uint8(255), + 1206: uint8(255), + 1207: uint8(255), + 1208: uint8(255), + 1209: uint8(255), + 1210: uint8(255), + 1211: uint8(255), + 1212: uint8(255), + 1213: uint8(255), + 1214: uint8(7), + 1216: uint8(255), + 1217: uint8(255), + 1218: uint8(255), + 1219: uint8(127), + 1226: uint8(7), + 1228: uint8(240), + 1230: uint8(255), + 1231: uint8(255), + 1232: uint8(255), + 1233: uint8(255), + 1234: uint8(255), + 1235: uint8(255), + 1236: uint8(255), + 1237: uint8(255), + 1238: uint8(255), + 1239: uint8(255), + 1240: uint8(255), + 1241: uint8(255), + 1242: uint8(255), + 1243: uint8(255), + 1244: uint8(255), + 1245: uint8(255), + 1246: uint8(255), + 1247: uint8(255), + 1248: uint8(255), + 1249: uint8(255), + 1250: uint8(255), + 1251: uint8(255), + 1252: uint8(255), + 1253: uint8(255), + 1254: uint8(255), + 1255: uint8(255), + 1256: uint8(255), + 1257: uint8(255), + 1258: uint8(255), + 1259: uint8(255), + 1260: uint8(255), + 1261: uint8(255), + 1262: uint8(255), + 1263: uint8(255), + 1264: uint8(255), + 1265: uint8(255), + 1266: uint8(255), + 1267: uint8(255), + 1268: uint8(255), + 1269: uint8(255), + 1270: uint8(255), + 1271: uint8(255), + 1272: uint8(255), + 1273: uint8(255), + 1274: uint8(255), + 1275: uint8(255), + 1276: uint8(255), + 1277: uint8(255), + 1278: uint8(255), + 1279: uint8(15), + 1280: uint8(16), + 1305: uint8(128), + 1329: uint8(64), + 1330: uint8(254), + 1331: uint8(7), + 1344: uint8(7), + 1346: uint8(255), + 1347: uint8(255), + 1348: uint8(255), + 1349: uint8(255), + 1350: uint8(255), + 1351: uint8(15), + 1352: uint8(255), + 1353: uint8(1), + 1354: uint8(3), + 1356: uint8(63), + 1376: uint8(255), + 1377: uint8(255), + 1378: uint8(255), + 1379: uint8(255), + 1380: uint8(1), + 1381: uint8(224), + 1382: uint8(191), + 1383: uint8(255), + 1384: uint8(255), + 1385: uint8(255), + 1386: uint8(255), + 1387: uint8(255), + 1388: uint8(255), + 1389: uint8(255), + 1390: uint8(255), + 1391: uint8(223), + 1392: uint8(255), + 1393: uint8(255), + 1394: uint8(15), + 1396: uint8(255), + 1397: uint8(255), + 1398: uint8(255), + 1399: uint8(255), + 1400: uint8(255), + 1401: uint8(135), + 1402: uint8(15), + 1404: uint8(255), + 1405: uint8(255), + 1406: uint8(17), + 1407: uint8(255), + 1408: uint8(255), + 1409: uint8(255), + 1410: uint8(255), + 1411: uint8(255), + 1412: uint8(255), + 1413: uint8(255), + 1414: uint8(255), + 1415: uint8(127), + 1416: uint8(253), + 1417: uint8(255), + 1418: uint8(255), + 1419: uint8(255), + 1420: uint8(255), + 1421: uint8(255), + 1422: uint8(255), + 1423: uint8(255), + 1424: uint8(255), + 1425: uint8(255), + 1426: uint8(255), + 1427: uint8(255), + 1428: uint8(255), + 1429: uint8(255), + 1430: uint8(255), + 1431: uint8(255), + 1432: uint8(255), + 1433: uint8(255), + 1434: uint8(255), + 1435: uint8(255), + 1436: uint8(255), + 1437: uint8(255), + 1438: uint8(255), + 1439: uint8(159), + 1440: uint8(255), + 1441: uint8(255), + 1442: uint8(255), + 1443: uint8(255), + 1444: uint8(255), + 1445: uint8(255), + 1446: uint8(255), + 1447: uint8(63), + 1449: uint8(120), + 1450: uint8(255), + 1451: uint8(255), + 1452: uint8(255), + 1455: uint8(4), + 1458: uint8(96), + 1460: uint8(16), + 1471: uint8(248), + 1472: uint8(255), + 1473: uint8(255), + 1474: uint8(255), + 1475: uint8(255), + 1476: uint8(255), + 1477: uint8(255), + 1478: uint8(255), + 1479: uint8(255), + 1480: uint8(255), + 1481: uint8(255), + 1488: uint8(255), + 1489: uint8(255), + 1490: uint8(255), + 1491: uint8(255), + 1492: uint8(255), + 1493: uint8(255), + 1494: uint8(255), + 1495: uint8(255), + 1496: uint8(63), + 1497: uint8(16), + 1498: uint8(39), + 1501: uint8(24), + 1502: uint8(240), + 1503: uint8(7), + 1532: uint8(255), + 1533: uint8(15), + 1537: uint8(224), + 1538: uint8(255), + 1539: uint8(255), + 1540: uint8(255), + 1541: uint8(255), + 1542: uint8(255), + 1543: uint8(255), + 1544: uint8(255), + 1545: uint8(255), + 1546: uint8(255), + 1547: uint8(255), + 1548: uint8(255), + 1549: uint8(255), + 1550: uint8(123), + 1551: uint8(252), + 1552: uint8(255), + 1553: uint8(255), + 1554: uint8(255), + 1555: uint8(255), + 1556: uint8(231), + 1557: uint8(199), + 1558: uint8(255), + 1559: uint8(255), + 1560: uint8(255), + 1561: uint8(231), + 1562: uint8(255), + 1563: uint8(255), + 1564: uint8(255), + 1565: uint8(255), + 1566: uint8(255), + 1567: uint8(255), + 1582: uint8(15), + 1583: uint8(7), + 1584: uint8(7), + 1586: uint8(63), +} + +func Xwcwidth(tls *TLS, wc Twchar_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1, v2 int32 + _, _ = v1, v2 + if Uint32FromInt32(wc) < uint32(0xff) { + if (wc+int32(1))&int32(0x7f) >= int32(0x21) { + v1 = int32(1) + } else { + if wc != 0 { + v2 = -int32(1) + } else { + v2 = 0 + } + v1 = v2 + } + return v1 + } + if Uint32FromInt32(wc)&uint32(0xfffeffff) < uint32(0xfffe) { + if Int32FromUint8(_table5[Int32FromUint8(_table5[wc>>int32(8)])*int32(32)+wc&int32(255)>>int32(3)])>>(wc&int32(7))&int32(1) != 0 { + return 0 + } + if Int32FromUint8(_wtable[Int32FromUint8(_wtable[wc>>int32(8)])*int32(32)+wc&int32(255)>>int32(3)])>>(wc&int32(7))&int32(1) != 0 { + return int32(2) + } + return int32(1) + } + if wc&int32(0xfffe) == int32(0xfffe) { + return -int32(1) + } + if Uint32FromInt32(wc)-uint32(0x20000) < uint32(0x20000) { + return int32(2) + } + if wc == int32(0xe0001) || Uint32FromInt32(wc)-uint32(0xe0020) < uint32(0x5f) || Uint32FromInt32(wc)-uint32(0xe0100) < uint32(0xef) { + return 0 + } + return int32(1) +} + +const d_fileno = 0 + +type Tino_t = uint64 + +type Tdirent = struct { + Fd_ino Tino_t + Fd_off Toff_t + Fd_reclen uint16 + Fd_type uint8 + Fd_name [256]int8 +} + +func Xalphasort(tls *TLS, a uintptr, b uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v a=%v b=%v, (%v:)", tls, a, b, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrcoll(tls, **(**uintptr)(__ccgo_up(a))+19, **(**uintptr)(__ccgo_up(b))+19) +} + +type TDIR = struct { + Ftell Toff_t + Ffd int32 + Fbuf_pos int32 + Fbuf_end int32 + Flock [1]int32 + Fbuf [2048]int8 +} + +type t__dirstream = TDIR + +func Xclosedir(tls *TLS, dir uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v dir=%v, (%v:)", tls, dir, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret int32 + _ = ret + ret = Xclose(tls, (*TDIR)(unsafe.Pointer(dir)).Ffd) + Xfree(tls, dir) + return ret +} + +func Xdirfd(tls *TLS, d uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v d=%v, (%v:)", tls, d, origin(2)) + defer func() { trc("-> %v", r) }() + } + return (*TDIR)(unsafe.Pointer(d)).Ffd +} + +const AT_EACCESS = 512 +const AT_FDCWD = -100 +const AT_REMOVEDIR = 512 +const AT_SYMLINK_FOLLOW = 1024 +const AT_SYMLINK_NOFOLLOW = 256 +const FD_CLOEXEC = 1 +const F_DUPFD = 0 +const F_DUPFD_CLOEXEC = 1030 +const F_GETFD = 1 +const F_GETFL = 3 +const F_GETLK = 5 +const F_GETOWN = 9 +const F_GETOWNER_UIDS = 17 +const F_GETOWN_EX = 16 +const F_GETSIG = 11 +const F_OFD_GETLK = 36 +const F_OFD_SETLK = 37 +const F_OFD_SETLKW = 38 +const F_RDLCK = 0 +const F_SETFD = 2 +const F_SETFL = 4 +const F_SETLK = 6 +const F_SETLKW = 7 +const F_SETOWN = 8 +const F_SETOWN_EX = 15 +const F_SETSIG = 10 +const F_UNLCK = 2 +const F_WRLCK = 1 +const O_ACCMODE = 2097155 +const O_APPEND = 1024 +const O_ASYNC = 8192 +const O_CLOEXEC = 524288 +const O_CREAT = 64 +const O_DIRECT = 16384 +const O_DIRECTORY = 65536 +const O_DSYNC = 4096 +const O_EXCL = 128 +const O_EXEC = 2097152 +const O_LARGEFILE = 32768 +const O_NDELAY = 2048 +const O_NOATIME = 262144 +const O_NOCTTY = 256 +const O_NOFOLLOW = 131072 +const O_NONBLOCK = 2048 +const O_PATH = 2097152 +const O_RDONLY = 0 +const O_RDWR = 2 +const O_RSYNC = 1052672 +const O_SEARCH = 2097152 +const O_SYNC = 1052672 +const O_TMPFILE = 4259840 +const O_TRUNC = 512 +const O_TTY_INIT = 0 +const O_WRONLY = 1 +const POSIX_FADV_DONTNEED = 4 +const POSIX_FADV_NOREUSE = 5 +const POSIX_FADV_NORMAL = 0 +const POSIX_FADV_RANDOM = 1 +const POSIX_FADV_SEQUENTIAL = 2 +const POSIX_FADV_WILLNEED = 3 +const S_IFBLK = 24576 +const S_IFCHR = 8192 +const S_IFDIR = 16384 +const S_IFIFO = 4096 +const S_IFLNK = 40960 +const S_IFMT = 61440 +const S_IFREG = 32768 +const S_IFSOCK = 49152 +const S_IRGRP = 32 +const S_IROTH = 4 +const S_IRUSR = 256 +const S_IRWXG = 56 +const S_IRWXO = 7 +const S_IRWXU = 448 +const S_ISGID = 1024 +const S_ISUID = 2048 +const S_ISVTX = 512 +const S_IWGRP = 16 +const S_IWOTH = 2 +const S_IWUSR = 128 +const S_IXGRP = 8 +const S_IXOTH = 1 +const S_IXUSR = 64 +const UTIME_NOW = 1073741823 +const UTIME_OMIT = 1073741822 + +type Tflock = struct { + Fl_type int16 + Fl_whence int16 + Fl_start Toff_t + Fl_len Toff_t + Fl_pid Tpid_t +} + +type Tnlink_t = uint64 + +type Tdev_t = uint64 + +type Tblksize_t = int64 + +type Tblkcnt_t = int64 + +type Tstat = struct { + Fst_dev Tdev_t + Fst_ino Tino_t + Fst_nlink Tnlink_t + Fst_mode Tmode_t + Fst_uid Tuid_t + Fst_gid Tgid_t + F__pad0 uint32 + Fst_rdev Tdev_t + Fst_size Toff_t + Fst_blksize Tblksize_t + Fst_blocks Tblkcnt_t + Fst_atim Ttimespec + Fst_mtim Ttimespec + Fst_ctim Ttimespec + F__unused [3]int64 +} + +func Xfdopendir(tls *TLS, fd int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(160) + defer tls.Free(160) + var dir, v1 uintptr + var _ /* st at bp+0 */ Tstat + _, _ = dir, v1 + if Xfstat(tls, fd, bp) < 0 { + return uintptr(0) + } + if Xfcntl(tls, fd, int32(F_GETFL), 0)&int32(O_PATH) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EBADF) + return uintptr(0) + } + if !((**(**Tstat)(__ccgo_up(bp))).Fst_mode&Uint32FromInt32(S_IFMT) == Uint32FromInt32(S_IFDIR)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOTDIR) + return uintptr(0) + } + v1 = Xcalloc(tls, uint64(1), uint64(2072)) + dir = v1 + if !(v1 != 0) { + return uintptr(0) + } + Xfcntl(tls, fd, int32(F_SETFD), VaList(bp+152, int32(FD_CLOEXEC))) + (*TDIR)(unsafe.Pointer(dir)).Ffd = fd + return dir +} + +const AT_EMPTY_PATH = 4096 +const AT_NO_AUTOMOUNT = 2048 +const AT_RECURSIVE = 32768 +const AT_STATX_DONT_SYNC = 16384 +const AT_STATX_FORCE_SYNC = 8192 +const AT_STATX_SYNC_AS_STAT = 0 +const AT_STATX_SYNC_TYPE = 24576 +const DN_ACCESS = 1 +const DN_ATTRIB = 32 +const DN_CREATE = 4 +const DN_DELETE = 8 +const DN_MODIFY = 2 +const DN_MULTISHOT = 2147483648 +const DN_RENAME = 16 +const DT_BLK = 6 +const DT_CHR = 2 +const DT_DIR = 4 +const DT_FIFO = 1 +const DT_LNK = 10 +const DT_REG = 8 +const DT_SOCK = 12 +const DT_UNKNOWN = 0 +const DT_WHT = 14 +const FALLOC_FL_KEEP_SIZE = 1 +const FALLOC_FL_PUNCH_HOLE = 2 +const FAPPEND = 1024 +const FASYNC = 8192 +const FFSYNC = 1052672 +const FNDELAY = 2048 +const FNONBLOCK = 2048 +const F_ADD_SEALS = 1033 +const F_CANCELLK = 1029 +const F_GETLEASE = 1025 +const F_GETPIPE_SZ = 1032 +const F_GET_FILE_RW_HINT = 1037 +const F_GET_RW_HINT = 1035 +const F_GET_SEALS = 1034 +const F_NOTIFY = 1026 +const F_OWNER_GID = 2 +const F_OWNER_PGRP = 2 +const F_OWNER_PID = 1 +const F_OWNER_TID = 0 +const F_SEAL_FUTURE_WRITE = 16 +const F_SEAL_GROW = 4 +const F_SEAL_SEAL = 1 +const F_SEAL_SHRINK = 2 +const F_SEAL_WRITE = 8 +const F_SETLEASE = 1024 +const F_SETPIPE_SZ = 1031 +const F_SET_FILE_RW_HINT = 1038 +const F_SET_RW_HINT = 1036 +const MAX_HANDLE_SZ = 128 +const RWF_WRITE_LIFE_NOT_SET = 0 +const RWH_WRITE_LIFE_EXTREME = 5 +const RWH_WRITE_LIFE_LONG = 4 +const RWH_WRITE_LIFE_MEDIUM = 3 +const RWH_WRITE_LIFE_NONE = 1 +const RWH_WRITE_LIFE_SHORT = 2 +const SPLICE_F_GIFT = 8 +const SPLICE_F_MORE = 4 +const SPLICE_F_MOVE = 1 +const SPLICE_F_NONBLOCK = 2 +const SYNC_FILE_RANGE_WAIT_AFTER = 4 +const SYNC_FILE_RANGE_WAIT_BEFORE = 1 +const SYNC_FILE_RANGE_WRITE = 2 +const alloca = 0 +const loff_t = 0 + +type Tiovec = struct { + Fiov_base uintptr + Fiov_len Tsize_t +} + +type Tfile_handle = struct { + Fhandle_bytes uint32 + Fhandle_type int32 +} + +type Tf_owner_ex = struct { + Ftype1 int32 + Fpid Tpid_t +} + +func Xopendir(tls *TLS, name uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + var dir, v2 uintptr + var fd, v1 int32 + _, _, _, _ = dir, fd, v1, v2 + v1 = Xopen(tls, name, Int32FromInt32(O_RDONLY)|Int32FromInt32(O_DIRECTORY)|Int32FromInt32(O_CLOEXEC), 0) + fd = v1 + if v1 < 0 { + return uintptr(0) + } + v2 = Xcalloc(tls, uint64(1), uint64(2072)) + dir = v2 + if !(v2 != 0) { + X__syscall1(tls, int64(SYS_close), int64(fd)) + return uintptr(0) + } + (*TDIR)(unsafe.Pointer(dir)).Ffd = fd + return dir +} + +type Tptrdiff_t = int64 + +type Tdirstream_buf_alignment_check = [1]int8 + +func Xreaddir(tls *TLS, dir uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v dir=%v, (%v:)", tls, dir, origin(2)) + defer func() { trc("-> %v", r) }() + } + var de uintptr + var len1 int32 + _, _ = de, len1 + if (*TDIR)(unsafe.Pointer(dir)).Fbuf_pos >= (*TDIR)(unsafe.Pointer(dir)).Fbuf_end { + len1 = int32(X__syscall3(tls, int64(SYS_getdents64), int64((*TDIR)(unsafe.Pointer(dir)).Ffd), int64(dir+24), Int64FromUint64(Uint64FromInt64(2048)))) + if len1 <= 0 { + if len1 < 0 && len1 != -int32(ENOENT) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = -len1 + } + return uintptr(0) + } + (*TDIR)(unsafe.Pointer(dir)).Fbuf_end = len1 + (*TDIR)(unsafe.Pointer(dir)).Fbuf_pos = 0 + } + de = dir + 24 + uintptr((*TDIR)(unsafe.Pointer(dir)).Fbuf_pos) + **(**int32)(__ccgo_up(dir + 12)) += Int32FromUint16((*Tdirent)(unsafe.Pointer(de)).Fd_reclen) + (*TDIR)(unsafe.Pointer(dir)).Ftell = (*Tdirent)(unsafe.Pointer(de)).Fd_off + return de +} + +func Xreaddir_r(tls *TLS, dir uintptr, buf uintptr, result uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v dir=%v buf=%v result=%v, (%v:)", tls, dir, buf, result, origin(2)) + defer func() { trc("-> %v", r) }() + } + var de uintptr + var errno_save, ret, v1 int32 + _, _, _, _ = de, errno_save, ret, v1 + errno_save = **(**int32)(__ccgo_up(X__errno_location(tls))) + ___lock(tls, dir+20) + **(**int32)(__ccgo_up(X__errno_location(tls))) = 0 + de = Xreaddir(tls, dir) + v1 = **(**int32)(__ccgo_up(X__errno_location(tls))) + ret = v1 + if v1 != 0 { + ___unlock(tls, dir+20) + return ret + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = errno_save + if de != 0 { + Xmemcpy(tls, buf, de, uint64((*Tdirent)(unsafe.Pointer(de)).Fd_reclen)) + } else { + buf = UintptrFromInt32(0) + } + ___unlock(tls, dir+20) + **(**uintptr)(__ccgo_up(result)) = buf + return 0 +} + +func Xrewinddir(tls *TLS, dir uintptr) { + if __ccgo_strace { + trc("tls=%v dir=%v, (%v:)", tls, dir, origin(2)) + } + var v1 int32 + _ = v1 + ___lock(tls, dir+20) + Xlseek(tls, (*TDIR)(unsafe.Pointer(dir)).Ffd, 0, SEEK_SET) + v1 = Int32FromInt32(0) + (*TDIR)(unsafe.Pointer(dir)).Fbuf_end = v1 + (*TDIR)(unsafe.Pointer(dir)).Fbuf_pos = v1 + (*TDIR)(unsafe.Pointer(dir)).Ftell = 0 + ___unlock(tls, dir+20) +} + +type t__ccgo_fp__Xscandir_2 = func(*TLS, uintptr) int32 + +type t__ccgo_fp__Xscandir_3 = func(*TLS, uintptr, uintptr) int32 + +func Xscandir(tls *TLS, path uintptr, res uintptr, __ccgo_fp_sel uintptr, __ccgo_fp_cmp uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v res=%v __ccgo_fp_sel=%v __ccgo_fp_cmp=%v, (%v:)", tls, path, res, __ccgo_fp_sel, __ccgo_fp_cmp, origin(2)) + defer func() { trc("-> %v", r) }() + } + var cnt, len1, v2 Tsize_t + var d, de, names, tmp, v1 uintptr + var old_errno int32 + _, _, _, _, _, _, _, _, _ = cnt, d, de, len1, names, old_errno, tmp, v1, v2 + d = Xopendir(tls, path) + names = uintptr(0) + cnt = uint64(0) + len1 = uint64(0) + old_errno = **(**int32)(__ccgo_up(X__errno_location(tls))) + if !(d != 0) { + return -int32(1) + } + for { + **(**int32)(__ccgo_up(X__errno_location(tls))) = 0 + v1 = Xreaddir(tls, d) + de = v1 + if !(v1 != 0) { + break + } + if __ccgo_fp_sel != 0 && !((*(*func(*TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_sel})))(tls, de) != 0) { + continue + } + if cnt >= len1 { + len1 = uint64(2)*len1 + uint64(1) + if len1 > Uint64FromUint64(0xffffffffffffffff)/Uint64FromInt64(8) { + break + } + tmp = Xrealloc(tls, names, len1*uint64(8)) + if !(tmp != 0) { + break + } + names = tmp + } + **(**uintptr)(__ccgo_up(names + uintptr(cnt)*8)) = Xmalloc(tls, uint64((*Tdirent)(unsafe.Pointer(de)).Fd_reclen)) + if !(**(**uintptr)(__ccgo_up(names + uintptr(cnt)*8)) != 0) { + break + } + v2 = cnt + cnt = cnt + 1 + Xmemcpy(tls, **(**uintptr)(__ccgo_up(names + uintptr(v2)*8)), de, uint64((*Tdirent)(unsafe.Pointer(de)).Fd_reclen)) + } + Xclosedir(tls, d) + if **(**int32)(__ccgo_up(X__errno_location(tls))) != 0 { + if names != 0 { + for { + v2 = cnt + cnt = cnt - 1 + if !(v2 > uint64(0)) { + break + } + Xfree(tls, **(**uintptr)(__ccgo_up(names + uintptr(cnt)*8))) + } + } + Xfree(tls, names) + return -int32(1) + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = old_errno + if __ccgo_fp_cmp != 0 { + Xqsort(tls, names, cnt, uint64(8), __ccgo_fp_cmp) + } + **(**uintptr)(__ccgo_up(res)) = names + return Int32FromUint64(cnt) +} + +func Xseekdir(tls *TLS, dir uintptr, off int64) { + if __ccgo_strace { + trc("tls=%v dir=%v off=%v, (%v:)", tls, dir, off, origin(2)) + } + var v1 int32 + _ = v1 + ___lock(tls, dir+20) + (*TDIR)(unsafe.Pointer(dir)).Ftell = Xlseek(tls, (*TDIR)(unsafe.Pointer(dir)).Ffd, off, SEEK_SET) + v1 = Int32FromInt32(0) + (*TDIR)(unsafe.Pointer(dir)).Fbuf_end = v1 + (*TDIR)(unsafe.Pointer(dir)).Fbuf_pos = v1 + ___unlock(tls, dir+20) +} + +func Xtelldir(tls *TLS, dir uintptr) (r int64) { + if __ccgo_strace { + trc("tls=%v dir=%v, (%v:)", tls, dir, origin(2)) + defer func() { trc("-> %v", r) }() + } + return (*TDIR)(unsafe.Pointer(dir)).Ftell +} + +func Xversionsort(tls *TLS, a uintptr, b uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v a=%v b=%v, (%v:)", tls, a, b, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrverscmp(tls, **(**uintptr)(__ccgo_up(a))+19, **(**uintptr)(__ccgo_up(b))+19) +} + +func X__reset_tls(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + var i, n Tsize_t + var mem, p uintptr + var self Tpthread_t + _, _, _, _, _ = i, mem, n, p, self + self = uintptr(___get_tp(tls)) + n = **(**Tuintptr_t)(__ccgo_up((*t__pthread)(unsafe.Pointer(self)).Fdtv)) + if n != 0 { + p = X__libc.Ftls_head + i = Uint64FromInt32(1) + for { + if !(i <= n) { + break + } + mem = uintptr(**(**Tuintptr_t)(__ccgo_up((*t__pthread)(unsafe.Pointer(self)).Fdtv + uintptr(i)*8)) - Uint64FromInt32(DTP_OFFSET)) + Xmemcpy(tls, mem, (*Ttls_module)(unsafe.Pointer(p)).Fimage, (*Ttls_module)(unsafe.Pointer(p)).Flen1) + Xmemset(tls, mem+uintptr((*Ttls_module)(unsafe.Pointer(p)).Flen1), 0, (*Ttls_module)(unsafe.Pointer(p)).Fsize-(*Ttls_module)(unsafe.Pointer(p)).Flen1) + goto _1 + _1: + ; + i = i + 1 + p = (*Ttls_module)(unsafe.Pointer(p)).Fnext + } + } +} + +func X__init_ssp(tls *TLS, entropy uintptr) { + if __ccgo_strace { + trc("tls=%v entropy=%v, (%v:)", tls, entropy, origin(2)) + } + if entropy != 0 { + Xmemcpy(tls, uintptr(unsafe.Pointer(&X__stack_chk_guard)), entropy, uint64(8)) + } else { + X__stack_chk_guard = Tuintptr_t(uintptr(unsafe.Pointer(&X__stack_chk_guard))) * uint64(1103515245) + } + /* Sacrifice 8 bits of entropy on 64bit to prevent leaking/ + * overwriting the canary via string-manipulation functions. + * The NULL byte is on the second byte so that off-by-ones can + * still be detected. Endianness is taken care of + * automatically. */ + **(**int8)(__ccgo_up(uintptr(unsafe.Pointer(&X__stack_chk_guard)) + 1)) = 0 + (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Fcanary = X__stack_chk_guard +} + +func X__stack_chk_fail(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + // __asm__ __volatile__( "hlt" : : : "memory" ); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 108, __ccgo_ts+261) +} + +func X__stack_chk_fail_local(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + X__stack_chk_fail(tls) +} + +const L_INCR = 1 +const L_SET = 0 +const L_XTND = 2 + +func _dummy(tls *TLS, old uintptr, new1 uintptr) { +} + +func Xclearenv(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + var e, v1 uintptr + _, _ = e, v1 + e = Xenviron + Xenviron = uintptr(0) + if e != 0 { + for **(**uintptr)(__ccgo_up(e)) != 0 { + v1 = e + e += 8 + X__env_rm_add(tls, **(**uintptr)(__ccgo_up(v1)), uintptr(0)) + } + } + return 0 +} + +func Xgetenv(tls *TLS, name uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + var e uintptr + var l Tsize_t + _, _ = e, l + l = Uint64FromInt64(int64(X__strchrnul(tls, name, int32('='))) - int64(name)) + if l != 0 && !(**(**int8)(__ccgo_up(name + uintptr(l))) != 0) && Xenviron != 0 { + e = Xenviron + for { + if !(**(**uintptr)(__ccgo_up(e)) != 0) { + break + } + if !(Xstrncmp(tls, name, **(**uintptr)(__ccgo_up(e)), l) != 0) && int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(e)) + uintptr(l)))) == int32('=') { + return **(**uintptr)(__ccgo_up(e)) + uintptr(l) + uintptr(1) + } + goto _1 + _1: + ; + e += 8 + } + } + return uintptr(0) +} + +func _dummy1(tls *TLS, old uintptr, new1 uintptr) { +} + +func X__putenv(tls *TLS, s uintptr, l Tsize_t, r uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v s=%v l=%v r=%v, (%v:)", tls, s, l, r, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var e, newenv, tmp, v2 uintptr + var i Tsize_t + _, _, _, _, _ = e, i, newenv, tmp, v2 + i = uint64(0) + if Xenviron != 0 { + e = Xenviron + for { + if !(**(**uintptr)(__ccgo_up(e)) != 0) { + break + } + if !(Xstrncmp(tls, s, **(**uintptr)(__ccgo_up(e)), l+uint64(1)) != 0) { + tmp = **(**uintptr)(__ccgo_up(e)) + **(**uintptr)(__ccgo_up(e)) = s + X__env_rm_add(tls, tmp, r) + return 0 + } + goto _1 + _1: + ; + e += 8 + i = i + 1 + } + } + if Xenviron == _oldenv { + newenv = Xrealloc(tls, _oldenv, uint64(8)*(i+uint64(2))) + if !(newenv != 0) { + goto oom + } + } else { + newenv = Xmalloc(tls, uint64(8)*(i+uint64(2))) + if !(newenv != 0) { + goto oom + } + if i != 0 { + Xmemcpy(tls, newenv, Xenviron, uint64(8)*i) + } + Xfree(tls, _oldenv) + } + **(**uintptr)(__ccgo_up(newenv + uintptr(i)*8)) = s + **(**uintptr)(__ccgo_up(newenv + uintptr(i+uint64(1))*8)) = uintptr(0) + v2 = newenv + _oldenv = v2 + Xenviron = v2 + if r != 0 { + X__env_rm_add(tls, uintptr(0), r) + } + return 0 + goto oom +oom: + ; + Xfree(tls, r) + return -int32(1) +} + +var _oldenv uintptr + +func Xputenv(tls *TLS, s uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l Tsize_t + _ = l + l = Uint64FromInt64(int64(X__strchrnul(tls, s, int32('='))) - int64(s)) + if !(l != 0) || !(**(**int8)(__ccgo_up(s + uintptr(l))) != 0) { + return Xunsetenv(tls, s) + } + return X__putenv(tls, s, l, uintptr(0)) +} + +const L_cuserid = 20 +const NL_NMAX = 16 + +type Tcookie_io_functions_t = struct { + Fread uintptr + Fwrite uintptr + Fseek uintptr + Fclose1 uintptr +} + +type T_IO_cookie_io_functions_t = Tcookie_io_functions_t + +func Xsecure_getenv(tls *TLS, name uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 uintptr + _ = v1 + if X__libc.Fsecure != 0 { + v1 = UintptrFromInt32(0) + } else { + v1 = Xgetenv(tls, name) + } + return v1 +} + +func X__env_rm_add(tls *TLS, old uintptr, new1 uintptr) { + if __ccgo_strace { + trc("tls=%v old=%v new1=%v, (%v:)", tls, old, new1, origin(2)) + } + var i, v3 Tsize_t + var t, v2 uintptr + _, _, _, _ = i, t, v2, v3 + i = uint64(0) + for { + if !(i < _env_alloced_n) { + break + } + if **(**uintptr)(__ccgo_up(_env_alloced + uintptr(i)*8)) == old { + **(**uintptr)(__ccgo_up(_env_alloced + uintptr(i)*8)) = new1 + Xfree(tls, old) + return + } else { + if !(**(**uintptr)(__ccgo_up(_env_alloced + uintptr(i)*8)) != 0) && new1 != 0 { + **(**uintptr)(__ccgo_up(_env_alloced + uintptr(i)*8)) = new1 + new1 = uintptr(0) + } + } + goto _1 + _1: + ; + i = i + 1 + } + if !(new1 != 0) { + return + } + t = Xrealloc(tls, _env_alloced, uint64(8)*(_env_alloced_n+uint64(1))) + if !(t != 0) { + return + } + v2 = t + _env_alloced = v2 + v3 = _env_alloced_n + _env_alloced_n = _env_alloced_n + 1 + **(**uintptr)(__ccgo_up(v2 + uintptr(v3)*8)) = new1 +} + +var _env_alloced uintptr + +var _env_alloced_n Tsize_t + +func Xsetenv(tls *TLS, var1 uintptr, value uintptr, overwrite int32) (r int32) { + if __ccgo_strace { + trc("tls=%v var1=%v value=%v overwrite=%v, (%v:)", tls, var1, value, overwrite, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l1, l2, v1 Tsize_t + var s uintptr + var v2 bool + _, _, _, _, _ = l1, l2, s, v1, v2 + if v2 = !(var1 != 0); !v2 { + v1 = Uint64FromInt64(int64(X__strchrnul(tls, var1, int32('='))) - int64(var1)) + l1 = v1 + } + if v2 || !(v1 != 0) || **(**int8)(__ccgo_up(var1 + uintptr(l1))) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + if !(overwrite != 0) && Xgetenv(tls, var1) != 0 { + return 0 + } + l2 = _strlen(tls, value) + s = Xmalloc(tls, l1+l2+uint64(2)) + if !(s != 0) { + return -int32(1) + } + Xmemcpy(tls, s, var1, l1) + **(**int8)(__ccgo_up(s + uintptr(l1))) = int8('=') + Xmemcpy(tls, s+uintptr(l1)+uintptr(1), value, l2+uint64(1)) + return X__putenv(tls, s, l1, s) +} + +func _dummy2(tls *TLS, old uintptr, new1 uintptr) { +} + +func Xunsetenv(tls *TLS, name uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + var e, eo, v2 uintptr + var l Tsize_t + _, _, _, _ = e, eo, l, v2 + l = Uint64FromInt64(int64(X__strchrnul(tls, name, int32('='))) - int64(name)) + if !(l != 0) || **(**int8)(__ccgo_up(name + uintptr(l))) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + if Xenviron != 0 { + e = Xenviron + eo = e + for { + if !(**(**uintptr)(__ccgo_up(e)) != 0) { + break + } + if !(Xstrncmp(tls, name, **(**uintptr)(__ccgo_up(e)), l) != 0) && int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(e)) + uintptr(l)))) == int32('=') { + X__env_rm_add(tls, **(**uintptr)(__ccgo_up(e)), uintptr(0)) + } else { + if eo != e { + v2 = eo + eo += 8 + **(**uintptr)(__ccgo_up(v2)) = **(**uintptr)(__ccgo_up(e)) + } else { + eo += 8 + } + } + goto _1 + _1: + ; + e += 8 + } + if eo != e { + **(**uintptr)(__ccgo_up(eo)) = uintptr(0) + } + } + return 0 +} + +/* mips has one error code outside of the 8-bit range due to a + * historical typo, so we just remap it. */ + +type Terrmsgstr_t = struct { + Fstr0 [21]int8 + FstrEILSEQ [22]int8 + FstrEDOM [13]int8 + FstrERANGE [25]int8 + FstrENOTTY [10]int8 + FstrEACCES [18]int8 + FstrEPERM [24]int8 + FstrENOENT [26]int8 + FstrESRCH [16]int8 + FstrEEXIST [12]int8 + FstrEOVERFLOW [30]int8 + FstrENOSPC [24]int8 + FstrENOMEM [14]int8 + FstrEBUSY [14]int8 + FstrEINTR [24]int8 + FstrEAGAIN [33]int8 + FstrESPIPE [13]int8 + FstrEXDEV [18]int8 + FstrEROFS [22]int8 + FstrENOTEMPTY [20]int8 + FstrECONNRESET [25]int8 + FstrETIMEDOUT [20]int8 + FstrECONNREFUSED [19]int8 + FstrEHOSTDOWN [13]int8 + FstrEHOSTUNREACH [20]int8 + FstrEADDRINUSE [15]int8 + FstrEPIPE [12]int8 + FstrEIO [10]int8 + FstrENXIO [26]int8 + FstrENOTBLK [22]int8 + FstrENODEV [15]int8 + FstrENOTDIR [16]int8 + FstrEISDIR [15]int8 + FstrETXTBSY [15]int8 + FstrENOEXEC [18]int8 + FstrEINVAL [17]int8 + FstrE2BIG [23]int8 + FstrELOOP [19]int8 + FstrENAMETOOLONG [18]int8 + FstrENFILE [30]int8 + FstrEMFILE [30]int8 + FstrEBADF [20]int8 + FstrECHILD [17]int8 + FstrEFAULT [12]int8 + FstrEFBIG [15]int8 + FstrEMLINK [15]int8 + FstrENOLCK [19]int8 + FstrEDEADLK [30]int8 + FstrENOTRECOVERABLE [22]int8 + FstrEOWNERDEAD [20]int8 + FstrECANCELED [19]int8 + FstrENOSYS [25]int8 + FstrENOMSG [27]int8 + FstrEIDRM [19]int8 + FstrENOSTR [20]int8 + FstrENODATA [18]int8 + FstrETIME [15]int8 + FstrENOSR [25]int8 + FstrENOLINK [22]int8 + FstrEPROTO [15]int8 + FstrEBADMSG [12]int8 + FstrEBADFD [29]int8 + FstrENOTSOCK [13]int8 + FstrEDESTADDRREQ [29]int8 + FstrEMSGSIZE [18]int8 + FstrEPROTOTYPE [31]int8 + FstrENOPROTOOPT [23]int8 + FstrEPROTONOSUPPORT [23]int8 + FstrESOCKTNOSUPPORT [26]int8 + FstrENOTSUP [14]int8 + FstrEPFNOSUPPORT [30]int8 + FstrEAFNOSUPPORT [41]int8 + FstrEADDRNOTAVAIL [22]int8 + FstrENETDOWN [16]int8 + FstrENETUNREACH [20]int8 + FstrENETRESET [28]int8 + FstrECONNABORTED [19]int8 + FstrENOBUFS [26]int8 + FstrEISCONN [20]int8 + FstrENOTCONN [21]int8 + FstrESHUTDOWN [34]int8 + FstrEALREADY [30]int8 + FstrEINPROGRESS [22]int8 + FstrESTALE [18]int8 + FstrEREMOTEIO [17]int8 + FstrEDQUOT [15]int8 + FstrENOMEDIUM [16]int8 + FstrEMEDIUMTYPE [18]int8 + FstrEMULTIHOP [19]int8 + FstrENOKEY [27]int8 + FstrEKEYEXPIRED [16]int8 + FstrEKEYREVOKED [21]int8 + FstrEKEYREJECTED [28]int8 +} + +/* mips has one error code outside of the 8-bit range due to a + * historical typo, so we just remap it. */ + +var _errmsgstr = Terrmsgstr_t{ + Fstr0: [21]int8{'N', 'o', ' ', 'e', 'r', 'r', 'o', 'r', ' ', 'i', 'n', 'f', 'o', 'r', 'm', 'a', 't', 'i', 'o', 'n'}, + FstrEILSEQ: [22]int8{'I', 'l', 'l', 'e', 'g', 'a', 'l', ' ', 'b', 'y', 't', 'e', ' ', 's', 'e', 'q', 'u', 'e', 'n', 'c', 'e'}, + FstrEDOM: [13]int8{'D', 'o', 'm', 'a', 'i', 'n', ' ', 'e', 'r', 'r', 'o', 'r'}, + FstrERANGE: [25]int8{'R', 'e', 's', 'u', 'l', 't', ' ', 'n', 'o', 't', ' ', 'r', 'e', 'p', 'r', 'e', 's', 'e', 'n', 't', 'a', 'b', 'l', 'e'}, + FstrENOTTY: [10]int8{'N', 'o', 't', ' ', 'a', ' ', 't', 't', 'y'}, + FstrEACCES: [18]int8{'P', 'e', 'r', 'm', 'i', 's', 's', 'i', 'o', 'n', ' ', 'd', 'e', 'n', 'i', 'e', 'd'}, + FstrEPERM: [24]int8{'O', 'p', 'e', 'r', 'a', 't', 'i', 'o', 'n', ' ', 'n', 'o', 't', ' ', 'p', 'e', 'r', 'm', 'i', 't', 't', 'e', 'd'}, + FstrENOENT: [26]int8{'N', 'o', ' ', 's', 'u', 'c', 'h', ' ', 'f', 'i', 'l', 'e', ' ', 'o', 'r', ' ', 'd', 'i', 'r', 'e', 'c', 't', 'o', 'r', 'y'}, + FstrESRCH: [16]int8{'N', 'o', ' ', 's', 'u', 'c', 'h', ' ', 'p', 'r', 'o', 'c', 'e', 's', 's'}, + FstrEEXIST: [12]int8{'F', 'i', 'l', 'e', ' ', 'e', 'x', 'i', 's', 't', 's'}, + FstrEOVERFLOW: [30]int8{'V', 'a', 'l', 'u', 'e', ' ', 't', 'o', 'o', ' ', 'l', 'a', 'r', 'g', 'e', ' ', 'f', 'o', 'r', ' ', 'd', 'a', 't', 'a', ' ', 't', 'y', 'p', 'e'}, + FstrENOSPC: [24]int8{'N', 'o', ' ', 's', 'p', 'a', 'c', 'e', ' ', 'l', 'e', 'f', 't', ' ', 'o', 'n', ' ', 'd', 'e', 'v', 'i', 'c', 'e'}, + FstrENOMEM: [14]int8{'O', 'u', 't', ' ', 'o', 'f', ' ', 'm', 'e', 'm', 'o', 'r', 'y'}, + FstrEBUSY: [14]int8{'R', 'e', 's', 'o', 'u', 'r', 'c', 'e', ' ', 'b', 'u', 's', 'y'}, + FstrEINTR: [24]int8{'I', 'n', 't', 'e', 'r', 'r', 'u', 'p', 't', 'e', 'd', ' ', 's', 'y', 's', 't', 'e', 'm', ' ', 'c', 'a', 'l', 'l'}, + FstrEAGAIN: [33]int8{'R', 'e', 's', 'o', 'u', 'r', 'c', 'e', ' ', 't', 'e', 'm', 'p', 'o', 'r', 'a', 'r', 'i', 'l', 'y', ' ', 'u', 'n', 'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e'}, + FstrESPIPE: [13]int8{'I', 'n', 'v', 'a', 'l', 'i', 'd', ' ', 's', 'e', 'e', 'k'}, + FstrEXDEV: [18]int8{'C', 'r', 'o', 's', 's', '-', 'd', 'e', 'v', 'i', 'c', 'e', ' ', 'l', 'i', 'n', 'k'}, + FstrEROFS: [22]int8{'R', 'e', 'a', 'd', '-', 'o', 'n', 'l', 'y', ' ', 'f', 'i', 'l', 'e', ' ', 's', 'y', 's', 't', 'e', 'm'}, + FstrENOTEMPTY: [20]int8{'D', 'i', 'r', 'e', 'c', 't', 'o', 'r', 'y', ' ', 'n', 'o', 't', ' ', 'e', 'm', 'p', 't', 'y'}, + FstrECONNRESET: [25]int8{'C', 'o', 'n', 'n', 'e', 'c', 't', 'i', 'o', 'n', ' ', 'r', 'e', 's', 'e', 't', ' ', 'b', 'y', ' ', 'p', 'e', 'e', 'r'}, + FstrETIMEDOUT: [20]int8{'O', 'p', 'e', 'r', 'a', 't', 'i', 'o', 'n', ' ', 't', 'i', 'm', 'e', 'd', ' ', 'o', 'u', 't'}, + FstrECONNREFUSED: [19]int8{'C', 'o', 'n', 'n', 'e', 'c', 't', 'i', 'o', 'n', ' ', 'r', 'e', 'f', 'u', 's', 'e', 'd'}, + FstrEHOSTDOWN: [13]int8{'H', 'o', 's', 't', ' ', 'i', 's', ' ', 'd', 'o', 'w', 'n'}, + FstrEHOSTUNREACH: [20]int8{'H', 'o', 's', 't', ' ', 'i', 's', ' ', 'u', 'n', 'r', 'e', 'a', 'c', 'h', 'a', 'b', 'l', 'e'}, + FstrEADDRINUSE: [15]int8{'A', 'd', 'd', 'r', 'e', 's', 's', ' ', 'i', 'n', ' ', 'u', 's', 'e'}, + FstrEPIPE: [12]int8{'B', 'r', 'o', 'k', 'e', 'n', ' ', 'p', 'i', 'p', 'e'}, + FstrEIO: [10]int8{'I', '/', 'O', ' ', 'e', 'r', 'r', 'o', 'r'}, + FstrENXIO: [26]int8{'N', 'o', ' ', 's', 'u', 'c', 'h', ' ', 'd', 'e', 'v', 'i', 'c', 'e', ' ', 'o', 'r', ' ', 'a', 'd', 'd', 'r', 'e', 's', 's'}, + FstrENOTBLK: [22]int8{'B', 'l', 'o', 'c', 'k', ' ', 'd', 'e', 'v', 'i', 'c', 'e', ' ', 'r', 'e', 'q', 'u', 'i', 'r', 'e', 'd'}, + FstrENODEV: [15]int8{'N', 'o', ' ', 's', 'u', 'c', 'h', ' ', 'd', 'e', 'v', 'i', 'c', 'e'}, + FstrENOTDIR: [16]int8{'N', 'o', 't', ' ', 'a', ' ', 'd', 'i', 'r', 'e', 'c', 't', 'o', 'r', 'y'}, + FstrEISDIR: [15]int8{'I', 's', ' ', 'a', ' ', 'd', 'i', 'r', 'e', 'c', 't', 'o', 'r', 'y'}, + FstrETXTBSY: [15]int8{'T', 'e', 'x', 't', ' ', 'f', 'i', 'l', 'e', ' ', 'b', 'u', 's', 'y'}, + FstrENOEXEC: [18]int8{'E', 'x', 'e', 'c', ' ', 'f', 'o', 'r', 'm', 'a', 't', ' ', 'e', 'r', 'r', 'o', 'r'}, + FstrEINVAL: [17]int8{'I', 'n', 'v', 'a', 'l', 'i', 'd', ' ', 'a', 'r', 'g', 'u', 'm', 'e', 'n', 't'}, + FstrE2BIG: [23]int8{'A', 'r', 'g', 'u', 'm', 'e', 'n', 't', ' ', 'l', 'i', 's', 't', ' ', 't', 'o', 'o', ' ', 'l', 'o', 'n', 'g'}, + FstrELOOP: [19]int8{'S', 'y', 'm', 'b', 'o', 'l', 'i', 'c', ' ', 'l', 'i', 'n', 'k', ' ', 'l', 'o', 'o', 'p'}, + FstrENAMETOOLONG: [18]int8{'F', 'i', 'l', 'e', 'n', 'a', 'm', 'e', ' ', 't', 'o', 'o', ' ', 'l', 'o', 'n', 'g'}, + FstrENFILE: [30]int8{'T', 'o', 'o', ' ', 'm', 'a', 'n', 'y', ' ', 'o', 'p', 'e', 'n', ' ', 'f', 'i', 'l', 'e', 's', ' ', 'i', 'n', ' ', 's', 'y', 's', 't', 'e', 'm'}, + FstrEMFILE: [30]int8{'N', 'o', ' ', 'f', 'i', 'l', 'e', ' ', 'd', 'e', 's', 'c', 'r', 'i', 'p', 't', 'o', 'r', 's', ' ', 'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e'}, + FstrEBADF: [20]int8{'B', 'a', 'd', ' ', 'f', 'i', 'l', 'e', ' ', 'd', 'e', 's', 'c', 'r', 'i', 'p', 't', 'o', 'r'}, + FstrECHILD: [17]int8{'N', 'o', ' ', 'c', 'h', 'i', 'l', 'd', ' ', 'p', 'r', 'o', 'c', 'e', 's', 's'}, + FstrEFAULT: [12]int8{'B', 'a', 'd', ' ', 'a', 'd', 'd', 'r', 'e', 's', 's'}, + FstrEFBIG: [15]int8{'F', 'i', 'l', 'e', ' ', 't', 'o', 'o', ' ', 'l', 'a', 'r', 'g', 'e'}, + FstrEMLINK: [15]int8{'T', 'o', 'o', ' ', 'm', 'a', 'n', 'y', ' ', 'l', 'i', 'n', 'k', 's'}, + FstrENOLCK: [19]int8{'N', 'o', ' ', 'l', 'o', 'c', 'k', 's', ' ', 'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e'}, + FstrEDEADLK: [30]int8{'R', 'e', 's', 'o', 'u', 'r', 'c', 'e', ' ', 'd', 'e', 'a', 'd', 'l', 'o', 'c', 'k', ' ', 'w', 'o', 'u', 'l', 'd', ' ', 'o', 'c', 'c', 'u', 'r'}, + FstrENOTRECOVERABLE: [22]int8{'S', 't', 'a', 't', 'e', ' ', 'n', 'o', 't', ' ', 'r', 'e', 'c', 'o', 'v', 'e', 'r', 'a', 'b', 'l', 'e'}, + FstrEOWNERDEAD: [20]int8{'P', 'r', 'e', 'v', 'i', 'o', 'u', 's', ' ', 'o', 'w', 'n', 'e', 'r', ' ', 'd', 'i', 'e', 'd'}, + FstrECANCELED: [19]int8{'O', 'p', 'e', 'r', 'a', 't', 'i', 'o', 'n', ' ', 'c', 'a', 'n', 'c', 'e', 'l', 'e', 'd'}, + FstrENOSYS: [25]int8{'F', 'u', 'n', 'c', 't', 'i', 'o', 'n', ' ', 'n', 'o', 't', ' ', 'i', 'm', 'p', 'l', 'e', 'm', 'e', 'n', 't', 'e', 'd'}, + FstrENOMSG: [27]int8{'N', 'o', ' ', 'm', 'e', 's', 's', 'a', 'g', 'e', ' ', 'o', 'f', ' ', 'd', 'e', 's', 'i', 'r', 'e', 'd', ' ', 't', 'y', 'p', 'e'}, + FstrEIDRM: [19]int8{'I', 'd', 'e', 'n', 't', 'i', 'f', 'i', 'e', 'r', ' ', 'r', 'e', 'm', 'o', 'v', 'e', 'd'}, + FstrENOSTR: [20]int8{'D', 'e', 'v', 'i', 'c', 'e', ' ', 'n', 'o', 't', ' ', 'a', ' ', 's', 't', 'r', 'e', 'a', 'm'}, + FstrENODATA: [18]int8{'N', 'o', ' ', 'd', 'a', 't', 'a', ' ', 'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e'}, + FstrETIME: [15]int8{'D', 'e', 'v', 'i', 'c', 'e', ' ', 't', 'i', 'm', 'e', 'o', 'u', 't'}, + FstrENOSR: [25]int8{'O', 'u', 't', ' ', 'o', 'f', ' ', 's', 't', 'r', 'e', 'a', 'm', 's', ' ', 'r', 'e', 's', 'o', 'u', 'r', 'c', 'e', 's'}, + FstrENOLINK: [22]int8{'L', 'i', 'n', 'k', ' ', 'h', 'a', 's', ' ', 'b', 'e', 'e', 'n', ' ', 's', 'e', 'v', 'e', 'r', 'e', 'd'}, + FstrEPROTO: [15]int8{'P', 'r', 'o', 't', 'o', 'c', 'o', 'l', ' ', 'e', 'r', 'r', 'o', 'r'}, + FstrEBADMSG: [12]int8{'B', 'a', 'd', ' ', 'm', 'e', 's', 's', 'a', 'g', 'e'}, + FstrEBADFD: [29]int8{'F', 'i', 'l', 'e', ' ', 'd', 'e', 's', 'c', 'r', 'i', 'p', 't', 'o', 'r', ' ', 'i', 'n', ' ', 'b', 'a', 'd', ' ', 's', 't', 'a', 't', 'e'}, + FstrENOTSOCK: [13]int8{'N', 'o', 't', ' ', 'a', ' ', 's', 'o', 'c', 'k', 'e', 't'}, + FstrEDESTADDRREQ: [29]int8{'D', 'e', 's', 't', 'i', 'n', 'a', 't', 'i', 'o', 'n', ' ', 'a', 'd', 'd', 'r', 'e', 's', 's', ' ', 'r', 'e', 'q', 'u', 'i', 'r', 'e', 'd'}, + FstrEMSGSIZE: [18]int8{'M', 'e', 's', 's', 'a', 'g', 'e', ' ', 't', 'o', 'o', ' ', 'l', 'a', 'r', 'g', 'e'}, + FstrEPROTOTYPE: [31]int8{'P', 'r', 'o', 't', 'o', 'c', 'o', 'l', ' ', 'w', 'r', 'o', 'n', 'g', ' ', 't', 'y', 'p', 'e', ' ', 'f', 'o', 'r', ' ', 's', 'o', 'c', 'k', 'e', 't'}, + FstrENOPROTOOPT: [23]int8{'P', 'r', 'o', 't', 'o', 'c', 'o', 'l', ' ', 'n', 'o', 't', ' ', 'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e'}, + FstrEPROTONOSUPPORT: [23]int8{'P', 'r', 'o', 't', 'o', 'c', 'o', 'l', ' ', 'n', 'o', 't', ' ', 's', 'u', 'p', 'p', 'o', 'r', 't', 'e', 'd'}, + FstrESOCKTNOSUPPORT: [26]int8{'S', 'o', 'c', 'k', 'e', 't', ' ', 't', 'y', 'p', 'e', ' ', 'n', 'o', 't', ' ', 's', 'u', 'p', 'p', 'o', 'r', 't', 'e', 'd'}, + FstrENOTSUP: [14]int8{'N', 'o', 't', ' ', 's', 'u', 'p', 'p', 'o', 'r', 't', 'e', 'd'}, + FstrEPFNOSUPPORT: [30]int8{'P', 'r', 'o', 't', 'o', 'c', 'o', 'l', ' ', 'f', 'a', 'm', 'i', 'l', 'y', ' ', 'n', 'o', 't', ' ', 's', 'u', 'p', 'p', 'o', 'r', 't', 'e', 'd'}, + FstrEAFNOSUPPORT: [41]int8{'A', 'd', 'd', 'r', 'e', 's', 's', ' ', 'f', 'a', 'm', 'i', 'l', 'y', ' ', 'n', 'o', 't', ' ', 's', 'u', 'p', 'p', 'o', 'r', 't', 'e', 'd', ' ', 'b', 'y', ' ', 'p', 'r', 'o', 't', 'o', 'c', 'o', 'l'}, + FstrEADDRNOTAVAIL: [22]int8{'A', 'd', 'd', 'r', 'e', 's', 's', ' ', 'n', 'o', 't', ' ', 'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e'}, + FstrENETDOWN: [16]int8{'N', 'e', 't', 'w', 'o', 'r', 'k', ' ', 'i', 's', ' ', 'd', 'o', 'w', 'n'}, + FstrENETUNREACH: [20]int8{'N', 'e', 't', 'w', 'o', 'r', 'k', ' ', 'u', 'n', 'r', 'e', 'a', 'c', 'h', 'a', 'b', 'l', 'e'}, + FstrENETRESET: [28]int8{'C', 'o', 'n', 'n', 'e', 'c', 't', 'i', 'o', 'n', ' ', 'r', 'e', 's', 'e', 't', ' ', 'b', 'y', ' ', 'n', 'e', 't', 'w', 'o', 'r', 'k'}, + FstrECONNABORTED: [19]int8{'C', 'o', 'n', 'n', 'e', 'c', 't', 'i', 'o', 'n', ' ', 'a', 'b', 'o', 'r', 't', 'e', 'd'}, + FstrENOBUFS: [26]int8{'N', 'o', ' ', 'b', 'u', 'f', 'f', 'e', 'r', ' ', 's', 'p', 'a', 'c', 'e', ' ', 'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e'}, + FstrEISCONN: [20]int8{'S', 'o', 'c', 'k', 'e', 't', ' ', 'i', 's', ' ', 'c', 'o', 'n', 'n', 'e', 'c', 't', 'e', 'd'}, + FstrENOTCONN: [21]int8{'S', 'o', 'c', 'k', 'e', 't', ' ', 'n', 'o', 't', ' ', 'c', 'o', 'n', 'n', 'e', 'c', 't', 'e', 'd'}, + FstrESHUTDOWN: [34]int8{'C', 'a', 'n', 'n', 'o', 't', ' ', 's', 'e', 'n', 'd', ' ', 'a', 'f', 't', 'e', 'r', ' ', 's', 'o', 'c', 'k', 'e', 't', ' ', 's', 'h', 'u', 't', 'd', 'o', 'w', 'n'}, + FstrEALREADY: [30]int8{'O', 'p', 'e', 'r', 'a', 't', 'i', 'o', 'n', ' ', 'a', 'l', 'r', 'e', 'a', 'd', 'y', ' ', 'i', 'n', ' ', 'p', 'r', 'o', 'g', 'r', 'e', 's', 's'}, + FstrEINPROGRESS: [22]int8{'O', 'p', 'e', 'r', 'a', 't', 'i', 'o', 'n', ' ', 'i', 'n', ' ', 'p', 'r', 'o', 'g', 'r', 'e', 's', 's'}, + FstrESTALE: [18]int8{'S', 't', 'a', 'l', 'e', ' ', 'f', 'i', 'l', 'e', ' ', 'h', 'a', 'n', 'd', 'l', 'e'}, + FstrEREMOTEIO: [17]int8{'R', 'e', 'm', 'o', 't', 'e', ' ', 'I', '/', 'O', ' ', 'e', 'r', 'r', 'o', 'r'}, + FstrEDQUOT: [15]int8{'Q', 'u', 'o', 't', 'a', ' ', 'e', 'x', 'c', 'e', 'e', 'd', 'e', 'd'}, + FstrENOMEDIUM: [16]int8{'N', 'o', ' ', 'm', 'e', 'd', 'i', 'u', 'm', ' ', 'f', 'o', 'u', 'n', 'd'}, + FstrEMEDIUMTYPE: [18]int8{'W', 'r', 'o', 'n', 'g', ' ', 'm', 'e', 'd', 'i', 'u', 'm', ' ', 't', 'y', 'p', 'e'}, + FstrEMULTIHOP: [19]int8{'M', 'u', 'l', 't', 'i', 'h', 'o', 'p', ' ', 'a', 't', 't', 'e', 'm', 'p', 't', 'e', 'd'}, + FstrENOKEY: [27]int8{'R', 'e', 'q', 'u', 'i', 'r', 'e', 'd', ' ', 'k', 'e', 'y', ' ', 'n', 'o', 't', ' ', 'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e'}, + FstrEKEYEXPIRED: [16]int8{'K', 'e', 'y', ' ', 'h', 'a', 's', ' ', 'e', 'x', 'p', 'i', 'r', 'e', 'd'}, + FstrEKEYREVOKED: [21]int8{'K', 'e', 'y', ' ', 'h', 'a', 's', ' ', 'b', 'e', 'e', 'n', ' ', 'r', 'e', 'v', 'o', 'k', 'e', 'd'}, + FstrEKEYREJECTED: [28]int8{'K', 'e', 'y', ' ', 'w', 'a', 's', ' ', 'r', 'e', 'j', 'e', 'c', 't', 'e', 'd', ' ', 'b', 'y', ' ', 's', 'e', 'r', 'v', 'i', 'c', 'e'}, +} + +var _errmsgidx = [132]uint16{ + 1: uint16(uint64(UintptrFromInt32(0) + 109)), + 2: uint16(uint64(UintptrFromInt32(0) + 133)), + 3: uint16(uint64(UintptrFromInt32(0) + 159)), + 4: uint16(uint64(UintptrFromInt32(0) + 269)), + 5: uint16(uint64(UintptrFromInt32(0) + 523)), + 6: uint16(uint64(UintptrFromInt32(0) + 533)), + 7: uint16(uint64(UintptrFromInt32(0) + 677)), + 8: uint16(uint64(UintptrFromInt32(0) + 642)), + 9: uint16(uint64(UintptrFromInt32(0) + 797)), + 10: uint16(uint64(UintptrFromInt32(0) + 817)), + 11: uint16(uint64(UintptrFromInt32(0) + 293)), + 12: uint16(uint64(UintptrFromInt32(0) + 241)), + 13: uint16(uint64(UintptrFromInt32(0) + 91)), + 14: uint16(uint64(UintptrFromInt32(0) + 834)), + 15: uint16(uint64(UintptrFromInt32(0) + 559)), + 16: uint16(uint64(UintptrFromInt32(0) + 255)), + 17: uint16(uint64(UintptrFromInt32(0) + 175)), + 18: uint16(uint64(UintptrFromInt32(0) + 339)), + 19: uint16(uint64(UintptrFromInt32(0) + 581)), + 20: uint16(uint64(UintptrFromInt32(0) + 596)), + 21: uint16(uint64(UintptrFromInt32(0) + 612)), + 22: uint16(uint64(UintptrFromInt32(0) + 660)), + 23: uint16(uint64(UintptrFromInt32(0) + 737)), + 24: uint16(uint64(UintptrFromInt32(0) + 767)), + 25: uint16(uint64(UintptrFromInt32(0) + 81)), + 26: uint16(uint64(UintptrFromInt32(0) + 627)), + 27: uint16(uint64(UintptrFromInt32(0) + 846)), + 28: uint16(uint64(UintptrFromInt32(0) + 217)), + 29: uint16(uint64(UintptrFromInt32(0) + 326)), + 30: uint16(uint64(UintptrFromInt32(0) + 357)), + 31: uint16(uint64(UintptrFromInt32(0) + 861)), + 32: uint16(uint64(UintptrFromInt32(0) + 511)), + 33: uint16(uint64(UintptrFromInt32(0) + 43)), + 34: uint16(uint64(UintptrFromInt32(0) + 56)), + 35: uint16(uint64(UintptrFromInt32(0) + 895)), + 36: uint16(uint64(UintptrFromInt32(0) + 719)), + 37: uint16(uint64(UintptrFromInt32(0) + 876)), + 38: uint16(uint64(UintptrFromInt32(0) + 986)), + 39: uint16(uint64(UintptrFromInt32(0) + 379)), + 40: uint16(uint64(UintptrFromInt32(0) + 700)), + 42: uint16(uint64(UintptrFromInt32(0) + 1011)), + 43: uint16(uint64(UintptrFromInt32(0) + 1038)), + 60: uint16(uint64(UintptrFromInt32(0) + 1057)), + 61: uint16(uint64(UintptrFromInt32(0) + 1077)), + 62: uint16(uint64(UintptrFromInt32(0) + 1095)), + 63: uint16(uint64(UintptrFromInt32(0) + 1110)), + 67: uint16(uint64(UintptrFromInt32(0) + 1135)), + 71: uint16(uint64(UintptrFromInt32(0) + 1157)), + 72: uint16(uint64(UintptrFromInt32(0) + 1803)), + 74: uint16(uint64(UintptrFromInt32(0) + 1172)), + 75: uint16(uint64(UintptrFromInt32(0) + 187)), + 77: uint16(uint64(UintptrFromInt32(0) + 1184)), + 84: uint16(uint64(UintptrFromInt32(0) + 21)), + 88: uint16(uint64(UintptrFromInt32(0) + 1213)), + 89: uint16(uint64(UintptrFromInt32(0) + 1226)), + 90: uint16(uint64(UintptrFromInt32(0) + 1255)), + 91: uint16(uint64(UintptrFromInt32(0) + 1273)), + 92: uint16(uint64(UintptrFromInt32(0) + 1304)), + 93: uint16(uint64(UintptrFromInt32(0) + 1327)), + 94: uint16(uint64(UintptrFromInt32(0) + 1350)), + 95: uint16(uint64(UintptrFromInt32(0) + 1376)), + 96: uint16(uint64(UintptrFromInt32(0) + 1390)), + 97: uint16(uint64(UintptrFromInt32(0) + 1420)), + 98: uint16(uint64(UintptrFromInt32(0) + 496)), + 99: uint16(uint64(UintptrFromInt32(0) + 1461)), + 100: uint16(uint64(UintptrFromInt32(0) + 1483)), + 101: uint16(uint64(UintptrFromInt32(0) + 1499)), + 102: uint16(uint64(UintptrFromInt32(0) + 1519)), + 103: uint16(uint64(UintptrFromInt32(0) + 1547)), + 104: uint16(uint64(UintptrFromInt32(0) + 399)), + 105: uint16(uint64(UintptrFromInt32(0) + 1566)), + 106: uint16(uint64(UintptrFromInt32(0) + 1592)), + 107: uint16(uint64(UintptrFromInt32(0) + 1612)), + 108: uint16(uint64(UintptrFromInt32(0) + 1633)), + 110: uint16(uint64(UintptrFromInt32(0) + 424)), + 111: uint16(uint64(UintptrFromInt32(0) + 444)), + 112: uint16(uint64(UintptrFromInt32(0) + 463)), + 113: uint16(uint64(UintptrFromInt32(0) + 476)), + 114: uint16(uint64(UintptrFromInt32(0) + 1667)), + 115: uint16(uint64(UintptrFromInt32(0) + 1697)), + 116: uint16(uint64(UintptrFromInt32(0) + 1719)), + 121: uint16(uint64(UintptrFromInt32(0) + 1737)), + 122: uint16(uint64(UintptrFromInt32(0) + 1754)), + 123: uint16(uint64(UintptrFromInt32(0) + 1769)), + 124: uint16(uint64(UintptrFromInt32(0) + 1785)), + 125: uint16(uint64(UintptrFromInt32(0) + 967)), + 126: uint16(uint64(UintptrFromInt32(0) + 1822)), + 127: uint16(uint64(UintptrFromInt32(0) + 1849)), + 128: uint16(uint64(UintptrFromInt32(0) + 1865)), + 129: uint16(uint64(UintptrFromInt32(0) + 1886)), + 130: uint16(uint64(UintptrFromInt32(0) + 947)), + 131: uint16(uint64(UintptrFromInt32(0) + 925)), +} + +func X__strerror_l(tls *TLS, e int32, loc Tlocale_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v e=%v loc=%v, (%v:)", tls, e, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + var s uintptr + _ = s + if Uint64FromInt32(e) >= Uint64FromInt64(264)/Uint64FromInt64(2) { + e = 0 + } + s = uintptr(unsafe.Pointer(&_errmsgstr)) + uintptr(_errmsgidx[e]) + return X__lctrans(tls, s, **(**uintptr)(__ccgo_up(loc + 5*8))) +} + +func Xstrerror(tls *TLS, e int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v e=%v, (%v:)", tls, e, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__strerror_l(tls, e, (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale) +} + +func Xstrerror_l(tls *TLS, e int32, loc Tlocale_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v e=%v loc=%v, (%v:)", tls, e, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__strerror_l(tls, e, loc) +} + +func X_Exit(tls *TLS, ec int32) { + if __ccgo_strace { + trc("tls=%v ec=%v, (%v:)", tls, ec, origin(2)) + } + X__syscall1(tls, int64(SYS_exit_group), int64(ec)) + for { + X__syscall1(tls, int64(SYS_exit), int64(ec)) + goto _1 + _1: + } +} + +func X__assert_fail(tls *TLS, expr uintptr, file uintptr, line int32, func1 uintptr) { + if __ccgo_strace { + trc("tls=%v expr=%v file=%v line=%v func1=%v, (%v:)", tls, expr, file, line, func1, origin(2)) + } + bp := tls.Alloc(48) + defer tls.Free(48) + Xfprintf(tls, uintptr(unsafe.Pointer(&X__stderr_FILE)), __ccgo_ts+278, VaList(bp+8, expr, file, func1, line)) + Xabort(tls) +} + +const COUNT = 32 + +var _funcs [32]uintptr +var _count int32 +var _lock [1]int32 + +func X__funcs_on_quick_exit(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + var func1 uintptr + var v1 int32 + _, _ = func1, v1 + ___lock(tls, uintptr(unsafe.Pointer(&_lock))) + for _count > 0 { + _count = _count - 1 + v1 = _count + func1 = _funcs[v1] + ___unlock(tls, uintptr(unsafe.Pointer(&_lock))) + (*(*func(*TLS))(unsafe.Pointer(&struct{ uintptr }{func1})))(tls) + ___lock(tls, uintptr(unsafe.Pointer(&_lock))) + } +} + +type t__ccgo_fp__Xat_quick_exit_0 = func(*TLS) + +func Xat_quick_exit(tls *TLS, __ccgo_fp_func uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v __ccgo_fp_func=%v, (%v:)", tls, __ccgo_fp_func, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v1 int32 + _, _ = r, v1 + r = 0 + ___lock(tls, uintptr(unsafe.Pointer(&_lock))) + if _count == int32(32) { + r = -int32(1) + } else { + v1 = _count + _count = _count + 1 + _funcs[v1] = __ccgo_fp_func + } + ___unlock(tls, uintptr(unsafe.Pointer(&_lock))) + return r +} + +func _dummy3(tls *TLS) { +} + +func Xquick_exit(tls *TLS, code int32) { + if __ccgo_strace { + trc("tls=%v code=%v, (%v:)", tls, code, origin(2)) + } + X__funcs_on_quick_exit(tls) + X_Exit(tls, code) +} + +func Xcreat(tls *TLS, filename uintptr, mode Tmode_t) (r int32) { + if __ccgo_strace { + trc("tls=%v filename=%v mode=%v, (%v:)", tls, filename, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + return Xopen(tls, filename, Int32FromInt32(O_CREAT)|Int32FromInt32(O_WRONLY)|Int32FromInt32(O_TRUNC), VaList(bp+8, mode)) +} + +func Xfcntl(tls *TLS, fd int32, cmd int32, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v cmd=%v va=%v, (%v:)", tls, fd, cmd, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ap Tva_list + var arg uint64 + var ret, ret1, v1 int32 + var _ /* ex at bp+0 */ Tf_owner_ex + _, _, _, _, _ = ap, arg, ret, ret1, v1 + ap = va + arg = VaUint64(&ap) + _ = ap + if cmd == int32(F_SETFL) { + arg = arg | uint64(O_LARGEFILE) + } + if cmd == int32(F_SETLKW) { + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_fcntl), int64(fd), int64(cmd), int64(uintptr(arg)), 0, 0, 0)))) + } + if cmd == int32(F_GETOWN) { + ret = int32(X__syscall3(tls, int64(SYS_fcntl), int64(fd), int64(Int32FromInt32(F_GETOWN_EX)), int64(bp))) + if ret == -int32(EINVAL) { + return int32(X__syscall3(tls, int64(SYS_fcntl), int64(fd), int64(cmd), int64(uintptr(arg)))) + } + if ret != 0 { + return int32(X__syscall_ret(tls, Uint64FromInt32(ret))) + } + if (**(**Tf_owner_ex)(__ccgo_up(bp))).Ftype1 == int32(F_OWNER_PGRP) { + v1 = -(**(**Tf_owner_ex)(__ccgo_up(bp))).Fpid + } else { + v1 = (**(**Tf_owner_ex)(__ccgo_up(bp))).Fpid + } + return v1 + } + if cmd == int32(F_DUPFD_CLOEXEC) { + ret1 = int32(X__syscall3(tls, int64(SYS_fcntl), int64(fd), int64(Int32FromInt32(F_DUPFD_CLOEXEC)), Int64FromUint64(arg))) + if ret1 != -int32(EINVAL) { + if ret1 >= 0 { + X__syscall3(tls, int64(SYS_fcntl), int64(ret1), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + } + return int32(X__syscall_ret(tls, Uint64FromInt32(ret1))) + } + ret1 = int32(X__syscall3(tls, int64(SYS_fcntl), int64(fd), int64(Int32FromInt32(F_DUPFD_CLOEXEC)), int64(Int32FromInt32(0)))) + if ret1 != -int32(EINVAL) { + if ret1 >= 0 { + X__syscall1(tls, int64(SYS_close), int64(ret1)) + } + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL)))) + } + ret1 = int32(X__syscall3(tls, int64(SYS_fcntl), int64(fd), int64(Int32FromInt32(F_DUPFD)), Int64FromUint64(arg))) + if ret1 >= 0 { + X__syscall3(tls, int64(SYS_fcntl), int64(ret1), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + } + return int32(X__syscall_ret(tls, Uint64FromInt32(ret1))) + } + switch cmd { + case int32(F_SETLK): + fallthrough + case int32(F_GETLK): + fallthrough + case int32(F_GETOWN_EX): + fallthrough + case int32(F_SETOWN_EX): + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_fcntl), int64(fd), int64(cmd), int64(uintptr(arg)))))) + default: + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_fcntl), int64(fd), int64(cmd), Int64FromUint64(arg))))) + } + return r +} + +func Xopen(tls *TLS, filename uintptr, flags int32, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v filename=%v flags=%v va=%v, (%v:)", tls, filename, flags, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var fd int32 + var mode Tmode_t + _, _, _ = ap, fd, mode + mode = uint32(0) + if flags&int32(O_CREAT) != 0 || flags&int32(O_TMPFILE) == int32(O_TMPFILE) { + ap = va + mode = VaUint32(&ap) + _ = ap + } + fd = int32(___syscall_cp(tls, int64(SYS_open), int64(filename), int64(flags|Int32FromInt32(O_LARGEFILE)), Int64FromUint32(mode), 0, 0, 0)) + if fd >= 0 && flags&int32(O_CLOEXEC) != 0 { + X__syscall3(tls, int64(SYS_fcntl), int64(fd), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + } + return int32(X__syscall_ret(tls, Uint64FromInt32(fd))) +} + +func Xopenat(tls *TLS, fd int32, filename uintptr, flags int32, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v filename=%v flags=%v va=%v, (%v:)", tls, fd, filename, flags, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var mode Tmode_t + _, _ = ap, mode + mode = uint32(0) + if flags&int32(O_CREAT) != 0 || flags&int32(O_TMPFILE) == int32(O_TMPFILE) { + ap = va + mode = VaUint32(&ap) + _ = ap + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_openat), int64(fd), int64(filename), int64(flags|Int32FromInt32(O_LARGEFILE)), Int64FromUint32(mode), 0, 0)))) +} + +func Xposix_fadvise(tls *TLS, fd int32, base Toff_t, len1 Toff_t, advice int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v base=%v len1=%v advice=%v, (%v:)", tls, fd, base, len1, advice, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(-X__syscall4(tls, int64(SYS_fadvise64), int64(fd), base, len1, int64(advice))) +} + +func Xposix_fallocate(tls *TLS, fd int32, base Toff_t, len1 Toff_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v base=%v len1=%v, (%v:)", tls, fd, base, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(-X__syscall4(tls, int64(SYS_fallocate), int64(fd), int64(Int32FromInt32(0)), base, len1)) +} + +const FE_ALL_EXCEPT = 63 +const FE_DIVBYZERO = 4 +const FE_DOWNWARD = 1024 +const FE_INEXACT = 32 +const FE_INVALID = 1 +const FE_OVERFLOW = 8 +const FE_TONEAREST = 0 +const FE_TOWARDZERO = 3072 +const FE_UNDERFLOW = 16 +const FE_UPWARD = 2048 +const __FE_DENORM = 2 + +type Tfexcept_t = uint16 + +type Tfenv_t = struct { + F__control_word uint16 + F__unused1 uint16 + F__status_word uint16 + F__unused2 uint16 + F__tags uint16 + F__unused3 uint16 + F__eip uint32 + F__cs_selector uint16 + F__ccgo_align8 [2]byte + F__ccgo20 uint16 + F__data_offset uint32 + F__data_selector uint16 + F__unused5 uint16 + F__mxcsr uint32 +} + +/* Dummy functions for archs lacking fenv implementation */ + +func Xfeclearexcept(tls *TLS, mask int32) (r int32) { + if __ccgo_strace { + trc("tls=%v mask=%v, (%v:)", tls, mask, origin(2)) + defer func() { trc("-> %v", r) }() + } + return 0 +} + +func Xferaiseexcept(tls *TLS, mask int32) (r int32) { + if __ccgo_strace { + trc("tls=%v mask=%v, (%v:)", tls, mask, origin(2)) + defer func() { trc("-> %v", r) }() + } + return 0 +} + +func Xfetestexcept(tls *TLS, mask int32) (r int32) { + if __ccgo_strace { + trc("tls=%v mask=%v, (%v:)", tls, mask, origin(2)) + defer func() { trc("-> %v", r) }() + } + return 0 +} + +func Xfegetround(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return FE_TONEAREST +} + +func X__fesetround(tls *TLS, r int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v r=%v, (%v:)", tls, r, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return 0 +} + +func Xfegetenv(tls *TLS, envp uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v envp=%v, (%v:)", tls, envp, origin(2)) + defer func() { trc("-> %v", r) }() + } + return 0 +} + +func Xfesetenv(tls *TLS, envp uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v envp=%v, (%v:)", tls, envp, origin(2)) + defer func() { trc("-> %v", r) }() + } + return 0 +} + +const WCONTINUED = 8 +const WEXITED = 4 +const WNOWAIT = 16777216 +const WSTOPPED = 2 +const __WALL = 1073741824 +const __WCLONE = 2147483648 +const __WNOTHREAD = 536870912 + +type Tidtype_t = int32 + +const _P_ALL = 0 +const _P_PID = 1 +const _P_PGID = 2 +const _P_PIDFD = 3 +const F_APP = 128 +const F_EOF = 16 +const F_ERR = 32 +const F_NORD = 4 +const F_NOWR = 8 +const F_PERM = 1 +const F_SVB = 64 +const KMAX = 128 +const LDBL_EPSILON1 = 2.22044604925031308085e-16 +const LDBL_MAX1 = 1.79769313486231570815e+308 +const LDBL_MIN1 = 2.22507385850720138309e-308 +const LD_B1B_DIG = 2 +const LD_B1B_MAX = 254740991 +const MASK = 127 +const MAYBE_WAITERS = 1073741824 +const UNGET = 8 + +type TFILE = struct { + Fflags uint32 + Frpos uintptr + Frend uintptr + Fclose1 uintptr + Fwend uintptr + Fwpos uintptr + Fmustbezero_1 uintptr + Fwbase uintptr + Fread uintptr + Fwrite uintptr + Fseek uintptr + Fbuf uintptr + Fbuf_size Tsize_t + Fprev uintptr + Fnext uintptr + Ffd int32 + Fpipe_pid int32 + Flockcount int64 + Fmode int32 + Flock int32 + Flbf int32 + Fcookie uintptr + Foff Toff_t + Fgetln_buf uintptr + Fmustbezero_2 uintptr + Fshend uintptr + Fshlim Toff_t + Fshcnt Toff_t + Fprev_locked uintptr + Fnext_locked uintptr + Flocale uintptr +} + +type T_IO_FILE = TFILE + +func _scanexp(tls *TLS, f uintptr, pok int32) (r int64) { + var c, neg, x, v1 int32 + var y, v19 int64 + var v2, v3 uintptr + _, _, _, _, _, _, _, _ = c, neg, x, y, v1, v19, v2, v3 + neg = 0 + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v3 = f + 8 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + if c == int32('+') || c == int32('-') { + neg = BoolInt32(c == int32('-')) + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v3 = f + 8 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + if Uint32FromInt32(c-int32('0')) >= uint32(10) && pok != 0 { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + } + } + if Uint32FromInt32(c-int32('0')) >= uint32(10) { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + return -Int64FromInt64(0x7fffffffffffffff) - Int64FromInt32(1) + } + x = 0 + for { + if !(Uint32FromInt32(c-int32('0')) < uint32(10) && x < Int32FromInt32(INT_MAX)/Int32FromInt32(10)) { + break + } + x = int32(10)*x + c - int32('0') + goto _7 + _7: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v3 = f + 8 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + y = int64(x) + for { + if !(Uint32FromInt32(c-int32('0')) < uint32(10) && y < Int64FromInt64(0x7fffffffffffffff)/Int64FromInt32(100)) { + break + } + y = int64(10)*y + int64(c) - int64('0') + goto _11 + _11: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v3 = f + 8 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + for { + if !(Uint32FromInt32(c-int32('0')) < uint32(10)) { + break + } + goto _15 + _15: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v3 = f + 8 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + if neg != 0 { + v19 = -y + } else { + v19 = y + } + return v19 +} + +func _decfloat(tls *TLS, f uintptr, c int32, bits int32, emin int32, sign int32, pok int32) (r float64) { + bp := tls.Alloc(512) + defer tls.Free(512) + var a, bitlim, denormal, e2, emax, gotdig, gotrad, i, j, k, lnz, p10, rp, rpm9, sh, z, v2, v6 int32 + var bias, frac, y float64 + var carry, carry1, carry2, t, tmp, tmp2 Tuint32_t + var dc, e10, lrp int64 + var tmp1 Tuint64_t + var v3, v4 uintptr + var _ /* x at bp+0 */ [128]Tuint32_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = a, bias, bitlim, carry, carry1, carry2, dc, denormal, e10, e2, emax, frac, gotdig, gotrad, i, j, k, lnz, lrp, p10, rp, rpm9, sh, t, tmp, tmp1, tmp2, y, z, v2, v3, v4, v6 + lrp = 0 + dc = 0 + e10 = 0 + lnz = 0 + gotdig = 0 + gotrad = 0 + emax = -emin - bits + int32(3) + denormal = 0 + frac = Float64FromInt32(0) + bias = Float64FromInt32(0) + j = 0 + k = 0 + /* Don't let leading zeros consume buffer space */ + for { + if !(c == int32('0')) { + break + } + gotdig = int32(1) + goto _1 + _1: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v2 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v2 = X__shgetc(tls, f) + } + c = v2 + } + if c == int32('.') { + gotrad = int32(1) + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v2 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v2 = X__shgetc(tls, f) + } + c = v2 + for { + if !(c == int32('0')) { + break + } + gotdig = int32(1) + lrp = lrp - 1 + goto _5 + _5: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v2 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v2 = X__shgetc(tls, f) + } + c = v2 + } + } + (**(**[128]Tuint32_t)(__ccgo_up(bp)))[0] = uint32(0) + for { + if !(Uint32FromInt32(c-int32('0')) < uint32(10) || c == int32('.')) { + break + } + if c == int32('.') { + if gotrad != 0 { + break + } + gotrad = int32(1) + lrp = dc + } else { + if k < Int32FromInt32(KMAX)-Int32FromInt32(3) { + dc = dc + 1 + if c != int32('0') { + lnz = int32(dc) + } + if j != 0 { + (**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] = (**(**[128]Tuint32_t)(__ccgo_up(bp)))[k]*uint32(10) + Uint32FromInt32(c) - uint32('0') + } else { + (**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] = Uint32FromInt32(c - int32('0')) + } + j = j + 1 + v2 = j + if v2 == int32(9) { + k = k + 1 + j = 0 + } + gotdig = int32(1) + } else { + dc = dc + 1 + if c != int32('0') { + lnz = (Int32FromInt32(KMAX) - Int32FromInt32(4)) * Int32FromInt32(9) + **(**Tuint32_t)(__ccgo_up(bp + uintptr(Int32FromInt32(KMAX)-Int32FromInt32(4))*4)) |= uint32(1) + } + } + } + goto _12 + _12: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v2 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v2 = X__shgetc(tls, f) + } + c = v2 + } + if !(gotrad != 0) { + lrp = dc + } + if gotdig != 0 && c|int32(32) == int32('e') { + e10 = _scanexp(tls, f, pok) + if e10 == -Int64FromInt64(0x7fffffffffffffff)-Int64FromInt32(1) { + if pok != 0 { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + } else { + X__shlim(tls, f, int64(Int32FromInt32(0))) + return Float64FromInt32(0) + } + e10 = 0 + } + lrp = lrp + e10 + } else { + if c >= 0 { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + } + } + if !(gotdig != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + X__shlim(tls, f, int64(Int32FromInt32(0))) + return Float64FromInt32(0) + } + /* Handle zero specially to avoid nasty special cases later */ + if !((**(**[128]Tuint32_t)(__ccgo_up(bp)))[0] != 0) { + return float64(float64(sign) * float64(0)) + } + /* Optimize small integers (w/no exponent) and over/under-flow */ + if lrp == dc && dc < int64(10) && (bits > int32(30) || (**(**[128]Tuint32_t)(__ccgo_up(bp)))[0]>>bits == uint32(0)) { + return float64(float64(sign) * float64((**(**[128]Tuint32_t)(__ccgo_up(bp)))[0])) + } + if lrp > int64(-emin/int32(2)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ERANGE) + return float64(float64(float64(sign)*Float64FromFloat64(1.79769313486231570815e+308)) * Float64FromFloat64(1.79769313486231570815e+308)) + } + if lrp < int64(emin-Int32FromInt32(2)*Int32FromInt32(LDBL_MANT_DIG)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ERANGE) + return float64(float64(float64(sign)*Float64FromFloat64(2.22507385850720138309e-308)) * Float64FromFloat64(2.22507385850720138309e-308)) + } + /* Align incomplete final B1B digit */ + if j != 0 { + for { + if !(j < int32(9)) { + break + } + **(**Tuint32_t)(__ccgo_up(bp + uintptr(k)*4)) *= uint32(10) + goto _17 + _17: + ; + j = j + 1 + } + k = k + 1 + j = 0 + } + a = 0 + z = k + e2 = 0 + rp = int32(lrp) + /* Optimize small to mid-size integers (even in exp. notation) */ + if lnz < int32(9) && lnz <= rp && rp < int32(18) { + if rp == int32(9) { + return float64(float64(sign) * float64((**(**[128]Tuint32_t)(__ccgo_up(bp)))[0])) + } + if rp < int32(9) { + return float64(float64(sign)*float64((**(**[128]Tuint32_t)(__ccgo_up(bp)))[0])) / float64(_p10s[int32(8)-rp]) + } + bitlim = bits - int32(3)*(rp-Int32FromInt32(9)) + if bitlim > int32(30) || (**(**[128]Tuint32_t)(__ccgo_up(bp)))[0]>>bitlim == uint32(0) { + return float64(float64(float64(sign)*float64((**(**[128]Tuint32_t)(__ccgo_up(bp)))[0])) * float64(_p10s[rp-int32(10)])) + } + } + /* Drop trailing zeros */ + for { + if !!((**(**[128]Tuint32_t)(__ccgo_up(bp)))[z-int32(1)] != 0) { + break + } + goto _18 + _18: + ; + z = z - 1 + } + /* Align radix point to B1B digit boundary */ + if rp%int32(9) != 0 { + if rp >= 0 { + v2 = rp % int32(9) + } else { + v2 = rp%int32(9) + int32(9) + } + rpm9 = v2 + p10 = _p10s[int32(8)-rpm9] + carry = uint32(0) + k = a + for { + if !(k != z) { + break + } + tmp = (**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] % Uint32FromInt32(p10) + (**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] = (**(**[128]Tuint32_t)(__ccgo_up(bp)))[k]/Uint32FromInt32(p10) + carry + carry = Uint32FromInt32(int32(1000000000)/p10) * tmp + if k == a && !((**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] != 0) { + a = (a + int32(1)) & (Int32FromInt32(KMAX) - Int32FromInt32(1)) + rp = rp - int32(9) + } + goto _20 + _20: + ; + k = k + 1 + } + if carry != 0 { + v2 = z + z = z + 1 + (**(**[128]Tuint32_t)(__ccgo_up(bp)))[v2] = carry + } + rp = rp + (int32(9) - rpm9) + } + /* Upscale until desired number of bits are left of radix point */ + for rp < Int32FromInt32(9)*Int32FromInt32(LD_B1B_DIG) || rp == Int32FromInt32(9)*Int32FromInt32(LD_B1B_DIG) && (**(**[128]Tuint32_t)(__ccgo_up(bp)))[a] < _th[0] { + carry1 = uint32(0) + e2 = e2 - int32(29) + k = (z - int32(1)) & (Int32FromInt32(KMAX) - Int32FromInt32(1)) + for { + tmp1 = uint64((**(**[128]Tuint32_t)(__ccgo_up(bp)))[k])< uint64(1000000000) { + carry1 = uint32(tmp1 / uint64(1000000000)) + (**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] = uint32(tmp1 % uint64(1000000000)) + } else { + carry1 = uint32(0) + (**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] = uint32(tmp1) + } + if k == (z-int32(1))&(Int32FromInt32(KMAX)-Int32FromInt32(1)) && k != a && !((**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] != 0) { + z = k + } + if k == a { + break + } + goto _22 + _22: + ; + k = (k - int32(1)) & (Int32FromInt32(KMAX) - Int32FromInt32(1)) + } + if carry1 != 0 { + rp = rp + int32(9) + a = (a - int32(1)) & (Int32FromInt32(KMAX) - Int32FromInt32(1)) + if a == z { + z = (z - int32(1)) & (Int32FromInt32(KMAX) - Int32FromInt32(1)) + **(**Tuint32_t)(__ccgo_up(bp + uintptr((z-int32(1))&(Int32FromInt32(KMAX)-Int32FromInt32(1)))*4)) |= (**(**[128]Tuint32_t)(__ccgo_up(bp)))[z] + } + (**(**[128]Tuint32_t)(__ccgo_up(bp)))[a] = carry1 + } + } + /* Downscale until exactly number of bits are left of radix point */ + for { + carry2 = uint32(0) + sh = int32(1) + i = 0 + for { + if !(i < int32(LD_B1B_DIG)) { + break + } + k = (a + i) & (Int32FromInt32(KMAX) - Int32FromInt32(1)) + if k == z || (**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] < _th[i] { + i = int32(LD_B1B_DIG) + break + } + if (**(**[128]Tuint32_t)(__ccgo_up(bp)))[(a+i)&(Int32FromInt32(KMAX)-Int32FromInt32(1))] > _th[i] { + break + } + goto _24 + _24: + ; + i = i + 1 + } + if i == int32(LD_B1B_DIG) && rp == Int32FromInt32(9)*Int32FromInt32(LD_B1B_DIG) { + break + } + /* FIXME: find a way to compute optimal sh */ + if rp > Int32FromInt32(9)+Int32FromInt32(9)*Int32FromInt32(LD_B1B_DIG) { + sh = int32(9) + } + e2 = e2 + sh + k = a + for { + if !(k != z) { + break + } + tmp2 = (**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] & Uint32FromInt32(int32(1)<>sh + carry2 + carry2 = Uint32FromInt32(Int32FromInt32(1000000000)>>sh) * tmp2 + if k == a && !((**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] != 0) { + a = (a + int32(1)) & (Int32FromInt32(KMAX) - Int32FromInt32(1)) + i = i - 1 + rp = rp - int32(9) + } + goto _25 + _25: + ; + k = (k + int32(1)) & (Int32FromInt32(KMAX) - Int32FromInt32(1)) + } + if carry2 != 0 { + if (z+int32(1))&(Int32FromInt32(KMAX)-Int32FromInt32(1)) != a { + (**(**[128]Tuint32_t)(__ccgo_up(bp)))[z] = carry2 + z = (z + int32(1)) & (Int32FromInt32(KMAX) - Int32FromInt32(1)) + } else { + **(**Tuint32_t)(__ccgo_up(bp + uintptr((z-int32(1))&(Int32FromInt32(KMAX)-Int32FromInt32(1)))*4)) |= uint32(1) + } + } + goto _23 + _23: + } + /* Assemble desired bits into floating point variable */ + v2 = Int32FromInt32(0) + i = v2 + y = float64(v2) + for { + if !(i < int32(LD_B1B_DIG)) { + break + } + if (a+i)&(Int32FromInt32(KMAX)-Int32FromInt32(1)) == z { + v6 = (z + Int32FromInt32(1)) & (Int32FromInt32(KMAX) - Int32FromInt32(1)) + z = v6 + (**(**[128]Tuint32_t)(__ccgo_up(bp)))[v6-int32(1)] = uint32(0) + } + y = float64(Float64FromFloat64(1e+09)*y) + float64((**(**[128]Tuint32_t)(__ccgo_up(bp)))[(a+i)&(Int32FromInt32(KMAX)-Int32FromInt32(1))]) + goto _26 + _26: + ; + i = i + 1 + } + y = y * float64(sign) + /* Limit precision for denormal results */ + if bits > int32(LDBL_MANT_DIG)+e2-emin { + bits = int32(LDBL_MANT_DIG) + e2 - emin + if bits < 0 { + bits = 0 + } + denormal = int32(1) + } + /* Calculate bias term to force rounding, move out lower bits */ + if bits < int32(LDBL_MANT_DIG) { + bias = Xcopysignl(tls, Xscalbn(tls, Float64FromInt32(1), Int32FromInt32(2)*Int32FromInt32(LDBL_MANT_DIG)-bits-int32(1)), y) + frac = Xfmodl(tls, y, Xscalbn(tls, Float64FromInt32(1), int32(LDBL_MANT_DIG)-bits)) + y = y - frac + y = y + bias + } + /* Process tail of decimal input so it can affect rounding */ + if (a+i)&(Int32FromInt32(KMAX)-Int32FromInt32(1)) != z { + t = (**(**[128]Tuint32_t)(__ccgo_up(bp)))[(a+i)&(Int32FromInt32(KMAX)-Int32FromInt32(1))] + if t < uint32(500000000) && (t != 0 || (a+i+int32(1))&(Int32FromInt32(KMAX)-Int32FromInt32(1)) != z) { + frac = frac + float64(float64(0.25)*float64(sign)) + } else { + if t > uint32(500000000) { + frac = frac + float64(float64(0.75)*float64(sign)) + } else { + if t == uint32(500000000) { + if (a+i+int32(1))&(Int32FromInt32(KMAX)-Int32FromInt32(1)) == z { + frac = frac + float64(float64(0.5)*float64(sign)) + } else { + frac = frac + float64(float64(0.75)*float64(sign)) + } + } + } + } + if int32(LDBL_MANT_DIG)-bits >= int32(2) && !(Xfmodl(tls, frac, Float64FromInt32(1)) != 0) { + frac = frac + 1 + } + } + y = y + frac + y = y - bias + if (e2+int32(LDBL_MANT_DIG))&int32(INT_MAX) > emax-int32(5) { + if Xfabsl(tls, y) >= Float64FromInt32(2)/Float64FromFloat64(2.22044604925031308085e-16) { + if denormal != 0 && bits == int32(LDBL_MANT_DIG)+e2-emin { + denormal = 0 + } + y = y * Float64FromFloat64(0.5) + e2 = e2 + 1 + } + if e2+int32(LDBL_MANT_DIG) > emax || denormal != 0 && frac != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ERANGE) + } + } + return Xscalbnl(tls, y, e2) +} + +var _th = [2]Tuint32_t{ + 0: uint32(9007199), + 1: uint32(254740991), +} + +var _p10s = [8]int32{ + 0: int32(10), + 1: int32(100), + 2: int32(1000), + 3: int32(10000), + 4: int32(100000), + 5: int32(1000000), + 6: int32(10000000), + 7: int32(100000000), +} + +func _hexfloat(tls *TLS, f uintptr, bits int32, emin int32, sign int32, pok int32) (r float64) { + var bias, scale, y float64 + var c, d, gotdig, gotrad, gottail, v1 int32 + var dc, e2, rp int64 + var x Tuint32_t + var v2, v3 uintptr + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = bias, c, d, dc, e2, gotdig, gotrad, gottail, rp, scale, x, y, v1, v2, v3 + x = uint32(0) + y = Float64FromInt32(0) + scale = Float64FromInt32(1) + bias = Float64FromInt32(0) + gottail = 0 + gotrad = 0 + gotdig = 0 + rp = 0 + dc = 0 + e2 = 0 + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v3 = f + 8 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + /* Skip leading zeros */ + for { + if !(c == int32('0')) { + break + } + gotdig = int32(1) + goto _4 + _4: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v3 = f + 8 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + if c == int32('.') { + gotrad = int32(1) + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v3 = f + 8 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + /* Count zeros after the radix point before significand */ + rp = 0 + for { + if !(c == int32('0')) { + break + } + gotdig = int32(1) + goto _11 + _11: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v3 = f + 8 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + rp = rp - 1 + } + } + for { + if !(Uint32FromInt32(c-int32('0')) < uint32(10) || Uint32FromInt32(c|int32(32)-int32('a')) < uint32(6) || c == int32('.')) { + break + } + if c == int32('.') { + if gotrad != 0 { + break + } + rp = dc + gotrad = int32(1) + } else { + gotdig = int32(1) + if c > int32('9') { + d = c | int32(32) + int32(10) - int32('a') + } else { + d = c - int32('0') + } + if dc < int64(8) { + x = x*uint32(16) + Uint32FromInt32(d) + } else { + if dc < int64(Int32FromInt32(LDBL_MANT_DIG)/Int32FromInt32(4)+Int32FromInt32(1)) { + scale = scale / Float64FromInt32(16) + y = y + float64(float64(d)*scale) + } else { + if d != 0 && !(gottail != 0) { + y = y + float64(Float64FromFloat64(0.5)*scale) + gottail = int32(1) + } + } + } + dc = dc + 1 + } + goto _15 + _15: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v3 = f + 8 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + if !(gotdig != 0) { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + if pok != 0 { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + if gotrad != 0 { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + } + } else { + X__shlim(tls, f, int64(Int32FromInt32(0))) + } + return float64(float64(sign) * float64(0)) + } + if !(gotrad != 0) { + rp = dc + } + for dc < int64(8) { + x = x * uint32(16) + dc = dc + 1 + } + if c|int32(32) == int32('p') { + e2 = _scanexp(tls, f, pok) + if e2 == -Int64FromInt64(0x7fffffffffffffff)-Int64FromInt32(1) { + if pok != 0 { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + } else { + X__shlim(tls, f, int64(Int32FromInt32(0))) + return Float64FromInt32(0) + } + e2 = 0 + } + } else { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + } + e2 = e2 + (int64(4)*rp - int64(32)) + if !(x != 0) { + return float64(float64(sign) * float64(0)) + } + if e2 > int64(-emin) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ERANGE) + return float64(float64(float64(sign)*Float64FromFloat64(1.79769313486231570815e+308)) * Float64FromFloat64(1.79769313486231570815e+308)) + } + if e2 < int64(emin-Int32FromInt32(2)*Int32FromInt32(LDBL_MANT_DIG)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ERANGE) + return float64(float64(float64(sign)*Float64FromFloat64(2.22507385850720138309e-308)) * Float64FromFloat64(2.22507385850720138309e-308)) + } + for x < uint32(0x80000000) { + if y >= Float64FromFloat64(0.5) { + x = x + (x + uint32(1)) + y = y + (y - Float64FromInt32(1)) + } else { + x = x + x + y = y + y + } + e2 = e2 - 1 + } + if int64(bits) > int64(32)+e2-int64(emin) { + bits = int32(int64(32) + e2 - int64(emin)) + if bits < 0 { + bits = 0 + } + } + if bits < int32(LDBL_MANT_DIG) { + bias = Xcopysignl(tls, Xscalbn(tls, Float64FromInt32(1), Int32FromInt32(32)+Int32FromInt32(LDBL_MANT_DIG)-bits-int32(1)), float64(sign)) + } + if bits < int32(32) && y != 0 && !(x&Uint32FromInt32(1) != 0) { + x = x + 1 + y = Float64FromInt32(0) + } + y = bias + float64(float64(sign)*float64(x)) + float64(float64(sign)*y) + y = y - bias + if !(y != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ERANGE) + } + return Xscalbnl(tls, y, int32(e2)) +} + +func X__floatscan(tls *TLS, f uintptr, prec int32, pok int32) (r float64) { + if __ccgo_strace { + trc("tls=%v f=%v prec=%v pok=%v, (%v:)", tls, f, prec, pok, origin(2)) + defer func() { trc("-> %v", r) }() + } + var bits, c, emin, sign, v1, v2, v5, v6 int32 + var i, v27 Tsize_t + var v3, v4 uintptr + _, _, _, _, _, _, _, _, _, _, _, _ = bits, c, emin, i, sign, v1, v2, v27, v3, v4, v5, v6 + sign = int32(1) + switch prec { + case 0: + bits = int32(FLT_MANT_DIG) + emin = -int32(125) - bits + case int32(1): + bits = int32(DBL_MANT_DIG) + emin = -int32(1021) - bits + case int32(2): + bits = int32(LDBL_MANT_DIG) + emin = -int32(1021) - bits + default: + return Float64FromInt32(0) + } + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v2 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v2 = X__shgetc(tls, f) + } + v1 = v2 + c = v1 + v5 = v1 + v6 = BoolInt32(v5 == int32(' ') || Uint32FromInt32(v5)-uint32('\t') < uint32(5)) + goto _7 + _7: + if !(v6 != 0) { + break + } + } + if c == int32('+') || c == int32('-') { + sign = sign - int32(2)*BoolInt32(c == int32('-')) + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + i = uint64(0) + for { + if !(i < uint64(8) && c|int32(32) == int32(**(**int8)(__ccgo_up(__ccgo_ts + 313 + uintptr(i))))) { + break + } + if i < uint64(7) { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + goto _11 + _11: + ; + i = i + 1 + } + if i == uint64(3) || i == uint64(8) || i > uint64(3) && pok != 0 { + if i != uint64(8) { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + if pok != 0 { + for { + if !(i > uint64(3)) { + break + } + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + goto _15 + _15: + ; + i = i - 1 + } + } + } + return float64(float32(sign) * X__builtin_inff(tls)) + } + if !(i != 0) { + i = uint64(0) + for { + if !(i < uint64(3) && c|int32(32) == int32(**(**int8)(__ccgo_up(__ccgo_ts + 322 + uintptr(i))))) { + break + } + if i < uint64(2) { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + goto _16 + _16: + ; + i = i + 1 + } + } + if i == uint64(3) { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + if v1 != int32('(') { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + return float64(X__builtin_nanf(tls, __ccgo_ts)) + } + i = uint64(1) + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + if Uint32FromInt32(c-int32('0')) < uint32(10) || Uint32FromInt32(c-int32('A')) < uint32(26) || Uint32FromInt32(c-int32('a')) < uint32(26) || c == int32('_') { + goto _23 + } + if c == int32(')') { + return float64(X__builtin_nanf(tls, __ccgo_ts)) + } + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + if !(pok != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + X__shlim(tls, f, int64(Int32FromInt32(0))) + return Float64FromInt32(0) + } + for { + v27 = i + i = i - 1 + if !(v27 != 0) { + break + } + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + } + return float64(X__builtin_nanf(tls, __ccgo_ts)) + goto _23 + _23: + ; + i = i + 1 + } + return float64(X__builtin_nanf(tls, __ccgo_ts)) + } + if i != 0 { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + X__shlim(tls, f, int64(Int32FromInt32(0))) + return Float64FromInt32(0) + } + if c == int32('0') { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + if c|int32(32) == int32('x') { + return _hexfloat(tls, f, bits, emin, sign, pok) + } + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + c = int32('0') + } + return _decfloat(tls, f, c, bits, emin, sign, pok) +} + +// C documentation +// +// /* Lookup table for digit values. -1==255>=36 -> invalid */ +var _table6 = [257]uint8{ + 0: Uint8FromInt32(-Int32FromInt32(1)), + 1: Uint8FromInt32(-Int32FromInt32(1)), + 2: Uint8FromInt32(-Int32FromInt32(1)), + 3: Uint8FromInt32(-Int32FromInt32(1)), + 4: Uint8FromInt32(-Int32FromInt32(1)), + 5: Uint8FromInt32(-Int32FromInt32(1)), + 6: Uint8FromInt32(-Int32FromInt32(1)), + 7: Uint8FromInt32(-Int32FromInt32(1)), + 8: Uint8FromInt32(-Int32FromInt32(1)), + 9: Uint8FromInt32(-Int32FromInt32(1)), + 10: Uint8FromInt32(-Int32FromInt32(1)), + 11: Uint8FromInt32(-Int32FromInt32(1)), + 12: Uint8FromInt32(-Int32FromInt32(1)), + 13: Uint8FromInt32(-Int32FromInt32(1)), + 14: Uint8FromInt32(-Int32FromInt32(1)), + 15: Uint8FromInt32(-Int32FromInt32(1)), + 16: Uint8FromInt32(-Int32FromInt32(1)), + 17: Uint8FromInt32(-Int32FromInt32(1)), + 18: Uint8FromInt32(-Int32FromInt32(1)), + 19: Uint8FromInt32(-Int32FromInt32(1)), + 20: Uint8FromInt32(-Int32FromInt32(1)), + 21: Uint8FromInt32(-Int32FromInt32(1)), + 22: Uint8FromInt32(-Int32FromInt32(1)), + 23: Uint8FromInt32(-Int32FromInt32(1)), + 24: Uint8FromInt32(-Int32FromInt32(1)), + 25: Uint8FromInt32(-Int32FromInt32(1)), + 26: Uint8FromInt32(-Int32FromInt32(1)), + 27: Uint8FromInt32(-Int32FromInt32(1)), + 28: Uint8FromInt32(-Int32FromInt32(1)), + 29: Uint8FromInt32(-Int32FromInt32(1)), + 30: Uint8FromInt32(-Int32FromInt32(1)), + 31: Uint8FromInt32(-Int32FromInt32(1)), + 32: Uint8FromInt32(-Int32FromInt32(1)), + 33: Uint8FromInt32(-Int32FromInt32(1)), + 34: Uint8FromInt32(-Int32FromInt32(1)), + 35: Uint8FromInt32(-Int32FromInt32(1)), + 36: Uint8FromInt32(-Int32FromInt32(1)), + 37: Uint8FromInt32(-Int32FromInt32(1)), + 38: Uint8FromInt32(-Int32FromInt32(1)), + 39: Uint8FromInt32(-Int32FromInt32(1)), + 40: Uint8FromInt32(-Int32FromInt32(1)), + 41: Uint8FromInt32(-Int32FromInt32(1)), + 42: Uint8FromInt32(-Int32FromInt32(1)), + 43: Uint8FromInt32(-Int32FromInt32(1)), + 44: Uint8FromInt32(-Int32FromInt32(1)), + 45: Uint8FromInt32(-Int32FromInt32(1)), + 46: Uint8FromInt32(-Int32FromInt32(1)), + 47: Uint8FromInt32(-Int32FromInt32(1)), + 48: Uint8FromInt32(-Int32FromInt32(1)), + 50: uint8(1), + 51: uint8(2), + 52: uint8(3), + 53: uint8(4), + 54: uint8(5), + 55: uint8(6), + 56: uint8(7), + 57: uint8(8), + 58: uint8(9), + 59: Uint8FromInt32(-Int32FromInt32(1)), + 60: Uint8FromInt32(-Int32FromInt32(1)), + 61: Uint8FromInt32(-Int32FromInt32(1)), + 62: Uint8FromInt32(-Int32FromInt32(1)), + 63: Uint8FromInt32(-Int32FromInt32(1)), + 64: Uint8FromInt32(-Int32FromInt32(1)), + 65: Uint8FromInt32(-Int32FromInt32(1)), + 66: uint8(10), + 67: uint8(11), + 68: uint8(12), + 69: uint8(13), + 70: uint8(14), + 71: uint8(15), + 72: uint8(16), + 73: uint8(17), + 74: uint8(18), + 75: uint8(19), + 76: uint8(20), + 77: uint8(21), + 78: uint8(22), + 79: uint8(23), + 80: uint8(24), + 81: uint8(25), + 82: uint8(26), + 83: uint8(27), + 84: uint8(28), + 85: uint8(29), + 86: uint8(30), + 87: uint8(31), + 88: uint8(32), + 89: uint8(33), + 90: uint8(34), + 91: uint8(35), + 92: Uint8FromInt32(-Int32FromInt32(1)), + 93: Uint8FromInt32(-Int32FromInt32(1)), + 94: Uint8FromInt32(-Int32FromInt32(1)), + 95: Uint8FromInt32(-Int32FromInt32(1)), + 96: Uint8FromInt32(-Int32FromInt32(1)), + 97: Uint8FromInt32(-Int32FromInt32(1)), + 98: uint8(10), + 99: uint8(11), + 100: uint8(12), + 101: uint8(13), + 102: uint8(14), + 103: uint8(15), + 104: uint8(16), + 105: uint8(17), + 106: uint8(18), + 107: uint8(19), + 108: uint8(20), + 109: uint8(21), + 110: uint8(22), + 111: uint8(23), + 112: uint8(24), + 113: uint8(25), + 114: uint8(26), + 115: uint8(27), + 116: uint8(28), + 117: uint8(29), + 118: uint8(30), + 119: uint8(31), + 120: uint8(32), + 121: uint8(33), + 122: uint8(34), + 123: uint8(35), + 124: Uint8FromInt32(-Int32FromInt32(1)), + 125: Uint8FromInt32(-Int32FromInt32(1)), + 126: Uint8FromInt32(-Int32FromInt32(1)), + 127: Uint8FromInt32(-Int32FromInt32(1)), + 128: Uint8FromInt32(-Int32FromInt32(1)), + 129: Uint8FromInt32(-Int32FromInt32(1)), + 130: Uint8FromInt32(-Int32FromInt32(1)), + 131: Uint8FromInt32(-Int32FromInt32(1)), + 132: Uint8FromInt32(-Int32FromInt32(1)), + 133: Uint8FromInt32(-Int32FromInt32(1)), + 134: Uint8FromInt32(-Int32FromInt32(1)), + 135: Uint8FromInt32(-Int32FromInt32(1)), + 136: Uint8FromInt32(-Int32FromInt32(1)), + 137: Uint8FromInt32(-Int32FromInt32(1)), + 138: Uint8FromInt32(-Int32FromInt32(1)), + 139: Uint8FromInt32(-Int32FromInt32(1)), + 140: Uint8FromInt32(-Int32FromInt32(1)), + 141: Uint8FromInt32(-Int32FromInt32(1)), + 142: Uint8FromInt32(-Int32FromInt32(1)), + 143: Uint8FromInt32(-Int32FromInt32(1)), + 144: Uint8FromInt32(-Int32FromInt32(1)), + 145: Uint8FromInt32(-Int32FromInt32(1)), + 146: Uint8FromInt32(-Int32FromInt32(1)), + 147: Uint8FromInt32(-Int32FromInt32(1)), + 148: Uint8FromInt32(-Int32FromInt32(1)), + 149: Uint8FromInt32(-Int32FromInt32(1)), + 150: Uint8FromInt32(-Int32FromInt32(1)), + 151: Uint8FromInt32(-Int32FromInt32(1)), + 152: Uint8FromInt32(-Int32FromInt32(1)), + 153: Uint8FromInt32(-Int32FromInt32(1)), + 154: Uint8FromInt32(-Int32FromInt32(1)), + 155: Uint8FromInt32(-Int32FromInt32(1)), + 156: Uint8FromInt32(-Int32FromInt32(1)), + 157: Uint8FromInt32(-Int32FromInt32(1)), + 158: Uint8FromInt32(-Int32FromInt32(1)), + 159: Uint8FromInt32(-Int32FromInt32(1)), + 160: Uint8FromInt32(-Int32FromInt32(1)), + 161: Uint8FromInt32(-Int32FromInt32(1)), + 162: Uint8FromInt32(-Int32FromInt32(1)), + 163: Uint8FromInt32(-Int32FromInt32(1)), + 164: Uint8FromInt32(-Int32FromInt32(1)), + 165: Uint8FromInt32(-Int32FromInt32(1)), + 166: Uint8FromInt32(-Int32FromInt32(1)), + 167: Uint8FromInt32(-Int32FromInt32(1)), + 168: Uint8FromInt32(-Int32FromInt32(1)), + 169: Uint8FromInt32(-Int32FromInt32(1)), + 170: Uint8FromInt32(-Int32FromInt32(1)), + 171: Uint8FromInt32(-Int32FromInt32(1)), + 172: Uint8FromInt32(-Int32FromInt32(1)), + 173: Uint8FromInt32(-Int32FromInt32(1)), + 174: Uint8FromInt32(-Int32FromInt32(1)), + 175: Uint8FromInt32(-Int32FromInt32(1)), + 176: Uint8FromInt32(-Int32FromInt32(1)), + 177: Uint8FromInt32(-Int32FromInt32(1)), + 178: Uint8FromInt32(-Int32FromInt32(1)), + 179: Uint8FromInt32(-Int32FromInt32(1)), + 180: Uint8FromInt32(-Int32FromInt32(1)), + 181: Uint8FromInt32(-Int32FromInt32(1)), + 182: Uint8FromInt32(-Int32FromInt32(1)), + 183: Uint8FromInt32(-Int32FromInt32(1)), + 184: Uint8FromInt32(-Int32FromInt32(1)), + 185: Uint8FromInt32(-Int32FromInt32(1)), + 186: Uint8FromInt32(-Int32FromInt32(1)), + 187: Uint8FromInt32(-Int32FromInt32(1)), + 188: Uint8FromInt32(-Int32FromInt32(1)), + 189: Uint8FromInt32(-Int32FromInt32(1)), + 190: Uint8FromInt32(-Int32FromInt32(1)), + 191: Uint8FromInt32(-Int32FromInt32(1)), + 192: Uint8FromInt32(-Int32FromInt32(1)), + 193: Uint8FromInt32(-Int32FromInt32(1)), + 194: Uint8FromInt32(-Int32FromInt32(1)), + 195: Uint8FromInt32(-Int32FromInt32(1)), + 196: Uint8FromInt32(-Int32FromInt32(1)), + 197: Uint8FromInt32(-Int32FromInt32(1)), + 198: Uint8FromInt32(-Int32FromInt32(1)), + 199: Uint8FromInt32(-Int32FromInt32(1)), + 200: Uint8FromInt32(-Int32FromInt32(1)), + 201: Uint8FromInt32(-Int32FromInt32(1)), + 202: Uint8FromInt32(-Int32FromInt32(1)), + 203: Uint8FromInt32(-Int32FromInt32(1)), + 204: Uint8FromInt32(-Int32FromInt32(1)), + 205: Uint8FromInt32(-Int32FromInt32(1)), + 206: Uint8FromInt32(-Int32FromInt32(1)), + 207: Uint8FromInt32(-Int32FromInt32(1)), + 208: Uint8FromInt32(-Int32FromInt32(1)), + 209: Uint8FromInt32(-Int32FromInt32(1)), + 210: Uint8FromInt32(-Int32FromInt32(1)), + 211: Uint8FromInt32(-Int32FromInt32(1)), + 212: Uint8FromInt32(-Int32FromInt32(1)), + 213: Uint8FromInt32(-Int32FromInt32(1)), + 214: Uint8FromInt32(-Int32FromInt32(1)), + 215: Uint8FromInt32(-Int32FromInt32(1)), + 216: Uint8FromInt32(-Int32FromInt32(1)), + 217: Uint8FromInt32(-Int32FromInt32(1)), + 218: Uint8FromInt32(-Int32FromInt32(1)), + 219: Uint8FromInt32(-Int32FromInt32(1)), + 220: Uint8FromInt32(-Int32FromInt32(1)), + 221: Uint8FromInt32(-Int32FromInt32(1)), + 222: Uint8FromInt32(-Int32FromInt32(1)), + 223: Uint8FromInt32(-Int32FromInt32(1)), + 224: Uint8FromInt32(-Int32FromInt32(1)), + 225: Uint8FromInt32(-Int32FromInt32(1)), + 226: Uint8FromInt32(-Int32FromInt32(1)), + 227: Uint8FromInt32(-Int32FromInt32(1)), + 228: Uint8FromInt32(-Int32FromInt32(1)), + 229: Uint8FromInt32(-Int32FromInt32(1)), + 230: Uint8FromInt32(-Int32FromInt32(1)), + 231: Uint8FromInt32(-Int32FromInt32(1)), + 232: Uint8FromInt32(-Int32FromInt32(1)), + 233: Uint8FromInt32(-Int32FromInt32(1)), + 234: Uint8FromInt32(-Int32FromInt32(1)), + 235: Uint8FromInt32(-Int32FromInt32(1)), + 236: Uint8FromInt32(-Int32FromInt32(1)), + 237: Uint8FromInt32(-Int32FromInt32(1)), + 238: Uint8FromInt32(-Int32FromInt32(1)), + 239: Uint8FromInt32(-Int32FromInt32(1)), + 240: Uint8FromInt32(-Int32FromInt32(1)), + 241: Uint8FromInt32(-Int32FromInt32(1)), + 242: Uint8FromInt32(-Int32FromInt32(1)), + 243: Uint8FromInt32(-Int32FromInt32(1)), + 244: Uint8FromInt32(-Int32FromInt32(1)), + 245: Uint8FromInt32(-Int32FromInt32(1)), + 246: Uint8FromInt32(-Int32FromInt32(1)), + 247: Uint8FromInt32(-Int32FromInt32(1)), + 248: Uint8FromInt32(-Int32FromInt32(1)), + 249: Uint8FromInt32(-Int32FromInt32(1)), + 250: Uint8FromInt32(-Int32FromInt32(1)), + 251: Uint8FromInt32(-Int32FromInt32(1)), + 252: Uint8FromInt32(-Int32FromInt32(1)), + 253: Uint8FromInt32(-Int32FromInt32(1)), + 254: Uint8FromInt32(-Int32FromInt32(1)), + 255: Uint8FromInt32(-Int32FromInt32(1)), + 256: Uint8FromInt32(-Int32FromInt32(1)), +} + +func X__intscan(tls *TLS, f uintptr, base uint32, pok int32, lim uint64) (r uint64) { + if __ccgo_strace { + trc("tls=%v f=%v base=%v pok=%v lim=%v, (%v:)", tls, f, base, pok, lim, origin(2)) + defer func() { trc("-> %v", r) }() + } + var bs, c, neg, v1, v2, v5, v6 int32 + var val, v3, v4 uintptr + var x uint32 + var y uint64 + _, _, _, _, _, _, _, _, _, _, _, _ = bs, c, neg, val, x, y, v1, v2, v3, v4, v5, v6 + val = uintptr(unsafe.Pointer(&_table6)) + uintptr(1) + neg = 0 + if base > uint32(36) || base == uint32(1) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uint64(0) + } + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v2 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v2 = X__shgetc(tls, f) + } + v1 = v2 + c = v1 + v5 = v1 + v6 = BoolInt32(v5 == int32(' ') || Uint32FromInt32(v5)-uint32('\t') < uint32(5)) + goto _7 + _7: + if !(v6 != 0) { + break + } + } + if c == int32('+') || c == int32('-') { + neg = -BoolInt32(c == int32('-')) + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + if (base == uint32(0) || base == uint32(16)) && c == int32('0') { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + if c|int32(32) == int32('x') { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + if Int32FromUint8(**(**uint8)(__ccgo_up(val + uintptr(c)))) >= int32(16) { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + if pok != 0 { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + } else { + X__shlim(tls, f, int64(Int32FromInt32(0))) + } + return uint64(0) + } + base = uint32(16) + } else { + if base == uint32(0) { + base = uint32(8) + } + } + } else { + if base == uint32(0) { + base = uint32(10) + } + if uint32(**(**uint8)(__ccgo_up(val + uintptr(c)))) >= base { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + X__shlim(tls, f, int64(Int32FromInt32(0))) + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uint64(0) + } + } + if base == uint32(10) { + x = uint32(0) + for { + if !(Uint32FromInt32(c-int32('0')) < uint32(10) && x <= Uint32FromUint32(0xffffffff)/Uint32FromInt32(10)-Uint32FromInt32(1)) { + break + } + x = x*uint32(10) + Uint32FromInt32(c-Int32FromUint8('0')) + goto _17 + _17: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + y = uint64(x) + for { + if !(Uint32FromInt32(c-int32('0')) < uint32(10) && y <= (Uint64FromUint64(2)*Uint64FromInt64(0x7fffffffffffffff)+Uint64FromInt32(1))/Uint64FromInt32(10) && uint64(10)*y <= Uint64FromUint64(2)*Uint64FromInt64(0x7fffffffffffffff)+Uint64FromInt32(1)-Uint64FromInt32(c-Int32FromUint8('0'))) { + break + } + y = y*uint64(10) + Uint64FromInt32(c-Int32FromUint8('0')) + goto _21 + _21: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + if Uint32FromInt32(c-int32('0')) >= uint32(10) { + goto done + } + } else { + if !(base&(base-Uint32FromInt32(1)) != 0) { + bs = int32(**(**int8)(__ccgo_up(__ccgo_ts + 326 + uintptr(uint32(0x17)*base>>int32(5)&uint32(7))))) + x = uint32(0) + for { + if !(uint32(**(**uint8)(__ccgo_up(val + uintptr(c)))) < base && x <= Uint32FromUint32(0xffffffff)/Uint32FromInt32(32)) { + break + } + x = x<>bs) { + break + } + y = y<= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + if y >= lim { + if !(lim&Uint64FromInt32(1) != 0) && !(neg != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ERANGE) + return lim - uint64(1) + } else { + if y > lim { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ERANGE) + return lim + } + } + } + return y ^ Uint64FromInt32(neg) - Uint64FromInt32(neg) +} + +func X__procfdname(tls *TLS, buf uintptr, fd uint32) { + if __ccgo_strace { + trc("tls=%v buf=%v fd=%v, (%v:)", tls, buf, fd, origin(2)) + } + var i, j, v5 uint32 + var v2 int8 + _, _, _, _ = i, j, v2, v5 + i = uint32(0) + for { + v2 = **(**int8)(__ccgo_up(__ccgo_ts + 335 + uintptr(i))) + **(**int8)(__ccgo_up(buf + uintptr(i))) = v2 + if !(v2 != 0) { + break + } + goto _1 + _1: + ; + i = i + 1 + } + if !(fd != 0) { + **(**int8)(__ccgo_up(buf + uintptr(i))) = int8('0') + **(**int8)(__ccgo_up(buf + uintptr(i+uint32(1)))) = 0 + return + } + j = fd + for { + if !(j != 0) { + break + } + goto _3 + _3: + ; + j = j / uint32(10) + i = i + 1 + } + **(**int8)(__ccgo_up(buf + uintptr(i))) = 0 + for { + if !(fd != 0) { + break + } + i = i - 1 + v5 = i + **(**int8)(__ccgo_up(buf + uintptr(v5))) = Int8FromUint32(uint32('0') + fd%uint32(10)) + goto _4 + _4: + ; + fd = fd / uint32(10) + } +} + +/* The shcnt field stores the number of bytes read so far, offset by + * the value of buf-rpos at the last function call (__shlim or __shgetc), + * so that between calls the inline shcnt macro can add rpos-buf to get + * the actual count. */ + +func X__shlim(tls *TLS, f uintptr, lim Toff_t) { + if __ccgo_strace { + trc("tls=%v f=%v lim=%v, (%v:)", tls, f, lim, origin(2)) + } + (*TFILE)(unsafe.Pointer(f)).Fshlim = lim + (*TFILE)(unsafe.Pointer(f)).Fshcnt = int64((*TFILE)(unsafe.Pointer(f)).Fbuf) - int64((*TFILE)(unsafe.Pointer(f)).Frpos) + /* If lim is nonzero, rend must be a valid pointer. */ + if lim != 0 && int64((*TFILE)(unsafe.Pointer(f)).Frend)-int64((*TFILE)(unsafe.Pointer(f)).Frpos) > lim { + (*TFILE)(unsafe.Pointer(f)).Fshend = (*TFILE)(unsafe.Pointer(f)).Frpos + uintptr(lim) + } else { + (*TFILE)(unsafe.Pointer(f)).Fshend = (*TFILE)(unsafe.Pointer(f)).Frend + } +} + +func X__shgetc(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var c, v1 int32 + var cnt Toff_t + var v2 bool + _, _, _, _ = c, cnt, v1, v2 + cnt = (*TFILE)(unsafe.Pointer(f)).Fshcnt + (int64((*TFILE)(unsafe.Pointer(f)).Frpos) - int64((*TFILE)(unsafe.Pointer(f)).Fbuf)) + if v2 = (*TFILE)(unsafe.Pointer(f)).Fshlim != 0 && cnt >= (*TFILE)(unsafe.Pointer(f)).Fshlim; !v2 { + v1 = X__uflow(tls, f) + c = v1 + } + if v2 || v1 < 0 { + (*TFILE)(unsafe.Pointer(f)).Fshcnt = int64((*TFILE)(unsafe.Pointer(f)).Fbuf) - int64((*TFILE)(unsafe.Pointer(f)).Frpos) + cnt + (*TFILE)(unsafe.Pointer(f)).Fshend = (*TFILE)(unsafe.Pointer(f)).Frpos + (*TFILE)(unsafe.Pointer(f)).Fshlim = int64(-int32(1)) + return -int32(1) + } + cnt = cnt + 1 + if (*TFILE)(unsafe.Pointer(f)).Fshlim != 0 && int64((*TFILE)(unsafe.Pointer(f)).Frend)-int64((*TFILE)(unsafe.Pointer(f)).Frpos) > (*TFILE)(unsafe.Pointer(f)).Fshlim-cnt { + (*TFILE)(unsafe.Pointer(f)).Fshend = (*TFILE)(unsafe.Pointer(f)).Frpos + uintptr((*TFILE)(unsafe.Pointer(f)).Fshlim-cnt) + } else { + (*TFILE)(unsafe.Pointer(f)).Fshend = (*TFILE)(unsafe.Pointer(f)).Frend + } + (*TFILE)(unsafe.Pointer(f)).Fshcnt = int64((*TFILE)(unsafe.Pointer(f)).Fbuf) - int64((*TFILE)(unsafe.Pointer(f)).Frpos) + cnt + if (*TFILE)(unsafe.Pointer(f)).Frpos <= (*TFILE)(unsafe.Pointer(f)).Fbuf { + **(**uint8)(__ccgo_up((*TFILE)(unsafe.Pointer(f)).Frpos + uintptr(-Int32FromInt32(1)))) = Uint8FromInt32(c) + } + return c +} + +func X__syscall_ret(tls *TLS, r uint64) (r1 int64) { + if __ccgo_strace { + trc("tls=%v r=%v, (%v:)", tls, r, origin(2)) + defer func() { trc("-> %v", r1) }() + } + if r > -Uint64FromUint64(4096) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = Int32FromUint64(-r) + return int64(-int32(1)) + } + return Int64FromUint64(r) +} + +type TElf_Symndx = uint32 + +type Tdl_phdr_info = struct { + Fdlpi_addr TElf64_Addr + Fdlpi_name uintptr + Fdlpi_phdr uintptr + Fdlpi_phnum TElf64_Half + Fdlpi_adds uint64 + Fdlpi_subs uint64 + Fdlpi_tls_modid Tsize_t + Fdlpi_tls_data uintptr +} + +type Tlink_map = struct { + Fl_addr TElf64_Addr + Fl_name uintptr + Fl_ld uintptr + Fl_next uintptr + Fl_prev uintptr +} + +type Tr_debug = struct { + Fr_version int32 + Fr_map uintptr + Fr_brk TElf64_Addr + Fr_state int32 + Fr_ldbase TElf64_Addr +} + +const _RT_CONSISTENT = 0 +const _RT_ADD = 1 +const _RT_DELETE = 2 +const VERSION = "1.2.5" + +const IPC_CREAT = 512 +const IPC_EXCL = 1024 +const IPC_INFO = 3 +const IPC_NOWAIT = 2048 +const IPC_RMID = 0 +const IPC_SET = 1 +const IPC_STAT = 2 +const __ipc_perm_key = 0 +const __ipc_perm_seq = 0 + +type Tkey_t = int32 + +type Tipc_perm = struct { + F__key Tkey_t + Fuid Tuid_t + Fgid Tgid_t + Fcuid Tuid_t + Fcgid Tgid_t + Fmode Tmode_t + F__seq int32 + F__pad1 int64 + F__pad2 int64 +} + +func Xftok(tls *TLS, path uintptr, id int32) (r Tkey_t) { + if __ccgo_strace { + trc("tls=%v path=%v id=%v, (%v:)", tls, path, id, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(144) + defer tls.Free(144) + var _ /* st at bp+0 */ Tstat + if Xstat(tls, path, bp) < 0 { + return -int32(1) + } + return Int32FromUint64((**(**Tstat)(__ccgo_up(bp))).Fst_ino&Uint64FromInt32(0xffff) | (**(**Tstat)(__ccgo_up(bp))).Fst_dev&Uint64FromInt32(0xff)< %v", r1) }() + } + var r int32 + _ = r + r = int32(X__syscall3(tls, int64(SYS_msgctl), int64(q), int64(cmd & ^(Int32FromInt32(IPC_STAT)&Int32FromInt32(0x100)) | Int32FromInt32(IPC_64)), int64(buf))) + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func Xmsgget(tls *TLS, k Tkey_t, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v k=%v flag=%v, (%v:)", tls, k, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_msgget), int64(k), int64(flag))))) +} + +func Xmsgrcv(tls *TLS, q int32, m uintptr, len1 Tsize_t, type1 int64, flag int32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v q=%v m=%v len1=%v type1=%v flag=%v, (%v:)", tls, q, m, len1, type1, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_msgrcv), int64(q), int64(m), Int64FromUint64(len1), type1, int64(flag), 0))) +} + +func Xmsgsnd(tls *TLS, q int32, m uintptr, len1 Tsize_t, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v q=%v m=%v len1=%v flag=%v, (%v:)", tls, q, m, len1, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_msgsnd), int64(q), int64(m), Int64FromUint64(len1), int64(flag), 0, 0)))) +} + +const GETALL = 13 +const GETNCNT = 14 +const GETPID = 11 +const GETVAL = 12 +const GETZCNT = 15 +const SEM_INFO = 19 +const SEM_STAT = 18 +const SEM_STAT_ANY = 20 +const SEM_UNDO = 4096 +const SETALL = 17 +const SETVAL = 16 +const _SEM_SEMUN_UNDEFINED = 1 + +type Tsemid_ds = struct { + Fsem_perm Tipc_perm + Fsem_otime Ttime_t + F__unused1 int64 + Fsem_ctime Ttime_t + F__unused2 int64 + Fsem_nsems uint16 + F__sem_nsems_pad [6]int8 + F__unused3 int64 + F__unused4 int64 +} + +type Tseminfo = struct { + Fsemmap int32 + Fsemmni int32 + Fsemmns int32 + Fsemmnu int32 + Fsemmsl int32 + Fsemopm int32 + Fsemume int32 + Fsemusz int32 + Fsemvmx int32 + Fsemaem int32 +} + +type Tsembuf = struct { + Fsem_num uint16 + Fsem_op int16 + Fsem_flg int16 +} + +type Tsemun = struct { + Fbuf [0]uintptr + Farray [0]uintptr + Fval int32 + F__ccgo_pad3 [4]byte +} + +func Xsemctl(tls *TLS, id int32, num int32, cmd int32, va uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v id=%v num=%v cmd=%v va=%v, (%v:)", tls, id, num, cmd, va, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ap Tva_list + var r int32 + var _ /* arg at bp+0 */ Tsemun + _, _ = ap, r + *(*Tsemun)(unsafe.Pointer(bp)) = Tsemun{} + *(*int32)(unsafe.Pointer(bp)) = 0 + switch cmd & ^(Int32FromInt32(IPC_STAT) & Int32FromInt32(0x100)) { + case int32(SETVAL): + fallthrough + case int32(GETALL): + fallthrough + case int32(SETALL): + fallthrough + case int32(IPC_SET): + fallthrough + case int32(IPC_INFO): + fallthrough + case int32(SEM_INFO): + fallthrough + case Int32FromInt32(IPC_STAT) & ^(Int32FromInt32(IPC_STAT) & Int32FromInt32(0x100)): + fallthrough + case (Int32FromInt32(18) | Int32FromInt32(IPC_STAT)&Int32FromInt32(0x100)) & ^(Int32FromInt32(IPC_STAT) & Int32FromInt32(0x100)): + fallthrough + case (Int32FromInt32(20) | Int32FromInt32(IPC_STAT)&Int32FromInt32(0x100)) & ^(Int32FromInt32(IPC_STAT) & Int32FromInt32(0x100)): + ap = va + **(**Tsemun)(__ccgo_up(bp)) = *(*Tsemun)(unsafe.Pointer(VaOther(&ap, 8))) + _ = ap + } + r = int32(X__syscall4(tls, int64(SYS_semctl), int64(id), int64(num), int64(cmd & ^(Int32FromInt32(IPC_STAT)&Int32FromInt32(0x100)) | Int32FromInt32(IPC_64)), int64(*(*uintptr)(unsafe.Pointer(bp))))) + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func Xsemget(tls *TLS, key Tkey_t, n int32, fl int32) (r int32) { + if __ccgo_strace { + trc("tls=%v key=%v n=%v fl=%v, (%v:)", tls, key, n, fl, origin(2)) + defer func() { trc("-> %v", r) }() + } + /* The kernel uses the wrong type for the sem_nsems member + * of struct semid_ds, and thus might not check that the + * n fits in the correct (per POSIX) userspace type, so + * we have to check here. */ + if n > int32(USHRT_MAX) { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL)))) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_semget), int64(key), int64(n), int64(fl))))) +} + +func Xsemop(tls *TLS, id int32, buf uintptr, n Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v id=%v buf=%v n=%v, (%v:)", tls, id, buf, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_semop), int64(id), int64(buf), Int64FromUint64(n))))) +} + +const NO_TIME32 = 0 +const __key = 0 +const __seq = 0 + +type Tipc_perm1 = struct { + Fkey Tkey_t + Fuid Tuid_t + Fgid Tgid_t + Fcuid Tuid_t + Fcgid Tgid_t + Fmode Tmode_t + Fseq int32 + F__pad1 int64 + F__pad2 int64 +} + +type Tsemid_ds1 = struct { + Fsem_perm Tipc_perm1 + Fsem_otime Ttime_t + F__unused1 int64 + Fsem_ctime Ttime_t + F__unused2 int64 + Fsem_nsems uint16 + F__sem_nsems_pad [6]int8 + F__unused3 int64 + F__unused4 int64 +} + +func Xsemtimedop(tls *TLS, id int32, buf uintptr, n Tsize_t, ts uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v id=%v buf=%v n=%v ts=%v, (%v:)", tls, id, buf, n, ts, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_semtimedop), int64(id), int64(buf), Int64FromUint64(n), int64(ts))))) +} + +const SHMLBA = 4096 +const SHM_DEST = 512 +const SHM_EXEC = 32768 +const SHM_HUGETLB = 2048 +const SHM_HUGE_16GB = 2281701376 +const SHM_HUGE_16MB = 1610612736 +const SHM_HUGE_1GB = 2013265920 +const SHM_HUGE_1MB = 1342177280 +const SHM_HUGE_256MB = 1879048192 +const SHM_HUGE_2GB = 2080374784 +const SHM_HUGE_2MB = 1409286144 +const SHM_HUGE_32MB = 1677721600 +const SHM_HUGE_512KB = 1275068416 +const SHM_HUGE_512MB = 1946157056 +const SHM_HUGE_64KB = 1073741824 +const SHM_HUGE_8MB = 1543503872 +const SHM_HUGE_MASK = 63 +const SHM_HUGE_SHIFT = 26 +const SHM_INFO = 14 +const SHM_LOCK = 11 +const SHM_LOCKED = 1024 +const SHM_NORESERVE = 4096 +const SHM_R = 256 +const SHM_RDONLY = 4096 +const SHM_REMAP = 16384 +const SHM_RND = 8192 +const SHM_STAT = 13 +const SHM_STAT_ANY = 15 +const SHM_UNLOCK = 12 +const SHM_W = 128 + +type Tshmid_ds = struct { + Fshm_perm Tipc_perm + Fshm_segsz Tsize_t + Fshm_atime Ttime_t + Fshm_dtime Ttime_t + Fshm_ctime Ttime_t + Fshm_cpid Tpid_t + Fshm_lpid Tpid_t + Fshm_nattch uint64 + F__pad1 uint64 + F__pad2 uint64 +} + +type Tshminfo = struct { + Fshmmax uint64 + Fshmmin uint64 + Fshmmni uint64 + Fshmseg uint64 + Fshmall uint64 + F__unused [4]uint64 +} + +type Tshm_info = struct { + F__used_ids int32 + Fshm_tot uint64 + Fshm_rss uint64 + Fshm_swp uint64 + F__swap_attempts uint64 + F__swap_successes uint64 +} + +type Tshmatt_t = uint64 + +func Xshmat(tls *TLS, id int32, addr uintptr, flag int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v id=%v addr=%v flag=%v, (%v:)", tls, id, addr, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_shmat), int64(id), int64(addr), int64(flag))))) +} + +func Xshmctl(tls *TLS, id int32, cmd int32, buf uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v id=%v cmd=%v buf=%v, (%v:)", tls, id, cmd, buf, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + r = int32(X__syscall3(tls, int64(SYS_shmctl), int64(id), int64(cmd & ^(Int32FromInt32(IPC_STAT)&Int32FromInt32(0x100)) | Int32FromInt32(IPC_64)), int64(buf))) + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func Xshmdt(tls *TLS, addr uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v, (%v:)", tls, addr, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_shmdt), int64(addr))))) +} + +func Xshmget(tls *TLS, key Tkey_t, size Tsize_t, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v key=%v size=%v flag=%v, (%v:)", tls, key, size, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + if size > Uint64FromInt64(Int64FromInt64(INT64_MAX)) { + size = Uint64FromUint64(0xffffffffffffffff) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_shmget), int64(key), Int64FromUint64(size), int64(flag))))) +} + +type Tpasswd = struct { + Fpw_name uintptr + Fpw_passwd uintptr + Fpw_uid Tuid_t + Fpw_gid Tgid_t + Fpw_gecos uintptr + Fpw_dir uintptr + Fpw_shell uintptr +} + +func Xcuserid(tls *TLS, buf uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v buf=%v, (%v:)", tls, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(2112) + defer tls.Free(2112) + var len1 Tsize_t + var _ /* ppw at bp+48 */ uintptr + var _ /* pw at bp+0 */ Tpasswd + var _ /* pwb at bp+56 */ [256]int64 + _ = len1 + if buf != 0 { + **(**int8)(__ccgo_up(buf)) = 0 + } + Xgetpwuid_r(tls, Xgeteuid(tls), bp, bp+56, uint64(2048), bp+48) + if !(**(**uintptr)(__ccgo_up(bp + 48)) != 0) { + return buf + } + len1 = Xstrnlen(tls, (**(**Tpasswd)(__ccgo_up(bp))).Fpw_name, uint64(L_cuserid)) + if len1 == uint64(L_cuserid) { + return buf + } + if !(buf != 0) { + buf = uintptr(unsafe.Pointer(&_usridbuf)) + } + Xmemcpy(tls, buf, (**(**Tpasswd)(__ccgo_up(bp))).Fpw_name, len1+uint64(1)) + return buf +} + +var _usridbuf [20]int8 + +func Xvwarn(tls *TLS, fmt uintptr, ap Tva_list) { + if __ccgo_strace { + trc("tls=%v fmt=%v ap=%v, (%v:)", tls, fmt, ap, origin(2)) + } + bp := tls.Alloc(16) + defer tls.Free(16) + Xfprintf(tls, uintptr(unsafe.Pointer(&X__stderr_FILE)), __ccgo_ts+350, VaList(bp+8, Xprogram_invocation_short_name)) + if fmt != 0 { + Xvfprintf(tls, uintptr(unsafe.Pointer(&X__stderr_FILE)), fmt, ap) + Xfputs(tls, __ccgo_ts+355, uintptr(unsafe.Pointer(&X__stderr_FILE))) + } + Xperror(tls, uintptr(0)) +} + +func Xvwarnx(tls *TLS, fmt uintptr, ap Tva_list) { + if __ccgo_strace { + trc("tls=%v fmt=%v ap=%v, (%v:)", tls, fmt, ap, origin(2)) + } + bp := tls.Alloc(16) + defer tls.Free(16) + Xfprintf(tls, uintptr(unsafe.Pointer(&X__stderr_FILE)), __ccgo_ts+350, VaList(bp+8, Xprogram_invocation_short_name)) + if fmt != 0 { + Xvfprintf(tls, uintptr(unsafe.Pointer(&X__stderr_FILE)), fmt, ap) + } + Xputc(tls, int32('\n'), uintptr(unsafe.Pointer(&X__stderr_FILE))) +} + +func Xverr(tls *TLS, status int32, fmt uintptr, ap Tva_list) { + if __ccgo_strace { + trc("tls=%v status=%v fmt=%v ap=%v, (%v:)", tls, status, fmt, ap, origin(2)) + } + Xvwarn(tls, fmt, ap) + _exit(tls, status) +} + +func Xverrx(tls *TLS, status int32, fmt uintptr, ap Tva_list) { + if __ccgo_strace { + trc("tls=%v status=%v fmt=%v ap=%v, (%v:)", tls, status, fmt, ap, origin(2)) + } + Xvwarnx(tls, fmt, ap) + _exit(tls, status) +} + +func Xwarn(tls *TLS, fmt uintptr, va uintptr) { + if __ccgo_strace { + trc("tls=%v fmt=%v va=%v, (%v:)", tls, fmt, va, origin(2)) + } + var ap Tva_list + _ = ap + ap = va + Xvwarn(tls, fmt, ap) + _ = ap +} + +func Xwarnx(tls *TLS, fmt uintptr, va uintptr) { + if __ccgo_strace { + trc("tls=%v fmt=%v va=%v, (%v:)", tls, fmt, va, origin(2)) + } + var ap Tva_list + _ = ap + ap = va + Xvwarnx(tls, fmt, ap) + _ = ap +} + +func Xerr(tls *TLS, status int32, fmt uintptr, va uintptr) { + if __ccgo_strace { + trc("tls=%v status=%v fmt=%v va=%v, (%v:)", tls, status, fmt, va, origin(2)) + } + var ap Tva_list + _ = ap + ap = va + Xverr(tls, status, fmt, ap) + _ = ap +} + +func Xerrx(tls *TLS, status int32, fmt uintptr, va uintptr) { + if __ccgo_strace { + trc("tls=%v status=%v fmt=%v va=%v, (%v:)", tls, status, fmt, va, origin(2)) + } + var ap Tva_list + _ = ap + ap = va + Xverrx(tls, status, fmt, ap) + _ = ap +} + +func Xeuidaccess(tls *TLS, filename uintptr, amode int32) (r int32) { + if __ccgo_strace { + trc("tls=%v filename=%v amode=%v, (%v:)", tls, filename, amode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfaccessat(tls, -int32(100), filename, amode, int32(AT_EACCESS)) +} + +func Xeaccess(tls *TLS, filename uintptr, amode int32) (r int32) { + if __ccgo_strace { + trc("tls=%v filename=%v amode=%v, (%v:)", tls, filename, amode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xeuidaccess(tls, filename, amode) +} + +const FTW_CHDIR = 4 +const FTW_D = 2 +const FTW_DEPTH = 8 +const FTW_DNR = 3 +const FTW_DP = 6 +const FTW_F = 1 +const FTW_MOUNT = 2 +const FTW_NS = 4 +const FTW_PHYS = 1 +const FTW_SL = 5 +const FTW_SLN = 7 + +type TFTW = struct { + Fbase int32 + Flevel int32 +} + +type t__ccgo_fp__Xftw_1 = func(*TLS, uintptr, uintptr, int32) int32 + +func Xftw(tls *TLS, path uintptr, __ccgo_fp_fn uintptr, fd_limit int32) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v __ccgo_fp_fn=%v fd_limit=%v, (%v:)", tls, path, __ccgo_fp_fn, fd_limit, origin(2)) + defer func() { trc("-> %v", r) }() + } + /* The following cast assumes that calling a function with one + * argument more than it needs behaves as expected. This is + * actually undefined, but works on all real-world machines. */ + return Xnftw(tls, path, __ccgo_fp_fn, fd_limit, int32(FTW_PHYS)) +} + +const STATX_ALL = 4095 +const STATX_ATIME = 32 +const STATX_BASIC_STATS = 2047 +const STATX_BLOCKS = 1024 +const STATX_BTIME = 2048 +const STATX_CTIME = 128 +const STATX_GID = 16 +const STATX_INO = 256 +const STATX_MODE = 2 +const STATX_MTIME = 64 +const STATX_NLINK = 4 +const STATX_SIZE = 512 +const STATX_TYPE = 1 +const STATX_UID = 8 +const S_IEXEC = 64 +const S_IREAD = 256 +const S_IWRITE = 128 + +type Tstatx_timestamp = struct { + Ftv_sec Tint64_t + Ftv_nsec Tuint32_t + F__pad Tuint32_t +} + +type Tstatx = struct { + Fstx_mask Tuint32_t + Fstx_blksize Tuint32_t + Fstx_attributes Tuint64_t + Fstx_nlink Tuint32_t + Fstx_uid Tuint32_t + Fstx_gid Tuint32_t + Fstx_mode Tuint16_t + F__pad0 [1]Tuint16_t + Fstx_ino Tuint64_t + Fstx_size Tuint64_t + Fstx_blocks Tuint64_t + Fstx_attributes_mask Tuint64_t + Fstx_atime Tstatx_timestamp + Fstx_btime Tstatx_timestamp + Fstx_ctime Tstatx_timestamp + Fstx_mtime Tstatx_timestamp + Fstx_rdev_major Tuint32_t + Fstx_rdev_minor Tuint32_t + Fstx_dev_major Tuint32_t + Fstx_dev_minor Tuint32_t + F__pad1 [14]Tuint64_t +} + +type Ttimezone = struct { + Ftz_minuteswest int32 + Ftz_dsttime int32 +} + +func Xfutimes(tls *TLS, fd int32, tv uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v tv=%v, (%v:)", tls, fd, tv, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var _ /* times at bp+0 */ [2]Ttimespec + if !(tv != 0) { + return Xfutimens(tls, fd, uintptr(0)) + } + (**(**[2]Ttimespec)(__ccgo_up(bp)))[0].Ftv_sec = (**(**Ttimeval)(__ccgo_up(tv))).Ftv_sec + (**(**[2]Ttimespec)(__ccgo_up(bp)))[0].Ftv_nsec = (**(**Ttimeval)(__ccgo_up(tv))).Ftv_usec * int64(1000) + (**(**[2]Ttimespec)(__ccgo_up(bp)))[int32(1)].Ftv_sec = (**(**Ttimeval)(__ccgo_up(tv + 1*16))).Ftv_sec + (**(**[2]Ttimespec)(__ccgo_up(bp)))[int32(1)].Ftv_nsec = (**(**Ttimeval)(__ccgo_up(tv + 1*16))).Ftv_usec * int64(1000) + return Xfutimens(tls, fd, bp) +} + +const prlimit64 = 0 + +func Xgetdtablesize(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uint64 + var _ /* rl at bp+0 */ Trlimit + _ = v1 + Xgetrlimit(tls, int32(RLIMIT_NOFILE), bp) + if (**(**Trlimit)(__ccgo_up(bp))).Frlim_cur < uint64(INT_MAX) { + v1 = (**(**Trlimit)(__ccgo_up(bp))).Frlim_cur + } else { + v1 = uint64(INT_MAX) + } + return Int32FromUint64(v1) +} + +func Xgetloadavg(tls *TLS, a uintptr, n int32) (r int32) { + if __ccgo_strace { + trc("tls=%v a=%v n=%v, (%v:)", tls, a, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(368) + defer tls.Free(368) + var i, v1 int32 + var _ /* si at bp+0 */ Tsysinfo + _, _ = i, v1 + if n <= 0 { + if n != 0 { + v1 = -int32(1) + } else { + v1 = 0 + } + return v1 + } + Xsysinfo(tls, bp) + if n > int32(3) { + n = int32(3) + } + i = 0 + for { + if !(i < n) { + break + } + **(**float64)(__ccgo_up(a + uintptr(i)*8)) = float64(Float64FromFloat64(1) / float64(Int32FromInt32(1)< %v", r) }() + } + return int32(PAGESIZE) +} + +const B0 = 0 +const B1000000 = 4104 +const B110 = 3 +const B115200 = 4098 +const B1152000 = 4105 +const B1200 = 9 +const B134 = 4 +const B150 = 5 +const B1500000 = 4106 +const B1800 = 10 +const B19200 = 14 +const B200 = 6 +const B2000000 = 4107 +const B230400 = 4099 +const B2400 = 11 +const B2500000 = 4108 +const B300 = 7 +const B3000000 = 4109 +const B3500000 = 4110 +const B38400 = 15 +const B4000000 = 4111 +const B460800 = 4100 +const B4800 = 12 +const B50 = 1 +const B500000 = 4101 +const B57600 = 4097 +const B576000 = 4102 +const B600 = 8 +const B75 = 2 +const B921600 = 4103 +const B9600 = 13 +const BRKINT = 2 +const BS0 = 0 +const BS1 = 8192 +const BSDLY = 8192 +const CBAUD = 4111 +const CBAUDEX = 4096 +const CIBAUD = 269418496 +const CLOCAL = 2048 +const CMSPAR = 1073741824 +const CR0 = 0 +const CR1 = 512 +const CR2 = 1024 +const CR3 = 1536 +const CRDLY = 1536 +const CREAD = 128 +const CRTSCTS = 2147483648 +const CS5 = 0 +const CS6 = 16 +const CS7 = 32 +const CS8 = 48 +const CSIZE = 48 +const CSTOPB = 64 +const ECHO = 8 +const ECHOCTL = 512 +const ECHOE = 16 +const ECHOK = 32 +const ECHOKE = 2048 +const ECHONL = 64 +const ECHOPRT = 1024 +const EXTA = 14 +const EXTB = 15 +const EXTPROC = 65536 +const FF0 = 0 +const FF1 = 32768 +const FFDLY = 32768 +const FLUSHO = 4096 +const HUPCL = 1024 +const ICANON = 2 +const ICRNL = 256 +const IEXTEN = 32768 +const IGNBRK = 1 +const IGNCR = 128 +const IGNPAR = 4 +const IMAXBEL = 8192 +const INLCR = 64 +const INPCK = 16 +const ISIG = 1 +const ISTRIP = 32 +const IUCLC = 512 +const IUTF8 = 16384 +const IXANY = 2048 +const IXOFF = 4096 +const IXON = 1024 +const NCCS = 32 +const NL0 = 0 +const NL1 = 256 +const NLDLY = 256 +const NOFLSH = 128 +const OCRNL = 8 +const OFDEL = 128 +const OFILL = 64 +const OLCUC = 2 +const ONLCR = 4 +const ONLRET = 32 +const ONOCR = 16 +const OPOST = 1 +const PARENB = 256 +const PARMRK = 8 +const PARODD = 512 +const PENDIN = 16384 +const TAB0 = 0 +const TAB1 = 2048 +const TAB2 = 4096 +const TAB3 = 6144 +const TABDLY = 6144 +const TCIFLUSH = 0 +const TCIOFF = 2 +const TCIOFLUSH = 2 +const TCION = 3 +const TCOFLUSH = 1 +const TCOOFF = 0 +const TCOON = 1 +const TCSADRAIN = 1 +const TCSAFLUSH = 2 +const TCSANOW = 0 +const TOSTOP = 256 +const VDISCARD = 13 +const VEOF = 4 +const VEOL = 11 +const VEOL2 = 16 +const VERASE = 2 +const VINTR = 0 +const VKILL = 3 +const VLNEXT = 15 +const VMIN = 6 +const VQUIT = 1 +const VREPRINT = 12 +const VSTART = 8 +const VSTOP = 9 +const VSUSP = 10 +const VSWTC = 7 +const VT0 = 0 +const VT1 = 16384 +const VTDLY = 16384 +const VTIME = 5 +const VWERASE = 14 +const XCASE = 4 +const XTABS = 6144 + +type Twinsize = struct { + Fws_row uint16 + Fws_col uint16 + Fws_xpixel uint16 + Fws_ypixel uint16 +} + +type Tcc_t = uint8 + +type Tspeed_t = uint32 + +type Ttcflag_t = uint32 + +type Ttermios = struct { + Fc_iflag Ttcflag_t + Fc_oflag Ttcflag_t + Fc_cflag Ttcflag_t + Fc_lflag Ttcflag_t + Fc_line Tcc_t + Fc_cc [32]Tcc_t + F__c_ispeed Tspeed_t + F__c_ospeed Tspeed_t +} + +func Xgetpass(tls *TLS, prompt uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v prompt=%v, (%v:)", tls, prompt, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(144) + defer tls.Free(144) + var fd, v1 int32 + var l Tssize_t + var v2 uintptr + var _ /* s at bp+0 */ Ttermios + var _ /* t at bp+60 */ Ttermios + _, _, _, _ = fd, l, v1, v2 + v1 = Xopen(tls, __ccgo_ts+358, Int32FromInt32(O_RDWR)|Int32FromInt32(O_NOCTTY)|Int32FromInt32(O_CLOEXEC), 0) + fd = v1 + if v1 < 0 { + return uintptr(0) + } + Xtcgetattr(tls, fd, bp+60) + **(**Ttermios)(__ccgo_up(bp)) = **(**Ttermios)(__ccgo_up(bp + 60)) + (**(**Ttermios)(__ccgo_up(bp + 60))).Fc_lflag &= Uint32FromInt32(^(Int32FromInt32(ECHO) | Int32FromInt32(ISIG))) + (**(**Ttermios)(__ccgo_up(bp + 60))).Fc_lflag |= uint32(ICANON) + (**(**Ttermios)(__ccgo_up(bp + 60))).Fc_iflag &= Uint32FromInt32(^(Int32FromInt32(INLCR) | Int32FromInt32(IGNCR))) + (**(**Ttermios)(__ccgo_up(bp + 60))).Fc_iflag |= uint32(ICRNL) + Xtcsetattr(tls, fd, int32(TCSAFLUSH), bp+60) + Xtcdrain(tls, fd) + Xdprintf(tls, fd, __ccgo_ts+15, VaList(bp+128, prompt)) + l = Xread(tls, fd, uintptr(unsafe.Pointer(&_password)), uint64(128)) + if l >= 0 { + if l > 0 && int32(_password[l-int64(1)]) == int32('\n') || Uint64FromInt64(l) == uint64(128) { + l = l - 1 + } + _password[l] = 0 + } + Xtcsetattr(tls, fd, int32(TCSAFLUSH), bp) + Xdprintf(tls, fd, __ccgo_ts+367, 0) + Xclose(tls, fd) + if l < 0 { + v2 = uintptr(0) + } else { + v2 = uintptr(unsafe.Pointer(&_password)) + } + return v2 +} + +var _password [128]int8 + +var _defshells = [18]int8{'/', 'b', 'i', 'n', '/', 's', 'h', 10, '/', 'b', 'i', 'n', '/', 'c', 's', 'h', 10} + +var _line uintptr +var _linesize Tsize_t +var _f uintptr + +func Xendusershell(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + if _f != 0 { + Xfclose(tls, _f) + } + _f = uintptr(0) +} + +func Xsetusershell(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + if !(_f != 0) { + _f = Xfopen(tls, __ccgo_ts+369, __ccgo_ts+381) + } + if !(_f != 0) { + _f = Xfmemopen(tls, uintptr(unsafe.Pointer(&_defshells)), Uint64FromInt64(18)-Uint64FromInt32(1), __ccgo_ts+385) + } +} + +func Xgetusershell(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l Tssize_t + _ = l + if !(_f != 0) { + Xsetusershell(tls) + } + if !(_f != 0) { + return uintptr(0) + } + l = Xgetline(tls, uintptr(unsafe.Pointer(&_line)), uintptr(unsafe.Pointer(&_linesize)), _f) + if l <= 0 { + return uintptr(0) + } + if int32(**(**int8)(__ccgo_up(_line + uintptr(l-int64(1))))) == int32('\n') { + **(**int8)(__ccgo_up(_line + uintptr(l-int64(1)))) = 0 + } + return _line +} + +const ANYMARK = 1 +const FLUSHBAND = 4 +const FLUSHR = 1 +const FLUSHRW = 3 +const FLUSHW = 2 +const FMNAMESZ = 8 +const I_ATMARK = 21279 +const I_CANPUT = 21282 +const I_CKBAND = 21277 +const I_FDINSERT = 21264 +const I_FIND = 21259 +const I_FLUSH = 21253 +const I_FLUSHBAND = 21276 +const I_GETBAND = 21278 +const I_GETCLTIME = 21281 +const I_GETSIG = 21258 +const I_GRDOPT = 21255 +const I_GWROPT = 21268 +const I_LINK = 21260 +const I_LIST = 21269 +const I_LOOK = 21252 +const I_NREAD = 21249 +const I_PEEK = 21263 +const I_PLINK = 21270 +const I_POP = 21251 +const I_PUNLINK = 21271 +const I_PUSH = 21250 +const I_RECVFD = 21262 +const I_SENDFD = 21265 +const I_SETCLTIME = 21280 +const I_SETSIG = 21257 +const I_SRDOPT = 21254 +const I_STR = 21256 +const I_SWROPT = 21267 +const I_UNLINK = 21261 +const LASTMARK = 2 +const MORECTL = 1 +const MOREDATA = 2 +const MSG_ANY = 2 +const MSG_BAND = 4 +const MSG_HIPRI = 1 +const MUXID_ALL = -1 +const RMSGD = 1 +const RMSGN = 2 +const RNORM = 0 +const RPROTDAT = 4 +const RPROTDIS = 8 +const RPROTMASK = 28 +const RPROTNORM = 16 +const RS_HIPRI = 1 +const SNDPIPE = 2 +const SNDZERO = 1 +const S_BANDURG = 512 +const S_ERROR = 16 +const S_HANGUP = 32 +const S_HIPRI = 2 +const S_INPUT = 1 +const S_MSG = 8 +const S_OUTPUT = 4 +const S_RDBAND = 128 +const S_RDNORM = 64 +const S_WRBAND = 256 +const S_WRNORM = 4 +const __SID = 21248 + +type Tbandinfo = struct { + Fbi_pri uint8 + Fbi_flag int32 +} + +type Tstrbuf = struct { + Fmaxlen int32 + Flen1 int32 + Fbuf uintptr +} + +type Tstrpeek = struct { + Fctlbuf Tstrbuf + Fdatabuf Tstrbuf + Fflags uint32 +} + +type Tstrfdinsert = struct { + Fctlbuf Tstrbuf + Fdatabuf Tstrbuf + Fflags uint32 + Ffildes int32 + Foffset int32 +} + +type Tstrioctl = struct { + Fic_cmd int32 + Fic_timout int32 + Fic_len int32 + Fic_dp uintptr +} + +type Tstrrecvfd = struct { + Ffd int32 + Fuid int32 + Fgid int32 + F__fill [8]int8 +} + +type Tstr_mlist = struct { + Fl_name [9]int8 +} + +type Tstr_list = struct { + Fsl_nmods int32 + Fsl_modlist uintptr +} + +func Xisastream(tls *TLS, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + _ = v1 + if Xfcntl(tls, fd, int32(F_GETFD), 0) < 0 { + v1 = -int32(1) + } else { + v1 = 0 + } + return v1 +} + +func Xlutimes(tls *TLS, filename uintptr, tv uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v filename=%v tv=%v, (%v:)", tls, filename, tv, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var v1 uintptr + var _ /* times at bp+0 */ [2]Ttimespec + _ = v1 + if tv != 0 { + (**(**[2]Ttimespec)(__ccgo_up(bp)))[0].Ftv_sec = (**(**Ttimeval)(__ccgo_up(tv))).Ftv_sec + (**(**[2]Ttimespec)(__ccgo_up(bp)))[0].Ftv_nsec = (**(**Ttimeval)(__ccgo_up(tv))).Ftv_usec * int64(1000) + (**(**[2]Ttimespec)(__ccgo_up(bp)))[int32(1)].Ftv_sec = (**(**Ttimeval)(__ccgo_up(tv + 1*16))).Ftv_sec + (**(**[2]Ttimespec)(__ccgo_up(bp)))[int32(1)].Ftv_nsec = (**(**Ttimeval)(__ccgo_up(tv + 1*16))).Ftv_usec * int64(1000) + } + if tv != 0 { + v1 = bp + } else { + v1 = uintptr(0) + } + return Xutimensat(tls, -int32(100), filename, v1, int32(AT_SYMLINK_NOFOLLOW)) +} + +const UL_GETFSIZE = 1 +const UL_SETFSIZE = 2 + +func Xulimit(tls *TLS, cmd int32, va uintptr) (r int64) { + if __ccgo_strace { + trc("tls=%v cmd=%v va=%v, (%v:)", tls, cmd, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ap Tva_list + var val int64 + var _ /* rl at bp+0 */ Trlimit + _, _ = ap, val + Xgetrlimit(tls, int32(RLIMIT_FSIZE), bp) + if cmd == int32(UL_SETFSIZE) { + ap = va + val = VaInt64(&ap) + _ = ap + (**(**Trlimit)(__ccgo_up(bp))).Frlim_cur = uint64(512) * Uint64FromInt64(val) + if Xsetrlimit(tls, int32(RLIMIT_FSIZE), bp) != 0 { + return int64(-int32(1)) + } + } + return Int64FromUint64((**(**Trlimit)(__ccgo_up(bp))).Frlim_cur / uint64(512)) +} + +const BOOT_TIME = 2 +const DEAD_PROCESS = 8 +const EMPTY = 0 +const INIT_PROCESS = 5 +const LOGIN_PROCESS = 6 +const NEW_TIME = 3 +const OLD_TIME = 4 +const RUN_LVL = 1 +const USER_PROCESS = 7 +const e_exit = 0 +const e_termination = 0 + +type Tutmpx = struct { + Fut_type int16 + F__ut_pad1 int16 + Fut_pid Tpid_t + Fut_line [32]int8 + Fut_id [4]int8 + Fut_user [32]int8 + Fut_host [256]int8 + Fut_exit struct { + F__e_termination int16 + F__e_exit int16 + } + Fut_session int32 + F__ut_pad2 int32 + Fut_tv Ttimeval + Fut_addr_v6 [4]uint32 + F__unused [20]int8 +} + +func Xendutxent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } +} + +func Xsetutxent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } +} + +func Xgetutxent(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return UintptrFromInt32(0) +} + +func Xgetutxid(tls *TLS, ut uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v ut=%v, (%v:)", tls, ut, origin(2)) + defer func() { trc("-> %v", r) }() + } + return UintptrFromInt32(0) +} + +func Xgetutxline(tls *TLS, ut uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v ut=%v, (%v:)", tls, ut, origin(2)) + defer func() { trc("-> %v", r) }() + } + return UintptrFromInt32(0) +} + +func Xpututxline(tls *TLS, ut uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v ut=%v, (%v:)", tls, ut, origin(2)) + defer func() { trc("-> %v", r) }() + } + return UintptrFromInt32(0) +} + +func Xupdwtmpx(tls *TLS, f uintptr, u uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v u=%v, (%v:)", tls, f, u, origin(2)) + } +} + +func ___utmpxname(tls *TLS, f uintptr) (r int32) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOPNOTSUPP) + return -int32(1) +} + +func Xendutent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + Xendutxent(tls) +} + +func Xgetutent(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetutxent(tls) +} + +func Xgetutid(tls *TLS, ut uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v ut=%v, (%v:)", tls, ut, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetutxid(tls, ut) +} + +func Xgetutline(tls *TLS, ut uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v ut=%v, (%v:)", tls, ut, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetutxline(tls, ut) +} + +func Xpututline(tls *TLS, ut uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v ut=%v, (%v:)", tls, ut, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xpututxline(tls, ut) +} + +func Xsetutent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + Xsetutxent(tls) +} + +func Xupdwtmp(tls *TLS, f uintptr, u uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v u=%v, (%v:)", tls, f, u, origin(2)) + } + Xupdwtmpx(tls, f, u) +} + +const ADJ_ESTERROR = 8 +const ADJ_FREQUENCY = 2 +const ADJ_MAXERROR = 4 +const ADJ_MICRO = 4096 +const ADJ_NANO = 8192 +const ADJ_OFFSET = 1 +const ADJ_OFFSET_SINGLESHOT = 32769 +const ADJ_OFFSET_SS_READ = 40961 +const ADJ_SETOFFSET = 256 +const ADJ_STATUS = 16 +const ADJ_TAI = 128 +const ADJ_TICK = 16384 +const ADJ_TIMECONST = 32 +const MAXTC = 6 +const MOD_CLKA = 32769 +const MOD_CLKB = 16384 +const MOD_ESTERROR = 8 +const MOD_FREQUENCY = 2 +const MOD_MAXERROR = 4 +const MOD_MICRO = 4096 +const MOD_NANO = 8192 +const MOD_OFFSET = 1 +const MOD_STATUS = 16 +const MOD_TAI = 128 +const MOD_TIMECONST = 32 +const STA_CLK = 32768 +const STA_CLOCKERR = 4096 +const STA_DEL = 32 +const STA_FLL = 8 +const STA_FREQHOLD = 128 +const STA_INS = 16 +const STA_MODE = 16384 +const STA_NANO = 8192 +const STA_PLL = 1 +const STA_PPSERROR = 2048 +const STA_PPSFREQ = 2 +const STA_PPSJITTER = 512 +const STA_PPSSIGNAL = 256 +const STA_PPSTIME = 4 +const STA_PPSWANDER = 1024 +const STA_RONLY = 65280 +const STA_UNSYNC = 64 +const TIME_BAD = 5 +const TIME_DEL = 2 +const TIME_ERROR = 5 +const TIME_INS = 1 +const TIME_OK = 0 +const TIME_OOP = 3 +const TIME_WAIT = 4 + +type Tntptimeval = struct { + Ftime Ttimeval + Fmaxerror int64 + Festerror int64 +} + +type Ttimex = struct { + Fmodes uint32 + Foffset int64 + Ffreq int64 + Fmaxerror int64 + Festerror int64 + Fstatus int32 + Fconstant int64 + Fprecision int64 + Ftolerance int64 + Ftime Ttimeval + Ftick int64 + Fppsfreq int64 + Fjitter int64 + Fshift int32 + Fstabil int64 + Fjitcnt int64 + Fcalcnt int64 + Ferrcnt int64 + Fstbcnt int64 + Ftai int32 + F__padding [11]int32 +} + +func Xadjtime(tls *TLS, in uintptr, out uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v in=%v out=%v, (%v:)", tls, in, out, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(208) + defer tls.Free(208) + var v1 Tsuseconds_t + var _ /* tx at bp+0 */ Ttimex + _ = v1 + **(**Ttimex)(__ccgo_up(bp)) = Ttimex{} + if in != 0 { + if (*Ttimeval)(unsafe.Pointer(in)).Ftv_sec > int64(1000) || (*Ttimeval)(unsafe.Pointer(in)).Ftv_usec > int64(1000000000) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + (**(**Ttimex)(__ccgo_up(bp))).Foffset = (*Ttimeval)(unsafe.Pointer(in)).Ftv_sec*int64(1000000) + (*Ttimeval)(unsafe.Pointer(in)).Ftv_usec + (**(**Ttimex)(__ccgo_up(bp))).Fmodes = uint32(ADJ_OFFSET_SINGLESHOT) + } + if Xadjtimex(tls, bp) < 0 { + return -int32(1) + } + if out != 0 { + (*Ttimeval)(unsafe.Pointer(out)).Ftv_sec = (**(**Ttimex)(__ccgo_up(bp))).Foffset / int64(1000000) + v1 = (**(**Ttimex)(__ccgo_up(bp))).Foffset % Int64FromInt32(1000000) + (*Ttimeval)(unsafe.Pointer(out)).Ftv_usec = v1 + if v1 < 0 { + (*Ttimeval)(unsafe.Pointer(out)).Ftv_sec = (*Ttimeval)(unsafe.Pointer(out)).Ftv_sec - 1 + **(**Tsuseconds_t)(__ccgo_up(out + 8)) += int64(1000000) + } + } + return 0 +} + +func Xadjtimex(tls *TLS, tx uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v tx=%v, (%v:)", tls, tx, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xclock_adjtime(tls, CLOCK_REALTIME, tx) +} + +func Xarch_prctl(tls *TLS, code int32, addr uint64) (r int32) { + if __ccgo_strace { + trc("tls=%v code=%v addr=%v, (%v:)", tls, code, addr, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_arch_prctl), int64(code), Int64FromUint64(addr))))) +} + +func Xbrk(tls *TLS, end uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v end=%v, (%v:)", tls, end, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(ENOMEM)))) +} + +func Xcapset(tls *TLS, a uintptr, b uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v a=%v b=%v, (%v:)", tls, a, b, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_capset), int64(a), int64(b))))) +} + +func Xcapget(tls *TLS, a uintptr, b uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v a=%v b=%v, (%v:)", tls, a, b, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_capget), int64(a), int64(b))))) +} + +func Xchroot(tls *TLS, path uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v, (%v:)", tls, path, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_chroot), int64(path))))) +} + +type Tktimex64 = struct { + Fmodes uint32 + F__ccgo4 uint32 + Foffset int64 + Ffreq int64 + Fmaxerror int64 + Festerror int64 + Fstatus int32 + F__ccgo44 uint32 + Fconstant int64 + Fprecision int64 + Ftolerance int64 + Ftime_sec int64 + Ftime_usec int64 + Ftick int64 + Fppsfreq int64 + Fjitter int64 + Fshift int32 + F__ccgo116 uint32 + Fstabil int64 + Fjitcnt int64 + Fcalcnt int64 + Ferrcnt int64 + Fstbcnt int64 + Ftai int32 + F__padding [11]int32 +} + +type Tktimex = struct { + Fmodes uint32 + Foffset int64 + Ffreq int64 + Fmaxerror int64 + Festerror int64 + Fstatus int32 + Fconstant int64 + Fprecision int64 + Ftolerance int64 + Ftime_sec int64 + Ftime_usec int64 + Ftick int64 + Fppsfreq int64 + Fjitter int64 + Fshift int32 + Fstabil int64 + Fjitcnt int64 + Fcalcnt int64 + Ferrcnt int64 + Fstbcnt int64 + Ftai int32 + F__padding [11]int32 +} + +func Xclock_adjtime(tls *TLS, clock_id Tclockid_t, utx uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v clock_id=%v utx=%v, (%v:)", tls, clock_id, utx, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(208) + defer tls.Free(208) + var r int32 + var _ /* ktx at bp+0 */ Tktimex + _ = r + r = -int32(ENOSYS) + if uint64(8) > uint64(8) { + **(**Tktimex)(__ccgo_up(bp)) = Tktimex{ + Fmodes: (*Ttimex)(unsafe.Pointer(utx)).Fmodes, + Foffset: (*Ttimex)(unsafe.Pointer(utx)).Foffset, + Ffreq: (*Ttimex)(unsafe.Pointer(utx)).Ffreq, + Fmaxerror: (*Ttimex)(unsafe.Pointer(utx)).Fmaxerror, + Festerror: (*Ttimex)(unsafe.Pointer(utx)).Festerror, + Fstatus: (*Ttimex)(unsafe.Pointer(utx)).Fstatus, + Fconstant: (*Ttimex)(unsafe.Pointer(utx)).Fconstant, + Fprecision: (*Ttimex)(unsafe.Pointer(utx)).Fprecision, + Ftolerance: (*Ttimex)(unsafe.Pointer(utx)).Ftolerance, + Ftime_sec: (*Ttimex)(unsafe.Pointer(utx)).Ftime.Ftv_sec, + Ftime_usec: (*Ttimex)(unsafe.Pointer(utx)).Ftime.Ftv_usec, + Ftick: (*Ttimex)(unsafe.Pointer(utx)).Ftick, + Fppsfreq: (*Ttimex)(unsafe.Pointer(utx)).Fppsfreq, + Fjitter: (*Ttimex)(unsafe.Pointer(utx)).Fjitter, + Fshift: (*Ttimex)(unsafe.Pointer(utx)).Fshift, + Fstabil: (*Ttimex)(unsafe.Pointer(utx)).Fstabil, + Fjitcnt: (*Ttimex)(unsafe.Pointer(utx)).Fjitcnt, + Fcalcnt: (*Ttimex)(unsafe.Pointer(utx)).Fcalcnt, + Ferrcnt: (*Ttimex)(unsafe.Pointer(utx)).Ferrcnt, + Fstbcnt: (*Ttimex)(unsafe.Pointer(utx)).Fstbcnt, + Ftai: (*Ttimex)(unsafe.Pointer(utx)).Ftai, + } + if clock_id == CLOCK_REALTIME { + r = int32(X__syscall1(tls, int64(SYS_adjtimex), int64(bp))) + } else { + r = int32(X__syscall2(tls, int64(SYS_clock_adjtime), int64(clock_id), int64(bp))) + } + if r >= 0 { + (*Ttimex)(unsafe.Pointer(utx)).Fmodes = (**(**Tktimex)(__ccgo_up(bp))).Fmodes + (*Ttimex)(unsafe.Pointer(utx)).Foffset = (**(**Tktimex)(__ccgo_up(bp))).Foffset + (*Ttimex)(unsafe.Pointer(utx)).Ffreq = (**(**Tktimex)(__ccgo_up(bp))).Ffreq + (*Ttimex)(unsafe.Pointer(utx)).Fmaxerror = (**(**Tktimex)(__ccgo_up(bp))).Fmaxerror + (*Ttimex)(unsafe.Pointer(utx)).Festerror = (**(**Tktimex)(__ccgo_up(bp))).Festerror + (*Ttimex)(unsafe.Pointer(utx)).Fstatus = (**(**Tktimex)(__ccgo_up(bp))).Fstatus + (*Ttimex)(unsafe.Pointer(utx)).Fconstant = (**(**Tktimex)(__ccgo_up(bp))).Fconstant + (*Ttimex)(unsafe.Pointer(utx)).Fprecision = (**(**Tktimex)(__ccgo_up(bp))).Fprecision + (*Ttimex)(unsafe.Pointer(utx)).Ftolerance = (**(**Tktimex)(__ccgo_up(bp))).Ftolerance + (*Ttimex)(unsafe.Pointer(utx)).Ftime.Ftv_sec = (**(**Tktimex)(__ccgo_up(bp))).Ftime_sec + (*Ttimex)(unsafe.Pointer(utx)).Ftime.Ftv_usec = (**(**Tktimex)(__ccgo_up(bp))).Ftime_usec + (*Ttimex)(unsafe.Pointer(utx)).Ftick = (**(**Tktimex)(__ccgo_up(bp))).Ftick + (*Ttimex)(unsafe.Pointer(utx)).Fppsfreq = (**(**Tktimex)(__ccgo_up(bp))).Fppsfreq + (*Ttimex)(unsafe.Pointer(utx)).Fjitter = (**(**Tktimex)(__ccgo_up(bp))).Fjitter + (*Ttimex)(unsafe.Pointer(utx)).Fshift = (**(**Tktimex)(__ccgo_up(bp))).Fshift + (*Ttimex)(unsafe.Pointer(utx)).Fstabil = (**(**Tktimex)(__ccgo_up(bp))).Fstabil + (*Ttimex)(unsafe.Pointer(utx)).Fjitcnt = (**(**Tktimex)(__ccgo_up(bp))).Fjitcnt + (*Ttimex)(unsafe.Pointer(utx)).Fcalcnt = (**(**Tktimex)(__ccgo_up(bp))).Fcalcnt + (*Ttimex)(unsafe.Pointer(utx)).Ferrcnt = (**(**Tktimex)(__ccgo_up(bp))).Ferrcnt + (*Ttimex)(unsafe.Pointer(utx)).Fstbcnt = (**(**Tktimex)(__ccgo_up(bp))).Fstbcnt + (*Ttimex)(unsafe.Pointer(utx)).Ftai = (**(**Tktimex)(__ccgo_up(bp))).Ftai + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) + } + if clock_id == CLOCK_REALTIME { + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_adjtimex), int64(utx))))) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_clock_adjtime), int64(clock_id), int64(utx))))) +} + +func Xcopy_file_range(tls *TLS, fd_in int32, off_in uintptr, fd_out int32, off_out uintptr, len1 Tsize_t, flags uint32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd_in=%v off_in=%v fd_out=%v off_out=%v len1=%v flags=%v, (%v:)", tls, fd_in, off_in, fd_out, off_out, len1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall6(tls, int64(SYS_copy_file_range), int64(fd_in), int64(off_in), int64(fd_out), int64(off_out), Int64FromUint64(len1), Int64FromUint32(flags)))) +} + +const EPOLLERR = 8 +const EPOLLET = 2147483648 +const EPOLLEXCLUSIVE = 268435456 +const EPOLLHUP = 16 +const EPOLLIN = 1 +const EPOLLMSG = 1024 +const EPOLLNVAL = 32 +const EPOLLONESHOT = 1073741824 +const EPOLLOUT = 4 +const EPOLLPRI = 2 +const EPOLLRDBAND = 128 +const EPOLLRDHUP = 8192 +const EPOLLRDNORM = 64 +const EPOLLWAKEUP = 536870912 +const EPOLLWRBAND = 512 +const EPOLLWRNORM = 256 +const EPOLL_CLOEXEC = 524288 +const EPOLL_CTL_ADD = 1 +const EPOLL_CTL_DEL = 2 +const EPOLL_CTL_MOD = 3 +const EPOLL_NONBLOCK = 2048 + +type Tfsblkcnt_t = uint64 + +type Tfsfilcnt_t = uint64 + +type _EPOLL_EVENTS = int32 + +const ___EPOLL_DUMMY = 0 + +type Tepoll_data_t = struct { + Ffd [0]int32 + Fu32 [0]Tuint32_t + Fu64 [0]Tuint64_t + Fptr uintptr +} + +type Tepoll_data = Tepoll_data_t + +type Tepoll_event = struct { + Fevents Tuint32_t + Fdata Tepoll_data_t +} + +func Xepoll_create(tls *TLS, size int32) (r int32) { + if __ccgo_strace { + trc("tls=%v size=%v, (%v:)", tls, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + if size <= 0 { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL)))) + } + return Xepoll_create1(tls, 0) +} + +func Xepoll_create1(tls *TLS, flags int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v flags=%v, (%v:)", tls, flags, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + r = int32(X__syscall1(tls, int64(SYS_epoll_create1), int64(flags))) + if r == -int32(ENOSYS) && !(flags != 0) { + r = int32(X__syscall1(tls, int64(SYS_epoll_create), int64(Int32FromInt32(1)))) + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func Xepoll_ctl(tls *TLS, fd int32, op int32, fd2 int32, ev uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v op=%v fd2=%v ev=%v, (%v:)", tls, fd, op, fd2, ev, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_epoll_ctl), int64(fd), int64(op), int64(fd2), int64(ev))))) +} + +func Xepoll_pwait(tls *TLS, fd int32, ev uintptr, cnt int32, to int32, sigs uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v ev=%v cnt=%v to=%v sigs=%v, (%v:)", tls, fd, ev, cnt, to, sigs, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + r = int32(___syscall_cp(tls, int64(SYS_epoll_pwait), int64(fd), int64(ev), int64(cnt), int64(to), int64(sigs), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8)))) + if r == -int32(ENOSYS) && !(sigs != 0) { + r = int32(___syscall_cp(tls, int64(SYS_epoll_wait), int64(fd), int64(ev), int64(cnt), int64(to), 0, 0)) + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func Xepoll_wait(tls *TLS, fd int32, ev uintptr, cnt int32, to int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v ev=%v cnt=%v to=%v, (%v:)", tls, fd, ev, cnt, to, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xepoll_pwait(tls, fd, ev, cnt, to, uintptr(0)) +} + +const EFD_CLOEXEC = 524288 +const EFD_NONBLOCK = 2048 +const EFD_SEMAPHORE = 1 + +type Teventfd_t = uint64 + +func Xeventfd(tls *TLS, count uint32, flags int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v count=%v flags=%v, (%v:)", tls, count, flags, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + r = int32(X__syscall2(tls, int64(SYS_eventfd2), Int64FromUint32(count), int64(flags))) + if r == -int32(ENOSYS) && !(flags != 0) { + r = int32(X__syscall1(tls, int64(SYS_eventfd), Int64FromUint32(count))) + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func Xeventfd_read(tls *TLS, fd int32, value uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v value=%v, (%v:)", tls, fd, value, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + _ = v1 + if uint64(8) == Uint64FromInt64(Xread(tls, fd, value, uint64(8))) { + v1 = 0 + } else { + v1 = -int32(1) + } + return v1 +} + +func Xeventfd_write(tls *TLS, fd int32, _value Teventfd_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v _value=%v, (%v:)", tls, fd, _value, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + *(*Teventfd_t)(unsafe.Pointer(bp)) = _value + var v1 int32 + _ = v1 + if uint64(8) == Uint64FromInt64(Xwrite(tls, fd, bp, uint64(8))) { + v1 = 0 + } else { + v1 = -int32(1) + } + return v1 +} + +func Xfallocate(tls *TLS, fd int32, mode int32, base Toff_t, len1 Toff_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v mode=%v base=%v len1=%v, (%v:)", tls, fd, mode, base, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_fallocate), int64(fd), int64(mode), base, len1)))) +} + +const FANOTIFY_METADATA_VERSION = 3 +const FAN_ACCESS = 1 +const FAN_ACCESS_PERM = 131072 +const FAN_ALLOW = 1 +const FAN_ALL_CLASS_BITS = 12 +const FAN_ALL_EVENTS = 59 +const FAN_ALL_INIT_FLAGS = 63 +const FAN_ALL_MARK_FLAGS = 255 +const FAN_ALL_OUTGOING_EVENTS = 213051 +const FAN_ALL_PERM_EVENTS = 196608 +const FAN_ATTRIB = 4 +const FAN_AUDIT = 16 +const FAN_CLASS_CONTENT = 4 +const FAN_CLASS_NOTIF = 0 +const FAN_CLASS_PRE_CONTENT = 8 +const FAN_CLOEXEC = 1 +const FAN_CLOSE = 24 +const FAN_CLOSE_NOWRITE = 16 +const FAN_CLOSE_WRITE = 8 +const FAN_CREATE = 256 +const FAN_DELETE = 512 +const FAN_DELETE_SELF = 1024 +const FAN_DENY = 2 +const FAN_DIR_MODIFY = 524288 +const FAN_ENABLE_AUDIT = 64 +const FAN_EVENT_INFO_TYPE_DFID = 3 +const FAN_EVENT_INFO_TYPE_DFID_NAME = 2 +const FAN_EVENT_INFO_TYPE_FID = 1 +const FAN_EVENT_METADATA_LEN = 0 +const FAN_EVENT_ON_CHILD = 134217728 +const FAN_MARK_ADD = 1 +const FAN_MARK_DONT_FOLLOW = 4 +const FAN_MARK_FILESYSTEM = 256 +const FAN_MARK_FLUSH = 128 +const FAN_MARK_IGNORED_MASK = 32 +const FAN_MARK_IGNORED_SURV_MODIFY = 64 +const FAN_MARK_INODE = 0 +const FAN_MARK_MOUNT = 16 +const FAN_MARK_ONLYDIR = 8 +const FAN_MARK_REMOVE = 2 +const FAN_MARK_TYPE_MASK = 272 +const FAN_MODIFY = 2 +const FAN_MOVE = 192 +const FAN_MOVED_FROM = 64 +const FAN_MOVED_TO = 128 +const FAN_MOVE_SELF = 2048 +const FAN_NOFD = -1 +const FAN_NONBLOCK = 2 +const FAN_ONDIR = 1073741824 +const FAN_OPEN = 32 +const FAN_OPEN_EXEC = 4096 +const FAN_OPEN_EXEC_PERM = 262144 +const FAN_OPEN_PERM = 65536 +const FAN_Q_OVERFLOW = 16384 +const FAN_REPORT_DFID_NAME = 3072 +const FAN_REPORT_DIR_FID = 1024 +const FAN_REPORT_FID = 512 +const FAN_REPORT_NAME = 2048 +const FAN_REPORT_TID = 256 +const FAN_UNLIMITED_MARKS = 32 +const FAN_UNLIMITED_QUEUE = 16 +const ST_APPEND = 256 +const ST_IMMUTABLE = 512 +const ST_MANDLOCK = 64 +const ST_NOATIME = 1024 +const ST_NODEV = 4 +const ST_NODIRATIME = 2048 +const ST_NOEXEC = 8 +const ST_NOSUID = 2 +const ST_RDONLY = 1 +const ST_RELATIME = 4096 +const ST_SYNCHRONOUS = 16 +const ST_WRITE = 128 + +type Tstatvfs = struct { + Ff_bsize uint64 + Ff_frsize uint64 + Ff_blocks Tfsblkcnt_t + Ff_bfree Tfsblkcnt_t + Ff_bavail Tfsblkcnt_t + Ff_files Tfsfilcnt_t + Ff_ffree Tfsfilcnt_t + Ff_favail Tfsfilcnt_t + Ff_fsid uint64 + Ff_flag uint64 + Ff_namemax uint64 + Ff_type uint32 + F__reserved [5]int32 +} + +type Tfsid_t = struct { + F__val [2]int32 +} + +type t__fsid_t = Tfsid_t + +type Tstatfs = struct { + Ff_type uint64 + Ff_bsize uint64 + Ff_blocks Tfsblkcnt_t + Ff_bfree Tfsblkcnt_t + Ff_bavail Tfsblkcnt_t + Ff_files Tfsfilcnt_t + Ff_ffree Tfsfilcnt_t + Ff_fsid Tfsid_t + Ff_namelen uint64 + Ff_frsize uint64 + Ff_flags uint64 + Ff_spare [4]uint64 +} + +type Tfanotify_event_metadata = struct { + Fevent_len uint32 + Fvers uint8 + Freserved uint8 + Fmetadata_len uint16 + Fmask uint64 + Ffd int32 + Fpid int32 +} + +type Tfanotify_event_info_header = struct { + Finfo_type uint8 + Fpad uint8 + Flen1 uint16 +} + +type Tfanotify_event_info_fid = struct { + Fhdr Tfanotify_event_info_header + Ffsid Tfsid_t +} + +type Tfanotify_response = struct { + Ffd int32 + Fresponse uint32 +} + +func Xfanotify_init(tls *TLS, flags uint32, event_f_flags uint32) (r int32) { + if __ccgo_strace { + trc("tls=%v flags=%v event_f_flags=%v, (%v:)", tls, flags, event_f_flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_fanotify_init), Int64FromUint32(flags), Int64FromUint32(event_f_flags))))) +} + +func Xfanotify_mark(tls *TLS, fanotify_fd int32, flags uint32, mask uint64, dfd int32, pathname uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fanotify_fd=%v flags=%v mask=%v dfd=%v pathname=%v, (%v:)", tls, fanotify_fd, flags, mask, dfd, pathname, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_fanotify_mark), int64(fanotify_fd), Int64FromUint32(flags), Int64FromUint64(mask), int64(dfd), int64(pathname))))) +} + +const LOCK_EX = 2 +const LOCK_NB = 4 +const LOCK_SH = 1 +const LOCK_UN = 8 + +func Xflock(tls *TLS, fd int32, op int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v op=%v, (%v:)", tls, fd, op, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_flock), int64(fd), int64(op))))) +} + +func Xgetdents(tls *TLS, fd int32, buf uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v len1=%v, (%v:)", tls, fd, buf, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + if len1 > uint64(INT_MAX) { + len1 = uint64(INT_MAX) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_getdents64), int64(fd), int64(buf), Int64FromUint64(len1))))) +} + +const GRND_INSECURE = 4 +const GRND_NONBLOCK = 1 +const GRND_RANDOM = 2 + +func Xgetrandom(tls *TLS, buf uintptr, buflen Tsize_t, flags uint32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v buf=%v buflen=%v flags=%v, (%v:)", tls, buf, buflen, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_getrandom), int64(buf), Int64FromUint64(buflen), Int64FromUint32(flags), 0, 0, 0))) +} + +const IN_ACCESS = 1 +const IN_ALL_EVENTS = 4095 +const IN_ATTRIB = 4 +const IN_CLOEXEC = 524288 +const IN_CLOSE = 24 +const IN_CLOSE_NOWRITE = 16 +const IN_CLOSE_WRITE = 8 +const IN_CREATE = 256 +const IN_DELETE = 512 +const IN_DELETE_SELF = 1024 +const IN_DONT_FOLLOW = 33554432 +const IN_EXCL_UNLINK = 67108864 +const IN_IGNORED = 32768 +const IN_ISDIR = 1073741824 +const IN_MASK_ADD = 536870912 +const IN_MASK_CREATE = 268435456 +const IN_MODIFY = 2 +const IN_MOVE = 192 +const IN_MOVED_FROM = 64 +const IN_MOVED_TO = 128 +const IN_MOVE_SELF = 2048 +const IN_NONBLOCK = 2048 +const IN_ONESHOT = 2147483648 +const IN_ONLYDIR = 16777216 +const IN_OPEN = 32 +const IN_Q_OVERFLOW = 16384 +const IN_UNMOUNT = 8192 + +type Tinotify_event = struct { + Fwd int32 + Fmask Tuint32_t + Fcookie Tuint32_t + Flen1 Tuint32_t +} + +func Xinotify_init(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xinotify_init1(tls, 0) +} + +func Xinotify_init1(tls *TLS, flags int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v flags=%v, (%v:)", tls, flags, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + r = int32(X__syscall1(tls, int64(SYS_inotify_init1), int64(flags))) + if r == -int32(ENOSYS) && !(flags != 0) { + r = int32(X__syscall0(tls, int64(SYS_inotify_init))) + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func Xinotify_add_watch(tls *TLS, fd int32, pathname uintptr, mask Tuint32_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v pathname=%v mask=%v, (%v:)", tls, fd, pathname, mask, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_inotify_add_watch), int64(fd), int64(pathname), Int64FromUint32(mask))))) +} + +func Xinotify_rm_watch(tls *TLS, fd int32, wd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v wd=%v, (%v:)", tls, fd, wd, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_inotify_rm_watch), int64(fd), int64(wd))))) +} + +func Xioperm(tls *TLS, from uint64, num uint64, turn_on int32) (r int32) { + if __ccgo_strace { + trc("tls=%v from=%v num=%v turn_on=%v, (%v:)", tls, from, num, turn_on, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_ioperm), Int64FromUint64(from), Int64FromUint64(num), int64(turn_on))))) +} + +func Xiopl(tls *TLS, level int32) (r int32) { + if __ccgo_strace { + trc("tls=%v level=%v, (%v:)", tls, level, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_iopl), int64(level))))) +} + +func Xklogctl(tls *TLS, type1 int32, buf uintptr, len1 int32) (r int32) { + if __ccgo_strace { + trc("tls=%v type1=%v buf=%v len1=%v, (%v:)", tls, type1, buf, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_syslog), int64(type1), int64(buf), int64(len1))))) +} + +const MADV_COLD = 20 +const MADV_DODUMP = 17 +const MADV_DOFORK = 11 +const MADV_DONTDUMP = 16 +const MADV_DONTFORK = 10 +const MADV_DONTNEED = 4 +const MADV_FREE = 8 +const MADV_HUGEPAGE = 14 +const MADV_HWPOISON = 100 +const MADV_KEEPONFORK = 19 +const MADV_MERGEABLE = 12 +const MADV_NOHUGEPAGE = 15 +const MADV_NORMAL = 0 +const MADV_PAGEOUT = 21 +const MADV_RANDOM = 1 +const MADV_REMOVE = 9 +const MADV_SEQUENTIAL = 2 +const MADV_SOFT_OFFLINE = 101 +const MADV_UNMERGEABLE = 13 +const MADV_WILLNEED = 3 +const MADV_WIPEONFORK = 18 +const MFD_ALLOW_SEALING = 2 +const MFD_CLOEXEC = 1 +const MFD_HUGETLB = 4 +const MLOCK_ONFAULT = 1 +const MREMAP_DONTUNMAP = 4 +const MREMAP_FIXED = 2 +const MREMAP_MAYMOVE = 1 +const _GNU_SOURCE = 1 + +func Xmemfd_create(tls *TLS, name uintptr, flags uint32) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v flags=%v, (%v:)", tls, name, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_memfd_create), int64(name), Int64FromUint32(flags))))) +} + +func Xmlock2(tls *TLS, addr uintptr, len1 Tsize_t, flags uint32) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v len1=%v flags=%v, (%v:)", tls, addr, len1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + if flags == uint32(0) { + return Xmlock(tls, addr, len1) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_mlock2), int64(addr), Int64FromUint64(len1), Int64FromUint32(flags))))) +} + +func Xinit_module(tls *TLS, a uintptr, b uint64, c uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v a=%v b=%v c=%v, (%v:)", tls, a, b, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_init_module), int64(a), Int64FromUint64(b), int64(c))))) +} + +func Xdelete_module(tls *TLS, a uintptr, b uint32) (r int32) { + if __ccgo_strace { + trc("tls=%v a=%v b=%v, (%v:)", tls, a, b, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_delete_module), int64(a), Int64FromUint32(b))))) +} + +const BLKBSZGET = 2147488368 +const BLKBSZSET = 1073746545 +const BLKFLSBUF = 4705 +const BLKFRAGET = 4709 +const BLKFRASET = 4708 +const BLKGETSIZE = 4704 +const BLKGETSIZE64 = 2147488370 +const BLKRAGET = 4707 +const BLKRASET = 4706 +const BLKROGET = 4702 +const BLKROSET = 4701 +const BLKRRPART = 4703 +const BLKSECTGET = 4711 +const BLKSECTSET = 4710 +const BLKSSZGET = 4712 +const FIOASYNC = 21586 +const FIOCLEX = 21585 +const FIOGETOWN = 35075 +const FIONBIO = 21537 +const FIONCLEX = 21584 +const FIONREAD = 21531 +const FIOQSIZE = 21600 +const FIOSETOWN = 35073 +const MNT_DETACH = 2 +const MNT_EXPIRE = 4 +const MNT_FORCE = 1 +const MS_ACTIVE = 1073741824 +const MS_BIND = 4096 +const MS_BORN = 536870912 +const MS_DIRSYNC = 128 +const MS_I_VERSION = 8388608 +const MS_KERNMOUNT = 4194304 +const MS_LAZYTIME = 33554432 +const MS_MANDLOCK = 64 +const MS_MGC_MSK = 4294901760 +const MS_MGC_VAL = 3236757504 +const MS_MOVE = 8192 +const MS_NOATIME = 1024 +const MS_NODEV = 4 +const MS_NODIRATIME = 2048 +const MS_NOEXEC = 8 +const MS_NOREMOTELOCK = 134217728 +const MS_NOSEC = 268435456 +const MS_NOSUID = 2 +const MS_NOSYMFOLLOW = 256 +const MS_NOUSER = 2147483648 +const MS_POSIXACL = 65536 +const MS_PRIVATE = 262144 +const MS_RDONLY = 1 +const MS_REC = 16384 +const MS_RELATIME = 2097152 +const MS_REMOUNT = 32 +const MS_RMT_MASK = 41943121 +const MS_SHARED = 1048576 +const MS_SILENT = 32768 +const MS_SLAVE = 524288 +const MS_STRICTATIME = 16777216 +const MS_SYNCHRONOUS = 16 +const MS_UNBINDABLE = 131072 +const N_6PACK = 7 +const N_AX25 = 5 +const N_CAIF = 20 +const N_GIGASET_M101 = 16 +const N_GSM0710 = 21 +const N_HCI = 15 +const N_HDLC = 13 +const N_IRDA = 11 +const N_MASC = 8 +const N_MOUSE = 2 +const N_NCI = 25 +const N_NULL = 27 +const N_PPP = 3 +const N_PPS = 18 +const N_PROFIBUS_FDL = 10 +const N_R3964 = 9 +const N_SLCAN = 17 +const N_SLIP = 1 +const N_SMSBLOCK = 12 +const N_SPEAKUP = 26 +const N_STRIP = 4 +const N_SYNC_PPP = 14 +const N_TI_WL = 22 +const N_TRACEROUTER = 24 +const N_TRACESINK = 23 +const N_TTY = 0 +const N_V253 = 19 +const N_X25 = 6 +const SIOCADDDLCI = 35200 +const SIOCADDMULTI = 35121 +const SIOCADDRT = 35083 +const SIOCATMARK = 35077 +const SIOCDARP = 35155 +const SIOCDELDLCI = 35201 +const SIOCDELMULTI = 35122 +const SIOCDELRT = 35084 +const SIOCDEVPRIVATE = 35312 +const SIOCDIFADDR = 35126 +const SIOCDRARP = 35168 +const SIOCGARP = 35156 +const SIOCGIFADDR = 35093 +const SIOCGIFBR = 35136 +const SIOCGIFBRDADDR = 35097 +const SIOCGIFCONF = 35090 +const SIOCGIFCOUNT = 35128 +const SIOCGIFDSTADDR = 35095 +const SIOCGIFENCAP = 35109 +const SIOCGIFFLAGS = 35091 +const SIOCGIFHWADDR = 35111 +const SIOCGIFINDEX = 35123 +const SIOCGIFMAP = 35184 +const SIOCGIFMEM = 35103 +const SIOCGIFMETRIC = 35101 +const SIOCGIFMTU = 35105 +const SIOCGIFNAME = 35088 +const SIOCGIFNETMASK = 35099 +const SIOCGIFPFLAGS = 35125 +const SIOCGIFSLAVE = 35113 +const SIOCGIFTXQLEN = 35138 +const SIOCGPGRP = 35076 +const SIOCGRARP = 35169 +const SIOCGSTAMP = 35078 +const SIOCGSTAMPNS = 35079 +const SIOCPROTOPRIVATE = 35296 +const SIOCRTMSG = 35085 +const SIOCSARP = 35157 +const SIOCSIFADDR = 35094 +const SIOCSIFBR = 35137 +const SIOCSIFBRDADDR = 35098 +const SIOCSIFDSTADDR = 35096 +const SIOCSIFENCAP = 35110 +const SIOCSIFFLAGS = 35092 +const SIOCSIFHWADDR = 35108 +const SIOCSIFHWBROADCAST = 35127 +const SIOCSIFLINK = 35089 +const SIOCSIFMAP = 35185 +const SIOCSIFMEM = 35104 +const SIOCSIFMETRIC = 35102 +const SIOCSIFMTU = 35106 +const SIOCSIFNAME = 35107 +const SIOCSIFNETMASK = 35100 +const SIOCSIFPFLAGS = 35124 +const SIOCSIFSLAVE = 35120 +const SIOCSIFTXQLEN = 35139 +const SIOCSPGRP = 35074 +const SIOCSRARP = 35170 +const SIOGIFINDEX = 35123 +const TCFLSH = 21515 +const TCGETA = 21509 +const TCGETS = 21505 +const TCGETX = 21554 +const TCSBRK = 21513 +const TCSBRKP = 21541 +const TCSETA = 21510 +const TCSETAF = 21512 +const TCSETAW = 21511 +const TCSETS = 21506 +const TCSETSF = 21508 +const TCSETSW = 21507 +const TCSETX = 21555 +const TCSETXF = 21556 +const TCSETXW = 21557 +const TCXONC = 21514 +const TIOCCBRK = 21544 +const TIOCCONS = 21533 +const TIOCEXCL = 21516 +const TIOCGDEV = 2147767346 +const TIOCGETD = 21540 +const TIOCGEXCL = 2147767360 +const TIOCGICOUNT = 21597 +const TIOCGISO7816 = 2150126658 +const TIOCGLCKTRMIOS = 21590 +const TIOCGPGRP = 21519 +const TIOCGPKT = 2147767352 +const TIOCGPTLCK = 2147767353 +const TIOCGPTN = 2147767344 +const TIOCGPTPEER = 21569 +const TIOCGRS485 = 21550 +const TIOCGSERIAL = 21534 +const TIOCGSID = 21545 +const TIOCGSOFTCAR = 21529 +const TIOCGWINSZ = 21523 +const TIOCINQ = 21531 +const TIOCLINUX = 21532 +const TIOCMBIC = 21527 +const TIOCMBIS = 21526 +const TIOCMGET = 21525 +const TIOCMIWAIT = 21596 +const TIOCMSET = 21528 +const TIOCM_CAR = 64 +const TIOCM_CD = 64 +const TIOCM_CTS = 32 +const TIOCM_DSR = 256 +const TIOCM_DTR = 2 +const TIOCM_LE = 1 +const TIOCM_LOOP = 32768 +const TIOCM_OUT1 = 8192 +const TIOCM_OUT2 = 16384 +const TIOCM_RI = 128 +const TIOCM_RNG = 128 +const TIOCM_RTS = 4 +const TIOCM_SR = 16 +const TIOCM_ST = 8 +const TIOCNOTTY = 21538 +const TIOCNXCL = 21517 +const TIOCOUTQ = 21521 +const TIOCPKT = 21536 +const TIOCPKT_DATA = 0 +const TIOCPKT_DOSTOP = 32 +const TIOCPKT_FLUSHREAD = 1 +const TIOCPKT_FLUSHWRITE = 2 +const TIOCPKT_IOCTL = 64 +const TIOCPKT_NOSTOP = 16 +const TIOCPKT_START = 8 +const TIOCPKT_STOP = 4 +const TIOCSBRK = 21543 +const TIOCSCTTY = 21518 +const TIOCSERCONFIG = 21587 +const TIOCSERGETLSR = 21593 +const TIOCSERGETMULTI = 21594 +const TIOCSERGSTRUCT = 21592 +const TIOCSERGWILD = 21588 +const TIOCSERSETMULTI = 21595 +const TIOCSERSWILD = 21589 +const TIOCSER_TEMT = 1 +const TIOCSETD = 21539 +const TIOCSIG = 1074025526 +const TIOCSISO7816 = 3223868483 +const TIOCSLCKTRMIOS = 21591 +const TIOCSPGRP = 21520 +const TIOCSPTLCK = 1074025521 +const TIOCSRS485 = 21551 +const TIOCSSERIAL = 21535 +const TIOCSSOFTCAR = 21530 +const TIOCSTI = 21522 +const TIOCSWINSZ = 21524 +const TIOCVHANGUP = 21559 +const UMOUNT_NOFOLLOW = 8 +const _IOC_NONE = 0 +const _IOC_READ = 2 +const _IOC_WRITE = 1 + +func Xmount(tls *TLS, special uintptr, dir uintptr, fstype uintptr, flags uint64, data uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v special=%v dir=%v fstype=%v flags=%v data=%v, (%v:)", tls, special, dir, fstype, flags, data, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_mount), int64(special), int64(dir), int64(fstype), Int64FromUint64(flags), int64(data))))) +} + +func Xumount(tls *TLS, special uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v special=%v, (%v:)", tls, special, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_umount2), int64(special), int64(Int32FromInt32(0)))))) +} + +func Xumount2(tls *TLS, special uintptr, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v special=%v flags=%v, (%v:)", tls, special, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_umount2), int64(special), int64(flags))))) +} + +func Xname_to_handle_at(tls *TLS, dirfd int32, pathname uintptr, handle uintptr, mount_id uintptr, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v dirfd=%v pathname=%v handle=%v mount_id=%v flags=%v, (%v:)", tls, dirfd, pathname, handle, mount_id, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_name_to_handle_at), int64(dirfd), int64(pathname), int64(handle), int64(mount_id), int64(flags))))) +} + +func Xopen_by_handle_at(tls *TLS, mount_fd int32, handle uintptr, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v mount_fd=%v handle=%v flags=%v, (%v:)", tls, mount_fd, handle, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_open_by_handle_at), int64(mount_fd), int64(handle), int64(flags))))) +} + +const ADDR_COMPAT_LAYOUT = 2097152 +const ADDR_LIMIT_32BIT = 8388608 +const ADDR_LIMIT_3GB = 134217728 +const ADDR_NO_RANDOMIZE = 262144 +const FDPIC_FUNCPTRS = 524288 +const MMAP_PAGE_ZERO = 1048576 +const PER_BSD = 6 +const PER_HPUX = 16 +const PER_IRIX32 = 67108873 +const PER_IRIX64 = 67108875 +const PER_IRIXN32 = 67108874 +const PER_ISCR4 = 67108869 +const PER_LINUX = 0 +const PER_LINUX32 = 8 +const PER_LINUX32_3GB = 134217736 +const PER_LINUX_32BIT = 8388608 +const PER_LINUX_FDPIC = 524288 +const PER_MASK = 255 +const PER_OSF4 = 15 +const PER_OSR5 = 100663299 +const PER_RISCOS = 12 +const PER_SCOSVR3 = 117440515 +const PER_SOLARIS = 67108877 +const PER_SUNOS = 67108870 +const PER_SVR3 = 83886082 +const PER_SVR4 = 68157441 +const PER_UW7 = 68157454 +const PER_WYSEV386 = 83886084 +const PER_XENIX = 83886087 +const READ_IMPLIES_EXEC = 4194304 +const SHORT_INODE = 16777216 +const STICKY_TIMEOUTS = 67108864 +const UNAME26 = 131072 +const WHOLE_SECONDS = 33554432 + +func Xpersonality(tls *TLS, persona uint64) (r int32) { + if __ccgo_strace { + trc("tls=%v persona=%v, (%v:)", tls, persona, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_personality), Int64FromUint64(persona))))) +} + +func Xpivot_root(tls *TLS, new1 uintptr, old uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v new1=%v old=%v, (%v:)", tls, new1, old, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_pivot_root), int64(new1), int64(old))))) +} + +const PR_CAPBSET_DROP = 24 +const PR_CAPBSET_READ = 23 +const PR_CAP_AMBIENT = 47 +const PR_CAP_AMBIENT_CLEAR_ALL = 4 +const PR_CAP_AMBIENT_IS_SET = 1 +const PR_CAP_AMBIENT_LOWER = 3 +const PR_CAP_AMBIENT_RAISE = 2 +const PR_ENDIAN_BIG = 0 +const PR_ENDIAN_LITTLE = 1 +const PR_ENDIAN_PPC_LITTLE = 2 +const PR_FPEMU_NOPRINT = 1 +const PR_FPEMU_SIGFPE = 2 +const PR_FP_EXC_ASYNC = 2 +const PR_FP_EXC_DISABLED = 0 +const PR_FP_EXC_DIV = 65536 +const PR_FP_EXC_INV = 1048576 +const PR_FP_EXC_NONRECOV = 1 +const PR_FP_EXC_OVF = 131072 +const PR_FP_EXC_PRECISE = 3 +const PR_FP_EXC_RES = 524288 +const PR_FP_EXC_SW_ENABLE = 128 +const PR_FP_EXC_UND = 262144 +const PR_FP_MODE_FR = 1 +const PR_FP_MODE_FRE = 2 +const PR_GET_CHILD_SUBREAPER = 37 +const PR_GET_DUMPABLE = 3 +const PR_GET_ENDIAN = 19 +const PR_GET_FPEMU = 9 +const PR_GET_FPEXC = 11 +const PR_GET_FP_MODE = 46 +const PR_GET_IO_FLUSHER = 58 +const PR_GET_KEEPCAPS = 7 +const PR_GET_NAME = 16 +const PR_GET_NO_NEW_PRIVS = 39 +const PR_GET_PDEATHSIG = 2 +const PR_GET_SECCOMP = 21 +const PR_GET_SECUREBITS = 27 +const PR_GET_SPECULATION_CTRL = 52 +const PR_GET_TAGGED_ADDR_CTRL = 56 +const PR_GET_THP_DISABLE = 42 +const PR_GET_TID_ADDRESS = 40 +const PR_GET_TIMERSLACK = 30 +const PR_GET_TIMING = 13 +const PR_GET_TSC = 25 +const PR_GET_UNALIGN = 5 +const PR_MCE_KILL = 33 +const PR_MCE_KILL_CLEAR = 0 +const PR_MCE_KILL_DEFAULT = 2 +const PR_MCE_KILL_EARLY = 1 +const PR_MCE_KILL_GET = 34 +const PR_MCE_KILL_LATE = 0 +const PR_MCE_KILL_SET = 1 +const PR_MPX_DISABLE_MANAGEMENT = 44 +const PR_MPX_ENABLE_MANAGEMENT = 43 +const PR_MTE_TAG_MASK = 524280 +const PR_MTE_TAG_SHIFT = 3 +const PR_MTE_TCF_ASYNC = 4 +const PR_MTE_TCF_MASK = 6 +const PR_MTE_TCF_NONE = 0 +const PR_MTE_TCF_SHIFT = 1 +const PR_MTE_TCF_SYNC = 2 +const PR_PAC_APDAKEY = 4 +const PR_PAC_APDBKEY = 8 +const PR_PAC_APGAKEY = 16 +const PR_PAC_APIAKEY = 1 +const PR_PAC_APIBKEY = 2 +const PR_PAC_GET_ENABLED_KEYS = 61 +const PR_PAC_RESET_KEYS = 54 +const PR_PAC_SET_ENABLED_KEYS = 60 +const PR_SET_CHILD_SUBREAPER = 36 +const PR_SET_DUMPABLE = 4 +const PR_SET_ENDIAN = 20 +const PR_SET_FPEMU = 10 +const PR_SET_FPEXC = 12 +const PR_SET_FP_MODE = 45 +const PR_SET_IO_FLUSHER = 57 +const PR_SET_KEEPCAPS = 8 +const PR_SET_MM = 35 +const PR_SET_MM_ARG_END = 9 +const PR_SET_MM_ARG_START = 8 +const PR_SET_MM_AUXV = 12 +const PR_SET_MM_BRK = 7 +const PR_SET_MM_END_CODE = 2 +const PR_SET_MM_END_DATA = 4 +const PR_SET_MM_ENV_END = 11 +const PR_SET_MM_ENV_START = 10 +const PR_SET_MM_EXE_FILE = 13 +const PR_SET_MM_MAP = 14 +const PR_SET_MM_MAP_SIZE = 15 +const PR_SET_MM_START_BRK = 6 +const PR_SET_MM_START_CODE = 1 +const PR_SET_MM_START_DATA = 3 +const PR_SET_MM_START_STACK = 5 +const PR_SET_NAME = 15 +const PR_SET_NO_NEW_PRIVS = 38 +const PR_SET_PDEATHSIG = 1 +const PR_SET_PTRACER = 1499557217 +const PR_SET_PTRACER_ANY = 18446744073709551615 +const PR_SET_SECCOMP = 22 +const PR_SET_SECUREBITS = 28 +const PR_SET_SPECULATION_CTRL = 53 +const PR_SET_SYSCALL_USER_DISPATCH = 59 +const PR_SET_TAGGED_ADDR_CTRL = 55 +const PR_SET_THP_DISABLE = 41 +const PR_SET_TIMERSLACK = 29 +const PR_SET_TIMING = 14 +const PR_SET_TSC = 26 +const PR_SET_UNALIGN = 6 +const PR_SPEC_DISABLE = 4 +const PR_SPEC_DISABLE_NOEXEC = 16 +const PR_SPEC_ENABLE = 2 +const PR_SPEC_FORCE_DISABLE = 8 +const PR_SPEC_INDIRECT_BRANCH = 1 +const PR_SPEC_NOT_AFFECTED = 0 +const PR_SPEC_PRCTL = 1 +const PR_SPEC_STORE_BYPASS = 0 +const PR_SVE_GET_VL = 51 +const PR_SVE_SET_VL = 50 +const PR_SVE_SET_VL_ONEXEC = 262144 +const PR_SVE_VL_INHERIT = 131072 +const PR_SVE_VL_LEN_MASK = 65535 +const PR_SYS_DISPATCH_OFF = 0 +const PR_SYS_DISPATCH_ON = 1 +const PR_TAGGED_ADDR_ENABLE = 1 +const PR_TASK_PERF_EVENTS_DISABLE = 31 +const PR_TASK_PERF_EVENTS_ENABLE = 32 +const PR_TIMING_STATISTICAL = 0 +const PR_TIMING_TIMESTAMP = 1 +const PR_TSC_ENABLE = 1 +const PR_TSC_SIGSEGV = 2 +const PR_UNALIGN_NOPRINT = 1 +const PR_UNALIGN_SIGBUS = 2 +const SYSCALL_DISPATCH_FILTER_ALLOW = 0 +const SYSCALL_DISPATCH_FILTER_BLOCK = 1 + +type Tprctl_mm_map = struct { + Fstart_code Tuint64_t + Fend_code Tuint64_t + Fstart_data Tuint64_t + Fend_data Tuint64_t + Fstart_brk Tuint64_t + Fbrk Tuint64_t + Fstart_stack Tuint64_t + Farg_start Tuint64_t + Farg_end Tuint64_t + Fenv_start Tuint64_t + Fenv_end Tuint64_t + Fauxv uintptr + Fauxv_size Tuint32_t + Fexe_fd Tuint32_t +} + +func Xprctl(tls *TLS, op int32, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v op=%v va=%v, (%v:)", tls, op, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var i int32 + var x [4]uint64 + _, _, _ = ap, i, x + ap = va + i = 0 + for { + if !(i < int32(4)) { + break + } + x[i] = VaUint64(&ap) + goto _1 + _1: + ; + i = i + 1 + } + _ = ap + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_prctl), int64(op), Int64FromUint64(x[0]), Int64FromUint64(x[int32(1)]), Int64FromUint64(x[int32(2)]), Int64FromUint64(x[int32(3)]))))) +} + +const RWF_APPEND = 16 +const RWF_DSYNC = 2 +const RWF_HIPRI = 1 +const RWF_NOWAIT = 8 +const RWF_SYNC = 4 +const UIO_MAXIOV = 1024 + +func Xpreadv2(tls *TLS, fd int32, iov uintptr, count int32, ofs Toff_t, flags int32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v iov=%v count=%v ofs=%v flags=%v, (%v:)", tls, fd, iov, count, ofs, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + if !(flags != 0) { + if ofs == int64(-int32(1)) { + return Xreadv(tls, fd, iov, count) + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_preadv), int64(fd), int64(iov), int64(count), ofs, ofs>>Int32FromInt32(32), 0))) + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_preadv2), int64(fd), int64(iov), int64(count), ofs, ofs>>Int32FromInt32(32), int64(flags)))) +} + +func Xprlimit(tls *TLS, pid Tpid_t, resource int32, new_limit uintptr, old_limit uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v pid=%v resource=%v new_limit=%v old_limit=%v, (%v:)", tls, pid, resource, new_limit, old_limit, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var r int32 + var _ /* tmp at bp+0 */ Trlimit + _ = r + if new_limit != 0 && Bool(^Uint64FromUint64(0) != ^Uint64FromUint64(0)) { + **(**Trlimit)(__ccgo_up(bp)) = **(**Trlimit)(__ccgo_up(new_limit)) + if (**(**Trlimit)(__ccgo_up(bp))).Frlim_cur >= ^Uint64FromUint64(0) { + (**(**Trlimit)(__ccgo_up(bp))).Frlim_cur = ^Uint64FromUint64(0) + } + if (**(**Trlimit)(__ccgo_up(bp))).Frlim_max >= ^Uint64FromUint64(0) { + (**(**Trlimit)(__ccgo_up(bp))).Frlim_max = ^Uint64FromUint64(0) + } + new_limit = bp + } + r = int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_prlimit64), int64(pid), int64(resource), int64(new_limit), int64(old_limit))))) + if !(r != 0) && old_limit != 0 && Bool(^Uint64FromUint64(0) != ^Uint64FromUint64(0)) { + if (*Trlimit)(unsafe.Pointer(old_limit)).Frlim_cur >= ^Uint64FromUint64(0) { + (*Trlimit)(unsafe.Pointer(old_limit)).Frlim_cur = ^Uint64FromUint64(0) + } + if (*Trlimit)(unsafe.Pointer(old_limit)).Frlim_max >= ^Uint64FromUint64(0) { + (*Trlimit)(unsafe.Pointer(old_limit)).Frlim_max = ^Uint64FromUint64(0) + } + } + return r +} + +func Xprocess_vm_writev(tls *TLS, pid Tpid_t, lvec uintptr, liovcnt uint64, rvec uintptr, riovcnt uint64, flags uint64) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v pid=%v lvec=%v liovcnt=%v rvec=%v riovcnt=%v flags=%v, (%v:)", tls, pid, lvec, liovcnt, rvec, riovcnt, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall6(tls, int64(SYS_process_vm_writev), int64(pid), int64(lvec), Int64FromUint64(liovcnt), int64(rvec), Int64FromUint64(riovcnt), Int64FromUint64(flags)))) +} + +func Xprocess_vm_readv(tls *TLS, pid Tpid_t, lvec uintptr, liovcnt uint64, rvec uintptr, riovcnt uint64, flags uint64) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v pid=%v lvec=%v liovcnt=%v rvec=%v riovcnt=%v flags=%v, (%v:)", tls, pid, lvec, liovcnt, rvec, riovcnt, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall6(tls, int64(SYS_process_vm_readv), int64(pid), int64(lvec), Int64FromUint64(liovcnt), int64(rvec), Int64FromUint64(riovcnt), Int64FromUint64(flags)))) +} + +const PTRACE_ARCH_PRCTL = 30 +const PTRACE_ATTACH = 16 +const PTRACE_CONT = 7 +const PTRACE_DETACH = 17 +const PTRACE_EVENT_CLONE = 3 +const PTRACE_EVENT_EXEC = 4 +const PTRACE_EVENT_EXIT = 6 +const PTRACE_EVENT_FORK = 1 +const PTRACE_EVENT_SECCOMP = 7 +const PTRACE_EVENT_STOP = 128 +const PTRACE_EVENT_VFORK = 2 +const PTRACE_EVENT_VFORK_DONE = 5 +const PTRACE_GETEVENTMSG = 16897 +const PTRACE_GETFPREGS = 14 +const PTRACE_GETFPXREGS = 18 +const PTRACE_GETREGS = 12 +const PTRACE_GETREGSET = 16900 +const PTRACE_GETSIGINFO = 16898 +const PTRACE_GETSIGMASK = 16906 +const PTRACE_GET_RSEQ_CONFIGURATION = 16911 +const PTRACE_GET_SYSCALL_INFO = 16910 +const PTRACE_GET_THREAD_AREA = 25 +const PTRACE_INTERRUPT = 16903 +const PTRACE_KILL = 8 +const PTRACE_LISTEN = 16904 +const PTRACE_O_EXITKILL = 1048576 +const PTRACE_O_MASK = 3145983 +const PTRACE_O_SUSPEND_SECCOMP = 2097152 +const PTRACE_O_TRACECLONE = 8 +const PTRACE_O_TRACEEXEC = 16 +const PTRACE_O_TRACEEXIT = 64 +const PTRACE_O_TRACEFORK = 2 +const PTRACE_O_TRACESECCOMP = 128 +const PTRACE_O_TRACESYSGOOD = 1 +const PTRACE_O_TRACEVFORK = 4 +const PTRACE_O_TRACEVFORKDONE = 32 +const PTRACE_PEEKDATA = 2 +const PTRACE_PEEKSIGINFO = 16905 +const PTRACE_PEEKSIGINFO_SHARED = 1 +const PTRACE_PEEKTEXT = 1 +const PTRACE_PEEKUSER = 3 +const PTRACE_POKEDATA = 5 +const PTRACE_POKETEXT = 4 +const PTRACE_POKEUSER = 6 +const PTRACE_SECCOMP_GET_FILTER = 16908 +const PTRACE_SECCOMP_GET_METADATA = 16909 +const PTRACE_SEIZE = 16902 +const PTRACE_SETFPREGS = 15 +const PTRACE_SETFPXREGS = 19 +const PTRACE_SETOPTIONS = 16896 +const PTRACE_SETREGS = 13 +const PTRACE_SETREGSET = 16901 +const PTRACE_SETSIGINFO = 16899 +const PTRACE_SETSIGMASK = 16907 +const PTRACE_SET_THREAD_AREA = 26 +const PTRACE_SINGLEBLOCK = 33 +const PTRACE_SINGLESTEP = 9 +const PTRACE_SYSCALL = 24 +const PTRACE_SYSCALL_INFO_ENTRY = 1 +const PTRACE_SYSCALL_INFO_EXIT = 2 +const PTRACE_SYSCALL_INFO_NONE = 0 +const PTRACE_SYSCALL_INFO_SECCOMP = 3 +const PTRACE_SYSEMU = 31 +const PTRACE_SYSEMU_SINGLESTEP = 32 +const PTRACE_TRACEME = 0 +const PT_ARCH_PRCTL = 30 +const PT_ATTACH = 16 +const PT_CONTINUE = 7 +const PT_DETACH = 17 +const PT_GETEVENTMSG = 16897 +const PT_GETFPREGS = 14 +const PT_GETFPXREGS = 18 +const PT_GETREGS = 12 +const PT_GETSIGINFO = 16898 +const PT_GET_THREAD_AREA = 25 +const PT_KILL = 8 +const PT_READ_D = 2 +const PT_READ_I = 1 +const PT_READ_U = 3 +const PT_SETFPREGS = 15 +const PT_SETFPXREGS = 19 +const PT_SETOPTIONS = 16896 +const PT_SETREGS = 13 +const PT_SETSIGINFO = 16899 +const PT_SET_THREAD_AREA = 26 +const PT_STEP = 9 +const PT_STEPBLOCK = 33 +const PT_SYSCALL = 24 +const PT_SYSEMU = 31 +const PT_SYSEMU_SINGLESTEP = 32 +const PT_TRACE_ME = 0 +const PT_WRITE_D = 5 +const PT_WRITE_I = 4 +const PT_WRITE_U = 6 + +type t__ptrace_peeksiginfo_args = struct { + Foff Tuint64_t + Fflags Tuint32_t + Fnr Tint32_t +} + +type t__ptrace_seccomp_metadata = struct { + Ffilter_off Tuint64_t + Fflags Tuint64_t +} + +type t__ptrace_syscall_info = struct { + Fop Tuint8_t + F__pad [3]Tuint8_t + Farch Tuint32_t + Finstruction_pointer Tuint64_t + Fstack_pointer Tuint64_t + F__ccgo5_24 struct { + Fexit [0]struct { + Frval Tint64_t + Fis_error Tuint8_t + } + Fseccomp [0]struct { + Fnr Tuint64_t + Fargs [6]Tuint64_t + Fret_data Tuint32_t + } + Fentry struct { + Fnr Tuint64_t + Fargs [6]Tuint64_t + } + F__ccgo_pad3 [8]byte + } +} + +type t__ptrace_rseq_configuration = struct { + Frseq_abi_pointer Tuint64_t + Frseq_abi_size Tuint32_t + Fsignature Tuint32_t + Fflags Tuint32_t + Fpad Tuint32_t +} + +func Xptrace(tls *TLS, req int32, va uintptr) (r int64) { + if __ccgo_strace { + trc("tls=%v req=%v va=%v, (%v:)", tls, req, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var addr, addr2, data uintptr + var ap Tva_list + var pid Tpid_t + var ret int64 + var _ /* result at bp+0 */ int64 + _, _, _, _, _, _ = addr, addr2, ap, data, pid, ret + addr2 = uintptr(0) + ap = va + pid = VaInt32(&ap) + addr = VaUintptr(&ap) + data = VaUintptr(&ap) + /* PTRACE_{READ,WRITE}{DATA,TEXT} (16...19) are specific to SPARC. */ + _ = ap + if Uint32FromInt32(req)-uint32(1) < uint32(3) { + data = bp + } + ret = X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_ptrace), int64(req), int64(pid), int64(addr), int64(data), int64(addr2)))) + if ret < 0 || Uint32FromInt32(req)-uint32(1) >= uint32(3) { + return ret + } + return **(**int64)(__ccgo_up(bp)) +} + +func Xpwritev2(tls *TLS, fd int32, iov uintptr, count int32, ofs Toff_t, flags int32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v iov=%v count=%v ofs=%v flags=%v, (%v:)", tls, fd, iov, count, ofs, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + if !(flags != 0) { + if ofs == int64(-int32(1)) { + return Xwritev(tls, fd, iov, count) + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_pwritev), int64(fd), int64(iov), int64(count), ofs, ofs>>Int32FromInt32(32), 0))) + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_pwritev2), int64(fd), int64(iov), int64(count), ofs, ofs>>Int32FromInt32(32), int64(flags)))) +} + +const GRPQUOTA = 1 +const IIF_ALL = 7 +const IIF_BGRACE = 1 +const IIF_FLAGS = 4 +const IIF_IGRACE = 2 +const MAXQUOTAS = 2 +const MAX_DQ_TIME = 604800 +const MAX_IQ_TIME = 604800 +const NR_DQHASH = 43 +const NR_DQUOTS = 256 +const QFMT_OCFS2 = 3 +const QFMT_VFS_OLD = 1 +const QFMT_VFS_V0 = 2 +const QFMT_VFS_V1 = 4 +const QIF_ALL = 63 +const QIF_BLIMITS = 1 +const QIF_BTIME = 16 +const QIF_ILIMITS = 4 +const QIF_INODES = 8 +const QIF_ITIME = 32 +const QIF_LIMITS = 5 +const QIF_SPACE = 2 +const QIF_TIMES = 48 +const QIF_USAGE = 10 +const QUOTAFILENAME = "quota" +const QUOTAGROUP = "staff" +const Q_GETFMT = 8388612 +const Q_GETINFO = 8388613 +const Q_GETQUOTA = 8388615 +const Q_QUOTAOFF = 8388611 +const Q_QUOTAON = 8388610 +const Q_SETINFO = 8388614 +const Q_SETQUOTA = 8388616 +const Q_SYNC = 8388609 +const SUBCMDMASK = 255 +const SUBCMDSHIFT = 8 +const USRQUOTA = 0 +const _LINUX_QUOTA_VERSION = 2 + +type Tdqblk = struct { + Fdqb_bhardlimit Tuint64_t + Fdqb_bsoftlimit Tuint64_t + Fdqb_curspace Tuint64_t + Fdqb_ihardlimit Tuint64_t + Fdqb_isoftlimit Tuint64_t + Fdqb_curinodes Tuint64_t + Fdqb_btime Tuint64_t + Fdqb_itime Tuint64_t + Fdqb_valid Tuint32_t +} + +type Tdqinfo = struct { + Fdqi_bgrace Tuint64_t + Fdqi_igrace Tuint64_t + Fdqi_flags Tuint32_t + Fdqi_valid Tuint32_t +} + +func Xquotactl(tls *TLS, cmd int32, special uintptr, id int32, addr uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v cmd=%v special=%v id=%v addr=%v, (%v:)", tls, cmd, special, id, addr, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_quotactl), int64(cmd), int64(special), int64(id), int64(addr))))) +} + +func Xreadahead(tls *TLS, fd int32, pos Toff_t, len1 Tsize_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v pos=%v len1=%v, (%v:)", tls, fd, pos, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_readahead), int64(fd), pos, Int64FromUint64(len1)))) +} + +const RB_AUTOBOOT = 19088743 +const RB_DISABLE_CAD = 0 +const RB_ENABLE_CAD = 2309737967 +const RB_HALT_SYSTEM = 3454992675 +const RB_KEXEC = 1163412803 +const RB_POWER_OFF = 1126301404 +const RB_SW_SUSPEND = 3489725666 + +func Xreboot(tls *TLS, type1 int32) (r int32) { + if __ccgo_strace { + trc("tls=%v type1=%v, (%v:)", tls, type1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_reboot), Int64FromUint32(Uint32FromUint32(0xfee1dead)), int64(Int32FromInt32(672274793)), int64(type1))))) +} + +func Xremap_file_pages(tls *TLS, addr uintptr, size Tsize_t, prot int32, pgoff Tsize_t, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v size=%v prot=%v pgoff=%v flags=%v, (%v:)", tls, addr, size, prot, pgoff, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_remap_file_pages), int64(addr), Int64FromUint64(size), int64(prot), Int64FromUint64(pgoff), int64(flags))))) +} + +func Xsbrk(tls *TLS, inc Tintptr_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v inc=%v, (%v:)", tls, inc, origin(2)) + defer func() { trc("-> %v", r) }() + } + if inc != 0 { + return uintptr(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(ENOMEM)))) + } + return uintptr(X__syscall1(tls, int64(SYS_brk), int64(Int32FromInt32(0)))) +} + +func Xsendfile(tls *TLS, out_fd int32, in_fd int32, ofs uintptr, count Tsize_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v out_fd=%v in_fd=%v ofs=%v count=%v, (%v:)", tls, out_fd, in_fd, ofs, count, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_sendfile), int64(out_fd), int64(in_fd), int64(ofs), Int64FromUint64(count)))) +} + +func Xsetfsgid(tls *TLS, gid Tgid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v gid=%v, (%v:)", tls, gid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_setfsgid), Int64FromUint32(gid))))) +} + +func Xsetfsuid(tls *TLS, uid Tuid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v uid=%v, (%v:)", tls, uid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_setfsuid), Int64FromUint32(uid))))) +} + +func Xsethostname(tls *TLS, name uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v len1=%v, (%v:)", tls, name, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_sethostname), int64(name), Int64FromUint64(len1))))) +} + +const CLONE_CHILD_CLEARTID = 2097152 +const CLONE_CHILD_SETTID = 16777216 +const CLONE_DETACHED = 4194304 +const CLONE_FILES = 1024 +const CLONE_FS = 512 +const CLONE_IO = 2147483648 +const CLONE_NEWCGROUP = 33554432 +const CLONE_NEWIPC = 134217728 +const CLONE_NEWNET = 1073741824 +const CLONE_NEWNS = 131072 +const CLONE_NEWPID = 536870912 +const CLONE_NEWTIME = 128 +const CLONE_NEWUSER = 268435456 +const CLONE_NEWUTS = 67108864 +const CLONE_PARENT = 32768 +const CLONE_PARENT_SETTID = 1048576 +const CLONE_PIDFD = 4096 +const CLONE_PTRACE = 8192 +const CLONE_SETTLS = 524288 +const CLONE_SIGHAND = 2048 +const CLONE_SYSVSEM = 262144 +const CLONE_THREAD = 65536 +const CLONE_UNTRACED = 8388608 +const CLONE_VFORK = 16384 +const CLONE_VM = 256 +const CPU_SETSIZE = 1024 +const CSIGNAL = 255 + +type Tcpu_set_t = struct { + F__bits [16]uint64 +} + +func Xsetns(tls *TLS, fd int32, nstype int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v nstype=%v, (%v:)", tls, fd, nstype, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_setns), int64(fd), int64(nstype))))) +} + +const __tm_gmtoff = 0 +const __tm_zone = 0 + +type Ttm1 = struct { + Ftm_sec int32 + Ftm_min int32 + Ftm_hour int32 + Ftm_mday int32 + Ftm_mon int32 + Ftm_year int32 + Ftm_wday int32 + Ftm_yday int32 + Ftm_isdst int32 + Ftm_gmtoff int64 + Ftm_zone uintptr +} + +func Xsettimeofday(tls *TLS, tv uintptr, tz uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v tv=%v tz=%v, (%v:)", tls, tv, tz, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + if !(tv != 0) { + return 0 + } + if Uint64FromInt64((*Ttimeval)(unsafe.Pointer(tv)).Ftv_usec) >= uint64(1000000) { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL)))) + } + *(*Ttimespec)(unsafe.Pointer(bp)) = Ttimespec{ + Ftv_sec: (*Ttimeval)(unsafe.Pointer(tv)).Ftv_sec, + Ftv_nsec: (*Ttimeval)(unsafe.Pointer(tv)).Ftv_usec * int64(1000), + } + return Xclock_settime(tls, CLOCK_REALTIME, bp) +} + +const SFD_CLOEXEC = 524288 +const SFD_NONBLOCK = 2048 + +type Tsignalfd_siginfo = struct { + Fssi_signo Tuint32_t + Fssi_errno Tint32_t + Fssi_code Tint32_t + Fssi_pid Tuint32_t + Fssi_uid Tuint32_t + Fssi_fd Tint32_t + Fssi_tid Tuint32_t + Fssi_band Tuint32_t + Fssi_overrun Tuint32_t + Fssi_trapno Tuint32_t + Fssi_status Tint32_t + Fssi_int Tint32_t + Fssi_ptr Tuint64_t + Fssi_utime Tuint64_t + Fssi_stime Tuint64_t + Fssi_addr Tuint64_t + Fssi_addr_lsb Tuint16_t + F__pad2 Tuint16_t + Fssi_syscall Tint32_t + Fssi_call_addr Tuint64_t + Fssi_arch Tuint32_t + F__pad [28]Tuint8_t +} + +func Xsignalfd(tls *TLS, fd int32, sigs uintptr, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v sigs=%v flags=%v, (%v:)", tls, fd, sigs, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret int32 + _ = ret + ret = int32(X__syscall4(tls, int64(SYS_signalfd4), int64(fd), int64(sigs), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8)), int64(flags))) + if ret != -int32(ENOSYS) { + return int32(X__syscall_ret(tls, Uint64FromInt32(ret))) + } + ret = int32(X__syscall3(tls, int64(SYS_signalfd), int64(fd), int64(sigs), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8)))) + if ret >= 0 { + if flags&int32(O_CLOEXEC) != 0 { + X__syscall3(tls, int64(SYS_fcntl), int64(ret), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + } + if flags&int32(O_NONBLOCK) != 0 { + X__syscall3(tls, int64(SYS_fcntl), int64(ret), int64(Int32FromInt32(F_SETFL)), int64(Int32FromInt32(O_NONBLOCK))) + } + } + return int32(X__syscall_ret(tls, Uint64FromInt32(ret))) +} + +func Xsplice(tls *TLS, fd_in int32, off_in uintptr, fd_out int32, off_out uintptr, len1 Tsize_t, flags uint32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd_in=%v off_in=%v fd_out=%v off_out=%v len1=%v flags=%v, (%v:)", tls, fd_in, off_in, fd_out, off_out, len1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall6(tls, int64(SYS_splice), int64(fd_in), int64(off_in), int64(fd_out), int64(off_out), Int64FromUint64(len1), Int64FromUint32(flags)))) +} + +func Xstatx(tls *TLS, dirfd int32, path uintptr, flags int32, mask uint32, stx uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v dirfd=%v path=%v flags=%v mask=%v stx=%v, (%v:)", tls, dirfd, path, flags, mask, stx, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(144) + defer tls.Free(144) + var ret int32 + var _ /* st at bp+0 */ Tstat + _ = ret + ret = int32(X__syscall5(tls, int64(SYS_statx), int64(dirfd), int64(path), int64(flags), Int64FromUint32(mask), int64(stx))) + if ret != -int32(ENOSYS) { + return int32(X__syscall_ret(tls, Uint64FromInt32(ret))) + } + ret = Xfstatat(tls, dirfd, path, bp, flags) + if ret != 0 { + return ret + } + (*Tstatx)(unsafe.Pointer(stx)).Fstx_dev_major = uint32((**(**Tstat)(__ccgo_up(bp))).Fst_dev>>Int32FromInt32(31)>>Int32FromInt32(1)&Uint64FromUint32(0xfffff000) | (**(**Tstat)(__ccgo_up(bp))).Fst_dev>>Int32FromInt32(8)&Uint64FromInt32(0x00000fff)) + (*Tstatx)(unsafe.Pointer(stx)).Fstx_dev_minor = uint32((**(**Tstat)(__ccgo_up(bp))).Fst_dev>>Int32FromInt32(12)&Uint64FromUint32(0xffffff00) | (**(**Tstat)(__ccgo_up(bp))).Fst_dev&Uint64FromInt32(0x000000ff)) + (*Tstatx)(unsafe.Pointer(stx)).Fstx_ino = (**(**Tstat)(__ccgo_up(bp))).Fst_ino + (*Tstatx)(unsafe.Pointer(stx)).Fstx_mode = uint16((**(**Tstat)(__ccgo_up(bp))).Fst_mode) + (*Tstatx)(unsafe.Pointer(stx)).Fstx_nlink = uint32((**(**Tstat)(__ccgo_up(bp))).Fst_nlink) + (*Tstatx)(unsafe.Pointer(stx)).Fstx_uid = (**(**Tstat)(__ccgo_up(bp))).Fst_uid + (*Tstatx)(unsafe.Pointer(stx)).Fstx_gid = (**(**Tstat)(__ccgo_up(bp))).Fst_gid + (*Tstatx)(unsafe.Pointer(stx)).Fstx_size = Uint64FromInt64((**(**Tstat)(__ccgo_up(bp))).Fst_size) + (*Tstatx)(unsafe.Pointer(stx)).Fstx_blksize = Uint32FromInt64((**(**Tstat)(__ccgo_up(bp))).Fst_blksize) + (*Tstatx)(unsafe.Pointer(stx)).Fstx_blocks = Uint64FromInt64((**(**Tstat)(__ccgo_up(bp))).Fst_blocks) + (*Tstatx)(unsafe.Pointer(stx)).Fstx_atime.Ftv_sec = (**(**Tstat)(__ccgo_up(bp))).Fst_atim.Ftv_sec + (*Tstatx)(unsafe.Pointer(stx)).Fstx_atime.Ftv_nsec = Uint32FromInt64((**(**Tstat)(__ccgo_up(bp))).Fst_atim.Ftv_nsec) + (*Tstatx)(unsafe.Pointer(stx)).Fstx_mtime.Ftv_sec = (**(**Tstat)(__ccgo_up(bp))).Fst_mtim.Ftv_sec + (*Tstatx)(unsafe.Pointer(stx)).Fstx_mtime.Ftv_nsec = Uint32FromInt64((**(**Tstat)(__ccgo_up(bp))).Fst_mtim.Ftv_nsec) + (*Tstatx)(unsafe.Pointer(stx)).Fstx_ctime.Ftv_sec = (**(**Tstat)(__ccgo_up(bp))).Fst_ctim.Ftv_sec + (*Tstatx)(unsafe.Pointer(stx)).Fstx_ctime.Ftv_nsec = Uint32FromInt64((**(**Tstat)(__ccgo_up(bp))).Fst_ctim.Ftv_nsec) + (*Tstatx)(unsafe.Pointer(stx)).Fstx_btime = Tstatx_timestamp{} + (*Tstatx)(unsafe.Pointer(stx)).Fstx_mask = uint32(0x7ff) + return 0 +} + +func Xstime(tls *TLS, t uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v t=%v, (%v:)", tls, t, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* tv at bp+0 */ Ttimeval + **(**Ttimeval)(__ccgo_up(bp)) = Ttimeval{ + Ftv_sec: **(**Ttime_t)(__ccgo_up(t)), + } + return Xsettimeofday(tls, bp, UintptrFromInt32(0)) +} + +const SWAP_FLAG_DISCARD = 65536 +const SWAP_FLAG_PREFER = 32768 +const SWAP_FLAG_PRIO_MASK = 32767 +const SWAP_FLAG_PRIO_SHIFT = 0 + +func Xswapon(tls *TLS, path uintptr, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v flags=%v, (%v:)", tls, path, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_swapon), int64(path), int64(flags))))) +} + +func Xswapoff(tls *TLS, path uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v, (%v:)", tls, path, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_swapoff), int64(path))))) +} + +func Xsync_file_range(tls *TLS, fd int32, pos Toff_t, len1 Toff_t, flags uint32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v pos=%v len1=%v flags=%v, (%v:)", tls, fd, pos, len1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_sync_file_range), int64(fd), pos, len1, Int64FromUint32(flags))))) +} + +func Xsyncfs(tls *TLS, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_syncfs), int64(fd))))) +} + +func X__lsysinfo(tls *TLS, info uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v info=%v, (%v:)", tls, info, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_sysinfo), int64(info))))) +} + +func Xsysinfo(tls *TLS, info uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v info=%v, (%v:)", tls, info, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lsysinfo(tls, info) +} + +func Xtee(tls *TLS, src int32, dest int32, len1 Tsize_t, flags uint32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v src=%v dest=%v len1=%v flags=%v, (%v:)", tls, src, dest, len1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_tee), int64(src), int64(dest), Int64FromUint64(len1), Int64FromUint32(flags)))) +} + +const TFD_CLOEXEC = 524288 +const TFD_NONBLOCK = 2048 +const TFD_TIMER_ABSTIME = 1 +const TFD_TIMER_CANCEL_ON_SET = 2 + +func Xtimerfd_create(tls *TLS, clockid int32, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v clockid=%v flags=%v, (%v:)", tls, clockid, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_timerfd_create), int64(clockid), int64(flags))))) +} + +func Xtimerfd_settime(tls *TLS, fd int32, flags int32, new1 uintptr, old uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v flags=%v new1=%v old=%v, (%v:)", tls, fd, flags, new1, old, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_timerfd_settime), int64(fd), int64(flags), int64(new1), int64(old))))) +} + +func Xtimerfd_gettime(tls *TLS, fd int32, cur uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v cur=%v, (%v:)", tls, fd, cur, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_timerfd_gettime), int64(fd), int64(cur))))) +} + +func Xunshare(tls *TLS, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v flags=%v, (%v:)", tls, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_unshare), int64(flags))))) +} + +func Xutimes(tls *TLS, path uintptr, times uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v times=%v, (%v:)", tls, path, times, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__futimesat(tls, -int32(100), path, times) +} + +func Xvhangup(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall0(tls, int64(SYS_vhangup))))) +} + +func Xvmsplice(tls *TLS, fd int32, iov uintptr, cnt Tsize_t, flags uint32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v iov=%v cnt=%v flags=%v, (%v:)", tls, fd, iov, cnt, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_vmsplice), int64(fd), int64(iov), Int64FromUint64(cnt), Int64FromUint32(flags)))) +} + +const NSIG = 65 +const SA_NOMASK = 1073741824 +const SA_ONESHOT = 2147483648 +const SYS_SECCOMP = 1 +const SYS_USER_DISPATCH = 2 +const __ucontext = 0 + +const _REG_R8 = 0 +const _REG_R9 = 1 +const _REG_R10 = 2 +const _REG_R11 = 3 +const _REG_R12 = 4 +const _REG_R13 = 5 +const _REG_R14 = 6 +const _REG_R15 = 7 +const _REG_RDI = 8 +const _REG_RSI = 9 +const _REG_RBP = 10 +const _REG_RBX = 11 +const _REG_RDX = 12 +const _REG_RAX = 13 +const _REG_RCX = 14 +const _REG_RSP = 15 +const _REG_RIP = 16 +const _REG_EFL = 17 +const _REG_CSGSFS = 18 +const _REG_ERR = 19 +const _REG_TRAPNO = 20 +const _REG_OLDMASK = 21 +const _REG_CR2 = 22 + +type Tgreg_t = int64 + +type Tgregset_t = [23]int64 + +type Tfpregset_t = uintptr + +type T_fpstate = struct { + Fcwd uint16 + Fswd uint16 + Fftw uint16 + Ffop uint16 + Frip uint64 + Frdp uint64 + Fmxcsr uint32 + Fmxcr_mask uint32 + F_st [8]struct { + Fsignificand [4]uint16 + Fexponent uint16 + Fpadding [3]uint16 + } + F_xmm [16]struct { + Felement [4]uint32 + } + Fpadding [24]uint32 +} + +type Tsigcontext = struct { + Fr8 uint64 + Fr9 uint64 + Fr10 uint64 + Fr11 uint64 + Fr12 uint64 + Fr13 uint64 + Fr14 uint64 + Fr15 uint64 + Frdi uint64 + Frsi uint64 + Frbp uint64 + Frbx uint64 + Frdx uint64 + Frax uint64 + Frcx uint64 + Frsp uint64 + Frip uint64 + Feflags uint64 + Fcs uint16 + Fgs uint16 + Ffs uint16 + F__pad0 uint16 + Ferr uint64 + Ftrapno uint64 + Foldmask uint64 + Fcr2 uint64 + Ffpstate uintptr + F__reserved1 [8]uint64 +} + +type Tmcontext_t1 = struct { + Fgregs Tgregset_t + Ffpregs Tfpregset_t + F__reserved1 [8]uint64 +} + +type Tucontext_t1 = struct { + Fuc_flags uint64 + Fuc_link uintptr + Fuc_stack Tstack_t + Fuc_mcontext Tmcontext_t1 + Fuc_sigmask Tsigset_t + F__fpregs_mem [64]uint64 +} + +type Tucontext = Tucontext_t1 + +type Tsig_t = uintptr + +type Tsighandler_t = uintptr + +func Xwait3(tls *TLS, status uintptr, options int32, usage uintptr) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v status=%v options=%v usage=%v, (%v:)", tls, status, options, usage, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwait4(tls, -int32(1), status, options, usage) +} + +func Xwait4(tls *TLS, pid Tpid_t, status uintptr, options int32, ru uintptr) (r1 Tpid_t) { + if __ccgo_strace { + trc("tls=%v pid=%v status=%v options=%v ru=%v, (%v:)", tls, pid, status, options, ru, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var dest, v1 uintptr + var r int32 + var _ /* kru at bp+0 */ [4]int64 + _, _, _ = dest, r, v1 + if ru != 0 { + v1 = ru + 32 - uintptr(Uint64FromInt32(4)*Uint64FromInt64(8)) + } else { + v1 = uintptr(0) + } + dest = v1 + r = int32(X__syscall4(tls, int64(SYS_wait4), int64(pid), int64(status), int64(options), int64(dest))) + if r > 0 && ru != 0 && Bool(uint64(8) > uint64(8)) { + Xmemcpy(tls, bp, dest, Uint64FromInt32(4)*Uint64FromInt64(8)) + (*Trusage)(unsafe.Pointer(ru)).Fru_utime = Ttimeval{ + Ftv_sec: (**(**[4]int64)(__ccgo_up(bp)))[0], + Ftv_usec: (**(**[4]int64)(__ccgo_up(bp)))[int32(1)], + } + (*Trusage)(unsafe.Pointer(ru)).Fru_stime = Ttimeval{ + Ftv_sec: (**(**[4]int64)(__ccgo_up(bp)))[int32(2)], + Ftv_usec: (**(**[4]int64)(__ccgo_up(bp)))[int32(3)], + } + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +const XATTR_CREATE = 1 +const XATTR_REPLACE = 2 +const __UAPI_DEF_XATTR = 0 + +func Xgetxattr(tls *TLS, path uintptr, name uintptr, value uintptr, size Tsize_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v path=%v name=%v value=%v size=%v, (%v:)", tls, path, name, value, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_getxattr), int64(path), int64(name), int64(value), Int64FromUint64(size)))) +} + +func Xlgetxattr(tls *TLS, path uintptr, name uintptr, value uintptr, size Tsize_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v path=%v name=%v value=%v size=%v, (%v:)", tls, path, name, value, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_lgetxattr), int64(path), int64(name), int64(value), Int64FromUint64(size)))) +} + +func Xfgetxattr(tls *TLS, filedes int32, name uintptr, value uintptr, size Tsize_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v filedes=%v name=%v value=%v size=%v, (%v:)", tls, filedes, name, value, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_fgetxattr), int64(filedes), int64(name), int64(value), Int64FromUint64(size)))) +} + +func Xlistxattr(tls *TLS, path uintptr, list uintptr, size Tsize_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v path=%v list=%v size=%v, (%v:)", tls, path, list, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_listxattr), int64(path), int64(list), Int64FromUint64(size)))) +} + +func Xllistxattr(tls *TLS, path uintptr, list uintptr, size Tsize_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v path=%v list=%v size=%v, (%v:)", tls, path, list, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_llistxattr), int64(path), int64(list), Int64FromUint64(size)))) +} + +func Xflistxattr(tls *TLS, filedes int32, list uintptr, size Tsize_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v filedes=%v list=%v size=%v, (%v:)", tls, filedes, list, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_flistxattr), int64(filedes), int64(list), Int64FromUint64(size)))) +} + +func Xsetxattr(tls *TLS, path uintptr, name uintptr, value uintptr, size Tsize_t, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v name=%v value=%v size=%v flags=%v, (%v:)", tls, path, name, value, size, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_setxattr), int64(path), int64(name), int64(value), Int64FromUint64(size), int64(flags))))) +} + +func Xlsetxattr(tls *TLS, path uintptr, name uintptr, value uintptr, size Tsize_t, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v name=%v value=%v size=%v flags=%v, (%v:)", tls, path, name, value, size, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_lsetxattr), int64(path), int64(name), int64(value), Int64FromUint64(size), int64(flags))))) +} + +func Xfsetxattr(tls *TLS, filedes int32, name uintptr, value uintptr, size Tsize_t, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v filedes=%v name=%v value=%v size=%v flags=%v, (%v:)", tls, filedes, name, value, size, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_fsetxattr), int64(filedes), int64(name), int64(value), Int64FromUint64(size), int64(flags))))) +} + +func Xremovexattr(tls *TLS, path uintptr, name uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v name=%v, (%v:)", tls, path, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_removexattr), int64(path), int64(name))))) +} + +func Xlremovexattr(tls *TLS, path uintptr, name uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v name=%v, (%v:)", tls, path, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_lremovexattr), int64(path), int64(name))))) +} + +func Xfremovexattr(tls *TLS, fd int32, name uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v name=%v, (%v:)", tls, fd, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_fremovexattr), int64(fd), int64(name))))) +} + +func _dummy4(tls *TLS, msg uintptr, lm uintptr) (r uintptr) { + return msg +} + +func X__lctrans(tls *TLS, msg uintptr, lm uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v msg=%v lm=%v, (%v:)", tls, msg, lm, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lctrans_impl(tls, msg, lm) +} + +func X__lctrans_cur(tls *TLS, msg uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v msg=%v, (%v:)", tls, msg, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lctrans_impl(tls, msg, **(**uintptr)(__ccgo_up((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale + 5*8))) +} + +func _swapc(tls *TLS, x Tuint32_t, c int32) (r Tuint32_t) { + var v1 uint32 + _ = v1 + if c != 0 { + v1 = x>>int32(24) | x>>int32(8)&uint32(0xff00) | x< %v", r) }() + } + var b, n, o, ol, os, t, tl, ts Tuint32_t + var mo uintptr + var sign, sw int32 + _, _, _, _, _, _, _, _, _, _, _ = b, mo, n, o, ol, os, sign, sw, t, tl, ts + mo = p + sw = Int32FromUint32(**(**Tuint32_t)(__ccgo_up(mo)) - uint32(0x950412de)) + b = uint32(0) + n = _swapc(tls, **(**Tuint32_t)(__ccgo_up(mo + 2*4)), sw) + o = _swapc(tls, **(**Tuint32_t)(__ccgo_up(mo + 3*4)), sw) + t = _swapc(tls, **(**Tuint32_t)(__ccgo_up(mo + 4*4)), sw) + if uint64(n) >= size/uint64(4) || uint64(o) >= size-uint64(uint32(4)*n) || uint64(t) >= size-uint64(uint32(4)*n) || (o|t)%uint32(4) != 0 { + return uintptr(0) + } + o = o / uint32(4) + t = t / uint32(4) + for { + ol = _swapc(tls, **(**Tuint32_t)(__ccgo_up(mo + uintptr(o+uint32(2)*(b+n/uint32(2)))*4)), sw) + os = _swapc(tls, **(**Tuint32_t)(__ccgo_up(mo + uintptr(o+uint32(2)*(b+n/uint32(2))+uint32(1))*4)), sw) + if uint64(os) >= size || uint64(ol) >= size-uint64(os) || **(**int8)(__ccgo_up(p + uintptr(os+ol))) != 0 { + return uintptr(0) + } + sign = Xstrcmp(tls, s, p+uintptr(os)) + if !(sign != 0) { + tl = _swapc(tls, **(**Tuint32_t)(__ccgo_up(mo + uintptr(t+uint32(2)*(b+n/uint32(2)))*4)), sw) + ts = _swapc(tls, **(**Tuint32_t)(__ccgo_up(mo + uintptr(t+uint32(2)*(b+n/uint32(2))+uint32(1))*4)), sw) + if uint64(ts) >= size || uint64(tl) >= size-uint64(ts) || **(**int8)(__ccgo_up(p + uintptr(ts+tl))) != 0 { + return uintptr(0) + } + return p + uintptr(ts) + } else { + if n == uint32(1) { + return uintptr(0) + } else { + if sign < 0 { + n = n / uint32(2) + } else { + b = b + n/uint32(2) + n = n - n/uint32(2) + } + } + } + goto _1 + _1: + } + return uintptr(0) +} + +const __USE_GNU_GETTEXT = 1 + +func Xbind_textdomain_codeset(tls *TLS, domainname uintptr, codeset uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v domainname=%v codeset=%v, (%v:)", tls, domainname, codeset, origin(2)) + defer func() { trc("-> %v", r) }() + } + if codeset != 0 && Xstrcasecmp(tls, codeset, __ccgo_ts+388) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + } + return UintptrFromInt32(0) +} + +var _empty_mo = [5]Tuint32_t{ + 0: uint32(0x950412de), + 2: Uint32FromInt32(-Int32FromInt32(1)), + 3: Uint32FromInt32(-Int32FromInt32(1)), + 4: Uint32FromInt32(-Int32FromInt32(1)), +} + +const NL_CAT_LOCALE = 1 +const NL_SETD = 1 + +type Tnl_item = int32 + +type Tnl_catd = uintptr + +func Xcatclose(tls *TLS, catd Tnl_catd) (r int32) { + if __ccgo_strace { + trc("tls=%v catd=%v, (%v:)", tls, catd, origin(2)) + defer func() { trc("-> %v", r) }() + } + var map1 uintptr + var v1, v2 Tuint32_t + _, _, _ = map1, v1, v2 + map1 = catd + v1 = **(**Tuint32_t)(__ccgo_up(map1 + UintptrFromInt32(8))) + v2 = v1>>int32(24) | v1>>int32(8)&uint32(0xff00) | v1<>int32(24) | v1>>int32(8)&uint32(0xff00) | v1<>int32(24) | v4>>int32(8)&uint32(0xff00) | v4< y { + v8 = int32(1) + } else { + v8 = 0 + } + v7 = v8 + } + return v7 +} + +func Xcatgets(tls *TLS, catd Tnl_catd, set_id int32, msg_id int32, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v catd=%v set_id=%v msg_id=%v s=%v, (%v:)", tls, catd, set_id, msg_id, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var map1, msg, msgs, set, sets, strings uintptr + var nmsgs, nsets, v1, v10, v11, v13, v14, v2, v4, v5, v7, v8 Tuint32_t + var _ /* msg_id_be at bp+4 */ Tuint32_t + var _ /* set_id_be at bp+0 */ Tuint32_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = map1, msg, msgs, nmsgs, nsets, set, sets, strings, v1, v10, v11, v13, v14, v2, v4, v5, v7, v8 + map1 = catd + v1 = **(**Tuint32_t)(__ccgo_up(map1 + UintptrFromInt32(4))) + v2 = v1>>int32(24) | v1>>int32(8)&uint32(0xff00) | v1<>int32(24) | v4>>int32(8)&uint32(0xff00) | v4<>int32(24) | v7>>int32(8)&uint32(0xff00) | v7<>int32(24) | v10>>int32(8)&uint32(0xff00) | v10<>int32(24) | v13>>int32(8)&uint32(0xff00) | v13<>int32(24) | v1>>int32(8)&uint32(0xff00) | v1<>int32(24) | v4>>int32(8)&uint32(0xff00) | v4<>int32(24) | v1>>int32(8)&uint32(0xff00) | v1<>int32(24) | v1>>int32(8)&uint32(0xff00) | v1<>int32(24) | v5>>int32(8)&uint32(0xff00) | v5< %v", r) }() + } + bp := tls.Alloc(4096) + defer tls.Free(4096) + var catd Tnl_catd + var i, l Tsize_t + var lang, p, path, v, z, v1 uintptr + var v2 bool + var _ /* buf at bp+0 */ [4096]int8 + _, _, _, _, _, _, _, _, _, _ = catd, i, l, lang, p, path, v, z, v1, v2 + if Xstrchr(tls, name, int32('/')) != 0 { + return _do_catopen(tls, name) + } + if v2 = X__libc.Fsecure != 0; !v2 { + v1 = Xgetenv(tls, __ccgo_ts+394) + path = v1 + } + if v2 || !(v1 != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOENT) + return uintptr(-Int32FromInt32(1)) + } + if oflag != 0 { + v1 = Xnl_langinfo(tls, Int32FromInt32(LC_MESSAGES)<= uint64(4096)-i { + break + } + Xmemcpy(tls, bp+uintptr(i), v, l) + i = i + l + goto _5 + _5: + ; + p = p + 1 + } + if !(**(**int8)(__ccgo_up(z)) != 0) && (p < z || !(i != 0)) { + break + } + if p < z { + goto _4 + } + if **(**int8)(__ccgo_up(z)) != 0 { + z = z + 1 + } + (**(**[4096]int8)(__ccgo_up(bp)))[i] = 0 + /* Leading : or :: in NLSPATH is same as %N */ + if i != 0 { + v1 = bp + } else { + v1 = name + } + catd = _do_catopen(tls, v1) + if catd != uintptr(-Int32FromInt32(1)) { + return catd + } + goto _4 + _4: + ; + p = z + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOENT) + return uintptr(-Int32FromInt32(1)) +} + +const calloc = 0 +const free = 0 +const malloc = 0 +const realloc = 0 + +type Tbinding = struct { + Fnext uintptr + Fdirlen int32 + Factive int32 + Fdomainname uintptr + Fdirname uintptr +} + +var _bindings uintptr + +func _gettextdir(tls *TLS, domainname uintptr, dirlen uintptr) (r uintptr) { + var p uintptr + _ = p + p = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_bindings))) + for { + if !(p != 0) { + break + } + if !(Xstrcmp(tls, (*Tbinding)(unsafe.Pointer(p)).Fdomainname, domainname) != 0) && AtomicLoadPInt32(p+12) != 0 { + **(**Tsize_t)(__ccgo_up(dirlen)) = Uint64FromInt32((*Tbinding)(unsafe.Pointer(p)).Fdirlen) + return (*Tbinding)(unsafe.Pointer(p)).Fdirname + } + goto _1 + _1: + ; + p = (*Tbinding)(unsafe.Pointer(p)).Fnext + } + return uintptr(0) +} + +var _lock1 [1]int32 + +func Xbindtextdomain(tls *TLS, domainname uintptr, dirname uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v domainname=%v dirname=%v, (%v:)", tls, domainname, dirname, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var dirlen, domlen Tsize_t + var p2, q, v2 uintptr + _, _, _, _, _ = dirlen, domlen, p2, q, v2 + if !(domainname != 0) { + return uintptr(0) + } + if !(dirname != 0) { + *(*Tsize_t)(unsafe.Pointer(bp)) = uint64(0) + return _gettextdir(tls, domainname, bp) + } + domlen = Xstrnlen(tls, domainname, Uint64FromInt32(Int32FromInt32(NAME_MAX)+Int32FromInt32(1))) + dirlen = Xstrnlen(tls, dirname, uint64(PATH_MAX)) + if domlen > uint64(NAME_MAX) || dirlen >= uint64(PATH_MAX) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(0) + } + ___lock(tls, uintptr(unsafe.Pointer(&_lock1))) + p2 = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_bindings))) + for { + if !(p2 != 0) { + break + } + if !(Xstrcmp(tls, (*Tbinding)(unsafe.Pointer(p2)).Fdomainname, domainname) != 0) && !(Xstrcmp(tls, (*Tbinding)(unsafe.Pointer(p2)).Fdirname, dirname) != 0) { + break + } + goto _1 + _1: + ; + p2 = (*Tbinding)(unsafe.Pointer(p2)).Fnext + } + if !(p2 != 0) { + p2 = Xcalloc(tls, uint64(32)+domlen+dirlen+uint64(2), uint64(1)) + if !(p2 != 0) { + ___unlock(tls, uintptr(unsafe.Pointer(&_lock1))) + return uintptr(0) + } + (*Tbinding)(unsafe.Pointer(p2)).Fnext = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_bindings))) + (*Tbinding)(unsafe.Pointer(p2)).Fdirlen = Int32FromUint64(dirlen) + (*Tbinding)(unsafe.Pointer(p2)).Fdomainname = p2 + 32 + (*Tbinding)(unsafe.Pointer(p2)).Fdirname = p2 + 32 + uintptr(domlen) + uintptr(1) + Xmemcpy(tls, (*Tbinding)(unsafe.Pointer(p2)).Fdomainname, domainname, domlen+uint64(1)) + Xmemcpy(tls, (*Tbinding)(unsafe.Pointer(p2)).Fdirname, dirname, dirlen+uint64(1)) + v2 = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_bindings))) + // __asm__( "lock ; cmpxchg %3, %1" + // + // : "=a"(t), "=m"(*(void *volatile *)p) + // : "a"(t), "r"(s) : "memory" ); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 13, __ccgo_ts+416) + _ = v2 + goto _3 + _3: + } + // __asm__ __volatile__( + // + // "mov %1, %0 ; lock ; orl $0,(%%rsp)" + // : "=m"(*p) : "r"(x) : "memory" ); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 88, __ccgo_ts+416) + q = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_bindings))) + for { + if !(q != 0) { + break + } + if !(Xstrcmp(tls, (*Tbinding)(unsafe.Pointer(q)).Fdomainname, domainname) != 0) && q != p2 { + // __asm__ __volatile__( + // + // "mov %1, %0 ; lock ; orl $0,(%%rsp)" + // : "=m"(*p) : "r"(x) : "memory" ); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 88, __ccgo_ts+416) + } + goto _4 + _4: + ; + q = (*Tbinding)(unsafe.Pointer(q)).Fnext + } + ___unlock(tls, uintptr(unsafe.Pointer(&_lock1))) + return (*Tbinding)(unsafe.Pointer(p2)).Fdirname +} + +var _catnames = [6][12]int8{ + 0: {'L', 'C', '_', 'C', 'T', 'Y', 'P', 'E'}, + 1: {'L', 'C', '_', 'N', 'U', 'M', 'E', 'R', 'I', 'C'}, + 2: {'L', 'C', '_', 'T', 'I', 'M', 'E'}, + 3: {'L', 'C', '_', 'C', 'O', 'L', 'L', 'A', 'T', 'E'}, + 4: {'L', 'C', '_', 'M', 'O', 'N', 'E', 'T', 'A', 'R', 'Y'}, + 5: {'L', 'C', '_', 'M', 'E', 'S', 'S', 'A', 'G', 'E', 'S'}, +} + +var _catlens = [6]int8{ + 0: int8(8), + 1: int8(10), + 2: int8(7), + 3: int8(10), + 4: int8(11), + 5: int8(11), +} + +type Tmsgcat = struct { + Fnext uintptr + Fmap1 uintptr + Fmap_size Tsize_t + Fplural_rule uintptr + Fnplurals int32 + Fbinding uintptr + Flm uintptr + Fcat int32 +} + +func _dummy_gettextdomain(tls *TLS) (r uintptr) { + return __ccgo_ts + 431 +} + +func Xdcngettext(tls *TLS, domainname uintptr, msgid1 uintptr, msgid2 uintptr, n uint64, category int32) (r1 uintptr) { + if __ccgo_strace { + trc("tls=%v domainname=%v msgid1=%v msgid2=%v n=%v category=%v, (%v:)", tls, domainname, msgid1, msgid2, n, category, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(80) + defer tls.Free(80) + var alt_modlen, catlen, dirlen, domlen, l, loclen, modlen, rem, v5 Tsize_t + var catname, csp, dirname, lm, loc, locname, locp, map1, modname, name, old_cats, p1, q, r, rule, trans, v3, v8 uintptr + var np, plural, v21 uint64 + var old_errno, v11, v12 int32 + var v6 t__predefined_size_t + var _ /* map_size at bp+0 */ Tsize_t + var _ /* z at bp+8 */ uintptr + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = alt_modlen, catlen, catname, csp, dirlen, dirname, domlen, l, lm, loc, loclen, locname, locp, map1, modlen, modname, name, np, old_cats, old_errno, p1, plural, q, r, rem, rule, trans, v11, v12, v21, v3, v5, v6, v8 + defer func() { Xrealloc(tls, name, 0) }() + loc = (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale + old_errno = **(**int32)(__ccgo_up(X__errno_location(tls))) + /* match gnu gettext behaviour */ + if !(msgid1 != 0) { + goto notrans + } + if Uint32FromInt32(category) >= uint32(LC_ALL) { + goto notrans + } + if !(domainname != 0) { + domainname = X__gettextdomain(tls) + } + domlen = Xstrnlen(tls, domainname, Uint64FromInt32(Int32FromInt32(NAME_MAX)+Int32FromInt32(1))) + if domlen > uint64(NAME_MAX) { + goto notrans + } + q = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_bindings))) + for { + if !(q != 0) { + break + } + if !(Xstrcmp(tls, (*Tbinding)(unsafe.Pointer(q)).Fdomainname, domainname) != 0) && AtomicLoadPInt32(q+12) != 0 { + break + } + goto _1 + _1: + ; + q = (*Tbinding)(unsafe.Pointer(q)).Fnext + } + if !(q != 0) { + goto notrans + } + lm = **(**uintptr)(__ccgo_up(loc + uintptr(category)*8)) + if !!(lm != 0) { + goto _2 + } + goto notrans +notrans: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = old_errno + if n == uint64(1) { + v3 = msgid1 + } else { + v3 = msgid2 + } + return v3 +_2: + ; + p1 = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_cats))) + for { + if !(p1 != 0) { + break + } + if (*Tmsgcat)(unsafe.Pointer(p1)).Fbinding == q && (*Tmsgcat)(unsafe.Pointer(p1)).Flm == lm && (*Tmsgcat)(unsafe.Pointer(p1)).Fcat == category { + break + } + goto _4 + _4: + ; + p1 = (*Tmsgcat)(unsafe.Pointer(p1)).Fnext + } + if !(p1 != 0) { + dirname = (*Tbinding)(unsafe.Pointer(q)).Fdirname + locname = lm + 16 + catname = uintptr(unsafe.Pointer(&_catnames)) + uintptr(category)*12 + dirlen = Uint64FromInt32((*Tbinding)(unsafe.Pointer(q)).Fdirlen) + loclen = _strlen(tls, locname) + catlen = Uint64FromInt8(_catlens[category]) + /* Logically split @mod suffix from locale name. */ + modname = Xmemchr(tls, locname, int32('@'), loclen) + if !(modname != 0) { + modname = locname + uintptr(loclen) + } + v5 = loclen - Uint64FromInt64(int64(modname)-int64(locname)) + modlen = v5 + alt_modlen = v5 + loclen = Uint64FromInt64(int64(modname) - int64(locname)) + /* Drop .charset identifier; it is not used. */ + csp = Xmemchr(tls, locname, int32('.'), loclen) + if csp != 0 { + loclen = Uint64FromInt64(int64(csp) - int64(locname)) + } + v6 = dirlen + uint64(1) + loclen + modlen + uint64(1) + catlen + uint64(1) + domlen + uint64(3) + uint64(1) + name = Xrealloc(tls, name, v6) + for { + Xsnprintf(tls, name, v6, __ccgo_ts+440, VaList(bp+24, dirname, Int32FromUint64(loclen), locname, Int32FromUint64(alt_modlen), modname, catname, domainname)) + v3 = X__map_file(tls, name, bp) + map1 = v3 + if v3 != 0 { + break + } + /* Try dropping @mod, _YY, then both. */ + if alt_modlen != 0 { + alt_modlen = uint64(0) + } else { + v3 = Xmemchr(tls, locname, int32('_'), loclen) + locp = v3 + if v3 != 0 { + loclen = Uint64FromInt64(int64(locp) - int64(locname)) + alt_modlen = modlen + } else { + break + } + } + goto _7 + _7: + } + if !(map1 != 0) { + goto notrans + } + p1 = Xcalloc(tls, uint64(64), uint64(1)) + if !(p1 != 0) { + X__munmap(tls, map1, **(**Tsize_t)(__ccgo_up(bp))) + goto notrans + } + (*Tmsgcat)(unsafe.Pointer(p1)).Fcat = category + (*Tmsgcat)(unsafe.Pointer(p1)).Fbinding = q + (*Tmsgcat)(unsafe.Pointer(p1)).Flm = lm + (*Tmsgcat)(unsafe.Pointer(p1)).Fmap1 = map1 + (*Tmsgcat)(unsafe.Pointer(p1)).Fmap_size = **(**Tsize_t)(__ccgo_up(bp)) + rule = __ccgo_ts + 462 + np = uint64(2) + r = X__mo_lookup(tls, (*Tmsgcat)(unsafe.Pointer(p1)).Fmap1, (*Tmsgcat)(unsafe.Pointer(p1)).Fmap_size, __ccgo_ts) + for r != 0 && Xstrncmp(tls, r, __ccgo_ts+468, uint64(13)) != 0 { + **(**uintptr)(__ccgo_up(bp + 8)) = Xstrchr(tls, r, int32('\n')) + if **(**uintptr)(__ccgo_up(bp + 8)) != 0 { + v3 = **(**uintptr)(__ccgo_up(bp + 8)) + uintptr(1) + } else { + v3 = uintptr(0) + } + r = v3 + } + if r != 0 { + r = r + uintptr(13) + for { + v11 = int32(**(**int8)(__ccgo_up(r))) + v12 = BoolInt32(v11 == int32(' ') || Uint32FromInt32(v11)-uint32('\t') < uint32(5)) + goto _13 + _13: + if !(v12 != 0) { + break + } + r = r + 1 + } + if !(Xstrncmp(tls, r, __ccgo_ts+482, uint64(9)) != 0) { + np = Xstrtoul(tls, r+uintptr(9), bp+8, int32(10)) + r = **(**uintptr)(__ccgo_up(bp + 8)) + } + for **(**int8)(__ccgo_up(r)) != 0 && int32(**(**int8)(__ccgo_up(r))) != int32(';') { + r = r + 1 + } + if **(**int8)(__ccgo_up(r)) != 0 { + r = r + 1 + for { + v11 = int32(**(**int8)(__ccgo_up(r))) + v12 = BoolInt32(v11 == int32(' ') || Uint32FromInt32(v11)-uint32('\t') < uint32(5)) + goto _16 + _16: + if !(v12 != 0) { + break + } + r = r + 1 + } + if !(Xstrncmp(tls, r, __ccgo_ts+492, uint64(7)) != 0) { + rule = r + uintptr(7) + } + } + } + (*Tmsgcat)(unsafe.Pointer(p1)).Fnplurals = Int32FromUint64(np) + (*Tmsgcat)(unsafe.Pointer(p1)).Fplural_rule = rule + for { + old_cats = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_cats))) + (*Tmsgcat)(unsafe.Pointer(p1)).Fnext = old_cats + goto _20 + _20: + ; + v3 = old_cats + // __asm__( "lock ; cmpxchg %3, %1" + // + // : "=a"(t), "=m"(*(void *volatile *)p) + // : "a"(t), "r"(s) : "memory" ); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 13, __ccgo_ts+500) + v8 = v3 + goto _19 + _19: + ; + if !(v8 != old_cats) { + break + } + } + } + trans = X__mo_lookup(tls, (*Tmsgcat)(unsafe.Pointer(p1)).Fmap1, (*Tmsgcat)(unsafe.Pointer(p1)).Fmap_size, msgid1) + if !(trans != 0) { + goto notrans + } + /* Non-plural-processing gettext forms pass a null pointer as + * msgid2 to request that dcngettext suppress plural processing. */ + if msgid2 != 0 && (*Tmsgcat)(unsafe.Pointer(p1)).Fnplurals != 0 { + plural = X__pleval(tls, (*Tmsgcat)(unsafe.Pointer(p1)).Fplural_rule, n) + if plural > Uint64FromInt32((*Tmsgcat)(unsafe.Pointer(p1)).Fnplurals) { + goto notrans + } + for { + v21 = plural + plural = plural - 1 + if !(v21 != 0) { + break + } + rem = (*Tmsgcat)(unsafe.Pointer(p1)).Fmap_size - Uint64FromInt64(int64(trans)-int64((*Tmsgcat)(unsafe.Pointer(p1)).Fmap1)) + l = Xstrnlen(tls, trans, rem) + if l+uint64(1) >= rem { + goto notrans + } + trans = trans + uintptr(l+uint64(1)) + } + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = old_errno + return trans +} + +var _cats uintptr + +func Xdcgettext(tls *TLS, domainname uintptr, msgid uintptr, category int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v domainname=%v msgid=%v category=%v, (%v:)", tls, domainname, msgid, category, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xdcngettext(tls, domainname, msgid, uintptr(0), uint64(1), category) +} + +func Xdngettext(tls *TLS, domainname uintptr, msgid1 uintptr, msgid2 uintptr, n uint64) (r uintptr) { + if __ccgo_strace { + trc("tls=%v domainname=%v msgid1=%v msgid2=%v n=%v, (%v:)", tls, domainname, msgid1, msgid2, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xdcngettext(tls, domainname, msgid1, msgid2, n, int32(LC_MESSAGES)) +} + +func Xdgettext(tls *TLS, domainname uintptr, msgid uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v domainname=%v msgid=%v, (%v:)", tls, domainname, msgid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xdcngettext(tls, domainname, msgid, uintptr(0), uint64(1), int32(LC_MESSAGES)) +} + +func X__duplocale(tls *TLS, old Tlocale_t) (r Tlocale_t) { + if __ccgo_strace { + trc("tls=%v old=%v, (%v:)", tls, old, origin(2)) + defer func() { trc("-> %v", r) }() + } + var new1 Tlocale_t + _ = new1 + new1 = Xmalloc(tls, uint64(48)) + if !(new1 != 0) { + return uintptr(0) + } + if old == uintptr(-Int32FromInt32(1)) { + old = uintptr(unsafe.Pointer(&X__libc)) + 56 + } + **(**t__locale_struct)(__ccgo_up(new1)) = **(**t__locale_struct)(__ccgo_up(old)) + return new1 +} + +func Xduplocale(tls *TLS, old Tlocale_t) (r Tlocale_t) { + if __ccgo_strace { + trc("tls=%v old=%v, (%v:)", tls, old, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__duplocale(tls, old) +} + +func Xfreelocale(tls *TLS, l Tlocale_t) { + if __ccgo_strace { + trc("tls=%v l=%v, (%v:)", tls, l, origin(2)) + } + if X__loc_is_allocated(tls, l) != 0 { + Xfree(tls, l) + } +} + +func X__freelocale(tls *TLS, l Tlocale_t) { + if __ccgo_strace { + trc("tls=%v l=%v, (%v:)", tls, l, origin(2)) + } + Xfreelocale(tls, l) +} + +const BIG5 = 224 +const EUC_JP = 208 +const EUC_KR = 232 +const GB18030 = 216 +const GB2312 = 218 +const GBK = 217 +const ISO2022_JP = 210 +const SHIFT_JIS = 209 +const UCS2 = 204 +const UCS2BE = 196 +const UCS2LE = 197 +const US_ASCII = 199 +const UTF_16 = 202 +const UTF_16BE = 194 +const UTF_16LE = 193 +const UTF_32 = 203 +const UTF_32BE = 192 +const UTF_32LE = 195 +const UTF_8 = 200 +const WCHAR_T = 198 +const mbrtowc_utf8 = 0 +const wctomb_utf8 = 0 + +type Ticonv_t = uintptr + +/* Definitions of charmaps. Each charmap consists of: + * 1. Empty-string-terminated list of null-terminated aliases. + * 2. Special type code or number of elided quads of entries. + * 3. Character table (size determined by field 2), consisting + * of 5 bytes for every 4 characters, interpreted as 10-bit + * indices into the legacy_chars table. */ + +var _charmaps = [4907]uint8{'u', 't', 'f', '8', 0, 'c', 'h', 'a', 'r', 0, 0, 200, 'w', 'c', 'h', 'a', 'r', 't', 0, 0, 198, 'u', 'c', 's', '2', 'b', 'e', 0, 0, 196, 'u', 'c', 's', '2', 'l', 'e', 0, 0, 197, 'u', 't', 'f', '1', '6', 'b', 'e', 0, 0, 194, 'u', 't', 'f', '1', '6', 'l', 'e', 0, 0, 193, 'u', 'c', 's', '4', 'b', 'e', 0, 'u', 't', 'f', '3', '2', 'b', 'e', 0, 0, 192, 'u', 'c', 's', '4', 'l', 'e', 0, 'u', 't', 'f', '3', '2', 'l', 'e', 0, 0, 195, 'a', 's', 'c', 'i', 'i', 0, 'u', 's', 'a', 's', 'c', 'i', 'i', 0, 'i', 's', 'o', '6', '4', '6', 0, 'i', 's', 'o', '6', '4', '6', 'u', 's', 0, 0, 199, 'u', 't', 'f', '1', '6', 0, 0, 202, 'u', 'c', 's', '4', 0, 'u', 't', 'f', '3', '2', 0, 0, 203, 'u', 'c', 's', '2', 0, 0, 204, 'e', 'u', 'c', 'j', 'p', 0, 0, 208, 's', 'h', 'i', 'f', 't', 'j', 'i', 's', 0, 's', 'j', 'i', 's', 0, 'c', 'p', '9', '3', '2', 0, 0, 209, 'i', 's', 'o', '2', '0', '2', '2', 'j', 'p', 0, 0, 210, 'g', 'b', '1', '8', '0', '3', '0', 0, 0, 216, 'g', 'b', 'k', 0, 'c', 'p', '9', '3', '6', 0, 'w', 'i', 'n', 'd', 'o', 'w', 's', '9', '3', '6', 0, 0, 217, 'g', 'b', '2', '3', '1', '2', 0, 0, 218, 'b', 'i', 'g', '5', 0, 'b', 'i', 'g', 'f', 'i', 'v', 'e', 0, 'c', 'p', '9', '5', '0', 0, 'b', 'i', 'g', '5', 'h', 'k', 's', 'c', 's', 0, 0, 224, 'e', 'u', 'c', 'k', 'r', 0, 'k', 's', 'c', '5', '6', '0', '1', 0, 'k', 's', 'x', '1', '0', '0', '1', 0, 'c', 'p', '9', '4', '9', 0, 0, 232, 'i', 's', 'o', '8', '8', '5', '9', '1', 0, 'l', 'a', 't', 'i', 'n', '1', 0, 0, '@', 'i', 's', 'o', '8', '8', '5', '9', '2', 0, 0, '(', 160, 16, 244, 'W', 'N', 164, 220, 244, 212, ')', 168, 'T', '5', 'U', 'V', 'n', 181, '"', 23, '\\', 176, 20, 20, 152, 'N', 180, 224, 4, 149, '_', 184, 'X', 'E', 149, 'V', 'o', 13, '6', 'W', '\\', 'I', 5, '#', 140, '@', 196, 204, 'd', 208, '1', 12, '%', 'c', 209, '2', 24, '5', 227, 140, 'C', 16, 237, 244, 211, '4', 212, 20, 'e', 205, '5', 'M', 141, 165, 'M', 'Y', 220, 't', 's', 213, '7', 'J', 133, '#', 206, '@', 228, 208, 't', 208, '9', 13, 165, 's', 209, ':', 25, 181, 227, 206, 'C', 17, 241, 4, 212, '<', 244, 24, 'e', 207, '=', 'N', 145, 165, 143, 'Y', 252, 244, 131, 21, '`', 'i', 's', 'o', '8', '8', '5', '9', '3', 0, 0, '(', 160, 144, 244, 215, '(', 164, 0, ' ', 210, ')', 168, 176, '4', 21, 'G', '.', 181, 2, 0, '\\', 176, 148, '$', 203, ',', 180, 212, '2', 210, '-', 184, 180, 'D', 'U', 'G', '/', 245, 2, '@', '\\', 192, 4, '#', 12, 0, 196, '(', 132, 208, '1', 200, '$', 163, 204, '2', 204, '4', 227, 204, '3', 0, 'D', '#', 205, '4', 212, 'x', 'd', 205, '5', 26, 'e', 163, 205, '6', 220, 132, 21, 213, '7', 224, 132, '#', 14, 0, 228, ',', 148, 208, '9', 232, 164, 163, 206, ':', 236, 180, 227, 206, ';', 0, 196, '#', 207, '<', 244, '|', 'd', 207, '=', 27, 229, 163, 207, '>', 252, 136, '%', 21, '`', 'i', 's', 'o', '8', '8', '5', '9', '4', 0, 0, '(', 160, 16, '$', 211, 'R', 164, 152, 'T', 211, ')', 168, 'T', '%', 17, 'H', '[', 181, '"', 215, '+', 176, 20, 20, 24, 'S', 180, 156, 'd', 147, '_', 184, 'X', '5', 'Q', 'H', '\\', 5, '5', 151, 'P', 0, 5, '#', 204, '0', 196, 20, 'c', 140, 'J', 12, '%', 'c', 209, '2', 20, '5', 227, 12, 'J', 16, 245, '4', 20, 'L', 212, 'T', 'c', 205, '5', 216, 156, 165, 205, '6', 220, 't', 245, 213, '7', 1, 133, '#', 206, '8', 228, 148, 'c', 206, 'J', 13, 165, 's', 209, ':', 21, 181, 227, 'N', 'J', 17, 249, 'D', 'T', 'L', 244, 212, 'c', 207, '=', 248, 160, 165, 207, '>', 252, 'x', 5, 22, '`', 'i', 's', 'o', '8', '8', '5', '9', '5', 0, 0, '(', 160, 'D', '\'', 221, 't', 212, 'U', 'g', 221, 'u', 216, 'e', 167, 221, 'v', 220, 181, 210, 157, 'w', 223, 129, 23, 158, 'x', 227, 145, 'W', 158, 'y', 231, 161, 151, 158, 'z', 235, 177, 215, 158, '{', 239, 193, 23, 159, '|', 243, 209, 'W', 159, '}', 247, 225, 151, 159, '~', 251, 241, 215, 159, 127, 255, 1, 24, 160, 128, 3, 18, 'X', 160, 129, 7, '"', 152, 160, 130, 11, '2', 216, 160, 131, 15, 'B', 24, 161, 132, 19, 'R', 'X', 161, 133, 23, 'b', 152, 161, 134, 27, 'r', 216, 161, 135, '&', 127, 8, 'b', 136, '"', 142, 'H', 'b', 137, '&', 158, 136, 'b', 138, '*', 158, 178, '"', 139, 'i', 's', 'o', '8', '8', '5', '9', '6', 0, 0, '(', 160, 0, 0, 0, 0, 164, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'b', 182, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 192, 152, 0, 0, 0, 0, 153, 0, 148, 'i', 230, 153, 'h', 166, 169, 230, 154, 'l', 182, 233, 230, 155, 'p', 198, ')', 231, 156, 't', 214, 'i', 231, 157, 'x', 230, 169, 231, 158, '|', 246, 233, '\'', 0, 0, 0, 0, 0, 0, 127, 2, 26, 168, 160, 131, 18, 'Z', 168, 161, 135, '"', 154, 168, 162, 139, '2', 218, 168, 163, 143, 'B', 26, ')', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'i', 's', 'o', '8', '8', '5', '9', '7', 0, 0, '(', 160, 'L', 'L', 241, '(', '$', 151, 'l', 202, ')', 168, 164, 146, 216, '*', 172, 180, 2, '@', 196, 176, 196, '"', 203, ',', 138, '-', 198, 216, '-', 141, '9', 246, 216, '.', 144, 245, 18, 153, 'd', 147, 'Q', 'V', 153, 'e', 151, 'a', 150, 153, 'f', 155, 'q', 214, 153, 'g', 159, 129, 22, 154, 'h', 163, 145, 6, '@', 'i', 166, 157, 134, 'Z', 'j', 170, 173, 198, 'Z', 'k', 174, 189, 6, '[', 'l', 178, 205, 'F', '[', 'm', 182, 221, 134, '[', 'n', 186, 237, 198, '[', 'o', 190, 253, 6, '\\', 'p', 194, 13, 'G', '\\', 'q', 198, 29, 135, '\\', 'r', 202, '-', 199, '\\', 's', 206, '=', 7, 29, 0, 'i', 's', 'o', '8', '8', '5', '9', '8', 0, 0, '(', 160, 0, ' ', 202, '(', 164, 148, 'b', 202, ')', 168, 164, 'r', 205, '*', 172, 180, 226, 202, '+', 176, 196, '"', 203, ',', 180, 212, 'b', 203, '-', 184, 228, 'r', 207, '.', 188, 244, 226, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 128, 196, 'B', 14, 'I', 'd', 145, 'F', 30, 137, 'd', 146, 'J', '.', 201, 'd', 147, 'N', '>', 9, 'e', 148, 'R', 'N', 'I', 'e', 149, 'V', '^', 137, 'e', 150, 'Z', 'n', 201, '%', 0, 0, '4', 236, '0', 0, 'i', 's', 'o', '8', '8', '5', '9', '9', 0, 0, '4', 28, 'E', '#', 205, '4', 212, 'T', 'c', 205, '5', 216, 'd', 163, 205, '6', 220, 176, '4', 213, '7', 224, 132, '#', 206, '8', 228, 148, 'c', 206, '9', 232, 164, 163, 206, ':', 236, 180, 227, 206, ';', 29, 197, '#', 207, '<', 244, 212, 'c', 207, '=', 248, 228, 163, 207, '>', 252, 180, 'D', 213, '?', 'i', 's', 'o', '8', '8', '5', '9', '1', '0', 0, 0, '(', 160, 16, '$', 17, 'H', '(', 153, 4, 211, ')', '5', 'A', 'T', 213, 'V', 'r', 181, 242, 'U', 'P', 176, 20, '4', 'Q', 'H', ')', 157, 20, 211, '-', '6', 'E', 'd', 21, 'W', 's', 'E', 12, 150, 'P', 0, 5, '#', 204, '0', 196, 20, 'c', 140, 'J', 12, '%', 'c', 209, '2', 20, '5', 227, 204, '3', 208, 244, '4', 212, '4', 212, 'T', 'c', 'M', 'W', 216, 156, 165, 205, '6', 220, 't', 227, 205, '7', 1, 133, '#', 206, '8', 228, 148, 'c', 206, 'J', 13, 165, 's', 209, ':', 21, 181, 227, 206, ';', 240, 248, 'D', 212, '<', 244, 212, 'c', 143, 'W', 248, 160, 165, 207, '>', 252, 244, 227, 143, 'L', 'i', 's', 'o', '8', '8', '5', '9', '1', '1', 0, 't', 'i', 's', '6', '2', '0', 0, 0, '(', 160, 'x', 250, ')', 168, 161, 138, ':', '*', 169, 165, 154, 'z', '*', 170, 169, 170, 186, '*', 171, 173, 186, 250, '*', 172, 177, 202, ':', '+', 173, 181, 218, 'z', '+', 174, 185, 234, 186, '+', 175, 189, 250, 250, '+', 176, 193, 10, ';', ',', 177, 197, 26, '{', ',', 178, 201, '*', 187, ',', 179, 205, ':', 251, ',', 180, 209, 'J', ';', '-', 181, 213, 'Z', '{', '-', 0, 0, 0, 0, 0, 182, 217, 'j', 187, '-', 183, 221, 'z', 251, '-', 184, 225, 138, ';', '.', 185, 229, 154, '{', '.', 186, 233, 170, 187, '.', 187, 237, 186, 251, '.', 188, 241, 202, ';', '/', 189, 0, 0, 0, 0, 0, 'i', 's', 'o', '8', '8', '5', '9', '1', '3', 0, 0, '(', 160, '\\', ',', 202, '(', 164, '`', 'l', 202, ')', 216, 164, 178, 212, '*', 172, 180, 226, 138, '1', 176, 196, '"', 203, ',', 22, 215, 'b', 203, '-', 248, 228, 194, 212, '.', 188, 244, 226, 139, '9', 4, 169, 4, 144, 'A', 196, 20, 'c', 145, 'D', 12, '%', 227, 22, 'E', ' ', 193, 132, 'R', 'M', 'U', 237, 212, 211, '4', 'C', 'U', 'c', 205, '5', 'g', 229, 244, 212, 'W', 220, 192, '%', 215, '7', 5, 173, 20, 208, 'A', 228, 148, 's', 209, 'D', 13, 165, 243, 'V', 'E', '!', 197, 148, 146, 'M', 'V', 241, 228, 211, '<', 'D', 213, 'c', 207, '=', 'h', 233, 4, 21, 'X', 252, 196, '5', 23, 197, 'i', 's', 'o', '8', '8', '5', '9', '1', '4', 0, 0, '(', 160, 212, 'k', 239, '(', 10, '-', 't', 239, ')', 3, 167, 'R', '0', 190, 9, 183, 226, 'J', '[', 249, 234, 235, 209, 'G', 251, 242, 'k', 'K', 191, 4, 251, 'k', 240, 191, 10, 31, 140, '0', 192, 192, 4, '#', 204, '0', 196, 20, 'c', 204, '1', 200, '$', 163, 204, '2', 204, '4', 227, 204, '3', 'i', 'E', '#', 205, '4', 212, 'T', 'c', 'M', 192, 216, 'd', 163, 205, '6', 220, 't', 179, 214, '7', 224, 132, '#', 206, '8', 228, 148, 'c', 206, '9', 232, 164, 163, 206, ':', 236, 180, 227, 206, ';', 'j', 197, '#', 207, '<', 244, 212, 'c', 143, 192, 248, 228, 163, 207, '>', 252, 244, 195, 214, '?', 'i', 's', 'o', '8', '8', '5', '9', '1', '5', 0, 'l', 'a', 't', 'i', 'n', '9', 0, 0, ')', '$', 151, 'R', 213, ')', 'V', 165, 162, 202, '*', 172, 180, 226, 202, '+', 176, 196, '"', 203, ',', 'r', 213, 'b', 203, '-', 's', 229, 162, 203, '.', 'G', '!', 213, 214, '/', 192, 4, '#', 204, '0', 196, 20, 'c', 204, '1', 200, '$', 163, 204, '2', 204, '4', 227, 204, '3', 208, 'D', '#', 205, '4', 212, 'T', 'c', 205, '5', 216, 'd', 163, 205, '6', 220, 't', 227, 205, '7', 224, 132, '#', 206, '8', 228, 148, 'c', 206, '9', 232, 164, 163, 206, ':', 236, 180, 227, 206, ';', 240, 196, '#', 207, '<', 244, 212, 'c', 207, '=', 248, 228, 163, 207, '>', 252, 244, 227, 207, '?', 'i', 's', 'o', '8', '8', '5', '9', '1', '6', 0, 0, '(', 160, 16, 'T', 'P', 'N', '$', 'c', '\\', 213, ')', 'V', 165, 146, 215, '*', 'n', 181, 242, 22, '\\', 176, 196, 194, 144, 'N', 'r', ']', 'l', 203, '-', 's', '5', 164, 215, '.', 'G', '!', 213, 'V', '\\', 192, 4, '#', 140, '@', 196, 24, 'd', 204, '1', 200, '$', 163, 204, '2', 204, '4', 227, 204, '3', 16, 237, '$', 205, '4', 212, 20, 'e', 205, 'S', 'e', 'e', 163, 205, '6', 220, 'X', 180, 215, '7', 224, 132, '#', 206, '@', 228, 28, 'd', 206, '9', 232, 164, 163, 206, ':', 236, 180, 227, 206, ';', 17, 241, '$', 207, '<', 244, 24, 'e', 15, 'T', 'f', 229, 163, 207, '>', 252, '\\', 196, 215, '?', 'c', 'p', '1', '2', '5', '0', 0, 'w', 'i', 'n', 'd', 'o', 'w', 's', '1', '2', '5', '0', 0, 0, ' ', '$', 3, 'P', '1', 0, 24, 's', 156, 177, 198, 0, 't', '\\', 149, 199, 'O', 'e', '%', 151, '[', 0, 'L', 'L', 177, 197, 23, 'o', 252, '0', 196, 0, 156, 'l', 213, 199, 'P', 'i', '5', 215, '[', 160, 248, 245, 'W', 'N', 164, 16, 'd', 202, ')', 168, 164, '2', 213, '*', 172, 180, 226, 10, '\\', 176, 196, 18, 152, 'N', 180, 212, 'b', 203, '-', 184, 20, 'D', 213, '.', '7', 13, 134, 'S', '\\', 'I', 5, '#', 140, '@', 196, 204, 'd', 208, '1', 12, '%', 'c', 209, '2', 24, '5', 227, 140, 'C', 16, 237, 244, 211, '4', 212, 20, 'e', 205, '5', 'M', 141, 165, 'M', 'Y', 220, 't', 's', 213, '7', 'J', 133, '#', 206, '@', 228, 208, 't', 208, '9', 13, 165, 's', 209, ':', 25, 181, 227, 206, 'C', 17, 241, 4, 212, '<', 244, 24, 'e', 207, '=', 'N', 145, 165, 143, 'Y', 252, 244, 131, 21, '`', 'c', 'p', '1', '2', '5', '1', 0, 'w', 'i', 'n', 'd', 'o', 'w', 's', '1', '2', '5', '1', 0, 0, ' ', 210, 'M', 'W', 'q', 136, 24, 's', 156, 177, 198, '$', 'w', 156, 157, 199, 218, 'q', 183, 157, 'w', ' ', 'N', 'L', 177, 197, 23, 'o', 252, '0', 196, 0, 156, '|', 226, 199, '(', 170, 152, '"', 139, 160, 't', 183, '"', 'v', 164, 180, 'h', 202, ')', 209, 165, 'B', 221, '*', 172, 180, 226, 202, 'u', 176, 196, 'b', 29, 137, '.', 214, 'b', 203, '-', 31, 154, ',', 226, '.', '&', 'V', '7', 'b', 137, 223, 129, 23, 158, 'x', 227, 145, 'W', 158, 'y', 231, 161, 151, 158, 'z', 235, 177, 215, 158, '{', 239, 193, 23, 159, '|', 243, 209, 'W', 159, '}', 247, 225, 151, 159, '~', 251, 241, 215, 159, 127, 255, 1, 24, 160, 128, 3, 18, 'X', 160, 129, 7, '"', 152, 160, 130, 11, '2', 216, 160, 131, 15, 'B', 24, 161, 132, 19, 'R', 'X', 161, 133, 23, 'b', 152, 161, 134, 27, 'r', 216, 161, 135, 'c', 'p', '1', '2', '5', '2', 0, 'w', 'i', 'n', 'd', 'o', 'w', 's', '1', '2', '5', '2', 0, 0, ' ', '$', 3, 'P', '1', ']', 24, 's', 156, 177, 198, '}', 'u', '\\', 149, 199, 'G', 1, ' ', 23, 0, 0, 'L', 'L', 177, 197, 23, 'o', 252, '0', 196, 130, 157, 'l', 213, 199, 'H', 1, '0', 'W', '[', 160, 132, '"', 202, '(', 164, 148, 'b', 202, ')', 168, 164, 162, 202, '*', 172, 180, 226, 202, '+', 176, 196, '"', 203, ',', 180, 212, 'b', 203, '-', 184, 228, 162, 203, '.', 188, 244, 226, 203, '/', 192, 4, '#', 204, '0', 196, 20, 'c', 204, '1', 200, '$', 163, 204, '2', 204, '4', 227, 204, '3', 208, 'D', '#', 205, '4', 212, 'T', 'c', 205, '5', 216, 'd', 163, 205, '6', 220, 't', 227, 205, '7', 224, 132, '#', 206, '8', 228, 148, 'c', 206, '9', 232, 164, 163, 206, ':', 236, 180, 227, 206, ';', 240, 196, '#', 207, '<', 244, 212, 'c', 207, '=', 248, 228, 163, 207, '>', 252, 244, 227, 207, '?', 'c', 'p', '1', '2', '5', '3', 0, 'w', 'i', 'n', 'd', 'o', 'w', 's', '1', '2', '5', '3', 0, 0, ' ', '$', 3, 'P', '1', ']', 24, 's', 156, 177, 198, 0, 't', 12, 128, 199, 0, 0, 0, 0, 0, 0, 'L', 'L', 177, 197, 23, 'o', 252, '0', 196, 0, 156, 12, 192, 199, 0, 0, 0, 0, 0, 160, ',', 198, 216, '(', 164, 148, 'b', 202, ')', 168, 164, 2, 192, '*', 172, 180, 226, 'J', 196, 176, 196, '"', 203, ',', 138, 213, 'b', 203, '-', 141, '9', 246, 216, '.', 144, 245, 18, 153, 'd', 147, 'Q', 'V', 153, 'e', 151, 'a', 150, 153, 'f', 155, 'q', 214, 153, 'g', 159, 129, 22, 154, 'h', 163, 145, 6, '@', 'i', 166, 157, 134, 'Z', 'j', 170, 173, 198, 'Z', 'k', 174, 189, 6, '[', 'l', 178, 205, 'F', '[', 'm', 182, 221, 134, '[', 'n', 186, 237, 198, '[', 'o', 190, 253, 6, '\\', 'p', 194, 13, 'G', '\\', 'q', 198, 29, 135, '\\', 'r', 202, '-', 199, '\\', 's', 206, '=', 7, 29, 0, 'c', 'p', '1', '2', '5', '4', 0, 'w', 'i', 'n', 'd', 'o', 'w', 's', '1', '2', '5', '4', 0, 0, ' ', '$', 3, 'P', '1', ']', 24, 's', 156, 177, 198, '}', 'u', '\\', 149, 199, 'G', 1, 0, 0, 0, 0, 'L', 'L', 177, 197, 23, 'o', 252, '0', 196, 130, 157, 'l', 213, 199, 'H', 1, 0, '@', '[', 160, 132, '"', 202, '(', 164, 148, 'b', 202, ')', 168, 164, 162, 202, '*', 172, 180, 226, 202, '+', 176, 196, '"', 203, ',', 180, 212, 'b', 203, '-', 184, 228, 162, 203, '.', 188, 244, 226, 203, '/', 192, 4, '#', 204, '0', 196, 20, 'c', 204, '1', 200, '$', 163, 204, '2', 204, '4', 227, 204, '3', 28, 'E', '#', 205, '4', 212, 'T', 'c', 205, '5', 216, 'd', 163, 205, '6', 220, 176, '4', 213, '7', 224, 132, '#', 206, '8', 228, 148, 'c', 206, '9', 232, 164, 163, 206, ':', 236, 180, 227, 206, ';', 29, 197, '#', 207, '<', 244, 212, 'c', 207, '=', 248, 228, 163, 207, '>', 252, 180, 'D', 213, '?', 'c', 'p', '1', '2', '5', '5', 0, 'w', 'i', 'n', 'd', 'o', 'w', 's', '1', '2', '5', '5', 0, 0, ' ', '$', 3, 'P', '1', ']', 24, 's', 156, 177, 198, '}', 'u', 12, 128, 199, 0, 0, 0, 0, 0, 0, 'L', 'L', 177, 197, 23, 'o', 252, '0', 196, 130, 157, 12, 192, 199, 0, 0, 0, 0, 0, 160, 132, '"', 202, '(', '"', 151, 'b', 202, ')', 168, 164, 'r', 205, '*', 172, 180, 226, 202, '+', 176, 196, '"', 203, ',', 180, 212, 'b', 203, '-', 184, 228, 'r', 207, '.', 188, 244, 226, 203, '/', '/', 194, 24, 163, 140, '3', 210, 'X', 163, 141, '7', 226, 8, '@', 142, ':', 238, 200, 'c', 143, '>', 254, 8, 'd', 144, ']', 'z', 249, '%', 152, 'a', 2, 0, 0, 0, 0, 0, 0, 0, 0, 'B', 14, 'I', 'd', 145, 'F', 30, 137, 'd', 146, 'J', '.', 201, 'd', 147, 'N', '>', 9, 'e', 148, 'R', 'N', 'I', 'e', 149, 'V', '^', 137, 'e', 150, 'Z', 'n', 201, '%', 0, 0, '4', 236, '0', 0, 'c', 'p', '1', '2', '5', '6', 0, 'w', 'i', 'n', 'd', 'o', 'w', 's', '1', '2', '5', '6', 0, 0, ' ', '$', 'O', 'Z', '1', ']', 24, 's', 156, 177, 198, '}', 'u', ',', 169, 199, 'G', 'Q', 'z', 'i', 165, 153, 'N', 'L', 177, 197, 23, 'o', 252, '0', 196, 152, 158, 'l', 233, 199, 'H', '-', 204, 176, 166, 160, 136, ')', 202, '(', 164, 148, 'b', 202, ')', 168, 164, 178, 233, '*', 172, 180, 226, 202, '+', 176, 196, '"', 203, ',', 180, 212, 'b', 203, '-', 184, 228, '2', 230, '.', 188, 244, 226, 11, 153, 156, 150, 'i', 230, 153, 'h', 166, 169, 230, 154, 'l', 182, 233, 230, 155, 'p', 198, ')', 231, 156, 't', 214, 'i', 231, 157, 'x', 230, 169, 231, '5', '{', 242, 217, 167, 159, 127, 2, 26, 168, 160, 224, 12, '*', 14, 161, 133, 26, 'z', 232, '9', 232, 164, 163, 206, ':', 136, '&', 234, 206, ';', 138, '.', 202, 'h', 163, 244, '8', 250, 232, '=', 144, 230, 19, 233, '>', 252, '4', 236, 'p', 167, 'c', 'p', '1', '2', '5', '7', 0, 'w', 'i', 'n', 'd', 'o', 'w', 's', '1', '2', '5', '7', 0, 0, ' ', '$', 3, 'P', '1', 0, 24, 's', 156, 177, 198, 0, 't', 12, 128, 199, 0, 160, 226, 23, '.', 0, 'L', 'L', 177, 197, 23, 'o', 252, '0', 196, 0, 156, 12, 192, 199, 0, 188, 18, 24, 0, 160, 0, ' ', 202, '(', 164, 0, '`', 202, ')', 216, 164, 178, 212, '*', 172, 180, 226, 138, '1', 176, 196, '"', 203, ',', 180, 212, 'b', 203, '-', 248, 228, 194, 212, '.', 188, 244, 226, 139, '9', 4, 169, 4, 144, 'A', 196, 20, 'c', 145, 'D', 12, '%', 227, 22, 'E', ' ', 193, 132, 'R', 'M', 'U', 237, 212, 211, '4', 'C', 'U', 'c', 205, '5', 'g', 229, 244, 212, 'W', 220, 192, '%', 215, '7', 5, 173, 20, 208, 'A', 228, 148, 's', 209, 'D', 13, 165, 243, 'V', 'E', '!', 197, 148, 146, 'M', 'V', 241, 228, 211, '<', 'D', 213, 'c', 207, '=', 'h', 233, 4, 21, 'X', 252, 196, '5', 23, '`', 'c', 'p', '1', '2', '5', '8', 0, 'w', 'i', 'n', 'd', 'o', 'w', 's', '1', '2', '5', '8', 0, 0, ' ', '$', 3, 'P', '1', ']', 24, 's', 156, 177, 198, '}', 'u', 12, 128, 199, 'G', 1, 0, 0, 0, 0, 'L', 'L', 177, 197, 23, 'o', 252, '0', 196, 130, 157, 12, 192, 199, 'H', 1, 0, '@', '[', 160, 132, '"', 202, '(', 164, 148, 'b', 202, ')', 168, 164, 162, 202, '*', 172, 180, 226, 202, '+', 176, 196, '"', 203, ',', 180, 212, 'b', 203, '-', 184, 228, 162, 203, '.', 188, 244, 226, 203, '/', 192, 4, '#', 140, '@', 196, 20, 'c', 204, '1', 200, '$', 163, 204, '2', 132, '5', 227, 204, '3', 16, 'E', 's', 216, '4', 212, 212, 'e', 205, '5', 216, 'd', 163, 205, '6', 220, 220, 'e', 216, '7', 224, 132, '#', 206, '@', 228, 148, 'c', 206, '9', 232, 164, 163, 206, ':', 133, 181, 227, 206, ';', 17, 197, 131, 216, '<', 244, 216, 'e', 207, '=', 248, 228, 163, 207, '>', 252, 224, '5', 242, '?', 'k', 'o', 'i', '8', 'r', 0, 0, ' ', '3', 211, '\\', 179, 205, '7', 227, 156, 179, 206, ';', 243, 220, 243, 214, '\\', 'w', 237, 245, 215, '`', 135, '-', 'v', 204, 'c', 163, 156, '2', 203, '.', 191, 12, 138, 204, 176, 200, 'r', 203, '=', '>', 255, 12, 244, 135, 'A', 11, '=', '4', 209, 'E', 27, '}', '4', 210, 'I', '+', 189, '4', 211, 'M', ';', 253, 't', 't', 'P', 'G', '-', 245, 212, 'T', 'W', 'm', 245, 213, 'X', 'g', 173, 'u', '*', 29, 254, 7, '`', 133, 3, 18, '8', 161, 128, 20, 30, 136, '`', 130, 10, '.', 200, '`', 131, 14, 'z', 248, ' ', 132, 17, 'J', 'X', '`', 128, 27, 'j', 'h', 224, 133, 28, 'b', 'h', 'a', 134, 253, '}', 7, '^', '}', 227, 145, '7', 159, 'x', 244, 157, 135, '^', 'z', 234, 173, 199, '^', '{', 238, 249, 247, 30, '|', 241, 201, 'W', '^', 'x', 251, 233, 'g', 222, '}', 252, 225, 'g', '_', '~', 'k', 'o', 'i', '8', 'u', 0, 0, ' ', '3', 211, '\\', 179, 205, '7', 227, 156, 179, 206, ';', 243, 220, 243, 214, '\\', 'w', 237, 245, 215, '`', 135, '-', 'v', 204, 'c', 163, 156, '2', 203, '.', 191, 12, 138, 204, 176, 200, 'r', 203, '=', '>', 255, 12, 244, 135, '"', 10, 'M', 'b', 137, 'E', 27, '}', '4', 210, 'I', 187, 184, '4', 211, 'M', ';', 253, 't', 't', 212, 'E', 'm', 221, 'u', 'T', 'W', 'm', 245, 213, 'X', 183, 168, 'u', '*', 29, 254, 7, '`', 133, 3, 18, '8', 161, 128, 20, 30, 136, '`', 130, 10, '.', 200, '`', 131, 14, 'z', 248, ' ', 132, 17, 'J', 'X', '`', 128, 27, 'j', 'h', 224, 133, 28, 'b', 'h', 'a', 134, 253, '}', 7, '^', '}', 227, 145, '7', 159, 'x', 244, 157, 135, '^', 'z', 234, 173, 199, '^', '{', 238, 249, 247, 30, '|', 241, 201, 'W', '^', 'x', 251, 233, 'g', 222, '}', 252, 225, 'g', '_', '~', 'c', 'p', '4', '3', '7', 0, 0, ' ', 199, 240, 147, 142, '8', 228, 128, 'S', 206, '9', 234, 172, 131, 206, ';', 238, 176, 'C', 'L', '1', 201, 152, 'c', 12, '=', 246, 200, 179, 'O', '>', 255, 'X', 195, 141, '(', 163, 148, 18, '2', ']', 225, 180, '3', 143, '>', 241, 'D', 163, 138, '.', 191, 192, 204, 'J', '/', 188, 132, 178, 202, '.', '`', 135, '-', '6', 205, ':', '?', 13, '5', 209, 'C', 'G', 253, 's', 209, 'K', '+', 157, 180, 205, '7', 243, 188, 's', 206, '3', 247, 204, 't', 211, 'H', 11, '}', '5', 213, 'N', 251, 172, 'u', 213, 'V', 'K', '=', 245, 209, 'F', 3, 29, 't', 214, 'X', 227, '\\', 's', 215, '\\', '{', 253, 245, 214, 179, '}', 'c', 153, 'p', 165, 21, 'W', 139, 'q', 168, 'm', 182, 154, 'm', '*', '#', 'w', 219, 202, '-', 199, 242, 178, 203, '1', 203, '|', 15, 203, 176, 160, '|', 'K', 202, ' ', 203, '2', '6', '(', 'c', 'p', '8', '5', '0', 0, 0, ' ', 199, 240, 147, 142, '8', 228, 128, 'S', 206, '9', 234, 172, 131, 206, ';', 238, 176, 'C', 'L', '1', 201, 152, 'c', 12, '=', 246, 200, 179, 'O', '>', 255, 'X', 195, 13, '>', 163, '`', 's', 13, ']', 225, 180, '3', 143, '>', 241, 'D', 163, 138, '.', 191, 184, 194, 'J', '/', 188, 132, 178, 202, '.', '`', 135, '-', '6', 205, ':', 7, '#', 12, '0', 169, 'D', 253, 's', 209, 'K', 139, 'R', 138, 205, '7', 243, 188, 's', 206, '3', 247, '<', 206, '0', 'H', 11, '}', '5', 213, 'N', 251, 172, '5', ')', 240, '@', 163, 204, '2', 200, 180, 212, 140, '3', 207, 224, '\\', 's', 215, '\\', 155, 194, 204, 214, 211, '|', 'C', 141, '4', 245, 'T', 'S', 139, '?', 222, 'h', 179, 'M', '6', 253, 't', 243, 10, '-', 173, 196, '"', 177, '/', 182, 156, 'r', 15, '.', 176, 160, 'r', 'K', '.', 179, 200, '2', '6', '(', 'c', 'p', '8', '6', '6', 0, 0, ' ', 223, 129, 23, 158, 'x', 227, 145, 'W', 158, 'y', 231, 161, 151, 158, 'z', 235, 177, 215, 158, '{', 239, 193, 23, 159, '|', 243, 209, 'W', 159, '}', 247, 225, 151, 159, '~', 251, 241, 215, 159, 127, 255, 1, 24, 160, 128, 3, 18, 'X', 160, 129, 7, '"', 152, 160, 130, 11, '2', 216, 160, 131, '`', 135, '-', '6', 205, ':', '?', 13, '5', 209, 'C', 'G', 253, 's', 209, 'K', '+', 157, 180, 205, '7', 243, 188, 's', 206, '3', 247, 204, 't', 211, 'H', 11, '}', '5', 213, 'N', 251, 172, 'u', 213, 'V', 'K', '=', 245, 209, 'F', 3, 29, 't', 214, 'X', 227, '\\', 's', 215, '\\', '{', 253, 245, 214, 15, 'B', 24, 161, 132, 19, 'R', 'X', 161, 133, 23, 'b', 152, 161, 134, 27, 'r', 216, 161, 135, 209, '}', 'H', 157, 136, 215, 149, 216, 221, 138, 176, 160, '|', 'K', 202, '&', 147, '2', '6', '(', 'i', 'b', 'm', '1', '0', '4', '7', 0, 'c', 'p', '1', '0', '4', '7', 0, 0, 1, 156, '$', '`', 200, 31, 151, '4', 226, 200, 2, 12, '4', 224, 192, 3, 16, 'D', ' ', 193, 4, 157, 20, 130, 192, '!', 24, 'd', ' ', 201, '#', 28, 't', 224, 193, 7, 128, 4, '"', 200, ' ', 132, '(', 'p', 193, 6, 136, '$', 162, 200, '"', 140, 20, '`', 192, 1, 144, 'D', 'b', 193, '$', 148, 'T', 'b', 9, 1, 152, 'd', 162, 201, '&', 20, 'T', 224, 137, 6, ' ', 128, '"', 14, '9', 224, 132, '3', 'N', '9', 231, 196, '#', 138, 11, '<', 160, 176, 2, 31, '&', 164, 163, 206, ':', 232, 180, 227, 206, ';', 236, '|', 19, 2, 9, '*', 164, 176, 131, 23, '-', 188, ' ', 12, '1', 192, 4, '3', 'L', '1', 199, 'D', 'c', 10, 11, '%', '|', 225, 195, 15, 248, '$', 163, 204, '2', 200, '4', 227, 204, '3', 204, 128, 161, 195, 8, '@', 156, 208, 131, 8, 216, 132, '!', 198, 24, 'd', 148, 'a', 198, 25, 'h', 164, 177, 202, '.', 240, 244, 227, 'O', ',', 176, 168, 177, 6, 27, 'm', 184, 241, 6, 28, 'q', 200, 161, 138, '.', 230, 224, 'b', 12, ')', 181, 248, '1', 7, 29, 'u', 216, 'q', 7, 30, 'y', 232, 17, 202, '/', 208, 'l', 225, 141, '+', 172, 140, 'R', 202, '-', 169, 156, 'b', 11, '/', 189, 248, 210, 13, '*', 175, 't', 'A', 203, '5', '{', 4, '!', 196, 16, 'D', 20, 'a', 196, 17, 'H', '$', 209, 10, '=', 246, 200, '3', 'O', '=', '}', '(', 177, 4, 19, 'M', '8', 241, 4, 20, 'Q', 'H', 145, 203, '>', 252, 228, 163, 207, '?', '\\', 220, '3', 5, 21, 'U', 'X', 'q', 5, 22, 'Y', 'h', '!', 11, '5', 214, 'H', '3', 'M', '5', '0', 196, ' ', 195, 12, '4', 212, '`', 195, 13, '8', 228, '0', 203, '6', 220, 'd', 163, 205, '\''} + +// C documentation +// +// /* Table of characters that appear in legacy 8-bit codepages, +// * limited to 1024 slots (10 bit indices). The first 256 entries +// * are elided since those characters are obviously all included. */ +var _legacy_chars = [612]uint16{ + 0: uint16(256), + 1: uint16(257), + 2: uint16(258), + 3: uint16(259), + 4: uint16(260), + 5: uint16(261), + 6: uint16(262), + 7: uint16(263), + 8: uint16(264), + 9: uint16(265), + 10: uint16(266), + 11: uint16(267), + 12: uint16(268), + 13: uint16(269), + 14: uint16(270), + 15: uint16(271), + 16: uint16(272), + 17: uint16(273), + 18: uint16(274), + 19: uint16(275), + 20: uint16(278), + 21: uint16(279), + 22: uint16(280), + 23: uint16(281), + 24: uint16(282), + 25: uint16(283), + 26: uint16(284), + 27: uint16(285), + 28: uint16(286), + 29: uint16(287), + 30: uint16(288), + 31: uint16(289), + 32: uint16(290), + 33: uint16(291), + 34: uint16(292), + 35: uint16(293), + 36: uint16(294), + 37: uint16(295), + 38: uint16(296), + 39: uint16(297), + 40: uint16(298), + 41: uint16(299), + 42: uint16(302), + 43: uint16(303), + 44: uint16(304), + 45: uint16(305), + 46: uint16(308), + 47: uint16(309), + 48: uint16(310), + 49: uint16(311), + 50: uint16(312), + 51: uint16(313), + 52: uint16(314), + 53: uint16(315), + 54: uint16(316), + 55: uint16(317), + 56: uint16(318), + 57: uint16(321), + 58: uint16(322), + 59: uint16(323), + 60: uint16(324), + 61: uint16(325), + 62: uint16(326), + 63: uint16(327), + 64: uint16(328), + 65: uint16(330), + 66: uint16(331), + 67: uint16(332), + 68: uint16(333), + 69: uint16(336), + 70: uint16(337), + 71: uint16(338), + 72: uint16(339), + 73: uint16(340), + 74: uint16(341), + 75: uint16(342), + 76: uint16(343), + 77: uint16(344), + 78: uint16(345), + 79: uint16(346), + 80: uint16(347), + 81: uint16(348), + 82: uint16(349), + 83: uint16(350), + 84: uint16(351), + 85: uint16(352), + 86: uint16(353), + 87: uint16(354), + 88: uint16(355), + 89: uint16(356), + 90: uint16(357), + 91: uint16(358), + 92: uint16(359), + 93: uint16(360), + 94: uint16(361), + 95: uint16(362), + 96: uint16(363), + 97: uint16(364), + 98: uint16(365), + 99: uint16(366), + 100: uint16(367), + 101: uint16(368), + 102: uint16(369), + 103: uint16(370), + 104: uint16(371), + 105: uint16(372), + 106: uint16(373), + 107: uint16(374), + 108: uint16(375), + 109: uint16(376), + 110: uint16(377), + 111: uint16(378), + 112: uint16(379), + 113: uint16(380), + 114: uint16(381), + 115: uint16(382), + 116: uint16(402), + 117: uint16(416), + 118: uint16(417), + 119: uint16(431), + 120: uint16(432), + 121: uint16(536), + 122: uint16(537), + 123: uint16(538), + 124: uint16(539), + 125: uint16(710), + 126: uint16(711), + 127: uint16(728), + 128: uint16(729), + 129: uint16(731), + 130: uint16(732), + 131: uint16(733), + 132: uint16(768), + 133: uint16(769), + 134: uint16(771), + 135: uint16(777), + 136: uint16(803), + 137: uint16(890), + 138: uint16(900), + 139: uint16(901), + 140: uint16(902), + 141: uint16(904), + 142: uint16(905), + 143: uint16(906), + 144: uint16(908), + 145: uint16(910), + 146: uint16(911), + 147: uint16(912), + 148: uint16(913), + 149: uint16(914), + 150: uint16(915), + 151: uint16(916), + 152: uint16(917), + 153: uint16(918), + 154: uint16(919), + 155: uint16(920), + 156: uint16(921), + 157: uint16(922), + 158: uint16(923), + 159: uint16(924), + 160: uint16(925), + 161: uint16(926), + 162: uint16(927), + 163: uint16(928), + 164: uint16(929), + 165: uint16(931), + 166: uint16(932), + 167: uint16(933), + 168: uint16(934), + 169: uint16(935), + 170: uint16(936), + 171: uint16(937), + 172: uint16(938), + 173: uint16(939), + 174: uint16(940), + 175: uint16(941), + 176: uint16(942), + 177: uint16(943), + 178: uint16(944), + 179: uint16(945), + 180: uint16(946), + 181: uint16(947), + 182: uint16(948), + 183: uint16(949), + 184: uint16(950), + 185: uint16(951), + 186: uint16(952), + 187: uint16(953), + 188: uint16(954), + 189: uint16(955), + 190: uint16(956), + 191: uint16(957), + 192: uint16(958), + 193: uint16(959), + 194: uint16(960), + 195: uint16(961), + 196: uint16(962), + 197: uint16(963), + 198: uint16(964), + 199: uint16(965), + 200: uint16(966), + 201: uint16(967), + 202: uint16(968), + 203: uint16(969), + 204: uint16(970), + 205: uint16(971), + 206: uint16(972), + 207: uint16(973), + 208: uint16(974), + 209: uint16(1025), + 210: uint16(1026), + 211: uint16(1027), + 212: uint16(1028), + 213: uint16(1029), + 214: uint16(1030), + 215: uint16(1031), + 216: uint16(1032), + 217: uint16(1033), + 218: uint16(1034), + 219: uint16(1035), + 220: uint16(1036), + 221: uint16(1038), + 222: uint16(1039), + 223: uint16(1040), + 224: uint16(1041), + 225: uint16(1042), + 226: uint16(1043), + 227: uint16(1044), + 228: uint16(1045), + 229: uint16(1046), + 230: uint16(1047), + 231: uint16(1048), + 232: uint16(1049), + 233: uint16(1050), + 234: uint16(1051), + 235: uint16(1052), + 236: uint16(1053), + 237: uint16(1054), + 238: uint16(1055), + 239: uint16(1056), + 240: uint16(1057), + 241: uint16(1058), + 242: uint16(1059), + 243: uint16(1060), + 244: uint16(1061), + 245: uint16(1062), + 246: uint16(1063), + 247: uint16(1064), + 248: uint16(1065), + 249: uint16(1066), + 250: uint16(1067), + 251: uint16(1068), + 252: uint16(1069), + 253: uint16(1070), + 254: uint16(1071), + 255: uint16(1072), + 256: uint16(1073), + 257: uint16(1074), + 258: uint16(1075), + 259: uint16(1076), + 260: uint16(1077), + 261: uint16(1078), + 262: uint16(1079), + 263: uint16(1080), + 264: uint16(1081), + 265: uint16(1082), + 266: uint16(1083), + 267: uint16(1084), + 268: uint16(1085), + 269: uint16(1086), + 270: uint16(1087), + 271: uint16(1088), + 272: uint16(1089), + 273: uint16(1090), + 274: uint16(1091), + 275: uint16(1092), + 276: uint16(1093), + 277: uint16(1094), + 278: uint16(1095), + 279: uint16(1096), + 280: uint16(1097), + 281: uint16(1098), + 282: uint16(1099), + 283: uint16(1100), + 284: uint16(1101), + 285: uint16(1102), + 286: uint16(1103), + 287: uint16(1105), + 288: uint16(1106), + 289: uint16(1107), + 290: uint16(1108), + 291: uint16(1109), + 292: uint16(1110), + 293: uint16(1111), + 294: uint16(1112), + 295: uint16(1113), + 296: uint16(1114), + 297: uint16(1115), + 298: uint16(1116), + 299: uint16(1118), + 300: uint16(1119), + 301: uint16(1168), + 302: uint16(1169), + 303: uint16(1456), + 304: uint16(1457), + 305: uint16(1458), + 306: uint16(1459), + 307: uint16(1460), + 308: uint16(1461), + 309: uint16(1462), + 310: uint16(1463), + 311: uint16(1464), + 312: uint16(1465), + 313: uint16(1467), + 314: uint16(1468), + 315: uint16(1469), + 316: uint16(1470), + 317: uint16(1471), + 318: uint16(1472), + 319: uint16(1473), + 320: uint16(1474), + 321: uint16(1475), + 322: uint16(1488), + 323: uint16(1489), + 324: uint16(1490), + 325: uint16(1491), + 326: uint16(1492), + 327: uint16(1493), + 328: uint16(1494), + 329: uint16(1495), + 330: uint16(1496), + 331: uint16(1497), + 332: uint16(1498), + 333: uint16(1499), + 334: uint16(1500), + 335: uint16(1501), + 336: uint16(1502), + 337: uint16(1503), + 338: uint16(1504), + 339: uint16(1505), + 340: uint16(1506), + 341: uint16(1507), + 342: uint16(1508), + 343: uint16(1509), + 344: uint16(1510), + 345: uint16(1511), + 346: uint16(1512), + 347: uint16(1513), + 348: uint16(1514), + 349: uint16(1520), + 350: uint16(1521), + 351: uint16(1522), + 352: uint16(1523), + 353: uint16(1524), + 354: uint16(1548), + 355: uint16(1563), + 356: uint16(1567), + 357: uint16(1569), + 358: uint16(1570), + 359: uint16(1571), + 360: uint16(1572), + 361: uint16(1573), + 362: uint16(1574), + 363: uint16(1575), + 364: uint16(1576), + 365: uint16(1577), + 366: uint16(1578), + 367: uint16(1579), + 368: uint16(1580), + 369: uint16(1581), + 370: uint16(1582), + 371: uint16(1583), + 372: uint16(1584), + 373: uint16(1585), + 374: uint16(1586), + 375: uint16(1587), + 376: uint16(1588), + 377: uint16(1589), + 378: uint16(1590), + 379: uint16(1591), + 380: uint16(1592), + 381: uint16(1593), + 382: uint16(1594), + 383: uint16(1600), + 384: uint16(1601), + 385: uint16(1602), + 386: uint16(1603), + 387: uint16(1604), + 388: uint16(1605), + 389: uint16(1606), + 390: uint16(1607), + 391: uint16(1608), + 392: uint16(1609), + 393: uint16(1610), + 394: uint16(1611), + 395: uint16(1612), + 396: uint16(1613), + 397: uint16(1614), + 398: uint16(1615), + 399: uint16(1616), + 400: uint16(1617), + 401: uint16(1618), + 402: uint16(1657), + 403: uint16(1662), + 404: uint16(1670), + 405: uint16(1672), + 406: uint16(1681), + 407: uint16(1688), + 408: uint16(1705), + 409: uint16(1711), + 410: uint16(1722), + 411: uint16(1726), + 412: uint16(1729), + 413: uint16(1746), + 414: uint16(3585), + 415: uint16(3586), + 416: uint16(3587), + 417: uint16(3588), + 418: uint16(3589), + 419: uint16(3590), + 420: uint16(3591), + 421: uint16(3592), + 422: uint16(3593), + 423: uint16(3594), + 424: uint16(3595), + 425: uint16(3596), + 426: uint16(3597), + 427: uint16(3598), + 428: uint16(3599), + 429: uint16(3600), + 430: uint16(3601), + 431: uint16(3602), + 432: uint16(3603), + 433: uint16(3604), + 434: uint16(3605), + 435: uint16(3606), + 436: uint16(3607), + 437: uint16(3608), + 438: uint16(3609), + 439: uint16(3610), + 440: uint16(3611), + 441: uint16(3612), + 442: uint16(3613), + 443: uint16(3614), + 444: uint16(3615), + 445: uint16(3616), + 446: uint16(3617), + 447: uint16(3618), + 448: uint16(3619), + 449: uint16(3620), + 450: uint16(3621), + 451: uint16(3622), + 452: uint16(3623), + 453: uint16(3624), + 454: uint16(3625), + 455: uint16(3626), + 456: uint16(3627), + 457: uint16(3628), + 458: uint16(3629), + 459: uint16(3630), + 460: uint16(3631), + 461: uint16(3632), + 462: uint16(3633), + 463: uint16(3634), + 464: uint16(3635), + 465: uint16(3636), + 466: uint16(3637), + 467: uint16(3638), + 468: uint16(3639), + 469: uint16(3640), + 470: uint16(3641), + 471: uint16(3642), + 472: uint16(3647), + 473: uint16(3648), + 474: uint16(3649), + 475: uint16(3650), + 476: uint16(3651), + 477: uint16(3652), + 478: uint16(3653), + 479: uint16(3654), + 480: uint16(3655), + 481: uint16(3656), + 482: uint16(3657), + 483: uint16(3658), + 484: uint16(3659), + 485: uint16(3660), + 486: uint16(3661), + 487: uint16(3662), + 488: uint16(3663), + 489: uint16(3664), + 490: uint16(3665), + 491: uint16(3666), + 492: uint16(3667), + 493: uint16(3668), + 494: uint16(3669), + 495: uint16(3670), + 496: uint16(3671), + 497: uint16(3672), + 498: uint16(3673), + 499: uint16(3674), + 500: uint16(3675), + 501: uint16(7682), + 502: uint16(7683), + 503: uint16(7690), + 504: uint16(7691), + 505: uint16(7710), + 506: uint16(7711), + 507: uint16(7744), + 508: uint16(7745), + 509: uint16(7766), + 510: uint16(7767), + 511: uint16(7776), + 512: uint16(7777), + 513: uint16(7786), + 514: uint16(7787), + 515: uint16(7808), + 516: uint16(7809), + 517: uint16(7810), + 518: uint16(7811), + 519: uint16(7812), + 520: uint16(7813), + 521: uint16(7922), + 522: uint16(7923), + 523: uint16(8204), + 524: uint16(8205), + 525: uint16(8206), + 526: uint16(8207), + 527: uint16(8211), + 528: uint16(8212), + 529: uint16(8213), + 530: uint16(8215), + 531: uint16(8216), + 532: uint16(8217), + 533: uint16(8218), + 534: uint16(8220), + 535: uint16(8221), + 536: uint16(8222), + 537: uint16(8224), + 538: uint16(8225), + 539: uint16(8226), + 540: uint16(8230), + 541: uint16(8240), + 542: uint16(8249), + 543: uint16(8250), + 544: uint16(8319), + 545: uint16(8359), + 546: uint16(8362), + 547: uint16(8363), + 548: uint16(8364), + 549: uint16(8367), + 550: uint16(8470), + 551: uint16(8482), + 552: uint16(8729), + 553: uint16(8730), + 554: uint16(8734), + 555: uint16(8745), + 556: uint16(8776), + 557: uint16(8801), + 558: uint16(8804), + 559: uint16(8805), + 560: uint16(8976), + 561: uint16(8992), + 562: uint16(8993), + 563: uint16(9472), + 564: uint16(9474), + 565: uint16(9484), + 566: uint16(9488), + 567: uint16(9492), + 568: uint16(9496), + 569: uint16(9500), + 570: uint16(9508), + 571: uint16(9516), + 572: uint16(9524), + 573: uint16(9532), + 574: uint16(9552), + 575: uint16(9553), + 576: uint16(9554), + 577: uint16(9555), + 578: uint16(9556), + 579: uint16(9557), + 580: uint16(9558), + 581: uint16(9559), + 582: uint16(9560), + 583: uint16(9561), + 584: uint16(9562), + 585: uint16(9563), + 586: uint16(9564), + 587: uint16(9565), + 588: uint16(9566), + 589: uint16(9567), + 590: uint16(9568), + 591: uint16(9569), + 592: uint16(9570), + 593: uint16(9571), + 594: uint16(9572), + 595: uint16(9573), + 596: uint16(9574), + 597: uint16(9575), + 598: uint16(9576), + 599: uint16(9577), + 600: uint16(9578), + 601: uint16(9579), + 602: uint16(9580), + 603: uint16(9600), + 604: uint16(9604), + 605: uint16(9608), + 606: uint16(9612), + 607: uint16(9616), + 608: uint16(9617), + 609: uint16(9618), + 610: uint16(9619), + 611: uint16(9632), +} + +var _jis0208 = [84][94]uint16{ + 0: { + 0: uint16(12288), + 1: uint16(12289), + 2: uint16(12290), + 3: uint16(65292), + 4: uint16(65294), + 5: uint16(12539), + 6: uint16(65306), + 7: uint16(65307), + 8: uint16(65311), + 9: uint16(65281), + 10: uint16(12443), + 11: uint16(12444), + 12: uint16(180), + 13: uint16(65344), + 14: uint16(168), + 15: uint16(65342), + 16: uint16(65507), + 17: uint16(65343), + 18: uint16(12541), + 19: uint16(12542), + 20: uint16(12445), + 21: uint16(12446), + 22: uint16(12291), + 23: uint16(20189), + 24: uint16(12293), + 25: uint16(12294), + 26: uint16(12295), + 27: uint16(12540), + 28: uint16(8213), + 29: uint16(8208), + 30: uint16(65295), + 31: uint16(92), + 32: uint16(12316), + 33: uint16(8214), + 34: uint16(65372), + 35: uint16(8230), + 36: uint16(8229), + 37: uint16(8216), + 38: uint16(8217), + 39: uint16(8220), + 40: uint16(8221), + 41: uint16(65288), + 42: uint16(65289), + 43: uint16(12308), + 44: uint16(12309), + 45: uint16(65339), + 46: uint16(65341), + 47: uint16(65371), + 48: uint16(65373), + 49: uint16(12296), + 50: uint16(12297), + 51: uint16(12298), + 52: uint16(12299), + 53: uint16(12300), + 54: uint16(12301), + 55: uint16(12302), + 56: uint16(12303), + 57: uint16(12304), + 58: uint16(12305), + 59: uint16(65291), + 60: uint16(8722), + 61: uint16(177), + 62: uint16(215), + 63: uint16(247), + 64: uint16(65309), + 65: uint16(8800), + 66: uint16(65308), + 67: uint16(65310), + 68: uint16(8806), + 69: uint16(8807), + 70: uint16(8734), + 71: uint16(8756), + 72: uint16(9794), + 73: uint16(9792), + 74: uint16(176), + 75: uint16(8242), + 76: uint16(8243), + 77: uint16(8451), + 78: uint16(65509), + 79: uint16(65284), + 80: uint16(162), + 81: uint16(163), + 82: uint16(65285), + 83: uint16(65283), + 84: uint16(65286), + 85: uint16(65290), + 86: uint16(65312), + 87: uint16(167), + 88: uint16(9734), + 89: uint16(9733), + 90: uint16(9675), + 91: uint16(9679), + 92: uint16(9678), + 93: uint16(9671), + }, + 1: { + 0: uint16(9670), + 1: uint16(9633), + 2: uint16(9632), + 3: uint16(9651), + 4: uint16(9650), + 5: uint16(9661), + 6: uint16(9660), + 7: uint16(8251), + 8: uint16(12306), + 9: uint16(8594), + 10: uint16(8592), + 11: uint16(8593), + 12: uint16(8595), + 13: uint16(12307), + 25: uint16(8712), + 26: uint16(8715), + 27: uint16(8838), + 28: uint16(8839), + 29: uint16(8834), + 30: uint16(8835), + 31: uint16(8746), + 32: uint16(8745), + 41: uint16(8743), + 42: uint16(8744), + 43: uint16(172), + 44: uint16(8658), + 45: uint16(8660), + 46: uint16(8704), + 47: uint16(8707), + 59: uint16(8736), + 60: uint16(8869), + 61: uint16(8978), + 62: uint16(8706), + 63: uint16(8711), + 64: uint16(8801), + 65: uint16(8786), + 66: uint16(8810), + 67: uint16(8811), + 68: uint16(8730), + 69: uint16(8765), + 70: uint16(8733), + 71: uint16(8757), + 72: uint16(8747), + 73: uint16(8748), + 81: uint16(8491), + 82: uint16(8240), + 83: uint16(9839), + 84: uint16(9837), + 85: uint16(9834), + 86: uint16(8224), + 87: uint16(8225), + 88: uint16(182), + 93: uint16(9711), + }, + 2: { + 15: uint16(65296), + 16: uint16(65297), + 17: uint16(65298), + 18: uint16(65299), + 19: uint16(65300), + 20: uint16(65301), + 21: uint16(65302), + 22: uint16(65303), + 23: uint16(65304), + 24: uint16(65305), + 32: uint16(65313), + 33: uint16(65314), + 34: uint16(65315), + 35: uint16(65316), + 36: uint16(65317), + 37: uint16(65318), + 38: uint16(65319), + 39: uint16(65320), + 40: uint16(65321), + 41: uint16(65322), + 42: uint16(65323), + 43: uint16(65324), + 44: uint16(65325), + 45: uint16(65326), + 46: uint16(65327), + 47: uint16(65328), + 48: uint16(65329), + 49: uint16(65330), + 50: uint16(65331), + 51: uint16(65332), + 52: uint16(65333), + 53: uint16(65334), + 54: uint16(65335), + 55: uint16(65336), + 56: uint16(65337), + 57: uint16(65338), + 64: uint16(65345), + 65: uint16(65346), + 66: uint16(65347), + 67: uint16(65348), + 68: uint16(65349), + 69: uint16(65350), + 70: uint16(65351), + 71: uint16(65352), + 72: uint16(65353), + 73: uint16(65354), + 74: uint16(65355), + 75: uint16(65356), + 76: uint16(65357), + 77: uint16(65358), + 78: uint16(65359), + 79: uint16(65360), + 80: uint16(65361), + 81: uint16(65362), + 82: uint16(65363), + 83: uint16(65364), + 84: uint16(65365), + 85: uint16(65366), + 86: uint16(65367), + 87: uint16(65368), + 88: uint16(65369), + 89: uint16(65370), + }, + 3: { + 0: uint16(12353), + 1: uint16(12354), + 2: uint16(12355), + 3: uint16(12356), + 4: uint16(12357), + 5: uint16(12358), + 6: uint16(12359), + 7: uint16(12360), + 8: uint16(12361), + 9: uint16(12362), + 10: uint16(12363), + 11: uint16(12364), + 12: uint16(12365), + 13: uint16(12366), + 14: uint16(12367), + 15: uint16(12368), + 16: uint16(12369), + 17: uint16(12370), + 18: uint16(12371), + 19: uint16(12372), + 20: uint16(12373), + 21: uint16(12374), + 22: uint16(12375), + 23: uint16(12376), + 24: uint16(12377), + 25: uint16(12378), + 26: uint16(12379), + 27: uint16(12380), + 28: uint16(12381), + 29: uint16(12382), + 30: uint16(12383), + 31: uint16(12384), + 32: uint16(12385), + 33: uint16(12386), + 34: uint16(12387), + 35: uint16(12388), + 36: uint16(12389), + 37: uint16(12390), + 38: uint16(12391), + 39: uint16(12392), + 40: uint16(12393), + 41: uint16(12394), + 42: uint16(12395), + 43: uint16(12396), + 44: uint16(12397), + 45: uint16(12398), + 46: uint16(12399), + 47: uint16(12400), + 48: uint16(12401), + 49: uint16(12402), + 50: uint16(12403), + 51: uint16(12404), + 52: uint16(12405), + 53: uint16(12406), + 54: uint16(12407), + 55: uint16(12408), + 56: uint16(12409), + 57: uint16(12410), + 58: uint16(12411), + 59: uint16(12412), + 60: uint16(12413), + 61: uint16(12414), + 62: uint16(12415), + 63: uint16(12416), + 64: uint16(12417), + 65: uint16(12418), + 66: uint16(12419), + 67: uint16(12420), + 68: uint16(12421), + 69: uint16(12422), + 70: uint16(12423), + 71: uint16(12424), + 72: uint16(12425), + 73: uint16(12426), + 74: uint16(12427), + 75: uint16(12428), + 76: uint16(12429), + 77: uint16(12430), + 78: uint16(12431), + 79: uint16(12432), + 80: uint16(12433), + 81: uint16(12434), + 82: uint16(12435), + }, + 4: { + 0: uint16(12449), + 1: uint16(12450), + 2: uint16(12451), + 3: uint16(12452), + 4: uint16(12453), + 5: uint16(12454), + 6: uint16(12455), + 7: uint16(12456), + 8: uint16(12457), + 9: uint16(12458), + 10: uint16(12459), + 11: uint16(12460), + 12: uint16(12461), + 13: uint16(12462), + 14: uint16(12463), + 15: uint16(12464), + 16: uint16(12465), + 17: uint16(12466), + 18: uint16(12467), + 19: uint16(12468), + 20: uint16(12469), + 21: uint16(12470), + 22: uint16(12471), + 23: uint16(12472), + 24: uint16(12473), + 25: uint16(12474), + 26: uint16(12475), + 27: uint16(12476), + 28: uint16(12477), + 29: uint16(12478), + 30: uint16(12479), + 31: uint16(12480), + 32: uint16(12481), + 33: uint16(12482), + 34: uint16(12483), + 35: uint16(12484), + 36: uint16(12485), + 37: uint16(12486), + 38: uint16(12487), + 39: uint16(12488), + 40: uint16(12489), + 41: uint16(12490), + 42: uint16(12491), + 43: uint16(12492), + 44: uint16(12493), + 45: uint16(12494), + 46: uint16(12495), + 47: uint16(12496), + 48: uint16(12497), + 49: uint16(12498), + 50: uint16(12499), + 51: uint16(12500), + 52: uint16(12501), + 53: uint16(12502), + 54: uint16(12503), + 55: uint16(12504), + 56: uint16(12505), + 57: uint16(12506), + 58: uint16(12507), + 59: uint16(12508), + 60: uint16(12509), + 61: uint16(12510), + 62: uint16(12511), + 63: uint16(12512), + 64: uint16(12513), + 65: uint16(12514), + 66: uint16(12515), + 67: uint16(12516), + 68: uint16(12517), + 69: uint16(12518), + 70: uint16(12519), + 71: uint16(12520), + 72: uint16(12521), + 73: uint16(12522), + 74: uint16(12523), + 75: uint16(12524), + 76: uint16(12525), + 77: uint16(12526), + 78: uint16(12527), + 79: uint16(12528), + 80: uint16(12529), + 81: uint16(12530), + 82: uint16(12531), + 83: uint16(12532), + 84: uint16(12533), + 85: uint16(12534), + }, + 5: { + 0: uint16(913), + 1: uint16(914), + 2: uint16(915), + 3: uint16(916), + 4: uint16(917), + 5: uint16(918), + 6: uint16(919), + 7: uint16(920), + 8: uint16(921), + 9: uint16(922), + 10: uint16(923), + 11: uint16(924), + 12: uint16(925), + 13: uint16(926), + 14: uint16(927), + 15: uint16(928), + 16: uint16(929), + 17: uint16(931), + 18: uint16(932), + 19: uint16(933), + 20: uint16(934), + 21: uint16(935), + 22: uint16(936), + 23: uint16(937), + 32: uint16(945), + 33: uint16(946), + 34: uint16(947), + 35: uint16(948), + 36: uint16(949), + 37: uint16(950), + 38: uint16(951), + 39: uint16(952), + 40: uint16(953), + 41: uint16(954), + 42: uint16(955), + 43: uint16(956), + 44: uint16(957), + 45: uint16(958), + 46: uint16(959), + 47: uint16(960), + 48: uint16(961), + 49: uint16(963), + 50: uint16(964), + 51: uint16(965), + 52: uint16(966), + 53: uint16(967), + 54: uint16(968), + 55: uint16(969), + }, + 6: { + 0: uint16(1040), + 1: uint16(1041), + 2: uint16(1042), + 3: uint16(1043), + 4: uint16(1044), + 5: uint16(1045), + 6: uint16(1025), + 7: uint16(1046), + 8: uint16(1047), + 9: uint16(1048), + 10: uint16(1049), + 11: uint16(1050), + 12: uint16(1051), + 13: uint16(1052), + 14: uint16(1053), + 15: uint16(1054), + 16: uint16(1055), + 17: uint16(1056), + 18: uint16(1057), + 19: uint16(1058), + 20: uint16(1059), + 21: uint16(1060), + 22: uint16(1061), + 23: uint16(1062), + 24: uint16(1063), + 25: uint16(1064), + 26: uint16(1065), + 27: uint16(1066), + 28: uint16(1067), + 29: uint16(1068), + 30: uint16(1069), + 31: uint16(1070), + 32: uint16(1071), + 48: uint16(1072), + 49: uint16(1073), + 50: uint16(1074), + 51: uint16(1075), + 52: uint16(1076), + 53: uint16(1077), + 54: uint16(1105), + 55: uint16(1078), + 56: uint16(1079), + 57: uint16(1080), + 58: uint16(1081), + 59: uint16(1082), + 60: uint16(1083), + 61: uint16(1084), + 62: uint16(1085), + 63: uint16(1086), + 64: uint16(1087), + 65: uint16(1088), + 66: uint16(1089), + 67: uint16(1090), + 68: uint16(1091), + 69: uint16(1092), + 70: uint16(1093), + 71: uint16(1094), + 72: uint16(1095), + 73: uint16(1096), + 74: uint16(1097), + 75: uint16(1098), + 76: uint16(1099), + 77: uint16(1100), + 78: uint16(1101), + 79: uint16(1102), + 80: uint16(1103), + }, + 7: { + 0: uint16(9472), + 1: uint16(9474), + 2: uint16(9484), + 3: uint16(9488), + 4: uint16(9496), + 5: uint16(9492), + 6: uint16(9500), + 7: uint16(9516), + 8: uint16(9508), + 9: uint16(9524), + 10: uint16(9532), + 11: uint16(9473), + 12: uint16(9475), + 13: uint16(9487), + 14: uint16(9491), + 15: uint16(9499), + 16: uint16(9495), + 17: uint16(9507), + 18: uint16(9523), + 19: uint16(9515), + 20: uint16(9531), + 21: uint16(9547), + 22: uint16(9504), + 23: uint16(9519), + 24: uint16(9512), + 25: uint16(9527), + 26: uint16(9535), + 27: uint16(9501), + 28: uint16(9520), + 29: uint16(9509), + 30: uint16(9528), + 31: uint16(9538), + }, + 8: {}, + 9: {}, + 10: {}, + 11: {}, + 12: {}, + 13: {}, + 14: {}, + 15: { + 0: uint16(20124), + 1: uint16(21782), + 2: uint16(23043), + 3: uint16(38463), + 4: uint16(21696), + 5: uint16(24859), + 6: uint16(25384), + 7: uint16(23030), + 8: uint16(36898), + 9: uint16(33909), + 10: uint16(33564), + 11: uint16(31312), + 12: uint16(24746), + 13: uint16(25569), + 14: uint16(28197), + 15: uint16(26093), + 16: uint16(33894), + 17: uint16(33446), + 18: uint16(39925), + 19: uint16(26771), + 20: uint16(22311), + 21: uint16(26017), + 22: uint16(25201), + 23: uint16(23451), + 24: uint16(22992), + 25: uint16(34427), + 26: uint16(39156), + 27: uint16(32098), + 28: uint16(32190), + 29: uint16(39822), + 30: uint16(25110), + 31: uint16(31903), + 32: uint16(34999), + 33: uint16(23433), + 34: uint16(24245), + 35: uint16(25353), + 36: uint16(26263), + 37: uint16(26696), + 38: uint16(38343), + 39: uint16(38797), + 40: uint16(26447), + 41: uint16(20197), + 42: uint16(20234), + 43: uint16(20301), + 44: uint16(20381), + 45: uint16(20553), + 46: uint16(22258), + 47: uint16(22839), + 48: uint16(22996), + 49: uint16(23041), + 50: uint16(23561), + 51: uint16(24799), + 52: uint16(24847), + 53: uint16(24944), + 54: uint16(26131), + 55: uint16(26885), + 56: uint16(28858), + 57: uint16(30031), + 58: uint16(30064), + 59: uint16(31227), + 60: uint16(32173), + 61: uint16(32239), + 62: uint16(32963), + 63: uint16(33806), + 64: uint16(34915), + 65: uint16(35586), + 66: uint16(36949), + 67: uint16(36986), + 68: uint16(21307), + 69: uint16(20117), + 70: uint16(20133), + 71: uint16(22495), + 72: uint16(32946), + 73: uint16(37057), + 74: uint16(30959), + 75: uint16(19968), + 76: uint16(22769), + 77: uint16(28322), + 78: uint16(36920), + 79: uint16(31282), + 80: uint16(33576), + 81: uint16(33419), + 82: uint16(39983), + 83: uint16(20801), + 84: uint16(21360), + 85: uint16(21693), + 86: uint16(21729), + 87: uint16(22240), + 88: uint16(23035), + 89: uint16(24341), + 90: uint16(39154), + 91: uint16(28139), + 92: uint16(32996), + 93: uint16(34093), + }, + 16: { + 0: uint16(38498), + 1: uint16(38512), + 2: uint16(38560), + 3: uint16(38907), + 4: uint16(21515), + 5: uint16(21491), + 6: uint16(23431), + 7: uint16(28879), + 8: uint16(32701), + 9: uint16(36802), + 10: uint16(38632), + 11: uint16(21359), + 12: uint16(40284), + 13: uint16(31418), + 14: uint16(19985), + 15: uint16(30867), + 16: uint16(33276), + 17: uint16(28198), + 18: uint16(22040), + 19: uint16(21764), + 20: uint16(27421), + 21: uint16(34074), + 22: uint16(39995), + 23: uint16(23013), + 24: uint16(21417), + 25: uint16(28006), + 26: uint16(29916), + 27: uint16(38287), + 28: uint16(22082), + 29: uint16(20113), + 30: uint16(36939), + 31: uint16(38642), + 32: uint16(33615), + 33: uint16(39180), + 34: uint16(21473), + 35: uint16(21942), + 36: uint16(23344), + 37: uint16(24433), + 38: uint16(26144), + 39: uint16(26355), + 40: uint16(26628), + 41: uint16(27704), + 42: uint16(27891), + 43: uint16(27945), + 44: uint16(29787), + 45: uint16(30408), + 46: uint16(31310), + 47: uint16(38964), + 48: uint16(33521), + 49: uint16(34907), + 50: uint16(35424), + 51: uint16(37613), + 52: uint16(28082), + 53: uint16(30123), + 54: uint16(30410), + 55: uint16(39365), + 56: uint16(24742), + 57: uint16(35585), + 58: uint16(36234), + 59: uint16(38322), + 60: uint16(27022), + 61: uint16(21421), + 62: uint16(20870), + 63: uint16(22290), + 64: uint16(22576), + 65: uint16(22852), + 66: uint16(23476), + 67: uint16(24310), + 68: uint16(24616), + 69: uint16(25513), + 70: uint16(25588), + 71: uint16(27839), + 72: uint16(28436), + 73: uint16(28814), + 74: uint16(28948), + 75: uint16(29017), + 76: uint16(29141), + 77: uint16(29503), + 78: uint16(32257), + 79: uint16(33398), + 80: uint16(33489), + 81: uint16(34199), + 82: uint16(36960), + 83: uint16(37467), + 84: uint16(40219), + 85: uint16(22633), + 86: uint16(26044), + 87: uint16(27738), + 88: uint16(29989), + 89: uint16(20985), + 90: uint16(22830), + 91: uint16(22885), + 92: uint16(24448), + 93: uint16(24540), + }, + 17: { + 0: uint16(25276), + 1: uint16(26106), + 2: uint16(27178), + 3: uint16(27431), + 4: uint16(27572), + 5: uint16(29579), + 6: uint16(32705), + 7: uint16(35158), + 8: uint16(40236), + 9: uint16(40206), + 10: uint16(40644), + 11: uint16(23713), + 12: uint16(27798), + 13: uint16(33659), + 14: uint16(20740), + 15: uint16(23627), + 16: uint16(25014), + 17: uint16(33222), + 18: uint16(26742), + 19: uint16(29281), + 20: uint16(20057), + 21: uint16(20474), + 22: uint16(21368), + 23: uint16(24681), + 24: uint16(28201), + 25: uint16(31311), + 26: uint16(38899), + 27: uint16(19979), + 28: uint16(21270), + 29: uint16(20206), + 30: uint16(20309), + 31: uint16(20285), + 32: uint16(20385), + 33: uint16(20339), + 34: uint16(21152), + 35: uint16(21487), + 36: uint16(22025), + 37: uint16(22799), + 38: uint16(23233), + 39: uint16(23478), + 40: uint16(23521), + 41: uint16(31185), + 42: uint16(26247), + 43: uint16(26524), + 44: uint16(26550), + 45: uint16(27468), + 46: uint16(27827), + 47: uint16(28779), + 48: uint16(29634), + 49: uint16(31117), + 50: uint16(31166), + 51: uint16(31292), + 52: uint16(31623), + 53: uint16(33457), + 54: uint16(33499), + 55: uint16(33540), + 56: uint16(33655), + 57: uint16(33775), + 58: uint16(33747), + 59: uint16(34662), + 60: uint16(35506), + 61: uint16(22057), + 62: uint16(36008), + 63: uint16(36838), + 64: uint16(36942), + 65: uint16(38686), + 66: uint16(34442), + 67: uint16(20420), + 68: uint16(23784), + 69: uint16(25105), + 70: uint16(29273), + 71: uint16(30011), + 72: uint16(33253), + 73: uint16(33469), + 74: uint16(34558), + 75: uint16(36032), + 76: uint16(38597), + 77: uint16(39187), + 78: uint16(39381), + 79: uint16(20171), + 80: uint16(20250), + 81: uint16(35299), + 82: uint16(22238), + 83: uint16(22602), + 84: uint16(22730), + 85: uint16(24315), + 86: uint16(24555), + 87: uint16(24618), + 88: uint16(24724), + 89: uint16(24674), + 90: uint16(25040), + 91: uint16(25106), + 92: uint16(25296), + 93: uint16(25913), + }, + 18: { + 0: uint16(39745), + 1: uint16(26214), + 2: uint16(26800), + 3: uint16(28023), + 4: uint16(28784), + 5: uint16(30028), + 6: uint16(30342), + 7: uint16(32117), + 8: uint16(33445), + 9: uint16(34809), + 10: uint16(38283), + 11: uint16(38542), + 12: uint16(35997), + 13: uint16(20977), + 14: uint16(21182), + 15: uint16(22806), + 16: uint16(21683), + 17: uint16(23475), + 18: uint16(23830), + 19: uint16(24936), + 20: uint16(27010), + 21: uint16(28079), + 22: uint16(30861), + 23: uint16(33995), + 24: uint16(34903), + 25: uint16(35442), + 26: uint16(37799), + 27: uint16(39608), + 28: uint16(28012), + 29: uint16(39336), + 30: uint16(34521), + 31: uint16(22435), + 32: uint16(26623), + 33: uint16(34510), + 34: uint16(37390), + 35: uint16(21123), + 36: uint16(22151), + 37: uint16(21508), + 38: uint16(24275), + 39: uint16(25313), + 40: uint16(25785), + 41: uint16(26684), + 42: uint16(26680), + 43: uint16(27579), + 44: uint16(29554), + 45: uint16(30906), + 46: uint16(31339), + 47: uint16(35226), + 48: uint16(35282), + 49: uint16(36203), + 50: uint16(36611), + 51: uint16(37101), + 52: uint16(38307), + 53: uint16(38548), + 54: uint16(38761), + 55: uint16(23398), + 56: uint16(23731), + 57: uint16(27005), + 58: uint16(38989), + 59: uint16(38990), + 60: uint16(25499), + 61: uint16(31520), + 62: uint16(27179), + 63: uint16(27263), + 64: uint16(26806), + 65: uint16(39949), + 66: uint16(28511), + 67: uint16(21106), + 68: uint16(21917), + 69: uint16(24688), + 70: uint16(25324), + 71: uint16(27963), + 72: uint16(28167), + 73: uint16(28369), + 74: uint16(33883), + 75: uint16(35088), + 76: uint16(36676), + 77: uint16(19988), + 78: uint16(39993), + 79: uint16(21494), + 80: uint16(26907), + 81: uint16(27194), + 82: uint16(38788), + 83: uint16(26666), + 84: uint16(20828), + 85: uint16(31427), + 86: uint16(33970), + 87: uint16(37340), + 88: uint16(37772), + 89: uint16(22107), + 90: uint16(40232), + 91: uint16(26658), + 92: uint16(33541), + 93: uint16(33841), + }, + 19: { + 0: uint16(31909), + 1: uint16(21000), + 2: uint16(33477), + 3: uint16(29926), + 4: uint16(20094), + 5: uint16(20355), + 6: uint16(20896), + 7: uint16(23506), + 8: uint16(21002), + 9: uint16(21208), + 10: uint16(21223), + 11: uint16(24059), + 12: uint16(21914), + 13: uint16(22570), + 14: uint16(23014), + 15: uint16(23436), + 16: uint16(23448), + 17: uint16(23515), + 18: uint16(24178), + 19: uint16(24185), + 20: uint16(24739), + 21: uint16(24863), + 22: uint16(24931), + 23: uint16(25022), + 24: uint16(25563), + 25: uint16(25954), + 26: uint16(26577), + 27: uint16(26707), + 28: uint16(26874), + 29: uint16(27454), + 30: uint16(27475), + 31: uint16(27735), + 32: uint16(28450), + 33: uint16(28567), + 34: uint16(28485), + 35: uint16(29872), + 36: uint16(29976), + 37: uint16(30435), + 38: uint16(30475), + 39: uint16(31487), + 40: uint16(31649), + 41: uint16(31777), + 42: uint16(32233), + 43: uint16(32566), + 44: uint16(32752), + 45: uint16(32925), + 46: uint16(33382), + 47: uint16(33694), + 48: uint16(35251), + 49: uint16(35532), + 50: uint16(36011), + 51: uint16(36996), + 52: uint16(37969), + 53: uint16(38291), + 54: uint16(38289), + 55: uint16(38306), + 56: uint16(38501), + 57: uint16(38867), + 58: uint16(39208), + 59: uint16(33304), + 60: uint16(20024), + 61: uint16(21547), + 62: uint16(23736), + 63: uint16(24012), + 64: uint16(29609), + 65: uint16(30284), + 66: uint16(30524), + 67: uint16(23721), + 68: uint16(32747), + 69: uint16(36107), + 70: uint16(38593), + 71: uint16(38929), + 72: uint16(38996), + 73: uint16(39000), + 74: uint16(20225), + 75: uint16(20238), + 76: uint16(21361), + 77: uint16(21916), + 78: uint16(22120), + 79: uint16(22522), + 80: uint16(22855), + 81: uint16(23305), + 82: uint16(23492), + 83: uint16(23696), + 84: uint16(24076), + 85: uint16(24190), + 86: uint16(24524), + 87: uint16(25582), + 88: uint16(26426), + 89: uint16(26071), + 90: uint16(26082), + 91: uint16(26399), + 92: uint16(26827), + 93: uint16(26820), + }, + 20: { + 0: uint16(27231), + 1: uint16(24112), + 2: uint16(27589), + 3: uint16(27671), + 4: uint16(27773), + 5: uint16(30079), + 6: uint16(31048), + 7: uint16(23395), + 8: uint16(31232), + 9: uint16(32000), + 10: uint16(24509), + 11: uint16(35215), + 12: uint16(35352), + 13: uint16(36020), + 14: uint16(36215), + 15: uint16(36556), + 16: uint16(36637), + 17: uint16(39138), + 18: uint16(39438), + 19: uint16(39740), + 20: uint16(20096), + 21: uint16(20605), + 22: uint16(20736), + 23: uint16(22931), + 24: uint16(23452), + 25: uint16(25135), + 26: uint16(25216), + 27: uint16(25836), + 28: uint16(27450), + 29: uint16(29344), + 30: uint16(30097), + 31: uint16(31047), + 32: uint16(32681), + 33: uint16(34811), + 34: uint16(35516), + 35: uint16(35696), + 36: uint16(25516), + 37: uint16(33738), + 38: uint16(38816), + 39: uint16(21513), + 40: uint16(21507), + 41: uint16(21931), + 42: uint16(26708), + 43: uint16(27224), + 44: uint16(35440), + 45: uint16(30759), + 46: uint16(26485), + 47: uint16(40653), + 48: uint16(21364), + 49: uint16(23458), + 50: uint16(33050), + 51: uint16(34384), + 52: uint16(36870), + 53: uint16(19992), + 54: uint16(20037), + 55: uint16(20167), + 56: uint16(20241), + 57: uint16(21450), + 58: uint16(21560), + 59: uint16(23470), + 60: uint16(24339), + 61: uint16(24613), + 62: uint16(25937), + 63: uint16(26429), + 64: uint16(27714), + 65: uint16(27762), + 66: uint16(27875), + 67: uint16(28792), + 68: uint16(29699), + 69: uint16(31350), + 70: uint16(31406), + 71: uint16(31496), + 72: uint16(32026), + 73: uint16(31998), + 74: uint16(32102), + 75: uint16(26087), + 76: uint16(29275), + 77: uint16(21435), + 78: uint16(23621), + 79: uint16(24040), + 80: uint16(25298), + 81: uint16(25312), + 82: uint16(25369), + 83: uint16(28192), + 84: uint16(34394), + 85: uint16(35377), + 86: uint16(36317), + 87: uint16(37624), + 88: uint16(28417), + 89: uint16(31142), + 90: uint16(39770), + 91: uint16(20136), + 92: uint16(20139), + 93: uint16(20140), + }, + 21: { + 0: uint16(20379), + 1: uint16(20384), + 2: uint16(20689), + 3: uint16(20807), + 4: uint16(31478), + 5: uint16(20849), + 6: uint16(20982), + 7: uint16(21332), + 8: uint16(21281), + 9: uint16(21375), + 10: uint16(21483), + 11: uint16(21932), + 12: uint16(22659), + 13: uint16(23777), + 14: uint16(24375), + 15: uint16(24394), + 16: uint16(24623), + 17: uint16(24656), + 18: uint16(24685), + 19: uint16(25375), + 20: uint16(25945), + 21: uint16(27211), + 22: uint16(27841), + 23: uint16(29378), + 24: uint16(29421), + 25: uint16(30703), + 26: uint16(33016), + 27: uint16(33029), + 28: uint16(33288), + 29: uint16(34126), + 30: uint16(37111), + 31: uint16(37857), + 32: uint16(38911), + 33: uint16(39255), + 34: uint16(39514), + 35: uint16(20208), + 36: uint16(20957), + 37: uint16(23597), + 38: uint16(26241), + 39: uint16(26989), + 40: uint16(23616), + 41: uint16(26354), + 42: uint16(26997), + 43: uint16(29577), + 44: uint16(26704), + 45: uint16(31873), + 46: uint16(20677), + 47: uint16(21220), + 48: uint16(22343), + 49: uint16(24062), + 50: uint16(37670), + 51: uint16(26020), + 52: uint16(27427), + 53: uint16(27453), + 54: uint16(29748), + 55: uint16(31105), + 56: uint16(31165), + 57: uint16(31563), + 58: uint16(32202), + 59: uint16(33465), + 60: uint16(33740), + 61: uint16(34943), + 62: uint16(35167), + 63: uint16(35641), + 64: uint16(36817), + 65: uint16(37329), + 66: uint16(21535), + 67: uint16(37504), + 68: uint16(20061), + 69: uint16(20534), + 70: uint16(21477), + 71: uint16(21306), + 72: uint16(29399), + 73: uint16(29590), + 74: uint16(30697), + 75: uint16(33510), + 76: uint16(36527), + 77: uint16(39366), + 78: uint16(39368), + 79: uint16(39378), + 80: uint16(20855), + 81: uint16(24858), + 82: uint16(34398), + 83: uint16(21936), + 84: uint16(31354), + 85: uint16(20598), + 86: uint16(23507), + 87: uint16(36935), + 88: uint16(38533), + 89: uint16(20018), + 90: uint16(27355), + 91: uint16(37351), + 92: uint16(23633), + 93: uint16(23624), + }, + 22: { + 0: uint16(25496), + 1: uint16(31391), + 2: uint16(27795), + 3: uint16(38772), + 4: uint16(36705), + 5: uint16(31402), + 6: uint16(29066), + 7: uint16(38536), + 8: uint16(31874), + 9: uint16(26647), + 10: uint16(32368), + 11: uint16(26705), + 12: uint16(37740), + 13: uint16(21234), + 14: uint16(21531), + 15: uint16(34219), + 16: uint16(35347), + 17: uint16(32676), + 18: uint16(36557), + 19: uint16(37089), + 20: uint16(21350), + 21: uint16(34952), + 22: uint16(31041), + 23: uint16(20418), + 24: uint16(20670), + 25: uint16(21009), + 26: uint16(20804), + 27: uint16(21843), + 28: uint16(22317), + 29: uint16(29674), + 30: uint16(22411), + 31: uint16(22865), + 32: uint16(24418), + 33: uint16(24452), + 34: uint16(24693), + 35: uint16(24950), + 36: uint16(24935), + 37: uint16(25001), + 38: uint16(25522), + 39: uint16(25658), + 40: uint16(25964), + 41: uint16(26223), + 42: uint16(26690), + 43: uint16(28179), + 44: uint16(30054), + 45: uint16(31293), + 46: uint16(31995), + 47: uint16(32076), + 48: uint16(32153), + 49: uint16(32331), + 50: uint16(32619), + 51: uint16(33550), + 52: uint16(33610), + 53: uint16(34509), + 54: uint16(35336), + 55: uint16(35427), + 56: uint16(35686), + 57: uint16(36605), + 58: uint16(38938), + 59: uint16(40335), + 60: uint16(33464), + 61: uint16(36814), + 62: uint16(39912), + 63: uint16(21127), + 64: uint16(25119), + 65: uint16(25731), + 66: uint16(28608), + 67: uint16(38553), + 68: uint16(26689), + 69: uint16(20625), + 70: uint16(27424), + 71: uint16(27770), + 72: uint16(28500), + 73: uint16(31348), + 74: uint16(32080), + 75: uint16(34880), + 76: uint16(35363), + 77: uint16(26376), + 78: uint16(20214), + 79: uint16(20537), + 80: uint16(20518), + 81: uint16(20581), + 82: uint16(20860), + 83: uint16(21048), + 84: uint16(21091), + 85: uint16(21927), + 86: uint16(22287), + 87: uint16(22533), + 88: uint16(23244), + 89: uint16(24314), + 90: uint16(25010), + 91: uint16(25080), + 92: uint16(25331), + 93: uint16(25458), + }, + 23: { + 0: uint16(26908), + 1: uint16(27177), + 2: uint16(29309), + 3: uint16(29356), + 4: uint16(29486), + 5: uint16(30740), + 6: uint16(30831), + 7: uint16(32121), + 8: uint16(30476), + 9: uint16(32937), + 10: uint16(35211), + 11: uint16(35609), + 12: uint16(36066), + 13: uint16(36562), + 14: uint16(36963), + 15: uint16(37749), + 16: uint16(38522), + 17: uint16(38997), + 18: uint16(39443), + 19: uint16(40568), + 20: uint16(20803), + 21: uint16(21407), + 22: uint16(21427), + 23: uint16(24187), + 24: uint16(24358), + 25: uint16(28187), + 26: uint16(28304), + 27: uint16(29572), + 28: uint16(29694), + 29: uint16(32067), + 30: uint16(33335), + 31: uint16(35328), + 32: uint16(35578), + 33: uint16(38480), + 34: uint16(20046), + 35: uint16(20491), + 36: uint16(21476), + 37: uint16(21628), + 38: uint16(22266), + 39: uint16(22993), + 40: uint16(23396), + 41: uint16(24049), + 42: uint16(24235), + 43: uint16(24359), + 44: uint16(25144), + 45: uint16(25925), + 46: uint16(26543), + 47: uint16(28246), + 48: uint16(29392), + 49: uint16(31946), + 50: uint16(34996), + 51: uint16(32929), + 52: uint16(32993), + 53: uint16(33776), + 54: uint16(34382), + 55: uint16(35463), + 56: uint16(36328), + 57: uint16(37431), + 58: uint16(38599), + 59: uint16(39015), + 60: uint16(40723), + 61: uint16(20116), + 62: uint16(20114), + 63: uint16(20237), + 64: uint16(21320), + 65: uint16(21577), + 66: uint16(21566), + 67: uint16(23087), + 68: uint16(24460), + 69: uint16(24481), + 70: uint16(24735), + 71: uint16(26791), + 72: uint16(27278), + 73: uint16(29786), + 74: uint16(30849), + 75: uint16(35486), + 76: uint16(35492), + 77: uint16(35703), + 78: uint16(37264), + 79: uint16(20062), + 80: uint16(39881), + 81: uint16(20132), + 82: uint16(20348), + 83: uint16(20399), + 84: uint16(20505), + 85: uint16(20502), + 86: uint16(20809), + 87: uint16(20844), + 88: uint16(21151), + 89: uint16(21177), + 90: uint16(21246), + 91: uint16(21402), + 92: uint16(21475), + 93: uint16(21521), + }, + 24: { + 0: uint16(21518), + 1: uint16(21897), + 2: uint16(22353), + 3: uint16(22434), + 4: uint16(22909), + 5: uint16(23380), + 6: uint16(23389), + 7: uint16(23439), + 8: uint16(24037), + 9: uint16(24039), + 10: uint16(24055), + 11: uint16(24184), + 12: uint16(24195), + 13: uint16(24218), + 14: uint16(24247), + 15: uint16(24344), + 16: uint16(24658), + 17: uint16(24908), + 18: uint16(25239), + 19: uint16(25304), + 20: uint16(25511), + 21: uint16(25915), + 22: uint16(26114), + 23: uint16(26179), + 24: uint16(26356), + 25: uint16(26477), + 26: uint16(26657), + 27: uint16(26775), + 28: uint16(27083), + 29: uint16(27743), + 30: uint16(27946), + 31: uint16(28009), + 32: uint16(28207), + 33: uint16(28317), + 34: uint16(30002), + 35: uint16(30343), + 36: uint16(30828), + 37: uint16(31295), + 38: uint16(31968), + 39: uint16(32005), + 40: uint16(32024), + 41: uint16(32094), + 42: uint16(32177), + 43: uint16(32789), + 44: uint16(32771), + 45: uint16(32943), + 46: uint16(32945), + 47: uint16(33108), + 48: uint16(33167), + 49: uint16(33322), + 50: uint16(33618), + 51: uint16(34892), + 52: uint16(34913), + 53: uint16(35611), + 54: uint16(36002), + 55: uint16(36092), + 56: uint16(37066), + 57: uint16(37237), + 58: uint16(37489), + 59: uint16(30783), + 60: uint16(37628), + 61: uint16(38308), + 62: uint16(38477), + 63: uint16(38917), + 64: uint16(39321), + 65: uint16(39640), + 66: uint16(40251), + 67: uint16(21083), + 68: uint16(21163), + 69: uint16(21495), + 70: uint16(21512), + 71: uint16(22741), + 72: uint16(25335), + 73: uint16(28640), + 74: uint16(35946), + 75: uint16(36703), + 76: uint16(40633), + 77: uint16(20811), + 78: uint16(21051), + 79: uint16(21578), + 80: uint16(22269), + 81: uint16(31296), + 82: uint16(37239), + 83: uint16(40288), + 84: uint16(40658), + 85: uint16(29508), + 86: uint16(28425), + 87: uint16(33136), + 88: uint16(29969), + 89: uint16(24573), + 90: uint16(24794), + 91: uint16(39592), + 92: uint16(29403), + 93: uint16(36796), + }, + 25: { + 0: uint16(27492), + 1: uint16(38915), + 2: uint16(20170), + 3: uint16(22256), + 4: uint16(22372), + 5: uint16(22718), + 6: uint16(23130), + 7: uint16(24680), + 8: uint16(25031), + 9: uint16(26127), + 10: uint16(26118), + 11: uint16(26681), + 12: uint16(26801), + 13: uint16(28151), + 14: uint16(30165), + 15: uint16(32058), + 16: uint16(33390), + 17: uint16(39746), + 18: uint16(20123), + 19: uint16(20304), + 20: uint16(21449), + 21: uint16(21766), + 22: uint16(23919), + 23: uint16(24038), + 24: uint16(24046), + 25: uint16(26619), + 26: uint16(27801), + 27: uint16(29811), + 28: uint16(30722), + 29: uint16(35408), + 30: uint16(37782), + 31: uint16(35039), + 32: uint16(22352), + 33: uint16(24231), + 34: uint16(25387), + 35: uint16(20661), + 36: uint16(20652), + 37: uint16(20877), + 38: uint16(26368), + 39: uint16(21705), + 40: uint16(22622), + 41: uint16(22971), + 42: uint16(23472), + 43: uint16(24425), + 44: uint16(25165), + 45: uint16(25505), + 46: uint16(26685), + 47: uint16(27507), + 48: uint16(28168), + 49: uint16(28797), + 50: uint16(37319), + 51: uint16(29312), + 52: uint16(30741), + 53: uint16(30758), + 54: uint16(31085), + 55: uint16(25998), + 56: uint16(32048), + 57: uint16(33756), + 58: uint16(35009), + 59: uint16(36617), + 60: uint16(38555), + 61: uint16(21092), + 62: uint16(22312), + 63: uint16(26448), + 64: uint16(32618), + 65: uint16(36001), + 66: uint16(20916), + 67: uint16(22338), + 68: uint16(38442), + 69: uint16(22586), + 70: uint16(27018), + 71: uint16(32948), + 72: uint16(21682), + 73: uint16(23822), + 74: uint16(22524), + 75: uint16(30869), + 76: uint16(40442), + 77: uint16(20316), + 78: uint16(21066), + 79: uint16(21643), + 80: uint16(25662), + 81: uint16(26152), + 82: uint16(26388), + 83: uint16(26613), + 84: uint16(31364), + 85: uint16(31574), + 86: uint16(32034), + 87: uint16(37679), + 88: uint16(26716), + 89: uint16(39853), + 90: uint16(31545), + 91: uint16(21273), + 92: uint16(20874), + 93: uint16(21047), + }, + 26: { + 0: uint16(23519), + 1: uint16(25334), + 2: uint16(25774), + 3: uint16(25830), + 4: uint16(26413), + 5: uint16(27578), + 6: uint16(34217), + 7: uint16(38609), + 8: uint16(30352), + 9: uint16(39894), + 10: uint16(25420), + 11: uint16(37638), + 12: uint16(39851), + 13: uint16(30399), + 14: uint16(26194), + 15: uint16(19977), + 16: uint16(20632), + 17: uint16(21442), + 18: uint16(23665), + 19: uint16(24808), + 20: uint16(25746), + 21: uint16(25955), + 22: uint16(26719), + 23: uint16(29158), + 24: uint16(29642), + 25: uint16(29987), + 26: uint16(31639), + 27: uint16(32386), + 28: uint16(34453), + 29: uint16(35715), + 30: uint16(36059), + 31: uint16(37240), + 32: uint16(39184), + 33: uint16(26028), + 34: uint16(26283), + 35: uint16(27531), + 36: uint16(20181), + 37: uint16(20180), + 38: uint16(20282), + 39: uint16(20351), + 40: uint16(21050), + 41: uint16(21496), + 42: uint16(21490), + 43: uint16(21987), + 44: uint16(22235), + 45: uint16(22763), + 46: uint16(22987), + 47: uint16(22985), + 48: uint16(23039), + 49: uint16(23376), + 50: uint16(23629), + 51: uint16(24066), + 52: uint16(24107), + 53: uint16(24535), + 54: uint16(24605), + 55: uint16(25351), + 56: uint16(25903), + 57: uint16(23388), + 58: uint16(26031), + 59: uint16(26045), + 60: uint16(26088), + 61: uint16(26525), + 62: uint16(27490), + 63: uint16(27515), + 64: uint16(27663), + 65: uint16(29509), + 66: uint16(31049), + 67: uint16(31169), + 68: uint16(31992), + 69: uint16(32025), + 70: uint16(32043), + 71: uint16(32930), + 72: uint16(33026), + 73: uint16(33267), + 74: uint16(35222), + 75: uint16(35422), + 76: uint16(35433), + 77: uint16(35430), + 78: uint16(35468), + 79: uint16(35566), + 80: uint16(36039), + 81: uint16(36060), + 82: uint16(38604), + 83: uint16(39164), + 84: uint16(27503), + 85: uint16(20107), + 86: uint16(20284), + 87: uint16(20365), + 88: uint16(20816), + 89: uint16(23383), + 90: uint16(23546), + 91: uint16(24904), + 92: uint16(25345), + 93: uint16(26178), + }, + 27: { + 0: uint16(27425), + 1: uint16(28363), + 2: uint16(27835), + 3: uint16(29246), + 4: uint16(29885), + 5: uint16(30164), + 6: uint16(30913), + 7: uint16(31034), + 8: uint16(32780), + 9: uint16(32819), + 10: uint16(33258), + 11: uint16(33940), + 12: uint16(36766), + 13: uint16(27728), + 14: uint16(40575), + 15: uint16(24335), + 16: uint16(35672), + 17: uint16(40235), + 18: uint16(31482), + 19: uint16(36600), + 20: uint16(23437), + 21: uint16(38635), + 22: uint16(19971), + 23: uint16(21489), + 24: uint16(22519), + 25: uint16(22833), + 26: uint16(23241), + 27: uint16(23460), + 28: uint16(24713), + 29: uint16(28287), + 30: uint16(28422), + 31: uint16(30142), + 32: uint16(36074), + 33: uint16(23455), + 34: uint16(34048), + 35: uint16(31712), + 36: uint16(20594), + 37: uint16(26612), + 38: uint16(33437), + 39: uint16(23649), + 40: uint16(34122), + 41: uint16(32286), + 42: uint16(33294), + 43: uint16(20889), + 44: uint16(23556), + 45: uint16(25448), + 46: uint16(36198), + 47: uint16(26012), + 48: uint16(29038), + 49: uint16(31038), + 50: uint16(32023), + 51: uint16(32773), + 52: uint16(35613), + 53: uint16(36554), + 54: uint16(36974), + 55: uint16(34503), + 56: uint16(37034), + 57: uint16(20511), + 58: uint16(21242), + 59: uint16(23610), + 60: uint16(26451), + 61: uint16(28796), + 62: uint16(29237), + 63: uint16(37196), + 64: uint16(37320), + 65: uint16(37675), + 66: uint16(33509), + 67: uint16(23490), + 68: uint16(24369), + 69: uint16(24825), + 70: uint16(20027), + 71: uint16(21462), + 72: uint16(23432), + 73: uint16(25163), + 74: uint16(26417), + 75: uint16(27530), + 76: uint16(29417), + 77: uint16(29664), + 78: uint16(31278), + 79: uint16(33131), + 80: uint16(36259), + 81: uint16(37202), + 82: uint16(39318), + 83: uint16(20754), + 84: uint16(21463), + 85: uint16(21610), + 86: uint16(23551), + 87: uint16(25480), + 88: uint16(27193), + 89: uint16(32172), + 90: uint16(38656), + 91: uint16(22234), + 92: uint16(21454), + 93: uint16(21608), + }, + 28: { + 0: uint16(23447), + 1: uint16(23601), + 2: uint16(24030), + 3: uint16(20462), + 4: uint16(24833), + 5: uint16(25342), + 6: uint16(27954), + 7: uint16(31168), + 8: uint16(31179), + 9: uint16(32066), + 10: uint16(32333), + 11: uint16(32722), + 12: uint16(33261), + 13: uint16(33311), + 14: uint16(33936), + 15: uint16(34886), + 16: uint16(35186), + 17: uint16(35728), + 18: uint16(36468), + 19: uint16(36655), + 20: uint16(36913), + 21: uint16(37195), + 22: uint16(37228), + 23: uint16(38598), + 24: uint16(37276), + 25: uint16(20160), + 26: uint16(20303), + 27: uint16(20805), + 28: uint16(21313), + 29: uint16(24467), + 30: uint16(25102), + 31: uint16(26580), + 32: uint16(27713), + 33: uint16(28171), + 34: uint16(29539), + 35: uint16(32294), + 36: uint16(37325), + 37: uint16(37507), + 38: uint16(21460), + 39: uint16(22809), + 40: uint16(23487), + 41: uint16(28113), + 42: uint16(31069), + 43: uint16(32302), + 44: uint16(31899), + 45: uint16(22654), + 46: uint16(29087), + 47: uint16(20986), + 48: uint16(34899), + 49: uint16(36848), + 50: uint16(20426), + 51: uint16(23803), + 52: uint16(26149), + 53: uint16(30636), + 54: uint16(31459), + 55: uint16(33308), + 56: uint16(39423), + 57: uint16(20934), + 58: uint16(24490), + 59: uint16(26092), + 60: uint16(26991), + 61: uint16(27529), + 62: uint16(28147), + 63: uint16(28310), + 64: uint16(28516), + 65: uint16(30462), + 66: uint16(32020), + 67: uint16(24033), + 68: uint16(36981), + 69: uint16(37255), + 70: uint16(38918), + 71: uint16(20966), + 72: uint16(21021), + 73: uint16(25152), + 74: uint16(26257), + 75: uint16(26329), + 76: uint16(28186), + 77: uint16(24246), + 78: uint16(32210), + 79: uint16(32626), + 80: uint16(26360), + 81: uint16(34223), + 82: uint16(34295), + 83: uint16(35576), + 84: uint16(21161), + 85: uint16(21465), + 86: uint16(22899), + 87: uint16(24207), + 88: uint16(24464), + 89: uint16(24661), + 90: uint16(37604), + 91: uint16(38500), + 92: uint16(20663), + 93: uint16(20767), + }, + 29: { + 0: uint16(21213), + 1: uint16(21280), + 2: uint16(21319), + 3: uint16(21484), + 4: uint16(21736), + 5: uint16(21830), + 6: uint16(21809), + 7: uint16(22039), + 8: uint16(22888), + 9: uint16(22974), + 10: uint16(23100), + 11: uint16(23477), + 12: uint16(23558), + 13: uint16(23567), + 14: uint16(23569), + 15: uint16(23578), + 16: uint16(24196), + 17: uint16(24202), + 18: uint16(24288), + 19: uint16(24432), + 20: uint16(25215), + 21: uint16(25220), + 22: uint16(25307), + 23: uint16(25484), + 24: uint16(25463), + 25: uint16(26119), + 26: uint16(26124), + 27: uint16(26157), + 28: uint16(26230), + 29: uint16(26494), + 30: uint16(26786), + 31: uint16(27167), + 32: uint16(27189), + 33: uint16(27836), + 34: uint16(28040), + 35: uint16(28169), + 36: uint16(28248), + 37: uint16(28988), + 38: uint16(28966), + 39: uint16(29031), + 40: uint16(30151), + 41: uint16(30465), + 42: uint16(30813), + 43: uint16(30977), + 44: uint16(31077), + 45: uint16(31216), + 46: uint16(31456), + 47: uint16(31505), + 48: uint16(31911), + 49: uint16(32057), + 50: uint16(32918), + 51: uint16(33750), + 52: uint16(33931), + 53: uint16(34121), + 54: uint16(34909), + 55: uint16(35059), + 56: uint16(35359), + 57: uint16(35388), + 58: uint16(35412), + 59: uint16(35443), + 60: uint16(35937), + 61: uint16(36062), + 62: uint16(37284), + 63: uint16(37478), + 64: uint16(37758), + 65: uint16(37912), + 66: uint16(38556), + 67: uint16(38808), + 68: uint16(19978), + 69: uint16(19976), + 70: uint16(19998), + 71: uint16(20055), + 72: uint16(20887), + 73: uint16(21104), + 74: uint16(22478), + 75: uint16(22580), + 76: uint16(22732), + 77: uint16(23330), + 78: uint16(24120), + 79: uint16(24773), + 80: uint16(25854), + 81: uint16(26465), + 82: uint16(26454), + 83: uint16(27972), + 84: uint16(29366), + 85: uint16(30067), + 86: uint16(31331), + 87: uint16(33976), + 88: uint16(35698), + 89: uint16(37304), + 90: uint16(37664), + 91: uint16(22065), + 92: uint16(22516), + 93: uint16(39166), + }, + 30: { + 0: uint16(25325), + 1: uint16(26893), + 2: uint16(27542), + 3: uint16(29165), + 4: uint16(32340), + 5: uint16(32887), + 6: uint16(33394), + 7: uint16(35302), + 8: uint16(39135), + 9: uint16(34645), + 10: uint16(36785), + 11: uint16(23611), + 12: uint16(20280), + 13: uint16(20449), + 14: uint16(20405), + 15: uint16(21767), + 16: uint16(23072), + 17: uint16(23517), + 18: uint16(23529), + 19: uint16(24515), + 20: uint16(24910), + 21: uint16(25391), + 22: uint16(26032), + 23: uint16(26187), + 24: uint16(26862), + 25: uint16(27035), + 26: uint16(28024), + 27: uint16(28145), + 28: uint16(30003), + 29: uint16(30137), + 30: uint16(30495), + 31: uint16(31070), + 32: uint16(31206), + 33: uint16(32051), + 34: uint16(33251), + 35: uint16(33455), + 36: uint16(34218), + 37: uint16(35242), + 38: uint16(35386), + 39: uint16(36523), + 40: uint16(36763), + 41: uint16(36914), + 42: uint16(37341), + 43: uint16(38663), + 44: uint16(20154), + 45: uint16(20161), + 46: uint16(20995), + 47: uint16(22645), + 48: uint16(22764), + 49: uint16(23563), + 50: uint16(29978), + 51: uint16(23613), + 52: uint16(33102), + 53: uint16(35338), + 54: uint16(36805), + 55: uint16(38499), + 56: uint16(38765), + 57: uint16(31525), + 58: uint16(35535), + 59: uint16(38920), + 60: uint16(37218), + 61: uint16(22259), + 62: uint16(21416), + 63: uint16(36887), + 64: uint16(21561), + 65: uint16(22402), + 66: uint16(24101), + 67: uint16(25512), + 68: uint16(27700), + 69: uint16(28810), + 70: uint16(30561), + 71: uint16(31883), + 72: uint16(32736), + 73: uint16(34928), + 74: uint16(36930), + 75: uint16(37204), + 76: uint16(37648), + 77: uint16(37656), + 78: uint16(38543), + 79: uint16(29790), + 80: uint16(39620), + 81: uint16(23815), + 82: uint16(23913), + 83: uint16(25968), + 84: uint16(26530), + 85: uint16(36264), + 86: uint16(38619), + 87: uint16(25454), + 88: uint16(26441), + 89: uint16(26905), + 90: uint16(33733), + 91: uint16(38935), + 92: uint16(38592), + 93: uint16(35070), + }, + 31: { + 0: uint16(28548), + 1: uint16(25722), + 2: uint16(23544), + 3: uint16(19990), + 4: uint16(28716), + 5: uint16(30045), + 6: uint16(26159), + 7: uint16(20932), + 8: uint16(21046), + 9: uint16(21218), + 10: uint16(22995), + 11: uint16(24449), + 12: uint16(24615), + 13: uint16(25104), + 14: uint16(25919), + 15: uint16(25972), + 16: uint16(26143), + 17: uint16(26228), + 18: uint16(26866), + 19: uint16(26646), + 20: uint16(27491), + 21: uint16(28165), + 22: uint16(29298), + 23: uint16(29983), + 24: uint16(30427), + 25: uint16(31934), + 26: uint16(32854), + 27: uint16(22768), + 28: uint16(35069), + 29: uint16(35199), + 30: uint16(35488), + 31: uint16(35475), + 32: uint16(35531), + 33: uint16(36893), + 34: uint16(37266), + 35: uint16(38738), + 36: uint16(38745), + 37: uint16(25993), + 38: uint16(31246), + 39: uint16(33030), + 40: uint16(38587), + 41: uint16(24109), + 42: uint16(24796), + 43: uint16(25114), + 44: uint16(26021), + 45: uint16(26132), + 46: uint16(26512), + 47: uint16(30707), + 48: uint16(31309), + 49: uint16(31821), + 50: uint16(32318), + 51: uint16(33034), + 52: uint16(36012), + 53: uint16(36196), + 54: uint16(36321), + 55: uint16(36447), + 56: uint16(30889), + 57: uint16(20999), + 58: uint16(25305), + 59: uint16(25509), + 60: uint16(25666), + 61: uint16(25240), + 62: uint16(35373), + 63: uint16(31363), + 64: uint16(31680), + 65: uint16(35500), + 66: uint16(38634), + 67: uint16(32118), + 68: uint16(33292), + 69: uint16(34633), + 70: uint16(20185), + 71: uint16(20808), + 72: uint16(21315), + 73: uint16(21344), + 74: uint16(23459), + 75: uint16(23554), + 76: uint16(23574), + 77: uint16(24029), + 78: uint16(25126), + 79: uint16(25159), + 80: uint16(25776), + 81: uint16(26643), + 82: uint16(26676), + 83: uint16(27849), + 84: uint16(27973), + 85: uint16(27927), + 86: uint16(26579), + 87: uint16(28508), + 88: uint16(29006), + 89: uint16(29053), + 90: uint16(26059), + 91: uint16(31359), + 92: uint16(31661), + 93: uint16(32218), + }, + 32: { + 0: uint16(32330), + 1: uint16(32680), + 2: uint16(33146), + 3: uint16(33307), + 4: uint16(33337), + 5: uint16(34214), + 6: uint16(35438), + 7: uint16(36046), + 8: uint16(36341), + 9: uint16(36984), + 10: uint16(36983), + 11: uint16(37549), + 12: uint16(37521), + 13: uint16(38275), + 14: uint16(39854), + 15: uint16(21069), + 16: uint16(21892), + 17: uint16(28472), + 18: uint16(28982), + 19: uint16(20840), + 20: uint16(31109), + 21: uint16(32341), + 22: uint16(33203), + 23: uint16(31950), + 24: uint16(22092), + 25: uint16(22609), + 26: uint16(23720), + 27: uint16(25514), + 28: uint16(26366), + 29: uint16(26365), + 30: uint16(26970), + 31: uint16(29401), + 32: uint16(30095), + 33: uint16(30094), + 34: uint16(30990), + 35: uint16(31062), + 36: uint16(31199), + 37: uint16(31895), + 38: uint16(32032), + 39: uint16(32068), + 40: uint16(34311), + 41: uint16(35380), + 42: uint16(38459), + 43: uint16(36961), + 44: uint16(40736), + 45: uint16(20711), + 46: uint16(21109), + 47: uint16(21452), + 48: uint16(21474), + 49: uint16(20489), + 50: uint16(21930), + 51: uint16(22766), + 52: uint16(22863), + 53: uint16(29245), + 54: uint16(23435), + 55: uint16(23652), + 56: uint16(21277), + 57: uint16(24803), + 58: uint16(24819), + 59: uint16(25436), + 60: uint16(25475), + 61: uint16(25407), + 62: uint16(25531), + 63: uint16(25805), + 64: uint16(26089), + 65: uint16(26361), + 66: uint16(24035), + 67: uint16(27085), + 68: uint16(27133), + 69: uint16(28437), + 70: uint16(29157), + 71: uint16(20105), + 72: uint16(30185), + 73: uint16(30456), + 74: uint16(31379), + 75: uint16(31967), + 76: uint16(32207), + 77: uint16(32156), + 78: uint16(32865), + 79: uint16(33609), + 80: uint16(33624), + 81: uint16(33900), + 82: uint16(33980), + 83: uint16(34299), + 84: uint16(35013), + 85: uint16(36208), + 86: uint16(36865), + 87: uint16(36973), + 88: uint16(37783), + 89: uint16(38684), + 90: uint16(39442), + 91: uint16(20687), + 92: uint16(22679), + 93: uint16(24974), + }, + 33: { + 0: uint16(33235), + 1: uint16(34101), + 2: uint16(36104), + 3: uint16(36896), + 4: uint16(20419), + 5: uint16(20596), + 6: uint16(21063), + 7: uint16(21363), + 8: uint16(24687), + 9: uint16(25417), + 10: uint16(26463), + 11: uint16(28204), + 12: uint16(36275), + 13: uint16(36895), + 14: uint16(20439), + 15: uint16(23646), + 16: uint16(36042), + 17: uint16(26063), + 18: uint16(32154), + 19: uint16(21330), + 20: uint16(34966), + 21: uint16(20854), + 22: uint16(25539), + 23: uint16(23384), + 24: uint16(23403), + 25: uint16(23562), + 26: uint16(25613), + 27: uint16(26449), + 28: uint16(36956), + 29: uint16(20182), + 30: uint16(22810), + 31: uint16(22826), + 32: uint16(27760), + 33: uint16(35409), + 34: uint16(21822), + 35: uint16(22549), + 36: uint16(22949), + 37: uint16(24816), + 38: uint16(25171), + 39: uint16(26561), + 40: uint16(33333), + 41: uint16(26965), + 42: uint16(38464), + 43: uint16(39364), + 44: uint16(39464), + 45: uint16(20307), + 46: uint16(22534), + 47: uint16(23550), + 48: uint16(32784), + 49: uint16(23729), + 50: uint16(24111), + 51: uint16(24453), + 52: uint16(24608), + 53: uint16(24907), + 54: uint16(25140), + 55: uint16(26367), + 56: uint16(27888), + 57: uint16(28382), + 58: uint16(32974), + 59: uint16(33151), + 60: uint16(33492), + 61: uint16(34955), + 62: uint16(36024), + 63: uint16(36864), + 64: uint16(36910), + 65: uint16(38538), + 66: uint16(40667), + 67: uint16(39899), + 68: uint16(20195), + 69: uint16(21488), + 70: uint16(22823), + 71: uint16(31532), + 72: uint16(37261), + 73: uint16(38988), + 74: uint16(40441), + 75: uint16(28381), + 76: uint16(28711), + 77: uint16(21331), + 78: uint16(21828), + 79: uint16(23429), + 80: uint16(25176), + 81: uint16(25246), + 82: uint16(25299), + 83: uint16(27810), + 84: uint16(28655), + 85: uint16(29730), + 86: uint16(35351), + 87: uint16(37944), + 88: uint16(28609), + 89: uint16(35582), + 90: uint16(33592), + 91: uint16(20967), + 92: uint16(34552), + 93: uint16(21482), + }, + 34: { + 0: uint16(21481), + 1: uint16(20294), + 2: uint16(36948), + 3: uint16(36784), + 4: uint16(22890), + 5: uint16(33073), + 6: uint16(24061), + 7: uint16(31466), + 8: uint16(36799), + 9: uint16(26842), + 10: uint16(35895), + 11: uint16(29432), + 12: uint16(40008), + 13: uint16(27197), + 14: uint16(35504), + 15: uint16(20025), + 16: uint16(21336), + 17: uint16(22022), + 18: uint16(22374), + 19: uint16(25285), + 20: uint16(25506), + 21: uint16(26086), + 22: uint16(27470), + 23: uint16(28129), + 24: uint16(28251), + 25: uint16(28845), + 26: uint16(30701), + 27: uint16(31471), + 28: uint16(31658), + 29: uint16(32187), + 30: uint16(32829), + 31: uint16(32966), + 32: uint16(34507), + 33: uint16(35477), + 34: uint16(37723), + 35: uint16(22243), + 36: uint16(22727), + 37: uint16(24382), + 38: uint16(26029), + 39: uint16(26262), + 40: uint16(27264), + 41: uint16(27573), + 42: uint16(30007), + 43: uint16(35527), + 44: uint16(20516), + 45: uint16(30693), + 46: uint16(22320), + 47: uint16(24347), + 48: uint16(24677), + 49: uint16(26234), + 50: uint16(27744), + 51: uint16(30196), + 52: uint16(31258), + 53: uint16(32622), + 54: uint16(33268), + 55: uint16(34584), + 56: uint16(36933), + 57: uint16(39347), + 58: uint16(31689), + 59: uint16(30044), + 60: uint16(31481), + 61: uint16(31569), + 62: uint16(33988), + 63: uint16(36880), + 64: uint16(31209), + 65: uint16(31378), + 66: uint16(33590), + 67: uint16(23265), + 68: uint16(30528), + 69: uint16(20013), + 70: uint16(20210), + 71: uint16(23449), + 72: uint16(24544), + 73: uint16(25277), + 74: uint16(26172), + 75: uint16(26609), + 76: uint16(27880), + 77: uint16(34411), + 78: uint16(34935), + 79: uint16(35387), + 80: uint16(37198), + 81: uint16(37619), + 82: uint16(39376), + 83: uint16(27159), + 84: uint16(28710), + 85: uint16(29482), + 86: uint16(33511), + 87: uint16(33879), + 88: uint16(36015), + 89: uint16(19969), + 90: uint16(20806), + 91: uint16(20939), + 92: uint16(21899), + 93: uint16(23541), + }, + 35: { + 0: uint16(24086), + 1: uint16(24115), + 2: uint16(24193), + 3: uint16(24340), + 4: uint16(24373), + 5: uint16(24427), + 6: uint16(24500), + 7: uint16(25074), + 8: uint16(25361), + 9: uint16(26274), + 10: uint16(26397), + 11: uint16(28526), + 12: uint16(29266), + 13: uint16(30010), + 14: uint16(30522), + 15: uint16(32884), + 16: uint16(33081), + 17: uint16(33144), + 18: uint16(34678), + 19: uint16(35519), + 20: uint16(35548), + 21: uint16(36229), + 22: uint16(36339), + 23: uint16(37530), + 24: uint16(38263), + 25: uint16(38914), + 26: uint16(40165), + 27: uint16(21189), + 28: uint16(25431), + 29: uint16(30452), + 30: uint16(26389), + 31: uint16(27784), + 32: uint16(29645), + 33: uint16(36035), + 34: uint16(37806), + 35: uint16(38515), + 36: uint16(27941), + 37: uint16(22684), + 38: uint16(26894), + 39: uint16(27084), + 40: uint16(36861), + 41: uint16(37786), + 42: uint16(30171), + 43: uint16(36890), + 44: uint16(22618), + 45: uint16(26626), + 46: uint16(25524), + 47: uint16(27131), + 48: uint16(20291), + 49: uint16(28460), + 50: uint16(26584), + 51: uint16(36795), + 52: uint16(34086), + 53: uint16(32180), + 54: uint16(37716), + 55: uint16(26943), + 56: uint16(28528), + 57: uint16(22378), + 58: uint16(22775), + 59: uint16(23340), + 60: uint16(32044), + 61: uint16(29226), + 62: uint16(21514), + 63: uint16(37347), + 64: uint16(40372), + 65: uint16(20141), + 66: uint16(20302), + 67: uint16(20572), + 68: uint16(20597), + 69: uint16(21059), + 70: uint16(35998), + 71: uint16(21576), + 72: uint16(22564), + 73: uint16(23450), + 74: uint16(24093), + 75: uint16(24213), + 76: uint16(24237), + 77: uint16(24311), + 78: uint16(24351), + 79: uint16(24716), + 80: uint16(25269), + 81: uint16(25402), + 82: uint16(25552), + 83: uint16(26799), + 84: uint16(27712), + 85: uint16(30855), + 86: uint16(31118), + 87: uint16(31243), + 88: uint16(32224), + 89: uint16(33351), + 90: uint16(35330), + 91: uint16(35558), + 92: uint16(36420), + 93: uint16(36883), + }, + 36: { + 0: uint16(37048), + 1: uint16(37165), + 2: uint16(37336), + 3: uint16(40718), + 4: uint16(27877), + 5: uint16(25688), + 6: uint16(25826), + 7: uint16(25973), + 8: uint16(28404), + 9: uint16(30340), + 10: uint16(31515), + 11: uint16(36969), + 12: uint16(37841), + 13: uint16(28346), + 14: uint16(21746), + 15: uint16(24505), + 16: uint16(25764), + 17: uint16(36685), + 18: uint16(36845), + 19: uint16(37444), + 20: uint16(20856), + 21: uint16(22635), + 22: uint16(22825), + 23: uint16(23637), + 24: uint16(24215), + 25: uint16(28155), + 26: uint16(32399), + 27: uint16(29980), + 28: uint16(36028), + 29: uint16(36578), + 30: uint16(39003), + 31: uint16(28857), + 32: uint16(20253), + 33: uint16(27583), + 34: uint16(28593), + 35: uint16(30000), + 36: uint16(38651), + 37: uint16(20814), + 38: uint16(21520), + 39: uint16(22581), + 40: uint16(22615), + 41: uint16(22956), + 42: uint16(23648), + 43: uint16(24466), + 44: uint16(26007), + 45: uint16(26460), + 46: uint16(28193), + 47: uint16(30331), + 48: uint16(33759), + 49: uint16(36077), + 50: uint16(36884), + 51: uint16(37117), + 52: uint16(37709), + 53: uint16(30757), + 54: uint16(30778), + 55: uint16(21162), + 56: uint16(24230), + 57: uint16(22303), + 58: uint16(22900), + 59: uint16(24594), + 60: uint16(20498), + 61: uint16(20826), + 62: uint16(20908), + 63: uint16(20941), + 64: uint16(20992), + 65: uint16(21776), + 66: uint16(22612), + 67: uint16(22616), + 68: uint16(22871), + 69: uint16(23445), + 70: uint16(23798), + 71: uint16(23947), + 72: uint16(24764), + 73: uint16(25237), + 74: uint16(25645), + 75: uint16(26481), + 76: uint16(26691), + 77: uint16(26812), + 78: uint16(26847), + 79: uint16(30423), + 80: uint16(28120), + 81: uint16(28271), + 82: uint16(28059), + 83: uint16(28783), + 84: uint16(29128), + 85: uint16(24403), + 86: uint16(30168), + 87: uint16(31095), + 88: uint16(31561), + 89: uint16(31572), + 90: uint16(31570), + 91: uint16(31958), + 92: uint16(32113), + 93: uint16(21040), + }, + 37: { + 0: uint16(33891), + 1: uint16(34153), + 2: uint16(34276), + 3: uint16(35342), + 4: uint16(35588), + 5: uint16(35910), + 6: uint16(36367), + 7: uint16(36867), + 8: uint16(36879), + 9: uint16(37913), + 10: uint16(38518), + 11: uint16(38957), + 12: uint16(39472), + 13: uint16(38360), + 14: uint16(20685), + 15: uint16(21205), + 16: uint16(21516), + 17: uint16(22530), + 18: uint16(23566), + 19: uint16(24999), + 20: uint16(25758), + 21: uint16(27934), + 22: uint16(30643), + 23: uint16(31461), + 24: uint16(33012), + 25: uint16(33796), + 26: uint16(36947), + 27: uint16(37509), + 28: uint16(23776), + 29: uint16(40199), + 30: uint16(21311), + 31: uint16(24471), + 32: uint16(24499), + 33: uint16(28060), + 34: uint16(29305), + 35: uint16(30563), + 36: uint16(31167), + 37: uint16(31716), + 38: uint16(27602), + 39: uint16(29420), + 40: uint16(35501), + 41: uint16(26627), + 42: uint16(27233), + 43: uint16(20984), + 44: uint16(31361), + 45: uint16(26932), + 46: uint16(23626), + 47: uint16(40182), + 48: uint16(33515), + 49: uint16(23493), + 50: uint16(37193), + 51: uint16(28702), + 52: uint16(22136), + 53: uint16(23663), + 54: uint16(24775), + 55: uint16(25958), + 56: uint16(27788), + 57: uint16(35930), + 58: uint16(36929), + 59: uint16(38931), + 60: uint16(21585), + 61: uint16(26311), + 62: uint16(37389), + 63: uint16(22856), + 64: uint16(37027), + 65: uint16(20869), + 66: uint16(20045), + 67: uint16(20970), + 68: uint16(34201), + 69: uint16(35598), + 70: uint16(28760), + 71: uint16(25466), + 72: uint16(37707), + 73: uint16(26978), + 74: uint16(39348), + 75: uint16(32260), + 76: uint16(30071), + 77: uint16(21335), + 78: uint16(26976), + 79: uint16(36575), + 80: uint16(38627), + 81: uint16(27741), + 82: uint16(20108), + 83: uint16(23612), + 84: uint16(24336), + 85: uint16(36841), + 86: uint16(21250), + 87: uint16(36049), + 88: uint16(32905), + 89: uint16(34425), + 90: uint16(24319), + 91: uint16(26085), + 92: uint16(20083), + 93: uint16(20837), + }, + 38: { + 0: uint16(22914), + 1: uint16(23615), + 2: uint16(38894), + 3: uint16(20219), + 4: uint16(22922), + 5: uint16(24525), + 6: uint16(35469), + 7: uint16(28641), + 8: uint16(31152), + 9: uint16(31074), + 10: uint16(23527), + 11: uint16(33905), + 12: uint16(29483), + 13: uint16(29105), + 14: uint16(24180), + 15: uint16(24565), + 16: uint16(25467), + 17: uint16(25754), + 18: uint16(29123), + 19: uint16(31896), + 20: uint16(20035), + 21: uint16(24316), + 22: uint16(20043), + 23: uint16(22492), + 24: uint16(22178), + 25: uint16(24745), + 26: uint16(28611), + 27: uint16(32013), + 28: uint16(33021), + 29: uint16(33075), + 30: uint16(33215), + 31: uint16(36786), + 32: uint16(35223), + 33: uint16(34468), + 34: uint16(24052), + 35: uint16(25226), + 36: uint16(25773), + 37: uint16(35207), + 38: uint16(26487), + 39: uint16(27874), + 40: uint16(27966), + 41: uint16(29750), + 42: uint16(30772), + 43: uint16(23110), + 44: uint16(32629), + 45: uint16(33453), + 46: uint16(39340), + 47: uint16(20467), + 48: uint16(24259), + 49: uint16(25309), + 50: uint16(25490), + 51: uint16(25943), + 52: uint16(26479), + 53: uint16(30403), + 54: uint16(29260), + 55: uint16(32972), + 56: uint16(32954), + 57: uint16(36649), + 58: uint16(37197), + 59: uint16(20493), + 60: uint16(22521), + 61: uint16(23186), + 62: uint16(26757), + 63: uint16(26995), + 64: uint16(29028), + 65: uint16(29437), + 66: uint16(36023), + 67: uint16(22770), + 68: uint16(36064), + 69: uint16(38506), + 70: uint16(36889), + 71: uint16(34687), + 72: uint16(31204), + 73: uint16(30695), + 74: uint16(33833), + 75: uint16(20271), + 76: uint16(21093), + 77: uint16(21338), + 78: uint16(25293), + 79: uint16(26575), + 80: uint16(27850), + 81: uint16(30333), + 82: uint16(31636), + 83: uint16(31893), + 84: uint16(33334), + 85: uint16(34180), + 86: uint16(36843), + 87: uint16(26333), + 88: uint16(28448), + 89: uint16(29190), + 90: uint16(32283), + 91: uint16(33707), + 92: uint16(39361), + 93: uint16(40614), + }, + 39: { + 0: uint16(20989), + 1: uint16(31665), + 2: uint16(30834), + 3: uint16(31672), + 4: uint16(32903), + 5: uint16(31560), + 6: uint16(27368), + 7: uint16(24161), + 8: uint16(32908), + 9: uint16(30033), + 10: uint16(30048), + 11: uint16(20843), + 12: uint16(37474), + 13: uint16(28300), + 14: uint16(30330), + 15: uint16(37271), + 16: uint16(39658), + 17: uint16(20240), + 18: uint16(32624), + 19: uint16(25244), + 20: uint16(31567), + 21: uint16(38309), + 22: uint16(40169), + 23: uint16(22138), + 24: uint16(22617), + 25: uint16(34532), + 26: uint16(38588), + 27: uint16(20276), + 28: uint16(21028), + 29: uint16(21322), + 30: uint16(21453), + 31: uint16(21467), + 32: uint16(24070), + 33: uint16(25644), + 34: uint16(26001), + 35: uint16(26495), + 36: uint16(27710), + 37: uint16(27726), + 38: uint16(29256), + 39: uint16(29359), + 40: uint16(29677), + 41: uint16(30036), + 42: uint16(32321), + 43: uint16(33324), + 44: uint16(34281), + 45: uint16(36009), + 46: uint16(31684), + 47: uint16(37318), + 48: uint16(29033), + 49: uint16(38930), + 50: uint16(39151), + 51: uint16(25405), + 52: uint16(26217), + 53: uint16(30058), + 54: uint16(30436), + 55: uint16(30928), + 56: uint16(34115), + 57: uint16(34542), + 58: uint16(21290), + 59: uint16(21329), + 60: uint16(21542), + 61: uint16(22915), + 62: uint16(24199), + 63: uint16(24444), + 64: uint16(24754), + 65: uint16(25161), + 66: uint16(25209), + 67: uint16(25259), + 68: uint16(26000), + 69: uint16(27604), + 70: uint16(27852), + 71: uint16(30130), + 72: uint16(30382), + 73: uint16(30865), + 74: uint16(31192), + 75: uint16(32203), + 76: uint16(32631), + 77: uint16(32933), + 78: uint16(34987), + 79: uint16(35513), + 80: uint16(36027), + 81: uint16(36991), + 82: uint16(38750), + 83: uint16(39131), + 84: uint16(27147), + 85: uint16(31800), + 86: uint16(20633), + 87: uint16(23614), + 88: uint16(24494), + 89: uint16(26503), + 90: uint16(27608), + 91: uint16(29749), + 92: uint16(30473), + 93: uint16(32654), + }, + 40: { + 0: uint16(40763), + 1: uint16(26570), + 2: uint16(31255), + 3: uint16(21305), + 4: uint16(30091), + 5: uint16(39661), + 6: uint16(24422), + 7: uint16(33181), + 8: uint16(33777), + 9: uint16(32920), + 10: uint16(24380), + 11: uint16(24517), + 12: uint16(30050), + 13: uint16(31558), + 14: uint16(36924), + 15: uint16(26727), + 16: uint16(23019), + 17: uint16(23195), + 18: uint16(32016), + 19: uint16(30334), + 20: uint16(35628), + 21: uint16(20469), + 22: uint16(24426), + 23: uint16(27161), + 24: uint16(27703), + 25: uint16(28418), + 26: uint16(29922), + 27: uint16(31080), + 28: uint16(34920), + 29: uint16(35413), + 30: uint16(35961), + 31: uint16(24287), + 32: uint16(25551), + 33: uint16(30149), + 34: uint16(31186), + 35: uint16(33495), + 36: uint16(37672), + 37: uint16(37618), + 38: uint16(33948), + 39: uint16(34541), + 40: uint16(39981), + 41: uint16(21697), + 42: uint16(24428), + 43: uint16(25996), + 44: uint16(27996), + 45: uint16(28693), + 46: uint16(36007), + 47: uint16(36051), + 48: uint16(38971), + 49: uint16(25935), + 50: uint16(29942), + 51: uint16(19981), + 52: uint16(20184), + 53: uint16(22496), + 54: uint16(22827), + 55: uint16(23142), + 56: uint16(23500), + 57: uint16(20904), + 58: uint16(24067), + 59: uint16(24220), + 60: uint16(24598), + 61: uint16(25206), + 62: uint16(25975), + 63: uint16(26023), + 64: uint16(26222), + 65: uint16(28014), + 66: uint16(29238), + 67: uint16(31526), + 68: uint16(33104), + 69: uint16(33178), + 70: uint16(33433), + 71: uint16(35676), + 72: uint16(36000), + 73: uint16(36070), + 74: uint16(36212), + 75: uint16(38428), + 76: uint16(38468), + 77: uint16(20398), + 78: uint16(25771), + 79: uint16(27494), + 80: uint16(33310), + 81: uint16(33889), + 82: uint16(34154), + 83: uint16(37096), + 84: uint16(23553), + 85: uint16(26963), + 86: uint16(39080), + 87: uint16(33914), + 88: uint16(34135), + 89: uint16(20239), + 90: uint16(21103), + 91: uint16(24489), + 92: uint16(24133), + 93: uint16(26381), + }, + 41: { + 0: uint16(31119), + 1: uint16(33145), + 2: uint16(35079), + 3: uint16(35206), + 4: uint16(28149), + 5: uint16(24343), + 6: uint16(25173), + 7: uint16(27832), + 8: uint16(20175), + 9: uint16(29289), + 10: uint16(39826), + 11: uint16(20998), + 12: uint16(21563), + 13: uint16(22132), + 14: uint16(22707), + 15: uint16(24996), + 16: uint16(25198), + 17: uint16(28954), + 18: uint16(22894), + 19: uint16(31881), + 20: uint16(31966), + 21: uint16(32027), + 22: uint16(38640), + 23: uint16(25991), + 24: uint16(32862), + 25: uint16(19993), + 26: uint16(20341), + 27: uint16(20853), + 28: uint16(22592), + 29: uint16(24163), + 30: uint16(24179), + 31: uint16(24330), + 32: uint16(26564), + 33: uint16(20006), + 34: uint16(34109), + 35: uint16(38281), + 36: uint16(38491), + 37: uint16(31859), + 38: uint16(38913), + 39: uint16(20731), + 40: uint16(22721), + 41: uint16(30294), + 42: uint16(30887), + 43: uint16(21029), + 44: uint16(30629), + 45: uint16(34065), + 46: uint16(31622), + 47: uint16(20559), + 48: uint16(22793), + 49: uint16(29255), + 50: uint16(31687), + 51: uint16(32232), + 52: uint16(36794), + 53: uint16(36820), + 54: uint16(36941), + 55: uint16(20415), + 56: uint16(21193), + 57: uint16(23081), + 58: uint16(24321), + 59: uint16(38829), + 60: uint16(20445), + 61: uint16(33303), + 62: uint16(37610), + 63: uint16(22275), + 64: uint16(25429), + 65: uint16(27497), + 66: uint16(29995), + 67: uint16(35036), + 68: uint16(36628), + 69: uint16(31298), + 70: uint16(21215), + 71: uint16(22675), + 72: uint16(24917), + 73: uint16(25098), + 74: uint16(26286), + 75: uint16(27597), + 76: uint16(31807), + 77: uint16(33769), + 78: uint16(20515), + 79: uint16(20472), + 80: uint16(21253), + 81: uint16(21574), + 82: uint16(22577), + 83: uint16(22857), + 84: uint16(23453), + 85: uint16(23792), + 86: uint16(23791), + 87: uint16(23849), + 88: uint16(24214), + 89: uint16(25265), + 90: uint16(25447), + 91: uint16(25918), + 92: uint16(26041), + 93: uint16(26379), + }, + 42: { + 0: uint16(27861), + 1: uint16(27873), + 2: uint16(28921), + 3: uint16(30770), + 4: uint16(32299), + 5: uint16(32990), + 6: uint16(33459), + 7: uint16(33804), + 8: uint16(34028), + 9: uint16(34562), + 10: uint16(35090), + 11: uint16(35370), + 12: uint16(35914), + 13: uint16(37030), + 14: uint16(37586), + 15: uint16(39165), + 16: uint16(40179), + 17: uint16(40300), + 18: uint16(20047), + 19: uint16(20129), + 20: uint16(20621), + 21: uint16(21078), + 22: uint16(22346), + 23: uint16(22952), + 24: uint16(24125), + 25: uint16(24536), + 26: uint16(24537), + 27: uint16(25151), + 28: uint16(26292), + 29: uint16(26395), + 30: uint16(26576), + 31: uint16(26834), + 32: uint16(20882), + 33: uint16(32033), + 34: uint16(32938), + 35: uint16(33192), + 36: uint16(35584), + 37: uint16(35980), + 38: uint16(36031), + 39: uint16(37502), + 40: uint16(38450), + 41: uint16(21536), + 42: uint16(38956), + 43: uint16(21271), + 44: uint16(20693), + 45: uint16(21340), + 46: uint16(22696), + 47: uint16(25778), + 48: uint16(26420), + 49: uint16(29287), + 50: uint16(30566), + 51: uint16(31302), + 52: uint16(37350), + 53: uint16(21187), + 54: uint16(27809), + 55: uint16(27526), + 56: uint16(22528), + 57: uint16(24140), + 58: uint16(22868), + 59: uint16(26412), + 60: uint16(32763), + 61: uint16(20961), + 62: uint16(30406), + 63: uint16(25705), + 64: uint16(30952), + 65: uint16(39764), + 66: uint16(40635), + 67: uint16(22475), + 68: uint16(22969), + 69: uint16(26151), + 70: uint16(26522), + 71: uint16(27598), + 72: uint16(21737), + 73: uint16(27097), + 74: uint16(24149), + 75: uint16(33180), + 76: uint16(26517), + 77: uint16(39850), + 78: uint16(26622), + 79: uint16(40018), + 80: uint16(26717), + 81: uint16(20134), + 82: uint16(20451), + 83: uint16(21448), + 84: uint16(25273), + 85: uint16(26411), + 86: uint16(27819), + 87: uint16(36804), + 88: uint16(20397), + 89: uint16(32365), + 90: uint16(40639), + 91: uint16(19975), + 92: uint16(24930), + 93: uint16(28288), + }, + 43: { + 0: uint16(28459), + 1: uint16(34067), + 2: uint16(21619), + 3: uint16(26410), + 4: uint16(39749), + 5: uint16(24051), + 6: uint16(31637), + 7: uint16(23724), + 8: uint16(23494), + 9: uint16(34588), + 10: uint16(28234), + 11: uint16(34001), + 12: uint16(31252), + 13: uint16(33032), + 14: uint16(22937), + 15: uint16(31885), + 16: uint16(27665), + 17: uint16(30496), + 18: uint16(21209), + 19: uint16(22818), + 20: uint16(28961), + 21: uint16(29279), + 22: uint16(30683), + 23: uint16(38695), + 24: uint16(40289), + 25: uint16(26891), + 26: uint16(23167), + 27: uint16(23064), + 28: uint16(20901), + 29: uint16(21517), + 30: uint16(21629), + 31: uint16(26126), + 32: uint16(30431), + 33: uint16(36855), + 34: uint16(37528), + 35: uint16(40180), + 36: uint16(23018), + 37: uint16(29277), + 38: uint16(28357), + 39: uint16(20813), + 40: uint16(26825), + 41: uint16(32191), + 42: uint16(32236), + 43: uint16(38754), + 44: uint16(40634), + 45: uint16(25720), + 46: uint16(27169), + 47: uint16(33538), + 48: uint16(22916), + 49: uint16(23391), + 50: uint16(27611), + 51: uint16(29467), + 52: uint16(30450), + 53: uint16(32178), + 54: uint16(32791), + 55: uint16(33945), + 56: uint16(20786), + 57: uint16(26408), + 58: uint16(40665), + 59: uint16(30446), + 60: uint16(26466), + 61: uint16(21247), + 62: uint16(39173), + 63: uint16(23588), + 64: uint16(25147), + 65: uint16(31870), + 66: uint16(36016), + 67: uint16(21839), + 68: uint16(24758), + 69: uint16(32011), + 70: uint16(38272), + 71: uint16(21249), + 72: uint16(20063), + 73: uint16(20918), + 74: uint16(22812), + 75: uint16(29242), + 76: uint16(32822), + 77: uint16(37326), + 78: uint16(24357), + 79: uint16(30690), + 80: uint16(21380), + 81: uint16(24441), + 82: uint16(32004), + 83: uint16(34220), + 84: uint16(35379), + 85: uint16(36493), + 86: uint16(38742), + 87: uint16(26611), + 88: uint16(34222), + 89: uint16(37971), + 90: uint16(24841), + 91: uint16(24840), + 92: uint16(27833), + 93: uint16(30290), + }, + 44: { + 0: uint16(35565), + 1: uint16(36664), + 2: uint16(21807), + 3: uint16(20305), + 4: uint16(20778), + 5: uint16(21191), + 6: uint16(21451), + 7: uint16(23461), + 8: uint16(24189), + 9: uint16(24736), + 10: uint16(24962), + 11: uint16(25558), + 12: uint16(26377), + 13: uint16(26586), + 14: uint16(28263), + 15: uint16(28044), + 16: uint16(29494), + 17: uint16(29495), + 18: uint16(30001), + 19: uint16(31056), + 20: uint16(35029), + 21: uint16(35480), + 22: uint16(36938), + 23: uint16(37009), + 24: uint16(37109), + 25: uint16(38596), + 26: uint16(34701), + 27: uint16(22805), + 28: uint16(20104), + 29: uint16(20313), + 30: uint16(19982), + 31: uint16(35465), + 32: uint16(36671), + 33: uint16(38928), + 34: uint16(20653), + 35: uint16(24188), + 36: uint16(22934), + 37: uint16(23481), + 38: uint16(24248), + 39: uint16(25562), + 40: uint16(25594), + 41: uint16(25793), + 42: uint16(26332), + 43: uint16(26954), + 44: uint16(27096), + 45: uint16(27915), + 46: uint16(28342), + 47: uint16(29076), + 48: uint16(29992), + 49: uint16(31407), + 50: uint16(32650), + 51: uint16(32768), + 52: uint16(33865), + 53: uint16(33993), + 54: uint16(35201), + 55: uint16(35617), + 56: uint16(36362), + 57: uint16(36965), + 58: uint16(38525), + 59: uint16(39178), + 60: uint16(24958), + 61: uint16(25233), + 62: uint16(27442), + 63: uint16(27779), + 64: uint16(28020), + 65: uint16(32716), + 66: uint16(32764), + 67: uint16(28096), + 68: uint16(32645), + 69: uint16(34746), + 70: uint16(35064), + 71: uint16(26469), + 72: uint16(33713), + 73: uint16(38972), + 74: uint16(38647), + 75: uint16(27931), + 76: uint16(32097), + 77: uint16(33853), + 78: uint16(37226), + 79: uint16(20081), + 80: uint16(21365), + 81: uint16(23888), + 82: uint16(27396), + 83: uint16(28651), + 84: uint16(34253), + 85: uint16(34349), + 86: uint16(35239), + 87: uint16(21033), + 88: uint16(21519), + 89: uint16(23653), + 90: uint16(26446), + 91: uint16(26792), + 92: uint16(29702), + 93: uint16(29827), + }, + 45: { + 0: uint16(30178), + 1: uint16(35023), + 2: uint16(35041), + 3: uint16(37324), + 4: uint16(38626), + 5: uint16(38520), + 6: uint16(24459), + 7: uint16(29575), + 8: uint16(31435), + 9: uint16(33870), + 10: uint16(25504), + 11: uint16(30053), + 12: uint16(21129), + 13: uint16(27969), + 14: uint16(28316), + 15: uint16(29705), + 16: uint16(30041), + 17: uint16(30827), + 18: uint16(31890), + 19: uint16(38534), + 20: uint16(31452), + 21: uint16(40845), + 22: uint16(20406), + 23: uint16(24942), + 24: uint16(26053), + 25: uint16(34396), + 26: uint16(20102), + 27: uint16(20142), + 28: uint16(20698), + 29: uint16(20001), + 30: uint16(20940), + 31: uint16(23534), + 32: uint16(26009), + 33: uint16(26753), + 34: uint16(28092), + 35: uint16(29471), + 36: uint16(30274), + 37: uint16(30637), + 38: uint16(31260), + 39: uint16(31975), + 40: uint16(33391), + 41: uint16(35538), + 42: uint16(36988), + 43: uint16(37327), + 44: uint16(38517), + 45: uint16(38936), + 46: uint16(21147), + 47: uint16(32209), + 48: uint16(20523), + 49: uint16(21400), + 50: uint16(26519), + 51: uint16(28107), + 52: uint16(29136), + 53: uint16(29747), + 54: uint16(33256), + 55: uint16(36650), + 56: uint16(38563), + 57: uint16(40023), + 58: uint16(40607), + 59: uint16(29792), + 60: uint16(22593), + 61: uint16(28057), + 62: uint16(32047), + 63: uint16(39006), + 64: uint16(20196), + 65: uint16(20278), + 66: uint16(20363), + 67: uint16(20919), + 68: uint16(21169), + 69: uint16(23994), + 70: uint16(24604), + 71: uint16(29618), + 72: uint16(31036), + 73: uint16(33491), + 74: uint16(37428), + 75: uint16(38583), + 76: uint16(38646), + 77: uint16(38666), + 78: uint16(40599), + 79: uint16(40802), + 80: uint16(26278), + 81: uint16(27508), + 82: uint16(21015), + 83: uint16(21155), + 84: uint16(28872), + 85: uint16(35010), + 86: uint16(24265), + 87: uint16(24651), + 88: uint16(24976), + 89: uint16(28451), + 90: uint16(29001), + 91: uint16(31806), + 92: uint16(32244), + 93: uint16(32879), + }, + 46: { + 0: uint16(34030), + 1: uint16(36899), + 2: uint16(37676), + 3: uint16(21570), + 4: uint16(39791), + 5: uint16(27347), + 6: uint16(28809), + 7: uint16(36034), + 8: uint16(36335), + 9: uint16(38706), + 10: uint16(21172), + 11: uint16(23105), + 12: uint16(24266), + 13: uint16(24324), + 14: uint16(26391), + 15: uint16(27004), + 16: uint16(27028), + 17: uint16(28010), + 18: uint16(28431), + 19: uint16(29282), + 20: uint16(29436), + 21: uint16(31725), + 22: uint16(32769), + 23: uint16(32894), + 24: uint16(34635), + 25: uint16(37070), + 26: uint16(20845), + 27: uint16(40595), + 28: uint16(31108), + 29: uint16(32907), + 30: uint16(37682), + 31: uint16(35542), + 32: uint16(20525), + 33: uint16(21644), + 34: uint16(35441), + 35: uint16(27498), + 36: uint16(36036), + 37: uint16(33031), + 38: uint16(24785), + 39: uint16(26528), + 40: uint16(40434), + 41: uint16(20121), + 42: uint16(20120), + 43: uint16(39952), + 44: uint16(35435), + 45: uint16(34241), + 46: uint16(34152), + 47: uint16(26880), + 48: uint16(28286), + 49: uint16(30871), + 50: uint16(33109), + }, + 47: { + 0: uint16(24332), + 1: uint16(19984), + 2: uint16(19989), + 3: uint16(20010), + 4: uint16(20017), + 5: uint16(20022), + 6: uint16(20028), + 7: uint16(20031), + 8: uint16(20034), + 9: uint16(20054), + 10: uint16(20056), + 11: uint16(20098), + 12: uint16(20101), + 13: uint16(35947), + 14: uint16(20106), + 15: uint16(33298), + 16: uint16(24333), + 17: uint16(20110), + 18: uint16(20126), + 19: uint16(20127), + 20: uint16(20128), + 21: uint16(20130), + 22: uint16(20144), + 23: uint16(20147), + 24: uint16(20150), + 25: uint16(20174), + 26: uint16(20173), + 27: uint16(20164), + 28: uint16(20166), + 29: uint16(20162), + 30: uint16(20183), + 31: uint16(20190), + 32: uint16(20205), + 33: uint16(20191), + 34: uint16(20215), + 35: uint16(20233), + 36: uint16(20314), + 37: uint16(20272), + 38: uint16(20315), + 39: uint16(20317), + 40: uint16(20311), + 41: uint16(20295), + 42: uint16(20342), + 43: uint16(20360), + 44: uint16(20367), + 45: uint16(20376), + 46: uint16(20347), + 47: uint16(20329), + 48: uint16(20336), + 49: uint16(20369), + 50: uint16(20335), + 51: uint16(20358), + 52: uint16(20374), + 53: uint16(20760), + 54: uint16(20436), + 55: uint16(20447), + 56: uint16(20430), + 57: uint16(20440), + 58: uint16(20443), + 59: uint16(20433), + 60: uint16(20442), + 61: uint16(20432), + 62: uint16(20452), + 63: uint16(20453), + 64: uint16(20506), + 65: uint16(20520), + 66: uint16(20500), + 67: uint16(20522), + 68: uint16(20517), + 69: uint16(20485), + 70: uint16(20252), + 71: uint16(20470), + 72: uint16(20513), + 73: uint16(20521), + 74: uint16(20524), + 75: uint16(20478), + 76: uint16(20463), + 77: uint16(20497), + 78: uint16(20486), + 79: uint16(20547), + 80: uint16(20551), + 81: uint16(26371), + 82: uint16(20565), + 83: uint16(20560), + 84: uint16(20552), + 85: uint16(20570), + 86: uint16(20566), + 87: uint16(20588), + 88: uint16(20600), + 89: uint16(20608), + 90: uint16(20634), + 91: uint16(20613), + 92: uint16(20660), + 93: uint16(20658), + }, + 48: { + 0: uint16(20681), + 1: uint16(20682), + 2: uint16(20659), + 3: uint16(20674), + 4: uint16(20694), + 5: uint16(20702), + 6: uint16(20709), + 7: uint16(20717), + 8: uint16(20707), + 9: uint16(20718), + 10: uint16(20729), + 11: uint16(20725), + 12: uint16(20745), + 13: uint16(20737), + 14: uint16(20738), + 15: uint16(20758), + 16: uint16(20757), + 17: uint16(20756), + 18: uint16(20762), + 19: uint16(20769), + 20: uint16(20794), + 21: uint16(20791), + 22: uint16(20796), + 23: uint16(20795), + 24: uint16(20799), + 25: uint16(20800), + 26: uint16(20818), + 27: uint16(20812), + 28: uint16(20820), + 29: uint16(20834), + 30: uint16(31480), + 31: uint16(20841), + 32: uint16(20842), + 33: uint16(20846), + 34: uint16(20864), + 35: uint16(20866), + 36: uint16(22232), + 37: uint16(20876), + 38: uint16(20873), + 39: uint16(20879), + 40: uint16(20881), + 41: uint16(20883), + 42: uint16(20885), + 43: uint16(20886), + 44: uint16(20900), + 45: uint16(20902), + 46: uint16(20898), + 47: uint16(20905), + 48: uint16(20906), + 49: uint16(20907), + 50: uint16(20915), + 51: uint16(20913), + 52: uint16(20914), + 53: uint16(20912), + 54: uint16(20917), + 55: uint16(20925), + 56: uint16(20933), + 57: uint16(20937), + 58: uint16(20955), + 59: uint16(20960), + 60: uint16(34389), + 61: uint16(20969), + 62: uint16(20973), + 63: uint16(20976), + 64: uint16(20981), + 65: uint16(20990), + 66: uint16(20996), + 67: uint16(21003), + 68: uint16(21012), + 69: uint16(21006), + 70: uint16(21031), + 71: uint16(21034), + 72: uint16(21038), + 73: uint16(21043), + 74: uint16(21049), + 75: uint16(21071), + 76: uint16(21060), + 77: uint16(21067), + 78: uint16(21068), + 79: uint16(21086), + 80: uint16(21076), + 81: uint16(21098), + 82: uint16(21108), + 83: uint16(21097), + 84: uint16(21107), + 85: uint16(21119), + 86: uint16(21117), + 87: uint16(21133), + 88: uint16(21140), + 89: uint16(21138), + 90: uint16(21105), + 91: uint16(21128), + 92: uint16(21137), + 93: uint16(36776), + }, + 49: { + 0: uint16(36775), + 1: uint16(21164), + 2: uint16(21165), + 3: uint16(21180), + 4: uint16(21173), + 5: uint16(21185), + 6: uint16(21197), + 7: uint16(21207), + 8: uint16(21214), + 9: uint16(21219), + 10: uint16(21222), + 11: uint16(39149), + 12: uint16(21216), + 13: uint16(21235), + 14: uint16(21237), + 15: uint16(21240), + 16: uint16(21241), + 17: uint16(21254), + 18: uint16(21256), + 19: uint16(30008), + 20: uint16(21261), + 21: uint16(21264), + 22: uint16(21263), + 23: uint16(21269), + 24: uint16(21274), + 25: uint16(21283), + 26: uint16(21295), + 27: uint16(21297), + 28: uint16(21299), + 29: uint16(21304), + 30: uint16(21312), + 31: uint16(21318), + 32: uint16(21317), + 33: uint16(19991), + 34: uint16(21321), + 35: uint16(21325), + 36: uint16(20950), + 37: uint16(21342), + 38: uint16(21353), + 39: uint16(21358), + 40: uint16(22808), + 41: uint16(21371), + 42: uint16(21367), + 43: uint16(21378), + 44: uint16(21398), + 45: uint16(21408), + 46: uint16(21414), + 47: uint16(21413), + 48: uint16(21422), + 49: uint16(21424), + 50: uint16(21430), + 51: uint16(21443), + 52: uint16(31762), + 53: uint16(38617), + 54: uint16(21471), + 55: uint16(26364), + 56: uint16(29166), + 57: uint16(21486), + 58: uint16(21480), + 59: uint16(21485), + 60: uint16(21498), + 61: uint16(21505), + 62: uint16(21565), + 63: uint16(21568), + 64: uint16(21548), + 65: uint16(21549), + 66: uint16(21564), + 67: uint16(21550), + 68: uint16(21558), + 69: uint16(21545), + 70: uint16(21533), + 71: uint16(21582), + 72: uint16(21647), + 73: uint16(21621), + 74: uint16(21646), + 75: uint16(21599), + 76: uint16(21617), + 77: uint16(21623), + 78: uint16(21616), + 79: uint16(21650), + 80: uint16(21627), + 81: uint16(21632), + 82: uint16(21622), + 83: uint16(21636), + 84: uint16(21648), + 85: uint16(21638), + 86: uint16(21703), + 87: uint16(21666), + 88: uint16(21688), + 89: uint16(21669), + 90: uint16(21676), + 91: uint16(21700), + 92: uint16(21704), + 93: uint16(21672), + }, + 50: { + 0: uint16(21675), + 1: uint16(21698), + 2: uint16(21668), + 3: uint16(21694), + 4: uint16(21692), + 5: uint16(21720), + 6: uint16(21733), + 7: uint16(21734), + 8: uint16(21775), + 9: uint16(21780), + 10: uint16(21757), + 11: uint16(21742), + 12: uint16(21741), + 13: uint16(21754), + 14: uint16(21730), + 15: uint16(21817), + 16: uint16(21824), + 17: uint16(21859), + 18: uint16(21836), + 19: uint16(21806), + 20: uint16(21852), + 21: uint16(21829), + 22: uint16(21846), + 23: uint16(21847), + 24: uint16(21816), + 25: uint16(21811), + 26: uint16(21853), + 27: uint16(21913), + 28: uint16(21888), + 29: uint16(21679), + 30: uint16(21898), + 31: uint16(21919), + 32: uint16(21883), + 33: uint16(21886), + 34: uint16(21912), + 35: uint16(21918), + 36: uint16(21934), + 37: uint16(21884), + 38: uint16(21891), + 39: uint16(21929), + 40: uint16(21895), + 41: uint16(21928), + 42: uint16(21978), + 43: uint16(21957), + 44: uint16(21983), + 45: uint16(21956), + 46: uint16(21980), + 47: uint16(21988), + 48: uint16(21972), + 49: uint16(22036), + 50: uint16(22007), + 51: uint16(22038), + 52: uint16(22014), + 53: uint16(22013), + 54: uint16(22043), + 55: uint16(22009), + 56: uint16(22094), + 57: uint16(22096), + 58: uint16(29151), + 59: uint16(22068), + 60: uint16(22070), + 61: uint16(22066), + 62: uint16(22072), + 63: uint16(22123), + 64: uint16(22116), + 65: uint16(22063), + 66: uint16(22124), + 67: uint16(22122), + 68: uint16(22150), + 69: uint16(22144), + 70: uint16(22154), + 71: uint16(22176), + 72: uint16(22164), + 73: uint16(22159), + 74: uint16(22181), + 75: uint16(22190), + 76: uint16(22198), + 77: uint16(22196), + 78: uint16(22210), + 79: uint16(22204), + 80: uint16(22209), + 81: uint16(22211), + 82: uint16(22208), + 83: uint16(22216), + 84: uint16(22222), + 85: uint16(22225), + 86: uint16(22227), + 87: uint16(22231), + 88: uint16(22254), + 89: uint16(22265), + 90: uint16(22272), + 91: uint16(22271), + 92: uint16(22276), + 93: uint16(22281), + }, + 51: { + 0: uint16(22280), + 1: uint16(22283), + 2: uint16(22285), + 3: uint16(22291), + 4: uint16(22296), + 5: uint16(22294), + 6: uint16(21959), + 7: uint16(22300), + 8: uint16(22310), + 9: uint16(22327), + 10: uint16(22328), + 11: uint16(22350), + 12: uint16(22331), + 13: uint16(22336), + 14: uint16(22351), + 15: uint16(22377), + 16: uint16(22464), + 17: uint16(22408), + 18: uint16(22369), + 19: uint16(22399), + 20: uint16(22409), + 21: uint16(22419), + 22: uint16(22432), + 23: uint16(22451), + 24: uint16(22436), + 25: uint16(22442), + 26: uint16(22448), + 27: uint16(22467), + 28: uint16(22470), + 29: uint16(22484), + 30: uint16(22482), + 31: uint16(22483), + 32: uint16(22538), + 33: uint16(22486), + 34: uint16(22499), + 35: uint16(22539), + 36: uint16(22553), + 37: uint16(22557), + 38: uint16(22642), + 39: uint16(22561), + 40: uint16(22626), + 41: uint16(22603), + 42: uint16(22640), + 43: uint16(27584), + 44: uint16(22610), + 45: uint16(22589), + 46: uint16(22649), + 47: uint16(22661), + 48: uint16(22713), + 49: uint16(22687), + 50: uint16(22699), + 51: uint16(22714), + 52: uint16(22750), + 53: uint16(22715), + 54: uint16(22712), + 55: uint16(22702), + 56: uint16(22725), + 57: uint16(22739), + 58: uint16(22737), + 59: uint16(22743), + 60: uint16(22745), + 61: uint16(22744), + 62: uint16(22757), + 63: uint16(22748), + 64: uint16(22756), + 65: uint16(22751), + 66: uint16(22767), + 67: uint16(22778), + 68: uint16(22777), + 69: uint16(22779), + 70: uint16(22780), + 71: uint16(22781), + 72: uint16(22786), + 73: uint16(22794), + 74: uint16(22800), + 75: uint16(22811), + 76: uint16(26790), + 77: uint16(22821), + 78: uint16(22828), + 79: uint16(22829), + 80: uint16(22834), + 81: uint16(22840), + 82: uint16(22846), + 83: uint16(31442), + 84: uint16(22869), + 85: uint16(22864), + 86: uint16(22862), + 87: uint16(22874), + 88: uint16(22872), + 89: uint16(22882), + 90: uint16(22880), + 91: uint16(22887), + 92: uint16(22892), + 93: uint16(22889), + }, + 52: { + 0: uint16(22904), + 1: uint16(22913), + 2: uint16(22941), + 3: uint16(20318), + 4: uint16(20395), + 5: uint16(22947), + 6: uint16(22962), + 7: uint16(22982), + 8: uint16(23016), + 9: uint16(23004), + 10: uint16(22925), + 11: uint16(23001), + 12: uint16(23002), + 13: uint16(23077), + 14: uint16(23071), + 15: uint16(23057), + 16: uint16(23068), + 17: uint16(23049), + 18: uint16(23066), + 19: uint16(23104), + 20: uint16(23148), + 21: uint16(23113), + 22: uint16(23093), + 23: uint16(23094), + 24: uint16(23138), + 25: uint16(23146), + 26: uint16(23194), + 27: uint16(23228), + 28: uint16(23230), + 29: uint16(23243), + 30: uint16(23234), + 31: uint16(23229), + 32: uint16(23267), + 33: uint16(23255), + 34: uint16(23270), + 35: uint16(23273), + 36: uint16(23254), + 37: uint16(23290), + 38: uint16(23291), + 39: uint16(23308), + 40: uint16(23307), + 41: uint16(23318), + 42: uint16(23346), + 43: uint16(23248), + 44: uint16(23338), + 45: uint16(23350), + 46: uint16(23358), + 47: uint16(23363), + 48: uint16(23365), + 49: uint16(23360), + 50: uint16(23377), + 51: uint16(23381), + 52: uint16(23386), + 53: uint16(23387), + 54: uint16(23397), + 55: uint16(23401), + 56: uint16(23408), + 57: uint16(23411), + 58: uint16(23413), + 59: uint16(23416), + 60: uint16(25992), + 61: uint16(23418), + 62: uint16(23424), + 63: uint16(23427), + 64: uint16(23462), + 65: uint16(23480), + 66: uint16(23491), + 67: uint16(23495), + 68: uint16(23497), + 69: uint16(23508), + 70: uint16(23504), + 71: uint16(23524), + 72: uint16(23526), + 73: uint16(23522), + 74: uint16(23518), + 75: uint16(23525), + 76: uint16(23531), + 77: uint16(23536), + 78: uint16(23542), + 79: uint16(23539), + 80: uint16(23557), + 81: uint16(23559), + 82: uint16(23560), + 83: uint16(23565), + 84: uint16(23571), + 85: uint16(23584), + 86: uint16(23586), + 87: uint16(23592), + 88: uint16(23608), + 89: uint16(23609), + 90: uint16(23617), + 91: uint16(23622), + 92: uint16(23630), + 93: uint16(23635), + }, + 53: { + 0: uint16(23632), + 1: uint16(23631), + 2: uint16(23409), + 3: uint16(23660), + 4: uint16(23662), + 5: uint16(20066), + 6: uint16(23670), + 7: uint16(23673), + 8: uint16(23692), + 9: uint16(23697), + 10: uint16(23700), + 11: uint16(22939), + 12: uint16(23723), + 13: uint16(23739), + 14: uint16(23734), + 15: uint16(23740), + 16: uint16(23735), + 17: uint16(23749), + 18: uint16(23742), + 19: uint16(23751), + 20: uint16(23769), + 21: uint16(23785), + 22: uint16(23805), + 23: uint16(23802), + 24: uint16(23789), + 25: uint16(23948), + 26: uint16(23786), + 27: uint16(23819), + 28: uint16(23829), + 29: uint16(23831), + 30: uint16(23900), + 31: uint16(23839), + 32: uint16(23835), + 33: uint16(23825), + 34: uint16(23828), + 35: uint16(23842), + 36: uint16(23834), + 37: uint16(23833), + 38: uint16(23832), + 39: uint16(23884), + 40: uint16(23890), + 41: uint16(23886), + 42: uint16(23883), + 43: uint16(23916), + 44: uint16(23923), + 45: uint16(23926), + 46: uint16(23943), + 47: uint16(23940), + 48: uint16(23938), + 49: uint16(23970), + 50: uint16(23965), + 51: uint16(23980), + 52: uint16(23982), + 53: uint16(23997), + 54: uint16(23952), + 55: uint16(23991), + 56: uint16(23996), + 57: uint16(24009), + 58: uint16(24013), + 59: uint16(24019), + 60: uint16(24018), + 61: uint16(24022), + 62: uint16(24027), + 63: uint16(24043), + 64: uint16(24050), + 65: uint16(24053), + 66: uint16(24075), + 67: uint16(24090), + 68: uint16(24089), + 69: uint16(24081), + 70: uint16(24091), + 71: uint16(24118), + 72: uint16(24119), + 73: uint16(24132), + 74: uint16(24131), + 75: uint16(24128), + 76: uint16(24142), + 77: uint16(24151), + 78: uint16(24148), + 79: uint16(24159), + 80: uint16(24162), + 81: uint16(24164), + 82: uint16(24135), + 83: uint16(24181), + 84: uint16(24182), + 85: uint16(24186), + 86: uint16(40636), + 87: uint16(24191), + 88: uint16(24224), + 89: uint16(24257), + 90: uint16(24258), + 91: uint16(24264), + 92: uint16(24272), + 93: uint16(24271), + }, + 54: { + 0: uint16(24278), + 1: uint16(24291), + 2: uint16(24285), + 3: uint16(24282), + 4: uint16(24283), + 5: uint16(24290), + 6: uint16(24289), + 7: uint16(24296), + 8: uint16(24297), + 9: uint16(24300), + 10: uint16(24305), + 11: uint16(24307), + 12: uint16(24304), + 13: uint16(24308), + 14: uint16(24312), + 15: uint16(24318), + 16: uint16(24323), + 17: uint16(24329), + 18: uint16(24413), + 19: uint16(24412), + 20: uint16(24331), + 21: uint16(24337), + 22: uint16(24342), + 23: uint16(24361), + 24: uint16(24365), + 25: uint16(24376), + 26: uint16(24385), + 27: uint16(24392), + 28: uint16(24396), + 29: uint16(24398), + 30: uint16(24367), + 31: uint16(24401), + 32: uint16(24406), + 33: uint16(24407), + 34: uint16(24409), + 35: uint16(24417), + 36: uint16(24429), + 37: uint16(24435), + 38: uint16(24439), + 39: uint16(24451), + 40: uint16(24450), + 41: uint16(24447), + 42: uint16(24458), + 43: uint16(24456), + 44: uint16(24465), + 45: uint16(24455), + 46: uint16(24478), + 47: uint16(24473), + 48: uint16(24472), + 49: uint16(24480), + 50: uint16(24488), + 51: uint16(24493), + 52: uint16(24508), + 53: uint16(24534), + 54: uint16(24571), + 55: uint16(24548), + 56: uint16(24568), + 57: uint16(24561), + 58: uint16(24541), + 59: uint16(24755), + 60: uint16(24575), + 61: uint16(24609), + 62: uint16(24672), + 63: uint16(24601), + 64: uint16(24592), + 65: uint16(24617), + 66: uint16(24590), + 67: uint16(24625), + 68: uint16(24603), + 69: uint16(24597), + 70: uint16(24619), + 71: uint16(24614), + 72: uint16(24591), + 73: uint16(24634), + 74: uint16(24666), + 75: uint16(24641), + 76: uint16(24682), + 77: uint16(24695), + 78: uint16(24671), + 79: uint16(24650), + 80: uint16(24646), + 81: uint16(24653), + 82: uint16(24675), + 83: uint16(24643), + 84: uint16(24676), + 85: uint16(24642), + 86: uint16(24684), + 87: uint16(24683), + 88: uint16(24665), + 89: uint16(24705), + 90: uint16(24717), + 91: uint16(24807), + 92: uint16(24707), + 93: uint16(24730), + }, + 55: { + 0: uint16(24708), + 1: uint16(24731), + 2: uint16(24726), + 3: uint16(24727), + 4: uint16(24722), + 5: uint16(24743), + 6: uint16(24715), + 7: uint16(24801), + 8: uint16(24760), + 9: uint16(24800), + 10: uint16(24787), + 11: uint16(24756), + 12: uint16(24560), + 13: uint16(24765), + 14: uint16(24774), + 15: uint16(24757), + 16: uint16(24792), + 17: uint16(24909), + 18: uint16(24853), + 19: uint16(24838), + 20: uint16(24822), + 21: uint16(24823), + 22: uint16(24832), + 23: uint16(24820), + 24: uint16(24826), + 25: uint16(24835), + 26: uint16(24865), + 27: uint16(24827), + 28: uint16(24817), + 29: uint16(24845), + 30: uint16(24846), + 31: uint16(24903), + 32: uint16(24894), + 33: uint16(24872), + 34: uint16(24871), + 35: uint16(24906), + 36: uint16(24895), + 37: uint16(24892), + 38: uint16(24876), + 39: uint16(24884), + 40: uint16(24893), + 41: uint16(24898), + 42: uint16(24900), + 43: uint16(24947), + 44: uint16(24951), + 45: uint16(24920), + 46: uint16(24921), + 47: uint16(24922), + 48: uint16(24939), + 49: uint16(24948), + 50: uint16(24943), + 51: uint16(24933), + 52: uint16(24945), + 53: uint16(24927), + 54: uint16(24925), + 55: uint16(24915), + 56: uint16(24949), + 57: uint16(24985), + 58: uint16(24982), + 59: uint16(24967), + 60: uint16(25004), + 61: uint16(24980), + 62: uint16(24986), + 63: uint16(24970), + 64: uint16(24977), + 65: uint16(25003), + 66: uint16(25006), + 67: uint16(25036), + 68: uint16(25034), + 69: uint16(25033), + 70: uint16(25079), + 71: uint16(25032), + 72: uint16(25027), + 73: uint16(25030), + 74: uint16(25018), + 75: uint16(25035), + 76: uint16(32633), + 77: uint16(25037), + 78: uint16(25062), + 79: uint16(25059), + 80: uint16(25078), + 81: uint16(25082), + 82: uint16(25076), + 83: uint16(25087), + 84: uint16(25085), + 85: uint16(25084), + 86: uint16(25086), + 87: uint16(25088), + 88: uint16(25096), + 89: uint16(25097), + 90: uint16(25101), + 91: uint16(25100), + 92: uint16(25108), + 93: uint16(25115), + }, + 56: { + 0: uint16(25118), + 1: uint16(25121), + 2: uint16(25130), + 3: uint16(25134), + 4: uint16(25136), + 5: uint16(25138), + 6: uint16(25139), + 7: uint16(25153), + 8: uint16(25166), + 9: uint16(25182), + 10: uint16(25187), + 11: uint16(25179), + 12: uint16(25184), + 13: uint16(25192), + 14: uint16(25212), + 15: uint16(25218), + 16: uint16(25225), + 17: uint16(25214), + 18: uint16(25234), + 19: uint16(25235), + 20: uint16(25238), + 21: uint16(25300), + 22: uint16(25219), + 23: uint16(25236), + 24: uint16(25303), + 25: uint16(25297), + 26: uint16(25275), + 27: uint16(25295), + 28: uint16(25343), + 29: uint16(25286), + 30: uint16(25812), + 31: uint16(25288), + 32: uint16(25308), + 33: uint16(25292), + 34: uint16(25290), + 35: uint16(25282), + 36: uint16(25287), + 37: uint16(25243), + 38: uint16(25289), + 39: uint16(25356), + 40: uint16(25326), + 41: uint16(25329), + 42: uint16(25383), + 43: uint16(25346), + 44: uint16(25352), + 45: uint16(25327), + 46: uint16(25333), + 47: uint16(25424), + 48: uint16(25406), + 49: uint16(25421), + 50: uint16(25628), + 51: uint16(25423), + 52: uint16(25494), + 53: uint16(25486), + 54: uint16(25472), + 55: uint16(25515), + 56: uint16(25462), + 57: uint16(25507), + 58: uint16(25487), + 59: uint16(25481), + 60: uint16(25503), + 61: uint16(25525), + 62: uint16(25451), + 63: uint16(25449), + 64: uint16(25534), + 65: uint16(25577), + 66: uint16(25536), + 67: uint16(25542), + 68: uint16(25571), + 69: uint16(25545), + 70: uint16(25554), + 71: uint16(25590), + 72: uint16(25540), + 73: uint16(25622), + 74: uint16(25652), + 75: uint16(25606), + 76: uint16(25619), + 77: uint16(25638), + 78: uint16(25654), + 79: uint16(25885), + 80: uint16(25623), + 81: uint16(25640), + 82: uint16(25615), + 83: uint16(25703), + 84: uint16(25711), + 85: uint16(25718), + 86: uint16(25678), + 87: uint16(25898), + 88: uint16(25749), + 89: uint16(25747), + 90: uint16(25765), + 91: uint16(25769), + 92: uint16(25736), + 93: uint16(25788), + }, + 57: { + 0: uint16(25818), + 1: uint16(25810), + 2: uint16(25797), + 3: uint16(25799), + 4: uint16(25787), + 5: uint16(25816), + 6: uint16(25794), + 7: uint16(25841), + 8: uint16(25831), + 9: uint16(33289), + 10: uint16(25824), + 11: uint16(25825), + 12: uint16(25260), + 13: uint16(25827), + 14: uint16(25839), + 15: uint16(25900), + 16: uint16(25846), + 17: uint16(25844), + 18: uint16(25842), + 19: uint16(25850), + 20: uint16(25856), + 21: uint16(25853), + 22: uint16(25880), + 23: uint16(25884), + 24: uint16(25861), + 25: uint16(25892), + 26: uint16(25891), + 27: uint16(25899), + 28: uint16(25908), + 29: uint16(25909), + 30: uint16(25911), + 31: uint16(25910), + 32: uint16(25912), + 33: uint16(30027), + 34: uint16(25928), + 35: uint16(25942), + 36: uint16(25941), + 37: uint16(25933), + 38: uint16(25944), + 39: uint16(25950), + 40: uint16(25949), + 41: uint16(25970), + 42: uint16(25976), + 43: uint16(25986), + 44: uint16(25987), + 45: uint16(35722), + 46: uint16(26011), + 47: uint16(26015), + 48: uint16(26027), + 49: uint16(26039), + 50: uint16(26051), + 51: uint16(26054), + 52: uint16(26049), + 53: uint16(26052), + 54: uint16(26060), + 55: uint16(26066), + 56: uint16(26075), + 57: uint16(26073), + 58: uint16(26080), + 59: uint16(26081), + 60: uint16(26097), + 61: uint16(26482), + 62: uint16(26122), + 63: uint16(26115), + 64: uint16(26107), + 65: uint16(26483), + 66: uint16(26165), + 67: uint16(26166), + 68: uint16(26164), + 69: uint16(26140), + 70: uint16(26191), + 71: uint16(26180), + 72: uint16(26185), + 73: uint16(26177), + 74: uint16(26206), + 75: uint16(26205), + 76: uint16(26212), + 77: uint16(26215), + 78: uint16(26216), + 79: uint16(26207), + 80: uint16(26210), + 81: uint16(26224), + 82: uint16(26243), + 83: uint16(26248), + 84: uint16(26254), + 85: uint16(26249), + 86: uint16(26244), + 87: uint16(26264), + 88: uint16(26269), + 89: uint16(26305), + 90: uint16(26297), + 91: uint16(26313), + 92: uint16(26302), + 93: uint16(26300), + }, + 58: { + 0: uint16(26308), + 1: uint16(26296), + 2: uint16(26326), + 3: uint16(26330), + 4: uint16(26336), + 5: uint16(26175), + 6: uint16(26342), + 7: uint16(26345), + 8: uint16(26352), + 9: uint16(26357), + 10: uint16(26359), + 11: uint16(26383), + 12: uint16(26390), + 13: uint16(26398), + 14: uint16(26406), + 15: uint16(26407), + 16: uint16(38712), + 17: uint16(26414), + 18: uint16(26431), + 19: uint16(26422), + 20: uint16(26433), + 21: uint16(26424), + 22: uint16(26423), + 23: uint16(26438), + 24: uint16(26462), + 25: uint16(26464), + 26: uint16(26457), + 27: uint16(26467), + 28: uint16(26468), + 29: uint16(26505), + 30: uint16(26480), + 31: uint16(26537), + 32: uint16(26492), + 33: uint16(26474), + 34: uint16(26508), + 35: uint16(26507), + 36: uint16(26534), + 37: uint16(26529), + 38: uint16(26501), + 39: uint16(26551), + 40: uint16(26607), + 41: uint16(26548), + 42: uint16(26604), + 43: uint16(26547), + 44: uint16(26601), + 45: uint16(26552), + 46: uint16(26596), + 47: uint16(26590), + 48: uint16(26589), + 49: uint16(26594), + 50: uint16(26606), + 51: uint16(26553), + 52: uint16(26574), + 53: uint16(26566), + 54: uint16(26599), + 55: uint16(27292), + 56: uint16(26654), + 57: uint16(26694), + 58: uint16(26665), + 59: uint16(26688), + 60: uint16(26701), + 61: uint16(26674), + 62: uint16(26702), + 63: uint16(26803), + 64: uint16(26667), + 65: uint16(26713), + 66: uint16(26723), + 67: uint16(26743), + 68: uint16(26751), + 69: uint16(26783), + 70: uint16(26767), + 71: uint16(26797), + 72: uint16(26772), + 73: uint16(26781), + 74: uint16(26779), + 75: uint16(26755), + 76: uint16(27310), + 77: uint16(26809), + 78: uint16(26740), + 79: uint16(26805), + 80: uint16(26784), + 81: uint16(26810), + 82: uint16(26895), + 83: uint16(26765), + 84: uint16(26750), + 85: uint16(26881), + 86: uint16(26826), + 87: uint16(26888), + 88: uint16(26840), + 89: uint16(26914), + 90: uint16(26918), + 91: uint16(26849), + 92: uint16(26892), + 93: uint16(26829), + }, + 59: { + 0: uint16(26836), + 1: uint16(26855), + 2: uint16(26837), + 3: uint16(26934), + 4: uint16(26898), + 5: uint16(26884), + 6: uint16(26839), + 7: uint16(26851), + 8: uint16(26917), + 9: uint16(26873), + 10: uint16(26848), + 11: uint16(26863), + 12: uint16(26920), + 13: uint16(26922), + 14: uint16(26906), + 15: uint16(26915), + 16: uint16(26913), + 17: uint16(26822), + 18: uint16(27001), + 19: uint16(26999), + 20: uint16(26972), + 21: uint16(27000), + 22: uint16(26987), + 23: uint16(26964), + 24: uint16(27006), + 25: uint16(26990), + 26: uint16(26937), + 27: uint16(26996), + 28: uint16(26941), + 29: uint16(26969), + 30: uint16(26928), + 31: uint16(26977), + 32: uint16(26974), + 33: uint16(26973), + 34: uint16(27009), + 35: uint16(26986), + 36: uint16(27058), + 37: uint16(27054), + 38: uint16(27088), + 39: uint16(27071), + 40: uint16(27073), + 41: uint16(27091), + 42: uint16(27070), + 43: uint16(27086), + 44: uint16(23528), + 45: uint16(27082), + 46: uint16(27101), + 47: uint16(27067), + 48: uint16(27075), + 49: uint16(27047), + 50: uint16(27182), + 51: uint16(27025), + 52: uint16(27040), + 53: uint16(27036), + 54: uint16(27029), + 55: uint16(27060), + 56: uint16(27102), + 57: uint16(27112), + 58: uint16(27138), + 59: uint16(27163), + 60: uint16(27135), + 61: uint16(27402), + 62: uint16(27129), + 63: uint16(27122), + 64: uint16(27111), + 65: uint16(27141), + 66: uint16(27057), + 67: uint16(27166), + 68: uint16(27117), + 69: uint16(27156), + 70: uint16(27115), + 71: uint16(27146), + 72: uint16(27154), + 73: uint16(27329), + 74: uint16(27171), + 75: uint16(27155), + 76: uint16(27204), + 77: uint16(27148), + 78: uint16(27250), + 79: uint16(27190), + 80: uint16(27256), + 81: uint16(27207), + 82: uint16(27234), + 83: uint16(27225), + 84: uint16(27238), + 85: uint16(27208), + 86: uint16(27192), + 87: uint16(27170), + 88: uint16(27280), + 89: uint16(27277), + 90: uint16(27296), + 91: uint16(27268), + 92: uint16(27298), + 93: uint16(27299), + }, + 60: { + 0: uint16(27287), + 1: uint16(34327), + 2: uint16(27323), + 3: uint16(27331), + 4: uint16(27330), + 5: uint16(27320), + 6: uint16(27315), + 7: uint16(27308), + 8: uint16(27358), + 9: uint16(27345), + 10: uint16(27359), + 11: uint16(27306), + 12: uint16(27354), + 13: uint16(27370), + 14: uint16(27387), + 15: uint16(27397), + 16: uint16(34326), + 17: uint16(27386), + 18: uint16(27410), + 19: uint16(27414), + 20: uint16(39729), + 21: uint16(27423), + 22: uint16(27448), + 23: uint16(27447), + 24: uint16(30428), + 25: uint16(27449), + 26: uint16(39150), + 27: uint16(27463), + 28: uint16(27459), + 29: uint16(27465), + 30: uint16(27472), + 31: uint16(27481), + 32: uint16(27476), + 33: uint16(27483), + 34: uint16(27487), + 35: uint16(27489), + 36: uint16(27512), + 37: uint16(27513), + 38: uint16(27519), + 39: uint16(27520), + 40: uint16(27524), + 41: uint16(27523), + 42: uint16(27533), + 43: uint16(27544), + 44: uint16(27541), + 45: uint16(27550), + 46: uint16(27556), + 47: uint16(27562), + 48: uint16(27563), + 49: uint16(27567), + 50: uint16(27570), + 51: uint16(27569), + 52: uint16(27571), + 53: uint16(27575), + 54: uint16(27580), + 55: uint16(27590), + 56: uint16(27595), + 57: uint16(27603), + 58: uint16(27615), + 59: uint16(27628), + 60: uint16(27627), + 61: uint16(27635), + 62: uint16(27631), + 63: uint16(40638), + 64: uint16(27656), + 65: uint16(27667), + 66: uint16(27668), + 67: uint16(27675), + 68: uint16(27684), + 69: uint16(27683), + 70: uint16(27742), + 71: uint16(27733), + 72: uint16(27746), + 73: uint16(27754), + 74: uint16(27778), + 75: uint16(27789), + 76: uint16(27802), + 77: uint16(27777), + 78: uint16(27803), + 79: uint16(27774), + 80: uint16(27752), + 81: uint16(27763), + 82: uint16(27794), + 83: uint16(27792), + 84: uint16(27844), + 85: uint16(27889), + 86: uint16(27859), + 87: uint16(27837), + 88: uint16(27863), + 89: uint16(27845), + 90: uint16(27869), + 91: uint16(27822), + 92: uint16(27825), + 93: uint16(27838), + }, + 61: { + 0: uint16(27834), + 1: uint16(27867), + 2: uint16(27887), + 3: uint16(27865), + 4: uint16(27882), + 5: uint16(27935), + 6: uint16(34893), + 7: uint16(27958), + 8: uint16(27947), + 9: uint16(27965), + 10: uint16(27960), + 11: uint16(27929), + 12: uint16(27957), + 13: uint16(27955), + 14: uint16(27922), + 15: uint16(27916), + 16: uint16(28003), + 17: uint16(28051), + 18: uint16(28004), + 19: uint16(27994), + 20: uint16(28025), + 21: uint16(27993), + 22: uint16(28046), + 23: uint16(28053), + 24: uint16(28644), + 25: uint16(28037), + 26: uint16(28153), + 27: uint16(28181), + 28: uint16(28170), + 29: uint16(28085), + 30: uint16(28103), + 31: uint16(28134), + 32: uint16(28088), + 33: uint16(28102), + 34: uint16(28140), + 35: uint16(28126), + 36: uint16(28108), + 37: uint16(28136), + 38: uint16(28114), + 39: uint16(28101), + 40: uint16(28154), + 41: uint16(28121), + 42: uint16(28132), + 43: uint16(28117), + 44: uint16(28138), + 45: uint16(28142), + 46: uint16(28205), + 47: uint16(28270), + 48: uint16(28206), + 49: uint16(28185), + 50: uint16(28274), + 51: uint16(28255), + 52: uint16(28222), + 53: uint16(28195), + 54: uint16(28267), + 55: uint16(28203), + 56: uint16(28278), + 57: uint16(28237), + 58: uint16(28191), + 59: uint16(28227), + 60: uint16(28218), + 61: uint16(28238), + 62: uint16(28196), + 63: uint16(28415), + 64: uint16(28189), + 65: uint16(28216), + 66: uint16(28290), + 67: uint16(28330), + 68: uint16(28312), + 69: uint16(28361), + 70: uint16(28343), + 71: uint16(28371), + 72: uint16(28349), + 73: uint16(28335), + 74: uint16(28356), + 75: uint16(28338), + 76: uint16(28372), + 77: uint16(28373), + 78: uint16(28303), + 79: uint16(28325), + 80: uint16(28354), + 81: uint16(28319), + 82: uint16(28481), + 83: uint16(28433), + 84: uint16(28748), + 85: uint16(28396), + 86: uint16(28408), + 87: uint16(28414), + 88: uint16(28479), + 89: uint16(28402), + 90: uint16(28465), + 91: uint16(28399), + 92: uint16(28466), + 93: uint16(28364), + }, + 62: { + 0: uint16(28478), + 1: uint16(28435), + 2: uint16(28407), + 3: uint16(28550), + 4: uint16(28538), + 5: uint16(28536), + 6: uint16(28545), + 7: uint16(28544), + 8: uint16(28527), + 9: uint16(28507), + 10: uint16(28659), + 11: uint16(28525), + 12: uint16(28546), + 13: uint16(28540), + 14: uint16(28504), + 15: uint16(28558), + 16: uint16(28561), + 17: uint16(28610), + 18: uint16(28518), + 19: uint16(28595), + 20: uint16(28579), + 21: uint16(28577), + 22: uint16(28580), + 23: uint16(28601), + 24: uint16(28614), + 25: uint16(28586), + 26: uint16(28639), + 27: uint16(28629), + 28: uint16(28652), + 29: uint16(28628), + 30: uint16(28632), + 31: uint16(28657), + 32: uint16(28654), + 33: uint16(28635), + 34: uint16(28681), + 35: uint16(28683), + 36: uint16(28666), + 37: uint16(28689), + 38: uint16(28673), + 39: uint16(28687), + 40: uint16(28670), + 41: uint16(28699), + 42: uint16(28698), + 43: uint16(28532), + 44: uint16(28701), + 45: uint16(28696), + 46: uint16(28703), + 47: uint16(28720), + 48: uint16(28734), + 49: uint16(28722), + 50: uint16(28753), + 51: uint16(28771), + 52: uint16(28825), + 53: uint16(28818), + 54: uint16(28847), + 55: uint16(28913), + 56: uint16(28844), + 57: uint16(28856), + 58: uint16(28851), + 59: uint16(28846), + 60: uint16(28895), + 61: uint16(28875), + 62: uint16(28893), + 63: uint16(28889), + 64: uint16(28937), + 65: uint16(28925), + 66: uint16(28956), + 67: uint16(28953), + 68: uint16(29029), + 69: uint16(29013), + 70: uint16(29064), + 71: uint16(29030), + 72: uint16(29026), + 73: uint16(29004), + 74: uint16(29014), + 75: uint16(29036), + 76: uint16(29071), + 77: uint16(29179), + 78: uint16(29060), + 79: uint16(29077), + 80: uint16(29096), + 81: uint16(29100), + 82: uint16(29143), + 83: uint16(29113), + 84: uint16(29118), + 85: uint16(29138), + 86: uint16(29129), + 87: uint16(29140), + 88: uint16(29134), + 89: uint16(29152), + 90: uint16(29164), + 91: uint16(29159), + 92: uint16(29173), + 93: uint16(29180), + }, + 63: { + 0: uint16(29177), + 1: uint16(29183), + 2: uint16(29197), + 3: uint16(29200), + 4: uint16(29211), + 5: uint16(29224), + 6: uint16(29229), + 7: uint16(29228), + 8: uint16(29232), + 9: uint16(29234), + 10: uint16(29243), + 11: uint16(29244), + 12: uint16(29247), + 13: uint16(29248), + 14: uint16(29254), + 15: uint16(29259), + 16: uint16(29272), + 17: uint16(29300), + 18: uint16(29310), + 19: uint16(29314), + 20: uint16(29313), + 21: uint16(29319), + 22: uint16(29330), + 23: uint16(29334), + 24: uint16(29346), + 25: uint16(29351), + 26: uint16(29369), + 27: uint16(29362), + 28: uint16(29379), + 29: uint16(29382), + 30: uint16(29380), + 31: uint16(29390), + 32: uint16(29394), + 33: uint16(29410), + 34: uint16(29408), + 35: uint16(29409), + 36: uint16(29433), + 37: uint16(29431), + 38: uint16(20495), + 39: uint16(29463), + 40: uint16(29450), + 41: uint16(29468), + 42: uint16(29462), + 43: uint16(29469), + 44: uint16(29492), + 45: uint16(29487), + 46: uint16(29481), + 47: uint16(29477), + 48: uint16(29502), + 49: uint16(29518), + 50: uint16(29519), + 51: uint16(40664), + 52: uint16(29527), + 53: uint16(29546), + 54: uint16(29544), + 55: uint16(29552), + 56: uint16(29560), + 57: uint16(29557), + 58: uint16(29563), + 59: uint16(29562), + 60: uint16(29640), + 61: uint16(29619), + 62: uint16(29646), + 63: uint16(29627), + 64: uint16(29632), + 65: uint16(29669), + 66: uint16(29678), + 67: uint16(29662), + 68: uint16(29858), + 69: uint16(29701), + 70: uint16(29807), + 71: uint16(29733), + 72: uint16(29688), + 73: uint16(29746), + 74: uint16(29754), + 75: uint16(29781), + 76: uint16(29759), + 77: uint16(29791), + 78: uint16(29785), + 79: uint16(29761), + 80: uint16(29788), + 81: uint16(29801), + 82: uint16(29808), + 83: uint16(29795), + 84: uint16(29802), + 85: uint16(29814), + 86: uint16(29822), + 87: uint16(29835), + 88: uint16(29854), + 89: uint16(29863), + 90: uint16(29898), + 91: uint16(29903), + 92: uint16(29908), + 93: uint16(29681), + }, + 64: { + 0: uint16(29920), + 1: uint16(29923), + 2: uint16(29927), + 3: uint16(29929), + 4: uint16(29934), + 5: uint16(29938), + 6: uint16(29936), + 7: uint16(29937), + 8: uint16(29944), + 9: uint16(29943), + 10: uint16(29956), + 11: uint16(29955), + 12: uint16(29957), + 13: uint16(29964), + 14: uint16(29966), + 15: uint16(29965), + 16: uint16(29973), + 17: uint16(29971), + 18: uint16(29982), + 19: uint16(29990), + 20: uint16(29996), + 21: uint16(30012), + 22: uint16(30020), + 23: uint16(30029), + 24: uint16(30026), + 25: uint16(30025), + 26: uint16(30043), + 27: uint16(30022), + 28: uint16(30042), + 29: uint16(30057), + 30: uint16(30052), + 31: uint16(30055), + 32: uint16(30059), + 33: uint16(30061), + 34: uint16(30072), + 35: uint16(30070), + 36: uint16(30086), + 37: uint16(30087), + 38: uint16(30068), + 39: uint16(30090), + 40: uint16(30089), + 41: uint16(30082), + 42: uint16(30100), + 43: uint16(30106), + 44: uint16(30109), + 45: uint16(30117), + 46: uint16(30115), + 47: uint16(30146), + 48: uint16(30131), + 49: uint16(30147), + 50: uint16(30133), + 51: uint16(30141), + 52: uint16(30136), + 53: uint16(30140), + 54: uint16(30129), + 55: uint16(30157), + 56: uint16(30154), + 57: uint16(30162), + 58: uint16(30169), + 59: uint16(30179), + 60: uint16(30174), + 61: uint16(30206), + 62: uint16(30207), + 63: uint16(30204), + 64: uint16(30209), + 65: uint16(30192), + 66: uint16(30202), + 67: uint16(30194), + 68: uint16(30195), + 69: uint16(30219), + 70: uint16(30221), + 71: uint16(30217), + 72: uint16(30239), + 73: uint16(30247), + 74: uint16(30240), + 75: uint16(30241), + 76: uint16(30242), + 77: uint16(30244), + 78: uint16(30260), + 79: uint16(30256), + 80: uint16(30267), + 81: uint16(30279), + 82: uint16(30280), + 83: uint16(30278), + 84: uint16(30300), + 85: uint16(30296), + 86: uint16(30305), + 87: uint16(30306), + 88: uint16(30312), + 89: uint16(30313), + 90: uint16(30314), + 91: uint16(30311), + 92: uint16(30316), + 93: uint16(30320), + }, + 65: { + 0: uint16(30322), + 1: uint16(30326), + 2: uint16(30328), + 3: uint16(30332), + 4: uint16(30336), + 5: uint16(30339), + 6: uint16(30344), + 7: uint16(30347), + 8: uint16(30350), + 9: uint16(30358), + 10: uint16(30355), + 11: uint16(30361), + 12: uint16(30362), + 13: uint16(30384), + 14: uint16(30388), + 15: uint16(30392), + 16: uint16(30393), + 17: uint16(30394), + 18: uint16(30402), + 19: uint16(30413), + 20: uint16(30422), + 21: uint16(30418), + 22: uint16(30430), + 23: uint16(30433), + 24: uint16(30437), + 25: uint16(30439), + 26: uint16(30442), + 27: uint16(34351), + 28: uint16(30459), + 29: uint16(30472), + 30: uint16(30471), + 31: uint16(30468), + 32: uint16(30505), + 33: uint16(30500), + 34: uint16(30494), + 35: uint16(30501), + 36: uint16(30502), + 37: uint16(30491), + 38: uint16(30519), + 39: uint16(30520), + 40: uint16(30535), + 41: uint16(30554), + 42: uint16(30568), + 43: uint16(30571), + 44: uint16(30555), + 45: uint16(30565), + 46: uint16(30591), + 47: uint16(30590), + 48: uint16(30585), + 49: uint16(30606), + 50: uint16(30603), + 51: uint16(30609), + 52: uint16(30624), + 53: uint16(30622), + 54: uint16(30640), + 55: uint16(30646), + 56: uint16(30649), + 57: uint16(30655), + 58: uint16(30652), + 59: uint16(30653), + 60: uint16(30651), + 61: uint16(30663), + 62: uint16(30669), + 63: uint16(30679), + 64: uint16(30682), + 65: uint16(30684), + 66: uint16(30691), + 67: uint16(30702), + 68: uint16(30716), + 69: uint16(30732), + 70: uint16(30738), + 71: uint16(31014), + 72: uint16(30752), + 73: uint16(31018), + 74: uint16(30789), + 75: uint16(30862), + 76: uint16(30836), + 77: uint16(30854), + 78: uint16(30844), + 79: uint16(30874), + 80: uint16(30860), + 81: uint16(30883), + 82: uint16(30901), + 83: uint16(30890), + 84: uint16(30895), + 85: uint16(30929), + 86: uint16(30918), + 87: uint16(30923), + 88: uint16(30932), + 89: uint16(30910), + 90: uint16(30908), + 91: uint16(30917), + 92: uint16(30922), + 93: uint16(30956), + }, + 66: { + 0: uint16(30951), + 1: uint16(30938), + 2: uint16(30973), + 3: uint16(30964), + 4: uint16(30983), + 5: uint16(30994), + 6: uint16(30993), + 7: uint16(31001), + 8: uint16(31020), + 9: uint16(31019), + 10: uint16(31040), + 11: uint16(31072), + 12: uint16(31063), + 13: uint16(31071), + 14: uint16(31066), + 15: uint16(31061), + 16: uint16(31059), + 17: uint16(31098), + 18: uint16(31103), + 19: uint16(31114), + 20: uint16(31133), + 21: uint16(31143), + 22: uint16(40779), + 23: uint16(31146), + 24: uint16(31150), + 25: uint16(31155), + 26: uint16(31161), + 27: uint16(31162), + 28: uint16(31177), + 29: uint16(31189), + 30: uint16(31207), + 31: uint16(31212), + 32: uint16(31201), + 33: uint16(31203), + 34: uint16(31240), + 35: uint16(31245), + 36: uint16(31256), + 37: uint16(31257), + 38: uint16(31264), + 39: uint16(31263), + 40: uint16(31104), + 41: uint16(31281), + 42: uint16(31291), + 43: uint16(31294), + 44: uint16(31287), + 45: uint16(31299), + 46: uint16(31319), + 47: uint16(31305), + 48: uint16(31329), + 49: uint16(31330), + 50: uint16(31337), + 51: uint16(40861), + 52: uint16(31344), + 53: uint16(31353), + 54: uint16(31357), + 55: uint16(31368), + 56: uint16(31383), + 57: uint16(31381), + 58: uint16(31384), + 59: uint16(31382), + 60: uint16(31401), + 61: uint16(31432), + 62: uint16(31408), + 63: uint16(31414), + 64: uint16(31429), + 65: uint16(31428), + 66: uint16(31423), + 67: uint16(36995), + 68: uint16(31431), + 69: uint16(31434), + 70: uint16(31437), + 71: uint16(31439), + 72: uint16(31445), + 73: uint16(31443), + 74: uint16(31449), + 75: uint16(31450), + 76: uint16(31453), + 77: uint16(31457), + 78: uint16(31458), + 79: uint16(31462), + 80: uint16(31469), + 81: uint16(31472), + 82: uint16(31490), + 83: uint16(31503), + 84: uint16(31498), + 85: uint16(31494), + 86: uint16(31539), + 87: uint16(31512), + 88: uint16(31513), + 89: uint16(31518), + 90: uint16(31541), + 91: uint16(31528), + 92: uint16(31542), + 93: uint16(31568), + }, + 67: { + 0: uint16(31610), + 1: uint16(31492), + 2: uint16(31565), + 3: uint16(31499), + 4: uint16(31564), + 5: uint16(31557), + 6: uint16(31605), + 7: uint16(31589), + 8: uint16(31604), + 9: uint16(31591), + 10: uint16(31600), + 11: uint16(31601), + 12: uint16(31596), + 13: uint16(31598), + 14: uint16(31645), + 15: uint16(31640), + 16: uint16(31647), + 17: uint16(31629), + 18: uint16(31644), + 19: uint16(31642), + 20: uint16(31627), + 21: uint16(31634), + 22: uint16(31631), + 23: uint16(31581), + 24: uint16(31641), + 25: uint16(31691), + 26: uint16(31681), + 27: uint16(31692), + 28: uint16(31695), + 29: uint16(31668), + 30: uint16(31686), + 31: uint16(31709), + 32: uint16(31721), + 33: uint16(31761), + 34: uint16(31764), + 35: uint16(31718), + 36: uint16(31717), + 37: uint16(31840), + 38: uint16(31744), + 39: uint16(31751), + 40: uint16(31763), + 41: uint16(31731), + 42: uint16(31735), + 43: uint16(31767), + 44: uint16(31757), + 45: uint16(31734), + 46: uint16(31779), + 47: uint16(31783), + 48: uint16(31786), + 49: uint16(31775), + 50: uint16(31799), + 51: uint16(31787), + 52: uint16(31805), + 53: uint16(31820), + 54: uint16(31811), + 55: uint16(31828), + 56: uint16(31823), + 57: uint16(31808), + 58: uint16(31824), + 59: uint16(31832), + 60: uint16(31839), + 61: uint16(31844), + 62: uint16(31830), + 63: uint16(31845), + 64: uint16(31852), + 65: uint16(31861), + 66: uint16(31875), + 67: uint16(31888), + 68: uint16(31908), + 69: uint16(31917), + 70: uint16(31906), + 71: uint16(31915), + 72: uint16(31905), + 73: uint16(31912), + 74: uint16(31923), + 75: uint16(31922), + 76: uint16(31921), + 77: uint16(31918), + 78: uint16(31929), + 79: uint16(31933), + 80: uint16(31936), + 81: uint16(31941), + 82: uint16(31938), + 83: uint16(31960), + 84: uint16(31954), + 85: uint16(31964), + 86: uint16(31970), + 87: uint16(39739), + 88: uint16(31983), + 89: uint16(31986), + 90: uint16(31988), + 91: uint16(31990), + 92: uint16(31994), + 93: uint16(32006), + }, + 68: { + 0: uint16(32002), + 1: uint16(32028), + 2: uint16(32021), + 3: uint16(32010), + 4: uint16(32069), + 5: uint16(32075), + 6: uint16(32046), + 7: uint16(32050), + 8: uint16(32063), + 9: uint16(32053), + 10: uint16(32070), + 11: uint16(32115), + 12: uint16(32086), + 13: uint16(32078), + 14: uint16(32114), + 15: uint16(32104), + 16: uint16(32110), + 17: uint16(32079), + 18: uint16(32099), + 19: uint16(32147), + 20: uint16(32137), + 21: uint16(32091), + 22: uint16(32143), + 23: uint16(32125), + 24: uint16(32155), + 25: uint16(32186), + 26: uint16(32174), + 27: uint16(32163), + 28: uint16(32181), + 29: uint16(32199), + 30: uint16(32189), + 31: uint16(32171), + 32: uint16(32317), + 33: uint16(32162), + 34: uint16(32175), + 35: uint16(32220), + 36: uint16(32184), + 37: uint16(32159), + 38: uint16(32176), + 39: uint16(32216), + 40: uint16(32221), + 41: uint16(32228), + 42: uint16(32222), + 43: uint16(32251), + 44: uint16(32242), + 45: uint16(32225), + 46: uint16(32261), + 47: uint16(32266), + 48: uint16(32291), + 49: uint16(32289), + 50: uint16(32274), + 51: uint16(32305), + 52: uint16(32287), + 53: uint16(32265), + 54: uint16(32267), + 55: uint16(32290), + 56: uint16(32326), + 57: uint16(32358), + 58: uint16(32315), + 59: uint16(32309), + 60: uint16(32313), + 61: uint16(32323), + 62: uint16(32311), + 63: uint16(32306), + 64: uint16(32314), + 65: uint16(32359), + 66: uint16(32349), + 67: uint16(32342), + 68: uint16(32350), + 69: uint16(32345), + 70: uint16(32346), + 71: uint16(32377), + 72: uint16(32362), + 73: uint16(32361), + 74: uint16(32380), + 75: uint16(32379), + 76: uint16(32387), + 77: uint16(32213), + 78: uint16(32381), + 79: uint16(36782), + 80: uint16(32383), + 81: uint16(32392), + 82: uint16(32393), + 83: uint16(32396), + 84: uint16(32402), + 85: uint16(32400), + 86: uint16(32403), + 87: uint16(32404), + 88: uint16(32406), + 89: uint16(32398), + 90: uint16(32411), + 91: uint16(32412), + 92: uint16(32568), + 93: uint16(32570), + }, + 69: { + 0: uint16(32581), + 1: uint16(32588), + 2: uint16(32589), + 3: uint16(32590), + 4: uint16(32592), + 5: uint16(32593), + 6: uint16(32597), + 7: uint16(32596), + 8: uint16(32600), + 9: uint16(32607), + 10: uint16(32608), + 11: uint16(32616), + 12: uint16(32617), + 13: uint16(32615), + 14: uint16(32632), + 15: uint16(32642), + 16: uint16(32646), + 17: uint16(32643), + 18: uint16(32648), + 19: uint16(32647), + 20: uint16(32652), + 21: uint16(32660), + 22: uint16(32670), + 23: uint16(32669), + 24: uint16(32666), + 25: uint16(32675), + 26: uint16(32687), + 27: uint16(32690), + 28: uint16(32697), + 29: uint16(32686), + 30: uint16(32694), + 31: uint16(32696), + 32: uint16(35697), + 33: uint16(32709), + 34: uint16(32710), + 35: uint16(32714), + 36: uint16(32725), + 37: uint16(32724), + 38: uint16(32737), + 39: uint16(32742), + 40: uint16(32745), + 41: uint16(32755), + 42: uint16(32761), + 43: uint16(39132), + 44: uint16(32774), + 45: uint16(32772), + 46: uint16(32779), + 47: uint16(32786), + 48: uint16(32792), + 49: uint16(32793), + 50: uint16(32796), + 51: uint16(32801), + 52: uint16(32808), + 53: uint16(32831), + 54: uint16(32827), + 55: uint16(32842), + 56: uint16(32838), + 57: uint16(32850), + 58: uint16(32856), + 59: uint16(32858), + 60: uint16(32863), + 61: uint16(32866), + 62: uint16(32872), + 63: uint16(32883), + 64: uint16(32882), + 65: uint16(32880), + 66: uint16(32886), + 67: uint16(32889), + 68: uint16(32893), + 69: uint16(32895), + 70: uint16(32900), + 71: uint16(32902), + 72: uint16(32901), + 73: uint16(32923), + 74: uint16(32915), + 75: uint16(32922), + 76: uint16(32941), + 77: uint16(20880), + 78: uint16(32940), + 79: uint16(32987), + 80: uint16(32997), + 81: uint16(32985), + 82: uint16(32989), + 83: uint16(32964), + 84: uint16(32986), + 85: uint16(32982), + 86: uint16(33033), + 87: uint16(33007), + 88: uint16(33009), + 89: uint16(33051), + 90: uint16(33065), + 91: uint16(33059), + 92: uint16(33071), + 93: uint16(33099), + }, + 70: { + 0: uint16(38539), + 1: uint16(33094), + 2: uint16(33086), + 3: uint16(33107), + 4: uint16(33105), + 5: uint16(33020), + 6: uint16(33137), + 7: uint16(33134), + 8: uint16(33125), + 9: uint16(33126), + 10: uint16(33140), + 11: uint16(33155), + 12: uint16(33160), + 13: uint16(33162), + 14: uint16(33152), + 15: uint16(33154), + 16: uint16(33184), + 17: uint16(33173), + 18: uint16(33188), + 19: uint16(33187), + 20: uint16(33119), + 21: uint16(33171), + 22: uint16(33193), + 23: uint16(33200), + 24: uint16(33205), + 25: uint16(33214), + 26: uint16(33208), + 27: uint16(33213), + 28: uint16(33216), + 29: uint16(33218), + 30: uint16(33210), + 31: uint16(33225), + 32: uint16(33229), + 33: uint16(33233), + 34: uint16(33241), + 35: uint16(33240), + 36: uint16(33224), + 37: uint16(33242), + 38: uint16(33247), + 39: uint16(33248), + 40: uint16(33255), + 41: uint16(33274), + 42: uint16(33275), + 43: uint16(33278), + 44: uint16(33281), + 45: uint16(33282), + 46: uint16(33285), + 47: uint16(33287), + 48: uint16(33290), + 49: uint16(33293), + 50: uint16(33296), + 51: uint16(33302), + 52: uint16(33321), + 53: uint16(33323), + 54: uint16(33336), + 55: uint16(33331), + 56: uint16(33344), + 57: uint16(33369), + 58: uint16(33368), + 59: uint16(33373), + 60: uint16(33370), + 61: uint16(33375), + 62: uint16(33380), + 63: uint16(33378), + 64: uint16(33384), + 65: uint16(33386), + 66: uint16(33387), + 67: uint16(33326), + 68: uint16(33393), + 69: uint16(33399), + 70: uint16(33400), + 71: uint16(33406), + 72: uint16(33421), + 73: uint16(33426), + 74: uint16(33451), + 75: uint16(33439), + 76: uint16(33467), + 77: uint16(33452), + 78: uint16(33505), + 79: uint16(33507), + 80: uint16(33503), + 81: uint16(33490), + 82: uint16(33524), + 83: uint16(33523), + 84: uint16(33530), + 85: uint16(33683), + 86: uint16(33539), + 87: uint16(33531), + 88: uint16(33529), + 89: uint16(33502), + 90: uint16(33542), + 91: uint16(33500), + 92: uint16(33545), + 93: uint16(33497), + }, + 71: { + 0: uint16(33589), + 1: uint16(33588), + 2: uint16(33558), + 3: uint16(33586), + 4: uint16(33585), + 5: uint16(33600), + 6: uint16(33593), + 7: uint16(33616), + 8: uint16(33605), + 9: uint16(33583), + 10: uint16(33579), + 11: uint16(33559), + 12: uint16(33560), + 13: uint16(33669), + 14: uint16(33690), + 15: uint16(33706), + 16: uint16(33695), + 17: uint16(33698), + 18: uint16(33686), + 19: uint16(33571), + 20: uint16(33678), + 21: uint16(33671), + 22: uint16(33674), + 23: uint16(33660), + 24: uint16(33717), + 25: uint16(33651), + 26: uint16(33653), + 27: uint16(33696), + 28: uint16(33673), + 29: uint16(33704), + 30: uint16(33780), + 31: uint16(33811), + 32: uint16(33771), + 33: uint16(33742), + 34: uint16(33789), + 35: uint16(33795), + 36: uint16(33752), + 37: uint16(33803), + 38: uint16(33729), + 39: uint16(33783), + 40: uint16(33799), + 41: uint16(33760), + 42: uint16(33778), + 43: uint16(33805), + 44: uint16(33826), + 45: uint16(33824), + 46: uint16(33725), + 47: uint16(33848), + 48: uint16(34054), + 49: uint16(33787), + 50: uint16(33901), + 51: uint16(33834), + 52: uint16(33852), + 53: uint16(34138), + 54: uint16(33924), + 55: uint16(33911), + 56: uint16(33899), + 57: uint16(33965), + 58: uint16(33902), + 59: uint16(33922), + 60: uint16(33897), + 61: uint16(33862), + 62: uint16(33836), + 63: uint16(33903), + 64: uint16(33913), + 65: uint16(33845), + 66: uint16(33994), + 67: uint16(33890), + 68: uint16(33977), + 69: uint16(33983), + 70: uint16(33951), + 71: uint16(34009), + 72: uint16(33997), + 73: uint16(33979), + 74: uint16(34010), + 75: uint16(34000), + 76: uint16(33985), + 77: uint16(33990), + 78: uint16(34006), + 79: uint16(33953), + 80: uint16(34081), + 81: uint16(34047), + 82: uint16(34036), + 83: uint16(34071), + 84: uint16(34072), + 85: uint16(34092), + 86: uint16(34079), + 87: uint16(34069), + 88: uint16(34068), + 89: uint16(34044), + 90: uint16(34112), + 91: uint16(34147), + 92: uint16(34136), + 93: uint16(34120), + }, + 72: { + 0: uint16(34113), + 1: uint16(34306), + 2: uint16(34123), + 3: uint16(34133), + 4: uint16(34176), + 5: uint16(34212), + 6: uint16(34184), + 7: uint16(34193), + 8: uint16(34186), + 9: uint16(34216), + 10: uint16(34157), + 11: uint16(34196), + 12: uint16(34203), + 13: uint16(34282), + 14: uint16(34183), + 15: uint16(34204), + 16: uint16(34167), + 17: uint16(34174), + 18: uint16(34192), + 19: uint16(34249), + 20: uint16(34234), + 21: uint16(34255), + 22: uint16(34233), + 23: uint16(34256), + 24: uint16(34261), + 25: uint16(34269), + 26: uint16(34277), + 27: uint16(34268), + 28: uint16(34297), + 29: uint16(34314), + 30: uint16(34323), + 31: uint16(34315), + 32: uint16(34302), + 33: uint16(34298), + 34: uint16(34310), + 35: uint16(34338), + 36: uint16(34330), + 37: uint16(34352), + 38: uint16(34367), + 39: uint16(34381), + 40: uint16(20053), + 41: uint16(34388), + 42: uint16(34399), + 43: uint16(34407), + 44: uint16(34417), + 45: uint16(34451), + 46: uint16(34467), + 47: uint16(34473), + 48: uint16(34474), + 49: uint16(34443), + 50: uint16(34444), + 51: uint16(34486), + 52: uint16(34479), + 53: uint16(34500), + 54: uint16(34502), + 55: uint16(34480), + 56: uint16(34505), + 57: uint16(34851), + 58: uint16(34475), + 59: uint16(34516), + 60: uint16(34526), + 61: uint16(34537), + 62: uint16(34540), + 63: uint16(34527), + 64: uint16(34523), + 65: uint16(34543), + 66: uint16(34578), + 67: uint16(34566), + 68: uint16(34568), + 69: uint16(34560), + 70: uint16(34563), + 71: uint16(34555), + 72: uint16(34577), + 73: uint16(34569), + 74: uint16(34573), + 75: uint16(34553), + 76: uint16(34570), + 77: uint16(34612), + 78: uint16(34623), + 79: uint16(34615), + 80: uint16(34619), + 81: uint16(34597), + 82: uint16(34601), + 83: uint16(34586), + 84: uint16(34656), + 85: uint16(34655), + 86: uint16(34680), + 87: uint16(34636), + 88: uint16(34638), + 89: uint16(34676), + 90: uint16(34647), + 91: uint16(34664), + 92: uint16(34670), + 93: uint16(34649), + }, + 73: { + 0: uint16(34643), + 1: uint16(34659), + 2: uint16(34666), + 3: uint16(34821), + 4: uint16(34722), + 5: uint16(34719), + 6: uint16(34690), + 7: uint16(34735), + 8: uint16(34763), + 9: uint16(34749), + 10: uint16(34752), + 11: uint16(34768), + 12: uint16(38614), + 13: uint16(34731), + 14: uint16(34756), + 15: uint16(34739), + 16: uint16(34759), + 17: uint16(34758), + 18: uint16(34747), + 19: uint16(34799), + 20: uint16(34802), + 21: uint16(34784), + 22: uint16(34831), + 23: uint16(34829), + 24: uint16(34814), + 25: uint16(34806), + 26: uint16(34807), + 27: uint16(34830), + 28: uint16(34770), + 29: uint16(34833), + 30: uint16(34838), + 31: uint16(34837), + 32: uint16(34850), + 33: uint16(34849), + 34: uint16(34865), + 35: uint16(34870), + 36: uint16(34873), + 37: uint16(34855), + 38: uint16(34875), + 39: uint16(34884), + 40: uint16(34882), + 41: uint16(34898), + 42: uint16(34905), + 43: uint16(34910), + 44: uint16(34914), + 45: uint16(34923), + 46: uint16(34945), + 47: uint16(34942), + 48: uint16(34974), + 49: uint16(34933), + 50: uint16(34941), + 51: uint16(34997), + 52: uint16(34930), + 53: uint16(34946), + 54: uint16(34967), + 55: uint16(34962), + 56: uint16(34990), + 57: uint16(34969), + 58: uint16(34978), + 59: uint16(34957), + 60: uint16(34980), + 61: uint16(34992), + 62: uint16(35007), + 63: uint16(34993), + 64: uint16(35011), + 65: uint16(35012), + 66: uint16(35028), + 67: uint16(35032), + 68: uint16(35033), + 69: uint16(35037), + 70: uint16(35065), + 71: uint16(35074), + 72: uint16(35068), + 73: uint16(35060), + 74: uint16(35048), + 75: uint16(35058), + 76: uint16(35076), + 77: uint16(35084), + 78: uint16(35082), + 79: uint16(35091), + 80: uint16(35139), + 81: uint16(35102), + 82: uint16(35109), + 83: uint16(35114), + 84: uint16(35115), + 85: uint16(35137), + 86: uint16(35140), + 87: uint16(35131), + 88: uint16(35126), + 89: uint16(35128), + 90: uint16(35148), + 91: uint16(35101), + 92: uint16(35168), + 93: uint16(35166), + }, + 74: { + 0: uint16(35174), + 1: uint16(35172), + 2: uint16(35181), + 3: uint16(35178), + 4: uint16(35183), + 5: uint16(35188), + 6: uint16(35191), + 7: uint16(35198), + 8: uint16(35203), + 9: uint16(35208), + 10: uint16(35210), + 11: uint16(35219), + 12: uint16(35224), + 13: uint16(35233), + 14: uint16(35241), + 15: uint16(35238), + 16: uint16(35244), + 17: uint16(35247), + 18: uint16(35250), + 19: uint16(35258), + 20: uint16(35261), + 21: uint16(35263), + 22: uint16(35264), + 23: uint16(35290), + 24: uint16(35292), + 25: uint16(35293), + 26: uint16(35303), + 27: uint16(35316), + 28: uint16(35320), + 29: uint16(35331), + 30: uint16(35350), + 31: uint16(35344), + 32: uint16(35340), + 33: uint16(35355), + 34: uint16(35357), + 35: uint16(35365), + 36: uint16(35382), + 37: uint16(35393), + 38: uint16(35419), + 39: uint16(35410), + 40: uint16(35398), + 41: uint16(35400), + 42: uint16(35452), + 43: uint16(35437), + 44: uint16(35436), + 45: uint16(35426), + 46: uint16(35461), + 47: uint16(35458), + 48: uint16(35460), + 49: uint16(35496), + 50: uint16(35489), + 51: uint16(35473), + 52: uint16(35493), + 53: uint16(35494), + 54: uint16(35482), + 55: uint16(35491), + 56: uint16(35524), + 57: uint16(35533), + 58: uint16(35522), + 59: uint16(35546), + 60: uint16(35563), + 61: uint16(35571), + 62: uint16(35559), + 63: uint16(35556), + 64: uint16(35569), + 65: uint16(35604), + 66: uint16(35552), + 67: uint16(35554), + 68: uint16(35575), + 69: uint16(35550), + 70: uint16(35547), + 71: uint16(35596), + 72: uint16(35591), + 73: uint16(35610), + 74: uint16(35553), + 75: uint16(35606), + 76: uint16(35600), + 77: uint16(35607), + 78: uint16(35616), + 79: uint16(35635), + 80: uint16(38827), + 81: uint16(35622), + 82: uint16(35627), + 83: uint16(35646), + 84: uint16(35624), + 85: uint16(35649), + 86: uint16(35660), + 87: uint16(35663), + 88: uint16(35662), + 89: uint16(35657), + 90: uint16(35670), + 91: uint16(35675), + 92: uint16(35674), + 93: uint16(35691), + }, + 75: { + 0: uint16(35679), + 1: uint16(35692), + 2: uint16(35695), + 3: uint16(35700), + 4: uint16(35709), + 5: uint16(35712), + 6: uint16(35724), + 7: uint16(35726), + 8: uint16(35730), + 9: uint16(35731), + 10: uint16(35734), + 11: uint16(35737), + 12: uint16(35738), + 13: uint16(35898), + 14: uint16(35905), + 15: uint16(35903), + 16: uint16(35912), + 17: uint16(35916), + 18: uint16(35918), + 19: uint16(35920), + 20: uint16(35925), + 21: uint16(35938), + 22: uint16(35948), + 23: uint16(35960), + 24: uint16(35962), + 25: uint16(35970), + 26: uint16(35977), + 27: uint16(35973), + 28: uint16(35978), + 29: uint16(35981), + 30: uint16(35982), + 31: uint16(35988), + 32: uint16(35964), + 33: uint16(35992), + 34: uint16(25117), + 35: uint16(36013), + 36: uint16(36010), + 37: uint16(36029), + 38: uint16(36018), + 39: uint16(36019), + 40: uint16(36014), + 41: uint16(36022), + 42: uint16(36040), + 43: uint16(36033), + 44: uint16(36068), + 45: uint16(36067), + 46: uint16(36058), + 47: uint16(36093), + 48: uint16(36090), + 49: uint16(36091), + 50: uint16(36100), + 51: uint16(36101), + 52: uint16(36106), + 53: uint16(36103), + 54: uint16(36111), + 55: uint16(36109), + 56: uint16(36112), + 57: uint16(40782), + 58: uint16(36115), + 59: uint16(36045), + 60: uint16(36116), + 61: uint16(36118), + 62: uint16(36199), + 63: uint16(36205), + 64: uint16(36209), + 65: uint16(36211), + 66: uint16(36225), + 67: uint16(36249), + 68: uint16(36290), + 69: uint16(36286), + 70: uint16(36282), + 71: uint16(36303), + 72: uint16(36314), + 73: uint16(36310), + 74: uint16(36300), + 75: uint16(36315), + 76: uint16(36299), + 77: uint16(36330), + 78: uint16(36331), + 79: uint16(36319), + 80: uint16(36323), + 81: uint16(36348), + 82: uint16(36360), + 83: uint16(36361), + 84: uint16(36351), + 85: uint16(36381), + 86: uint16(36382), + 87: uint16(36368), + 88: uint16(36383), + 89: uint16(36418), + 90: uint16(36405), + 91: uint16(36400), + 92: uint16(36404), + 93: uint16(36426), + }, + 76: { + 0: uint16(36423), + 1: uint16(36425), + 2: uint16(36428), + 3: uint16(36432), + 4: uint16(36424), + 5: uint16(36441), + 6: uint16(36452), + 7: uint16(36448), + 8: uint16(36394), + 9: uint16(36451), + 10: uint16(36437), + 11: uint16(36470), + 12: uint16(36466), + 13: uint16(36476), + 14: uint16(36481), + 15: uint16(36487), + 16: uint16(36485), + 17: uint16(36484), + 18: uint16(36491), + 19: uint16(36490), + 20: uint16(36499), + 21: uint16(36497), + 22: uint16(36500), + 23: uint16(36505), + 24: uint16(36522), + 25: uint16(36513), + 26: uint16(36524), + 27: uint16(36528), + 28: uint16(36550), + 29: uint16(36529), + 30: uint16(36542), + 31: uint16(36549), + 32: uint16(36552), + 33: uint16(36555), + 34: uint16(36571), + 35: uint16(36579), + 36: uint16(36604), + 37: uint16(36603), + 38: uint16(36587), + 39: uint16(36606), + 40: uint16(36618), + 41: uint16(36613), + 42: uint16(36629), + 43: uint16(36626), + 44: uint16(36633), + 45: uint16(36627), + 46: uint16(36636), + 47: uint16(36639), + 48: uint16(36635), + 49: uint16(36620), + 50: uint16(36646), + 51: uint16(36659), + 52: uint16(36667), + 53: uint16(36665), + 54: uint16(36677), + 55: uint16(36674), + 56: uint16(36670), + 57: uint16(36684), + 58: uint16(36681), + 59: uint16(36678), + 60: uint16(36686), + 61: uint16(36695), + 62: uint16(36700), + 63: uint16(36706), + 64: uint16(36707), + 65: uint16(36708), + 66: uint16(36764), + 67: uint16(36767), + 68: uint16(36771), + 69: uint16(36781), + 70: uint16(36783), + 71: uint16(36791), + 72: uint16(36826), + 73: uint16(36837), + 74: uint16(36834), + 75: uint16(36842), + 76: uint16(36847), + 77: uint16(36999), + 78: uint16(36852), + 79: uint16(36869), + 80: uint16(36857), + 81: uint16(36858), + 82: uint16(36881), + 83: uint16(36885), + 84: uint16(36897), + 85: uint16(36877), + 86: uint16(36894), + 87: uint16(36886), + 88: uint16(36875), + 89: uint16(36903), + 90: uint16(36918), + 91: uint16(36917), + 92: uint16(36921), + 93: uint16(36856), + }, + 77: { + 0: uint16(36943), + 1: uint16(36944), + 2: uint16(36945), + 3: uint16(36946), + 4: uint16(36878), + 5: uint16(36937), + 6: uint16(36926), + 7: uint16(36950), + 8: uint16(36952), + 9: uint16(36958), + 10: uint16(36968), + 11: uint16(36975), + 12: uint16(36982), + 13: uint16(38568), + 14: uint16(36978), + 15: uint16(36994), + 16: uint16(36989), + 17: uint16(36993), + 18: uint16(36992), + 19: uint16(37002), + 20: uint16(37001), + 21: uint16(37007), + 22: uint16(37032), + 23: uint16(37039), + 24: uint16(37041), + 25: uint16(37045), + 26: uint16(37090), + 27: uint16(37092), + 28: uint16(25160), + 29: uint16(37083), + 30: uint16(37122), + 31: uint16(37138), + 32: uint16(37145), + 33: uint16(37170), + 34: uint16(37168), + 35: uint16(37194), + 36: uint16(37206), + 37: uint16(37208), + 38: uint16(37219), + 39: uint16(37221), + 40: uint16(37225), + 41: uint16(37235), + 42: uint16(37234), + 43: uint16(37259), + 44: uint16(37257), + 45: uint16(37250), + 46: uint16(37282), + 47: uint16(37291), + 48: uint16(37295), + 49: uint16(37290), + 50: uint16(37301), + 51: uint16(37300), + 52: uint16(37306), + 53: uint16(37312), + 54: uint16(37313), + 55: uint16(37321), + 56: uint16(37323), + 57: uint16(37328), + 58: uint16(37334), + 59: uint16(37343), + 60: uint16(37345), + 61: uint16(37339), + 62: uint16(37372), + 63: uint16(37365), + 64: uint16(37366), + 65: uint16(37406), + 66: uint16(37375), + 67: uint16(37396), + 68: uint16(37420), + 69: uint16(37397), + 70: uint16(37393), + 71: uint16(37470), + 72: uint16(37463), + 73: uint16(37445), + 74: uint16(37449), + 75: uint16(37476), + 76: uint16(37448), + 77: uint16(37525), + 78: uint16(37439), + 79: uint16(37451), + 80: uint16(37456), + 81: uint16(37532), + 82: uint16(37526), + 83: uint16(37523), + 84: uint16(37531), + 85: uint16(37466), + 86: uint16(37583), + 87: uint16(37561), + 88: uint16(37559), + 89: uint16(37609), + 90: uint16(37647), + 91: uint16(37626), + 92: uint16(37700), + 93: uint16(37678), + }, + 78: { + 0: uint16(37657), + 1: uint16(37666), + 2: uint16(37658), + 3: uint16(37667), + 4: uint16(37690), + 5: uint16(37685), + 6: uint16(37691), + 7: uint16(37724), + 8: uint16(37728), + 9: uint16(37756), + 10: uint16(37742), + 11: uint16(37718), + 12: uint16(37808), + 13: uint16(37804), + 14: uint16(37805), + 15: uint16(37780), + 16: uint16(37817), + 17: uint16(37846), + 18: uint16(37847), + 19: uint16(37864), + 20: uint16(37861), + 21: uint16(37848), + 22: uint16(37827), + 23: uint16(37853), + 24: uint16(37840), + 25: uint16(37832), + 26: uint16(37860), + 27: uint16(37914), + 28: uint16(37908), + 29: uint16(37907), + 30: uint16(37891), + 31: uint16(37895), + 32: uint16(37904), + 33: uint16(37942), + 34: uint16(37931), + 35: uint16(37941), + 36: uint16(37921), + 37: uint16(37946), + 38: uint16(37953), + 39: uint16(37970), + 40: uint16(37956), + 41: uint16(37979), + 42: uint16(37984), + 43: uint16(37986), + 44: uint16(37982), + 45: uint16(37994), + 46: uint16(37417), + 47: uint16(38000), + 48: uint16(38005), + 49: uint16(38007), + 50: uint16(38013), + 51: uint16(37978), + 52: uint16(38012), + 53: uint16(38014), + 54: uint16(38017), + 55: uint16(38015), + 56: uint16(38274), + 57: uint16(38279), + 58: uint16(38282), + 59: uint16(38292), + 60: uint16(38294), + 61: uint16(38296), + 62: uint16(38297), + 63: uint16(38304), + 64: uint16(38312), + 65: uint16(38311), + 66: uint16(38317), + 67: uint16(38332), + 68: uint16(38331), + 69: uint16(38329), + 70: uint16(38334), + 71: uint16(38346), + 72: uint16(28662), + 73: uint16(38339), + 74: uint16(38349), + 75: uint16(38348), + 76: uint16(38357), + 77: uint16(38356), + 78: uint16(38358), + 79: uint16(38364), + 80: uint16(38369), + 81: uint16(38373), + 82: uint16(38370), + 83: uint16(38433), + 84: uint16(38440), + 85: uint16(38446), + 86: uint16(38447), + 87: uint16(38466), + 88: uint16(38476), + 89: uint16(38479), + 90: uint16(38475), + 91: uint16(38519), + 92: uint16(38492), + 93: uint16(38494), + }, + 79: { + 0: uint16(38493), + 1: uint16(38495), + 2: uint16(38502), + 3: uint16(38514), + 4: uint16(38508), + 5: uint16(38541), + 6: uint16(38552), + 7: uint16(38549), + 8: uint16(38551), + 9: uint16(38570), + 10: uint16(38567), + 11: uint16(38577), + 12: uint16(38578), + 13: uint16(38576), + 14: uint16(38580), + 15: uint16(38582), + 16: uint16(38584), + 17: uint16(38585), + 18: uint16(38606), + 19: uint16(38603), + 20: uint16(38601), + 21: uint16(38605), + 22: uint16(35149), + 23: uint16(38620), + 24: uint16(38669), + 25: uint16(38613), + 26: uint16(38649), + 27: uint16(38660), + 28: uint16(38662), + 29: uint16(38664), + 30: uint16(38675), + 31: uint16(38670), + 32: uint16(38673), + 33: uint16(38671), + 34: uint16(38678), + 35: uint16(38681), + 36: uint16(38692), + 37: uint16(38698), + 38: uint16(38704), + 39: uint16(38713), + 40: uint16(38717), + 41: uint16(38718), + 42: uint16(38724), + 43: uint16(38726), + 44: uint16(38728), + 45: uint16(38722), + 46: uint16(38729), + 47: uint16(38748), + 48: uint16(38752), + 49: uint16(38756), + 50: uint16(38758), + 51: uint16(38760), + 52: uint16(21202), + 53: uint16(38763), + 54: uint16(38769), + 55: uint16(38777), + 56: uint16(38789), + 57: uint16(38780), + 58: uint16(38785), + 59: uint16(38778), + 60: uint16(38790), + 61: uint16(38795), + 62: uint16(38799), + 63: uint16(38800), + 64: uint16(38812), + 65: uint16(38824), + 66: uint16(38822), + 67: uint16(38819), + 68: uint16(38835), + 69: uint16(38836), + 70: uint16(38851), + 71: uint16(38854), + 72: uint16(38856), + 73: uint16(38859), + 74: uint16(38876), + 75: uint16(38893), + 76: uint16(40783), + 77: uint16(38898), + 78: uint16(31455), + 79: uint16(38902), + 80: uint16(38901), + 81: uint16(38927), + 82: uint16(38924), + 83: uint16(38968), + 84: uint16(38948), + 85: uint16(38945), + 86: uint16(38967), + 87: uint16(38973), + 88: uint16(38982), + 89: uint16(38991), + 90: uint16(38987), + 91: uint16(39019), + 92: uint16(39023), + 93: uint16(39024), + }, + 80: { + 0: uint16(39025), + 1: uint16(39028), + 2: uint16(39027), + 3: uint16(39082), + 4: uint16(39087), + 5: uint16(39089), + 6: uint16(39094), + 7: uint16(39108), + 8: uint16(39107), + 9: uint16(39110), + 10: uint16(39145), + 11: uint16(39147), + 12: uint16(39171), + 13: uint16(39177), + 14: uint16(39186), + 15: uint16(39188), + 16: uint16(39192), + 17: uint16(39201), + 18: uint16(39197), + 19: uint16(39198), + 20: uint16(39204), + 21: uint16(39200), + 22: uint16(39212), + 23: uint16(39214), + 24: uint16(39229), + 25: uint16(39230), + 26: uint16(39234), + 27: uint16(39241), + 28: uint16(39237), + 29: uint16(39248), + 30: uint16(39243), + 31: uint16(39249), + 32: uint16(39250), + 33: uint16(39244), + 34: uint16(39253), + 35: uint16(39319), + 36: uint16(39320), + 37: uint16(39333), + 38: uint16(39341), + 39: uint16(39342), + 40: uint16(39356), + 41: uint16(39391), + 42: uint16(39387), + 43: uint16(39389), + 44: uint16(39384), + 45: uint16(39377), + 46: uint16(39405), + 47: uint16(39406), + 48: uint16(39409), + 49: uint16(39410), + 50: uint16(39419), + 51: uint16(39416), + 52: uint16(39425), + 53: uint16(39439), + 54: uint16(39429), + 55: uint16(39394), + 56: uint16(39449), + 57: uint16(39467), + 58: uint16(39479), + 59: uint16(39493), + 60: uint16(39490), + 61: uint16(39488), + 62: uint16(39491), + 63: uint16(39486), + 64: uint16(39509), + 65: uint16(39501), + 66: uint16(39515), + 67: uint16(39511), + 68: uint16(39519), + 69: uint16(39522), + 70: uint16(39525), + 71: uint16(39524), + 72: uint16(39529), + 73: uint16(39531), + 74: uint16(39530), + 75: uint16(39597), + 76: uint16(39600), + 77: uint16(39612), + 78: uint16(39616), + 79: uint16(39631), + 80: uint16(39633), + 81: uint16(39635), + 82: uint16(39636), + 83: uint16(39646), + 84: uint16(39647), + 85: uint16(39650), + 86: uint16(39651), + 87: uint16(39654), + 88: uint16(39663), + 89: uint16(39659), + 90: uint16(39662), + 91: uint16(39668), + 92: uint16(39665), + 93: uint16(39671), + }, + 81: { + 0: uint16(39675), + 1: uint16(39686), + 2: uint16(39704), + 3: uint16(39706), + 4: uint16(39711), + 5: uint16(39714), + 6: uint16(39715), + 7: uint16(39717), + 8: uint16(39719), + 9: uint16(39720), + 10: uint16(39721), + 11: uint16(39722), + 12: uint16(39726), + 13: uint16(39727), + 14: uint16(39730), + 15: uint16(39748), + 16: uint16(39747), + 17: uint16(39759), + 18: uint16(39757), + 19: uint16(39758), + 20: uint16(39761), + 21: uint16(39768), + 22: uint16(39796), + 23: uint16(39827), + 24: uint16(39811), + 25: uint16(39825), + 26: uint16(39830), + 27: uint16(39831), + 28: uint16(39839), + 29: uint16(39840), + 30: uint16(39848), + 31: uint16(39860), + 32: uint16(39872), + 33: uint16(39882), + 34: uint16(39865), + 35: uint16(39878), + 36: uint16(39887), + 37: uint16(39889), + 38: uint16(39890), + 39: uint16(39907), + 40: uint16(39906), + 41: uint16(39908), + 42: uint16(39892), + 43: uint16(39905), + 44: uint16(39994), + 45: uint16(39922), + 46: uint16(39921), + 47: uint16(39920), + 48: uint16(39957), + 49: uint16(39956), + 50: uint16(39945), + 51: uint16(39955), + 52: uint16(39948), + 53: uint16(39942), + 54: uint16(39944), + 55: uint16(39954), + 56: uint16(39946), + 57: uint16(39940), + 58: uint16(39982), + 59: uint16(39963), + 60: uint16(39973), + 61: uint16(39972), + 62: uint16(39969), + 63: uint16(39984), + 64: uint16(40007), + 65: uint16(39986), + 66: uint16(40006), + 67: uint16(39998), + 68: uint16(40026), + 69: uint16(40032), + 70: uint16(40039), + 71: uint16(40054), + 72: uint16(40056), + 73: uint16(40167), + 74: uint16(40172), + 75: uint16(40176), + 76: uint16(40201), + 77: uint16(40200), + 78: uint16(40171), + 79: uint16(40195), + 80: uint16(40198), + 81: uint16(40234), + 82: uint16(40230), + 83: uint16(40367), + 84: uint16(40227), + 85: uint16(40223), + 86: uint16(40260), + 87: uint16(40213), + 88: uint16(40210), + 89: uint16(40257), + 90: uint16(40255), + 91: uint16(40254), + 92: uint16(40262), + 93: uint16(40264), + }, + 82: { + 0: uint16(40285), + 1: uint16(40286), + 2: uint16(40292), + 3: uint16(40273), + 4: uint16(40272), + 5: uint16(40281), + 6: uint16(40306), + 7: uint16(40329), + 8: uint16(40327), + 9: uint16(40363), + 10: uint16(40303), + 11: uint16(40314), + 12: uint16(40346), + 13: uint16(40356), + 14: uint16(40361), + 15: uint16(40370), + 16: uint16(40388), + 17: uint16(40385), + 18: uint16(40379), + 19: uint16(40376), + 20: uint16(40378), + 21: uint16(40390), + 22: uint16(40399), + 23: uint16(40386), + 24: uint16(40409), + 25: uint16(40403), + 26: uint16(40440), + 27: uint16(40422), + 28: uint16(40429), + 29: uint16(40431), + 30: uint16(40445), + 31: uint16(40474), + 32: uint16(40475), + 33: uint16(40478), + 34: uint16(40565), + 35: uint16(40569), + 36: uint16(40573), + 37: uint16(40577), + 38: uint16(40584), + 39: uint16(40587), + 40: uint16(40588), + 41: uint16(40594), + 42: uint16(40597), + 43: uint16(40593), + 44: uint16(40605), + 45: uint16(40613), + 46: uint16(40617), + 47: uint16(40632), + 48: uint16(40618), + 49: uint16(40621), + 50: uint16(38753), + 51: uint16(40652), + 52: uint16(40654), + 53: uint16(40655), + 54: uint16(40656), + 55: uint16(40660), + 56: uint16(40668), + 57: uint16(40670), + 58: uint16(40669), + 59: uint16(40672), + 60: uint16(40677), + 61: uint16(40680), + 62: uint16(40687), + 63: uint16(40692), + 64: uint16(40694), + 65: uint16(40695), + 66: uint16(40697), + 67: uint16(40699), + 68: uint16(40700), + 69: uint16(40701), + 70: uint16(40711), + 71: uint16(40712), + 72: uint16(30391), + 73: uint16(40725), + 74: uint16(40737), + 75: uint16(40748), + 76: uint16(40766), + 77: uint16(40778), + 78: uint16(40786), + 79: uint16(40788), + 80: uint16(40803), + 81: uint16(40799), + 82: uint16(40800), + 83: uint16(40801), + 84: uint16(40806), + 85: uint16(40807), + 86: uint16(40812), + 87: uint16(40810), + 88: uint16(40823), + 89: uint16(40818), + 90: uint16(40822), + 91: uint16(40853), + 92: uint16(40860), + 93: uint16(40864), + }, + 83: { + 0: uint16(22575), + 1: uint16(27079), + 2: uint16(36953), + 3: uint16(29796), + 4: uint16(20956), + 5: uint16(29081), + }, +} + +var _gb18030 = [126][190]uint16{ + 0: { + 0: uint16(19970), + 1: uint16(19972), + 2: uint16(19973), + 3: uint16(19974), + 4: uint16(19983), + 5: uint16(19986), + 6: uint16(19991), + 7: uint16(19999), + 8: uint16(20000), + 9: uint16(20001), + 10: uint16(20003), + 11: uint16(20006), + 12: uint16(20009), + 13: uint16(20014), + 14: uint16(20015), + 15: uint16(20017), + 16: uint16(20019), + 17: uint16(20021), + 18: uint16(20023), + 19: uint16(20028), + 20: uint16(20032), + 21: uint16(20033), + 22: uint16(20034), + 23: uint16(20036), + 24: uint16(20038), + 25: uint16(20042), + 26: uint16(20049), + 27: uint16(20053), + 28: uint16(20055), + 29: uint16(20058), + 30: uint16(20059), + 31: uint16(20066), + 32: uint16(20067), + 33: uint16(20068), + 34: uint16(20069), + 35: uint16(20071), + 36: uint16(20072), + 37: uint16(20074), + 38: uint16(20075), + 39: uint16(20076), + 40: uint16(20077), + 41: uint16(20078), + 42: uint16(20079), + 43: uint16(20082), + 44: uint16(20084), + 45: uint16(20085), + 46: uint16(20086), + 47: uint16(20087), + 48: uint16(20088), + 49: uint16(20089), + 50: uint16(20090), + 51: uint16(20091), + 52: uint16(20092), + 53: uint16(20093), + 54: uint16(20095), + 55: uint16(20096), + 56: uint16(20097), + 57: uint16(20098), + 58: uint16(20099), + 59: uint16(20100), + 60: uint16(20101), + 61: uint16(20103), + 62: uint16(20106), + 63: uint16(20112), + 64: uint16(20118), + 65: uint16(20119), + 66: uint16(20121), + 67: uint16(20124), + 68: uint16(20125), + 69: uint16(20126), + 70: uint16(20131), + 71: uint16(20138), + 72: uint16(20143), + 73: uint16(20144), + 74: uint16(20145), + 75: uint16(20148), + 76: uint16(20150), + 77: uint16(20151), + 78: uint16(20152), + 79: uint16(20153), + 80: uint16(20156), + 81: uint16(20157), + 82: uint16(20158), + 83: uint16(20168), + 84: uint16(20172), + 85: uint16(20175), + 86: uint16(20176), + 87: uint16(20178), + 88: uint16(20186), + 89: uint16(20187), + 90: uint16(20188), + 91: uint16(20192), + 92: uint16(20194), + 93: uint16(20198), + 94: uint16(20199), + 95: uint16(20201), + 96: uint16(20205), + 97: uint16(20206), + 98: uint16(20207), + 99: uint16(20209), + 100: uint16(20212), + 101: uint16(20216), + 102: uint16(20217), + 103: uint16(20218), + 104: uint16(20220), + 105: uint16(20222), + 106: uint16(20224), + 107: uint16(20226), + 108: uint16(20227), + 109: uint16(20228), + 110: uint16(20229), + 111: uint16(20230), + 112: uint16(20231), + 113: uint16(20232), + 114: uint16(20235), + 115: uint16(20236), + 116: uint16(20242), + 117: uint16(20243), + 118: uint16(20244), + 119: uint16(20245), + 120: uint16(20246), + 121: uint16(20252), + 122: uint16(20253), + 123: uint16(20257), + 124: uint16(20259), + 125: uint16(20264), + 126: uint16(20265), + 127: uint16(20268), + 128: uint16(20269), + 129: uint16(20270), + 130: uint16(20273), + 131: uint16(20275), + 132: uint16(20277), + 133: uint16(20279), + 134: uint16(20281), + 135: uint16(20283), + 136: uint16(20286), + 137: uint16(20287), + 138: uint16(20288), + 139: uint16(20289), + 140: uint16(20290), + 141: uint16(20292), + 142: uint16(20293), + 143: uint16(20295), + 144: uint16(20296), + 145: uint16(20297), + 146: uint16(20298), + 147: uint16(20299), + 148: uint16(20300), + 149: uint16(20306), + 150: uint16(20308), + 151: uint16(20310), + 152: uint16(20321), + 153: uint16(20322), + 154: uint16(20326), + 155: uint16(20328), + 156: uint16(20330), + 157: uint16(20331), + 158: uint16(20333), + 159: uint16(20334), + 160: uint16(20337), + 161: uint16(20338), + 162: uint16(20341), + 163: uint16(20343), + 164: uint16(20344), + 165: uint16(20345), + 166: uint16(20346), + 167: uint16(20349), + 168: uint16(20352), + 169: uint16(20353), + 170: uint16(20354), + 171: uint16(20357), + 172: uint16(20358), + 173: uint16(20359), + 174: uint16(20362), + 175: uint16(20364), + 176: uint16(20366), + 177: uint16(20368), + 178: uint16(20370), + 179: uint16(20371), + 180: uint16(20373), + 181: uint16(20374), + 182: uint16(20376), + 183: uint16(20377), + 184: uint16(20378), + 185: uint16(20380), + 186: uint16(20382), + 187: uint16(20383), + 188: uint16(20385), + 189: uint16(20386), + }, + 1: { + 0: uint16(20388), + 1: uint16(20395), + 2: uint16(20397), + 3: uint16(20400), + 4: uint16(20401), + 5: uint16(20402), + 6: uint16(20403), + 7: uint16(20404), + 8: uint16(20406), + 9: uint16(20407), + 10: uint16(20408), + 11: uint16(20409), + 12: uint16(20410), + 13: uint16(20411), + 14: uint16(20412), + 15: uint16(20413), + 16: uint16(20414), + 17: uint16(20416), + 18: uint16(20417), + 19: uint16(20418), + 20: uint16(20422), + 21: uint16(20423), + 22: uint16(20424), + 23: uint16(20425), + 24: uint16(20427), + 25: uint16(20428), + 26: uint16(20429), + 27: uint16(20434), + 28: uint16(20435), + 29: uint16(20436), + 30: uint16(20437), + 31: uint16(20438), + 32: uint16(20441), + 33: uint16(20443), + 34: uint16(20448), + 35: uint16(20450), + 36: uint16(20452), + 37: uint16(20453), + 38: uint16(20455), + 39: uint16(20459), + 40: uint16(20460), + 41: uint16(20464), + 42: uint16(20466), + 43: uint16(20468), + 44: uint16(20469), + 45: uint16(20470), + 46: uint16(20471), + 47: uint16(20473), + 48: uint16(20475), + 49: uint16(20476), + 50: uint16(20477), + 51: uint16(20479), + 52: uint16(20480), + 53: uint16(20481), + 54: uint16(20482), + 55: uint16(20483), + 56: uint16(20484), + 57: uint16(20485), + 58: uint16(20486), + 59: uint16(20487), + 60: uint16(20488), + 61: uint16(20489), + 62: uint16(20490), + 63: uint16(20491), + 64: uint16(20494), + 65: uint16(20496), + 66: uint16(20497), + 67: uint16(20499), + 68: uint16(20501), + 69: uint16(20502), + 70: uint16(20503), + 71: uint16(20507), + 72: uint16(20509), + 73: uint16(20510), + 74: uint16(20512), + 75: uint16(20514), + 76: uint16(20515), + 77: uint16(20516), + 78: uint16(20519), + 79: uint16(20523), + 80: uint16(20527), + 81: uint16(20528), + 82: uint16(20529), + 83: uint16(20530), + 84: uint16(20531), + 85: uint16(20532), + 86: uint16(20533), + 87: uint16(20534), + 88: uint16(20535), + 89: uint16(20536), + 90: uint16(20537), + 91: uint16(20539), + 92: uint16(20541), + 93: uint16(20543), + 94: uint16(20544), + 95: uint16(20545), + 96: uint16(20546), + 97: uint16(20548), + 98: uint16(20549), + 99: uint16(20550), + 100: uint16(20553), + 101: uint16(20554), + 102: uint16(20555), + 103: uint16(20557), + 104: uint16(20560), + 105: uint16(20561), + 106: uint16(20562), + 107: uint16(20563), + 108: uint16(20564), + 109: uint16(20566), + 110: uint16(20567), + 111: uint16(20568), + 112: uint16(20569), + 113: uint16(20571), + 114: uint16(20573), + 115: uint16(20574), + 116: uint16(20575), + 117: uint16(20576), + 118: uint16(20577), + 119: uint16(20578), + 120: uint16(20579), + 121: uint16(20580), + 122: uint16(20582), + 123: uint16(20583), + 124: uint16(20584), + 125: uint16(20585), + 126: uint16(20586), + 127: uint16(20587), + 128: uint16(20589), + 129: uint16(20590), + 130: uint16(20591), + 131: uint16(20592), + 132: uint16(20593), + 133: uint16(20594), + 134: uint16(20595), + 135: uint16(20596), + 136: uint16(20597), + 137: uint16(20600), + 138: uint16(20601), + 139: uint16(20602), + 140: uint16(20604), + 141: uint16(20605), + 142: uint16(20609), + 143: uint16(20610), + 144: uint16(20611), + 145: uint16(20612), + 146: uint16(20614), + 147: uint16(20615), + 148: uint16(20617), + 149: uint16(20618), + 150: uint16(20619), + 151: uint16(20620), + 152: uint16(20622), + 153: uint16(20623), + 154: uint16(20624), + 155: uint16(20625), + 156: uint16(20626), + 157: uint16(20627), + 158: uint16(20628), + 159: uint16(20629), + 160: uint16(20630), + 161: uint16(20631), + 162: uint16(20632), + 163: uint16(20633), + 164: uint16(20634), + 165: uint16(20635), + 166: uint16(20636), + 167: uint16(20637), + 168: uint16(20638), + 169: uint16(20639), + 170: uint16(20640), + 171: uint16(20641), + 172: uint16(20642), + 173: uint16(20644), + 174: uint16(20646), + 175: uint16(20650), + 176: uint16(20651), + 177: uint16(20653), + 178: uint16(20654), + 179: uint16(20655), + 180: uint16(20656), + 181: uint16(20657), + 182: uint16(20659), + 183: uint16(20660), + 184: uint16(20661), + 185: uint16(20662), + 186: uint16(20663), + 187: uint16(20664), + 188: uint16(20665), + 189: uint16(20668), + }, + 2: { + 0: uint16(20669), + 1: uint16(20670), + 2: uint16(20671), + 3: uint16(20672), + 4: uint16(20673), + 5: uint16(20674), + 6: uint16(20675), + 7: uint16(20676), + 8: uint16(20677), + 9: uint16(20678), + 10: uint16(20679), + 11: uint16(20680), + 12: uint16(20681), + 13: uint16(20682), + 14: uint16(20683), + 15: uint16(20684), + 16: uint16(20685), + 17: uint16(20686), + 18: uint16(20688), + 19: uint16(20689), + 20: uint16(20690), + 21: uint16(20691), + 22: uint16(20692), + 23: uint16(20693), + 24: uint16(20695), + 25: uint16(20696), + 26: uint16(20697), + 27: uint16(20699), + 28: uint16(20700), + 29: uint16(20701), + 30: uint16(20702), + 31: uint16(20703), + 32: uint16(20704), + 33: uint16(20705), + 34: uint16(20706), + 35: uint16(20707), + 36: uint16(20708), + 37: uint16(20709), + 38: uint16(20712), + 39: uint16(20713), + 40: uint16(20714), + 41: uint16(20715), + 42: uint16(20719), + 43: uint16(20720), + 44: uint16(20721), + 45: uint16(20722), + 46: uint16(20724), + 47: uint16(20726), + 48: uint16(20727), + 49: uint16(20728), + 50: uint16(20729), + 51: uint16(20730), + 52: uint16(20732), + 53: uint16(20733), + 54: uint16(20734), + 55: uint16(20735), + 56: uint16(20736), + 57: uint16(20737), + 58: uint16(20738), + 59: uint16(20739), + 60: uint16(20740), + 61: uint16(20741), + 62: uint16(20744), + 63: uint16(20745), + 64: uint16(20746), + 65: uint16(20748), + 66: uint16(20749), + 67: uint16(20750), + 68: uint16(20751), + 69: uint16(20752), + 70: uint16(20753), + 71: uint16(20755), + 72: uint16(20756), + 73: uint16(20757), + 74: uint16(20758), + 75: uint16(20759), + 76: uint16(20760), + 77: uint16(20761), + 78: uint16(20762), + 79: uint16(20763), + 80: uint16(20764), + 81: uint16(20765), + 82: uint16(20766), + 83: uint16(20767), + 84: uint16(20768), + 85: uint16(20770), + 86: uint16(20771), + 87: uint16(20772), + 88: uint16(20773), + 89: uint16(20774), + 90: uint16(20775), + 91: uint16(20776), + 92: uint16(20777), + 93: uint16(20778), + 94: uint16(20779), + 95: uint16(20780), + 96: uint16(20781), + 97: uint16(20782), + 98: uint16(20783), + 99: uint16(20784), + 100: uint16(20785), + 101: uint16(20786), + 102: uint16(20787), + 103: uint16(20788), + 104: uint16(20789), + 105: uint16(20790), + 106: uint16(20791), + 107: uint16(20792), + 108: uint16(20793), + 109: uint16(20794), + 110: uint16(20795), + 111: uint16(20796), + 112: uint16(20797), + 113: uint16(20798), + 114: uint16(20802), + 115: uint16(20807), + 116: uint16(20810), + 117: uint16(20812), + 118: uint16(20814), + 119: uint16(20815), + 120: uint16(20816), + 121: uint16(20818), + 122: uint16(20819), + 123: uint16(20823), + 124: uint16(20824), + 125: uint16(20825), + 126: uint16(20827), + 127: uint16(20829), + 128: uint16(20830), + 129: uint16(20831), + 130: uint16(20832), + 131: uint16(20833), + 132: uint16(20835), + 133: uint16(20836), + 134: uint16(20838), + 135: uint16(20839), + 136: uint16(20841), + 137: uint16(20842), + 138: uint16(20847), + 139: uint16(20850), + 140: uint16(20858), + 141: uint16(20862), + 142: uint16(20863), + 143: uint16(20867), + 144: uint16(20868), + 145: uint16(20870), + 146: uint16(20871), + 147: uint16(20874), + 148: uint16(20875), + 149: uint16(20878), + 150: uint16(20879), + 151: uint16(20880), + 152: uint16(20881), + 153: uint16(20883), + 154: uint16(20884), + 155: uint16(20888), + 156: uint16(20890), + 157: uint16(20893), + 158: uint16(20894), + 159: uint16(20895), + 160: uint16(20897), + 161: uint16(20899), + 162: uint16(20902), + 163: uint16(20903), + 164: uint16(20904), + 165: uint16(20905), + 166: uint16(20906), + 167: uint16(20909), + 168: uint16(20910), + 169: uint16(20916), + 170: uint16(20920), + 171: uint16(20921), + 172: uint16(20922), + 173: uint16(20926), + 174: uint16(20927), + 175: uint16(20929), + 176: uint16(20930), + 177: uint16(20931), + 178: uint16(20933), + 179: uint16(20936), + 180: uint16(20938), + 181: uint16(20941), + 182: uint16(20942), + 183: uint16(20944), + 184: uint16(20946), + 185: uint16(20947), + 186: uint16(20948), + 187: uint16(20949), + 188: uint16(20950), + 189: uint16(20951), + }, + 3: { + 0: uint16(20952), + 1: uint16(20953), + 2: uint16(20954), + 3: uint16(20956), + 4: uint16(20958), + 5: uint16(20959), + 6: uint16(20962), + 7: uint16(20963), + 8: uint16(20965), + 9: uint16(20966), + 10: uint16(20967), + 11: uint16(20968), + 12: uint16(20969), + 13: uint16(20970), + 14: uint16(20972), + 15: uint16(20974), + 16: uint16(20977), + 17: uint16(20978), + 18: uint16(20980), + 19: uint16(20983), + 20: uint16(20990), + 21: uint16(20996), + 22: uint16(20997), + 23: uint16(21001), + 24: uint16(21003), + 25: uint16(21004), + 26: uint16(21007), + 27: uint16(21008), + 28: uint16(21011), + 29: uint16(21012), + 30: uint16(21013), + 31: uint16(21020), + 32: uint16(21022), + 33: uint16(21023), + 34: uint16(21025), + 35: uint16(21026), + 36: uint16(21027), + 37: uint16(21029), + 38: uint16(21030), + 39: uint16(21031), + 40: uint16(21034), + 41: uint16(21036), + 42: uint16(21039), + 43: uint16(21041), + 44: uint16(21042), + 45: uint16(21044), + 46: uint16(21045), + 47: uint16(21052), + 48: uint16(21054), + 49: uint16(21060), + 50: uint16(21061), + 51: uint16(21062), + 52: uint16(21063), + 53: uint16(21064), + 54: uint16(21065), + 55: uint16(21067), + 56: uint16(21070), + 57: uint16(21071), + 58: uint16(21074), + 59: uint16(21075), + 60: uint16(21077), + 61: uint16(21079), + 62: uint16(21080), + 63: uint16(21081), + 64: uint16(21082), + 65: uint16(21083), + 66: uint16(21085), + 67: uint16(21087), + 68: uint16(21088), + 69: uint16(21090), + 70: uint16(21091), + 71: uint16(21092), + 72: uint16(21094), + 73: uint16(21096), + 74: uint16(21099), + 75: uint16(21100), + 76: uint16(21101), + 77: uint16(21102), + 78: uint16(21104), + 79: uint16(21105), + 80: uint16(21107), + 81: uint16(21108), + 82: uint16(21109), + 83: uint16(21110), + 84: uint16(21111), + 85: uint16(21112), + 86: uint16(21113), + 87: uint16(21114), + 88: uint16(21115), + 89: uint16(21116), + 90: uint16(21118), + 91: uint16(21120), + 92: uint16(21123), + 93: uint16(21124), + 94: uint16(21125), + 95: uint16(21126), + 96: uint16(21127), + 97: uint16(21129), + 98: uint16(21130), + 99: uint16(21131), + 100: uint16(21132), + 101: uint16(21133), + 102: uint16(21134), + 103: uint16(21135), + 104: uint16(21137), + 105: uint16(21138), + 106: uint16(21140), + 107: uint16(21141), + 108: uint16(21142), + 109: uint16(21143), + 110: uint16(21144), + 111: uint16(21145), + 112: uint16(21146), + 113: uint16(21148), + 114: uint16(21156), + 115: uint16(21157), + 116: uint16(21158), + 117: uint16(21159), + 118: uint16(21166), + 119: uint16(21167), + 120: uint16(21168), + 121: uint16(21172), + 122: uint16(21173), + 123: uint16(21174), + 124: uint16(21175), + 125: uint16(21176), + 126: uint16(21177), + 127: uint16(21178), + 128: uint16(21179), + 129: uint16(21180), + 130: uint16(21181), + 131: uint16(21184), + 132: uint16(21185), + 133: uint16(21186), + 134: uint16(21188), + 135: uint16(21189), + 136: uint16(21190), + 137: uint16(21192), + 138: uint16(21194), + 139: uint16(21196), + 140: uint16(21197), + 141: uint16(21198), + 142: uint16(21199), + 143: uint16(21201), + 144: uint16(21203), + 145: uint16(21204), + 146: uint16(21205), + 147: uint16(21207), + 148: uint16(21209), + 149: uint16(21210), + 150: uint16(21211), + 151: uint16(21212), + 152: uint16(21213), + 153: uint16(21214), + 154: uint16(21216), + 155: uint16(21217), + 156: uint16(21218), + 157: uint16(21219), + 158: uint16(21221), + 159: uint16(21222), + 160: uint16(21223), + 161: uint16(21224), + 162: uint16(21225), + 163: uint16(21226), + 164: uint16(21227), + 165: uint16(21228), + 166: uint16(21229), + 167: uint16(21230), + 168: uint16(21231), + 169: uint16(21233), + 170: uint16(21234), + 171: uint16(21235), + 172: uint16(21236), + 173: uint16(21237), + 174: uint16(21238), + 175: uint16(21239), + 176: uint16(21240), + 177: uint16(21243), + 178: uint16(21244), + 179: uint16(21245), + 180: uint16(21249), + 181: uint16(21250), + 182: uint16(21251), + 183: uint16(21252), + 184: uint16(21255), + 185: uint16(21257), + 186: uint16(21258), + 187: uint16(21259), + 188: uint16(21260), + 189: uint16(21262), + }, + 4: { + 0: uint16(21265), + 1: uint16(21266), + 2: uint16(21267), + 3: uint16(21268), + 4: uint16(21272), + 5: uint16(21275), + 6: uint16(21276), + 7: uint16(21278), + 8: uint16(21279), + 9: uint16(21282), + 10: uint16(21284), + 11: uint16(21285), + 12: uint16(21287), + 13: uint16(21288), + 14: uint16(21289), + 15: uint16(21291), + 16: uint16(21292), + 17: uint16(21293), + 18: uint16(21295), + 19: uint16(21296), + 20: uint16(21297), + 21: uint16(21298), + 22: uint16(21299), + 23: uint16(21300), + 24: uint16(21301), + 25: uint16(21302), + 26: uint16(21303), + 27: uint16(21304), + 28: uint16(21308), + 29: uint16(21309), + 30: uint16(21312), + 31: uint16(21314), + 32: uint16(21316), + 33: uint16(21318), + 34: uint16(21323), + 35: uint16(21324), + 36: uint16(21325), + 37: uint16(21328), + 38: uint16(21332), + 39: uint16(21336), + 40: uint16(21337), + 41: uint16(21339), + 42: uint16(21341), + 43: uint16(21349), + 44: uint16(21352), + 45: uint16(21354), + 46: uint16(21356), + 47: uint16(21357), + 48: uint16(21362), + 49: uint16(21366), + 50: uint16(21369), + 51: uint16(21371), + 52: uint16(21372), + 53: uint16(21373), + 54: uint16(21374), + 55: uint16(21376), + 56: uint16(21377), + 57: uint16(21379), + 58: uint16(21383), + 59: uint16(21384), + 60: uint16(21386), + 61: uint16(21390), + 62: uint16(21391), + 63: uint16(21392), + 64: uint16(21393), + 65: uint16(21394), + 66: uint16(21395), + 67: uint16(21396), + 68: uint16(21398), + 69: uint16(21399), + 70: uint16(21401), + 71: uint16(21403), + 72: uint16(21404), + 73: uint16(21406), + 74: uint16(21408), + 75: uint16(21409), + 76: uint16(21412), + 77: uint16(21415), + 78: uint16(21418), + 79: uint16(21419), + 80: uint16(21420), + 81: uint16(21421), + 82: uint16(21423), + 83: uint16(21424), + 84: uint16(21425), + 85: uint16(21426), + 86: uint16(21427), + 87: uint16(21428), + 88: uint16(21429), + 89: uint16(21431), + 90: uint16(21432), + 91: uint16(21433), + 92: uint16(21434), + 93: uint16(21436), + 94: uint16(21437), + 95: uint16(21438), + 96: uint16(21440), + 97: uint16(21443), + 98: uint16(21444), + 99: uint16(21445), + 100: uint16(21446), + 101: uint16(21447), + 102: uint16(21454), + 103: uint16(21455), + 104: uint16(21456), + 105: uint16(21458), + 106: uint16(21459), + 107: uint16(21461), + 108: uint16(21466), + 109: uint16(21468), + 110: uint16(21469), + 111: uint16(21470), + 112: uint16(21473), + 113: uint16(21474), + 114: uint16(21479), + 115: uint16(21492), + 116: uint16(21498), + 117: uint16(21502), + 118: uint16(21503), + 119: uint16(21504), + 120: uint16(21506), + 121: uint16(21509), + 122: uint16(21511), + 123: uint16(21515), + 124: uint16(21524), + 125: uint16(21528), + 126: uint16(21529), + 127: uint16(21530), + 128: uint16(21532), + 129: uint16(21538), + 130: uint16(21540), + 131: uint16(21541), + 132: uint16(21546), + 133: uint16(21552), + 134: uint16(21555), + 135: uint16(21558), + 136: uint16(21559), + 137: uint16(21562), + 138: uint16(21565), + 139: uint16(21567), + 140: uint16(21569), + 141: uint16(21570), + 142: uint16(21572), + 143: uint16(21573), + 144: uint16(21575), + 145: uint16(21577), + 146: uint16(21580), + 147: uint16(21581), + 148: uint16(21582), + 149: uint16(21583), + 150: uint16(21585), + 151: uint16(21594), + 152: uint16(21597), + 153: uint16(21598), + 154: uint16(21599), + 155: uint16(21600), + 156: uint16(21601), + 157: uint16(21603), + 158: uint16(21605), + 159: uint16(21607), + 160: uint16(21609), + 161: uint16(21610), + 162: uint16(21611), + 163: uint16(21612), + 164: uint16(21613), + 165: uint16(21614), + 166: uint16(21615), + 167: uint16(21616), + 168: uint16(21620), + 169: uint16(21625), + 170: uint16(21626), + 171: uint16(21630), + 172: uint16(21631), + 173: uint16(21633), + 174: uint16(21635), + 175: uint16(21637), + 176: uint16(21639), + 177: uint16(21640), + 178: uint16(21641), + 179: uint16(21642), + 180: uint16(21645), + 181: uint16(21649), + 182: uint16(21651), + 183: uint16(21655), + 184: uint16(21656), + 185: uint16(21660), + 186: uint16(21662), + 187: uint16(21663), + 188: uint16(21664), + 189: uint16(21665), + }, + 5: { + 0: uint16(21666), + 1: uint16(21669), + 2: uint16(21678), + 3: uint16(21680), + 4: uint16(21682), + 5: uint16(21685), + 6: uint16(21686), + 7: uint16(21687), + 8: uint16(21689), + 9: uint16(21690), + 10: uint16(21692), + 11: uint16(21694), + 12: uint16(21699), + 13: uint16(21701), + 14: uint16(21706), + 15: uint16(21707), + 16: uint16(21718), + 17: uint16(21720), + 18: uint16(21723), + 19: uint16(21728), + 20: uint16(21729), + 21: uint16(21730), + 22: uint16(21731), + 23: uint16(21732), + 24: uint16(21739), + 25: uint16(21740), + 26: uint16(21743), + 27: uint16(21744), + 28: uint16(21745), + 29: uint16(21748), + 30: uint16(21749), + 31: uint16(21750), + 32: uint16(21751), + 33: uint16(21752), + 34: uint16(21753), + 35: uint16(21755), + 36: uint16(21758), + 37: uint16(21760), + 38: uint16(21762), + 39: uint16(21763), + 40: uint16(21764), + 41: uint16(21765), + 42: uint16(21768), + 43: uint16(21770), + 44: uint16(21771), + 45: uint16(21772), + 46: uint16(21773), + 47: uint16(21774), + 48: uint16(21778), + 49: uint16(21779), + 50: uint16(21781), + 51: uint16(21782), + 52: uint16(21783), + 53: uint16(21784), + 54: uint16(21785), + 55: uint16(21786), + 56: uint16(21788), + 57: uint16(21789), + 58: uint16(21790), + 59: uint16(21791), + 60: uint16(21793), + 61: uint16(21797), + 62: uint16(21798), + 63: uint16(21800), + 64: uint16(21801), + 65: uint16(21803), + 66: uint16(21805), + 67: uint16(21810), + 68: uint16(21812), + 69: uint16(21813), + 70: uint16(21814), + 71: uint16(21816), + 72: uint16(21817), + 73: uint16(21818), + 74: uint16(21819), + 75: uint16(21821), + 76: uint16(21824), + 77: uint16(21826), + 78: uint16(21829), + 79: uint16(21831), + 80: uint16(21832), + 81: uint16(21835), + 82: uint16(21836), + 83: uint16(21837), + 84: uint16(21838), + 85: uint16(21839), + 86: uint16(21841), + 87: uint16(21842), + 88: uint16(21843), + 89: uint16(21844), + 90: uint16(21847), + 91: uint16(21848), + 92: uint16(21849), + 93: uint16(21850), + 94: uint16(21851), + 95: uint16(21853), + 96: uint16(21854), + 97: uint16(21855), + 98: uint16(21856), + 99: uint16(21858), + 100: uint16(21859), + 101: uint16(21864), + 102: uint16(21865), + 103: uint16(21867), + 104: uint16(21871), + 105: uint16(21872), + 106: uint16(21873), + 107: uint16(21874), + 108: uint16(21875), + 109: uint16(21876), + 110: uint16(21881), + 111: uint16(21882), + 112: uint16(21885), + 113: uint16(21887), + 114: uint16(21893), + 115: uint16(21894), + 116: uint16(21900), + 117: uint16(21901), + 118: uint16(21902), + 119: uint16(21904), + 120: uint16(21906), + 121: uint16(21907), + 122: uint16(21909), + 123: uint16(21910), + 124: uint16(21911), + 125: uint16(21914), + 126: uint16(21915), + 127: uint16(21918), + 128: uint16(21920), + 129: uint16(21921), + 130: uint16(21922), + 131: uint16(21923), + 132: uint16(21924), + 133: uint16(21925), + 134: uint16(21926), + 135: uint16(21928), + 136: uint16(21929), + 137: uint16(21930), + 138: uint16(21931), + 139: uint16(21932), + 140: uint16(21933), + 141: uint16(21934), + 142: uint16(21935), + 143: uint16(21936), + 144: uint16(21938), + 145: uint16(21940), + 146: uint16(21942), + 147: uint16(21944), + 148: uint16(21946), + 149: uint16(21948), + 150: uint16(21951), + 151: uint16(21952), + 152: uint16(21953), + 153: uint16(21954), + 154: uint16(21955), + 155: uint16(21958), + 156: uint16(21959), + 157: uint16(21960), + 158: uint16(21962), + 159: uint16(21963), + 160: uint16(21966), + 161: uint16(21967), + 162: uint16(21968), + 163: uint16(21973), + 164: uint16(21975), + 165: uint16(21976), + 166: uint16(21977), + 167: uint16(21978), + 168: uint16(21979), + 169: uint16(21982), + 170: uint16(21984), + 171: uint16(21986), + 172: uint16(21991), + 173: uint16(21993), + 174: uint16(21997), + 175: uint16(21998), + 176: uint16(22000), + 177: uint16(22001), + 178: uint16(22004), + 179: uint16(22006), + 180: uint16(22008), + 181: uint16(22009), + 182: uint16(22010), + 183: uint16(22011), + 184: uint16(22012), + 185: uint16(22015), + 186: uint16(22018), + 187: uint16(22019), + 188: uint16(22020), + 189: uint16(22021), + }, + 6: { + 0: uint16(22022), + 1: uint16(22023), + 2: uint16(22026), + 3: uint16(22027), + 4: uint16(22029), + 5: uint16(22032), + 6: uint16(22033), + 7: uint16(22034), + 8: uint16(22035), + 9: uint16(22036), + 10: uint16(22037), + 11: uint16(22038), + 12: uint16(22039), + 13: uint16(22041), + 14: uint16(22042), + 15: uint16(22044), + 16: uint16(22045), + 17: uint16(22048), + 18: uint16(22049), + 19: uint16(22050), + 20: uint16(22053), + 21: uint16(22054), + 22: uint16(22056), + 23: uint16(22057), + 24: uint16(22058), + 25: uint16(22059), + 26: uint16(22062), + 27: uint16(22063), + 28: uint16(22064), + 29: uint16(22067), + 30: uint16(22069), + 31: uint16(22071), + 32: uint16(22072), + 33: uint16(22074), + 34: uint16(22076), + 35: uint16(22077), + 36: uint16(22078), + 37: uint16(22080), + 38: uint16(22081), + 39: uint16(22082), + 40: uint16(22083), + 41: uint16(22084), + 42: uint16(22085), + 43: uint16(22086), + 44: uint16(22087), + 45: uint16(22088), + 46: uint16(22089), + 47: uint16(22090), + 48: uint16(22091), + 49: uint16(22095), + 50: uint16(22096), + 51: uint16(22097), + 52: uint16(22098), + 53: uint16(22099), + 54: uint16(22101), + 55: uint16(22102), + 56: uint16(22106), + 57: uint16(22107), + 58: uint16(22109), + 59: uint16(22110), + 60: uint16(22111), + 61: uint16(22112), + 62: uint16(22113), + 63: uint16(22115), + 64: uint16(22117), + 65: uint16(22118), + 66: uint16(22119), + 67: uint16(22125), + 68: uint16(22126), + 69: uint16(22127), + 70: uint16(22128), + 71: uint16(22130), + 72: uint16(22131), + 73: uint16(22132), + 74: uint16(22133), + 75: uint16(22135), + 76: uint16(22136), + 77: uint16(22137), + 78: uint16(22138), + 79: uint16(22141), + 80: uint16(22142), + 81: uint16(22143), + 82: uint16(22144), + 83: uint16(22145), + 84: uint16(22146), + 85: uint16(22147), + 86: uint16(22148), + 87: uint16(22151), + 88: uint16(22152), + 89: uint16(22153), + 90: uint16(22154), + 91: uint16(22155), + 92: uint16(22156), + 93: uint16(22157), + 94: uint16(22160), + 95: uint16(22161), + 96: uint16(22162), + 97: uint16(22164), + 98: uint16(22165), + 99: uint16(22166), + 100: uint16(22167), + 101: uint16(22168), + 102: uint16(22169), + 103: uint16(22170), + 104: uint16(22171), + 105: uint16(22172), + 106: uint16(22173), + 107: uint16(22174), + 108: uint16(22175), + 109: uint16(22176), + 110: uint16(22177), + 111: uint16(22178), + 112: uint16(22180), + 113: uint16(22181), + 114: uint16(22182), + 115: uint16(22183), + 116: uint16(22184), + 117: uint16(22185), + 118: uint16(22186), + 119: uint16(22187), + 120: uint16(22188), + 121: uint16(22189), + 122: uint16(22190), + 123: uint16(22192), + 124: uint16(22193), + 125: uint16(22194), + 126: uint16(22195), + 127: uint16(22196), + 128: uint16(22197), + 129: uint16(22198), + 130: uint16(22200), + 131: uint16(22201), + 132: uint16(22202), + 133: uint16(22203), + 134: uint16(22205), + 135: uint16(22206), + 136: uint16(22207), + 137: uint16(22208), + 138: uint16(22209), + 139: uint16(22210), + 140: uint16(22211), + 141: uint16(22212), + 142: uint16(22213), + 143: uint16(22214), + 144: uint16(22215), + 145: uint16(22216), + 146: uint16(22217), + 147: uint16(22219), + 148: uint16(22220), + 149: uint16(22221), + 150: uint16(22222), + 151: uint16(22223), + 152: uint16(22224), + 153: uint16(22225), + 154: uint16(22226), + 155: uint16(22227), + 156: uint16(22229), + 157: uint16(22230), + 158: uint16(22232), + 159: uint16(22233), + 160: uint16(22236), + 161: uint16(22243), + 162: uint16(22245), + 163: uint16(22246), + 164: uint16(22247), + 165: uint16(22248), + 166: uint16(22249), + 167: uint16(22250), + 168: uint16(22252), + 169: uint16(22254), + 170: uint16(22255), + 171: uint16(22258), + 172: uint16(22259), + 173: uint16(22262), + 174: uint16(22263), + 175: uint16(22264), + 176: uint16(22267), + 177: uint16(22268), + 178: uint16(22272), + 179: uint16(22273), + 180: uint16(22274), + 181: uint16(22277), + 182: uint16(22279), + 183: uint16(22283), + 184: uint16(22284), + 185: uint16(22285), + 186: uint16(22286), + 187: uint16(22287), + 188: uint16(22288), + 189: uint16(22289), + }, + 7: { + 0: uint16(22290), + 1: uint16(22291), + 2: uint16(22292), + 3: uint16(22293), + 4: uint16(22294), + 5: uint16(22295), + 6: uint16(22296), + 7: uint16(22297), + 8: uint16(22298), + 9: uint16(22299), + 10: uint16(22301), + 11: uint16(22302), + 12: uint16(22304), + 13: uint16(22305), + 14: uint16(22306), + 15: uint16(22308), + 16: uint16(22309), + 17: uint16(22310), + 18: uint16(22311), + 19: uint16(22315), + 20: uint16(22321), + 21: uint16(22322), + 22: uint16(22324), + 23: uint16(22325), + 24: uint16(22326), + 25: uint16(22327), + 26: uint16(22328), + 27: uint16(22332), + 28: uint16(22333), + 29: uint16(22335), + 30: uint16(22337), + 31: uint16(22339), + 32: uint16(22340), + 33: uint16(22341), + 34: uint16(22342), + 35: uint16(22344), + 36: uint16(22345), + 37: uint16(22347), + 38: uint16(22354), + 39: uint16(22355), + 40: uint16(22356), + 41: uint16(22357), + 42: uint16(22358), + 43: uint16(22360), + 44: uint16(22361), + 45: uint16(22370), + 46: uint16(22371), + 47: uint16(22373), + 48: uint16(22375), + 49: uint16(22380), + 50: uint16(22382), + 51: uint16(22384), + 52: uint16(22385), + 53: uint16(22386), + 54: uint16(22388), + 55: uint16(22389), + 56: uint16(22392), + 57: uint16(22393), + 58: uint16(22394), + 59: uint16(22397), + 60: uint16(22398), + 61: uint16(22399), + 62: uint16(22400), + 63: uint16(22401), + 64: uint16(22407), + 65: uint16(22408), + 66: uint16(22409), + 67: uint16(22410), + 68: uint16(22413), + 69: uint16(22414), + 70: uint16(22415), + 71: uint16(22416), + 72: uint16(22417), + 73: uint16(22420), + 74: uint16(22421), + 75: uint16(22422), + 76: uint16(22423), + 77: uint16(22424), + 78: uint16(22425), + 79: uint16(22426), + 80: uint16(22428), + 81: uint16(22429), + 82: uint16(22430), + 83: uint16(22431), + 84: uint16(22437), + 85: uint16(22440), + 86: uint16(22442), + 87: uint16(22444), + 88: uint16(22447), + 89: uint16(22448), + 90: uint16(22449), + 91: uint16(22451), + 92: uint16(22453), + 93: uint16(22454), + 94: uint16(22455), + 95: uint16(22457), + 96: uint16(22458), + 97: uint16(22459), + 98: uint16(22460), + 99: uint16(22461), + 100: uint16(22462), + 101: uint16(22463), + 102: uint16(22464), + 103: uint16(22465), + 104: uint16(22468), + 105: uint16(22469), + 106: uint16(22470), + 107: uint16(22471), + 108: uint16(22472), + 109: uint16(22473), + 110: uint16(22474), + 111: uint16(22476), + 112: uint16(22477), + 113: uint16(22480), + 114: uint16(22481), + 115: uint16(22483), + 116: uint16(22486), + 117: uint16(22487), + 118: uint16(22491), + 119: uint16(22492), + 120: uint16(22494), + 121: uint16(22497), + 122: uint16(22498), + 123: uint16(22499), + 124: uint16(22501), + 125: uint16(22502), + 126: uint16(22503), + 127: uint16(22504), + 128: uint16(22505), + 129: uint16(22506), + 130: uint16(22507), + 131: uint16(22508), + 132: uint16(22510), + 133: uint16(22512), + 134: uint16(22513), + 135: uint16(22514), + 136: uint16(22515), + 137: uint16(22517), + 138: uint16(22518), + 139: uint16(22519), + 140: uint16(22523), + 141: uint16(22524), + 142: uint16(22526), + 143: uint16(22527), + 144: uint16(22529), + 145: uint16(22531), + 146: uint16(22532), + 147: uint16(22533), + 148: uint16(22536), + 149: uint16(22537), + 150: uint16(22538), + 151: uint16(22540), + 152: uint16(22542), + 153: uint16(22543), + 154: uint16(22544), + 155: uint16(22546), + 156: uint16(22547), + 157: uint16(22548), + 158: uint16(22550), + 159: uint16(22551), + 160: uint16(22552), + 161: uint16(22554), + 162: uint16(22555), + 163: uint16(22556), + 164: uint16(22557), + 165: uint16(22559), + 166: uint16(22562), + 167: uint16(22563), + 168: uint16(22565), + 169: uint16(22566), + 170: uint16(22567), + 171: uint16(22568), + 172: uint16(22569), + 173: uint16(22571), + 174: uint16(22572), + 175: uint16(22573), + 176: uint16(22574), + 177: uint16(22575), + 178: uint16(22577), + 179: uint16(22578), + 180: uint16(22579), + 181: uint16(22580), + 182: uint16(22582), + 183: uint16(22583), + 184: uint16(22584), + 185: uint16(22585), + 186: uint16(22586), + 187: uint16(22587), + 188: uint16(22588), + 189: uint16(22589), + }, + 8: { + 0: uint16(22590), + 1: uint16(22591), + 2: uint16(22592), + 3: uint16(22593), + 4: uint16(22594), + 5: uint16(22595), + 6: uint16(22597), + 7: uint16(22598), + 8: uint16(22599), + 9: uint16(22600), + 10: uint16(22601), + 11: uint16(22602), + 12: uint16(22603), + 13: uint16(22606), + 14: uint16(22607), + 15: uint16(22608), + 16: uint16(22610), + 17: uint16(22611), + 18: uint16(22613), + 19: uint16(22614), + 20: uint16(22615), + 21: uint16(22617), + 22: uint16(22618), + 23: uint16(22619), + 24: uint16(22620), + 25: uint16(22621), + 26: uint16(22623), + 27: uint16(22624), + 28: uint16(22625), + 29: uint16(22626), + 30: uint16(22627), + 31: uint16(22628), + 32: uint16(22630), + 33: uint16(22631), + 34: uint16(22632), + 35: uint16(22633), + 36: uint16(22634), + 37: uint16(22637), + 38: uint16(22638), + 39: uint16(22639), + 40: uint16(22640), + 41: uint16(22641), + 42: uint16(22642), + 43: uint16(22643), + 44: uint16(22644), + 45: uint16(22645), + 46: uint16(22646), + 47: uint16(22647), + 48: uint16(22648), + 49: uint16(22649), + 50: uint16(22650), + 51: uint16(22651), + 52: uint16(22652), + 53: uint16(22653), + 54: uint16(22655), + 55: uint16(22658), + 56: uint16(22660), + 57: uint16(22662), + 58: uint16(22663), + 59: uint16(22664), + 60: uint16(22666), + 61: uint16(22667), + 62: uint16(22668), + 63: uint16(22669), + 64: uint16(22670), + 65: uint16(22671), + 66: uint16(22672), + 67: uint16(22673), + 68: uint16(22676), + 69: uint16(22677), + 70: uint16(22678), + 71: uint16(22679), + 72: uint16(22680), + 73: uint16(22683), + 74: uint16(22684), + 75: uint16(22685), + 76: uint16(22688), + 77: uint16(22689), + 78: uint16(22690), + 79: uint16(22691), + 80: uint16(22692), + 81: uint16(22693), + 82: uint16(22694), + 83: uint16(22695), + 84: uint16(22698), + 85: uint16(22699), + 86: uint16(22700), + 87: uint16(22701), + 88: uint16(22702), + 89: uint16(22703), + 90: uint16(22704), + 91: uint16(22705), + 92: uint16(22706), + 93: uint16(22707), + 94: uint16(22708), + 95: uint16(22709), + 96: uint16(22710), + 97: uint16(22711), + 98: uint16(22712), + 99: uint16(22713), + 100: uint16(22714), + 101: uint16(22715), + 102: uint16(22717), + 103: uint16(22718), + 104: uint16(22719), + 105: uint16(22720), + 106: uint16(22722), + 107: uint16(22723), + 108: uint16(22724), + 109: uint16(22726), + 110: uint16(22727), + 111: uint16(22728), + 112: uint16(22729), + 113: uint16(22730), + 114: uint16(22731), + 115: uint16(22732), + 116: uint16(22733), + 117: uint16(22734), + 118: uint16(22735), + 119: uint16(22736), + 120: uint16(22738), + 121: uint16(22739), + 122: uint16(22740), + 123: uint16(22742), + 124: uint16(22743), + 125: uint16(22744), + 126: uint16(22745), + 127: uint16(22746), + 128: uint16(22747), + 129: uint16(22748), + 130: uint16(22749), + 131: uint16(22750), + 132: uint16(22751), + 133: uint16(22752), + 134: uint16(22753), + 135: uint16(22754), + 136: uint16(22755), + 137: uint16(22757), + 138: uint16(22758), + 139: uint16(22759), + 140: uint16(22760), + 141: uint16(22761), + 142: uint16(22762), + 143: uint16(22765), + 144: uint16(22767), + 145: uint16(22769), + 146: uint16(22770), + 147: uint16(22772), + 148: uint16(22773), + 149: uint16(22775), + 150: uint16(22776), + 151: uint16(22778), + 152: uint16(22779), + 153: uint16(22780), + 154: uint16(22781), + 155: uint16(22782), + 156: uint16(22783), + 157: uint16(22784), + 158: uint16(22785), + 159: uint16(22787), + 160: uint16(22789), + 161: uint16(22790), + 162: uint16(22792), + 163: uint16(22793), + 164: uint16(22794), + 165: uint16(22795), + 166: uint16(22796), + 167: uint16(22798), + 168: uint16(22800), + 169: uint16(22801), + 170: uint16(22802), + 171: uint16(22803), + 172: uint16(22807), + 173: uint16(22808), + 174: uint16(22811), + 175: uint16(22813), + 176: uint16(22814), + 177: uint16(22816), + 178: uint16(22817), + 179: uint16(22818), + 180: uint16(22819), + 181: uint16(22822), + 182: uint16(22824), + 183: uint16(22828), + 184: uint16(22832), + 185: uint16(22834), + 186: uint16(22835), + 187: uint16(22837), + 188: uint16(22838), + 189: uint16(22843), + }, + 9: { + 0: uint16(22845), + 1: uint16(22846), + 2: uint16(22847), + 3: uint16(22848), + 4: uint16(22851), + 5: uint16(22853), + 6: uint16(22854), + 7: uint16(22858), + 8: uint16(22860), + 9: uint16(22861), + 10: uint16(22864), + 11: uint16(22866), + 12: uint16(22867), + 13: uint16(22873), + 14: uint16(22875), + 15: uint16(22876), + 16: uint16(22877), + 17: uint16(22878), + 18: uint16(22879), + 19: uint16(22881), + 20: uint16(22883), + 21: uint16(22884), + 22: uint16(22886), + 23: uint16(22887), + 24: uint16(22888), + 25: uint16(22889), + 26: uint16(22890), + 27: uint16(22891), + 28: uint16(22892), + 29: uint16(22893), + 30: uint16(22894), + 31: uint16(22895), + 32: uint16(22896), + 33: uint16(22897), + 34: uint16(22898), + 35: uint16(22901), + 36: uint16(22903), + 37: uint16(22906), + 38: uint16(22907), + 39: uint16(22908), + 40: uint16(22910), + 41: uint16(22911), + 42: uint16(22912), + 43: uint16(22917), + 44: uint16(22921), + 45: uint16(22923), + 46: uint16(22924), + 47: uint16(22926), + 48: uint16(22927), + 49: uint16(22928), + 50: uint16(22929), + 51: uint16(22932), + 52: uint16(22933), + 53: uint16(22936), + 54: uint16(22938), + 55: uint16(22939), + 56: uint16(22940), + 57: uint16(22941), + 58: uint16(22943), + 59: uint16(22944), + 60: uint16(22945), + 61: uint16(22946), + 62: uint16(22950), + 63: uint16(22951), + 64: uint16(22956), + 65: uint16(22957), + 66: uint16(22960), + 67: uint16(22961), + 68: uint16(22963), + 69: uint16(22964), + 70: uint16(22965), + 71: uint16(22966), + 72: uint16(22967), + 73: uint16(22968), + 74: uint16(22970), + 75: uint16(22972), + 76: uint16(22973), + 77: uint16(22975), + 78: uint16(22976), + 79: uint16(22977), + 80: uint16(22978), + 81: uint16(22979), + 82: uint16(22980), + 83: uint16(22981), + 84: uint16(22983), + 85: uint16(22984), + 86: uint16(22985), + 87: uint16(22988), + 88: uint16(22989), + 89: uint16(22990), + 90: uint16(22991), + 91: uint16(22997), + 92: uint16(22998), + 93: uint16(23001), + 94: uint16(23003), + 95: uint16(23006), + 96: uint16(23007), + 97: uint16(23008), + 98: uint16(23009), + 99: uint16(23010), + 100: uint16(23012), + 101: uint16(23014), + 102: uint16(23015), + 103: uint16(23017), + 104: uint16(23018), + 105: uint16(23019), + 106: uint16(23021), + 107: uint16(23022), + 108: uint16(23023), + 109: uint16(23024), + 110: uint16(23025), + 111: uint16(23026), + 112: uint16(23027), + 113: uint16(23028), + 114: uint16(23029), + 115: uint16(23030), + 116: uint16(23031), + 117: uint16(23032), + 118: uint16(23034), + 119: uint16(23036), + 120: uint16(23037), + 121: uint16(23038), + 122: uint16(23040), + 123: uint16(23042), + 124: uint16(23050), + 125: uint16(23051), + 126: uint16(23053), + 127: uint16(23054), + 128: uint16(23055), + 129: uint16(23056), + 130: uint16(23058), + 131: uint16(23060), + 132: uint16(23061), + 133: uint16(23062), + 134: uint16(23063), + 135: uint16(23065), + 136: uint16(23066), + 137: uint16(23067), + 138: uint16(23069), + 139: uint16(23070), + 140: uint16(23073), + 141: uint16(23074), + 142: uint16(23076), + 143: uint16(23078), + 144: uint16(23079), + 145: uint16(23080), + 146: uint16(23082), + 147: uint16(23083), + 148: uint16(23084), + 149: uint16(23085), + 150: uint16(23086), + 151: uint16(23087), + 152: uint16(23088), + 153: uint16(23091), + 154: uint16(23093), + 155: uint16(23095), + 156: uint16(23096), + 157: uint16(23097), + 158: uint16(23098), + 159: uint16(23099), + 160: uint16(23101), + 161: uint16(23102), + 162: uint16(23103), + 163: uint16(23105), + 164: uint16(23106), + 165: uint16(23107), + 166: uint16(23108), + 167: uint16(23109), + 168: uint16(23111), + 169: uint16(23112), + 170: uint16(23115), + 171: uint16(23116), + 172: uint16(23117), + 173: uint16(23118), + 174: uint16(23119), + 175: uint16(23120), + 176: uint16(23121), + 177: uint16(23122), + 178: uint16(23123), + 179: uint16(23124), + 180: uint16(23126), + 181: uint16(23127), + 182: uint16(23128), + 183: uint16(23129), + 184: uint16(23131), + 185: uint16(23132), + 186: uint16(23133), + 187: uint16(23134), + 188: uint16(23135), + 189: uint16(23136), + }, + 10: { + 0: uint16(23137), + 1: uint16(23139), + 2: uint16(23140), + 3: uint16(23141), + 4: uint16(23142), + 5: uint16(23144), + 6: uint16(23145), + 7: uint16(23147), + 8: uint16(23148), + 9: uint16(23149), + 10: uint16(23150), + 11: uint16(23151), + 12: uint16(23152), + 13: uint16(23153), + 14: uint16(23154), + 15: uint16(23155), + 16: uint16(23160), + 17: uint16(23161), + 18: uint16(23163), + 19: uint16(23164), + 20: uint16(23165), + 21: uint16(23166), + 22: uint16(23168), + 23: uint16(23169), + 24: uint16(23170), + 25: uint16(23171), + 26: uint16(23172), + 27: uint16(23173), + 28: uint16(23174), + 29: uint16(23175), + 30: uint16(23176), + 31: uint16(23177), + 32: uint16(23178), + 33: uint16(23179), + 34: uint16(23180), + 35: uint16(23181), + 36: uint16(23182), + 37: uint16(23183), + 38: uint16(23184), + 39: uint16(23185), + 40: uint16(23187), + 41: uint16(23188), + 42: uint16(23189), + 43: uint16(23190), + 44: uint16(23191), + 45: uint16(23192), + 46: uint16(23193), + 47: uint16(23196), + 48: uint16(23197), + 49: uint16(23198), + 50: uint16(23199), + 51: uint16(23200), + 52: uint16(23201), + 53: uint16(23202), + 54: uint16(23203), + 55: uint16(23204), + 56: uint16(23205), + 57: uint16(23206), + 58: uint16(23207), + 59: uint16(23208), + 60: uint16(23209), + 61: uint16(23211), + 62: uint16(23212), + 63: uint16(23213), + 64: uint16(23214), + 65: uint16(23215), + 66: uint16(23216), + 67: uint16(23217), + 68: uint16(23220), + 69: uint16(23222), + 70: uint16(23223), + 71: uint16(23225), + 72: uint16(23226), + 73: uint16(23227), + 74: uint16(23228), + 75: uint16(23229), + 76: uint16(23231), + 77: uint16(23232), + 78: uint16(23235), + 79: uint16(23236), + 80: uint16(23237), + 81: uint16(23238), + 82: uint16(23239), + 83: uint16(23240), + 84: uint16(23242), + 85: uint16(23243), + 86: uint16(23245), + 87: uint16(23246), + 88: uint16(23247), + 89: uint16(23248), + 90: uint16(23249), + 91: uint16(23251), + 92: uint16(23253), + 93: uint16(23255), + 94: uint16(23257), + 95: uint16(23258), + 96: uint16(23259), + 97: uint16(23261), + 98: uint16(23262), + 99: uint16(23263), + 100: uint16(23266), + 101: uint16(23268), + 102: uint16(23269), + 103: uint16(23271), + 104: uint16(23272), + 105: uint16(23274), + 106: uint16(23276), + 107: uint16(23277), + 108: uint16(23278), + 109: uint16(23279), + 110: uint16(23280), + 111: uint16(23282), + 112: uint16(23283), + 113: uint16(23284), + 114: uint16(23285), + 115: uint16(23286), + 116: uint16(23287), + 117: uint16(23288), + 118: uint16(23289), + 119: uint16(23290), + 120: uint16(23291), + 121: uint16(23292), + 122: uint16(23293), + 123: uint16(23294), + 124: uint16(23295), + 125: uint16(23296), + 126: uint16(23297), + 127: uint16(23298), + 128: uint16(23299), + 129: uint16(23300), + 130: uint16(23301), + 131: uint16(23302), + 132: uint16(23303), + 133: uint16(23304), + 134: uint16(23306), + 135: uint16(23307), + 136: uint16(23308), + 137: uint16(23309), + 138: uint16(23310), + 139: uint16(23311), + 140: uint16(23312), + 141: uint16(23313), + 142: uint16(23314), + 143: uint16(23315), + 144: uint16(23316), + 145: uint16(23317), + 146: uint16(23320), + 147: uint16(23321), + 148: uint16(23322), + 149: uint16(23323), + 150: uint16(23324), + 151: uint16(23325), + 152: uint16(23326), + 153: uint16(23327), + 154: uint16(23328), + 155: uint16(23329), + 156: uint16(23330), + 157: uint16(23331), + 158: uint16(23332), + 159: uint16(23333), + 160: uint16(23334), + 161: uint16(23335), + 162: uint16(23336), + 163: uint16(23337), + 164: uint16(23338), + 165: uint16(23339), + 166: uint16(23340), + 167: uint16(23341), + 168: uint16(23342), + 169: uint16(23343), + 170: uint16(23344), + 171: uint16(23345), + 172: uint16(23347), + 173: uint16(23349), + 174: uint16(23350), + 175: uint16(23352), + 176: uint16(23353), + 177: uint16(23354), + 178: uint16(23355), + 179: uint16(23356), + 180: uint16(23357), + 181: uint16(23358), + 182: uint16(23359), + 183: uint16(23361), + 184: uint16(23362), + 185: uint16(23363), + 186: uint16(23364), + 187: uint16(23365), + 188: uint16(23366), + 189: uint16(23367), + }, + 11: { + 0: uint16(23368), + 1: uint16(23369), + 2: uint16(23370), + 3: uint16(23371), + 4: uint16(23372), + 5: uint16(23373), + 6: uint16(23374), + 7: uint16(23375), + 8: uint16(23378), + 9: uint16(23382), + 10: uint16(23390), + 11: uint16(23392), + 12: uint16(23393), + 13: uint16(23399), + 14: uint16(23400), + 15: uint16(23403), + 16: uint16(23405), + 17: uint16(23406), + 18: uint16(23407), + 19: uint16(23410), + 20: uint16(23412), + 21: uint16(23414), + 22: uint16(23415), + 23: uint16(23416), + 24: uint16(23417), + 25: uint16(23419), + 26: uint16(23420), + 27: uint16(23422), + 28: uint16(23423), + 29: uint16(23426), + 30: uint16(23430), + 31: uint16(23434), + 32: uint16(23437), + 33: uint16(23438), + 34: uint16(23440), + 35: uint16(23441), + 36: uint16(23442), + 37: uint16(23444), + 38: uint16(23446), + 39: uint16(23455), + 40: uint16(23463), + 41: uint16(23464), + 42: uint16(23465), + 43: uint16(23468), + 44: uint16(23469), + 45: uint16(23470), + 46: uint16(23471), + 47: uint16(23473), + 48: uint16(23474), + 49: uint16(23479), + 50: uint16(23482), + 51: uint16(23483), + 52: uint16(23484), + 53: uint16(23488), + 54: uint16(23489), + 55: uint16(23491), + 56: uint16(23496), + 57: uint16(23497), + 58: uint16(23498), + 59: uint16(23499), + 60: uint16(23501), + 61: uint16(23502), + 62: uint16(23503), + 63: uint16(23505), + 64: uint16(23508), + 65: uint16(23509), + 66: uint16(23510), + 67: uint16(23511), + 68: uint16(23512), + 69: uint16(23513), + 70: uint16(23514), + 71: uint16(23515), + 72: uint16(23516), + 73: uint16(23520), + 74: uint16(23522), + 75: uint16(23523), + 76: uint16(23526), + 77: uint16(23527), + 78: uint16(23529), + 79: uint16(23530), + 80: uint16(23531), + 81: uint16(23532), + 82: uint16(23533), + 83: uint16(23535), + 84: uint16(23537), + 85: uint16(23538), + 86: uint16(23539), + 87: uint16(23540), + 88: uint16(23541), + 89: uint16(23542), + 90: uint16(23543), + 91: uint16(23549), + 92: uint16(23550), + 93: uint16(23552), + 94: uint16(23554), + 95: uint16(23555), + 96: uint16(23557), + 97: uint16(23559), + 98: uint16(23560), + 99: uint16(23563), + 100: uint16(23564), + 101: uint16(23565), + 102: uint16(23566), + 103: uint16(23568), + 104: uint16(23570), + 105: uint16(23571), + 106: uint16(23575), + 107: uint16(23577), + 108: uint16(23579), + 109: uint16(23582), + 110: uint16(23583), + 111: uint16(23584), + 112: uint16(23585), + 113: uint16(23587), + 114: uint16(23590), + 115: uint16(23592), + 116: uint16(23593), + 117: uint16(23594), + 118: uint16(23595), + 119: uint16(23597), + 120: uint16(23598), + 121: uint16(23599), + 122: uint16(23600), + 123: uint16(23602), + 124: uint16(23603), + 125: uint16(23605), + 126: uint16(23606), + 127: uint16(23607), + 128: uint16(23619), + 129: uint16(23620), + 130: uint16(23622), + 131: uint16(23623), + 132: uint16(23628), + 133: uint16(23629), + 134: uint16(23634), + 135: uint16(23635), + 136: uint16(23636), + 137: uint16(23638), + 138: uint16(23639), + 139: uint16(23640), + 140: uint16(23642), + 141: uint16(23643), + 142: uint16(23644), + 143: uint16(23645), + 144: uint16(23647), + 145: uint16(23650), + 146: uint16(23652), + 147: uint16(23655), + 148: uint16(23656), + 149: uint16(23657), + 150: uint16(23658), + 151: uint16(23659), + 152: uint16(23660), + 153: uint16(23661), + 154: uint16(23664), + 155: uint16(23666), + 156: uint16(23667), + 157: uint16(23668), + 158: uint16(23669), + 159: uint16(23670), + 160: uint16(23671), + 161: uint16(23672), + 162: uint16(23675), + 163: uint16(23676), + 164: uint16(23677), + 165: uint16(23678), + 166: uint16(23680), + 167: uint16(23683), + 168: uint16(23684), + 169: uint16(23685), + 170: uint16(23686), + 171: uint16(23687), + 172: uint16(23689), + 173: uint16(23690), + 174: uint16(23691), + 175: uint16(23694), + 176: uint16(23695), + 177: uint16(23698), + 178: uint16(23699), + 179: uint16(23701), + 180: uint16(23709), + 181: uint16(23710), + 182: uint16(23711), + 183: uint16(23712), + 184: uint16(23713), + 185: uint16(23716), + 186: uint16(23717), + 187: uint16(23718), + 188: uint16(23719), + 189: uint16(23720), + }, + 12: { + 0: uint16(23722), + 1: uint16(23726), + 2: uint16(23727), + 3: uint16(23728), + 4: uint16(23730), + 5: uint16(23732), + 6: uint16(23734), + 7: uint16(23737), + 8: uint16(23738), + 9: uint16(23739), + 10: uint16(23740), + 11: uint16(23742), + 12: uint16(23744), + 13: uint16(23746), + 14: uint16(23747), + 15: uint16(23749), + 16: uint16(23750), + 17: uint16(23751), + 18: uint16(23752), + 19: uint16(23753), + 20: uint16(23754), + 21: uint16(23756), + 22: uint16(23757), + 23: uint16(23758), + 24: uint16(23759), + 25: uint16(23760), + 26: uint16(23761), + 27: uint16(23763), + 28: uint16(23764), + 29: uint16(23765), + 30: uint16(23766), + 31: uint16(23767), + 32: uint16(23768), + 33: uint16(23770), + 34: uint16(23771), + 35: uint16(23772), + 36: uint16(23773), + 37: uint16(23774), + 38: uint16(23775), + 39: uint16(23776), + 40: uint16(23778), + 41: uint16(23779), + 42: uint16(23783), + 43: uint16(23785), + 44: uint16(23787), + 45: uint16(23788), + 46: uint16(23790), + 47: uint16(23791), + 48: uint16(23793), + 49: uint16(23794), + 50: uint16(23795), + 51: uint16(23796), + 52: uint16(23797), + 53: uint16(23798), + 54: uint16(23799), + 55: uint16(23800), + 56: uint16(23801), + 57: uint16(23802), + 58: uint16(23804), + 59: uint16(23805), + 60: uint16(23806), + 61: uint16(23807), + 62: uint16(23808), + 63: uint16(23809), + 64: uint16(23812), + 65: uint16(23813), + 66: uint16(23816), + 67: uint16(23817), + 68: uint16(23818), + 69: uint16(23819), + 70: uint16(23820), + 71: uint16(23821), + 72: uint16(23823), + 73: uint16(23824), + 74: uint16(23825), + 75: uint16(23826), + 76: uint16(23827), + 77: uint16(23829), + 78: uint16(23831), + 79: uint16(23832), + 80: uint16(23833), + 81: uint16(23834), + 82: uint16(23836), + 83: uint16(23837), + 84: uint16(23839), + 85: uint16(23840), + 86: uint16(23841), + 87: uint16(23842), + 88: uint16(23843), + 89: uint16(23845), + 90: uint16(23848), + 91: uint16(23850), + 92: uint16(23851), + 93: uint16(23852), + 94: uint16(23855), + 95: uint16(23856), + 96: uint16(23857), + 97: uint16(23858), + 98: uint16(23859), + 99: uint16(23861), + 100: uint16(23862), + 101: uint16(23863), + 102: uint16(23864), + 103: uint16(23865), + 104: uint16(23866), + 105: uint16(23867), + 106: uint16(23868), + 107: uint16(23871), + 108: uint16(23872), + 109: uint16(23873), + 110: uint16(23874), + 111: uint16(23875), + 112: uint16(23876), + 113: uint16(23877), + 114: uint16(23878), + 115: uint16(23880), + 116: uint16(23881), + 117: uint16(23885), + 118: uint16(23886), + 119: uint16(23887), + 120: uint16(23888), + 121: uint16(23889), + 122: uint16(23890), + 123: uint16(23891), + 124: uint16(23892), + 125: uint16(23893), + 126: uint16(23894), + 127: uint16(23895), + 128: uint16(23897), + 129: uint16(23898), + 130: uint16(23900), + 131: uint16(23902), + 132: uint16(23903), + 133: uint16(23904), + 134: uint16(23905), + 135: uint16(23906), + 136: uint16(23907), + 137: uint16(23908), + 138: uint16(23909), + 139: uint16(23910), + 140: uint16(23911), + 141: uint16(23912), + 142: uint16(23914), + 143: uint16(23917), + 144: uint16(23918), + 145: uint16(23920), + 146: uint16(23921), + 147: uint16(23922), + 148: uint16(23923), + 149: uint16(23925), + 150: uint16(23926), + 151: uint16(23927), + 152: uint16(23928), + 153: uint16(23929), + 154: uint16(23930), + 155: uint16(23931), + 156: uint16(23932), + 157: uint16(23933), + 158: uint16(23934), + 159: uint16(23935), + 160: uint16(23936), + 161: uint16(23937), + 162: uint16(23939), + 163: uint16(23940), + 164: uint16(23941), + 165: uint16(23942), + 166: uint16(23943), + 167: uint16(23944), + 168: uint16(23945), + 169: uint16(23946), + 170: uint16(23947), + 171: uint16(23948), + 172: uint16(23949), + 173: uint16(23950), + 174: uint16(23951), + 175: uint16(23952), + 176: uint16(23953), + 177: uint16(23954), + 178: uint16(23955), + 179: uint16(23956), + 180: uint16(23957), + 181: uint16(23958), + 182: uint16(23959), + 183: uint16(23960), + 184: uint16(23962), + 185: uint16(23963), + 186: uint16(23964), + 187: uint16(23966), + 188: uint16(23967), + 189: uint16(23968), + }, + 13: { + 0: uint16(23969), + 1: uint16(23970), + 2: uint16(23971), + 3: uint16(23972), + 4: uint16(23973), + 5: uint16(23974), + 6: uint16(23975), + 7: uint16(23976), + 8: uint16(23977), + 9: uint16(23978), + 10: uint16(23979), + 11: uint16(23980), + 12: uint16(23981), + 13: uint16(23982), + 14: uint16(23983), + 15: uint16(23984), + 16: uint16(23985), + 17: uint16(23986), + 18: uint16(23987), + 19: uint16(23988), + 20: uint16(23989), + 21: uint16(23990), + 22: uint16(23992), + 23: uint16(23993), + 24: uint16(23994), + 25: uint16(23995), + 26: uint16(23996), + 27: uint16(23997), + 28: uint16(23998), + 29: uint16(23999), + 30: uint16(24000), + 31: uint16(24001), + 32: uint16(24002), + 33: uint16(24003), + 34: uint16(24004), + 35: uint16(24006), + 36: uint16(24007), + 37: uint16(24008), + 38: uint16(24009), + 39: uint16(24010), + 40: uint16(24011), + 41: uint16(24012), + 42: uint16(24014), + 43: uint16(24015), + 44: uint16(24016), + 45: uint16(24017), + 46: uint16(24018), + 47: uint16(24019), + 48: uint16(24020), + 49: uint16(24021), + 50: uint16(24022), + 51: uint16(24023), + 52: uint16(24024), + 53: uint16(24025), + 54: uint16(24026), + 55: uint16(24028), + 56: uint16(24031), + 57: uint16(24032), + 58: uint16(24035), + 59: uint16(24036), + 60: uint16(24042), + 61: uint16(24044), + 62: uint16(24045), + 63: uint16(24048), + 64: uint16(24053), + 65: uint16(24054), + 66: uint16(24056), + 67: uint16(24057), + 68: uint16(24058), + 69: uint16(24059), + 70: uint16(24060), + 71: uint16(24063), + 72: uint16(24064), + 73: uint16(24068), + 74: uint16(24071), + 75: uint16(24073), + 76: uint16(24074), + 77: uint16(24075), + 78: uint16(24077), + 79: uint16(24078), + 80: uint16(24082), + 81: uint16(24083), + 82: uint16(24087), + 83: uint16(24094), + 84: uint16(24095), + 85: uint16(24096), + 86: uint16(24097), + 87: uint16(24098), + 88: uint16(24099), + 89: uint16(24100), + 90: uint16(24101), + 91: uint16(24104), + 92: uint16(24105), + 93: uint16(24106), + 94: uint16(24107), + 95: uint16(24108), + 96: uint16(24111), + 97: uint16(24112), + 98: uint16(24114), + 99: uint16(24115), + 100: uint16(24116), + 101: uint16(24117), + 102: uint16(24118), + 103: uint16(24121), + 104: uint16(24122), + 105: uint16(24126), + 106: uint16(24127), + 107: uint16(24128), + 108: uint16(24129), + 109: uint16(24131), + 110: uint16(24134), + 111: uint16(24135), + 112: uint16(24136), + 113: uint16(24137), + 114: uint16(24138), + 115: uint16(24139), + 116: uint16(24141), + 117: uint16(24142), + 118: uint16(24143), + 119: uint16(24144), + 120: uint16(24145), + 121: uint16(24146), + 122: uint16(24147), + 123: uint16(24150), + 124: uint16(24151), + 125: uint16(24152), + 126: uint16(24153), + 127: uint16(24154), + 128: uint16(24156), + 129: uint16(24157), + 130: uint16(24159), + 131: uint16(24160), + 132: uint16(24163), + 133: uint16(24164), + 134: uint16(24165), + 135: uint16(24166), + 136: uint16(24167), + 137: uint16(24168), + 138: uint16(24169), + 139: uint16(24170), + 140: uint16(24171), + 141: uint16(24172), + 142: uint16(24173), + 143: uint16(24174), + 144: uint16(24175), + 145: uint16(24176), + 146: uint16(24177), + 147: uint16(24181), + 148: uint16(24183), + 149: uint16(24185), + 150: uint16(24190), + 151: uint16(24193), + 152: uint16(24194), + 153: uint16(24195), + 154: uint16(24197), + 155: uint16(24200), + 156: uint16(24201), + 157: uint16(24204), + 158: uint16(24205), + 159: uint16(24206), + 160: uint16(24210), + 161: uint16(24216), + 162: uint16(24219), + 163: uint16(24221), + 164: uint16(24225), + 165: uint16(24226), + 166: uint16(24227), + 167: uint16(24228), + 168: uint16(24232), + 169: uint16(24233), + 170: uint16(24234), + 171: uint16(24235), + 172: uint16(24236), + 173: uint16(24238), + 174: uint16(24239), + 175: uint16(24240), + 176: uint16(24241), + 177: uint16(24242), + 178: uint16(24244), + 179: uint16(24250), + 180: uint16(24251), + 181: uint16(24252), + 182: uint16(24253), + 183: uint16(24255), + 184: uint16(24256), + 185: uint16(24257), + 186: uint16(24258), + 187: uint16(24259), + 188: uint16(24260), + 189: uint16(24261), + }, + 14: { + 0: uint16(24262), + 1: uint16(24263), + 2: uint16(24264), + 3: uint16(24267), + 4: uint16(24268), + 5: uint16(24269), + 6: uint16(24270), + 7: uint16(24271), + 8: uint16(24272), + 9: uint16(24276), + 10: uint16(24277), + 11: uint16(24279), + 12: uint16(24280), + 13: uint16(24281), + 14: uint16(24282), + 15: uint16(24284), + 16: uint16(24285), + 17: uint16(24286), + 18: uint16(24287), + 19: uint16(24288), + 20: uint16(24289), + 21: uint16(24290), + 22: uint16(24291), + 23: uint16(24292), + 24: uint16(24293), + 25: uint16(24294), + 26: uint16(24295), + 27: uint16(24297), + 28: uint16(24299), + 29: uint16(24300), + 30: uint16(24301), + 31: uint16(24302), + 32: uint16(24303), + 33: uint16(24304), + 34: uint16(24305), + 35: uint16(24306), + 36: uint16(24307), + 37: uint16(24309), + 38: uint16(24312), + 39: uint16(24313), + 40: uint16(24315), + 41: uint16(24316), + 42: uint16(24317), + 43: uint16(24325), + 44: uint16(24326), + 45: uint16(24327), + 46: uint16(24329), + 47: uint16(24332), + 48: uint16(24333), + 49: uint16(24334), + 50: uint16(24336), + 51: uint16(24338), + 52: uint16(24340), + 53: uint16(24342), + 54: uint16(24345), + 55: uint16(24346), + 56: uint16(24348), + 57: uint16(24349), + 58: uint16(24350), + 59: uint16(24353), + 60: uint16(24354), + 61: uint16(24355), + 62: uint16(24356), + 63: uint16(24360), + 64: uint16(24363), + 65: uint16(24364), + 66: uint16(24366), + 67: uint16(24368), + 68: uint16(24370), + 69: uint16(24371), + 70: uint16(24372), + 71: uint16(24373), + 72: uint16(24374), + 73: uint16(24375), + 74: uint16(24376), + 75: uint16(24379), + 76: uint16(24381), + 77: uint16(24382), + 78: uint16(24383), + 79: uint16(24385), + 80: uint16(24386), + 81: uint16(24387), + 82: uint16(24388), + 83: uint16(24389), + 84: uint16(24390), + 85: uint16(24391), + 86: uint16(24392), + 87: uint16(24393), + 88: uint16(24394), + 89: uint16(24395), + 90: uint16(24396), + 91: uint16(24397), + 92: uint16(24398), + 93: uint16(24399), + 94: uint16(24401), + 95: uint16(24404), + 96: uint16(24409), + 97: uint16(24410), + 98: uint16(24411), + 99: uint16(24412), + 100: uint16(24414), + 101: uint16(24415), + 102: uint16(24416), + 103: uint16(24419), + 104: uint16(24421), + 105: uint16(24423), + 106: uint16(24424), + 107: uint16(24427), + 108: uint16(24430), + 109: uint16(24431), + 110: uint16(24434), + 111: uint16(24436), + 112: uint16(24437), + 113: uint16(24438), + 114: uint16(24440), + 115: uint16(24442), + 116: uint16(24445), + 117: uint16(24446), + 118: uint16(24447), + 119: uint16(24451), + 120: uint16(24454), + 121: uint16(24461), + 122: uint16(24462), + 123: uint16(24463), + 124: uint16(24465), + 125: uint16(24467), + 126: uint16(24468), + 127: uint16(24470), + 128: uint16(24474), + 129: uint16(24475), + 130: uint16(24477), + 131: uint16(24478), + 132: uint16(24479), + 133: uint16(24480), + 134: uint16(24482), + 135: uint16(24483), + 136: uint16(24484), + 137: uint16(24485), + 138: uint16(24486), + 139: uint16(24487), + 140: uint16(24489), + 141: uint16(24491), + 142: uint16(24492), + 143: uint16(24495), + 144: uint16(24496), + 145: uint16(24497), + 146: uint16(24498), + 147: uint16(24499), + 148: uint16(24500), + 149: uint16(24502), + 150: uint16(24504), + 151: uint16(24505), + 152: uint16(24506), + 153: uint16(24507), + 154: uint16(24510), + 155: uint16(24511), + 156: uint16(24512), + 157: uint16(24513), + 158: uint16(24514), + 159: uint16(24519), + 160: uint16(24520), + 161: uint16(24522), + 162: uint16(24523), + 163: uint16(24526), + 164: uint16(24531), + 165: uint16(24532), + 166: uint16(24533), + 167: uint16(24538), + 168: uint16(24539), + 169: uint16(24540), + 170: uint16(24542), + 171: uint16(24543), + 172: uint16(24546), + 173: uint16(24547), + 174: uint16(24549), + 175: uint16(24550), + 176: uint16(24552), + 177: uint16(24553), + 178: uint16(24556), + 179: uint16(24559), + 180: uint16(24560), + 181: uint16(24562), + 182: uint16(24563), + 183: uint16(24564), + 184: uint16(24566), + 185: uint16(24567), + 186: uint16(24569), + 187: uint16(24570), + 188: uint16(24572), + 189: uint16(24583), + }, + 15: { + 0: uint16(24584), + 1: uint16(24585), + 2: uint16(24587), + 3: uint16(24588), + 4: uint16(24592), + 5: uint16(24593), + 6: uint16(24595), + 7: uint16(24599), + 8: uint16(24600), + 9: uint16(24602), + 10: uint16(24606), + 11: uint16(24607), + 12: uint16(24610), + 13: uint16(24611), + 14: uint16(24612), + 15: uint16(24620), + 16: uint16(24621), + 17: uint16(24622), + 18: uint16(24624), + 19: uint16(24625), + 20: uint16(24626), + 21: uint16(24627), + 22: uint16(24628), + 23: uint16(24630), + 24: uint16(24631), + 25: uint16(24632), + 26: uint16(24633), + 27: uint16(24634), + 28: uint16(24637), + 29: uint16(24638), + 30: uint16(24640), + 31: uint16(24644), + 32: uint16(24645), + 33: uint16(24646), + 34: uint16(24647), + 35: uint16(24648), + 36: uint16(24649), + 37: uint16(24650), + 38: uint16(24652), + 39: uint16(24654), + 40: uint16(24655), + 41: uint16(24657), + 42: uint16(24659), + 43: uint16(24660), + 44: uint16(24662), + 45: uint16(24663), + 46: uint16(24664), + 47: uint16(24667), + 48: uint16(24668), + 49: uint16(24670), + 50: uint16(24671), + 51: uint16(24672), + 52: uint16(24673), + 53: uint16(24677), + 54: uint16(24678), + 55: uint16(24686), + 56: uint16(24689), + 57: uint16(24690), + 58: uint16(24692), + 59: uint16(24693), + 60: uint16(24695), + 61: uint16(24702), + 62: uint16(24704), + 63: uint16(24705), + 64: uint16(24706), + 65: uint16(24709), + 66: uint16(24710), + 67: uint16(24711), + 68: uint16(24712), + 69: uint16(24714), + 70: uint16(24715), + 71: uint16(24718), + 72: uint16(24719), + 73: uint16(24720), + 74: uint16(24721), + 75: uint16(24723), + 76: uint16(24725), + 77: uint16(24727), + 78: uint16(24728), + 79: uint16(24729), + 80: uint16(24732), + 81: uint16(24734), + 82: uint16(24737), + 83: uint16(24738), + 84: uint16(24740), + 85: uint16(24741), + 86: uint16(24743), + 87: uint16(24745), + 88: uint16(24746), + 89: uint16(24750), + 90: uint16(24752), + 91: uint16(24755), + 92: uint16(24757), + 93: uint16(24758), + 94: uint16(24759), + 95: uint16(24761), + 96: uint16(24762), + 97: uint16(24765), + 98: uint16(24766), + 99: uint16(24767), + 100: uint16(24768), + 101: uint16(24769), + 102: uint16(24770), + 103: uint16(24771), + 104: uint16(24772), + 105: uint16(24775), + 106: uint16(24776), + 107: uint16(24777), + 108: uint16(24780), + 109: uint16(24781), + 110: uint16(24782), + 111: uint16(24783), + 112: uint16(24784), + 113: uint16(24786), + 114: uint16(24787), + 115: uint16(24788), + 116: uint16(24790), + 117: uint16(24791), + 118: uint16(24793), + 119: uint16(24795), + 120: uint16(24798), + 121: uint16(24801), + 122: uint16(24802), + 123: uint16(24803), + 124: uint16(24804), + 125: uint16(24805), + 126: uint16(24810), + 127: uint16(24817), + 128: uint16(24818), + 129: uint16(24821), + 130: uint16(24823), + 131: uint16(24824), + 132: uint16(24827), + 133: uint16(24828), + 134: uint16(24829), + 135: uint16(24830), + 136: uint16(24831), + 137: uint16(24834), + 138: uint16(24835), + 139: uint16(24836), + 140: uint16(24837), + 141: uint16(24839), + 142: uint16(24842), + 143: uint16(24843), + 144: uint16(24844), + 145: uint16(24848), + 146: uint16(24849), + 147: uint16(24850), + 148: uint16(24851), + 149: uint16(24852), + 150: uint16(24854), + 151: uint16(24855), + 152: uint16(24856), + 153: uint16(24857), + 154: uint16(24859), + 155: uint16(24860), + 156: uint16(24861), + 157: uint16(24862), + 158: uint16(24865), + 159: uint16(24866), + 160: uint16(24869), + 161: uint16(24872), + 162: uint16(24873), + 163: uint16(24874), + 164: uint16(24876), + 165: uint16(24877), + 166: uint16(24878), + 167: uint16(24879), + 168: uint16(24880), + 169: uint16(24881), + 170: uint16(24882), + 171: uint16(24883), + 172: uint16(24884), + 173: uint16(24885), + 174: uint16(24886), + 175: uint16(24887), + 176: uint16(24888), + 177: uint16(24889), + 178: uint16(24890), + 179: uint16(24891), + 180: uint16(24892), + 181: uint16(24893), + 182: uint16(24894), + 183: uint16(24896), + 184: uint16(24897), + 185: uint16(24898), + 186: uint16(24899), + 187: uint16(24900), + 188: uint16(24901), + 189: uint16(24902), + }, + 16: { + 0: uint16(24903), + 1: uint16(24905), + 2: uint16(24907), + 3: uint16(24909), + 4: uint16(24911), + 5: uint16(24912), + 6: uint16(24914), + 7: uint16(24915), + 8: uint16(24916), + 9: uint16(24918), + 10: uint16(24919), + 11: uint16(24920), + 12: uint16(24921), + 13: uint16(24922), + 14: uint16(24923), + 15: uint16(24924), + 16: uint16(24926), + 17: uint16(24927), + 18: uint16(24928), + 19: uint16(24929), + 20: uint16(24931), + 21: uint16(24932), + 22: uint16(24933), + 23: uint16(24934), + 24: uint16(24937), + 25: uint16(24938), + 26: uint16(24939), + 27: uint16(24940), + 28: uint16(24941), + 29: uint16(24942), + 30: uint16(24943), + 31: uint16(24945), + 32: uint16(24946), + 33: uint16(24947), + 34: uint16(24948), + 35: uint16(24950), + 36: uint16(24952), + 37: uint16(24953), + 38: uint16(24954), + 39: uint16(24955), + 40: uint16(24956), + 41: uint16(24957), + 42: uint16(24958), + 43: uint16(24959), + 44: uint16(24960), + 45: uint16(24961), + 46: uint16(24962), + 47: uint16(24963), + 48: uint16(24964), + 49: uint16(24965), + 50: uint16(24966), + 51: uint16(24967), + 52: uint16(24968), + 53: uint16(24969), + 54: uint16(24970), + 55: uint16(24972), + 56: uint16(24973), + 57: uint16(24975), + 58: uint16(24976), + 59: uint16(24977), + 60: uint16(24978), + 61: uint16(24979), + 62: uint16(24981), + 63: uint16(24982), + 64: uint16(24983), + 65: uint16(24984), + 66: uint16(24985), + 67: uint16(24986), + 68: uint16(24987), + 69: uint16(24988), + 70: uint16(24990), + 71: uint16(24991), + 72: uint16(24992), + 73: uint16(24993), + 74: uint16(24994), + 75: uint16(24995), + 76: uint16(24996), + 77: uint16(24997), + 78: uint16(24998), + 79: uint16(25002), + 80: uint16(25003), + 81: uint16(25005), + 82: uint16(25006), + 83: uint16(25007), + 84: uint16(25008), + 85: uint16(25009), + 86: uint16(25010), + 87: uint16(25011), + 88: uint16(25012), + 89: uint16(25013), + 90: uint16(25014), + 91: uint16(25016), + 92: uint16(25017), + 93: uint16(25018), + 94: uint16(25019), + 95: uint16(25020), + 96: uint16(25021), + 97: uint16(25023), + 98: uint16(25024), + 99: uint16(25025), + 100: uint16(25027), + 101: uint16(25028), + 102: uint16(25029), + 103: uint16(25030), + 104: uint16(25031), + 105: uint16(25033), + 106: uint16(25036), + 107: uint16(25037), + 108: uint16(25038), + 109: uint16(25039), + 110: uint16(25040), + 111: uint16(25043), + 112: uint16(25045), + 113: uint16(25046), + 114: uint16(25047), + 115: uint16(25048), + 116: uint16(25049), + 117: uint16(25050), + 118: uint16(25051), + 119: uint16(25052), + 120: uint16(25053), + 121: uint16(25054), + 122: uint16(25055), + 123: uint16(25056), + 124: uint16(25057), + 125: uint16(25058), + 126: uint16(25059), + 127: uint16(25060), + 128: uint16(25061), + 129: uint16(25063), + 130: uint16(25064), + 131: uint16(25065), + 132: uint16(25066), + 133: uint16(25067), + 134: uint16(25068), + 135: uint16(25069), + 136: uint16(25070), + 137: uint16(25071), + 138: uint16(25072), + 139: uint16(25073), + 140: uint16(25074), + 141: uint16(25075), + 142: uint16(25076), + 143: uint16(25078), + 144: uint16(25079), + 145: uint16(25080), + 146: uint16(25081), + 147: uint16(25082), + 148: uint16(25083), + 149: uint16(25084), + 150: uint16(25085), + 151: uint16(25086), + 152: uint16(25088), + 153: uint16(25089), + 154: uint16(25090), + 155: uint16(25091), + 156: uint16(25092), + 157: uint16(25093), + 158: uint16(25095), + 159: uint16(25097), + 160: uint16(25107), + 161: uint16(25108), + 162: uint16(25113), + 163: uint16(25116), + 164: uint16(25117), + 165: uint16(25118), + 166: uint16(25120), + 167: uint16(25123), + 168: uint16(25126), + 169: uint16(25127), + 170: uint16(25128), + 171: uint16(25129), + 172: uint16(25131), + 173: uint16(25133), + 174: uint16(25135), + 175: uint16(25136), + 176: uint16(25137), + 177: uint16(25138), + 178: uint16(25141), + 179: uint16(25142), + 180: uint16(25144), + 181: uint16(25145), + 182: uint16(25146), + 183: uint16(25147), + 184: uint16(25148), + 185: uint16(25154), + 186: uint16(25156), + 187: uint16(25157), + 188: uint16(25158), + 189: uint16(25162), + }, + 17: { + 0: uint16(25167), + 1: uint16(25168), + 2: uint16(25173), + 3: uint16(25174), + 4: uint16(25175), + 5: uint16(25177), + 6: uint16(25178), + 7: uint16(25180), + 8: uint16(25181), + 9: uint16(25182), + 10: uint16(25183), + 11: uint16(25184), + 12: uint16(25185), + 13: uint16(25186), + 14: uint16(25188), + 15: uint16(25189), + 16: uint16(25192), + 17: uint16(25201), + 18: uint16(25202), + 19: uint16(25204), + 20: uint16(25205), + 21: uint16(25207), + 22: uint16(25208), + 23: uint16(25210), + 24: uint16(25211), + 25: uint16(25213), + 26: uint16(25217), + 27: uint16(25218), + 28: uint16(25219), + 29: uint16(25221), + 30: uint16(25222), + 31: uint16(25223), + 32: uint16(25224), + 33: uint16(25227), + 34: uint16(25228), + 35: uint16(25229), + 36: uint16(25230), + 37: uint16(25231), + 38: uint16(25232), + 39: uint16(25236), + 40: uint16(25241), + 41: uint16(25244), + 42: uint16(25245), + 43: uint16(25246), + 44: uint16(25251), + 45: uint16(25254), + 46: uint16(25255), + 47: uint16(25257), + 48: uint16(25258), + 49: uint16(25261), + 50: uint16(25262), + 51: uint16(25263), + 52: uint16(25264), + 53: uint16(25266), + 54: uint16(25267), + 55: uint16(25268), + 56: uint16(25270), + 57: uint16(25271), + 58: uint16(25272), + 59: uint16(25274), + 60: uint16(25278), + 61: uint16(25280), + 62: uint16(25281), + 63: uint16(25283), + 64: uint16(25291), + 65: uint16(25295), + 66: uint16(25297), + 67: uint16(25301), + 68: uint16(25309), + 69: uint16(25310), + 70: uint16(25312), + 71: uint16(25313), + 72: uint16(25316), + 73: uint16(25322), + 74: uint16(25323), + 75: uint16(25328), + 76: uint16(25330), + 77: uint16(25333), + 78: uint16(25336), + 79: uint16(25337), + 80: uint16(25338), + 81: uint16(25339), + 82: uint16(25344), + 83: uint16(25347), + 84: uint16(25348), + 85: uint16(25349), + 86: uint16(25350), + 87: uint16(25354), + 88: uint16(25355), + 89: uint16(25356), + 90: uint16(25357), + 91: uint16(25359), + 92: uint16(25360), + 93: uint16(25362), + 94: uint16(25363), + 95: uint16(25364), + 96: uint16(25365), + 97: uint16(25367), + 98: uint16(25368), + 99: uint16(25369), + 100: uint16(25372), + 101: uint16(25382), + 102: uint16(25383), + 103: uint16(25385), + 104: uint16(25388), + 105: uint16(25389), + 106: uint16(25390), + 107: uint16(25392), + 108: uint16(25393), + 109: uint16(25395), + 110: uint16(25396), + 111: uint16(25397), + 112: uint16(25398), + 113: uint16(25399), + 114: uint16(25400), + 115: uint16(25403), + 116: uint16(25404), + 117: uint16(25406), + 118: uint16(25407), + 119: uint16(25408), + 120: uint16(25409), + 121: uint16(25412), + 122: uint16(25415), + 123: uint16(25416), + 124: uint16(25418), + 125: uint16(25425), + 126: uint16(25426), + 127: uint16(25427), + 128: uint16(25428), + 129: uint16(25430), + 130: uint16(25431), + 131: uint16(25432), + 132: uint16(25433), + 133: uint16(25434), + 134: uint16(25435), + 135: uint16(25436), + 136: uint16(25437), + 137: uint16(25440), + 138: uint16(25444), + 139: uint16(25445), + 140: uint16(25446), + 141: uint16(25448), + 142: uint16(25450), + 143: uint16(25451), + 144: uint16(25452), + 145: uint16(25455), + 146: uint16(25456), + 147: uint16(25458), + 148: uint16(25459), + 149: uint16(25460), + 150: uint16(25461), + 151: uint16(25464), + 152: uint16(25465), + 153: uint16(25468), + 154: uint16(25469), + 155: uint16(25470), + 156: uint16(25471), + 157: uint16(25473), + 158: uint16(25475), + 159: uint16(25476), + 160: uint16(25477), + 161: uint16(25478), + 162: uint16(25483), + 163: uint16(25485), + 164: uint16(25489), + 165: uint16(25491), + 166: uint16(25492), + 167: uint16(25493), + 168: uint16(25495), + 169: uint16(25497), + 170: uint16(25498), + 171: uint16(25499), + 172: uint16(25500), + 173: uint16(25501), + 174: uint16(25502), + 175: uint16(25503), + 176: uint16(25505), + 177: uint16(25508), + 178: uint16(25510), + 179: uint16(25515), + 180: uint16(25519), + 181: uint16(25521), + 182: uint16(25522), + 183: uint16(25525), + 184: uint16(25526), + 185: uint16(25529), + 186: uint16(25531), + 187: uint16(25533), + 188: uint16(25535), + 189: uint16(25536), + }, + 18: { + 0: uint16(25537), + 1: uint16(25538), + 2: uint16(25539), + 3: uint16(25541), + 4: uint16(25543), + 5: uint16(25544), + 6: uint16(25546), + 7: uint16(25547), + 8: uint16(25548), + 9: uint16(25553), + 10: uint16(25555), + 11: uint16(25556), + 12: uint16(25557), + 13: uint16(25559), + 14: uint16(25560), + 15: uint16(25561), + 16: uint16(25562), + 17: uint16(25563), + 18: uint16(25564), + 19: uint16(25565), + 20: uint16(25567), + 21: uint16(25570), + 22: uint16(25572), + 23: uint16(25573), + 24: uint16(25574), + 25: uint16(25575), + 26: uint16(25576), + 27: uint16(25579), + 28: uint16(25580), + 29: uint16(25582), + 30: uint16(25583), + 31: uint16(25584), + 32: uint16(25585), + 33: uint16(25587), + 34: uint16(25589), + 35: uint16(25591), + 36: uint16(25593), + 37: uint16(25594), + 38: uint16(25595), + 39: uint16(25596), + 40: uint16(25598), + 41: uint16(25603), + 42: uint16(25604), + 43: uint16(25606), + 44: uint16(25607), + 45: uint16(25608), + 46: uint16(25609), + 47: uint16(25610), + 48: uint16(25613), + 49: uint16(25614), + 50: uint16(25617), + 51: uint16(25618), + 52: uint16(25621), + 53: uint16(25622), + 54: uint16(25623), + 55: uint16(25624), + 56: uint16(25625), + 57: uint16(25626), + 58: uint16(25629), + 59: uint16(25631), + 60: uint16(25634), + 61: uint16(25635), + 62: uint16(25636), + 63: uint16(25637), + 64: uint16(25639), + 65: uint16(25640), + 66: uint16(25641), + 67: uint16(25643), + 68: uint16(25646), + 69: uint16(25647), + 70: uint16(25648), + 71: uint16(25649), + 72: uint16(25650), + 73: uint16(25651), + 74: uint16(25653), + 75: uint16(25654), + 76: uint16(25655), + 77: uint16(25656), + 78: uint16(25657), + 79: uint16(25659), + 80: uint16(25660), + 81: uint16(25662), + 82: uint16(25664), + 83: uint16(25666), + 84: uint16(25667), + 85: uint16(25673), + 86: uint16(25675), + 87: uint16(25676), + 88: uint16(25677), + 89: uint16(25678), + 90: uint16(25679), + 91: uint16(25680), + 92: uint16(25681), + 93: uint16(25683), + 94: uint16(25685), + 95: uint16(25686), + 96: uint16(25687), + 97: uint16(25689), + 98: uint16(25690), + 99: uint16(25691), + 100: uint16(25692), + 101: uint16(25693), + 102: uint16(25695), + 103: uint16(25696), + 104: uint16(25697), + 105: uint16(25698), + 106: uint16(25699), + 107: uint16(25700), + 108: uint16(25701), + 109: uint16(25702), + 110: uint16(25704), + 111: uint16(25706), + 112: uint16(25707), + 113: uint16(25708), + 114: uint16(25710), + 115: uint16(25711), + 116: uint16(25712), + 117: uint16(25713), + 118: uint16(25714), + 119: uint16(25715), + 120: uint16(25716), + 121: uint16(25717), + 122: uint16(25718), + 123: uint16(25719), + 124: uint16(25723), + 125: uint16(25724), + 126: uint16(25725), + 127: uint16(25726), + 128: uint16(25727), + 129: uint16(25728), + 130: uint16(25729), + 131: uint16(25731), + 132: uint16(25734), + 133: uint16(25736), + 134: uint16(25737), + 135: uint16(25738), + 136: uint16(25739), + 137: uint16(25740), + 138: uint16(25741), + 139: uint16(25742), + 140: uint16(25743), + 141: uint16(25744), + 142: uint16(25747), + 143: uint16(25748), + 144: uint16(25751), + 145: uint16(25752), + 146: uint16(25754), + 147: uint16(25755), + 148: uint16(25756), + 149: uint16(25757), + 150: uint16(25759), + 151: uint16(25760), + 152: uint16(25761), + 153: uint16(25762), + 154: uint16(25763), + 155: uint16(25765), + 156: uint16(25766), + 157: uint16(25767), + 158: uint16(25768), + 159: uint16(25770), + 160: uint16(25771), + 161: uint16(25775), + 162: uint16(25777), + 163: uint16(25778), + 164: uint16(25779), + 165: uint16(25780), + 166: uint16(25782), + 167: uint16(25785), + 168: uint16(25787), + 169: uint16(25789), + 170: uint16(25790), + 171: uint16(25791), + 172: uint16(25793), + 173: uint16(25795), + 174: uint16(25796), + 175: uint16(25798), + 176: uint16(25799), + 177: uint16(25800), + 178: uint16(25801), + 179: uint16(25802), + 180: uint16(25803), + 181: uint16(25804), + 182: uint16(25807), + 183: uint16(25809), + 184: uint16(25811), + 185: uint16(25812), + 186: uint16(25813), + 187: uint16(25814), + 188: uint16(25817), + 189: uint16(25818), + }, + 19: { + 0: uint16(25819), + 1: uint16(25820), + 2: uint16(25821), + 3: uint16(25823), + 4: uint16(25824), + 5: uint16(25825), + 6: uint16(25827), + 7: uint16(25829), + 8: uint16(25831), + 9: uint16(25832), + 10: uint16(25833), + 11: uint16(25834), + 12: uint16(25835), + 13: uint16(25836), + 14: uint16(25837), + 15: uint16(25838), + 16: uint16(25839), + 17: uint16(25840), + 18: uint16(25841), + 19: uint16(25842), + 20: uint16(25843), + 21: uint16(25844), + 22: uint16(25845), + 23: uint16(25846), + 24: uint16(25847), + 25: uint16(25848), + 26: uint16(25849), + 27: uint16(25850), + 28: uint16(25851), + 29: uint16(25852), + 30: uint16(25853), + 31: uint16(25854), + 32: uint16(25855), + 33: uint16(25857), + 34: uint16(25858), + 35: uint16(25859), + 36: uint16(25860), + 37: uint16(25861), + 38: uint16(25862), + 39: uint16(25863), + 40: uint16(25864), + 41: uint16(25866), + 42: uint16(25867), + 43: uint16(25868), + 44: uint16(25869), + 45: uint16(25870), + 46: uint16(25871), + 47: uint16(25872), + 48: uint16(25873), + 49: uint16(25875), + 50: uint16(25876), + 51: uint16(25877), + 52: uint16(25878), + 53: uint16(25879), + 54: uint16(25881), + 55: uint16(25882), + 56: uint16(25883), + 57: uint16(25884), + 58: uint16(25885), + 59: uint16(25886), + 60: uint16(25887), + 61: uint16(25888), + 62: uint16(25889), + 63: uint16(25890), + 64: uint16(25891), + 65: uint16(25892), + 66: uint16(25894), + 67: uint16(25895), + 68: uint16(25896), + 69: uint16(25897), + 70: uint16(25898), + 71: uint16(25900), + 72: uint16(25901), + 73: uint16(25904), + 74: uint16(25905), + 75: uint16(25906), + 76: uint16(25907), + 77: uint16(25911), + 78: uint16(25914), + 79: uint16(25916), + 80: uint16(25917), + 81: uint16(25920), + 82: uint16(25921), + 83: uint16(25922), + 84: uint16(25923), + 85: uint16(25924), + 86: uint16(25926), + 87: uint16(25927), + 88: uint16(25930), + 89: uint16(25931), + 90: uint16(25933), + 91: uint16(25934), + 92: uint16(25936), + 93: uint16(25938), + 94: uint16(25939), + 95: uint16(25940), + 96: uint16(25943), + 97: uint16(25944), + 98: uint16(25946), + 99: uint16(25948), + 100: uint16(25951), + 101: uint16(25952), + 102: uint16(25953), + 103: uint16(25956), + 104: uint16(25957), + 105: uint16(25959), + 106: uint16(25960), + 107: uint16(25961), + 108: uint16(25962), + 109: uint16(25965), + 110: uint16(25966), + 111: uint16(25967), + 112: uint16(25969), + 113: uint16(25971), + 114: uint16(25973), + 115: uint16(25974), + 116: uint16(25976), + 117: uint16(25977), + 118: uint16(25978), + 119: uint16(25979), + 120: uint16(25980), + 121: uint16(25981), + 122: uint16(25982), + 123: uint16(25983), + 124: uint16(25984), + 125: uint16(25985), + 126: uint16(25986), + 127: uint16(25987), + 128: uint16(25988), + 129: uint16(25989), + 130: uint16(25990), + 131: uint16(25992), + 132: uint16(25993), + 133: uint16(25994), + 134: uint16(25997), + 135: uint16(25998), + 136: uint16(25999), + 137: uint16(26002), + 138: uint16(26004), + 139: uint16(26005), + 140: uint16(26006), + 141: uint16(26008), + 142: uint16(26010), + 143: uint16(26013), + 144: uint16(26014), + 145: uint16(26016), + 146: uint16(26018), + 147: uint16(26019), + 148: uint16(26022), + 149: uint16(26024), + 150: uint16(26026), + 151: uint16(26028), + 152: uint16(26030), + 153: uint16(26033), + 154: uint16(26034), + 155: uint16(26035), + 156: uint16(26036), + 157: uint16(26037), + 158: uint16(26038), + 159: uint16(26039), + 160: uint16(26040), + 161: uint16(26042), + 162: uint16(26043), + 163: uint16(26046), + 164: uint16(26047), + 165: uint16(26048), + 166: uint16(26050), + 167: uint16(26055), + 168: uint16(26056), + 169: uint16(26057), + 170: uint16(26058), + 171: uint16(26061), + 172: uint16(26064), + 173: uint16(26065), + 174: uint16(26067), + 175: uint16(26068), + 176: uint16(26069), + 177: uint16(26072), + 178: uint16(26073), + 179: uint16(26074), + 180: uint16(26075), + 181: uint16(26076), + 182: uint16(26077), + 183: uint16(26078), + 184: uint16(26079), + 185: uint16(26081), + 186: uint16(26083), + 187: uint16(26084), + 188: uint16(26090), + 189: uint16(26091), + }, + 20: { + 0: uint16(26098), + 1: uint16(26099), + 2: uint16(26100), + 3: uint16(26101), + 4: uint16(26104), + 5: uint16(26105), + 6: uint16(26107), + 7: uint16(26108), + 8: uint16(26109), + 9: uint16(26110), + 10: uint16(26111), + 11: uint16(26113), + 12: uint16(26116), + 13: uint16(26117), + 14: uint16(26119), + 15: uint16(26120), + 16: uint16(26121), + 17: uint16(26123), + 18: uint16(26125), + 19: uint16(26128), + 20: uint16(26129), + 21: uint16(26130), + 22: uint16(26134), + 23: uint16(26135), + 24: uint16(26136), + 25: uint16(26138), + 26: uint16(26139), + 27: uint16(26140), + 28: uint16(26142), + 29: uint16(26145), + 30: uint16(26146), + 31: uint16(26147), + 32: uint16(26148), + 33: uint16(26150), + 34: uint16(26153), + 35: uint16(26154), + 36: uint16(26155), + 37: uint16(26156), + 38: uint16(26158), + 39: uint16(26160), + 40: uint16(26162), + 41: uint16(26163), + 42: uint16(26167), + 43: uint16(26168), + 44: uint16(26169), + 45: uint16(26170), + 46: uint16(26171), + 47: uint16(26173), + 48: uint16(26175), + 49: uint16(26176), + 50: uint16(26178), + 51: uint16(26180), + 52: uint16(26181), + 53: uint16(26182), + 54: uint16(26183), + 55: uint16(26184), + 56: uint16(26185), + 57: uint16(26186), + 58: uint16(26189), + 59: uint16(26190), + 60: uint16(26192), + 61: uint16(26193), + 62: uint16(26200), + 63: uint16(26201), + 64: uint16(26203), + 65: uint16(26204), + 66: uint16(26205), + 67: uint16(26206), + 68: uint16(26208), + 69: uint16(26210), + 70: uint16(26211), + 71: uint16(26213), + 72: uint16(26215), + 73: uint16(26217), + 74: uint16(26218), + 75: uint16(26219), + 76: uint16(26220), + 77: uint16(26221), + 78: uint16(26225), + 79: uint16(26226), + 80: uint16(26227), + 81: uint16(26229), + 82: uint16(26232), + 83: uint16(26233), + 84: uint16(26235), + 85: uint16(26236), + 86: uint16(26237), + 87: uint16(26239), + 88: uint16(26240), + 89: uint16(26241), + 90: uint16(26243), + 91: uint16(26245), + 92: uint16(26246), + 93: uint16(26248), + 94: uint16(26249), + 95: uint16(26250), + 96: uint16(26251), + 97: uint16(26253), + 98: uint16(26254), + 99: uint16(26255), + 100: uint16(26256), + 101: uint16(26258), + 102: uint16(26259), + 103: uint16(26260), + 104: uint16(26261), + 105: uint16(26264), + 106: uint16(26265), + 107: uint16(26266), + 108: uint16(26267), + 109: uint16(26268), + 110: uint16(26270), + 111: uint16(26271), + 112: uint16(26272), + 113: uint16(26273), + 114: uint16(26274), + 115: uint16(26275), + 116: uint16(26276), + 117: uint16(26277), + 118: uint16(26278), + 119: uint16(26281), + 120: uint16(26282), + 121: uint16(26283), + 122: uint16(26284), + 123: uint16(26285), + 124: uint16(26287), + 125: uint16(26288), + 126: uint16(26289), + 127: uint16(26290), + 128: uint16(26291), + 129: uint16(26293), + 130: uint16(26294), + 131: uint16(26295), + 132: uint16(26296), + 133: uint16(26298), + 134: uint16(26299), + 135: uint16(26300), + 136: uint16(26301), + 137: uint16(26303), + 138: uint16(26304), + 139: uint16(26305), + 140: uint16(26306), + 141: uint16(26307), + 142: uint16(26308), + 143: uint16(26309), + 144: uint16(26310), + 145: uint16(26311), + 146: uint16(26312), + 147: uint16(26313), + 148: uint16(26314), + 149: uint16(26315), + 150: uint16(26316), + 151: uint16(26317), + 152: uint16(26318), + 153: uint16(26319), + 154: uint16(26320), + 155: uint16(26321), + 156: uint16(26322), + 157: uint16(26323), + 158: uint16(26324), + 159: uint16(26325), + 160: uint16(26326), + 161: uint16(26327), + 162: uint16(26328), + 163: uint16(26330), + 164: uint16(26334), + 165: uint16(26335), + 166: uint16(26336), + 167: uint16(26337), + 168: uint16(26338), + 169: uint16(26339), + 170: uint16(26340), + 171: uint16(26341), + 172: uint16(26343), + 173: uint16(26344), + 174: uint16(26346), + 175: uint16(26347), + 176: uint16(26348), + 177: uint16(26349), + 178: uint16(26350), + 179: uint16(26351), + 180: uint16(26353), + 181: uint16(26357), + 182: uint16(26358), + 183: uint16(26360), + 184: uint16(26362), + 185: uint16(26363), + 186: uint16(26365), + 187: uint16(26369), + 188: uint16(26370), + 189: uint16(26371), + }, + 21: { + 0: uint16(26372), + 1: uint16(26373), + 2: uint16(26374), + 3: uint16(26375), + 4: uint16(26380), + 5: uint16(26382), + 6: uint16(26383), + 7: uint16(26385), + 8: uint16(26386), + 9: uint16(26387), + 10: uint16(26390), + 11: uint16(26392), + 12: uint16(26393), + 13: uint16(26394), + 14: uint16(26396), + 15: uint16(26398), + 16: uint16(26400), + 17: uint16(26401), + 18: uint16(26402), + 19: uint16(26403), + 20: uint16(26404), + 21: uint16(26405), + 22: uint16(26407), + 23: uint16(26409), + 24: uint16(26414), + 25: uint16(26416), + 26: uint16(26418), + 27: uint16(26419), + 28: uint16(26422), + 29: uint16(26423), + 30: uint16(26424), + 31: uint16(26425), + 32: uint16(26427), + 33: uint16(26428), + 34: uint16(26430), + 35: uint16(26431), + 36: uint16(26433), + 37: uint16(26436), + 38: uint16(26437), + 39: uint16(26439), + 40: uint16(26442), + 41: uint16(26443), + 42: uint16(26445), + 43: uint16(26450), + 44: uint16(26452), + 45: uint16(26453), + 46: uint16(26455), + 47: uint16(26456), + 48: uint16(26457), + 49: uint16(26458), + 50: uint16(26459), + 51: uint16(26461), + 52: uint16(26466), + 53: uint16(26467), + 54: uint16(26468), + 55: uint16(26470), + 56: uint16(26471), + 57: uint16(26475), + 58: uint16(26476), + 59: uint16(26478), + 60: uint16(26481), + 61: uint16(26484), + 62: uint16(26486), + 63: uint16(26488), + 64: uint16(26489), + 65: uint16(26490), + 66: uint16(26491), + 67: uint16(26493), + 68: uint16(26496), + 69: uint16(26498), + 70: uint16(26499), + 71: uint16(26501), + 72: uint16(26502), + 73: uint16(26504), + 74: uint16(26506), + 75: uint16(26508), + 76: uint16(26509), + 77: uint16(26510), + 78: uint16(26511), + 79: uint16(26513), + 80: uint16(26514), + 81: uint16(26515), + 82: uint16(26516), + 83: uint16(26518), + 84: uint16(26521), + 85: uint16(26523), + 86: uint16(26527), + 87: uint16(26528), + 88: uint16(26529), + 89: uint16(26532), + 90: uint16(26534), + 91: uint16(26537), + 92: uint16(26540), + 93: uint16(26542), + 94: uint16(26545), + 95: uint16(26546), + 96: uint16(26548), + 97: uint16(26553), + 98: uint16(26554), + 99: uint16(26555), + 100: uint16(26556), + 101: uint16(26557), + 102: uint16(26558), + 103: uint16(26559), + 104: uint16(26560), + 105: uint16(26562), + 106: uint16(26565), + 107: uint16(26566), + 108: uint16(26567), + 109: uint16(26568), + 110: uint16(26569), + 111: uint16(26570), + 112: uint16(26571), + 113: uint16(26572), + 114: uint16(26573), + 115: uint16(26574), + 116: uint16(26581), + 117: uint16(26582), + 118: uint16(26583), + 119: uint16(26587), + 120: uint16(26591), + 121: uint16(26593), + 122: uint16(26595), + 123: uint16(26596), + 124: uint16(26598), + 125: uint16(26599), + 126: uint16(26600), + 127: uint16(26602), + 128: uint16(26603), + 129: uint16(26605), + 130: uint16(26606), + 131: uint16(26610), + 132: uint16(26613), + 133: uint16(26614), + 134: uint16(26615), + 135: uint16(26616), + 136: uint16(26617), + 137: uint16(26618), + 138: uint16(26619), + 139: uint16(26620), + 140: uint16(26622), + 141: uint16(26625), + 142: uint16(26626), + 143: uint16(26627), + 144: uint16(26628), + 145: uint16(26630), + 146: uint16(26637), + 147: uint16(26640), + 148: uint16(26642), + 149: uint16(26644), + 150: uint16(26645), + 151: uint16(26648), + 152: uint16(26649), + 153: uint16(26650), + 154: uint16(26651), + 155: uint16(26652), + 156: uint16(26654), + 157: uint16(26655), + 158: uint16(26656), + 159: uint16(26658), + 160: uint16(26659), + 161: uint16(26660), + 162: uint16(26661), + 163: uint16(26662), + 164: uint16(26663), + 165: uint16(26664), + 166: uint16(26667), + 167: uint16(26668), + 168: uint16(26669), + 169: uint16(26670), + 170: uint16(26671), + 171: uint16(26672), + 172: uint16(26673), + 173: uint16(26676), + 174: uint16(26677), + 175: uint16(26678), + 176: uint16(26682), + 177: uint16(26683), + 178: uint16(26687), + 179: uint16(26695), + 180: uint16(26699), + 181: uint16(26701), + 182: uint16(26703), + 183: uint16(26706), + 184: uint16(26710), + 185: uint16(26711), + 186: uint16(26712), + 187: uint16(26713), + 188: uint16(26714), + 189: uint16(26715), + }, + 22: { + 0: uint16(26716), + 1: uint16(26717), + 2: uint16(26718), + 3: uint16(26719), + 4: uint16(26730), + 5: uint16(26732), + 6: uint16(26733), + 7: uint16(26734), + 8: uint16(26735), + 9: uint16(26736), + 10: uint16(26737), + 11: uint16(26738), + 12: uint16(26739), + 13: uint16(26741), + 14: uint16(26744), + 15: uint16(26745), + 16: uint16(26746), + 17: uint16(26747), + 18: uint16(26748), + 19: uint16(26749), + 20: uint16(26750), + 21: uint16(26751), + 22: uint16(26752), + 23: uint16(26754), + 24: uint16(26756), + 25: uint16(26759), + 26: uint16(26760), + 27: uint16(26761), + 28: uint16(26762), + 29: uint16(26763), + 30: uint16(26764), + 31: uint16(26765), + 32: uint16(26766), + 33: uint16(26768), + 34: uint16(26769), + 35: uint16(26770), + 36: uint16(26772), + 37: uint16(26773), + 38: uint16(26774), + 39: uint16(26776), + 40: uint16(26777), + 41: uint16(26778), + 42: uint16(26779), + 43: uint16(26780), + 44: uint16(26781), + 45: uint16(26782), + 46: uint16(26783), + 47: uint16(26784), + 48: uint16(26785), + 49: uint16(26787), + 50: uint16(26788), + 51: uint16(26789), + 52: uint16(26793), + 53: uint16(26794), + 54: uint16(26795), + 55: uint16(26796), + 56: uint16(26798), + 57: uint16(26801), + 58: uint16(26802), + 59: uint16(26804), + 60: uint16(26806), + 61: uint16(26807), + 62: uint16(26808), + 63: uint16(26809), + 64: uint16(26810), + 65: uint16(26811), + 66: uint16(26812), + 67: uint16(26813), + 68: uint16(26814), + 69: uint16(26815), + 70: uint16(26817), + 71: uint16(26819), + 72: uint16(26820), + 73: uint16(26821), + 74: uint16(26822), + 75: uint16(26823), + 76: uint16(26824), + 77: uint16(26826), + 78: uint16(26828), + 79: uint16(26830), + 80: uint16(26831), + 81: uint16(26832), + 82: uint16(26833), + 83: uint16(26835), + 84: uint16(26836), + 85: uint16(26838), + 86: uint16(26839), + 87: uint16(26841), + 88: uint16(26843), + 89: uint16(26844), + 90: uint16(26845), + 91: uint16(26846), + 92: uint16(26847), + 93: uint16(26849), + 94: uint16(26850), + 95: uint16(26852), + 96: uint16(26853), + 97: uint16(26854), + 98: uint16(26855), + 99: uint16(26856), + 100: uint16(26857), + 101: uint16(26858), + 102: uint16(26859), + 103: uint16(26860), + 104: uint16(26861), + 105: uint16(26863), + 106: uint16(26866), + 107: uint16(26867), + 108: uint16(26868), + 109: uint16(26870), + 110: uint16(26871), + 111: uint16(26872), + 112: uint16(26875), + 113: uint16(26877), + 114: uint16(26878), + 115: uint16(26879), + 116: uint16(26880), + 117: uint16(26882), + 118: uint16(26883), + 119: uint16(26884), + 120: uint16(26886), + 121: uint16(26887), + 122: uint16(26888), + 123: uint16(26889), + 124: uint16(26890), + 125: uint16(26892), + 126: uint16(26895), + 127: uint16(26897), + 128: uint16(26899), + 129: uint16(26900), + 130: uint16(26901), + 131: uint16(26902), + 132: uint16(26903), + 133: uint16(26904), + 134: uint16(26905), + 135: uint16(26906), + 136: uint16(26907), + 137: uint16(26908), + 138: uint16(26909), + 139: uint16(26910), + 140: uint16(26913), + 141: uint16(26914), + 142: uint16(26915), + 143: uint16(26917), + 144: uint16(26918), + 145: uint16(26919), + 146: uint16(26920), + 147: uint16(26921), + 148: uint16(26922), + 149: uint16(26923), + 150: uint16(26924), + 151: uint16(26926), + 152: uint16(26927), + 153: uint16(26929), + 154: uint16(26930), + 155: uint16(26931), + 156: uint16(26933), + 157: uint16(26934), + 158: uint16(26935), + 159: uint16(26936), + 160: uint16(26938), + 161: uint16(26939), + 162: uint16(26940), + 163: uint16(26942), + 164: uint16(26944), + 165: uint16(26945), + 166: uint16(26947), + 167: uint16(26948), + 168: uint16(26949), + 169: uint16(26950), + 170: uint16(26951), + 171: uint16(26952), + 172: uint16(26953), + 173: uint16(26954), + 174: uint16(26955), + 175: uint16(26956), + 176: uint16(26957), + 177: uint16(26958), + 178: uint16(26959), + 179: uint16(26960), + 180: uint16(26961), + 181: uint16(26962), + 182: uint16(26963), + 183: uint16(26965), + 184: uint16(26966), + 185: uint16(26968), + 186: uint16(26969), + 187: uint16(26971), + 188: uint16(26972), + 189: uint16(26975), + }, + 23: { + 0: uint16(26977), + 1: uint16(26978), + 2: uint16(26980), + 3: uint16(26981), + 4: uint16(26983), + 5: uint16(26984), + 6: uint16(26985), + 7: uint16(26986), + 8: uint16(26988), + 9: uint16(26989), + 10: uint16(26991), + 11: uint16(26992), + 12: uint16(26994), + 13: uint16(26995), + 14: uint16(26996), + 15: uint16(26997), + 16: uint16(26998), + 17: uint16(27002), + 18: uint16(27003), + 19: uint16(27005), + 20: uint16(27006), + 21: uint16(27007), + 22: uint16(27009), + 23: uint16(27011), + 24: uint16(27013), + 25: uint16(27018), + 26: uint16(27019), + 27: uint16(27020), + 28: uint16(27022), + 29: uint16(27023), + 30: uint16(27024), + 31: uint16(27025), + 32: uint16(27026), + 33: uint16(27027), + 34: uint16(27030), + 35: uint16(27031), + 36: uint16(27033), + 37: uint16(27034), + 38: uint16(27037), + 39: uint16(27038), + 40: uint16(27039), + 41: uint16(27040), + 42: uint16(27041), + 43: uint16(27042), + 44: uint16(27043), + 45: uint16(27044), + 46: uint16(27045), + 47: uint16(27046), + 48: uint16(27049), + 49: uint16(27050), + 50: uint16(27052), + 51: uint16(27054), + 52: uint16(27055), + 53: uint16(27056), + 54: uint16(27058), + 55: uint16(27059), + 56: uint16(27061), + 57: uint16(27062), + 58: uint16(27064), + 59: uint16(27065), + 60: uint16(27066), + 61: uint16(27068), + 62: uint16(27069), + 63: uint16(27070), + 64: uint16(27071), + 65: uint16(27072), + 66: uint16(27074), + 67: uint16(27075), + 68: uint16(27076), + 69: uint16(27077), + 70: uint16(27078), + 71: uint16(27079), + 72: uint16(27080), + 73: uint16(27081), + 74: uint16(27083), + 75: uint16(27085), + 76: uint16(27087), + 77: uint16(27089), + 78: uint16(27090), + 79: uint16(27091), + 80: uint16(27093), + 81: uint16(27094), + 82: uint16(27095), + 83: uint16(27096), + 84: uint16(27097), + 85: uint16(27098), + 86: uint16(27100), + 87: uint16(27101), + 88: uint16(27102), + 89: uint16(27105), + 90: uint16(27106), + 91: uint16(27107), + 92: uint16(27108), + 93: uint16(27109), + 94: uint16(27110), + 95: uint16(27111), + 96: uint16(27112), + 97: uint16(27113), + 98: uint16(27114), + 99: uint16(27115), + 100: uint16(27116), + 101: uint16(27118), + 102: uint16(27119), + 103: uint16(27120), + 104: uint16(27121), + 105: uint16(27123), + 106: uint16(27124), + 107: uint16(27125), + 108: uint16(27126), + 109: uint16(27127), + 110: uint16(27128), + 111: uint16(27129), + 112: uint16(27130), + 113: uint16(27131), + 114: uint16(27132), + 115: uint16(27134), + 116: uint16(27136), + 117: uint16(27137), + 118: uint16(27138), + 119: uint16(27139), + 120: uint16(27140), + 121: uint16(27141), + 122: uint16(27142), + 123: uint16(27143), + 124: uint16(27144), + 125: uint16(27145), + 126: uint16(27147), + 127: uint16(27148), + 128: uint16(27149), + 129: uint16(27150), + 130: uint16(27151), + 131: uint16(27152), + 132: uint16(27153), + 133: uint16(27154), + 134: uint16(27155), + 135: uint16(27156), + 136: uint16(27157), + 137: uint16(27158), + 138: uint16(27161), + 139: uint16(27162), + 140: uint16(27163), + 141: uint16(27164), + 142: uint16(27165), + 143: uint16(27166), + 144: uint16(27168), + 145: uint16(27170), + 146: uint16(27171), + 147: uint16(27172), + 148: uint16(27173), + 149: uint16(27174), + 150: uint16(27175), + 151: uint16(27177), + 152: uint16(27179), + 153: uint16(27180), + 154: uint16(27181), + 155: uint16(27182), + 156: uint16(27184), + 157: uint16(27186), + 158: uint16(27187), + 159: uint16(27188), + 160: uint16(27190), + 161: uint16(27191), + 162: uint16(27192), + 163: uint16(27193), + 164: uint16(27194), + 165: uint16(27195), + 166: uint16(27196), + 167: uint16(27199), + 168: uint16(27200), + 169: uint16(27201), + 170: uint16(27202), + 171: uint16(27203), + 172: uint16(27205), + 173: uint16(27206), + 174: uint16(27208), + 175: uint16(27209), + 176: uint16(27210), + 177: uint16(27211), + 178: uint16(27212), + 179: uint16(27213), + 180: uint16(27214), + 181: uint16(27215), + 182: uint16(27217), + 183: uint16(27218), + 184: uint16(27219), + 185: uint16(27220), + 186: uint16(27221), + 187: uint16(27222), + 188: uint16(27223), + 189: uint16(27226), + }, + 24: { + 0: uint16(27228), + 1: uint16(27229), + 2: uint16(27230), + 3: uint16(27231), + 4: uint16(27232), + 5: uint16(27234), + 6: uint16(27235), + 7: uint16(27236), + 8: uint16(27238), + 9: uint16(27239), + 10: uint16(27240), + 11: uint16(27241), + 12: uint16(27242), + 13: uint16(27243), + 14: uint16(27244), + 15: uint16(27245), + 16: uint16(27246), + 17: uint16(27247), + 18: uint16(27248), + 19: uint16(27250), + 20: uint16(27251), + 21: uint16(27252), + 22: uint16(27253), + 23: uint16(27254), + 24: uint16(27255), + 25: uint16(27256), + 26: uint16(27258), + 27: uint16(27259), + 28: uint16(27261), + 29: uint16(27262), + 30: uint16(27263), + 31: uint16(27265), + 32: uint16(27266), + 33: uint16(27267), + 34: uint16(27269), + 35: uint16(27270), + 36: uint16(27271), + 37: uint16(27272), + 38: uint16(27273), + 39: uint16(27274), + 40: uint16(27275), + 41: uint16(27276), + 42: uint16(27277), + 43: uint16(27279), + 44: uint16(27282), + 45: uint16(27283), + 46: uint16(27284), + 47: uint16(27285), + 48: uint16(27286), + 49: uint16(27288), + 50: uint16(27289), + 51: uint16(27290), + 52: uint16(27291), + 53: uint16(27292), + 54: uint16(27293), + 55: uint16(27294), + 56: uint16(27295), + 57: uint16(27297), + 58: uint16(27298), + 59: uint16(27299), + 60: uint16(27300), + 61: uint16(27301), + 62: uint16(27302), + 63: uint16(27303), + 64: uint16(27304), + 65: uint16(27306), + 66: uint16(27309), + 67: uint16(27310), + 68: uint16(27311), + 69: uint16(27312), + 70: uint16(27313), + 71: uint16(27314), + 72: uint16(27315), + 73: uint16(27316), + 74: uint16(27317), + 75: uint16(27318), + 76: uint16(27319), + 77: uint16(27320), + 78: uint16(27321), + 79: uint16(27322), + 80: uint16(27323), + 81: uint16(27324), + 82: uint16(27325), + 83: uint16(27326), + 84: uint16(27327), + 85: uint16(27328), + 86: uint16(27329), + 87: uint16(27330), + 88: uint16(27331), + 89: uint16(27332), + 90: uint16(27333), + 91: uint16(27334), + 92: uint16(27335), + 93: uint16(27336), + 94: uint16(27337), + 95: uint16(27338), + 96: uint16(27339), + 97: uint16(27340), + 98: uint16(27341), + 99: uint16(27342), + 100: uint16(27343), + 101: uint16(27344), + 102: uint16(27345), + 103: uint16(27346), + 104: uint16(27347), + 105: uint16(27348), + 106: uint16(27349), + 107: uint16(27350), + 108: uint16(27351), + 109: uint16(27352), + 110: uint16(27353), + 111: uint16(27354), + 112: uint16(27355), + 113: uint16(27356), + 114: uint16(27357), + 115: uint16(27358), + 116: uint16(27359), + 117: uint16(27360), + 118: uint16(27361), + 119: uint16(27362), + 120: uint16(27363), + 121: uint16(27364), + 122: uint16(27365), + 123: uint16(27366), + 124: uint16(27367), + 125: uint16(27368), + 126: uint16(27369), + 127: uint16(27370), + 128: uint16(27371), + 129: uint16(27372), + 130: uint16(27373), + 131: uint16(27374), + 132: uint16(27375), + 133: uint16(27376), + 134: uint16(27377), + 135: uint16(27378), + 136: uint16(27379), + 137: uint16(27380), + 138: uint16(27381), + 139: uint16(27382), + 140: uint16(27383), + 141: uint16(27384), + 142: uint16(27385), + 143: uint16(27386), + 144: uint16(27387), + 145: uint16(27388), + 146: uint16(27389), + 147: uint16(27390), + 148: uint16(27391), + 149: uint16(27392), + 150: uint16(27393), + 151: uint16(27394), + 152: uint16(27395), + 153: uint16(27396), + 154: uint16(27397), + 155: uint16(27398), + 156: uint16(27399), + 157: uint16(27400), + 158: uint16(27401), + 159: uint16(27402), + 160: uint16(27403), + 161: uint16(27404), + 162: uint16(27405), + 163: uint16(27406), + 164: uint16(27407), + 165: uint16(27408), + 166: uint16(27409), + 167: uint16(27410), + 168: uint16(27411), + 169: uint16(27412), + 170: uint16(27413), + 171: uint16(27414), + 172: uint16(27415), + 173: uint16(27416), + 174: uint16(27417), + 175: uint16(27418), + 176: uint16(27419), + 177: uint16(27420), + 178: uint16(27421), + 179: uint16(27422), + 180: uint16(27423), + 181: uint16(27429), + 182: uint16(27430), + 183: uint16(27432), + 184: uint16(27433), + 185: uint16(27434), + 186: uint16(27435), + 187: uint16(27436), + 188: uint16(27437), + 189: uint16(27438), + }, + 25: { + 0: uint16(27439), + 1: uint16(27440), + 2: uint16(27441), + 3: uint16(27443), + 4: uint16(27444), + 5: uint16(27445), + 6: uint16(27446), + 7: uint16(27448), + 8: uint16(27451), + 9: uint16(27452), + 10: uint16(27453), + 11: uint16(27455), + 12: uint16(27456), + 13: uint16(27457), + 14: uint16(27458), + 15: uint16(27460), + 16: uint16(27461), + 17: uint16(27464), + 18: uint16(27466), + 19: uint16(27467), + 20: uint16(27469), + 21: uint16(27470), + 22: uint16(27471), + 23: uint16(27472), + 24: uint16(27473), + 25: uint16(27474), + 26: uint16(27475), + 27: uint16(27476), + 28: uint16(27477), + 29: uint16(27478), + 30: uint16(27479), + 31: uint16(27480), + 32: uint16(27482), + 33: uint16(27483), + 34: uint16(27484), + 35: uint16(27485), + 36: uint16(27486), + 37: uint16(27487), + 38: uint16(27488), + 39: uint16(27489), + 40: uint16(27496), + 41: uint16(27497), + 42: uint16(27499), + 43: uint16(27500), + 44: uint16(27501), + 45: uint16(27502), + 46: uint16(27503), + 47: uint16(27504), + 48: uint16(27505), + 49: uint16(27506), + 50: uint16(27507), + 51: uint16(27508), + 52: uint16(27509), + 53: uint16(27510), + 54: uint16(27511), + 55: uint16(27512), + 56: uint16(27514), + 57: uint16(27517), + 58: uint16(27518), + 59: uint16(27519), + 60: uint16(27520), + 61: uint16(27525), + 62: uint16(27528), + 63: uint16(27532), + 64: uint16(27534), + 65: uint16(27535), + 66: uint16(27536), + 67: uint16(27537), + 68: uint16(27540), + 69: uint16(27541), + 70: uint16(27543), + 71: uint16(27544), + 72: uint16(27545), + 73: uint16(27548), + 74: uint16(27549), + 75: uint16(27550), + 76: uint16(27551), + 77: uint16(27552), + 78: uint16(27554), + 79: uint16(27555), + 80: uint16(27556), + 81: uint16(27557), + 82: uint16(27558), + 83: uint16(27559), + 84: uint16(27560), + 85: uint16(27561), + 86: uint16(27563), + 87: uint16(27564), + 88: uint16(27565), + 89: uint16(27566), + 90: uint16(27567), + 91: uint16(27568), + 92: uint16(27569), + 93: uint16(27570), + 94: uint16(27574), + 95: uint16(27576), + 96: uint16(27577), + 97: uint16(27578), + 98: uint16(27579), + 99: uint16(27580), + 100: uint16(27581), + 101: uint16(27582), + 102: uint16(27584), + 103: uint16(27587), + 104: uint16(27588), + 105: uint16(27590), + 106: uint16(27591), + 107: uint16(27592), + 108: uint16(27593), + 109: uint16(27594), + 110: uint16(27596), + 111: uint16(27598), + 112: uint16(27600), + 113: uint16(27601), + 114: uint16(27608), + 115: uint16(27610), + 116: uint16(27612), + 117: uint16(27613), + 118: uint16(27614), + 119: uint16(27615), + 120: uint16(27616), + 121: uint16(27618), + 122: uint16(27619), + 123: uint16(27620), + 124: uint16(27621), + 125: uint16(27622), + 126: uint16(27623), + 127: uint16(27624), + 128: uint16(27625), + 129: uint16(27628), + 130: uint16(27629), + 131: uint16(27630), + 132: uint16(27632), + 133: uint16(27633), + 134: uint16(27634), + 135: uint16(27636), + 136: uint16(27638), + 137: uint16(27639), + 138: uint16(27640), + 139: uint16(27642), + 140: uint16(27643), + 141: uint16(27644), + 142: uint16(27646), + 143: uint16(27647), + 144: uint16(27648), + 145: uint16(27649), + 146: uint16(27650), + 147: uint16(27651), + 148: uint16(27652), + 149: uint16(27656), + 150: uint16(27657), + 151: uint16(27658), + 152: uint16(27659), + 153: uint16(27660), + 154: uint16(27662), + 155: uint16(27666), + 156: uint16(27671), + 157: uint16(27676), + 158: uint16(27677), + 159: uint16(27678), + 160: uint16(27680), + 161: uint16(27683), + 162: uint16(27685), + 163: uint16(27691), + 164: uint16(27692), + 165: uint16(27693), + 166: uint16(27697), + 167: uint16(27699), + 168: uint16(27702), + 169: uint16(27703), + 170: uint16(27705), + 171: uint16(27706), + 172: uint16(27707), + 173: uint16(27708), + 174: uint16(27710), + 175: uint16(27711), + 176: uint16(27715), + 177: uint16(27716), + 178: uint16(27717), + 179: uint16(27720), + 180: uint16(27723), + 181: uint16(27724), + 182: uint16(27725), + 183: uint16(27726), + 184: uint16(27727), + 185: uint16(27729), + 186: uint16(27730), + 187: uint16(27731), + 188: uint16(27734), + 189: uint16(27736), + }, + 26: { + 0: uint16(27737), + 1: uint16(27738), + 2: uint16(27746), + 3: uint16(27747), + 4: uint16(27749), + 5: uint16(27750), + 6: uint16(27751), + 7: uint16(27755), + 8: uint16(27756), + 9: uint16(27757), + 10: uint16(27758), + 11: uint16(27759), + 12: uint16(27761), + 13: uint16(27763), + 14: uint16(27765), + 15: uint16(27767), + 16: uint16(27768), + 17: uint16(27770), + 18: uint16(27771), + 19: uint16(27772), + 20: uint16(27775), + 21: uint16(27776), + 22: uint16(27780), + 23: uint16(27783), + 24: uint16(27786), + 25: uint16(27787), + 26: uint16(27789), + 27: uint16(27790), + 28: uint16(27793), + 29: uint16(27794), + 30: uint16(27797), + 31: uint16(27798), + 32: uint16(27799), + 33: uint16(27800), + 34: uint16(27802), + 35: uint16(27804), + 36: uint16(27805), + 37: uint16(27806), + 38: uint16(27808), + 39: uint16(27810), + 40: uint16(27816), + 41: uint16(27820), + 42: uint16(27823), + 43: uint16(27824), + 44: uint16(27828), + 45: uint16(27829), + 46: uint16(27830), + 47: uint16(27831), + 48: uint16(27834), + 49: uint16(27840), + 50: uint16(27841), + 51: uint16(27842), + 52: uint16(27843), + 53: uint16(27846), + 54: uint16(27847), + 55: uint16(27848), + 56: uint16(27851), + 57: uint16(27853), + 58: uint16(27854), + 59: uint16(27855), + 60: uint16(27857), + 61: uint16(27858), + 62: uint16(27864), + 63: uint16(27865), + 64: uint16(27866), + 65: uint16(27868), + 66: uint16(27869), + 67: uint16(27871), + 68: uint16(27876), + 69: uint16(27878), + 70: uint16(27879), + 71: uint16(27881), + 72: uint16(27884), + 73: uint16(27885), + 74: uint16(27890), + 75: uint16(27892), + 76: uint16(27897), + 77: uint16(27903), + 78: uint16(27904), + 79: uint16(27906), + 80: uint16(27907), + 81: uint16(27909), + 82: uint16(27910), + 83: uint16(27912), + 84: uint16(27913), + 85: uint16(27914), + 86: uint16(27917), + 87: uint16(27919), + 88: uint16(27920), + 89: uint16(27921), + 90: uint16(27923), + 91: uint16(27924), + 92: uint16(27925), + 93: uint16(27926), + 94: uint16(27928), + 95: uint16(27932), + 96: uint16(27933), + 97: uint16(27935), + 98: uint16(27936), + 99: uint16(27937), + 100: uint16(27938), + 101: uint16(27939), + 102: uint16(27940), + 103: uint16(27942), + 104: uint16(27944), + 105: uint16(27945), + 106: uint16(27948), + 107: uint16(27949), + 108: uint16(27951), + 109: uint16(27952), + 110: uint16(27956), + 111: uint16(27958), + 112: uint16(27959), + 113: uint16(27960), + 114: uint16(27962), + 115: uint16(27967), + 116: uint16(27968), + 117: uint16(27970), + 118: uint16(27972), + 119: uint16(27977), + 120: uint16(27980), + 121: uint16(27984), + 122: uint16(27989), + 123: uint16(27990), + 124: uint16(27991), + 125: uint16(27992), + 126: uint16(27995), + 127: uint16(27997), + 128: uint16(27999), + 129: uint16(28001), + 130: uint16(28002), + 131: uint16(28004), + 132: uint16(28005), + 133: uint16(28007), + 134: uint16(28008), + 135: uint16(28011), + 136: uint16(28012), + 137: uint16(28013), + 138: uint16(28016), + 139: uint16(28017), + 140: uint16(28018), + 141: uint16(28019), + 142: uint16(28021), + 143: uint16(28022), + 144: uint16(28025), + 145: uint16(28026), + 146: uint16(28027), + 147: uint16(28029), + 148: uint16(28030), + 149: uint16(28031), + 150: uint16(28032), + 151: uint16(28033), + 152: uint16(28035), + 153: uint16(28036), + 154: uint16(28038), + 155: uint16(28039), + 156: uint16(28042), + 157: uint16(28043), + 158: uint16(28045), + 159: uint16(28047), + 160: uint16(28048), + 161: uint16(28050), + 162: uint16(28054), + 163: uint16(28055), + 164: uint16(28056), + 165: uint16(28057), + 166: uint16(28058), + 167: uint16(28060), + 168: uint16(28066), + 169: uint16(28069), + 170: uint16(28076), + 171: uint16(28077), + 172: uint16(28080), + 173: uint16(28081), + 174: uint16(28083), + 175: uint16(28084), + 176: uint16(28086), + 177: uint16(28087), + 178: uint16(28089), + 179: uint16(28090), + 180: uint16(28091), + 181: uint16(28092), + 182: uint16(28093), + 183: uint16(28094), + 184: uint16(28097), + 185: uint16(28098), + 186: uint16(28099), + 187: uint16(28104), + 188: uint16(28105), + 189: uint16(28106), + }, + 27: { + 0: uint16(28109), + 1: uint16(28110), + 2: uint16(28111), + 3: uint16(28112), + 4: uint16(28114), + 5: uint16(28115), + 6: uint16(28116), + 7: uint16(28117), + 8: uint16(28119), + 9: uint16(28122), + 10: uint16(28123), + 11: uint16(28124), + 12: uint16(28127), + 13: uint16(28130), + 14: uint16(28131), + 15: uint16(28133), + 16: uint16(28135), + 17: uint16(28136), + 18: uint16(28137), + 19: uint16(28138), + 20: uint16(28141), + 21: uint16(28143), + 22: uint16(28144), + 23: uint16(28146), + 24: uint16(28148), + 25: uint16(28149), + 26: uint16(28150), + 27: uint16(28152), + 28: uint16(28154), + 29: uint16(28157), + 30: uint16(28158), + 31: uint16(28159), + 32: uint16(28160), + 33: uint16(28161), + 34: uint16(28162), + 35: uint16(28163), + 36: uint16(28164), + 37: uint16(28166), + 38: uint16(28167), + 39: uint16(28168), + 40: uint16(28169), + 41: uint16(28171), + 42: uint16(28175), + 43: uint16(28178), + 44: uint16(28179), + 45: uint16(28181), + 46: uint16(28184), + 47: uint16(28185), + 48: uint16(28187), + 49: uint16(28188), + 50: uint16(28190), + 51: uint16(28191), + 52: uint16(28194), + 53: uint16(28198), + 54: uint16(28199), + 55: uint16(28200), + 56: uint16(28202), + 57: uint16(28204), + 58: uint16(28206), + 59: uint16(28208), + 60: uint16(28209), + 61: uint16(28211), + 62: uint16(28213), + 63: uint16(28214), + 64: uint16(28215), + 65: uint16(28217), + 66: uint16(28219), + 67: uint16(28220), + 68: uint16(28221), + 69: uint16(28222), + 70: uint16(28223), + 71: uint16(28224), + 72: uint16(28225), + 73: uint16(28226), + 74: uint16(28229), + 75: uint16(28230), + 76: uint16(28231), + 77: uint16(28232), + 78: uint16(28233), + 79: uint16(28234), + 80: uint16(28235), + 81: uint16(28236), + 82: uint16(28239), + 83: uint16(28240), + 84: uint16(28241), + 85: uint16(28242), + 86: uint16(28245), + 87: uint16(28247), + 88: uint16(28249), + 89: uint16(28250), + 90: uint16(28252), + 91: uint16(28253), + 92: uint16(28254), + 93: uint16(28256), + 94: uint16(28257), + 95: uint16(28258), + 96: uint16(28259), + 97: uint16(28260), + 98: uint16(28261), + 99: uint16(28262), + 100: uint16(28263), + 101: uint16(28264), + 102: uint16(28265), + 103: uint16(28266), + 104: uint16(28268), + 105: uint16(28269), + 106: uint16(28271), + 107: uint16(28272), + 108: uint16(28273), + 109: uint16(28274), + 110: uint16(28275), + 111: uint16(28276), + 112: uint16(28277), + 113: uint16(28278), + 114: uint16(28279), + 115: uint16(28280), + 116: uint16(28281), + 117: uint16(28282), + 118: uint16(28283), + 119: uint16(28284), + 120: uint16(28285), + 121: uint16(28288), + 122: uint16(28289), + 123: uint16(28290), + 124: uint16(28292), + 125: uint16(28295), + 126: uint16(28296), + 127: uint16(28298), + 128: uint16(28299), + 129: uint16(28300), + 130: uint16(28301), + 131: uint16(28302), + 132: uint16(28305), + 133: uint16(28306), + 134: uint16(28307), + 135: uint16(28308), + 136: uint16(28309), + 137: uint16(28310), + 138: uint16(28311), + 139: uint16(28313), + 140: uint16(28314), + 141: uint16(28315), + 142: uint16(28317), + 143: uint16(28318), + 144: uint16(28320), + 145: uint16(28321), + 146: uint16(28323), + 147: uint16(28324), + 148: uint16(28326), + 149: uint16(28328), + 150: uint16(28329), + 151: uint16(28331), + 152: uint16(28332), + 153: uint16(28333), + 154: uint16(28334), + 155: uint16(28336), + 156: uint16(28339), + 157: uint16(28341), + 158: uint16(28344), + 159: uint16(28345), + 160: uint16(28348), + 161: uint16(28350), + 162: uint16(28351), + 163: uint16(28352), + 164: uint16(28355), + 165: uint16(28356), + 166: uint16(28357), + 167: uint16(28358), + 168: uint16(28360), + 169: uint16(28361), + 170: uint16(28362), + 171: uint16(28364), + 172: uint16(28365), + 173: uint16(28366), + 174: uint16(28368), + 175: uint16(28370), + 176: uint16(28374), + 177: uint16(28376), + 178: uint16(28377), + 179: uint16(28379), + 180: uint16(28380), + 181: uint16(28381), + 182: uint16(28387), + 183: uint16(28391), + 184: uint16(28394), + 185: uint16(28395), + 186: uint16(28396), + 187: uint16(28397), + 188: uint16(28398), + 189: uint16(28399), + }, + 28: { + 0: uint16(28400), + 1: uint16(28401), + 2: uint16(28402), + 3: uint16(28403), + 4: uint16(28405), + 5: uint16(28406), + 6: uint16(28407), + 7: uint16(28408), + 8: uint16(28410), + 9: uint16(28411), + 10: uint16(28412), + 11: uint16(28413), + 12: uint16(28414), + 13: uint16(28415), + 14: uint16(28416), + 15: uint16(28417), + 16: uint16(28419), + 17: uint16(28420), + 18: uint16(28421), + 19: uint16(28423), + 20: uint16(28424), + 21: uint16(28426), + 22: uint16(28427), + 23: uint16(28428), + 24: uint16(28429), + 25: uint16(28430), + 26: uint16(28432), + 27: uint16(28433), + 28: uint16(28434), + 29: uint16(28438), + 30: uint16(28439), + 31: uint16(28440), + 32: uint16(28441), + 33: uint16(28442), + 34: uint16(28443), + 35: uint16(28444), + 36: uint16(28445), + 37: uint16(28446), + 38: uint16(28447), + 39: uint16(28449), + 40: uint16(28450), + 41: uint16(28451), + 42: uint16(28453), + 43: uint16(28454), + 44: uint16(28455), + 45: uint16(28456), + 46: uint16(28460), + 47: uint16(28462), + 48: uint16(28464), + 49: uint16(28466), + 50: uint16(28468), + 51: uint16(28469), + 52: uint16(28471), + 53: uint16(28472), + 54: uint16(28473), + 55: uint16(28474), + 56: uint16(28475), + 57: uint16(28476), + 58: uint16(28477), + 59: uint16(28479), + 60: uint16(28480), + 61: uint16(28481), + 62: uint16(28482), + 63: uint16(28483), + 64: uint16(28484), + 65: uint16(28485), + 66: uint16(28488), + 67: uint16(28489), + 68: uint16(28490), + 69: uint16(28492), + 70: uint16(28494), + 71: uint16(28495), + 72: uint16(28496), + 73: uint16(28497), + 74: uint16(28498), + 75: uint16(28499), + 76: uint16(28500), + 77: uint16(28501), + 78: uint16(28502), + 79: uint16(28503), + 80: uint16(28505), + 81: uint16(28506), + 82: uint16(28507), + 83: uint16(28509), + 84: uint16(28511), + 85: uint16(28512), + 86: uint16(28513), + 87: uint16(28515), + 88: uint16(28516), + 89: uint16(28517), + 90: uint16(28519), + 91: uint16(28520), + 92: uint16(28521), + 93: uint16(28522), + 94: uint16(28523), + 95: uint16(28524), + 96: uint16(28527), + 97: uint16(28528), + 98: uint16(28529), + 99: uint16(28531), + 100: uint16(28533), + 101: uint16(28534), + 102: uint16(28535), + 103: uint16(28537), + 104: uint16(28539), + 105: uint16(28541), + 106: uint16(28542), + 107: uint16(28543), + 108: uint16(28544), + 109: uint16(28545), + 110: uint16(28546), + 111: uint16(28547), + 112: uint16(28549), + 113: uint16(28550), + 114: uint16(28551), + 115: uint16(28554), + 116: uint16(28555), + 117: uint16(28559), + 118: uint16(28560), + 119: uint16(28561), + 120: uint16(28562), + 121: uint16(28563), + 122: uint16(28564), + 123: uint16(28565), + 124: uint16(28566), + 125: uint16(28567), + 126: uint16(28568), + 127: uint16(28569), + 128: uint16(28570), + 129: uint16(28571), + 130: uint16(28573), + 131: uint16(28574), + 132: uint16(28575), + 133: uint16(28576), + 134: uint16(28578), + 135: uint16(28579), + 136: uint16(28580), + 137: uint16(28581), + 138: uint16(28582), + 139: uint16(28584), + 140: uint16(28585), + 141: uint16(28586), + 142: uint16(28587), + 143: uint16(28588), + 144: uint16(28589), + 145: uint16(28590), + 146: uint16(28591), + 147: uint16(28592), + 148: uint16(28593), + 149: uint16(28594), + 150: uint16(28596), + 151: uint16(28597), + 152: uint16(28599), + 153: uint16(28600), + 154: uint16(28602), + 155: uint16(28603), + 156: uint16(28604), + 157: uint16(28605), + 158: uint16(28606), + 159: uint16(28607), + 160: uint16(28609), + 161: uint16(28611), + 162: uint16(28612), + 163: uint16(28613), + 164: uint16(28614), + 165: uint16(28615), + 166: uint16(28616), + 167: uint16(28618), + 168: uint16(28619), + 169: uint16(28620), + 170: uint16(28621), + 171: uint16(28622), + 172: uint16(28623), + 173: uint16(28624), + 174: uint16(28627), + 175: uint16(28628), + 176: uint16(28629), + 177: uint16(28630), + 178: uint16(28631), + 179: uint16(28632), + 180: uint16(28633), + 181: uint16(28634), + 182: uint16(28635), + 183: uint16(28636), + 184: uint16(28637), + 185: uint16(28639), + 186: uint16(28642), + 187: uint16(28643), + 188: uint16(28644), + 189: uint16(28645), + }, + 29: { + 0: uint16(28646), + 1: uint16(28647), + 2: uint16(28648), + 3: uint16(28649), + 4: uint16(28650), + 5: uint16(28651), + 6: uint16(28652), + 7: uint16(28653), + 8: uint16(28656), + 9: uint16(28657), + 10: uint16(28658), + 11: uint16(28659), + 12: uint16(28660), + 13: uint16(28661), + 14: uint16(28662), + 15: uint16(28663), + 16: uint16(28664), + 17: uint16(28665), + 18: uint16(28666), + 19: uint16(28667), + 20: uint16(28668), + 21: uint16(28669), + 22: uint16(28670), + 23: uint16(28671), + 24: uint16(28672), + 25: uint16(28673), + 26: uint16(28674), + 27: uint16(28675), + 28: uint16(28676), + 29: uint16(28677), + 30: uint16(28678), + 31: uint16(28679), + 32: uint16(28680), + 33: uint16(28681), + 34: uint16(28682), + 35: uint16(28683), + 36: uint16(28684), + 37: uint16(28685), + 38: uint16(28686), + 39: uint16(28687), + 40: uint16(28688), + 41: uint16(28690), + 42: uint16(28691), + 43: uint16(28692), + 44: uint16(28693), + 45: uint16(28694), + 46: uint16(28695), + 47: uint16(28696), + 48: uint16(28697), + 49: uint16(28700), + 50: uint16(28701), + 51: uint16(28702), + 52: uint16(28703), + 53: uint16(28704), + 54: uint16(28705), + 55: uint16(28706), + 56: uint16(28708), + 57: uint16(28709), + 58: uint16(28710), + 59: uint16(28711), + 60: uint16(28712), + 61: uint16(28713), + 62: uint16(28714), + 63: uint16(28715), + 64: uint16(28716), + 65: uint16(28717), + 66: uint16(28718), + 67: uint16(28719), + 68: uint16(28720), + 69: uint16(28721), + 70: uint16(28722), + 71: uint16(28723), + 72: uint16(28724), + 73: uint16(28726), + 74: uint16(28727), + 75: uint16(28728), + 76: uint16(28730), + 77: uint16(28731), + 78: uint16(28732), + 79: uint16(28733), + 80: uint16(28734), + 81: uint16(28735), + 82: uint16(28736), + 83: uint16(28737), + 84: uint16(28738), + 85: uint16(28739), + 86: uint16(28740), + 87: uint16(28741), + 88: uint16(28742), + 89: uint16(28743), + 90: uint16(28744), + 91: uint16(28745), + 92: uint16(28746), + 93: uint16(28747), + 94: uint16(28749), + 95: uint16(28750), + 96: uint16(28752), + 97: uint16(28753), + 98: uint16(28754), + 99: uint16(28755), + 100: uint16(28756), + 101: uint16(28757), + 102: uint16(28758), + 103: uint16(28759), + 104: uint16(28760), + 105: uint16(28761), + 106: uint16(28762), + 107: uint16(28763), + 108: uint16(28764), + 109: uint16(28765), + 110: uint16(28767), + 111: uint16(28768), + 112: uint16(28769), + 113: uint16(28770), + 114: uint16(28771), + 115: uint16(28772), + 116: uint16(28773), + 117: uint16(28774), + 118: uint16(28775), + 119: uint16(28776), + 120: uint16(28777), + 121: uint16(28778), + 122: uint16(28782), + 123: uint16(28785), + 124: uint16(28786), + 125: uint16(28787), + 126: uint16(28788), + 127: uint16(28791), + 128: uint16(28793), + 129: uint16(28794), + 130: uint16(28795), + 131: uint16(28797), + 132: uint16(28801), + 133: uint16(28802), + 134: uint16(28803), + 135: uint16(28804), + 136: uint16(28806), + 137: uint16(28807), + 138: uint16(28808), + 139: uint16(28811), + 140: uint16(28812), + 141: uint16(28813), + 142: uint16(28815), + 143: uint16(28816), + 144: uint16(28817), + 145: uint16(28819), + 146: uint16(28823), + 147: uint16(28824), + 148: uint16(28826), + 149: uint16(28827), + 150: uint16(28830), + 151: uint16(28831), + 152: uint16(28832), + 153: uint16(28833), + 154: uint16(28834), + 155: uint16(28835), + 156: uint16(28836), + 157: uint16(28837), + 158: uint16(28838), + 159: uint16(28839), + 160: uint16(28840), + 161: uint16(28841), + 162: uint16(28842), + 163: uint16(28848), + 164: uint16(28850), + 165: uint16(28852), + 166: uint16(28853), + 167: uint16(28854), + 168: uint16(28858), + 169: uint16(28862), + 170: uint16(28863), + 171: uint16(28868), + 172: uint16(28869), + 173: uint16(28870), + 174: uint16(28871), + 175: uint16(28873), + 176: uint16(28875), + 177: uint16(28876), + 178: uint16(28877), + 179: uint16(28878), + 180: uint16(28879), + 181: uint16(28880), + 182: uint16(28881), + 183: uint16(28882), + 184: uint16(28883), + 185: uint16(28884), + 186: uint16(28885), + 187: uint16(28886), + 188: uint16(28887), + 189: uint16(28890), + }, + 30: { + 0: uint16(28892), + 1: uint16(28893), + 2: uint16(28894), + 3: uint16(28896), + 4: uint16(28897), + 5: uint16(28898), + 6: uint16(28899), + 7: uint16(28901), + 8: uint16(28906), + 9: uint16(28910), + 10: uint16(28912), + 11: uint16(28913), + 12: uint16(28914), + 13: uint16(28915), + 14: uint16(28916), + 15: uint16(28917), + 16: uint16(28918), + 17: uint16(28920), + 18: uint16(28922), + 19: uint16(28923), + 20: uint16(28924), + 21: uint16(28926), + 22: uint16(28927), + 23: uint16(28928), + 24: uint16(28929), + 25: uint16(28930), + 26: uint16(28931), + 27: uint16(28932), + 28: uint16(28933), + 29: uint16(28934), + 30: uint16(28935), + 31: uint16(28936), + 32: uint16(28939), + 33: uint16(28940), + 34: uint16(28941), + 35: uint16(28942), + 36: uint16(28943), + 37: uint16(28945), + 38: uint16(28946), + 39: uint16(28948), + 40: uint16(28951), + 41: uint16(28955), + 42: uint16(28956), + 43: uint16(28957), + 44: uint16(28958), + 45: uint16(28959), + 46: uint16(28960), + 47: uint16(28961), + 48: uint16(28962), + 49: uint16(28963), + 50: uint16(28964), + 51: uint16(28965), + 52: uint16(28967), + 53: uint16(28968), + 54: uint16(28969), + 55: uint16(28970), + 56: uint16(28971), + 57: uint16(28972), + 58: uint16(28973), + 59: uint16(28974), + 60: uint16(28978), + 61: uint16(28979), + 62: uint16(28980), + 63: uint16(28981), + 64: uint16(28983), + 65: uint16(28984), + 66: uint16(28985), + 67: uint16(28986), + 68: uint16(28987), + 69: uint16(28988), + 70: uint16(28989), + 71: uint16(28990), + 72: uint16(28991), + 73: uint16(28992), + 74: uint16(28993), + 75: uint16(28994), + 76: uint16(28995), + 77: uint16(28996), + 78: uint16(28998), + 79: uint16(28999), + 80: uint16(29000), + 81: uint16(29001), + 82: uint16(29003), + 83: uint16(29005), + 84: uint16(29007), + 85: uint16(29008), + 86: uint16(29009), + 87: uint16(29010), + 88: uint16(29011), + 89: uint16(29012), + 90: uint16(29013), + 91: uint16(29014), + 92: uint16(29015), + 93: uint16(29016), + 94: uint16(29017), + 95: uint16(29018), + 96: uint16(29019), + 97: uint16(29021), + 98: uint16(29023), + 99: uint16(29024), + 100: uint16(29025), + 101: uint16(29026), + 102: uint16(29027), + 103: uint16(29029), + 104: uint16(29033), + 105: uint16(29034), + 106: uint16(29035), + 107: uint16(29036), + 108: uint16(29037), + 109: uint16(29039), + 110: uint16(29040), + 111: uint16(29041), + 112: uint16(29044), + 113: uint16(29045), + 114: uint16(29046), + 115: uint16(29047), + 116: uint16(29049), + 117: uint16(29051), + 118: uint16(29052), + 119: uint16(29054), + 120: uint16(29055), + 121: uint16(29056), + 122: uint16(29057), + 123: uint16(29058), + 124: uint16(29059), + 125: uint16(29061), + 126: uint16(29062), + 127: uint16(29063), + 128: uint16(29064), + 129: uint16(29065), + 130: uint16(29067), + 131: uint16(29068), + 132: uint16(29069), + 133: uint16(29070), + 134: uint16(29072), + 135: uint16(29073), + 136: uint16(29074), + 137: uint16(29075), + 138: uint16(29077), + 139: uint16(29078), + 140: uint16(29079), + 141: uint16(29082), + 142: uint16(29083), + 143: uint16(29084), + 144: uint16(29085), + 145: uint16(29086), + 146: uint16(29089), + 147: uint16(29090), + 148: uint16(29091), + 149: uint16(29092), + 150: uint16(29093), + 151: uint16(29094), + 152: uint16(29095), + 153: uint16(29097), + 154: uint16(29098), + 155: uint16(29099), + 156: uint16(29101), + 157: uint16(29102), + 158: uint16(29103), + 159: uint16(29104), + 160: uint16(29105), + 161: uint16(29106), + 162: uint16(29108), + 163: uint16(29110), + 164: uint16(29111), + 165: uint16(29112), + 166: uint16(29114), + 167: uint16(29115), + 168: uint16(29116), + 169: uint16(29117), + 170: uint16(29118), + 171: uint16(29119), + 172: uint16(29120), + 173: uint16(29121), + 174: uint16(29122), + 175: uint16(29124), + 176: uint16(29125), + 177: uint16(29126), + 178: uint16(29127), + 179: uint16(29128), + 180: uint16(29129), + 181: uint16(29130), + 182: uint16(29131), + 183: uint16(29132), + 184: uint16(29133), + 185: uint16(29135), + 186: uint16(29136), + 187: uint16(29137), + 188: uint16(29138), + 189: uint16(29139), + }, + 31: { + 0: uint16(29142), + 1: uint16(29143), + 2: uint16(29144), + 3: uint16(29145), + 4: uint16(29146), + 5: uint16(29147), + 6: uint16(29148), + 7: uint16(29149), + 8: uint16(29150), + 9: uint16(29151), + 10: uint16(29153), + 11: uint16(29154), + 12: uint16(29155), + 13: uint16(29156), + 14: uint16(29158), + 15: uint16(29160), + 16: uint16(29161), + 17: uint16(29162), + 18: uint16(29163), + 19: uint16(29164), + 20: uint16(29165), + 21: uint16(29167), + 22: uint16(29168), + 23: uint16(29169), + 24: uint16(29170), + 25: uint16(29171), + 26: uint16(29172), + 27: uint16(29173), + 28: uint16(29174), + 29: uint16(29175), + 30: uint16(29176), + 31: uint16(29178), + 32: uint16(29179), + 33: uint16(29180), + 34: uint16(29181), + 35: uint16(29182), + 36: uint16(29183), + 37: uint16(29184), + 38: uint16(29185), + 39: uint16(29186), + 40: uint16(29187), + 41: uint16(29188), + 42: uint16(29189), + 43: uint16(29191), + 44: uint16(29192), + 45: uint16(29193), + 46: uint16(29194), + 47: uint16(29195), + 48: uint16(29196), + 49: uint16(29197), + 50: uint16(29198), + 51: uint16(29199), + 52: uint16(29200), + 53: uint16(29201), + 54: uint16(29202), + 55: uint16(29203), + 56: uint16(29204), + 57: uint16(29205), + 58: uint16(29206), + 59: uint16(29207), + 60: uint16(29208), + 61: uint16(29209), + 62: uint16(29210), + 63: uint16(29211), + 64: uint16(29212), + 65: uint16(29214), + 66: uint16(29215), + 67: uint16(29216), + 68: uint16(29217), + 69: uint16(29218), + 70: uint16(29219), + 71: uint16(29220), + 72: uint16(29221), + 73: uint16(29222), + 74: uint16(29223), + 75: uint16(29225), + 76: uint16(29227), + 77: uint16(29229), + 78: uint16(29230), + 79: uint16(29231), + 80: uint16(29234), + 81: uint16(29235), + 82: uint16(29236), + 83: uint16(29242), + 84: uint16(29244), + 85: uint16(29246), + 86: uint16(29248), + 87: uint16(29249), + 88: uint16(29250), + 89: uint16(29251), + 90: uint16(29252), + 91: uint16(29253), + 92: uint16(29254), + 93: uint16(29257), + 94: uint16(29258), + 95: uint16(29259), + 96: uint16(29262), + 97: uint16(29263), + 98: uint16(29264), + 99: uint16(29265), + 100: uint16(29267), + 101: uint16(29268), + 102: uint16(29269), + 103: uint16(29271), + 104: uint16(29272), + 105: uint16(29274), + 106: uint16(29276), + 107: uint16(29278), + 108: uint16(29280), + 109: uint16(29283), + 110: uint16(29284), + 111: uint16(29285), + 112: uint16(29288), + 113: uint16(29290), + 114: uint16(29291), + 115: uint16(29292), + 116: uint16(29293), + 117: uint16(29296), + 118: uint16(29297), + 119: uint16(29299), + 120: uint16(29300), + 121: uint16(29302), + 122: uint16(29303), + 123: uint16(29304), + 124: uint16(29307), + 125: uint16(29308), + 126: uint16(29309), + 127: uint16(29314), + 128: uint16(29315), + 129: uint16(29317), + 130: uint16(29318), + 131: uint16(29319), + 132: uint16(29320), + 133: uint16(29321), + 134: uint16(29324), + 135: uint16(29326), + 136: uint16(29328), + 137: uint16(29329), + 138: uint16(29331), + 139: uint16(29332), + 140: uint16(29333), + 141: uint16(29334), + 142: uint16(29335), + 143: uint16(29336), + 144: uint16(29337), + 145: uint16(29338), + 146: uint16(29339), + 147: uint16(29340), + 148: uint16(29341), + 149: uint16(29342), + 150: uint16(29344), + 151: uint16(29345), + 152: uint16(29346), + 153: uint16(29347), + 154: uint16(29348), + 155: uint16(29349), + 156: uint16(29350), + 157: uint16(29351), + 158: uint16(29352), + 159: uint16(29353), + 160: uint16(29354), + 161: uint16(29355), + 162: uint16(29358), + 163: uint16(29361), + 164: uint16(29362), + 165: uint16(29363), + 166: uint16(29365), + 167: uint16(29370), + 168: uint16(29371), + 169: uint16(29372), + 170: uint16(29373), + 171: uint16(29374), + 172: uint16(29375), + 173: uint16(29376), + 174: uint16(29381), + 175: uint16(29382), + 176: uint16(29383), + 177: uint16(29385), + 178: uint16(29386), + 179: uint16(29387), + 180: uint16(29388), + 181: uint16(29391), + 182: uint16(29393), + 183: uint16(29395), + 184: uint16(29396), + 185: uint16(29397), + 186: uint16(29398), + 187: uint16(29400), + 188: uint16(29402), + 189: uint16(29403), + }, + 32: { + 0: uint16(58566), + 1: uint16(58567), + 2: uint16(58568), + 3: uint16(58569), + 4: uint16(58570), + 5: uint16(58571), + 6: uint16(58572), + 7: uint16(58573), + 8: uint16(58574), + 9: uint16(58575), + 10: uint16(58576), + 11: uint16(58577), + 12: uint16(58578), + 13: uint16(58579), + 14: uint16(58580), + 15: uint16(58581), + 16: uint16(58582), + 17: uint16(58583), + 18: uint16(58584), + 19: uint16(58585), + 20: uint16(58586), + 21: uint16(58587), + 22: uint16(58588), + 23: uint16(58589), + 24: uint16(58590), + 25: uint16(58591), + 26: uint16(58592), + 27: uint16(58593), + 28: uint16(58594), + 29: uint16(58595), + 30: uint16(58596), + 31: uint16(58597), + 32: uint16(58598), + 33: uint16(58599), + 34: uint16(58600), + 35: uint16(58601), + 36: uint16(58602), + 37: uint16(58603), + 38: uint16(58604), + 39: uint16(58605), + 40: uint16(58606), + 41: uint16(58607), + 42: uint16(58608), + 43: uint16(58609), + 44: uint16(58610), + 45: uint16(58611), + 46: uint16(58612), + 47: uint16(58613), + 48: uint16(58614), + 49: uint16(58615), + 50: uint16(58616), + 51: uint16(58617), + 52: uint16(58618), + 53: uint16(58619), + 54: uint16(58620), + 55: uint16(58621), + 56: uint16(58622), + 57: uint16(58623), + 58: uint16(58624), + 59: uint16(58625), + 60: uint16(58626), + 61: uint16(58627), + 62: uint16(58628), + 63: uint16(58629), + 64: uint16(58630), + 65: uint16(58631), + 66: uint16(58632), + 67: uint16(58633), + 68: uint16(58634), + 69: uint16(58635), + 70: uint16(58636), + 71: uint16(58637), + 72: uint16(58638), + 73: uint16(58639), + 74: uint16(58640), + 75: uint16(58641), + 76: uint16(58642), + 77: uint16(58643), + 78: uint16(58644), + 79: uint16(58645), + 80: uint16(58646), + 81: uint16(58647), + 82: uint16(58648), + 83: uint16(58649), + 84: uint16(58650), + 85: uint16(58651), + 86: uint16(58652), + 87: uint16(58653), + 88: uint16(58654), + 89: uint16(58655), + 90: uint16(58656), + 91: uint16(58657), + 92: uint16(58658), + 93: uint16(58659), + 94: uint16(58660), + 95: uint16(58661), + 96: uint16(12288), + 97: uint16(12289), + 98: uint16(12290), + 99: uint16(183), + 100: uint16(713), + 101: uint16(711), + 102: uint16(168), + 103: uint16(12291), + 104: uint16(12293), + 105: uint16(8212), + 106: uint16(65374), + 107: uint16(8214), + 108: uint16(8230), + 109: uint16(8216), + 110: uint16(8217), + 111: uint16(8220), + 112: uint16(8221), + 113: uint16(12308), + 114: uint16(12309), + 115: uint16(12296), + 116: uint16(12297), + 117: uint16(12298), + 118: uint16(12299), + 119: uint16(12300), + 120: uint16(12301), + 121: uint16(12302), + 122: uint16(12303), + 123: uint16(12310), + 124: uint16(12311), + 125: uint16(12304), + 126: uint16(12305), + 127: uint16(177), + 128: uint16(215), + 129: uint16(247), + 130: uint16(8758), + 131: uint16(8743), + 132: uint16(8744), + 133: uint16(8721), + 134: uint16(8719), + 135: uint16(8746), + 136: uint16(8745), + 137: uint16(8712), + 138: uint16(8759), + 139: uint16(8730), + 140: uint16(8869), + 141: uint16(8741), + 142: uint16(8736), + 143: uint16(8978), + 144: uint16(8857), + 145: uint16(8747), + 146: uint16(8750), + 147: uint16(8801), + 148: uint16(8780), + 149: uint16(8776), + 150: uint16(8765), + 151: uint16(8733), + 152: uint16(8800), + 153: uint16(8814), + 154: uint16(8815), + 155: uint16(8804), + 156: uint16(8805), + 157: uint16(8734), + 158: uint16(8757), + 159: uint16(8756), + 160: uint16(9794), + 161: uint16(9792), + 162: uint16(176), + 163: uint16(8242), + 164: uint16(8243), + 165: uint16(8451), + 166: uint16(65284), + 167: uint16(164), + 168: uint16(65504), + 169: uint16(65505), + 170: uint16(8240), + 171: uint16(167), + 172: uint16(8470), + 173: uint16(9734), + 174: uint16(9733), + 175: uint16(9675), + 176: uint16(9679), + 177: uint16(9678), + 178: uint16(9671), + 179: uint16(9670), + 180: uint16(9633), + 181: uint16(9632), + 182: uint16(9651), + 183: uint16(9650), + 184: uint16(8251), + 185: uint16(8594), + 186: uint16(8592), + 187: uint16(8593), + 188: uint16(8595), + 189: uint16(12307), + }, + 33: { + 0: uint16(58662), + 1: uint16(58663), + 2: uint16(58664), + 3: uint16(58665), + 4: uint16(58666), + 5: uint16(58667), + 6: uint16(58668), + 7: uint16(58669), + 8: uint16(58670), + 9: uint16(58671), + 10: uint16(58672), + 11: uint16(58673), + 12: uint16(58674), + 13: uint16(58675), + 14: uint16(58676), + 15: uint16(58677), + 16: uint16(58678), + 17: uint16(58679), + 18: uint16(58680), + 19: uint16(58681), + 20: uint16(58682), + 21: uint16(58683), + 22: uint16(58684), + 23: uint16(58685), + 24: uint16(58686), + 25: uint16(58687), + 26: uint16(58688), + 27: uint16(58689), + 28: uint16(58690), + 29: uint16(58691), + 30: uint16(58692), + 31: uint16(58693), + 32: uint16(58694), + 33: uint16(58695), + 34: uint16(58696), + 35: uint16(58697), + 36: uint16(58698), + 37: uint16(58699), + 38: uint16(58700), + 39: uint16(58701), + 40: uint16(58702), + 41: uint16(58703), + 42: uint16(58704), + 43: uint16(58705), + 44: uint16(58706), + 45: uint16(58707), + 46: uint16(58708), + 47: uint16(58709), + 48: uint16(58710), + 49: uint16(58711), + 50: uint16(58712), + 51: uint16(58713), + 52: uint16(58714), + 53: uint16(58715), + 54: uint16(58716), + 55: uint16(58717), + 56: uint16(58718), + 57: uint16(58719), + 58: uint16(58720), + 59: uint16(58721), + 60: uint16(58722), + 61: uint16(58723), + 62: uint16(58724), + 63: uint16(58725), + 64: uint16(58726), + 65: uint16(58727), + 66: uint16(58728), + 67: uint16(58729), + 68: uint16(58730), + 69: uint16(58731), + 70: uint16(58732), + 71: uint16(58733), + 72: uint16(58734), + 73: uint16(58735), + 74: uint16(58736), + 75: uint16(58737), + 76: uint16(58738), + 77: uint16(58739), + 78: uint16(58740), + 79: uint16(58741), + 80: uint16(58742), + 81: uint16(58743), + 82: uint16(58744), + 83: uint16(58745), + 84: uint16(58746), + 85: uint16(58747), + 86: uint16(58748), + 87: uint16(58749), + 88: uint16(58750), + 89: uint16(58751), + 90: uint16(58752), + 91: uint16(58753), + 92: uint16(58754), + 93: uint16(58755), + 94: uint16(58756), + 95: uint16(58757), + 96: uint16(8560), + 97: uint16(8561), + 98: uint16(8562), + 99: uint16(8563), + 100: uint16(8564), + 101: uint16(8565), + 102: uint16(8566), + 103: uint16(8567), + 104: uint16(8568), + 105: uint16(8569), + 106: uint16(59238), + 107: uint16(59239), + 108: uint16(59240), + 109: uint16(59241), + 110: uint16(59242), + 111: uint16(59243), + 112: uint16(9352), + 113: uint16(9353), + 114: uint16(9354), + 115: uint16(9355), + 116: uint16(9356), + 117: uint16(9357), + 118: uint16(9358), + 119: uint16(9359), + 120: uint16(9360), + 121: uint16(9361), + 122: uint16(9362), + 123: uint16(9363), + 124: uint16(9364), + 125: uint16(9365), + 126: uint16(9366), + 127: uint16(9367), + 128: uint16(9368), + 129: uint16(9369), + 130: uint16(9370), + 131: uint16(9371), + 132: uint16(9332), + 133: uint16(9333), + 134: uint16(9334), + 135: uint16(9335), + 136: uint16(9336), + 137: uint16(9337), + 138: uint16(9338), + 139: uint16(9339), + 140: uint16(9340), + 141: uint16(9341), + 142: uint16(9342), + 143: uint16(9343), + 144: uint16(9344), + 145: uint16(9345), + 146: uint16(9346), + 147: uint16(9347), + 148: uint16(9348), + 149: uint16(9349), + 150: uint16(9350), + 151: uint16(9351), + 152: uint16(9312), + 153: uint16(9313), + 154: uint16(9314), + 155: uint16(9315), + 156: uint16(9316), + 157: uint16(9317), + 158: uint16(9318), + 159: uint16(9319), + 160: uint16(9320), + 161: uint16(9321), + 162: uint16(8364), + 163: uint16(59245), + 164: uint16(12832), + 165: uint16(12833), + 166: uint16(12834), + 167: uint16(12835), + 168: uint16(12836), + 169: uint16(12837), + 170: uint16(12838), + 171: uint16(12839), + 172: uint16(12840), + 173: uint16(12841), + 174: uint16(59246), + 175: uint16(59247), + 176: uint16(8544), + 177: uint16(8545), + 178: uint16(8546), + 179: uint16(8547), + 180: uint16(8548), + 181: uint16(8549), + 182: uint16(8550), + 183: uint16(8551), + 184: uint16(8552), + 185: uint16(8553), + 186: uint16(8554), + 187: uint16(8555), + 188: uint16(59248), + 189: uint16(59249), + }, + 34: { + 0: uint16(58758), + 1: uint16(58759), + 2: uint16(58760), + 3: uint16(58761), + 4: uint16(58762), + 5: uint16(58763), + 6: uint16(58764), + 7: uint16(58765), + 8: uint16(58766), + 9: uint16(58767), + 10: uint16(58768), + 11: uint16(58769), + 12: uint16(58770), + 13: uint16(58771), + 14: uint16(58772), + 15: uint16(58773), + 16: uint16(58774), + 17: uint16(58775), + 18: uint16(58776), + 19: uint16(58777), + 20: uint16(58778), + 21: uint16(58779), + 22: uint16(58780), + 23: uint16(58781), + 24: uint16(58782), + 25: uint16(58783), + 26: uint16(58784), + 27: uint16(58785), + 28: uint16(58786), + 29: uint16(58787), + 30: uint16(58788), + 31: uint16(58789), + 32: uint16(58790), + 33: uint16(58791), + 34: uint16(58792), + 35: uint16(58793), + 36: uint16(58794), + 37: uint16(58795), + 38: uint16(58796), + 39: uint16(58797), + 40: uint16(58798), + 41: uint16(58799), + 42: uint16(58800), + 43: uint16(58801), + 44: uint16(58802), + 45: uint16(58803), + 46: uint16(58804), + 47: uint16(58805), + 48: uint16(58806), + 49: uint16(58807), + 50: uint16(58808), + 51: uint16(58809), + 52: uint16(58810), + 53: uint16(58811), + 54: uint16(58812), + 55: uint16(58813), + 56: uint16(58814), + 57: uint16(58815), + 58: uint16(58816), + 59: uint16(58817), + 60: uint16(58818), + 61: uint16(58819), + 62: uint16(58820), + 63: uint16(58821), + 64: uint16(58822), + 65: uint16(58823), + 66: uint16(58824), + 67: uint16(58825), + 68: uint16(58826), + 69: uint16(58827), + 70: uint16(58828), + 71: uint16(58829), + 72: uint16(58830), + 73: uint16(58831), + 74: uint16(58832), + 75: uint16(58833), + 76: uint16(58834), + 77: uint16(58835), + 78: uint16(58836), + 79: uint16(58837), + 80: uint16(58838), + 81: uint16(58839), + 82: uint16(58840), + 83: uint16(58841), + 84: uint16(58842), + 85: uint16(58843), + 86: uint16(58844), + 87: uint16(58845), + 88: uint16(58846), + 89: uint16(58847), + 90: uint16(58848), + 91: uint16(58849), + 92: uint16(58850), + 93: uint16(58851), + 94: uint16(58852), + 95: uint16(58853), + 96: uint16(65281), + 97: uint16(65282), + 98: uint16(65283), + 99: uint16(65509), + 100: uint16(65285), + 101: uint16(65286), + 102: uint16(65287), + 103: uint16(65288), + 104: uint16(65289), + 105: uint16(65290), + 106: uint16(65291), + 107: uint16(65292), + 108: uint16(65293), + 109: uint16(65294), + 110: uint16(65295), + 111: uint16(65296), + 112: uint16(65297), + 113: uint16(65298), + 114: uint16(65299), + 115: uint16(65300), + 116: uint16(65301), + 117: uint16(65302), + 118: uint16(65303), + 119: uint16(65304), + 120: uint16(65305), + 121: uint16(65306), + 122: uint16(65307), + 123: uint16(65308), + 124: uint16(65309), + 125: uint16(65310), + 126: uint16(65311), + 127: uint16(65312), + 128: uint16(65313), + 129: uint16(65314), + 130: uint16(65315), + 131: uint16(65316), + 132: uint16(65317), + 133: uint16(65318), + 134: uint16(65319), + 135: uint16(65320), + 136: uint16(65321), + 137: uint16(65322), + 138: uint16(65323), + 139: uint16(65324), + 140: uint16(65325), + 141: uint16(65326), + 142: uint16(65327), + 143: uint16(65328), + 144: uint16(65329), + 145: uint16(65330), + 146: uint16(65331), + 147: uint16(65332), + 148: uint16(65333), + 149: uint16(65334), + 150: uint16(65335), + 151: uint16(65336), + 152: uint16(65337), + 153: uint16(65338), + 154: uint16(65339), + 155: uint16(65340), + 156: uint16(65341), + 157: uint16(65342), + 158: uint16(65343), + 159: uint16(65344), + 160: uint16(65345), + 161: uint16(65346), + 162: uint16(65347), + 163: uint16(65348), + 164: uint16(65349), + 165: uint16(65350), + 166: uint16(65351), + 167: uint16(65352), + 168: uint16(65353), + 169: uint16(65354), + 170: uint16(65355), + 171: uint16(65356), + 172: uint16(65357), + 173: uint16(65358), + 174: uint16(65359), + 175: uint16(65360), + 176: uint16(65361), + 177: uint16(65362), + 178: uint16(65363), + 179: uint16(65364), + 180: uint16(65365), + 181: uint16(65366), + 182: uint16(65367), + 183: uint16(65368), + 184: uint16(65369), + 185: uint16(65370), + 186: uint16(65371), + 187: uint16(65372), + 188: uint16(65373), + 189: uint16(65507), + }, + 35: { + 0: uint16(58854), + 1: uint16(58855), + 2: uint16(58856), + 3: uint16(58857), + 4: uint16(58858), + 5: uint16(58859), + 6: uint16(58860), + 7: uint16(58861), + 8: uint16(58862), + 9: uint16(58863), + 10: uint16(58864), + 11: uint16(58865), + 12: uint16(58866), + 13: uint16(58867), + 14: uint16(58868), + 15: uint16(58869), + 16: uint16(58870), + 17: uint16(58871), + 18: uint16(58872), + 19: uint16(58873), + 20: uint16(58874), + 21: uint16(58875), + 22: uint16(58876), + 23: uint16(58877), + 24: uint16(58878), + 25: uint16(58879), + 26: uint16(58880), + 27: uint16(58881), + 28: uint16(58882), + 29: uint16(58883), + 30: uint16(58884), + 31: uint16(58885), + 32: uint16(58886), + 33: uint16(58887), + 34: uint16(58888), + 35: uint16(58889), + 36: uint16(58890), + 37: uint16(58891), + 38: uint16(58892), + 39: uint16(58893), + 40: uint16(58894), + 41: uint16(58895), + 42: uint16(58896), + 43: uint16(58897), + 44: uint16(58898), + 45: uint16(58899), + 46: uint16(58900), + 47: uint16(58901), + 48: uint16(58902), + 49: uint16(58903), + 50: uint16(58904), + 51: uint16(58905), + 52: uint16(58906), + 53: uint16(58907), + 54: uint16(58908), + 55: uint16(58909), + 56: uint16(58910), + 57: uint16(58911), + 58: uint16(58912), + 59: uint16(58913), + 60: uint16(58914), + 61: uint16(58915), + 62: uint16(58916), + 63: uint16(58917), + 64: uint16(58918), + 65: uint16(58919), + 66: uint16(58920), + 67: uint16(58921), + 68: uint16(58922), + 69: uint16(58923), + 70: uint16(58924), + 71: uint16(58925), + 72: uint16(58926), + 73: uint16(58927), + 74: uint16(58928), + 75: uint16(58929), + 76: uint16(58930), + 77: uint16(58931), + 78: uint16(58932), + 79: uint16(58933), + 80: uint16(58934), + 81: uint16(58935), + 82: uint16(58936), + 83: uint16(58937), + 84: uint16(58938), + 85: uint16(58939), + 86: uint16(58940), + 87: uint16(58941), + 88: uint16(58942), + 89: uint16(58943), + 90: uint16(58944), + 91: uint16(58945), + 92: uint16(58946), + 93: uint16(58947), + 94: uint16(58948), + 95: uint16(58949), + 96: uint16(12353), + 97: uint16(12354), + 98: uint16(12355), + 99: uint16(12356), + 100: uint16(12357), + 101: uint16(12358), + 102: uint16(12359), + 103: uint16(12360), + 104: uint16(12361), + 105: uint16(12362), + 106: uint16(12363), + 107: uint16(12364), + 108: uint16(12365), + 109: uint16(12366), + 110: uint16(12367), + 111: uint16(12368), + 112: uint16(12369), + 113: uint16(12370), + 114: uint16(12371), + 115: uint16(12372), + 116: uint16(12373), + 117: uint16(12374), + 118: uint16(12375), + 119: uint16(12376), + 120: uint16(12377), + 121: uint16(12378), + 122: uint16(12379), + 123: uint16(12380), + 124: uint16(12381), + 125: uint16(12382), + 126: uint16(12383), + 127: uint16(12384), + 128: uint16(12385), + 129: uint16(12386), + 130: uint16(12387), + 131: uint16(12388), + 132: uint16(12389), + 133: uint16(12390), + 134: uint16(12391), + 135: uint16(12392), + 136: uint16(12393), + 137: uint16(12394), + 138: uint16(12395), + 139: uint16(12396), + 140: uint16(12397), + 141: uint16(12398), + 142: uint16(12399), + 143: uint16(12400), + 144: uint16(12401), + 145: uint16(12402), + 146: uint16(12403), + 147: uint16(12404), + 148: uint16(12405), + 149: uint16(12406), + 150: uint16(12407), + 151: uint16(12408), + 152: uint16(12409), + 153: uint16(12410), + 154: uint16(12411), + 155: uint16(12412), + 156: uint16(12413), + 157: uint16(12414), + 158: uint16(12415), + 159: uint16(12416), + 160: uint16(12417), + 161: uint16(12418), + 162: uint16(12419), + 163: uint16(12420), + 164: uint16(12421), + 165: uint16(12422), + 166: uint16(12423), + 167: uint16(12424), + 168: uint16(12425), + 169: uint16(12426), + 170: uint16(12427), + 171: uint16(12428), + 172: uint16(12429), + 173: uint16(12430), + 174: uint16(12431), + 175: uint16(12432), + 176: uint16(12433), + 177: uint16(12434), + 178: uint16(12435), + 179: uint16(59250), + 180: uint16(59251), + 181: uint16(59252), + 182: uint16(59253), + 183: uint16(59254), + 184: uint16(59255), + 185: uint16(59256), + 186: uint16(59257), + 187: uint16(59258), + 188: uint16(59259), + 189: uint16(59260), + }, + 36: { + 0: uint16(58950), + 1: uint16(58951), + 2: uint16(58952), + 3: uint16(58953), + 4: uint16(58954), + 5: uint16(58955), + 6: uint16(58956), + 7: uint16(58957), + 8: uint16(58958), + 9: uint16(58959), + 10: uint16(58960), + 11: uint16(58961), + 12: uint16(58962), + 13: uint16(58963), + 14: uint16(58964), + 15: uint16(58965), + 16: uint16(58966), + 17: uint16(58967), + 18: uint16(58968), + 19: uint16(58969), + 20: uint16(58970), + 21: uint16(58971), + 22: uint16(58972), + 23: uint16(58973), + 24: uint16(58974), + 25: uint16(58975), + 26: uint16(58976), + 27: uint16(58977), + 28: uint16(58978), + 29: uint16(58979), + 30: uint16(58980), + 31: uint16(58981), + 32: uint16(58982), + 33: uint16(58983), + 34: uint16(58984), + 35: uint16(58985), + 36: uint16(58986), + 37: uint16(58987), + 38: uint16(58988), + 39: uint16(58989), + 40: uint16(58990), + 41: uint16(58991), + 42: uint16(58992), + 43: uint16(58993), + 44: uint16(58994), + 45: uint16(58995), + 46: uint16(58996), + 47: uint16(58997), + 48: uint16(58998), + 49: uint16(58999), + 50: uint16(59000), + 51: uint16(59001), + 52: uint16(59002), + 53: uint16(59003), + 54: uint16(59004), + 55: uint16(59005), + 56: uint16(59006), + 57: uint16(59007), + 58: uint16(59008), + 59: uint16(59009), + 60: uint16(59010), + 61: uint16(59011), + 62: uint16(59012), + 63: uint16(59013), + 64: uint16(59014), + 65: uint16(59015), + 66: uint16(59016), + 67: uint16(59017), + 68: uint16(59018), + 69: uint16(59019), + 70: uint16(59020), + 71: uint16(59021), + 72: uint16(59022), + 73: uint16(59023), + 74: uint16(59024), + 75: uint16(59025), + 76: uint16(59026), + 77: uint16(59027), + 78: uint16(59028), + 79: uint16(59029), + 80: uint16(59030), + 81: uint16(59031), + 82: uint16(59032), + 83: uint16(59033), + 84: uint16(59034), + 85: uint16(59035), + 86: uint16(59036), + 87: uint16(59037), + 88: uint16(59038), + 89: uint16(59039), + 90: uint16(59040), + 91: uint16(59041), + 92: uint16(59042), + 93: uint16(59043), + 94: uint16(59044), + 95: uint16(59045), + 96: uint16(12449), + 97: uint16(12450), + 98: uint16(12451), + 99: uint16(12452), + 100: uint16(12453), + 101: uint16(12454), + 102: uint16(12455), + 103: uint16(12456), + 104: uint16(12457), + 105: uint16(12458), + 106: uint16(12459), + 107: uint16(12460), + 108: uint16(12461), + 109: uint16(12462), + 110: uint16(12463), + 111: uint16(12464), + 112: uint16(12465), + 113: uint16(12466), + 114: uint16(12467), + 115: uint16(12468), + 116: uint16(12469), + 117: uint16(12470), + 118: uint16(12471), + 119: uint16(12472), + 120: uint16(12473), + 121: uint16(12474), + 122: uint16(12475), + 123: uint16(12476), + 124: uint16(12477), + 125: uint16(12478), + 126: uint16(12479), + 127: uint16(12480), + 128: uint16(12481), + 129: uint16(12482), + 130: uint16(12483), + 131: uint16(12484), + 132: uint16(12485), + 133: uint16(12486), + 134: uint16(12487), + 135: uint16(12488), + 136: uint16(12489), + 137: uint16(12490), + 138: uint16(12491), + 139: uint16(12492), + 140: uint16(12493), + 141: uint16(12494), + 142: uint16(12495), + 143: uint16(12496), + 144: uint16(12497), + 145: uint16(12498), + 146: uint16(12499), + 147: uint16(12500), + 148: uint16(12501), + 149: uint16(12502), + 150: uint16(12503), + 151: uint16(12504), + 152: uint16(12505), + 153: uint16(12506), + 154: uint16(12507), + 155: uint16(12508), + 156: uint16(12509), + 157: uint16(12510), + 158: uint16(12511), + 159: uint16(12512), + 160: uint16(12513), + 161: uint16(12514), + 162: uint16(12515), + 163: uint16(12516), + 164: uint16(12517), + 165: uint16(12518), + 166: uint16(12519), + 167: uint16(12520), + 168: uint16(12521), + 169: uint16(12522), + 170: uint16(12523), + 171: uint16(12524), + 172: uint16(12525), + 173: uint16(12526), + 174: uint16(12527), + 175: uint16(12528), + 176: uint16(12529), + 177: uint16(12530), + 178: uint16(12531), + 179: uint16(12532), + 180: uint16(12533), + 181: uint16(12534), + 182: uint16(59261), + 183: uint16(59262), + 184: uint16(59263), + 185: uint16(59264), + 186: uint16(59265), + 187: uint16(59266), + 188: uint16(59267), + 189: uint16(59268), + }, + 37: { + 0: uint16(59046), + 1: uint16(59047), + 2: uint16(59048), + 3: uint16(59049), + 4: uint16(59050), + 5: uint16(59051), + 6: uint16(59052), + 7: uint16(59053), + 8: uint16(59054), + 9: uint16(59055), + 10: uint16(59056), + 11: uint16(59057), + 12: uint16(59058), + 13: uint16(59059), + 14: uint16(59060), + 15: uint16(59061), + 16: uint16(59062), + 17: uint16(59063), + 18: uint16(59064), + 19: uint16(59065), + 20: uint16(59066), + 21: uint16(59067), + 22: uint16(59068), + 23: uint16(59069), + 24: uint16(59070), + 25: uint16(59071), + 26: uint16(59072), + 27: uint16(59073), + 28: uint16(59074), + 29: uint16(59075), + 30: uint16(59076), + 31: uint16(59077), + 32: uint16(59078), + 33: uint16(59079), + 34: uint16(59080), + 35: uint16(59081), + 36: uint16(59082), + 37: uint16(59083), + 38: uint16(59084), + 39: uint16(59085), + 40: uint16(59086), + 41: uint16(59087), + 42: uint16(59088), + 43: uint16(59089), + 44: uint16(59090), + 45: uint16(59091), + 46: uint16(59092), + 47: uint16(59093), + 48: uint16(59094), + 49: uint16(59095), + 50: uint16(59096), + 51: uint16(59097), + 52: uint16(59098), + 53: uint16(59099), + 54: uint16(59100), + 55: uint16(59101), + 56: uint16(59102), + 57: uint16(59103), + 58: uint16(59104), + 59: uint16(59105), + 60: uint16(59106), + 61: uint16(59107), + 62: uint16(59108), + 63: uint16(59109), + 64: uint16(59110), + 65: uint16(59111), + 66: uint16(59112), + 67: uint16(59113), + 68: uint16(59114), + 69: uint16(59115), + 70: uint16(59116), + 71: uint16(59117), + 72: uint16(59118), + 73: uint16(59119), + 74: uint16(59120), + 75: uint16(59121), + 76: uint16(59122), + 77: uint16(59123), + 78: uint16(59124), + 79: uint16(59125), + 80: uint16(59126), + 81: uint16(59127), + 82: uint16(59128), + 83: uint16(59129), + 84: uint16(59130), + 85: uint16(59131), + 86: uint16(59132), + 87: uint16(59133), + 88: uint16(59134), + 89: uint16(59135), + 90: uint16(59136), + 91: uint16(59137), + 92: uint16(59138), + 93: uint16(59139), + 94: uint16(59140), + 95: uint16(59141), + 96: uint16(913), + 97: uint16(914), + 98: uint16(915), + 99: uint16(916), + 100: uint16(917), + 101: uint16(918), + 102: uint16(919), + 103: uint16(920), + 104: uint16(921), + 105: uint16(922), + 106: uint16(923), + 107: uint16(924), + 108: uint16(925), + 109: uint16(926), + 110: uint16(927), + 111: uint16(928), + 112: uint16(929), + 113: uint16(931), + 114: uint16(932), + 115: uint16(933), + 116: uint16(934), + 117: uint16(935), + 118: uint16(936), + 119: uint16(937), + 120: uint16(59269), + 121: uint16(59270), + 122: uint16(59271), + 123: uint16(59272), + 124: uint16(59273), + 125: uint16(59274), + 126: uint16(59275), + 127: uint16(59276), + 128: uint16(945), + 129: uint16(946), + 130: uint16(947), + 131: uint16(948), + 132: uint16(949), + 133: uint16(950), + 134: uint16(951), + 135: uint16(952), + 136: uint16(953), + 137: uint16(954), + 138: uint16(955), + 139: uint16(956), + 140: uint16(957), + 141: uint16(958), + 142: uint16(959), + 143: uint16(960), + 144: uint16(961), + 145: uint16(963), + 146: uint16(964), + 147: uint16(965), + 148: uint16(966), + 149: uint16(967), + 150: uint16(968), + 151: uint16(969), + 152: uint16(59277), + 153: uint16(59278), + 154: uint16(59279), + 155: uint16(59280), + 156: uint16(59281), + 157: uint16(59282), + 158: uint16(59283), + 159: uint16(65077), + 160: uint16(65078), + 161: uint16(65081), + 162: uint16(65082), + 163: uint16(65087), + 164: uint16(65088), + 165: uint16(65085), + 166: uint16(65086), + 167: uint16(65089), + 168: uint16(65090), + 169: uint16(65091), + 170: uint16(65092), + 171: uint16(59284), + 172: uint16(59285), + 173: uint16(65083), + 174: uint16(65084), + 175: uint16(65079), + 176: uint16(65080), + 177: uint16(65073), + 178: uint16(59286), + 179: uint16(65075), + 180: uint16(65076), + 181: uint16(59287), + 182: uint16(59288), + 183: uint16(59289), + 184: uint16(59290), + 185: uint16(59291), + 186: uint16(59292), + 187: uint16(59293), + 188: uint16(59294), + 189: uint16(59295), + }, + 38: { + 0: uint16(59142), + 1: uint16(59143), + 2: uint16(59144), + 3: uint16(59145), + 4: uint16(59146), + 5: uint16(59147), + 6: uint16(59148), + 7: uint16(59149), + 8: uint16(59150), + 9: uint16(59151), + 10: uint16(59152), + 11: uint16(59153), + 12: uint16(59154), + 13: uint16(59155), + 14: uint16(59156), + 15: uint16(59157), + 16: uint16(59158), + 17: uint16(59159), + 18: uint16(59160), + 19: uint16(59161), + 20: uint16(59162), + 21: uint16(59163), + 22: uint16(59164), + 23: uint16(59165), + 24: uint16(59166), + 25: uint16(59167), + 26: uint16(59168), + 27: uint16(59169), + 28: uint16(59170), + 29: uint16(59171), + 30: uint16(59172), + 31: uint16(59173), + 32: uint16(59174), + 33: uint16(59175), + 34: uint16(59176), + 35: uint16(59177), + 36: uint16(59178), + 37: uint16(59179), + 38: uint16(59180), + 39: uint16(59181), + 40: uint16(59182), + 41: uint16(59183), + 42: uint16(59184), + 43: uint16(59185), + 44: uint16(59186), + 45: uint16(59187), + 46: uint16(59188), + 47: uint16(59189), + 48: uint16(59190), + 49: uint16(59191), + 50: uint16(59192), + 51: uint16(59193), + 52: uint16(59194), + 53: uint16(59195), + 54: uint16(59196), + 55: uint16(59197), + 56: uint16(59198), + 57: uint16(59199), + 58: uint16(59200), + 59: uint16(59201), + 60: uint16(59202), + 61: uint16(59203), + 62: uint16(59204), + 63: uint16(59205), + 64: uint16(59206), + 65: uint16(59207), + 66: uint16(59208), + 67: uint16(59209), + 68: uint16(59210), + 69: uint16(59211), + 70: uint16(59212), + 71: uint16(59213), + 72: uint16(59214), + 73: uint16(59215), + 74: uint16(59216), + 75: uint16(59217), + 76: uint16(59218), + 77: uint16(59219), + 78: uint16(59220), + 79: uint16(59221), + 80: uint16(59222), + 81: uint16(59223), + 82: uint16(59224), + 83: uint16(59225), + 84: uint16(59226), + 85: uint16(59227), + 86: uint16(59228), + 87: uint16(59229), + 88: uint16(59230), + 89: uint16(59231), + 90: uint16(59232), + 91: uint16(59233), + 92: uint16(59234), + 93: uint16(59235), + 94: uint16(59236), + 95: uint16(59237), + 96: uint16(1040), + 97: uint16(1041), + 98: uint16(1042), + 99: uint16(1043), + 100: uint16(1044), + 101: uint16(1045), + 102: uint16(1025), + 103: uint16(1046), + 104: uint16(1047), + 105: uint16(1048), + 106: uint16(1049), + 107: uint16(1050), + 108: uint16(1051), + 109: uint16(1052), + 110: uint16(1053), + 111: uint16(1054), + 112: uint16(1055), + 113: uint16(1056), + 114: uint16(1057), + 115: uint16(1058), + 116: uint16(1059), + 117: uint16(1060), + 118: uint16(1061), + 119: uint16(1062), + 120: uint16(1063), + 121: uint16(1064), + 122: uint16(1065), + 123: uint16(1066), + 124: uint16(1067), + 125: uint16(1068), + 126: uint16(1069), + 127: uint16(1070), + 128: uint16(1071), + 129: uint16(59296), + 130: uint16(59297), + 131: uint16(59298), + 132: uint16(59299), + 133: uint16(59300), + 134: uint16(59301), + 135: uint16(59302), + 136: uint16(59303), + 137: uint16(59304), + 138: uint16(59305), + 139: uint16(59306), + 140: uint16(59307), + 141: uint16(59308), + 142: uint16(59309), + 143: uint16(59310), + 144: uint16(1072), + 145: uint16(1073), + 146: uint16(1074), + 147: uint16(1075), + 148: uint16(1076), + 149: uint16(1077), + 150: uint16(1105), + 151: uint16(1078), + 152: uint16(1079), + 153: uint16(1080), + 154: uint16(1081), + 155: uint16(1082), + 156: uint16(1083), + 157: uint16(1084), + 158: uint16(1085), + 159: uint16(1086), + 160: uint16(1087), + 161: uint16(1088), + 162: uint16(1089), + 163: uint16(1090), + 164: uint16(1091), + 165: uint16(1092), + 166: uint16(1093), + 167: uint16(1094), + 168: uint16(1095), + 169: uint16(1096), + 170: uint16(1097), + 171: uint16(1098), + 172: uint16(1099), + 173: uint16(1100), + 174: uint16(1101), + 175: uint16(1102), + 176: uint16(1103), + 177: uint16(59311), + 178: uint16(59312), + 179: uint16(59313), + 180: uint16(59314), + 181: uint16(59315), + 182: uint16(59316), + 183: uint16(59317), + 184: uint16(59318), + 185: uint16(59319), + 186: uint16(59320), + 187: uint16(59321), + 188: uint16(59322), + 189: uint16(59323), + }, + 39: { + 0: uint16(714), + 1: uint16(715), + 2: uint16(729), + 3: uint16(8211), + 4: uint16(8213), + 5: uint16(8229), + 6: uint16(8245), + 7: uint16(8453), + 8: uint16(8457), + 9: uint16(8598), + 10: uint16(8599), + 11: uint16(8600), + 12: uint16(8601), + 13: uint16(8725), + 14: uint16(8735), + 15: uint16(8739), + 16: uint16(8786), + 17: uint16(8806), + 18: uint16(8807), + 19: uint16(8895), + 20: uint16(9552), + 21: uint16(9553), + 22: uint16(9554), + 23: uint16(9555), + 24: uint16(9556), + 25: uint16(9557), + 26: uint16(9558), + 27: uint16(9559), + 28: uint16(9560), + 29: uint16(9561), + 30: uint16(9562), + 31: uint16(9563), + 32: uint16(9564), + 33: uint16(9565), + 34: uint16(9566), + 35: uint16(9567), + 36: uint16(9568), + 37: uint16(9569), + 38: uint16(9570), + 39: uint16(9571), + 40: uint16(9572), + 41: uint16(9573), + 42: uint16(9574), + 43: uint16(9575), + 44: uint16(9576), + 45: uint16(9577), + 46: uint16(9578), + 47: uint16(9579), + 48: uint16(9580), + 49: uint16(9581), + 50: uint16(9582), + 51: uint16(9583), + 52: uint16(9584), + 53: uint16(9585), + 54: uint16(9586), + 55: uint16(9587), + 56: uint16(9601), + 57: uint16(9602), + 58: uint16(9603), + 59: uint16(9604), + 60: uint16(9605), + 61: uint16(9606), + 62: uint16(9607), + 63: uint16(9608), + 64: uint16(9609), + 65: uint16(9610), + 66: uint16(9611), + 67: uint16(9612), + 68: uint16(9613), + 69: uint16(9614), + 70: uint16(9615), + 71: uint16(9619), + 72: uint16(9620), + 73: uint16(9621), + 74: uint16(9660), + 75: uint16(9661), + 76: uint16(9698), + 77: uint16(9699), + 78: uint16(9700), + 79: uint16(9701), + 80: uint16(9737), + 81: uint16(8853), + 82: uint16(12306), + 83: uint16(12317), + 84: uint16(12318), + 85: uint16(59324), + 86: uint16(59325), + 87: uint16(59326), + 88: uint16(59327), + 89: uint16(59328), + 90: uint16(59329), + 91: uint16(59330), + 92: uint16(59331), + 93: uint16(59332), + 94: uint16(59333), + 95: uint16(59334), + 96: uint16(257), + 97: uint16(225), + 98: uint16(462), + 99: uint16(224), + 100: uint16(275), + 101: uint16(233), + 102: uint16(283), + 103: uint16(232), + 104: uint16(299), + 105: uint16(237), + 106: uint16(464), + 107: uint16(236), + 108: uint16(333), + 109: uint16(243), + 110: uint16(466), + 111: uint16(242), + 112: uint16(363), + 113: uint16(250), + 114: uint16(468), + 115: uint16(249), + 116: uint16(470), + 117: uint16(472), + 118: uint16(474), + 119: uint16(476), + 120: uint16(252), + 121: uint16(234), + 122: uint16(593), + 123: uint16(59335), + 124: uint16(324), + 125: uint16(328), + 126: uint16(505), + 127: uint16(609), + 128: uint16(59337), + 129: uint16(59338), + 130: uint16(59339), + 131: uint16(59340), + 132: uint16(12549), + 133: uint16(12550), + 134: uint16(12551), + 135: uint16(12552), + 136: uint16(12553), + 137: uint16(12554), + 138: uint16(12555), + 139: uint16(12556), + 140: uint16(12557), + 141: uint16(12558), + 142: uint16(12559), + 143: uint16(12560), + 144: uint16(12561), + 145: uint16(12562), + 146: uint16(12563), + 147: uint16(12564), + 148: uint16(12565), + 149: uint16(12566), + 150: uint16(12567), + 151: uint16(12568), + 152: uint16(12569), + 153: uint16(12570), + 154: uint16(12571), + 155: uint16(12572), + 156: uint16(12573), + 157: uint16(12574), + 158: uint16(12575), + 159: uint16(12576), + 160: uint16(12577), + 161: uint16(12578), + 162: uint16(12579), + 163: uint16(12580), + 164: uint16(12581), + 165: uint16(12582), + 166: uint16(12583), + 167: uint16(12584), + 168: uint16(12585), + 169: uint16(59341), + 170: uint16(59342), + 171: uint16(59343), + 172: uint16(59344), + 173: uint16(59345), + 174: uint16(59346), + 175: uint16(59347), + 176: uint16(59348), + 177: uint16(59349), + 178: uint16(59350), + 179: uint16(59351), + 180: uint16(59352), + 181: uint16(59353), + 182: uint16(59354), + 183: uint16(59355), + 184: uint16(59356), + 185: uint16(59357), + 186: uint16(59358), + 187: uint16(59359), + 188: uint16(59360), + 189: uint16(59361), + }, + 40: { + 0: uint16(12321), + 1: uint16(12322), + 2: uint16(12323), + 3: uint16(12324), + 4: uint16(12325), + 5: uint16(12326), + 6: uint16(12327), + 7: uint16(12328), + 8: uint16(12329), + 9: uint16(12963), + 10: uint16(13198), + 11: uint16(13199), + 12: uint16(13212), + 13: uint16(13213), + 14: uint16(13214), + 15: uint16(13217), + 16: uint16(13252), + 17: uint16(13262), + 18: uint16(13265), + 19: uint16(13266), + 20: uint16(13269), + 21: uint16(65072), + 22: uint16(65506), + 23: uint16(65508), + 24: uint16(59362), + 25: uint16(8481), + 26: uint16(12849), + 27: uint16(59363), + 28: uint16(8208), + 29: uint16(59364), + 30: uint16(59365), + 31: uint16(59366), + 32: uint16(12540), + 33: uint16(12443), + 34: uint16(12444), + 35: uint16(12541), + 36: uint16(12542), + 37: uint16(12294), + 38: uint16(12445), + 39: uint16(12446), + 40: uint16(65097), + 41: uint16(65098), + 42: uint16(65099), + 43: uint16(65100), + 44: uint16(65101), + 45: uint16(65102), + 46: uint16(65103), + 47: uint16(65104), + 48: uint16(65105), + 49: uint16(65106), + 50: uint16(65108), + 51: uint16(65109), + 52: uint16(65110), + 53: uint16(65111), + 54: uint16(65113), + 55: uint16(65114), + 56: uint16(65115), + 57: uint16(65116), + 58: uint16(65117), + 59: uint16(65118), + 60: uint16(65119), + 61: uint16(65120), + 62: uint16(65121), + 63: uint16(65122), + 64: uint16(65123), + 65: uint16(65124), + 66: uint16(65125), + 67: uint16(65126), + 68: uint16(65128), + 69: uint16(65129), + 70: uint16(65130), + 71: uint16(65131), + 72: uint16(12350), + 73: uint16(12272), + 74: uint16(12273), + 75: uint16(12274), + 76: uint16(12275), + 77: uint16(12276), + 78: uint16(12277), + 79: uint16(12278), + 80: uint16(12279), + 81: uint16(12280), + 82: uint16(12281), + 83: uint16(12282), + 84: uint16(12283), + 85: uint16(12295), + 86: uint16(59380), + 87: uint16(59381), + 88: uint16(59382), + 89: uint16(59383), + 90: uint16(59384), + 91: uint16(59385), + 92: uint16(59386), + 93: uint16(59387), + 94: uint16(59388), + 95: uint16(59389), + 96: uint16(59390), + 97: uint16(59391), + 98: uint16(59392), + 99: uint16(9472), + 100: uint16(9473), + 101: uint16(9474), + 102: uint16(9475), + 103: uint16(9476), + 104: uint16(9477), + 105: uint16(9478), + 106: uint16(9479), + 107: uint16(9480), + 108: uint16(9481), + 109: uint16(9482), + 110: uint16(9483), + 111: uint16(9484), + 112: uint16(9485), + 113: uint16(9486), + 114: uint16(9487), + 115: uint16(9488), + 116: uint16(9489), + 117: uint16(9490), + 118: uint16(9491), + 119: uint16(9492), + 120: uint16(9493), + 121: uint16(9494), + 122: uint16(9495), + 123: uint16(9496), + 124: uint16(9497), + 125: uint16(9498), + 126: uint16(9499), + 127: uint16(9500), + 128: uint16(9501), + 129: uint16(9502), + 130: uint16(9503), + 131: uint16(9504), + 132: uint16(9505), + 133: uint16(9506), + 134: uint16(9507), + 135: uint16(9508), + 136: uint16(9509), + 137: uint16(9510), + 138: uint16(9511), + 139: uint16(9512), + 140: uint16(9513), + 141: uint16(9514), + 142: uint16(9515), + 143: uint16(9516), + 144: uint16(9517), + 145: uint16(9518), + 146: uint16(9519), + 147: uint16(9520), + 148: uint16(9521), + 149: uint16(9522), + 150: uint16(9523), + 151: uint16(9524), + 152: uint16(9525), + 153: uint16(9526), + 154: uint16(9527), + 155: uint16(9528), + 156: uint16(9529), + 157: uint16(9530), + 158: uint16(9531), + 159: uint16(9532), + 160: uint16(9533), + 161: uint16(9534), + 162: uint16(9535), + 163: uint16(9536), + 164: uint16(9537), + 165: uint16(9538), + 166: uint16(9539), + 167: uint16(9540), + 168: uint16(9541), + 169: uint16(9542), + 170: uint16(9543), + 171: uint16(9544), + 172: uint16(9545), + 173: uint16(9546), + 174: uint16(9547), + 175: uint16(59393), + 176: uint16(59394), + 177: uint16(59395), + 178: uint16(59396), + 179: uint16(59397), + 180: uint16(59398), + 181: uint16(59399), + 182: uint16(59400), + 183: uint16(59401), + 184: uint16(59402), + 185: uint16(59403), + 186: uint16(59404), + 187: uint16(59405), + 188: uint16(59406), + 189: uint16(59407), + }, + 41: { + 0: uint16(29404), + 1: uint16(29405), + 2: uint16(29407), + 3: uint16(29410), + 4: uint16(29411), + 5: uint16(29412), + 6: uint16(29413), + 7: uint16(29414), + 8: uint16(29415), + 9: uint16(29418), + 10: uint16(29419), + 11: uint16(29429), + 12: uint16(29430), + 13: uint16(29433), + 14: uint16(29437), + 15: uint16(29438), + 16: uint16(29439), + 17: uint16(29440), + 18: uint16(29442), + 19: uint16(29444), + 20: uint16(29445), + 21: uint16(29446), + 22: uint16(29447), + 23: uint16(29448), + 24: uint16(29449), + 25: uint16(29451), + 26: uint16(29452), + 27: uint16(29453), + 28: uint16(29455), + 29: uint16(29456), + 30: uint16(29457), + 31: uint16(29458), + 32: uint16(29460), + 33: uint16(29464), + 34: uint16(29465), + 35: uint16(29466), + 36: uint16(29471), + 37: uint16(29472), + 38: uint16(29475), + 39: uint16(29476), + 40: uint16(29478), + 41: uint16(29479), + 42: uint16(29480), + 43: uint16(29485), + 44: uint16(29487), + 45: uint16(29488), + 46: uint16(29490), + 47: uint16(29491), + 48: uint16(29493), + 49: uint16(29494), + 50: uint16(29498), + 51: uint16(29499), + 52: uint16(29500), + 53: uint16(29501), + 54: uint16(29504), + 55: uint16(29505), + 56: uint16(29506), + 57: uint16(29507), + 58: uint16(29508), + 59: uint16(29509), + 60: uint16(29510), + 61: uint16(29511), + 62: uint16(29512), + 63: uint16(29513), + 64: uint16(29514), + 65: uint16(29515), + 66: uint16(29516), + 67: uint16(29518), + 68: uint16(29519), + 69: uint16(29521), + 70: uint16(29523), + 71: uint16(29524), + 72: uint16(29525), + 73: uint16(29526), + 74: uint16(29528), + 75: uint16(29529), + 76: uint16(29530), + 77: uint16(29531), + 78: uint16(29532), + 79: uint16(29533), + 80: uint16(29534), + 81: uint16(29535), + 82: uint16(29537), + 83: uint16(29538), + 84: uint16(29539), + 85: uint16(29540), + 86: uint16(29541), + 87: uint16(29542), + 88: uint16(29543), + 89: uint16(29544), + 90: uint16(29545), + 91: uint16(29546), + 92: uint16(29547), + 93: uint16(29550), + 94: uint16(29552), + 95: uint16(29553), + 96: uint16(57344), + 97: uint16(57345), + 98: uint16(57346), + 99: uint16(57347), + 100: uint16(57348), + 101: uint16(57349), + 102: uint16(57350), + 103: uint16(57351), + 104: uint16(57352), + 105: uint16(57353), + 106: uint16(57354), + 107: uint16(57355), + 108: uint16(57356), + 109: uint16(57357), + 110: uint16(57358), + 111: uint16(57359), + 112: uint16(57360), + 113: uint16(57361), + 114: uint16(57362), + 115: uint16(57363), + 116: uint16(57364), + 117: uint16(57365), + 118: uint16(57366), + 119: uint16(57367), + 120: uint16(57368), + 121: uint16(57369), + 122: uint16(57370), + 123: uint16(57371), + 124: uint16(57372), + 125: uint16(57373), + 126: uint16(57374), + 127: uint16(57375), + 128: uint16(57376), + 129: uint16(57377), + 130: uint16(57378), + 131: uint16(57379), + 132: uint16(57380), + 133: uint16(57381), + 134: uint16(57382), + 135: uint16(57383), + 136: uint16(57384), + 137: uint16(57385), + 138: uint16(57386), + 139: uint16(57387), + 140: uint16(57388), + 141: uint16(57389), + 142: uint16(57390), + 143: uint16(57391), + 144: uint16(57392), + 145: uint16(57393), + 146: uint16(57394), + 147: uint16(57395), + 148: uint16(57396), + 149: uint16(57397), + 150: uint16(57398), + 151: uint16(57399), + 152: uint16(57400), + 153: uint16(57401), + 154: uint16(57402), + 155: uint16(57403), + 156: uint16(57404), + 157: uint16(57405), + 158: uint16(57406), + 159: uint16(57407), + 160: uint16(57408), + 161: uint16(57409), + 162: uint16(57410), + 163: uint16(57411), + 164: uint16(57412), + 165: uint16(57413), + 166: uint16(57414), + 167: uint16(57415), + 168: uint16(57416), + 169: uint16(57417), + 170: uint16(57418), + 171: uint16(57419), + 172: uint16(57420), + 173: uint16(57421), + 174: uint16(57422), + 175: uint16(57423), + 176: uint16(57424), + 177: uint16(57425), + 178: uint16(57426), + 179: uint16(57427), + 180: uint16(57428), + 181: uint16(57429), + 182: uint16(57430), + 183: uint16(57431), + 184: uint16(57432), + 185: uint16(57433), + 186: uint16(57434), + 187: uint16(57435), + 188: uint16(57436), + 189: uint16(57437), + }, + 42: { + 0: uint16(29554), + 1: uint16(29555), + 2: uint16(29556), + 3: uint16(29557), + 4: uint16(29558), + 5: uint16(29559), + 6: uint16(29560), + 7: uint16(29561), + 8: uint16(29562), + 9: uint16(29563), + 10: uint16(29564), + 11: uint16(29565), + 12: uint16(29567), + 13: uint16(29568), + 14: uint16(29569), + 15: uint16(29570), + 16: uint16(29571), + 17: uint16(29573), + 18: uint16(29574), + 19: uint16(29576), + 20: uint16(29578), + 21: uint16(29580), + 22: uint16(29581), + 23: uint16(29583), + 24: uint16(29584), + 25: uint16(29586), + 26: uint16(29587), + 27: uint16(29588), + 28: uint16(29589), + 29: uint16(29591), + 30: uint16(29592), + 31: uint16(29593), + 32: uint16(29594), + 33: uint16(29596), + 34: uint16(29597), + 35: uint16(29598), + 36: uint16(29600), + 37: uint16(29601), + 38: uint16(29603), + 39: uint16(29604), + 40: uint16(29605), + 41: uint16(29606), + 42: uint16(29607), + 43: uint16(29608), + 44: uint16(29610), + 45: uint16(29612), + 46: uint16(29613), + 47: uint16(29617), + 48: uint16(29620), + 49: uint16(29621), + 50: uint16(29622), + 51: uint16(29624), + 52: uint16(29625), + 53: uint16(29628), + 54: uint16(29629), + 55: uint16(29630), + 56: uint16(29631), + 57: uint16(29633), + 58: uint16(29635), + 59: uint16(29636), + 60: uint16(29637), + 61: uint16(29638), + 62: uint16(29639), + 63: uint16(29643), + 64: uint16(29644), + 65: uint16(29646), + 66: uint16(29650), + 67: uint16(29651), + 68: uint16(29652), + 69: uint16(29653), + 70: uint16(29654), + 71: uint16(29655), + 72: uint16(29656), + 73: uint16(29658), + 74: uint16(29659), + 75: uint16(29660), + 76: uint16(29661), + 77: uint16(29663), + 78: uint16(29665), + 79: uint16(29666), + 80: uint16(29667), + 81: uint16(29668), + 82: uint16(29670), + 83: uint16(29672), + 84: uint16(29674), + 85: uint16(29675), + 86: uint16(29676), + 87: uint16(29678), + 88: uint16(29679), + 89: uint16(29680), + 90: uint16(29681), + 91: uint16(29683), + 92: uint16(29684), + 93: uint16(29685), + 94: uint16(29686), + 95: uint16(29687), + 96: uint16(57438), + 97: uint16(57439), + 98: uint16(57440), + 99: uint16(57441), + 100: uint16(57442), + 101: uint16(57443), + 102: uint16(57444), + 103: uint16(57445), + 104: uint16(57446), + 105: uint16(57447), + 106: uint16(57448), + 107: uint16(57449), + 108: uint16(57450), + 109: uint16(57451), + 110: uint16(57452), + 111: uint16(57453), + 112: uint16(57454), + 113: uint16(57455), + 114: uint16(57456), + 115: uint16(57457), + 116: uint16(57458), + 117: uint16(57459), + 118: uint16(57460), + 119: uint16(57461), + 120: uint16(57462), + 121: uint16(57463), + 122: uint16(57464), + 123: uint16(57465), + 124: uint16(57466), + 125: uint16(57467), + 126: uint16(57468), + 127: uint16(57469), + 128: uint16(57470), + 129: uint16(57471), + 130: uint16(57472), + 131: uint16(57473), + 132: uint16(57474), + 133: uint16(57475), + 134: uint16(57476), + 135: uint16(57477), + 136: uint16(57478), + 137: uint16(57479), + 138: uint16(57480), + 139: uint16(57481), + 140: uint16(57482), + 141: uint16(57483), + 142: uint16(57484), + 143: uint16(57485), + 144: uint16(57486), + 145: uint16(57487), + 146: uint16(57488), + 147: uint16(57489), + 148: uint16(57490), + 149: uint16(57491), + 150: uint16(57492), + 151: uint16(57493), + 152: uint16(57494), + 153: uint16(57495), + 154: uint16(57496), + 155: uint16(57497), + 156: uint16(57498), + 157: uint16(57499), + 158: uint16(57500), + 159: uint16(57501), + 160: uint16(57502), + 161: uint16(57503), + 162: uint16(57504), + 163: uint16(57505), + 164: uint16(57506), + 165: uint16(57507), + 166: uint16(57508), + 167: uint16(57509), + 168: uint16(57510), + 169: uint16(57511), + 170: uint16(57512), + 171: uint16(57513), + 172: uint16(57514), + 173: uint16(57515), + 174: uint16(57516), + 175: uint16(57517), + 176: uint16(57518), + 177: uint16(57519), + 178: uint16(57520), + 179: uint16(57521), + 180: uint16(57522), + 181: uint16(57523), + 182: uint16(57524), + 183: uint16(57525), + 184: uint16(57526), + 185: uint16(57527), + 186: uint16(57528), + 187: uint16(57529), + 188: uint16(57530), + 189: uint16(57531), + }, + 43: { + 0: uint16(29688), + 1: uint16(29689), + 2: uint16(29690), + 3: uint16(29691), + 4: uint16(29692), + 5: uint16(29693), + 6: uint16(29694), + 7: uint16(29695), + 8: uint16(29696), + 9: uint16(29697), + 10: uint16(29698), + 11: uint16(29700), + 12: uint16(29703), + 13: uint16(29704), + 14: uint16(29707), + 15: uint16(29708), + 16: uint16(29709), + 17: uint16(29710), + 18: uint16(29713), + 19: uint16(29714), + 20: uint16(29715), + 21: uint16(29716), + 22: uint16(29717), + 23: uint16(29718), + 24: uint16(29719), + 25: uint16(29720), + 26: uint16(29721), + 27: uint16(29724), + 28: uint16(29725), + 29: uint16(29726), + 30: uint16(29727), + 31: uint16(29728), + 32: uint16(29729), + 33: uint16(29731), + 34: uint16(29732), + 35: uint16(29735), + 36: uint16(29737), + 37: uint16(29739), + 38: uint16(29741), + 39: uint16(29743), + 40: uint16(29745), + 41: uint16(29746), + 42: uint16(29751), + 43: uint16(29752), + 44: uint16(29753), + 45: uint16(29754), + 46: uint16(29755), + 47: uint16(29757), + 48: uint16(29758), + 49: uint16(29759), + 50: uint16(29760), + 51: uint16(29762), + 52: uint16(29763), + 53: uint16(29764), + 54: uint16(29765), + 55: uint16(29766), + 56: uint16(29767), + 57: uint16(29768), + 58: uint16(29769), + 59: uint16(29770), + 60: uint16(29771), + 61: uint16(29772), + 62: uint16(29773), + 63: uint16(29774), + 64: uint16(29775), + 65: uint16(29776), + 66: uint16(29777), + 67: uint16(29778), + 68: uint16(29779), + 69: uint16(29780), + 70: uint16(29782), + 71: uint16(29784), + 72: uint16(29789), + 73: uint16(29792), + 74: uint16(29793), + 75: uint16(29794), + 76: uint16(29795), + 77: uint16(29796), + 78: uint16(29797), + 79: uint16(29798), + 80: uint16(29799), + 81: uint16(29800), + 82: uint16(29801), + 83: uint16(29802), + 84: uint16(29803), + 85: uint16(29804), + 86: uint16(29806), + 87: uint16(29807), + 88: uint16(29809), + 89: uint16(29810), + 90: uint16(29811), + 91: uint16(29812), + 92: uint16(29813), + 93: uint16(29816), + 94: uint16(29817), + 95: uint16(29818), + 96: uint16(57532), + 97: uint16(57533), + 98: uint16(57534), + 99: uint16(57535), + 100: uint16(57536), + 101: uint16(57537), + 102: uint16(57538), + 103: uint16(57539), + 104: uint16(57540), + 105: uint16(57541), + 106: uint16(57542), + 107: uint16(57543), + 108: uint16(57544), + 109: uint16(57545), + 110: uint16(57546), + 111: uint16(57547), + 112: uint16(57548), + 113: uint16(57549), + 114: uint16(57550), + 115: uint16(57551), + 116: uint16(57552), + 117: uint16(57553), + 118: uint16(57554), + 119: uint16(57555), + 120: uint16(57556), + 121: uint16(57557), + 122: uint16(57558), + 123: uint16(57559), + 124: uint16(57560), + 125: uint16(57561), + 126: uint16(57562), + 127: uint16(57563), + 128: uint16(57564), + 129: uint16(57565), + 130: uint16(57566), + 131: uint16(57567), + 132: uint16(57568), + 133: uint16(57569), + 134: uint16(57570), + 135: uint16(57571), + 136: uint16(57572), + 137: uint16(57573), + 138: uint16(57574), + 139: uint16(57575), + 140: uint16(57576), + 141: uint16(57577), + 142: uint16(57578), + 143: uint16(57579), + 144: uint16(57580), + 145: uint16(57581), + 146: uint16(57582), + 147: uint16(57583), + 148: uint16(57584), + 149: uint16(57585), + 150: uint16(57586), + 151: uint16(57587), + 152: uint16(57588), + 153: uint16(57589), + 154: uint16(57590), + 155: uint16(57591), + 156: uint16(57592), + 157: uint16(57593), + 158: uint16(57594), + 159: uint16(57595), + 160: uint16(57596), + 161: uint16(57597), + 162: uint16(57598), + 163: uint16(57599), + 164: uint16(57600), + 165: uint16(57601), + 166: uint16(57602), + 167: uint16(57603), + 168: uint16(57604), + 169: uint16(57605), + 170: uint16(57606), + 171: uint16(57607), + 172: uint16(57608), + 173: uint16(57609), + 174: uint16(57610), + 175: uint16(57611), + 176: uint16(57612), + 177: uint16(57613), + 178: uint16(57614), + 179: uint16(57615), + 180: uint16(57616), + 181: uint16(57617), + 182: uint16(57618), + 183: uint16(57619), + 184: uint16(57620), + 185: uint16(57621), + 186: uint16(57622), + 187: uint16(57623), + 188: uint16(57624), + 189: uint16(57625), + }, + 44: { + 0: uint16(29819), + 1: uint16(29820), + 2: uint16(29821), + 3: uint16(29823), + 4: uint16(29826), + 5: uint16(29828), + 6: uint16(29829), + 7: uint16(29830), + 8: uint16(29832), + 9: uint16(29833), + 10: uint16(29834), + 11: uint16(29836), + 12: uint16(29837), + 13: uint16(29839), + 14: uint16(29841), + 15: uint16(29842), + 16: uint16(29843), + 17: uint16(29844), + 18: uint16(29845), + 19: uint16(29846), + 20: uint16(29847), + 21: uint16(29848), + 22: uint16(29849), + 23: uint16(29850), + 24: uint16(29851), + 25: uint16(29853), + 26: uint16(29855), + 27: uint16(29856), + 28: uint16(29857), + 29: uint16(29858), + 30: uint16(29859), + 31: uint16(29860), + 32: uint16(29861), + 33: uint16(29862), + 34: uint16(29866), + 35: uint16(29867), + 36: uint16(29868), + 37: uint16(29869), + 38: uint16(29870), + 39: uint16(29871), + 40: uint16(29872), + 41: uint16(29873), + 42: uint16(29874), + 43: uint16(29875), + 44: uint16(29876), + 45: uint16(29877), + 46: uint16(29878), + 47: uint16(29879), + 48: uint16(29880), + 49: uint16(29881), + 50: uint16(29883), + 51: uint16(29884), + 52: uint16(29885), + 53: uint16(29886), + 54: uint16(29887), + 55: uint16(29888), + 56: uint16(29889), + 57: uint16(29890), + 58: uint16(29891), + 59: uint16(29892), + 60: uint16(29893), + 61: uint16(29894), + 62: uint16(29895), + 63: uint16(29896), + 64: uint16(29897), + 65: uint16(29898), + 66: uint16(29899), + 67: uint16(29900), + 68: uint16(29901), + 69: uint16(29902), + 70: uint16(29903), + 71: uint16(29904), + 72: uint16(29905), + 73: uint16(29907), + 74: uint16(29908), + 75: uint16(29909), + 76: uint16(29910), + 77: uint16(29911), + 78: uint16(29912), + 79: uint16(29913), + 80: uint16(29914), + 81: uint16(29915), + 82: uint16(29917), + 83: uint16(29919), + 84: uint16(29921), + 85: uint16(29925), + 86: uint16(29927), + 87: uint16(29928), + 88: uint16(29929), + 89: uint16(29930), + 90: uint16(29931), + 91: uint16(29932), + 92: uint16(29933), + 93: uint16(29936), + 94: uint16(29937), + 95: uint16(29938), + 96: uint16(57626), + 97: uint16(57627), + 98: uint16(57628), + 99: uint16(57629), + 100: uint16(57630), + 101: uint16(57631), + 102: uint16(57632), + 103: uint16(57633), + 104: uint16(57634), + 105: uint16(57635), + 106: uint16(57636), + 107: uint16(57637), + 108: uint16(57638), + 109: uint16(57639), + 110: uint16(57640), + 111: uint16(57641), + 112: uint16(57642), + 113: uint16(57643), + 114: uint16(57644), + 115: uint16(57645), + 116: uint16(57646), + 117: uint16(57647), + 118: uint16(57648), + 119: uint16(57649), + 120: uint16(57650), + 121: uint16(57651), + 122: uint16(57652), + 123: uint16(57653), + 124: uint16(57654), + 125: uint16(57655), + 126: uint16(57656), + 127: uint16(57657), + 128: uint16(57658), + 129: uint16(57659), + 130: uint16(57660), + 131: uint16(57661), + 132: uint16(57662), + 133: uint16(57663), + 134: uint16(57664), + 135: uint16(57665), + 136: uint16(57666), + 137: uint16(57667), + 138: uint16(57668), + 139: uint16(57669), + 140: uint16(57670), + 141: uint16(57671), + 142: uint16(57672), + 143: uint16(57673), + 144: uint16(57674), + 145: uint16(57675), + 146: uint16(57676), + 147: uint16(57677), + 148: uint16(57678), + 149: uint16(57679), + 150: uint16(57680), + 151: uint16(57681), + 152: uint16(57682), + 153: uint16(57683), + 154: uint16(57684), + 155: uint16(57685), + 156: uint16(57686), + 157: uint16(57687), + 158: uint16(57688), + 159: uint16(57689), + 160: uint16(57690), + 161: uint16(57691), + 162: uint16(57692), + 163: uint16(57693), + 164: uint16(57694), + 165: uint16(57695), + 166: uint16(57696), + 167: uint16(57697), + 168: uint16(57698), + 169: uint16(57699), + 170: uint16(57700), + 171: uint16(57701), + 172: uint16(57702), + 173: uint16(57703), + 174: uint16(57704), + 175: uint16(57705), + 176: uint16(57706), + 177: uint16(57707), + 178: uint16(57708), + 179: uint16(57709), + 180: uint16(57710), + 181: uint16(57711), + 182: uint16(57712), + 183: uint16(57713), + 184: uint16(57714), + 185: uint16(57715), + 186: uint16(57716), + 187: uint16(57717), + 188: uint16(57718), + 189: uint16(57719), + }, + 45: { + 0: uint16(29939), + 1: uint16(29941), + 2: uint16(29944), + 3: uint16(29945), + 4: uint16(29946), + 5: uint16(29947), + 6: uint16(29948), + 7: uint16(29949), + 8: uint16(29950), + 9: uint16(29952), + 10: uint16(29953), + 11: uint16(29954), + 12: uint16(29955), + 13: uint16(29957), + 14: uint16(29958), + 15: uint16(29959), + 16: uint16(29960), + 17: uint16(29961), + 18: uint16(29962), + 19: uint16(29963), + 20: uint16(29964), + 21: uint16(29966), + 22: uint16(29968), + 23: uint16(29970), + 24: uint16(29972), + 25: uint16(29973), + 26: uint16(29974), + 27: uint16(29975), + 28: uint16(29979), + 29: uint16(29981), + 30: uint16(29982), + 31: uint16(29984), + 32: uint16(29985), + 33: uint16(29986), + 34: uint16(29987), + 35: uint16(29988), + 36: uint16(29990), + 37: uint16(29991), + 38: uint16(29994), + 39: uint16(29998), + 40: uint16(30004), + 41: uint16(30006), + 42: uint16(30009), + 43: uint16(30012), + 44: uint16(30013), + 45: uint16(30015), + 46: uint16(30017), + 47: uint16(30018), + 48: uint16(30019), + 49: uint16(30020), + 50: uint16(30022), + 51: uint16(30023), + 52: uint16(30025), + 53: uint16(30026), + 54: uint16(30029), + 55: uint16(30032), + 56: uint16(30033), + 57: uint16(30034), + 58: uint16(30035), + 59: uint16(30037), + 60: uint16(30038), + 61: uint16(30039), + 62: uint16(30040), + 63: uint16(30045), + 64: uint16(30046), + 65: uint16(30047), + 66: uint16(30048), + 67: uint16(30049), + 68: uint16(30050), + 69: uint16(30051), + 70: uint16(30052), + 71: uint16(30055), + 72: uint16(30056), + 73: uint16(30057), + 74: uint16(30059), + 75: uint16(30060), + 76: uint16(30061), + 77: uint16(30062), + 78: uint16(30063), + 79: uint16(30064), + 80: uint16(30065), + 81: uint16(30067), + 82: uint16(30069), + 83: uint16(30070), + 84: uint16(30071), + 85: uint16(30074), + 86: uint16(30075), + 87: uint16(30076), + 88: uint16(30077), + 89: uint16(30078), + 90: uint16(30080), + 91: uint16(30081), + 92: uint16(30082), + 93: uint16(30084), + 94: uint16(30085), + 95: uint16(30087), + 96: uint16(57720), + 97: uint16(57721), + 98: uint16(57722), + 99: uint16(57723), + 100: uint16(57724), + 101: uint16(57725), + 102: uint16(57726), + 103: uint16(57727), + 104: uint16(57728), + 105: uint16(57729), + 106: uint16(57730), + 107: uint16(57731), + 108: uint16(57732), + 109: uint16(57733), + 110: uint16(57734), + 111: uint16(57735), + 112: uint16(57736), + 113: uint16(57737), + 114: uint16(57738), + 115: uint16(57739), + 116: uint16(57740), + 117: uint16(57741), + 118: uint16(57742), + 119: uint16(57743), + 120: uint16(57744), + 121: uint16(57745), + 122: uint16(57746), + 123: uint16(57747), + 124: uint16(57748), + 125: uint16(57749), + 126: uint16(57750), + 127: uint16(57751), + 128: uint16(57752), + 129: uint16(57753), + 130: uint16(57754), + 131: uint16(57755), + 132: uint16(57756), + 133: uint16(57757), + 134: uint16(57758), + 135: uint16(57759), + 136: uint16(57760), + 137: uint16(57761), + 138: uint16(57762), + 139: uint16(57763), + 140: uint16(57764), + 141: uint16(57765), + 142: uint16(57766), + 143: uint16(57767), + 144: uint16(57768), + 145: uint16(57769), + 146: uint16(57770), + 147: uint16(57771), + 148: uint16(57772), + 149: uint16(57773), + 150: uint16(57774), + 151: uint16(57775), + 152: uint16(57776), + 153: uint16(57777), + 154: uint16(57778), + 155: uint16(57779), + 156: uint16(57780), + 157: uint16(57781), + 158: uint16(57782), + 159: uint16(57783), + 160: uint16(57784), + 161: uint16(57785), + 162: uint16(57786), + 163: uint16(57787), + 164: uint16(57788), + 165: uint16(57789), + 166: uint16(57790), + 167: uint16(57791), + 168: uint16(57792), + 169: uint16(57793), + 170: uint16(57794), + 171: uint16(57795), + 172: uint16(57796), + 173: uint16(57797), + 174: uint16(57798), + 175: uint16(57799), + 176: uint16(57800), + 177: uint16(57801), + 178: uint16(57802), + 179: uint16(57803), + 180: uint16(57804), + 181: uint16(57805), + 182: uint16(57806), + 183: uint16(57807), + 184: uint16(57808), + 185: uint16(57809), + 186: uint16(57810), + 187: uint16(57811), + 188: uint16(57812), + 189: uint16(57813), + }, + 46: { + 0: uint16(30088), + 1: uint16(30089), + 2: uint16(30090), + 3: uint16(30092), + 4: uint16(30093), + 5: uint16(30094), + 6: uint16(30096), + 7: uint16(30099), + 8: uint16(30101), + 9: uint16(30104), + 10: uint16(30107), + 11: uint16(30108), + 12: uint16(30110), + 13: uint16(30114), + 14: uint16(30118), + 15: uint16(30119), + 16: uint16(30120), + 17: uint16(30121), + 18: uint16(30122), + 19: uint16(30125), + 20: uint16(30134), + 21: uint16(30135), + 22: uint16(30138), + 23: uint16(30139), + 24: uint16(30143), + 25: uint16(30144), + 26: uint16(30145), + 27: uint16(30150), + 28: uint16(30155), + 29: uint16(30156), + 30: uint16(30158), + 31: uint16(30159), + 32: uint16(30160), + 33: uint16(30161), + 34: uint16(30163), + 35: uint16(30167), + 36: uint16(30169), + 37: uint16(30170), + 38: uint16(30172), + 39: uint16(30173), + 40: uint16(30175), + 41: uint16(30176), + 42: uint16(30177), + 43: uint16(30181), + 44: uint16(30185), + 45: uint16(30188), + 46: uint16(30189), + 47: uint16(30190), + 48: uint16(30191), + 49: uint16(30194), + 50: uint16(30195), + 51: uint16(30197), + 52: uint16(30198), + 53: uint16(30199), + 54: uint16(30200), + 55: uint16(30202), + 56: uint16(30203), + 57: uint16(30205), + 58: uint16(30206), + 59: uint16(30210), + 60: uint16(30212), + 61: uint16(30214), + 62: uint16(30215), + 63: uint16(30216), + 64: uint16(30217), + 65: uint16(30219), + 66: uint16(30221), + 67: uint16(30222), + 68: uint16(30223), + 69: uint16(30225), + 70: uint16(30226), + 71: uint16(30227), + 72: uint16(30228), + 73: uint16(30230), + 74: uint16(30234), + 75: uint16(30236), + 76: uint16(30237), + 77: uint16(30238), + 78: uint16(30241), + 79: uint16(30243), + 80: uint16(30247), + 81: uint16(30248), + 82: uint16(30252), + 83: uint16(30254), + 84: uint16(30255), + 85: uint16(30257), + 86: uint16(30258), + 87: uint16(30262), + 88: uint16(30263), + 89: uint16(30265), + 90: uint16(30266), + 91: uint16(30267), + 92: uint16(30269), + 93: uint16(30273), + 94: uint16(30274), + 95: uint16(30276), + 96: uint16(57814), + 97: uint16(57815), + 98: uint16(57816), + 99: uint16(57817), + 100: uint16(57818), + 101: uint16(57819), + 102: uint16(57820), + 103: uint16(57821), + 104: uint16(57822), + 105: uint16(57823), + 106: uint16(57824), + 107: uint16(57825), + 108: uint16(57826), + 109: uint16(57827), + 110: uint16(57828), + 111: uint16(57829), + 112: uint16(57830), + 113: uint16(57831), + 114: uint16(57832), + 115: uint16(57833), + 116: uint16(57834), + 117: uint16(57835), + 118: uint16(57836), + 119: uint16(57837), + 120: uint16(57838), + 121: uint16(57839), + 122: uint16(57840), + 123: uint16(57841), + 124: uint16(57842), + 125: uint16(57843), + 126: uint16(57844), + 127: uint16(57845), + 128: uint16(57846), + 129: uint16(57847), + 130: uint16(57848), + 131: uint16(57849), + 132: uint16(57850), + 133: uint16(57851), + 134: uint16(57852), + 135: uint16(57853), + 136: uint16(57854), + 137: uint16(57855), + 138: uint16(57856), + 139: uint16(57857), + 140: uint16(57858), + 141: uint16(57859), + 142: uint16(57860), + 143: uint16(57861), + 144: uint16(57862), + 145: uint16(57863), + 146: uint16(57864), + 147: uint16(57865), + 148: uint16(57866), + 149: uint16(57867), + 150: uint16(57868), + 151: uint16(57869), + 152: uint16(57870), + 153: uint16(57871), + 154: uint16(57872), + 155: uint16(57873), + 156: uint16(57874), + 157: uint16(57875), + 158: uint16(57876), + 159: uint16(57877), + 160: uint16(57878), + 161: uint16(57879), + 162: uint16(57880), + 163: uint16(57881), + 164: uint16(57882), + 165: uint16(57883), + 166: uint16(57884), + 167: uint16(57885), + 168: uint16(57886), + 169: uint16(57887), + 170: uint16(57888), + 171: uint16(57889), + 172: uint16(57890), + 173: uint16(57891), + 174: uint16(57892), + 175: uint16(57893), + 176: uint16(57894), + 177: uint16(57895), + 178: uint16(57896), + 179: uint16(57897), + 180: uint16(57898), + 181: uint16(57899), + 182: uint16(57900), + 183: uint16(57901), + 184: uint16(57902), + 185: uint16(57903), + 186: uint16(57904), + 187: uint16(57905), + 188: uint16(57906), + 189: uint16(57907), + }, + 47: { + 0: uint16(30277), + 1: uint16(30278), + 2: uint16(30279), + 3: uint16(30280), + 4: uint16(30281), + 5: uint16(30282), + 6: uint16(30283), + 7: uint16(30286), + 8: uint16(30287), + 9: uint16(30288), + 10: uint16(30289), + 11: uint16(30290), + 12: uint16(30291), + 13: uint16(30293), + 14: uint16(30295), + 15: uint16(30296), + 16: uint16(30297), + 17: uint16(30298), + 18: uint16(30299), + 19: uint16(30301), + 20: uint16(30303), + 21: uint16(30304), + 22: uint16(30305), + 23: uint16(30306), + 24: uint16(30308), + 25: uint16(30309), + 26: uint16(30310), + 27: uint16(30311), + 28: uint16(30312), + 29: uint16(30313), + 30: uint16(30314), + 31: uint16(30316), + 32: uint16(30317), + 33: uint16(30318), + 34: uint16(30320), + 35: uint16(30321), + 36: uint16(30322), + 37: uint16(30323), + 38: uint16(30324), + 39: uint16(30325), + 40: uint16(30326), + 41: uint16(30327), + 42: uint16(30329), + 43: uint16(30330), + 44: uint16(30332), + 45: uint16(30335), + 46: uint16(30336), + 47: uint16(30337), + 48: uint16(30339), + 49: uint16(30341), + 50: uint16(30345), + 51: uint16(30346), + 52: uint16(30348), + 53: uint16(30349), + 54: uint16(30351), + 55: uint16(30352), + 56: uint16(30354), + 57: uint16(30356), + 58: uint16(30357), + 59: uint16(30359), + 60: uint16(30360), + 61: uint16(30362), + 62: uint16(30363), + 63: uint16(30364), + 64: uint16(30365), + 65: uint16(30366), + 66: uint16(30367), + 67: uint16(30368), + 68: uint16(30369), + 69: uint16(30370), + 70: uint16(30371), + 71: uint16(30373), + 72: uint16(30374), + 73: uint16(30375), + 74: uint16(30376), + 75: uint16(30377), + 76: uint16(30378), + 77: uint16(30379), + 78: uint16(30380), + 79: uint16(30381), + 80: uint16(30383), + 81: uint16(30384), + 82: uint16(30387), + 83: uint16(30389), + 84: uint16(30390), + 85: uint16(30391), + 86: uint16(30392), + 87: uint16(30393), + 88: uint16(30394), + 89: uint16(30395), + 90: uint16(30396), + 91: uint16(30397), + 92: uint16(30398), + 93: uint16(30400), + 94: uint16(30401), + 95: uint16(30403), + 96: uint16(21834), + 97: uint16(38463), + 98: uint16(22467), + 99: uint16(25384), + 100: uint16(21710), + 101: uint16(21769), + 102: uint16(21696), + 103: uint16(30353), + 104: uint16(30284), + 105: uint16(34108), + 106: uint16(30702), + 107: uint16(33406), + 108: uint16(30861), + 109: uint16(29233), + 110: uint16(38552), + 111: uint16(38797), + 112: uint16(27688), + 113: uint16(23433), + 114: uint16(20474), + 115: uint16(25353), + 116: uint16(26263), + 117: uint16(23736), + 118: uint16(33018), + 119: uint16(26696), + 120: uint16(32942), + 121: uint16(26114), + 122: uint16(30414), + 123: uint16(20985), + 124: uint16(25942), + 125: uint16(29100), + 126: uint16(32753), + 127: uint16(34948), + 128: uint16(20658), + 129: uint16(22885), + 130: uint16(25034), + 131: uint16(28595), + 132: uint16(33453), + 133: uint16(25420), + 134: uint16(25170), + 135: uint16(21485), + 136: uint16(21543), + 137: uint16(31494), + 138: uint16(20843), + 139: uint16(30116), + 140: uint16(24052), + 141: uint16(25300), + 142: uint16(36299), + 143: uint16(38774), + 144: uint16(25226), + 145: uint16(32793), + 146: uint16(22365), + 147: uint16(38712), + 148: uint16(32610), + 149: uint16(29240), + 150: uint16(30333), + 151: uint16(26575), + 152: uint16(30334), + 153: uint16(25670), + 154: uint16(20336), + 155: uint16(36133), + 156: uint16(25308), + 157: uint16(31255), + 158: uint16(26001), + 159: uint16(29677), + 160: uint16(25644), + 161: uint16(25203), + 162: uint16(33324), + 163: uint16(39041), + 164: uint16(26495), + 165: uint16(29256), + 166: uint16(25198), + 167: uint16(25292), + 168: uint16(20276), + 169: uint16(29923), + 170: uint16(21322), + 171: uint16(21150), + 172: uint16(32458), + 173: uint16(37030), + 174: uint16(24110), + 175: uint16(26758), + 176: uint16(27036), + 177: uint16(33152), + 178: uint16(32465), + 179: uint16(26834), + 180: uint16(30917), + 181: uint16(34444), + 182: uint16(38225), + 183: uint16(20621), + 184: uint16(35876), + 185: uint16(33502), + 186: uint16(32990), + 187: uint16(21253), + 188: uint16(35090), + 189: uint16(21093), + }, + 48: { + 0: uint16(30404), + 1: uint16(30407), + 2: uint16(30409), + 3: uint16(30411), + 4: uint16(30412), + 5: uint16(30419), + 6: uint16(30421), + 7: uint16(30425), + 8: uint16(30426), + 9: uint16(30428), + 10: uint16(30429), + 11: uint16(30430), + 12: uint16(30432), + 13: uint16(30433), + 14: uint16(30434), + 15: uint16(30435), + 16: uint16(30436), + 17: uint16(30438), + 18: uint16(30439), + 19: uint16(30440), + 20: uint16(30441), + 21: uint16(30442), + 22: uint16(30443), + 23: uint16(30444), + 24: uint16(30445), + 25: uint16(30448), + 26: uint16(30451), + 27: uint16(30453), + 28: uint16(30454), + 29: uint16(30455), + 30: uint16(30458), + 31: uint16(30459), + 32: uint16(30461), + 33: uint16(30463), + 34: uint16(30464), + 35: uint16(30466), + 36: uint16(30467), + 37: uint16(30469), + 38: uint16(30470), + 39: uint16(30474), + 40: uint16(30476), + 41: uint16(30478), + 42: uint16(30479), + 43: uint16(30480), + 44: uint16(30481), + 45: uint16(30482), + 46: uint16(30483), + 47: uint16(30484), + 48: uint16(30485), + 49: uint16(30486), + 50: uint16(30487), + 51: uint16(30488), + 52: uint16(30491), + 53: uint16(30492), + 54: uint16(30493), + 55: uint16(30494), + 56: uint16(30497), + 57: uint16(30499), + 58: uint16(30500), + 59: uint16(30501), + 60: uint16(30503), + 61: uint16(30506), + 62: uint16(30507), + 63: uint16(30508), + 64: uint16(30510), + 65: uint16(30512), + 66: uint16(30513), + 67: uint16(30514), + 68: uint16(30515), + 69: uint16(30516), + 70: uint16(30521), + 71: uint16(30523), + 72: uint16(30525), + 73: uint16(30526), + 74: uint16(30527), + 75: uint16(30530), + 76: uint16(30532), + 77: uint16(30533), + 78: uint16(30534), + 79: uint16(30536), + 80: uint16(30537), + 81: uint16(30538), + 82: uint16(30539), + 83: uint16(30540), + 84: uint16(30541), + 85: uint16(30542), + 86: uint16(30543), + 87: uint16(30546), + 88: uint16(30547), + 89: uint16(30548), + 90: uint16(30549), + 91: uint16(30550), + 92: uint16(30551), + 93: uint16(30552), + 94: uint16(30553), + 95: uint16(30556), + 96: uint16(34180), + 97: uint16(38649), + 98: uint16(20445), + 99: uint16(22561), + 100: uint16(39281), + 101: uint16(23453), + 102: uint16(25265), + 103: uint16(25253), + 104: uint16(26292), + 105: uint16(35961), + 106: uint16(40077), + 107: uint16(29190), + 108: uint16(26479), + 109: uint16(30865), + 110: uint16(24754), + 111: uint16(21329), + 112: uint16(21271), + 113: uint16(36744), + 114: uint16(32972), + 115: uint16(36125), + 116: uint16(38049), + 117: uint16(20493), + 118: uint16(29384), + 119: uint16(22791), + 120: uint16(24811), + 121: uint16(28953), + 122: uint16(34987), + 123: uint16(22868), + 124: uint16(33519), + 125: uint16(26412), + 126: uint16(31528), + 127: uint16(23849), + 128: uint16(32503), + 129: uint16(29997), + 130: uint16(27893), + 131: uint16(36454), + 132: uint16(36856), + 133: uint16(36924), + 134: uint16(40763), + 135: uint16(27604), + 136: uint16(37145), + 137: uint16(31508), + 138: uint16(24444), + 139: uint16(30887), + 140: uint16(34006), + 141: uint16(34109), + 142: uint16(27605), + 143: uint16(27609), + 144: uint16(27606), + 145: uint16(24065), + 146: uint16(24199), + 147: uint16(30201), + 148: uint16(38381), + 149: uint16(25949), + 150: uint16(24330), + 151: uint16(24517), + 152: uint16(36767), + 153: uint16(22721), + 154: uint16(33218), + 155: uint16(36991), + 156: uint16(38491), + 157: uint16(38829), + 158: uint16(36793), + 159: uint16(32534), + 160: uint16(36140), + 161: uint16(25153), + 162: uint16(20415), + 163: uint16(21464), + 164: uint16(21342), + 165: uint16(36776), + 166: uint16(36777), + 167: uint16(36779), + 168: uint16(36941), + 169: uint16(26631), + 170: uint16(24426), + 171: uint16(33176), + 172: uint16(34920), + 173: uint16(40150), + 174: uint16(24971), + 175: uint16(21035), + 176: uint16(30250), + 177: uint16(24428), + 178: uint16(25996), + 179: uint16(28626), + 180: uint16(28392), + 181: uint16(23486), + 182: uint16(25672), + 183: uint16(20853), + 184: uint16(20912), + 185: uint16(26564), + 186: uint16(19993), + 187: uint16(31177), + 188: uint16(39292), + 189: uint16(28851), + }, + 49: { + 0: uint16(30557), + 1: uint16(30558), + 2: uint16(30559), + 3: uint16(30560), + 4: uint16(30564), + 5: uint16(30567), + 6: uint16(30569), + 7: uint16(30570), + 8: uint16(30573), + 9: uint16(30574), + 10: uint16(30575), + 11: uint16(30576), + 12: uint16(30577), + 13: uint16(30578), + 14: uint16(30579), + 15: uint16(30580), + 16: uint16(30581), + 17: uint16(30582), + 18: uint16(30583), + 19: uint16(30584), + 20: uint16(30586), + 21: uint16(30587), + 22: uint16(30588), + 23: uint16(30593), + 24: uint16(30594), + 25: uint16(30595), + 26: uint16(30598), + 27: uint16(30599), + 28: uint16(30600), + 29: uint16(30601), + 30: uint16(30602), + 31: uint16(30603), + 32: uint16(30607), + 33: uint16(30608), + 34: uint16(30611), + 35: uint16(30612), + 36: uint16(30613), + 37: uint16(30614), + 38: uint16(30615), + 39: uint16(30616), + 40: uint16(30617), + 41: uint16(30618), + 42: uint16(30619), + 43: uint16(30620), + 44: uint16(30621), + 45: uint16(30622), + 46: uint16(30625), + 47: uint16(30627), + 48: uint16(30628), + 49: uint16(30630), + 50: uint16(30632), + 51: uint16(30635), + 52: uint16(30637), + 53: uint16(30638), + 54: uint16(30639), + 55: uint16(30641), + 56: uint16(30642), + 57: uint16(30644), + 58: uint16(30646), + 59: uint16(30647), + 60: uint16(30648), + 61: uint16(30649), + 62: uint16(30650), + 63: uint16(30652), + 64: uint16(30654), + 65: uint16(30656), + 66: uint16(30657), + 67: uint16(30658), + 68: uint16(30659), + 69: uint16(30660), + 70: uint16(30661), + 71: uint16(30662), + 72: uint16(30663), + 73: uint16(30664), + 74: uint16(30665), + 75: uint16(30666), + 76: uint16(30667), + 77: uint16(30668), + 78: uint16(30670), + 79: uint16(30671), + 80: uint16(30672), + 81: uint16(30673), + 82: uint16(30674), + 83: uint16(30675), + 84: uint16(30676), + 85: uint16(30677), + 86: uint16(30678), + 87: uint16(30680), + 88: uint16(30681), + 89: uint16(30682), + 90: uint16(30685), + 91: uint16(30686), + 92: uint16(30687), + 93: uint16(30688), + 94: uint16(30689), + 95: uint16(30692), + 96: uint16(30149), + 97: uint16(24182), + 98: uint16(29627), + 99: uint16(33760), + 100: uint16(25773), + 101: uint16(25320), + 102: uint16(38069), + 103: uint16(27874), + 104: uint16(21338), + 105: uint16(21187), + 106: uint16(25615), + 107: uint16(38082), + 108: uint16(31636), + 109: uint16(20271), + 110: uint16(24091), + 111: uint16(33334), + 112: uint16(33046), + 113: uint16(33162), + 114: uint16(28196), + 115: uint16(27850), + 116: uint16(39539), + 117: uint16(25429), + 118: uint16(21340), + 119: uint16(21754), + 120: uint16(34917), + 121: uint16(22496), + 122: uint16(19981), + 123: uint16(24067), + 124: uint16(27493), + 125: uint16(31807), + 126: uint16(37096), + 127: uint16(24598), + 128: uint16(25830), + 129: uint16(29468), + 130: uint16(35009), + 131: uint16(26448), + 132: uint16(25165), + 133: uint16(36130), + 134: uint16(30572), + 135: uint16(36393), + 136: uint16(37319), + 137: uint16(24425), + 138: uint16(33756), + 139: uint16(34081), + 140: uint16(39184), + 141: uint16(21442), + 142: uint16(34453), + 143: uint16(27531), + 144: uint16(24813), + 145: uint16(24808), + 146: uint16(28799), + 147: uint16(33485), + 148: uint16(33329), + 149: uint16(20179), + 150: uint16(27815), + 151: uint16(34255), + 152: uint16(25805), + 153: uint16(31961), + 154: uint16(27133), + 155: uint16(26361), + 156: uint16(33609), + 157: uint16(21397), + 158: uint16(31574), + 159: uint16(20391), + 160: uint16(20876), + 161: uint16(27979), + 162: uint16(23618), + 163: uint16(36461), + 164: uint16(25554), + 165: uint16(21449), + 166: uint16(33580), + 167: uint16(33590), + 168: uint16(26597), + 169: uint16(30900), + 170: uint16(25661), + 171: uint16(23519), + 172: uint16(23700), + 173: uint16(24046), + 174: uint16(35815), + 175: uint16(25286), + 176: uint16(26612), + 177: uint16(35962), + 178: uint16(25600), + 179: uint16(25530), + 180: uint16(34633), + 181: uint16(39307), + 182: uint16(35863), + 183: uint16(32544), + 184: uint16(38130), + 185: uint16(20135), + 186: uint16(38416), + 187: uint16(39076), + 188: uint16(26124), + 189: uint16(29462), + }, + 50: { + 0: uint16(30694), + 1: uint16(30696), + 2: uint16(30698), + 3: uint16(30703), + 4: uint16(30704), + 5: uint16(30705), + 6: uint16(30706), + 7: uint16(30708), + 8: uint16(30709), + 9: uint16(30711), + 10: uint16(30713), + 11: uint16(30714), + 12: uint16(30715), + 13: uint16(30716), + 14: uint16(30723), + 15: uint16(30724), + 16: uint16(30725), + 17: uint16(30726), + 18: uint16(30727), + 19: uint16(30728), + 20: uint16(30730), + 21: uint16(30731), + 22: uint16(30734), + 23: uint16(30735), + 24: uint16(30736), + 25: uint16(30739), + 26: uint16(30741), + 27: uint16(30745), + 28: uint16(30747), + 29: uint16(30750), + 30: uint16(30752), + 31: uint16(30753), + 32: uint16(30754), + 33: uint16(30756), + 34: uint16(30760), + 35: uint16(30762), + 36: uint16(30763), + 37: uint16(30766), + 38: uint16(30767), + 39: uint16(30769), + 40: uint16(30770), + 41: uint16(30771), + 42: uint16(30773), + 43: uint16(30774), + 44: uint16(30781), + 45: uint16(30783), + 46: uint16(30785), + 47: uint16(30786), + 48: uint16(30787), + 49: uint16(30788), + 50: uint16(30790), + 51: uint16(30792), + 52: uint16(30793), + 53: uint16(30794), + 54: uint16(30795), + 55: uint16(30797), + 56: uint16(30799), + 57: uint16(30801), + 58: uint16(30803), + 59: uint16(30804), + 60: uint16(30808), + 61: uint16(30809), + 62: uint16(30810), + 63: uint16(30811), + 64: uint16(30812), + 65: uint16(30814), + 66: uint16(30815), + 67: uint16(30816), + 68: uint16(30817), + 69: uint16(30818), + 70: uint16(30819), + 71: uint16(30820), + 72: uint16(30821), + 73: uint16(30822), + 74: uint16(30823), + 75: uint16(30824), + 76: uint16(30825), + 77: uint16(30831), + 78: uint16(30832), + 79: uint16(30833), + 80: uint16(30834), + 81: uint16(30835), + 82: uint16(30836), + 83: uint16(30837), + 84: uint16(30838), + 85: uint16(30840), + 86: uint16(30841), + 87: uint16(30842), + 88: uint16(30843), + 89: uint16(30845), + 90: uint16(30846), + 91: uint16(30847), + 92: uint16(30848), + 93: uint16(30849), + 94: uint16(30850), + 95: uint16(30851), + 96: uint16(22330), + 97: uint16(23581), + 98: uint16(24120), + 99: uint16(38271), + 100: uint16(20607), + 101: uint16(32928), + 102: uint16(21378), + 103: uint16(25950), + 104: uint16(30021), + 105: uint16(21809), + 106: uint16(20513), + 107: uint16(36229), + 108: uint16(25220), + 109: uint16(38046), + 110: uint16(26397), + 111: uint16(22066), + 112: uint16(28526), + 113: uint16(24034), + 114: uint16(21557), + 115: uint16(28818), + 116: uint16(36710), + 117: uint16(25199), + 118: uint16(25764), + 119: uint16(25507), + 120: uint16(24443), + 121: uint16(28552), + 122: uint16(37108), + 123: uint16(33251), + 124: uint16(36784), + 125: uint16(23576), + 126: uint16(26216), + 127: uint16(24561), + 128: uint16(27785), + 129: uint16(38472), + 130: uint16(36225), + 131: uint16(34924), + 132: uint16(25745), + 133: uint16(31216), + 134: uint16(22478), + 135: uint16(27225), + 136: uint16(25104), + 137: uint16(21576), + 138: uint16(20056), + 139: uint16(31243), + 140: uint16(24809), + 141: uint16(28548), + 142: uint16(35802), + 143: uint16(25215), + 144: uint16(36894), + 145: uint16(39563), + 146: uint16(31204), + 147: uint16(21507), + 148: uint16(30196), + 149: uint16(25345), + 150: uint16(21273), + 151: uint16(27744), + 152: uint16(36831), + 153: uint16(24347), + 154: uint16(39536), + 155: uint16(32827), + 156: uint16(40831), + 157: uint16(20360), + 158: uint16(23610), + 159: uint16(36196), + 160: uint16(32709), + 161: uint16(26021), + 162: uint16(28861), + 163: uint16(20805), + 164: uint16(20914), + 165: uint16(34411), + 166: uint16(23815), + 167: uint16(23456), + 168: uint16(25277), + 169: uint16(37228), + 170: uint16(30068), + 171: uint16(36364), + 172: uint16(31264), + 173: uint16(24833), + 174: uint16(31609), + 175: uint16(20167), + 176: uint16(32504), + 177: uint16(30597), + 178: uint16(19985), + 179: uint16(33261), + 180: uint16(21021), + 181: uint16(20986), + 182: uint16(27249), + 183: uint16(21416), + 184: uint16(36487), + 185: uint16(38148), + 186: uint16(38607), + 187: uint16(28353), + 188: uint16(38500), + 189: uint16(26970), + }, + 51: { + 0: uint16(30852), + 1: uint16(30853), + 2: uint16(30854), + 3: uint16(30856), + 4: uint16(30858), + 5: uint16(30859), + 6: uint16(30863), + 7: uint16(30864), + 8: uint16(30866), + 9: uint16(30868), + 10: uint16(30869), + 11: uint16(30870), + 12: uint16(30873), + 13: uint16(30877), + 14: uint16(30878), + 15: uint16(30880), + 16: uint16(30882), + 17: uint16(30884), + 18: uint16(30886), + 19: uint16(30888), + 20: uint16(30889), + 21: uint16(30890), + 22: uint16(30891), + 23: uint16(30892), + 24: uint16(30893), + 25: uint16(30894), + 26: uint16(30895), + 27: uint16(30901), + 28: uint16(30902), + 29: uint16(30903), + 30: uint16(30904), + 31: uint16(30906), + 32: uint16(30907), + 33: uint16(30908), + 34: uint16(30909), + 35: uint16(30911), + 36: uint16(30912), + 37: uint16(30914), + 38: uint16(30915), + 39: uint16(30916), + 40: uint16(30918), + 41: uint16(30919), + 42: uint16(30920), + 43: uint16(30924), + 44: uint16(30925), + 45: uint16(30926), + 46: uint16(30927), + 47: uint16(30929), + 48: uint16(30930), + 49: uint16(30931), + 50: uint16(30934), + 51: uint16(30935), + 52: uint16(30936), + 53: uint16(30938), + 54: uint16(30939), + 55: uint16(30940), + 56: uint16(30941), + 57: uint16(30942), + 58: uint16(30943), + 59: uint16(30944), + 60: uint16(30945), + 61: uint16(30946), + 62: uint16(30947), + 63: uint16(30948), + 64: uint16(30949), + 65: uint16(30950), + 66: uint16(30951), + 67: uint16(30953), + 68: uint16(30954), + 69: uint16(30955), + 70: uint16(30957), + 71: uint16(30958), + 72: uint16(30959), + 73: uint16(30960), + 74: uint16(30961), + 75: uint16(30963), + 76: uint16(30965), + 77: uint16(30966), + 78: uint16(30968), + 79: uint16(30969), + 80: uint16(30971), + 81: uint16(30972), + 82: uint16(30973), + 83: uint16(30974), + 84: uint16(30975), + 85: uint16(30976), + 86: uint16(30978), + 87: uint16(30979), + 88: uint16(30980), + 89: uint16(30982), + 90: uint16(30983), + 91: uint16(30984), + 92: uint16(30985), + 93: uint16(30986), + 94: uint16(30987), + 95: uint16(30988), + 96: uint16(30784), + 97: uint16(20648), + 98: uint16(30679), + 99: uint16(25616), + 100: uint16(35302), + 101: uint16(22788), + 102: uint16(25571), + 103: uint16(24029), + 104: uint16(31359), + 105: uint16(26941), + 106: uint16(20256), + 107: uint16(33337), + 108: uint16(21912), + 109: uint16(20018), + 110: uint16(30126), + 111: uint16(31383), + 112: uint16(24162), + 113: uint16(24202), + 114: uint16(38383), + 115: uint16(21019), + 116: uint16(21561), + 117: uint16(28810), + 118: uint16(25462), + 119: uint16(38180), + 120: uint16(22402), + 121: uint16(26149), + 122: uint16(26943), + 123: uint16(37255), + 124: uint16(21767), + 125: uint16(28147), + 126: uint16(32431), + 127: uint16(34850), + 128: uint16(25139), + 129: uint16(32496), + 130: uint16(30133), + 131: uint16(33576), + 132: uint16(30913), + 133: uint16(38604), + 134: uint16(36766), + 135: uint16(24904), + 136: uint16(29943), + 137: uint16(35789), + 138: uint16(27492), + 139: uint16(21050), + 140: uint16(36176), + 141: uint16(27425), + 142: uint16(32874), + 143: uint16(33905), + 144: uint16(22257), + 145: uint16(21254), + 146: uint16(20174), + 147: uint16(19995), + 148: uint16(20945), + 149: uint16(31895), + 150: uint16(37259), + 151: uint16(31751), + 152: uint16(20419), + 153: uint16(36479), + 154: uint16(31713), + 155: uint16(31388), + 156: uint16(25703), + 157: uint16(23828), + 158: uint16(20652), + 159: uint16(33030), + 160: uint16(30209), + 161: uint16(31929), + 162: uint16(28140), + 163: uint16(32736), + 164: uint16(26449), + 165: uint16(23384), + 166: uint16(23544), + 167: uint16(30923), + 168: uint16(25774), + 169: uint16(25619), + 170: uint16(25514), + 171: uint16(25387), + 172: uint16(38169), + 173: uint16(25645), + 174: uint16(36798), + 175: uint16(31572), + 176: uint16(30249), + 177: uint16(25171), + 178: uint16(22823), + 179: uint16(21574), + 180: uint16(27513), + 181: uint16(20643), + 182: uint16(25140), + 183: uint16(24102), + 184: uint16(27526), + 185: uint16(20195), + 186: uint16(36151), + 187: uint16(34955), + 188: uint16(24453), + 189: uint16(36910), + }, + 52: { + 0: uint16(30989), + 1: uint16(30990), + 2: uint16(30991), + 3: uint16(30992), + 4: uint16(30993), + 5: uint16(30994), + 6: uint16(30996), + 7: uint16(30997), + 8: uint16(30998), + 9: uint16(30999), + 10: uint16(31000), + 11: uint16(31001), + 12: uint16(31002), + 13: uint16(31003), + 14: uint16(31004), + 15: uint16(31005), + 16: uint16(31007), + 17: uint16(31008), + 18: uint16(31009), + 19: uint16(31010), + 20: uint16(31011), + 21: uint16(31013), + 22: uint16(31014), + 23: uint16(31015), + 24: uint16(31016), + 25: uint16(31017), + 26: uint16(31018), + 27: uint16(31019), + 28: uint16(31020), + 29: uint16(31021), + 30: uint16(31022), + 31: uint16(31023), + 32: uint16(31024), + 33: uint16(31025), + 34: uint16(31026), + 35: uint16(31027), + 36: uint16(31029), + 37: uint16(31030), + 38: uint16(31031), + 39: uint16(31032), + 40: uint16(31033), + 41: uint16(31037), + 42: uint16(31039), + 43: uint16(31042), + 44: uint16(31043), + 45: uint16(31044), + 46: uint16(31045), + 47: uint16(31047), + 48: uint16(31050), + 49: uint16(31051), + 50: uint16(31052), + 51: uint16(31053), + 52: uint16(31054), + 53: uint16(31055), + 54: uint16(31056), + 55: uint16(31057), + 56: uint16(31058), + 57: uint16(31060), + 58: uint16(31061), + 59: uint16(31064), + 60: uint16(31065), + 61: uint16(31073), + 62: uint16(31075), + 63: uint16(31076), + 64: uint16(31078), + 65: uint16(31081), + 66: uint16(31082), + 67: uint16(31083), + 68: uint16(31084), + 69: uint16(31086), + 70: uint16(31088), + 71: uint16(31089), + 72: uint16(31090), + 73: uint16(31091), + 74: uint16(31092), + 75: uint16(31093), + 76: uint16(31094), + 77: uint16(31097), + 78: uint16(31099), + 79: uint16(31100), + 80: uint16(31101), + 81: uint16(31102), + 82: uint16(31103), + 83: uint16(31106), + 84: uint16(31107), + 85: uint16(31110), + 86: uint16(31111), + 87: uint16(31112), + 88: uint16(31113), + 89: uint16(31115), + 90: uint16(31116), + 91: uint16(31117), + 92: uint16(31118), + 93: uint16(31120), + 94: uint16(31121), + 95: uint16(31122), + 96: uint16(24608), + 97: uint16(32829), + 98: uint16(25285), + 99: uint16(20025), + 100: uint16(21333), + 101: uint16(37112), + 102: uint16(25528), + 103: uint16(32966), + 104: uint16(26086), + 105: uint16(27694), + 106: uint16(20294), + 107: uint16(24814), + 108: uint16(28129), + 109: uint16(35806), + 110: uint16(24377), + 111: uint16(34507), + 112: uint16(24403), + 113: uint16(25377), + 114: uint16(20826), + 115: uint16(33633), + 116: uint16(26723), + 117: uint16(20992), + 118: uint16(25443), + 119: uint16(36424), + 120: uint16(20498), + 121: uint16(23707), + 122: uint16(31095), + 123: uint16(23548), + 124: uint16(21040), + 125: uint16(31291), + 126: uint16(24764), + 127: uint16(36947), + 128: uint16(30423), + 129: uint16(24503), + 130: uint16(24471), + 131: uint16(30340), + 132: uint16(36460), + 133: uint16(28783), + 134: uint16(30331), + 135: uint16(31561), + 136: uint16(30634), + 137: uint16(20979), + 138: uint16(37011), + 139: uint16(22564), + 140: uint16(20302), + 141: uint16(28404), + 142: uint16(36842), + 143: uint16(25932), + 144: uint16(31515), + 145: uint16(29380), + 146: uint16(28068), + 147: uint16(32735), + 148: uint16(23265), + 149: uint16(25269), + 150: uint16(24213), + 151: uint16(22320), + 152: uint16(33922), + 153: uint16(31532), + 154: uint16(24093), + 155: uint16(24351), + 156: uint16(36882), + 157: uint16(32532), + 158: uint16(39072), + 159: uint16(25474), + 160: uint16(28359), + 161: uint16(30872), + 162: uint16(28857), + 163: uint16(20856), + 164: uint16(38747), + 165: uint16(22443), + 166: uint16(30005), + 167: uint16(20291), + 168: uint16(30008), + 169: uint16(24215), + 170: uint16(24806), + 171: uint16(22880), + 172: uint16(28096), + 173: uint16(27583), + 174: uint16(30857), + 175: uint16(21500), + 176: uint16(38613), + 177: uint16(20939), + 178: uint16(20993), + 179: uint16(25481), + 180: uint16(21514), + 181: uint16(38035), + 182: uint16(35843), + 183: uint16(36300), + 184: uint16(29241), + 185: uint16(30879), + 186: uint16(34678), + 187: uint16(36845), + 188: uint16(35853), + 189: uint16(21472), + }, + 53: { + 0: uint16(31123), + 1: uint16(31124), + 2: uint16(31125), + 3: uint16(31126), + 4: uint16(31127), + 5: uint16(31128), + 6: uint16(31129), + 7: uint16(31131), + 8: uint16(31132), + 9: uint16(31133), + 10: uint16(31134), + 11: uint16(31135), + 12: uint16(31136), + 13: uint16(31137), + 14: uint16(31138), + 15: uint16(31139), + 16: uint16(31140), + 17: uint16(31141), + 18: uint16(31142), + 19: uint16(31144), + 20: uint16(31145), + 21: uint16(31146), + 22: uint16(31147), + 23: uint16(31148), + 24: uint16(31149), + 25: uint16(31150), + 26: uint16(31151), + 27: uint16(31152), + 28: uint16(31153), + 29: uint16(31154), + 30: uint16(31156), + 31: uint16(31157), + 32: uint16(31158), + 33: uint16(31159), + 34: uint16(31160), + 35: uint16(31164), + 36: uint16(31167), + 37: uint16(31170), + 38: uint16(31172), + 39: uint16(31173), + 40: uint16(31175), + 41: uint16(31176), + 42: uint16(31178), + 43: uint16(31180), + 44: uint16(31182), + 45: uint16(31183), + 46: uint16(31184), + 47: uint16(31187), + 48: uint16(31188), + 49: uint16(31190), + 50: uint16(31191), + 51: uint16(31193), + 52: uint16(31194), + 53: uint16(31195), + 54: uint16(31196), + 55: uint16(31197), + 56: uint16(31198), + 57: uint16(31200), + 58: uint16(31201), + 59: uint16(31202), + 60: uint16(31205), + 61: uint16(31208), + 62: uint16(31210), + 63: uint16(31212), + 64: uint16(31214), + 65: uint16(31217), + 66: uint16(31218), + 67: uint16(31219), + 68: uint16(31220), + 69: uint16(31221), + 70: uint16(31222), + 71: uint16(31223), + 72: uint16(31225), + 73: uint16(31226), + 74: uint16(31228), + 75: uint16(31230), + 76: uint16(31231), + 77: uint16(31233), + 78: uint16(31236), + 79: uint16(31237), + 80: uint16(31239), + 81: uint16(31240), + 82: uint16(31241), + 83: uint16(31242), + 84: uint16(31244), + 85: uint16(31247), + 86: uint16(31248), + 87: uint16(31249), + 88: uint16(31250), + 89: uint16(31251), + 90: uint16(31253), + 91: uint16(31254), + 92: uint16(31256), + 93: uint16(31257), + 94: uint16(31259), + 95: uint16(31260), + 96: uint16(19969), + 97: uint16(30447), + 98: uint16(21486), + 99: uint16(38025), + 100: uint16(39030), + 101: uint16(40718), + 102: uint16(38189), + 103: uint16(23450), + 104: uint16(35746), + 105: uint16(20002), + 106: uint16(19996), + 107: uint16(20908), + 108: uint16(33891), + 109: uint16(25026), + 110: uint16(21160), + 111: uint16(26635), + 112: uint16(20375), + 113: uint16(24683), + 114: uint16(20923), + 115: uint16(27934), + 116: uint16(20828), + 117: uint16(25238), + 118: uint16(26007), + 119: uint16(38497), + 120: uint16(35910), + 121: uint16(36887), + 122: uint16(30168), + 123: uint16(37117), + 124: uint16(30563), + 125: uint16(27602), + 126: uint16(29322), + 127: uint16(29420), + 128: uint16(35835), + 129: uint16(22581), + 130: uint16(30585), + 131: uint16(36172), + 132: uint16(26460), + 133: uint16(38208), + 134: uint16(32922), + 135: uint16(24230), + 136: uint16(28193), + 137: uint16(22930), + 138: uint16(31471), + 139: uint16(30701), + 140: uint16(38203), + 141: uint16(27573), + 142: uint16(26029), + 143: uint16(32526), + 144: uint16(22534), + 145: uint16(20817), + 146: uint16(38431), + 147: uint16(23545), + 148: uint16(22697), + 149: uint16(21544), + 150: uint16(36466), + 151: uint16(25958), + 152: uint16(39039), + 153: uint16(22244), + 154: uint16(38045), + 155: uint16(30462), + 156: uint16(36929), + 157: uint16(25479), + 158: uint16(21702), + 159: uint16(22810), + 160: uint16(22842), + 161: uint16(22427), + 162: uint16(36530), + 163: uint16(26421), + 164: uint16(36346), + 165: uint16(33333), + 166: uint16(21057), + 167: uint16(24816), + 168: uint16(22549), + 169: uint16(34558), + 170: uint16(23784), + 171: uint16(40517), + 172: uint16(20420), + 173: uint16(39069), + 174: uint16(35769), + 175: uint16(23077), + 176: uint16(24694), + 177: uint16(21380), + 178: uint16(25212), + 179: uint16(36943), + 180: uint16(37122), + 181: uint16(39295), + 182: uint16(24681), + 183: uint16(32780), + 184: uint16(20799), + 185: uint16(32819), + 186: uint16(23572), + 187: uint16(39285), + 188: uint16(27953), + 189: uint16(20108), + }, + 54: { + 0: uint16(31261), + 1: uint16(31263), + 2: uint16(31265), + 3: uint16(31266), + 4: uint16(31268), + 5: uint16(31269), + 6: uint16(31270), + 7: uint16(31271), + 8: uint16(31272), + 9: uint16(31273), + 10: uint16(31274), + 11: uint16(31275), + 12: uint16(31276), + 13: uint16(31277), + 14: uint16(31278), + 15: uint16(31279), + 16: uint16(31280), + 17: uint16(31281), + 18: uint16(31282), + 19: uint16(31284), + 20: uint16(31285), + 21: uint16(31286), + 22: uint16(31288), + 23: uint16(31290), + 24: uint16(31294), + 25: uint16(31296), + 26: uint16(31297), + 27: uint16(31298), + 28: uint16(31299), + 29: uint16(31300), + 30: uint16(31301), + 31: uint16(31303), + 32: uint16(31304), + 33: uint16(31305), + 34: uint16(31306), + 35: uint16(31307), + 36: uint16(31308), + 37: uint16(31309), + 38: uint16(31310), + 39: uint16(31311), + 40: uint16(31312), + 41: uint16(31314), + 42: uint16(31315), + 43: uint16(31316), + 44: uint16(31317), + 45: uint16(31318), + 46: uint16(31320), + 47: uint16(31321), + 48: uint16(31322), + 49: uint16(31323), + 50: uint16(31324), + 51: uint16(31325), + 52: uint16(31326), + 53: uint16(31327), + 54: uint16(31328), + 55: uint16(31329), + 56: uint16(31330), + 57: uint16(31331), + 58: uint16(31332), + 59: uint16(31333), + 60: uint16(31334), + 61: uint16(31335), + 62: uint16(31336), + 63: uint16(31337), + 64: uint16(31338), + 65: uint16(31339), + 66: uint16(31340), + 67: uint16(31341), + 68: uint16(31342), + 69: uint16(31343), + 70: uint16(31345), + 71: uint16(31346), + 72: uint16(31347), + 73: uint16(31349), + 74: uint16(31355), + 75: uint16(31356), + 76: uint16(31357), + 77: uint16(31358), + 78: uint16(31362), + 79: uint16(31365), + 80: uint16(31367), + 81: uint16(31369), + 82: uint16(31370), + 83: uint16(31371), + 84: uint16(31372), + 85: uint16(31374), + 86: uint16(31375), + 87: uint16(31376), + 88: uint16(31379), + 89: uint16(31380), + 90: uint16(31385), + 91: uint16(31386), + 92: uint16(31387), + 93: uint16(31390), + 94: uint16(31393), + 95: uint16(31394), + 96: uint16(36144), + 97: uint16(21457), + 98: uint16(32602), + 99: uint16(31567), + 100: uint16(20240), + 101: uint16(20047), + 102: uint16(38400), + 103: uint16(27861), + 104: uint16(29648), + 105: uint16(34281), + 106: uint16(24070), + 107: uint16(30058), + 108: uint16(32763), + 109: uint16(27146), + 110: uint16(30718), + 111: uint16(38034), + 112: uint16(32321), + 113: uint16(20961), + 114: uint16(28902), + 115: uint16(21453), + 116: uint16(36820), + 117: uint16(33539), + 118: uint16(36137), + 119: uint16(29359), + 120: uint16(39277), + 121: uint16(27867), + 122: uint16(22346), + 123: uint16(33459), + 124: uint16(26041), + 125: uint16(32938), + 126: uint16(25151), + 127: uint16(38450), + 128: uint16(22952), + 129: uint16(20223), + 130: uint16(35775), + 131: uint16(32442), + 132: uint16(25918), + 133: uint16(33778), + 134: uint16(38750), + 135: uint16(21857), + 136: uint16(39134), + 137: uint16(32933), + 138: uint16(21290), + 139: uint16(35837), + 140: uint16(21536), + 141: uint16(32954), + 142: uint16(24223), + 143: uint16(27832), + 144: uint16(36153), + 145: uint16(33452), + 146: uint16(37210), + 147: uint16(21545), + 148: uint16(27675), + 149: uint16(20998), + 150: uint16(32439), + 151: uint16(22367), + 152: uint16(28954), + 153: uint16(27774), + 154: uint16(31881), + 155: uint16(22859), + 156: uint16(20221), + 157: uint16(24575), + 158: uint16(24868), + 159: uint16(31914), + 160: uint16(20016), + 161: uint16(23553), + 162: uint16(26539), + 163: uint16(34562), + 164: uint16(23792), + 165: uint16(38155), + 166: uint16(39118), + 167: uint16(30127), + 168: uint16(28925), + 169: uint16(36898), + 170: uint16(20911), + 171: uint16(32541), + 172: uint16(35773), + 173: uint16(22857), + 174: uint16(20964), + 175: uint16(20315), + 176: uint16(21542), + 177: uint16(22827), + 178: uint16(25975), + 179: uint16(32932), + 180: uint16(23413), + 181: uint16(25206), + 182: uint16(25282), + 183: uint16(36752), + 184: uint16(24133), + 185: uint16(27679), + 186: uint16(31526), + 187: uint16(20239), + 188: uint16(20440), + 189: uint16(26381), + }, + 55: { + 0: uint16(31395), + 1: uint16(31396), + 2: uint16(31399), + 3: uint16(31401), + 4: uint16(31402), + 5: uint16(31403), + 6: uint16(31406), + 7: uint16(31407), + 8: uint16(31408), + 9: uint16(31409), + 10: uint16(31410), + 11: uint16(31412), + 12: uint16(31413), + 13: uint16(31414), + 14: uint16(31415), + 15: uint16(31416), + 16: uint16(31417), + 17: uint16(31418), + 18: uint16(31419), + 19: uint16(31420), + 20: uint16(31421), + 21: uint16(31422), + 22: uint16(31424), + 23: uint16(31425), + 24: uint16(31426), + 25: uint16(31427), + 26: uint16(31428), + 27: uint16(31429), + 28: uint16(31430), + 29: uint16(31431), + 30: uint16(31432), + 31: uint16(31433), + 32: uint16(31434), + 33: uint16(31436), + 34: uint16(31437), + 35: uint16(31438), + 36: uint16(31439), + 37: uint16(31440), + 38: uint16(31441), + 39: uint16(31442), + 40: uint16(31443), + 41: uint16(31444), + 42: uint16(31445), + 43: uint16(31447), + 44: uint16(31448), + 45: uint16(31450), + 46: uint16(31451), + 47: uint16(31452), + 48: uint16(31453), + 49: uint16(31457), + 50: uint16(31458), + 51: uint16(31460), + 52: uint16(31463), + 53: uint16(31464), + 54: uint16(31465), + 55: uint16(31466), + 56: uint16(31467), + 57: uint16(31468), + 58: uint16(31470), + 59: uint16(31472), + 60: uint16(31473), + 61: uint16(31474), + 62: uint16(31475), + 63: uint16(31476), + 64: uint16(31477), + 65: uint16(31478), + 66: uint16(31479), + 67: uint16(31480), + 68: uint16(31483), + 69: uint16(31484), + 70: uint16(31486), + 71: uint16(31488), + 72: uint16(31489), + 73: uint16(31490), + 74: uint16(31493), + 75: uint16(31495), + 76: uint16(31497), + 77: uint16(31500), + 78: uint16(31501), + 79: uint16(31502), + 80: uint16(31504), + 81: uint16(31506), + 82: uint16(31507), + 83: uint16(31510), + 84: uint16(31511), + 85: uint16(31512), + 86: uint16(31514), + 87: uint16(31516), + 88: uint16(31517), + 89: uint16(31519), + 90: uint16(31521), + 91: uint16(31522), + 92: uint16(31523), + 93: uint16(31527), + 94: uint16(31529), + 95: uint16(31533), + 96: uint16(28014), + 97: uint16(28074), + 98: uint16(31119), + 99: uint16(34993), + 100: uint16(24343), + 101: uint16(29995), + 102: uint16(25242), + 103: uint16(36741), + 104: uint16(20463), + 105: uint16(37340), + 106: uint16(26023), + 107: uint16(33071), + 108: uint16(33105), + 109: uint16(24220), + 110: uint16(33104), + 111: uint16(36212), + 112: uint16(21103), + 113: uint16(35206), + 114: uint16(36171), + 115: uint16(22797), + 116: uint16(20613), + 117: uint16(20184), + 118: uint16(38428), + 119: uint16(29238), + 120: uint16(33145), + 121: uint16(36127), + 122: uint16(23500), + 123: uint16(35747), + 124: uint16(38468), + 125: uint16(22919), + 126: uint16(32538), + 127: uint16(21648), + 128: uint16(22134), + 129: uint16(22030), + 130: uint16(35813), + 131: uint16(25913), + 132: uint16(27010), + 133: uint16(38041), + 134: uint16(30422), + 135: uint16(28297), + 136: uint16(24178), + 137: uint16(29976), + 138: uint16(26438), + 139: uint16(26577), + 140: uint16(31487), + 141: uint16(32925), + 142: uint16(36214), + 143: uint16(24863), + 144: uint16(31174), + 145: uint16(25954), + 146: uint16(36195), + 147: uint16(20872), + 148: uint16(21018), + 149: uint16(38050), + 150: uint16(32568), + 151: uint16(32923), + 152: uint16(32434), + 153: uint16(23703), + 154: uint16(28207), + 155: uint16(26464), + 156: uint16(31705), + 157: uint16(30347), + 158: uint16(39640), + 159: uint16(33167), + 160: uint16(32660), + 161: uint16(31957), + 162: uint16(25630), + 163: uint16(38224), + 164: uint16(31295), + 165: uint16(21578), + 166: uint16(21733), + 167: uint16(27468), + 168: uint16(25601), + 169: uint16(25096), + 170: uint16(40509), + 171: uint16(33011), + 172: uint16(30105), + 173: uint16(21106), + 174: uint16(38761), + 175: uint16(33883), + 176: uint16(26684), + 177: uint16(34532), + 178: uint16(38401), + 179: uint16(38548), + 180: uint16(38124), + 181: uint16(20010), + 182: uint16(21508), + 183: uint16(32473), + 184: uint16(26681), + 185: uint16(36319), + 186: uint16(32789), + 187: uint16(26356), + 188: uint16(24218), + 189: uint16(32697), + }, + 56: { + 0: uint16(31535), + 1: uint16(31536), + 2: uint16(31538), + 3: uint16(31540), + 4: uint16(31541), + 5: uint16(31542), + 6: uint16(31543), + 7: uint16(31545), + 8: uint16(31547), + 9: uint16(31549), + 10: uint16(31551), + 11: uint16(31552), + 12: uint16(31553), + 13: uint16(31554), + 14: uint16(31555), + 15: uint16(31556), + 16: uint16(31558), + 17: uint16(31560), + 18: uint16(31562), + 19: uint16(31565), + 20: uint16(31566), + 21: uint16(31571), + 22: uint16(31573), + 23: uint16(31575), + 24: uint16(31577), + 25: uint16(31580), + 26: uint16(31582), + 27: uint16(31583), + 28: uint16(31585), + 29: uint16(31587), + 30: uint16(31588), + 31: uint16(31589), + 32: uint16(31590), + 33: uint16(31591), + 34: uint16(31592), + 35: uint16(31593), + 36: uint16(31594), + 37: uint16(31595), + 38: uint16(31596), + 39: uint16(31597), + 40: uint16(31599), + 41: uint16(31600), + 42: uint16(31603), + 43: uint16(31604), + 44: uint16(31606), + 45: uint16(31608), + 46: uint16(31610), + 47: uint16(31612), + 48: uint16(31613), + 49: uint16(31615), + 50: uint16(31617), + 51: uint16(31618), + 52: uint16(31619), + 53: uint16(31620), + 54: uint16(31622), + 55: uint16(31623), + 56: uint16(31624), + 57: uint16(31625), + 58: uint16(31626), + 59: uint16(31627), + 60: uint16(31628), + 61: uint16(31630), + 62: uint16(31631), + 63: uint16(31633), + 64: uint16(31634), + 65: uint16(31635), + 66: uint16(31638), + 67: uint16(31640), + 68: uint16(31641), + 69: uint16(31642), + 70: uint16(31643), + 71: uint16(31646), + 72: uint16(31647), + 73: uint16(31648), + 74: uint16(31651), + 75: uint16(31652), + 76: uint16(31653), + 77: uint16(31662), + 78: uint16(31663), + 79: uint16(31664), + 80: uint16(31666), + 81: uint16(31667), + 82: uint16(31669), + 83: uint16(31670), + 84: uint16(31671), + 85: uint16(31673), + 86: uint16(31674), + 87: uint16(31675), + 88: uint16(31676), + 89: uint16(31677), + 90: uint16(31678), + 91: uint16(31679), + 92: uint16(31680), + 93: uint16(31682), + 94: uint16(31683), + 95: uint16(31684), + 96: uint16(22466), + 97: uint16(32831), + 98: uint16(26775), + 99: uint16(24037), + 100: uint16(25915), + 101: uint16(21151), + 102: uint16(24685), + 103: uint16(40858), + 104: uint16(20379), + 105: uint16(36524), + 106: uint16(20844), + 107: uint16(23467), + 108: uint16(24339), + 109: uint16(24041), + 110: uint16(27742), + 111: uint16(25329), + 112: uint16(36129), + 113: uint16(20849), + 114: uint16(38057), + 115: uint16(21246), + 116: uint16(27807), + 117: uint16(33503), + 118: uint16(29399), + 119: uint16(22434), + 120: uint16(26500), + 121: uint16(36141), + 122: uint16(22815), + 123: uint16(36764), + 124: uint16(33735), + 125: uint16(21653), + 126: uint16(31629), + 127: uint16(20272), + 128: uint16(27837), + 129: uint16(23396), + 130: uint16(22993), + 131: uint16(40723), + 132: uint16(21476), + 133: uint16(34506), + 134: uint16(39592), + 135: uint16(35895), + 136: uint16(32929), + 137: uint16(25925), + 138: uint16(39038), + 139: uint16(22266), + 140: uint16(38599), + 141: uint16(21038), + 142: uint16(29916), + 143: uint16(21072), + 144: uint16(23521), + 145: uint16(25346), + 146: uint16(35074), + 147: uint16(20054), + 148: uint16(25296), + 149: uint16(24618), + 150: uint16(26874), + 151: uint16(20851), + 152: uint16(23448), + 153: uint16(20896), + 154: uint16(35266), + 155: uint16(31649), + 156: uint16(39302), + 157: uint16(32592), + 158: uint16(24815), + 159: uint16(28748), + 160: uint16(36143), + 161: uint16(20809), + 162: uint16(24191), + 163: uint16(36891), + 164: uint16(29808), + 165: uint16(35268), + 166: uint16(22317), + 167: uint16(30789), + 168: uint16(24402), + 169: uint16(40863), + 170: uint16(38394), + 171: uint16(36712), + 172: uint16(39740), + 173: uint16(35809), + 174: uint16(30328), + 175: uint16(26690), + 176: uint16(26588), + 177: uint16(36330), + 178: uint16(36149), + 179: uint16(21053), + 180: uint16(36746), + 181: uint16(28378), + 182: uint16(26829), + 183: uint16(38149), + 184: uint16(37101), + 185: uint16(22269), + 186: uint16(26524), + 187: uint16(35065), + 188: uint16(36807), + 189: uint16(21704), + }, + 57: { + 0: uint16(31685), + 1: uint16(31688), + 2: uint16(31689), + 3: uint16(31690), + 4: uint16(31691), + 5: uint16(31693), + 6: uint16(31694), + 7: uint16(31695), + 8: uint16(31696), + 9: uint16(31698), + 10: uint16(31700), + 11: uint16(31701), + 12: uint16(31702), + 13: uint16(31703), + 14: uint16(31704), + 15: uint16(31707), + 16: uint16(31708), + 17: uint16(31710), + 18: uint16(31711), + 19: uint16(31712), + 20: uint16(31714), + 21: uint16(31715), + 22: uint16(31716), + 23: uint16(31719), + 24: uint16(31720), + 25: uint16(31721), + 26: uint16(31723), + 27: uint16(31724), + 28: uint16(31725), + 29: uint16(31727), + 30: uint16(31728), + 31: uint16(31730), + 32: uint16(31731), + 33: uint16(31732), + 34: uint16(31733), + 35: uint16(31734), + 36: uint16(31736), + 37: uint16(31737), + 38: uint16(31738), + 39: uint16(31739), + 40: uint16(31741), + 41: uint16(31743), + 42: uint16(31744), + 43: uint16(31745), + 44: uint16(31746), + 45: uint16(31747), + 46: uint16(31748), + 47: uint16(31749), + 48: uint16(31750), + 49: uint16(31752), + 50: uint16(31753), + 51: uint16(31754), + 52: uint16(31757), + 53: uint16(31758), + 54: uint16(31760), + 55: uint16(31761), + 56: uint16(31762), + 57: uint16(31763), + 58: uint16(31764), + 59: uint16(31765), + 60: uint16(31767), + 61: uint16(31768), + 62: uint16(31769), + 63: uint16(31770), + 64: uint16(31771), + 65: uint16(31772), + 66: uint16(31773), + 67: uint16(31774), + 68: uint16(31776), + 69: uint16(31777), + 70: uint16(31778), + 71: uint16(31779), + 72: uint16(31780), + 73: uint16(31781), + 74: uint16(31784), + 75: uint16(31785), + 76: uint16(31787), + 77: uint16(31788), + 78: uint16(31789), + 79: uint16(31790), + 80: uint16(31791), + 81: uint16(31792), + 82: uint16(31793), + 83: uint16(31794), + 84: uint16(31795), + 85: uint16(31796), + 86: uint16(31797), + 87: uint16(31798), + 88: uint16(31799), + 89: uint16(31801), + 90: uint16(31802), + 91: uint16(31803), + 92: uint16(31804), + 93: uint16(31805), + 94: uint16(31806), + 95: uint16(31810), + 96: uint16(39608), + 97: uint16(23401), + 98: uint16(28023), + 99: uint16(27686), + 100: uint16(20133), + 101: uint16(23475), + 102: uint16(39559), + 103: uint16(37219), + 104: uint16(25000), + 105: uint16(37039), + 106: uint16(38889), + 107: uint16(21547), + 108: uint16(28085), + 109: uint16(23506), + 110: uint16(20989), + 111: uint16(21898), + 112: uint16(32597), + 113: uint16(32752), + 114: uint16(25788), + 115: uint16(25421), + 116: uint16(26097), + 117: uint16(25022), + 118: uint16(24717), + 119: uint16(28938), + 120: uint16(27735), + 121: uint16(27721), + 122: uint16(22831), + 123: uint16(26477), + 124: uint16(33322), + 125: uint16(22741), + 126: uint16(22158), + 127: uint16(35946), + 128: uint16(27627), + 129: uint16(37085), + 130: uint16(22909), + 131: uint16(32791), + 132: uint16(21495), + 133: uint16(28009), + 134: uint16(21621), + 135: uint16(21917), + 136: uint16(33655), + 137: uint16(33743), + 138: uint16(26680), + 139: uint16(31166), + 140: uint16(21644), + 141: uint16(20309), + 142: uint16(21512), + 143: uint16(30418), + 144: uint16(35977), + 145: uint16(38402), + 146: uint16(27827), + 147: uint16(28088), + 148: uint16(36203), + 149: uint16(35088), + 150: uint16(40548), + 151: uint16(36154), + 152: uint16(22079), + 153: uint16(40657), + 154: uint16(30165), + 155: uint16(24456), + 156: uint16(29408), + 157: uint16(24680), + 158: uint16(21756), + 159: uint16(20136), + 160: uint16(27178), + 161: uint16(34913), + 162: uint16(24658), + 163: uint16(36720), + 164: uint16(21700), + 165: uint16(28888), + 166: uint16(34425), + 167: uint16(40511), + 168: uint16(27946), + 169: uint16(23439), + 170: uint16(24344), + 171: uint16(32418), + 172: uint16(21897), + 173: uint16(20399), + 174: uint16(29492), + 175: uint16(21564), + 176: uint16(21402), + 177: uint16(20505), + 178: uint16(21518), + 179: uint16(21628), + 180: uint16(20046), + 181: uint16(24573), + 182: uint16(29786), + 183: uint16(22774), + 184: uint16(33899), + 185: uint16(32993), + 186: uint16(34676), + 187: uint16(29392), + 188: uint16(31946), + 189: uint16(28246), + }, + 58: { + 0: uint16(31811), + 1: uint16(31812), + 2: uint16(31813), + 3: uint16(31814), + 4: uint16(31815), + 5: uint16(31816), + 6: uint16(31817), + 7: uint16(31818), + 8: uint16(31819), + 9: uint16(31820), + 10: uint16(31822), + 11: uint16(31823), + 12: uint16(31824), + 13: uint16(31825), + 14: uint16(31826), + 15: uint16(31827), + 16: uint16(31828), + 17: uint16(31829), + 18: uint16(31830), + 19: uint16(31831), + 20: uint16(31832), + 21: uint16(31833), + 22: uint16(31834), + 23: uint16(31835), + 24: uint16(31836), + 25: uint16(31837), + 26: uint16(31838), + 27: uint16(31839), + 28: uint16(31840), + 29: uint16(31841), + 30: uint16(31842), + 31: uint16(31843), + 32: uint16(31844), + 33: uint16(31845), + 34: uint16(31846), + 35: uint16(31847), + 36: uint16(31848), + 37: uint16(31849), + 38: uint16(31850), + 39: uint16(31851), + 40: uint16(31852), + 41: uint16(31853), + 42: uint16(31854), + 43: uint16(31855), + 44: uint16(31856), + 45: uint16(31857), + 46: uint16(31858), + 47: uint16(31861), + 48: uint16(31862), + 49: uint16(31863), + 50: uint16(31864), + 51: uint16(31865), + 52: uint16(31866), + 53: uint16(31870), + 54: uint16(31871), + 55: uint16(31872), + 56: uint16(31873), + 57: uint16(31874), + 58: uint16(31875), + 59: uint16(31876), + 60: uint16(31877), + 61: uint16(31878), + 62: uint16(31879), + 63: uint16(31880), + 64: uint16(31882), + 65: uint16(31883), + 66: uint16(31884), + 67: uint16(31885), + 68: uint16(31886), + 69: uint16(31887), + 70: uint16(31888), + 71: uint16(31891), + 72: uint16(31892), + 73: uint16(31894), + 74: uint16(31897), + 75: uint16(31898), + 76: uint16(31899), + 77: uint16(31904), + 78: uint16(31905), + 79: uint16(31907), + 80: uint16(31910), + 81: uint16(31911), + 82: uint16(31912), + 83: uint16(31913), + 84: uint16(31915), + 85: uint16(31916), + 86: uint16(31917), + 87: uint16(31919), + 88: uint16(31920), + 89: uint16(31924), + 90: uint16(31925), + 91: uint16(31926), + 92: uint16(31927), + 93: uint16(31928), + 94: uint16(31930), + 95: uint16(31931), + 96: uint16(24359), + 97: uint16(34382), + 98: uint16(21804), + 99: uint16(25252), + 100: uint16(20114), + 101: uint16(27818), + 102: uint16(25143), + 103: uint16(33457), + 104: uint16(21719), + 105: uint16(21326), + 106: uint16(29502), + 107: uint16(28369), + 108: uint16(30011), + 109: uint16(21010), + 110: uint16(21270), + 111: uint16(35805), + 112: uint16(27088), + 113: uint16(24458), + 114: uint16(24576), + 115: uint16(28142), + 116: uint16(22351), + 117: uint16(27426), + 118: uint16(29615), + 119: uint16(26707), + 120: uint16(36824), + 121: uint16(32531), + 122: uint16(25442), + 123: uint16(24739), + 124: uint16(21796), + 125: uint16(30186), + 126: uint16(35938), + 127: uint16(28949), + 128: uint16(28067), + 129: uint16(23462), + 130: uint16(24187), + 131: uint16(33618), + 132: uint16(24908), + 133: uint16(40644), + 134: uint16(30970), + 135: uint16(34647), + 136: uint16(31783), + 137: uint16(30343), + 138: uint16(20976), + 139: uint16(24822), + 140: uint16(29004), + 141: uint16(26179), + 142: uint16(24140), + 143: uint16(24653), + 144: uint16(35854), + 145: uint16(28784), + 146: uint16(25381), + 147: uint16(36745), + 148: uint16(24509), + 149: uint16(24674), + 150: uint16(34516), + 151: uint16(22238), + 152: uint16(27585), + 153: uint16(24724), + 154: uint16(24935), + 155: uint16(21321), + 156: uint16(24800), + 157: uint16(26214), + 158: uint16(36159), + 159: uint16(31229), + 160: uint16(20250), + 161: uint16(28905), + 162: uint16(27719), + 163: uint16(35763), + 164: uint16(35826), + 165: uint16(32472), + 166: uint16(33636), + 167: uint16(26127), + 168: uint16(23130), + 169: uint16(39746), + 170: uint16(27985), + 171: uint16(28151), + 172: uint16(35905), + 173: uint16(27963), + 174: uint16(20249), + 175: uint16(28779), + 176: uint16(33719), + 177: uint16(25110), + 178: uint16(24785), + 179: uint16(38669), + 180: uint16(36135), + 181: uint16(31096), + 182: uint16(20987), + 183: uint16(22334), + 184: uint16(22522), + 185: uint16(26426), + 186: uint16(30072), + 187: uint16(31293), + 188: uint16(31215), + 189: uint16(31637), + }, + 59: { + 0: uint16(31935), + 1: uint16(31936), + 2: uint16(31938), + 3: uint16(31939), + 4: uint16(31940), + 5: uint16(31942), + 6: uint16(31945), + 7: uint16(31947), + 8: uint16(31950), + 9: uint16(31951), + 10: uint16(31952), + 11: uint16(31953), + 12: uint16(31954), + 13: uint16(31955), + 14: uint16(31956), + 15: uint16(31960), + 16: uint16(31962), + 17: uint16(31963), + 18: uint16(31965), + 19: uint16(31966), + 20: uint16(31969), + 21: uint16(31970), + 22: uint16(31971), + 23: uint16(31972), + 24: uint16(31973), + 25: uint16(31974), + 26: uint16(31975), + 27: uint16(31977), + 28: uint16(31978), + 29: uint16(31979), + 30: uint16(31980), + 31: uint16(31981), + 32: uint16(31982), + 33: uint16(31984), + 34: uint16(31985), + 35: uint16(31986), + 36: uint16(31987), + 37: uint16(31988), + 38: uint16(31989), + 39: uint16(31990), + 40: uint16(31991), + 41: uint16(31993), + 42: uint16(31994), + 43: uint16(31996), + 44: uint16(31997), + 45: uint16(31998), + 46: uint16(31999), + 47: uint16(32000), + 48: uint16(32001), + 49: uint16(32002), + 50: uint16(32003), + 51: uint16(32004), + 52: uint16(32005), + 53: uint16(32006), + 54: uint16(32007), + 55: uint16(32008), + 56: uint16(32009), + 57: uint16(32011), + 58: uint16(32012), + 59: uint16(32013), + 60: uint16(32014), + 61: uint16(32015), + 62: uint16(32016), + 63: uint16(32017), + 64: uint16(32018), + 65: uint16(32019), + 66: uint16(32020), + 67: uint16(32021), + 68: uint16(32022), + 69: uint16(32023), + 70: uint16(32024), + 71: uint16(32025), + 72: uint16(32026), + 73: uint16(32027), + 74: uint16(32028), + 75: uint16(32029), + 76: uint16(32030), + 77: uint16(32031), + 78: uint16(32033), + 79: uint16(32035), + 80: uint16(32036), + 81: uint16(32037), + 82: uint16(32038), + 83: uint16(32040), + 84: uint16(32041), + 85: uint16(32042), + 86: uint16(32044), + 87: uint16(32045), + 88: uint16(32046), + 89: uint16(32048), + 90: uint16(32049), + 91: uint16(32050), + 92: uint16(32051), + 93: uint16(32052), + 94: uint16(32053), + 95: uint16(32054), + 96: uint16(32908), + 97: uint16(39269), + 98: uint16(36857), + 99: uint16(28608), + 100: uint16(35749), + 101: uint16(40481), + 102: uint16(23020), + 103: uint16(32489), + 104: uint16(32521), + 105: uint16(21513), + 106: uint16(26497), + 107: uint16(26840), + 108: uint16(36753), + 109: uint16(31821), + 110: uint16(38598), + 111: uint16(21450), + 112: uint16(24613), + 113: uint16(30142), + 114: uint16(27762), + 115: uint16(21363), + 116: uint16(23241), + 117: uint16(32423), + 118: uint16(25380), + 119: uint16(20960), + 120: uint16(33034), + 121: uint16(24049), + 122: uint16(34015), + 123: uint16(25216), + 124: uint16(20864), + 125: uint16(23395), + 126: uint16(20238), + 127: uint16(31085), + 128: uint16(21058), + 129: uint16(24760), + 130: uint16(27982), + 131: uint16(23492), + 132: uint16(23490), + 133: uint16(35745), + 134: uint16(35760), + 135: uint16(26082), + 136: uint16(24524), + 137: uint16(38469), + 138: uint16(22931), + 139: uint16(32487), + 140: uint16(32426), + 141: uint16(22025), + 142: uint16(26551), + 143: uint16(22841), + 144: uint16(20339), + 145: uint16(23478), + 146: uint16(21152), + 147: uint16(33626), + 148: uint16(39050), + 149: uint16(36158), + 150: uint16(30002), + 151: uint16(38078), + 152: uint16(20551), + 153: uint16(31292), + 154: uint16(20215), + 155: uint16(26550), + 156: uint16(39550), + 157: uint16(23233), + 158: uint16(27516), + 159: uint16(30417), + 160: uint16(22362), + 161: uint16(23574), + 162: uint16(31546), + 163: uint16(38388), + 164: uint16(29006), + 165: uint16(20860), + 166: uint16(32937), + 167: uint16(33392), + 168: uint16(22904), + 169: uint16(32516), + 170: uint16(33575), + 171: uint16(26816), + 172: uint16(26604), + 173: uint16(30897), + 174: uint16(30839), + 175: uint16(25315), + 176: uint16(25441), + 177: uint16(31616), + 178: uint16(20461), + 179: uint16(21098), + 180: uint16(20943), + 181: uint16(33616), + 182: uint16(27099), + 183: uint16(37492), + 184: uint16(36341), + 185: uint16(36145), + 186: uint16(35265), + 187: uint16(38190), + 188: uint16(31661), + 189: uint16(20214), + }, + 60: { + 0: uint16(32055), + 1: uint16(32056), + 2: uint16(32057), + 3: uint16(32058), + 4: uint16(32059), + 5: uint16(32060), + 6: uint16(32061), + 7: uint16(32062), + 8: uint16(32063), + 9: uint16(32064), + 10: uint16(32065), + 11: uint16(32066), + 12: uint16(32067), + 13: uint16(32068), + 14: uint16(32069), + 15: uint16(32070), + 16: uint16(32071), + 17: uint16(32072), + 18: uint16(32073), + 19: uint16(32074), + 20: uint16(32075), + 21: uint16(32076), + 22: uint16(32077), + 23: uint16(32078), + 24: uint16(32079), + 25: uint16(32080), + 26: uint16(32081), + 27: uint16(32082), + 28: uint16(32083), + 29: uint16(32084), + 30: uint16(32085), + 31: uint16(32086), + 32: uint16(32087), + 33: uint16(32088), + 34: uint16(32089), + 35: uint16(32090), + 36: uint16(32091), + 37: uint16(32092), + 38: uint16(32093), + 39: uint16(32094), + 40: uint16(32095), + 41: uint16(32096), + 42: uint16(32097), + 43: uint16(32098), + 44: uint16(32099), + 45: uint16(32100), + 46: uint16(32101), + 47: uint16(32102), + 48: uint16(32103), + 49: uint16(32104), + 50: uint16(32105), + 51: uint16(32106), + 52: uint16(32107), + 53: uint16(32108), + 54: uint16(32109), + 55: uint16(32111), + 56: uint16(32112), + 57: uint16(32113), + 58: uint16(32114), + 59: uint16(32115), + 60: uint16(32116), + 61: uint16(32117), + 62: uint16(32118), + 63: uint16(32120), + 64: uint16(32121), + 65: uint16(32122), + 66: uint16(32123), + 67: uint16(32124), + 68: uint16(32125), + 69: uint16(32126), + 70: uint16(32127), + 71: uint16(32128), + 72: uint16(32129), + 73: uint16(32130), + 74: uint16(32131), + 75: uint16(32132), + 76: uint16(32133), + 77: uint16(32134), + 78: uint16(32135), + 79: uint16(32136), + 80: uint16(32137), + 81: uint16(32138), + 82: uint16(32139), + 83: uint16(32140), + 84: uint16(32141), + 85: uint16(32142), + 86: uint16(32143), + 87: uint16(32144), + 88: uint16(32145), + 89: uint16(32146), + 90: uint16(32147), + 91: uint16(32148), + 92: uint16(32149), + 93: uint16(32150), + 94: uint16(32151), + 95: uint16(32152), + 96: uint16(20581), + 97: uint16(33328), + 98: uint16(21073), + 99: uint16(39279), + 100: uint16(28176), + 101: uint16(28293), + 102: uint16(28071), + 103: uint16(24314), + 104: uint16(20725), + 105: uint16(23004), + 106: uint16(23558), + 107: uint16(27974), + 108: uint16(27743), + 109: uint16(30086), + 110: uint16(33931), + 111: uint16(26728), + 112: uint16(22870), + 113: uint16(35762), + 114: uint16(21280), + 115: uint16(37233), + 116: uint16(38477), + 117: uint16(34121), + 118: uint16(26898), + 119: uint16(30977), + 120: uint16(28966), + 121: uint16(33014), + 122: uint16(20132), + 123: uint16(37066), + 124: uint16(27975), + 125: uint16(39556), + 126: uint16(23047), + 127: uint16(22204), + 128: uint16(25605), + 129: uint16(38128), + 130: uint16(30699), + 131: uint16(20389), + 132: uint16(33050), + 133: uint16(29409), + 134: uint16(35282), + 135: uint16(39290), + 136: uint16(32564), + 137: uint16(32478), + 138: uint16(21119), + 139: uint16(25945), + 140: uint16(37237), + 141: uint16(36735), + 142: uint16(36739), + 143: uint16(21483), + 144: uint16(31382), + 145: uint16(25581), + 146: uint16(25509), + 147: uint16(30342), + 148: uint16(31224), + 149: uint16(34903), + 150: uint16(38454), + 151: uint16(25130), + 152: uint16(21163), + 153: uint16(33410), + 154: uint16(26708), + 155: uint16(26480), + 156: uint16(25463), + 157: uint16(30571), + 158: uint16(31469), + 159: uint16(27905), + 160: uint16(32467), + 161: uint16(35299), + 162: uint16(22992), + 163: uint16(25106), + 164: uint16(34249), + 165: uint16(33445), + 166: uint16(30028), + 167: uint16(20511), + 168: uint16(20171), + 169: uint16(30117), + 170: uint16(35819), + 171: uint16(23626), + 172: uint16(24062), + 173: uint16(31563), + 174: uint16(26020), + 175: uint16(37329), + 176: uint16(20170), + 177: uint16(27941), + 178: uint16(35167), + 179: uint16(32039), + 180: uint16(38182), + 181: uint16(20165), + 182: uint16(35880), + 183: uint16(36827), + 184: uint16(38771), + 185: uint16(26187), + 186: uint16(31105), + 187: uint16(36817), + 188: uint16(28908), + 189: uint16(28024), + }, + 61: { + 0: uint16(32153), + 1: uint16(32154), + 2: uint16(32155), + 3: uint16(32156), + 4: uint16(32157), + 5: uint16(32158), + 6: uint16(32159), + 7: uint16(32160), + 8: uint16(32161), + 9: uint16(32162), + 10: uint16(32163), + 11: uint16(32164), + 12: uint16(32165), + 13: uint16(32167), + 14: uint16(32168), + 15: uint16(32169), + 16: uint16(32170), + 17: uint16(32171), + 18: uint16(32172), + 19: uint16(32173), + 20: uint16(32175), + 21: uint16(32176), + 22: uint16(32177), + 23: uint16(32178), + 24: uint16(32179), + 25: uint16(32180), + 26: uint16(32181), + 27: uint16(32182), + 28: uint16(32183), + 29: uint16(32184), + 30: uint16(32185), + 31: uint16(32186), + 32: uint16(32187), + 33: uint16(32188), + 34: uint16(32189), + 35: uint16(32190), + 36: uint16(32191), + 37: uint16(32192), + 38: uint16(32193), + 39: uint16(32194), + 40: uint16(32195), + 41: uint16(32196), + 42: uint16(32197), + 43: uint16(32198), + 44: uint16(32199), + 45: uint16(32200), + 46: uint16(32201), + 47: uint16(32202), + 48: uint16(32203), + 49: uint16(32204), + 50: uint16(32205), + 51: uint16(32206), + 52: uint16(32207), + 53: uint16(32208), + 54: uint16(32209), + 55: uint16(32210), + 56: uint16(32211), + 57: uint16(32212), + 58: uint16(32213), + 59: uint16(32214), + 60: uint16(32215), + 61: uint16(32216), + 62: uint16(32217), + 63: uint16(32218), + 64: uint16(32219), + 65: uint16(32220), + 66: uint16(32221), + 67: uint16(32222), + 68: uint16(32223), + 69: uint16(32224), + 70: uint16(32225), + 71: uint16(32226), + 72: uint16(32227), + 73: uint16(32228), + 74: uint16(32229), + 75: uint16(32230), + 76: uint16(32231), + 77: uint16(32232), + 78: uint16(32233), + 79: uint16(32234), + 80: uint16(32235), + 81: uint16(32236), + 82: uint16(32237), + 83: uint16(32238), + 84: uint16(32239), + 85: uint16(32240), + 86: uint16(32241), + 87: uint16(32242), + 88: uint16(32243), + 89: uint16(32244), + 90: uint16(32245), + 91: uint16(32246), + 92: uint16(32247), + 93: uint16(32248), + 94: uint16(32249), + 95: uint16(32250), + 96: uint16(23613), + 97: uint16(21170), + 98: uint16(33606), + 99: uint16(20834), + 100: uint16(33550), + 101: uint16(30555), + 102: uint16(26230), + 103: uint16(40120), + 104: uint16(20140), + 105: uint16(24778), + 106: uint16(31934), + 107: uint16(31923), + 108: uint16(32463), + 109: uint16(20117), + 110: uint16(35686), + 111: uint16(26223), + 112: uint16(39048), + 113: uint16(38745), + 114: uint16(22659), + 115: uint16(25964), + 116: uint16(38236), + 117: uint16(24452), + 118: uint16(30153), + 119: uint16(38742), + 120: uint16(31455), + 121: uint16(31454), + 122: uint16(20928), + 123: uint16(28847), + 124: uint16(31384), + 125: uint16(25578), + 126: uint16(31350), + 127: uint16(32416), + 128: uint16(29590), + 129: uint16(38893), + 130: uint16(20037), + 131: uint16(28792), + 132: uint16(20061), + 133: uint16(37202), + 134: uint16(21417), + 135: uint16(25937), + 136: uint16(26087), + 137: uint16(33276), + 138: uint16(33285), + 139: uint16(21646), + 140: uint16(23601), + 141: uint16(30106), + 142: uint16(38816), + 143: uint16(25304), + 144: uint16(29401), + 145: uint16(30141), + 146: uint16(23621), + 147: uint16(39545), + 148: uint16(33738), + 149: uint16(23616), + 150: uint16(21632), + 151: uint16(30697), + 152: uint16(20030), + 153: uint16(27822), + 154: uint16(32858), + 155: uint16(25298), + 156: uint16(25454), + 157: uint16(24040), + 158: uint16(20855), + 159: uint16(36317), + 160: uint16(36382), + 161: uint16(38191), + 162: uint16(20465), + 163: uint16(21477), + 164: uint16(24807), + 165: uint16(28844), + 166: uint16(21095), + 167: uint16(25424), + 168: uint16(40515), + 169: uint16(23071), + 170: uint16(20518), + 171: uint16(30519), + 172: uint16(21367), + 173: uint16(32482), + 174: uint16(25733), + 175: uint16(25899), + 176: uint16(25225), + 177: uint16(25496), + 178: uint16(20500), + 179: uint16(29237), + 180: uint16(35273), + 181: uint16(20915), + 182: uint16(35776), + 183: uint16(32477), + 184: uint16(22343), + 185: uint16(33740), + 186: uint16(38055), + 187: uint16(20891), + 188: uint16(21531), + 189: uint16(23803), + }, + 62: { + 0: uint16(32251), + 1: uint16(32252), + 2: uint16(32253), + 3: uint16(32254), + 4: uint16(32255), + 5: uint16(32256), + 6: uint16(32257), + 7: uint16(32258), + 8: uint16(32259), + 9: uint16(32260), + 10: uint16(32261), + 11: uint16(32262), + 12: uint16(32263), + 13: uint16(32264), + 14: uint16(32265), + 15: uint16(32266), + 16: uint16(32267), + 17: uint16(32268), + 18: uint16(32269), + 19: uint16(32270), + 20: uint16(32271), + 21: uint16(32272), + 22: uint16(32273), + 23: uint16(32274), + 24: uint16(32275), + 25: uint16(32276), + 26: uint16(32277), + 27: uint16(32278), + 28: uint16(32279), + 29: uint16(32280), + 30: uint16(32281), + 31: uint16(32282), + 32: uint16(32283), + 33: uint16(32284), + 34: uint16(32285), + 35: uint16(32286), + 36: uint16(32287), + 37: uint16(32288), + 38: uint16(32289), + 39: uint16(32290), + 40: uint16(32291), + 41: uint16(32292), + 42: uint16(32293), + 43: uint16(32294), + 44: uint16(32295), + 45: uint16(32296), + 46: uint16(32297), + 47: uint16(32298), + 48: uint16(32299), + 49: uint16(32300), + 50: uint16(32301), + 51: uint16(32302), + 52: uint16(32303), + 53: uint16(32304), + 54: uint16(32305), + 55: uint16(32306), + 56: uint16(32307), + 57: uint16(32308), + 58: uint16(32309), + 59: uint16(32310), + 60: uint16(32311), + 61: uint16(32312), + 62: uint16(32313), + 63: uint16(32314), + 64: uint16(32316), + 65: uint16(32317), + 66: uint16(32318), + 67: uint16(32319), + 68: uint16(32320), + 69: uint16(32322), + 70: uint16(32323), + 71: uint16(32324), + 72: uint16(32325), + 73: uint16(32326), + 74: uint16(32328), + 75: uint16(32329), + 76: uint16(32330), + 77: uint16(32331), + 78: uint16(32332), + 79: uint16(32333), + 80: uint16(32334), + 81: uint16(32335), + 82: uint16(32336), + 83: uint16(32337), + 84: uint16(32338), + 85: uint16(32339), + 86: uint16(32340), + 87: uint16(32341), + 88: uint16(32342), + 89: uint16(32343), + 90: uint16(32344), + 91: uint16(32345), + 92: uint16(32346), + 93: uint16(32347), + 94: uint16(32348), + 95: uint16(32349), + 96: uint16(20426), + 97: uint16(31459), + 98: uint16(27994), + 99: uint16(37089), + 100: uint16(39567), + 101: uint16(21888), + 102: uint16(21654), + 103: uint16(21345), + 104: uint16(21679), + 105: uint16(24320), + 106: uint16(25577), + 107: uint16(26999), + 108: uint16(20975), + 109: uint16(24936), + 110: uint16(21002), + 111: uint16(22570), + 112: uint16(21208), + 113: uint16(22350), + 114: uint16(30733), + 115: uint16(30475), + 116: uint16(24247), + 117: uint16(24951), + 118: uint16(31968), + 119: uint16(25179), + 120: uint16(25239), + 121: uint16(20130), + 122: uint16(28821), + 123: uint16(32771), + 124: uint16(25335), + 125: uint16(28900), + 126: uint16(38752), + 127: uint16(22391), + 128: uint16(33499), + 129: uint16(26607), + 130: uint16(26869), + 131: uint16(30933), + 132: uint16(39063), + 133: uint16(31185), + 134: uint16(22771), + 135: uint16(21683), + 136: uint16(21487), + 137: uint16(28212), + 138: uint16(20811), + 139: uint16(21051), + 140: uint16(23458), + 141: uint16(35838), + 142: uint16(32943), + 143: uint16(21827), + 144: uint16(22438), + 145: uint16(24691), + 146: uint16(22353), + 147: uint16(21549), + 148: uint16(31354), + 149: uint16(24656), + 150: uint16(23380), + 151: uint16(25511), + 152: uint16(25248), + 153: uint16(21475), + 154: uint16(25187), + 155: uint16(23495), + 156: uint16(26543), + 157: uint16(21741), + 158: uint16(31391), + 159: uint16(33510), + 160: uint16(37239), + 161: uint16(24211), + 162: uint16(35044), + 163: uint16(22840), + 164: uint16(22446), + 165: uint16(25358), + 166: uint16(36328), + 167: uint16(33007), + 168: uint16(22359), + 169: uint16(31607), + 170: uint16(20393), + 171: uint16(24555), + 172: uint16(23485), + 173: uint16(27454), + 174: uint16(21281), + 175: uint16(31568), + 176: uint16(29378), + 177: uint16(26694), + 178: uint16(30719), + 179: uint16(30518), + 180: uint16(26103), + 181: uint16(20917), + 182: uint16(20111), + 183: uint16(30420), + 184: uint16(23743), + 185: uint16(31397), + 186: uint16(33909), + 187: uint16(22862), + 188: uint16(39745), + 189: uint16(20608), + }, + 63: { + 0: uint16(32350), + 1: uint16(32351), + 2: uint16(32352), + 3: uint16(32353), + 4: uint16(32354), + 5: uint16(32355), + 6: uint16(32356), + 7: uint16(32357), + 8: uint16(32358), + 9: uint16(32359), + 10: uint16(32360), + 11: uint16(32361), + 12: uint16(32362), + 13: uint16(32363), + 14: uint16(32364), + 15: uint16(32365), + 16: uint16(32366), + 17: uint16(32367), + 18: uint16(32368), + 19: uint16(32369), + 20: uint16(32370), + 21: uint16(32371), + 22: uint16(32372), + 23: uint16(32373), + 24: uint16(32374), + 25: uint16(32375), + 26: uint16(32376), + 27: uint16(32377), + 28: uint16(32378), + 29: uint16(32379), + 30: uint16(32380), + 31: uint16(32381), + 32: uint16(32382), + 33: uint16(32383), + 34: uint16(32384), + 35: uint16(32385), + 36: uint16(32387), + 37: uint16(32388), + 38: uint16(32389), + 39: uint16(32390), + 40: uint16(32391), + 41: uint16(32392), + 42: uint16(32393), + 43: uint16(32394), + 44: uint16(32395), + 45: uint16(32396), + 46: uint16(32397), + 47: uint16(32398), + 48: uint16(32399), + 49: uint16(32400), + 50: uint16(32401), + 51: uint16(32402), + 52: uint16(32403), + 53: uint16(32404), + 54: uint16(32405), + 55: uint16(32406), + 56: uint16(32407), + 57: uint16(32408), + 58: uint16(32409), + 59: uint16(32410), + 60: uint16(32412), + 61: uint16(32413), + 62: uint16(32414), + 63: uint16(32430), + 64: uint16(32436), + 65: uint16(32443), + 66: uint16(32444), + 67: uint16(32470), + 68: uint16(32484), + 69: uint16(32492), + 70: uint16(32505), + 71: uint16(32522), + 72: uint16(32528), + 73: uint16(32542), + 74: uint16(32567), + 75: uint16(32569), + 76: uint16(32571), + 77: uint16(32572), + 78: uint16(32573), + 79: uint16(32574), + 80: uint16(32575), + 81: uint16(32576), + 82: uint16(32577), + 83: uint16(32579), + 84: uint16(32582), + 85: uint16(32583), + 86: uint16(32584), + 87: uint16(32585), + 88: uint16(32586), + 89: uint16(32587), + 90: uint16(32588), + 91: uint16(32589), + 92: uint16(32590), + 93: uint16(32591), + 94: uint16(32594), + 95: uint16(32595), + 96: uint16(39304), + 97: uint16(24871), + 98: uint16(28291), + 99: uint16(22372), + 100: uint16(26118), + 101: uint16(25414), + 102: uint16(22256), + 103: uint16(25324), + 104: uint16(25193), + 105: uint16(24275), + 106: uint16(38420), + 107: uint16(22403), + 108: uint16(25289), + 109: uint16(21895), + 110: uint16(34593), + 111: uint16(33098), + 112: uint16(36771), + 113: uint16(21862), + 114: uint16(33713), + 115: uint16(26469), + 116: uint16(36182), + 117: uint16(34013), + 118: uint16(23146), + 119: uint16(26639), + 120: uint16(25318), + 121: uint16(31726), + 122: uint16(38417), + 123: uint16(20848), + 124: uint16(28572), + 125: uint16(35888), + 126: uint16(25597), + 127: uint16(35272), + 128: uint16(25042), + 129: uint16(32518), + 130: uint16(28866), + 131: uint16(28389), + 132: uint16(29701), + 133: uint16(27028), + 134: uint16(29436), + 135: uint16(24266), + 136: uint16(37070), + 137: uint16(26391), + 138: uint16(28010), + 139: uint16(25438), + 140: uint16(21171), + 141: uint16(29282), + 142: uint16(32769), + 143: uint16(20332), + 144: uint16(23013), + 145: uint16(37226), + 146: uint16(28889), + 147: uint16(28061), + 148: uint16(21202), + 149: uint16(20048), + 150: uint16(38647), + 151: uint16(38253), + 152: uint16(34174), + 153: uint16(30922), + 154: uint16(32047), + 155: uint16(20769), + 156: uint16(22418), + 157: uint16(25794), + 158: uint16(32907), + 159: uint16(31867), + 160: uint16(27882), + 161: uint16(26865), + 162: uint16(26974), + 163: uint16(20919), + 164: uint16(21400), + 165: uint16(26792), + 166: uint16(29313), + 167: uint16(40654), + 168: uint16(31729), + 169: uint16(29432), + 170: uint16(31163), + 171: uint16(28435), + 172: uint16(29702), + 173: uint16(26446), + 174: uint16(37324), + 175: uint16(40100), + 176: uint16(31036), + 177: uint16(33673), + 178: uint16(33620), + 179: uint16(21519), + 180: uint16(26647), + 181: uint16(20029), + 182: uint16(21385), + 183: uint16(21169), + 184: uint16(30782), + 185: uint16(21382), + 186: uint16(21033), + 187: uint16(20616), + 188: uint16(20363), + 189: uint16(20432), + }, + 64: { + 0: uint16(32598), + 1: uint16(32601), + 2: uint16(32603), + 3: uint16(32604), + 4: uint16(32605), + 5: uint16(32606), + 6: uint16(32608), + 7: uint16(32611), + 8: uint16(32612), + 9: uint16(32613), + 10: uint16(32614), + 11: uint16(32615), + 12: uint16(32619), + 13: uint16(32620), + 14: uint16(32621), + 15: uint16(32623), + 16: uint16(32624), + 17: uint16(32627), + 18: uint16(32629), + 19: uint16(32630), + 20: uint16(32631), + 21: uint16(32632), + 22: uint16(32634), + 23: uint16(32635), + 24: uint16(32636), + 25: uint16(32637), + 26: uint16(32639), + 27: uint16(32640), + 28: uint16(32642), + 29: uint16(32643), + 30: uint16(32644), + 31: uint16(32645), + 32: uint16(32646), + 33: uint16(32647), + 34: uint16(32648), + 35: uint16(32649), + 36: uint16(32651), + 37: uint16(32653), + 38: uint16(32655), + 39: uint16(32656), + 40: uint16(32657), + 41: uint16(32658), + 42: uint16(32659), + 43: uint16(32661), + 44: uint16(32662), + 45: uint16(32663), + 46: uint16(32664), + 47: uint16(32665), + 48: uint16(32667), + 49: uint16(32668), + 50: uint16(32672), + 51: uint16(32674), + 52: uint16(32675), + 53: uint16(32677), + 54: uint16(32678), + 55: uint16(32680), + 56: uint16(32681), + 57: uint16(32682), + 58: uint16(32683), + 59: uint16(32684), + 60: uint16(32685), + 61: uint16(32686), + 62: uint16(32689), + 63: uint16(32691), + 64: uint16(32692), + 65: uint16(32693), + 66: uint16(32694), + 67: uint16(32695), + 68: uint16(32698), + 69: uint16(32699), + 70: uint16(32702), + 71: uint16(32704), + 72: uint16(32706), + 73: uint16(32707), + 74: uint16(32708), + 75: uint16(32710), + 76: uint16(32711), + 77: uint16(32712), + 78: uint16(32713), + 79: uint16(32715), + 80: uint16(32717), + 81: uint16(32719), + 82: uint16(32720), + 83: uint16(32721), + 84: uint16(32722), + 85: uint16(32723), + 86: uint16(32726), + 87: uint16(32727), + 88: uint16(32729), + 89: uint16(32730), + 90: uint16(32731), + 91: uint16(32732), + 92: uint16(32733), + 93: uint16(32734), + 94: uint16(32738), + 95: uint16(32739), + 96: uint16(30178), + 97: uint16(31435), + 98: uint16(31890), + 99: uint16(27813), + 100: uint16(38582), + 101: uint16(21147), + 102: uint16(29827), + 103: uint16(21737), + 104: uint16(20457), + 105: uint16(32852), + 106: uint16(33714), + 107: uint16(36830), + 108: uint16(38256), + 109: uint16(24265), + 110: uint16(24604), + 111: uint16(28063), + 112: uint16(24088), + 113: uint16(25947), + 114: uint16(33080), + 115: uint16(38142), + 116: uint16(24651), + 117: uint16(28860), + 118: uint16(32451), + 119: uint16(31918), + 120: uint16(20937), + 121: uint16(26753), + 122: uint16(31921), + 123: uint16(33391), + 124: uint16(20004), + 125: uint16(36742), + 126: uint16(37327), + 127: uint16(26238), + 128: uint16(20142), + 129: uint16(35845), + 130: uint16(25769), + 131: uint16(32842), + 132: uint16(20698), + 133: uint16(30103), + 134: uint16(29134), + 135: uint16(23525), + 136: uint16(36797), + 137: uint16(28518), + 138: uint16(20102), + 139: uint16(25730), + 140: uint16(38243), + 141: uint16(24278), + 142: uint16(26009), + 143: uint16(21015), + 144: uint16(35010), + 145: uint16(28872), + 146: uint16(21155), + 147: uint16(29454), + 148: uint16(29747), + 149: uint16(26519), + 150: uint16(30967), + 151: uint16(38678), + 152: uint16(20020), + 153: uint16(37051), + 154: uint16(40158), + 155: uint16(28107), + 156: uint16(20955), + 157: uint16(36161), + 158: uint16(21533), + 159: uint16(25294), + 160: uint16(29618), + 161: uint16(33777), + 162: uint16(38646), + 163: uint16(40836), + 164: uint16(38083), + 165: uint16(20278), + 166: uint16(32666), + 167: uint16(20940), + 168: uint16(28789), + 169: uint16(38517), + 170: uint16(23725), + 171: uint16(39046), + 172: uint16(21478), + 173: uint16(20196), + 174: uint16(28316), + 175: uint16(29705), + 176: uint16(27060), + 177: uint16(30827), + 178: uint16(39311), + 179: uint16(30041), + 180: uint16(21016), + 181: uint16(30244), + 182: uint16(27969), + 183: uint16(26611), + 184: uint16(20845), + 185: uint16(40857), + 186: uint16(32843), + 187: uint16(21657), + 188: uint16(31548), + 189: uint16(31423), + }, + 65: { + 0: uint16(32740), + 1: uint16(32743), + 2: uint16(32744), + 3: uint16(32746), + 4: uint16(32747), + 5: uint16(32748), + 6: uint16(32749), + 7: uint16(32751), + 8: uint16(32754), + 9: uint16(32756), + 10: uint16(32757), + 11: uint16(32758), + 12: uint16(32759), + 13: uint16(32760), + 14: uint16(32761), + 15: uint16(32762), + 16: uint16(32765), + 17: uint16(32766), + 18: uint16(32767), + 19: uint16(32770), + 20: uint16(32775), + 21: uint16(32776), + 22: uint16(32777), + 23: uint16(32778), + 24: uint16(32782), + 25: uint16(32783), + 26: uint16(32785), + 27: uint16(32787), + 28: uint16(32794), + 29: uint16(32795), + 30: uint16(32797), + 31: uint16(32798), + 32: uint16(32799), + 33: uint16(32801), + 34: uint16(32803), + 35: uint16(32804), + 36: uint16(32811), + 37: uint16(32812), + 38: uint16(32813), + 39: uint16(32814), + 40: uint16(32815), + 41: uint16(32816), + 42: uint16(32818), + 43: uint16(32820), + 44: uint16(32825), + 45: uint16(32826), + 46: uint16(32828), + 47: uint16(32830), + 48: uint16(32832), + 49: uint16(32833), + 50: uint16(32836), + 51: uint16(32837), + 52: uint16(32839), + 53: uint16(32840), + 54: uint16(32841), + 55: uint16(32846), + 56: uint16(32847), + 57: uint16(32848), + 58: uint16(32849), + 59: uint16(32851), + 60: uint16(32853), + 61: uint16(32854), + 62: uint16(32855), + 63: uint16(32857), + 64: uint16(32859), + 65: uint16(32860), + 66: uint16(32861), + 67: uint16(32862), + 68: uint16(32863), + 69: uint16(32864), + 70: uint16(32865), + 71: uint16(32866), + 72: uint16(32867), + 73: uint16(32868), + 74: uint16(32869), + 75: uint16(32870), + 76: uint16(32871), + 77: uint16(32872), + 78: uint16(32875), + 79: uint16(32876), + 80: uint16(32877), + 81: uint16(32878), + 82: uint16(32879), + 83: uint16(32880), + 84: uint16(32882), + 85: uint16(32883), + 86: uint16(32884), + 87: uint16(32885), + 88: uint16(32886), + 89: uint16(32887), + 90: uint16(32888), + 91: uint16(32889), + 92: uint16(32890), + 93: uint16(32891), + 94: uint16(32892), + 95: uint16(32893), + 96: uint16(38534), + 97: uint16(22404), + 98: uint16(25314), + 99: uint16(38471), + 100: uint16(27004), + 101: uint16(23044), + 102: uint16(25602), + 103: uint16(31699), + 104: uint16(28431), + 105: uint16(38475), + 106: uint16(33446), + 107: uint16(21346), + 108: uint16(39045), + 109: uint16(24208), + 110: uint16(28809), + 111: uint16(25523), + 112: uint16(21348), + 113: uint16(34383), + 114: uint16(40065), + 115: uint16(40595), + 116: uint16(30860), + 117: uint16(38706), + 118: uint16(36335), + 119: uint16(36162), + 120: uint16(40575), + 121: uint16(28510), + 122: uint16(31108), + 123: uint16(24405), + 124: uint16(38470), + 125: uint16(25134), + 126: uint16(39540), + 127: uint16(21525), + 128: uint16(38109), + 129: uint16(20387), + 130: uint16(26053), + 131: uint16(23653), + 132: uint16(23649), + 133: uint16(32533), + 134: uint16(34385), + 135: uint16(27695), + 136: uint16(24459), + 137: uint16(29575), + 138: uint16(28388), + 139: uint16(32511), + 140: uint16(23782), + 141: uint16(25371), + 142: uint16(23402), + 143: uint16(28390), + 144: uint16(21365), + 145: uint16(20081), + 146: uint16(25504), + 147: uint16(30053), + 148: uint16(25249), + 149: uint16(36718), + 150: uint16(20262), + 151: uint16(20177), + 152: uint16(27814), + 153: uint16(32438), + 154: uint16(35770), + 155: uint16(33821), + 156: uint16(34746), + 157: uint16(32599), + 158: uint16(36923), + 159: uint16(38179), + 160: uint16(31657), + 161: uint16(39585), + 162: uint16(35064), + 163: uint16(33853), + 164: uint16(27931), + 165: uint16(39558), + 166: uint16(32476), + 167: uint16(22920), + 168: uint16(40635), + 169: uint16(29595), + 170: uint16(30721), + 171: uint16(34434), + 172: uint16(39532), + 173: uint16(39554), + 174: uint16(22043), + 175: uint16(21527), + 176: uint16(22475), + 177: uint16(20080), + 178: uint16(40614), + 179: uint16(21334), + 180: uint16(36808), + 181: uint16(33033), + 182: uint16(30610), + 183: uint16(39314), + 184: uint16(34542), + 185: uint16(28385), + 186: uint16(34067), + 187: uint16(26364), + 188: uint16(24930), + 189: uint16(28459), + }, + 66: { + 0: uint16(32894), + 1: uint16(32897), + 2: uint16(32898), + 3: uint16(32901), + 4: uint16(32904), + 5: uint16(32906), + 6: uint16(32909), + 7: uint16(32910), + 8: uint16(32911), + 9: uint16(32912), + 10: uint16(32913), + 11: uint16(32914), + 12: uint16(32916), + 13: uint16(32917), + 14: uint16(32919), + 15: uint16(32921), + 16: uint16(32926), + 17: uint16(32931), + 18: uint16(32934), + 19: uint16(32935), + 20: uint16(32936), + 21: uint16(32940), + 22: uint16(32944), + 23: uint16(32947), + 24: uint16(32949), + 25: uint16(32950), + 26: uint16(32952), + 27: uint16(32953), + 28: uint16(32955), + 29: uint16(32965), + 30: uint16(32967), + 31: uint16(32968), + 32: uint16(32969), + 33: uint16(32970), + 34: uint16(32971), + 35: uint16(32975), + 36: uint16(32976), + 37: uint16(32977), + 38: uint16(32978), + 39: uint16(32979), + 40: uint16(32980), + 41: uint16(32981), + 42: uint16(32984), + 43: uint16(32991), + 44: uint16(32992), + 45: uint16(32994), + 46: uint16(32995), + 47: uint16(32998), + 48: uint16(33006), + 49: uint16(33013), + 50: uint16(33015), + 51: uint16(33017), + 52: uint16(33019), + 53: uint16(33022), + 54: uint16(33023), + 55: uint16(33024), + 56: uint16(33025), + 57: uint16(33027), + 58: uint16(33028), + 59: uint16(33029), + 60: uint16(33031), + 61: uint16(33032), + 62: uint16(33035), + 63: uint16(33036), + 64: uint16(33045), + 65: uint16(33047), + 66: uint16(33049), + 67: uint16(33051), + 68: uint16(33052), + 69: uint16(33053), + 70: uint16(33055), + 71: uint16(33056), + 72: uint16(33057), + 73: uint16(33058), + 74: uint16(33059), + 75: uint16(33060), + 76: uint16(33061), + 77: uint16(33062), + 78: uint16(33063), + 79: uint16(33064), + 80: uint16(33065), + 81: uint16(33066), + 82: uint16(33067), + 83: uint16(33069), + 84: uint16(33070), + 85: uint16(33072), + 86: uint16(33075), + 87: uint16(33076), + 88: uint16(33077), + 89: uint16(33079), + 90: uint16(33081), + 91: uint16(33082), + 92: uint16(33083), + 93: uint16(33084), + 94: uint16(33085), + 95: uint16(33087), + 96: uint16(35881), + 97: uint16(33426), + 98: uint16(33579), + 99: uint16(30450), + 100: uint16(27667), + 101: uint16(24537), + 102: uint16(33725), + 103: uint16(29483), + 104: uint16(33541), + 105: uint16(38170), + 106: uint16(27611), + 107: uint16(30683), + 108: uint16(38086), + 109: uint16(21359), + 110: uint16(33538), + 111: uint16(20882), + 112: uint16(24125), + 113: uint16(35980), + 114: uint16(36152), + 115: uint16(20040), + 116: uint16(29611), + 117: uint16(26522), + 118: uint16(26757), + 119: uint16(37238), + 120: uint16(38665), + 121: uint16(29028), + 122: uint16(27809), + 123: uint16(30473), + 124: uint16(23186), + 125: uint16(38209), + 126: uint16(27599), + 127: uint16(32654), + 128: uint16(26151), + 129: uint16(23504), + 130: uint16(22969), + 131: uint16(23194), + 132: uint16(38376), + 133: uint16(38391), + 134: uint16(20204), + 135: uint16(33804), + 136: uint16(33945), + 137: uint16(27308), + 138: uint16(30431), + 139: uint16(38192), + 140: uint16(29467), + 141: uint16(26790), + 142: uint16(23391), + 143: uint16(30511), + 144: uint16(37274), + 145: uint16(38753), + 146: uint16(31964), + 147: uint16(36855), + 148: uint16(35868), + 149: uint16(24357), + 150: uint16(31859), + 151: uint16(31192), + 152: uint16(35269), + 153: uint16(27852), + 154: uint16(34588), + 155: uint16(23494), + 156: uint16(24130), + 157: uint16(26825), + 158: uint16(30496), + 159: uint16(32501), + 160: uint16(20885), + 161: uint16(20813), + 162: uint16(21193), + 163: uint16(23081), + 164: uint16(32517), + 165: uint16(38754), + 166: uint16(33495), + 167: uint16(25551), + 168: uint16(30596), + 169: uint16(34256), + 170: uint16(31186), + 171: uint16(28218), + 172: uint16(24217), + 173: uint16(22937), + 174: uint16(34065), + 175: uint16(28781), + 176: uint16(27665), + 177: uint16(25279), + 178: uint16(30399), + 179: uint16(25935), + 180: uint16(24751), + 181: uint16(38397), + 182: uint16(26126), + 183: uint16(34719), + 184: uint16(40483), + 185: uint16(38125), + 186: uint16(21517), + 187: uint16(21629), + 188: uint16(35884), + 189: uint16(25720), + }, + 67: { + 0: uint16(33088), + 1: uint16(33089), + 2: uint16(33090), + 3: uint16(33091), + 4: uint16(33092), + 5: uint16(33093), + 6: uint16(33095), + 7: uint16(33097), + 8: uint16(33101), + 9: uint16(33102), + 10: uint16(33103), + 11: uint16(33106), + 12: uint16(33110), + 13: uint16(33111), + 14: uint16(33112), + 15: uint16(33115), + 16: uint16(33116), + 17: uint16(33117), + 18: uint16(33118), + 19: uint16(33119), + 20: uint16(33121), + 21: uint16(33122), + 22: uint16(33123), + 23: uint16(33124), + 24: uint16(33126), + 25: uint16(33128), + 26: uint16(33130), + 27: uint16(33131), + 28: uint16(33132), + 29: uint16(33135), + 30: uint16(33138), + 31: uint16(33139), + 32: uint16(33141), + 33: uint16(33142), + 34: uint16(33143), + 35: uint16(33144), + 36: uint16(33153), + 37: uint16(33155), + 38: uint16(33156), + 39: uint16(33157), + 40: uint16(33158), + 41: uint16(33159), + 42: uint16(33161), + 43: uint16(33163), + 44: uint16(33164), + 45: uint16(33165), + 46: uint16(33166), + 47: uint16(33168), + 48: uint16(33170), + 49: uint16(33171), + 50: uint16(33172), + 51: uint16(33173), + 52: uint16(33174), + 53: uint16(33175), + 54: uint16(33177), + 55: uint16(33178), + 56: uint16(33182), + 57: uint16(33183), + 58: uint16(33184), + 59: uint16(33185), + 60: uint16(33186), + 61: uint16(33188), + 62: uint16(33189), + 63: uint16(33191), + 64: uint16(33193), + 65: uint16(33195), + 66: uint16(33196), + 67: uint16(33197), + 68: uint16(33198), + 69: uint16(33199), + 70: uint16(33200), + 71: uint16(33201), + 72: uint16(33202), + 73: uint16(33204), + 74: uint16(33205), + 75: uint16(33206), + 76: uint16(33207), + 77: uint16(33208), + 78: uint16(33209), + 79: uint16(33212), + 80: uint16(33213), + 81: uint16(33214), + 82: uint16(33215), + 83: uint16(33220), + 84: uint16(33221), + 85: uint16(33223), + 86: uint16(33224), + 87: uint16(33225), + 88: uint16(33227), + 89: uint16(33229), + 90: uint16(33230), + 91: uint16(33231), + 92: uint16(33232), + 93: uint16(33233), + 94: uint16(33234), + 95: uint16(33235), + 96: uint16(25721), + 97: uint16(34321), + 98: uint16(27169), + 99: uint16(33180), + 100: uint16(30952), + 101: uint16(25705), + 102: uint16(39764), + 103: uint16(25273), + 104: uint16(26411), + 105: uint16(33707), + 106: uint16(22696), + 107: uint16(40664), + 108: uint16(27819), + 109: uint16(28448), + 110: uint16(23518), + 111: uint16(38476), + 112: uint16(35851), + 113: uint16(29279), + 114: uint16(26576), + 115: uint16(25287), + 116: uint16(29281), + 117: uint16(20137), + 118: uint16(22982), + 119: uint16(27597), + 120: uint16(22675), + 121: uint16(26286), + 122: uint16(24149), + 123: uint16(21215), + 124: uint16(24917), + 125: uint16(26408), + 126: uint16(30446), + 127: uint16(30566), + 128: uint16(29287), + 129: uint16(31302), + 130: uint16(25343), + 131: uint16(21738), + 132: uint16(21584), + 133: uint16(38048), + 134: uint16(37027), + 135: uint16(23068), + 136: uint16(32435), + 137: uint16(27670), + 138: uint16(20035), + 139: uint16(22902), + 140: uint16(32784), + 141: uint16(22856), + 142: uint16(21335), + 143: uint16(30007), + 144: uint16(38590), + 145: uint16(22218), + 146: uint16(25376), + 147: uint16(33041), + 148: uint16(24700), + 149: uint16(38393), + 150: uint16(28118), + 151: uint16(21602), + 152: uint16(39297), + 153: uint16(20869), + 154: uint16(23273), + 155: uint16(33021), + 156: uint16(22958), + 157: uint16(38675), + 158: uint16(20522), + 159: uint16(27877), + 160: uint16(23612), + 161: uint16(25311), + 162: uint16(20320), + 163: uint16(21311), + 164: uint16(33147), + 165: uint16(36870), + 166: uint16(28346), + 167: uint16(34091), + 168: uint16(25288), + 169: uint16(24180), + 170: uint16(30910), + 171: uint16(25781), + 172: uint16(25467), + 173: uint16(24565), + 174: uint16(23064), + 175: uint16(37247), + 176: uint16(40479), + 177: uint16(23615), + 178: uint16(25423), + 179: uint16(32834), + 180: uint16(23421), + 181: uint16(21870), + 182: uint16(38218), + 183: uint16(38221), + 184: uint16(28037), + 185: uint16(24744), + 186: uint16(26592), + 187: uint16(29406), + 188: uint16(20957), + 189: uint16(23425), + }, + 68: { + 0: uint16(33236), + 1: uint16(33237), + 2: uint16(33238), + 3: uint16(33239), + 4: uint16(33240), + 5: uint16(33241), + 6: uint16(33242), + 7: uint16(33243), + 8: uint16(33244), + 9: uint16(33245), + 10: uint16(33246), + 11: uint16(33247), + 12: uint16(33248), + 13: uint16(33249), + 14: uint16(33250), + 15: uint16(33252), + 16: uint16(33253), + 17: uint16(33254), + 18: uint16(33256), + 19: uint16(33257), + 20: uint16(33259), + 21: uint16(33262), + 22: uint16(33263), + 23: uint16(33264), + 24: uint16(33265), + 25: uint16(33266), + 26: uint16(33269), + 27: uint16(33270), + 28: uint16(33271), + 29: uint16(33272), + 30: uint16(33273), + 31: uint16(33274), + 32: uint16(33277), + 33: uint16(33279), + 34: uint16(33283), + 35: uint16(33287), + 36: uint16(33288), + 37: uint16(33289), + 38: uint16(33290), + 39: uint16(33291), + 40: uint16(33294), + 41: uint16(33295), + 42: uint16(33297), + 43: uint16(33299), + 44: uint16(33301), + 45: uint16(33302), + 46: uint16(33303), + 47: uint16(33304), + 48: uint16(33305), + 49: uint16(33306), + 50: uint16(33309), + 51: uint16(33312), + 52: uint16(33316), + 53: uint16(33317), + 54: uint16(33318), + 55: uint16(33319), + 56: uint16(33321), + 57: uint16(33326), + 58: uint16(33330), + 59: uint16(33338), + 60: uint16(33340), + 61: uint16(33341), + 62: uint16(33343), + 63: uint16(33344), + 64: uint16(33345), + 65: uint16(33346), + 66: uint16(33347), + 67: uint16(33349), + 68: uint16(33350), + 69: uint16(33352), + 70: uint16(33354), + 71: uint16(33356), + 72: uint16(33357), + 73: uint16(33358), + 74: uint16(33360), + 75: uint16(33361), + 76: uint16(33362), + 77: uint16(33363), + 78: uint16(33364), + 79: uint16(33365), + 80: uint16(33366), + 81: uint16(33367), + 82: uint16(33369), + 83: uint16(33371), + 84: uint16(33372), + 85: uint16(33373), + 86: uint16(33374), + 87: uint16(33376), + 88: uint16(33377), + 89: uint16(33378), + 90: uint16(33379), + 91: uint16(33380), + 92: uint16(33381), + 93: uint16(33382), + 94: uint16(33383), + 95: uint16(33385), + 96: uint16(25319), + 97: uint16(27870), + 98: uint16(29275), + 99: uint16(25197), + 100: uint16(38062), + 101: uint16(32445), + 102: uint16(33043), + 103: uint16(27987), + 104: uint16(20892), + 105: uint16(24324), + 106: uint16(22900), + 107: uint16(21162), + 108: uint16(24594), + 109: uint16(22899), + 110: uint16(26262), + 111: uint16(34384), + 112: uint16(30111), + 113: uint16(25386), + 114: uint16(25062), + 115: uint16(31983), + 116: uint16(35834), + 117: uint16(21734), + 118: uint16(27431), + 119: uint16(40485), + 120: uint16(27572), + 121: uint16(34261), + 122: uint16(21589), + 123: uint16(20598), + 124: uint16(27812), + 125: uint16(21866), + 126: uint16(36276), + 127: uint16(29228), + 128: uint16(24085), + 129: uint16(24597), + 130: uint16(29750), + 131: uint16(25293), + 132: uint16(25490), + 133: uint16(29260), + 134: uint16(24472), + 135: uint16(28227), + 136: uint16(27966), + 137: uint16(25856), + 138: uint16(28504), + 139: uint16(30424), + 140: uint16(30928), + 141: uint16(30460), + 142: uint16(30036), + 143: uint16(21028), + 144: uint16(21467), + 145: uint16(20051), + 146: uint16(24222), + 147: uint16(26049), + 148: uint16(32810), + 149: uint16(32982), + 150: uint16(25243), + 151: uint16(21638), + 152: uint16(21032), + 153: uint16(28846), + 154: uint16(34957), + 155: uint16(36305), + 156: uint16(27873), + 157: uint16(21624), + 158: uint16(32986), + 159: uint16(22521), + 160: uint16(35060), + 161: uint16(36180), + 162: uint16(38506), + 163: uint16(37197), + 164: uint16(20329), + 165: uint16(27803), + 166: uint16(21943), + 167: uint16(30406), + 168: uint16(30768), + 169: uint16(25256), + 170: uint16(28921), + 171: uint16(28558), + 172: uint16(24429), + 173: uint16(34028), + 174: uint16(26842), + 175: uint16(30844), + 176: uint16(31735), + 177: uint16(33192), + 178: uint16(26379), + 179: uint16(40527), + 180: uint16(25447), + 181: uint16(30896), + 182: uint16(22383), + 183: uint16(30738), + 184: uint16(38713), + 185: uint16(25209), + 186: uint16(25259), + 187: uint16(21128), + 188: uint16(29749), + 189: uint16(27607), + }, + 69: { + 0: uint16(33386), + 1: uint16(33387), + 2: uint16(33388), + 3: uint16(33389), + 4: uint16(33393), + 5: uint16(33397), + 6: uint16(33398), + 7: uint16(33399), + 8: uint16(33400), + 9: uint16(33403), + 10: uint16(33404), + 11: uint16(33408), + 12: uint16(33409), + 13: uint16(33411), + 14: uint16(33413), + 15: uint16(33414), + 16: uint16(33415), + 17: uint16(33417), + 18: uint16(33420), + 19: uint16(33424), + 20: uint16(33427), + 21: uint16(33428), + 22: uint16(33429), + 23: uint16(33430), + 24: uint16(33434), + 25: uint16(33435), + 26: uint16(33438), + 27: uint16(33440), + 28: uint16(33442), + 29: uint16(33443), + 30: uint16(33447), + 31: uint16(33458), + 32: uint16(33461), + 33: uint16(33462), + 34: uint16(33466), + 35: uint16(33467), + 36: uint16(33468), + 37: uint16(33471), + 38: uint16(33472), + 39: uint16(33474), + 40: uint16(33475), + 41: uint16(33477), + 42: uint16(33478), + 43: uint16(33481), + 44: uint16(33488), + 45: uint16(33494), + 46: uint16(33497), + 47: uint16(33498), + 48: uint16(33501), + 49: uint16(33506), + 50: uint16(33511), + 51: uint16(33512), + 52: uint16(33513), + 53: uint16(33514), + 54: uint16(33516), + 55: uint16(33517), + 56: uint16(33518), + 57: uint16(33520), + 58: uint16(33522), + 59: uint16(33523), + 60: uint16(33525), + 61: uint16(33526), + 62: uint16(33528), + 63: uint16(33530), + 64: uint16(33532), + 65: uint16(33533), + 66: uint16(33534), + 67: uint16(33535), + 68: uint16(33536), + 69: uint16(33546), + 70: uint16(33547), + 71: uint16(33549), + 72: uint16(33552), + 73: uint16(33554), + 74: uint16(33555), + 75: uint16(33558), + 76: uint16(33560), + 77: uint16(33561), + 78: uint16(33565), + 79: uint16(33566), + 80: uint16(33567), + 81: uint16(33568), + 82: uint16(33569), + 83: uint16(33570), + 84: uint16(33571), + 85: uint16(33572), + 86: uint16(33573), + 87: uint16(33574), + 88: uint16(33577), + 89: uint16(33578), + 90: uint16(33582), + 91: uint16(33584), + 92: uint16(33586), + 93: uint16(33591), + 94: uint16(33595), + 95: uint16(33597), + 96: uint16(21860), + 97: uint16(33086), + 98: uint16(30130), + 99: uint16(30382), + 100: uint16(21305), + 101: uint16(30174), + 102: uint16(20731), + 103: uint16(23617), + 104: uint16(35692), + 105: uint16(31687), + 106: uint16(20559), + 107: uint16(29255), + 108: uint16(39575), + 109: uint16(39128), + 110: uint16(28418), + 111: uint16(29922), + 112: uint16(31080), + 113: uint16(25735), + 114: uint16(30629), + 115: uint16(25340), + 116: uint16(39057), + 117: uint16(36139), + 118: uint16(21697), + 119: uint16(32856), + 120: uint16(20050), + 121: uint16(22378), + 122: uint16(33529), + 123: uint16(33805), + 124: uint16(24179), + 125: uint16(20973), + 126: uint16(29942), + 127: uint16(35780), + 128: uint16(23631), + 129: uint16(22369), + 130: uint16(27900), + 131: uint16(39047), + 132: uint16(23110), + 133: uint16(30772), + 134: uint16(39748), + 135: uint16(36843), + 136: uint16(31893), + 137: uint16(21078), + 138: uint16(25169), + 139: uint16(38138), + 140: uint16(20166), + 141: uint16(33670), + 142: uint16(33889), + 143: uint16(33769), + 144: uint16(33970), + 145: uint16(22484), + 146: uint16(26420), + 147: uint16(22275), + 148: uint16(26222), + 149: uint16(28006), + 150: uint16(35889), + 151: uint16(26333), + 152: uint16(28689), + 153: uint16(26399), + 154: uint16(27450), + 155: uint16(26646), + 156: uint16(25114), + 157: uint16(22971), + 158: uint16(19971), + 159: uint16(20932), + 160: uint16(28422), + 161: uint16(26578), + 162: uint16(27791), + 163: uint16(20854), + 164: uint16(26827), + 165: uint16(22855), + 166: uint16(27495), + 167: uint16(30054), + 168: uint16(23822), + 169: uint16(33040), + 170: uint16(40784), + 171: uint16(26071), + 172: uint16(31048), + 173: uint16(31041), + 174: uint16(39569), + 175: uint16(36215), + 176: uint16(23682), + 177: uint16(20062), + 178: uint16(20225), + 179: uint16(21551), + 180: uint16(22865), + 181: uint16(30732), + 182: uint16(22120), + 183: uint16(27668), + 184: uint16(36804), + 185: uint16(24323), + 186: uint16(27773), + 187: uint16(27875), + 188: uint16(35755), + 189: uint16(25488), + }, + 70: { + 0: uint16(33598), + 1: uint16(33599), + 2: uint16(33601), + 3: uint16(33602), + 4: uint16(33604), + 5: uint16(33605), + 6: uint16(33608), + 7: uint16(33610), + 8: uint16(33611), + 9: uint16(33612), + 10: uint16(33613), + 11: uint16(33614), + 12: uint16(33619), + 13: uint16(33621), + 14: uint16(33622), + 15: uint16(33623), + 16: uint16(33624), + 17: uint16(33625), + 18: uint16(33629), + 19: uint16(33634), + 20: uint16(33648), + 21: uint16(33649), + 22: uint16(33650), + 23: uint16(33651), + 24: uint16(33652), + 25: uint16(33653), + 26: uint16(33654), + 27: uint16(33657), + 28: uint16(33658), + 29: uint16(33662), + 30: uint16(33663), + 31: uint16(33664), + 32: uint16(33665), + 33: uint16(33666), + 34: uint16(33667), + 35: uint16(33668), + 36: uint16(33671), + 37: uint16(33672), + 38: uint16(33674), + 39: uint16(33675), + 40: uint16(33676), + 41: uint16(33677), + 42: uint16(33679), + 43: uint16(33680), + 44: uint16(33681), + 45: uint16(33684), + 46: uint16(33685), + 47: uint16(33686), + 48: uint16(33687), + 49: uint16(33689), + 50: uint16(33690), + 51: uint16(33693), + 52: uint16(33695), + 53: uint16(33697), + 54: uint16(33698), + 55: uint16(33699), + 56: uint16(33700), + 57: uint16(33701), + 58: uint16(33702), + 59: uint16(33703), + 60: uint16(33708), + 61: uint16(33709), + 62: uint16(33710), + 63: uint16(33711), + 64: uint16(33717), + 65: uint16(33723), + 66: uint16(33726), + 67: uint16(33727), + 68: uint16(33730), + 69: uint16(33731), + 70: uint16(33732), + 71: uint16(33734), + 72: uint16(33736), + 73: uint16(33737), + 74: uint16(33739), + 75: uint16(33741), + 76: uint16(33742), + 77: uint16(33744), + 78: uint16(33745), + 79: uint16(33746), + 80: uint16(33747), + 81: uint16(33749), + 82: uint16(33751), + 83: uint16(33753), + 84: uint16(33754), + 85: uint16(33755), + 86: uint16(33758), + 87: uint16(33762), + 88: uint16(33763), + 89: uint16(33764), + 90: uint16(33766), + 91: uint16(33767), + 92: uint16(33768), + 93: uint16(33771), + 94: uint16(33772), + 95: uint16(33773), + 96: uint16(24688), + 97: uint16(27965), + 98: uint16(29301), + 99: uint16(25190), + 100: uint16(38030), + 101: uint16(38085), + 102: uint16(21315), + 103: uint16(36801), + 104: uint16(31614), + 105: uint16(20191), + 106: uint16(35878), + 107: uint16(20094), + 108: uint16(40660), + 109: uint16(38065), + 110: uint16(38067), + 111: uint16(21069), + 112: uint16(28508), + 113: uint16(36963), + 114: uint16(27973), + 115: uint16(35892), + 116: uint16(22545), + 117: uint16(23884), + 118: uint16(27424), + 119: uint16(27465), + 120: uint16(26538), + 121: uint16(21595), + 122: uint16(33108), + 123: uint16(32652), + 124: uint16(22681), + 125: uint16(34103), + 126: uint16(24378), + 127: uint16(25250), + 128: uint16(27207), + 129: uint16(38201), + 130: uint16(25970), + 131: uint16(24708), + 132: uint16(26725), + 133: uint16(30631), + 134: uint16(20052), + 135: uint16(20392), + 136: uint16(24039), + 137: uint16(38808), + 138: uint16(25772), + 139: uint16(32728), + 140: uint16(23789), + 141: uint16(20431), + 142: uint16(31373), + 143: uint16(20999), + 144: uint16(33540), + 145: uint16(19988), + 146: uint16(24623), + 147: uint16(31363), + 148: uint16(38054), + 149: uint16(20405), + 150: uint16(20146), + 151: uint16(31206), + 152: uint16(29748), + 153: uint16(21220), + 154: uint16(33465), + 155: uint16(25810), + 156: uint16(31165), + 157: uint16(23517), + 158: uint16(27777), + 159: uint16(38738), + 160: uint16(36731), + 161: uint16(27682), + 162: uint16(20542), + 163: uint16(21375), + 164: uint16(28165), + 165: uint16(25806), + 166: uint16(26228), + 167: uint16(27696), + 168: uint16(24773), + 169: uint16(39031), + 170: uint16(35831), + 171: uint16(24198), + 172: uint16(29756), + 173: uint16(31351), + 174: uint16(31179), + 175: uint16(19992), + 176: uint16(37041), + 177: uint16(29699), + 178: uint16(27714), + 179: uint16(22234), + 180: uint16(37195), + 181: uint16(27845), + 182: uint16(36235), + 183: uint16(21306), + 184: uint16(34502), + 185: uint16(26354), + 186: uint16(36527), + 187: uint16(23624), + 188: uint16(39537), + 189: uint16(28192), + }, + 71: { + 0: uint16(33774), + 1: uint16(33775), + 2: uint16(33779), + 3: uint16(33780), + 4: uint16(33781), + 5: uint16(33782), + 6: uint16(33783), + 7: uint16(33786), + 8: uint16(33787), + 9: uint16(33788), + 10: uint16(33790), + 11: uint16(33791), + 12: uint16(33792), + 13: uint16(33794), + 14: uint16(33797), + 15: uint16(33799), + 16: uint16(33800), + 17: uint16(33801), + 18: uint16(33802), + 19: uint16(33808), + 20: uint16(33810), + 21: uint16(33811), + 22: uint16(33812), + 23: uint16(33813), + 24: uint16(33814), + 25: uint16(33815), + 26: uint16(33817), + 27: uint16(33818), + 28: uint16(33819), + 29: uint16(33822), + 30: uint16(33823), + 31: uint16(33824), + 32: uint16(33825), + 33: uint16(33826), + 34: uint16(33827), + 35: uint16(33833), + 36: uint16(33834), + 37: uint16(33835), + 38: uint16(33836), + 39: uint16(33837), + 40: uint16(33838), + 41: uint16(33839), + 42: uint16(33840), + 43: uint16(33842), + 44: uint16(33843), + 45: uint16(33844), + 46: uint16(33845), + 47: uint16(33846), + 48: uint16(33847), + 49: uint16(33849), + 50: uint16(33850), + 51: uint16(33851), + 52: uint16(33854), + 53: uint16(33855), + 54: uint16(33856), + 55: uint16(33857), + 56: uint16(33858), + 57: uint16(33859), + 58: uint16(33860), + 59: uint16(33861), + 60: uint16(33863), + 61: uint16(33864), + 62: uint16(33865), + 63: uint16(33866), + 64: uint16(33867), + 65: uint16(33868), + 66: uint16(33869), + 67: uint16(33870), + 68: uint16(33871), + 69: uint16(33872), + 70: uint16(33874), + 71: uint16(33875), + 72: uint16(33876), + 73: uint16(33877), + 74: uint16(33878), + 75: uint16(33880), + 76: uint16(33885), + 77: uint16(33886), + 78: uint16(33887), + 79: uint16(33888), + 80: uint16(33890), + 81: uint16(33892), + 82: uint16(33893), + 83: uint16(33894), + 84: uint16(33895), + 85: uint16(33896), + 86: uint16(33898), + 87: uint16(33902), + 88: uint16(33903), + 89: uint16(33904), + 90: uint16(33906), + 91: uint16(33908), + 92: uint16(33911), + 93: uint16(33913), + 94: uint16(33915), + 95: uint16(33916), + 96: uint16(21462), + 97: uint16(23094), + 98: uint16(40843), + 99: uint16(36259), + 100: uint16(21435), + 101: uint16(22280), + 102: uint16(39079), + 103: uint16(26435), + 104: uint16(37275), + 105: uint16(27849), + 106: uint16(20840), + 107: uint16(30154), + 108: uint16(25331), + 109: uint16(29356), + 110: uint16(21048), + 111: uint16(21149), + 112: uint16(32570), + 113: uint16(28820), + 114: uint16(30264), + 115: uint16(21364), + 116: uint16(40522), + 117: uint16(27063), + 118: uint16(30830), + 119: uint16(38592), + 120: uint16(35033), + 121: uint16(32676), + 122: uint16(28982), + 123: uint16(29123), + 124: uint16(20873), + 125: uint16(26579), + 126: uint16(29924), + 127: uint16(22756), + 128: uint16(25880), + 129: uint16(22199), + 130: uint16(35753), + 131: uint16(39286), + 132: uint16(25200), + 133: uint16(32469), + 134: uint16(24825), + 135: uint16(28909), + 136: uint16(22764), + 137: uint16(20161), + 138: uint16(20154), + 139: uint16(24525), + 140: uint16(38887), + 141: uint16(20219), + 142: uint16(35748), + 143: uint16(20995), + 144: uint16(22922), + 145: uint16(32427), + 146: uint16(25172), + 147: uint16(20173), + 148: uint16(26085), + 149: uint16(25102), + 150: uint16(33592), + 151: uint16(33993), + 152: uint16(33635), + 153: uint16(34701), + 154: uint16(29076), + 155: uint16(28342), + 156: uint16(23481), + 157: uint16(32466), + 158: uint16(20887), + 159: uint16(25545), + 160: uint16(26580), + 161: uint16(32905), + 162: uint16(33593), + 163: uint16(34837), + 164: uint16(20754), + 165: uint16(23418), + 166: uint16(22914), + 167: uint16(36785), + 168: uint16(20083), + 169: uint16(27741), + 170: uint16(20837), + 171: uint16(35109), + 172: uint16(36719), + 173: uint16(38446), + 174: uint16(34122), + 175: uint16(29790), + 176: uint16(38160), + 177: uint16(38384), + 178: uint16(28070), + 179: uint16(33509), + 180: uint16(24369), + 181: uint16(25746), + 182: uint16(27922), + 183: uint16(33832), + 184: uint16(33134), + 185: uint16(40131), + 186: uint16(22622), + 187: uint16(36187), + 188: uint16(19977), + 189: uint16(21441), + }, + 72: { + 0: uint16(33917), + 1: uint16(33918), + 2: uint16(33919), + 3: uint16(33920), + 4: uint16(33921), + 5: uint16(33923), + 6: uint16(33924), + 7: uint16(33925), + 8: uint16(33926), + 9: uint16(33930), + 10: uint16(33933), + 11: uint16(33935), + 12: uint16(33936), + 13: uint16(33937), + 14: uint16(33938), + 15: uint16(33939), + 16: uint16(33940), + 17: uint16(33941), + 18: uint16(33942), + 19: uint16(33944), + 20: uint16(33946), + 21: uint16(33947), + 22: uint16(33949), + 23: uint16(33950), + 24: uint16(33951), + 25: uint16(33952), + 26: uint16(33954), + 27: uint16(33955), + 28: uint16(33956), + 29: uint16(33957), + 30: uint16(33958), + 31: uint16(33959), + 32: uint16(33960), + 33: uint16(33961), + 34: uint16(33962), + 35: uint16(33963), + 36: uint16(33964), + 37: uint16(33965), + 38: uint16(33966), + 39: uint16(33968), + 40: uint16(33969), + 41: uint16(33971), + 42: uint16(33973), + 43: uint16(33974), + 44: uint16(33975), + 45: uint16(33979), + 46: uint16(33980), + 47: uint16(33982), + 48: uint16(33984), + 49: uint16(33986), + 50: uint16(33987), + 51: uint16(33989), + 52: uint16(33990), + 53: uint16(33991), + 54: uint16(33992), + 55: uint16(33995), + 56: uint16(33996), + 57: uint16(33998), + 58: uint16(33999), + 59: uint16(34002), + 60: uint16(34004), + 61: uint16(34005), + 62: uint16(34007), + 63: uint16(34008), + 64: uint16(34009), + 65: uint16(34010), + 66: uint16(34011), + 67: uint16(34012), + 68: uint16(34014), + 69: uint16(34017), + 70: uint16(34018), + 71: uint16(34020), + 72: uint16(34023), + 73: uint16(34024), + 74: uint16(34025), + 75: uint16(34026), + 76: uint16(34027), + 77: uint16(34029), + 78: uint16(34030), + 79: uint16(34031), + 80: uint16(34033), + 81: uint16(34034), + 82: uint16(34035), + 83: uint16(34036), + 84: uint16(34037), + 85: uint16(34038), + 86: uint16(34039), + 87: uint16(34040), + 88: uint16(34041), + 89: uint16(34042), + 90: uint16(34043), + 91: uint16(34045), + 92: uint16(34046), + 93: uint16(34048), + 94: uint16(34049), + 95: uint16(34050), + 96: uint16(20254), + 97: uint16(25955), + 98: uint16(26705), + 99: uint16(21971), + 100: uint16(20007), + 101: uint16(25620), + 102: uint16(39578), + 103: uint16(25195), + 104: uint16(23234), + 105: uint16(29791), + 106: uint16(33394), + 107: uint16(28073), + 108: uint16(26862), + 109: uint16(20711), + 110: uint16(33678), + 111: uint16(30722), + 112: uint16(26432), + 113: uint16(21049), + 114: uint16(27801), + 115: uint16(32433), + 116: uint16(20667), + 117: uint16(21861), + 118: uint16(29022), + 119: uint16(31579), + 120: uint16(26194), + 121: uint16(29642), + 122: uint16(33515), + 123: uint16(26441), + 124: uint16(23665), + 125: uint16(21024), + 126: uint16(29053), + 127: uint16(34923), + 128: uint16(38378), + 129: uint16(38485), + 130: uint16(25797), + 131: uint16(36193), + 132: uint16(33203), + 133: uint16(21892), + 134: uint16(27733), + 135: uint16(25159), + 136: uint16(32558), + 137: uint16(22674), + 138: uint16(20260), + 139: uint16(21830), + 140: uint16(36175), + 141: uint16(26188), + 142: uint16(19978), + 143: uint16(23578), + 144: uint16(35059), + 145: uint16(26786), + 146: uint16(25422), + 147: uint16(31245), + 148: uint16(28903), + 149: uint16(33421), + 150: uint16(21242), + 151: uint16(38902), + 152: uint16(23569), + 153: uint16(21736), + 154: uint16(37045), + 155: uint16(32461), + 156: uint16(22882), + 157: uint16(36170), + 158: uint16(34503), + 159: uint16(33292), + 160: uint16(33293), + 161: uint16(36198), + 162: uint16(25668), + 163: uint16(23556), + 164: uint16(24913), + 165: uint16(28041), + 166: uint16(31038), + 167: uint16(35774), + 168: uint16(30775), + 169: uint16(30003), + 170: uint16(21627), + 171: uint16(20280), + 172: uint16(36523), + 173: uint16(28145), + 174: uint16(23072), + 175: uint16(32453), + 176: uint16(31070), + 177: uint16(27784), + 178: uint16(23457), + 179: uint16(23158), + 180: uint16(29978), + 181: uint16(32958), + 182: uint16(24910), + 183: uint16(28183), + 184: uint16(22768), + 185: uint16(29983), + 186: uint16(29989), + 187: uint16(29298), + 188: uint16(21319), + 189: uint16(32499), + }, + 73: { + 0: uint16(34051), + 1: uint16(34052), + 2: uint16(34053), + 3: uint16(34054), + 4: uint16(34055), + 5: uint16(34056), + 6: uint16(34057), + 7: uint16(34058), + 8: uint16(34059), + 9: uint16(34061), + 10: uint16(34062), + 11: uint16(34063), + 12: uint16(34064), + 13: uint16(34066), + 14: uint16(34068), + 15: uint16(34069), + 16: uint16(34070), + 17: uint16(34072), + 18: uint16(34073), + 19: uint16(34075), + 20: uint16(34076), + 21: uint16(34077), + 22: uint16(34078), + 23: uint16(34080), + 24: uint16(34082), + 25: uint16(34083), + 26: uint16(34084), + 27: uint16(34085), + 28: uint16(34086), + 29: uint16(34087), + 30: uint16(34088), + 31: uint16(34089), + 32: uint16(34090), + 33: uint16(34093), + 34: uint16(34094), + 35: uint16(34095), + 36: uint16(34096), + 37: uint16(34097), + 38: uint16(34098), + 39: uint16(34099), + 40: uint16(34100), + 41: uint16(34101), + 42: uint16(34102), + 43: uint16(34110), + 44: uint16(34111), + 45: uint16(34112), + 46: uint16(34113), + 47: uint16(34114), + 48: uint16(34116), + 49: uint16(34117), + 50: uint16(34118), + 51: uint16(34119), + 52: uint16(34123), + 53: uint16(34124), + 54: uint16(34125), + 55: uint16(34126), + 56: uint16(34127), + 57: uint16(34128), + 58: uint16(34129), + 59: uint16(34130), + 60: uint16(34131), + 61: uint16(34132), + 62: uint16(34133), + 63: uint16(34135), + 64: uint16(34136), + 65: uint16(34138), + 66: uint16(34139), + 67: uint16(34140), + 68: uint16(34141), + 69: uint16(34143), + 70: uint16(34144), + 71: uint16(34145), + 72: uint16(34146), + 73: uint16(34147), + 74: uint16(34149), + 75: uint16(34150), + 76: uint16(34151), + 77: uint16(34153), + 78: uint16(34154), + 79: uint16(34155), + 80: uint16(34156), + 81: uint16(34157), + 82: uint16(34158), + 83: uint16(34159), + 84: uint16(34160), + 85: uint16(34161), + 86: uint16(34163), + 87: uint16(34165), + 88: uint16(34166), + 89: uint16(34167), + 90: uint16(34168), + 91: uint16(34172), + 92: uint16(34173), + 93: uint16(34175), + 94: uint16(34176), + 95: uint16(34177), + 96: uint16(30465), + 97: uint16(30427), + 98: uint16(21097), + 99: uint16(32988), + 100: uint16(22307), + 101: uint16(24072), + 102: uint16(22833), + 103: uint16(29422), + 104: uint16(26045), + 105: uint16(28287), + 106: uint16(35799), + 107: uint16(23608), + 108: uint16(34417), + 109: uint16(21313), + 110: uint16(30707), + 111: uint16(25342), + 112: uint16(26102), + 113: uint16(20160), + 114: uint16(39135), + 115: uint16(34432), + 116: uint16(23454), + 117: uint16(35782), + 118: uint16(21490), + 119: uint16(30690), + 120: uint16(20351), + 121: uint16(23630), + 122: uint16(39542), + 123: uint16(22987), + 124: uint16(24335), + 125: uint16(31034), + 126: uint16(22763), + 127: uint16(19990), + 128: uint16(26623), + 129: uint16(20107), + 130: uint16(25325), + 131: uint16(35475), + 132: uint16(36893), + 133: uint16(21183), + 134: uint16(26159), + 135: uint16(21980), + 136: uint16(22124), + 137: uint16(36866), + 138: uint16(20181), + 139: uint16(20365), + 140: uint16(37322), + 141: uint16(39280), + 142: uint16(27663), + 143: uint16(24066), + 144: uint16(24643), + 145: uint16(23460), + 146: uint16(35270), + 147: uint16(35797), + 148: uint16(25910), + 149: uint16(25163), + 150: uint16(39318), + 151: uint16(23432), + 152: uint16(23551), + 153: uint16(25480), + 154: uint16(21806), + 155: uint16(21463), + 156: uint16(30246), + 157: uint16(20861), + 158: uint16(34092), + 159: uint16(26530), + 160: uint16(26803), + 161: uint16(27530), + 162: uint16(25234), + 163: uint16(36755), + 164: uint16(21460), + 165: uint16(33298), + 166: uint16(28113), + 167: uint16(30095), + 168: uint16(20070), + 169: uint16(36174), + 170: uint16(23408), + 171: uint16(29087), + 172: uint16(34223), + 173: uint16(26257), + 174: uint16(26329), + 175: uint16(32626), + 176: uint16(34560), + 177: uint16(40653), + 178: uint16(40736), + 179: uint16(23646), + 180: uint16(26415), + 181: uint16(36848), + 182: uint16(26641), + 183: uint16(26463), + 184: uint16(25101), + 185: uint16(31446), + 186: uint16(22661), + 187: uint16(24246), + 188: uint16(25968), + 189: uint16(28465), + }, + 74: { + 0: uint16(34178), + 1: uint16(34179), + 2: uint16(34182), + 3: uint16(34184), + 4: uint16(34185), + 5: uint16(34186), + 6: uint16(34187), + 7: uint16(34188), + 8: uint16(34189), + 9: uint16(34190), + 10: uint16(34192), + 11: uint16(34193), + 12: uint16(34194), + 13: uint16(34195), + 14: uint16(34196), + 15: uint16(34197), + 16: uint16(34198), + 17: uint16(34199), + 18: uint16(34200), + 19: uint16(34201), + 20: uint16(34202), + 21: uint16(34205), + 22: uint16(34206), + 23: uint16(34207), + 24: uint16(34208), + 25: uint16(34209), + 26: uint16(34210), + 27: uint16(34211), + 28: uint16(34213), + 29: uint16(34214), + 30: uint16(34215), + 31: uint16(34217), + 32: uint16(34219), + 33: uint16(34220), + 34: uint16(34221), + 35: uint16(34225), + 36: uint16(34226), + 37: uint16(34227), + 38: uint16(34228), + 39: uint16(34229), + 40: uint16(34230), + 41: uint16(34232), + 42: uint16(34234), + 43: uint16(34235), + 44: uint16(34236), + 45: uint16(34237), + 46: uint16(34238), + 47: uint16(34239), + 48: uint16(34240), + 49: uint16(34242), + 50: uint16(34243), + 51: uint16(34244), + 52: uint16(34245), + 53: uint16(34246), + 54: uint16(34247), + 55: uint16(34248), + 56: uint16(34250), + 57: uint16(34251), + 58: uint16(34252), + 59: uint16(34253), + 60: uint16(34254), + 61: uint16(34257), + 62: uint16(34258), + 63: uint16(34260), + 64: uint16(34262), + 65: uint16(34263), + 66: uint16(34264), + 67: uint16(34265), + 68: uint16(34266), + 69: uint16(34267), + 70: uint16(34269), + 71: uint16(34270), + 72: uint16(34271), + 73: uint16(34272), + 74: uint16(34273), + 75: uint16(34274), + 76: uint16(34275), + 77: uint16(34277), + 78: uint16(34278), + 79: uint16(34279), + 80: uint16(34280), + 81: uint16(34282), + 82: uint16(34283), + 83: uint16(34284), + 84: uint16(34285), + 85: uint16(34286), + 86: uint16(34287), + 87: uint16(34288), + 88: uint16(34289), + 89: uint16(34290), + 90: uint16(34291), + 91: uint16(34292), + 92: uint16(34293), + 93: uint16(34294), + 94: uint16(34295), + 95: uint16(34296), + 96: uint16(24661), + 97: uint16(21047), + 98: uint16(32781), + 99: uint16(25684), + 100: uint16(34928), + 101: uint16(29993), + 102: uint16(24069), + 103: uint16(26643), + 104: uint16(25332), + 105: uint16(38684), + 106: uint16(21452), + 107: uint16(29245), + 108: uint16(35841), + 109: uint16(27700), + 110: uint16(30561), + 111: uint16(31246), + 112: uint16(21550), + 113: uint16(30636), + 114: uint16(39034), + 115: uint16(33308), + 116: uint16(35828), + 117: uint16(30805), + 118: uint16(26388), + 119: uint16(28865), + 120: uint16(26031), + 121: uint16(25749), + 122: uint16(22070), + 123: uint16(24605), + 124: uint16(31169), + 125: uint16(21496), + 126: uint16(19997), + 127: uint16(27515), + 128: uint16(32902), + 129: uint16(23546), + 130: uint16(21987), + 131: uint16(22235), + 132: uint16(20282), + 133: uint16(20284), + 134: uint16(39282), + 135: uint16(24051), + 136: uint16(26494), + 137: uint16(32824), + 138: uint16(24578), + 139: uint16(39042), + 140: uint16(36865), + 141: uint16(23435), + 142: uint16(35772), + 143: uint16(35829), + 144: uint16(25628), + 145: uint16(33368), + 146: uint16(25822), + 147: uint16(22013), + 148: uint16(33487), + 149: uint16(37221), + 150: uint16(20439), + 151: uint16(32032), + 152: uint16(36895), + 153: uint16(31903), + 154: uint16(20723), + 155: uint16(22609), + 156: uint16(28335), + 157: uint16(23487), + 158: uint16(35785), + 159: uint16(32899), + 160: uint16(37240), + 161: uint16(33948), + 162: uint16(31639), + 163: uint16(34429), + 164: uint16(38539), + 165: uint16(38543), + 166: uint16(32485), + 167: uint16(39635), + 168: uint16(30862), + 169: uint16(23681), + 170: uint16(31319), + 171: uint16(36930), + 172: uint16(38567), + 173: uint16(31071), + 174: uint16(23385), + 175: uint16(25439), + 176: uint16(31499), + 177: uint16(34001), + 178: uint16(26797), + 179: uint16(21766), + 180: uint16(32553), + 181: uint16(29712), + 182: uint16(32034), + 183: uint16(38145), + 184: uint16(25152), + 185: uint16(22604), + 186: uint16(20182), + 187: uint16(23427), + 188: uint16(22905), + 189: uint16(22612), + }, + 75: { + 0: uint16(34297), + 1: uint16(34298), + 2: uint16(34300), + 3: uint16(34301), + 4: uint16(34302), + 5: uint16(34304), + 6: uint16(34305), + 7: uint16(34306), + 8: uint16(34307), + 9: uint16(34308), + 10: uint16(34310), + 11: uint16(34311), + 12: uint16(34312), + 13: uint16(34313), + 14: uint16(34314), + 15: uint16(34315), + 16: uint16(34316), + 17: uint16(34317), + 18: uint16(34318), + 19: uint16(34319), + 20: uint16(34320), + 21: uint16(34322), + 22: uint16(34323), + 23: uint16(34324), + 24: uint16(34325), + 25: uint16(34327), + 26: uint16(34328), + 27: uint16(34329), + 28: uint16(34330), + 29: uint16(34331), + 30: uint16(34332), + 31: uint16(34333), + 32: uint16(34334), + 33: uint16(34335), + 34: uint16(34336), + 35: uint16(34337), + 36: uint16(34338), + 37: uint16(34339), + 38: uint16(34340), + 39: uint16(34341), + 40: uint16(34342), + 41: uint16(34344), + 42: uint16(34346), + 43: uint16(34347), + 44: uint16(34348), + 45: uint16(34349), + 46: uint16(34350), + 47: uint16(34351), + 48: uint16(34352), + 49: uint16(34353), + 50: uint16(34354), + 51: uint16(34355), + 52: uint16(34356), + 53: uint16(34357), + 54: uint16(34358), + 55: uint16(34359), + 56: uint16(34361), + 57: uint16(34362), + 58: uint16(34363), + 59: uint16(34365), + 60: uint16(34366), + 61: uint16(34367), + 62: uint16(34368), + 63: uint16(34369), + 64: uint16(34370), + 65: uint16(34371), + 66: uint16(34372), + 67: uint16(34373), + 68: uint16(34374), + 69: uint16(34375), + 70: uint16(34376), + 71: uint16(34377), + 72: uint16(34378), + 73: uint16(34379), + 74: uint16(34380), + 75: uint16(34386), + 76: uint16(34387), + 77: uint16(34389), + 78: uint16(34390), + 79: uint16(34391), + 80: uint16(34392), + 81: uint16(34393), + 82: uint16(34395), + 83: uint16(34396), + 84: uint16(34397), + 85: uint16(34399), + 86: uint16(34400), + 87: uint16(34401), + 88: uint16(34403), + 89: uint16(34404), + 90: uint16(34405), + 91: uint16(34406), + 92: uint16(34407), + 93: uint16(34408), + 94: uint16(34409), + 95: uint16(34410), + 96: uint16(29549), + 97: uint16(25374), + 98: uint16(36427), + 99: uint16(36367), + 100: uint16(32974), + 101: uint16(33492), + 102: uint16(25260), + 103: uint16(21488), + 104: uint16(27888), + 105: uint16(37214), + 106: uint16(22826), + 107: uint16(24577), + 108: uint16(27760), + 109: uint16(22349), + 110: uint16(25674), + 111: uint16(36138), + 112: uint16(30251), + 113: uint16(28393), + 114: uint16(22363), + 115: uint16(27264), + 116: uint16(30192), + 117: uint16(28525), + 118: uint16(35885), + 119: uint16(35848), + 120: uint16(22374), + 121: uint16(27631), + 122: uint16(34962), + 123: uint16(30899), + 124: uint16(25506), + 125: uint16(21497), + 126: uint16(28845), + 127: uint16(27748), + 128: uint16(22616), + 129: uint16(25642), + 130: uint16(22530), + 131: uint16(26848), + 132: uint16(33179), + 133: uint16(21776), + 134: uint16(31958), + 135: uint16(20504), + 136: uint16(36538), + 137: uint16(28108), + 138: uint16(36255), + 139: uint16(28907), + 140: uint16(25487), + 141: uint16(28059), + 142: uint16(28372), + 143: uint16(32486), + 144: uint16(33796), + 145: uint16(26691), + 146: uint16(36867), + 147: uint16(28120), + 148: uint16(38518), + 149: uint16(35752), + 150: uint16(22871), + 151: uint16(29305), + 152: uint16(34276), + 153: uint16(33150), + 154: uint16(30140), + 155: uint16(35466), + 156: uint16(26799), + 157: uint16(21076), + 158: uint16(36386), + 159: uint16(38161), + 160: uint16(25552), + 161: uint16(39064), + 162: uint16(36420), + 163: uint16(21884), + 164: uint16(20307), + 165: uint16(26367), + 166: uint16(22159), + 167: uint16(24789), + 168: uint16(28053), + 169: uint16(21059), + 170: uint16(23625), + 171: uint16(22825), + 172: uint16(28155), + 173: uint16(22635), + 174: uint16(30000), + 175: uint16(29980), + 176: uint16(24684), + 177: uint16(33300), + 178: uint16(33094), + 179: uint16(25361), + 180: uint16(26465), + 181: uint16(36834), + 182: uint16(30522), + 183: uint16(36339), + 184: uint16(36148), + 185: uint16(38081), + 186: uint16(24086), + 187: uint16(21381), + 188: uint16(21548), + 189: uint16(28867), + }, + 76: { + 0: uint16(34413), + 1: uint16(34415), + 2: uint16(34416), + 3: uint16(34418), + 4: uint16(34419), + 5: uint16(34420), + 6: uint16(34421), + 7: uint16(34422), + 8: uint16(34423), + 9: uint16(34424), + 10: uint16(34435), + 11: uint16(34436), + 12: uint16(34437), + 13: uint16(34438), + 14: uint16(34439), + 15: uint16(34440), + 16: uint16(34441), + 17: uint16(34446), + 18: uint16(34447), + 19: uint16(34448), + 20: uint16(34449), + 21: uint16(34450), + 22: uint16(34452), + 23: uint16(34454), + 24: uint16(34455), + 25: uint16(34456), + 26: uint16(34457), + 27: uint16(34458), + 28: uint16(34459), + 29: uint16(34462), + 30: uint16(34463), + 31: uint16(34464), + 32: uint16(34465), + 33: uint16(34466), + 34: uint16(34469), + 35: uint16(34470), + 36: uint16(34475), + 37: uint16(34477), + 38: uint16(34478), + 39: uint16(34482), + 40: uint16(34483), + 41: uint16(34487), + 42: uint16(34488), + 43: uint16(34489), + 44: uint16(34491), + 45: uint16(34492), + 46: uint16(34493), + 47: uint16(34494), + 48: uint16(34495), + 49: uint16(34497), + 50: uint16(34498), + 51: uint16(34499), + 52: uint16(34501), + 53: uint16(34504), + 54: uint16(34508), + 55: uint16(34509), + 56: uint16(34514), + 57: uint16(34515), + 58: uint16(34517), + 59: uint16(34518), + 60: uint16(34519), + 61: uint16(34522), + 62: uint16(34524), + 63: uint16(34525), + 64: uint16(34528), + 65: uint16(34529), + 66: uint16(34530), + 67: uint16(34531), + 68: uint16(34533), + 69: uint16(34534), + 70: uint16(34535), + 71: uint16(34536), + 72: uint16(34538), + 73: uint16(34539), + 74: uint16(34540), + 75: uint16(34543), + 76: uint16(34549), + 77: uint16(34550), + 78: uint16(34551), + 79: uint16(34554), + 80: uint16(34555), + 81: uint16(34556), + 82: uint16(34557), + 83: uint16(34559), + 84: uint16(34561), + 85: uint16(34564), + 86: uint16(34565), + 87: uint16(34566), + 88: uint16(34571), + 89: uint16(34572), + 90: uint16(34574), + 91: uint16(34575), + 92: uint16(34576), + 93: uint16(34577), + 94: uint16(34580), + 95: uint16(34582), + 96: uint16(27712), + 97: uint16(24311), + 98: uint16(20572), + 99: uint16(20141), + 100: uint16(24237), + 101: uint16(25402), + 102: uint16(33351), + 103: uint16(36890), + 104: uint16(26704), + 105: uint16(37230), + 106: uint16(30643), + 107: uint16(21516), + 108: uint16(38108), + 109: uint16(24420), + 110: uint16(31461), + 111: uint16(26742), + 112: uint16(25413), + 113: uint16(31570), + 114: uint16(32479), + 115: uint16(30171), + 116: uint16(20599), + 117: uint16(25237), + 118: uint16(22836), + 119: uint16(36879), + 120: uint16(20984), + 121: uint16(31171), + 122: uint16(31361), + 123: uint16(22270), + 124: uint16(24466), + 125: uint16(36884), + 126: uint16(28034), + 127: uint16(23648), + 128: uint16(22303), + 129: uint16(21520), + 130: uint16(20820), + 131: uint16(28237), + 132: uint16(22242), + 133: uint16(25512), + 134: uint16(39059), + 135: uint16(33151), + 136: uint16(34581), + 137: uint16(35114), + 138: uint16(36864), + 139: uint16(21534), + 140: uint16(23663), + 141: uint16(33216), + 142: uint16(25302), + 143: uint16(25176), + 144: uint16(33073), + 145: uint16(40501), + 146: uint16(38464), + 147: uint16(39534), + 148: uint16(39548), + 149: uint16(26925), + 150: uint16(22949), + 151: uint16(25299), + 152: uint16(21822), + 153: uint16(25366), + 154: uint16(21703), + 155: uint16(34521), + 156: uint16(27964), + 157: uint16(23043), + 158: uint16(29926), + 159: uint16(34972), + 160: uint16(27498), + 161: uint16(22806), + 162: uint16(35916), + 163: uint16(24367), + 164: uint16(28286), + 165: uint16(29609), + 166: uint16(39037), + 167: uint16(20024), + 168: uint16(28919), + 169: uint16(23436), + 170: uint16(30871), + 171: uint16(25405), + 172: uint16(26202), + 173: uint16(30358), + 174: uint16(24779), + 175: uint16(23451), + 176: uint16(23113), + 177: uint16(19975), + 178: uint16(33109), + 179: uint16(27754), + 180: uint16(29579), + 181: uint16(20129), + 182: uint16(26505), + 183: uint16(32593), + 184: uint16(24448), + 185: uint16(26106), + 186: uint16(26395), + 187: uint16(24536), + 188: uint16(22916), + 189: uint16(23041), + }, + 77: { + 0: uint16(34585), + 1: uint16(34587), + 2: uint16(34589), + 3: uint16(34591), + 4: uint16(34592), + 5: uint16(34596), + 6: uint16(34598), + 7: uint16(34599), + 8: uint16(34600), + 9: uint16(34602), + 10: uint16(34603), + 11: uint16(34604), + 12: uint16(34605), + 13: uint16(34607), + 14: uint16(34608), + 15: uint16(34610), + 16: uint16(34611), + 17: uint16(34613), + 18: uint16(34614), + 19: uint16(34616), + 20: uint16(34617), + 21: uint16(34618), + 22: uint16(34620), + 23: uint16(34621), + 24: uint16(34624), + 25: uint16(34625), + 26: uint16(34626), + 27: uint16(34627), + 28: uint16(34628), + 29: uint16(34629), + 30: uint16(34630), + 31: uint16(34634), + 32: uint16(34635), + 33: uint16(34637), + 34: uint16(34639), + 35: uint16(34640), + 36: uint16(34641), + 37: uint16(34642), + 38: uint16(34644), + 39: uint16(34645), + 40: uint16(34646), + 41: uint16(34648), + 42: uint16(34650), + 43: uint16(34651), + 44: uint16(34652), + 45: uint16(34653), + 46: uint16(34654), + 47: uint16(34655), + 48: uint16(34657), + 49: uint16(34658), + 50: uint16(34662), + 51: uint16(34663), + 52: uint16(34664), + 53: uint16(34665), + 54: uint16(34666), + 55: uint16(34667), + 56: uint16(34668), + 57: uint16(34669), + 58: uint16(34671), + 59: uint16(34673), + 60: uint16(34674), + 61: uint16(34675), + 62: uint16(34677), + 63: uint16(34679), + 64: uint16(34680), + 65: uint16(34681), + 66: uint16(34682), + 67: uint16(34687), + 68: uint16(34688), + 69: uint16(34689), + 70: uint16(34692), + 71: uint16(34694), + 72: uint16(34695), + 73: uint16(34697), + 74: uint16(34698), + 75: uint16(34700), + 76: uint16(34702), + 77: uint16(34703), + 78: uint16(34704), + 79: uint16(34705), + 80: uint16(34706), + 81: uint16(34708), + 82: uint16(34709), + 83: uint16(34710), + 84: uint16(34712), + 85: uint16(34713), + 86: uint16(34714), + 87: uint16(34715), + 88: uint16(34716), + 89: uint16(34717), + 90: uint16(34718), + 91: uint16(34720), + 92: uint16(34721), + 93: uint16(34722), + 94: uint16(34723), + 95: uint16(34724), + 96: uint16(24013), + 97: uint16(24494), + 98: uint16(21361), + 99: uint16(38886), + 100: uint16(36829), + 101: uint16(26693), + 102: uint16(22260), + 103: uint16(21807), + 104: uint16(24799), + 105: uint16(20026), + 106: uint16(28493), + 107: uint16(32500), + 108: uint16(33479), + 109: uint16(33806), + 110: uint16(22996), + 111: uint16(20255), + 112: uint16(20266), + 113: uint16(23614), + 114: uint16(32428), + 115: uint16(26410), + 116: uint16(34074), + 117: uint16(21619), + 118: uint16(30031), + 119: uint16(32963), + 120: uint16(21890), + 121: uint16(39759), + 122: uint16(20301), + 123: uint16(28205), + 124: uint16(35859), + 125: uint16(23561), + 126: uint16(24944), + 127: uint16(21355), + 128: uint16(30239), + 129: uint16(28201), + 130: uint16(34442), + 131: uint16(25991), + 132: uint16(38395), + 133: uint16(32441), + 134: uint16(21563), + 135: uint16(31283), + 136: uint16(32010), + 137: uint16(38382), + 138: uint16(21985), + 139: uint16(32705), + 140: uint16(29934), + 141: uint16(25373), + 142: uint16(34583), + 143: uint16(28065), + 144: uint16(31389), + 145: uint16(25105), + 146: uint16(26017), + 147: uint16(21351), + 148: uint16(25569), + 149: uint16(27779), + 150: uint16(24043), + 151: uint16(21596), + 152: uint16(38056), + 153: uint16(20044), + 154: uint16(27745), + 155: uint16(35820), + 156: uint16(23627), + 157: uint16(26080), + 158: uint16(33436), + 159: uint16(26791), + 160: uint16(21566), + 161: uint16(21556), + 162: uint16(27595), + 163: uint16(27494), + 164: uint16(20116), + 165: uint16(25410), + 166: uint16(21320), + 167: uint16(33310), + 168: uint16(20237), + 169: uint16(20398), + 170: uint16(22366), + 171: uint16(25098), + 172: uint16(38654), + 173: uint16(26212), + 174: uint16(29289), + 175: uint16(21247), + 176: uint16(21153), + 177: uint16(24735), + 178: uint16(35823), + 179: uint16(26132), + 180: uint16(29081), + 181: uint16(26512), + 182: uint16(35199), + 183: uint16(30802), + 184: uint16(30717), + 185: uint16(26224), + 186: uint16(22075), + 187: uint16(21560), + 188: uint16(38177), + 189: uint16(29306), + }, + 78: { + 0: uint16(34725), + 1: uint16(34726), + 2: uint16(34727), + 3: uint16(34729), + 4: uint16(34730), + 5: uint16(34734), + 6: uint16(34736), + 7: uint16(34737), + 8: uint16(34738), + 9: uint16(34740), + 10: uint16(34742), + 11: uint16(34743), + 12: uint16(34744), + 13: uint16(34745), + 14: uint16(34747), + 15: uint16(34748), + 16: uint16(34750), + 17: uint16(34751), + 18: uint16(34753), + 19: uint16(34754), + 20: uint16(34755), + 21: uint16(34756), + 22: uint16(34757), + 23: uint16(34759), + 24: uint16(34760), + 25: uint16(34761), + 26: uint16(34764), + 27: uint16(34765), + 28: uint16(34766), + 29: uint16(34767), + 30: uint16(34768), + 31: uint16(34772), + 32: uint16(34773), + 33: uint16(34774), + 34: uint16(34775), + 35: uint16(34776), + 36: uint16(34777), + 37: uint16(34778), + 38: uint16(34780), + 39: uint16(34781), + 40: uint16(34782), + 41: uint16(34783), + 42: uint16(34785), + 43: uint16(34786), + 44: uint16(34787), + 45: uint16(34788), + 46: uint16(34790), + 47: uint16(34791), + 48: uint16(34792), + 49: uint16(34793), + 50: uint16(34795), + 51: uint16(34796), + 52: uint16(34797), + 53: uint16(34799), + 54: uint16(34800), + 55: uint16(34801), + 56: uint16(34802), + 57: uint16(34803), + 58: uint16(34804), + 59: uint16(34805), + 60: uint16(34806), + 61: uint16(34807), + 62: uint16(34808), + 63: uint16(34810), + 64: uint16(34811), + 65: uint16(34812), + 66: uint16(34813), + 67: uint16(34815), + 68: uint16(34816), + 69: uint16(34817), + 70: uint16(34818), + 71: uint16(34820), + 72: uint16(34821), + 73: uint16(34822), + 74: uint16(34823), + 75: uint16(34824), + 76: uint16(34825), + 77: uint16(34827), + 78: uint16(34828), + 79: uint16(34829), + 80: uint16(34830), + 81: uint16(34831), + 82: uint16(34832), + 83: uint16(34833), + 84: uint16(34834), + 85: uint16(34836), + 86: uint16(34839), + 87: uint16(34840), + 88: uint16(34841), + 89: uint16(34842), + 90: uint16(34844), + 91: uint16(34845), + 92: uint16(34846), + 93: uint16(34847), + 94: uint16(34848), + 95: uint16(34851), + 96: uint16(31232), + 97: uint16(24687), + 98: uint16(24076), + 99: uint16(24713), + 100: uint16(33181), + 101: uint16(22805), + 102: uint16(24796), + 103: uint16(29060), + 104: uint16(28911), + 105: uint16(28330), + 106: uint16(27728), + 107: uint16(29312), + 108: uint16(27268), + 109: uint16(34989), + 110: uint16(24109), + 111: uint16(20064), + 112: uint16(23219), + 113: uint16(21916), + 114: uint16(38115), + 115: uint16(27927), + 116: uint16(31995), + 117: uint16(38553), + 118: uint16(25103), + 119: uint16(32454), + 120: uint16(30606), + 121: uint16(34430), + 122: uint16(21283), + 123: uint16(38686), + 124: uint16(36758), + 125: uint16(26247), + 126: uint16(23777), + 127: uint16(20384), + 128: uint16(29421), + 129: uint16(19979), + 130: uint16(21414), + 131: uint16(22799), + 132: uint16(21523), + 133: uint16(25472), + 134: uint16(38184), + 135: uint16(20808), + 136: uint16(20185), + 137: uint16(40092), + 138: uint16(32420), + 139: uint16(21688), + 140: uint16(36132), + 141: uint16(34900), + 142: uint16(33335), + 143: uint16(38386), + 144: uint16(28046), + 145: uint16(24358), + 146: uint16(23244), + 147: uint16(26174), + 148: uint16(38505), + 149: uint16(29616), + 150: uint16(29486), + 151: uint16(21439), + 152: uint16(33146), + 153: uint16(39301), + 154: uint16(32673), + 155: uint16(23466), + 156: uint16(38519), + 157: uint16(38480), + 158: uint16(32447), + 159: uint16(30456), + 160: uint16(21410), + 161: uint16(38262), + 162: uint16(39321), + 163: uint16(31665), + 164: uint16(35140), + 165: uint16(28248), + 166: uint16(20065), + 167: uint16(32724), + 168: uint16(31077), + 169: uint16(35814), + 170: uint16(24819), + 171: uint16(21709), + 172: uint16(20139), + 173: uint16(39033), + 174: uint16(24055), + 175: uint16(27233), + 176: uint16(20687), + 177: uint16(21521), + 178: uint16(35937), + 179: uint16(33831), + 180: uint16(30813), + 181: uint16(38660), + 182: uint16(21066), + 183: uint16(21742), + 184: uint16(22179), + 185: uint16(38144), + 186: uint16(28040), + 187: uint16(23477), + 188: uint16(28102), + 189: uint16(26195), + }, + 79: { + 0: uint16(34852), + 1: uint16(34853), + 2: uint16(34854), + 3: uint16(34855), + 4: uint16(34856), + 5: uint16(34857), + 6: uint16(34858), + 7: uint16(34859), + 8: uint16(34860), + 9: uint16(34861), + 10: uint16(34862), + 11: uint16(34863), + 12: uint16(34864), + 13: uint16(34865), + 14: uint16(34867), + 15: uint16(34868), + 16: uint16(34869), + 17: uint16(34870), + 18: uint16(34871), + 19: uint16(34872), + 20: uint16(34874), + 21: uint16(34875), + 22: uint16(34877), + 23: uint16(34878), + 24: uint16(34879), + 25: uint16(34881), + 26: uint16(34882), + 27: uint16(34883), + 28: uint16(34886), + 29: uint16(34887), + 30: uint16(34888), + 31: uint16(34889), + 32: uint16(34890), + 33: uint16(34891), + 34: uint16(34894), + 35: uint16(34895), + 36: uint16(34896), + 37: uint16(34897), + 38: uint16(34898), + 39: uint16(34899), + 40: uint16(34901), + 41: uint16(34902), + 42: uint16(34904), + 43: uint16(34906), + 44: uint16(34907), + 45: uint16(34908), + 46: uint16(34909), + 47: uint16(34910), + 48: uint16(34911), + 49: uint16(34912), + 50: uint16(34918), + 51: uint16(34919), + 52: uint16(34922), + 53: uint16(34925), + 54: uint16(34927), + 55: uint16(34929), + 56: uint16(34931), + 57: uint16(34932), + 58: uint16(34933), + 59: uint16(34934), + 60: uint16(34936), + 61: uint16(34937), + 62: uint16(34938), + 63: uint16(34939), + 64: uint16(34940), + 65: uint16(34944), + 66: uint16(34947), + 67: uint16(34950), + 68: uint16(34951), + 69: uint16(34953), + 70: uint16(34954), + 71: uint16(34956), + 72: uint16(34958), + 73: uint16(34959), + 74: uint16(34960), + 75: uint16(34961), + 76: uint16(34963), + 77: uint16(34964), + 78: uint16(34965), + 79: uint16(34967), + 80: uint16(34968), + 81: uint16(34969), + 82: uint16(34970), + 83: uint16(34971), + 84: uint16(34973), + 85: uint16(34974), + 86: uint16(34975), + 87: uint16(34976), + 88: uint16(34977), + 89: uint16(34979), + 90: uint16(34981), + 91: uint16(34982), + 92: uint16(34983), + 93: uint16(34984), + 94: uint16(34985), + 95: uint16(34986), + 96: uint16(23567), + 97: uint16(23389), + 98: uint16(26657), + 99: uint16(32918), + 100: uint16(21880), + 101: uint16(31505), + 102: uint16(25928), + 103: uint16(26964), + 104: uint16(20123), + 105: uint16(27463), + 106: uint16(34638), + 107: uint16(38795), + 108: uint16(21327), + 109: uint16(25375), + 110: uint16(25658), + 111: uint16(37034), + 112: uint16(26012), + 113: uint16(32961), + 114: uint16(35856), + 115: uint16(20889), + 116: uint16(26800), + 117: uint16(21368), + 118: uint16(34809), + 119: uint16(25032), + 120: uint16(27844), + 121: uint16(27899), + 122: uint16(35874), + 123: uint16(23633), + 124: uint16(34218), + 125: uint16(33455), + 126: uint16(38156), + 127: uint16(27427), + 128: uint16(36763), + 129: uint16(26032), + 130: uint16(24571), + 131: uint16(24515), + 132: uint16(20449), + 133: uint16(34885), + 134: uint16(26143), + 135: uint16(33125), + 136: uint16(29481), + 137: uint16(24826), + 138: uint16(20852), + 139: uint16(21009), + 140: uint16(22411), + 141: uint16(24418), + 142: uint16(37026), + 143: uint16(34892), + 144: uint16(37266), + 145: uint16(24184), + 146: uint16(26447), + 147: uint16(24615), + 148: uint16(22995), + 149: uint16(20804), + 150: uint16(20982), + 151: uint16(33016), + 152: uint16(21256), + 153: uint16(27769), + 154: uint16(38596), + 155: uint16(29066), + 156: uint16(20241), + 157: uint16(20462), + 158: uint16(32670), + 159: uint16(26429), + 160: uint16(21957), + 161: uint16(38152), + 162: uint16(31168), + 163: uint16(34966), + 164: uint16(32483), + 165: uint16(22687), + 166: uint16(25100), + 167: uint16(38656), + 168: uint16(34394), + 169: uint16(22040), + 170: uint16(39035), + 171: uint16(24464), + 172: uint16(35768), + 173: uint16(33988), + 174: uint16(37207), + 175: uint16(21465), + 176: uint16(26093), + 177: uint16(24207), + 178: uint16(30044), + 179: uint16(24676), + 180: uint16(32110), + 181: uint16(23167), + 182: uint16(32490), + 183: uint16(32493), + 184: uint16(36713), + 185: uint16(21927), + 186: uint16(23459), + 187: uint16(24748), + 188: uint16(26059), + 189: uint16(29572), + }, + 80: { + 0: uint16(34988), + 1: uint16(34990), + 2: uint16(34991), + 3: uint16(34992), + 4: uint16(34994), + 5: uint16(34995), + 6: uint16(34996), + 7: uint16(34997), + 8: uint16(34998), + 9: uint16(35000), + 10: uint16(35001), + 11: uint16(35002), + 12: uint16(35003), + 13: uint16(35005), + 14: uint16(35006), + 15: uint16(35007), + 16: uint16(35008), + 17: uint16(35011), + 18: uint16(35012), + 19: uint16(35015), + 20: uint16(35016), + 21: uint16(35018), + 22: uint16(35019), + 23: uint16(35020), + 24: uint16(35021), + 25: uint16(35023), + 26: uint16(35024), + 27: uint16(35025), + 28: uint16(35027), + 29: uint16(35030), + 30: uint16(35031), + 31: uint16(35034), + 32: uint16(35035), + 33: uint16(35036), + 34: uint16(35037), + 35: uint16(35038), + 36: uint16(35040), + 37: uint16(35041), + 38: uint16(35046), + 39: uint16(35047), + 40: uint16(35049), + 41: uint16(35050), + 42: uint16(35051), + 43: uint16(35052), + 44: uint16(35053), + 45: uint16(35054), + 46: uint16(35055), + 47: uint16(35058), + 48: uint16(35061), + 49: uint16(35062), + 50: uint16(35063), + 51: uint16(35066), + 52: uint16(35067), + 53: uint16(35069), + 54: uint16(35071), + 55: uint16(35072), + 56: uint16(35073), + 57: uint16(35075), + 58: uint16(35076), + 59: uint16(35077), + 60: uint16(35078), + 61: uint16(35079), + 62: uint16(35080), + 63: uint16(35081), + 64: uint16(35083), + 65: uint16(35084), + 66: uint16(35085), + 67: uint16(35086), + 68: uint16(35087), + 69: uint16(35089), + 70: uint16(35092), + 71: uint16(35093), + 72: uint16(35094), + 73: uint16(35095), + 74: uint16(35096), + 75: uint16(35100), + 76: uint16(35101), + 77: uint16(35102), + 78: uint16(35103), + 79: uint16(35104), + 80: uint16(35106), + 81: uint16(35107), + 82: uint16(35108), + 83: uint16(35110), + 84: uint16(35111), + 85: uint16(35112), + 86: uint16(35113), + 87: uint16(35116), + 88: uint16(35117), + 89: uint16(35118), + 90: uint16(35119), + 91: uint16(35121), + 92: uint16(35122), + 93: uint16(35123), + 94: uint16(35125), + 95: uint16(35127), + 96: uint16(36873), + 97: uint16(30307), + 98: uint16(30505), + 99: uint16(32474), + 100: uint16(38772), + 101: uint16(34203), + 102: uint16(23398), + 103: uint16(31348), + 104: uint16(38634), + 105: uint16(34880), + 106: uint16(21195), + 107: uint16(29071), + 108: uint16(24490), + 109: uint16(26092), + 110: uint16(35810), + 111: uint16(23547), + 112: uint16(39535), + 113: uint16(24033), + 114: uint16(27529), + 115: uint16(27739), + 116: uint16(35757), + 117: uint16(35759), + 118: uint16(36874), + 119: uint16(36805), + 120: uint16(21387), + 121: uint16(25276), + 122: uint16(40486), + 123: uint16(40493), + 124: uint16(21568), + 125: uint16(20011), + 126: uint16(33469), + 127: uint16(29273), + 128: uint16(34460), + 129: uint16(23830), + 130: uint16(34905), + 131: uint16(28079), + 132: uint16(38597), + 133: uint16(21713), + 134: uint16(20122), + 135: uint16(35766), + 136: uint16(28937), + 137: uint16(21693), + 138: uint16(38409), + 139: uint16(28895), + 140: uint16(28153), + 141: uint16(30416), + 142: uint16(20005), + 143: uint16(30740), + 144: uint16(34578), + 145: uint16(23721), + 146: uint16(24310), + 147: uint16(35328), + 148: uint16(39068), + 149: uint16(38414), + 150: uint16(28814), + 151: uint16(27839), + 152: uint16(22852), + 153: uint16(25513), + 154: uint16(30524), + 155: uint16(34893), + 156: uint16(28436), + 157: uint16(33395), + 158: uint16(22576), + 159: uint16(29141), + 160: uint16(21388), + 161: uint16(30746), + 162: uint16(38593), + 163: uint16(21761), + 164: uint16(24422), + 165: uint16(28976), + 166: uint16(23476), + 167: uint16(35866), + 168: uint16(39564), + 169: uint16(27523), + 170: uint16(22830), + 171: uint16(40495), + 172: uint16(31207), + 173: uint16(26472), + 174: uint16(25196), + 175: uint16(20335), + 176: uint16(30113), + 177: uint16(32650), + 178: uint16(27915), + 179: uint16(38451), + 180: uint16(27687), + 181: uint16(20208), + 182: uint16(30162), + 183: uint16(20859), + 184: uint16(26679), + 185: uint16(28478), + 186: uint16(36992), + 187: uint16(33136), + 188: uint16(22934), + 189: uint16(29814), + }, + 81: { + 0: uint16(35128), + 1: uint16(35129), + 2: uint16(35130), + 3: uint16(35131), + 4: uint16(35132), + 5: uint16(35133), + 6: uint16(35134), + 7: uint16(35135), + 8: uint16(35136), + 9: uint16(35138), + 10: uint16(35139), + 11: uint16(35141), + 12: uint16(35142), + 13: uint16(35143), + 14: uint16(35144), + 15: uint16(35145), + 16: uint16(35146), + 17: uint16(35147), + 18: uint16(35148), + 19: uint16(35149), + 20: uint16(35150), + 21: uint16(35151), + 22: uint16(35152), + 23: uint16(35153), + 24: uint16(35154), + 25: uint16(35155), + 26: uint16(35156), + 27: uint16(35157), + 28: uint16(35158), + 29: uint16(35159), + 30: uint16(35160), + 31: uint16(35161), + 32: uint16(35162), + 33: uint16(35163), + 34: uint16(35164), + 35: uint16(35165), + 36: uint16(35168), + 37: uint16(35169), + 38: uint16(35170), + 39: uint16(35171), + 40: uint16(35172), + 41: uint16(35173), + 42: uint16(35175), + 43: uint16(35176), + 44: uint16(35177), + 45: uint16(35178), + 46: uint16(35179), + 47: uint16(35180), + 48: uint16(35181), + 49: uint16(35182), + 50: uint16(35183), + 51: uint16(35184), + 52: uint16(35185), + 53: uint16(35186), + 54: uint16(35187), + 55: uint16(35188), + 56: uint16(35189), + 57: uint16(35190), + 58: uint16(35191), + 59: uint16(35192), + 60: uint16(35193), + 61: uint16(35194), + 62: uint16(35196), + 63: uint16(35197), + 64: uint16(35198), + 65: uint16(35200), + 66: uint16(35202), + 67: uint16(35204), + 68: uint16(35205), + 69: uint16(35207), + 70: uint16(35208), + 71: uint16(35209), + 72: uint16(35210), + 73: uint16(35211), + 74: uint16(35212), + 75: uint16(35213), + 76: uint16(35214), + 77: uint16(35215), + 78: uint16(35216), + 79: uint16(35217), + 80: uint16(35218), + 81: uint16(35219), + 82: uint16(35220), + 83: uint16(35221), + 84: uint16(35222), + 85: uint16(35223), + 86: uint16(35224), + 87: uint16(35225), + 88: uint16(35226), + 89: uint16(35227), + 90: uint16(35228), + 91: uint16(35229), + 92: uint16(35230), + 93: uint16(35231), + 94: uint16(35232), + 95: uint16(35233), + 96: uint16(25671), + 97: uint16(23591), + 98: uint16(36965), + 99: uint16(31377), + 100: uint16(35875), + 101: uint16(23002), + 102: uint16(21676), + 103: uint16(33280), + 104: uint16(33647), + 105: uint16(35201), + 106: uint16(32768), + 107: uint16(26928), + 108: uint16(22094), + 109: uint16(32822), + 110: uint16(29239), + 111: uint16(37326), + 112: uint16(20918), + 113: uint16(20063), + 114: uint16(39029), + 115: uint16(25494), + 116: uint16(19994), + 117: uint16(21494), + 118: uint16(26355), + 119: uint16(33099), + 120: uint16(22812), + 121: uint16(28082), + 122: uint16(19968), + 123: uint16(22777), + 124: uint16(21307), + 125: uint16(25558), + 126: uint16(38129), + 127: uint16(20381), + 128: uint16(20234), + 129: uint16(34915), + 130: uint16(39056), + 131: uint16(22839), + 132: uint16(36951), + 133: uint16(31227), + 134: uint16(20202), + 135: uint16(33008), + 136: uint16(30097), + 137: uint16(27778), + 138: uint16(23452), + 139: uint16(23016), + 140: uint16(24413), + 141: uint16(26885), + 142: uint16(34433), + 143: uint16(20506), + 144: uint16(24050), + 145: uint16(20057), + 146: uint16(30691), + 147: uint16(20197), + 148: uint16(33402), + 149: uint16(25233), + 150: uint16(26131), + 151: uint16(37009), + 152: uint16(23673), + 153: uint16(20159), + 154: uint16(24441), + 155: uint16(33222), + 156: uint16(36920), + 157: uint16(32900), + 158: uint16(30123), + 159: uint16(20134), + 160: uint16(35028), + 161: uint16(24847), + 162: uint16(27589), + 163: uint16(24518), + 164: uint16(20041), + 165: uint16(30410), + 166: uint16(28322), + 167: uint16(35811), + 168: uint16(35758), + 169: uint16(35850), + 170: uint16(35793), + 171: uint16(24322), + 172: uint16(32764), + 173: uint16(32716), + 174: uint16(32462), + 175: uint16(33589), + 176: uint16(33643), + 177: uint16(22240), + 178: uint16(27575), + 179: uint16(38899), + 180: uint16(38452), + 181: uint16(23035), + 182: uint16(21535), + 183: uint16(38134), + 184: uint16(28139), + 185: uint16(23493), + 186: uint16(39278), + 187: uint16(23609), + 188: uint16(24341), + 189: uint16(38544), + }, + 82: { + 0: uint16(35234), + 1: uint16(35235), + 2: uint16(35236), + 3: uint16(35237), + 4: uint16(35238), + 5: uint16(35239), + 6: uint16(35240), + 7: uint16(35241), + 8: uint16(35242), + 9: uint16(35243), + 10: uint16(35244), + 11: uint16(35245), + 12: uint16(35246), + 13: uint16(35247), + 14: uint16(35248), + 15: uint16(35249), + 16: uint16(35250), + 17: uint16(35251), + 18: uint16(35252), + 19: uint16(35253), + 20: uint16(35254), + 21: uint16(35255), + 22: uint16(35256), + 23: uint16(35257), + 24: uint16(35258), + 25: uint16(35259), + 26: uint16(35260), + 27: uint16(35261), + 28: uint16(35262), + 29: uint16(35263), + 30: uint16(35264), + 31: uint16(35267), + 32: uint16(35277), + 33: uint16(35283), + 34: uint16(35284), + 35: uint16(35285), + 36: uint16(35287), + 37: uint16(35288), + 38: uint16(35289), + 39: uint16(35291), + 40: uint16(35293), + 41: uint16(35295), + 42: uint16(35296), + 43: uint16(35297), + 44: uint16(35298), + 45: uint16(35300), + 46: uint16(35303), + 47: uint16(35304), + 48: uint16(35305), + 49: uint16(35306), + 50: uint16(35308), + 51: uint16(35309), + 52: uint16(35310), + 53: uint16(35312), + 54: uint16(35313), + 55: uint16(35314), + 56: uint16(35316), + 57: uint16(35317), + 58: uint16(35318), + 59: uint16(35319), + 60: uint16(35320), + 61: uint16(35321), + 62: uint16(35322), + 63: uint16(35323), + 64: uint16(35324), + 65: uint16(35325), + 66: uint16(35326), + 67: uint16(35327), + 68: uint16(35329), + 69: uint16(35330), + 70: uint16(35331), + 71: uint16(35332), + 72: uint16(35333), + 73: uint16(35334), + 74: uint16(35336), + 75: uint16(35337), + 76: uint16(35338), + 77: uint16(35339), + 78: uint16(35340), + 79: uint16(35341), + 80: uint16(35342), + 81: uint16(35343), + 82: uint16(35344), + 83: uint16(35345), + 84: uint16(35346), + 85: uint16(35347), + 86: uint16(35348), + 87: uint16(35349), + 88: uint16(35350), + 89: uint16(35351), + 90: uint16(35352), + 91: uint16(35353), + 92: uint16(35354), + 93: uint16(35355), + 94: uint16(35356), + 95: uint16(35357), + 96: uint16(21360), + 97: uint16(33521), + 98: uint16(27185), + 99: uint16(23156), + 100: uint16(40560), + 101: uint16(24212), + 102: uint16(32552), + 103: uint16(33721), + 104: uint16(33828), + 105: uint16(33829), + 106: uint16(33639), + 107: uint16(34631), + 108: uint16(36814), + 109: uint16(36194), + 110: uint16(30408), + 111: uint16(24433), + 112: uint16(39062), + 113: uint16(30828), + 114: uint16(26144), + 115: uint16(21727), + 116: uint16(25317), + 117: uint16(20323), + 118: uint16(33219), + 119: uint16(30152), + 120: uint16(24248), + 121: uint16(38605), + 122: uint16(36362), + 123: uint16(34553), + 124: uint16(21647), + 125: uint16(27891), + 126: uint16(28044), + 127: uint16(27704), + 128: uint16(24703), + 129: uint16(21191), + 130: uint16(29992), + 131: uint16(24189), + 132: uint16(20248), + 133: uint16(24736), + 134: uint16(24551), + 135: uint16(23588), + 136: uint16(30001), + 137: uint16(37038), + 138: uint16(38080), + 139: uint16(29369), + 140: uint16(27833), + 141: uint16(28216), + 142: uint16(37193), + 143: uint16(26377), + 144: uint16(21451), + 145: uint16(21491), + 146: uint16(20305), + 147: uint16(37321), + 148: uint16(35825), + 149: uint16(21448), + 150: uint16(24188), + 151: uint16(36802), + 152: uint16(28132), + 153: uint16(20110), + 154: uint16(30402), + 155: uint16(27014), + 156: uint16(34398), + 157: uint16(24858), + 158: uint16(33286), + 159: uint16(20313), + 160: uint16(20446), + 161: uint16(36926), + 162: uint16(40060), + 163: uint16(24841), + 164: uint16(28189), + 165: uint16(28180), + 166: uint16(38533), + 167: uint16(20104), + 168: uint16(23089), + 169: uint16(38632), + 170: uint16(19982), + 171: uint16(23679), + 172: uint16(31161), + 173: uint16(23431), + 174: uint16(35821), + 175: uint16(32701), + 176: uint16(29577), + 177: uint16(22495), + 178: uint16(33419), + 179: uint16(37057), + 180: uint16(21505), + 181: uint16(36935), + 182: uint16(21947), + 183: uint16(23786), + 184: uint16(24481), + 185: uint16(24840), + 186: uint16(27442), + 187: uint16(29425), + 188: uint16(32946), + 189: uint16(35465), + }, + 83: { + 0: uint16(35358), + 1: uint16(35359), + 2: uint16(35360), + 3: uint16(35361), + 4: uint16(35362), + 5: uint16(35363), + 6: uint16(35364), + 7: uint16(35365), + 8: uint16(35366), + 9: uint16(35367), + 10: uint16(35368), + 11: uint16(35369), + 12: uint16(35370), + 13: uint16(35371), + 14: uint16(35372), + 15: uint16(35373), + 16: uint16(35374), + 17: uint16(35375), + 18: uint16(35376), + 19: uint16(35377), + 20: uint16(35378), + 21: uint16(35379), + 22: uint16(35380), + 23: uint16(35381), + 24: uint16(35382), + 25: uint16(35383), + 26: uint16(35384), + 27: uint16(35385), + 28: uint16(35386), + 29: uint16(35387), + 30: uint16(35388), + 31: uint16(35389), + 32: uint16(35391), + 33: uint16(35392), + 34: uint16(35393), + 35: uint16(35394), + 36: uint16(35395), + 37: uint16(35396), + 38: uint16(35397), + 39: uint16(35398), + 40: uint16(35399), + 41: uint16(35401), + 42: uint16(35402), + 43: uint16(35403), + 44: uint16(35404), + 45: uint16(35405), + 46: uint16(35406), + 47: uint16(35407), + 48: uint16(35408), + 49: uint16(35409), + 50: uint16(35410), + 51: uint16(35411), + 52: uint16(35412), + 53: uint16(35413), + 54: uint16(35414), + 55: uint16(35415), + 56: uint16(35416), + 57: uint16(35417), + 58: uint16(35418), + 59: uint16(35419), + 60: uint16(35420), + 61: uint16(35421), + 62: uint16(35422), + 63: uint16(35423), + 64: uint16(35424), + 65: uint16(35425), + 66: uint16(35426), + 67: uint16(35427), + 68: uint16(35428), + 69: uint16(35429), + 70: uint16(35430), + 71: uint16(35431), + 72: uint16(35432), + 73: uint16(35433), + 74: uint16(35434), + 75: uint16(35435), + 76: uint16(35436), + 77: uint16(35437), + 78: uint16(35438), + 79: uint16(35439), + 80: uint16(35440), + 81: uint16(35441), + 82: uint16(35442), + 83: uint16(35443), + 84: uint16(35444), + 85: uint16(35445), + 86: uint16(35446), + 87: uint16(35447), + 88: uint16(35448), + 89: uint16(35450), + 90: uint16(35451), + 91: uint16(35452), + 92: uint16(35453), + 93: uint16(35454), + 94: uint16(35455), + 95: uint16(35456), + 96: uint16(28020), + 97: uint16(23507), + 98: uint16(35029), + 99: uint16(39044), + 100: uint16(35947), + 101: uint16(39533), + 102: uint16(40499), + 103: uint16(28170), + 104: uint16(20900), + 105: uint16(20803), + 106: uint16(22435), + 107: uint16(34945), + 108: uint16(21407), + 109: uint16(25588), + 110: uint16(36757), + 111: uint16(22253), + 112: uint16(21592), + 113: uint16(22278), + 114: uint16(29503), + 115: uint16(28304), + 116: uint16(32536), + 117: uint16(36828), + 118: uint16(33489), + 119: uint16(24895), + 120: uint16(24616), + 121: uint16(38498), + 122: uint16(26352), + 123: uint16(32422), + 124: uint16(36234), + 125: uint16(36291), + 126: uint16(38053), + 127: uint16(23731), + 128: uint16(31908), + 129: uint16(26376), + 130: uint16(24742), + 131: uint16(38405), + 132: uint16(32792), + 133: uint16(20113), + 134: uint16(37095), + 135: uint16(21248), + 136: uint16(38504), + 137: uint16(20801), + 138: uint16(36816), + 139: uint16(34164), + 140: uint16(37213), + 141: uint16(26197), + 142: uint16(38901), + 143: uint16(23381), + 144: uint16(21277), + 145: uint16(30776), + 146: uint16(26434), + 147: uint16(26685), + 148: uint16(21705), + 149: uint16(28798), + 150: uint16(23472), + 151: uint16(36733), + 152: uint16(20877), + 153: uint16(22312), + 154: uint16(21681), + 155: uint16(25874), + 156: uint16(26242), + 157: uint16(36190), + 158: uint16(36163), + 159: uint16(33039), + 160: uint16(33900), + 161: uint16(36973), + 162: uint16(31967), + 163: uint16(20991), + 164: uint16(34299), + 165: uint16(26531), + 166: uint16(26089), + 167: uint16(28577), + 168: uint16(34468), + 169: uint16(36481), + 170: uint16(22122), + 171: uint16(36896), + 172: uint16(30338), + 173: uint16(28790), + 174: uint16(29157), + 175: uint16(36131), + 176: uint16(25321), + 177: uint16(21017), + 178: uint16(27901), + 179: uint16(36156), + 180: uint16(24590), + 181: uint16(22686), + 182: uint16(24974), + 183: uint16(26366), + 184: uint16(36192), + 185: uint16(25166), + 186: uint16(21939), + 187: uint16(28195), + 188: uint16(26413), + 189: uint16(36711), + }, + 84: { + 0: uint16(35457), + 1: uint16(35458), + 2: uint16(35459), + 3: uint16(35460), + 4: uint16(35461), + 5: uint16(35462), + 6: uint16(35463), + 7: uint16(35464), + 8: uint16(35467), + 9: uint16(35468), + 10: uint16(35469), + 11: uint16(35470), + 12: uint16(35471), + 13: uint16(35472), + 14: uint16(35473), + 15: uint16(35474), + 16: uint16(35476), + 17: uint16(35477), + 18: uint16(35478), + 19: uint16(35479), + 20: uint16(35480), + 21: uint16(35481), + 22: uint16(35482), + 23: uint16(35483), + 24: uint16(35484), + 25: uint16(35485), + 26: uint16(35486), + 27: uint16(35487), + 28: uint16(35488), + 29: uint16(35489), + 30: uint16(35490), + 31: uint16(35491), + 32: uint16(35492), + 33: uint16(35493), + 34: uint16(35494), + 35: uint16(35495), + 36: uint16(35496), + 37: uint16(35497), + 38: uint16(35498), + 39: uint16(35499), + 40: uint16(35500), + 41: uint16(35501), + 42: uint16(35502), + 43: uint16(35503), + 44: uint16(35504), + 45: uint16(35505), + 46: uint16(35506), + 47: uint16(35507), + 48: uint16(35508), + 49: uint16(35509), + 50: uint16(35510), + 51: uint16(35511), + 52: uint16(35512), + 53: uint16(35513), + 54: uint16(35514), + 55: uint16(35515), + 56: uint16(35516), + 57: uint16(35517), + 58: uint16(35518), + 59: uint16(35519), + 60: uint16(35520), + 61: uint16(35521), + 62: uint16(35522), + 63: uint16(35523), + 64: uint16(35524), + 65: uint16(35525), + 66: uint16(35526), + 67: uint16(35527), + 68: uint16(35528), + 69: uint16(35529), + 70: uint16(35530), + 71: uint16(35531), + 72: uint16(35532), + 73: uint16(35533), + 74: uint16(35534), + 75: uint16(35535), + 76: uint16(35536), + 77: uint16(35537), + 78: uint16(35538), + 79: uint16(35539), + 80: uint16(35540), + 81: uint16(35541), + 82: uint16(35542), + 83: uint16(35543), + 84: uint16(35544), + 85: uint16(35545), + 86: uint16(35546), + 87: uint16(35547), + 88: uint16(35548), + 89: uint16(35549), + 90: uint16(35550), + 91: uint16(35551), + 92: uint16(35552), + 93: uint16(35553), + 94: uint16(35554), + 95: uint16(35555), + 96: uint16(38113), + 97: uint16(38392), + 98: uint16(30504), + 99: uint16(26629), + 100: uint16(27048), + 101: uint16(21643), + 102: uint16(20045), + 103: uint16(28856), + 104: uint16(35784), + 105: uint16(25688), + 106: uint16(25995), + 107: uint16(23429), + 108: uint16(31364), + 109: uint16(20538), + 110: uint16(23528), + 111: uint16(30651), + 112: uint16(27617), + 113: uint16(35449), + 114: uint16(31896), + 115: uint16(27838), + 116: uint16(30415), + 117: uint16(26025), + 118: uint16(36759), + 119: uint16(23853), + 120: uint16(23637), + 121: uint16(34360), + 122: uint16(26632), + 123: uint16(21344), + 124: uint16(25112), + 125: uint16(31449), + 126: uint16(28251), + 127: uint16(32509), + 128: uint16(27167), + 129: uint16(31456), + 130: uint16(24432), + 131: uint16(28467), + 132: uint16(24352), + 133: uint16(25484), + 134: uint16(28072), + 135: uint16(26454), + 136: uint16(19976), + 137: uint16(24080), + 138: uint16(36134), + 139: uint16(20183), + 140: uint16(32960), + 141: uint16(30260), + 142: uint16(38556), + 143: uint16(25307), + 144: uint16(26157), + 145: uint16(25214), + 146: uint16(27836), + 147: uint16(36213), + 148: uint16(29031), + 149: uint16(32617), + 150: uint16(20806), + 151: uint16(32903), + 152: uint16(21484), + 153: uint16(36974), + 154: uint16(25240), + 155: uint16(21746), + 156: uint16(34544), + 157: uint16(36761), + 158: uint16(32773), + 159: uint16(38167), + 160: uint16(34071), + 161: uint16(36825), + 162: uint16(27993), + 163: uint16(29645), + 164: uint16(26015), + 165: uint16(30495), + 166: uint16(29956), + 167: uint16(30759), + 168: uint16(33275), + 169: uint16(36126), + 170: uint16(38024), + 171: uint16(20390), + 172: uint16(26517), + 173: uint16(30137), + 174: uint16(35786), + 175: uint16(38663), + 176: uint16(25391), + 177: uint16(38215), + 178: uint16(38453), + 179: uint16(33976), + 180: uint16(25379), + 181: uint16(30529), + 182: uint16(24449), + 183: uint16(29424), + 184: uint16(20105), + 185: uint16(24596), + 186: uint16(25972), + 187: uint16(25327), + 188: uint16(27491), + 189: uint16(25919), + }, + 85: { + 0: uint16(35556), + 1: uint16(35557), + 2: uint16(35558), + 3: uint16(35559), + 4: uint16(35560), + 5: uint16(35561), + 6: uint16(35562), + 7: uint16(35563), + 8: uint16(35564), + 9: uint16(35565), + 10: uint16(35566), + 11: uint16(35567), + 12: uint16(35568), + 13: uint16(35569), + 14: uint16(35570), + 15: uint16(35571), + 16: uint16(35572), + 17: uint16(35573), + 18: uint16(35574), + 19: uint16(35575), + 20: uint16(35576), + 21: uint16(35577), + 22: uint16(35578), + 23: uint16(35579), + 24: uint16(35580), + 25: uint16(35581), + 26: uint16(35582), + 27: uint16(35583), + 28: uint16(35584), + 29: uint16(35585), + 30: uint16(35586), + 31: uint16(35587), + 32: uint16(35588), + 33: uint16(35589), + 34: uint16(35590), + 35: uint16(35592), + 36: uint16(35593), + 37: uint16(35594), + 38: uint16(35595), + 39: uint16(35596), + 40: uint16(35597), + 41: uint16(35598), + 42: uint16(35599), + 43: uint16(35600), + 44: uint16(35601), + 45: uint16(35602), + 46: uint16(35603), + 47: uint16(35604), + 48: uint16(35605), + 49: uint16(35606), + 50: uint16(35607), + 51: uint16(35608), + 52: uint16(35609), + 53: uint16(35610), + 54: uint16(35611), + 55: uint16(35612), + 56: uint16(35613), + 57: uint16(35614), + 58: uint16(35615), + 59: uint16(35616), + 60: uint16(35617), + 61: uint16(35618), + 62: uint16(35619), + 63: uint16(35620), + 64: uint16(35621), + 65: uint16(35623), + 66: uint16(35624), + 67: uint16(35625), + 68: uint16(35626), + 69: uint16(35627), + 70: uint16(35628), + 71: uint16(35629), + 72: uint16(35630), + 73: uint16(35631), + 74: uint16(35632), + 75: uint16(35633), + 76: uint16(35634), + 77: uint16(35635), + 78: uint16(35636), + 79: uint16(35637), + 80: uint16(35638), + 81: uint16(35639), + 82: uint16(35640), + 83: uint16(35641), + 84: uint16(35642), + 85: uint16(35643), + 86: uint16(35644), + 87: uint16(35645), + 88: uint16(35646), + 89: uint16(35647), + 90: uint16(35648), + 91: uint16(35649), + 92: uint16(35650), + 93: uint16(35651), + 94: uint16(35652), + 95: uint16(35653), + 96: uint16(24103), + 97: uint16(30151), + 98: uint16(37073), + 99: uint16(35777), + 100: uint16(33437), + 101: uint16(26525), + 102: uint16(25903), + 103: uint16(21553), + 104: uint16(34584), + 105: uint16(30693), + 106: uint16(32930), + 107: uint16(33026), + 108: uint16(27713), + 109: uint16(20043), + 110: uint16(32455), + 111: uint16(32844), + 112: uint16(30452), + 113: uint16(26893), + 114: uint16(27542), + 115: uint16(25191), + 116: uint16(20540), + 117: uint16(20356), + 118: uint16(22336), + 119: uint16(25351), + 120: uint16(27490), + 121: uint16(36286), + 122: uint16(21482), + 123: uint16(26088), + 124: uint16(32440), + 125: uint16(24535), + 126: uint16(25370), + 127: uint16(25527), + 128: uint16(33267), + 129: uint16(33268), + 130: uint16(32622), + 131: uint16(24092), + 132: uint16(23769), + 133: uint16(21046), + 134: uint16(26234), + 135: uint16(31209), + 136: uint16(31258), + 137: uint16(36136), + 138: uint16(28825), + 139: uint16(30164), + 140: uint16(28382), + 141: uint16(27835), + 142: uint16(31378), + 143: uint16(20013), + 144: uint16(30405), + 145: uint16(24544), + 146: uint16(38047), + 147: uint16(34935), + 148: uint16(32456), + 149: uint16(31181), + 150: uint16(32959), + 151: uint16(37325), + 152: uint16(20210), + 153: uint16(20247), + 154: uint16(33311), + 155: uint16(21608), + 156: uint16(24030), + 157: uint16(27954), + 158: uint16(35788), + 159: uint16(31909), + 160: uint16(36724), + 161: uint16(32920), + 162: uint16(24090), + 163: uint16(21650), + 164: uint16(30385), + 165: uint16(23449), + 166: uint16(26172), + 167: uint16(39588), + 168: uint16(29664), + 169: uint16(26666), + 170: uint16(34523), + 171: uint16(26417), + 172: uint16(29482), + 173: uint16(35832), + 174: uint16(35803), + 175: uint16(36880), + 176: uint16(31481), + 177: uint16(28891), + 178: uint16(29038), + 179: uint16(25284), + 180: uint16(30633), + 181: uint16(22065), + 182: uint16(20027), + 183: uint16(33879), + 184: uint16(26609), + 185: uint16(21161), + 186: uint16(34496), + 187: uint16(36142), + 188: uint16(38136), + 189: uint16(31569), + }, + 86: { + 0: uint16(35654), + 1: uint16(35655), + 2: uint16(35656), + 3: uint16(35657), + 4: uint16(35658), + 5: uint16(35659), + 6: uint16(35660), + 7: uint16(35661), + 8: uint16(35662), + 9: uint16(35663), + 10: uint16(35664), + 11: uint16(35665), + 12: uint16(35666), + 13: uint16(35667), + 14: uint16(35668), + 15: uint16(35669), + 16: uint16(35670), + 17: uint16(35671), + 18: uint16(35672), + 19: uint16(35673), + 20: uint16(35674), + 21: uint16(35675), + 22: uint16(35676), + 23: uint16(35677), + 24: uint16(35678), + 25: uint16(35679), + 26: uint16(35680), + 27: uint16(35681), + 28: uint16(35682), + 29: uint16(35683), + 30: uint16(35684), + 31: uint16(35685), + 32: uint16(35687), + 33: uint16(35688), + 34: uint16(35689), + 35: uint16(35690), + 36: uint16(35691), + 37: uint16(35693), + 38: uint16(35694), + 39: uint16(35695), + 40: uint16(35696), + 41: uint16(35697), + 42: uint16(35698), + 43: uint16(35699), + 44: uint16(35700), + 45: uint16(35701), + 46: uint16(35702), + 47: uint16(35703), + 48: uint16(35704), + 49: uint16(35705), + 50: uint16(35706), + 51: uint16(35707), + 52: uint16(35708), + 53: uint16(35709), + 54: uint16(35710), + 55: uint16(35711), + 56: uint16(35712), + 57: uint16(35713), + 58: uint16(35714), + 59: uint16(35715), + 60: uint16(35716), + 61: uint16(35717), + 62: uint16(35718), + 63: uint16(35719), + 64: uint16(35720), + 65: uint16(35721), + 66: uint16(35722), + 67: uint16(35723), + 68: uint16(35724), + 69: uint16(35725), + 70: uint16(35726), + 71: uint16(35727), + 72: uint16(35728), + 73: uint16(35729), + 74: uint16(35730), + 75: uint16(35731), + 76: uint16(35732), + 77: uint16(35733), + 78: uint16(35734), + 79: uint16(35735), + 80: uint16(35736), + 81: uint16(35737), + 82: uint16(35738), + 83: uint16(35739), + 84: uint16(35740), + 85: uint16(35741), + 86: uint16(35742), + 87: uint16(35743), + 88: uint16(35756), + 89: uint16(35761), + 90: uint16(35771), + 91: uint16(35783), + 92: uint16(35792), + 93: uint16(35818), + 94: uint16(35849), + 95: uint16(35870), + 96: uint16(20303), + 97: uint16(27880), + 98: uint16(31069), + 99: uint16(39547), + 100: uint16(25235), + 101: uint16(29226), + 102: uint16(25341), + 103: uint16(19987), + 104: uint16(30742), + 105: uint16(36716), + 106: uint16(25776), + 107: uint16(36186), + 108: uint16(31686), + 109: uint16(26729), + 110: uint16(24196), + 111: uint16(35013), + 112: uint16(22918), + 113: uint16(25758), + 114: uint16(22766), + 115: uint16(29366), + 116: uint16(26894), + 117: uint16(38181), + 118: uint16(36861), + 119: uint16(36184), + 120: uint16(22368), + 121: uint16(32512), + 122: uint16(35846), + 123: uint16(20934), + 124: uint16(25417), + 125: uint16(25305), + 126: uint16(21331), + 127: uint16(26700), + 128: uint16(29730), + 129: uint16(33537), + 130: uint16(37196), + 131: uint16(21828), + 132: uint16(30528), + 133: uint16(28796), + 134: uint16(27978), + 135: uint16(20857), + 136: uint16(21672), + 137: uint16(36164), + 138: uint16(23039), + 139: uint16(28363), + 140: uint16(28100), + 141: uint16(23388), + 142: uint16(32043), + 143: uint16(20180), + 144: uint16(31869), + 145: uint16(28371), + 146: uint16(23376), + 147: uint16(33258), + 148: uint16(28173), + 149: uint16(23383), + 150: uint16(39683), + 151: uint16(26837), + 152: uint16(36394), + 153: uint16(23447), + 154: uint16(32508), + 155: uint16(24635), + 156: uint16(32437), + 157: uint16(37049), + 158: uint16(36208), + 159: uint16(22863), + 160: uint16(25549), + 161: uint16(31199), + 162: uint16(36275), + 163: uint16(21330), + 164: uint16(26063), + 165: uint16(31062), + 166: uint16(35781), + 167: uint16(38459), + 168: uint16(32452), + 169: uint16(38075), + 170: uint16(32386), + 171: uint16(22068), + 172: uint16(37257), + 173: uint16(26368), + 174: uint16(32618), + 175: uint16(23562), + 176: uint16(36981), + 177: uint16(26152), + 178: uint16(24038), + 179: uint16(20304), + 180: uint16(26590), + 181: uint16(20570), + 182: uint16(20316), + 183: uint16(22352), + 184: uint16(24231), + 185: uint16(59408), + 186: uint16(59409), + 187: uint16(59410), + 188: uint16(59411), + 189: uint16(59412), + }, + 87: { + 0: uint16(35896), + 1: uint16(35897), + 2: uint16(35898), + 3: uint16(35899), + 4: uint16(35900), + 5: uint16(35901), + 6: uint16(35902), + 7: uint16(35903), + 8: uint16(35904), + 9: uint16(35906), + 10: uint16(35907), + 11: uint16(35908), + 12: uint16(35909), + 13: uint16(35912), + 14: uint16(35914), + 15: uint16(35915), + 16: uint16(35917), + 17: uint16(35918), + 18: uint16(35919), + 19: uint16(35920), + 20: uint16(35921), + 21: uint16(35922), + 22: uint16(35923), + 23: uint16(35924), + 24: uint16(35926), + 25: uint16(35927), + 26: uint16(35928), + 27: uint16(35929), + 28: uint16(35931), + 29: uint16(35932), + 30: uint16(35933), + 31: uint16(35934), + 32: uint16(35935), + 33: uint16(35936), + 34: uint16(35939), + 35: uint16(35940), + 36: uint16(35941), + 37: uint16(35942), + 38: uint16(35943), + 39: uint16(35944), + 40: uint16(35945), + 41: uint16(35948), + 42: uint16(35949), + 43: uint16(35950), + 44: uint16(35951), + 45: uint16(35952), + 46: uint16(35953), + 47: uint16(35954), + 48: uint16(35956), + 49: uint16(35957), + 50: uint16(35958), + 51: uint16(35959), + 52: uint16(35963), + 53: uint16(35964), + 54: uint16(35965), + 55: uint16(35966), + 56: uint16(35967), + 57: uint16(35968), + 58: uint16(35969), + 59: uint16(35971), + 60: uint16(35972), + 61: uint16(35974), + 62: uint16(35975), + 63: uint16(35976), + 64: uint16(35979), + 65: uint16(35981), + 66: uint16(35982), + 67: uint16(35983), + 68: uint16(35984), + 69: uint16(35985), + 70: uint16(35986), + 71: uint16(35987), + 72: uint16(35989), + 73: uint16(35990), + 74: uint16(35991), + 75: uint16(35993), + 76: uint16(35994), + 77: uint16(35995), + 78: uint16(35996), + 79: uint16(35997), + 80: uint16(35998), + 81: uint16(35999), + 82: uint16(36000), + 83: uint16(36001), + 84: uint16(36002), + 85: uint16(36003), + 86: uint16(36004), + 87: uint16(36005), + 88: uint16(36006), + 89: uint16(36007), + 90: uint16(36008), + 91: uint16(36009), + 92: uint16(36010), + 93: uint16(36011), + 94: uint16(36012), + 95: uint16(36013), + 96: uint16(20109), + 97: uint16(19980), + 98: uint16(20800), + 99: uint16(19984), + 100: uint16(24319), + 101: uint16(21317), + 102: uint16(19989), + 103: uint16(20120), + 104: uint16(19998), + 105: uint16(39730), + 106: uint16(23404), + 107: uint16(22121), + 108: uint16(20008), + 109: uint16(31162), + 110: uint16(20031), + 111: uint16(21269), + 112: uint16(20039), + 113: uint16(22829), + 114: uint16(29243), + 115: uint16(21358), + 116: uint16(27664), + 117: uint16(22239), + 118: uint16(32996), + 119: uint16(39319), + 120: uint16(27603), + 121: uint16(30590), + 122: uint16(40727), + 123: uint16(20022), + 124: uint16(20127), + 125: uint16(40720), + 126: uint16(20060), + 127: uint16(20073), + 128: uint16(20115), + 129: uint16(33416), + 130: uint16(23387), + 131: uint16(21868), + 132: uint16(22031), + 133: uint16(20164), + 134: uint16(21389), + 135: uint16(21405), + 136: uint16(21411), + 137: uint16(21413), + 138: uint16(21422), + 139: uint16(38757), + 140: uint16(36189), + 141: uint16(21274), + 142: uint16(21493), + 143: uint16(21286), + 144: uint16(21294), + 145: uint16(21310), + 146: uint16(36188), + 147: uint16(21350), + 148: uint16(21347), + 149: uint16(20994), + 150: uint16(21000), + 151: uint16(21006), + 152: uint16(21037), + 153: uint16(21043), + 154: uint16(21055), + 155: uint16(21056), + 156: uint16(21068), + 157: uint16(21086), + 158: uint16(21089), + 159: uint16(21084), + 160: uint16(33967), + 161: uint16(21117), + 162: uint16(21122), + 163: uint16(21121), + 164: uint16(21136), + 165: uint16(21139), + 166: uint16(20866), + 167: uint16(32596), + 168: uint16(20155), + 169: uint16(20163), + 170: uint16(20169), + 171: uint16(20162), + 172: uint16(20200), + 173: uint16(20193), + 174: uint16(20203), + 175: uint16(20190), + 176: uint16(20251), + 177: uint16(20211), + 178: uint16(20258), + 179: uint16(20324), + 180: uint16(20213), + 181: uint16(20261), + 182: uint16(20263), + 183: uint16(20233), + 184: uint16(20267), + 185: uint16(20318), + 186: uint16(20327), + 187: uint16(25912), + 188: uint16(20314), + 189: uint16(20317), + }, + 88: { + 0: uint16(36014), + 1: uint16(36015), + 2: uint16(36016), + 3: uint16(36017), + 4: uint16(36018), + 5: uint16(36019), + 6: uint16(36020), + 7: uint16(36021), + 8: uint16(36022), + 9: uint16(36023), + 10: uint16(36024), + 11: uint16(36025), + 12: uint16(36026), + 13: uint16(36027), + 14: uint16(36028), + 15: uint16(36029), + 16: uint16(36030), + 17: uint16(36031), + 18: uint16(36032), + 19: uint16(36033), + 20: uint16(36034), + 21: uint16(36035), + 22: uint16(36036), + 23: uint16(36037), + 24: uint16(36038), + 25: uint16(36039), + 26: uint16(36040), + 27: uint16(36041), + 28: uint16(36042), + 29: uint16(36043), + 30: uint16(36044), + 31: uint16(36045), + 32: uint16(36046), + 33: uint16(36047), + 34: uint16(36048), + 35: uint16(36049), + 36: uint16(36050), + 37: uint16(36051), + 38: uint16(36052), + 39: uint16(36053), + 40: uint16(36054), + 41: uint16(36055), + 42: uint16(36056), + 43: uint16(36057), + 44: uint16(36058), + 45: uint16(36059), + 46: uint16(36060), + 47: uint16(36061), + 48: uint16(36062), + 49: uint16(36063), + 50: uint16(36064), + 51: uint16(36065), + 52: uint16(36066), + 53: uint16(36067), + 54: uint16(36068), + 55: uint16(36069), + 56: uint16(36070), + 57: uint16(36071), + 58: uint16(36072), + 59: uint16(36073), + 60: uint16(36074), + 61: uint16(36075), + 62: uint16(36076), + 63: uint16(36077), + 64: uint16(36078), + 65: uint16(36079), + 66: uint16(36080), + 67: uint16(36081), + 68: uint16(36082), + 69: uint16(36083), + 70: uint16(36084), + 71: uint16(36085), + 72: uint16(36086), + 73: uint16(36087), + 74: uint16(36088), + 75: uint16(36089), + 76: uint16(36090), + 77: uint16(36091), + 78: uint16(36092), + 79: uint16(36093), + 80: uint16(36094), + 81: uint16(36095), + 82: uint16(36096), + 83: uint16(36097), + 84: uint16(36098), + 85: uint16(36099), + 86: uint16(36100), + 87: uint16(36101), + 88: uint16(36102), + 89: uint16(36103), + 90: uint16(36104), + 91: uint16(36105), + 92: uint16(36106), + 93: uint16(36107), + 94: uint16(36108), + 95: uint16(36109), + 96: uint16(20319), + 97: uint16(20311), + 98: uint16(20274), + 99: uint16(20285), + 100: uint16(20342), + 101: uint16(20340), + 102: uint16(20369), + 103: uint16(20361), + 104: uint16(20355), + 105: uint16(20367), + 106: uint16(20350), + 107: uint16(20347), + 108: uint16(20394), + 109: uint16(20348), + 110: uint16(20396), + 111: uint16(20372), + 112: uint16(20454), + 113: uint16(20456), + 114: uint16(20458), + 115: uint16(20421), + 116: uint16(20442), + 117: uint16(20451), + 118: uint16(20444), + 119: uint16(20433), + 120: uint16(20447), + 121: uint16(20472), + 122: uint16(20521), + 123: uint16(20556), + 124: uint16(20467), + 125: uint16(20524), + 126: uint16(20495), + 127: uint16(20526), + 128: uint16(20525), + 129: uint16(20478), + 130: uint16(20508), + 131: uint16(20492), + 132: uint16(20517), + 133: uint16(20520), + 134: uint16(20606), + 135: uint16(20547), + 136: uint16(20565), + 137: uint16(20552), + 138: uint16(20558), + 139: uint16(20588), + 140: uint16(20603), + 141: uint16(20645), + 142: uint16(20647), + 143: uint16(20649), + 144: uint16(20666), + 145: uint16(20694), + 146: uint16(20742), + 147: uint16(20717), + 148: uint16(20716), + 149: uint16(20710), + 150: uint16(20718), + 151: uint16(20743), + 152: uint16(20747), + 153: uint16(20189), + 154: uint16(27709), + 155: uint16(20312), + 156: uint16(20325), + 157: uint16(20430), + 158: uint16(40864), + 159: uint16(27718), + 160: uint16(31860), + 161: uint16(20846), + 162: uint16(24061), + 163: uint16(40649), + 164: uint16(39320), + 165: uint16(20865), + 166: uint16(22804), + 167: uint16(21241), + 168: uint16(21261), + 169: uint16(35335), + 170: uint16(21264), + 171: uint16(20971), + 172: uint16(22809), + 173: uint16(20821), + 174: uint16(20128), + 175: uint16(20822), + 176: uint16(20147), + 177: uint16(34926), + 178: uint16(34980), + 179: uint16(20149), + 180: uint16(33044), + 181: uint16(35026), + 182: uint16(31104), + 183: uint16(23348), + 184: uint16(34819), + 185: uint16(32696), + 186: uint16(20907), + 187: uint16(20913), + 188: uint16(20925), + 189: uint16(20924), + }, + 89: { + 0: uint16(36110), + 1: uint16(36111), + 2: uint16(36112), + 3: uint16(36113), + 4: uint16(36114), + 5: uint16(36115), + 6: uint16(36116), + 7: uint16(36117), + 8: uint16(36118), + 9: uint16(36119), + 10: uint16(36120), + 11: uint16(36121), + 12: uint16(36122), + 13: uint16(36123), + 14: uint16(36124), + 15: uint16(36128), + 16: uint16(36177), + 17: uint16(36178), + 18: uint16(36183), + 19: uint16(36191), + 20: uint16(36197), + 21: uint16(36200), + 22: uint16(36201), + 23: uint16(36202), + 24: uint16(36204), + 25: uint16(36206), + 26: uint16(36207), + 27: uint16(36209), + 28: uint16(36210), + 29: uint16(36216), + 30: uint16(36217), + 31: uint16(36218), + 32: uint16(36219), + 33: uint16(36220), + 34: uint16(36221), + 35: uint16(36222), + 36: uint16(36223), + 37: uint16(36224), + 38: uint16(36226), + 39: uint16(36227), + 40: uint16(36230), + 41: uint16(36231), + 42: uint16(36232), + 43: uint16(36233), + 44: uint16(36236), + 45: uint16(36237), + 46: uint16(36238), + 47: uint16(36239), + 48: uint16(36240), + 49: uint16(36242), + 50: uint16(36243), + 51: uint16(36245), + 52: uint16(36246), + 53: uint16(36247), + 54: uint16(36248), + 55: uint16(36249), + 56: uint16(36250), + 57: uint16(36251), + 58: uint16(36252), + 59: uint16(36253), + 60: uint16(36254), + 61: uint16(36256), + 62: uint16(36257), + 63: uint16(36258), + 64: uint16(36260), + 65: uint16(36261), + 66: uint16(36262), + 67: uint16(36263), + 68: uint16(36264), + 69: uint16(36265), + 70: uint16(36266), + 71: uint16(36267), + 72: uint16(36268), + 73: uint16(36269), + 74: uint16(36270), + 75: uint16(36271), + 76: uint16(36272), + 77: uint16(36274), + 78: uint16(36278), + 79: uint16(36279), + 80: uint16(36281), + 81: uint16(36283), + 82: uint16(36285), + 83: uint16(36288), + 84: uint16(36289), + 85: uint16(36290), + 86: uint16(36293), + 87: uint16(36295), + 88: uint16(36296), + 89: uint16(36297), + 90: uint16(36298), + 91: uint16(36301), + 92: uint16(36304), + 93: uint16(36306), + 94: uint16(36307), + 95: uint16(36308), + 96: uint16(20935), + 97: uint16(20886), + 98: uint16(20898), + 99: uint16(20901), + 100: uint16(35744), + 101: uint16(35750), + 102: uint16(35751), + 103: uint16(35754), + 104: uint16(35764), + 105: uint16(35765), + 106: uint16(35767), + 107: uint16(35778), + 108: uint16(35779), + 109: uint16(35787), + 110: uint16(35791), + 111: uint16(35790), + 112: uint16(35794), + 113: uint16(35795), + 114: uint16(35796), + 115: uint16(35798), + 116: uint16(35800), + 117: uint16(35801), + 118: uint16(35804), + 119: uint16(35807), + 120: uint16(35808), + 121: uint16(35812), + 122: uint16(35816), + 123: uint16(35817), + 124: uint16(35822), + 125: uint16(35824), + 126: uint16(35827), + 127: uint16(35830), + 128: uint16(35833), + 129: uint16(35836), + 130: uint16(35839), + 131: uint16(35840), + 132: uint16(35842), + 133: uint16(35844), + 134: uint16(35847), + 135: uint16(35852), + 136: uint16(35855), + 137: uint16(35857), + 138: uint16(35858), + 139: uint16(35860), + 140: uint16(35861), + 141: uint16(35862), + 142: uint16(35865), + 143: uint16(35867), + 144: uint16(35864), + 145: uint16(35869), + 146: uint16(35871), + 147: uint16(35872), + 148: uint16(35873), + 149: uint16(35877), + 150: uint16(35879), + 151: uint16(35882), + 152: uint16(35883), + 153: uint16(35886), + 154: uint16(35887), + 155: uint16(35890), + 156: uint16(35891), + 157: uint16(35893), + 158: uint16(35894), + 159: uint16(21353), + 160: uint16(21370), + 161: uint16(38429), + 162: uint16(38434), + 163: uint16(38433), + 164: uint16(38449), + 165: uint16(38442), + 166: uint16(38461), + 167: uint16(38460), + 168: uint16(38466), + 169: uint16(38473), + 170: uint16(38484), + 171: uint16(38495), + 172: uint16(38503), + 173: uint16(38508), + 174: uint16(38514), + 175: uint16(38516), + 176: uint16(38536), + 177: uint16(38541), + 178: uint16(38551), + 179: uint16(38576), + 180: uint16(37015), + 181: uint16(37019), + 182: uint16(37021), + 183: uint16(37017), + 184: uint16(37036), + 185: uint16(37025), + 186: uint16(37044), + 187: uint16(37043), + 188: uint16(37046), + 189: uint16(37050), + }, + 90: { + 0: uint16(36309), + 1: uint16(36312), + 2: uint16(36313), + 3: uint16(36316), + 4: uint16(36320), + 5: uint16(36321), + 6: uint16(36322), + 7: uint16(36325), + 8: uint16(36326), + 9: uint16(36327), + 10: uint16(36329), + 11: uint16(36333), + 12: uint16(36334), + 13: uint16(36336), + 14: uint16(36337), + 15: uint16(36338), + 16: uint16(36340), + 17: uint16(36342), + 18: uint16(36348), + 19: uint16(36350), + 20: uint16(36351), + 21: uint16(36352), + 22: uint16(36353), + 23: uint16(36354), + 24: uint16(36355), + 25: uint16(36356), + 26: uint16(36358), + 27: uint16(36359), + 28: uint16(36360), + 29: uint16(36363), + 30: uint16(36365), + 31: uint16(36366), + 32: uint16(36368), + 33: uint16(36369), + 34: uint16(36370), + 35: uint16(36371), + 36: uint16(36373), + 37: uint16(36374), + 38: uint16(36375), + 39: uint16(36376), + 40: uint16(36377), + 41: uint16(36378), + 42: uint16(36379), + 43: uint16(36380), + 44: uint16(36384), + 45: uint16(36385), + 46: uint16(36388), + 47: uint16(36389), + 48: uint16(36390), + 49: uint16(36391), + 50: uint16(36392), + 51: uint16(36395), + 52: uint16(36397), + 53: uint16(36400), + 54: uint16(36402), + 55: uint16(36403), + 56: uint16(36404), + 57: uint16(36406), + 58: uint16(36407), + 59: uint16(36408), + 60: uint16(36411), + 61: uint16(36412), + 62: uint16(36414), + 63: uint16(36415), + 64: uint16(36419), + 65: uint16(36421), + 66: uint16(36422), + 67: uint16(36428), + 68: uint16(36429), + 69: uint16(36430), + 70: uint16(36431), + 71: uint16(36432), + 72: uint16(36435), + 73: uint16(36436), + 74: uint16(36437), + 75: uint16(36438), + 76: uint16(36439), + 77: uint16(36440), + 78: uint16(36442), + 79: uint16(36443), + 80: uint16(36444), + 81: uint16(36445), + 82: uint16(36446), + 83: uint16(36447), + 84: uint16(36448), + 85: uint16(36449), + 86: uint16(36450), + 87: uint16(36451), + 88: uint16(36452), + 89: uint16(36453), + 90: uint16(36455), + 91: uint16(36456), + 92: uint16(36458), + 93: uint16(36459), + 94: uint16(36462), + 95: uint16(36465), + 96: uint16(37048), + 97: uint16(37040), + 98: uint16(37071), + 99: uint16(37061), + 100: uint16(37054), + 101: uint16(37072), + 102: uint16(37060), + 103: uint16(37063), + 104: uint16(37075), + 105: uint16(37094), + 106: uint16(37090), + 107: uint16(37084), + 108: uint16(37079), + 109: uint16(37083), + 110: uint16(37099), + 111: uint16(37103), + 112: uint16(37118), + 113: uint16(37124), + 114: uint16(37154), + 115: uint16(37150), + 116: uint16(37155), + 117: uint16(37169), + 118: uint16(37167), + 119: uint16(37177), + 120: uint16(37187), + 121: uint16(37190), + 122: uint16(21005), + 123: uint16(22850), + 124: uint16(21154), + 125: uint16(21164), + 126: uint16(21165), + 127: uint16(21182), + 128: uint16(21759), + 129: uint16(21200), + 130: uint16(21206), + 131: uint16(21232), + 132: uint16(21471), + 133: uint16(29166), + 134: uint16(30669), + 135: uint16(24308), + 136: uint16(20981), + 137: uint16(20988), + 138: uint16(39727), + 139: uint16(21430), + 140: uint16(24321), + 141: uint16(30042), + 142: uint16(24047), + 143: uint16(22348), + 144: uint16(22441), + 145: uint16(22433), + 146: uint16(22654), + 147: uint16(22716), + 148: uint16(22725), + 149: uint16(22737), + 150: uint16(22313), + 151: uint16(22316), + 152: uint16(22314), + 153: uint16(22323), + 154: uint16(22329), + 155: uint16(22318), + 156: uint16(22319), + 157: uint16(22364), + 158: uint16(22331), + 159: uint16(22338), + 160: uint16(22377), + 161: uint16(22405), + 162: uint16(22379), + 163: uint16(22406), + 164: uint16(22396), + 165: uint16(22395), + 166: uint16(22376), + 167: uint16(22381), + 168: uint16(22390), + 169: uint16(22387), + 170: uint16(22445), + 171: uint16(22436), + 172: uint16(22412), + 173: uint16(22450), + 174: uint16(22479), + 175: uint16(22439), + 176: uint16(22452), + 177: uint16(22419), + 178: uint16(22432), + 179: uint16(22485), + 180: uint16(22488), + 181: uint16(22490), + 182: uint16(22489), + 183: uint16(22482), + 184: uint16(22456), + 185: uint16(22516), + 186: uint16(22511), + 187: uint16(22520), + 188: uint16(22500), + 189: uint16(22493), + }, + 91: { + 0: uint16(36467), + 1: uint16(36469), + 2: uint16(36471), + 3: uint16(36472), + 4: uint16(36473), + 5: uint16(36474), + 6: uint16(36475), + 7: uint16(36477), + 8: uint16(36478), + 9: uint16(36480), + 10: uint16(36482), + 11: uint16(36483), + 12: uint16(36484), + 13: uint16(36486), + 14: uint16(36488), + 15: uint16(36489), + 16: uint16(36490), + 17: uint16(36491), + 18: uint16(36492), + 19: uint16(36493), + 20: uint16(36494), + 21: uint16(36497), + 22: uint16(36498), + 23: uint16(36499), + 24: uint16(36501), + 25: uint16(36502), + 26: uint16(36503), + 27: uint16(36504), + 28: uint16(36505), + 29: uint16(36506), + 30: uint16(36507), + 31: uint16(36509), + 32: uint16(36511), + 33: uint16(36512), + 34: uint16(36513), + 35: uint16(36514), + 36: uint16(36515), + 37: uint16(36516), + 38: uint16(36517), + 39: uint16(36518), + 40: uint16(36519), + 41: uint16(36520), + 42: uint16(36521), + 43: uint16(36522), + 44: uint16(36525), + 45: uint16(36526), + 46: uint16(36528), + 47: uint16(36529), + 48: uint16(36531), + 49: uint16(36532), + 50: uint16(36533), + 51: uint16(36534), + 52: uint16(36535), + 53: uint16(36536), + 54: uint16(36537), + 55: uint16(36539), + 56: uint16(36540), + 57: uint16(36541), + 58: uint16(36542), + 59: uint16(36543), + 60: uint16(36544), + 61: uint16(36545), + 62: uint16(36546), + 63: uint16(36547), + 64: uint16(36548), + 65: uint16(36549), + 66: uint16(36550), + 67: uint16(36551), + 68: uint16(36552), + 69: uint16(36553), + 70: uint16(36554), + 71: uint16(36555), + 72: uint16(36556), + 73: uint16(36557), + 74: uint16(36559), + 75: uint16(36560), + 76: uint16(36561), + 77: uint16(36562), + 78: uint16(36563), + 79: uint16(36564), + 80: uint16(36565), + 81: uint16(36566), + 82: uint16(36567), + 83: uint16(36568), + 84: uint16(36569), + 85: uint16(36570), + 86: uint16(36571), + 87: uint16(36572), + 88: uint16(36573), + 89: uint16(36574), + 90: uint16(36575), + 91: uint16(36576), + 92: uint16(36577), + 93: uint16(36578), + 94: uint16(36579), + 95: uint16(36580), + 96: uint16(22539), + 97: uint16(22541), + 98: uint16(22525), + 99: uint16(22509), + 100: uint16(22528), + 101: uint16(22558), + 102: uint16(22553), + 103: uint16(22596), + 104: uint16(22560), + 105: uint16(22629), + 106: uint16(22636), + 107: uint16(22657), + 108: uint16(22665), + 109: uint16(22682), + 110: uint16(22656), + 111: uint16(39336), + 112: uint16(40729), + 113: uint16(25087), + 114: uint16(33401), + 115: uint16(33405), + 116: uint16(33407), + 117: uint16(33423), + 118: uint16(33418), + 119: uint16(33448), + 120: uint16(33412), + 121: uint16(33422), + 122: uint16(33425), + 123: uint16(33431), + 124: uint16(33433), + 125: uint16(33451), + 126: uint16(33464), + 127: uint16(33470), + 128: uint16(33456), + 129: uint16(33480), + 130: uint16(33482), + 131: uint16(33507), + 132: uint16(33432), + 133: uint16(33463), + 134: uint16(33454), + 135: uint16(33483), + 136: uint16(33484), + 137: uint16(33473), + 138: uint16(33449), + 139: uint16(33460), + 140: uint16(33441), + 141: uint16(33450), + 142: uint16(33439), + 143: uint16(33476), + 144: uint16(33486), + 145: uint16(33444), + 146: uint16(33505), + 147: uint16(33545), + 148: uint16(33527), + 149: uint16(33508), + 150: uint16(33551), + 151: uint16(33543), + 152: uint16(33500), + 153: uint16(33524), + 154: uint16(33490), + 155: uint16(33496), + 156: uint16(33548), + 157: uint16(33531), + 158: uint16(33491), + 159: uint16(33553), + 160: uint16(33562), + 161: uint16(33542), + 162: uint16(33556), + 163: uint16(33557), + 164: uint16(33504), + 165: uint16(33493), + 166: uint16(33564), + 167: uint16(33617), + 168: uint16(33627), + 169: uint16(33628), + 170: uint16(33544), + 171: uint16(33682), + 172: uint16(33596), + 173: uint16(33588), + 174: uint16(33585), + 175: uint16(33691), + 176: uint16(33630), + 177: uint16(33583), + 178: uint16(33615), + 179: uint16(33607), + 180: uint16(33603), + 181: uint16(33631), + 182: uint16(33600), + 183: uint16(33559), + 184: uint16(33632), + 185: uint16(33581), + 186: uint16(33594), + 187: uint16(33587), + 188: uint16(33638), + 189: uint16(33637), + }, + 92: { + 0: uint16(36581), + 1: uint16(36582), + 2: uint16(36583), + 3: uint16(36584), + 4: uint16(36585), + 5: uint16(36586), + 6: uint16(36587), + 7: uint16(36588), + 8: uint16(36589), + 9: uint16(36590), + 10: uint16(36591), + 11: uint16(36592), + 12: uint16(36593), + 13: uint16(36594), + 14: uint16(36595), + 15: uint16(36596), + 16: uint16(36597), + 17: uint16(36598), + 18: uint16(36599), + 19: uint16(36600), + 20: uint16(36601), + 21: uint16(36602), + 22: uint16(36603), + 23: uint16(36604), + 24: uint16(36605), + 25: uint16(36606), + 26: uint16(36607), + 27: uint16(36608), + 28: uint16(36609), + 29: uint16(36610), + 30: uint16(36611), + 31: uint16(36612), + 32: uint16(36613), + 33: uint16(36614), + 34: uint16(36615), + 35: uint16(36616), + 36: uint16(36617), + 37: uint16(36618), + 38: uint16(36619), + 39: uint16(36620), + 40: uint16(36621), + 41: uint16(36622), + 42: uint16(36623), + 43: uint16(36624), + 44: uint16(36625), + 45: uint16(36626), + 46: uint16(36627), + 47: uint16(36628), + 48: uint16(36629), + 49: uint16(36630), + 50: uint16(36631), + 51: uint16(36632), + 52: uint16(36633), + 53: uint16(36634), + 54: uint16(36635), + 55: uint16(36636), + 56: uint16(36637), + 57: uint16(36638), + 58: uint16(36639), + 59: uint16(36640), + 60: uint16(36641), + 61: uint16(36642), + 62: uint16(36643), + 63: uint16(36644), + 64: uint16(36645), + 65: uint16(36646), + 66: uint16(36647), + 67: uint16(36648), + 68: uint16(36649), + 69: uint16(36650), + 70: uint16(36651), + 71: uint16(36652), + 72: uint16(36653), + 73: uint16(36654), + 74: uint16(36655), + 75: uint16(36656), + 76: uint16(36657), + 77: uint16(36658), + 78: uint16(36659), + 79: uint16(36660), + 80: uint16(36661), + 81: uint16(36662), + 82: uint16(36663), + 83: uint16(36664), + 84: uint16(36665), + 85: uint16(36666), + 86: uint16(36667), + 87: uint16(36668), + 88: uint16(36669), + 89: uint16(36670), + 90: uint16(36671), + 91: uint16(36672), + 92: uint16(36673), + 93: uint16(36674), + 94: uint16(36675), + 95: uint16(36676), + 96: uint16(33640), + 97: uint16(33563), + 98: uint16(33641), + 99: uint16(33644), + 100: uint16(33642), + 101: uint16(33645), + 102: uint16(33646), + 103: uint16(33712), + 104: uint16(33656), + 105: uint16(33715), + 106: uint16(33716), + 107: uint16(33696), + 108: uint16(33706), + 109: uint16(33683), + 110: uint16(33692), + 111: uint16(33669), + 112: uint16(33660), + 113: uint16(33718), + 114: uint16(33705), + 115: uint16(33661), + 116: uint16(33720), + 117: uint16(33659), + 118: uint16(33688), + 119: uint16(33694), + 120: uint16(33704), + 121: uint16(33722), + 122: uint16(33724), + 123: uint16(33729), + 124: uint16(33793), + 125: uint16(33765), + 126: uint16(33752), + 127: uint16(22535), + 128: uint16(33816), + 129: uint16(33803), + 130: uint16(33757), + 131: uint16(33789), + 132: uint16(33750), + 133: uint16(33820), + 134: uint16(33848), + 135: uint16(33809), + 136: uint16(33798), + 137: uint16(33748), + 138: uint16(33759), + 139: uint16(33807), + 140: uint16(33795), + 141: uint16(33784), + 142: uint16(33785), + 143: uint16(33770), + 144: uint16(33733), + 145: uint16(33728), + 146: uint16(33830), + 147: uint16(33776), + 148: uint16(33761), + 149: uint16(33884), + 150: uint16(33873), + 151: uint16(33882), + 152: uint16(33881), + 153: uint16(33907), + 154: uint16(33927), + 155: uint16(33928), + 156: uint16(33914), + 157: uint16(33929), + 158: uint16(33912), + 159: uint16(33852), + 160: uint16(33862), + 161: uint16(33897), + 162: uint16(33910), + 163: uint16(33932), + 164: uint16(33934), + 165: uint16(33841), + 166: uint16(33901), + 167: uint16(33985), + 168: uint16(33997), + 169: uint16(34000), + 170: uint16(34022), + 171: uint16(33981), + 172: uint16(34003), + 173: uint16(33994), + 174: uint16(33983), + 175: uint16(33978), + 176: uint16(34016), + 177: uint16(33953), + 178: uint16(33977), + 179: uint16(33972), + 180: uint16(33943), + 181: uint16(34021), + 182: uint16(34019), + 183: uint16(34060), + 184: uint16(29965), + 185: uint16(34104), + 186: uint16(34032), + 187: uint16(34105), + 188: uint16(34079), + 189: uint16(34106), + }, + 93: { + 0: uint16(36677), + 1: uint16(36678), + 2: uint16(36679), + 3: uint16(36680), + 4: uint16(36681), + 5: uint16(36682), + 6: uint16(36683), + 7: uint16(36684), + 8: uint16(36685), + 9: uint16(36686), + 10: uint16(36687), + 11: uint16(36688), + 12: uint16(36689), + 13: uint16(36690), + 14: uint16(36691), + 15: uint16(36692), + 16: uint16(36693), + 17: uint16(36694), + 18: uint16(36695), + 19: uint16(36696), + 20: uint16(36697), + 21: uint16(36698), + 22: uint16(36699), + 23: uint16(36700), + 24: uint16(36701), + 25: uint16(36702), + 26: uint16(36703), + 27: uint16(36704), + 28: uint16(36705), + 29: uint16(36706), + 30: uint16(36707), + 31: uint16(36708), + 32: uint16(36709), + 33: uint16(36714), + 34: uint16(36736), + 35: uint16(36748), + 36: uint16(36754), + 37: uint16(36765), + 38: uint16(36768), + 39: uint16(36769), + 40: uint16(36770), + 41: uint16(36772), + 42: uint16(36773), + 43: uint16(36774), + 44: uint16(36775), + 45: uint16(36778), + 46: uint16(36780), + 47: uint16(36781), + 48: uint16(36782), + 49: uint16(36783), + 50: uint16(36786), + 51: uint16(36787), + 52: uint16(36788), + 53: uint16(36789), + 54: uint16(36791), + 55: uint16(36792), + 56: uint16(36794), + 57: uint16(36795), + 58: uint16(36796), + 59: uint16(36799), + 60: uint16(36800), + 61: uint16(36803), + 62: uint16(36806), + 63: uint16(36809), + 64: uint16(36810), + 65: uint16(36811), + 66: uint16(36812), + 67: uint16(36813), + 68: uint16(36815), + 69: uint16(36818), + 70: uint16(36822), + 71: uint16(36823), + 72: uint16(36826), + 73: uint16(36832), + 74: uint16(36833), + 75: uint16(36835), + 76: uint16(36839), + 77: uint16(36844), + 78: uint16(36847), + 79: uint16(36849), + 80: uint16(36850), + 81: uint16(36852), + 82: uint16(36853), + 83: uint16(36854), + 84: uint16(36858), + 85: uint16(36859), + 86: uint16(36860), + 87: uint16(36862), + 88: uint16(36863), + 89: uint16(36871), + 90: uint16(36872), + 91: uint16(36876), + 92: uint16(36878), + 93: uint16(36883), + 94: uint16(36885), + 95: uint16(36888), + 96: uint16(34134), + 97: uint16(34107), + 98: uint16(34047), + 99: uint16(34044), + 100: uint16(34137), + 101: uint16(34120), + 102: uint16(34152), + 103: uint16(34148), + 104: uint16(34142), + 105: uint16(34170), + 106: uint16(30626), + 107: uint16(34115), + 108: uint16(34162), + 109: uint16(34171), + 110: uint16(34212), + 111: uint16(34216), + 112: uint16(34183), + 113: uint16(34191), + 114: uint16(34169), + 115: uint16(34222), + 116: uint16(34204), + 117: uint16(34181), + 118: uint16(34233), + 119: uint16(34231), + 120: uint16(34224), + 121: uint16(34259), + 122: uint16(34241), + 123: uint16(34268), + 124: uint16(34303), + 125: uint16(34343), + 126: uint16(34309), + 127: uint16(34345), + 128: uint16(34326), + 129: uint16(34364), + 130: uint16(24318), + 131: uint16(24328), + 132: uint16(22844), + 133: uint16(22849), + 134: uint16(32823), + 135: uint16(22869), + 136: uint16(22874), + 137: uint16(22872), + 138: uint16(21263), + 139: uint16(23586), + 140: uint16(23589), + 141: uint16(23596), + 142: uint16(23604), + 143: uint16(25164), + 144: uint16(25194), + 145: uint16(25247), + 146: uint16(25275), + 147: uint16(25290), + 148: uint16(25306), + 149: uint16(25303), + 150: uint16(25326), + 151: uint16(25378), + 152: uint16(25334), + 153: uint16(25401), + 154: uint16(25419), + 155: uint16(25411), + 156: uint16(25517), + 157: uint16(25590), + 158: uint16(25457), + 159: uint16(25466), + 160: uint16(25486), + 161: uint16(25524), + 162: uint16(25453), + 163: uint16(25516), + 164: uint16(25482), + 165: uint16(25449), + 166: uint16(25518), + 167: uint16(25532), + 168: uint16(25586), + 169: uint16(25592), + 170: uint16(25568), + 171: uint16(25599), + 172: uint16(25540), + 173: uint16(25566), + 174: uint16(25550), + 175: uint16(25682), + 176: uint16(25542), + 177: uint16(25534), + 178: uint16(25669), + 179: uint16(25665), + 180: uint16(25611), + 181: uint16(25627), + 182: uint16(25632), + 183: uint16(25612), + 184: uint16(25638), + 185: uint16(25633), + 186: uint16(25694), + 187: uint16(25732), + 188: uint16(25709), + 189: uint16(25750), + }, + 94: { + 0: uint16(36889), + 1: uint16(36892), + 2: uint16(36899), + 3: uint16(36900), + 4: uint16(36901), + 5: uint16(36903), + 6: uint16(36904), + 7: uint16(36905), + 8: uint16(36906), + 9: uint16(36907), + 10: uint16(36908), + 11: uint16(36912), + 12: uint16(36913), + 13: uint16(36914), + 14: uint16(36915), + 15: uint16(36916), + 16: uint16(36919), + 17: uint16(36921), + 18: uint16(36922), + 19: uint16(36925), + 20: uint16(36927), + 21: uint16(36928), + 22: uint16(36931), + 23: uint16(36933), + 24: uint16(36934), + 25: uint16(36936), + 26: uint16(36937), + 27: uint16(36938), + 28: uint16(36939), + 29: uint16(36940), + 30: uint16(36942), + 31: uint16(36948), + 32: uint16(36949), + 33: uint16(36950), + 34: uint16(36953), + 35: uint16(36954), + 36: uint16(36956), + 37: uint16(36957), + 38: uint16(36958), + 39: uint16(36959), + 40: uint16(36960), + 41: uint16(36961), + 42: uint16(36964), + 43: uint16(36966), + 44: uint16(36967), + 45: uint16(36969), + 46: uint16(36970), + 47: uint16(36971), + 48: uint16(36972), + 49: uint16(36975), + 50: uint16(36976), + 51: uint16(36977), + 52: uint16(36978), + 53: uint16(36979), + 54: uint16(36982), + 55: uint16(36983), + 56: uint16(36984), + 57: uint16(36985), + 58: uint16(36986), + 59: uint16(36987), + 60: uint16(36988), + 61: uint16(36990), + 62: uint16(36993), + 63: uint16(36996), + 64: uint16(36997), + 65: uint16(36998), + 66: uint16(36999), + 67: uint16(37001), + 68: uint16(37002), + 69: uint16(37004), + 70: uint16(37005), + 71: uint16(37006), + 72: uint16(37007), + 73: uint16(37008), + 74: uint16(37010), + 75: uint16(37012), + 76: uint16(37014), + 77: uint16(37016), + 78: uint16(37018), + 79: uint16(37020), + 80: uint16(37022), + 81: uint16(37023), + 82: uint16(37024), + 83: uint16(37028), + 84: uint16(37029), + 85: uint16(37031), + 86: uint16(37032), + 87: uint16(37033), + 88: uint16(37035), + 89: uint16(37037), + 90: uint16(37042), + 91: uint16(37047), + 92: uint16(37052), + 93: uint16(37053), + 94: uint16(37055), + 95: uint16(37056), + 96: uint16(25722), + 97: uint16(25783), + 98: uint16(25784), + 99: uint16(25753), + 100: uint16(25786), + 101: uint16(25792), + 102: uint16(25808), + 103: uint16(25815), + 104: uint16(25828), + 105: uint16(25826), + 106: uint16(25865), + 107: uint16(25893), + 108: uint16(25902), + 109: uint16(24331), + 110: uint16(24530), + 111: uint16(29977), + 112: uint16(24337), + 113: uint16(21343), + 114: uint16(21489), + 115: uint16(21501), + 116: uint16(21481), + 117: uint16(21480), + 118: uint16(21499), + 119: uint16(21522), + 120: uint16(21526), + 121: uint16(21510), + 122: uint16(21579), + 123: uint16(21586), + 124: uint16(21587), + 125: uint16(21588), + 126: uint16(21590), + 127: uint16(21571), + 128: uint16(21537), + 129: uint16(21591), + 130: uint16(21593), + 131: uint16(21539), + 132: uint16(21554), + 133: uint16(21634), + 134: uint16(21652), + 135: uint16(21623), + 136: uint16(21617), + 137: uint16(21604), + 138: uint16(21658), + 139: uint16(21659), + 140: uint16(21636), + 141: uint16(21622), + 142: uint16(21606), + 143: uint16(21661), + 144: uint16(21712), + 145: uint16(21677), + 146: uint16(21698), + 147: uint16(21684), + 148: uint16(21714), + 149: uint16(21671), + 150: uint16(21670), + 151: uint16(21715), + 152: uint16(21716), + 153: uint16(21618), + 154: uint16(21667), + 155: uint16(21717), + 156: uint16(21691), + 157: uint16(21695), + 158: uint16(21708), + 159: uint16(21721), + 160: uint16(21722), + 161: uint16(21724), + 162: uint16(21673), + 163: uint16(21674), + 164: uint16(21668), + 165: uint16(21725), + 166: uint16(21711), + 167: uint16(21726), + 168: uint16(21787), + 169: uint16(21735), + 170: uint16(21792), + 171: uint16(21757), + 172: uint16(21780), + 173: uint16(21747), + 174: uint16(21794), + 175: uint16(21795), + 176: uint16(21775), + 177: uint16(21777), + 178: uint16(21799), + 179: uint16(21802), + 180: uint16(21863), + 181: uint16(21903), + 182: uint16(21941), + 183: uint16(21833), + 184: uint16(21869), + 185: uint16(21825), + 186: uint16(21845), + 187: uint16(21823), + 188: uint16(21840), + 189: uint16(21820), + }, + 95: { + 0: uint16(37058), + 1: uint16(37059), + 2: uint16(37062), + 3: uint16(37064), + 4: uint16(37065), + 5: uint16(37067), + 6: uint16(37068), + 7: uint16(37069), + 8: uint16(37074), + 9: uint16(37076), + 10: uint16(37077), + 11: uint16(37078), + 12: uint16(37080), + 13: uint16(37081), + 14: uint16(37082), + 15: uint16(37086), + 16: uint16(37087), + 17: uint16(37088), + 18: uint16(37091), + 19: uint16(37092), + 20: uint16(37093), + 21: uint16(37097), + 22: uint16(37098), + 23: uint16(37100), + 24: uint16(37102), + 25: uint16(37104), + 26: uint16(37105), + 27: uint16(37106), + 28: uint16(37107), + 29: uint16(37109), + 30: uint16(37110), + 31: uint16(37111), + 32: uint16(37113), + 33: uint16(37114), + 34: uint16(37115), + 35: uint16(37116), + 36: uint16(37119), + 37: uint16(37120), + 38: uint16(37121), + 39: uint16(37123), + 40: uint16(37125), + 41: uint16(37126), + 42: uint16(37127), + 43: uint16(37128), + 44: uint16(37129), + 45: uint16(37130), + 46: uint16(37131), + 47: uint16(37132), + 48: uint16(37133), + 49: uint16(37134), + 50: uint16(37135), + 51: uint16(37136), + 52: uint16(37137), + 53: uint16(37138), + 54: uint16(37139), + 55: uint16(37140), + 56: uint16(37141), + 57: uint16(37142), + 58: uint16(37143), + 59: uint16(37144), + 60: uint16(37146), + 61: uint16(37147), + 62: uint16(37148), + 63: uint16(37149), + 64: uint16(37151), + 65: uint16(37152), + 66: uint16(37153), + 67: uint16(37156), + 68: uint16(37157), + 69: uint16(37158), + 70: uint16(37159), + 71: uint16(37160), + 72: uint16(37161), + 73: uint16(37162), + 74: uint16(37163), + 75: uint16(37164), + 76: uint16(37165), + 77: uint16(37166), + 78: uint16(37168), + 79: uint16(37170), + 80: uint16(37171), + 81: uint16(37172), + 82: uint16(37173), + 83: uint16(37174), + 84: uint16(37175), + 85: uint16(37176), + 86: uint16(37178), + 87: uint16(37179), + 88: uint16(37180), + 89: uint16(37181), + 90: uint16(37182), + 91: uint16(37183), + 92: uint16(37184), + 93: uint16(37185), + 94: uint16(37186), + 95: uint16(37188), + 96: uint16(21815), + 97: uint16(21846), + 98: uint16(21877), + 99: uint16(21878), + 100: uint16(21879), + 101: uint16(21811), + 102: uint16(21808), + 103: uint16(21852), + 104: uint16(21899), + 105: uint16(21970), + 106: uint16(21891), + 107: uint16(21937), + 108: uint16(21945), + 109: uint16(21896), + 110: uint16(21889), + 111: uint16(21919), + 112: uint16(21886), + 113: uint16(21974), + 114: uint16(21905), + 115: uint16(21883), + 116: uint16(21983), + 117: uint16(21949), + 118: uint16(21950), + 119: uint16(21908), + 120: uint16(21913), + 121: uint16(21994), + 122: uint16(22007), + 123: uint16(21961), + 124: uint16(22047), + 125: uint16(21969), + 126: uint16(21995), + 127: uint16(21996), + 128: uint16(21972), + 129: uint16(21990), + 130: uint16(21981), + 131: uint16(21956), + 132: uint16(21999), + 133: uint16(21989), + 134: uint16(22002), + 135: uint16(22003), + 136: uint16(21964), + 137: uint16(21965), + 138: uint16(21992), + 139: uint16(22005), + 140: uint16(21988), + 141: uint16(36756), + 142: uint16(22046), + 143: uint16(22024), + 144: uint16(22028), + 145: uint16(22017), + 146: uint16(22052), + 147: uint16(22051), + 148: uint16(22014), + 149: uint16(22016), + 150: uint16(22055), + 151: uint16(22061), + 152: uint16(22104), + 153: uint16(22073), + 154: uint16(22103), + 155: uint16(22060), + 156: uint16(22093), + 157: uint16(22114), + 158: uint16(22105), + 159: uint16(22108), + 160: uint16(22092), + 161: uint16(22100), + 162: uint16(22150), + 163: uint16(22116), + 164: uint16(22129), + 165: uint16(22123), + 166: uint16(22139), + 167: uint16(22140), + 168: uint16(22149), + 169: uint16(22163), + 170: uint16(22191), + 171: uint16(22228), + 172: uint16(22231), + 173: uint16(22237), + 174: uint16(22241), + 175: uint16(22261), + 176: uint16(22251), + 177: uint16(22265), + 178: uint16(22271), + 179: uint16(22276), + 180: uint16(22282), + 181: uint16(22281), + 182: uint16(22300), + 183: uint16(24079), + 184: uint16(24089), + 185: uint16(24084), + 186: uint16(24081), + 187: uint16(24113), + 188: uint16(24123), + 189: uint16(24124), + }, + 96: { + 0: uint16(37189), + 1: uint16(37191), + 2: uint16(37192), + 3: uint16(37201), + 4: uint16(37203), + 5: uint16(37204), + 6: uint16(37205), + 7: uint16(37206), + 8: uint16(37208), + 9: uint16(37209), + 10: uint16(37211), + 11: uint16(37212), + 12: uint16(37215), + 13: uint16(37216), + 14: uint16(37222), + 15: uint16(37223), + 16: uint16(37224), + 17: uint16(37227), + 18: uint16(37229), + 19: uint16(37235), + 20: uint16(37242), + 21: uint16(37243), + 22: uint16(37244), + 23: uint16(37248), + 24: uint16(37249), + 25: uint16(37250), + 26: uint16(37251), + 27: uint16(37252), + 28: uint16(37254), + 29: uint16(37256), + 30: uint16(37258), + 31: uint16(37262), + 32: uint16(37263), + 33: uint16(37267), + 34: uint16(37268), + 35: uint16(37269), + 36: uint16(37270), + 37: uint16(37271), + 38: uint16(37272), + 39: uint16(37273), + 40: uint16(37276), + 41: uint16(37277), + 42: uint16(37278), + 43: uint16(37279), + 44: uint16(37280), + 45: uint16(37281), + 46: uint16(37284), + 47: uint16(37285), + 48: uint16(37286), + 49: uint16(37287), + 50: uint16(37288), + 51: uint16(37289), + 52: uint16(37291), + 53: uint16(37292), + 54: uint16(37296), + 55: uint16(37297), + 56: uint16(37298), + 57: uint16(37299), + 58: uint16(37302), + 59: uint16(37303), + 60: uint16(37304), + 61: uint16(37305), + 62: uint16(37307), + 63: uint16(37308), + 64: uint16(37309), + 65: uint16(37310), + 66: uint16(37311), + 67: uint16(37312), + 68: uint16(37313), + 69: uint16(37314), + 70: uint16(37315), + 71: uint16(37316), + 72: uint16(37317), + 73: uint16(37318), + 74: uint16(37320), + 75: uint16(37323), + 76: uint16(37328), + 77: uint16(37330), + 78: uint16(37331), + 79: uint16(37332), + 80: uint16(37333), + 81: uint16(37334), + 82: uint16(37335), + 83: uint16(37336), + 84: uint16(37337), + 85: uint16(37338), + 86: uint16(37339), + 87: uint16(37341), + 88: uint16(37342), + 89: uint16(37343), + 90: uint16(37344), + 91: uint16(37345), + 92: uint16(37346), + 93: uint16(37347), + 94: uint16(37348), + 95: uint16(37349), + 96: uint16(24119), + 97: uint16(24132), + 98: uint16(24148), + 99: uint16(24155), + 100: uint16(24158), + 101: uint16(24161), + 102: uint16(23692), + 103: uint16(23674), + 104: uint16(23693), + 105: uint16(23696), + 106: uint16(23702), + 107: uint16(23688), + 108: uint16(23704), + 109: uint16(23705), + 110: uint16(23697), + 111: uint16(23706), + 112: uint16(23708), + 113: uint16(23733), + 114: uint16(23714), + 115: uint16(23741), + 116: uint16(23724), + 117: uint16(23723), + 118: uint16(23729), + 119: uint16(23715), + 120: uint16(23745), + 121: uint16(23735), + 122: uint16(23748), + 123: uint16(23762), + 124: uint16(23780), + 125: uint16(23755), + 126: uint16(23781), + 127: uint16(23810), + 128: uint16(23811), + 129: uint16(23847), + 130: uint16(23846), + 131: uint16(23854), + 132: uint16(23844), + 133: uint16(23838), + 134: uint16(23814), + 135: uint16(23835), + 136: uint16(23896), + 137: uint16(23870), + 138: uint16(23860), + 139: uint16(23869), + 140: uint16(23916), + 141: uint16(23899), + 142: uint16(23919), + 143: uint16(23901), + 144: uint16(23915), + 145: uint16(23883), + 146: uint16(23882), + 147: uint16(23913), + 148: uint16(23924), + 149: uint16(23938), + 150: uint16(23961), + 151: uint16(23965), + 152: uint16(35955), + 153: uint16(23991), + 154: uint16(24005), + 155: uint16(24435), + 156: uint16(24439), + 157: uint16(24450), + 158: uint16(24455), + 159: uint16(24457), + 160: uint16(24460), + 161: uint16(24469), + 162: uint16(24473), + 163: uint16(24476), + 164: uint16(24488), + 165: uint16(24493), + 166: uint16(24501), + 167: uint16(24508), + 168: uint16(34914), + 169: uint16(24417), + 170: uint16(29357), + 171: uint16(29360), + 172: uint16(29364), + 173: uint16(29367), + 174: uint16(29368), + 175: uint16(29379), + 176: uint16(29377), + 177: uint16(29390), + 178: uint16(29389), + 179: uint16(29394), + 180: uint16(29416), + 181: uint16(29423), + 182: uint16(29417), + 183: uint16(29426), + 184: uint16(29428), + 185: uint16(29431), + 186: uint16(29441), + 187: uint16(29427), + 188: uint16(29443), + 189: uint16(29434), + }, + 97: { + 0: uint16(37350), + 1: uint16(37351), + 2: uint16(37352), + 3: uint16(37353), + 4: uint16(37354), + 5: uint16(37355), + 6: uint16(37356), + 7: uint16(37357), + 8: uint16(37358), + 9: uint16(37359), + 10: uint16(37360), + 11: uint16(37361), + 12: uint16(37362), + 13: uint16(37363), + 14: uint16(37364), + 15: uint16(37365), + 16: uint16(37366), + 17: uint16(37367), + 18: uint16(37368), + 19: uint16(37369), + 20: uint16(37370), + 21: uint16(37371), + 22: uint16(37372), + 23: uint16(37373), + 24: uint16(37374), + 25: uint16(37375), + 26: uint16(37376), + 27: uint16(37377), + 28: uint16(37378), + 29: uint16(37379), + 30: uint16(37380), + 31: uint16(37381), + 32: uint16(37382), + 33: uint16(37383), + 34: uint16(37384), + 35: uint16(37385), + 36: uint16(37386), + 37: uint16(37387), + 38: uint16(37388), + 39: uint16(37389), + 40: uint16(37390), + 41: uint16(37391), + 42: uint16(37392), + 43: uint16(37393), + 44: uint16(37394), + 45: uint16(37395), + 46: uint16(37396), + 47: uint16(37397), + 48: uint16(37398), + 49: uint16(37399), + 50: uint16(37400), + 51: uint16(37401), + 52: uint16(37402), + 53: uint16(37403), + 54: uint16(37404), + 55: uint16(37405), + 56: uint16(37406), + 57: uint16(37407), + 58: uint16(37408), + 59: uint16(37409), + 60: uint16(37410), + 61: uint16(37411), + 62: uint16(37412), + 63: uint16(37413), + 64: uint16(37414), + 65: uint16(37415), + 66: uint16(37416), + 67: uint16(37417), + 68: uint16(37418), + 69: uint16(37419), + 70: uint16(37420), + 71: uint16(37421), + 72: uint16(37422), + 73: uint16(37423), + 74: uint16(37424), + 75: uint16(37425), + 76: uint16(37426), + 77: uint16(37427), + 78: uint16(37428), + 79: uint16(37429), + 80: uint16(37430), + 81: uint16(37431), + 82: uint16(37432), + 83: uint16(37433), + 84: uint16(37434), + 85: uint16(37435), + 86: uint16(37436), + 87: uint16(37437), + 88: uint16(37438), + 89: uint16(37439), + 90: uint16(37440), + 91: uint16(37441), + 92: uint16(37442), + 93: uint16(37443), + 94: uint16(37444), + 95: uint16(37445), + 96: uint16(29435), + 97: uint16(29463), + 98: uint16(29459), + 99: uint16(29473), + 100: uint16(29450), + 101: uint16(29470), + 102: uint16(29469), + 103: uint16(29461), + 104: uint16(29474), + 105: uint16(29497), + 106: uint16(29477), + 107: uint16(29484), + 108: uint16(29496), + 109: uint16(29489), + 110: uint16(29520), + 111: uint16(29517), + 112: uint16(29527), + 113: uint16(29536), + 114: uint16(29548), + 115: uint16(29551), + 116: uint16(29566), + 117: uint16(33307), + 118: uint16(22821), + 119: uint16(39143), + 120: uint16(22820), + 121: uint16(22786), + 122: uint16(39267), + 123: uint16(39271), + 124: uint16(39272), + 125: uint16(39273), + 126: uint16(39274), + 127: uint16(39275), + 128: uint16(39276), + 129: uint16(39284), + 130: uint16(39287), + 131: uint16(39293), + 132: uint16(39296), + 133: uint16(39300), + 134: uint16(39303), + 135: uint16(39306), + 136: uint16(39309), + 137: uint16(39312), + 138: uint16(39313), + 139: uint16(39315), + 140: uint16(39316), + 141: uint16(39317), + 142: uint16(24192), + 143: uint16(24209), + 144: uint16(24203), + 145: uint16(24214), + 146: uint16(24229), + 147: uint16(24224), + 148: uint16(24249), + 149: uint16(24245), + 150: uint16(24254), + 151: uint16(24243), + 152: uint16(36179), + 153: uint16(24274), + 154: uint16(24273), + 155: uint16(24283), + 156: uint16(24296), + 157: uint16(24298), + 158: uint16(33210), + 159: uint16(24516), + 160: uint16(24521), + 161: uint16(24534), + 162: uint16(24527), + 163: uint16(24579), + 164: uint16(24558), + 165: uint16(24580), + 166: uint16(24545), + 167: uint16(24548), + 168: uint16(24574), + 169: uint16(24581), + 170: uint16(24582), + 171: uint16(24554), + 172: uint16(24557), + 173: uint16(24568), + 174: uint16(24601), + 175: uint16(24629), + 176: uint16(24614), + 177: uint16(24603), + 178: uint16(24591), + 179: uint16(24589), + 180: uint16(24617), + 181: uint16(24619), + 182: uint16(24586), + 183: uint16(24639), + 184: uint16(24609), + 185: uint16(24696), + 186: uint16(24697), + 187: uint16(24699), + 188: uint16(24698), + 189: uint16(24642), + }, + 98: { + 0: uint16(37446), + 1: uint16(37447), + 2: uint16(37448), + 3: uint16(37449), + 4: uint16(37450), + 5: uint16(37451), + 6: uint16(37452), + 7: uint16(37453), + 8: uint16(37454), + 9: uint16(37455), + 10: uint16(37456), + 11: uint16(37457), + 12: uint16(37458), + 13: uint16(37459), + 14: uint16(37460), + 15: uint16(37461), + 16: uint16(37462), + 17: uint16(37463), + 18: uint16(37464), + 19: uint16(37465), + 20: uint16(37466), + 21: uint16(37467), + 22: uint16(37468), + 23: uint16(37469), + 24: uint16(37470), + 25: uint16(37471), + 26: uint16(37472), + 27: uint16(37473), + 28: uint16(37474), + 29: uint16(37475), + 30: uint16(37476), + 31: uint16(37477), + 32: uint16(37478), + 33: uint16(37479), + 34: uint16(37480), + 35: uint16(37481), + 36: uint16(37482), + 37: uint16(37483), + 38: uint16(37484), + 39: uint16(37485), + 40: uint16(37486), + 41: uint16(37487), + 42: uint16(37488), + 43: uint16(37489), + 44: uint16(37490), + 45: uint16(37491), + 46: uint16(37493), + 47: uint16(37494), + 48: uint16(37495), + 49: uint16(37496), + 50: uint16(37497), + 51: uint16(37498), + 52: uint16(37499), + 53: uint16(37500), + 54: uint16(37501), + 55: uint16(37502), + 56: uint16(37503), + 57: uint16(37504), + 58: uint16(37505), + 59: uint16(37506), + 60: uint16(37507), + 61: uint16(37508), + 62: uint16(37509), + 63: uint16(37510), + 64: uint16(37511), + 65: uint16(37512), + 66: uint16(37513), + 67: uint16(37514), + 68: uint16(37515), + 69: uint16(37516), + 70: uint16(37517), + 71: uint16(37519), + 72: uint16(37520), + 73: uint16(37521), + 74: uint16(37522), + 75: uint16(37523), + 76: uint16(37524), + 77: uint16(37525), + 78: uint16(37526), + 79: uint16(37527), + 80: uint16(37528), + 81: uint16(37529), + 82: uint16(37530), + 83: uint16(37531), + 84: uint16(37532), + 85: uint16(37533), + 86: uint16(37534), + 87: uint16(37535), + 88: uint16(37536), + 89: uint16(37537), + 90: uint16(37538), + 91: uint16(37539), + 92: uint16(37540), + 93: uint16(37541), + 94: uint16(37542), + 95: uint16(37543), + 96: uint16(24682), + 97: uint16(24701), + 98: uint16(24726), + 99: uint16(24730), + 100: uint16(24749), + 101: uint16(24733), + 102: uint16(24707), + 103: uint16(24722), + 104: uint16(24716), + 105: uint16(24731), + 106: uint16(24812), + 107: uint16(24763), + 108: uint16(24753), + 109: uint16(24797), + 110: uint16(24792), + 111: uint16(24774), + 112: uint16(24794), + 113: uint16(24756), + 114: uint16(24864), + 115: uint16(24870), + 116: uint16(24853), + 117: uint16(24867), + 118: uint16(24820), + 119: uint16(24832), + 120: uint16(24846), + 121: uint16(24875), + 122: uint16(24906), + 123: uint16(24949), + 124: uint16(25004), + 125: uint16(24980), + 126: uint16(24999), + 127: uint16(25015), + 128: uint16(25044), + 129: uint16(25077), + 130: uint16(24541), + 131: uint16(38579), + 132: uint16(38377), + 133: uint16(38379), + 134: uint16(38385), + 135: uint16(38387), + 136: uint16(38389), + 137: uint16(38390), + 138: uint16(38396), + 139: uint16(38398), + 140: uint16(38403), + 141: uint16(38404), + 142: uint16(38406), + 143: uint16(38408), + 144: uint16(38410), + 145: uint16(38411), + 146: uint16(38412), + 147: uint16(38413), + 148: uint16(38415), + 149: uint16(38418), + 150: uint16(38421), + 151: uint16(38422), + 152: uint16(38423), + 153: uint16(38425), + 154: uint16(38426), + 155: uint16(20012), + 156: uint16(29247), + 157: uint16(25109), + 158: uint16(27701), + 159: uint16(27732), + 160: uint16(27740), + 161: uint16(27722), + 162: uint16(27811), + 163: uint16(27781), + 164: uint16(27792), + 165: uint16(27796), + 166: uint16(27788), + 167: uint16(27752), + 168: uint16(27753), + 169: uint16(27764), + 170: uint16(27766), + 171: uint16(27782), + 172: uint16(27817), + 173: uint16(27856), + 174: uint16(27860), + 175: uint16(27821), + 176: uint16(27895), + 177: uint16(27896), + 178: uint16(27889), + 179: uint16(27863), + 180: uint16(27826), + 181: uint16(27872), + 182: uint16(27862), + 183: uint16(27898), + 184: uint16(27883), + 185: uint16(27886), + 186: uint16(27825), + 187: uint16(27859), + 188: uint16(27887), + 189: uint16(27902), + }, + 99: { + 0: uint16(37544), + 1: uint16(37545), + 2: uint16(37546), + 3: uint16(37547), + 4: uint16(37548), + 5: uint16(37549), + 6: uint16(37551), + 7: uint16(37552), + 8: uint16(37553), + 9: uint16(37554), + 10: uint16(37555), + 11: uint16(37556), + 12: uint16(37557), + 13: uint16(37558), + 14: uint16(37559), + 15: uint16(37560), + 16: uint16(37561), + 17: uint16(37562), + 18: uint16(37563), + 19: uint16(37564), + 20: uint16(37565), + 21: uint16(37566), + 22: uint16(37567), + 23: uint16(37568), + 24: uint16(37569), + 25: uint16(37570), + 26: uint16(37571), + 27: uint16(37572), + 28: uint16(37573), + 29: uint16(37574), + 30: uint16(37575), + 31: uint16(37577), + 32: uint16(37578), + 33: uint16(37579), + 34: uint16(37580), + 35: uint16(37581), + 36: uint16(37582), + 37: uint16(37583), + 38: uint16(37584), + 39: uint16(37585), + 40: uint16(37586), + 41: uint16(37587), + 42: uint16(37588), + 43: uint16(37589), + 44: uint16(37590), + 45: uint16(37591), + 46: uint16(37592), + 47: uint16(37593), + 48: uint16(37594), + 49: uint16(37595), + 50: uint16(37596), + 51: uint16(37597), + 52: uint16(37598), + 53: uint16(37599), + 54: uint16(37600), + 55: uint16(37601), + 56: uint16(37602), + 57: uint16(37603), + 58: uint16(37604), + 59: uint16(37605), + 60: uint16(37606), + 61: uint16(37607), + 62: uint16(37608), + 63: uint16(37609), + 64: uint16(37610), + 65: uint16(37611), + 66: uint16(37612), + 67: uint16(37613), + 68: uint16(37614), + 69: uint16(37615), + 70: uint16(37616), + 71: uint16(37617), + 72: uint16(37618), + 73: uint16(37619), + 74: uint16(37620), + 75: uint16(37621), + 76: uint16(37622), + 77: uint16(37623), + 78: uint16(37624), + 79: uint16(37625), + 80: uint16(37626), + 81: uint16(37627), + 82: uint16(37628), + 83: uint16(37629), + 84: uint16(37630), + 85: uint16(37631), + 86: uint16(37632), + 87: uint16(37633), + 88: uint16(37634), + 89: uint16(37635), + 90: uint16(37636), + 91: uint16(37637), + 92: uint16(37638), + 93: uint16(37639), + 94: uint16(37640), + 95: uint16(37641), + 96: uint16(27961), + 97: uint16(27943), + 98: uint16(27916), + 99: uint16(27971), + 100: uint16(27976), + 101: uint16(27911), + 102: uint16(27908), + 103: uint16(27929), + 104: uint16(27918), + 105: uint16(27947), + 106: uint16(27981), + 107: uint16(27950), + 108: uint16(27957), + 109: uint16(27930), + 110: uint16(27983), + 111: uint16(27986), + 112: uint16(27988), + 113: uint16(27955), + 114: uint16(28049), + 115: uint16(28015), + 116: uint16(28062), + 117: uint16(28064), + 118: uint16(27998), + 119: uint16(28051), + 120: uint16(28052), + 121: uint16(27996), + 122: uint16(28000), + 123: uint16(28028), + 124: uint16(28003), + 125: uint16(28186), + 126: uint16(28103), + 127: uint16(28101), + 128: uint16(28126), + 129: uint16(28174), + 130: uint16(28095), + 131: uint16(28128), + 132: uint16(28177), + 133: uint16(28134), + 134: uint16(28125), + 135: uint16(28121), + 136: uint16(28182), + 137: uint16(28075), + 138: uint16(28172), + 139: uint16(28078), + 140: uint16(28203), + 141: uint16(28270), + 142: uint16(28238), + 143: uint16(28267), + 144: uint16(28338), + 145: uint16(28255), + 146: uint16(28294), + 147: uint16(28243), + 148: uint16(28244), + 149: uint16(28210), + 150: uint16(28197), + 151: uint16(28228), + 152: uint16(28383), + 153: uint16(28337), + 154: uint16(28312), + 155: uint16(28384), + 156: uint16(28461), + 157: uint16(28386), + 158: uint16(28325), + 159: uint16(28327), + 160: uint16(28349), + 161: uint16(28347), + 162: uint16(28343), + 163: uint16(28375), + 164: uint16(28340), + 165: uint16(28367), + 166: uint16(28303), + 167: uint16(28354), + 168: uint16(28319), + 169: uint16(28514), + 170: uint16(28486), + 171: uint16(28487), + 172: uint16(28452), + 173: uint16(28437), + 174: uint16(28409), + 175: uint16(28463), + 176: uint16(28470), + 177: uint16(28491), + 178: uint16(28532), + 179: uint16(28458), + 180: uint16(28425), + 181: uint16(28457), + 182: uint16(28553), + 183: uint16(28557), + 184: uint16(28556), + 185: uint16(28536), + 186: uint16(28530), + 187: uint16(28540), + 188: uint16(28538), + 189: uint16(28625), + }, + 100: { + 0: uint16(37642), + 1: uint16(37643), + 2: uint16(37644), + 3: uint16(37645), + 4: uint16(37646), + 5: uint16(37647), + 6: uint16(37648), + 7: uint16(37649), + 8: uint16(37650), + 9: uint16(37651), + 10: uint16(37652), + 11: uint16(37653), + 12: uint16(37654), + 13: uint16(37655), + 14: uint16(37656), + 15: uint16(37657), + 16: uint16(37658), + 17: uint16(37659), + 18: uint16(37660), + 19: uint16(37661), + 20: uint16(37662), + 21: uint16(37663), + 22: uint16(37664), + 23: uint16(37665), + 24: uint16(37666), + 25: uint16(37667), + 26: uint16(37668), + 27: uint16(37669), + 28: uint16(37670), + 29: uint16(37671), + 30: uint16(37672), + 31: uint16(37673), + 32: uint16(37674), + 33: uint16(37675), + 34: uint16(37676), + 35: uint16(37677), + 36: uint16(37678), + 37: uint16(37679), + 38: uint16(37680), + 39: uint16(37681), + 40: uint16(37682), + 41: uint16(37683), + 42: uint16(37684), + 43: uint16(37685), + 44: uint16(37686), + 45: uint16(37687), + 46: uint16(37688), + 47: uint16(37689), + 48: uint16(37690), + 49: uint16(37691), + 50: uint16(37692), + 51: uint16(37693), + 52: uint16(37695), + 53: uint16(37696), + 54: uint16(37697), + 55: uint16(37698), + 56: uint16(37699), + 57: uint16(37700), + 58: uint16(37701), + 59: uint16(37702), + 60: uint16(37703), + 61: uint16(37704), + 62: uint16(37705), + 63: uint16(37706), + 64: uint16(37707), + 65: uint16(37708), + 66: uint16(37709), + 67: uint16(37710), + 68: uint16(37711), + 69: uint16(37712), + 70: uint16(37713), + 71: uint16(37714), + 72: uint16(37715), + 73: uint16(37716), + 74: uint16(37717), + 75: uint16(37718), + 76: uint16(37719), + 77: uint16(37720), + 78: uint16(37721), + 79: uint16(37722), + 80: uint16(37723), + 81: uint16(37724), + 82: uint16(37725), + 83: uint16(37726), + 84: uint16(37727), + 85: uint16(37728), + 86: uint16(37729), + 87: uint16(37730), + 88: uint16(37731), + 89: uint16(37732), + 90: uint16(37733), + 91: uint16(37734), + 92: uint16(37735), + 93: uint16(37736), + 94: uint16(37737), + 95: uint16(37739), + 96: uint16(28617), + 97: uint16(28583), + 98: uint16(28601), + 99: uint16(28598), + 100: uint16(28610), + 101: uint16(28641), + 102: uint16(28654), + 103: uint16(28638), + 104: uint16(28640), + 105: uint16(28655), + 106: uint16(28698), + 107: uint16(28707), + 108: uint16(28699), + 109: uint16(28729), + 110: uint16(28725), + 111: uint16(28751), + 112: uint16(28766), + 113: uint16(23424), + 114: uint16(23428), + 115: uint16(23445), + 116: uint16(23443), + 117: uint16(23461), + 118: uint16(23480), + 119: uint16(29999), + 120: uint16(39582), + 121: uint16(25652), + 122: uint16(23524), + 123: uint16(23534), + 124: uint16(35120), + 125: uint16(23536), + 126: uint16(36423), + 127: uint16(35591), + 128: uint16(36790), + 129: uint16(36819), + 130: uint16(36821), + 131: uint16(36837), + 132: uint16(36846), + 133: uint16(36836), + 134: uint16(36841), + 135: uint16(36838), + 136: uint16(36851), + 137: uint16(36840), + 138: uint16(36869), + 139: uint16(36868), + 140: uint16(36875), + 141: uint16(36902), + 142: uint16(36881), + 143: uint16(36877), + 144: uint16(36886), + 145: uint16(36897), + 146: uint16(36917), + 147: uint16(36918), + 148: uint16(36909), + 149: uint16(36911), + 150: uint16(36932), + 151: uint16(36945), + 152: uint16(36946), + 153: uint16(36944), + 154: uint16(36968), + 155: uint16(36952), + 156: uint16(36962), + 157: uint16(36955), + 158: uint16(26297), + 159: uint16(36980), + 160: uint16(36989), + 161: uint16(36994), + 162: uint16(37000), + 163: uint16(36995), + 164: uint16(37003), + 165: uint16(24400), + 166: uint16(24407), + 167: uint16(24406), + 168: uint16(24408), + 169: uint16(23611), + 170: uint16(21675), + 171: uint16(23632), + 172: uint16(23641), + 173: uint16(23409), + 174: uint16(23651), + 175: uint16(23654), + 176: uint16(32700), + 177: uint16(24362), + 178: uint16(24361), + 179: uint16(24365), + 180: uint16(33396), + 181: uint16(24380), + 182: uint16(39739), + 183: uint16(23662), + 184: uint16(22913), + 185: uint16(22915), + 186: uint16(22925), + 187: uint16(22953), + 188: uint16(22954), + 189: uint16(22947), + }, + 101: { + 0: uint16(37740), + 1: uint16(37741), + 2: uint16(37742), + 3: uint16(37743), + 4: uint16(37744), + 5: uint16(37745), + 6: uint16(37746), + 7: uint16(37747), + 8: uint16(37748), + 9: uint16(37749), + 10: uint16(37750), + 11: uint16(37751), + 12: uint16(37752), + 13: uint16(37753), + 14: uint16(37754), + 15: uint16(37755), + 16: uint16(37756), + 17: uint16(37757), + 18: uint16(37758), + 19: uint16(37759), + 20: uint16(37760), + 21: uint16(37761), + 22: uint16(37762), + 23: uint16(37763), + 24: uint16(37764), + 25: uint16(37765), + 26: uint16(37766), + 27: uint16(37767), + 28: uint16(37768), + 29: uint16(37769), + 30: uint16(37770), + 31: uint16(37771), + 32: uint16(37772), + 33: uint16(37773), + 34: uint16(37774), + 35: uint16(37776), + 36: uint16(37777), + 37: uint16(37778), + 38: uint16(37779), + 39: uint16(37780), + 40: uint16(37781), + 41: uint16(37782), + 42: uint16(37783), + 43: uint16(37784), + 44: uint16(37785), + 45: uint16(37786), + 46: uint16(37787), + 47: uint16(37788), + 48: uint16(37789), + 49: uint16(37790), + 50: uint16(37791), + 51: uint16(37792), + 52: uint16(37793), + 53: uint16(37794), + 54: uint16(37795), + 55: uint16(37796), + 56: uint16(37797), + 57: uint16(37798), + 58: uint16(37799), + 59: uint16(37800), + 60: uint16(37801), + 61: uint16(37802), + 62: uint16(37803), + 63: uint16(37804), + 64: uint16(37805), + 65: uint16(37806), + 66: uint16(37807), + 67: uint16(37808), + 68: uint16(37809), + 69: uint16(37810), + 70: uint16(37811), + 71: uint16(37812), + 72: uint16(37813), + 73: uint16(37814), + 74: uint16(37815), + 75: uint16(37816), + 76: uint16(37817), + 77: uint16(37818), + 78: uint16(37819), + 79: uint16(37820), + 80: uint16(37821), + 81: uint16(37822), + 82: uint16(37823), + 83: uint16(37824), + 84: uint16(37825), + 85: uint16(37826), + 86: uint16(37827), + 87: uint16(37828), + 88: uint16(37829), + 89: uint16(37830), + 90: uint16(37831), + 91: uint16(37832), + 92: uint16(37833), + 93: uint16(37835), + 94: uint16(37836), + 95: uint16(37837), + 96: uint16(22935), + 97: uint16(22986), + 98: uint16(22955), + 99: uint16(22942), + 100: uint16(22948), + 101: uint16(22994), + 102: uint16(22962), + 103: uint16(22959), + 104: uint16(22999), + 105: uint16(22974), + 106: uint16(23045), + 107: uint16(23046), + 108: uint16(23005), + 109: uint16(23048), + 110: uint16(23011), + 111: uint16(23000), + 112: uint16(23033), + 113: uint16(23052), + 114: uint16(23049), + 115: uint16(23090), + 116: uint16(23092), + 117: uint16(23057), + 118: uint16(23075), + 119: uint16(23059), + 120: uint16(23104), + 121: uint16(23143), + 122: uint16(23114), + 123: uint16(23125), + 124: uint16(23100), + 125: uint16(23138), + 126: uint16(23157), + 127: uint16(33004), + 128: uint16(23210), + 129: uint16(23195), + 130: uint16(23159), + 131: uint16(23162), + 132: uint16(23230), + 133: uint16(23275), + 134: uint16(23218), + 135: uint16(23250), + 136: uint16(23252), + 137: uint16(23224), + 138: uint16(23264), + 139: uint16(23267), + 140: uint16(23281), + 141: uint16(23254), + 142: uint16(23270), + 143: uint16(23256), + 144: uint16(23260), + 145: uint16(23305), + 146: uint16(23319), + 147: uint16(23318), + 148: uint16(23346), + 149: uint16(23351), + 150: uint16(23360), + 151: uint16(23573), + 152: uint16(23580), + 153: uint16(23386), + 154: uint16(23397), + 155: uint16(23411), + 156: uint16(23377), + 157: uint16(23379), + 158: uint16(23394), + 159: uint16(39541), + 160: uint16(39543), + 161: uint16(39544), + 162: uint16(39546), + 163: uint16(39551), + 164: uint16(39549), + 165: uint16(39552), + 166: uint16(39553), + 167: uint16(39557), + 168: uint16(39560), + 169: uint16(39562), + 170: uint16(39568), + 171: uint16(39570), + 172: uint16(39571), + 173: uint16(39574), + 174: uint16(39576), + 175: uint16(39579), + 176: uint16(39580), + 177: uint16(39581), + 178: uint16(39583), + 179: uint16(39584), + 180: uint16(39586), + 181: uint16(39587), + 182: uint16(39589), + 183: uint16(39591), + 184: uint16(32415), + 185: uint16(32417), + 186: uint16(32419), + 187: uint16(32421), + 188: uint16(32424), + 189: uint16(32425), + }, + 102: { + 0: uint16(37838), + 1: uint16(37839), + 2: uint16(37840), + 3: uint16(37841), + 4: uint16(37842), + 5: uint16(37843), + 6: uint16(37844), + 7: uint16(37845), + 8: uint16(37847), + 9: uint16(37848), + 10: uint16(37849), + 11: uint16(37850), + 12: uint16(37851), + 13: uint16(37852), + 14: uint16(37853), + 15: uint16(37854), + 16: uint16(37855), + 17: uint16(37856), + 18: uint16(37857), + 19: uint16(37858), + 20: uint16(37859), + 21: uint16(37860), + 22: uint16(37861), + 23: uint16(37862), + 24: uint16(37863), + 25: uint16(37864), + 26: uint16(37865), + 27: uint16(37866), + 28: uint16(37867), + 29: uint16(37868), + 30: uint16(37869), + 31: uint16(37870), + 32: uint16(37871), + 33: uint16(37872), + 34: uint16(37873), + 35: uint16(37874), + 36: uint16(37875), + 37: uint16(37876), + 38: uint16(37877), + 39: uint16(37878), + 40: uint16(37879), + 41: uint16(37880), + 42: uint16(37881), + 43: uint16(37882), + 44: uint16(37883), + 45: uint16(37884), + 46: uint16(37885), + 47: uint16(37886), + 48: uint16(37887), + 49: uint16(37888), + 50: uint16(37889), + 51: uint16(37890), + 52: uint16(37891), + 53: uint16(37892), + 54: uint16(37893), + 55: uint16(37894), + 56: uint16(37895), + 57: uint16(37896), + 58: uint16(37897), + 59: uint16(37898), + 60: uint16(37899), + 61: uint16(37900), + 62: uint16(37901), + 63: uint16(37902), + 64: uint16(37903), + 65: uint16(37904), + 66: uint16(37905), + 67: uint16(37906), + 68: uint16(37907), + 69: uint16(37908), + 70: uint16(37909), + 71: uint16(37910), + 72: uint16(37911), + 73: uint16(37912), + 74: uint16(37913), + 75: uint16(37914), + 76: uint16(37915), + 77: uint16(37916), + 78: uint16(37917), + 79: uint16(37918), + 80: uint16(37919), + 81: uint16(37920), + 82: uint16(37921), + 83: uint16(37922), + 84: uint16(37923), + 85: uint16(37924), + 86: uint16(37925), + 87: uint16(37926), + 88: uint16(37927), + 89: uint16(37928), + 90: uint16(37929), + 91: uint16(37930), + 92: uint16(37931), + 93: uint16(37932), + 94: uint16(37933), + 95: uint16(37934), + 96: uint16(32429), + 97: uint16(32432), + 98: uint16(32446), + 99: uint16(32448), + 100: uint16(32449), + 101: uint16(32450), + 102: uint16(32457), + 103: uint16(32459), + 104: uint16(32460), + 105: uint16(32464), + 106: uint16(32468), + 107: uint16(32471), + 108: uint16(32475), + 109: uint16(32480), + 110: uint16(32481), + 111: uint16(32488), + 112: uint16(32491), + 113: uint16(32494), + 114: uint16(32495), + 115: uint16(32497), + 116: uint16(32498), + 117: uint16(32525), + 118: uint16(32502), + 119: uint16(32506), + 120: uint16(32507), + 121: uint16(32510), + 122: uint16(32513), + 123: uint16(32514), + 124: uint16(32515), + 125: uint16(32519), + 126: uint16(32520), + 127: uint16(32523), + 128: uint16(32524), + 129: uint16(32527), + 130: uint16(32529), + 131: uint16(32530), + 132: uint16(32535), + 133: uint16(32537), + 134: uint16(32540), + 135: uint16(32539), + 136: uint16(32543), + 137: uint16(32545), + 138: uint16(32546), + 139: uint16(32547), + 140: uint16(32548), + 141: uint16(32549), + 142: uint16(32550), + 143: uint16(32551), + 144: uint16(32554), + 145: uint16(32555), + 146: uint16(32556), + 147: uint16(32557), + 148: uint16(32559), + 149: uint16(32560), + 150: uint16(32561), + 151: uint16(32562), + 152: uint16(32563), + 153: uint16(32565), + 154: uint16(24186), + 155: uint16(30079), + 156: uint16(24027), + 157: uint16(30014), + 158: uint16(37013), + 159: uint16(29582), + 160: uint16(29585), + 161: uint16(29614), + 162: uint16(29602), + 163: uint16(29599), + 164: uint16(29647), + 165: uint16(29634), + 166: uint16(29649), + 167: uint16(29623), + 168: uint16(29619), + 169: uint16(29632), + 170: uint16(29641), + 171: uint16(29640), + 172: uint16(29669), + 173: uint16(29657), + 174: uint16(39036), + 175: uint16(29706), + 176: uint16(29673), + 177: uint16(29671), + 178: uint16(29662), + 179: uint16(29626), + 180: uint16(29682), + 181: uint16(29711), + 182: uint16(29738), + 183: uint16(29787), + 184: uint16(29734), + 185: uint16(29733), + 186: uint16(29736), + 187: uint16(29744), + 188: uint16(29742), + 189: uint16(29740), + }, + 103: { + 0: uint16(37935), + 1: uint16(37936), + 2: uint16(37937), + 3: uint16(37938), + 4: uint16(37939), + 5: uint16(37940), + 6: uint16(37941), + 7: uint16(37942), + 8: uint16(37943), + 9: uint16(37944), + 10: uint16(37945), + 11: uint16(37946), + 12: uint16(37947), + 13: uint16(37948), + 14: uint16(37949), + 15: uint16(37951), + 16: uint16(37952), + 17: uint16(37953), + 18: uint16(37954), + 19: uint16(37955), + 20: uint16(37956), + 21: uint16(37957), + 22: uint16(37958), + 23: uint16(37959), + 24: uint16(37960), + 25: uint16(37961), + 26: uint16(37962), + 27: uint16(37963), + 28: uint16(37964), + 29: uint16(37965), + 30: uint16(37966), + 31: uint16(37967), + 32: uint16(37968), + 33: uint16(37969), + 34: uint16(37970), + 35: uint16(37971), + 36: uint16(37972), + 37: uint16(37973), + 38: uint16(37974), + 39: uint16(37975), + 40: uint16(37976), + 41: uint16(37977), + 42: uint16(37978), + 43: uint16(37979), + 44: uint16(37980), + 45: uint16(37981), + 46: uint16(37982), + 47: uint16(37983), + 48: uint16(37984), + 49: uint16(37985), + 50: uint16(37986), + 51: uint16(37987), + 52: uint16(37988), + 53: uint16(37989), + 54: uint16(37990), + 55: uint16(37991), + 56: uint16(37992), + 57: uint16(37993), + 58: uint16(37994), + 59: uint16(37996), + 60: uint16(37997), + 61: uint16(37998), + 62: uint16(37999), + 63: uint16(38000), + 64: uint16(38001), + 65: uint16(38002), + 66: uint16(38003), + 67: uint16(38004), + 68: uint16(38005), + 69: uint16(38006), + 70: uint16(38007), + 71: uint16(38008), + 72: uint16(38009), + 73: uint16(38010), + 74: uint16(38011), + 75: uint16(38012), + 76: uint16(38013), + 77: uint16(38014), + 78: uint16(38015), + 79: uint16(38016), + 80: uint16(38017), + 81: uint16(38018), + 82: uint16(38019), + 83: uint16(38020), + 84: uint16(38033), + 85: uint16(38038), + 86: uint16(38040), + 87: uint16(38087), + 88: uint16(38095), + 89: uint16(38099), + 90: uint16(38100), + 91: uint16(38106), + 92: uint16(38118), + 93: uint16(38139), + 94: uint16(38172), + 95: uint16(38176), + 96: uint16(29723), + 97: uint16(29722), + 98: uint16(29761), + 99: uint16(29788), + 100: uint16(29783), + 101: uint16(29781), + 102: uint16(29785), + 103: uint16(29815), + 104: uint16(29805), + 105: uint16(29822), + 106: uint16(29852), + 107: uint16(29838), + 108: uint16(29824), + 109: uint16(29825), + 110: uint16(29831), + 111: uint16(29835), + 112: uint16(29854), + 113: uint16(29864), + 114: uint16(29865), + 115: uint16(29840), + 116: uint16(29863), + 117: uint16(29906), + 118: uint16(29882), + 119: uint16(38890), + 120: uint16(38891), + 121: uint16(38892), + 122: uint16(26444), + 123: uint16(26451), + 124: uint16(26462), + 125: uint16(26440), + 126: uint16(26473), + 127: uint16(26533), + 128: uint16(26503), + 129: uint16(26474), + 130: uint16(26483), + 131: uint16(26520), + 132: uint16(26535), + 133: uint16(26485), + 134: uint16(26536), + 135: uint16(26526), + 136: uint16(26541), + 137: uint16(26507), + 138: uint16(26487), + 139: uint16(26492), + 140: uint16(26608), + 141: uint16(26633), + 142: uint16(26584), + 143: uint16(26634), + 144: uint16(26601), + 145: uint16(26544), + 146: uint16(26636), + 147: uint16(26585), + 148: uint16(26549), + 149: uint16(26586), + 150: uint16(26547), + 151: uint16(26589), + 152: uint16(26624), + 153: uint16(26563), + 154: uint16(26552), + 155: uint16(26594), + 156: uint16(26638), + 157: uint16(26561), + 158: uint16(26621), + 159: uint16(26674), + 160: uint16(26675), + 161: uint16(26720), + 162: uint16(26721), + 163: uint16(26702), + 164: uint16(26722), + 165: uint16(26692), + 166: uint16(26724), + 167: uint16(26755), + 168: uint16(26653), + 169: uint16(26709), + 170: uint16(26726), + 171: uint16(26689), + 172: uint16(26727), + 173: uint16(26688), + 174: uint16(26686), + 175: uint16(26698), + 176: uint16(26697), + 177: uint16(26665), + 178: uint16(26805), + 179: uint16(26767), + 180: uint16(26740), + 181: uint16(26743), + 182: uint16(26771), + 183: uint16(26731), + 184: uint16(26818), + 185: uint16(26990), + 186: uint16(26876), + 187: uint16(26911), + 188: uint16(26912), + 189: uint16(26873), + }, + 104: { + 0: uint16(38183), + 1: uint16(38195), + 2: uint16(38205), + 3: uint16(38211), + 4: uint16(38216), + 5: uint16(38219), + 6: uint16(38229), + 7: uint16(38234), + 8: uint16(38240), + 9: uint16(38254), + 10: uint16(38260), + 11: uint16(38261), + 12: uint16(38263), + 13: uint16(38264), + 14: uint16(38265), + 15: uint16(38266), + 16: uint16(38267), + 17: uint16(38268), + 18: uint16(38269), + 19: uint16(38270), + 20: uint16(38272), + 21: uint16(38273), + 22: uint16(38274), + 23: uint16(38275), + 24: uint16(38276), + 25: uint16(38277), + 26: uint16(38278), + 27: uint16(38279), + 28: uint16(38280), + 29: uint16(38281), + 30: uint16(38282), + 31: uint16(38283), + 32: uint16(38284), + 33: uint16(38285), + 34: uint16(38286), + 35: uint16(38287), + 36: uint16(38288), + 37: uint16(38289), + 38: uint16(38290), + 39: uint16(38291), + 40: uint16(38292), + 41: uint16(38293), + 42: uint16(38294), + 43: uint16(38295), + 44: uint16(38296), + 45: uint16(38297), + 46: uint16(38298), + 47: uint16(38299), + 48: uint16(38300), + 49: uint16(38301), + 50: uint16(38302), + 51: uint16(38303), + 52: uint16(38304), + 53: uint16(38305), + 54: uint16(38306), + 55: uint16(38307), + 56: uint16(38308), + 57: uint16(38309), + 58: uint16(38310), + 59: uint16(38311), + 60: uint16(38312), + 61: uint16(38313), + 62: uint16(38314), + 63: uint16(38315), + 64: uint16(38316), + 65: uint16(38317), + 66: uint16(38318), + 67: uint16(38319), + 68: uint16(38320), + 69: uint16(38321), + 70: uint16(38322), + 71: uint16(38323), + 72: uint16(38324), + 73: uint16(38325), + 74: uint16(38326), + 75: uint16(38327), + 76: uint16(38328), + 77: uint16(38329), + 78: uint16(38330), + 79: uint16(38331), + 80: uint16(38332), + 81: uint16(38333), + 82: uint16(38334), + 83: uint16(38335), + 84: uint16(38336), + 85: uint16(38337), + 86: uint16(38338), + 87: uint16(38339), + 88: uint16(38340), + 89: uint16(38341), + 90: uint16(38342), + 91: uint16(38343), + 92: uint16(38344), + 93: uint16(38345), + 94: uint16(38346), + 95: uint16(38347), + 96: uint16(26916), + 97: uint16(26864), + 98: uint16(26891), + 99: uint16(26881), + 100: uint16(26967), + 101: uint16(26851), + 102: uint16(26896), + 103: uint16(26993), + 104: uint16(26937), + 105: uint16(26976), + 106: uint16(26946), + 107: uint16(26973), + 108: uint16(27012), + 109: uint16(26987), + 110: uint16(27008), + 111: uint16(27032), + 112: uint16(27000), + 113: uint16(26932), + 114: uint16(27084), + 115: uint16(27015), + 116: uint16(27016), + 117: uint16(27086), + 118: uint16(27017), + 119: uint16(26982), + 120: uint16(26979), + 121: uint16(27001), + 122: uint16(27035), + 123: uint16(27047), + 124: uint16(27067), + 125: uint16(27051), + 126: uint16(27053), + 127: uint16(27092), + 128: uint16(27057), + 129: uint16(27073), + 130: uint16(27082), + 131: uint16(27103), + 132: uint16(27029), + 133: uint16(27104), + 134: uint16(27021), + 135: uint16(27135), + 136: uint16(27183), + 137: uint16(27117), + 138: uint16(27159), + 139: uint16(27160), + 140: uint16(27237), + 141: uint16(27122), + 142: uint16(27204), + 143: uint16(27198), + 144: uint16(27296), + 145: uint16(27216), + 146: uint16(27227), + 147: uint16(27189), + 148: uint16(27278), + 149: uint16(27257), + 150: uint16(27197), + 151: uint16(27176), + 152: uint16(27224), + 153: uint16(27260), + 154: uint16(27281), + 155: uint16(27280), + 156: uint16(27305), + 157: uint16(27287), + 158: uint16(27307), + 159: uint16(29495), + 160: uint16(29522), + 161: uint16(27521), + 162: uint16(27522), + 163: uint16(27527), + 164: uint16(27524), + 165: uint16(27538), + 166: uint16(27539), + 167: uint16(27533), + 168: uint16(27546), + 169: uint16(27547), + 170: uint16(27553), + 171: uint16(27562), + 172: uint16(36715), + 173: uint16(36717), + 174: uint16(36721), + 175: uint16(36722), + 176: uint16(36723), + 177: uint16(36725), + 178: uint16(36726), + 179: uint16(36728), + 180: uint16(36727), + 181: uint16(36729), + 182: uint16(36730), + 183: uint16(36732), + 184: uint16(36734), + 185: uint16(36737), + 186: uint16(36738), + 187: uint16(36740), + 188: uint16(36743), + 189: uint16(36747), + }, + 105: { + 0: uint16(38348), + 1: uint16(38349), + 2: uint16(38350), + 3: uint16(38351), + 4: uint16(38352), + 5: uint16(38353), + 6: uint16(38354), + 7: uint16(38355), + 8: uint16(38356), + 9: uint16(38357), + 10: uint16(38358), + 11: uint16(38359), + 12: uint16(38360), + 13: uint16(38361), + 14: uint16(38362), + 15: uint16(38363), + 16: uint16(38364), + 17: uint16(38365), + 18: uint16(38366), + 19: uint16(38367), + 20: uint16(38368), + 21: uint16(38369), + 22: uint16(38370), + 23: uint16(38371), + 24: uint16(38372), + 25: uint16(38373), + 26: uint16(38374), + 27: uint16(38375), + 28: uint16(38380), + 29: uint16(38399), + 30: uint16(38407), + 31: uint16(38419), + 32: uint16(38424), + 33: uint16(38427), + 34: uint16(38430), + 35: uint16(38432), + 36: uint16(38435), + 37: uint16(38436), + 38: uint16(38437), + 39: uint16(38438), + 40: uint16(38439), + 41: uint16(38440), + 42: uint16(38441), + 43: uint16(38443), + 44: uint16(38444), + 45: uint16(38445), + 46: uint16(38447), + 47: uint16(38448), + 48: uint16(38455), + 49: uint16(38456), + 50: uint16(38457), + 51: uint16(38458), + 52: uint16(38462), + 53: uint16(38465), + 54: uint16(38467), + 55: uint16(38474), + 56: uint16(38478), + 57: uint16(38479), + 58: uint16(38481), + 59: uint16(38482), + 60: uint16(38483), + 61: uint16(38486), + 62: uint16(38487), + 63: uint16(38488), + 64: uint16(38489), + 65: uint16(38490), + 66: uint16(38492), + 67: uint16(38493), + 68: uint16(38494), + 69: uint16(38496), + 70: uint16(38499), + 71: uint16(38501), + 72: uint16(38502), + 73: uint16(38507), + 74: uint16(38509), + 75: uint16(38510), + 76: uint16(38511), + 77: uint16(38512), + 78: uint16(38513), + 79: uint16(38515), + 80: uint16(38520), + 81: uint16(38521), + 82: uint16(38522), + 83: uint16(38523), + 84: uint16(38524), + 85: uint16(38525), + 86: uint16(38526), + 87: uint16(38527), + 88: uint16(38528), + 89: uint16(38529), + 90: uint16(38530), + 91: uint16(38531), + 92: uint16(38532), + 93: uint16(38535), + 94: uint16(38537), + 95: uint16(38538), + 96: uint16(36749), + 97: uint16(36750), + 98: uint16(36751), + 99: uint16(36760), + 100: uint16(36762), + 101: uint16(36558), + 102: uint16(25099), + 103: uint16(25111), + 104: uint16(25115), + 105: uint16(25119), + 106: uint16(25122), + 107: uint16(25121), + 108: uint16(25125), + 109: uint16(25124), + 110: uint16(25132), + 111: uint16(33255), + 112: uint16(29935), + 113: uint16(29940), + 114: uint16(29951), + 115: uint16(29967), + 116: uint16(29969), + 117: uint16(29971), + 118: uint16(25908), + 119: uint16(26094), + 120: uint16(26095), + 121: uint16(26096), + 122: uint16(26122), + 123: uint16(26137), + 124: uint16(26482), + 125: uint16(26115), + 126: uint16(26133), + 127: uint16(26112), + 128: uint16(28805), + 129: uint16(26359), + 130: uint16(26141), + 131: uint16(26164), + 132: uint16(26161), + 133: uint16(26166), + 134: uint16(26165), + 135: uint16(32774), + 136: uint16(26207), + 137: uint16(26196), + 138: uint16(26177), + 139: uint16(26191), + 140: uint16(26198), + 141: uint16(26209), + 142: uint16(26199), + 143: uint16(26231), + 144: uint16(26244), + 145: uint16(26252), + 146: uint16(26279), + 147: uint16(26269), + 148: uint16(26302), + 149: uint16(26331), + 150: uint16(26332), + 151: uint16(26342), + 152: uint16(26345), + 153: uint16(36146), + 154: uint16(36147), + 155: uint16(36150), + 156: uint16(36155), + 157: uint16(36157), + 158: uint16(36160), + 159: uint16(36165), + 160: uint16(36166), + 161: uint16(36168), + 162: uint16(36169), + 163: uint16(36167), + 164: uint16(36173), + 165: uint16(36181), + 166: uint16(36185), + 167: uint16(35271), + 168: uint16(35274), + 169: uint16(35275), + 170: uint16(35276), + 171: uint16(35278), + 172: uint16(35279), + 173: uint16(35280), + 174: uint16(35281), + 175: uint16(29294), + 176: uint16(29343), + 177: uint16(29277), + 178: uint16(29286), + 179: uint16(29295), + 180: uint16(29310), + 181: uint16(29311), + 182: uint16(29316), + 183: uint16(29323), + 184: uint16(29325), + 185: uint16(29327), + 186: uint16(29330), + 187: uint16(25352), + 188: uint16(25394), + 189: uint16(25520), + }, + 106: { + 0: uint16(38540), + 1: uint16(38542), + 2: uint16(38545), + 3: uint16(38546), + 4: uint16(38547), + 5: uint16(38549), + 6: uint16(38550), + 7: uint16(38554), + 8: uint16(38555), + 9: uint16(38557), + 10: uint16(38558), + 11: uint16(38559), + 12: uint16(38560), + 13: uint16(38561), + 14: uint16(38562), + 15: uint16(38563), + 16: uint16(38564), + 17: uint16(38565), + 18: uint16(38566), + 19: uint16(38568), + 20: uint16(38569), + 21: uint16(38570), + 22: uint16(38571), + 23: uint16(38572), + 24: uint16(38573), + 25: uint16(38574), + 26: uint16(38575), + 27: uint16(38577), + 28: uint16(38578), + 29: uint16(38580), + 30: uint16(38581), + 31: uint16(38583), + 32: uint16(38584), + 33: uint16(38586), + 34: uint16(38587), + 35: uint16(38591), + 36: uint16(38594), + 37: uint16(38595), + 38: uint16(38600), + 39: uint16(38602), + 40: uint16(38603), + 41: uint16(38608), + 42: uint16(38609), + 43: uint16(38611), + 44: uint16(38612), + 45: uint16(38614), + 46: uint16(38615), + 47: uint16(38616), + 48: uint16(38617), + 49: uint16(38618), + 50: uint16(38619), + 51: uint16(38620), + 52: uint16(38621), + 53: uint16(38622), + 54: uint16(38623), + 55: uint16(38625), + 56: uint16(38626), + 57: uint16(38627), + 58: uint16(38628), + 59: uint16(38629), + 60: uint16(38630), + 61: uint16(38631), + 62: uint16(38635), + 63: uint16(38636), + 64: uint16(38637), + 65: uint16(38638), + 66: uint16(38640), + 67: uint16(38641), + 68: uint16(38642), + 69: uint16(38644), + 70: uint16(38645), + 71: uint16(38648), + 72: uint16(38650), + 73: uint16(38651), + 74: uint16(38652), + 75: uint16(38653), + 76: uint16(38655), + 77: uint16(38658), + 78: uint16(38659), + 79: uint16(38661), + 80: uint16(38666), + 81: uint16(38667), + 82: uint16(38668), + 83: uint16(38672), + 84: uint16(38673), + 85: uint16(38674), + 86: uint16(38676), + 87: uint16(38677), + 88: uint16(38679), + 89: uint16(38680), + 90: uint16(38681), + 91: uint16(38682), + 92: uint16(38683), + 93: uint16(38685), + 94: uint16(38687), + 95: uint16(38688), + 96: uint16(25663), + 97: uint16(25816), + 98: uint16(32772), + 99: uint16(27626), + 100: uint16(27635), + 101: uint16(27645), + 102: uint16(27637), + 103: uint16(27641), + 104: uint16(27653), + 105: uint16(27655), + 106: uint16(27654), + 107: uint16(27661), + 108: uint16(27669), + 109: uint16(27672), + 110: uint16(27673), + 111: uint16(27674), + 112: uint16(27681), + 113: uint16(27689), + 114: uint16(27684), + 115: uint16(27690), + 116: uint16(27698), + 117: uint16(25909), + 118: uint16(25941), + 119: uint16(25963), + 120: uint16(29261), + 121: uint16(29266), + 122: uint16(29270), + 123: uint16(29232), + 124: uint16(34402), + 125: uint16(21014), + 126: uint16(32927), + 127: uint16(32924), + 128: uint16(32915), + 129: uint16(32956), + 130: uint16(26378), + 131: uint16(32957), + 132: uint16(32945), + 133: uint16(32939), + 134: uint16(32941), + 135: uint16(32948), + 136: uint16(32951), + 137: uint16(32999), + 138: uint16(33000), + 139: uint16(33001), + 140: uint16(33002), + 141: uint16(32987), + 142: uint16(32962), + 143: uint16(32964), + 144: uint16(32985), + 145: uint16(32973), + 146: uint16(32983), + 147: uint16(26384), + 148: uint16(32989), + 149: uint16(33003), + 150: uint16(33009), + 151: uint16(33012), + 152: uint16(33005), + 153: uint16(33037), + 154: uint16(33038), + 155: uint16(33010), + 156: uint16(33020), + 157: uint16(26389), + 158: uint16(33042), + 159: uint16(35930), + 160: uint16(33078), + 161: uint16(33054), + 162: uint16(33068), + 163: uint16(33048), + 164: uint16(33074), + 165: uint16(33096), + 166: uint16(33100), + 167: uint16(33107), + 168: uint16(33140), + 169: uint16(33113), + 170: uint16(33114), + 171: uint16(33137), + 172: uint16(33120), + 173: uint16(33129), + 174: uint16(33148), + 175: uint16(33149), + 176: uint16(33133), + 177: uint16(33127), + 178: uint16(22605), + 179: uint16(23221), + 180: uint16(33160), + 181: uint16(33154), + 182: uint16(33169), + 183: uint16(28373), + 184: uint16(33187), + 185: uint16(33194), + 186: uint16(33228), + 187: uint16(26406), + 188: uint16(33226), + 189: uint16(33211), + }, + 107: { + 0: uint16(38689), + 1: uint16(38690), + 2: uint16(38691), + 3: uint16(38692), + 4: uint16(38693), + 5: uint16(38694), + 6: uint16(38695), + 7: uint16(38696), + 8: uint16(38697), + 9: uint16(38699), + 10: uint16(38700), + 11: uint16(38702), + 12: uint16(38703), + 13: uint16(38705), + 14: uint16(38707), + 15: uint16(38708), + 16: uint16(38709), + 17: uint16(38710), + 18: uint16(38711), + 19: uint16(38714), + 20: uint16(38715), + 21: uint16(38716), + 22: uint16(38717), + 23: uint16(38719), + 24: uint16(38720), + 25: uint16(38721), + 26: uint16(38722), + 27: uint16(38723), + 28: uint16(38724), + 29: uint16(38725), + 30: uint16(38726), + 31: uint16(38727), + 32: uint16(38728), + 33: uint16(38729), + 34: uint16(38730), + 35: uint16(38731), + 36: uint16(38732), + 37: uint16(38733), + 38: uint16(38734), + 39: uint16(38735), + 40: uint16(38736), + 41: uint16(38737), + 42: uint16(38740), + 43: uint16(38741), + 44: uint16(38743), + 45: uint16(38744), + 46: uint16(38746), + 47: uint16(38748), + 48: uint16(38749), + 49: uint16(38751), + 50: uint16(38755), + 51: uint16(38756), + 52: uint16(38758), + 53: uint16(38759), + 54: uint16(38760), + 55: uint16(38762), + 56: uint16(38763), + 57: uint16(38764), + 58: uint16(38765), + 59: uint16(38766), + 60: uint16(38767), + 61: uint16(38768), + 62: uint16(38769), + 63: uint16(38770), + 64: uint16(38773), + 65: uint16(38775), + 66: uint16(38776), + 67: uint16(38777), + 68: uint16(38778), + 69: uint16(38779), + 70: uint16(38781), + 71: uint16(38782), + 72: uint16(38783), + 73: uint16(38784), + 74: uint16(38785), + 75: uint16(38786), + 76: uint16(38787), + 77: uint16(38788), + 78: uint16(38790), + 79: uint16(38791), + 80: uint16(38792), + 81: uint16(38793), + 82: uint16(38794), + 83: uint16(38796), + 84: uint16(38798), + 85: uint16(38799), + 86: uint16(38800), + 87: uint16(38803), + 88: uint16(38805), + 89: uint16(38806), + 90: uint16(38807), + 91: uint16(38809), + 92: uint16(38810), + 93: uint16(38811), + 94: uint16(38812), + 95: uint16(38813), + 96: uint16(33217), + 97: uint16(33190), + 98: uint16(27428), + 99: uint16(27447), + 100: uint16(27449), + 101: uint16(27459), + 102: uint16(27462), + 103: uint16(27481), + 104: uint16(39121), + 105: uint16(39122), + 106: uint16(39123), + 107: uint16(39125), + 108: uint16(39129), + 109: uint16(39130), + 110: uint16(27571), + 111: uint16(24384), + 112: uint16(27586), + 113: uint16(35315), + 114: uint16(26000), + 115: uint16(40785), + 116: uint16(26003), + 117: uint16(26044), + 118: uint16(26054), + 119: uint16(26052), + 120: uint16(26051), + 121: uint16(26060), + 122: uint16(26062), + 123: uint16(26066), + 124: uint16(26070), + 125: uint16(28800), + 126: uint16(28828), + 127: uint16(28822), + 128: uint16(28829), + 129: uint16(28859), + 130: uint16(28864), + 131: uint16(28855), + 132: uint16(28843), + 133: uint16(28849), + 134: uint16(28904), + 135: uint16(28874), + 136: uint16(28944), + 137: uint16(28947), + 138: uint16(28950), + 139: uint16(28975), + 140: uint16(28977), + 141: uint16(29043), + 142: uint16(29020), + 143: uint16(29032), + 144: uint16(28997), + 145: uint16(29042), + 146: uint16(29002), + 147: uint16(29048), + 148: uint16(29050), + 149: uint16(29080), + 150: uint16(29107), + 151: uint16(29109), + 152: uint16(29096), + 153: uint16(29088), + 154: uint16(29152), + 155: uint16(29140), + 156: uint16(29159), + 157: uint16(29177), + 158: uint16(29213), + 159: uint16(29224), + 160: uint16(28780), + 161: uint16(28952), + 162: uint16(29030), + 163: uint16(29113), + 164: uint16(25150), + 165: uint16(25149), + 166: uint16(25155), + 167: uint16(25160), + 168: uint16(25161), + 169: uint16(31035), + 170: uint16(31040), + 171: uint16(31046), + 172: uint16(31049), + 173: uint16(31067), + 174: uint16(31068), + 175: uint16(31059), + 176: uint16(31066), + 177: uint16(31074), + 178: uint16(31063), + 179: uint16(31072), + 180: uint16(31087), + 181: uint16(31079), + 182: uint16(31098), + 183: uint16(31109), + 184: uint16(31114), + 185: uint16(31130), + 186: uint16(31143), + 187: uint16(31155), + 188: uint16(24529), + 189: uint16(24528), + }, + 108: { + 0: uint16(38814), + 1: uint16(38815), + 2: uint16(38817), + 3: uint16(38818), + 4: uint16(38820), + 5: uint16(38821), + 6: uint16(38822), + 7: uint16(38823), + 8: uint16(38824), + 9: uint16(38825), + 10: uint16(38826), + 11: uint16(38828), + 12: uint16(38830), + 13: uint16(38832), + 14: uint16(38833), + 15: uint16(38835), + 16: uint16(38837), + 17: uint16(38838), + 18: uint16(38839), + 19: uint16(38840), + 20: uint16(38841), + 21: uint16(38842), + 22: uint16(38843), + 23: uint16(38844), + 24: uint16(38845), + 25: uint16(38846), + 26: uint16(38847), + 27: uint16(38848), + 28: uint16(38849), + 29: uint16(38850), + 30: uint16(38851), + 31: uint16(38852), + 32: uint16(38853), + 33: uint16(38854), + 34: uint16(38855), + 35: uint16(38856), + 36: uint16(38857), + 37: uint16(38858), + 38: uint16(38859), + 39: uint16(38860), + 40: uint16(38861), + 41: uint16(38862), + 42: uint16(38863), + 43: uint16(38864), + 44: uint16(38865), + 45: uint16(38866), + 46: uint16(38867), + 47: uint16(38868), + 48: uint16(38869), + 49: uint16(38870), + 50: uint16(38871), + 51: uint16(38872), + 52: uint16(38873), + 53: uint16(38874), + 54: uint16(38875), + 55: uint16(38876), + 56: uint16(38877), + 57: uint16(38878), + 58: uint16(38879), + 59: uint16(38880), + 60: uint16(38881), + 61: uint16(38882), + 62: uint16(38883), + 63: uint16(38884), + 64: uint16(38885), + 65: uint16(38888), + 66: uint16(38894), + 67: uint16(38895), + 68: uint16(38896), + 69: uint16(38897), + 70: uint16(38898), + 71: uint16(38900), + 72: uint16(38903), + 73: uint16(38904), + 74: uint16(38905), + 75: uint16(38906), + 76: uint16(38907), + 77: uint16(38908), + 78: uint16(38909), + 79: uint16(38910), + 80: uint16(38911), + 81: uint16(38912), + 82: uint16(38913), + 83: uint16(38914), + 84: uint16(38915), + 85: uint16(38916), + 86: uint16(38917), + 87: uint16(38918), + 88: uint16(38919), + 89: uint16(38920), + 90: uint16(38921), + 91: uint16(38922), + 92: uint16(38923), + 93: uint16(38924), + 94: uint16(38925), + 95: uint16(38926), + 96: uint16(24636), + 97: uint16(24669), + 98: uint16(24666), + 99: uint16(24679), + 100: uint16(24641), + 101: uint16(24665), + 102: uint16(24675), + 103: uint16(24747), + 104: uint16(24838), + 105: uint16(24845), + 106: uint16(24925), + 107: uint16(25001), + 108: uint16(24989), + 109: uint16(25035), + 110: uint16(25041), + 111: uint16(25094), + 112: uint16(32896), + 113: uint16(32895), + 114: uint16(27795), + 115: uint16(27894), + 116: uint16(28156), + 117: uint16(30710), + 118: uint16(30712), + 119: uint16(30720), + 120: uint16(30729), + 121: uint16(30743), + 122: uint16(30744), + 123: uint16(30737), + 124: uint16(26027), + 125: uint16(30765), + 126: uint16(30748), + 127: uint16(30749), + 128: uint16(30777), + 129: uint16(30778), + 130: uint16(30779), + 131: uint16(30751), + 132: uint16(30780), + 133: uint16(30757), + 134: uint16(30764), + 135: uint16(30755), + 136: uint16(30761), + 137: uint16(30798), + 138: uint16(30829), + 139: uint16(30806), + 140: uint16(30807), + 141: uint16(30758), + 142: uint16(30800), + 143: uint16(30791), + 144: uint16(30796), + 145: uint16(30826), + 146: uint16(30875), + 147: uint16(30867), + 148: uint16(30874), + 149: uint16(30855), + 150: uint16(30876), + 151: uint16(30881), + 152: uint16(30883), + 153: uint16(30898), + 154: uint16(30905), + 155: uint16(30885), + 156: uint16(30932), + 157: uint16(30937), + 158: uint16(30921), + 159: uint16(30956), + 160: uint16(30962), + 161: uint16(30981), + 162: uint16(30964), + 163: uint16(30995), + 164: uint16(31012), + 165: uint16(31006), + 166: uint16(31028), + 167: uint16(40859), + 168: uint16(40697), + 169: uint16(40699), + 170: uint16(40700), + 171: uint16(30449), + 172: uint16(30468), + 173: uint16(30477), + 174: uint16(30457), + 175: uint16(30471), + 176: uint16(30472), + 177: uint16(30490), + 178: uint16(30498), + 179: uint16(30489), + 180: uint16(30509), + 181: uint16(30502), + 182: uint16(30517), + 183: uint16(30520), + 184: uint16(30544), + 185: uint16(30545), + 186: uint16(30535), + 187: uint16(30531), + 188: uint16(30554), + 189: uint16(30568), + }, + 109: { + 0: uint16(38927), + 1: uint16(38928), + 2: uint16(38929), + 3: uint16(38930), + 4: uint16(38931), + 5: uint16(38932), + 6: uint16(38933), + 7: uint16(38934), + 8: uint16(38935), + 9: uint16(38936), + 10: uint16(38937), + 11: uint16(38938), + 12: uint16(38939), + 13: uint16(38940), + 14: uint16(38941), + 15: uint16(38942), + 16: uint16(38943), + 17: uint16(38944), + 18: uint16(38945), + 19: uint16(38946), + 20: uint16(38947), + 21: uint16(38948), + 22: uint16(38949), + 23: uint16(38950), + 24: uint16(38951), + 25: uint16(38952), + 26: uint16(38953), + 27: uint16(38954), + 28: uint16(38955), + 29: uint16(38956), + 30: uint16(38957), + 31: uint16(38958), + 32: uint16(38959), + 33: uint16(38960), + 34: uint16(38961), + 35: uint16(38962), + 36: uint16(38963), + 37: uint16(38964), + 38: uint16(38965), + 39: uint16(38966), + 40: uint16(38967), + 41: uint16(38968), + 42: uint16(38969), + 43: uint16(38970), + 44: uint16(38971), + 45: uint16(38972), + 46: uint16(38973), + 47: uint16(38974), + 48: uint16(38975), + 49: uint16(38976), + 50: uint16(38977), + 51: uint16(38978), + 52: uint16(38979), + 53: uint16(38980), + 54: uint16(38981), + 55: uint16(38982), + 56: uint16(38983), + 57: uint16(38984), + 58: uint16(38985), + 59: uint16(38986), + 60: uint16(38987), + 61: uint16(38988), + 62: uint16(38989), + 63: uint16(38990), + 64: uint16(38991), + 65: uint16(38992), + 66: uint16(38993), + 67: uint16(38994), + 68: uint16(38995), + 69: uint16(38996), + 70: uint16(38997), + 71: uint16(38998), + 72: uint16(38999), + 73: uint16(39000), + 74: uint16(39001), + 75: uint16(39002), + 76: uint16(39003), + 77: uint16(39004), + 78: uint16(39005), + 79: uint16(39006), + 80: uint16(39007), + 81: uint16(39008), + 82: uint16(39009), + 83: uint16(39010), + 84: uint16(39011), + 85: uint16(39012), + 86: uint16(39013), + 87: uint16(39014), + 88: uint16(39015), + 89: uint16(39016), + 90: uint16(39017), + 91: uint16(39018), + 92: uint16(39019), + 93: uint16(39020), + 94: uint16(39021), + 95: uint16(39022), + 96: uint16(30562), + 97: uint16(30565), + 98: uint16(30591), + 99: uint16(30605), + 100: uint16(30589), + 101: uint16(30592), + 102: uint16(30604), + 103: uint16(30609), + 104: uint16(30623), + 105: uint16(30624), + 106: uint16(30640), + 107: uint16(30645), + 108: uint16(30653), + 109: uint16(30010), + 110: uint16(30016), + 111: uint16(30030), + 112: uint16(30027), + 113: uint16(30024), + 114: uint16(30043), + 115: uint16(30066), + 116: uint16(30073), + 117: uint16(30083), + 118: uint16(32600), + 119: uint16(32609), + 120: uint16(32607), + 121: uint16(35400), + 122: uint16(32616), + 123: uint16(32628), + 124: uint16(32625), + 125: uint16(32633), + 126: uint16(32641), + 127: uint16(32638), + 128: uint16(30413), + 129: uint16(30437), + 130: uint16(34866), + 131: uint16(38021), + 132: uint16(38022), + 133: uint16(38023), + 134: uint16(38027), + 135: uint16(38026), + 136: uint16(38028), + 137: uint16(38029), + 138: uint16(38031), + 139: uint16(38032), + 140: uint16(38036), + 141: uint16(38039), + 142: uint16(38037), + 143: uint16(38042), + 144: uint16(38043), + 145: uint16(38044), + 146: uint16(38051), + 147: uint16(38052), + 148: uint16(38059), + 149: uint16(38058), + 150: uint16(38061), + 151: uint16(38060), + 152: uint16(38063), + 153: uint16(38064), + 154: uint16(38066), + 155: uint16(38068), + 156: uint16(38070), + 157: uint16(38071), + 158: uint16(38072), + 159: uint16(38073), + 160: uint16(38074), + 161: uint16(38076), + 162: uint16(38077), + 163: uint16(38079), + 164: uint16(38084), + 165: uint16(38088), + 166: uint16(38089), + 167: uint16(38090), + 168: uint16(38091), + 169: uint16(38092), + 170: uint16(38093), + 171: uint16(38094), + 172: uint16(38096), + 173: uint16(38097), + 174: uint16(38098), + 175: uint16(38101), + 176: uint16(38102), + 177: uint16(38103), + 178: uint16(38105), + 179: uint16(38104), + 180: uint16(38107), + 181: uint16(38110), + 182: uint16(38111), + 183: uint16(38112), + 184: uint16(38114), + 185: uint16(38116), + 186: uint16(38117), + 187: uint16(38119), + 188: uint16(38120), + 189: uint16(38122), + }, + 110: { + 0: uint16(39023), + 1: uint16(39024), + 2: uint16(39025), + 3: uint16(39026), + 4: uint16(39027), + 5: uint16(39028), + 6: uint16(39051), + 7: uint16(39054), + 8: uint16(39058), + 9: uint16(39061), + 10: uint16(39065), + 11: uint16(39075), + 12: uint16(39080), + 13: uint16(39081), + 14: uint16(39082), + 15: uint16(39083), + 16: uint16(39084), + 17: uint16(39085), + 18: uint16(39086), + 19: uint16(39087), + 20: uint16(39088), + 21: uint16(39089), + 22: uint16(39090), + 23: uint16(39091), + 24: uint16(39092), + 25: uint16(39093), + 26: uint16(39094), + 27: uint16(39095), + 28: uint16(39096), + 29: uint16(39097), + 30: uint16(39098), + 31: uint16(39099), + 32: uint16(39100), + 33: uint16(39101), + 34: uint16(39102), + 35: uint16(39103), + 36: uint16(39104), + 37: uint16(39105), + 38: uint16(39106), + 39: uint16(39107), + 40: uint16(39108), + 41: uint16(39109), + 42: uint16(39110), + 43: uint16(39111), + 44: uint16(39112), + 45: uint16(39113), + 46: uint16(39114), + 47: uint16(39115), + 48: uint16(39116), + 49: uint16(39117), + 50: uint16(39119), + 51: uint16(39120), + 52: uint16(39124), + 53: uint16(39126), + 54: uint16(39127), + 55: uint16(39131), + 56: uint16(39132), + 57: uint16(39133), + 58: uint16(39136), + 59: uint16(39137), + 60: uint16(39138), + 61: uint16(39139), + 62: uint16(39140), + 63: uint16(39141), + 64: uint16(39142), + 65: uint16(39145), + 66: uint16(39146), + 67: uint16(39147), + 68: uint16(39148), + 69: uint16(39149), + 70: uint16(39150), + 71: uint16(39151), + 72: uint16(39152), + 73: uint16(39153), + 74: uint16(39154), + 75: uint16(39155), + 76: uint16(39156), + 77: uint16(39157), + 78: uint16(39158), + 79: uint16(39159), + 80: uint16(39160), + 81: uint16(39161), + 82: uint16(39162), + 83: uint16(39163), + 84: uint16(39164), + 85: uint16(39165), + 86: uint16(39166), + 87: uint16(39167), + 88: uint16(39168), + 89: uint16(39169), + 90: uint16(39170), + 91: uint16(39171), + 92: uint16(39172), + 93: uint16(39173), + 94: uint16(39174), + 95: uint16(39175), + 96: uint16(38121), + 97: uint16(38123), + 98: uint16(38126), + 99: uint16(38127), + 100: uint16(38131), + 101: uint16(38132), + 102: uint16(38133), + 103: uint16(38135), + 104: uint16(38137), + 105: uint16(38140), + 106: uint16(38141), + 107: uint16(38143), + 108: uint16(38147), + 109: uint16(38146), + 110: uint16(38150), + 111: uint16(38151), + 112: uint16(38153), + 113: uint16(38154), + 114: uint16(38157), + 115: uint16(38158), + 116: uint16(38159), + 117: uint16(38162), + 118: uint16(38163), + 119: uint16(38164), + 120: uint16(38165), + 121: uint16(38166), + 122: uint16(38168), + 123: uint16(38171), + 124: uint16(38173), + 125: uint16(38174), + 126: uint16(38175), + 127: uint16(38178), + 128: uint16(38186), + 129: uint16(38187), + 130: uint16(38185), + 131: uint16(38188), + 132: uint16(38193), + 133: uint16(38194), + 134: uint16(38196), + 135: uint16(38198), + 136: uint16(38199), + 137: uint16(38200), + 138: uint16(38204), + 139: uint16(38206), + 140: uint16(38207), + 141: uint16(38210), + 142: uint16(38197), + 143: uint16(38212), + 144: uint16(38213), + 145: uint16(38214), + 146: uint16(38217), + 147: uint16(38220), + 148: uint16(38222), + 149: uint16(38223), + 150: uint16(38226), + 151: uint16(38227), + 152: uint16(38228), + 153: uint16(38230), + 154: uint16(38231), + 155: uint16(38232), + 156: uint16(38233), + 157: uint16(38235), + 158: uint16(38238), + 159: uint16(38239), + 160: uint16(38237), + 161: uint16(38241), + 162: uint16(38242), + 163: uint16(38244), + 164: uint16(38245), + 165: uint16(38246), + 166: uint16(38247), + 167: uint16(38248), + 168: uint16(38249), + 169: uint16(38250), + 170: uint16(38251), + 171: uint16(38252), + 172: uint16(38255), + 173: uint16(38257), + 174: uint16(38258), + 175: uint16(38259), + 176: uint16(38202), + 177: uint16(30695), + 178: uint16(30700), + 179: uint16(38601), + 180: uint16(31189), + 181: uint16(31213), + 182: uint16(31203), + 183: uint16(31211), + 184: uint16(31238), + 185: uint16(23879), + 186: uint16(31235), + 187: uint16(31234), + 188: uint16(31262), + 189: uint16(31252), + }, + 111: { + 0: uint16(39176), + 1: uint16(39177), + 2: uint16(39178), + 3: uint16(39179), + 4: uint16(39180), + 5: uint16(39182), + 6: uint16(39183), + 7: uint16(39185), + 8: uint16(39186), + 9: uint16(39187), + 10: uint16(39188), + 11: uint16(39189), + 12: uint16(39190), + 13: uint16(39191), + 14: uint16(39192), + 15: uint16(39193), + 16: uint16(39194), + 17: uint16(39195), + 18: uint16(39196), + 19: uint16(39197), + 20: uint16(39198), + 21: uint16(39199), + 22: uint16(39200), + 23: uint16(39201), + 24: uint16(39202), + 25: uint16(39203), + 26: uint16(39204), + 27: uint16(39205), + 28: uint16(39206), + 29: uint16(39207), + 30: uint16(39208), + 31: uint16(39209), + 32: uint16(39210), + 33: uint16(39211), + 34: uint16(39212), + 35: uint16(39213), + 36: uint16(39215), + 37: uint16(39216), + 38: uint16(39217), + 39: uint16(39218), + 40: uint16(39219), + 41: uint16(39220), + 42: uint16(39221), + 43: uint16(39222), + 44: uint16(39223), + 45: uint16(39224), + 46: uint16(39225), + 47: uint16(39226), + 48: uint16(39227), + 49: uint16(39228), + 50: uint16(39229), + 51: uint16(39230), + 52: uint16(39231), + 53: uint16(39232), + 54: uint16(39233), + 55: uint16(39234), + 56: uint16(39235), + 57: uint16(39236), + 58: uint16(39237), + 59: uint16(39238), + 60: uint16(39239), + 61: uint16(39240), + 62: uint16(39241), + 63: uint16(39242), + 64: uint16(39243), + 65: uint16(39244), + 66: uint16(39245), + 67: uint16(39246), + 68: uint16(39247), + 69: uint16(39248), + 70: uint16(39249), + 71: uint16(39250), + 72: uint16(39251), + 73: uint16(39254), + 74: uint16(39255), + 75: uint16(39256), + 76: uint16(39257), + 77: uint16(39258), + 78: uint16(39259), + 79: uint16(39260), + 80: uint16(39261), + 81: uint16(39262), + 82: uint16(39263), + 83: uint16(39264), + 84: uint16(39265), + 85: uint16(39266), + 86: uint16(39268), + 87: uint16(39270), + 88: uint16(39283), + 89: uint16(39288), + 90: uint16(39289), + 91: uint16(39291), + 92: uint16(39294), + 93: uint16(39298), + 94: uint16(39299), + 95: uint16(39305), + 96: uint16(31289), + 97: uint16(31287), + 98: uint16(31313), + 99: uint16(40655), + 100: uint16(39333), + 101: uint16(31344), + 102: uint16(30344), + 103: uint16(30350), + 104: uint16(30355), + 105: uint16(30361), + 106: uint16(30372), + 107: uint16(29918), + 108: uint16(29920), + 109: uint16(29996), + 110: uint16(40480), + 111: uint16(40482), + 112: uint16(40488), + 113: uint16(40489), + 114: uint16(40490), + 115: uint16(40491), + 116: uint16(40492), + 117: uint16(40498), + 118: uint16(40497), + 119: uint16(40502), + 120: uint16(40504), + 121: uint16(40503), + 122: uint16(40505), + 123: uint16(40506), + 124: uint16(40510), + 125: uint16(40513), + 126: uint16(40514), + 127: uint16(40516), + 128: uint16(40518), + 129: uint16(40519), + 130: uint16(40520), + 131: uint16(40521), + 132: uint16(40523), + 133: uint16(40524), + 134: uint16(40526), + 135: uint16(40529), + 136: uint16(40533), + 137: uint16(40535), + 138: uint16(40538), + 139: uint16(40539), + 140: uint16(40540), + 141: uint16(40542), + 142: uint16(40547), + 143: uint16(40550), + 144: uint16(40551), + 145: uint16(40552), + 146: uint16(40553), + 147: uint16(40554), + 148: uint16(40555), + 149: uint16(40556), + 150: uint16(40561), + 151: uint16(40557), + 152: uint16(40563), + 153: uint16(30098), + 154: uint16(30100), + 155: uint16(30102), + 156: uint16(30112), + 157: uint16(30109), + 158: uint16(30124), + 159: uint16(30115), + 160: uint16(30131), + 161: uint16(30132), + 162: uint16(30136), + 163: uint16(30148), + 164: uint16(30129), + 165: uint16(30128), + 166: uint16(30147), + 167: uint16(30146), + 168: uint16(30166), + 169: uint16(30157), + 170: uint16(30179), + 171: uint16(30184), + 172: uint16(30182), + 173: uint16(30180), + 174: uint16(30187), + 175: uint16(30183), + 176: uint16(30211), + 177: uint16(30193), + 178: uint16(30204), + 179: uint16(30207), + 180: uint16(30224), + 181: uint16(30208), + 182: uint16(30213), + 183: uint16(30220), + 184: uint16(30231), + 185: uint16(30218), + 186: uint16(30245), + 187: uint16(30232), + 188: uint16(30229), + 189: uint16(30233), + }, + 112: { + 0: uint16(39308), + 1: uint16(39310), + 2: uint16(39322), + 3: uint16(39323), + 4: uint16(39324), + 5: uint16(39325), + 6: uint16(39326), + 7: uint16(39327), + 8: uint16(39328), + 9: uint16(39329), + 10: uint16(39330), + 11: uint16(39331), + 12: uint16(39332), + 13: uint16(39334), + 14: uint16(39335), + 15: uint16(39337), + 16: uint16(39338), + 17: uint16(39339), + 18: uint16(39340), + 19: uint16(39341), + 20: uint16(39342), + 21: uint16(39343), + 22: uint16(39344), + 23: uint16(39345), + 24: uint16(39346), + 25: uint16(39347), + 26: uint16(39348), + 27: uint16(39349), + 28: uint16(39350), + 29: uint16(39351), + 30: uint16(39352), + 31: uint16(39353), + 32: uint16(39354), + 33: uint16(39355), + 34: uint16(39356), + 35: uint16(39357), + 36: uint16(39358), + 37: uint16(39359), + 38: uint16(39360), + 39: uint16(39361), + 40: uint16(39362), + 41: uint16(39363), + 42: uint16(39364), + 43: uint16(39365), + 44: uint16(39366), + 45: uint16(39367), + 46: uint16(39368), + 47: uint16(39369), + 48: uint16(39370), + 49: uint16(39371), + 50: uint16(39372), + 51: uint16(39373), + 52: uint16(39374), + 53: uint16(39375), + 54: uint16(39376), + 55: uint16(39377), + 56: uint16(39378), + 57: uint16(39379), + 58: uint16(39380), + 59: uint16(39381), + 60: uint16(39382), + 61: uint16(39383), + 62: uint16(39384), + 63: uint16(39385), + 64: uint16(39386), + 65: uint16(39387), + 66: uint16(39388), + 67: uint16(39389), + 68: uint16(39390), + 69: uint16(39391), + 70: uint16(39392), + 71: uint16(39393), + 72: uint16(39394), + 73: uint16(39395), + 74: uint16(39396), + 75: uint16(39397), + 76: uint16(39398), + 77: uint16(39399), + 78: uint16(39400), + 79: uint16(39401), + 80: uint16(39402), + 81: uint16(39403), + 82: uint16(39404), + 83: uint16(39405), + 84: uint16(39406), + 85: uint16(39407), + 86: uint16(39408), + 87: uint16(39409), + 88: uint16(39410), + 89: uint16(39411), + 90: uint16(39412), + 91: uint16(39413), + 92: uint16(39414), + 93: uint16(39415), + 94: uint16(39416), + 95: uint16(39417), + 96: uint16(30235), + 97: uint16(30268), + 98: uint16(30242), + 99: uint16(30240), + 100: uint16(30272), + 101: uint16(30253), + 102: uint16(30256), + 103: uint16(30271), + 104: uint16(30261), + 105: uint16(30275), + 106: uint16(30270), + 107: uint16(30259), + 108: uint16(30285), + 109: uint16(30302), + 110: uint16(30292), + 111: uint16(30300), + 112: uint16(30294), + 113: uint16(30315), + 114: uint16(30319), + 115: uint16(32714), + 116: uint16(31462), + 117: uint16(31352), + 118: uint16(31353), + 119: uint16(31360), + 120: uint16(31366), + 121: uint16(31368), + 122: uint16(31381), + 123: uint16(31398), + 124: uint16(31392), + 125: uint16(31404), + 126: uint16(31400), + 127: uint16(31405), + 128: uint16(31411), + 129: uint16(34916), + 130: uint16(34921), + 131: uint16(34930), + 132: uint16(34941), + 133: uint16(34943), + 134: uint16(34946), + 135: uint16(34978), + 136: uint16(35014), + 137: uint16(34999), + 138: uint16(35004), + 139: uint16(35017), + 140: uint16(35042), + 141: uint16(35022), + 142: uint16(35043), + 143: uint16(35045), + 144: uint16(35057), + 145: uint16(35098), + 146: uint16(35068), + 147: uint16(35048), + 148: uint16(35070), + 149: uint16(35056), + 150: uint16(35105), + 151: uint16(35097), + 152: uint16(35091), + 153: uint16(35099), + 154: uint16(35082), + 155: uint16(35124), + 156: uint16(35115), + 157: uint16(35126), + 158: uint16(35137), + 159: uint16(35174), + 160: uint16(35195), + 161: uint16(30091), + 162: uint16(32997), + 163: uint16(30386), + 164: uint16(30388), + 165: uint16(30684), + 166: uint16(32786), + 167: uint16(32788), + 168: uint16(32790), + 169: uint16(32796), + 170: uint16(32800), + 171: uint16(32802), + 172: uint16(32805), + 173: uint16(32806), + 174: uint16(32807), + 175: uint16(32809), + 176: uint16(32808), + 177: uint16(32817), + 178: uint16(32779), + 179: uint16(32821), + 180: uint16(32835), + 181: uint16(32838), + 182: uint16(32845), + 183: uint16(32850), + 184: uint16(32873), + 185: uint16(32881), + 186: uint16(35203), + 187: uint16(39032), + 188: uint16(39040), + 189: uint16(39043), + }, + 113: { + 0: uint16(39418), + 1: uint16(39419), + 2: uint16(39420), + 3: uint16(39421), + 4: uint16(39422), + 5: uint16(39423), + 6: uint16(39424), + 7: uint16(39425), + 8: uint16(39426), + 9: uint16(39427), + 10: uint16(39428), + 11: uint16(39429), + 12: uint16(39430), + 13: uint16(39431), + 14: uint16(39432), + 15: uint16(39433), + 16: uint16(39434), + 17: uint16(39435), + 18: uint16(39436), + 19: uint16(39437), + 20: uint16(39438), + 21: uint16(39439), + 22: uint16(39440), + 23: uint16(39441), + 24: uint16(39442), + 25: uint16(39443), + 26: uint16(39444), + 27: uint16(39445), + 28: uint16(39446), + 29: uint16(39447), + 30: uint16(39448), + 31: uint16(39449), + 32: uint16(39450), + 33: uint16(39451), + 34: uint16(39452), + 35: uint16(39453), + 36: uint16(39454), + 37: uint16(39455), + 38: uint16(39456), + 39: uint16(39457), + 40: uint16(39458), + 41: uint16(39459), + 42: uint16(39460), + 43: uint16(39461), + 44: uint16(39462), + 45: uint16(39463), + 46: uint16(39464), + 47: uint16(39465), + 48: uint16(39466), + 49: uint16(39467), + 50: uint16(39468), + 51: uint16(39469), + 52: uint16(39470), + 53: uint16(39471), + 54: uint16(39472), + 55: uint16(39473), + 56: uint16(39474), + 57: uint16(39475), + 58: uint16(39476), + 59: uint16(39477), + 60: uint16(39478), + 61: uint16(39479), + 62: uint16(39480), + 63: uint16(39481), + 64: uint16(39482), + 65: uint16(39483), + 66: uint16(39484), + 67: uint16(39485), + 68: uint16(39486), + 69: uint16(39487), + 70: uint16(39488), + 71: uint16(39489), + 72: uint16(39490), + 73: uint16(39491), + 74: uint16(39492), + 75: uint16(39493), + 76: uint16(39494), + 77: uint16(39495), + 78: uint16(39496), + 79: uint16(39497), + 80: uint16(39498), + 81: uint16(39499), + 82: uint16(39500), + 83: uint16(39501), + 84: uint16(39502), + 85: uint16(39503), + 86: uint16(39504), + 87: uint16(39505), + 88: uint16(39506), + 89: uint16(39507), + 90: uint16(39508), + 91: uint16(39509), + 92: uint16(39510), + 93: uint16(39511), + 94: uint16(39512), + 95: uint16(39513), + 96: uint16(39049), + 97: uint16(39052), + 98: uint16(39053), + 99: uint16(39055), + 100: uint16(39060), + 101: uint16(39066), + 102: uint16(39067), + 103: uint16(39070), + 104: uint16(39071), + 105: uint16(39073), + 106: uint16(39074), + 107: uint16(39077), + 108: uint16(39078), + 109: uint16(34381), + 110: uint16(34388), + 111: uint16(34412), + 112: uint16(34414), + 113: uint16(34431), + 114: uint16(34426), + 115: uint16(34428), + 116: uint16(34427), + 117: uint16(34472), + 118: uint16(34445), + 119: uint16(34443), + 120: uint16(34476), + 121: uint16(34461), + 122: uint16(34471), + 123: uint16(34467), + 124: uint16(34474), + 125: uint16(34451), + 126: uint16(34473), + 127: uint16(34486), + 128: uint16(34500), + 129: uint16(34485), + 130: uint16(34510), + 131: uint16(34480), + 132: uint16(34490), + 133: uint16(34481), + 134: uint16(34479), + 135: uint16(34505), + 136: uint16(34511), + 137: uint16(34484), + 138: uint16(34537), + 139: uint16(34545), + 140: uint16(34546), + 141: uint16(34541), + 142: uint16(34547), + 143: uint16(34512), + 144: uint16(34579), + 145: uint16(34526), + 146: uint16(34548), + 147: uint16(34527), + 148: uint16(34520), + 149: uint16(34513), + 150: uint16(34563), + 151: uint16(34567), + 152: uint16(34552), + 153: uint16(34568), + 154: uint16(34570), + 155: uint16(34573), + 156: uint16(34569), + 157: uint16(34595), + 158: uint16(34619), + 159: uint16(34590), + 160: uint16(34597), + 161: uint16(34606), + 162: uint16(34586), + 163: uint16(34622), + 164: uint16(34632), + 165: uint16(34612), + 166: uint16(34609), + 167: uint16(34601), + 168: uint16(34615), + 169: uint16(34623), + 170: uint16(34690), + 171: uint16(34594), + 172: uint16(34685), + 173: uint16(34686), + 174: uint16(34683), + 175: uint16(34656), + 176: uint16(34672), + 177: uint16(34636), + 178: uint16(34670), + 179: uint16(34699), + 180: uint16(34643), + 181: uint16(34659), + 182: uint16(34684), + 183: uint16(34660), + 184: uint16(34649), + 185: uint16(34661), + 186: uint16(34707), + 187: uint16(34735), + 188: uint16(34728), + 189: uint16(34770), + }, + 114: { + 0: uint16(39514), + 1: uint16(39515), + 2: uint16(39516), + 3: uint16(39517), + 4: uint16(39518), + 5: uint16(39519), + 6: uint16(39520), + 7: uint16(39521), + 8: uint16(39522), + 9: uint16(39523), + 10: uint16(39524), + 11: uint16(39525), + 12: uint16(39526), + 13: uint16(39527), + 14: uint16(39528), + 15: uint16(39529), + 16: uint16(39530), + 17: uint16(39531), + 18: uint16(39538), + 19: uint16(39555), + 20: uint16(39561), + 21: uint16(39565), + 22: uint16(39566), + 23: uint16(39572), + 24: uint16(39573), + 25: uint16(39577), + 26: uint16(39590), + 27: uint16(39593), + 28: uint16(39594), + 29: uint16(39595), + 30: uint16(39596), + 31: uint16(39597), + 32: uint16(39598), + 33: uint16(39599), + 34: uint16(39602), + 35: uint16(39603), + 36: uint16(39604), + 37: uint16(39605), + 38: uint16(39609), + 39: uint16(39611), + 40: uint16(39613), + 41: uint16(39614), + 42: uint16(39615), + 43: uint16(39619), + 44: uint16(39620), + 45: uint16(39622), + 46: uint16(39623), + 47: uint16(39624), + 48: uint16(39625), + 49: uint16(39626), + 50: uint16(39629), + 51: uint16(39630), + 52: uint16(39631), + 53: uint16(39632), + 54: uint16(39634), + 55: uint16(39636), + 56: uint16(39637), + 57: uint16(39638), + 58: uint16(39639), + 59: uint16(39641), + 60: uint16(39642), + 61: uint16(39643), + 62: uint16(39644), + 63: uint16(39645), + 64: uint16(39646), + 65: uint16(39648), + 66: uint16(39650), + 67: uint16(39651), + 68: uint16(39652), + 69: uint16(39653), + 70: uint16(39655), + 71: uint16(39656), + 72: uint16(39657), + 73: uint16(39658), + 74: uint16(39660), + 75: uint16(39662), + 76: uint16(39664), + 77: uint16(39665), + 78: uint16(39666), + 79: uint16(39667), + 80: uint16(39668), + 81: uint16(39669), + 82: uint16(39670), + 83: uint16(39671), + 84: uint16(39672), + 85: uint16(39674), + 86: uint16(39676), + 87: uint16(39677), + 88: uint16(39678), + 89: uint16(39679), + 90: uint16(39680), + 91: uint16(39681), + 92: uint16(39682), + 93: uint16(39684), + 94: uint16(39685), + 95: uint16(39686), + 96: uint16(34758), + 97: uint16(34696), + 98: uint16(34693), + 99: uint16(34733), + 100: uint16(34711), + 101: uint16(34691), + 102: uint16(34731), + 103: uint16(34789), + 104: uint16(34732), + 105: uint16(34741), + 106: uint16(34739), + 107: uint16(34763), + 108: uint16(34771), + 109: uint16(34749), + 110: uint16(34769), + 111: uint16(34752), + 112: uint16(34762), + 113: uint16(34779), + 114: uint16(34794), + 115: uint16(34784), + 116: uint16(34798), + 117: uint16(34838), + 118: uint16(34835), + 119: uint16(34814), + 120: uint16(34826), + 121: uint16(34843), + 122: uint16(34849), + 123: uint16(34873), + 124: uint16(34876), + 125: uint16(32566), + 126: uint16(32578), + 127: uint16(32580), + 128: uint16(32581), + 129: uint16(33296), + 130: uint16(31482), + 131: uint16(31485), + 132: uint16(31496), + 133: uint16(31491), + 134: uint16(31492), + 135: uint16(31509), + 136: uint16(31498), + 137: uint16(31531), + 138: uint16(31503), + 139: uint16(31559), + 140: uint16(31544), + 141: uint16(31530), + 142: uint16(31513), + 143: uint16(31534), + 144: uint16(31537), + 145: uint16(31520), + 146: uint16(31525), + 147: uint16(31524), + 148: uint16(31539), + 149: uint16(31550), + 150: uint16(31518), + 151: uint16(31576), + 152: uint16(31578), + 153: uint16(31557), + 154: uint16(31605), + 155: uint16(31564), + 156: uint16(31581), + 157: uint16(31584), + 158: uint16(31598), + 159: uint16(31611), + 160: uint16(31586), + 161: uint16(31602), + 162: uint16(31601), + 163: uint16(31632), + 164: uint16(31654), + 165: uint16(31655), + 166: uint16(31672), + 167: uint16(31660), + 168: uint16(31645), + 169: uint16(31656), + 170: uint16(31621), + 171: uint16(31658), + 172: uint16(31644), + 173: uint16(31650), + 174: uint16(31659), + 175: uint16(31668), + 176: uint16(31697), + 177: uint16(31681), + 178: uint16(31692), + 179: uint16(31709), + 180: uint16(31706), + 181: uint16(31717), + 182: uint16(31718), + 183: uint16(31722), + 184: uint16(31756), + 185: uint16(31742), + 186: uint16(31740), + 187: uint16(31759), + 188: uint16(31766), + 189: uint16(31755), + }, + 115: { + 0: uint16(39687), + 1: uint16(39689), + 2: uint16(39690), + 3: uint16(39691), + 4: uint16(39692), + 5: uint16(39693), + 6: uint16(39694), + 7: uint16(39696), + 8: uint16(39697), + 9: uint16(39698), + 10: uint16(39700), + 11: uint16(39701), + 12: uint16(39702), + 13: uint16(39703), + 14: uint16(39704), + 15: uint16(39705), + 16: uint16(39706), + 17: uint16(39707), + 18: uint16(39708), + 19: uint16(39709), + 20: uint16(39710), + 21: uint16(39712), + 22: uint16(39713), + 23: uint16(39714), + 24: uint16(39716), + 25: uint16(39717), + 26: uint16(39718), + 27: uint16(39719), + 28: uint16(39720), + 29: uint16(39721), + 30: uint16(39722), + 31: uint16(39723), + 32: uint16(39724), + 33: uint16(39725), + 34: uint16(39726), + 35: uint16(39728), + 36: uint16(39729), + 37: uint16(39731), + 38: uint16(39732), + 39: uint16(39733), + 40: uint16(39734), + 41: uint16(39735), + 42: uint16(39736), + 43: uint16(39737), + 44: uint16(39738), + 45: uint16(39741), + 46: uint16(39742), + 47: uint16(39743), + 48: uint16(39744), + 49: uint16(39750), + 50: uint16(39754), + 51: uint16(39755), + 52: uint16(39756), + 53: uint16(39758), + 54: uint16(39760), + 55: uint16(39762), + 56: uint16(39763), + 57: uint16(39765), + 58: uint16(39766), + 59: uint16(39767), + 60: uint16(39768), + 61: uint16(39769), + 62: uint16(39770), + 63: uint16(39771), + 64: uint16(39772), + 65: uint16(39773), + 66: uint16(39774), + 67: uint16(39775), + 68: uint16(39776), + 69: uint16(39777), + 70: uint16(39778), + 71: uint16(39779), + 72: uint16(39780), + 73: uint16(39781), + 74: uint16(39782), + 75: uint16(39783), + 76: uint16(39784), + 77: uint16(39785), + 78: uint16(39786), + 79: uint16(39787), + 80: uint16(39788), + 81: uint16(39789), + 82: uint16(39790), + 83: uint16(39791), + 84: uint16(39792), + 85: uint16(39793), + 86: uint16(39794), + 87: uint16(39795), + 88: uint16(39796), + 89: uint16(39797), + 90: uint16(39798), + 91: uint16(39799), + 92: uint16(39800), + 93: uint16(39801), + 94: uint16(39802), + 95: uint16(39803), + 96: uint16(31775), + 97: uint16(31786), + 98: uint16(31782), + 99: uint16(31800), + 100: uint16(31809), + 101: uint16(31808), + 102: uint16(33278), + 103: uint16(33281), + 104: uint16(33282), + 105: uint16(33284), + 106: uint16(33260), + 107: uint16(34884), + 108: uint16(33313), + 109: uint16(33314), + 110: uint16(33315), + 111: uint16(33325), + 112: uint16(33327), + 113: uint16(33320), + 114: uint16(33323), + 115: uint16(33336), + 116: uint16(33339), + 117: uint16(33331), + 118: uint16(33332), + 119: uint16(33342), + 120: uint16(33348), + 121: uint16(33353), + 122: uint16(33355), + 123: uint16(33359), + 124: uint16(33370), + 125: uint16(33375), + 126: uint16(33384), + 127: uint16(34942), + 128: uint16(34949), + 129: uint16(34952), + 130: uint16(35032), + 131: uint16(35039), + 132: uint16(35166), + 133: uint16(32669), + 134: uint16(32671), + 135: uint16(32679), + 136: uint16(32687), + 137: uint16(32688), + 138: uint16(32690), + 139: uint16(31868), + 140: uint16(25929), + 141: uint16(31889), + 142: uint16(31901), + 143: uint16(31900), + 144: uint16(31902), + 145: uint16(31906), + 146: uint16(31922), + 147: uint16(31932), + 148: uint16(31933), + 149: uint16(31937), + 150: uint16(31943), + 151: uint16(31948), + 152: uint16(31949), + 153: uint16(31944), + 154: uint16(31941), + 155: uint16(31959), + 156: uint16(31976), + 157: uint16(33390), + 158: uint16(26280), + 159: uint16(32703), + 160: uint16(32718), + 161: uint16(32725), + 162: uint16(32741), + 163: uint16(32737), + 164: uint16(32742), + 165: uint16(32745), + 166: uint16(32750), + 167: uint16(32755), + 168: uint16(31992), + 169: uint16(32119), + 170: uint16(32166), + 171: uint16(32174), + 172: uint16(32327), + 173: uint16(32411), + 174: uint16(40632), + 175: uint16(40628), + 176: uint16(36211), + 177: uint16(36228), + 178: uint16(36244), + 179: uint16(36241), + 180: uint16(36273), + 181: uint16(36199), + 182: uint16(36205), + 183: uint16(35911), + 184: uint16(35913), + 185: uint16(37194), + 186: uint16(37200), + 187: uint16(37198), + 188: uint16(37199), + 189: uint16(37220), + }, + 116: { + 0: uint16(39804), + 1: uint16(39805), + 2: uint16(39806), + 3: uint16(39807), + 4: uint16(39808), + 5: uint16(39809), + 6: uint16(39810), + 7: uint16(39811), + 8: uint16(39812), + 9: uint16(39813), + 10: uint16(39814), + 11: uint16(39815), + 12: uint16(39816), + 13: uint16(39817), + 14: uint16(39818), + 15: uint16(39819), + 16: uint16(39820), + 17: uint16(39821), + 18: uint16(39822), + 19: uint16(39823), + 20: uint16(39824), + 21: uint16(39825), + 22: uint16(39826), + 23: uint16(39827), + 24: uint16(39828), + 25: uint16(39829), + 26: uint16(39830), + 27: uint16(39831), + 28: uint16(39832), + 29: uint16(39833), + 30: uint16(39834), + 31: uint16(39835), + 32: uint16(39836), + 33: uint16(39837), + 34: uint16(39838), + 35: uint16(39839), + 36: uint16(39840), + 37: uint16(39841), + 38: uint16(39842), + 39: uint16(39843), + 40: uint16(39844), + 41: uint16(39845), + 42: uint16(39846), + 43: uint16(39847), + 44: uint16(39848), + 45: uint16(39849), + 46: uint16(39850), + 47: uint16(39851), + 48: uint16(39852), + 49: uint16(39853), + 50: uint16(39854), + 51: uint16(39855), + 52: uint16(39856), + 53: uint16(39857), + 54: uint16(39858), + 55: uint16(39859), + 56: uint16(39860), + 57: uint16(39861), + 58: uint16(39862), + 59: uint16(39863), + 60: uint16(39864), + 61: uint16(39865), + 62: uint16(39866), + 63: uint16(39867), + 64: uint16(39868), + 65: uint16(39869), + 66: uint16(39870), + 67: uint16(39871), + 68: uint16(39872), + 69: uint16(39873), + 70: uint16(39874), + 71: uint16(39875), + 72: uint16(39876), + 73: uint16(39877), + 74: uint16(39878), + 75: uint16(39879), + 76: uint16(39880), + 77: uint16(39881), + 78: uint16(39882), + 79: uint16(39883), + 80: uint16(39884), + 81: uint16(39885), + 82: uint16(39886), + 83: uint16(39887), + 84: uint16(39888), + 85: uint16(39889), + 86: uint16(39890), + 87: uint16(39891), + 88: uint16(39892), + 89: uint16(39893), + 90: uint16(39894), + 91: uint16(39895), + 92: uint16(39896), + 93: uint16(39897), + 94: uint16(39898), + 95: uint16(39899), + 96: uint16(37218), + 97: uint16(37217), + 98: uint16(37232), + 99: uint16(37225), + 100: uint16(37231), + 101: uint16(37245), + 102: uint16(37246), + 103: uint16(37234), + 104: uint16(37236), + 105: uint16(37241), + 106: uint16(37260), + 107: uint16(37253), + 108: uint16(37264), + 109: uint16(37261), + 110: uint16(37265), + 111: uint16(37282), + 112: uint16(37283), + 113: uint16(37290), + 114: uint16(37293), + 115: uint16(37294), + 116: uint16(37295), + 117: uint16(37301), + 118: uint16(37300), + 119: uint16(37306), + 120: uint16(35925), + 121: uint16(40574), + 122: uint16(36280), + 123: uint16(36331), + 124: uint16(36357), + 125: uint16(36441), + 126: uint16(36457), + 127: uint16(36277), + 128: uint16(36287), + 129: uint16(36284), + 130: uint16(36282), + 131: uint16(36292), + 132: uint16(36310), + 133: uint16(36311), + 134: uint16(36314), + 135: uint16(36318), + 136: uint16(36302), + 137: uint16(36303), + 138: uint16(36315), + 139: uint16(36294), + 140: uint16(36332), + 141: uint16(36343), + 142: uint16(36344), + 143: uint16(36323), + 144: uint16(36345), + 145: uint16(36347), + 146: uint16(36324), + 147: uint16(36361), + 148: uint16(36349), + 149: uint16(36372), + 150: uint16(36381), + 151: uint16(36383), + 152: uint16(36396), + 153: uint16(36398), + 154: uint16(36387), + 155: uint16(36399), + 156: uint16(36410), + 157: uint16(36416), + 158: uint16(36409), + 159: uint16(36405), + 160: uint16(36413), + 161: uint16(36401), + 162: uint16(36425), + 163: uint16(36417), + 164: uint16(36418), + 165: uint16(36433), + 166: uint16(36434), + 167: uint16(36426), + 168: uint16(36464), + 169: uint16(36470), + 170: uint16(36476), + 171: uint16(36463), + 172: uint16(36468), + 173: uint16(36485), + 174: uint16(36495), + 175: uint16(36500), + 176: uint16(36496), + 177: uint16(36508), + 178: uint16(36510), + 179: uint16(35960), + 180: uint16(35970), + 181: uint16(35978), + 182: uint16(35973), + 183: uint16(35992), + 184: uint16(35988), + 185: uint16(26011), + 186: uint16(35286), + 187: uint16(35294), + 188: uint16(35290), + 189: uint16(35292), + }, + 117: { + 0: uint16(39900), + 1: uint16(39901), + 2: uint16(39902), + 3: uint16(39903), + 4: uint16(39904), + 5: uint16(39905), + 6: uint16(39906), + 7: uint16(39907), + 8: uint16(39908), + 9: uint16(39909), + 10: uint16(39910), + 11: uint16(39911), + 12: uint16(39912), + 13: uint16(39913), + 14: uint16(39914), + 15: uint16(39915), + 16: uint16(39916), + 17: uint16(39917), + 18: uint16(39918), + 19: uint16(39919), + 20: uint16(39920), + 21: uint16(39921), + 22: uint16(39922), + 23: uint16(39923), + 24: uint16(39924), + 25: uint16(39925), + 26: uint16(39926), + 27: uint16(39927), + 28: uint16(39928), + 29: uint16(39929), + 30: uint16(39930), + 31: uint16(39931), + 32: uint16(39932), + 33: uint16(39933), + 34: uint16(39934), + 35: uint16(39935), + 36: uint16(39936), + 37: uint16(39937), + 38: uint16(39938), + 39: uint16(39939), + 40: uint16(39940), + 41: uint16(39941), + 42: uint16(39942), + 43: uint16(39943), + 44: uint16(39944), + 45: uint16(39945), + 46: uint16(39946), + 47: uint16(39947), + 48: uint16(39948), + 49: uint16(39949), + 50: uint16(39950), + 51: uint16(39951), + 52: uint16(39952), + 53: uint16(39953), + 54: uint16(39954), + 55: uint16(39955), + 56: uint16(39956), + 57: uint16(39957), + 58: uint16(39958), + 59: uint16(39959), + 60: uint16(39960), + 61: uint16(39961), + 62: uint16(39962), + 63: uint16(39963), + 64: uint16(39964), + 65: uint16(39965), + 66: uint16(39966), + 67: uint16(39967), + 68: uint16(39968), + 69: uint16(39969), + 70: uint16(39970), + 71: uint16(39971), + 72: uint16(39972), + 73: uint16(39973), + 74: uint16(39974), + 75: uint16(39975), + 76: uint16(39976), + 77: uint16(39977), + 78: uint16(39978), + 79: uint16(39979), + 80: uint16(39980), + 81: uint16(39981), + 82: uint16(39982), + 83: uint16(39983), + 84: uint16(39984), + 85: uint16(39985), + 86: uint16(39986), + 87: uint16(39987), + 88: uint16(39988), + 89: uint16(39989), + 90: uint16(39990), + 91: uint16(39991), + 92: uint16(39992), + 93: uint16(39993), + 94: uint16(39994), + 95: uint16(39995), + 96: uint16(35301), + 97: uint16(35307), + 98: uint16(35311), + 99: uint16(35390), + 100: uint16(35622), + 101: uint16(38739), + 102: uint16(38633), + 103: uint16(38643), + 104: uint16(38639), + 105: uint16(38662), + 106: uint16(38657), + 107: uint16(38664), + 108: uint16(38671), + 109: uint16(38670), + 110: uint16(38698), + 111: uint16(38701), + 112: uint16(38704), + 113: uint16(38718), + 114: uint16(40832), + 115: uint16(40835), + 116: uint16(40837), + 117: uint16(40838), + 118: uint16(40839), + 119: uint16(40840), + 120: uint16(40841), + 121: uint16(40842), + 122: uint16(40844), + 123: uint16(40702), + 124: uint16(40715), + 125: uint16(40717), + 126: uint16(38585), + 127: uint16(38588), + 128: uint16(38589), + 129: uint16(38606), + 130: uint16(38610), + 131: uint16(30655), + 132: uint16(38624), + 133: uint16(37518), + 134: uint16(37550), + 135: uint16(37576), + 136: uint16(37694), + 137: uint16(37738), + 138: uint16(37834), + 139: uint16(37775), + 140: uint16(37950), + 141: uint16(37995), + 142: uint16(40063), + 143: uint16(40066), + 144: uint16(40069), + 145: uint16(40070), + 146: uint16(40071), + 147: uint16(40072), + 148: uint16(31267), + 149: uint16(40075), + 150: uint16(40078), + 151: uint16(40080), + 152: uint16(40081), + 153: uint16(40082), + 154: uint16(40084), + 155: uint16(40085), + 156: uint16(40090), + 157: uint16(40091), + 158: uint16(40094), + 159: uint16(40095), + 160: uint16(40096), + 161: uint16(40097), + 162: uint16(40098), + 163: uint16(40099), + 164: uint16(40101), + 165: uint16(40102), + 166: uint16(40103), + 167: uint16(40104), + 168: uint16(40105), + 169: uint16(40107), + 170: uint16(40109), + 171: uint16(40110), + 172: uint16(40112), + 173: uint16(40113), + 174: uint16(40114), + 175: uint16(40115), + 176: uint16(40116), + 177: uint16(40117), + 178: uint16(40118), + 179: uint16(40119), + 180: uint16(40122), + 181: uint16(40123), + 182: uint16(40124), + 183: uint16(40125), + 184: uint16(40132), + 185: uint16(40133), + 186: uint16(40134), + 187: uint16(40135), + 188: uint16(40138), + 189: uint16(40139), + }, + 118: { + 0: uint16(39996), + 1: uint16(39997), + 2: uint16(39998), + 3: uint16(39999), + 4: uint16(40000), + 5: uint16(40001), + 6: uint16(40002), + 7: uint16(40003), + 8: uint16(40004), + 9: uint16(40005), + 10: uint16(40006), + 11: uint16(40007), + 12: uint16(40008), + 13: uint16(40009), + 14: uint16(40010), + 15: uint16(40011), + 16: uint16(40012), + 17: uint16(40013), + 18: uint16(40014), + 19: uint16(40015), + 20: uint16(40016), + 21: uint16(40017), + 22: uint16(40018), + 23: uint16(40019), + 24: uint16(40020), + 25: uint16(40021), + 26: uint16(40022), + 27: uint16(40023), + 28: uint16(40024), + 29: uint16(40025), + 30: uint16(40026), + 31: uint16(40027), + 32: uint16(40028), + 33: uint16(40029), + 34: uint16(40030), + 35: uint16(40031), + 36: uint16(40032), + 37: uint16(40033), + 38: uint16(40034), + 39: uint16(40035), + 40: uint16(40036), + 41: uint16(40037), + 42: uint16(40038), + 43: uint16(40039), + 44: uint16(40040), + 45: uint16(40041), + 46: uint16(40042), + 47: uint16(40043), + 48: uint16(40044), + 49: uint16(40045), + 50: uint16(40046), + 51: uint16(40047), + 52: uint16(40048), + 53: uint16(40049), + 54: uint16(40050), + 55: uint16(40051), + 56: uint16(40052), + 57: uint16(40053), + 58: uint16(40054), + 59: uint16(40055), + 60: uint16(40056), + 61: uint16(40057), + 62: uint16(40058), + 63: uint16(40059), + 64: uint16(40061), + 65: uint16(40062), + 66: uint16(40064), + 67: uint16(40067), + 68: uint16(40068), + 69: uint16(40073), + 70: uint16(40074), + 71: uint16(40076), + 72: uint16(40079), + 73: uint16(40083), + 74: uint16(40086), + 75: uint16(40087), + 76: uint16(40088), + 77: uint16(40089), + 78: uint16(40093), + 79: uint16(40106), + 80: uint16(40108), + 81: uint16(40111), + 82: uint16(40121), + 83: uint16(40126), + 84: uint16(40127), + 85: uint16(40128), + 86: uint16(40129), + 87: uint16(40130), + 88: uint16(40136), + 89: uint16(40137), + 90: uint16(40145), + 91: uint16(40146), + 92: uint16(40154), + 93: uint16(40155), + 94: uint16(40160), + 95: uint16(40161), + 96: uint16(40140), + 97: uint16(40141), + 98: uint16(40142), + 99: uint16(40143), + 100: uint16(40144), + 101: uint16(40147), + 102: uint16(40148), + 103: uint16(40149), + 104: uint16(40151), + 105: uint16(40152), + 106: uint16(40153), + 107: uint16(40156), + 108: uint16(40157), + 109: uint16(40159), + 110: uint16(40162), + 111: uint16(38780), + 112: uint16(38789), + 113: uint16(38801), + 114: uint16(38802), + 115: uint16(38804), + 116: uint16(38831), + 117: uint16(38827), + 118: uint16(38819), + 119: uint16(38834), + 120: uint16(38836), + 121: uint16(39601), + 122: uint16(39600), + 123: uint16(39607), + 124: uint16(40536), + 125: uint16(39606), + 126: uint16(39610), + 127: uint16(39612), + 128: uint16(39617), + 129: uint16(39616), + 130: uint16(39621), + 131: uint16(39618), + 132: uint16(39627), + 133: uint16(39628), + 134: uint16(39633), + 135: uint16(39749), + 136: uint16(39747), + 137: uint16(39751), + 138: uint16(39753), + 139: uint16(39752), + 140: uint16(39757), + 141: uint16(39761), + 142: uint16(39144), + 143: uint16(39181), + 144: uint16(39214), + 145: uint16(39253), + 146: uint16(39252), + 147: uint16(39647), + 148: uint16(39649), + 149: uint16(39654), + 150: uint16(39663), + 151: uint16(39659), + 152: uint16(39675), + 153: uint16(39661), + 154: uint16(39673), + 155: uint16(39688), + 156: uint16(39695), + 157: uint16(39699), + 158: uint16(39711), + 159: uint16(39715), + 160: uint16(40637), + 161: uint16(40638), + 162: uint16(32315), + 163: uint16(40578), + 164: uint16(40583), + 165: uint16(40584), + 166: uint16(40587), + 167: uint16(40594), + 168: uint16(37846), + 169: uint16(40605), + 170: uint16(40607), + 171: uint16(40667), + 172: uint16(40668), + 173: uint16(40669), + 174: uint16(40672), + 175: uint16(40671), + 176: uint16(40674), + 177: uint16(40681), + 178: uint16(40679), + 179: uint16(40677), + 180: uint16(40682), + 181: uint16(40687), + 182: uint16(40738), + 183: uint16(40748), + 184: uint16(40751), + 185: uint16(40761), + 186: uint16(40759), + 187: uint16(40765), + 188: uint16(40766), + 189: uint16(40772), + }, + 119: { + 0: uint16(40163), + 1: uint16(40164), + 2: uint16(40165), + 3: uint16(40166), + 4: uint16(40167), + 5: uint16(40168), + 6: uint16(40169), + 7: uint16(40170), + 8: uint16(40171), + 9: uint16(40172), + 10: uint16(40173), + 11: uint16(40174), + 12: uint16(40175), + 13: uint16(40176), + 14: uint16(40177), + 15: uint16(40178), + 16: uint16(40179), + 17: uint16(40180), + 18: uint16(40181), + 19: uint16(40182), + 20: uint16(40183), + 21: uint16(40184), + 22: uint16(40185), + 23: uint16(40186), + 24: uint16(40187), + 25: uint16(40188), + 26: uint16(40189), + 27: uint16(40190), + 28: uint16(40191), + 29: uint16(40192), + 30: uint16(40193), + 31: uint16(40194), + 32: uint16(40195), + 33: uint16(40196), + 34: uint16(40197), + 35: uint16(40198), + 36: uint16(40199), + 37: uint16(40200), + 38: uint16(40201), + 39: uint16(40202), + 40: uint16(40203), + 41: uint16(40204), + 42: uint16(40205), + 43: uint16(40206), + 44: uint16(40207), + 45: uint16(40208), + 46: uint16(40209), + 47: uint16(40210), + 48: uint16(40211), + 49: uint16(40212), + 50: uint16(40213), + 51: uint16(40214), + 52: uint16(40215), + 53: uint16(40216), + 54: uint16(40217), + 55: uint16(40218), + 56: uint16(40219), + 57: uint16(40220), + 58: uint16(40221), + 59: uint16(40222), + 60: uint16(40223), + 61: uint16(40224), + 62: uint16(40225), + 63: uint16(40226), + 64: uint16(40227), + 65: uint16(40228), + 66: uint16(40229), + 67: uint16(40230), + 68: uint16(40231), + 69: uint16(40232), + 70: uint16(40233), + 71: uint16(40234), + 72: uint16(40235), + 73: uint16(40236), + 74: uint16(40237), + 75: uint16(40238), + 76: uint16(40239), + 77: uint16(40240), + 78: uint16(40241), + 79: uint16(40242), + 80: uint16(40243), + 81: uint16(40244), + 82: uint16(40245), + 83: uint16(40246), + 84: uint16(40247), + 85: uint16(40248), + 86: uint16(40249), + 87: uint16(40250), + 88: uint16(40251), + 89: uint16(40252), + 90: uint16(40253), + 91: uint16(40254), + 92: uint16(40255), + 93: uint16(40256), + 94: uint16(40257), + 95: uint16(40258), + 96: uint16(57908), + 97: uint16(57909), + 98: uint16(57910), + 99: uint16(57911), + 100: uint16(57912), + 101: uint16(57913), + 102: uint16(57914), + 103: uint16(57915), + 104: uint16(57916), + 105: uint16(57917), + 106: uint16(57918), + 107: uint16(57919), + 108: uint16(57920), + 109: uint16(57921), + 110: uint16(57922), + 111: uint16(57923), + 112: uint16(57924), + 113: uint16(57925), + 114: uint16(57926), + 115: uint16(57927), + 116: uint16(57928), + 117: uint16(57929), + 118: uint16(57930), + 119: uint16(57931), + 120: uint16(57932), + 121: uint16(57933), + 122: uint16(57934), + 123: uint16(57935), + 124: uint16(57936), + 125: uint16(57937), + 126: uint16(57938), + 127: uint16(57939), + 128: uint16(57940), + 129: uint16(57941), + 130: uint16(57942), + 131: uint16(57943), + 132: uint16(57944), + 133: uint16(57945), + 134: uint16(57946), + 135: uint16(57947), + 136: uint16(57948), + 137: uint16(57949), + 138: uint16(57950), + 139: uint16(57951), + 140: uint16(57952), + 141: uint16(57953), + 142: uint16(57954), + 143: uint16(57955), + 144: uint16(57956), + 145: uint16(57957), + 146: uint16(57958), + 147: uint16(57959), + 148: uint16(57960), + 149: uint16(57961), + 150: uint16(57962), + 151: uint16(57963), + 152: uint16(57964), + 153: uint16(57965), + 154: uint16(57966), + 155: uint16(57967), + 156: uint16(57968), + 157: uint16(57969), + 158: uint16(57970), + 159: uint16(57971), + 160: uint16(57972), + 161: uint16(57973), + 162: uint16(57974), + 163: uint16(57975), + 164: uint16(57976), + 165: uint16(57977), + 166: uint16(57978), + 167: uint16(57979), + 168: uint16(57980), + 169: uint16(57981), + 170: uint16(57982), + 171: uint16(57983), + 172: uint16(57984), + 173: uint16(57985), + 174: uint16(57986), + 175: uint16(57987), + 176: uint16(57988), + 177: uint16(57989), + 178: uint16(57990), + 179: uint16(57991), + 180: uint16(57992), + 181: uint16(57993), + 182: uint16(57994), + 183: uint16(57995), + 184: uint16(57996), + 185: uint16(57997), + 186: uint16(57998), + 187: uint16(57999), + 188: uint16(58000), + 189: uint16(58001), + }, + 120: { + 0: uint16(40259), + 1: uint16(40260), + 2: uint16(40261), + 3: uint16(40262), + 4: uint16(40263), + 5: uint16(40264), + 6: uint16(40265), + 7: uint16(40266), + 8: uint16(40267), + 9: uint16(40268), + 10: uint16(40269), + 11: uint16(40270), + 12: uint16(40271), + 13: uint16(40272), + 14: uint16(40273), + 15: uint16(40274), + 16: uint16(40275), + 17: uint16(40276), + 18: uint16(40277), + 19: uint16(40278), + 20: uint16(40279), + 21: uint16(40280), + 22: uint16(40281), + 23: uint16(40282), + 24: uint16(40283), + 25: uint16(40284), + 26: uint16(40285), + 27: uint16(40286), + 28: uint16(40287), + 29: uint16(40288), + 30: uint16(40289), + 31: uint16(40290), + 32: uint16(40291), + 33: uint16(40292), + 34: uint16(40293), + 35: uint16(40294), + 36: uint16(40295), + 37: uint16(40296), + 38: uint16(40297), + 39: uint16(40298), + 40: uint16(40299), + 41: uint16(40300), + 42: uint16(40301), + 43: uint16(40302), + 44: uint16(40303), + 45: uint16(40304), + 46: uint16(40305), + 47: uint16(40306), + 48: uint16(40307), + 49: uint16(40308), + 50: uint16(40309), + 51: uint16(40310), + 52: uint16(40311), + 53: uint16(40312), + 54: uint16(40313), + 55: uint16(40314), + 56: uint16(40315), + 57: uint16(40316), + 58: uint16(40317), + 59: uint16(40318), + 60: uint16(40319), + 61: uint16(40320), + 62: uint16(40321), + 63: uint16(40322), + 64: uint16(40323), + 65: uint16(40324), + 66: uint16(40325), + 67: uint16(40326), + 68: uint16(40327), + 69: uint16(40328), + 70: uint16(40329), + 71: uint16(40330), + 72: uint16(40331), + 73: uint16(40332), + 74: uint16(40333), + 75: uint16(40334), + 76: uint16(40335), + 77: uint16(40336), + 78: uint16(40337), + 79: uint16(40338), + 80: uint16(40339), + 81: uint16(40340), + 82: uint16(40341), + 83: uint16(40342), + 84: uint16(40343), + 85: uint16(40344), + 86: uint16(40345), + 87: uint16(40346), + 88: uint16(40347), + 89: uint16(40348), + 90: uint16(40349), + 91: uint16(40350), + 92: uint16(40351), + 93: uint16(40352), + 94: uint16(40353), + 95: uint16(40354), + 96: uint16(58002), + 97: uint16(58003), + 98: uint16(58004), + 99: uint16(58005), + 100: uint16(58006), + 101: uint16(58007), + 102: uint16(58008), + 103: uint16(58009), + 104: uint16(58010), + 105: uint16(58011), + 106: uint16(58012), + 107: uint16(58013), + 108: uint16(58014), + 109: uint16(58015), + 110: uint16(58016), + 111: uint16(58017), + 112: uint16(58018), + 113: uint16(58019), + 114: uint16(58020), + 115: uint16(58021), + 116: uint16(58022), + 117: uint16(58023), + 118: uint16(58024), + 119: uint16(58025), + 120: uint16(58026), + 121: uint16(58027), + 122: uint16(58028), + 123: uint16(58029), + 124: uint16(58030), + 125: uint16(58031), + 126: uint16(58032), + 127: uint16(58033), + 128: uint16(58034), + 129: uint16(58035), + 130: uint16(58036), + 131: uint16(58037), + 132: uint16(58038), + 133: uint16(58039), + 134: uint16(58040), + 135: uint16(58041), + 136: uint16(58042), + 137: uint16(58043), + 138: uint16(58044), + 139: uint16(58045), + 140: uint16(58046), + 141: uint16(58047), + 142: uint16(58048), + 143: uint16(58049), + 144: uint16(58050), + 145: uint16(58051), + 146: uint16(58052), + 147: uint16(58053), + 148: uint16(58054), + 149: uint16(58055), + 150: uint16(58056), + 151: uint16(58057), + 152: uint16(58058), + 153: uint16(58059), + 154: uint16(58060), + 155: uint16(58061), + 156: uint16(58062), + 157: uint16(58063), + 158: uint16(58064), + 159: uint16(58065), + 160: uint16(58066), + 161: uint16(58067), + 162: uint16(58068), + 163: uint16(58069), + 164: uint16(58070), + 165: uint16(58071), + 166: uint16(58072), + 167: uint16(58073), + 168: uint16(58074), + 169: uint16(58075), + 170: uint16(58076), + 171: uint16(58077), + 172: uint16(58078), + 173: uint16(58079), + 174: uint16(58080), + 175: uint16(58081), + 176: uint16(58082), + 177: uint16(58083), + 178: uint16(58084), + 179: uint16(58085), + 180: uint16(58086), + 181: uint16(58087), + 182: uint16(58088), + 183: uint16(58089), + 184: uint16(58090), + 185: uint16(58091), + 186: uint16(58092), + 187: uint16(58093), + 188: uint16(58094), + 189: uint16(58095), + }, + 121: { + 0: uint16(40355), + 1: uint16(40356), + 2: uint16(40357), + 3: uint16(40358), + 4: uint16(40359), + 5: uint16(40360), + 6: uint16(40361), + 7: uint16(40362), + 8: uint16(40363), + 9: uint16(40364), + 10: uint16(40365), + 11: uint16(40366), + 12: uint16(40367), + 13: uint16(40368), + 14: uint16(40369), + 15: uint16(40370), + 16: uint16(40371), + 17: uint16(40372), + 18: uint16(40373), + 19: uint16(40374), + 20: uint16(40375), + 21: uint16(40376), + 22: uint16(40377), + 23: uint16(40378), + 24: uint16(40379), + 25: uint16(40380), + 26: uint16(40381), + 27: uint16(40382), + 28: uint16(40383), + 29: uint16(40384), + 30: uint16(40385), + 31: uint16(40386), + 32: uint16(40387), + 33: uint16(40388), + 34: uint16(40389), + 35: uint16(40390), + 36: uint16(40391), + 37: uint16(40392), + 38: uint16(40393), + 39: uint16(40394), + 40: uint16(40395), + 41: uint16(40396), + 42: uint16(40397), + 43: uint16(40398), + 44: uint16(40399), + 45: uint16(40400), + 46: uint16(40401), + 47: uint16(40402), + 48: uint16(40403), + 49: uint16(40404), + 50: uint16(40405), + 51: uint16(40406), + 52: uint16(40407), + 53: uint16(40408), + 54: uint16(40409), + 55: uint16(40410), + 56: uint16(40411), + 57: uint16(40412), + 58: uint16(40413), + 59: uint16(40414), + 60: uint16(40415), + 61: uint16(40416), + 62: uint16(40417), + 63: uint16(40418), + 64: uint16(40419), + 65: uint16(40420), + 66: uint16(40421), + 67: uint16(40422), + 68: uint16(40423), + 69: uint16(40424), + 70: uint16(40425), + 71: uint16(40426), + 72: uint16(40427), + 73: uint16(40428), + 74: uint16(40429), + 75: uint16(40430), + 76: uint16(40431), + 77: uint16(40432), + 78: uint16(40433), + 79: uint16(40434), + 80: uint16(40435), + 81: uint16(40436), + 82: uint16(40437), + 83: uint16(40438), + 84: uint16(40439), + 85: uint16(40440), + 86: uint16(40441), + 87: uint16(40442), + 88: uint16(40443), + 89: uint16(40444), + 90: uint16(40445), + 91: uint16(40446), + 92: uint16(40447), + 93: uint16(40448), + 94: uint16(40449), + 95: uint16(40450), + 96: uint16(58096), + 97: uint16(58097), + 98: uint16(58098), + 99: uint16(58099), + 100: uint16(58100), + 101: uint16(58101), + 102: uint16(58102), + 103: uint16(58103), + 104: uint16(58104), + 105: uint16(58105), + 106: uint16(58106), + 107: uint16(58107), + 108: uint16(58108), + 109: uint16(58109), + 110: uint16(58110), + 111: uint16(58111), + 112: uint16(58112), + 113: uint16(58113), + 114: uint16(58114), + 115: uint16(58115), + 116: uint16(58116), + 117: uint16(58117), + 118: uint16(58118), + 119: uint16(58119), + 120: uint16(58120), + 121: uint16(58121), + 122: uint16(58122), + 123: uint16(58123), + 124: uint16(58124), + 125: uint16(58125), + 126: uint16(58126), + 127: uint16(58127), + 128: uint16(58128), + 129: uint16(58129), + 130: uint16(58130), + 131: uint16(58131), + 132: uint16(58132), + 133: uint16(58133), + 134: uint16(58134), + 135: uint16(58135), + 136: uint16(58136), + 137: uint16(58137), + 138: uint16(58138), + 139: uint16(58139), + 140: uint16(58140), + 141: uint16(58141), + 142: uint16(58142), + 143: uint16(58143), + 144: uint16(58144), + 145: uint16(58145), + 146: uint16(58146), + 147: uint16(58147), + 148: uint16(58148), + 149: uint16(58149), + 150: uint16(58150), + 151: uint16(58151), + 152: uint16(58152), + 153: uint16(58153), + 154: uint16(58154), + 155: uint16(58155), + 156: uint16(58156), + 157: uint16(58157), + 158: uint16(58158), + 159: uint16(58159), + 160: uint16(58160), + 161: uint16(58161), + 162: uint16(58162), + 163: uint16(58163), + 164: uint16(58164), + 165: uint16(58165), + 166: uint16(58166), + 167: uint16(58167), + 168: uint16(58168), + 169: uint16(58169), + 170: uint16(58170), + 171: uint16(58171), + 172: uint16(58172), + 173: uint16(58173), + 174: uint16(58174), + 175: uint16(58175), + 176: uint16(58176), + 177: uint16(58177), + 178: uint16(58178), + 179: uint16(58179), + 180: uint16(58180), + 181: uint16(58181), + 182: uint16(58182), + 183: uint16(58183), + 184: uint16(58184), + 185: uint16(58185), + 186: uint16(58186), + 187: uint16(58187), + 188: uint16(58188), + 189: uint16(58189), + }, + 122: { + 0: uint16(40451), + 1: uint16(40452), + 2: uint16(40453), + 3: uint16(40454), + 4: uint16(40455), + 5: uint16(40456), + 6: uint16(40457), + 7: uint16(40458), + 8: uint16(40459), + 9: uint16(40460), + 10: uint16(40461), + 11: uint16(40462), + 12: uint16(40463), + 13: uint16(40464), + 14: uint16(40465), + 15: uint16(40466), + 16: uint16(40467), + 17: uint16(40468), + 18: uint16(40469), + 19: uint16(40470), + 20: uint16(40471), + 21: uint16(40472), + 22: uint16(40473), + 23: uint16(40474), + 24: uint16(40475), + 25: uint16(40476), + 26: uint16(40477), + 27: uint16(40478), + 28: uint16(40484), + 29: uint16(40487), + 30: uint16(40494), + 31: uint16(40496), + 32: uint16(40500), + 33: uint16(40507), + 34: uint16(40508), + 35: uint16(40512), + 36: uint16(40525), + 37: uint16(40528), + 38: uint16(40530), + 39: uint16(40531), + 40: uint16(40532), + 41: uint16(40534), + 42: uint16(40537), + 43: uint16(40541), + 44: uint16(40543), + 45: uint16(40544), + 46: uint16(40545), + 47: uint16(40546), + 48: uint16(40549), + 49: uint16(40558), + 50: uint16(40559), + 51: uint16(40562), + 52: uint16(40564), + 53: uint16(40565), + 54: uint16(40566), + 55: uint16(40567), + 56: uint16(40568), + 57: uint16(40569), + 58: uint16(40570), + 59: uint16(40571), + 60: uint16(40572), + 61: uint16(40573), + 62: uint16(40576), + 63: uint16(40577), + 64: uint16(40579), + 65: uint16(40580), + 66: uint16(40581), + 67: uint16(40582), + 68: uint16(40585), + 69: uint16(40586), + 70: uint16(40588), + 71: uint16(40589), + 72: uint16(40590), + 73: uint16(40591), + 74: uint16(40592), + 75: uint16(40593), + 76: uint16(40596), + 77: uint16(40597), + 78: uint16(40598), + 79: uint16(40599), + 80: uint16(40600), + 81: uint16(40601), + 82: uint16(40602), + 83: uint16(40603), + 84: uint16(40604), + 85: uint16(40606), + 86: uint16(40608), + 87: uint16(40609), + 88: uint16(40610), + 89: uint16(40611), + 90: uint16(40612), + 91: uint16(40613), + 92: uint16(40615), + 93: uint16(40616), + 94: uint16(40617), + 95: uint16(40618), + 96: uint16(58190), + 97: uint16(58191), + 98: uint16(58192), + 99: uint16(58193), + 100: uint16(58194), + 101: uint16(58195), + 102: uint16(58196), + 103: uint16(58197), + 104: uint16(58198), + 105: uint16(58199), + 106: uint16(58200), + 107: uint16(58201), + 108: uint16(58202), + 109: uint16(58203), + 110: uint16(58204), + 111: uint16(58205), + 112: uint16(58206), + 113: uint16(58207), + 114: uint16(58208), + 115: uint16(58209), + 116: uint16(58210), + 117: uint16(58211), + 118: uint16(58212), + 119: uint16(58213), + 120: uint16(58214), + 121: uint16(58215), + 122: uint16(58216), + 123: uint16(58217), + 124: uint16(58218), + 125: uint16(58219), + 126: uint16(58220), + 127: uint16(58221), + 128: uint16(58222), + 129: uint16(58223), + 130: uint16(58224), + 131: uint16(58225), + 132: uint16(58226), + 133: uint16(58227), + 134: uint16(58228), + 135: uint16(58229), + 136: uint16(58230), + 137: uint16(58231), + 138: uint16(58232), + 139: uint16(58233), + 140: uint16(58234), + 141: uint16(58235), + 142: uint16(58236), + 143: uint16(58237), + 144: uint16(58238), + 145: uint16(58239), + 146: uint16(58240), + 147: uint16(58241), + 148: uint16(58242), + 149: uint16(58243), + 150: uint16(58244), + 151: uint16(58245), + 152: uint16(58246), + 153: uint16(58247), + 154: uint16(58248), + 155: uint16(58249), + 156: uint16(58250), + 157: uint16(58251), + 158: uint16(58252), + 159: uint16(58253), + 160: uint16(58254), + 161: uint16(58255), + 162: uint16(58256), + 163: uint16(58257), + 164: uint16(58258), + 165: uint16(58259), + 166: uint16(58260), + 167: uint16(58261), + 168: uint16(58262), + 169: uint16(58263), + 170: uint16(58264), + 171: uint16(58265), + 172: uint16(58266), + 173: uint16(58267), + 174: uint16(58268), + 175: uint16(58269), + 176: uint16(58270), + 177: uint16(58271), + 178: uint16(58272), + 179: uint16(58273), + 180: uint16(58274), + 181: uint16(58275), + 182: uint16(58276), + 183: uint16(58277), + 184: uint16(58278), + 185: uint16(58279), + 186: uint16(58280), + 187: uint16(58281), + 188: uint16(58282), + 189: uint16(58283), + }, + 123: { + 0: uint16(40619), + 1: uint16(40620), + 2: uint16(40621), + 3: uint16(40622), + 4: uint16(40623), + 5: uint16(40624), + 6: uint16(40625), + 7: uint16(40626), + 8: uint16(40627), + 9: uint16(40629), + 10: uint16(40630), + 11: uint16(40631), + 12: uint16(40633), + 13: uint16(40634), + 14: uint16(40636), + 15: uint16(40639), + 16: uint16(40640), + 17: uint16(40641), + 18: uint16(40642), + 19: uint16(40643), + 20: uint16(40645), + 21: uint16(40646), + 22: uint16(40647), + 23: uint16(40648), + 24: uint16(40650), + 25: uint16(40651), + 26: uint16(40652), + 27: uint16(40656), + 28: uint16(40658), + 29: uint16(40659), + 30: uint16(40661), + 31: uint16(40662), + 32: uint16(40663), + 33: uint16(40665), + 34: uint16(40666), + 35: uint16(40670), + 36: uint16(40673), + 37: uint16(40675), + 38: uint16(40676), + 39: uint16(40678), + 40: uint16(40680), + 41: uint16(40683), + 42: uint16(40684), + 43: uint16(40685), + 44: uint16(40686), + 45: uint16(40688), + 46: uint16(40689), + 47: uint16(40690), + 48: uint16(40691), + 49: uint16(40692), + 50: uint16(40693), + 51: uint16(40694), + 52: uint16(40695), + 53: uint16(40696), + 54: uint16(40698), + 55: uint16(40701), + 56: uint16(40703), + 57: uint16(40704), + 58: uint16(40705), + 59: uint16(40706), + 60: uint16(40707), + 61: uint16(40708), + 62: uint16(40709), + 63: uint16(40710), + 64: uint16(40711), + 65: uint16(40712), + 66: uint16(40713), + 67: uint16(40714), + 68: uint16(40716), + 69: uint16(40719), + 70: uint16(40721), + 71: uint16(40722), + 72: uint16(40724), + 73: uint16(40725), + 74: uint16(40726), + 75: uint16(40728), + 76: uint16(40730), + 77: uint16(40731), + 78: uint16(40732), + 79: uint16(40733), + 80: uint16(40734), + 81: uint16(40735), + 82: uint16(40737), + 83: uint16(40739), + 84: uint16(40740), + 85: uint16(40741), + 86: uint16(40742), + 87: uint16(40743), + 88: uint16(40744), + 89: uint16(40745), + 90: uint16(40746), + 91: uint16(40747), + 92: uint16(40749), + 93: uint16(40750), + 94: uint16(40752), + 95: uint16(40753), + 96: uint16(58284), + 97: uint16(58285), + 98: uint16(58286), + 99: uint16(58287), + 100: uint16(58288), + 101: uint16(58289), + 102: uint16(58290), + 103: uint16(58291), + 104: uint16(58292), + 105: uint16(58293), + 106: uint16(58294), + 107: uint16(58295), + 108: uint16(58296), + 109: uint16(58297), + 110: uint16(58298), + 111: uint16(58299), + 112: uint16(58300), + 113: uint16(58301), + 114: uint16(58302), + 115: uint16(58303), + 116: uint16(58304), + 117: uint16(58305), + 118: uint16(58306), + 119: uint16(58307), + 120: uint16(58308), + 121: uint16(58309), + 122: uint16(58310), + 123: uint16(58311), + 124: uint16(58312), + 125: uint16(58313), + 126: uint16(58314), + 127: uint16(58315), + 128: uint16(58316), + 129: uint16(58317), + 130: uint16(58318), + 131: uint16(58319), + 132: uint16(58320), + 133: uint16(58321), + 134: uint16(58322), + 135: uint16(58323), + 136: uint16(58324), + 137: uint16(58325), + 138: uint16(58326), + 139: uint16(58327), + 140: uint16(58328), + 141: uint16(58329), + 142: uint16(58330), + 143: uint16(58331), + 144: uint16(58332), + 145: uint16(58333), + 146: uint16(58334), + 147: uint16(58335), + 148: uint16(58336), + 149: uint16(58337), + 150: uint16(58338), + 151: uint16(58339), + 152: uint16(58340), + 153: uint16(58341), + 154: uint16(58342), + 155: uint16(58343), + 156: uint16(58344), + 157: uint16(58345), + 158: uint16(58346), + 159: uint16(58347), + 160: uint16(58348), + 161: uint16(58349), + 162: uint16(58350), + 163: uint16(58351), + 164: uint16(58352), + 165: uint16(58353), + 166: uint16(58354), + 167: uint16(58355), + 168: uint16(58356), + 169: uint16(58357), + 170: uint16(58358), + 171: uint16(58359), + 172: uint16(58360), + 173: uint16(58361), + 174: uint16(58362), + 175: uint16(58363), + 176: uint16(58364), + 177: uint16(58365), + 178: uint16(58366), + 179: uint16(58367), + 180: uint16(58368), + 181: uint16(58369), + 182: uint16(58370), + 183: uint16(58371), + 184: uint16(58372), + 185: uint16(58373), + 186: uint16(58374), + 187: uint16(58375), + 188: uint16(58376), + 189: uint16(58377), + }, + 124: { + 0: uint16(40754), + 1: uint16(40755), + 2: uint16(40756), + 3: uint16(40757), + 4: uint16(40758), + 5: uint16(40760), + 6: uint16(40762), + 7: uint16(40764), + 8: uint16(40767), + 9: uint16(40768), + 10: uint16(40769), + 11: uint16(40770), + 12: uint16(40771), + 13: uint16(40773), + 14: uint16(40774), + 15: uint16(40775), + 16: uint16(40776), + 17: uint16(40777), + 18: uint16(40778), + 19: uint16(40779), + 20: uint16(40780), + 21: uint16(40781), + 22: uint16(40782), + 23: uint16(40783), + 24: uint16(40786), + 25: uint16(40787), + 26: uint16(40788), + 27: uint16(40789), + 28: uint16(40790), + 29: uint16(40791), + 30: uint16(40792), + 31: uint16(40793), + 32: uint16(40794), + 33: uint16(40795), + 34: uint16(40796), + 35: uint16(40797), + 36: uint16(40798), + 37: uint16(40799), + 38: uint16(40800), + 39: uint16(40801), + 40: uint16(40802), + 41: uint16(40803), + 42: uint16(40804), + 43: uint16(40805), + 44: uint16(40806), + 45: uint16(40807), + 46: uint16(40808), + 47: uint16(40809), + 48: uint16(40810), + 49: uint16(40811), + 50: uint16(40812), + 51: uint16(40813), + 52: uint16(40814), + 53: uint16(40815), + 54: uint16(40816), + 55: uint16(40817), + 56: uint16(40818), + 57: uint16(40819), + 58: uint16(40820), + 59: uint16(40821), + 60: uint16(40822), + 61: uint16(40823), + 62: uint16(40824), + 63: uint16(40825), + 64: uint16(40826), + 65: uint16(40827), + 66: uint16(40828), + 67: uint16(40829), + 68: uint16(40830), + 69: uint16(40833), + 70: uint16(40834), + 71: uint16(40845), + 72: uint16(40846), + 73: uint16(40847), + 74: uint16(40848), + 75: uint16(40849), + 76: uint16(40850), + 77: uint16(40851), + 78: uint16(40852), + 79: uint16(40853), + 80: uint16(40854), + 81: uint16(40855), + 82: uint16(40856), + 83: uint16(40860), + 84: uint16(40861), + 85: uint16(40862), + 86: uint16(40865), + 87: uint16(40866), + 88: uint16(40867), + 89: uint16(40868), + 90: uint16(40869), + 91: uint16(63788), + 92: uint16(63865), + 93: uint16(63893), + 94: uint16(63975), + 95: uint16(63985), + 96: uint16(58378), + 97: uint16(58379), + 98: uint16(58380), + 99: uint16(58381), + 100: uint16(58382), + 101: uint16(58383), + 102: uint16(58384), + 103: uint16(58385), + 104: uint16(58386), + 105: uint16(58387), + 106: uint16(58388), + 107: uint16(58389), + 108: uint16(58390), + 109: uint16(58391), + 110: uint16(58392), + 111: uint16(58393), + 112: uint16(58394), + 113: uint16(58395), + 114: uint16(58396), + 115: uint16(58397), + 116: uint16(58398), + 117: uint16(58399), + 118: uint16(58400), + 119: uint16(58401), + 120: uint16(58402), + 121: uint16(58403), + 122: uint16(58404), + 123: uint16(58405), + 124: uint16(58406), + 125: uint16(58407), + 126: uint16(58408), + 127: uint16(58409), + 128: uint16(58410), + 129: uint16(58411), + 130: uint16(58412), + 131: uint16(58413), + 132: uint16(58414), + 133: uint16(58415), + 134: uint16(58416), + 135: uint16(58417), + 136: uint16(58418), + 137: uint16(58419), + 138: uint16(58420), + 139: uint16(58421), + 140: uint16(58422), + 141: uint16(58423), + 142: uint16(58424), + 143: uint16(58425), + 144: uint16(58426), + 145: uint16(58427), + 146: uint16(58428), + 147: uint16(58429), + 148: uint16(58430), + 149: uint16(58431), + 150: uint16(58432), + 151: uint16(58433), + 152: uint16(58434), + 153: uint16(58435), + 154: uint16(58436), + 155: uint16(58437), + 156: uint16(58438), + 157: uint16(58439), + 158: uint16(58440), + 159: uint16(58441), + 160: uint16(58442), + 161: uint16(58443), + 162: uint16(58444), + 163: uint16(58445), + 164: uint16(58446), + 165: uint16(58447), + 166: uint16(58448), + 167: uint16(58449), + 168: uint16(58450), + 169: uint16(58451), + 170: uint16(58452), + 171: uint16(58453), + 172: uint16(58454), + 173: uint16(58455), + 174: uint16(58456), + 175: uint16(58457), + 176: uint16(58458), + 177: uint16(58459), + 178: uint16(58460), + 179: uint16(58461), + 180: uint16(58462), + 181: uint16(58463), + 182: uint16(58464), + 183: uint16(58465), + 184: uint16(58466), + 185: uint16(58467), + 186: uint16(58468), + 187: uint16(58469), + 188: uint16(58470), + 189: uint16(58471), + }, + 125: { + 0: uint16(64012), + 1: uint16(64013), + 2: uint16(64014), + 3: uint16(64015), + 4: uint16(64017), + 5: uint16(64019), + 6: uint16(64020), + 7: uint16(64024), + 8: uint16(64031), + 9: uint16(64032), + 10: uint16(64033), + 11: uint16(64035), + 12: uint16(64036), + 13: uint16(64039), + 14: uint16(64040), + 15: uint16(64041), + 16: uint16(11905), + 17: uint16(59414), + 18: uint16(59415), + 19: uint16(59416), + 20: uint16(11908), + 21: uint16(13427), + 22: uint16(13383), + 23: uint16(11912), + 24: uint16(11915), + 25: uint16(59422), + 26: uint16(13726), + 27: uint16(13850), + 28: uint16(13838), + 29: uint16(11916), + 30: uint16(11927), + 31: uint16(14702), + 32: uint16(14616), + 33: uint16(59430), + 34: uint16(14799), + 35: uint16(14815), + 36: uint16(14963), + 37: uint16(14800), + 38: uint16(59435), + 39: uint16(59436), + 40: uint16(15182), + 41: uint16(15470), + 42: uint16(15584), + 43: uint16(11943), + 44: uint16(59441), + 45: uint16(59442), + 46: uint16(11946), + 47: uint16(16470), + 48: uint16(16735), + 49: uint16(11950), + 50: uint16(17207), + 51: uint16(11955), + 52: uint16(11958), + 53: uint16(11959), + 54: uint16(59451), + 55: uint16(17329), + 56: uint16(17324), + 57: uint16(11963), + 58: uint16(17373), + 59: uint16(17622), + 60: uint16(18017), + 61: uint16(17996), + 62: uint16(59459), + 63: uint16(18211), + 64: uint16(18217), + 65: uint16(18300), + 66: uint16(18317), + 67: uint16(11978), + 68: uint16(18759), + 69: uint16(18810), + 70: uint16(18813), + 71: uint16(18818), + 72: uint16(18819), + 73: uint16(18821), + 74: uint16(18822), + 75: uint16(18847), + 76: uint16(18843), + 77: uint16(18871), + 78: uint16(18870), + 79: uint16(59476), + 80: uint16(59477), + 81: uint16(19619), + 82: uint16(19615), + 83: uint16(19616), + 84: uint16(19617), + 85: uint16(19575), + 86: uint16(19618), + 87: uint16(19731), + 88: uint16(19732), + 89: uint16(19733), + 90: uint16(19734), + 91: uint16(19735), + 92: uint16(19736), + 93: uint16(19737), + 94: uint16(19886), + 95: uint16(59492), + 96: uint16(58472), + 97: uint16(58473), + 98: uint16(58474), + 99: uint16(58475), + 100: uint16(58476), + 101: uint16(58477), + 102: uint16(58478), + 103: uint16(58479), + 104: uint16(58480), + 105: uint16(58481), + 106: uint16(58482), + 107: uint16(58483), + 108: uint16(58484), + 109: uint16(58485), + 110: uint16(58486), + 111: uint16(58487), + 112: uint16(58488), + 113: uint16(58489), + 114: uint16(58490), + 115: uint16(58491), + 116: uint16(58492), + 117: uint16(58493), + 118: uint16(58494), + 119: uint16(58495), + 120: uint16(58496), + 121: uint16(58497), + 122: uint16(58498), + 123: uint16(58499), + 124: uint16(58500), + 125: uint16(58501), + 126: uint16(58502), + 127: uint16(58503), + 128: uint16(58504), + 129: uint16(58505), + 130: uint16(58506), + 131: uint16(58507), + 132: uint16(58508), + 133: uint16(58509), + 134: uint16(58510), + 135: uint16(58511), + 136: uint16(58512), + 137: uint16(58513), + 138: uint16(58514), + 139: uint16(58515), + 140: uint16(58516), + 141: uint16(58517), + 142: uint16(58518), + 143: uint16(58519), + 144: uint16(58520), + 145: uint16(58521), + 146: uint16(58522), + 147: uint16(58523), + 148: uint16(58524), + 149: uint16(58525), + 150: uint16(58526), + 151: uint16(58527), + 152: uint16(58528), + 153: uint16(58529), + 154: uint16(58530), + 155: uint16(58531), + 156: uint16(58532), + 157: uint16(58533), + 158: uint16(58534), + 159: uint16(58535), + 160: uint16(58536), + 161: uint16(58537), + 162: uint16(58538), + 163: uint16(58539), + 164: uint16(58540), + 165: uint16(58541), + 166: uint16(58542), + 167: uint16(58543), + 168: uint16(58544), + 169: uint16(58545), + 170: uint16(58546), + 171: uint16(58547), + 172: uint16(58548), + 173: uint16(58549), + 174: uint16(58550), + 175: uint16(58551), + 176: uint16(58552), + 177: uint16(58553), + 178: uint16(58554), + 179: uint16(58555), + 180: uint16(58556), + 181: uint16(58557), + 182: uint16(58558), + 183: uint16(58559), + 184: uint16(58560), + 185: uint16(58561), + 186: uint16(58562), + 187: uint16(58563), + 188: uint16(58564), + 189: uint16(58565), + }, +} + +var _big5 = [89][157]uint16{ + 0: { + 0: uint16(12288), + 1: uint16(65292), + 2: uint16(12289), + 3: uint16(12290), + 4: uint16(65294), + 5: uint16(8231), + 6: uint16(65307), + 7: uint16(65306), + 8: uint16(65311), + 9: uint16(65281), + 10: uint16(65072), + 11: uint16(8230), + 12: uint16(8229), + 13: uint16(65104), + 14: uint16(65105), + 15: uint16(65106), + 16: uint16(183), + 17: uint16(65108), + 18: uint16(65109), + 19: uint16(65110), + 20: uint16(65111), + 21: uint16(65372), + 22: uint16(8211), + 23: uint16(65073), + 24: uint16(8212), + 25: uint16(65075), + 26: uint16(9588), + 27: uint16(65076), + 28: uint16(65103), + 29: uint16(65288), + 30: uint16(65289), + 31: uint16(65077), + 32: uint16(65078), + 33: uint16(65371), + 34: uint16(65373), + 35: uint16(65079), + 36: uint16(65080), + 37: uint16(12308), + 38: uint16(12309), + 39: uint16(65081), + 40: uint16(65082), + 41: uint16(12304), + 42: uint16(12305), + 43: uint16(65083), + 44: uint16(65084), + 45: uint16(12298), + 46: uint16(12299), + 47: uint16(65085), + 48: uint16(65086), + 49: uint16(12296), + 50: uint16(12297), + 51: uint16(65087), + 52: uint16(65088), + 53: uint16(12300), + 54: uint16(12301), + 55: uint16(65089), + 56: uint16(65090), + 57: uint16(12302), + 58: uint16(12303), + 59: uint16(65091), + 60: uint16(65092), + 61: uint16(65113), + 62: uint16(65114), + 63: uint16(65115), + 64: uint16(65116), + 65: uint16(65117), + 66: uint16(65118), + 67: uint16(8216), + 68: uint16(8217), + 69: uint16(8220), + 70: uint16(8221), + 71: uint16(12317), + 72: uint16(12318), + 73: uint16(8245), + 74: uint16(8242), + 75: uint16(65283), + 76: uint16(65286), + 77: uint16(65290), + 78: uint16(8251), + 79: uint16(167), + 80: uint16(12291), + 81: uint16(9675), + 82: uint16(9679), + 83: uint16(9651), + 84: uint16(9650), + 85: uint16(9678), + 86: uint16(9734), + 87: uint16(9733), + 88: uint16(9671), + 89: uint16(9670), + 90: uint16(9633), + 91: uint16(9632), + 92: uint16(9661), + 93: uint16(9660), + 94: uint16(12963), + 95: uint16(8453), + 96: uint16(175), + 97: uint16(65507), + 98: uint16(65343), + 99: uint16(717), + 100: uint16(65097), + 101: uint16(65098), + 102: uint16(65101), + 103: uint16(65102), + 104: uint16(65099), + 105: uint16(65100), + 106: uint16(65119), + 107: uint16(65120), + 108: uint16(65121), + 109: uint16(65291), + 110: uint16(65293), + 111: uint16(215), + 112: uint16(247), + 113: uint16(177), + 114: uint16(8730), + 115: uint16(65308), + 116: uint16(65310), + 117: uint16(65309), + 118: uint16(8806), + 119: uint16(8807), + 120: uint16(8800), + 121: uint16(8734), + 122: uint16(8786), + 123: uint16(8801), + 124: uint16(65122), + 125: uint16(65123), + 126: uint16(65124), + 127: uint16(65125), + 128: uint16(65126), + 129: uint16(65374), + 130: uint16(8745), + 131: uint16(8746), + 132: uint16(8869), + 133: uint16(8736), + 134: uint16(8735), + 135: uint16(8895), + 136: uint16(13266), + 137: uint16(13265), + 138: uint16(8747), + 139: uint16(8750), + 140: uint16(8757), + 141: uint16(8756), + 142: uint16(9792), + 143: uint16(9794), + 144: uint16(8853), + 145: uint16(8857), + 146: uint16(8593), + 147: uint16(8595), + 148: uint16(8592), + 149: uint16(8594), + 150: uint16(8598), + 151: uint16(8599), + 152: uint16(8601), + 153: uint16(8600), + 154: uint16(8741), + 155: uint16(8739), + 156: uint16(65295), + }, + 1: { + 0: uint16(65340), + 1: uint16(8725), + 2: uint16(65128), + 3: uint16(65284), + 4: uint16(65509), + 5: uint16(12306), + 6: uint16(65504), + 7: uint16(65505), + 8: uint16(65285), + 9: uint16(65312), + 10: uint16(8451), + 11: uint16(8457), + 12: uint16(65129), + 13: uint16(65130), + 14: uint16(65131), + 15: uint16(13269), + 16: uint16(13212), + 17: uint16(13213), + 18: uint16(13214), + 19: uint16(13262), + 20: uint16(13217), + 21: uint16(13198), + 22: uint16(13199), + 23: uint16(13252), + 24: uint16(176), + 25: uint16(20825), + 26: uint16(20827), + 27: uint16(20830), + 28: uint16(20829), + 29: uint16(20833), + 30: uint16(20835), + 31: uint16(21991), + 32: uint16(29929), + 33: uint16(31950), + 34: uint16(9601), + 35: uint16(9602), + 36: uint16(9603), + 37: uint16(9604), + 38: uint16(9605), + 39: uint16(9606), + 40: uint16(9607), + 41: uint16(9608), + 42: uint16(9615), + 43: uint16(9614), + 44: uint16(9613), + 45: uint16(9612), + 46: uint16(9611), + 47: uint16(9610), + 48: uint16(9609), + 49: uint16(9532), + 50: uint16(9524), + 51: uint16(9516), + 52: uint16(9508), + 53: uint16(9500), + 54: uint16(9620), + 55: uint16(9472), + 56: uint16(9474), + 57: uint16(9621), + 58: uint16(9484), + 59: uint16(9488), + 60: uint16(9492), + 61: uint16(9496), + 62: uint16(9581), + 63: uint16(9582), + 64: uint16(9584), + 65: uint16(9583), + 66: uint16(9552), + 67: uint16(9566), + 68: uint16(9578), + 69: uint16(9569), + 70: uint16(9698), + 71: uint16(9699), + 72: uint16(9701), + 73: uint16(9700), + 74: uint16(9585), + 75: uint16(9586), + 76: uint16(9587), + 77: uint16(65296), + 78: uint16(65297), + 79: uint16(65298), + 80: uint16(65299), + 81: uint16(65300), + 82: uint16(65301), + 83: uint16(65302), + 84: uint16(65303), + 85: uint16(65304), + 86: uint16(65305), + 87: uint16(8544), + 88: uint16(8545), + 89: uint16(8546), + 90: uint16(8547), + 91: uint16(8548), + 92: uint16(8549), + 93: uint16(8550), + 94: uint16(8551), + 95: uint16(8552), + 96: uint16(8553), + 97: uint16(12321), + 98: uint16(12322), + 99: uint16(12323), + 100: uint16(12324), + 101: uint16(12325), + 102: uint16(12326), + 103: uint16(12327), + 104: uint16(12328), + 105: uint16(12329), + 106: uint16(21313), + 107: uint16(21316), + 108: uint16(21317), + 109: uint16(65313), + 110: uint16(65314), + 111: uint16(65315), + 112: uint16(65316), + 113: uint16(65317), + 114: uint16(65318), + 115: uint16(65319), + 116: uint16(65320), + 117: uint16(65321), + 118: uint16(65322), + 119: uint16(65323), + 120: uint16(65324), + 121: uint16(65325), + 122: uint16(65326), + 123: uint16(65327), + 124: uint16(65328), + 125: uint16(65329), + 126: uint16(65330), + 127: uint16(65331), + 128: uint16(65332), + 129: uint16(65333), + 130: uint16(65334), + 131: uint16(65335), + 132: uint16(65336), + 133: uint16(65337), + 134: uint16(65338), + 135: uint16(65345), + 136: uint16(65346), + 137: uint16(65347), + 138: uint16(65348), + 139: uint16(65349), + 140: uint16(65350), + 141: uint16(65351), + 142: uint16(65352), + 143: uint16(65353), + 144: uint16(65354), + 145: uint16(65355), + 146: uint16(65356), + 147: uint16(65357), + 148: uint16(65358), + 149: uint16(65359), + 150: uint16(65360), + 151: uint16(65361), + 152: uint16(65362), + 153: uint16(65363), + 154: uint16(65364), + 155: uint16(65365), + 156: uint16(65366), + }, + 2: { + 0: uint16(65367), + 1: uint16(65368), + 2: uint16(65369), + 3: uint16(65370), + 4: uint16(913), + 5: uint16(914), + 6: uint16(915), + 7: uint16(916), + 8: uint16(917), + 9: uint16(918), + 10: uint16(919), + 11: uint16(920), + 12: uint16(921), + 13: uint16(922), + 14: uint16(923), + 15: uint16(924), + 16: uint16(925), + 17: uint16(926), + 18: uint16(927), + 19: uint16(928), + 20: uint16(929), + 21: uint16(931), + 22: uint16(932), + 23: uint16(933), + 24: uint16(934), + 25: uint16(935), + 26: uint16(936), + 27: uint16(937), + 28: uint16(945), + 29: uint16(946), + 30: uint16(947), + 31: uint16(948), + 32: uint16(949), + 33: uint16(950), + 34: uint16(951), + 35: uint16(952), + 36: uint16(953), + 37: uint16(954), + 38: uint16(955), + 39: uint16(956), + 40: uint16(957), + 41: uint16(958), + 42: uint16(959), + 43: uint16(960), + 44: uint16(961), + 45: uint16(963), + 46: uint16(964), + 47: uint16(965), + 48: uint16(966), + 49: uint16(967), + 50: uint16(968), + 51: uint16(969), + 52: uint16(12549), + 53: uint16(12550), + 54: uint16(12551), + 55: uint16(12552), + 56: uint16(12553), + 57: uint16(12554), + 58: uint16(12555), + 59: uint16(12556), + 60: uint16(12557), + 61: uint16(12558), + 62: uint16(12559), + 63: uint16(12560), + 64: uint16(12561), + 65: uint16(12562), + 66: uint16(12563), + 67: uint16(12564), + 68: uint16(12565), + 69: uint16(12566), + 70: uint16(12567), + 71: uint16(12568), + 72: uint16(12569), + 73: uint16(12570), + 74: uint16(12571), + 75: uint16(12572), + 76: uint16(12573), + 77: uint16(12574), + 78: uint16(12575), + 79: uint16(12576), + 80: uint16(12577), + 81: uint16(12578), + 82: uint16(12579), + 83: uint16(12580), + 84: uint16(12581), + 85: uint16(12582), + 86: uint16(12583), + 87: uint16(12584), + 88: uint16(12585), + 89: uint16(729), + 90: uint16(713), + 91: uint16(714), + 92: uint16(711), + 93: uint16(715), + 94: uint16(9216), + 95: uint16(9217), + 96: uint16(9218), + 97: uint16(9219), + 98: uint16(9220), + 99: uint16(9221), + 100: uint16(9222), + 101: uint16(9223), + 102: uint16(9224), + 103: uint16(9225), + 104: uint16(9226), + 105: uint16(9227), + 106: uint16(9228), + 107: uint16(9229), + 108: uint16(9230), + 109: uint16(9231), + 110: uint16(9232), + 111: uint16(9233), + 112: uint16(9234), + 113: uint16(9235), + 114: uint16(9236), + 115: uint16(9237), + 116: uint16(9238), + 117: uint16(9239), + 118: uint16(9240), + 119: uint16(9241), + 120: uint16(9242), + 121: uint16(9243), + 122: uint16(9244), + 123: uint16(9245), + 124: uint16(9246), + 125: uint16(9247), + 126: uint16(9249), + 127: uint16(8364), + }, + 3: { + 0: uint16(19968), + 1: uint16(20057), + 2: uint16(19969), + 3: uint16(19971), + 4: uint16(20035), + 5: uint16(20061), + 6: uint16(20102), + 7: uint16(20108), + 8: uint16(20154), + 9: uint16(20799), + 10: uint16(20837), + 11: uint16(20843), + 12: uint16(20960), + 13: uint16(20992), + 14: uint16(20993), + 15: uint16(21147), + 16: uint16(21269), + 17: uint16(21313), + 18: uint16(21340), + 19: uint16(21448), + 20: uint16(19977), + 21: uint16(19979), + 22: uint16(19976), + 23: uint16(19978), + 24: uint16(20011), + 25: uint16(20024), + 26: uint16(20961), + 27: uint16(20037), + 28: uint16(20040), + 29: uint16(20063), + 30: uint16(20062), + 31: uint16(20110), + 32: uint16(20129), + 33: uint16(20800), + 34: uint16(20995), + 35: uint16(21242), + 36: uint16(21315), + 37: uint16(21449), + 38: uint16(21475), + 39: uint16(22303), + 40: uint16(22763), + 41: uint16(22805), + 42: uint16(22823), + 43: uint16(22899), + 44: uint16(23376), + 45: uint16(23377), + 46: uint16(23379), + 47: uint16(23544), + 48: uint16(23567), + 49: uint16(23586), + 50: uint16(23608), + 51: uint16(23665), + 52: uint16(24029), + 53: uint16(24037), + 54: uint16(24049), + 55: uint16(24050), + 56: uint16(24051), + 57: uint16(24062), + 58: uint16(24178), + 59: uint16(24318), + 60: uint16(24331), + 61: uint16(24339), + 62: uint16(25165), + 63: uint16(19985), + 64: uint16(19984), + 65: uint16(19981), + 66: uint16(20013), + 67: uint16(20016), + 68: uint16(20025), + 69: uint16(20043), + 70: uint16(23609), + 71: uint16(20104), + 72: uint16(20113), + 73: uint16(20117), + 74: uint16(20114), + 75: uint16(20116), + 76: uint16(20130), + 77: uint16(20161), + 78: uint16(20160), + 79: uint16(20163), + 80: uint16(20166), + 81: uint16(20167), + 82: uint16(20173), + 83: uint16(20170), + 84: uint16(20171), + 85: uint16(20164), + 86: uint16(20803), + 87: uint16(20801), + 88: uint16(20839), + 89: uint16(20845), + 90: uint16(20846), + 91: uint16(20844), + 92: uint16(20887), + 93: uint16(20982), + 94: uint16(20998), + 95: uint16(20999), + 96: uint16(21000), + 97: uint16(21243), + 98: uint16(21246), + 99: uint16(21247), + 100: uint16(21270), + 101: uint16(21305), + 102: uint16(21320), + 103: uint16(21319), + 104: uint16(21317), + 105: uint16(21342), + 106: uint16(21380), + 107: uint16(21451), + 108: uint16(21450), + 109: uint16(21453), + 110: uint16(22764), + 111: uint16(22825), + 112: uint16(22827), + 113: uint16(22826), + 114: uint16(22829), + 115: uint16(23380), + 116: uint16(23569), + 117: uint16(23588), + 118: uint16(23610), + 119: uint16(23663), + 120: uint16(24052), + 121: uint16(24187), + 122: uint16(24319), + 123: uint16(24340), + 124: uint16(24341), + 125: uint16(24515), + 126: uint16(25096), + 127: uint16(25142), + 128: uint16(25163), + 129: uint16(25166), + 130: uint16(25903), + 131: uint16(25991), + 132: uint16(26007), + 133: uint16(26020), + 134: uint16(26041), + 135: uint16(26085), + 136: uint16(26352), + 137: uint16(26376), + 138: uint16(26408), + 139: uint16(27424), + 140: uint16(27490), + 141: uint16(27513), + 142: uint16(27595), + 143: uint16(27604), + 144: uint16(27611), + 145: uint16(27663), + 146: uint16(27700), + 147: uint16(28779), + 148: uint16(29226), + 149: uint16(29238), + 150: uint16(29243), + 151: uint16(29255), + 152: uint16(29273), + 153: uint16(29275), + 154: uint16(29356), + 155: uint16(29579), + 156: uint16(19993), + }, + 4: { + 0: uint16(19990), + 1: uint16(19989), + 2: uint16(19988), + 3: uint16(19992), + 4: uint16(20027), + 5: uint16(20045), + 6: uint16(20047), + 7: uint16(20046), + 8: uint16(20197), + 9: uint16(20184), + 10: uint16(20180), + 11: uint16(20181), + 12: uint16(20182), + 13: uint16(20183), + 14: uint16(20195), + 15: uint16(20196), + 16: uint16(20185), + 17: uint16(20190), + 18: uint16(20805), + 19: uint16(20804), + 20: uint16(20873), + 21: uint16(20874), + 22: uint16(20908), + 23: uint16(20985), + 24: uint16(20986), + 25: uint16(20984), + 26: uint16(21002), + 27: uint16(21152), + 28: uint16(21151), + 29: uint16(21253), + 30: uint16(21254), + 31: uint16(21271), + 32: uint16(21277), + 33: uint16(20191), + 34: uint16(21322), + 35: uint16(21321), + 36: uint16(21345), + 37: uint16(21344), + 38: uint16(21359), + 39: uint16(21358), + 40: uint16(21435), + 41: uint16(21487), + 42: uint16(21476), + 43: uint16(21491), + 44: uint16(21484), + 45: uint16(21486), + 46: uint16(21481), + 47: uint16(21480), + 48: uint16(21500), + 49: uint16(21496), + 50: uint16(21493), + 51: uint16(21483), + 52: uint16(21478), + 53: uint16(21482), + 54: uint16(21490), + 55: uint16(21489), + 56: uint16(21488), + 57: uint16(21477), + 58: uint16(21485), + 59: uint16(21499), + 60: uint16(22235), + 61: uint16(22234), + 62: uint16(22806), + 63: uint16(22830), + 64: uint16(22833), + 65: uint16(22900), + 66: uint16(22902), + 67: uint16(23381), + 68: uint16(23427), + 69: uint16(23612), + 70: uint16(24040), + 71: uint16(24039), + 72: uint16(24038), + 73: uint16(24066), + 74: uint16(24067), + 75: uint16(24179), + 76: uint16(24188), + 77: uint16(24321), + 78: uint16(24344), + 79: uint16(24343), + 80: uint16(24517), + 81: uint16(25098), + 82: uint16(25171), + 83: uint16(25172), + 84: uint16(25170), + 85: uint16(25169), + 86: uint16(26021), + 87: uint16(26086), + 88: uint16(26414), + 89: uint16(26412), + 90: uint16(26410), + 91: uint16(26411), + 92: uint16(26413), + 93: uint16(27491), + 94: uint16(27597), + 95: uint16(27665), + 96: uint16(27664), + 97: uint16(27704), + 98: uint16(27713), + 99: uint16(27712), + 100: uint16(27710), + 101: uint16(29359), + 102: uint16(29572), + 103: uint16(29577), + 104: uint16(29916), + 105: uint16(29926), + 106: uint16(29976), + 107: uint16(29983), + 108: uint16(29992), + 109: uint16(29993), + 110: uint16(30000), + 111: uint16(30001), + 112: uint16(30002), + 113: uint16(30003), + 114: uint16(30091), + 115: uint16(30333), + 116: uint16(30382), + 117: uint16(30399), + 118: uint16(30446), + 119: uint16(30683), + 120: uint16(30690), + 121: uint16(30707), + 122: uint16(31034), + 123: uint16(31166), + 124: uint16(31348), + 125: uint16(31435), + 126: uint16(19998), + 127: uint16(19999), + 128: uint16(20050), + 129: uint16(20051), + 130: uint16(20073), + 131: uint16(20121), + 132: uint16(20132), + 133: uint16(20134), + 134: uint16(20133), + 135: uint16(20223), + 136: uint16(20233), + 137: uint16(20249), + 138: uint16(20234), + 139: uint16(20245), + 140: uint16(20237), + 141: uint16(20240), + 142: uint16(20241), + 143: uint16(20239), + 144: uint16(20210), + 145: uint16(20214), + 146: uint16(20219), + 147: uint16(20208), + 148: uint16(20211), + 149: uint16(20221), + 150: uint16(20225), + 151: uint16(20235), + 152: uint16(20809), + 153: uint16(20807), + 154: uint16(20806), + 155: uint16(20808), + 156: uint16(20840), + }, + 5: { + 0: uint16(20849), + 1: uint16(20877), + 2: uint16(20912), + 3: uint16(21015), + 4: uint16(21009), + 5: uint16(21010), + 6: uint16(21006), + 7: uint16(21014), + 8: uint16(21155), + 9: uint16(21256), + 10: uint16(21281), + 11: uint16(21280), + 12: uint16(21360), + 13: uint16(21361), + 14: uint16(21513), + 15: uint16(21519), + 16: uint16(21516), + 17: uint16(21514), + 18: uint16(21520), + 19: uint16(21505), + 20: uint16(21515), + 21: uint16(21508), + 22: uint16(21521), + 23: uint16(21517), + 24: uint16(21512), + 25: uint16(21507), + 26: uint16(21518), + 27: uint16(21510), + 28: uint16(21522), + 29: uint16(22240), + 30: uint16(22238), + 31: uint16(22237), + 32: uint16(22323), + 33: uint16(22320), + 34: uint16(22312), + 35: uint16(22317), + 36: uint16(22316), + 37: uint16(22319), + 38: uint16(22313), + 39: uint16(22809), + 40: uint16(22810), + 41: uint16(22839), + 42: uint16(22840), + 43: uint16(22916), + 44: uint16(22904), + 45: uint16(22915), + 46: uint16(22909), + 47: uint16(22905), + 48: uint16(22914), + 49: uint16(22913), + 50: uint16(23383), + 51: uint16(23384), + 52: uint16(23431), + 53: uint16(23432), + 54: uint16(23429), + 55: uint16(23433), + 56: uint16(23546), + 57: uint16(23574), + 58: uint16(23673), + 59: uint16(24030), + 60: uint16(24070), + 61: uint16(24182), + 62: uint16(24180), + 63: uint16(24335), + 64: uint16(24347), + 65: uint16(24537), + 66: uint16(24534), + 67: uint16(25102), + 68: uint16(25100), + 69: uint16(25101), + 70: uint16(25104), + 71: uint16(25187), + 72: uint16(25179), + 73: uint16(25176), + 74: uint16(25910), + 75: uint16(26089), + 76: uint16(26088), + 77: uint16(26092), + 78: uint16(26093), + 79: uint16(26354), + 80: uint16(26355), + 81: uint16(26377), + 82: uint16(26429), + 83: uint16(26420), + 84: uint16(26417), + 85: uint16(26421), + 86: uint16(27425), + 87: uint16(27492), + 88: uint16(27515), + 89: uint16(27670), + 90: uint16(27741), + 91: uint16(27735), + 92: uint16(27737), + 93: uint16(27743), + 94: uint16(27744), + 95: uint16(27728), + 96: uint16(27733), + 97: uint16(27745), + 98: uint16(27739), + 99: uint16(27725), + 100: uint16(27726), + 101: uint16(28784), + 102: uint16(29279), + 103: uint16(29277), + 104: uint16(30334), + 105: uint16(31481), + 106: uint16(31859), + 107: uint16(31992), + 108: uint16(32566), + 109: uint16(32650), + 110: uint16(32701), + 111: uint16(32769), + 112: uint16(32771), + 113: uint16(32780), + 114: uint16(32786), + 115: uint16(32819), + 116: uint16(32895), + 117: uint16(32905), + 118: uint16(32907), + 119: uint16(32908), + 120: uint16(33251), + 121: uint16(33258), + 122: uint16(33267), + 123: uint16(33276), + 124: uint16(33292), + 125: uint16(33307), + 126: uint16(33311), + 127: uint16(33390), + 128: uint16(33394), + 129: uint16(33406), + 130: uint16(34411), + 131: uint16(34880), + 132: uint16(34892), + 133: uint16(34915), + 134: uint16(35199), + 135: uint16(38433), + 136: uint16(20018), + 137: uint16(20136), + 138: uint16(20301), + 139: uint16(20303), + 140: uint16(20295), + 141: uint16(20311), + 142: uint16(20318), + 143: uint16(20276), + 144: uint16(20315), + 145: uint16(20309), + 146: uint16(20272), + 147: uint16(20304), + 148: uint16(20305), + 149: uint16(20285), + 150: uint16(20282), + 151: uint16(20280), + 152: uint16(20291), + 153: uint16(20308), + 154: uint16(20284), + 155: uint16(20294), + 156: uint16(20323), + }, + 6: { + 0: uint16(20316), + 1: uint16(20320), + 2: uint16(20271), + 3: uint16(20302), + 4: uint16(20278), + 5: uint16(20313), + 6: uint16(20317), + 7: uint16(20296), + 8: uint16(20314), + 9: uint16(20812), + 10: uint16(20811), + 11: uint16(20813), + 12: uint16(20853), + 13: uint16(20918), + 14: uint16(20919), + 15: uint16(21029), + 16: uint16(21028), + 17: uint16(21033), + 18: uint16(21034), + 19: uint16(21032), + 20: uint16(21163), + 21: uint16(21161), + 22: uint16(21162), + 23: uint16(21164), + 24: uint16(21283), + 25: uint16(21363), + 26: uint16(21365), + 27: uint16(21533), + 28: uint16(21549), + 29: uint16(21534), + 30: uint16(21566), + 31: uint16(21542), + 32: uint16(21582), + 33: uint16(21543), + 34: uint16(21574), + 35: uint16(21571), + 36: uint16(21555), + 37: uint16(21576), + 38: uint16(21570), + 39: uint16(21531), + 40: uint16(21545), + 41: uint16(21578), + 42: uint16(21561), + 43: uint16(21563), + 44: uint16(21560), + 45: uint16(21550), + 46: uint16(21557), + 47: uint16(21558), + 48: uint16(21536), + 49: uint16(21564), + 50: uint16(21568), + 51: uint16(21553), + 52: uint16(21547), + 53: uint16(21535), + 54: uint16(21548), + 55: uint16(22250), + 56: uint16(22256), + 57: uint16(22244), + 58: uint16(22251), + 59: uint16(22346), + 60: uint16(22353), + 61: uint16(22336), + 62: uint16(22349), + 63: uint16(22343), + 64: uint16(22350), + 65: uint16(22334), + 66: uint16(22352), + 67: uint16(22351), + 68: uint16(22331), + 69: uint16(22767), + 70: uint16(22846), + 71: uint16(22941), + 72: uint16(22930), + 73: uint16(22952), + 74: uint16(22942), + 75: uint16(22947), + 76: uint16(22937), + 77: uint16(22934), + 78: uint16(22925), + 79: uint16(22948), + 80: uint16(22931), + 81: uint16(22922), + 82: uint16(22949), + 83: uint16(23389), + 84: uint16(23388), + 85: uint16(23386), + 86: uint16(23387), + 87: uint16(23436), + 88: uint16(23435), + 89: uint16(23439), + 90: uint16(23596), + 91: uint16(23616), + 92: uint16(23617), + 93: uint16(23615), + 94: uint16(23614), + 95: uint16(23696), + 96: uint16(23697), + 97: uint16(23700), + 98: uint16(23692), + 99: uint16(24043), + 100: uint16(24076), + 101: uint16(24207), + 102: uint16(24199), + 103: uint16(24202), + 104: uint16(24311), + 105: uint16(24324), + 106: uint16(24351), + 107: uint16(24420), + 108: uint16(24418), + 109: uint16(24439), + 110: uint16(24441), + 111: uint16(24536), + 112: uint16(24524), + 113: uint16(24535), + 114: uint16(24525), + 115: uint16(24561), + 116: uint16(24555), + 117: uint16(24568), + 118: uint16(24554), + 119: uint16(25106), + 120: uint16(25105), + 121: uint16(25220), + 122: uint16(25239), + 123: uint16(25238), + 124: uint16(25216), + 125: uint16(25206), + 126: uint16(25225), + 127: uint16(25197), + 128: uint16(25226), + 129: uint16(25212), + 130: uint16(25214), + 131: uint16(25209), + 132: uint16(25203), + 133: uint16(25234), + 134: uint16(25199), + 135: uint16(25240), + 136: uint16(25198), + 137: uint16(25237), + 138: uint16(25235), + 139: uint16(25233), + 140: uint16(25222), + 141: uint16(25913), + 142: uint16(25915), + 143: uint16(25912), + 144: uint16(26097), + 145: uint16(26356), + 146: uint16(26463), + 147: uint16(26446), + 148: uint16(26447), + 149: uint16(26448), + 150: uint16(26449), + 151: uint16(26460), + 152: uint16(26454), + 153: uint16(26462), + 154: uint16(26441), + 155: uint16(26438), + 156: uint16(26464), + }, + 7: { + 0: uint16(26451), + 1: uint16(26455), + 2: uint16(27493), + 3: uint16(27599), + 4: uint16(27714), + 5: uint16(27742), + 6: uint16(27801), + 7: uint16(27777), + 8: uint16(27784), + 9: uint16(27785), + 10: uint16(27781), + 11: uint16(27803), + 12: uint16(27754), + 13: uint16(27770), + 14: uint16(27792), + 15: uint16(27760), + 16: uint16(27788), + 17: uint16(27752), + 18: uint16(27798), + 19: uint16(27794), + 20: uint16(27773), + 21: uint16(27779), + 22: uint16(27762), + 23: uint16(27774), + 24: uint16(27764), + 25: uint16(27782), + 26: uint16(27766), + 27: uint16(27789), + 28: uint16(27796), + 29: uint16(27800), + 30: uint16(27778), + 31: uint16(28790), + 32: uint16(28796), + 33: uint16(28797), + 34: uint16(28792), + 35: uint16(29282), + 36: uint16(29281), + 37: uint16(29280), + 38: uint16(29380), + 39: uint16(29378), + 40: uint16(29590), + 41: uint16(29996), + 42: uint16(29995), + 43: uint16(30007), + 44: uint16(30008), + 45: uint16(30338), + 46: uint16(30447), + 47: uint16(30691), + 48: uint16(31169), + 49: uint16(31168), + 50: uint16(31167), + 51: uint16(31350), + 52: uint16(31995), + 53: uint16(32597), + 54: uint16(32918), + 55: uint16(32915), + 56: uint16(32925), + 57: uint16(32920), + 58: uint16(32923), + 59: uint16(32922), + 60: uint16(32946), + 61: uint16(33391), + 62: uint16(33426), + 63: uint16(33419), + 64: uint16(33421), + 65: uint16(35211), + 66: uint16(35282), + 67: uint16(35328), + 68: uint16(35895), + 69: uint16(35910), + 70: uint16(35925), + 71: uint16(35997), + 72: uint16(36196), + 73: uint16(36208), + 74: uint16(36275), + 75: uint16(36523), + 76: uint16(36554), + 77: uint16(36763), + 78: uint16(36784), + 79: uint16(36802), + 80: uint16(36806), + 81: uint16(36805), + 82: uint16(36804), + 83: uint16(24033), + 84: uint16(37009), + 85: uint16(37026), + 86: uint16(37034), + 87: uint16(37030), + 88: uint16(37027), + 89: uint16(37193), + 90: uint16(37318), + 91: uint16(37324), + 92: uint16(38450), + 93: uint16(38446), + 94: uint16(38449), + 95: uint16(38442), + 96: uint16(38444), + 97: uint16(20006), + 98: uint16(20054), + 99: uint16(20083), + 100: uint16(20107), + 101: uint16(20123), + 102: uint16(20126), + 103: uint16(20139), + 104: uint16(20140), + 105: uint16(20335), + 106: uint16(20381), + 107: uint16(20365), + 108: uint16(20339), + 109: uint16(20351), + 110: uint16(20332), + 111: uint16(20379), + 112: uint16(20363), + 113: uint16(20358), + 114: uint16(20355), + 115: uint16(20336), + 116: uint16(20341), + 117: uint16(20360), + 118: uint16(20329), + 119: uint16(20347), + 120: uint16(20374), + 121: uint16(20350), + 122: uint16(20367), + 123: uint16(20369), + 124: uint16(20346), + 125: uint16(20820), + 126: uint16(20818), + 127: uint16(20821), + 128: uint16(20841), + 129: uint16(20855), + 130: uint16(20854), + 131: uint16(20856), + 132: uint16(20925), + 133: uint16(20989), + 134: uint16(21051), + 135: uint16(21048), + 136: uint16(21047), + 137: uint16(21050), + 138: uint16(21040), + 139: uint16(21038), + 140: uint16(21046), + 141: uint16(21057), + 142: uint16(21182), + 143: uint16(21179), + 144: uint16(21330), + 145: uint16(21332), + 146: uint16(21331), + 147: uint16(21329), + 148: uint16(21350), + 149: uint16(21367), + 150: uint16(21368), + 151: uint16(21369), + 152: uint16(21462), + 153: uint16(21460), + 154: uint16(21463), + 155: uint16(21619), + 156: uint16(21621), + }, + 8: { + 0: uint16(21654), + 1: uint16(21624), + 2: uint16(21653), + 3: uint16(21632), + 4: uint16(21627), + 5: uint16(21623), + 6: uint16(21636), + 7: uint16(21650), + 8: uint16(21638), + 9: uint16(21628), + 10: uint16(21648), + 11: uint16(21617), + 12: uint16(21622), + 13: uint16(21644), + 14: uint16(21658), + 15: uint16(21602), + 16: uint16(21608), + 17: uint16(21643), + 18: uint16(21629), + 19: uint16(21646), + 20: uint16(22266), + 21: uint16(22403), + 22: uint16(22391), + 23: uint16(22378), + 24: uint16(22377), + 25: uint16(22369), + 26: uint16(22374), + 27: uint16(22372), + 28: uint16(22396), + 29: uint16(22812), + 30: uint16(22857), + 31: uint16(22855), + 32: uint16(22856), + 33: uint16(22852), + 34: uint16(22868), + 35: uint16(22974), + 36: uint16(22971), + 37: uint16(22996), + 38: uint16(22969), + 39: uint16(22958), + 40: uint16(22993), + 41: uint16(22982), + 42: uint16(22992), + 43: uint16(22989), + 44: uint16(22987), + 45: uint16(22995), + 46: uint16(22986), + 47: uint16(22959), + 48: uint16(22963), + 49: uint16(22994), + 50: uint16(22981), + 51: uint16(23391), + 52: uint16(23396), + 53: uint16(23395), + 54: uint16(23447), + 55: uint16(23450), + 56: uint16(23448), + 57: uint16(23452), + 58: uint16(23449), + 59: uint16(23451), + 60: uint16(23578), + 61: uint16(23624), + 62: uint16(23621), + 63: uint16(23622), + 64: uint16(23735), + 65: uint16(23713), + 66: uint16(23736), + 67: uint16(23721), + 68: uint16(23723), + 69: uint16(23729), + 70: uint16(23731), + 71: uint16(24088), + 72: uint16(24090), + 73: uint16(24086), + 74: uint16(24085), + 75: uint16(24091), + 76: uint16(24081), + 77: uint16(24184), + 78: uint16(24218), + 79: uint16(24215), + 80: uint16(24220), + 81: uint16(24213), + 82: uint16(24214), + 83: uint16(24310), + 84: uint16(24358), + 85: uint16(24359), + 86: uint16(24361), + 87: uint16(24448), + 88: uint16(24449), + 89: uint16(24447), + 90: uint16(24444), + 91: uint16(24541), + 92: uint16(24544), + 93: uint16(24573), + 94: uint16(24565), + 95: uint16(24575), + 96: uint16(24591), + 97: uint16(24596), + 98: uint16(24623), + 99: uint16(24629), + 100: uint16(24598), + 101: uint16(24618), + 102: uint16(24597), + 103: uint16(24609), + 104: uint16(24615), + 105: uint16(24617), + 106: uint16(24619), + 107: uint16(24603), + 108: uint16(25110), + 109: uint16(25109), + 110: uint16(25151), + 111: uint16(25150), + 112: uint16(25152), + 113: uint16(25215), + 114: uint16(25289), + 115: uint16(25292), + 116: uint16(25284), + 117: uint16(25279), + 118: uint16(25282), + 119: uint16(25273), + 120: uint16(25298), + 121: uint16(25307), + 122: uint16(25259), + 123: uint16(25299), + 124: uint16(25300), + 125: uint16(25291), + 126: uint16(25288), + 127: uint16(25256), + 128: uint16(25277), + 129: uint16(25276), + 130: uint16(25296), + 131: uint16(25305), + 132: uint16(25287), + 133: uint16(25293), + 134: uint16(25269), + 135: uint16(25306), + 136: uint16(25265), + 137: uint16(25304), + 138: uint16(25302), + 139: uint16(25303), + 140: uint16(25286), + 141: uint16(25260), + 142: uint16(25294), + 143: uint16(25918), + 144: uint16(26023), + 145: uint16(26044), + 146: uint16(26106), + 147: uint16(26132), + 148: uint16(26131), + 149: uint16(26124), + 150: uint16(26118), + 151: uint16(26114), + 152: uint16(26126), + 153: uint16(26112), + 154: uint16(26127), + 155: uint16(26133), + 156: uint16(26122), + }, + 9: { + 0: uint16(26119), + 1: uint16(26381), + 2: uint16(26379), + 3: uint16(26477), + 4: uint16(26507), + 5: uint16(26517), + 6: uint16(26481), + 7: uint16(26524), + 8: uint16(26483), + 9: uint16(26487), + 10: uint16(26503), + 11: uint16(26525), + 12: uint16(26519), + 13: uint16(26479), + 14: uint16(26480), + 15: uint16(26495), + 16: uint16(26505), + 17: uint16(26494), + 18: uint16(26512), + 19: uint16(26485), + 20: uint16(26522), + 21: uint16(26515), + 22: uint16(26492), + 23: uint16(26474), + 24: uint16(26482), + 25: uint16(27427), + 26: uint16(27494), + 27: uint16(27495), + 28: uint16(27519), + 29: uint16(27667), + 30: uint16(27675), + 31: uint16(27875), + 32: uint16(27880), + 33: uint16(27891), + 34: uint16(27825), + 35: uint16(27852), + 36: uint16(27877), + 37: uint16(27827), + 38: uint16(27837), + 39: uint16(27838), + 40: uint16(27836), + 41: uint16(27874), + 42: uint16(27819), + 43: uint16(27861), + 44: uint16(27859), + 45: uint16(27832), + 46: uint16(27844), + 47: uint16(27833), + 48: uint16(27841), + 49: uint16(27822), + 50: uint16(27863), + 51: uint16(27845), + 52: uint16(27889), + 53: uint16(27839), + 54: uint16(27835), + 55: uint16(27873), + 56: uint16(27867), + 57: uint16(27850), + 58: uint16(27820), + 59: uint16(27887), + 60: uint16(27868), + 61: uint16(27862), + 62: uint16(27872), + 63: uint16(28821), + 64: uint16(28814), + 65: uint16(28818), + 66: uint16(28810), + 67: uint16(28825), + 68: uint16(29228), + 69: uint16(29229), + 70: uint16(29240), + 71: uint16(29256), + 72: uint16(29287), + 73: uint16(29289), + 74: uint16(29376), + 75: uint16(29390), + 76: uint16(29401), + 77: uint16(29399), + 78: uint16(29392), + 79: uint16(29609), + 80: uint16(29608), + 81: uint16(29599), + 82: uint16(29611), + 83: uint16(29605), + 84: uint16(30013), + 85: uint16(30109), + 86: uint16(30105), + 87: uint16(30106), + 88: uint16(30340), + 89: uint16(30402), + 90: uint16(30450), + 91: uint16(30452), + 92: uint16(30693), + 93: uint16(30717), + 94: uint16(31038), + 95: uint16(31040), + 96: uint16(31041), + 97: uint16(31177), + 98: uint16(31176), + 99: uint16(31354), + 100: uint16(31353), + 101: uint16(31482), + 102: uint16(31998), + 103: uint16(32596), + 104: uint16(32652), + 105: uint16(32651), + 106: uint16(32773), + 107: uint16(32954), + 108: uint16(32933), + 109: uint16(32930), + 110: uint16(32945), + 111: uint16(32929), + 112: uint16(32939), + 113: uint16(32937), + 114: uint16(32948), + 115: uint16(32938), + 116: uint16(32943), + 117: uint16(33253), + 118: uint16(33278), + 119: uint16(33293), + 120: uint16(33459), + 121: uint16(33437), + 122: uint16(33433), + 123: uint16(33453), + 124: uint16(33469), + 125: uint16(33439), + 126: uint16(33465), + 127: uint16(33457), + 128: uint16(33452), + 129: uint16(33445), + 130: uint16(33455), + 131: uint16(33464), + 132: uint16(33443), + 133: uint16(33456), + 134: uint16(33470), + 135: uint16(33463), + 136: uint16(34382), + 137: uint16(34417), + 138: uint16(21021), + 139: uint16(34920), + 140: uint16(36555), + 141: uint16(36814), + 142: uint16(36820), + 143: uint16(36817), + 144: uint16(37045), + 145: uint16(37048), + 146: uint16(37041), + 147: uint16(37046), + 148: uint16(37319), + 149: uint16(37329), + 150: uint16(38263), + 151: uint16(38272), + 152: uint16(38428), + 153: uint16(38464), + 154: uint16(38463), + 155: uint16(38459), + 156: uint16(38468), + }, + 10: { + 0: uint16(38466), + 1: uint16(38585), + 2: uint16(38632), + 3: uint16(38738), + 4: uint16(38750), + 5: uint16(20127), + 6: uint16(20141), + 7: uint16(20142), + 8: uint16(20449), + 9: uint16(20405), + 10: uint16(20399), + 11: uint16(20415), + 12: uint16(20448), + 13: uint16(20433), + 14: uint16(20431), + 15: uint16(20445), + 16: uint16(20419), + 17: uint16(20406), + 18: uint16(20440), + 19: uint16(20447), + 20: uint16(20426), + 21: uint16(20439), + 22: uint16(20398), + 23: uint16(20432), + 24: uint16(20420), + 25: uint16(20418), + 26: uint16(20442), + 27: uint16(20430), + 28: uint16(20446), + 29: uint16(20407), + 30: uint16(20823), + 31: uint16(20882), + 32: uint16(20881), + 33: uint16(20896), + 34: uint16(21070), + 35: uint16(21059), + 36: uint16(21066), + 37: uint16(21069), + 38: uint16(21068), + 39: uint16(21067), + 40: uint16(21063), + 41: uint16(21191), + 42: uint16(21193), + 43: uint16(21187), + 44: uint16(21185), + 45: uint16(21261), + 46: uint16(21335), + 47: uint16(21371), + 48: uint16(21402), + 49: uint16(21467), + 50: uint16(21676), + 51: uint16(21696), + 52: uint16(21672), + 53: uint16(21710), + 54: uint16(21705), + 55: uint16(21688), + 56: uint16(21670), + 57: uint16(21683), + 58: uint16(21703), + 59: uint16(21698), + 60: uint16(21693), + 61: uint16(21674), + 62: uint16(21697), + 63: uint16(21700), + 64: uint16(21704), + 65: uint16(21679), + 66: uint16(21675), + 67: uint16(21681), + 68: uint16(21691), + 69: uint16(21673), + 70: uint16(21671), + 71: uint16(21695), + 72: uint16(22271), + 73: uint16(22402), + 74: uint16(22411), + 75: uint16(22432), + 76: uint16(22435), + 77: uint16(22434), + 78: uint16(22478), + 79: uint16(22446), + 80: uint16(22419), + 81: uint16(22869), + 82: uint16(22865), + 83: uint16(22863), + 84: uint16(22862), + 85: uint16(22864), + 86: uint16(23004), + 87: uint16(23000), + 88: uint16(23039), + 89: uint16(23011), + 90: uint16(23016), + 91: uint16(23043), + 92: uint16(23013), + 93: uint16(23018), + 94: uint16(23002), + 95: uint16(23014), + 96: uint16(23041), + 97: uint16(23035), + 98: uint16(23401), + 99: uint16(23459), + 100: uint16(23462), + 101: uint16(23460), + 102: uint16(23458), + 103: uint16(23461), + 104: uint16(23553), + 105: uint16(23630), + 106: uint16(23631), + 107: uint16(23629), + 108: uint16(23627), + 109: uint16(23769), + 110: uint16(23762), + 111: uint16(24055), + 112: uint16(24093), + 113: uint16(24101), + 114: uint16(24095), + 115: uint16(24189), + 116: uint16(24224), + 117: uint16(24230), + 118: uint16(24314), + 119: uint16(24328), + 120: uint16(24365), + 121: uint16(24421), + 122: uint16(24456), + 123: uint16(24453), + 124: uint16(24458), + 125: uint16(24459), + 126: uint16(24455), + 127: uint16(24460), + 128: uint16(24457), + 129: uint16(24594), + 130: uint16(24605), + 131: uint16(24608), + 132: uint16(24613), + 133: uint16(24590), + 134: uint16(24616), + 135: uint16(24653), + 136: uint16(24688), + 137: uint16(24680), + 138: uint16(24674), + 139: uint16(24646), + 140: uint16(24643), + 141: uint16(24684), + 142: uint16(24683), + 143: uint16(24682), + 144: uint16(24676), + 145: uint16(25153), + 146: uint16(25308), + 147: uint16(25366), + 148: uint16(25353), + 149: uint16(25340), + 150: uint16(25325), + 151: uint16(25345), + 152: uint16(25326), + 153: uint16(25341), + 154: uint16(25351), + 155: uint16(25329), + 156: uint16(25335), + }, + 11: { + 0: uint16(25327), + 1: uint16(25324), + 2: uint16(25342), + 3: uint16(25332), + 4: uint16(25361), + 5: uint16(25346), + 6: uint16(25919), + 7: uint16(25925), + 8: uint16(26027), + 9: uint16(26045), + 10: uint16(26082), + 11: uint16(26149), + 12: uint16(26157), + 13: uint16(26144), + 14: uint16(26151), + 15: uint16(26159), + 16: uint16(26143), + 17: uint16(26152), + 18: uint16(26161), + 19: uint16(26148), + 20: uint16(26359), + 21: uint16(26623), + 22: uint16(26579), + 23: uint16(26609), + 24: uint16(26580), + 25: uint16(26576), + 26: uint16(26604), + 27: uint16(26550), + 28: uint16(26543), + 29: uint16(26613), + 30: uint16(26601), + 31: uint16(26607), + 32: uint16(26564), + 33: uint16(26577), + 34: uint16(26548), + 35: uint16(26586), + 36: uint16(26597), + 37: uint16(26552), + 38: uint16(26575), + 39: uint16(26590), + 40: uint16(26611), + 41: uint16(26544), + 42: uint16(26585), + 43: uint16(26594), + 44: uint16(26589), + 45: uint16(26578), + 46: uint16(27498), + 47: uint16(27523), + 48: uint16(27526), + 49: uint16(27573), + 50: uint16(27602), + 51: uint16(27607), + 52: uint16(27679), + 53: uint16(27849), + 54: uint16(27915), + 55: uint16(27954), + 56: uint16(27946), + 57: uint16(27969), + 58: uint16(27941), + 59: uint16(27916), + 60: uint16(27953), + 61: uint16(27934), + 62: uint16(27927), + 63: uint16(27963), + 64: uint16(27965), + 65: uint16(27966), + 66: uint16(27958), + 67: uint16(27931), + 68: uint16(27893), + 69: uint16(27961), + 70: uint16(27943), + 71: uint16(27960), + 72: uint16(27945), + 73: uint16(27950), + 74: uint16(27957), + 75: uint16(27918), + 76: uint16(27947), + 77: uint16(28843), + 78: uint16(28858), + 79: uint16(28851), + 80: uint16(28844), + 81: uint16(28847), + 82: uint16(28845), + 83: uint16(28856), + 84: uint16(28846), + 85: uint16(28836), + 86: uint16(29232), + 87: uint16(29298), + 88: uint16(29295), + 89: uint16(29300), + 90: uint16(29417), + 91: uint16(29408), + 92: uint16(29409), + 93: uint16(29623), + 94: uint16(29642), + 95: uint16(29627), + 96: uint16(29618), + 97: uint16(29645), + 98: uint16(29632), + 99: uint16(29619), + 100: uint16(29978), + 101: uint16(29997), + 102: uint16(30031), + 103: uint16(30028), + 104: uint16(30030), + 105: uint16(30027), + 106: uint16(30123), + 107: uint16(30116), + 108: uint16(30117), + 109: uint16(30114), + 110: uint16(30115), + 111: uint16(30328), + 112: uint16(30342), + 113: uint16(30343), + 114: uint16(30344), + 115: uint16(30408), + 116: uint16(30406), + 117: uint16(30403), + 118: uint16(30405), + 119: uint16(30465), + 120: uint16(30457), + 121: uint16(30456), + 122: uint16(30473), + 123: uint16(30475), + 124: uint16(30462), + 125: uint16(30460), + 126: uint16(30471), + 127: uint16(30684), + 128: uint16(30722), + 129: uint16(30740), + 130: uint16(30732), + 131: uint16(30733), + 132: uint16(31046), + 133: uint16(31049), + 134: uint16(31048), + 135: uint16(31047), + 136: uint16(31161), + 137: uint16(31162), + 138: uint16(31185), + 139: uint16(31186), + 140: uint16(31179), + 141: uint16(31359), + 142: uint16(31361), + 143: uint16(31487), + 144: uint16(31485), + 145: uint16(31869), + 146: uint16(32002), + 147: uint16(32005), + 148: uint16(32000), + 149: uint16(32009), + 150: uint16(32007), + 151: uint16(32004), + 152: uint16(32006), + 153: uint16(32568), + 154: uint16(32654), + 155: uint16(32703), + 156: uint16(32772), + }, + 12: { + 0: uint16(32784), + 1: uint16(32781), + 2: uint16(32785), + 3: uint16(32822), + 4: uint16(32982), + 5: uint16(32997), + 6: uint16(32986), + 7: uint16(32963), + 8: uint16(32964), + 9: uint16(32972), + 10: uint16(32993), + 11: uint16(32987), + 12: uint16(32974), + 13: uint16(32990), + 14: uint16(32996), + 15: uint16(32989), + 16: uint16(33268), + 17: uint16(33314), + 18: uint16(33511), + 19: uint16(33539), + 20: uint16(33541), + 21: uint16(33507), + 22: uint16(33499), + 23: uint16(33510), + 24: uint16(33540), + 25: uint16(33509), + 26: uint16(33538), + 27: uint16(33545), + 28: uint16(33490), + 29: uint16(33495), + 30: uint16(33521), + 31: uint16(33537), + 32: uint16(33500), + 33: uint16(33492), + 34: uint16(33489), + 35: uint16(33502), + 36: uint16(33491), + 37: uint16(33503), + 38: uint16(33519), + 39: uint16(33542), + 40: uint16(34384), + 41: uint16(34425), + 42: uint16(34427), + 43: uint16(34426), + 44: uint16(34893), + 45: uint16(34923), + 46: uint16(35201), + 47: uint16(35284), + 48: uint16(35336), + 49: uint16(35330), + 50: uint16(35331), + 51: uint16(35998), + 52: uint16(36000), + 53: uint16(36212), + 54: uint16(36211), + 55: uint16(36276), + 56: uint16(36557), + 57: uint16(36556), + 58: uint16(36848), + 59: uint16(36838), + 60: uint16(36834), + 61: uint16(36842), + 62: uint16(36837), + 63: uint16(36845), + 64: uint16(36843), + 65: uint16(36836), + 66: uint16(36840), + 67: uint16(37066), + 68: uint16(37070), + 69: uint16(37057), + 70: uint16(37059), + 71: uint16(37195), + 72: uint16(37194), + 73: uint16(37325), + 74: uint16(38274), + 75: uint16(38480), + 76: uint16(38475), + 77: uint16(38476), + 78: uint16(38477), + 79: uint16(38754), + 80: uint16(38761), + 81: uint16(38859), + 82: uint16(38893), + 83: uint16(38899), + 84: uint16(38913), + 85: uint16(39080), + 86: uint16(39131), + 87: uint16(39135), + 88: uint16(39318), + 89: uint16(39321), + 90: uint16(20056), + 91: uint16(20147), + 92: uint16(20492), + 93: uint16(20493), + 94: uint16(20515), + 95: uint16(20463), + 96: uint16(20518), + 97: uint16(20517), + 98: uint16(20472), + 99: uint16(20521), + 100: uint16(20502), + 101: uint16(20486), + 102: uint16(20540), + 103: uint16(20511), + 104: uint16(20506), + 105: uint16(20498), + 106: uint16(20497), + 107: uint16(20474), + 108: uint16(20480), + 109: uint16(20500), + 110: uint16(20520), + 111: uint16(20465), + 112: uint16(20513), + 113: uint16(20491), + 114: uint16(20505), + 115: uint16(20504), + 116: uint16(20467), + 117: uint16(20462), + 118: uint16(20525), + 119: uint16(20522), + 120: uint16(20478), + 121: uint16(20523), + 122: uint16(20489), + 123: uint16(20860), + 124: uint16(20900), + 125: uint16(20901), + 126: uint16(20898), + 127: uint16(20941), + 128: uint16(20940), + 129: uint16(20934), + 130: uint16(20939), + 131: uint16(21078), + 132: uint16(21084), + 133: uint16(21076), + 134: uint16(21083), + 135: uint16(21085), + 136: uint16(21290), + 137: uint16(21375), + 138: uint16(21407), + 139: uint16(21405), + 140: uint16(21471), + 141: uint16(21736), + 142: uint16(21776), + 143: uint16(21761), + 144: uint16(21815), + 145: uint16(21756), + 146: uint16(21733), + 147: uint16(21746), + 148: uint16(21766), + 149: uint16(21754), + 150: uint16(21780), + 151: uint16(21737), + 152: uint16(21741), + 153: uint16(21729), + 154: uint16(21769), + 155: uint16(21742), + 156: uint16(21738), + }, + 13: { + 0: uint16(21734), + 1: uint16(21799), + 2: uint16(21767), + 3: uint16(21757), + 4: uint16(21775), + 5: uint16(22275), + 6: uint16(22276), + 7: uint16(22466), + 8: uint16(22484), + 9: uint16(22475), + 10: uint16(22467), + 11: uint16(22537), + 12: uint16(22799), + 13: uint16(22871), + 14: uint16(22872), + 15: uint16(22874), + 16: uint16(23057), + 17: uint16(23064), + 18: uint16(23068), + 19: uint16(23071), + 20: uint16(23067), + 21: uint16(23059), + 22: uint16(23020), + 23: uint16(23072), + 24: uint16(23075), + 25: uint16(23081), + 26: uint16(23077), + 27: uint16(23052), + 28: uint16(23049), + 29: uint16(23403), + 30: uint16(23640), + 31: uint16(23472), + 32: uint16(23475), + 33: uint16(23478), + 34: uint16(23476), + 35: uint16(23470), + 36: uint16(23477), + 37: uint16(23481), + 38: uint16(23480), + 39: uint16(23556), + 40: uint16(23633), + 41: uint16(23637), + 42: uint16(23632), + 43: uint16(23789), + 44: uint16(23805), + 45: uint16(23803), + 46: uint16(23786), + 47: uint16(23784), + 48: uint16(23792), + 49: uint16(23798), + 50: uint16(23809), + 51: uint16(23796), + 52: uint16(24046), + 53: uint16(24109), + 54: uint16(24107), + 55: uint16(24235), + 56: uint16(24237), + 57: uint16(24231), + 58: uint16(24369), + 59: uint16(24466), + 60: uint16(24465), + 61: uint16(24464), + 62: uint16(24665), + 63: uint16(24675), + 64: uint16(24677), + 65: uint16(24656), + 66: uint16(24661), + 67: uint16(24685), + 68: uint16(24681), + 69: uint16(24687), + 70: uint16(24708), + 71: uint16(24735), + 72: uint16(24730), + 73: uint16(24717), + 74: uint16(24724), + 75: uint16(24716), + 76: uint16(24709), + 77: uint16(24726), + 78: uint16(25159), + 79: uint16(25331), + 80: uint16(25352), + 81: uint16(25343), + 82: uint16(25422), + 83: uint16(25406), + 84: uint16(25391), + 85: uint16(25429), + 86: uint16(25410), + 87: uint16(25414), + 88: uint16(25423), + 89: uint16(25417), + 90: uint16(25402), + 91: uint16(25424), + 92: uint16(25405), + 93: uint16(25386), + 94: uint16(25387), + 95: uint16(25384), + 96: uint16(25421), + 97: uint16(25420), + 98: uint16(25928), + 99: uint16(25929), + 100: uint16(26009), + 101: uint16(26049), + 102: uint16(26053), + 103: uint16(26178), + 104: uint16(26185), + 105: uint16(26191), + 106: uint16(26179), + 107: uint16(26194), + 108: uint16(26188), + 109: uint16(26181), + 110: uint16(26177), + 111: uint16(26360), + 112: uint16(26388), + 113: uint16(26389), + 114: uint16(26391), + 115: uint16(26657), + 116: uint16(26680), + 117: uint16(26696), + 118: uint16(26694), + 119: uint16(26707), + 120: uint16(26681), + 121: uint16(26690), + 122: uint16(26708), + 123: uint16(26665), + 124: uint16(26803), + 125: uint16(26647), + 126: uint16(26700), + 127: uint16(26705), + 128: uint16(26685), + 129: uint16(26612), + 130: uint16(26704), + 131: uint16(26688), + 132: uint16(26684), + 133: uint16(26691), + 134: uint16(26666), + 135: uint16(26693), + 136: uint16(26643), + 137: uint16(26648), + 138: uint16(26689), + 139: uint16(27530), + 140: uint16(27529), + 141: uint16(27575), + 142: uint16(27683), + 143: uint16(27687), + 144: uint16(27688), + 145: uint16(27686), + 146: uint16(27684), + 147: uint16(27888), + 148: uint16(28010), + 149: uint16(28053), + 150: uint16(28040), + 151: uint16(28039), + 152: uint16(28006), + 153: uint16(28024), + 154: uint16(28023), + 155: uint16(27993), + 156: uint16(28051), + }, + 14: { + 0: uint16(28012), + 1: uint16(28041), + 2: uint16(28014), + 3: uint16(27994), + 4: uint16(28020), + 5: uint16(28009), + 6: uint16(28044), + 7: uint16(28042), + 8: uint16(28025), + 9: uint16(28037), + 10: uint16(28005), + 11: uint16(28052), + 12: uint16(28874), + 13: uint16(28888), + 14: uint16(28900), + 15: uint16(28889), + 16: uint16(28872), + 17: uint16(28879), + 18: uint16(29241), + 19: uint16(29305), + 20: uint16(29436), + 21: uint16(29433), + 22: uint16(29437), + 23: uint16(29432), + 24: uint16(29431), + 25: uint16(29574), + 26: uint16(29677), + 27: uint16(29705), + 28: uint16(29678), + 29: uint16(29664), + 30: uint16(29674), + 31: uint16(29662), + 32: uint16(30036), + 33: uint16(30045), + 34: uint16(30044), + 35: uint16(30042), + 36: uint16(30041), + 37: uint16(30142), + 38: uint16(30149), + 39: uint16(30151), + 40: uint16(30130), + 41: uint16(30131), + 42: uint16(30141), + 43: uint16(30140), + 44: uint16(30137), + 45: uint16(30146), + 46: uint16(30136), + 47: uint16(30347), + 48: uint16(30384), + 49: uint16(30410), + 50: uint16(30413), + 51: uint16(30414), + 52: uint16(30505), + 53: uint16(30495), + 54: uint16(30496), + 55: uint16(30504), + 56: uint16(30697), + 57: uint16(30768), + 58: uint16(30759), + 59: uint16(30776), + 60: uint16(30749), + 61: uint16(30772), + 62: uint16(30775), + 63: uint16(30757), + 64: uint16(30765), + 65: uint16(30752), + 66: uint16(30751), + 67: uint16(30770), + 68: uint16(31061), + 69: uint16(31056), + 70: uint16(31072), + 71: uint16(31071), + 72: uint16(31062), + 73: uint16(31070), + 74: uint16(31069), + 75: uint16(31063), + 76: uint16(31066), + 77: uint16(31204), + 78: uint16(31203), + 79: uint16(31207), + 80: uint16(31199), + 81: uint16(31206), + 82: uint16(31209), + 83: uint16(31192), + 84: uint16(31364), + 85: uint16(31368), + 86: uint16(31449), + 87: uint16(31494), + 88: uint16(31505), + 89: uint16(31881), + 90: uint16(32033), + 91: uint16(32023), + 92: uint16(32011), + 93: uint16(32010), + 94: uint16(32032), + 95: uint16(32034), + 96: uint16(32020), + 97: uint16(32016), + 98: uint16(32021), + 99: uint16(32026), + 100: uint16(32028), + 101: uint16(32013), + 102: uint16(32025), + 103: uint16(32027), + 104: uint16(32570), + 105: uint16(32607), + 106: uint16(32660), + 107: uint16(32709), + 108: uint16(32705), + 109: uint16(32774), + 110: uint16(32792), + 111: uint16(32789), + 112: uint16(32793), + 113: uint16(32791), + 114: uint16(32829), + 115: uint16(32831), + 116: uint16(33009), + 117: uint16(33026), + 118: uint16(33008), + 119: uint16(33029), + 120: uint16(33005), + 121: uint16(33012), + 122: uint16(33030), + 123: uint16(33016), + 124: uint16(33011), + 125: uint16(33032), + 126: uint16(33021), + 127: uint16(33034), + 128: uint16(33020), + 129: uint16(33007), + 130: uint16(33261), + 131: uint16(33260), + 132: uint16(33280), + 133: uint16(33296), + 134: uint16(33322), + 135: uint16(33323), + 136: uint16(33320), + 137: uint16(33324), + 138: uint16(33467), + 139: uint16(33579), + 140: uint16(33618), + 141: uint16(33620), + 142: uint16(33610), + 143: uint16(33592), + 144: uint16(33616), + 145: uint16(33609), + 146: uint16(33589), + 147: uint16(33588), + 148: uint16(33615), + 149: uint16(33586), + 150: uint16(33593), + 151: uint16(33590), + 152: uint16(33559), + 153: uint16(33600), + 154: uint16(33585), + 155: uint16(33576), + 156: uint16(33603), + }, + 15: { + 0: uint16(34388), + 1: uint16(34442), + 2: uint16(34474), + 3: uint16(34451), + 4: uint16(34468), + 5: uint16(34473), + 6: uint16(34444), + 7: uint16(34467), + 8: uint16(34460), + 9: uint16(34928), + 10: uint16(34935), + 11: uint16(34945), + 12: uint16(34946), + 13: uint16(34941), + 14: uint16(34937), + 15: uint16(35352), + 16: uint16(35344), + 17: uint16(35342), + 18: uint16(35340), + 19: uint16(35349), + 20: uint16(35338), + 21: uint16(35351), + 22: uint16(35347), + 23: uint16(35350), + 24: uint16(35343), + 25: uint16(35345), + 26: uint16(35912), + 27: uint16(35962), + 28: uint16(35961), + 29: uint16(36001), + 30: uint16(36002), + 31: uint16(36215), + 32: uint16(36524), + 33: uint16(36562), + 34: uint16(36564), + 35: uint16(36559), + 36: uint16(36785), + 37: uint16(36865), + 38: uint16(36870), + 39: uint16(36855), + 40: uint16(36864), + 41: uint16(36858), + 42: uint16(36852), + 43: uint16(36867), + 44: uint16(36861), + 45: uint16(36869), + 46: uint16(36856), + 47: uint16(37013), + 48: uint16(37089), + 49: uint16(37085), + 50: uint16(37090), + 51: uint16(37202), + 52: uint16(37197), + 53: uint16(37196), + 54: uint16(37336), + 55: uint16(37341), + 56: uint16(37335), + 57: uint16(37340), + 58: uint16(37337), + 59: uint16(38275), + 60: uint16(38498), + 61: uint16(38499), + 62: uint16(38497), + 63: uint16(38491), + 64: uint16(38493), + 65: uint16(38500), + 66: uint16(38488), + 67: uint16(38494), + 68: uint16(38587), + 69: uint16(39138), + 70: uint16(39340), + 71: uint16(39592), + 72: uint16(39640), + 73: uint16(39717), + 74: uint16(39730), + 75: uint16(39740), + 76: uint16(20094), + 77: uint16(20602), + 78: uint16(20605), + 79: uint16(20572), + 80: uint16(20551), + 81: uint16(20547), + 82: uint16(20556), + 83: uint16(20570), + 84: uint16(20553), + 85: uint16(20581), + 86: uint16(20598), + 87: uint16(20558), + 88: uint16(20565), + 89: uint16(20597), + 90: uint16(20596), + 91: uint16(20599), + 92: uint16(20559), + 93: uint16(20495), + 94: uint16(20591), + 95: uint16(20589), + 96: uint16(20828), + 97: uint16(20885), + 98: uint16(20976), + 99: uint16(21098), + 100: uint16(21103), + 101: uint16(21202), + 102: uint16(21209), + 103: uint16(21208), + 104: uint16(21205), + 105: uint16(21264), + 106: uint16(21263), + 107: uint16(21273), + 108: uint16(21311), + 109: uint16(21312), + 110: uint16(21310), + 111: uint16(21443), + 112: uint16(26364), + 113: uint16(21830), + 114: uint16(21866), + 115: uint16(21862), + 116: uint16(21828), + 117: uint16(21854), + 118: uint16(21857), + 119: uint16(21827), + 120: uint16(21834), + 121: uint16(21809), + 122: uint16(21846), + 123: uint16(21839), + 124: uint16(21845), + 125: uint16(21807), + 126: uint16(21860), + 127: uint16(21816), + 128: uint16(21806), + 129: uint16(21852), + 130: uint16(21804), + 131: uint16(21859), + 132: uint16(21811), + 133: uint16(21825), + 134: uint16(21847), + 135: uint16(22280), + 136: uint16(22283), + 137: uint16(22281), + 138: uint16(22495), + 139: uint16(22533), + 140: uint16(22538), + 141: uint16(22534), + 142: uint16(22496), + 143: uint16(22500), + 144: uint16(22522), + 145: uint16(22530), + 146: uint16(22581), + 147: uint16(22519), + 148: uint16(22521), + 149: uint16(22816), + 150: uint16(22882), + 151: uint16(23094), + 152: uint16(23105), + 153: uint16(23113), + 154: uint16(23142), + 155: uint16(23146), + 156: uint16(23104), + }, + 16: { + 0: uint16(23100), + 1: uint16(23138), + 2: uint16(23130), + 3: uint16(23110), + 4: uint16(23114), + 5: uint16(23408), + 6: uint16(23495), + 7: uint16(23493), + 8: uint16(23492), + 9: uint16(23490), + 10: uint16(23487), + 11: uint16(23494), + 12: uint16(23561), + 13: uint16(23560), + 14: uint16(23559), + 15: uint16(23648), + 16: uint16(23644), + 17: uint16(23645), + 18: uint16(23815), + 19: uint16(23814), + 20: uint16(23822), + 21: uint16(23835), + 22: uint16(23830), + 23: uint16(23842), + 24: uint16(23825), + 25: uint16(23849), + 26: uint16(23828), + 27: uint16(23833), + 28: uint16(23844), + 29: uint16(23847), + 30: uint16(23831), + 31: uint16(24034), + 32: uint16(24120), + 33: uint16(24118), + 34: uint16(24115), + 35: uint16(24119), + 36: uint16(24247), + 37: uint16(24248), + 38: uint16(24246), + 39: uint16(24245), + 40: uint16(24254), + 41: uint16(24373), + 42: uint16(24375), + 43: uint16(24407), + 44: uint16(24428), + 45: uint16(24425), + 46: uint16(24427), + 47: uint16(24471), + 48: uint16(24473), + 49: uint16(24478), + 50: uint16(24472), + 51: uint16(24481), + 52: uint16(24480), + 53: uint16(24476), + 54: uint16(24703), + 55: uint16(24739), + 56: uint16(24713), + 57: uint16(24736), + 58: uint16(24744), + 59: uint16(24779), + 60: uint16(24756), + 61: uint16(24806), + 62: uint16(24765), + 63: uint16(24773), + 64: uint16(24763), + 65: uint16(24757), + 66: uint16(24796), + 67: uint16(24764), + 68: uint16(24792), + 69: uint16(24789), + 70: uint16(24774), + 71: uint16(24799), + 72: uint16(24760), + 73: uint16(24794), + 74: uint16(24775), + 75: uint16(25114), + 76: uint16(25115), + 77: uint16(25160), + 78: uint16(25504), + 79: uint16(25511), + 80: uint16(25458), + 81: uint16(25494), + 82: uint16(25506), + 83: uint16(25509), + 84: uint16(25463), + 85: uint16(25447), + 86: uint16(25496), + 87: uint16(25514), + 88: uint16(25457), + 89: uint16(25513), + 90: uint16(25481), + 91: uint16(25475), + 92: uint16(25499), + 93: uint16(25451), + 94: uint16(25512), + 95: uint16(25476), + 96: uint16(25480), + 97: uint16(25497), + 98: uint16(25505), + 99: uint16(25516), + 100: uint16(25490), + 101: uint16(25487), + 102: uint16(25472), + 103: uint16(25467), + 104: uint16(25449), + 105: uint16(25448), + 106: uint16(25466), + 107: uint16(25949), + 108: uint16(25942), + 109: uint16(25937), + 110: uint16(25945), + 111: uint16(25943), + 112: uint16(21855), + 113: uint16(25935), + 114: uint16(25944), + 115: uint16(25941), + 116: uint16(25940), + 117: uint16(26012), + 118: uint16(26011), + 119: uint16(26028), + 120: uint16(26063), + 121: uint16(26059), + 122: uint16(26060), + 123: uint16(26062), + 124: uint16(26205), + 125: uint16(26202), + 126: uint16(26212), + 127: uint16(26216), + 128: uint16(26214), + 129: uint16(26206), + 130: uint16(26361), + 131: uint16(21207), + 132: uint16(26395), + 133: uint16(26753), + 134: uint16(26799), + 135: uint16(26786), + 136: uint16(26771), + 137: uint16(26805), + 138: uint16(26751), + 139: uint16(26742), + 140: uint16(26801), + 141: uint16(26791), + 142: uint16(26775), + 143: uint16(26800), + 144: uint16(26755), + 145: uint16(26820), + 146: uint16(26797), + 147: uint16(26758), + 148: uint16(26757), + 149: uint16(26772), + 150: uint16(26781), + 151: uint16(26792), + 152: uint16(26783), + 153: uint16(26785), + 154: uint16(26754), + 155: uint16(27442), + 156: uint16(27578), + }, + 17: { + 0: uint16(27627), + 1: uint16(27628), + 2: uint16(27691), + 3: uint16(28046), + 4: uint16(28092), + 5: uint16(28147), + 6: uint16(28121), + 7: uint16(28082), + 8: uint16(28129), + 9: uint16(28108), + 10: uint16(28132), + 11: uint16(28155), + 12: uint16(28154), + 13: uint16(28165), + 14: uint16(28103), + 15: uint16(28107), + 16: uint16(28079), + 17: uint16(28113), + 18: uint16(28078), + 19: uint16(28126), + 20: uint16(28153), + 21: uint16(28088), + 22: uint16(28151), + 23: uint16(28149), + 24: uint16(28101), + 25: uint16(28114), + 26: uint16(28186), + 27: uint16(28085), + 28: uint16(28122), + 29: uint16(28139), + 30: uint16(28120), + 31: uint16(28138), + 32: uint16(28145), + 33: uint16(28142), + 34: uint16(28136), + 35: uint16(28102), + 36: uint16(28100), + 37: uint16(28074), + 38: uint16(28140), + 39: uint16(28095), + 40: uint16(28134), + 41: uint16(28921), + 42: uint16(28937), + 43: uint16(28938), + 44: uint16(28925), + 45: uint16(28911), + 46: uint16(29245), + 47: uint16(29309), + 48: uint16(29313), + 49: uint16(29468), + 50: uint16(29467), + 51: uint16(29462), + 52: uint16(29459), + 53: uint16(29465), + 54: uint16(29575), + 55: uint16(29701), + 56: uint16(29706), + 57: uint16(29699), + 58: uint16(29702), + 59: uint16(29694), + 60: uint16(29709), + 61: uint16(29920), + 62: uint16(29942), + 63: uint16(29943), + 64: uint16(29980), + 65: uint16(29986), + 66: uint16(30053), + 67: uint16(30054), + 68: uint16(30050), + 69: uint16(30064), + 70: uint16(30095), + 71: uint16(30164), + 72: uint16(30165), + 73: uint16(30133), + 74: uint16(30154), + 75: uint16(30157), + 76: uint16(30350), + 77: uint16(30420), + 78: uint16(30418), + 79: uint16(30427), + 80: uint16(30519), + 81: uint16(30526), + 82: uint16(30524), + 83: uint16(30518), + 84: uint16(30520), + 85: uint16(30522), + 86: uint16(30827), + 87: uint16(30787), + 88: uint16(30798), + 89: uint16(31077), + 90: uint16(31080), + 91: uint16(31085), + 92: uint16(31227), + 93: uint16(31378), + 94: uint16(31381), + 95: uint16(31520), + 96: uint16(31528), + 97: uint16(31515), + 98: uint16(31532), + 99: uint16(31526), + 100: uint16(31513), + 101: uint16(31518), + 102: uint16(31534), + 103: uint16(31890), + 104: uint16(31895), + 105: uint16(31893), + 106: uint16(32070), + 107: uint16(32067), + 108: uint16(32113), + 109: uint16(32046), + 110: uint16(32057), + 111: uint16(32060), + 112: uint16(32064), + 113: uint16(32048), + 114: uint16(32051), + 115: uint16(32068), + 116: uint16(32047), + 117: uint16(32066), + 118: uint16(32050), + 119: uint16(32049), + 120: uint16(32573), + 121: uint16(32670), + 122: uint16(32666), + 123: uint16(32716), + 124: uint16(32718), + 125: uint16(32722), + 126: uint16(32796), + 127: uint16(32842), + 128: uint16(32838), + 129: uint16(33071), + 130: uint16(33046), + 131: uint16(33059), + 132: uint16(33067), + 133: uint16(33065), + 134: uint16(33072), + 135: uint16(33060), + 136: uint16(33282), + 137: uint16(33333), + 138: uint16(33335), + 139: uint16(33334), + 140: uint16(33337), + 141: uint16(33678), + 142: uint16(33694), + 143: uint16(33688), + 144: uint16(33656), + 145: uint16(33698), + 146: uint16(33686), + 147: uint16(33725), + 148: uint16(33707), + 149: uint16(33682), + 150: uint16(33674), + 151: uint16(33683), + 152: uint16(33673), + 153: uint16(33696), + 154: uint16(33655), + 155: uint16(33659), + 156: uint16(33660), + }, + 18: { + 0: uint16(33670), + 1: uint16(33703), + 2: uint16(34389), + 3: uint16(24426), + 4: uint16(34503), + 5: uint16(34496), + 6: uint16(34486), + 7: uint16(34500), + 8: uint16(34485), + 9: uint16(34502), + 10: uint16(34507), + 11: uint16(34481), + 12: uint16(34479), + 13: uint16(34505), + 14: uint16(34899), + 15: uint16(34974), + 16: uint16(34952), + 17: uint16(34987), + 18: uint16(34962), + 19: uint16(34966), + 20: uint16(34957), + 21: uint16(34955), + 22: uint16(35219), + 23: uint16(35215), + 24: uint16(35370), + 25: uint16(35357), + 26: uint16(35363), + 27: uint16(35365), + 28: uint16(35377), + 29: uint16(35373), + 30: uint16(35359), + 31: uint16(35355), + 32: uint16(35362), + 33: uint16(35913), + 34: uint16(35930), + 35: uint16(36009), + 36: uint16(36012), + 37: uint16(36011), + 38: uint16(36008), + 39: uint16(36010), + 40: uint16(36007), + 41: uint16(36199), + 42: uint16(36198), + 43: uint16(36286), + 44: uint16(36282), + 45: uint16(36571), + 46: uint16(36575), + 47: uint16(36889), + 48: uint16(36877), + 49: uint16(36890), + 50: uint16(36887), + 51: uint16(36899), + 52: uint16(36895), + 53: uint16(36893), + 54: uint16(36880), + 55: uint16(36885), + 56: uint16(36894), + 57: uint16(36896), + 58: uint16(36879), + 59: uint16(36898), + 60: uint16(36886), + 61: uint16(36891), + 62: uint16(36884), + 63: uint16(37096), + 64: uint16(37101), + 65: uint16(37117), + 66: uint16(37207), + 67: uint16(37326), + 68: uint16(37365), + 69: uint16(37350), + 70: uint16(37347), + 71: uint16(37351), + 72: uint16(37357), + 73: uint16(37353), + 74: uint16(38281), + 75: uint16(38506), + 76: uint16(38517), + 77: uint16(38515), + 78: uint16(38520), + 79: uint16(38512), + 80: uint16(38516), + 81: uint16(38518), + 82: uint16(38519), + 83: uint16(38508), + 84: uint16(38592), + 85: uint16(38634), + 86: uint16(38633), + 87: uint16(31456), + 88: uint16(31455), + 89: uint16(38914), + 90: uint16(38915), + 91: uint16(39770), + 92: uint16(40165), + 93: uint16(40565), + 94: uint16(40575), + 95: uint16(40613), + 96: uint16(40635), + 97: uint16(20642), + 98: uint16(20621), + 99: uint16(20613), + 100: uint16(20633), + 101: uint16(20625), + 102: uint16(20608), + 103: uint16(20630), + 104: uint16(20632), + 105: uint16(20634), + 106: uint16(26368), + 107: uint16(20977), + 108: uint16(21106), + 109: uint16(21108), + 110: uint16(21109), + 111: uint16(21097), + 112: uint16(21214), + 113: uint16(21213), + 114: uint16(21211), + 115: uint16(21338), + 116: uint16(21413), + 117: uint16(21883), + 118: uint16(21888), + 119: uint16(21927), + 120: uint16(21884), + 121: uint16(21898), + 122: uint16(21917), + 123: uint16(21912), + 124: uint16(21890), + 125: uint16(21916), + 126: uint16(21930), + 127: uint16(21908), + 128: uint16(21895), + 129: uint16(21899), + 130: uint16(21891), + 131: uint16(21939), + 132: uint16(21934), + 133: uint16(21919), + 134: uint16(21822), + 135: uint16(21938), + 136: uint16(21914), + 137: uint16(21947), + 138: uint16(21932), + 139: uint16(21937), + 140: uint16(21886), + 141: uint16(21897), + 142: uint16(21931), + 143: uint16(21913), + 144: uint16(22285), + 145: uint16(22575), + 146: uint16(22570), + 147: uint16(22580), + 148: uint16(22564), + 149: uint16(22576), + 150: uint16(22577), + 151: uint16(22561), + 152: uint16(22557), + 153: uint16(22560), + 154: uint16(22777), + 155: uint16(22778), + 156: uint16(22880), + }, + 19: { + 0: uint16(23159), + 1: uint16(23194), + 2: uint16(23167), + 3: uint16(23186), + 4: uint16(23195), + 5: uint16(23207), + 6: uint16(23411), + 7: uint16(23409), + 8: uint16(23506), + 9: uint16(23500), + 10: uint16(23507), + 11: uint16(23504), + 12: uint16(23562), + 13: uint16(23563), + 14: uint16(23601), + 15: uint16(23884), + 16: uint16(23888), + 17: uint16(23860), + 18: uint16(23879), + 19: uint16(24061), + 20: uint16(24133), + 21: uint16(24125), + 22: uint16(24128), + 23: uint16(24131), + 24: uint16(24190), + 25: uint16(24266), + 26: uint16(24257), + 27: uint16(24258), + 28: uint16(24260), + 29: uint16(24380), + 30: uint16(24429), + 31: uint16(24489), + 32: uint16(24490), + 33: uint16(24488), + 34: uint16(24785), + 35: uint16(24801), + 36: uint16(24754), + 37: uint16(24758), + 38: uint16(24800), + 39: uint16(24860), + 40: uint16(24867), + 41: uint16(24826), + 42: uint16(24853), + 43: uint16(24816), + 44: uint16(24827), + 45: uint16(24820), + 46: uint16(24936), + 47: uint16(24817), + 48: uint16(24846), + 49: uint16(24822), + 50: uint16(24841), + 51: uint16(24832), + 52: uint16(24850), + 53: uint16(25119), + 54: uint16(25161), + 55: uint16(25507), + 56: uint16(25484), + 57: uint16(25551), + 58: uint16(25536), + 59: uint16(25577), + 60: uint16(25545), + 61: uint16(25542), + 62: uint16(25549), + 63: uint16(25554), + 64: uint16(25571), + 65: uint16(25552), + 66: uint16(25569), + 67: uint16(25558), + 68: uint16(25581), + 69: uint16(25582), + 70: uint16(25462), + 71: uint16(25588), + 72: uint16(25578), + 73: uint16(25563), + 74: uint16(25682), + 75: uint16(25562), + 76: uint16(25593), + 77: uint16(25950), + 78: uint16(25958), + 79: uint16(25954), + 80: uint16(25955), + 81: uint16(26001), + 82: uint16(26000), + 83: uint16(26031), + 84: uint16(26222), + 85: uint16(26224), + 86: uint16(26228), + 87: uint16(26230), + 88: uint16(26223), + 89: uint16(26257), + 90: uint16(26234), + 91: uint16(26238), + 92: uint16(26231), + 93: uint16(26366), + 94: uint16(26367), + 95: uint16(26399), + 96: uint16(26397), + 97: uint16(26874), + 98: uint16(26837), + 99: uint16(26848), + 100: uint16(26840), + 101: uint16(26839), + 102: uint16(26885), + 103: uint16(26847), + 104: uint16(26869), + 105: uint16(26862), + 106: uint16(26855), + 107: uint16(26873), + 108: uint16(26834), + 109: uint16(26866), + 110: uint16(26851), + 111: uint16(26827), + 112: uint16(26829), + 113: uint16(26893), + 114: uint16(26898), + 115: uint16(26894), + 116: uint16(26825), + 117: uint16(26842), + 118: uint16(26990), + 119: uint16(26875), + 120: uint16(27454), + 121: uint16(27450), + 122: uint16(27453), + 123: uint16(27544), + 124: uint16(27542), + 125: uint16(27580), + 126: uint16(27631), + 127: uint16(27694), + 128: uint16(27695), + 129: uint16(27692), + 130: uint16(28207), + 131: uint16(28216), + 132: uint16(28244), + 133: uint16(28193), + 134: uint16(28210), + 135: uint16(28263), + 136: uint16(28234), + 137: uint16(28192), + 138: uint16(28197), + 139: uint16(28195), + 140: uint16(28187), + 141: uint16(28251), + 142: uint16(28248), + 143: uint16(28196), + 144: uint16(28246), + 145: uint16(28270), + 146: uint16(28205), + 147: uint16(28198), + 148: uint16(28271), + 149: uint16(28212), + 150: uint16(28237), + 151: uint16(28218), + 152: uint16(28204), + 153: uint16(28227), + 154: uint16(28189), + 155: uint16(28222), + 156: uint16(28363), + }, + 20: { + 0: uint16(28297), + 1: uint16(28185), + 2: uint16(28238), + 3: uint16(28259), + 4: uint16(28228), + 5: uint16(28274), + 6: uint16(28265), + 7: uint16(28255), + 8: uint16(28953), + 9: uint16(28954), + 10: uint16(28966), + 11: uint16(28976), + 12: uint16(28961), + 13: uint16(28982), + 14: uint16(29038), + 15: uint16(28956), + 16: uint16(29260), + 17: uint16(29316), + 18: uint16(29312), + 19: uint16(29494), + 20: uint16(29477), + 21: uint16(29492), + 22: uint16(29481), + 23: uint16(29754), + 24: uint16(29738), + 25: uint16(29747), + 26: uint16(29730), + 27: uint16(29733), + 28: uint16(29749), + 29: uint16(29750), + 30: uint16(29748), + 31: uint16(29743), + 32: uint16(29723), + 33: uint16(29734), + 34: uint16(29736), + 35: uint16(29989), + 36: uint16(29990), + 37: uint16(30059), + 38: uint16(30058), + 39: uint16(30178), + 40: uint16(30171), + 41: uint16(30179), + 42: uint16(30169), + 43: uint16(30168), + 44: uint16(30174), + 45: uint16(30176), + 46: uint16(30331), + 47: uint16(30332), + 48: uint16(30358), + 49: uint16(30355), + 50: uint16(30388), + 51: uint16(30428), + 52: uint16(30543), + 53: uint16(30701), + 54: uint16(30813), + 55: uint16(30828), + 56: uint16(30831), + 57: uint16(31245), + 58: uint16(31240), + 59: uint16(31243), + 60: uint16(31237), + 61: uint16(31232), + 62: uint16(31384), + 63: uint16(31383), + 64: uint16(31382), + 65: uint16(31461), + 66: uint16(31459), + 67: uint16(31561), + 68: uint16(31574), + 69: uint16(31558), + 70: uint16(31568), + 71: uint16(31570), + 72: uint16(31572), + 73: uint16(31565), + 74: uint16(31563), + 75: uint16(31567), + 76: uint16(31569), + 77: uint16(31903), + 78: uint16(31909), + 79: uint16(32094), + 80: uint16(32080), + 81: uint16(32104), + 82: uint16(32085), + 83: uint16(32043), + 84: uint16(32110), + 85: uint16(32114), + 86: uint16(32097), + 87: uint16(32102), + 88: uint16(32098), + 89: uint16(32112), + 90: uint16(32115), + 91: uint16(21892), + 92: uint16(32724), + 93: uint16(32725), + 94: uint16(32779), + 95: uint16(32850), + 96: uint16(32901), + 97: uint16(33109), + 98: uint16(33108), + 99: uint16(33099), + 100: uint16(33105), + 101: uint16(33102), + 102: uint16(33081), + 103: uint16(33094), + 104: uint16(33086), + 105: uint16(33100), + 106: uint16(33107), + 107: uint16(33140), + 108: uint16(33298), + 109: uint16(33308), + 110: uint16(33769), + 111: uint16(33795), + 112: uint16(33784), + 113: uint16(33805), + 114: uint16(33760), + 115: uint16(33733), + 116: uint16(33803), + 117: uint16(33729), + 118: uint16(33775), + 119: uint16(33777), + 120: uint16(33780), + 121: uint16(33879), + 122: uint16(33802), + 123: uint16(33776), + 124: uint16(33804), + 125: uint16(33740), + 126: uint16(33789), + 127: uint16(33778), + 128: uint16(33738), + 129: uint16(33848), + 130: uint16(33806), + 131: uint16(33796), + 132: uint16(33756), + 133: uint16(33799), + 134: uint16(33748), + 135: uint16(33759), + 136: uint16(34395), + 137: uint16(34527), + 138: uint16(34521), + 139: uint16(34541), + 140: uint16(34516), + 141: uint16(34523), + 142: uint16(34532), + 143: uint16(34512), + 144: uint16(34526), + 145: uint16(34903), + 146: uint16(35009), + 147: uint16(35010), + 148: uint16(34993), + 149: uint16(35203), + 150: uint16(35222), + 151: uint16(35387), + 152: uint16(35424), + 153: uint16(35413), + 154: uint16(35422), + 155: uint16(35388), + 156: uint16(35393), + }, + 21: { + 0: uint16(35412), + 1: uint16(35419), + 2: uint16(35408), + 3: uint16(35398), + 4: uint16(35380), + 5: uint16(35386), + 6: uint16(35382), + 7: uint16(35414), + 8: uint16(35937), + 9: uint16(35970), + 10: uint16(36015), + 11: uint16(36028), + 12: uint16(36019), + 13: uint16(36029), + 14: uint16(36033), + 15: uint16(36027), + 16: uint16(36032), + 17: uint16(36020), + 18: uint16(36023), + 19: uint16(36022), + 20: uint16(36031), + 21: uint16(36024), + 22: uint16(36234), + 23: uint16(36229), + 24: uint16(36225), + 25: uint16(36302), + 26: uint16(36317), + 27: uint16(36299), + 28: uint16(36314), + 29: uint16(36305), + 30: uint16(36300), + 31: uint16(36315), + 32: uint16(36294), + 33: uint16(36603), + 34: uint16(36600), + 35: uint16(36604), + 36: uint16(36764), + 37: uint16(36910), + 38: uint16(36917), + 39: uint16(36913), + 40: uint16(36920), + 41: uint16(36914), + 42: uint16(36918), + 43: uint16(37122), + 44: uint16(37109), + 45: uint16(37129), + 46: uint16(37118), + 47: uint16(37219), + 48: uint16(37221), + 49: uint16(37327), + 50: uint16(37396), + 51: uint16(37397), + 52: uint16(37411), + 53: uint16(37385), + 54: uint16(37406), + 55: uint16(37389), + 56: uint16(37392), + 57: uint16(37383), + 58: uint16(37393), + 59: uint16(38292), + 60: uint16(38287), + 61: uint16(38283), + 62: uint16(38289), + 63: uint16(38291), + 64: uint16(38290), + 65: uint16(38286), + 66: uint16(38538), + 67: uint16(38542), + 68: uint16(38539), + 69: uint16(38525), + 70: uint16(38533), + 71: uint16(38534), + 72: uint16(38541), + 73: uint16(38514), + 74: uint16(38532), + 75: uint16(38593), + 76: uint16(38597), + 77: uint16(38596), + 78: uint16(38598), + 79: uint16(38599), + 80: uint16(38639), + 81: uint16(38642), + 82: uint16(38860), + 83: uint16(38917), + 84: uint16(38918), + 85: uint16(38920), + 86: uint16(39143), + 87: uint16(39146), + 88: uint16(39151), + 89: uint16(39145), + 90: uint16(39154), + 91: uint16(39149), + 92: uint16(39342), + 93: uint16(39341), + 94: uint16(40643), + 95: uint16(40653), + 96: uint16(40657), + 97: uint16(20098), + 98: uint16(20653), + 99: uint16(20661), + 100: uint16(20658), + 101: uint16(20659), + 102: uint16(20677), + 103: uint16(20670), + 104: uint16(20652), + 105: uint16(20663), + 106: uint16(20667), + 107: uint16(20655), + 108: uint16(20679), + 109: uint16(21119), + 110: uint16(21111), + 111: uint16(21117), + 112: uint16(21215), + 113: uint16(21222), + 114: uint16(21220), + 115: uint16(21218), + 116: uint16(21219), + 117: uint16(21295), + 118: uint16(21983), + 119: uint16(21992), + 120: uint16(21971), + 121: uint16(21990), + 122: uint16(21966), + 123: uint16(21980), + 124: uint16(21959), + 125: uint16(21969), + 126: uint16(21987), + 127: uint16(21988), + 128: uint16(21999), + 129: uint16(21978), + 130: uint16(21985), + 131: uint16(21957), + 132: uint16(21958), + 133: uint16(21989), + 134: uint16(21961), + 135: uint16(22290), + 136: uint16(22291), + 137: uint16(22622), + 138: uint16(22609), + 139: uint16(22616), + 140: uint16(22615), + 141: uint16(22618), + 142: uint16(22612), + 143: uint16(22635), + 144: uint16(22604), + 145: uint16(22637), + 146: uint16(22602), + 147: uint16(22626), + 148: uint16(22610), + 149: uint16(22603), + 150: uint16(22887), + 151: uint16(23233), + 152: uint16(23241), + 153: uint16(23244), + 154: uint16(23230), + 155: uint16(23229), + 156: uint16(23228), + }, + 22: { + 0: uint16(23219), + 1: uint16(23234), + 2: uint16(23218), + 3: uint16(23913), + 4: uint16(23919), + 5: uint16(24140), + 6: uint16(24185), + 7: uint16(24265), + 8: uint16(24264), + 9: uint16(24338), + 10: uint16(24409), + 11: uint16(24492), + 12: uint16(24494), + 13: uint16(24858), + 14: uint16(24847), + 15: uint16(24904), + 16: uint16(24863), + 17: uint16(24819), + 18: uint16(24859), + 19: uint16(24825), + 20: uint16(24833), + 21: uint16(24840), + 22: uint16(24910), + 23: uint16(24908), + 24: uint16(24900), + 25: uint16(24909), + 26: uint16(24894), + 27: uint16(24884), + 28: uint16(24871), + 29: uint16(24845), + 30: uint16(24838), + 31: uint16(24887), + 32: uint16(25121), + 33: uint16(25122), + 34: uint16(25619), + 35: uint16(25662), + 36: uint16(25630), + 37: uint16(25642), + 38: uint16(25645), + 39: uint16(25661), + 40: uint16(25644), + 41: uint16(25615), + 42: uint16(25628), + 43: uint16(25620), + 44: uint16(25613), + 45: uint16(25654), + 46: uint16(25622), + 47: uint16(25623), + 48: uint16(25606), + 49: uint16(25964), + 50: uint16(26015), + 51: uint16(26032), + 52: uint16(26263), + 53: uint16(26249), + 54: uint16(26247), + 55: uint16(26248), + 56: uint16(26262), + 57: uint16(26244), + 58: uint16(26264), + 59: uint16(26253), + 60: uint16(26371), + 61: uint16(27028), + 62: uint16(26989), + 63: uint16(26970), + 64: uint16(26999), + 65: uint16(26976), + 66: uint16(26964), + 67: uint16(26997), + 68: uint16(26928), + 69: uint16(27010), + 70: uint16(26954), + 71: uint16(26984), + 72: uint16(26987), + 73: uint16(26974), + 74: uint16(26963), + 75: uint16(27001), + 76: uint16(27014), + 77: uint16(26973), + 78: uint16(26979), + 79: uint16(26971), + 80: uint16(27463), + 81: uint16(27506), + 82: uint16(27584), + 83: uint16(27583), + 84: uint16(27603), + 85: uint16(27645), + 86: uint16(28322), + 87: uint16(28335), + 88: uint16(28371), + 89: uint16(28342), + 90: uint16(28354), + 91: uint16(28304), + 92: uint16(28317), + 93: uint16(28359), + 94: uint16(28357), + 95: uint16(28325), + 96: uint16(28312), + 97: uint16(28348), + 98: uint16(28346), + 99: uint16(28331), + 100: uint16(28369), + 101: uint16(28310), + 102: uint16(28316), + 103: uint16(28356), + 104: uint16(28372), + 105: uint16(28330), + 106: uint16(28327), + 107: uint16(28340), + 108: uint16(29006), + 109: uint16(29017), + 110: uint16(29033), + 111: uint16(29028), + 112: uint16(29001), + 113: uint16(29031), + 114: uint16(29020), + 115: uint16(29036), + 116: uint16(29030), + 117: uint16(29004), + 118: uint16(29029), + 119: uint16(29022), + 120: uint16(28998), + 121: uint16(29032), + 122: uint16(29014), + 123: uint16(29242), + 124: uint16(29266), + 125: uint16(29495), + 126: uint16(29509), + 127: uint16(29503), + 128: uint16(29502), + 129: uint16(29807), + 130: uint16(29786), + 131: uint16(29781), + 132: uint16(29791), + 133: uint16(29790), + 134: uint16(29761), + 135: uint16(29759), + 136: uint16(29785), + 137: uint16(29787), + 138: uint16(29788), + 139: uint16(30070), + 140: uint16(30072), + 141: uint16(30208), + 142: uint16(30192), + 143: uint16(30209), + 144: uint16(30194), + 145: uint16(30193), + 146: uint16(30202), + 147: uint16(30207), + 148: uint16(30196), + 149: uint16(30195), + 150: uint16(30430), + 151: uint16(30431), + 152: uint16(30555), + 153: uint16(30571), + 154: uint16(30566), + 155: uint16(30558), + 156: uint16(30563), + }, + 23: { + 0: uint16(30585), + 1: uint16(30570), + 2: uint16(30572), + 3: uint16(30556), + 4: uint16(30565), + 5: uint16(30568), + 6: uint16(30562), + 7: uint16(30702), + 8: uint16(30862), + 9: uint16(30896), + 10: uint16(30871), + 11: uint16(30872), + 12: uint16(30860), + 13: uint16(30857), + 14: uint16(30844), + 15: uint16(30865), + 16: uint16(30867), + 17: uint16(30847), + 18: uint16(31098), + 19: uint16(31103), + 20: uint16(31105), + 21: uint16(33836), + 22: uint16(31165), + 23: uint16(31260), + 24: uint16(31258), + 25: uint16(31264), + 26: uint16(31252), + 27: uint16(31263), + 28: uint16(31262), + 29: uint16(31391), + 30: uint16(31392), + 31: uint16(31607), + 32: uint16(31680), + 33: uint16(31584), + 34: uint16(31598), + 35: uint16(31591), + 36: uint16(31921), + 37: uint16(31923), + 38: uint16(31925), + 39: uint16(32147), + 40: uint16(32121), + 41: uint16(32145), + 42: uint16(32129), + 43: uint16(32143), + 44: uint16(32091), + 45: uint16(32622), + 46: uint16(32617), + 47: uint16(32618), + 48: uint16(32626), + 49: uint16(32681), + 50: uint16(32680), + 51: uint16(32676), + 52: uint16(32854), + 53: uint16(32856), + 54: uint16(32902), + 55: uint16(32900), + 56: uint16(33137), + 57: uint16(33136), + 58: uint16(33144), + 59: uint16(33125), + 60: uint16(33134), + 61: uint16(33139), + 62: uint16(33131), + 63: uint16(33145), + 64: uint16(33146), + 65: uint16(33126), + 66: uint16(33285), + 67: uint16(33351), + 68: uint16(33922), + 69: uint16(33911), + 70: uint16(33853), + 71: uint16(33841), + 72: uint16(33909), + 73: uint16(33894), + 74: uint16(33899), + 75: uint16(33865), + 76: uint16(33900), + 77: uint16(33883), + 78: uint16(33852), + 79: uint16(33845), + 80: uint16(33889), + 81: uint16(33891), + 82: uint16(33897), + 83: uint16(33901), + 84: uint16(33862), + 85: uint16(34398), + 86: uint16(34396), + 87: uint16(34399), + 88: uint16(34553), + 89: uint16(34579), + 90: uint16(34568), + 91: uint16(34567), + 92: uint16(34560), + 93: uint16(34558), + 94: uint16(34555), + 95: uint16(34562), + 96: uint16(34563), + 97: uint16(34566), + 98: uint16(34570), + 99: uint16(34905), + 100: uint16(35039), + 101: uint16(35028), + 102: uint16(35033), + 103: uint16(35036), + 104: uint16(35032), + 105: uint16(35037), + 106: uint16(35041), + 107: uint16(35018), + 108: uint16(35029), + 109: uint16(35026), + 110: uint16(35228), + 111: uint16(35299), + 112: uint16(35435), + 113: uint16(35442), + 114: uint16(35443), + 115: uint16(35430), + 116: uint16(35433), + 117: uint16(35440), + 118: uint16(35463), + 119: uint16(35452), + 120: uint16(35427), + 121: uint16(35488), + 122: uint16(35441), + 123: uint16(35461), + 124: uint16(35437), + 125: uint16(35426), + 126: uint16(35438), + 127: uint16(35436), + 128: uint16(35449), + 129: uint16(35451), + 130: uint16(35390), + 131: uint16(35432), + 132: uint16(35938), + 133: uint16(35978), + 134: uint16(35977), + 135: uint16(36042), + 136: uint16(36039), + 137: uint16(36040), + 138: uint16(36036), + 139: uint16(36018), + 140: uint16(36035), + 141: uint16(36034), + 142: uint16(36037), + 143: uint16(36321), + 144: uint16(36319), + 145: uint16(36328), + 146: uint16(36335), + 147: uint16(36339), + 148: uint16(36346), + 149: uint16(36330), + 150: uint16(36324), + 151: uint16(36326), + 152: uint16(36530), + 153: uint16(36611), + 154: uint16(36617), + 155: uint16(36606), + 156: uint16(36618), + }, + 24: { + 0: uint16(36767), + 1: uint16(36786), + 2: uint16(36939), + 3: uint16(36938), + 4: uint16(36947), + 5: uint16(36930), + 6: uint16(36948), + 7: uint16(36924), + 8: uint16(36949), + 9: uint16(36944), + 10: uint16(36935), + 11: uint16(36943), + 12: uint16(36942), + 13: uint16(36941), + 14: uint16(36945), + 15: uint16(36926), + 16: uint16(36929), + 17: uint16(37138), + 18: uint16(37143), + 19: uint16(37228), + 20: uint16(37226), + 21: uint16(37225), + 22: uint16(37321), + 23: uint16(37431), + 24: uint16(37463), + 25: uint16(37432), + 26: uint16(37437), + 27: uint16(37440), + 28: uint16(37438), + 29: uint16(37467), + 30: uint16(37451), + 31: uint16(37476), + 32: uint16(37457), + 33: uint16(37428), + 34: uint16(37449), + 35: uint16(37453), + 36: uint16(37445), + 37: uint16(37433), + 38: uint16(37439), + 39: uint16(37466), + 40: uint16(38296), + 41: uint16(38552), + 42: uint16(38548), + 43: uint16(38549), + 44: uint16(38605), + 45: uint16(38603), + 46: uint16(38601), + 47: uint16(38602), + 48: uint16(38647), + 49: uint16(38651), + 50: uint16(38649), + 51: uint16(38646), + 52: uint16(38742), + 53: uint16(38772), + 54: uint16(38774), + 55: uint16(38928), + 56: uint16(38929), + 57: uint16(38931), + 58: uint16(38922), + 59: uint16(38930), + 60: uint16(38924), + 61: uint16(39164), + 62: uint16(39156), + 63: uint16(39165), + 64: uint16(39166), + 65: uint16(39347), + 66: uint16(39345), + 67: uint16(39348), + 68: uint16(39649), + 69: uint16(40169), + 70: uint16(40578), + 71: uint16(40718), + 72: uint16(40723), + 73: uint16(40736), + 74: uint16(20711), + 75: uint16(20718), + 76: uint16(20709), + 77: uint16(20694), + 78: uint16(20717), + 79: uint16(20698), + 80: uint16(20693), + 81: uint16(20687), + 82: uint16(20689), + 83: uint16(20721), + 84: uint16(20686), + 85: uint16(20713), + 86: uint16(20834), + 87: uint16(20979), + 88: uint16(21123), + 89: uint16(21122), + 90: uint16(21297), + 91: uint16(21421), + 92: uint16(22014), + 93: uint16(22016), + 94: uint16(22043), + 95: uint16(22039), + 96: uint16(22013), + 97: uint16(22036), + 98: uint16(22022), + 99: uint16(22025), + 100: uint16(22029), + 101: uint16(22030), + 102: uint16(22007), + 103: uint16(22038), + 104: uint16(22047), + 105: uint16(22024), + 106: uint16(22032), + 107: uint16(22006), + 108: uint16(22296), + 109: uint16(22294), + 110: uint16(22645), + 111: uint16(22654), + 112: uint16(22659), + 113: uint16(22675), + 114: uint16(22666), + 115: uint16(22649), + 116: uint16(22661), + 117: uint16(22653), + 118: uint16(22781), + 119: uint16(22821), + 120: uint16(22818), + 121: uint16(22820), + 122: uint16(22890), + 123: uint16(22889), + 124: uint16(23265), + 125: uint16(23270), + 126: uint16(23273), + 127: uint16(23255), + 128: uint16(23254), + 129: uint16(23256), + 130: uint16(23267), + 131: uint16(23413), + 132: uint16(23518), + 133: uint16(23527), + 134: uint16(23521), + 135: uint16(23525), + 136: uint16(23526), + 137: uint16(23528), + 138: uint16(23522), + 139: uint16(23524), + 140: uint16(23519), + 141: uint16(23565), + 142: uint16(23650), + 143: uint16(23940), + 144: uint16(23943), + 145: uint16(24155), + 146: uint16(24163), + 147: uint16(24149), + 148: uint16(24151), + 149: uint16(24148), + 150: uint16(24275), + 151: uint16(24278), + 152: uint16(24330), + 153: uint16(24390), + 154: uint16(24432), + 155: uint16(24505), + 156: uint16(24903), + }, + 25: { + 0: uint16(24895), + 1: uint16(24907), + 2: uint16(24951), + 3: uint16(24930), + 4: uint16(24931), + 5: uint16(24927), + 6: uint16(24922), + 7: uint16(24920), + 8: uint16(24949), + 9: uint16(25130), + 10: uint16(25735), + 11: uint16(25688), + 12: uint16(25684), + 13: uint16(25764), + 14: uint16(25720), + 15: uint16(25695), + 16: uint16(25722), + 17: uint16(25681), + 18: uint16(25703), + 19: uint16(25652), + 20: uint16(25709), + 21: uint16(25723), + 22: uint16(25970), + 23: uint16(26017), + 24: uint16(26071), + 25: uint16(26070), + 26: uint16(26274), + 27: uint16(26280), + 28: uint16(26269), + 29: uint16(27036), + 30: uint16(27048), + 31: uint16(27029), + 32: uint16(27073), + 33: uint16(27054), + 34: uint16(27091), + 35: uint16(27083), + 36: uint16(27035), + 37: uint16(27063), + 38: uint16(27067), + 39: uint16(27051), + 40: uint16(27060), + 41: uint16(27088), + 42: uint16(27085), + 43: uint16(27053), + 44: uint16(27084), + 45: uint16(27046), + 46: uint16(27075), + 47: uint16(27043), + 48: uint16(27465), + 49: uint16(27468), + 50: uint16(27699), + 51: uint16(28467), + 52: uint16(28436), + 53: uint16(28414), + 54: uint16(28435), + 55: uint16(28404), + 56: uint16(28457), + 57: uint16(28478), + 58: uint16(28448), + 59: uint16(28460), + 60: uint16(28431), + 61: uint16(28418), + 62: uint16(28450), + 63: uint16(28415), + 64: uint16(28399), + 65: uint16(28422), + 66: uint16(28465), + 67: uint16(28472), + 68: uint16(28466), + 69: uint16(28451), + 70: uint16(28437), + 71: uint16(28459), + 72: uint16(28463), + 73: uint16(28552), + 74: uint16(28458), + 75: uint16(28396), + 76: uint16(28417), + 77: uint16(28402), + 78: uint16(28364), + 79: uint16(28407), + 80: uint16(29076), + 81: uint16(29081), + 82: uint16(29053), + 83: uint16(29066), + 84: uint16(29060), + 85: uint16(29074), + 86: uint16(29246), + 87: uint16(29330), + 88: uint16(29334), + 89: uint16(29508), + 90: uint16(29520), + 91: uint16(29796), + 92: uint16(29795), + 93: uint16(29802), + 94: uint16(29808), + 95: uint16(29805), + 96: uint16(29956), + 97: uint16(30097), + 98: uint16(30247), + 99: uint16(30221), + 100: uint16(30219), + 101: uint16(30217), + 102: uint16(30227), + 103: uint16(30433), + 104: uint16(30435), + 105: uint16(30596), + 106: uint16(30589), + 107: uint16(30591), + 108: uint16(30561), + 109: uint16(30913), + 110: uint16(30879), + 111: uint16(30887), + 112: uint16(30899), + 113: uint16(30889), + 114: uint16(30883), + 115: uint16(31118), + 116: uint16(31119), + 117: uint16(31117), + 118: uint16(31278), + 119: uint16(31281), + 120: uint16(31402), + 121: uint16(31401), + 122: uint16(31469), + 123: uint16(31471), + 124: uint16(31649), + 125: uint16(31637), + 126: uint16(31627), + 127: uint16(31605), + 128: uint16(31639), + 129: uint16(31645), + 130: uint16(31636), + 131: uint16(31631), + 132: uint16(31672), + 133: uint16(31623), + 134: uint16(31620), + 135: uint16(31929), + 136: uint16(31933), + 137: uint16(31934), + 138: uint16(32187), + 139: uint16(32176), + 140: uint16(32156), + 141: uint16(32189), + 142: uint16(32190), + 143: uint16(32160), + 144: uint16(32202), + 145: uint16(32180), + 146: uint16(32178), + 147: uint16(32177), + 148: uint16(32186), + 149: uint16(32162), + 150: uint16(32191), + 151: uint16(32181), + 152: uint16(32184), + 153: uint16(32173), + 154: uint16(32210), + 155: uint16(32199), + 156: uint16(32172), + }, + 26: { + 0: uint16(32624), + 1: uint16(32736), + 2: uint16(32737), + 3: uint16(32735), + 4: uint16(32862), + 5: uint16(32858), + 6: uint16(32903), + 7: uint16(33104), + 8: uint16(33152), + 9: uint16(33167), + 10: uint16(33160), + 11: uint16(33162), + 12: uint16(33151), + 13: uint16(33154), + 14: uint16(33255), + 15: uint16(33274), + 16: uint16(33287), + 17: uint16(33300), + 18: uint16(33310), + 19: uint16(33355), + 20: uint16(33993), + 21: uint16(33983), + 22: uint16(33990), + 23: uint16(33988), + 24: uint16(33945), + 25: uint16(33950), + 26: uint16(33970), + 27: uint16(33948), + 28: uint16(33995), + 29: uint16(33976), + 30: uint16(33984), + 31: uint16(34003), + 32: uint16(33936), + 33: uint16(33980), + 34: uint16(34001), + 35: uint16(33994), + 36: uint16(34623), + 37: uint16(34588), + 38: uint16(34619), + 39: uint16(34594), + 40: uint16(34597), + 41: uint16(34612), + 42: uint16(34584), + 43: uint16(34645), + 44: uint16(34615), + 45: uint16(34601), + 46: uint16(35059), + 47: uint16(35074), + 48: uint16(35060), + 49: uint16(35065), + 50: uint16(35064), + 51: uint16(35069), + 52: uint16(35048), + 53: uint16(35098), + 54: uint16(35055), + 55: uint16(35494), + 56: uint16(35468), + 57: uint16(35486), + 58: uint16(35491), + 59: uint16(35469), + 60: uint16(35489), + 61: uint16(35475), + 62: uint16(35492), + 63: uint16(35498), + 64: uint16(35493), + 65: uint16(35496), + 66: uint16(35480), + 67: uint16(35473), + 68: uint16(35482), + 69: uint16(35495), + 70: uint16(35946), + 71: uint16(35981), + 72: uint16(35980), + 73: uint16(36051), + 74: uint16(36049), + 75: uint16(36050), + 76: uint16(36203), + 77: uint16(36249), + 78: uint16(36245), + 79: uint16(36348), + 80: uint16(36628), + 81: uint16(36626), + 82: uint16(36629), + 83: uint16(36627), + 84: uint16(36771), + 85: uint16(36960), + 86: uint16(36952), + 87: uint16(36956), + 88: uint16(36963), + 89: uint16(36953), + 90: uint16(36958), + 91: uint16(36962), + 92: uint16(36957), + 93: uint16(36955), + 94: uint16(37145), + 95: uint16(37144), + 96: uint16(37150), + 97: uint16(37237), + 98: uint16(37240), + 99: uint16(37239), + 100: uint16(37236), + 101: uint16(37496), + 102: uint16(37504), + 103: uint16(37509), + 104: uint16(37528), + 105: uint16(37526), + 106: uint16(37499), + 107: uint16(37523), + 108: uint16(37532), + 109: uint16(37544), + 110: uint16(37500), + 111: uint16(37521), + 112: uint16(38305), + 113: uint16(38312), + 114: uint16(38313), + 115: uint16(38307), + 116: uint16(38309), + 117: uint16(38308), + 118: uint16(38553), + 119: uint16(38556), + 120: uint16(38555), + 121: uint16(38604), + 122: uint16(38610), + 123: uint16(38656), + 124: uint16(38780), + 125: uint16(38789), + 126: uint16(38902), + 127: uint16(38935), + 128: uint16(38936), + 129: uint16(39087), + 130: uint16(39089), + 131: uint16(39171), + 132: uint16(39173), + 133: uint16(39180), + 134: uint16(39177), + 135: uint16(39361), + 136: uint16(39599), + 137: uint16(39600), + 138: uint16(39654), + 139: uint16(39745), + 140: uint16(39746), + 141: uint16(40180), + 142: uint16(40182), + 143: uint16(40179), + 144: uint16(40636), + 145: uint16(40763), + 146: uint16(40778), + 147: uint16(20740), + 148: uint16(20736), + 149: uint16(20731), + 150: uint16(20725), + 151: uint16(20729), + 152: uint16(20738), + 153: uint16(20744), + 154: uint16(20745), + 155: uint16(20741), + 156: uint16(20956), + }, + 27: { + 0: uint16(21127), + 1: uint16(21128), + 2: uint16(21129), + 3: uint16(21133), + 4: uint16(21130), + 5: uint16(21232), + 6: uint16(21426), + 7: uint16(22062), + 8: uint16(22075), + 9: uint16(22073), + 10: uint16(22066), + 11: uint16(22079), + 12: uint16(22068), + 13: uint16(22057), + 14: uint16(22099), + 15: uint16(22094), + 16: uint16(22103), + 17: uint16(22132), + 18: uint16(22070), + 19: uint16(22063), + 20: uint16(22064), + 21: uint16(22656), + 22: uint16(22687), + 23: uint16(22686), + 24: uint16(22707), + 25: uint16(22684), + 26: uint16(22702), + 27: uint16(22697), + 28: uint16(22694), + 29: uint16(22893), + 30: uint16(23305), + 31: uint16(23291), + 32: uint16(23307), + 33: uint16(23285), + 34: uint16(23308), + 35: uint16(23304), + 36: uint16(23534), + 37: uint16(23532), + 38: uint16(23529), + 39: uint16(23531), + 40: uint16(23652), + 41: uint16(23653), + 42: uint16(23965), + 43: uint16(23956), + 44: uint16(24162), + 45: uint16(24159), + 46: uint16(24161), + 47: uint16(24290), + 48: uint16(24282), + 49: uint16(24287), + 50: uint16(24285), + 51: uint16(24291), + 52: uint16(24288), + 53: uint16(24392), + 54: uint16(24433), + 55: uint16(24503), + 56: uint16(24501), + 57: uint16(24950), + 58: uint16(24935), + 59: uint16(24942), + 60: uint16(24925), + 61: uint16(24917), + 62: uint16(24962), + 63: uint16(24956), + 64: uint16(24944), + 65: uint16(24939), + 66: uint16(24958), + 67: uint16(24999), + 68: uint16(24976), + 69: uint16(25003), + 70: uint16(24974), + 71: uint16(25004), + 72: uint16(24986), + 73: uint16(24996), + 74: uint16(24980), + 75: uint16(25006), + 76: uint16(25134), + 77: uint16(25705), + 78: uint16(25711), + 79: uint16(25721), + 80: uint16(25758), + 81: uint16(25778), + 82: uint16(25736), + 83: uint16(25744), + 84: uint16(25776), + 85: uint16(25765), + 86: uint16(25747), + 87: uint16(25749), + 88: uint16(25769), + 89: uint16(25746), + 90: uint16(25774), + 91: uint16(25773), + 92: uint16(25771), + 93: uint16(25754), + 94: uint16(25772), + 95: uint16(25753), + 96: uint16(25762), + 97: uint16(25779), + 98: uint16(25973), + 99: uint16(25975), + 100: uint16(25976), + 101: uint16(26286), + 102: uint16(26283), + 103: uint16(26292), + 104: uint16(26289), + 105: uint16(27171), + 106: uint16(27167), + 107: uint16(27112), + 108: uint16(27137), + 109: uint16(27166), + 110: uint16(27161), + 111: uint16(27133), + 112: uint16(27169), + 113: uint16(27155), + 114: uint16(27146), + 115: uint16(27123), + 116: uint16(27138), + 117: uint16(27141), + 118: uint16(27117), + 119: uint16(27153), + 120: uint16(27472), + 121: uint16(27470), + 122: uint16(27556), + 123: uint16(27589), + 124: uint16(27590), + 125: uint16(28479), + 126: uint16(28540), + 127: uint16(28548), + 128: uint16(28497), + 129: uint16(28518), + 130: uint16(28500), + 131: uint16(28550), + 132: uint16(28525), + 133: uint16(28507), + 134: uint16(28536), + 135: uint16(28526), + 136: uint16(28558), + 137: uint16(28538), + 138: uint16(28528), + 139: uint16(28516), + 140: uint16(28567), + 141: uint16(28504), + 142: uint16(28373), + 143: uint16(28527), + 144: uint16(28512), + 145: uint16(28511), + 146: uint16(29087), + 147: uint16(29100), + 148: uint16(29105), + 149: uint16(29096), + 150: uint16(29270), + 151: uint16(29339), + 152: uint16(29518), + 153: uint16(29527), + 154: uint16(29801), + 155: uint16(29835), + 156: uint16(29827), + }, + 28: { + 0: uint16(29822), + 1: uint16(29824), + 2: uint16(30079), + 3: uint16(30240), + 4: uint16(30249), + 5: uint16(30239), + 6: uint16(30244), + 7: uint16(30246), + 8: uint16(30241), + 9: uint16(30242), + 10: uint16(30362), + 11: uint16(30394), + 12: uint16(30436), + 13: uint16(30606), + 14: uint16(30599), + 15: uint16(30604), + 16: uint16(30609), + 17: uint16(30603), + 18: uint16(30923), + 19: uint16(30917), + 20: uint16(30906), + 21: uint16(30922), + 22: uint16(30910), + 23: uint16(30933), + 24: uint16(30908), + 25: uint16(30928), + 26: uint16(31295), + 27: uint16(31292), + 28: uint16(31296), + 29: uint16(31293), + 30: uint16(31287), + 31: uint16(31291), + 32: uint16(31407), + 33: uint16(31406), + 34: uint16(31661), + 35: uint16(31665), + 36: uint16(31684), + 37: uint16(31668), + 38: uint16(31686), + 39: uint16(31687), + 40: uint16(31681), + 41: uint16(31648), + 42: uint16(31692), + 43: uint16(31946), + 44: uint16(32224), + 45: uint16(32244), + 46: uint16(32239), + 47: uint16(32251), + 48: uint16(32216), + 49: uint16(32236), + 50: uint16(32221), + 51: uint16(32232), + 52: uint16(32227), + 53: uint16(32218), + 54: uint16(32222), + 55: uint16(32233), + 56: uint16(32158), + 57: uint16(32217), + 58: uint16(32242), + 59: uint16(32249), + 60: uint16(32629), + 61: uint16(32631), + 62: uint16(32687), + 63: uint16(32745), + 64: uint16(32806), + 65: uint16(33179), + 66: uint16(33180), + 67: uint16(33181), + 68: uint16(33184), + 69: uint16(33178), + 70: uint16(33176), + 71: uint16(34071), + 72: uint16(34109), + 73: uint16(34074), + 74: uint16(34030), + 75: uint16(34092), + 76: uint16(34093), + 77: uint16(34067), + 78: uint16(34065), + 79: uint16(34083), + 80: uint16(34081), + 81: uint16(34068), + 82: uint16(34028), + 83: uint16(34085), + 84: uint16(34047), + 85: uint16(34054), + 86: uint16(34690), + 87: uint16(34676), + 88: uint16(34678), + 89: uint16(34656), + 90: uint16(34662), + 91: uint16(34680), + 92: uint16(34664), + 93: uint16(34649), + 94: uint16(34647), + 95: uint16(34636), + 96: uint16(34643), + 97: uint16(34907), + 98: uint16(34909), + 99: uint16(35088), + 100: uint16(35079), + 101: uint16(35090), + 102: uint16(35091), + 103: uint16(35093), + 104: uint16(35082), + 105: uint16(35516), + 106: uint16(35538), + 107: uint16(35527), + 108: uint16(35524), + 109: uint16(35477), + 110: uint16(35531), + 111: uint16(35576), + 112: uint16(35506), + 113: uint16(35529), + 114: uint16(35522), + 115: uint16(35519), + 116: uint16(35504), + 117: uint16(35542), + 118: uint16(35533), + 119: uint16(35510), + 120: uint16(35513), + 121: uint16(35547), + 122: uint16(35916), + 123: uint16(35918), + 124: uint16(35948), + 125: uint16(36064), + 126: uint16(36062), + 127: uint16(36070), + 128: uint16(36068), + 129: uint16(36076), + 130: uint16(36077), + 131: uint16(36066), + 132: uint16(36067), + 133: uint16(36060), + 134: uint16(36074), + 135: uint16(36065), + 136: uint16(36205), + 137: uint16(36255), + 138: uint16(36259), + 139: uint16(36395), + 140: uint16(36368), + 141: uint16(36381), + 142: uint16(36386), + 143: uint16(36367), + 144: uint16(36393), + 145: uint16(36383), + 146: uint16(36385), + 147: uint16(36382), + 148: uint16(36538), + 149: uint16(36637), + 150: uint16(36635), + 151: uint16(36639), + 152: uint16(36649), + 153: uint16(36646), + 154: uint16(36650), + 155: uint16(36636), + 156: uint16(36638), + }, + 29: { + 0: uint16(36645), + 1: uint16(36969), + 2: uint16(36974), + 3: uint16(36968), + 4: uint16(36973), + 5: uint16(36983), + 6: uint16(37168), + 7: uint16(37165), + 8: uint16(37159), + 9: uint16(37169), + 10: uint16(37255), + 11: uint16(37257), + 12: uint16(37259), + 13: uint16(37251), + 14: uint16(37573), + 15: uint16(37563), + 16: uint16(37559), + 17: uint16(37610), + 18: uint16(37548), + 19: uint16(37604), + 20: uint16(37569), + 21: uint16(37555), + 22: uint16(37564), + 23: uint16(37586), + 24: uint16(37575), + 25: uint16(37616), + 26: uint16(37554), + 27: uint16(38317), + 28: uint16(38321), + 29: uint16(38660), + 30: uint16(38662), + 31: uint16(38663), + 32: uint16(38665), + 33: uint16(38752), + 34: uint16(38797), + 35: uint16(38795), + 36: uint16(38799), + 37: uint16(38945), + 38: uint16(38955), + 39: uint16(38940), + 40: uint16(39091), + 41: uint16(39178), + 42: uint16(39187), + 43: uint16(39186), + 44: uint16(39192), + 45: uint16(39389), + 46: uint16(39376), + 47: uint16(39391), + 48: uint16(39387), + 49: uint16(39377), + 50: uint16(39381), + 51: uint16(39378), + 52: uint16(39385), + 53: uint16(39607), + 54: uint16(39662), + 55: uint16(39663), + 56: uint16(39719), + 57: uint16(39749), + 58: uint16(39748), + 59: uint16(39799), + 60: uint16(39791), + 61: uint16(40198), + 62: uint16(40201), + 63: uint16(40195), + 64: uint16(40617), + 65: uint16(40638), + 66: uint16(40654), + 67: uint16(22696), + 68: uint16(40786), + 69: uint16(20754), + 70: uint16(20760), + 71: uint16(20756), + 72: uint16(20752), + 73: uint16(20757), + 74: uint16(20864), + 75: uint16(20906), + 76: uint16(20957), + 77: uint16(21137), + 78: uint16(21139), + 79: uint16(21235), + 80: uint16(22105), + 81: uint16(22123), + 82: uint16(22137), + 83: uint16(22121), + 84: uint16(22116), + 85: uint16(22136), + 86: uint16(22122), + 87: uint16(22120), + 88: uint16(22117), + 89: uint16(22129), + 90: uint16(22127), + 91: uint16(22124), + 92: uint16(22114), + 93: uint16(22134), + 94: uint16(22721), + 95: uint16(22718), + 96: uint16(22727), + 97: uint16(22725), + 98: uint16(22894), + 99: uint16(23325), + 100: uint16(23348), + 101: uint16(23416), + 102: uint16(23536), + 103: uint16(23566), + 104: uint16(24394), + 105: uint16(25010), + 106: uint16(24977), + 107: uint16(25001), + 108: uint16(24970), + 109: uint16(25037), + 110: uint16(25014), + 111: uint16(25022), + 112: uint16(25034), + 113: uint16(25032), + 114: uint16(25136), + 115: uint16(25797), + 116: uint16(25793), + 117: uint16(25803), + 118: uint16(25787), + 119: uint16(25788), + 120: uint16(25818), + 121: uint16(25796), + 122: uint16(25799), + 123: uint16(25794), + 124: uint16(25805), + 125: uint16(25791), + 126: uint16(25810), + 127: uint16(25812), + 128: uint16(25790), + 129: uint16(25972), + 130: uint16(26310), + 131: uint16(26313), + 132: uint16(26297), + 133: uint16(26308), + 134: uint16(26311), + 135: uint16(26296), + 136: uint16(27197), + 137: uint16(27192), + 138: uint16(27194), + 139: uint16(27225), + 140: uint16(27243), + 141: uint16(27224), + 142: uint16(27193), + 143: uint16(27204), + 144: uint16(27234), + 145: uint16(27233), + 146: uint16(27211), + 147: uint16(27207), + 148: uint16(27189), + 149: uint16(27231), + 150: uint16(27208), + 151: uint16(27481), + 152: uint16(27511), + 153: uint16(27653), + 154: uint16(28610), + 155: uint16(28593), + 156: uint16(28577), + }, + 30: { + 0: uint16(28611), + 1: uint16(28580), + 2: uint16(28609), + 3: uint16(28583), + 4: uint16(28595), + 5: uint16(28608), + 6: uint16(28601), + 7: uint16(28598), + 8: uint16(28582), + 9: uint16(28576), + 10: uint16(28596), + 11: uint16(29118), + 12: uint16(29129), + 13: uint16(29136), + 14: uint16(29138), + 15: uint16(29128), + 16: uint16(29141), + 17: uint16(29113), + 18: uint16(29134), + 19: uint16(29145), + 20: uint16(29148), + 21: uint16(29123), + 22: uint16(29124), + 23: uint16(29544), + 24: uint16(29852), + 25: uint16(29859), + 26: uint16(29848), + 27: uint16(29855), + 28: uint16(29854), + 29: uint16(29922), + 30: uint16(29964), + 31: uint16(29965), + 32: uint16(30260), + 33: uint16(30264), + 34: uint16(30266), + 35: uint16(30439), + 36: uint16(30437), + 37: uint16(30624), + 38: uint16(30622), + 39: uint16(30623), + 40: uint16(30629), + 41: uint16(30952), + 42: uint16(30938), + 43: uint16(30956), + 44: uint16(30951), + 45: uint16(31142), + 46: uint16(31309), + 47: uint16(31310), + 48: uint16(31302), + 49: uint16(31308), + 50: uint16(31307), + 51: uint16(31418), + 52: uint16(31705), + 53: uint16(31761), + 54: uint16(31689), + 55: uint16(31716), + 56: uint16(31707), + 57: uint16(31713), + 58: uint16(31721), + 59: uint16(31718), + 60: uint16(31957), + 61: uint16(31958), + 62: uint16(32266), + 63: uint16(32273), + 64: uint16(32264), + 65: uint16(32283), + 66: uint16(32291), + 67: uint16(32286), + 68: uint16(32285), + 69: uint16(32265), + 70: uint16(32272), + 71: uint16(32633), + 72: uint16(32690), + 73: uint16(32752), + 74: uint16(32753), + 75: uint16(32750), + 76: uint16(32808), + 77: uint16(33203), + 78: uint16(33193), + 79: uint16(33192), + 80: uint16(33275), + 81: uint16(33288), + 82: uint16(33368), + 83: uint16(33369), + 84: uint16(34122), + 85: uint16(34137), + 86: uint16(34120), + 87: uint16(34152), + 88: uint16(34153), + 89: uint16(34115), + 90: uint16(34121), + 91: uint16(34157), + 92: uint16(34154), + 93: uint16(34142), + 94: uint16(34691), + 95: uint16(34719), + 96: uint16(34718), + 97: uint16(34722), + 98: uint16(34701), + 99: uint16(34913), + 100: uint16(35114), + 101: uint16(35122), + 102: uint16(35109), + 103: uint16(35115), + 104: uint16(35105), + 105: uint16(35242), + 106: uint16(35238), + 107: uint16(35558), + 108: uint16(35578), + 109: uint16(35563), + 110: uint16(35569), + 111: uint16(35584), + 112: uint16(35548), + 113: uint16(35559), + 114: uint16(35566), + 115: uint16(35582), + 116: uint16(35585), + 117: uint16(35586), + 118: uint16(35575), + 119: uint16(35565), + 120: uint16(35571), + 121: uint16(35574), + 122: uint16(35580), + 123: uint16(35947), + 124: uint16(35949), + 125: uint16(35987), + 126: uint16(36084), + 127: uint16(36420), + 128: uint16(36401), + 129: uint16(36404), + 130: uint16(36418), + 131: uint16(36409), + 132: uint16(36405), + 133: uint16(36667), + 134: uint16(36655), + 135: uint16(36664), + 136: uint16(36659), + 137: uint16(36776), + 138: uint16(36774), + 139: uint16(36981), + 140: uint16(36980), + 141: uint16(36984), + 142: uint16(36978), + 143: uint16(36988), + 144: uint16(36986), + 145: uint16(37172), + 146: uint16(37266), + 147: uint16(37664), + 148: uint16(37686), + 149: uint16(37624), + 150: uint16(37683), + 151: uint16(37679), + 152: uint16(37666), + 153: uint16(37628), + 154: uint16(37675), + 155: uint16(37636), + 156: uint16(37658), + }, + 31: { + 0: uint16(37648), + 1: uint16(37670), + 2: uint16(37665), + 3: uint16(37653), + 4: uint16(37678), + 5: uint16(37657), + 6: uint16(38331), + 7: uint16(38567), + 8: uint16(38568), + 9: uint16(38570), + 10: uint16(38613), + 11: uint16(38670), + 12: uint16(38673), + 13: uint16(38678), + 14: uint16(38669), + 15: uint16(38675), + 16: uint16(38671), + 17: uint16(38747), + 18: uint16(38748), + 19: uint16(38758), + 20: uint16(38808), + 21: uint16(38960), + 22: uint16(38968), + 23: uint16(38971), + 24: uint16(38967), + 25: uint16(38957), + 26: uint16(38969), + 27: uint16(38948), + 28: uint16(39184), + 29: uint16(39208), + 30: uint16(39198), + 31: uint16(39195), + 32: uint16(39201), + 33: uint16(39194), + 34: uint16(39405), + 35: uint16(39394), + 36: uint16(39409), + 37: uint16(39608), + 38: uint16(39612), + 39: uint16(39675), + 40: uint16(39661), + 41: uint16(39720), + 42: uint16(39825), + 43: uint16(40213), + 44: uint16(40227), + 45: uint16(40230), + 46: uint16(40232), + 47: uint16(40210), + 48: uint16(40219), + 49: uint16(40664), + 50: uint16(40660), + 51: uint16(40845), + 52: uint16(40860), + 53: uint16(20778), + 54: uint16(20767), + 55: uint16(20769), + 56: uint16(20786), + 57: uint16(21237), + 58: uint16(22158), + 59: uint16(22144), + 60: uint16(22160), + 61: uint16(22149), + 62: uint16(22151), + 63: uint16(22159), + 64: uint16(22741), + 65: uint16(22739), + 66: uint16(22737), + 67: uint16(22734), + 68: uint16(23344), + 69: uint16(23338), + 70: uint16(23332), + 71: uint16(23418), + 72: uint16(23607), + 73: uint16(23656), + 74: uint16(23996), + 75: uint16(23994), + 76: uint16(23997), + 77: uint16(23992), + 78: uint16(24171), + 79: uint16(24396), + 80: uint16(24509), + 81: uint16(25033), + 82: uint16(25026), + 83: uint16(25031), + 84: uint16(25062), + 85: uint16(25035), + 86: uint16(25138), + 87: uint16(25140), + 88: uint16(25806), + 89: uint16(25802), + 90: uint16(25816), + 91: uint16(25824), + 92: uint16(25840), + 93: uint16(25830), + 94: uint16(25836), + 95: uint16(25841), + 96: uint16(25826), + 97: uint16(25837), + 98: uint16(25986), + 99: uint16(25987), + 100: uint16(26329), + 101: uint16(26326), + 102: uint16(27264), + 103: uint16(27284), + 104: uint16(27268), + 105: uint16(27298), + 106: uint16(27292), + 107: uint16(27355), + 108: uint16(27299), + 109: uint16(27262), + 110: uint16(27287), + 111: uint16(27280), + 112: uint16(27296), + 113: uint16(27484), + 114: uint16(27566), + 115: uint16(27610), + 116: uint16(27656), + 117: uint16(28632), + 118: uint16(28657), + 119: uint16(28639), + 120: uint16(28640), + 121: uint16(28635), + 122: uint16(28644), + 123: uint16(28651), + 124: uint16(28655), + 125: uint16(28544), + 126: uint16(28652), + 127: uint16(28641), + 128: uint16(28649), + 129: uint16(28629), + 130: uint16(28654), + 131: uint16(28656), + 132: uint16(29159), + 133: uint16(29151), + 134: uint16(29166), + 135: uint16(29158), + 136: uint16(29157), + 137: uint16(29165), + 138: uint16(29164), + 139: uint16(29172), + 140: uint16(29152), + 141: uint16(29237), + 142: uint16(29254), + 143: uint16(29552), + 144: uint16(29554), + 145: uint16(29865), + 146: uint16(29872), + 147: uint16(29862), + 148: uint16(29864), + 149: uint16(30278), + 150: uint16(30274), + 151: uint16(30284), + 152: uint16(30442), + 153: uint16(30643), + 154: uint16(30634), + 155: uint16(30640), + 156: uint16(30636), + }, + 32: { + 0: uint16(30631), + 1: uint16(30637), + 2: uint16(30703), + 3: uint16(30967), + 4: uint16(30970), + 5: uint16(30964), + 6: uint16(30959), + 7: uint16(30977), + 8: uint16(31143), + 9: uint16(31146), + 10: uint16(31319), + 11: uint16(31423), + 12: uint16(31751), + 13: uint16(31757), + 14: uint16(31742), + 15: uint16(31735), + 16: uint16(31756), + 17: uint16(31712), + 18: uint16(31968), + 19: uint16(31964), + 20: uint16(31966), + 21: uint16(31970), + 22: uint16(31967), + 23: uint16(31961), + 24: uint16(31965), + 25: uint16(32302), + 26: uint16(32318), + 27: uint16(32326), + 28: uint16(32311), + 29: uint16(32306), + 30: uint16(32323), + 31: uint16(32299), + 32: uint16(32317), + 33: uint16(32305), + 34: uint16(32325), + 35: uint16(32321), + 36: uint16(32308), + 37: uint16(32313), + 38: uint16(32328), + 39: uint16(32309), + 40: uint16(32319), + 41: uint16(32303), + 42: uint16(32580), + 43: uint16(32755), + 44: uint16(32764), + 45: uint16(32881), + 46: uint16(32882), + 47: uint16(32880), + 48: uint16(32879), + 49: uint16(32883), + 50: uint16(33222), + 51: uint16(33219), + 52: uint16(33210), + 53: uint16(33218), + 54: uint16(33216), + 55: uint16(33215), + 56: uint16(33213), + 57: uint16(33225), + 58: uint16(33214), + 59: uint16(33256), + 60: uint16(33289), + 61: uint16(33393), + 62: uint16(34218), + 63: uint16(34180), + 64: uint16(34174), + 65: uint16(34204), + 66: uint16(34193), + 67: uint16(34196), + 68: uint16(34223), + 69: uint16(34203), + 70: uint16(34183), + 71: uint16(34216), + 72: uint16(34186), + 73: uint16(34407), + 74: uint16(34752), + 75: uint16(34769), + 76: uint16(34739), + 77: uint16(34770), + 78: uint16(34758), + 79: uint16(34731), + 80: uint16(34747), + 81: uint16(34746), + 82: uint16(34760), + 83: uint16(34763), + 84: uint16(35131), + 85: uint16(35126), + 86: uint16(35140), + 87: uint16(35128), + 88: uint16(35133), + 89: uint16(35244), + 90: uint16(35598), + 91: uint16(35607), + 92: uint16(35609), + 93: uint16(35611), + 94: uint16(35594), + 95: uint16(35616), + 96: uint16(35613), + 97: uint16(35588), + 98: uint16(35600), + 99: uint16(35905), + 100: uint16(35903), + 101: uint16(35955), + 102: uint16(36090), + 103: uint16(36093), + 104: uint16(36092), + 105: uint16(36088), + 106: uint16(36091), + 107: uint16(36264), + 108: uint16(36425), + 109: uint16(36427), + 110: uint16(36424), + 111: uint16(36426), + 112: uint16(36676), + 113: uint16(36670), + 114: uint16(36674), + 115: uint16(36677), + 116: uint16(36671), + 117: uint16(36991), + 118: uint16(36989), + 119: uint16(36996), + 120: uint16(36993), + 121: uint16(36994), + 122: uint16(36992), + 123: uint16(37177), + 124: uint16(37283), + 125: uint16(37278), + 126: uint16(37276), + 127: uint16(37709), + 128: uint16(37762), + 129: uint16(37672), + 130: uint16(37749), + 131: uint16(37706), + 132: uint16(37733), + 133: uint16(37707), + 134: uint16(37656), + 135: uint16(37758), + 136: uint16(37740), + 137: uint16(37723), + 138: uint16(37744), + 139: uint16(37722), + 140: uint16(37716), + 141: uint16(38346), + 142: uint16(38347), + 143: uint16(38348), + 144: uint16(38344), + 145: uint16(38342), + 146: uint16(38577), + 147: uint16(38584), + 148: uint16(38614), + 149: uint16(38684), + 150: uint16(38686), + 151: uint16(38816), + 152: uint16(38867), + 153: uint16(38982), + 154: uint16(39094), + 155: uint16(39221), + 156: uint16(39425), + }, + 33: { + 0: uint16(39423), + 1: uint16(39854), + 2: uint16(39851), + 3: uint16(39850), + 4: uint16(39853), + 5: uint16(40251), + 6: uint16(40255), + 7: uint16(40587), + 8: uint16(40655), + 9: uint16(40670), + 10: uint16(40668), + 11: uint16(40669), + 12: uint16(40667), + 13: uint16(40766), + 14: uint16(40779), + 15: uint16(21474), + 16: uint16(22165), + 17: uint16(22190), + 18: uint16(22745), + 19: uint16(22744), + 20: uint16(23352), + 21: uint16(24413), + 22: uint16(25059), + 23: uint16(25139), + 24: uint16(25844), + 25: uint16(25842), + 26: uint16(25854), + 27: uint16(25862), + 28: uint16(25850), + 29: uint16(25851), + 30: uint16(25847), + 31: uint16(26039), + 32: uint16(26332), + 33: uint16(26406), + 34: uint16(27315), + 35: uint16(27308), + 36: uint16(27331), + 37: uint16(27323), + 38: uint16(27320), + 39: uint16(27330), + 40: uint16(27310), + 41: uint16(27311), + 42: uint16(27487), + 43: uint16(27512), + 44: uint16(27567), + 45: uint16(28681), + 46: uint16(28683), + 47: uint16(28670), + 48: uint16(28678), + 49: uint16(28666), + 50: uint16(28689), + 51: uint16(28687), + 52: uint16(29179), + 53: uint16(29180), + 54: uint16(29182), + 55: uint16(29176), + 56: uint16(29559), + 57: uint16(29557), + 58: uint16(29863), + 59: uint16(29887), + 60: uint16(29973), + 61: uint16(30294), + 62: uint16(30296), + 63: uint16(30290), + 64: uint16(30653), + 65: uint16(30655), + 66: uint16(30651), + 67: uint16(30652), + 68: uint16(30990), + 69: uint16(31150), + 70: uint16(31329), + 71: uint16(31330), + 72: uint16(31328), + 73: uint16(31428), + 74: uint16(31429), + 75: uint16(31787), + 76: uint16(31783), + 77: uint16(31786), + 78: uint16(31774), + 79: uint16(31779), + 80: uint16(31777), + 81: uint16(31975), + 82: uint16(32340), + 83: uint16(32341), + 84: uint16(32350), + 85: uint16(32346), + 86: uint16(32353), + 87: uint16(32338), + 88: uint16(32345), + 89: uint16(32584), + 90: uint16(32761), + 91: uint16(32763), + 92: uint16(32887), + 93: uint16(32886), + 94: uint16(33229), + 95: uint16(33231), + 96: uint16(33290), + 97: uint16(34255), + 98: uint16(34217), + 99: uint16(34253), + 100: uint16(34256), + 101: uint16(34249), + 102: uint16(34224), + 103: uint16(34234), + 104: uint16(34233), + 105: uint16(34214), + 106: uint16(34799), + 107: uint16(34796), + 108: uint16(34802), + 109: uint16(34784), + 110: uint16(35206), + 111: uint16(35250), + 112: uint16(35316), + 113: uint16(35624), + 114: uint16(35641), + 115: uint16(35628), + 116: uint16(35627), + 117: uint16(35920), + 118: uint16(36101), + 119: uint16(36441), + 120: uint16(36451), + 121: uint16(36454), + 122: uint16(36452), + 123: uint16(36447), + 124: uint16(36437), + 125: uint16(36544), + 126: uint16(36681), + 127: uint16(36685), + 128: uint16(36999), + 129: uint16(36995), + 130: uint16(37000), + 131: uint16(37291), + 132: uint16(37292), + 133: uint16(37328), + 134: uint16(37780), + 135: uint16(37770), + 136: uint16(37782), + 137: uint16(37794), + 138: uint16(37811), + 139: uint16(37806), + 140: uint16(37804), + 141: uint16(37808), + 142: uint16(37784), + 143: uint16(37786), + 144: uint16(37783), + 145: uint16(38356), + 146: uint16(38358), + 147: uint16(38352), + 148: uint16(38357), + 149: uint16(38626), + 150: uint16(38620), + 151: uint16(38617), + 152: uint16(38619), + 153: uint16(38622), + 154: uint16(38692), + 155: uint16(38819), + 156: uint16(38822), + }, + 34: { + 0: uint16(38829), + 1: uint16(38905), + 2: uint16(38989), + 3: uint16(38991), + 4: uint16(38988), + 5: uint16(38990), + 6: uint16(38995), + 7: uint16(39098), + 8: uint16(39230), + 9: uint16(39231), + 10: uint16(39229), + 11: uint16(39214), + 12: uint16(39333), + 13: uint16(39438), + 14: uint16(39617), + 15: uint16(39683), + 16: uint16(39686), + 17: uint16(39759), + 18: uint16(39758), + 19: uint16(39757), + 20: uint16(39882), + 21: uint16(39881), + 22: uint16(39933), + 23: uint16(39880), + 24: uint16(39872), + 25: uint16(40273), + 26: uint16(40285), + 27: uint16(40288), + 28: uint16(40672), + 29: uint16(40725), + 30: uint16(40748), + 31: uint16(20787), + 32: uint16(22181), + 33: uint16(22750), + 34: uint16(22751), + 35: uint16(22754), + 36: uint16(23541), + 37: uint16(40848), + 38: uint16(24300), + 39: uint16(25074), + 40: uint16(25079), + 41: uint16(25078), + 42: uint16(25077), + 43: uint16(25856), + 44: uint16(25871), + 45: uint16(26336), + 46: uint16(26333), + 47: uint16(27365), + 48: uint16(27357), + 49: uint16(27354), + 50: uint16(27347), + 51: uint16(28699), + 52: uint16(28703), + 53: uint16(28712), + 54: uint16(28698), + 55: uint16(28701), + 56: uint16(28693), + 57: uint16(28696), + 58: uint16(29190), + 59: uint16(29197), + 60: uint16(29272), + 61: uint16(29346), + 62: uint16(29560), + 63: uint16(29562), + 64: uint16(29885), + 65: uint16(29898), + 66: uint16(29923), + 67: uint16(30087), + 68: uint16(30086), + 69: uint16(30303), + 70: uint16(30305), + 71: uint16(30663), + 72: uint16(31001), + 73: uint16(31153), + 74: uint16(31339), + 75: uint16(31337), + 76: uint16(31806), + 77: uint16(31807), + 78: uint16(31800), + 79: uint16(31805), + 80: uint16(31799), + 81: uint16(31808), + 82: uint16(32363), + 83: uint16(32365), + 84: uint16(32377), + 85: uint16(32361), + 86: uint16(32362), + 87: uint16(32645), + 88: uint16(32371), + 89: uint16(32694), + 90: uint16(32697), + 91: uint16(32696), + 92: uint16(33240), + 93: uint16(34281), + 94: uint16(34269), + 95: uint16(34282), + 96: uint16(34261), + 97: uint16(34276), + 98: uint16(34277), + 99: uint16(34295), + 100: uint16(34811), + 101: uint16(34821), + 102: uint16(34829), + 103: uint16(34809), + 104: uint16(34814), + 105: uint16(35168), + 106: uint16(35167), + 107: uint16(35158), + 108: uint16(35166), + 109: uint16(35649), + 110: uint16(35676), + 111: uint16(35672), + 112: uint16(35657), + 113: uint16(35674), + 114: uint16(35662), + 115: uint16(35663), + 116: uint16(35654), + 117: uint16(35673), + 118: uint16(36104), + 119: uint16(36106), + 120: uint16(36476), + 121: uint16(36466), + 122: uint16(36487), + 123: uint16(36470), + 124: uint16(36460), + 125: uint16(36474), + 126: uint16(36468), + 127: uint16(36692), + 128: uint16(36686), + 129: uint16(36781), + 130: uint16(37002), + 131: uint16(37003), + 132: uint16(37297), + 133: uint16(37294), + 134: uint16(37857), + 135: uint16(37841), + 136: uint16(37855), + 137: uint16(37827), + 138: uint16(37832), + 139: uint16(37852), + 140: uint16(37853), + 141: uint16(37846), + 142: uint16(37858), + 143: uint16(37837), + 144: uint16(37848), + 145: uint16(37860), + 146: uint16(37847), + 147: uint16(37864), + 148: uint16(38364), + 149: uint16(38580), + 150: uint16(38627), + 151: uint16(38698), + 152: uint16(38695), + 153: uint16(38753), + 154: uint16(38876), + 155: uint16(38907), + 156: uint16(39006), + }, + 35: { + 0: uint16(39000), + 1: uint16(39003), + 2: uint16(39100), + 3: uint16(39237), + 4: uint16(39241), + 5: uint16(39446), + 6: uint16(39449), + 7: uint16(39693), + 8: uint16(39912), + 9: uint16(39911), + 10: uint16(39894), + 11: uint16(39899), + 12: uint16(40329), + 13: uint16(40289), + 14: uint16(40306), + 15: uint16(40298), + 16: uint16(40300), + 17: uint16(40594), + 18: uint16(40599), + 19: uint16(40595), + 20: uint16(40628), + 21: uint16(21240), + 22: uint16(22184), + 23: uint16(22199), + 24: uint16(22198), + 25: uint16(22196), + 26: uint16(22204), + 27: uint16(22756), + 28: uint16(23360), + 29: uint16(23363), + 30: uint16(23421), + 31: uint16(23542), + 32: uint16(24009), + 33: uint16(25080), + 34: uint16(25082), + 35: uint16(25880), + 36: uint16(25876), + 37: uint16(25881), + 38: uint16(26342), + 39: uint16(26407), + 40: uint16(27372), + 41: uint16(28734), + 42: uint16(28720), + 43: uint16(28722), + 44: uint16(29200), + 45: uint16(29563), + 46: uint16(29903), + 47: uint16(30306), + 48: uint16(30309), + 49: uint16(31014), + 50: uint16(31018), + 51: uint16(31020), + 52: uint16(31019), + 53: uint16(31431), + 54: uint16(31478), + 55: uint16(31820), + 56: uint16(31811), + 57: uint16(31821), + 58: uint16(31983), + 59: uint16(31984), + 60: uint16(36782), + 61: uint16(32381), + 62: uint16(32380), + 63: uint16(32386), + 64: uint16(32588), + 65: uint16(32768), + 66: uint16(33242), + 67: uint16(33382), + 68: uint16(34299), + 69: uint16(34297), + 70: uint16(34321), + 71: uint16(34298), + 72: uint16(34310), + 73: uint16(34315), + 74: uint16(34311), + 75: uint16(34314), + 76: uint16(34836), + 77: uint16(34837), + 78: uint16(35172), + 79: uint16(35258), + 80: uint16(35320), + 81: uint16(35696), + 82: uint16(35692), + 83: uint16(35686), + 84: uint16(35695), + 85: uint16(35679), + 86: uint16(35691), + 87: uint16(36111), + 88: uint16(36109), + 89: uint16(36489), + 90: uint16(36481), + 91: uint16(36485), + 92: uint16(36482), + 93: uint16(37300), + 94: uint16(37323), + 95: uint16(37912), + 96: uint16(37891), + 97: uint16(37885), + 98: uint16(38369), + 99: uint16(38704), + 100: uint16(39108), + 101: uint16(39250), + 102: uint16(39249), + 103: uint16(39336), + 104: uint16(39467), + 105: uint16(39472), + 106: uint16(39479), + 107: uint16(39477), + 108: uint16(39955), + 109: uint16(39949), + 110: uint16(40569), + 111: uint16(40629), + 112: uint16(40680), + 113: uint16(40751), + 114: uint16(40799), + 115: uint16(40803), + 116: uint16(40801), + 117: uint16(20791), + 118: uint16(20792), + 119: uint16(22209), + 120: uint16(22208), + 121: uint16(22210), + 122: uint16(22804), + 123: uint16(23660), + 124: uint16(24013), + 125: uint16(25084), + 126: uint16(25086), + 127: uint16(25885), + 128: uint16(25884), + 129: uint16(26005), + 130: uint16(26345), + 131: uint16(27387), + 132: uint16(27396), + 133: uint16(27386), + 134: uint16(27570), + 135: uint16(28748), + 136: uint16(29211), + 137: uint16(29351), + 138: uint16(29910), + 139: uint16(29908), + 140: uint16(30313), + 141: uint16(30675), + 142: uint16(31824), + 143: uint16(32399), + 144: uint16(32396), + 145: uint16(32700), + 146: uint16(34327), + 147: uint16(34349), + 148: uint16(34330), + 149: uint16(34851), + 150: uint16(34850), + 151: uint16(34849), + 152: uint16(34847), + 153: uint16(35178), + 154: uint16(35180), + 155: uint16(35261), + 156: uint16(35700), + }, + 36: { + 0: uint16(35703), + 1: uint16(35709), + 2: uint16(36115), + 3: uint16(36490), + 4: uint16(36493), + 5: uint16(36491), + 6: uint16(36703), + 7: uint16(36783), + 8: uint16(37306), + 9: uint16(37934), + 10: uint16(37939), + 11: uint16(37941), + 12: uint16(37946), + 13: uint16(37944), + 14: uint16(37938), + 15: uint16(37931), + 16: uint16(38370), + 17: uint16(38712), + 18: uint16(38713), + 19: uint16(38706), + 20: uint16(38911), + 21: uint16(39015), + 22: uint16(39013), + 23: uint16(39255), + 24: uint16(39493), + 25: uint16(39491), + 26: uint16(39488), + 27: uint16(39486), + 28: uint16(39631), + 29: uint16(39764), + 30: uint16(39761), + 31: uint16(39981), + 32: uint16(39973), + 33: uint16(40367), + 34: uint16(40372), + 35: uint16(40386), + 36: uint16(40376), + 37: uint16(40605), + 38: uint16(40687), + 39: uint16(40729), + 40: uint16(40796), + 41: uint16(40806), + 42: uint16(40807), + 43: uint16(20796), + 44: uint16(20795), + 45: uint16(22216), + 46: uint16(22218), + 47: uint16(22217), + 48: uint16(23423), + 49: uint16(24020), + 50: uint16(24018), + 51: uint16(24398), + 52: uint16(25087), + 53: uint16(25892), + 54: uint16(27402), + 55: uint16(27489), + 56: uint16(28753), + 57: uint16(28760), + 58: uint16(29568), + 59: uint16(29924), + 60: uint16(30090), + 61: uint16(30318), + 62: uint16(30316), + 63: uint16(31155), + 64: uint16(31840), + 65: uint16(31839), + 66: uint16(32894), + 67: uint16(32893), + 68: uint16(33247), + 69: uint16(35186), + 70: uint16(35183), + 71: uint16(35324), + 72: uint16(35712), + 73: uint16(36118), + 74: uint16(36119), + 75: uint16(36497), + 76: uint16(36499), + 77: uint16(36705), + 78: uint16(37192), + 79: uint16(37956), + 80: uint16(37969), + 81: uint16(37970), + 82: uint16(38717), + 83: uint16(38718), + 84: uint16(38851), + 85: uint16(38849), + 86: uint16(39019), + 87: uint16(39253), + 88: uint16(39509), + 89: uint16(39501), + 90: uint16(39634), + 91: uint16(39706), + 92: uint16(40009), + 93: uint16(39985), + 94: uint16(39998), + 95: uint16(39995), + 96: uint16(40403), + 97: uint16(40407), + 98: uint16(40756), + 99: uint16(40812), + 100: uint16(40810), + 101: uint16(40852), + 102: uint16(22220), + 103: uint16(24022), + 104: uint16(25088), + 105: uint16(25891), + 106: uint16(25899), + 107: uint16(25898), + 108: uint16(26348), + 109: uint16(27408), + 110: uint16(29914), + 111: uint16(31434), + 112: uint16(31844), + 113: uint16(31843), + 114: uint16(31845), + 115: uint16(32403), + 116: uint16(32406), + 117: uint16(32404), + 118: uint16(33250), + 119: uint16(34360), + 120: uint16(34367), + 121: uint16(34865), + 122: uint16(35722), + 123: uint16(37008), + 124: uint16(37007), + 125: uint16(37987), + 126: uint16(37984), + 127: uint16(37988), + 128: uint16(38760), + 129: uint16(39023), + 130: uint16(39260), + 131: uint16(39514), + 132: uint16(39515), + 133: uint16(39511), + 134: uint16(39635), + 135: uint16(39636), + 136: uint16(39633), + 137: uint16(40020), + 138: uint16(40023), + 139: uint16(40022), + 140: uint16(40421), + 141: uint16(40607), + 142: uint16(40692), + 143: uint16(22225), + 144: uint16(22761), + 145: uint16(25900), + 146: uint16(28766), + 147: uint16(30321), + 148: uint16(30322), + 149: uint16(30679), + 150: uint16(32592), + 151: uint16(32648), + 152: uint16(34870), + 153: uint16(34873), + 154: uint16(34914), + 155: uint16(35731), + 156: uint16(35730), + }, + 37: { + 0: uint16(35734), + 1: uint16(33399), + 2: uint16(36123), + 3: uint16(37312), + 4: uint16(37994), + 5: uint16(38722), + 6: uint16(38728), + 7: uint16(38724), + 8: uint16(38854), + 9: uint16(39024), + 10: uint16(39519), + 11: uint16(39714), + 12: uint16(39768), + 13: uint16(40031), + 14: uint16(40441), + 15: uint16(40442), + 16: uint16(40572), + 17: uint16(40573), + 18: uint16(40711), + 19: uint16(40823), + 20: uint16(40818), + 21: uint16(24307), + 22: uint16(27414), + 23: uint16(28771), + 24: uint16(31852), + 25: uint16(31854), + 26: uint16(34875), + 27: uint16(35264), + 28: uint16(36513), + 29: uint16(37313), + 30: uint16(38002), + 31: uint16(38000), + 32: uint16(39025), + 33: uint16(39262), + 34: uint16(39638), + 35: uint16(39715), + 36: uint16(40652), + 37: uint16(28772), + 38: uint16(30682), + 39: uint16(35738), + 40: uint16(38007), + 41: uint16(38857), + 42: uint16(39522), + 43: uint16(39525), + 44: uint16(32412), + 45: uint16(35740), + 46: uint16(36522), + 47: uint16(37317), + 48: uint16(38013), + 49: uint16(38014), + 50: uint16(38012), + 51: uint16(40055), + 52: uint16(40056), + 53: uint16(40695), + 54: uint16(35924), + 55: uint16(38015), + 56: uint16(40474), + 57: uint16(29224), + 58: uint16(39530), + 59: uint16(39729), + 60: uint16(40475), + 61: uint16(40478), + 62: uint16(31858), + 63: uint16(9312), + 64: uint16(9313), + 65: uint16(9314), + 66: uint16(9315), + 67: uint16(9316), + 68: uint16(9317), + 69: uint16(9318), + 70: uint16(9319), + 71: uint16(9320), + 72: uint16(9321), + 73: uint16(9332), + 74: uint16(9333), + 75: uint16(9334), + 76: uint16(9335), + 77: uint16(9336), + 78: uint16(9337), + 79: uint16(9338), + 80: uint16(9339), + 81: uint16(9340), + 82: uint16(9341), + 83: uint16(8560), + 84: uint16(8561), + 85: uint16(8562), + 86: uint16(8563), + 87: uint16(8564), + 88: uint16(8565), + 89: uint16(8566), + 90: uint16(8567), + 91: uint16(8568), + 92: uint16(8569), + 93: uint16(20022), + 94: uint16(20031), + 95: uint16(20101), + 96: uint16(20128), + 97: uint16(20866), + 98: uint16(20886), + 99: uint16(20907), + 100: uint16(21241), + 101: uint16(21304), + 102: uint16(21353), + 103: uint16(21430), + 104: uint16(22794), + 105: uint16(23424), + 106: uint16(24027), + 107: uint16(24186), + 108: uint16(24191), + 109: uint16(24308), + 110: uint16(24400), + 111: uint16(24417), + 112: uint16(25908), + 113: uint16(26080), + 114: uint16(30098), + 115: uint16(30326), + 116: uint16(36789), + 117: uint16(38582), + 118: uint16(168), + 119: uint16(710), + 120: uint16(12541), + 121: uint16(12542), + 122: uint16(12445), + 123: uint16(12446), + 126: uint16(12293), + 127: uint16(12294), + 128: uint16(12295), + 129: uint16(12540), + 130: uint16(65339), + 131: uint16(65341), + 132: uint16(10045), + 133: uint16(12353), + 134: uint16(12354), + 135: uint16(12355), + 136: uint16(12356), + 137: uint16(12357), + 138: uint16(12358), + 139: uint16(12359), + 140: uint16(12360), + 141: uint16(12361), + 142: uint16(12362), + 143: uint16(12363), + 144: uint16(12364), + 145: uint16(12365), + 146: uint16(12366), + 147: uint16(12367), + 148: uint16(12368), + 149: uint16(12369), + 150: uint16(12370), + 151: uint16(12371), + 152: uint16(12372), + 153: uint16(12373), + 154: uint16(12374), + 155: uint16(12375), + 156: uint16(12376), + }, + 38: { + 0: uint16(12377), + 1: uint16(12378), + 2: uint16(12379), + 3: uint16(12380), + 4: uint16(12381), + 5: uint16(12382), + 6: uint16(12383), + 7: uint16(12384), + 8: uint16(12385), + 9: uint16(12386), + 10: uint16(12387), + 11: uint16(12388), + 12: uint16(12389), + 13: uint16(12390), + 14: uint16(12391), + 15: uint16(12392), + 16: uint16(12393), + 17: uint16(12394), + 18: uint16(12395), + 19: uint16(12396), + 20: uint16(12397), + 21: uint16(12398), + 22: uint16(12399), + 23: uint16(12400), + 24: uint16(12401), + 25: uint16(12402), + 26: uint16(12403), + 27: uint16(12404), + 28: uint16(12405), + 29: uint16(12406), + 30: uint16(12407), + 31: uint16(12408), + 32: uint16(12409), + 33: uint16(12410), + 34: uint16(12411), + 35: uint16(12412), + 36: uint16(12413), + 37: uint16(12414), + 38: uint16(12415), + 39: uint16(12416), + 40: uint16(12417), + 41: uint16(12418), + 42: uint16(12419), + 43: uint16(12420), + 44: uint16(12421), + 45: uint16(12422), + 46: uint16(12423), + 47: uint16(12424), + 48: uint16(12425), + 49: uint16(12426), + 50: uint16(12427), + 51: uint16(12428), + 52: uint16(12429), + 53: uint16(12430), + 54: uint16(12431), + 55: uint16(12432), + 56: uint16(12433), + 57: uint16(12434), + 58: uint16(12435), + 59: uint16(12449), + 60: uint16(12450), + 61: uint16(12451), + 62: uint16(12452), + 63: uint16(12453), + 64: uint16(12454), + 65: uint16(12455), + 66: uint16(12456), + 67: uint16(12457), + 68: uint16(12458), + 69: uint16(12459), + 70: uint16(12460), + 71: uint16(12461), + 72: uint16(12462), + 73: uint16(12463), + 74: uint16(12464), + 75: uint16(12465), + 76: uint16(12466), + 77: uint16(12467), + 78: uint16(12468), + 79: uint16(12469), + 80: uint16(12470), + 81: uint16(12471), + 82: uint16(12472), + 83: uint16(12473), + 84: uint16(12474), + 85: uint16(12475), + 86: uint16(12476), + 87: uint16(12477), + 88: uint16(12478), + 89: uint16(12479), + 90: uint16(12480), + 91: uint16(12481), + 92: uint16(12482), + 93: uint16(12483), + 94: uint16(12484), + 95: uint16(12485), + 96: uint16(12486), + 97: uint16(12487), + 98: uint16(12488), + 99: uint16(12489), + 100: uint16(12490), + 101: uint16(12491), + 102: uint16(12492), + 103: uint16(12493), + 104: uint16(12494), + 105: uint16(12495), + 106: uint16(12496), + 107: uint16(12497), + 108: uint16(12498), + 109: uint16(12499), + 110: uint16(12500), + 111: uint16(12501), + 112: uint16(12502), + 113: uint16(12503), + 114: uint16(12504), + 115: uint16(12505), + 116: uint16(12506), + 117: uint16(12507), + 118: uint16(12508), + 119: uint16(12509), + 120: uint16(12510), + 121: uint16(12511), + 122: uint16(12512), + 123: uint16(12513), + 124: uint16(12514), + 125: uint16(12515), + 126: uint16(12516), + 127: uint16(12517), + 128: uint16(12518), + 129: uint16(12519), + 130: uint16(12520), + 131: uint16(12521), + 132: uint16(12522), + 133: uint16(12523), + 134: uint16(12524), + 135: uint16(12525), + 136: uint16(12526), + 137: uint16(12527), + 138: uint16(12528), + 139: uint16(12529), + 140: uint16(12530), + 141: uint16(12531), + 142: uint16(12532), + 143: uint16(12533), + 144: uint16(12534), + 145: uint16(1040), + 146: uint16(1041), + 147: uint16(1042), + 148: uint16(1043), + 149: uint16(1044), + 150: uint16(1045), + 151: uint16(1025), + 152: uint16(1046), + 153: uint16(1047), + 154: uint16(1048), + 155: uint16(1049), + 156: uint16(1050), + }, + 39: { + 0: uint16(1051), + 1: uint16(1052), + 2: uint16(1053), + 3: uint16(1054), + 4: uint16(1055), + 5: uint16(1056), + 6: uint16(1057), + 7: uint16(1058), + 8: uint16(1059), + 9: uint16(1060), + 10: uint16(1061), + 11: uint16(1062), + 12: uint16(1063), + 13: uint16(1064), + 14: uint16(1065), + 15: uint16(1066), + 16: uint16(1067), + 17: uint16(1068), + 18: uint16(1069), + 19: uint16(1070), + 20: uint16(1071), + 21: uint16(1072), + 22: uint16(1073), + 23: uint16(1074), + 24: uint16(1075), + 25: uint16(1076), + 26: uint16(1077), + 27: uint16(1105), + 28: uint16(1078), + 29: uint16(1079), + 30: uint16(1080), + 31: uint16(1081), + 32: uint16(1082), + 33: uint16(1083), + 34: uint16(1084), + 35: uint16(1085), + 36: uint16(1086), + 37: uint16(1087), + 38: uint16(1088), + 39: uint16(1089), + 40: uint16(1090), + 41: uint16(1091), + 42: uint16(1092), + 43: uint16(1093), + 44: uint16(1094), + 45: uint16(1095), + 46: uint16(1096), + 47: uint16(1097), + 48: uint16(1098), + 49: uint16(1099), + 50: uint16(1100), + 51: uint16(1101), + 52: uint16(1102), + 53: uint16(1103), + 54: uint16(8679), + 55: uint16(8632), + 56: uint16(8633), + 57: uint16(12751), + 58: uint16(204), + 59: uint16(20058), + 60: uint16(138), + 61: uint16(20994), + 62: uint16(17553), + 63: uint16(40880), + 64: uint16(20872), + 65: uint16(40881), + 66: uint16(30215), + 107: uint16(65506), + 108: uint16(65508), + 109: uint16(65287), + 110: uint16(65282), + 111: uint16(12849), + 112: uint16(8470), + 113: uint16(8481), + 114: uint16(12443), + 115: uint16(12444), + 116: uint16(11904), + 117: uint16(11908), + 118: uint16(11910), + 119: uint16(11911), + 120: uint16(11912), + 121: uint16(11914), + 122: uint16(11916), + 123: uint16(11917), + 124: uint16(11925), + 125: uint16(11932), + 126: uint16(11933), + 127: uint16(11941), + 128: uint16(11943), + 129: uint16(11946), + 130: uint16(11948), + 131: uint16(11950), + 132: uint16(11958), + 133: uint16(11964), + 134: uint16(11966), + 135: uint16(11974), + 136: uint16(11978), + 137: uint16(11980), + 138: uint16(11981), + 139: uint16(11983), + 140: uint16(11990), + 141: uint16(11991), + 142: uint16(11998), + 143: uint16(12003), + 147: uint16(643), + 148: uint16(592), + 149: uint16(603), + 150: uint16(596), + 151: uint16(629), + 152: uint16(339), + 153: uint16(248), + 154: uint16(331), + 155: uint16(650), + 156: uint16(618), + }, + 40: { + 0: uint16(20034), + 1: uint16(20060), + 2: uint16(20981), + 3: uint16(21274), + 4: uint16(21378), + 5: uint16(19975), + 6: uint16(19980), + 7: uint16(20039), + 8: uint16(20109), + 9: uint16(22231), + 10: uint16(64012), + 11: uint16(23662), + 12: uint16(24435), + 13: uint16(19983), + 14: uint16(20871), + 15: uint16(19982), + 16: uint16(20014), + 17: uint16(20115), + 18: uint16(20162), + 19: uint16(20169), + 20: uint16(20168), + 21: uint16(20888), + 22: uint16(21244), + 23: uint16(21356), + 24: uint16(21433), + 25: uint16(22304), + 26: uint16(22787), + 27: uint16(22828), + 28: uint16(23568), + 29: uint16(24063), + 30: uint16(26081), + 31: uint16(27571), + 32: uint16(27596), + 33: uint16(27668), + 34: uint16(29247), + 35: uint16(20017), + 36: uint16(20028), + 37: uint16(20200), + 38: uint16(20188), + 39: uint16(20201), + 40: uint16(20193), + 41: uint16(20189), + 42: uint16(20186), + 43: uint16(21004), + 44: uint16(21276), + 45: uint16(21324), + 46: uint16(22306), + 47: uint16(22307), + 48: uint16(22807), + 49: uint16(22831), + 50: uint16(23425), + 51: uint16(23428), + 52: uint16(23570), + 53: uint16(23611), + 54: uint16(23668), + 55: uint16(23667), + 56: uint16(24068), + 57: uint16(24192), + 58: uint16(24194), + 59: uint16(24521), + 60: uint16(25097), + 61: uint16(25168), + 62: uint16(27669), + 63: uint16(27702), + 64: uint16(27715), + 65: uint16(27711), + 66: uint16(27707), + 67: uint16(29358), + 68: uint16(29360), + 69: uint16(29578), + 70: uint16(31160), + 71: uint16(32906), + 72: uint16(38430), + 73: uint16(20238), + 74: uint16(20248), + 75: uint16(20268), + 76: uint16(20213), + 77: uint16(20244), + 78: uint16(20209), + 79: uint16(20224), + 80: uint16(20215), + 81: uint16(20232), + 82: uint16(20253), + 83: uint16(20226), + 84: uint16(20229), + 85: uint16(20258), + 86: uint16(20243), + 87: uint16(20228), + 88: uint16(20212), + 89: uint16(20242), + 90: uint16(20913), + 91: uint16(21011), + 92: uint16(21001), + 93: uint16(21008), + 94: uint16(21158), + 95: uint16(21282), + 96: uint16(21279), + 97: uint16(21325), + 98: uint16(21386), + 99: uint16(21511), + 100: uint16(22241), + 101: uint16(22239), + 102: uint16(22318), + 103: uint16(22314), + 104: uint16(22324), + 105: uint16(22844), + 106: uint16(22912), + 107: uint16(22908), + 108: uint16(22917), + 109: uint16(22907), + 110: uint16(22910), + 111: uint16(22903), + 112: uint16(22911), + 113: uint16(23382), + 114: uint16(23573), + 115: uint16(23589), + 116: uint16(23676), + 117: uint16(23674), + 118: uint16(23675), + 119: uint16(23678), + 120: uint16(24031), + 121: uint16(24181), + 122: uint16(24196), + 123: uint16(24322), + 124: uint16(24346), + 125: uint16(24436), + 126: uint16(24533), + 127: uint16(24532), + 128: uint16(24527), + 129: uint16(25180), + 130: uint16(25182), + 131: uint16(25188), + 132: uint16(25185), + 133: uint16(25190), + 134: uint16(25186), + 135: uint16(25177), + 136: uint16(25184), + 137: uint16(25178), + 138: uint16(25189), + 139: uint16(26095), + 140: uint16(26094), + 141: uint16(26430), + 142: uint16(26425), + 143: uint16(26424), + 144: uint16(26427), + 145: uint16(26426), + 146: uint16(26431), + 147: uint16(26428), + 148: uint16(26419), + 149: uint16(27672), + 150: uint16(27718), + 151: uint16(27730), + 152: uint16(27740), + 153: uint16(27727), + 154: uint16(27722), + 155: uint16(27732), + 156: uint16(27723), + }, + 41: { + 0: uint16(27724), + 1: uint16(28785), + 2: uint16(29278), + 3: uint16(29364), + 4: uint16(29365), + 5: uint16(29582), + 6: uint16(29994), + 7: uint16(30335), + 8: uint16(31349), + 9: uint16(32593), + 10: uint16(33400), + 11: uint16(33404), + 12: uint16(33408), + 13: uint16(33405), + 14: uint16(33407), + 15: uint16(34381), + 16: uint16(35198), + 17: uint16(37017), + 18: uint16(37015), + 19: uint16(37016), + 20: uint16(37019), + 21: uint16(37012), + 22: uint16(38434), + 23: uint16(38436), + 24: uint16(38432), + 25: uint16(38435), + 26: uint16(20310), + 27: uint16(20283), + 28: uint16(20322), + 29: uint16(20297), + 30: uint16(20307), + 31: uint16(20324), + 32: uint16(20286), + 33: uint16(20327), + 34: uint16(20306), + 35: uint16(20319), + 36: uint16(20289), + 37: uint16(20312), + 38: uint16(20269), + 39: uint16(20275), + 40: uint16(20287), + 41: uint16(20321), + 42: uint16(20879), + 43: uint16(20921), + 44: uint16(21020), + 45: uint16(21022), + 46: uint16(21025), + 47: uint16(21165), + 48: uint16(21166), + 49: uint16(21257), + 50: uint16(21347), + 51: uint16(21362), + 52: uint16(21390), + 53: uint16(21391), + 54: uint16(21552), + 55: uint16(21559), + 56: uint16(21546), + 57: uint16(21588), + 58: uint16(21573), + 59: uint16(21529), + 60: uint16(21532), + 61: uint16(21541), + 62: uint16(21528), + 63: uint16(21565), + 64: uint16(21583), + 65: uint16(21569), + 66: uint16(21544), + 67: uint16(21540), + 68: uint16(21575), + 69: uint16(22254), + 70: uint16(22247), + 71: uint16(22245), + 72: uint16(22337), + 73: uint16(22341), + 74: uint16(22348), + 75: uint16(22345), + 76: uint16(22347), + 77: uint16(22354), + 78: uint16(22790), + 79: uint16(22848), + 80: uint16(22950), + 81: uint16(22936), + 82: uint16(22944), + 83: uint16(22935), + 84: uint16(22926), + 85: uint16(22946), + 86: uint16(22928), + 87: uint16(22927), + 88: uint16(22951), + 89: uint16(22945), + 90: uint16(23438), + 91: uint16(23442), + 92: uint16(23592), + 93: uint16(23594), + 94: uint16(23693), + 95: uint16(23695), + 96: uint16(23688), + 97: uint16(23691), + 98: uint16(23689), + 99: uint16(23698), + 100: uint16(23690), + 101: uint16(23686), + 102: uint16(23699), + 103: uint16(23701), + 104: uint16(24032), + 105: uint16(24074), + 106: uint16(24078), + 107: uint16(24203), + 108: uint16(24201), + 109: uint16(24204), + 110: uint16(24200), + 111: uint16(24205), + 112: uint16(24325), + 113: uint16(24349), + 114: uint16(24440), + 115: uint16(24438), + 116: uint16(24530), + 117: uint16(24529), + 118: uint16(24528), + 119: uint16(24557), + 120: uint16(24552), + 121: uint16(24558), + 122: uint16(24563), + 123: uint16(24545), + 124: uint16(24548), + 125: uint16(24547), + 126: uint16(24570), + 127: uint16(24559), + 128: uint16(24567), + 129: uint16(24571), + 130: uint16(24576), + 131: uint16(24564), + 132: uint16(25146), + 133: uint16(25219), + 134: uint16(25228), + 135: uint16(25230), + 136: uint16(25231), + 137: uint16(25236), + 138: uint16(25223), + 139: uint16(25201), + 140: uint16(25211), + 141: uint16(25210), + 142: uint16(25200), + 143: uint16(25217), + 144: uint16(25224), + 145: uint16(25207), + 146: uint16(25213), + 147: uint16(25202), + 148: uint16(25204), + 149: uint16(25911), + 150: uint16(26096), + 151: uint16(26100), + 152: uint16(26099), + 153: uint16(26098), + 154: uint16(26101), + 155: uint16(26437), + 156: uint16(26439), + }, + 42: { + 0: uint16(26457), + 1: uint16(26453), + 2: uint16(26444), + 3: uint16(26440), + 4: uint16(26461), + 5: uint16(26445), + 6: uint16(26458), + 7: uint16(26443), + 8: uint16(27600), + 9: uint16(27673), + 10: uint16(27674), + 11: uint16(27768), + 12: uint16(27751), + 13: uint16(27755), + 14: uint16(27780), + 15: uint16(27787), + 16: uint16(27791), + 17: uint16(27761), + 18: uint16(27759), + 19: uint16(27753), + 20: uint16(27802), + 21: uint16(27757), + 22: uint16(27783), + 23: uint16(27797), + 24: uint16(27804), + 25: uint16(27750), + 26: uint16(27763), + 27: uint16(27749), + 28: uint16(27771), + 29: uint16(27790), + 30: uint16(28788), + 31: uint16(28794), + 32: uint16(29283), + 33: uint16(29375), + 34: uint16(29373), + 35: uint16(29379), + 36: uint16(29382), + 37: uint16(29377), + 38: uint16(29370), + 39: uint16(29381), + 40: uint16(29589), + 41: uint16(29591), + 42: uint16(29587), + 43: uint16(29588), + 44: uint16(29586), + 45: uint16(30010), + 46: uint16(30009), + 47: uint16(30100), + 48: uint16(30101), + 49: uint16(30337), + 50: uint16(31037), + 51: uint16(32820), + 52: uint16(32917), + 53: uint16(32921), + 54: uint16(32912), + 55: uint16(32914), + 56: uint16(32924), + 57: uint16(33424), + 58: uint16(33423), + 59: uint16(33413), + 60: uint16(33422), + 61: uint16(33425), + 62: uint16(33427), + 63: uint16(33418), + 64: uint16(33411), + 65: uint16(33412), + 66: uint16(35960), + 67: uint16(36809), + 68: uint16(36799), + 69: uint16(37023), + 70: uint16(37025), + 71: uint16(37029), + 72: uint16(37022), + 73: uint16(37031), + 74: uint16(37024), + 75: uint16(38448), + 76: uint16(38440), + 77: uint16(38447), + 78: uint16(38445), + 79: uint16(20019), + 80: uint16(20376), + 81: uint16(20348), + 82: uint16(20357), + 83: uint16(20349), + 84: uint16(20352), + 85: uint16(20359), + 86: uint16(20342), + 87: uint16(20340), + 88: uint16(20361), + 89: uint16(20356), + 90: uint16(20343), + 91: uint16(20300), + 92: uint16(20375), + 93: uint16(20330), + 94: uint16(20378), + 95: uint16(20345), + 96: uint16(20353), + 97: uint16(20344), + 98: uint16(20368), + 99: uint16(20380), + 100: uint16(20372), + 101: uint16(20382), + 102: uint16(20370), + 103: uint16(20354), + 104: uint16(20373), + 105: uint16(20331), + 106: uint16(20334), + 107: uint16(20894), + 108: uint16(20924), + 109: uint16(20926), + 110: uint16(21045), + 111: uint16(21042), + 112: uint16(21043), + 113: uint16(21062), + 114: uint16(21041), + 115: uint16(21180), + 116: uint16(21258), + 117: uint16(21259), + 118: uint16(21308), + 119: uint16(21394), + 120: uint16(21396), + 121: uint16(21639), + 122: uint16(21631), + 123: uint16(21633), + 124: uint16(21649), + 125: uint16(21634), + 126: uint16(21640), + 127: uint16(21611), + 128: uint16(21626), + 129: uint16(21630), + 130: uint16(21605), + 131: uint16(21612), + 132: uint16(21620), + 133: uint16(21606), + 134: uint16(21645), + 135: uint16(21615), + 136: uint16(21601), + 137: uint16(21600), + 138: uint16(21656), + 139: uint16(21603), + 140: uint16(21607), + 141: uint16(21604), + 142: uint16(22263), + 143: uint16(22265), + 144: uint16(22383), + 145: uint16(22386), + 146: uint16(22381), + 147: uint16(22379), + 148: uint16(22385), + 149: uint16(22384), + 150: uint16(22390), + 151: uint16(22400), + 152: uint16(22389), + 153: uint16(22395), + 154: uint16(22387), + 155: uint16(22388), + 156: uint16(22370), + }, + 43: { + 0: uint16(22376), + 1: uint16(22397), + 2: uint16(22796), + 3: uint16(22853), + 4: uint16(22965), + 5: uint16(22970), + 6: uint16(22991), + 7: uint16(22990), + 8: uint16(22962), + 9: uint16(22988), + 10: uint16(22977), + 11: uint16(22966), + 12: uint16(22972), + 13: uint16(22979), + 14: uint16(22998), + 15: uint16(22961), + 16: uint16(22973), + 17: uint16(22976), + 18: uint16(22984), + 19: uint16(22964), + 20: uint16(22983), + 21: uint16(23394), + 22: uint16(23397), + 23: uint16(23443), + 24: uint16(23445), + 25: uint16(23620), + 26: uint16(23623), + 27: uint16(23726), + 28: uint16(23716), + 29: uint16(23712), + 30: uint16(23733), + 31: uint16(23727), + 32: uint16(23720), + 33: uint16(23724), + 34: uint16(23711), + 35: uint16(23715), + 36: uint16(23725), + 37: uint16(23714), + 38: uint16(23722), + 39: uint16(23719), + 40: uint16(23709), + 41: uint16(23717), + 42: uint16(23734), + 43: uint16(23728), + 44: uint16(23718), + 45: uint16(24087), + 46: uint16(24084), + 47: uint16(24089), + 48: uint16(24360), + 49: uint16(24354), + 50: uint16(24355), + 51: uint16(24356), + 52: uint16(24404), + 53: uint16(24450), + 54: uint16(24446), + 55: uint16(24445), + 56: uint16(24542), + 57: uint16(24549), + 58: uint16(24621), + 59: uint16(24614), + 60: uint16(24601), + 61: uint16(24626), + 62: uint16(24587), + 63: uint16(24628), + 64: uint16(24586), + 65: uint16(24599), + 66: uint16(24627), + 67: uint16(24602), + 68: uint16(24606), + 69: uint16(24620), + 70: uint16(24610), + 71: uint16(24589), + 72: uint16(24592), + 73: uint16(24622), + 74: uint16(24595), + 75: uint16(24593), + 76: uint16(24588), + 77: uint16(24585), + 78: uint16(24604), + 79: uint16(25108), + 80: uint16(25149), + 81: uint16(25261), + 82: uint16(25268), + 83: uint16(25297), + 84: uint16(25278), + 85: uint16(25258), + 86: uint16(25270), + 87: uint16(25290), + 88: uint16(25262), + 89: uint16(25267), + 90: uint16(25263), + 91: uint16(25275), + 92: uint16(25257), + 93: uint16(25264), + 94: uint16(25272), + 95: uint16(25917), + 96: uint16(26024), + 97: uint16(26043), + 98: uint16(26121), + 99: uint16(26108), + 100: uint16(26116), + 101: uint16(26130), + 102: uint16(26120), + 103: uint16(26107), + 104: uint16(26115), + 105: uint16(26123), + 106: uint16(26125), + 107: uint16(26117), + 108: uint16(26109), + 109: uint16(26129), + 110: uint16(26128), + 111: uint16(26358), + 112: uint16(26378), + 113: uint16(26501), + 114: uint16(26476), + 115: uint16(26510), + 116: uint16(26514), + 117: uint16(26486), + 118: uint16(26491), + 119: uint16(26520), + 120: uint16(26502), + 121: uint16(26500), + 122: uint16(26484), + 123: uint16(26509), + 124: uint16(26508), + 125: uint16(26490), + 126: uint16(26527), + 127: uint16(26513), + 128: uint16(26521), + 129: uint16(26499), + 130: uint16(26493), + 131: uint16(26497), + 132: uint16(26488), + 133: uint16(26489), + 134: uint16(26516), + 135: uint16(27429), + 136: uint16(27520), + 137: uint16(27518), + 138: uint16(27614), + 139: uint16(27677), + 140: uint16(27795), + 141: uint16(27884), + 142: uint16(27883), + 143: uint16(27886), + 144: uint16(27865), + 145: uint16(27830), + 146: uint16(27860), + 147: uint16(27821), + 148: uint16(27879), + 149: uint16(27831), + 150: uint16(27856), + 151: uint16(27842), + 152: uint16(27834), + 153: uint16(27843), + 154: uint16(27846), + 155: uint16(27885), + 156: uint16(27890), + }, + 44: { + 0: uint16(27858), + 1: uint16(27869), + 2: uint16(27828), + 3: uint16(27786), + 4: uint16(27805), + 5: uint16(27776), + 6: uint16(27870), + 7: uint16(27840), + 8: uint16(27952), + 9: uint16(27853), + 10: uint16(27847), + 11: uint16(27824), + 12: uint16(27897), + 13: uint16(27855), + 14: uint16(27881), + 15: uint16(27857), + 16: uint16(28820), + 17: uint16(28824), + 18: uint16(28805), + 19: uint16(28819), + 20: uint16(28806), + 21: uint16(28804), + 22: uint16(28817), + 23: uint16(28822), + 24: uint16(28802), + 25: uint16(28826), + 26: uint16(28803), + 27: uint16(29290), + 28: uint16(29398), + 29: uint16(29387), + 30: uint16(29400), + 31: uint16(29385), + 32: uint16(29404), + 33: uint16(29394), + 34: uint16(29396), + 35: uint16(29402), + 36: uint16(29388), + 37: uint16(29393), + 38: uint16(29604), + 39: uint16(29601), + 40: uint16(29613), + 41: uint16(29606), + 42: uint16(29602), + 43: uint16(29600), + 44: uint16(29612), + 45: uint16(29597), + 46: uint16(29917), + 47: uint16(29928), + 48: uint16(30015), + 49: uint16(30016), + 50: uint16(30014), + 51: uint16(30092), + 52: uint16(30104), + 53: uint16(30383), + 54: uint16(30451), + 55: uint16(30449), + 56: uint16(30448), + 57: uint16(30453), + 58: uint16(30712), + 59: uint16(30716), + 60: uint16(30713), + 61: uint16(30715), + 62: uint16(30714), + 63: uint16(30711), + 64: uint16(31042), + 65: uint16(31039), + 66: uint16(31173), + 67: uint16(31352), + 68: uint16(31355), + 69: uint16(31483), + 70: uint16(31861), + 71: uint16(31997), + 72: uint16(32821), + 73: uint16(32911), + 74: uint16(32942), + 75: uint16(32931), + 76: uint16(32952), + 77: uint16(32949), + 78: uint16(32941), + 79: uint16(33312), + 80: uint16(33440), + 81: uint16(33472), + 82: uint16(33451), + 83: uint16(33434), + 84: uint16(33432), + 85: uint16(33435), + 86: uint16(33461), + 87: uint16(33447), + 88: uint16(33454), + 89: uint16(33468), + 90: uint16(33438), + 91: uint16(33466), + 92: uint16(33460), + 93: uint16(33448), + 94: uint16(33441), + 95: uint16(33449), + 96: uint16(33474), + 97: uint16(33444), + 98: uint16(33475), + 99: uint16(33462), + 100: uint16(33442), + 101: uint16(34416), + 102: uint16(34415), + 103: uint16(34413), + 104: uint16(34414), + 105: uint16(35926), + 106: uint16(36818), + 107: uint16(36811), + 108: uint16(36819), + 109: uint16(36813), + 110: uint16(36822), + 111: uint16(36821), + 112: uint16(36823), + 113: uint16(37042), + 114: uint16(37044), + 115: uint16(37039), + 116: uint16(37043), + 117: uint16(37040), + 118: uint16(38457), + 119: uint16(38461), + 120: uint16(38460), + 121: uint16(38458), + 122: uint16(38467), + 123: uint16(20429), + 124: uint16(20421), + 125: uint16(20435), + 126: uint16(20402), + 127: uint16(20425), + 128: uint16(20427), + 129: uint16(20417), + 130: uint16(20436), + 131: uint16(20444), + 132: uint16(20441), + 133: uint16(20411), + 134: uint16(20403), + 135: uint16(20443), + 136: uint16(20423), + 137: uint16(20438), + 138: uint16(20410), + 139: uint16(20416), + 140: uint16(20409), + 141: uint16(20460), + 142: uint16(21060), + 143: uint16(21065), + 144: uint16(21184), + 145: uint16(21186), + 146: uint16(21309), + 147: uint16(21372), + 148: uint16(21399), + 149: uint16(21398), + 150: uint16(21401), + 151: uint16(21400), + 152: uint16(21690), + 153: uint16(21665), + 154: uint16(21677), + 155: uint16(21669), + 156: uint16(21711), + }, + 45: { + 0: uint16(21699), + 1: uint16(33549), + 2: uint16(21687), + 3: uint16(21678), + 4: uint16(21718), + 5: uint16(21686), + 6: uint16(21701), + 7: uint16(21702), + 8: uint16(21664), + 9: uint16(21616), + 10: uint16(21692), + 11: uint16(21666), + 12: uint16(21694), + 13: uint16(21618), + 14: uint16(21726), + 15: uint16(21680), + 16: uint16(22453), + 17: uint16(22430), + 18: uint16(22431), + 19: uint16(22436), + 20: uint16(22412), + 21: uint16(22423), + 22: uint16(22429), + 23: uint16(22427), + 24: uint16(22420), + 25: uint16(22424), + 26: uint16(22415), + 27: uint16(22425), + 28: uint16(22437), + 29: uint16(22426), + 30: uint16(22421), + 31: uint16(22772), + 32: uint16(22797), + 33: uint16(22867), + 34: uint16(23009), + 35: uint16(23006), + 36: uint16(23022), + 37: uint16(23040), + 38: uint16(23025), + 39: uint16(23005), + 40: uint16(23034), + 41: uint16(23037), + 42: uint16(23036), + 43: uint16(23030), + 44: uint16(23012), + 45: uint16(23026), + 46: uint16(23031), + 47: uint16(23003), + 48: uint16(23017), + 49: uint16(23027), + 50: uint16(23029), + 51: uint16(23008), + 52: uint16(23038), + 53: uint16(23028), + 54: uint16(23021), + 55: uint16(23464), + 56: uint16(23628), + 57: uint16(23760), + 58: uint16(23768), + 59: uint16(23756), + 60: uint16(23767), + 61: uint16(23755), + 62: uint16(23771), + 63: uint16(23774), + 64: uint16(23770), + 65: uint16(23753), + 66: uint16(23751), + 67: uint16(23754), + 68: uint16(23766), + 69: uint16(23763), + 70: uint16(23764), + 71: uint16(23759), + 72: uint16(23752), + 73: uint16(23750), + 74: uint16(23758), + 75: uint16(23775), + 76: uint16(23800), + 77: uint16(24057), + 78: uint16(24097), + 79: uint16(24098), + 80: uint16(24099), + 81: uint16(24096), + 82: uint16(24100), + 83: uint16(24240), + 84: uint16(24228), + 85: uint16(24226), + 86: uint16(24219), + 87: uint16(24227), + 88: uint16(24229), + 89: uint16(24327), + 90: uint16(24366), + 91: uint16(24406), + 92: uint16(24454), + 93: uint16(24631), + 94: uint16(24633), + 95: uint16(24660), + 96: uint16(24690), + 97: uint16(24670), + 98: uint16(24645), + 99: uint16(24659), + 100: uint16(24647), + 101: uint16(24649), + 102: uint16(24667), + 103: uint16(24652), + 104: uint16(24640), + 105: uint16(24642), + 106: uint16(24671), + 107: uint16(24612), + 108: uint16(24644), + 109: uint16(24664), + 110: uint16(24678), + 111: uint16(24686), + 112: uint16(25154), + 113: uint16(25155), + 114: uint16(25295), + 115: uint16(25357), + 116: uint16(25355), + 117: uint16(25333), + 118: uint16(25358), + 119: uint16(25347), + 120: uint16(25323), + 121: uint16(25337), + 122: uint16(25359), + 123: uint16(25356), + 124: uint16(25336), + 125: uint16(25334), + 126: uint16(25344), + 127: uint16(25363), + 128: uint16(25364), + 129: uint16(25338), + 130: uint16(25365), + 131: uint16(25339), + 132: uint16(25328), + 133: uint16(25921), + 134: uint16(25923), + 135: uint16(26026), + 136: uint16(26047), + 137: uint16(26166), + 138: uint16(26145), + 139: uint16(26162), + 140: uint16(26165), + 141: uint16(26140), + 142: uint16(26150), + 143: uint16(26146), + 144: uint16(26163), + 145: uint16(26155), + 146: uint16(26170), + 147: uint16(26141), + 148: uint16(26164), + 149: uint16(26169), + 150: uint16(26158), + 151: uint16(26383), + 152: uint16(26384), + 153: uint16(26561), + 154: uint16(26610), + 155: uint16(26568), + 156: uint16(26554), + }, + 46: { + 0: uint16(26588), + 1: uint16(26555), + 2: uint16(26616), + 3: uint16(26584), + 4: uint16(26560), + 5: uint16(26551), + 6: uint16(26565), + 7: uint16(26603), + 8: uint16(26596), + 9: uint16(26591), + 10: uint16(26549), + 11: uint16(26573), + 12: uint16(26547), + 13: uint16(26615), + 14: uint16(26614), + 15: uint16(26606), + 16: uint16(26595), + 17: uint16(26562), + 18: uint16(26553), + 19: uint16(26574), + 20: uint16(26599), + 21: uint16(26608), + 22: uint16(26546), + 23: uint16(26620), + 24: uint16(26566), + 25: uint16(26605), + 26: uint16(26572), + 27: uint16(26542), + 28: uint16(26598), + 29: uint16(26587), + 30: uint16(26618), + 31: uint16(26569), + 32: uint16(26570), + 33: uint16(26563), + 34: uint16(26602), + 35: uint16(26571), + 36: uint16(27432), + 37: uint16(27522), + 38: uint16(27524), + 39: uint16(27574), + 40: uint16(27606), + 41: uint16(27608), + 42: uint16(27616), + 43: uint16(27680), + 44: uint16(27681), + 45: uint16(27944), + 46: uint16(27956), + 47: uint16(27949), + 48: uint16(27935), + 49: uint16(27964), + 50: uint16(27967), + 51: uint16(27922), + 52: uint16(27914), + 53: uint16(27866), + 54: uint16(27955), + 55: uint16(27908), + 56: uint16(27929), + 57: uint16(27962), + 58: uint16(27930), + 59: uint16(27921), + 60: uint16(27904), + 61: uint16(27933), + 62: uint16(27970), + 63: uint16(27905), + 64: uint16(27928), + 65: uint16(27959), + 66: uint16(27907), + 67: uint16(27919), + 68: uint16(27968), + 69: uint16(27911), + 70: uint16(27936), + 71: uint16(27948), + 72: uint16(27912), + 73: uint16(27938), + 74: uint16(27913), + 75: uint16(27920), + 76: uint16(28855), + 77: uint16(28831), + 78: uint16(28862), + 79: uint16(28849), + 80: uint16(28848), + 81: uint16(28833), + 82: uint16(28852), + 83: uint16(28853), + 84: uint16(28841), + 85: uint16(29249), + 86: uint16(29257), + 87: uint16(29258), + 88: uint16(29292), + 89: uint16(29296), + 90: uint16(29299), + 91: uint16(29294), + 92: uint16(29386), + 93: uint16(29412), + 94: uint16(29416), + 95: uint16(29419), + 96: uint16(29407), + 97: uint16(29418), + 98: uint16(29414), + 99: uint16(29411), + 100: uint16(29573), + 101: uint16(29644), + 102: uint16(29634), + 103: uint16(29640), + 104: uint16(29637), + 105: uint16(29625), + 106: uint16(29622), + 107: uint16(29621), + 108: uint16(29620), + 109: uint16(29675), + 110: uint16(29631), + 111: uint16(29639), + 112: uint16(29630), + 113: uint16(29635), + 114: uint16(29638), + 115: uint16(29624), + 116: uint16(29643), + 117: uint16(29932), + 118: uint16(29934), + 119: uint16(29998), + 120: uint16(30023), + 121: uint16(30024), + 122: uint16(30119), + 123: uint16(30122), + 124: uint16(30329), + 125: uint16(30404), + 126: uint16(30472), + 127: uint16(30467), + 128: uint16(30468), + 129: uint16(30469), + 130: uint16(30474), + 131: uint16(30455), + 132: uint16(30459), + 133: uint16(30458), + 134: uint16(30695), + 135: uint16(30696), + 136: uint16(30726), + 137: uint16(30737), + 138: uint16(30738), + 139: uint16(30725), + 140: uint16(30736), + 141: uint16(30735), + 142: uint16(30734), + 143: uint16(30729), + 144: uint16(30723), + 145: uint16(30739), + 146: uint16(31050), + 147: uint16(31052), + 148: uint16(31051), + 149: uint16(31045), + 150: uint16(31044), + 151: uint16(31189), + 152: uint16(31181), + 153: uint16(31183), + 154: uint16(31190), + 155: uint16(31182), + 156: uint16(31360), + }, + 47: { + 0: uint16(31358), + 1: uint16(31441), + 2: uint16(31488), + 3: uint16(31489), + 4: uint16(31866), + 5: uint16(31864), + 6: uint16(31865), + 7: uint16(31871), + 8: uint16(31872), + 9: uint16(31873), + 10: uint16(32003), + 11: uint16(32008), + 12: uint16(32001), + 13: uint16(32600), + 14: uint16(32657), + 15: uint16(32653), + 16: uint16(32702), + 17: uint16(32775), + 18: uint16(32782), + 19: uint16(32783), + 20: uint16(32788), + 21: uint16(32823), + 22: uint16(32984), + 23: uint16(32967), + 24: uint16(32992), + 25: uint16(32977), + 26: uint16(32968), + 27: uint16(32962), + 28: uint16(32976), + 29: uint16(32965), + 30: uint16(32995), + 31: uint16(32985), + 32: uint16(32988), + 33: uint16(32970), + 34: uint16(32981), + 35: uint16(32969), + 36: uint16(32975), + 37: uint16(32983), + 38: uint16(32998), + 39: uint16(32973), + 40: uint16(33279), + 41: uint16(33313), + 42: uint16(33428), + 43: uint16(33497), + 44: uint16(33534), + 45: uint16(33529), + 46: uint16(33543), + 47: uint16(33512), + 48: uint16(33536), + 49: uint16(33493), + 50: uint16(33594), + 51: uint16(33515), + 52: uint16(33494), + 53: uint16(33524), + 54: uint16(33516), + 55: uint16(33505), + 56: uint16(33522), + 57: uint16(33525), + 58: uint16(33548), + 59: uint16(33531), + 60: uint16(33526), + 61: uint16(33520), + 62: uint16(33514), + 63: uint16(33508), + 64: uint16(33504), + 65: uint16(33530), + 66: uint16(33523), + 67: uint16(33517), + 68: uint16(34423), + 69: uint16(34420), + 70: uint16(34428), + 71: uint16(34419), + 72: uint16(34881), + 73: uint16(34894), + 74: uint16(34919), + 75: uint16(34922), + 76: uint16(34921), + 77: uint16(35283), + 78: uint16(35332), + 79: uint16(35335), + 80: uint16(36210), + 81: uint16(36835), + 82: uint16(36833), + 83: uint16(36846), + 84: uint16(36832), + 85: uint16(37105), + 86: uint16(37053), + 87: uint16(37055), + 88: uint16(37077), + 89: uint16(37061), + 90: uint16(37054), + 91: uint16(37063), + 92: uint16(37067), + 93: uint16(37064), + 94: uint16(37332), + 95: uint16(37331), + 96: uint16(38484), + 97: uint16(38479), + 98: uint16(38481), + 99: uint16(38483), + 100: uint16(38474), + 101: uint16(38478), + 102: uint16(20510), + 103: uint16(20485), + 104: uint16(20487), + 105: uint16(20499), + 106: uint16(20514), + 107: uint16(20528), + 108: uint16(20507), + 109: uint16(20469), + 110: uint16(20468), + 111: uint16(20531), + 112: uint16(20535), + 113: uint16(20524), + 114: uint16(20470), + 115: uint16(20471), + 116: uint16(20503), + 117: uint16(20508), + 118: uint16(20512), + 119: uint16(20519), + 120: uint16(20533), + 121: uint16(20527), + 122: uint16(20529), + 123: uint16(20494), + 124: uint16(20826), + 125: uint16(20884), + 126: uint16(20883), + 127: uint16(20938), + 128: uint16(20932), + 129: uint16(20933), + 130: uint16(20936), + 131: uint16(20942), + 132: uint16(21089), + 133: uint16(21082), + 134: uint16(21074), + 135: uint16(21086), + 136: uint16(21087), + 137: uint16(21077), + 138: uint16(21090), + 139: uint16(21197), + 140: uint16(21262), + 141: uint16(21406), + 142: uint16(21798), + 143: uint16(21730), + 144: uint16(21783), + 145: uint16(21778), + 146: uint16(21735), + 147: uint16(21747), + 148: uint16(21732), + 149: uint16(21786), + 150: uint16(21759), + 151: uint16(21764), + 152: uint16(21768), + 153: uint16(21739), + 154: uint16(21777), + 155: uint16(21765), + 156: uint16(21745), + }, + 48: { + 0: uint16(21770), + 1: uint16(21755), + 2: uint16(21751), + 3: uint16(21752), + 4: uint16(21728), + 5: uint16(21774), + 6: uint16(21763), + 7: uint16(21771), + 8: uint16(22273), + 9: uint16(22274), + 10: uint16(22476), + 11: uint16(22578), + 12: uint16(22485), + 13: uint16(22482), + 14: uint16(22458), + 15: uint16(22470), + 16: uint16(22461), + 17: uint16(22460), + 18: uint16(22456), + 19: uint16(22454), + 20: uint16(22463), + 21: uint16(22471), + 22: uint16(22480), + 23: uint16(22457), + 24: uint16(22465), + 25: uint16(22798), + 26: uint16(22858), + 27: uint16(23065), + 28: uint16(23062), + 29: uint16(23085), + 30: uint16(23086), + 31: uint16(23061), + 32: uint16(23055), + 33: uint16(23063), + 34: uint16(23050), + 35: uint16(23070), + 36: uint16(23091), + 37: uint16(23404), + 38: uint16(23463), + 39: uint16(23469), + 40: uint16(23468), + 41: uint16(23555), + 42: uint16(23638), + 43: uint16(23636), + 44: uint16(23788), + 45: uint16(23807), + 46: uint16(23790), + 47: uint16(23793), + 48: uint16(23799), + 49: uint16(23808), + 50: uint16(23801), + 51: uint16(24105), + 52: uint16(24104), + 53: uint16(24232), + 54: uint16(24238), + 55: uint16(24234), + 56: uint16(24236), + 57: uint16(24371), + 58: uint16(24368), + 59: uint16(24423), + 60: uint16(24669), + 61: uint16(24666), + 62: uint16(24679), + 63: uint16(24641), + 64: uint16(24738), + 65: uint16(24712), + 66: uint16(24704), + 67: uint16(24722), + 68: uint16(24705), + 69: uint16(24733), + 70: uint16(24707), + 71: uint16(24725), + 72: uint16(24731), + 73: uint16(24727), + 74: uint16(24711), + 75: uint16(24732), + 76: uint16(24718), + 77: uint16(25113), + 78: uint16(25158), + 79: uint16(25330), + 80: uint16(25360), + 81: uint16(25430), + 82: uint16(25388), + 83: uint16(25412), + 84: uint16(25413), + 85: uint16(25398), + 86: uint16(25411), + 87: uint16(25572), + 88: uint16(25401), + 89: uint16(25419), + 90: uint16(25418), + 91: uint16(25404), + 92: uint16(25385), + 93: uint16(25409), + 94: uint16(25396), + 95: uint16(25432), + 96: uint16(25428), + 97: uint16(25433), + 98: uint16(25389), + 99: uint16(25415), + 100: uint16(25395), + 101: uint16(25434), + 102: uint16(25425), + 103: uint16(25400), + 104: uint16(25431), + 105: uint16(25408), + 106: uint16(25416), + 107: uint16(25930), + 108: uint16(25926), + 109: uint16(26054), + 110: uint16(26051), + 111: uint16(26052), + 112: uint16(26050), + 113: uint16(26186), + 114: uint16(26207), + 115: uint16(26183), + 116: uint16(26193), + 117: uint16(26386), + 118: uint16(26387), + 119: uint16(26655), + 120: uint16(26650), + 121: uint16(26697), + 122: uint16(26674), + 123: uint16(26675), + 124: uint16(26683), + 125: uint16(26699), + 126: uint16(26703), + 127: uint16(26646), + 128: uint16(26673), + 129: uint16(26652), + 130: uint16(26677), + 131: uint16(26667), + 132: uint16(26669), + 133: uint16(26671), + 134: uint16(26702), + 135: uint16(26692), + 136: uint16(26676), + 137: uint16(26653), + 138: uint16(26642), + 139: uint16(26644), + 140: uint16(26662), + 141: uint16(26664), + 142: uint16(26670), + 143: uint16(26701), + 144: uint16(26682), + 145: uint16(26661), + 146: uint16(26656), + 147: uint16(27436), + 148: uint16(27439), + 149: uint16(27437), + 150: uint16(27441), + 151: uint16(27444), + 152: uint16(27501), + 153: uint16(32898), + 154: uint16(27528), + 155: uint16(27622), + 156: uint16(27620), + }, + 49: { + 0: uint16(27624), + 1: uint16(27619), + 2: uint16(27618), + 3: uint16(27623), + 4: uint16(27685), + 5: uint16(28026), + 6: uint16(28003), + 7: uint16(28004), + 8: uint16(28022), + 9: uint16(27917), + 10: uint16(28001), + 11: uint16(28050), + 12: uint16(27992), + 13: uint16(28002), + 14: uint16(28013), + 15: uint16(28015), + 16: uint16(28049), + 17: uint16(28045), + 18: uint16(28143), + 19: uint16(28031), + 20: uint16(28038), + 21: uint16(27998), + 22: uint16(28007), + 23: uint16(28000), + 24: uint16(28055), + 25: uint16(28016), + 26: uint16(28028), + 27: uint16(27999), + 28: uint16(28034), + 29: uint16(28056), + 30: uint16(27951), + 31: uint16(28008), + 32: uint16(28043), + 33: uint16(28030), + 34: uint16(28032), + 35: uint16(28036), + 36: uint16(27926), + 37: uint16(28035), + 38: uint16(28027), + 39: uint16(28029), + 40: uint16(28021), + 41: uint16(28048), + 42: uint16(28892), + 43: uint16(28883), + 44: uint16(28881), + 45: uint16(28893), + 46: uint16(28875), + 47: uint16(32569), + 48: uint16(28898), + 49: uint16(28887), + 50: uint16(28882), + 51: uint16(28894), + 52: uint16(28896), + 53: uint16(28884), + 54: uint16(28877), + 55: uint16(28869), + 56: uint16(28870), + 57: uint16(28871), + 58: uint16(28890), + 59: uint16(28878), + 60: uint16(28897), + 61: uint16(29250), + 62: uint16(29304), + 63: uint16(29303), + 64: uint16(29302), + 65: uint16(29440), + 66: uint16(29434), + 67: uint16(29428), + 68: uint16(29438), + 69: uint16(29430), + 70: uint16(29427), + 71: uint16(29435), + 72: uint16(29441), + 73: uint16(29651), + 74: uint16(29657), + 75: uint16(29669), + 76: uint16(29654), + 77: uint16(29628), + 78: uint16(29671), + 79: uint16(29667), + 80: uint16(29673), + 81: uint16(29660), + 82: uint16(29650), + 83: uint16(29659), + 84: uint16(29652), + 85: uint16(29661), + 86: uint16(29658), + 87: uint16(29655), + 88: uint16(29656), + 89: uint16(29672), + 90: uint16(29918), + 91: uint16(29919), + 92: uint16(29940), + 93: uint16(29941), + 94: uint16(29985), + 95: uint16(30043), + 96: uint16(30047), + 97: uint16(30128), + 98: uint16(30145), + 99: uint16(30139), + 100: uint16(30148), + 101: uint16(30144), + 102: uint16(30143), + 103: uint16(30134), + 104: uint16(30138), + 105: uint16(30346), + 106: uint16(30409), + 107: uint16(30493), + 108: uint16(30491), + 109: uint16(30480), + 110: uint16(30483), + 111: uint16(30482), + 112: uint16(30499), + 113: uint16(30481), + 114: uint16(30485), + 115: uint16(30489), + 116: uint16(30490), + 117: uint16(30498), + 118: uint16(30503), + 119: uint16(30755), + 120: uint16(30764), + 121: uint16(30754), + 122: uint16(30773), + 123: uint16(30767), + 124: uint16(30760), + 125: uint16(30766), + 126: uint16(30763), + 127: uint16(30753), + 128: uint16(30761), + 129: uint16(30771), + 130: uint16(30762), + 131: uint16(30769), + 132: uint16(31060), + 133: uint16(31067), + 134: uint16(31055), + 135: uint16(31068), + 136: uint16(31059), + 137: uint16(31058), + 138: uint16(31057), + 139: uint16(31211), + 140: uint16(31212), + 141: uint16(31200), + 142: uint16(31214), + 143: uint16(31213), + 144: uint16(31210), + 145: uint16(31196), + 146: uint16(31198), + 147: uint16(31197), + 148: uint16(31366), + 149: uint16(31369), + 150: uint16(31365), + 151: uint16(31371), + 152: uint16(31372), + 153: uint16(31370), + 154: uint16(31367), + 155: uint16(31448), + 156: uint16(31504), + }, + 50: { + 0: uint16(31492), + 1: uint16(31507), + 2: uint16(31493), + 3: uint16(31503), + 4: uint16(31496), + 5: uint16(31498), + 6: uint16(31502), + 7: uint16(31497), + 8: uint16(31506), + 9: uint16(31876), + 10: uint16(31889), + 11: uint16(31882), + 12: uint16(31884), + 13: uint16(31880), + 14: uint16(31885), + 15: uint16(31877), + 16: uint16(32030), + 17: uint16(32029), + 18: uint16(32017), + 19: uint16(32014), + 20: uint16(32024), + 21: uint16(32022), + 22: uint16(32019), + 23: uint16(32031), + 24: uint16(32018), + 25: uint16(32015), + 26: uint16(32012), + 27: uint16(32604), + 28: uint16(32609), + 29: uint16(32606), + 30: uint16(32608), + 31: uint16(32605), + 32: uint16(32603), + 33: uint16(32662), + 34: uint16(32658), + 35: uint16(32707), + 36: uint16(32706), + 37: uint16(32704), + 38: uint16(32790), + 39: uint16(32830), + 40: uint16(32825), + 41: uint16(33018), + 42: uint16(33010), + 43: uint16(33017), + 44: uint16(33013), + 45: uint16(33025), + 46: uint16(33019), + 47: uint16(33024), + 48: uint16(33281), + 49: uint16(33327), + 50: uint16(33317), + 51: uint16(33587), + 52: uint16(33581), + 53: uint16(33604), + 54: uint16(33561), + 55: uint16(33617), + 56: uint16(33573), + 57: uint16(33622), + 58: uint16(33599), + 59: uint16(33601), + 60: uint16(33574), + 61: uint16(33564), + 62: uint16(33570), + 63: uint16(33602), + 64: uint16(33614), + 65: uint16(33563), + 66: uint16(33578), + 67: uint16(33544), + 68: uint16(33596), + 69: uint16(33613), + 70: uint16(33558), + 71: uint16(33572), + 72: uint16(33568), + 73: uint16(33591), + 74: uint16(33583), + 75: uint16(33577), + 76: uint16(33607), + 77: uint16(33605), + 78: uint16(33612), + 79: uint16(33619), + 80: uint16(33566), + 81: uint16(33580), + 82: uint16(33611), + 83: uint16(33575), + 84: uint16(33608), + 85: uint16(34387), + 86: uint16(34386), + 87: uint16(34466), + 88: uint16(34472), + 89: uint16(34454), + 90: uint16(34445), + 91: uint16(34449), + 92: uint16(34462), + 93: uint16(34439), + 94: uint16(34455), + 95: uint16(34438), + 96: uint16(34443), + 97: uint16(34458), + 98: uint16(34437), + 99: uint16(34469), + 100: uint16(34457), + 101: uint16(34465), + 102: uint16(34471), + 103: uint16(34453), + 104: uint16(34456), + 105: uint16(34446), + 106: uint16(34461), + 107: uint16(34448), + 108: uint16(34452), + 109: uint16(34883), + 110: uint16(34884), + 111: uint16(34925), + 112: uint16(34933), + 113: uint16(34934), + 114: uint16(34930), + 115: uint16(34944), + 116: uint16(34929), + 117: uint16(34943), + 118: uint16(34927), + 119: uint16(34947), + 120: uint16(34942), + 121: uint16(34932), + 122: uint16(34940), + 123: uint16(35346), + 124: uint16(35911), + 125: uint16(35927), + 126: uint16(35963), + 127: uint16(36004), + 128: uint16(36003), + 129: uint16(36214), + 130: uint16(36216), + 131: uint16(36277), + 132: uint16(36279), + 133: uint16(36278), + 134: uint16(36561), + 135: uint16(36563), + 136: uint16(36862), + 137: uint16(36853), + 138: uint16(36866), + 139: uint16(36863), + 140: uint16(36859), + 141: uint16(36868), + 142: uint16(36860), + 143: uint16(36854), + 144: uint16(37078), + 145: uint16(37088), + 146: uint16(37081), + 147: uint16(37082), + 148: uint16(37091), + 149: uint16(37087), + 150: uint16(37093), + 151: uint16(37080), + 152: uint16(37083), + 153: uint16(37079), + 154: uint16(37084), + 155: uint16(37092), + 156: uint16(37200), + }, + 51: { + 0: uint16(37198), + 1: uint16(37199), + 2: uint16(37333), + 3: uint16(37346), + 4: uint16(37338), + 5: uint16(38492), + 6: uint16(38495), + 7: uint16(38588), + 8: uint16(39139), + 9: uint16(39647), + 10: uint16(39727), + 11: uint16(20095), + 12: uint16(20592), + 13: uint16(20586), + 14: uint16(20577), + 15: uint16(20574), + 16: uint16(20576), + 17: uint16(20563), + 18: uint16(20555), + 19: uint16(20573), + 20: uint16(20594), + 21: uint16(20552), + 22: uint16(20557), + 23: uint16(20545), + 24: uint16(20571), + 25: uint16(20554), + 26: uint16(20578), + 27: uint16(20501), + 28: uint16(20549), + 29: uint16(20575), + 30: uint16(20585), + 31: uint16(20587), + 32: uint16(20579), + 33: uint16(20580), + 34: uint16(20550), + 35: uint16(20544), + 36: uint16(20590), + 37: uint16(20595), + 38: uint16(20567), + 39: uint16(20561), + 40: uint16(20944), + 41: uint16(21099), + 42: uint16(21101), + 43: uint16(21100), + 44: uint16(21102), + 45: uint16(21206), + 46: uint16(21203), + 47: uint16(21293), + 48: uint16(21404), + 49: uint16(21877), + 50: uint16(21878), + 51: uint16(21820), + 52: uint16(21837), + 53: uint16(21840), + 54: uint16(21812), + 55: uint16(21802), + 56: uint16(21841), + 57: uint16(21858), + 58: uint16(21814), + 59: uint16(21813), + 60: uint16(21808), + 61: uint16(21842), + 62: uint16(21829), + 63: uint16(21772), + 64: uint16(21810), + 65: uint16(21861), + 66: uint16(21838), + 67: uint16(21817), + 68: uint16(21832), + 69: uint16(21805), + 70: uint16(21819), + 71: uint16(21824), + 72: uint16(21835), + 73: uint16(22282), + 74: uint16(22279), + 75: uint16(22523), + 76: uint16(22548), + 77: uint16(22498), + 78: uint16(22518), + 79: uint16(22492), + 80: uint16(22516), + 81: uint16(22528), + 82: uint16(22509), + 83: uint16(22525), + 84: uint16(22536), + 85: uint16(22520), + 86: uint16(22539), + 87: uint16(22515), + 88: uint16(22479), + 89: uint16(22535), + 90: uint16(22510), + 91: uint16(22499), + 92: uint16(22514), + 93: uint16(22501), + 94: uint16(22508), + 95: uint16(22497), + 96: uint16(22542), + 97: uint16(22524), + 98: uint16(22544), + 99: uint16(22503), + 100: uint16(22529), + 101: uint16(22540), + 102: uint16(22513), + 103: uint16(22505), + 104: uint16(22512), + 105: uint16(22541), + 106: uint16(22532), + 107: uint16(22876), + 108: uint16(23136), + 109: uint16(23128), + 110: uint16(23125), + 111: uint16(23143), + 112: uint16(23134), + 113: uint16(23096), + 114: uint16(23093), + 115: uint16(23149), + 116: uint16(23120), + 117: uint16(23135), + 118: uint16(23141), + 119: uint16(23148), + 120: uint16(23123), + 121: uint16(23140), + 122: uint16(23127), + 123: uint16(23107), + 124: uint16(23133), + 125: uint16(23122), + 126: uint16(23108), + 127: uint16(23131), + 128: uint16(23112), + 129: uint16(23182), + 130: uint16(23102), + 131: uint16(23117), + 132: uint16(23097), + 133: uint16(23116), + 134: uint16(23152), + 135: uint16(23145), + 136: uint16(23111), + 137: uint16(23121), + 138: uint16(23126), + 139: uint16(23106), + 140: uint16(23132), + 141: uint16(23410), + 142: uint16(23406), + 143: uint16(23489), + 144: uint16(23488), + 145: uint16(23641), + 146: uint16(23838), + 147: uint16(23819), + 148: uint16(23837), + 149: uint16(23834), + 150: uint16(23840), + 151: uint16(23820), + 152: uint16(23848), + 153: uint16(23821), + 154: uint16(23846), + 155: uint16(23845), + 156: uint16(23823), + }, + 52: { + 0: uint16(23856), + 1: uint16(23826), + 2: uint16(23843), + 3: uint16(23839), + 4: uint16(23854), + 5: uint16(24126), + 6: uint16(24116), + 7: uint16(24241), + 8: uint16(24244), + 9: uint16(24249), + 10: uint16(24242), + 11: uint16(24243), + 12: uint16(24374), + 13: uint16(24376), + 14: uint16(24475), + 15: uint16(24470), + 16: uint16(24479), + 17: uint16(24714), + 18: uint16(24720), + 19: uint16(24710), + 20: uint16(24766), + 21: uint16(24752), + 22: uint16(24762), + 23: uint16(24787), + 24: uint16(24788), + 25: uint16(24783), + 26: uint16(24804), + 27: uint16(24793), + 28: uint16(24797), + 29: uint16(24776), + 30: uint16(24753), + 31: uint16(24795), + 32: uint16(24759), + 33: uint16(24778), + 34: uint16(24767), + 35: uint16(24771), + 36: uint16(24781), + 37: uint16(24768), + 38: uint16(25394), + 39: uint16(25445), + 40: uint16(25482), + 41: uint16(25474), + 42: uint16(25469), + 43: uint16(25533), + 44: uint16(25502), + 45: uint16(25517), + 46: uint16(25501), + 47: uint16(25495), + 48: uint16(25515), + 49: uint16(25486), + 50: uint16(25455), + 51: uint16(25479), + 52: uint16(25488), + 53: uint16(25454), + 54: uint16(25519), + 55: uint16(25461), + 56: uint16(25500), + 57: uint16(25453), + 58: uint16(25518), + 59: uint16(25468), + 60: uint16(25508), + 61: uint16(25403), + 62: uint16(25503), + 63: uint16(25464), + 64: uint16(25477), + 65: uint16(25473), + 66: uint16(25489), + 67: uint16(25485), + 68: uint16(25456), + 69: uint16(25939), + 70: uint16(26061), + 71: uint16(26213), + 72: uint16(26209), + 73: uint16(26203), + 74: uint16(26201), + 75: uint16(26204), + 76: uint16(26210), + 77: uint16(26392), + 78: uint16(26745), + 79: uint16(26759), + 80: uint16(26768), + 81: uint16(26780), + 82: uint16(26733), + 83: uint16(26734), + 84: uint16(26798), + 85: uint16(26795), + 86: uint16(26966), + 87: uint16(26735), + 88: uint16(26787), + 89: uint16(26796), + 90: uint16(26793), + 91: uint16(26741), + 92: uint16(26740), + 93: uint16(26802), + 94: uint16(26767), + 95: uint16(26743), + 96: uint16(26770), + 97: uint16(26748), + 98: uint16(26731), + 99: uint16(26738), + 100: uint16(26794), + 101: uint16(26752), + 102: uint16(26737), + 103: uint16(26750), + 104: uint16(26779), + 105: uint16(26774), + 106: uint16(26763), + 107: uint16(26784), + 108: uint16(26761), + 109: uint16(26788), + 110: uint16(26744), + 111: uint16(26747), + 112: uint16(26769), + 113: uint16(26764), + 114: uint16(26762), + 115: uint16(26749), + 116: uint16(27446), + 117: uint16(27443), + 118: uint16(27447), + 119: uint16(27448), + 120: uint16(27537), + 121: uint16(27535), + 122: uint16(27533), + 123: uint16(27534), + 124: uint16(27532), + 125: uint16(27690), + 126: uint16(28096), + 127: uint16(28075), + 128: uint16(28084), + 129: uint16(28083), + 130: uint16(28276), + 131: uint16(28076), + 132: uint16(28137), + 133: uint16(28130), + 134: uint16(28087), + 135: uint16(28150), + 136: uint16(28116), + 137: uint16(28160), + 138: uint16(28104), + 139: uint16(28128), + 140: uint16(28127), + 141: uint16(28118), + 142: uint16(28094), + 143: uint16(28133), + 144: uint16(28124), + 145: uint16(28125), + 146: uint16(28123), + 147: uint16(28148), + 148: uint16(28106), + 149: uint16(28093), + 150: uint16(28141), + 151: uint16(28144), + 152: uint16(28090), + 153: uint16(28117), + 154: uint16(28098), + 155: uint16(28111), + 156: uint16(28105), + }, + 53: { + 0: uint16(28112), + 1: uint16(28146), + 2: uint16(28115), + 3: uint16(28157), + 4: uint16(28119), + 5: uint16(28109), + 6: uint16(28131), + 7: uint16(28091), + 8: uint16(28922), + 9: uint16(28941), + 10: uint16(28919), + 11: uint16(28951), + 12: uint16(28916), + 13: uint16(28940), + 14: uint16(28912), + 15: uint16(28932), + 16: uint16(28915), + 17: uint16(28944), + 18: uint16(28924), + 19: uint16(28927), + 20: uint16(28934), + 21: uint16(28947), + 22: uint16(28928), + 23: uint16(28920), + 24: uint16(28918), + 25: uint16(28939), + 26: uint16(28930), + 27: uint16(28942), + 28: uint16(29310), + 29: uint16(29307), + 30: uint16(29308), + 31: uint16(29311), + 32: uint16(29469), + 33: uint16(29463), + 34: uint16(29447), + 35: uint16(29457), + 36: uint16(29464), + 37: uint16(29450), + 38: uint16(29448), + 39: uint16(29439), + 40: uint16(29455), + 41: uint16(29470), + 42: uint16(29576), + 43: uint16(29686), + 44: uint16(29688), + 45: uint16(29685), + 46: uint16(29700), + 47: uint16(29697), + 48: uint16(29693), + 49: uint16(29703), + 50: uint16(29696), + 51: uint16(29690), + 52: uint16(29692), + 53: uint16(29695), + 54: uint16(29708), + 55: uint16(29707), + 56: uint16(29684), + 57: uint16(29704), + 58: uint16(30052), + 59: uint16(30051), + 60: uint16(30158), + 61: uint16(30162), + 62: uint16(30159), + 63: uint16(30155), + 64: uint16(30156), + 65: uint16(30161), + 66: uint16(30160), + 67: uint16(30351), + 68: uint16(30345), + 69: uint16(30419), + 70: uint16(30521), + 71: uint16(30511), + 72: uint16(30509), + 73: uint16(30513), + 74: uint16(30514), + 75: uint16(30516), + 76: uint16(30515), + 77: uint16(30525), + 78: uint16(30501), + 79: uint16(30523), + 80: uint16(30517), + 81: uint16(30792), + 82: uint16(30802), + 83: uint16(30793), + 84: uint16(30797), + 85: uint16(30794), + 86: uint16(30796), + 87: uint16(30758), + 88: uint16(30789), + 89: uint16(30800), + 90: uint16(31076), + 91: uint16(31079), + 92: uint16(31081), + 93: uint16(31082), + 94: uint16(31075), + 95: uint16(31083), + 96: uint16(31073), + 97: uint16(31163), + 98: uint16(31226), + 99: uint16(31224), + 100: uint16(31222), + 101: uint16(31223), + 102: uint16(31375), + 103: uint16(31380), + 104: uint16(31376), + 105: uint16(31541), + 106: uint16(31559), + 107: uint16(31540), + 108: uint16(31525), + 109: uint16(31536), + 110: uint16(31522), + 111: uint16(31524), + 112: uint16(31539), + 113: uint16(31512), + 114: uint16(31530), + 115: uint16(31517), + 116: uint16(31537), + 117: uint16(31531), + 118: uint16(31533), + 119: uint16(31535), + 120: uint16(31538), + 121: uint16(31544), + 122: uint16(31514), + 123: uint16(31523), + 124: uint16(31892), + 125: uint16(31896), + 126: uint16(31894), + 127: uint16(31907), + 128: uint16(32053), + 129: uint16(32061), + 130: uint16(32056), + 131: uint16(32054), + 132: uint16(32058), + 133: uint16(32069), + 134: uint16(32044), + 135: uint16(32041), + 136: uint16(32065), + 137: uint16(32071), + 138: uint16(32062), + 139: uint16(32063), + 140: uint16(32074), + 141: uint16(32059), + 142: uint16(32040), + 143: uint16(32611), + 144: uint16(32661), + 145: uint16(32668), + 146: uint16(32669), + 147: uint16(32667), + 148: uint16(32714), + 149: uint16(32715), + 150: uint16(32717), + 151: uint16(32720), + 152: uint16(32721), + 153: uint16(32711), + 154: uint16(32719), + 155: uint16(32713), + 156: uint16(32799), + }, + 54: { + 0: uint16(32798), + 1: uint16(32795), + 2: uint16(32839), + 3: uint16(32835), + 4: uint16(32840), + 5: uint16(33048), + 6: uint16(33061), + 7: uint16(33049), + 8: uint16(33051), + 9: uint16(33069), + 10: uint16(33055), + 11: uint16(33068), + 12: uint16(33054), + 13: uint16(33057), + 14: uint16(33045), + 15: uint16(33063), + 16: uint16(33053), + 17: uint16(33058), + 18: uint16(33297), + 19: uint16(33336), + 20: uint16(33331), + 21: uint16(33338), + 22: uint16(33332), + 23: uint16(33330), + 24: uint16(33396), + 25: uint16(33680), + 26: uint16(33699), + 27: uint16(33704), + 28: uint16(33677), + 29: uint16(33658), + 30: uint16(33651), + 31: uint16(33700), + 32: uint16(33652), + 33: uint16(33679), + 34: uint16(33665), + 35: uint16(33685), + 36: uint16(33689), + 37: uint16(33653), + 38: uint16(33684), + 39: uint16(33705), + 40: uint16(33661), + 41: uint16(33667), + 42: uint16(33676), + 43: uint16(33693), + 44: uint16(33691), + 45: uint16(33706), + 46: uint16(33675), + 47: uint16(33662), + 48: uint16(33701), + 49: uint16(33711), + 50: uint16(33672), + 51: uint16(33687), + 52: uint16(33712), + 53: uint16(33663), + 54: uint16(33702), + 55: uint16(33671), + 56: uint16(33710), + 57: uint16(33654), + 58: uint16(33690), + 59: uint16(34393), + 60: uint16(34390), + 61: uint16(34495), + 62: uint16(34487), + 63: uint16(34498), + 64: uint16(34497), + 65: uint16(34501), + 66: uint16(34490), + 67: uint16(34480), + 68: uint16(34504), + 69: uint16(34489), + 70: uint16(34483), + 71: uint16(34488), + 72: uint16(34508), + 73: uint16(34484), + 74: uint16(34491), + 75: uint16(34492), + 76: uint16(34499), + 77: uint16(34493), + 78: uint16(34494), + 79: uint16(34898), + 80: uint16(34953), + 81: uint16(34965), + 82: uint16(34984), + 83: uint16(34978), + 84: uint16(34986), + 85: uint16(34970), + 86: uint16(34961), + 87: uint16(34977), + 88: uint16(34975), + 89: uint16(34968), + 90: uint16(34983), + 91: uint16(34969), + 92: uint16(34971), + 93: uint16(34967), + 94: uint16(34980), + 95: uint16(34988), + 96: uint16(34956), + 97: uint16(34963), + 98: uint16(34958), + 99: uint16(35202), + 100: uint16(35286), + 101: uint16(35289), + 102: uint16(35285), + 103: uint16(35376), + 104: uint16(35367), + 105: uint16(35372), + 106: uint16(35358), + 107: uint16(35897), + 108: uint16(35899), + 109: uint16(35932), + 110: uint16(35933), + 111: uint16(35965), + 112: uint16(36005), + 113: uint16(36221), + 114: uint16(36219), + 115: uint16(36217), + 116: uint16(36284), + 117: uint16(36290), + 118: uint16(36281), + 119: uint16(36287), + 120: uint16(36289), + 121: uint16(36568), + 122: uint16(36574), + 123: uint16(36573), + 124: uint16(36572), + 125: uint16(36567), + 126: uint16(36576), + 127: uint16(36577), + 128: uint16(36900), + 129: uint16(36875), + 130: uint16(36881), + 131: uint16(36892), + 132: uint16(36876), + 133: uint16(36897), + 134: uint16(37103), + 135: uint16(37098), + 136: uint16(37104), + 137: uint16(37108), + 138: uint16(37106), + 139: uint16(37107), + 140: uint16(37076), + 141: uint16(37099), + 142: uint16(37100), + 143: uint16(37097), + 144: uint16(37206), + 145: uint16(37208), + 146: uint16(37210), + 147: uint16(37203), + 148: uint16(37205), + 149: uint16(37356), + 150: uint16(37364), + 151: uint16(37361), + 152: uint16(37363), + 153: uint16(37368), + 154: uint16(37348), + 155: uint16(37369), + 156: uint16(37354), + }, + 55: { + 0: uint16(37355), + 1: uint16(37367), + 2: uint16(37352), + 3: uint16(37358), + 4: uint16(38266), + 5: uint16(38278), + 6: uint16(38280), + 7: uint16(38524), + 8: uint16(38509), + 9: uint16(38507), + 10: uint16(38513), + 11: uint16(38511), + 12: uint16(38591), + 13: uint16(38762), + 14: uint16(38916), + 15: uint16(39141), + 16: uint16(39319), + 17: uint16(20635), + 18: uint16(20629), + 19: uint16(20628), + 20: uint16(20638), + 21: uint16(20619), + 22: uint16(20643), + 23: uint16(20611), + 24: uint16(20620), + 25: uint16(20622), + 26: uint16(20637), + 27: uint16(20584), + 28: uint16(20636), + 29: uint16(20626), + 30: uint16(20610), + 31: uint16(20615), + 32: uint16(20831), + 33: uint16(20948), + 34: uint16(21266), + 35: uint16(21265), + 36: uint16(21412), + 37: uint16(21415), + 38: uint16(21905), + 39: uint16(21928), + 40: uint16(21925), + 41: uint16(21933), + 42: uint16(21879), + 43: uint16(22085), + 44: uint16(21922), + 45: uint16(21907), + 46: uint16(21896), + 47: uint16(21903), + 48: uint16(21941), + 49: uint16(21889), + 50: uint16(21923), + 51: uint16(21906), + 52: uint16(21924), + 53: uint16(21885), + 54: uint16(21900), + 55: uint16(21926), + 56: uint16(21887), + 57: uint16(21909), + 58: uint16(21921), + 59: uint16(21902), + 60: uint16(22284), + 61: uint16(22569), + 62: uint16(22583), + 63: uint16(22553), + 64: uint16(22558), + 65: uint16(22567), + 66: uint16(22563), + 67: uint16(22568), + 68: uint16(22517), + 69: uint16(22600), + 70: uint16(22565), + 71: uint16(22556), + 72: uint16(22555), + 73: uint16(22579), + 74: uint16(22591), + 75: uint16(22582), + 76: uint16(22574), + 77: uint16(22585), + 78: uint16(22584), + 79: uint16(22573), + 80: uint16(22572), + 81: uint16(22587), + 82: uint16(22881), + 83: uint16(23215), + 84: uint16(23188), + 85: uint16(23199), + 86: uint16(23162), + 87: uint16(23202), + 88: uint16(23198), + 89: uint16(23160), + 90: uint16(23206), + 91: uint16(23164), + 92: uint16(23205), + 93: uint16(23212), + 94: uint16(23189), + 95: uint16(23214), + 96: uint16(23095), + 97: uint16(23172), + 98: uint16(23178), + 99: uint16(23191), + 100: uint16(23171), + 101: uint16(23179), + 102: uint16(23209), + 103: uint16(23163), + 104: uint16(23165), + 105: uint16(23180), + 106: uint16(23196), + 107: uint16(23183), + 108: uint16(23187), + 109: uint16(23197), + 110: uint16(23530), + 111: uint16(23501), + 112: uint16(23499), + 113: uint16(23508), + 114: uint16(23505), + 115: uint16(23498), + 116: uint16(23502), + 117: uint16(23564), + 118: uint16(23600), + 119: uint16(23863), + 120: uint16(23875), + 121: uint16(23915), + 122: uint16(23873), + 123: uint16(23883), + 124: uint16(23871), + 125: uint16(23861), + 126: uint16(23889), + 127: uint16(23886), + 128: uint16(23893), + 129: uint16(23859), + 130: uint16(23866), + 131: uint16(23890), + 132: uint16(23869), + 133: uint16(23857), + 134: uint16(23897), + 135: uint16(23874), + 136: uint16(23865), + 137: uint16(23881), + 138: uint16(23864), + 139: uint16(23868), + 140: uint16(23858), + 141: uint16(23862), + 142: uint16(23872), + 143: uint16(23877), + 144: uint16(24132), + 145: uint16(24129), + 146: uint16(24408), + 147: uint16(24486), + 148: uint16(24485), + 149: uint16(24491), + 150: uint16(24777), + 151: uint16(24761), + 152: uint16(24780), + 153: uint16(24802), + 154: uint16(24782), + 155: uint16(24772), + 156: uint16(24852), + }, + 56: { + 0: uint16(24818), + 1: uint16(24842), + 2: uint16(24854), + 3: uint16(24837), + 4: uint16(24821), + 5: uint16(24851), + 6: uint16(24824), + 7: uint16(24828), + 8: uint16(24830), + 9: uint16(24769), + 10: uint16(24835), + 11: uint16(24856), + 12: uint16(24861), + 13: uint16(24848), + 14: uint16(24831), + 15: uint16(24836), + 16: uint16(24843), + 17: uint16(25162), + 18: uint16(25492), + 19: uint16(25521), + 20: uint16(25520), + 21: uint16(25550), + 22: uint16(25573), + 23: uint16(25576), + 24: uint16(25583), + 25: uint16(25539), + 26: uint16(25757), + 27: uint16(25587), + 28: uint16(25546), + 29: uint16(25568), + 30: uint16(25590), + 31: uint16(25557), + 32: uint16(25586), + 33: uint16(25589), + 34: uint16(25697), + 35: uint16(25567), + 36: uint16(25534), + 37: uint16(25565), + 38: uint16(25564), + 39: uint16(25540), + 40: uint16(25560), + 41: uint16(25555), + 42: uint16(25538), + 43: uint16(25543), + 44: uint16(25548), + 45: uint16(25547), + 46: uint16(25544), + 47: uint16(25584), + 48: uint16(25559), + 49: uint16(25561), + 50: uint16(25906), + 51: uint16(25959), + 52: uint16(25962), + 53: uint16(25956), + 54: uint16(25948), + 55: uint16(25960), + 56: uint16(25957), + 57: uint16(25996), + 58: uint16(26013), + 59: uint16(26014), + 60: uint16(26030), + 61: uint16(26064), + 62: uint16(26066), + 63: uint16(26236), + 64: uint16(26220), + 65: uint16(26235), + 66: uint16(26240), + 67: uint16(26225), + 68: uint16(26233), + 69: uint16(26218), + 70: uint16(26226), + 71: uint16(26369), + 72: uint16(26892), + 73: uint16(26835), + 74: uint16(26884), + 75: uint16(26844), + 76: uint16(26922), + 77: uint16(26860), + 78: uint16(26858), + 79: uint16(26865), + 80: uint16(26895), + 81: uint16(26838), + 82: uint16(26871), + 83: uint16(26859), + 84: uint16(26852), + 85: uint16(26870), + 86: uint16(26899), + 87: uint16(26896), + 88: uint16(26867), + 89: uint16(26849), + 90: uint16(26887), + 91: uint16(26828), + 92: uint16(26888), + 93: uint16(26992), + 94: uint16(26804), + 95: uint16(26897), + 96: uint16(26863), + 97: uint16(26822), + 98: uint16(26900), + 99: uint16(26872), + 100: uint16(26832), + 101: uint16(26877), + 102: uint16(26876), + 103: uint16(26856), + 104: uint16(26891), + 105: uint16(26890), + 106: uint16(26903), + 107: uint16(26830), + 108: uint16(26824), + 109: uint16(26845), + 110: uint16(26846), + 111: uint16(26854), + 112: uint16(26868), + 113: uint16(26833), + 114: uint16(26886), + 115: uint16(26836), + 116: uint16(26857), + 117: uint16(26901), + 118: uint16(26917), + 119: uint16(26823), + 120: uint16(27449), + 121: uint16(27451), + 122: uint16(27455), + 123: uint16(27452), + 124: uint16(27540), + 125: uint16(27543), + 126: uint16(27545), + 127: uint16(27541), + 128: uint16(27581), + 129: uint16(27632), + 130: uint16(27634), + 131: uint16(27635), + 132: uint16(27696), + 133: uint16(28156), + 134: uint16(28230), + 135: uint16(28231), + 136: uint16(28191), + 137: uint16(28233), + 138: uint16(28296), + 139: uint16(28220), + 140: uint16(28221), + 141: uint16(28229), + 142: uint16(28258), + 143: uint16(28203), + 144: uint16(28223), + 145: uint16(28225), + 146: uint16(28253), + 147: uint16(28275), + 148: uint16(28188), + 149: uint16(28211), + 150: uint16(28235), + 151: uint16(28224), + 152: uint16(28241), + 153: uint16(28219), + 154: uint16(28163), + 155: uint16(28206), + 156: uint16(28254), + }, + 57: { + 0: uint16(28264), + 1: uint16(28252), + 2: uint16(28257), + 3: uint16(28209), + 4: uint16(28200), + 5: uint16(28256), + 6: uint16(28273), + 7: uint16(28267), + 8: uint16(28217), + 9: uint16(28194), + 10: uint16(28208), + 11: uint16(28243), + 12: uint16(28261), + 13: uint16(28199), + 14: uint16(28280), + 15: uint16(28260), + 16: uint16(28279), + 17: uint16(28245), + 18: uint16(28281), + 19: uint16(28242), + 20: uint16(28262), + 21: uint16(28213), + 22: uint16(28214), + 23: uint16(28250), + 24: uint16(28960), + 25: uint16(28958), + 26: uint16(28975), + 27: uint16(28923), + 28: uint16(28974), + 29: uint16(28977), + 30: uint16(28963), + 31: uint16(28965), + 32: uint16(28962), + 33: uint16(28978), + 34: uint16(28959), + 35: uint16(28968), + 36: uint16(28986), + 37: uint16(28955), + 38: uint16(29259), + 39: uint16(29274), + 40: uint16(29320), + 41: uint16(29321), + 42: uint16(29318), + 43: uint16(29317), + 44: uint16(29323), + 45: uint16(29458), + 46: uint16(29451), + 47: uint16(29488), + 48: uint16(29474), + 49: uint16(29489), + 50: uint16(29491), + 51: uint16(29479), + 52: uint16(29490), + 53: uint16(29485), + 54: uint16(29478), + 55: uint16(29475), + 56: uint16(29493), + 57: uint16(29452), + 58: uint16(29742), + 59: uint16(29740), + 60: uint16(29744), + 61: uint16(29739), + 62: uint16(29718), + 63: uint16(29722), + 64: uint16(29729), + 65: uint16(29741), + 66: uint16(29745), + 67: uint16(29732), + 68: uint16(29731), + 69: uint16(29725), + 70: uint16(29737), + 71: uint16(29728), + 72: uint16(29746), + 73: uint16(29947), + 74: uint16(29999), + 75: uint16(30063), + 76: uint16(30060), + 77: uint16(30183), + 78: uint16(30170), + 79: uint16(30177), + 80: uint16(30182), + 81: uint16(30173), + 82: uint16(30175), + 83: uint16(30180), + 84: uint16(30167), + 85: uint16(30357), + 86: uint16(30354), + 87: uint16(30426), + 88: uint16(30534), + 89: uint16(30535), + 90: uint16(30532), + 91: uint16(30541), + 92: uint16(30533), + 93: uint16(30538), + 94: uint16(30542), + 95: uint16(30539), + 96: uint16(30540), + 97: uint16(30686), + 98: uint16(30700), + 99: uint16(30816), + 100: uint16(30820), + 101: uint16(30821), + 102: uint16(30812), + 103: uint16(30829), + 104: uint16(30833), + 105: uint16(30826), + 106: uint16(30830), + 107: uint16(30832), + 108: uint16(30825), + 109: uint16(30824), + 110: uint16(30814), + 111: uint16(30818), + 112: uint16(31092), + 113: uint16(31091), + 114: uint16(31090), + 115: uint16(31088), + 116: uint16(31234), + 117: uint16(31242), + 118: uint16(31235), + 119: uint16(31244), + 120: uint16(31236), + 121: uint16(31385), + 122: uint16(31462), + 123: uint16(31460), + 124: uint16(31562), + 125: uint16(31547), + 126: uint16(31556), + 127: uint16(31560), + 128: uint16(31564), + 129: uint16(31566), + 130: uint16(31552), + 131: uint16(31576), + 132: uint16(31557), + 133: uint16(31906), + 134: uint16(31902), + 135: uint16(31912), + 136: uint16(31905), + 137: uint16(32088), + 138: uint16(32111), + 139: uint16(32099), + 140: uint16(32083), + 141: uint16(32086), + 142: uint16(32103), + 143: uint16(32106), + 144: uint16(32079), + 145: uint16(32109), + 146: uint16(32092), + 147: uint16(32107), + 148: uint16(32082), + 149: uint16(32084), + 150: uint16(32105), + 151: uint16(32081), + 152: uint16(32095), + 153: uint16(32078), + 154: uint16(32574), + 155: uint16(32575), + 156: uint16(32613), + }, + 58: { + 0: uint16(32614), + 1: uint16(32674), + 2: uint16(32672), + 3: uint16(32673), + 4: uint16(32727), + 5: uint16(32849), + 6: uint16(32847), + 7: uint16(32848), + 8: uint16(33022), + 9: uint16(32980), + 10: uint16(33091), + 11: uint16(33098), + 12: uint16(33106), + 13: uint16(33103), + 14: uint16(33095), + 15: uint16(33085), + 16: uint16(33101), + 17: uint16(33082), + 18: uint16(33254), + 19: uint16(33262), + 20: uint16(33271), + 21: uint16(33272), + 22: uint16(33273), + 23: uint16(33284), + 24: uint16(33340), + 25: uint16(33341), + 26: uint16(33343), + 27: uint16(33397), + 28: uint16(33595), + 29: uint16(33743), + 30: uint16(33785), + 31: uint16(33827), + 32: uint16(33728), + 33: uint16(33768), + 34: uint16(33810), + 35: uint16(33767), + 36: uint16(33764), + 37: uint16(33788), + 38: uint16(33782), + 39: uint16(33808), + 40: uint16(33734), + 41: uint16(33736), + 42: uint16(33771), + 43: uint16(33763), + 44: uint16(33727), + 45: uint16(33793), + 46: uint16(33757), + 47: uint16(33765), + 48: uint16(33752), + 49: uint16(33791), + 50: uint16(33761), + 51: uint16(33739), + 52: uint16(33742), + 53: uint16(33750), + 54: uint16(33781), + 55: uint16(33737), + 56: uint16(33801), + 57: uint16(33807), + 58: uint16(33758), + 59: uint16(33809), + 60: uint16(33798), + 61: uint16(33730), + 62: uint16(33779), + 63: uint16(33749), + 64: uint16(33786), + 65: uint16(33735), + 66: uint16(33745), + 67: uint16(33770), + 68: uint16(33811), + 69: uint16(33731), + 70: uint16(33772), + 71: uint16(33774), + 72: uint16(33732), + 73: uint16(33787), + 74: uint16(33751), + 75: uint16(33762), + 76: uint16(33819), + 77: uint16(33755), + 78: uint16(33790), + 79: uint16(34520), + 80: uint16(34530), + 81: uint16(34534), + 82: uint16(34515), + 83: uint16(34531), + 84: uint16(34522), + 85: uint16(34538), + 86: uint16(34525), + 87: uint16(34539), + 88: uint16(34524), + 89: uint16(34540), + 90: uint16(34537), + 91: uint16(34519), + 92: uint16(34536), + 93: uint16(34513), + 94: uint16(34888), + 95: uint16(34902), + 96: uint16(34901), + 97: uint16(35002), + 98: uint16(35031), + 99: uint16(35001), + 100: uint16(35000), + 101: uint16(35008), + 102: uint16(35006), + 103: uint16(34998), + 104: uint16(35004), + 105: uint16(34999), + 106: uint16(35005), + 107: uint16(34994), + 108: uint16(35073), + 109: uint16(35017), + 110: uint16(35221), + 111: uint16(35224), + 112: uint16(35223), + 113: uint16(35293), + 114: uint16(35290), + 115: uint16(35291), + 116: uint16(35406), + 117: uint16(35405), + 118: uint16(35385), + 119: uint16(35417), + 120: uint16(35392), + 121: uint16(35415), + 122: uint16(35416), + 123: uint16(35396), + 124: uint16(35397), + 125: uint16(35410), + 126: uint16(35400), + 127: uint16(35409), + 128: uint16(35402), + 129: uint16(35404), + 130: uint16(35407), + 131: uint16(35935), + 132: uint16(35969), + 133: uint16(35968), + 134: uint16(36026), + 135: uint16(36030), + 136: uint16(36016), + 137: uint16(36025), + 138: uint16(36021), + 139: uint16(36228), + 140: uint16(36224), + 141: uint16(36233), + 142: uint16(36312), + 143: uint16(36307), + 144: uint16(36301), + 145: uint16(36295), + 146: uint16(36310), + 147: uint16(36316), + 148: uint16(36303), + 149: uint16(36309), + 150: uint16(36313), + 151: uint16(36296), + 152: uint16(36311), + 153: uint16(36293), + 154: uint16(36591), + 155: uint16(36599), + 156: uint16(36602), + }, + 59: { + 0: uint16(36601), + 1: uint16(36582), + 2: uint16(36590), + 3: uint16(36581), + 4: uint16(36597), + 5: uint16(36583), + 6: uint16(36584), + 7: uint16(36598), + 8: uint16(36587), + 9: uint16(36593), + 10: uint16(36588), + 11: uint16(36596), + 12: uint16(36585), + 13: uint16(36909), + 14: uint16(36916), + 15: uint16(36911), + 16: uint16(37126), + 17: uint16(37164), + 18: uint16(37124), + 19: uint16(37119), + 20: uint16(37116), + 21: uint16(37128), + 22: uint16(37113), + 23: uint16(37115), + 24: uint16(37121), + 25: uint16(37120), + 26: uint16(37127), + 27: uint16(37125), + 28: uint16(37123), + 29: uint16(37217), + 30: uint16(37220), + 31: uint16(37215), + 32: uint16(37218), + 33: uint16(37216), + 34: uint16(37377), + 35: uint16(37386), + 36: uint16(37413), + 37: uint16(37379), + 38: uint16(37402), + 39: uint16(37414), + 40: uint16(37391), + 41: uint16(37388), + 42: uint16(37376), + 43: uint16(37394), + 44: uint16(37375), + 45: uint16(37373), + 46: uint16(37382), + 47: uint16(37380), + 48: uint16(37415), + 49: uint16(37378), + 50: uint16(37404), + 51: uint16(37412), + 52: uint16(37401), + 53: uint16(37399), + 54: uint16(37381), + 55: uint16(37398), + 56: uint16(38267), + 57: uint16(38285), + 58: uint16(38284), + 59: uint16(38288), + 60: uint16(38535), + 61: uint16(38526), + 62: uint16(38536), + 63: uint16(38537), + 64: uint16(38531), + 65: uint16(38528), + 66: uint16(38594), + 67: uint16(38600), + 68: uint16(38595), + 69: uint16(38641), + 70: uint16(38640), + 71: uint16(38764), + 72: uint16(38768), + 73: uint16(38766), + 74: uint16(38919), + 75: uint16(39081), + 76: uint16(39147), + 77: uint16(40166), + 78: uint16(40697), + 79: uint16(20099), + 80: uint16(20100), + 81: uint16(20150), + 82: uint16(20669), + 83: uint16(20671), + 84: uint16(20678), + 85: uint16(20654), + 86: uint16(20676), + 87: uint16(20682), + 88: uint16(20660), + 89: uint16(20680), + 90: uint16(20674), + 91: uint16(20656), + 92: uint16(20673), + 93: uint16(20666), + 94: uint16(20657), + 95: uint16(20683), + 96: uint16(20681), + 97: uint16(20662), + 98: uint16(20664), + 99: uint16(20951), + 100: uint16(21114), + 101: uint16(21112), + 102: uint16(21115), + 103: uint16(21116), + 104: uint16(21955), + 105: uint16(21979), + 106: uint16(21964), + 107: uint16(21968), + 108: uint16(21963), + 109: uint16(21962), + 110: uint16(21981), + 111: uint16(21952), + 112: uint16(21972), + 113: uint16(21956), + 114: uint16(21993), + 115: uint16(21951), + 116: uint16(21970), + 117: uint16(21901), + 118: uint16(21967), + 119: uint16(21973), + 120: uint16(21986), + 121: uint16(21974), + 122: uint16(21960), + 123: uint16(22002), + 124: uint16(21965), + 125: uint16(21977), + 126: uint16(21954), + 127: uint16(22292), + 128: uint16(22611), + 129: uint16(22632), + 130: uint16(22628), + 131: uint16(22607), + 132: uint16(22605), + 133: uint16(22601), + 134: uint16(22639), + 135: uint16(22613), + 136: uint16(22606), + 137: uint16(22621), + 138: uint16(22617), + 139: uint16(22629), + 140: uint16(22619), + 141: uint16(22589), + 142: uint16(22627), + 143: uint16(22641), + 144: uint16(22780), + 145: uint16(23239), + 146: uint16(23236), + 147: uint16(23243), + 148: uint16(23226), + 149: uint16(23224), + 150: uint16(23217), + 151: uint16(23221), + 152: uint16(23216), + 153: uint16(23231), + 154: uint16(23240), + 155: uint16(23227), + 156: uint16(23238), + }, + 60: { + 0: uint16(23223), + 1: uint16(23232), + 2: uint16(23242), + 3: uint16(23220), + 4: uint16(23222), + 5: uint16(23245), + 6: uint16(23225), + 7: uint16(23184), + 8: uint16(23510), + 9: uint16(23512), + 10: uint16(23513), + 11: uint16(23583), + 12: uint16(23603), + 13: uint16(23921), + 14: uint16(23907), + 15: uint16(23882), + 16: uint16(23909), + 17: uint16(23922), + 18: uint16(23916), + 19: uint16(23902), + 20: uint16(23912), + 21: uint16(23911), + 22: uint16(23906), + 23: uint16(24048), + 24: uint16(24143), + 25: uint16(24142), + 26: uint16(24138), + 27: uint16(24141), + 28: uint16(24139), + 29: uint16(24261), + 30: uint16(24268), + 31: uint16(24262), + 32: uint16(24267), + 33: uint16(24263), + 34: uint16(24384), + 35: uint16(24495), + 36: uint16(24493), + 37: uint16(24823), + 38: uint16(24905), + 39: uint16(24906), + 40: uint16(24875), + 41: uint16(24901), + 42: uint16(24886), + 43: uint16(24882), + 44: uint16(24878), + 45: uint16(24902), + 46: uint16(24879), + 47: uint16(24911), + 48: uint16(24873), + 49: uint16(24896), + 50: uint16(25120), + 51: uint16(37224), + 52: uint16(25123), + 53: uint16(25125), + 54: uint16(25124), + 55: uint16(25541), + 56: uint16(25585), + 57: uint16(25579), + 58: uint16(25616), + 59: uint16(25618), + 60: uint16(25609), + 61: uint16(25632), + 62: uint16(25636), + 63: uint16(25651), + 64: uint16(25667), + 65: uint16(25631), + 66: uint16(25621), + 67: uint16(25624), + 68: uint16(25657), + 69: uint16(25655), + 70: uint16(25634), + 71: uint16(25635), + 72: uint16(25612), + 73: uint16(25638), + 74: uint16(25648), + 75: uint16(25640), + 76: uint16(25665), + 77: uint16(25653), + 78: uint16(25647), + 79: uint16(25610), + 80: uint16(25626), + 81: uint16(25664), + 82: uint16(25637), + 83: uint16(25639), + 84: uint16(25611), + 85: uint16(25575), + 86: uint16(25627), + 87: uint16(25646), + 88: uint16(25633), + 89: uint16(25614), + 90: uint16(25967), + 91: uint16(26002), + 92: uint16(26067), + 93: uint16(26246), + 94: uint16(26252), + 95: uint16(26261), + 96: uint16(26256), + 97: uint16(26251), + 98: uint16(26250), + 99: uint16(26265), + 100: uint16(26260), + 101: uint16(26232), + 102: uint16(26400), + 103: uint16(26982), + 104: uint16(26975), + 105: uint16(26936), + 106: uint16(26958), + 107: uint16(26978), + 108: uint16(26993), + 109: uint16(26943), + 110: uint16(26949), + 111: uint16(26986), + 112: uint16(26937), + 113: uint16(26946), + 114: uint16(26967), + 115: uint16(26969), + 116: uint16(27002), + 117: uint16(26952), + 118: uint16(26953), + 119: uint16(26933), + 120: uint16(26988), + 121: uint16(26931), + 122: uint16(26941), + 123: uint16(26981), + 124: uint16(26864), + 125: uint16(27000), + 126: uint16(26932), + 127: uint16(26985), + 128: uint16(26944), + 129: uint16(26991), + 130: uint16(26948), + 131: uint16(26998), + 132: uint16(26968), + 133: uint16(26945), + 134: uint16(26996), + 135: uint16(26956), + 136: uint16(26939), + 137: uint16(26955), + 138: uint16(26935), + 139: uint16(26972), + 140: uint16(26959), + 141: uint16(26961), + 142: uint16(26930), + 143: uint16(26962), + 144: uint16(26927), + 145: uint16(27003), + 146: uint16(26940), + 147: uint16(27462), + 148: uint16(27461), + 149: uint16(27459), + 150: uint16(27458), + 151: uint16(27464), + 152: uint16(27457), + 153: uint16(27547), + 154: uint16(64013), + 155: uint16(27643), + 156: uint16(27644), + }, + 61: { + 0: uint16(27641), + 1: uint16(27639), + 2: uint16(27640), + 3: uint16(28315), + 4: uint16(28374), + 5: uint16(28360), + 6: uint16(28303), + 7: uint16(28352), + 8: uint16(28319), + 9: uint16(28307), + 10: uint16(28308), + 11: uint16(28320), + 12: uint16(28337), + 13: uint16(28345), + 14: uint16(28358), + 15: uint16(28370), + 16: uint16(28349), + 17: uint16(28353), + 18: uint16(28318), + 19: uint16(28361), + 20: uint16(28343), + 21: uint16(28336), + 22: uint16(28365), + 23: uint16(28326), + 24: uint16(28367), + 25: uint16(28338), + 26: uint16(28350), + 27: uint16(28355), + 28: uint16(28380), + 29: uint16(28376), + 30: uint16(28313), + 31: uint16(28306), + 32: uint16(28302), + 33: uint16(28301), + 34: uint16(28324), + 35: uint16(28321), + 36: uint16(28351), + 37: uint16(28339), + 38: uint16(28368), + 39: uint16(28362), + 40: uint16(28311), + 41: uint16(28334), + 42: uint16(28323), + 43: uint16(28999), + 44: uint16(29012), + 45: uint16(29010), + 46: uint16(29027), + 47: uint16(29024), + 48: uint16(28993), + 49: uint16(29021), + 50: uint16(29026), + 51: uint16(29042), + 52: uint16(29048), + 53: uint16(29034), + 54: uint16(29025), + 55: uint16(28994), + 56: uint16(29016), + 57: uint16(28995), + 58: uint16(29003), + 59: uint16(29040), + 60: uint16(29023), + 61: uint16(29008), + 62: uint16(29011), + 63: uint16(28996), + 64: uint16(29005), + 65: uint16(29018), + 66: uint16(29263), + 67: uint16(29325), + 68: uint16(29324), + 69: uint16(29329), + 70: uint16(29328), + 71: uint16(29326), + 72: uint16(29500), + 73: uint16(29506), + 74: uint16(29499), + 75: uint16(29498), + 76: uint16(29504), + 77: uint16(29514), + 78: uint16(29513), + 79: uint16(29764), + 80: uint16(29770), + 81: uint16(29771), + 82: uint16(29778), + 83: uint16(29777), + 84: uint16(29783), + 85: uint16(29760), + 86: uint16(29775), + 87: uint16(29776), + 88: uint16(29774), + 89: uint16(29762), + 90: uint16(29766), + 91: uint16(29773), + 92: uint16(29780), + 93: uint16(29921), + 94: uint16(29951), + 95: uint16(29950), + 96: uint16(29949), + 97: uint16(29981), + 98: uint16(30073), + 99: uint16(30071), + 100: uint16(27011), + 101: uint16(30191), + 102: uint16(30223), + 103: uint16(30211), + 104: uint16(30199), + 105: uint16(30206), + 106: uint16(30204), + 107: uint16(30201), + 108: uint16(30200), + 109: uint16(30224), + 110: uint16(30203), + 111: uint16(30198), + 112: uint16(30189), + 113: uint16(30197), + 114: uint16(30205), + 115: uint16(30361), + 116: uint16(30389), + 117: uint16(30429), + 118: uint16(30549), + 119: uint16(30559), + 120: uint16(30560), + 121: uint16(30546), + 122: uint16(30550), + 123: uint16(30554), + 124: uint16(30569), + 125: uint16(30567), + 126: uint16(30548), + 127: uint16(30553), + 128: uint16(30573), + 129: uint16(30688), + 130: uint16(30855), + 131: uint16(30874), + 132: uint16(30868), + 133: uint16(30863), + 134: uint16(30852), + 135: uint16(30869), + 136: uint16(30853), + 137: uint16(30854), + 138: uint16(30881), + 139: uint16(30851), + 140: uint16(30841), + 141: uint16(30873), + 142: uint16(30848), + 143: uint16(30870), + 144: uint16(30843), + 145: uint16(31100), + 146: uint16(31106), + 147: uint16(31101), + 148: uint16(31097), + 149: uint16(31249), + 150: uint16(31256), + 151: uint16(31257), + 152: uint16(31250), + 153: uint16(31255), + 154: uint16(31253), + 155: uint16(31266), + 156: uint16(31251), + }, + 62: { + 0: uint16(31259), + 1: uint16(31248), + 2: uint16(31395), + 3: uint16(31394), + 4: uint16(31390), + 5: uint16(31467), + 6: uint16(31590), + 7: uint16(31588), + 8: uint16(31597), + 9: uint16(31604), + 10: uint16(31593), + 11: uint16(31602), + 12: uint16(31589), + 13: uint16(31603), + 14: uint16(31601), + 15: uint16(31600), + 16: uint16(31585), + 17: uint16(31608), + 18: uint16(31606), + 19: uint16(31587), + 20: uint16(31922), + 21: uint16(31924), + 22: uint16(31919), + 23: uint16(32136), + 24: uint16(32134), + 25: uint16(32128), + 26: uint16(32141), + 27: uint16(32127), + 28: uint16(32133), + 29: uint16(32122), + 30: uint16(32142), + 31: uint16(32123), + 32: uint16(32131), + 33: uint16(32124), + 34: uint16(32140), + 35: uint16(32148), + 36: uint16(32132), + 37: uint16(32125), + 38: uint16(32146), + 39: uint16(32621), + 40: uint16(32619), + 41: uint16(32615), + 42: uint16(32616), + 43: uint16(32620), + 44: uint16(32678), + 45: uint16(32677), + 46: uint16(32679), + 47: uint16(32731), + 48: uint16(32732), + 49: uint16(32801), + 50: uint16(33124), + 51: uint16(33120), + 52: uint16(33143), + 53: uint16(33116), + 54: uint16(33129), + 55: uint16(33115), + 56: uint16(33122), + 57: uint16(33138), + 58: uint16(26401), + 59: uint16(33118), + 60: uint16(33142), + 61: uint16(33127), + 62: uint16(33135), + 63: uint16(33092), + 64: uint16(33121), + 65: uint16(33309), + 66: uint16(33353), + 67: uint16(33348), + 68: uint16(33344), + 69: uint16(33346), + 70: uint16(33349), + 71: uint16(34033), + 72: uint16(33855), + 73: uint16(33878), + 74: uint16(33910), + 75: uint16(33913), + 76: uint16(33935), + 77: uint16(33933), + 78: uint16(33893), + 79: uint16(33873), + 80: uint16(33856), + 81: uint16(33926), + 82: uint16(33895), + 83: uint16(33840), + 84: uint16(33869), + 85: uint16(33917), + 86: uint16(33882), + 87: uint16(33881), + 88: uint16(33908), + 89: uint16(33907), + 90: uint16(33885), + 91: uint16(34055), + 92: uint16(33886), + 93: uint16(33847), + 94: uint16(33850), + 95: uint16(33844), + 96: uint16(33914), + 97: uint16(33859), + 98: uint16(33912), + 99: uint16(33842), + 100: uint16(33861), + 101: uint16(33833), + 102: uint16(33753), + 103: uint16(33867), + 104: uint16(33839), + 105: uint16(33858), + 106: uint16(33837), + 107: uint16(33887), + 108: uint16(33904), + 109: uint16(33849), + 110: uint16(33870), + 111: uint16(33868), + 112: uint16(33874), + 113: uint16(33903), + 114: uint16(33989), + 115: uint16(33934), + 116: uint16(33851), + 117: uint16(33863), + 118: uint16(33846), + 119: uint16(33843), + 120: uint16(33896), + 121: uint16(33918), + 122: uint16(33860), + 123: uint16(33835), + 124: uint16(33888), + 125: uint16(33876), + 126: uint16(33902), + 127: uint16(33872), + 128: uint16(34571), + 129: uint16(34564), + 130: uint16(34551), + 131: uint16(34572), + 132: uint16(34554), + 133: uint16(34518), + 134: uint16(34549), + 135: uint16(34637), + 136: uint16(34552), + 137: uint16(34574), + 138: uint16(34569), + 139: uint16(34561), + 140: uint16(34550), + 141: uint16(34573), + 142: uint16(34565), + 143: uint16(35030), + 144: uint16(35019), + 145: uint16(35021), + 146: uint16(35022), + 147: uint16(35038), + 148: uint16(35035), + 149: uint16(35034), + 150: uint16(35020), + 151: uint16(35024), + 152: uint16(35205), + 153: uint16(35227), + 154: uint16(35295), + 155: uint16(35301), + 156: uint16(35300), + }, + 63: { + 0: uint16(35297), + 1: uint16(35296), + 2: uint16(35298), + 3: uint16(35292), + 4: uint16(35302), + 5: uint16(35446), + 6: uint16(35462), + 7: uint16(35455), + 8: uint16(35425), + 9: uint16(35391), + 10: uint16(35447), + 11: uint16(35458), + 12: uint16(35460), + 13: uint16(35445), + 14: uint16(35459), + 15: uint16(35457), + 16: uint16(35444), + 17: uint16(35450), + 18: uint16(35900), + 19: uint16(35915), + 20: uint16(35914), + 21: uint16(35941), + 22: uint16(35940), + 23: uint16(35942), + 24: uint16(35974), + 25: uint16(35972), + 26: uint16(35973), + 27: uint16(36044), + 28: uint16(36200), + 29: uint16(36201), + 30: uint16(36241), + 31: uint16(36236), + 32: uint16(36238), + 33: uint16(36239), + 34: uint16(36237), + 35: uint16(36243), + 36: uint16(36244), + 37: uint16(36240), + 38: uint16(36242), + 39: uint16(36336), + 40: uint16(36320), + 41: uint16(36332), + 42: uint16(36337), + 43: uint16(36334), + 44: uint16(36304), + 45: uint16(36329), + 46: uint16(36323), + 47: uint16(36322), + 48: uint16(36327), + 49: uint16(36338), + 50: uint16(36331), + 51: uint16(36340), + 52: uint16(36614), + 53: uint16(36607), + 54: uint16(36609), + 55: uint16(36608), + 56: uint16(36613), + 57: uint16(36615), + 58: uint16(36616), + 59: uint16(36610), + 60: uint16(36619), + 61: uint16(36946), + 62: uint16(36927), + 63: uint16(36932), + 64: uint16(36937), + 65: uint16(36925), + 66: uint16(37136), + 67: uint16(37133), + 68: uint16(37135), + 69: uint16(37137), + 70: uint16(37142), + 71: uint16(37140), + 72: uint16(37131), + 73: uint16(37134), + 74: uint16(37230), + 75: uint16(37231), + 76: uint16(37448), + 77: uint16(37458), + 78: uint16(37424), + 79: uint16(37434), + 80: uint16(37478), + 81: uint16(37427), + 82: uint16(37477), + 83: uint16(37470), + 84: uint16(37507), + 85: uint16(37422), + 86: uint16(37450), + 87: uint16(37446), + 88: uint16(37485), + 89: uint16(37484), + 90: uint16(37455), + 91: uint16(37472), + 92: uint16(37479), + 93: uint16(37487), + 94: uint16(37430), + 95: uint16(37473), + 96: uint16(37488), + 97: uint16(37425), + 98: uint16(37460), + 99: uint16(37475), + 100: uint16(37456), + 101: uint16(37490), + 102: uint16(37454), + 103: uint16(37459), + 104: uint16(37452), + 105: uint16(37462), + 106: uint16(37426), + 107: uint16(38303), + 108: uint16(38300), + 109: uint16(38302), + 110: uint16(38299), + 111: uint16(38546), + 112: uint16(38547), + 113: uint16(38545), + 114: uint16(38551), + 115: uint16(38606), + 116: uint16(38650), + 117: uint16(38653), + 118: uint16(38648), + 119: uint16(38645), + 120: uint16(38771), + 121: uint16(38775), + 122: uint16(38776), + 123: uint16(38770), + 124: uint16(38927), + 125: uint16(38925), + 126: uint16(38926), + 127: uint16(39084), + 128: uint16(39158), + 129: uint16(39161), + 130: uint16(39343), + 131: uint16(39346), + 132: uint16(39344), + 133: uint16(39349), + 134: uint16(39597), + 135: uint16(39595), + 136: uint16(39771), + 137: uint16(40170), + 138: uint16(40173), + 139: uint16(40167), + 140: uint16(40576), + 141: uint16(40701), + 142: uint16(20710), + 143: uint16(20692), + 144: uint16(20695), + 145: uint16(20712), + 146: uint16(20723), + 147: uint16(20699), + 148: uint16(20714), + 149: uint16(20701), + 150: uint16(20708), + 151: uint16(20691), + 152: uint16(20716), + 153: uint16(20720), + 154: uint16(20719), + 155: uint16(20707), + 156: uint16(20704), + }, + 64: { + 0: uint16(20952), + 1: uint16(21120), + 2: uint16(21121), + 3: uint16(21225), + 4: uint16(21227), + 5: uint16(21296), + 6: uint16(21420), + 7: uint16(22055), + 8: uint16(22037), + 9: uint16(22028), + 10: uint16(22034), + 11: uint16(22012), + 12: uint16(22031), + 13: uint16(22044), + 14: uint16(22017), + 15: uint16(22035), + 16: uint16(22018), + 17: uint16(22010), + 18: uint16(22045), + 19: uint16(22020), + 20: uint16(22015), + 21: uint16(22009), + 22: uint16(22665), + 23: uint16(22652), + 24: uint16(22672), + 25: uint16(22680), + 26: uint16(22662), + 27: uint16(22657), + 28: uint16(22655), + 29: uint16(22644), + 30: uint16(22667), + 31: uint16(22650), + 32: uint16(22663), + 33: uint16(22673), + 34: uint16(22670), + 35: uint16(22646), + 36: uint16(22658), + 37: uint16(22664), + 38: uint16(22651), + 39: uint16(22676), + 40: uint16(22671), + 41: uint16(22782), + 42: uint16(22891), + 43: uint16(23260), + 44: uint16(23278), + 45: uint16(23269), + 46: uint16(23253), + 47: uint16(23274), + 48: uint16(23258), + 49: uint16(23277), + 50: uint16(23275), + 51: uint16(23283), + 52: uint16(23266), + 53: uint16(23264), + 54: uint16(23259), + 55: uint16(23276), + 56: uint16(23262), + 57: uint16(23261), + 58: uint16(23257), + 59: uint16(23272), + 60: uint16(23263), + 61: uint16(23415), + 62: uint16(23520), + 63: uint16(23523), + 64: uint16(23651), + 65: uint16(23938), + 66: uint16(23936), + 67: uint16(23933), + 68: uint16(23942), + 69: uint16(23930), + 70: uint16(23937), + 71: uint16(23927), + 72: uint16(23946), + 73: uint16(23945), + 74: uint16(23944), + 75: uint16(23934), + 76: uint16(23932), + 77: uint16(23949), + 78: uint16(23929), + 79: uint16(23935), + 80: uint16(24152), + 81: uint16(24153), + 82: uint16(24147), + 83: uint16(24280), + 84: uint16(24273), + 85: uint16(24279), + 86: uint16(24270), + 87: uint16(24284), + 88: uint16(24277), + 89: uint16(24281), + 90: uint16(24274), + 91: uint16(24276), + 92: uint16(24388), + 93: uint16(24387), + 94: uint16(24431), + 95: uint16(24502), + 96: uint16(24876), + 97: uint16(24872), + 98: uint16(24897), + 99: uint16(24926), + 100: uint16(24945), + 101: uint16(24947), + 102: uint16(24914), + 103: uint16(24915), + 104: uint16(24946), + 105: uint16(24940), + 106: uint16(24960), + 107: uint16(24948), + 108: uint16(24916), + 109: uint16(24954), + 110: uint16(24923), + 111: uint16(24933), + 112: uint16(24891), + 113: uint16(24938), + 114: uint16(24929), + 115: uint16(24918), + 116: uint16(25129), + 117: uint16(25127), + 118: uint16(25131), + 119: uint16(25643), + 120: uint16(25677), + 121: uint16(25691), + 122: uint16(25693), + 123: uint16(25716), + 124: uint16(25718), + 125: uint16(25714), + 126: uint16(25715), + 127: uint16(25725), + 128: uint16(25717), + 129: uint16(25702), + 130: uint16(25766), + 131: uint16(25678), + 132: uint16(25730), + 133: uint16(25694), + 134: uint16(25692), + 135: uint16(25675), + 136: uint16(25683), + 137: uint16(25696), + 138: uint16(25680), + 139: uint16(25727), + 140: uint16(25663), + 141: uint16(25708), + 142: uint16(25707), + 143: uint16(25689), + 144: uint16(25701), + 145: uint16(25719), + 146: uint16(25971), + 147: uint16(26016), + 148: uint16(26273), + 149: uint16(26272), + 150: uint16(26271), + 151: uint16(26373), + 152: uint16(26372), + 153: uint16(26402), + 154: uint16(27057), + 155: uint16(27062), + 156: uint16(27081), + }, + 65: { + 0: uint16(27040), + 1: uint16(27086), + 2: uint16(27030), + 3: uint16(27056), + 4: uint16(27052), + 5: uint16(27068), + 6: uint16(27025), + 7: uint16(27033), + 8: uint16(27022), + 9: uint16(27047), + 10: uint16(27021), + 11: uint16(27049), + 12: uint16(27070), + 13: uint16(27055), + 14: uint16(27071), + 15: uint16(27076), + 16: uint16(27069), + 17: uint16(27044), + 18: uint16(27092), + 19: uint16(27065), + 20: uint16(27082), + 21: uint16(27034), + 22: uint16(27087), + 23: uint16(27059), + 24: uint16(27027), + 25: uint16(27050), + 26: uint16(27041), + 27: uint16(27038), + 28: uint16(27097), + 29: uint16(27031), + 30: uint16(27024), + 31: uint16(27074), + 32: uint16(27061), + 33: uint16(27045), + 34: uint16(27078), + 35: uint16(27466), + 36: uint16(27469), + 37: uint16(27467), + 38: uint16(27550), + 39: uint16(27551), + 40: uint16(27552), + 41: uint16(27587), + 42: uint16(27588), + 43: uint16(27646), + 44: uint16(28366), + 45: uint16(28405), + 46: uint16(28401), + 47: uint16(28419), + 48: uint16(28453), + 49: uint16(28408), + 50: uint16(28471), + 51: uint16(28411), + 52: uint16(28462), + 53: uint16(28425), + 54: uint16(28494), + 55: uint16(28441), + 56: uint16(28442), + 57: uint16(28455), + 58: uint16(28440), + 59: uint16(28475), + 60: uint16(28434), + 61: uint16(28397), + 62: uint16(28426), + 63: uint16(28470), + 64: uint16(28531), + 65: uint16(28409), + 66: uint16(28398), + 67: uint16(28461), + 68: uint16(28480), + 69: uint16(28464), + 70: uint16(28476), + 71: uint16(28469), + 72: uint16(28395), + 73: uint16(28423), + 74: uint16(28430), + 75: uint16(28483), + 76: uint16(28421), + 77: uint16(28413), + 78: uint16(28406), + 79: uint16(28473), + 80: uint16(28444), + 81: uint16(28412), + 82: uint16(28474), + 83: uint16(28447), + 84: uint16(28429), + 85: uint16(28446), + 86: uint16(28424), + 87: uint16(28449), + 88: uint16(29063), + 89: uint16(29072), + 90: uint16(29065), + 91: uint16(29056), + 92: uint16(29061), + 93: uint16(29058), + 94: uint16(29071), + 95: uint16(29051), + 96: uint16(29062), + 97: uint16(29057), + 98: uint16(29079), + 99: uint16(29252), + 100: uint16(29267), + 101: uint16(29335), + 102: uint16(29333), + 103: uint16(29331), + 104: uint16(29507), + 105: uint16(29517), + 106: uint16(29521), + 107: uint16(29516), + 108: uint16(29794), + 109: uint16(29811), + 110: uint16(29809), + 111: uint16(29813), + 112: uint16(29810), + 113: uint16(29799), + 114: uint16(29806), + 115: uint16(29952), + 116: uint16(29954), + 117: uint16(29955), + 118: uint16(30077), + 119: uint16(30096), + 120: uint16(30230), + 121: uint16(30216), + 122: uint16(30220), + 123: uint16(30229), + 124: uint16(30225), + 125: uint16(30218), + 126: uint16(30228), + 127: uint16(30392), + 128: uint16(30593), + 129: uint16(30588), + 130: uint16(30597), + 131: uint16(30594), + 132: uint16(30574), + 133: uint16(30592), + 134: uint16(30575), + 135: uint16(30590), + 136: uint16(30595), + 137: uint16(30898), + 138: uint16(30890), + 139: uint16(30900), + 140: uint16(30893), + 141: uint16(30888), + 142: uint16(30846), + 143: uint16(30891), + 144: uint16(30878), + 145: uint16(30885), + 146: uint16(30880), + 147: uint16(30892), + 148: uint16(30882), + 149: uint16(30884), + 150: uint16(31128), + 151: uint16(31114), + 152: uint16(31115), + 153: uint16(31126), + 154: uint16(31125), + 155: uint16(31124), + 156: uint16(31123), + }, + 66: { + 0: uint16(31127), + 1: uint16(31112), + 2: uint16(31122), + 3: uint16(31120), + 4: uint16(31275), + 5: uint16(31306), + 6: uint16(31280), + 7: uint16(31279), + 8: uint16(31272), + 9: uint16(31270), + 10: uint16(31400), + 11: uint16(31403), + 12: uint16(31404), + 13: uint16(31470), + 14: uint16(31624), + 15: uint16(31644), + 16: uint16(31626), + 17: uint16(31633), + 18: uint16(31632), + 19: uint16(31638), + 20: uint16(31629), + 21: uint16(31628), + 22: uint16(31643), + 23: uint16(31630), + 24: uint16(31621), + 25: uint16(31640), + 26: uint16(21124), + 27: uint16(31641), + 28: uint16(31652), + 29: uint16(31618), + 30: uint16(31931), + 31: uint16(31935), + 32: uint16(31932), + 33: uint16(31930), + 34: uint16(32167), + 35: uint16(32183), + 36: uint16(32194), + 37: uint16(32163), + 38: uint16(32170), + 39: uint16(32193), + 40: uint16(32192), + 41: uint16(32197), + 42: uint16(32157), + 43: uint16(32206), + 44: uint16(32196), + 45: uint16(32198), + 46: uint16(32203), + 47: uint16(32204), + 48: uint16(32175), + 49: uint16(32185), + 50: uint16(32150), + 51: uint16(32188), + 52: uint16(32159), + 53: uint16(32166), + 54: uint16(32174), + 55: uint16(32169), + 56: uint16(32161), + 57: uint16(32201), + 58: uint16(32627), + 59: uint16(32738), + 60: uint16(32739), + 61: uint16(32741), + 62: uint16(32734), + 63: uint16(32804), + 64: uint16(32861), + 65: uint16(32860), + 66: uint16(33161), + 67: uint16(33158), + 68: uint16(33155), + 69: uint16(33159), + 70: uint16(33165), + 71: uint16(33164), + 72: uint16(33163), + 73: uint16(33301), + 74: uint16(33943), + 75: uint16(33956), + 76: uint16(33953), + 77: uint16(33951), + 78: uint16(33978), + 79: uint16(33998), + 80: uint16(33986), + 81: uint16(33964), + 82: uint16(33966), + 83: uint16(33963), + 84: uint16(33977), + 85: uint16(33972), + 86: uint16(33985), + 87: uint16(33997), + 88: uint16(33962), + 89: uint16(33946), + 90: uint16(33969), + 91: uint16(34000), + 92: uint16(33949), + 93: uint16(33959), + 94: uint16(33979), + 95: uint16(33954), + 96: uint16(33940), + 97: uint16(33991), + 98: uint16(33996), + 99: uint16(33947), + 100: uint16(33961), + 101: uint16(33967), + 102: uint16(33960), + 103: uint16(34006), + 104: uint16(33944), + 105: uint16(33974), + 106: uint16(33999), + 107: uint16(33952), + 108: uint16(34007), + 109: uint16(34004), + 110: uint16(34002), + 111: uint16(34011), + 112: uint16(33968), + 113: uint16(33937), + 114: uint16(34401), + 115: uint16(34611), + 116: uint16(34595), + 117: uint16(34600), + 118: uint16(34667), + 119: uint16(34624), + 120: uint16(34606), + 121: uint16(34590), + 122: uint16(34593), + 123: uint16(34585), + 124: uint16(34587), + 125: uint16(34627), + 126: uint16(34604), + 127: uint16(34625), + 128: uint16(34622), + 129: uint16(34630), + 130: uint16(34592), + 131: uint16(34610), + 132: uint16(34602), + 133: uint16(34605), + 134: uint16(34620), + 135: uint16(34578), + 136: uint16(34618), + 137: uint16(34609), + 138: uint16(34613), + 139: uint16(34626), + 140: uint16(34598), + 141: uint16(34599), + 142: uint16(34616), + 143: uint16(34596), + 144: uint16(34586), + 145: uint16(34608), + 146: uint16(34577), + 147: uint16(35063), + 148: uint16(35047), + 149: uint16(35057), + 150: uint16(35058), + 151: uint16(35066), + 152: uint16(35070), + 153: uint16(35054), + 154: uint16(35068), + 155: uint16(35062), + 156: uint16(35067), + }, + 67: { + 0: uint16(35056), + 1: uint16(35052), + 2: uint16(35051), + 3: uint16(35229), + 4: uint16(35233), + 5: uint16(35231), + 6: uint16(35230), + 7: uint16(35305), + 8: uint16(35307), + 9: uint16(35304), + 10: uint16(35499), + 11: uint16(35481), + 12: uint16(35467), + 13: uint16(35474), + 14: uint16(35471), + 15: uint16(35478), + 16: uint16(35901), + 17: uint16(35944), + 18: uint16(35945), + 19: uint16(36053), + 20: uint16(36047), + 21: uint16(36055), + 22: uint16(36246), + 23: uint16(36361), + 24: uint16(36354), + 25: uint16(36351), + 26: uint16(36365), + 27: uint16(36349), + 28: uint16(36362), + 29: uint16(36355), + 30: uint16(36359), + 31: uint16(36358), + 32: uint16(36357), + 33: uint16(36350), + 34: uint16(36352), + 35: uint16(36356), + 36: uint16(36624), + 37: uint16(36625), + 38: uint16(36622), + 39: uint16(36621), + 40: uint16(37155), + 41: uint16(37148), + 42: uint16(37152), + 43: uint16(37154), + 44: uint16(37151), + 45: uint16(37149), + 46: uint16(37146), + 47: uint16(37156), + 48: uint16(37153), + 49: uint16(37147), + 50: uint16(37242), + 51: uint16(37234), + 52: uint16(37241), + 53: uint16(37235), + 54: uint16(37541), + 55: uint16(37540), + 56: uint16(37494), + 57: uint16(37531), + 58: uint16(37498), + 59: uint16(37536), + 60: uint16(37524), + 61: uint16(37546), + 62: uint16(37517), + 63: uint16(37542), + 64: uint16(37530), + 65: uint16(37547), + 66: uint16(37497), + 67: uint16(37527), + 68: uint16(37503), + 69: uint16(37539), + 70: uint16(37614), + 71: uint16(37518), + 72: uint16(37506), + 73: uint16(37525), + 74: uint16(37538), + 75: uint16(37501), + 76: uint16(37512), + 77: uint16(37537), + 78: uint16(37514), + 79: uint16(37510), + 80: uint16(37516), + 81: uint16(37529), + 82: uint16(37543), + 83: uint16(37502), + 84: uint16(37511), + 85: uint16(37545), + 86: uint16(37533), + 87: uint16(37515), + 88: uint16(37421), + 89: uint16(38558), + 90: uint16(38561), + 91: uint16(38655), + 92: uint16(38744), + 93: uint16(38781), + 94: uint16(38778), + 95: uint16(38782), + 96: uint16(38787), + 97: uint16(38784), + 98: uint16(38786), + 99: uint16(38779), + 100: uint16(38788), + 101: uint16(38785), + 102: uint16(38783), + 103: uint16(38862), + 104: uint16(38861), + 105: uint16(38934), + 106: uint16(39085), + 107: uint16(39086), + 108: uint16(39170), + 109: uint16(39168), + 110: uint16(39175), + 111: uint16(39325), + 112: uint16(39324), + 113: uint16(39363), + 114: uint16(39353), + 115: uint16(39355), + 116: uint16(39354), + 117: uint16(39362), + 118: uint16(39357), + 119: uint16(39367), + 120: uint16(39601), + 121: uint16(39651), + 122: uint16(39655), + 123: uint16(39742), + 124: uint16(39743), + 125: uint16(39776), + 126: uint16(39777), + 127: uint16(39775), + 128: uint16(40177), + 129: uint16(40178), + 130: uint16(40181), + 131: uint16(40615), + 132: uint16(20735), + 133: uint16(20739), + 134: uint16(20784), + 135: uint16(20728), + 136: uint16(20742), + 137: uint16(20743), + 138: uint16(20726), + 139: uint16(20734), + 140: uint16(20747), + 141: uint16(20748), + 142: uint16(20733), + 143: uint16(20746), + 144: uint16(21131), + 145: uint16(21132), + 146: uint16(21233), + 147: uint16(21231), + 148: uint16(22088), + 149: uint16(22082), + 150: uint16(22092), + 151: uint16(22069), + 152: uint16(22081), + 153: uint16(22090), + 154: uint16(22089), + 155: uint16(22086), + 156: uint16(22104), + }, + 68: { + 0: uint16(22106), + 1: uint16(22080), + 2: uint16(22067), + 3: uint16(22077), + 4: uint16(22060), + 5: uint16(22078), + 6: uint16(22072), + 7: uint16(22058), + 8: uint16(22074), + 9: uint16(22298), + 10: uint16(22699), + 11: uint16(22685), + 12: uint16(22705), + 13: uint16(22688), + 14: uint16(22691), + 15: uint16(22703), + 16: uint16(22700), + 17: uint16(22693), + 18: uint16(22689), + 19: uint16(22783), + 20: uint16(23295), + 21: uint16(23284), + 22: uint16(23293), + 23: uint16(23287), + 24: uint16(23286), + 25: uint16(23299), + 26: uint16(23288), + 27: uint16(23298), + 28: uint16(23289), + 29: uint16(23297), + 30: uint16(23303), + 31: uint16(23301), + 32: uint16(23311), + 33: uint16(23655), + 34: uint16(23961), + 35: uint16(23959), + 36: uint16(23967), + 37: uint16(23954), + 38: uint16(23970), + 39: uint16(23955), + 40: uint16(23957), + 41: uint16(23968), + 42: uint16(23964), + 43: uint16(23969), + 44: uint16(23962), + 45: uint16(23966), + 46: uint16(24169), + 47: uint16(24157), + 48: uint16(24160), + 49: uint16(24156), + 50: uint16(32243), + 51: uint16(24283), + 52: uint16(24286), + 53: uint16(24289), + 54: uint16(24393), + 55: uint16(24498), + 56: uint16(24971), + 57: uint16(24963), + 58: uint16(24953), + 59: uint16(25009), + 60: uint16(25008), + 61: uint16(24994), + 62: uint16(24969), + 63: uint16(24987), + 64: uint16(24979), + 65: uint16(25007), + 66: uint16(25005), + 67: uint16(24991), + 68: uint16(24978), + 69: uint16(25002), + 70: uint16(24993), + 71: uint16(24973), + 72: uint16(24934), + 73: uint16(25011), + 74: uint16(25133), + 75: uint16(25710), + 76: uint16(25712), + 77: uint16(25750), + 78: uint16(25760), + 79: uint16(25733), + 80: uint16(25751), + 81: uint16(25756), + 82: uint16(25743), + 83: uint16(25739), + 84: uint16(25738), + 85: uint16(25740), + 86: uint16(25763), + 87: uint16(25759), + 88: uint16(25704), + 89: uint16(25777), + 90: uint16(25752), + 91: uint16(25974), + 92: uint16(25978), + 93: uint16(25977), + 94: uint16(25979), + 95: uint16(26034), + 96: uint16(26035), + 97: uint16(26293), + 98: uint16(26288), + 99: uint16(26281), + 100: uint16(26290), + 101: uint16(26295), + 102: uint16(26282), + 103: uint16(26287), + 104: uint16(27136), + 105: uint16(27142), + 106: uint16(27159), + 107: uint16(27109), + 108: uint16(27128), + 109: uint16(27157), + 110: uint16(27121), + 111: uint16(27108), + 112: uint16(27168), + 113: uint16(27135), + 114: uint16(27116), + 115: uint16(27106), + 116: uint16(27163), + 117: uint16(27165), + 118: uint16(27134), + 119: uint16(27175), + 120: uint16(27122), + 121: uint16(27118), + 122: uint16(27156), + 123: uint16(27127), + 124: uint16(27111), + 125: uint16(27200), + 126: uint16(27144), + 127: uint16(27110), + 128: uint16(27131), + 129: uint16(27149), + 130: uint16(27132), + 131: uint16(27115), + 132: uint16(27145), + 133: uint16(27140), + 134: uint16(27160), + 135: uint16(27173), + 136: uint16(27151), + 137: uint16(27126), + 138: uint16(27174), + 139: uint16(27143), + 140: uint16(27124), + 141: uint16(27158), + 142: uint16(27473), + 143: uint16(27557), + 144: uint16(27555), + 145: uint16(27554), + 146: uint16(27558), + 147: uint16(27649), + 148: uint16(27648), + 149: uint16(27647), + 150: uint16(27650), + 151: uint16(28481), + 152: uint16(28454), + 153: uint16(28542), + 154: uint16(28551), + 155: uint16(28614), + 156: uint16(28562), + }, + 69: { + 0: uint16(28557), + 1: uint16(28553), + 2: uint16(28556), + 3: uint16(28514), + 4: uint16(28495), + 5: uint16(28549), + 6: uint16(28506), + 7: uint16(28566), + 8: uint16(28534), + 9: uint16(28524), + 10: uint16(28546), + 11: uint16(28501), + 12: uint16(28530), + 13: uint16(28498), + 14: uint16(28496), + 15: uint16(28503), + 16: uint16(28564), + 17: uint16(28563), + 18: uint16(28509), + 19: uint16(28416), + 20: uint16(28513), + 21: uint16(28523), + 22: uint16(28541), + 23: uint16(28519), + 24: uint16(28560), + 25: uint16(28499), + 26: uint16(28555), + 27: uint16(28521), + 28: uint16(28543), + 29: uint16(28565), + 30: uint16(28515), + 31: uint16(28535), + 32: uint16(28522), + 33: uint16(28539), + 34: uint16(29106), + 35: uint16(29103), + 36: uint16(29083), + 37: uint16(29104), + 38: uint16(29088), + 39: uint16(29082), + 40: uint16(29097), + 41: uint16(29109), + 42: uint16(29085), + 43: uint16(29093), + 44: uint16(29086), + 45: uint16(29092), + 46: uint16(29089), + 47: uint16(29098), + 48: uint16(29084), + 49: uint16(29095), + 50: uint16(29107), + 51: uint16(29336), + 52: uint16(29338), + 53: uint16(29528), + 54: uint16(29522), + 55: uint16(29534), + 56: uint16(29535), + 57: uint16(29536), + 58: uint16(29533), + 59: uint16(29531), + 60: uint16(29537), + 61: uint16(29530), + 62: uint16(29529), + 63: uint16(29538), + 64: uint16(29831), + 65: uint16(29833), + 66: uint16(29834), + 67: uint16(29830), + 68: uint16(29825), + 69: uint16(29821), + 70: uint16(29829), + 71: uint16(29832), + 72: uint16(29820), + 73: uint16(29817), + 74: uint16(29960), + 75: uint16(29959), + 76: uint16(30078), + 77: uint16(30245), + 78: uint16(30238), + 79: uint16(30233), + 80: uint16(30237), + 81: uint16(30236), + 82: uint16(30243), + 83: uint16(30234), + 84: uint16(30248), + 85: uint16(30235), + 86: uint16(30364), + 87: uint16(30365), + 88: uint16(30366), + 89: uint16(30363), + 90: uint16(30605), + 91: uint16(30607), + 92: uint16(30601), + 93: uint16(30600), + 94: uint16(30925), + 95: uint16(30907), + 96: uint16(30927), + 97: uint16(30924), + 98: uint16(30929), + 99: uint16(30926), + 100: uint16(30932), + 101: uint16(30920), + 102: uint16(30915), + 103: uint16(30916), + 104: uint16(30921), + 105: uint16(31130), + 106: uint16(31137), + 107: uint16(31136), + 108: uint16(31132), + 109: uint16(31138), + 110: uint16(31131), + 111: uint16(27510), + 112: uint16(31289), + 113: uint16(31410), + 114: uint16(31412), + 115: uint16(31411), + 116: uint16(31671), + 117: uint16(31691), + 118: uint16(31678), + 119: uint16(31660), + 120: uint16(31694), + 121: uint16(31663), + 122: uint16(31673), + 123: uint16(31690), + 124: uint16(31669), + 125: uint16(31941), + 126: uint16(31944), + 127: uint16(31948), + 128: uint16(31947), + 129: uint16(32247), + 130: uint16(32219), + 131: uint16(32234), + 132: uint16(32231), + 133: uint16(32215), + 134: uint16(32225), + 135: uint16(32259), + 136: uint16(32250), + 137: uint16(32230), + 138: uint16(32246), + 139: uint16(32241), + 140: uint16(32240), + 141: uint16(32238), + 142: uint16(32223), + 143: uint16(32630), + 144: uint16(32684), + 145: uint16(32688), + 146: uint16(32685), + 147: uint16(32749), + 148: uint16(32747), + 149: uint16(32746), + 150: uint16(32748), + 151: uint16(32742), + 152: uint16(32744), + 153: uint16(32868), + 154: uint16(32871), + 155: uint16(33187), + 156: uint16(33183), + }, + 70: { + 0: uint16(33182), + 1: uint16(33173), + 2: uint16(33186), + 3: uint16(33177), + 4: uint16(33175), + 5: uint16(33302), + 6: uint16(33359), + 7: uint16(33363), + 8: uint16(33362), + 9: uint16(33360), + 10: uint16(33358), + 11: uint16(33361), + 12: uint16(34084), + 13: uint16(34107), + 14: uint16(34063), + 15: uint16(34048), + 16: uint16(34089), + 17: uint16(34062), + 18: uint16(34057), + 19: uint16(34061), + 20: uint16(34079), + 21: uint16(34058), + 22: uint16(34087), + 23: uint16(34076), + 24: uint16(34043), + 25: uint16(34091), + 26: uint16(34042), + 27: uint16(34056), + 28: uint16(34060), + 29: uint16(34036), + 30: uint16(34090), + 31: uint16(34034), + 32: uint16(34069), + 33: uint16(34039), + 34: uint16(34027), + 35: uint16(34035), + 36: uint16(34044), + 37: uint16(34066), + 38: uint16(34026), + 39: uint16(34025), + 40: uint16(34070), + 41: uint16(34046), + 42: uint16(34088), + 43: uint16(34077), + 44: uint16(34094), + 45: uint16(34050), + 46: uint16(34045), + 47: uint16(34078), + 48: uint16(34038), + 49: uint16(34097), + 50: uint16(34086), + 51: uint16(34023), + 52: uint16(34024), + 53: uint16(34032), + 54: uint16(34031), + 55: uint16(34041), + 56: uint16(34072), + 57: uint16(34080), + 58: uint16(34096), + 59: uint16(34059), + 60: uint16(34073), + 61: uint16(34095), + 62: uint16(34402), + 63: uint16(34646), + 64: uint16(34659), + 65: uint16(34660), + 66: uint16(34679), + 67: uint16(34785), + 68: uint16(34675), + 69: uint16(34648), + 70: uint16(34644), + 71: uint16(34651), + 72: uint16(34642), + 73: uint16(34657), + 74: uint16(34650), + 75: uint16(34641), + 76: uint16(34654), + 77: uint16(34669), + 78: uint16(34666), + 79: uint16(34640), + 80: uint16(34638), + 81: uint16(34655), + 82: uint16(34653), + 83: uint16(34671), + 84: uint16(34668), + 85: uint16(34682), + 86: uint16(34670), + 87: uint16(34652), + 88: uint16(34661), + 89: uint16(34639), + 90: uint16(34683), + 91: uint16(34677), + 92: uint16(34658), + 93: uint16(34663), + 94: uint16(34665), + 95: uint16(34906), + 96: uint16(35077), + 97: uint16(35084), + 98: uint16(35092), + 99: uint16(35083), + 100: uint16(35095), + 101: uint16(35096), + 102: uint16(35097), + 103: uint16(35078), + 104: uint16(35094), + 105: uint16(35089), + 106: uint16(35086), + 107: uint16(35081), + 108: uint16(35234), + 109: uint16(35236), + 110: uint16(35235), + 111: uint16(35309), + 112: uint16(35312), + 113: uint16(35308), + 114: uint16(35535), + 115: uint16(35526), + 116: uint16(35512), + 117: uint16(35539), + 118: uint16(35537), + 119: uint16(35540), + 120: uint16(35541), + 121: uint16(35515), + 122: uint16(35543), + 123: uint16(35518), + 124: uint16(35520), + 125: uint16(35525), + 126: uint16(35544), + 127: uint16(35523), + 128: uint16(35514), + 129: uint16(35517), + 130: uint16(35545), + 131: uint16(35902), + 132: uint16(35917), + 133: uint16(35983), + 134: uint16(36069), + 135: uint16(36063), + 136: uint16(36057), + 137: uint16(36072), + 138: uint16(36058), + 139: uint16(36061), + 140: uint16(36071), + 141: uint16(36256), + 142: uint16(36252), + 143: uint16(36257), + 144: uint16(36251), + 145: uint16(36384), + 146: uint16(36387), + 147: uint16(36389), + 148: uint16(36388), + 149: uint16(36398), + 150: uint16(36373), + 151: uint16(36379), + 152: uint16(36374), + 153: uint16(36369), + 154: uint16(36377), + 155: uint16(36390), + 156: uint16(36391), + }, + 71: { + 0: uint16(36372), + 1: uint16(36370), + 2: uint16(36376), + 3: uint16(36371), + 4: uint16(36380), + 5: uint16(36375), + 6: uint16(36378), + 7: uint16(36652), + 8: uint16(36644), + 9: uint16(36632), + 10: uint16(36634), + 11: uint16(36640), + 12: uint16(36643), + 13: uint16(36630), + 14: uint16(36631), + 15: uint16(36979), + 16: uint16(36976), + 17: uint16(36975), + 18: uint16(36967), + 19: uint16(36971), + 20: uint16(37167), + 21: uint16(37163), + 22: uint16(37161), + 23: uint16(37162), + 24: uint16(37170), + 25: uint16(37158), + 26: uint16(37166), + 27: uint16(37253), + 28: uint16(37254), + 29: uint16(37258), + 30: uint16(37249), + 31: uint16(37250), + 32: uint16(37252), + 33: uint16(37248), + 34: uint16(37584), + 35: uint16(37571), + 36: uint16(37572), + 37: uint16(37568), + 38: uint16(37593), + 39: uint16(37558), + 40: uint16(37583), + 41: uint16(37617), + 42: uint16(37599), + 43: uint16(37592), + 44: uint16(37609), + 45: uint16(37591), + 46: uint16(37597), + 47: uint16(37580), + 48: uint16(37615), + 49: uint16(37570), + 50: uint16(37608), + 51: uint16(37578), + 52: uint16(37576), + 53: uint16(37582), + 54: uint16(37606), + 55: uint16(37581), + 56: uint16(37589), + 57: uint16(37577), + 58: uint16(37600), + 59: uint16(37598), + 60: uint16(37607), + 61: uint16(37585), + 62: uint16(37587), + 63: uint16(37557), + 64: uint16(37601), + 65: uint16(37574), + 66: uint16(37556), + 67: uint16(38268), + 68: uint16(38316), + 69: uint16(38315), + 70: uint16(38318), + 71: uint16(38320), + 72: uint16(38564), + 73: uint16(38562), + 74: uint16(38611), + 75: uint16(38661), + 76: uint16(38664), + 77: uint16(38658), + 78: uint16(38746), + 79: uint16(38794), + 80: uint16(38798), + 81: uint16(38792), + 82: uint16(38864), + 83: uint16(38863), + 84: uint16(38942), + 85: uint16(38941), + 86: uint16(38950), + 87: uint16(38953), + 88: uint16(38952), + 89: uint16(38944), + 90: uint16(38939), + 91: uint16(38951), + 92: uint16(39090), + 93: uint16(39176), + 94: uint16(39162), + 95: uint16(39185), + 96: uint16(39188), + 97: uint16(39190), + 98: uint16(39191), + 99: uint16(39189), + 100: uint16(39388), + 101: uint16(39373), + 102: uint16(39375), + 103: uint16(39379), + 104: uint16(39380), + 105: uint16(39374), + 106: uint16(39369), + 107: uint16(39382), + 108: uint16(39384), + 109: uint16(39371), + 110: uint16(39383), + 111: uint16(39372), + 112: uint16(39603), + 113: uint16(39660), + 114: uint16(39659), + 115: uint16(39667), + 116: uint16(39666), + 117: uint16(39665), + 118: uint16(39750), + 119: uint16(39747), + 120: uint16(39783), + 121: uint16(39796), + 122: uint16(39793), + 123: uint16(39782), + 124: uint16(39798), + 125: uint16(39797), + 126: uint16(39792), + 127: uint16(39784), + 128: uint16(39780), + 129: uint16(39788), + 130: uint16(40188), + 131: uint16(40186), + 132: uint16(40189), + 133: uint16(40191), + 134: uint16(40183), + 135: uint16(40199), + 136: uint16(40192), + 137: uint16(40185), + 138: uint16(40187), + 139: uint16(40200), + 140: uint16(40197), + 141: uint16(40196), + 142: uint16(40579), + 143: uint16(40659), + 144: uint16(40719), + 145: uint16(40720), + 146: uint16(20764), + 147: uint16(20755), + 148: uint16(20759), + 149: uint16(20762), + 150: uint16(20753), + 151: uint16(20958), + 152: uint16(21300), + 153: uint16(21473), + 154: uint16(22128), + 155: uint16(22112), + 156: uint16(22126), + }, + 72: { + 0: uint16(22131), + 1: uint16(22118), + 2: uint16(22115), + 3: uint16(22125), + 4: uint16(22130), + 5: uint16(22110), + 6: uint16(22135), + 7: uint16(22300), + 8: uint16(22299), + 9: uint16(22728), + 10: uint16(22717), + 11: uint16(22729), + 12: uint16(22719), + 13: uint16(22714), + 14: uint16(22722), + 15: uint16(22716), + 16: uint16(22726), + 17: uint16(23319), + 18: uint16(23321), + 19: uint16(23323), + 20: uint16(23329), + 21: uint16(23316), + 22: uint16(23315), + 23: uint16(23312), + 24: uint16(23318), + 25: uint16(23336), + 26: uint16(23322), + 27: uint16(23328), + 28: uint16(23326), + 29: uint16(23535), + 30: uint16(23980), + 31: uint16(23985), + 32: uint16(23977), + 33: uint16(23975), + 34: uint16(23989), + 35: uint16(23984), + 36: uint16(23982), + 37: uint16(23978), + 38: uint16(23976), + 39: uint16(23986), + 40: uint16(23981), + 41: uint16(23983), + 42: uint16(23988), + 43: uint16(24167), + 44: uint16(24168), + 45: uint16(24166), + 46: uint16(24175), + 47: uint16(24297), + 48: uint16(24295), + 49: uint16(24294), + 50: uint16(24296), + 51: uint16(24293), + 52: uint16(24395), + 53: uint16(24508), + 54: uint16(24989), + 55: uint16(25000), + 56: uint16(24982), + 57: uint16(25029), + 58: uint16(25012), + 59: uint16(25030), + 60: uint16(25025), + 61: uint16(25036), + 62: uint16(25018), + 63: uint16(25023), + 64: uint16(25016), + 65: uint16(24972), + 66: uint16(25815), + 67: uint16(25814), + 68: uint16(25808), + 69: uint16(25807), + 70: uint16(25801), + 71: uint16(25789), + 72: uint16(25737), + 73: uint16(25795), + 74: uint16(25819), + 75: uint16(25843), + 76: uint16(25817), + 77: uint16(25907), + 78: uint16(25983), + 79: uint16(25980), + 80: uint16(26018), + 81: uint16(26312), + 82: uint16(26302), + 83: uint16(26304), + 84: uint16(26314), + 85: uint16(26315), + 86: uint16(26319), + 87: uint16(26301), + 88: uint16(26299), + 89: uint16(26298), + 90: uint16(26316), + 91: uint16(26403), + 92: uint16(27188), + 93: uint16(27238), + 94: uint16(27209), + 95: uint16(27239), + 96: uint16(27186), + 97: uint16(27240), + 98: uint16(27198), + 99: uint16(27229), + 100: uint16(27245), + 101: uint16(27254), + 102: uint16(27227), + 103: uint16(27217), + 104: uint16(27176), + 105: uint16(27226), + 106: uint16(27195), + 107: uint16(27199), + 108: uint16(27201), + 109: uint16(27242), + 110: uint16(27236), + 111: uint16(27216), + 112: uint16(27215), + 113: uint16(27220), + 114: uint16(27247), + 115: uint16(27241), + 116: uint16(27232), + 117: uint16(27196), + 118: uint16(27230), + 119: uint16(27222), + 120: uint16(27221), + 121: uint16(27213), + 122: uint16(27214), + 123: uint16(27206), + 124: uint16(27477), + 125: uint16(27476), + 126: uint16(27478), + 127: uint16(27559), + 128: uint16(27562), + 129: uint16(27563), + 130: uint16(27592), + 131: uint16(27591), + 132: uint16(27652), + 133: uint16(27651), + 134: uint16(27654), + 135: uint16(28589), + 136: uint16(28619), + 137: uint16(28579), + 138: uint16(28615), + 139: uint16(28604), + 140: uint16(28622), + 141: uint16(28616), + 142: uint16(28510), + 143: uint16(28612), + 144: uint16(28605), + 145: uint16(28574), + 146: uint16(28618), + 147: uint16(28584), + 148: uint16(28676), + 149: uint16(28581), + 150: uint16(28590), + 151: uint16(28602), + 152: uint16(28588), + 153: uint16(28586), + 154: uint16(28623), + 155: uint16(28607), + 156: uint16(28600), + }, + 73: { + 0: uint16(28578), + 1: uint16(28617), + 2: uint16(28587), + 3: uint16(28621), + 4: uint16(28591), + 5: uint16(28594), + 6: uint16(28592), + 7: uint16(29125), + 8: uint16(29122), + 9: uint16(29119), + 10: uint16(29112), + 11: uint16(29142), + 12: uint16(29120), + 13: uint16(29121), + 14: uint16(29131), + 15: uint16(29140), + 16: uint16(29130), + 17: uint16(29127), + 18: uint16(29135), + 19: uint16(29117), + 20: uint16(29144), + 21: uint16(29116), + 22: uint16(29126), + 23: uint16(29146), + 24: uint16(29147), + 25: uint16(29341), + 26: uint16(29342), + 27: uint16(29545), + 28: uint16(29542), + 29: uint16(29543), + 30: uint16(29548), + 31: uint16(29541), + 32: uint16(29547), + 33: uint16(29546), + 34: uint16(29823), + 35: uint16(29850), + 36: uint16(29856), + 37: uint16(29844), + 38: uint16(29842), + 39: uint16(29845), + 40: uint16(29857), + 41: uint16(29963), + 42: uint16(30080), + 43: uint16(30255), + 44: uint16(30253), + 45: uint16(30257), + 46: uint16(30269), + 47: uint16(30259), + 48: uint16(30268), + 49: uint16(30261), + 50: uint16(30258), + 51: uint16(30256), + 52: uint16(30395), + 53: uint16(30438), + 54: uint16(30618), + 55: uint16(30621), + 56: uint16(30625), + 57: uint16(30620), + 58: uint16(30619), + 59: uint16(30626), + 60: uint16(30627), + 61: uint16(30613), + 62: uint16(30617), + 63: uint16(30615), + 64: uint16(30941), + 65: uint16(30953), + 66: uint16(30949), + 67: uint16(30954), + 68: uint16(30942), + 69: uint16(30947), + 70: uint16(30939), + 71: uint16(30945), + 72: uint16(30946), + 73: uint16(30957), + 74: uint16(30943), + 75: uint16(30944), + 76: uint16(31140), + 77: uint16(31300), + 78: uint16(31304), + 79: uint16(31303), + 80: uint16(31414), + 81: uint16(31416), + 82: uint16(31413), + 83: uint16(31409), + 84: uint16(31415), + 85: uint16(31710), + 86: uint16(31715), + 87: uint16(31719), + 88: uint16(31709), + 89: uint16(31701), + 90: uint16(31717), + 91: uint16(31706), + 92: uint16(31720), + 93: uint16(31737), + 94: uint16(31700), + 95: uint16(31722), + 96: uint16(31714), + 97: uint16(31708), + 98: uint16(31723), + 99: uint16(31704), + 100: uint16(31711), + 101: uint16(31954), + 102: uint16(31956), + 103: uint16(31959), + 104: uint16(31952), + 105: uint16(31953), + 106: uint16(32274), + 107: uint16(32289), + 108: uint16(32279), + 109: uint16(32268), + 110: uint16(32287), + 111: uint16(32288), + 112: uint16(32275), + 113: uint16(32270), + 114: uint16(32284), + 115: uint16(32277), + 116: uint16(32282), + 117: uint16(32290), + 118: uint16(32267), + 119: uint16(32271), + 120: uint16(32278), + 121: uint16(32269), + 122: uint16(32276), + 123: uint16(32293), + 124: uint16(32292), + 125: uint16(32579), + 126: uint16(32635), + 127: uint16(32636), + 128: uint16(32634), + 129: uint16(32689), + 130: uint16(32751), + 131: uint16(32810), + 132: uint16(32809), + 133: uint16(32876), + 134: uint16(33201), + 135: uint16(33190), + 136: uint16(33198), + 137: uint16(33209), + 138: uint16(33205), + 139: uint16(33195), + 140: uint16(33200), + 141: uint16(33196), + 142: uint16(33204), + 143: uint16(33202), + 144: uint16(33207), + 145: uint16(33191), + 146: uint16(33266), + 147: uint16(33365), + 148: uint16(33366), + 149: uint16(33367), + 150: uint16(34134), + 151: uint16(34117), + 152: uint16(34155), + 153: uint16(34125), + 154: uint16(34131), + 155: uint16(34145), + 156: uint16(34136), + }, + 74: { + 0: uint16(34112), + 1: uint16(34118), + 2: uint16(34148), + 3: uint16(34113), + 4: uint16(34146), + 5: uint16(34116), + 6: uint16(34129), + 7: uint16(34119), + 8: uint16(34147), + 9: uint16(34110), + 10: uint16(34139), + 11: uint16(34161), + 12: uint16(34126), + 13: uint16(34158), + 14: uint16(34165), + 15: uint16(34133), + 16: uint16(34151), + 17: uint16(34144), + 18: uint16(34188), + 19: uint16(34150), + 20: uint16(34141), + 21: uint16(34132), + 22: uint16(34149), + 23: uint16(34156), + 24: uint16(34403), + 25: uint16(34405), + 26: uint16(34404), + 27: uint16(34715), + 28: uint16(34703), + 29: uint16(34711), + 30: uint16(34707), + 31: uint16(34706), + 32: uint16(34696), + 33: uint16(34689), + 34: uint16(34710), + 35: uint16(34712), + 36: uint16(34681), + 37: uint16(34695), + 38: uint16(34723), + 39: uint16(34693), + 40: uint16(34704), + 41: uint16(34705), + 42: uint16(34717), + 43: uint16(34692), + 44: uint16(34708), + 45: uint16(34716), + 46: uint16(34714), + 47: uint16(34697), + 48: uint16(35102), + 49: uint16(35110), + 50: uint16(35120), + 51: uint16(35117), + 52: uint16(35118), + 53: uint16(35111), + 54: uint16(35121), + 55: uint16(35106), + 56: uint16(35113), + 57: uint16(35107), + 58: uint16(35119), + 59: uint16(35116), + 60: uint16(35103), + 61: uint16(35313), + 62: uint16(35552), + 63: uint16(35554), + 64: uint16(35570), + 65: uint16(35572), + 66: uint16(35573), + 67: uint16(35549), + 68: uint16(35604), + 69: uint16(35556), + 70: uint16(35551), + 71: uint16(35568), + 72: uint16(35528), + 73: uint16(35550), + 74: uint16(35553), + 75: uint16(35560), + 76: uint16(35583), + 77: uint16(35567), + 78: uint16(35579), + 79: uint16(35985), + 80: uint16(35986), + 81: uint16(35984), + 82: uint16(36085), + 83: uint16(36078), + 84: uint16(36081), + 85: uint16(36080), + 86: uint16(36083), + 87: uint16(36204), + 88: uint16(36206), + 89: uint16(36261), + 90: uint16(36263), + 91: uint16(36403), + 92: uint16(36414), + 93: uint16(36408), + 94: uint16(36416), + 95: uint16(36421), + 96: uint16(36406), + 97: uint16(36412), + 98: uint16(36413), + 99: uint16(36417), + 100: uint16(36400), + 101: uint16(36415), + 102: uint16(36541), + 103: uint16(36662), + 104: uint16(36654), + 105: uint16(36661), + 106: uint16(36658), + 107: uint16(36665), + 108: uint16(36663), + 109: uint16(36660), + 110: uint16(36982), + 111: uint16(36985), + 112: uint16(36987), + 113: uint16(36998), + 114: uint16(37114), + 115: uint16(37171), + 116: uint16(37173), + 117: uint16(37174), + 118: uint16(37267), + 119: uint16(37264), + 120: uint16(37265), + 121: uint16(37261), + 122: uint16(37263), + 123: uint16(37671), + 124: uint16(37662), + 125: uint16(37640), + 126: uint16(37663), + 127: uint16(37638), + 128: uint16(37647), + 129: uint16(37754), + 130: uint16(37688), + 131: uint16(37692), + 132: uint16(37659), + 133: uint16(37667), + 134: uint16(37650), + 135: uint16(37633), + 136: uint16(37702), + 137: uint16(37677), + 138: uint16(37646), + 139: uint16(37645), + 140: uint16(37579), + 141: uint16(37661), + 142: uint16(37626), + 143: uint16(37669), + 144: uint16(37651), + 145: uint16(37625), + 146: uint16(37623), + 147: uint16(37684), + 148: uint16(37634), + 149: uint16(37668), + 150: uint16(37631), + 151: uint16(37673), + 152: uint16(37689), + 153: uint16(37685), + 154: uint16(37674), + 155: uint16(37652), + 156: uint16(37644), + }, + 75: { + 0: uint16(37643), + 1: uint16(37630), + 2: uint16(37641), + 3: uint16(37632), + 4: uint16(37627), + 5: uint16(37654), + 6: uint16(38332), + 7: uint16(38349), + 8: uint16(38334), + 9: uint16(38329), + 10: uint16(38330), + 11: uint16(38326), + 12: uint16(38335), + 13: uint16(38325), + 14: uint16(38333), + 15: uint16(38569), + 16: uint16(38612), + 17: uint16(38667), + 18: uint16(38674), + 19: uint16(38672), + 20: uint16(38809), + 21: uint16(38807), + 22: uint16(38804), + 23: uint16(38896), + 24: uint16(38904), + 25: uint16(38965), + 26: uint16(38959), + 27: uint16(38962), + 28: uint16(39204), + 29: uint16(39199), + 30: uint16(39207), + 31: uint16(39209), + 32: uint16(39326), + 33: uint16(39406), + 34: uint16(39404), + 35: uint16(39397), + 36: uint16(39396), + 37: uint16(39408), + 38: uint16(39395), + 39: uint16(39402), + 40: uint16(39401), + 41: uint16(39399), + 42: uint16(39609), + 43: uint16(39615), + 44: uint16(39604), + 45: uint16(39611), + 46: uint16(39670), + 47: uint16(39674), + 48: uint16(39673), + 49: uint16(39671), + 50: uint16(39731), + 51: uint16(39808), + 52: uint16(39813), + 53: uint16(39815), + 54: uint16(39804), + 55: uint16(39806), + 56: uint16(39803), + 57: uint16(39810), + 58: uint16(39827), + 59: uint16(39826), + 60: uint16(39824), + 61: uint16(39802), + 62: uint16(39829), + 63: uint16(39805), + 64: uint16(39816), + 65: uint16(40229), + 66: uint16(40215), + 67: uint16(40224), + 68: uint16(40222), + 69: uint16(40212), + 70: uint16(40233), + 71: uint16(40221), + 72: uint16(40216), + 73: uint16(40226), + 74: uint16(40208), + 75: uint16(40217), + 76: uint16(40223), + 77: uint16(40584), + 78: uint16(40582), + 79: uint16(40583), + 80: uint16(40622), + 81: uint16(40621), + 82: uint16(40661), + 83: uint16(40662), + 84: uint16(40698), + 85: uint16(40722), + 86: uint16(40765), + 87: uint16(20774), + 88: uint16(20773), + 89: uint16(20770), + 90: uint16(20772), + 91: uint16(20768), + 92: uint16(20777), + 93: uint16(21236), + 94: uint16(22163), + 95: uint16(22156), + 96: uint16(22157), + 97: uint16(22150), + 98: uint16(22148), + 99: uint16(22147), + 100: uint16(22142), + 101: uint16(22146), + 102: uint16(22143), + 103: uint16(22145), + 104: uint16(22742), + 105: uint16(22740), + 106: uint16(22735), + 107: uint16(22738), + 108: uint16(23341), + 109: uint16(23333), + 110: uint16(23346), + 111: uint16(23331), + 112: uint16(23340), + 113: uint16(23335), + 114: uint16(23334), + 115: uint16(23343), + 116: uint16(23342), + 117: uint16(23419), + 118: uint16(23537), + 119: uint16(23538), + 120: uint16(23991), + 121: uint16(24172), + 122: uint16(24170), + 123: uint16(24510), + 124: uint16(24507), + 125: uint16(25027), + 126: uint16(25013), + 127: uint16(25020), + 128: uint16(25063), + 129: uint16(25056), + 130: uint16(25061), + 131: uint16(25060), + 132: uint16(25064), + 133: uint16(25054), + 134: uint16(25839), + 135: uint16(25833), + 136: uint16(25827), + 137: uint16(25835), + 138: uint16(25828), + 139: uint16(25832), + 140: uint16(25985), + 141: uint16(25984), + 142: uint16(26038), + 143: uint16(26074), + 144: uint16(26322), + 145: uint16(27277), + 146: uint16(27286), + 147: uint16(27265), + 148: uint16(27301), + 149: uint16(27273), + 150: uint16(27295), + 151: uint16(27291), + 152: uint16(27297), + 153: uint16(27294), + 154: uint16(27271), + 155: uint16(27283), + 156: uint16(27278), + }, + 76: { + 0: uint16(27285), + 1: uint16(27267), + 2: uint16(27304), + 3: uint16(27300), + 4: uint16(27281), + 5: uint16(27263), + 6: uint16(27302), + 7: uint16(27290), + 8: uint16(27269), + 9: uint16(27276), + 10: uint16(27282), + 11: uint16(27483), + 12: uint16(27565), + 13: uint16(27657), + 14: uint16(28620), + 15: uint16(28585), + 16: uint16(28660), + 17: uint16(28628), + 18: uint16(28643), + 19: uint16(28636), + 20: uint16(28653), + 21: uint16(28647), + 22: uint16(28646), + 23: uint16(28638), + 24: uint16(28658), + 25: uint16(28637), + 26: uint16(28642), + 27: uint16(28648), + 28: uint16(29153), + 29: uint16(29169), + 30: uint16(29160), + 31: uint16(29170), + 32: uint16(29156), + 33: uint16(29168), + 34: uint16(29154), + 35: uint16(29555), + 36: uint16(29550), + 37: uint16(29551), + 38: uint16(29847), + 39: uint16(29874), + 40: uint16(29867), + 41: uint16(29840), + 42: uint16(29866), + 43: uint16(29869), + 44: uint16(29873), + 45: uint16(29861), + 46: uint16(29871), + 47: uint16(29968), + 48: uint16(29969), + 49: uint16(29970), + 50: uint16(29967), + 51: uint16(30084), + 52: uint16(30275), + 53: uint16(30280), + 54: uint16(30281), + 55: uint16(30279), + 56: uint16(30372), + 57: uint16(30441), + 58: uint16(30645), + 59: uint16(30635), + 60: uint16(30642), + 61: uint16(30647), + 62: uint16(30646), + 63: uint16(30644), + 64: uint16(30641), + 65: uint16(30632), + 66: uint16(30704), + 67: uint16(30963), + 68: uint16(30973), + 69: uint16(30978), + 70: uint16(30971), + 71: uint16(30972), + 72: uint16(30962), + 73: uint16(30981), + 74: uint16(30969), + 75: uint16(30974), + 76: uint16(30980), + 77: uint16(31147), + 78: uint16(31144), + 79: uint16(31324), + 80: uint16(31323), + 81: uint16(31318), + 82: uint16(31320), + 83: uint16(31316), + 84: uint16(31322), + 85: uint16(31422), + 86: uint16(31424), + 87: uint16(31425), + 88: uint16(31749), + 89: uint16(31759), + 90: uint16(31730), + 91: uint16(31744), + 92: uint16(31743), + 93: uint16(31739), + 94: uint16(31758), + 95: uint16(31732), + 96: uint16(31755), + 97: uint16(31731), + 98: uint16(31746), + 99: uint16(31753), + 100: uint16(31747), + 101: uint16(31745), + 102: uint16(31736), + 103: uint16(31741), + 104: uint16(31750), + 105: uint16(31728), + 106: uint16(31729), + 107: uint16(31760), + 108: uint16(31754), + 109: uint16(31976), + 110: uint16(32301), + 111: uint16(32316), + 112: uint16(32322), + 113: uint16(32307), + 114: uint16(38984), + 115: uint16(32312), + 116: uint16(32298), + 117: uint16(32329), + 118: uint16(32320), + 119: uint16(32327), + 120: uint16(32297), + 121: uint16(32332), + 122: uint16(32304), + 123: uint16(32315), + 124: uint16(32310), + 125: uint16(32324), + 126: uint16(32314), + 127: uint16(32581), + 128: uint16(32639), + 129: uint16(32638), + 130: uint16(32637), + 131: uint16(32756), + 132: uint16(32754), + 133: uint16(32812), + 134: uint16(33211), + 135: uint16(33220), + 136: uint16(33228), + 137: uint16(33226), + 138: uint16(33221), + 139: uint16(33223), + 140: uint16(33212), + 141: uint16(33257), + 142: uint16(33371), + 143: uint16(33370), + 144: uint16(33372), + 145: uint16(34179), + 146: uint16(34176), + 147: uint16(34191), + 148: uint16(34215), + 149: uint16(34197), + 150: uint16(34208), + 151: uint16(34187), + 152: uint16(34211), + 153: uint16(34171), + 154: uint16(34212), + 155: uint16(34202), + 156: uint16(34206), + }, + 77: { + 0: uint16(34167), + 1: uint16(34172), + 2: uint16(34185), + 3: uint16(34209), + 4: uint16(34170), + 5: uint16(34168), + 6: uint16(34135), + 7: uint16(34190), + 8: uint16(34198), + 9: uint16(34182), + 10: uint16(34189), + 11: uint16(34201), + 12: uint16(34205), + 13: uint16(34177), + 14: uint16(34210), + 15: uint16(34178), + 16: uint16(34184), + 17: uint16(34181), + 18: uint16(34169), + 19: uint16(34166), + 20: uint16(34200), + 21: uint16(34192), + 22: uint16(34207), + 23: uint16(34408), + 24: uint16(34750), + 25: uint16(34730), + 26: uint16(34733), + 27: uint16(34757), + 28: uint16(34736), + 29: uint16(34732), + 30: uint16(34745), + 31: uint16(34741), + 32: uint16(34748), + 33: uint16(34734), + 34: uint16(34761), + 35: uint16(34755), + 36: uint16(34754), + 37: uint16(34764), + 38: uint16(34743), + 39: uint16(34735), + 40: uint16(34756), + 41: uint16(34762), + 42: uint16(34740), + 43: uint16(34742), + 44: uint16(34751), + 45: uint16(34744), + 46: uint16(34749), + 47: uint16(34782), + 48: uint16(34738), + 49: uint16(35125), + 50: uint16(35123), + 51: uint16(35132), + 52: uint16(35134), + 53: uint16(35137), + 54: uint16(35154), + 55: uint16(35127), + 56: uint16(35138), + 57: uint16(35245), + 58: uint16(35247), + 59: uint16(35246), + 60: uint16(35314), + 61: uint16(35315), + 62: uint16(35614), + 63: uint16(35608), + 64: uint16(35606), + 65: uint16(35601), + 66: uint16(35589), + 67: uint16(35595), + 68: uint16(35618), + 69: uint16(35599), + 70: uint16(35602), + 71: uint16(35605), + 72: uint16(35591), + 73: uint16(35597), + 74: uint16(35592), + 75: uint16(35590), + 76: uint16(35612), + 77: uint16(35603), + 78: uint16(35610), + 79: uint16(35919), + 80: uint16(35952), + 81: uint16(35954), + 82: uint16(35953), + 83: uint16(35951), + 84: uint16(35989), + 85: uint16(35988), + 86: uint16(36089), + 87: uint16(36207), + 88: uint16(36430), + 89: uint16(36429), + 90: uint16(36435), + 91: uint16(36432), + 92: uint16(36428), + 93: uint16(36423), + 94: uint16(36675), + 95: uint16(36672), + 96: uint16(36997), + 97: uint16(36990), + 98: uint16(37176), + 99: uint16(37274), + 100: uint16(37282), + 101: uint16(37275), + 102: uint16(37273), + 103: uint16(37279), + 104: uint16(37281), + 105: uint16(37277), + 106: uint16(37280), + 107: uint16(37793), + 108: uint16(37763), + 109: uint16(37807), + 110: uint16(37732), + 111: uint16(37718), + 112: uint16(37703), + 113: uint16(37756), + 114: uint16(37720), + 115: uint16(37724), + 116: uint16(37750), + 117: uint16(37705), + 118: uint16(37712), + 119: uint16(37713), + 120: uint16(37728), + 121: uint16(37741), + 122: uint16(37775), + 123: uint16(37708), + 124: uint16(37738), + 125: uint16(37753), + 126: uint16(37719), + 127: uint16(37717), + 128: uint16(37714), + 129: uint16(37711), + 130: uint16(37745), + 131: uint16(37751), + 132: uint16(37755), + 133: uint16(37729), + 134: uint16(37726), + 135: uint16(37731), + 136: uint16(37735), + 137: uint16(37760), + 138: uint16(37710), + 139: uint16(37721), + 140: uint16(38343), + 141: uint16(38336), + 142: uint16(38345), + 143: uint16(38339), + 144: uint16(38341), + 145: uint16(38327), + 146: uint16(38574), + 147: uint16(38576), + 148: uint16(38572), + 149: uint16(38688), + 150: uint16(38687), + 151: uint16(38680), + 152: uint16(38685), + 153: uint16(38681), + 154: uint16(38810), + 155: uint16(38817), + 156: uint16(38812), + }, + 78: { + 0: uint16(38814), + 1: uint16(38813), + 2: uint16(38869), + 3: uint16(38868), + 4: uint16(38897), + 5: uint16(38977), + 6: uint16(38980), + 7: uint16(38986), + 8: uint16(38985), + 9: uint16(38981), + 10: uint16(38979), + 11: uint16(39205), + 12: uint16(39211), + 13: uint16(39212), + 14: uint16(39210), + 15: uint16(39219), + 16: uint16(39218), + 17: uint16(39215), + 18: uint16(39213), + 19: uint16(39217), + 20: uint16(39216), + 21: uint16(39320), + 22: uint16(39331), + 23: uint16(39329), + 24: uint16(39426), + 25: uint16(39418), + 26: uint16(39412), + 27: uint16(39415), + 28: uint16(39417), + 29: uint16(39416), + 30: uint16(39414), + 31: uint16(39419), + 32: uint16(39421), + 33: uint16(39422), + 34: uint16(39420), + 35: uint16(39427), + 36: uint16(39614), + 37: uint16(39678), + 38: uint16(39677), + 39: uint16(39681), + 40: uint16(39676), + 41: uint16(39752), + 42: uint16(39834), + 43: uint16(39848), + 44: uint16(39838), + 45: uint16(39835), + 46: uint16(39846), + 47: uint16(39841), + 48: uint16(39845), + 49: uint16(39844), + 50: uint16(39814), + 51: uint16(39842), + 52: uint16(39840), + 53: uint16(39855), + 54: uint16(40243), + 55: uint16(40257), + 56: uint16(40295), + 57: uint16(40246), + 58: uint16(40238), + 59: uint16(40239), + 60: uint16(40241), + 61: uint16(40248), + 62: uint16(40240), + 63: uint16(40261), + 64: uint16(40258), + 65: uint16(40259), + 66: uint16(40254), + 67: uint16(40247), + 68: uint16(40256), + 69: uint16(40253), + 70: uint16(32757), + 71: uint16(40237), + 72: uint16(40586), + 73: uint16(40585), + 74: uint16(40589), + 75: uint16(40624), + 76: uint16(40648), + 77: uint16(40666), + 78: uint16(40699), + 79: uint16(40703), + 80: uint16(40740), + 81: uint16(40739), + 82: uint16(40738), + 83: uint16(40788), + 84: uint16(40864), + 85: uint16(20785), + 86: uint16(20781), + 87: uint16(20782), + 88: uint16(22168), + 89: uint16(22172), + 90: uint16(22167), + 91: uint16(22170), + 92: uint16(22173), + 93: uint16(22169), + 94: uint16(22896), + 95: uint16(23356), + 96: uint16(23657), + 97: uint16(23658), + 98: uint16(24000), + 99: uint16(24173), + 100: uint16(24174), + 101: uint16(25048), + 102: uint16(25055), + 103: uint16(25069), + 104: uint16(25070), + 105: uint16(25073), + 106: uint16(25066), + 107: uint16(25072), + 108: uint16(25067), + 109: uint16(25046), + 110: uint16(25065), + 111: uint16(25855), + 112: uint16(25860), + 113: uint16(25853), + 114: uint16(25848), + 115: uint16(25857), + 116: uint16(25859), + 117: uint16(25852), + 118: uint16(26004), + 119: uint16(26075), + 120: uint16(26330), + 121: uint16(26331), + 122: uint16(26328), + 123: uint16(27333), + 124: uint16(27321), + 125: uint16(27325), + 126: uint16(27361), + 127: uint16(27334), + 128: uint16(27322), + 129: uint16(27318), + 130: uint16(27319), + 131: uint16(27335), + 132: uint16(27316), + 133: uint16(27309), + 134: uint16(27486), + 135: uint16(27593), + 136: uint16(27659), + 137: uint16(28679), + 138: uint16(28684), + 139: uint16(28685), + 140: uint16(28673), + 141: uint16(28677), + 142: uint16(28692), + 143: uint16(28686), + 144: uint16(28671), + 145: uint16(28672), + 146: uint16(28667), + 147: uint16(28710), + 148: uint16(28668), + 149: uint16(28663), + 150: uint16(28682), + 151: uint16(29185), + 152: uint16(29183), + 153: uint16(29177), + 154: uint16(29187), + 155: uint16(29181), + 156: uint16(29558), + }, + 79: { + 0: uint16(29880), + 1: uint16(29888), + 2: uint16(29877), + 3: uint16(29889), + 4: uint16(29886), + 5: uint16(29878), + 6: uint16(29883), + 7: uint16(29890), + 8: uint16(29972), + 9: uint16(29971), + 10: uint16(30300), + 11: uint16(30308), + 12: uint16(30297), + 13: uint16(30288), + 14: uint16(30291), + 15: uint16(30295), + 16: uint16(30298), + 17: uint16(30374), + 18: uint16(30397), + 19: uint16(30444), + 20: uint16(30658), + 21: uint16(30650), + 22: uint16(30975), + 23: uint16(30988), + 24: uint16(30995), + 25: uint16(30996), + 26: uint16(30985), + 27: uint16(30992), + 28: uint16(30994), + 29: uint16(30993), + 30: uint16(31149), + 31: uint16(31148), + 32: uint16(31327), + 33: uint16(31772), + 34: uint16(31785), + 35: uint16(31769), + 36: uint16(31776), + 37: uint16(31775), + 38: uint16(31789), + 39: uint16(31773), + 40: uint16(31782), + 41: uint16(31784), + 42: uint16(31778), + 43: uint16(31781), + 44: uint16(31792), + 45: uint16(32348), + 46: uint16(32336), + 47: uint16(32342), + 48: uint16(32355), + 49: uint16(32344), + 50: uint16(32354), + 51: uint16(32351), + 52: uint16(32337), + 53: uint16(32352), + 54: uint16(32343), + 55: uint16(32339), + 56: uint16(32693), + 57: uint16(32691), + 58: uint16(32759), + 59: uint16(32760), + 60: uint16(32885), + 61: uint16(33233), + 62: uint16(33234), + 63: uint16(33232), + 64: uint16(33375), + 65: uint16(33374), + 66: uint16(34228), + 67: uint16(34246), + 68: uint16(34240), + 69: uint16(34243), + 70: uint16(34242), + 71: uint16(34227), + 72: uint16(34229), + 73: uint16(34237), + 74: uint16(34247), + 75: uint16(34244), + 76: uint16(34239), + 77: uint16(34251), + 78: uint16(34254), + 79: uint16(34248), + 80: uint16(34245), + 81: uint16(34225), + 82: uint16(34230), + 83: uint16(34258), + 84: uint16(34340), + 85: uint16(34232), + 86: uint16(34231), + 87: uint16(34238), + 88: uint16(34409), + 89: uint16(34791), + 90: uint16(34790), + 91: uint16(34786), + 92: uint16(34779), + 93: uint16(34795), + 94: uint16(34794), + 95: uint16(34789), + 96: uint16(34783), + 97: uint16(34803), + 98: uint16(34788), + 99: uint16(34772), + 100: uint16(34780), + 101: uint16(34771), + 102: uint16(34797), + 103: uint16(34776), + 104: uint16(34787), + 105: uint16(34724), + 106: uint16(34775), + 107: uint16(34777), + 108: uint16(34817), + 109: uint16(34804), + 110: uint16(34792), + 111: uint16(34781), + 112: uint16(35155), + 113: uint16(35147), + 114: uint16(35151), + 115: uint16(35148), + 116: uint16(35142), + 117: uint16(35152), + 118: uint16(35153), + 119: uint16(35145), + 120: uint16(35626), + 121: uint16(35623), + 122: uint16(35619), + 123: uint16(35635), + 124: uint16(35632), + 125: uint16(35637), + 126: uint16(35655), + 127: uint16(35631), + 128: uint16(35644), + 129: uint16(35646), + 130: uint16(35633), + 131: uint16(35621), + 132: uint16(35639), + 133: uint16(35622), + 134: uint16(35638), + 135: uint16(35630), + 136: uint16(35620), + 137: uint16(35643), + 138: uint16(35645), + 139: uint16(35642), + 140: uint16(35906), + 141: uint16(35957), + 142: uint16(35993), + 143: uint16(35992), + 144: uint16(35991), + 145: uint16(36094), + 146: uint16(36100), + 147: uint16(36098), + 148: uint16(36096), + 149: uint16(36444), + 150: uint16(36450), + 151: uint16(36448), + 152: uint16(36439), + 153: uint16(36438), + 154: uint16(36446), + 155: uint16(36453), + 156: uint16(36455), + }, + 80: { + 0: uint16(36443), + 1: uint16(36442), + 2: uint16(36449), + 3: uint16(36445), + 4: uint16(36457), + 5: uint16(36436), + 6: uint16(36678), + 7: uint16(36679), + 8: uint16(36680), + 9: uint16(36683), + 10: uint16(37160), + 11: uint16(37178), + 12: uint16(37179), + 13: uint16(37182), + 14: uint16(37288), + 15: uint16(37285), + 16: uint16(37287), + 17: uint16(37295), + 18: uint16(37290), + 19: uint16(37813), + 20: uint16(37772), + 21: uint16(37778), + 22: uint16(37815), + 23: uint16(37787), + 24: uint16(37789), + 25: uint16(37769), + 26: uint16(37799), + 27: uint16(37774), + 28: uint16(37802), + 29: uint16(37790), + 30: uint16(37798), + 31: uint16(37781), + 32: uint16(37768), + 33: uint16(37785), + 34: uint16(37791), + 35: uint16(37773), + 36: uint16(37809), + 37: uint16(37777), + 38: uint16(37810), + 39: uint16(37796), + 40: uint16(37800), + 41: uint16(37812), + 42: uint16(37795), + 43: uint16(37797), + 44: uint16(38354), + 45: uint16(38355), + 46: uint16(38353), + 47: uint16(38579), + 48: uint16(38615), + 49: uint16(38618), + 50: uint16(24002), + 51: uint16(38623), + 52: uint16(38616), + 53: uint16(38621), + 54: uint16(38691), + 55: uint16(38690), + 56: uint16(38693), + 57: uint16(38828), + 58: uint16(38830), + 59: uint16(38824), + 60: uint16(38827), + 61: uint16(38820), + 62: uint16(38826), + 63: uint16(38818), + 64: uint16(38821), + 65: uint16(38871), + 66: uint16(38873), + 67: uint16(38870), + 68: uint16(38872), + 69: uint16(38906), + 70: uint16(38992), + 71: uint16(38993), + 72: uint16(38994), + 73: uint16(39096), + 74: uint16(39233), + 75: uint16(39228), + 76: uint16(39226), + 77: uint16(39439), + 78: uint16(39435), + 79: uint16(39433), + 80: uint16(39437), + 81: uint16(39428), + 82: uint16(39441), + 83: uint16(39434), + 84: uint16(39429), + 85: uint16(39431), + 86: uint16(39430), + 87: uint16(39616), + 88: uint16(39644), + 89: uint16(39688), + 90: uint16(39684), + 91: uint16(39685), + 92: uint16(39721), + 93: uint16(39733), + 94: uint16(39754), + 95: uint16(39756), + 96: uint16(39755), + 97: uint16(39879), + 98: uint16(39878), + 99: uint16(39875), + 100: uint16(39871), + 101: uint16(39873), + 102: uint16(39861), + 103: uint16(39864), + 104: uint16(39891), + 105: uint16(39862), + 106: uint16(39876), + 107: uint16(39865), + 108: uint16(39869), + 109: uint16(40284), + 110: uint16(40275), + 111: uint16(40271), + 112: uint16(40266), + 113: uint16(40283), + 114: uint16(40267), + 115: uint16(40281), + 116: uint16(40278), + 117: uint16(40268), + 118: uint16(40279), + 119: uint16(40274), + 120: uint16(40276), + 121: uint16(40287), + 122: uint16(40280), + 123: uint16(40282), + 124: uint16(40590), + 125: uint16(40588), + 126: uint16(40671), + 127: uint16(40705), + 128: uint16(40704), + 129: uint16(40726), + 130: uint16(40741), + 131: uint16(40747), + 132: uint16(40746), + 133: uint16(40745), + 134: uint16(40744), + 135: uint16(40780), + 136: uint16(40789), + 137: uint16(20788), + 138: uint16(20789), + 139: uint16(21142), + 140: uint16(21239), + 141: uint16(21428), + 142: uint16(22187), + 143: uint16(22189), + 144: uint16(22182), + 145: uint16(22183), + 146: uint16(22186), + 147: uint16(22188), + 148: uint16(22746), + 149: uint16(22749), + 150: uint16(22747), + 151: uint16(22802), + 152: uint16(23357), + 153: uint16(23358), + 154: uint16(23359), + 155: uint16(24003), + 156: uint16(24176), + }, + 81: { + 0: uint16(24511), + 1: uint16(25083), + 2: uint16(25863), + 3: uint16(25872), + 4: uint16(25869), + 5: uint16(25865), + 6: uint16(25868), + 7: uint16(25870), + 8: uint16(25988), + 9: uint16(26078), + 10: uint16(26077), + 11: uint16(26334), + 12: uint16(27367), + 13: uint16(27360), + 14: uint16(27340), + 15: uint16(27345), + 16: uint16(27353), + 17: uint16(27339), + 18: uint16(27359), + 19: uint16(27356), + 20: uint16(27344), + 21: uint16(27371), + 22: uint16(27343), + 23: uint16(27341), + 24: uint16(27358), + 25: uint16(27488), + 26: uint16(27568), + 27: uint16(27660), + 28: uint16(28697), + 29: uint16(28711), + 30: uint16(28704), + 31: uint16(28694), + 32: uint16(28715), + 33: uint16(28705), + 34: uint16(28706), + 35: uint16(28707), + 36: uint16(28713), + 37: uint16(28695), + 38: uint16(28708), + 39: uint16(28700), + 40: uint16(28714), + 41: uint16(29196), + 42: uint16(29194), + 43: uint16(29191), + 44: uint16(29186), + 45: uint16(29189), + 46: uint16(29349), + 47: uint16(29350), + 48: uint16(29348), + 49: uint16(29347), + 50: uint16(29345), + 51: uint16(29899), + 52: uint16(29893), + 53: uint16(29879), + 54: uint16(29891), + 55: uint16(29974), + 56: uint16(30304), + 57: uint16(30665), + 58: uint16(30666), + 59: uint16(30660), + 60: uint16(30705), + 61: uint16(31005), + 62: uint16(31003), + 63: uint16(31009), + 64: uint16(31004), + 65: uint16(30999), + 66: uint16(31006), + 67: uint16(31152), + 68: uint16(31335), + 69: uint16(31336), + 70: uint16(31795), + 71: uint16(31804), + 72: uint16(31801), + 73: uint16(31788), + 74: uint16(31803), + 75: uint16(31980), + 76: uint16(31978), + 77: uint16(32374), + 78: uint16(32373), + 79: uint16(32376), + 80: uint16(32368), + 81: uint16(32375), + 82: uint16(32367), + 83: uint16(32378), + 84: uint16(32370), + 85: uint16(32372), + 86: uint16(32360), + 87: uint16(32587), + 88: uint16(32586), + 89: uint16(32643), + 90: uint16(32646), + 91: uint16(32695), + 92: uint16(32765), + 93: uint16(32766), + 94: uint16(32888), + 95: uint16(33239), + 96: uint16(33237), + 97: uint16(33380), + 98: uint16(33377), + 99: uint16(33379), + 100: uint16(34283), + 101: uint16(34289), + 102: uint16(34285), + 103: uint16(34265), + 104: uint16(34273), + 105: uint16(34280), + 106: uint16(34266), + 107: uint16(34263), + 108: uint16(34284), + 109: uint16(34290), + 110: uint16(34296), + 111: uint16(34264), + 112: uint16(34271), + 113: uint16(34275), + 114: uint16(34268), + 115: uint16(34257), + 116: uint16(34288), + 117: uint16(34278), + 118: uint16(34287), + 119: uint16(34270), + 120: uint16(34274), + 121: uint16(34816), + 122: uint16(34810), + 123: uint16(34819), + 124: uint16(34806), + 125: uint16(34807), + 126: uint16(34825), + 127: uint16(34828), + 128: uint16(34827), + 129: uint16(34822), + 130: uint16(34812), + 131: uint16(34824), + 132: uint16(34815), + 133: uint16(34826), + 134: uint16(34818), + 135: uint16(35170), + 136: uint16(35162), + 137: uint16(35163), + 138: uint16(35159), + 139: uint16(35169), + 140: uint16(35164), + 141: uint16(35160), + 142: uint16(35165), + 143: uint16(35161), + 144: uint16(35208), + 145: uint16(35255), + 146: uint16(35254), + 147: uint16(35318), + 148: uint16(35664), + 149: uint16(35656), + 150: uint16(35658), + 151: uint16(35648), + 152: uint16(35667), + 153: uint16(35670), + 154: uint16(35668), + 155: uint16(35659), + 156: uint16(35669), + }, + 82: { + 0: uint16(35665), + 1: uint16(35650), + 2: uint16(35666), + 3: uint16(35671), + 4: uint16(35907), + 5: uint16(35959), + 6: uint16(35958), + 7: uint16(35994), + 8: uint16(36102), + 9: uint16(36103), + 10: uint16(36105), + 11: uint16(36268), + 12: uint16(36266), + 13: uint16(36269), + 14: uint16(36267), + 15: uint16(36461), + 16: uint16(36472), + 17: uint16(36467), + 18: uint16(36458), + 19: uint16(36463), + 20: uint16(36475), + 21: uint16(36546), + 22: uint16(36690), + 23: uint16(36689), + 24: uint16(36687), + 25: uint16(36688), + 26: uint16(36691), + 27: uint16(36788), + 28: uint16(37184), + 29: uint16(37183), + 30: uint16(37296), + 31: uint16(37293), + 32: uint16(37854), + 33: uint16(37831), + 34: uint16(37839), + 35: uint16(37826), + 36: uint16(37850), + 37: uint16(37840), + 38: uint16(37881), + 39: uint16(37868), + 40: uint16(37836), + 41: uint16(37849), + 42: uint16(37801), + 43: uint16(37862), + 44: uint16(37834), + 45: uint16(37844), + 46: uint16(37870), + 47: uint16(37859), + 48: uint16(37845), + 49: uint16(37828), + 50: uint16(37838), + 51: uint16(37824), + 52: uint16(37842), + 53: uint16(37863), + 54: uint16(38269), + 55: uint16(38362), + 56: uint16(38363), + 57: uint16(38625), + 58: uint16(38697), + 59: uint16(38699), + 60: uint16(38700), + 61: uint16(38696), + 62: uint16(38694), + 63: uint16(38835), + 64: uint16(38839), + 65: uint16(38838), + 66: uint16(38877), + 67: uint16(38878), + 68: uint16(38879), + 69: uint16(39004), + 70: uint16(39001), + 71: uint16(39005), + 72: uint16(38999), + 73: uint16(39103), + 74: uint16(39101), + 75: uint16(39099), + 76: uint16(39102), + 77: uint16(39240), + 78: uint16(39239), + 79: uint16(39235), + 80: uint16(39334), + 81: uint16(39335), + 82: uint16(39450), + 83: uint16(39445), + 84: uint16(39461), + 85: uint16(39453), + 86: uint16(39460), + 87: uint16(39451), + 88: uint16(39458), + 89: uint16(39456), + 90: uint16(39463), + 91: uint16(39459), + 92: uint16(39454), + 93: uint16(39452), + 94: uint16(39444), + 95: uint16(39618), + 96: uint16(39691), + 97: uint16(39690), + 98: uint16(39694), + 99: uint16(39692), + 100: uint16(39735), + 101: uint16(39914), + 102: uint16(39915), + 103: uint16(39904), + 104: uint16(39902), + 105: uint16(39908), + 106: uint16(39910), + 107: uint16(39906), + 108: uint16(39920), + 109: uint16(39892), + 110: uint16(39895), + 111: uint16(39916), + 112: uint16(39900), + 113: uint16(39897), + 114: uint16(39909), + 115: uint16(39893), + 116: uint16(39905), + 117: uint16(39898), + 118: uint16(40311), + 119: uint16(40321), + 120: uint16(40330), + 121: uint16(40324), + 122: uint16(40328), + 123: uint16(40305), + 124: uint16(40320), + 125: uint16(40312), + 126: uint16(40326), + 127: uint16(40331), + 128: uint16(40332), + 129: uint16(40317), + 130: uint16(40299), + 131: uint16(40308), + 132: uint16(40309), + 133: uint16(40304), + 134: uint16(40297), + 135: uint16(40325), + 136: uint16(40307), + 137: uint16(40315), + 138: uint16(40322), + 139: uint16(40303), + 140: uint16(40313), + 141: uint16(40319), + 142: uint16(40327), + 143: uint16(40296), + 144: uint16(40596), + 145: uint16(40593), + 146: uint16(40640), + 147: uint16(40700), + 148: uint16(40749), + 149: uint16(40768), + 150: uint16(40769), + 151: uint16(40781), + 152: uint16(40790), + 153: uint16(40791), + 154: uint16(40792), + 155: uint16(21303), + 156: uint16(22194), + }, + 83: { + 0: uint16(22197), + 1: uint16(22195), + 2: uint16(22755), + 3: uint16(23365), + 4: uint16(24006), + 5: uint16(24007), + 6: uint16(24302), + 7: uint16(24303), + 8: uint16(24512), + 9: uint16(24513), + 10: uint16(25081), + 11: uint16(25879), + 12: uint16(25878), + 13: uint16(25877), + 14: uint16(25875), + 15: uint16(26079), + 16: uint16(26344), + 17: uint16(26339), + 18: uint16(26340), + 19: uint16(27379), + 20: uint16(27376), + 21: uint16(27370), + 22: uint16(27368), + 23: uint16(27385), + 24: uint16(27377), + 25: uint16(27374), + 26: uint16(27375), + 27: uint16(28732), + 28: uint16(28725), + 29: uint16(28719), + 30: uint16(28727), + 31: uint16(28724), + 32: uint16(28721), + 33: uint16(28738), + 34: uint16(28728), + 35: uint16(28735), + 36: uint16(28730), + 37: uint16(28729), + 38: uint16(28736), + 39: uint16(28731), + 40: uint16(28723), + 41: uint16(28737), + 42: uint16(29203), + 43: uint16(29204), + 44: uint16(29352), + 45: uint16(29565), + 46: uint16(29564), + 47: uint16(29882), + 48: uint16(30379), + 49: uint16(30378), + 50: uint16(30398), + 51: uint16(30445), + 52: uint16(30668), + 53: uint16(30670), + 54: uint16(30671), + 55: uint16(30669), + 56: uint16(30706), + 57: uint16(31013), + 58: uint16(31011), + 59: uint16(31015), + 60: uint16(31016), + 61: uint16(31012), + 62: uint16(31017), + 63: uint16(31154), + 64: uint16(31342), + 65: uint16(31340), + 66: uint16(31341), + 67: uint16(31479), + 68: uint16(31817), + 69: uint16(31816), + 70: uint16(31818), + 71: uint16(31815), + 72: uint16(31813), + 73: uint16(31982), + 74: uint16(32379), + 75: uint16(32382), + 76: uint16(32385), + 77: uint16(32384), + 78: uint16(32698), + 79: uint16(32767), + 80: uint16(32889), + 81: uint16(33243), + 82: uint16(33241), + 83: uint16(33291), + 84: uint16(33384), + 85: uint16(33385), + 86: uint16(34338), + 87: uint16(34303), + 88: uint16(34305), + 89: uint16(34302), + 90: uint16(34331), + 91: uint16(34304), + 92: uint16(34294), + 93: uint16(34308), + 94: uint16(34313), + 95: uint16(34309), + 96: uint16(34316), + 97: uint16(34301), + 98: uint16(34841), + 99: uint16(34832), + 100: uint16(34833), + 101: uint16(34839), + 102: uint16(34835), + 103: uint16(34838), + 104: uint16(35171), + 105: uint16(35174), + 106: uint16(35257), + 107: uint16(35319), + 108: uint16(35680), + 109: uint16(35690), + 110: uint16(35677), + 111: uint16(35688), + 112: uint16(35683), + 113: uint16(35685), + 114: uint16(35687), + 115: uint16(35693), + 116: uint16(36270), + 117: uint16(36486), + 118: uint16(36488), + 119: uint16(36484), + 120: uint16(36697), + 121: uint16(36694), + 122: uint16(36695), + 123: uint16(36693), + 124: uint16(36696), + 125: uint16(36698), + 126: uint16(37005), + 127: uint16(37187), + 128: uint16(37185), + 129: uint16(37303), + 130: uint16(37301), + 131: uint16(37298), + 132: uint16(37299), + 133: uint16(37899), + 134: uint16(37907), + 135: uint16(37883), + 136: uint16(37920), + 137: uint16(37903), + 138: uint16(37908), + 139: uint16(37886), + 140: uint16(37909), + 141: uint16(37904), + 142: uint16(37928), + 143: uint16(37913), + 144: uint16(37901), + 145: uint16(37877), + 146: uint16(37888), + 147: uint16(37879), + 148: uint16(37895), + 149: uint16(37902), + 150: uint16(37910), + 151: uint16(37906), + 152: uint16(37882), + 153: uint16(37897), + 154: uint16(37880), + 155: uint16(37898), + 156: uint16(37887), + }, + 84: { + 0: uint16(37884), + 1: uint16(37900), + 2: uint16(37878), + 3: uint16(37905), + 4: uint16(37894), + 5: uint16(38366), + 6: uint16(38368), + 7: uint16(38367), + 8: uint16(38702), + 9: uint16(38703), + 10: uint16(38841), + 11: uint16(38843), + 12: uint16(38909), + 13: uint16(38910), + 14: uint16(39008), + 15: uint16(39010), + 16: uint16(39011), + 17: uint16(39007), + 18: uint16(39105), + 19: uint16(39106), + 20: uint16(39248), + 21: uint16(39246), + 22: uint16(39257), + 23: uint16(39244), + 24: uint16(39243), + 25: uint16(39251), + 26: uint16(39474), + 27: uint16(39476), + 28: uint16(39473), + 29: uint16(39468), + 30: uint16(39466), + 31: uint16(39478), + 32: uint16(39465), + 33: uint16(39470), + 34: uint16(39480), + 35: uint16(39469), + 36: uint16(39623), + 37: uint16(39626), + 38: uint16(39622), + 39: uint16(39696), + 40: uint16(39698), + 41: uint16(39697), + 42: uint16(39947), + 43: uint16(39944), + 44: uint16(39927), + 45: uint16(39941), + 46: uint16(39954), + 47: uint16(39928), + 48: uint16(40000), + 49: uint16(39943), + 50: uint16(39950), + 51: uint16(39942), + 52: uint16(39959), + 53: uint16(39956), + 54: uint16(39945), + 55: uint16(40351), + 56: uint16(40345), + 57: uint16(40356), + 58: uint16(40349), + 59: uint16(40338), + 60: uint16(40344), + 61: uint16(40336), + 62: uint16(40347), + 63: uint16(40352), + 64: uint16(40340), + 65: uint16(40348), + 66: uint16(40362), + 67: uint16(40343), + 68: uint16(40353), + 69: uint16(40346), + 70: uint16(40354), + 71: uint16(40360), + 72: uint16(40350), + 73: uint16(40355), + 74: uint16(40383), + 75: uint16(40361), + 76: uint16(40342), + 77: uint16(40358), + 78: uint16(40359), + 79: uint16(40601), + 80: uint16(40603), + 81: uint16(40602), + 82: uint16(40677), + 83: uint16(40676), + 84: uint16(40679), + 85: uint16(40678), + 86: uint16(40752), + 87: uint16(40750), + 88: uint16(40795), + 89: uint16(40800), + 90: uint16(40798), + 91: uint16(40797), + 92: uint16(40793), + 93: uint16(40849), + 94: uint16(20794), + 95: uint16(20793), + 96: uint16(21144), + 97: uint16(21143), + 98: uint16(22211), + 99: uint16(22205), + 100: uint16(22206), + 101: uint16(23368), + 102: uint16(23367), + 103: uint16(24011), + 104: uint16(24015), + 105: uint16(24305), + 106: uint16(25085), + 107: uint16(25883), + 108: uint16(27394), + 109: uint16(27388), + 110: uint16(27395), + 111: uint16(27384), + 112: uint16(27392), + 113: uint16(28739), + 114: uint16(28740), + 115: uint16(28746), + 116: uint16(28744), + 117: uint16(28745), + 118: uint16(28741), + 119: uint16(28742), + 120: uint16(29213), + 121: uint16(29210), + 122: uint16(29209), + 123: uint16(29566), + 124: uint16(29975), + 125: uint16(30314), + 126: uint16(30672), + 127: uint16(31021), + 128: uint16(31025), + 129: uint16(31023), + 130: uint16(31828), + 131: uint16(31827), + 132: uint16(31986), + 133: uint16(32394), + 134: uint16(32391), + 135: uint16(32392), + 136: uint16(32395), + 137: uint16(32390), + 138: uint16(32397), + 139: uint16(32589), + 140: uint16(32699), + 141: uint16(32816), + 142: uint16(33245), + 143: uint16(34328), + 144: uint16(34346), + 145: uint16(34342), + 146: uint16(34335), + 147: uint16(34339), + 148: uint16(34332), + 149: uint16(34329), + 150: uint16(34343), + 151: uint16(34350), + 152: uint16(34337), + 153: uint16(34336), + 154: uint16(34345), + 155: uint16(34334), + 156: uint16(34341), + }, + 85: { + 0: uint16(34857), + 1: uint16(34845), + 2: uint16(34843), + 3: uint16(34848), + 4: uint16(34852), + 5: uint16(34844), + 6: uint16(34859), + 7: uint16(34890), + 8: uint16(35181), + 9: uint16(35177), + 10: uint16(35182), + 11: uint16(35179), + 12: uint16(35322), + 13: uint16(35705), + 14: uint16(35704), + 15: uint16(35653), + 16: uint16(35706), + 17: uint16(35707), + 18: uint16(36112), + 19: uint16(36116), + 20: uint16(36271), + 21: uint16(36494), + 22: uint16(36492), + 23: uint16(36702), + 24: uint16(36699), + 25: uint16(36701), + 26: uint16(37190), + 27: uint16(37188), + 28: uint16(37189), + 29: uint16(37305), + 30: uint16(37951), + 31: uint16(37947), + 32: uint16(37942), + 33: uint16(37929), + 34: uint16(37949), + 35: uint16(37948), + 36: uint16(37936), + 37: uint16(37945), + 38: uint16(37930), + 39: uint16(37943), + 40: uint16(37932), + 41: uint16(37952), + 42: uint16(37937), + 43: uint16(38373), + 44: uint16(38372), + 45: uint16(38371), + 46: uint16(38709), + 47: uint16(38714), + 48: uint16(38847), + 49: uint16(38881), + 50: uint16(39012), + 51: uint16(39113), + 52: uint16(39110), + 53: uint16(39104), + 54: uint16(39256), + 55: uint16(39254), + 56: uint16(39481), + 57: uint16(39485), + 58: uint16(39494), + 59: uint16(39492), + 60: uint16(39490), + 61: uint16(39489), + 62: uint16(39482), + 63: uint16(39487), + 64: uint16(39629), + 65: uint16(39701), + 66: uint16(39703), + 67: uint16(39704), + 68: uint16(39702), + 69: uint16(39738), + 70: uint16(39762), + 71: uint16(39979), + 72: uint16(39965), + 73: uint16(39964), + 74: uint16(39980), + 75: uint16(39971), + 76: uint16(39976), + 77: uint16(39977), + 78: uint16(39972), + 79: uint16(39969), + 80: uint16(40375), + 81: uint16(40374), + 82: uint16(40380), + 83: uint16(40385), + 84: uint16(40391), + 85: uint16(40394), + 86: uint16(40399), + 87: uint16(40382), + 88: uint16(40389), + 89: uint16(40387), + 90: uint16(40379), + 91: uint16(40373), + 92: uint16(40398), + 93: uint16(40377), + 94: uint16(40378), + 95: uint16(40364), + 96: uint16(40392), + 97: uint16(40369), + 98: uint16(40365), + 99: uint16(40396), + 100: uint16(40371), + 101: uint16(40397), + 102: uint16(40370), + 103: uint16(40570), + 104: uint16(40604), + 105: uint16(40683), + 106: uint16(40686), + 107: uint16(40685), + 108: uint16(40731), + 109: uint16(40728), + 110: uint16(40730), + 111: uint16(40753), + 112: uint16(40782), + 113: uint16(40805), + 114: uint16(40804), + 115: uint16(40850), + 116: uint16(20153), + 117: uint16(22214), + 118: uint16(22213), + 119: uint16(22219), + 120: uint16(22897), + 121: uint16(23371), + 122: uint16(23372), + 123: uint16(24021), + 124: uint16(24017), + 125: uint16(24306), + 126: uint16(25889), + 127: uint16(25888), + 128: uint16(25894), + 129: uint16(25890), + 130: uint16(27403), + 131: uint16(27400), + 132: uint16(27401), + 133: uint16(27661), + 134: uint16(28757), + 135: uint16(28758), + 136: uint16(28759), + 137: uint16(28754), + 138: uint16(29214), + 139: uint16(29215), + 140: uint16(29353), + 141: uint16(29567), + 142: uint16(29912), + 143: uint16(29909), + 144: uint16(29913), + 145: uint16(29911), + 146: uint16(30317), + 147: uint16(30381), + 148: uint16(31029), + 149: uint16(31156), + 150: uint16(31344), + 151: uint16(31345), + 152: uint16(31831), + 153: uint16(31836), + 154: uint16(31833), + 155: uint16(31835), + 156: uint16(31834), + }, + 86: { + 0: uint16(31988), + 1: uint16(31985), + 2: uint16(32401), + 3: uint16(32591), + 4: uint16(32647), + 5: uint16(33246), + 6: uint16(33387), + 7: uint16(34356), + 8: uint16(34357), + 9: uint16(34355), + 10: uint16(34348), + 11: uint16(34354), + 12: uint16(34358), + 13: uint16(34860), + 14: uint16(34856), + 15: uint16(34854), + 16: uint16(34858), + 17: uint16(34853), + 18: uint16(35185), + 19: uint16(35263), + 20: uint16(35262), + 21: uint16(35323), + 22: uint16(35710), + 23: uint16(35716), + 24: uint16(35714), + 25: uint16(35718), + 26: uint16(35717), + 27: uint16(35711), + 28: uint16(36117), + 29: uint16(36501), + 30: uint16(36500), + 31: uint16(36506), + 32: uint16(36498), + 33: uint16(36496), + 34: uint16(36502), + 35: uint16(36503), + 36: uint16(36704), + 37: uint16(36706), + 38: uint16(37191), + 39: uint16(37964), + 40: uint16(37968), + 41: uint16(37962), + 42: uint16(37963), + 43: uint16(37967), + 44: uint16(37959), + 45: uint16(37957), + 46: uint16(37960), + 47: uint16(37961), + 48: uint16(37958), + 49: uint16(38719), + 50: uint16(38883), + 51: uint16(39018), + 52: uint16(39017), + 53: uint16(39115), + 54: uint16(39252), + 55: uint16(39259), + 56: uint16(39502), + 57: uint16(39507), + 58: uint16(39508), + 59: uint16(39500), + 60: uint16(39503), + 61: uint16(39496), + 62: uint16(39498), + 63: uint16(39497), + 64: uint16(39506), + 65: uint16(39504), + 66: uint16(39632), + 67: uint16(39705), + 68: uint16(39723), + 69: uint16(39739), + 70: uint16(39766), + 71: uint16(39765), + 72: uint16(40006), + 73: uint16(40008), + 74: uint16(39999), + 75: uint16(40004), + 76: uint16(39993), + 77: uint16(39987), + 78: uint16(40001), + 79: uint16(39996), + 80: uint16(39991), + 81: uint16(39988), + 82: uint16(39986), + 83: uint16(39997), + 84: uint16(39990), + 85: uint16(40411), + 86: uint16(40402), + 87: uint16(40414), + 88: uint16(40410), + 89: uint16(40395), + 90: uint16(40400), + 91: uint16(40412), + 92: uint16(40401), + 93: uint16(40415), + 94: uint16(40425), + 95: uint16(40409), + 96: uint16(40408), + 97: uint16(40406), + 98: uint16(40437), + 99: uint16(40405), + 100: uint16(40413), + 101: uint16(40630), + 102: uint16(40688), + 103: uint16(40757), + 104: uint16(40755), + 105: uint16(40754), + 106: uint16(40770), + 107: uint16(40811), + 108: uint16(40853), + 109: uint16(40866), + 110: uint16(20797), + 111: uint16(21145), + 112: uint16(22760), + 113: uint16(22759), + 114: uint16(22898), + 115: uint16(23373), + 116: uint16(24024), + 117: uint16(34863), + 118: uint16(24399), + 119: uint16(25089), + 120: uint16(25091), + 121: uint16(25092), + 122: uint16(25897), + 123: uint16(25893), + 124: uint16(26006), + 125: uint16(26347), + 126: uint16(27409), + 127: uint16(27410), + 128: uint16(27407), + 129: uint16(27594), + 130: uint16(28763), + 131: uint16(28762), + 132: uint16(29218), + 133: uint16(29570), + 134: uint16(29569), + 135: uint16(29571), + 136: uint16(30320), + 137: uint16(30676), + 138: uint16(31847), + 139: uint16(31846), + 140: uint16(32405), + 141: uint16(33388), + 142: uint16(34362), + 143: uint16(34368), + 144: uint16(34361), + 145: uint16(34364), + 146: uint16(34353), + 147: uint16(34363), + 148: uint16(34366), + 149: uint16(34864), + 150: uint16(34866), + 151: uint16(34862), + 152: uint16(34867), + 153: uint16(35190), + 154: uint16(35188), + 155: uint16(35187), + 156: uint16(35326), + }, + 87: { + 0: uint16(35724), + 1: uint16(35726), + 2: uint16(35723), + 3: uint16(35720), + 4: uint16(35909), + 5: uint16(36121), + 6: uint16(36504), + 7: uint16(36708), + 8: uint16(36707), + 9: uint16(37308), + 10: uint16(37986), + 11: uint16(37973), + 12: uint16(37981), + 13: uint16(37975), + 14: uint16(37982), + 15: uint16(38852), + 16: uint16(38853), + 17: uint16(38912), + 18: uint16(39510), + 19: uint16(39513), + 20: uint16(39710), + 21: uint16(39711), + 22: uint16(39712), + 23: uint16(40018), + 24: uint16(40024), + 25: uint16(40016), + 26: uint16(40010), + 27: uint16(40013), + 28: uint16(40011), + 29: uint16(40021), + 30: uint16(40025), + 31: uint16(40012), + 32: uint16(40014), + 33: uint16(40443), + 34: uint16(40439), + 35: uint16(40431), + 36: uint16(40419), + 37: uint16(40427), + 38: uint16(40440), + 39: uint16(40420), + 40: uint16(40438), + 41: uint16(40417), + 42: uint16(40430), + 43: uint16(40422), + 44: uint16(40434), + 45: uint16(40432), + 46: uint16(40418), + 47: uint16(40428), + 48: uint16(40436), + 49: uint16(40435), + 50: uint16(40424), + 51: uint16(40429), + 52: uint16(40642), + 53: uint16(40656), + 54: uint16(40690), + 55: uint16(40691), + 56: uint16(40710), + 57: uint16(40732), + 58: uint16(40760), + 59: uint16(40759), + 60: uint16(40758), + 61: uint16(40771), + 62: uint16(40783), + 63: uint16(40817), + 64: uint16(40816), + 65: uint16(40814), + 66: uint16(40815), + 67: uint16(22227), + 68: uint16(22221), + 69: uint16(23374), + 70: uint16(23661), + 71: uint16(25901), + 72: uint16(26349), + 73: uint16(26350), + 74: uint16(27411), + 75: uint16(28767), + 76: uint16(28769), + 77: uint16(28765), + 78: uint16(28768), + 79: uint16(29219), + 80: uint16(29915), + 81: uint16(29925), + 82: uint16(30677), + 83: uint16(31032), + 84: uint16(31159), + 85: uint16(31158), + 86: uint16(31850), + 87: uint16(32407), + 88: uint16(32649), + 89: uint16(33389), + 90: uint16(34371), + 91: uint16(34872), + 92: uint16(34871), + 93: uint16(34869), + 94: uint16(34891), + 95: uint16(35732), + 96: uint16(35733), + 97: uint16(36510), + 98: uint16(36511), + 99: uint16(36512), + 100: uint16(36509), + 101: uint16(37310), + 102: uint16(37309), + 103: uint16(37314), + 104: uint16(37995), + 105: uint16(37992), + 106: uint16(37993), + 107: uint16(38629), + 108: uint16(38726), + 109: uint16(38723), + 110: uint16(38727), + 111: uint16(38855), + 112: uint16(38885), + 113: uint16(39518), + 114: uint16(39637), + 115: uint16(39769), + 116: uint16(40035), + 117: uint16(40039), + 118: uint16(40038), + 119: uint16(40034), + 120: uint16(40030), + 121: uint16(40032), + 122: uint16(40450), + 123: uint16(40446), + 124: uint16(40455), + 125: uint16(40451), + 126: uint16(40454), + 127: uint16(40453), + 128: uint16(40448), + 129: uint16(40449), + 130: uint16(40457), + 131: uint16(40447), + 132: uint16(40445), + 133: uint16(40452), + 134: uint16(40608), + 135: uint16(40734), + 136: uint16(40774), + 137: uint16(40820), + 138: uint16(40821), + 139: uint16(40822), + 140: uint16(22228), + 141: uint16(25902), + 142: uint16(26040), + 143: uint16(27416), + 144: uint16(27417), + 145: uint16(27415), + 146: uint16(27418), + 147: uint16(28770), + 148: uint16(29222), + 149: uint16(29354), + 150: uint16(30680), + 151: uint16(30681), + 152: uint16(31033), + 153: uint16(31849), + 154: uint16(31851), + 155: uint16(31990), + 156: uint16(32410), + }, + 88: { + 0: uint16(32408), + 1: uint16(32411), + 2: uint16(32409), + 3: uint16(33248), + 4: uint16(33249), + 5: uint16(34374), + 6: uint16(34375), + 7: uint16(34376), + 8: uint16(35193), + 9: uint16(35194), + 10: uint16(35196), + 11: uint16(35195), + 12: uint16(35327), + 13: uint16(35736), + 14: uint16(35737), + 15: uint16(36517), + 16: uint16(36516), + 17: uint16(36515), + 18: uint16(37998), + 19: uint16(37997), + 20: uint16(37999), + 21: uint16(38001), + 22: uint16(38003), + 23: uint16(38729), + 24: uint16(39026), + 25: uint16(39263), + 26: uint16(40040), + 27: uint16(40046), + 28: uint16(40045), + 29: uint16(40459), + 30: uint16(40461), + 31: uint16(40464), + 32: uint16(40463), + 33: uint16(40466), + 34: uint16(40465), + 35: uint16(40609), + 36: uint16(40693), + 37: uint16(40713), + 38: uint16(40775), + 39: uint16(40824), + 40: uint16(40827), + 41: uint16(40826), + 42: uint16(40825), + 43: uint16(22302), + 44: uint16(28774), + 45: uint16(31855), + 46: uint16(34876), + 47: uint16(36274), + 48: uint16(36518), + 49: uint16(37315), + 50: uint16(38004), + 51: uint16(38008), + 52: uint16(38006), + 53: uint16(38005), + 54: uint16(39520), + 55: uint16(40052), + 56: uint16(40051), + 57: uint16(40049), + 58: uint16(40053), + 59: uint16(40468), + 60: uint16(40467), + 61: uint16(40694), + 62: uint16(40714), + 63: uint16(40868), + 64: uint16(28776), + 65: uint16(28773), + 66: uint16(31991), + 67: uint16(34410), + 68: uint16(34878), + 69: uint16(34877), + 70: uint16(34879), + 71: uint16(35742), + 72: uint16(35996), + 73: uint16(36521), + 74: uint16(36553), + 75: uint16(38731), + 76: uint16(39027), + 77: uint16(39028), + 78: uint16(39116), + 79: uint16(39265), + 80: uint16(39339), + 81: uint16(39524), + 82: uint16(39526), + 83: uint16(39527), + 84: uint16(39716), + 85: uint16(40469), + 86: uint16(40471), + 87: uint16(40776), + 88: uint16(25095), + 89: uint16(27422), + 90: uint16(29223), + 91: uint16(34380), + 92: uint16(36520), + 93: uint16(38018), + 94: uint16(38016), + 95: uint16(38017), + 96: uint16(39529), + 97: uint16(39528), + 98: uint16(39726), + 99: uint16(40473), + 100: uint16(29225), + 101: uint16(34379), + 102: uint16(35743), + 103: uint16(38019), + 104: uint16(40057), + 105: uint16(40631), + 106: uint16(30325), + 107: uint16(39531), + 108: uint16(40058), + 109: uint16(40477), + 110: uint16(28777), + 111: uint16(28778), + 112: uint16(40612), + 113: uint16(40830), + 114: uint16(40777), + 115: uint16(40856), + 116: uint16(30849), + 117: uint16(37561), + 118: uint16(35023), + 119: uint16(22715), + 120: uint16(24658), + 121: uint16(31911), + 122: uint16(23290), + 123: uint16(9556), + 124: uint16(9574), + 125: uint16(9559), + 126: uint16(9568), + 127: uint16(9580), + 128: uint16(9571), + 129: uint16(9562), + 130: uint16(9577), + 131: uint16(9565), + 132: uint16(9554), + 133: uint16(9572), + 134: uint16(9557), + 135: uint16(9566), + 136: uint16(9578), + 137: uint16(9569), + 138: uint16(9560), + 139: uint16(9575), + 140: uint16(9563), + 141: uint16(9555), + 142: uint16(9573), + 143: uint16(9558), + 144: uint16(9567), + 145: uint16(9579), + 146: uint16(9570), + 147: uint16(9561), + 148: uint16(9576), + 149: uint16(9564), + 150: uint16(9553), + 151: uint16(9552), + 152: uint16(9581), + 153: uint16(9582), + 154: uint16(9584), + 155: uint16(9583), + 156: uint16(9619), + }, +} + +var _hkscs = [5172]uint16{ + 0: uint16(17392), + 1: uint16(19506), + 2: uint16(17923), + 3: uint16(17830), + 4: uint16(17784), + 5: uint16(29287), + 6: uint16(19831), + 7: uint16(17843), + 8: uint16(31921), + 9: uint16(19682), + 10: uint16(31941), + 11: uint16(15253), + 12: uint16(18230), + 13: uint16(18244), + 14: uint16(19527), + 15: uint16(19520), + 16: uint16(17087), + 17: uint16(13847), + 18: uint16(29522), + 19: uint16(28299), + 20: uint16(28882), + 21: uint16(19543), + 22: uint16(41809), + 23: uint16(18255), + 24: uint16(17882), + 25: uint16(19589), + 26: uint16(31852), + 27: uint16(19719), + 28: uint16(19108), + 29: uint16(18081), + 30: uint16(27427), + 31: uint16(29221), + 32: uint16(23124), + 33: uint16(6755), + 34: uint16(15878), + 35: uint16(16225), + 36: uint16(26189), + 37: uint16(22267), + 39: uint16(32149), + 40: uint16(22813), + 41: uint16(35769), + 42: uint16(15860), + 43: uint16(38708), + 44: uint16(31727), + 45: uint16(23515), + 46: uint16(7518), + 47: uint16(23204), + 48: uint16(13861), + 49: uint16(40624), + 50: uint16(23249), + 51: uint16(23479), + 52: uint16(23804), + 53: uint16(26478), + 54: uint16(34195), + 55: uint16(39237), + 56: uint16(29793), + 57: uint16(29853), + 58: uint16(14453), + 59: uint16(7507), + 60: uint16(13982), + 61: uint16(24609), + 62: uint16(16108), + 63: uint16(22750), + 64: uint16(15093), + 65: uint16(31484), + 66: uint16(40855), + 67: uint16(16737), + 68: uint16(35085), + 69: uint16(12778), + 70: uint16(2698), + 71: uint16(12894), + 72: uint16(17162), + 73: uint16(33924), + 74: uint16(40854), + 75: uint16(37935), + 76: uint16(18736), + 77: uint16(34323), + 78: uint16(22678), + 79: uint16(38730), + 80: uint16(37400), + 81: uint16(31184), + 82: uint16(31282), + 83: uint16(26208), + 84: uint16(27177), + 85: uint16(34973), + 86: uint16(29772), + 87: uint16(31685), + 88: uint16(26498), + 89: uint16(31276), + 90: uint16(21071), + 91: uint16(36934), + 92: uint16(13542), + 93: uint16(29636), + 94: uint16(23993), + 95: uint16(29894), + 96: uint16(40903), + 97: uint16(22451), + 98: uint16(18735), + 99: uint16(21580), + 100: uint16(16689), + 101: uint16(13966), + 102: uint16(22552), + 103: uint16(31346), + 104: uint16(31589), + 105: uint16(35727), + 106: uint16(18094), + 107: uint16(28296), + 108: uint16(16769), + 109: uint16(23961), + 110: uint16(31662), + 111: uint16(9404), + 112: uint16(40904), + 113: uint16(9409), + 114: uint16(9417), + 115: uint16(9420), + 116: uint16(40905), + 117: uint16(34052), + 118: uint16(13755), + 119: uint16(16564), + 120: uint16(40906), + 121: uint16(17633), + 122: uint16(44543), + 123: uint16(25281), + 124: uint16(28782), + 125: uint16(40907), + 157: uint16(12736), + 158: uint16(12737), + 159: uint16(12738), + 160: uint16(12739), + 161: uint16(12740), + 162: uint16(268), + 163: uint16(12741), + 164: uint16(209), + 165: uint16(205), + 166: uint16(12742), + 167: uint16(12743), + 168: uint16(203), + 169: uint16(8168), + 170: uint16(12744), + 171: uint16(202), + 172: uint16(12745), + 173: uint16(12746), + 174: uint16(12747), + 175: uint16(12748), + 176: uint16(270), + 177: uint16(12749), + 178: uint16(12750), + 179: uint16(256), + 180: uint16(193), + 181: uint16(461), + 182: uint16(192), + 183: uint16(274), + 184: uint16(201), + 185: uint16(282), + 186: uint16(200), + 187: uint16(332), + 188: uint16(211), + 189: uint16(465), + 190: uint16(210), + 191: uint16(56320), + 192: uint16(7870), + 193: uint16(56324), + 194: uint16(7872), + 195: uint16(202), + 196: uint16(257), + 197: uint16(225), + 198: uint16(462), + 199: uint16(224), + 200: uint16(593), + 201: uint16(275), + 202: uint16(233), + 203: uint16(283), + 204: uint16(232), + 205: uint16(299), + 206: uint16(237), + 207: uint16(464), + 208: uint16(236), + 209: uint16(333), + 210: uint16(243), + 211: uint16(466), + 212: uint16(242), + 213: uint16(363), + 214: uint16(250), + 215: uint16(468), + 216: uint16(249), + 217: uint16(470), + 218: uint16(472), + 219: uint16(474), + 220: uint16(476), + 221: uint16(252), + 222: uint16(56328), + 223: uint16(7871), + 224: uint16(56332), + 225: uint16(7873), + 226: uint16(234), + 227: uint16(609), + 228: uint16(9178), + 229: uint16(9179), + 314: uint16(41897), + 315: uint16(4421), + 317: uint16(25866), + 320: uint16(20029), + 321: uint16(28381), + 322: uint16(40270), + 323: uint16(37343), + 326: uint16(30517), + 327: uint16(25745), + 328: uint16(20250), + 329: uint16(20264), + 330: uint16(20392), + 331: uint16(20822), + 332: uint16(20852), + 333: uint16(20892), + 334: uint16(20964), + 335: uint16(21153), + 336: uint16(21160), + 337: uint16(21307), + 338: uint16(21326), + 339: uint16(21457), + 340: uint16(21464), + 341: uint16(22242), + 342: uint16(22768), + 343: uint16(22788), + 344: uint16(22791), + 345: uint16(22834), + 346: uint16(22836), + 347: uint16(23398), + 348: uint16(23454), + 349: uint16(23455), + 350: uint16(23706), + 351: uint16(24198), + 352: uint16(24635), + 353: uint16(25993), + 354: uint16(26622), + 355: uint16(26628), + 356: uint16(26725), + 357: uint16(27982), + 358: uint16(28860), + 359: uint16(30005), + 360: uint16(32420), + 361: uint16(32428), + 362: uint16(32442), + 363: uint16(32455), + 364: uint16(32463), + 365: uint16(32479), + 366: uint16(32518), + 367: uint16(32567), + 368: uint16(33402), + 369: uint16(33487), + 370: uint16(33647), + 371: uint16(35270), + 372: uint16(35774), + 373: uint16(35810), + 374: uint16(36710), + 375: uint16(36711), + 376: uint16(36718), + 377: uint16(29713), + 378: uint16(31996), + 379: uint16(32205), + 380: uint16(26950), + 381: uint16(31433), + 382: uint16(21031), + 387: uint16(37260), + 388: uint16(30904), + 389: uint16(37214), + 390: uint16(32956), + 392: uint16(36107), + 393: uint16(33014), + 394: uint16(2535), + 397: uint16(32927), + 398: uint16(40647), + 399: uint16(19661), + 400: uint16(40393), + 401: uint16(40460), + 402: uint16(19518), + 403: uint16(40438), + 404: uint16(28686), + 405: uint16(40458), + 406: uint16(41267), + 407: uint16(13761), + 409: uint16(28314), + 410: uint16(33342), + 411: uint16(29977), + 413: uint16(18705), + 414: uint16(39532), + 415: uint16(39567), + 416: uint16(40857), + 417: uint16(31111), + 418: uint16(33900), + 419: uint16(7626), + 420: uint16(1488), + 421: uint16(10982), + 422: uint16(20004), + 423: uint16(20097), + 424: uint16(20096), + 425: uint16(20103), + 426: uint16(20159), + 427: uint16(20203), + 428: uint16(20279), + 429: uint16(13388), + 430: uint16(20413), + 431: uint16(15944), + 432: uint16(20483), + 433: uint16(20616), + 434: uint16(13437), + 435: uint16(13459), + 436: uint16(13477), + 437: uint16(20870), + 438: uint16(22789), + 439: uint16(20955), + 440: uint16(20988), + 441: uint16(20997), + 442: uint16(20105), + 443: uint16(21113), + 444: uint16(21136), + 445: uint16(21287), + 446: uint16(13767), + 447: uint16(21417), + 448: uint16(13649), + 449: uint16(21424), + 450: uint16(13651), + 451: uint16(21442), + 452: uint16(21539), + 453: uint16(13677), + 454: uint16(13682), + 455: uint16(13953), + 456: uint16(21651), + 457: uint16(21667), + 458: uint16(21684), + 459: uint16(21689), + 460: uint16(21712), + 461: uint16(21743), + 462: uint16(21784), + 463: uint16(21795), + 464: uint16(21800), + 465: uint16(13720), + 466: uint16(21823), + 467: uint16(13733), + 468: uint16(13759), + 469: uint16(21975), + 470: uint16(13765), + 471: uint16(32132), + 472: uint16(21797), + 474: uint16(3138), + 475: uint16(3349), + 476: uint16(20779), + 477: uint16(21904), + 478: uint16(11462), + 479: uint16(14828), + 480: uint16(833), + 481: uint16(36422), + 482: uint16(19896), + 483: uint16(38117), + 484: uint16(16467), + 485: uint16(32958), + 486: uint16(30586), + 487: uint16(11320), + 488: uint16(14900), + 489: uint16(18389), + 490: uint16(33117), + 491: uint16(27122), + 492: uint16(19946), + 493: uint16(25821), + 494: uint16(3452), + 495: uint16(4020), + 496: uint16(3285), + 497: uint16(4340), + 498: uint16(25741), + 499: uint16(36478), + 500: uint16(3734), + 501: uint16(3083), + 502: uint16(3940), + 503: uint16(11433), + 504: uint16(33366), + 505: uint16(17619), + 507: uint16(3398), + 508: uint16(39501), + 509: uint16(33001), + 510: uint16(18420), + 511: uint16(20135), + 512: uint16(11458), + 513: uint16(39602), + 514: uint16(14951), + 515: uint16(38388), + 516: uint16(16365), + 517: uint16(13574), + 518: uint16(21191), + 519: uint16(38868), + 520: uint16(30920), + 521: uint16(11588), + 522: uint16(40302), + 523: uint16(38933), + 525: uint16(17369), + 526: uint16(24741), + 527: uint16(25780), + 528: uint16(21731), + 529: uint16(11596), + 530: uint16(11210), + 531: uint16(4215), + 532: uint16(14843), + 533: uint16(4207), + 534: uint16(26330), + 535: uint16(26390), + 536: uint16(31136), + 537: uint16(25834), + 538: uint16(20562), + 539: uint16(3139), + 540: uint16(36456), + 541: uint16(8609), + 542: uint16(35660), + 543: uint16(1841), + 545: uint16(18443), + 546: uint16(425), + 547: uint16(16378), + 548: uint16(22643), + 549: uint16(11661), + 551: uint16(17864), + 552: uint16(1276), + 553: uint16(24727), + 554: uint16(3916), + 555: uint16(3478), + 556: uint16(21881), + 557: uint16(16571), + 558: uint16(17338), + 560: uint16(19124), + 561: uint16(10854), + 562: uint16(4253), + 563: uint16(33194), + 564: uint16(39157), + 565: uint16(3484), + 566: uint16(25465), + 567: uint16(14846), + 568: uint16(10101), + 569: uint16(36288), + 570: uint16(22177), + 571: uint16(25724), + 572: uint16(15939), + 574: uint16(42497), + 575: uint16(3593), + 576: uint16(10959), + 577: uint16(11465), + 579: uint16(4296), + 580: uint16(14786), + 581: uint16(14738), + 582: uint16(14854), + 583: uint16(33435), + 584: uint16(13688), + 585: uint16(24137), + 586: uint16(8391), + 587: uint16(22098), + 588: uint16(3889), + 589: uint16(11442), + 590: uint16(38688), + 591: uint16(13500), + 592: uint16(27709), + 593: uint16(20027), + 596: uint16(30068), + 597: uint16(11915), + 598: uint16(8712), + 599: uint16(42587), + 600: uint16(36045), + 601: uint16(3706), + 602: uint16(3124), + 603: uint16(26652), + 604: uint16(32659), + 605: uint16(4303), + 606: uint16(10243), + 607: uint16(10553), + 608: uint16(13819), + 609: uint16(20963), + 610: uint16(3724), + 611: uint16(3981), + 612: uint16(3754), + 613: uint16(16275), + 614: uint16(3888), + 615: uint16(3399), + 616: uint16(4431), + 617: uint16(3660), + 619: uint16(3755), + 620: uint16(2985), + 621: uint16(3400), + 622: uint16(4288), + 623: uint16(4413), + 624: uint16(16377), + 625: uint16(9878), + 626: uint16(25650), + 627: uint16(4013), + 628: uint16(13300), + 629: uint16(30265), + 630: uint16(11214), + 631: uint16(3454), + 632: uint16(3455), + 633: uint16(11345), + 634: uint16(11349), + 635: uint16(14872), + 636: uint16(3736), + 637: uint16(4295), + 638: uint16(3886), + 639: uint16(42546), + 640: uint16(27472), + 641: uint16(36050), + 642: uint16(36249), + 643: uint16(36042), + 644: uint16(38314), + 645: uint16(21708), + 646: uint16(33476), + 647: uint16(21945), + 649: uint16(40643), + 650: uint16(39974), + 651: uint16(39606), + 652: uint16(30558), + 653: uint16(11758), + 654: uint16(28992), + 655: uint16(33133), + 656: uint16(33004), + 657: uint16(23580), + 658: uint16(25970), + 659: uint16(33076), + 660: uint16(14231), + 661: uint16(21343), + 662: uint16(32957), + 663: uint16(37302), + 664: uint16(3834), + 665: uint16(3599), + 666: uint16(3703), + 667: uint16(3835), + 668: uint16(13789), + 669: uint16(19947), + 670: uint16(13833), + 671: uint16(3286), + 672: uint16(22191), + 673: uint16(10165), + 674: uint16(4297), + 675: uint16(3600), + 676: uint16(3704), + 677: uint16(4216), + 678: uint16(4424), + 679: uint16(33287), + 680: uint16(5205), + 681: uint16(3705), + 682: uint16(20048), + 683: uint16(11684), + 684: uint16(23124), + 685: uint16(4125), + 686: uint16(4126), + 687: uint16(4341), + 688: uint16(4342), + 689: uint16(22428), + 690: uint16(3601), + 691: uint16(30356), + 692: uint16(33485), + 693: uint16(4021), + 694: uint16(3707), + 695: uint16(20862), + 696: uint16(14083), + 697: uint16(4022), + 698: uint16(4480), + 699: uint16(21208), + 700: uint16(41661), + 701: uint16(18906), + 702: uint16(6202), + 703: uint16(16759), + 704: uint16(33404), + 705: uint16(22681), + 706: uint16(21096), + 707: uint16(13850), + 708: uint16(22333), + 709: uint16(31666), + 710: uint16(23400), + 711: uint16(18432), + 712: uint16(19244), + 713: uint16(40743), + 714: uint16(18919), + 715: uint16(39967), + 716: uint16(39821), + 717: uint16(23412), + 718: uint16(12605), + 719: uint16(22011), + 720: uint16(13810), + 721: uint16(22153), + 722: uint16(20008), + 723: uint16(22786), + 724: uint16(7105), + 725: uint16(63608), + 726: uint16(38737), + 727: uint16(134), + 728: uint16(20059), + 729: uint16(20155), + 730: uint16(13630), + 731: uint16(23587), + 732: uint16(24401), + 733: uint16(24516), + 734: uint16(14586), + 735: uint16(25164), + 736: uint16(25909), + 737: uint16(27514), + 738: uint16(27701), + 739: uint16(27706), + 740: uint16(28780), + 741: uint16(29227), + 742: uint16(20012), + 743: uint16(29357), + 744: uint16(18665), + 745: uint16(32594), + 746: uint16(31035), + 747: uint16(31993), + 748: uint16(32595), + 749: uint16(25194), + 750: uint16(13505), + 752: uint16(25419), + 753: uint16(32770), + 754: uint16(32896), + 755: uint16(26130), + 756: uint16(26961), + 757: uint16(21341), + 758: uint16(34916), + 759: uint16(35265), + 760: uint16(30898), + 761: uint16(35744), + 762: uint16(36125), + 763: uint16(38021), + 764: uint16(38264), + 765: uint16(38271), + 766: uint16(38376), + 767: uint16(36367), + 768: uint16(38886), + 769: uint16(39029), + 770: uint16(39118), + 771: uint16(39134), + 772: uint16(39267), + 773: uint16(38928), + 774: uint16(40060), + 775: uint16(40479), + 776: uint16(40644), + 777: uint16(27503), + 778: uint16(63751), + 779: uint16(20023), + 780: uint16(135), + 781: uint16(38429), + 782: uint16(25143), + 783: uint16(38050), + 785: uint16(20539), + 786: uint16(28158), + 787: uint16(40051), + 788: uint16(40870), + 789: uint16(15817), + 790: uint16(34959), + 791: uint16(16718), + 792: uint16(28791), + 793: uint16(23797), + 794: uint16(19232), + 795: uint16(20941), + 796: uint16(13657), + 797: uint16(23856), + 798: uint16(24866), + 799: uint16(35378), + 800: uint16(36775), + 801: uint16(37366), + 802: uint16(29073), + 803: uint16(26393), + 804: uint16(29626), + 805: uint16(12929), + 806: uint16(41223), + 807: uint16(15499), + 808: uint16(6528), + 809: uint16(19216), + 810: uint16(30948), + 811: uint16(29698), + 812: uint16(20910), + 813: uint16(34575), + 814: uint16(16393), + 815: uint16(27235), + 816: uint16(41658), + 817: uint16(16931), + 818: uint16(34319), + 819: uint16(2671), + 820: uint16(31274), + 821: uint16(39239), + 822: uint16(35562), + 823: uint16(38741), + 824: uint16(28749), + 825: uint16(21284), + 826: uint16(8318), + 827: uint16(37876), + 828: uint16(30425), + 829: uint16(35299), + 830: uint16(40871), + 831: uint16(30685), + 832: uint16(20131), + 833: uint16(20464), + 834: uint16(20668), + 835: uint16(20015), + 836: uint16(20247), + 837: uint16(40872), + 838: uint16(21556), + 839: uint16(32139), + 840: uint16(22674), + 841: uint16(22736), + 842: uint16(7606), + 843: uint16(24210), + 844: uint16(24217), + 845: uint16(24514), + 846: uint16(10002), + 847: uint16(25995), + 848: uint16(13305), + 849: uint16(26905), + 850: uint16(27203), + 851: uint16(15459), + 852: uint16(27903), + 854: uint16(29184), + 855: uint16(17669), + 856: uint16(29580), + 857: uint16(16091), + 858: uint16(18963), + 859: uint16(23317), + 860: uint16(29881), + 861: uint16(35715), + 862: uint16(23716), + 863: uint16(22165), + 864: uint16(31379), + 865: uint16(31724), + 866: uint16(31939), + 867: uint16(32364), + 868: uint16(33528), + 869: uint16(34199), + 870: uint16(40873), + 871: uint16(34960), + 872: uint16(40874), + 873: uint16(36537), + 874: uint16(40875), + 875: uint16(36815), + 876: uint16(34143), + 877: uint16(39392), + 878: uint16(37409), + 879: uint16(40876), + 880: uint16(36281), + 881: uint16(5183), + 882: uint16(16497), + 883: uint16(17058), + 884: uint16(23066), + 888: uint16(39016), + 889: uint16(26475), + 890: uint16(17014), + 891: uint16(22333), + 893: uint16(34262), + 894: uint16(18811), + 895: uint16(33471), + 896: uint16(28941), + 897: uint16(19585), + 898: uint16(28020), + 899: uint16(23931), + 900: uint16(27413), + 901: uint16(28606), + 902: uint16(40877), + 903: uint16(40878), + 904: uint16(23446), + 905: uint16(40879), + 906: uint16(26343), + 907: uint16(32347), + 908: uint16(28247), + 909: uint16(31178), + 910: uint16(15752), + 911: uint16(17603), + 912: uint16(12886), + 913: uint16(10134), + 914: uint16(17306), + 915: uint16(17718), + 917: uint16(23765), + 918: uint16(15130), + 919: uint16(35577), + 920: uint16(23672), + 921: uint16(15634), + 922: uint16(13649), + 923: uint16(23928), + 924: uint16(40882), + 925: uint16(29015), + 926: uint16(17752), + 927: uint16(16620), + 928: uint16(7715), + 929: uint16(19575), + 930: uint16(14712), + 931: uint16(13386), + 932: uint16(420), + 933: uint16(27713), + 934: uint16(35532), + 935: uint16(20404), + 936: uint16(569), + 937: uint16(22975), + 938: uint16(33132), + 939: uint16(38998), + 940: uint16(39162), + 941: uint16(24379), + 942: uint16(2975), + 944: uint16(8641), + 945: uint16(35181), + 946: uint16(16642), + 947: uint16(18107), + 948: uint16(36985), + 949: uint16(16135), + 950: uint16(40883), + 951: uint16(41397), + 952: uint16(16632), + 953: uint16(14294), + 954: uint16(18167), + 955: uint16(27718), + 956: uint16(16764), + 957: uint16(34482), + 958: uint16(29695), + 959: uint16(17773), + 960: uint16(14548), + 961: uint16(21658), + 962: uint16(17761), + 963: uint16(17691), + 964: uint16(19849), + 965: uint16(19579), + 966: uint16(19830), + 967: uint16(17898), + 968: uint16(16328), + 969: uint16(19215), + 970: uint16(13921), + 971: uint16(17630), + 972: uint16(17597), + 973: uint16(16877), + 974: uint16(23870), + 975: uint16(23880), + 976: uint16(23894), + 977: uint16(15868), + 978: uint16(14351), + 979: uint16(23972), + 980: uint16(23993), + 981: uint16(14368), + 982: uint16(14392), + 983: uint16(24130), + 984: uint16(24253), + 985: uint16(24357), + 986: uint16(24451), + 987: uint16(14600), + 988: uint16(14612), + 989: uint16(14655), + 990: uint16(14669), + 991: uint16(24791), + 992: uint16(24893), + 993: uint16(23781), + 994: uint16(14729), + 995: uint16(25015), + 996: uint16(25017), + 997: uint16(25039), + 998: uint16(14776), + 999: uint16(25132), + 1000: uint16(25232), + 1001: uint16(25317), + 1002: uint16(25368), + 1003: uint16(14840), + 1004: uint16(22193), + 1005: uint16(14851), + 1006: uint16(25570), + 1007: uint16(25595), + 1008: uint16(25607), + 1009: uint16(25690), + 1010: uint16(14923), + 1011: uint16(25792), + 1012: uint16(23829), + 1013: uint16(22049), + 1014: uint16(40863), + 1015: uint16(14999), + 1016: uint16(25990), + 1017: uint16(15037), + 1018: uint16(26111), + 1019: uint16(26195), + 1020: uint16(15090), + 1021: uint16(26258), + 1022: uint16(15138), + 1023: uint16(26390), + 1024: uint16(15170), + 1025: uint16(26532), + 1026: uint16(26624), + 1027: uint16(15192), + 1028: uint16(26698), + 1029: uint16(26756), + 1030: uint16(15218), + 1031: uint16(15217), + 1032: uint16(15227), + 1033: uint16(26889), + 1034: uint16(26947), + 1035: uint16(29276), + 1036: uint16(26980), + 1037: uint16(27039), + 1038: uint16(27013), + 1039: uint16(15292), + 1040: uint16(27094), + 1041: uint16(15325), + 1042: uint16(27237), + 1043: uint16(27252), + 1044: uint16(27249), + 1045: uint16(27266), + 1046: uint16(15340), + 1047: uint16(27289), + 1048: uint16(15346), + 1049: uint16(27307), + 1050: uint16(27317), + 1051: uint16(27348), + 1052: uint16(27382), + 1053: uint16(27521), + 1054: uint16(27585), + 1055: uint16(27626), + 1056: uint16(27765), + 1057: uint16(27818), + 1058: uint16(15563), + 1059: uint16(27906), + 1060: uint16(27910), + 1061: uint16(27942), + 1062: uint16(28033), + 1063: uint16(15599), + 1064: uint16(28068), + 1065: uint16(28081), + 1066: uint16(28181), + 1067: uint16(28184), + 1068: uint16(28201), + 1069: uint16(28294), + 1070: uint16(35264), + 1071: uint16(28347), + 1072: uint16(28386), + 1073: uint16(28378), + 1074: uint16(40831), + 1075: uint16(28392), + 1076: uint16(28393), + 1077: uint16(28452), + 1078: uint16(28468), + 1079: uint16(15686), + 1080: uint16(16193), + 1081: uint16(28545), + 1082: uint16(28606), + 1083: uint16(15722), + 1084: uint16(15733), + 1085: uint16(29111), + 1086: uint16(23705), + 1087: uint16(15754), + 1088: uint16(28716), + 1089: uint16(15761), + 1090: uint16(28752), + 1091: uint16(28756), + 1092: uint16(28783), + 1093: uint16(28799), + 1094: uint16(28809), + 1095: uint16(805), + 1096: uint16(17345), + 1097: uint16(13809), + 1098: uint16(3800), + 1099: uint16(16087), + 1100: uint16(22462), + 1101: uint16(28371), + 1102: uint16(28990), + 1103: uint16(22496), + 1104: uint16(13902), + 1105: uint16(27042), + 1106: uint16(35817), + 1107: uint16(23412), + 1108: uint16(31305), + 1109: uint16(22753), + 1110: uint16(38105), + 1111: uint16(31333), + 1112: uint16(31357), + 1113: uint16(22956), + 1114: uint16(31419), + 1115: uint16(31408), + 1116: uint16(31426), + 1117: uint16(31427), + 1118: uint16(29137), + 1119: uint16(25741), + 1120: uint16(16842), + 1121: uint16(31450), + 1122: uint16(31453), + 1123: uint16(31466), + 1124: uint16(16879), + 1125: uint16(21682), + 1126: uint16(23553), + 1127: uint16(31499), + 1128: uint16(31573), + 1129: uint16(31529), + 1130: uint16(21262), + 1131: uint16(23806), + 1132: uint16(31650), + 1133: uint16(31599), + 1134: uint16(33692), + 1135: uint16(23476), + 1136: uint16(27775), + 1137: uint16(31696), + 1138: uint16(33825), + 1139: uint16(31634), + 1141: uint16(23840), + 1142: uint16(15789), + 1143: uint16(23653), + 1144: uint16(33938), + 1145: uint16(31738), + 1147: uint16(31797), + 1148: uint16(23745), + 1149: uint16(31812), + 1150: uint16(31875), + 1151: uint16(18562), + 1152: uint16(31910), + 1153: uint16(26237), + 1154: uint16(17784), + 1155: uint16(31945), + 1156: uint16(31943), + 1157: uint16(31974), + 1158: uint16(31860), + 1159: uint16(31987), + 1160: uint16(31989), + 1162: uint16(32359), + 1163: uint16(17693), + 1164: uint16(28228), + 1165: uint16(32093), + 1166: uint16(28374), + 1167: uint16(29837), + 1168: uint16(32137), + 1169: uint16(32171), + 1170: uint16(28981), + 1171: uint16(32179), + 1173: uint16(16471), + 1174: uint16(24617), + 1175: uint16(32228), + 1176: uint16(15635), + 1177: uint16(32245), + 1178: uint16(6137), + 1179: uint16(32229), + 1180: uint16(33645), + 1182: uint16(24865), + 1183: uint16(24922), + 1184: uint16(32366), + 1185: uint16(32402), + 1186: uint16(17195), + 1187: uint16(37996), + 1188: uint16(32295), + 1189: uint16(32576), + 1190: uint16(32577), + 1191: uint16(32583), + 1192: uint16(31030), + 1193: uint16(25296), + 1194: uint16(39393), + 1195: uint16(32663), + 1196: uint16(25425), + 1197: uint16(32675), + 1198: uint16(5729), + 1199: uint16(104), + 1200: uint16(17756), + 1201: uint16(14182), + 1202: uint16(17667), + 1203: uint16(33594), + 1204: uint16(32762), + 1205: uint16(25737), + 1207: uint16(32776), + 1208: uint16(32797), + 1210: uint16(32815), + 1211: uint16(41095), + 1212: uint16(27843), + 1213: uint16(32827), + 1214: uint16(32828), + 1215: uint16(32865), + 1216: uint16(10004), + 1217: uint16(18825), + 1218: uint16(26150), + 1219: uint16(15843), + 1220: uint16(26344), + 1221: uint16(26405), + 1222: uint16(32935), + 1223: uint16(35400), + 1224: uint16(33031), + 1225: uint16(33050), + 1226: uint16(22704), + 1227: uint16(9974), + 1228: uint16(27775), + 1229: uint16(25752), + 1230: uint16(20408), + 1231: uint16(25831), + 1232: uint16(5258), + 1233: uint16(33304), + 1234: uint16(6238), + 1235: uint16(27219), + 1236: uint16(19045), + 1237: uint16(19093), + 1238: uint16(17530), + 1239: uint16(33321), + 1240: uint16(2829), + 1241: uint16(27218), + 1242: uint16(15742), + 1243: uint16(20473), + 1244: uint16(5373), + 1245: uint16(34018), + 1246: uint16(33634), + 1247: uint16(27402), + 1248: uint16(18855), + 1249: uint16(13616), + 1250: uint16(6003), + 1251: uint16(15864), + 1252: uint16(33450), + 1253: uint16(26907), + 1254: uint16(63892), + 1255: uint16(16859), + 1256: uint16(34123), + 1257: uint16(33488), + 1258: uint16(33562), + 1259: uint16(3606), + 1260: uint16(6068), + 1261: uint16(14017), + 1262: uint16(12669), + 1263: uint16(13658), + 1264: uint16(33403), + 1265: uint16(33506), + 1266: uint16(33560), + 1267: uint16(16011), + 1268: uint16(28067), + 1269: uint16(27397), + 1270: uint16(27543), + 1271: uint16(13774), + 1272: uint16(15807), + 1273: uint16(33565), + 1274: uint16(21996), + 1275: uint16(33669), + 1276: uint16(17675), + 1277: uint16(28069), + 1278: uint16(33708), + 1280: uint16(33747), + 1281: uint16(13438), + 1282: uint16(28372), + 1283: uint16(27223), + 1284: uint16(34138), + 1285: uint16(13462), + 1286: uint16(28226), + 1287: uint16(12015), + 1288: uint16(33880), + 1289: uint16(23524), + 1290: uint16(33905), + 1291: uint16(15827), + 1292: uint16(17636), + 1293: uint16(27303), + 1294: uint16(33866), + 1295: uint16(15541), + 1296: uint16(31064), + 1298: uint16(27542), + 1299: uint16(28279), + 1300: uint16(28227), + 1301: uint16(34014), + 1303: uint16(33681), + 1304: uint16(17568), + 1305: uint16(33939), + 1306: uint16(34020), + 1307: uint16(23697), + 1308: uint16(16960), + 1309: uint16(23744), + 1310: uint16(17731), + 1311: uint16(34100), + 1312: uint16(23282), + 1313: uint16(28313), + 1314: uint16(17703), + 1315: uint16(34163), + 1316: uint16(17686), + 1317: uint16(26559), + 1318: uint16(34326), + 1319: uint16(34341), + 1320: uint16(34363), + 1321: uint16(34241), + 1322: uint16(28808), + 1323: uint16(34306), + 1324: uint16(5506), + 1325: uint16(28877), + 1326: uint16(63922), + 1327: uint16(17770), + 1328: uint16(34344), + 1329: uint16(13896), + 1330: uint16(6306), + 1331: uint16(21495), + 1332: uint16(29594), + 1333: uint16(34430), + 1334: uint16(34673), + 1335: uint16(41208), + 1336: uint16(34798), + 1337: uint16(11303), + 1338: uint16(34737), + 1339: uint16(34778), + 1340: uint16(34831), + 1341: uint16(22113), + 1342: uint16(34412), + 1343: uint16(26710), + 1344: uint16(17935), + 1345: uint16(34885), + 1346: uint16(34886), + 1347: uint16(30176), + 1348: uint16(15801), + 1349: uint16(30180), + 1350: uint16(34910), + 1351: uint16(34972), + 1352: uint16(18011), + 1353: uint16(34996), + 1354: uint16(34997), + 1355: uint16(25537), + 1356: uint16(35013), + 1357: uint16(30583), + 1358: uint16(30479), + 1359: uint16(35207), + 1360: uint16(35210), + 1363: uint16(35239), + 1364: uint16(35260), + 1365: uint16(35365), + 1366: uint16(35303), + 1367: uint16(31012), + 1368: uint16(31421), + 1369: uint16(35484), + 1370: uint16(30611), + 1371: uint16(37374), + 1372: uint16(35472), + 1373: uint16(31321), + 1374: uint16(31465), + 1375: uint16(31546), + 1376: uint16(16271), + 1377: uint16(18195), + 1378: uint16(31544), + 1379: uint16(29052), + 1380: uint16(35596), + 1381: uint16(35615), + 1382: uint16(21552), + 1383: uint16(21861), + 1384: uint16(35647), + 1385: uint16(35660), + 1386: uint16(35661), + 1387: uint16(35497), + 1388: uint16(19066), + 1389: uint16(35728), + 1390: uint16(35739), + 1391: uint16(35503), + 1392: uint16(5855), + 1393: uint16(17941), + 1394: uint16(34895), + 1395: uint16(35995), + 1396: uint16(32084), + 1397: uint16(32143), + 1398: uint16(63956), + 1399: uint16(14117), + 1400: uint16(32083), + 1401: uint16(36054), + 1402: uint16(32152), + 1403: uint16(32189), + 1404: uint16(36114), + 1405: uint16(36099), + 1406: uint16(6416), + 1407: uint16(36059), + 1408: uint16(28764), + 1409: uint16(36113), + 1410: uint16(19657), + 1411: uint16(16080), + 1413: uint16(36265), + 1414: uint16(32770), + 1415: uint16(4116), + 1416: uint16(18826), + 1417: uint16(15228), + 1418: uint16(33212), + 1419: uint16(28940), + 1420: uint16(31463), + 1421: uint16(36525), + 1422: uint16(36534), + 1423: uint16(36547), + 1424: uint16(37588), + 1425: uint16(36633), + 1426: uint16(36653), + 1427: uint16(33637), + 1428: uint16(33810), + 1429: uint16(36773), + 1430: uint16(37635), + 1431: uint16(41631), + 1432: uint16(2640), + 1433: uint16(36787), + 1434: uint16(18730), + 1435: uint16(35294), + 1436: uint16(34109), + 1437: uint16(15803), + 1438: uint16(24312), + 1439: uint16(12898), + 1440: uint16(36857), + 1441: uint16(40980), + 1442: uint16(34492), + 1443: uint16(34049), + 1444: uint16(8997), + 1445: uint16(14720), + 1446: uint16(28375), + 1447: uint16(36919), + 1448: uint16(34108), + 1449: uint16(31422), + 1450: uint16(36961), + 1451: uint16(34156), + 1452: uint16(34315), + 1453: uint16(37032), + 1454: uint16(34579), + 1455: uint16(37060), + 1456: uint16(34534), + 1457: uint16(37038), + 1459: uint16(37223), + 1460: uint16(15088), + 1461: uint16(37289), + 1462: uint16(37316), + 1463: uint16(31916), + 1464: uint16(35123), + 1465: uint16(7817), + 1466: uint16(37390), + 1467: uint16(27807), + 1468: uint16(37441), + 1469: uint16(37474), + 1470: uint16(21945), + 1472: uint16(35526), + 1473: uint16(15515), + 1474: uint16(35596), + 1475: uint16(21979), + 1476: uint16(3377), + 1477: uint16(37676), + 1478: uint16(37739), + 1479: uint16(35553), + 1480: uint16(35819), + 1481: uint16(28815), + 1482: uint16(23235), + 1483: uint16(35554), + 1484: uint16(35557), + 1485: uint16(18789), + 1486: uint16(37444), + 1487: uint16(35820), + 1488: uint16(35897), + 1489: uint16(35839), + 1490: uint16(37747), + 1491: uint16(37979), + 1492: uint16(36540), + 1493: uint16(38277), + 1494: uint16(38310), + 1495: uint16(37926), + 1496: uint16(38304), + 1497: uint16(28662), + 1498: uint16(17081), + 1499: uint16(9850), + 1500: uint16(34520), + 1501: uint16(4732), + 1502: uint16(15918), + 1503: uint16(18911), + 1504: uint16(27676), + 1505: uint16(38523), + 1506: uint16(38550), + 1507: uint16(16748), + 1508: uint16(38563), + 1509: uint16(28373), + 1510: uint16(25050), + 1511: uint16(38582), + 1512: uint16(30965), + 1513: uint16(35552), + 1514: uint16(38589), + 1515: uint16(21452), + 1516: uint16(18849), + 1517: uint16(27832), + 1518: uint16(628), + 1519: uint16(25616), + 1520: uint16(37039), + 1521: uint16(37093), + 1522: uint16(19153), + 1523: uint16(6421), + 1524: uint16(13066), + 1525: uint16(38705), + 1526: uint16(34370), + 1527: uint16(38710), + 1528: uint16(18959), + 1529: uint16(17725), + 1530: uint16(17797), + 1531: uint16(19177), + 1532: uint16(28789), + 1533: uint16(23361), + 1534: uint16(38683), + 1536: uint16(37333), + 1537: uint16(38743), + 1538: uint16(23370), + 1539: uint16(37355), + 1540: uint16(38751), + 1541: uint16(37925), + 1542: uint16(20688), + 1543: uint16(12471), + 1544: uint16(12476), + 1545: uint16(38793), + 1546: uint16(38815), + 1547: uint16(38833), + 1548: uint16(38846), + 1549: uint16(38848), + 1550: uint16(38866), + 1551: uint16(38880), + 1552: uint16(21612), + 1553: uint16(38894), + 1554: uint16(29724), + 1555: uint16(37939), + 1557: uint16(38901), + 1558: uint16(37917), + 1559: uint16(31098), + 1560: uint16(19153), + 1561: uint16(38964), + 1562: uint16(38963), + 1563: uint16(38987), + 1564: uint16(39014), + 1565: uint16(15118), + 1566: uint16(29045), + 1567: uint16(15697), + 1568: uint16(1584), + 1569: uint16(16732), + 1570: uint16(22278), + 1571: uint16(39114), + 1572: uint16(39095), + 1573: uint16(39112), + 1574: uint16(39111), + 1575: uint16(19199), + 1576: uint16(27943), + 1577: uint16(5843), + 1578: uint16(21936), + 1579: uint16(39137), + 1580: uint16(39142), + 1581: uint16(39148), + 1582: uint16(37752), + 1583: uint16(39225), + 1584: uint16(18985), + 1585: uint16(19314), + 1586: uint16(38999), + 1587: uint16(39173), + 1588: uint16(39413), + 1589: uint16(39436), + 1590: uint16(39483), + 1591: uint16(39440), + 1592: uint16(39512), + 1593: uint16(22309), + 1594: uint16(14020), + 1595: uint16(37041), + 1596: uint16(39893), + 1597: uint16(39648), + 1598: uint16(39650), + 1599: uint16(39685), + 1600: uint16(39668), + 1601: uint16(19470), + 1602: uint16(39700), + 1603: uint16(39725), + 1604: uint16(34304), + 1605: uint16(20532), + 1606: uint16(39732), + 1607: uint16(27048), + 1608: uint16(14531), + 1609: uint16(12413), + 1610: uint16(39760), + 1611: uint16(39744), + 1612: uint16(40254), + 1613: uint16(23109), + 1614: uint16(6243), + 1615: uint16(39822), + 1616: uint16(16971), + 1617: uint16(39938), + 1618: uint16(39935), + 1619: uint16(39948), + 1620: uint16(40552), + 1621: uint16(40404), + 1622: uint16(40887), + 1623: uint16(41362), + 1624: uint16(41387), + 1625: uint16(41185), + 1626: uint16(41251), + 1627: uint16(41439), + 1628: uint16(40318), + 1629: uint16(40323), + 1630: uint16(41268), + 1631: uint16(40462), + 1632: uint16(26760), + 1633: uint16(40388), + 1634: uint16(8539), + 1635: uint16(41363), + 1636: uint16(41504), + 1637: uint16(6459), + 1638: uint16(41523), + 1639: uint16(40249), + 1640: uint16(41145), + 1641: uint16(41652), + 1642: uint16(40592), + 1643: uint16(40597), + 1644: uint16(40606), + 1645: uint16(40610), + 1646: uint16(19764), + 1647: uint16(40618), + 1648: uint16(40623), + 1649: uint16(17252), + 1650: uint16(40641), + 1651: uint16(15200), + 1652: uint16(14821), + 1653: uint16(15645), + 1654: uint16(20274), + 1655: uint16(14270), + 1656: uint16(35883), + 1657: uint16(40706), + 1658: uint16(40712), + 1659: uint16(19350), + 1660: uint16(37924), + 1661: uint16(28066), + 1662: uint16(40727), + 1664: uint16(40761), + 1665: uint16(22175), + 1666: uint16(22154), + 1667: uint16(40773), + 1668: uint16(39352), + 1669: uint16(37003), + 1670: uint16(38898), + 1671: uint16(33919), + 1672: uint16(40802), + 1673: uint16(40809), + 1674: uint16(31452), + 1675: uint16(40846), + 1676: uint16(29206), + 1677: uint16(19390), + 1678: uint16(18805), + 1679: uint16(18875), + 1680: uint16(29047), + 1681: uint16(18936), + 1682: uint16(17224), + 1683: uint16(19025), + 1684: uint16(29598), + 1685: uint16(35802), + 1686: uint16(6394), + 1687: uint16(31135), + 1688: uint16(35198), + 1689: uint16(36406), + 1690: uint16(37737), + 1691: uint16(37875), + 1692: uint16(35396), + 1693: uint16(37612), + 1694: uint16(37761), + 1695: uint16(37835), + 1696: uint16(35180), + 1697: uint16(17593), + 1698: uint16(29207), + 1699: uint16(16107), + 1700: uint16(30578), + 1701: uint16(31299), + 1702: uint16(28880), + 1703: uint16(17523), + 1704: uint16(17400), + 1705: uint16(29054), + 1706: uint16(6127), + 1707: uint16(28835), + 1708: uint16(6334), + 1709: uint16(13721), + 1710: uint16(16071), + 1711: uint16(6277), + 1712: uint16(21551), + 1713: uint16(6136), + 1714: uint16(14114), + 1715: uint16(5883), + 1716: uint16(6201), + 1717: uint16(14049), + 1718: uint16(6004), + 1719: uint16(6353), + 1720: uint16(24395), + 1721: uint16(14115), + 1722: uint16(5824), + 1723: uint16(22363), + 1724: uint16(18981), + 1725: uint16(5118), + 1726: uint16(4776), + 1727: uint16(5062), + 1728: uint16(5302), + 1729: uint16(34051), + 1730: uint16(13990), + 1732: uint16(33877), + 1733: uint16(18836), + 1734: uint16(29029), + 1735: uint16(15921), + 1736: uint16(21852), + 1737: uint16(16123), + 1738: uint16(28754), + 1739: uint16(17652), + 1740: uint16(14062), + 1741: uint16(39325), + 1742: uint16(28454), + 1743: uint16(26617), + 1744: uint16(14131), + 1745: uint16(15381), + 1746: uint16(15847), + 1747: uint16(22636), + 1748: uint16(6434), + 1749: uint16(26640), + 1750: uint16(16471), + 1751: uint16(14143), + 1752: uint16(16609), + 1753: uint16(16523), + 1754: uint16(16655), + 1755: uint16(27681), + 1756: uint16(21707), + 1757: uint16(22174), + 1758: uint16(26289), + 1759: uint16(22162), + 1760: uint16(4063), + 1761: uint16(2984), + 1762: uint16(3597), + 1763: uint16(37830), + 1764: uint16(35603), + 1765: uint16(37788), + 1766: uint16(20216), + 1767: uint16(20779), + 1768: uint16(14361), + 1769: uint16(17462), + 1770: uint16(20156), + 1771: uint16(1125), + 1772: uint16(895), + 1773: uint16(20299), + 1774: uint16(20362), + 1775: uint16(22097), + 1776: uint16(23144), + 1777: uint16(427), + 1778: uint16(971), + 1779: uint16(14745), + 1780: uint16(778), + 1781: uint16(1044), + 1782: uint16(13365), + 1783: uint16(20265), + 1784: uint16(704), + 1785: uint16(36531), + 1786: uint16(629), + 1787: uint16(35546), + 1788: uint16(524), + 1789: uint16(20120), + 1790: uint16(20685), + 1791: uint16(20749), + 1792: uint16(20386), + 1793: uint16(20227), + 1794: uint16(18958), + 1795: uint16(16010), + 1796: uint16(20290), + 1797: uint16(20526), + 1798: uint16(20588), + 1799: uint16(20609), + 1800: uint16(20428), + 1801: uint16(20453), + 1802: uint16(20568), + 1803: uint16(20732), + 1808: uint16(28278), + 1809: uint16(13717), + 1810: uint16(15929), + 1811: uint16(16063), + 1812: uint16(28018), + 1813: uint16(6276), + 1814: uint16(16009), + 1815: uint16(20904), + 1816: uint16(20931), + 1817: uint16(1504), + 1818: uint16(17629), + 1819: uint16(1187), + 1820: uint16(1170), + 1821: uint16(1169), + 1822: uint16(36218), + 1823: uint16(35484), + 1824: uint16(1806), + 1825: uint16(21081), + 1826: uint16(21156), + 1827: uint16(2163), + 1828: uint16(21217), + 1830: uint16(18042), + 1831: uint16(29068), + 1832: uint16(17292), + 1833: uint16(3104), + 1834: uint16(18860), + 1835: uint16(4324), + 1836: uint16(27089), + 1837: uint16(3613), + 1839: uint16(16094), + 1840: uint16(29849), + 1841: uint16(29716), + 1842: uint16(29782), + 1843: uint16(29592), + 1844: uint16(19342), + 1845: uint16(19132), + 1846: uint16(16525), + 1847: uint16(21456), + 1848: uint16(13700), + 1849: uint16(29199), + 1850: uint16(16585), + 1851: uint16(21940), + 1852: uint16(837), + 1853: uint16(21709), + 1854: uint16(3014), + 1855: uint16(22301), + 1856: uint16(37469), + 1857: uint16(38644), + 1858: uint16(37734), + 1859: uint16(22493), + 1860: uint16(22413), + 1861: uint16(22399), + 1862: uint16(13886), + 1863: uint16(22731), + 1864: uint16(23193), + 1865: uint16(35398), + 1866: uint16(5882), + 1867: uint16(5999), + 1868: uint16(5904), + 1869: uint16(23084), + 1870: uint16(22968), + 1871: uint16(37519), + 1872: uint16(23166), + 1873: uint16(23247), + 1874: uint16(23058), + 1875: uint16(22854), + 1876: uint16(6643), + 1877: uint16(6241), + 1878: uint16(17045), + 1879: uint16(14069), + 1880: uint16(27909), + 1881: uint16(29763), + 1882: uint16(23073), + 1883: uint16(24195), + 1884: uint16(23169), + 1885: uint16(35799), + 1886: uint16(1043), + 1887: uint16(37856), + 1888: uint16(29836), + 1889: uint16(4867), + 1890: uint16(28933), + 1891: uint16(18802), + 1892: uint16(37896), + 1893: uint16(35323), + 1894: uint16(37821), + 1895: uint16(14240), + 1896: uint16(23582), + 1897: uint16(23710), + 1898: uint16(24158), + 1899: uint16(24136), + 1900: uint16(6550), + 1901: uint16(6524), + 1902: uint16(15086), + 1903: uint16(24269), + 1904: uint16(23375), + 1905: uint16(6403), + 1906: uint16(6404), + 1907: uint16(14081), + 1908: uint16(6304), + 1909: uint16(14045), + 1910: uint16(5886), + 1911: uint16(14035), + 1912: uint16(33066), + 1913: uint16(35399), + 1914: uint16(7610), + 1915: uint16(13426), + 1916: uint16(35240), + 1917: uint16(24332), + 1918: uint16(24334), + 1919: uint16(6439), + 1920: uint16(6059), + 1921: uint16(23147), + 1922: uint16(5947), + 1923: uint16(23364), + 1924: uint16(34324), + 1925: uint16(30205), + 1926: uint16(34912), + 1927: uint16(24702), + 1928: uint16(10336), + 1929: uint16(9771), + 1930: uint16(24539), + 1931: uint16(16056), + 1932: uint16(9647), + 1933: uint16(9662), + 1934: uint16(37000), + 1935: uint16(28531), + 1936: uint16(25024), + 1937: uint16(62), + 1938: uint16(70), + 1939: uint16(9755), + 1940: uint16(24985), + 1941: uint16(24984), + 1942: uint16(24693), + 1943: uint16(11419), + 1944: uint16(11527), + 1945: uint16(18132), + 1946: uint16(37197), + 1947: uint16(25713), + 1948: uint16(18021), + 1949: uint16(11114), + 1950: uint16(14889), + 1951: uint16(11042), + 1952: uint16(13392), + 1953: uint16(39146), + 1954: uint16(11896), + 1955: uint16(25399), + 1956: uint16(42075), + 1957: uint16(25782), + 1958: uint16(25393), + 1959: uint16(25553), + 1960: uint16(18915), + 1961: uint16(11623), + 1962: uint16(25252), + 1963: uint16(11425), + 1964: uint16(25659), + 1965: uint16(25963), + 1966: uint16(26994), + 1967: uint16(15348), + 1968: uint16(12430), + 1969: uint16(12973), + 1970: uint16(18825), + 1971: uint16(12971), + 1972: uint16(21773), + 1973: uint16(13024), + 1974: uint16(6361), + 1975: uint16(37951), + 1976: uint16(26318), + 1977: uint16(12937), + 1978: uint16(12723), + 1979: uint16(15072), + 1980: uint16(16784), + 1981: uint16(21892), + 1982: uint16(35618), + 1983: uint16(21903), + 1984: uint16(5884), + 1985: uint16(21851), + 1986: uint16(21541), + 1987: uint16(30958), + 1988: uint16(12547), + 1989: uint16(6186), + 1990: uint16(12852), + 1991: uint16(13412), + 1992: uint16(12815), + 1993: uint16(12674), + 1994: uint16(17097), + 1995: uint16(26254), + 1996: uint16(27940), + 1997: uint16(26219), + 1998: uint16(19347), + 1999: uint16(26160), + 2000: uint16(30832), + 2001: uint16(7659), + 2002: uint16(26211), + 2003: uint16(13010), + 2004: uint16(13025), + 2005: uint16(26142), + 2006: uint16(22642), + 2007: uint16(14545), + 2008: uint16(14394), + 2009: uint16(14268), + 2010: uint16(15257), + 2011: uint16(14242), + 2012: uint16(13310), + 2013: uint16(29904), + 2014: uint16(15254), + 2015: uint16(26511), + 2016: uint16(17962), + 2017: uint16(26806), + 2018: uint16(26654), + 2019: uint16(15300), + 2020: uint16(27326), + 2021: uint16(14435), + 2022: uint16(14293), + 2023: uint16(17543), + 2024: uint16(27187), + 2025: uint16(27218), + 2026: uint16(27337), + 2027: uint16(27397), + 2028: uint16(6418), + 2029: uint16(25873), + 2030: uint16(26776), + 2031: uint16(27212), + 2032: uint16(15319), + 2033: uint16(27258), + 2034: uint16(27479), + 2035: uint16(16320), + 2036: uint16(15514), + 2037: uint16(37792), + 2038: uint16(37618), + 2039: uint16(35818), + 2040: uint16(35531), + 2041: uint16(37513), + 2042: uint16(32798), + 2043: uint16(35292), + 2044: uint16(37991), + 2045: uint16(28069), + 2046: uint16(28427), + 2047: uint16(18924), + 2049: uint16(16255), + 2050: uint16(15759), + 2051: uint16(28164), + 2052: uint16(16444), + 2053: uint16(23101), + 2054: uint16(28170), + 2055: uint16(22599), + 2056: uint16(27940), + 2057: uint16(30786), + 2058: uint16(28987), + 2059: uint16(17178), + 2060: uint16(17014), + 2061: uint16(28913), + 2062: uint16(29264), + 2063: uint16(29319), + 2064: uint16(29332), + 2065: uint16(18319), + 2066: uint16(18213), + 2067: uint16(20857), + 2068: uint16(19108), + 2069: uint16(1515), + 2070: uint16(29818), + 2071: uint16(16120), + 2072: uint16(13919), + 2073: uint16(19018), + 2074: uint16(18711), + 2075: uint16(24545), + 2076: uint16(16134), + 2077: uint16(16049), + 2078: uint16(19167), + 2079: uint16(35875), + 2080: uint16(16181), + 2081: uint16(24743), + 2082: uint16(16115), + 2083: uint16(29900), + 2084: uint16(29756), + 2085: uint16(37767), + 2086: uint16(29751), + 2087: uint16(17567), + 2088: uint16(28138), + 2089: uint16(17745), + 2090: uint16(30083), + 2091: uint16(16227), + 2092: uint16(19673), + 2093: uint16(19718), + 2094: uint16(16216), + 2095: uint16(30037), + 2096: uint16(30323), + 2097: uint16(42438), + 2098: uint16(15129), + 2099: uint16(29800), + 2100: uint16(35532), + 2101: uint16(18859), + 2102: uint16(18830), + 2103: uint16(15099), + 2104: uint16(15821), + 2105: uint16(19022), + 2106: uint16(16127), + 2107: uint16(18885), + 2108: uint16(18675), + 2109: uint16(37370), + 2110: uint16(22322), + 2111: uint16(37698), + 2112: uint16(35555), + 2113: uint16(6244), + 2114: uint16(20703), + 2115: uint16(21025), + 2116: uint16(20967), + 2117: uint16(30584), + 2118: uint16(12850), + 2119: uint16(30478), + 2120: uint16(30479), + 2121: uint16(30587), + 2122: uint16(18071), + 2123: uint16(14209), + 2124: uint16(14942), + 2125: uint16(18672), + 2126: uint16(29752), + 2127: uint16(29851), + 2128: uint16(16063), + 2129: uint16(19130), + 2130: uint16(19143), + 2131: uint16(16584), + 2132: uint16(19094), + 2133: uint16(25006), + 2134: uint16(37639), + 2135: uint16(21889), + 2136: uint16(30750), + 2137: uint16(30861), + 2138: uint16(30856), + 2139: uint16(30930), + 2140: uint16(29648), + 2141: uint16(31065), + 2142: uint16(30529), + 2143: uint16(22243), + 2144: uint16(16654), + 2146: uint16(33942), + 2147: uint16(31141), + 2148: uint16(27181), + 2149: uint16(16122), + 2150: uint16(31290), + 2151: uint16(31220), + 2152: uint16(16750), + 2153: uint16(5862), + 2154: uint16(16690), + 2155: uint16(37429), + 2156: uint16(31217), + 2157: uint16(3404), + 2158: uint16(18828), + 2159: uint16(665), + 2160: uint16(15802), + 2161: uint16(5998), + 2162: uint16(13719), + 2163: uint16(21867), + 2164: uint16(13680), + 2165: uint16(13994), + 2166: uint16(468), + 2167: uint16(3085), + 2168: uint16(31458), + 2169: uint16(23129), + 2170: uint16(9973), + 2171: uint16(23215), + 2172: uint16(23196), + 2173: uint16(23053), + 2174: uint16(603), + 2175: uint16(30960), + 2176: uint16(23082), + 2177: uint16(23494), + 2178: uint16(31486), + 2179: uint16(16889), + 2180: uint16(31837), + 2181: uint16(31853), + 2182: uint16(16913), + 2183: uint16(23475), + 2184: uint16(24252), + 2185: uint16(24230), + 2186: uint16(31949), + 2187: uint16(18937), + 2188: uint16(6064), + 2189: uint16(31886), + 2190: uint16(31868), + 2191: uint16(31918), + 2192: uint16(27314), + 2193: uint16(32220), + 2194: uint16(32263), + 2195: uint16(32211), + 2196: uint16(32590), + 2197: uint16(25185), + 2198: uint16(24924), + 2199: uint16(31560), + 2200: uint16(32151), + 2201: uint16(24194), + 2202: uint16(17002), + 2203: uint16(27509), + 2204: uint16(2326), + 2205: uint16(26582), + 2206: uint16(78), + 2207: uint16(13775), + 2208: uint16(22468), + 2209: uint16(25618), + 2210: uint16(25592), + 2211: uint16(18786), + 2212: uint16(32733), + 2213: uint16(31527), + 2214: uint16(2092), + 2215: uint16(23273), + 2216: uint16(23875), + 2217: uint16(31500), + 2218: uint16(24078), + 2219: uint16(39398), + 2220: uint16(34373), + 2221: uint16(39523), + 2222: uint16(27164), + 2223: uint16(13375), + 2224: uint16(14818), + 2225: uint16(18935), + 2226: uint16(26029), + 2227: uint16(39455), + 2228: uint16(26016), + 2229: uint16(33920), + 2230: uint16(28967), + 2231: uint16(27857), + 2232: uint16(17642), + 2233: uint16(33079), + 2234: uint16(17410), + 2235: uint16(32966), + 2236: uint16(33033), + 2237: uint16(33090), + 2238: uint16(26548), + 2239: uint16(39107), + 2240: uint16(27202), + 2241: uint16(33378), + 2242: uint16(33381), + 2243: uint16(27217), + 2244: uint16(33875), + 2245: uint16(28071), + 2246: uint16(34320), + 2247: uint16(29211), + 2248: uint16(23174), + 2249: uint16(16767), + 2250: uint16(6208), + 2251: uint16(23339), + 2252: uint16(6305), + 2253: uint16(23268), + 2254: uint16(6360), + 2255: uint16(34464), + 2256: uint16(63932), + 2257: uint16(15759), + 2258: uint16(34861), + 2259: uint16(29730), + 2260: uint16(23042), + 2261: uint16(34926), + 2262: uint16(20293), + 2263: uint16(34951), + 2264: uint16(35007), + 2265: uint16(35046), + 2266: uint16(35173), + 2267: uint16(35149), + 2268: uint16(22147), + 2269: uint16(35156), + 2270: uint16(30597), + 2271: uint16(30596), + 2272: uint16(35829), + 2273: uint16(35801), + 2274: uint16(35740), + 2275: uint16(35321), + 2276: uint16(16045), + 2277: uint16(33955), + 2278: uint16(18165), + 2279: uint16(18127), + 2280: uint16(14322), + 2281: uint16(35389), + 2282: uint16(35356), + 2283: uint16(37960), + 2284: uint16(24397), + 2285: uint16(37419), + 2286: uint16(17028), + 2287: uint16(26068), + 2288: uint16(28969), + 2289: uint16(28868), + 2290: uint16(6213), + 2291: uint16(40301), + 2292: uint16(35999), + 2293: uint16(36073), + 2294: uint16(32220), + 2295: uint16(22938), + 2296: uint16(30659), + 2297: uint16(23024), + 2298: uint16(17262), + 2299: uint16(14036), + 2300: uint16(36394), + 2301: uint16(36519), + 2302: uint16(19465), + 2303: uint16(36656), + 2304: uint16(36682), + 2305: uint16(17140), + 2306: uint16(27736), + 2307: uint16(28603), + 2308: uint16(8993), + 2309: uint16(18587), + 2310: uint16(28537), + 2311: uint16(28299), + 2312: uint16(6106), + 2313: uint16(39913), + 2314: uint16(14005), + 2315: uint16(18735), + 2316: uint16(37051), + 2318: uint16(21873), + 2319: uint16(18694), + 2320: uint16(37307), + 2321: uint16(37892), + 2322: uint16(35403), + 2323: uint16(16482), + 2324: uint16(35580), + 2325: uint16(37927), + 2326: uint16(35869), + 2327: uint16(35899), + 2328: uint16(34021), + 2329: uint16(35371), + 2330: uint16(38297), + 2331: uint16(38311), + 2332: uint16(38295), + 2333: uint16(38294), + 2334: uint16(36148), + 2335: uint16(29765), + 2336: uint16(16066), + 2337: uint16(18687), + 2338: uint16(19010), + 2339: uint16(17386), + 2340: uint16(16103), + 2341: uint16(12837), + 2342: uint16(38543), + 2343: uint16(36583), + 2344: uint16(36454), + 2345: uint16(36453), + 2346: uint16(16076), + 2347: uint16(18925), + 2348: uint16(19064), + 2349: uint16(16366), + 2350: uint16(29714), + 2351: uint16(29803), + 2352: uint16(16124), + 2353: uint16(38721), + 2354: uint16(37040), + 2355: uint16(26695), + 2356: uint16(18973), + 2357: uint16(37011), + 2358: uint16(22495), + 2360: uint16(37736), + 2361: uint16(35209), + 2362: uint16(35878), + 2363: uint16(35631), + 2364: uint16(25534), + 2365: uint16(37562), + 2366: uint16(23313), + 2367: uint16(35689), + 2368: uint16(18748), + 2369: uint16(29689), + 2370: uint16(16923), + 2371: uint16(38811), + 2372: uint16(38769), + 2373: uint16(39224), + 2374: uint16(3878), + 2375: uint16(24001), + 2376: uint16(35781), + 2377: uint16(19122), + 2378: uint16(38943), + 2379: uint16(38106), + 2380: uint16(37622), + 2381: uint16(38359), + 2382: uint16(37349), + 2383: uint16(17600), + 2384: uint16(35664), + 2385: uint16(19047), + 2386: uint16(35684), + 2387: uint16(39132), + 2388: uint16(35397), + 2389: uint16(16128), + 2390: uint16(37418), + 2391: uint16(18725), + 2392: uint16(33812), + 2393: uint16(39227), + 2394: uint16(39245), + 2395: uint16(31494), + 2396: uint16(15869), + 2397: uint16(39323), + 2398: uint16(19311), + 2399: uint16(39338), + 2400: uint16(39516), + 2401: uint16(35685), + 2402: uint16(22728), + 2403: uint16(27279), + 2404: uint16(39457), + 2405: uint16(23294), + 2406: uint16(39471), + 2407: uint16(39153), + 2408: uint16(19344), + 2409: uint16(39240), + 2410: uint16(39356), + 2411: uint16(19389), + 2412: uint16(19351), + 2413: uint16(37757), + 2414: uint16(22642), + 2415: uint16(4866), + 2416: uint16(22562), + 2417: uint16(18872), + 2418: uint16(5352), + 2419: uint16(30788), + 2420: uint16(10015), + 2421: uint16(15800), + 2422: uint16(26821), + 2423: uint16(15741), + 2424: uint16(37976), + 2425: uint16(14631), + 2426: uint16(24912), + 2427: uint16(10113), + 2428: uint16(10603), + 2429: uint16(24839), + 2430: uint16(40015), + 2431: uint16(40019), + 2432: uint16(40059), + 2433: uint16(39989), + 2434: uint16(39952), + 2435: uint16(39807), + 2436: uint16(39887), + 2437: uint16(40493), + 2438: uint16(39839), + 2439: uint16(41461), + 2440: uint16(41214), + 2441: uint16(40225), + 2442: uint16(19630), + 2443: uint16(16644), + 2444: uint16(40472), + 2445: uint16(19632), + 2446: uint16(40204), + 2447: uint16(41396), + 2448: uint16(41197), + 2449: uint16(41203), + 2450: uint16(39215), + 2451: uint16(40357), + 2452: uint16(33981), + 2453: uint16(28178), + 2454: uint16(28639), + 2455: uint16(27522), + 2456: uint16(34300), + 2457: uint16(17715), + 2458: uint16(28068), + 2459: uint16(28292), + 2460: uint16(28144), + 2461: uint16(33824), + 2462: uint16(34286), + 2463: uint16(28160), + 2464: uint16(14295), + 2465: uint16(24676), + 2466: uint16(31202), + 2467: uint16(13724), + 2468: uint16(13888), + 2469: uint16(18733), + 2470: uint16(18910), + 2471: uint16(15714), + 2472: uint16(37851), + 2473: uint16(37566), + 2474: uint16(37704), + 2475: uint16(703), + 2476: uint16(30905), + 2477: uint16(37495), + 2478: uint16(37965), + 2479: uint16(20452), + 2480: uint16(13376), + 2481: uint16(36964), + 2482: uint16(21853), + 2483: uint16(30781), + 2484: uint16(30804), + 2485: uint16(30902), + 2486: uint16(30795), + 2487: uint16(5975), + 2488: uint16(12745), + 2489: uint16(18753), + 2490: uint16(13978), + 2491: uint16(20338), + 2492: uint16(28634), + 2493: uint16(28633), + 2495: uint16(28702), + 2496: uint16(21524), + 2497: uint16(16821), + 2498: uint16(22459), + 2499: uint16(22771), + 2500: uint16(22410), + 2501: uint16(40214), + 2502: uint16(22487), + 2503: uint16(28980), + 2504: uint16(13487), + 2505: uint16(16812), + 2506: uint16(29163), + 2507: uint16(27712), + 2508: uint16(20375), + 2510: uint16(6069), + 2511: uint16(35401), + 2512: uint16(24844), + 2513: uint16(23246), + 2514: uint16(23051), + 2515: uint16(17084), + 2516: uint16(17544), + 2517: uint16(14124), + 2518: uint16(19323), + 2519: uint16(35324), + 2520: uint16(37819), + 2521: uint16(37816), + 2522: uint16(6358), + 2523: uint16(3869), + 2524: uint16(33906), + 2525: uint16(27840), + 2526: uint16(5139), + 2527: uint16(17146), + 2528: uint16(11302), + 2529: uint16(17345), + 2530: uint16(22932), + 2531: uint16(15799), + 2532: uint16(26433), + 2533: uint16(32168), + 2534: uint16(24923), + 2535: uint16(24740), + 2536: uint16(18873), + 2537: uint16(18827), + 2538: uint16(35322), + 2539: uint16(37605), + 2540: uint16(29666), + 2541: uint16(16105), + 2542: uint16(29876), + 2543: uint16(35683), + 2544: uint16(6303), + 2545: uint16(16097), + 2546: uint16(19123), + 2547: uint16(27352), + 2548: uint16(29683), + 2549: uint16(29691), + 2550: uint16(16086), + 2551: uint16(19006), + 2552: uint16(19092), + 2553: uint16(6105), + 2554: uint16(19046), + 2555: uint16(935), + 2556: uint16(5156), + 2557: uint16(18917), + 2558: uint16(29768), + 2559: uint16(18710), + 2560: uint16(28837), + 2561: uint16(18806), + 2562: uint16(37508), + 2563: uint16(29670), + 2564: uint16(37727), + 2565: uint16(1278), + 2566: uint16(37681), + 2567: uint16(35534), + 2568: uint16(35350), + 2569: uint16(37766), + 2570: uint16(35815), + 2571: uint16(21973), + 2572: uint16(18741), + 2573: uint16(35458), + 2574: uint16(29035), + 2575: uint16(18755), + 2576: uint16(3327), + 2577: uint16(22180), + 2578: uint16(1562), + 2579: uint16(3051), + 2580: uint16(3256), + 2581: uint16(21762), + 2582: uint16(31172), + 2583: uint16(6138), + 2584: uint16(32254), + 2585: uint16(5826), + 2586: uint16(19024), + 2587: uint16(6226), + 2588: uint16(17710), + 2589: uint16(37889), + 2590: uint16(14090), + 2591: uint16(35520), + 2592: uint16(18861), + 2593: uint16(22960), + 2594: uint16(6335), + 2595: uint16(6275), + 2596: uint16(29828), + 2597: uint16(23201), + 2598: uint16(14050), + 2599: uint16(15707), + 2600: uint16(14000), + 2601: uint16(37471), + 2602: uint16(23161), + 2603: uint16(35457), + 2604: uint16(6242), + 2605: uint16(37748), + 2606: uint16(15565), + 2607: uint16(2740), + 2608: uint16(19094), + 2609: uint16(14730), + 2610: uint16(20724), + 2611: uint16(15721), + 2612: uint16(15692), + 2613: uint16(5020), + 2614: uint16(29045), + 2615: uint16(17147), + 2616: uint16(33304), + 2617: uint16(28175), + 2618: uint16(37092), + 2619: uint16(17643), + 2620: uint16(27991), + 2621: uint16(32335), + 2622: uint16(28775), + 2623: uint16(27823), + 2624: uint16(15574), + 2625: uint16(16365), + 2626: uint16(15917), + 2627: uint16(28162), + 2628: uint16(28428), + 2629: uint16(15727), + 2630: uint16(1013), + 2631: uint16(30033), + 2632: uint16(14012), + 2633: uint16(13512), + 2634: uint16(18048), + 2635: uint16(16090), + 2636: uint16(18545), + 2637: uint16(22980), + 2638: uint16(37486), + 2639: uint16(18750), + 2640: uint16(36673), + 2641: uint16(35868), + 2642: uint16(27584), + 2643: uint16(22546), + 2644: uint16(22472), + 2645: uint16(14038), + 2646: uint16(5202), + 2647: uint16(28926), + 2648: uint16(17250), + 2649: uint16(19057), + 2650: uint16(12259), + 2651: uint16(4784), + 2652: uint16(9149), + 2653: uint16(26809), + 2654: uint16(26983), + 2655: uint16(5016), + 2656: uint16(13541), + 2657: uint16(31732), + 2658: uint16(14047), + 2659: uint16(35459), + 2660: uint16(14294), + 2661: uint16(13306), + 2662: uint16(19615), + 2663: uint16(27162), + 2664: uint16(13997), + 2665: uint16(27831), + 2666: uint16(33854), + 2667: uint16(17631), + 2668: uint16(17614), + 2669: uint16(27942), + 2670: uint16(27985), + 2671: uint16(27778), + 2672: uint16(28638), + 2673: uint16(28439), + 2674: uint16(28937), + 2675: uint16(33597), + 2676: uint16(5946), + 2677: uint16(33773), + 2678: uint16(27776), + 2679: uint16(28755), + 2680: uint16(6107), + 2681: uint16(22921), + 2682: uint16(23170), + 2683: uint16(6067), + 2684: uint16(23137), + 2685: uint16(23153), + 2686: uint16(6405), + 2687: uint16(16892), + 2688: uint16(14125), + 2689: uint16(23023), + 2690: uint16(5948), + 2691: uint16(14023), + 2692: uint16(29070), + 2693: uint16(37776), + 2694: uint16(26266), + 2695: uint16(17061), + 2696: uint16(23150), + 2697: uint16(23083), + 2698: uint16(17043), + 2699: uint16(27179), + 2700: uint16(16121), + 2701: uint16(30518), + 2702: uint16(17499), + 2703: uint16(17098), + 2704: uint16(28957), + 2705: uint16(16985), + 2706: uint16(35297), + 2707: uint16(20400), + 2708: uint16(27944), + 2709: uint16(23746), + 2710: uint16(17614), + 2711: uint16(32333), + 2712: uint16(17341), + 2713: uint16(27148), + 2714: uint16(16982), + 2715: uint16(4868), + 2716: uint16(28838), + 2717: uint16(28979), + 2718: uint16(17385), + 2719: uint16(15781), + 2720: uint16(27871), + 2721: uint16(63525), + 2722: uint16(19023), + 2723: uint16(32357), + 2724: uint16(23019), + 2725: uint16(23855), + 2726: uint16(15859), + 2727: uint16(24412), + 2728: uint16(19037), + 2729: uint16(6111), + 2730: uint16(32164), + 2731: uint16(33830), + 2732: uint16(21637), + 2733: uint16(15098), + 2734: uint16(13056), + 2735: uint16(532), + 2736: uint16(22398), + 2737: uint16(2261), + 2738: uint16(1561), + 2739: uint16(16357), + 2740: uint16(8094), + 2741: uint16(41654), + 2742: uint16(28675), + 2743: uint16(37211), + 2744: uint16(23920), + 2745: uint16(29583), + 2746: uint16(31955), + 2747: uint16(35417), + 2748: uint16(37920), + 2749: uint16(20424), + 2750: uint16(32743), + 2751: uint16(29389), + 2752: uint16(29456), + 2753: uint16(31476), + 2754: uint16(29496), + 2755: uint16(29497), + 2756: uint16(22262), + 2757: uint16(29505), + 2758: uint16(29512), + 2759: uint16(16041), + 2760: uint16(31512), + 2761: uint16(36972), + 2762: uint16(29173), + 2763: uint16(18674), + 2764: uint16(29665), + 2765: uint16(33270), + 2766: uint16(16074), + 2767: uint16(30476), + 2768: uint16(16081), + 2769: uint16(27810), + 2770: uint16(22269), + 2771: uint16(29721), + 2772: uint16(29726), + 2773: uint16(29727), + 2774: uint16(16098), + 2775: uint16(16112), + 2776: uint16(16116), + 2777: uint16(16122), + 2778: uint16(29907), + 2779: uint16(16142), + 2780: uint16(16211), + 2781: uint16(30018), + 2782: uint16(30061), + 2783: uint16(30066), + 2784: uint16(30093), + 2785: uint16(16252), + 2786: uint16(30152), + 2787: uint16(30172), + 2788: uint16(16320), + 2789: uint16(30285), + 2790: uint16(16343), + 2791: uint16(30324), + 2792: uint16(16348), + 2793: uint16(30330), + 2794: uint16(20316), + 2795: uint16(29064), + 2796: uint16(22051), + 2797: uint16(35200), + 2798: uint16(22633), + 2799: uint16(16413), + 2800: uint16(30531), + 2801: uint16(16441), + 2802: uint16(26465), + 2803: uint16(16453), + 2804: uint16(13787), + 2805: uint16(30616), + 2806: uint16(16490), + 2807: uint16(16495), + 2808: uint16(23646), + 2809: uint16(30654), + 2810: uint16(30667), + 2811: uint16(22770), + 2812: uint16(30744), + 2813: uint16(28857), + 2814: uint16(30748), + 2815: uint16(16552), + 2816: uint16(30777), + 2817: uint16(30791), + 2818: uint16(30801), + 2819: uint16(30822), + 2820: uint16(33864), + 2821: uint16(21813), + 2822: uint16(31027), + 2823: uint16(26627), + 2824: uint16(31026), + 2825: uint16(16643), + 2826: uint16(16649), + 2827: uint16(31121), + 2828: uint16(31129), + 2829: uint16(36795), + 2830: uint16(31238), + 2831: uint16(36796), + 2832: uint16(16743), + 2833: uint16(31377), + 2834: uint16(16818), + 2835: uint16(31420), + 2836: uint16(33401), + 2837: uint16(16836), + 2838: uint16(31439), + 2839: uint16(31451), + 2840: uint16(16847), + 2841: uint16(20001), + 2842: uint16(31586), + 2843: uint16(31596), + 2844: uint16(31611), + 2845: uint16(31762), + 2846: uint16(31771), + 2847: uint16(16992), + 2848: uint16(17018), + 2849: uint16(31867), + 2850: uint16(31900), + 2851: uint16(17036), + 2852: uint16(31928), + 2853: uint16(17044), + 2854: uint16(31981), + 2855: uint16(36755), + 2856: uint16(28864), + 2857: uint16(3279), + 2858: uint16(32207), + 2859: uint16(32212), + 2860: uint16(32208), + 2861: uint16(32253), + 2862: uint16(32686), + 2863: uint16(32692), + 2864: uint16(29343), + 2865: uint16(17303), + 2866: uint16(32800), + 2867: uint16(32805), + 2868: uint16(31545), + 2869: uint16(32814), + 2870: uint16(32817), + 2871: uint16(32852), + 2872: uint16(15820), + 2873: uint16(22452), + 2874: uint16(28832), + 2875: uint16(32951), + 2876: uint16(33001), + 2877: uint16(17389), + 2878: uint16(33036), + 2879: uint16(29482), + 2880: uint16(33038), + 2881: uint16(33042), + 2882: uint16(30048), + 2883: uint16(33044), + 2884: uint16(17409), + 2885: uint16(15161), + 2886: uint16(33110), + 2887: uint16(33113), + 2888: uint16(33114), + 2889: uint16(17427), + 2890: uint16(22586), + 2891: uint16(33148), + 2892: uint16(33156), + 2893: uint16(17445), + 2894: uint16(33171), + 2895: uint16(17453), + 2896: uint16(33189), + 2897: uint16(22511), + 2898: uint16(33217), + 2899: uint16(33252), + 2900: uint16(33364), + 2901: uint16(17551), + 2902: uint16(33446), + 2903: uint16(33398), + 2904: uint16(33482), + 2905: uint16(33496), + 2906: uint16(33535), + 2907: uint16(17584), + 2908: uint16(33623), + 2909: uint16(38505), + 2910: uint16(27018), + 2911: uint16(33797), + 2912: uint16(28917), + 2913: uint16(33892), + 2914: uint16(24803), + 2915: uint16(33928), + 2916: uint16(17668), + 2917: uint16(33982), + 2918: uint16(34017), + 2919: uint16(34040), + 2920: uint16(34064), + 2921: uint16(34104), + 2922: uint16(34130), + 2923: uint16(17723), + 2924: uint16(34159), + 2925: uint16(34160), + 2926: uint16(34272), + 2927: uint16(17783), + 2928: uint16(34418), + 2929: uint16(34450), + 2930: uint16(34482), + 2931: uint16(34543), + 2932: uint16(38469), + 2933: uint16(34699), + 2934: uint16(17926), + 2935: uint16(17943), + 2936: uint16(34990), + 2937: uint16(35071), + 2938: uint16(35108), + 2939: uint16(35143), + 2940: uint16(35217), + 2941: uint16(31079), + 2942: uint16(35369), + 2943: uint16(35384), + 2944: uint16(35476), + 2945: uint16(35508), + 2946: uint16(35921), + 2947: uint16(36052), + 2948: uint16(36082), + 2949: uint16(36124), + 2950: uint16(18328), + 2951: uint16(22623), + 2952: uint16(36291), + 2953: uint16(18413), + 2954: uint16(20206), + 2955: uint16(36410), + 2956: uint16(21976), + 2957: uint16(22356), + 2958: uint16(36465), + 2959: uint16(22005), + 2960: uint16(36528), + 2961: uint16(18487), + 2962: uint16(36558), + 2963: uint16(36578), + 2964: uint16(36580), + 2965: uint16(36589), + 2966: uint16(36594), + 2967: uint16(36791), + 2968: uint16(36801), + 2969: uint16(36810), + 2970: uint16(36812), + 2971: uint16(36915), + 2972: uint16(39364), + 2973: uint16(18605), + 2974: uint16(39136), + 2975: uint16(37395), + 2976: uint16(18718), + 2977: uint16(37416), + 2978: uint16(37464), + 2979: uint16(37483), + 2980: uint16(37553), + 2981: uint16(37550), + 2982: uint16(37567), + 2983: uint16(37603), + 2984: uint16(37611), + 2985: uint16(37619), + 2986: uint16(37620), + 2987: uint16(37629), + 2988: uint16(37699), + 2989: uint16(37764), + 2990: uint16(37805), + 2991: uint16(18757), + 2992: uint16(18769), + 2993: uint16(40639), + 2994: uint16(37911), + 2995: uint16(21249), + 2996: uint16(37917), + 2997: uint16(37933), + 2998: uint16(37950), + 2999: uint16(18794), + 3000: uint16(37972), + 3001: uint16(38009), + 3002: uint16(38189), + 3003: uint16(38306), + 3004: uint16(18855), + 3005: uint16(38388), + 3006: uint16(38451), + 3007: uint16(18917), + 3008: uint16(26528), + 3009: uint16(18980), + 3010: uint16(38720), + 3011: uint16(18997), + 3012: uint16(38834), + 3013: uint16(38850), + 3014: uint16(22100), + 3015: uint16(19172), + 3016: uint16(24808), + 3017: uint16(39097), + 3018: uint16(19225), + 3019: uint16(39153), + 3020: uint16(22596), + 3021: uint16(39182), + 3022: uint16(39193), + 3023: uint16(20916), + 3024: uint16(39196), + 3025: uint16(39223), + 3026: uint16(39234), + 3027: uint16(39261), + 3028: uint16(39266), + 3029: uint16(19312), + 3030: uint16(39365), + 3031: uint16(19357), + 3032: uint16(39484), + 3033: uint16(39695), + 3034: uint16(31363), + 3035: uint16(39785), + 3036: uint16(39809), + 3037: uint16(39901), + 3038: uint16(39921), + 3039: uint16(39924), + 3040: uint16(19565), + 3041: uint16(39968), + 3042: uint16(14191), + 3043: uint16(7106), + 3044: uint16(40265), + 3045: uint16(39994), + 3046: uint16(40702), + 3047: uint16(22096), + 3048: uint16(40339), + 3049: uint16(40381), + 3050: uint16(40384), + 3051: uint16(40444), + 3052: uint16(38134), + 3053: uint16(36790), + 3054: uint16(40571), + 3055: uint16(40620), + 3056: uint16(40625), + 3057: uint16(40637), + 3058: uint16(40646), + 3059: uint16(38108), + 3060: uint16(40674), + 3061: uint16(40689), + 3062: uint16(40696), + 3063: uint16(31432), + 3064: uint16(40772), + 3065: uint16(148), + 3066: uint16(695), + 3067: uint16(928), + 3068: uint16(26906), + 3069: uint16(38083), + 3070: uint16(22956), + 3071: uint16(1239), + 3072: uint16(22592), + 3073: uint16(38081), + 3074: uint16(14265), + 3075: uint16(1493), + 3076: uint16(1557), + 3077: uint16(1654), + 3078: uint16(5818), + 3079: uint16(22359), + 3080: uint16(29043), + 3081: uint16(2754), + 3082: uint16(2765), + 3083: uint16(3007), + 3084: uint16(21610), + 3085: uint16(63547), + 3086: uint16(3019), + 3087: uint16(21662), + 3088: uint16(3067), + 3089: uint16(3131), + 3090: uint16(3155), + 3091: uint16(3173), + 3092: uint16(3196), + 3093: uint16(24807), + 3094: uint16(3213), + 3095: uint16(22138), + 3096: uint16(3253), + 3097: uint16(3293), + 3098: uint16(3309), + 3099: uint16(3439), + 3100: uint16(3506), + 3101: uint16(3528), + 3102: uint16(26965), + 3103: uint16(39983), + 3104: uint16(34725), + 3105: uint16(3588), + 3106: uint16(3598), + 3107: uint16(3799), + 3108: uint16(3984), + 3109: uint16(3885), + 3110: uint16(3699), + 3111: uint16(23584), + 3112: uint16(4028), + 3113: uint16(24075), + 3114: uint16(4188), + 3115: uint16(4175), + 3116: uint16(4214), + 3117: uint16(26398), + 3118: uint16(4219), + 3119: uint16(4232), + 3120: uint16(4246), + 3121: uint16(13895), + 3122: uint16(4287), + 3123: uint16(4307), + 3124: uint16(4399), + 3125: uint16(4411), + 3126: uint16(21348), + 3127: uint16(33965), + 3128: uint16(4835), + 3129: uint16(4981), + 3130: uint16(4918), + 3131: uint16(35713), + 3132: uint16(5495), + 3133: uint16(5657), + 3134: uint16(6083), + 3135: uint16(6087), + 3136: uint16(20088), + 3137: uint16(28859), + 3138: uint16(6189), + 3139: uint16(6506), + 3140: uint16(6701), + 3141: uint16(6725), + 3142: uint16(7210), + 3143: uint16(7280), + 3144: uint16(7340), + 3145: uint16(7880), + 3146: uint16(25283), + 3147: uint16(7893), + 3148: uint16(7957), + 3149: uint16(29080), + 3150: uint16(26709), + 3151: uint16(8261), + 3152: uint16(27113), + 3153: uint16(14024), + 3154: uint16(8828), + 3155: uint16(9175), + 3156: uint16(9210), + 3157: uint16(10026), + 3158: uint16(10353), + 3159: uint16(10575), + 3160: uint16(33533), + 3161: uint16(10599), + 3162: uint16(10643), + 3163: uint16(10965), + 3164: uint16(35237), + 3165: uint16(10984), + 3166: uint16(36768), + 3167: uint16(11022), + 3168: uint16(38840), + 3169: uint16(11071), + 3170: uint16(38983), + 3171: uint16(39613), + 3172: uint16(11340), + 3174: uint16(11400), + 3175: uint16(11447), + 3176: uint16(23528), + 3177: uint16(11528), + 3178: uint16(11538), + 3179: uint16(11703), + 3180: uint16(11669), + 3181: uint16(11842), + 3182: uint16(12148), + 3183: uint16(12236), + 3184: uint16(12339), + 3185: uint16(12390), + 3186: uint16(13087), + 3187: uint16(13278), + 3188: uint16(24497), + 3189: uint16(26184), + 3190: uint16(26303), + 3191: uint16(31353), + 3192: uint16(13671), + 3193: uint16(13811), + 3195: uint16(18874), + 3197: uint16(13850), + 3198: uint16(14102), + 3200: uint16(838), + 3201: uint16(22709), + 3202: uint16(26382), + 3203: uint16(26904), + 3204: uint16(15015), + 3205: uint16(30295), + 3206: uint16(24546), + 3207: uint16(15889), + 3208: uint16(16057), + 3209: uint16(30206), + 3210: uint16(8346), + 3211: uint16(18640), + 3212: uint16(19128), + 3213: uint16(16665), + 3214: uint16(35482), + 3215: uint16(17134), + 3216: uint16(17165), + 3217: uint16(16443), + 3218: uint16(17204), + 3219: uint16(17302), + 3220: uint16(19013), + 3221: uint16(1482), + 3222: uint16(20946), + 3223: uint16(1553), + 3224: uint16(22943), + 3225: uint16(7848), + 3226: uint16(15294), + 3227: uint16(15615), + 3228: uint16(17412), + 3229: uint16(17622), + 3230: uint16(22408), + 3231: uint16(18036), + 3232: uint16(14747), + 3233: uint16(18223), + 3234: uint16(34280), + 3235: uint16(39369), + 3236: uint16(14178), + 3237: uint16(8643), + 3238: uint16(35678), + 3239: uint16(35662), + 3241: uint16(18450), + 3242: uint16(18683), + 3243: uint16(18965), + 3244: uint16(29193), + 3245: uint16(19136), + 3246: uint16(3192), + 3247: uint16(22885), + 3248: uint16(20133), + 3249: uint16(20358), + 3250: uint16(1913), + 3251: uint16(36570), + 3252: uint16(20524), + 3253: uint16(21135), + 3254: uint16(22335), + 3255: uint16(29041), + 3256: uint16(21145), + 3257: uint16(21529), + 3258: uint16(16202), + 3259: uint16(19111), + 3260: uint16(21948), + 3261: uint16(21574), + 3262: uint16(21614), + 3263: uint16(27474), + 3265: uint16(13427), + 3266: uint16(21823), + 3267: uint16(30258), + 3268: uint16(21854), + 3269: uint16(18200), + 3270: uint16(21858), + 3271: uint16(21862), + 3272: uint16(22471), + 3273: uint16(18751), + 3274: uint16(22621), + 3275: uint16(20582), + 3276: uint16(13563), + 3277: uint16(13260), + 3279: uint16(22787), + 3280: uint16(18300), + 3281: uint16(35144), + 3282: uint16(23214), + 3283: uint16(23433), + 3284: uint16(23558), + 3285: uint16(7568), + 3286: uint16(22433), + 3287: uint16(29009), + 3289: uint16(24834), + 3290: uint16(31762), + 3291: uint16(36950), + 3292: uint16(25010), + 3293: uint16(20378), + 3294: uint16(35682), + 3295: uint16(25602), + 3296: uint16(25674), + 3297: uint16(23899), + 3298: uint16(27639), + 3300: uint16(25732), + 3301: uint16(6428), + 3302: uint16(35562), + 3303: uint16(18934), + 3304: uint16(25736), + 3305: uint16(16367), + 3306: uint16(25874), + 3307: uint16(19392), + 3308: uint16(26047), + 3309: uint16(26293), + 3310: uint16(10011), + 3311: uint16(37989), + 3312: uint16(22497), + 3313: uint16(24981), + 3314: uint16(23079), + 3315: uint16(63693), + 3317: uint16(22201), + 3318: uint16(17697), + 3319: uint16(26364), + 3320: uint16(20074), + 3321: uint16(18740), + 3322: uint16(38486), + 3323: uint16(28047), + 3324: uint16(27837), + 3325: uint16(13848), + 3326: uint16(35191), + 3327: uint16(26521), + 3328: uint16(26734), + 3329: uint16(25617), + 3330: uint16(26718), + 3332: uint16(26823), + 3333: uint16(31554), + 3334: uint16(37056), + 3335: uint16(2577), + 3336: uint16(26918), + 3338: uint16(26937), + 3339: uint16(31301), + 3341: uint16(27130), + 3342: uint16(39462), + 3343: uint16(27181), + 3344: uint16(13919), + 3345: uint16(25705), + 3346: uint16(33), + 3347: uint16(31107), + 3348: uint16(27188), + 3349: uint16(27483), + 3350: uint16(23852), + 3351: uint16(13593), + 3353: uint16(27549), + 3354: uint16(18128), + 3355: uint16(27812), + 3356: uint16(30011), + 3357: uint16(34917), + 3358: uint16(28078), + 3359: uint16(22710), + 3360: uint16(14108), + 3361: uint16(9613), + 3362: uint16(28747), + 3363: uint16(29133), + 3364: uint16(15444), + 3365: uint16(29312), + 3366: uint16(29317), + 3367: uint16(37505), + 3368: uint16(8570), + 3369: uint16(29323), + 3370: uint16(37680), + 3371: uint16(29414), + 3372: uint16(18896), + 3373: uint16(27705), + 3374: uint16(38047), + 3375: uint16(29776), + 3376: uint16(3832), + 3377: uint16(34855), + 3378: uint16(35061), + 3379: uint16(10534), + 3380: uint16(33907), + 3381: uint16(6065), + 3382: uint16(28344), + 3383: uint16(18986), + 3384: uint16(6176), + 3385: uint16(14756), + 3386: uint16(14009), + 3389: uint16(17727), + 3390: uint16(26294), + 3391: uint16(40109), + 3392: uint16(39076), + 3393: uint16(35139), + 3394: uint16(30668), + 3395: uint16(30808), + 3396: uint16(22230), + 3397: uint16(16607), + 3398: uint16(5642), + 3399: uint16(14753), + 3400: uint16(14127), + 3401: uint16(33000), + 3402: uint16(5061), + 3403: uint16(29101), + 3404: uint16(33638), + 3405: uint16(31197), + 3406: uint16(37288), + 3408: uint16(19639), + 3409: uint16(28847), + 3410: uint16(35243), + 3411: uint16(31229), + 3412: uint16(31242), + 3413: uint16(31499), + 3414: uint16(32102), + 3415: uint16(16762), + 3416: uint16(31555), + 3417: uint16(31102), + 3418: uint16(32777), + 3419: uint16(28597), + 3420: uint16(41695), + 3421: uint16(27139), + 3422: uint16(33560), + 3423: uint16(21410), + 3424: uint16(28167), + 3425: uint16(37823), + 3426: uint16(26678), + 3427: uint16(38749), + 3428: uint16(33135), + 3429: uint16(32803), + 3430: uint16(27061), + 3431: uint16(5101), + 3432: uint16(12847), + 3433: uint16(32840), + 3434: uint16(23941), + 3435: uint16(35888), + 3436: uint16(32899), + 3437: uint16(22293), + 3438: uint16(38947), + 3439: uint16(35145), + 3440: uint16(23979), + 3441: uint16(18824), + 3442: uint16(26046), + 3443: uint16(27093), + 3444: uint16(21458), + 3445: uint16(19109), + 3446: uint16(16257), + 3447: uint16(15377), + 3448: uint16(26422), + 3449: uint16(32912), + 3450: uint16(33012), + 3451: uint16(33070), + 3452: uint16(8097), + 3453: uint16(33103), + 3454: uint16(33161), + 3455: uint16(33199), + 3456: uint16(33306), + 3457: uint16(33542), + 3458: uint16(33583), + 3459: uint16(33674), + 3460: uint16(13770), + 3461: uint16(33896), + 3462: uint16(34474), + 3463: uint16(18682), + 3464: uint16(25574), + 3465: uint16(35158), + 3466: uint16(30728), + 3467: uint16(37461), + 3468: uint16(35256), + 3469: uint16(17394), + 3470: uint16(35303), + 3471: uint16(17375), + 3472: uint16(35304), + 3473: uint16(35654), + 3474: uint16(35796), + 3475: uint16(23032), + 3476: uint16(35849), + 3478: uint16(36805), + 3479: uint16(37100), + 3481: uint16(37136), + 3482: uint16(37180), + 3483: uint16(15863), + 3484: uint16(37214), + 3485: uint16(19146), + 3486: uint16(36816), + 3487: uint16(29327), + 3488: uint16(22155), + 3489: uint16(38119), + 3490: uint16(38377), + 3491: uint16(38320), + 3492: uint16(38328), + 3493: uint16(38706), + 3494: uint16(39121), + 3495: uint16(39241), + 3496: uint16(39274), + 3497: uint16(39363), + 3498: uint16(39464), + 3499: uint16(39694), + 3500: uint16(40282), + 3501: uint16(40347), + 3502: uint16(32415), + 3503: uint16(40696), + 3504: uint16(40739), + 3505: uint16(19620), + 3506: uint16(38215), + 3507: uint16(41619), + 3508: uint16(29090), + 3509: uint16(41727), + 3510: uint16(19857), + 3511: uint16(36882), + 3512: uint16(42443), + 3513: uint16(19868), + 3514: uint16(3228), + 3515: uint16(36798), + 3516: uint16(21953), + 3517: uint16(36794), + 3518: uint16(9392), + 3519: uint16(36793), + 3520: uint16(19091), + 3521: uint16(17673), + 3522: uint16(32383), + 3523: uint16(28502), + 3524: uint16(27313), + 3525: uint16(20202), + 3526: uint16(13540), + 3527: uint16(35628), + 3528: uint16(30877), + 3529: uint16(14138), + 3530: uint16(36480), + 3531: uint16(6133), + 3532: uint16(32804), + 3533: uint16(35692), + 3534: uint16(35737), + 3535: uint16(31294), + 3536: uint16(26287), + 3537: uint16(15851), + 3538: uint16(30293), + 3539: uint16(15543), + 3540: uint16(22069), + 3541: uint16(22870), + 3542: uint16(20122), + 3543: uint16(24193), + 3544: uint16(25176), + 3545: uint16(22207), + 3546: uint16(3693), + 3547: uint16(36366), + 3548: uint16(23405), + 3549: uint16(16008), + 3550: uint16(19614), + 3551: uint16(25566), + 3553: uint16(6134), + 3554: uint16(6267), + 3555: uint16(25904), + 3556: uint16(22061), + 3557: uint16(23626), + 3558: uint16(21530), + 3559: uint16(21265), + 3560: uint16(15814), + 3561: uint16(40344), + 3562: uint16(19581), + 3563: uint16(22050), + 3564: uint16(22046), + 3565: uint16(32585), + 3566: uint16(24280), + 3567: uint16(22901), + 3568: uint16(15680), + 3569: uint16(34672), + 3570: uint16(19996), + 3571: uint16(4074), + 3572: uint16(3401), + 3573: uint16(14010), + 3574: uint16(33047), + 3575: uint16(40286), + 3576: uint16(36120), + 3577: uint16(30267), + 3578: uint16(40005), + 3579: uint16(30286), + 3580: uint16(30649), + 3581: uint16(37701), + 3582: uint16(21554), + 3583: uint16(33096), + 3584: uint16(33527), + 3585: uint16(22053), + 3586: uint16(33074), + 3587: uint16(33816), + 3588: uint16(32957), + 3589: uint16(21994), + 3590: uint16(31074), + 3591: uint16(22083), + 3592: uint16(21526), + 3593: uint16(3741), + 3594: uint16(13774), + 3595: uint16(22021), + 3596: uint16(22001), + 3597: uint16(26353), + 3598: uint16(33506), + 3599: uint16(13869), + 3600: uint16(30004), + 3601: uint16(22000), + 3602: uint16(21946), + 3603: uint16(21655), + 3604: uint16(21874), + 3605: uint16(3137), + 3606: uint16(3222), + 3607: uint16(24272), + 3608: uint16(20808), + 3609: uint16(3702), + 3610: uint16(11362), + 3611: uint16(3746), + 3612: uint16(40619), + 3613: uint16(32090), + 3614: uint16(21982), + 3615: uint16(4213), + 3616: uint16(25245), + 3617: uint16(38765), + 3618: uint16(21652), + 3619: uint16(36045), + 3620: uint16(29174), + 3621: uint16(37238), + 3622: uint16(25596), + 3623: uint16(25529), + 3624: uint16(25598), + 3625: uint16(21865), + 3626: uint16(11075), + 3627: uint16(40050), + 3628: uint16(11955), + 3629: uint16(20890), + 3630: uint16(13535), + 3631: uint16(3495), + 3632: uint16(20903), + 3633: uint16(21581), + 3634: uint16(21790), + 3635: uint16(21779), + 3636: uint16(30310), + 3637: uint16(36397), + 3638: uint16(26762), + 3639: uint16(30129), + 3640: uint16(32950), + 3641: uint16(34820), + 3642: uint16(34694), + 3643: uint16(35015), + 3644: uint16(33206), + 3645: uint16(33820), + 3646: uint16(4289), + 3647: uint16(17644), + 3648: uint16(29444), + 3649: uint16(18182), + 3650: uint16(23440), + 3651: uint16(33547), + 3652: uint16(26771), + 3653: uint16(22139), + 3654: uint16(9972), + 3655: uint16(32047), + 3656: uint16(16803), + 3657: uint16(32115), + 3658: uint16(28368), + 3659: uint16(29366), + 3660: uint16(37232), + 3661: uint16(4569), + 3662: uint16(37384), + 3663: uint16(15612), + 3664: uint16(42665), + 3665: uint16(3756), + 3666: uint16(3833), + 3667: uint16(29286), + 3668: uint16(7330), + 3669: uint16(18254), + 3670: uint16(20418), + 3671: uint16(32761), + 3672: uint16(4075), + 3673: uint16(16634), + 3674: uint16(40029), + 3675: uint16(25887), + 3676: uint16(11680), + 3677: uint16(18675), + 3678: uint16(18400), + 3679: uint16(40316), + 3680: uint16(4076), + 3681: uint16(3594), + 3683: uint16(30115), + 3684: uint16(4077), + 3686: uint16(24648), + 3687: uint16(4487), + 3688: uint16(29091), + 3689: uint16(32398), + 3690: uint16(40272), + 3691: uint16(19994), + 3692: uint16(19972), + 3693: uint16(13687), + 3694: uint16(23309), + 3695: uint16(27826), + 3696: uint16(21351), + 3697: uint16(13996), + 3698: uint16(14812), + 3699: uint16(21373), + 3700: uint16(13989), + 3701: uint16(17944), + 3702: uint16(22682), + 3703: uint16(19310), + 3704: uint16(33325), + 3705: uint16(21579), + 3706: uint16(22442), + 3707: uint16(23189), + 3708: uint16(2425), + 3710: uint16(14930), + 3711: uint16(9317), + 3712: uint16(29556), + 3713: uint16(40620), + 3714: uint16(19721), + 3715: uint16(39917), + 3716: uint16(15614), + 3717: uint16(40752), + 3718: uint16(19547), + 3719: uint16(20393), + 3720: uint16(38302), + 3721: uint16(40926), + 3722: uint16(33884), + 3723: uint16(15798), + 3724: uint16(29362), + 3725: uint16(26547), + 3726: uint16(14112), + 3727: uint16(25390), + 3728: uint16(32037), + 3729: uint16(16119), + 3730: uint16(15916), + 3731: uint16(14890), + 3732: uint16(36872), + 3733: uint16(21196), + 3734: uint16(15988), + 3735: uint16(13946), + 3736: uint16(17897), + 3737: uint16(1166), + 3738: uint16(30272), + 3739: uint16(23280), + 3740: uint16(3766), + 3741: uint16(30842), + 3742: uint16(32558), + 3743: uint16(22695), + 3744: uint16(16575), + 3745: uint16(22140), + 3746: uint16(39819), + 3747: uint16(23924), + 3748: uint16(30292), + 3749: uint16(42036), + 3750: uint16(40581), + 3751: uint16(19681), + 3753: uint16(14331), + 3754: uint16(24857), + 3755: uint16(12506), + 3756: uint16(17394), + 3758: uint16(22109), + 3759: uint16(4777), + 3760: uint16(22439), + 3761: uint16(18787), + 3762: uint16(40454), + 3763: uint16(21044), + 3764: uint16(28846), + 3765: uint16(13741), + 3767: uint16(40316), + 3768: uint16(31830), + 3769: uint16(39737), + 3770: uint16(22494), + 3771: uint16(5996), + 3772: uint16(23635), + 3773: uint16(25811), + 3774: uint16(38096), + 3775: uint16(25397), + 3776: uint16(29028), + 3777: uint16(34477), + 3778: uint16(3368), + 3779: uint16(27938), + 3780: uint16(19170), + 3781: uint16(3441), + 3783: uint16(20990), + 3784: uint16(7951), + 3785: uint16(23950), + 3786: uint16(38659), + 3787: uint16(7633), + 3788: uint16(40577), + 3789: uint16(36940), + 3790: uint16(31519), + 3791: uint16(39682), + 3792: uint16(23761), + 3793: uint16(31651), + 3794: uint16(25192), + 3795: uint16(25397), + 3796: uint16(39679), + 3797: uint16(31695), + 3798: uint16(39722), + 3799: uint16(31870), + 3801: uint16(31810), + 3802: uint16(31878), + 3803: uint16(39957), + 3804: uint16(31740), + 3805: uint16(39689), + 3807: uint16(39963), + 3808: uint16(18750), + 3809: uint16(40794), + 3810: uint16(21875), + 3811: uint16(23491), + 3812: uint16(20477), + 3813: uint16(40600), + 3814: uint16(20466), + 3815: uint16(21088), + 3816: uint16(15878), + 3817: uint16(21201), + 3818: uint16(22375), + 3819: uint16(20566), + 3820: uint16(22967), + 3821: uint16(24082), + 3822: uint16(38856), + 3823: uint16(40363), + 3824: uint16(36700), + 3825: uint16(21609), + 3826: uint16(38836), + 3827: uint16(39232), + 3828: uint16(38842), + 3829: uint16(21292), + 3830: uint16(24880), + 3831: uint16(26924), + 3832: uint16(21466), + 3833: uint16(39946), + 3834: uint16(40194), + 3835: uint16(19515), + 3836: uint16(38465), + 3837: uint16(27008), + 3838: uint16(20646), + 3839: uint16(30022), + 3840: uint16(5997), + 3841: uint16(39386), + 3842: uint16(21107), + 3844: uint16(37209), + 3845: uint16(38529), + 3846: uint16(37212), + 3848: uint16(37201), + 3849: uint16(36503), + 3850: uint16(25471), + 3851: uint16(27939), + 3852: uint16(27338), + 3853: uint16(22033), + 3854: uint16(37262), + 3855: uint16(30074), + 3856: uint16(25221), + 3857: uint16(1020), + 3858: uint16(29519), + 3859: uint16(31856), + 3860: uint16(23585), + 3861: uint16(15613), + 3863: uint16(18713), + 3864: uint16(30422), + 3865: uint16(39837), + 3866: uint16(20010), + 3867: uint16(3284), + 3868: uint16(33726), + 3869: uint16(34882), + 3871: uint16(23626), + 3872: uint16(27072), + 3874: uint16(22394), + 3875: uint16(21023), + 3876: uint16(24053), + 3877: uint16(20174), + 3878: uint16(27697), + 3879: uint16(498), + 3880: uint16(20281), + 3881: uint16(21660), + 3882: uint16(21722), + 3883: uint16(21146), + 3884: uint16(36226), + 3885: uint16(13822), + 3887: uint16(13811), + 3889: uint16(27474), + 3890: uint16(37244), + 3891: uint16(40869), + 3892: uint16(39831), + 3893: uint16(38958), + 3894: uint16(39092), + 3895: uint16(39610), + 3896: uint16(40616), + 3897: uint16(40580), + 3898: uint16(29050), + 3899: uint16(31508), + 3901: uint16(27642), + 3902: uint16(34840), + 3903: uint16(32632), + 3905: uint16(22048), + 3906: uint16(42570), + 3907: uint16(36471), + 3908: uint16(40787), + 3910: uint16(36308), + 3911: uint16(36431), + 3912: uint16(40476), + 3913: uint16(36353), + 3914: uint16(25218), + 3915: uint16(33661), + 3916: uint16(36392), + 3917: uint16(36469), + 3918: uint16(31443), + 3919: uint16(19063), + 3920: uint16(31294), + 3921: uint16(30936), + 3922: uint16(27882), + 3923: uint16(35431), + 3924: uint16(30215), + 3925: uint16(35418), + 3926: uint16(40742), + 3927: uint16(27854), + 3928: uint16(34774), + 3929: uint16(30147), + 3930: uint16(41650), + 3931: uint16(30803), + 3932: uint16(63552), + 3933: uint16(36108), + 3934: uint16(29410), + 3935: uint16(29553), + 3936: uint16(35629), + 3937: uint16(29442), + 3938: uint16(29937), + 3939: uint16(36075), + 3940: uint16(19131), + 3941: uint16(34351), + 3942: uint16(24506), + 3943: uint16(34976), + 3944: uint16(17591), + 3946: uint16(6203), + 3947: uint16(28165), + 3949: uint16(35454), + 3950: uint16(9499), + 3952: uint16(24829), + 3953: uint16(30311), + 3954: uint16(39639), + 3955: uint16(40260), + 3956: uint16(37742), + 3957: uint16(39823), + 3958: uint16(34805), + 3961: uint16(36087), + 3962: uint16(29484), + 3963: uint16(38689), + 3964: uint16(39856), + 3965: uint16(13782), + 3966: uint16(29362), + 3967: uint16(19463), + 3968: uint16(31825), + 3969: uint16(39242), + 3970: uint16(24921), + 3971: uint16(24921), + 3972: uint16(19460), + 3973: uint16(40598), + 3974: uint16(24957), + 3976: uint16(22367), + 3977: uint16(24943), + 3978: uint16(25254), + 3979: uint16(25145), + 3981: uint16(14940), + 3982: uint16(25058), + 3983: uint16(21418), + 3984: uint16(13301), + 3985: uint16(25444), + 3986: uint16(26626), + 3987: uint16(13778), + 3988: uint16(23895), + 3989: uint16(35778), + 3990: uint16(36826), + 3991: uint16(36409), + 3993: uint16(20697), + 3994: uint16(7494), + 3995: uint16(30982), + 3996: uint16(21298), + 3997: uint16(38456), + 3998: uint16(3899), + 3999: uint16(16485), + 4001: uint16(30718), + 4003: uint16(31938), + 4004: uint16(24346), + 4005: uint16(31962), + 4006: uint16(31277), + 4007: uint16(32870), + 4008: uint16(32867), + 4009: uint16(32077), + 4010: uint16(29957), + 4011: uint16(29938), + 4012: uint16(35220), + 4013: uint16(33306), + 4014: uint16(26380), + 4015: uint16(32866), + 4016: uint16(29830), + 4017: uint16(32859), + 4018: uint16(29936), + 4019: uint16(33027), + 4020: uint16(30500), + 4021: uint16(35209), + 4022: uint16(26572), + 4023: uint16(30035), + 4024: uint16(28369), + 4025: uint16(34729), + 4026: uint16(34766), + 4027: uint16(33224), + 4028: uint16(34700), + 4029: uint16(35401), + 4030: uint16(36013), + 4031: uint16(35651), + 4032: uint16(30507), + 4033: uint16(29944), + 4034: uint16(34010), + 4035: uint16(13877), + 4036: uint16(27058), + 4037: uint16(36262), + 4039: uint16(35241), + 4041: uint16(28089), + 4042: uint16(34753), + 4043: uint16(16401), + 4044: uint16(29927), + 4045: uint16(15835), + 4046: uint16(29046), + 4047: uint16(24740), + 4048: uint16(24988), + 4049: uint16(15569), + 4051: uint16(24695), + 4053: uint16(32625), + 4054: uint16(35629), + 4056: uint16(24809), + 4057: uint16(19326), + 4058: uint16(21024), + 4059: uint16(15384), + 4060: uint16(15559), + 4061: uint16(24279), + 4062: uint16(30294), + 4063: uint16(21809), + 4064: uint16(6468), + 4065: uint16(4862), + 4066: uint16(39171), + 4067: uint16(28124), + 4068: uint16(28845), + 4069: uint16(23745), + 4070: uint16(25005), + 4071: uint16(35343), + 4072: uint16(13943), + 4073: uint16(238), + 4074: uint16(26694), + 4075: uint16(20238), + 4076: uint16(17762), + 4077: uint16(23327), + 4078: uint16(25420), + 4079: uint16(40784), + 4080: uint16(40614), + 4081: uint16(25195), + 4082: uint16(1351), + 4083: uint16(37595), + 4084: uint16(1503), + 4085: uint16(16325), + 4086: uint16(34124), + 4087: uint16(17077), + 4088: uint16(29679), + 4089: uint16(20917), + 4090: uint16(13897), + 4091: uint16(18754), + 4092: uint16(35300), + 4093: uint16(37700), + 4094: uint16(6619), + 4095: uint16(33518), + 4096: uint16(15560), + 4097: uint16(30780), + 4098: uint16(26436), + 4099: uint16(25311), + 4100: uint16(18739), + 4101: uint16(35242), + 4102: uint16(672), + 4103: uint16(27571), + 4104: uint16(4869), + 4105: uint16(20395), + 4106: uint16(9453), + 4107: uint16(20488), + 4108: uint16(27945), + 4109: uint16(31364), + 4110: uint16(13824), + 4111: uint16(19121), + 4112: uint16(9491), + 4114: uint16(894), + 4115: uint16(24484), + 4116: uint16(896), + 4117: uint16(839), + 4118: uint16(28379), + 4119: uint16(1055), + 4121: uint16(20737), + 4122: uint16(13434), + 4123: uint16(20750), + 4124: uint16(39020), + 4125: uint16(14147), + 4126: uint16(33814), + 4127: uint16(18852), + 4128: uint16(1159), + 4129: uint16(20832), + 4130: uint16(13236), + 4131: uint16(20842), + 4132: uint16(3071), + 4133: uint16(8444), + 4134: uint16(741), + 4135: uint16(9520), + 4136: uint16(1422), + 4137: uint16(12851), + 4138: uint16(6531), + 4139: uint16(23426), + 4140: uint16(34685), + 4141: uint16(1459), + 4142: uint16(15513), + 4143: uint16(20914), + 4144: uint16(20920), + 4145: uint16(40244), + 4146: uint16(20937), + 4147: uint16(20943), + 4148: uint16(20945), + 4149: uint16(15580), + 4150: uint16(20947), + 4151: uint16(19110), + 4152: uint16(20915), + 4153: uint16(20962), + 4154: uint16(21314), + 4155: uint16(20973), + 4156: uint16(33741), + 4157: uint16(26942), + 4158: uint16(14125), + 4159: uint16(24443), + 4160: uint16(21003), + 4161: uint16(21030), + 4162: uint16(21052), + 4163: uint16(21173), + 4164: uint16(21079), + 4165: uint16(21140), + 4166: uint16(21177), + 4167: uint16(21189), + 4168: uint16(31765), + 4169: uint16(34114), + 4170: uint16(21216), + 4171: uint16(34317), + 4172: uint16(27411), + 4174: uint16(35550), + 4175: uint16(21833), + 4176: uint16(28377), + 4177: uint16(16256), + 4178: uint16(2388), + 4179: uint16(16364), + 4180: uint16(21299), + 4182: uint16(3042), + 4183: uint16(27851), + 4184: uint16(5926), + 4185: uint16(26651), + 4186: uint16(29653), + 4187: uint16(24650), + 4188: uint16(16042), + 4189: uint16(14540), + 4190: uint16(5864), + 4191: uint16(29149), + 4192: uint16(17570), + 4193: uint16(21357), + 4194: uint16(21364), + 4195: uint16(34475), + 4196: uint16(21374), + 4198: uint16(5526), + 4199: uint16(5651), + 4200: uint16(30694), + 4201: uint16(21395), + 4202: uint16(35483), + 4203: uint16(21408), + 4204: uint16(21419), + 4205: uint16(21422), + 4206: uint16(29607), + 4207: uint16(22386), + 4208: uint16(16217), + 4209: uint16(29596), + 4210: uint16(21441), + 4211: uint16(21445), + 4212: uint16(27721), + 4213: uint16(20041), + 4214: uint16(22526), + 4215: uint16(21465), + 4216: uint16(15019), + 4217: uint16(2959), + 4218: uint16(21472), + 4219: uint16(16363), + 4220: uint16(11683), + 4221: uint16(21494), + 4222: uint16(3191), + 4223: uint16(21523), + 4224: uint16(28793), + 4225: uint16(21803), + 4226: uint16(26199), + 4227: uint16(27995), + 4228: uint16(21613), + 4229: uint16(27475), + 4230: uint16(3444), + 4231: uint16(21853), + 4232: uint16(21647), + 4233: uint16(21668), + 4234: uint16(18342), + 4235: uint16(5901), + 4236: uint16(3805), + 4237: uint16(15796), + 4238: uint16(3405), + 4239: uint16(35260), + 4240: uint16(9880), + 4241: uint16(21831), + 4242: uint16(19693), + 4243: uint16(21551), + 4244: uint16(29719), + 4245: uint16(21894), + 4246: uint16(21929), + 4248: uint16(6359), + 4249: uint16(16442), + 4250: uint16(17746), + 4251: uint16(17461), + 4252: uint16(26291), + 4253: uint16(4276), + 4254: uint16(22071), + 4255: uint16(26317), + 4256: uint16(12938), + 4257: uint16(26276), + 4258: uint16(26285), + 4259: uint16(22093), + 4260: uint16(22095), + 4261: uint16(30961), + 4262: uint16(22257), + 4263: uint16(38791), + 4264: uint16(21502), + 4265: uint16(22272), + 4266: uint16(22255), + 4267: uint16(22253), + 4268: uint16(35686), + 4269: uint16(13859), + 4270: uint16(4687), + 4271: uint16(22342), + 4272: uint16(16805), + 4273: uint16(27758), + 4274: uint16(28811), + 4275: uint16(22338), + 4276: uint16(14001), + 4277: uint16(27774), + 4278: uint16(22502), + 4279: uint16(5142), + 4280: uint16(22531), + 4281: uint16(5204), + 4282: uint16(17251), + 4283: uint16(22566), + 4284: uint16(19445), + 4285: uint16(22620), + 4286: uint16(22698), + 4287: uint16(13665), + 4288: uint16(22752), + 4289: uint16(22748), + 4290: uint16(4668), + 4291: uint16(22779), + 4292: uint16(23551), + 4293: uint16(22339), + 4294: uint16(41296), + 4295: uint16(17016), + 4296: uint16(37843), + 4297: uint16(13729), + 4298: uint16(22815), + 4299: uint16(26790), + 4300: uint16(14019), + 4301: uint16(28249), + 4302: uint16(5694), + 4303: uint16(23076), + 4304: uint16(21843), + 4305: uint16(5778), + 4306: uint16(34053), + 4307: uint16(22985), + 4308: uint16(3406), + 4309: uint16(27777), + 4310: uint16(27946), + 4311: uint16(6108), + 4312: uint16(23001), + 4313: uint16(6139), + 4314: uint16(6066), + 4315: uint16(28070), + 4316: uint16(28017), + 4317: uint16(6184), + 4318: uint16(5845), + 4319: uint16(23033), + 4320: uint16(28229), + 4321: uint16(23211), + 4322: uint16(23139), + 4323: uint16(14054), + 4324: uint16(18857), + 4326: uint16(14088), + 4327: uint16(23190), + 4328: uint16(29797), + 4329: uint16(23251), + 4330: uint16(28577), + 4331: uint16(9556), + 4332: uint16(15749), + 4333: uint16(6417), + 4334: uint16(14130), + 4335: uint16(5816), + 4336: uint16(24195), + 4337: uint16(21200), + 4338: uint16(23414), + 4339: uint16(25992), + 4340: uint16(23420), + 4341: uint16(31246), + 4342: uint16(16388), + 4343: uint16(18525), + 4344: uint16(516), + 4345: uint16(23509), + 4346: uint16(24928), + 4347: uint16(6708), + 4348: uint16(22988), + 4349: uint16(1445), + 4350: uint16(23539), + 4351: uint16(23453), + 4352: uint16(19728), + 4353: uint16(23557), + 4354: uint16(6980), + 4355: uint16(23571), + 4356: uint16(29646), + 4357: uint16(23572), + 4358: uint16(7333), + 4359: uint16(27432), + 4360: uint16(23625), + 4361: uint16(18653), + 4362: uint16(23685), + 4363: uint16(23785), + 4364: uint16(23791), + 4365: uint16(23947), + 4366: uint16(7673), + 4367: uint16(7735), + 4368: uint16(23824), + 4369: uint16(23832), + 4370: uint16(23878), + 4371: uint16(7844), + 4372: uint16(23738), + 4373: uint16(24023), + 4374: uint16(33532), + 4375: uint16(14381), + 4376: uint16(18689), + 4377: uint16(8265), + 4378: uint16(8563), + 4379: uint16(33415), + 4380: uint16(14390), + 4381: uint16(15298), + 4382: uint16(24110), + 4383: uint16(27274), + 4385: uint16(24186), + 4386: uint16(17596), + 4387: uint16(3283), + 4388: uint16(21414), + 4389: uint16(20151), + 4391: uint16(21416), + 4392: uint16(6001), + 4393: uint16(24073), + 4394: uint16(24308), + 4395: uint16(33922), + 4396: uint16(24313), + 4397: uint16(24315), + 4398: uint16(14496), + 4399: uint16(24316), + 4400: uint16(26686), + 4401: uint16(37915), + 4402: uint16(24333), + 4403: uint16(449), + 4404: uint16(63636), + 4405: uint16(15070), + 4406: uint16(18606), + 4407: uint16(4922), + 4408: uint16(24378), + 4409: uint16(26760), + 4410: uint16(9168), + 4412: uint16(9329), + 4413: uint16(24419), + 4414: uint16(38845), + 4415: uint16(28270), + 4416: uint16(24434), + 4417: uint16(37696), + 4418: uint16(35382), + 4419: uint16(24487), + 4420: uint16(23990), + 4421: uint16(15711), + 4422: uint16(21072), + 4423: uint16(8042), + 4424: uint16(28920), + 4425: uint16(9832), + 4426: uint16(37334), + 4427: uint16(670), + 4428: uint16(35369), + 4429: uint16(24625), + 4430: uint16(26245), + 4431: uint16(6263), + 4432: uint16(14691), + 4433: uint16(15815), + 4434: uint16(13881), + 4435: uint16(22416), + 4436: uint16(10164), + 4437: uint16(31089), + 4438: uint16(15936), + 4439: uint16(24734), + 4441: uint16(24755), + 4442: uint16(18818), + 4443: uint16(18831), + 4444: uint16(31315), + 4445: uint16(29860), + 4446: uint16(20705), + 4447: uint16(23200), + 4448: uint16(24932), + 4449: uint16(33828), + 4450: uint16(24898), + 4451: uint16(63654), + 4452: uint16(28370), + 4453: uint16(24961), + 4454: uint16(20980), + 4455: uint16(1622), + 4456: uint16(24967), + 4457: uint16(23466), + 4458: uint16(16311), + 4459: uint16(10335), + 4460: uint16(25043), + 4461: uint16(35741), + 4462: uint16(39261), + 4463: uint16(25040), + 4464: uint16(14642), + 4465: uint16(10624), + 4466: uint16(10433), + 4467: uint16(24611), + 4468: uint16(24924), + 4469: uint16(25886), + 4470: uint16(25483), + 4471: uint16(280), + 4472: uint16(25285), + 4473: uint16(6000), + 4474: uint16(25301), + 4475: uint16(11789), + 4476: uint16(25452), + 4477: uint16(18911), + 4478: uint16(14871), + 4479: uint16(25656), + 4480: uint16(25592), + 4481: uint16(5006), + 4482: uint16(6140), + 4484: uint16(28554), + 4485: uint16(11830), + 4486: uint16(38932), + 4487: uint16(16524), + 4488: uint16(22301), + 4489: uint16(25825), + 4490: uint16(25829), + 4491: uint16(38011), + 4492: uint16(14950), + 4493: uint16(25658), + 4494: uint16(14935), + 4495: uint16(25933), + 4496: uint16(28438), + 4497: uint16(18984), + 4498: uint16(18979), + 4499: uint16(25989), + 4500: uint16(25965), + 4501: uint16(25951), + 4502: uint16(12414), + 4503: uint16(26037), + 4504: uint16(18752), + 4505: uint16(19255), + 4506: uint16(26065), + 4507: uint16(16600), + 4508: uint16(6185), + 4509: uint16(26080), + 4510: uint16(26083), + 4511: uint16(24543), + 4512: uint16(13312), + 4513: uint16(26136), + 4514: uint16(12791), + 4515: uint16(12792), + 4516: uint16(26180), + 4517: uint16(12708), + 4518: uint16(12709), + 4519: uint16(26187), + 4520: uint16(3701), + 4521: uint16(26215), + 4522: uint16(20966), + 4523: uint16(26227), + 4525: uint16(7741), + 4526: uint16(12849), + 4527: uint16(34292), + 4528: uint16(12744), + 4529: uint16(21267), + 4530: uint16(30661), + 4531: uint16(10487), + 4532: uint16(39332), + 4533: uint16(26370), + 4534: uint16(17308), + 4535: uint16(18977), + 4536: uint16(15147), + 4537: uint16(27130), + 4538: uint16(14274), + 4540: uint16(26471), + 4541: uint16(26466), + 4542: uint16(16845), + 4543: uint16(37101), + 4544: uint16(26583), + 4545: uint16(17641), + 4546: uint16(26658), + 4547: uint16(28240), + 4548: uint16(37436), + 4549: uint16(26625), + 4550: uint16(13286), + 4551: uint16(28064), + 4552: uint16(26717), + 4553: uint16(13423), + 4554: uint16(27105), + 4555: uint16(27147), + 4556: uint16(35551), + 4557: uint16(26995), + 4558: uint16(26819), + 4559: uint16(13773), + 4560: uint16(26881), + 4561: uint16(26880), + 4562: uint16(15666), + 4563: uint16(14849), + 4564: uint16(13884), + 4565: uint16(15232), + 4566: uint16(26540), + 4567: uint16(26977), + 4568: uint16(35402), + 4569: uint16(17148), + 4570: uint16(26934), + 4571: uint16(27032), + 4572: uint16(15265), + 4573: uint16(969), + 4574: uint16(33635), + 4575: uint16(20624), + 4576: uint16(27129), + 4577: uint16(13913), + 4578: uint16(8490), + 4579: uint16(27205), + 4580: uint16(14083), + 4581: uint16(27293), + 4582: uint16(15347), + 4583: uint16(26545), + 4584: uint16(27336), + 4585: uint16(37276), + 4586: uint16(15373), + 4587: uint16(27421), + 4588: uint16(2339), + 4589: uint16(24798), + 4590: uint16(27445), + 4591: uint16(27508), + 4592: uint16(10189), + 4593: uint16(28341), + 4594: uint16(15067), + 4595: uint16(949), + 4596: uint16(6488), + 4597: uint16(14144), + 4598: uint16(21537), + 4599: uint16(15194), + 4600: uint16(27617), + 4601: uint16(16124), + 4602: uint16(27612), + 4603: uint16(27703), + 4604: uint16(9355), + 4605: uint16(18673), + 4606: uint16(27473), + 4607: uint16(27738), + 4608: uint16(33318), + 4609: uint16(27769), + 4610: uint16(15804), + 4611: uint16(17605), + 4612: uint16(15805), + 4613: uint16(16804), + 4614: uint16(18700), + 4615: uint16(18688), + 4616: uint16(15561), + 4617: uint16(14053), + 4618: uint16(15595), + 4619: uint16(3378), + 4620: uint16(39811), + 4621: uint16(12793), + 4622: uint16(9361), + 4623: uint16(32655), + 4624: uint16(26679), + 4625: uint16(27941), + 4626: uint16(28065), + 4627: uint16(28139), + 4628: uint16(28054), + 4629: uint16(27996), + 4630: uint16(28284), + 4631: uint16(28420), + 4632: uint16(18815), + 4633: uint16(16517), + 4634: uint16(28274), + 4635: uint16(34099), + 4636: uint16(28532), + 4637: uint16(20935), + 4640: uint16(33838), + 4641: uint16(35617), + 4643: uint16(15919), + 4644: uint16(29779), + 4645: uint16(16258), + 4646: uint16(31180), + 4647: uint16(28239), + 4648: uint16(23185), + 4649: uint16(12363), + 4650: uint16(28664), + 4651: uint16(14093), + 4652: uint16(28573), + 4653: uint16(15920), + 4654: uint16(28410), + 4655: uint16(5271), + 4656: uint16(16445), + 4657: uint16(17749), + 4658: uint16(37872), + 4659: uint16(28484), + 4660: uint16(28508), + 4661: uint16(15694), + 4662: uint16(28532), + 4663: uint16(37232), + 4664: uint16(15675), + 4665: uint16(28575), + 4666: uint16(16708), + 4667: uint16(28627), + 4668: uint16(16529), + 4669: uint16(16725), + 4670: uint16(16441), + 4671: uint16(16368), + 4672: uint16(16308), + 4673: uint16(16703), + 4674: uint16(20959), + 4675: uint16(16726), + 4676: uint16(16727), + 4677: uint16(16704), + 4678: uint16(25053), + 4679: uint16(28747), + 4680: uint16(28798), + 4681: uint16(28839), + 4682: uint16(28801), + 4683: uint16(28876), + 4684: uint16(28885), + 4685: uint16(28886), + 4686: uint16(28895), + 4687: uint16(16644), + 4688: uint16(15848), + 4689: uint16(29108), + 4690: uint16(29078), + 4691: uint16(17015), + 4692: uint16(28971), + 4693: uint16(28997), + 4694: uint16(23176), + 4695: uint16(29002), + 4697: uint16(23708), + 4698: uint16(17253), + 4699: uint16(29007), + 4700: uint16(37730), + 4701: uint16(17089), + 4702: uint16(28972), + 4703: uint16(17498), + 4704: uint16(18983), + 4705: uint16(18978), + 4706: uint16(29114), + 4707: uint16(35816), + 4708: uint16(28861), + 4709: uint16(29198), + 4710: uint16(37954), + 4711: uint16(29205), + 4712: uint16(22801), + 4713: uint16(37955), + 4714: uint16(29220), + 4715: uint16(37697), + 4716: uint16(22021), + 4717: uint16(29230), + 4718: uint16(29248), + 4719: uint16(18804), + 4720: uint16(26813), + 4721: uint16(29269), + 4722: uint16(29271), + 4723: uint16(15957), + 4724: uint16(12356), + 4725: uint16(26637), + 4726: uint16(28477), + 4727: uint16(29314), + 4729: uint16(29483), + 4730: uint16(18467), + 4731: uint16(34859), + 4732: uint16(18669), + 4733: uint16(34820), + 4734: uint16(29480), + 4735: uint16(29486), + 4736: uint16(29647), + 4737: uint16(29610), + 4738: uint16(3130), + 4739: uint16(27182), + 4740: uint16(29641), + 4741: uint16(29769), + 4742: uint16(16866), + 4743: uint16(5863), + 4744: uint16(18980), + 4745: uint16(26147), + 4746: uint16(14021), + 4747: uint16(18871), + 4748: uint16(18829), + 4749: uint16(18939), + 4750: uint16(29687), + 4751: uint16(29717), + 4752: uint16(26883), + 4753: uint16(18982), + 4754: uint16(29753), + 4755: uint16(1475), + 4756: uint16(16087), + 4758: uint16(10413), + 4759: uint16(29792), + 4760: uint16(36530), + 4761: uint16(29767), + 4762: uint16(29668), + 4763: uint16(29814), + 4764: uint16(33721), + 4765: uint16(29804), + 4766: uint16(14128), + 4767: uint16(29812), + 4768: uint16(37873), + 4769: uint16(27180), + 4770: uint16(29826), + 4771: uint16(18771), + 4772: uint16(19084), + 4773: uint16(16735), + 4774: uint16(19065), + 4775: uint16(35727), + 4776: uint16(23366), + 4777: uint16(35843), + 4778: uint16(6302), + 4779: uint16(29896), + 4780: uint16(6536), + 4781: uint16(29966), + 4783: uint16(29982), + 4784: uint16(36569), + 4785: uint16(6731), + 4786: uint16(23511), + 4787: uint16(36524), + 4788: uint16(37765), + 4789: uint16(30029), + 4790: uint16(30026), + 4791: uint16(30055), + 4792: uint16(30062), + 4793: uint16(20354), + 4794: uint16(16132), + 4795: uint16(19731), + 4796: uint16(30094), + 4797: uint16(29789), + 4798: uint16(30110), + 4799: uint16(30132), + 4800: uint16(30210), + 4801: uint16(30252), + 4802: uint16(30289), + 4803: uint16(30287), + 4804: uint16(30319), + 4805: uint16(30326), + 4806: uint16(25589), + 4807: uint16(30352), + 4808: uint16(33263), + 4809: uint16(14328), + 4810: uint16(26897), + 4811: uint16(26894), + 4812: uint16(30369), + 4813: uint16(30373), + 4814: uint16(30391), + 4815: uint16(30412), + 4816: uint16(28575), + 4817: uint16(33890), + 4818: uint16(20637), + 4819: uint16(20861), + 4820: uint16(7708), + 4821: uint16(30494), + 4822: uint16(30502), + 4823: uint16(30528), + 4824: uint16(25775), + 4825: uint16(21024), + 4826: uint16(30552), + 4827: uint16(12972), + 4828: uint16(30639), + 4829: uint16(35172), + 4830: uint16(35176), + 4831: uint16(5825), + 4832: uint16(30708), + 4834: uint16(4982), + 4835: uint16(18962), + 4836: uint16(26826), + 4837: uint16(30895), + 4838: uint16(30919), + 4839: uint16(30931), + 4840: uint16(38565), + 4841: uint16(31022), + 4842: uint16(21984), + 4843: uint16(30935), + 4844: uint16(31028), + 4845: uint16(30897), + 4846: uint16(30220), + 4847: uint16(36792), + 4848: uint16(34948), + 4849: uint16(35627), + 4850: uint16(24707), + 4851: uint16(9756), + 4852: uint16(31110), + 4853: uint16(35072), + 4854: uint16(26882), + 4855: uint16(31104), + 4856: uint16(22615), + 4857: uint16(31133), + 4858: uint16(31545), + 4859: uint16(31036), + 4860: uint16(31145), + 4861: uint16(28202), + 4862: uint16(28966), + 4863: uint16(16040), + 4864: uint16(31174), + 4865: uint16(37133), + 4866: uint16(31188), + 4867: uint16(1312), + 4868: uint16(17503), + 4869: uint16(21007), + 4870: uint16(47234), + 4871: uint16(248), + 4872: uint16(16384), + 4873: uint16(43296), + 4874: uint16(1102), + 4877: uint16(2868), + 4878: uint16(1), + 4886: uint16(3072), + 4887: uint16(64), + 4891: uint16(1024), + 4892: uint16(88), + 4893: uint16(60), + 4896: uint16(23680), + 4897: uint16(56493), + 4898: uint16(48115), + 4899: uint16(17353), + 4900: uint16(60910), + 4901: uint16(4004), + 4902: uint16(49446), + 4903: uint16(30363), + 4904: uint16(61426), + 4905: uint16(64478), + 4906: uint16(63482), + 4907: uint16(12815), + 4908: uint16(44868), + 4909: uint16(61438), + 4910: uint16(65277), + 4911: uint16(24593), + 4912: uint16(176), + 4913: uint16(8448), + 4914: uint16(33049), + 4915: uint16(4128), + 4916: uint16(43144), + 4917: uint16(8544), + 4918: uint16(9321), + 4919: uint16(17408), + 4920: uint16(50313), + 4922: uint16(16387), + 4923: uint16(53), + 4924: uint16(33859), + 4925: uint16(20785), + 4926: uint16(26771), + 4927: uint16(514), + 4933: uint16(16384), + 4934: uint16(256), + 4935: uint16(44160), + 4936: uint16(33380), + 4937: uint16(35904), + 4938: uint16(37025), + 4939: uint16(20484), + 4940: uint16(54368), + 4941: uint16(53760), + 4942: uint16(6186), + 4943: uint16(26781), + 4944: uint16(38709), + 4945: uint16(55375), + 4946: uint16(8440), + 4947: uint16(33476), + 4948: uint16(10268), + 4949: uint16(30082), + 4950: uint16(660), + 4951: uint16(16440), + 4952: uint16(41376), + 4953: uint16(4293), + 4954: uint16(19825), + 4955: uint16(3524), + 4956: uint16(47512), + 4957: uint16(23390), + 4958: uint16(17153), + 4959: uint16(39327), + 4960: uint16(30723), + 4961: uint16(57888), + 4962: uint16(2079), + 4963: uint16(393), + 4964: uint16(16585), + 4965: uint16(775), + 4966: uint16(39437), + 4967: uint16(21136), + 4968: uint16(20433), + 4969: uint16(892), + 4970: uint16(8450), + 4971: uint16(49184), + 4972: uint16(4974), + 4973: uint16(46467), + 4974: uint16(62939), + 4975: uint16(30693), + 4976: uint16(20368), + 4977: uint16(39447), + 4978: uint16(5942), + 4979: uint16(12), + 4980: uint16(47726), + 4981: uint16(12041), + 4982: uint16(21600), + 4983: uint16(7680), + 4984: uint16(26744), + 4985: uint16(28706), + 4986: uint16(40534), + 4987: uint16(62245), + 4988: uint16(46990), + 4989: uint16(2839), + 4990: uint16(59119), + 4991: uint16(6007), + 4992: uint16(7003), + 4993: uint16(4289), + 4994: uint16(36248), + 4995: uint16(6162), + 4996: uint16(53174), + 4997: uint16(12545), + 4998: uint16(6770), + 4999: uint16(11355), + 5000: uint16(49334), + 5001: uint16(57888), + 5002: uint16(23747), + 5003: uint16(7042), + 5004: uint16(56032), + 5005: uint16(34254), + 5006: uint16(16598), + 5007: uint16(21673), + 5008: uint16(53259), + 5009: uint16(18447), + 5010: uint16(16452), + 5011: uint16(2320), + 5012: uint16(16596), + 5013: uint16(15278), + 5014: uint16(7780), + 5015: uint16(11076), + 5016: uint16(2071), + 5017: uint16(33414), + 5018: uint16(6198), + 5019: uint16(35232), + 5020: uint16(40167), + 5021: uint16(2139), + 5022: uint16(900), + 5023: uint16(55810), + 5024: uint16(60560), + 5025: uint16(34779), + 5026: uint16(49029), + 5027: uint16(44450), + 5028: uint16(36509), + 5029: uint16(39069), + 5030: uint16(9504), + 5031: uint16(70), + 5032: uint16(40774), + 5033: uint16(58239), + 5034: uint16(51669), + 5035: uint16(62596), + 5036: uint16(19926), + 5037: uint16(58118), + 5038: uint16(6326), + 5039: uint16(2322), + 5041: uint16(1024), + 5043: uint16(32), + 5045: uint16(512), + 5050: uint16(8192), + 5057: uint16(8), + 5058: uint16(36352), + 5059: uint16(28280), + 5060: uint16(16223), + 5061: uint16(56702), + 5062: uint16(63293), + 5063: uint16(39932), + 5064: uint16(44796), + 5065: uint16(65490), + 5066: uint16(27535), + 5067: uint16(59377), + 5068: uint16(47807), + 5069: uint16(28334), + 5070: uint16(61207), + 5071: uint16(42972), + 5072: uint16(46654), + 5073: uint16(30645), + 5074: uint16(37577), + 5075: uint16(42455), + 5076: uint16(19126), + 5077: uint16(39790), + 5078: uint16(33209), + 5079: uint16(26445), + 5080: uint16(21758), + 5081: uint16(39921), + 5082: uint16(65122), + 5083: uint16(21103), + 5084: uint16(14039), + 5085: uint16(49150), + 5086: uint16(17705), + 5087: uint16(63873), + 5088: uint16(26045), + 5089: uint16(17062), + 5090: uint16(57), + 5091: uint16(16896), + 5092: uint16(36704), + 5093: uint16(37888), + 5094: uint16(16448), + 5095: uint16(45010), + 5096: uint16(53719), + 5097: uint16(219), + 5098: uint16(39072), + 5099: uint16(31666), + 5100: uint16(20998), + 5101: uint16(38944), + 5102: uint16(51222), + 5103: uint16(2365), + 5105: uint16(1), + 5107: uint16(2561), + 5108: uint16(2226), + 5109: uint16(128), + 5111: uint16(34820), + 5112: uint16(5152), + 5113: uint16(19472), + 5115: uint16(4), + 5116: uint16(17569), + 5117: uint16(16), + 5118: uint16(321), + 5119: uint16(2048), + 5120: uint16(61504), + 5121: uint16(20447), + 5122: uint16(22582), + 5123: uint16(62961), + 5124: uint16(32949), + 5125: uint16(26613), + 5126: uint16(16512), + 5127: uint16(20480), + 5128: uint16(16718), + 5129: uint16(33992), + 5130: uint16(23040), + 5131: uint16(55392), + 5132: uint16(11009), + 5133: uint16(20481), + 5134: uint16(5793), + 5135: uint16(16580), + 5136: uint16(28402), + 5137: uint16(44049), + 5138: uint16(14624), + 5139: uint16(49348), + 5140: uint16(1800), + 5141: uint16(2316), + 5142: uint16(38552), + 5143: uint16(39876), + 5144: uint16(7184), + 5145: uint16(27800), + 5146: uint16(10886), + 5147: uint16(422), + 5148: uint16(4422), + 5149: uint16(58733), + 5150: uint16(50379), + 5151: uint16(37568), + 5152: uint16(8464), + 5153: uint16(4630), + 5154: uint16(29341), + 5155: uint16(27124), + 5156: uint16(5902), + 5157: uint16(41514), + 5158: uint16(62593), + 5159: uint16(123), + 5160: uint16(41992), + 5161: uint16(36875), + 5162: uint16(11280), + 5163: uint16(14796), + 5164: uint16(330), + 5165: uint16(5872), + 5166: uint16(2571), + 5167: uint16(3136), + 5168: uint16(59933), + 5169: uint16(17420), + 5170: uint16(17678), + 5171: uint16(2), +} + +var _ksc = [93][94]uint16{ + 0: { + 0: uint16(12288), + 1: uint16(12289), + 2: uint16(12290), + 3: uint16(183), + 4: uint16(8229), + 5: uint16(8230), + 6: uint16(168), + 7: uint16(12291), + 8: uint16(173), + 9: uint16(8213), + 10: uint16(8741), + 11: uint16(65340), + 12: uint16(8764), + 13: uint16(8216), + 14: uint16(8217), + 15: uint16(8220), + 16: uint16(8221), + 17: uint16(12308), + 18: uint16(12309), + 19: uint16(12296), + 20: uint16(12297), + 21: uint16(12298), + 22: uint16(12299), + 23: uint16(12300), + 24: uint16(12301), + 25: uint16(12302), + 26: uint16(12303), + 27: uint16(12304), + 28: uint16(12305), + 29: uint16(177), + 30: uint16(215), + 31: uint16(247), + 32: uint16(8800), + 33: uint16(8804), + 34: uint16(8805), + 35: uint16(8734), + 36: uint16(8756), + 37: uint16(176), + 38: uint16(8242), + 39: uint16(8243), + 40: uint16(8451), + 41: uint16(8491), + 42: uint16(65504), + 43: uint16(65505), + 44: uint16(65509), + 45: uint16(9794), + 46: uint16(9792), + 47: uint16(8736), + 48: uint16(8869), + 49: uint16(8978), + 50: uint16(8706), + 51: uint16(8711), + 52: uint16(8801), + 53: uint16(8786), + 54: uint16(167), + 55: uint16(8251), + 56: uint16(9734), + 57: uint16(9733), + 58: uint16(9675), + 59: uint16(9679), + 60: uint16(9678), + 61: uint16(9671), + 62: uint16(9670), + 63: uint16(9633), + 64: uint16(9632), + 65: uint16(9651), + 66: uint16(9650), + 67: uint16(9661), + 68: uint16(9660), + 69: uint16(8594), + 70: uint16(8592), + 71: uint16(8593), + 72: uint16(8595), + 73: uint16(8596), + 74: uint16(12307), + 75: uint16(8810), + 76: uint16(8811), + 77: uint16(8730), + 78: uint16(8765), + 79: uint16(8733), + 80: uint16(8757), + 81: uint16(8747), + 82: uint16(8748), + 83: uint16(8712), + 84: uint16(8715), + 85: uint16(8838), + 86: uint16(8839), + 87: uint16(8834), + 88: uint16(8835), + 89: uint16(8746), + 90: uint16(8745), + 91: uint16(8743), + 92: uint16(8744), + 93: uint16(65506), + }, + 1: { + 0: uint16(8658), + 1: uint16(8660), + 2: uint16(8704), + 3: uint16(8707), + 4: uint16(180), + 5: uint16(65374), + 6: uint16(711), + 7: uint16(728), + 8: uint16(733), + 9: uint16(730), + 10: uint16(729), + 11: uint16(184), + 12: uint16(731), + 13: uint16(161), + 14: uint16(191), + 15: uint16(720), + 16: uint16(8750), + 17: uint16(8721), + 18: uint16(8719), + 19: uint16(164), + 20: uint16(8457), + 21: uint16(8240), + 22: uint16(9665), + 23: uint16(9664), + 24: uint16(9655), + 25: uint16(9654), + 26: uint16(9828), + 27: uint16(9824), + 28: uint16(9825), + 29: uint16(9829), + 30: uint16(9831), + 31: uint16(9827), + 32: uint16(8857), + 33: uint16(9672), + 34: uint16(9635), + 35: uint16(9680), + 36: uint16(9681), + 37: uint16(9618), + 38: uint16(9636), + 39: uint16(9637), + 40: uint16(9640), + 41: uint16(9639), + 42: uint16(9638), + 43: uint16(9641), + 44: uint16(9832), + 45: uint16(9743), + 46: uint16(9742), + 47: uint16(9756), + 48: uint16(9758), + 49: uint16(182), + 50: uint16(8224), + 51: uint16(8225), + 52: uint16(8597), + 53: uint16(8599), + 54: uint16(8601), + 55: uint16(8598), + 56: uint16(8600), + 57: uint16(9837), + 58: uint16(9833), + 59: uint16(9834), + 60: uint16(9836), + 61: uint16(12927), + 62: uint16(12828), + 63: uint16(8470), + 64: uint16(13255), + 65: uint16(8482), + 66: uint16(13250), + 67: uint16(13272), + 68: uint16(8481), + 69: uint16(8364), + 70: uint16(174), + }, + 2: { + 0: uint16(65281), + 1: uint16(65282), + 2: uint16(65283), + 3: uint16(65284), + 4: uint16(65285), + 5: uint16(65286), + 6: uint16(65287), + 7: uint16(65288), + 8: uint16(65289), + 9: uint16(65290), + 10: uint16(65291), + 11: uint16(65292), + 12: uint16(65293), + 13: uint16(65294), + 14: uint16(65295), + 15: uint16(65296), + 16: uint16(65297), + 17: uint16(65298), + 18: uint16(65299), + 19: uint16(65300), + 20: uint16(65301), + 21: uint16(65302), + 22: uint16(65303), + 23: uint16(65304), + 24: uint16(65305), + 25: uint16(65306), + 26: uint16(65307), + 27: uint16(65308), + 28: uint16(65309), + 29: uint16(65310), + 30: uint16(65311), + 31: uint16(65312), + 32: uint16(65313), + 33: uint16(65314), + 34: uint16(65315), + 35: uint16(65316), + 36: uint16(65317), + 37: uint16(65318), + 38: uint16(65319), + 39: uint16(65320), + 40: uint16(65321), + 41: uint16(65322), + 42: uint16(65323), + 43: uint16(65324), + 44: uint16(65325), + 45: uint16(65326), + 46: uint16(65327), + 47: uint16(65328), + 48: uint16(65329), + 49: uint16(65330), + 50: uint16(65331), + 51: uint16(65332), + 52: uint16(65333), + 53: uint16(65334), + 54: uint16(65335), + 55: uint16(65336), + 56: uint16(65337), + 57: uint16(65338), + 58: uint16(65339), + 59: uint16(65510), + 60: uint16(65341), + 61: uint16(65342), + 62: uint16(65343), + 63: uint16(65344), + 64: uint16(65345), + 65: uint16(65346), + 66: uint16(65347), + 67: uint16(65348), + 68: uint16(65349), + 69: uint16(65350), + 70: uint16(65351), + 71: uint16(65352), + 72: uint16(65353), + 73: uint16(65354), + 74: uint16(65355), + 75: uint16(65356), + 76: uint16(65357), + 77: uint16(65358), + 78: uint16(65359), + 79: uint16(65360), + 80: uint16(65361), + 81: uint16(65362), + 82: uint16(65363), + 83: uint16(65364), + 84: uint16(65365), + 85: uint16(65366), + 86: uint16(65367), + 87: uint16(65368), + 88: uint16(65369), + 89: uint16(65370), + 90: uint16(65371), + 91: uint16(65372), + 92: uint16(65373), + 93: uint16(65507), + }, + 3: { + 0: uint16(12593), + 1: uint16(12594), + 2: uint16(12595), + 3: uint16(12596), + 4: uint16(12597), + 5: uint16(12598), + 6: uint16(12599), + 7: uint16(12600), + 8: uint16(12601), + 9: uint16(12602), + 10: uint16(12603), + 11: uint16(12604), + 12: uint16(12605), + 13: uint16(12606), + 14: uint16(12607), + 15: uint16(12608), + 16: uint16(12609), + 17: uint16(12610), + 18: uint16(12611), + 19: uint16(12612), + 20: uint16(12613), + 21: uint16(12614), + 22: uint16(12615), + 23: uint16(12616), + 24: uint16(12617), + 25: uint16(12618), + 26: uint16(12619), + 27: uint16(12620), + 28: uint16(12621), + 29: uint16(12622), + 30: uint16(12623), + 31: uint16(12624), + 32: uint16(12625), + 33: uint16(12626), + 34: uint16(12627), + 35: uint16(12628), + 36: uint16(12629), + 37: uint16(12630), + 38: uint16(12631), + 39: uint16(12632), + 40: uint16(12633), + 41: uint16(12634), + 42: uint16(12635), + 43: uint16(12636), + 44: uint16(12637), + 45: uint16(12638), + 46: uint16(12639), + 47: uint16(12640), + 48: uint16(12641), + 49: uint16(12642), + 50: uint16(12643), + 51: uint16(12644), + 52: uint16(12645), + 53: uint16(12646), + 54: uint16(12647), + 55: uint16(12648), + 56: uint16(12649), + 57: uint16(12650), + 58: uint16(12651), + 59: uint16(12652), + 60: uint16(12653), + 61: uint16(12654), + 62: uint16(12655), + 63: uint16(12656), + 64: uint16(12657), + 65: uint16(12658), + 66: uint16(12659), + 67: uint16(12660), + 68: uint16(12661), + 69: uint16(12662), + 70: uint16(12663), + 71: uint16(12664), + 72: uint16(12665), + 73: uint16(12666), + 74: uint16(12667), + 75: uint16(12668), + 76: uint16(12669), + 77: uint16(12670), + 78: uint16(12671), + 79: uint16(12672), + 80: uint16(12673), + 81: uint16(12674), + 82: uint16(12675), + 83: uint16(12676), + 84: uint16(12677), + 85: uint16(12678), + 86: uint16(12679), + 87: uint16(12680), + 88: uint16(12681), + 89: uint16(12682), + 90: uint16(12683), + 91: uint16(12684), + 92: uint16(12685), + 93: uint16(12686), + }, + 4: { + 0: uint16(8560), + 1: uint16(8561), + 2: uint16(8562), + 3: uint16(8563), + 4: uint16(8564), + 5: uint16(8565), + 6: uint16(8566), + 7: uint16(8567), + 8: uint16(8568), + 9: uint16(8569), + 15: uint16(8544), + 16: uint16(8545), + 17: uint16(8546), + 18: uint16(8547), + 19: uint16(8548), + 20: uint16(8549), + 21: uint16(8550), + 22: uint16(8551), + 23: uint16(8552), + 24: uint16(8553), + 32: uint16(913), + 33: uint16(914), + 34: uint16(915), + 35: uint16(916), + 36: uint16(917), + 37: uint16(918), + 38: uint16(919), + 39: uint16(920), + 40: uint16(921), + 41: uint16(922), + 42: uint16(923), + 43: uint16(924), + 44: uint16(925), + 45: uint16(926), + 46: uint16(927), + 47: uint16(928), + 48: uint16(929), + 49: uint16(931), + 50: uint16(932), + 51: uint16(933), + 52: uint16(934), + 53: uint16(935), + 54: uint16(936), + 55: uint16(937), + 64: uint16(945), + 65: uint16(946), + 66: uint16(947), + 67: uint16(948), + 68: uint16(949), + 69: uint16(950), + 70: uint16(951), + 71: uint16(952), + 72: uint16(953), + 73: uint16(954), + 74: uint16(955), + 75: uint16(956), + 76: uint16(957), + 77: uint16(958), + 78: uint16(959), + 79: uint16(960), + 80: uint16(961), + 81: uint16(963), + 82: uint16(964), + 83: uint16(965), + 84: uint16(966), + 85: uint16(967), + 86: uint16(968), + 87: uint16(969), + }, + 5: { + 0: uint16(9472), + 1: uint16(9474), + 2: uint16(9484), + 3: uint16(9488), + 4: uint16(9496), + 5: uint16(9492), + 6: uint16(9500), + 7: uint16(9516), + 8: uint16(9508), + 9: uint16(9524), + 10: uint16(9532), + 11: uint16(9473), + 12: uint16(9475), + 13: uint16(9487), + 14: uint16(9491), + 15: uint16(9499), + 16: uint16(9495), + 17: uint16(9507), + 18: uint16(9523), + 19: uint16(9515), + 20: uint16(9531), + 21: uint16(9547), + 22: uint16(9504), + 23: uint16(9519), + 24: uint16(9512), + 25: uint16(9527), + 26: uint16(9535), + 27: uint16(9501), + 28: uint16(9520), + 29: uint16(9509), + 30: uint16(9528), + 31: uint16(9538), + 32: uint16(9490), + 33: uint16(9489), + 34: uint16(9498), + 35: uint16(9497), + 36: uint16(9494), + 37: uint16(9493), + 38: uint16(9486), + 39: uint16(9485), + 40: uint16(9502), + 41: uint16(9503), + 42: uint16(9505), + 43: uint16(9506), + 44: uint16(9510), + 45: uint16(9511), + 46: uint16(9513), + 47: uint16(9514), + 48: uint16(9517), + 49: uint16(9518), + 50: uint16(9521), + 51: uint16(9522), + 52: uint16(9525), + 53: uint16(9526), + 54: uint16(9529), + 55: uint16(9530), + 56: uint16(9533), + 57: uint16(9534), + 58: uint16(9536), + 59: uint16(9537), + 60: uint16(9539), + 61: uint16(9540), + 62: uint16(9541), + 63: uint16(9542), + 64: uint16(9543), + 65: uint16(9544), + 66: uint16(9545), + 67: uint16(9546), + }, + 6: { + 0: uint16(13205), + 1: uint16(13206), + 2: uint16(13207), + 3: uint16(8467), + 4: uint16(13208), + 5: uint16(13252), + 6: uint16(13219), + 7: uint16(13220), + 8: uint16(13221), + 9: uint16(13222), + 10: uint16(13209), + 11: uint16(13210), + 12: uint16(13211), + 13: uint16(13212), + 14: uint16(13213), + 15: uint16(13214), + 16: uint16(13215), + 17: uint16(13216), + 18: uint16(13217), + 19: uint16(13218), + 20: uint16(13258), + 21: uint16(13197), + 22: uint16(13198), + 23: uint16(13199), + 24: uint16(13263), + 25: uint16(13192), + 26: uint16(13193), + 27: uint16(13256), + 28: uint16(13223), + 29: uint16(13224), + 30: uint16(13232), + 31: uint16(13233), + 32: uint16(13234), + 33: uint16(13235), + 34: uint16(13236), + 35: uint16(13237), + 36: uint16(13238), + 37: uint16(13239), + 38: uint16(13240), + 39: uint16(13241), + 40: uint16(13184), + 41: uint16(13185), + 42: uint16(13186), + 43: uint16(13187), + 44: uint16(13188), + 45: uint16(13242), + 46: uint16(13243), + 47: uint16(13244), + 48: uint16(13245), + 49: uint16(13246), + 50: uint16(13247), + 51: uint16(13200), + 52: uint16(13201), + 53: uint16(13202), + 54: uint16(13203), + 55: uint16(13204), + 56: uint16(8486), + 57: uint16(13248), + 58: uint16(13249), + 59: uint16(13194), + 60: uint16(13195), + 61: uint16(13196), + 62: uint16(13270), + 63: uint16(13253), + 64: uint16(13229), + 65: uint16(13230), + 66: uint16(13231), + 67: uint16(13275), + 68: uint16(13225), + 69: uint16(13226), + 70: uint16(13227), + 71: uint16(13228), + 72: uint16(13277), + 73: uint16(13264), + 74: uint16(13267), + 75: uint16(13251), + 76: uint16(13257), + 77: uint16(13276), + 78: uint16(13254), + }, + 7: { + 0: uint16(198), + 1: uint16(208), + 2: uint16(170), + 3: uint16(294), + 5: uint16(306), + 7: uint16(319), + 8: uint16(321), + 9: uint16(216), + 10: uint16(338), + 11: uint16(186), + 12: uint16(222), + 13: uint16(358), + 14: uint16(330), + 16: uint16(12896), + 17: uint16(12897), + 18: uint16(12898), + 19: uint16(12899), + 20: uint16(12900), + 21: uint16(12901), + 22: uint16(12902), + 23: uint16(12903), + 24: uint16(12904), + 25: uint16(12905), + 26: uint16(12906), + 27: uint16(12907), + 28: uint16(12908), + 29: uint16(12909), + 30: uint16(12910), + 31: uint16(12911), + 32: uint16(12912), + 33: uint16(12913), + 34: uint16(12914), + 35: uint16(12915), + 36: uint16(12916), + 37: uint16(12917), + 38: uint16(12918), + 39: uint16(12919), + 40: uint16(12920), + 41: uint16(12921), + 42: uint16(12922), + 43: uint16(12923), + 44: uint16(9424), + 45: uint16(9425), + 46: uint16(9426), + 47: uint16(9427), + 48: uint16(9428), + 49: uint16(9429), + 50: uint16(9430), + 51: uint16(9431), + 52: uint16(9432), + 53: uint16(9433), + 54: uint16(9434), + 55: uint16(9435), + 56: uint16(9436), + 57: uint16(9437), + 58: uint16(9438), + 59: uint16(9439), + 60: uint16(9440), + 61: uint16(9441), + 62: uint16(9442), + 63: uint16(9443), + 64: uint16(9444), + 65: uint16(9445), + 66: uint16(9446), + 67: uint16(9447), + 68: uint16(9448), + 69: uint16(9449), + 70: uint16(9312), + 71: uint16(9313), + 72: uint16(9314), + 73: uint16(9315), + 74: uint16(9316), + 75: uint16(9317), + 76: uint16(9318), + 77: uint16(9319), + 78: uint16(9320), + 79: uint16(9321), + 80: uint16(9322), + 81: uint16(9323), + 82: uint16(9324), + 83: uint16(9325), + 84: uint16(9326), + 85: uint16(189), + 86: uint16(8531), + 87: uint16(8532), + 88: uint16(188), + 89: uint16(190), + 90: uint16(8539), + 91: uint16(8540), + 92: uint16(8541), + 93: uint16(8542), + }, + 8: { + 0: uint16(230), + 1: uint16(273), + 2: uint16(240), + 3: uint16(295), + 4: uint16(305), + 5: uint16(307), + 6: uint16(312), + 7: uint16(320), + 8: uint16(322), + 9: uint16(248), + 10: uint16(339), + 11: uint16(223), + 12: uint16(254), + 13: uint16(359), + 14: uint16(331), + 15: uint16(329), + 16: uint16(12800), + 17: uint16(12801), + 18: uint16(12802), + 19: uint16(12803), + 20: uint16(12804), + 21: uint16(12805), + 22: uint16(12806), + 23: uint16(12807), + 24: uint16(12808), + 25: uint16(12809), + 26: uint16(12810), + 27: uint16(12811), + 28: uint16(12812), + 29: uint16(12813), + 30: uint16(12814), + 31: uint16(12815), + 32: uint16(12816), + 33: uint16(12817), + 34: uint16(12818), + 35: uint16(12819), + 36: uint16(12820), + 37: uint16(12821), + 38: uint16(12822), + 39: uint16(12823), + 40: uint16(12824), + 41: uint16(12825), + 42: uint16(12826), + 43: uint16(12827), + 44: uint16(9372), + 45: uint16(9373), + 46: uint16(9374), + 47: uint16(9375), + 48: uint16(9376), + 49: uint16(9377), + 50: uint16(9378), + 51: uint16(9379), + 52: uint16(9380), + 53: uint16(9381), + 54: uint16(9382), + 55: uint16(9383), + 56: uint16(9384), + 57: uint16(9385), + 58: uint16(9386), + 59: uint16(9387), + 60: uint16(9388), + 61: uint16(9389), + 62: uint16(9390), + 63: uint16(9391), + 64: uint16(9392), + 65: uint16(9393), + 66: uint16(9394), + 67: uint16(9395), + 68: uint16(9396), + 69: uint16(9397), + 70: uint16(9332), + 71: uint16(9333), + 72: uint16(9334), + 73: uint16(9335), + 74: uint16(9336), + 75: uint16(9337), + 76: uint16(9338), + 77: uint16(9339), + 78: uint16(9340), + 79: uint16(9341), + 80: uint16(9342), + 81: uint16(9343), + 82: uint16(9344), + 83: uint16(9345), + 84: uint16(9346), + 85: uint16(185), + 86: uint16(178), + 87: uint16(179), + 88: uint16(8308), + 89: uint16(8319), + 90: uint16(8321), + 91: uint16(8322), + 92: uint16(8323), + 93: uint16(8324), + }, + 9: { + 0: uint16(12353), + 1: uint16(12354), + 2: uint16(12355), + 3: uint16(12356), + 4: uint16(12357), + 5: uint16(12358), + 6: uint16(12359), + 7: uint16(12360), + 8: uint16(12361), + 9: uint16(12362), + 10: uint16(12363), + 11: uint16(12364), + 12: uint16(12365), + 13: uint16(12366), + 14: uint16(12367), + 15: uint16(12368), + 16: uint16(12369), + 17: uint16(12370), + 18: uint16(12371), + 19: uint16(12372), + 20: uint16(12373), + 21: uint16(12374), + 22: uint16(12375), + 23: uint16(12376), + 24: uint16(12377), + 25: uint16(12378), + 26: uint16(12379), + 27: uint16(12380), + 28: uint16(12381), + 29: uint16(12382), + 30: uint16(12383), + 31: uint16(12384), + 32: uint16(12385), + 33: uint16(12386), + 34: uint16(12387), + 35: uint16(12388), + 36: uint16(12389), + 37: uint16(12390), + 38: uint16(12391), + 39: uint16(12392), + 40: uint16(12393), + 41: uint16(12394), + 42: uint16(12395), + 43: uint16(12396), + 44: uint16(12397), + 45: uint16(12398), + 46: uint16(12399), + 47: uint16(12400), + 48: uint16(12401), + 49: uint16(12402), + 50: uint16(12403), + 51: uint16(12404), + 52: uint16(12405), + 53: uint16(12406), + 54: uint16(12407), + 55: uint16(12408), + 56: uint16(12409), + 57: uint16(12410), + 58: uint16(12411), + 59: uint16(12412), + 60: uint16(12413), + 61: uint16(12414), + 62: uint16(12415), + 63: uint16(12416), + 64: uint16(12417), + 65: uint16(12418), + 66: uint16(12419), + 67: uint16(12420), + 68: uint16(12421), + 69: uint16(12422), + 70: uint16(12423), + 71: uint16(12424), + 72: uint16(12425), + 73: uint16(12426), + 74: uint16(12427), + 75: uint16(12428), + 76: uint16(12429), + 77: uint16(12430), + 78: uint16(12431), + 79: uint16(12432), + 80: uint16(12433), + 81: uint16(12434), + 82: uint16(12435), + }, + 10: { + 0: uint16(12449), + 1: uint16(12450), + 2: uint16(12451), + 3: uint16(12452), + 4: uint16(12453), + 5: uint16(12454), + 6: uint16(12455), + 7: uint16(12456), + 8: uint16(12457), + 9: uint16(12458), + 10: uint16(12459), + 11: uint16(12460), + 12: uint16(12461), + 13: uint16(12462), + 14: uint16(12463), + 15: uint16(12464), + 16: uint16(12465), + 17: uint16(12466), + 18: uint16(12467), + 19: uint16(12468), + 20: uint16(12469), + 21: uint16(12470), + 22: uint16(12471), + 23: uint16(12472), + 24: uint16(12473), + 25: uint16(12474), + 26: uint16(12475), + 27: uint16(12476), + 28: uint16(12477), + 29: uint16(12478), + 30: uint16(12479), + 31: uint16(12480), + 32: uint16(12481), + 33: uint16(12482), + 34: uint16(12483), + 35: uint16(12484), + 36: uint16(12485), + 37: uint16(12486), + 38: uint16(12487), + 39: uint16(12488), + 40: uint16(12489), + 41: uint16(12490), + 42: uint16(12491), + 43: uint16(12492), + 44: uint16(12493), + 45: uint16(12494), + 46: uint16(12495), + 47: uint16(12496), + 48: uint16(12497), + 49: uint16(12498), + 50: uint16(12499), + 51: uint16(12500), + 52: uint16(12501), + 53: uint16(12502), + 54: uint16(12503), + 55: uint16(12504), + 56: uint16(12505), + 57: uint16(12506), + 58: uint16(12507), + 59: uint16(12508), + 60: uint16(12509), + 61: uint16(12510), + 62: uint16(12511), + 63: uint16(12512), + 64: uint16(12513), + 65: uint16(12514), + 66: uint16(12515), + 67: uint16(12516), + 68: uint16(12517), + 69: uint16(12518), + 70: uint16(12519), + 71: uint16(12520), + 72: uint16(12521), + 73: uint16(12522), + 74: uint16(12523), + 75: uint16(12524), + 76: uint16(12525), + 77: uint16(12526), + 78: uint16(12527), + 79: uint16(12528), + 80: uint16(12529), + 81: uint16(12530), + 82: uint16(12531), + 83: uint16(12532), + 84: uint16(12533), + 85: uint16(12534), + }, + 11: { + 0: uint16(1040), + 1: uint16(1041), + 2: uint16(1042), + 3: uint16(1043), + 4: uint16(1044), + 5: uint16(1045), + 6: uint16(1025), + 7: uint16(1046), + 8: uint16(1047), + 9: uint16(1048), + 10: uint16(1049), + 11: uint16(1050), + 12: uint16(1051), + 13: uint16(1052), + 14: uint16(1053), + 15: uint16(1054), + 16: uint16(1055), + 17: uint16(1056), + 18: uint16(1057), + 19: uint16(1058), + 20: uint16(1059), + 21: uint16(1060), + 22: uint16(1061), + 23: uint16(1062), + 24: uint16(1063), + 25: uint16(1064), + 26: uint16(1065), + 27: uint16(1066), + 28: uint16(1067), + 29: uint16(1068), + 30: uint16(1069), + 31: uint16(1070), + 32: uint16(1071), + 48: uint16(1072), + 49: uint16(1073), + 50: uint16(1074), + 51: uint16(1075), + 52: uint16(1076), + 53: uint16(1077), + 54: uint16(1105), + 55: uint16(1078), + 56: uint16(1079), + 57: uint16(1080), + 58: uint16(1081), + 59: uint16(1082), + 60: uint16(1083), + 61: uint16(1084), + 62: uint16(1085), + 63: uint16(1086), + 64: uint16(1087), + 65: uint16(1088), + 66: uint16(1089), + 67: uint16(1090), + 68: uint16(1091), + 69: uint16(1092), + 70: uint16(1093), + 71: uint16(1094), + 72: uint16(1095), + 73: uint16(1096), + 74: uint16(1097), + 75: uint16(1098), + 76: uint16(1099), + 77: uint16(1100), + 78: uint16(1101), + 79: uint16(1102), + 80: uint16(1103), + }, + 12: {}, + 13: {}, + 14: {}, + 15: { + 0: uint16(44032), + 1: uint16(44033), + 2: uint16(44036), + 3: uint16(44039), + 4: uint16(44040), + 5: uint16(44041), + 6: uint16(44042), + 7: uint16(44048), + 8: uint16(44049), + 9: uint16(44050), + 10: uint16(44051), + 11: uint16(44052), + 12: uint16(44053), + 13: uint16(44054), + 14: uint16(44055), + 15: uint16(44057), + 16: uint16(44058), + 17: uint16(44059), + 18: uint16(44060), + 19: uint16(44061), + 20: uint16(44064), + 21: uint16(44068), + 22: uint16(44076), + 23: uint16(44077), + 24: uint16(44079), + 25: uint16(44080), + 26: uint16(44081), + 27: uint16(44088), + 28: uint16(44089), + 29: uint16(44092), + 30: uint16(44096), + 31: uint16(44107), + 32: uint16(44109), + 33: uint16(44116), + 34: uint16(44120), + 35: uint16(44124), + 36: uint16(44144), + 37: uint16(44145), + 38: uint16(44148), + 39: uint16(44151), + 40: uint16(44152), + 41: uint16(44154), + 42: uint16(44160), + 43: uint16(44161), + 44: uint16(44163), + 45: uint16(44164), + 46: uint16(44165), + 47: uint16(44166), + 48: uint16(44169), + 49: uint16(44170), + 50: uint16(44171), + 51: uint16(44172), + 52: uint16(44176), + 53: uint16(44180), + 54: uint16(44188), + 55: uint16(44189), + 56: uint16(44191), + 57: uint16(44192), + 58: uint16(44193), + 59: uint16(44200), + 60: uint16(44201), + 61: uint16(44202), + 62: uint16(44204), + 63: uint16(44207), + 64: uint16(44208), + 65: uint16(44216), + 66: uint16(44217), + 67: uint16(44219), + 68: uint16(44220), + 69: uint16(44221), + 70: uint16(44225), + 71: uint16(44228), + 72: uint16(44232), + 73: uint16(44236), + 74: uint16(44245), + 75: uint16(44247), + 76: uint16(44256), + 77: uint16(44257), + 78: uint16(44260), + 79: uint16(44263), + 80: uint16(44264), + 81: uint16(44266), + 82: uint16(44268), + 83: uint16(44271), + 84: uint16(44272), + 85: uint16(44273), + 86: uint16(44275), + 87: uint16(44277), + 88: uint16(44278), + 89: uint16(44284), + 90: uint16(44285), + 91: uint16(44288), + 92: uint16(44292), + 93: uint16(44294), + }, + 16: { + 0: uint16(44300), + 1: uint16(44301), + 2: uint16(44303), + 3: uint16(44305), + 4: uint16(44312), + 5: uint16(44316), + 6: uint16(44320), + 7: uint16(44329), + 8: uint16(44332), + 9: uint16(44333), + 10: uint16(44340), + 11: uint16(44341), + 12: uint16(44344), + 13: uint16(44348), + 14: uint16(44356), + 15: uint16(44357), + 16: uint16(44359), + 17: uint16(44361), + 18: uint16(44368), + 19: uint16(44372), + 20: uint16(44376), + 21: uint16(44385), + 22: uint16(44387), + 23: uint16(44396), + 24: uint16(44397), + 25: uint16(44400), + 26: uint16(44403), + 27: uint16(44404), + 28: uint16(44405), + 29: uint16(44406), + 30: uint16(44411), + 31: uint16(44412), + 32: uint16(44413), + 33: uint16(44415), + 34: uint16(44417), + 35: uint16(44418), + 36: uint16(44424), + 37: uint16(44425), + 38: uint16(44428), + 39: uint16(44432), + 40: uint16(44444), + 41: uint16(44445), + 42: uint16(44452), + 43: uint16(44471), + 44: uint16(44480), + 45: uint16(44481), + 46: uint16(44484), + 47: uint16(44488), + 48: uint16(44496), + 49: uint16(44497), + 50: uint16(44499), + 51: uint16(44508), + 52: uint16(44512), + 53: uint16(44516), + 54: uint16(44536), + 55: uint16(44537), + 56: uint16(44540), + 57: uint16(44543), + 58: uint16(44544), + 59: uint16(44545), + 60: uint16(44552), + 61: uint16(44553), + 62: uint16(44555), + 63: uint16(44557), + 64: uint16(44564), + 65: uint16(44592), + 66: uint16(44593), + 67: uint16(44596), + 68: uint16(44599), + 69: uint16(44600), + 70: uint16(44602), + 71: uint16(44608), + 72: uint16(44609), + 73: uint16(44611), + 74: uint16(44613), + 75: uint16(44614), + 76: uint16(44618), + 77: uint16(44620), + 78: uint16(44621), + 79: uint16(44622), + 80: uint16(44624), + 81: uint16(44628), + 82: uint16(44630), + 83: uint16(44636), + 84: uint16(44637), + 85: uint16(44639), + 86: uint16(44640), + 87: uint16(44641), + 88: uint16(44645), + 89: uint16(44648), + 90: uint16(44649), + 91: uint16(44652), + 92: uint16(44656), + 93: uint16(44664), + }, + 17: { + 0: uint16(44665), + 1: uint16(44667), + 2: uint16(44668), + 3: uint16(44669), + 4: uint16(44676), + 5: uint16(44677), + 6: uint16(44684), + 7: uint16(44732), + 8: uint16(44733), + 9: uint16(44734), + 10: uint16(44736), + 11: uint16(44740), + 12: uint16(44748), + 13: uint16(44749), + 14: uint16(44751), + 15: uint16(44752), + 16: uint16(44753), + 17: uint16(44760), + 18: uint16(44761), + 19: uint16(44764), + 20: uint16(44776), + 21: uint16(44779), + 22: uint16(44781), + 23: uint16(44788), + 24: uint16(44792), + 25: uint16(44796), + 26: uint16(44807), + 27: uint16(44808), + 28: uint16(44813), + 29: uint16(44816), + 30: uint16(44844), + 31: uint16(44845), + 32: uint16(44848), + 33: uint16(44850), + 34: uint16(44852), + 35: uint16(44860), + 36: uint16(44861), + 37: uint16(44863), + 38: uint16(44865), + 39: uint16(44866), + 40: uint16(44867), + 41: uint16(44872), + 42: uint16(44873), + 43: uint16(44880), + 44: uint16(44892), + 45: uint16(44893), + 46: uint16(44900), + 47: uint16(44901), + 48: uint16(44921), + 49: uint16(44928), + 50: uint16(44932), + 51: uint16(44936), + 52: uint16(44944), + 53: uint16(44945), + 54: uint16(44949), + 55: uint16(44956), + 56: uint16(44984), + 57: uint16(44985), + 58: uint16(44988), + 59: uint16(44992), + 60: uint16(44999), + 61: uint16(45000), + 62: uint16(45001), + 63: uint16(45003), + 64: uint16(45005), + 65: uint16(45006), + 66: uint16(45012), + 67: uint16(45020), + 68: uint16(45032), + 69: uint16(45033), + 70: uint16(45040), + 71: uint16(45041), + 72: uint16(45044), + 73: uint16(45048), + 74: uint16(45056), + 75: uint16(45057), + 76: uint16(45060), + 77: uint16(45068), + 78: uint16(45072), + 79: uint16(45076), + 80: uint16(45084), + 81: uint16(45085), + 82: uint16(45096), + 83: uint16(45124), + 84: uint16(45125), + 85: uint16(45128), + 86: uint16(45130), + 87: uint16(45132), + 88: uint16(45134), + 89: uint16(45139), + 90: uint16(45140), + 91: uint16(45141), + 92: uint16(45143), + 93: uint16(45145), + }, + 18: { + 0: uint16(45149), + 1: uint16(45180), + 2: uint16(45181), + 3: uint16(45184), + 4: uint16(45188), + 5: uint16(45196), + 6: uint16(45197), + 7: uint16(45199), + 8: uint16(45201), + 9: uint16(45208), + 10: uint16(45209), + 11: uint16(45210), + 12: uint16(45212), + 13: uint16(45215), + 14: uint16(45216), + 15: uint16(45217), + 16: uint16(45218), + 17: uint16(45224), + 18: uint16(45225), + 19: uint16(45227), + 20: uint16(45228), + 21: uint16(45229), + 22: uint16(45230), + 23: uint16(45231), + 24: uint16(45233), + 25: uint16(45235), + 26: uint16(45236), + 27: uint16(45237), + 28: uint16(45240), + 29: uint16(45244), + 30: uint16(45252), + 31: uint16(45253), + 32: uint16(45255), + 33: uint16(45256), + 34: uint16(45257), + 35: uint16(45264), + 36: uint16(45265), + 37: uint16(45268), + 38: uint16(45272), + 39: uint16(45280), + 40: uint16(45285), + 41: uint16(45320), + 42: uint16(45321), + 43: uint16(45323), + 44: uint16(45324), + 45: uint16(45328), + 46: uint16(45330), + 47: uint16(45331), + 48: uint16(45336), + 49: uint16(45337), + 50: uint16(45339), + 51: uint16(45340), + 52: uint16(45341), + 53: uint16(45347), + 54: uint16(45348), + 55: uint16(45349), + 56: uint16(45352), + 57: uint16(45356), + 58: uint16(45364), + 59: uint16(45365), + 60: uint16(45367), + 61: uint16(45368), + 62: uint16(45369), + 63: uint16(45376), + 64: uint16(45377), + 65: uint16(45380), + 66: uint16(45384), + 67: uint16(45392), + 68: uint16(45393), + 69: uint16(45396), + 70: uint16(45397), + 71: uint16(45400), + 72: uint16(45404), + 73: uint16(45408), + 74: uint16(45432), + 75: uint16(45433), + 76: uint16(45436), + 77: uint16(45440), + 78: uint16(45442), + 79: uint16(45448), + 80: uint16(45449), + 81: uint16(45451), + 82: uint16(45453), + 83: uint16(45458), + 84: uint16(45459), + 85: uint16(45460), + 86: uint16(45464), + 87: uint16(45468), + 88: uint16(45480), + 89: uint16(45516), + 90: uint16(45520), + 91: uint16(45524), + 92: uint16(45532), + 93: uint16(45533), + }, + 19: { + 0: uint16(45535), + 1: uint16(45544), + 2: uint16(45545), + 3: uint16(45548), + 4: uint16(45552), + 5: uint16(45561), + 6: uint16(45563), + 7: uint16(45565), + 8: uint16(45572), + 9: uint16(45573), + 10: uint16(45576), + 11: uint16(45579), + 12: uint16(45580), + 13: uint16(45588), + 14: uint16(45589), + 15: uint16(45591), + 16: uint16(45593), + 17: uint16(45600), + 18: uint16(45620), + 19: uint16(45628), + 20: uint16(45656), + 21: uint16(45660), + 22: uint16(45664), + 23: uint16(45672), + 24: uint16(45673), + 25: uint16(45684), + 26: uint16(45685), + 27: uint16(45692), + 28: uint16(45700), + 29: uint16(45701), + 30: uint16(45705), + 31: uint16(45712), + 32: uint16(45713), + 33: uint16(45716), + 34: uint16(45720), + 35: uint16(45721), + 36: uint16(45722), + 37: uint16(45728), + 38: uint16(45729), + 39: uint16(45731), + 40: uint16(45733), + 41: uint16(45734), + 42: uint16(45738), + 43: uint16(45740), + 44: uint16(45744), + 45: uint16(45748), + 46: uint16(45768), + 47: uint16(45769), + 48: uint16(45772), + 49: uint16(45776), + 50: uint16(45778), + 51: uint16(45784), + 52: uint16(45785), + 53: uint16(45787), + 54: uint16(45789), + 55: uint16(45794), + 56: uint16(45796), + 57: uint16(45797), + 58: uint16(45798), + 59: uint16(45800), + 60: uint16(45803), + 61: uint16(45804), + 62: uint16(45805), + 63: uint16(45806), + 64: uint16(45807), + 65: uint16(45811), + 66: uint16(45812), + 67: uint16(45813), + 68: uint16(45815), + 69: uint16(45816), + 70: uint16(45817), + 71: uint16(45818), + 72: uint16(45819), + 73: uint16(45823), + 74: uint16(45824), + 75: uint16(45825), + 76: uint16(45828), + 77: uint16(45832), + 78: uint16(45840), + 79: uint16(45841), + 80: uint16(45843), + 81: uint16(45844), + 82: uint16(45845), + 83: uint16(45852), + 84: uint16(45908), + 85: uint16(45909), + 86: uint16(45910), + 87: uint16(45912), + 88: uint16(45915), + 89: uint16(45916), + 90: uint16(45918), + 91: uint16(45919), + 92: uint16(45924), + 93: uint16(45925), + }, + 20: { + 0: uint16(45927), + 1: uint16(45929), + 2: uint16(45931), + 3: uint16(45934), + 4: uint16(45936), + 5: uint16(45937), + 6: uint16(45940), + 7: uint16(45944), + 8: uint16(45952), + 9: uint16(45953), + 10: uint16(45955), + 11: uint16(45956), + 12: uint16(45957), + 13: uint16(45964), + 14: uint16(45968), + 15: uint16(45972), + 16: uint16(45984), + 17: uint16(45985), + 18: uint16(45992), + 19: uint16(45996), + 20: uint16(46020), + 21: uint16(46021), + 22: uint16(46024), + 23: uint16(46027), + 24: uint16(46028), + 25: uint16(46030), + 26: uint16(46032), + 27: uint16(46036), + 28: uint16(46037), + 29: uint16(46039), + 30: uint16(46041), + 31: uint16(46043), + 32: uint16(46045), + 33: uint16(46048), + 34: uint16(46052), + 35: uint16(46056), + 36: uint16(46076), + 37: uint16(46096), + 38: uint16(46104), + 39: uint16(46108), + 40: uint16(46112), + 41: uint16(46120), + 42: uint16(46121), + 43: uint16(46123), + 44: uint16(46132), + 45: uint16(46160), + 46: uint16(46161), + 47: uint16(46164), + 48: uint16(46168), + 49: uint16(46176), + 50: uint16(46177), + 51: uint16(46179), + 52: uint16(46181), + 53: uint16(46188), + 54: uint16(46208), + 55: uint16(46216), + 56: uint16(46237), + 57: uint16(46244), + 58: uint16(46248), + 59: uint16(46252), + 60: uint16(46261), + 61: uint16(46263), + 62: uint16(46265), + 63: uint16(46272), + 64: uint16(46276), + 65: uint16(46280), + 66: uint16(46288), + 67: uint16(46293), + 68: uint16(46300), + 69: uint16(46301), + 70: uint16(46304), + 71: uint16(46307), + 72: uint16(46308), + 73: uint16(46310), + 74: uint16(46316), + 75: uint16(46317), + 76: uint16(46319), + 77: uint16(46321), + 78: uint16(46328), + 79: uint16(46356), + 80: uint16(46357), + 81: uint16(46360), + 82: uint16(46363), + 83: uint16(46364), + 84: uint16(46372), + 85: uint16(46373), + 86: uint16(46375), + 87: uint16(46376), + 88: uint16(46377), + 89: uint16(46378), + 90: uint16(46384), + 91: uint16(46385), + 92: uint16(46388), + 93: uint16(46392), + }, + 21: { + 0: uint16(46400), + 1: uint16(46401), + 2: uint16(46403), + 3: uint16(46404), + 4: uint16(46405), + 5: uint16(46411), + 6: uint16(46412), + 7: uint16(46413), + 8: uint16(46416), + 9: uint16(46420), + 10: uint16(46428), + 11: uint16(46429), + 12: uint16(46431), + 13: uint16(46432), + 14: uint16(46433), + 15: uint16(46496), + 16: uint16(46497), + 17: uint16(46500), + 18: uint16(46504), + 19: uint16(46506), + 20: uint16(46507), + 21: uint16(46512), + 22: uint16(46513), + 23: uint16(46515), + 24: uint16(46516), + 25: uint16(46517), + 26: uint16(46523), + 27: uint16(46524), + 28: uint16(46525), + 29: uint16(46528), + 30: uint16(46532), + 31: uint16(46540), + 32: uint16(46541), + 33: uint16(46543), + 34: uint16(46544), + 35: uint16(46545), + 36: uint16(46552), + 37: uint16(46572), + 38: uint16(46608), + 39: uint16(46609), + 40: uint16(46612), + 41: uint16(46616), + 42: uint16(46629), + 43: uint16(46636), + 44: uint16(46644), + 45: uint16(46664), + 46: uint16(46692), + 47: uint16(46696), + 48: uint16(46748), + 49: uint16(46749), + 50: uint16(46752), + 51: uint16(46756), + 52: uint16(46763), + 53: uint16(46764), + 54: uint16(46769), + 55: uint16(46804), + 56: uint16(46832), + 57: uint16(46836), + 58: uint16(46840), + 59: uint16(46848), + 60: uint16(46849), + 61: uint16(46853), + 62: uint16(46888), + 63: uint16(46889), + 64: uint16(46892), + 65: uint16(46895), + 66: uint16(46896), + 67: uint16(46904), + 68: uint16(46905), + 69: uint16(46907), + 70: uint16(46916), + 71: uint16(46920), + 72: uint16(46924), + 73: uint16(46932), + 74: uint16(46933), + 75: uint16(46944), + 76: uint16(46948), + 77: uint16(46952), + 78: uint16(46960), + 79: uint16(46961), + 80: uint16(46963), + 81: uint16(46965), + 82: uint16(46972), + 83: uint16(46973), + 84: uint16(46976), + 85: uint16(46980), + 86: uint16(46988), + 87: uint16(46989), + 88: uint16(46991), + 89: uint16(46992), + 90: uint16(46993), + 91: uint16(46994), + 92: uint16(46998), + 93: uint16(46999), + }, + 22: { + 0: uint16(47000), + 1: uint16(47001), + 2: uint16(47004), + 3: uint16(47008), + 4: uint16(47016), + 5: uint16(47017), + 6: uint16(47019), + 7: uint16(47020), + 8: uint16(47021), + 9: uint16(47028), + 10: uint16(47029), + 11: uint16(47032), + 12: uint16(47047), + 13: uint16(47049), + 14: uint16(47084), + 15: uint16(47085), + 16: uint16(47088), + 17: uint16(47092), + 18: uint16(47100), + 19: uint16(47101), + 20: uint16(47103), + 21: uint16(47104), + 22: uint16(47105), + 23: uint16(47111), + 24: uint16(47112), + 25: uint16(47113), + 26: uint16(47116), + 27: uint16(47120), + 28: uint16(47128), + 29: uint16(47129), + 30: uint16(47131), + 31: uint16(47133), + 32: uint16(47140), + 33: uint16(47141), + 34: uint16(47144), + 35: uint16(47148), + 36: uint16(47156), + 37: uint16(47157), + 38: uint16(47159), + 39: uint16(47160), + 40: uint16(47161), + 41: uint16(47168), + 42: uint16(47172), + 43: uint16(47185), + 44: uint16(47187), + 45: uint16(47196), + 46: uint16(47197), + 47: uint16(47200), + 48: uint16(47204), + 49: uint16(47212), + 50: uint16(47213), + 51: uint16(47215), + 52: uint16(47217), + 53: uint16(47224), + 54: uint16(47228), + 55: uint16(47245), + 56: uint16(47272), + 57: uint16(47280), + 58: uint16(47284), + 59: uint16(47288), + 60: uint16(47296), + 61: uint16(47297), + 62: uint16(47299), + 63: uint16(47301), + 64: uint16(47308), + 65: uint16(47312), + 66: uint16(47316), + 67: uint16(47325), + 68: uint16(47327), + 69: uint16(47329), + 70: uint16(47336), + 71: uint16(47337), + 72: uint16(47340), + 73: uint16(47344), + 74: uint16(47352), + 75: uint16(47353), + 76: uint16(47355), + 77: uint16(47357), + 78: uint16(47364), + 79: uint16(47384), + 80: uint16(47392), + 81: uint16(47420), + 82: uint16(47421), + 83: uint16(47424), + 84: uint16(47428), + 85: uint16(47436), + 86: uint16(47439), + 87: uint16(47441), + 88: uint16(47448), + 89: uint16(47449), + 90: uint16(47452), + 91: uint16(47456), + 92: uint16(47464), + 93: uint16(47465), + }, + 23: { + 0: uint16(47467), + 1: uint16(47469), + 2: uint16(47476), + 3: uint16(47477), + 4: uint16(47480), + 5: uint16(47484), + 6: uint16(47492), + 7: uint16(47493), + 8: uint16(47495), + 9: uint16(47497), + 10: uint16(47498), + 11: uint16(47501), + 12: uint16(47502), + 13: uint16(47532), + 14: uint16(47533), + 15: uint16(47536), + 16: uint16(47540), + 17: uint16(47548), + 18: uint16(47549), + 19: uint16(47551), + 20: uint16(47553), + 21: uint16(47560), + 22: uint16(47561), + 23: uint16(47564), + 24: uint16(47566), + 25: uint16(47567), + 26: uint16(47568), + 27: uint16(47569), + 28: uint16(47570), + 29: uint16(47576), + 30: uint16(47577), + 31: uint16(47579), + 32: uint16(47581), + 33: uint16(47582), + 34: uint16(47585), + 35: uint16(47587), + 36: uint16(47588), + 37: uint16(47589), + 38: uint16(47592), + 39: uint16(47596), + 40: uint16(47604), + 41: uint16(47605), + 42: uint16(47607), + 43: uint16(47608), + 44: uint16(47609), + 45: uint16(47610), + 46: uint16(47616), + 47: uint16(47617), + 48: uint16(47624), + 49: uint16(47637), + 50: uint16(47672), + 51: uint16(47673), + 52: uint16(47676), + 53: uint16(47680), + 54: uint16(47682), + 55: uint16(47688), + 56: uint16(47689), + 57: uint16(47691), + 58: uint16(47693), + 59: uint16(47694), + 60: uint16(47699), + 61: uint16(47700), + 62: uint16(47701), + 63: uint16(47704), + 64: uint16(47708), + 65: uint16(47716), + 66: uint16(47717), + 67: uint16(47719), + 68: uint16(47720), + 69: uint16(47721), + 70: uint16(47728), + 71: uint16(47729), + 72: uint16(47732), + 73: uint16(47736), + 74: uint16(47747), + 75: uint16(47748), + 76: uint16(47749), + 77: uint16(47751), + 78: uint16(47756), + 79: uint16(47784), + 80: uint16(47785), + 81: uint16(47787), + 82: uint16(47788), + 83: uint16(47792), + 84: uint16(47794), + 85: uint16(47800), + 86: uint16(47801), + 87: uint16(47803), + 88: uint16(47805), + 89: uint16(47812), + 90: uint16(47816), + 91: uint16(47832), + 92: uint16(47833), + 93: uint16(47868), + }, + 24: { + 0: uint16(47872), + 1: uint16(47876), + 2: uint16(47885), + 3: uint16(47887), + 4: uint16(47889), + 5: uint16(47896), + 6: uint16(47900), + 7: uint16(47904), + 8: uint16(47913), + 9: uint16(47915), + 10: uint16(47924), + 11: uint16(47925), + 12: uint16(47926), + 13: uint16(47928), + 14: uint16(47931), + 15: uint16(47932), + 16: uint16(47933), + 17: uint16(47934), + 18: uint16(47940), + 19: uint16(47941), + 20: uint16(47943), + 21: uint16(47945), + 22: uint16(47949), + 23: uint16(47951), + 24: uint16(47952), + 25: uint16(47956), + 26: uint16(47960), + 27: uint16(47969), + 28: uint16(47971), + 29: uint16(47980), + 30: uint16(48008), + 31: uint16(48012), + 32: uint16(48016), + 33: uint16(48036), + 34: uint16(48040), + 35: uint16(48044), + 36: uint16(48052), + 37: uint16(48055), + 38: uint16(48064), + 39: uint16(48068), + 40: uint16(48072), + 41: uint16(48080), + 42: uint16(48083), + 43: uint16(48120), + 44: uint16(48121), + 45: uint16(48124), + 46: uint16(48127), + 47: uint16(48128), + 48: uint16(48130), + 49: uint16(48136), + 50: uint16(48137), + 51: uint16(48139), + 52: uint16(48140), + 53: uint16(48141), + 54: uint16(48143), + 55: uint16(48145), + 56: uint16(48148), + 57: uint16(48149), + 58: uint16(48150), + 59: uint16(48151), + 60: uint16(48152), + 61: uint16(48155), + 62: uint16(48156), + 63: uint16(48157), + 64: uint16(48158), + 65: uint16(48159), + 66: uint16(48164), + 67: uint16(48165), + 68: uint16(48167), + 69: uint16(48169), + 70: uint16(48173), + 71: uint16(48176), + 72: uint16(48177), + 73: uint16(48180), + 74: uint16(48184), + 75: uint16(48192), + 76: uint16(48193), + 77: uint16(48195), + 78: uint16(48196), + 79: uint16(48197), + 80: uint16(48201), + 81: uint16(48204), + 82: uint16(48205), + 83: uint16(48208), + 84: uint16(48221), + 85: uint16(48260), + 86: uint16(48261), + 87: uint16(48264), + 88: uint16(48267), + 89: uint16(48268), + 90: uint16(48270), + 91: uint16(48276), + 92: uint16(48277), + 93: uint16(48279), + }, + 25: { + 0: uint16(48281), + 1: uint16(48282), + 2: uint16(48288), + 3: uint16(48289), + 4: uint16(48292), + 5: uint16(48295), + 6: uint16(48296), + 7: uint16(48304), + 8: uint16(48305), + 9: uint16(48307), + 10: uint16(48308), + 11: uint16(48309), + 12: uint16(48316), + 13: uint16(48317), + 14: uint16(48320), + 15: uint16(48324), + 16: uint16(48333), + 17: uint16(48335), + 18: uint16(48336), + 19: uint16(48337), + 20: uint16(48341), + 21: uint16(48344), + 22: uint16(48348), + 23: uint16(48372), + 24: uint16(48373), + 25: uint16(48374), + 26: uint16(48376), + 27: uint16(48380), + 28: uint16(48388), + 29: uint16(48389), + 30: uint16(48391), + 31: uint16(48393), + 32: uint16(48400), + 33: uint16(48404), + 34: uint16(48420), + 35: uint16(48428), + 36: uint16(48448), + 37: uint16(48456), + 38: uint16(48457), + 39: uint16(48460), + 40: uint16(48464), + 41: uint16(48472), + 42: uint16(48473), + 43: uint16(48484), + 44: uint16(48488), + 45: uint16(48512), + 46: uint16(48513), + 47: uint16(48516), + 48: uint16(48519), + 49: uint16(48520), + 50: uint16(48521), + 51: uint16(48522), + 52: uint16(48528), + 53: uint16(48529), + 54: uint16(48531), + 55: uint16(48533), + 56: uint16(48537), + 57: uint16(48538), + 58: uint16(48540), + 59: uint16(48548), + 60: uint16(48560), + 61: uint16(48568), + 62: uint16(48596), + 63: uint16(48597), + 64: uint16(48600), + 65: uint16(48604), + 66: uint16(48617), + 67: uint16(48624), + 68: uint16(48628), + 69: uint16(48632), + 70: uint16(48640), + 71: uint16(48643), + 72: uint16(48645), + 73: uint16(48652), + 74: uint16(48653), + 75: uint16(48656), + 76: uint16(48660), + 77: uint16(48668), + 78: uint16(48669), + 79: uint16(48671), + 80: uint16(48708), + 81: uint16(48709), + 82: uint16(48712), + 83: uint16(48716), + 84: uint16(48718), + 85: uint16(48724), + 86: uint16(48725), + 87: uint16(48727), + 88: uint16(48729), + 89: uint16(48730), + 90: uint16(48731), + 91: uint16(48736), + 92: uint16(48737), + 93: uint16(48740), + }, + 26: { + 0: uint16(48744), + 1: uint16(48746), + 2: uint16(48752), + 3: uint16(48753), + 4: uint16(48755), + 5: uint16(48756), + 6: uint16(48757), + 7: uint16(48763), + 8: uint16(48764), + 9: uint16(48765), + 10: uint16(48768), + 11: uint16(48772), + 12: uint16(48780), + 13: uint16(48781), + 14: uint16(48783), + 15: uint16(48784), + 16: uint16(48785), + 17: uint16(48792), + 18: uint16(48793), + 19: uint16(48808), + 20: uint16(48848), + 21: uint16(48849), + 22: uint16(48852), + 23: uint16(48855), + 24: uint16(48856), + 25: uint16(48864), + 26: uint16(48867), + 27: uint16(48868), + 28: uint16(48869), + 29: uint16(48876), + 30: uint16(48897), + 31: uint16(48904), + 32: uint16(48905), + 33: uint16(48920), + 34: uint16(48921), + 35: uint16(48923), + 36: uint16(48924), + 37: uint16(48925), + 38: uint16(48960), + 39: uint16(48961), + 40: uint16(48964), + 41: uint16(48968), + 42: uint16(48976), + 43: uint16(48977), + 44: uint16(48981), + 45: uint16(49044), + 46: uint16(49072), + 47: uint16(49093), + 48: uint16(49100), + 49: uint16(49101), + 50: uint16(49104), + 51: uint16(49108), + 52: uint16(49116), + 53: uint16(49119), + 54: uint16(49121), + 55: uint16(49212), + 56: uint16(49233), + 57: uint16(49240), + 58: uint16(49244), + 59: uint16(49248), + 60: uint16(49256), + 61: uint16(49257), + 62: uint16(49296), + 63: uint16(49297), + 64: uint16(49300), + 65: uint16(49304), + 66: uint16(49312), + 67: uint16(49313), + 68: uint16(49315), + 69: uint16(49317), + 70: uint16(49324), + 71: uint16(49325), + 72: uint16(49327), + 73: uint16(49328), + 74: uint16(49331), + 75: uint16(49332), + 76: uint16(49333), + 77: uint16(49334), + 78: uint16(49340), + 79: uint16(49341), + 80: uint16(49343), + 81: uint16(49344), + 82: uint16(49345), + 83: uint16(49349), + 84: uint16(49352), + 85: uint16(49353), + 86: uint16(49356), + 87: uint16(49360), + 88: uint16(49368), + 89: uint16(49369), + 90: uint16(49371), + 91: uint16(49372), + 92: uint16(49373), + 93: uint16(49380), + }, + 27: { + 0: uint16(49381), + 1: uint16(49384), + 2: uint16(49388), + 3: uint16(49396), + 4: uint16(49397), + 5: uint16(49399), + 6: uint16(49401), + 7: uint16(49408), + 8: uint16(49412), + 9: uint16(49416), + 10: uint16(49424), + 11: uint16(49429), + 12: uint16(49436), + 13: uint16(49437), + 14: uint16(49438), + 15: uint16(49439), + 16: uint16(49440), + 17: uint16(49443), + 18: uint16(49444), + 19: uint16(49446), + 20: uint16(49447), + 21: uint16(49452), + 22: uint16(49453), + 23: uint16(49455), + 24: uint16(49456), + 25: uint16(49457), + 26: uint16(49462), + 27: uint16(49464), + 28: uint16(49465), + 29: uint16(49468), + 30: uint16(49472), + 31: uint16(49480), + 32: uint16(49481), + 33: uint16(49483), + 34: uint16(49484), + 35: uint16(49485), + 36: uint16(49492), + 37: uint16(49493), + 38: uint16(49496), + 39: uint16(49500), + 40: uint16(49508), + 41: uint16(49509), + 42: uint16(49511), + 43: uint16(49512), + 44: uint16(49513), + 45: uint16(49520), + 46: uint16(49524), + 47: uint16(49528), + 48: uint16(49541), + 49: uint16(49548), + 50: uint16(49549), + 51: uint16(49550), + 52: uint16(49552), + 53: uint16(49556), + 54: uint16(49558), + 55: uint16(49564), + 56: uint16(49565), + 57: uint16(49567), + 58: uint16(49569), + 59: uint16(49573), + 60: uint16(49576), + 61: uint16(49577), + 62: uint16(49580), + 63: uint16(49584), + 64: uint16(49597), + 65: uint16(49604), + 66: uint16(49608), + 67: uint16(49612), + 68: uint16(49620), + 69: uint16(49623), + 70: uint16(49624), + 71: uint16(49632), + 72: uint16(49636), + 73: uint16(49640), + 74: uint16(49648), + 75: uint16(49649), + 76: uint16(49651), + 77: uint16(49660), + 78: uint16(49661), + 79: uint16(49664), + 80: uint16(49668), + 81: uint16(49676), + 82: uint16(49677), + 83: uint16(49679), + 84: uint16(49681), + 85: uint16(49688), + 86: uint16(49689), + 87: uint16(49692), + 88: uint16(49695), + 89: uint16(49696), + 90: uint16(49704), + 91: uint16(49705), + 92: uint16(49707), + 93: uint16(49709), + }, + 28: { + 0: uint16(49711), + 1: uint16(49713), + 2: uint16(49714), + 3: uint16(49716), + 4: uint16(49736), + 5: uint16(49744), + 6: uint16(49745), + 7: uint16(49748), + 8: uint16(49752), + 9: uint16(49760), + 10: uint16(49765), + 11: uint16(49772), + 12: uint16(49773), + 13: uint16(49776), + 14: uint16(49780), + 15: uint16(49788), + 16: uint16(49789), + 17: uint16(49791), + 18: uint16(49793), + 19: uint16(49800), + 20: uint16(49801), + 21: uint16(49808), + 22: uint16(49816), + 23: uint16(49819), + 24: uint16(49821), + 25: uint16(49828), + 26: uint16(49829), + 27: uint16(49832), + 28: uint16(49836), + 29: uint16(49837), + 30: uint16(49844), + 31: uint16(49845), + 32: uint16(49847), + 33: uint16(49849), + 34: uint16(49884), + 35: uint16(49885), + 36: uint16(49888), + 37: uint16(49891), + 38: uint16(49892), + 39: uint16(49899), + 40: uint16(49900), + 41: uint16(49901), + 42: uint16(49903), + 43: uint16(49905), + 44: uint16(49910), + 45: uint16(49912), + 46: uint16(49913), + 47: uint16(49915), + 48: uint16(49916), + 49: uint16(49920), + 50: uint16(49928), + 51: uint16(49929), + 52: uint16(49932), + 53: uint16(49933), + 54: uint16(49939), + 55: uint16(49940), + 56: uint16(49941), + 57: uint16(49944), + 58: uint16(49948), + 59: uint16(49956), + 60: uint16(49957), + 61: uint16(49960), + 62: uint16(49961), + 63: uint16(49989), + 64: uint16(50024), + 65: uint16(50025), + 66: uint16(50028), + 67: uint16(50032), + 68: uint16(50034), + 69: uint16(50040), + 70: uint16(50041), + 71: uint16(50044), + 72: uint16(50045), + 73: uint16(50052), + 74: uint16(50056), + 75: uint16(50060), + 76: uint16(50112), + 77: uint16(50136), + 78: uint16(50137), + 79: uint16(50140), + 80: uint16(50143), + 81: uint16(50144), + 82: uint16(50146), + 83: uint16(50152), + 84: uint16(50153), + 85: uint16(50157), + 86: uint16(50164), + 87: uint16(50165), + 88: uint16(50168), + 89: uint16(50184), + 90: uint16(50192), + 91: uint16(50212), + 92: uint16(50220), + 93: uint16(50224), + }, + 29: { + 0: uint16(50228), + 1: uint16(50236), + 2: uint16(50237), + 3: uint16(50248), + 4: uint16(50276), + 5: uint16(50277), + 6: uint16(50280), + 7: uint16(50284), + 8: uint16(50292), + 9: uint16(50293), + 10: uint16(50297), + 11: uint16(50304), + 12: uint16(50324), + 13: uint16(50332), + 14: uint16(50360), + 15: uint16(50364), + 16: uint16(50409), + 17: uint16(50416), + 18: uint16(50417), + 19: uint16(50420), + 20: uint16(50424), + 21: uint16(50426), + 22: uint16(50431), + 23: uint16(50432), + 24: uint16(50433), + 25: uint16(50444), + 26: uint16(50448), + 27: uint16(50452), + 28: uint16(50460), + 29: uint16(50472), + 30: uint16(50473), + 31: uint16(50476), + 32: uint16(50480), + 33: uint16(50488), + 34: uint16(50489), + 35: uint16(50491), + 36: uint16(50493), + 37: uint16(50500), + 38: uint16(50501), + 39: uint16(50504), + 40: uint16(50505), + 41: uint16(50506), + 42: uint16(50508), + 43: uint16(50509), + 44: uint16(50510), + 45: uint16(50515), + 46: uint16(50516), + 47: uint16(50517), + 48: uint16(50519), + 49: uint16(50520), + 50: uint16(50521), + 51: uint16(50525), + 52: uint16(50526), + 53: uint16(50528), + 54: uint16(50529), + 55: uint16(50532), + 56: uint16(50536), + 57: uint16(50544), + 58: uint16(50545), + 59: uint16(50547), + 60: uint16(50548), + 61: uint16(50549), + 62: uint16(50556), + 63: uint16(50557), + 64: uint16(50560), + 65: uint16(50564), + 66: uint16(50567), + 67: uint16(50572), + 68: uint16(50573), + 69: uint16(50575), + 70: uint16(50577), + 71: uint16(50581), + 72: uint16(50583), + 73: uint16(50584), + 74: uint16(50588), + 75: uint16(50592), + 76: uint16(50601), + 77: uint16(50612), + 78: uint16(50613), + 79: uint16(50616), + 80: uint16(50617), + 81: uint16(50619), + 82: uint16(50620), + 83: uint16(50621), + 84: uint16(50622), + 85: uint16(50628), + 86: uint16(50629), + 87: uint16(50630), + 88: uint16(50631), + 89: uint16(50632), + 90: uint16(50633), + 91: uint16(50634), + 92: uint16(50636), + 93: uint16(50638), + }, + 30: { + 0: uint16(50640), + 1: uint16(50641), + 2: uint16(50644), + 3: uint16(50648), + 4: uint16(50656), + 5: uint16(50657), + 6: uint16(50659), + 7: uint16(50661), + 8: uint16(50668), + 9: uint16(50669), + 10: uint16(50670), + 11: uint16(50672), + 12: uint16(50676), + 13: uint16(50678), + 14: uint16(50679), + 15: uint16(50684), + 16: uint16(50685), + 17: uint16(50686), + 18: uint16(50687), + 19: uint16(50688), + 20: uint16(50689), + 21: uint16(50693), + 22: uint16(50694), + 23: uint16(50695), + 24: uint16(50696), + 25: uint16(50700), + 26: uint16(50704), + 27: uint16(50712), + 28: uint16(50713), + 29: uint16(50715), + 30: uint16(50716), + 31: uint16(50724), + 32: uint16(50725), + 33: uint16(50728), + 34: uint16(50732), + 35: uint16(50733), + 36: uint16(50734), + 37: uint16(50736), + 38: uint16(50739), + 39: uint16(50740), + 40: uint16(50741), + 41: uint16(50743), + 42: uint16(50745), + 43: uint16(50747), + 44: uint16(50752), + 45: uint16(50753), + 46: uint16(50756), + 47: uint16(50760), + 48: uint16(50768), + 49: uint16(50769), + 50: uint16(50771), + 51: uint16(50772), + 52: uint16(50773), + 53: uint16(50780), + 54: uint16(50781), + 55: uint16(50784), + 56: uint16(50796), + 57: uint16(50799), + 58: uint16(50801), + 59: uint16(50808), + 60: uint16(50809), + 61: uint16(50812), + 62: uint16(50816), + 63: uint16(50824), + 64: uint16(50825), + 65: uint16(50827), + 66: uint16(50829), + 67: uint16(50836), + 68: uint16(50837), + 69: uint16(50840), + 70: uint16(50844), + 71: uint16(50852), + 72: uint16(50853), + 73: uint16(50855), + 74: uint16(50857), + 75: uint16(50864), + 76: uint16(50865), + 77: uint16(50868), + 78: uint16(50872), + 79: uint16(50873), + 80: uint16(50874), + 81: uint16(50880), + 82: uint16(50881), + 83: uint16(50883), + 84: uint16(50885), + 85: uint16(50892), + 86: uint16(50893), + 87: uint16(50896), + 88: uint16(50900), + 89: uint16(50908), + 90: uint16(50909), + 91: uint16(50912), + 92: uint16(50913), + 93: uint16(50920), + }, + 31: { + 0: uint16(50921), + 1: uint16(50924), + 2: uint16(50928), + 3: uint16(50936), + 4: uint16(50937), + 5: uint16(50941), + 6: uint16(50948), + 7: uint16(50949), + 8: uint16(50952), + 9: uint16(50956), + 10: uint16(50964), + 11: uint16(50965), + 12: uint16(50967), + 13: uint16(50969), + 14: uint16(50976), + 15: uint16(50977), + 16: uint16(50980), + 17: uint16(50984), + 18: uint16(50992), + 19: uint16(50993), + 20: uint16(50995), + 21: uint16(50997), + 22: uint16(50999), + 23: uint16(51004), + 24: uint16(51005), + 25: uint16(51008), + 26: uint16(51012), + 27: uint16(51018), + 28: uint16(51020), + 29: uint16(51021), + 30: uint16(51023), + 31: uint16(51025), + 32: uint16(51026), + 33: uint16(51027), + 34: uint16(51028), + 35: uint16(51029), + 36: uint16(51030), + 37: uint16(51031), + 38: uint16(51032), + 39: uint16(51036), + 40: uint16(51040), + 41: uint16(51048), + 42: uint16(51051), + 43: uint16(51060), + 44: uint16(51061), + 45: uint16(51064), + 46: uint16(51068), + 47: uint16(51069), + 48: uint16(51070), + 49: uint16(51075), + 50: uint16(51076), + 51: uint16(51077), + 52: uint16(51079), + 53: uint16(51080), + 54: uint16(51081), + 55: uint16(51082), + 56: uint16(51086), + 57: uint16(51088), + 58: uint16(51089), + 59: uint16(51092), + 60: uint16(51094), + 61: uint16(51095), + 62: uint16(51096), + 63: uint16(51098), + 64: uint16(51104), + 65: uint16(51105), + 66: uint16(51107), + 67: uint16(51108), + 68: uint16(51109), + 69: uint16(51110), + 70: uint16(51116), + 71: uint16(51117), + 72: uint16(51120), + 73: uint16(51124), + 74: uint16(51132), + 75: uint16(51133), + 76: uint16(51135), + 77: uint16(51136), + 78: uint16(51137), + 79: uint16(51144), + 80: uint16(51145), + 81: uint16(51148), + 82: uint16(51150), + 83: uint16(51152), + 84: uint16(51160), + 85: uint16(51165), + 86: uint16(51172), + 87: uint16(51176), + 88: uint16(51180), + 89: uint16(51200), + 90: uint16(51201), + 91: uint16(51204), + 92: uint16(51208), + 93: uint16(51210), + }, + 32: { + 0: uint16(51216), + 1: uint16(51217), + 2: uint16(51219), + 3: uint16(51221), + 4: uint16(51222), + 5: uint16(51228), + 6: uint16(51229), + 7: uint16(51232), + 8: uint16(51236), + 9: uint16(51244), + 10: uint16(51245), + 11: uint16(51247), + 12: uint16(51249), + 13: uint16(51256), + 14: uint16(51260), + 15: uint16(51264), + 16: uint16(51272), + 17: uint16(51273), + 18: uint16(51276), + 19: uint16(51277), + 20: uint16(51284), + 21: uint16(51312), + 22: uint16(51313), + 23: uint16(51316), + 24: uint16(51320), + 25: uint16(51322), + 26: uint16(51328), + 27: uint16(51329), + 28: uint16(51331), + 29: uint16(51333), + 30: uint16(51334), + 31: uint16(51335), + 32: uint16(51339), + 33: uint16(51340), + 34: uint16(51341), + 35: uint16(51348), + 36: uint16(51357), + 37: uint16(51359), + 38: uint16(51361), + 39: uint16(51368), + 40: uint16(51388), + 41: uint16(51389), + 42: uint16(51396), + 43: uint16(51400), + 44: uint16(51404), + 45: uint16(51412), + 46: uint16(51413), + 47: uint16(51415), + 48: uint16(51417), + 49: uint16(51424), + 50: uint16(51425), + 51: uint16(51428), + 52: uint16(51445), + 53: uint16(51452), + 54: uint16(51453), + 55: uint16(51456), + 56: uint16(51460), + 57: uint16(51461), + 58: uint16(51462), + 59: uint16(51468), + 60: uint16(51469), + 61: uint16(51471), + 62: uint16(51473), + 63: uint16(51480), + 64: uint16(51500), + 65: uint16(51508), + 66: uint16(51536), + 67: uint16(51537), + 68: uint16(51540), + 69: uint16(51544), + 70: uint16(51552), + 71: uint16(51553), + 72: uint16(51555), + 73: uint16(51564), + 74: uint16(51568), + 75: uint16(51572), + 76: uint16(51580), + 77: uint16(51592), + 78: uint16(51593), + 79: uint16(51596), + 80: uint16(51600), + 81: uint16(51608), + 82: uint16(51609), + 83: uint16(51611), + 84: uint16(51613), + 85: uint16(51648), + 86: uint16(51649), + 87: uint16(51652), + 88: uint16(51655), + 89: uint16(51656), + 90: uint16(51658), + 91: uint16(51664), + 92: uint16(51665), + 93: uint16(51667), + }, + 33: { + 0: uint16(51669), + 1: uint16(51670), + 2: uint16(51673), + 3: uint16(51674), + 4: uint16(51676), + 5: uint16(51677), + 6: uint16(51680), + 7: uint16(51682), + 8: uint16(51684), + 9: uint16(51687), + 10: uint16(51692), + 11: uint16(51693), + 12: uint16(51695), + 13: uint16(51696), + 14: uint16(51697), + 15: uint16(51704), + 16: uint16(51705), + 17: uint16(51708), + 18: uint16(51712), + 19: uint16(51720), + 20: uint16(51721), + 21: uint16(51723), + 22: uint16(51724), + 23: uint16(51725), + 24: uint16(51732), + 25: uint16(51736), + 26: uint16(51753), + 27: uint16(51788), + 28: uint16(51789), + 29: uint16(51792), + 30: uint16(51796), + 31: uint16(51804), + 32: uint16(51805), + 33: uint16(51807), + 34: uint16(51808), + 35: uint16(51809), + 36: uint16(51816), + 37: uint16(51837), + 38: uint16(51844), + 39: uint16(51864), + 40: uint16(51900), + 41: uint16(51901), + 42: uint16(51904), + 43: uint16(51908), + 44: uint16(51916), + 45: uint16(51917), + 46: uint16(51919), + 47: uint16(51921), + 48: uint16(51923), + 49: uint16(51928), + 50: uint16(51929), + 51: uint16(51936), + 52: uint16(51948), + 53: uint16(51956), + 54: uint16(51976), + 55: uint16(51984), + 56: uint16(51988), + 57: uint16(51992), + 58: uint16(52000), + 59: uint16(52001), + 60: uint16(52033), + 61: uint16(52040), + 62: uint16(52041), + 63: uint16(52044), + 64: uint16(52048), + 65: uint16(52056), + 66: uint16(52057), + 67: uint16(52061), + 68: uint16(52068), + 69: uint16(52088), + 70: uint16(52089), + 71: uint16(52124), + 72: uint16(52152), + 73: uint16(52180), + 74: uint16(52196), + 75: uint16(52199), + 76: uint16(52201), + 77: uint16(52236), + 78: uint16(52237), + 79: uint16(52240), + 80: uint16(52244), + 81: uint16(52252), + 82: uint16(52253), + 83: uint16(52257), + 84: uint16(52258), + 85: uint16(52263), + 86: uint16(52264), + 87: uint16(52265), + 88: uint16(52268), + 89: uint16(52270), + 90: uint16(52272), + 91: uint16(52280), + 92: uint16(52281), + 93: uint16(52283), + }, + 34: { + 0: uint16(52284), + 1: uint16(52285), + 2: uint16(52286), + 3: uint16(52292), + 4: uint16(52293), + 5: uint16(52296), + 6: uint16(52300), + 7: uint16(52308), + 8: uint16(52309), + 9: uint16(52311), + 10: uint16(52312), + 11: uint16(52313), + 12: uint16(52320), + 13: uint16(52324), + 14: uint16(52326), + 15: uint16(52328), + 16: uint16(52336), + 17: uint16(52341), + 18: uint16(52376), + 19: uint16(52377), + 20: uint16(52380), + 21: uint16(52384), + 22: uint16(52392), + 23: uint16(52393), + 24: uint16(52395), + 25: uint16(52396), + 26: uint16(52397), + 27: uint16(52404), + 28: uint16(52405), + 29: uint16(52408), + 30: uint16(52412), + 31: uint16(52420), + 32: uint16(52421), + 33: uint16(52423), + 34: uint16(52425), + 35: uint16(52432), + 36: uint16(52436), + 37: uint16(52452), + 38: uint16(52460), + 39: uint16(52464), + 40: uint16(52481), + 41: uint16(52488), + 42: uint16(52489), + 43: uint16(52492), + 44: uint16(52496), + 45: uint16(52504), + 46: uint16(52505), + 47: uint16(52507), + 48: uint16(52509), + 49: uint16(52516), + 50: uint16(52520), + 51: uint16(52524), + 52: uint16(52537), + 53: uint16(52572), + 54: uint16(52576), + 55: uint16(52580), + 56: uint16(52588), + 57: uint16(52589), + 58: uint16(52591), + 59: uint16(52593), + 60: uint16(52600), + 61: uint16(52616), + 62: uint16(52628), + 63: uint16(52629), + 64: uint16(52632), + 65: uint16(52636), + 66: uint16(52644), + 67: uint16(52645), + 68: uint16(52647), + 69: uint16(52649), + 70: uint16(52656), + 71: uint16(52676), + 72: uint16(52684), + 73: uint16(52688), + 74: uint16(52712), + 75: uint16(52716), + 76: uint16(52720), + 77: uint16(52728), + 78: uint16(52729), + 79: uint16(52731), + 80: uint16(52733), + 81: uint16(52740), + 82: uint16(52744), + 83: uint16(52748), + 84: uint16(52756), + 85: uint16(52761), + 86: uint16(52768), + 87: uint16(52769), + 88: uint16(52772), + 89: uint16(52776), + 90: uint16(52784), + 91: uint16(52785), + 92: uint16(52787), + 93: uint16(52789), + }, + 35: { + 0: uint16(52824), + 1: uint16(52825), + 2: uint16(52828), + 3: uint16(52831), + 4: uint16(52832), + 5: uint16(52833), + 6: uint16(52840), + 7: uint16(52841), + 8: uint16(52843), + 9: uint16(52845), + 10: uint16(52852), + 11: uint16(52853), + 12: uint16(52856), + 13: uint16(52860), + 14: uint16(52868), + 15: uint16(52869), + 16: uint16(52871), + 17: uint16(52873), + 18: uint16(52880), + 19: uint16(52881), + 20: uint16(52884), + 21: uint16(52888), + 22: uint16(52896), + 23: uint16(52897), + 24: uint16(52899), + 25: uint16(52900), + 26: uint16(52901), + 27: uint16(52908), + 28: uint16(52909), + 29: uint16(52929), + 30: uint16(52964), + 31: uint16(52965), + 32: uint16(52968), + 33: uint16(52971), + 34: uint16(52972), + 35: uint16(52980), + 36: uint16(52981), + 37: uint16(52983), + 38: uint16(52984), + 39: uint16(52985), + 40: uint16(52992), + 41: uint16(52993), + 42: uint16(52996), + 43: uint16(53000), + 44: uint16(53008), + 45: uint16(53009), + 46: uint16(53011), + 47: uint16(53013), + 48: uint16(53020), + 49: uint16(53024), + 50: uint16(53028), + 51: uint16(53036), + 52: uint16(53037), + 53: uint16(53039), + 54: uint16(53040), + 55: uint16(53041), + 56: uint16(53048), + 57: uint16(53076), + 58: uint16(53077), + 59: uint16(53080), + 60: uint16(53084), + 61: uint16(53092), + 62: uint16(53093), + 63: uint16(53095), + 64: uint16(53097), + 65: uint16(53104), + 66: uint16(53105), + 67: uint16(53108), + 68: uint16(53112), + 69: uint16(53120), + 70: uint16(53125), + 71: uint16(53132), + 72: uint16(53153), + 73: uint16(53160), + 74: uint16(53168), + 75: uint16(53188), + 76: uint16(53216), + 77: uint16(53217), + 78: uint16(53220), + 79: uint16(53224), + 80: uint16(53232), + 81: uint16(53233), + 82: uint16(53235), + 83: uint16(53237), + 84: uint16(53244), + 85: uint16(53248), + 86: uint16(53252), + 87: uint16(53265), + 88: uint16(53272), + 89: uint16(53293), + 90: uint16(53300), + 91: uint16(53301), + 92: uint16(53304), + 93: uint16(53308), + }, + 36: { + 0: uint16(53316), + 1: uint16(53317), + 2: uint16(53319), + 3: uint16(53321), + 4: uint16(53328), + 5: uint16(53332), + 6: uint16(53336), + 7: uint16(53344), + 8: uint16(53356), + 9: uint16(53357), + 10: uint16(53360), + 11: uint16(53364), + 12: uint16(53372), + 13: uint16(53373), + 14: uint16(53377), + 15: uint16(53412), + 16: uint16(53413), + 17: uint16(53416), + 18: uint16(53420), + 19: uint16(53428), + 20: uint16(53429), + 21: uint16(53431), + 22: uint16(53433), + 23: uint16(53440), + 24: uint16(53441), + 25: uint16(53444), + 26: uint16(53448), + 27: uint16(53449), + 28: uint16(53456), + 29: uint16(53457), + 30: uint16(53459), + 31: uint16(53460), + 32: uint16(53461), + 33: uint16(53468), + 34: uint16(53469), + 35: uint16(53472), + 36: uint16(53476), + 37: uint16(53484), + 38: uint16(53485), + 39: uint16(53487), + 40: uint16(53488), + 41: uint16(53489), + 42: uint16(53496), + 43: uint16(53517), + 44: uint16(53552), + 45: uint16(53553), + 46: uint16(53556), + 47: uint16(53560), + 48: uint16(53562), + 49: uint16(53568), + 50: uint16(53569), + 51: uint16(53571), + 52: uint16(53572), + 53: uint16(53573), + 54: uint16(53580), + 55: uint16(53581), + 56: uint16(53584), + 57: uint16(53588), + 58: uint16(53596), + 59: uint16(53597), + 60: uint16(53599), + 61: uint16(53601), + 62: uint16(53608), + 63: uint16(53612), + 64: uint16(53628), + 65: uint16(53636), + 66: uint16(53640), + 67: uint16(53664), + 68: uint16(53665), + 69: uint16(53668), + 70: uint16(53672), + 71: uint16(53680), + 72: uint16(53681), + 73: uint16(53683), + 74: uint16(53685), + 75: uint16(53690), + 76: uint16(53692), + 77: uint16(53696), + 78: uint16(53720), + 79: uint16(53748), + 80: uint16(53752), + 81: uint16(53767), + 82: uint16(53769), + 83: uint16(53776), + 84: uint16(53804), + 85: uint16(53805), + 86: uint16(53808), + 87: uint16(53812), + 88: uint16(53820), + 89: uint16(53821), + 90: uint16(53823), + 91: uint16(53825), + 92: uint16(53832), + 93: uint16(53852), + }, + 37: { + 0: uint16(53860), + 1: uint16(53888), + 2: uint16(53889), + 3: uint16(53892), + 4: uint16(53896), + 5: uint16(53904), + 6: uint16(53905), + 7: uint16(53909), + 8: uint16(53916), + 9: uint16(53920), + 10: uint16(53924), + 11: uint16(53932), + 12: uint16(53937), + 13: uint16(53944), + 14: uint16(53945), + 15: uint16(53948), + 16: uint16(53951), + 17: uint16(53952), + 18: uint16(53954), + 19: uint16(53960), + 20: uint16(53961), + 21: uint16(53963), + 22: uint16(53972), + 23: uint16(53976), + 24: uint16(53980), + 25: uint16(53988), + 26: uint16(53989), + 27: uint16(54000), + 28: uint16(54001), + 29: uint16(54004), + 30: uint16(54008), + 31: uint16(54016), + 32: uint16(54017), + 33: uint16(54019), + 34: uint16(54021), + 35: uint16(54028), + 36: uint16(54029), + 37: uint16(54030), + 38: uint16(54032), + 39: uint16(54036), + 40: uint16(54038), + 41: uint16(54044), + 42: uint16(54045), + 43: uint16(54047), + 44: uint16(54048), + 45: uint16(54049), + 46: uint16(54053), + 47: uint16(54056), + 48: uint16(54057), + 49: uint16(54060), + 50: uint16(54064), + 51: uint16(54072), + 52: uint16(54073), + 53: uint16(54075), + 54: uint16(54076), + 55: uint16(54077), + 56: uint16(54084), + 57: uint16(54085), + 58: uint16(54140), + 59: uint16(54141), + 60: uint16(54144), + 61: uint16(54148), + 62: uint16(54156), + 63: uint16(54157), + 64: uint16(54159), + 65: uint16(54160), + 66: uint16(54161), + 67: uint16(54168), + 68: uint16(54169), + 69: uint16(54172), + 70: uint16(54176), + 71: uint16(54184), + 72: uint16(54185), + 73: uint16(54187), + 74: uint16(54189), + 75: uint16(54196), + 76: uint16(54200), + 77: uint16(54204), + 78: uint16(54212), + 79: uint16(54213), + 80: uint16(54216), + 81: uint16(54217), + 82: uint16(54224), + 83: uint16(54232), + 84: uint16(54241), + 85: uint16(54243), + 86: uint16(54252), + 87: uint16(54253), + 88: uint16(54256), + 89: uint16(54260), + 90: uint16(54268), + 91: uint16(54269), + 92: uint16(54271), + 93: uint16(54273), + }, + 38: { + 0: uint16(54280), + 1: uint16(54301), + 2: uint16(54336), + 3: uint16(54340), + 4: uint16(54364), + 5: uint16(54368), + 6: uint16(54372), + 7: uint16(54381), + 8: uint16(54383), + 9: uint16(54392), + 10: uint16(54393), + 11: uint16(54396), + 12: uint16(54399), + 13: uint16(54400), + 14: uint16(54402), + 15: uint16(54408), + 16: uint16(54409), + 17: uint16(54411), + 18: uint16(54413), + 19: uint16(54420), + 20: uint16(54441), + 21: uint16(54476), + 22: uint16(54480), + 23: uint16(54484), + 24: uint16(54492), + 25: uint16(54495), + 26: uint16(54504), + 27: uint16(54508), + 28: uint16(54512), + 29: uint16(54520), + 30: uint16(54523), + 31: uint16(54525), + 32: uint16(54532), + 33: uint16(54536), + 34: uint16(54540), + 35: uint16(54548), + 36: uint16(54549), + 37: uint16(54551), + 38: uint16(54588), + 39: uint16(54589), + 40: uint16(54592), + 41: uint16(54596), + 42: uint16(54604), + 43: uint16(54605), + 44: uint16(54607), + 45: uint16(54609), + 46: uint16(54616), + 47: uint16(54617), + 48: uint16(54620), + 49: uint16(54624), + 50: uint16(54629), + 51: uint16(54632), + 52: uint16(54633), + 53: uint16(54635), + 54: uint16(54637), + 55: uint16(54644), + 56: uint16(54645), + 57: uint16(54648), + 58: uint16(54652), + 59: uint16(54660), + 60: uint16(54661), + 61: uint16(54663), + 62: uint16(54664), + 63: uint16(54665), + 64: uint16(54672), + 65: uint16(54693), + 66: uint16(54728), + 67: uint16(54729), + 68: uint16(54732), + 69: uint16(54736), + 70: uint16(54738), + 71: uint16(54744), + 72: uint16(54745), + 73: uint16(54747), + 74: uint16(54749), + 75: uint16(54756), + 76: uint16(54757), + 77: uint16(54760), + 78: uint16(54764), + 79: uint16(54772), + 80: uint16(54773), + 81: uint16(54775), + 82: uint16(54777), + 83: uint16(54784), + 84: uint16(54785), + 85: uint16(54788), + 86: uint16(54792), + 87: uint16(54800), + 88: uint16(54801), + 89: uint16(54803), + 90: uint16(54804), + 91: uint16(54805), + 92: uint16(54812), + 93: uint16(54816), + }, + 39: { + 0: uint16(54820), + 1: uint16(54829), + 2: uint16(54840), + 3: uint16(54841), + 4: uint16(54844), + 5: uint16(54848), + 6: uint16(54853), + 7: uint16(54856), + 8: uint16(54857), + 9: uint16(54859), + 10: uint16(54861), + 11: uint16(54865), + 12: uint16(54868), + 13: uint16(54869), + 14: uint16(54872), + 15: uint16(54876), + 16: uint16(54887), + 17: uint16(54889), + 18: uint16(54896), + 19: uint16(54897), + 20: uint16(54900), + 21: uint16(54915), + 22: uint16(54917), + 23: uint16(54924), + 24: uint16(54925), + 25: uint16(54928), + 26: uint16(54932), + 27: uint16(54941), + 28: uint16(54943), + 29: uint16(54945), + 30: uint16(54952), + 31: uint16(54956), + 32: uint16(54960), + 33: uint16(54969), + 34: uint16(54971), + 35: uint16(54980), + 36: uint16(54981), + 37: uint16(54984), + 38: uint16(54988), + 39: uint16(54993), + 40: uint16(54996), + 41: uint16(54999), + 42: uint16(55001), + 43: uint16(55008), + 44: uint16(55012), + 45: uint16(55016), + 46: uint16(55024), + 47: uint16(55029), + 48: uint16(55036), + 49: uint16(55037), + 50: uint16(55040), + 51: uint16(55044), + 52: uint16(55057), + 53: uint16(55064), + 54: uint16(55065), + 55: uint16(55068), + 56: uint16(55072), + 57: uint16(55080), + 58: uint16(55081), + 59: uint16(55083), + 60: uint16(55085), + 61: uint16(55092), + 62: uint16(55093), + 63: uint16(55096), + 64: uint16(55100), + 65: uint16(55108), + 66: uint16(55111), + 67: uint16(55113), + 68: uint16(55120), + 69: uint16(55121), + 70: uint16(55124), + 71: uint16(55126), + 72: uint16(55127), + 73: uint16(55128), + 74: uint16(55129), + 75: uint16(55136), + 76: uint16(55137), + 77: uint16(55139), + 78: uint16(55141), + 79: uint16(55145), + 80: uint16(55148), + 81: uint16(55152), + 82: uint16(55156), + 83: uint16(55164), + 84: uint16(55165), + 85: uint16(55169), + 86: uint16(55176), + 87: uint16(55177), + 88: uint16(55180), + 89: uint16(55184), + 90: uint16(55192), + 91: uint16(55193), + 92: uint16(55195), + 93: uint16(55197), + }, + 40: {}, + 41: { + 0: uint16(20285), + 1: uint16(20339), + 2: uint16(20551), + 3: uint16(20729), + 4: uint16(21152), + 5: uint16(21487), + 6: uint16(21621), + 7: uint16(21733), + 8: uint16(22025), + 9: uint16(23233), + 10: uint16(23478), + 11: uint16(26247), + 12: uint16(26550), + 13: uint16(26551), + 14: uint16(26607), + 15: uint16(27468), + 16: uint16(29634), + 17: uint16(30146), + 18: uint16(31292), + 19: uint16(33499), + 20: uint16(33540), + 21: uint16(34903), + 22: uint16(34952), + 23: uint16(35382), + 24: uint16(36040), + 25: uint16(36303), + 26: uint16(36603), + 27: uint16(36838), + 28: uint16(39381), + 29: uint16(21051), + 30: uint16(21364), + 31: uint16(21508), + 32: uint16(24682), + 33: uint16(24932), + 34: uint16(27580), + 35: uint16(29647), + 36: uint16(33050), + 37: uint16(35258), + 38: uint16(35282), + 39: uint16(38307), + 40: uint16(20355), + 41: uint16(21002), + 42: uint16(22718), + 43: uint16(22904), + 44: uint16(23014), + 45: uint16(24178), + 46: uint16(24185), + 47: uint16(25031), + 48: uint16(25536), + 49: uint16(26438), + 50: uint16(26604), + 51: uint16(26751), + 52: uint16(28567), + 53: uint16(30286), + 54: uint16(30475), + 55: uint16(30965), + 56: uint16(31240), + 57: uint16(31487), + 58: uint16(31777), + 59: uint16(32925), + 60: uint16(33390), + 61: uint16(33393), + 62: uint16(35563), + 63: uint16(38291), + 64: uint16(20075), + 65: uint16(21917), + 66: uint16(26359), + 67: uint16(28212), + 68: uint16(30883), + 69: uint16(31469), + 70: uint16(33883), + 71: uint16(35088), + 72: uint16(34638), + 73: uint16(38824), + 74: uint16(21208), + 75: uint16(22350), + 76: uint16(22570), + 77: uint16(23884), + 78: uint16(24863), + 79: uint16(25022), + 80: uint16(25121), + 81: uint16(25954), + 82: uint16(26577), + 83: uint16(27204), + 84: uint16(28187), + 85: uint16(29976), + 86: uint16(30131), + 87: uint16(30435), + 88: uint16(30640), + 89: uint16(32058), + 90: uint16(37039), + 91: uint16(37969), + 92: uint16(37970), + 93: uint16(40853), + }, + 42: { + 0: uint16(21283), + 1: uint16(23724), + 2: uint16(30002), + 3: uint16(32987), + 4: uint16(37440), + 5: uint16(38296), + 6: uint16(21083), + 7: uint16(22536), + 8: uint16(23004), + 9: uint16(23713), + 10: uint16(23831), + 11: uint16(24247), + 12: uint16(24378), + 13: uint16(24394), + 14: uint16(24951), + 15: uint16(27743), + 16: uint16(30074), + 17: uint16(30086), + 18: uint16(31968), + 19: uint16(32115), + 20: uint16(32177), + 21: uint16(32652), + 22: uint16(33108), + 23: uint16(33313), + 24: uint16(34193), + 25: uint16(35137), + 26: uint16(35611), + 27: uint16(37628), + 28: uint16(38477), + 29: uint16(40007), + 30: uint16(20171), + 31: uint16(20215), + 32: uint16(20491), + 33: uint16(20977), + 34: uint16(22607), + 35: uint16(24887), + 36: uint16(24894), + 37: uint16(24936), + 38: uint16(25913), + 39: uint16(27114), + 40: uint16(28433), + 41: uint16(30117), + 42: uint16(30342), + 43: uint16(30422), + 44: uint16(31623), + 45: uint16(33445), + 46: uint16(33995), + 47: uint16(63744), + 48: uint16(37799), + 49: uint16(38283), + 50: uint16(21888), + 51: uint16(23458), + 52: uint16(22353), + 53: uint16(63745), + 54: uint16(31923), + 55: uint16(32697), + 56: uint16(37301), + 57: uint16(20520), + 58: uint16(21435), + 59: uint16(23621), + 60: uint16(24040), + 61: uint16(25298), + 62: uint16(25454), + 63: uint16(25818), + 64: uint16(25831), + 65: uint16(28192), + 66: uint16(28844), + 67: uint16(31067), + 68: uint16(36317), + 69: uint16(36382), + 70: uint16(63746), + 71: uint16(36989), + 72: uint16(37445), + 73: uint16(37624), + 74: uint16(20094), + 75: uint16(20214), + 76: uint16(20581), + 77: uint16(24062), + 78: uint16(24314), + 79: uint16(24838), + 80: uint16(26967), + 81: uint16(33137), + 82: uint16(34388), + 83: uint16(36423), + 84: uint16(37749), + 85: uint16(39467), + 86: uint16(20062), + 87: uint16(20625), + 88: uint16(26480), + 89: uint16(26688), + 90: uint16(20745), + 91: uint16(21133), + 92: uint16(21138), + 93: uint16(27298), + }, + 43: { + 0: uint16(30652), + 1: uint16(37392), + 2: uint16(40660), + 3: uint16(21163), + 4: uint16(24623), + 5: uint16(36850), + 6: uint16(20552), + 7: uint16(25001), + 8: uint16(25581), + 9: uint16(25802), + 10: uint16(26684), + 11: uint16(27268), + 12: uint16(28608), + 13: uint16(33160), + 14: uint16(35233), + 15: uint16(38548), + 16: uint16(22533), + 17: uint16(29309), + 18: uint16(29356), + 19: uint16(29956), + 20: uint16(32121), + 21: uint16(32365), + 22: uint16(32937), + 23: uint16(35211), + 24: uint16(35700), + 25: uint16(36963), + 26: uint16(40273), + 27: uint16(25225), + 28: uint16(27770), + 29: uint16(28500), + 30: uint16(32080), + 31: uint16(32570), + 32: uint16(35363), + 33: uint16(20860), + 34: uint16(24906), + 35: uint16(31645), + 36: uint16(35609), + 37: uint16(37463), + 38: uint16(37772), + 39: uint16(20140), + 40: uint16(20435), + 41: uint16(20510), + 42: uint16(20670), + 43: uint16(20742), + 44: uint16(21185), + 45: uint16(21197), + 46: uint16(21375), + 47: uint16(22384), + 48: uint16(22659), + 49: uint16(24218), + 50: uint16(24465), + 51: uint16(24950), + 52: uint16(25004), + 53: uint16(25806), + 54: uint16(25964), + 55: uint16(26223), + 56: uint16(26299), + 57: uint16(26356), + 58: uint16(26775), + 59: uint16(28039), + 60: uint16(28805), + 61: uint16(28913), + 62: uint16(29855), + 63: uint16(29861), + 64: uint16(29898), + 65: uint16(30169), + 66: uint16(30828), + 67: uint16(30956), + 68: uint16(31455), + 69: uint16(31478), + 70: uint16(32069), + 71: uint16(32147), + 72: uint16(32789), + 73: uint16(32831), + 74: uint16(33051), + 75: uint16(33686), + 76: uint16(35686), + 77: uint16(36629), + 78: uint16(36885), + 79: uint16(37857), + 80: uint16(38915), + 81: uint16(38968), + 82: uint16(39514), + 83: uint16(39912), + 84: uint16(20418), + 85: uint16(21843), + 86: uint16(22586), + 87: uint16(22865), + 88: uint16(23395), + 89: uint16(23622), + 90: uint16(24760), + 91: uint16(25106), + 92: uint16(26690), + 93: uint16(26800), + }, + 44: { + 0: uint16(26856), + 1: uint16(28330), + 2: uint16(30028), + 3: uint16(30328), + 4: uint16(30926), + 5: uint16(31293), + 6: uint16(31995), + 7: uint16(32363), + 8: uint16(32380), + 9: uint16(35336), + 10: uint16(35489), + 11: uint16(35903), + 12: uint16(38542), + 13: uint16(40388), + 14: uint16(21476), + 15: uint16(21481), + 16: uint16(21578), + 17: uint16(21617), + 18: uint16(22266), + 19: uint16(22993), + 20: uint16(23396), + 21: uint16(23611), + 22: uint16(24235), + 23: uint16(25335), + 24: uint16(25911), + 25: uint16(25925), + 26: uint16(25970), + 27: uint16(26272), + 28: uint16(26543), + 29: uint16(27073), + 30: uint16(27837), + 31: uint16(30204), + 32: uint16(30352), + 33: uint16(30590), + 34: uint16(31295), + 35: uint16(32660), + 36: uint16(32771), + 37: uint16(32929), + 38: uint16(33167), + 39: uint16(33510), + 40: uint16(33533), + 41: uint16(33776), + 42: uint16(34241), + 43: uint16(34865), + 44: uint16(34996), + 45: uint16(35493), + 46: uint16(63747), + 47: uint16(36764), + 48: uint16(37678), + 49: uint16(38599), + 50: uint16(39015), + 51: uint16(39640), + 52: uint16(40723), + 53: uint16(21741), + 54: uint16(26011), + 55: uint16(26354), + 56: uint16(26767), + 57: uint16(31296), + 58: uint16(35895), + 59: uint16(40288), + 60: uint16(22256), + 61: uint16(22372), + 62: uint16(23825), + 63: uint16(26118), + 64: uint16(26801), + 65: uint16(26829), + 66: uint16(28414), + 67: uint16(29736), + 68: uint16(34974), + 69: uint16(39908), + 70: uint16(27752), + 71: uint16(63748), + 72: uint16(39592), + 73: uint16(20379), + 74: uint16(20844), + 75: uint16(20849), + 76: uint16(21151), + 77: uint16(23380), + 78: uint16(24037), + 79: uint16(24656), + 80: uint16(24685), + 81: uint16(25329), + 82: uint16(25511), + 83: uint16(25915), + 84: uint16(29657), + 85: uint16(31354), + 86: uint16(34467), + 87: uint16(36002), + 88: uint16(38799), + 89: uint16(20018), + 90: uint16(23521), + 91: uint16(25096), + 92: uint16(26524), + 93: uint16(29916), + }, + 45: { + 0: uint16(31185), + 1: uint16(33747), + 2: uint16(35463), + 3: uint16(35506), + 4: uint16(36328), + 5: uint16(36942), + 6: uint16(37707), + 7: uint16(38982), + 8: uint16(24275), + 9: uint16(27112), + 10: uint16(34303), + 11: uint16(37101), + 12: uint16(63749), + 13: uint16(20896), + 14: uint16(23448), + 15: uint16(23532), + 16: uint16(24931), + 17: uint16(26874), + 18: uint16(27454), + 19: uint16(28748), + 20: uint16(29743), + 21: uint16(29912), + 22: uint16(31649), + 23: uint16(32592), + 24: uint16(33733), + 25: uint16(35264), + 26: uint16(36011), + 27: uint16(38364), + 28: uint16(39208), + 29: uint16(21038), + 30: uint16(24669), + 31: uint16(25324), + 32: uint16(36866), + 33: uint16(20362), + 34: uint16(20809), + 35: uint16(21281), + 36: uint16(22745), + 37: uint16(24291), + 38: uint16(26336), + 39: uint16(27960), + 40: uint16(28826), + 41: uint16(29378), + 42: uint16(29654), + 43: uint16(31568), + 44: uint16(33009), + 45: uint16(37979), + 46: uint16(21350), + 47: uint16(25499), + 48: uint16(32619), + 49: uint16(20054), + 50: uint16(20608), + 51: uint16(22602), + 52: uint16(22750), + 53: uint16(24618), + 54: uint16(24871), + 55: uint16(25296), + 56: uint16(27088), + 57: uint16(39745), + 58: uint16(23439), + 59: uint16(32024), + 60: uint16(32945), + 61: uint16(36703), + 62: uint16(20132), + 63: uint16(20689), + 64: uint16(21676), + 65: uint16(21932), + 66: uint16(23308), + 67: uint16(23968), + 68: uint16(24039), + 69: uint16(25898), + 70: uint16(25934), + 71: uint16(26657), + 72: uint16(27211), + 73: uint16(29409), + 74: uint16(30350), + 75: uint16(30703), + 76: uint16(32094), + 77: uint16(32761), + 78: uint16(33184), + 79: uint16(34126), + 80: uint16(34527), + 81: uint16(36611), + 82: uint16(36686), + 83: uint16(37066), + 84: uint16(39171), + 85: uint16(39509), + 86: uint16(39851), + 87: uint16(19992), + 88: uint16(20037), + 89: uint16(20061), + 90: uint16(20167), + 91: uint16(20465), + 92: uint16(20855), + 93: uint16(21246), + }, + 46: { + 0: uint16(21312), + 1: uint16(21475), + 2: uint16(21477), + 3: uint16(21646), + 4: uint16(22036), + 5: uint16(22389), + 6: uint16(22434), + 7: uint16(23495), + 8: uint16(23943), + 9: uint16(24272), + 10: uint16(25084), + 11: uint16(25304), + 12: uint16(25937), + 13: uint16(26552), + 14: uint16(26601), + 15: uint16(27083), + 16: uint16(27472), + 17: uint16(27590), + 18: uint16(27628), + 19: uint16(27714), + 20: uint16(28317), + 21: uint16(28792), + 22: uint16(29399), + 23: uint16(29590), + 24: uint16(29699), + 25: uint16(30655), + 26: uint16(30697), + 27: uint16(31350), + 28: uint16(32127), + 29: uint16(32777), + 30: uint16(33276), + 31: uint16(33285), + 32: uint16(33290), + 33: uint16(33503), + 34: uint16(34914), + 35: uint16(35635), + 36: uint16(36092), + 37: uint16(36544), + 38: uint16(36881), + 39: uint16(37041), + 40: uint16(37476), + 41: uint16(37558), + 42: uint16(39378), + 43: uint16(39493), + 44: uint16(40169), + 45: uint16(40407), + 46: uint16(40860), + 47: uint16(22283), + 48: uint16(23616), + 49: uint16(33738), + 50: uint16(38816), + 51: uint16(38827), + 52: uint16(40628), + 53: uint16(21531), + 54: uint16(31384), + 55: uint16(32676), + 56: uint16(35033), + 57: uint16(36557), + 58: uint16(37089), + 59: uint16(22528), + 60: uint16(23624), + 61: uint16(25496), + 62: uint16(31391), + 63: uint16(23470), + 64: uint16(24339), + 65: uint16(31353), + 66: uint16(31406), + 67: uint16(33422), + 68: uint16(36524), + 69: uint16(20518), + 70: uint16(21048), + 71: uint16(21240), + 72: uint16(21367), + 73: uint16(22280), + 74: uint16(25331), + 75: uint16(25458), + 76: uint16(27402), + 77: uint16(28099), + 78: uint16(30519), + 79: uint16(21413), + 80: uint16(29527), + 81: uint16(34152), + 82: uint16(36470), + 83: uint16(38357), + 84: uint16(26426), + 85: uint16(27331), + 86: uint16(28528), + 87: uint16(35437), + 88: uint16(36556), + 89: uint16(39243), + 90: uint16(63750), + 91: uint16(26231), + 92: uint16(27512), + 93: uint16(36020), + }, + 47: { + 0: uint16(39740), + 1: uint16(63751), + 2: uint16(21483), + 3: uint16(22317), + 4: uint16(22862), + 5: uint16(25542), + 6: uint16(27131), + 7: uint16(29674), + 8: uint16(30789), + 9: uint16(31418), + 10: uint16(31429), + 11: uint16(31998), + 12: uint16(33909), + 13: uint16(35215), + 14: uint16(36211), + 15: uint16(36917), + 16: uint16(38312), + 17: uint16(21243), + 18: uint16(22343), + 19: uint16(30023), + 20: uint16(31584), + 21: uint16(33740), + 22: uint16(37406), + 23: uint16(63752), + 24: uint16(27224), + 25: uint16(20811), + 26: uint16(21067), + 27: uint16(21127), + 28: uint16(25119), + 29: uint16(26840), + 30: uint16(26997), + 31: uint16(38553), + 32: uint16(20677), + 33: uint16(21156), + 34: uint16(21220), + 35: uint16(25027), + 36: uint16(26020), + 37: uint16(26681), + 38: uint16(27135), + 39: uint16(29822), + 40: uint16(31563), + 41: uint16(33465), + 42: uint16(33771), + 43: uint16(35250), + 44: uint16(35641), + 45: uint16(36817), + 46: uint16(39241), + 47: uint16(63753), + 48: uint16(20170), + 49: uint16(22935), + 50: uint16(25810), + 51: uint16(26129), + 52: uint16(27278), + 53: uint16(29748), + 54: uint16(31105), + 55: uint16(31165), + 56: uint16(33449), + 57: uint16(34942), + 58: uint16(34943), + 59: uint16(35167), + 60: uint16(63754), + 61: uint16(37670), + 62: uint16(20235), + 63: uint16(21450), + 64: uint16(24613), + 65: uint16(25201), + 66: uint16(27762), + 67: uint16(32026), + 68: uint16(32102), + 69: uint16(20120), + 70: uint16(20834), + 71: uint16(30684), + 72: uint16(32943), + 73: uint16(20225), + 74: uint16(20238), + 75: uint16(20854), + 76: uint16(20864), + 77: uint16(21980), + 78: uint16(22120), + 79: uint16(22331), + 80: uint16(22522), + 81: uint16(22524), + 82: uint16(22804), + 83: uint16(22855), + 84: uint16(22931), + 85: uint16(23492), + 86: uint16(23696), + 87: uint16(23822), + 88: uint16(24049), + 89: uint16(24190), + 90: uint16(24524), + 91: uint16(25216), + 92: uint16(26071), + 93: uint16(26083), + }, + 48: { + 0: uint16(26398), + 1: uint16(26399), + 2: uint16(26462), + 3: uint16(26827), + 4: uint16(26820), + 5: uint16(27231), + 6: uint16(27450), + 7: uint16(27683), + 8: uint16(27773), + 9: uint16(27778), + 10: uint16(28103), + 11: uint16(29592), + 12: uint16(29734), + 13: uint16(29738), + 14: uint16(29826), + 15: uint16(29859), + 16: uint16(30072), + 17: uint16(30079), + 18: uint16(30849), + 19: uint16(30959), + 20: uint16(31041), + 21: uint16(31047), + 22: uint16(31048), + 23: uint16(31098), + 24: uint16(31637), + 25: uint16(32000), + 26: uint16(32186), + 27: uint16(32648), + 28: uint16(32774), + 29: uint16(32813), + 30: uint16(32908), + 31: uint16(35352), + 32: uint16(35663), + 33: uint16(35912), + 34: uint16(36215), + 35: uint16(37665), + 36: uint16(37668), + 37: uint16(39138), + 38: uint16(39249), + 39: uint16(39438), + 40: uint16(39439), + 41: uint16(39525), + 42: uint16(40594), + 43: uint16(32202), + 44: uint16(20342), + 45: uint16(21513), + 46: uint16(25326), + 47: uint16(26708), + 48: uint16(37329), + 49: uint16(21931), + 50: uint16(20794), + 51: uint16(63755), + 52: uint16(63756), + 53: uint16(23068), + 54: uint16(25062), + 55: uint16(63757), + 56: uint16(25295), + 57: uint16(25343), + 58: uint16(63758), + 59: uint16(63759), + 60: uint16(63760), + 61: uint16(63761), + 62: uint16(63762), + 63: uint16(63763), + 64: uint16(37027), + 65: uint16(63764), + 66: uint16(63765), + 67: uint16(63766), + 68: uint16(63767), + 69: uint16(63768), + 70: uint16(35582), + 71: uint16(63769), + 72: uint16(63770), + 73: uint16(63771), + 74: uint16(63772), + 75: uint16(26262), + 76: uint16(63773), + 77: uint16(29014), + 78: uint16(63774), + 79: uint16(63775), + 80: uint16(38627), + 81: uint16(63776), + 82: uint16(25423), + 83: uint16(25466), + 84: uint16(21335), + 85: uint16(63777), + 86: uint16(26511), + 87: uint16(26976), + 88: uint16(28275), + 89: uint16(63778), + 90: uint16(30007), + 91: uint16(63779), + 92: uint16(63780), + 93: uint16(63781), + }, + 49: { + 0: uint16(32013), + 1: uint16(63782), + 2: uint16(63783), + 3: uint16(34930), + 4: uint16(22218), + 5: uint16(23064), + 6: uint16(63784), + 7: uint16(63785), + 8: uint16(63786), + 9: uint16(63787), + 10: uint16(63788), + 11: uint16(20035), + 12: uint16(63789), + 13: uint16(20839), + 14: uint16(22856), + 15: uint16(26608), + 16: uint16(32784), + 17: uint16(63790), + 18: uint16(22899), + 19: uint16(24180), + 20: uint16(25754), + 21: uint16(31178), + 22: uint16(24565), + 23: uint16(24684), + 24: uint16(25288), + 25: uint16(25467), + 26: uint16(23527), + 27: uint16(23511), + 28: uint16(21162), + 29: uint16(63791), + 30: uint16(22900), + 31: uint16(24361), + 32: uint16(24594), + 33: uint16(63792), + 34: uint16(63793), + 35: uint16(63794), + 36: uint16(29785), + 37: uint16(63795), + 38: uint16(63796), + 39: uint16(63797), + 40: uint16(63798), + 41: uint16(63799), + 42: uint16(63800), + 43: uint16(39377), + 44: uint16(63801), + 45: uint16(63802), + 46: uint16(63803), + 47: uint16(63804), + 48: uint16(63805), + 49: uint16(63806), + 50: uint16(63807), + 51: uint16(63808), + 52: uint16(63809), + 53: uint16(63810), + 54: uint16(63811), + 55: uint16(28611), + 56: uint16(63812), + 57: uint16(63813), + 58: uint16(33215), + 59: uint16(36786), + 60: uint16(24817), + 61: uint16(63814), + 62: uint16(63815), + 63: uint16(33126), + 64: uint16(63816), + 65: uint16(63817), + 66: uint16(23615), + 67: uint16(63818), + 68: uint16(63819), + 69: uint16(63820), + 70: uint16(63821), + 71: uint16(63822), + 72: uint16(63823), + 73: uint16(63824), + 74: uint16(63825), + 75: uint16(23273), + 76: uint16(35365), + 77: uint16(26491), + 78: uint16(32016), + 79: uint16(63826), + 80: uint16(63827), + 81: uint16(63828), + 82: uint16(63829), + 83: uint16(63830), + 84: uint16(63831), + 85: uint16(33021), + 86: uint16(63832), + 87: uint16(63833), + 88: uint16(23612), + 89: uint16(27877), + 90: uint16(21311), + 91: uint16(28346), + 92: uint16(22810), + 93: uint16(33590), + }, + 50: { + 0: uint16(20025), + 1: uint16(20150), + 2: uint16(20294), + 3: uint16(21934), + 4: uint16(22296), + 5: uint16(22727), + 6: uint16(24406), + 7: uint16(26039), + 8: uint16(26086), + 9: uint16(27264), + 10: uint16(27573), + 11: uint16(28237), + 12: uint16(30701), + 13: uint16(31471), + 14: uint16(31774), + 15: uint16(32222), + 16: uint16(34507), + 17: uint16(34962), + 18: uint16(37170), + 19: uint16(37723), + 20: uint16(25787), + 21: uint16(28606), + 22: uint16(29562), + 23: uint16(30136), + 24: uint16(36948), + 25: uint16(21846), + 26: uint16(22349), + 27: uint16(25018), + 28: uint16(25812), + 29: uint16(26311), + 30: uint16(28129), + 31: uint16(28251), + 32: uint16(28525), + 33: uint16(28601), + 34: uint16(30192), + 35: uint16(32835), + 36: uint16(33213), + 37: uint16(34113), + 38: uint16(35203), + 39: uint16(35527), + 40: uint16(35674), + 41: uint16(37663), + 42: uint16(27795), + 43: uint16(30035), + 44: uint16(31572), + 45: uint16(36367), + 46: uint16(36957), + 47: uint16(21776), + 48: uint16(22530), + 49: uint16(22616), + 50: uint16(24162), + 51: uint16(25095), + 52: uint16(25758), + 53: uint16(26848), + 54: uint16(30070), + 55: uint16(31958), + 56: uint16(34739), + 57: uint16(40680), + 58: uint16(20195), + 59: uint16(22408), + 60: uint16(22382), + 61: uint16(22823), + 62: uint16(23565), + 63: uint16(23729), + 64: uint16(24118), + 65: uint16(24453), + 66: uint16(25140), + 67: uint16(25825), + 68: uint16(29619), + 69: uint16(33274), + 70: uint16(34955), + 71: uint16(36024), + 72: uint16(38538), + 73: uint16(40667), + 74: uint16(23429), + 75: uint16(24503), + 76: uint16(24755), + 77: uint16(20498), + 78: uint16(20992), + 79: uint16(21040), + 80: uint16(22294), + 81: uint16(22581), + 82: uint16(22615), + 83: uint16(23566), + 84: uint16(23648), + 85: uint16(23798), + 86: uint16(23947), + 87: uint16(24230), + 88: uint16(24466), + 89: uint16(24764), + 90: uint16(25361), + 91: uint16(25481), + 92: uint16(25623), + 93: uint16(26691), + }, + 51: { + 0: uint16(26873), + 1: uint16(27330), + 2: uint16(28120), + 3: uint16(28193), + 4: uint16(28372), + 5: uint16(28644), + 6: uint16(29182), + 7: uint16(30428), + 8: uint16(30585), + 9: uint16(31153), + 10: uint16(31291), + 11: uint16(33796), + 12: uint16(35241), + 13: uint16(36077), + 14: uint16(36339), + 15: uint16(36424), + 16: uint16(36867), + 17: uint16(36884), + 18: uint16(36947), + 19: uint16(37117), + 20: uint16(37709), + 21: uint16(38518), + 22: uint16(38876), + 23: uint16(27602), + 24: uint16(28678), + 25: uint16(29272), + 26: uint16(29346), + 27: uint16(29544), + 28: uint16(30563), + 29: uint16(31167), + 30: uint16(31716), + 31: uint16(32411), + 32: uint16(35712), + 33: uint16(22697), + 34: uint16(24775), + 35: uint16(25958), + 36: uint16(26109), + 37: uint16(26302), + 38: uint16(27788), + 39: uint16(28958), + 40: uint16(29129), + 41: uint16(35930), + 42: uint16(38931), + 43: uint16(20077), + 44: uint16(31361), + 45: uint16(20189), + 46: uint16(20908), + 47: uint16(20941), + 48: uint16(21205), + 49: uint16(21516), + 50: uint16(24999), + 51: uint16(26481), + 52: uint16(26704), + 53: uint16(26847), + 54: uint16(27934), + 55: uint16(28540), + 56: uint16(30140), + 57: uint16(30643), + 58: uint16(31461), + 59: uint16(33012), + 60: uint16(33891), + 61: uint16(37509), + 62: uint16(20828), + 63: uint16(26007), + 64: uint16(26460), + 65: uint16(26515), + 66: uint16(30168), + 67: uint16(31431), + 68: uint16(33651), + 69: uint16(63834), + 70: uint16(35910), + 71: uint16(36887), + 72: uint16(38957), + 73: uint16(23663), + 74: uint16(33216), + 75: uint16(33434), + 76: uint16(36929), + 77: uint16(36975), + 78: uint16(37389), + 79: uint16(24471), + 80: uint16(23965), + 81: uint16(27225), + 82: uint16(29128), + 83: uint16(30331), + 84: uint16(31561), + 85: uint16(34276), + 86: uint16(35588), + 87: uint16(37159), + 88: uint16(39472), + 89: uint16(21895), + 90: uint16(25078), + 91: uint16(63835), + 92: uint16(30313), + 93: uint16(32645), + }, + 52: { + 0: uint16(34367), + 1: uint16(34746), + 2: uint16(35064), + 3: uint16(37007), + 4: uint16(63836), + 5: uint16(27931), + 6: uint16(28889), + 7: uint16(29662), + 8: uint16(32097), + 9: uint16(33853), + 10: uint16(63837), + 11: uint16(37226), + 12: uint16(39409), + 13: uint16(63838), + 14: uint16(20098), + 15: uint16(21365), + 16: uint16(27396), + 17: uint16(27410), + 18: uint16(28734), + 19: uint16(29211), + 20: uint16(34349), + 21: uint16(40478), + 22: uint16(21068), + 23: uint16(36771), + 24: uint16(23888), + 25: uint16(25829), + 26: uint16(25900), + 27: uint16(27414), + 28: uint16(28651), + 29: uint16(31811), + 30: uint16(32412), + 31: uint16(34253), + 32: uint16(35172), + 33: uint16(35261), + 34: uint16(25289), + 35: uint16(33240), + 36: uint16(34847), + 37: uint16(24266), + 38: uint16(26391), + 39: uint16(28010), + 40: uint16(29436), + 41: uint16(29701), + 42: uint16(29807), + 43: uint16(34690), + 44: uint16(37086), + 45: uint16(20358), + 46: uint16(23821), + 47: uint16(24480), + 48: uint16(33802), + 49: uint16(20919), + 50: uint16(25504), + 51: uint16(30053), + 52: uint16(20142), + 53: uint16(20486), + 54: uint16(20841), + 55: uint16(20937), + 56: uint16(26753), + 57: uint16(27153), + 58: uint16(31918), + 59: uint16(31921), + 60: uint16(31975), + 61: uint16(33391), + 62: uint16(35538), + 63: uint16(36635), + 64: uint16(37327), + 65: uint16(20406), + 66: uint16(20791), + 67: uint16(21237), + 68: uint16(21570), + 69: uint16(24300), + 70: uint16(24942), + 71: uint16(25150), + 72: uint16(26053), + 73: uint16(27354), + 74: uint16(28670), + 75: uint16(31018), + 76: uint16(34268), + 77: uint16(34851), + 78: uint16(38317), + 79: uint16(39522), + 80: uint16(39530), + 81: uint16(40599), + 82: uint16(40654), + 83: uint16(21147), + 84: uint16(26310), + 85: uint16(27511), + 86: uint16(28701), + 87: uint16(31019), + 88: uint16(36706), + 89: uint16(38722), + 90: uint16(24976), + 91: uint16(25088), + 92: uint16(25891), + 93: uint16(28451), + }, + 53: { + 0: uint16(29001), + 1: uint16(29833), + 2: uint16(32244), + 3: uint16(32879), + 4: uint16(34030), + 5: uint16(36646), + 6: uint16(36899), + 7: uint16(37706), + 8: uint16(20925), + 9: uint16(21015), + 10: uint16(21155), + 11: uint16(27916), + 12: uint16(28872), + 13: uint16(35010), + 14: uint16(24265), + 15: uint16(25986), + 16: uint16(27566), + 17: uint16(28610), + 18: uint16(31806), + 19: uint16(29557), + 20: uint16(20196), + 21: uint16(20278), + 22: uint16(22265), + 23: uint16(63839), + 24: uint16(23738), + 25: uint16(23994), + 26: uint16(24604), + 27: uint16(29618), + 28: uint16(31533), + 29: uint16(32666), + 30: uint16(32718), + 31: uint16(32838), + 32: uint16(36894), + 33: uint16(37428), + 34: uint16(38646), + 35: uint16(38728), + 36: uint16(38936), + 37: uint16(40801), + 38: uint16(20363), + 39: uint16(28583), + 40: uint16(31150), + 41: uint16(37300), + 42: uint16(38583), + 43: uint16(21214), + 44: uint16(63840), + 45: uint16(25736), + 46: uint16(25796), + 47: uint16(27347), + 48: uint16(28510), + 49: uint16(28696), + 50: uint16(29200), + 51: uint16(30439), + 52: uint16(32769), + 53: uint16(34310), + 54: uint16(34396), + 55: uint16(36335), + 56: uint16(36613), + 57: uint16(38706), + 58: uint16(39791), + 59: uint16(40442), + 60: uint16(40565), + 61: uint16(30860), + 62: uint16(31103), + 63: uint16(32160), + 64: uint16(33737), + 65: uint16(37636), + 66: uint16(40575), + 67: uint16(40595), + 68: uint16(35542), + 69: uint16(22751), + 70: uint16(24324), + 71: uint16(26407), + 72: uint16(28711), + 73: uint16(29903), + 74: uint16(31840), + 75: uint16(32894), + 76: uint16(20769), + 77: uint16(28712), + 78: uint16(29282), + 79: uint16(30922), + 80: uint16(36034), + 81: uint16(36058), + 82: uint16(36084), + 83: uint16(38647), + 84: uint16(20102), + 85: uint16(20698), + 86: uint16(23534), + 87: uint16(24278), + 88: uint16(26009), + 89: uint16(29134), + 90: uint16(30274), + 91: uint16(30637), + 92: uint16(32842), + 93: uint16(34044), + }, + 54: { + 0: uint16(36988), + 1: uint16(39719), + 2: uint16(40845), + 3: uint16(22744), + 4: uint16(23105), + 5: uint16(23650), + 6: uint16(27155), + 7: uint16(28122), + 8: uint16(28431), + 9: uint16(30267), + 10: uint16(32047), + 11: uint16(32311), + 12: uint16(34078), + 13: uint16(35128), + 14: uint16(37860), + 15: uint16(38475), + 16: uint16(21129), + 17: uint16(26066), + 18: uint16(26611), + 19: uint16(27060), + 20: uint16(27969), + 21: uint16(28316), + 22: uint16(28687), + 23: uint16(29705), + 24: uint16(29792), + 25: uint16(30041), + 26: uint16(30244), + 27: uint16(30827), + 28: uint16(35628), + 29: uint16(39006), + 30: uint16(20845), + 31: uint16(25134), + 32: uint16(38520), + 33: uint16(20374), + 34: uint16(20523), + 35: uint16(23833), + 36: uint16(28138), + 37: uint16(32184), + 38: uint16(36650), + 39: uint16(24459), + 40: uint16(24900), + 41: uint16(26647), + 42: uint16(63841), + 43: uint16(38534), + 44: uint16(21202), + 45: uint16(32907), + 46: uint16(20956), + 47: uint16(20940), + 48: uint16(26974), + 49: uint16(31260), + 50: uint16(32190), + 51: uint16(33777), + 52: uint16(38517), + 53: uint16(20442), + 54: uint16(21033), + 55: uint16(21400), + 56: uint16(21519), + 57: uint16(21774), + 58: uint16(23653), + 59: uint16(24743), + 60: uint16(26446), + 61: uint16(26792), + 62: uint16(28012), + 63: uint16(29313), + 64: uint16(29432), + 65: uint16(29702), + 66: uint16(29827), + 67: uint16(63842), + 68: uint16(30178), + 69: uint16(31852), + 70: uint16(32633), + 71: uint16(32696), + 72: uint16(33673), + 73: uint16(35023), + 74: uint16(35041), + 75: uint16(37324), + 76: uint16(37328), + 77: uint16(38626), + 78: uint16(39881), + 79: uint16(21533), + 80: uint16(28542), + 81: uint16(29136), + 82: uint16(29848), + 83: uint16(34298), + 84: uint16(36522), + 85: uint16(38563), + 86: uint16(40023), + 87: uint16(40607), + 88: uint16(26519), + 89: uint16(28107), + 90: uint16(29747), + 91: uint16(33256), + 92: uint16(38678), + 93: uint16(30764), + }, + 55: { + 0: uint16(31435), + 1: uint16(31520), + 2: uint16(31890), + 3: uint16(25705), + 4: uint16(29802), + 5: uint16(30194), + 6: uint16(30908), + 7: uint16(30952), + 8: uint16(39340), + 9: uint16(39764), + 10: uint16(40635), + 11: uint16(23518), + 12: uint16(24149), + 13: uint16(28448), + 14: uint16(33180), + 15: uint16(33707), + 16: uint16(37000), + 17: uint16(19975), + 18: uint16(21325), + 19: uint16(23081), + 20: uint16(24018), + 21: uint16(24398), + 22: uint16(24930), + 23: uint16(25405), + 24: uint16(26217), + 25: uint16(26364), + 26: uint16(28415), + 27: uint16(28459), + 28: uint16(28771), + 29: uint16(30622), + 30: uint16(33836), + 31: uint16(34067), + 32: uint16(34875), + 33: uint16(36627), + 34: uint16(39237), + 35: uint16(39995), + 36: uint16(21788), + 37: uint16(25273), + 38: uint16(26411), + 39: uint16(27819), + 40: uint16(33545), + 41: uint16(35178), + 42: uint16(38778), + 43: uint16(20129), + 44: uint16(22916), + 45: uint16(24536), + 46: uint16(24537), + 47: uint16(26395), + 48: uint16(32178), + 49: uint16(32596), + 50: uint16(33426), + 51: uint16(33579), + 52: uint16(33725), + 53: uint16(36638), + 54: uint16(37017), + 55: uint16(22475), + 56: uint16(22969), + 57: uint16(23186), + 58: uint16(23504), + 59: uint16(26151), + 60: uint16(26522), + 61: uint16(26757), + 62: uint16(27599), + 63: uint16(29028), + 64: uint16(32629), + 65: uint16(36023), + 66: uint16(36067), + 67: uint16(36993), + 68: uint16(39749), + 69: uint16(33032), + 70: uint16(35978), + 71: uint16(38476), + 72: uint16(39488), + 73: uint16(40613), + 74: uint16(23391), + 75: uint16(27667), + 76: uint16(29467), + 77: uint16(30450), + 78: uint16(30431), + 79: uint16(33804), + 80: uint16(20906), + 81: uint16(35219), + 82: uint16(20813), + 83: uint16(20885), + 84: uint16(21193), + 85: uint16(26825), + 86: uint16(27796), + 87: uint16(30468), + 88: uint16(30496), + 89: uint16(32191), + 90: uint16(32236), + 91: uint16(38754), + 92: uint16(40629), + 93: uint16(28357), + }, + 56: { + 0: uint16(34065), + 1: uint16(20901), + 2: uint16(21517), + 3: uint16(21629), + 4: uint16(26126), + 5: uint16(26269), + 6: uint16(26919), + 7: uint16(28319), + 8: uint16(30399), + 9: uint16(30609), + 10: uint16(33559), + 11: uint16(33986), + 12: uint16(34719), + 13: uint16(37225), + 14: uint16(37528), + 15: uint16(40180), + 16: uint16(34946), + 17: uint16(20398), + 18: uint16(20882), + 19: uint16(21215), + 20: uint16(22982), + 21: uint16(24125), + 22: uint16(24917), + 23: uint16(25720), + 24: uint16(25721), + 25: uint16(26286), + 26: uint16(26576), + 27: uint16(27169), + 28: uint16(27597), + 29: uint16(27611), + 30: uint16(29279), + 31: uint16(29281), + 32: uint16(29761), + 33: uint16(30520), + 34: uint16(30683), + 35: uint16(32791), + 36: uint16(33468), + 37: uint16(33541), + 38: uint16(35584), + 39: uint16(35624), + 40: uint16(35980), + 41: uint16(26408), + 42: uint16(27792), + 43: uint16(29287), + 44: uint16(30446), + 45: uint16(30566), + 46: uint16(31302), + 47: uint16(40361), + 48: uint16(27519), + 49: uint16(27794), + 50: uint16(22818), + 51: uint16(26406), + 52: uint16(33945), + 53: uint16(21359), + 54: uint16(22675), + 55: uint16(22937), + 56: uint16(24287), + 57: uint16(25551), + 58: uint16(26164), + 59: uint16(26483), + 60: uint16(28218), + 61: uint16(29483), + 62: uint16(31447), + 63: uint16(33495), + 64: uint16(37672), + 65: uint16(21209), + 66: uint16(24043), + 67: uint16(25006), + 68: uint16(25035), + 69: uint16(25098), + 70: uint16(25287), + 71: uint16(25771), + 72: uint16(26080), + 73: uint16(26969), + 74: uint16(27494), + 75: uint16(27595), + 76: uint16(28961), + 77: uint16(29687), + 78: uint16(30045), + 79: uint16(32326), + 80: uint16(33310), + 81: uint16(33538), + 82: uint16(34154), + 83: uint16(35491), + 84: uint16(36031), + 85: uint16(38695), + 86: uint16(40289), + 87: uint16(22696), + 88: uint16(40664), + 89: uint16(20497), + 90: uint16(21006), + 91: uint16(21563), + 92: uint16(21839), + 93: uint16(25991), + }, + 57: { + 0: uint16(27766), + 1: uint16(32010), + 2: uint16(32011), + 3: uint16(32862), + 4: uint16(34442), + 5: uint16(38272), + 6: uint16(38639), + 7: uint16(21247), + 8: uint16(27797), + 9: uint16(29289), + 10: uint16(21619), + 11: uint16(23194), + 12: uint16(23614), + 13: uint16(23883), + 14: uint16(24396), + 15: uint16(24494), + 16: uint16(26410), + 17: uint16(26806), + 18: uint16(26979), + 19: uint16(28220), + 20: uint16(28228), + 21: uint16(30473), + 22: uint16(31859), + 23: uint16(32654), + 24: uint16(34183), + 25: uint16(35598), + 26: uint16(36855), + 27: uint16(38753), + 28: uint16(40692), + 29: uint16(23735), + 30: uint16(24758), + 31: uint16(24845), + 32: uint16(25003), + 33: uint16(25935), + 34: uint16(26107), + 35: uint16(26108), + 36: uint16(27665), + 37: uint16(27887), + 38: uint16(29599), + 39: uint16(29641), + 40: uint16(32225), + 41: uint16(38292), + 42: uint16(23494), + 43: uint16(34588), + 44: uint16(35600), + 45: uint16(21085), + 46: uint16(21338), + 47: uint16(25293), + 48: uint16(25615), + 49: uint16(25778), + 50: uint16(26420), + 51: uint16(27192), + 52: uint16(27850), + 53: uint16(29632), + 54: uint16(29854), + 55: uint16(31636), + 56: uint16(31893), + 57: uint16(32283), + 58: uint16(33162), + 59: uint16(33334), + 60: uint16(34180), + 61: uint16(36843), + 62: uint16(38649), + 63: uint16(39361), + 64: uint16(20276), + 65: uint16(21322), + 66: uint16(21453), + 67: uint16(21467), + 68: uint16(25292), + 69: uint16(25644), + 70: uint16(25856), + 71: uint16(26001), + 72: uint16(27075), + 73: uint16(27886), + 74: uint16(28504), + 75: uint16(29677), + 76: uint16(30036), + 77: uint16(30242), + 78: uint16(30436), + 79: uint16(30460), + 80: uint16(30928), + 81: uint16(30971), + 82: uint16(31020), + 83: uint16(32070), + 84: uint16(33324), + 85: uint16(34784), + 86: uint16(36820), + 87: uint16(38930), + 88: uint16(39151), + 89: uint16(21187), + 90: uint16(25300), + 91: uint16(25765), + 92: uint16(28196), + 93: uint16(28497), + }, + 58: { + 0: uint16(30332), + 1: uint16(36299), + 2: uint16(37297), + 3: uint16(37474), + 4: uint16(39662), + 5: uint16(39747), + 6: uint16(20515), + 7: uint16(20621), + 8: uint16(22346), + 9: uint16(22952), + 10: uint16(23592), + 11: uint16(24135), + 12: uint16(24439), + 13: uint16(25151), + 14: uint16(25918), + 15: uint16(26041), + 16: uint16(26049), + 17: uint16(26121), + 18: uint16(26507), + 19: uint16(27036), + 20: uint16(28354), + 21: uint16(30917), + 22: uint16(32033), + 23: uint16(32938), + 24: uint16(33152), + 25: uint16(33323), + 26: uint16(33459), + 27: uint16(33953), + 28: uint16(34444), + 29: uint16(35370), + 30: uint16(35607), + 31: uint16(37030), + 32: uint16(38450), + 33: uint16(40848), + 34: uint16(20493), + 35: uint16(20467), + 36: uint16(63843), + 37: uint16(22521), + 38: uint16(24472), + 39: uint16(25308), + 40: uint16(25490), + 41: uint16(26479), + 42: uint16(28227), + 43: uint16(28953), + 44: uint16(30403), + 45: uint16(32972), + 46: uint16(32986), + 47: uint16(35060), + 48: uint16(35061), + 49: uint16(35097), + 50: uint16(36064), + 51: uint16(36649), + 52: uint16(37197), + 53: uint16(38506), + 54: uint16(20271), + 55: uint16(20336), + 56: uint16(24091), + 57: uint16(26575), + 58: uint16(26658), + 59: uint16(30333), + 60: uint16(30334), + 61: uint16(39748), + 62: uint16(24161), + 63: uint16(27146), + 64: uint16(29033), + 65: uint16(29140), + 66: uint16(30058), + 67: uint16(63844), + 68: uint16(32321), + 69: uint16(34115), + 70: uint16(34281), + 71: uint16(39132), + 72: uint16(20240), + 73: uint16(31567), + 74: uint16(32624), + 75: uint16(38309), + 76: uint16(20961), + 77: uint16(24070), + 78: uint16(26805), + 79: uint16(27710), + 80: uint16(27726), + 81: uint16(27867), + 82: uint16(29359), + 83: uint16(31684), + 84: uint16(33539), + 85: uint16(27861), + 86: uint16(29754), + 87: uint16(20731), + 88: uint16(21128), + 89: uint16(22721), + 90: uint16(25816), + 91: uint16(27287), + 92: uint16(29863), + 93: uint16(30294), + }, + 59: { + 0: uint16(30887), + 1: uint16(34327), + 2: uint16(38370), + 3: uint16(38713), + 4: uint16(63845), + 5: uint16(21342), + 6: uint16(24321), + 7: uint16(35722), + 8: uint16(36776), + 9: uint16(36783), + 10: uint16(37002), + 11: uint16(21029), + 12: uint16(30629), + 13: uint16(40009), + 14: uint16(40712), + 15: uint16(19993), + 16: uint16(20482), + 17: uint16(20853), + 18: uint16(23643), + 19: uint16(24183), + 20: uint16(26142), + 21: uint16(26170), + 22: uint16(26564), + 23: uint16(26821), + 24: uint16(28851), + 25: uint16(29953), + 26: uint16(30149), + 27: uint16(31177), + 28: uint16(31453), + 29: uint16(36647), + 30: uint16(39200), + 31: uint16(39432), + 32: uint16(20445), + 33: uint16(22561), + 34: uint16(22577), + 35: uint16(23542), + 36: uint16(26222), + 37: uint16(27493), + 38: uint16(27921), + 39: uint16(28282), + 40: uint16(28541), + 41: uint16(29668), + 42: uint16(29995), + 43: uint16(33769), + 44: uint16(35036), + 45: uint16(35091), + 46: uint16(35676), + 47: uint16(36628), + 48: uint16(20239), + 49: uint16(20693), + 50: uint16(21264), + 51: uint16(21340), + 52: uint16(23443), + 53: uint16(24489), + 54: uint16(26381), + 55: uint16(31119), + 56: uint16(33145), + 57: uint16(33583), + 58: uint16(34068), + 59: uint16(35079), + 60: uint16(35206), + 61: uint16(36665), + 62: uint16(36667), + 63: uint16(39333), + 64: uint16(39954), + 65: uint16(26412), + 66: uint16(20086), + 67: uint16(20472), + 68: uint16(22857), + 69: uint16(23553), + 70: uint16(23791), + 71: uint16(23792), + 72: uint16(25447), + 73: uint16(26834), + 74: uint16(28925), + 75: uint16(29090), + 76: uint16(29739), + 77: uint16(32299), + 78: uint16(34028), + 79: uint16(34562), + 80: uint16(36898), + 81: uint16(37586), + 82: uint16(40179), + 83: uint16(19981), + 84: uint16(20184), + 85: uint16(20463), + 86: uint16(20613), + 87: uint16(21078), + 88: uint16(21103), + 89: uint16(21542), + 90: uint16(21648), + 91: uint16(22496), + 92: uint16(22827), + 93: uint16(23142), + }, + 60: { + 0: uint16(23386), + 1: uint16(23413), + 2: uint16(23500), + 3: uint16(24220), + 4: uint16(63846), + 5: uint16(25206), + 6: uint16(25975), + 7: uint16(26023), + 8: uint16(28014), + 9: uint16(28325), + 10: uint16(29238), + 11: uint16(31526), + 12: uint16(31807), + 13: uint16(32566), + 14: uint16(33104), + 15: uint16(33105), + 16: uint16(33178), + 17: uint16(33344), + 18: uint16(33433), + 19: uint16(33705), + 20: uint16(35331), + 21: uint16(36000), + 22: uint16(36070), + 23: uint16(36091), + 24: uint16(36212), + 25: uint16(36282), + 26: uint16(37096), + 27: uint16(37340), + 28: uint16(38428), + 29: uint16(38468), + 30: uint16(39385), + 31: uint16(40167), + 32: uint16(21271), + 33: uint16(20998), + 34: uint16(21545), + 35: uint16(22132), + 36: uint16(22707), + 37: uint16(22868), + 38: uint16(22894), + 39: uint16(24575), + 40: uint16(24996), + 41: uint16(25198), + 42: uint16(26128), + 43: uint16(27774), + 44: uint16(28954), + 45: uint16(30406), + 46: uint16(31881), + 47: uint16(31966), + 48: uint16(32027), + 49: uint16(33452), + 50: uint16(36033), + 51: uint16(38640), + 52: uint16(63847), + 53: uint16(20315), + 54: uint16(24343), + 55: uint16(24447), + 56: uint16(25282), + 57: uint16(23849), + 58: uint16(26379), + 59: uint16(26842), + 60: uint16(30844), + 61: uint16(32323), + 62: uint16(40300), + 63: uint16(19989), + 64: uint16(20633), + 65: uint16(21269), + 66: uint16(21290), + 67: uint16(21329), + 68: uint16(22915), + 69: uint16(23138), + 70: uint16(24199), + 71: uint16(24754), + 72: uint16(24970), + 73: uint16(25161), + 74: uint16(25209), + 75: uint16(26000), + 76: uint16(26503), + 77: uint16(27047), + 78: uint16(27604), + 79: uint16(27606), + 80: uint16(27607), + 81: uint16(27608), + 82: uint16(27832), + 83: uint16(63848), + 84: uint16(29749), + 85: uint16(30202), + 86: uint16(30738), + 87: uint16(30865), + 88: uint16(31189), + 89: uint16(31192), + 90: uint16(31875), + 91: uint16(32203), + 92: uint16(32737), + 93: uint16(32933), + }, + 61: { + 0: uint16(33086), + 1: uint16(33218), + 2: uint16(33778), + 3: uint16(34586), + 4: uint16(35048), + 5: uint16(35513), + 6: uint16(35692), + 7: uint16(36027), + 8: uint16(37145), + 9: uint16(38750), + 10: uint16(39131), + 11: uint16(40763), + 12: uint16(22188), + 13: uint16(23338), + 14: uint16(24428), + 15: uint16(25996), + 16: uint16(27315), + 17: uint16(27567), + 18: uint16(27996), + 19: uint16(28657), + 20: uint16(28693), + 21: uint16(29277), + 22: uint16(29613), + 23: uint16(36007), + 24: uint16(36051), + 25: uint16(38971), + 26: uint16(24977), + 27: uint16(27703), + 28: uint16(32856), + 29: uint16(39425), + 30: uint16(20045), + 31: uint16(20107), + 32: uint16(20123), + 33: uint16(20181), + 34: uint16(20282), + 35: uint16(20284), + 36: uint16(20351), + 37: uint16(20447), + 38: uint16(20735), + 39: uint16(21490), + 40: uint16(21496), + 41: uint16(21766), + 42: uint16(21987), + 43: uint16(22235), + 44: uint16(22763), + 45: uint16(22882), + 46: uint16(23057), + 47: uint16(23531), + 48: uint16(23546), + 49: uint16(23556), + 50: uint16(24051), + 51: uint16(24107), + 52: uint16(24473), + 53: uint16(24605), + 54: uint16(25448), + 55: uint16(26012), + 56: uint16(26031), + 57: uint16(26614), + 58: uint16(26619), + 59: uint16(26797), + 60: uint16(27515), + 61: uint16(27801), + 62: uint16(27863), + 63: uint16(28195), + 64: uint16(28681), + 65: uint16(29509), + 66: uint16(30722), + 67: uint16(31038), + 68: uint16(31040), + 69: uint16(31072), + 70: uint16(31169), + 71: uint16(31721), + 72: uint16(32023), + 73: uint16(32114), + 74: uint16(32902), + 75: uint16(33293), + 76: uint16(33678), + 77: uint16(34001), + 78: uint16(34503), + 79: uint16(35039), + 80: uint16(35408), + 81: uint16(35422), + 82: uint16(35613), + 83: uint16(36060), + 84: uint16(36198), + 85: uint16(36781), + 86: uint16(37034), + 87: uint16(39164), + 88: uint16(39391), + 89: uint16(40605), + 90: uint16(21066), + 91: uint16(63849), + 92: uint16(26388), + 93: uint16(63850), + }, + 62: { + 0: uint16(20632), + 1: uint16(21034), + 2: uint16(23665), + 3: uint16(25955), + 4: uint16(27733), + 5: uint16(29642), + 6: uint16(29987), + 7: uint16(30109), + 8: uint16(31639), + 9: uint16(33948), + 10: uint16(37240), + 11: uint16(38704), + 12: uint16(20087), + 13: uint16(25746), + 14: uint16(27578), + 15: uint16(29022), + 16: uint16(34217), + 17: uint16(19977), + 18: uint16(63851), + 19: uint16(26441), + 20: uint16(26862), + 21: uint16(28183), + 22: uint16(33439), + 23: uint16(34072), + 24: uint16(34923), + 25: uint16(25591), + 26: uint16(28545), + 27: uint16(37394), + 28: uint16(39087), + 29: uint16(19978), + 30: uint16(20663), + 31: uint16(20687), + 32: uint16(20767), + 33: uint16(21830), + 34: uint16(21930), + 35: uint16(22039), + 36: uint16(23360), + 37: uint16(23577), + 38: uint16(23776), + 39: uint16(24120), + 40: uint16(24202), + 41: uint16(24224), + 42: uint16(24258), + 43: uint16(24819), + 44: uint16(26705), + 45: uint16(27233), + 46: uint16(28248), + 47: uint16(29245), + 48: uint16(29248), + 49: uint16(29376), + 50: uint16(30456), + 51: uint16(31077), + 52: uint16(31665), + 53: uint16(32724), + 54: uint16(35059), + 55: uint16(35316), + 56: uint16(35443), + 57: uint16(35937), + 58: uint16(36062), + 59: uint16(38684), + 60: uint16(22622), + 61: uint16(29885), + 62: uint16(36093), + 63: uint16(21959), + 64: uint16(63852), + 65: uint16(31329), + 66: uint16(32034), + 67: uint16(33394), + 68: uint16(29298), + 69: uint16(29983), + 70: uint16(29989), + 71: uint16(63853), + 72: uint16(31513), + 73: uint16(22661), + 74: uint16(22779), + 75: uint16(23996), + 76: uint16(24207), + 77: uint16(24246), + 78: uint16(24464), + 79: uint16(24661), + 80: uint16(25234), + 81: uint16(25471), + 82: uint16(25933), + 83: uint16(26257), + 84: uint16(26329), + 85: uint16(26360), + 86: uint16(26646), + 87: uint16(26866), + 88: uint16(29312), + 89: uint16(29790), + 90: uint16(31598), + 91: uint16(32110), + 92: uint16(32214), + 93: uint16(32626), + }, + 63: { + 0: uint16(32997), + 1: uint16(33298), + 2: uint16(34223), + 3: uint16(35199), + 4: uint16(35475), + 5: uint16(36893), + 6: uint16(37604), + 7: uint16(40653), + 8: uint16(40736), + 9: uint16(22805), + 10: uint16(22893), + 11: uint16(24109), + 12: uint16(24796), + 13: uint16(26132), + 14: uint16(26227), + 15: uint16(26512), + 16: uint16(27728), + 17: uint16(28101), + 18: uint16(28511), + 19: uint16(30707), + 20: uint16(30889), + 21: uint16(33990), + 22: uint16(37323), + 23: uint16(37675), + 24: uint16(20185), + 25: uint16(20682), + 26: uint16(20808), + 27: uint16(21892), + 28: uint16(23307), + 29: uint16(23459), + 30: uint16(25159), + 31: uint16(25982), + 32: uint16(26059), + 33: uint16(28210), + 34: uint16(29053), + 35: uint16(29697), + 36: uint16(29764), + 37: uint16(29831), + 38: uint16(29887), + 39: uint16(30316), + 40: uint16(31146), + 41: uint16(32218), + 42: uint16(32341), + 43: uint16(32680), + 44: uint16(33146), + 45: uint16(33203), + 46: uint16(33337), + 47: uint16(34330), + 48: uint16(34796), + 49: uint16(35445), + 50: uint16(36323), + 51: uint16(36984), + 52: uint16(37521), + 53: uint16(37925), + 54: uint16(39245), + 55: uint16(39854), + 56: uint16(21352), + 57: uint16(23633), + 58: uint16(26964), + 59: uint16(27844), + 60: uint16(27945), + 61: uint16(28203), + 62: uint16(33292), + 63: uint16(34203), + 64: uint16(35131), + 65: uint16(35373), + 66: uint16(35498), + 67: uint16(38634), + 68: uint16(40807), + 69: uint16(21089), + 70: uint16(26297), + 71: uint16(27570), + 72: uint16(32406), + 73: uint16(34814), + 74: uint16(36109), + 75: uint16(38275), + 76: uint16(38493), + 77: uint16(25885), + 78: uint16(28041), + 79: uint16(29166), + 80: uint16(63854), + 81: uint16(22478), + 82: uint16(22995), + 83: uint16(23468), + 84: uint16(24615), + 85: uint16(24826), + 86: uint16(25104), + 87: uint16(26143), + 88: uint16(26207), + 89: uint16(29481), + 90: uint16(29689), + 91: uint16(30427), + 92: uint16(30465), + 93: uint16(31596), + }, + 64: { + 0: uint16(32854), + 1: uint16(32882), + 2: uint16(33125), + 3: uint16(35488), + 4: uint16(37266), + 5: uint16(19990), + 6: uint16(21218), + 7: uint16(27506), + 8: uint16(27927), + 9: uint16(31237), + 10: uint16(31545), + 11: uint16(32048), + 12: uint16(63855), + 13: uint16(36016), + 14: uint16(21484), + 15: uint16(22063), + 16: uint16(22609), + 17: uint16(23477), + 18: uint16(23567), + 19: uint16(23569), + 20: uint16(24034), + 21: uint16(25152), + 22: uint16(25475), + 23: uint16(25620), + 24: uint16(26157), + 25: uint16(26803), + 26: uint16(27836), + 27: uint16(28040), + 28: uint16(28335), + 29: uint16(28703), + 30: uint16(28836), + 31: uint16(29138), + 32: uint16(29990), + 33: uint16(30095), + 34: uint16(30094), + 35: uint16(30233), + 36: uint16(31505), + 37: uint16(31712), + 38: uint16(31787), + 39: uint16(32032), + 40: uint16(32057), + 41: uint16(34092), + 42: uint16(34157), + 43: uint16(34311), + 44: uint16(35380), + 45: uint16(36877), + 46: uint16(36961), + 47: uint16(37045), + 48: uint16(37559), + 49: uint16(38902), + 50: uint16(39479), + 51: uint16(20439), + 52: uint16(23660), + 53: uint16(26463), + 54: uint16(28049), + 55: uint16(31903), + 56: uint16(32396), + 57: uint16(35606), + 58: uint16(36118), + 59: uint16(36895), + 60: uint16(23403), + 61: uint16(24061), + 62: uint16(25613), + 63: uint16(33984), + 64: uint16(36956), + 65: uint16(39137), + 66: uint16(29575), + 67: uint16(23435), + 68: uint16(24730), + 69: uint16(26494), + 70: uint16(28126), + 71: uint16(35359), + 72: uint16(35494), + 73: uint16(36865), + 74: uint16(38924), + 75: uint16(21047), + 76: uint16(63856), + 77: uint16(28753), + 78: uint16(30862), + 79: uint16(37782), + 80: uint16(34928), + 81: uint16(37335), + 82: uint16(20462), + 83: uint16(21463), + 84: uint16(22013), + 85: uint16(22234), + 86: uint16(22402), + 87: uint16(22781), + 88: uint16(23234), + 89: uint16(23432), + 90: uint16(23723), + 91: uint16(23744), + 92: uint16(24101), + 93: uint16(24833), + }, + 65: { + 0: uint16(25101), + 1: uint16(25163), + 2: uint16(25480), + 3: uint16(25628), + 4: uint16(25910), + 5: uint16(25976), + 6: uint16(27193), + 7: uint16(27530), + 8: uint16(27700), + 9: uint16(27929), + 10: uint16(28465), + 11: uint16(29159), + 12: uint16(29417), + 13: uint16(29560), + 14: uint16(29703), + 15: uint16(29874), + 16: uint16(30246), + 17: uint16(30561), + 18: uint16(31168), + 19: uint16(31319), + 20: uint16(31466), + 21: uint16(31929), + 22: uint16(32143), + 23: uint16(32172), + 24: uint16(32353), + 25: uint16(32670), + 26: uint16(33065), + 27: uint16(33585), + 28: uint16(33936), + 29: uint16(34010), + 30: uint16(34282), + 31: uint16(34966), + 32: uint16(35504), + 33: uint16(35728), + 34: uint16(36664), + 35: uint16(36930), + 36: uint16(36995), + 37: uint16(37228), + 38: uint16(37526), + 39: uint16(37561), + 40: uint16(38539), + 41: uint16(38567), + 42: uint16(38568), + 43: uint16(38614), + 44: uint16(38656), + 45: uint16(38920), + 46: uint16(39318), + 47: uint16(39635), + 48: uint16(39706), + 49: uint16(21460), + 50: uint16(22654), + 51: uint16(22809), + 52: uint16(23408), + 53: uint16(23487), + 54: uint16(28113), + 55: uint16(28506), + 56: uint16(29087), + 57: uint16(29729), + 58: uint16(29881), + 59: uint16(32901), + 60: uint16(33789), + 61: uint16(24033), + 62: uint16(24455), + 63: uint16(24490), + 64: uint16(24642), + 65: uint16(26092), + 66: uint16(26642), + 67: uint16(26991), + 68: uint16(27219), + 69: uint16(27529), + 70: uint16(27957), + 71: uint16(28147), + 72: uint16(29667), + 73: uint16(30462), + 74: uint16(30636), + 75: uint16(31565), + 76: uint16(32020), + 77: uint16(33059), + 78: uint16(33308), + 79: uint16(33600), + 80: uint16(34036), + 81: uint16(34147), + 82: uint16(35426), + 83: uint16(35524), + 84: uint16(37255), + 85: uint16(37662), + 86: uint16(38918), + 87: uint16(39348), + 88: uint16(25100), + 89: uint16(34899), + 90: uint16(36848), + 91: uint16(37477), + 92: uint16(23815), + 93: uint16(23847), + }, + 66: { + 0: uint16(23913), + 1: uint16(29791), + 2: uint16(33181), + 3: uint16(34664), + 4: uint16(28629), + 5: uint16(25342), + 6: uint16(32722), + 7: uint16(35126), + 8: uint16(35186), + 9: uint16(19998), + 10: uint16(20056), + 11: uint16(20711), + 12: uint16(21213), + 13: uint16(21319), + 14: uint16(25215), + 15: uint16(26119), + 16: uint16(32361), + 17: uint16(34821), + 18: uint16(38494), + 19: uint16(20365), + 20: uint16(21273), + 21: uint16(22070), + 22: uint16(22987), + 23: uint16(23204), + 24: uint16(23608), + 25: uint16(23630), + 26: uint16(23629), + 27: uint16(24066), + 28: uint16(24337), + 29: uint16(24643), + 30: uint16(26045), + 31: uint16(26159), + 32: uint16(26178), + 33: uint16(26558), + 34: uint16(26612), + 35: uint16(29468), + 36: uint16(30690), + 37: uint16(31034), + 38: uint16(32709), + 39: uint16(33940), + 40: uint16(33997), + 41: uint16(35222), + 42: uint16(35430), + 43: uint16(35433), + 44: uint16(35553), + 45: uint16(35925), + 46: uint16(35962), + 47: uint16(22516), + 48: uint16(23508), + 49: uint16(24335), + 50: uint16(24687), + 51: uint16(25325), + 52: uint16(26893), + 53: uint16(27542), + 54: uint16(28252), + 55: uint16(29060), + 56: uint16(31698), + 57: uint16(34645), + 58: uint16(35672), + 59: uint16(36606), + 60: uint16(39135), + 61: uint16(39166), + 62: uint16(20280), + 63: uint16(20353), + 64: uint16(20449), + 65: uint16(21627), + 66: uint16(23072), + 67: uint16(23480), + 68: uint16(24892), + 69: uint16(26032), + 70: uint16(26216), + 71: uint16(29180), + 72: uint16(30003), + 73: uint16(31070), + 74: uint16(32051), + 75: uint16(33102), + 76: uint16(33251), + 77: uint16(33688), + 78: uint16(34218), + 79: uint16(34254), + 80: uint16(34563), + 81: uint16(35338), + 82: uint16(36523), + 83: uint16(36763), + 84: uint16(63857), + 85: uint16(36805), + 86: uint16(22833), + 87: uint16(23460), + 88: uint16(23526), + 89: uint16(24713), + 90: uint16(23529), + 91: uint16(23563), + 92: uint16(24515), + 93: uint16(27777), + }, + 67: { + 0: uint16(63858), + 1: uint16(28145), + 2: uint16(28683), + 3: uint16(29978), + 4: uint16(33455), + 5: uint16(35574), + 6: uint16(20160), + 7: uint16(21313), + 8: uint16(63859), + 9: uint16(38617), + 10: uint16(27663), + 11: uint16(20126), + 12: uint16(20420), + 13: uint16(20818), + 14: uint16(21854), + 15: uint16(23077), + 16: uint16(23784), + 17: uint16(25105), + 18: uint16(29273), + 19: uint16(33469), + 20: uint16(33706), + 21: uint16(34558), + 22: uint16(34905), + 23: uint16(35357), + 24: uint16(38463), + 25: uint16(38597), + 26: uint16(39187), + 27: uint16(40201), + 28: uint16(40285), + 29: uint16(22538), + 30: uint16(23731), + 31: uint16(23997), + 32: uint16(24132), + 33: uint16(24801), + 34: uint16(24853), + 35: uint16(25569), + 36: uint16(27138), + 37: uint16(28197), + 38: uint16(37122), + 39: uint16(37716), + 40: uint16(38990), + 41: uint16(39952), + 42: uint16(40823), + 43: uint16(23433), + 44: uint16(23736), + 45: uint16(25353), + 46: uint16(26191), + 47: uint16(26696), + 48: uint16(30524), + 49: uint16(38593), + 50: uint16(38797), + 51: uint16(38996), + 52: uint16(39839), + 53: uint16(26017), + 54: uint16(35585), + 55: uint16(36555), + 56: uint16(38332), + 57: uint16(21813), + 58: uint16(23721), + 59: uint16(24022), + 60: uint16(24245), + 61: uint16(26263), + 62: uint16(30284), + 63: uint16(33780), + 64: uint16(38343), + 65: uint16(22739), + 66: uint16(25276), + 67: uint16(29390), + 68: uint16(40232), + 69: uint16(20208), + 70: uint16(22830), + 71: uint16(24591), + 72: uint16(26171), + 73: uint16(27523), + 74: uint16(31207), + 75: uint16(40230), + 76: uint16(21395), + 77: uint16(21696), + 78: uint16(22467), + 79: uint16(23830), + 80: uint16(24859), + 81: uint16(26326), + 82: uint16(28079), + 83: uint16(30861), + 84: uint16(33406), + 85: uint16(38552), + 86: uint16(38724), + 87: uint16(21380), + 88: uint16(25212), + 89: uint16(25494), + 90: uint16(28082), + 91: uint16(32266), + 92: uint16(33099), + 93: uint16(38989), + }, + 68: { + 0: uint16(27387), + 1: uint16(32588), + 2: uint16(40367), + 3: uint16(40474), + 4: uint16(20063), + 5: uint16(20539), + 6: uint16(20918), + 7: uint16(22812), + 8: uint16(24825), + 9: uint16(25590), + 10: uint16(26928), + 11: uint16(29242), + 12: uint16(32822), + 13: uint16(63860), + 14: uint16(37326), + 15: uint16(24369), + 16: uint16(63861), + 17: uint16(63862), + 18: uint16(32004), + 19: uint16(33509), + 20: uint16(33903), + 21: uint16(33979), + 22: uint16(34277), + 23: uint16(36493), + 24: uint16(63863), + 25: uint16(20335), + 26: uint16(63864), + 27: uint16(63865), + 28: uint16(22756), + 29: uint16(23363), + 30: uint16(24665), + 31: uint16(25562), + 32: uint16(25880), + 33: uint16(25965), + 34: uint16(26264), + 35: uint16(63866), + 36: uint16(26954), + 37: uint16(27171), + 38: uint16(27915), + 39: uint16(28673), + 40: uint16(29036), + 41: uint16(30162), + 42: uint16(30221), + 43: uint16(31155), + 44: uint16(31344), + 45: uint16(63867), + 46: uint16(32650), + 47: uint16(63868), + 48: uint16(35140), + 49: uint16(63869), + 50: uint16(35731), + 51: uint16(37312), + 52: uint16(38525), + 53: uint16(63870), + 54: uint16(39178), + 55: uint16(22276), + 56: uint16(24481), + 57: uint16(26044), + 58: uint16(28417), + 59: uint16(30208), + 60: uint16(31142), + 61: uint16(35486), + 62: uint16(39341), + 63: uint16(39770), + 64: uint16(40812), + 65: uint16(20740), + 66: uint16(25014), + 67: uint16(25233), + 68: uint16(27277), + 69: uint16(33222), + 70: uint16(20547), + 71: uint16(22576), + 72: uint16(24422), + 73: uint16(28937), + 74: uint16(35328), + 75: uint16(35578), + 76: uint16(23420), + 77: uint16(34326), + 78: uint16(20474), + 79: uint16(20796), + 80: uint16(22196), + 81: uint16(22852), + 82: uint16(25513), + 83: uint16(28153), + 84: uint16(23978), + 85: uint16(26989), + 86: uint16(20870), + 87: uint16(20104), + 88: uint16(20313), + 89: uint16(63871), + 90: uint16(63872), + 91: uint16(63873), + 92: uint16(22914), + 93: uint16(63874), + }, + 69: { + 0: uint16(63875), + 1: uint16(27487), + 2: uint16(27741), + 3: uint16(63876), + 4: uint16(29877), + 5: uint16(30998), + 6: uint16(63877), + 7: uint16(33287), + 8: uint16(33349), + 9: uint16(33593), + 10: uint16(36671), + 11: uint16(36701), + 12: uint16(63878), + 13: uint16(39192), + 14: uint16(63879), + 15: uint16(63880), + 16: uint16(63881), + 17: uint16(20134), + 18: uint16(63882), + 19: uint16(22495), + 20: uint16(24441), + 21: uint16(26131), + 22: uint16(63883), + 23: uint16(63884), + 24: uint16(30123), + 25: uint16(32377), + 26: uint16(35695), + 27: uint16(63885), + 28: uint16(36870), + 29: uint16(39515), + 30: uint16(22181), + 31: uint16(22567), + 32: uint16(23032), + 33: uint16(23071), + 34: uint16(23476), + 35: uint16(63886), + 36: uint16(24310), + 37: uint16(63887), + 38: uint16(63888), + 39: uint16(25424), + 40: uint16(25403), + 41: uint16(63889), + 42: uint16(26941), + 43: uint16(27783), + 44: uint16(27839), + 45: uint16(28046), + 46: uint16(28051), + 47: uint16(28149), + 48: uint16(28436), + 49: uint16(63890), + 50: uint16(28895), + 51: uint16(28982), + 52: uint16(29017), + 53: uint16(63891), + 54: uint16(29123), + 55: uint16(29141), + 56: uint16(63892), + 57: uint16(30799), + 58: uint16(30831), + 59: uint16(63893), + 60: uint16(31605), + 61: uint16(32227), + 62: uint16(63894), + 63: uint16(32303), + 64: uint16(63895), + 65: uint16(34893), + 66: uint16(36575), + 67: uint16(63896), + 68: uint16(63897), + 69: uint16(63898), + 70: uint16(37467), + 71: uint16(63899), + 72: uint16(40182), + 73: uint16(63900), + 74: uint16(63901), + 75: uint16(63902), + 76: uint16(24709), + 77: uint16(28037), + 78: uint16(63903), + 79: uint16(29105), + 80: uint16(63904), + 81: uint16(63905), + 82: uint16(38321), + 83: uint16(21421), + 84: uint16(63906), + 85: uint16(63907), + 86: uint16(63908), + 87: uint16(26579), + 88: uint16(63909), + 89: uint16(28814), + 90: uint16(28976), + 91: uint16(29744), + 92: uint16(33398), + 93: uint16(33490), + }, + 70: { + 0: uint16(63910), + 1: uint16(38331), + 2: uint16(39653), + 3: uint16(40573), + 4: uint16(26308), + 5: uint16(63911), + 6: uint16(29121), + 7: uint16(33865), + 8: uint16(63912), + 9: uint16(63913), + 10: uint16(22603), + 11: uint16(63914), + 12: uint16(63915), + 13: uint16(23992), + 14: uint16(24433), + 15: uint16(63916), + 16: uint16(26144), + 17: uint16(26254), + 18: uint16(27001), + 19: uint16(27054), + 20: uint16(27704), + 21: uint16(27891), + 22: uint16(28214), + 23: uint16(28481), + 24: uint16(28634), + 25: uint16(28699), + 26: uint16(28719), + 27: uint16(29008), + 28: uint16(29151), + 29: uint16(29552), + 30: uint16(63917), + 31: uint16(29787), + 32: uint16(63918), + 33: uint16(29908), + 34: uint16(30408), + 35: uint16(31310), + 36: uint16(32403), + 37: uint16(63919), + 38: uint16(63920), + 39: uint16(33521), + 40: uint16(35424), + 41: uint16(36814), + 42: uint16(63921), + 43: uint16(37704), + 44: uint16(63922), + 45: uint16(38681), + 46: uint16(63923), + 47: uint16(63924), + 48: uint16(20034), + 49: uint16(20522), + 50: uint16(63925), + 51: uint16(21000), + 52: uint16(21473), + 53: uint16(26355), + 54: uint16(27757), + 55: uint16(28618), + 56: uint16(29450), + 57: uint16(30591), + 58: uint16(31330), + 59: uint16(33454), + 60: uint16(34269), + 61: uint16(34306), + 62: uint16(63926), + 63: uint16(35028), + 64: uint16(35427), + 65: uint16(35709), + 66: uint16(35947), + 67: uint16(63927), + 68: uint16(37555), + 69: uint16(63928), + 70: uint16(38675), + 71: uint16(38928), + 72: uint16(20116), + 73: uint16(20237), + 74: uint16(20425), + 75: uint16(20658), + 76: uint16(21320), + 77: uint16(21566), + 78: uint16(21555), + 79: uint16(21978), + 80: uint16(22626), + 81: uint16(22714), + 82: uint16(22887), + 83: uint16(23067), + 84: uint16(23524), + 85: uint16(24735), + 86: uint16(63929), + 87: uint16(25034), + 88: uint16(25942), + 89: uint16(26111), + 90: uint16(26212), + 91: uint16(26791), + 92: uint16(27738), + 93: uint16(28595), + }, + 71: { + 0: uint16(28879), + 1: uint16(29100), + 2: uint16(29522), + 3: uint16(31613), + 4: uint16(34568), + 5: uint16(35492), + 6: uint16(39986), + 7: uint16(40711), + 8: uint16(23627), + 9: uint16(27779), + 10: uint16(29508), + 11: uint16(29577), + 12: uint16(37434), + 13: uint16(28331), + 14: uint16(29797), + 15: uint16(30239), + 16: uint16(31337), + 17: uint16(32277), + 18: uint16(34314), + 19: uint16(20800), + 20: uint16(22725), + 21: uint16(25793), + 22: uint16(29934), + 23: uint16(29973), + 24: uint16(30320), + 25: uint16(32705), + 26: uint16(37013), + 27: uint16(38605), + 28: uint16(39252), + 29: uint16(28198), + 30: uint16(29926), + 31: uint16(31401), + 32: uint16(31402), + 33: uint16(33253), + 34: uint16(34521), + 35: uint16(34680), + 36: uint16(35355), + 37: uint16(23113), + 38: uint16(23436), + 39: uint16(23451), + 40: uint16(26785), + 41: uint16(26880), + 42: uint16(28003), + 43: uint16(29609), + 44: uint16(29715), + 45: uint16(29740), + 46: uint16(30871), + 47: uint16(32233), + 48: uint16(32747), + 49: uint16(33048), + 50: uint16(33109), + 51: uint16(33694), + 52: uint16(35916), + 53: uint16(38446), + 54: uint16(38929), + 55: uint16(26352), + 56: uint16(24448), + 57: uint16(26106), + 58: uint16(26505), + 59: uint16(27754), + 60: uint16(29579), + 61: uint16(20525), + 62: uint16(23043), + 63: uint16(27498), + 64: uint16(30702), + 65: uint16(22806), + 66: uint16(23916), + 67: uint16(24013), + 68: uint16(29477), + 69: uint16(30031), + 70: uint16(63930), + 71: uint16(63931), + 72: uint16(20709), + 73: uint16(20985), + 74: uint16(22575), + 75: uint16(22829), + 76: uint16(22934), + 77: uint16(23002), + 78: uint16(23525), + 79: uint16(63932), + 80: uint16(63933), + 81: uint16(23970), + 82: uint16(25303), + 83: uint16(25622), + 84: uint16(25747), + 85: uint16(25854), + 86: uint16(63934), + 87: uint16(26332), + 88: uint16(63935), + 89: uint16(27208), + 90: uint16(63936), + 91: uint16(29183), + 92: uint16(29796), + 93: uint16(63937), + }, + 72: { + 0: uint16(31368), + 1: uint16(31407), + 2: uint16(32327), + 3: uint16(32350), + 4: uint16(32768), + 5: uint16(33136), + 6: uint16(63938), + 7: uint16(34799), + 8: uint16(35201), + 9: uint16(35616), + 10: uint16(36953), + 11: uint16(63939), + 12: uint16(36992), + 13: uint16(39250), + 14: uint16(24958), + 15: uint16(27442), + 16: uint16(28020), + 17: uint16(32287), + 18: uint16(35109), + 19: uint16(36785), + 20: uint16(20433), + 21: uint16(20653), + 22: uint16(20887), + 23: uint16(21191), + 24: uint16(22471), + 25: uint16(22665), + 26: uint16(23481), + 27: uint16(24248), + 28: uint16(24898), + 29: uint16(27029), + 30: uint16(28044), + 31: uint16(28263), + 32: uint16(28342), + 33: uint16(29076), + 34: uint16(29794), + 35: uint16(29992), + 36: uint16(29996), + 37: uint16(32883), + 38: uint16(33592), + 39: uint16(33993), + 40: uint16(36362), + 41: uint16(37780), + 42: uint16(37854), + 43: uint16(63940), + 44: uint16(20110), + 45: uint16(20305), + 46: uint16(20598), + 47: uint16(20778), + 48: uint16(21448), + 49: uint16(21451), + 50: uint16(21491), + 51: uint16(23431), + 52: uint16(23507), + 53: uint16(23588), + 54: uint16(24858), + 55: uint16(24962), + 56: uint16(26100), + 57: uint16(29275), + 58: uint16(29591), + 59: uint16(29760), + 60: uint16(30402), + 61: uint16(31056), + 62: uint16(31121), + 63: uint16(31161), + 64: uint16(32006), + 65: uint16(32701), + 66: uint16(33419), + 67: uint16(34261), + 68: uint16(34398), + 69: uint16(36802), + 70: uint16(36935), + 71: uint16(37109), + 72: uint16(37354), + 73: uint16(38533), + 74: uint16(38632), + 75: uint16(38633), + 76: uint16(21206), + 77: uint16(24423), + 78: uint16(26093), + 79: uint16(26161), + 80: uint16(26671), + 81: uint16(29020), + 82: uint16(31286), + 83: uint16(37057), + 84: uint16(38922), + 85: uint16(20113), + 86: uint16(63941), + 87: uint16(27218), + 88: uint16(27550), + 89: uint16(28560), + 90: uint16(29065), + 91: uint16(32792), + 92: uint16(33464), + 93: uint16(34131), + }, + 73: { + 0: uint16(36939), + 1: uint16(38549), + 2: uint16(38642), + 3: uint16(38907), + 4: uint16(34074), + 5: uint16(39729), + 6: uint16(20112), + 7: uint16(29066), + 8: uint16(38596), + 9: uint16(20803), + 10: uint16(21407), + 11: uint16(21729), + 12: uint16(22291), + 13: uint16(22290), + 14: uint16(22435), + 15: uint16(23195), + 16: uint16(23236), + 17: uint16(23491), + 18: uint16(24616), + 19: uint16(24895), + 20: uint16(25588), + 21: uint16(27781), + 22: uint16(27961), + 23: uint16(28274), + 24: uint16(28304), + 25: uint16(29232), + 26: uint16(29503), + 27: uint16(29783), + 28: uint16(33489), + 29: uint16(34945), + 30: uint16(36677), + 31: uint16(36960), + 32: uint16(63942), + 33: uint16(38498), + 34: uint16(39000), + 35: uint16(40219), + 36: uint16(26376), + 37: uint16(36234), + 38: uint16(37470), + 39: uint16(20301), + 40: uint16(20553), + 41: uint16(20702), + 42: uint16(21361), + 43: uint16(22285), + 44: uint16(22996), + 45: uint16(23041), + 46: uint16(23561), + 47: uint16(24944), + 48: uint16(26256), + 49: uint16(28205), + 50: uint16(29234), + 51: uint16(29771), + 52: uint16(32239), + 53: uint16(32963), + 54: uint16(33806), + 55: uint16(33894), + 56: uint16(34111), + 57: uint16(34655), + 58: uint16(34907), + 59: uint16(35096), + 60: uint16(35586), + 61: uint16(36949), + 62: uint16(38859), + 63: uint16(39759), + 64: uint16(20083), + 65: uint16(20369), + 66: uint16(20754), + 67: uint16(20842), + 68: uint16(63943), + 69: uint16(21807), + 70: uint16(21929), + 71: uint16(23418), + 72: uint16(23461), + 73: uint16(24188), + 74: uint16(24189), + 75: uint16(24254), + 76: uint16(24736), + 77: uint16(24799), + 78: uint16(24840), + 79: uint16(24841), + 80: uint16(25540), + 81: uint16(25912), + 82: uint16(26377), + 83: uint16(63944), + 84: uint16(26580), + 85: uint16(26586), + 86: uint16(63945), + 87: uint16(26977), + 88: uint16(26978), + 89: uint16(27833), + 90: uint16(27943), + 91: uint16(63946), + 92: uint16(28216), + 93: uint16(63947), + }, + 74: { + 0: uint16(28641), + 1: uint16(29494), + 2: uint16(29495), + 3: uint16(63948), + 4: uint16(29788), + 5: uint16(30001), + 6: uint16(63949), + 7: uint16(30290), + 8: uint16(63950), + 9: uint16(63951), + 10: uint16(32173), + 11: uint16(33278), + 12: uint16(33848), + 13: uint16(35029), + 14: uint16(35480), + 15: uint16(35547), + 16: uint16(35565), + 17: uint16(36400), + 18: uint16(36418), + 19: uint16(36938), + 20: uint16(36926), + 21: uint16(36986), + 22: uint16(37193), + 23: uint16(37321), + 24: uint16(37742), + 25: uint16(63952), + 26: uint16(63953), + 27: uint16(22537), + 28: uint16(63954), + 29: uint16(27603), + 30: uint16(32905), + 31: uint16(32946), + 32: uint16(63955), + 33: uint16(63956), + 34: uint16(20801), + 35: uint16(22891), + 36: uint16(23609), + 37: uint16(63957), + 38: uint16(63958), + 39: uint16(28516), + 40: uint16(29607), + 41: uint16(32996), + 42: uint16(36103), + 43: uint16(63959), + 44: uint16(37399), + 45: uint16(38287), + 46: uint16(63960), + 47: uint16(63961), + 48: uint16(63962), + 49: uint16(63963), + 50: uint16(32895), + 51: uint16(25102), + 52: uint16(28700), + 53: uint16(32104), + 54: uint16(34701), + 55: uint16(63964), + 56: uint16(22432), + 57: uint16(24681), + 58: uint16(24903), + 59: uint16(27575), + 60: uint16(35518), + 61: uint16(37504), + 62: uint16(38577), + 63: uint16(20057), + 64: uint16(21535), + 65: uint16(28139), + 66: uint16(34093), + 67: uint16(38512), + 68: uint16(38899), + 69: uint16(39150), + 70: uint16(25558), + 71: uint16(27875), + 72: uint16(37009), + 73: uint16(20957), + 74: uint16(25033), + 75: uint16(33210), + 76: uint16(40441), + 77: uint16(20381), + 78: uint16(20506), + 79: uint16(20736), + 80: uint16(23452), + 81: uint16(24847), + 82: uint16(25087), + 83: uint16(25836), + 84: uint16(26885), + 85: uint16(27589), + 86: uint16(30097), + 87: uint16(30691), + 88: uint16(32681), + 89: uint16(33380), + 90: uint16(34191), + 91: uint16(34811), + 92: uint16(34915), + 93: uint16(35516), + }, + 75: { + 0: uint16(35696), + 1: uint16(37291), + 2: uint16(20108), + 3: uint16(20197), + 4: uint16(20234), + 5: uint16(63965), + 6: uint16(63966), + 7: uint16(22839), + 8: uint16(23016), + 9: uint16(63967), + 10: uint16(24050), + 11: uint16(24347), + 12: uint16(24411), + 13: uint16(24609), + 14: uint16(63968), + 15: uint16(63969), + 16: uint16(63970), + 17: uint16(63971), + 18: uint16(29246), + 19: uint16(29669), + 20: uint16(63972), + 21: uint16(30064), + 22: uint16(30157), + 23: uint16(63973), + 24: uint16(31227), + 25: uint16(63974), + 26: uint16(32780), + 27: uint16(32819), + 28: uint16(32900), + 29: uint16(33505), + 30: uint16(33617), + 31: uint16(63975), + 32: uint16(63976), + 33: uint16(36029), + 34: uint16(36019), + 35: uint16(36999), + 36: uint16(63977), + 37: uint16(63978), + 38: uint16(39156), + 39: uint16(39180), + 40: uint16(63979), + 41: uint16(63980), + 42: uint16(28727), + 43: uint16(30410), + 44: uint16(32714), + 45: uint16(32716), + 46: uint16(32764), + 47: uint16(35610), + 48: uint16(20154), + 49: uint16(20161), + 50: uint16(20995), + 51: uint16(21360), + 52: uint16(63981), + 53: uint16(21693), + 54: uint16(22240), + 55: uint16(23035), + 56: uint16(23493), + 57: uint16(24341), + 58: uint16(24525), + 59: uint16(28270), + 60: uint16(63982), + 61: uint16(63983), + 62: uint16(32106), + 63: uint16(33589), + 64: uint16(63984), + 65: uint16(34451), + 66: uint16(35469), + 67: uint16(63985), + 68: uint16(38765), + 69: uint16(38775), + 70: uint16(63986), + 71: uint16(63987), + 72: uint16(19968), + 73: uint16(20314), + 74: uint16(20350), + 75: uint16(22777), + 76: uint16(26085), + 77: uint16(28322), + 78: uint16(36920), + 79: uint16(37808), + 80: uint16(39353), + 81: uint16(20219), + 82: uint16(22764), + 83: uint16(22922), + 84: uint16(23001), + 85: uint16(24641), + 86: uint16(63988), + 87: uint16(63989), + 88: uint16(31252), + 89: uint16(63990), + 90: uint16(33615), + 91: uint16(36035), + 92: uint16(20837), + 93: uint16(21316), + }, + 76: { + 0: uint16(63991), + 1: uint16(63992), + 2: uint16(63993), + 3: uint16(20173), + 4: uint16(21097), + 5: uint16(23381), + 6: uint16(33471), + 7: uint16(20180), + 8: uint16(21050), + 9: uint16(21672), + 10: uint16(22985), + 11: uint16(23039), + 12: uint16(23376), + 13: uint16(23383), + 14: uint16(23388), + 15: uint16(24675), + 16: uint16(24904), + 17: uint16(28363), + 18: uint16(28825), + 19: uint16(29038), + 20: uint16(29574), + 21: uint16(29943), + 22: uint16(30133), + 23: uint16(30913), + 24: uint16(32043), + 25: uint16(32773), + 26: uint16(33258), + 27: uint16(33576), + 28: uint16(34071), + 29: uint16(34249), + 30: uint16(35566), + 31: uint16(36039), + 32: uint16(38604), + 33: uint16(20316), + 34: uint16(21242), + 35: uint16(22204), + 36: uint16(26027), + 37: uint16(26152), + 38: uint16(28796), + 39: uint16(28856), + 40: uint16(29237), + 41: uint16(32189), + 42: uint16(33421), + 43: uint16(37196), + 44: uint16(38592), + 45: uint16(40306), + 46: uint16(23409), + 47: uint16(26855), + 48: uint16(27544), + 49: uint16(28538), + 50: uint16(30430), + 51: uint16(23697), + 52: uint16(26283), + 53: uint16(28507), + 54: uint16(31668), + 55: uint16(31786), + 56: uint16(34870), + 57: uint16(38620), + 58: uint16(19976), + 59: uint16(20183), + 60: uint16(21280), + 61: uint16(22580), + 62: uint16(22715), + 63: uint16(22767), + 64: uint16(22892), + 65: uint16(23559), + 66: uint16(24115), + 67: uint16(24196), + 68: uint16(24373), + 69: uint16(25484), + 70: uint16(26290), + 71: uint16(26454), + 72: uint16(27167), + 73: uint16(27299), + 74: uint16(27404), + 75: uint16(28479), + 76: uint16(29254), + 77: uint16(63994), + 78: uint16(29520), + 79: uint16(29835), + 80: uint16(31456), + 81: uint16(31911), + 82: uint16(33144), + 83: uint16(33247), + 84: uint16(33255), + 85: uint16(33674), + 86: uint16(33900), + 87: uint16(34083), + 88: uint16(34196), + 89: uint16(34255), + 90: uint16(35037), + 91: uint16(36115), + 92: uint16(37292), + 93: uint16(38263), + }, + 77: { + 0: uint16(38556), + 1: uint16(20877), + 2: uint16(21705), + 3: uint16(22312), + 4: uint16(23472), + 5: uint16(25165), + 6: uint16(26448), + 7: uint16(26685), + 8: uint16(26771), + 9: uint16(28221), + 10: uint16(28371), + 11: uint16(28797), + 12: uint16(32289), + 13: uint16(35009), + 14: uint16(36001), + 15: uint16(36617), + 16: uint16(40779), + 17: uint16(40782), + 18: uint16(29229), + 19: uint16(31631), + 20: uint16(35533), + 21: uint16(37658), + 22: uint16(20295), + 23: uint16(20302), + 24: uint16(20786), + 25: uint16(21632), + 26: uint16(22992), + 27: uint16(24213), + 28: uint16(25269), + 29: uint16(26485), + 30: uint16(26990), + 31: uint16(27159), + 32: uint16(27822), + 33: uint16(28186), + 34: uint16(29401), + 35: uint16(29482), + 36: uint16(30141), + 37: uint16(31672), + 38: uint16(32053), + 39: uint16(33511), + 40: uint16(33785), + 41: uint16(33879), + 42: uint16(34295), + 43: uint16(35419), + 44: uint16(36015), + 45: uint16(36487), + 46: uint16(36889), + 47: uint16(37048), + 48: uint16(38606), + 49: uint16(40799), + 50: uint16(21219), + 51: uint16(21514), + 52: uint16(23265), + 53: uint16(23490), + 54: uint16(25688), + 55: uint16(25973), + 56: uint16(28404), + 57: uint16(29380), + 58: uint16(63995), + 59: uint16(30340), + 60: uint16(31309), + 61: uint16(31515), + 62: uint16(31821), + 63: uint16(32318), + 64: uint16(32735), + 65: uint16(33659), + 66: uint16(35627), + 67: uint16(36042), + 68: uint16(36196), + 69: uint16(36321), + 70: uint16(36447), + 71: uint16(36842), + 72: uint16(36857), + 73: uint16(36969), + 74: uint16(37841), + 75: uint16(20291), + 76: uint16(20346), + 77: uint16(20659), + 78: uint16(20840), + 79: uint16(20856), + 80: uint16(21069), + 81: uint16(21098), + 82: uint16(22625), + 83: uint16(22652), + 84: uint16(22880), + 85: uint16(23560), + 86: uint16(23637), + 87: uint16(24283), + 88: uint16(24731), + 89: uint16(25136), + 90: uint16(26643), + 91: uint16(27583), + 92: uint16(27656), + 93: uint16(28593), + }, + 78: { + 0: uint16(29006), + 1: uint16(29728), + 2: uint16(30000), + 3: uint16(30008), + 4: uint16(30033), + 5: uint16(30322), + 6: uint16(31564), + 7: uint16(31627), + 8: uint16(31661), + 9: uint16(31686), + 10: uint16(32399), + 11: uint16(35438), + 12: uint16(36670), + 13: uint16(36681), + 14: uint16(37439), + 15: uint16(37523), + 16: uint16(37666), + 17: uint16(37931), + 18: uint16(38651), + 19: uint16(39002), + 20: uint16(39019), + 21: uint16(39198), + 22: uint16(20999), + 23: uint16(25130), + 24: uint16(25240), + 25: uint16(27993), + 26: uint16(30308), + 27: uint16(31434), + 28: uint16(31680), + 29: uint16(32118), + 30: uint16(21344), + 31: uint16(23742), + 32: uint16(24215), + 33: uint16(28472), + 34: uint16(28857), + 35: uint16(31896), + 36: uint16(38673), + 37: uint16(39822), + 38: uint16(40670), + 39: uint16(25509), + 40: uint16(25722), + 41: uint16(34678), + 42: uint16(19969), + 43: uint16(20117), + 44: uint16(20141), + 45: uint16(20572), + 46: uint16(20597), + 47: uint16(21576), + 48: uint16(22979), + 49: uint16(23450), + 50: uint16(24128), + 51: uint16(24237), + 52: uint16(24311), + 53: uint16(24449), + 54: uint16(24773), + 55: uint16(25402), + 56: uint16(25919), + 57: uint16(25972), + 58: uint16(26060), + 59: uint16(26230), + 60: uint16(26232), + 61: uint16(26622), + 62: uint16(26984), + 63: uint16(27273), + 64: uint16(27491), + 65: uint16(27712), + 66: uint16(28096), + 67: uint16(28136), + 68: uint16(28191), + 69: uint16(28254), + 70: uint16(28702), + 71: uint16(28833), + 72: uint16(29582), + 73: uint16(29693), + 74: uint16(30010), + 75: uint16(30555), + 76: uint16(30855), + 77: uint16(31118), + 78: uint16(31243), + 79: uint16(31357), + 80: uint16(31934), + 81: uint16(32142), + 82: uint16(33351), + 83: uint16(35330), + 84: uint16(35562), + 85: uint16(35998), + 86: uint16(37165), + 87: uint16(37194), + 88: uint16(37336), + 89: uint16(37478), + 90: uint16(37580), + 91: uint16(37664), + 92: uint16(38662), + 93: uint16(38742), + }, + 79: { + 0: uint16(38748), + 1: uint16(38914), + 2: uint16(40718), + 3: uint16(21046), + 4: uint16(21137), + 5: uint16(21884), + 6: uint16(22564), + 7: uint16(24093), + 8: uint16(24351), + 9: uint16(24716), + 10: uint16(25552), + 11: uint16(26799), + 12: uint16(28639), + 13: uint16(31085), + 14: uint16(31532), + 15: uint16(33229), + 16: uint16(34234), + 17: uint16(35069), + 18: uint16(35576), + 19: uint16(36420), + 20: uint16(37261), + 21: uint16(38500), + 22: uint16(38555), + 23: uint16(38717), + 24: uint16(38988), + 25: uint16(40778), + 26: uint16(20430), + 27: uint16(20806), + 28: uint16(20939), + 29: uint16(21161), + 30: uint16(22066), + 31: uint16(24340), + 32: uint16(24427), + 33: uint16(25514), + 34: uint16(25805), + 35: uint16(26089), + 36: uint16(26177), + 37: uint16(26362), + 38: uint16(26361), + 39: uint16(26397), + 40: uint16(26781), + 41: uint16(26839), + 42: uint16(27133), + 43: uint16(28437), + 44: uint16(28526), + 45: uint16(29031), + 46: uint16(29157), + 47: uint16(29226), + 48: uint16(29866), + 49: uint16(30522), + 50: uint16(31062), + 51: uint16(31066), + 52: uint16(31199), + 53: uint16(31264), + 54: uint16(31381), + 55: uint16(31895), + 56: uint16(31967), + 57: uint16(32068), + 58: uint16(32368), + 59: uint16(32903), + 60: uint16(34299), + 61: uint16(34468), + 62: uint16(35412), + 63: uint16(35519), + 64: uint16(36249), + 65: uint16(36481), + 66: uint16(36896), + 67: uint16(36973), + 68: uint16(37347), + 69: uint16(38459), + 70: uint16(38613), + 71: uint16(40165), + 72: uint16(26063), + 73: uint16(31751), + 74: uint16(36275), + 75: uint16(37827), + 76: uint16(23384), + 77: uint16(23562), + 78: uint16(21330), + 79: uint16(25305), + 80: uint16(29469), + 81: uint16(20519), + 82: uint16(23447), + 83: uint16(24478), + 84: uint16(24752), + 85: uint16(24939), + 86: uint16(26837), + 87: uint16(28121), + 88: uint16(29742), + 89: uint16(31278), + 90: uint16(32066), + 91: uint16(32156), + 92: uint16(32305), + 93: uint16(33131), + }, + 80: { + 0: uint16(36394), + 1: uint16(36405), + 2: uint16(37758), + 3: uint16(37912), + 4: uint16(20304), + 5: uint16(22352), + 6: uint16(24038), + 7: uint16(24231), + 8: uint16(25387), + 9: uint16(32618), + 10: uint16(20027), + 11: uint16(20303), + 12: uint16(20367), + 13: uint16(20570), + 14: uint16(23005), + 15: uint16(32964), + 16: uint16(21610), + 17: uint16(21608), + 18: uint16(22014), + 19: uint16(22863), + 20: uint16(23449), + 21: uint16(24030), + 22: uint16(24282), + 23: uint16(26205), + 24: uint16(26417), + 25: uint16(26609), + 26: uint16(26666), + 27: uint16(27880), + 28: uint16(27954), + 29: uint16(28234), + 30: uint16(28557), + 31: uint16(28855), + 32: uint16(29664), + 33: uint16(30087), + 34: uint16(31820), + 35: uint16(32002), + 36: uint16(32044), + 37: uint16(32162), + 38: uint16(33311), + 39: uint16(34523), + 40: uint16(35387), + 41: uint16(35461), + 42: uint16(36208), + 43: uint16(36490), + 44: uint16(36659), + 45: uint16(36913), + 46: uint16(37198), + 47: uint16(37202), + 48: uint16(37956), + 49: uint16(39376), + 50: uint16(31481), + 51: uint16(31909), + 52: uint16(20426), + 53: uint16(20737), + 54: uint16(20934), + 55: uint16(22472), + 56: uint16(23535), + 57: uint16(23803), + 58: uint16(26201), + 59: uint16(27197), + 60: uint16(27994), + 61: uint16(28310), + 62: uint16(28652), + 63: uint16(28940), + 64: uint16(30063), + 65: uint16(31459), + 66: uint16(34850), + 67: uint16(36897), + 68: uint16(36981), + 69: uint16(38603), + 70: uint16(39423), + 71: uint16(33537), + 72: uint16(20013), + 73: uint16(20210), + 74: uint16(34886), + 75: uint16(37325), + 76: uint16(21373), + 77: uint16(27355), + 78: uint16(26987), + 79: uint16(27713), + 80: uint16(33914), + 81: uint16(22686), + 82: uint16(24974), + 83: uint16(26366), + 84: uint16(25327), + 85: uint16(28893), + 86: uint16(29969), + 87: uint16(30151), + 88: uint16(32338), + 89: uint16(33976), + 90: uint16(35657), + 91: uint16(36104), + 92: uint16(20043), + 93: uint16(21482), + }, + 81: { + 0: uint16(21675), + 1: uint16(22320), + 2: uint16(22336), + 3: uint16(24535), + 4: uint16(25345), + 5: uint16(25351), + 6: uint16(25711), + 7: uint16(25903), + 8: uint16(26088), + 9: uint16(26234), + 10: uint16(26525), + 11: uint16(26547), + 12: uint16(27490), + 13: uint16(27744), + 14: uint16(27802), + 15: uint16(28460), + 16: uint16(30693), + 17: uint16(30757), + 18: uint16(31049), + 19: uint16(31063), + 20: uint16(32025), + 21: uint16(32930), + 22: uint16(33026), + 23: uint16(33267), + 24: uint16(33437), + 25: uint16(33463), + 26: uint16(34584), + 27: uint16(35468), + 28: uint16(63996), + 29: uint16(36100), + 30: uint16(36286), + 31: uint16(36978), + 32: uint16(30452), + 33: uint16(31257), + 34: uint16(31287), + 35: uint16(32340), + 36: uint16(32887), + 37: uint16(21767), + 38: uint16(21972), + 39: uint16(22645), + 40: uint16(25391), + 41: uint16(25634), + 42: uint16(26185), + 43: uint16(26187), + 44: uint16(26733), + 45: uint16(27035), + 46: uint16(27524), + 47: uint16(27941), + 48: uint16(28337), + 49: uint16(29645), + 50: uint16(29800), + 51: uint16(29857), + 52: uint16(30043), + 53: uint16(30137), + 54: uint16(30433), + 55: uint16(30494), + 56: uint16(30603), + 57: uint16(31206), + 58: uint16(32265), + 59: uint16(32285), + 60: uint16(33275), + 61: uint16(34095), + 62: uint16(34967), + 63: uint16(35386), + 64: uint16(36049), + 65: uint16(36587), + 66: uint16(36784), + 67: uint16(36914), + 68: uint16(37805), + 69: uint16(38499), + 70: uint16(38515), + 71: uint16(38663), + 72: uint16(20356), + 73: uint16(21489), + 74: uint16(23018), + 75: uint16(23241), + 76: uint16(24089), + 77: uint16(26702), + 78: uint16(29894), + 79: uint16(30142), + 80: uint16(31209), + 81: uint16(31378), + 82: uint16(33187), + 83: uint16(34541), + 84: uint16(36074), + 85: uint16(36300), + 86: uint16(36845), + 87: uint16(26015), + 88: uint16(26389), + 89: uint16(63997), + 90: uint16(22519), + 91: uint16(28503), + 92: uint16(32221), + 93: uint16(36655), + }, + 82: { + 0: uint16(37878), + 1: uint16(38598), + 2: uint16(24501), + 3: uint16(25074), + 4: uint16(28548), + 5: uint16(19988), + 6: uint16(20376), + 7: uint16(20511), + 8: uint16(21449), + 9: uint16(21983), + 10: uint16(23919), + 11: uint16(24046), + 12: uint16(27425), + 13: uint16(27492), + 14: uint16(30923), + 15: uint16(31642), + 16: uint16(63998), + 17: uint16(36425), + 18: uint16(36554), + 19: uint16(36974), + 20: uint16(25417), + 21: uint16(25662), + 22: uint16(30528), + 23: uint16(31364), + 24: uint16(37679), + 25: uint16(38015), + 26: uint16(40810), + 27: uint16(25776), + 28: uint16(28591), + 29: uint16(29158), + 30: uint16(29864), + 31: uint16(29914), + 32: uint16(31428), + 33: uint16(31762), + 34: uint16(32386), + 35: uint16(31922), + 36: uint16(32408), + 37: uint16(35738), + 38: uint16(36106), + 39: uint16(38013), + 40: uint16(39184), + 41: uint16(39244), + 42: uint16(21049), + 43: uint16(23519), + 44: uint16(25830), + 45: uint16(26413), + 46: uint16(32046), + 47: uint16(20717), + 48: uint16(21443), + 49: uint16(22649), + 50: uint16(24920), + 51: uint16(24921), + 52: uint16(25082), + 53: uint16(26028), + 54: uint16(31449), + 55: uint16(35730), + 56: uint16(35734), + 57: uint16(20489), + 58: uint16(20513), + 59: uint16(21109), + 60: uint16(21809), + 61: uint16(23100), + 62: uint16(24288), + 63: uint16(24432), + 64: uint16(24884), + 65: uint16(25950), + 66: uint16(26124), + 67: uint16(26166), + 68: uint16(26274), + 69: uint16(27085), + 70: uint16(28356), + 71: uint16(28466), + 72: uint16(29462), + 73: uint16(30241), + 74: uint16(31379), + 75: uint16(33081), + 76: uint16(33369), + 77: uint16(33750), + 78: uint16(33980), + 79: uint16(20661), + 80: uint16(22512), + 81: uint16(23488), + 82: uint16(23528), + 83: uint16(24425), + 84: uint16(25505), + 85: uint16(30758), + 86: uint16(32181), + 87: uint16(33756), + 88: uint16(34081), + 89: uint16(37319), + 90: uint16(37365), + 91: uint16(20874), + 92: uint16(26613), + 93: uint16(31574), + }, + 83: { + 0: uint16(36012), + 1: uint16(20932), + 2: uint16(22971), + 3: uint16(24765), + 4: uint16(34389), + 5: uint16(20508), + 6: uint16(63999), + 7: uint16(21076), + 8: uint16(23610), + 9: uint16(24957), + 10: uint16(25114), + 11: uint16(25299), + 12: uint16(25842), + 13: uint16(26021), + 14: uint16(28364), + 15: uint16(30240), + 16: uint16(33034), + 17: uint16(36448), + 18: uint16(38495), + 19: uint16(38587), + 20: uint16(20191), + 21: uint16(21315), + 22: uint16(21912), + 23: uint16(22825), + 24: uint16(24029), + 25: uint16(25797), + 26: uint16(27849), + 27: uint16(28154), + 28: uint16(29588), + 29: uint16(31359), + 30: uint16(33307), + 31: uint16(34214), + 32: uint16(36068), + 33: uint16(36368), + 34: uint16(36983), + 35: uint16(37351), + 36: uint16(38369), + 37: uint16(38433), + 38: uint16(38854), + 39: uint16(20984), + 40: uint16(21746), + 41: uint16(21894), + 42: uint16(24505), + 43: uint16(25764), + 44: uint16(28552), + 45: uint16(32180), + 46: uint16(36639), + 47: uint16(36685), + 48: uint16(37941), + 49: uint16(20681), + 50: uint16(23574), + 51: uint16(27838), + 52: uint16(28155), + 53: uint16(29979), + 54: uint16(30651), + 55: uint16(31805), + 56: uint16(31844), + 57: uint16(35449), + 58: uint16(35522), + 59: uint16(22558), + 60: uint16(22974), + 61: uint16(24086), + 62: uint16(25463), + 63: uint16(29266), + 64: uint16(30090), + 65: uint16(30571), + 66: uint16(35548), + 67: uint16(36028), + 68: uint16(36626), + 69: uint16(24307), + 70: uint16(26228), + 71: uint16(28152), + 72: uint16(32893), + 73: uint16(33729), + 74: uint16(35531), + 75: uint16(38737), + 76: uint16(39894), + 77: uint16(64000), + 78: uint16(21059), + 79: uint16(26367), + 80: uint16(28053), + 81: uint16(28399), + 82: uint16(32224), + 83: uint16(35558), + 84: uint16(36910), + 85: uint16(36958), + 86: uint16(39636), + 87: uint16(21021), + 88: uint16(21119), + 89: uint16(21736), + 90: uint16(24980), + 91: uint16(25220), + 92: uint16(25307), + 93: uint16(26786), + }, + 84: { + 0: uint16(26898), + 1: uint16(26970), + 2: uint16(27189), + 3: uint16(28818), + 4: uint16(28966), + 5: uint16(30813), + 6: uint16(30977), + 7: uint16(30990), + 8: uint16(31186), + 9: uint16(31245), + 10: uint16(32918), + 11: uint16(33400), + 12: uint16(33493), + 13: uint16(33609), + 14: uint16(34121), + 15: uint16(35970), + 16: uint16(36229), + 17: uint16(37218), + 18: uint16(37259), + 19: uint16(37294), + 20: uint16(20419), + 21: uint16(22225), + 22: uint16(29165), + 23: uint16(30679), + 24: uint16(34560), + 25: uint16(35320), + 26: uint16(23544), + 27: uint16(24534), + 28: uint16(26449), + 29: uint16(37032), + 30: uint16(21474), + 31: uint16(22618), + 32: uint16(23541), + 33: uint16(24740), + 34: uint16(24961), + 35: uint16(25696), + 36: uint16(32317), + 37: uint16(32880), + 38: uint16(34085), + 39: uint16(37507), + 40: uint16(25774), + 41: uint16(20652), + 42: uint16(23828), + 43: uint16(26368), + 44: uint16(22684), + 45: uint16(25277), + 46: uint16(25512), + 47: uint16(26894), + 48: uint16(27000), + 49: uint16(27166), + 50: uint16(28267), + 51: uint16(30394), + 52: uint16(31179), + 53: uint16(33467), + 54: uint16(33833), + 55: uint16(35535), + 56: uint16(36264), + 57: uint16(36861), + 58: uint16(37138), + 59: uint16(37195), + 60: uint16(37276), + 61: uint16(37648), + 62: uint16(37656), + 63: uint16(37786), + 64: uint16(38619), + 65: uint16(39478), + 66: uint16(39949), + 67: uint16(19985), + 68: uint16(30044), + 69: uint16(31069), + 70: uint16(31482), + 71: uint16(31569), + 72: uint16(31689), + 73: uint16(32302), + 74: uint16(33988), + 75: uint16(36441), + 76: uint16(36468), + 77: uint16(36600), + 78: uint16(36880), + 79: uint16(26149), + 80: uint16(26943), + 81: uint16(29763), + 82: uint16(20986), + 83: uint16(26414), + 84: uint16(40668), + 85: uint16(20805), + 86: uint16(24544), + 87: uint16(27798), + 88: uint16(34802), + 89: uint16(34909), + 90: uint16(34935), + 91: uint16(24756), + 92: uint16(33205), + 93: uint16(33795), + }, + 85: { + 0: uint16(36101), + 1: uint16(21462), + 2: uint16(21561), + 3: uint16(22068), + 4: uint16(23094), + 5: uint16(23601), + 6: uint16(28810), + 7: uint16(32736), + 8: uint16(32858), + 9: uint16(33030), + 10: uint16(33261), + 11: uint16(36259), + 12: uint16(37257), + 13: uint16(39519), + 14: uint16(40434), + 15: uint16(20596), + 16: uint16(20164), + 17: uint16(21408), + 18: uint16(24827), + 19: uint16(28204), + 20: uint16(23652), + 21: uint16(20360), + 22: uint16(20516), + 23: uint16(21988), + 24: uint16(23769), + 25: uint16(24159), + 26: uint16(24677), + 27: uint16(26772), + 28: uint16(27835), + 29: uint16(28100), + 30: uint16(29118), + 31: uint16(30164), + 32: uint16(30196), + 33: uint16(30305), + 34: uint16(31258), + 35: uint16(31305), + 36: uint16(32199), + 37: uint16(32251), + 38: uint16(32622), + 39: uint16(33268), + 40: uint16(34473), + 41: uint16(36636), + 42: uint16(38601), + 43: uint16(39347), + 44: uint16(40786), + 45: uint16(21063), + 46: uint16(21189), + 47: uint16(39149), + 48: uint16(35242), + 49: uint16(19971), + 50: uint16(26578), + 51: uint16(28422), + 52: uint16(20405), + 53: uint16(23522), + 54: uint16(26517), + 55: uint16(27784), + 56: uint16(28024), + 57: uint16(29723), + 58: uint16(30759), + 59: uint16(37341), + 60: uint16(37756), + 61: uint16(34756), + 62: uint16(31204), + 63: uint16(31281), + 64: uint16(24555), + 65: uint16(20182), + 66: uint16(21668), + 67: uint16(21822), + 68: uint16(22702), + 69: uint16(22949), + 70: uint16(24816), + 71: uint16(25171), + 72: uint16(25302), + 73: uint16(26422), + 74: uint16(26965), + 75: uint16(33333), + 76: uint16(38464), + 77: uint16(39345), + 78: uint16(39389), + 79: uint16(20524), + 80: uint16(21331), + 81: uint16(21828), + 82: uint16(22396), + 83: uint16(64001), + 84: uint16(25176), + 85: uint16(64002), + 86: uint16(25826), + 87: uint16(26219), + 88: uint16(26589), + 89: uint16(28609), + 90: uint16(28655), + 91: uint16(29730), + 92: uint16(29752), + 93: uint16(35351), + }, + 86: { + 0: uint16(37944), + 1: uint16(21585), + 2: uint16(22022), + 3: uint16(22374), + 4: uint16(24392), + 5: uint16(24986), + 6: uint16(27470), + 7: uint16(28760), + 8: uint16(28845), + 9: uint16(32187), + 10: uint16(35477), + 11: uint16(22890), + 12: uint16(33067), + 13: uint16(25506), + 14: uint16(30472), + 15: uint16(32829), + 16: uint16(36010), + 17: uint16(22612), + 18: uint16(25645), + 19: uint16(27067), + 20: uint16(23445), + 21: uint16(24081), + 22: uint16(28271), + 23: uint16(64003), + 24: uint16(34153), + 25: uint16(20812), + 26: uint16(21488), + 27: uint16(22826), + 28: uint16(24608), + 29: uint16(24907), + 30: uint16(27526), + 31: uint16(27760), + 32: uint16(27888), + 33: uint16(31518), + 34: uint16(32974), + 35: uint16(33492), + 36: uint16(36294), + 37: uint16(37040), + 38: uint16(39089), + 39: uint16(64004), + 40: uint16(25799), + 41: uint16(28580), + 42: uint16(25745), + 43: uint16(25860), + 44: uint16(20814), + 45: uint16(21520), + 46: uint16(22303), + 47: uint16(35342), + 48: uint16(24927), + 49: uint16(26742), + 50: uint16(64005), + 51: uint16(30171), + 52: uint16(31570), + 53: uint16(32113), + 54: uint16(36890), + 55: uint16(22534), + 56: uint16(27084), + 57: uint16(33151), + 58: uint16(35114), + 59: uint16(36864), + 60: uint16(38969), + 61: uint16(20600), + 62: uint16(22871), + 63: uint16(22956), + 64: uint16(25237), + 65: uint16(36879), + 66: uint16(39722), + 67: uint16(24925), + 68: uint16(29305), + 69: uint16(38358), + 70: uint16(22369), + 71: uint16(23110), + 72: uint16(24052), + 73: uint16(25226), + 74: uint16(25773), + 75: uint16(25850), + 76: uint16(26487), + 77: uint16(27874), + 78: uint16(27966), + 79: uint16(29228), + 80: uint16(29750), + 81: uint16(30772), + 82: uint16(32631), + 83: uint16(33453), + 84: uint16(36315), + 85: uint16(38935), + 86: uint16(21028), + 87: uint16(22338), + 88: uint16(26495), + 89: uint16(29256), + 90: uint16(29923), + 91: uint16(36009), + 92: uint16(36774), + 93: uint16(37393), + }, + 87: { + 0: uint16(38442), + 1: uint16(20843), + 2: uint16(21485), + 3: uint16(25420), + 4: uint16(20329), + 5: uint16(21764), + 6: uint16(24726), + 7: uint16(25943), + 8: uint16(27803), + 9: uint16(28031), + 10: uint16(29260), + 11: uint16(29437), + 12: uint16(31255), + 13: uint16(35207), + 14: uint16(35997), + 15: uint16(24429), + 16: uint16(28558), + 17: uint16(28921), + 18: uint16(33192), + 19: uint16(24846), + 20: uint16(20415), + 21: uint16(20559), + 22: uint16(25153), + 23: uint16(29255), + 24: uint16(31687), + 25: uint16(32232), + 26: uint16(32745), + 27: uint16(36941), + 28: uint16(38829), + 29: uint16(39449), + 30: uint16(36022), + 31: uint16(22378), + 32: uint16(24179), + 33: uint16(26544), + 34: uint16(33805), + 35: uint16(35413), + 36: uint16(21536), + 37: uint16(23318), + 38: uint16(24163), + 39: uint16(24290), + 40: uint16(24330), + 41: uint16(25987), + 42: uint16(32954), + 43: uint16(34109), + 44: uint16(38281), + 45: uint16(38491), + 46: uint16(20296), + 47: uint16(21253), + 48: uint16(21261), + 49: uint16(21263), + 50: uint16(21638), + 51: uint16(21754), + 52: uint16(22275), + 53: uint16(24067), + 54: uint16(24598), + 55: uint16(25243), + 56: uint16(25265), + 57: uint16(25429), + 58: uint16(64006), + 59: uint16(27873), + 60: uint16(28006), + 61: uint16(30129), + 62: uint16(30770), + 63: uint16(32990), + 64: uint16(33071), + 65: uint16(33502), + 66: uint16(33889), + 67: uint16(33970), + 68: uint16(34957), + 69: uint16(35090), + 70: uint16(36875), + 71: uint16(37610), + 72: uint16(39165), + 73: uint16(39825), + 74: uint16(24133), + 75: uint16(26292), + 76: uint16(26333), + 77: uint16(28689), + 78: uint16(29190), + 79: uint16(64007), + 80: uint16(20469), + 81: uint16(21117), + 82: uint16(24426), + 83: uint16(24915), + 84: uint16(26451), + 85: uint16(27161), + 86: uint16(28418), + 87: uint16(29922), + 88: uint16(31080), + 89: uint16(34920), + 90: uint16(35961), + 91: uint16(39111), + 92: uint16(39108), + 93: uint16(39491), + }, + 88: { + 0: uint16(21697), + 1: uint16(31263), + 2: uint16(26963), + 3: uint16(35575), + 4: uint16(35914), + 5: uint16(39080), + 6: uint16(39342), + 7: uint16(24444), + 8: uint16(25259), + 9: uint16(30130), + 10: uint16(30382), + 11: uint16(34987), + 12: uint16(36991), + 13: uint16(38466), + 14: uint16(21305), + 15: uint16(24380), + 16: uint16(24517), + 17: uint16(27852), + 18: uint16(29644), + 19: uint16(30050), + 20: uint16(30091), + 21: uint16(31558), + 22: uint16(33534), + 23: uint16(39325), + 24: uint16(20047), + 25: uint16(36924), + 26: uint16(19979), + 27: uint16(20309), + 28: uint16(21414), + 29: uint16(22799), + 30: uint16(24264), + 31: uint16(26160), + 32: uint16(27827), + 33: uint16(29781), + 34: uint16(33655), + 35: uint16(34662), + 36: uint16(36032), + 37: uint16(36944), + 38: uint16(38686), + 39: uint16(39957), + 40: uint16(22737), + 41: uint16(23416), + 42: uint16(34384), + 43: uint16(35604), + 44: uint16(40372), + 45: uint16(23506), + 46: uint16(24680), + 47: uint16(24717), + 48: uint16(26097), + 49: uint16(27735), + 50: uint16(28450), + 51: uint16(28579), + 52: uint16(28698), + 53: uint16(32597), + 54: uint16(32752), + 55: uint16(38289), + 56: uint16(38290), + 57: uint16(38480), + 58: uint16(38867), + 59: uint16(21106), + 60: uint16(36676), + 61: uint16(20989), + 62: uint16(21547), + 63: uint16(21688), + 64: uint16(21859), + 65: uint16(21898), + 66: uint16(27323), + 67: uint16(28085), + 68: uint16(32216), + 69: uint16(33382), + 70: uint16(37532), + 71: uint16(38519), + 72: uint16(40569), + 73: uint16(21512), + 74: uint16(21704), + 75: uint16(30418), + 76: uint16(34532), + 77: uint16(38308), + 78: uint16(38356), + 79: uint16(38492), + 80: uint16(20130), + 81: uint16(20233), + 82: uint16(23022), + 83: uint16(23270), + 84: uint16(24055), + 85: uint16(24658), + 86: uint16(25239), + 87: uint16(26477), + 88: uint16(26689), + 89: uint16(27782), + 90: uint16(28207), + 91: uint16(32568), + 92: uint16(32923), + 93: uint16(33322), + }, + 89: { + 0: uint16(64008), + 1: uint16(64009), + 2: uint16(38917), + 3: uint16(20133), + 4: uint16(20565), + 5: uint16(21683), + 6: uint16(22419), + 7: uint16(22874), + 8: uint16(23401), + 9: uint16(23475), + 10: uint16(25032), + 11: uint16(26999), + 12: uint16(28023), + 13: uint16(28707), + 14: uint16(34809), + 15: uint16(35299), + 16: uint16(35442), + 17: uint16(35559), + 18: uint16(36994), + 19: uint16(39405), + 20: uint16(39608), + 21: uint16(21182), + 22: uint16(26680), + 23: uint16(20502), + 24: uint16(24184), + 25: uint16(26447), + 26: uint16(33607), + 27: uint16(34892), + 28: uint16(20139), + 29: uint16(21521), + 30: uint16(22190), + 31: uint16(29670), + 32: uint16(37141), + 33: uint16(38911), + 34: uint16(39177), + 35: uint16(39255), + 36: uint16(39321), + 37: uint16(22099), + 38: uint16(22687), + 39: uint16(34395), + 40: uint16(35377), + 41: uint16(25010), + 42: uint16(27382), + 43: uint16(29563), + 44: uint16(36562), + 45: uint16(27463), + 46: uint16(38570), + 47: uint16(39511), + 48: uint16(22869), + 49: uint16(29184), + 50: uint16(36203), + 51: uint16(38761), + 52: uint16(20436), + 53: uint16(23796), + 54: uint16(24358), + 55: uint16(25080), + 56: uint16(26203), + 57: uint16(27883), + 58: uint16(28843), + 59: uint16(29572), + 60: uint16(29625), + 61: uint16(29694), + 62: uint16(30505), + 63: uint16(30541), + 64: uint16(32067), + 65: uint16(32098), + 66: uint16(32291), + 67: uint16(33335), + 68: uint16(34898), + 69: uint16(64010), + 70: uint16(36066), + 71: uint16(37449), + 72: uint16(39023), + 73: uint16(23377), + 74: uint16(31348), + 75: uint16(34880), + 76: uint16(38913), + 77: uint16(23244), + 78: uint16(20448), + 79: uint16(21332), + 80: uint16(22846), + 81: uint16(23805), + 82: uint16(25406), + 83: uint16(28025), + 84: uint16(29433), + 85: uint16(33029), + 86: uint16(33031), + 87: uint16(33698), + 88: uint16(37583), + 89: uint16(38960), + 90: uint16(20136), + 91: uint16(20804), + 92: uint16(21009), + 93: uint16(22411), + }, + 90: { + 0: uint16(24418), + 1: uint16(27842), + 2: uint16(28366), + 3: uint16(28677), + 4: uint16(28752), + 5: uint16(28847), + 6: uint16(29074), + 7: uint16(29673), + 8: uint16(29801), + 9: uint16(33610), + 10: uint16(34722), + 11: uint16(34913), + 12: uint16(36872), + 13: uint16(37026), + 14: uint16(37795), + 15: uint16(39336), + 16: uint16(20846), + 17: uint16(24407), + 18: uint16(24800), + 19: uint16(24935), + 20: uint16(26291), + 21: uint16(34137), + 22: uint16(36426), + 23: uint16(37295), + 24: uint16(38795), + 25: uint16(20046), + 26: uint16(20114), + 27: uint16(21628), + 28: uint16(22741), + 29: uint16(22778), + 30: uint16(22909), + 31: uint16(23733), + 32: uint16(24359), + 33: uint16(25142), + 34: uint16(25160), + 35: uint16(26122), + 36: uint16(26215), + 37: uint16(27627), + 38: uint16(28009), + 39: uint16(28111), + 40: uint16(28246), + 41: uint16(28408), + 42: uint16(28564), + 43: uint16(28640), + 44: uint16(28649), + 45: uint16(28765), + 46: uint16(29392), + 47: uint16(29733), + 48: uint16(29786), + 49: uint16(29920), + 50: uint16(30355), + 51: uint16(31068), + 52: uint16(31946), + 53: uint16(32286), + 54: uint16(32993), + 55: uint16(33446), + 56: uint16(33899), + 57: uint16(33983), + 58: uint16(34382), + 59: uint16(34399), + 60: uint16(34676), + 61: uint16(35703), + 62: uint16(35946), + 63: uint16(37804), + 64: uint16(38912), + 65: uint16(39013), + 66: uint16(24785), + 67: uint16(25110), + 68: uint16(37239), + 69: uint16(23130), + 70: uint16(26127), + 71: uint16(28151), + 72: uint16(28222), + 73: uint16(29759), + 74: uint16(39746), + 75: uint16(24573), + 76: uint16(24794), + 77: uint16(31503), + 78: uint16(21700), + 79: uint16(24344), + 80: uint16(27742), + 81: uint16(27859), + 82: uint16(27946), + 83: uint16(28888), + 84: uint16(32005), + 85: uint16(34425), + 86: uint16(35340), + 87: uint16(40251), + 88: uint16(21270), + 89: uint16(21644), + 90: uint16(23301), + 91: uint16(27194), + 92: uint16(28779), + 93: uint16(30069), + }, + 91: { + 0: uint16(31117), + 1: uint16(31166), + 2: uint16(33457), + 3: uint16(33775), + 4: uint16(35441), + 5: uint16(35649), + 6: uint16(36008), + 7: uint16(38772), + 8: uint16(64011), + 9: uint16(25844), + 10: uint16(25899), + 11: uint16(30906), + 12: uint16(30907), + 13: uint16(31339), + 14: uint16(20024), + 15: uint16(21914), + 16: uint16(22864), + 17: uint16(23462), + 18: uint16(24187), + 19: uint16(24739), + 20: uint16(25563), + 21: uint16(27489), + 22: uint16(26213), + 23: uint16(26707), + 24: uint16(28185), + 25: uint16(29029), + 26: uint16(29872), + 27: uint16(32008), + 28: uint16(36996), + 29: uint16(39529), + 30: uint16(39973), + 31: uint16(27963), + 32: uint16(28369), + 33: uint16(29502), + 34: uint16(35905), + 35: uint16(38346), + 36: uint16(20976), + 37: uint16(24140), + 38: uint16(24488), + 39: uint16(24653), + 40: uint16(24822), + 41: uint16(24880), + 42: uint16(24908), + 43: uint16(26179), + 44: uint16(26180), + 45: uint16(27045), + 46: uint16(27841), + 47: uint16(28255), + 48: uint16(28361), + 49: uint16(28514), + 50: uint16(29004), + 51: uint16(29852), + 52: uint16(30343), + 53: uint16(31681), + 54: uint16(31783), + 55: uint16(33618), + 56: uint16(34647), + 57: uint16(36945), + 58: uint16(38541), + 59: uint16(40643), + 60: uint16(21295), + 61: uint16(22238), + 62: uint16(24315), + 63: uint16(24458), + 64: uint16(24674), + 65: uint16(24724), + 66: uint16(25079), + 67: uint16(26214), + 68: uint16(26371), + 69: uint16(27292), + 70: uint16(28142), + 71: uint16(28590), + 72: uint16(28784), + 73: uint16(29546), + 74: uint16(32362), + 75: uint16(33214), + 76: uint16(33588), + 77: uint16(34516), + 78: uint16(35496), + 79: uint16(36036), + 80: uint16(21123), + 81: uint16(29554), + 82: uint16(23446), + 83: uint16(27243), + 84: uint16(37892), + 85: uint16(21742), + 86: uint16(22150), + 87: uint16(23389), + 88: uint16(25928), + 89: uint16(25989), + 90: uint16(26313), + 91: uint16(26783), + 92: uint16(28045), + 93: uint16(28102), + }, + 92: { + 0: uint16(29243), + 1: uint16(32948), + 2: uint16(37237), + 3: uint16(39501), + 4: uint16(20399), + 5: uint16(20505), + 6: uint16(21402), + 7: uint16(21518), + 8: uint16(21564), + 9: uint16(21897), + 10: uint16(21957), + 11: uint16(24127), + 12: uint16(24460), + 13: uint16(26429), + 14: uint16(29030), + 15: uint16(29661), + 16: uint16(36869), + 17: uint16(21211), + 18: uint16(21235), + 19: uint16(22628), + 20: uint16(22734), + 21: uint16(28932), + 22: uint16(29071), + 23: uint16(29179), + 24: uint16(34224), + 25: uint16(35347), + 26: uint16(26248), + 27: uint16(34216), + 28: uint16(21927), + 29: uint16(26244), + 30: uint16(29002), + 31: uint16(33841), + 32: uint16(21321), + 33: uint16(21913), + 34: uint16(27585), + 35: uint16(24409), + 36: uint16(24509), + 37: uint16(25582), + 38: uint16(26249), + 39: uint16(28999), + 40: uint16(35569), + 41: uint16(36637), + 42: uint16(40638), + 43: uint16(20241), + 44: uint16(25658), + 45: uint16(28875), + 46: uint16(30054), + 47: uint16(34407), + 48: uint16(24676), + 49: uint16(35662), + 50: uint16(40440), + 51: uint16(20807), + 52: uint16(20982), + 53: uint16(21256), + 54: uint16(27958), + 55: uint16(33016), + 56: uint16(40657), + 57: uint16(26133), + 58: uint16(27427), + 59: uint16(28824), + 60: uint16(30165), + 61: uint16(21507), + 62: uint16(23673), + 63: uint16(32007), + 64: uint16(35350), + 65: uint16(27424), + 66: uint16(27453), + 67: uint16(27462), + 68: uint16(21560), + 69: uint16(24688), + 70: uint16(27965), + 71: uint16(32725), + 72: uint16(33288), + 73: uint16(20694), + 74: uint16(20958), + 75: uint16(21916), + 76: uint16(22123), + 77: uint16(22221), + 78: uint16(23020), + 79: uint16(23305), + 80: uint16(24076), + 81: uint16(24985), + 82: uint16(24984), + 83: uint16(25137), + 84: uint16(26206), + 85: uint16(26342), + 86: uint16(29081), + 87: uint16(29113), + 88: uint16(29114), + 89: uint16(29351), + 90: uint16(31143), + 91: uint16(31232), + 92: uint16(32690), + 93: uint16(35440), + }, +} + +var _rev_jis = [6879]uint16{ + 0: uint16(31), + 1: uint16(80), + 2: uint16(81), + 3: uint16(87), + 4: uint16(14), + 5: uint16(299), + 6: uint16(74), + 7: uint16(61), + 8: uint16(12), + 9: uint16(344), + 10: uint16(62), + 11: uint16(63), + 12: uint16(1280), + 13: uint16(1281), + 14: uint16(1282), + 15: uint16(1283), + 16: uint16(1284), + 17: uint16(1285), + 18: uint16(1286), + 19: uint16(1287), + 20: uint16(1288), + 21: uint16(1289), + 22: uint16(1290), + 23: uint16(1291), + 24: uint16(1292), + 25: uint16(1293), + 26: uint16(1294), + 27: uint16(1295), + 28: uint16(1296), + 29: uint16(1297), + 30: uint16(1298), + 31: uint16(1299), + 32: uint16(1300), + 33: uint16(1301), + 34: uint16(1302), + 35: uint16(1303), + 36: uint16(1312), + 37: uint16(1313), + 38: uint16(1314), + 39: uint16(1315), + 40: uint16(1316), + 41: uint16(1317), + 42: uint16(1318), + 43: uint16(1319), + 44: uint16(1320), + 45: uint16(1321), + 46: uint16(1322), + 47: uint16(1323), + 48: uint16(1324), + 49: uint16(1325), + 50: uint16(1326), + 51: uint16(1327), + 52: uint16(1328), + 53: uint16(1329), + 54: uint16(1330), + 55: uint16(1331), + 56: uint16(1332), + 57: uint16(1333), + 58: uint16(1334), + 59: uint16(1335), + 60: uint16(1542), + 61: uint16(1536), + 62: uint16(1537), + 63: uint16(1538), + 64: uint16(1539), + 65: uint16(1540), + 66: uint16(1541), + 67: uint16(1543), + 68: uint16(1544), + 69: uint16(1545), + 70: uint16(1546), + 71: uint16(1547), + 72: uint16(1548), + 73: uint16(1549), + 74: uint16(1550), + 75: uint16(1551), + 76: uint16(1552), + 77: uint16(1553), + 78: uint16(1554), + 79: uint16(1555), + 80: uint16(1556), + 81: uint16(1557), + 82: uint16(1558), + 83: uint16(1559), + 84: uint16(1560), + 85: uint16(1561), + 86: uint16(1562), + 87: uint16(1563), + 88: uint16(1564), + 89: uint16(1565), + 90: uint16(1566), + 91: uint16(1567), + 92: uint16(1568), + 93: uint16(1584), + 94: uint16(1585), + 95: uint16(1586), + 96: uint16(1587), + 97: uint16(1588), + 98: uint16(1589), + 99: uint16(1591), + 100: uint16(1592), + 101: uint16(1593), + 102: uint16(1594), + 103: uint16(1595), + 104: uint16(1596), + 105: uint16(1597), + 106: uint16(1598), + 107: uint16(1599), + 108: uint16(1600), + 109: uint16(1601), + 110: uint16(1602), + 111: uint16(1603), + 112: uint16(1604), + 113: uint16(1605), + 114: uint16(1606), + 115: uint16(1607), + 116: uint16(1608), + 117: uint16(1609), + 118: uint16(1610), + 119: uint16(1611), + 120: uint16(1612), + 121: uint16(1613), + 122: uint16(1614), + 123: uint16(1615), + 124: uint16(1616), + 125: uint16(1590), + 126: uint16(29), + 127: uint16(28), + 128: uint16(33), + 129: uint16(37), + 130: uint16(38), + 131: uint16(39), + 132: uint16(40), + 133: uint16(342), + 134: uint16(343), + 135: uint16(36), + 136: uint16(35), + 137: uint16(338), + 138: uint16(75), + 139: uint16(76), + 140: uint16(263), + 141: uint16(77), + 142: uint16(337), + 143: uint16(266), + 144: uint16(267), + 145: uint16(265), + 146: uint16(268), + 147: uint16(300), + 148: uint16(301), + 149: uint16(302), + 150: uint16(318), + 151: uint16(303), + 152: uint16(319), + 153: uint16(281), + 154: uint16(282), + 155: uint16(60), + 156: uint16(324), + 157: uint16(326), + 158: uint16(70), + 159: uint16(315), + 160: uint16(297), + 161: uint16(298), + 162: uint16(288), + 163: uint16(287), + 164: uint16(328), + 165: uint16(329), + 166: uint16(71), + 167: uint16(327), + 168: uint16(325), + 169: uint16(321), + 170: uint16(65), + 171: uint16(320), + 172: uint16(68), + 173: uint16(69), + 174: uint16(322), + 175: uint16(323), + 176: uint16(285), + 177: uint16(286), + 178: uint16(283), + 179: uint16(284), + 180: uint16(316), + 181: uint16(317), + 182: uint16(1792), + 183: uint16(1803), + 184: uint16(1793), + 185: uint16(1804), + 186: uint16(1794), + 187: uint16(1805), + 188: uint16(1795), + 189: uint16(1806), + 190: uint16(1797), + 191: uint16(1808), + 192: uint16(1796), + 193: uint16(1807), + 194: uint16(1798), + 195: uint16(1819), + 196: uint16(1814), + 197: uint16(1809), + 198: uint16(1800), + 199: uint16(1821), + 200: uint16(1816), + 201: uint16(1811), + 202: uint16(1799), + 203: uint16(1815), + 204: uint16(1820), + 205: uint16(1810), + 206: uint16(1801), + 207: uint16(1817), + 208: uint16(1822), + 209: uint16(1812), + 210: uint16(1802), + 211: uint16(1818), + 212: uint16(1823), + 213: uint16(1813), + 214: uint16(258), + 215: uint16(257), + 216: uint16(260), + 217: uint16(259), + 218: uint16(262), + 219: uint16(261), + 220: uint16(256), + 221: uint16(93), + 222: uint16(90), + 223: uint16(92), + 224: uint16(91), + 225: uint16(349), + 226: uint16(89), + 227: uint16(88), + 228: uint16(73), + 229: uint16(72), + 230: uint16(341), + 231: uint16(340), + 232: uint16(339), + 234: uint16(1), + 235: uint16(2), + 236: uint16(22), + 237: uint16(24), + 238: uint16(25), + 239: uint16(26), + 240: uint16(49), + 241: uint16(50), + 242: uint16(51), + 243: uint16(52), + 244: uint16(53), + 245: uint16(54), + 246: uint16(55), + 247: uint16(56), + 248: uint16(57), + 249: uint16(58), + 250: uint16(264), + 251: uint16(269), + 252: uint16(43), + 253: uint16(44), + 254: uint16(32), + 255: uint16(768), + 256: uint16(769), + 257: uint16(770), + 258: uint16(771), + 259: uint16(772), + 260: uint16(773), + 261: uint16(774), + 262: uint16(775), + 263: uint16(776), + 264: uint16(777), + 265: uint16(778), + 266: uint16(779), + 267: uint16(780), + 268: uint16(781), + 269: uint16(782), + 270: uint16(783), + 271: uint16(784), + 272: uint16(785), + 273: uint16(786), + 274: uint16(787), + 275: uint16(788), + 276: uint16(789), + 277: uint16(790), + 278: uint16(791), + 279: uint16(792), + 280: uint16(793), + 281: uint16(794), + 282: uint16(795), + 283: uint16(796), + 284: uint16(797), + 285: uint16(798), + 286: uint16(799), + 287: uint16(800), + 288: uint16(801), + 289: uint16(802), + 290: uint16(803), + 291: uint16(804), + 292: uint16(805), + 293: uint16(806), + 294: uint16(807), + 295: uint16(808), + 296: uint16(809), + 297: uint16(810), + 298: uint16(811), + 299: uint16(812), + 300: uint16(813), + 301: uint16(814), + 302: uint16(815), + 303: uint16(816), + 304: uint16(817), + 305: uint16(818), + 306: uint16(819), + 307: uint16(820), + 308: uint16(821), + 309: uint16(822), + 310: uint16(823), + 311: uint16(824), + 312: uint16(825), + 313: uint16(826), + 314: uint16(827), + 315: uint16(828), + 316: uint16(829), + 317: uint16(830), + 318: uint16(831), + 319: uint16(832), + 320: uint16(833), + 321: uint16(834), + 322: uint16(835), + 323: uint16(836), + 324: uint16(837), + 325: uint16(838), + 326: uint16(839), + 327: uint16(840), + 328: uint16(841), + 329: uint16(842), + 330: uint16(843), + 331: uint16(844), + 332: uint16(845), + 333: uint16(846), + 334: uint16(847), + 335: uint16(848), + 336: uint16(849), + 337: uint16(850), + 338: uint16(10), + 339: uint16(11), + 340: uint16(20), + 341: uint16(21), + 342: uint16(1024), + 343: uint16(1025), + 344: uint16(1026), + 345: uint16(1027), + 346: uint16(1028), + 347: uint16(1029), + 348: uint16(1030), + 349: uint16(1031), + 350: uint16(1032), + 351: uint16(1033), + 352: uint16(1034), + 353: uint16(1035), + 354: uint16(1036), + 355: uint16(1037), + 356: uint16(1038), + 357: uint16(1039), + 358: uint16(1040), + 359: uint16(1041), + 360: uint16(1042), + 361: uint16(1043), + 362: uint16(1044), + 363: uint16(1045), + 364: uint16(1046), + 365: uint16(1047), + 366: uint16(1048), + 367: uint16(1049), + 368: uint16(1050), + 369: uint16(1051), + 370: uint16(1052), + 371: uint16(1053), + 372: uint16(1054), + 373: uint16(1055), + 374: uint16(1056), + 375: uint16(1057), + 376: uint16(1058), + 377: uint16(1059), + 378: uint16(1060), + 379: uint16(1061), + 380: uint16(1062), + 381: uint16(1063), + 382: uint16(1064), + 383: uint16(1065), + 384: uint16(1066), + 385: uint16(1067), + 386: uint16(1068), + 387: uint16(1069), + 388: uint16(1070), + 389: uint16(1071), + 390: uint16(1072), + 391: uint16(1073), + 392: uint16(1074), + 393: uint16(1075), + 394: uint16(1076), + 395: uint16(1077), + 396: uint16(1078), + 397: uint16(1079), + 398: uint16(1080), + 399: uint16(1081), + 400: uint16(1082), + 401: uint16(1083), + 402: uint16(1084), + 403: uint16(1085), + 404: uint16(1086), + 405: uint16(1087), + 406: uint16(1088), + 407: uint16(1089), + 408: uint16(1090), + 409: uint16(1091), + 410: uint16(1092), + 411: uint16(1093), + 412: uint16(1094), + 413: uint16(1095), + 414: uint16(1096), + 415: uint16(1097), + 416: uint16(1098), + 417: uint16(1099), + 418: uint16(1100), + 419: uint16(1101), + 420: uint16(1102), + 421: uint16(1103), + 422: uint16(1104), + 423: uint16(1105), + 424: uint16(1106), + 425: uint16(1107), + 426: uint16(1108), + 427: uint16(1109), + 428: uint16(5), + 429: uint16(27), + 430: uint16(18), + 431: uint16(19), + 432: uint16(3915), + 433: uint16(8793), + 434: uint16(6934), + 435: uint16(10843), + 436: uint16(7493), + 437: uint16(6671), + 438: uint16(7492), + 439: uint16(4379), + 440: uint16(10291), + 441: uint16(11294), + 442: uint16(12033), + 443: uint16(4110), + 444: uint16(4685), + 445: uint16(12034), + 446: uint16(7939), + 447: uint16(12577), + 448: uint16(5173), + 449: uint16(10521), + 450: uint16(7494), + 451: uint16(11549), + 452: uint16(10529), + 453: uint16(12035), + 454: uint16(8773), + 455: uint16(12036), + 456: uint16(5465), + 457: uint16(12037), + 458: uint16(4924), + 459: uint16(8719), + 460: uint16(6982), + 461: uint16(12038), + 462: uint16(12039), + 463: uint16(12040), + 464: uint16(9748), + 465: uint16(5174), + 466: uint16(9750), + 467: uint16(9538), + 468: uint16(5922), + 469: uint16(10770), + 470: uint16(18472), + 471: uint16(12041), + 472: uint16(7495), + 473: uint16(12042), + 474: uint16(4372), + 475: uint16(5444), + 476: uint16(5967), + 477: uint16(11080), + 478: uint16(13573), + 479: uint16(11343), + 480: uint16(9564), + 481: uint16(4868), + 482: uint16(5140), + 483: uint16(12043), + 484: uint16(12044), + 485: uint16(11546), + 486: uint16(11292), + 487: uint16(8263), + 488: uint16(12046), + 489: uint16(6741), + 490: uint16(9554), + 491: uint16(12049), + 492: uint16(4125), + 493: uint16(5950), + 494: uint16(5949), + 495: uint16(3909), + 496: uint16(11818), + 497: uint16(11817), + 498: uint16(6418), + 499: uint16(3840), + 500: uint16(12050), + 501: uint16(12051), + 502: uint16(12052), + 503: uint16(10771), + 504: uint16(12053), + 505: uint16(5969), + 506: uint16(3910), + 507: uint16(10833), + 508: uint16(5211), + 509: uint16(5212), + 510: uint16(5213), + 511: uint16(9025), + 512: uint16(11547), + 513: uint16(12054), + 514: uint16(12055), + 515: uint16(12056), + 516: uint16(7724), + 517: uint16(7193), + 518: uint16(7725), + 519: uint16(12061), + 520: uint16(12059), + 521: uint16(12060), + 522: uint16(5175), + 523: uint16(6402), + 524: uint16(4431), + 525: uint16(12058), + 526: uint16(12057), + 527: uint16(10504), + 528: uint16(6693), + 529: uint16(6692), + 530: uint16(8477), + 531: uint16(12062), + 532: uint16(10292), + 533: uint16(8006), + 534: uint16(23), + 535: uint16(12063), + 536: uint16(12065), + 537: uint16(8516), + 538: uint16(11584), + 539: uint16(3881), + 540: uint16(12064), + 541: uint16(4381), + 542: uint16(5411), + 543: uint16(8774), + 544: uint16(5710), + 545: uint16(12066), + 546: uint16(9731), + 547: uint16(4938), + 548: uint16(12067), + 549: uint16(3882), + 550: uint16(5951), + 551: uint16(4939), + 552: uint16(10329), + 553: uint16(10001), + 554: uint16(5176), + 555: uint16(4432), + 556: uint16(12102), + 557: uint16(9248), + 558: uint16(9803), + 559: uint16(12069), + 560: uint16(10011), + 561: uint16(11585), + 562: uint16(7692), + 563: uint16(6694), + 564: uint16(6742), + 565: uint16(4383), + 566: uint16(9008), + 567: uint16(8705), + 568: uint16(12073), + 569: uint16(3883), + 570: uint16(9026), + 571: uint16(7194), + 572: uint16(6419), + 573: uint16(11267), + 574: uint16(8493), + 575: uint16(4382), + 576: uint16(12072), + 577: uint16(11293), + 578: uint16(12068), + 579: uint16(12070), + 580: uint16(6477), + 581: uint16(12071), + 582: uint16(13315), + 583: uint16(12079), + 584: uint16(12082), + 585: uint16(12080), + 586: uint16(4385), + 587: uint16(10522), + 588: uint16(12074), + 589: uint16(12078), + 590: uint16(5970), + 591: uint16(6695), + 592: uint16(4869), + 593: uint16(12083), + 594: uint16(12075), + 595: uint16(11586), + 596: uint16(6743), + 597: uint16(12076), + 598: uint16(12081), + 599: uint16(12084), + 600: uint16(12077), + 601: uint16(5376), + 602: uint16(3884), + 603: uint16(5377), + 604: uint16(4384), + 605: uint16(13316), + 606: uint16(10840), + 607: uint16(10317), + 608: uint16(5971), + 609: uint16(7694), + 610: uint16(11542), + 611: uint16(10551), + 612: uint16(5655), + 613: uint16(8452), + 614: uint16(4419), + 615: uint16(7218), + 616: uint16(12088), + 617: uint16(12093), + 618: uint16(12091), + 619: uint16(12086), + 620: uint16(8462), + 621: uint16(12089), + 622: uint16(12092), + 623: uint16(12090), + 624: uint16(10556), + 625: uint16(12087), + 626: uint16(7693), + 627: uint16(10834), + 628: uint16(12094), + 629: uint16(12095), + 630: uint16(7171), + 631: uint16(12108), + 632: uint16(9775), + 633: uint16(10261), + 634: uint16(12103), + 635: uint16(10575), + 636: uint16(4373), + 637: uint16(12107), + 638: uint16(12101), + 639: uint16(12110), + 640: uint16(8241), + 641: uint16(5923), + 642: uint16(9787), + 643: uint16(16166), + 644: uint16(12109), + 645: uint16(9276), + 646: uint16(12098), + 647: uint16(5973), + 648: uint16(5972), + 649: uint16(12096), + 650: uint16(6969), + 651: uint16(12104), + 652: uint16(10574), + 653: uint16(8748), + 654: uint16(12100), + 655: uint16(5712), + 656: uint16(12097), + 657: uint16(12105), + 658: uint16(12099), + 659: uint16(11568), + 660: uint16(12106), + 661: uint16(11808), + 662: uint16(5445), + 663: uint16(5711), + 664: uint16(12111), + 665: uint16(12112), + 666: uint16(12116), + 667: uint16(3885), + 668: uint16(10543), + 669: uint16(12115), + 670: uint16(12114), + 671: uint16(12118), + 672: uint16(12117), + 673: uint16(9027), + 674: uint16(5713), + 675: uint16(12119), + 676: uint16(6948), + 677: uint16(8453), + 678: uint16(9028), + 679: uint16(5461), + 680: uint16(12120), + 681: uint16(5141), + 682: uint16(12121), + 683: uint16(12123), + 684: uint16(10772), + 685: uint16(5701), + 686: uint16(6672), + 687: uint16(10070), + 688: uint16(12122), + 689: uint16(6436), + 690: uint16(11298), + 691: uint16(12125), + 692: uint16(12290), + 693: uint16(12124), + 694: uint16(6435), + 695: uint16(7260), + 696: uint16(5656), + 697: uint16(12291), + 698: uint16(5422), + 699: uint16(12288), + 700: uint16(12289), + 701: uint16(9486), + 702: uint16(8283), + 703: uint16(5378), + 704: uint16(10796), + 705: uint16(12292), + 706: uint16(11548), + 707: uint16(12293), + 708: uint16(12296), + 709: uint16(12294), + 710: uint16(8237), + 711: uint16(12295), + 712: uint16(12297), + 713: uint16(12299), + 714: uint16(12298), + 715: uint16(10535), + 716: uint16(5142), + 717: uint16(12301), + 718: uint16(12302), + 719: uint16(4366), + 720: uint16(12300), + 721: uint16(6995), + 722: uint16(12305), + 723: uint16(12304), + 724: uint16(12303), + 725: uint16(12085), + 726: uint16(12306), + 727: uint16(7261), + 728: uint16(12307), + 729: uint16(11268), + 730: uint16(11064), + 731: uint16(12309), + 732: uint16(12308), + 733: uint16(12311), + 734: uint16(12310), + 735: uint16(12312), + 736: uint16(12313), + 737: uint16(3923), + 738: uint16(5908), + 739: uint16(5658), + 740: uint16(7195), + 741: uint16(8794), + 742: uint16(5379), + 743: uint16(8007), + 744: uint16(5974), + 745: uint16(6221), + 746: uint16(12315), + 747: uint16(11047), + 748: uint16(9253), + 749: uint16(6744), + 750: uint16(12314), + 751: uint16(12316), + 752: uint16(9277), + 753: uint16(4692), + 754: uint16(12317), + 755: uint16(9565), + 756: uint16(8211), + 757: uint16(12319), + 758: uint16(12320), + 759: uint16(9995), + 760: uint16(5975), + 761: uint16(11802), + 762: uint16(12321), + 763: uint16(5381), + 764: uint16(10523), + 765: uint16(8469), + 766: uint16(5456), + 767: uint16(9236), + 768: uint16(5714), + 769: uint16(12322), + 770: uint16(12323), + 771: uint16(9537), + 772: uint16(4158), + 773: uint16(12326), + 774: uint16(6492), + 775: uint16(12325), + 776: uint16(6437), + 777: uint16(12327), + 778: uint16(17741), + 779: uint16(12328), + 780: uint16(10784), + 781: uint16(12329), + 782: uint16(12330), + 783: uint16(12331), + 784: uint16(7496), + 785: uint16(6955), + 786: uint16(4870), + 787: uint16(12334), + 788: uint16(12332), + 789: uint16(11036), + 790: uint16(12333), + 791: uint16(10297), + 792: uint16(12335), + 793: uint16(12336), + 794: uint16(12337), + 795: uint16(9278), + 796: uint16(12341), + 797: uint16(12339), + 798: uint16(12340), + 799: uint16(12338), + 800: uint16(6466), + 801: uint16(12342), + 802: uint16(11081), + 803: uint16(11587), + 804: uint16(12343), + 805: uint16(7943), + 806: uint16(12344), + 807: uint16(7225), + 808: uint16(12345), + 809: uint16(8795), + 810: uint16(11550), + 811: uint16(9279), + 812: uint16(12580), + 813: uint16(12346), + 814: uint16(21252), + 815: uint16(5412), + 816: uint16(12347), + 817: uint16(10813), + 818: uint16(7239), + 819: uint16(8539), + 820: uint16(12349), + 821: uint16(9539), + 822: uint16(12350), + 823: uint16(12351), + 824: uint16(4621), + 825: uint16(12352), + 826: uint16(5382), + 827: uint16(9515), + 828: uint16(4185), + 829: uint16(7215), + 830: uint16(9984), + 831: uint16(12353), + 832: uint16(9280), + 833: uint16(7726), + 834: uint16(12354), + 835: uint16(10507), + 836: uint16(7993), + 837: uint16(4865), + 838: uint16(4872), + 839: uint16(12355), + 840: uint16(12357), + 841: uint16(5657), + 842: uint16(12356), + 843: uint16(11602), + 844: uint16(7240), + 845: uint16(10012), + 846: uint16(10539), + 847: uint16(12358), + 848: uint16(11351), + 849: uint16(12359), + 850: uint16(12360), + 851: uint16(9309), + 852: uint16(12361), + 853: uint16(7944), + 854: uint16(6493), + 855: uint16(5715), + 856: uint16(12362), + 857: uint16(6696), + 858: uint16(6222), + 859: uint16(9029), + 860: uint16(12364), + 861: uint16(8454), + 862: uint16(6478), + 863: uint16(12365), + 864: uint16(12366), + 865: uint16(8207), + 866: uint16(12363), + 867: uint16(12368), + 868: uint16(10773), + 869: uint16(6211), + 870: uint16(12367), + 871: uint16(5716), + 872: uint16(6461), + 873: uint16(9804), + 874: uint16(12371), + 875: uint16(12369), + 876: uint16(10330), + 877: uint16(7497), + 878: uint16(12378), + 879: uint16(4675), + 880: uint16(12372), + 881: uint16(12370), + 882: uint16(8238), + 883: uint16(12374), + 884: uint16(12373), + 885: uint16(4643), + 886: uint16(5695), + 887: uint16(12379), + 888: uint16(11532), + 889: uint16(12375), + 890: uint16(12380), + 891: uint16(12377), + 892: uint16(12376), + 893: uint16(11566), + 894: uint16(5976), + 895: uint16(4386), + 896: uint16(11603), + 897: uint16(7252), + 898: uint16(9271), + 899: uint16(6212), + 900: uint16(12545), + 901: uint16(12546), + 902: uint16(11588), + 903: uint16(11786), + 904: uint16(12548), + 905: uint16(5977), + 906: uint16(12547), + 907: uint16(4622), + 908: uint16(12549), + 909: uint16(10805), + 910: uint16(8987), + 911: uint16(11269), + 912: uint16(10552), + 913: uint16(12550), + 914: uint16(20276), + 915: uint16(9487), + 916: uint16(12551), + 917: uint16(4873), + 918: uint16(11026), + 919: uint16(7424), + 920: uint16(12552), + 921: uint16(10566), + 922: uint16(12556), + 923: uint16(7945), + 924: uint16(12553), + 925: uint16(5423), + 926: uint16(12554), + 927: uint16(4874), + 928: uint16(5645), + 929: uint16(12557), + 930: uint16(12558), + 931: uint16(12559), + 932: uint16(12560), + 933: uint16(6970), + 934: uint16(5978), + 935: uint16(11069), + 936: uint16(11079), + 937: uint16(9558), + 938: uint16(10576), + 939: uint16(12561), + 940: uint16(12562), + 941: uint16(12564), + 942: uint16(12566), + 943: uint16(12565), + 944: uint16(12567), + 945: uint16(4380), + 946: uint16(10795), + 947: uint16(6491), + 948: uint16(12568), + 949: uint16(8248), + 950: uint16(7425), + 951: uint16(5384), + 952: uint16(12569), + 953: uint16(10042), + 954: uint16(12570), + 955: uint16(12571), + 956: uint16(12572), + 957: uint16(12573), + 958: uint16(10243), + 959: uint16(5447), + 960: uint16(3908), + 961: uint16(9502), + 962: uint16(12574), + 963: uint16(7196), + 964: uint16(8008), + 965: uint16(12576), + 966: uint16(12575), + 967: uint16(7426), + 968: uint16(5952), + 969: uint16(12578), + 970: uint16(10013), + 971: uint16(12579), + 972: uint16(10043), + 973: uint16(8467), + 974: uint16(8525), + 975: uint16(5383), + 976: uint16(9549), + 977: uint16(8720), + 978: uint16(9805), + 979: uint16(10797), + 980: uint16(12581), + 981: uint16(8009), + 982: uint16(5652), + 983: uint16(12582), + 984: uint16(12583), + 985: uint16(4107), + 986: uint16(3924), + 987: uint16(4940), + 988: uint16(8455), + 989: uint16(5168), + 990: uint16(11344), + 991: uint16(12586), + 992: uint16(4374), + 993: uint16(12585), + 994: uint16(5385), + 995: uint16(12587), + 996: uint16(11088), + 997: uint16(12588), + 998: uint16(11569), + 999: uint16(5979), + 1000: uint16(5909), + 1001: uint16(12589), + 1002: uint16(12591), + 1003: uint16(12590), + 1004: uint16(7742), + 1005: uint16(4120), + 1006: uint16(4157), + 1007: uint16(12592), + 1008: uint16(12593), + 1009: uint16(5910), + 1010: uint16(12594), + 1011: uint16(5197), + 1012: uint16(6673), + 1013: uint16(12595), + 1014: uint16(10835), + 1015: uint16(6420), + 1016: uint16(5177), + 1017: uint16(11270), + 1018: uint16(8239), + 1019: uint16(10014), + 1020: uint16(7004), + 1021: uint16(7206), + 1022: uint16(6983), + 1023: uint16(6996), + 1024: uint16(7253), + 1025: uint16(10015), + 1026: uint16(12598), + 1027: uint16(4130), + 1028: uint16(8240), + 1029: uint16(5980), + 1030: uint16(5924), + 1031: uint16(5446), + 1032: uint16(12602), + 1033: uint16(8704), + 1034: uint16(8541), + 1035: uint16(5386), + 1036: uint16(7427), + 1037: uint16(12603), + 1038: uint16(12601), + 1039: uint16(4387), + 1040: uint16(8517), + 1041: uint16(6935), + 1042: uint16(6698), + 1043: uint16(4101), + 1044: uint16(4687), + 1045: uint16(6213), + 1046: uint16(6697), + 1047: uint16(12604), + 1048: uint16(12605), + 1049: uint16(5160), + 1050: uint16(4645), + 1051: uint16(6214), + 1052: uint16(5159), + 1053: uint16(9022), + 1054: uint16(4100), + 1055: uint16(9488), + 1056: uint16(11037), + 1057: uint16(6144), + 1058: uint16(11352), + 1059: uint16(9254), + 1060: uint16(5981), + 1061: uint16(5646), + 1062: uint16(12614), + 1063: uint16(5442), + 1064: uint16(10793), + 1065: uint16(10044), + 1066: uint16(12613), + 1067: uint16(4925), + 1068: uint16(12608), + 1069: uint16(12609), + 1070: uint16(12611), + 1071: uint16(12612), + 1072: uint16(5178), + 1073: uint16(7744), + 1074: uint16(10508), + 1075: uint16(12610), + 1076: uint16(12606), + 1077: uint16(5954), + 1078: uint16(12607), + 1079: uint16(11779), + 1080: uint16(10577), + 1081: uint16(9031), + 1082: uint16(5953), + 1083: uint16(6223), + 1084: uint16(12615), + 1085: uint16(9532), + 1086: uint16(12619), + 1087: uint16(7005), + 1088: uint16(6997), + 1089: uint16(12622), + 1090: uint16(12620), + 1091: uint16(11010), + 1092: uint16(12617), + 1093: uint16(12626), + 1094: uint16(12621), + 1095: uint16(12624), + 1096: uint16(5925), + 1097: uint16(11038), + 1098: uint16(12625), + 1099: uint16(12627), + 1100: uint16(12629), + 1101: uint16(6479), + 1102: uint16(11809), + 1103: uint16(12618), + 1104: uint16(12616), + 1105: uint16(12628), + 1106: uint16(12623), + 1107: uint16(12631), + 1108: uint16(12802), + 1109: uint16(12633), + 1110: uint16(12637), + 1111: uint16(12800), + 1112: uint16(12634), + 1113: uint16(12829), + 1114: uint16(6472), + 1115: uint16(4624), + 1116: uint16(12632), + 1117: uint16(12804), + 1118: uint16(3925), + 1119: uint16(12803), + 1120: uint16(3844), + 1121: uint16(10281), + 1122: uint16(12801), + 1123: uint16(12635), + 1124: uint16(12630), + 1125: uint16(12636), + 1126: uint16(6439), + 1127: uint16(12805), + 1128: uint16(3926), + 1129: uint16(12814), + 1130: uint16(12806), + 1131: uint16(12807), + 1132: uint16(7428), + 1133: uint16(10824), + 1134: uint16(12812), + 1135: uint16(12811), + 1136: uint16(9230), + 1137: uint16(12813), + 1138: uint16(12810), + 1139: uint16(4115), + 1140: uint16(6421), + 1141: uint16(7695), + 1142: uint16(12808), + 1143: uint16(9281), + 1144: uint16(12809), + 1145: uint16(3841), + 1146: uint16(12819), + 1147: uint16(11266), + 1148: uint16(7430), + 1149: uint16(12825), + 1150: uint16(12824), + 1151: uint16(12815), + 1152: uint16(8482), + 1153: uint16(12816), + 1154: uint16(8526), + 1155: uint16(12821), + 1156: uint16(7429), + 1157: uint16(12818), + 1158: uint16(11075), + 1159: uint16(5659), + 1160: uint16(12822), + 1161: uint16(12823), + 1162: uint16(12820), + 1163: uint16(12826), + 1164: uint16(12817), + 1165: uint16(12832), + 1166: uint16(12837), + 1167: uint16(12833), + 1168: uint16(12828), + 1169: uint16(12838), + 1170: uint16(8208), + 1171: uint16(12840), + 1172: uint16(6145), + 1173: uint16(12830), + 1174: uint16(8796), + 1175: uint16(12834), + 1176: uint16(12827), + 1177: uint16(4876), + 1178: uint16(4941), + 1179: uint16(4676), + 1180: uint16(12835), + 1181: uint16(12831), + 1182: uint16(5717), + 1183: uint16(12841), + 1184: uint16(12839), + 1185: uint16(8242), + 1186: uint16(5161), + 1187: uint16(5387), + 1188: uint16(12836), + 1189: uint16(5459), + 1190: uint16(4131), + 1191: uint16(12845), + 1192: uint16(12843), + 1193: uint16(13062), + 1194: uint16(12848), + 1195: uint16(12842), + 1196: uint16(12846), + 1197: uint16(12844), + 1198: uint16(6699), + 1199: uint16(12847), + 1200: uint16(12850), + 1201: uint16(12855), + 1202: uint16(12853), + 1203: uint16(12852), + 1204: uint16(8721), + 1205: uint16(4388), + 1206: uint16(12849), + 1207: uint16(12851), + 1208: uint16(7431), + 1209: uint16(4114), + 1210: uint16(12854), + 1211: uint16(4413), + 1212: uint16(12865), + 1213: uint16(7515), + 1214: uint16(12861), + 1215: uint16(12859), + 1216: uint16(12860), + 1217: uint16(12862), + 1218: uint16(4124), + 1219: uint16(8216), + 1220: uint16(12856), + 1221: uint16(12857), + 1222: uint16(4697), + 1223: uint16(12864), + 1224: uint16(4942), + 1225: uint16(12867), + 1226: uint16(12863), + 1227: uint16(12866), + 1228: uint16(10509), + 1229: uint16(9524), + 1230: uint16(10007), + 1231: uint16(12869), + 1232: uint16(12868), + 1233: uint16(4644), + 1234: uint16(12870), + 1235: uint16(12873), + 1236: uint16(12872), + 1237: uint16(12871), + 1238: uint16(9752), + 1239: uint16(12874), + 1240: uint16(12875), + 1241: uint16(12877), + 1242: uint16(12876), + 1243: uint16(12879), + 1244: uint16(12882), + 1245: uint16(12880), + 1246: uint16(12878), + 1247: uint16(12881), + 1248: uint16(12883), + 1249: uint16(12884), + 1250: uint16(12885), + 1251: uint16(12886), + 1252: uint16(12887), + 1253: uint16(12324), + 1254: uint16(7003), + 1255: uint16(6700), + 1256: uint16(4434), + 1257: uint16(3927), + 1258: uint16(8739), + 1259: uint16(12888), + 1260: uint16(6403), + 1261: uint16(3886), + 1262: uint16(7741), + 1263: uint16(12889), + 1264: uint16(5926), + 1265: uint16(6224), + 1266: uint16(12891), + 1267: uint16(12890), + 1268: uint16(10559), + 1269: uint16(12892), + 1270: uint16(13056), + 1271: uint16(12893), + 1272: uint16(13057), + 1273: uint16(13058), + 1274: uint16(5718), + 1275: uint16(4159), + 1276: uint16(13059), + 1277: uint16(13061), + 1278: uint16(13060), + 1279: uint16(13063), + 1280: uint16(9273), + 1281: uint16(13064), + 1282: uint16(3860), + 1283: uint16(6462), + 1284: uint16(5660), + 1285: uint16(8750), + 1286: uint16(13065), + 1287: uint16(13066), + 1288: uint16(13068), + 1289: uint16(13069), + 1290: uint16(6467), + 1291: uint16(5424), + 1292: uint16(10774), + 1293: uint16(13067), + 1294: uint16(13070), + 1295: uint16(6432), + 1296: uint16(6146), + 1297: uint16(13074), + 1298: uint16(6404), + 1299: uint16(8722), + 1300: uint16(13071), + 1301: uint16(9017), + 1302: uint16(13075), + 1303: uint16(7745), + 1304: uint16(13073), + 1305: uint16(13076), + 1306: uint16(5662), + 1307: uint16(13077), + 1308: uint16(13078), + 1309: uint16(6147), + 1310: uint16(4639), + 1311: uint16(13080), + 1312: uint16(13081), + 1313: uint16(13082), + 1314: uint16(13079), + 1315: uint16(13072), + 1316: uint16(13083), + 1317: uint16(13084), + 1318: uint16(10819), + 1319: uint16(7498), + 1320: uint16(13086), + 1321: uint16(13087), + 1322: uint16(13085), + 1323: uint16(13089), + 1324: uint16(9751), + 1325: uint16(3911), + 1326: uint16(10293), + 1327: uint16(13090), + 1328: uint16(7516), + 1329: uint16(6936), + 1330: uint16(9788), + 1331: uint16(4943), + 1332: uint16(6474), + 1333: uint16(10808), + 1334: uint16(9489), + 1335: uint16(5719), + 1336: uint16(8494), + 1337: uint16(13088), + 1338: uint16(13091), + 1339: uint16(8483), + 1340: uint16(13092), + 1341: uint16(13093), + 1342: uint16(13095), + 1343: uint16(9032), + 1344: uint16(4877), + 1345: uint16(21248), + 1346: uint16(4160), + 1347: uint16(10578), + 1348: uint16(7499), + 1349: uint16(9255), + 1350: uint16(6469), + 1351: uint16(13101), + 1352: uint16(10524), + 1353: uint16(11580), + 1354: uint16(4435), + 1355: uint16(13097), + 1356: uint16(8217), + 1357: uint16(13100), + 1358: uint16(9282), + 1359: uint16(9256), + 1360: uint16(9283), + 1361: uint16(10008), + 1362: uint16(9004), + 1363: uint16(6440), + 1364: uint16(13096), + 1365: uint16(4181), + 1366: uint16(9237), + 1367: uint16(13098), + 1368: uint16(13094), + 1369: uint16(7727), + 1370: uint16(13102), + 1371: uint16(7213), + 1372: uint16(5388), + 1373: uint16(13103), + 1374: uint16(10567), + 1375: uint16(8284), + 1376: uint16(8997), + 1377: uint16(13105), + 1378: uint16(10798), + 1379: uint16(13106), + 1380: uint16(13111), + 1381: uint16(10510), + 1382: uint16(13110), + 1383: uint16(13104), + 1384: uint16(13107), + 1385: uint16(13109), + 1386: uint16(6405), + 1387: uint16(10536), + 1388: uint16(13112), + 1389: uint16(8740), + 1390: uint16(4436), + 1391: uint16(7500), + 1392: uint16(13114), + 1393: uint16(13113), + 1394: uint16(6215), + 1395: uint16(13115), + 1396: uint16(13117), + 1397: uint16(13116), + 1398: uint16(13119), + 1399: uint16(13108), + 1400: uint16(13121), + 1401: uint16(13120), + 1402: uint16(13118), + 1403: uint16(6701), + 1404: uint16(7728), + 1405: uint16(8243), + 1406: uint16(13122), + 1407: uint16(7963), + 1408: uint16(3916), + 1409: uint16(9795), + 1410: uint16(9018), + 1411: uint16(13124), + 1412: uint16(13123), + 1413: uint16(13125), + 1414: uint16(13126), + 1415: uint16(13127), + 1416: uint16(13128), + 1417: uint16(10544), + 1418: uint16(13129), + 1419: uint16(4389), + 1420: uint16(13130), + 1421: uint16(11291), + 1422: uint16(4623), + 1423: uint16(12584), + 1424: uint16(7207), + 1425: uint16(8478), + 1426: uint16(13131), + 1427: uint16(11082), + 1428: uint16(11027), + 1429: uint16(13133), + 1430: uint16(8518), + 1431: uint16(9238), + 1432: uint16(8479), + 1433: uint16(10294), + 1434: uint16(13134), + 1435: uint16(13135), + 1436: uint16(4186), + 1437: uint16(6937), + 1438: uint16(13136), + 1439: uint16(3887), + 1440: uint16(13137), + 1441: uint16(13138), + 1442: uint16(4161), + 1443: uint16(4944), + 1444: uint16(9535), + 1445: uint16(10579), + 1446: uint16(13142), + 1447: uint16(8244), + 1448: uint16(13141), + 1449: uint16(5663), + 1450: uint16(10810), + 1451: uint16(13140), + 1452: uint16(9284), + 1453: uint16(13144), + 1454: uint16(13143), + 1455: uint16(13146), + 1456: uint16(13145), + 1457: uint16(4187), + 1458: uint16(13147), + 1459: uint16(7432), + 1460: uint16(13149), + 1461: uint16(8708), + 1462: uint16(13148), + 1463: uint16(10514), + 1464: uint16(7254), + 1465: uint16(9274), + 1466: uint16(13312), + 1467: uint16(6148), + 1468: uint16(13313), + 1469: uint16(9728), + 1470: uint16(10045), + 1471: uint16(11056), + 1472: uint16(9732), + 1473: uint16(13322), + 1474: uint16(5143), + 1475: uint16(11300), + 1476: uint16(11022), + 1477: uint16(13579), + 1478: uint16(13314), + 1479: uint16(13317), + 1480: uint16(8484), + 1481: uint16(10775), + 1482: uint16(9257), + 1483: uint16(13318), + 1484: uint16(10820), + 1485: uint16(6441), + 1486: uint16(7433), + 1487: uint16(13319), + 1488: uint16(6703), + 1489: uint16(6702), + 1490: uint16(3864), + 1491: uint16(5927), + 1492: uint16(7946), + 1493: uint16(3888), + 1494: uint16(13323), + 1495: uint16(13324), + 1496: uint16(13321), + 1497: uint16(4119), + 1498: uint16(4878), + 1499: uint16(13320), + 1500: uint16(11044), + 1501: uint16(10256), + 1502: uint16(3847), + 1503: uint16(3928), + 1504: uint16(6704), + 1505: uint16(3889), + 1506: uint16(3842), + 1507: uint16(13329), + 1508: uint16(13327), + 1509: uint16(11035), + 1510: uint16(13330), + 1511: uint16(13328), + 1512: uint16(13326), + 1513: uint16(7696), + 1514: uint16(13325), + 1515: uint16(10553), + 1516: uint16(5955), + 1517: uint16(13334), + 1518: uint16(13335), + 1519: uint16(7434), + 1520: uint16(13331), + 1521: uint16(11787), + 1522: uint16(9771), + 1523: uint16(13333), + 1524: uint16(6406), + 1525: uint16(13336), + 1526: uint16(10295), + 1527: uint16(13337), + 1528: uint16(13332), + 1529: uint16(11034), + 1530: uint16(9789), + 1531: uint16(13338), + 1532: uint16(10257), + 1533: uint16(13339), + 1534: uint16(13343), + 1535: uint16(13340), + 1536: uint16(4390), + 1537: uint16(13342), + 1538: uint16(6938), + 1539: uint16(13341), + 1540: uint16(5720), + 1541: uint16(13355), + 1542: uint16(13348), + 1543: uint16(13345), + 1544: uint16(8771), + 1545: uint16(13344), + 1546: uint16(13346), + 1547: uint16(13347), + 1548: uint16(13349), + 1549: uint16(13350), + 1550: uint16(4945), + 1551: uint16(13352), + 1552: uint16(13351), + 1553: uint16(13353), + 1554: uint16(7501), + 1555: uint16(13356), + 1556: uint16(9019), + 1557: uint16(4132), + 1558: uint16(13354), + 1559: uint16(13357), + 1560: uint16(13358), + 1561: uint16(13361), + 1562: uint16(13359), + 1563: uint16(13360), + 1564: uint16(6705), + 1565: uint16(13362), + 1566: uint16(6149), + 1567: uint16(13363), + 1568: uint16(6745), + 1569: uint16(8471), + 1570: uint16(13364), + 1571: uint16(13365), + 1572: uint16(6713), + 1573: uint16(6150), + 1574: uint16(11057), + 1575: uint16(5127), + 1576: uint16(5928), + 1577: uint16(13366), + 1578: uint16(4663), + 1579: uint16(13367), + 1580: uint16(8472), + 1581: uint16(13368), + 1582: uint16(13570), + 1583: uint16(13369), + 1584: uint16(13370), + 1585: uint16(13371), + 1586: uint16(13373), + 1587: uint16(13374), + 1588: uint16(13375), + 1589: uint16(8527), + 1590: uint16(4102), + 1591: uint16(6984), + 1592: uint16(3873), + 1593: uint16(8246), + 1594: uint16(4879), + 1595: uint16(6932), + 1596: uint16(6151), + 1597: uint16(9285), + 1598: uint16(7168), + 1599: uint16(4880), + 1600: uint16(8775), + 1601: uint16(9033), + 1602: uint16(3863), + 1603: uint16(5144), + 1604: uint16(10580), + 1605: uint16(6945), + 1606: uint16(5169), + 1607: uint16(8010), + 1608: uint16(6939), + 1609: uint16(11271), + 1610: uint16(13376), + 1611: uint16(5179), + 1612: uint16(6442), + 1613: uint16(4625), + 1614: uint16(4162), + 1615: uint16(7435), + 1616: uint16(4391), + 1617: uint16(13377), + 1618: uint16(11301), + 1619: uint16(7208), + 1620: uint16(6979), + 1621: uint16(13378), + 1622: uint16(4946), + 1623: uint16(9521), + 1624: uint16(11016), + 1625: uint16(13379), + 1626: uint16(13380), + 1627: uint16(10296), + 1628: uint16(13382), + 1629: uint16(4871), + 1630: uint16(5462), + 1631: uint16(13381), + 1632: uint16(4881), + 1633: uint16(7697), + 1634: uint16(13386), + 1635: uint16(6656), + 1636: uint16(4392), + 1637: uint16(13385), + 1638: uint16(13383), + 1639: uint16(13387), + 1640: uint16(13384), + 1641: uint16(9738), + 1642: uint16(15148), + 1643: uint16(7698), + 1644: uint16(13388), + 1645: uint16(11551), + 1646: uint16(13389), + 1647: uint16(13391), + 1648: uint16(8797), + 1649: uint16(13390), + 1650: uint16(7938), + 1651: uint16(6746), + 1652: uint16(8495), + 1653: uint16(6998), + 1654: uint16(10324), + 1655: uint16(8011), + 1656: uint16(6956), + 1657: uint16(13392), + 1658: uint16(7436), + 1659: uint16(13393), + 1660: uint16(13394), + 1661: uint16(3890), + 1662: uint16(8473), + 1663: uint16(7729), + 1664: uint16(13395), + 1665: uint16(9490), + 1666: uint16(7437), + 1667: uint16(7438), + 1668: uint16(13396), + 1669: uint16(8012), + 1670: uint16(7439), + 1671: uint16(13397), + 1672: uint16(13398), + 1673: uint16(11071), + 1674: uint16(13399), + 1675: uint16(5413), + 1676: uint16(7169), + 1677: uint16(13400), + 1678: uint16(13401), + 1679: uint16(6971), + 1680: uint16(7691), + 1681: uint16(9555), + 1682: uint16(7731), + 1683: uint16(10071), + 1684: uint16(9729), + 1685: uint16(5416), + 1686: uint16(13402), + 1687: uint16(5198), + 1688: uint16(13403), + 1689: uint16(5469), + 1690: uint16(9518), + 1691: uint16(4367), + 1692: uint16(6706), + 1693: uint16(13404), + 1694: uint16(13569), + 1695: uint16(13568), + 1696: uint16(5468), + 1697: uint16(13405), + 1698: uint16(9239), + 1699: uint16(8463), + 1700: uint16(9258), + 1701: uint16(6951), + 1702: uint16(8247), + 1703: uint16(11353), + 1704: uint16(13571), + 1705: uint16(13572), + 1706: uint16(9525), + 1707: uint16(6674), + 1708: uint16(13574), + 1709: uint16(13575), + 1710: uint16(13576), + 1711: uint16(4947), + 1712: uint16(13577), + 1713: uint16(13578), + 1714: uint16(4363), + 1715: uint16(8218), + 1716: uint16(4931), + 1717: uint16(13580), + 1718: uint16(11015), + 1719: uint16(8497), + 1720: uint16(4664), + 1721: uint16(13582), + 1722: uint16(13584), + 1723: uint16(4926), + 1724: uint16(13581), + 1725: uint16(13583), + 1726: uint16(13586), + 1727: uint16(13585), + 1728: uint16(13587), + 1729: uint16(13588), + 1730: uint16(9500), + 1731: uint16(5389), + 1732: uint16(4420), + 1733: uint16(13589), + 1734: uint16(13594), + 1735: uint16(13592), + 1736: uint16(10582), + 1737: uint16(10581), + 1738: uint16(9286), + 1739: uint16(13591), + 1740: uint16(7219), + 1741: uint16(13590), + 1742: uint16(7761), + 1743: uint16(13595), + 1744: uint16(6473), + 1745: uint16(13601), + 1746: uint16(13602), + 1747: uint16(13596), + 1748: uint16(4626), + 1749: uint16(13597), + 1750: uint16(13606), + 1751: uint16(13605), + 1752: uint16(13604), + 1753: uint16(13600), + 1754: uint16(13599), + 1755: uint16(13603), + 1756: uint16(10583), + 1757: uint16(13610), + 1758: uint16(13607), + 1759: uint16(13609), + 1760: uint16(11345), + 1761: uint16(13608), + 1762: uint16(13598), + 1763: uint16(7762), + 1764: uint16(13611), + 1765: uint16(6422), + 1766: uint16(13612), + 1767: uint16(13613), + 1768: uint16(13616), + 1769: uint16(13615), + 1770: uint16(13614), + 1771: uint16(9287), + 1772: uint16(13593), + 1773: uint16(13622), + 1774: uint16(13618), + 1775: uint16(13617), + 1776: uint16(13619), + 1777: uint16(13620), + 1778: uint16(13623), + 1779: uint16(11589), + 1780: uint16(13624), + 1781: uint16(13621), + 1782: uint16(13625), + 1783: uint16(4927), + 1784: uint16(13626), + 1785: uint16(13628), + 1786: uint16(13627), + 1787: uint16(13629), + 1788: uint16(13630), + 1789: uint16(8013), + 1790: uint16(7170), + 1791: uint16(7235), + 1792: uint16(8258), + 1793: uint16(6152), + 1794: uint16(6423), + 1795: uint16(6153), + 1796: uint16(5199), + 1797: uint16(13631), + 1798: uint16(6424), + 1799: uint16(5929), + 1800: uint16(13632), + 1801: uint16(11013), + 1802: uint16(9762), + 1803: uint16(13633), + 1804: uint16(6154), + 1805: uint16(4875), + 1806: uint16(8710), + 1807: uint16(5425), + 1808: uint16(6707), + 1809: uint16(10298), + 1810: uint16(10016), + 1811: uint16(13634), + 1812: uint16(4948), + 1813: uint16(13637), + 1814: uint16(8960), + 1815: uint16(13636), + 1816: uint16(13635), + 1817: uint16(13638), + 1818: uint16(9034), + 1819: uint16(7746), + 1820: uint16(6708), + 1821: uint16(7977), + 1822: uint16(8498), + 1823: uint16(5121), + 1824: uint16(8961), + 1825: uint16(13639), + 1826: uint16(13640), + 1827: uint16(7502), + 1828: uint16(10776), + 1829: uint16(13643), + 1830: uint16(13642), + 1831: uint16(13641), + 1832: uint16(10332), + 1833: uint16(13650), + 1834: uint16(10809), + 1835: uint16(13644), + 1836: uint16(13646), + 1837: uint16(10826), + 1838: uint16(13645), + 1839: uint16(13647), + 1840: uint16(9991), + 1841: uint16(13648), + 1842: uint16(10525), + 1843: uint16(13649), + 1844: uint16(4882), + 1845: uint16(10526), + 1846: uint16(9742), + 1847: uint16(13651), + 1848: uint16(13652), + 1849: uint16(6155), + 1850: uint16(4883), + 1851: uint16(13653), + 1852: uint16(5911), + 1853: uint16(11299), + 1854: uint16(11272), + 1855: uint16(4949), + 1856: uint16(13655), + 1857: uint16(8962), + 1858: uint16(6156), + 1859: uint16(7440), + 1860: uint16(10046), + 1861: uint16(7441), + 1862: uint16(7255), + 1863: uint16(9035), + 1864: uint16(10584), + 1865: uint16(9240), + 1866: uint16(6157), + 1867: uint16(10299), + 1868: uint16(13656), + 1869: uint16(9272), + 1870: uint16(6433), + 1871: uint16(5930), + 1872: uint16(9036), + 1873: uint16(3874), + 1874: uint16(7245), + 1875: uint16(6158), + 1876: uint16(11302), + 1877: uint16(13657), + 1878: uint16(13658), + 1879: uint16(9776), + 1880: uint16(13659), + 1881: uint16(11606), + 1882: uint16(11788), + 1883: uint16(13661), + 1884: uint16(13660), + 1885: uint16(4646), + 1886: uint16(13824), + 1887: uint16(13827), + 1888: uint16(13828), + 1889: uint16(13826), + 1890: uint16(10271), + 1891: uint16(7442), + 1892: uint16(13830), + 1893: uint16(13829), + 1894: uint16(13825), + 1895: uint16(13831), + 1896: uint16(13832), + 1897: uint16(13833), + 1898: uint16(13836), + 1899: uint16(13834), + 1900: uint16(13835), + 1901: uint16(13837), + 1902: uint16(4163), + 1903: uint16(9037), + 1904: uint16(13838), + 1905: uint16(5721), + 1906: uint16(4437), + 1907: uint16(9749), + 1908: uint16(13839), + 1909: uint16(9562), + 1910: uint16(10554), + 1911: uint16(13840), + 1912: uint16(11789), + 1913: uint16(13841), + 1914: uint16(10527), + 1915: uint16(13844), + 1916: uint16(12032), + 1917: uint16(12048), + 1918: uint16(6927), + 1919: uint16(9556), + 1920: uint16(13845), + 1921: uint16(5180), + 1922: uint16(8963), + 1923: uint16(3929), + 1924: uint16(13846), + 1925: uint16(10501), + 1926: uint16(6159), + 1927: uint16(8751), + 1928: uint16(9038), + 1929: uint16(11086), + 1930: uint16(5912), + 1931: uint16(5931), + 1932: uint16(13847), + 1933: uint16(13848), + 1934: uint16(13854), + 1935: uint16(6980), + 1936: uint16(8964), + 1937: uint16(5390), + 1938: uint16(13849), + 1939: uint16(10250), + 1940: uint16(8741), + 1941: uint16(13850), + 1942: uint16(13851), + 1943: uint16(5391), + 1944: uint16(13852), + 1945: uint16(13853), + 1946: uint16(13855), + 1947: uint16(9301), + 1948: uint16(13856), + 1949: uint16(13857), + 1950: uint16(13858), + 1951: uint16(13843), + 1952: uint16(13842), + 1953: uint16(13859), + 1954: uint16(5664), + 1955: uint16(10246), + 1956: uint16(6443), + 1957: uint16(10262), + 1958: uint16(8965), + 1959: uint16(10282), + 1960: uint16(13860), + 1961: uint16(7443), + 1962: uint16(4133), + 1963: uint16(13861), + 1964: uint16(13862), + 1965: uint16(11089), + 1966: uint16(10047), + 1967: uint16(13865), + 1968: uint16(4188), + 1969: uint16(7947), + 1970: uint16(13864), + 1971: uint16(13863), + 1972: uint16(5665), + 1973: uint16(8499), + 1974: uint16(13869), + 1975: uint16(13867), + 1976: uint16(13866), + 1977: uint16(11526), + 1978: uint16(5956), + 1979: uint16(7256), + 1980: uint16(13868), + 1981: uint16(9259), + 1982: uint16(7197), + 1983: uint16(9503), + 1984: uint16(13872), + 1985: uint16(13871), + 1986: uint16(13870), + 1987: uint16(13873), + 1988: uint16(5957), + 1989: uint16(13874), + 1990: uint16(10331), + 1991: uint16(7226), + 1992: uint16(13875), + 1993: uint16(10072), + 1994: uint16(9504), + 1995: uint16(8966), + 1996: uint16(9231), + 1997: uint16(13876), + 1998: uint16(5130), + 1999: uint16(7699), + 2000: uint16(10251), + 2001: uint16(4950), + 2002: uint16(9733), + 2003: uint16(13877), + 2004: uint16(6709), + 2005: uint16(10777), + 2006: uint16(10778), + 2007: uint16(4189), + 2008: uint16(13882), + 2009: uint16(8776), + 2010: uint16(13879), + 2011: uint16(4438), + 2012: uint16(14092), + 2013: uint16(13881), + 2014: uint16(9743), + 2015: uint16(13880), + 2016: uint16(13878), + 2017: uint16(6233), + 2018: uint16(13884), + 2019: uint16(13890), + 2020: uint16(13896), + 2021: uint16(13888), + 2022: uint16(9275), + 2023: uint16(13893), + 2024: uint16(10300), + 2025: uint16(13887), + 2026: uint16(13892), + 2027: uint16(11590), + 2028: uint16(6710), + 2029: uint16(8500), + 2030: uint16(13885), + 2031: uint16(5181), + 2032: uint16(13895), + 2033: uint16(7948), + 2034: uint16(4164), + 2035: uint16(13889), + 2036: uint16(4439), + 2037: uint16(13894), + 2038: uint16(5392), + 2039: uint16(13891), + 2040: uint16(13897), + 2041: uint16(13899), + 2042: uint16(13909), + 2043: uint16(13907), + 2044: uint16(13904), + 2045: uint16(13903), + 2046: uint16(11607), + 2047: uint16(13905), + 2048: uint16(5393), + 2049: uint16(6160), + 2050: uint16(7257), + 2051: uint16(13912), + 2052: uint16(13898), + 2053: uint16(13902), + 2054: uint16(13886), + 2055: uint16(4441), + 2056: uint16(13906), + 2057: uint16(13908), + 2058: uint16(8752), + 2059: uint16(6407), + 2060: uint16(4375), + 2061: uint16(13900), + 2062: uint16(13911), + 2063: uint16(13910), + 2064: uint16(5394), + 2065: uint16(8456), + 2066: uint16(4677), + 2067: uint16(5666), + 2068: uint16(13901), + 2069: uint16(13913), + 2070: uint16(13916), + 2071: uint16(14080), + 2072: uint16(6940), + 2073: uint16(14086), + 2074: uint16(9039), + 2075: uint16(13914), + 2076: uint16(14084), + 2077: uint16(4440), + 2078: uint16(14082), + 2079: uint16(14083), + 2080: uint16(13917), + 2081: uint16(14081), + 2082: uint16(5958), + 2083: uint16(11273), + 2084: uint16(4884), + 2085: uint16(4152), + 2086: uint16(14085), + 2087: uint16(9753), + 2088: uint16(3852), + 2089: uint16(10048), + 2090: uint16(13883), + 2091: uint16(14091), + 2092: uint16(14095), + 2093: uint16(11076), + 2094: uint16(14088), + 2095: uint16(9288), + 2096: uint16(14093), + 2097: uint16(7503), + 2098: uint16(14094), + 2099: uint16(9526), + 2100: uint16(11814), + 2101: uint16(14090), + 2102: uint16(14096), + 2103: uint16(6234), + 2104: uint16(7978), + 2105: uint16(3891), + 2106: uint16(14089), + 2107: uint16(14087), + 2108: uint16(8249), + 2109: uint16(13915), + 2110: uint16(6675), + 2111: uint16(8485), + 2112: uint16(14108), + 2113: uint16(8250), + 2114: uint16(14103), + 2115: uint16(14100), + 2116: uint16(14101), + 2117: uint16(6981), + 2118: uint16(14104), + 2119: uint16(14107), + 2120: uint16(14102), + 2121: uint16(7172), + 2122: uint16(14105), + 2123: uint16(14099), + 2124: uint16(11099), + 2125: uint16(11098), + 2126: uint16(14109), + 2127: uint16(14110), + 2128: uint16(3892), + 2129: uint16(14098), + 2130: uint16(5457), + 2131: uint16(3845), + 2132: uint16(4885), + 2133: uint16(14106), + 2134: uint16(14114), + 2135: uint16(14113), + 2136: uint16(14118), + 2137: uint16(14119), + 2138: uint16(14117), + 2139: uint16(14120), + 2140: uint16(14112), + 2141: uint16(14116), + 2142: uint16(14121), + 2143: uint16(14122), + 2144: uint16(14111), + 2145: uint16(6747), + 2146: uint16(14115), + 2147: uint16(8501), + 2148: uint16(6161), + 2149: uint16(14097), + 2150: uint16(7700), + 2151: uint16(14135), + 2152: uint16(10568), + 2153: uint16(14125), + 2154: uint16(14126), + 2155: uint16(14127), + 2156: uint16(14134), + 2157: uint16(14133), + 2158: uint16(10844), + 2159: uint16(4886), + 2160: uint16(14131), + 2161: uint16(5668), + 2162: uint16(4627), + 2163: uint16(14128), + 2164: uint16(11543), + 2165: uint16(14130), + 2166: uint16(3893), + 2167: uint16(14132), + 2168: uint16(14123), + 2169: uint16(14129), + 2170: uint16(14136), + 2171: uint16(5667), + 2172: uint16(14124), + 2173: uint16(11324), + 2174: uint16(11274), + 2175: uint16(14139), + 2176: uint16(14143), + 2177: uint16(8285), + 2178: uint16(11608), + 2179: uint16(14144), + 2180: uint16(14141), + 2181: uint16(14138), + 2182: uint16(14137), + 2183: uint16(14142), + 2184: uint16(10511), + 2185: uint16(9491), + 2186: uint16(5669), + 2187: uint16(14145), + 2188: uint16(14140), + 2189: uint16(14146), + 2190: uint16(5722), + 2191: uint16(4368), + 2192: uint16(14154), + 2193: uint16(4887), + 2194: uint16(14152), + 2195: uint16(14153), + 2196: uint16(6408), + 2197: uint16(14151), + 2198: uint16(14149), + 2199: uint16(14148), + 2200: uint16(14155), + 2201: uint16(14147), + 2202: uint16(14157), + 2203: uint16(4442), + 2204: uint16(14159), + 2205: uint16(14158), + 2206: uint16(8967), + 2207: uint16(14162), + 2208: uint16(14160), + 2209: uint16(14150), + 2210: uint16(5723), + 2211: uint16(14161), + 2212: uint16(14165), + 2213: uint16(14164), + 2214: uint16(14166), + 2215: uint16(14163), + 2216: uint16(14167), + 2217: uint16(14168), + 2218: uint16(14169), + 2219: uint16(10569), + 2220: uint16(14171), + 2221: uint16(14170), + 2222: uint16(7198), + 2223: uint16(7949), + 2224: uint16(4421), + 2225: uint16(4443), + 2226: uint16(14172), + 2227: uint16(3870), + 2228: uint16(7979), + 2229: uint16(14173), + 2230: uint16(19234), + 2231: uint16(14336), + 2232: uint16(5696), + 2233: uint16(14337), + 2234: uint16(8014), + 2235: uint16(14338), + 2236: uint16(14339), + 2237: uint16(5145), + 2238: uint16(14340), + 2239: uint16(14341), + 2240: uint16(14342), + 2241: uint16(8502), + 2242: uint16(5932), + 2243: uint16(11072), + 2244: uint16(10779), + 2245: uint16(7241), + 2246: uint16(14343), + 2247: uint16(8015), + 2248: uint16(19740), + 2249: uint16(10049), + 2250: uint16(6985), + 2251: uint16(6444), + 2252: uint16(14344), + 2253: uint16(8486), + 2254: uint16(10502), + 2255: uint16(8528), + 2256: uint16(14347), + 2257: uint16(14345), + 2258: uint16(14348), + 2259: uint16(14346), + 2260: uint16(14349), + 2261: uint16(10512), + 2262: uint16(3862), + 2263: uint16(10301), + 2264: uint16(10050), + 2265: uint16(14350), + 2266: uint16(14353), + 2267: uint16(7444), + 2268: uint16(5146), + 2269: uint16(14351), + 2270: uint16(14358), + 2271: uint16(7445), + 2272: uint16(14352), + 2273: uint16(9763), + 2274: uint16(11325), + 2275: uint16(14354), + 2276: uint16(14355), + 2277: uint16(14359), + 2278: uint16(9289), + 2279: uint16(14356), + 2280: uint16(6162), + 2281: uint16(7997), + 2282: uint16(14373), + 2283: uint16(10003), + 2284: uint16(8529), + 2285: uint16(10051), + 2286: uint16(14604), + 2287: uint16(10585), + 2288: uint16(9040), + 2289: uint16(10836), + 2290: uint16(14362), + 2291: uint16(4352), + 2292: uint16(8777), + 2293: uint16(14371), + 2294: uint16(8723), + 2295: uint16(14365), + 2296: uint16(14372), + 2297: uint16(14367), + 2298: uint16(14374), + 2299: uint16(14370), + 2300: uint16(14369), + 2301: uint16(9806), + 2302: uint16(14363), + 2303: uint16(4444), + 2304: uint16(14361), + 2305: uint16(5200), + 2306: uint16(8530), + 2307: uint16(14357), + 2308: uint16(14360), + 2309: uint16(6163), + 2310: uint16(7994), + 2311: uint16(7446), + 2312: uint16(14368), + 2313: uint16(9777), + 2314: uint16(5201), + 2315: uint16(4647), + 2316: uint16(4678), + 2317: uint16(7680), + 2318: uint16(14376), + 2319: uint16(14381), + 2320: uint16(14377), + 2321: uint16(5724), + 2322: uint16(14382), + 2323: uint16(6657), + 2324: uint16(6216), + 2325: uint16(7173), + 2326: uint16(14364), + 2327: uint16(6748), + 2328: uint16(14379), + 2329: uint16(6711), + 2330: uint16(14380), + 2331: uint16(3875), + 2332: uint16(14375), + 2333: uint16(8968), + 2334: uint16(5202), + 2335: uint16(5395), + 2336: uint16(14378), + 2337: uint16(3846), + 2338: uint16(6434), + 2339: uint16(7701), + 2340: uint16(9041), + 2341: uint16(10035), + 2342: uint16(14384), + 2343: uint16(8253), + 2344: uint16(8457), + 2345: uint16(6666), + 2346: uint16(14385), + 2347: uint16(14387), + 2348: uint16(14383), + 2349: uint16(10560), + 2350: uint16(8988), + 2351: uint16(8251), + 2352: uint16(10586), + 2353: uint16(6957), + 2354: uint16(14399), + 2355: uint16(14398), + 2356: uint16(7767), + 2357: uint16(5725), + 2358: uint16(14392), + 2359: uint16(7448), + 2360: uint16(9543), + 2361: uint16(9744), + 2362: uint16(14390), + 2363: uint16(8252), + 2364: uint16(6999), + 2365: uint16(14395), + 2366: uint16(7447), + 2367: uint16(14389), + 2368: uint16(14394), + 2369: uint16(9778), + 2370: uint16(14388), + 2371: uint16(5632), + 2372: uint16(4668), + 2373: uint16(14396), + 2374: uint16(11530), + 2375: uint16(6445), + 2376: uint16(8724), + 2377: uint16(14393), + 2378: uint16(7995), + 2379: uint16(6164), + 2380: uint16(7747), + 2381: uint16(4165), + 2382: uint16(8219), + 2383: uint16(14391), + 2384: uint16(5156), + 2385: uint16(5670), + 2386: uint16(9006), + 2387: uint16(14397), + 2388: uint16(8254), + 2389: uint16(14400), + 2390: uint16(14402), + 2391: uint16(8470), + 2392: uint16(14408), + 2393: uint16(14403), + 2394: uint16(14405), + 2395: uint16(10272), + 2396: uint16(9042), + 2397: uint16(14406), + 2398: uint16(11275), + 2399: uint16(11303), + 2400: uint16(4888), + 2401: uint16(3853), + 2402: uint16(14404), + 2403: uint16(14401), + 2404: uint16(4951), + 2405: uint16(4166), + 2406: uint16(14407), + 2407: uint16(11304), + 2408: uint16(14411), + 2409: uint16(8474), + 2410: uint16(14418), + 2411: uint16(14412), + 2412: uint16(14409), + 2413: uint16(14416), + 2414: uint16(14386), + 2415: uint16(14413), + 2416: uint16(14417), + 2417: uint16(10017), + 2418: uint16(9290), + 2419: uint16(14410), + 2420: uint16(14414), + 2421: uint16(5671), + 2422: uint16(6480), + 2423: uint16(7996), + 2424: uint16(14422), + 2425: uint16(9221), + 2426: uint16(14419), + 2427: uint16(10815), + 2428: uint16(14420), + 2429: uint16(14421), + 2430: uint16(11053), + 2431: uint16(7937), + 2432: uint16(5697), + 2433: uint16(14428), + 2434: uint16(6676), + 2435: uint16(14425), + 2436: uint16(14424), + 2437: uint16(9745), + 2438: uint16(9492), + 2439: uint16(9232), + 2440: uint16(14426), + 2441: uint16(14427), + 2442: uint16(10318), + 2443: uint16(9764), + 2444: uint16(6658), + 2445: uint16(8016), + 2446: uint16(10799), + 2447: uint16(4648), + 2448: uint16(14596), + 2449: uint16(14429), + 2450: uint16(11305), + 2451: uint16(14598), + 2452: uint16(14594), + 2453: uint16(14595), + 2454: uint16(8255), + 2455: uint16(14593), + 2456: uint16(14366), + 2457: uint16(14597), + 2458: uint16(14592), + 2459: uint16(14602), + 2460: uint16(14603), + 2461: uint16(9222), + 2462: uint16(14605), + 2463: uint16(6659), + 2464: uint16(14600), + 2465: uint16(5147), + 2466: uint16(14606), + 2467: uint16(14599), + 2468: uint16(14610), + 2469: uint16(14609), + 2470: uint16(14608), + 2471: uint16(14611), + 2472: uint16(14613), + 2473: uint16(7504), + 2474: uint16(14612), + 2475: uint16(14616), + 2476: uint16(14614), + 2477: uint16(14615), + 2478: uint16(14415), + 2479: uint16(14618), + 2480: uint16(14617), + 2481: uint16(14423), + 2482: uint16(14619), + 2483: uint16(14607), + 2484: uint16(6712), + 2485: uint16(14620), + 2486: uint16(14621), + 2487: uint16(14623), + 2488: uint16(14622), + 2489: uint16(14624), + 2490: uint16(4445), + 2491: uint16(6165), + 2492: uint16(10587), + 2493: uint16(7950), + 2494: uint16(5933), + 2495: uint16(14626), + 2496: uint16(14629), + 2497: uint16(10289), + 2498: uint16(5182), + 2499: uint16(14628), + 2500: uint16(14627), + 2501: uint16(9779), + 2502: uint16(14630), + 2503: uint16(5396), + 2504: uint16(14632), + 2505: uint16(14631), + 2506: uint16(4889), + 2507: uint16(6677), + 2508: uint16(9527), + 2509: uint16(5672), + 2510: uint16(7763), + 2511: uint16(14633), + 2512: uint16(7951), + 2513: uint16(9223), + 2514: uint16(10302), + 2515: uint16(14634), + 2516: uint16(14635), + 2517: uint16(14636), + 2518: uint16(10519), + 2519: uint16(13372), + 2520: uint16(7973), + 2521: uint16(10283), + 2522: uint16(6455), + 2523: uint16(10052), + 2524: uint16(10018), + 2525: uint16(9260), + 2526: uint16(11552), + 2527: uint16(14638), + 2528: uint16(6959), + 2529: uint16(14639), + 2530: uint16(3861), + 2531: uint16(5427), + 2532: uint16(7980), + 2533: uint16(10303), + 2534: uint16(14640), + 2535: uint16(6689), + 2536: uint16(8742), + 2537: uint16(6714), + 2538: uint16(7702), + 2539: uint16(14641), + 2540: uint16(10588), + 2541: uint16(4182), + 2542: uint16(6715), + 2543: uint16(14644), + 2544: uint16(14642), + 2545: uint16(14645), + 2546: uint16(11544), + 2547: uint16(14643), + 2548: uint16(8026), + 2549: uint16(14646), + 2550: uint16(8465), + 2551: uint16(14647), + 2552: uint16(4953), + 2553: uint16(14649), + 2554: uint16(14648), + 2555: uint16(14650), + 2556: uint16(14651), + 2557: uint16(4954), + 2558: uint16(9563), + 2559: uint16(8725), + 2560: uint16(5195), + 2561: uint16(6716), + 2562: uint16(8256), + 2563: uint16(7227), + 2564: uint16(3855), + 2565: uint16(14652), + 2566: uint16(4353), + 2567: uint16(14656), + 2568: uint16(6166), + 2569: uint16(14655), + 2570: uint16(6410), + 2571: uint16(7449), + 2572: uint16(14654), + 2573: uint16(7450), + 2574: uint16(11039), + 2575: uint16(6409), + 2576: uint16(3894), + 2577: uint16(7981), + 2578: uint16(14661), + 2579: uint16(7952), + 2580: uint16(4134), + 2581: uint16(7220), + 2582: uint16(10821), + 2583: uint16(6481), + 2584: uint16(7451), + 2585: uint16(7942), + 2586: uint16(14660), + 2587: uint16(14658), + 2588: uint16(14659), + 2589: uint16(8778), + 2590: uint16(14853), + 2591: uint16(14665), + 2592: uint16(6749), + 2593: uint16(6167), + 2594: uint16(14663), + 2595: uint16(14664), + 2596: uint16(7703), + 2597: uint16(14662), + 2598: uint16(6670), + 2599: uint16(14667), + 2600: uint16(14666), + 2601: uint16(14671), + 2602: uint16(14672), + 2603: uint16(14668), + 2604: uint16(4609), + 2605: uint16(14669), + 2606: uint16(14670), + 2607: uint16(10036), + 2608: uint16(10304), + 2609: uint16(5673), + 2610: uint16(14673), + 2611: uint16(7953), + 2612: uint16(7452), + 2613: uint16(8753), + 2614: uint16(5414), + 2615: uint16(14674), + 2616: uint16(14678), + 2617: uint16(4394), + 2618: uint16(14675), + 2619: uint16(14677), + 2620: uint16(14676), + 2621: uint16(7242), + 2622: uint16(8743), + 2623: uint16(3876), + 2624: uint16(14679), + 2625: uint16(14680), + 2626: uint16(8969), + 2627: uint16(11600), + 2628: uint16(6690), + 2629: uint16(10570), + 2630: uint16(10780), + 2631: uint16(14849), + 2632: uint16(14682), + 2633: uint16(14685), + 2634: uint16(14684), + 2635: uint16(14681), + 2636: uint16(14848), + 2637: uint16(9533), + 2638: uint16(14683), + 2639: uint16(14850), + 2640: uint16(7243), + 2641: uint16(14851), + 2642: uint16(11306), + 2643: uint16(9815), + 2644: uint16(14852), + 2645: uint16(14854), + 2646: uint16(14855), + 2647: uint16(14856), + 2648: uint16(5417), + 2649: uint16(4135), + 2650: uint16(6168), + 2651: uint16(14857), + 2652: uint16(14858), + 2653: uint16(7248), + 2654: uint16(8257), + 2655: uint16(12599), + 2656: uint16(8221), + 2657: uint16(8220), + 2658: uint16(8503), + 2659: uint16(6438), + 2660: uint16(12113), + 2661: uint16(5709), + 2662: uint16(11276), + 2663: uint16(10589), + 2664: uint16(10333), + 2665: uint16(14859), + 2666: uint16(6482), + 2667: uint16(8990), + 2668: uint16(14860), + 2669: uint16(11790), + 2670: uint16(10781), + 2671: uint16(8970), + 2672: uint16(14861), + 2673: uint16(4955), + 2674: uint16(14862), + 2675: uint16(14863), + 2676: uint16(11065), + 2677: uint16(11011), + 2678: uint16(10837), + 2679: uint16(10811), + 2680: uint16(6660), + 2681: uint16(14865), + 2682: uint16(6986), + 2683: uint16(10800), + 2684: uint16(14867), + 2685: uint16(14870), + 2686: uint16(14869), + 2687: uint16(4952), + 2688: uint16(5183), + 2689: uint16(14866), + 2690: uint16(14868), + 2691: uint16(14871), + 2692: uint16(7768), + 2693: uint16(11354), + 2694: uint16(3880), + 2695: uint16(6463), + 2696: uint16(8475), + 2697: uint16(6972), + 2698: uint16(7506), + 2699: uint16(14874), + 2700: uint16(9261), + 2701: uint16(14872), + 2702: uint16(8458), + 2703: uint16(14873), + 2704: uint16(7505), + 2705: uint16(11068), + 2706: uint16(14875), + 2707: uint16(14876), + 2708: uint16(11335), + 2709: uint16(14881), + 2710: uint16(6169), + 2711: uint16(9780), + 2712: uint16(14878), + 2713: uint16(9291), + 2714: uint16(14653), + 2715: uint16(14657), + 2716: uint16(5166), + 2717: uint16(9766), + 2718: uint16(14880), + 2719: uint16(7453), + 2720: uint16(10019), + 2721: uint16(14886), + 2722: uint16(10073), + 2723: uint16(14877), + 2724: uint16(14883), + 2725: uint16(14882), + 2726: uint16(7982), + 2727: uint16(10828), + 2728: uint16(11570), + 2729: uint16(10822), + 2730: uint16(4395), + 2731: uint16(6717), + 2732: uint16(11815), + 2733: uint16(14885), + 2734: uint16(7764), + 2735: uint16(14884), + 2736: uint16(14879), + 2737: uint16(5934), + 2738: uint16(14891), + 2739: uint16(14889), + 2740: uint16(4396), + 2741: uint16(14887), + 2742: uint16(14893), + 2743: uint16(14899), + 2744: uint16(8487), + 2745: uint16(10528), + 2746: uint16(14901), + 2747: uint16(10241), + 2748: uint16(14900), + 2749: uint16(9807), + 2750: uint16(10782), + 2751: uint16(4890), + 2752: uint16(8022), + 2753: uint16(7199), + 2754: uint16(9010), + 2755: uint16(11277), + 2756: uint16(14896), + 2757: uint16(14895), + 2758: uint16(14897), + 2759: uint16(14894), + 2760: uint16(14902), + 2761: uint16(14892), + 2762: uint16(14890), + 2763: uint16(14898), + 2764: uint16(14888), + 2765: uint16(8779), + 2766: uint16(11095), + 2767: uint16(6949), + 2768: uint16(6483), + 2769: uint16(6425), + 2770: uint16(10830), + 2771: uint16(4640), + 2772: uint16(9005), + 2773: uint16(9513), + 2774: uint16(4136), + 2775: uint16(8017), + 2776: uint16(7955), + 2777: uint16(5641), + 2778: uint16(14904), + 2779: uint16(6170), + 2780: uint16(4699), + 2781: uint16(14906), + 2782: uint16(4691), + 2783: uint16(14912), + 2784: uint16(14909), + 2785: uint16(8018), + 2786: uint16(4650), + 2787: uint16(6411), + 2788: uint16(4649), + 2789: uint16(6446), + 2790: uint16(14907), + 2791: uint16(5700), + 2792: uint16(5674), + 2793: uint16(9292), + 2794: uint16(14905), + 2795: uint16(3877), + 2796: uint16(14908), + 2797: uint16(14910), + 2798: uint16(5420), + 2799: uint16(5643), + 2800: uint16(4891), + 2801: uint16(5162), + 2802: uint16(14913), + 2803: uint16(6488), + 2804: uint16(10832), + 2805: uint16(6678), + 2806: uint16(14914), + 2807: uint16(10255), + 2808: uint16(14926), + 2809: uint16(4370), + 2810: uint16(14915), + 2811: uint16(14932), + 2812: uint16(14916), + 2813: uint16(11553), + 2814: uint16(14923), + 2815: uint16(9790), + 2816: uint16(14931), + 2817: uint16(14918), + 2818: uint16(3859), + 2819: uint16(14920), + 2820: uint16(6171), + 2821: uint16(14922), + 2822: uint16(14921), + 2823: uint16(14917), + 2824: uint16(14928), + 2825: uint16(7454), + 2826: uint16(13132), + 2827: uint16(5959), + 2828: uint16(11355), + 2829: uint16(14919), + 2830: uint16(9043), + 2831: uint16(4610), + 2832: uint16(6412), + 2833: uint16(14911), + 2834: uint16(14927), + 2835: uint16(4672), + 2836: uint16(14925), + 2837: uint16(14929), + 2838: uint16(9293), + 2839: uint16(4957), + 2840: uint16(15121), + 2841: uint16(11048), + 2842: uint16(14934), + 2843: uint16(4956), + 2844: uint16(14941), + 2845: uint16(10783), + 2846: uint16(15104), + 2847: uint16(15106), + 2848: uint16(15110), + 2849: uint16(14936), + 2850: uint16(8713), + 2851: uint16(9294), + 2852: uint16(15114), + 2853: uint16(14939), + 2854: uint16(15111), + 2855: uint16(15105), + 2856: uint16(7704), + 2857: uint16(15115), + 2858: uint16(7954), + 2859: uint16(15113), + 2860: uint16(4892), + 2861: uint16(11823), + 2862: uint16(14933), + 2863: uint16(15109), + 2864: uint16(3895), + 2865: uint16(14935), + 2866: uint16(11033), + 2867: uint16(14940), + 2868: uint16(7681), + 2869: uint16(8998), + 2870: uint16(14930), + 2871: uint16(15108), + 2872: uint16(7769), + 2873: uint16(15118), + 2874: uint16(4688), + 2875: uint16(5888), + 2876: uint16(15120), + 2877: uint16(14937), + 2878: uint16(15119), + 2879: uint16(15112), + 2880: uint16(14938), + 2881: uint16(15116), + 2882: uint16(15117), + 2883: uint16(15134), + 2884: uint16(9517), + 2885: uint16(15107), + 2886: uint16(15130), + 2887: uint16(15132), + 2888: uint16(9015), + 2889: uint16(11307), + 2890: uint16(10325), + 2891: uint16(15127), + 2892: uint16(8489), + 2893: uint16(15133), + 2894: uint16(8222), + 2895: uint16(15124), + 2896: uint16(15137), + 2897: uint16(15136), + 2898: uint16(9550), + 2899: uint16(15135), + 2900: uint16(9545), + 2901: uint16(15139), + 2902: uint16(15126), + 2903: uint16(5415), + 2904: uint16(15129), + 2905: uint16(7228), + 2906: uint16(9791), + 2907: uint16(15131), + 2908: uint16(5418), + 2909: uint16(15123), + 2910: uint16(15125), + 2911: uint16(15122), + 2912: uint16(11791), + 2913: uint16(4665), + 2914: uint16(15128), + 2915: uint16(15138), + 2916: uint16(4628), + 2917: uint16(6470), + 2918: uint16(4156), + 2919: uint16(15155), + 2920: uint16(11792), + 2921: uint16(15158), + 2922: uint16(7705), + 2923: uint16(15157), + 2924: uint16(15156), + 2925: uint16(15153), + 2926: uint16(15141), + 2927: uint16(15170), + 2928: uint16(15140), + 2929: uint16(15159), + 2930: uint16(15151), + 2931: uint16(15146), + 2932: uint16(15143), + 2933: uint16(15144), + 2934: uint16(15152), + 2935: uint16(21249), + 2936: uint16(15149), + 2937: uint16(6172), + 2938: uint16(8999), + 2939: uint16(8259), + 2940: uint16(15147), + 2941: uint16(15142), + 2942: uint16(15145), + 2943: uint16(11308), + 2944: uint16(10825), + 2945: uint16(15150), + 2946: uint16(15160), + 2947: uint16(15168), + 2948: uint16(15161), + 2949: uint16(15174), + 2950: uint16(15172), + 2951: uint16(15167), + 2952: uint16(15166), + 2953: uint16(9007), + 2954: uint16(8260), + 2955: uint16(15164), + 2956: uint16(15162), + 2957: uint16(15169), + 2958: uint16(15175), + 2959: uint16(10068), + 2960: uint16(15181), + 2961: uint16(15176), + 2962: uint16(15179), + 2963: uint16(15173), + 2964: uint16(8787), + 2965: uint16(10263), + 2966: uint16(15163), + 2967: uint16(15171), + 2968: uint16(7455), + 2969: uint16(11054), + 2970: uint16(15191), + 2971: uint16(15178), + 2972: uint16(5889), + 2973: uint16(4354), + 2974: uint16(4670), + 2975: uint16(15154), + 2976: uint16(7456), + 2977: uint16(15183), + 2978: uint16(15190), + 2979: uint16(7000), + 2980: uint16(4689), + 2981: uint16(8717), + 2982: uint16(15180), + 2983: uint16(15185), + 2984: uint16(15189), + 2985: uint16(5397), + 2986: uint16(5163), + 2987: uint16(15187), + 2988: uint16(5120), + 2989: uint16(9514), + 2990: uint16(15186), + 2991: uint16(15188), + 2992: uint16(15182), + 2993: uint16(15184), + 2994: uint16(4671), + 2995: uint16(8744), + 2996: uint16(15195), + 2997: uint16(15193), + 2998: uint16(5960), + 2999: uint16(15192), + 3000: uint16(15360), + 3001: uint16(14903), + 3002: uint16(15194), + 3003: uint16(15196), + 3004: uint16(15197), + 3005: uint16(15371), + 3006: uint16(15367), + 3007: uint16(14924), + 3008: uint16(15366), + 3009: uint16(15365), + 3010: uint16(15362), + 3011: uint16(15177), + 3012: uint16(15364), + 3013: uint16(15363), + 3014: uint16(15369), + 3015: uint16(11781), + 3016: uint16(15372), + 3017: uint16(5466), + 3018: uint16(15368), + 3019: uint16(15370), + 3020: uint16(9990), + 3021: uint16(15373), + 3022: uint16(15377), + 3023: uint16(15374), + 3024: uint16(11346), + 3025: uint16(15375), + 3026: uint16(15165), + 3027: uint16(15378), + 3028: uint16(15379), + 3029: uint16(4116), + 3030: uint16(15381), + 3031: uint16(5702), + 3032: uint16(6912), + 3033: uint16(5428), + 3034: uint16(4355), + 3035: uint16(11326), + 3036: uint16(15383), + 3037: uint16(15382), + 3038: uint16(15385), + 3039: uint16(5148), + 3040: uint16(5429), + 3041: uint16(4893), + 3042: uint16(15388), + 3043: uint16(15387), + 3044: uint16(15389), + 3045: uint16(4397), + 3046: uint16(8726), + 3047: uint16(15390), + 3048: uint16(4894), + 3049: uint16(15392), + 3050: uint16(15391), + 3051: uint16(15393), + 3052: uint16(15394), + 3053: uint16(15395), + 3054: uint16(6718), + 3055: uint16(7956), + 3056: uint16(6400), + 3057: uint16(10319), + 3058: uint16(10561), + 3059: uint16(11811), + 3060: uint16(6740), + 3061: uint16(6447), + 3062: uint16(11601), + 3063: uint16(15396), + 3064: uint16(15397), + 3065: uint16(6719), + 3066: uint16(15398), + 3067: uint16(15399), + 3068: uint16(15401), + 3069: uint16(15400), + 3070: uint16(10807), + 3071: uint16(7229), + 3072: uint16(6987), + 3073: uint16(6691), + 3074: uint16(15402), + 3075: uint16(15404), + 3076: uint16(7682), + 3077: uint16(15403), + 3078: uint16(15405), + 3079: uint16(15406), + 3080: uint16(15407), + 3081: uint16(15408), + 3082: uint16(15409), + 3083: uint16(15411), + 3084: uint16(15410), + 3085: uint16(15412), + 3086: uint16(4356), + 3087: uint16(8745), + 3088: uint16(15413), + 3089: uint16(6661), + 3090: uint16(4651), + 3091: uint16(15414), + 3092: uint16(9249), + 3093: uint16(13099), + 3094: uint16(5122), + 3095: uint16(15415), + 3096: uint16(15416), + 3097: uint16(10571), + 3098: uint16(10823), + 3099: uint16(9510), + 3100: uint16(15417), + 3101: uint16(10053), + 3102: uint16(10074), + 3103: uint16(11058), + 3104: uint16(15418), + 3105: uint16(15420), + 3106: uint16(15419), + 3107: uint16(15422), + 3108: uint16(15421), + 3109: uint16(15424), + 3110: uint16(6720), + 3111: uint16(11024), + 3112: uint16(15425), + 3113: uint16(15426), + 3114: uint16(5123), + 3115: uint16(15427), + 3116: uint16(15429), + 3117: uint16(15428), + 3118: uint16(7748), + 3119: uint16(10264), + 3120: uint16(4137), + 3121: uint16(10020), + 3122: uint16(9044), + 3123: uint16(7200), + 3124: uint16(5184), + 3125: uint16(10021), + 3126: uint16(6925), + 3127: uint16(15431), + 3128: uint16(4895), + 3129: uint16(4183), + 3130: uint16(9553), + 3131: uint16(15430), + 3132: uint16(6173), + 3133: uint16(8754), + 3134: uint16(15432), + 3135: uint16(15440), + 3136: uint16(15433), + 3137: uint16(8480), + 3138: uint16(5185), + 3139: uint16(15441), + 3140: uint16(5703), + 3141: uint16(5124), + 3142: uint16(15439), + 3143: uint16(15437), + 3144: uint16(15434), + 3145: uint16(11327), + 3146: uint16(8991), + 3147: uint16(9528), + 3148: uint16(15435), + 3149: uint16(15443), + 3150: uint16(15442), + 3151: uint16(5634), + 3152: uint16(4364), + 3153: uint16(6426), + 3154: uint16(15436), + 3155: uint16(15438), + 3156: uint16(10806), + 3157: uint16(8531), + 3158: uint16(10838), + 3159: uint16(15451), + 3160: uint16(15452), + 3161: uint16(4398), + 3162: uint16(10503), + 3163: uint16(11100), + 3164: uint16(15616), + 3165: uint16(6914), + 3166: uint16(7457), + 3167: uint16(15447), + 3168: uint16(15453), + 3169: uint16(4167), + 3170: uint16(5398), + 3171: uint16(15444), + 3172: uint16(15449), + 3173: uint16(8019), + 3174: uint16(9808), + 3175: uint16(10054), + 3176: uint16(15446), + 3177: uint16(10752), + 3178: uint16(15448), + 3179: uint16(15619), + 3180: uint16(15617), + 3181: uint16(15450), + 3182: uint16(10753), + 3183: uint16(9767), + 3184: uint16(5186), + 3185: uint16(9220), + 3186: uint16(8780), + 3187: uint16(15620), + 3188: uint16(15618), + 3189: uint16(8504), + 3190: uint16(15445), + 3191: uint16(4138), + 3192: uint16(11309), + 3193: uint16(15631), + 3194: uint16(15630), + 3195: uint16(8021), + 3196: uint16(15627), + 3197: uint16(11339), + 3198: uint16(9493), + 3199: uint16(15621), + 3200: uint16(8996), + 3201: uint16(4139), + 3202: uint16(6174), + 3203: uint16(15624), + 3204: uint16(7174), + 3205: uint16(15629), + 3206: uint16(15628), + 3207: uint16(15623), + 3208: uint16(15626), + 3209: uint16(4679), + 3210: uint16(15625), + 3211: uint16(9768), + 3212: uint16(11533), + 3213: uint16(7507), + 3214: uint16(8020), + 3215: uint16(15637), + 3216: uint16(15635), + 3217: uint16(10284), + 3218: uint16(15632), + 3219: uint16(15634), + 3220: uint16(4121), + 3221: uint16(6175), + 3222: uint16(11793), + 3223: uint16(4636), + 3224: uint16(10305), + 3225: uint16(11328), + 3226: uint16(4611), + 3227: uint16(7706), + 3228: uint16(15636), + 3229: uint16(15641), + 3230: uint16(7458), + 3231: uint16(11279), + 3232: uint16(15638), + 3233: uint16(15633), + 3234: uint16(15639), + 3235: uint16(11581), + 3236: uint16(9298), + 3237: uint16(9505), + 3238: uint16(4629), + 3239: uint16(4148), + 3240: uint16(15645), + 3241: uint16(15648), + 3242: uint16(11554), + 3243: uint16(11331), + 3244: uint16(15655), + 3245: uint16(15649), + 3246: uint16(15646), + 3247: uint16(11571), + 3248: uint16(15652), + 3249: uint16(7209), + 3250: uint16(15654), + 3251: uint16(15659), + 3252: uint16(9296), + 3253: uint16(15657), + 3254: uint16(15651), + 3255: uint16(8727), + 3256: uint16(15658), + 3257: uint16(15647), + 3258: uint16(15653), + 3259: uint16(15660), + 3260: uint16(3931), + 3261: uint16(15650), + 3262: uint16(15661), + 3263: uint16(7707), + 3264: uint16(7230), + 3265: uint16(10500), + 3266: uint16(6413), + 3267: uint16(15642), + 3268: uint16(15656), + 3269: uint16(9241), + 3270: uint16(7957), + 3271: uint16(4680), + 3272: uint16(6448), + 3273: uint16(7459), + 3274: uint16(15644), + 3275: uint16(7201), + 3276: uint16(5675), + 3277: uint16(15643), + 3278: uint16(15665), + 3279: uint16(7244), + 3280: uint16(5913), + 3281: uint16(15680), + 3282: uint16(15674), + 3283: uint16(5203), + 3284: uint16(9262), + 3285: uint16(15669), + 3286: uint16(15678), + 3287: uint16(3854), + 3288: uint16(4113), + 3289: uint16(4376), + 3290: uint16(15671), + 3291: uint16(8459), + 3292: uint16(15662), + 3293: uint16(15664), + 3294: uint16(6176), + 3295: uint16(15681), + 3296: uint16(15676), + 3297: uint16(15668), + 3298: uint16(15675), + 3299: uint16(11018), + 3300: uint16(15673), + 3301: uint16(15677), + 3302: uint16(5935), + 3303: uint16(7460), + 3304: uint16(8728), + 3305: uint16(15667), + 3306: uint16(11278), + 3307: uint16(15670), + 3308: uint16(15663), + 3309: uint16(9297), + 3310: uint16(15666), + 3311: uint16(15672), + 3312: uint16(11824), + 3313: uint16(6941), + 3314: uint16(10845), + 3315: uint16(15682), + 3316: uint16(9997), + 3317: uint16(15694), + 3318: uint16(5914), + 3319: uint16(7231), + 3320: uint16(15684), + 3321: uint16(11534), + 3322: uint16(6177), + 3323: uint16(15697), + 3324: uint16(3917), + 3325: uint16(15695), + 3326: uint16(15683), + 3327: uint16(15689), + 3328: uint16(15691), + 3329: uint16(11310), + 3330: uint16(15686), + 3331: uint16(9229), + 3332: uint16(15688), + 3333: uint16(15696), + 3334: uint16(15690), + 3335: uint16(11046), + 3336: uint16(15685), + 3337: uint16(6913), + 3338: uint16(15709), + 3339: uint16(4681), + 3340: uint16(15687), + 3341: uint16(15692), + 3342: uint16(15693), + 3343: uint16(8523), + 3344: uint16(8505), + 3345: uint16(15701), + 3346: uint16(15707), + 3347: uint16(15705), + 3348: uint16(9224), + 3349: uint16(15874), + 3350: uint16(15702), + 3351: uint16(15703), + 3352: uint16(15679), + 3353: uint16(5208), + 3354: uint16(10265), + 3355: uint16(6942), + 3356: uint16(6230), + 3357: uint16(11794), + 3358: uint16(15699), + 3359: uint16(15873), + 3360: uint16(4168), + 3361: uint16(8261), + 3362: uint16(9816), + 3363: uint16(4896), + 3364: uint16(11609), + 3365: uint16(11008), + 3366: uint16(9009), + 3367: uint16(15706), + 3368: uint16(15708), + 3369: uint16(8209), + 3370: uint16(15872), + 3371: uint16(15704), + 3372: uint16(15698), + 3373: uint16(4898), + 3374: uint16(5704), + 3375: uint16(15886), + 3376: uint16(15881), + 3377: uint16(8023), + 3378: uint16(4674), + 3379: uint16(7232), + 3380: uint16(15890), + 3381: uint16(15883), + 3382: uint16(8971), + 3383: uint16(15880), + 3384: uint16(9016), + 3385: uint16(15915), + 3386: uint16(15877), + 3387: uint16(15876), + 3388: uint16(15885), + 3389: uint16(15879), + 3390: uint16(15878), + 3391: uint16(15884), + 3392: uint16(7936), + 3393: uint16(15875), + 3394: uint16(15887), + 3395: uint16(15888), + 3396: uint16(4897), + 3397: uint16(15893), + 3398: uint16(15892), + 3399: uint16(15894), + 3400: uint16(15897), + 3401: uint16(9250), + 3402: uint16(15891), + 3403: uint16(15895), + 3404: uint16(5698), + 3405: uint16(8536), + 3406: uint16(15889), + 3407: uint16(9754), + 3408: uint16(15896), + 3409: uint16(15901), + 3410: uint16(15899), + 3411: uint16(15902), + 3412: uint16(15905), + 3413: uint16(15898), + 3414: uint16(6217), + 3415: uint16(9735), + 3416: uint16(15640), + 3417: uint16(11347), + 3418: uint16(15900), + 3419: uint16(15904), + 3420: uint16(8532), + 3421: uint16(15903), + 3422: uint16(15882), + 3423: uint16(20040), + 3424: uint16(15908), + 3425: uint16(15912), + 3426: uint16(15910), + 3427: uint16(15906), + 3428: uint16(15907), + 3429: uint16(15911), + 3430: uint16(15909), + 3431: uint16(10285), + 3432: uint16(15917), + 3433: uint16(15914), + 3434: uint16(15913), + 3435: uint16(15916), + 3436: uint16(9523), + 3437: uint16(15918), + 3438: uint16(8788), + 3439: uint16(8524), + 3440: uint16(7940), + 3441: uint16(15919), + 3442: uint16(15921), + 3443: uint16(15920), + 3444: uint16(15700), + 3445: uint16(15922), + 3446: uint16(9542), + 3447: uint16(15923), + 3448: uint16(4399), + 3449: uint16(9299), + 3450: uint16(4612), + 3451: uint16(5187), + 3452: uint16(6973), + 3453: uint16(6449), + 3454: uint16(11782), + 3455: uint16(7749), + 3456: uint16(4169), + 3457: uint16(15925), + 3458: uint16(15924), + 3459: uint16(15928), + 3460: uint16(8729), + 3461: uint16(15931), + 3462: uint16(15926), + 3463: uint16(15930), + 3464: uint16(15929), + 3465: uint16(9247), + 3466: uint16(3896), + 3467: uint16(11604), + 3468: uint16(15933), + 3469: uint16(4103), + 3470: uint16(15935), + 3471: uint16(15934), + 3472: uint16(15932), + 3473: uint16(15927), + 3474: uint16(10754), + 3475: uint16(15937), + 3476: uint16(15936), + 3477: uint16(4170), + 3478: uint16(15939), + 3479: uint16(10513), + 3480: uint16(15938), + 3481: uint16(11028), + 3482: uint16(7462), + 3483: uint16(8210), + 3484: uint16(7461), + 3485: uint16(11610), + 3486: uint16(15945), + 3487: uint16(8024), + 3488: uint16(15941), + 3489: uint16(15946), + 3490: uint16(4171), + 3491: uint16(15944), + 3492: uint16(9792), + 3493: uint16(15940), + 3494: uint16(15943), + 3495: uint16(7463), + 3496: uint16(10032), + 3497: uint16(15947), + 3498: uint16(6960), + 3499: uint16(8025), + 3500: uint16(15950), + 3501: uint16(15942), + 3502: uint16(5638), + 3503: uint16(15948), + 3504: uint16(11311), + 3505: uint16(15951), + 3506: uint16(21253), + 3507: uint16(7214), + 3508: uint16(15952), + 3509: uint16(15953), + 3510: uint16(9741), + 3511: uint16(15955), + 3512: uint16(15956), + 3513: uint16(9746), + 3514: uint16(9300), + 3515: uint16(15958), + 3516: uint16(15960), + 3517: uint16(11572), + 3518: uint16(15957), + 3519: uint16(15959), + 3520: uint16(4172), + 3521: uint16(15954), + 3522: uint16(12858), + 3523: uint16(15961), + 3524: uint16(8262), + 3525: uint16(6679), + 3526: uint16(15963), + 3527: uint16(15962), + 3528: uint16(7683), + 3529: uint16(12600), + 3530: uint16(15964), + 3531: uint16(16128), + 3532: uint16(15949), + 3533: uint16(15965), + 3534: uint16(16129), + 3535: uint16(9817), + 3536: uint16(16130), + 3537: uint16(16131), + 3538: uint16(16132), + 3539: uint16(16133), + 3540: uint16(9021), + 3541: uint16(16135), + 3542: uint16(16134), + 3543: uint16(16136), + 3544: uint16(16137), + 3545: uint16(6974), + 3546: uint16(10306), + 3547: uint16(11083), + 3548: uint16(16138), + 3549: uint16(16139), + 3550: uint16(8245), + 3551: uint16(6915), + 3552: uint16(16140), + 3553: uint16(16141), + 3554: uint16(16142), + 3555: uint16(10545), + 3556: uint16(10022), + 3557: uint16(16143), + 3558: uint16(9782), + 3559: uint16(8972), + 3560: uint16(16144), + 3561: uint16(4422), + 3562: uint16(5196), + 3563: uint16(11045), + 3564: uint16(11029), + 3565: uint16(4371), + 3566: uint16(11795), + 3567: uint16(10801), + 3568: uint16(10505), + 3569: uint16(7958), + 3570: uint16(16145), + 3571: uint16(9506), + 3572: uint16(5890), + 3573: uint16(16146), + 3574: uint16(6451), + 3575: uint16(16148), + 3576: uint16(16147), + 3577: uint16(16149), + 3578: uint16(16150), + 3579: uint16(16151), + 3580: uint16(5149), + 3581: uint16(16152), + 3582: uint16(16153), + 3583: uint16(5891), + 3584: uint16(10023), + 3585: uint16(16155), + 3586: uint16(7508), + 3587: uint16(16154), + 3588: uint16(5399), + 3589: uint16(16156), + 3590: uint16(16158), + 3591: uint16(16157), + 3592: uint16(16159), + 3593: uint16(5936), + 3594: uint16(16160), + 3595: uint16(5448), + 3596: uint16(8223), + 3597: uint16(6236), + 3598: uint16(16162), + 3599: uint16(16163), + 3600: uint16(16161), + 3601: uint16(6988), + 3602: uint16(9511), + 3603: uint16(5400), + 3604: uint16(16165), + 3605: uint16(8715), + 3606: uint16(16164), + 3607: uint16(11796), + 3608: uint16(9793), + 3609: uint16(16168), + 3610: uint16(16170), + 3611: uint16(16167), + 3612: uint16(11059), + 3613: uint16(16169), + 3614: uint16(16171), + 3615: uint16(11555), + 3616: uint16(16175), + 3617: uint16(16174), + 3618: uint16(8789), + 3619: uint16(9740), + 3620: uint16(5892), + 3621: uint16(16173), + 3622: uint16(16172), + 3623: uint16(11280), + 3624: uint16(11281), + 3625: uint16(16176), + 3626: uint16(4173), + 3627: uint16(6229), + 3628: uint16(6721), + 3629: uint16(16177), + 3630: uint16(16178), + 3631: uint16(16180), + 3632: uint16(7202), + 3633: uint16(16182), + 3634: uint16(16181), + 3635: uint16(16183), + 3636: uint16(4652), + 3637: uint16(16185), + 3638: uint16(16184), + 3639: uint16(16187), + 3640: uint16(16186), + 3641: uint16(5915), + 3642: uint16(11527), + 3643: uint16(5419), + 3644: uint16(4357), + 3645: uint16(5449), + 3646: uint16(4928), + 3647: uint16(11591), + 3648: uint16(16189), + 3649: uint16(16191), + 3650: uint16(16192), + 3651: uint16(4400), + 3652: uint16(16188), + 3653: uint16(6680), + 3654: uint16(8992), + 3655: uint16(16190), + 3656: uint16(16195), + 3657: uint16(6989), + 3658: uint16(16193), + 3659: uint16(5661), + 3660: uint16(10024), + 3661: uint16(16194), + 3662: uint16(16221), + 3663: uint16(16200), + 3664: uint16(5916), + 3665: uint16(5188), + 3666: uint16(16197), + 3667: uint16(11356), + 3668: uint16(11535), + 3669: uint16(8533), + 3670: uint16(16199), + 3671: uint16(16201), + 3672: uint16(11573), + 3673: uint16(5430), + 3674: uint16(10075), + 3675: uint16(9769), + 3676: uint16(16202), + 3677: uint16(16204), + 3678: uint16(16207), + 3679: uint16(16203), + 3680: uint16(16206), + 3681: uint16(5961), + 3682: uint16(4140), + 3683: uint16(16208), + 3684: uint16(7759), + 3685: uint16(16205), + 3686: uint16(11579), + 3687: uint16(16211), + 3688: uint16(21251), + 3689: uint16(16209), + 3690: uint16(16212), + 3691: uint16(16198), + 3692: uint16(16210), + 3693: uint16(6427), + 3694: uint16(16213), + 3695: uint16(16214), + 3696: uint16(11357), + 3697: uint16(16215), + 3698: uint16(16216), + 3699: uint16(16196), + 3700: uint16(16217), + 3701: uint16(4899), + 3702: uint16(6916), + 3703: uint16(16218), + 3704: uint16(16219), + 3705: uint16(16220), + 3706: uint16(4122), + 3707: uint16(16384), + 3708: uint16(10266), + 3709: uint16(16385), + 3710: uint16(4867), + 3711: uint16(16386), + 3712: uint16(16387), + 3713: uint16(16388), + 3714: uint16(16390), + 3715: uint16(16391), + 3716: uint16(16389), + 3717: uint16(10290), + 3718: uint16(16393), + 3719: uint16(16392), + 3720: uint16(16395), + 3721: uint16(16394), + 3722: uint16(16396), + 3723: uint16(16397), + 3724: uint16(16399), + 3725: uint16(16398), + 3726: uint16(6232), + 3727: uint16(16401), + 3728: uint16(16400), + 3729: uint16(4900), + 3730: uint16(7730), + 3731: uint16(9243), + 3732: uint16(16402), + 3733: uint16(7959), + 3734: uint16(6681), + 3735: uint16(4184), + 3736: uint16(16403), + 3737: uint16(11312), + 3738: uint16(10562), + 3739: uint16(16404), + 3740: uint16(9251), + 3741: uint16(11282), + 3742: uint16(6178), + 3743: uint16(7708), + 3744: uint16(8746), + 3745: uint16(12563), + 3746: uint16(8973), + 3747: uint16(4423), + 3748: uint16(16405), + 3749: uint16(16406), + 3750: uint16(16411), + 3751: uint16(16409), + 3752: uint16(16408), + 3753: uint16(14625), + 3754: uint16(4613), + 3755: uint16(16407), + 3756: uint16(3897), + 3757: uint16(9993), + 3758: uint16(10025), + 3759: uint16(11536), + 3760: uint16(16412), + 3761: uint16(16410), + 3762: uint16(8763), + 3763: uint16(7941), + 3764: uint16(9994), + 3765: uint16(10252), + 3766: uint16(16414), + 3767: uint16(11531), + 3768: uint16(5676), + 3769: uint16(16415), + 3770: uint16(16413), + 3771: uint16(10037), + 3772: uint16(16416), + 3773: uint16(16417), + 3774: uint16(3898), + 3775: uint16(7509), + 3776: uint16(16422), + 3777: uint16(16419), + 3778: uint16(9548), + 3779: uint16(16418), + 3780: uint16(5125), + 3781: uint16(16425), + 3782: uint16(16420), + 3783: uint16(16421), + 3784: uint16(16424), + 3785: uint16(16423), + 3786: uint16(10244), + 3787: uint16(8225), + 3788: uint16(8224), + 3789: uint16(5150), + 3790: uint16(16426), + 3791: uint16(16427), + 3792: uint16(16428), + 3793: uint16(16430), + 3794: uint16(16429), + 3795: uint16(4149), + 3796: uint16(16438), + 3797: uint16(10055), + 3798: uint16(16432), + 3799: uint16(16434), + 3800: uint16(16436), + 3801: uint16(7709), + 3802: uint16(16437), + 3803: uint16(16435), + 3804: uint16(6943), + 3805: uint16(16431), + 3806: uint16(16433), + 3807: uint16(10273), + 3808: uint16(7464), + 3809: uint16(16440), + 3810: uint16(16439), + 3811: uint16(16441), + 3812: uint16(6917), + 3813: uint16(6414), + 3814: uint16(9302), + 3815: uint16(16442), + 3816: uint16(9002), + 3817: uint16(16444), + 3818: uint16(11520), + 3819: uint16(16443), + 3820: uint16(8264), + 3821: uint16(16449), + 3822: uint16(16451), + 3823: uint16(16452), + 3824: uint16(8755), + 3825: uint16(16450), + 3826: uint16(16447), + 3827: uint16(16445), + 3828: uint16(16446), + 3829: uint16(16448), + 3830: uint16(16455), + 3831: uint16(16453), + 3832: uint16(16454), + 3833: uint16(16456), + 3834: uint16(16458), + 3835: uint16(16459), + 3836: uint16(16460), + 3837: uint16(16461), + 3838: uint16(16457), + 3839: uint16(16463), + 3840: uint16(16462), + 3841: uint16(16464), + 3842: uint16(11556), + 3843: uint16(16467), + 3844: uint16(16465), + 3845: uint16(16466), + 3846: uint16(4929), + 3847: uint16(11101), + 3848: uint16(10537), + 3849: uint16(16469), + 3850: uint16(16468), + 3851: uint16(16470), + 3852: uint16(16471), + 3853: uint16(16475), + 3854: uint16(16472), + 3855: uint16(16473), + 3856: uint16(16474), + 3857: uint16(16476), + 3858: uint16(16477), + 3859: uint16(16640), + 3860: uint16(16641), + 3861: uint16(16642), + 3862: uint16(9998), + 3863: uint16(9263), + 3864: uint16(16643), + 3865: uint16(9809), + 3866: uint16(10259), + 3867: uint16(16644), + 3868: uint16(16645), + 3869: uint16(9225), + 3870: uint16(4614), + 3871: uint16(6179), + 3872: uint16(16646), + 3873: uint16(16647), + 3874: uint16(16648), + 3875: uint16(6664), + 3876: uint16(16650), + 3877: uint16(16649), + 3878: uint16(16651), + 3879: uint16(16652), + 3880: uint16(10056), + 3881: uint16(16653), + 3882: uint16(16654), + 3883: uint16(21064), + 3884: uint16(16655), + 3885: uint16(16656), + 3886: uint16(16657), + 3887: uint16(6669), + 3888: uint16(16658), + 3889: uint16(9781), + 3890: uint16(10814), + 3891: uint16(4141), + 3892: uint16(4150), + 3893: uint16(16659), + 3894: uint16(16661), + 3895: uint16(16660), + 3896: uint16(9295), + 3897: uint16(7960), + 3898: uint16(15384), + 3899: uint16(16662), + 3900: uint16(11040), + 3901: uint16(16663), + 3902: uint16(4901), + 3903: uint16(10038), + 3904: uint16(16664), + 3905: uint16(16665), + 3906: uint16(16666), + 3907: uint16(11067), + 3908: uint16(11060), + 3909: uint16(8989), + 3910: uint16(8265), + 3911: uint16(16668), + 3912: uint16(7233), + 3913: uint16(7465), + 3914: uint16(16671), + 3915: uint16(16670), + 3916: uint16(16669), + 3917: uint16(10076), + 3918: uint16(4902), + 3919: uint16(5896), + 3920: uint16(16677), + 3921: uint16(16674), + 3922: uint16(7710), + 3923: uint16(11025), + 3924: uint16(16673), + 3925: uint16(16675), + 3926: uint16(16676), + 3927: uint16(16672), + 3928: uint16(16678), + 3929: uint16(16679), + 3930: uint16(8974), + 3931: uint16(4930), + 3932: uint16(8772), + 3933: uint16(16680), + 3934: uint16(16681), + 3935: uint16(16684), + 3936: uint16(7750), + 3937: uint16(9507), + 3938: uint16(16685), + 3939: uint16(10802), + 3940: uint16(16682), + 3941: uint16(16683), + 3942: uint16(16688), + 3943: uint16(16687), + 3944: uint16(16686), + 3945: uint16(16690), + 3946: uint16(16689), + 3947: uint16(16691), + 3948: uint16(16693), + 3949: uint16(16692), + 3950: uint16(10540), + 3951: uint16(7221), + 3952: uint16(11557), + 3953: uint16(16694), + 3954: uint16(9494), + 3955: uint16(16695), + 3956: uint16(16696), + 3957: uint16(16700), + 3958: uint16(16698), + 3959: uint16(16699), + 3960: uint16(16697), + 3961: uint16(16701), + 3962: uint16(16702), + 3963: uint16(16703), + 3964: uint16(16704), + 3965: uint16(11030), + 3966: uint16(16705), + 3967: uint16(11087), + 3968: uint16(16706), + 3969: uint16(8749), + 3970: uint16(9801), + 3971: uint16(5450), + 3972: uint16(8730), + 3973: uint16(16707), + 3974: uint16(5401), + 3975: uint16(7983), + 3976: uint16(16708), + 3977: uint16(6428), + 3978: uint16(16709), + 3979: uint16(16710), + 3980: uint16(5893), + 3981: uint16(6452), + 3982: uint16(16712), + 3983: uint16(9269), + 3984: uint16(6453), + 3985: uint16(5165), + 3986: uint16(10755), + 3987: uint16(9770), + 3988: uint16(9270), + 3989: uint16(6203), + 3990: uint16(16714), + 3991: uint16(7466), + 3992: uint16(11537), + 3993: uint16(6180), + 3994: uint16(5894), + 3995: uint16(9986), + 3996: uint16(16716), + 3997: uint16(16718), + 3998: uint16(5962), + 3999: uint16(16717), + 4000: uint16(9045), + 4001: uint16(16720), + 4002: uint16(4630), + 4003: uint16(16715), + 4004: uint16(10057), + 4005: uint16(4111), + 4006: uint16(6475), + 4007: uint16(11825), + 4008: uint16(16719), + 4009: uint16(16721), + 4010: uint16(10538), + 4011: uint16(7992), + 4012: uint16(16723), + 4013: uint16(16724), + 4014: uint16(16722), + 4015: uint16(4653), + 4016: uint16(16730), + 4017: uint16(16729), + 4018: uint16(6918), + 4019: uint16(16731), + 4020: uint16(16726), + 4021: uint16(16732), + 4022: uint16(16727), + 4023: uint16(10039), + 4024: uint16(16725), + 4025: uint16(16728), + 4026: uint16(16897), + 4027: uint16(16896), + 4028: uint16(10816), + 4029: uint16(16733), + 4030: uint16(3914), + 4031: uint16(16899), + 4032: uint16(16898), + 4033: uint16(7467), + 4034: uint16(16900), + 4035: uint16(8226), + 4036: uint16(16902), + 4037: uint16(16901), + 4038: uint16(16903), + 4039: uint16(16711), + 4040: uint16(16713), + 4041: uint16(16905), + 4042: uint16(16904), + 4043: uint16(6919), + 4044: uint16(11592), + 4045: uint16(6961), + 4046: uint16(16906), + 4047: uint16(5654), + 4048: uint16(5151), + 4049: uint16(5126), + 4050: uint16(6722), + 4051: uint16(11283), + 4052: uint16(16912), + 4053: uint16(16911), + 4054: uint16(8227), + 4055: uint16(16908), + 4056: uint16(16910), + 4057: uint16(7210), + 4058: uint16(7711), + 4059: uint16(16909), + 4060: uint16(16907), + 4061: uint16(9737), + 4062: uint16(7468), + 4063: uint16(10267), + 4064: uint16(6454), + 4065: uint16(9303), + 4066: uint16(16913), + 4067: uint16(16914), + 4068: uint16(16936), + 4069: uint16(5431), + 4070: uint16(11804), + 4071: uint16(8212), + 4072: uint16(16915), + 4073: uint16(4401), + 4074: uint16(9046), + 4075: uint16(10496), + 4076: uint16(16916), + 4077: uint16(5209), + 4078: uint16(16917), + 4079: uint16(16919), + 4080: uint16(16920), + 4081: uint16(9736), + 4082: uint16(16921), + 4083: uint16(16922), + 4084: uint16(16923), + 4085: uint16(5432), + 4086: uint16(4402), + 4087: uint16(9508), + 4088: uint16(7175), + 4089: uint16(6723), + 4090: uint16(16924), + 4091: uint16(7176), + 4092: uint16(4393), + 4093: uint16(10274), + 4094: uint16(16925), + 4095: uint16(10058), + 4096: uint16(8228), + 4097: uint16(16928), + 4098: uint16(16929), + 4099: uint16(9800), + 4100: uint16(7712), + 4101: uint16(16926), + 4102: uint16(8768), + 4103: uint16(16927), + 4104: uint16(7469), + 4105: uint16(3899), + 4106: uint16(5128), + 4107: uint16(16930), + 4108: uint16(9047), + 4109: uint16(16931), + 4110: uint16(7974), + 4111: uint16(11020), + 4112: uint16(10242), + 4113: uint16(16932), + 4114: uint16(16933), + 4115: uint16(8756), + 4116: uint16(11558), + 4117: uint16(16935), + 4118: uint16(16934), + 4119: uint16(6990), + 4120: uint16(16937), + 4121: uint16(3919), + 4122: uint16(16940), + 4123: uint16(16938), + 4124: uint16(4403), + 4125: uint16(5677), + 4126: uint16(16939), + 4127: uint16(6181), + 4128: uint16(6225), + 4129: uint16(10565), + 4130: uint16(16941), + 4131: uint16(10803), + 4132: uint16(16943), + 4133: uint16(7984), + 4134: uint16(4142), + 4135: uint16(4377), + 4136: uint16(3851), + 4137: uint16(16942), + 4138: uint16(16944), + 4139: uint16(16945), + 4140: uint16(7510), + 4141: uint16(16946), + 4142: uint16(4654), + 4143: uint16(16948), + 4144: uint16(5705), + 4145: uint16(5189), + 4146: uint16(16949), + 4147: uint16(5460), + 4148: uint16(16950), + 4149: uint16(8027), + 4150: uint16(9516), + 4151: uint16(7999), + 4152: uint16(6484), + 4153: uint16(16951), + 4154: uint16(8769), + 4155: uint16(8266), + 4156: uint16(16953), + 4157: uint16(16955), + 4158: uint16(16952), + 4159: uint16(16954), + 4160: uint16(5633), + 4161: uint16(16956), + 4162: uint16(5637), + 4163: uint16(5190), + 4164: uint16(11313), + 4165: uint16(16958), + 4166: uint16(16959), + 4167: uint16(4109), + 4168: uint16(16962), + 4169: uint16(4693), + 4170: uint16(16961), + 4171: uint16(16960), + 4172: uint16(16964), + 4173: uint16(16957), + 4174: uint16(16965), + 4175: uint16(11528), + 4176: uint16(16966), + 4177: uint16(16967), + 4178: uint16(13139), + 4179: uint16(16969), + 4180: uint16(16968), + 4181: uint16(16970), + 4182: uint16(16971), + 4183: uint16(11540), + 4184: uint16(16972), + 4185: uint16(20302), + 4186: uint16(7470), + 4187: uint16(16973), + 4188: uint16(16974), + 4189: uint16(7222), + 4190: uint16(9495), + 4191: uint16(16975), + 4192: uint16(8711), + 4193: uint16(16976), + 4194: uint16(8731), + 4195: uint16(16977), + 4196: uint16(5380), + 4197: uint16(12318), + 4198: uint16(8764), + 4199: uint16(6930), + 4200: uint16(4903), + 4201: uint16(16978), + 4202: uint16(17153), + 4203: uint16(16981), + 4204: uint16(5191), + 4205: uint16(16980), + 4206: uint16(17155), + 4207: uint16(16979), + 4208: uint16(7471), + 4209: uint16(16983), + 4210: uint16(16984), + 4211: uint16(9226), + 4212: uint16(16985), + 4213: uint16(4669), + 4214: uint16(7737), + 4215: uint16(10307), + 4216: uint16(16987), + 4217: uint16(8519), + 4218: uint16(16982), + 4219: uint16(16986), + 4220: uint16(16988), + 4221: uint16(6490), + 4222: uint16(17157), + 4223: uint16(10253), + 4224: uint16(9989), + 4225: uint16(9304), + 4226: uint16(5433), + 4227: uint16(17156), + 4228: uint16(17154), + 4229: uint16(10004), + 4230: uint16(16989), + 4231: uint16(8765), + 4232: uint16(9306), + 4233: uint16(9305), + 4234: uint16(6485), + 4235: uint16(17175), + 4236: uint16(17159), + 4237: uint16(17161), + 4238: uint16(17164), + 4239: uint16(17165), + 4240: uint16(17162), + 4241: uint16(17163), + 4242: uint16(17160), + 4243: uint16(17158), + 4244: uint16(17152), + 4245: uint16(10542), + 4246: uint16(4404), + 4247: uint16(17172), + 4248: uint16(17169), + 4249: uint16(17174), + 4250: uint16(17173), + 4251: uint16(9810), + 4252: uint16(11014), + 4253: uint16(6682), + 4254: uint16(17167), + 4255: uint16(17176), + 4256: uint16(17171), + 4257: uint16(17170), + 4258: uint16(17166), + 4259: uint16(17168), + 4260: uint16(4904), + 4261: uint16(8732), + 4262: uint16(8028), + 4263: uint16(9985), + 4264: uint16(17181), + 4265: uint16(9987), + 4266: uint16(8000), + 4267: uint16(17178), + 4268: uint16(10030), + 4269: uint16(17182), + 4270: uint16(10546), + 4271: uint16(8762), + 4272: uint16(17177), + 4273: uint16(17179), + 4274: uint16(17180), + 4275: uint16(17183), + 4276: uint16(6947), + 4277: uint16(9509), + 4278: uint16(17188), + 4279: uint16(17187), + 4280: uint16(17184), + 4281: uint16(11797), + 4282: uint16(17193), + 4283: uint16(17197), + 4284: uint16(17194), + 4285: uint16(17190), + 4286: uint16(17191), + 4287: uint16(17196), + 4288: uint16(17185), + 4289: uint16(12596), + 4290: uint16(17192), + 4291: uint16(17186), + 4292: uint16(17195), + 4293: uint16(17201), + 4294: uint16(4905), + 4295: uint16(17198), + 4296: uint16(17199), + 4297: uint16(17200), + 4298: uint16(17203), + 4299: uint16(17202), + 4300: uint16(10069), + 4301: uint16(17204), + 4302: uint16(11611), + 4303: uint16(10572), + 4304: uint16(17209), + 4305: uint16(17206), + 4306: uint16(17205), + 4307: uint16(7985), + 4308: uint16(17208), + 4309: uint16(17210), + 4310: uint16(17207), + 4311: uint16(17214), + 4312: uint16(17211), + 4313: uint16(17212), + 4314: uint16(17189), + 4315: uint16(17213), + 4316: uint16(17215), + 4317: uint16(17216), + 4318: uint16(10533), + 4319: uint16(17217), + 4320: uint16(11073), + 4321: uint16(5421), + 4322: uint16(5640), + 4323: uint16(17218), + 4324: uint16(10515), + 4325: uint16(7751), + 4326: uint16(11023), + 4327: uint16(17219), + 4328: uint16(11538), + 4329: uint16(9811), + 4330: uint16(8229), + 4331: uint16(9747), + 4332: uint16(7212), + 4333: uint16(3871), + 4334: uint16(17224), + 4335: uint16(17222), + 4336: uint16(17220), + 4337: uint16(4864), + 4338: uint16(7472), + 4339: uint16(17225), + 4340: uint16(17223), + 4341: uint16(17221), + 4342: uint16(17229), + 4343: uint16(17228), + 4344: uint16(17227), + 4345: uint16(17226), + 4346: uint16(17230), + 4347: uint16(17231), + 4348: uint16(7961), + 4349: uint16(17232), + 4350: uint16(17234), + 4351: uint16(17233), + 4352: uint16(5937), + 4353: uint16(8215), + 4354: uint16(17236), + 4355: uint16(9307), + 4356: uint16(17235), + 4357: uint16(17237), + 4358: uint16(10516), + 4359: uint16(8267), + 4360: uint16(6182), + 4361: uint16(17238), + 4362: uint16(11559), + 4363: uint16(17240), + 4364: uint16(17241), + 4365: uint16(17242), + 4366: uint16(17243), + 4367: uint16(6724), + 4368: uint16(17244), + 4369: uint16(5678), + 4370: uint16(5193), + 4371: uint16(5129), + 4372: uint16(17408), + 4373: uint16(11090), + 4374: uint16(6183), + 4375: uint16(17245), + 4376: uint16(17411), + 4377: uint16(11077), + 4378: uint16(9755), + 4379: uint16(10258), + 4380: uint16(7234), + 4381: uint16(17410), + 4382: uint16(6962), + 4383: uint16(6184), + 4384: uint16(6725), + 4385: uint16(5192), + 4386: uint16(10517), + 4387: uint16(17409), + 4388: uint16(8230), + 4389: uint16(10785), + 4390: uint16(6486), + 4391: uint16(6726), + 4392: uint16(9020), + 4393: uint16(17414), + 4394: uint16(11582), + 4395: uint16(6456), + 4396: uint16(17415), + 4397: uint16(7713), + 4398: uint16(17417), + 4399: uint16(7473), + 4400: uint16(6415), + 4401: uint16(17416), + 4402: uint16(7177), + 4403: uint16(5917), + 4404: uint16(8231), + 4405: uint16(17412), + 4406: uint16(17418), + 4407: uint16(17413), + 4408: uint16(5679), + 4409: uint16(17421), + 4410: uint16(17425), + 4411: uint16(5706), + 4412: uint16(17420), + 4413: uint16(17429), + 4414: uint16(6185), + 4415: uint16(11340), + 4416: uint16(3867), + 4417: uint16(17426), + 4418: uint16(5194), + 4419: uint16(17423), + 4420: uint16(17424), + 4421: uint16(9308), + 4422: uint16(17422), + 4423: uint16(17419), + 4424: uint16(4615), + 4425: uint16(8003), + 4426: uint16(5895), + 4427: uint16(17431), + 4428: uint16(17428), + 4429: uint16(17430), + 4430: uint16(17427), + 4431: uint16(5680), + 4432: uint16(8466), + 4433: uint16(17432), + 4434: uint16(8269), + 4435: uint16(17445), + 4436: uint16(17441), + 4437: uint16(17435), + 4438: uint16(17439), + 4439: uint16(7001), + 4440: uint16(3900), + 4441: uint16(17434), + 4442: uint16(17442), + 4443: uint16(17446), + 4444: uint16(6186), + 4445: uint16(11061), + 4446: uint16(9013), + 4447: uint16(17436), + 4448: uint16(17444), + 4449: uint16(17433), + 4450: uint16(8733), + 4451: uint16(17438), + 4452: uint16(3868), + 4453: uint16(11049), + 4454: uint16(17437), + 4455: uint16(5434), + 4456: uint16(10059), + 4457: uint16(8268), + 4458: uint16(11567), + 4459: uint16(7246), + 4460: uint16(17485), + 4461: uint16(17447), + 4462: uint16(8029), + 4463: uint16(17443), + 4464: uint16(17448), + 4465: uint16(17450), + 4466: uint16(9048), + 4467: uint16(17453), + 4468: uint16(17449), + 4469: uint16(10547), + 4470: uint16(4906), + 4471: uint16(11050), + 4472: uint16(3901), + 4473: uint16(17452), + 4474: uint16(11612), + 4475: uint16(17451), + 4476: uint16(4174), + 4477: uint16(9547), + 4478: uint16(17454), + 4479: uint16(17461), + 4480: uint16(17455), + 4481: uint16(17462), + 4482: uint16(17458), + 4483: uint16(9818), + 4484: uint16(6953), + 4485: uint16(17460), + 4486: uint16(17457), + 4487: uint16(17463), + 4488: uint16(17456), + 4489: uint16(7203), + 4490: uint16(10756), + 4491: uint16(7211), + 4492: uint16(17459), + 4493: uint16(17471), + 4494: uint16(17467), + 4495: uint16(17470), + 4496: uint16(17468), + 4497: uint16(17472), + 4498: uint16(17466), + 4499: uint16(17440), + 4500: uint16(7986), + 4501: uint16(10026), + 4502: uint16(17469), + 4503: uint16(17464), + 4504: uint16(8192), + 4505: uint16(5681), + 4506: uint16(7178), + 4507: uint16(7684), + 4508: uint16(8213), + 4509: uint16(17475), + 4510: uint16(17477), + 4511: uint16(17478), + 4512: uint16(17474), + 4513: uint16(17476), + 4514: uint16(17465), + 4515: uint16(17473), + 4516: uint16(17481), + 4517: uint16(17480), + 4518: uint16(10841), + 4519: uint16(5642), + 4520: uint16(17479), + 4521: uint16(17483), + 4522: uint16(17482), + 4523: uint16(17486), + 4524: uint16(17488), + 4525: uint16(6683), + 4526: uint16(17484), + 4527: uint16(17489), + 4528: uint16(17490), + 4529: uint16(17491), + 4530: uint16(17497), + 4531: uint16(9242), + 4532: uint16(17493), + 4533: uint16(17492), + 4534: uint16(17494), + 4535: uint16(17495), + 4536: uint16(17496), + 4537: uint16(17498), + 4538: uint16(17499), + 4539: uint16(4907), + 4540: uint16(17500), + 4541: uint16(17501), + 4542: uint16(17664), + 4543: uint16(17665), + 4544: uint16(17666), + 4545: uint16(17667), + 4546: uint16(17668), + 4547: uint16(17669), + 4548: uint16(17671), + 4549: uint16(17670), + 4550: uint16(17672), + 4551: uint16(17673), + 4552: uint16(17674), + 4553: uint16(17677), + 4554: uint16(17675), + 4555: uint16(17676), + 4556: uint16(6464), + 4557: uint16(5682), + 4558: uint16(8757), + 4559: uint16(10002), + 4560: uint16(7247), + 4561: uint16(9772), + 4562: uint16(10060), + 4563: uint16(17678), + 4564: uint16(14156), + 4565: uint16(17679), + 4566: uint16(17681), + 4567: uint16(11332), + 4568: uint16(17680), + 4569: uint16(17683), + 4570: uint16(17682), + 4571: uint16(11314), + 4572: uint16(17684), + 4573: uint16(10077), + 4574: uint16(17685), + 4575: uint16(17688), + 4576: uint16(17687), + 4577: uint16(17686), + 4578: uint16(17689), + 4579: uint16(5649), + 4580: uint16(8193), + 4581: uint16(5152), + 4582: uint16(17693), + 4583: uint16(17690), + 4584: uint16(17691), + 4585: uint16(17694), + 4586: uint16(17695), + 4587: uint16(17692), + 4588: uint16(4104), + 4589: uint16(4358), + 4590: uint16(17697), + 4591: uint16(17698), + 4592: uint16(17699), + 4593: uint16(11329), + 4594: uint16(7179), + 4595: uint16(17701), + 4596: uint16(17700), + 4597: uint16(7752), + 4598: uint16(17702), + 4599: uint16(17703), + 4600: uint16(17704), + 4601: uint16(4932), + 4602: uint16(4908), + 4603: uint16(17705), + 4604: uint16(17706), + 4605: uint16(10812), + 4606: uint16(11330), + 4607: uint16(11315), + 4608: uint16(11798), + 4609: uint16(6188), + 4610: uint16(17709), + 4611: uint16(6963), + 4612: uint16(17708), + 4613: uint16(17710), + 4614: uint16(6920), + 4615: uint16(8496), + 4616: uint16(17711), + 4617: uint16(6187), + 4618: uint16(11062), + 4619: uint16(17712), + 4620: uint16(17713), + 4621: uint16(17714), + 4622: uint16(17715), + 4623: uint16(17716), + 4624: uint16(6921), + 4625: uint16(11084), + 4626: uint16(17718), + 4627: uint16(8734), + 4628: uint16(17717), + 4629: uint16(17720), + 4630: uint16(17719), + 4631: uint16(17721), + 4632: uint16(7962), + 4633: uint16(17722), + 4634: uint16(17723), + 4635: uint16(10520), + 4636: uint16(17724), + 4637: uint16(8270), + 4638: uint16(17725), + 4639: uint16(17726), + 4640: uint16(11613), + 4641: uint16(17729), + 4642: uint16(17728), + 4643: uint16(17727), + 4644: uint16(8975), + 4645: uint16(17730), + 4646: uint16(7685), + 4647: uint16(17731), + 4648: uint16(17732), + 4649: uint16(11799), + 4650: uint16(17733), + 4651: uint16(17734), + 4652: uint16(17736), + 4653: uint16(17735), + 4654: uint16(9988), + 4655: uint16(9560), + 4656: uint16(11805), + 4657: uint16(9992), + 4658: uint16(17738), + 4659: uint16(7474), + 4660: uint16(10249), + 4661: uint16(17739), + 4662: uint16(17737), + 4663: uint16(4909), + 4664: uint16(5939), + 4665: uint16(6727), + 4666: uint16(10061), + 4667: uint16(5897), + 4668: uint16(10786), + 4669: uint16(17742), + 4670: uint16(17740), + 4671: uint16(6189), + 4672: uint16(6190), + 4673: uint16(3912), + 4674: uint16(6471), + 4675: uint16(9784), + 4676: uint16(3902), + 4677: uint16(17747), + 4678: uint16(8735), + 4679: uint16(9783), + 4680: uint16(8506), + 4681: uint16(17749), + 4682: uint16(17745), + 4683: uint16(17748), + 4684: uint16(17743), + 4685: uint16(17746), + 4686: uint16(10757), + 4687: uint16(5940), + 4688: uint16(3932), + 4689: uint16(17744), + 4690: uint16(17751), + 4691: uint16(17752), + 4692: uint16(9496), + 4693: uint16(5402), + 4694: uint16(17925), + 4695: uint16(9756), + 4696: uint16(6728), + 4697: uint16(5403), + 4698: uint16(7975), + 4699: uint16(11813), + 4700: uint16(11021), + 4701: uint16(17750), + 4702: uint16(7987), + 4703: uint16(5170), + 4704: uint16(17753), + 4705: uint16(17755), + 4706: uint16(17754), + 4707: uint16(17756), + 4708: uint16(8709), + 4709: uint16(9757), + 4710: uint16(8976), + 4711: uint16(17922), + 4712: uint16(17921), + 4713: uint16(17757), + 4714: uint16(7732), + 4715: uint16(10308), + 4716: uint16(17924), + 4717: uint16(17923), + 4718: uint16(6191), + 4719: uint16(11826), + 4720: uint16(17940), + 4721: uint16(17928), + 4722: uint16(17929), + 4723: uint16(6991), + 4724: uint16(17927), + 4725: uint16(6231), + 4726: uint16(17926), + 4727: uint16(17930), + 4728: uint16(8977), + 4729: uint16(10497), + 4730: uint16(8194), + 4731: uint16(8507), + 4732: uint16(17934), + 4733: uint16(17935), + 4734: uint16(17931), + 4735: uint16(17932), + 4736: uint16(17933), + 4737: uint16(6192), + 4738: uint16(17941), + 4739: uint16(17937), + 4740: uint16(10309), + 4741: uint16(10827), + 4742: uint16(10247), + 4743: uint16(17936), + 4744: uint16(17939), + 4745: uint16(17938), + 4746: uint16(10787), + 4747: uint16(17942), + 4748: uint16(17943), + 4749: uint16(8214), + 4750: uint16(17944), + 4751: uint16(17946), + 4752: uint16(17950), + 4753: uint16(17947), + 4754: uint16(17945), + 4755: uint16(9758), + 4756: uint16(17948), + 4757: uint16(17949), + 4758: uint16(4369), + 4759: uint16(17956), + 4760: uint16(17951), + 4761: uint16(17952), + 4762: uint16(17953), + 4763: uint16(8448), + 4764: uint16(17955), + 4765: uint16(17954), + 4766: uint16(17957), + 4767: uint16(17958), + 4768: uint16(17959), + 4769: uint16(7714), + 4770: uint16(4424), + 4771: uint16(17960), + 4772: uint16(11574), + 4773: uint16(6922), + 4774: uint16(7180), + 4775: uint16(6729), + 4776: uint16(8758), + 4777: uint16(17961), + 4778: uint16(17962), + 4779: uint16(4112), + 4780: uint16(17963), + 4781: uint16(17964), + 4782: uint16(17965), + 4783: uint16(17966), + 4784: uint16(17967), + 4785: uint16(5404), + 4786: uint16(14601), + 4787: uint16(17968), + 4788: uint16(8004), + 4789: uint16(17969), + 4790: uint16(6954), + 4791: uint16(17970), + 4792: uint16(12047), + 4793: uint16(17971), + 4794: uint16(10557), + 4795: uint16(4923), + 4796: uint16(8195), + 4797: uint16(7223), + 4798: uint16(10320), + 4799: uint16(7181), + 4800: uint16(17972), + 4801: uint16(6193), + 4802: uint16(17973), + 4803: uint16(10027), + 4804: uint16(17987), + 4805: uint16(17975), + 4806: uint16(8488), + 4807: uint16(9812), + 4808: uint16(5918), + 4809: uint16(17974), + 4810: uint16(8196), + 4811: uint16(17976), + 4812: uint16(9049), + 4813: uint16(17978), + 4814: uint16(17977), + 4815: uint16(17980), + 4816: uint16(17979), + 4817: uint16(17981), + 4818: uint16(17983), + 4819: uint16(17982), + 4820: uint16(4910), + 4821: uint16(17984), + 4822: uint16(17985), + 4823: uint16(17986), + 4824: uint16(6416), + 4825: uint16(11560), + 4826: uint16(17988), + 4827: uint16(7686), + 4828: uint16(4175), + 4829: uint16(17989), + 4830: uint16(17990), + 4831: uint16(17991), + 4832: uint16(3921), + 4833: uint16(17992), + 4834: uint16(17993), + 4835: uint16(10310), + 4836: uint16(6950), + 4837: uint16(17995), + 4838: uint16(4616), + 4839: uint16(3857), + 4840: uint16(17994), + 4841: uint16(17997), + 4842: uint16(9773), + 4843: uint16(7715), + 4844: uint16(4405), + 4845: uint16(10758), + 4846: uint16(5692), + 4847: uint16(5435), + 4848: uint16(17996), + 4849: uint16(4425), + 4850: uint16(4866), + 4851: uint16(4176), + 4852: uint16(18001), + 4853: uint16(11593), + 4854: uint16(8508), + 4855: uint16(10275), + 4856: uint16(18013), + 4857: uint16(4406), + 4858: uint16(18011), + 4859: uint16(18009), + 4860: uint16(18000), + 4861: uint16(17998), + 4862: uint16(17999), + 4863: uint16(6978), + 4864: uint16(5451), + 4865: uint16(8790), + 4866: uint16(9520), + 4867: uint16(4144), + 4868: uint16(18003), + 4869: uint16(18002), + 4870: uint16(18008), + 4871: uint16(18004), + 4872: uint16(18007), + 4873: uint16(11055), + 4874: uint16(18006), + 4875: uint16(4407), + 4876: uint16(4700), + 4877: uint16(18010), + 4878: uint16(18012), + 4879: uint16(5683), + 4880: uint16(18178), + 4881: uint16(18187), + 4882: uint16(18188), + 4883: uint16(3850), + 4884: uint16(18195), + 4885: uint16(3920), + 4886: uint16(18186), + 4887: uint16(18185), + 4888: uint16(18180), + 4889: uint16(18179), + 4890: uint16(18177), + 4891: uint16(18176), + 4892: uint16(8770), + 4893: uint16(8538), + 4894: uint16(18182), + 4895: uint16(18181), + 4896: uint16(18184), + 4897: uint16(8271), + 4898: uint16(5684), + 4899: uint16(4128), + 4900: uint16(18183), + 4901: uint16(6194), + 4902: uint16(8272), + 4903: uint16(18201), + 4904: uint16(18202), + 4905: uint16(4408), + 4906: uint16(4365), + 4907: uint16(18199), + 4908: uint16(18189), + 4909: uint16(18197), + 4910: uint16(18204), + 4911: uint16(18198), + 4912: uint16(18196), + 4913: uint16(18005), + 4914: uint16(18194), + 4915: uint16(18190), + 4916: uint16(4911), + 4917: uint16(18192), + 4918: uint16(18203), + 4919: uint16(18193), + 4920: uint16(18205), + 4921: uint16(18191), + 4922: uint16(9819), + 4923: uint16(11336), + 4924: uint16(18200), + 4925: uint16(18222), + 4926: uint16(18214), + 4927: uint16(7770), + 4928: uint16(5157), + 4929: uint16(5436), + 4930: uint16(18209), + 4931: uint16(4410), + 4932: uint16(7475), + 4933: uint16(18212), + 4934: uint16(6457), + 4935: uint16(9264), + 4936: uint16(18217), + 4937: uint16(10573), + 4938: uint16(18208), + 4939: uint16(4409), + 4940: uint16(5941), + 4941: uint16(10248), + 4942: uint16(18218), + 4943: uint16(18206), + 4944: uint16(18215), + 4945: uint16(18225), + 4946: uint16(18210), + 4947: uint16(18211), + 4948: uint16(9497), + 4949: uint16(18216), + 4950: uint16(18213), + 4951: uint16(10759), + 4952: uint16(18219), + 4953: uint16(3903), + 4954: uint16(18207), + 4955: uint16(18221), + 4956: uint16(18220), + 4957: uint16(9802), + 4958: uint16(18227), + 4959: uint16(18238), + 4960: uint16(4701), + 4961: uint16(18241), + 4962: uint16(18223), + 4963: uint16(18228), + 4964: uint16(11341), + 4965: uint16(18237), + 4966: uint16(11316), + 4967: uint16(11529), + 4968: uint16(8791), + 4969: uint16(4682), + 4970: uint16(10321), + 4971: uint16(18243), + 4972: uint16(9472), + 4973: uint16(3856), + 4974: uint16(18236), + 4975: uint16(18232), + 4976: uint16(8273), + 4977: uint16(18226), + 4978: uint16(18234), + 4979: uint16(18239), + 4980: uint16(9739), + 4981: uint16(3849), + 4982: uint16(18231), + 4983: uint16(18240), + 4984: uint16(10327), + 4985: uint16(18235), + 4986: uint16(18230), + 4987: uint16(7476), + 4988: uint16(7182), + 4989: uint16(6923), + 4990: uint16(11063), + 4991: uint16(10278), + 4992: uint16(18246), + 4993: uint16(18255), + 4994: uint16(18233), + 4995: uint16(4694), + 4996: uint16(7511), + 4997: uint16(18244), + 4998: uint16(18249), + 4999: uint16(8274), + 5000: uint16(18245), + 5001: uint16(18252), + 5002: uint16(8766), + 5003: uint16(18253), + 5004: uint16(11317), + 5005: uint16(18242), + 5006: uint16(4631), + 5007: uint16(18248), + 5008: uint16(18251), + 5009: uint16(11019), + 5010: uint16(18254), + 5011: uint16(18247), + 5012: uint16(18250), + 5013: uint16(10760), + 5014: uint16(11776), + 5015: uint16(18258), + 5016: uint16(18265), + 5017: uint16(18257), + 5018: uint16(6946), + 5019: uint16(18224), + 5020: uint16(10541), + 5021: uint16(11009), + 5022: uint16(18264), + 5023: uint16(18263), + 5024: uint16(18259), + 5025: uint16(18260), + 5026: uint16(4117), + 5027: uint16(18262), + 5028: uint16(18256), + 5029: uint16(9012), + 5030: uint16(18261), + 5031: uint16(3933), + 5032: uint16(8449), + 5033: uint16(10530), + 5034: uint16(18266), + 5035: uint16(18432), + 5036: uint16(10040), + 5037: uint16(18269), + 5038: uint16(7477), + 5039: uint16(6952), + 5040: uint16(18434), + 5041: uint16(5405), + 5042: uint16(18435), + 5043: uint16(10328), + 5044: uint16(18268), + 5045: uint16(18229), + 5046: uint16(18267), + 5047: uint16(11822), + 5048: uint16(9473), + 5049: uint16(10322), + 5050: uint16(18442), + 5051: uint16(18448), + 5052: uint16(18449), + 5053: uint16(18436), + 5054: uint16(9813), + 5055: uint16(18446), + 5056: uint16(18438), + 5057: uint16(18440), + 5058: uint16(18450), + 5059: uint16(18439), + 5060: uint16(18443), + 5061: uint16(4177), + 5062: uint16(9540), + 5063: uint16(18444), + 5064: uint16(18447), + 5065: uint16(18437), + 5066: uint16(8197), + 5067: uint16(18441), + 5068: uint16(6662), + 5069: uint16(7716), + 5070: uint16(5647), + 5071: uint16(11091), + 5072: uint16(11096), + 5073: uint16(7249), + 5074: uint16(18454), + 5075: uint16(18452), + 5076: uint16(11821), + 5077: uint16(18451), + 5078: uint16(11348), + 5079: uint16(18453), + 5080: uint16(18455), + 5081: uint16(18456), + 5082: uint16(18459), + 5083: uint16(18457), + 5084: uint16(9474), + 5085: uint16(18458), + 5086: uint16(10028), + 5087: uint16(18445), + 5088: uint16(7250), + 5089: uint16(18460), + 5090: uint16(18465), + 5091: uint16(8275), + 5092: uint16(18464), + 5093: uint16(18433), + 5094: uint16(18466), + 5095: uint16(8232), + 5096: uint16(18461), + 5097: uint16(18463), + 5098: uint16(18462), + 5099: uint16(15376), + 5100: uint16(15361), + 5101: uint16(18468), + 5102: uint16(18467), + 5103: uint16(11349), + 5104: uint16(16667), + 5105: uint16(18469), + 5106: uint16(18470), + 5107: uint16(18471), + 5108: uint16(5942), + 5109: uint16(5171), + 5110: uint16(18473), + 5111: uint16(12348), + 5112: uint16(5204), + 5113: uint16(11545), + 5114: uint16(5458), + 5115: uint16(18474), + 5116: uint16(18475), + 5117: uint16(8781), + 5118: uint16(18476), + 5119: uint16(9561), + 5120: uint16(3865), + 5121: uint16(4418), + 5122: uint16(18481), + 5123: uint16(18482), + 5124: uint16(18477), + 5125: uint16(6684), + 5126: uint16(18478), + 5127: uint16(9761), + 5128: uint16(18479), + 5129: uint16(18480), + 5130: uint16(18490), + 5131: uint16(18484), + 5132: uint16(18487), + 5133: uint16(18483), + 5134: uint16(18485), + 5135: uint16(18486), + 5136: uint16(6967), + 5137: uint16(18488), + 5138: uint16(8736), + 5139: uint16(5685), + 5140: uint16(4641), + 5141: uint16(18491), + 5142: uint16(4638), + 5143: uint16(18496), + 5144: uint16(18492), + 5145: uint16(18495), + 5146: uint16(10009), + 5147: uint16(18493), + 5148: uint16(18494), + 5149: uint16(10279), + 5150: uint16(10041), + 5151: uint16(18497), + 5152: uint16(8540), + 5153: uint16(18507), + 5154: uint16(18503), + 5155: uint16(4426), + 5156: uint16(18501), + 5157: uint16(10761), + 5158: uint16(18502), + 5159: uint16(18499), + 5160: uint16(18500), + 5161: uint16(18505), + 5162: uint16(18508), + 5163: uint16(18506), + 5164: uint16(18504), + 5165: uint16(18498), + 5166: uint16(8759), + 5167: uint16(18515), + 5168: uint16(11017), + 5169: uint16(18513), + 5170: uint16(18514), + 5171: uint16(18509), + 5172: uint16(18511), + 5173: uint16(18512), + 5174: uint16(18510), + 5175: uint16(8005), + 5176: uint16(11800), + 5177: uint16(18519), + 5178: uint16(18520), + 5179: uint16(18688), + 5180: uint16(7689), + 5181: uint16(18522), + 5182: uint16(18525), + 5183: uint16(18517), + 5184: uint16(18516), + 5185: uint16(18689), + 5186: uint16(4411), + 5187: uint16(18523), + 5188: uint16(18690), + 5189: uint16(18524), + 5190: uint16(18521), + 5191: uint16(8978), + 5192: uint16(18518), + 5193: uint16(9799), + 5194: uint16(18694), + 5195: uint16(11290), + 5196: uint16(18693), + 5197: uint16(18692), + 5198: uint16(18701), + 5199: uint16(18695), + 5200: uint16(18703), + 5201: uint16(11333), + 5202: uint16(18706), + 5203: uint16(18697), + 5204: uint16(18698), + 5205: uint16(18702), + 5206: uint16(18705), + 5207: uint16(18704), + 5208: uint16(18696), + 5209: uint16(18699), + 5210: uint16(18716), + 5211: uint16(18709), + 5212: uint16(18707), + 5213: uint16(18708), + 5214: uint16(18713), + 5215: uint16(18714), + 5216: uint16(4617), + 5217: uint16(5153), + 5218: uint16(18712), + 5219: uint16(18691), + 5220: uint16(18711), + 5221: uint16(18715), + 5222: uint16(18710), + 5223: uint16(18717), + 5224: uint16(18719), + 5225: uint16(18718), + 5226: uint16(18721), + 5227: uint16(18720), + 5228: uint16(18489), + 5229: uint16(18725), + 5230: uint16(18722), + 5231: uint16(18723), + 5232: uint16(18724), + 5233: uint16(18726), + 5234: uint16(5707), + 5235: uint16(18728), + 5236: uint16(18727), + 5237: uint16(7183), + 5238: uint16(6195), + 5239: uint16(15622), + 5240: uint16(18729), + 5241: uint16(7216), + 5242: uint16(4632), + 5243: uint16(18730), + 5244: uint16(4145), + 5245: uint16(7478), + 5246: uint16(18731), + 5247: uint16(6196), + 5248: uint16(18732), + 5249: uint16(3904), + 5250: uint16(10268), + 5251: uint16(18733), + 5252: uint16(7753), + 5253: uint16(18740), + 5254: uint16(18737), + 5255: uint16(8782), + 5256: uint16(18738), + 5257: uint16(18735), + 5258: uint16(5437), + 5259: uint16(18734), + 5260: uint16(18741), + 5261: uint16(5653), + 5262: uint16(8509), + 5263: uint16(18747), + 5264: uint16(18743), + 5265: uint16(8468), + 5266: uint16(18742), + 5267: uint16(18745), + 5268: uint16(18736), + 5269: uint16(18746), + 5270: uint16(18748), + 5271: uint16(10062), + 5272: uint16(18744), + 5273: uint16(18749), + 5274: uint16(18751), + 5275: uint16(5938), + 5276: uint16(18739), + 5277: uint16(3872), + 5278: uint16(18750), + 5279: uint16(6458), + 5280: uint16(11605), + 5281: uint16(18752), + 5282: uint16(18753), + 5283: uint16(8276), + 5284: uint16(11521), + 5285: uint16(18754), + 5286: uint16(11284), + 5287: uint16(18755), + 5288: uint16(18756), + 5289: uint16(10563), + 5290: uint16(18757), + 5291: uint16(6431), + 5292: uint16(11522), + 5293: uint16(18762), + 5294: uint16(18763), + 5295: uint16(7479), + 5296: uint16(18761), + 5297: uint16(11334), + 5298: uint16(18758), + 5299: uint16(18760), + 5300: uint16(7964), + 5301: uint16(7773), + 5302: uint16(18759), + 5303: uint16(18764), + 5304: uint16(10498), + 5305: uint16(18766), + 5306: uint16(18765), + 5307: uint16(4683), + 5308: uint16(10762), + 5309: uint16(18767), + 5310: uint16(18779), + 5311: uint16(18769), + 5312: uint16(18770), + 5313: uint16(18771), + 5314: uint16(18772), + 5315: uint16(18776), + 5316: uint16(18777), + 5317: uint16(18775), + 5318: uint16(18773), + 5319: uint16(18768), + 5320: uint16(18774), + 5321: uint16(18778), + 5322: uint16(20246), + 5323: uint16(4359), + 5324: uint16(18781), + 5325: uint16(5438), + 5326: uint16(18780), + 5327: uint16(18945), + 5328: uint16(18944), + 5329: uint16(18947), + 5330: uint16(18946), + 5331: uint16(18948), + 5332: uint16(7184), + 5333: uint16(18949), + 5334: uint16(18950), + 5335: uint16(18951), + 5336: uint16(7965), + 5337: uint16(11318), + 5338: uint16(18952), + 5339: uint16(10499), + 5340: uint16(9765), + 5341: uint16(18953), + 5342: uint16(18954), + 5343: uint16(5898), + 5344: uint16(5131), + 5345: uint16(18955), + 5346: uint16(6730), + 5347: uint16(9760), + 5348: uint16(18956), + 5349: uint16(4655), + 5350: uint16(18957), + 5351: uint16(18959), + 5352: uint16(11350), + 5353: uint16(18958), + 5354: uint16(7717), + 5355: uint16(18960), + 5356: uint16(18961), + 5357: uint16(18962), + 5358: uint16(4912), + 5359: uint16(18963), + 5360: uint16(18964), + 5361: uint16(18965), + 5362: uint16(18966), + 5363: uint16(4656), + 5364: uint16(18967), + 5365: uint16(18968), + 5366: uint16(18969), + 5367: uint16(4433), + 5368: uint16(7687), + 5369: uint16(18970), + 5370: uint16(18971), + 5371: uint16(18972), + 5372: uint16(5919), + 5373: uint16(9050), + 5374: uint16(18973), + 5375: uint16(5686), + 5376: uint16(7733), + 5377: uint16(18976), + 5378: uint16(9475), + 5379: uint16(18975), + 5380: uint16(5648), + 5381: uint16(18974), + 5382: uint16(8534), + 5383: uint16(5132), + 5384: uint16(18977), + 5385: uint16(18978), + 5386: uint16(7480), + 5387: uint16(5708), + 5388: uint16(18979), + 5389: uint16(10763), + 5390: uint16(7998), + 5391: uint16(5205), + 5392: uint16(11092), + 5393: uint16(8233), + 5394: uint16(18980), + 5395: uint16(7718), + 5396: uint16(8783), + 5397: uint16(7481), + 5398: uint16(18981), + 5399: uint16(18984), + 5400: uint16(18985), + 5401: uint16(6429), + 5402: uint16(8481), + 5403: uint16(18983), + 5404: uint16(7482), + 5405: uint16(10269), + 5406: uint16(18982), + 5407: uint16(6731), + 5408: uint16(4146), + 5409: uint16(18989), + 5410: uint16(5687), + 5411: uint16(6733), + 5412: uint16(6732), + 5413: uint16(11820), + 5414: uint16(18988), + 5415: uint16(18987), + 5416: uint16(8198), + 5417: uint16(5164), + 5418: uint16(11810), + 5419: uint16(4633), + 5420: uint16(7483), + 5421: uint16(18986), + 5422: uint16(18991), + 5423: uint16(18992), + 5424: uint16(18990), + 5425: uint16(5943), + 5426: uint16(11295), + 5427: uint16(6734), + 5428: uint16(9734), + 5429: uint16(18995), + 5430: uint16(7967), + 5431: uint16(8737), + 5432: uint16(11285), + 5433: uint16(18998), + 5434: uint16(5963), + 5435: uint16(7966), + 5436: uint16(18994), + 5437: uint16(18999), + 5438: uint16(5964), + 5439: uint16(18996), + 5440: uint16(18997), + 5441: uint16(18993), + 5442: uint16(8001), + 5443: uint16(9512), + 5444: uint16(8718), + 5445: uint16(4412), + 5446: uint16(10063), + 5447: uint16(5154), + 5448: uint16(8979), + 5449: uint16(19002), + 5450: uint16(19000), + 5451: uint16(8747), + 5452: uint16(7968), + 5453: uint16(4913), + 5454: uint16(19001), + 5455: uint16(7738), + 5456: uint16(11561), + 5457: uint16(11807), + 5458: uint16(19003), + 5459: uint16(19014), + 5460: uint16(8980), + 5461: uint16(19013), + 5462: uint16(19010), + 5463: uint16(19018), + 5464: uint16(19011), + 5465: uint16(19007), + 5466: uint16(9051), + 5467: uint16(19006), + 5468: uint16(19004), + 5469: uint16(11264), + 5470: uint16(6735), + 5471: uint16(19008), + 5472: uint16(19005), + 5473: uint16(19012), + 5474: uint16(7251), + 5475: uint16(5920), + 5476: uint16(8537), + 5477: uint16(10788), + 5478: uint16(4153), + 5479: uint16(3905), + 5480: uint16(9476), + 5481: uint16(19016), + 5482: uint16(19015), + 5483: uint16(9541), + 5484: uint16(19020), + 5485: uint16(19009), + 5486: uint16(19019), + 5487: uint16(19021), + 5488: uint16(5899), + 5489: uint16(19017), + 5490: uint16(6197), + 5491: uint16(6964), + 5492: uint16(19022), + 5493: uint16(11319), + 5494: uint16(19025), + 5495: uint16(19028), + 5496: uint16(19026), + 5497: uint16(10260), + 5498: uint16(19023), + 5499: uint16(5439), + 5500: uint16(19027), + 5501: uint16(19029), + 5502: uint16(19033), + 5503: uint16(19030), + 5504: uint16(19032), + 5505: uint16(19031), + 5506: uint16(19034), + 5507: uint16(6928), + 5508: uint16(19036), + 5509: uint16(19035), + 5510: uint16(10311), + 5511: uint16(19200), + 5512: uint16(5688), + 5513: uint16(19037), + 5514: uint16(19201), + 5515: uint16(19202), + 5516: uint16(5155), + 5517: uint16(17696), + 5518: uint16(7512), + 5519: uint16(19203), + 5520: uint16(5965), + 5521: uint16(19204), + 5522: uint16(19205), + 5523: uint16(6685), + 5524: uint16(14637), + 5525: uint16(19206), + 5526: uint16(19207), + 5527: uint16(7185), + 5528: uint16(19208), + 5529: uint16(19209), + 5530: uint16(19210), + 5531: uint16(19211), + 5532: uint16(19212), + 5533: uint16(8714), + 5534: uint16(19213), + 5535: uint16(19215), + 5536: uint16(19214), + 5537: uint16(9477), + 5538: uint16(19216), + 5539: uint16(10764), + 5540: uint16(19217), + 5541: uint16(19218), + 5542: uint16(19219), + 5543: uint16(19220), + 5544: uint16(9529), + 5545: uint16(7484), + 5546: uint16(19221), + 5547: uint16(6218), + 5548: uint16(12045), + 5549: uint16(19222), + 5550: uint16(19223), + 5551: uint16(10270), + 5552: uint16(19224), + 5553: uint16(19232), + 5554: uint16(19225), + 5555: uint16(19227), + 5556: uint16(19226), + 5557: uint16(19228), + 5558: uint16(10789), + 5559: uint16(19229), + 5560: uint16(19230), + 5561: uint16(19231), + 5562: uint16(19233), + 5563: uint16(4620), + 5564: uint16(9030), + 5565: uint16(10312), + 5566: uint16(6465), + 5567: uint16(6198), + 5568: uint16(10286), + 5569: uint16(4414), + 5570: uint16(10029), + 5571: uint16(19236), + 5572: uint16(4914), + 5573: uint16(7988), + 5574: uint16(19235), + 5575: uint16(19240), + 5576: uint16(8792), + 5577: uint16(11074), + 5578: uint16(19238), + 5579: uint16(19239), + 5580: uint16(5133), + 5581: uint16(19241), + 5582: uint16(9794), + 5583: uint16(8510), + 5584: uint16(10064), + 5585: uint16(9244), + 5586: uint16(19237), + 5587: uint16(10790), + 5588: uint16(4427), + 5589: uint16(19243), + 5590: uint16(11783), + 5591: uint16(8993), + 5592: uint16(11812), + 5593: uint16(6736), + 5594: uint16(19242), + 5595: uint16(8464), + 5596: uint16(19259), + 5597: uint16(8199), + 5598: uint16(9559), + 5599: uint16(10287), + 5600: uint16(19246), + 5601: uint16(6686), + 5602: uint16(6737), + 5603: uint16(7485), + 5604: uint16(9796), + 5605: uint16(5900), + 5606: uint16(19245), + 5607: uint16(19244), + 5608: uint16(10313), + 5609: uint16(6944), + 5610: uint16(9265), + 5611: uint16(19248), + 5612: uint16(19249), + 5613: uint16(6199), + 5614: uint16(19247), + 5615: uint16(19250), + 5616: uint16(19251), + 5617: uint16(19253), + 5618: uint16(8450), + 5619: uint16(19252), + 5620: uint16(4933), + 5621: uint16(19255), + 5622: uint16(19254), + 5623: uint16(19256), + 5624: uint16(19258), + 5625: uint16(19260), + 5626: uint16(19261), + 5627: uint16(7989), + 5628: uint16(6958), + 5629: uint16(19262), + 5630: uint16(4657), + 5631: uint16(19263), + 5632: uint16(8277), + 5633: uint16(19264), + 5634: uint16(19265), + 5635: uint16(10314), + 5636: uint16(5134), + 5637: uint16(19266), + 5638: uint16(8981), + 5639: uint16(4154), + 5640: uint16(19267), + 5641: uint16(6992), + 5642: uint16(7765), + 5643: uint16(8460), + 5644: uint16(19270), + 5645: uint16(19269), + 5646: uint16(19268), + 5647: uint16(19276), + 5648: uint16(19274), + 5649: uint16(19271), + 5650: uint16(19273), + 5651: uint16(19272), + 5652: uint16(19275), + 5653: uint16(5206), + 5654: uint16(19279), + 5655: uint16(7990), + 5656: uint16(19280), + 5657: uint16(5944), + 5658: uint16(19277), + 5659: uint16(19278), + 5660: uint16(11784), + 5661: uint16(8982), + 5662: uint16(8200), + 5663: uint16(19281), + 5664: uint16(19284), + 5665: uint16(19282), + 5666: uint16(19283), + 5667: uint16(11320), + 5668: uint16(9478), + 5669: uint16(19287), + 5670: uint16(19285), + 5671: uint16(19286), + 5672: uint16(19288), + 5673: uint16(19464), + 5674: uint16(19291), + 5675: uint16(19292), + 5676: uint16(19290), + 5677: uint16(19289), + 5678: uint16(9052), + 5679: uint16(19456), + 5680: uint16(19460), + 5681: uint16(19457), + 5682: uint16(19293), + 5683: uint16(19458), + 5684: uint16(19459), + 5685: uint16(19466), + 5686: uint16(19461), + 5687: uint16(7991), + 5688: uint16(19463), + 5689: uint16(19465), + 5690: uint16(19462), + 5691: uint16(19468), + 5692: uint16(7186), + 5693: uint16(19467), + 5694: uint16(19469), + 5695: uint16(19470), + 5696: uint16(19473), + 5697: uint16(19472), + 5698: uint16(19471), + 5699: uint16(19475), + 5700: uint16(19474), + 5701: uint16(11093), + 5702: uint16(19477), + 5703: uint16(19476), + 5704: uint16(19478), + 5705: uint16(19479), + 5706: uint16(19481), + 5707: uint16(19480), + 5708: uint16(7719), + 5709: uint16(19482), + 5710: uint16(5452), + 5711: uint16(19483), + 5712: uint16(19485), + 5713: uint16(19486), + 5714: uint16(19487), + 5715: uint16(19484), + 5716: uint16(19488), + 5717: uint16(6965), + 5718: uint16(19489), + 5719: uint16(5135), + 5720: uint16(5650), + 5721: uint16(5901), + 5722: uint16(19490), + 5723: uint16(9551), + 5724: uint16(9245), + 5725: uint16(19491), + 5726: uint16(19494), + 5727: uint16(6931), + 5728: uint16(19493), + 5729: uint16(19492), + 5730: uint16(5689), + 5731: uint16(19495), + 5732: uint16(4658), + 5733: uint16(19497), + 5734: uint16(6459), + 5735: uint16(19496), + 5736: uint16(19505), + 5737: uint16(19499), + 5738: uint16(19501), + 5739: uint16(10564), + 5740: uint16(19498), + 5741: uint16(19500), + 5742: uint16(19504), + 5743: uint16(19502), + 5744: uint16(5136), + 5745: uint16(19503), + 5746: uint16(19506), + 5747: uint16(9785), + 5748: uint16(11575), + 5749: uint16(7187), + 5750: uint16(19507), + 5751: uint16(11265), + 5752: uint16(19509), + 5753: uint16(19508), + 5754: uint16(19512), + 5755: uint16(11296), + 5756: uint16(19511), + 5757: uint16(4684), + 5758: uint16(19510), + 5759: uint16(19515), + 5760: uint16(19514), + 5761: uint16(19513), + 5762: uint16(9233), + 5763: uint16(19516), + 5764: uint16(19517), + 5765: uint16(19518), + 5766: uint16(6219), + 5767: uint16(5636), + 5768: uint16(19519), + 5769: uint16(19520), + 5770: uint16(19521), + 5771: uint16(7720), + 5772: uint16(19522), + 5773: uint16(6924), + 5774: uint16(19523), + 5775: uint16(19524), + 5776: uint16(12544), + 5777: uint16(12381), + 5778: uint16(19525), + 5779: uint16(17487), + 5780: uint16(19526), + 5781: uint16(8707), + 5782: uint16(7690), + 5783: uint16(9759), + 5784: uint16(19527), + 5785: uint16(10548), + 5786: uint16(9011), + 5787: uint16(6237), + 5788: uint16(8712), + 5789: uint16(4105), + 5790: uint16(10839), + 5791: uint16(7734), + 5792: uint16(5693), + 5793: uint16(5440), + 5794: uint16(10549), + 5795: uint16(19528), + 5796: uint16(19530), + 5797: uint16(19529), + 5798: uint16(4415), + 5799: uint16(9557), + 5800: uint16(19531), + 5801: uint16(9814), + 5802: uint16(9234), + 5803: uint16(19532), + 5804: uint16(7217), + 5805: uint16(19534), + 5806: uint16(11041), + 5807: uint16(19549), + 5808: uint16(19536), + 5809: uint16(19537), + 5810: uint16(9000), + 5811: uint16(8511), + 5812: uint16(8278), + 5813: uint16(9479), + 5814: uint16(19535), + 5815: uint16(5172), + 5816: uint16(19544), + 5817: uint16(19541), + 5818: uint16(19716), + 5819: uint16(9480), + 5820: uint16(8767), + 5821: uint16(19538), + 5822: uint16(9053), + 5823: uint16(9266), + 5824: uint16(19539), + 5825: uint16(19543), + 5826: uint16(7743), + 5827: uint16(9798), + 5828: uint16(9003), + 5829: uint16(7969), + 5830: uint16(19542), + 5831: uint16(8461), + 5832: uint16(8451), + 5833: uint16(19540), + 5834: uint16(3848), + 5835: uint16(11777), + 5836: uint16(19545), + 5837: uint16(8512), + 5838: uint16(7188), + 5839: uint16(7721), + 5840: uint16(19547), + 5841: uint16(19546), + 5842: uint16(3918), + 5843: uint16(19548), + 5844: uint16(10254), + 5845: uint16(19718), + 5846: uint16(9530), + 5847: uint16(7754), + 5848: uint16(8760), + 5849: uint16(5463), + 5850: uint16(19717), + 5851: uint16(11286), + 5852: uint16(4126), + 5853: uint16(10550), + 5854: uint16(4416), + 5855: uint16(19712), + 5856: uint16(19713), + 5857: uint16(19714), + 5858: uint16(19715), + 5859: uint16(9498), + 5860: uint16(8706), + 5861: uint16(3906), + 5862: uint16(19719), + 5863: uint16(19720), + 5864: uint16(21250), + 5865: uint16(8476), + 5866: uint16(19721), + 5867: uint16(4178), + 5868: uint16(8235), + 5869: uint16(5902), + 5870: uint16(11321), + 5871: uint16(19722), + 5872: uint16(9227), + 5873: uint16(8279), + 5874: uint16(6966), + 5875: uint16(19723), + 5876: uint16(19726), + 5877: uint16(7236), + 5878: uint16(19724), + 5879: uint16(8202), + 5880: uint16(8201), + 5881: uint16(3907), + 5882: uint16(11562), + 5883: uint16(19728), + 5884: uint16(10065), + 5885: uint16(19730), + 5886: uint16(19729), + 5887: uint16(19727), + 5888: uint16(16963), + 5889: uint16(4915), + 5890: uint16(19533), + 5891: uint16(19732), + 5892: uint16(19731), + 5893: uint16(19733), + 5894: uint16(11287), + 5895: uint16(9536), + 5896: uint16(10765), + 5897: uint16(19734), + 5898: uint16(6968), + 5899: uint16(19735), + 5900: uint16(19736), + 5901: uint16(19737), + 5902: uint16(9216), + 5903: uint16(3913), + 5904: uint16(6200), + 5905: uint16(11801), + 5906: uint16(19741), + 5907: uint16(5651), + 5908: uint16(19738), + 5909: uint16(19739), + 5910: uint16(10323), + 5911: uint16(4659), + 5912: uint16(11288), + 5913: uint16(5406), + 5914: uint16(9267), + 5915: uint16(19742), + 5916: uint16(19743), + 5917: uint16(19744), + 5918: uint16(9217), + 5919: uint16(19746), + 5920: uint16(19745), + 5921: uint16(9522), + 5922: uint16(19747), + 5923: uint16(7189), + 5924: uint16(6975), + 5925: uint16(9786), + 5926: uint16(8784), + 5927: uint16(6993), + 5928: uint16(7755), + 5929: uint16(19748), + 5930: uint16(19749), + 5931: uint16(7740), + 5932: uint16(19750), + 5933: uint16(19751), + 5934: uint16(19752), + 5935: uint16(11342), + 5936: uint16(7190), + 5937: uint16(19754), + 5938: uint16(19753), + 5939: uint16(6201), + 5940: uint16(6226), + 5941: uint16(6687), + 5942: uint16(19757), + 5943: uint16(7237), + 5944: uint16(19756), + 5945: uint16(19755), + 5946: uint16(8520), + 5947: uint16(5966), + 5948: uint16(7970), + 5949: uint16(9999), + 5950: uint16(7192), + 5951: uint16(19758), + 5952: uint16(7486), + 5953: uint16(19761), + 5954: uint16(19759), + 5955: uint16(19760), + 5956: uint16(19763), + 5957: uint16(19762), + 5958: uint16(7513), + 5959: uint16(19764), + 5960: uint16(19765), + 5961: uint16(19766), + 5962: uint16(10031), + 5963: uint16(6450), + 5964: uint16(6976), + 5965: uint16(19767), + 5966: uint16(19768), + 5967: uint16(11523), + 5968: uint16(7204), + 5969: uint16(11085), + 5970: uint16(11563), + 5971: uint16(19769), + 5972: uint16(5441), + 5973: uint16(19770), + 5974: uint16(9218), + 5975: uint16(19773), + 5976: uint16(4695), + 5977: uint16(7722), + 5978: uint16(19771), + 5979: uint16(19772), + 5980: uint16(9023), + 5981: uint16(10804), + 5982: uint16(5467), + 5983: uint16(19775), + 5984: uint16(19776), + 5985: uint16(19774), + 5986: uint16(19778), + 5987: uint16(9534), + 5988: uint16(4642), + 5989: uint16(19782), + 5990: uint16(19779), + 5991: uint16(19781), + 5992: uint16(19777), + 5993: uint16(20014), + 5994: uint16(19780), + 5995: uint16(11594), + 5996: uint16(5945), + 5997: uint16(19790), + 5998: uint16(9235), + 5999: uint16(19785), + 6000: uint16(19788), + 6001: uint16(19786), + 6002: uint16(19791), + 6003: uint16(19792), + 6004: uint16(19784), + 6005: uint16(19797), + 6006: uint16(4179), + 6007: uint16(19783), + 6008: uint16(9996), + 6009: uint16(19787), + 6010: uint16(7487), + 6011: uint16(6202), + 6012: uint16(10791), + 6013: uint16(5443), + 6014: uint16(7205), + 6015: uint16(9499), + 6016: uint16(8204), + 6017: uint16(19795), + 6018: uint16(19789), + 6019: uint16(19794), + 6020: uint16(11042), + 6021: uint16(8983), + 6022: uint16(19796), + 6023: uint16(19793), + 6024: uint16(8203), + 6025: uint16(19800), + 6026: uint16(19799), + 6027: uint16(19798), + 6028: uint16(10766), + 6029: uint16(7258), + 6030: uint16(19801), + 6031: uint16(10558), + 6032: uint16(4147), + 6033: uint16(10277), + 6034: uint16(8785), + 6035: uint16(5207), + 6036: uint16(19803), + 6037: uint16(6204), + 6038: uint16(6667), + 6039: uint16(19802), + 6040: uint16(7756), + 6041: uint16(7757), + 6042: uint16(19968), + 6043: uint16(19970), + 6044: uint16(7514), + 6045: uint16(19969), + 6046: uint16(19971), + 6047: uint16(5426), + 6048: uint16(10276), + 6049: uint16(6977), + 6050: uint16(11778), + 6051: uint16(19805), + 6052: uint16(6487), + 6053: uint16(11806), + 6054: uint16(19973), + 6055: uint16(19972), + 6056: uint16(19974), + 6057: uint16(19804), + 6058: uint16(9544), + 6059: uint16(9268), + 6060: uint16(9014), + 6061: uint16(19979), + 6062: uint16(8738), + 6063: uint16(19975), + 6064: uint16(19976), + 6065: uint16(5644), + 6066: uint16(19978), + 6067: uint16(5903), + 6068: uint16(19977), + 6069: uint16(7488), + 6070: uint16(4696), + 6071: uint16(19983), + 6072: uint16(6430), + 6073: uint16(8280), + 6074: uint16(9001), + 6075: uint16(4634), + 6076: uint16(19981), + 6077: uint16(19982), + 6078: uint16(8994), + 6079: uint16(19980), + 6080: uint16(19984), + 6081: uint16(19990), + 6082: uint16(19993), + 6083: uint16(19992), + 6084: uint16(9228), + 6085: uint16(19985), + 6086: uint16(19986), + 6087: uint16(19989), + 6088: uint16(19991), + 6089: uint16(5407), + 6090: uint16(19994), + 6091: uint16(19988), + 6092: uint16(19987), + 6093: uint16(19998), + 6094: uint16(19999), + 6095: uint16(20000), + 6096: uint16(19997), + 6097: uint16(19996), + 6098: uint16(7489), + 6099: uint16(9481), + 6100: uint16(19995), + 6101: uint16(20004), + 6102: uint16(20002), + 6103: uint16(20003), + 6104: uint16(20001), + 6105: uint16(8535), + 6106: uint16(20005), + 6107: uint16(20006), + 6108: uint16(20008), + 6109: uint16(4916), + 6110: uint16(20007), + 6111: uint16(11097), + 6112: uint16(20019), + 6113: uint16(20009), + 6114: uint16(20012), + 6115: uint16(20010), + 6116: uint16(20011), + 6117: uint16(20013), + 6118: uint16(20015), + 6119: uint16(20016), + 6120: uint16(20017), + 6121: uint16(20020), + 6122: uint16(20018), + 6123: uint16(20021), + 6124: uint16(20023), + 6125: uint16(20022), + 6126: uint16(8984), + 6127: uint16(11078), + 6128: uint16(20024), + 6129: uint16(8205), + 6130: uint16(20025), + 6131: uint16(10531), + 6132: uint16(20026), + 6133: uint16(4618), + 6134: uint16(4123), + 6135: uint16(4918), + 6136: uint16(4917), + 6137: uint16(20027), + 6138: uint16(20028), + 6139: uint16(20029), + 6140: uint16(20030), + 6141: uint16(20031), + 6142: uint16(4919), + 6143: uint16(4660), + 6144: uint16(6205), + 6145: uint16(10005), + 6146: uint16(20033), + 6147: uint16(20032), + 6148: uint16(20034), + 6149: uint16(4155), + 6150: uint16(20037), + 6151: uint16(20036), + 6152: uint16(20035), + 6153: uint16(20038), + 6154: uint16(20041), + 6155: uint16(3878), + 6156: uint16(20039), + 6157: uint16(20043), + 6158: uint16(20042), + 6159: uint16(20045), + 6160: uint16(20044), + 6161: uint16(20046), + 6162: uint16(9485), + 6163: uint16(20047), + 6164: uint16(20048), + 6165: uint16(20050), + 6166: uint16(20049), + 6167: uint16(10315), + 6168: uint16(20051), + 6169: uint16(20052), + 6170: uint16(6468), + 6171: uint16(20053), + 6172: uint16(20054), + 6173: uint16(10792), + 6174: uint16(8234), + 6175: uint16(3843), + 6176: uint16(8490), + 6177: uint16(20055), + 6178: uint16(10316), + 6179: uint16(20058), + 6180: uint16(20056), + 6181: uint16(6206), + 6182: uint16(20057), + 6183: uint16(5921), + 6184: uint16(10532), + 6185: uint16(20060), + 6186: uint16(20224), + 6187: uint16(20061), + 6188: uint16(20225), + 6189: uint16(4096), + 6190: uint16(7735), + 6191: uint16(7259), + 6192: uint16(4920), + 6193: uint16(20226), + 6194: uint16(9797), + 6195: uint16(20228), + 6196: uint16(4097), + 6197: uint16(20227), + 6198: uint16(8995), + 6199: uint16(11564), + 6200: uint16(9482), + 6201: uint16(20059), + 6202: uint16(11525), + 6203: uint16(5904), + 6204: uint16(11322), + 6205: uint16(5464), + 6206: uint16(11539), + 6207: uint16(5639), + 6208: uint16(8513), + 6209: uint16(17920), + 6210: uint16(20229), + 6211: uint16(4619), + 6212: uint16(7758), + 6213: uint16(4661), + 6214: uint16(20231), + 6215: uint16(20232), + 6216: uint16(20230), + 6217: uint16(5699), + 6218: uint16(6460), + 6219: uint16(7490), + 6220: uint16(4098), + 6221: uint16(11576), + 6222: uint16(20234), + 6223: uint16(19725), + 6224: uint16(20233), + 6225: uint16(20237), + 6226: uint16(20235), + 6227: uint16(20236), + 6228: uint16(20238), + 6229: uint16(20239), + 6230: uint16(11595), + 6231: uint16(20240), + 6232: uint16(20241), + 6233: uint16(7976), + 6234: uint16(10010), + 6235: uint16(7772), + 6236: uint16(4934), + 6237: uint16(11289), + 6238: uint16(4428), + 6239: uint16(7191), + 6240: uint16(5946), + 6241: uint16(20244), + 6242: uint16(20243), + 6243: uint16(6738), + 6244: uint16(20245), + 6245: uint16(20242), + 6246: uint16(6663), + 6247: uint16(20249), + 6248: uint16(18700), + 6249: uint16(12597), + 6250: uint16(7766), + 6251: uint16(20247), + 6252: uint16(11524), + 6253: uint16(9552), + 6254: uint16(4106), + 6255: uint16(8002), + 6256: uint16(6933), + 6257: uint16(10518), + 6258: uint16(4127), + 6259: uint16(11596), + 6260: uint16(11338), + 6261: uint16(20250), + 6262: uint16(9252), + 6263: uint16(7002), + 6264: uint16(20251), + 6265: uint16(20252), + 6266: uint16(7723), + 6267: uint16(20253), + 6268: uint16(11597), + 6269: uint16(20248), + 6270: uint16(20255), + 6271: uint16(20257), + 6272: uint16(20256), + 6273: uint16(20254), + 6274: uint16(20258), + 6275: uint16(20259), + 6276: uint16(8281), + 6277: uint16(4417), + 6278: uint16(20260), + 6279: uint16(11031), + 6280: uint16(20261), + 6281: uint16(20262), + 6282: uint16(11785), + 6283: uint16(14864), + 6284: uint16(20263), + 6285: uint16(20264), + 6286: uint16(20265), + 6287: uint16(20269), + 6288: uint16(20266), + 6289: uint16(20267), + 6290: uint16(20268), + 6291: uint16(20270), + 6292: uint16(7971), + 6293: uint16(11094), + 6294: uint16(7972), + 6295: uint16(20271), + 6296: uint16(10066), + 6297: uint16(20272), + 6298: uint16(21042), + 6299: uint16(11051), + 6300: uint16(20273), + 6301: uint16(20274), + 6302: uint16(20275), + 6303: uint16(4662), + 6304: uint16(20277), + 6305: uint16(7736), + 6306: uint16(20278), + 6307: uint16(5635), + 6308: uint16(20279), + 6309: uint16(20283), + 6310: uint16(20281), + 6311: uint16(20282), + 6312: uint16(4690), + 6313: uint16(20280), + 6314: uint16(20284), + 6315: uint16(20285), + 6316: uint16(3879), + 6317: uint16(20286), + 6318: uint16(20287), + 6319: uint16(7491), + 6320: uint16(20288), + 6321: uint16(5158), + 6322: uint16(20291), + 6323: uint16(20290), + 6324: uint16(20289), + 6325: uint16(19024), + 6326: uint16(10555), + 6327: uint16(20292), + 6328: uint16(20293), + 6329: uint16(20294), + 6330: uint16(20295), + 6331: uint16(20296), + 6332: uint16(20297), + 6333: uint16(4921), + 6334: uint16(20298), + 6335: uint16(20299), + 6336: uint16(9730), + 6337: uint16(20301), + 6338: uint16(4378), + 6339: uint16(20304), + 6340: uint16(20303), + 6341: uint16(4099), + 6342: uint16(5408), + 6343: uint16(10534), + 6344: uint16(8985), + 6345: uint16(6401), + 6346: uint16(6207), + 6347: uint16(7238), + 6348: uint16(7739), + 6349: uint16(20306), + 6350: uint16(20305), + 6351: uint16(11297), + 6352: uint16(4935), + 6353: uint16(10033), + 6354: uint16(9531), + 6355: uint16(7771), + 6356: uint16(11565), + 6357: uint16(5690), + 6358: uint16(20309), + 6359: uint16(20308), + 6360: uint16(10794), + 6361: uint16(9483), + 6362: uint16(4143), + 6363: uint16(20310), + 6364: uint16(20307), + 6365: uint16(10288), + 6366: uint16(11337), + 6367: uint16(20311), + 6368: uint16(20312), + 6369: uint16(20314), + 6370: uint16(8521), + 6371: uint16(4666), + 6372: uint16(4667), + 6373: uint16(20313), + 6374: uint16(4936), + 6375: uint16(5905), + 6376: uint16(4937), + 6377: uint16(9246), + 6378: uint16(11583), + 6379: uint16(5947), + 6380: uint16(20315), + 6381: uint16(20316), + 6382: uint16(20317), + 6383: uint16(20480), + 6384: uint16(20482), + 6385: uint16(20481), + 6386: uint16(10326), + 6387: uint16(20483), + 6388: uint16(20484), + 6389: uint16(20485), + 6390: uint16(20486), + 6391: uint16(20488), + 6392: uint16(20487), + 6393: uint16(20489), + 6394: uint16(10067), + 6395: uint16(17707), + 6396: uint16(7688), + 6397: uint16(5137), + 6398: uint16(20490), + 6399: uint16(20491), + 6400: uint16(12555), + 6401: uint16(15386), + 6402: uint16(10034), + 6403: uint16(3930), + 6404: uint16(3866), + 6405: uint16(6739), + 6406: uint16(10767), + 6407: uint16(7517), + 6408: uint16(20492), + 6409: uint16(11070), + 6410: uint16(20493), + 6411: uint16(11323), + 6412: uint16(4129), + 6413: uint16(6688), + 6414: uint16(20494), + 6415: uint16(4429), + 6416: uint16(20495), + 6417: uint16(20496), + 6418: uint16(20498), + 6419: uint16(20499), + 6420: uint16(20501), + 6421: uint16(20497), + 6422: uint16(20500), + 6423: uint16(4922), + 6424: uint16(20502), + 6425: uint16(20503), + 6426: uint16(20504), + 6427: uint16(20505), + 6428: uint16(20506), + 6429: uint16(20508), + 6430: uint16(20507), + 6431: uint16(20510), + 6432: uint16(20513), + 6433: uint16(20509), + 6434: uint16(20511), + 6435: uint16(20512), + 6436: uint16(20514), + 6437: uint16(5409), + 6438: uint16(6994), + 6439: uint16(20515), + 6440: uint16(20516), + 6441: uint16(6208), + 6442: uint16(20517), + 6443: uint16(4637), + 6444: uint16(9774), + 6445: uint16(20518), + 6446: uint16(20519), + 6447: uint16(8761), + 6448: uint16(9546), + 6449: uint16(20520), + 6450: uint16(9820), + 6451: uint16(8491), + 6452: uint16(4151), + 6453: uint16(5453), + 6454: uint16(5454), + 6455: uint16(8786), + 6456: uint16(20525), + 6457: uint16(5455), + 6458: uint16(4430), + 6459: uint16(20524), + 6460: uint16(20522), + 6461: uint16(20523), + 6462: uint16(20521), + 6463: uint16(20535), + 6464: uint16(20526), + 6465: uint16(20527), + 6466: uint16(20528), + 6467: uint16(20529), + 6468: uint16(20531), + 6469: uint16(20530), + 6470: uint16(7224), + 6471: uint16(20532), + 6472: uint16(20534), + 6473: uint16(5138), + 6474: uint16(20533), + 6475: uint16(8282), + 6476: uint16(5906), + 6477: uint16(20536), + 6478: uint16(8492), + 6479: uint16(20537), + 6480: uint16(9484), + 6481: uint16(20538), + 6482: uint16(20543), + 6483: uint16(20541), + 6484: uint16(20540), + 6485: uint16(20542), + 6486: uint16(20539), + 6487: uint16(20545), + 6488: uint16(20544), + 6489: uint16(20547), + 6490: uint16(5410), + 6491: uint16(20546), + 6492: uint16(20548), + 6493: uint16(20549), + 6494: uint16(20551), + 6495: uint16(20550), + 6496: uint16(20552), + 6497: uint16(20554), + 6498: uint16(20553), + 6499: uint16(6235), + 6500: uint16(20555), + 6501: uint16(20556), + 6502: uint16(4635), + 6503: uint16(20557), + 6504: uint16(20558), + 6505: uint16(7760), + 6506: uint16(20559), + 6507: uint16(20560), + 6508: uint16(20561), + 6509: uint16(20562), + 6510: uint16(6209), + 6511: uint16(20563), + 6512: uint16(20564), + 6513: uint16(20565), + 6514: uint16(20566), + 6515: uint16(20567), + 6516: uint16(10000), + 6517: uint16(20569), + 6518: uint16(10245), + 6519: uint16(20570), + 6520: uint16(20568), + 6521: uint16(20572), + 6522: uint16(20571), + 6523: uint16(20573), + 6524: uint16(20736), + 6525: uint16(20737), + 6526: uint16(20738), + 6527: uint16(20739), + 6528: uint16(20740), + 6529: uint16(20741), + 6530: uint16(20742), + 6531: uint16(20743), + 6532: uint16(20744), + 6533: uint16(20745), + 6534: uint16(20746), + 6535: uint16(20747), + 6536: uint16(20748), + 6537: uint16(20749), + 6538: uint16(15380), + 6539: uint16(20750), + 6540: uint16(17239), + 6541: uint16(5139), + 6542: uint16(4608), + 6543: uint16(6417), + 6544: uint16(20752), + 6545: uint16(20751), + 6546: uint16(11012), + 6547: uint16(20754), + 6548: uint16(20755), + 6549: uint16(20753), + 6550: uint16(20756), + 6551: uint16(10817), + 6552: uint16(20757), + 6553: uint16(5210), + 6554: uint16(11780), + 6555: uint16(20758), + 6556: uint16(20760), + 6557: uint16(3869), + 6558: uint16(20761), + 6559: uint16(10506), + 6560: uint16(20759), + 6561: uint16(20762), + 6562: uint16(20763), + 6563: uint16(20764), + 6564: uint16(20765), + 6565: uint16(20766), + 6566: uint16(10829), + 6567: uint16(6668), + 6568: uint16(6489), + 6569: uint16(8206), + 6570: uint16(20767), + 6571: uint16(20770), + 6572: uint16(20768), + 6573: uint16(20771), + 6574: uint16(5968), + 6575: uint16(20769), + 6576: uint16(20772), + 6577: uint16(20773), + 6578: uint16(20774), + 6579: uint16(20778), + 6580: uint16(6665), + 6581: uint16(8515), + 6582: uint16(20779), + 6583: uint16(20776), + 6584: uint16(20775), + 6585: uint16(20777), + 6586: uint16(5694), + 6587: uint16(20783), + 6588: uint16(20782), + 6589: uint16(20781), + 6590: uint16(3858), + 6591: uint16(20793), + 6592: uint16(20789), + 6593: uint16(20790), + 6594: uint16(20786), + 6595: uint16(20792), + 6596: uint16(20788), + 6597: uint16(4673), + 6598: uint16(11819), + 6599: uint16(20791), + 6600: uint16(20787), + 6601: uint16(20785), + 6602: uint16(20784), + 6603: uint16(20795), + 6604: uint16(20798), + 6605: uint16(20797), + 6606: uint16(20796), + 6607: uint16(10280), + 6608: uint16(20794), + 6609: uint16(3922), + 6610: uint16(20799), + 6611: uint16(20801), + 6612: uint16(4686), + 6613: uint16(20780), + 6614: uint16(4118), + 6615: uint16(20803), + 6616: uint16(20802), + 6617: uint16(20800), + 6618: uint16(8716), + 6619: uint16(10831), + 6620: uint16(11577), + 6621: uint16(20804), + 6622: uint16(20805), + 6623: uint16(20806), + 6624: uint16(20807), + 6625: uint16(20808), + 6626: uint16(8986), + 6627: uint16(20809), + 6628: uint16(10006), + 6629: uint16(20814), + 6630: uint16(20810), + 6631: uint16(20811), + 6632: uint16(10768), + 6633: uint16(11043), + 6634: uint16(9519), + 6635: uint16(20815), + 6636: uint16(20816), + 6637: uint16(9501), + 6638: uint16(20813), + 6639: uint16(20812), + 6640: uint16(4361), + 6641: uint16(20824), + 6642: uint16(20823), + 6643: uint16(4180), + 6644: uint16(20821), + 6645: uint16(20820), + 6646: uint16(20818), + 6647: uint16(4698), + 6648: uint16(20817), + 6649: uint16(6929), + 6650: uint16(4360), + 6651: uint16(6210), + 6652: uint16(20827), + 6653: uint16(20826), + 6654: uint16(20825), + 6655: uint16(20822), + 6656: uint16(20828), + 6657: uint16(20829), + 6658: uint16(20996), + 6659: uint16(20995), + 6660: uint16(20997), + 6661: uint16(4108), + 6662: uint16(20992), + 6663: uint16(20993), + 6664: uint16(6227), + 6665: uint16(11032), + 6666: uint16(20994), + 6667: uint16(10769), + 6668: uint16(21002), + 6669: uint16(20998), + 6670: uint16(21003), + 6671: uint16(21000), + 6672: uint16(20999), + 6673: uint16(5691), + 6674: uint16(21004), + 6675: uint16(21005), + 6676: uint16(21006), + 6677: uint16(21001), + 6678: uint16(20819), + 6679: uint16(21007), + 6680: uint16(9024), + 6681: uint16(21011), + 6682: uint16(21012), + 6683: uint16(21010), + 6684: uint16(21009), + 6685: uint16(21015), + 6686: uint16(21008), + 6687: uint16(21013), + 6688: uint16(21014), + 6689: uint16(21017), + 6690: uint16(21016), + 6691: uint16(21019), + 6692: uint16(21020), + 6693: uint16(21021), + 6694: uint16(11816), + 6695: uint16(21018), + 6696: uint16(8522), + 6697: uint16(6476), + 6698: uint16(21022), + 6699: uint16(21023), + 6700: uint16(21024), + 6701: uint16(21025), + 6702: uint16(21026), + 6703: uint16(5907), + 6704: uint16(21027), + 6705: uint16(21028), + 6706: uint16(6926), + 6707: uint16(21029), + 6708: uint16(21030), + 6709: uint16(21031), + 6710: uint16(21032), + 6711: uint16(21035), + 6712: uint16(21033), + 6713: uint16(11803), + 6714: uint16(21034), + 6715: uint16(11598), + 6716: uint16(21036), + 6717: uint16(11578), + 6718: uint16(21037), + 6719: uint16(9821), + 6720: uint16(21038), + 6721: uint16(21040), + 6722: uint16(21041), + 6723: uint16(21039), + 6724: uint16(6220), + 6725: uint16(11052), + 6726: uint16(10818), + 6727: uint16(13654), + 6728: uint16(15423), + 6729: uint16(10842), + 6730: uint16(4362), + 6731: uint16(21043), + 6732: uint16(5167), + 6733: uint16(21044), + 6734: uint16(21045), + 6735: uint16(21046), + 6736: uint16(6228), + 6737: uint16(21047), + 6738: uint16(16179), + 6739: uint16(11066), + 6740: uint16(8514), + 6741: uint16(21048), + 6742: uint16(21050), + 6743: uint16(21049), + 6744: uint16(21051), + 6745: uint16(21052), + 6746: uint16(21053), + 6747: uint16(21054), + 6748: uint16(21055), + 6749: uint16(21056), + 6750: uint16(21057), + 6751: uint16(21058), + 6752: uint16(21059), + 6753: uint16(21060), + 6754: uint16(21061), + 6755: uint16(21062), + 6756: uint16(21063), + 6757: uint16(9219), + 6758: uint16(5948), + 6759: uint16(21065), + 6760: uint16(8236), + 6761: uint16(21066), + 6762: uint16(21067), + 6763: uint16(10240), + 6764: uint16(21068), + 6765: uint16(21069), + 6766: uint16(16918), + 6767: uint16(19257), + 6768: uint16(20300), + 6769: uint16(21070), + 6770: uint16(21071), + 6771: uint16(21073), + 6772: uint16(21074), + 6773: uint16(21075), + 6774: uint16(11599), + 6775: uint16(21072), + 6776: uint16(21076), + 6777: uint16(21077), + 6778: uint16(21079), + 6779: uint16(21078), + 6780: uint16(21081), + 6781: uint16(21082), + 6782: uint16(21080), + 6783: uint16(11541), + 6784: uint16(21083), + 6785: uint16(21084), + 6786: uint16(16947), + 6787: uint16(21085), + 6788: uint16(9), + 6789: uint16(83), + 6790: uint16(79), + 6791: uint16(82), + 6792: uint16(84), + 6793: uint16(41), + 6794: uint16(42), + 6795: uint16(85), + 6796: uint16(59), + 6797: uint16(3), + 6798: uint16(4), + 6799: uint16(30), + 6800: uint16(527), + 6801: uint16(528), + 6802: uint16(529), + 6803: uint16(530), + 6804: uint16(531), + 6805: uint16(532), + 6806: uint16(533), + 6807: uint16(534), + 6808: uint16(535), + 6809: uint16(536), + 6810: uint16(6), + 6811: uint16(7), + 6812: uint16(66), + 6813: uint16(64), + 6814: uint16(67), + 6815: uint16(8), + 6816: uint16(86), + 6817: uint16(544), + 6818: uint16(545), + 6819: uint16(546), + 6820: uint16(547), + 6821: uint16(548), + 6822: uint16(549), + 6823: uint16(550), + 6824: uint16(551), + 6825: uint16(552), + 6826: uint16(553), + 6827: uint16(554), + 6828: uint16(555), + 6829: uint16(556), + 6830: uint16(557), + 6831: uint16(558), + 6832: uint16(559), + 6833: uint16(560), + 6834: uint16(561), + 6835: uint16(562), + 6836: uint16(563), + 6837: uint16(564), + 6838: uint16(565), + 6839: uint16(566), + 6840: uint16(567), + 6841: uint16(568), + 6842: uint16(569), + 6843: uint16(45), + 6844: uint16(46), + 6845: uint16(15), + 6846: uint16(17), + 6847: uint16(13), + 6848: uint16(576), + 6849: uint16(577), + 6850: uint16(578), + 6851: uint16(579), + 6852: uint16(580), + 6853: uint16(581), + 6854: uint16(582), + 6855: uint16(583), + 6856: uint16(584), + 6857: uint16(585), + 6858: uint16(586), + 6859: uint16(587), + 6860: uint16(588), + 6861: uint16(589), + 6862: uint16(590), + 6863: uint16(591), + 6864: uint16(592), + 6865: uint16(593), + 6866: uint16(594), + 6867: uint16(595), + 6868: uint16(596), + 6869: uint16(597), + 6870: uint16(598), + 6871: uint16(599), + 6872: uint16(600), + 6873: uint16(601), + 6874: uint16(47), + 6875: uint16(34), + 6876: uint16(48), + 6877: uint16(16), + 6878: uint16(78), +} + +func _fuzzycmp(tls *TLS, a uintptr, b uintptr) (r int32) { + for { + if !(**(**uint8)(__ccgo_up(a)) != 0 && **(**uint8)(__ccgo_up(b)) != 0) { + break + } + for **(**uint8)(__ccgo_up(a)) != 0 && uint32(**(**uint8)(__ccgo_up(a)))|uint32(32)-uint32('a') > uint32(26) && Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(a)))-int32('0')) > uint32(10) { + a = a + 1 + } + if uint32(**(**uint8)(__ccgo_up(a)))|uint32(32) != uint32(**(**uint8)(__ccgo_up(b))) { + return int32(1) + } + goto _1 + _1: + ; + a = a + 1 + b = b + 1 + } + return BoolInt32(Int32FromUint8(**(**uint8)(__ccgo_up(a))) != Int32FromUint8(**(**uint8)(__ccgo_up(b)))) +} + +func _find_charmap(tls *TLS, name uintptr) (r Tsize_t) { + var s uintptr + _ = s + if !(**(**int8)(__ccgo_up(name)) != 0) { + name = uintptr(unsafe.Pointer(&_charmaps)) + } /* "utf8" */ + s = uintptr(unsafe.Pointer(&_charmaps)) + for { + if !(**(**uint8)(__ccgo_up(s)) != 0) { + break + } + if !(_fuzzycmp(tls, name, s) != 0) { + for { + if !(**(**uint8)(__ccgo_up(s)) != 0) { + break + } + goto _2 + _2: + ; + s = s + uintptr(_strlen(tls, s)+uint64(1)) + } + return Uint64FromInt64(int64(s+uintptr(1)) - t__predefined_ptrdiff_t(uintptr(unsafe.Pointer(&_charmaps)))) + } + s = s + uintptr(_strlen(tls, s)+uint64(1)) + if !(**(**uint8)(__ccgo_up(s)) != 0) { + if Int32FromUint8(**(**uint8)(__ccgo_up(s + 1))) > int32(0200) { + s = s + uintptr(2) + } else { + s = s + uintptr(uint32(2)+(uint32(64)-uint32(**(**uint8)(__ccgo_up(s + 1))))*uint32(5)) + } + } + goto _1 + _1: + } + return Uint64FromInt32(-Int32FromInt32(1)) +} + +type Tstateful_cd = struct { + Fbase_cd Ticonv_t + Fstate uint32 +} + +func _combine_to_from(tls *TLS, t Tsize_t, f Tsize_t) (r Ticonv_t) { + return uintptr(f<> int32(16) +} + +func _extract_to(tls *TLS, cd Ticonv_t) (r Tsize_t) { + return uint64(cd) >> int32(1) & uint64(0x7fff) +} + +func Xiconv_open(tls *TLS, to uintptr, from uintptr) (r Ticonv_t) { + if __ccgo_strace { + trc("tls=%v to=%v from=%v, (%v:)", tls, to, from, origin(2)) + defer func() { trc("-> %v", r) }() + } + var cd Ticonv_t + var f, t, v1, v2 Tsize_t + var scd uintptr + var v3 bool + _, _, _, _, _, _, _ = cd, f, scd, t, v1, v2, v3 + v1 = _find_charmap(tls, to) + t = v1 + if v3 = v1 == Uint64FromInt32(-Int32FromInt32(1)); !v3 { + v2 = _find_charmap(tls, from) + f = v2 + } + if v3 || v2 == Uint64FromInt32(-Int32FromInt32(1)) || Int32FromUint8(_charmaps[t]) >= int32(0330) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(-Int32FromInt32(1)) + } + cd = _combine_to_from(tls, t, f) + switch Int32FromUint8(_charmaps[f]) { + case int32(UTF_16): + fallthrough + case int32(UTF_32): + fallthrough + case int32(UCS2): + fallthrough + case int32(ISO2022_JP): + scd = Xmalloc(tls, uint64(16)) + if !(scd != 0) { + return uintptr(-Int32FromInt32(1)) + } + (*Tstateful_cd)(unsafe.Pointer(scd)).Fbase_cd = cd + (*Tstateful_cd)(unsafe.Pointer(scd)).Fstate = uint32(0) + cd = scd + } + return cd +} + +func _get_16(tls *TLS, s uintptr, e int32) (r uint32) { + e = e & int32(1) + return Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(e))))<> int32(8)) + **(**uint8)(__ccgo_up(s + uintptr(int32(1)-e))) = uint8(c) +} + +func _get_32(tls *TLS, s uintptr, e int32) (r uint32) { + e = e & int32(3) + return (uint32(**(**uint8)(__ccgo_up(s + uintptr(e))))+0)<> int32(24)) + **(**uint8)(__ccgo_up(s + uintptr(e^int32(1)))) = uint8(c >> int32(16)) + **(**uint8)(__ccgo_up(s + uintptr(e^int32(2)))) = uint8(c >> int32(8)) + **(**uint8)(__ccgo_up(s + uintptr(e^int32(3)))) = uint8(c) +} + +/* Adapt as needed */ + +func _legacy_map(tls *TLS, map1 uintptr, c uint32) (r uint32) { + var x, v1 uint32 + _, _ = x, v1 + if c < Uint32FromInt32(int32(4)*Int32FromUint8(**(**uint8)(__ccgo_up(map1 + uintptr(-Int32FromInt32(1)))))) { + return c + } + x = c - Uint32FromInt32(int32(4)*Int32FromUint8(**(**uint8)(__ccgo_up(map1 + uintptr(-Int32FromInt32(1)))))) + x = Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(map1 + uintptr(x*uint32(5)/uint32(4)))))>>(uint32(2)*x%uint32(8)) | Int32FromUint8(**(**uint8)(__ccgo_up(map1 + uintptr(x*uint32(5)/uint32(4)+uint32(1)))))<<(uint32(8)-uint32(2)*x%uint32(8))&int32(1023)) + if x < uint32(256) { + v1 = x + } else { + v1 = uint32(_legacy_chars[x-uint32(256)]) + } + return v1 +} + +func _uni_to_jis(tls *TLS, c uint32) (r uint32) { + var b, d, i, j, nel uint32 + _, _, _, _, _ = b, d, i, j, nel + nel = uint32(Uint64FromInt64(13758) / Uint64FromInt64(2)) + b = uint32(0) + for { + i = nel / uint32(2) + j = uint32(_rev_jis[b+i]) + d = uint32(**(**uint16)(__ccgo_up(uintptr(unsafe.Pointer(&_jis0208)) + uintptr(j/uint32(256))*188 + uintptr(j%uint32(256))*2))) + if d == c { + return j + uint32(0x2121) + } else { + if nel == uint32(1) { + return uint32(0) + } else { + if c < d { + nel = nel / uint32(2) + } else { + b = b + i + nel = nel - nel/uint32(2) + } + } + } + goto _1 + _1: + } + return r +} + +func Xiconv(tls *TLS, cd Ticonv_t, in uintptr, inb uintptr, out uintptr, outb uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v cd=%v in=%v inb=%v out=%v outb=%v, (%v:)", tls, cd, in, inb, out, outb, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var c, d, from, to, v62 uint32 + var err, i, i1, j, j1, v25, v26, v27 int32 + var k, l, tmplen, tmpx, x Tsize_t + var loc Tlocale_t + var map1, ploc, scd, tomap, v54, v55 uintptr + var totype, type1 uint8 + var _ /* ptmp at bp+48 */ uintptr + var _ /* st at bp+24 */ Tmbstate_t + var _ /* tmp at bp+40 */ struct { + Fwc [0][2]Twchar_t + Fc [8]int8 + } + var _ /* tmp at bp+56 */ [4]int8 + var _ /* wc at bp+32 */ Twchar_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = c, d, err, from, i, i1, j, j1, k, l, loc, map1, ploc, scd, tmplen, tmpx, to, tomap, totype, type1, x, v25, v26, v27, v54, v55, v62 + x = uint64(0) + scd = uintptr(0) + if !(uint64(cd)&Uint64FromInt32(1) != 0) { + scd = cd + cd = (*Tstateful_cd)(unsafe.Pointer(scd)).Fbase_cd + } + to = uint32(_extract_to(tls, cd)) + from = uint32(_extract_from(tls, cd)) + map1 = uintptr(unsafe.Pointer(&_charmaps)) + uintptr(from) + uintptr(1) + tomap = uintptr(unsafe.Pointer(&_charmaps)) + uintptr(to) + uintptr(1) + **(**Tmbstate_t)(__ccgo_up(bp + 24)) = Tmbstate_t{} + type1 = **(**uint8)(__ccgo_up(map1 + uintptr(-Int32FromInt32(1)))) + totype = **(**uint8)(__ccgo_up(tomap + uintptr(-Int32FromInt32(1)))) + ploc = uintptr(___get_tp(tls)) + 168 + loc = **(**Tlocale_t)(__ccgo_up(ploc)) + if !(in != 0) || !(**(**uintptr)(__ccgo_up(in)) != 0) || !(**(**Tsize_t)(__ccgo_up(inb)) != 0) { + return uint64(0) + } + **(**Tlocale_t)(__ccgo_up(ploc)) = uintptr(unsafe.Pointer(&X__c_dot_utf8_locale)) + for { + if !(**(**Tsize_t)(__ccgo_up(inb)) != 0) { + break + } + c = uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(in))))) + l = uint64(1) + switch Int32FromUint8(type1) { + case int32(UTF_8): + goto _2 + case int32(US_ASCII): + goto _3 + case int32(WCHAR_T): + goto _4 + case int32(UTF_32LE): + goto _5 + case int32(UTF_32BE): + goto _6 + case int32(UTF_16LE): + goto _7 + case int32(UTF_16BE): + goto _8 + case int32(UCS2LE): + goto _9 + case int32(UCS2BE): + goto _10 + case int32(UTF_16): + goto _11 + case int32(UCS2): + goto _12 + case int32(UTF_32): + goto _13 + case int32(SHIFT_JIS): + goto _14 + case int32(EUC_JP): + goto _15 + case int32(ISO2022_JP): + goto _16 + case int32(GB2312): + goto _17 + case int32(GBK): + goto _18 + case int32(GB18030): + goto _19 + case int32(BIG5): + goto _20 + case int32(EUC_KR): + goto _21 + default: + goto _22 + } + goto _23 + _2: + ; + if c < uint32(128) { + goto _23 + } + l = Xmbrtowc(tls, bp+32, **(**uintptr)(__ccgo_up(in)), **(**Tsize_t)(__ccgo_up(inb)), bp+24) + if l == Uint64FromInt32(-Int32FromInt32(1)) { + goto ilseq + } + if l == Uint64FromInt32(-Int32FromInt32(2)) { + goto starved + } + c = Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp + 32))) + goto _23 + _3: + ; + if c >= uint32(128) { + goto ilseq + } + goto _23 + _4: + ; + l = uint64(4) + if **(**Tsize_t)(__ccgo_up(inb)) < l { + goto starved + } + c = Uint32FromInt32(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(in))))) + if !(0 != 0) { + goto _24 + } + _6: + ; + _5: + ; + l = uint64(4) + if **(**Tsize_t)(__ccgo_up(inb)) < uint64(4) { + goto starved + } + c = _get_32(tls, **(**uintptr)(__ccgo_up(in)), Int32FromUint8(type1)) + _24: + ; + if c-uint32(0xd800) < uint32(0x800) || c >= uint32(0x110000) { + goto ilseq + } + goto _23 + _10: + ; + _9: + ; + _8: + ; + _7: + ; + l = uint64(2) + if **(**Tsize_t)(__ccgo_up(inb)) < uint64(2) { + goto starved + } + c = _get_16(tls, **(**uintptr)(__ccgo_up(in)), Int32FromUint8(type1)) + if c-Uint32FromInt32(0xdc00) < uint32(0x400) { + goto ilseq + } + if c-Uint32FromInt32(0xd800) < uint32(0x400) { + if Uint32FromInt32(Int32FromUint8(type1)-int32(UCS2BE)) < uint32(2) { + goto ilseq + } + l = uint64(4) + if **(**Tsize_t)(__ccgo_up(inb)) < uint64(4) { + goto starved + } + d = _get_16(tls, **(**uintptr)(__ccgo_up(in))+UintptrFromInt32(2), Int32FromUint8(type1)) + if d-Uint32FromInt32(0xdc00) >= uint32(0x400) { + goto ilseq + } + c = (c-uint32(0xd7c0))< uint32(127) { + d = d - 1 + } + d = d - uint32(64) + } else { + if d-uint32(159) <= Uint32FromInt32(Int32FromInt32(252)-Int32FromInt32(159)) { + c = c + 1 + d = d - uint32(159) + } + } + if c >= uint32(84) { + goto ilseq + } + c = uint32(**(**uint16)(__ccgo_up(uintptr(unsafe.Pointer(&_jis0208)) + uintptr(c)*188 + uintptr(d)*2))) + if !(c != 0) { + goto ilseq + } + goto _23 + _15: + ; + if c < uint32(128) { + goto _23 + } + l = uint64(2) + if **(**Tsize_t)(__ccgo_up(inb)) < uint64(2) { + goto starved + } + d = uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(in)) + UintptrFromInt32(1)))) + if c == uint32(0x8e) { + c = d + if c-uint32(0xa1) > Uint32FromInt32(Int32FromInt32(0xdf)-Int32FromInt32(0xa1)) { + goto ilseq + } + c = c + Uint32FromInt32(Int32FromInt32(0xff61)-Int32FromInt32(0xa1)) + goto _23 + } + c = c - uint32(0xa1) + d = d - uint32(0xa1) + if c >= uint32(84) || d >= uint32(94) { + goto ilseq + } + c = uint32(**(**uint16)(__ccgo_up(uintptr(unsafe.Pointer(&_jis0208)) + uintptr(c)*188 + uintptr(d)*2))) + if !(c != 0) { + goto ilseq + } + goto _23 + _16: + ; + if c >= uint32(128) { + goto ilseq + } + if c == uint32('\033') { + l = uint64(3) + if **(**Tsize_t)(__ccgo_up(inb)) < uint64(3) { + goto starved + } + c = uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(in)) + UintptrFromInt32(1)))) + d = uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(in)) + UintptrFromInt32(2)))) + if c != uint32('(') && c != uint32('$') { + goto ilseq + } + switch Uint32FromInt32(Int32FromInt32(128)*BoolInt32(c == Uint32FromUint8('$'))) + d { + case uint32('B'): + (*Tstateful_cd)(unsafe.Pointer(scd)).Fstate = uint32(0) + goto _1 + case uint32('J'): + (*Tstateful_cd)(unsafe.Pointer(scd)).Fstate = uint32(1) + goto _1 + case uint32('I'): + (*Tstateful_cd)(unsafe.Pointer(scd)).Fstate = uint32(4) + goto _1 + case Uint32FromInt32(Int32FromInt32(128) + Int32FromUint8('@')): + (*Tstateful_cd)(unsafe.Pointer(scd)).Fstate = uint32(2) + goto _1 + case Uint32FromInt32(Int32FromInt32(128) + Int32FromUint8('B')): + (*Tstateful_cd)(unsafe.Pointer(scd)).Fstate = uint32(3) + goto _1 + } + goto ilseq + } + switch (*Tstateful_cd)(unsafe.Pointer(scd)).Fstate { + case uint32(1): + if c == uint32('\\') { + c = uint32(0xa5) + } + if c == uint32('~') { + c = uint32(0x203e) + } + case uint32(2): + fallthrough + case uint32(3): + l = uint64(2) + if **(**Tsize_t)(__ccgo_up(inb)) < uint64(2) { + goto starved + } + d = uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(in)) + UintptrFromInt32(1)))) + c = c - uint32(0x21) + d = d - uint32(0x21) + if c >= uint32(84) || d >= uint32(94) { + goto ilseq + } + c = uint32(**(**uint16)(__ccgo_up(uintptr(unsafe.Pointer(&_jis0208)) + uintptr(c)*188 + uintptr(d)*2))) + if !(c != 0) { + goto ilseq + } + case uint32(4): + if c-uint32(0x60) < uint32(0x1f) { + goto ilseq + } + if c-uint32(0x21) < uint32(0x5e) { + c = c + Uint32FromInt32(Int32FromInt32(0xff61)-Int32FromInt32(0x21)) + } + break + } + goto _23 + _17: + ; + if c < uint32(128) { + goto _23 + } + if c < uint32(0xa1) { + goto ilseq + } + _18: + ; + if c == uint32(128) { + c = uint32(0x20ac) + goto _23 + } + _19: + ; + if c < uint32(128) { + goto _23 + } + c = c - uint32(0x81) + if c >= uint32(126) { + goto ilseq + } + l = uint64(2) + if **(**Tsize_t)(__ccgo_up(inb)) < uint64(2) { + goto starved + } + d = uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(in)) + UintptrFromInt32(1)))) + if d < uint32(0xa1) && Int32FromUint8(type1) == int32(GB2312) { + goto ilseq + } + if d-uint32(0x40) >= uint32(191) || d == uint32(127) { + if d-uint32('0') > uint32(9) || Int32FromUint8(type1) != int32(GB18030) { + goto ilseq + } + l = uint64(4) + if **(**Tsize_t)(__ccgo_up(inb)) < uint64(4) { + goto starved + } + c = (uint32(10)*c + d - uint32('0')) * uint32(1260) + d = uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(in)) + UintptrFromInt32(2)))) + if d-uint32(0x81) > uint32(126) { + goto ilseq + } + c = c + uint32(10)*(d-uint32(0x81)) + d = uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(in)) + UintptrFromInt32(3)))) + if d-uint32('0') > uint32(9) { + goto ilseq + } + c = c + (d - uint32('0')) + c = c + uint32(128) + d = uint32(0) + for { + if !(d <= c) { + break + } + k = uint64(0) + i = 0 + for { + if !(i < int32(126)) { + break + } + j = 0 + for { + if !(j < int32(190)) { + break + } + if uint32(**(**uint16)(__ccgo_up(uintptr(unsafe.Pointer(&_gb18030)) + uintptr(i)*380 + uintptr(j)*2)))-d <= c-d { + k = k + 1 + } + goto _31 + _31: + ; + j = j + 1 + } + goto _30 + _30: + ; + i = i + 1 + } + d = c + uint32(1) + c = uint32(uint64(c) + k) + goto _29 + _29: + } + goto _23 + } + d = d - uint32(0x40) + if d > uint32(63) { + d = d - 1 + } + c = uint32(**(**uint16)(__ccgo_up(uintptr(unsafe.Pointer(&_gb18030)) + uintptr(c)*380 + uintptr(d)*2))) + goto _23 + _20: + ; + if c < uint32(128) { + goto _23 + } + l = uint64(2) + if **(**Tsize_t)(__ccgo_up(inb)) < uint64(2) { + goto starved + } + d = uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(in)) + UintptrFromInt32(1)))) + if d-uint32(0x40) >= Uint32FromInt32(Int32FromInt32(0xff)-Int32FromInt32(0x40)) || d-uint32(0x7f) < Uint32FromInt32(Int32FromInt32(0xa1)-Int32FromInt32(0x7f)) { + goto ilseq + } + d = d - uint32(0x40) + if d > uint32(0x3e) { + d = d - uint32(0x22) + } + if c-uint32(0xa1) >= Uint32FromInt32(Int32FromInt32(0xfa)-Int32FromInt32(0xa1)) { + if c-uint32(0x87) >= Uint32FromInt32(Int32FromInt32(0xff)-Int32FromInt32(0x87)) { + goto ilseq + } + if c < uint32(0xa1) { + c = c - uint32(0x87) + } else { + c = c - Uint32FromInt32(Int32FromInt32(0x87)+(Int32FromInt32(0xfa)-Int32FromInt32(0xa1))) + } + c = Uint32FromInt32(Int32FromUint16(_hkscs[uint32(4867)+(c*uint32(157)+d)/uint32(16)])>>((c*uint32(157)+d)%uint32(16))%int32(2)< **(**Tsize_t)(__ccgo_up(outb)) { + goto toobig + } + if tmpx != 0 { + x = x + 1 + } + Xmemcpy(tls, **(**uintptr)(__ccgo_up(out)), bp+40, tmplen) + **(**uintptr)(__ccgo_up(out)) += uintptr(tmplen) + **(**Tsize_t)(__ccgo_up(outb)) -= tmplen + goto _1 + } + if !(c != 0) { + goto ilseq + } + goto _23 + } + c = c - uint32(0xa1) + c = Uint32FromInt32(Int32FromUint16(**(**uint16)(__ccgo_up(uintptr(unsafe.Pointer(&_big5)) + uintptr(c)*314 + uintptr(d)*2))) | BoolInt32(c == uint32(0x27) && (d == uint32(0x3a) || d == uint32(0x3c) || d == uint32(0x42)))<= uint32(93) || d >= uint32(94) { + c = c + Uint32FromInt32(Int32FromInt32(0xa1)-Int32FromInt32(0x81)) + d = d + uint32(0xa1) + if c >= uint32(93) || c >= Uint32FromInt32(Int32FromInt32(0xc6)-Int32FromInt32(0x81)) && d > uint32(0x52) { + goto ilseq + } + if d-uint32('A') < uint32(26) { + d = d - uint32('A') + } else { + if d-uint32('a') < uint32(26) { + d = d - uint32('a') + uint32(26) + } else { + if d-uint32(0x81) < Uint32FromInt32(Int32FromInt32(0xff)-Int32FromInt32(0x81)) { + d = d - uint32(0x81) + uint32(52) + } else { + goto ilseq + } + } + } + if c < uint32(0x20) { + c = uint32(178)*c + d + } else { + c = Uint32FromInt32(Int32FromInt32(178)*Int32FromInt32(0x20)) + uint32(84)*(c-uint32(0x20)) + d + } + c = c + uint32(0xac00) + d = uint32(0xac00) + for { + if !(d <= c) { + break + } + k = uint64(0) + i1 = 0 + for { + if !(i1 < int32(93)) { + break + } + j1 = 0 + for { + if !(j1 < int32(94)) { + break + } + if uint32(**(**uint16)(__ccgo_up(uintptr(unsafe.Pointer(&_ksc)) + uintptr(i1)*188 + uintptr(j1)*2)))-d <= c-d { + k = k + 1 + } + goto _34 + _34: + ; + j1 = j1 + 1 + } + goto _33 + _33: + ; + i1 = i1 + 1 + } + d = c + uint32(1) + c = uint32(uint64(c) + k) + goto _32 + _32: + } + goto _23 + } + c = uint32(**(**uint16)(__ccgo_up(uintptr(unsafe.Pointer(&_ksc)) + uintptr(c)*188 + uintptr(d)*2))) + if !(c != 0) { + goto ilseq + } + goto _23 + _22: + ; + if !(c != 0) { + goto _23 + } + c = _legacy_map(tls, map1, c) + if !(c != 0) { + goto ilseq + } + _23: + ; + switch Int32FromUint8(totype) { + case int32(WCHAR_T): + goto _35 + case int32(UTF_8): + goto _36 + case int32(US_ASCII): + goto _37 + default: + goto _38 + case int32(SHIFT_JIS): + goto _39 + case int32(EUC_JP): + goto _40 + case int32(ISO2022_JP): + goto _41 + case int32(UCS2): + goto _42 + case int32(UTF_16LE): + goto _43 + case int32(UTF_16BE): + goto _44 + case int32(UTF_16): + goto _45 + case int32(UCS2LE): + goto _46 + case int32(UCS2BE): + goto _47 + case int32(UTF_32): + goto _48 + case int32(UTF_32LE): + goto _49 + case int32(UTF_32BE): + goto _50 + } + goto _51 + _35: + ; + if **(**Tsize_t)(__ccgo_up(outb)) < uint64(4) { + goto toobig + } + **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(out)))) = Int32FromUint32(c) + **(**uintptr)(__ccgo_up(out)) += uintptr(4) + **(**Tsize_t)(__ccgo_up(outb)) -= uint64(4) + goto _51 + _36: + ; + if **(**Tsize_t)(__ccgo_up(outb)) < uint64(4) { + k = Uint64FromInt32(Xwctomb(tls, bp+56, Int32FromUint32(c))) + if **(**Tsize_t)(__ccgo_up(outb)) < k { + goto toobig + } + Xmemcpy(tls, **(**uintptr)(__ccgo_up(out)), bp+56, k) + } else { + k = Uint64FromInt32(Xwctomb(tls, **(**uintptr)(__ccgo_up(out)), Int32FromUint32(c))) + } + **(**uintptr)(__ccgo_up(out)) += uintptr(k) + **(**Tsize_t)(__ccgo_up(outb)) -= k + goto _51 + _37: + ; + if !(c > uint32(0x7f)) { + goto _52 + } + goto subst + subst: + ; + x = x + 1 + c = Uint32FromUint8('*') + _52: + ; + _38: + ; + if **(**Tsize_t)(__ccgo_up(outb)) < uint64(1) { + goto toobig + } + if !(c < uint32(256) && c == _legacy_map(tls, tomap, c)) { + goto _53 + } + goto revout + revout: + ; + if **(**Tsize_t)(__ccgo_up(outb)) < uint64(1) { + goto toobig + } + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**int8)(__ccgo_up(v54)) = Int8FromUint32(c) + **(**Tsize_t)(__ccgo_up(outb)) -= uint64(1) + goto _51 + _53: + ; + d = c + c = Uint32FromInt32(int32(4) * Int32FromUint8(totype)) + for { + if !(c < uint32(256)) { + break + } + if d == _legacy_map(tls, tomap, c) { + goto revout + } + goto _56 + _56: + ; + c = c + 1 + } + goto subst + _39: + ; + if c < uint32(128) { + goto revout + } + if c == uint32(0xa5) { + x = x + 1 + c = uint32('\\') + goto revout + } + if c == uint32(0x203e) { + x = x + 1 + c = uint32('~') + goto revout + } + if c-uint32(0xff61) <= Uint32FromInt32(Int32FromInt32(0xdf)-Int32FromInt32(0xa1)) { + c = c + Uint32FromInt32(Int32FromInt32(0xa1)-Int32FromInt32(0xff61)) + goto revout + } + c = _uni_to_jis(tls, c) + if !(c != 0) { + goto subst + } + if **(**Tsize_t)(__ccgo_up(outb)) < uint64(2) { + goto toobig + } + d = c % uint32(256) + c = c / uint32(256) + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + if c < uint32(95) { + v25 = int32(112) + } else { + v25 = int32(176) + } + **(**int8)(__ccgo_up(v54)) = Int8FromUint32((c+uint32(1))/uint32(2) + Uint32FromInt32(v25)) + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + if c%uint32(2) != 0 { + v62 = d + uint32(31) + d/uint32(96) + } else { + v62 = d + uint32(126) + } + **(**int8)(__ccgo_up(v54)) = Int8FromUint32(v62) + **(**Tsize_t)(__ccgo_up(outb)) -= uint64(2) + goto _51 + _40: + ; + if c < uint32(128) { + goto revout + } + if c-uint32(0xff61) <= Uint32FromInt32(Int32FromInt32(0xdf)-Int32FromInt32(0xa1)) { + c = c + Uint32FromInt32(Int32FromInt32(0x0e00)+Int32FromInt32(0x21)-Int32FromInt32(0xff61)) + } else { + c = _uni_to_jis(tls, c) + } + if !(c != 0) { + goto subst + } + if **(**Tsize_t)(__ccgo_up(outb)) < uint64(2) { + goto toobig + } + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**int8)(__ccgo_up(v54)) = Int8FromUint32(c/uint32(256) + uint32(0x80)) + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**int8)(__ccgo_up(v54)) = Int8FromUint32(c%uint32(256) + uint32(0x80)) + **(**Tsize_t)(__ccgo_up(outb)) -= uint64(2) + goto _51 + _41: + ; + if c < uint32(128) { + goto revout + } + if c-uint32(0xff61) <= Uint32FromInt32(Int32FromInt32(0xdf)-Int32FromInt32(0xa1)) || c == uint32(0xa5) || c == uint32(0x203e) { + if **(**Tsize_t)(__ccgo_up(outb)) < uint64(7) { + goto toobig + } + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**int8)(__ccgo_up(v54)) = int8('\033') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**int8)(__ccgo_up(v54)) = int8('(') + if c == uint32(0xa5) { + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**int8)(__ccgo_up(v54)) = int8('J') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**int8)(__ccgo_up(v54)) = int8('\\') + } else { + if c == uint32(0x203e) { + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**int8)(__ccgo_up(v54)) = int8('J') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**int8)(__ccgo_up(v54)) = int8('~') + } else { + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**int8)(__ccgo_up(v54)) = int8('I') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**int8)(__ccgo_up(v54)) = Int8FromUint32(c - uint32(0xff61) + uint32(0x21)) + } + } + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**int8)(__ccgo_up(v54)) = int8('\033') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**int8)(__ccgo_up(v54)) = int8('(') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**int8)(__ccgo_up(v54)) = int8('B') + **(**Tsize_t)(__ccgo_up(outb)) -= uint64(7) + goto _51 + } + c = _uni_to_jis(tls, c) + if !(c != 0) { + goto subst + } + if **(**Tsize_t)(__ccgo_up(outb)) < uint64(8) { + goto toobig + } + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**int8)(__ccgo_up(v54)) = int8('\033') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**int8)(__ccgo_up(v54)) = int8('$') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**int8)(__ccgo_up(v54)) = int8('B') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**int8)(__ccgo_up(v54)) = Int8FromUint32(c / uint32(256)) + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**int8)(__ccgo_up(v54)) = Int8FromUint32(c % uint32(256)) + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**int8)(__ccgo_up(v54)) = int8('\033') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**int8)(__ccgo_up(v54)) = int8('(') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**int8)(__ccgo_up(v54)) = int8('B') + **(**Tsize_t)(__ccgo_up(outb)) -= uint64(8) + goto _51 + _42: + ; + totype = uint8(UCS2BE) + _47: + ; + _46: + ; + _45: + ; + _44: + ; + _43: + ; + if c < uint32(0x10000) || Uint32FromInt32(Int32FromUint8(totype)-int32(UCS2BE)) < uint32(2) { + if c >= uint32(0x10000) { + c = uint32(0xFFFD) + } + if **(**Tsize_t)(__ccgo_up(outb)) < uint64(2) { + goto toobig + } + _put_16(tls, **(**uintptr)(__ccgo_up(out)), c, Int32FromUint8(totype)) + **(**uintptr)(__ccgo_up(out)) += uintptr(2) + **(**Tsize_t)(__ccgo_up(outb)) -= uint64(2) + goto _51 + } + if **(**Tsize_t)(__ccgo_up(outb)) < uint64(4) { + goto toobig + } + c = c - uint32(0x10000) + _put_16(tls, **(**uintptr)(__ccgo_up(out)), c>>int32(10)|uint32(0xd800), Int32FromUint8(totype)) + _put_16(tls, **(**uintptr)(__ccgo_up(out))+UintptrFromInt32(2), c&uint32(0x3ff)|uint32(0xdc00), Int32FromUint8(totype)) + **(**uintptr)(__ccgo_up(out)) += uintptr(4) + **(**Tsize_t)(__ccgo_up(outb)) -= uint64(4) + goto _51 + _48: + ; + totype = uint8(UTF_32BE) + _50: + ; + _49: + ; + if **(**Tsize_t)(__ccgo_up(outb)) < uint64(4) { + goto toobig + } + _put_32(tls, **(**uintptr)(__ccgo_up(out)), c, Int32FromUint8(totype)) + **(**uintptr)(__ccgo_up(out)) += uintptr(4) + **(**Tsize_t)(__ccgo_up(outb)) -= uint64(4) + goto _51 + _51: + ; + goto _1 + _1: + ; + **(**uintptr)(__ccgo_up(in)) += uintptr(l) + **(**Tsize_t)(__ccgo_up(inb)) -= l + } + **(**Tlocale_t)(__ccgo_up(ploc)) = loc + return x + goto ilseq +ilseq: + ; + err = int32(EILSEQ) + x = Uint64FromInt32(-Int32FromInt32(1)) + goto end + goto toobig +toobig: + ; + err = int32(E2BIG) + x = Uint64FromInt32(-Int32FromInt32(1)) + goto end + goto starved +starved: + ; + err = int32(EINVAL) + x = Uint64FromInt32(-Int32FromInt32(1)) + goto end +end: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = err + **(**Tlocale_t)(__ccgo_up(ploc)) = loc + return x +} + +func Xiconv_close(tls *TLS, cd Ticonv_t) (r int32) { + if __ccgo_strace { + trc("tls=%v cd=%v, (%v:)", tls, cd, origin(2)) + defer func() { trc("-> %v", r) }() + } + if !(uint64(cd)&Uint64FromInt32(1) != 0) { + Xfree(tls, cd) + } + return 0 +} + +var _c_time = [316]int8{'S', 'u', 'n', 0, 'M', 'o', 'n', 0, 'T', 'u', 'e', 0, 'W', 'e', 'd', 0, 'T', 'h', 'u', 0, 'F', 'r', 'i', 0, 'S', 'a', 't', 0, 'S', 'u', 'n', 'd', 'a', 'y', 0, 'M', 'o', 'n', 'd', 'a', 'y', 0, 'T', 'u', 'e', 's', 'd', 'a', 'y', 0, 'W', 'e', 'd', 'n', 'e', 's', 'd', 'a', 'y', 0, 'T', 'h', 'u', 'r', 's', 'd', 'a', 'y', 0, 'F', 'r', 'i', 'd', 'a', 'y', 0, 'S', 'a', 't', 'u', 'r', 'd', 'a', 'y', 0, 'J', 'a', 'n', 0, 'F', 'e', 'b', 0, 'M', 'a', 'r', 0, 'A', 'p', 'r', 0, 'M', 'a', 'y', 0, 'J', 'u', 'n', 0, 'J', 'u', 'l', 0, 'A', 'u', 'g', 0, 'S', 'e', 'p', 0, 'O', 'c', 't', 0, 'N', 'o', 'v', 0, 'D', 'e', 'c', 0, 'J', 'a', 'n', 'u', 'a', 'r', 'y', 0, 'F', 'e', 'b', 'r', 'u', 'a', 'r', 'y', 0, 'M', 'a', 'r', 'c', 'h', 0, 'A', 'p', 'r', 'i', 'l', 0, 'M', 'a', 'y', 0, 'J', 'u', 'n', 'e', 0, 'J', 'u', 'l', 'y', 0, 'A', 'u', 'g', 'u', 's', 't', 0, 'S', 'e', 'p', 't', 'e', 'm', 'b', 'e', 'r', 0, 'O', 'c', 't', 'o', 'b', 'e', 'r', 0, 'N', 'o', 'v', 'e', 'm', 'b', 'e', 'r', 0, 'D', 'e', 'c', 'e', 'm', 'b', 'e', 'r', 0, 'A', 'M', 0, 'P', 'M', 0, '%', 'a', ' ', '%', 'b', ' ', '%', 'e', ' ', '%', 'T', ' ', '%', 'Y', 0, '%', 'm', '/', '%', 'd', '/', '%', 'y', 0, '%', 'H', ':', '%', 'M', ':', '%', 'S', 0, '%', 'I', ':', '%', 'M', ':', '%', 'S', ' ', '%', 'p', 0, 0, 0, '%', 'm', '/', '%', 'd', '/', '%', 'y', 0, '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 0, '%', 'a', ' ', '%', 'b', ' ', '%', 'e', ' ', '%', 'T', ' ', '%', 'Y', 0, '%', 'H', ':', '%', 'M', ':', '%', 'S'} + +var _c_messages = [19]int8{'^', '[', 'y', 'Y', ']', 0, '^', '[', 'n', 'N', ']', 0, 'y', 'e', 's', 0, 'n', 'o'} +var _c_numeric = [3]int8{'.'} + +func X__nl_langinfo_l(tls *TLS, item Tnl_item, loc Tlocale_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v item=%v loc=%v, (%v:)", tls, item, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + var cat, idx int32 + var str, v1 uintptr + _, _, _, _ = cat, idx, str, v1 + cat = item >> int32(16) + idx = item & int32(65535) + if item == int32(CODESET) { + if **(**uintptr)(__ccgo_up(loc)) != 0 { + v1 = __ccgo_ts + 388 + } else { + v1 = __ccgo_ts + 533 + } + return v1 + } + /* _NL_LOCALE_NAME extension */ + if idx == int32(65535) && cat < int32(LC_ALL) { + if **(**uintptr)(__ccgo_up(loc + uintptr(cat)*8)) != 0 { + v1 = **(**uintptr)(__ccgo_up(loc + uintptr(cat)*8)) + 16 + } else { + v1 = __ccgo_ts + 539 + } + return v1 + } + switch cat { + case int32(LC_NUMERIC): + if idx > int32(1) { + return __ccgo_ts + } + str = uintptr(unsafe.Pointer(&_c_numeric)) + case int32(LC_TIME): + if idx > int32(0x31) { + return __ccgo_ts + } + str = uintptr(unsafe.Pointer(&_c_time)) + case int32(LC_MONETARY): + if idx > 0 { + return __ccgo_ts + } + str = __ccgo_ts + case int32(LC_MESSAGES): + if idx > int32(3) { + return __ccgo_ts + } + str = uintptr(unsafe.Pointer(&_c_messages)) + default: + return __ccgo_ts + } + for { + if !(idx != 0) { + break + } + for { + if !(**(**int8)(__ccgo_up(str)) != 0) { + break + } + goto _4 + _4: + ; + str = str + 1 + } + goto _3 + _3: + ; + idx = idx - 1 + str = str + 1 + } + if cat != int32(LC_NUMERIC) && **(**int8)(__ccgo_up(str)) != 0 { + str = X__lctrans(tls, str, **(**uintptr)(__ccgo_up(loc + uintptr(cat)*8))) + } + return str +} + +func X__nl_langinfo(tls *TLS, item Tnl_item) (r uintptr) { + if __ccgo_strace { + trc("tls=%v item=%v, (%v:)", tls, item, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__nl_langinfo_l(tls, item, (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale) +} + +func Xnl_langinfo(tls *TLS, item Tnl_item) (r uintptr) { + if __ccgo_strace { + trc("tls=%v item=%v, (%v:)", tls, item, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__nl_langinfo(tls, item) +} + +func Xnl_langinfo_l(tls *TLS, item Tnl_item, loc Tlocale_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v item=%v loc=%v, (%v:)", tls, item, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__nl_langinfo_l(tls, item, loc) +} + +func X__lctrans_impl(tls *TLS, msg uintptr, lm uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v msg=%v lm=%v, (%v:)", tls, msg, lm, origin(2)) + defer func() { trc("-> %v", r) }() + } + var trans, v1 uintptr + _, _ = trans, v1 + trans = uintptr(0) + if lm != 0 { + trans = X__mo_lookup(tls, (*t__locale_map)(unsafe.Pointer(lm)).Fmap1, (*t__locale_map)(unsafe.Pointer(lm)).Fmap_size, msg) + } + if trans != 0 { + v1 = trans + } else { + v1 = msg + } + return v1 +} + +var _envvars = [6][12]int8{ + 0: {'L', 'C', '_', 'C', 'T', 'Y', 'P', 'E'}, + 1: {'L', 'C', '_', 'N', 'U', 'M', 'E', 'R', 'I', 'C'}, + 2: {'L', 'C', '_', 'T', 'I', 'M', 'E'}, + 3: {'L', 'C', '_', 'C', 'O', 'L', 'L', 'A', 'T', 'E'}, + 4: {'L', 'C', '_', 'M', 'O', 'N', 'E', 'T', 'A', 'R', 'Y'}, + 5: {'L', 'C', '_', 'M', 'E', 'S', 'S', 'A', 'G', 'E', 'S'}, +} + +func X__get_locale(tls *TLS, cat int32, val uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v cat=%v val=%v, (%v:)", tls, cat, val, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(272) + defer tls.Free(272) + var builtin int32 + var l, n Tsize_t + var map1, new1, p, path, z, v1, v2, v4, v6 uintptr + var v3, v5, v7 bool + var _ /* buf at bp+0 */ [256]int8 + var _ /* map_size at bp+256 */ Tsize_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = builtin, l, map1, n, new1, p, path, z, v1, v2, v3, v4, v5, v6, v7 + new1 = uintptr(0) + path = uintptr(0) + if !(**(**int8)(__ccgo_up(val)) != 0) { + v1 = Xgetenv(tls, __ccgo_ts+541) + val = v1 + if v3 = v1 != 0 && **(**int8)(__ccgo_up(val)) != 0; !v3 { + v2 = Xgetenv(tls, uintptr(unsafe.Pointer(&_envvars))+uintptr(cat)*12) + val = v2 + } + if v5 = v3 || v2 != 0 && **(**int8)(__ccgo_up(val)) != 0; !v5 { + v4 = Xgetenv(tls, __ccgo_ts+402) + val = v4 + } + if v7 = v5 || v4 != 0 && **(**int8)(__ccgo_up(val)) != 0; !v7 { + v6 = __ccgo_ts + 548 + val = v6 + } + _ = v7 || v6 != 0 + } + /* Limit name length and forbid leading dot or any slashes. */ + n = uint64(0) + for { + if !(n < uint64(LOCALE_NAME_MAX) && **(**int8)(__ccgo_up(val + uintptr(n))) != 0 && int32(**(**int8)(__ccgo_up(val + uintptr(n)))) != int32('/')) { + break + } + goto _8 + _8: + ; + n = n + 1 + } + if int32(**(**int8)(__ccgo_up(val))) == int32('.') || **(**int8)(__ccgo_up(val + uintptr(n))) != 0 { + val = __ccgo_ts + 548 + } + builtin = BoolInt32(int32(**(**int8)(__ccgo_up(val))) == int32('C') && !(**(**int8)(__ccgo_up(val + 1)) != 0) || !(Xstrcmp(tls, val, __ccgo_ts+548) != 0) || !(Xstrcmp(tls, val, __ccgo_ts+556) != 0)) + if builtin != 0 { + if cat == LC_CTYPE && int32(**(**int8)(__ccgo_up(val + 1))) == int32('.') { + return uintptr(unsafe.Pointer(&X__c_dot_utf8)) + } + return uintptr(0) + } + p = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_loc_head))) + for { + if !(p != 0) { + break + } + if !(Xstrcmp(tls, val, p+16) != 0) { + return p + } + goto _9 + _9: + ; + p = (*t__locale_map)(unsafe.Pointer(p)).Fnext + } + if !(X__libc.Fsecure != 0) { + path = Xgetenv(tls, __ccgo_ts+562) + } + /* FIXME: add a default path? */ + if path != 0 { + for { + if !(**(**int8)(__ccgo_up(path)) != 0) { + break + } + z = X__strchrnul(tls, path, int32(':')) + l = Uint64FromInt64(int64(z) - int64(path)) + if l >= uint64(256)-n-uint64(2) { + goto _10 + } + Xmemcpy(tls, bp, path, l) + (**(**[256]int8)(__ccgo_up(bp)))[l] = int8('/') + Xmemcpy(tls, bp+uintptr(l)+uintptr(1), val, n) + (**(**[256]int8)(__ccgo_up(bp)))[l+uint64(1)+n] = 0 + map1 = X__map_file(tls, bp, bp+256) + if map1 != 0 { + new1 = Xmalloc(tls, uint64(48)) + if !(new1 != 0) { + X__munmap(tls, map1, **(**Tsize_t)(__ccgo_up(bp + 256))) + break + } + (*t__locale_map)(unsafe.Pointer(new1)).Fmap1 = map1 + (*t__locale_map)(unsafe.Pointer(new1)).Fmap_size = **(**Tsize_t)(__ccgo_up(bp + 256)) + Xmemcpy(tls, new1+16, val, n) + **(**int8)(__ccgo_up(new1 + 16 + uintptr(n))) = 0 + (*t__locale_map)(unsafe.Pointer(new1)).Fnext = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_loc_head))) + AtomicStorePUintptr(uintptr(unsafe.Pointer(&_loc_head)), new1) + break + } + goto _10 + _10: + ; + path = z + BoolUintptr(!!(**(**int8)(__ccgo_up(z)) != 0)) + } + } + /* If no locale definition was found, make a locale map + * object anyway to store the name, which is kept for the + * sake of being able to do message translations at the + * application level. */ + if v3 = !(new1 != 0); v3 { + v1 = Xmalloc(tls, uint64(48)) + new1 = v1 + } + if v3 && v1 != 0 { + (*t__locale_map)(unsafe.Pointer(new1)).Fmap1 = X__c_dot_utf8.Fmap1 + (*t__locale_map)(unsafe.Pointer(new1)).Fmap_size = X__c_dot_utf8.Fmap_size + Xmemcpy(tls, new1+16, val, n) + **(**int8)(__ccgo_up(new1 + 16 + uintptr(n))) = 0 + (*t__locale_map)(unsafe.Pointer(new1)).Fnext = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_loc_head))) + AtomicStorePUintptr(uintptr(unsafe.Pointer(&_loc_head)), new1) + } + /* For LC_CTYPE, never return a null pointer unless the + * requested name was "C" or "POSIX". */ + if !(new1 != 0) && cat == LC_CTYPE { + new1 = uintptr(unsafe.Pointer(&X__c_dot_utf8)) + } + return new1 +} + +var _loc_head uintptr + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +var _posix_lconv = Tlconv{ + Fdecimal_point: __ccgo_ts + 575, + Fthousands_sep: __ccgo_ts, + Fgrouping: __ccgo_ts, + Fint_curr_symbol: __ccgo_ts, + Fcurrency_symbol: __ccgo_ts, + Fmon_decimal_point: __ccgo_ts, + Fmon_thousands_sep: __ccgo_ts, + Fmon_grouping: __ccgo_ts, + Fpositive_sign: __ccgo_ts, + Fnegative_sign: __ccgo_ts, + Fint_frac_digits: Int8FromInt32(CHAR_MAX), + Ffrac_digits: Int8FromInt32(CHAR_MAX), + Fp_cs_precedes: Int8FromInt32(CHAR_MAX), + Fp_sep_by_space: Int8FromInt32(CHAR_MAX), + Fn_cs_precedes: Int8FromInt32(CHAR_MAX), + Fn_sep_by_space: Int8FromInt32(CHAR_MAX), + Fp_sign_posn: Int8FromInt32(CHAR_MAX), + Fn_sign_posn: Int8FromInt32(CHAR_MAX), + Fint_p_cs_precedes: Int8FromInt32(CHAR_MAX), + Fint_p_sep_by_space: Int8FromInt32(CHAR_MAX), + Fint_n_cs_precedes: Int8FromInt32(CHAR_MAX), + Fint_n_sep_by_space: Int8FromInt32(CHAR_MAX), + Fint_p_sign_posn: Int8FromInt32(CHAR_MAX), + Fint_n_sign_posn: Int8FromInt32(CHAR_MAX), +} + +func Xlocaleconv(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(unsafe.Pointer(&_posix_lconv)) +} + +var _default_locale_init_done int32 +var _default_locale t__locale_struct +var _default_ctype_locale t__locale_struct + +func X__loc_is_allocated(tls *TLS, loc Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v loc=%v, (%v:)", tls, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(loc != 0 && loc != uintptr(unsafe.Pointer(&X__c_locale)) && loc != uintptr(unsafe.Pointer(&X__c_dot_utf8_locale)) && loc != uintptr(unsafe.Pointer(&_default_locale)) && loc != uintptr(unsafe.Pointer(&_default_ctype_locale))) +} + +func _do_newlocale(tls *TLS, mask int32, name uintptr, loc Tlocale_t) (r Tlocale_t) { + bp := tls.Alloc(48) + defer tls.Free(48) + var i, i1 int32 + var v2, v3 uintptr + var v5 Tlocale_t + var _ /* tmp at bp+0 */ t__locale_struct + _, _, _, _, _ = i, i1, v2, v3, v5 + i = 0 + for { + if !(i < int32(LC_ALL)) { + break + } + if !(mask&(Int32FromInt32(1)< %v", r) }() + } + ___lock(tls, uintptr(unsafe.Pointer(&X__locale_lock))) + loc = _do_newlocale(tls, mask, name, loc) + ___unlock(tls, uintptr(unsafe.Pointer(&X__locale_lock))) + return loc +} + +func Xnewlocale(tls *TLS, mask int32, name uintptr, loc Tlocale_t) (r Tlocale_t) { + if __ccgo_strace { + trc("tls=%v mask=%v name=%v loc=%v, (%v:)", tls, mask, name, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__newlocale(tls, mask, name, loc) +} + +/* +grammar: + +Start = Expr ';' +Expr = Or | Or '?' Expr ':' Expr +Or = And | Or '||' And +And = Eq | And '&&' Eq +Eq = Rel | Eq '==' Rel | Eq '!=' Rel +Rel = Add | Rel '<=' Add | Rel '>=' Add | Rel '<' Add | Rel '>' Add +Add = Mul | Add '+' Mul | Add '-' Mul +Mul = Prim | Mul '*' Prim | Mul '/' Prim | Mul '%' Prim +Prim = '(' Expr ')' | '!' Prim | decimal | 'n' + +internals: + +recursive descent expression evaluator with stack depth limit. +for binary operators an operator-precedence parser is used. +eval* functions store the result of the parsed subexpression +and return a pointer to the next non-space character. +*/ + +type Tst = struct { + Fr uint64 + Fn uint64 + Fop int32 +} + +func _skipspace(tls *TLS, s uintptr) (r uintptr) { + var v1, v2 int32 + _, _ = v1, v2 + for { + v1 = int32(**(**int8)(__ccgo_up(s))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _3 + _3: + if !(v2 != 0) { + break + } + s = s + 1 + } + return s +} + +func _evalprim(tls *TLS, st uintptr, s uintptr, d int32) (r uintptr) { + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 int32 + var _ /* e at bp+0 */ uintptr + _ = v1 + d = d - 1 + v1 = d + if v1 < 0 { + return __ccgo_ts + } + s = _skipspace(tls, s) + if BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(s)))-uint32('0') < uint32(10)) != 0 { + (*Tst)(unsafe.Pointer(st)).Fr = Xstrtoul(tls, s, bp, int32(10)) + if **(**uintptr)(__ccgo_up(bp)) == s || (*Tst)(unsafe.Pointer(st)).Fr == Uint64FromInt32(-Int32FromInt32(1)) { + return __ccgo_ts + } + return _skipspace(tls, **(**uintptr)(__ccgo_up(bp))) + } + if int32(**(**int8)(__ccgo_up(s))) == int32('n') { + (*Tst)(unsafe.Pointer(st)).Fr = (*Tst)(unsafe.Pointer(st)).Fn + return _skipspace(tls, s+uintptr(1)) + } + if int32(**(**int8)(__ccgo_up(s))) == int32('(') { + s = _evalexpr(tls, st, s+uintptr(1), d) + if int32(**(**int8)(__ccgo_up(s))) != int32(')') { + return __ccgo_ts + } + return _skipspace(tls, s+uintptr(1)) + } + if int32(**(**int8)(__ccgo_up(s))) == int32('!') { + s = _evalprim(tls, st, s+uintptr(1), d) + (*Tst)(unsafe.Pointer(st)).Fr = BoolUint64(!((*Tst)(unsafe.Pointer(st)).Fr != 0)) + return s + } + return __ccgo_ts +} + +func _binop(tls *TLS, st uintptr, op int32, left uint64) (r int32) { + var a, b uint64 + _, _ = a, b + a = left + b = (*Tst)(unsafe.Pointer(st)).Fr + switch op { + case 0: + (*Tst)(unsafe.Pointer(st)).Fr = BoolUint64(a != 0 || b != 0) + return 0 + case int32(1): + (*Tst)(unsafe.Pointer(st)).Fr = BoolUint64(a != 0 && b != 0) + return 0 + case int32(2): + (*Tst)(unsafe.Pointer(st)).Fr = BoolUint64(a == b) + return 0 + case int32(3): + (*Tst)(unsafe.Pointer(st)).Fr = BoolUint64(a != b) + return 0 + case int32(4): + (*Tst)(unsafe.Pointer(st)).Fr = BoolUint64(a >= b) + return 0 + case int32(5): + (*Tst)(unsafe.Pointer(st)).Fr = BoolUint64(a <= b) + return 0 + case int32(6): + (*Tst)(unsafe.Pointer(st)).Fr = BoolUint64(a > b) + return 0 + case int32(7): + (*Tst)(unsafe.Pointer(st)).Fr = BoolUint64(a < b) + return 0 + case int32(8): + (*Tst)(unsafe.Pointer(st)).Fr = a + b + return 0 + case int32(9): + (*Tst)(unsafe.Pointer(st)).Fr = a - b + return 0 + case int32(10): + (*Tst)(unsafe.Pointer(st)).Fr = a * b + return 0 + case int32(11): + if b != 0 { + (*Tst)(unsafe.Pointer(st)).Fr = a % b + return 0 + } + return int32(1) + case int32(12): + if b != 0 { + (*Tst)(unsafe.Pointer(st)).Fr = a / b + return 0 + } + return int32(1) + } + return int32(1) +} + +func _parseop(tls *TLS, st uintptr, s uintptr) (r uintptr) { + var i int32 + _ = i + i = 0 + for { + if !(i < int32(11)) { + break + } + if int32(**(**int8)(__ccgo_up(s))) == int32(_opch[i]) { + /* note: >,< are accepted with or without = */ + if i < int32(6) && int32(**(**int8)(__ccgo_up(s + 1))) == int32(_opch2[i]) { + (*Tst)(unsafe.Pointer(st)).Fop = i + return s + uintptr(2) + } + if i >= int32(4) { + (*Tst)(unsafe.Pointer(st)).Fop = i + int32(2) + return s + uintptr(1) + } + break + } + goto _1 + _1: + ; + i = i + 1 + } + (*Tst)(unsafe.Pointer(st)).Fop = int32(13) + return s +} + +var _opch = [11]int8{'|', '&', '=', '!', '>', '<', '+', '-', '*', '%', '/'} + +var _opch2 = [6]int8{'|', '&', '=', '=', '=', '='} + +func _evalbinop(tls *TLS, st uintptr, s uintptr, minprec int32, d int32) (r uintptr) { + var left uint64 + var op int32 + _, _ = left, op + d = d - 1 + s = _evalprim(tls, st, s, d) + s = _parseop(tls, st, s) + for { + /* + st->r (left hand side value) and st->op are now set, + get the right hand side or back out if op has low prec, + if op was missing then prec[op]==0 + */ + op = (*Tst)(unsafe.Pointer(st)).Fop + if int32(_prec[op]) <= minprec { + return s + } + left = (*Tst)(unsafe.Pointer(st)).Fr + s = _evalbinop(tls, st, s, int32(_prec[op]), d) + if _binop(tls, st, op, left) != 0 { + return __ccgo_ts + } + goto _1 + _1: + } + return r +} + +var _prec = [14]int8{ + 0: int8(1), + 1: int8(2), + 2: int8(3), + 3: int8(3), + 4: int8(4), + 5: int8(4), + 6: int8(4), + 7: int8(4), + 8: int8(5), + 9: int8(5), + 10: int8(6), + 11: int8(6), + 12: int8(6), +} + +func _evalexpr(tls *TLS, st uintptr, s uintptr, d int32) (r uintptr) { + var a, b, v2 uint64 + var v1 int32 + _, _, _, _ = a, b, v1, v2 + d = d - 1 + v1 = d + if v1 < 0 { + return __ccgo_ts + } + s = _evalbinop(tls, st, s, 0, d) + if int32(**(**int8)(__ccgo_up(s))) != int32('?') { + return s + } + a = (*Tst)(unsafe.Pointer(st)).Fr + s = _evalexpr(tls, st, s+uintptr(1), d) + if int32(**(**int8)(__ccgo_up(s))) != int32(':') { + return __ccgo_ts + } + b = (*Tst)(unsafe.Pointer(st)).Fr + s = _evalexpr(tls, st, s+uintptr(1), d) + if a != 0 { + v2 = b + } else { + v2 = (*Tst)(unsafe.Pointer(st)).Fr + } + (*Tst)(unsafe.Pointer(st)).Fr = v2 + return s +} + +func X__pleval(tls *TLS, s uintptr, n uint64) (r uint64) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v, (%v:)", tls, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var v1 uint64 + var _ /* st at bp+0 */ Tst + _ = v1 + (**(**Tst)(__ccgo_up(bp))).Fn = n + s = _evalexpr(tls, bp, s, int32(100)) + if int32(**(**int8)(__ccgo_up(s))) == int32(';') { + v1 = (**(**Tst)(__ccgo_up(bp))).Fr + } else { + v1 = Uint64FromInt32(-Int32FromInt32(1)) + } + return v1 +} + +var _buf1 [144]int8 + +func Xsetlocale(tls *TLS, cat int32, name uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v cat=%v name=%v, (%v:)", tls, cat, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(80) + defer tls.Free(80) + var i, same int32 + var l Tsize_t + var lm, lm1, p, part1, ret, s, z, v3 uintptr + var _ /* part at bp+48 */ [24]int8 + var _ /* tmp_locale at bp+0 */ t__locale_struct + _, _, _, _, _, _, _, _, _, _, _ = i, l, lm, lm1, p, part1, ret, s, same, z, v3 + if Uint32FromInt32(cat) > uint32(LC_ALL) { + return uintptr(0) + } + ___lock(tls, uintptr(unsafe.Pointer(&X__locale_lock))) + /* For LC_ALL, setlocale is required to return a string which + * encodes the current setting for all categories. The format of + * this string is unspecified, and only the following code, which + * performs both the serialization and deserialization, depends + * on the format, so it can easily be changed if needed. */ + if cat == int32(LC_ALL) { + if name != 0 { + **(**[24]int8)(__ccgo_up(bp + 48)) = [24]int8{'C', '.', 'U', 'T', 'F', '-', '8'} + p = name + i = 0 + for { + if !(i < int32(LC_ALL)) { + break + } + z = X__strchrnul(tls, p, int32(';')) + if int64(z)-int64(p) <= int64(LOCALE_NAME_MAX) { + Xmemcpy(tls, bp+48, p, Uint64FromInt64(int64(z)-int64(p))) + (**(**[24]int8)(__ccgo_up(bp + 48)))[int64(z)-int64(p)] = 0 + if **(**int8)(__ccgo_up(z)) != 0 { + p = z + uintptr(1) + } + } + lm = X__get_locale(tls, i, bp+48) + if lm == uintptr(-Int32FromInt32(1)) { + ___unlock(tls, uintptr(unsafe.Pointer(&X__locale_lock))) + return uintptr(0) + } + **(**uintptr)(__ccgo_up(bp + uintptr(i)*8)) = lm + goto _1 + _1: + ; + i = i + 1 + } + X__libc.Fglobal_locale = **(**t__locale_struct)(__ccgo_up(bp)) + } + s = uintptr(unsafe.Pointer(&_buf1)) + same = 0 + i = 0 + for { + if !(i < int32(LC_ALL)) { + break + } + lm1 = **(**uintptr)(__ccgo_up(uintptr(unsafe.Pointer(&X__libc)) + 56 + uintptr(i)*8)) + if lm1 == **(**uintptr)(__ccgo_up(uintptr(unsafe.Pointer(&X__libc)) + 56)) { + same = same + 1 + } + if lm1 != 0 { + v3 = lm1 + 16 + } else { + v3 = __ccgo_ts + 539 + } + part1 = v3 + l = _strlen(tls, part1) + Xmemcpy(tls, s, part1, l) + **(**int8)(__ccgo_up(s + uintptr(l))) = int8(';') + s = s + uintptr(l+uint64(1)) + goto _2 + _2: + ; + i = i + 1 + } + s = s - 1 + v3 = s + **(**int8)(__ccgo_up(v3)) = 0 + ___unlock(tls, uintptr(unsafe.Pointer(&X__locale_lock))) + if same == int32(LC_ALL) { + v3 = part1 + } else { + v3 = uintptr(unsafe.Pointer(&_buf1)) + } + return v3 + } + if name != 0 { + lm = X__get_locale(tls, cat, name) + if lm == uintptr(-Int32FromInt32(1)) { + ___unlock(tls, uintptr(unsafe.Pointer(&X__locale_lock))) + return uintptr(0) + } + **(**uintptr)(__ccgo_up(uintptr(unsafe.Pointer(&X__libc)) + 56 + uintptr(cat)*8)) = lm + } else { + lm = **(**uintptr)(__ccgo_up(uintptr(unsafe.Pointer(&X__libc)) + 56 + uintptr(cat)*8)) + } + if lm != 0 { + v3 = lm + 16 + } else { + v3 = __ccgo_ts + 539 + } + ret = v3 + ___unlock(tls, uintptr(unsafe.Pointer(&X__locale_lock))) + return ret +} + +func X__strcoll_l(tls *TLS, l uintptr, r uintptr, loc Tlocale_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v loc=%v, (%v:)", tls, l, r, loc, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return Xstrcmp(tls, l, r) +} + +func Xstrcoll(tls *TLS, l uintptr, r uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v, (%v:)", tls, l, r, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return X__strcoll_l(tls, l, r, (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale) +} + +func Xstrcoll_l(tls *TLS, l uintptr, r uintptr, loc Tlocale_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v loc=%v, (%v:)", tls, l, r, loc, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return X__strcoll_l(tls, l, r, loc) +} + +func _vstrfmon_l(tls *TLS, s uintptr, n Tsize_t, loc Tlocale_t, fmt uintptr, ap Tva_list) (r Tssize_t) { + bp := tls.Alloc(32) + defer tls.Free(32) + var fill, fw, intl, left, lp, negpar, nogrp, nosym, rp, w int32 + var l Tsize_t + var s0, v5, v6 uintptr + var x float64 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = fill, fw, intl, l, left, lp, negpar, nogrp, nosym, rp, s0, w, x, v5, v6 + s0 = s +_3: + ; + if !(n != 0 && **(**int8)(__ccgo_up(fmt)) != 0) { + goto _1 + } + if !(int32(**(**int8)(__ccgo_up(fmt))) != int32('%')) { + goto _4 + } + goto literal +literal: + ; + v5 = s + s = s + 1 + v6 = fmt + fmt = fmt + 1 + **(**int8)(__ccgo_up(v5)) = **(**int8)(__ccgo_up(v6)) + n = n - 1 + goto _2 +_4: + ; + fmt = fmt + 1 + if int32(**(**int8)(__ccgo_up(fmt))) == int32('%') { + goto literal + } + fill = int32(' ') + nogrp = 0 + negpar = 0 + nosym = 0 + left = 0 + for { + switch int32(**(**int8)(__ccgo_up(fmt))) { + case int32('='): + fmt = fmt + 1 + v5 = fmt + fill = int32(**(**int8)(__ccgo_up(v5))) + goto _7 + case int32('^'): + nogrp = int32(1) + goto _7 + case int32('('): + negpar = int32(1) + fallthrough + case int32('+'): + goto _7 + case int32('!'): + nosym = int32(1) + goto _7 + case int32('-'): + left = int32(1) + goto _7 + } + break + goto _7 + _7: + ; + fmt = fmt + 1 + } + fw = 0 + for { + if !(BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(fmt)))-uint32('0') < uint32(10)) != 0) { + break + } + fw = int32(10)*fw + (int32(**(**int8)(__ccgo_up(fmt))) - int32('0')) + goto _9 + _9: + ; + fmt = fmt + 1 + } + lp = 0 + rp = int32(2) + if int32(**(**int8)(__ccgo_up(fmt))) == int32('#') { + lp = 0 + fmt = fmt + 1 + for { + if !(BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(fmt)))-uint32('0') < uint32(10)) != 0) { + break + } + lp = int32(10)*lp + (int32(**(**int8)(__ccgo_up(fmt))) - int32('0')) + goto _10 + _10: + ; + fmt = fmt + 1 + } + } + if int32(**(**int8)(__ccgo_up(fmt))) == int32('.') { + rp = 0 + fmt = fmt + 1 + for { + if !(BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(fmt)))-uint32('0') < uint32(10)) != 0) { + break + } + rp = int32(10)*rp + (int32(**(**int8)(__ccgo_up(fmt))) - int32('0')) + goto _11 + _11: + ; + fmt = fmt + 1 + } + } + v5 = fmt + fmt = fmt + 1 + intl = BoolInt32(int32(**(**int8)(__ccgo_up(v5))) == int32('i')) + w = lp + int32(1) + rp + if !(left != 0) && fw > w { + w = fw + } + x = VaFloat64(&ap) + l = Uint64FromInt32(Xsnprintf(tls, s, n, __ccgo_ts+577, VaList(bp+8, w, rp, x))) + if l >= n { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(E2BIG) + return int64(-int32(1)) + } + s = s + uintptr(l) + n = n - l + goto _2 +_2: + ; + goto _3 + goto _1 +_1: + ; + return int64(s) - int64(s0) +} + +func Xstrfmon_l(tls *TLS, s uintptr, n Tsize_t, loc Tlocale_t, fmt uintptr, va uintptr) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v loc=%v fmt=%v va=%v, (%v:)", tls, s, n, loc, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret Tssize_t + _, _ = ap, ret + ap = va + ret = _vstrfmon_l(tls, s, n, loc, fmt, ap) + _ = ap + return ret +} + +func Xstrfmon(tls *TLS, s uintptr, n Tsize_t, fmt uintptr, va uintptr) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v fmt=%v va=%v, (%v:)", tls, s, n, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret Tssize_t + _, _ = ap, ret + ap = va + ret = _vstrfmon_l(tls, s, n, (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale, fmt, ap) + _ = ap + return ret +} + +func Xstrtof_l(tls *TLS, s uintptr, p uintptr, l Tlocale_t) (r float32) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v l=%v, (%v:)", tls, s, p, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtof(tls, s, p) +} + +func Xstrtod_l(tls *TLS, s uintptr, p uintptr, l Tlocale_t) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v l=%v, (%v:)", tls, s, p, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtod(tls, s, p) +} + +func Xstrtold_l(tls *TLS, s uintptr, p uintptr, l Tlocale_t) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v l=%v, (%v:)", tls, s, p, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtold(tls, s, p) +} + +func X__strtod_l(tls *TLS, s uintptr, p uintptr, l Tlocale_t) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v l=%v, (%v:)", tls, s, p, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtod_l(tls, s, p, l) +} + +func X__strtof_l(tls *TLS, s uintptr, p uintptr, l Tlocale_t) (r float32) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v l=%v, (%v:)", tls, s, p, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtof_l(tls, s, p, l) +} + +func X__strtold_l(tls *TLS, s uintptr, p uintptr, l Tlocale_t) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v l=%v, (%v:)", tls, s, p, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtold_l(tls, s, p, l) +} + +// C documentation +// +// /* collate only by code points */ +func X__strxfrm_l(tls *TLS, dest uintptr, src uintptr, n Tsize_t, loc Tlocale_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v n=%v loc=%v, (%v:)", tls, dest, src, n, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l Tsize_t + _ = l + l = _strlen(tls, src) + if n > l { + Xstrcpy(tls, dest, src) + } + return l +} + +func Xstrxfrm(tls *TLS, dest uintptr, src uintptr, n Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v n=%v, (%v:)", tls, dest, src, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__strxfrm_l(tls, dest, src, n, (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale) +} + +// C documentation +// +// /* collate only by code points */ +func Xstrxfrm_l(tls *TLS, dest uintptr, src uintptr, n Tsize_t, loc Tlocale_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v n=%v loc=%v, (%v:)", tls, dest, src, n, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__strxfrm_l(tls, dest, src, n, loc) +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +var _current_domain uintptr + +func X__gettextdomain(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 uintptr + _ = v1 + if _current_domain != 0 { + v1 = _current_domain + } else { + v1 = __ccgo_ts + 431 + } + return v1 +} + +func Xtextdomain(tls *TLS, domainname uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v domainname=%v, (%v:)", tls, domainname, origin(2)) + defer func() { trc("-> %v", r) }() + } + var domlen Tsize_t + _ = domlen + if !(domainname != 0) { + return X__gettextdomain(tls) + } + domlen = _strlen(tls, domainname) + if domlen > uint64(NAME_MAX) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(0) + } + if !(_current_domain != 0) { + _current_domain = Xmalloc(tls, Uint64FromInt32(Int32FromInt32(NAME_MAX)+Int32FromInt32(1))) + if !(_current_domain != 0) { + return uintptr(0) + } + } + Xmemcpy(tls, _current_domain, domainname, domlen+uint64(1)) + return _current_domain +} + +func Xgettext(tls *TLS, msgid uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v msgid=%v, (%v:)", tls, msgid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xdgettext(tls, uintptr(0), msgid) +} + +func Xngettext(tls *TLS, msgid1 uintptr, msgid2 uintptr, n uint64) (r uintptr) { + if __ccgo_strace { + trc("tls=%v msgid1=%v msgid2=%v n=%v, (%v:)", tls, msgid1, msgid2, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xdngettext(tls, uintptr(0), msgid1, msgid2, n) +} + +func X__uselocale(tls *TLS, new1 Tlocale_t) (r Tlocale_t) { + if __ccgo_strace { + trc("tls=%v new1=%v, (%v:)", tls, new1, origin(2)) + defer func() { trc("-> %v", r) }() + } + var global, old, v1 Tlocale_t + var self Tpthread_t + _, _, _, _ = global, old, self, v1 + self = uintptr(___get_tp(tls)) + old = (*t__pthread)(unsafe.Pointer(self)).Flocale + global = uintptr(unsafe.Pointer(&X__libc)) + 56 + if new1 != 0 { + if new1 == uintptr(-Int32FromInt32(1)) { + v1 = global + } else { + v1 = new1 + } + (*t__pthread)(unsafe.Pointer(self)).Flocale = v1 + } + if old == global { + v1 = uintptr(-Int32FromInt32(1)) + } else { + v1 = old + } + return v1 +} + +func Xuselocale(tls *TLS, new1 Tlocale_t) (r Tlocale_t) { + if __ccgo_strace { + trc("tls=%v new1=%v, (%v:)", tls, new1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__uselocale(tls, new1) +} + +// C documentation +// +// /* FIXME: stub */ +func X__wcscoll_l(tls *TLS, l uintptr, r uintptr, locale Tlocale_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v locale=%v, (%v:)", tls, l, r, locale, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return Xwcscmp(tls, l, r) +} + +func Xwcscoll(tls *TLS, l uintptr, r uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v, (%v:)", tls, l, r, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return X__wcscoll_l(tls, l, r, (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale) +} + +// C documentation +// +// /* FIXME: stub */ +func Xwcscoll_l(tls *TLS, l uintptr, r uintptr, locale Tlocale_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v locale=%v, (%v:)", tls, l, r, locale, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return X__wcscoll_l(tls, l, r, locale) +} + +// C documentation +// +// /* collate only by code points */ +func X__wcsxfrm_l(tls *TLS, dest uintptr, src uintptr, n Tsize_t, loc Tlocale_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v n=%v loc=%v, (%v:)", tls, dest, src, n, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l Tsize_t + _ = l + l = Xwcslen(tls, src) + if l < n { + Xwmemcpy(tls, dest, src, l+uint64(1)) + } else { + if n != 0 { + Xwmemcpy(tls, dest, src, n-uint64(1)) + **(**Twchar_t)(__ccgo_up(dest + uintptr(n-uint64(1))*4)) = 0 + } + } + return l +} + +func Xwcsxfrm(tls *TLS, dest uintptr, src uintptr, n Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v n=%v, (%v:)", tls, dest, src, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__wcsxfrm_l(tls, dest, src, n, (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale) +} + +// C documentation +// +// /* collate only by code points */ +func Xwcsxfrm_l(tls *TLS, dest uintptr, src uintptr, n Tsize_t, loc Tlocale_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v n=%v loc=%v, (%v:)", tls, dest, src, n, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__wcsxfrm_l(tls, dest, src, n, loc) +} + +func Xreallocarray(tls *TLS, ptr uintptr, m Tsize_t, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v ptr=%v m=%v n=%v, (%v:)", tls, ptr, m, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + if n != 0 && m > Uint64FromInt32(-Int32FromInt32(1))/n { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOMEM) + return uintptr(0) + } + return Xrealloc(tls, ptr, m*n) +} + +const LDBL_EPSILON2 = 0 +const LDBL_MAX2 = 0 +const LDBL_MIN2 = 0 + +var _C1 = float64(0.0416666666666666) /* 0x3FA55555, 0x5555554C */ +var _C2 = -Float64FromFloat64(0.001388888888887411) /* 0xBF56C16C, 0x16C15177 */ +var _C3 = float64(2.480158728947673e-05) /* 0x3EFA01A0, 0x19CB1590 */ +var _C4 = -Float64FromFloat64(2.7557314351390663e-07) /* 0xBE927E4F, 0x809C52AD */ +var _C5 = float64(2.087572321298175e-09) /* 0x3E21EE9E, 0xBDB4B1C4 */ +var _C6 = -Float64FromFloat64(1.1359647557788195e-11) /* 0xBDA8FAE9, 0xBE8838D4 */ + +func X__cos(tls *TLS, x float64, y float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var hz, r, w, z Tdouble_t + _, _, _, _ = hz, r, w, z + z = Tdouble_t(x * x) + w = Tdouble_t(z * z) + r = Tdouble_t(z*(_C1+float64(z*(_C2+float64(z*_C3))))) + Tdouble_t(Tdouble_t(w*w)*(_C4+float64(z*(_C5+float64(z*_C6))))) + hz = Tdouble_t(float64(0.5) * z) + w = float64(1) - hz + return w + (Float64FromFloat64(1) - w - hz + (Tdouble_t(z*r) - Tdouble_t(x*y))) +} + +// C documentation +// +// /* |cos(x) - c(x)| < 2**-34.1 (~[-5.37e-11, 5.295e-11]). */ + +var _C0 = -Float64FromFloat64(0.499999997251031) /* -0.499999997251031003120 */ +var _C11 = float64(0.04166662332373906) /* 0.0416666233237390631894 */ +var _C21 = -Float64FromFloat64(0.001388676377460993) /* -0.00138867637746099294692 */ +var _C31 = float64(2.439044879627741e-05) /* 0.0000243904487962774090654 */ + +func X__cosdf(tls *TLS, x float64) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, w, z Tdouble_t + _, _, _ = r, w, z + /* Try to optimize for parallel evaluation as in __tandf.c. */ + z = Tdouble_t(x * x) + w = Tdouble_t(z * z) + r = _C21 + float64(z*_C31) + return float32(float64(1) + float64(z*_C0) + float64(w*_C11) + float64(Tdouble_t(w*z)*r)) +} + +// C documentation +// +// /* k is such that k*ln2 has minimal relative error and x - kln2 > log(DBL_MIN) */ +var _k2 = int32(2043) +var _kln22 = float64(1416.0996898839683) + +// C documentation +// +// /* exp(x)/2 for x >= log(DBL_MAX), slightly better than 0.5*exp(x/2)*exp(x/2) */ +func X__expo2(tls *TLS, x float64, sign float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v sign=%v, (%v:)", tls, x, sign, origin(2)) + defer func() { trc("-> %v", r) }() + } + var scale float64 + var v1 Tuint64_t + _, _ = scale, v1 + /* note that k is odd and scale*scale overflows */ + v1 = uint64(Uint32FromInt32(Int32FromInt32(0x3ff)+_k2/Int32FromInt32(2))< log(FLT_MIN) */ +var _k3 = int32(235) +var _kln23 = Float32FromFloat32(162.88958740234375) + +// C documentation +// +// /* expf(x)/2 for x >= log(FLT_MAX), slightly better than 0.5f*expf(x/2)*expf(x/2) */ +func X__expo2f(tls *TLS, x float32, sign float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v sign=%v, (%v:)", tls, x, sign, origin(2)) + defer func() { trc("-> %v", r) }() + } + var scale float32 + var v1 Tuint32_t + _, _ = scale, v1 + /* note that k is odd and scale*scale overflows */ + v1 = Uint32FromInt32(Int32FromInt32(0x7f)+_k3/Int32FromInt32(2)) << int32(23) + scale = *(*float32)(unsafe.Pointer(&v1)) + /* exp(x - k ln2) * 2**(k-1) */ + /* in directed rounding correct sign before rounding or overflow is important */ + return float32(float32(Xexpf(tls, x-_kln23)*float32(sign*scale)) * scale) +} + +func X__fpclassify(tls *TLS, x float64) (r int32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e, v1 int32 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _ = e, v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + e = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + if !(e != 0) { + if *(*Tuint64_t)(unsafe.Pointer(bp))< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e, v1 int32 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _ = e, v1 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + e = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(23) & uint32(0xff)) + if !(e != 0) { + if *(*Tuint32_t)(unsafe.Pointer(bp))< %v", r) }() + } + return X__fpclassify(tls, x) +} + +const pio2_hi = 0 +const pio2_lo = 0 + +func X__math_divzero(tls *TLS, sign Tuint32_t) (r float64) { + if __ccgo_strace { + trc("tls=%v sign=%v, (%v:)", tls, sign, origin(2)) + defer func() { trc("-> %v", r) }() + } + var y, v1, v2 float64 + _, _, _ = y, v1, v2 + if sign != 0 { + v1 = -Float64FromFloat64(1) + } else { + v1 = float64(1) + } + y = v1 + v2 = y + goto _3 +_3: + return v2 / float64(0) +} + +func X__math_divzerof(tls *TLS, sign Tuint32_t) (r float32) { + if __ccgo_strace { + trc("tls=%v sign=%v, (%v:)", tls, sign, origin(2)) + defer func() { trc("-> %v", r) }() + } + var y, v1, v2 float32 + _, _, _ = y, v1, v2 + if sign != 0 { + v1 = -Float32FromFloat32(1) + } else { + v1 = Float32FromFloat32(1) + } + y = v1 + v2 = y + goto _3 +_3: + return v2 / Float32FromFloat32(0) +} + +func X__math_invalid(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return (x - x) / (x - x) +} + +func X__math_invalidf(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return (x - x) / (x - x) +} + +func X__math_oflow(tls *TLS, sign Tuint32_t) (r float64) { + if __ccgo_strace { + trc("tls=%v sign=%v, (%v:)", tls, sign, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__math_xflow(tls, sign, float64(3.105036184601418e+231)) +} + +func X__math_oflowf(tls *TLS, sign Tuint32_t) (r float32) { + if __ccgo_strace { + trc("tls=%v sign=%v, (%v:)", tls, sign, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__math_xflowf(tls, sign, Float32FromFloat32(1.5845632502852868e+29)) +} + +func X__math_uflow(tls *TLS, sign Tuint32_t) (r float64) { + if __ccgo_strace { + trc("tls=%v sign=%v, (%v:)", tls, sign, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__math_xflow(tls, sign, float64(1.2882297539194267e-231)) +} + +func X__math_uflowf(tls *TLS, sign Tuint32_t) (r float32) { + if __ccgo_strace { + trc("tls=%v sign=%v, (%v:)", tls, sign, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__math_xflowf(tls, sign, Float32FromFloat32(2.524354896707238e-29)) +} + +func X__math_xflow(tls *TLS, sign Tuint32_t, y2 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v sign=%v y2=%v, (%v:)", tls, sign, y2, origin(2)) + defer func() { trc("-> %v", r) }() + } + var y, y1, v1, v2, v4 float64 + _, _, _, _, _ = y, y1, v1, v2, v4 + if sign != 0 { + v1 = -y2 + } else { + v1 = y2 + } + y1 = v1 + v2 = y1 + goto _3 +_3: + y = float64(v2 * y2) + v4 = y + goto _5 +_5: + return v4 +} + +func X__math_xflowf(tls *TLS, sign Tuint32_t, y2 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v sign=%v y2=%v, (%v:)", tls, sign, y2, origin(2)) + defer func() { trc("-> %v", r) }() + } + var y, y1, v1, v2, v4 float32 + _, _, _, _, _ = y, y1, v1, v2, v4 + if sign != 0 { + v1 = -y2 + } else { + v1 = y2 + } + y1 = v1 + v2 = y1 + goto _3 +_3: + y = float32(v2 * y2) + v4 = y + goto _5 +_5: + return v4 +} + +const DBL_EPSILON1 = 2.220446049250313e-16 +const EPS = 0 + +// C documentation +// +// /* +// * invpio2: 53 bits of 2/pi +// * pio2_1: first 33 bit of pi/2 +// * pio2_1t: pi/2 - pio2_1 +// * pio2_2: second 33 bit of pi/2 +// * pio2_2t: pi/2 - (pio2_1+pio2_2) +// * pio2_3: third 33 bit of pi/2 +// * pio2_3t: pi/2 - (pio2_1+pio2_2+pio2_3) +// */ + +var _toint = Float64FromFloat64(1.5) / Float64FromFloat64(2.220446049250313e-16) +var _pio4 = float64(0.7853981633974483) +var _invpio2 = float64(0.6366197723675814) /* 0x3FE45F30, 0x6DC9C883 */ +var _pio2_1 = float64(1.5707963267341256) /* 0x3FF921FB, 0x54400000 */ +var _pio2_1t = float64(6.077100506506192e-11) /* 0x3DD0B461, 0x1A626331 */ +var _pio2_2 = float64(6.077100506303966e-11) /* 0x3DD0B461, 0x1A600000 */ +var _pio2_2t = float64(2.0222662487959506e-21) /* 0x3BA3198A, 0x2E037073 */ +var _pio2_3 = float64(2.0222662487111665e-21) /* 0x3BA3198A, 0x2E000000 */ +var _pio2_3t = float64(8.4784276603689e-32) /* 0x397B839A, 0x252049C1 */ + +// C documentation +// +// /* caller must handle the case when reduction is not needed: |x| ~<= pi/4 */ +func X__rem_pio2(tls *TLS, x float64, y uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + var ex, ey, i, n, sign int32 + var fn, r, t, w, z Tdouble_t + var ix Tuint32_t + var v2 float64 + var _ /* tx at bp+8 */ [3]float64 + var _ /* ty at bp+32 */ [2]float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _, _, _, _, _, _ = ex, ey, fn, i, ix, n, r, sign, t, w, z, v2 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + sign = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(63)) + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32) & uint64(0x7fffffff)) + if ix <= uint32(0x400f6a7a) { /* |x| ~<= 5pi/4 */ + if ix&uint32(0xfffff) == uint32(0x921fb) { /* |x| ~= pi/2 or 2pi/2 */ + goto medium + } /* cancellation -- use medium case */ + if ix <= uint32(0x4002d97c) { /* |x| ~<= 3pi/4 */ + if !(sign != 0) { + z = x - _pio2_1 /* one round good to 85 bits */ + **(**float64)(__ccgo_up(y)) = z - _pio2_1t + **(**float64)(__ccgo_up(y + 1*8)) = z - **(**float64)(__ccgo_up(y)) - _pio2_1t + return int32(1) + } else { + z = x + _pio2_1 + **(**float64)(__ccgo_up(y)) = z + _pio2_1t + **(**float64)(__ccgo_up(y + 1*8)) = z - **(**float64)(__ccgo_up(y)) + _pio2_1t + return -int32(1) + } + } else { + if !(sign != 0) { + z = x - float64(Float64FromInt32(2)*_pio2_1) + **(**float64)(__ccgo_up(y)) = z - Tdouble_t(Float64FromInt32(2)*_pio2_1t) + **(**float64)(__ccgo_up(y + 1*8)) = z - **(**float64)(__ccgo_up(y)) - Tdouble_t(Float64FromInt32(2)*_pio2_1t) + return int32(2) + } else { + z = x + float64(Float64FromInt32(2)*_pio2_1) + **(**float64)(__ccgo_up(y)) = z + Tdouble_t(Float64FromInt32(2)*_pio2_1t) + **(**float64)(__ccgo_up(y + 1*8)) = z - **(**float64)(__ccgo_up(y)) + Tdouble_t(Float64FromInt32(2)*_pio2_1t) + return -int32(2) + } + } + } + if ix <= uint32(0x401c463b) { /* |x| ~<= 9pi/4 */ + if ix <= uint32(0x4015fdbc) { /* |x| ~<= 7pi/4 */ + if ix == uint32(0x4012d97c) { /* |x| ~= 3pi/2 */ + goto medium + } + if !(sign != 0) { + z = x - float64(Float64FromInt32(3)*_pio2_1) + **(**float64)(__ccgo_up(y)) = z - Tdouble_t(Float64FromInt32(3)*_pio2_1t) + **(**float64)(__ccgo_up(y + 1*8)) = z - **(**float64)(__ccgo_up(y)) - Tdouble_t(Float64FromInt32(3)*_pio2_1t) + return int32(3) + } else { + z = x + float64(Float64FromInt32(3)*_pio2_1) + **(**float64)(__ccgo_up(y)) = z + Tdouble_t(Float64FromInt32(3)*_pio2_1t) + **(**float64)(__ccgo_up(y + 1*8)) = z - **(**float64)(__ccgo_up(y)) + Tdouble_t(Float64FromInt32(3)*_pio2_1t) + return -int32(3) + } + } else { + if ix == uint32(0x401921fb) { /* |x| ~= 4pi/2 */ + goto medium + } + if !(sign != 0) { + z = x - float64(Float64FromInt32(4)*_pio2_1) + **(**float64)(__ccgo_up(y)) = z - Tdouble_t(Float64FromInt32(4)*_pio2_1t) + **(**float64)(__ccgo_up(y + 1*8)) = z - **(**float64)(__ccgo_up(y)) - Tdouble_t(Float64FromInt32(4)*_pio2_1t) + return int32(4) + } else { + z = x + float64(Float64FromInt32(4)*_pio2_1) + **(**float64)(__ccgo_up(y)) = z + Tdouble_t(Float64FromInt32(4)*_pio2_1t) + **(**float64)(__ccgo_up(y + 1*8)) = z - **(**float64)(__ccgo_up(y)) + Tdouble_t(Float64FromInt32(4)*_pio2_1t) + return -int32(4) + } + } + } + if !(ix < uint32(0x413921fb)) { + goto _1 + } /* |x| ~< 2^20*(pi/2), medium size */ + goto medium +medium: + ; + /* rint(x/(pi/2)) */ + fn = Tdouble_t(x*_invpio2) + _toint - _toint + n = int32(fn) + r = x - float64(fn*_pio2_1) + w = Tdouble_t(fn * _pio2_1t) /* 1st round, good to 85 bits */ + /* Matters with directed rounding. */ + if r-w < -_pio4 { + n = n - 1 + fn = fn - 1 + r = x - float64(fn*_pio2_1) + w = Tdouble_t(fn * _pio2_1t) + } else { + if r-w > _pio4 { + n = n + 1 + fn = fn + 1 + r = x - float64(fn*_pio2_1) + w = Tdouble_t(fn * _pio2_1t) + } + } + **(**float64)(__ccgo_up(y)) = r - w + *(*float64)(unsafe.Pointer(bp)) = **(**float64)(__ccgo_up(y)) + ey = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + ex = Int32FromUint32(ix >> int32(20)) + if ex-ey > int32(16) { /* 2nd round, good to 118 bits */ + t = r + w = Tdouble_t(fn * _pio2_2) + r = t - w + w = Tdouble_t(fn*_pio2_2t) - (t - r - w) + **(**float64)(__ccgo_up(y)) = r - w + *(*float64)(unsafe.Pointer(bp)) = **(**float64)(__ccgo_up(y)) + ey = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + if ex-ey > int32(49) { /* 3rd round, good to 151 bits, covers all cases */ + t = r + w = Tdouble_t(fn * _pio2_3) + r = t - w + w = Tdouble_t(fn*_pio2_3t) - (t - r - w) + **(**float64)(__ccgo_up(y)) = r - w + } + } + **(**float64)(__ccgo_up(y + 1*8)) = r - **(**float64)(__ccgo_up(y)) - w + return n +_1: + ; + /* + * all other (large) arguments + */ + if ix >= uint32(0x7ff00000) { /* x is inf or NaN */ + v2 = x - x + **(**float64)(__ccgo_up(y + 1*8)) = v2 + **(**float64)(__ccgo_up(y)) = v2 + return 0 + } + /* set z = scalbn(|x|,-ilogb(x)+23) */ + *(*float64)(unsafe.Pointer(bp)) = x + *(*Tuint64_t)(unsafe.Pointer(bp)) &= Uint64FromInt32(-Int32FromInt32(1)) >> Int32FromInt32(12) + *(*Tuint64_t)(unsafe.Pointer(bp)) |= Uint64FromInt32(Int32FromInt32(0x3ff)+Int32FromInt32(23)) << Int32FromInt32(52) + z = *(*float64)(unsafe.Pointer(bp)) + i = 0 + for { + if !(i < int32(2)) { + break + } + (**(**[3]float64)(__ccgo_up(bp + 8)))[i] = float64(int32(z)) + z = Tdouble_t((z - (**(**[3]float64)(__ccgo_up(bp + 8)))[i]) * float64(1.6777216e+07)) + goto _3 + _3: + ; + i = i + 1 + } + (**(**[3]float64)(__ccgo_up(bp + 8)))[i] = z + /* skip zero terms, first term is non-zero */ + for (**(**[3]float64)(__ccgo_up(bp + 8)))[i] == float64(0) { + i = i - 1 + } + n = X__rem_pio2_large(tls, bp+8, bp+32, Int32FromUint32(ix>>Int32FromInt32(20))-(Int32FromInt32(0x3ff)+Int32FromInt32(23)), i+int32(1), int32(1)) + if sign != 0 { + **(**float64)(__ccgo_up(y)) = -(**(**[2]float64)(__ccgo_up(bp + 32)))[0] + **(**float64)(__ccgo_up(y + 1*8)) = -(**(**[2]float64)(__ccgo_up(bp + 32)))[int32(1)] + return -n + } + **(**float64)(__ccgo_up(y)) = (**(**[2]float64)(__ccgo_up(bp + 32)))[0] + **(**float64)(__ccgo_up(y + 1*8)) = (**(**[2]float64)(__ccgo_up(bp + 32)))[int32(1)] + return n +} + +const DBL_EPSILON2 = 0 + +var _init_jk = [4]int32{ + 0: int32(3), + 1: int32(4), + 2: int32(4), + 3: int32(6), +} /* initial value for jk */ + +// C documentation +// +// /* +// * Table of constants for 2/pi, 396 Hex digits (476 decimal) of 2/pi +// * +// * integer array, contains the (24*i)-th to (24*i+23)-th +// * bit of 2/pi after binary point. The corresponding +// * floating value is +// * +// * ipio2[i] * 2^(-24(i+1)). +// * +// * NB: This table must have at least (e0-3)/24 + jk terms. +// * For quad precision (e0 <= 16360, jk = 6), this is 686. +// */ +var _ipio2 = [66]Tint32_t{ + 0: int32(0xA2F983), + 1: int32(0x6E4E44), + 2: int32(0x1529FC), + 3: int32(0x2757D1), + 4: int32(0xF534DD), + 5: int32(0xC0DB62), + 6: int32(0x95993C), + 7: int32(0x439041), + 8: int32(0xFE5163), + 9: int32(0xABDEBB), + 10: int32(0xC561B7), + 11: int32(0x246E3A), + 12: int32(0x424DD2), + 13: int32(0xE00649), + 14: int32(0x2EEA09), + 15: int32(0xD1921C), + 16: int32(0xFE1DEB), + 17: int32(0x1CB129), + 18: int32(0xA73EE8), + 19: int32(0x8235F5), + 20: int32(0x2EBB44), + 21: int32(0x84E99C), + 22: int32(0x7026B4), + 23: int32(0x5F7E41), + 24: int32(0x3991D6), + 25: int32(0x398353), + 26: int32(0x39F49C), + 27: int32(0x845F8B), + 28: int32(0xBDF928), + 29: int32(0x3B1FF8), + 30: int32(0x97FFDE), + 31: int32(0x05980F), + 32: int32(0xEF2F11), + 33: int32(0x8B5A0A), + 34: int32(0x6D1F6D), + 35: int32(0x367ECF), + 36: int32(0x27CB09), + 37: int32(0xB74F46), + 38: int32(0x3F669E), + 39: int32(0x5FEA2D), + 40: int32(0x7527BA), + 41: int32(0xC7EBE5), + 42: int32(0xF17B3D), + 43: int32(0x0739F7), + 44: int32(0x8A5292), + 45: int32(0xEA6BFB), + 46: int32(0x5FB11F), + 47: int32(0x8D5D08), + 48: int32(0x560330), + 49: int32(0x46FC7B), + 50: int32(0x6BABF0), + 51: int32(0xCFBC20), + 52: int32(0x9AF436), + 53: int32(0x1DA9E3), + 54: int32(0x91615E), + 55: int32(0xE61B08), + 56: int32(0x659985), + 57: int32(0x5F14A0), + 58: int32(0x68408D), + 59: int32(0xFFD880), + 60: int32(0x4D7327), + 61: int32(0x310606), + 62: int32(0x1556CA), + 63: int32(0x73A8C9), + 64: int32(0x60E27B), + 65: int32(0xC08C6B), +} + +var _PIo2 = [8]float64{ + 0: float64(1.570796251296997), + 1: float64(7.549789415861596e-08), + 2: float64(5.390302529957765e-15), + 3: float64(3.282003415807913e-22), + 4: float64(1.270655753080676e-29), + 5: float64(1.2293330898111133e-36), + 6: float64(2.7337005381646456e-44), + 7: float64(2.1674168387780482e-51), +} + +func X__rem_pio2_large(tls *TLS, x uintptr, y uintptr, e0 int32, nx int32, prec int32) (r int32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v e0=%v nx=%v prec=%v, (%v:)", tls, x, y, e0, nx, prec, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(240) + defer tls.Free(240) + var carry, i, ih, j, jk, jp, jv, jx, jz, k, m, n, q0 Tint32_t + var f, q [20]float64 + var fw, z, v2 float64 + var _ /* fq at bp+80 */ [20]float64 + var _ /* iq at bp+0 */ [20]Tint32_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = carry, f, fw, i, ih, j, jk, jp, jv, jx, jz, k, m, n, q, q0, z, v2 + /* initialize jk*/ + jk = _init_jk[prec] + jp = jk + /* determine jx,jv,q0, note that 3>q0 */ + jx = nx - int32(1) + jv = (e0 - int32(3)) / int32(24) + if jv < 0 { + jv = 0 + } + q0 = e0 - int32(24)*(jv+int32(1)) + /* set up f[0] to f[jx+jk] where f[jx+jk] = ipio2[jv+jk] */ + j = jv - jx + m = jx + jk + i = 0 + for { + if !(i <= m) { + break + } + if j < 0 { + v2 = float64(0) + } else { + v2 = float64(_ipio2[j]) + } + f[i] = v2 + goto _1 + _1: + ; + i = i + 1 + j = j + 1 + } + /* compute q[0],q[1],...q[jk] */ + i = 0 + for { + if !(i <= jk) { + break + } + j = 0 + fw = Float64FromFloat64(0) + for { + if !(j <= jx) { + break + } + fw = fw + float64(**(**float64)(__ccgo_up(x + uintptr(j)*8))*f[jx+i-j]) + goto _4 + _4: + ; + j = j + 1 + } + q[i] = fw + goto _3 + _3: + ; + i = i + 1 + } + jz = jk + goto recompute +recompute: + ; + /* distill q[] into iq[] reversingly */ + i = 0 + j = jz + z = q[jz] + for { + if !(j > 0) { + break + } + fw = float64(int32(float64(Float64FromFloat64(5.960464477539063e-08) * z))) + (**(**[20]Tint32_t)(__ccgo_up(bp)))[i] = int32(z - float64(Float64FromFloat64(1.6777216e+07)*fw)) + z = q[j-int32(1)] + fw + goto _5 + _5: + ; + i = i + 1 + j = j - 1 + } + /* compute n */ + z = Xscalbn(tls, z, q0) /* actual value of z */ + z = z - float64(float64(8)*Xfloor(tls, float64(z*float64(0.125)))) /* trim off integer >= 8 */ + n = int32(z) + z = z - float64(n) + ih = 0 + if q0 > 0 { /* need iq[jz-1] to determine n */ + i = (**(**[20]Tint32_t)(__ccgo_up(bp)))[jz-int32(1)] >> (int32(24) - q0) + n = n + i + **(**Tint32_t)(__ccgo_up(bp + uintptr(jz-int32(1))*4)) -= i << (int32(24) - q0) + ih = (**(**[20]Tint32_t)(__ccgo_up(bp)))[jz-int32(1)] >> (int32(23) - q0) + } else { + if q0 == 0 { + ih = (**(**[20]Tint32_t)(__ccgo_up(bp)))[jz-int32(1)] >> int32(23) + } else { + if z >= float64(0.5) { + ih = int32(2) + } + } + } + if ih > 0 { /* q > 0.5 */ + n = n + int32(1) + carry = 0 + i = 0 + for { + if !(i < jz) { + break + } /* compute 1-q */ + j = (**(**[20]Tint32_t)(__ccgo_up(bp)))[i] + if carry == 0 { + if j != 0 { + carry = int32(1) + (**(**[20]Tint32_t)(__ccgo_up(bp)))[i] = int32(0x1000000) - j + } + } else { + (**(**[20]Tint32_t)(__ccgo_up(bp)))[i] = int32(0xffffff) - j + } + goto _6 + _6: + ; + i = i + 1 + } + if q0 > 0 { /* rare case: chance is 1 in 12 */ + switch q0 { + case int32(1): + **(**Tint32_t)(__ccgo_up(bp + uintptr(jz-int32(1))*4)) &= int32(0x7fffff) + case int32(2): + **(**Tint32_t)(__ccgo_up(bp + uintptr(jz-int32(1))*4)) &= int32(0x3fffff) + break + } + } + if ih == int32(2) { + z = float64(1) - z + if carry != 0 { + z = z - Xscalbn(tls, float64(1), q0) + } + } + } + /* check if recomputation is needed */ + if z == float64(0) { + j = 0 + i = jz - int32(1) + for { + if !(i >= jk) { + break + } + j = j | (**(**[20]Tint32_t)(__ccgo_up(bp)))[i] + goto _7 + _7: + ; + i = i - 1 + } + if j == 0 { /* need recomputation */ + k = int32(1) + for { + if !((**(**[20]Tint32_t)(__ccgo_up(bp)))[jk-k] == 0) { + break + } + goto _8 + _8: + ; + k = k + 1 + } /* k = no. of terms needed */ + i = jz + int32(1) + for { + if !(i <= jz+k) { + break + } /* add q[jz+1] to q[jz+k] */ + f[jx+i] = float64(_ipio2[jv+i]) + j = 0 + fw = Float64FromFloat64(0) + for { + if !(j <= jx) { + break + } + fw = fw + float64(**(**float64)(__ccgo_up(x + uintptr(j)*8))*f[jx+i-j]) + goto _10 + _10: + ; + j = j + 1 + } + q[i] = fw + goto _9 + _9: + ; + i = i + 1 + } + jz = jz + k + goto recompute + } + } + /* chop off zero terms */ + if z == float64(0) { + jz = jz - int32(1) + q0 = q0 - int32(24) + for (**(**[20]Tint32_t)(__ccgo_up(bp)))[jz] == 0 { + jz = jz - 1 + q0 = q0 - int32(24) + } + } else { /* break z into 24-bit if necessary */ + z = Xscalbn(tls, z, -q0) + if z >= float64(1.6777216e+07) { + fw = float64(int32(float64(Float64FromFloat64(5.960464477539063e-08) * z))) + (**(**[20]Tint32_t)(__ccgo_up(bp)))[jz] = int32(z - float64(Float64FromFloat64(1.6777216e+07)*fw)) + jz = jz + int32(1) + q0 = q0 + int32(24) + (**(**[20]Tint32_t)(__ccgo_up(bp)))[jz] = int32(fw) + } else { + (**(**[20]Tint32_t)(__ccgo_up(bp)))[jz] = int32(z) + } + } + /* convert integer "bit" chunk to floating-point value */ + fw = Xscalbn(tls, float64(1), q0) + i = jz + for { + if !(i >= 0) { + break + } + q[i] = float64(fw * float64((**(**[20]Tint32_t)(__ccgo_up(bp)))[i])) + fw = fw * float64(5.960464477539063e-08) + goto _11 + _11: + ; + i = i - 1 + } + /* compute PIo2[0,...,jp]*q[jz,...,0] */ + i = jz + for { + if !(i >= 0) { + break + } + fw = float64(0) + k = Int32FromInt32(0) + for { + if !(k <= jp && k <= jz-i) { + break + } + fw = fw + float64(_PIo2[k]*q[i+k]) + goto _13 + _13: + ; + k = k + 1 + } + (**(**[20]float64)(__ccgo_up(bp + 80)))[jz-i] = fw + goto _12 + _12: + ; + i = i - 1 + } + /* compress fq[] into y[] */ + switch prec { + case 0: + goto _14 + case int32(2): + goto _15 + case int32(1): + goto _16 + case int32(3): + goto _17 + } + goto _18 +_14: + ; + fw = float64(0) + i = jz + for { + if !(i >= 0) { + break + } + fw = fw + (**(**[20]float64)(__ccgo_up(bp + 80)))[i] + goto _19 + _19: + ; + i = i - 1 + } + if ih == 0 { + v2 = fw + } else { + v2 = -fw + } + **(**float64)(__ccgo_up(y)) = v2 + goto _18 +_16: + ; +_15: + ; + fw = float64(0) + i = jz + for { + if !(i >= 0) { + break + } + fw = fw + (**(**[20]float64)(__ccgo_up(bp + 80)))[i] + goto _21 + _21: + ; + i = i - 1 + } + // TODO: drop excess precision here once double_t is used + fw = fw + if ih == 0 { + v2 = fw + } else { + v2 = -fw + } + **(**float64)(__ccgo_up(y)) = v2 + fw = (**(**[20]float64)(__ccgo_up(bp + 80)))[0] - fw + i = int32(1) + for { + if !(i <= jz) { + break + } + fw = fw + (**(**[20]float64)(__ccgo_up(bp + 80)))[i] + goto _23 + _23: + ; + i = i + 1 + } + if ih == 0 { + v2 = fw + } else { + v2 = -fw + } + **(**float64)(__ccgo_up(y + 1*8)) = v2 + goto _18 +_17: + ; /* painful */ + i = jz +_27: + ; + if !(i > 0) { + goto _25 + } + fw = (**(**[20]float64)(__ccgo_up(bp + 80)))[i-int32(1)] + (**(**[20]float64)(__ccgo_up(bp + 80)))[i] + **(**float64)(__ccgo_up(bp + 80 + uintptr(i)*8)) += (**(**[20]float64)(__ccgo_up(bp + 80)))[i-int32(1)] - fw + (**(**[20]float64)(__ccgo_up(bp + 80)))[i-int32(1)] = fw + goto _26 +_26: + ; + i = i - 1 + goto _27 + goto _25 +_25: + ; + i = jz + for { + if !(i > int32(1)) { + break + } + fw = (**(**[20]float64)(__ccgo_up(bp + 80)))[i-int32(1)] + (**(**[20]float64)(__ccgo_up(bp + 80)))[i] + **(**float64)(__ccgo_up(bp + 80 + uintptr(i)*8)) += (**(**[20]float64)(__ccgo_up(bp + 80)))[i-int32(1)] - fw + (**(**[20]float64)(__ccgo_up(bp + 80)))[i-int32(1)] = fw + goto _28 + _28: + ; + i = i - 1 + } + fw = float64(0) + i = jz + for { + if !(i >= int32(2)) { + break + } + fw = fw + (**(**[20]float64)(__ccgo_up(bp + 80)))[i] + goto _29 + _29: + ; + i = i - 1 + } + if ih == 0 { + **(**float64)(__ccgo_up(y)) = (**(**[20]float64)(__ccgo_up(bp + 80)))[0] + **(**float64)(__ccgo_up(y + 1*8)) = (**(**[20]float64)(__ccgo_up(bp + 80)))[int32(1)] + **(**float64)(__ccgo_up(y + 2*8)) = fw + } else { + **(**float64)(__ccgo_up(y)) = -(**(**[20]float64)(__ccgo_up(bp + 80)))[0] + **(**float64)(__ccgo_up(y + 1*8)) = -(**(**[20]float64)(__ccgo_up(bp + 80)))[int32(1)] + **(**float64)(__ccgo_up(y + 2*8)) = -fw + } +_18: + ; + return n & int32(7) +} + +const DBL_EPSILON3 = 2.220446049250313e-16 + +// C documentation +// +// /* +// * invpio2: 53 bits of 2/pi +// * pio2_1: first 25 bits of pi/2 +// * pio2_1t: pi/2 - pio2_1 +// */ + +var _toint1 = Float64FromFloat64(1.5) / Float64FromFloat64(2.220446049250313e-16) +var _pio41 = float64(0.7853981852531433) +var _invpio21 = float64(0.6366197723675814) /* 0x3FE45F30, 0x6DC9C883 */ +var _pio2_11 = float64(1.5707963109016418) /* 0x3FF921FB, 0x50000000 */ +var _pio2_1t1 = float64(1.5893254773528196e-08) /* 0x3E5110b4, 0x611A6263 */ + +func X__rem_pio2f(tls *TLS, x float32, y uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var e0, n, sign int32 + var fn Tdouble_t + var ix Tuint32_t + var _ /* tx at bp+8 */ [1]float64 + var _ /* ty at bp+16 */ [1]float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _ = e0, fn, ix, n, sign + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + ix = *(*Tuint32_t)(unsafe.Pointer(bp)) & uint32(0x7fffffff) + /* 25+53 bit pi is good enough for medium size */ + if ix < uint32(0x4dc90fdb) { /* |x| ~< 2^28*(pi/2), medium size */ + /* Use a specialized rint() to get fn. */ + fn = Tdouble_t(float64(x)*_invpio21) + _toint1 - _toint1 + n = int32(fn) + **(**float64)(__ccgo_up(y)) = float64(x) - Tdouble_t(fn*_pio2_11) - Tdouble_t(fn*_pio2_1t1) + /* Matters with directed rounding. */ + if **(**float64)(__ccgo_up(y)) < -_pio41 { + n = n - 1 + fn = fn - 1 + **(**float64)(__ccgo_up(y)) = float64(x) - Tdouble_t(fn*_pio2_11) - Tdouble_t(fn*_pio2_1t1) + } else { + if **(**float64)(__ccgo_up(y)) > _pio41 { + n = n + 1 + fn = fn + 1 + **(**float64)(__ccgo_up(y)) = float64(x) - Tdouble_t(fn*_pio2_11) - Tdouble_t(fn*_pio2_1t1) + } + } + return n + } + if ix >= uint32(0x7f800000) { /* x is inf or NaN */ + **(**float64)(__ccgo_up(y)) = float64(x - x) + return 0 + } + /* scale x into [2^23, 2^24-1] */ + sign = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(31)) + e0 = Int32FromUint32(ix>>Int32FromInt32(23) - Uint32FromInt32(Int32FromInt32(0x7f)+Int32FromInt32(23))) /* e0 = ilogb(|x|)-23, positive */ + *(*Tuint32_t)(unsafe.Pointer(bp)) = ix - Uint32FromInt32(e0< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* y at bp+0 */ struct { + Fi [0]Tuint64_t + Fd float64 + } + *(*struct { + Fi [0]Tuint64_t + Fd float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Fd float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + return Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(63)) +} + +// C documentation +// +// // FIXME: macro in math.h +func X__signbitf(tls *TLS, x float32) (r int32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* y at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + return Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(31)) +} + +func X__signbitl(tls *TLS, x float64) (r int32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__signbit(tls, x) +} + +var _S1 = -Float64FromFloat64(0.16666666666666632) /* 0xBFC55555, 0x55555549 */ +var _S2 = float64(0.00833333333332249) /* 0x3F811111, 0x1110F8A6 */ +var _S3 = -Float64FromFloat64(0.0001984126982985795) /* 0xBF2A01A0, 0x19C161D5 */ +var _S4 = float64(2.7557313707070068e-06) /* 0x3EC71DE3, 0x57B1FE7D */ +var _S5 = -Float64FromFloat64(2.5050760253406863e-08) /* 0xBE5AE5E6, 0x8A2B9CEB */ +var _S6 = float64(1.58969099521155e-10) /* 0x3DE5D93A, 0x5ACFD57C */ + +func X__sin(tls *TLS, x float64, y float64, iy int32) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v iy=%v, (%v:)", tls, x, y, iy, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v, w, z Tdouble_t + _, _, _, _ = r, v, w, z + z = Tdouble_t(x * x) + w = Tdouble_t(z * z) + r = _S2 + float64(z*(_S3+float64(z*_S4))) + float64(Tdouble_t(z*w)*(_S5+float64(z*_S6))) + v = Tdouble_t(z * x) + if iy == 0 { + return x + float64(v*(_S1+float64(z*r))) + } else { + return x - (Tdouble_t(z*(float64(Float64FromFloat64(0.5)*y)-float64(v*r))) - y - Tdouble_t(v*_S1)) + } + return r1 +} + +// C documentation +// +// /* |sin(x)/x - s(x)| < 2**-37.5 (~[-4.89e-12, 4.824e-12]). */ + +var _S11 = -Float64FromFloat64(0.16666666641626524) /* -0.166666666416265235595 */ +var _S21 = float64(0.008333329385889463) /* 0.0083333293858894631756 */ +var _S31 = -Float64FromFloat64(0.00019839334836096632) /* -0.000198393348360966317347 */ +var _S41 = float64(2.718311493989822e-06) /* 0.0000027183114939898219064 */ + +func X__sindf(tls *TLS, x float64) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, s, w, z Tdouble_t + _, _, _, _ = r, s, w, z + /* Try to optimize for parallel evaluation as in __tandf.c. */ + z = Tdouble_t(x * x) + w = Tdouble_t(z * z) + r = _S31 + float64(z*_S41) + s = Tdouble_t(z * x) + return float32(x + float64(s*(_S11+float64(z*_S21))) + float64(Tdouble_t(s*w)*r)) +} + +var _T = [13]float64{ + 0: float64(0.3333333333333341), + 1: float64(0.13333333333320124), + 2: float64(0.05396825397622605), + 3: float64(0.021869488294859542), + 4: float64(0.0088632398235993), + 5: float64(0.0035920791075913124), + 6: float64(0.0014562094543252903), + 7: float64(0.0005880412408202641), + 8: float64(0.0002464631348184699), + 9: float64(7.817944429395571e-05), + 10: float64(7.140724913826082e-05), + 11: -Float64FromFloat64(1.8558637485527546e-05), + 12: float64(2.590730518636337e-05), +} +var _pio42 = float64(0.7853981633974483) /* 3FE921FB, 54442D18 */ +var _pio4lo = float64(3.061616997868383e-17) /* 3C81A626, 33145C07 */ + +func X__tan(tls *TLS, x float64, y float64, odd int32) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v odd=%v, (%v:)", tls, x, y, odd, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var a, r, s, v, w, z, v1 Tdouble_t + var a0, w0 float64 + var big, sign int32 + var hx Tuint32_t + var v2 Tuint64_t + _, _, _, _, _, _, _, _, _, _, _, _, _ = a, a0, big, hx, r, s, sign, v, w, w0, z, v1, v2 + hx = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + big = BoolInt32(hx&uint32(0x7fffffff) >= uint32(0x3FE59428)) /* |x| >= 0.6744 */ + if big != 0 { + sign = Int32FromUint32(hx >> int32(31)) + if sign != 0 { + x = -x + y = -y + } + x = _pio42 - x + (_pio4lo - y) + y = float64(0) + } + z = Tdouble_t(x * x) + w = Tdouble_t(z * z) + /* + * Break x^5*(T[1]+x^2*T[2]+...) into + * x^5(T[1]+x^4*T[3]+...+x^20*T[11]) + + * x^5(x^2*(T[2]+x^4*T[4]+...+x^22*[T12])) + */ + r = _T[int32(1)] + float64(w*(_T[int32(3)]+float64(w*(_T[int32(5)]+float64(w*(_T[int32(7)]+float64(w*(_T[int32(9)]+float64(w*_T[int32(11)]))))))))) + v = Tdouble_t(z * (_T[int32(2)] + float64(w*(_T[int32(4)]+float64(w*(_T[int32(6)]+float64(w*(_T[int32(8)]+float64(w*(_T[int32(10)]+float64(w*_T[int32(12)]))))))))))) + s = Tdouble_t(z * x) + r = y + float64(z*(Tdouble_t(s*(r+v))+y)) + float64(s*_T[0]) + w = x + r + if big != 0 { + s = float64(int32(1) - int32(2)*odd) + v = s - Tdouble_t(float64(2)*(x+(r-Tdouble_t(w*w)/(w+s)))) + if sign != 0 { + v1 = -v + } else { + v1 = v + } + return v1 + } + if !(odd != 0) { + return w + } + /* -1.0/(x+r) has up to 2ulp error, so compute it accurately */ + w0 = w + v2 = *(*Tuint64_t)(unsafe.Pointer(&w0))>>Int32FromInt32(32)<>Int32FromInt32(32)< %v", r1) }() + } + var r, s, t, u, w, z Tdouble_t + var v1 float64 + _, _, _, _, _, _, _ = r, s, t, u, w, z, v1 + z = Tdouble_t(x * x) + /* + * Split up the polynomial into small independent terms to give + * opportunities for parallel evaluation. The chosen splitting is + * micro-optimized for Athlons (XP, X64). It costs 2 multiplications + * relative to Horner's method on sequential machines. + * + * We add the small terms from lowest degree up for efficiency on + * non-sequential machines (the lowest degree terms tend to be ready + * earlier). Apart from this, we don't care about order of + * operations, and don't need to to care since we have precision to + * spare. However, the chosen splitting is good for accuracy too, + * and would give results as accurate as Horner's method if the + * small terms were added from highest degree down. + */ + r = _T1[int32(4)] + float64(z*_T1[int32(5)]) + t = _T1[int32(2)] + float64(z*_T1[int32(3)]) + w = Tdouble_t(z * z) + s = Tdouble_t(z * x) + u = _T1[0] + float64(z*_T1[int32(1)]) + r = x + float64(s*u) + float64(Tdouble_t(s*w)*(t+Tdouble_t(w*r))) + if odd != 0 { + v1 = -Float64FromFloat64(1) / r + } else { + v1 = r + } + return float32(v1) +} + +var _pio2_hi = float64(1.5707963267948966) /* 0x3FF921FB, 0x54442D18 */ +var _pio2_lo = float64(6.123233995736766e-17) /* 0x3C91A626, 0x33145C07 */ +var _pS0 = float64(0.16666666666666666) /* 0x3FC55555, 0x55555555 */ +var _pS1 = -Float64FromFloat64(0.3255658186224009) /* 0xBFD4D612, 0x03EB6F7D */ +var _pS2 = float64(0.20121253213486293) /* 0x3FC9C155, 0x0E884455 */ +var _pS3 = -Float64FromFloat64(0.04005553450067941) /* 0xBFA48228, 0xB5688F3B */ +var _pS4 = float64(0.0007915349942898145) /* 0x3F49EFE0, 0x7501B288 */ +var _pS5 = float64(3.479331075960212e-05) /* 0x3F023DE1, 0x0DFDF709 */ +var _qS1 = -Float64FromFloat64(2.403394911734414) /* 0xC0033A27, 0x1C8A2D4B */ +var _qS2 = float64(2.0209457602335057) /* 0x40002AE5, 0x9C598AC8 */ +var _qS3 = -Float64FromFloat64(0.6882839716054533) /* 0xBFE6066C, 0x1B8D0159 */ +var _qS4 = float64(0.07703815055590194) /* 0x3FB3B8C5, 0xB12E9282 */ + +func _R(tls *TLS, z float64) (r float64) { + var p, q Tdouble_t + _, _ = p, q + p = Tdouble_t(z * (_pS0 + float64(z*(_pS1+float64(z*(_pS2+float64(z*(_pS3+float64(z*(_pS4+float64(z*_pS5))))))))))) + q = float64(1) + float64(z*(_qS1+float64(z*(_qS2+float64(z*(_qS3+float64(z*_qS4))))))) + return p / q +} + +func Xacos(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + var c, df, s, w, z float64 + var hx, ix, lx Tuint32_t + var v1 Tuint64_t + _, _, _, _, _, _, _, _, _ = c, df, hx, ix, lx, s, w, z, v1 + hx = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + ix = hx & uint32(0x7fffffff) + /* |x| >= 1 or nan */ + if ix >= uint32(0x3ff00000) { + lx = uint32(*(*Tuint64_t)(unsafe.Pointer(&x))) + if ix-uint32(0x3ff00000)|lx == uint32(0) { + /* acos(1)=0, acos(-1)=pi */ + if hx>>int32(31) != 0 { + return float64(Float64FromInt32(2)*_pio2_hi) + Float64FromFloat32(7.52316384526264e-37) + } + return Float64FromInt32(0) + } + return Float64FromInt32(0) / (x - x) + } + /* |x| < 0.5 */ + if ix < uint32(0x3fe00000) { + if ix <= uint32(0x3c600000) { /* |x| < 2**-57 */ + return _pio2_hi + Float64FromFloat32(7.52316384526264e-37) + } + return _pio2_hi - (x - (_pio2_lo - float64(x*_R(tls, float64(x*x))))) + } + /* x < -0.5 */ + if hx>>int32(31) != 0 { + z = float64((float64(1) + x) * float64(0.5)) + s = Xsqrt(tls, z) + w = float64(_R(tls, z)*s) - _pio2_lo + return float64(Float64FromInt32(2) * (_pio2_hi - (s + w))) + } + /* x > 0.5 */ + z = float64((float64(1) - x) * float64(0.5)) + s = Xsqrt(tls, z) + df = s + v1 = *(*Tuint64_t)(unsafe.Pointer(&df))>>Int32FromInt32(32)< %v", r) }() + } + var c, df, s, w, z float32 + var hx, ix, v1 Tuint32_t + _, _, _, _, _, _, _, _ = c, df, hx, ix, s, w, z, v1 + hx = *(*Tuint32_t)(unsafe.Pointer(&x)) + ix = hx & uint32(0x7fffffff) + /* |x| >= 1 or nan */ + if ix >= uint32(0x3f800000) { + if ix == uint32(0x3f800000) { + if hx>>int32(31) != 0 { + return float32(Float32FromInt32(2)*_pio2_hi1) + Float32FromFloat32(7.52316384526264e-37) + } + return Float32FromInt32(0) + } + return Float32FromInt32(0) / (x - x) + } + /* |x| < 0.5 */ + if ix < uint32(0x3f000000) { + if ix <= uint32(0x32800000) { /* |x| < 2**-26 */ + return _pio2_hi1 + Float32FromFloat32(7.52316384526264e-37) + } + return _pio2_hi1 - (x - (_pio2_lo1 - float32(x*_R1(tls, float32(x*x))))) + } + /* x < -0.5 */ + if hx>>int32(31) != 0 { + z = float32((Float32FromInt32(1) + x) * Float32FromFloat32(0.5)) + s = Xsqrtf(tls, z) + w = float32(_R1(tls, z)*s) - _pio2_lo1 + return float32(Float32FromInt32(2) * (_pio2_hi1 - (s + w))) + } + /* x > 0.5 */ + z = float32((Float32FromInt32(1) - x) * Float32FromFloat32(0.5)) + s = Xsqrtf(tls, z) + hx = *(*Tuint32_t)(unsafe.Pointer(&s)) + v1 = hx & uint32(0xfffff000) + df = *(*float32)(unsafe.Pointer(&v1)) + c = (z - float32(df*df)) / (s + df) + w = float32(_R1(tls, z)*s) + c + return float32(Float32FromInt32(2) * (df + w)) +} + +// C documentation +// +// /* acosh(x) = log(x + sqrt(x*x-1)) */ +func Xacosh(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e uint32 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _ = e + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + e = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + /* x < 1 domain error is handled in the called functions */ + if e < Uint32FromInt32(Int32FromInt32(0x3ff)+Int32FromInt32(1)) { + /* |x| < 2, up to 2ulp error in [1,1.125] */ + return Xlog1p(tls, x-Float64FromInt32(1)+Xsqrt(tls, float64((x-Float64FromInt32(1))*(x-Float64FromInt32(1)))+float64(Float64FromInt32(2)*(x-Float64FromInt32(1))))) + } + if e < Uint32FromInt32(Int32FromInt32(0x3ff)+Int32FromInt32(26)) { + /* |x| < 0x1p26 */ + return Xlog(tls, float64(Float64FromInt32(2)*x)-Float64FromInt32(1)/(x+Xsqrt(tls, float64(x*x)-Float64FromInt32(1)))) + } + /* |x| >= 0x1p26 or nan */ + return Xlog(tls, x) + float64(0.6931471805599453) +} + +// C documentation +// +// /* acosh(x) = log(x + sqrt(x*x-1)) */ +func Xacoshf(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var a Tuint32_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _ = a + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + a = *(*Tuint32_t)(unsafe.Pointer(bp)) & uint32(0x7fffffff) + if a < Uint32FromInt32(Int32FromInt32(0x3f800000)+Int32FromInt32(1)<= 0x1p12 or x <= -2 or nan */ + return Xlogf(tls, x) + Float32FromFloat32(0.6931471805599453) +} + +func Xacoshl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xacosh(tls, x) +} + +func Xacosl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xacos(tls, x) +} + +var _pio2_hi2 = float64(1.5707963267948966) /* 0x3FF921FB, 0x54442D18 */ +var _pio2_lo2 = float64(6.123233995736766e-17) /* 0x3C91A626, 0x33145C07 */ +/* coefficients for R(x^2) */ +var _pS02 = float64(0.16666666666666666) /* 0x3FC55555, 0x55555555 */ +var _pS12 = -Float64FromFloat64(0.3255658186224009) /* 0xBFD4D612, 0x03EB6F7D */ +var _pS22 = float64(0.20121253213486293) /* 0x3FC9C155, 0x0E884455 */ +var _pS31 = -Float64FromFloat64(0.04005553450067941) /* 0xBFA48228, 0xB5688F3B */ +var _pS41 = float64(0.0007915349942898145) /* 0x3F49EFE0, 0x7501B288 */ +var _pS51 = float64(3.479331075960212e-05) /* 0x3F023DE1, 0x0DFDF709 */ +var _qS12 = -Float64FromFloat64(2.403394911734414) /* 0xC0033A27, 0x1C8A2D4B */ +var _qS21 = float64(2.0209457602335057) /* 0x40002AE5, 0x9C598AC8 */ +var _qS31 = -Float64FromFloat64(0.6882839716054533) /* 0xBFE6066C, 0x1B8D0159 */ +var _qS41 = float64(0.07703815055590194) /* 0x3FB3B8C5, 0xB12E9282 */ + +func _R2(tls *TLS, z float64) (r float64) { + var p, q Tdouble_t + _, _ = p, q + p = Tdouble_t(z * (_pS02 + float64(z*(_pS12+float64(z*(_pS22+float64(z*(_pS31+float64(z*(_pS41+float64(z*_pS51))))))))))) + q = float64(1) + float64(z*(_qS12+float64(z*(_qS21+float64(z*(_qS31+float64(z*_qS41))))))) + return p / q +} + +func Xasin(tls *TLS, x float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var c, f, r, s, z float64 + var hx, ix, lx Tuint32_t + var v1 Tuint64_t + _, _, _, _, _, _, _, _, _ = c, f, hx, ix, lx, r, s, z, v1 + hx = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + ix = hx & uint32(0x7fffffff) + /* |x| >= 1 or nan */ + if ix >= uint32(0x3ff00000) { + lx = uint32(*(*Tuint64_t)(unsafe.Pointer(&x))) + if ix-uint32(0x3ff00000)|lx == uint32(0) { + /* asin(1) = +-pi/2 with inexact */ + return float64(x*_pio2_hi2) + Float64FromFloat32(7.52316384526264e-37) + } + return Float64FromInt32(0) / (x - x) + } + /* |x| < 0.5 */ + if ix < uint32(0x3fe00000) { + /* if 0x1p-1022 <= |x| < 0x1p-26, avoid raising underflow */ + if ix < uint32(0x3e500000) && ix >= uint32(0x00100000) { + return x + } + return x + float64(x*_R2(tls, float64(x*x))) + } + /* 1 > |x| >= 0.5 */ + z = float64((Float64FromInt32(1) - Xfabs(tls, x)) * float64(0.5)) + s = Xsqrt(tls, z) + r = _R2(tls, z) + if ix >= uint32(0x3fef3333) { /* if |x| > 0.975 */ + x = _pio2_hi2 - (float64(Float64FromInt32(2)*(s+float64(s*r))) - _pio2_lo2) + } else { + /* f+c = sqrt(z) */ + f = s + v1 = *(*Tuint64_t)(unsafe.Pointer(&f))>>Int32FromInt32(32)<>int32(31) != 0 { + return -x + } + return x +} + +var _pio2 = float64(1.5707963267948966) + +/* coefficients for R(x^2) */ +var _pS03 = float32(0.16666586697) +var _pS13 = float32(-Float64FromFloat64(0.042743422091)) +var _pS23 = float32(-Float64FromFloat64(0.008656363003)) +var _qS13 = float32(-Float64FromFloat64(0.7066296339)) + +func _R3(tls *TLS, z float32) (r float32) { + var p, q Tfloat_t + _, _ = p, q + p = Tfloat_t(z * (_pS03 + float32(z*(_pS13+float32(z*_pS23))))) + q = Float32FromFloat32(1) + float32(z*_qS13) + return p / q +} + +func Xasinf(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + var hx, ix Tuint32_t + var s float64 + var z float32 + _, _, _, _ = hx, ix, s, z + hx = *(*Tuint32_t)(unsafe.Pointer(&x)) + ix = hx & uint32(0x7fffffff) + if ix >= uint32(0x3f800000) { /* |x| >= 1 */ + if ix == uint32(0x3f800000) { /* |x| == 1 */ + return float32(float64(float64(x)*_pio2) + Float64FromFloat32(7.52316384526264e-37)) + } /* asin(+-1) = +-pi/2 with inexact */ + return Float32FromInt32(0) / (x - x) /* asin(|x|>1) is NaN */ + } + if ix < uint32(0x3f000000) { /* |x| < 0.5 */ + /* if 0x1p-126 <= |x| < 0x1p-12, avoid raising underflow */ + if ix < uint32(0x39800000) && ix >= uint32(0x00800000) { + return x + } + return x + float32(x*_R3(tls, float32(x*x))) + } + /* 1 > |x| >= 0.5 */ + z = float32((Float32FromInt32(1) - Xfabsf(tls, x)) * Float32FromFloat32(0.5)) + s = Xsqrt(tls, float64(z)) + x = float32(_pio2 - float64(Float64FromInt32(2)*(s+float64(s*float64(_R3(tls, z)))))) + if hx>>int32(31) != 0 { + return -x + } + return x +} + +// C documentation +// +// /* asinh(x) = sign(x)*log(|x|+sqrt(x*x+1)) ~= x - x^3/6 + o(x^5) */ +func Xasinh(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e, s uint32 + var y float32 + var y1, y2, v1 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _ = e, s, y, y1, y2, v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + e = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + s = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(63)) + /* |x| */ + *(*Tuint64_t)(unsafe.Pointer(bp)) &= Uint64FromInt32(-Int32FromInt32(1)) / Uint64FromInt32(2) + x3 = *(*float64)(unsafe.Pointer(bp)) + if e >= Uint32FromInt32(Int32FromInt32(0x3ff)+Int32FromInt32(26)) { + /* |x| >= 0x1p26 or inf or nan */ + x3 = Xlog(tls, x3) + float64(0.6931471805599453) + } else { + if e >= Uint32FromInt32(Int32FromInt32(0x3ff)+Int32FromInt32(1)) { + /* |x| >= 2 */ + x3 = Xlog(tls, float64(Float64FromInt32(2)*x3)+Float64FromInt32(1)/(Xsqrt(tls, float64(x3*x3)+Float64FromInt32(1))+x3)) + } else { + if e >= Uint32FromInt32(Int32FromInt32(0x3ff)-Int32FromInt32(26)) { + /* |x| >= 0x1p-26, up to 1.6ulp error in [0.125,0.5] */ + x3 = Xlog1p(tls, x3+float64(x3*x3)/(Xsqrt(tls, float64(x3*x3)+Float64FromInt32(1))+Float64FromInt32(1))) + } else { + /* |x| < 0x1p-26, raise inexact if x != 0 */ + if uint64(8) == uint64(4) { + y = float32(x3 + Float64FromFloat32(1.329227995784916e+36)) + } else { + if uint64(8) == uint64(8) { + y1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } else { + y2 = float64(x3 + Float64FromFloat32(1.329227995784916e+36)) + } + } + } + } + } + if s != 0 { + v1 = -x3 + } else { + v1 = x3 + } + return v1 +} + +// C documentation +// +// /* asinh(x) = sign(x)*log(|x|+sqrt(x*x+1)) ~= x - x^3/6 + o(x^5) */ +func Xasinhf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var i Tuint32_t + var s uint32 + var y, v1 float32 + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _ = i, s, y, y1, y2, v1 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + i = *(*Tuint32_t)(unsafe.Pointer(bp)) & uint32(0x7fffffff) + s = *(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(31) + /* |x| */ + *(*Tuint32_t)(unsafe.Pointer(bp)) = i + x3 = *(*float32)(unsafe.Pointer(bp)) + if i >= Uint32FromInt32(Int32FromInt32(0x3f800000)+Int32FromInt32(12)<= 0x1p12 or inf or nan */ + x3 = Xlogf(tls, x3) + Float32FromFloat32(0.6931471805599453) + } else { + if i >= Uint32FromInt32(Int32FromInt32(0x3f800000)+Int32FromInt32(1)<= 2 */ + x3 = Xlogf(tls, float32(Float32FromInt32(2)*x3)+Float32FromInt32(1)/(Xsqrtf(tls, float32(x3*x3)+Float32FromInt32(1))+x3)) + } else { + if i >= Uint32FromInt32(Int32FromInt32(0x3f800000)-Int32FromInt32(12)<= 0x1p-12, up to 1.6ulp error in [0.125,0.5] */ + x3 = Xlog1pf(tls, x3+float32(x3*x3)/(Xsqrtf(tls, float32(x3*x3)+Float32FromInt32(1))+Float32FromInt32(1))) + } else { + /* |x| < 0x1p-12, raise inexact if x!=0 */ + if uint64(4) == uint64(4) { + y = x3 + Float32FromFloat32(1.329227995784916e+36) + } else { + if uint64(4) == uint64(8) { + y1 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } else { + y2 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } + } + } + } + } + if s != 0 { + v1 = -x3 + } else { + v1 = x3 + } + return v1 +} + +func Xasinhl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xasinh(tls, x) +} + +func Xasinl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xasin(tls, x) +} + +var _atanhi = [4]float64{ + 0: float64(0.4636476090008061), + 1: float64(0.7853981633974483), + 2: float64(0.982793723247329), + 3: float64(1.5707963267948966), +} + +var _atanlo = [4]float64{ + 0: float64(2.2698777452961687e-17), + 1: float64(3.061616997868383e-17), + 2: float64(1.3903311031230998e-17), + 3: float64(6.123233995736766e-17), +} + +var _aT = [11]float64{ + 0: float64(0.3333333333333293), + 1: -Float64FromFloat64(0.19999999999876483), + 2: float64(0.14285714272503466), + 3: -Float64FromFloat64(0.11111110405462356), + 4: float64(0.09090887133436507), + 5: -Float64FromFloat64(0.0769187620504483), + 6: float64(0.06661073137387531), + 7: -Float64FromFloat64(0.058335701337905735), + 8: float64(0.049768779946159324), + 9: -Float64FromFloat64(0.036531572744216916), + 10: float64(0.016285820115365782), +} + +func Xatan(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var id int32 + var ix, sign Tuint32_t + var s1, s2, w, z, v3 Tdouble_t + var y float32 + var y1, y2 float64 + var v1 uint64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _, _, _, _, _, _, _, _, _, _, _, _ = id, ix, s1, s2, sign, w, y, y1, y2, z, v1, v3 + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x3)) >> int32(32)) + sign = ix >> int32(31) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x44100000) { /* if |x| >= 2^66 */ + *(*float64)(unsafe.Pointer(bp)) = x3 + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 + _2: + if BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var __u1, __u2 Tuint64_t + var ix, iy, lx, ly, m Tuint32_t + var z, v6 float64 + var v1, v3 uint64 + var v5 bool + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _, _, _, _, _, _, _, _, _, _, _, _ = __u1, __u2, ix, iy, lx, ly, m, z, v1, v3, v5, v6 + *(*float64)(unsafe.Pointer(bp)) = x + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + ; + if v5 = BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<> int32(32)) + lx = uint32(__u1) + __u2 = *(*Tuint64_t)(unsafe.Pointer(&y)) + iy = uint32(__u2 >> int32(32)) + ly = uint32(__u2) + if ix-uint32(0x3ff00000)|lx == uint32(0) { /* x = 1.0 */ + return Xatan(tls, y) + } + m = iy>>Int32FromInt32(31)&uint32(1) | ix>>Int32FromInt32(30)&uint32(2) /* 2*sign(x)+sign(y) */ + ix = ix & uint32(0x7fffffff) + iy = iy & uint32(0x7fffffff) + /* when y = 0 */ + if iy|ly == uint32(0) { + switch m { + case uint32(0): + fallthrough + case uint32(1): + return y /* atan(+-0,+anything)=+-0 */ + case uint32(2): + return _pi /* atan(+0,-anything) = pi */ + case uint32(3): + return -_pi /* atan(-0,-anything) =-pi */ + } + } + /* when x = 0 */ + if ix|lx == uint32(0) { + if m&uint32(1) != 0 { + v6 = -_pi / Float64FromInt32(2) + } else { + v6 = _pi / Float64FromInt32(2) + } + return v6 + } + /* when x is INF */ + if ix == uint32(0x7ff00000) { + if iy == uint32(0x7ff00000) { + switch m { + case uint32(0): + return _pi / Float64FromInt32(4) /* atan(+INF,+INF) */ + case uint32(1): + return -_pi / Float64FromInt32(4) /* atan(-INF,+INF) */ + case uint32(2): + return float64(Float64FromInt32(3)*_pi) / Float64FromInt32(4) /* atan(+INF,-INF) */ + case uint32(3): + return float64(float64(-Int32FromInt32(3))*_pi) / Float64FromInt32(4) /* atan(-INF,-INF) */ + } + } else { + switch m { + case uint32(0): + return float64(0) /* atan(+...,+INF) */ + case uint32(1): + return -Float64FromFloat64(0) /* atan(-...,+INF) */ + case uint32(2): + return _pi /* atan(+...,-INF) */ + case uint32(3): + return -_pi /* atan(-...,-INF) */ + } + } + } + /* |y/x| > 0x1p64 */ + if ix+Uint32FromInt32(Int32FromInt32(64)< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ix, iy, m Tuint32_t + var z, v6 float32 + var v1, v3 uint32 + var v5 bool + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _, _, _, _, _, _, _, _ = ix, iy, m, z, v1, v3, v5, v6 + *(*float32)(unsafe.Pointer(bp)) = x + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + ; + if v5 = BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0; !v5 { + *(*float32)(unsafe.Pointer(bp)) = y + v3 = *(*uint32)(unsafe.Pointer(bp)) + goto _4 + _4: + } + if v5 || BoolInt32(v3&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return x + y + } + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + iy = *(*Tuint32_t)(unsafe.Pointer(&y)) + if ix == uint32(0x3f800000) { /* x=1.0 */ + return Xatanf(tls, y) + } + m = iy>>Int32FromInt32(31)&uint32(1) | ix>>Int32FromInt32(30)&uint32(2) /* 2*sign(x)+sign(y) */ + ix = ix & uint32(0x7fffffff) + iy = iy & uint32(0x7fffffff) + /* when y = 0 */ + if iy == uint32(0) { + switch m { + case uint32(0): + fallthrough + case uint32(1): + return y /* atan(+-0,+anything)=+-0 */ + case uint32(2): + return _pi1 /* atan(+0,-anything) = pi */ + case uint32(3): + return -_pi1 /* atan(-0,-anything) =-pi */ + } + } + /* when x = 0 */ + if ix == uint32(0) { + if m&uint32(1) != 0 { + v6 = -_pi1 / Float32FromInt32(2) + } else { + v6 = _pi1 / Float32FromInt32(2) + } + return v6 + } + /* when x is INF */ + if ix == uint32(0x7f800000) { + if iy == uint32(0x7f800000) { + switch m { + case uint32(0): + return _pi1 / Float32FromInt32(4) /* atan(+INF,+INF) */ + case uint32(1): + return -_pi1 / Float32FromInt32(4) /* atan(-INF,+INF) */ + case uint32(2): + return float32(Float32FromInt32(3)*_pi1) / Float32FromInt32(4) /*atan(+INF,-INF)*/ + case uint32(3): + return float32(float32(-Int32FromInt32(3))*_pi1) / Float32FromInt32(4) /*atan(-INF,-INF)*/ + } + } else { + switch m { + case uint32(0): + return Float32FromFloat32(0) /* atan(+...,+INF) */ + case uint32(1): + return -Float32FromFloat32(0) /* atan(-...,+INF) */ + case uint32(2): + return _pi1 /* atan(+...,-INF) */ + case uint32(3): + return -_pi1 /* atan(-...,-INF) */ + } + } + } + /* |y/x| > 0x1p26 */ + if ix+Uint32FromInt32(Int32FromInt32(26)< %v", r) }() + } + return Xatan2(tls, y, x) +} + +var _atanhi1 = [4]float32{ + 0: float32(0.46364760399), + 1: float32(0.78539812565), + 2: float32(0.98279368877), + 3: float32(1.5707962513), +} + +var _atanlo1 = [4]float32{ + 0: float32(5.012158244e-09), + 1: float32(3.7748947079e-08), + 2: float32(3.447321717e-08), + 3: float32(7.5497894159e-08), +} + +var _aT1 = [5]float32{ + 0: float32(0.33333328366), + 1: float32(-Float64FromFloat64(0.19999158382)), + 2: float32(0.14253635705), + 3: float32(-Float64FromFloat64(0.10648017377)), + 4: float32(0.061687607318), +} + +func Xatanf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var id int32 + var ix, sign Tuint32_t + var s1, s2, w, z, v3 Tfloat_t + var y float32 + var y1, y2 float64 + var v1 uint32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _, _, _, _, _, _, _, _, _, _, _, _ = id, ix, s1, s2, sign, w, y, y1, y2, z, v1, v3 + ix = *(*Tuint32_t)(unsafe.Pointer(&x3)) + sign = ix >> int32(31) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x4c800000) { /* if |x| >= 2**26 */ + *(*float32)(unsafe.Pointer(bp)) = x3 + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 + _2: + if BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return x3 + } + z = _atanhi1[int32(3)] + Float32FromFloat32(7.52316384526264e-37) + if sign != 0 { + v3 = -z + } else { + v3 = z + } + return v3 + } + if ix < uint32(0x3ee00000) { /* |x| < 0.4375 */ + if ix < uint32(0x39800000) { /* |x| < 2**-12 */ + if ix < uint32(0x00800000) { + /* raise underflow for subnormal x */ + if uint64(4) == uint64(4) { + y = float32(x3 * x3) + } else { + if uint64(4) == uint64(8) { + y1 = float64(x3 * x3) + } else { + y2 = float64(x3 * x3) + } + } + } + return x3 + } + id = -int32(1) + } else { + x3 = Xfabsf(tls, x3) + if ix < uint32(0x3f980000) { /* |x| < 1.1875 */ + if ix < uint32(0x3f300000) { /* 7/16 <= |x| < 11/16 */ + id = 0 + x3 = (float32(Float32FromFloat32(2)*x3) - Float32FromFloat32(1)) / (Float32FromFloat32(2) + x3) + } else { /* 11/16 <= |x| < 19/16 */ + id = int32(1) + x3 = (x3 - Float32FromFloat32(1)) / (x3 + Float32FromFloat32(1)) + } + } else { + if ix < uint32(0x401c0000) { /* |x| < 2.4375 */ + id = int32(2) + x3 = (x3 - Float32FromFloat32(1.5)) / (Float32FromFloat32(1) + float32(Float32FromFloat32(1.5)*x3)) + } else { /* 2.4375 <= |x| < 2**26 */ + id = int32(3) + x3 = -Float32FromFloat32(1) / x3 + } + } + } + /* end of argument reduction */ + z = Tfloat_t(x3 * x3) + w = Tfloat_t(z * z) + /* break sum from i=0 to 10 aT[i]z**(i+1) into odd and even poly */ + s1 = Tfloat_t(z * (_aT1[0] + float32(w*(_aT1[int32(2)]+float32(w*_aT1[int32(4)]))))) + s2 = Tfloat_t(w * (_aT1[int32(1)] + float32(w*_aT1[int32(3)]))) + if id < 0 { + return x3 - float32(x3*(s1+s2)) + } + z = _atanhi1[id] - (float32(x3*(s1+s2)) - _atanlo1[id] - x3) + if sign != 0 { + v3 = -z + } else { + v3 = z + } + return v3 +} + +// C documentation +// +// /* atanh(x) = log((1+x)/(1-x))/2 = log1p(2x/(1-x))/2 ~= x + x^3/3 + o(x^5) */ +func Xatanh(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e, s uint32 + var y float32 + var y1, y2 float64 + var y3, v1 Tdouble_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _ = e, s, y, y1, y2, y3, v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + e = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + s = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(63)) + /* |x| */ + *(*Tuint64_t)(unsafe.Pointer(bp)) &= Uint64FromInt32(-Int32FromInt32(1)) / Uint64FromInt32(2) + y3 = *(*float64)(unsafe.Pointer(bp)) + if e < Uint32FromInt32(Int32FromInt32(0x3ff)-Int32FromInt32(1)) { + if e < Uint32FromInt32(Int32FromInt32(0x3ff)-Int32FromInt32(32)) { + /* handle underflow */ + if e == uint32(0) { + if uint64(4) == uint64(4) { + y = float32(y3) + } else { + if uint64(4) == uint64(8) { + y1 = float64(float32(y3)) + } else { + y2 = float64(float32(y3)) + } + } + } + } else { + /* |x| < 0.5, up to 1.7ulp error */ + y3 = Tdouble_t(float64(0.5) * Xlog1p(tls, Tdouble_t(Float64FromInt32(2)*y3)+Tdouble_t(Tdouble_t(Float64FromInt32(2)*y3)*y3)/(Float64FromInt32(1)-y3))) + } + } else { + /* avoid overflow */ + y3 = Tdouble_t(float64(0.5) * Xlog1p(tls, float64(Float64FromInt32(2)*(y3/(Float64FromInt32(1)-y3))))) + } + if s != 0 { + v1 = -y3 + } else { + v1 = y3 + } + return v1 +} + +// C documentation +// +// /* atanh(x) = log((1+x)/(1-x))/2 = log1p(2x/(1-x))/2 ~= x + x^3/3 + o(x^5) */ +func Xatanhf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var s uint32 + var y float32 + var y1, y2 float64 + var y3, v1 Tfloat_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _ = s, y, y1, y2, y3, v1 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + s = *(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(31) + /* |x| */ + *(*Tuint32_t)(unsafe.Pointer(bp)) &= uint32(0x7fffffff) + y3 = *(*float32)(unsafe.Pointer(bp)) + if *(*Tuint32_t)(unsafe.Pointer(bp)) < Uint32FromInt32(Int32FromInt32(0x3f800000)-Int32FromInt32(1)< %v", r) }() + } + return Xatanh(tls, x) +} + +func Xatanl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xatan(tls, x) +} + +var _B1 = uint32(715094163) /* B1 = (1023-1023/3-0.03306235651)*2**20 */ +var _B2 = uint32(696219795) /* B2 = (1023-1023/3-54/3-0.03306235651)*2**20 */ + +// C documentation +// +// /* |1/cbrt(x) - p(x)| < 2**-23.5 (~[-7.93e-8, 7.929e-8]). */ + +var _P0 = float64(1.87595182427177) /* 0x3ffe03e6, 0x0f61e692 */ +var _P1 = -Float64FromFloat64(1.8849797954337717) /* 0xbffe28e0, 0x92f02420 */ +var _P2 = float64(1.6214297201053545) /* 0x3ff9f160, 0x4a49d6c2 */ +var _P3 = -Float64FromFloat64(0.758397934778766) /* 0xbfe844cb, 0xbee751d9 */ +var _P4 = float64(0.14599619288661245) /* 0x3fc2b000, 0xd4e4edd7 */ + +func Xcbrt(tls *TLS, x float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var hx Tuint32_t + var r, s, t, w Tdouble_t + var v1 uintptr + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _ = hx, r, s, t, w, v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + hx = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32) & uint64(0x7fffffff)) + if hx >= uint32(0x7ff00000) { /* cbrt(NaN,INF) is itself */ + return x + x + } + /* + * Rough cbrt to 5 bits: + * cbrt(2**e*(1+m) ~= 2**(e/3)*(1+(e%3+m)/3) + * where e is integral and >= 0, m is real and in [0, 1), and "/" and + * "%" are integer division and modulus with rounding towards minus + * infinity. The RHS is always >= the LHS and has a maximum relative + * error of about 1 in 16. Adding a bias of -0.03306235651 to the + * (e%3+m)/3 term reduces the error to about 1 in 32. With the IEEE + * floating point representation, for finite positive normal values, + * ordinary integer divison of the value in bits magically gives + * almost exactly the RHS of the above provided we first subtract the + * exponent bias (1023 for doubles) and later add it back. We do the + * subtraction virtually to keep e >= 0 so that ordinary integer + * division rounds towards minus infinity; this is also efficient. + */ + if hx < uint32(0x00100000) { /* zero or subnormal? */ + *(*float64)(unsafe.Pointer(bp)) = float64(x * float64(1.8014398509481984e+16)) + hx = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32) & uint64(0x7fffffff)) + if hx == uint32(0) { + return x + } /* cbrt(0) is itself */ + hx = hx/uint32(3) + _B2 + } else { + hx = hx/uint32(3) + _B1 + } + v1 = bp + *(*Tuint64_t)(unsafe.Pointer(v1)) = Tuint64_t(*(*Tuint64_t)(unsafe.Pointer(v1)) & (Uint64FromUint64(1) << Int32FromInt32(63))) + *(*Tuint64_t)(unsafe.Pointer(bp)) |= uint64(hx) << int32(32) + t = *(*float64)(unsafe.Pointer(bp)) + /* + * New cbrt to 23 bits: + * cbrt(x) = t*cbrt(x/t**3) ~= t*P(t**3/x) + * where P(r) is a polynomial of degree 4 that approximates 1/cbrt(r) + * to within 2**-23.5 when |r - 1| < 1/10. The rough approximation + * has produced t such than |t/cbrt(x) - 1| ~< 1/32, and cubing this + * gives us bounds for r = t**3/x. + * + * Try to optimize for parallel evaluation as in __tanf.c. + */ + r = Tdouble_t(Tdouble_t(t*t) * (t / x)) + t = Tdouble_t(t * (_P0 + float64(r*(_P1+float64(r*_P2))) + float64(Tdouble_t(Tdouble_t(r*r)*r)*(_P3+float64(r*_P4))))) + /* + * Round t away from zero to 23 bits (sloppily except for ensuring that + * the result is larger in magnitude than cbrt(x) but not much more than + * 2 23-bit ulps larger). With rounding towards zero, the error bound + * would be ~5/6 instead of ~4/6. With a maximum error of 2 23-bit ulps + * in the rounded t, the infinite-precision error in the Newton + * approximation barely affects third digit in the final error + * 0.667; the error in the rounded t can be up to about 3 23-bit ulps + * before the final error is larger than 0.667 ulps. + */ + *(*float64)(unsafe.Pointer(bp)) = t + *(*Tuint64_t)(unsafe.Pointer(bp)) = uint64(*(*Tuint64_t)(unsafe.Pointer(bp))+Uint64FromUint32(0x80000000)) & uint64(0xffffffffc0000000) + t = *(*float64)(unsafe.Pointer(bp)) + /* one step Newton iteration to 53 bits with error < 0.667 ulps */ + s = Tdouble_t(t * t) /* t*t is exact */ + r = x / s /* error <= 0.5 ulps; |r| < |t| */ + w = t + t /* t+t is exact */ + r = (r - t) / (w + r) /* r-t is exact; w+r ~= 3*t */ + t = t + Tdouble_t(t*r) /* error <= 0.5 + 0.5/3 + epsilon */ + return t +} + +var _B11 = uint32(709958130) /* B1 = (127-127.0/3-0.03306235651)*2**23 */ +var _B21 = uint32(642849266) /* B2 = (127-127.0/3-24/3-0.03306235651)*2**23 */ + +func Xcbrtf(tls *TLS, x float32) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var T, r Tdouble_t + var hx Tuint32_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _ = T, hx, r + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + hx = *(*Tuint32_t)(unsafe.Pointer(bp)) & uint32(0x7fffffff) + if hx >= uint32(0x7f800000) { /* cbrt(NaN,INF) is itself */ + return x + x + } + /* rough cbrt to 5 bits */ + if hx < uint32(0x00800000) { /* zero or subnormal? */ + if hx == uint32(0) { + return x + } /* cbrt(+-0) is itself */ + *(*float32)(unsafe.Pointer(bp)) = float32(x * Float32FromFloat32(1.6777216e+07)) + hx = *(*Tuint32_t)(unsafe.Pointer(bp)) & uint32(0x7fffffff) + hx = hx/uint32(3) + _B21 + } else { + hx = hx/uint32(3) + _B11 + } + *(*Tuint32_t)(unsafe.Pointer(bp)) &= uint32(0x80000000) + *(*Tuint32_t)(unsafe.Pointer(bp)) |= hx + /* + * First step Newton iteration (solving t*t-x/t == 0) to 16 bits. In + * double precision so that its terms can be arranged for efficiency + * without causing overflow or underflow. + */ + T = float64(*(*float32)(unsafe.Pointer(bp))) + r = Tdouble_t(Tdouble_t(T*T) * T) + T = Tdouble_t(T*(float64(x)+float64(x)+r)) / (float64(x) + r + r) + /* + * Second step Newton iteration to 47 bits. In double precision for + * efficiency and accuracy. + */ + r = Tdouble_t(Tdouble_t(T*T) * T) + T = Tdouble_t(T*(float64(x)+float64(x)+r)) / (float64(x) + r + r) + /* rounding to 24 bits is perfect in round-to-nearest mode */ + return float32(T) +} + +func Xcbrtl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xcbrt(tls, x) +} + +const DBL_EPSILON5 = 2.220446049250313e-16 + +var _toint2 = Float64FromInt32(1) / Float64FromFloat64(2.220446049250313e-16) + +func Xceil(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e int32 + var y float32 + var y1, y2, v1 float64 + var y3 Tdouble_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _ = e, y, y1, y2, y3, v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + e = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + if e >= Int32FromInt32(0x3ff)+Int32FromInt32(52) || x3 == Float64FromInt32(0) { + return x3 + } + /* y = int(x) - x, where int(x) is an integer neighbor of x */ + if *(*Tuint64_t)(unsafe.Pointer(bp))>>int32(63) != 0 { + y3 = x3 - _toint2 + _toint2 - x3 + } else { + y3 = x3 + _toint2 - _toint2 - x3 + } + /* special case because of non-nearest rounding modes */ + if e <= Int32FromInt32(0x3ff)-Int32FromInt32(1) { + if uint64(8) == uint64(4) { + y = float32(y3) + } else { + if uint64(8) == uint64(8) { + y1 = y3 + } else { + y2 = y3 + } + } + if *(*Tuint64_t)(unsafe.Pointer(bp))>>int32(63) != 0 { + v1 = -Float64FromFloat64(0) + } else { + v1 = Float64FromInt32(1) + } + return v1 + } + if y3 < Float64FromInt32(0) { + return x3 + y3 + Float64FromInt32(1) + } + return x3 + y3 +} + +const DBL_EPSILON6 = 0 + +func Xceilf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e int32 + var m Tuint32_t + var y float32 + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _ = e, m, y, y1, y2 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + e = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp))>>Int32FromInt32(23)&Uint32FromInt32(0xff)) - int32(0x7f) + if e >= int32(23) { + return x3 + } + if e >= 0 { + m = Uint32FromInt32(int32(0x007fffff) >> e) + if *(*Tuint32_t)(unsafe.Pointer(bp))&m == uint32(0) { + return x3 + } + if uint64(4) == uint64(4) { + y = x3 + Float32FromFloat32(1.329227995784916e+36) + } else { + if uint64(4) == uint64(8) { + y1 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } else { + y2 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } + } + if *(*Tuint32_t)(unsafe.Pointer(bp))>>int32(31) == uint32(0) { + *(*Tuint32_t)(unsafe.Pointer(bp)) += m + } + *(*Tuint32_t)(unsafe.Pointer(bp)) &= ^m + } else { + if uint64(4) == uint64(4) { + y = x3 + Float32FromFloat32(1.329227995784916e+36) + } else { + if uint64(4) == uint64(8) { + y1 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } else { + y2 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } + } + if *(*Tuint32_t)(unsafe.Pointer(bp))>>int32(31) != 0 { + *(*float32)(unsafe.Pointer(bp)) = float32(-Float64FromFloat64(0)) + } else { + if *(*Tuint32_t)(unsafe.Pointer(bp))< %v", r) }() + } + return Xceil(tls, x) +} + +func Xcopysign(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uintptr + var _ /* ux at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + var _ /* uy at bp+8 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _ = v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp + 8)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp + 8)) = y + v1 = bp + *(*Tuint64_t)(unsafe.Pointer(v1)) = Tuint64_t(*(*Tuint64_t)(unsafe.Pointer(v1)) & (-Uint64FromUint64(1) / Uint64FromInt32(2))) + v1 = bp + *(*Tuint64_t)(unsafe.Pointer(v1)) = Tuint64_t(*(*Tuint64_t)(unsafe.Pointer(v1)) | *(*Tuint64_t)(unsafe.Pointer(bp + 8))&(Uint64FromUint64(1)< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* ux at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + var _ /* uy at bp+4 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp + 4)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp + 4)) = y + *(*Tuint32_t)(unsafe.Pointer(bp)) &= uint32(0x7fffffff) + *(*Tuint32_t)(unsafe.Pointer(bp)) |= *(*Tuint32_t)(unsafe.Pointer(bp + 4)) & uint32(0x80000000) + return *(*float32)(unsafe.Pointer(bp)) +} + +func Xcopysignl(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xcopysign(tls, x, y) +} + +func Xcos(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ix Tuint32_t + var n uint32 + var y float32 + var y1, y2 float64 + var _ /* y at bp+0 */ [2]float64 + _, _, _, _, _ = ix, n, y, y1, y2 + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x3)) >> int32(32)) + ix = ix & uint32(0x7fffffff) + /* |x| ~< pi/4 */ + if ix <= uint32(0x3fe921fb) { + if ix < uint32(0x3e46a09e) { /* |x| < 2**-27 * sqrt(2) */ + /* raise inexact if x!=0 */ + if uint64(8) == uint64(4) { + y = float32(x3 + Float64FromFloat32(1.329227995784916e+36)) + } else { + if uint64(8) == uint64(8) { + y1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } else { + y2 = float64(x3 + Float64FromFloat32(1.329227995784916e+36)) + } + } + return float64(1) + } + return X__cos(tls, x3, Float64FromInt32(0)) + } + /* cos(Inf or NaN) is NaN */ + if ix >= uint32(0x7ff00000) { + return x3 - x3 + } + /* argument reduction */ + n = Uint32FromInt32(X__rem_pio2(tls, x3, bp)) + switch n & Uint32FromInt32(3) { + case uint32(0): + return X__cos(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)]) + case uint32(1): + return -X__sin(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)], int32(1)) + case uint32(2): + return -X__cos(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)]) + default: + return X__sin(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)], int32(1)) + } + return r +} + +const M_PI_23 = 1.5707963267948966 + +// C documentation +// +// /* Small multiples of pi/2 rounded to double precision. */ + +var _c1pio2 = float64(Float64FromInt32(1) * Float64FromFloat64(1.5707963267948966)) /* 0x3FF921FB, 0x54442D18 */ +var _c2pio2 = float64(Float64FromInt32(2) * Float64FromFloat64(1.5707963267948966)) /* 0x400921FB, 0x54442D18 */ +var _c3pio2 = float64(Float64FromInt32(3) * Float64FromFloat64(1.5707963267948966)) /* 0x4012D97C, 0x7F3321D2 */ +var _c4pio2 = float64(Float64FromInt32(4) * Float64FromFloat64(1.5707963267948966)) /* 0x401921FB, 0x54442D18 */ + +func Xcosf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ix Tuint32_t + var n, sign uint32 + var y float32 + var y1, y2, v1 float64 + var _ /* y at bp+0 */ float64 + _, _, _, _, _, _, _ = ix, n, sign, y, y1, y2, v1 + ix = *(*Tuint32_t)(unsafe.Pointer(&x3)) + sign = ix >> int32(31) + ix = ix & uint32(0x7fffffff) + if ix <= uint32(0x3f490fda) { /* |x| ~<= pi/4 */ + if ix < uint32(0x39800000) { /* |x| < 2**-12 */ + /* raise inexact if x != 0 */ + if uint64(4) == uint64(4) { + y = x3 + Float32FromFloat32(1.329227995784916e+36) + } else { + if uint64(4) == uint64(8) { + y1 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } else { + y2 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } + } + return Float32FromFloat32(1) + } + return X__cosdf(tls, float64(x3)) + } + if ix <= uint32(0x407b53d1) { /* |x| ~<= 5*pi/4 */ + if ix > uint32(0x4016cbe3) { /* |x| ~> 3*pi/4 */ + if sign != 0 { + v1 = float64(x3) + _c2pio2 + } else { + v1 = float64(x3) - _c2pio2 + } + return -X__cosdf(tls, v1) + } else { + if sign != 0 { + return X__sindf(tls, float64(x3)+_c1pio2) + } else { + return X__sindf(tls, _c1pio2-float64(x3)) + } + } + } + if ix <= uint32(0x40e231d5) { /* |x| ~<= 9*pi/4 */ + if ix > uint32(0x40afeddf) { /* |x| ~> 7*pi/4 */ + if sign != 0 { + v1 = float64(x3) + _c4pio2 + } else { + v1 = float64(x3) - _c4pio2 + } + return X__cosdf(tls, v1) + } else { + if sign != 0 { + return X__sindf(tls, float64(-x3)-_c3pio2) + } else { + return X__sindf(tls, float64(x3)-_c3pio2) + } + } + } + /* cos(Inf or NaN) is NaN */ + if ix >= uint32(0x7f800000) { + return x3 - x3 + } + /* general argument reduction needed */ + n = Uint32FromInt32(X__rem_pio2f(tls, x3, bp)) + switch n & Uint32FromInt32(3) { + case uint32(0): + return X__cosdf(tls, **(**float64)(__ccgo_up(bp))) + case uint32(1): + return X__sindf(tls, -**(**float64)(__ccgo_up(bp))) + case uint32(2): + return -X__cosdf(tls, **(**float64)(__ccgo_up(bp))) + default: + return X__sindf(tls, **(**float64)(__ccgo_up(bp))) + } + return r +} + +const M_PI_24 = 0 + +// C documentation +// +// /* cosh(x) = (exp(x) + 1/exp(x))/2 +// * = 1 + 0.5*(exp(x)-1)*(exp(x)-1)/exp(x) +// * = 1 + x*x/2 + o(x^4) +// */ +func Xcosh(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var t, y1, y2 float64 + var w Tuint32_t + var y float32 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _ = t, w, y, y1, y2 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + /* |x| */ + *(*Tuint64_t)(unsafe.Pointer(bp)) &= Uint64FromInt32(-Int32FromInt32(1)) / Uint64FromInt32(2) + x3 = *(*float64)(unsafe.Pointer(bp)) + w = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32)) + /* |x| < log(2) */ + if w < uint32(0x3fe62e42) { + if w < Uint32FromInt32(Int32FromInt32(0x3ff00000)-Int32FromInt32(26)<log(0x1p26) then the 1/t is not needed */ + return float64(float64(0.5) * (t + Float64FromInt32(1)/t)) + } + /* |x| > log(DBL_MAX) or nan */ + /* note: the result is stored to handle overflow */ + t = X__expo2(tls, x3, float64(1)) + return t +} + +func Xcoshf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var t, y float32 + var w Tuint32_t + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _ = t, w, y, y1, y2 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + /* |x| */ + *(*Tuint32_t)(unsafe.Pointer(bp)) &= uint32(0x7fffffff) + x3 = *(*float32)(unsafe.Pointer(bp)) + w = *(*Tuint32_t)(unsafe.Pointer(bp)) + /* |x| < log(2) */ + if w < uint32(0x3f317217) { + if w < Uint32FromInt32(Int32FromInt32(0x3f800000)-Int32FromInt32(12)< log(FLT_MAX) or nan */ + t = X__expo2f(tls, x3, Float32FromFloat32(1)) + return t +} + +func Xcoshl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xcosh(tls, x) +} + +func Xcosl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xcos(tls, x) +} + +var _erx = float64(0.8450629115104675) /* 0x3FEB0AC1, 0x60000000 */ +/* + * Coefficients for approximation to erf on [0,0.84375] + */ +var _efx8 = float64(1.0270333367641007) /* 0x3FF06EBA, 0x8214DB69 */ +var _pp0 = float64(0.12837916709551256) /* 0x3FC06EBA, 0x8214DB68 */ +var _pp1 = -Float64FromFloat64(0.3250421072470015) /* 0xBFD4CD7D, 0x691CB913 */ +var _pp2 = -Float64FromFloat64(0.02848174957559851) /* 0xBF9D2A51, 0xDBD7194F */ +var _pp3 = -Float64FromFloat64(0.005770270296489442) /* 0xBF77A291, 0x236668E4 */ +var _pp4 = -Float64FromFloat64(2.3763016656650163e-05) /* 0xBEF8EAD6, 0x120016AC */ +var _qq1 = float64(0.39791722395915535) /* 0x3FD97779, 0xCDDADC09 */ +var _qq2 = float64(0.0650222499887673) /* 0x3FB0A54C, 0x5536CEBA */ +var _qq3 = float64(0.005081306281875766) /* 0x3F74D022, 0xC4D36B0F */ +var _qq4 = float64(0.00013249473800432164) /* 0x3F215DC9, 0x221C1A10 */ +var _qq5 = -Float64FromFloat64(3.960228278775368e-06) /* 0xBED09C43, 0x42A26120 */ +/* + * Coefficients for approximation to erf in [0.84375,1.25] + */ +var _pa0 = -Float64FromFloat64(0.0023621185607526594) /* 0xBF6359B8, 0xBEF77538 */ +var _pa1 = float64(0.41485611868374833) /* 0x3FDA8D00, 0xAD92B34D */ +var _pa2 = -Float64FromFloat64(0.3722078760357013) /* 0xBFD7D240, 0xFBB8C3F1 */ +var _pa3 = float64(0.31834661990116175) /* 0x3FD45FCA, 0x805120E4 */ +var _pa4 = -Float64FromFloat64(0.11089469428239668) /* 0xBFBC6398, 0x3D3E28EC */ +var _pa5 = float64(0.035478304325618236) /* 0x3FA22A36, 0x599795EB */ +var _pa6 = -Float64FromFloat64(0.002166375594868791) /* 0xBF61BF38, 0x0A96073F */ +var _qa1 = float64(0.10642088040084423) /* 0x3FBB3E66, 0x18EEE323 */ +var _qa2 = float64(0.540397917702171) /* 0x3FE14AF0, 0x92EB6F33 */ +var _qa3 = float64(0.07182865441419627) /* 0x3FB2635C, 0xD99FE9A7 */ +var _qa4 = float64(0.12617121980876164) /* 0x3FC02660, 0xE763351F */ +var _qa5 = float64(0.01363708391202905) /* 0x3F8BEDC2, 0x6B51DD1C */ +var _qa6 = float64(0.011984499846799107) /* 0x3F888B54, 0x5735151D */ +/* + * Coefficients for approximation to erfc in [1.25,1/0.35] + */ +var _ra0 = -Float64FromFloat64(0.009864944034847148) /* 0xBF843412, 0x600D6435 */ +var _ra1 = -Float64FromFloat64(0.6938585727071818) /* 0xBFE63416, 0xE4BA7360 */ +var _ra2 = -Float64FromFloat64(10.558626225323291) /* 0xC0251E04, 0x41B0E726 */ +var _ra3 = -Float64FromFloat64(62.375332450326006) /* 0xC04F300A, 0xE4CBA38D */ +var _ra4 = -Float64FromFloat64(162.39666946257347) /* 0xC0644CB1, 0x84282266 */ +var _ra5 = -Float64FromFloat64(184.60509290671104) /* 0xC067135C, 0xEBCCABB2 */ +var _ra6 = -Float64FromFloat64(81.2874355063066) /* 0xC0545265, 0x57E4D2F2 */ +var _ra7 = -Float64FromFloat64(9.814329344169145) /* 0xC023A0EF, 0xC69AC25C */ +var _sa1 = float64(19.651271667439257) /* 0x4033A6B9, 0xBD707687 */ +var _sa2 = float64(137.65775414351904) /* 0x4061350C, 0x526AE721 */ +var _sa3 = float64(434.56587747522923) /* 0x407B290D, 0xD58A1A71 */ +var _sa4 = float64(645.3872717332679) /* 0x40842B19, 0x21EC2868 */ +var _sa5 = float64(429.00814002756783) /* 0x407AD021, 0x57700314 */ +var _sa6 = float64(108.63500554177944) /* 0x405B28A3, 0xEE48AE2C */ +var _sa7 = float64(6.570249770319282) /* 0x401A47EF, 0x8E484A93 */ +var _sa8 = -Float64FromFloat64(0.0604244152148581) /* 0xBFAEEFF2, 0xEE749A62 */ +/* + * Coefficients for approximation to erfc in [1/.35,28] + */ +var _rb0 = -Float64FromFloat64(0.0098649429247001) /* 0xBF843412, 0x39E86F4A */ +var _rb1 = -Float64FromFloat64(0.799283237680523) /* 0xBFE993BA, 0x70C285DE */ +var _rb2 = -Float64FromFloat64(17.757954917754752) /* 0xC031C209, 0x555F995A */ +var _rb3 = -Float64FromFloat64(160.63638485582192) /* 0xC064145D, 0x43C5ED98 */ +var _rb4 = -Float64FromFloat64(637.5664433683896) /* 0xC083EC88, 0x1375F228 */ +var _rb5 = -Float64FromFloat64(1025.0951316110772) /* 0xC0900461, 0x6A2E5992 */ +var _rb6 = -Float64FromFloat64(483.5191916086514) /* 0xC07E384E, 0x9BDC383F */ +var _sb1 = float64(30.33806074348246) /* 0x403E568B, 0x261D5190 */ +var _sb2 = float64(325.7925129965739) /* 0x40745CAE, 0x221B9F0A */ +var _sb3 = float64(1536.729586084437) /* 0x409802EB, 0x189D5118 */ +var _sb4 = float64(3199.8582195085955) /* 0x40A8FFB7, 0x688C246A */ +var _sb5 = float64(2553.0504064331644) /* 0x40A3F219, 0xCEDF3BE6 */ +var _sb6 = float64(474.52854120695537) /* 0x407DA874, 0xE79FE763 */ +var _sb7 = -Float64FromFloat64(22.44095244658582) /* 0xC03670E2, 0x42712D62 */ + +func _erfc1(tls *TLS, x float64) (r float64) { + var P, Q, s Tdouble_t + _, _, _ = P, Q, s + s = Xfabs(tls, x) - Float64FromInt32(1) + P = _pa0 + float64(s*(_pa1+float64(s*(_pa2+float64(s*(_pa3+float64(s*(_pa4+float64(s*(_pa5+float64(s*_pa6))))))))))) + Q = Float64FromInt32(1) + Tdouble_t(s*(_qa1+float64(s*(_qa2+float64(s*(_qa3+float64(s*(_qa4+float64(s*(_qa5+float64(s*_qa6))))))))))) + return Float64FromInt32(1) - _erx - P/Q +} + +func _erfc2(tls *TLS, ix Tuint32_t, x float64) (r float64) { + var R, S, s Tdouble_t + var z float64 + var v1 Tuint64_t + _, _, _, _, _ = R, S, s, z, v1 + if ix < uint32(0x3ff40000) { /* |x| < 1.25 */ + return _erfc1(tls, x) + } + x = Xfabs(tls, x) + s = Float64FromInt32(1) / float64(x*x) + if ix < uint32(0x4006db6d) { /* |x| < 1/.35 ~ 2.85714 */ + R = _ra0 + float64(s*(_ra1+float64(s*(_ra2+float64(s*(_ra3+float64(s*(_ra4+float64(s*(_ra5+float64(s*(_ra6+float64(s*_ra7))))))))))))) + S = float64(1) + float64(s*(_sa1+float64(s*(_sa2+float64(s*(_sa3+float64(s*(_sa4+float64(s*(_sa5+float64(s*(_sa6+float64(s*(_sa7+float64(s*_sa8))))))))))))))) + } else { /* |x| > 1/.35 */ + R = _rb0 + float64(s*(_rb1+float64(s*(_rb2+float64(s*(_rb3+float64(s*(_rb4+float64(s*(_rb5+float64(s*_rb6))))))))))) + S = float64(1) + float64(s*(_sb1+float64(s*(_sb2+float64(s*(_sb3+float64(s*(_sb4+float64(s*(_sb5+float64(s*(_sb6+float64(s*_sb7))))))))))))) + } + z = x + v1 = *(*Tuint64_t)(unsafe.Pointer(&z))>>Int32FromInt32(32)< %v", r1) }() + } + var ix Tuint32_t + var r, s, y, z, v1 float64 + var sign int32 + _, _, _, _, _, _, _ = ix, r, s, sign, y, z, v1 + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x7ff00000) { + /* erf(nan)=nan, erf(+-inf)=+-1 */ + return float64(int32(1)-int32(2)*sign) + Float64FromInt32(1)/x + } + if ix < uint32(0x3feb0000) { /* |x| < 0.84375 */ + if ix < uint32(0x3e300000) { /* |x| < 2**-28 */ + /* avoid underflow */ + return float64(float64(0.125) * (float64(Float64FromInt32(8)*x) + float64(_efx8*x))) + } + z = float64(x * x) + r = _pp0 + float64(z*(_pp1+float64(z*(_pp2+float64(z*(_pp3+float64(z*_pp4))))))) + s = float64(1) + float64(z*(_qq1+float64(z*(_qq2+float64(z*(_qq3+float64(z*(_qq4+float64(z*_qq5))))))))) + y = r / s + return x + float64(x*y) + } + if ix < uint32(0x40180000) { /* 0.84375 <= |x| < 6 */ + y = Float64FromInt32(1) - _erfc2(tls, ix, x) + } else { + y = Float64FromInt32(1) - Float64FromFloat64(2.2250738585072014e-308) + } + if sign != 0 { + v1 = -y + } else { + v1 = y + } + return v1 +} + +func Xerfc(tls *TLS, x float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var ix Tuint32_t + var r, s, y, z, v1 float64 + var sign int32 + _, _, _, _, _, _, _ = ix, r, s, sign, y, z, v1 + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x7ff00000) { + /* erfc(nan)=nan, erfc(+-inf)=0,2 */ + return float64(int32(2)*sign) + Float64FromInt32(1)/x + } + if ix < uint32(0x3feb0000) { /* |x| < 0.84375 */ + if ix < uint32(0x3c700000) { /* |x| < 2**-56 */ + return float64(1) - x + } + z = float64(x * x) + r = _pp0 + float64(z*(_pp1+float64(z*(_pp2+float64(z*(_pp3+float64(z*_pp4))))))) + s = float64(1) + float64(z*(_qq1+float64(z*(_qq2+float64(z*(_qq3+float64(z*(_qq4+float64(z*_qq5))))))))) + y = r / s + if sign != 0 || ix < uint32(0x3fd00000) { /* x < 1/4 */ + return float64(1) - (x + float64(x*y)) + } + return float64(0.5) - (x - float64(0.5) + float64(x*y)) + } + if ix < uint32(0x403c0000) { /* 0.84375 <= |x| < 28 */ + if sign != 0 { + v1 = Float64FromInt32(2) - _erfc2(tls, ix, x) + } else { + v1 = _erfc2(tls, ix, x) + } + return v1 + } + if sign != 0 { + v1 = Float64FromInt32(2) - Float64FromFloat64(2.2250738585072014e-308) + } else { + v1 = float64(Float64FromFloat64(2.2250738585072014e-308) * Float64FromFloat64(2.2250738585072014e-308)) + } + return v1 +} + +var _erx1 = float32(0.84506291151) /* 0x3f58560b */ +/* + * Coefficients for approximation to erf on [0,0.84375] + */ +var _efx81 = float32(1.027033329) /* 0x3f8375d4 */ +var _pp01 = float32(0.12837916613) /* 0x3e0375d4 */ +var _pp11 = float32(-Float64FromFloat64(0.32504209876)) /* 0xbea66beb */ +var _pp21 = float32(-Float64FromFloat64(0.028481749818)) /* 0xbce9528f */ +var _pp31 = float32(-Float64FromFloat64(0.005770270247)) /* 0xbbbd1489 */ +var _pp41 = float32(-Float64FromFloat64(2.3763017452e-05)) /* 0xb7c756b1 */ +var _qq11 = float32(0.39791721106) /* 0x3ecbbbce */ +var _qq21 = float32(0.0650222525) /* 0x3d852a63 */ +var _qq31 = float32(0.0050813062117) /* 0x3ba68116 */ +var _qq41 = float32(0.00013249473704) /* 0x390aee49 */ +var _qq51 = float32(-Float64FromFloat64(3.9602282413e-06)) /* 0xb684e21a */ +/* + * Coefficients for approximation to erf in [0.84375,1.25] + */ +var _pa01 = float32(-Float64FromFloat64(0.0023621185683)) /* 0xbb1acdc6 */ +var _pa11 = float32(0.41485610604) /* 0x3ed46805 */ +var _pa21 = float32(-Float64FromFloat64(0.37220788002)) /* 0xbebe9208 */ +var _pa31 = float32(0.31834661961) /* 0x3ea2fe54 */ +var _pa41 = float32(-Float64FromFloat64(0.11089469492)) /* 0xbde31cc2 */ +var _pa51 = float32(0.035478305072) /* 0x3d1151b3 */ +var _pa61 = float32(-Float64FromFloat64(0.0021663755178)) /* 0xbb0df9c0 */ +var _qa11 = float32(0.10642088205) /* 0x3dd9f331 */ +var _qa21 = float32(0.54039794207) /* 0x3f0a5785 */ +var _qa31 = float32(0.071828655899) /* 0x3d931ae7 */ +var _qa41 = float32(0.12617121637) /* 0x3e013307 */ +var _qa51 = float32(0.013637083583) /* 0x3c5f6e13 */ +var _qa61 = float32(0.011984500103) /* 0x3c445aa3 */ +/* + * Coefficients for approximation to erfc in [1.25,1/0.35] + */ +var _ra01 = float32(-Float64FromFloat64(0.0098649440333)) /* 0xbc21a093 */ +var _ra11 = float32(-Float64FromFloat64(0.6938585639)) /* 0xbf31a0b7 */ +var _ra21 = float32(-Float64FromFloat64(10.558626175)) /* 0xc128f022 */ +var _ra31 = float32(-Float64FromFloat64(62.375331879)) /* 0xc2798057 */ +var _ra41 = float32(-Float64FromFloat64(162.39666748)) /* 0xc322658c */ +var _ra51 = float32(-Float64FromFloat64(184.60508728)) /* 0xc3389ae7 */ +var _ra61 = float32(-Float64FromFloat64(81.287437439)) /* 0xc2a2932b */ +var _ra71 = float32(-Float64FromFloat64(9.8143291473)) /* 0xc11d077e */ +var _sa11 = float32(19.65127182) /* 0x419d35ce */ +var _sa21 = float32(137.65776062) /* 0x4309a863 */ +var _sa31 = float32(434.56588745) /* 0x43d9486f */ +var _sa41 = float32(645.38726807) /* 0x442158c9 */ +var _sa51 = float32(429.00814819) /* 0x43d6810b */ +var _sa61 = float32(108.63500214) /* 0x42d9451f */ +var _sa71 = float32(6.5702495575) /* 0x40d23f7c */ +var _sa81 = float32(-Float64FromFloat64(0.060424413532)) /* 0xbd777f97 */ +/* + * Coefficients for approximation to erfc in [1/.35,28] + */ +var _rb01 = float32(-Float64FromFloat64(0.009864943102)) /* 0xbc21a092 */ +var _rb11 = float32(-Float64FromFloat64(0.79928326607)) /* 0xbf4c9dd4 */ +var _rb21 = float32(-Float64FromFloat64(17.757955551)) /* 0xc18e104b */ +var _rb31 = float32(-Float64FromFloat64(160.63638306)) /* 0xc320a2ea */ +var _rb41 = float32(-Float64FromFloat64(637.56646729)) /* 0xc41f6441 */ +var _rb51 = float32(-Float64FromFloat64(1025.0950928)) /* 0xc480230b */ +var _rb61 = float32(-Float64FromFloat64(483.51919556)) /* 0xc3f1c275 */ +var _sb11 = float32(30.338060379) /* 0x41f2b459 */ +var _sb21 = float32(325.79251099) /* 0x43a2e571 */ +var _sb31 = float32(1536.7296143) /* 0x44c01759 */ +var _sb41 = float32(3199.8581543) /* 0x4547fdbb */ +var _sb51 = float32(2553.050293) /* 0x451f90ce */ +var _sb61 = float32(474.52853394) /* 0x43ed43a7 */ +var _sb71 = float32(-Float64FromFloat64(22.440952301)) /* 0xc1b38712 */ + +func _erfc11(tls *TLS, x float32) (r float32) { + var P, Q, s Tfloat_t + _, _, _ = P, Q, s + s = Xfabsf(tls, x) - Float32FromInt32(1) + P = _pa01 + float32(s*(_pa11+float32(s*(_pa21+float32(s*(_pa31+float32(s*(_pa41+float32(s*(_pa51+float32(s*_pa61))))))))))) + Q = Float32FromInt32(1) + Tfloat_t(s*(_qa11+float32(s*(_qa21+float32(s*(_qa31+float32(s*(_qa41+float32(s*(_qa51+float32(s*_qa61))))))))))) + return Float32FromInt32(1) - _erx1 - P/Q +} + +func _erfc21(tls *TLS, ix Tuint32_t, x float32) (r float32) { + var R, S, s Tfloat_t + var z float32 + var v1 Tuint32_t + _, _, _, _, _ = R, S, s, z, v1 + if ix < uint32(0x3fa00000) { /* |x| < 1.25 */ + return _erfc11(tls, x) + } + x = Xfabsf(tls, x) + s = Float32FromInt32(1) / float32(x*x) + if ix < uint32(0x4036db6d) { /* |x| < 1/0.35 */ + R = _ra01 + float32(s*(_ra11+float32(s*(_ra21+float32(s*(_ra31+float32(s*(_ra41+float32(s*(_ra51+float32(s*(_ra61+float32(s*_ra71))))))))))))) + S = Float32FromFloat32(1) + float32(s*(_sa11+float32(s*(_sa21+float32(s*(_sa31+float32(s*(_sa41+float32(s*(_sa51+float32(s*(_sa61+float32(s*(_sa71+float32(s*_sa81))))))))))))))) + } else { /* |x| >= 1/0.35 */ + R = _rb01 + float32(s*(_rb11+float32(s*(_rb21+float32(s*(_rb31+float32(s*(_rb41+float32(s*(_rb51+float32(s*_rb61))))))))))) + S = Float32FromFloat32(1) + float32(s*(_sb11+float32(s*(_sb21+float32(s*(_sb31+float32(s*(_sb41+float32(s*(_sb51+float32(s*(_sb61+float32(s*_sb71))))))))))))) + } + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + v1 = ix & uint32(0xffffe000) + z = *(*float32)(unsafe.Pointer(&v1)) + return float32(Xexpf(tls, float32(-z*z)-Float32FromFloat32(0.5625))*Xexpf(tls, float32((z-x)*(z+x))+R/S)) / x +} + +func Xerff(tls *TLS, x float32) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var ix Tuint32_t + var r, s, y, z, v1 float32 + var sign int32 + _, _, _, _, _, _, _ = ix, r, s, sign, y, z, v1 + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x7f800000) { + /* erf(nan)=nan, erf(+-inf)=+-1 */ + return float32(int32(1)-int32(2)*sign) + Float32FromInt32(1)/x + } + if ix < uint32(0x3f580000) { /* |x| < 0.84375 */ + if ix < uint32(0x31800000) { /* |x| < 2**-28 */ + /*avoid underflow */ + return float32(Float32FromFloat32(0.125) * (float32(Float32FromInt32(8)*x) + float32(_efx81*x))) + } + z = float32(x * x) + r = _pp01 + float32(z*(_pp11+float32(z*(_pp21+float32(z*(_pp31+float32(z*_pp41))))))) + s = Float32FromInt32(1) + float32(z*(_qq11+float32(z*(_qq21+float32(z*(_qq31+float32(z*(_qq41+float32(z*_qq51))))))))) + y = r / s + return x + float32(x*y) + } + if ix < uint32(0x40c00000) { /* |x| < 6 */ + y = Float32FromInt32(1) - _erfc21(tls, ix, x) + } else { + y = Float32FromInt32(1) - Float32FromFloat32(7.52316384526264e-37) + } + if sign != 0 { + v1 = -y + } else { + v1 = y + } + return v1 +} + +func Xerfcf(tls *TLS, x float32) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var ix Tuint32_t + var r, s, y, z, v1 float32 + var sign int32 + _, _, _, _, _, _, _ = ix, r, s, sign, y, z, v1 + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x7f800000) { + /* erfc(nan)=nan, erfc(+-inf)=0,2 */ + return float32(int32(2)*sign) + Float32FromInt32(1)/x + } + if ix < uint32(0x3f580000) { /* |x| < 0.84375 */ + if ix < uint32(0x23800000) { /* |x| < 2**-56 */ + return Float32FromFloat32(1) - x + } + z = float32(x * x) + r = _pp01 + float32(z*(_pp11+float32(z*(_pp21+float32(z*(_pp31+float32(z*_pp41))))))) + s = Float32FromFloat32(1) + float32(z*(_qq11+float32(z*(_qq21+float32(z*(_qq31+float32(z*(_qq41+float32(z*_qq51))))))))) + y = r / s + if sign != 0 || ix < uint32(0x3e800000) { /* x < 1/4 */ + return Float32FromFloat32(1) - (x + float32(x*y)) + } + return Float32FromFloat32(0.5) - (x - Float32FromFloat32(0.5) + float32(x*y)) + } + if ix < uint32(0x41e00000) { /* |x| < 28 */ + if sign != 0 { + v1 = Float32FromInt32(2) - _erfc21(tls, ix, x) + } else { + v1 = _erfc21(tls, ix, x) + } + return v1 + } + if sign != 0 { + v1 = Float32FromInt32(2) - Float32FromFloat32(7.52316384526264e-37) + } else { + v1 = float32(Float32FromFloat32(7.52316384526264e-37) * Float32FromFloat32(7.52316384526264e-37)) + } + return v1 +} + +func Xerfl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xerf(tls, x) +} + +func Xerfcl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xerfc(tls, x) +} + +const EXP2_POLY_ORDER = 5 +const EXP_POLY_ORDER = 5 +const EXP_TABLE_BITS = 7 +const EXP_USE_TOINT_NARROW = 0 +const N = 128 + +// C documentation +// +// /* Handle cases that may overflow or underflow when computing the result that +// is scale*(1+TMP) without intermediate rounding. The bit representation of +// scale is in SBITS, however it has a computed exponent that may have +// overflown into the sign bit so that needs to be adjusted before using it as +// a double. (int32_t)KI is the k used in the argument reduction and exponent +// adjustment of scale, positive k here means the result may overflow and +// negative k means the result may underflow. */ +func _specialcase(tls *TLS, tmp Tdouble_t, sbits Tuint64_t, ki Tuint64_t) (r float64) { + var hi, lo, scale, y3 Tdouble_t + var y, y1, y2, v1 float64 + _, _, _, _, _, _, _, _ = hi, lo, scale, y, y1, y2, y3, v1 + if ki&uint64(0x80000000) == uint64(0) { + /* k > 0, the exponent of scale might have overflowed by <= 460. */ + sbits = uint64(sbits - Uint64FromUint64(1009)<> int32(52)) +} + +func Xexp(tls *TLS, x1 float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x1=%v, (%v:)", tls, x1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var abstop Tuint32_t + var idx, ki, sbits, top, v5 Tuint64_t + var kd, r, r2, scale, tail, tmp, z Tdouble_t + var y, v1 float64 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = abstop, idx, kd, ki, r, r2, sbits, scale, tail, tmp, top, y, z, v1, v5 + abstop = _top12(tls, x1) & uint32(0x7ff) + if abstop-_top12(tls, float64(5.551115123125783e-17)) >= _top12(tls, float64(512))-_top12(tls, float64(5.551115123125783e-17)) { + if abstop-_top12(tls, float64(5.551115123125783e-17)) >= uint32(0x80000000) { + /* Avoid spurious underflow for tiny x. */ + /* Note: 0 is common input. */ + return float64(1) + x1 + } + if abstop >= _top12(tls, float64(1024)) { + v1 = float64(-X__builtin_inff(tls)) + if *(*Tuint64_t)(unsafe.Pointer(&x1)) == *(*Tuint64_t)(unsafe.Pointer(&v1)) { + return float64(0) + } + if abstop >= _top12(tls, float64(X__builtin_inff(tls))) { + return float64(1) + x1 + } + if *(*Tuint64_t)(unsafe.Pointer(&x1))>>int32(63) != 0 { + return X__math_uflow(tls, uint32(0)) + } else { + return X__math_oflow(tls, uint32(0)) + } + } + /* Large x is special cased below. */ + abstop = uint32(0) + } + /* exp(x) = 2^(k/N) * exp(r), with exp(r) in [2^(-1/2N),2^(1/2N)]. */ + /* x = ln2/N*k + r, with int k and r in [-ln2/2N, ln2/2N]. */ + z = Tdouble_t(X__exp_data.Finvln2N * x1) + /* z - kd is in [-1, 1] in non-nearest rounding modes. */ + y = z + X__exp_data.Fshift + v1 = y + goto _3 +_3: + kd = v1 + v1 = kd + ki = *(*Tuint64_t)(unsafe.Pointer(&v1)) + kd = kd - X__exp_data.Fshift + r = x1 + float64(kd*X__exp_data.Fnegln2hiN) + float64(kd*X__exp_data.Fnegln2loN) + /* 2^(k/N) ~= scale * (1 + tail). */ + idx = uint64(2) * (ki % Uint64FromInt32(Int32FromInt32(1)< 2^-200 and scale > 2^-739, so there + is no spurious underflow here even without fma. */ + y = scale + Tdouble_t(scale*tmp) + v1 = y + goto _7 +_7: + return v1 +} + +const HUGE = 0 + +func Xexp10(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var y float64 + var _ /* n at bp+0 */ float64 + var _ /* u at bp+8 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _ = y + y = Xmodf(tls, x, bp) + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp + 8)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp + 8)) = **(**float64)(__ccgo_up(bp)) + /* fabs(n) < 16 without raising invalid on nan */ + if *(*Tuint64_t)(unsafe.Pointer(bp + 8))>>int32(52)&uint64(0x7ff) < Uint64FromInt32(Int32FromInt32(0x3ff)+Int32FromInt32(4)) { + if !(y != 0) { + return _p10[int32(**(**float64)(__ccgo_up(bp)))+int32(15)] + } + y = Xexp2(tls, float64(float64(3.321928094887362)*y)) + return float64(y * _p10[int32(**(**float64)(__ccgo_up(bp)))+int32(15)]) + } + return Xpow(tls, float64(10), x) +} + +var _p10 = [31]float64{ + 0: float64(1e-15), + 1: float64(1e-14), + 2: float64(1e-13), + 3: float64(1e-12), + 4: float64(1e-11), + 5: float64(1e-10), + 6: float64(1e-09), + 7: float64(1e-08), + 8: float64(1e-07), + 9: float64(1e-06), + 10: float64(1e-05), + 11: float64(0.0001), + 12: float64(0.001), + 13: float64(0.01), + 14: float64(0.1), + 15: Float64FromInt32(1), + 16: float64(10), + 17: float64(100), + 18: float64(1000), + 19: float64(10000), + 20: float64(100000), + 21: float64(1e+06), + 22: float64(1e+07), + 23: float64(1e+08), + 24: float64(1e+09), + 25: float64(1e+10), + 26: float64(1e+11), + 27: float64(1e+12), + 28: float64(1e+13), + 29: float64(1e+14), + 30: float64(1e+15), +} + +func Xpow10(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xexp10(tls, x) +} + +func Xexp10f(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var y float32 + var _ /* n at bp+0 */ float32 + var _ /* u at bp+4 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _ = y + y = Xmodff(tls, x, bp) + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp + 4)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp + 4)) = **(**float32)(__ccgo_up(bp)) + /* fabsf(n) < 8 without raising invalid on nan */ + if *(*Tuint32_t)(unsafe.Pointer(bp + 4))>>int32(23)&uint32(0xff) < Uint32FromInt32(Int32FromInt32(0x7f)+Int32FromInt32(3)) { + if !(y != 0) { + return _p101[int32(**(**float32)(__ccgo_up(bp)))+int32(7)] + } + y = Xexp2f(tls, float32(Float32FromFloat32(3.321928094887362)*y)) + return float32(y * _p101[int32(**(**float32)(__ccgo_up(bp)))+int32(7)]) + } + return float32(Xexp2(tls, float64(float64(3.321928094887362)*float64(x)))) +} + +var _p101 = [15]float32{ + 0: Float32FromFloat32(1e-07), + 1: Float32FromFloat32(1e-06), + 2: Float32FromFloat32(1e-05), + 3: Float32FromFloat32(0.0001), + 4: Float32FromFloat32(0.001), + 5: Float32FromFloat32(0.01), + 6: Float32FromFloat32(0.1), + 7: Float32FromInt32(1), + 8: float32(10), + 9: float32(100), + 10: float32(1000), + 11: float32(10000), + 12: float32(100000), + 13: float32(1e+06), + 14: float32(1e+07), +} + +func Xpow10f(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xexp10f(tls, x) +} + +func Xexp10l(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xexp10(tls, x) +} + +func Xpow10l(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xexp10l(tls, x) +} + +// C documentation +// +// /* Handle cases that may overflow or underflow when computing the result that +// is scale*(1+TMP) without intermediate rounding. The bit representation of +// scale is in SBITS, however it has a computed exponent that may have +// overflown into the sign bit so that needs to be adjusted before using it as +// a double. (int32_t)KI is the k used in the argument reduction and exponent +// adjustment of scale, positive k here means the result may overflow and +// negative k means the result may underflow. */ +func _specialcase1(tls *TLS, tmp Tdouble_t, sbits Tuint64_t, ki Tuint64_t) (r float64) { + var hi, lo, scale, y3 Tdouble_t + var y, y1, y2, v1 float64 + _, _, _, _, _, _, _, _ = hi, lo, scale, y, y1, y2, y3, v1 + if ki&uint64(0x80000000) == uint64(0) { + /* k > 0, the exponent of scale might have overflowed by 1. */ + sbits = uint64(sbits - Uint64FromUint64(1)<> int32(52)) +} + +func Xexp2(tls *TLS, x1 float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x1=%v, (%v:)", tls, x1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var abstop Tuint32_t + var idx, ki, sbits, top, v7 Tuint64_t + var kd, r, r2, scale, tail, tmp Tdouble_t + var y, v1 float64 + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = abstop, idx, kd, ki, r, r2, sbits, scale, tail, tmp, top, y, v1, v7 + abstop = _top121(tls, x1) & uint32(0x7ff) + if abstop-_top121(tls, float64(5.551115123125783e-17)) >= _top121(tls, float64(512))-_top121(tls, float64(5.551115123125783e-17)) { + if abstop-_top121(tls, float64(5.551115123125783e-17)) >= uint32(0x80000000) { + /* Avoid spurious underflow for tiny x. */ + /* Note: 0 is common input. */ + return float64(1) + x1 + } + if abstop >= _top121(tls, float64(1024)) { + v1 = float64(-X__builtin_inff(tls)) + if *(*Tuint64_t)(unsafe.Pointer(&x1)) == *(*Tuint64_t)(unsafe.Pointer(&v1)) { + return float64(0) + } + if abstop >= _top121(tls, float64(X__builtin_inff(tls))) { + return float64(1) + x1 + } + if !(*(*Tuint64_t)(unsafe.Pointer(&x1))>>Int32FromInt32(63) != 0) { + return X__math_oflow(tls, uint32(0)) + } else { + v1 = -Float64FromFloat64(1075) + if *(*Tuint64_t)(unsafe.Pointer(&x1)) >= *(*Tuint64_t)(unsafe.Pointer(&v1)) { + return X__math_uflow(tls, uint32(0)) + } + } + } + v1 = float64(928) + if uint64(2)**(*Tuint64_t)(unsafe.Pointer(&x1)) > uint64(2)**(*Tuint64_t)(unsafe.Pointer(&v1)) { + /* Large x is special cased below. */ + abstop = uint32(0) + } + } + /* exp2(x) = 2^(k/N) * 2^r, with 2^r in [2^(-1/2N),2^(1/2N)]. */ + /* x = k/N + r, with int k and r in [-1/2N, 1/2N]. */ + y = x1 + X__exp_data.Fexp2_shift + v1 = y + goto _5 +_5: + kd = v1 + v1 = kd + ki = *(*Tuint64_t)(unsafe.Pointer(&v1)) /* k. */ + kd = kd - X__exp_data.Fexp2_shift /* k/N for int k. */ + r = x1 - kd + /* 2^(k/N) ~= scale * (1 + tail). */ + idx = uint64(2) * (ki % Uint64FromInt32(Int32FromInt32(1)< 2^-65 and scale > 2^-928, so there + is no spurious underflow here even without fma. */ + y = scale + Tdouble_t(scale*tmp) + v1 = y + goto _9 +_9: + return v1 +} + +const EXP2F_POLY_ORDER = 3 +const EXP2F_TABLE_BITS = 5 +const N1 = 32 + +/* +EXP2F_TABLE_BITS = 5 +EXP2F_POLY_ORDER = 3 + +ULP error: 0.502 (nearest rounding.) +Relative error: 1.69 * 2^-34 in [-1/64, 1/64] (before rounding.) +Wrong count: 168353 (all nearest rounding wrong results with fma.) +Non-nearest ULP error: 1 (rounded ULP error) +*/ + +func _top122(tls *TLS, x float32) (r Tuint32_t) { + return *(*Tuint32_t)(unsafe.Pointer(&x)) >> int32(20) +} + +func Xexp2f(tls *TLS, x2 float32) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x2=%v, (%v:)", tls, x2, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var abstop Tuint32_t + var kd, r, r2, s, xd, y2, z Tdouble_t + var ki, t Tuint64_t + var y, v1 float32 + var y1, v2 float64 + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = abstop, kd, ki, r, r2, s, t, xd, y, y1, y2, z, v1, v2 + xd = float64(x2) + abstop = _top122(tls, x2) & uint32(0x7ff) + if abstop >= _top122(tls, Float32FromFloat32(128)) { + /* |x| >= 128 or x is nan. */ + v1 = -X__builtin_inff(tls) + if *(*Tuint32_t)(unsafe.Pointer(&x2)) == *(*Tuint32_t)(unsafe.Pointer(&v1)) { + return Float32FromFloat32(0) + } + if abstop >= _top122(tls, X__builtin_inff(tls)) { + return x2 + x2 + } + if x2 > Float32FromFloat32(0) { + return X__math_oflowf(tls, uint32(0)) + } + if x2 <= -Float32FromFloat32(150) { + return X__math_uflowf(tls, uint32(0)) + } + } + /* x = k/N + r with r in [-1/(2N), 1/(2N)] and int k. */ + y1 = xd + X__exp2f_data.Fshift_scaled + v2 = y1 + goto _3 +_3: + kd = v2 + v2 = kd + ki = *(*Tuint64_t)(unsafe.Pointer(&v2)) + kd = kd - X__exp2f_data.Fshift_scaled /* k/N for int k. */ + r = xd - kd + /* exp2(x) = 2^(k/N) * 2^r ~= s * (C0*r^3 + C1*r^2 + C2*r + 1) */ + t = **(**Tuint64_t)(__ccgo_up(uintptr(unsafe.Pointer(&X__exp2f_data)) + uintptr(ki%Uint64FromInt32(Int32FromInt32(1)< %v", r) }() + } + return Xexp2(tls, x) +} + +const N2 = 128 + +type Texp_data = struct { + Finvln2N float64 + Fshift float64 + Fnegln2hiN float64 + Fnegln2loN float64 + Fpoly [4]float64 + Fexp2_shift float64 + Fexp2_poly [5]float64 + Ftab [256]Tuint64_t +} + +const N3 = 32 + +/* +EXP2F_TABLE_BITS = 5 +EXP2F_POLY_ORDER = 3 + +ULP error: 0.502 (nearest rounding.) +Relative error: 1.69 * 2^-34 in [-ln2/64, ln2/64] (before rounding.) +Wrong count: 170635 (all nearest rounding wrong results with fma.) +Non-nearest ULP error: 1 (rounded ULP error) +*/ + +func _top123(tls *TLS, x float32) (r Tuint32_t) { + return *(*Tuint32_t)(unsafe.Pointer(&x)) >> int32(20) +} + +func Xexpf(tls *TLS, x2 float32) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x2=%v, (%v:)", tls, x2, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var abstop Tuint32_t + var kd, r, r2, s, xd, y2, z Tdouble_t + var ki, t Tuint64_t + var y, v1 float32 + var y1, v2 float64 + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = abstop, kd, ki, r, r2, s, t, xd, y, y1, y2, z, v1, v2 + xd = float64(x2) + abstop = _top123(tls, x2) & uint32(0x7ff) + if abstop >= _top123(tls, Float32FromFloat32(88)) { + /* |x| >= 88 or x is nan. */ + v1 = -X__builtin_inff(tls) + if *(*Tuint32_t)(unsafe.Pointer(&x2)) == *(*Tuint32_t)(unsafe.Pointer(&v1)) { + return Float32FromFloat32(0) + } + if abstop >= _top123(tls, X__builtin_inff(tls)) { + return x2 + x2 + } + if x2 > Float32FromFloat32(88.72283172607422) { /* x > log(0x1p128) ~= 88.72 */ + return X__math_oflowf(tls, uint32(0)) + } + if x2 < -Float32FromFloat32(103.97207641601562) { /* x < log(0x1p-150) ~= -103.97 */ + return X__math_uflowf(tls, uint32(0)) + } + } + /* x*N/Ln2 = k + r with r in [-1/2, 1/2] and int k. */ + z = Tdouble_t(X__exp2f_data.Finvln2_scaled * xd) + /* Round and convert z to int, the result is in [-150*N, 128*N] and + ideally ties-to-even rule is used, otherwise the magnitude of r + can be bigger which gives larger approximation error. */ + y1 = z + X__exp2f_data.Fshift + v2 = y1 + goto _3 +_3: + kd = v2 + v2 = kd + ki = *(*Tuint64_t)(unsafe.Pointer(&v2)) + kd = kd - X__exp2f_data.Fshift + r = z - kd + /* exp(x) = 2^(k/N) * 2^(r/N) ~= s * (C0*r^3 + C1*r^2 + C2*r + 1) */ + t = **(**Tuint64_t)(__ccgo_up(uintptr(unsafe.Pointer(&X__exp2f_data)) + uintptr(ki%Uint64FromInt32(Int32FromInt32(1)< %v", r) }() + } + return Xexp(tls, x) +} + +var _o_threshold = float64(709.782712893384) /* 0x40862E42, 0xFEFA39EF */ +var _ln2_hi = float64(0.6931471803691238) /* 0x3fe62e42, 0xfee00000 */ +var _ln2_lo = float64(1.9082149292705877e-10) /* 0x3dea39ef, 0x35793c76 */ +var _invln2 = float64(1.4426950408889634) /* 0x3ff71547, 0x652b82fe */ +/* Scaled Q's: Qn_here = 2**n * Qn_above, for R(2*z) where z = hxs = x*x/2: */ +var _Q1 = -Float64FromFloat64(0.03333333333333313) /* BFA11111 111110F4 */ +var _Q2 = float64(0.0015873015872548146) /* 3F5A01A0 19FE5585 */ +var _Q3 = -Float64FromFloat64(7.93650757867488e-05) /* BF14CE19 9EAADBB7 */ +var _Q4 = float64(4.008217827329362e-06) /* 3ED0CFCA 86E65239 */ +var _Q5 = -Float64FromFloat64(2.0109921818362437e-07) /* BE8AFDB7 6E09C32D */ + +func Xexpm1(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var c, e, hfx, hi, hxs, lo, r1, t, twopk, y3 Tdouble_t + var hx Tuint32_t + var k, sign int32 + var y float32 + var y1, y2, v3 float64 + var v1 uint64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + var _ /* u at bp+8 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = c, e, hfx, hi, hx, hxs, k, lo, r1, sign, t, twopk, y, y1, y2, y3, v1, v3 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp + 8)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp + 8)) = x3 + hx = uint32(*(*Tuint64_t)(unsafe.Pointer(bp + 8)) >> int32(32) & uint64(0x7fffffff)) + sign = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp + 8)) >> int32(63)) + /* filter out huge and non-finite argument */ + if hx >= uint32(0x4043687A) { /* if |x|>=56*ln2 */ + *(*float64)(unsafe.Pointer(bp)) = x3 + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 + _2: + if BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)< _o_threshold { + x3 = x3 * float64(8.98846567431158e+307) + return x3 + } + } + /* argument reduction */ + if hx > uint32(0x3fd62e42) { /* if |x| > 0.5 ln2 */ + if hx < uint32(0x3FF0A2B2) { /* and |x| < 1.5 ln2 */ + if !(sign != 0) { + hi = x3 - _ln2_hi + lo = _ln2_lo + k = int32(1) + } else { + hi = x3 + _ln2_hi + lo = -_ln2_lo + k = -int32(1) + } + } else { + if sign != 0 { + v3 = -Float64FromFloat64(0.5) + } else { + v3 = float64(0.5) + } + k = int32(float64(_invln2*x3) + v3) + t = float64(k) + hi = x3 - float64(t*_ln2_hi) /* t*ln2_hi is exact here */ + lo = Tdouble_t(t * _ln2_lo) + } + x3 = hi - lo + c = hi - x3 - lo + } else { + if hx < uint32(0x3c900000) { /* |x| < 2**-54, return x */ + if hx < uint32(0x00100000) { + if uint64(4) == uint64(4) { + y = float32(x3) + } else { + if uint64(4) == uint64(8) { + y1 = float64(float32(x3)) + } else { + y2 = float64(float32(x3)) + } + } + } + return x3 + } else { + k = 0 + } + } + /* x is now in primary range */ + hfx = Tdouble_t(float64(0.5) * x3) + hxs = Tdouble_t(x3 * hfx) + r1 = float64(1) + float64(hxs*(_Q1+float64(hxs*(_Q2+float64(hxs*(_Q3+float64(hxs*(_Q4+float64(hxs*_Q5))))))))) + t = float64(3) - float64(r1*hfx) + e = Tdouble_t(hxs * ((r1 - t) / (Float64FromFloat64(6) - float64(x3*t)))) + if k == 0 { /* c is 0 */ + return x3 - (float64(x3*e) - hxs) + } + e = float64(x3*(e-c)) - c + e = e - hxs + /* exp(x) ~ 2^k (Xreduced - e + 1) */ + if k == -int32(1) { + return float64(float64(0.5)*(x3-e)) - float64(0.5) + } + if k == int32(1) { + if x3 < -Float64FromFloat64(0.25) { + return float64(-Float64FromFloat64(2) * (e - (x3 + Float64FromFloat64(0.5)))) + } + return float64(1) + float64(float64(2)*(x3-e)) + } + *(*Tuint64_t)(unsafe.Pointer(bp + 8)) = Uint64FromInt32(Int32FromInt32(0x3ff)+k) << int32(52) /* 2^k */ + twopk = *(*float64)(unsafe.Pointer(bp + 8)) + if k < 0 || k > int32(56) { /* suffice to return exp(x)-1 */ + y3 = x3 - e + float64(1) + if k == int32(1024) { + y3 = Tdouble_t(Tdouble_t(y3*float64(2)) * float64(8.98846567431158e+307)) + } else { + y3 = Tdouble_t(y3 * twopk) + } + return y3 - float64(1) + } + *(*Tuint64_t)(unsafe.Pointer(bp + 8)) = Uint64FromInt32(Int32FromInt32(0x3ff)-k) << int32(52) /* 2^-k */ + if k < int32(20) { + y3 = Tdouble_t((x3 - e + (Float64FromInt32(1) - *(*float64)(unsafe.Pointer(bp + 8)))) * twopk) + } else { + y3 = Tdouble_t((x3 - (e + *(*float64)(unsafe.Pointer(bp + 8))) + Float64FromInt32(1)) * twopk) + } + return y3 +} + +var _ln2_hi1 = float32(0.69313812256) /* 0x3f317180 */ +var _ln2_lo1 = float32(9.0580006145e-06) /* 0x3717f7d1 */ +var _invln21 = float32(1.4426950216) /* 0x3fb8aa3b */ +/* + * Domain [-0.34568, 0.34568], range ~[-6.694e-10, 6.696e-10]: + * |6 / x * (1 + 2 * (1 / (exp(x) - 1) - 1 / x)) - q(x)| < 2**-30.04 + * Scaled coefficients: Qn_here = 2**n * Qn_for_q (see s_expm1.c): + */ +var _Q11 = float32(-Float64FromFloat64(0.033333212137)) /* -0x888868.0p-28 */ +var _Q21 = float32(0.0015807170421) /* 0xcf3010.0p-33 */ + +func Xexpm1f(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var c, e, hfx, hi, hxs, lo, r1, t, twopk, y3 Tfloat_t + var hx Tuint32_t + var k, sign int32 + var y, v1 float32 + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = c, e, hfx, hi, hx, hxs, k, lo, r1, sign, t, twopk, y, y1, y2, y3, v1 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + hx = *(*Tuint32_t)(unsafe.Pointer(bp)) & uint32(0x7fffffff) + sign = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(31)) + /* filter out huge and non-finite argument */ + if hx >= uint32(0x4195b844) { /* if |x|>=27*ln2 */ + if hx > uint32(0x7f800000) { /* NaN */ + return x3 + } + if sign != 0 { + return float32(-Int32FromInt32(1)) + } + if hx > uint32(0x42b17217) { /* x > log(FLT_MAX) */ + x3 = x3 * Float32FromFloat32(1.7014118346046923e+38) + return x3 + } + } + /* argument reduction */ + if hx > uint32(0x3eb17218) { /* if |x| > 0.5 ln2 */ + if hx < uint32(0x3F851592) { /* and |x| < 1.5 ln2 */ + if !(sign != 0) { + hi = x3 - _ln2_hi1 + lo = _ln2_lo1 + k = int32(1) + } else { + hi = x3 + _ln2_hi1 + lo = -_ln2_lo1 + k = -int32(1) + } + } else { + if sign != 0 { + v1 = -Float32FromFloat32(0.5) + } else { + v1 = Float32FromFloat32(0.5) + } + k = int32(float32(_invln21*x3) + v1) + t = float32(k) + hi = x3 - float32(t*_ln2_hi1) /* t*ln2_hi is exact here */ + lo = Tfloat_t(t * _ln2_lo1) + } + x3 = hi - lo + c = hi - x3 - lo + } else { + if hx < uint32(0x33000000) { /* when |x|<2**-25, return x */ + if hx < uint32(0x00800000) { + if uint64(4) == uint64(4) { + y = float32(x3 * x3) + } else { + if uint64(4) == uint64(8) { + y1 = float64(x3 * x3) + } else { + y2 = float64(x3 * x3) + } + } + } + return x3 + } else { + k = 0 + } + } + /* x is now in primary range */ + hfx = Tfloat_t(Float32FromFloat32(0.5) * x3) + hxs = Tfloat_t(x3 * hfx) + r1 = Float32FromFloat32(1) + float32(hxs*(_Q11+float32(hxs*_Q21))) + t = Float32FromFloat32(3) - float32(r1*hfx) + e = Tfloat_t(hxs * ((r1 - t) / (Float32FromFloat32(6) - float32(x3*t)))) + if k == 0 { /* c is 0 */ + return x3 - (float32(x3*e) - hxs) + } + e = float32(x3*(e-c)) - c + e = e - hxs + /* exp(x) ~ 2^k (Xreduced - e + 1) */ + if k == -int32(1) { + return float32(Float32FromFloat32(0.5)*(x3-e)) - Float32FromFloat32(0.5) + } + if k == int32(1) { + if x3 < -Float32FromFloat32(0.25) { + return float32(-Float32FromFloat32(2) * (e - (x3 + Float32FromFloat32(0.5)))) + } + return Float32FromFloat32(1) + float32(Float32FromFloat32(2)*(x3-e)) + } + *(*Tuint32_t)(unsafe.Pointer(bp)) = Uint32FromInt32((int32(0x7f) + k) << int32(23)) /* 2^k */ + twopk = *(*float32)(unsafe.Pointer(bp)) + if k < 0 || k > int32(56) { /* suffice to return exp(x)-1 */ + y3 = x3 - e + Float32FromFloat32(1) + if k == int32(128) { + y3 = Tfloat_t(Tfloat_t(y3*Float32FromFloat32(2)) * Float32FromFloat32(1.7014118346046923e+38)) + } else { + y3 = Tfloat_t(y3 * twopk) + } + return y3 - Float32FromFloat32(1) + } + *(*Tuint32_t)(unsafe.Pointer(bp)) = Uint32FromInt32((int32(0x7f) - k) << int32(23)) /* 2^-k */ + if k < int32(23) { + y3 = Tfloat_t((x3 - e + (Float32FromInt32(1) - *(*float32)(unsafe.Pointer(bp)))) * twopk) + } else { + y3 = Tfloat_t((x3 - (e + *(*float32)(unsafe.Pointer(bp))) + Float32FromInt32(1)) * twopk) + } + return y3 +} + +func Xexpm1l(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xexpm1(tls, x) +} + +func Xfabs(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uintptr + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _ = v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + v1 = bp + *(*Tuint64_t)(unsafe.Pointer(v1)) = Tuint64_t(*(*Tuint64_t)(unsafe.Pointer(v1)) & (-Uint64FromUint64(1) / Uint64FromInt32(2))) + return *(*float64)(unsafe.Pointer(bp)) +} + +func Xfabsf(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + *(*Tuint32_t)(unsafe.Pointer(bp)) &= uint32(0x7fffffff) + return *(*float32)(unsafe.Pointer(bp)) +} + +func Xfabsl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfabs(tls, x) +} + +func Xfdim(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uint64 + var v5 float64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _, _ = v1, v5 + *(*float64)(unsafe.Pointer(bp)) = x + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + if BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)< y { + v5 = x - y + } else { + v5 = Float64FromInt32(0) + } + return v5 +} + +func Xfdimf(tls *TLS, x float32, y float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uint32 + var v5 float32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _, _ = v1, v5 + *(*float32)(unsafe.Pointer(bp)) = x + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + if BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return x + } + *(*float32)(unsafe.Pointer(bp)) = y + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _4 +_4: + if BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return y + } + if x > y { + v5 = x - y + } else { + v5 = Float32FromInt32(0) + } + return v5 +} + +func Xfdiml(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfdim(tls, x, y) +} + +func Xfinite(tls *TLS, x float64) (r int32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uint64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _ = v1 + *(*float64)(unsafe.Pointer(bp)) = x + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + return BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) < Uint64FromUint64(0x7ff)< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uint32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _ = v1 + *(*float32)(unsafe.Pointer(bp)) = x + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + return BoolInt32(v1&uint32(0x7fffffff) < uint32(0x7f800000)) +} + +const DBL_EPSILON7 = 2.220446049250313e-16 + +var _toint3 = Float64FromInt32(1) / Float64FromFloat64(2.220446049250313e-16) + +func Xfloor(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e, v1 int32 + var y float32 + var y1, y2 float64 + var y3 Tdouble_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _ = e, y, y1, y2, y3, v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + e = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + if e >= Int32FromInt32(0x3ff)+Int32FromInt32(52) || x3 == Float64FromInt32(0) { + return x3 + } + /* y = int(x) - x, where int(x) is an integer neighbor of x */ + if *(*Tuint64_t)(unsafe.Pointer(bp))>>int32(63) != 0 { + y3 = x3 - _toint3 + _toint3 - x3 + } else { + y3 = x3 + _toint3 - _toint3 - x3 + } + /* special case because of non-nearest rounding modes */ + if e <= Int32FromInt32(0x3ff)-Int32FromInt32(1) { + if uint64(8) == uint64(4) { + y = float32(y3) + } else { + if uint64(8) == uint64(8) { + y1 = y3 + } else { + y2 = y3 + } + } + if *(*Tuint64_t)(unsafe.Pointer(bp))>>int32(63) != 0 { + v1 = -int32(1) + } else { + v1 = 0 + } + return float64(v1) + } + if y3 > Float64FromInt32(0) { + return x3 + y3 - Float64FromInt32(1) + } + return x3 + y3 +} + +const DBL_EPSILON8 = 0 + +func Xfloorf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e int32 + var m Tuint32_t + var y float32 + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _ = e, m, y, y1, y2 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + e = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp))>>Int32FromInt32(23)&Uint32FromInt32(0xff)) - int32(0x7f) + if e >= int32(23) { + return x3 + } + if e >= 0 { + m = Uint32FromInt32(int32(0x007fffff) >> e) + if *(*Tuint32_t)(unsafe.Pointer(bp))&m == uint32(0) { + return x3 + } + if uint64(4) == uint64(4) { + y = x3 + Float32FromFloat32(1.329227995784916e+36) + } else { + if uint64(4) == uint64(8) { + y1 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } else { + y2 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } + } + if *(*Tuint32_t)(unsafe.Pointer(bp))>>int32(31) != 0 { + *(*Tuint32_t)(unsafe.Pointer(bp)) += m + } + *(*Tuint32_t)(unsafe.Pointer(bp)) &= ^m + } else { + if uint64(4) == uint64(4) { + y = x3 + Float32FromFloat32(1.329227995784916e+36) + } else { + if uint64(4) == uint64(8) { + y1 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } else { + y2 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } + } + if *(*Tuint32_t)(unsafe.Pointer(bp))>>int32(31) == uint32(0) { + *(*Tuint32_t)(unsafe.Pointer(bp)) = uint32(0) + } else { + if *(*Tuint32_t)(unsafe.Pointer(bp))< %v", r) }() + } + return Xfloor(tls, x) +} + +const DBL_MIN1 = 2.2250738585072014e-308 +const FLT_MIN1 = 1.1754943508222875e-38 +const ZEROINFNAN = 971 + +type Tnum = struct { + Fm Tuint64_t + Fe int32 + Fsign int32 +} + +func _normalize(tls *TLS, x float64) (r Tnum) { + var e, sign, v2 int32 + var ix Tuint64_t + var v1 float64 + _, _, _, _, _ = e, ix, sign, v1, v2 + ix = *(*Tuint64_t)(unsafe.Pointer(&x)) + e = Int32FromUint64(ix >> int32(52)) + sign = e & int32(0x800) + e = e & int32(0x7ff) + if !(e != 0) { + v1 = float64(x * float64(9.223372036854776e+18)) + ix = *(*Tuint64_t)(unsafe.Pointer(&v1)) + e = Int32FromUint64(ix >> int32(52) & uint64(0x7ff)) + if e != 0 { + v2 = e - int32(63) + } else { + v2 = int32(0x800) + } + e = v2 + } + ix = uint64(ix & (Uint64FromUint64(1)<> int32(32) + ylo = uint64(uint32(y)) + yhi = y >> int32(32) + t1 = xlo * ylo + t2 = xlo*yhi + xhi*ylo + t3 = xhi * yhi + **(**Tuint64_t)(__ccgo_up(lo)) = t1 + t2<>Int32FromInt32(32) + BoolUint64(t1 > **(**Tuint64_t)(__ccgo_up(lo))) +} + +func Xfma(tls *TLS, x1 float64, y float64, z float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x1=%v y=%v z=%v, (%v:)", tls, x1, y, z, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var c, r float64 + var d, e, nonzero, samesign, sign, v2 int32 + var fltmin float32 + var i Tint64_t + var nx, ny, nz Tnum + var t, zhi, zlo, v1 Tuint64_t + var tiny Tdouble_t + var _ /* rhi at bp+0 */ Tuint64_t + var _ /* rlo at bp+8 */ Tuint64_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = c, d, e, fltmin, i, nonzero, nx, ny, nz, r, samesign, sign, t, tiny, zhi, zlo, v1, v2 + nx = _normalize(tls, x1) + ny = _normalize(tls, y) + nz = _normalize(tls, z) + if nx.Fe >= Int32FromInt32(0x7ff)-Int32FromInt32(0x3ff)-Int32FromInt32(52)-Int32FromInt32(1) || ny.Fe >= Int32FromInt32(0x7ff)-Int32FromInt32(0x3ff)-Int32FromInt32(52)-Int32FromInt32(1) { + return float64(x1*y) + z + } + if nz.Fe >= Int32FromInt32(0x7ff)-Int32FromInt32(0x3ff)-Int32FromInt32(52)-Int32FromInt32(1) { + if nz.Fe > Int32FromInt32(0x7ff)-Int32FromInt32(0x3ff)-Int32FromInt32(52)-Int32FromInt32(1) { /* z==0 */ + return float64(x1*y) + z + } + return z + } + _mul(tls, bp, bp+8, nx.Fm, ny.Fm) + /* either top 20 or 21 bits of rhi and last 2 bits of rlo are 0 */ + /* align exponents */ + e = nx.Fe + ny.Fe + d = nz.Fe - e + /* shift bits z<<=kz, r>>=kr, so kz+kr == d, set e = e+kr (== ez-kz) */ + if d > 0 { + if d < int32(64) { + zlo = nz.Fm << d + zhi = nz.Fm >> (int32(64) - d) + } else { + zlo = uint64(0) + zhi = nz.Fm + e = nz.Fe - int32(64) + d = d - int32(64) + if d == 0 { + } else { + if d < int32(64) { + **(**Tuint64_t)(__ccgo_up(bp + 8)) = **(**Tuint64_t)(__ccgo_up(bp))<<(int32(64)-d) | **(**Tuint64_t)(__ccgo_up(bp + 8))>>d | BoolUint64(!!(**(**Tuint64_t)(__ccgo_up(bp + 8))<<(Int32FromInt32(64)-d) != 0)) + **(**Tuint64_t)(__ccgo_up(bp)) = **(**Tuint64_t)(__ccgo_up(bp)) >> d + } else { + **(**Tuint64_t)(__ccgo_up(bp + 8)) = uint64(1) + **(**Tuint64_t)(__ccgo_up(bp)) = uint64(0) + } + } + } + } else { + zhi = uint64(0) + d = -d + if d == 0 { + zlo = nz.Fm + } else { + if d < int32(64) { + zlo = nz.Fm>>d | BoolUint64(!!(nz.Fm<<(Int32FromInt32(64)-d) != 0)) + } else { + zlo = uint64(1) + } + } + } + /* add */ + sign = nx.Fsign ^ ny.Fsign + samesign = BoolInt32(!(sign^nz.Fsign != 0)) + nonzero = int32(1) + if samesign != 0 { + /* r += z */ + **(**Tuint64_t)(__ccgo_up(bp + 8)) = **(**Tuint64_t)(__ccgo_up(bp + 8)) + zlo + **(**Tuint64_t)(__ccgo_up(bp)) = **(**Tuint64_t)(__ccgo_up(bp)) + (zhi + BoolUint64(**(**Tuint64_t)(__ccgo_up(bp + 8)) < zlo)) + } else { + /* r -= z */ + t = **(**Tuint64_t)(__ccgo_up(bp + 8)) + **(**Tuint64_t)(__ccgo_up(bp + 8)) = **(**Tuint64_t)(__ccgo_up(bp + 8)) - zlo + **(**Tuint64_t)(__ccgo_up(bp)) = **(**Tuint64_t)(__ccgo_up(bp)) - zhi - BoolUint64(t < **(**Tuint64_t)(__ccgo_up(bp + 8))) + if **(**Tuint64_t)(__ccgo_up(bp))>>int32(63) != 0 { + **(**Tuint64_t)(__ccgo_up(bp + 8)) = -**(**Tuint64_t)(__ccgo_up(bp + 8)) + **(**Tuint64_t)(__ccgo_up(bp)) = -**(**Tuint64_t)(__ccgo_up(bp)) - BoolUint64(!!(**(**Tuint64_t)(__ccgo_up(bp + 8)) != 0)) + sign = BoolInt32(!(sign != 0)) + } + nonzero = BoolInt32(!!(**(**Tuint64_t)(__ccgo_up(bp)) != 0)) + } + /* set rhi to top 63bit of the result (last bit is sticky) */ + if nonzero != 0 { + e = e + int32(64) + v1 = **(**Tuint64_t)(__ccgo_up(bp)) + // __asm__( "bsr %1,%0 ; xor $63,%0" : "=r"(x) : "r"(x) ); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 121, __ccgo_ts+583) + v2 = Int32FromUint64(v1) + goto _3 + _3: + d = v2 - int32(1) + /* note: d > 0 */ + **(**Tuint64_t)(__ccgo_up(bp)) = **(**Tuint64_t)(__ccgo_up(bp))<>(int32(64)-d) | BoolUint64(!!(**(**Tuint64_t)(__ccgo_up(bp + 8))<>int32(1) | **(**Tuint64_t)(__ccgo_up(bp + 8))&uint64(1) + } else { + **(**Tuint64_t)(__ccgo_up(bp)) = **(**Tuint64_t)(__ccgo_up(bp + 8)) << d + } + } else { + /* exact +-0 */ + return float64(x1*y) + z + } + } + e = e - d + /* convert to double */ + i = Int64FromUint64(**(**Tuint64_t)(__ccgo_up(bp))) /* i is in [1<<62,(1<<63)-1] */ + if sign != 0 { + i = -i + } + r = float64(i) /* |r| is in [0x1p62,0x1p63] */ + if e < -Int32FromInt32(1022)-Int32FromInt32(62) { + /* result is subnormal before rounding */ + if e == -Int32FromInt32(1022)-Int32FromInt32(63) { + c = float64(9.223372036854776e+18) + if sign != 0 { + c = -c + } + if r == c { + /* min normal after rounding, underflow depends + on arch behaviour which can be imitated by + a double to float conversion */ + fltmin = float32(float64(Float64FromFloat64(1.0842021401737618e-19)*Float64FromFloat32(1.1754943508222875e-38)) * r) + return float64(Float64FromFloat64(2.2250738585072014e-308) / Float64FromFloat32(1.1754943508222875e-38) * float64(fltmin)) + } + /* one bit is lost when scaled, add another top bit to + only round once at conversion if it is inexact */ + if **(**Tuint64_t)(__ccgo_up(bp))<>int32(1)|**(**Tuint64_t)(__ccgo_up(bp))&uint64(1)) | Uint64FromUint64(1)<>d | BoolUint64(!!(**(**Tuint64_t)(__ccgo_up(bp))<<(Int32FromInt32(64)-d) != 0))) << d) + if sign != 0 { + i = -i + } + r = float64(i) + } + } + return Xscalbn(tls, r, e) +} + +const DBL_MIN2 = 0 +const FLT_MIN2 = 0 + +func Xfmal(tls *TLS, x float64, y float64, z float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v z=%v, (%v:)", tls, x, y, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfma(tls, x, y, z) +} + +func Xfmax(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1, v3, v5 uint64 + var v9 float64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _, _, _, _ = v1, v3, v5, v9 + *(*float64)(unsafe.Pointer(bp)) = x + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + if BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(63)) != Int32FromUint64(v3>>Int32FromInt32(63)) { + *(*float64)(unsafe.Pointer(bp)) = x + v5 = *(*uint64)(unsafe.Pointer(bp)) + goto _11 + _11: + if Int32FromUint64(v5>>Int32FromInt32(63)) != 0 { + v9 = y + } else { + v9 = x + } + return v9 + } + if x < y { + v9 = y + } else { + v9 = x + } + return v9 +} + +func Xfmaxf(tls *TLS, x float32, y float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1, v3, v5 uint32 + var v9 float32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _, _, _, _ = v1, v3, v5, v9 + *(*float32)(unsafe.Pointer(bp)) = x + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + if BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return y + } + *(*float32)(unsafe.Pointer(bp)) = y + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _4 +_4: + if BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return x + } + /* handle signed zeroes, see C99 Annex F.9.9.2 */ + *(*float32)(unsafe.Pointer(bp)) = x + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _6 +_6: + *(*float32)(unsafe.Pointer(bp)) = y + v3 = *(*uint32)(unsafe.Pointer(bp)) + goto _8 +_8: + if Int32FromUint32(v1>>Int32FromInt32(31)) != Int32FromUint32(v3>>Int32FromInt32(31)) { + *(*float32)(unsafe.Pointer(bp)) = x + v5 = *(*uint32)(unsafe.Pointer(bp)) + goto _11 + _11: + if Int32FromUint32(v5>>Int32FromInt32(31)) != 0 { + v9 = y + } else { + v9 = x + } + return v9 + } + if x < y { + v9 = y + } else { + v9 = x + } + return v9 +} + +func Xfmaxl(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfmax(tls, x, y) +} + +func Xfmin(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1, v3, v5 uint64 + var v9 float64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _, _, _, _ = v1, v3, v5, v9 + *(*float64)(unsafe.Pointer(bp)) = x + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + if BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(63)) != Int32FromUint64(v3>>Int32FromInt32(63)) { + *(*float64)(unsafe.Pointer(bp)) = x + v5 = *(*uint64)(unsafe.Pointer(bp)) + goto _11 + _11: + if Int32FromUint64(v5>>Int32FromInt32(63)) != 0 { + v9 = x + } else { + v9 = y + } + return v9 + } + if x < y { + v9 = x + } else { + v9 = y + } + return v9 +} + +func Xfminf(tls *TLS, x float32, y float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1, v3, v5 uint32 + var v9 float32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _, _, _, _ = v1, v3, v5, v9 + *(*float32)(unsafe.Pointer(bp)) = x + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + if BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return y + } + *(*float32)(unsafe.Pointer(bp)) = y + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _4 +_4: + if BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return x + } + /* handle signed zeros, see C99 Annex F.9.9.2 */ + *(*float32)(unsafe.Pointer(bp)) = x + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _6 +_6: + *(*float32)(unsafe.Pointer(bp)) = y + v3 = *(*uint32)(unsafe.Pointer(bp)) + goto _8 +_8: + if Int32FromUint32(v1>>Int32FromInt32(31)) != Int32FromUint32(v3>>Int32FromInt32(31)) { + *(*float32)(unsafe.Pointer(bp)) = x + v5 = *(*uint32)(unsafe.Pointer(bp)) + goto _11 + _11: + if Int32FromUint32(v5>>Int32FromInt32(31)) != 0 { + v9 = x + } else { + v9 = y + } + return v9 + } + if x < y { + v9 = x + } else { + v9 = y + } + return v9 +} + +func Xfminl(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfmin(tls, x, y) +} + +func Xfmod(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var ex, ey, sx int32 + var i, uxi Tuint64_t + var v1 uint64 + var v3 bool + var v6 uintptr + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + var _ /* ux at bp+8 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + var _ /* uy at bp+16 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _, _ = ex, ey, i, sx, uxi, v1, v3, v6 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp + 8)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp + 8)) = x + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp + 16)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp + 16)) = y + ex = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp + 8)) >> int32(52) & uint64(0x7ff)) + ey = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp + 16)) >> int32(52) & uint64(0x7ff)) + sx = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp + 8)) >> int32(63)) + /* in the followings uxi should be ux.i, but then gcc wrongly adds */ + /* float load/store to inner loops ruining performance and code size */ + uxi = *(*Tuint64_t)(unsafe.Pointer(bp + 8)) + if v3 = *(*Tuint64_t)(unsafe.Pointer(bp + 16))<>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>int32(63) == uint64(0)) { + break + } + goto _4 + _4: + ; + ex = ex - 1 + i = i << uint64(1) + } + uxi = uxi << Uint64FromInt32(-ex+int32(1)) + } else { + uxi = uint64(uxi & (-Uint64FromUint64(1) >> Int32FromInt32(12))) + uxi = uint64(uxi | Uint64FromUint64(1)<>int32(63) == uint64(0)) { + break + } + goto _5 + _5: + ; + ey = ey - 1 + i = i << uint64(1) + } + *(*Tuint64_t)(unsafe.Pointer(bp + 16)) <<= Uint64FromInt32(-ey + int32(1)) + } else { + v6 = bp + 16 + *(*Tuint64_t)(unsafe.Pointer(v6)) = Tuint64_t(*(*Tuint64_t)(unsafe.Pointer(v6)) & (-Uint64FromUint64(1) >> Int32FromInt32(12))) + v6 = bp + 16 + *(*Tuint64_t)(unsafe.Pointer(v6)) = Tuint64_t(*(*Tuint64_t)(unsafe.Pointer(v6)) | Uint64FromUint64(1)< ey) { + break + } + i = uxi - *(*Tuint64_t)(unsafe.Pointer(bp + 16)) + if i>>int32(63) == uint64(0) { + if i == uint64(0) { + return float64(Float64FromInt32(0) * x) + } + uxi = i + } + uxi = uxi << uint64(1) + goto _8 + _8: + ; + ex = ex - 1 + } + i = uxi - *(*Tuint64_t)(unsafe.Pointer(bp + 16)) + if i>>int32(63) == uint64(0) { + if i == uint64(0) { + return float64(Float64FromInt32(0) * x) + } + uxi = i + } + for { + if !(uxi>>int32(52) == uint64(0)) { + break + } + goto _9 + _9: + ; + uxi = uxi << uint64(1) + ex = ex - 1 + } + /* scale result */ + if ex > 0 { + uxi = uint64(uxi - Uint64FromUint64(1)<> Uint64FromInt32(-ex+int32(1)) + } + uxi = uxi | Uint64FromInt32(sx)< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ex, ey int32 + var i, sx, uxi Tuint32_t + var v1 uint32 + var v3 bool + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + var _ /* ux at bp+4 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + var _ /* uy at bp+8 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _, _ = ex, ey, i, sx, uxi, v1, v3 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp + 4)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp + 4)) = x + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp + 8)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp + 8)) = y + ex = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp + 4)) >> int32(23) & uint32(0xff)) + ey = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp + 8)) >> int32(23) & uint32(0xff)) + sx = *(*Tuint32_t)(unsafe.Pointer(bp + 4)) & uint32(0x80000000) + uxi = *(*Tuint32_t)(unsafe.Pointer(bp + 4)) + if v3 = *(*Tuint32_t)(unsafe.Pointer(bp + 8))< uint32(0x7f800000)) != 0 || ex == int32(0xff) { + return float32(x*y) / float32(x*y) + } + if uxi<>int32(31) == uint32(0)) { + break + } + goto _4 + _4: + ; + ex = ex - 1 + i = i << uint32(1) + } + uxi = uxi << Uint32FromInt32(-ex+int32(1)) + } else { + uxi = uxi & (-Uint32FromUint32(1) >> Int32FromInt32(9)) + uxi = uxi | Uint32FromUint32(1)<>int32(31) == uint32(0)) { + break + } + goto _5 + _5: + ; + ey = ey - 1 + i = i << uint32(1) + } + *(*Tuint32_t)(unsafe.Pointer(bp + 8)) <<= Uint32FromInt32(-ey + int32(1)) + } else { + *(*Tuint32_t)(unsafe.Pointer(bp + 8)) &= -Uint32FromUint32(1) >> Int32FromInt32(9) + *(*Tuint32_t)(unsafe.Pointer(bp + 8)) |= Uint32FromUint32(1) << Int32FromInt32(23) + } + /* x mod y */ + for { + if !(ex > ey) { + break + } + i = uxi - *(*Tuint32_t)(unsafe.Pointer(bp + 8)) + if i>>int32(31) == uint32(0) { + if i == uint32(0) { + return float32(Float32FromInt32(0) * x) + } + uxi = i + } + uxi = uxi << uint32(1) + goto _6 + _6: + ; + ex = ex - 1 + } + i = uxi - *(*Tuint32_t)(unsafe.Pointer(bp + 8)) + if i>>int32(31) == uint32(0) { + if i == uint32(0) { + return float32(Float32FromInt32(0) * x) + } + uxi = i + } + for { + if !(uxi>>int32(23) == uint32(0)) { + break + } + goto _7 + _7: + ; + uxi = uxi << uint32(1) + ex = ex - 1 + } + /* scale result up */ + if ex > 0 { + uxi = uxi - Uint32FromUint32(1)<> Uint32FromInt32(-ex+int32(1)) + } + uxi = uxi | sx + *(*Tuint32_t)(unsafe.Pointer(bp + 4)) = uxi + return *(*float32)(unsafe.Pointer(bp + 4)) +} + +func Xfmodl(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfmod(tls, x, y) +} + +func Xfrexp(tls *TLS, x float64, e uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v e=%v, (%v:)", tls, x, e, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ee int32 + var v1 uintptr + var _ /* y at bp+0 */ struct { + Fi [0]Tuint64_t + Fd float64 + } + _, _ = ee, v1 + *(*struct { + Fi [0]Tuint64_t + Fd float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Fd float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + ee = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + if !(ee != 0) { + if x != 0 { + x = Xfrexp(tls, float64(x*float64(1.8446744073709552e+19)), e) + **(**int32)(__ccgo_up(e)) -= int32(64) + } else { + **(**int32)(__ccgo_up(e)) = 0 + } + return x + } else { + if ee == int32(0x7ff) { + return x + } + } + **(**int32)(__ccgo_up(e)) = ee - int32(0x3fe) + v1 = bp + *(*Tuint64_t)(unsafe.Pointer(v1)) = Tuint64_t(*(*Tuint64_t)(unsafe.Pointer(v1)) & Uint64FromUint64(0x800fffffffffffff)) + v1 = bp + *(*Tuint64_t)(unsafe.Pointer(v1)) = Tuint64_t(*(*Tuint64_t)(unsafe.Pointer(v1)) | Uint64FromUint64(0x3fe0000000000000)) + return *(*float64)(unsafe.Pointer(bp)) +} + +func Xfrexpf(tls *TLS, x float32, e uintptr) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v e=%v, (%v:)", tls, x, e, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ee int32 + var v1 uintptr + var _ /* y at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _ = ee, v1 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + ee = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(23) & uint32(0xff)) + if !(ee != 0) { + if x != 0 { + x = Xfrexpf(tls, float32(float64(x)*float64(1.8446744073709552e+19)), e) + **(**int32)(__ccgo_up(e)) -= int32(64) + } else { + **(**int32)(__ccgo_up(e)) = 0 + } + return x + } else { + if ee == int32(0xff) { + return x + } + } + **(**int32)(__ccgo_up(e)) = ee - int32(0x7e) + v1 = bp + *(*Tuint32_t)(unsafe.Pointer(v1)) = Tuint32_t(uint64(*(*Tuint32_t)(unsafe.Pointer(v1))) & Uint64FromUint64(0x807fffff)) + v1 = bp + *(*Tuint32_t)(unsafe.Pointer(v1)) = Tuint32_t(uint64(*(*Tuint32_t)(unsafe.Pointer(v1))) | Uint64FromUint64(0x3f000000)) + return *(*float32)(unsafe.Pointer(bp)) +} + +func Xfrexpl(tls *TLS, x float64, e uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v e=%v, (%v:)", tls, x, e, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfrexp(tls, x, e) +} + +const SPLIT = 1 + +func _sq(tls *TLS, hi uintptr, lo uintptr, x float64) { + var xc, xh, xl Tdouble_t + _, _, _ = xc, xh, xl + xc = Tdouble_t(x * (Float64FromFloat64(1.34217728e+08) + Float64FromInt32(1))) + xh = x - xc + xc + xl = x - xh + **(**Tdouble_t)(__ccgo_up(hi)) = Tdouble_t(x * x) + **(**Tdouble_t)(__ccgo_up(lo)) = Tdouble_t(xh*xh) - **(**Tdouble_t)(__ccgo_up(hi)) + Tdouble_t(Tdouble_t(Float64FromInt32(2)*xh)*xl) + Tdouble_t(xl*xl) +} + +func Xhypot(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + var ex, ey int32 + var ut struct { + Fi [0]Tuint64_t + Ff float64 + } + var z Tdouble_t + var v1 uintptr + var _ /* hx at bp+16 */ Tdouble_t + var _ /* hy at bp+32 */ Tdouble_t + var _ /* lx at bp+24 */ Tdouble_t + var _ /* ly at bp+40 */ Tdouble_t + var _ /* ux at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + var _ /* uy at bp+8 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _ = ex, ey, ut, z, v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp + 8)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp + 8)) = y + /* arrange |x| >= |y| */ + v1 = bp + *(*Tuint64_t)(unsafe.Pointer(v1)) = Tuint64_t(*(*Tuint64_t)(unsafe.Pointer(v1)) & (-Uint64FromUint64(1) >> Int32FromInt32(1))) + v1 = bp + 8 + *(*Tuint64_t)(unsafe.Pointer(v1)) = Tuint64_t(*(*Tuint64_t)(unsafe.Pointer(v1)) & (-Uint64FromUint64(1) >> Int32FromInt32(1))) + if *(*Tuint64_t)(unsafe.Pointer(bp)) < *(*Tuint64_t)(unsafe.Pointer(bp + 8)) { + ut = **(**struct { + Fi [0]Tuint64_t + Ff float64 + })(__ccgo_up(bp)) + **(**struct { + Fi [0]Tuint64_t + Ff float64 + })(__ccgo_up(bp)) = **(**struct { + Fi [0]Tuint64_t + Ff float64 + })(__ccgo_up(bp + 8)) + **(**struct { + Fi [0]Tuint64_t + Ff float64 + })(__ccgo_up(bp + 8)) = ut + } + /* special cases */ + ex = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52)) + ey = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp + 8)) >> int32(52)) + x = *(*float64)(unsafe.Pointer(bp)) + y = *(*float64)(unsafe.Pointer(bp + 8)) + /* note: hypot(inf,nan) == inf */ + if ey == int32(0x7ff) { + return y + } + if ex == int32(0x7ff) || *(*Tuint64_t)(unsafe.Pointer(bp + 8)) == uint64(0) { + return x + } + /* note: hypot(x,y) ~= x + y*y/x/2 with inexact for small y/x */ + /* 64 difference is enough for ld80 double_t */ + if ex-ey > int32(64) { + return x + y + } + /* precise sqrt argument in nearest rounding mode without overflow */ + /* xh*xh must not overflow and xl*xl must not underflow in sq */ + z = Float64FromInt32(1) + if ex > Int32FromInt32(0x3ff)+Int32FromInt32(510) { + z = float64(5.260135901548374e+210) + x = x * float64(1.90109156629516e-211) + y = y * float64(1.90109156629516e-211) + } else { + if ey < Int32FromInt32(0x3ff)-Int32FromInt32(450) { + z = float64(1.90109156629516e-211) + x = x * float64(5.260135901548374e+210) + y = y * float64(5.260135901548374e+210) + } + } + _sq(tls, bp+16, bp+24, x) + _sq(tls, bp+32, bp+40, y) + return float64(z * Xsqrt(tls, **(**Tdouble_t)(__ccgo_up(bp + 40))+**(**Tdouble_t)(__ccgo_up(bp + 24))+**(**Tdouble_t)(__ccgo_up(bp + 32))+**(**Tdouble_t)(__ccgo_up(bp + 16)))) +} + +func Xhypotf(tls *TLS, x float32, y float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ut struct { + Fi [0]Tuint32_t + Ff float32 + } + var z Tfloat_t + var _ /* ux at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + var _ /* uy at bp+4 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _ = ut, z + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp + 4)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp + 4)) = y + *(*Tuint32_t)(unsafe.Pointer(bp)) &= -Uint32FromUint32(1) >> Int32FromInt32(1) + *(*Tuint32_t)(unsafe.Pointer(bp + 4)) &= -Uint32FromUint32(1) >> Int32FromInt32(1) + if *(*Tuint32_t)(unsafe.Pointer(bp)) < *(*Tuint32_t)(unsafe.Pointer(bp + 4)) { + ut = **(**struct { + Fi [0]Tuint32_t + Ff float32 + })(__ccgo_up(bp)) + **(**struct { + Fi [0]Tuint32_t + Ff float32 + })(__ccgo_up(bp)) = **(**struct { + Fi [0]Tuint32_t + Ff float32 + })(__ccgo_up(bp + 4)) + **(**struct { + Fi [0]Tuint32_t + Ff float32 + })(__ccgo_up(bp + 4)) = ut + } + x = *(*float32)(unsafe.Pointer(bp)) + y = *(*float32)(unsafe.Pointer(bp + 4)) + if *(*Tuint32_t)(unsafe.Pointer(bp + 4)) == Uint32FromInt32(Int32FromInt32(0xff)<= Uint32FromInt32(Int32FromInt32(0xff)<= Uint32FromInt32(Int32FromInt32(25)<= Uint32FromInt32((Int32FromInt32(0x7f)+Int32FromInt32(60))< %v", r) }() + } + return Xhypot(tls, x, y) +} + +func Xilogb(tls *TLS, x3 float64) (r int32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e, v2 int32 + var i Tuint64_t + var y float32 + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _ = e, i, y, y1, y2, v2 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + i = *(*Tuint64_t)(unsafe.Pointer(bp)) + e = Int32FromUint64(i >> int32(52) & uint64(0x7ff)) + if !(e != 0) { + i = i << uint64(12) + if i == uint64(0) { + if uint64(4) == uint64(4) { + y = Float32FromInt32(0) / Float32FromFloat32(0) + } else { + if uint64(4) == uint64(8) { + y1 = float64(Float32FromInt32(0) / Float32FromFloat32(0)) + } else { + y2 = float64(Float32FromInt32(0) / Float32FromFloat32(0)) + } + } + return -Int32FromInt32(1) - Int32FromInt32(0x7fffffff) + } + /* subnormal x */ + e = -int32(0x3ff) + for { + if !(i>>int32(63) == uint64(0)) { + break + } + goto _1 + _1: + ; + e = e - 1 + i = i << uint64(1) + } + return e + } + if e == int32(0x7ff) { + if uint64(4) == uint64(4) { + y = Float32FromInt32(0) / Float32FromFloat32(0) + } else { + if uint64(4) == uint64(8) { + y1 = float64(Float32FromInt32(0) / Float32FromFloat32(0)) + } else { + y2 = float64(Float32FromInt32(0) / Float32FromFloat32(0)) + } + } + if i< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e, v2 int32 + var i Tuint32_t + var y float32 + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _ = e, i, y, y1, y2, v2 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + i = *(*Tuint32_t)(unsafe.Pointer(bp)) + e = Int32FromUint32(i >> int32(23) & uint32(0xff)) + if !(e != 0) { + i = i << uint32(9) + if i == uint32(0) { + if uint64(4) == uint64(4) { + y = Float32FromInt32(0) / Float32FromFloat32(0) + } else { + if uint64(4) == uint64(8) { + y1 = float64(Float32FromInt32(0) / Float32FromFloat32(0)) + } else { + y2 = float64(Float32FromInt32(0) / Float32FromFloat32(0)) + } + } + return -Int32FromInt32(1) - Int32FromInt32(0x7fffffff) + } + /* subnormal x */ + e = -int32(0x7f) + for { + if !(i>>int32(31) == uint32(0)) { + break + } + goto _1 + _1: + ; + e = e - 1 + i = i << uint32(1) + } + return e + } + if e == int32(0xff) { + if uint64(4) == uint64(4) { + y = Float32FromInt32(0) / Float32FromFloat32(0) + } else { + if uint64(4) == uint64(8) { + y1 = float64(Float32FromInt32(0) / Float32FromFloat32(0)) + } else { + y2 = float64(Float32FromInt32(0) / Float32FromFloat32(0)) + } + } + if i< %v", r) }() + } + return Xilogb(tls, x) +} + +var _invsqrtpi = float64(0.5641895835477563) /* 0x3FE20DD7, 0x50429B6D */ +var _tpi = float64(0.6366197723675814) /* 0x3FE45F30, 0x6DC9C883 */ + +// C documentation +// +// /* common method when |x|>=2 */ +func _common(tls *TLS, ix Tuint32_t, x float64, y0 int32) (r float64) { + var c, cc, s, ss, z float64 + _, _, _, _, _ = c, cc, s, ss, z + /* + * j0(x) = sqrt(2/(pi*x))*(p0(x)*cos(x-pi/4)-q0(x)*sin(x-pi/4)) + * y0(x) = sqrt(2/(pi*x))*(p0(x)*sin(x-pi/4)+q0(x)*cos(x-pi/4)) + * + * sin(x-pi/4) = (sin(x) - cos(x))/sqrt(2) + * cos(x-pi/4) = (sin(x) + cos(x))/sqrt(2) + * sin(x) +- cos(x) = -cos(2x)/(sin(x) -+ cos(x)) + */ + s = Xsin(tls, x) + c = Xcos(tls, x) + if y0 != 0 { + c = -c + } + cc = s + c + /* avoid overflow in 2*x, big ulp error when x>=0x1p1023 */ + if ix < uint32(0x7fe00000) { + ss = s - c + z = -Xcos(tls, float64(Float64FromInt32(2)*x)) + if float64(s*c) < Float64FromInt32(0) { + cc = z / ss + } else { + ss = z / cc + } + if ix < uint32(0x48000000) { + if y0 != 0 { + ss = -ss + } + cc = float64(_pzero(tls, x)*cc) - float64(_qzero(tls, x)*ss) + } + } + return float64(_invsqrtpi*cc) / Xsqrt(tls, x) +} + +// C documentation +// +// /* R0/S0 on [0, 2.00] */ + +var _R02 = float64(0.015624999999999995) /* 0x3F8FFFFF, 0xFFFFFFFD */ +var _R03 = -Float64FromFloat64(0.00018997929423885472) /* 0xBF28E6A5, 0xB61AC6E9 */ +var _R04 = float64(1.8295404953270067e-06) /* 0x3EBEB1D1, 0x0C503919 */ +var _R05 = -Float64FromFloat64(4.618326885321032e-09) /* 0xBE33D5E7, 0x73D63FCE */ +var _S01 = float64(0.015619102946489001) /* 0x3F8FFCE8, 0x82C8C2A4 */ +var _S02 = float64(0.00011692678466333745) /* 0x3F1EA6D2, 0xDD57DBF4 */ +var _S03 = float64(5.135465502073181e-07) /* 0x3EA13B54, 0xCE84D5A9 */ +var _S04 = float64(1.1661400333379e-09) /* 0x3E1408BC, 0xF4745D8F */ + +func Xj0(tls *TLS, x float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var ix Tuint32_t + var r, s, z float64 + _, _, _, _ = ix, r, s, z + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + ix = ix & uint32(0x7fffffff) + /* j0(+-inf)=0, j0(nan)=nan */ + if ix >= uint32(0x7ff00000) { + return Float64FromInt32(1) / float64(x*x) + } + x = Xfabs(tls, x) + if ix >= uint32(0x40000000) { /* |x| >= 2 */ + /* large ulp error near zeros: 2.4, 5.52, 8.6537,.. */ + return _common(tls, ix, x, 0) + } + /* 1 - x*x/4 + x*x*R(x^2)/S(x^2) */ + if ix >= uint32(0x3f200000) { /* |x| >= 2**-13 */ + /* up to 4ulp error close to 2 */ + z = float64(x * x) + r = float64(z * (_R02 + float64(z*(_R03+float64(z*(_R04+float64(z*_R05))))))) + s = Float64FromInt32(1) + float64(z*(_S01+float64(z*(_S02+float64(z*(_S03+float64(z*_S04))))))) + return float64((Float64FromInt32(1)+x/Float64FromInt32(2))*(Float64FromInt32(1)-x/Float64FromInt32(2))) + float64(z*(r/s)) + } + /* 1 - x*x/4 */ + /* prevent underflow */ + /* inexact should be raised when x!=0, this is not done correctly */ + if ix >= uint32(0x38000000) { /* |x| >= 2**-127 */ + x = float64(float64(float64(0.25)*x) * x) + } + return Float64FromInt32(1) - x +} + +var _u00 = -Float64FromFloat64(0.07380429510868723) /* 0xBFB2E4D6, 0x99CBD01F */ +var _u01 = float64(0.17666645250918112) /* 0x3FC69D01, 0x9DE9E3FC */ +var _u02 = -Float64FromFloat64(0.01381856719455969) /* 0xBF8C4CE8, 0xB16CFA97 */ +var _u03 = float64(0.00034745343209368365) /* 0x3F36C54D, 0x20B29B6B */ +var _u04 = -Float64FromFloat64(3.8140705372436416e-06) /* 0xBECFFEA7, 0x73D25CAD */ +var _u05 = float64(1.9559013703502292e-08) /* 0x3E550057, 0x3B4EABD4 */ +var _u06 = -Float64FromFloat64(3.982051941321034e-11) /* 0xBDC5E43D, 0x693FB3C8 */ +var _v01 = float64(0.01273048348341237) /* 0x3F8A1270, 0x91C9C71A */ +var _v02 = float64(7.600686273503533e-05) /* 0x3F13ECBB, 0xF578C6C1 */ +var _v03 = float64(2.591508518404578e-07) /* 0x3E91642D, 0x7FF202FD */ +var _v04 = float64(4.4111031133267547e-10) /* 0x3DFE5018, 0x3BD6D9EF */ + +func Xy0(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __u Tuint64_t + var ix, lx Tuint32_t + var u, v, z float64 + _, _, _, _, _, _ = __u, ix, lx, u, v, z + __u = *(*Tuint64_t)(unsafe.Pointer(&x)) + ix = uint32(__u >> int32(32)) + lx = uint32(__u) + /* y0(nan)=nan, y0(<0)=nan, y0(0)=-inf, y0(inf)=0 */ + if ix<>int32(31) != 0 { + return Float64FromInt32(0) / Float64FromFloat64(0) + } + if ix >= uint32(0x7ff00000) { + return Float64FromInt32(1) / x + } + if ix >= uint32(0x40000000) { /* x >= 2 */ + /* large ulp errors near zeros: 3.958, 7.086,.. */ + return _common(tls, ix, x, int32(1)) + } + /* U(x^2)/V(x^2) + (2/pi)*j0(x)*log(x) */ + if ix >= uint32(0x3e400000) { /* x >= 2**-27 */ + /* large ulp error near the first zero, x ~= 0.89 */ + z = float64(x * x) + u = _u00 + float64(z*(_u01+float64(z*(_u02+float64(z*(_u03+float64(z*(_u04+float64(z*(_u05+float64(z*_u06))))))))))) + v = float64(1) + float64(z*(_v01+float64(z*(_v02+float64(z*(_v03+float64(z*_v04))))))) + return u/v + float64(_tpi*float64(Xj0(tls, x)*Xlog(tls, x))) + } + return _u00 + float64(_tpi*Xlog(tls, x)) +} + +// C documentation +// +// /* The asymptotic expansions of pzero is +// * 1 - 9/128 s^2 + 11025/98304 s^4 - ..., where s = 1/x. +// * For x >= 2, We approximate pzero by +// * pzero(x) = 1 + (R/S) +// * where R = pR0 + pR1*s^2 + pR2*s^4 + ... + pR5*s^10 +// * S = 1 + pS0*s^2 + ... + pS4*s^10 +// * and +// * | pzero(x)-1-R/S | <= 2 ** ( -60.26) +// */ +var _pR8 = [6]float64{ + 1: -Float64FromFloat64(0.07031249999999004), + 2: -Float64FromFloat64(8.081670412753498), + 3: -Float64FromFloat64(257.06310567970485), + 4: -Float64FromFloat64(2485.216410094288), + 5: -Float64FromFloat64(5253.043804907295), +} +var _pS8 = [5]float64{ + 0: float64(116.53436461966818), + 1: float64(3833.7447536412183), + 2: float64(40597.857264847255), + 3: float64(116752.97256437592), + 4: float64(47627.728414673096), +} + +var _pR5 = [6]float64{ + 0: -Float64FromFloat64(1.141254646918945e-11), + 1: -Float64FromFloat64(0.07031249408735993), + 2: -Float64FromFloat64(4.159610644705878), + 3: -Float64FromFloat64(67.67476522651673), + 4: -Float64FromFloat64(331.23129964917297), + 5: -Float64FromFloat64(346.4333883656049), +} +var _pS52 = [5]float64{ + 0: float64(60.753938269230034), + 1: float64(1051.2523059570458), + 2: float64(5978.970943338558), + 3: float64(9625.445143577745), + 4: float64(2406.058159229391), +} + +var _pR3 = [6]float64{ + 0: -Float64FromFloat64(2.547046017719519e-09), + 1: -Float64FromFloat64(0.07031196163814817), + 2: -Float64FromFloat64(2.409032215495296), + 3: -Float64FromFloat64(21.96597747348831), + 4: -Float64FromFloat64(58.07917047017376), + 5: -Float64FromFloat64(31.44794705948885), +} +var _pS32 = [5]float64{ + 0: float64(35.85603380552097), + 1: float64(361.51398305030386), + 2: float64(1193.6078379211153), + 3: float64(1127.9967985690741), + 4: float64(173.58093081333575), +} + +var _pR2 = [6]float64{ + 0: -Float64FromFloat64(8.875343330325264e-08), + 1: -Float64FromFloat64(0.07030309954836247), + 2: -Float64FromFloat64(1.4507384678095299), + 3: -Float64FromFloat64(7.635696138235278), + 4: -Float64FromFloat64(11.193166886035675), + 5: -Float64FromFloat64(3.2336457935133534), +} +var _pS24 = [5]float64{ + 0: float64(22.22029975320888), + 1: float64(136.2067942182152), + 2: float64(270.4702786580835), + 3: float64(153.87539420832033), + 4: float64(14.65761769482562), +} + +func _pzero(tls *TLS, x float64) (r1 float64) { + var ix Tuint32_t + var p, q uintptr + var r, s, z Tdouble_t + _, _, _, _, _, _ = ix, p, q, r, s, z + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x40200000) { + p = uintptr(unsafe.Pointer(&_pR8)) + q = uintptr(unsafe.Pointer(&_pS8)) + } else { + if ix >= uint32(0x40122E8B) { + p = uintptr(unsafe.Pointer(&_pR5)) + q = uintptr(unsafe.Pointer(&_pS52)) + } else { + if ix >= uint32(0x4006DB6D) { + p = uintptr(unsafe.Pointer(&_pR3)) + q = uintptr(unsafe.Pointer(&_pS32)) + } else { /*ix >= 0x40000000*/ + p = uintptr(unsafe.Pointer(&_pR2)) + q = uintptr(unsafe.Pointer(&_pS24)) + } + } + } + z = float64(1) / float64(x*x) + r = **(**float64)(__ccgo_up(p)) + float64(z*(**(**float64)(__ccgo_up(p + 1*8))+float64(z*(**(**float64)(__ccgo_up(p + 2*8))+float64(z*(**(**float64)(__ccgo_up(p + 3*8))+float64(z*(**(**float64)(__ccgo_up(p + 4*8))+float64(z***(**float64)(__ccgo_up(p + 5*8))))))))))) + s = float64(1) + float64(z*(**(**float64)(__ccgo_up(q))+float64(z*(**(**float64)(__ccgo_up(q + 1*8))+float64(z*(**(**float64)(__ccgo_up(q + 2*8))+float64(z*(**(**float64)(__ccgo_up(q + 3*8))+float64(z***(**float64)(__ccgo_up(q + 4*8))))))))))) + return float64(1) + r/s +} + +// C documentation +// +// /* For x >= 8, the asymptotic expansions of qzero is +// * -1/8 s + 75/1024 s^3 - ..., where s = 1/x. +// * We approximate pzero by +// * qzero(x) = s*(-1.25 + (R/S)) +// * where R = qR0 + qR1*s^2 + qR2*s^4 + ... + qR5*s^10 +// * S = 1 + qS0*s^2 + ... + qS5*s^12 +// * and +// * | qzero(x)/s +1.25-R/S | <= 2 ** ( -61.22) +// */ +var _qR8 = [6]float64{ + 1: float64(0.0732421874999935), + 2: float64(11.76820646822527), + 3: float64(557.6733802564019), + 4: float64(8859.197207564686), + 5: float64(37014.62677768878), +} +var _qS8 = [6]float64{ + 0: float64(163.77602689568982), + 1: float64(8098.344946564498), + 2: float64(142538.29141912048), + 3: float64(803309.2571195144), + 4: float64(840501.5798190605), + 5: -Float64FromFloat64(343899.2935378666), +} + +var _qR5 = [6]float64{ + 0: float64(1.8408596359451553e-11), + 1: float64(0.07324217666126848), + 2: float64(5.8356350896205695), + 3: float64(135.11157728644983), + 4: float64(1027.243765961641), + 5: float64(1989.9778586460538), +} +var _qS5 = [6]float64{ + 0: float64(82.77661022365378), + 1: float64(2077.81416421393), + 2: float64(18847.28877857181), + 3: float64(56751.11228949473), + 4: float64(35976.75384251145), + 5: -Float64FromFloat64(5354.342756019448), +} + +var _qR3 = [6]float64{ + 0: float64(4.377410140897386e-09), + 1: float64(0.07324111800429114), + 2: float64(3.344231375161707), + 3: float64(42.621844074541265), + 4: float64(170.8080913405656), + 5: float64(166.73394869665117), +} +var _qS32 = [6]float64{ + 0: float64(48.75887297245872), + 1: float64(709.689221056606), + 2: float64(3704.1482262011136), + 3: float64(6460.425167525689), + 4: float64(2516.3336892036896), + 5: -Float64FromFloat64(149.2474518361564), +} + +var _qR2 = [6]float64{ + 0: float64(1.5044444488698327e-07), + 1: float64(0.07322342659630793), + 2: float64(1.99819174093816), + 3: float64(14.495602934788574), + 4: float64(31.666231750478154), + 5: float64(16.252707571092927), +} +var _qS22 = [6]float64{ + 0: float64(30.36558483552192), + 1: float64(269.34811860804984), + 2: float64(844.7837575953201), + 3: float64(882.9358451124886), + 4: float64(212.66638851179883), + 5: -Float64FromFloat64(5.3109549388266695), +} + +func _qzero(tls *TLS, x float64) (r1 float64) { + var ix Tuint32_t + var p, q uintptr + var r, s, z Tdouble_t + _, _, _, _, _, _ = ix, p, q, r, s, z + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x40200000) { + p = uintptr(unsafe.Pointer(&_qR8)) + q = uintptr(unsafe.Pointer(&_qS8)) + } else { + if ix >= uint32(0x40122E8B) { + p = uintptr(unsafe.Pointer(&_qR5)) + q = uintptr(unsafe.Pointer(&_qS5)) + } else { + if ix >= uint32(0x4006DB6D) { + p = uintptr(unsafe.Pointer(&_qR3)) + q = uintptr(unsafe.Pointer(&_qS32)) + } else { /*ix >= 0x40000000*/ + p = uintptr(unsafe.Pointer(&_qR2)) + q = uintptr(unsafe.Pointer(&_qS22)) + } + } + } + z = float64(1) / float64(x*x) + r = **(**float64)(__ccgo_up(p)) + float64(z*(**(**float64)(__ccgo_up(p + 1*8))+float64(z*(**(**float64)(__ccgo_up(p + 2*8))+float64(z*(**(**float64)(__ccgo_up(p + 3*8))+float64(z*(**(**float64)(__ccgo_up(p + 4*8))+float64(z***(**float64)(__ccgo_up(p + 5*8))))))))))) + s = float64(1) + float64(z*(**(**float64)(__ccgo_up(q))+float64(z*(**(**float64)(__ccgo_up(q + 1*8))+float64(z*(**(**float64)(__ccgo_up(q + 2*8))+float64(z*(**(**float64)(__ccgo_up(q + 3*8))+float64(z*(**(**float64)(__ccgo_up(q + 4*8))+float64(z***(**float64)(__ccgo_up(q + 5*8))))))))))))) + return (-Float64FromFloat64(0.125) + r/s) / x +} + +var _invsqrtpi1 = float32(0.56418961287) /* 0x3f106ebb */ +var _tpi1 = float32(0.63661974669) /* 0x3f22f983 */ + +func _common1(tls *TLS, ix Tuint32_t, x float32, y0 int32) (r float32) { + var c, cc, s, ss, z float32 + _, _, _, _, _ = c, cc, s, ss, z + /* + * j0(x) = 1/sqrt(pi) * (P(0,x)*cc - Q(0,x)*ss) / sqrt(x) + * y0(x) = 1/sqrt(pi) * (P(0,x)*ss + Q(0,x)*cc) / sqrt(x) + */ + s = Xsinf(tls, x) + c = Xcosf(tls, x) + if y0 != 0 { + c = -c + } + cc = s + c + if ix < uint32(0x7f000000) { + ss = s - c + z = -Xcosf(tls, float32(Float32FromInt32(2)*x)) + if float32(s*c) < Float32FromInt32(0) { + cc = z / ss + } else { + ss = z / cc + } + if ix < uint32(0x58800000) { + if y0 != 0 { + ss = -ss + } + cc = float32(_pzerof(tls, x)*cc) - float32(_qzerof(tls, x)*ss) + } + } + return float32(_invsqrtpi1*cc) / Xsqrtf(tls, x) +} + +// C documentation +// +// /* R0/S0 on [0, 2.00] */ + +var _R021 = float32(0.015625) /* 0x3c800000 */ +var _R031 = float32(-Float64FromFloat64(0.00018997929874)) /* 0xb947352e */ +var _R041 = float32(1.8295404516e-06) /* 0x35f58e88 */ +var _R051 = float32(-Float64FromFloat64(4.6183270541e-09)) /* 0xb19eaf3c */ +var _S011 = float32(0.015619102865) /* 0x3c7fe744 */ +var _S021 = float32(0.00011692678527) /* 0x38f53697 */ +var _S031 = float32(5.1354652442e-07) /* 0x3509daa6 */ +var _S041 = float32(1.1661400734e-09) /* 0x30a045e8 */ + +func Xj0f(tls *TLS, x float32) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var ix Tuint32_t + var r, s, z float32 + _, _, _, _ = ix, r, s, z + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x7f800000) { + return Float32FromInt32(1) / float32(x*x) + } + x = Xfabsf(tls, x) + if ix >= uint32(0x40000000) { /* |x| >= 2 */ + /* large ulp error near zeros */ + return _common1(tls, ix, x, 0) + } + if ix >= uint32(0x3a000000) { /* |x| >= 2**-11 */ + /* up to 4ulp error near 2 */ + z = float32(x * x) + r = float32(z * (_R021 + float32(z*(_R031+float32(z*(_R041+float32(z*_R051))))))) + s = Float32FromInt32(1) + float32(z*(_S011+float32(z*(_S021+float32(z*(_S031+float32(z*_S041))))))) + return float32((Float32FromInt32(1)+x/Float32FromInt32(2))*(Float32FromInt32(1)-x/Float32FromInt32(2))) + float32(z*(r/s)) + } + if ix >= uint32(0x21800000) { /* |x| >= 2**-60 */ + x = float32(float32(Float32FromFloat32(0.25)*x) * x) + } + return Float32FromInt32(1) - x +} + +var _u001 = float32(-Float64FromFloat64(0.073804296553)) /* 0xbd9726b5 */ +var _u011 = float32(0.17666645348) /* 0x3e34e80d */ +var _u021 = float32(-Float64FromFloat64(0.013818567619)) /* 0xbc626746 */ +var _u031 = float32(0.00034745343146) /* 0x39b62a69 */ +var _u041 = float32(-Float64FromFloat64(3.8140706238e-06)) /* 0xb67ff53c */ +var _u051 = float32(1.9559013964e-08) /* 0x32a802ba */ +var _u061 = float32(-Float64FromFloat64(3.982051841e-11)) /* 0xae2f21eb */ +var _v011 = float32(0.012730483897) /* 0x3c509385 */ +var _v021 = float32(7.6006865129e-05) /* 0x389f65e0 */ +var _v031 = float32(2.5915085189e-07) /* 0x348b216c */ +var _v041 = float32(4.4111031494e-10) /* 0x2ff280c2 */ + +func Xy0f(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ix Tuint32_t + var u, v, z float32 + _, _, _, _ = ix, u, v, z + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + if ix&uint32(0x7fffffff) == uint32(0) { + return float32(-Int32FromInt32(1)) / Float32FromFloat32(0) + } + if ix>>int32(31) != 0 { + return Float32FromInt32(0) / Float32FromFloat32(0) + } + if ix >= uint32(0x7f800000) { + return Float32FromInt32(1) / x + } + if ix >= uint32(0x40000000) { /* |x| >= 2.0 */ + /* large ulp error near zeros */ + return _common1(tls, ix, x, int32(1)) + } + if ix >= uint32(0x39000000) { /* x >= 2**-13 */ + /* large ulp error at x ~= 0.89 */ + z = float32(x * x) + u = _u001 + float32(z*(_u011+float32(z*(_u021+float32(z*(_u031+float32(z*(_u041+float32(z*(_u051+float32(z*_u061))))))))))) + v = Float32FromInt32(1) + float32(z*(_v011+float32(z*(_v021+float32(z*(_v031+float32(z*_v041))))))) + return u/v + float32(_tpi1*float32(Xj0f(tls, x)*Xlogf(tls, x))) + } + return _u001 + float32(_tpi1*Xlogf(tls, x)) +} + +// C documentation +// +// /* The asymptotic expansions of pzero is +// * 1 - 9/128 s^2 + 11025/98304 s^4 - ..., where s = 1/x. +// * For x >= 2, We approximate pzero by +// * pzero(x) = 1 + (R/S) +// * where R = pR0 + pR1*s^2 + pR2*s^4 + ... + pR5*s^10 +// * S = 1 + pS0*s^2 + ... + pS4*s^10 +// * and +// * | pzero(x)-1-R/S | <= 2 ** ( -60.26) +// */ +var _pR81 = [6]float32{ + 1: float32(-Float64FromFloat64(0.0703125)), + 2: float32(-Float64FromFloat64(8.0816707611)), + 3: float32(-Float64FromFloat64(257.06311035)), + 4: float32(-Float64FromFloat64(2485.2163086)), + 5: float32(-Float64FromFloat64(5253.0439453)), +} +var _pS81 = [5]float32{ + 0: float32(116.53436279), + 1: float32(3833.744873), + 2: float32(40597.855469), + 3: float32(116752.96875), + 4: float32(47627.726562), +} +var _pR51 = [6]float32{ + 0: float32(-Float64FromFloat64(1.1412546255e-11)), + 1: float32(-Float64FromFloat64(0.070312492549)), + 2: float32(-Float64FromFloat64(4.1596107483)), + 3: float32(-Float64FromFloat64(67.674766541)), + 4: float32(-Float64FromFloat64(331.23129272)), + 5: float32(-Float64FromFloat64(346.43338013)), +} +var _pS53 = [5]float32{ + 0: float32(60.753936768), + 1: float32(1051.2523193), + 2: float32(5978.9707031), + 3: float32(9625.4453125), + 4: float32(2406.0581055), +} + +var _pR31 = [6]float32{ + 0: float32(-Float64FromFloat64(2.5470459075e-09)), + 1: float32(-Float64FromFloat64(0.070311963558)), + 2: float32(-Float64FromFloat64(2.4090321064)), + 3: float32(-Float64FromFloat64(21.965976715)), + 4: float32(-Float64FromFloat64(58.079170227)), + 5: float32(-Float64FromFloat64(31.447946548)), +} +var _pS33 = [5]float32{ + 0: float32(35.856033325), + 1: float32(361.51397705), + 2: float32(1193.6077881), + 3: float32(1127.9968262), + 4: float32(173.58093262), +} + +var _pR21 = [6]float32{ + 0: float32(-Float64FromFloat64(8.8753431271e-08)), + 1: float32(-Float64FromFloat64(0.070303097367)), + 2: float32(-Float64FromFloat64(1.45073843)), + 3: float32(-Float64FromFloat64(7.6356959343)), + 4: float32(-Float64FromFloat64(11.193166733)), + 5: float32(-Float64FromFloat64(3.2336456776)), +} +var _pS25 = [5]float32{ + 0: float32(22.220300674), + 1: float32(136.20678711), + 2: float32(270.47027588), + 3: float32(153.87539673), + 4: float32(14.657617569), +} + +func _pzerof(tls *TLS, x float32) (r1 float32) { + var ix Tuint32_t + var p, q uintptr + var r, s, z Tfloat_t + _, _, _, _, _, _ = ix, p, q, r, s, z + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x41000000) { + p = uintptr(unsafe.Pointer(&_pR81)) + q = uintptr(unsafe.Pointer(&_pS81)) + } else { + if ix >= uint32(0x409173eb) { + p = uintptr(unsafe.Pointer(&_pR51)) + q = uintptr(unsafe.Pointer(&_pS53)) + } else { + if ix >= uint32(0x4036d917) { + p = uintptr(unsafe.Pointer(&_pR31)) + q = uintptr(unsafe.Pointer(&_pS33)) + } else { /*ix >= 0x40000000*/ + p = uintptr(unsafe.Pointer(&_pR21)) + q = uintptr(unsafe.Pointer(&_pS25)) + } + } + } + z = Float32FromFloat32(1) / float32(x*x) + r = **(**float32)(__ccgo_up(p)) + float32(z*(**(**float32)(__ccgo_up(p + 1*4))+float32(z*(**(**float32)(__ccgo_up(p + 2*4))+float32(z*(**(**float32)(__ccgo_up(p + 3*4))+float32(z*(**(**float32)(__ccgo_up(p + 4*4))+float32(z***(**float32)(__ccgo_up(p + 5*4))))))))))) + s = Float32FromFloat32(1) + float32(z*(**(**float32)(__ccgo_up(q))+float32(z*(**(**float32)(__ccgo_up(q + 1*4))+float32(z*(**(**float32)(__ccgo_up(q + 2*4))+float32(z*(**(**float32)(__ccgo_up(q + 3*4))+float32(z***(**float32)(__ccgo_up(q + 4*4))))))))))) + return Float32FromFloat32(1) + r/s +} + +// C documentation +// +// /* For x >= 8, the asymptotic expansions of qzero is +// * -1/8 s + 75/1024 s^3 - ..., where s = 1/x. +// * We approximate pzero by +// * qzero(x) = s*(-1.25 + (R/S)) +// * where R = qR0 + qR1*s^2 + qR2*s^4 + ... + qR5*s^10 +// * S = 1 + qS0*s^2 + ... + qS5*s^12 +// * and +// * | qzero(x)/s +1.25-R/S | <= 2 ** ( -61.22) +// */ +var _qR81 = [6]float32{ + 1: float32(0.0732421875), + 2: float32(11.768206596), + 3: float32(557.67340088), + 4: float32(8859.1972656), + 5: float32(37014.625), +} +var _qS81 = [6]float32{ + 0: float32(163.77603149), + 1: float32(8098.3447266), + 2: float32(142538.29688), + 3: float32(803309.25), + 4: float32(840501.5625), + 5: float32(-Float64FromFloat64(343899.28125)), +} + +var _qR51 = [6]float32{ + 0: float32(1.8408595828e-11), + 1: float32(0.073242180049), + 2: float32(5.8356351852), + 3: float32(135.11157227), + 4: float32(1027.2437744), + 5: float32(1989.9779053), +} +var _qS51 = [6]float32{ + 0: float32(82.776611328), + 1: float32(2077.814209), + 2: float32(18847.289062), + 3: float32(56751.113281), + 4: float32(35976.753906), + 5: float32(-Float64FromFloat64(5354.3427734)), +} + +var _qR31 = [6]float32{ + 0: float32(4.37740999e-09), + 1: float32(0.073241114616), + 2: float32(3.3442313671), + 3: float32(42.621845245), + 4: float32(170.80809021), + 5: float32(166.73394775), +} +var _qS33 = [6]float32{ + 0: float32(48.758872986), + 1: float32(709.68920898), + 2: float32(3704.1481934), + 3: float32(6460.425293), + 4: float32(2516.3337402), + 5: float32(-Float64FromFloat64(149.24745178)), +} + +var _qR21 = [6]float32{ + 0: float32(1.5044444979e-07), + 1: float32(0.073223426938), + 2: float32(1.9981917143), + 3: float32(14.495602608), + 4: float32(31.666231155), + 5: float32(16.252708435), +} +var _qS23 = [6]float32{ + 0: float32(30.365585327), + 1: float32(269.34811401), + 2: float32(844.78375244), + 3: float32(882.93585205), + 4: float32(212.66638184), + 5: float32(-Float64FromFloat64(5.3109550476)), +} + +func _qzerof(tls *TLS, x float32) (r1 float32) { + var ix Tuint32_t + var p, q uintptr + var r, s, z Tfloat_t + _, _, _, _, _, _ = ix, p, q, r, s, z + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x41000000) { + p = uintptr(unsafe.Pointer(&_qR81)) + q = uintptr(unsafe.Pointer(&_qS81)) + } else { + if ix >= uint32(0x409173eb) { + p = uintptr(unsafe.Pointer(&_qR51)) + q = uintptr(unsafe.Pointer(&_qS51)) + } else { + if ix >= uint32(0x4036d917) { + p = uintptr(unsafe.Pointer(&_qR31)) + q = uintptr(unsafe.Pointer(&_qS33)) + } else { /*ix >= 0x40000000*/ + p = uintptr(unsafe.Pointer(&_qR21)) + q = uintptr(unsafe.Pointer(&_qS23)) + } + } + } + z = Float32FromFloat32(1) / float32(x*x) + r = **(**float32)(__ccgo_up(p)) + float32(z*(**(**float32)(__ccgo_up(p + 1*4))+float32(z*(**(**float32)(__ccgo_up(p + 2*4))+float32(z*(**(**float32)(__ccgo_up(p + 3*4))+float32(z*(**(**float32)(__ccgo_up(p + 4*4))+float32(z***(**float32)(__ccgo_up(p + 5*4))))))))))) + s = Float32FromFloat32(1) + float32(z*(**(**float32)(__ccgo_up(q))+float32(z*(**(**float32)(__ccgo_up(q + 1*4))+float32(z*(**(**float32)(__ccgo_up(q + 2*4))+float32(z*(**(**float32)(__ccgo_up(q + 3*4))+float32(z*(**(**float32)(__ccgo_up(q + 4*4))+float32(z***(**float32)(__ccgo_up(q + 5*4))))))))))))) + return (-Float32FromFloat32(0.125) + r/s) / x +} + +var _invsqrtpi2 = float64(0.5641895835477563) /* 0x3FE20DD7, 0x50429B6D */ +var _tpi2 = float64(0.6366197723675814) /* 0x3FE45F30, 0x6DC9C883 */ + +func _common2(tls *TLS, ix Tuint32_t, x float64, y1 int32, sign int32) (r float64) { + var c, cc, s, ss, z float64 + _, _, _, _, _ = c, cc, s, ss, z + /* + * j1(x) = sqrt(2/(pi*x))*(p1(x)*cos(x-3pi/4)-q1(x)*sin(x-3pi/4)) + * y1(x) = sqrt(2/(pi*x))*(p1(x)*sin(x-3pi/4)+q1(x)*cos(x-3pi/4)) + * + * sin(x-3pi/4) = -(sin(x) + cos(x))/sqrt(2) + * cos(x-3pi/4) = (sin(x) - cos(x))/sqrt(2) + * sin(x) +- cos(x) = -cos(2x)/(sin(x) -+ cos(x)) + */ + s = Xsin(tls, x) + if y1 != 0 { + s = -s + } + c = Xcos(tls, x) + cc = s - c + if ix < uint32(0x7fe00000) { + /* avoid overflow in 2*x */ + ss = -s - c + z = Xcos(tls, float64(Float64FromInt32(2)*x)) + if float64(s*c) > Float64FromInt32(0) { + cc = z / ss + } else { + ss = z / cc + } + if ix < uint32(0x48000000) { + if y1 != 0 { + ss = -ss + } + cc = float64(_pone(tls, x)*cc) - float64(_qone(tls, x)*ss) + } + } + if sign != 0 { + cc = -cc + } + return float64(_invsqrtpi2*cc) / Xsqrt(tls, x) +} + +// C documentation +// +// /* R0/S0 on [0,2] */ + +var _r00 = -Float64FromFloat64(0.0625) /* 0xBFB00000, 0x00000000 */ +var _r01 = float64(0.001407056669551897) /* 0x3F570D9F, 0x98472C61 */ +var _r02 = -Float64FromFloat64(1.599556310840356e-05) /* 0xBEF0C5C6, 0xBA169668 */ +var _r03 = float64(4.9672799960958445e-08) /* 0x3E6AAAFA, 0x46CA0BD9 */ +var _s01 = float64(0.019153759953836346) /* 0x3F939D0B, 0x12637E53 */ +var _s02 = float64(0.00018594678558863092) /* 0x3F285F56, 0xB9CDF664 */ +var _s03 = float64(1.1771846404262368e-06) /* 0x3EB3BFF8, 0x333F8498 */ +var _s04 = float64(5.0463625707621704e-09) /* 0x3E35AC88, 0xC97DFF2C */ +var _s05 = float64(1.2354227442613791e-11) /* 0x3DAB2ACF, 0xCFB97ED8 */ + +func Xj1(tls *TLS, x float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var ix Tuint32_t + var r, s, z float64 + var sign int32 + _, _, _, _, _ = ix, r, s, sign, z + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x7ff00000) { + return Float64FromInt32(1) / float64(x*x) + } + if ix >= uint32(0x40000000) { /* |x| >= 2 */ + return _common2(tls, ix, Xfabs(tls, x), 0, sign) + } + if ix >= uint32(0x38000000) { /* |x| >= 2**-127 */ + z = float64(x * x) + r = float64(z * (_r00 + float64(z*(_r01+float64(z*(_r02+float64(z*_r03))))))) + s = Float64FromInt32(1) + float64(z*(_s01+float64(z*(_s02+float64(z*(_s03+float64(z*(_s04+float64(z*_s05))))))))) + z = r / s + } else { + /* avoid underflow, raise inexact if x!=0 */ + z = x + } + return float64((float64(0.5) + z) * x) +} + +var _U0 = [5]float64{ + 0: -Float64FromFloat64(0.19605709064623894), + 1: float64(0.05044387166398113), + 2: -Float64FromFloat64(0.0019125689587576355), + 3: float64(2.352526005616105e-05), + 4: -Float64FromFloat64(9.190991580398789e-08), +} +var _V0 = [5]float64{ + 0: float64(0.01991673182366499), + 1: float64(0.00020255258102513517), + 2: float64(1.3560880109751623e-06), + 3: float64(6.227414523646215e-09), + 4: float64(1.6655924620799208e-11), +} + +func Xy1(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __u Tuint64_t + var ix, lx Tuint32_t + var u, v, z float64 + _, _, _, _, _, _ = __u, ix, lx, u, v, z + __u = *(*Tuint64_t)(unsafe.Pointer(&x)) + ix = uint32(__u >> int32(32)) + lx = uint32(__u) + /* y1(nan)=nan, y1(<0)=nan, y1(0)=-inf, y1(inf)=0 */ + if ix<>int32(31) != 0 { + return Float64FromInt32(0) / Float64FromFloat64(0) + } + if ix >= uint32(0x7ff00000) { + return Float64FromInt32(1) / x + } + if ix >= uint32(0x40000000) { /* x >= 2 */ + return _common2(tls, ix, x, int32(1), 0) + } + if ix < uint32(0x3c900000) { /* x < 2**-54 */ + return -_tpi2 / x + } + z = float64(x * x) + u = _U0[0] + float64(z*(_U0[int32(1)]+float64(z*(_U0[int32(2)]+float64(z*(_U0[int32(3)]+float64(z*_U0[int32(4)]))))))) + v = Float64FromInt32(1) + float64(z*(_V0[0]+float64(z*(_V0[int32(1)]+float64(z*(_V0[int32(2)]+float64(z*(_V0[int32(3)]+float64(z*_V0[int32(4)]))))))))) + return float64(x*(u/v)) + float64(_tpi2*(float64(Xj1(tls, x)*Xlog(tls, x))-Float64FromInt32(1)/x)) +} + +/* For x >= 8, the asymptotic expansions of pone is + * 1 + 15/128 s^2 - 4725/2^15 s^4 - ..., where s = 1/x. + * We approximate pone by + * pone(x) = 1 + (R/S) + * where R = pr0 + pr1*s^2 + pr2*s^4 + ... + pr5*s^10 + * S = 1 + ps0*s^2 + ... + ps4*s^10 + * and + * | pone(x)-1-R/S | <= 2 ** ( -60.06) + */ + +var _pr8 = [6]float64{ + 1: float64(0.11718749999998865), + 2: float64(13.239480659307358), + 3: float64(412.05185430737856), + 4: float64(3874.7453891396053), + 5: float64(7914.479540318917), +} +var _ps8 = [5]float64{ + 0: float64(114.20737037567841), + 1: float64(3650.9308342085346), + 2: float64(36956.206026903346), + 3: float64(97602.79359349508), + 4: float64(30804.27206278888), +} + +var _pr5 = [6]float64{ + 0: float64(1.3199051955624352e-11), + 1: float64(0.1171874931906141), + 2: float64(6.802751278684329), + 3: float64(108.30818299018911), + 4: float64(517.6361395331998), + 5: float64(528.7152013633375), +} +var _ps5 = [5]float64{ + 0: float64(59.28059872211313), + 1: float64(991.4014187336144), + 2: float64(5353.26695291488), + 3: float64(7844.690317495512), + 4: float64(1504.0468881036106), +} + +var _pr3 = [6]float64{ + 0: float64(3.025039161373736e-09), + 1: float64(0.11718686556725359), + 2: float64(3.9329775003331564), + 3: float64(35.11940355916369), + 4: float64(91.05501107507813), + 5: float64(48.55906851973649), +} +var _ps3 = [5]float64{ + 0: float64(34.79130950012515), + 1: float64(336.76245874782575), + 2: float64(1046.8713997577513), + 3: float64(890.8113463982564), + 4: float64(103.78793243963928), +} + +var _pr2 = [6]float64{ + 0: float64(1.0771083010687374e-07), + 1: float64(0.11717621946268335), + 2: float64(2.368514966676088), + 3: float64(12.242610914826123), + 4: float64(17.693971127168773), + 5: float64(5.073523125888185), +} +var _ps2 = [5]float64{ + 0: float64(21.43648593638214), + 1: float64(125.29022716840275), + 2: float64(232.2764690571628), + 3: float64(117.6793732871471), + 4: float64(8.364638933716183), +} + +func _pone(tls *TLS, x float64) (r1 float64) { + var ix Tuint32_t + var p, q uintptr + var r, s, z Tdouble_t + _, _, _, _, _, _ = ix, p, q, r, s, z + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x40200000) { + p = uintptr(unsafe.Pointer(&_pr8)) + q = uintptr(unsafe.Pointer(&_ps8)) + } else { + if ix >= uint32(0x40122E8B) { + p = uintptr(unsafe.Pointer(&_pr5)) + q = uintptr(unsafe.Pointer(&_ps5)) + } else { + if ix >= uint32(0x4006DB6D) { + p = uintptr(unsafe.Pointer(&_pr3)) + q = uintptr(unsafe.Pointer(&_ps3)) + } else { /*ix >= 0x40000000*/ + p = uintptr(unsafe.Pointer(&_pr2)) + q = uintptr(unsafe.Pointer(&_ps2)) + } + } + } + z = float64(1) / float64(x*x) + r = **(**float64)(__ccgo_up(p)) + float64(z*(**(**float64)(__ccgo_up(p + 1*8))+float64(z*(**(**float64)(__ccgo_up(p + 2*8))+float64(z*(**(**float64)(__ccgo_up(p + 3*8))+float64(z*(**(**float64)(__ccgo_up(p + 4*8))+float64(z***(**float64)(__ccgo_up(p + 5*8))))))))))) + s = float64(1) + float64(z*(**(**float64)(__ccgo_up(q))+float64(z*(**(**float64)(__ccgo_up(q + 1*8))+float64(z*(**(**float64)(__ccgo_up(q + 2*8))+float64(z*(**(**float64)(__ccgo_up(q + 3*8))+float64(z***(**float64)(__ccgo_up(q + 4*8))))))))))) + return float64(1) + r/s +} + +/* For x >= 8, the asymptotic expansions of qone is + * 3/8 s - 105/1024 s^3 - ..., where s = 1/x. + * We approximate pone by + * qone(x) = s*(0.375 + (R/S)) + * where R = qr1*s^2 + qr2*s^4 + ... + qr5*s^10 + * S = 1 + qs1*s^2 + ... + qs6*s^12 + * and + * | qone(x)/s -0.375-R/S | <= 2 ** ( -61.13) + */ + +var _qr8 = [6]float64{ + 1: -Float64FromFloat64(0.10253906249999271), + 2: -Float64FromFloat64(16.271753454459), + 3: -Float64FromFloat64(759.6017225139501), + 4: -Float64FromFloat64(11849.806670242959), + 5: -Float64FromFloat64(48438.512428575035), +} +var _qs8 = [6]float64{ + 0: float64(161.3953697007229), + 1: float64(7825.385999233485), + 2: float64(133875.33628724958), + 3: float64(719657.7236832409), + 4: float64(666601.2326177764), + 5: -Float64FromFloat64(294490.26430383464), +} + +var _qr5 = [6]float64{ + 0: -Float64FromFloat64(2.089799311417641e-11), + 1: -Float64FromFloat64(0.10253905024137543), + 2: -Float64FromFloat64(8.05644828123936), + 3: -Float64FromFloat64(183.66960747488838), + 4: -Float64FromFloat64(1373.1937606550816), + 5: -Float64FromFloat64(2612.4444045321566), +} +var _qs5 = [6]float64{ + 0: float64(81.27655013843358), + 1: float64(1991.7987346048596), + 2: float64(17468.48519249089), + 3: float64(49851.42709103523), + 4: float64(27948.075163891812), + 5: -Float64FromFloat64(4719.183547951285), +} + +var _qr3 = [6]float64{ + 0: -Float64FromFloat64(5.078312264617666e-09), + 1: -Float64FromFloat64(0.10253782982083709), + 2: -Float64FromFloat64(4.610115811394734), + 3: -Float64FromFloat64(57.847221656278364), + 4: -Float64FromFloat64(228.2445407376317), + 5: -Float64FromFloat64(219.21012847890933), +} +var _qs3 = [6]float64{ + 0: float64(47.66515503237295), + 1: float64(673.8651126766997), + 2: float64(3380.1528667952634), + 3: float64(5547.729097207228), + 4: float64(1903.119193388108), + 5: -Float64FromFloat64(135.20119144430734), +} + +var _qr2 = [6]float64{ + 0: -Float64FromFloat64(1.7838172751095887e-07), + 1: -Float64FromFloat64(0.10251704260798555), + 2: -Float64FromFloat64(2.7522056827818746), + 3: -Float64FromFloat64(19.663616264370372), + 4: -Float64FromFloat64(42.32531333728305), + 5: -Float64FromFloat64(21.371921170370406), +} +var _qs2 = [6]float64{ + 0: float64(29.533362906052385), + 1: float64(252.98154998219053), + 2: float64(757.5028348686454), + 3: float64(739.3932053204672), + 4: float64(155.94900333666612), + 5: -Float64FromFloat64(4.959498988226282), +} + +func _qone(tls *TLS, x float64) (r1 float64) { + var ix Tuint32_t + var p, q uintptr + var r, s, z Tdouble_t + _, _, _, _, _, _ = ix, p, q, r, s, z + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x40200000) { + p = uintptr(unsafe.Pointer(&_qr8)) + q = uintptr(unsafe.Pointer(&_qs8)) + } else { + if ix >= uint32(0x40122E8B) { + p = uintptr(unsafe.Pointer(&_qr5)) + q = uintptr(unsafe.Pointer(&_qs5)) + } else { + if ix >= uint32(0x4006DB6D) { + p = uintptr(unsafe.Pointer(&_qr3)) + q = uintptr(unsafe.Pointer(&_qs3)) + } else { /*ix >= 0x40000000*/ + p = uintptr(unsafe.Pointer(&_qr2)) + q = uintptr(unsafe.Pointer(&_qs2)) + } + } + } + z = float64(1) / float64(x*x) + r = **(**float64)(__ccgo_up(p)) + float64(z*(**(**float64)(__ccgo_up(p + 1*8))+float64(z*(**(**float64)(__ccgo_up(p + 2*8))+float64(z*(**(**float64)(__ccgo_up(p + 3*8))+float64(z*(**(**float64)(__ccgo_up(p + 4*8))+float64(z***(**float64)(__ccgo_up(p + 5*8))))))))))) + s = float64(1) + float64(z*(**(**float64)(__ccgo_up(q))+float64(z*(**(**float64)(__ccgo_up(q + 1*8))+float64(z*(**(**float64)(__ccgo_up(q + 2*8))+float64(z*(**(**float64)(__ccgo_up(q + 3*8))+float64(z*(**(**float64)(__ccgo_up(q + 4*8))+float64(z***(**float64)(__ccgo_up(q + 5*8))))))))))))) + return (float64(0.375) + r/s) / x +} + +var _invsqrtpi3 = float32(0.56418961287) /* 0x3f106ebb */ +var _tpi3 = float32(0.63661974669) /* 0x3f22f983 */ + +func _common3(tls *TLS, ix Tuint32_t, x float32, y1 int32, sign int32) (r float32) { + var c, cc, s, ss, z float64 + _, _, _, _, _ = c, cc, s, ss, z + s = float64(Xsinf(tls, x)) + if y1 != 0 { + s = -s + } + c = float64(Xcosf(tls, x)) + cc = s - c + if ix < uint32(0x7f000000) { + ss = -s - c + z = float64(Xcosf(tls, float32(Float32FromInt32(2)*x))) + if float64(s*c) > Float64FromInt32(0) { + cc = z / ss + } else { + ss = z / cc + } + if ix < uint32(0x58800000) { + if y1 != 0 { + ss = -ss + } + cc = float64(float64(_ponef(tls, x))*cc) - float64(float64(_qonef(tls, x))*ss) + } + } + if sign != 0 { + cc = -cc + } + return float32(float64(float64(_invsqrtpi3)*cc) / float64(Xsqrtf(tls, x))) +} + +// C documentation +// +// /* R0/S0 on [0,2] */ + +var _r001 = float32(-Float64FromFloat64(0.0625)) /* 0xbd800000 */ +var _r011 = float32(0.0014070566976) /* 0x3ab86cfd */ +var _r021 = float32(-Float64FromFloat64(1.5995563444e-05)) /* 0xb7862e36 */ +var _r031 = float32(4.9672799207e-08) /* 0x335557d2 */ +var _s011 = float32(0.019153760746) /* 0x3c9ce859 */ +var _s021 = float32(0.00018594678841) /* 0x3942fab6 */ +var _s031 = float32(1.1771846857e-06) /* 0x359dffc2 */ +var _s041 = float32(5.046362439e-09) /* 0x31ad6446 */ +var _s051 = float32(1.2354227016e-11) /* 0x2d59567e */ + +func Xj1f(tls *TLS, x float32) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var ix Tuint32_t + var r, s, z float32 + var sign int32 + _, _, _, _, _ = ix, r, s, sign, z + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x7f800000) { + return Float32FromInt32(1) / float32(x*x) + } + if ix >= uint32(0x40000000) { /* |x| >= 2 */ + return _common3(tls, ix, Xfabsf(tls, x), 0, sign) + } + if ix >= uint32(0x39000000) { /* |x| >= 2**-13 */ + z = float32(x * x) + r = float32(z * (_r001 + float32(z*(_r011+float32(z*(_r021+float32(z*_r031))))))) + s = Float32FromInt32(1) + float32(z*(_s011+float32(z*(_s021+float32(z*(_s031+float32(z*(_s041+float32(z*_s051))))))))) + z = Float32FromFloat32(0.5) + r/s + } else { + z = Float32FromFloat32(0.5) + } + return float32(z * x) +} + +var _U01 = [5]float32{ + 0: float32(-Float64FromFloat64(0.19605709612)), + 1: float32(0.050443872809), + 2: float32(-Float64FromFloat64(0.0019125689287)), + 3: float32(2.3525259166e-05), + 4: float32(-Float64FromFloat64(9.1909917899e-08)), +} +var _V01 = [5]float32{ + 0: float32(0.019916731864), + 1: float32(0.0002025525755), + 2: float32(1.3560879779e-06), + 3: float32(6.227414584e-09), + 4: float32(1.6655924903e-11), +} + +func Xy1f(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ix Tuint32_t + var u, v, z float32 + _, _, _, _ = ix, u, v, z + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + if ix&uint32(0x7fffffff) == uint32(0) { + return float32(-Int32FromInt32(1)) / Float32FromFloat32(0) + } + if ix>>int32(31) != 0 { + return Float32FromInt32(0) / Float32FromFloat32(0) + } + if ix >= uint32(0x7f800000) { + return Float32FromInt32(1) / x + } + if ix >= uint32(0x40000000) { /* |x| >= 2.0 */ + return _common3(tls, ix, x, int32(1), 0) + } + if ix < uint32(0x33000000) { /* x < 2**-25 */ + return -_tpi3 / x + } + z = float32(x * x) + u = _U01[0] + float32(z*(_U01[int32(1)]+float32(z*(_U01[int32(2)]+float32(z*(_U01[int32(3)]+float32(z*_U01[int32(4)]))))))) + v = Float32FromFloat32(1) + float32(z*(_V01[0]+float32(z*(_V01[int32(1)]+float32(z*(_V01[int32(2)]+float32(z*(_V01[int32(3)]+float32(z*_V01[int32(4)]))))))))) + return float32(x*(u/v)) + float32(_tpi3*(float32(Xj1f(tls, x)*Xlogf(tls, x))-Float32FromFloat32(1)/x)) +} + +/* For x >= 8, the asymptotic expansions of pone is + * 1 + 15/128 s^2 - 4725/2^15 s^4 - ..., where s = 1/x. + * We approximate pone by + * pone(x) = 1 + (R/S) + * where R = pr0 + pr1*s^2 + pr2*s^4 + ... + pr5*s^10 + * S = 1 + ps0*s^2 + ... + ps4*s^10 + * and + * | pone(x)-1-R/S | <= 2 ** ( -60.06) + */ + +var _pr81 = [6]float32{ + 1: float32(0.1171875), + 2: float32(13.239480972), + 3: float32(412.05184937), + 4: float32(3874.7453613), + 5: float32(7914.4794922), +} +var _ps81 = [5]float32{ + 0: float32(114.20736694), + 1: float32(3650.9309082), + 2: float32(36956.207031), + 3: float32(97602.796875), + 4: float32(30804.271484), +} + +var _pr51 = [6]float32{ + 0: float32(1.3199052094e-11), + 1: float32(0.11718749255), + 2: float32(6.8027510643), + 3: float32(108.30818176), + 4: float32(517.63616943), + 5: float32(528.71520996), +} +var _ps51 = [5]float32{ + 0: float32(59.280597687), + 1: float32(991.40142822), + 2: float32(5353.2670898), + 3: float32(7844.6904297), + 4: float32(1504.046875), +} + +var _pr31 = [6]float32{ + 0: float32(3.0250391081e-09), + 1: float32(0.1171868667), + 2: float32(3.932977438), + 3: float32(35.119403839), + 4: float32(91.055007935), + 5: float32(48.559066772), +} +var _ps31 = [5]float32{ + 0: float32(34.791309357), + 1: float32(336.76245117), + 2: float32(1046.87146), + 3: float32(890.81134033), + 4: float32(103.78793335), +} + +var _pr21 = [6]float32{ + 0: float32(1.0771083225e-07), + 1: float32(0.11717621982), + 2: float32(2.3685150146), + 3: float32(12.242610931), + 4: float32(17.693971634), + 5: float32(5.0735230446), +} +var _ps21 = [5]float32{ + 0: float32(21.436485291), + 1: float32(125.2902298), + 2: float32(232.276474), + 3: float32(117.67937469), + 4: float32(8.3646392822), +} + +func _ponef(tls *TLS, x float32) (r1 float32) { + var ix Tuint32_t + var p, q uintptr + var r, s, z Tfloat_t + _, _, _, _, _, _ = ix, p, q, r, s, z + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x41000000) { + p = uintptr(unsafe.Pointer(&_pr81)) + q = uintptr(unsafe.Pointer(&_ps81)) + } else { + if ix >= uint32(0x409173eb) { + p = uintptr(unsafe.Pointer(&_pr51)) + q = uintptr(unsafe.Pointer(&_ps51)) + } else { + if ix >= uint32(0x4036d917) { + p = uintptr(unsafe.Pointer(&_pr31)) + q = uintptr(unsafe.Pointer(&_ps31)) + } else { /*ix >= 0x40000000*/ + p = uintptr(unsafe.Pointer(&_pr21)) + q = uintptr(unsafe.Pointer(&_ps21)) + } + } + } + z = Float32FromFloat32(1) / float32(x*x) + r = **(**float32)(__ccgo_up(p)) + float32(z*(**(**float32)(__ccgo_up(p + 1*4))+float32(z*(**(**float32)(__ccgo_up(p + 2*4))+float32(z*(**(**float32)(__ccgo_up(p + 3*4))+float32(z*(**(**float32)(__ccgo_up(p + 4*4))+float32(z***(**float32)(__ccgo_up(p + 5*4))))))))))) + s = Float32FromFloat32(1) + float32(z*(**(**float32)(__ccgo_up(q))+float32(z*(**(**float32)(__ccgo_up(q + 1*4))+float32(z*(**(**float32)(__ccgo_up(q + 2*4))+float32(z*(**(**float32)(__ccgo_up(q + 3*4))+float32(z***(**float32)(__ccgo_up(q + 4*4))))))))))) + return Float32FromFloat32(1) + r/s +} + +/* For x >= 8, the asymptotic expansions of qone is + * 3/8 s - 105/1024 s^3 - ..., where s = 1/x. + * We approximate pone by + * qone(x) = s*(0.375 + (R/S)) + * where R = qr1*s^2 + qr2*s^4 + ... + qr5*s^10 + * S = 1 + qs1*s^2 + ... + qs6*s^12 + * and + * | qone(x)/s -0.375-R/S | <= 2 ** ( -61.13) + */ + +var _qr81 = [6]float32{ + 1: float32(-Float64FromFloat64(0.1025390625)), + 2: float32(-Float64FromFloat64(16.271753311)), + 3: float32(-Float64FromFloat64(759.60174561)), + 4: float32(-Float64FromFloat64(11849.806641)), + 5: float32(-Float64FromFloat64(48438.511719)), +} +var _qs81 = [6]float32{ + 0: float32(161.39537048), + 1: float32(7825.3862305), + 2: float32(133875.34375), + 3: float32(719657.75), + 4: float32(666601.25), + 5: float32(-Float64FromFloat64(294490.25)), +} + +var _qr51 = [6]float32{ + 0: float32(-Float64FromFloat64(2.0897993405e-11)), + 1: float32(-Float64FromFloat64(0.1025390476)), + 2: float32(-Float64FromFloat64(8.0564479828)), + 3: float32(-Float64FromFloat64(183.66960144)), + 4: float32(-Float64FromFloat64(1373.1937256)), + 5: float32(-Float64FromFloat64(2612.4443359)), +} +var _qs51 = [6]float32{ + 0: float32(81.276550293), + 1: float32(1991.7987061), + 2: float32(17468.484375), + 3: float32(49851.425781), + 4: float32(27948.074219), + 5: float32(-Float64FromFloat64(4719.1835938)), +} + +var _qr31 = [6]float32{ + 0: float32(-Float64FromFloat64(5.0783124372e-09)), + 1: float32(-Float64FromFloat64(0.10253783315)), + 2: float32(-Float64FromFloat64(4.6101160049)), + 3: float32(-Float64FromFloat64(57.847221375)), + 4: float32(-Float64FromFloat64(228.24453735)), + 5: float32(-Float64FromFloat64(219.21012878)), +} +var _qs31 = [6]float32{ + 0: float32(47.665153503), + 1: float32(673.8651123), + 2: float32(3380.152832), + 3: float32(5547.7290039), + 4: float32(1903.1191406), + 5: float32(-Float64FromFloat64(135.20118713)), +} + +var _qr21 = [6]float32{ + 0: float32(-Float64FromFloat64(1.7838172539e-07)), + 1: float32(-Float64FromFloat64(0.10251704603)), + 2: float32(-Float64FromFloat64(2.7522056103)), + 3: float32(-Float64FromFloat64(19.66361618)), + 4: float32(-Float64FromFloat64(42.325313568)), + 5: float32(-Float64FromFloat64(21.371921539)), +} +var _qs21 = [6]float32{ + 0: float32(29.533363342), + 1: float32(252.98155212), + 2: float32(757.50280762), + 3: float32(739.39318848), + 4: float32(155.94900513), + 5: float32(-Float64FromFloat64(4.9594988823)), +} + +func _qonef(tls *TLS, x float32) (r1 float32) { + var ix Tuint32_t + var p, q uintptr + var r, s, z Tfloat_t + _, _, _, _, _, _ = ix, p, q, r, s, z + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x41000000) { + p = uintptr(unsafe.Pointer(&_qr81)) + q = uintptr(unsafe.Pointer(&_qs81)) + } else { + if ix >= uint32(0x409173eb) { + p = uintptr(unsafe.Pointer(&_qr51)) + q = uintptr(unsafe.Pointer(&_qs51)) + } else { + if ix >= uint32(0x4036d917) { + p = uintptr(unsafe.Pointer(&_qr31)) + q = uintptr(unsafe.Pointer(&_qs31)) + } else { /*ix >= 0x40000000*/ + p = uintptr(unsafe.Pointer(&_qr21)) + q = uintptr(unsafe.Pointer(&_qs21)) + } + } + } + z = Float32FromFloat32(1) / float32(x*x) + r = **(**float32)(__ccgo_up(p)) + float32(z*(**(**float32)(__ccgo_up(p + 1*4))+float32(z*(**(**float32)(__ccgo_up(p + 2*4))+float32(z*(**(**float32)(__ccgo_up(p + 3*4))+float32(z*(**(**float32)(__ccgo_up(p + 4*4))+float32(z***(**float32)(__ccgo_up(p + 5*4))))))))))) + s = Float32FromFloat32(1) + float32(z*(**(**float32)(__ccgo_up(q))+float32(z*(**(**float32)(__ccgo_up(q + 1*4))+float32(z*(**(**float32)(__ccgo_up(q + 2*4))+float32(z*(**(**float32)(__ccgo_up(q + 3*4))+float32(z*(**(**float32)(__ccgo_up(q + 4*4))+float32(z***(**float32)(__ccgo_up(q + 5*4))))))))))))) + return (Float32FromFloat32(0.375) + r/s) / x +} + +var _invsqrtpi4 = float64(0.5641895835477563) /* 0x3FE20DD7, 0x50429B6D */ + +func Xjn(tls *TLS, n int32, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v n=%v x=%v, (%v:)", tls, n, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __u Tuint64_t + var a, b, h, nf, q0, q1, t, temp, tmp, w, z, v6 float64 + var i, k, nm1, sign int32 + var ix, lx Tuint32_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = __u, a, b, h, i, ix, k, lx, nf, nm1, q0, q1, sign, t, temp, tmp, w, z, v6 + __u = *(*Tuint64_t)(unsafe.Pointer(&x)) + ix = uint32(__u >> int32(32)) + lx = uint32(__u) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix|(lx|-lx)>>int32(31) > uint32(0x7ff00000) { /* nan */ + return x + } + /* J(-n,x) = (-1)^n * J(n, x), J(n, -x) = (-1)^n * J(n, x) + * Thus, J(-n,x) = J(n,-x) + */ + /* nm1 = |n|-1 is used instead of |n| to handle n==INT_MIN */ + if n == 0 { + return Xj0(tls, x) + } + if n < 0 { + nm1 = -(n + int32(1)) + x = -x + sign = sign ^ int32(1) + } else { + nm1 = n - int32(1) + } + if nm1 == 0 { + return Xj1(tls, x) + } + sign = sign & n /* even n: 0, odd n: signbit(x) */ + x = Xfabs(tls, x) + if ix|lx == uint32(0) || ix == uint32(0x7ff00000) { /* if x is 0 or inf */ + b = float64(0) + } else { + if float64(nm1) < x { + /* Safe to use J(n+1,x)=2n/x *J(n,x)-J(n-1,x) */ + if ix >= uint32(0x52d00000) { /* x > 2**302 */ + /* (x >> n**2) + * Jn(x) = cos(x-(2n+1)*pi/4)*sqrt(2/x*pi) + * Yn(x) = sin(x-(2n+1)*pi/4)*sqrt(2/x*pi) + * Let s=sin(x), c=cos(x), + * xn=x-(2n+1)*pi/4, sqt2 = sqrt(2),then + * + * n sin(xn)*sqt2 cos(xn)*sqt2 + * ---------------------------------- + * 0 s-c c+s + * 1 -s-c -c+s + * 2 -s+c -c-s + * 3 s+c c-s + */ + switch nm1 & Int32FromInt32(3) { + case 0: + temp = -Xcos(tls, x) + Xsin(tls, x) + case int32(1): + temp = -Xcos(tls, x) - Xsin(tls, x) + case int32(2): + temp = Xcos(tls, x) - Xsin(tls, x) + default: + fallthrough + case int32(3): + temp = Xcos(tls, x) + Xsin(tls, x) + break + } + b = float64(_invsqrtpi4*temp) / Xsqrt(tls, x) + } else { + a = Xj0(tls, x) + b = Xj1(tls, x) + i = 0 + for { + if !(i < nm1) { + break + } + i = i + 1 + temp = b + b = float64(b*(float64(float64(2)*float64(i))/x)) - a /* avoid underflow */ + a = temp + goto _1 + _1: + } + } + } else { + if ix < uint32(0x3e100000) { /* x < 2**-29 */ + /* x is tiny, return the first Taylor expansion of J(n,x) + * J(n,x) = 1/n!*(x/2)^n - ... + */ + if nm1 > int32(32) { /* underflow */ + b = float64(0) + } else { + temp = float64(x * float64(0.5)) + b = temp + a = float64(1) + i = int32(2) + for { + if !(i <= nm1+int32(1)) { + break + } + a = a * float64(i) /* a = n! */ + b = b * temp /* b = (x/2)^n */ + goto _2 + _2: + ; + i = i + 1 + } + b = b / a + } + } else { + nf = float64(nm1) + float64(1) + w = float64(Float64FromInt32(2)*nf) / x + h = Float64FromInt32(2) / x + z = w + h + q0 = w + q1 = float64(w*z) - float64(1) + k = int32(1) + for q1 < float64(1e+09) { + k = k + int32(1) + z = z + h + tmp = float64(z*q1) - q0 + q0 = q1 + q1 = tmp + } + t = float64(0) + i = k + for { + if !(i >= 0) { + break + } + t = Float64FromInt32(1) / (float64(Float64FromInt32(2)*(float64(i)+nf))/x - t) + goto _3 + _3: + ; + i = i - 1 + } + a = t + b = float64(1) + /* estimate log((2/x)^n*n!) = n*log(2/x)+n*ln(n) + * Hence, if n*(log(2n/x)) > ... + * single 8.8722839355e+01 + * double 7.09782712893383973096e+02 + * long double 1.1356523406294143949491931077970765006170e+04 + * then recurrent value may overflow and the result is + * likely underflow to zero + */ + tmp = float64(nf * Xlog(tls, Xfabs(tls, w))) + if tmp < float64(709.782712893384) { + i = nm1 + for { + if !(i > 0) { + break + } + temp = b + b = float64(b*float64(float64(2)*float64(i)))/x - a + a = temp + goto _4 + _4: + ; + i = i - 1 + } + } else { + i = nm1 + for { + if !(i > 0) { + break + } + temp = b + b = float64(b*float64(float64(2)*float64(i)))/x - a + a = temp + /* scale b to avoid spurious overflow */ + if b > float64(3.273390607896142e+150) { + a = a / b + t = t / b + b = float64(1) + } + goto _5 + _5: + ; + i = i - 1 + } + } + z = Xj0(tls, x) + w = Xj1(tls, x) + if Xfabs(tls, z) >= Xfabs(tls, w) { + b = float64(t*z) / b + } else { + b = float64(t*w) / a + } + } + } + } + if sign != 0 { + v6 = -b + } else { + v6 = b + } + return v6 +} + +func Xyn(tls *TLS, n int32, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v n=%v x=%v, (%v:)", tls, n, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __u Tuint64_t + var a, b, temp, v1 float64 + var i, nm1, sign int32 + var ib, ix, lx Tuint32_t + _, _, _, _, _, _, _, _, _, _, _ = __u, a, b, i, ib, ix, lx, nm1, sign, temp, v1 + __u = *(*Tuint64_t)(unsafe.Pointer(&x)) + ix = uint32(__u >> int32(32)) + lx = uint32(__u) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix|(lx|-lx)>>int32(31) > uint32(0x7ff00000) { /* nan */ + return x + } + if sign != 0 && ix|lx != uint32(0) { /* x < 0 */ + return Float64FromInt32(0) / Float64FromFloat64(0) + } + if ix == uint32(0x7ff00000) { + return float64(0) + } + if n == 0 { + return Xy0(tls, x) + } + if n < 0 { + nm1 = -(n + int32(1)) + sign = n & int32(1) + } else { + nm1 = n - int32(1) + sign = 0 + } + if nm1 == 0 { + if sign != 0 { + v1 = -Xy1(tls, x) + } else { + v1 = Xy1(tls, x) + } + return v1 + } + if ix >= uint32(0x52d00000) { /* x > 2**302 */ + /* (x >> n**2) + * Jn(x) = cos(x-(2n+1)*pi/4)*sqrt(2/x*pi) + * Yn(x) = sin(x-(2n+1)*pi/4)*sqrt(2/x*pi) + * Let s=sin(x), c=cos(x), + * xn=x-(2n+1)*pi/4, sqt2 = sqrt(2),then + * + * n sin(xn)*sqt2 cos(xn)*sqt2 + * ---------------------------------- + * 0 s-c c+s + * 1 -s-c -c+s + * 2 -s+c -c-s + * 3 s+c c-s + */ + switch nm1 & Int32FromInt32(3) { + case 0: + temp = -Xsin(tls, x) - Xcos(tls, x) + case int32(1): + temp = -Xsin(tls, x) + Xcos(tls, x) + case int32(2): + temp = Xsin(tls, x) + Xcos(tls, x) + default: + fallthrough + case int32(3): + temp = Xsin(tls, x) - Xcos(tls, x) + break + } + b = float64(_invsqrtpi4*temp) / Xsqrt(tls, x) + } else { + a = Xy0(tls, x) + b = Xy1(tls, x) + /* quit if b is -inf */ + ib = uint32(*(*Tuint64_t)(unsafe.Pointer(&b)) >> int32(32)) + i = 0 + for { + if !(i < nm1 && ib != uint32(0xfff00000)) { + break + } + i = i + 1 + temp = b + b = float64(float64(float64(2)*float64(i))/x*b) - a + ib = uint32(*(*Tuint64_t)(unsafe.Pointer(&b)) >> int32(32)) + a = temp + goto _2 + _2: + } + } + if sign != 0 { + v1 = -b + } else { + v1 = b + } + return v1 +} + +func Xjnf(tls *TLS, n int32, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v n=%v x=%v, (%v:)", tls, n, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, b, h, nf, q0, q1, t, temp, tmp, w, z, v6 float32 + var i, k, nm1, sign int32 + var ix Tuint32_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = a, b, h, i, ix, k, nf, nm1, q0, q1, sign, t, temp, tmp, w, z, v6 + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix > uint32(0x7f800000) { /* nan */ + return x + } + /* J(-n,x) = J(n,-x), use |n|-1 to avoid overflow in -n */ + if n == 0 { + return Xj0f(tls, x) + } + if n < 0 { + nm1 = -(n + int32(1)) + x = -x + sign = sign ^ int32(1) + } else { + nm1 = n - int32(1) + } + if nm1 == 0 { + return Xj1f(tls, x) + } + sign = sign & n /* even n: 0, odd n: signbit(x) */ + x = Xfabsf(tls, x) + if ix == uint32(0) || ix == uint32(0x7f800000) { /* if x is 0 or inf */ + b = Float32FromFloat32(0) + } else { + if float32(nm1) < x { + /* Safe to use J(n+1,x)=2n/x *J(n,x)-J(n-1,x) */ + a = Xj0f(tls, x) + b = Xj1f(tls, x) + i = 0 + for { + if !(i < nm1) { + break + } + i = i + 1 + temp = b + b = float32(b*(float32(Float32FromFloat32(2)*float32(i))/x)) - a + a = temp + goto _1 + _1: + } + } else { + if ix < uint32(0x35800000) { /* x < 2**-20 */ + /* x is tiny, return the first Taylor expansion of J(n,x) + * J(n,x) = 1/n!*(x/2)^n - ... + */ + if nm1 > int32(8) { /* underflow */ + nm1 = int32(8) + } + temp = float32(Float32FromFloat32(0.5) * x) + b = temp + a = Float32FromFloat32(1) + i = int32(2) + for { + if !(i <= nm1+int32(1)) { + break + } + a = a * float32(i) /* a = n! */ + b = b * temp /* b = (x/2)^n */ + goto _2 + _2: + ; + i = i + 1 + } + b = b / a + } else { + nf = float32(nm1) + Float32FromFloat32(1) + w = float32(Float32FromInt32(2)*nf) / x + h = Float32FromInt32(2) / x + z = w + h + q0 = w + q1 = float32(w*z) - Float32FromFloat32(1) + k = int32(1) + for q1 < Float32FromFloat32(10000) { + k = k + int32(1) + z = z + h + tmp = float32(z*q1) - q0 + q0 = q1 + q1 = tmp + } + t = Float32FromFloat32(0) + i = k + for { + if !(i >= 0) { + break + } + t = Float32FromFloat32(1) / (float32(Float32FromInt32(2)*(float32(i)+nf))/x - t) + goto _3 + _3: + ; + i = i - 1 + } + a = t + b = Float32FromFloat32(1) + /* estimate log((2/x)^n*n!) = n*log(2/x)+n*ln(n) + * Hence, if n*(log(2n/x)) > ... + * single 8.8722839355e+01 + * double 7.09782712893383973096e+02 + * long double 1.1356523406294143949491931077970765006170e+04 + * then recurrent value may overflow and the result is + * likely underflow to zero + */ + tmp = float32(nf * Xlogf(tls, Xfabsf(tls, w))) + if tmp < Float32FromFloat32(88.721679688) { + i = nm1 + for { + if !(i > 0) { + break + } + temp = b + b = float32(float32(Float32FromFloat32(2)*float32(i))*b)/x - a + a = temp + goto _4 + _4: + ; + i = i - 1 + } + } else { + i = nm1 + for { + if !(i > 0) { + break + } + temp = b + b = float32(float32(Float32FromFloat32(2)*float32(i))*b)/x - a + a = temp + /* scale b to avoid spurious overflow */ + if b > Float32FromFloat32(1.152921504606847e+18) { + a = a / b + t = t / b + b = Float32FromFloat32(1) + } + goto _5 + _5: + ; + i = i - 1 + } + } + z = Xj0f(tls, x) + w = Xj1f(tls, x) + if Xfabsf(tls, z) >= Xfabsf(tls, w) { + b = float32(t*z) / b + } else { + b = float32(t*w) / a + } + } + } + } + if sign != 0 { + v6 = -b + } else { + v6 = b + } + return v6 +} + +func Xynf(tls *TLS, n int32, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v n=%v x=%v, (%v:)", tls, n, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, b, temp, v1 float32 + var i, nm1, sign int32 + var ib, ix Tuint32_t + _, _, _, _, _, _, _, _, _ = a, b, i, ib, ix, nm1, sign, temp, v1 + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix > uint32(0x7f800000) { /* nan */ + return x + } + if sign != 0 && ix != uint32(0) { /* x < 0 */ + return Float32FromInt32(0) / Float32FromFloat32(0) + } + if ix == uint32(0x7f800000) { + return Float32FromFloat32(0) + } + if n == 0 { + return Xy0f(tls, x) + } + if n < 0 { + nm1 = -(n + int32(1)) + sign = n & int32(1) + } else { + nm1 = n - int32(1) + sign = 0 + } + if nm1 == 0 { + if sign != 0 { + v1 = -Xy1f(tls, x) + } else { + v1 = Xy1f(tls, x) + } + return v1 + } + a = Xy0f(tls, x) + b = Xy1f(tls, x) + /* quit if b is -inf */ + ib = *(*Tuint32_t)(unsafe.Pointer(&b)) + i = 0 + for { + if !(i < nm1 && ib != uint32(0xff800000)) { + break + } + i = i + 1 + temp = b + b = float32(float32(Float32FromFloat32(2)*float32(i))/x*b) - a + ib = *(*Tuint32_t)(unsafe.Pointer(&b)) + a = temp + goto _2 + _2: + } + if sign != 0 { + v1 = -b + } else { + v1 = b + } + return v1 +} + +func Xldexp(tls *TLS, x float64, n int32) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xscalbn(tls, x, n) +} + +func Xldexpf(tls *TLS, x float32, n int32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xscalbnf(tls, x, n) +} + +func Xldexpl(tls *TLS, x float64, n int32) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xscalbnl(tls, x, n) +} + +func Xlgamma(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lgamma_r(tls, x, uintptr(unsafe.Pointer(&Xsigngam))) +} + +var _pi2 = float64(3.141592653589793) /* 0x400921FB, 0x54442D18 */ +var _a0 = float64(0.07721566490153287) /* 0x3FB3C467, 0xE37DB0C8 */ +var _a1 = float64(0.3224670334241136) /* 0x3FD4A34C, 0xC4A60FAD */ +var _a2 = float64(0.06735230105312927) /* 0x3FB13E00, 0x1A5562A7 */ +var _a3 = float64(0.020580808432516733) /* 0x3F951322, 0xAC92547B */ +var _a4 = float64(0.007385550860814029) /* 0x3F7E404F, 0xB68FEFE8 */ +var _a5 = float64(0.0028905138367341563) /* 0x3F67ADD8, 0xCCB7926B */ +var _a6 = float64(0.0011927076318336207) /* 0x3F538A94, 0x116F3F5D */ +var _a7 = float64(0.0005100697921535113) /* 0x3F40B6C6, 0x89B99C00 */ +var _a8 = float64(0.00022086279071390839) /* 0x3F2CF2EC, 0xED10E54D */ +var _a9 = float64(0.00010801156724758394) /* 0x3F1C5088, 0x987DFB07 */ +var _a10 = float64(2.5214456545125733e-05) /* 0x3EFA7074, 0x428CFA52 */ +var _a11 = float64(4.4864094961891516e-05) /* 0x3F07858E, 0x90A45837 */ +var _tc = float64(1.4616321449683622) /* 0x3FF762D8, 0x6356BE3F */ +var _tf = -Float64FromFloat64(0.12148629053584961) /* 0xBFBF19B9, 0xBCC38A42 */ +/* tt = -(tail of tf) */ +var _tt = -Float64FromFloat64(3.638676997039505e-18) /* 0xBC50C7CA, 0xA48A971F */ +var _t0 = float64(0.48383612272381005) /* 0x3FDEF72B, 0xC8EE38A2 */ +var _t1 = -Float64FromFloat64(0.1475877229945939) /* 0xBFC2E427, 0x8DC6C509 */ +var _t2 = float64(0.06462494023913339) /* 0x3FB08B42, 0x94D5419B */ +var _t3 = -Float64FromFloat64(0.032788541075985965) /* 0xBFA0C9A8, 0xDF35B713 */ +var _t4 = float64(0.01797067508118204) /* 0x3F9266E7, 0x970AF9EC */ +var _t5 = -Float64FromFloat64(0.010314224129834144) /* 0xBF851F9F, 0xBA91EC6A */ +var _t6 = float64(0.006100538702462913) /* 0x3F78FCE0, 0xE370E344 */ +var _t7 = -Float64FromFloat64(0.0036845201678113826) /* 0xBF6E2EFF, 0xB3E914D7 */ +var _t8 = float64(0.0022596478090061247) /* 0x3F6282D3, 0x2E15C915 */ +var _t9 = -Float64FromFloat64(0.0014034646998923284) /* 0xBF56FE8E, 0xBF2D1AF1 */ +var _t10 = float64(0.000881081882437654) /* 0x3F4CDF0C, 0xEF61A8E9 */ +var _t11 = -Float64FromFloat64(0.0005385953053567405) /* 0xBF41A610, 0x9C73E0EC */ +var _t12 = float64(0.00031563207090362595) /* 0x3F34AF6D, 0x6C0EBBF7 */ +var _t13 = -Float64FromFloat64(0.00031275416837512086) /* 0xBF347F24, 0xECC38C38 */ +var _t14 = float64(0.0003355291926355191) /* 0x3F35FD3E, 0xE8C2D3F4 */ +var _u0 = -Float64FromFloat64(0.07721566490153287) /* 0xBFB3C467, 0xE37DB0C8 */ +var _u1 = float64(0.6328270640250934) /* 0x3FE4401E, 0x8B005DFF */ +var _u2 = float64(1.4549225013723477) /* 0x3FF7475C, 0xD119BD6F */ +var _u3 = float64(0.9777175279633727) /* 0x3FEF4976, 0x44EA8450 */ +var _u4 = float64(0.22896372806469245) /* 0x3FCD4EAE, 0xF6010924 */ +var _u5 = float64(0.013381091853678766) /* 0x3F8B678B, 0xBF2BAB09 */ +var _v1 = float64(2.4559779371304113) /* 0x4003A5D7, 0xC2BD619C */ +var _v2 = float64(2.128489763798934) /* 0x40010725, 0xA42B18F5 */ +var _v3 = float64(0.7692851504566728) /* 0x3FE89DFB, 0xE45050AF */ +var _v4 = float64(0.10422264559336913) /* 0x3FBAAE55, 0xD6537C88 */ +var _v5 = float64(0.003217092422824239) /* 0x3F6A5ABB, 0x57D0CF61 */ +var _s0 = -Float64FromFloat64(0.07721566490153287) /* 0xBFB3C467, 0xE37DB0C8 */ +var _s1 = float64(0.21498241596060885) /* 0x3FCB848B, 0x36E20878 */ +var _s2 = float64(0.325778796408931) /* 0x3FD4D98F, 0x4F139F59 */ +var _s3 = float64(0.14635047265246445) /* 0x3FC2BB9C, 0xBEE5F2F7 */ +var _s4 = float64(0.02664227030336386) /* 0x3F9B481C, 0x7E939961 */ +var _s5 = float64(0.0018402845140733772) /* 0x3F5E26B6, 0x7368F239 */ +var _s6 = float64(3.194753265841009e-05) /* 0x3F00BFEC, 0xDD17E945 */ +var _r1 = float64(1.3920053346762105) /* 0x3FF645A7, 0x62C4AB74 */ +var _r2 = float64(0.7219355475671381) /* 0x3FE71A18, 0x93D3DCDC */ +var _r3 = float64(0.17193386563280308) /* 0x3FC601ED, 0xCCFBDF27 */ +var _r4 = float64(0.01864591917156529) /* 0x3F9317EA, 0x742ED475 */ +var _r5 = float64(0.0007779424963818936) /* 0x3F497DDA, 0xCA41A95B */ +var _r6 = float64(7.326684307446256e-06) /* 0x3EDEBAF7, 0xA5B38140 */ +var _w0 = float64(0.4189385332046727) /* 0x3FDACFE3, 0x90C97D69 */ +var _w1 = float64(0.08333333333333297) /* 0x3FB55555, 0x5555553B */ +var _w2 = -Float64FromFloat64(0.0027777777772877554) /* 0xBF66C16C, 0x16B02E5C */ +var _w3 = float64(0.0007936505586430196) /* 0x3F4A019F, 0x98CF38B6 */ +var _w4 = -Float64FromFloat64(0.00059518755745034) /* 0xBF4380CB, 0x8C0FE741 */ +var _w5 = float64(0.0008363399189962821) /* 0x3F4B67BA, 0x4CDAD5D1 */ +var _w6 = -Float64FromFloat64(0.0016309293409657527) /* 0xBF5AB89D, 0x0B9E43E4 */ + +// C documentation +// +// /* sin(pi*x) assuming x > 2^-100, if sin(pi*x)==0 the sign is arbitrary */ +func _sin_pi(tls *TLS, x float64) (r float64) { + var n int32 + _ = n + /* spurious inexact if odd int */ + x = float64(float64(2) * (float64(x*float64(0.5)) - Xfloor(tls, float64(x*float64(0.5))))) /* x mod 2.0 */ + n = int32(float64(x * Float64FromFloat64(4))) + n = (n + int32(1)) / int32(2) + x = x - float64(float32(n)*Float32FromFloat32(0.5)) + x = x * _pi2 + switch n { + default: /* case 4: */ + fallthrough + case 0: + return X__sin(tls, x, float64(0), 0) + case int32(1): + return X__cos(tls, x, float64(0)) + case int32(2): + return X__sin(tls, -x, float64(0), 0) + case int32(3): + return -X__cos(tls, x, float64(0)) + } + return r +} + +func X__lgamma_r(tls *TLS, x float64, signgamp uintptr) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x=%v signgamp=%v, (%v:)", tls, x, signgamp, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var i, sign int32 + var ix Tuint32_t + var nadj, p, p1, p2, p3, q, r, t, w, y, z Tdouble_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = i, ix, nadj, p, p1, p2, p3, q, r, sign, t, w, y, z + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + /* purge off +-inf, NaN, +-0, tiny and negative arguments */ + **(**int32)(__ccgo_up(signgamp)) = int32(1) + sign = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(63)) + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32) & uint64(0x7fffffff)) + if ix >= uint32(0x7ff00000) { + return float64(x * x) + } + if ix < Uint32FromInt32((Int32FromInt32(0x3ff)-Int32FromInt32(70))< float64(0) { + **(**int32)(__ccgo_up(signgamp)) = -int32(1) + } else { + t = -t + } + nadj = Xlog(tls, _pi2/Tdouble_t(t*x)) + } + /* purge off 1 and 2 */ + if (ix == uint32(0x3ff00000) || ix == uint32(0x40000000)) && uint32(*(*Tuint64_t)(unsafe.Pointer(bp))) == uint32(0) { + r = Float64FromInt32(0) + } else { + if ix < uint32(0x40000000) { + if ix <= uint32(0x3feccccc) { /* lgamma(x) = lgamma(x+1)-log(x) */ + r = -Xlog(tls, x) + if ix >= uint32(0x3FE76944) { + y = float64(1) - x + i = 0 + } else { + if ix >= uint32(0x3FCDA661) { + y = x - (_tc - Float64FromFloat64(1)) + i = int32(1) + } else { + y = x + i = int32(2) + } + } + } else { + r = float64(0) + if ix >= uint32(0x3FFBB4C3) { /* [1.7316,2] */ + y = float64(2) - x + i = 0 + } else { + if ix >= uint32(0x3FF3B4C4) { /* [1.23,1.73] */ + y = x - _tc + i = int32(1) + } else { + y = x - float64(1) + i = int32(2) + } + } + } + switch i { + case 0: + z = Tdouble_t(y * y) + p1 = _a0 + float64(z*(_a2+float64(z*(_a4+float64(z*(_a6+float64(z*(_a8+float64(z*_a10))))))))) + p2 = Tdouble_t(z * (_a1 + float64(z*(_a3+float64(z*(_a5+float64(z*(_a7+float64(z*(_a9+float64(z*_a11))))))))))) + p = Tdouble_t(y*p1) + p2 + r = r + (p - Tdouble_t(float64(0.5)*y)) + case int32(1): + z = Tdouble_t(y * y) + w = Tdouble_t(z * y) + p1 = _t0 + float64(w*(_t3+float64(w*(_t6+float64(w*(_t9+float64(w*_t12))))))) /* parallel comp */ + p2 = _t1 + float64(w*(_t4+float64(w*(_t7+float64(w*(_t10+float64(w*_t13))))))) + p3 = _t2 + float64(w*(_t5+float64(w*(_t8+float64(w*(_t11+float64(w*_t14))))))) + p = Tdouble_t(z*p1) - (_tt - float64(w*(p2+Tdouble_t(y*p3)))) + r = r + (_tf + p) + case int32(2): + p1 = Tdouble_t(y * (_u0 + float64(y*(_u1+float64(y*(_u2+float64(y*(_u3+float64(y*(_u4+float64(y*_u5))))))))))) + p2 = float64(1) + float64(y*(_v1+float64(y*(_v2+float64(y*(_v3+float64(y*(_v4+float64(y*_v5))))))))) + r = r + (float64(-Float64FromFloat64(0.5)*y) + p1/p2) + } + } else { + if ix < uint32(0x40200000) { /* x < 8.0 */ + i = int32(x) + y = x - float64(i) + p = Tdouble_t(y * (_s0 + float64(y*(_s1+float64(y*(_s2+float64(y*(_s3+float64(y*(_s4+float64(y*(_s5+float64(y*_s6))))))))))))) + q = float64(1) + float64(y*(_r1+float64(y*(_r2+float64(y*(_r3+float64(y*(_r4+float64(y*(_r5+float64(y*_r6))))))))))) + r = float64(float64(0.5)*y) + p/q + z = float64(1) /* lgamma(1+s) = log(s) + lgamma(s) */ + switch i { + case int32(7): + z = z * (y + float64(6)) /* FALLTHRU */ + fallthrough + case int32(6): + z = z * (y + float64(5)) /* FALLTHRU */ + fallthrough + case int32(5): + z = z * (y + float64(4)) /* FALLTHRU */ + fallthrough + case int32(4): + z = z * (y + float64(3)) /* FALLTHRU */ + fallthrough + case int32(3): + z = z * (y + float64(2)) /* FALLTHRU */ + r = r + Xlog(tls, z) + break + } + } else { + if ix < uint32(0x43900000) { /* 8.0 <= x < 2**58 */ + t = Xlog(tls, x) + z = float64(1) / x + y = Tdouble_t(z * z) + w = _w0 + float64(z*(_w1+float64(y*(_w2+float64(y*(_w3+float64(y*(_w4+float64(y*(_w5+float64(y*_w6))))))))))) + r = float64((x-float64(0.5))*(t-Float64FromFloat64(1))) + w + } else { /* 2**58 <= x <= inf */ + r = Tdouble_t(x * (Xlog(tls, x) - float64(1))) + } + } + } + } + if sign != 0 { + r = nadj - r + } + return r +} + +func Xlgamma_r(tls *TLS, x float64, signgamp uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v signgamp=%v, (%v:)", tls, x, signgamp, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lgamma_r(tls, x, signgamp) +} + +func Xlgammaf(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lgammaf_r(tls, x, uintptr(unsafe.Pointer(&Xsigngam))) +} + +var _pi3 = float32(3.141592741) /* 0x40490fdb */ +var _a01 = float32(0.077215664089) /* 0x3d9e233f */ +var _a12 = float32(0.32246702909) /* 0x3ea51a66 */ +var _a21 = float32(0.067352302372) /* 0x3d89f001 */ +var _a31 = float32(0.020580807701) /* 0x3ca89915 */ +var _a41 = float32(0.0073855509982) /* 0x3bf2027e */ +var _a51 = float32(0.0028905137442) /* 0x3b3d6ec6 */ +var _a61 = float32(0.0011927076848) /* 0x3a9c54a1 */ +var _a71 = float32(0.00051006977446) /* 0x3a05b634 */ +var _a81 = float32(0.00022086278477) /* 0x39679767 */ +var _a91 = float32(0.00010801156895) /* 0x38e28445 */ +var _a101 = float32(2.52144564e-05) /* 0x37d383a2 */ +var _a111 = float32(4.4864096708e-05) /* 0x383c2c75 */ +var _tc1 = float32(1.4616321325) /* 0x3fbb16c3 */ +var _tf1 = float32(-Float64FromFloat64(0.12148628384)) /* 0xbdf8cdcd */ +/* tt = -(tail of tf) */ +var _tt1 = float32(6.6971006518e-09) /* 0x31e61c52 */ +var _t01 = float32(0.48383611441) /* 0x3ef7b95e */ +var _t15 = float32(-Float64FromFloat64(0.14758771658)) /* 0xbe17213c */ +var _t21 = float32(0.064624942839) /* 0x3d845a15 */ +var _t31 = float32(-Float64FromFloat64(0.032788541168)) /* 0xbd064d47 */ +var _t41 = float32(0.017970675603) /* 0x3c93373d */ +var _t51 = float32(-Float64FromFloat64(0.010314224288)) /* 0xbc28fcfe */ +var _t61 = float32(0.0061005386524) /* 0x3bc7e707 */ +var _t71 = float32(-Float64FromFloat64(0.0036845202558)) /* 0xbb7177fe */ +var _t81 = float32(0.0022596477065) /* 0x3b141699 */ +var _t91 = float32(-Float64FromFloat64(0.0014034647029)) /* 0xbab7f476 */ +var _t101 = float32(0.00088108185446) /* 0x3a66f867 */ +var _t111 = float32(-Float64FromFloat64(0.00053859531181)) /* 0xba0d3085 */ +var _t121 = float32(0.00031563205994) /* 0x39a57b6b */ +var _t131 = float32(-Float64FromFloat64(0.00031275415677)) /* 0xb9a3f927 */ +var _t141 = float32(0.00033552918467) /* 0x39afe9f7 */ +var _u07 = float32(-Float64FromFloat64(0.077215664089)) /* 0xbd9e233f */ +var _u11 = float32(0.63282704353) /* 0x3f2200f4 */ +var _u21 = float32(1.4549225569) /* 0x3fba3ae7 */ +var _u31 = float32(0.97771751881) /* 0x3f7a4bb2 */ +var _u41 = float32(0.22896373272) /* 0x3e6a7578 */ +var _u51 = float32(0.013381091878) /* 0x3c5b3c5e */ +var _v11 = float32(2.4559779167) /* 0x401d2ebe */ +var _v21 = float32(2.1284897327) /* 0x4008392d */ +var _v31 = float32(0.76928514242) /* 0x3f44efdf */ +var _v41 = float32(0.10422264785) /* 0x3dd572af */ +var _v51 = float32(0.0032170924824) /* 0x3b52d5db */ +var _s06 = float32(-Float64FromFloat64(0.077215664089)) /* 0xbd9e233f */ +var _s11 = float32(0.21498242021) /* 0x3e5c245a */ +var _s21 = float32(0.32577878237) /* 0x3ea6cc7a */ +var _s31 = float32(0.14635047317) /* 0x3e15dce6 */ +var _s41 = float32(0.026642270386) /* 0x3cda40e4 */ +var _s51 = float32(0.0018402845599) /* 0x3af135b4 */ +var _s61 = float32(3.1947532989e-05) /* 0x3805ff67 */ +var _r11 = float32(1.3920053244) /* 0x3fb22d3b */ +var _r21 = float32(0.72193557024) /* 0x3f38d0c5 */ +var _r31 = float32(0.17193385959) /* 0x3e300f6e */ +var _r41 = float32(0.018645919859) /* 0x3c98bf54 */ +var _r51 = float32(0.00077794247773) /* 0x3a4beed6 */ +var _r61 = float32(7.3266842264e-06) /* 0x36f5d7bd */ +var _w01 = float32(0.41893854737) /* 0x3ed67f1d */ +var _w11 = float32(0.083333335817) /* 0x3daaaaab */ +var _w21 = float32(-Float64FromFloat64(0.002777777845)) /* 0xbb360b61 */ +var _w31 = float32(0.00079365057172) /* 0x3a500cfd */ +var _w41 = float32(-Float64FromFloat64(0.00059518753551)) /* 0xba1c065c */ +var _w51 = float32(0.00083633989561) /* 0x3a5b3dd2 */ +var _w61 = float32(-Float64FromFloat64(0.0016309292987)) /* 0xbad5c4e8 */ + +// C documentation +// +// /* sin(pi*x) assuming x > 2^-100, if sin(pi*x)==0 the sign is arbitrary */ +func _sin_pi1(tls *TLS, x float32) (r float32) { + var n int32 + var y Tdouble_t + _, _ = n, y + /* spurious inexact if odd int */ + x = float32(Float32FromInt32(2) * (float32(x*Float32FromFloat32(0.5)) - Xfloorf(tls, float32(x*Float32FromFloat32(0.5))))) /* x mod 2.0 */ + n = int32(float32(x * Float32FromInt32(4))) + n = (n + int32(1)) / int32(2) + y = float64(x - float32(float32(n)*Float32FromFloat32(0.5))) + y = y * float64(3.141592653589793) + switch n { + default: /* case 4: */ + fallthrough + case 0: + return X__sindf(tls, y) + case int32(1): + return X__cosdf(tls, y) + case int32(2): + return X__sindf(tls, -y) + case int32(3): + return -X__cosdf(tls, y) + } + return r +} + +func X__lgammaf_r(tls *TLS, x float32, signgamp uintptr) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x=%v signgamp=%v, (%v:)", tls, x, signgamp, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var i, sign int32 + var ix Tuint32_t + var nadj, p, p1, p2, p3, q, r, t, w, y, z float32 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = i, ix, nadj, p, p1, p2, p3, q, r, sign, t, w, y, z + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + /* purge off +-inf, NaN, +-0, tiny and negative arguments */ + **(**int32)(__ccgo_up(signgamp)) = int32(1) + sign = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(31)) + ix = *(*Tuint32_t)(unsafe.Pointer(bp)) & uint32(0x7fffffff) + if ix >= uint32(0x7f800000) { + return float32(x * x) + } + if ix < uint32(0x35000000) { /* |x| < 2**-21, return -log(|x|) */ + if sign != 0 { + **(**int32)(__ccgo_up(signgamp)) = -int32(1) + x = -x + } + return -Xlogf(tls, x) + } + if sign != 0 { + x = -x + t = _sin_pi1(tls, x) + if t == Float32FromFloat32(0) { /* -integer */ + return Float32FromFloat32(1) / (x - x) + } + if t > Float32FromFloat32(0) { + **(**int32)(__ccgo_up(signgamp)) = -int32(1) + } else { + t = -t + } + nadj = Xlogf(tls, _pi3/float32(t*x)) + } + /* purge off 1 and 2 */ + if ix == uint32(0x3f800000) || ix == uint32(0x40000000) { + r = Float32FromInt32(0) + } else { + if ix < uint32(0x40000000) { + if ix <= uint32(0x3f666666) { /* lgamma(x) = lgamma(x+1)-log(x) */ + r = -Xlogf(tls, x) + if ix >= uint32(0x3f3b4a20) { + y = Float32FromFloat32(1) - x + i = 0 + } else { + if ix >= uint32(0x3e6d3308) { + y = x - (_tc1 - Float32FromFloat32(1)) + i = int32(1) + } else { + y = x + i = int32(2) + } + } + } else { + r = Float32FromFloat32(0) + if ix >= uint32(0x3fdda618) { /* [1.7316,2] */ + y = Float32FromFloat32(2) - x + i = 0 + } else { + if ix >= uint32(0x3F9da620) { /* [1.23,1.73] */ + y = x - _tc1 + i = int32(1) + } else { + y = x - Float32FromFloat32(1) + i = int32(2) + } + } + } + switch i { + case 0: + z = float32(y * y) + p1 = _a01 + float32(z*(_a21+float32(z*(_a41+float32(z*(_a61+float32(z*(_a81+float32(z*_a101))))))))) + p2 = float32(z * (_a12 + float32(z*(_a31+float32(z*(_a51+float32(z*(_a71+float32(z*(_a91+float32(z*_a111))))))))))) + p = float32(y*p1) + p2 + r = r + (p - float32(Float32FromFloat32(0.5)*y)) + case int32(1): + z = float32(y * y) + w = float32(z * y) + p1 = _t01 + float32(w*(_t31+float32(w*(_t61+float32(w*(_t91+float32(w*_t121))))))) /* parallel comp */ + p2 = _t15 + float32(w*(_t41+float32(w*(_t71+float32(w*(_t101+float32(w*_t131))))))) + p3 = _t21 + float32(w*(_t51+float32(w*(_t81+float32(w*(_t111+float32(w*_t141))))))) + p = float32(z*p1) - (_tt1 - float32(w*(p2+float32(y*p3)))) + r = r + (_tf1 + p) + case int32(2): + p1 = float32(y * (_u07 + float32(y*(_u11+float32(y*(_u21+float32(y*(_u31+float32(y*(_u41+float32(y*_u51))))))))))) + p2 = Float32FromFloat32(1) + float32(y*(_v11+float32(y*(_v21+float32(y*(_v31+float32(y*(_v41+float32(y*_v51))))))))) + r = r + (float32(-Float32FromFloat32(0.5)*y) + p1/p2) + } + } else { + if ix < uint32(0x41000000) { /* x < 8.0 */ + i = int32(x) + y = x - float32(i) + p = float32(y * (_s06 + float32(y*(_s11+float32(y*(_s21+float32(y*(_s31+float32(y*(_s41+float32(y*(_s51+float32(y*_s61))))))))))))) + q = Float32FromFloat32(1) + float32(y*(_r11+float32(y*(_r21+float32(y*(_r31+float32(y*(_r41+float32(y*(_r51+float32(y*_r61))))))))))) + r = float32(Float32FromFloat32(0.5)*y) + p/q + z = Float32FromFloat32(1) /* lgamma(1+s) = log(s) + lgamma(s) */ + switch i { + case int32(7): + z = z * (y + Float32FromFloat32(6)) /* FALLTHRU */ + fallthrough + case int32(6): + z = z * (y + Float32FromFloat32(5)) /* FALLTHRU */ + fallthrough + case int32(5): + z = z * (y + Float32FromFloat32(4)) /* FALLTHRU */ + fallthrough + case int32(4): + z = z * (y + Float32FromFloat32(3)) /* FALLTHRU */ + fallthrough + case int32(3): + z = z * (y + Float32FromFloat32(2)) /* FALLTHRU */ + r = r + Xlogf(tls, z) + break + } + } else { + if ix < uint32(0x5c800000) { /* 8.0 <= x < 2**58 */ + t = Xlogf(tls, x) + z = Float32FromFloat32(1) / x + y = float32(z * z) + w = _w01 + float32(z*(_w11+float32(y*(_w21+float32(y*(_w31+float32(y*(_w41+float32(y*(_w51+float32(y*_w61))))))))))) + r = float32((x-Float32FromFloat32(0.5))*(t-Float32FromFloat32(1))) + w + } else { /* 2**58 <= x <= inf */ + r = float32(x * (Xlogf(tls, x) - Float32FromFloat32(1))) + } + } + } + } + if sign != 0 { + r = nadj - r + } + return r +} + +func Xlgammaf_r(tls *TLS, x float32, signgamp uintptr) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v signgamp=%v, (%v:)", tls, x, signgamp, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lgammaf_r(tls, x, signgamp) +} + +func X__lgammal_r(tls *TLS, x float64, sg uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v sg=%v, (%v:)", tls, x, sg, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lgamma_r(tls, x, sg) +} + +func Xlgammal(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lgammal_r(tls, x, uintptr(unsafe.Pointer(&Xsigngam))) +} + +func Xlgammal_r(tls *TLS, x float64, sg uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v sg=%v, (%v:)", tls, x, sg, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lgammal_r(tls, x, sg) +} + +/* uses LLONG_MAX > 2^53, see comments in lrint.c */ + +func Xllrint(tls *TLS, x float64) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int64(Xrint(tls, x)) +} + +/* uses LLONG_MAX > 2^24, see comments in lrint.c */ + +func Xllrintf(tls *TLS, x float32) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int64(Xrintf(tls, x)) +} + +func Xllrintl(tls *TLS, x float64) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xllrint(tls, x) +} + +func Xllround(tls *TLS, x float64) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int64(Xround(tls, x)) +} + +func Xllroundf(tls *TLS, x float32) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int64(Xroundf(tls, x)) +} + +func Xllroundl(tls *TLS, x float64) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int64(Xroundl(tls, x)) +} + +const LOG_POLY1_ORDER = 12 +const LOG_POLY_ORDER = 6 +const LOG_TABLE_BITS = 7 +const N4 = 128 +const OFF = 4604367669032910848 + +// C documentation +// +// /* Top 16 bits of a double. */ +func _top16(tls *TLS, x float64) (r Tuint32_t) { + return uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(48)) +} + +func Xlog(tls *TLS, x1 float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x1=%v, (%v:)", tls, x1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var hi, invc, kd, lo, logc, r, r2, r3, rhi, rlo, w, y1, z Tdouble_t + var i, k int32 + var ix, iz, tmp Tuint64_t + var top Tuint32_t + var y, v1, v2, v3, v4 float64 + var v5 bool + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = hi, i, invc, ix, iz, k, kd, lo, logc, r, r2, r3, rhi, rlo, tmp, top, w, y, y1, z, v1, v2, v3, v4, v5 + ix = *(*Tuint64_t)(unsafe.Pointer(&x1)) + top = _top16(tls, x1) + v1 = Float64FromFloat64(1) - Float64FromFloat64(0.0625) + v2 = Float64FromFloat64(1) + Float64FromFloat64(0.064697265625) + v3 = Float64FromFloat64(1) - Float64FromFloat64(0.0625) + if ix-*(*Tuint64_t)(unsafe.Pointer(&v1)) < *(*Tuint64_t)(unsafe.Pointer(&v2))-*(*Tuint64_t)(unsafe.Pointer(&v3)) { + /* Handle close to 1.0 inputs separately. */ + /* Fix sign of zero with downward rounding when x==1. */ + if v5 = Bool(int32(WANT_ROUNDING) != 0); v5 { + v4 = float64(1) + } + if v5 && ix == *(*Tuint64_t)(unsafe.Pointer(&v4)) { + return Float64FromInt32(0) + } + r = x1 - float64(1) + r2 = Tdouble_t(r * r) + r3 = Tdouble_t(r * r2) + y1 = Tdouble_t(r3 * (**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56 + 1*8)) + float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56 + 2*8))) + float64(r2***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56 + 3*8))) + float64(r3*(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56 + 4*8))+float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56 + 5*8)))+float64(r2***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56 + 6*8)))+float64(r3*(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56 + 7*8))+float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56 + 8*8)))+float64(r2***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56 + 9*8)))+float64(r3***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56 + 10*8))))))))) + /* Worst-case error is around 0.507 ULP. */ + w = Tdouble_t(r * float64(1.34217728e+08)) + rhi = r + w - w + rlo = r - rhi + w = Tdouble_t(Tdouble_t(rhi*rhi) * **(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56))) /* B[0] == -0.5. */ + hi = r + w + lo = r - hi + w + lo = lo + Tdouble_t(float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56))*rlo)*(rhi+r)) + y1 = y1 + lo + y1 = y1 + hi + y = y1 + v1 = y + goto _7 + _7: + return v1 + } + if top-uint32(0x0010) >= Uint32FromInt32(Int32FromInt32(0x7ff0)-Int32FromInt32(0x0010)) { + /* x < 0x1p-1022 or inf or nan. */ + if ix*uint64(2) == uint64(0) { + return X__math_divzero(tls, uint32(1)) + } + v1 = float64(X__builtin_inff(tls)) + if ix == *(*Tuint64_t)(unsafe.Pointer(&v1)) { /* log(inf) == inf. */ + return x1 + } + if top&uint32(0x8000) != 0 || top&uint32(0x7ff0) == uint32(0x7ff0) { + return X__math_invalid(tls, x1) + } + /* x is subnormal, normalize it. */ + v1 = float64(x1 * float64(4.503599627370496e+15)) + ix = *(*Tuint64_t)(unsafe.Pointer(&v1)) + ix = uint64(ix - Uint64FromUint64(52)<> (Int32FromInt32(52) - Int32FromInt32(LOG_TABLE_BITS)) % Uint64FromInt32(Int32FromInt32(1)<> int32(52)) /* arithmetic shift */ + iz = uint64(ix - tmp&(Uint64FromUint64(0xfff)< 0x1p-5: + 0.5 + 4.13/N + abs-poly-error*2^57 ULP (+ 0.002 ULP without fma) + Worst case error if |y| > 0x1p-4: + 0.5 + 2.06/N + abs-poly-error*2^56 ULP (+ 0.001 ULP without fma). */ + y1 = lo + Tdouble_t(r2***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 16))) + Tdouble_t(Tdouble_t(r*r2)*(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 16 + 1*8))+float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 16 + 2*8)))+float64(r2*(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 16 + 3*8))+float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 16 + 4*8))))))) + hi + y = y1 + v1 = y + goto _11 +_11: + return v1 +} + +var _ivln10hi = float64(0.4342944818781689) /* 0x3fdbcb7b, 0x15200000 */ +var _ivln10lo = float64(2.5082946711645275e-11) /* 0x3dbb9438, 0xca9aadd5 */ +var _log10_2hi = float64(0.30102999566361177) /* 0x3FD34413, 0x509F6000 */ +var _log10_2lo = float64(3.694239077158931e-13) /* 0x3D59FEF3, 0x11F12B36 */ +var _Lg1 = float64(0.6666666666666735) /* 3FE55555 55555593 */ +var _Lg2 = float64(0.3999999999940942) /* 3FD99999 9997FA04 */ +var _Lg3 = float64(0.2857142874366239) /* 3FD24924 94229359 */ +var _Lg4 = float64(0.22222198432149784) /* 3FCC71C5 1D8E78AF */ +var _Lg5 = float64(0.1818357216161805) /* 3FC74664 96CB03DE */ +var _Lg6 = float64(0.15313837699209373) /* 3FC39A09 D078C69F */ +var _Lg7 = float64(0.14798198605116586) /* 3FC2F112 DF3E5244 */ + +func Xlog10(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var R, dk, f, hfsq, hi, lo, s, t1, t2, val_hi, val_lo, w, y, z Tdouble_t + var hx Tuint32_t + var k int32 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = R, dk, f, hfsq, hi, hx, k, lo, s, t1, t2, val_hi, val_lo, w, y, z + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + hx = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32)) + k = 0 + if hx < uint32(0x00100000) || hx>>int32(31) != 0 { + if *(*Tuint64_t)(unsafe.Pointer(bp))<>int32(31) != 0 { + return (x - x) / float64(0) + } /* log(-#) = NaN */ + /* subnormal number, scale x up */ + k = k - int32(54) + x = x * float64(1.8014398509481984e+16) + *(*float64)(unsafe.Pointer(bp)) = x + hx = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32)) + } else { + if hx >= uint32(0x7ff00000) { + return x + } else { + if hx == uint32(0x3ff00000) && *(*Tuint64_t)(unsafe.Pointer(bp))<>Int32FromInt32(20)) - int32(0x3ff)) + hx = hx&uint32(0x000fffff) + uint32(0x3fe6a09e) + *(*Tuint64_t)(unsafe.Pointer(bp)) = uint64(hx)< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var R, dk, f, hfsq, hi, lo, s, t1, t2, w, z Tfloat_t + var ix Tuint32_t + var k int32 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _, _, _, _, _, _, _, _ = R, dk, f, hfsq, hi, ix, k, lo, s, t1, t2, w, z + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + ix = *(*Tuint32_t)(unsafe.Pointer(bp)) + k = 0 + if ix < uint32(0x00800000) || ix>>int32(31) != 0 { /* x < 2**-126 */ + if ix<>int32(31) != 0 { + return (x - x) / Float32FromFloat32(0) + } /* log(-#) = NaN */ + /* subnormal number, scale up x */ + k = k - int32(25) + x = x * Float32FromFloat32(3.3554432e+07) + *(*float32)(unsafe.Pointer(bp)) = x + ix = *(*Tuint32_t)(unsafe.Pointer(bp)) + } else { + if ix >= uint32(0x7f800000) { + return x + } else { + if ix == uint32(0x3f800000) { + return Float32FromInt32(0) + } + } + } + /* reduce x into [sqrt(2)/2, sqrt(2)] */ + ix = ix + Uint32FromInt32(Int32FromInt32(0x3f800000)-Int32FromInt32(0x3f3504f3)) + k = k + (Int32FromUint32(ix>>Int32FromInt32(23)) - int32(0x7f)) + ix = ix&uint32(0x007fffff) + uint32(0x3f3504f3) + *(*Tuint32_t)(unsafe.Pointer(bp)) = ix + x = *(*float32)(unsafe.Pointer(bp)) + f = x - Float32FromFloat32(1) + s = f / (Float32FromFloat32(2) + f) + z = Tfloat_t(s * s) + w = Tfloat_t(z * z) + t1 = Tfloat_t(w * (_Lg21 + float32(w*_Lg41))) + t2 = Tfloat_t(z * (_Lg11 + float32(w*_Lg31))) + R = t2 + t1 + hfsq = Tfloat_t(float32(Float32FromFloat32(0.5)*f) * f) + hi = f - hfsq + *(*float32)(unsafe.Pointer(bp)) = hi + *(*Tuint32_t)(unsafe.Pointer(bp)) &= uint32(0xfffff000) + hi = *(*float32)(unsafe.Pointer(bp)) + lo = f - hi - hfsq + Tfloat_t(s*(hfsq+R)) + dk = float32(k) + return Tfloat_t(dk*_log10_2lo1) + Tfloat_t((lo+hi)*_ivln10lo1) + Tfloat_t(lo*_ivln10hi1) + Tfloat_t(hi*_ivln10hi1) + Tfloat_t(dk*_log10_2hi1) +} + +func Xlog10l(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xlog10(tls, x) +} + +var _ln2_hi2 = float64(0.6931471803691238) /* 3fe62e42 fee00000 */ +var _ln2_lo2 = float64(1.9082149292705877e-10) /* 3dea39ef 35793c76 */ +var _Lg12 = float64(0.6666666666666735) /* 3FE55555 55555593 */ +var _Lg22 = float64(0.3999999999940942) /* 3FD99999 9997FA04 */ +var _Lg32 = float64(0.2857142874366239) /* 3FD24924 94229359 */ +var _Lg42 = float64(0.22222198432149784) /* 3FCC71C5 1D8E78AF */ +var _Lg51 = float64(0.1818357216161805) /* 3FC74664 96CB03DE */ +var _Lg61 = float64(0.15313837699209373) /* 3FC39A09 D078C69F */ +var _Lg71 = float64(0.14798198605116586) /* 3FC2F112 DF3E5244 */ + +func Xlog1p(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var R, c, dk, f, hfsq, s, t1, t2, w, z Tdouble_t + var hu, hx Tuint32_t + var k int32 + var y float32 + var y1, y2, v1 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = R, c, dk, f, hfsq, hu, hx, k, s, t1, t2, w, y, y1, y2, z, v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + hx = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32)) + k = int32(1) + if hx < uint32(0x3fda827a) || hx>>int32(31) != 0 { /* 1+x < sqrt(2)+ */ + if hx >= uint32(0xbff00000) { /* x <= -1.0 */ + if x3 == float64(-Int32FromInt32(1)) { + return x3 / float64(0) + } /* log1p(-1) = -inf */ + return (x3 - x3) / float64(0) /* log1p(x<-1) = NaN */ + } + if hx<= uint32(0x7ff00000) { + return x3 + } + } + if k != 0 { + *(*float64)(unsafe.Pointer(bp)) = Float64FromInt32(1) + x3 + hu = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32)) + hu = hu + Uint32FromInt32(Int32FromInt32(0x3ff00000)-Int32FromInt32(0x3fe6a09e)) + k = Int32FromUint32(hu>>Int32FromInt32(20)) - int32(0x3ff) + /* correction term ~ log(1+x)-log(u), avoid underflow in c/u */ + if k < int32(54) { + if k >= int32(2) { + v1 = Float64FromInt32(1) - (*(*float64)(unsafe.Pointer(bp)) - x3) + } else { + v1 = x3 - (*(*float64)(unsafe.Pointer(bp)) - Float64FromInt32(1)) + } + c = v1 + c = c / *(*float64)(unsafe.Pointer(bp)) + } else { + c = Float64FromInt32(0) + } + /* reduce u into [sqrt(2)/2, sqrt(2)] */ + hu = hu&uint32(0x000fffff) + uint32(0x3fe6a09e) + *(*Tuint64_t)(unsafe.Pointer(bp)) = uint64(hu)< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var R, c, dk, f, hfsq, s, t1, t2, w, z Tfloat_t + var iu, ix Tuint32_t + var k int32 + var y, v1 float32 + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = R, c, dk, f, hfsq, iu, ix, k, s, t1, t2, w, y, y1, y2, z, v1 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + ix = *(*Tuint32_t)(unsafe.Pointer(bp)) + k = int32(1) + if ix < uint32(0x3ed413d0) || ix>>int32(31) != 0 { /* 1+x < sqrt(2)+ */ + if ix >= uint32(0xbf800000) { /* x <= -1.0 */ + if x3 == float32(-Int32FromInt32(1)) { + return x3 / Float32FromFloat32(0) + } /* log1p(-1)=+inf */ + return (x3 - x3) / Float32FromFloat32(0) /* log1p(x<-1)=NaN */ + } + if ix<= uint32(0x7f800000) { + return x3 + } + } + if k != 0 { + *(*float32)(unsafe.Pointer(bp)) = Float32FromInt32(1) + x3 + iu = *(*Tuint32_t)(unsafe.Pointer(bp)) + iu = iu + Uint32FromInt32(Int32FromInt32(0x3f800000)-Int32FromInt32(0x3f3504f3)) + k = Int32FromUint32(iu>>Int32FromInt32(23)) - int32(0x7f) + /* correction term ~ log(1+x)-log(u), avoid underflow in c/u */ + if k < int32(25) { + if k >= int32(2) { + v1 = Float32FromInt32(1) - (*(*float32)(unsafe.Pointer(bp)) - x3) + } else { + v1 = x3 - (*(*float32)(unsafe.Pointer(bp)) - Float32FromInt32(1)) + } + c = v1 + c = c / *(*float32)(unsafe.Pointer(bp)) + } else { + c = Float32FromInt32(0) + } + /* reduce u into [sqrt(2)/2, sqrt(2)] */ + iu = iu&uint32(0x007fffff) + uint32(0x3f3504f3) + *(*Tuint32_t)(unsafe.Pointer(bp)) = iu + f = *(*float32)(unsafe.Pointer(bp)) - Float32FromInt32(1) + } + s = f / (Float32FromFloat32(2) + f) + z = Tfloat_t(s * s) + w = Tfloat_t(z * z) + t1 = Tfloat_t(w * (_Lg23 + float32(w*_Lg43))) + t2 = Tfloat_t(z * (_Lg13 + float32(w*_Lg33))) + R = t2 + t1 + hfsq = Tfloat_t(float32(Float32FromFloat32(0.5)*f) * f) + dk = float32(k) + return Tfloat_t(s*(hfsq+R)) + (Tfloat_t(dk*_ln2_lo3) + c) - hfsq + f + Tfloat_t(dk*_ln2_hi3) +} + +func Xlog1pl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xlog1p(tls, x) +} + +const LOG2_POLY1_ORDER = 11 +const LOG2_POLY_ORDER = 7 +const LOG2_TABLE_BITS = 6 +const N5 = 64 + +// C documentation +// +// /* Top 16 bits of a double. */ +func _top161(tls *TLS, x float64) (r Tuint32_t) { + return uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(48)) +} + +func Xlog2(tls *TLS, x1 float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x1=%v, (%v:)", tls, x1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var hi, invc, kd, lo, logc, p, r, r2, r4, rhi, rhi1, rlo, rlo1, t1, t2, t3, y1, z Tdouble_t + var i, k int32 + var ix, iz, tmp, v6 Tuint64_t + var top Tuint32_t + var y, v1, v2, v3, v4 float64 + var v5 bool + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = hi, i, invc, ix, iz, k, kd, lo, logc, p, r, r2, r4, rhi, rhi1, rlo, rlo1, t1, t2, t3, tmp, top, y, y1, z, v1, v2, v3, v4, v5, v6 + ix = *(*Tuint64_t)(unsafe.Pointer(&x1)) + top = _top161(tls, x1) + v1 = Float64FromFloat64(1) - Float64FromFloat64(0.04239702224731445) + v2 = Float64FromFloat64(1) + Float64FromFloat64(0.044274330139160156) + v3 = Float64FromFloat64(1) - Float64FromFloat64(0.04239702224731445) + if ix-*(*Tuint64_t)(unsafe.Pointer(&v1)) < *(*Tuint64_t)(unsafe.Pointer(&v2))-*(*Tuint64_t)(unsafe.Pointer(&v3)) { + /* Handle close to 1.0 inputs separately. */ + /* Fix sign of zero with downward rounding when x==1. */ + if v5 = Bool(int32(WANT_ROUNDING) != 0); v5 { + v4 = float64(1) + } + if v5 && ix == *(*Tuint64_t)(unsafe.Pointer(&v4)) { + return Float64FromInt32(0) + } + r = x1 - float64(1) + v1 = r + v6 = uint64(*(*Tuint64_t)(unsafe.Pointer(&v1)) & (-Uint64FromUint64(1) << Int32FromInt32(32))) + rhi = *(*float64)(unsafe.Pointer(&v6)) + rlo = r - rhi + hi = Tdouble_t(rhi * X__log2_data.Finvln2hi) + lo = Tdouble_t(rlo*X__log2_data.Finvln2hi) + Tdouble_t(r*X__log2_data.Finvln2lo) + r2 = Tdouble_t(r * r) /* rounding error: 0x1p-62. */ + r4 = Tdouble_t(r2 * r2) + /* Worst-case error is less than 0.54 ULP (0.55 ULP without fma). */ + p = Tdouble_t(r2 * (**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 64)) + float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 64 + 1*8))))) + y1 = hi + p + lo = lo + (hi - y1 + p) + lo = lo + Tdouble_t(r4*(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 64 + 2*8))+float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 64 + 3*8)))+float64(r2*(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 64 + 4*8))+float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 64 + 5*8)))))+float64(r4*(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 64 + 6*8))+float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 64 + 7*8)))+float64(r2*(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 64 + 8*8))+float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 64 + 9*8))))))))) + y1 = y1 + lo + y = y1 + v1 = y + goto _9 + _9: + return v1 + } + if top-uint32(0x0010) >= Uint32FromInt32(Int32FromInt32(0x7ff0)-Int32FromInt32(0x0010)) { + /* x < 0x1p-1022 or inf or nan. */ + if ix*uint64(2) == uint64(0) { + return X__math_divzero(tls, uint32(1)) + } + v1 = float64(X__builtin_inff(tls)) + if ix == *(*Tuint64_t)(unsafe.Pointer(&v1)) { /* log(inf) == inf. */ + return x1 + } + if top&uint32(0x8000) != 0 || top&uint32(0x7ff0) == uint32(0x7ff0) { + return X__math_invalid(tls, x1) + } + /* x is subnormal, normalize it. */ + v1 = float64(x1 * float64(4.503599627370496e+15)) + ix = *(*Tuint64_t)(unsafe.Pointer(&v1)) + ix = uint64(ix - Uint64FromUint64(52)<> (Int32FromInt32(52) - Int32FromInt32(LOG2_TABLE_BITS)) % Uint64FromInt32(Int32FromInt32(1)<> int32(52)) /* arithmetic shift */ + iz = uint64(ix - tmp&(Uint64FromUint64(0xfff)< 0x1p-4: 0.547 ULP (0.550 ULP without fma). + ~ 0.5 + 2/N/ln2 + abs-poly-error*0x1p56 ULP (+ 0.003 ULP without fma). */ + p = **(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 16)) + float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 16 + 1*8))) + float64(r2*(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 16 + 2*8))+float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 16 + 3*8))))) + float64(r4*(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 16 + 4*8))+float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 16 + 5*8))))) + y1 = lo + Tdouble_t(r2*p) + hi + y = y1 + v1 = y + goto _15 +_15: + return v1 +} + +type Tlog2_data = struct { + Finvln2hi float64 + Finvln2lo float64 + Fpoly [6]float64 + Fpoly1 [10]float64 + Ftab [64]struct { + Finvc float64 + Flogc float64 + } + Ftab2 [64]struct { + Fchi float64 + Fclo float64 + } +} + +const LOG2F_POLY_ORDER = 4 +const LOG2F_TABLE_BITS = 4 +const N6 = 16 +const OFF1 = 1060306944 + +/* +LOG2F_TABLE_BITS = 4 +LOG2F_POLY_ORDER = 4 + +ULP error: 0.752 (nearest rounding.) +Relative error: 1.9 * 2^-26 (before rounding.) +*/ + +func Xlog2f(tls *TLS, x1 float32) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x1=%v, (%v:)", tls, x1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var i, k int32 + var invc, logc, p, r, r2, y0, y1, z Tdouble_t + var ix, iz, tmp, top Tuint32_t + var y, v1 float32 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = i, invc, ix, iz, k, logc, p, r, r2, tmp, top, y, y0, y1, z, v1 + ix = *(*Tuint32_t)(unsafe.Pointer(&x1)) + /* Fix sign of zero with downward rounding when x==1. */ + if Bool(int32(WANT_ROUNDING) != 0) && ix == uint32(0x3f800000) { + return Float32FromInt32(0) + } + if ix-uint32(0x00800000) >= Uint32FromInt32(Int32FromInt32(0x7f800000)-Int32FromInt32(0x00800000)) { + /* x < 0x1p-126 or inf or nan. */ + if ix*uint32(2) == uint32(0) { + return X__math_divzerof(tls, uint32(1)) + } + if ix == uint32(0x7f800000) { /* log2(inf) == inf. */ + return x1 + } + if ix&uint32(0x80000000) != 0 || ix*uint32(2) >= uint32(0xff000000) { + return X__math_invalidf(tls, x1) + } + /* x is subnormal, normalize it. */ + v1 = float32(x1 * Float32FromFloat32(8.388608e+06)) + ix = *(*Tuint32_t)(unsafe.Pointer(&v1)) + ix = ix - Uint32FromInt32(Int32FromInt32(23)<> (Int32FromInt32(23) - Int32FromInt32(LOG2F_TABLE_BITS)) % Uint32FromInt32(Int32FromInt32(1)<> int32(23) /* arithmetic shift */ + invc = (**(**struct { + Finvc float64 + Flogc float64 + })(__ccgo_up(uintptr(unsafe.Pointer(&X__log2f_data)) + uintptr(i)*16))).Finvc + logc = (**(**struct { + Finvc float64 + Flogc float64 + })(__ccgo_up(uintptr(unsafe.Pointer(&X__log2f_data)) + uintptr(i)*16))).Flogc + z = float64(*(*float32)(unsafe.Pointer(&iz))) + /* log2(x) = log1p(z/c-1)/ln2 + log2(c) + k */ + r = Tdouble_t(z*invc) - Float64FromInt32(1) + y0 = logc + float64(k) + /* Pipelined polynomial evaluation to approximate log1p(r)/ln2. */ + r2 = Tdouble_t(r * r) + y1 = float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2f_data)) + 256 + 1*8))*r) + **(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2f_data)) + 256 + 2*8)) + y1 = float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2f_data)) + 256))*r2) + y1 + p = float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2f_data)) + 256 + 3*8))*r) + y0 + y1 = Tdouble_t(y1*r2) + p + y = float32(y1) + v1 = y + goto _3 +_3: + return v1 +} + +type Tlog2f_data = struct { + Ftab [16]struct { + Finvc float64 + Flogc float64 + } + Fpoly [4]float64 +} + +func Xlog2l(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xlog2(tls, x) +} + +const N7 = 128 + +type Tlog_data = struct { + Fln2hi float64 + Fln2lo float64 + Fpoly [5]float64 + Fpoly1 [11]float64 + Ftab [128]struct { + Finvc float64 + Flogc float64 + } + Ftab2 [128]struct { + Fchi float64 + Fclo float64 + } +} + +/* +special cases: + logb(+-0) = -inf, and raise divbyzero + logb(+-inf) = +inf + logb(nan) = nan +*/ + +func Xlogb(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uint64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _ = v1 + *(*float64)(unsafe.Pointer(bp)) = x + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + if !(BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) < Uint64FromUint64(0x7ff)< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uint32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _ = v1 + *(*float32)(unsafe.Pointer(bp)) = x + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + if !(BoolInt32(v1&Uint32FromInt32(0x7fffffff) < Uint32FromInt32(0x7f800000)) != 0) { + return float32(x * x) + } + if x == Float32FromInt32(0) { + return float32(-Int32FromInt32(1)) / float32(x*x) + } + return float32(Xilogbf(tls, x)) +} + +func Xlogbl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uint64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _ = v1 + *(*float64)(unsafe.Pointer(bp)) = x + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + if !(BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) < Uint64FromUint64(0x7ff)< %v", r1) }() + } + var i, k int32 + var invc, logc, r, r2, y0, y1, z Tdouble_t + var ix, iz, tmp Tuint32_t + var y, v1 float32 + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = i, invc, ix, iz, k, logc, r, r2, tmp, y, y0, y1, z, v1 + ix = *(*Tuint32_t)(unsafe.Pointer(&x1)) + /* Fix sign of zero with downward rounding when x==1. */ + if Bool(int32(WANT_ROUNDING) != 0) && ix == uint32(0x3f800000) { + return Float32FromInt32(0) + } + if ix-uint32(0x00800000) >= Uint32FromInt32(Int32FromInt32(0x7f800000)-Int32FromInt32(0x00800000)) { + /* x < 0x1p-126 or inf or nan. */ + if ix*uint32(2) == uint32(0) { + return X__math_divzerof(tls, uint32(1)) + } + if ix == uint32(0x7f800000) { /* log(inf) == inf. */ + return x1 + } + if ix&uint32(0x80000000) != 0 || ix*uint32(2) >= uint32(0xff000000) { + return X__math_invalidf(tls, x1) + } + /* x is subnormal, normalize it. */ + v1 = float32(x1 * Float32FromFloat32(8.388608e+06)) + ix = *(*Tuint32_t)(unsafe.Pointer(&v1)) + ix = ix - Uint32FromInt32(Int32FromInt32(23)<> (Int32FromInt32(23) - Int32FromInt32(LOGF_TABLE_BITS)) % Uint32FromInt32(Int32FromInt32(1)<> int32(23) /* arithmetic shift */ + iz = ix - tmp&uint32(0xff800000) + invc = (**(**struct { + Finvc float64 + Flogc float64 + })(__ccgo_up(uintptr(unsafe.Pointer(&X__logf_data)) + uintptr(i)*16))).Finvc + logc = (**(**struct { + Finvc float64 + Flogc float64 + })(__ccgo_up(uintptr(unsafe.Pointer(&X__logf_data)) + uintptr(i)*16))).Flogc + z = float64(*(*float32)(unsafe.Pointer(&iz))) + /* log(x) = log1p(z/c-1) + log(c) + k*Ln2 */ + r = Tdouble_t(z*invc) - Float64FromInt32(1) + y0 = logc + Tdouble_t(float64(k)*X__logf_data.Fln2) + /* Pipelined polynomial evaluation to approximate log1p(r). */ + r2 = Tdouble_t(r * r) + y1 = float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__logf_data)) + 264 + 1*8))*r) + **(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__logf_data)) + 264 + 2*8)) + y1 = float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__logf_data)) + 264))*r2) + y1 + y1 = Tdouble_t(y1*r2) + (y0 + r) + y = float32(y1) + v1 = y + goto _3 +_3: + return v1 +} + +type Tlogf_data = struct { + Ftab [16]struct { + Finvc float64 + Flogc float64 + } + Fln2 float64 + Fpoly [3]float64 +} + +func Xlogl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xlog(tls, x) +} + +/* +If the result cannot be represented (overflow, nan), then +lrint raises the invalid exception. + +Otherwise if the input was not an integer then the inexact +exception is raised. + +C99 is a bit vague about whether inexact exception is +allowed to be raised when invalid is raised. +(F.9 explicitly allows spurious inexact exceptions, F.9.6.5 +does not make it clear if that rule applies to lrint, but +IEEE 754r 7.8 seems to forbid spurious inexact exception in +the ineger conversion functions) + +So we try to make sure that no spurious inexact exception is +raised in case of an overflow. + +If the bit size of long > precision of double, then there +cannot be inexact rounding in case the result overflows, +otherwise LONG_MAX and LONG_MIN can be represented exactly +as a double. +*/ + +func Xlrint(tls *TLS, x float64) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int64(Xrint(tls, x)) +} + +/* uses LONG_MAX > 2^24, see comments in lrint.c */ + +func Xlrintf(tls *TLS, x float32) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int64(Xrintf(tls, x)) +} + +func Xlrintl(tls *TLS, x float64) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xlrint(tls, x) +} + +func Xlround(tls *TLS, x float64) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int64(Xround(tls, x)) +} + +func Xlroundf(tls *TLS, x float32) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int64(Xroundf(tls, x)) +} + +func Xlroundl(tls *TLS, x float64) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int64(Xroundl(tls, x)) +} + +func Xmodf(tls *TLS, x float64, iptr uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v iptr=%v, (%v:)", tls, x, iptr, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e int32 + var mask Tuint64_t + var v1 uintptr + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _ = e, mask, v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + e = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp))>>Int32FromInt32(52)&Uint64FromInt32(0x7ff)) - int32(0x3ff) + /* no fractional part */ + if e >= int32(52) { + **(**float64)(__ccgo_up(iptr)) = x + if e == int32(0x400) && *(*Tuint64_t)(unsafe.Pointer(bp))<> Int32FromInt32(12) >> e) + if *(*Tuint64_t)(unsafe.Pointer(bp))&mask == uint64(0) { + **(**float64)(__ccgo_up(iptr)) = x + v1 = bp + *(*Tuint64_t)(unsafe.Pointer(v1)) = Tuint64_t(*(*Tuint64_t)(unsafe.Pointer(v1)) & (Uint64FromUint64(1) << Int32FromInt32(63))) + return *(*float64)(unsafe.Pointer(bp)) + } + *(*Tuint64_t)(unsafe.Pointer(bp)) &= ^mask + **(**float64)(__ccgo_up(iptr)) = *(*float64)(unsafe.Pointer(bp)) + return x - *(*float64)(unsafe.Pointer(bp)) +} + +func Xmodff(tls *TLS, x float32, iptr uintptr) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v iptr=%v, (%v:)", tls, x, iptr, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e int32 + var mask Tuint32_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _ = e, mask + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + e = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp))>>Int32FromInt32(23)&Uint32FromInt32(0xff)) - int32(0x7f) + /* no fractional part */ + if e >= int32(23) { + **(**float32)(__ccgo_up(iptr)) = x + if e == int32(0x80) && *(*Tuint32_t)(unsafe.Pointer(bp))<> e) + if *(*Tuint32_t)(unsafe.Pointer(bp))&mask == uint32(0) { + **(**float32)(__ccgo_up(iptr)) = x + *(*Tuint32_t)(unsafe.Pointer(bp)) &= uint32(0x80000000) + return *(*float32)(unsafe.Pointer(bp)) + } + *(*Tuint32_t)(unsafe.Pointer(bp)) &= ^mask + **(**float32)(__ccgo_up(iptr)) = *(*float32)(unsafe.Pointer(bp)) + return x - *(*float32)(unsafe.Pointer(bp)) +} + +func Xmodfl(tls *TLS, x float64, iptr uintptr) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x=%v iptr=%v, (%v:)", tls, x, iptr, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var r float64 + var _ /* d at bp+0 */ float64 + _ = r + r = Xmodf(tls, x, bp) + **(**float64)(__ccgo_up(iptr)) = float64(**(**float64)(__ccgo_up(bp))) + return r +} + +func Xnan(tls *TLS, s uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + return float64(X__builtin_nanf(tls, __ccgo_ts)) +} + +func Xnanf(tls *TLS, s uintptr) (r float32) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__builtin_nanf(tls, __ccgo_ts) +} + +func Xnanl(tls *TLS, s uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + return float64(X__builtin_nanf(tls, __ccgo_ts)) +} + +func Xnextafter(tls *TLS, x3 float64, y3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v y3=%v, (%v:)", tls, x3, y3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var ax, ay Tuint64_t + var e int32 + var y float32 + var y1, y2 float64 + var v1, v3 uint64 + var v5 bool + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + var _ /* ux at bp+8 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + var _ /* uy at bp+16 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _, _, _ = ax, ay, e, y, y1, y2, v1, v3, v5 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp + 8)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp + 8)) = x3 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp + 16)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp + 16)) = y3 + *(*float64)(unsafe.Pointer(bp)) = x3 + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + ; + if v5 = BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)< ay || (*(*Tuint64_t)(unsafe.Pointer(bp + 8))^*(*Tuint64_t)(unsafe.Pointer(bp + 16)))&(Uint64FromUint64(1)<> int32(52) & uint64(0x7ff)) + /* raise overflow if ux.f is infinite and x is finite */ + if e == int32(0x7ff) { + if uint64(8) == uint64(4) { + y = float32(x3 + x3) + } else { + if uint64(8) == uint64(8) { + y1 = x3 + x3 + } else { + y2 = x3 + x3 + } + } + } + /* raise underflow if ux.f is subnormal or zero */ + if e == 0 { + if uint64(8) == uint64(4) { + y = float32(float64(x3*x3) + float64(*(*float64)(unsafe.Pointer(bp + 8))**(*float64)(unsafe.Pointer(bp + 8)))) + } else { + if uint64(8) == uint64(8) { + y1 = float64(x3*x3) + float64(*(*float64)(unsafe.Pointer(bp + 8))**(*float64)(unsafe.Pointer(bp + 8))) + } else { + y2 = float64(x3*x3) + float64(*(*float64)(unsafe.Pointer(bp + 8))**(*float64)(unsafe.Pointer(bp + 8))) + } + } + } + return *(*float64)(unsafe.Pointer(bp + 8)) +} + +func Xnextafterf(tls *TLS, x3 float32, y3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v y3=%v, (%v:)", tls, x3, y3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ax, ay, e Tuint32_t + var y float32 + var y1, y2 float64 + var v1, v3 uint32 + var v5 bool + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + var _ /* ux at bp+4 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + var _ /* uy at bp+8 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _, _, _, _ = ax, ay, e, y, y1, y2, v1, v3, v5 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp + 4)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp + 4)) = x3 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp + 8)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp + 8)) = y3 + *(*float32)(unsafe.Pointer(bp)) = x3 + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + ; + if v5 = BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0; !v5 { + *(*float32)(unsafe.Pointer(bp)) = y3 + v3 = *(*uint32)(unsafe.Pointer(bp)) + goto _4 + _4: + } + if v5 || BoolInt32(v3&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return x3 + y3 + } + if *(*Tuint32_t)(unsafe.Pointer(bp + 4)) == *(*Tuint32_t)(unsafe.Pointer(bp + 8)) { + return y3 + } + ax = *(*Tuint32_t)(unsafe.Pointer(bp + 4)) & uint32(0x7fffffff) + ay = *(*Tuint32_t)(unsafe.Pointer(bp + 8)) & uint32(0x7fffffff) + if ax == uint32(0) { + if ay == uint32(0) { + return y3 + } + *(*Tuint32_t)(unsafe.Pointer(bp + 4)) = *(*Tuint32_t)(unsafe.Pointer(bp + 8))&uint32(0x80000000) | uint32(1) + } else { + if ax > ay || (*(*Tuint32_t)(unsafe.Pointer(bp + 4))^*(*Tuint32_t)(unsafe.Pointer(bp + 8)))&uint32(0x80000000) != 0 { + *(*Tuint32_t)(unsafe.Pointer(bp + 4)) = *(*Tuint32_t)(unsafe.Pointer(bp + 4)) - 1 + } else { + *(*Tuint32_t)(unsafe.Pointer(bp + 4)) = *(*Tuint32_t)(unsafe.Pointer(bp + 4)) + 1 + } + } + e = *(*Tuint32_t)(unsafe.Pointer(bp + 4)) & uint32(0x7f800000) + /* raise overflow if ux.f is infinite and x is finite */ + if e == uint32(0x7f800000) { + if uint64(4) == uint64(4) { + y = x3 + x3 + } else { + if uint64(4) == uint64(8) { + y1 = float64(x3 + x3) + } else { + y2 = float64(x3 + x3) + } + } + } + /* raise underflow if ux.f is subnormal or zero */ + if e == uint32(0) { + if uint64(4) == uint64(4) { + y = float32(x3*x3) + float32(*(*float32)(unsafe.Pointer(bp + 4))**(*float32)(unsafe.Pointer(bp + 4))) + } else { + if uint64(4) == uint64(8) { + y1 = float64(float32(x3*x3) + float32(*(*float32)(unsafe.Pointer(bp + 4))**(*float32)(unsafe.Pointer(bp + 4)))) + } else { + y2 = float64(float32(x3*x3) + float32(*(*float32)(unsafe.Pointer(bp + 4))**(*float32)(unsafe.Pointer(bp + 4)))) + } + } + } + return *(*float32)(unsafe.Pointer(bp + 4)) +} + +func Xnextafterl(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xnextafter(tls, x, y) +} + +func Xnexttoward(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xnextafter(tls, x, y) +} + +func Xnexttowardf(tls *TLS, x3 float32, y3 float64) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v y3=%v, (%v:)", tls, x3, y3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var e Tuint32_t + var y float32 + var y1, y2 float64 + var v1 uint32 + var v3 uint64 + var v5 bool + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + var _ /* __u at bp+8 */ struct { + F__i [0]uint64 + F__f float64 + } + var _ /* ux at bp+16 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _, _ = e, y, y1, y2, v1, v3, v5 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp + 16)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp + 16)) = x3 + *(*float32)(unsafe.Pointer(bp)) = x3 + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + ; + if v5 = BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0; !v5 { + *(*float64)(unsafe.Pointer(bp + 8)) = y3 + v3 = *(*uint64)(unsafe.Pointer(bp + 8)) + goto _4 + _4: + } + if v5 || BoolInt32(v3&(-Uint64FromUint64(1)>>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(63)) != 0 { + *(*Tuint32_t)(unsafe.Pointer(bp + 16)) |= uint32(0x80000000) + } + } else { + if float64(x3) < y3 { + *(*float32)(unsafe.Pointer(bp)) = x3 + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _9 + _9: + if Int32FromUint32(v1>>Int32FromInt32(31)) != 0 { + *(*Tuint32_t)(unsafe.Pointer(bp + 16)) = *(*Tuint32_t)(unsafe.Pointer(bp + 16)) - 1 + } else { + *(*Tuint32_t)(unsafe.Pointer(bp + 16)) = *(*Tuint32_t)(unsafe.Pointer(bp + 16)) + 1 + } + } else { + *(*float32)(unsafe.Pointer(bp)) = x3 + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _11 + _11: + if Int32FromUint32(v1>>Int32FromInt32(31)) != 0 { + *(*Tuint32_t)(unsafe.Pointer(bp + 16)) = *(*Tuint32_t)(unsafe.Pointer(bp + 16)) + 1 + } else { + *(*Tuint32_t)(unsafe.Pointer(bp + 16)) = *(*Tuint32_t)(unsafe.Pointer(bp + 16)) - 1 + } + } + } + e = *(*Tuint32_t)(unsafe.Pointer(bp + 16)) & uint32(0x7f800000) + /* raise overflow if ux.f is infinite and x is finite */ + if e == uint32(0x7f800000) { + if uint64(4) == uint64(4) { + y = x3 + x3 + } else { + if uint64(4) == uint64(8) { + y1 = float64(x3 + x3) + } else { + y2 = float64(x3 + x3) + } + } + } + /* raise underflow if ux.f is subnormal or zero */ + if e == uint32(0) { + if uint64(4) == uint64(4) { + y = float32(x3*x3) + float32(*(*float32)(unsafe.Pointer(bp + 16))**(*float32)(unsafe.Pointer(bp + 16))) + } else { + if uint64(4) == uint64(8) { + y1 = float64(float32(x3*x3) + float32(*(*float32)(unsafe.Pointer(bp + 16))**(*float32)(unsafe.Pointer(bp + 16)))) + } else { + y2 = float64(float32(x3*x3) + float32(*(*float32)(unsafe.Pointer(bp + 16))**(*float32)(unsafe.Pointer(bp + 16)))) + } + } + } + return *(*float32)(unsafe.Pointer(bp + 16)) +} + +func Xnexttowardl(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xnextafterl(tls, x, y) +} + +const OFF2 = 4604531861337669632 +const POW_LOG_POLY_ORDER = 8 +const POW_LOG_TABLE_BITS = 7 +const SIGN_BIAS = 262144 + +/* +Worst-case error: 0.54 ULP (~= ulperr_exp + 1024*Ln2*relerr_log*2^53) +relerr_log: 1.3 * 2^-68 (Relative error of log, 1.5 * 2^-68 without fma) +ulperr_exp: 0.509 ULP (ULP error of exp, 0.511 ULP without fma) +*/ + +// C documentation +// +// /* Top 12 bits of a double (sign and exponent bits). */ +func _top124(tls *TLS, x float64) (r Tuint32_t) { + return uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(52)) +} + +// C documentation +// +// /* Compute y+TAIL = log(x) where the rounded result is y and TAIL has about +// additional 15 bits precision. IX is the bit representation of x, but +// normalized in the subnormal range using the sign bit for the exponent. */ +func _log_inline(tls *TLS, ix Tuint64_t, tail uintptr) (r1 Tdouble_t) { + var ar, ar2, ar3, arhi, arhi2, hi, invc, kd, lo, lo1, lo2, lo3, lo4, logc, logctail, p, r, rhi, rlo, t1, t2, y, z, zhi, zlo Tdouble_t + var i, k int32 + var iz, tmp, v1 Tuint64_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = ar, ar2, ar3, arhi, arhi2, hi, i, invc, iz, k, kd, lo, lo1, lo2, lo3, lo4, logc, logctail, p, r, rhi, rlo, t1, t2, tmp, y, z, zhi, zlo, v1 + /* x = 2^k z; where z is in range [OFF,2*OFF) and exact. + The range is split into N subintervals. + The ith subinterval contains z and c is near its center. */ + tmp = ix - uint64(OFF2) + i = Int32FromUint64(tmp >> (Int32FromInt32(52) - Int32FromInt32(POW_LOG_TABLE_BITS)) % Uint64FromInt32(Int32FromInt32(1)<> int32(52)) /* arithmetic shift */ + iz = uint64(ix - tmp&(Uint64FromUint64(0xfff)< 0, the exponent of scale might have overflowed by <= 460. */ + sbits = uint64(sbits - Uint64FromUint64(1009)<= _top124(tls, float64(512))-_top124(tls, float64(5.551115123125783e-17)) { + if abstop-_top124(tls, float64(5.551115123125783e-17)) >= uint32(0x80000000) { + /* Avoid spurious underflow for tiny x. */ + /* Note: 0 is common input. */ + one = float64(1) + x1 + if sign_bias != 0 { + v1 = -one + } else { + v1 = one + } + return v1 + } + if abstop >= _top124(tls, float64(1024)) { + /* Note: inf and nan are already handled. */ + v2 = x1 + if *(*Tuint64_t)(unsafe.Pointer(&v2))>>int32(63) != 0 { + return X__math_uflow(tls, sign_bias) + } else { + return X__math_oflow(tls, sign_bias) + } + } + /* Large x is special cased below. */ + abstop = uint32(0) + } + /* exp(x) = 2^(k/N) * exp(r), with exp(r) in [2^(-1/2N),2^(1/2N)]. */ + /* x = ln2/N*k + r, with int k and r in [-ln2/2N, ln2/2N]. */ + z = Tdouble_t(X__exp_data.Finvln2N * x1) + /* z - kd is in [-1, 1] in non-nearest rounding modes. */ + y = z + X__exp_data.Fshift + v2 = y + goto _4 +_4: + kd = v2 + v2 = kd + ki = *(*Tuint64_t)(unsafe.Pointer(&v2)) + kd = kd - X__exp_data.Fshift + r = x1 + Tdouble_t(kd*X__exp_data.Fnegln2hiN) + Tdouble_t(kd*X__exp_data.Fnegln2loN) + /* The code assumes 2^-200 < |xtail| < 2^-8/N. */ + r = r + xtail + /* 2^(k/N) ~= scale * (1 + tail). */ + idx = uint64(2) * (ki % Uint64FromInt32(Int32FromInt32(1)< 2^-200 and scale > 2^-739, so there + is no spurious underflow here even without fma. */ + y = scale + Tdouble_t(scale*tmp) + v2 = y + goto _8 +_8: + return v2 +} + +// C documentation +// +// /* Returns 0 if not int, 1 if odd int, 2 if even int. The argument is +// the bit representation of a non-zero finite floating-point value. */ +func _checkint(tls *TLS, iy Tuint64_t) (r int32) { + var e int32 + _ = e + e = Int32FromUint64(iy >> int32(52) & uint64(0x7ff)) + if e < int32(0x3ff) { + return 0 + } + if e > Int32FromInt32(0x3ff)+Int32FromInt32(52) { + return int32(2) + } + if iy&(uint64(1)<<(Int32FromInt32(0x3ff)+Int32FromInt32(52)-e)-uint64(1)) != 0 { + return 0 + } + if iy&(uint64(1)<<(Int32FromInt32(0x3ff)+Int32FromInt32(52)-e)) != 0 { + return int32(1) + } + return int32(2) +} + +// C documentation +// +// /* Returns 1 if input is the bit representation of 0, infinity or nan. */ +func _zeroinfnan(tls *TLS, i Tuint64_t) (r int32) { + var v1 float64 + _ = v1 + v1 = float64(X__builtin_inff(tls)) + return BoolInt32(uint64(2)*i-uint64(1) >= uint64(2)**(*Tuint64_t)(unsafe.Pointer(&v1))-uint64(1)) +} + +func Xpow(tls *TLS, x1 float64, y1 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x1=%v y1=%v, (%v:)", tls, x1, y1, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ehi, elo, hi, lhi, llo, x2, yhi, ylo Tdouble_t + var ix, iy, v16, v17 Tuint64_t + var sign_bias, topx, topy Tuint32_t + var y, v1, v2 float64 + var yint int32 + var v4 bool + var _ /* lo at bp+0 */ Tdouble_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = ehi, elo, hi, ix, iy, lhi, llo, sign_bias, topx, topy, x2, y, yhi, yint, ylo, v1, v16, v17, v2, v4 + sign_bias = uint32(0) + ix = *(*Tuint64_t)(unsafe.Pointer(&x1)) + iy = *(*Tuint64_t)(unsafe.Pointer(&y1)) + topx = _top124(tls, x1) + topy = _top124(tls, y1) + if topx-uint32(0x001) >= Uint32FromInt32(Int32FromInt32(0x7ff)-Int32FromInt32(0x001)) || topy&uint32(0x7ff)-uint32(0x3be) >= Uint32FromInt32(Int32FromInt32(0x43e)-Int32FromInt32(0x3be)) { + /* Note: if |y| > 1075 * ln2 * 2^53 ~= 0x1.749p62 then pow(x,y) = inf/0 + and if |y| < 2^-54 / 1075 ~= 0x1.e7b6p-65 then pow(x,y) = +-1. */ + /* Special cases: (x < 0x1p-126 or inf or nan) or + (|y| < 0x1p-65 or |y| >= 0x1p63 or nan). */ + if _zeroinfnan(tls, iy) != 0 { + if uint64(2)*iy == uint64(0) { + return float64(1) + } + v1 = float64(1) + if ix == *(*Tuint64_t)(unsafe.Pointer(&v1)) { + return float64(1) + } + v1 = float64(X__builtin_inff(tls)) + if v4 = uint64(2)*ix > uint64(2)**(*Tuint64_t)(unsafe.Pointer(&v1)); !v4 { + v2 = float64(X__builtin_inff(tls)) + } + if v4 || uint64(2)*iy > uint64(2)**(*Tuint64_t)(unsafe.Pointer(&v2)) { + return x1 + y1 + } + v1 = float64(1) + if uint64(2)*ix == uint64(2)**(*Tuint64_t)(unsafe.Pointer(&v1)) { + return float64(1) + } + v1 = float64(1) + if BoolInt32(uint64(2)*ix < uint64(2)**(*Tuint64_t)(unsafe.Pointer(&v1))) == BoolInt32(!(iy>>Int32FromInt32(63) != 0)) { + return float64(0) + } /* |x|<1 && y==inf or |x|>1 && y==-inf. */ + return float64(y1 * y1) + } + if _zeroinfnan(tls, ix) != 0 { + x2 = Tdouble_t(x1 * x1) + if ix>>int32(63) != 0 && _checkint(tls, iy) == int32(1) { + x2 = -x2 + } + /* Without the barrier some versions of clang hoist the 1/x2 and + thus division by zero exception can be signaled spuriously. */ + if iy>>int32(63) != 0 { + y = Float64FromInt32(1) / x2 + v2 = y + goto _9 + _9: + v1 = v2 + } else { + v1 = x2 + } + return v1 + } + /* Here x and y are non-zero finite. */ + if ix>>int32(63) != 0 { + /* Finite x < 0. */ + yint = _checkint(tls, iy) + if yint == 0 { + return X__math_invalid(tls, x1) + } + if yint == int32(1) { + sign_bias = Uint32FromInt32(Int32FromInt32(0x800) << Int32FromInt32(EXP_TABLE_BITS)) + } + ix = ix & uint64(0x7fffffffffffffff) + topx = topx & uint32(0x7ff) + } + if topy&uint32(0x7ff)-uint32(0x3be) >= Uint32FromInt32(Int32FromInt32(0x43e)-Int32FromInt32(0x3be)) { + /* Note: sign_bias == 0 here because y is not odd. */ + v1 = float64(1) + if ix == *(*Tuint64_t)(unsafe.Pointer(&v1)) { + return float64(1) + } + if topy&uint32(0x7ff) < uint32(0x3be) { + /* |y| < 2^-65, x^y ~= 1 + y*log(x). */ + if int32(WANT_ROUNDING) != 0 { + v2 = float64(1) + if ix > *(*Tuint64_t)(unsafe.Pointer(&v2)) { + v1 = float64(1) + y1 + } else { + v1 = float64(1) - y1 + } + return v1 + } else { + return float64(1) + } + } + v2 = float64(1) + if BoolInt32(ix > *(*Tuint64_t)(unsafe.Pointer(&v2))) == BoolInt32(topy < uint32(0x800)) { + v1 = X__math_oflow(tls, uint32(0)) + } else { + v1 = X__math_uflow(tls, uint32(0)) + } + return v1 + } + if topx == uint32(0) { + /* Normalize subnormal x so exponent becomes negative. */ + v1 = float64(x1 * float64(4.503599627370496e+15)) + ix = *(*Tuint64_t)(unsafe.Pointer(&v1)) + ix = ix & uint64(0x7fffffffffffffff) + ix = uint64(ix - Uint64FromUint64(52)<> (Int32FromInt32(23) - Int32FromInt32(POWF_LOG2_TABLE_BITS)) % Uint32FromInt32(Int32FromInt32(1)<> (Int32FromInt32(23) - Int32FromInt32(POWF_SCALE_BITS)) /* arithmetic shift */ + invc = (**(**struct { + Finvc float64 + Flogc float64 + })(__ccgo_up(uintptr(unsafe.Pointer(&X__powf_log2_data)) + uintptr(i)*16))).Finvc + logc = (**(**struct { + Finvc float64 + Flogc float64 + })(__ccgo_up(uintptr(unsafe.Pointer(&X__powf_log2_data)) + uintptr(i)*16))).Flogc + z = float64(*(*float32)(unsafe.Pointer(&iz))) + /* log2(x) = log1p(z/c-1)/ln2 + log2(c) + k */ + r = Tdouble_t(z*invc) - Float64FromInt32(1) + y0 = logc + float64(k) + /* Pipelined polynomial evaluation to approximate log1p(r)/ln2. */ + r2 = Tdouble_t(r * r) + y = float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__powf_log2_data)) + 256))*r) + **(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__powf_log2_data)) + 256 + 1*8)) + p = float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__powf_log2_data)) + 256 + 2*8))*r) + **(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__powf_log2_data)) + 256 + 3*8)) + r4 = Tdouble_t(r2 * r2) + q = float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__powf_log2_data)) + 256 + 4*8))*r) + y0 + q = Tdouble_t(p*r2) + q + y = Tdouble_t(y*r4) + q + return y +} + +// C documentation +// +// /* The output of log2 and thus the input of exp2 is either scaled by N +// (in case of fast toint intrinsics) or not. The unscaled xd must be +// in [-1021,1023], sign_bias sets the sign of the result. */ +func _exp2_inline(tls *TLS, xd Tdouble_t, sign_bias Tuint32_t) (r1 float32) { + var kd, r, r2, s, y2, z Tdouble_t + var ki, ski, t Tuint64_t + var y, v4 float32 + var y1, v1 float64 + _, _, _, _, _, _, _, _, _, _, _, _, _ = kd, ki, r, r2, s, ski, t, y, y1, y2, z, v1, v4 + /* x = k/N + r with r in [-1/(2N), 1/(2N)] */ + y1 = xd + X__exp2f_data.Fshift_scaled + v1 = y1 + goto _2 +_2: + kd = v1 + v1 = kd + ki = *(*Tuint64_t)(unsafe.Pointer(&v1)) + kd = kd - X__exp2f_data.Fshift_scaled /* k/N */ + r = xd - kd + /* exp2(x) = 2^(k/N) * 2^r ~= s * (C0*r^3 + C1*r^2 + C2*r + 1) */ + t = **(**Tuint64_t)(__ccgo_up(uintptr(unsafe.Pointer(&X__exp2f_data)) + uintptr(ki%Uint64FromInt32(Int32FromInt32(1)<> int32(23) & uint32(0xff)) + if e < int32(0x7f) { + return 0 + } + if e > Int32FromInt32(0x7f)+Int32FromInt32(23) { + return int32(2) + } + if iy&Uint32FromInt32(Int32FromInt32(1)<<(Int32FromInt32(0x7f)+Int32FromInt32(23)-e)-Int32FromInt32(1)) != 0 { + return 0 + } + if iy&Uint32FromInt32(Int32FromInt32(1)<<(Int32FromInt32(0x7f)+Int32FromInt32(23)-e)) != 0 { + return int32(1) + } + return int32(2) +} + +func _zeroinfnan1(tls *TLS, ix Tuint32_t) (r int32) { + return BoolInt32(uint32(2)*ix-uint32(1) >= Uint32FromUint32(2)*Uint32FromInt32(0x7f800000)-Uint32FromInt32(1)) +} + +func Xpowf(tls *TLS, x1 float32, y1 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x1=%v y1=%v, (%v:)", tls, x1, y1, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ix, iy, sign_bias Tuint32_t + var logx, ylogx Tdouble_t + var x2 Tfloat_t + var y, v1, v2 float32 + var yint int32 + var v5, v6 float64 + _, _, _, _, _, _, _, _, _, _, _, _ = ix, iy, logx, sign_bias, x2, y, yint, ylogx, v1, v2, v5, v6 + sign_bias = uint32(0) + ix = *(*Tuint32_t)(unsafe.Pointer(&x1)) + iy = *(*Tuint32_t)(unsafe.Pointer(&y1)) + if ix-uint32(0x00800000) >= Uint32FromInt32(Int32FromInt32(0x7f800000)-Int32FromInt32(0x00800000)) || _zeroinfnan1(tls, iy) != 0 { + /* Either (x < 0x1p-126 or inf or nan) or (y is 0 or inf or nan). */ + if _zeroinfnan1(tls, iy) != 0 { + if uint32(2)*iy == uint32(0) { + return Float32FromFloat32(1) + } + if ix == uint32(0x3f800000) { + return Float32FromFloat32(1) + } + if uint32(2)*ix > Uint32FromUint32(2)*Uint32FromInt32(0x7f800000) || uint32(2)*iy > Uint32FromUint32(2)*Uint32FromInt32(0x7f800000) { + return x1 + y1 + } + if uint32(2)*ix == Uint32FromInt32(Int32FromInt32(2)*Int32FromInt32(0x3f800000)) { + return Float32FromFloat32(1) + } + if BoolInt32(uint32(2)*ix < Uint32FromInt32(Int32FromInt32(2)*Int32FromInt32(0x3f800000))) == BoolInt32(!(iy&Uint32FromUint32(0x80000000) != 0)) { + return Float32FromFloat32(0) + } /* |x|<1 && y==inf or |x|>1 && y==-inf. */ + return float32(y1 * y1) + } + if _zeroinfnan1(tls, ix) != 0 { + x2 = Tfloat_t(x1 * x1) + if ix&uint32(0x80000000) != 0 && _checkint1(tls, iy) == int32(1) { + x2 = -x2 + } + /* Without the barrier some versions of clang hoist the 1/x2 and + thus division by zero exception can be signaled spuriously. */ + if iy&uint32(0x80000000) != 0 { + y = Float32FromInt32(1) / x2 + v2 = y + goto _3 + _3: + v1 = v2 + } else { + v1 = x2 + } + return v1 + } + /* x and y are non-zero finite. */ + if ix&uint32(0x80000000) != 0 { + /* Finite x < 0. */ + yint = _checkint1(tls, iy) + if yint == 0 { + return X__math_invalidf(tls, x1) + } + if yint == int32(1) { + sign_bias = Uint32FromInt32(Int32FromInt32(1) << (Int32FromInt32(EXP2F_TABLE_BITS) + Int32FromInt32(11))) + } + ix = ix & uint32(0x7fffffff) + } + if ix < uint32(0x00800000) { + /* Normalize subnormal x so exponent becomes negative. */ + v1 = float32(x1 * Float32FromFloat32(8.388608e+06)) + ix = *(*Tuint32_t)(unsafe.Pointer(&v1)) + ix = ix & uint32(0x7fffffff) + ix = ix - Uint32FromInt32(Int32FromInt32(23)<>int32(47)&uint64(0xffff) >= *(*Tuint64_t)(unsafe.Pointer(&v6))>>int32(47) { + /* |y*log(x)| >= 126. */ + if ylogx > Tdouble_t(float64(127.99999995700433)*float64(Int32FromInt32(1)< %v", r) }() + } + return Xpow(tls, x, y) +} + +func Xremainder(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* q at bp+0 */ int32 + return Xremquo(tls, x, y, bp) +} + +func Xdrem(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xremainder(tls, x, y) +} + +func Xremainderf(tls *TLS, x float32, y float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* q at bp+0 */ int32 + return Xremquof(tls, x, y, bp) +} + +func Xdremf(tls *TLS, x float32, y float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xremainderf(tls, x, y) +} + +func Xremainderl(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xremainder(tls, x, y) +} + +func Xremquo(tls *TLS, x float64, y float64, quo uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v quo=%v, (%v:)", tls, x, y, quo, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var ex, ey, sx, sy, v10 int32 + var i, uxi Tuint64_t + var q Tuint32_t + var v1 uint64 + var v11 float64 + var v3 bool + var v6 uintptr + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + var _ /* ux at bp+8 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + var _ /* uy at bp+16 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _, _, _, _, _, _ = ex, ey, i, q, sx, sy, uxi, v1, v10, v11, v3, v6 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp + 8)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp + 8)) = x + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp + 16)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp + 16)) = y + ex = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp + 8)) >> int32(52) & uint64(0x7ff)) + ey = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp + 16)) >> int32(52) & uint64(0x7ff)) + sx = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp + 8)) >> int32(63)) + sy = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp + 16)) >> int32(63)) + uxi = *(*Tuint64_t)(unsafe.Pointer(bp + 8)) + **(**int32)(__ccgo_up(quo)) = 0 + if v3 = *(*Tuint64_t)(unsafe.Pointer(bp + 16))<>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>int32(63) == uint64(0)) { + break + } + goto _4 + _4: + ; + ex = ex - 1 + i = i << uint64(1) + } + uxi = uxi << Uint64FromInt32(-ex+int32(1)) + } else { + uxi = uint64(uxi & (-Uint64FromUint64(1) >> Int32FromInt32(12))) + uxi = uint64(uxi | Uint64FromUint64(1)<>int32(63) == uint64(0)) { + break + } + goto _5 + _5: + ; + ey = ey - 1 + i = i << uint64(1) + } + *(*Tuint64_t)(unsafe.Pointer(bp + 16)) <<= Uint64FromInt32(-ey + int32(1)) + } else { + v6 = bp + 16 + *(*Tuint64_t)(unsafe.Pointer(v6)) = Tuint64_t(*(*Tuint64_t)(unsafe.Pointer(v6)) & (-Uint64FromUint64(1) >> Int32FromInt32(12))) + v6 = bp + 16 + *(*Tuint64_t)(unsafe.Pointer(v6)) = Tuint64_t(*(*Tuint64_t)(unsafe.Pointer(v6)) | Uint64FromUint64(1)< ey) { + break + } + i = uxi - *(*Tuint64_t)(unsafe.Pointer(bp + 16)) + if i>>int32(63) == uint64(0) { + uxi = i + q = q + 1 + } + uxi = uxi << uint64(1) + q = q << uint32(1) + goto _8 + _8: + ; + ex = ex - 1 + } + i = uxi - *(*Tuint64_t)(unsafe.Pointer(bp + 16)) + if i>>int32(63) == uint64(0) { + uxi = i + q = q + 1 + } + if uxi == uint64(0) { + ex = -int32(60) + } else { + for { + if !(uxi>>int32(52) == uint64(0)) { + break + } + goto _9 + _9: + ; + uxi = uxi << uint64(1) + ex = ex - 1 + } + } + goto end +end: + ; + /* scale result and decide between |x| and |x|-|y| */ + if ex > 0 { + uxi = uint64(uxi - Uint64FromUint64(1)<> Uint64FromInt32(-ex+int32(1)) + } + *(*Tuint64_t)(unsafe.Pointer(bp + 8)) = uxi + x = *(*float64)(unsafe.Pointer(bp + 8)) + if sy != 0 { + y = -y + } + if ex == ey || ex+int32(1) == ey && (float64(Float64FromInt32(2)*x) > y || float64(Float64FromInt32(2)*x) == y && q%uint32(2) != 0) { + x = x - y + q = q + 1 + } + q = q & uint32(0x7fffffff) + if sx^sy != 0 { + v10 = -Int32FromUint32(q) + } else { + v10 = Int32FromUint32(q) + } + **(**int32)(__ccgo_up(quo)) = v10 + if sx != 0 { + v11 = -x + } else { + v11 = x + } + return v11 +} + +func Xremquof(tls *TLS, x float32, y float32, quo uintptr) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v quo=%v, (%v:)", tls, x, y, quo, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ex, ey, sx, sy, v8 int32 + var i, q, uxi Tuint32_t + var v1 uint32 + var v3 bool + var v9 float32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + var _ /* ux at bp+4 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + var _ /* uy at bp+8 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _, _, _, _, _, _ = ex, ey, i, q, sx, sy, uxi, v1, v3, v8, v9 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp + 4)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp + 4)) = x + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp + 8)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp + 8)) = y + ex = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp + 4)) >> int32(23) & uint32(0xff)) + ey = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp + 8)) >> int32(23) & uint32(0xff)) + sx = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp + 4)) >> int32(31)) + sy = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp + 8)) >> int32(31)) + uxi = *(*Tuint32_t)(unsafe.Pointer(bp + 4)) + **(**int32)(__ccgo_up(quo)) = 0 + if v3 = *(*Tuint32_t)(unsafe.Pointer(bp + 8))< uint32(0x7f800000)) != 0 || ex == int32(0xff) { + return float32(x*y) / float32(x*y) + } + if *(*Tuint32_t)(unsafe.Pointer(bp + 4))<>int32(31) == uint32(0)) { + break + } + goto _4 + _4: + ; + ex = ex - 1 + i = i << uint32(1) + } + uxi = uxi << Uint32FromInt32(-ex+int32(1)) + } else { + uxi = uxi & (-Uint32FromUint32(1) >> Int32FromInt32(9)) + uxi = uxi | Uint32FromUint32(1)<>int32(31) == uint32(0)) { + break + } + goto _5 + _5: + ; + ey = ey - 1 + i = i << uint32(1) + } + *(*Tuint32_t)(unsafe.Pointer(bp + 8)) <<= Uint32FromInt32(-ey + int32(1)) + } else { + *(*Tuint32_t)(unsafe.Pointer(bp + 8)) &= -Uint32FromUint32(1) >> Int32FromInt32(9) + *(*Tuint32_t)(unsafe.Pointer(bp + 8)) |= Uint32FromUint32(1) << Int32FromInt32(23) + } + q = uint32(0) + if ex < ey { + if ex+int32(1) == ey { + goto end + } + return x + } + /* x mod y */ + for { + if !(ex > ey) { + break + } + i = uxi - *(*Tuint32_t)(unsafe.Pointer(bp + 8)) + if i>>int32(31) == uint32(0) { + uxi = i + q = q + 1 + } + uxi = uxi << uint32(1) + q = q << uint32(1) + goto _6 + _6: + ; + ex = ex - 1 + } + i = uxi - *(*Tuint32_t)(unsafe.Pointer(bp + 8)) + if i>>int32(31) == uint32(0) { + uxi = i + q = q + 1 + } + if uxi == uint32(0) { + ex = -int32(30) + } else { + for { + if !(uxi>>int32(23) == uint32(0)) { + break + } + goto _7 + _7: + ; + uxi = uxi << uint32(1) + ex = ex - 1 + } + } + goto end +end: + ; + /* scale result and decide between |x| and |x|-|y| */ + if ex > 0 { + uxi = uxi - Uint32FromUint32(1)<> Uint32FromInt32(-ex+int32(1)) + } + *(*Tuint32_t)(unsafe.Pointer(bp + 4)) = uxi + x = *(*float32)(unsafe.Pointer(bp + 4)) + if sy != 0 { + y = -y + } + if ex == ey || ex+int32(1) == ey && (float32(Float32FromInt32(2)*x) > y || float32(Float32FromInt32(2)*x) == y && q%uint32(2) != 0) { + x = x - y + q = q + 1 + } + q = q & uint32(0x7fffffff) + if sx^sy != 0 { + v8 = -Int32FromUint32(q) + } else { + v8 = Int32FromUint32(q) + } + **(**int32)(__ccgo_up(quo)) = v8 + if sx != 0 { + v9 = -x + } else { + v9 = x + } + return v9 +} + +func Xremquol(tls *TLS, x float64, y float64, quo uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v quo=%v, (%v:)", tls, x, y, quo, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xremquo(tls, x, y, quo) +} + +const DBL_EPSILON9 = 2.220446049250313e-16 + +var _toint4 = Float64FromInt32(1) / Float64FromFloat64(2.220446049250313e-16) + +func Xrint(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e, s int32 + var y Tdouble_t + var v1 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _ = e, s, y, v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + e = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + s = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(63)) + if e >= Int32FromInt32(0x3ff)+Int32FromInt32(52) { + return x + } + if s != 0 { + y = x - _toint4 + _toint4 + } else { + y = x + _toint4 - _toint4 + } + if y == Float64FromInt32(0) { + if s != 0 { + v1 = -Float64FromFloat64(0) + } else { + v1 = Float64FromInt32(0) + } + return v1 + } + return y +} + +const DBL_EPSILON10 = 0 +const FLT_EPSILON1 = 1.1920928955078125e-07 + +var _toint5 = Float32FromInt32(1) / Float32FromFloat32(1.1920928955078125e-07) + +func Xrintf(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e, s int32 + var y Tfloat_t + var v1 float32 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _ = e, s, y, v1 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + e = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(23) & uint32(0xff)) + s = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(31)) + if e >= Int32FromInt32(0x7f)+Int32FromInt32(23) { + return x + } + if s != 0 { + y = x - _toint5 + _toint5 + } else { + y = x + _toint5 - _toint5 + } + if y == Float32FromInt32(0) { + if s != 0 { + v1 = -Float32FromFloat32(0) + } else { + v1 = Float32FromFloat32(0) + } + return v1 + } + return y +} + +const FLT_EPSILON2 = 0 + +func Xrintl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xrint(tls, x) +} + +const DBL_EPSILON11 = 2.220446049250313e-16 + +var _toint6 = Float64FromInt32(1) / Float64FromFloat64(2.220446049250313e-16) + +func Xround(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e int32 + var y float32 + var y1, y2 float64 + var y3 Tdouble_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _ = e, y, y1, y2, y3 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + e = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + if e >= Int32FromInt32(0x3ff)+Int32FromInt32(52) { + return x3 + } + if *(*Tuint64_t)(unsafe.Pointer(bp))>>int32(63) != 0 { + x3 = -x3 + } + if e < Int32FromInt32(0x3ff)-Int32FromInt32(1) { + /* raise inexact if x!=0 */ + if uint64(8) == uint64(4) { + y = float32(x3 + _toint6) + } else { + if uint64(8) == uint64(8) { + y1 = x3 + _toint6 + } else { + y2 = float64(x3 + _toint6) + } + } + return float64(Float64FromInt32(0) * *(*float64)(unsafe.Pointer(bp))) + } + y3 = x3 + _toint6 - _toint6 - x3 + if y3 > float64(0.5) { + y3 = y3 + x3 - Float64FromInt32(1) + } else { + if y3 <= -Float64FromFloat64(0.5) { + y3 = y3 + x3 + Float64FromInt32(1) + } else { + y3 = y3 + x3 + } + } + if *(*Tuint64_t)(unsafe.Pointer(bp))>>int32(63) != 0 { + y3 = -y3 + } + return y3 +} + +const DBL_EPSILON12 = 0 +const FLT_EPSILON3 = 1.1920928955078125e-07 + +var _toint7 = Float32FromInt32(1) / Float32FromFloat32(1.1920928955078125e-07) + +func Xroundf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e int32 + var y float32 + var y1, y2 float64 + var y3 Tfloat_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _ = e, y, y1, y2, y3 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + e = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(23) & uint32(0xff)) + if e >= Int32FromInt32(0x7f)+Int32FromInt32(23) { + return x3 + } + if *(*Tuint32_t)(unsafe.Pointer(bp))>>int32(31) != 0 { + x3 = -x3 + } + if e < Int32FromInt32(0x7f)-Int32FromInt32(1) { + if uint64(4) == uint64(4) { + y = x3 + _toint7 + } else { + if uint64(4) == uint64(8) { + y1 = float64(x3 + _toint7) + } else { + y2 = float64(x3 + _toint7) + } + } + return float32(Float32FromInt32(0) * *(*float32)(unsafe.Pointer(bp))) + } + y3 = x3 + _toint7 - _toint7 - x3 + if y3 > Float32FromFloat32(0.5) { + y3 = y3 + x3 - Float32FromInt32(1) + } else { + if y3 <= -Float32FromFloat32(0.5) { + y3 = y3 + x3 + Float32FromInt32(1) + } else { + y3 = y3 + x3 + } + } + if *(*Tuint32_t)(unsafe.Pointer(bp))>>int32(31) != 0 { + y3 = -y3 + } + return y3 +} + +const FLT_EPSILON4 = 0 + +func Xroundl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xround(tls, x) +} + +func Xscalb(tls *TLS, x float64, fn float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v fn=%v, (%v:)", tls, x, fn, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1, v3 uint64 + var v5 bool + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _, _, _ = v1, v3, v5 + *(*float64)(unsafe.Pointer(bp)) = x + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + ; + if v5 = BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) < Uint64FromUint64(0x7ff)< float64(0) { + return float64(x * fn) + } else { + return x / -fn + } + } + if Xrint(tls, fn) != fn { + return (fn - fn) / (fn - fn) + } + if fn > float64(65000) { + return Xscalbn(tls, x, int32(65000)) + } + if -fn > float64(65000) { + return Xscalbn(tls, x, -int32(65000)) + } + return Xscalbn(tls, x, int32(fn)) +} + +func Xscalbf(tls *TLS, x float32, fn float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v fn=%v, (%v:)", tls, x, fn, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1, v3 uint32 + var v5 bool + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _, _, _ = v1, v3, v5 + *(*float32)(unsafe.Pointer(bp)) = x + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + ; + if v5 = BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0; !v5 { + *(*float32)(unsafe.Pointer(bp)) = fn + v3 = *(*uint32)(unsafe.Pointer(bp)) + goto _4 + _4: + } + if v5 || BoolInt32(v3&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return float32(x * fn) + } + *(*float32)(unsafe.Pointer(bp)) = fn + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _7 +_7: + if !(BoolInt32(v1&Uint32FromInt32(0x7fffffff) < Uint32FromInt32(0x7f800000)) != 0) { + if fn > Float32FromFloat32(0) { + return float32(x * fn) + } else { + return x / -fn + } + } + if Xrintf(tls, fn) != fn { + return (fn - fn) / (fn - fn) + } + if fn > Float32FromFloat32(65000) { + return Xscalbnf(tls, x, int32(65000)) + } + if -fn > Float32FromFloat32(65000) { + return Xscalbnf(tls, x, -int32(65000)) + } + return Xscalbnf(tls, x, int32(fn)) +} + +func Xscalbln(tls *TLS, x float64, n int64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + if n > int64(INT_MAX) { + n = int64(INT_MAX) + } else { + if n < int64(-Int32FromInt32(1)-Int32FromInt32(0x7fffffff)) { + n = int64(-Int32FromInt32(1) - Int32FromInt32(0x7fffffff)) + } + } + return Xscalbn(tls, x, int32(n)) +} + +func Xscalblnf(tls *TLS, x float32, n int64) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + if n > int64(INT_MAX) { + n = int64(INT_MAX) + } else { + if n < int64(-Int32FromInt32(1)-Int32FromInt32(0x7fffffff)) { + n = int64(-Int32FromInt32(1) - Int32FromInt32(0x7fffffff)) + } + } + return Xscalbnf(tls, x, int32(n)) +} + +func Xscalblnl(tls *TLS, x float64, n int64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xscalbln(tls, x, n) +} + +func Xscalbn(tls *TLS, x float64, n int32) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var y Tdouble_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _ = y + y = x + if n > int32(1023) { + y = y * float64(8.98846567431158e+307) + n = n - int32(1023) + if n > int32(1023) { + y = y * float64(8.98846567431158e+307) + n = n - int32(1023) + if n > int32(1023) { + n = int32(1023) + } + } + } else { + if n < -int32(1022) { + /* make sure final n < -53 to avoid double + rounding in the subnormal range */ + y = y * Tdouble_t(Float64FromFloat64(2.2250738585072014e-308)*Float64FromFloat64(9.007199254740992e+15)) + n = n + (Int32FromInt32(1022) - Int32FromInt32(53)) + if n < -int32(1022) { + y = y * Tdouble_t(Float64FromFloat64(2.2250738585072014e-308)*Float64FromFloat64(9.007199254740992e+15)) + n = n + (Int32FromInt32(1022) - Int32FromInt32(53)) + if n < -int32(1022) { + n = -int32(1022) + } + } + } + } + *(*Tuint64_t)(unsafe.Pointer(bp)) = Uint64FromInt32(Int32FromInt32(0x3ff)+n) << int32(52) + x = float64(y * *(*float64)(unsafe.Pointer(bp))) + return x +} + +func Xscalbnf(tls *TLS, x float32, n int32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var y Tfloat_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _ = y + y = x + if n > int32(127) { + y = y * Float32FromFloat32(1.7014118346046923e+38) + n = n - int32(127) + if n > int32(127) { + y = y * Float32FromFloat32(1.7014118346046923e+38) + n = n - int32(127) + if n > int32(127) { + n = int32(127) + } + } + } else { + if n < -int32(126) { + y = y * Tfloat_t(Float32FromFloat32(1.1754943508222875e-38)*Float32FromFloat32(1.6777216e+07)) + n = n + (Int32FromInt32(126) - Int32FromInt32(24)) + if n < -int32(126) { + y = y * Tfloat_t(Float32FromFloat32(1.1754943508222875e-38)*Float32FromFloat32(1.6777216e+07)) + n = n + (Int32FromInt32(126) - Int32FromInt32(24)) + if n < -int32(126) { + n = -int32(126) + } + } + } + } + *(*Tuint32_t)(unsafe.Pointer(bp)) = Uint32FromInt32(Int32FromInt32(0x7f)+n) << int32(23) + x = float32(y * *(*float32)(unsafe.Pointer(bp))) + return x +} + +func Xscalbnl(tls *TLS, x float64, n int32) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xscalbn(tls, x, n) +} + +func Xsignificand(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xscalbn(tls, x, -Xilogb(tls, x)) +} + +func Xsignificandf(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xscalbnf(tls, x, -Xilogbf(tls, x)) +} + +func Xsin(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ix Tuint32_t + var n uint32 + var y float32 + var y1, y2, v1 float64 + var _ /* y at bp+0 */ [2]float64 + _, _, _, _, _, _ = ix, n, y, y1, y2, v1 + /* High word of x. */ + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x3)) >> int32(32)) + ix = ix & uint32(0x7fffffff) + /* |x| ~< pi/4 */ + if ix <= uint32(0x3fe921fb) { + if ix < uint32(0x3e500000) { /* |x| < 2**-26 */ + /* raise inexact if x != 0 and underflow if subnormal*/ + if uint64(8) == uint64(4) { + if ix < uint32(0x00100000) { + v1 = x3 / Float64FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } + y = float32(v1) + } else { + if uint64(8) == uint64(8) { + if ix < uint32(0x00100000) { + v1 = x3 / Float64FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } + y1 = v1 + } else { + if ix < uint32(0x00100000) { + v1 = x3 / Float64FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } + y2 = v1 + } + } + return x3 + } + return X__sin(tls, x3, float64(0), 0) + } + /* sin(Inf or NaN) is NaN */ + if ix >= uint32(0x7ff00000) { + return x3 - x3 + } + /* argument reduction needed */ + n = Uint32FromInt32(X__rem_pio2(tls, x3, bp)) + switch n & Uint32FromInt32(3) { + case uint32(0): + return X__sin(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)], int32(1)) + case uint32(1): + return X__cos(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)]) + case uint32(2): + return -X__sin(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)], int32(1)) + default: + return -X__cos(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)]) + } + return r +} + +func Xsincos(tls *TLS, x3 float64, sin uintptr, cos uintptr) { + if __ccgo_strace { + trc("tls=%v x3=%v sin=%v cos=%v, (%v:)", tls, x3, sin, cos, origin(2)) + } + bp := tls.Alloc(16) + defer tls.Free(16) + var c, s, y1, y2, v1 float64 + var ix Tuint32_t + var n uint32 + var y float32 + var _ /* y at bp+0 */ [2]float64 + _, _, _, _, _, _, _, _ = c, ix, n, s, y, y1, y2, v1 + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x3)) >> int32(32)) + ix = ix & uint32(0x7fffffff) + /* |x| ~< pi/4 */ + if ix <= uint32(0x3fe921fb) { + /* if |x| < 2**-27 * sqrt(2) */ + if ix < uint32(0x3e46a09e) { + /* raise inexact if x!=0 and underflow if subnormal */ + if uint64(8) == uint64(4) { + if ix < uint32(0x00100000) { + v1 = x3 / Float64FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } + y = float32(v1) + } else { + if uint64(8) == uint64(8) { + if ix < uint32(0x00100000) { + v1 = x3 / Float64FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } + y1 = v1 + } else { + if ix < uint32(0x00100000) { + v1 = x3 / Float64FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } + y2 = v1 + } + } + **(**float64)(__ccgo_up(sin)) = x3 + **(**float64)(__ccgo_up(cos)) = float64(1) + return + } + **(**float64)(__ccgo_up(sin)) = X__sin(tls, x3, float64(0), 0) + **(**float64)(__ccgo_up(cos)) = X__cos(tls, x3, float64(0)) + return + } + /* sincos(Inf or NaN) is NaN */ + if ix >= uint32(0x7ff00000) { + v1 = x3 - x3 + **(**float64)(__ccgo_up(cos)) = v1 + **(**float64)(__ccgo_up(sin)) = v1 + return + } + /* argument reduction needed */ + n = Uint32FromInt32(X__rem_pio2(tls, x3, bp)) + s = X__sin(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)], int32(1)) + c = X__cos(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)]) + switch n & Uint32FromInt32(3) { + case uint32(0): + **(**float64)(__ccgo_up(sin)) = s + **(**float64)(__ccgo_up(cos)) = c + case uint32(1): + **(**float64)(__ccgo_up(sin)) = c + **(**float64)(__ccgo_up(cos)) = -s + case uint32(2): + **(**float64)(__ccgo_up(sin)) = -s + **(**float64)(__ccgo_up(cos)) = -c + case uint32(3): + fallthrough + default: + **(**float64)(__ccgo_up(sin)) = -c + **(**float64)(__ccgo_up(cos)) = s + break + } +} + +const M_PI_25 = 1.5707963267948966 + +// C documentation +// +// /* Small multiples of pi/2 rounded to double precision. */ + +var _s1pio2 = float64(Float64FromInt32(1) * Float64FromFloat64(1.5707963267948966)) /* 0x3FF921FB, 0x54442D18 */ +var _s2pio2 = float64(Float64FromInt32(2) * Float64FromFloat64(1.5707963267948966)) /* 0x400921FB, 0x54442D18 */ +var _s3pio2 = float64(Float64FromInt32(3) * Float64FromFloat64(1.5707963267948966)) /* 0x4012D97C, 0x7F3321D2 */ +var _s4pio2 = float64(Float64FromInt32(4) * Float64FromFloat64(1.5707963267948966)) /* 0x401921FB, 0x54442D18 */ + +func Xsincosf(tls *TLS, x3 float32, sin uintptr, cos uintptr) { + if __ccgo_strace { + trc("tls=%v x3=%v sin=%v cos=%v, (%v:)", tls, x3, sin, cos, origin(2)) + } + bp := tls.Alloc(16) + defer tls.Free(16) + var c, s Tfloat_t + var ix Tuint32_t + var n, sign uint32 + var y, v1 float32 + var y1, y2, v4 float64 + var _ /* y at bp+0 */ float64 + _, _, _, _, _, _, _, _, _, _ = c, ix, n, s, sign, y, y1, y2, v1, v4 + ix = *(*Tuint32_t)(unsafe.Pointer(&x3)) + sign = ix >> int32(31) + ix = ix & uint32(0x7fffffff) + /* |x| ~<= pi/4 */ + if ix <= uint32(0x3f490fda) { + /* |x| < 2**-12 */ + if ix < uint32(0x39800000) { + /* raise inexact if x!=0 and underflow if subnormal */ + if uint64(4) == uint64(4) { + if ix < uint32(0x00100000) { + v1 = x3 / Float32FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float32FromFloat32(1.329227995784916e+36) + } + y = v1 + } else { + if uint64(4) == uint64(8) { + if ix < uint32(0x00100000) { + v1 = x3 / Float32FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float32FromFloat32(1.329227995784916e+36) + } + y1 = float64(v1) + } else { + if ix < uint32(0x00100000) { + v1 = x3 / Float32FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float32FromFloat32(1.329227995784916e+36) + } + y2 = float64(v1) + } + } + **(**float32)(__ccgo_up(sin)) = x3 + **(**float32)(__ccgo_up(cos)) = Float32FromFloat32(1) + return + } + **(**float32)(__ccgo_up(sin)) = X__sindf(tls, float64(x3)) + **(**float32)(__ccgo_up(cos)) = X__cosdf(tls, float64(x3)) + return + } + /* |x| ~<= 5*pi/4 */ + if ix <= uint32(0x407b53d1) { + if ix <= uint32(0x4016cbe3) { /* |x| ~<= 3pi/4 */ + if sign != 0 { + **(**float32)(__ccgo_up(sin)) = -X__cosdf(tls, float64(x3)+_s1pio2) + **(**float32)(__ccgo_up(cos)) = X__sindf(tls, float64(x3)+_s1pio2) + } else { + **(**float32)(__ccgo_up(sin)) = X__cosdf(tls, _s1pio2-float64(x3)) + **(**float32)(__ccgo_up(cos)) = X__sindf(tls, _s1pio2-float64(x3)) + } + return + } + /* -sin(x+c) is not correct if x+c could be 0: -0 vs +0 */ + if sign != 0 { + v4 = float64(x3) + _s2pio2 + } else { + v4 = float64(x3) - _s2pio2 + } + **(**float32)(__ccgo_up(sin)) = -X__sindf(tls, v4) + if sign != 0 { + v4 = float64(x3) + _s2pio2 + } else { + v4 = float64(x3) - _s2pio2 + } + **(**float32)(__ccgo_up(cos)) = -X__cosdf(tls, v4) + return + } + /* |x| ~<= 9*pi/4 */ + if ix <= uint32(0x40e231d5) { + if ix <= uint32(0x40afeddf) { /* |x| ~<= 7*pi/4 */ + if sign != 0 { + **(**float32)(__ccgo_up(sin)) = X__cosdf(tls, float64(x3)+_s3pio2) + **(**float32)(__ccgo_up(cos)) = -X__sindf(tls, float64(x3)+_s3pio2) + } else { + **(**float32)(__ccgo_up(sin)) = -X__cosdf(tls, float64(x3)-_s3pio2) + **(**float32)(__ccgo_up(cos)) = X__sindf(tls, float64(x3)-_s3pio2) + } + return + } + if sign != 0 { + v4 = float64(x3) + _s4pio2 + } else { + v4 = float64(x3) - _s4pio2 + } + **(**float32)(__ccgo_up(sin)) = X__sindf(tls, v4) + if sign != 0 { + v4 = float64(x3) + _s4pio2 + } else { + v4 = float64(x3) - _s4pio2 + } + **(**float32)(__ccgo_up(cos)) = X__cosdf(tls, v4) + return + } + /* sin(Inf or NaN) is NaN */ + if ix >= uint32(0x7f800000) { + v1 = x3 - x3 + **(**float32)(__ccgo_up(cos)) = v1 + **(**float32)(__ccgo_up(sin)) = v1 + return + } + /* general argument reduction needed */ + n = Uint32FromInt32(X__rem_pio2f(tls, x3, bp)) + s = X__sindf(tls, **(**float64)(__ccgo_up(bp))) + c = X__cosdf(tls, **(**float64)(__ccgo_up(bp))) + switch n & Uint32FromInt32(3) { + case uint32(0): + **(**float32)(__ccgo_up(sin)) = s + **(**float32)(__ccgo_up(cos)) = c + case uint32(1): + **(**float32)(__ccgo_up(sin)) = c + **(**float32)(__ccgo_up(cos)) = -s + case uint32(2): + **(**float32)(__ccgo_up(sin)) = -s + **(**float32)(__ccgo_up(cos)) = -c + case uint32(3): + fallthrough + default: + **(**float32)(__ccgo_up(sin)) = -c + **(**float32)(__ccgo_up(cos)) = s + break + } +} + +const M_PI_26 = 0 + +func Xsincosl(tls *TLS, x float64, sin uintptr, cos uintptr) { + if __ccgo_strace { + trc("tls=%v x=%v sin=%v cos=%v, (%v:)", tls, x, sin, cos, origin(2)) + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* cosd at bp+8 */ float64 + var _ /* sind at bp+0 */ float64 + Xsincos(tls, x, bp, bp+8) + **(**float64)(__ccgo_up(sin)) = float64(**(**float64)(__ccgo_up(bp))) + **(**float64)(__ccgo_up(cos)) = float64(**(**float64)(__ccgo_up(bp + 8))) +} + +const M_PI_27 = 1.5707963267948966 + +// C documentation +// +// /* Small multiples of pi/2 rounded to double precision. */ + +var _s1pio21 = float64(Float64FromInt32(1) * Float64FromFloat64(1.5707963267948966)) /* 0x3FF921FB, 0x54442D18 */ +var _s2pio21 = float64(Float64FromInt32(2) * Float64FromFloat64(1.5707963267948966)) /* 0x400921FB, 0x54442D18 */ +var _s3pio21 = float64(Float64FromInt32(3) * Float64FromFloat64(1.5707963267948966)) /* 0x4012D97C, 0x7F3321D2 */ +var _s4pio21 = float64(Float64FromInt32(4) * Float64FromFloat64(1.5707963267948966)) /* 0x401921FB, 0x54442D18 */ + +func Xsinf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ix Tuint32_t + var n, sign int32 + var y, v1 float32 + var y1, y2, v4 float64 + var _ /* y at bp+0 */ float64 + _, _, _, _, _, _, _, _ = ix, n, sign, y, y1, y2, v1, v4 + ix = *(*Tuint32_t)(unsafe.Pointer(&x3)) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix <= uint32(0x3f490fda) { /* |x| ~<= pi/4 */ + if ix < uint32(0x39800000) { /* |x| < 2**-12 */ + /* raise inexact if x!=0 and underflow if subnormal */ + if uint64(4) == uint64(4) { + if ix < uint32(0x00800000) { + v1 = x3 / Float32FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float32FromFloat32(1.329227995784916e+36) + } + y = v1 + } else { + if uint64(4) == uint64(8) { + if ix < uint32(0x00800000) { + v1 = x3 / Float32FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float32FromFloat32(1.329227995784916e+36) + } + y1 = float64(v1) + } else { + if ix < uint32(0x00800000) { + v1 = x3 / Float32FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float32FromFloat32(1.329227995784916e+36) + } + y2 = float64(v1) + } + } + return x3 + } + return X__sindf(tls, float64(x3)) + } + if ix <= uint32(0x407b53d1) { /* |x| ~<= 5*pi/4 */ + if ix <= uint32(0x4016cbe3) { /* |x| ~<= 3pi/4 */ + if sign != 0 { + return -X__cosdf(tls, float64(x3)+_s1pio21) + } else { + return X__cosdf(tls, float64(x3)-_s1pio21) + } + } + if sign != 0 { + v4 = -(float64(x3) + _s2pio21) + } else { + v4 = -(float64(x3) - _s2pio21) + } + return X__sindf(tls, v4) + } + if ix <= uint32(0x40e231d5) { /* |x| ~<= 9*pi/4 */ + if ix <= uint32(0x40afeddf) { /* |x| ~<= 7*pi/4 */ + if sign != 0 { + return X__cosdf(tls, float64(x3)+_s3pio21) + } else { + return -X__cosdf(tls, float64(x3)-_s3pio21) + } + } + if sign != 0 { + v4 = float64(x3) + _s4pio21 + } else { + v4 = float64(x3) - _s4pio21 + } + return X__sindf(tls, v4) + } + /* sin(Inf or NaN) is NaN */ + if ix >= uint32(0x7f800000) { + return x3 - x3 + } + /* general argument reduction needed */ + n = X__rem_pio2f(tls, x3, bp) + switch n & Int32FromInt32(3) { + case 0: + return X__sindf(tls, **(**float64)(__ccgo_up(bp))) + case int32(1): + return X__cosdf(tls, **(**float64)(__ccgo_up(bp))) + case int32(2): + return X__sindf(tls, -**(**float64)(__ccgo_up(bp))) + default: + return -X__cosdf(tls, **(**float64)(__ccgo_up(bp))) + } + return r +} + +const M_PI_28 = 0 + +// C documentation +// +// /* sinh(x) = (exp(x) - 1/exp(x))/2 +// * = (exp(x)-1 + (exp(x)-1)/exp(x))/2 +// * = x + x^3/6 + o(x^5) +// */ +func Xsinh(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var absx, h, t float64 + var w Tuint32_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _ = absx, h, t, w + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + h = float64(0.5) + if *(*Tuint64_t)(unsafe.Pointer(bp))>>int32(63) != 0 { + h = -h + } + /* |x| */ + *(*Tuint64_t)(unsafe.Pointer(bp)) &= Uint64FromInt32(-Int32FromInt32(1)) / Uint64FromInt32(2) + absx = *(*float64)(unsafe.Pointer(bp)) + w = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32)) + /* |x| < log(DBL_MAX) */ + if w < uint32(0x40862e42) { + t = Xexpm1(tls, absx) + if w < uint32(0x3ff00000) { + if w < Uint32FromInt32(Int32FromInt32(0x3ff00000)-Int32FromInt32(26)<log(0x1p26)+eps could be just h*exp(x) */ + return float64(h * (t + t/(t+Float64FromInt32(1)))) + } + /* |x| > log(DBL_MAX) or nan */ + /* note: the result is stored to handle overflow */ + t = X__expo2(tls, absx, float64(Float64FromInt32(2)*h)) + return t +} + +func Xsinhf(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var absx, h, t float32 + var w Tuint32_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _ = absx, h, t, w + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + h = float32(0.5) + if *(*Tuint32_t)(unsafe.Pointer(bp))>>int32(31) != 0 { + h = -h + } + /* |x| */ + *(*Tuint32_t)(unsafe.Pointer(bp)) &= uint32(0x7fffffff) + absx = *(*float32)(unsafe.Pointer(bp)) + w = *(*Tuint32_t)(unsafe.Pointer(bp)) + /* |x| < log(FLT_MAX) */ + if w < uint32(0x42b17217) { + t = Xexpm1f(tls, absx) + if w < uint32(0x3f800000) { + if w < Uint32FromInt32(Int32FromInt32(0x3f800000)-Int32FromInt32(12)< logf(FLT_MAX) or nan */ + t = X__expo2f(tls, absx, float32(Float32FromInt32(2)*h)) + return t +} + +func Xsinhl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xsinh(tls, x) +} + +func Xsinl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xsin(tls, x) +} + +const FENV_SUPPORT = 1 + +// C documentation +// +// /* returns a*b*2^-32 - e, with error 0 <= e < 1. */ +func _mul32(tls *TLS, a Tuint32_t, b Tuint32_t) (r Tuint32_t) { + return uint32(uint64(a) * uint64(b) >> int32(32)) +} + +// C documentation +// +// /* returns a*b*2^-64 - e, with error 0 <= e < 3. */ +func _mul64(tls *TLS, a Tuint64_t, b Tuint64_t) (r Tuint64_t) { + var ahi, alo, bhi, blo Tuint64_t + _, _, _, _ = ahi, alo, bhi, blo + ahi = a >> int32(32) + alo = a & uint64(0xffffffff) + bhi = b >> int32(32) + blo = b & uint64(0xffffffff) + return ahi*bhi + ahi*blo>>int32(32) + alo*bhi>>int32(32) +} + +func Xsqrt(tls *TLS, x1 float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x1=%v, (%v:)", tls, x1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var d, d0, d1, d2, i, ix, m, r, s, tiny, top, u Tuint64_t + var even int32 + var t, y, y1, v1 float64 + var v2 int64 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = d, d0, d1, d2, even, i, ix, m, r, s, t, tiny, top, u, y, y1, v1, v2 + /* special case handling. */ + ix = *(*Tuint64_t)(unsafe.Pointer(&x1)) + top = ix >> int32(52) + if top-uint64(0x001) >= Uint64FromInt32(Int32FromInt32(0x7ff)-Int32FromInt32(0x001)) { + /* x < 0x1p-1022 or inf or nan. */ + if ix*uint64(2) == uint64(0) { + return x1 + } + if ix == uint64(0x7ff0000000000000) { + return x1 + } + if ix > uint64(0x7ff0000000000000) { + return X__math_invalid(tls, x1) + } + /* x is subnormal, normalize it. */ + v1 = float64(x1 * float64(4.503599627370496e+15)) + ix = *(*Tuint64_t)(unsafe.Pointer(&v1)) + top = ix >> int32(52) + top = top - uint64(52) + } + /* argument reduction: + x = 4^e m; with integer e, and m in [1, 4) + m: fixed point representation [2.62] + 2^e is the exponent part of the result. */ + even = Int32FromUint64(top & uint64(1)) + m = ix<> uint64(1) + } + top = (top + uint64(0x3ff)) >> int32(1) + i = ix >> Int32FromInt32(46) % uint64(128) + r = uint64(uint32(X__rsqrt_tab[i]) << int32(16)) + /* |r sqrt(m) - 1| < 0x1.fdp-9 */ + s = uint64(_mul32(tls, uint32(m>>int32(32)), uint32(r))) + /* |s/sqrt(m) - 1| < 0x1.fdp-9 */ + d = uint64(_mul32(tls, uint32(s), uint32(r))) + u = _three - d + r = uint64(_mul32(tls, uint32(r), uint32(u)) << int32(1)) + /* |r sqrt(m) - 1| < 0x1.7bp-16 */ + s = uint64(_mul32(tls, uint32(s), uint32(u)) << int32(1)) + /* |s/sqrt(m) - 1| < 0x1.7bp-16 */ + d = uint64(_mul32(tls, uint32(s), uint32(r))) + u = _three - d + r = uint64(_mul32(tls, uint32(r), uint32(u)) << int32(1)) + /* |r sqrt(m) - 1| < 0x1.3704p-29 (measured worst-case) */ + r = r << int32(32) + s = _mul64(tls, m, r) + d = _mul64(tls, s, r) + u = _three<> int32(9) + d0 = m<>int32(63) + s = s & uint64(0x000fffffffffffff) + s = s | top<=13bit table would be needed (16k). + + a newton-raphson iteration for r is + w = r*r + u = 3 - m*w + r = r*u/2 + can use a goldschmidt iteration for s at the end or + s = m*r + + first goldschmidt iteration is + s = m*r + u = 3 - s*r + r = r*u/2 + s = s*u/2 + next goldschmidt iteration is + u = 3 - s*r + r = r*u/2 + s = s*u/2 + and at the end r is not computed only s. + + they use the same amount of operations and converge at the + same quadratic rate, i.e. if + r1 sqrt(m) - 1 = e, then + r2 sqrt(m) - 1 = -3/2 e^2 - 1/2 e^3 + the advantage of goldschmidt is that the mul for s and r + are independent (computed in parallel), however it is not + "self synchronizing": it only uses the input m in the + first iteration so rounding errors accumulate. at the end + or when switching to larger precision arithmetics rounding + errors dominate so the first iteration should be used. + + the fixed point representations are + m: 2.30 r: 0.32, s: 2.30, d: 2.30, u: 2.30, three: 2.30 + and after switching to 64 bit + m: 2.62 r: 0.64, s: 2.62, d: 2.62, u: 2.62, three: 2.62 */ + +var _three = uint64(0xc0000000) + +func _mul321(tls *TLS, a Tuint32_t, b Tuint32_t) (r Tuint32_t) { + return uint32(uint64(a) * uint64(b) >> int32(32)) +} + +/* see sqrt.c for more detailed comments. */ + +func Xsqrtf(tls *TLS, x1 float32) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x1=%v, (%v:)", tls, x1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var d, d0, d1, d2, even, ey, i, ix, m, m0, m1, r, s, tiny, u Tuint32_t + var t, y, y1, v1 float32 + var v2 uint32 + var v3 int32 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = d, d0, d1, d2, even, ey, i, ix, m, m0, m1, r, s, t, tiny, u, y, y1, v1, v2, v3 + ix = *(*Tuint32_t)(unsafe.Pointer(&x1)) + if ix-uint32(0x00800000) >= Uint32FromInt32(Int32FromInt32(0x7f800000)-Int32FromInt32(0x00800000)) { + /* x < 0x1p-126 or inf or nan. */ + if ix*uint32(2) == uint32(0) { + return x1 + } + if ix == uint32(0x7f800000) { + return x1 + } + if ix > uint32(0x7f800000) { + return X__math_invalidf(tls, x1) + } + /* x is subnormal, normalize it. */ + v1 = float32(x1 * Float32FromFloat32(8.388608e+06)) + ix = *(*Tuint32_t)(unsafe.Pointer(&v1)) + ix = ix - Uint32FromInt32(Int32FromInt32(23)<> int32(1) + ey = ey + Uint32FromInt32(Int32FromInt32(0x3f800000)>>Int32FromInt32(1)) + ey = ey & uint32(0x7f800000) + i = ix >> Int32FromInt32(17) % uint32(128) + r = uint32(X__rsqrt_tab[i]) << int32(16) + /* |r*sqrt(m) - 1| < 0x1p-8 */ + s = _mul321(tls, m, r) + /* |s/sqrt(m) - 1| < 0x1p-8 */ + d = _mul321(tls, s, r) + u = _three1 - d + r = _mul321(tls, r, u) << int32(1) + /* |r*sqrt(m) - 1| < 0x1.7bp-16 */ + s = _mul321(tls, s, u) << int32(1) + /* |s/sqrt(m) - 1| < 0x1.7bp-16 */ + d = _mul321(tls, s, r) + u = _three1 - d + s = _mul321(tls, s, u) + /* -0x1.03p-28 < s/sqrt(m) - 1 < 0x1.fp-31 */ + s = (s - uint32(1)) >> int32(6) + d0 = m<>int32(31) + s = s & uint32(0x007fffff) + s = s | ey + y1 = *(*float32)(unsafe.Pointer(&s)) + if int32(FENV_SUPPORT) != 0 { + if d2 == uint32(0) { + v3 = 0 + } else { + v3 = int32(0x01000000) + } + /* handle rounding and inexact exception. */ + tiny = Uint32FromInt32(v3) + tiny = tiny | (d1^d2)&uint32(0x80000000) + t = *(*float32)(unsafe.Pointer(&tiny)) + y = y1 + t + v1 = y + goto _5 + _5: + y1 = v1 + } + return y1 +} + +/* compute r ~ 1/sqrt(m), s ~ sqrt(m) with 2 goldschmidt iterations. */ +var _three1 = uint32(0xc0000000) + +func Xsqrtl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xsqrt(tls, x) +} + +func Xtan(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ix Tuint32_t + var n uint32 + var y float32 + var y1, y2, v1 float64 + var _ /* y at bp+0 */ [2]float64 + _, _, _, _, _, _ = ix, n, y, y1, y2, v1 + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x3)) >> int32(32)) + ix = ix & uint32(0x7fffffff) + /* |x| ~< pi/4 */ + if ix <= uint32(0x3fe921fb) { + if ix < uint32(0x3e400000) { /* |x| < 2**-27 */ + /* raise inexact if x!=0 and underflow if subnormal */ + if uint64(8) == uint64(4) { + if ix < uint32(0x00100000) { + v1 = x3 / Float64FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } + y = float32(v1) + } else { + if uint64(8) == uint64(8) { + if ix < uint32(0x00100000) { + v1 = x3 / Float64FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } + y1 = v1 + } else { + if ix < uint32(0x00100000) { + v1 = x3 / Float64FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } + y2 = v1 + } + } + return x3 + } + return X__tan(tls, x3, float64(0), 0) + } + /* tan(Inf or NaN) is NaN */ + if ix >= uint32(0x7ff00000) { + return x3 - x3 + } + /* argument reduction */ + n = Uint32FromInt32(X__rem_pio2(tls, x3, bp)) + return X__tan(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)], Int32FromUint32(n&uint32(1))) +} + +const M_PI_29 = 1.5707963267948966 + +// C documentation +// +// /* Small multiples of pi/2 rounded to double precision. */ + +var _t1pio2 = float64(Float64FromInt32(1) * Float64FromFloat64(1.5707963267948966)) /* 0x3FF921FB, 0x54442D18 */ +var _t2pio2 = float64(Float64FromInt32(2) * Float64FromFloat64(1.5707963267948966)) /* 0x400921FB, 0x54442D18 */ +var _t3pio2 = float64(Float64FromInt32(3) * Float64FromFloat64(1.5707963267948966)) /* 0x4012D97C, 0x7F3321D2 */ +var _t4pio2 = float64(Float64FromInt32(4) * Float64FromFloat64(1.5707963267948966)) /* 0x401921FB, 0x54442D18 */ + +func Xtanf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ix Tuint32_t + var n, sign uint32 + var y, v1 float32 + var y1, y2, v4 float64 + var _ /* y at bp+0 */ float64 + _, _, _, _, _, _, _, _ = ix, n, sign, y, y1, y2, v1, v4 + ix = *(*Tuint32_t)(unsafe.Pointer(&x3)) + sign = ix >> int32(31) + ix = ix & uint32(0x7fffffff) + if ix <= uint32(0x3f490fda) { /* |x| ~<= pi/4 */ + if ix < uint32(0x39800000) { /* |x| < 2**-12 */ + /* raise inexact if x!=0 and underflow if subnormal */ + if uint64(4) == uint64(4) { + if ix < uint32(0x00800000) { + v1 = x3 / Float32FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float32FromFloat32(1.329227995784916e+36) + } + y = v1 + } else { + if uint64(4) == uint64(8) { + if ix < uint32(0x00800000) { + v1 = x3 / Float32FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float32FromFloat32(1.329227995784916e+36) + } + y1 = float64(v1) + } else { + if ix < uint32(0x00800000) { + v1 = x3 / Float32FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float32FromFloat32(1.329227995784916e+36) + } + y2 = float64(v1) + } + } + return x3 + } + return X__tandf(tls, float64(x3), 0) + } + if ix <= uint32(0x407b53d1) { /* |x| ~<= 5*pi/4 */ + if ix <= uint32(0x4016cbe3) { /* |x| ~<= 3pi/4 */ + if sign != 0 { + v4 = float64(x3) + _t1pio2 + } else { + v4 = float64(x3) - _t1pio2 + } + return X__tandf(tls, v4, int32(1)) + } else { + if sign != 0 { + v4 = float64(x3) + _t2pio2 + } else { + v4 = float64(x3) - _t2pio2 + } + return X__tandf(tls, v4, 0) + } + } + if ix <= uint32(0x40e231d5) { /* |x| ~<= 9*pi/4 */ + if ix <= uint32(0x40afeddf) { /* |x| ~<= 7*pi/4 */ + if sign != 0 { + v4 = float64(x3) + _t3pio2 + } else { + v4 = float64(x3) - _t3pio2 + } + return X__tandf(tls, v4, int32(1)) + } else { + if sign != 0 { + v4 = float64(x3) + _t4pio2 + } else { + v4 = float64(x3) - _t4pio2 + } + return X__tandf(tls, v4, 0) + } + } + /* tan(Inf or NaN) is NaN */ + if ix >= uint32(0x7f800000) { + return x3 - x3 + } + /* argument reduction */ + n = Uint32FromInt32(X__rem_pio2f(tls, x3, bp)) + return X__tandf(tls, **(**float64)(__ccgo_up(bp)), Int32FromUint32(n&uint32(1))) +} + +const M_PI_210 = 0 + +// C documentation +// +// /* tanh(x) = (exp(x) - exp(-x))/(exp(x) + exp(-x)) +// * = (exp(2*x) - 1)/(exp(2*x) - 1 + 2) +// * = (1 - exp(-2*x))/(exp(-2*x) - 1 + 2) +// */ +func Xtanh(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var sign int32 + var t, v1 Tdouble_t + var w Tuint32_t + var y float32 + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _ = sign, t, w, y, y1, y2, v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + /* x = |x| */ + sign = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(63)) + *(*Tuint64_t)(unsafe.Pointer(bp)) &= Uint64FromInt32(-Int32FromInt32(1)) / Uint64FromInt32(2) + x3 = *(*float64)(unsafe.Pointer(bp)) + w = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32)) + if w > uint32(0x3fe193ea) { + /* |x| > log(3)/2 ~= 0.5493 or nan */ + if w > uint32(0x40340000) { + /* |x| > 20 or nan */ + /* note: this branch avoids raising overflow */ + t = Float64FromInt32(1) - Float64FromInt32(0)/x3 + } else { + t = Xexpm1(tls, float64(Float64FromInt32(2)*x3)) + t = Float64FromInt32(1) - Float64FromInt32(2)/(t+Float64FromInt32(2)) + } + } else { + if w > uint32(0x3fd058ae) { + /* |x| > log(5/3)/2 ~= 0.2554 */ + t = Xexpm1(tls, float64(Float64FromInt32(2)*x3)) + t = t / (t + Float64FromInt32(2)) + } else { + if w >= uint32(0x00100000) { + /* |x| >= 0x1p-1022, up to 2ulp error in [0.1,0.2554] */ + t = Xexpm1(tls, float64(float64(-Int32FromInt32(2))*x3)) + t = -t / (t + Float64FromInt32(2)) + } else { + /* |x| is subnormal */ + /* note: the branch above would not raise underflow in [0x1p-1023,0x1p-1022) */ + if uint64(4) == uint64(4) { + y = float32(x3) + } else { + if uint64(4) == uint64(8) { + y1 = float64(float32(x3)) + } else { + y2 = float64(float32(x3)) + } + } + t = x3 + } + } + } + if sign != 0 { + v1 = -t + } else { + v1 = t + } + return v1 +} + +func Xtanhf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var sign int32 + var t, y, v1 float32 + var w Tuint32_t + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _, _ = sign, t, w, y, y1, y2, v1 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + /* x = |x| */ + sign = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(31)) + *(*Tuint32_t)(unsafe.Pointer(bp)) &= uint32(0x7fffffff) + x3 = *(*float32)(unsafe.Pointer(bp)) + w = *(*Tuint32_t)(unsafe.Pointer(bp)) + if w > uint32(0x3f0c9f54) { + /* |x| > log(3)/2 ~= 0.5493 or nan */ + if w > uint32(0x41200000) { + /* |x| > 10 */ + t = Float32FromInt32(1) + Float32FromInt32(0)/x3 + } else { + t = Xexpm1f(tls, float32(Float32FromInt32(2)*x3)) + t = Float32FromInt32(1) - Float32FromInt32(2)/(t+Float32FromInt32(2)) + } + } else { + if w > uint32(0x3e82c578) { + /* |x| > log(5/3)/2 ~= 0.2554 */ + t = Xexpm1f(tls, float32(Float32FromInt32(2)*x3)) + t = t / (t + Float32FromInt32(2)) + } else { + if w >= uint32(0x00800000) { + /* |x| >= 0x1p-126 */ + t = Xexpm1f(tls, float32(float32(-Int32FromInt32(2))*x3)) + t = -t / (t + Float32FromInt32(2)) + } else { + /* |x| is subnormal */ + if uint64(4) == uint64(4) { + y = float32(x3 * x3) + } else { + if uint64(4) == uint64(8) { + y1 = float64(x3 * x3) + } else { + y2 = float64(x3 * x3) + } + } + t = x3 + } + } + } + if sign != 0 { + v1 = -t + } else { + v1 = t + } + return v1 +} + +func Xtanhl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xtanh(tls, x) +} + +func Xtanl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xtan(tls, x) +} + +const N10 = 12 + +var _pi4 = float64(3.141592653589793) + +// C documentation +// +// /* sin(pi x) with x > 0x1p-100, if sin(pi*x)==0 the sign is arbitrary */ +func _sinpi(tls *TLS, x float64) (r float64) { + var n int32 + _ = n + /* argument reduction: x = |x| mod 2 */ + /* spurious inexact when x is odd int */ + x = float64(x * float64(0.5)) + x = float64(Float64FromInt32(2) * (x - Xfloor(tls, x))) + /* reduce x into [-.25,.25] */ + n = int32(Float64FromInt32(4) * x) + n = (n + int32(1)) / int32(2) + x = x - float64(float64(n)*float64(0.5)) + x = x * _pi4 + switch n { + default: /* case 4 */ + fallthrough + case 0: + return X__sin(tls, x, Float64FromInt32(0), 0) + case int32(1): + return X__cos(tls, x, Float64FromInt32(0)) + case int32(2): + return X__sin(tls, -x, Float64FromInt32(0), 0) + case int32(3): + return -X__cos(tls, x, Float64FromInt32(0)) + } + return r +} + +// C documentation +// +// //static const double g = 6.024680040776729583740234375; +var _gmhalf = float64(5.52468004077673) +var _Snum = [13]float64{ + 0: float64(2.353137688041076e+10), + 1: float64(4.29198036426491e+10), + 2: float64(3.571195923735567e+10), + 3: float64(1.792103442603721e+10), + 4: float64(6.039542586352028e+09), + 5: float64(1.4397204073117216e+09), + 6: float64(2.4887455786205417e+08), + 7: float64(3.1426415585400194e+07), + 8: float64(2.8763706289353725e+06), + 9: float64(186056.26539522348), + 10: float64(8071.672002365816), + 11: float64(210.82427775157936), + 12: float64(2.5066282746310002), +} +var _Sden = [13]float64{ + 1: Float64FromInt32(39916800), + 2: Float64FromInt32(120543840), + 3: Float64FromInt32(150917976), + 4: Float64FromInt32(105258076), + 5: Float64FromInt32(45995730), + 6: Float64FromInt32(13339535), + 7: Float64FromInt32(2637558), + 8: Float64FromInt32(357423), + 9: Float64FromInt32(32670), + 10: Float64FromInt32(1925), + 11: Float64FromInt32(66), + 12: Float64FromInt32(1), +} + +// C documentation +// +// /* n! for small integer n */ +var _fact = [23]float64{ + 0: Float64FromInt32(1), + 1: Float64FromInt32(1), + 2: Float64FromInt32(2), + 3: Float64FromInt32(6), + 4: Float64FromInt32(24), + 5: Float64FromInt32(120), + 6: Float64FromInt32(720), + 7: float64(5040), + 8: float64(40320), + 9: float64(362880), + 10: float64(3.6288e+06), + 11: float64(3.99168e+07), + 12: float64(4.790016e+08), + 13: float64(6.2270208e+09), + 14: float64(8.71782912e+10), + 15: float64(1.307674368e+12), + 16: float64(2.0922789888e+13), + 17: float64(3.55687428096e+14), + 18: float64(6.402373705728e+15), + 19: float64(1.21645100408832e+17), + 20: float64(2.43290200817664e+18), + 21: float64(5.109094217170944e+19), + 22: float64(1.1240007277776077e+21), +} + +// C documentation +// +// /* S(x) rational function for positive x */ +func _S(tls *TLS, x float64) (r float64) { + var den, num Tdouble_t + var i int32 + _, _, _ = den, i, num + num = Float64FromInt32(0) + den = Float64FromInt32(0) + /* to avoid overflow handle large x differently */ + if x < Float64FromInt32(8) { + i = int32(N10) + for { + if !(i >= 0) { + break + } + num = Tdouble_t(num*x) + _Snum[i] + den = Tdouble_t(den*x) + _Sden[i] + goto _1 + _1: + ; + i = i - 1 + } + } else { + i = 0 + for { + if !(i <= int32(N10)) { + break + } + num = num/x + _Snum[i] + den = den/x + _Sden[i] + goto _2 + _2: + ; + i = i + 1 + } + } + return num / den +} + +func Xtgamma(tls *TLS, x3 float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var absx, y1, y2, y3, v1 float64 + var dy, r, z Tdouble_t + var ix Tuint32_t + var sign int32 + var y float32 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _, _, _, _, _ = absx, dy, ix, r, sign, y, y1, y2, y3, z, v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32) & uint64(0x7fffffff)) + sign = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(63)) + /* special cases */ + if ix >= uint32(0x7ff00000) { + /* tgamma(nan)=nan, tgamma(inf)=inf, tgamma(-inf)=nan with invalid */ + return x3 + float64(X__builtin_inff(tls)) + } + if ix < Uint32FromInt32((Int32FromInt32(0x3ff)-Int32FromInt32(54))<= 172: tgamma(x)=inf with overflow */ + /* x =< -184: tgamma(x)=+-0 with underflow */ + if ix >= uint32(0x40670000) { /* |x| >= 184 */ + if sign != 0 { + if uint64(4) == uint64(4) { + y = float32(Float64FromFloat64(1.1754943508222875e-38) / x3) + } else { + if uint64(4) == uint64(8) { + y1 = float64(float32(Float64FromFloat64(1.1754943508222875e-38) / x3)) + } else { + y2 = float64(float32(Float64FromFloat64(1.1754943508222875e-38) / x3)) + } + } + if float64(Xfloor(tls, x3)*float64(0.5)) == Xfloor(tls, float64(x3*float64(0.5))) { + return Float64FromInt32(0) + } + return -Float64FromFloat64(0) + } + x3 = x3 * float64(8.98846567431158e+307) + return x3 + } + if sign != 0 { + v1 = -x3 + } else { + v1 = x3 + } + absx = v1 + /* handle the error of x + g - 0.5 */ + y3 = absx + _gmhalf + if absx > _gmhalf { + dy = y3 - absx + dy = dy - _gmhalf + } else { + dy = y3 - _gmhalf + dy = dy - absx + } + z = absx - float64(0.5) + r = Tdouble_t(_S(tls, absx) * Xexp(tls, -y3)) + if x3 < Float64FromInt32(0) { + /* reflection formula for negative x */ + /* sinpi(absx) is not 0, integers are already handled */ + r = -_pi4 / float64(float64(_sinpi(tls, absx)*absx)*r) + dy = -dy + z = -z + } + r = r + Tdouble_t(Tdouble_t(dy*(_gmhalf+Float64FromFloat64(0.5)))*r)/y3 + z = Xpow(tls, y3, float64(float64(0.5)*z)) + y3 = float64(Tdouble_t(r*z) * z) + return y3 +} + +func Xtgammaf(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return float32(Xtgamma(tls, float64(x))) +} + +func Xtgammal(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xtgamma(tls, x) +} + +func Xtrunc(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e int32 + var m Tuint64_t + var y float32 + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _ = e, m, y, y1, y2 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + e = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp))>>Int32FromInt32(52)&Uint64FromInt32(0x7ff)) - int32(0x3ff) + int32(12) + if e >= Int32FromInt32(52)+Int32FromInt32(12) { + return x3 + } + if e < int32(12) { + e = int32(1) + } + m = uint64(-Uint64FromUint64(1) >> e) + if *(*Tuint64_t)(unsafe.Pointer(bp))&m == uint64(0) { + return x3 + } + if uint64(8) == uint64(4) { + y = float32(x3 + Float64FromFloat32(1.329227995784916e+36)) + } else { + if uint64(8) == uint64(8) { + y1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } else { + y2 = float64(x3 + Float64FromFloat32(1.329227995784916e+36)) + } + } + *(*Tuint64_t)(unsafe.Pointer(bp)) &= ^m + return *(*float64)(unsafe.Pointer(bp)) +} + +func Xtruncf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e int32 + var m Tuint32_t + var y float32 + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _ = e, m, y, y1, y2 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + e = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp))>>Int32FromInt32(23)&Uint32FromInt32(0xff)) - int32(0x7f) + int32(9) + if e >= Int32FromInt32(23)+Int32FromInt32(9) { + return x3 + } + if e < int32(9) { + e = int32(1) + } + m = -Uint32FromUint32(1) >> e + if *(*Tuint32_t)(unsafe.Pointer(bp))&m == uint32(0) { + return x3 + } + if uint64(4) == uint64(4) { + y = x3 + Float32FromFloat32(1.329227995784916e+36) + } else { + if uint64(4) == uint64(8) { + y1 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } else { + y2 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } + } + *(*Tuint32_t)(unsafe.Pointer(bp)) &= ^m + return *(*float32)(unsafe.Pointer(bp)) +} + +func Xtruncl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xtrunc(tls, x) +} + +var _digits = [65]int8{'.', '/', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'} + +func Xa64l(tls *TLS, s uintptr) (r int64) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var d uintptr + var e int32 + var x Tuint32_t + _, _, _ = d, e, x + x = uint32(0) + e = 0 + for { + if !(e < int32(36) && **(**int8)(__ccgo_up(s)) != 0) { + break + } + d = Xstrchr(tls, uintptr(unsafe.Pointer(&_digits)), int32(**(**int8)(__ccgo_up(s)))) + if !(d != 0) { + break + } + x = x | Uint32FromInt64(int64(d)-t__predefined_ptrdiff_t(uintptr(unsafe.Pointer(&_digits))))< %v", r) }() + } + var p uintptr + var x Tuint32_t + _, _ = p, x + x = Uint32FromInt64(x0) + p = uintptr(unsafe.Pointer(&_s)) + for { + if !(x != 0) { + break + } + **(**int8)(__ccgo_up(p)) = _digits[x&uint32(63)] + goto _1 + _1: + ; + p = p + 1 + x = x >> uint32(6) + } + **(**int8)(__ccgo_up(p)) = 0 + return uintptr(unsafe.Pointer(&_s)) +} + +var _s [7]int8 + +func Xbasename(tls *TLS, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var i Tsize_t + _ = i + if !(s != 0) || !(**(**int8)(__ccgo_up(s)) != 0) { + return __ccgo_ts + 575 + } + i = _strlen(tls, s) - uint64(1) + for { + if !(i != 0 && int32(**(**int8)(__ccgo_up(s + uintptr(i)))) == int32('/')) { + break + } + **(**int8)(__ccgo_up(s + uintptr(i))) = 0 + goto _1 + _1: + ; + i = i - 1 + } + for { + if !(i != 0 && int32(**(**int8)(__ccgo_up(s + uintptr(i-uint64(1))))) != int32('/')) { + break + } + goto _2 + _2: + ; + i = i - 1 + } + return s + uintptr(i) +} + +func X__xpg_basename(tls *TLS, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xbasename(tls, s) +} + +func Xdirname(tls *TLS, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var i Tsize_t + _ = i + if !(s != 0) || !(**(**int8)(__ccgo_up(s)) != 0) { + return __ccgo_ts + 575 + } + i = _strlen(tls, s) - uint64(1) + for { + if !(int32(**(**int8)(__ccgo_up(s + uintptr(i)))) == int32('/')) { + break + } + if !(i != 0) { + return __ccgo_ts + 587 + } + goto _1 + _1: + ; + i = i - 1 + } + for { + if !(int32(**(**int8)(__ccgo_up(s + uintptr(i)))) != int32('/')) { + break + } + if !(i != 0) { + return __ccgo_ts + 575 + } + goto _2 + _2: + ; + i = i - 1 + } + for { + if !(int32(**(**int8)(__ccgo_up(s + uintptr(i)))) == int32('/')) { + break + } + if !(i != 0) { + return __ccgo_ts + 587 + } + goto _3 + _3: + ; + i = i - 1 + } + **(**int8)(__ccgo_up(s + uintptr(i+uint64(1)))) = 0 + return s +} + +func Xffs(tls *TLS, i int32) (r int32) { + if __ccgo_strace { + trc("tls=%v i=%v, (%v:)", tls, i, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + _ = v1 + if i != 0 { + v1 = _a_ctz_l(tls, Uint64FromInt32(i)) + int32(1) + } else { + v1 = 0 + } + return v1 +} + +func Xffsl(tls *TLS, i int64) (r int32) { + if __ccgo_strace { + trc("tls=%v i=%v, (%v:)", tls, i, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + _ = v1 + if i != 0 { + v1 = _a_ctz_l(tls, Uint64FromInt64(i)) + int32(1) + } else { + v1 = 0 + } + return v1 +} + +func Xffsll(tls *TLS, i int64) (r int32) { + if __ccgo_strace { + trc("tls=%v i=%v, (%v:)", tls, i, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1, v3 int32 + var v2 Tuint64_t + _, _, _ = v1, v2, v3 + if i != 0 { + v2 = Uint64FromInt64(i) + // __asm__( "bsf %1,%0" : "=r"(x) : "r"(x) ); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 114, __ccgo_ts+589) + v3 = Int32FromUint64(v2) + goto _4 + _4: + v1 = v3 + int32(1) + } else { + v1 = 0 + } + return v1 +} + +const MM_APPL = 8 +const MM_CONSOLE = 512 +const MM_ERROR = 2 +const MM_FIRM = 4 +const MM_HALT = 1 +const MM_HARD = 1 +const MM_INFO = 4 +const MM_NOCON = 4 +const MM_NOMSG = 1 +const MM_NOSEV = 0 +const MM_NOTOK = -1 +const MM_NRECOV = 128 +const MM_NULLMC = 0 +const MM_NULLSEV = 0 +const MM_OK = 0 +const MM_OPSYS = 32 +const MM_PRINT = 256 +const MM_RECOVER = 64 +const MM_SOFT = 2 +const MM_UTIL = 16 +const MM_WARNING = 3 + +// C documentation +// +// /* +// * If lstr is the first part of bstr, check that the next char in bstr +// * is either \0 or : +// */ +func __strcolcmp(tls *TLS, lstr uintptr, bstr uintptr) (r int32) { + var i Tsize_t + _ = i + i = uint64(0) + for **(**int8)(__ccgo_up(lstr + uintptr(i))) != 0 && **(**int8)(__ccgo_up(bstr + uintptr(i))) != 0 && int32(**(**int8)(__ccgo_up(bstr + uintptr(i)))) == int32(**(**int8)(__ccgo_up(lstr + uintptr(i)))) { + i = i + 1 + } + if **(**int8)(__ccgo_up(lstr + uintptr(i))) != 0 || **(**int8)(__ccgo_up(bstr + uintptr(i))) != 0 && int32(**(**int8)(__ccgo_up(bstr + uintptr(i)))) != int32(':') { + return int32(1) + } + return 0 +} + +func Xfmtmsg(tls *TLS, classification int64, label uintptr, severity int32, text uintptr, action uintptr, tag uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v classification=%v label=%v severity=%v text=%v action=%v tag=%v, (%v:)", tls, classification, label, severity, text, action, tag, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(80) + defer tls.Free(80) + var cmsg, errstring, v1, v2, v3, v4, v5, v6, v7, v8 uintptr + var consolefd, i, ret, verb int32 + var msgs [6]uintptr + var _ /* cs at bp+0 */ int32 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = cmsg, consolefd, errstring, i, msgs, ret, verb, v1, v2, v3, v4, v5, v6, v7, v8 + ret = 0 + verb = 0 + errstring = uintptr(MM_NULLSEV) + cmsg = Xgetenv(tls, __ccgo_ts+595) + msgs = [6]uintptr{ + 0: __ccgo_ts + 603, + 1: __ccgo_ts + 609, + 2: __ccgo_ts + 618, + 3: __ccgo_ts + 623, + 4: __ccgo_ts + 630, + 5: UintptrFromInt32(0), + } + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp) + if severity == int32(MM_HALT) { + errstring = __ccgo_ts + 634 + } else { + if severity == int32(MM_ERROR) { + errstring = __ccgo_ts + 641 + } else { + if severity == int32(MM_WARNING) { + errstring = __ccgo_ts + 649 + } else { + if severity == int32(MM_INFO) { + errstring = __ccgo_ts + 659 + } + } + } + } + if classification&int64(MM_CONSOLE) != 0 { + consolefd = Xopen(tls, __ccgo_ts+666, int32(O_WRONLY), 0) + if consolefd < 0 { + ret = int32(MM_NOCON) + } else { + if label != 0 { + v1 = label + } else { + v1 = __ccgo_ts + } + if label != 0 { + v2 = __ccgo_ts + 355 + } else { + v2 = __ccgo_ts + } + if severity != 0 { + v3 = errstring + } else { + v3 = __ccgo_ts + } + if text != 0 { + v4 = text + } else { + v4 = __ccgo_ts + } + if action != 0 { + v5 = __ccgo_ts + 679 + } else { + v5 = __ccgo_ts + } + if action != 0 { + v6 = action + } else { + v6 = __ccgo_ts + } + if action != 0 { + v7 = __ccgo_ts + 689 + } else { + v7 = __ccgo_ts + } + if tag != 0 { + v8 = tag + } else { + v8 = __ccgo_ts + } + if Xdprintf(tls, consolefd, __ccgo_ts+691, VaList(bp+16, v1, v2, v3, v4, v5, v6, v7, v8)) < int32(1) { + ret = int32(MM_NOCON) + } + Xclose(tls, consolefd) + } + } + if classification&int64(MM_PRINT) != 0 { + for cmsg != 0 && **(**int8)(__ccgo_up(cmsg)) != 0 { + i = 0 + for { + if !(msgs[i] != 0) { + break + } + if !(__strcolcmp(tls, msgs[i], cmsg) != 0) { + break + } + goto _9 + _9: + ; + i = i + 1 + } + if msgs[i] == UintptrFromInt32(0) { + //ignore MSGVERB-unrecognized component + verb = int32(0xFF) + break + } else { + verb = verb | int32(1)< %v", r) }() + } + bp := tls.Alloc(288) + defer tls.Free(288) + var res uintptr + var _ /* a at bp+0 */ Tstat + var _ /* b at bp+144 */ Tstat + _ = res + res = Xgetenv(tls, __ccgo_ts+709) + if res != 0 && **(**int8)(__ccgo_up(res)) != 0 && !(Xstat(tls, res, bp) != 0) && !(Xstat(tls, __ccgo_ts+575, bp+144) != 0) && (**(**Tstat)(__ccgo_up(bp))).Fst_dev == (**(**Tstat)(__ccgo_up(bp + 144))).Fst_dev && (**(**Tstat)(__ccgo_up(bp))).Fst_ino == (**(**Tstat)(__ccgo_up(bp + 144))).Fst_ino { + return Xstrdup(tls, res) + } + return Xgetcwd(tls, uintptr(0), uint64(0)) +} + +func X__getauxval(tls *TLS, item uint64) (r uint64) { + if __ccgo_strace { + trc("tls=%v item=%v, (%v:)", tls, item, origin(2)) + defer func() { trc("-> %v", r) }() + } + var auxv uintptr + _ = auxv + auxv = X__libc.Fauxv + if item == uint64(AT_SECURE) { + return Uint64FromInt8(X__libc.Fsecure) + } + for { + if !(**(**Tsize_t)(__ccgo_up(auxv)) != 0) { + break + } + if **(**Tsize_t)(__ccgo_up(auxv)) == item { + return **(**Tsize_t)(__ccgo_up(auxv + 1*8)) + } + goto _1 + _1: + ; + auxv = auxv + uintptr(2)*8 + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOENT) + return uint64(0) +} + +func Xgetauxval(tls *TLS, item uint64) (r uint64) { + if __ccgo_strace { + trc("tls=%v item=%v, (%v:)", tls, item, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__getauxval(tls, item) +} + +type Tutsname = struct { + Fsysname [65]int8 + Fnodename [65]int8 + Frelease [65]int8 + Fversion [65]int8 + Fmachine [65]int8 + Fdomainname [65]int8 +} + +func Xgetdomainname(tls *TLS, name uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v len1=%v, (%v:)", tls, name, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(400) + defer tls.Free(400) + var _ /* temp at bp+0 */ Tutsname + Xuname(tls, bp) + if !(len1 != 0) || _strlen(tls, bp+325) >= len1 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + Xstrcpy(tls, name, bp+325) + return 0 +} + +func Xgetentropy(tls *TLS, buffer uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v buffer=%v len1=%v, (%v:)", tls, buffer, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var pos uintptr + var ret int32 + var _ /* cs at bp+0 */ int32 + _, _ = pos, ret + ret = 0 + pos = buffer + if len1 > uint64(256) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EIO) + return -int32(1) + } + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp) + for len1 != 0 { + ret = int32(Xgetrandom(tls, pos, len1, uint32(0))) + if ret < 0 { + if **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EINTR) { + continue + } else { + break + } + } + pos = pos + uintptr(ret) + len1 = len1 - Uint64FromInt32(ret) + ret = 0 + } + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp)), uintptr(0)) + return ret +} + +func Xgethostid(tls *TLS) (r int64) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return 0 +} + +const optpos = 0 + +type t__ucontext1 = Tucontext_t1 + +func X__getopt_msg(tls *TLS, a uintptr, b uintptr, c uintptr, l Tsize_t) { + if __ccgo_strace { + trc("tls=%v a=%v b=%v c=%v l=%v, (%v:)", tls, a, b, c, l, origin(2)) + } + var __need_unlock, v1 int32 + var f uintptr + _, _, _ = __need_unlock, f, v1 + f = uintptr(unsafe.Pointer(&X__stderr_FILE)) + b = X__lctrans_cur(tls, b) + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + _ = Xfputs(tls, a, f) >= 0 && Xfwrite(tls, b, _strlen(tls, b), uint64(1), f) != 0 && Xfwrite(tls, c, uint64(1), l, f) == l && Xputc(tls, int32('\n'), f) != 0 + if __need_unlock != 0 { + ___unlockfile(tls, f) + } +} + +func Xgetopt(tls *TLS, argc int32, argv uintptr, optstring uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v argc=%v argv=%v optstring=%v, (%v:)", tls, argc, argv, optstring, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var i, k, l, v1 int32 + var optchar uintptr + var _ /* c at bp+0 */ Twchar_t + var _ /* d at bp+4 */ Twchar_t + _, _, _, _, _ = i, k, l, optchar, v1 + if !(Xoptind != 0) || Xoptreset != 0 { + Xoptreset = 0 + X__optpos = 0 + Xoptind = int32(1) + } + if Xoptind >= argc || !(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) != 0) { + return -int32(1) + } + if int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8))))) != int32('-') { + if int32(**(**int8)(__ccgo_up(optstring))) == int32('-') { + v1 = Xoptind + Xoptind = Xoptind + 1 + Xoptarg = **(**uintptr)(__ccgo_up(argv + uintptr(v1)*8)) + return int32(1) + } + return -int32(1) + } + if !(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) + 1)) != 0) { + return -int32(1) + } + if int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) + 1))) == int32('-') && !(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) + 2)) != 0) { + Xoptind = Xoptind + 1 + return -Int32FromInt32(1) + } + if !(X__optpos != 0) { + X__optpos = X__optpos + 1 + } + v1 = Xmbtowc(tls, bp, **(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8))+uintptr(X__optpos), uint64(MB_LEN_MAX)) + k = v1 + if v1 < 0 { + k = int32(1) + **(**Twchar_t)(__ccgo_up(bp)) = int32(0xfffd) /* replacement char */ + } + optchar = **(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) + uintptr(X__optpos) + X__optpos = X__optpos + k + if !(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) + uintptr(X__optpos))) != 0) { + Xoptind = Xoptind + 1 + X__optpos = 0 + } + if int32(**(**int8)(__ccgo_up(optstring))) == int32('-') || int32(**(**int8)(__ccgo_up(optstring))) == int32('+') { + optstring = optstring + 1 + } + i = 0 + **(**Twchar_t)(__ccgo_up(bp + 4)) = 0 + for cond := true; cond; cond = l != 0 && **(**Twchar_t)(__ccgo_up(bp + 4)) != **(**Twchar_t)(__ccgo_up(bp)) { + l = Xmbtowc(tls, bp+4, optstring+uintptr(i), uint64(MB_LEN_MAX)) + if l > 0 { + i = i + l + } else { + i = i + 1 + } + } + if **(**Twchar_t)(__ccgo_up(bp + 4)) != **(**Twchar_t)(__ccgo_up(bp)) || **(**Twchar_t)(__ccgo_up(bp)) == int32(':') { + Xoptopt = **(**Twchar_t)(__ccgo_up(bp)) + if int32(**(**int8)(__ccgo_up(optstring))) != int32(':') && Xopterr != 0 { + X__getopt_msg(tls, **(**uintptr)(__ccgo_up(argv)), __ccgo_ts+713, optchar, Uint64FromInt32(k)) + } + return int32('?') + } + if int32(**(**int8)(__ccgo_up(optstring + uintptr(i)))) == int32(':') { + Xoptarg = uintptr(0) + if int32(**(**int8)(__ccgo_up(optstring + uintptr(i+int32(1))))) != int32(':') || X__optpos != 0 { + v1 = Xoptind + Xoptind = Xoptind + 1 + Xoptarg = **(**uintptr)(__ccgo_up(argv + uintptr(v1)*8)) + if X__optpos != 0 { + Xoptarg = Xoptarg + uintptr(X__optpos) + } + X__optpos = 0 + } + if Xoptind > argc { + Xoptopt = **(**Twchar_t)(__ccgo_up(bp)) + if int32(**(**int8)(__ccgo_up(optstring))) == int32(':') { + return int32(':') + } + if Xopterr != 0 { + X__getopt_msg(tls, **(**uintptr)(__ccgo_up(argv)), __ccgo_ts+737, optchar, Uint64FromInt32(k)) + } + return int32('?') + } + } + return **(**Twchar_t)(__ccgo_up(bp)) +} + +func X__posix_getopt(tls *TLS, argc int32, argv uintptr, optstring uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v argc=%v argv=%v optstring=%v, (%v:)", tls, argc, argv, optstring, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetopt(tls, argc, argv, optstring) +} + +const no_argument = 0 +const optional_argument = 2 +const required_argument = 1 + +type Toption = struct { + Fname uintptr + Fhas_arg int32 + Fflag uintptr + Fval int32 +} + +func _permute(tls *TLS, argv uintptr, dest int32, src int32) { + var av, tmp uintptr + var i int32 + _, _, _ = av, i, tmp + av = argv + tmp = **(**uintptr)(__ccgo_up(av + uintptr(src)*8)) + i = src + for { + if !(i > dest) { + break + } + **(**uintptr)(__ccgo_up(av + uintptr(i)*8)) = **(**uintptr)(__ccgo_up(av + uintptr(i-int32(1))*8)) + goto _1 + _1: + ; + i = i - 1 + } + **(**uintptr)(__ccgo_up(av + uintptr(dest)*8)) = tmp +} + +func ___getopt_long(tls *TLS, argc int32, argv uintptr, optstring uintptr, longopts uintptr, idx uintptr, longonly int32) (r int32) { + var cnt, i, i1, resumed, ret, skipped int32 + _, _, _, _, _, _ = cnt, i, i1, resumed, ret, skipped + if !(Xoptind != 0) || Xoptreset != 0 { + Xoptreset = 0 + X__optpos = 0 + Xoptind = int32(1) + } + if Xoptind >= argc || !(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) != 0) { + return -int32(1) + } + skipped = Xoptind + if int32(**(**int8)(__ccgo_up(optstring))) != int32('+') && int32(**(**int8)(__ccgo_up(optstring))) != int32('-') { + i = Xoptind + for { + if i >= argc || !(**(**uintptr)(__ccgo_up(argv + uintptr(i)*8)) != 0) { + return -int32(1) + } + if int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(i)*8))))) == int32('-') && **(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(i)*8)) + 1)) != 0 { + break + } + goto _1 + _1: + ; + i = i + 1 + } + Xoptind = i + } + resumed = Xoptind + ret = ___getopt_long_core(tls, argc, argv, optstring, longopts, idx, longonly) + if resumed > skipped { + cnt = Xoptind - resumed + i1 = 0 + for { + if !(i1 < cnt) { + break + } + _permute(tls, argv, skipped, Xoptind-int32(1)) + goto _2 + _2: + ; + i1 = i1 + 1 + } + Xoptind = skipped + cnt + } + return ret +} + +func ___getopt_long_core(tls *TLS, argc int32, argv uintptr, optstring uintptr, longopts uintptr, idx uintptr, longonly int32) (r int32) { + var arg, name, opt, start, v5 uintptr + var cnt, colon, i, j, l, match, v2 int32 + _, _, _, _, _, _, _, _, _, _, _, _ = arg, cnt, colon, i, j, l, match, name, opt, start, v2, v5 + Xoptarg = uintptr(0) + if longopts != 0 && int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8))))) == int32('-') && (longonly != 0 && **(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) + 1)) != 0 && int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) + 1))) != int32('-') || int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) + 1))) == int32('-') && **(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) + 2)) != 0) { + colon = BoolInt32(int32(**(**int8)(__ccgo_up(optstring + BoolUintptr(int32(**(**int8)(__ccgo_up(optstring))) == int32('+') || int32(**(**int8)(__ccgo_up(optstring))) == int32('-'))))) == int32(':')) + start = **(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) + uintptr(1) + v2 = Int32FromInt32(0) + i = v2 + cnt = v2 + for { + if !((**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fname != 0) { + break + } + name = (**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fname + opt = start + if int32(**(**int8)(__ccgo_up(opt))) == int32('-') { + opt = opt + 1 + } + for **(**int8)(__ccgo_up(opt)) != 0 && int32(**(**int8)(__ccgo_up(opt))) != int32('=') && int32(**(**int8)(__ccgo_up(opt))) == int32(**(**int8)(__ccgo_up(name))) { + name = name + 1 + opt = opt + 1 + } + if **(**int8)(__ccgo_up(opt)) != 0 && int32(**(**int8)(__ccgo_up(opt))) != int32('=') { + goto _1 + } + arg = opt + match = i + if !(**(**int8)(__ccgo_up(name)) != 0) { + cnt = int32(1) + break + } + cnt = cnt + 1 + goto _1 + _1: + ; + i = i + 1 + } + if cnt == int32(1) && longonly != 0 && int64(arg)-int64(start) == int64(Xmblen(tls, start, uint64(MB_LEN_MAX))) { + l = int32(int64(arg) - int64(start)) + i = 0 + for { + if !(**(**int8)(__ccgo_up(optstring + uintptr(i))) != 0) { + break + } + j = 0 + for { + if !(j < l && int32(**(**int8)(__ccgo_up(start + uintptr(j)))) == int32(**(**int8)(__ccgo_up(optstring + uintptr(i+j))))) { + break + } + goto _4 + _4: + ; + j = j + 1 + } + if j == l { + cnt = cnt + 1 + break + } + goto _3 + _3: + ; + i = i + 1 + } + } + if cnt == int32(1) { + i = match + opt = arg + Xoptind = Xoptind + 1 + if int32(**(**int8)(__ccgo_up(opt))) == int32('=') { + if !((**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fhas_arg != 0) { + Xoptopt = (**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fval + if colon != 0 || !(Xopterr != 0) { + return int32('?') + } + X__getopt_msg(tls, **(**uintptr)(__ccgo_up(argv)), __ccgo_ts+769, (**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fname, _strlen(tls, (**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fname)) + return int32('?') + } + Xoptarg = opt + uintptr(1) + } else { + if (**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fhas_arg == int32(required_argument) { + v5 = **(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) + Xoptarg = v5 + if !(v5 != 0) { + Xoptopt = (**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fval + if colon != 0 { + return int32(':') + } + if !(Xopterr != 0) { + return int32('?') + } + X__getopt_msg(tls, **(**uintptr)(__ccgo_up(argv)), __ccgo_ts+737, (**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fname, _strlen(tls, (**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fname)) + return int32('?') + } + Xoptind = Xoptind + 1 + } + } + if idx != 0 { + **(**int32)(__ccgo_up(idx)) = i + } + if (**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fflag != 0 { + **(**int32)(__ccgo_up((**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fflag)) = (**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fval + return 0 + } + return (**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fval + } + if int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) + 1))) == int32('-') { + Xoptopt = 0 + if !(colon != 0) && Xopterr != 0 { + if cnt != 0 { + v5 = __ccgo_ts + 806 + } else { + v5 = __ccgo_ts + 713 + } + X__getopt_msg(tls, **(**uintptr)(__ccgo_up(argv)), v5, **(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8))+uintptr(2), _strlen(tls, **(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8))+uintptr(2))) + } + Xoptind = Xoptind + 1 + return int32('?') + } + } + return Xgetopt(tls, argc, argv, optstring) +} + +func Xgetopt_long(tls *TLS, argc int32, argv uintptr, optstring uintptr, longopts uintptr, idx uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v argc=%v argv=%v optstring=%v longopts=%v idx=%v, (%v:)", tls, argc, argv, optstring, longopts, idx, origin(2)) + defer func() { trc("-> %v", r) }() + } + return ___getopt_long(tls, argc, argv, optstring, longopts, idx, 0) +} + +func Xgetopt_long_only(tls *TLS, argc int32, argv uintptr, optstring uintptr, longopts uintptr, idx uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v argc=%v argv=%v optstring=%v longopts=%v idx=%v, (%v:)", tls, argc, argv, optstring, longopts, idx, origin(2)) + defer func() { trc("-> %v", r) }() + } + return ___getopt_long(tls, argc, argv, optstring, longopts, idx, int32(1)) +} + +func Xgetpriority(tls *TLS, which int32, who Tid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v which=%v who=%v, (%v:)", tls, which, who, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret int32 + _ = ret + ret = int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_getpriority), int64(which), Int64FromUint32(who))))) + if ret < 0 { + return ret + } + return int32(20) - ret +} + +func Xgetresgid(tls *TLS, rgid uintptr, egid uintptr, sgid uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v rgid=%v egid=%v sgid=%v, (%v:)", tls, rgid, egid, sgid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_getresgid), int64(rgid), int64(egid), int64(sgid))))) +} + +func Xgetresuid(tls *TLS, ruid uintptr, euid uintptr, suid uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v ruid=%v euid=%v suid=%v, (%v:)", tls, ruid, euid, suid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_getresuid), int64(ruid), int64(euid), int64(suid))))) +} + +func Xgetrlimit(tls *TLS, resource int32, rlim uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v resource=%v rlim=%v, (%v:)", tls, resource, rlim, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ret int32 + var v1 uint64 + var _ /* k_rlim at bp+0 */ [2]uint64 + _, _ = ret, v1 + ret = int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_prlimit64), int64(Int32FromInt32(0)), int64(resource), int64(Int32FromInt32(0)), int64(rlim))))) + if !(ret != 0) { + if (*Trlimit)(unsafe.Pointer(rlim)).Frlim_cur >= ^Uint64FromUint64(0) { + (*Trlimit)(unsafe.Pointer(rlim)).Frlim_cur = ^Uint64FromUint64(0) + } + if (*Trlimit)(unsafe.Pointer(rlim)).Frlim_max >= ^Uint64FromUint64(0) { + (*Trlimit)(unsafe.Pointer(rlim)).Frlim_max = ^Uint64FromUint64(0) + } + } + if !(ret != 0) || **(**int32)(__ccgo_up(X__errno_location(tls))) != int32(ENOSYS) { + return ret + } + if X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_getrlimit), int64(resource), int64(bp)))) < 0 { + return -int32(1) + } + if (**(**[2]uint64)(__ccgo_up(bp)))[0] == -Uint64FromUint64(1) { + v1 = ^Uint64FromUint64(0) + } else { + v1 = (**(**[2]uint64)(__ccgo_up(bp)))[0] + } + (*Trlimit)(unsafe.Pointer(rlim)).Frlim_cur = v1 + if (**(**[2]uint64)(__ccgo_up(bp)))[int32(1)] == -Uint64FromUint64(1) { + v1 = ^Uint64FromUint64(0) + } else { + v1 = (**(**[2]uint64)(__ccgo_up(bp)))[int32(1)] + } + (*Trlimit)(unsafe.Pointer(rlim)).Frlim_max = v1 + if (*Trlimit)(unsafe.Pointer(rlim)).Frlim_cur >= ^Uint64FromUint64(0) { + (*Trlimit)(unsafe.Pointer(rlim)).Frlim_cur = ^Uint64FromUint64(0) + } + if (*Trlimit)(unsafe.Pointer(rlim)).Frlim_max >= ^Uint64FromUint64(0) { + (*Trlimit)(unsafe.Pointer(rlim)).Frlim_max = ^Uint64FromUint64(0) + } + return 0 +} + +func Xgetrusage(tls *TLS, who int32, ru uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v who=%v ru=%v, (%v:)", tls, who, ru, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var dest uintptr + var r int32 + var _ /* kru at bp+0 */ [4]int64 + _, _ = dest, r + dest = ru + 32 - uintptr(Uint64FromInt32(4)*Uint64FromInt64(8)) + r = int32(X__syscall2(tls, int64(SYS_getrusage), int64(who), int64(dest))) + if !(r != 0) && Bool(uint64(8) > uint64(8)) { + Xmemcpy(tls, bp, dest, Uint64FromInt32(4)*Uint64FromInt64(8)) + (*Trusage)(unsafe.Pointer(ru)).Fru_utime = Ttimeval{ + Ftv_sec: (**(**[4]int64)(__ccgo_up(bp)))[0], + Ftv_usec: (**(**[4]int64)(__ccgo_up(bp)))[int32(1)], + } + (*Trusage)(unsafe.Pointer(ru)).Fru_stime = Ttimeval{ + Ftv_sec: (**(**[4]int64)(__ccgo_up(bp)))[int32(2)], + Ftv_usec: (**(**[4]int64)(__ccgo_up(bp)))[int32(3)], + } + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func Xgetsubopt(tls *TLS, opt uintptr, keys uintptr, val uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v opt=%v keys=%v val=%v, (%v:)", tls, opt, keys, val, origin(2)) + defer func() { trc("-> %v", r) }() + } + var i int32 + var l Tsize_t + var s, v1, v2 uintptr + _, _, _, _, _ = i, l, s, v1, v2 + s = **(**uintptr)(__ccgo_up(opt)) + **(**uintptr)(__ccgo_up(val)) = UintptrFromInt32(0) + **(**uintptr)(__ccgo_up(opt)) = Xstrchr(tls, s, int32(',')) + if **(**uintptr)(__ccgo_up(opt)) != 0 { + v2 = opt + v1 = *(*uintptr)(unsafe.Pointer(v2)) + *(*uintptr)(unsafe.Pointer(v2)) = *(*uintptr)(unsafe.Pointer(v2)) + 1 + **(**int8)(__ccgo_up(v1)) = 0 + } else { + **(**uintptr)(__ccgo_up(opt)) = s + uintptr(_strlen(tls, s)) + } + i = 0 + for { + if !(**(**uintptr)(__ccgo_up(keys + uintptr(i)*8)) != 0) { + break + } + l = _strlen(tls, **(**uintptr)(__ccgo_up(keys + uintptr(i)*8))) + if Xstrncmp(tls, **(**uintptr)(__ccgo_up(keys + uintptr(i)*8)), s, l) != 0 { + goto _3 + } + if int32(**(**int8)(__ccgo_up(s + uintptr(l)))) == int32('=') { + **(**uintptr)(__ccgo_up(val)) = s + uintptr(l) + uintptr(1) + } else { + if **(**int8)(__ccgo_up(s + uintptr(l))) != 0 { + goto _3 + } + } + return i + goto _3 + _3: + ; + i = i + 1 + } + return -int32(1) +} + +const R = 2 +const W = 1 +const WR = 3 + +type Tioctl_compat_map = struct { + Fnew_req int32 + Fold_req int32 + Fold_size uint8 + Fdir uint8 + Fforce_align uint8 + Fnoffs uint8 + Foffsets [8]uint8 +} + +/* yields a type for a struct with original size n, with a misaligned + * timeval/timespec expanded from 32- to 64-bit. for use with ioctl + * number producing macros; only size of result is meaningful. */ + +type Tv4l2_event = struct { + Fa Tuint32_t + Fb [8]Tuint64_t + Fc [2]Tuint32_t + Fts [2]Tuint32_t + Fd [9]Tuint32_t +} + +var _compat_map = [20]Tioctl_compat_map{ + 0: { + Fnew_req: int32(SIOCGSTAMP), + Fold_req: int32(SIOCGSTAMP_OLD), + Fold_size: uint8(8), + Fdir: uint8(R), + Fnoffs: uint8(2), + Foffsets: [8]uint8{ + 1: uint8(4), + }, + }, + 1: { + Fnew_req: int32(SIOCGSTAMPNS), + Fold_req: int32(SIOCGSTAMPNS_OLD), + Fold_size: uint8(8), + Fdir: uint8(R), + Fnoffs: uint8(2), + Foffsets: [8]uint8{ + 1: uint8(4), + }, + }, + 2: { + Fnew_req: Int32FromUint64(uint64(Uint32FromUint32(2)< %v", r1) }() + } + bp := tls.Alloc(256) + defer tls.Free(256) + var ap Tva_list + var arg uintptr + var i, r int32 + var _ /* u at bp+0 */ struct { + Fbuf [0][256]int8 + Falign int64 + F__ccgo_pad2 [248]byte + } + _, _, _, _ = ap, arg, i, r + ap = va + arg = VaUintptr(&ap) + _ = ap + r = int32(X__syscall3(tls, int64(SYS_ioctl), int64(fd), int64(req), int64(arg))) + if Bool(Bool(int32(SIOCGSTAMP) != int32(SIOCGSTAMP_OLD)) && req != 0) && r == -int32(ENOTTY) { + i = 0 + for { + if !(Uint64FromInt32(i) < Uint64FromInt64(400)/Uint64FromInt64(20)) { + break + } + if _compat_map[i].Fnew_req != req { + goto _1 + } + _convert_ioctl_struct(tls, uintptr(unsafe.Pointer(&_compat_map))+uintptr(i)*20, bp, arg, int32(W)) + r = int32(X__syscall3(tls, int64(SYS_ioctl), int64(fd), int64(_compat_map[i].Fold_req), int64(bp))) + if r < 0 { + break + } + _convert_ioctl_struct(tls, uintptr(unsafe.Pointer(&_compat_map))+uintptr(i)*20, bp, arg, int32(R)) + break + goto _1 + _1: + ; + i = i + 1 + } + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func Xissetugid(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__libc.Fsecure) +} + +func Xlockf(tls *TLS, fd int32, op int32, size Toff_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v op=%v size=%v, (%v:)", tls, fd, op, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + var _ /* l at bp+0 */ Tflock + **(**Tflock)(__ccgo_up(bp)) = Tflock{ + Fl_type: int16(F_WRLCK), + Fl_whence: int16(1), + Fl_len: size, + } + switch op { + case int32(F_TEST): + (**(**Tflock)(__ccgo_up(bp))).Fl_type = F_RDLCK + if Xfcntl(tls, fd, int32(F_GETLK), VaList(bp+40, bp)) < 0 { + return -int32(1) + } + if int32((**(**Tflock)(__ccgo_up(bp))).Fl_type) == int32(F_UNLCK) || (**(**Tflock)(__ccgo_up(bp))).Fl_pid == Xgetpid(tls) { + return 0 + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EACCES) + return -int32(1) + case F_ULOCK: + (**(**Tflock)(__ccgo_up(bp))).Fl_type = int16(F_UNLCK) + fallthrough + case int32(F_TLOCK): + return Xfcntl(tls, fd, int32(F_SETLK), VaList(bp+40, bp)) + case int32(F_LOCK): + return Xfcntl(tls, fd, int32(F_SETLKW), VaList(bp+40, bp)) + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) +} + +const ACCOUNTING = 9 +const UTMP_FILE = "_PATH_UTMP" +const UTMP_FILENAME = "_PATH_UTMP" +const UT_HOSTSIZE = 256 +const UT_LINESIZE = 32 +const UT_NAMESIZE = 32 +const WTMP_FILE = "_PATH_WTMP" +const WTMP_FILENAME = "_PATH_WTMP" +const _PATH_UTMP = "/dev/null/utmp" +const _PATH_WTMP = "/dev/null/wtmp" +const ut_name = 0 +const utmp = 0 + +type Tlastlog = struct { + Fll_time Ttime_t + Fll_line [32]int8 + Fll_host [256]int8 +} + +func Xlogin_tty(tls *TLS, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + Xsetsid(tls) + if Xioctl(tls, fd, int32(TIOCSCTTY), VaList(bp+8, UintptrFromInt32(0))) != 0 { + return -int32(1) + } + Xdup2(tls, fd, 0) + Xdup2(tls, fd, int32(1)) + Xdup2(tls, fd, int32(2)) + if fd > int32(2) { + Xclose(tls, fd) + } + return 0 +} + +const MNTOPT_DEFAULTS = "defaults" +const MNTOPT_NOAUTO = "noauto" +const MNTOPT_NOSUID = "nosuid" +const MNTOPT_RO = "ro" +const MNTOPT_RW = "rw" +const MNTOPT_SUID = "suid" +const MNTTYPE_IGNORE = "ignore" +const MNTTYPE_NFS = "nfs" +const MNTTYPE_SWAP = "swap" +const MOUNTED = "/etc/mtab" +const SENTINEL = 0 + +type Tmntent = struct { + Fmnt_fsname uintptr + Fmnt_dir uintptr + Fmnt_type uintptr + Fmnt_opts uintptr + Fmnt_freq int32 + Fmnt_passno int32 +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +var _internal_buf uintptr +var _internal_bufsize Tsize_t + +func Xsetmntent(tls *TLS, name uintptr, mode uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v mode=%v, (%v:)", tls, name, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfopen(tls, name, mode) +} + +func Xendmntent(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + if f != 0 { + Xfclose(tls, f) + } + return int32(1) +} + +func _unescape_ent(tls *TLS, beg uintptr) (r uintptr) { + var cval uint8 + var dest, src, val, v1, v2 uintptr + var i int32 + _, _, _, _, _, _, _ = cval, dest, i, src, val, v1, v2 + dest = beg + src = beg + for **(**int8)(__ccgo_up(src)) != 0 { + cval = uint8(0) + if int32(**(**int8)(__ccgo_up(src))) != int32('\\') { + v1 = dest + dest = dest + 1 + v2 = src + src = src + 1 + **(**int8)(__ccgo_up(v1)) = **(**int8)(__ccgo_up(v2)) + continue + } + if int32(**(**int8)(__ccgo_up(src + 1))) == int32('\\') { + src = src + 1 + v1 = dest + dest = dest + 1 + v2 = src + src = src + 1 + **(**int8)(__ccgo_up(v1)) = **(**int8)(__ccgo_up(v2)) + continue + } + val = src + uintptr(1) + i = 0 + for { + if !(i < int32(3)) { + break + } + if int32(**(**int8)(__ccgo_up(val))) >= int32('0') && int32(**(**int8)(__ccgo_up(val))) <= int32('7') { + cval = Uint8FromInt32(int32(cval) << Int32FromInt32(3)) + v1 = val + val = val + 1 + cval = Uint8FromInt32(int32(cval) + (int32(**(**int8)(__ccgo_up(v1))) - Int32FromUint8('0'))) + } else { + break + } + goto _5 + _5: + ; + i = i + 1 + } + if cval != 0 { + v1 = dest + dest = dest + 1 + **(**int8)(__ccgo_up(v1)) = Int8FromUint8(cval) + src = val + } else { + v1 = dest + dest = dest + 1 + v2 = src + src = src + 1 + **(**int8)(__ccgo_up(v1)) = **(**int8)(__ccgo_up(v2)) + } + } + **(**int8)(__ccgo_up(dest)) = 0 + return beg +} + +func Xgetmntent_r(tls *TLS, f uintptr, mnt uintptr, linebuf uintptr, buflen int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v mnt=%v linebuf=%v buflen=%v, (%v:)", tls, f, mnt, linebuf, buflen, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(128) + defer tls.Free(128) + var i, len1 Tsize_t + var use_internal int32 + var _ /* n at bp+0 */ [8]int32 + _, _, _ = i, len1, use_internal + use_internal = BoolInt32(linebuf == uintptr(unsafe.Pointer(&_internal_buf))) + (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_freq = 0 + (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_passno = 0 + for cond := true; cond; cond = int32(**(**int8)(__ccgo_up(linebuf + uintptr((**(**[8]int32)(__ccgo_up(bp)))[0])))) == int32('#') || Uint64FromInt32((**(**[8]int32)(__ccgo_up(bp)))[int32(1)]) == len1 { + if use_internal != 0 { + Xgetline(tls, uintptr(unsafe.Pointer(&_internal_buf)), uintptr(unsafe.Pointer(&_internal_bufsize)), f) + linebuf = _internal_buf + } else { + Xfgets(tls, linebuf, buflen, f) + } + if Xfeof(tls, f) != 0 || Xferror(tls, f) != 0 { + return uintptr(0) + } + if !(Xstrchr(tls, linebuf, int32('\n')) != 0) { + Xfscanf(tls, f, __ccgo_ts+830, 0) + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ERANGE) + return uintptr(0) + } + len1 = _strlen(tls, linebuf) + if len1 > uint64(INT_MAX) { + continue + } + i = uint64(0) + for { + if !(i < Uint64FromInt64(32)/Uint64FromInt64(4)) { + break + } + (**(**[8]int32)(__ccgo_up(bp)))[i] = Int32FromUint64(len1) + goto _1 + _1: + ; + i = i + 1 + } + Xsscanf(tls, linebuf, __ccgo_ts+842, VaList(bp+40, bp, bp+uintptr(1)*4, bp+uintptr(2)*4, bp+uintptr(3)*4, bp+uintptr(4)*4, bp+uintptr(5)*4, bp+uintptr(6)*4, bp+uintptr(7)*4, mnt+32, mnt+36)) + } + **(**int8)(__ccgo_up(linebuf + uintptr((**(**[8]int32)(__ccgo_up(bp)))[int32(1)]))) = 0 + **(**int8)(__ccgo_up(linebuf + uintptr((**(**[8]int32)(__ccgo_up(bp)))[int32(3)]))) = 0 + **(**int8)(__ccgo_up(linebuf + uintptr((**(**[8]int32)(__ccgo_up(bp)))[int32(5)]))) = 0 + **(**int8)(__ccgo_up(linebuf + uintptr((**(**[8]int32)(__ccgo_up(bp)))[int32(7)]))) = 0 + (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_fsname = _unescape_ent(tls, linebuf+uintptr((**(**[8]int32)(__ccgo_up(bp)))[0])) + (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_dir = _unescape_ent(tls, linebuf+uintptr((**(**[8]int32)(__ccgo_up(bp)))[int32(2)])) + (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_type = _unescape_ent(tls, linebuf+uintptr((**(**[8]int32)(__ccgo_up(bp)))[int32(4)])) + (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_opts = _unescape_ent(tls, linebuf+uintptr((**(**[8]int32)(__ccgo_up(bp)))[int32(6)])) + return mnt +} + +func Xgetmntent(tls *TLS, f uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetmntent_r(tls, f, uintptr(unsafe.Pointer(&_mnt)), uintptr(unsafe.Pointer(&_internal_buf)), 0) +} + +var _mnt Tmntent + +func Xaddmntent(tls *TLS, f uintptr, mnt uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v mnt=%v, (%v:)", tls, f, mnt, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + if Xfseek(tls, f, 0, int32(2)) != 0 { + return int32(1) + } + return BoolInt32(Xfprintf(tls, f, __ccgo_ts+897, VaList(bp+8, (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_fsname, (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_dir, (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_type, (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_opts, (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_freq, (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_passno)) < 0) +} + +func Xhasmntopt(tls *TLS, mnt uintptr, opt uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v mnt=%v opt=%v, (%v:)", tls, mnt, opt, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrstr(tls, (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_opts, opt) +} + +type Thistory = struct { + Fchain uintptr + Fdev Tdev_t + Fino Tino_t + Flevel int32 + Fbase int32 +} + +func _do_nftw(tls *TLS, path uintptr, __ccgo_fp_fn uintptr, fd_limit int32, flags int32, h uintptr) (r1 int32) { + bp := tls.Alloc(192) + defer tls.Free(192) + var d, de, v10 uintptr + var dfd, err, r, type1, v3 int32 + var j, k, l Tsize_t + var v1 uint64 + var v8 bool + var v2 Tino_t + var _ /* lev at bp+176 */ TFTW + var _ /* new at bp+144 */ Thistory + var _ /* st at bp+0 */ Tstat + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = d, de, dfd, err, j, k, l, r, type1, v1, v10, v2, v3, v8 + l = _strlen(tls, path) + if l != 0 && int32(**(**int8)(__ccgo_up(path + uintptr(l-uint64(1))))) == int32('/') { + v1 = l - uint64(1) + } else { + v1 = l + } + j = v1 + v2 = Uint64FromInt32(0) + (**(**Tstat)(__ccgo_up(bp))).Fst_ino = v2 + (**(**Tstat)(__ccgo_up(bp))).Fst_dev = v2 + if flags&int32(FTW_PHYS) != 0 { + v3 = Xlstat(tls, path, bp) + } else { + v3 = BoolInt32(Xstat(tls, path, bp) < 0) + } + if v3 != 0 { + if !(flags&Int32FromInt32(FTW_PHYS) != 0) && **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(ENOENT) && !(Xlstat(tls, path, bp) != 0) { + type1 = int32(FTW_SLN) + } else { + if **(**int32)(__ccgo_up(X__errno_location(tls))) != int32(EACCES) { + return -int32(1) + } else { + type1 = int32(FTW_NS) + } + } + } else { + if (**(**Tstat)(__ccgo_up(bp))).Fst_mode&uint32(S_IFMT) == uint32(S_IFDIR) { + if flags&int32(FTW_DEPTH) != 0 { + type1 = int32(FTW_DP) + } else { + type1 = int32(FTW_D) + } + } else { + if (**(**Tstat)(__ccgo_up(bp))).Fst_mode&uint32(S_IFMT) == uint32(S_IFLNK) { + if flags&int32(FTW_PHYS) != 0 { + type1 = int32(FTW_SL) + } else { + type1 = int32(FTW_SLN) + } + } else { + type1 = int32(FTW_F) + } + } + } + if flags&int32(FTW_MOUNT) != 0 && h != 0 && type1 != int32(FTW_NS) && (**(**Tstat)(__ccgo_up(bp))).Fst_dev != (*Thistory)(unsafe.Pointer(h)).Fdev { + return 0 + } + (**(**Thistory)(__ccgo_up(bp + 144))).Fchain = h + (**(**Thistory)(__ccgo_up(bp + 144))).Fdev = (**(**Tstat)(__ccgo_up(bp))).Fst_dev + (**(**Thistory)(__ccgo_up(bp + 144))).Fino = (**(**Tstat)(__ccgo_up(bp))).Fst_ino + if h != 0 { + v3 = (*Thistory)(unsafe.Pointer(h)).Flevel + int32(1) + } else { + v3 = 0 + } + (**(**Thistory)(__ccgo_up(bp + 144))).Flevel = v3 + (**(**Thistory)(__ccgo_up(bp + 144))).Fbase = Int32FromUint64(j + uint64(1)) + (**(**TFTW)(__ccgo_up(bp + 176))).Flevel = (**(**Thistory)(__ccgo_up(bp + 144))).Flevel + if h != 0 { + (**(**TFTW)(__ccgo_up(bp + 176))).Fbase = (*Thistory)(unsafe.Pointer(h)).Fbase + } else { + k = j + for { + if !(k != 0 && int32(**(**int8)(__ccgo_up(path + uintptr(k)))) == int32('/')) { + break + } + goto _5 + _5: + ; + k = k - 1 + } + for { + if !(k != 0 && int32(**(**int8)(__ccgo_up(path + uintptr(k-uint64(1))))) != int32('/')) { + break + } + goto _6 + _6: + ; + k = k - 1 + } + (**(**TFTW)(__ccgo_up(bp + 176))).Fbase = Int32FromUint64(k) + } + if type1 == int32(FTW_D) || type1 == int32(FTW_DP) { + dfd = Xopen(tls, path, O_RDONLY, 0) + err = **(**int32)(__ccgo_up(X__errno_location(tls))) + if dfd < 0 && err == int32(EACCES) { + type1 = int32(FTW_DNR) + } + if !(fd_limit != 0) { + Xclose(tls, dfd) + } + } + if v8 = !(flags&Int32FromInt32(FTW_DEPTH) != 0); v8 { + v3 = (*(*func(*TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_fn})))(tls, path, bp, type1, bp+176) + r = v3 + } + if v8 && v3 != 0 { + return r + } + for { + if !(h != 0) { + break + } + if (*Thistory)(unsafe.Pointer(h)).Fdev == (**(**Tstat)(__ccgo_up(bp))).Fst_dev && (*Thistory)(unsafe.Pointer(h)).Fino == (**(**Tstat)(__ccgo_up(bp))).Fst_ino { + return 0 + } + goto _9 + _9: + ; + h = (*Thistory)(unsafe.Pointer(h)).Fchain + } + if (type1 == int32(FTW_D) || type1 == int32(FTW_DP)) && fd_limit != 0 { + if dfd < 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = err + return -int32(1) + } + d = Xfdopendir(tls, dfd) + if d != 0 { + for { + v10 = Xreaddir(tls, d) + de = v10 + if !(v10 != 0) { + break + } + if int32(**(**int8)(__ccgo_up(de + 19))) == int32('.') && (!(**(**int8)(__ccgo_up(de + 19 + 1)) != 0) || int32(**(**int8)(__ccgo_up(de + 19 + 1))) == int32('.') && !(**(**int8)(__ccgo_up(de + 19 + 2)) != 0)) { + continue + } + if _strlen(tls, de+19) >= uint64(PATH_MAX)-l { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENAMETOOLONG) + Xclosedir(tls, d) + return -int32(1) + } + **(**int8)(__ccgo_up(path + uintptr(j))) = int8('/') + Xstrcpy(tls, path+uintptr(j)+uintptr(1), de+19) + v3 = _do_nftw(tls, path, __ccgo_fp_fn, fd_limit-int32(1), flags, bp+144) + r = v3 + if v3 != 0 { + Xclosedir(tls, d) + return r + } + } + Xclosedir(tls, d) + } else { + Xclose(tls, dfd) + return -int32(1) + } + } + **(**int8)(__ccgo_up(path + uintptr(l))) = 0 + if v8 = flags&int32(FTW_DEPTH) != 0; v8 { + v3 = (*(*func(*TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_fn})))(tls, path, bp, type1, bp+176) + r = v3 + } + if v8 && v3 != 0 { + return r + } + return 0 +} + +type t__ccgo_fp__Xnftw_1 = func(*TLS, uintptr, uintptr, int32, uintptr) int32 + +func Xnftw(tls *TLS, path uintptr, __ccgo_fp_fn uintptr, fd_limit int32, flags int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v path=%v __ccgo_fp_fn=%v fd_limit=%v flags=%v, (%v:)", tls, path, __ccgo_fp_fn, fd_limit, flags, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(4112) + defer tls.Free(4112) + var l Tsize_t + var r int32 + var _ /* cs at bp+0 */ int32 + var _ /* pathbuf at bp+4 */ [4097]int8 + _, _ = l, r + if fd_limit <= 0 { + return 0 + } + l = _strlen(tls, path) + if l > uint64(PATH_MAX) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENAMETOOLONG) + return -int32(1) + } + Xmemcpy(tls, bp+4, path, l+uint64(1)) + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp) + r = _do_nftw(tls, bp+4, __ccgo_fp_fn, fd_limit, flags, UintptrFromInt32(0)) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp)), uintptr(0)) + return r +} + +/* Nonstandard, but vastly superior to the standard functions */ + +func Xopenpty(tls *TLS, pm uintptr, ps uintptr, name uintptr, tio uintptr, ws uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v pm=%v ps=%v name=%v tio=%v ws=%v, (%v:)", tls, pm, ps, name, tio, ws, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + var m, s, v1 int32 + var _ /* buf at bp+8 */ [20]int8 + var _ /* cs at bp+4 */ int32 + var _ /* n at bp+0 */ int32 + _, _, _ = m, s, v1 + **(**int32)(__ccgo_up(bp)) = 0 + m = Xopen(tls, __ccgo_ts+916, Int32FromInt32(O_RDWR)|Int32FromInt32(O_NOCTTY), 0) + if m < 0 { + return -int32(1) + } + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp+4) + if Xioctl(tls, m, int32(TIOCSPTLCK), VaList(bp+40, bp)) != 0 || Xioctl(tls, m, Int32FromUint32(TIOCGPTN), VaList(bp+40, bp)) != 0 { + goto fail + } + if !(name != 0) { + name = bp + 8 + } + Xsnprintf(tls, name, uint64(20), __ccgo_ts+926, VaList(bp+40, **(**int32)(__ccgo_up(bp)))) + v1 = Xopen(tls, name, Int32FromInt32(O_RDWR)|Int32FromInt32(O_NOCTTY), 0) + s = v1 + if v1 < 0 { + goto fail + } + if tio != 0 { + Xtcsetattr(tls, s, TCSANOW, tio) + } + if ws != 0 { + Xioctl(tls, s, int32(TIOCSWINSZ), VaList(bp+40, ws)) + } + **(**int32)(__ccgo_up(pm)) = m + **(**int32)(__ccgo_up(ps)) = s + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 4)), uintptr(0)) + return 0 + goto fail +fail: + ; + Xclose(tls, m) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 4)), uintptr(0)) + return -int32(1) +} + +func Xptsname(tls *TLS, fd int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + var err int32 + _ = err + err = X__ptsname_r(tls, fd, uintptr(unsafe.Pointer(&_buf2)), uint64(22)) + if err != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = err + return uintptr(0) + } + return uintptr(unsafe.Pointer(&_buf2)) +} + +var _buf2 [22]int8 + +func Xposix_openpt(tls *TLS, flags int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v flags=%v, (%v:)", tls, flags, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + r = Xopen(tls, __ccgo_ts+916, flags, 0) + if r < 0 && **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(ENOSPC) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EAGAIN) + } + return r +} + +func Xgrantpt(tls *TLS, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + return 0 +} + +func Xunlockpt(tls *TLS, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var _ /* unlock at bp+0 */ int32 + **(**int32)(__ccgo_up(bp)) = 0 + return Xioctl(tls, fd, int32(TIOCSPTLCK), VaList(bp+16, bp)) +} + +func X__ptsname_r(tls *TLS, fd int32, buf uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v len1=%v, (%v:)", tls, fd, buf, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var err, v1 int32 + var _ /* pty at bp+0 */ int32 + _, _ = err, v1 + if !(buf != 0) { + len1 = uint64(0) + } + v1 = int32(X__syscall3(tls, int64(SYS_ioctl), int64(fd), Int64FromUint32(Uint32FromUint32(TIOCGPTN)), int64(bp))) + err = v1 + if v1 != 0 { + return -err + } + if Uint64FromInt32(Xsnprintf(tls, buf, len1, __ccgo_ts+926, VaList(bp+16, **(**int32)(__ccgo_up(bp))))) >= len1 { + return int32(ERANGE) + } + return 0 +} + +func Xptsname_r(tls *TLS, fd int32, buf uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v len1=%v, (%v:)", tls, fd, buf, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__ptsname_r(tls, fd, buf, len1) +} + +func _slash_len(tls *TLS, s uintptr) (r Tsize_t) { + var s0 uintptr + _ = s0 + s0 = s + for int32(**(**int8)(__ccgo_up(s))) == int32('/') { + s = s + 1 + } + return Uint64FromInt64(int64(s) - int64(s0)) +} + +func Xrealpath(tls *TLS, filename uintptr, resolved uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v filename=%v resolved=%v, (%v:)", tls, filename, resolved, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(8208) + defer tls.Free(8208) + var check_dir, up int32 + var cnt, l, l0, nup, p, q, v4 Tsize_t + var k Tssize_t + var z uintptr + var _ /* output at bp+4097 */ [4096]int8 + var _ /* stack at bp+0 */ [4097]int8 + _, _, _, _, _, _, _, _, _, _, _ = check_dir, cnt, k, l, l0, nup, p, q, up, z, v4 + cnt = uint64(0) + nup = uint64(0) + check_dir = 0 + if !(filename != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(0) + } + l = Xstrnlen(tls, filename, uint64(4097)) + if !(l != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOENT) + return uintptr(0) + } + if l >= uint64(PATH_MAX) { + goto toolong + } + p = uint64(4097) - l - uint64(1) + q = uint64(0) + Xmemcpy(tls, bp+uintptr(p), filename, l+uint64(1)) + /* Main loop. Each iteration pops the next part from stack of + * remaining path components and consumes any slashes that follow. + * If not a link, it's moved to output; if a link, contents are + * pushed to the stack. */ + goto restart +restart: + ; +_3: + ; + /* If stack starts with /, the whole component is / or // + * and the output state must be reset. */ + if int32((**(**[4097]int8)(__ccgo_up(bp)))[p]) == int32('/') { + check_dir = 0 + nup = uint64(0) + q = uint64(0) + v4 = q + q = q + 1 + (**(**[4096]int8)(__ccgo_up(bp + 4097)))[v4] = int8('/') + p = p + 1 + /* Initial // is special. */ + if int32((**(**[4097]int8)(__ccgo_up(bp)))[p]) == int32('/') && int32((**(**[4097]int8)(__ccgo_up(bp)))[p+uint64(1)]) != int32('/') { + v4 = q + q = q + 1 + (**(**[4096]int8)(__ccgo_up(bp + 4097)))[v4] = int8('/') + } + goto _2 + } + z = X__strchrnul(tls, bp+uintptr(p), int32('/')) + v4 = Uint64FromInt64(int64(z) - int64(bp+uintptr(p))) + l = v4 + l0 = v4 + if !(l != 0) && !(check_dir != 0) { + goto _1 + } + /* Skip any . component but preserve check_dir status. */ + if l == uint64(1) && int32((**(**[4097]int8)(__ccgo_up(bp)))[p]) == int32('.') { + p = p + l + goto _2 + } + /* Copy next component onto output at least temporarily, to + * call readlink, but wait to advance output position until + * determining it's not a link. */ + if q != 0 && int32((**(**[4096]int8)(__ccgo_up(bp + 4097)))[q-uint64(1)]) != int32('/') { + if !(p != 0) { + goto toolong + } + p = p - 1 + v4 = p + (**(**[4097]int8)(__ccgo_up(bp)))[v4] = int8('/') + l = l + 1 + } + if q+l >= uint64(PATH_MAX) { + goto toolong + } + Xmemcpy(tls, bp+4097+uintptr(q), bp+uintptr(p), l) + (**(**[4096]int8)(__ccgo_up(bp + 4097)))[q+l] = 0 + p = p + l + up = 0 + if l0 == uint64(2) && int32((**(**[4097]int8)(__ccgo_up(bp)))[p-uint64(2)]) == int32('.') && int32((**(**[4097]int8)(__ccgo_up(bp)))[p-uint64(1)]) == int32('.') { + up = int32(1) + /* Any non-.. path components we could cancel start + * after nup repetitions of the 3-byte string "../"; + * if there are none, accumulate .. components to + * later apply to cwd, if needed. */ + if q <= uint64(3)*nup { + nup = nup + 1 + q = q + l + goto _2 + } + /* When previous components are already known to be + * directories, processing .. can skip readlink. */ + if !(check_dir != 0) { + goto skip_readlink + } + } + k = Xreadlink(tls, bp+4097, bp, p) + if Uint64FromInt64(k) == p { + goto toolong + } + if !(k != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOENT) + return uintptr(0) + } + if !(k < 0) { + goto _8 + } + if **(**int32)(__ccgo_up(X__errno_location(tls))) != int32(EINVAL) { + return uintptr(0) + } + goto skip_readlink +skip_readlink: + ; + check_dir = 0 + if up != 0 { + for q != 0 && int32((**(**[4096]int8)(__ccgo_up(bp + 4097)))[q-uint64(1)]) != int32('/') { + q = q - 1 + } + if q > uint64(1) && (q > uint64(2) || int32((**(**[4096]int8)(__ccgo_up(bp + 4097)))[0]) != int32('/')) { + q = q - 1 + } + goto _2 + } + if l0 != 0 { + q = q + l + } + check_dir = int32((**(**[4097]int8)(__ccgo_up(bp)))[p]) + goto _2 +_8: + ; + cnt = cnt + 1 + v4 = cnt + if v4 == uint64(SYMLOOP_MAX) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ELOOP) + return uintptr(0) + } + /* If link contents end in /, strip any slashes already on + * stack to avoid /->// or //->/// or spurious toolong. */ + if int32((**(**[4097]int8)(__ccgo_up(bp)))[k-int64(1)]) == int32('/') { + for int32((**(**[4097]int8)(__ccgo_up(bp)))[p]) == int32('/') { + p = p + 1 + } + } + p = p - Uint64FromInt64(k) + Xmemmove(tls, bp+uintptr(p), bp, Uint64FromInt64(k)) + /* Skip the stack advancement in case we have a new + * absolute base path. */ + goto restart + goto _2 +_2: + ; + p = p + _slash_len(tls, bp+uintptr(p)) + goto _3 + goto _1 +_1: + ; + (**(**[4096]int8)(__ccgo_up(bp + 4097)))[q] = 0 + if int32((**(**[4096]int8)(__ccgo_up(bp + 4097)))[0]) != int32('/') { + if !(Xgetcwd(tls, bp, uint64(4097)) != 0) { + return uintptr(0) + } + l = _strlen(tls, bp) + /* Cancel any initial .. components. */ + p = uint64(0) + for { + v4 = nup + nup = nup - 1 + if !(v4 != 0) { + break + } + for l > uint64(1) && int32((**(**[4097]int8)(__ccgo_up(bp)))[l-uint64(1)]) != int32('/') { + l = l - 1 + } + if l > uint64(1) { + l = l - 1 + } + p = p + uint64(2) + if p < q { + p = p + 1 + } + } + if q-p != 0 && int32((**(**[4097]int8)(__ccgo_up(bp)))[l-uint64(1)]) != int32('/') { + v4 = l + l = l + 1 + (**(**[4097]int8)(__ccgo_up(bp)))[v4] = int8('/') + } + if l+(q-p)+uint64(1) >= uint64(PATH_MAX) { + goto toolong + } + Xmemmove(tls, bp+4097+uintptr(l), bp+4097+uintptr(p), q-p+uint64(1)) + Xmemcpy(tls, bp+4097, bp, l) + q = l + q - p + } + if resolved != 0 { + return Xmemcpy(tls, resolved, bp+4097, q+uint64(1)) + } else { + return Xstrdup(tls, bp+4097) + } + goto toolong +toolong: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENAMETOOLONG) + return uintptr(0) +} + +func Xsetdomainname(tls *TLS, name uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v len1=%v, (%v:)", tls, name, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_setdomainname), int64(name), Int64FromUint64(len1))))) +} + +func Xsetpriority(tls *TLS, which int32, who Tid_t, prio int32) (r int32) { + if __ccgo_strace { + trc("tls=%v which=%v who=%v prio=%v, (%v:)", tls, which, who, prio, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_setpriority), int64(which), Int64FromUint32(who), int64(prio))))) +} + +type Tctx = struct { + Flim [2]uint64 + Fres int32 + Ferr int32 +} + +func _do_setrlimit(tls *TLS, p uintptr) { + var c uintptr + _ = c + c = p + if (*Tctx)(unsafe.Pointer(c)).Ferr > 0 { + return + } + (*Tctx)(unsafe.Pointer(c)).Ferr = int32(-X__syscall2(tls, int64(SYS_setrlimit), int64((*Tctx)(unsafe.Pointer(c)).Fres), int64(c))) +} + +func Xsetrlimit(tls *TLS, resource int32, rlim uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v resource=%v rlim=%v, (%v:)", tls, resource, rlim, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + var ret int32 + var v1, v2 uint64 + var _ /* c at bp+16 */ Tctx + var _ /* tmp at bp+0 */ Trlimit + _, _, _ = ret, v1, v2 + if ^Uint64FromUint64(0) != ^Uint64FromUint64(0) { + **(**Trlimit)(__ccgo_up(bp)) = **(**Trlimit)(__ccgo_up(rlim)) + if (**(**Trlimit)(__ccgo_up(bp))).Frlim_cur >= ^Uint64FromUint64(0) { + (**(**Trlimit)(__ccgo_up(bp))).Frlim_cur = ^Uint64FromUint64(0) + } + if (**(**Trlimit)(__ccgo_up(bp))).Frlim_max >= ^Uint64FromUint64(0) { + (**(**Trlimit)(__ccgo_up(bp))).Frlim_max = ^Uint64FromUint64(0) + } + rlim = bp + } + ret = int32(X__syscall4(tls, int64(SYS_prlimit64), int64(Int32FromInt32(0)), int64(resource), int64(rlim), int64(Int32FromInt32(0)))) + if ret != -int32(ENOSYS) { + return int32(X__syscall_ret(tls, Uint64FromInt32(ret))) + } + if (*Trlimit)(unsafe.Pointer(rlim)).Frlim_cur < ^Uint64FromUint64(0) { + v1 = (*Trlimit)(unsafe.Pointer(rlim)).Frlim_cur + } else { + v1 = ^Uint64FromUint64(0) + } + if (*Trlimit)(unsafe.Pointer(rlim)).Frlim_max < ^Uint64FromUint64(0) { + v2 = (*Trlimit)(unsafe.Pointer(rlim)).Frlim_max + } else { + v2 = ^Uint64FromUint64(0) + } + **(**Tctx)(__ccgo_up(bp + 16)) = Tctx{ + Flim: [2]uint64{ + 0: v1, + 1: v2, + }, + Fres: resource, + Ferr: -int32(1), + } + ___synccall(tls, __ccgo_fp(_do_setrlimit), bp+16) + if (**(**Tctx)(__ccgo_up(bp + 16))).Ferr != 0 { + if (**(**Tctx)(__ccgo_up(bp + 16))).Ferr > 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = (**(**Tctx)(__ccgo_up(bp + 16))).Ferr + } + return -int32(1) + } + return 0 +} + +func Xsyscall(tls *TLS, n int64, va uintptr) (r int64) { + if __ccgo_strace { + trc("tls=%v n=%v va=%v, (%v:)", tls, n, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, b, c, d, e, f Tsyscall_arg_t + var ap Tva_list + _, _, _, _, _, _, _ = a, ap, b, c, d, e, f + ap = va + a = VaInt64(&ap) + b = VaInt64(&ap) + c = VaInt64(&ap) + d = VaInt64(&ap) + e = VaInt64(&ap) + f = VaInt64(&ap) + _ = ap + return X__syscall_ret(tls, Uint64FromInt64(X__syscall6(tls, n, a, b, c, d, e, f))) +} + +const AF_ALG = 38 +const AF_APPLETALK = 5 +const AF_ASH = 18 +const AF_ATMPVC = 8 +const AF_ATMSVC = 20 +const AF_AX25 = 3 +const AF_BLUETOOTH = 31 +const AF_BRIDGE = 7 +const AF_CAIF = 37 +const AF_CAN = 29 +const AF_DECnet = 12 +const AF_ECONET = 19 +const AF_FILE = 1 +const AF_IB = 27 +const AF_IEEE802154 = 36 +const AF_INET = 2 +const AF_INET6 = 10 +const AF_IPX = 4 +const AF_IRDA = 23 +const AF_ISDN = 34 +const AF_IUCV = 32 +const AF_KCM = 41 +const AF_KEY = 15 +const AF_LLC = 26 +const AF_LOCAL = 1 +const AF_MAX = 45 +const AF_MPLS = 28 +const AF_NETBEUI = 13 +const AF_NETLINK = 16 +const AF_NETROM = 6 +const AF_NFC = 39 +const AF_PACKET = 17 +const AF_PHONET = 35 +const AF_PPPOX = 24 +const AF_QIPCRTR = 42 +const AF_RDS = 21 +const AF_ROSE = 11 +const AF_ROUTE = 16 +const AF_RXRPC = 33 +const AF_SECURITY = 14 +const AF_SMC = 43 +const AF_SNA = 22 +const AF_TIPC = 30 +const AF_UNIX = 1 +const AF_UNSPEC = 0 +const AF_VSOCK = 40 +const AF_WANPIPE = 25 +const AF_X25 = 9 +const AF_XDP = 44 +const LOG_ALERT = 1 +const LOG_AUTH = 32 +const LOG_AUTHPRIV = 80 +const LOG_CONS = 2 +const LOG_CRIT = 2 +const LOG_CRON = 72 +const LOG_DAEMON = 24 +const LOG_DEBUG = 7 +const LOG_EMERG = 0 +const LOG_ERR = 3 +const LOG_FACMASK = 1016 +const LOG_FTP = 88 +const LOG_INFO = 6 +const LOG_KERN = 0 +const LOG_LOCAL0 = 128 +const LOG_LOCAL1 = 136 +const LOG_LOCAL2 = 144 +const LOG_LOCAL3 = 152 +const LOG_LOCAL4 = 160 +const LOG_LOCAL5 = 168 +const LOG_LOCAL6 = 176 +const LOG_LOCAL7 = 184 +const LOG_LPR = 48 +const LOG_MAIL = 16 +const LOG_NDELAY = 8 +const LOG_NEWS = 56 +const LOG_NFACILITIES = 24 +const LOG_NOTICE = 5 +const LOG_NOWAIT = 16 +const LOG_ODELAY = 4 +const LOG_PERROR = 32 +const LOG_PID = 1 +const LOG_PRIMASK = 7 +const LOG_SYSLOG = 40 +const LOG_USER = 8 +const LOG_UUCP = 64 +const LOG_WARNING = 4 +const MSG_BATCH = 262144 +const MSG_CMSG_CLOEXEC = 1073741824 +const MSG_CONFIRM = 2048 +const MSG_CTRUNC = 8 +const MSG_DONTROUTE = 4 +const MSG_DONTWAIT = 64 +const MSG_EOR = 128 +const MSG_ERRQUEUE = 8192 +const MSG_FASTOPEN = 536870912 +const MSG_FIN = 512 +const MSG_MORE = 32768 +const MSG_NOSIGNAL = 16384 +const MSG_OOB = 1 +const MSG_PEEK = 2 +const MSG_PROXY = 16 +const MSG_RST = 4096 +const MSG_SYN = 1024 +const MSG_TRUNC = 32 +const MSG_WAITALL = 256 +const MSG_WAITFORONE = 65536 +const MSG_ZEROCOPY = 67108864 +const PF_ALG = 38 +const PF_APPLETALK = 5 +const PF_ASH = 18 +const PF_ATMPVC = 8 +const PF_ATMSVC = 20 +const PF_AX25 = 3 +const PF_BLUETOOTH = 31 +const PF_BRIDGE = 7 +const PF_CAIF = 37 +const PF_CAN = 29 +const PF_DECnet = 12 +const PF_ECONET = 19 +const PF_FILE = 1 +const PF_IB = 27 +const PF_IEEE802154 = 36 +const PF_INET = 2 +const PF_INET6 = 10 +const PF_IPX = 4 +const PF_IRDA = 23 +const PF_ISDN = 34 +const PF_IUCV = 32 +const PF_KCM = 41 +const PF_KEY = 15 +const PF_LLC = 26 +const PF_LOCAL = 1 +const PF_MAX = 45 +const PF_MPLS = 28 +const PF_NETBEUI = 13 +const PF_NETLINK = 16 +const PF_NETROM = 6 +const PF_NFC = 39 +const PF_PACKET = 17 +const PF_PHONET = 35 +const PF_PPPOX = 24 +const PF_QIPCRTR = 42 +const PF_RDS = 21 +const PF_ROSE = 11 +const PF_ROUTE = 16 +const PF_RXRPC = 33 +const PF_SECURITY = 14 +const PF_SMC = 43 +const PF_SNA = 22 +const PF_TIPC = 30 +const PF_UNIX = 1 +const PF_UNSPEC = 0 +const PF_VSOCK = 40 +const PF_WANPIPE = 25 +const PF_X25 = 9 +const PF_XDP = 44 +const SCM_CREDENTIALS = 2 +const SCM_RIGHTS = 1 +const SCM_TIMESTAMP = 29 +const SCM_TIMESTAMPING = 37 +const SCM_TIMESTAMPING_OPT_STATS = 54 +const SCM_TIMESTAMPING_PKTINFO = 58 +const SCM_TIMESTAMPNS = 35 +const SCM_TXTIME = 61 +const SCM_WIFI_STATUS = 41 +const SHUT_RD = 0 +const SHUT_RDWR = 2 +const SHUT_WR = 1 +const SOCK_CLOEXEC = 524288 +const SOCK_DCCP = 6 +const SOCK_DGRAM = 2 +const SOCK_NONBLOCK = 2048 +const SOCK_PACKET = 10 +const SOCK_RAW = 3 +const SOCK_RDM = 4 +const SOCK_SEQPACKET = 5 +const SOCK_STREAM = 1 +const SOL_AAL = 265 +const SOL_ALG = 279 +const SOL_ATM = 264 +const SOL_BLUETOOTH = 274 +const SOL_CAIF = 278 +const SOL_DCCP = 269 +const SOL_DECNET = 261 +const SOL_ICMPV6 = 58 +const SOL_IP = 0 +const SOL_IPV6 = 41 +const SOL_IRDA = 266 +const SOL_IUCV = 277 +const SOL_KCM = 281 +const SOL_LLC = 268 +const SOL_NETBEUI = 267 +const SOL_NETLINK = 270 +const SOL_NFC = 280 +const SOL_PACKET = 263 +const SOL_PNPIPE = 275 +const SOL_PPPOL2TP = 273 +const SOL_RAW = 255 +const SOL_RDS = 276 +const SOL_RXRPC = 272 +const SOL_SOCKET = 1 +const SOL_TIPC = 271 +const SOL_TLS = 282 +const SOL_X25 = 262 +const SOL_XDP = 283 +const SOMAXCONN = 128 +const SO_ACCEPTCONN = 30 +const SO_ATTACH_BPF = 50 +const SO_ATTACH_FILTER = 26 +const SO_ATTACH_REUSEPORT_CBPF = 51 +const SO_ATTACH_REUSEPORT_EBPF = 52 +const SO_BINDTODEVICE = 25 +const SO_BINDTOIFINDEX = 62 +const SO_BPF_EXTENSIONS = 48 +const SO_BROADCAST = 6 +const SO_BSDCOMPAT = 14 +const SO_BUSY_POLL = 46 +const SO_BUSY_POLL_BUDGET = 70 +const SO_CNX_ADVICE = 53 +const SO_COOKIE = 57 +const SO_DEBUG = 1 +const SO_DETACH_BPF = 27 +const SO_DETACH_FILTER = 27 +const SO_DETACH_REUSEPORT_BPF = 68 +const SO_DOMAIN = 39 +const SO_DONTROUTE = 5 +const SO_ERROR = 4 +const SO_GET_FILTER = 26 +const SO_INCOMING_CPU = 49 +const SO_INCOMING_NAPI_ID = 56 +const SO_KEEPALIVE = 9 +const SO_LINGER = 13 +const SO_LOCK_FILTER = 44 +const SO_MARK = 36 +const SO_MAX_PACING_RATE = 47 +const SO_MEMINFO = 55 +const SO_NOFCS = 43 +const SO_NO_CHECK = 11 +const SO_OOBINLINE = 10 +const SO_PASSCRED = 16 +const SO_PASSSEC = 34 +const SO_PEEK_OFF = 42 +const SO_PEERCRED = 17 +const SO_PEERGROUPS = 59 +const SO_PEERNAME = 28 +const SO_PEERSEC = 31 +const SO_PREFER_BUSY_POLL = 69 +const SO_PRIORITY = 12 +const SO_PROTOCOL = 38 +const SO_RCVBUF = 8 +const SO_RCVBUFFORCE = 33 +const SO_RCVLOWAT = 18 +const SO_RCVTIMEO = 20 +const SO_REUSEADDR = 2 +const SO_REUSEPORT = 15 +const SO_RXQ_OVFL = 40 +const SO_SECURITY_AUTHENTICATION = 22 +const SO_SECURITY_ENCRYPTION_NETWORK = 24 +const SO_SECURITY_ENCRYPTION_TRANSPORT = 23 +const SO_SELECT_ERR_QUEUE = 45 +const SO_SNDBUF = 7 +const SO_SNDBUFFORCE = 32 +const SO_SNDLOWAT = 19 +const SO_SNDTIMEO = 21 +const SO_TIMESTAMP = 29 +const SO_TIMESTAMPING = 37 +const SO_TIMESTAMPNS = 35 +const SO_TXTIME = 61 +const SO_TYPE = 3 +const SO_WIFI_STATUS = 41 +const SO_ZEROCOPY = 60 + +type Tsocklen_t = uint32 + +type Tsa_family_t = uint16 + +type Tmsghdr = struct { + Fmsg_name uintptr + Fmsg_namelen Tsocklen_t + Fmsg_iov uintptr + Fmsg_iovlen int32 + F__pad1 int32 + Fmsg_control uintptr + Fmsg_controllen Tsocklen_t + F__pad2 int32 + Fmsg_flags int32 +} + +type Tcmsghdr = struct { + Fcmsg_len Tsocklen_t + F__pad1 int32 + Fcmsg_level int32 + Fcmsg_type int32 +} + +type Tlinger = struct { + Fl_onoff int32 + Fl_linger int32 +} + +type Tsockaddr = struct { + Fsa_family Tsa_family_t + Fsa_data [14]int8 +} + +type Tsockaddr_storage = struct { + Fss_family Tsa_family_t + F__ss_padding [118]int8 + F__ss_align uint64 +} + +var _lock2 [1]int32 +var _log_ident [32]int8 +var _log_opt int32 +var _log_facility = Int32FromInt32(1) << Int32FromInt32(3) +var _log_mask = int32(0xff) +var _log_fd = -int32(1) + +func Xsetlogmask(tls *TLS, maskpri int32) (r int32) { + if __ccgo_strace { + trc("tls=%v maskpri=%v, (%v:)", tls, maskpri, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret int32 + _ = ret + ___lock(tls, uintptr(unsafe.Pointer(&_lock2))) + ret = _log_mask + if maskpri != 0 { + _log_mask = maskpri + } + ___unlock(tls, uintptr(unsafe.Pointer(&_lock2))) + return ret +} + +var _log_addr = struct { + Fsun_family int16 + Fsun_path [9]int8 +}{ + Fsun_family: int16(PF_LOCAL), + Fsun_path: [9]int8{'/', 'd', 'e', 'v', '/', 'l', 'o', 'g'}, +} + +func Xcloselog(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* cs at bp+0 */ int32 + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp) + ___lock(tls, uintptr(unsafe.Pointer(&_lock2))) + Xclose(tls, _log_fd) + _log_fd = -int32(1) + ___unlock(tls, uintptr(unsafe.Pointer(&_lock2))) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp)), uintptr(0)) +} + +func ___openlog(tls *TLS) { + _log_fd = Xsocket(tls, int32(PF_LOCAL), Int32FromInt32(SOCK_DGRAM)|Int32FromInt32(SOCK_CLOEXEC), 0) + if _log_fd >= 0 { + Xconnect(tls, _log_fd, uintptr(unsafe.Pointer(&_log_addr)), uint32(12)) + } +} + +func Xopenlog(tls *TLS, ident uintptr, opt int32, facility int32) { + if __ccgo_strace { + trc("tls=%v ident=%v opt=%v facility=%v, (%v:)", tls, ident, opt, facility, origin(2)) + } + bp := tls.Alloc(16) + defer tls.Free(16) + var n Tsize_t + var _ /* cs at bp+0 */ int32 + _ = n + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp) + ___lock(tls, uintptr(unsafe.Pointer(&_lock2))) + if ident != 0 { + n = Xstrnlen(tls, ident, Uint64FromInt64(32)-Uint64FromInt32(1)) + Xmemcpy(tls, uintptr(unsafe.Pointer(&_log_ident)), ident, n) + _log_ident[n] = 0 + } else { + _log_ident[0] = 0 + } + _log_opt = opt + _log_facility = facility + if opt&int32(LOG_NDELAY) != 0 && _log_fd < 0 { + ___openlog(tls) + } + ___unlock(tls, uintptr(unsafe.Pointer(&_lock2))) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp)), uintptr(0)) +} + +func _is_lost_conn(tls *TLS, e int32) (r int32) { + return BoolInt32(e == int32(ECONNREFUSED) || e == int32(ECONNRESET) || e == int32(ENOTCONN) || e == int32(EPIPE)) +} + +func __vsyslog(tls *TLS, priority int32, message uintptr, ap Tva_list) { + bp := tls.Alloc(1184) + defer tls.Free(1184) + var errno_save, fd, l, l2, pid, v1 int32 + var _ /* buf at bp+80 */ [1024]int8 + var _ /* hlen at bp+1104 */ int32 + var _ /* now at bp+16 */ Ttime_t + var _ /* timebuf at bp+0 */ [16]int8 + var _ /* tm at bp+24 */ Ttm + _, _, _, _, _, _ = errno_save, fd, l, l2, pid, v1 + errno_save = **(**int32)(__ccgo_up(X__errno_location(tls))) + if _log_fd < 0 { + ___openlog(tls) + } + if !(priority&Int32FromInt32(LOG_FACMASK) != 0) { + priority = priority | _log_facility + } + **(**Ttime_t)(__ccgo_up(bp + 16)) = Xtime(tls, UintptrFromInt32(0)) + Xgmtime_r(tls, bp+16, bp+24) + Xstrftime_l(tls, bp, uint64(16), __ccgo_ts+938, bp+24, uintptr(unsafe.Pointer(&X__c_locale))) + if _log_opt&int32(LOG_PID) != 0 { + v1 = Xgetpid(tls) + } else { + v1 = 0 + } + pid = v1 + l = Xsnprintf(tls, bp+80, uint64(1024), __ccgo_ts+947, VaList(bp+1120, priority, bp, bp+1104, uintptr(unsafe.Pointer(&_log_ident)), __ccgo_ts+969+BoolUintptr(!(pid != 0)), pid, __ccgo_ts+971+BoolUintptr(!(pid != 0)))) + **(**int32)(__ccgo_up(X__errno_location(tls))) = errno_save + l2 = Xvsnprintf(tls, bp+80+uintptr(l), uint64(1024)-Uint64FromInt32(l), message, ap) + if l2 >= 0 { + if Uint64FromInt32(l2) >= uint64(1024)-Uint64FromInt32(l) { + l = Int32FromUint64(Uint64FromInt64(1024) - Uint64FromInt32(1)) + } else { + l = l + l2 + } + if int32((**(**[1024]int8)(__ccgo_up(bp + 80)))[l-int32(1)]) != int32('\n') { + v1 = l + l = l + 1 + (**(**[1024]int8)(__ccgo_up(bp + 80)))[v1] = int8('\n') + } + if Xsend(tls, _log_fd, bp+80, Uint64FromInt32(l), 0) < 0 && (!(_is_lost_conn(tls, **(**int32)(__ccgo_up(X__errno_location(tls)))) != 0) || Xconnect(tls, _log_fd, uintptr(unsafe.Pointer(&_log_addr)), uint32(12)) < 0 || Xsend(tls, _log_fd, bp+80, Uint64FromInt32(l), 0) < 0) && _log_opt&int32(LOG_CONS) != 0 { + fd = Xopen(tls, __ccgo_ts+666, Int32FromInt32(O_WRONLY)|Int32FromInt32(O_NOCTTY)|Int32FromInt32(O_CLOEXEC), 0) + if fd >= 0 { + Xdprintf(tls, fd, __ccgo_ts+973, VaList(bp+1120, l-**(**int32)(__ccgo_up(bp + 1104)), bp+80+uintptr(**(**int32)(__ccgo_up(bp + 1104))))) + Xclose(tls, fd) + } + } + if _log_opt&int32(LOG_PERROR) != 0 { + Xdprintf(tls, int32(2), __ccgo_ts+973, VaList(bp+1120, l-**(**int32)(__ccgo_up(bp + 1104)), bp+80+uintptr(**(**int32)(__ccgo_up(bp + 1104))))) + } + } +} + +func ___vsyslog(tls *TLS, priority int32, message uintptr, ap Tva_list) { + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* cs at bp+0 */ int32 + if !(_log_mask&(Int32FromInt32(1)<<(priority&Int32FromInt32(7))) != 0) || priority & ^Int32FromInt32(0x3ff) != 0 { + return + } + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp) + ___lock(tls, uintptr(unsafe.Pointer(&_lock2))) + __vsyslog(tls, priority, message, ap) + ___unlock(tls, uintptr(unsafe.Pointer(&_lock2))) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp)), uintptr(0)) +} + +func Xsyslog(tls *TLS, priority int32, message uintptr, va uintptr) { + if __ccgo_strace { + trc("tls=%v priority=%v message=%v va=%v, (%v:)", tls, priority, message, va, origin(2)) + } + var ap Tva_list + _ = ap + ap = va + ___vsyslog(tls, priority, message, ap) + _ = ap +} + +type Tutsname1 = struct { + Fsysname [65]int8 + Fnodename [65]int8 + Frelease [65]int8 + Fversion [65]int8 + Fmachine [65]int8 + F__domainname [65]int8 +} + +func Xuname(tls *TLS, uts uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v uts=%v, (%v:)", tls, uts, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_uname), int64(uts))))) +} + +func X__madvise(tls *TLS, addr uintptr, len1 Tsize_t, advice int32) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v len1=%v advice=%v, (%v:)", tls, addr, len1, advice, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_madvise), int64(addr), Int64FromUint64(len1), int64(advice))))) +} + +func Xmadvise(tls *TLS, addr uintptr, len1 Tsize_t, advice int32) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v len1=%v advice=%v, (%v:)", tls, addr, len1, advice, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__madvise(tls, addr, len1, advice) +} + +func Xmincore(tls *TLS, addr uintptr, len1 Tsize_t, vec uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v len1=%v vec=%v, (%v:)", tls, addr, len1, vec, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_mincore), int64(addr), Int64FromUint64(len1), int64(vec))))) +} + +func Xmlock(tls *TLS, addr uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v len1=%v, (%v:)", tls, addr, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_mlock), int64(addr), Int64FromUint64(len1))))) +} + +func Xmlockall(tls *TLS, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v flags=%v, (%v:)", tls, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_mlockall), int64(flags))))) +} + +const OFF_MASK = 4095 +const UNIT = 4096 + +func _dummy5(tls *TLS) { +} + +func X__mmap(tls *TLS, start uintptr, len1 Tsize_t, prot int32, flags int32, fd int32, off Toff_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v start=%v len1=%v prot=%v flags=%v fd=%v off=%v, (%v:)", tls, start, len1, prot, flags, fd, off, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret int64 + _ = ret + if Uint64FromInt64(off)&(-Uint64FromUint64(0x2000)<<(Uint64FromInt32(8)*Uint64FromInt64(8)-Uint64FromInt32(1))|(Uint64FromUint64(4096)-Uint64FromInt32(1))) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(-Int32FromInt32(1)) + } + if len1 >= Uint64FromInt64(Int64FromInt64(INT64_MAX)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOMEM) + return uintptr(-Int32FromInt32(1)) + } + if flags&int32(MAP_FIXED) != 0 { + _dummy5(tls) + } + ret = X__syscall6(tls, int64(SYS_mmap), int64(start), Int64FromUint64(len1), int64(prot), int64(flags), int64(fd), off) + /* Fixup incorrect EPERM from kernel. */ + if ret == int64(-int32(EPERM)) && !(start != 0) && flags&int32(MAP_ANON) != 0 && !(flags&Int32FromInt32(MAP_FIXED) != 0) { + ret = int64(-int32(ENOMEM)) + } + return uintptr(X__syscall_ret(tls, Uint64FromInt64(ret))) +} + +func Xmmap(tls *TLS, start uintptr, len1 Tsize_t, prot int32, flags int32, fd int32, off Toff_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v start=%v len1=%v prot=%v flags=%v fd=%v off=%v, (%v:)", tls, start, len1, prot, flags, fd, off, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__mmap(tls, start, len1, prot, flags, fd, off) +} + +func X__mprotect(tls *TLS, addr uintptr, len1 Tsize_t, prot int32) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v len1=%v prot=%v, (%v:)", tls, addr, len1, prot, origin(2)) + defer func() { trc("-> %v", r) }() + } + var end, start Tsize_t + _, _ = end, start + start = uint64(addr) & Uint64FromInt32(-Int32FromInt32(PAGESIZE)) + end = uint64(addr+uintptr(len1)+UintptrFromInt32(PAGESIZE)-UintptrFromInt32(1)) & Uint64FromInt32(-Int32FromInt32(PAGESIZE)) + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_mprotect), Int64FromUint64(start), Int64FromUint64(end-start), int64(prot))))) +} + +func Xmprotect(tls *TLS, addr uintptr, len1 Tsize_t, prot int32) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v len1=%v prot=%v, (%v:)", tls, addr, len1, prot, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__mprotect(tls, addr, len1, prot) +} + +func _dummy6(tls *TLS) { +} + +func X__mremap(tls *TLS, old_addr uintptr, old_len Tsize_t, new_len Tsize_t, flags int32, va uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v old_addr=%v old_len=%v new_len=%v flags=%v va=%v, (%v:)", tls, old_addr, old_len, new_len, flags, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var new_addr uintptr + _, _ = ap, new_addr + new_addr = uintptr(0) + if new_len >= Uint64FromInt64(Int64FromInt64(INT64_MAX)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOMEM) + return uintptr(-Int32FromInt32(1)) + } + if flags&int32(MREMAP_FIXED) != 0 { + _dummy6(tls) + ap = va + new_addr = VaUintptr(&ap) + _ = ap + } + return uintptr(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_mremap), int64(old_addr), Int64FromUint64(old_len), Int64FromUint64(new_len), int64(flags), int64(new_addr))))) +} + +func Xmremap(tls *TLS, old_addr uintptr, old_len Tsize_t, new_len Tsize_t, flags int32, va uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v old_addr=%v old_len=%v new_len=%v flags=%v va=%v, (%v:)", tls, old_addr, old_len, new_len, flags, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__mremap(tls, old_addr, old_len, new_len, flags, va) +} + +func Xmsync(tls *TLS, start uintptr, len1 Tsize_t, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v start=%v len1=%v flags=%v, (%v:)", tls, start, len1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_msync), int64(start), Int64FromUint64(len1), int64(flags), 0, 0, 0)))) +} + +func Xmunlock(tls *TLS, addr uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v len1=%v, (%v:)", tls, addr, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_munlock), int64(addr), Int64FromUint64(len1))))) +} + +func Xmunlockall(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall0(tls, int64(SYS_munlockall))))) +} + +func _dummy7(tls *TLS) { +} + +func X__munmap(tls *TLS, start uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v start=%v len1=%v, (%v:)", tls, start, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + _dummy7(tls) + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_munmap), int64(start), Int64FromUint64(len1))))) +} + +func Xmunmap(tls *TLS, start uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v start=%v len1=%v, (%v:)", tls, start, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__munmap(tls, start, len1) +} + +func Xposix_madvise(tls *TLS, addr uintptr, len1 Tsize_t, advice int32) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v len1=%v advice=%v, (%v:)", tls, addr, len1, advice, origin(2)) + defer func() { trc("-> %v", r) }() + } + if advice == int32(MADV_DONTNEED) { + return 0 + } + return int32(-X__syscall3(tls, int64(SYS_madvise), int64(addr), Int64FromUint64(len1), int64(advice))) +} + +func X__shm_mapname(tls *TLS, name uintptr, buf uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v buf=%v, (%v:)", tls, name, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + var p, v1 uintptr + _, _ = p, v1 + for int32(**(**int8)(__ccgo_up(name))) == int32('/') { + name = name + 1 + } + v1 = X__strchrnul(tls, name, int32('/')) + p = v1 + if **(**int8)(__ccgo_up(v1)) != 0 || p == name || int64(p)-int64(name) <= int64(2) && int32(**(**int8)(__ccgo_up(name))) == int32('.') && int32(**(**int8)(__ccgo_up(p + uintptr(-Int32FromInt32(1))))) == int32('.') { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(0) + } + if int64(p)-int64(name) > int64(NAME_MAX) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENAMETOOLONG) + return uintptr(0) + } + Xmemcpy(tls, buf, __ccgo_ts+978, uint64(9)) + Xmemcpy(tls, buf+uintptr(9), name, Uint64FromInt64(int64(p)-int64(name)+int64(1))) + return buf +} + +func Xshm_open(tls *TLS, name uintptr, flag int32, mode Tmode_t) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v flag=%v mode=%v, (%v:)", tls, name, flag, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(288) + defer tls.Free(288) + var fd int32 + var v1 uintptr + var _ /* buf at bp+4 */ [265]int8 + var _ /* cs at bp+0 */ int32 + _, _ = fd, v1 + v1 = X__shm_mapname(tls, name, bp+4) + name = v1 + if !(v1 != 0) { + return -int32(1) + } + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp) + fd = Xopen(tls, name, flag|int32(O_NOFOLLOW)|int32(O_CLOEXEC)|int32(O_NONBLOCK), VaList(bp+280, mode)) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp)), uintptr(0)) + return fd +} + +func Xshm_unlink(tls *TLS, name uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(272) + defer tls.Free(272) + var v1 uintptr + var _ /* buf at bp+0 */ [265]int8 + _ = v1 + v1 = X__shm_mapname(tls, name, bp) + name = v1 + if !(v1 != 0) { + return -int32(1) + } + return Xunlink(tls, name) +} + +const SA = 194 +const SB = 244 +const bittab = 0 + +func Xbtowc(tls *TLS, c int32) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + var b, v3 int32 + var v1, v2 uint32 + _, _, _, _ = b, v1, v2, v3 + b = Int32FromUint8(Uint8FromInt32(c)) + if Uint32FromInt32(b) < uint32(128) { + v1 = Uint32FromInt32(b) + } else { + if !!(**(**uintptr)(__ccgo_up((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale)) != 0) { + v3 = int32(4) + } else { + v3 = int32(1) + } + if v3 == int32(1) && c != -int32(1) { + v2 = Uint32FromInt32(Int32FromInt32(0xdfff) & int32(int8(c))) + } else { + v2 = uint32(0xffffffff) + } + v1 = v2 + } + return v1 +} + +type Tchar16_t = uint16 + +type Tchar32_t = uint32 + +func Xc16rtomb(tls *TLS, s uintptr, c16 Tchar16_t, ps uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v c16=%v ps=%v, (%v:)", tls, s, c16, ps, origin(2)) + defer func() { trc("-> %v", r) }() + } + var wc Twchar_t + var x uintptr + _, _ = wc, x + if !(ps != 0) { + ps = uintptr(unsafe.Pointer(&_internal_state)) + } + x = ps + if !(s != 0) { + if **(**uint32)(__ccgo_up(x)) != 0 { + goto ilseq + } + return uint64(1) + } + if !(**(**uint32)(__ccgo_up(x)) != 0) && uint32(c16)-uint32(0xd800) < uint32(0x400) { + **(**uint32)(__ccgo_up(x)) = Uint32FromInt32((Int32FromUint16(c16) - int32(0xd7c0)) << int32(10)) + return uint64(0) + } + if **(**uint32)(__ccgo_up(x)) != 0 { + if uint32(c16)-uint32(0xdc00) >= uint32(0x400) { + goto ilseq + } else { + wc = Int32FromUint32(**(**uint32)(__ccgo_up(x)) + uint32(c16) - uint32(0xdc00)) + } + **(**uint32)(__ccgo_up(x)) = uint32(0) + } else { + wc = Int32FromUint16(c16) + } + return Xwcrtomb(tls, s, wc, uintptr(0)) + goto ilseq +ilseq: + ; + **(**uint32)(__ccgo_up(x)) = uint32(0) + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EILSEQ) + return Uint64FromInt32(-Int32FromInt32(1)) +} + +var _internal_state uint32 + +func Xc32rtomb(tls *TLS, s uintptr, c32 Tchar32_t, ps uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v c32=%v ps=%v, (%v:)", tls, s, c32, ps, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwcrtomb(tls, s, Int32FromUint32(c32), ps) +} + +func Xmblen(tls *TLS, s uintptr, n Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v, (%v:)", tls, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xmbtowc(tls, uintptr(0), s, n) +} + +func Xmbrlen(tls *TLS, s uintptr, n Tsize_t, st uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v st=%v, (%v:)", tls, s, n, st, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 uintptr + _ = v1 + if st != 0 { + v1 = st + } else { + v1 = uintptr(unsafe.Pointer(&_internal)) + } + return Xmbrtowc(tls, uintptr(0), s, n, v1) +} + +var _internal uint32 + +func Xmbrtoc16(tls *TLS, pc16 uintptr, s uintptr, n Tsize_t, ps uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v pc16=%v s=%v n=%v ps=%v, (%v:)", tls, pc16, s, n, ps, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var pending uintptr + var ret Tsize_t + var _ /* wc at bp+0 */ Twchar_t + _, _ = pending, ret + if !(ps != 0) { + ps = uintptr(unsafe.Pointer(&_internal_state1)) + } + pending = ps + if !(s != 0) { + return Xmbrtoc16(tls, uintptr(0), __ccgo_ts, uint64(1), ps) + } + /* mbrtowc states for partial UTF-8 characters have the high bit set; + * we use nonzero states without high bit for pending surrogates. */ + if Int32FromUint32(**(**uint32)(__ccgo_up(pending))) > 0 { + if pc16 != 0 { + **(**Tchar16_t)(__ccgo_up(pc16)) = uint16(**(**uint32)(__ccgo_up(pending))) + } + **(**uint32)(__ccgo_up(pending)) = uint32(0) + return Uint64FromInt32(-Int32FromInt32(3)) + } + ret = Xmbrtowc(tls, bp, s, n, ps) + if ret <= uint64(4) { + if **(**Twchar_t)(__ccgo_up(bp)) >= int32(0x10000) { + **(**uint32)(__ccgo_up(pending)) = Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp))&int32(0x3ff) + int32(0xdc00)) + **(**Twchar_t)(__ccgo_up(bp)) = int32(0xd7c0) + **(**Twchar_t)(__ccgo_up(bp))>>Int32FromInt32(10) + } + if pc16 != 0 { + **(**Tchar16_t)(__ccgo_up(pc16)) = Uint16FromInt32(**(**Twchar_t)(__ccgo_up(bp))) + } + } + return ret +} + +var _internal_state1 uint32 + +func Xmbrtoc32(tls *TLS, pc32 uintptr, s uintptr, n Tsize_t, ps uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v pc32=%v s=%v n=%v ps=%v, (%v:)", tls, pc32, s, n, ps, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ret Tsize_t + var _ /* wc at bp+0 */ Twchar_t + _ = ret + if !(ps != 0) { + ps = uintptr(unsafe.Pointer(&_internal_state2)) + } + if !(s != 0) { + return Xmbrtoc32(tls, uintptr(0), __ccgo_ts, uint64(1), ps) + } + ret = Xmbrtowc(tls, bp, s, n, ps) + if ret <= uint64(4) && pc32 != 0 { + **(**Tchar32_t)(__ccgo_up(pc32)) = Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp))) + } + return ret +} + +var _internal_state2 uint32 + +func Xmbrtowc(tls *TLS, wc uintptr, src uintptr, n Tsize_t, st uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v wc=%v src=%v n=%v st=%v, (%v:)", tls, wc, src, n, st, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var N Tsize_t + var c uint32 + var s, v3 uintptr + var v1 Twchar_t + var v2 int32 + var _ /* dummy at bp+0 */ Twchar_t + _, _, _, _, _, _ = N, c, s, v1, v2, v3 + s = src + N = n + if !(st != 0) { + st = uintptr(unsafe.Pointer(&_internal_state3)) + } + c = **(**uint32)(__ccgo_up(st)) + if !(s != 0) { + if c != 0 { + goto ilseq + } + return uint64(0) + } else { + if !(wc != 0) { + wc = bp + } + } + if !(n != 0) { + return Uint64FromInt32(-Int32FromInt32(2)) + } + if !(c != 0) { + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) < int32(0x80) { + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(s))) + **(**Twchar_t)(__ccgo_up(wc)) = v1 + return BoolUint64(!!(v1 != 0)) + } + if !!(**(**uintptr)(__ccgo_up((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale)) != 0) { + v2 = int32(4) + } else { + v2 = int32(1) + } + if v2 == int32(1) { + **(**Twchar_t)(__ccgo_up(wc)) = Int32FromInt32(0xdfff) & int32(Int8FromUint8(**(**uint8)(__ccgo_up(s)))) + return Uint64FromInt32(1) + } + if uint32(**(**uint8)(__ccgo_up(s)))-uint32(0xc2) > Uint32FromUint32(0xf4)-Uint32FromUint32(0xc2) { + goto ilseq + } + v3 = s + s = s + 1 + c = X__fsmu8[uint32(**(**uint8)(__ccgo_up(v3)))-uint32(0xc2)] + n = n - 1 + } + if n != 0 { + if (Int32FromUint8(**(**uint8)(__ccgo_up(s)))>>int32(3)-int32(0x10)|(Int32FromUint8(**(**uint8)(__ccgo_up(s)))>>int32(3)+Int32FromUint32(c)>>Int32FromInt32(26))) & ^Int32FromInt32(7) != 0 { + goto ilseq + } + goto loop + loop: + ; + v3 = s + s = s + 1 + c = c<= uint32(0x40) { + goto ilseq + } + goto loop + } + } + **(**uint32)(__ccgo_up(st)) = c + return Uint64FromInt32(-Int32FromInt32(2)) + goto ilseq +ilseq: + ; + **(**uint32)(__ccgo_up(st)) = uint32(0) + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EILSEQ) + return Uint64FromInt32(-Int32FromInt32(1)) +} + +var _internal_state3 uint32 + +func Xmbsinit(tls *TLS, st uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v st=%v, (%v:)", tls, st, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(!(st != 0) || !(**(**uint32)(__ccgo_up(st)) != 0)) +} + +func Xmbsnrtowcs(tls *TLS, wcs uintptr, src uintptr, n Tsize_t, wn Tsize_t, st uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v wcs=%v src=%v n=%v wn=%v st=%v, (%v:)", tls, wcs, src, n, wn, st, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(1040) + defer tls.Free(1040) + var cnt, l, n2, v1 Tsize_t + var tmp_s, ws uintptr + var v2 bool + var v3 uint64 + var _ /* s at bp+1024 */ uintptr + var _ /* wbuf at bp+0 */ [256]Twchar_t + _, _, _, _, _, _, _, _ = cnt, l, n2, tmp_s, ws, v1, v2, v3 + cnt = uint64(0) + **(**uintptr)(__ccgo_up(bp + 1024)) = **(**uintptr)(__ccgo_up(src)) + if !(wcs != 0) { + ws = bp + wn = Uint64FromInt64(1024) / Uint64FromInt64(4) + } else { + ws = wcs + } + /* making sure output buffer size is at most n/4 will ensure + * that mbsrtowcs never reads more than n input bytes. thus + * we can use mbsrtowcs as long as it's practical.. */ + for { + if v2 = **(**uintptr)(__ccgo_up(bp + 1024)) != 0 && wn != 0; v2 { + v1 = n / Uint64FromInt32(4) + n2 = v1 + } + if !(v2 && (v1 >= wn || n2 > uint64(32))) { + break + } + if n2 >= wn { + n2 = wn + } + tmp_s = **(**uintptr)(__ccgo_up(bp + 1024)) + l = Xmbsrtowcs(tls, ws, bp+1024, n2, st) + if !(l+Uint64FromInt32(1) != 0) { + cnt = l + wn = uint64(0) + break + } + if ws != bp { + ws = ws + uintptr(l)*4 + wn = wn - l + } + if **(**uintptr)(__ccgo_up(bp + 1024)) != 0 { + v3 = n - Uint64FromInt64(int64(**(**uintptr)(__ccgo_up(bp + 1024)))-int64(tmp_s)) + } else { + v3 = uint64(0) + } + n = v3 + cnt = cnt + l + } + if **(**uintptr)(__ccgo_up(bp + 1024)) != 0 { + for wn != 0 && n != 0 { + l = Xmbrtowc(tls, ws, **(**uintptr)(__ccgo_up(bp + 1024)), n, st) + if l+uint64(2) <= uint64(2) { + if !(l+Uint64FromInt32(1) != 0) { + cnt = l + break + } + if !(l != 0) { + **(**uintptr)(__ccgo_up(bp + 1024)) = uintptr(0) + break + } + /* have to roll back partial character */ + **(**uint32)(__ccgo_up(st)) = uint32(0) + break + } + **(**uintptr)(__ccgo_up(bp + 1024)) = **(**uintptr)(__ccgo_up(bp + 1024)) + uintptr(l) + n = n - l + /* safe - this loop runs fewer than sizeof(wbuf)/8 times */ + ws += 4 + wn = wn - 1 + cnt = cnt + 1 + } + } + if wcs != 0 { + **(**uintptr)(__ccgo_up(src)) = **(**uintptr)(__ccgo_up(bp + 1024)) + } + return cnt +} + +func Xmbsrtowcs(tls *TLS, ws uintptr, src uintptr, wn Tsize_t, st uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v ws=%v src=%v wn=%v st=%v, (%v:)", tls, ws, src, wn, st, origin(2)) + defer func() { trc("-> %v", r) }() + } + var c, v1 uint32 + var s, v5, v6 uintptr + var wn0 Tsize_t + var v2 bool + var v3 int32 + _, _, _, _, _, _, _, _ = c, s, wn0, v1, v2, v3, v5, v6 + s = **(**uintptr)(__ccgo_up(src)) + wn0 = wn + c = uint32(0) + if v2 = st != 0; v2 { + v1 = **(**uint32)(__ccgo_up(st)) + c = v1 + } + if v2 && v1 != 0 { + if ws != 0 { + **(**uint32)(__ccgo_up(st)) = uint32(0) + goto resume + } else { + goto resume0 + } + } + if !!(**(**uintptr)(__ccgo_up((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale)) != 0) { + v3 = int32(4) + } else { + v3 = int32(1) + } + if v3 == int32(1) { + if !(ws != 0) { + return _strlen(tls, s) + } + for { + if !(wn != 0) { + **(**uintptr)(__ccgo_up(src)) = s + return wn0 + } + if !(**(**uint8)(__ccgo_up(s)) != 0) { + break + } + v5 = s + s = s + 1 + c = uint32(**(**uint8)(__ccgo_up(v5))) + v5 = ws + ws += 4 + **(**Twchar_t)(__ccgo_up(v5)) = Int32FromInt32(0xdfff) & int32(Int8FromUint32(c)) + wn = wn - 1 + goto _4 + _4: + } + **(**Twchar_t)(__ccgo_up(ws)) = 0 + **(**uintptr)(__ccgo_up(src)) = uintptr(0) + return wn0 - wn + } + if !!(ws != 0) { + goto _7 + } +_11: + ; + if uint32(**(**uint8)(__ccgo_up(s)))-uint32(1) < uint32(0x7f) && uint64(s)%uint64(4) == uint64(0) { + for !((**(**uint32)(__ccgo_up(s))|(**(**uint32)(__ccgo_up(s))-Uint32FromInt32(0x01010101)))&Uint32FromUint32(0x80808080) != 0) { + s = s + uintptr(4) + wn = wn - uint64(4) + } + } + if uint32(**(**uint8)(__ccgo_up(s)))-uint32(1) < uint32(0x7f) { + s = s + 1 + wn = wn - 1 + goto _10 + } + if uint32(**(**uint8)(__ccgo_up(s)))-uint32(0xc2) > Uint32FromUint32(0xf4)-Uint32FromUint32(0xc2) { + goto _9 + } + v5 = s + s = s + 1 + c = X__fsmu8[uint32(**(**uint8)(__ccgo_up(v5)))-uint32(0xc2)] + goto resume0 +resume0: + ; + if (Int32FromUint8(**(**uint8)(__ccgo_up(s)))>>int32(3)-int32(0x10)|(Int32FromUint8(**(**uint8)(__ccgo_up(s)))>>int32(3)+Int32FromUint32(c)>>Int32FromInt32(26))) & ^Int32FromInt32(7) != 0 { + s = s - 1 + goto _9 + } + s = s + 1 + if c&(Uint32FromUint32(1)<= uint32(0x40) { + s = s - uintptr(2) + goto _9 + } + s = s + 1 + if c&(Uint32FromUint32(1)<= uint32(0x40) { + s = s - uintptr(3) + goto _9 + } + s = s + 1 + } + } + wn = wn - 1 + c = uint32(0) + goto _10 +_10: + ; + goto _11 + goto _9 +_9: + ; + goto _8 +_7: + ; +_15: + ; + if !(wn != 0) { + **(**uintptr)(__ccgo_up(src)) = s + return wn0 + } + if uint32(**(**uint8)(__ccgo_up(s)))-uint32(1) < uint32(0x7f) && uint64(s)%uint64(4) == uint64(0) { + for wn >= uint64(5) && !((**(**uint32)(__ccgo_up(s))|(**(**uint32)(__ccgo_up(s))-Uint32FromInt32(0x01010101)))&Uint32FromUint32(0x80808080) != 0) { + v5 = ws + ws += 4 + v6 = s + s = s + 1 + **(**Twchar_t)(__ccgo_up(v5)) = Int32FromUint8(**(**uint8)(__ccgo_up(v6))) + v5 = ws + ws += 4 + v6 = s + s = s + 1 + **(**Twchar_t)(__ccgo_up(v5)) = Int32FromUint8(**(**uint8)(__ccgo_up(v6))) + v5 = ws + ws += 4 + v6 = s + s = s + 1 + **(**Twchar_t)(__ccgo_up(v5)) = Int32FromUint8(**(**uint8)(__ccgo_up(v6))) + v5 = ws + ws += 4 + v6 = s + s = s + 1 + **(**Twchar_t)(__ccgo_up(v5)) = Int32FromUint8(**(**uint8)(__ccgo_up(v6))) + wn = wn - uint64(4) + } + } + if uint32(**(**uint8)(__ccgo_up(s)))-uint32(1) < uint32(0x7f) { + v5 = ws + ws += 4 + v6 = s + s = s + 1 + **(**Twchar_t)(__ccgo_up(v5)) = Int32FromUint8(**(**uint8)(__ccgo_up(v6))) + wn = wn - 1 + goto _14 + } + if uint32(**(**uint8)(__ccgo_up(s)))-uint32(0xc2) > Uint32FromUint32(0xf4)-Uint32FromUint32(0xc2) { + goto _13 + } + v5 = s + s = s + 1 + c = X__fsmu8[uint32(**(**uint8)(__ccgo_up(v5)))-uint32(0xc2)] + goto resume +resume: + ; + if (Int32FromUint8(**(**uint8)(__ccgo_up(s)))>>int32(3)-int32(0x10)|(Int32FromUint8(**(**uint8)(__ccgo_up(s)))>>int32(3)+Int32FromUint32(c)>>Int32FromInt32(26))) & ^Int32FromInt32(7) != 0 { + s = s - 1 + goto _13 + } + v5 = s + s = s + 1 + c = c<= uint32(0x40) { + s = s - uintptr(2) + goto _13 + } + v5 = s + s = s + 1 + c = c<= uint32(0x40) { + s = s - uintptr(3) + goto _13 + } + v5 = s + s = s + 1 + c = c< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + *(*uintptr)(unsafe.Pointer(bp)) = _s + return Xmbsrtowcs(tls, ws, bp, wn, uintptr(0)) +} + +func Xmbtowc(tls *TLS, wc uintptr, src uintptr, n Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v src=%v n=%v, (%v:)", tls, wc, src, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var c uint32 + var s, v3 uintptr + var v1 Twchar_t + var v2 int32 + var _ /* dummy at bp+0 */ Twchar_t + _, _, _, _, _ = c, s, v1, v2, v3 + s = src + if !(s != 0) { + return 0 + } + if !(n != 0) { + goto ilseq + } + if !(wc != 0) { + wc = bp + } + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) < int32(0x80) { + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(s))) + **(**Twchar_t)(__ccgo_up(wc)) = v1 + return BoolInt32(!!(v1 != 0)) + } + if !!(**(**uintptr)(__ccgo_up((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale)) != 0) { + v2 = int32(4) + } else { + v2 = int32(1) + } + if v2 == int32(1) { + **(**Twchar_t)(__ccgo_up(wc)) = Int32FromInt32(0xdfff) & int32(Int8FromUint8(**(**uint8)(__ccgo_up(s)))) + return Int32FromInt32(1) + } + if uint32(**(**uint8)(__ccgo_up(s)))-uint32(0xc2) > Uint32FromUint32(0xf4)-Uint32FromUint32(0xc2) { + goto ilseq + } + v3 = s + s = s + 1 + c = X__fsmu8[uint32(**(**uint8)(__ccgo_up(v3)))-uint32(0xc2)] + /* Avoid excessive checks against n: If shifting the state n-1 + * times does not clear the high bit, then the value of n is + * insufficient to read a character */ + if n < uint64(4) && c<<(uint64(6)*n-uint64(6))&(Uint32FromUint32(1)<>int32(3)-int32(0x10)|(Int32FromUint8(**(**uint8)(__ccgo_up(s)))>>int32(3)+Int32FromUint32(c)>>Int32FromInt32(26))) & ^Int32FromInt32(7) != 0 { + goto ilseq + } + v3 = s + s = s + 1 + c = c<= uint32(0x40) { + goto ilseq + } + v3 = s + s = s + 1 + c = c<= uint32(0x40) { + goto ilseq + } + v3 = s + s = s + 1 + **(**Twchar_t)(__ccgo_up(wc)) = Int32FromUint32(c< %v", r) }() + } + var v1 int32 + var v2 uintptr + _, _ = v1, v2 + if !(s != 0) { + return uint64(1) + } + if Uint32FromInt32(wc) < uint32(0x80) { + **(**int8)(__ccgo_up(s)) = int8(wc) + return uint64(1) + } else { + if !!(**(**uintptr)(__ccgo_up((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale)) != 0) { + v1 = int32(4) + } else { + v1 = int32(1) + } + if v1 == int32(1) { + if !(Uint32FromInt32(wc)-Uint32FromInt32(0xdf80) < Uint32FromInt32(0x80)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EILSEQ) + return Uint64FromInt32(-Int32FromInt32(1)) + } + **(**int8)(__ccgo_up(s)) = int8(wc) + return uint64(1) + } else { + if Uint32FromInt32(wc) < uint32(0x800) { + v2 = s + s = s + 1 + **(**int8)(__ccgo_up(v2)) = int8(int32(0xc0) | wc>>Int32FromInt32(6)) + **(**int8)(__ccgo_up(s)) = int8(int32(0x80) | wc&int32(0x3f)) + return uint64(2) + } else { + if Uint32FromInt32(wc) < uint32(0xd800) || Uint32FromInt32(wc)-uint32(0xe000) < uint32(0x2000) { + v2 = s + s = s + 1 + **(**int8)(__ccgo_up(v2)) = int8(int32(0xe0) | wc>>Int32FromInt32(12)) + v2 = s + s = s + 1 + **(**int8)(__ccgo_up(v2)) = int8(int32(0x80) | wc>>Int32FromInt32(6)&int32(0x3f)) + **(**int8)(__ccgo_up(s)) = int8(int32(0x80) | wc&int32(0x3f)) + return uint64(3) + } else { + if Uint32FromInt32(wc)-uint32(0x10000) < uint32(0x100000) { + v2 = s + s = s + 1 + **(**int8)(__ccgo_up(v2)) = int8(int32(0xf0) | wc>>Int32FromInt32(18)) + v2 = s + s = s + 1 + **(**int8)(__ccgo_up(v2)) = int8(int32(0x80) | wc>>Int32FromInt32(12)&int32(0x3f)) + v2 = s + s = s + 1 + **(**int8)(__ccgo_up(v2)) = int8(int32(0x80) | wc>>Int32FromInt32(6)&int32(0x3f)) + **(**int8)(__ccgo_up(s)) = int8(int32(0x80) | wc&int32(0x3f)) + return uint64(4) + } + } + } + } + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EILSEQ) + return Uint64FromInt32(-Int32FromInt32(1)) +} + +func Xwcsnrtombs(tls *TLS, dst uintptr, wcs uintptr, wn Tsize_t, n Tsize_t, st uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v dst=%v wcs=%v wn=%v n=%v st=%v, (%v:)", tls, dst, wcs, wn, n, st, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var cnt, l Tsize_t + var ws, v1 uintptr + var _ /* tmp at bp+0 */ [4]int8 + _, _, _, _ = cnt, l, ws, v1 + ws = **(**uintptr)(__ccgo_up(wcs)) + cnt = uint64(0) + if !(dst != 0) { + n = uint64(0) + } + for ws != 0 && wn != 0 { + if n < uint64(MB_LEN_MAX) { + v1 = bp + } else { + v1 = dst + } + l = Xwcrtomb(tls, v1, **(**Twchar_t)(__ccgo_up(ws)), uintptr(0)) + if l == Uint64FromInt32(-Int32FromInt32(1)) { + cnt = Uint64FromInt32(-Int32FromInt32(1)) + break + } + if dst != 0 { + if n < uint64(MB_LEN_MAX) { + if l > n { + break + } + Xmemcpy(tls, dst, bp, l) + } + dst = dst + uintptr(l) + n = n - l + } + if !(**(**Twchar_t)(__ccgo_up(ws)) != 0) { + ws = uintptr(0) + break + } + ws += 4 + wn = wn - 1 + cnt = cnt + l + } + if dst != 0 { + **(**uintptr)(__ccgo_up(wcs)) = ws + } + return cnt +} + +func Xwcsrtombs(tls *TLS, s uintptr, ws uintptr, n Tsize_t, st uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v ws=%v n=%v st=%v, (%v:)", tls, s, ws, n, st, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var N, l Tsize_t + var ws2, v2 uintptr + var _ /* buf at bp+0 */ [4]int8 + _, _, _, _ = N, l, ws2, v2 + N = n + if !(s != 0) { + n = uint64(0) + ws2 = **(**uintptr)(__ccgo_up(ws)) + for { + if !(**(**Twchar_t)(__ccgo_up(ws2)) != 0) { + break + } + if Uint32FromInt32(**(**Twchar_t)(__ccgo_up(ws2))) >= uint32(0x80) { + l = Xwcrtomb(tls, bp, **(**Twchar_t)(__ccgo_up(ws2)), uintptr(0)) + if !(l+Uint64FromInt32(1) != 0) { + return Uint64FromInt32(-Int32FromInt32(1)) + } + n = n + l + } else { + n = n + 1 + } + goto _1 + _1: + ; + ws2 += 4 + } + return n + } + for n >= uint64(4) { + if Uint32FromInt32(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(ws)))))-uint32(1) >= uint32(0x7f) { + if !(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(ws)))) != 0) { + **(**int8)(__ccgo_up(s)) = 0 + **(**uintptr)(__ccgo_up(ws)) = uintptr(0) + return N - n + } + l = Xwcrtomb(tls, s, **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(ws)))), uintptr(0)) + if !(l+Uint64FromInt32(1) != 0) { + return Uint64FromInt32(-Int32FromInt32(1)) + } + s = s + uintptr(l) + n = n - l + } else { + v2 = s + s = s + 1 + **(**int8)(__ccgo_up(v2)) = int8(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(ws))))) + n = n - 1 + } + **(**uintptr)(__ccgo_up(ws)) += 4 + } + for n != 0 { + if Uint32FromInt32(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(ws)))))-uint32(1) >= uint32(0x7f) { + if !(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(ws)))) != 0) { + **(**int8)(__ccgo_up(s)) = 0 + **(**uintptr)(__ccgo_up(ws)) = uintptr(0) + return N - n + } + l = Xwcrtomb(tls, bp, **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(ws)))), uintptr(0)) + if !(l+Uint64FromInt32(1) != 0) { + return Uint64FromInt32(-Int32FromInt32(1)) + } + if l > n { + return N - n + } + Xwcrtomb(tls, s, **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(ws)))), uintptr(0)) + s = s + uintptr(l) + n = n - l + } else { + v2 = s + s = s + 1 + **(**int8)(__ccgo_up(v2)) = int8(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(ws))))) + n = n - 1 + } + **(**uintptr)(__ccgo_up(ws)) += 4 + } + return N +} + +func Xwcstombs(tls *TLS, s uintptr, ws uintptr, n Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v ws=%v n=%v, (%v:)", tls, s, ws, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + *(*uintptr)(unsafe.Pointer(bp)) = ws + return Xwcsrtombs(tls, s, bp, n, uintptr(0)) +} + +func Xwctob(tls *TLS, c Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + _ = v1 + if c < uint32(128) { + return Int32FromUint32(c) + } + if !!(**(**uintptr)(__ccgo_up((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale)) != 0) { + v1 = int32(4) + } else { + v1 = int32(1) + } + if v1 == int32(1) && c-uint32(0xdf80) < uint32(0x80) { + return Int32FromUint8(uint8(c)) + } + return -int32(1) +} + +func Xwctomb(tls *TLS, s uintptr, wc Twchar_t) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v wc=%v, (%v:)", tls, s, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + if !(s != 0) { + return 0 + } + return Int32FromUint64(Xwcrtomb(tls, s, wc, uintptr(0))) +} + +func Xaccept(tls *TLS, fd int32, addr uintptr, len1 uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v addr=%v len1=%v, (%v:)", tls, fd, addr, len1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v8 int64 + var v1 int32 + var v2, v3, v4, v5, v6, v7 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _ = r, v1, v2, v3, v4, v5, v6, v7, v8 + v1 = int32(SYS_accept) + _ = int32(__SC_accept) + v2 = int64(fd) + v3 = int64(addr) + v4 = int64(len1) + v5 = int64(Int32FromInt32(0)) + v6 = int64(Int32FromInt32(0)) + v7 = int64(Int32FromInt32(0)) + if int32(1) != 0 { + r = ___syscall_cp(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _9 + } + v8 = r + goto _9 +_9: + return int32(X__syscall_ret(tls, Uint64FromInt64(v8))) +} + +type Tucred = struct { + Fpid Tpid_t + Fuid Tuid_t + Fgid Tgid_t +} + +type Tmmsghdr = struct { + Fmsg_hdr Tmsghdr + Fmsg_len uint32 +} + +func Xaccept4(tls *TLS, fd int32, addr uintptr, len1 uintptr, flg int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v addr=%v len1=%v flg=%v, (%v:)", tls, fd, addr, len1, flg, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v8 int64 + var ret, v1 int32 + var v2, v3, v4, v5, v6, v7 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _, _ = r, ret, v1, v2, v3, v4, v5, v6, v7, v8 + if !(flg != 0) { + return Xaccept(tls, fd, addr, len1) + } + v1 = int32(SYS_accept4) + _ = int32(__SC_accept4) + v2 = int64(fd) + v3 = int64(addr) + v4 = int64(len1) + v5 = int64(flg) + v6 = int64(Int32FromInt32(0)) + v7 = int64(Int32FromInt32(0)) + if int32(1) != 0 { + r = ___syscall_cp(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _9 + } + v8 = r + goto _9 +_9: + ret = int32(X__syscall_ret(tls, Uint64FromInt64(v8))) + if ret >= 0 || **(**int32)(__ccgo_up(X__errno_location(tls))) != int32(ENOSYS) && **(**int32)(__ccgo_up(X__errno_location(tls))) != int32(EINVAL) { + return ret + } + if flg & ^(Int32FromInt32(SOCK_CLOEXEC)|Int32FromInt32(SOCK_NONBLOCK)) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + ret = Xaccept(tls, fd, addr, len1) + if ret < 0 { + return ret + } + if flg&int32(SOCK_CLOEXEC) != 0 { + X__syscall3(tls, int64(SYS_fcntl), int64(ret), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + } + if flg&int32(SOCK_NONBLOCK) != 0 { + X__syscall3(tls, int64(SYS_fcntl), int64(ret), int64(Int32FromInt32(F_SETFL)), int64(Int32FromInt32(O_NONBLOCK))) + } + return ret +} + +func Xbind(tls *TLS, fd int32, addr uintptr, len1 Tsocklen_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v addr=%v len1=%v, (%v:)", tls, fd, addr, len1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v8 int64 + var v1 int32 + var v2, v3, v4, v5, v6, v7 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _ = r, v1, v2, v3, v4, v5, v6, v7, v8 + v1 = int32(SYS_bind) + _ = int32(__SC_bind) + v2 = int64(fd) + v3 = int64(addr) + v4 = Int64FromUint32(len1) + v5 = int64(Int32FromInt32(0)) + v6 = int64(Int32FromInt32(0)) + v7 = int64(Int32FromInt32(0)) + if 0 != 0 { + r = ___syscall_cp(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _9 + } + v8 = r + goto _9 +_9: + return int32(X__syscall_ret(tls, Uint64FromInt64(v8))) +} + +func Xconnect(tls *TLS, fd int32, addr uintptr, len1 Tsocklen_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v addr=%v len1=%v, (%v:)", tls, fd, addr, len1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v8 int64 + var v1 int32 + var v2, v3, v4, v5, v6, v7 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _ = r, v1, v2, v3, v4, v5, v6, v7, v8 + v1 = int32(SYS_connect) + _ = int32(__SC_connect) + v2 = int64(fd) + v3 = int64(addr) + v4 = Int64FromUint32(len1) + v5 = int64(Int32FromInt32(0)) + v6 = int64(Int32FromInt32(0)) + v7 = int64(Int32FromInt32(0)) + if int32(1) != 0 { + r = ___syscall_cp(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _9 + } + v8 = r + goto _9 +_9: + return int32(X__syscall_ret(tls, Uint64FromInt64(v8))) +} + +const ADD = 0 +const C_ANY = 0 +const C_CHAOS = 0 +const C_HS = 0 +const C_IN = 0 +const C_NONE = 0 +const DELETE = 0 +const FORMERR = 0 +const GETLONG = 0 +const GETSHORT = 0 +const HFIXEDSZ = 12 +const IN6ADDRSZ = 16 +const INADDRSZ = 4 +const INDIR_MASK = 192 +const INET6_ADDRSTRLEN = 46 +const INET_ADDRSTRLEN = 16 +const INT16SZ = 2 +const INT32SZ = 4 +const INT8SZ = 1 +const IN_CLASSA_HOST = 16777215 +const IN_CLASSA_MAX = 128 +const IN_CLASSA_NET = 4278190080 +const IN_CLASSA_NSHIFT = 24 +const IN_CLASSB_HOST = 65535 +const IN_CLASSB_MAX = 65536 +const IN_CLASSB_NET = 4294901760 +const IN_CLASSB_NSHIFT = 16 +const IN_CLASSC_HOST = 255 +const IN_CLASSC_NET = 4294967040 +const IN_CLASSC_NSHIFT = 8 +const IN_LOOPBACKNET = 127 +const IPPORT_RESERVED = 1024 +const IPPROTO_AH = 51 +const IPPROTO_BEETPH = 94 +const IPPROTO_COMP = 108 +const IPPROTO_DCCP = 33 +const IPPROTO_DSTOPTS = 60 +const IPPROTO_EGP = 8 +const IPPROTO_ENCAP = 98 +const IPPROTO_ESP = 50 +const IPPROTO_ETHERNET = 143 +const IPPROTO_FRAGMENT = 44 +const IPPROTO_GRE = 47 +const IPPROTO_HOPOPTS = 0 +const IPPROTO_ICMP = 1 +const IPPROTO_ICMPV6 = 58 +const IPPROTO_IDP = 22 +const IPPROTO_IGMP = 2 +const IPPROTO_IP = 0 +const IPPROTO_IPIP = 4 +const IPPROTO_IPV6 = 41 +const IPPROTO_MAX = 263 +const IPPROTO_MH = 135 +const IPPROTO_MPLS = 137 +const IPPROTO_MPTCP = 262 +const IPPROTO_MTP = 92 +const IPPROTO_NONE = 59 +const IPPROTO_PIM = 103 +const IPPROTO_PUP = 12 +const IPPROTO_RAW = 255 +const IPPROTO_ROUTING = 43 +const IPPROTO_RSVP = 46 +const IPPROTO_SCTP = 132 +const IPPROTO_TCP = 6 +const IPPROTO_TP = 29 +const IPPROTO_UDP = 17 +const IPPROTO_UDPLITE = 136 +const IPV6_2292DSTOPTS = 4 +const IPV6_2292HOPLIMIT = 8 +const IPV6_2292HOPOPTS = 3 +const IPV6_2292PKTINFO = 2 +const IPV6_2292PKTOPTIONS = 6 +const IPV6_2292RTHDR = 5 +const IPV6_ADDRFORM = 1 +const IPV6_ADDR_PREFERENCES = 72 +const IPV6_ADD_MEMBERSHIP = 20 +const IPV6_AUTHHDR = 10 +const IPV6_AUTOFLOWLABEL = 70 +const IPV6_CHECKSUM = 7 +const IPV6_DONTFRAG = 62 +const IPV6_DROP_MEMBERSHIP = 21 +const IPV6_DSTOPTS = 59 +const IPV6_FREEBIND = 78 +const IPV6_HDRINCL = 36 +const IPV6_HOPLIMIT = 52 +const IPV6_HOPOPTS = 54 +const IPV6_IPSEC_POLICY = 34 +const IPV6_JOIN_ANYCAST = 27 +const IPV6_JOIN_GROUP = 20 +const IPV6_LEAVE_ANYCAST = 28 +const IPV6_LEAVE_GROUP = 21 +const IPV6_MINHOPCOUNT = 73 +const IPV6_MTU = 24 +const IPV6_MTU_DISCOVER = 23 +const IPV6_MULTICAST_ALL = 29 +const IPV6_MULTICAST_HOPS = 18 +const IPV6_MULTICAST_IF = 17 +const IPV6_MULTICAST_LOOP = 19 +const IPV6_NEXTHOP = 9 +const IPV6_ORIGDSTADDR = 74 +const IPV6_PATHMTU = 61 +const IPV6_PKTINFO = 50 +const IPV6_PMTUDISC_DO = 2 +const IPV6_PMTUDISC_DONT = 0 +const IPV6_PMTUDISC_INTERFACE = 4 +const IPV6_PMTUDISC_OMIT = 5 +const IPV6_PMTUDISC_PROBE = 3 +const IPV6_PMTUDISC_WANT = 1 +const IPV6_PREFER_SRC_CGA = 8 +const IPV6_PREFER_SRC_COA = 4 +const IPV6_PREFER_SRC_HOME = 1024 +const IPV6_PREFER_SRC_NONCGA = 2048 +const IPV6_PREFER_SRC_PUBLIC = 2 +const IPV6_PREFER_SRC_PUBTMP_DEFAULT = 256 +const IPV6_PREFER_SRC_TMP = 1 +const IPV6_RECVDSTOPTS = 58 +const IPV6_RECVERR = 25 +const IPV6_RECVFRAGSIZE = 77 +const IPV6_RECVHOPLIMIT = 51 +const IPV6_RECVHOPOPTS = 53 +const IPV6_RECVORIGDSTADDR = 74 +const IPV6_RECVPATHMTU = 60 +const IPV6_RECVPKTINFO = 49 +const IPV6_RECVRTHDR = 56 +const IPV6_RECVTCLASS = 66 +const IPV6_ROUTER_ALERT = 22 +const IPV6_ROUTER_ALERT_ISOLATE = 30 +const IPV6_RTHDR = 57 +const IPV6_RTHDRDSTOPTS = 55 +const IPV6_RTHDR_LOOSE = 0 +const IPV6_RTHDR_STRICT = 1 +const IPV6_RTHDR_TYPE_0 = 0 +const IPV6_RXDSTOPTS = 59 +const IPV6_RXHOPOPTS = 54 +const IPV6_TCLASS = 67 +const IPV6_TRANSPARENT = 75 +const IPV6_UNICAST_HOPS = 16 +const IPV6_UNICAST_IF = 76 +const IPV6_V6ONLY = 26 +const IPV6_XFRM_POLICY = 35 +const IP_ADD_MEMBERSHIP = 35 +const IP_ADD_SOURCE_MEMBERSHIP = 39 +const IP_BIND_ADDRESS_NO_PORT = 24 +const IP_BLOCK_SOURCE = 38 +const IP_CHECKSUM = 23 +const IP_DEFAULT_MULTICAST_LOOP = 1 +const IP_DEFAULT_MULTICAST_TTL = 1 +const IP_DROP_MEMBERSHIP = 36 +const IP_DROP_SOURCE_MEMBERSHIP = 40 +const IP_FREEBIND = 15 +const IP_HDRINCL = 3 +const IP_IPSEC_POLICY = 16 +const IP_MAX_MEMBERSHIPS = 20 +const IP_MINTTL = 21 +const IP_MSFILTER = 41 +const IP_MTU = 14 +const IP_MTU_DISCOVER = 10 +const IP_MULTICAST_ALL = 49 +const IP_MULTICAST_IF = 32 +const IP_MULTICAST_LOOP = 34 +const IP_MULTICAST_TTL = 33 +const IP_NODEFRAG = 22 +const IP_OPTIONS = 4 +const IP_ORIGDSTADDR = 20 +const IP_PASSSEC = 18 +const IP_PKTINFO = 8 +const IP_PKTOPTIONS = 9 +const IP_PMTUDISC = 10 +const IP_PMTUDISC_DO = 2 +const IP_PMTUDISC_DONT = 0 +const IP_PMTUDISC_INTERFACE = 4 +const IP_PMTUDISC_OMIT = 5 +const IP_PMTUDISC_PROBE = 3 +const IP_PMTUDISC_WANT = 1 +const IP_RECVERR = 11 +const IP_RECVERR_RFC4884 = 26 +const IP_RECVFRAGSIZE = 25 +const IP_RECVOPTS = 6 +const IP_RECVORIGDSTADDR = 20 +const IP_RECVRETOPTS = 7 +const IP_RECVTOS = 13 +const IP_RECVTTL = 12 +const IP_RETOPTS = 7 +const IP_ROUTER_ALERT = 5 +const IP_TOS = 1 +const IP_TRANSPARENT = 19 +const IP_TTL = 2 +const IP_UNBLOCK_SOURCE = 37 +const IP_UNICAST_IF = 50 +const IP_XFRM_POLICY = 17 +const IQUERY = 0 +const LOCALDOMAINPARTS = 2 +const MAXCDNAME = 255 +const MAXDFLSRCH = 3 +const MAXDNAME = 1025 +const MAXDNSRCH = 6 +const MAXLABEL = 63 +const MAXNS = 3 +const MAXRESOLVSORT = 10 +const NAMESERVER_PORT = 53 +const NOERROR = 0 +const NOTAUTH = 0 +const NOTIMP = 0 +const NOTZONE = 0 +const NS_ALG_DH = 2 +const NS_ALG_DSA = 3 +const NS_ALG_DSS = 3 +const NS_ALG_EXPIRE_ONLY = 253 +const NS_ALG_MD5RSA = 1 +const NS_ALG_PRIVATE_OID = 254 +const NS_CMPRSFLGS = 192 +const NS_DEFAULTPORT = 53 +const NS_DSA_MAX_BYTES = 405 +const NS_DSA_MIN_SIZE = 213 +const NS_DSA_SIG_SIZE = 41 +const NS_HFIXEDSZ = 12 +const NS_IN6ADDRSZ = 16 +const NS_INADDRSZ = 4 +const NS_INT16SZ = 2 +const NS_INT32SZ = 4 +const NS_INT8SZ = 1 +const NS_KEY_EXTENDED_FLAGS = 4096 +const NS_KEY_NAME_ENTITY = 512 +const NS_KEY_NAME_RESERVED = 768 +const NS_KEY_NAME_TYPE = 768 +const NS_KEY_NAME_USER = 0 +const NS_KEY_NAME_ZONE = 256 +const NS_KEY_NO_AUTH = 32768 +const NS_KEY_NO_CONF = 16384 +const NS_KEY_PROT_ANY = 255 +const NS_KEY_PROT_DNSSEC = 3 +const NS_KEY_PROT_EMAIL = 2 +const NS_KEY_PROT_IPSEC = 4 +const NS_KEY_PROT_TLS = 1 +const NS_KEY_RESERVED10 = 32 +const NS_KEY_RESERVED11 = 16 +const NS_KEY_RESERVED2 = 8192 +const NS_KEY_RESERVED4 = 2048 +const NS_KEY_RESERVED5 = 1024 +const NS_KEY_RESERVED8 = 128 +const NS_KEY_RESERVED9 = 64 +const NS_KEY_RESERVED_BITMASK = 11504 +const NS_KEY_RESERVED_BITMASK2 = 65535 +const NS_KEY_SIGNATORYMASK = 15 +const NS_KEY_TYPEMASK = 49152 +const NS_KEY_TYPE_AUTH_CONF = 0 +const NS_KEY_TYPE_AUTH_ONLY = 16384 +const NS_KEY_TYPE_CONF_ONLY = 32768 +const NS_KEY_TYPE_NO_KEY = 49152 +const NS_MAXCDNAME = 255 +const NS_MAXDNAME = 1025 +const NS_MAXLABEL = 63 +const NS_MAXMSG = 65535 +const NS_MD5RSA_MAX_BASE64 = 10928 +const NS_MD5RSA_MAX_BITS = 4096 +const NS_MD5RSA_MAX_BYTES = 8195 +const NS_MD5RSA_MAX_SIZE = 512 +const NS_MD5RSA_MIN_BITS = 512 +const NS_MD5RSA_MIN_SIZE = 64 +const NS_NOTIFY_OP = 0 +const NS_NXT_BITS = 8 +const NS_NXT_MAX = 127 +const NS_OPT_DNSSEC_OK = 32768 +const NS_OPT_NSID = 3 +const NS_PACKETSZ = 512 +const NS_QFIXEDSZ = 4 +const NS_RRFIXEDSZ = 10 +const NS_SIG_ALG = 2 +const NS_SIG_EXPIR = 8 +const NS_SIG_FOOT = 16 +const NS_SIG_LABELS = 3 +const NS_SIG_OTTL = 4 +const NS_SIG_SIGNED = 12 +const NS_SIG_SIGNER = 18 +const NS_SIG_TYPE = 0 +const NS_TSIG_ALG_HMAC_MD5 = "HMAC-MD5.SIG-ALG.REG.INT" +const NS_TSIG_ERROR_FORMERR = -12 +const NS_TSIG_ERROR_NO_SPACE = -11 +const NS_TSIG_ERROR_NO_TSIG = -10 +const NS_TSIG_FUDGE = 300 +const NS_TSIG_TCP_COUNT = 100 +const NS_UPDATE_OP = 0 +const NXDOMAIN = 0 +const NXRRSET = 0 +const PACKETSZ = 512 +const PRIX16 = "X" +const PRIX32 = "X" +const PRIX8 = "X" +const PRIXFAST16 = "X" +const PRIXFAST32 = "X" +const PRIXFAST8 = "X" +const PRIXLEAST16 = "X" +const PRIXLEAST32 = "X" +const PRIXLEAST8 = "X" +const PRId16 = "d" +const PRId32 = "d" +const PRId8 = "d" +const PRIdFAST16 = "d" +const PRIdFAST32 = "d" +const PRIdFAST8 = "d" +const PRIdLEAST16 = "d" +const PRIdLEAST32 = "d" +const PRIdLEAST8 = "d" +const PRIi16 = "i" +const PRIi32 = "i" +const PRIi8 = "i" +const PRIiFAST16 = "i" +const PRIiFAST32 = "i" +const PRIiFAST8 = "i" +const PRIiLEAST16 = "i" +const PRIiLEAST32 = "i" +const PRIiLEAST8 = "i" +const PRIo16 = "o" +const PRIo32 = "o" +const PRIo8 = "o" +const PRIoFAST16 = "o" +const PRIoFAST32 = "o" +const PRIoFAST8 = "o" +const PRIoLEAST16 = "o" +const PRIoLEAST32 = "o" +const PRIoLEAST8 = "o" +const PRIu16 = "u" +const PRIu32 = "u" +const PRIu8 = "u" +const PRIuFAST16 = "u" +const PRIuFAST32 = "u" +const PRIuFAST8 = "u" +const PRIuLEAST16 = "u" +const PRIuLEAST32 = "u" +const PRIuLEAST8 = "u" +const PRIx16 = "x" +const PRIx32 = "x" +const PRIx8 = "x" +const PRIxFAST16 = "x" +const PRIxFAST32 = "x" +const PRIxFAST8 = "x" +const PRIxLEAST16 = "x" +const PRIxLEAST32 = "x" +const PRIxLEAST8 = "x" +const PUTLONG = 0 +const PUTSHORT = 0 +const QFIXEDSZ = 4 +const QUERY = 0 +const REFUSED = 0 +const RES_AAONLY = 4 +const RES_BLAST = 131072 +const RES_DEBUG = 2 +const RES_DEFAULT = 524992 +const RES_DEFNAMES = 128 +const RES_DFLRETRY = 2 +const RES_DNSRCH = 512 +const RES_EXHAUSTIVE = 1 +const RES_F_CONN = 2 +const RES_F_EDNS0ERR = 4 +const RES_F_VC = 1 +const RES_IGNTC = 32 +const RES_INIT = 1 +const RES_INSECURE1 = 1024 +const RES_INSECURE2 = 2048 +const RES_KEEPTSIG = 65536 +const RES_MAXNDOTS = 15 +const RES_MAXRETRANS = 30 +const RES_MAXRETRY = 5 +const RES_MAXTIME = 65535 +const RES_NOALIASES = 4096 +const RES_NOCHECKNAME = 32768 +const RES_NOIP6DOTINT = 524288 +const RES_PRF_ADD = 128 +const RES_PRF_ANS = 32 +const RES_PRF_AUTH = 64 +const RES_PRF_CLASS = 4 +const RES_PRF_CMD = 8 +const RES_PRF_HEAD1 = 256 +const RES_PRF_HEAD2 = 512 +const RES_PRF_HEADX = 2048 +const RES_PRF_INIT = 16384 +const RES_PRF_QUERY = 4096 +const RES_PRF_QUES = 16 +const RES_PRF_REPLY = 8192 +const RES_PRF_STATS = 1 +const RES_PRF_TTLID = 1024 +const RES_PRF_UPDATE = 2 +const RES_PRIMARY = 16 +const RES_RECURSE = 64 +const RES_ROTATE = 16384 +const RES_SNGLKUP = 2097152 +const RES_SNGLKUPREOP = 4194304 +const RES_STAYOPEN = 256 +const RES_TIMEOUT = 5 +const RES_USEBSTRING = 262144 +const RES_USEVC = 8 +const RES_USE_DNSSEC = 8388608 +const RES_USE_EDNS0 = 1048576 +const RES_USE_INET6 = 8192 +const RRFIXEDSZ = 10 +const SCNd16 = "hd" +const SCNd32 = "d" +const SCNd8 = "hhd" +const SCNdFAST16 = "d" +const SCNdFAST32 = "d" +const SCNdFAST8 = "hhd" +const SCNdLEAST16 = "hd" +const SCNdLEAST32 = "d" +const SCNdLEAST8 = "hhd" +const SCNi16 = "hi" +const SCNi32 = "i" +const SCNi8 = "hhi" +const SCNiFAST16 = "i" +const SCNiFAST32 = "i" +const SCNiFAST8 = "hhi" +const SCNiLEAST16 = "hi" +const SCNiLEAST32 = "i" +const SCNiLEAST8 = "hhi" +const SCNo16 = "ho" +const SCNo32 = "o" +const SCNo8 = "hho" +const SCNoFAST16 = "o" +const SCNoFAST32 = "o" +const SCNoFAST8 = "hho" +const SCNoLEAST16 = "ho" +const SCNoLEAST32 = "o" +const SCNoLEAST8 = "hho" +const SCNu16 = "hu" +const SCNu32 = "u" +const SCNu8 = "hhu" +const SCNuFAST16 = "u" +const SCNuFAST32 = "u" +const SCNuFAST8 = "hhu" +const SCNuLEAST16 = "hu" +const SCNuLEAST32 = "u" +const SCNuLEAST8 = "hhu" +const SCNx16 = "hx" +const SCNx32 = "x" +const SCNx8 = "hhx" +const SCNxFAST16 = "x" +const SCNxFAST32 = "x" +const SCNxFAST8 = "hhx" +const SCNxLEAST16 = "hx" +const SCNxLEAST32 = "x" +const SCNxLEAST8 = "hhx" +const SERVFAIL = 0 +const STATUS = 0 +const S_ADDT = 0 +const S_PREREQ = 0 +const S_UPDATE = 0 +const S_ZONE = 0 +const T_A = 0 +const T_A6 = 0 +const T_AAAA = 0 +const T_AFSDB = 0 +const T_ANY = 0 +const T_ATMA = 0 +const T_AVC = 0 +const T_AXFR = 0 +const T_CAA = 0 +const T_CDNSKEY = 0 +const T_CDS = 0 +const T_CNAME = 0 +const T_CSYNC = 0 +const T_DHCID = 0 +const T_DLV = 0 +const T_DNAME = 0 +const T_DNSKEY = 0 +const T_DS = 0 +const T_EID = 0 +const T_EUI48 = 0 +const T_EUI64 = 0 +const T_GID = 0 +const T_GPOS = 0 +const T_HINFO = 0 +const T_HIP = 0 +const T_IPSECKEY = 0 +const T_ISDN = 0 +const T_IXFR = 0 +const T_KEY = 0 +const T_L32 = 0 +const T_L64 = 0 +const T_LOC = 0 +const T_LP = 0 +const T_MAILA = 0 +const T_MAILB = 0 +const T_MB = 0 +const T_MD = 0 +const T_MF = 0 +const T_MG = 0 +const T_MINFO = 0 +const T_MR = 0 +const T_MX = 0 +const T_NAPTR = 0 +const T_NID = 0 +const T_NIMLOC = 0 +const T_NINFO = 0 +const T_NS = 0 +const T_NSAP = 0 +const T_NSAP_PTR = 0 +const T_NSEC = 0 +const T_NSEC3 = 0 +const T_NSEC3PARAM = 0 +const T_NULL = 0 +const T_NXT = 0 +const T_OPENPGPKEY = 0 +const T_PTR = 0 +const T_PX = 0 +const T_RKEY = 0 +const T_RP = 0 +const T_RRSIG = 0 +const T_RT = 0 +const T_SIG = 0 +const T_SMIMEA = 0 +const T_SOA = 0 +const T_SPF = 0 +const T_SRV = 0 +const T_SSHFP = 0 +const T_TA = 0 +const T_TALINK = 0 +const T_TKEY = 0 +const T_TLSA = 0 +const T_TSIG = 0 +const T_TXT = 0 +const T_UID = 0 +const T_UINFO = 0 +const T_UNSPEC = 0 +const T_URI = 0 +const T_WKS = 0 +const T_X25 = 0 +const YXDOMAIN = 0 +const YXRRSET = 0 +const _PATH_RESCONF = "/etc/resolv.conf" +const __BIND = 19950621 +const __NAMESER = 19991006 +const __PRI64 = "l" +const __PRIPTR = "l" +const __RES = 19960801 +const __UAPI_DEF_IN6_ADDR = 0 +const __UAPI_DEF_IN6_ADDR_ALT = 0 +const __UAPI_DEF_IN6_PKTINFO = 0 +const __UAPI_DEF_IN_ADDR = 0 +const __UAPI_DEF_IN_CLASS = 0 +const __UAPI_DEF_IN_IPPROTO = 0 +const __UAPI_DEF_IN_PKTINFO = 0 +const __UAPI_DEF_IP6_MTUINFO = 0 +const __UAPI_DEF_IPPROTO_V6 = 0 +const __UAPI_DEF_IPV6_MREQ = 0 +const __UAPI_DEF_IPV6_OPTIONS = 0 +const __UAPI_DEF_IP_MREQ = 0 +const __UAPI_DEF_SOCKADDR_IN = 0 +const __UAPI_DEF_SOCKADDR_IN6 = 0 +const _res = 0 + +type Tns_sect = int32 + +type ___ns_sect = int32 + +const _ns_s_qd = 0 +const _ns_s_zn = 0 +const _ns_s_an = 1 +const _ns_s_pr = 1 +const _ns_s_ns = 2 +const _ns_s_ud = 2 +const _ns_s_ar = 3 +const _ns_s_max = 4 + +type Tns_msg = struct { + F_msg uintptr + F_eom uintptr + F_id Tuint16_t + F_flags Tuint16_t + F_counts [4]Tuint16_t + F_sections [4]uintptr + F_sect Tns_sect + F_rrnum int32 + F_msg_ptr uintptr +} + +type t__ns_msg = Tns_msg + +type T_ns_flagdata = struct { + Fmask int32 + Fshift int32 +} + +type Tns_rr = struct { + Fname [1025]int8 + Ftype1 Tuint16_t + Frr_class Tuint16_t + Fttl Tuint32_t + Frdlength Tuint16_t + Frdata uintptr +} + +type t__ns_rr = Tns_rr + +type Tns_flag = int32 + +type ___ns_flag = int32 + +const _ns_f_qr = 0 +const _ns_f_opcode = 1 +const _ns_f_aa = 2 +const _ns_f_tc = 3 +const _ns_f_rd = 4 +const _ns_f_ra = 5 +const _ns_f_z = 6 +const _ns_f_ad = 7 +const _ns_f_cd = 8 +const _ns_f_rcode = 9 +const _ns_f_max = 10 + +type Tns_opcode = int32 + +type ___ns_opcode = int32 + +const _ns_o_query = 0 +const _ns_o_iquery = 1 +const _ns_o_status = 2 +const _ns_o_notify = 4 +const _ns_o_update = 5 +const _ns_o_max = 6 + +type Tns_rcode = int32 + +type ___ns_rcode = int32 + +const _ns_r_noerror = 0 +const _ns_r_formerr = 1 +const _ns_r_servfail = 2 +const _ns_r_nxdomain = 3 +const _ns_r_notimpl = 4 +const _ns_r_refused = 5 +const _ns_r_yxdomain = 6 +const _ns_r_yxrrset = 7 +const _ns_r_nxrrset = 8 +const _ns_r_notauth = 9 +const _ns_r_notzone = 10 +const _ns_r_max = 11 +const _ns_r_badvers = 16 +const _ns_r_badsig = 16 +const _ns_r_badkey = 17 +const _ns_r_badtime = 18 + +type Tns_update_operation = int32 + +type ___ns_update_operation = int32 + +const _ns_uop_delete = 0 +const _ns_uop_add = 1 +const _ns_uop_max = 2 + +type Tns_tsig_key = struct { + Fname [1025]int8 + Falg [1025]int8 + Fdata uintptr + Flen1 int32 +} + +type Tns_tcp_tsig_state = struct { + Fcounter int32 + Fkey uintptr + Fctx uintptr + Fsig [512]uint8 + Fsiglen int32 +} + +type Tns_type = int32 + +type ___ns_type = int32 + +const _ns_t_invalid = 0 +const _ns_t_a = 1 +const _ns_t_ns = 2 +const _ns_t_md = 3 +const _ns_t_mf = 4 +const _ns_t_cname = 5 +const _ns_t_soa = 6 +const _ns_t_mb = 7 +const _ns_t_mg = 8 +const _ns_t_mr = 9 +const _ns_t_null = 10 +const _ns_t_wks = 11 +const _ns_t_ptr = 12 +const _ns_t_hinfo = 13 +const _ns_t_minfo = 14 +const _ns_t_mx = 15 +const _ns_t_txt = 16 +const _ns_t_rp = 17 +const _ns_t_afsdb = 18 +const _ns_t_x25 = 19 +const _ns_t_isdn = 20 +const _ns_t_rt = 21 +const _ns_t_nsap = 22 +const _ns_t_nsap_ptr = 23 +const _ns_t_sig = 24 +const _ns_t_key = 25 +const _ns_t_px = 26 +const _ns_t_gpos = 27 +const _ns_t_aaaa = 28 +const _ns_t_loc = 29 +const _ns_t_nxt = 30 +const _ns_t_eid = 31 +const _ns_t_nimloc = 32 +const _ns_t_srv = 33 +const _ns_t_atma = 34 +const _ns_t_naptr = 35 +const _ns_t_kx = 36 +const _ns_t_cert = 37 +const _ns_t_a6 = 38 +const _ns_t_dname = 39 +const _ns_t_sink = 40 +const _ns_t_opt = 41 +const _ns_t_apl = 42 +const _ns_t_ds = 43 +const _ns_t_sshfp = 44 +const _ns_t_ipseckey = 45 +const _ns_t_rrsig = 46 +const _ns_t_nsec = 47 +const _ns_t_dnskey = 48 +const _ns_t_dhcid = 49 +const _ns_t_nsec3 = 50 +const _ns_t_nsec3param = 51 +const _ns_t_tlsa = 52 +const _ns_t_smimea = 53 +const _ns_t_hip = 55 +const _ns_t_ninfo = 56 +const _ns_t_rkey = 57 +const _ns_t_talink = 58 +const _ns_t_cds = 59 +const _ns_t_cdnskey = 60 +const _ns_t_openpgpkey = 61 +const _ns_t_csync = 62 +const _ns_t_spf = 99 +const _ns_t_uinfo = 100 +const _ns_t_uid = 101 +const _ns_t_gid = 102 +const _ns_t_unspec = 103 +const _ns_t_nid = 104 +const _ns_t_l32 = 105 +const _ns_t_l64 = 106 +const _ns_t_lp = 107 +const _ns_t_eui48 = 108 +const _ns_t_eui64 = 109 +const _ns_t_tkey = 249 +const _ns_t_tsig = 250 +const _ns_t_ixfr = 251 +const _ns_t_axfr = 252 +const _ns_t_mailb = 253 +const _ns_t_maila = 254 +const _ns_t_any = 255 +const _ns_t_zxfr = 256 +const _ns_t_uri = 256 +const _ns_t_caa = 257 +const _ns_t_avc = 258 +const _ns_t_ta = 32768 +const _ns_t_dlv = 32769 +const _ns_t_max = 65536 + +type Tns_class = int32 + +type ___ns_class = int32 + +const _ns_c_invalid = 0 +const _ns_c_in = 1 +const _ns_c_2 = 2 +const _ns_c_chaos = 3 +const _ns_c_hs = 4 +const _ns_c_none = 254 +const _ns_c_any = 255 +const _ns_c_max = 65536 + +type Tns_key_types = int32 + +type ___ns_key_types = int32 + +const _ns_kt_rsa = 1 +const _ns_kt_dh = 2 +const _ns_kt_dsa = 3 +const _ns_kt_private = 254 + +type Tns_cert_types = int32 + +type ___ns_cert_types = int32 + +const _cert_t_pkix = 1 +const _cert_t_spki = 2 +const _cert_t_pgp = 3 +const _cert_t_url = 253 +const _cert_t_oid = 254 + +type THEADER = struct { + F__ccgo0 uint32 + F__ccgo4 uint32 + F__ccgo8 uint32 +} + +type Timaxdiv_t = struct { + Fquot Tintmax_t + Frem Tintmax_t +} + +type Tin_port_t = uint16 + +type Tin_addr_t = uint32 + +type Tin_addr = struct { + Fs_addr Tin_addr_t +} + +type Tsockaddr_in = struct { + Fsin_family Tsa_family_t + Fsin_port Tin_port_t + Fsin_addr Tin_addr + Fsin_zero [8]Tuint8_t +} + +type Tin6_addr = struct { + F__in6_union struct { + F__s6_addr16 [0][8]Tuint16_t + F__s6_addr32 [0][4]Tuint32_t + F__s6_addr [16]Tuint8_t + } +} + +type Tsockaddr_in6 = struct { + Fsin6_family Tsa_family_t + Fsin6_port Tin_port_t + Fsin6_flowinfo Tuint32_t + Fsin6_addr Tin6_addr + Fsin6_scope_id Tuint32_t +} + +type Tipv6_mreq = struct { + Fipv6mr_multiaddr Tin6_addr + Fipv6mr_interface uint32 +} + +type Tip_opts = struct { + Fip_dst Tin_addr + Fip_opts [40]int8 +} + +type Tres_state = uintptr + +type t__res_state = struct { + Fretrans int32 + Fretry int32 + Foptions uint64 + Fnscount int32 + Fnsaddr_list [3]Tsockaddr_in + Fid uint16 + Fdnsrch [7]uintptr + Fdefdname [256]int8 + Fpfcode uint64 + F__ccgo392 uint32 + Fsort_list [10]struct { + Faddr Tin_addr + Fmask Tuint32_t + } + Fqhook uintptr + Frhook uintptr + Fres_h_errno int32 + F_vcsock int32 + F_flags uint32 + F_u struct { + F_ext [0]struct { + Fnscount Tuint16_t + Fnsmap [3]Tuint16_t + Fnssocks [3]int32 + Fnscount6 Tuint16_t + Fnsinit Tuint16_t + Fnsaddrs [3]uintptr + F_initstamp [2]uint32 + } + Fpad [52]int8 + F__ccgo_pad2 [4]byte + } +} + +type Tres_sym = struct { + Fnumber int32 + Fname uintptr + Fhumanname uintptr +} + +/* RFC 1035 message compression */ + +// C documentation +// +// /* label start offsets of a compressed domain name s */ +func _getoffs(tls *TLS, offs uintptr, base uintptr, s uintptr) (r int32) { + var i, v2 int32 + _, _ = i, v2 + i = 0 + for { + for Int32FromUint8(**(**uint8)(__ccgo_up(s)))&int32(0xc0) != 0 { + if Int32FromUint8(**(**uint8)(__ccgo_up(s)))&int32(0xc0) != int32(0xc0) { + return 0 + } + s = base + uintptr(Int32FromUint8(**(**uint8)(__ccgo_up(s)))&Int32FromInt32(0x3f)<= int64(0x4000) { + return 0 + } + v2 = i + i = i + 1 + **(**int16)(__ccgo_up(offs + uintptr(v2)*2)) = int16(int64(s) - int64(base)) + s = s + uintptr(Int32FromUint8(**(**uint8)(__ccgo_up(s)))+int32(1)) + goto _1 + _1: + } + return r +} + +// C documentation +// +// /* label lengths of an ascii domain name s */ +func _getlens(tls *TLS, lens uintptr, s uintptr, l int32) (r int32) { + var i, j, k, v3 int32 + _, _, _, _ = i, j, k, v3 + i = 0 + j = 0 + k = 0 + for { + for { + if !(j < l && int32(**(**int8)(__ccgo_up(s + uintptr(j)))) != int32('.')) { + break + } + goto _2 + _2: + ; + j = j + 1 + } + if Uint32FromInt32(j-k)-uint32(1) > uint32(62) { + return 0 + } + v3 = i + i = i + 1 + **(**uint8)(__ccgo_up(lens + uintptr(v3))) = Uint8FromInt32(j - k) + if j == l { + return i + } + j = j + 1 + v3 = j + k = v3 + goto _1 + _1: + } + return r +} + +// C documentation +// +// /* longest suffix match of an ascii domain with a compressed domain name dn */ +func _match(tls *TLS, offset uintptr, base uintptr, dn uintptr, end uintptr, lens uintptr, nlen int32) (r int32) { + bp := tls.Alloc(256) + defer tls.Free(256) + var l, m, noff, o, v2 int32 + var _ /* offs at bp+0 */ [128]int16 + _, _, _, _, _ = l, m, noff, o, v2 + m = 0 + noff = _getoffs(tls, bp, base, dn) + if !(noff != 0) { + return 0 + } + for { + nlen = nlen - 1 + v2 = nlen + l = Int32FromUint8(**(**uint8)(__ccgo_up(lens + uintptr(v2)))) + noff = noff - 1 + v2 = noff + o = int32((**(**[128]int16)(__ccgo_up(bp)))[v2]) + end = end - uintptr(l) + if l != Int32FromUint8(**(**uint8)(__ccgo_up(base + uintptr(o)))) || Xmemcmp(tls, base+uintptr(o)+uintptr(1), end, Uint64FromInt32(l)) != 0 { + return m + } + **(**int32)(__ccgo_up(offset)) = o + m = m + l + if nlen != 0 { + m = m + 1 + } + if !(nlen != 0) || !(noff != 0) { + return m + } + end = end - 1 + goto _1 + _1: + } + return r +} + +func Xdn_comp(tls *TLS, src uintptr, dst uintptr, space int32, dnptrs uintptr, lastdnptr uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v src=%v dst=%v space=%v dnptrs=%v lastdnptr=%v, (%v:)", tls, src, dst, space, dnptrs, lastdnptr, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(144) + defer tls.Free(144) + var bestlen, bestoff, i, j, m, n, v3 int32 + var end, p, v8 uintptr + var l Tsize_t + var _ /* lens at bp+4 */ [127]uint8 + var _ /* offset at bp+0 */ int32 + _, _, _, _, _, _, _, _, _, _, _ = bestlen, bestoff, end, i, j, l, m, n, p, v3, v8 + m = 0 + bestlen = 0 + l = Xstrnlen(tls, src, uint64(255)) + if l != 0 && int32(**(**int8)(__ccgo_up(src + uintptr(l-uint64(1))))) == int32('.') { + l = l - 1 + } + if l > uint64(253) || space <= 0 { + return -int32(1) + } + if !(l != 0) { + **(**uint8)(__ccgo_up(dst)) = uint8(0) + return int32(1) + } + end = src + uintptr(l) + n = _getlens(tls, bp+4, src, Int32FromUint64(l)) + if !(n != 0) { + return -int32(1) + } + p = dnptrs + if p != 0 && **(**uintptr)(__ccgo_up(p)) != 0 { + p += 8 + for { + if !(**(**uintptr)(__ccgo_up(p)) != 0) { + break + } + m = _match(tls, bp, **(**uintptr)(__ccgo_up(dnptrs)), **(**uintptr)(__ccgo_up(p)), end, bp+4, n) + if m > bestlen { + bestlen = m + bestoff = **(**int32)(__ccgo_up(bp)) + if Uint64FromInt32(m) == l { + break + } + } + goto _1 + _1: + ; + p += 8 + } + } + /* encode unmatched part */ + if Uint64FromInt32(space) < l-Uint64FromInt32(bestlen)+uint64(2)+BoolUint64(Uint64FromInt32(bestlen-Int32FromInt32(1)) < l-Uint64FromInt32(1)) { + return -int32(1) + } + Xmemcpy(tls, dst+uintptr(1), src, l-Uint64FromInt32(bestlen)) + v3 = Int32FromInt32(0) + j = v3 + i = v3 + for { + if !(Uint64FromInt32(i) < l-Uint64FromInt32(bestlen)) { + break + } + **(**uint8)(__ccgo_up(dst + uintptr(i))) = (**(**[127]uint8)(__ccgo_up(bp + 4)))[j] + goto _2 + _2: + ; + v3 = j + j = j + 1 + i = i + (Int32FromUint8((**(**[127]uint8)(__ccgo_up(bp + 4)))[v3]) + int32(1)) + } + /* add tail */ + if bestlen != 0 { + v3 = i + i = i + 1 + **(**uint8)(__ccgo_up(dst + uintptr(v3))) = Uint8FromInt32(int32(0xc0) | bestoff>>int32(8)) + v3 = i + i = i + 1 + **(**uint8)(__ccgo_up(dst + uintptr(v3))) = Uint8FromInt32(bestoff) + } else { + v3 = i + i = i + 1 + **(**uint8)(__ccgo_up(dst + uintptr(v3))) = uint8(0) + } + /* save dst pointer */ + if i > int32(2) && lastdnptr != 0 && dnptrs != 0 && **(**uintptr)(__ccgo_up(dnptrs)) != 0 { + for **(**uintptr)(__ccgo_up(p)) != 0 { + p += 8 + } + if p+uintptr(1)*8 < lastdnptr { + v8 = p + p += 8 + **(**uintptr)(__ccgo_up(v8)) = dst + **(**uintptr)(__ccgo_up(p)) = uintptr(0) + } + } + return i +} + +func X__dn_expand(tls *TLS, base uintptr, end uintptr, src uintptr, dest uintptr, space int32) (r int32) { + if __ccgo_strace { + trc("tls=%v base=%v end=%v src=%v dest=%v space=%v, (%v:)", tls, base, end, src, dest, space, origin(2)) + defer func() { trc("-> %v", r) }() + } + var dbegin, dend, p, v3, v4 uintptr + var i, j, len1, v1 int32 + _, _, _, _, _, _, _, _, _ = dbegin, dend, i, j, len1, p, v1, v3, v4 + p = src + dbegin = dest + len1 = -int32(1) + if p == end || space <= 0 { + return -int32(1) + } + if space > int32(254) { + v1 = int32(254) + } else { + v1 = space + } + dend = dest + uintptr(v1) + /* detect reference loop using an iteration counter */ + i = 0 + for { + if !(int64(i) < int64(end)-int64(base)) { + break + } + /* loop invariants: p= int64(end)-int64(base) { + return -int32(1) + } + p = base + uintptr(j) + } else { + if **(**uint8)(__ccgo_up(p)) != 0 { + if dest != dbegin { + v3 = dest + dest = dest + 1 + **(**int8)(__ccgo_up(v3)) = int8('.') + } + v3 = p + p = p + 1 + j = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + if int64(j) >= int64(end)-int64(p) || int64(j) >= int64(dend)-int64(dest) { + return -int32(1) + } + for { + v1 = j + j = j - 1 + if !(v1 != 0) { + break + } + v3 = dest + dest = dest + 1 + v4 = p + p = p + 1 + **(**int8)(__ccgo_up(v3)) = Int8FromUint8(**(**uint8)(__ccgo_up(v4))) + } + } else { + **(**int8)(__ccgo_up(dest)) = 0 + if len1 < 0 { + len1 = int32(int64(p+uintptr(1)) - int64(src)) + } + return len1 + } + } + goto _2 + _2: + ; + i = i + int32(2) + } + return -int32(1) +} + +func Xdn_expand(tls *TLS, base uintptr, end uintptr, src uintptr, dest uintptr, space int32) (r int32) { + if __ccgo_strace { + trc("tls=%v base=%v end=%v src=%v dest=%v space=%v, (%v:)", tls, base, end, src, dest, space, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__dn_expand(tls, base, end, src, dest, space) +} + +func Xdn_skipname(tls *TLS, s uintptr, end uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v end=%v, (%v:)", tls, s, end, origin(2)) + defer func() { trc("-> %v", r) }() + } + var p uintptr + _ = p + p = s + for p < end { + if !(**(**uint8)(__ccgo_up(p)) != 0) { + return int32(int64(p) - int64(s) + int64(1)) + } else { + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) >= int32(192) { + if p+uintptr(1) < end { + return int32(int64(p) - int64(s) + int64(2)) + } else { + break + } + } else { + if int64(end)-int64(p) < int64(Int32FromUint8(**(**uint8)(__ccgo_up(p)))+int32(1)) { + break + } else { + p = p + uintptr(Int32FromUint8(**(**uint8)(__ccgo_up(p)))+int32(1)) + } + } + } + } + return -int32(1) +} + +const AI_ADDRCONFIG = 32 +const AI_ALL = 16 +const AI_CANONNAME = 2 +const AI_NUMERICHOST = 4 +const AI_NUMERICSERV = 1024 +const AI_PASSIVE = 1 +const AI_V4MAPPED = 8 +const EAI_AGAIN = -3 +const EAI_BADFLAGS = -1 +const EAI_FAIL = -4 +const EAI_FAMILY = -6 +const EAI_MEMORY = -10 +const EAI_NODATA = -5 +const EAI_NONAME = -2 +const EAI_OVERFLOW = -12 +const EAI_SERVICE = -8 +const EAI_SOCKTYPE = -7 +const EAI_SYSTEM = -11 +const MAXADDRS = 48 +const MAXSERVS = 2 +const NI_DGRAM = 16 +const NI_NAMEREQD = 8 +const NI_NOFQDN = 4 +const NI_NUMERICHOST = 1 +const NI_NUMERICSCOPE = 256 +const NI_NUMERICSERV = 2 + +type Taddrinfo = struct { + Fai_flags int32 + Fai_family int32 + Fai_socktype int32 + Fai_protocol int32 + Fai_addrlen Tsocklen_t + Fai_addr uintptr + Fai_canonname uintptr + Fai_next uintptr +} + +type Tnetent = struct { + Fn_name uintptr + Fn_aliases uintptr + Fn_addrtype int32 + Fn_net Tuint32_t +} + +type Thostent = struct { + Fh_name uintptr + Fh_aliases uintptr + Fh_addrtype int32 + Fh_length int32 + Fh_addr_list uintptr +} + +type Tservent = struct { + Fs_name uintptr + Fs_aliases uintptr + Fs_port int32 + Fs_proto uintptr +} + +type Tprotoent = struct { + Fp_name uintptr + Fp_aliases uintptr + Fp_proto int32 +} + +type Taibuf = struct { + Fai Taddrinfo + Fsa Tsa + Flock [1]int32 + Fslot int16 + Fref int16 +} + +type Taddress = struct { + Ffamily int32 + Fscopeid uint32 + Faddr [16]Tuint8_t + Fsortkey int32 +} + +type Tservice = struct { + Fport Tuint16_t + Fproto uint8 + Fsocktype uint8 +} + +type Tresolvconf = struct { + Fns [3]Taddress + Fnns uint32 + Fattempts uint32 + Fndots uint32 + Ftimeout uint32 +} + +type t__ccgo_fp__X__dns_parse_2 = func(*TLS, uintptr, int32, uintptr, int32, uintptr, int32) int32 + +func X__dns_parse(tls *TLS, r uintptr, rlen int32, __ccgo_fp_callback uintptr, ctx uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v r=%v rlen=%v __ccgo_fp_callback=%v ctx=%v, (%v:)", tls, r, rlen, __ccgo_fp_callback, ctx, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var ancount, len1, qdcount, v1 int32 + var p uintptr + _, _, _, _, _ = ancount, len1, p, qdcount, v1 + if rlen < int32(12) { + return -int32(1) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(r + 3)))&int32(15) != 0 { + return 0 + } + p = r + uintptr(12) + qdcount = Int32FromUint8(**(**uint8)(__ccgo_up(r + 4)))*int32(256) + Int32FromUint8(**(**uint8)(__ccgo_up(r + 5))) + ancount = Int32FromUint8(**(**uint8)(__ccgo_up(r + 6)))*int32(256) + Int32FromUint8(**(**uint8)(__ccgo_up(r + 7))) + for { + v1 = qdcount + qdcount = qdcount - 1 + if !(v1 != 0) { + break + } + for int64(p)-int64(r) < int64(rlen) && uint32(**(**uint8)(__ccgo_up(p)))-uint32(1) < uint32(127) { + p = p + 1 + } + if p > r+uintptr(rlen)-uintptr(6) { + return -int32(1) + } + p = p + uintptr(int32(5)+BoolInt32(!!(**(**uint8)(__ccgo_up(p)) != 0))) + } + for { + v1 = ancount + ancount = ancount - 1 + if !(v1 != 0) { + break + } + for int64(p)-int64(r) < int64(rlen) && uint32(**(**uint8)(__ccgo_up(p)))-uint32(1) < uint32(127) { + p = p + 1 + } + if p > r+uintptr(rlen)-uintptr(12) { + return -int32(1) + } + p = p + uintptr(int32(1)+BoolInt32(!!(**(**uint8)(__ccgo_up(p)) != 0))) + len1 = Int32FromUint8(**(**uint8)(__ccgo_up(p + 8)))*int32(256) + Int32FromUint8(**(**uint8)(__ccgo_up(p + 9))) + if int64(len1+int32(10)) > int64(r+uintptr(rlen))-int64(p) { + return -int32(1) + } + if (*(*func(*TLS, uintptr, int32, uintptr, int32, uintptr, int32) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_callback})))(tls, ctx, Int32FromUint8(**(**uint8)(__ccgo_up(p + 1))), p+uintptr(10), len1, r, rlen) < 0 { + return -int32(1) + } + p = p + uintptr(int32(10)+len1) + } + return 0 +} + +type Tsa = struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte +} + +func Xsethostent(tls *TLS, x int32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + } +} + +func Xgethostent(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(0) +} + +func Xgetnetent(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(0) +} + +func Xendhostent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } +} + +func Xendnetent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + Xendhostent(tls) +} + +func Xsetnetent(tls *TLS, x int32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + } + Xsethostent(tls, x) +} + +const ARPD_FLUSH = 3 +const ARPD_LOOKUP = 2 +const ARPD_UPDATE = 1 +const ARPHRD_6LOWPAN = 825 +const ARPHRD_ADAPT = 264 +const ARPHRD_APPLETLK = 8 +const ARPHRD_ARCNET = 7 +const ARPHRD_ASH = 781 +const ARPHRD_ATM = 19 +const ARPHRD_AX25 = 3 +const ARPHRD_BIF = 775 +const ARPHRD_CAIF = 822 +const ARPHRD_CAN = 280 +const ARPHRD_CHAOS = 5 +const ARPHRD_CISCO = 513 +const ARPHRD_CSLIP = 257 +const ARPHRD_CSLIP6 = 259 +const ARPHRD_DDCMP = 517 +const ARPHRD_DLCI = 15 +const ARPHRD_ECONET = 782 +const ARPHRD_EETHER = 2 +const ARPHRD_ETHER = 1 +const ARPHRD_EUI64 = 27 +const ARPHRD_FCAL = 785 +const ARPHRD_FCFABRIC = 787 +const ARPHRD_FCPL = 786 +const ARPHRD_FCPP = 784 +const ARPHRD_FDDI = 774 +const ARPHRD_FRAD = 770 +const ARPHRD_HDLC = 513 +const ARPHRD_HIPPI = 780 +const ARPHRD_HWX25 = 272 +const ARPHRD_IEEE1394 = 24 +const ARPHRD_IEEE802 = 6 +const ARPHRD_IEEE80211 = 801 +const ARPHRD_IEEE80211_PRISM = 802 +const ARPHRD_IEEE80211_RADIOTAP = 803 +const ARPHRD_IEEE802154 = 804 +const ARPHRD_IEEE802154_MONITOR = 805 +const ARPHRD_IEEE802_TR = 800 +const ARPHRD_INFINIBAND = 32 +const ARPHRD_IP6GRE = 823 +const ARPHRD_IPDDP = 777 +const ARPHRD_IPGRE = 778 +const ARPHRD_IRDA = 783 +const ARPHRD_LAPB = 516 +const ARPHRD_LOCALTLK = 773 +const ARPHRD_LOOPBACK = 772 +const ARPHRD_METRICOM = 23 +const ARPHRD_NETLINK = 824 +const ARPHRD_NETROM = 0 +const ARPHRD_NONE = 65534 +const ARPHRD_PHONET = 820 +const ARPHRD_PHONET_PIPE = 821 +const ARPHRD_PIMREG = 779 +const ARPHRD_PPP = 512 +const ARPHRD_PRONET = 4 +const ARPHRD_RAWHDLC = 518 +const ARPHRD_RAWIP = 519 +const ARPHRD_ROSE = 270 +const ARPHRD_RSRVD = 260 +const ARPHRD_SIT = 776 +const ARPHRD_SKIP = 771 +const ARPHRD_SLIP = 256 +const ARPHRD_SLIP6 = 258 +const ARPHRD_TUNNEL = 768 +const ARPHRD_TUNNEL6 = 769 +const ARPHRD_VOID = 65535 +const ARPHRD_VSOCKMON = 826 +const ARPHRD_X25 = 271 +const ARPOP_InREPLY = 9 +const ARPOP_InREQUEST = 8 +const ARPOP_NAK = 10 +const ARPOP_REPLY = 2 +const ARPOP_REQUEST = 1 +const ARPOP_RREPLY = 4 +const ARPOP_RREQUEST = 3 +const ATF_COM = 2 +const ATF_DONTPUB = 64 +const ATF_MAGIC = 128 +const ATF_NETMASK = 32 +const ATF_PERM = 4 +const ATF_PUBL = 8 +const ATF_USETRAILERS = 16 +const ETHERMIN = 46 +const ETHERMTU = 1500 +const ETHERTYPE_AARP = 33011 +const ETHERTYPE_ARP = 2054 +const ETHERTYPE_AT = 32923 +const ETHERTYPE_IP = 2048 +const ETHERTYPE_IPV6 = 34525 +const ETHERTYPE_IPX = 33079 +const ETHERTYPE_LOOPBACK = 36864 +const ETHERTYPE_NTRAILER = 16 +const ETHERTYPE_PUP = 512 +const ETHERTYPE_REVARP = 32821 +const ETHERTYPE_SPRITE = 1280 +const ETHERTYPE_TRAIL = 4096 +const ETHERTYPE_VLAN = 33024 +const ETHER_ADDR_LEN = 6 +const ETHER_CRC_LEN = 4 +const ETHER_HDR_LEN = 14 +const ETHER_MAX_LEN = 1518 +const ETHER_MIN_LEN = 64 +const ETHER_TYPE_LEN = 2 +const ETH_ALEN = 6 +const ETH_DATA_LEN = 1500 +const ETH_FCS_LEN = 4 +const ETH_FRAME_LEN = 1514 +const ETH_HLEN = 14 +const ETH_MAX_MTU = 65535 +const ETH_MIN_MTU = 68 +const ETH_P_1588 = 35063 +const ETH_P_8021AD = 34984 +const ETH_P_8021AH = 35047 +const ETH_P_8021Q = 33024 +const ETH_P_80221 = 35095 +const ETH_P_802_2 = 4 +const ETH_P_802_3 = 1 +const ETH_P_802_3_MIN = 1536 +const ETH_P_802_EX1 = 34997 +const ETH_P_AARP = 33011 +const ETH_P_AF_IUCV = 64507 +const ETH_P_ALL = 3 +const ETH_P_AOE = 34978 +const ETH_P_ARCNET = 26 +const ETH_P_ARP = 2054 +const ETH_P_ATALK = 32923 +const ETH_P_ATMFATE = 34948 +const ETH_P_ATMMPOA = 34892 +const ETH_P_AX25 = 2 +const ETH_P_BATMAN = 17157 +const ETH_P_BPQ = 2303 +const ETH_P_CAIF = 247 +const ETH_P_CAN = 12 +const ETH_P_CANFD = 13 +const ETH_P_CFM = 35074 +const ETH_P_CONTROL = 22 +const ETH_P_CUST = 24582 +const ETH_P_DDCMP = 6 +const ETH_P_DEC = 24576 +const ETH_P_DIAG = 24581 +const ETH_P_DNA_DL = 24577 +const ETH_P_DNA_RC = 24578 +const ETH_P_DNA_RT = 24579 +const ETH_P_DSA = 27 +const ETH_P_DSA_8021Q = 56027 +const ETH_P_ECONET = 24 +const ETH_P_EDSA = 56026 +const ETH_P_ERSPAN = 35006 +const ETH_P_ERSPAN2 = 8939 +const ETH_P_FCOE = 35078 +const ETH_P_FIP = 35092 +const ETH_P_HDLC = 25 +const ETH_P_HSR = 35119 +const ETH_P_IBOE = 35093 +const ETH_P_IEEE802154 = 246 +const ETH_P_IEEEPUP = 2560 +const ETH_P_IEEEPUPAT = 2561 +const ETH_P_IFE = 60734 +const ETH_P_IP = 2048 +const ETH_P_IPV6 = 34525 +const ETH_P_IPX = 33079 +const ETH_P_IRDA = 23 +const ETH_P_LAT = 24580 +const ETH_P_LINK_CTL = 34924 +const ETH_P_LLDP = 35020 +const ETH_P_LOCALTALK = 9 +const ETH_P_LOOP = 96 +const ETH_P_LOOPBACK = 36864 +const ETH_P_MACSEC = 35045 +const ETH_P_MAP = 249 +const ETH_P_MOBITEX = 21 +const ETH_P_MPLS_MC = 34888 +const ETH_P_MPLS_UC = 34887 +const ETH_P_MRP = 35043 +const ETH_P_MVRP = 35061 +const ETH_P_NCSI = 35064 +const ETH_P_NSH = 35151 +const ETH_P_PAE = 34958 +const ETH_P_PAUSE = 34824 +const ETH_P_PHONET = 245 +const ETH_P_PPPTALK = 16 +const ETH_P_PPP_DISC = 34915 +const ETH_P_PPP_MP = 8 +const ETH_P_PPP_SES = 34916 +const ETH_P_PREAUTH = 35015 +const ETH_P_PRP = 35067 +const ETH_P_PUP = 512 +const ETH_P_PUPAT = 513 +const ETH_P_QINQ1 = 37120 +const ETH_P_QINQ2 = 37376 +const ETH_P_QINQ3 = 37632 +const ETH_P_RARP = 32821 +const ETH_P_SCA = 24583 +const ETH_P_SLOW = 34825 +const ETH_P_SNAP = 5 +const ETH_P_TDLS = 35085 +const ETH_P_TEB = 25944 +const ETH_P_TIPC = 35018 +const ETH_P_TRAILER = 28 +const ETH_P_TR_802_2 = 17 +const ETH_P_TSN = 8944 +const ETH_P_WAN_PPP = 7 +const ETH_P_WCCP = 34878 +const ETH_P_X25 = 2053 +const ETH_P_XDSA = 248 +const ETH_TLEN = 2 +const ETH_ZLEN = 60 +const MAX_ADDR_LEN = 7 +const __UAPI_DEF_ETHHDR = 0 + +type Tethhdr = struct { + Fh_dest [6]Tuint8_t + Fh_source [6]Tuint8_t + Fh_proto Tuint16_t +} + +type Tether_addr = struct { + Fether_addr_octet [6]Tuint8_t +} + +type Tether_header = struct { + Fether_dhost [6]Tuint8_t + Fether_shost [6]Tuint8_t + Fether_type Tuint16_t +} + +type Tarphdr = struct { + Far_hrd Tuint16_t + Far_pro Tuint16_t + Far_hln Tuint8_t + Far_pln Tuint8_t + Far_op Tuint16_t +} + +type Tarpreq = struct { + Farp_pa Tsockaddr + Farp_ha Tsockaddr + Farp_flags int32 + Farp_netmask Tsockaddr + Farp_dev [16]int8 +} + +type Tarpreq_old = struct { + Farp_pa Tsockaddr + Farp_ha Tsockaddr + Farp_flags int32 + Farp_netmask Tsockaddr +} + +type Tarpd_request = struct { + Freq uint16 + Fip Tuint32_t + Fdev uint64 + Fstamp uint64 + Fupdated uint64 + Fha [7]uint8 +} + +type Tether_arp = struct { + Fea_hdr Tarphdr + Farp_sha [6]Tuint8_t + Farp_spa [4]Tuint8_t + Farp_tha [6]Tuint8_t + Farp_tpa [4]Tuint8_t +} + +func Xether_aton_r(tls *TLS, x uintptr, p_a uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v x=%v p_a=%v, (%v:)", tls, x, p_a, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ii int32 + var n uint64 + var _ /* a at bp+0 */ Tether_addr + var _ /* y at bp+8 */ uintptr + _, _ = ii, n + ii = 0 + for { + if !(ii < int32(6)) { + break + } + if ii != 0 { + if int32(**(**int8)(__ccgo_up(x))) != int32(':') { + return uintptr(0) + } else { + x = x + 1 + } + } + n = Xstrtoul(tls, x, bp+8, int32(16)) + x = **(**uintptr)(__ccgo_up(bp + 8)) + if n > uint64(0xFF) { + return uintptr(0) + } /* bad byte */ + **(**Tuint8_t)(__ccgo_up(bp + uintptr(ii))) = uint8(n) + goto _1 + _1: + ; + ii = ii + 1 + } + if int32(**(**int8)(__ccgo_up(x))) != 0 { + return uintptr(0) + } /* bad format */ + **(**Tether_addr)(__ccgo_up(p_a)) = **(**Tether_addr)(__ccgo_up(bp)) + return p_a +} + +func Xether_aton(tls *TLS, x uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xether_aton_r(tls, x, uintptr(unsafe.Pointer(&_a))) +} + +var _a Tether_addr + +func Xether_ntoa_r(tls *TLS, p_a uintptr, x uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v p_a=%v x=%v, (%v:)", tls, p_a, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ii int32 + var y, v2 uintptr + _, _, _ = ii, y, v2 + y = x + ii = 0 + for { + if !(ii < int32(6)) { + break + } + if ii == 0 { + v2 = __ccgo_ts + 988 + } else { + v2 = __ccgo_ts + 993 + } + x = x + uintptr(Xsprintf(tls, x, v2, VaList(bp+8, Int32FromUint8(**(**Tuint8_t)(__ccgo_up(p_a + uintptr(ii))))))) + goto _1 + _1: + ; + ii = ii + 1 + } + return y +} + +func Xether_ntoa(tls *TLS, p_a uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v p_a=%v, (%v:)", tls, p_a, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xether_ntoa_r(tls, p_a, uintptr(unsafe.Pointer(&_x))) +} + +var _x [18]int8 + +func Xether_line(tls *TLS, l uintptr, e uintptr, hostname uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v l=%v e=%v hostname=%v, (%v:)", tls, l, e, hostname, origin(2)) + defer func() { trc("-> %v", r) }() + } + return -int32(1) +} + +func Xether_ntohost(tls *TLS, hostname uintptr, e uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v hostname=%v e=%v, (%v:)", tls, hostname, e, origin(2)) + defer func() { trc("-> %v", r) }() + } + return -int32(1) +} + +func Xether_hostton(tls *TLS, hostname uintptr, e uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v hostname=%v e=%v, (%v:)", tls, hostname, e, origin(2)) + defer func() { trc("-> %v", r) }() + } + return -int32(1) +} + +func Xfreeaddrinfo(tls *TLS, p uintptr) { + if __ccgo_strace { + trc("tls=%v p=%v, (%v:)", tls, p, origin(2)) + } + var b, v2 uintptr + var cnt Tsize_t + _, _, _ = b, cnt, v2 + cnt = uint64(1) + for { + if !((*Taddrinfo)(unsafe.Pointer(p)).Fai_next != 0) { + break + } + goto _1 + _1: + ; + cnt = cnt + 1 + p = (*Taddrinfo)(unsafe.Pointer(p)).Fai_next + } + b = p - uintptr(uint64(UintptrFromInt32(0))) + b = b - uintptr((*Taibuf)(unsafe.Pointer(b)).Fslot)*88 + ___lock(tls, b+76) + v2 = b + 82 + *(*int16)(unsafe.Pointer(v2)) = int16(uint64(*(*int16)(unsafe.Pointer(v2))) - cnt) + if !(*(*int16)(unsafe.Pointer(v2)) != 0) { + Xfree(tls, b) + } else { + ___unlock(tls, b+76) + } +} + +var _msgs = [252]int8{'I', 'n', 'v', 'a', 'l', 'i', 'd', ' ', 'f', 'l', 'a', 'g', 's', 0, 'N', 'a', 'm', 'e', ' ', 'd', 'o', 'e', 's', ' ', 'n', 'o', 't', ' ', 'r', 'e', 's', 'o', 'l', 'v', 'e', 0, 'T', 'r', 'y', ' ', 'a', 'g', 'a', 'i', 'n', 0, 'N', 'o', 'n', '-', 'r', 'e', 'c', 'o', 'v', 'e', 'r', 'a', 'b', 'l', 'e', ' ', 'e', 'r', 'r', 'o', 'r', 0, 'N', 'a', 'm', 'e', ' ', 'h', 'a', 's', ' ', 'n', 'o', ' ', 'u', 's', 'a', 'b', 'l', 'e', ' ', 'a', 'd', 'd', 'r', 'e', 's', 's', 0, 'U', 'n', 'r', 'e', 'c', 'o', 'g', 'n', 'i', 'z', 'e', 'd', ' ', 'a', 'd', 'd', 'r', 'e', 's', 's', ' ', 'f', 'a', 'm', 'i', 'l', 'y', ' ', 'o', 'r', ' ', 'i', 'n', 'v', 'a', 'l', 'i', 'd', ' ', 'l', 'e', 'n', 'g', 't', 'h', 0, 'U', 'n', 'r', 'e', 'c', 'o', 'g', 'n', 'i', 'z', 'e', 'd', ' ', 's', 'o', 'c', 'k', 'e', 't', ' ', 't', 'y', 'p', 'e', 0, 'U', 'n', 'r', 'e', 'c', 'o', 'g', 'n', 'i', 'z', 'e', 'd', ' ', 's', 'e', 'r', 'v', 'i', 'c', 'e', 0, 'U', 'n', 'k', 'n', 'o', 'w', 'n', ' ', 'e', 'r', 'r', 'o', 'r', 0, 'O', 'u', 't', ' ', 'o', 'f', ' ', 'm', 'e', 'm', 'o', 'r', 'y', 0, 'S', 'y', 's', 't', 'e', 'm', ' ', 'e', 'r', 'r', 'o', 'r', 0, 'O', 'v', 'e', 'r', 'f', 'l', 'o', 'w', 0, 0, 'U', 'n', 'k', 'n', 'o', 'w', 'n', ' ', 'e', 'r', 'r', 'o', 'r'} + +func Xgai_strerror(tls *TLS, ecode int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v ecode=%v, (%v:)", tls, ecode, origin(2)) + defer func() { trc("-> %v", r) }() + } + var s uintptr + _ = s + s = uintptr(unsafe.Pointer(&_msgs)) + ecode = ecode + 1 + for { + if !(ecode != 0 && **(**int8)(__ccgo_up(s)) != 0) { + break + } + for { + if !(**(**int8)(__ccgo_up(s)) != 0) { + break + } + goto _2 + _2: + ; + s = s + 1 + } + goto _1 + _1: + ; + ecode = ecode + 1 + s = s + 1 + } + if !(**(**int8)(__ccgo_up(s)) != 0) { + s = s + 1 + } + return X__lctrans_cur(tls, s) +} + +func Xgetaddrinfo(tls *TLS, host uintptr, serv uintptr, hint uintptr, res uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v host=%v serv=%v hint=%v res=%v, (%v:)", tls, host, serv, hint, res, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(1616) + defer tls.Free(1616) + var canon_len, family, flags, i, j, k, mask, naddrs, nais, no_family, nservs, proto, r, s, saved_errno, socktype, v3 int32 + var out, outcanon uintptr + var ta [2]uintptr + var tf [2]int32 + var tl [2]Tsocklen_t + var v5 uint64 + var _ /* addrs at bp+8 */ [48]Taddress + var _ /* canon at bp+1352 */ [256]int8 + var _ /* cs at bp+1608 */ int32 + var _ /* ports at bp+0 */ [2]Tservice + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = canon_len, family, flags, i, j, k, mask, naddrs, nais, no_family, nservs, out, outcanon, proto, r, s, saved_errno, socktype, ta, tf, tl, v3, v5 + family = PF_UNSPEC + flags = 0 + proto = 0 + socktype = 0 + no_family = 0 + if !(host != 0) && !(serv != 0) { + return -int32(2) + } + if hint != 0 { + family = (*Taddrinfo)(unsafe.Pointer(hint)).Fai_family + flags = (*Taddrinfo)(unsafe.Pointer(hint)).Fai_flags + proto = (*Taddrinfo)(unsafe.Pointer(hint)).Fai_protocol + socktype = (*Taddrinfo)(unsafe.Pointer(hint)).Fai_socktype + mask = Int32FromInt32(AI_PASSIVE) | Int32FromInt32(AI_CANONNAME) | Int32FromInt32(AI_NUMERICHOST) | Int32FromInt32(AI_V4MAPPED) | Int32FromInt32(AI_ALL) | Int32FromInt32(AI_ADDRCONFIG) | Int32FromInt32(AI_NUMERICSERV) + if flags&mask != flags { + return -int32(1) + } + switch family { + case int32(PF_INET): + fallthrough + case int32(PF_INET6): + fallthrough + case PF_UNSPEC: + default: + return -int32(6) + } + } + if flags&int32(AI_ADDRCONFIG) != 0 { + tf = [2]int32{ + 0: int32(PF_INET), + 1: int32(PF_INET6), + } + ta = [2]uintptr{ + 0: uintptr(unsafe.Pointer(&_lo4)), + 1: uintptr(unsafe.Pointer(&_lo6)), + } + tl = [2]Tsocklen_t{ + 0: uint32(16), + 1: uint32(28), + } + i = 0 + for { + if !(i < int32(2)) { + break + } + if family == tf[int32(1)-i] { + goto _1 + } + s = Xsocket(tls, tf[i], Int32FromInt32(SOCK_CLOEXEC)|Int32FromInt32(SOCK_DGRAM), int32(IPPROTO_UDP)) + if s >= 0 { + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp+1608) + r = Xconnect(tls, s, ta[i], tl[i]) + saved_errno = **(**int32)(__ccgo_up(X__errno_location(tls))) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 1608)), uintptr(0)) + Xclose(tls, s) + if !(r != 0) { + goto _1 + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = saved_errno + } + switch **(**int32)(__ccgo_up(X__errno_location(tls))) { + case int32(EADDRNOTAVAIL): + fallthrough + case int32(EAFNOSUPPORT): + fallthrough + case int32(EHOSTUNREACH): + fallthrough + case int32(ENETDOWN): + fallthrough + case int32(ENETUNREACH): + default: + return -int32(11) + } + if family == tf[i] { + no_family = int32(1) + } + family = tf[int32(1)-i] + goto _1 + _1: + ; + i = i + 1 + } + } + nservs = X__lookup_serv(tls, bp, serv, proto, socktype, flags) + if nservs < 0 { + return nservs + } + naddrs = X__lookup_name(tls, bp+8, bp+1352, host, family, flags) + if naddrs < 0 { + return naddrs + } + if no_family != 0 { + return -int32(5) + } + nais = nservs * naddrs + canon_len = Int32FromUint64(_strlen(tls, bp+1352)) + out = Xcalloc(tls, uint64(1), Uint64FromInt32(nais)*uint64(88)+Uint64FromInt32(canon_len)+uint64(1)) + if !(out != 0) { + return -int32(10) + } + if canon_len != 0 { + outcanon = out + uintptr(nais)*88 + Xmemcpy(tls, outcanon, bp+1352, Uint64FromInt32(canon_len+int32(1))) + } else { + outcanon = uintptr(0) + } + v3 = Int32FromInt32(0) + i = v3 + k = v3 + for { + if !(i < naddrs) { + break + } + j = 0 + for { + if !(j < nservs) { + break + } + (**(**Taibuf)(__ccgo_up(out + uintptr(k)*88))).Fslot = int16(k) + if (**(**[48]Taddress)(__ccgo_up(bp + 8)))[i].Ffamily == int32(PF_INET) { + v5 = uint64(16) + } else { + v5 = uint64(28) + } + (**(**Taibuf)(__ccgo_up(out + uintptr(k)*88))).Fai = Taddrinfo{ + Fai_family: (**(**[48]Taddress)(__ccgo_up(bp + 8)))[i].Ffamily, + Fai_socktype: Int32FromUint8((**(**[2]Tservice)(__ccgo_up(bp)))[j].Fsocktype), + Fai_protocol: Int32FromUint8((**(**[2]Tservice)(__ccgo_up(bp)))[j].Fproto), + Fai_addrlen: uint32(v5), + Fai_addr: out + uintptr(k)*88 + 48, + Fai_canonname: outcanon, + } + if k != 0 { + (**(**Taibuf)(__ccgo_up(out + uintptr(k-int32(1))*88))).Fai.Fai_next = out + uintptr(k)*88 + } + switch (**(**[48]Taddress)(__ccgo_up(bp + 8)))[i].Ffamily { + case int32(PF_INET): + *(*Tsa_family_t)(unsafe.Pointer(out + uintptr(k)*88 + 48)) = uint16(PF_INET) + *(*Tin_port_t)(unsafe.Pointer(out + uintptr(k)*88 + 48 + 2)) = Xhtons(tls, (**(**[2]Tservice)(__ccgo_up(bp)))[j].Fport) + Xmemcpy(tls, out+uintptr(k)*88+48+4, bp+8+uintptr(i)*28+8, uint64(4)) + case int32(PF_INET6): + *(*Tsa_family_t)(unsafe.Pointer(out + uintptr(k)*88 + 48)) = uint16(PF_INET6) + *(*Tin_port_t)(unsafe.Pointer(out + uintptr(k)*88 + 48 + 2)) = Xhtons(tls, (**(**[2]Tservice)(__ccgo_up(bp)))[j].Fport) + *(*Tuint32_t)(unsafe.Pointer(out + uintptr(k)*88 + 48 + 24)) = (**(**[48]Taddress)(__ccgo_up(bp + 8)))[i].Fscopeid + Xmemcpy(tls, out+uintptr(k)*88+48+8, bp+8+uintptr(i)*28+8, uint64(16)) + break + } + goto _4 + _4: + ; + j = j + 1 + k = k + 1 + } + goto _2 + _2: + ; + i = i + 1 + } + (**(**Taibuf)(__ccgo_up(out))).Fref = int16(nais) + **(**uintptr)(__ccgo_up(res)) = out + return 0 +} + +/* Define the "an address is configured" condition for address + * families via ability to create a socket for the family plus + * routability of the loopback address for the family. */ +var _lo4 = Tsockaddr_in{ + Fsin_family: uint16(PF_INET), + Fsin_port: uint16(65535), + Fsin_addr: Tin_addr{ + Fs_addr: uint32(0x0100007f), + }, +} + +var _lo6 = Tsockaddr_in6{ + Fsin6_family: uint16(PF_INET6), + Fsin6_port: uint16(65535), + Fsin6_addr: Tin6_addr{ + F__in6_union: *(*struct { + F__s6_addr16 [0][8]Tuint16_t + F__s6_addr32 [0][4]Tuint32_t + F__s6_addr [16]Tuint8_t + })(unsafe.Pointer(&[16]Tuint8_t{ + 15: uint8(1), + })), + }, +} + +const EAI_ADDRFAMILY = -9 +const EAI_ALLDONE = -103 +const EAI_CANCELED = -101 +const EAI_IDN_ENCODE = -105 +const EAI_INPROGRESS = -100 +const EAI_INTR = -104 +const EAI_NOTCANCELED = -102 +const HOST_NOT_FOUND = 1 +const MCAST_BLOCK_SOURCE = 43 +const MCAST_EXCLUDE = 0 +const MCAST_INCLUDE = 1 +const MCAST_JOIN_GROUP = 42 +const MCAST_JOIN_SOURCE_GROUP = 46 +const MCAST_LEAVE_GROUP = 45 +const MCAST_LEAVE_SOURCE_GROUP = 47 +const MCAST_MSFILTER = 48 +const MCAST_UNBLOCK_SOURCE = 44 +const NI_MAXHOST = 255 +const NI_MAXSERV = 32 +const NO_ADDRESS = 4 +const NO_DATA = 4 +const NO_RECOVERY = 3 +const TRY_AGAIN = 2 +const h_errno = 0 + +type Tip_mreq = struct { + Fimr_multiaddr Tin_addr + Fimr_interface Tin_addr +} + +type Tip_mreqn = struct { + Fimr_multiaddr Tin_addr + Fimr_address Tin_addr + Fimr_ifindex int32 +} + +type Tip_mreq_source = struct { + Fimr_multiaddr Tin_addr + Fimr_interface Tin_addr + Fimr_sourceaddr Tin_addr +} + +type Tip_msfilter = struct { + Fimsf_multiaddr Tin_addr + Fimsf_interface Tin_addr + Fimsf_fmode Tuint32_t + Fimsf_numsrc Tuint32_t + Fimsf_slist [1]Tin_addr +} + +type Tgroup_req = struct { + Fgr_interface Tuint32_t + Fgr_group Tsockaddr_storage +} + +type Tgroup_source_req = struct { + Fgsr_interface Tuint32_t + Fgsr_group Tsockaddr_storage + Fgsr_source Tsockaddr_storage +} + +type Tgroup_filter = struct { + Fgf_interface Tuint32_t + Fgf_group Tsockaddr_storage + Fgf_fmode Tuint32_t + Fgf_numsrc Tuint32_t + Fgf_slist [1]Tsockaddr_storage +} + +type Tin_pktinfo = struct { + Fipi_ifindex int32 + Fipi_spec_dst Tin_addr + Fipi_addr Tin_addr +} + +type Tin6_pktinfo = struct { + Fipi6_addr Tin6_addr + Fipi6_ifindex uint32 +} + +type Tip6_mtuinfo = struct { + Fip6m_addr Tsockaddr_in6 + Fip6m_mtu Tuint32_t +} + +func Xgethostbyaddr(tls *TLS, a uintptr, l Tsocklen_t, af int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v a=%v l=%v af=%v, (%v:)", tls, a, l, af, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var err int32 + var size Tsize_t + var _ /* res at bp+0 */ uintptr + _, _ = err, size + size = uint64(63) + for cond := true; cond; cond = err == int32(ERANGE) { + Xfree(tls, _h) + size = size + (size + uint64(1)) + _h = Xmalloc(tls, size) + if !(_h != 0) { + **(**int32)(__ccgo_up(X__h_errno_location(tls))) = int32(NO_RECOVERY) + return uintptr(0) + } + err = Xgethostbyaddr_r(tls, a, l, af, _h, _h+UintptrFromInt32(1)*32, size-uint64(32), bp, X__h_errno_location(tls)) + } + return **(**uintptr)(__ccgo_up(bp)) +} + +var _h uintptr + +func Xgethostbyaddr_r(tls *TLS, a uintptr, l Tsocklen_t, af int32, h uintptr, buf uintptr, buflen Tsize_t, res uintptr, err uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v a=%v l=%v af=%v h=%v buf=%v buflen=%v res=%v err=%v, (%v:)", tls, a, l, af, h, buf, buflen, res, err, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var i int32 + var sl Tsocklen_t + var v1 uint64 + var _ /* sa at bp+0 */ struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + } + _, _, _ = i, sl, v1 + *(*struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + })(unsafe.Pointer(bp)) = struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + }{} + *(*uint16)(unsafe.Pointer(bp)) = Uint16FromInt32(af) + if af == int32(PF_INET6) { + v1 = uint64(28) + } else { + v1 = uint64(16) + } + sl = uint32(v1) + **(**uintptr)(__ccgo_up(res)) = uintptr(0) + /* Load address argument into sockaddr structure */ + if af == int32(PF_INET6) && l == uint32(16) { + Xmemcpy(tls, bp+8, a, uint64(16)) + } else { + if af == int32(PF_INET) && l == uint32(4) { + Xmemcpy(tls, bp+4, a, uint64(4)) + } else { + **(**int32)(__ccgo_up(err)) = int32(NO_RECOVERY) + return int32(EINVAL) + } + } + /* Align buffer and check for space for pointers and ip address */ + i = Int32FromUint64(uint64(buf) & (Uint64FromInt64(8) - Uint64FromInt32(1))) + if !(i != 0) { + i = int32(8) + } + if buflen <= Uint64FromInt32(5)*Uint64FromInt64(8)-Uint64FromInt32(i)+uint64(l) { + return int32(ERANGE) + } + buf = buf + uintptr(uint64(8)-Uint64FromInt32(i)) + buflen = buflen - (Uint64FromInt32(5)*Uint64FromInt64(8) - Uint64FromInt32(i) + uint64(l)) + (*Thostent)(unsafe.Pointer(h)).Fh_addr_list = buf + buf = buf + uintptr(Uint64FromInt32(2)*Uint64FromInt64(8)) + (*Thostent)(unsafe.Pointer(h)).Fh_aliases = buf + buf = buf + uintptr(Uint64FromInt32(2)*Uint64FromInt64(8)) + **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_addr_list)) = buf + Xmemcpy(tls, **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_addr_list)), a, uint64(l)) + buf = buf + uintptr(l) + **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_addr_list + 1*8)) = uintptr(0) + **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_aliases)) = buf + **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_aliases + 1*8)) = uintptr(0) + switch Xgetnameinfo(tls, bp, sl, buf, uint32(buflen), uintptr(0), uint32(0), 0) { + case -int32(3): + **(**int32)(__ccgo_up(err)) = int32(TRY_AGAIN) + return int32(EAGAIN) + case -int32(12): + return int32(ERANGE) + default: + fallthrough + case -int32(4): + **(**int32)(__ccgo_up(err)) = int32(NO_RECOVERY) + return int32(EBADMSG) + case -int32(11): + **(**int32)(__ccgo_up(err)) = int32(NO_RECOVERY) + return **(**int32)(__ccgo_up(X__errno_location(tls))) + case 0: + break + } + (*Thostent)(unsafe.Pointer(h)).Fh_addrtype = af + (*Thostent)(unsafe.Pointer(h)).Fh_length = Int32FromUint32(l) + (*Thostent)(unsafe.Pointer(h)).Fh_name = **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_aliases)) + **(**uintptr)(__ccgo_up(res)) = h + return 0 +} + +func Xgethostbyname(tls *TLS, name uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgethostbyname2(tls, name, int32(PF_INET)) +} + +func Xgethostbyname2(tls *TLS, name uintptr, af int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v af=%v, (%v:)", tls, name, af, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var err int32 + var size Tsize_t + var _ /* res at bp+0 */ uintptr + _, _ = err, size + size = uint64(63) + for cond := true; cond; cond = err == int32(ERANGE) { + Xfree(tls, _h1) + size = size + (size + uint64(1)) + _h1 = Xmalloc(tls, size) + if !(_h1 != 0) { + **(**int32)(__ccgo_up(X__h_errno_location(tls))) = int32(NO_RECOVERY) + return uintptr(0) + } + err = Xgethostbyname2_r(tls, name, af, _h1, _h1+UintptrFromInt32(1)*32, size-uint64(32), bp, X__h_errno_location(tls)) + } + return **(**uintptr)(__ccgo_up(bp)) +} + +var _h1 uintptr + +func Xgethostbyname2_r(tls *TLS, name uintptr, af int32, h uintptr, buf uintptr, buflen Tsize_t, res uintptr, err uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v af=%v h=%v buf=%v buflen=%v res=%v err=%v, (%v:)", tls, name, af, h, buf, buflen, res, err, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(1600) + defer tls.Free(1600) + var align, need Tsize_t + var cnt, i, v1 int32 + var v3 uintptr + var _ /* addrs at bp+0 */ [48]Taddress + var _ /* canon at bp+1344 */ [256]int8 + _, _, _, _, _, _ = align, cnt, i, need, v1, v3 + **(**uintptr)(__ccgo_up(res)) = uintptr(0) + cnt = X__lookup_name(tls, bp, bp+1344, name, af, int32(AI_CANONNAME)) + if cnt < 0 { + switch cnt { + case -int32(2): + **(**int32)(__ccgo_up(err)) = int32(HOST_NOT_FOUND) + return 0 + case -int32(5): + **(**int32)(__ccgo_up(err)) = int32(NO_DATA) + return 0 + case -int32(3): + **(**int32)(__ccgo_up(err)) = int32(TRY_AGAIN) + return int32(EAGAIN) + default: + fallthrough + case -int32(4): + **(**int32)(__ccgo_up(err)) = int32(NO_RECOVERY) + return int32(EBADMSG) + case -int32(11): + **(**int32)(__ccgo_up(err)) = int32(NO_RECOVERY) + return **(**int32)(__ccgo_up(X__errno_location(tls))) + } + } + (*Thostent)(unsafe.Pointer(h)).Fh_addrtype = af + if af == int32(PF_INET6) { + v1 = int32(16) + } else { + v1 = int32(4) + } + (*Thostent)(unsafe.Pointer(h)).Fh_length = v1 + /* Align buffer */ + align = -uint64(buf) & (Uint64FromInt64(8) - Uint64FromInt32(1)) + need = Uint64FromInt32(4) * Uint64FromInt64(8) + need = need + Uint64FromInt32(cnt+Int32FromInt32(1))*(uint64(8)+Uint64FromInt32((*Thostent)(unsafe.Pointer(h)).Fh_length)) + need = need + (_strlen(tls, name) + uint64(1)) + need = need + (_strlen(tls, bp+1344) + uint64(1)) + need = need + align + if need > buflen { + return int32(ERANGE) + } + buf = buf + uintptr(align) + (*Thostent)(unsafe.Pointer(h)).Fh_aliases = buf + buf = buf + uintptr(Uint64FromInt32(3)*Uint64FromInt64(8)) + (*Thostent)(unsafe.Pointer(h)).Fh_addr_list = buf + buf = buf + uintptr(Uint64FromInt32(cnt+Int32FromInt32(1))*uint64(8)) + i = 0 + for { + if !(i < cnt) { + break + } + **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_addr_list + uintptr(i)*8)) = buf + buf = buf + uintptr((*Thostent)(unsafe.Pointer(h)).Fh_length) + Xmemcpy(tls, **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_addr_list + uintptr(i)*8)), bp+uintptr(i)*28+8, Uint64FromInt32((*Thostent)(unsafe.Pointer(h)).Fh_length)) + goto _2 + _2: + ; + i = i + 1 + } + **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_addr_list + uintptr(i)*8)) = uintptr(0) + v3 = buf + **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_aliases)) = v3 + (*Thostent)(unsafe.Pointer(h)).Fh_name = v3 + Xstrcpy(tls, (*Thostent)(unsafe.Pointer(h)).Fh_name, bp+1344) + buf = buf + uintptr(_strlen(tls, (*Thostent)(unsafe.Pointer(h)).Fh_name)+uint64(1)) + if Xstrcmp(tls, (*Thostent)(unsafe.Pointer(h)).Fh_name, name) != 0 { + **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_aliases + 1*8)) = buf + Xstrcpy(tls, **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_aliases + 1*8)), name) + buf = buf + uintptr(_strlen(tls, **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_aliases + 1*8)))+uint64(1)) + } else { + **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_aliases + 1*8)) = uintptr(0) + } + **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_aliases + 2*8)) = uintptr(0) + **(**uintptr)(__ccgo_up(res)) = h + return 0 +} + +func Xgethostbyname_r(tls *TLS, name uintptr, h uintptr, buf uintptr, buflen Tsize_t, res uintptr, err uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v h=%v buf=%v buflen=%v res=%v err=%v, (%v:)", tls, name, h, buf, buflen, res, err, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgethostbyname2_r(tls, name, int32(PF_INET), h, buf, buflen, res, err) +} + +const IFADDRS_HASH_SIZE = 64 +const IFA_ADDRESS = 1 +const IFA_BROADCAST = 4 +const IFA_LABEL = 3 +const IFA_LOCAL = 2 +const IFF_ALLMULTI = 512 +const IFF_AUTOMEDIA = 16384 +const IFF_BROADCAST = 2 +const IFF_DEBUG = 4 +const IFF_DORMANT = 131072 +const IFF_DYNAMIC = 32768 +const IFF_ECHO = 262144 +const IFF_LOOPBACK = 8 +const IFF_LOWER_UP = 65536 +const IFF_MASTER = 1024 +const IFF_MULTICAST = 4096 +const IFF_NOARP = 128 +const IFF_NOTRAILERS = 32 +const IFF_POINTOPOINT = 16 +const IFF_PORTSEL = 8192 +const IFF_PROMISC = 256 +const IFF_RUNNING = 64 +const IFF_SLAVE = 2048 +const IFF_UP = 1 +const IFF_VOLATILE = 461914 +const IFHWADDRLEN = 6 +const IFLA_ADDRESS = 1 +const IFLA_BROADCAST = 2 +const IFLA_IFNAME = 3 +const IFLA_STATS = 7 +const IFNAMSIZ = 16 +const IF_NAMESIZE = 16 +const NETLINK_ROUTE = 0 +const NLMSG_DONE = 3 +const NLMSG_ERROR = 2 +const NLMSG_NOOP = 1 +const NLMSG_OVERRUN = 4 +const NLM_F_ACK = 4 +const NLM_F_ATOMIC = 1024 +const NLM_F_DUMP = 768 +const NLM_F_MATCH = 512 +const NLM_F_MULTI = 2 +const NLM_F_REQUEST = 1 +const NLM_F_ROOT = 256 +const RTM_GETADDR = 22 +const RTM_GETLINK = 18 +const RTM_NEWADDR = 20 +const RTM_NEWLINK = 16 +const __UAPI_DEF_IF_IFCONF = 0 +const __UAPI_DEF_IF_IFMAP = 0 +const __UAPI_DEF_IF_IFNAMSIZ = 0 +const __UAPI_DEF_IF_IFREQ = 0 +const __UAPI_DEF_IF_NET_DEVICE_FLAGS = 0 +const __UAPI_DEF_IF_NET_DEVICE_FLAGS_LOWER_UP_DORMANT_ECHO = 0 + +type Tifaddrs = struct { + Fifa_next uintptr + Fifa_name uintptr + Fifa_flags uint32 + Fifa_addr uintptr + Fifa_netmask uintptr + Fifa_ifu struct { + Fifu_dstaddr [0]uintptr + Fifu_broadaddr uintptr + } + Fifa_data uintptr +} + +type Tif_nameindex = struct { + Fif_index uint32 + Fif_name uintptr +} + +type Tifaddr = struct { + Fifa_addr Tsockaddr + Fifa_ifu struct { + Fifu_dstaddr [0]Tsockaddr + Fifu_broadaddr Tsockaddr + } + Fifa_ifp uintptr + Fifa_next uintptr +} + +type Tifmap = struct { + Fmem_start uint64 + Fmem_end uint64 + Fbase_addr uint16 + Firq uint8 + Fdma uint8 + Fport uint8 +} + +type Tifreq = struct { + Fifr_ifrn struct { + Fifrn_name [16]int8 + } + Fifr_ifru struct { + Fifru_dstaddr [0]Tsockaddr + Fifru_broadaddr [0]Tsockaddr + Fifru_netmask [0]Tsockaddr + Fifru_hwaddr [0]Tsockaddr + Fifru_flags [0]int16 + Fifru_ivalue [0]int32 + Fifru_mtu [0]int32 + Fifru_map [0]Tifmap + Fifru_slave [0][16]int8 + Fifru_newname [0][16]int8 + Fifru_data [0]uintptr + Fifru_addr Tsockaddr + F__ccgo_pad12 [8]byte + } +} + +type Tifconf = struct { + Fifc_len int32 + Fifc_ifcu struct { + Fifcu_req [0]uintptr + Fifcu_buf uintptr + } +} + +type Tnlmsghdr = struct { + Fnlmsg_len Tuint32_t + Fnlmsg_type Tuint16_t + Fnlmsg_flags Tuint16_t + Fnlmsg_seq Tuint32_t + Fnlmsg_pid Tuint32_t +} + +type Trtattr = struct { + Frta_len uint16 + Frta_type uint16 +} + +type Trtgenmsg = struct { + Frtgen_family uint8 +} + +type Tifinfomsg = struct { + Fifi_family uint8 + F__ifi_pad uint8 + Fifi_type uint16 + Fifi_index int32 + Fifi_flags uint32 + Fifi_change uint32 +} + +type Tifaddrmsg = struct { + Fifa_family Tuint8_t + Fifa_prefixlen Tuint8_t + Fifa_flags Tuint8_t + Fifa_scope Tuint8_t + Fifa_index Tuint32_t +} + +/* getifaddrs() reports hardware addresses with PF_PACKET that implies + * struct sockaddr_ll. But e.g. Infiniband socket address length is + * longer than sockaddr_ll.ssl_addr[8] can hold. Use this hack struct + * to extend ssl_addr - callers should be able to still use it. */ +type Tsockaddr_ll_hack = struct { + Fsll_family uint16 + Fsll_protocol uint16 + Fsll_ifindex int32 + Fsll_hatype uint16 + Fsll_pkttype uint8 + Fsll_halen uint8 + Fsll_addr [24]uint8 +} + +type Tsockany = struct { + Fll [0]Tsockaddr_ll_hack + Fv4 [0]Tsockaddr_in + Fv6 [0]Tsockaddr_in6 + Fsa Tsockaddr + F__ccgo_pad4 [20]byte +} + +type Tifaddrs_storage = struct { + Fifa Tifaddrs + Fhash_next uintptr + Faddr Tsockany + Fnetmask Tsockany + Fifu Tsockany + Findex uint32 + Fname [17]int8 +} + +type Tifaddrs_ctx = struct { + Ffirst uintptr + Flast uintptr + Fhash [64]uintptr +} + +func Xfreeifaddrs(tls *TLS, ifp uintptr) { + if __ccgo_strace { + trc("tls=%v ifp=%v, (%v:)", tls, ifp, origin(2)) + } + var n uintptr + _ = n + for ifp != 0 { + n = (*Tifaddrs)(unsafe.Pointer(ifp)).Fifa_next + Xfree(tls, ifp) + ifp = n + } +} + +func _copy_addr(tls *TLS, r uintptr, af int32, sa uintptr, addr uintptr, addrlen Tsize_t, ifindex int32) { + var dst uintptr + var len1 int32 + _, _ = dst, len1 + switch af { + case int32(PF_INET): + dst = sa + 4 + len1 = int32(4) + case int32(PF_INET6): + dst = sa + 8 + len1 = int32(16) + if Int32FromUint8(**(**Tuint8_t)(__ccgo_up(addr))) == int32(0xfe) && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(addr + 1)))&int32(0xc0) == int32(0x80) || Int32FromUint8(**(**Tuint8_t)(__ccgo_up(addr))) == int32(0xff) && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(addr + 1)))&int32(0xf) == int32(0x2) { + (*(*Tsockaddr_in6)(unsafe.Pointer(sa))).Fsin6_scope_id = Uint32FromInt32(ifindex) + } + default: + return + } + if addrlen < Uint64FromInt32(len1) { + return + } + (*Tsockany)(unsafe.Pointer(sa)).Fsa.Fsa_family = Uint16FromInt32(af) + Xmemcpy(tls, dst, addr, Uint64FromInt32(len1)) + **(**uintptr)(__ccgo_up(r)) = sa +} + +func _gen_netmask(tls *TLS, r uintptr, af int32, sa uintptr, prefixlen int32) { + bp := tls.Alloc(16) + defer tls.Free(16) + var i, v1 int32 + var _ /* addr at bp+0 */ [16]Tuint8_t + _, _ = i, v1 + **(**[16]Tuint8_t)(__ccgo_up(bp)) = [16]Tuint8_t{} + if Uint64FromInt32(prefixlen) > Uint64FromInt32(8)*Uint64FromInt64(16) { + prefixlen = Int32FromUint64(Uint64FromInt32(8) * Uint64FromInt64(16)) + } + i = prefixlen / int32(8) + Xmemset(tls, bp, int32(0xff), Uint64FromInt32(i)) + if Uint64FromInt32(i) < uint64(16) { + v1 = i + i = i + 1 + (**(**[16]Tuint8_t)(__ccgo_up(bp)))[v1] = Uint8FromInt32(int32(0xff) << (int32(8) - prefixlen%int32(8))) + } + _copy_addr(tls, r, af, sa, bp, uint64(16), 0) +} + +func _copy_lladdr(tls *TLS, r uintptr, sa uintptr, addr uintptr, addrlen Tsize_t, ifindex int32, hatype uint16) { + if addrlen > uint64(24) { + return + } + (*(*Tsockaddr_ll_hack)(unsafe.Pointer(sa))).Fsll_family = uint16(PF_PACKET) + (*(*Tsockaddr_ll_hack)(unsafe.Pointer(sa))).Fsll_ifindex = ifindex + (*(*Tsockaddr_ll_hack)(unsafe.Pointer(sa))).Fsll_hatype = hatype + (*(*Tsockaddr_ll_hack)(unsafe.Pointer(sa))).Fsll_halen = uint8(addrlen) + Xmemcpy(tls, sa+12, addr, addrlen) + **(**uintptr)(__ccgo_up(r)) = sa +} + +func _netlink_msg_to_ifaddr(tls *TLS, pctx uintptr, h uintptr) (r int32) { + var bucket uint32 + var ctx, ifa, ifi, ifs, ifs0, rta uintptr + var stats_len int32 + _, _, _, _, _, _, _, _ = bucket, ctx, ifa, ifi, ifs, ifs0, rta, stats_len + ctx = pctx + ifi = h + UintptrFromInt64(16) + ifa = h + UintptrFromInt64(16) + stats_len = 0 + if Int32FromUint16((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_type) == int32(RTM_NEWLINK) { + rta = h + UintptrFromInt64(16) + uintptr((Uint64FromInt64(16)+Uint64FromInt32(3))&Uint64FromInt32(^Int32FromInt32(3))) + for { + if !(Uint64FromInt64(int64(h+uintptr((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_len))-int64(rta)) >= uint64(4)) { + break + } + if Int32FromUint16((*Trtattr)(unsafe.Pointer(rta)).Frta_type) != int32(IFLA_STATS) { + goto _1 + } + stats_len = Int32FromUint64(uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len) - Uint64FromInt64(4)) + break + goto _1 + _1: + ; + rta = rta + uintptr((Int32FromUint16((*Trtattr)(unsafe.Pointer(rta)).Frta_len)+Int32FromInt32(3)) & ^Int32FromInt32(3)) + } + } else { + ifs0 = **(**uintptr)(__ccgo_up(ctx + 16 + uintptr((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_index%uint32(IFADDRS_HASH_SIZE))*8)) + for { + if !(ifs0 != 0) { + break + } + if (*Tifaddrs_storage)(unsafe.Pointer(ifs0)).Findex == (*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_index { + break + } + goto _2 + _2: + ; + ifs0 = (*Tifaddrs_storage)(unsafe.Pointer(ifs0)).Fhash_next + } + if !(ifs0 != 0) { + return 0 + } + } + ifs = Xcalloc(tls, uint64(1), uint64(200)+Uint64FromInt32(stats_len)) + if ifs == uintptr(0) { + return -int32(1) + } + if Int32FromUint16((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_type) == int32(RTM_NEWLINK) { + (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Findex = Uint32FromInt32((*Tifinfomsg)(unsafe.Pointer(ifi)).Fifi_index) + (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_flags = (*Tifinfomsg)(unsafe.Pointer(ifi)).Fifi_flags + rta = h + UintptrFromInt64(16) + uintptr((Uint64FromInt64(16)+Uint64FromInt32(3))&Uint64FromInt32(^Int32FromInt32(3))) + for { + if !(Uint64FromInt64(int64(h+uintptr((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_len))-int64(rta)) >= uint64(4)) { + break + } + switch Int32FromUint16((*Trtattr)(unsafe.Pointer(rta)).Frta_type) { + case int32(IFLA_IFNAME): + if uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-uint64(4) < uint64(17) { + Xmemcpy(tls, ifs+176, rta+UintptrFromInt64(4), uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-Uint64FromInt64(4)) + (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_name = ifs + 176 + } + case int32(IFLA_ADDRESS): + _copy_lladdr(tls, ifs+24, ifs+64, rta+UintptrFromInt64(4), uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-Uint64FromInt64(4), (*Tifinfomsg)(unsafe.Pointer(ifi)).Fifi_index, (*Tifinfomsg)(unsafe.Pointer(ifi)).Fifi_type) + case int32(IFLA_BROADCAST): + _copy_lladdr(tls, ifs+40, ifs+136, rta+UintptrFromInt64(4), uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-Uint64FromInt64(4), (*Tifinfomsg)(unsafe.Pointer(ifi)).Fifi_index, (*Tifinfomsg)(unsafe.Pointer(ifi)).Fifi_type) + case int32(IFLA_STATS): + (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_data = ifs + UintptrFromInt32(1)*200 + Xmemcpy(tls, (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_data, rta+UintptrFromInt64(4), uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-Uint64FromInt64(4)) + break + } + goto _3 + _3: + ; + rta = rta + uintptr((Int32FromUint16((*Trtattr)(unsafe.Pointer(rta)).Frta_len)+Int32FromInt32(3)) & ^Int32FromInt32(3)) + } + if (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_name != 0 { + bucket = (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Findex % uint32(IFADDRS_HASH_SIZE) + (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fhash_next = **(**uintptr)(__ccgo_up(ctx + 16 + uintptr(bucket)*8)) + **(**uintptr)(__ccgo_up(ctx + 16 + uintptr(bucket)*8)) = ifs + } + } else { + (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_name = (*Tifaddrs_storage)(unsafe.Pointer(ifs0)).Fifa.Fifa_name + (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_flags = (*Tifaddrs_storage)(unsafe.Pointer(ifs0)).Fifa.Fifa_flags + rta = h + UintptrFromInt64(16) + uintptr((Uint64FromInt64(8)+Uint64FromInt32(3))&Uint64FromInt32(^Int32FromInt32(3))) + for { + if !(Uint64FromInt64(int64(h+uintptr((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_len))-int64(rta)) >= uint64(4)) { + break + } + switch Int32FromUint16((*Trtattr)(unsafe.Pointer(rta)).Frta_type) { + case int32(IFA_ADDRESS): + /* If ifa_addr is already set we, received an IFA_LOCAL before + * so treat this as destination address */ + if (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_addr != 0 { + _copy_addr(tls, ifs+40, Int32FromUint8((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_family), ifs+136, rta+UintptrFromInt64(4), uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-Uint64FromInt64(4), Int32FromUint32((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_index)) + } else { + _copy_addr(tls, ifs+24, Int32FromUint8((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_family), ifs+64, rta+UintptrFromInt64(4), uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-Uint64FromInt64(4), Int32FromUint32((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_index)) + } + case int32(IFA_BROADCAST): + _copy_addr(tls, ifs+40, Int32FromUint8((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_family), ifs+136, rta+UintptrFromInt64(4), uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-Uint64FromInt64(4), Int32FromUint32((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_index)) + case int32(IFA_LOCAL): + /* If ifa_addr is set and we get IFA_LOCAL, assume we have + * a point-to-point network. Move address to correct field. */ + if (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_addr != 0 { + (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifu = (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Faddr + *(*uintptr)(unsafe.Pointer(ifs + 40)) = ifs + 136 + Xmemset(tls, ifs+64, 0, uint64(36)) + } + _copy_addr(tls, ifs+24, Int32FromUint8((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_family), ifs+64, rta+UintptrFromInt64(4), uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-Uint64FromInt64(4), Int32FromUint32((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_index)) + case int32(IFA_LABEL): + if uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-uint64(4) < uint64(17) { + Xmemcpy(tls, ifs+176, rta+UintptrFromInt64(4), uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-Uint64FromInt64(4)) + (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_name = ifs + 176 + } + break + } + goto _4 + _4: + ; + rta = rta + uintptr((Int32FromUint16((*Trtattr)(unsafe.Pointer(rta)).Frta_len)+Int32FromInt32(3)) & ^Int32FromInt32(3)) + } + if (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_addr != 0 { + _gen_netmask(tls, ifs+32, Int32FromUint8((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_family), ifs+100, Int32FromUint8((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_prefixlen)) + } + } + if (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_name != 0 { + if !((*Tifaddrs_ctx)(unsafe.Pointer(ctx)).Ffirst != 0) { + (*Tifaddrs_ctx)(unsafe.Pointer(ctx)).Ffirst = ifs + } + if (*Tifaddrs_ctx)(unsafe.Pointer(ctx)).Flast != 0 { + (*Tifaddrs)(unsafe.Pointer((*Tifaddrs_ctx)(unsafe.Pointer(ctx)).Flast)).Fifa_next = ifs + } + (*Tifaddrs_ctx)(unsafe.Pointer(ctx)).Flast = ifs + } else { + Xfree(tls, ifs) + } + return 0 +} + +func Xgetifaddrs(tls *TLS, ifap uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v ifap=%v, (%v:)", tls, ifap, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(528) + defer tls.Free(528) + var ctx uintptr + var r int32 + var _ /* _ctx at bp+0 */ Tifaddrs_ctx + _, _ = ctx, r + ctx = bp + Xmemset(tls, ctx, 0, uint64(528)) + r = X__rtnetlink_enumerate(tls, PF_UNSPEC, PF_UNSPEC, __ccgo_fp(_netlink_msg_to_ifaddr), ctx) + if r == 0 { + **(**uintptr)(__ccgo_up(ifap)) = (*Tifaddrs_ctx)(unsafe.Pointer(ctx)).Ffirst + } else { + Xfreeifaddrs(tls, (*Tifaddrs_ctx)(unsafe.Pointer(ctx)).Ffirst) + } + return r +} + +const RR_PTR = 12 + +func _itoa(tls *TLS, p uintptr, x uint32) (r uintptr) { + var v1 uintptr + _ = v1 + p = p + uintptr(Uint64FromInt32(3)*Uint64FromInt64(4)) + p = p - 1 + v1 = p + **(**int8)(__ccgo_up(v1)) = 0 + for cond := true; cond; cond = x != 0 { + p = p - 1 + v1 = p + **(**int8)(__ccgo_up(v1)) = Int8FromUint32(uint32('0') + x%uint32(10)) + x = x / uint32(10) + } + return p +} + +func _mkptr4(tls *TLS, s uintptr, ip uintptr) { + bp := tls.Alloc(48) + defer tls.Free(48) + Xsprintf(tls, s, __ccgo_ts+999, VaList(bp+8, Int32FromUint8(**(**uint8)(__ccgo_up(ip + 3))), Int32FromUint8(**(**uint8)(__ccgo_up(ip + 2))), Int32FromUint8(**(**uint8)(__ccgo_up(ip + 1))), Int32FromUint8(**(**uint8)(__ccgo_up(ip))))) +} + +func _mkptr6(tls *TLS, s uintptr, ip uintptr) { + var i int32 + var v2 uintptr + _, _ = i, v2 + i = int32(15) + for { + if !(i >= 0) { + break + } + v2 = s + s = s + 1 + **(**int8)(__ccgo_up(v2)) = _xdigits[Int32FromUint8(**(**uint8)(__ccgo_up(ip + uintptr(i))))&int32(15)] + v2 = s + s = s + 1 + **(**int8)(__ccgo_up(v2)) = int8('.') + v2 = s + s = s + 1 + **(**int8)(__ccgo_up(v2)) = _xdigits[Int32FromUint8(**(**uint8)(__ccgo_up(ip + uintptr(i))))>>int32(4)] + v2 = s + s = s + 1 + **(**int8)(__ccgo_up(v2)) = int8('.') + goto _1 + _1: + ; + i = i - 1 + } + Xstrcpy(tls, s, __ccgo_ts+1024) +} + +var _xdigits = [17]int8{'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'} + +func _reverse_hosts(tls *TLS, buf uintptr, a uintptr, scopeid uint32, family int32) { + bp := tls.Alloc(1824) + defer tls.Free(1824) + var f, p, z, v1, v2 uintptr + var v4, v5 int32 + var v7 bool + var _ /* _buf at bp+512 */ [1032]uint8 + var _ /* _f at bp+1592 */ TFILE + var _ /* atmp at bp+1544 */ [16]uint8 + var _ /* iplit at bp+1560 */ Taddress + var _ /* line at bp+0 */ [512]int8 + _, _, _, _, _, _, _, _ = f, p, z, v1, v2, v4, v5, v7 + f = X__fopen_rb_ca(tls, __ccgo_ts+1033, bp+1592, bp+512, uint64(1032)) + if !(f != 0) { + return + } + if family == int32(PF_INET) { + Xmemcpy(tls, bp+1544+uintptr(12), a, uint64(4)) + Xmemcpy(tls, bp+1544, __ccgo_ts+1044, uint64(12)) + a = bp + 1544 + } + for Xfgets(tls, bp, int32(512), f) != 0 { + v1 = Xstrchr(tls, bp, int32('#')) + p = v1 + if v1 != 0 { + v2 = p + p = p + 1 + **(**int8)(__ccgo_up(v2)) = int8('\n') + **(**int8)(__ccgo_up(p)) = Int8FromInt32(0) + } + p = bp + for { + if v7 = **(**int8)(__ccgo_up(p)) != 0; v7 { + v4 = int32(**(**int8)(__ccgo_up(p))) + v5 = BoolInt32(v4 == int32(' ') || Uint32FromInt32(v4)-uint32('\t') < uint32(5)) + goto _6 + _6: + } + if !(v7 && !(v5 != 0)) { + break + } + goto _3 + _3: + ; + p = p + 1 + } + if !(**(**int8)(__ccgo_up(p)) != 0) { + continue + } + v1 = p + p = p + 1 + **(**int8)(__ccgo_up(v1)) = 0 + if X__lookup_ipliteral(tls, bp+1560, bp, PF_UNSPEC) <= 0 { + continue + } + if (**(**Taddress)(__ccgo_up(bp + 1560))).Ffamily == int32(PF_INET) { + Xmemcpy(tls, bp+1560+8+uintptr(12), bp+1560+8, uint64(4)) + Xmemcpy(tls, bp+1560+8, __ccgo_ts+1044, uint64(12)) + (**(**Taddress)(__ccgo_up(bp + 1560))).Fscopeid = uint32(0) + } + if Xmemcmp(tls, a, bp+1560+8, uint64(16)) != 0 || (**(**Taddress)(__ccgo_up(bp + 1560))).Fscopeid != scopeid { + continue + } + for { + if v7 = **(**int8)(__ccgo_up(p)) != 0; v7 { + v4 = int32(**(**int8)(__ccgo_up(p))) + v5 = BoolInt32(v4 == int32(' ') || Uint32FromInt32(v4)-uint32('\t') < uint32(5)) + goto _12 + _12: + } + if !(v7 && v5 != 0) { + break + } + goto _9 + _9: + ; + p = p + 1 + } + z = p + for { + if v7 = **(**int8)(__ccgo_up(z)) != 0; v7 { + v4 = int32(**(**int8)(__ccgo_up(z))) + v5 = BoolInt32(v4 == int32(' ') || Uint32FromInt32(v4)-uint32('\t') < uint32(5)) + goto _17 + _17: + } + if !(v7 && !(v5 != 0)) { + break + } + goto _14 + _14: + ; + z = z + 1 + } + **(**int8)(__ccgo_up(z)) = 0 + if int64(z)-int64(p) < int64(256) { + Xmemcpy(tls, buf, p, Uint64FromInt64(int64(z)-int64(p)+int64(1))) + break + } + } + X__fclose_ca(tls, f) +} + +func _reverse_services(tls *TLS, buf uintptr, port int32, dgram int32) { + bp := tls.Alloc(1408) + defer tls.Free(1408) + var f, p, v1, v2 uintptr + var svport uint64 + var v4, v5 int32 + var v7 bool + var _ /* _buf at bp+136 */ [1032]uint8 + var _ /* _f at bp+1168 */ TFILE + var _ /* line at bp+0 */ [128]int8 + var _ /* z at bp+128 */ uintptr + _, _, _, _, _, _, _, _ = f, p, svport, v1, v2, v4, v5, v7 + f = X__fopen_rb_ca(tls, __ccgo_ts+1057, bp+1168, bp+136, uint64(1032)) + if !(f != 0) { + return + } + for Xfgets(tls, bp, int32(128), f) != 0 { + v1 = Xstrchr(tls, bp, int32('#')) + p = v1 + if v1 != 0 { + v2 = p + p = p + 1 + **(**int8)(__ccgo_up(v2)) = int8('\n') + **(**int8)(__ccgo_up(p)) = Int8FromInt32(0) + } + p = bp + for { + if v7 = **(**int8)(__ccgo_up(p)) != 0; v7 { + v4 = int32(**(**int8)(__ccgo_up(p))) + v5 = BoolInt32(v4 == int32(' ') || Uint32FromInt32(v4)-uint32('\t') < uint32(5)) + goto _6 + _6: + } + if !(v7 && !(v5 != 0)) { + break + } + goto _3 + _3: + ; + p = p + 1 + } + if !(**(**int8)(__ccgo_up(p)) != 0) { + continue + } + v1 = p + p = p + 1 + **(**int8)(__ccgo_up(v1)) = 0 + svport = Xstrtoul(tls, p, bp+128, int32(10)) + if svport != Uint64FromInt32(port) || **(**uintptr)(__ccgo_up(bp + 128)) == p { + continue + } + if dgram != 0 && Xstrncmp(tls, **(**uintptr)(__ccgo_up(bp + 128)), __ccgo_ts+1071, uint64(4)) != 0 { + continue + } + if !(dgram != 0) && Xstrncmp(tls, **(**uintptr)(__ccgo_up(bp + 128)), __ccgo_ts+1076, uint64(4)) != 0 { + continue + } + if int64(p)-t__predefined_ptrdiff_t(bp) > int64(32) { + continue + } + Xmemcpy(tls, buf, bp, Uint64FromInt64(int64(p)-t__predefined_ptrdiff_t(bp))) + break + } + X__fclose_ca(tls, f) +} + +func _dns_parse_callback(tls *TLS, c uintptr, rr int32, data uintptr, len1 int32, packet uintptr, plen int32) (r int32) { + if rr != int32(RR_PTR) { + return 0 + } + if X__dn_expand(tls, packet, packet+uintptr(plen), data, c, int32(256)) <= 0 { + **(**int8)(__ccgo_up(c)) = 0 + } + return 0 +} + +func Xgetnameinfo(tls *TLS, sa uintptr, sl Tsocklen_t, node uintptr, nodelen Tsocklen_t, serv uintptr, servlen Tsocklen_t, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v sa=%v sl=%v node=%v nodelen=%v serv=%v servlen=%v flags=%v, (%v:)", tls, sa, sl, node, nodelen, serv, servlen, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(976) + defer tls.Free(976) + var a, p, p1, v1 uintptr + var af, port, qlen, rlen int32 + var scopeid uint32 + var _ /* buf at bp+78 */ [256]int8 + var _ /* num at bp+334 */ [13]int8 + var _ /* ptr at bp+0 */ [78]int8 + var _ /* query at bp+347 */ [96]uint8 + var _ /* reply at bp+443 */ [512]uint8 + var _ /* tmp at bp+955 */ [17]int8 + _, _, _, _, _, _, _, _, _ = a, af, p, p1, port, qlen, rlen, scopeid, v1 + af = Int32FromUint16((*Tsockaddr)(unsafe.Pointer(sa)).Fsa_family) + switch af { + case int32(PF_INET): + a = sa + 4 + if uint64(sl) < uint64(16) { + return -int32(6) + } + _mkptr4(tls, bp, a) + scopeid = uint32(0) + case int32(PF_INET6): + a = sa + 8 + if uint64(sl) < uint64(28) { + return -int32(6) + } + if Xmemcmp(tls, a, __ccgo_ts+1044, uint64(12)) != 0 { + _mkptr6(tls, bp, a) + } else { + _mkptr4(tls, bp, a+uintptr(12)) + } + scopeid = (*Tsockaddr_in6)(unsafe.Pointer(sa)).Fsin6_scope_id + default: + return -int32(6) + } + if node != 0 && nodelen != 0 { + (**(**[256]int8)(__ccgo_up(bp + 78)))[0] = 0 + if !(flags&Int32FromInt32(NI_NUMERICHOST) != 0) { + _reverse_hosts(tls, bp+78, a, scopeid, af) + } + if !(**(**int8)(__ccgo_up(bp + 78)) != 0) && !(flags&Int32FromInt32(NI_NUMERICHOST) != 0) { + qlen = X__res_mkquery(tls, 0, bp, int32(1), int32(RR_PTR), uintptr(0), 0, uintptr(0), bp+347, int32(96)) + (**(**[96]uint8)(__ccgo_up(bp + 347)))[int32(3)] = uint8(0) /* don't need AD flag */ + rlen = X__res_send(tls, bp+347, qlen, bp+443, int32(512)) + (**(**[256]int8)(__ccgo_up(bp + 78)))[0] = 0 + if rlen > 0 { + if Uint64FromInt32(rlen) > uint64(512) { + rlen = int32(512) + } + X__dns_parse(tls, bp+443, rlen, __ccgo_fp(_dns_parse_callback), bp+78) + } + } + if !(**(**int8)(__ccgo_up(bp + 78)) != 0) { + if flags&int32(NI_NAMEREQD) != 0 { + return -int32(2) + } + Xinet_ntop(tls, af, a, bp+78, uint32(256)) + if scopeid != 0 { + p = uintptr(0) + if !(flags&Int32FromInt32(NI_NUMERICSCOPE) != 0) && (Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a))) == int32(0xfe) && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a + 1)))&int32(0xc0) == int32(0x80) || Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a))) == int32(0xff) && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a + 1)))&int32(0xf) == int32(0x2)) { + p = Xif_indextoname(tls, scopeid, bp+955+uintptr(1)) + } + if !(p != 0) { + p = _itoa(tls, bp+334, scopeid) + } + p = p - 1 + v1 = p + **(**int8)(__ccgo_up(v1)) = int8('%') + Xstrcat(tls, bp+78, p) + } + } + if _strlen(tls, bp+78) >= uint64(nodelen) { + return -int32(12) + } + Xstrcpy(tls, node, bp+78) + } + if serv != 0 && servlen != 0 { + p1 = bp + 78 + port = Int32FromUint16(Xntohs(tls, (*Tsockaddr_in)(unsafe.Pointer(sa)).Fsin_port)) + (**(**[256]int8)(__ccgo_up(bp + 78)))[0] = 0 + if !(flags&Int32FromInt32(NI_NUMERICSERV) != 0) { + _reverse_services(tls, bp+78, port, flags&int32(NI_DGRAM)) + } + if !(**(**int8)(__ccgo_up(p1)) != 0) { + p1 = _itoa(tls, bp+334, Uint32FromInt32(port)) + } + if _strlen(tls, p1) >= uint64(servlen) { + return -int32(12) + } + Xstrcpy(tls, serv, p1) + } + return 0 +} + +func Xgetpeername(tls *TLS, fd int32, addr uintptr, len1 uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v addr=%v len1=%v, (%v:)", tls, fd, addr, len1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v8 int64 + var v1 int32 + var v2, v3, v4, v5, v6, v7 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _ = r, v1, v2, v3, v4, v5, v6, v7, v8 + v1 = int32(SYS_getpeername) + _ = int32(__SC_getpeername) + v2 = int64(fd) + v3 = int64(addr) + v4 = int64(len1) + v5 = int64(Int32FromInt32(0)) + v6 = int64(Int32FromInt32(0)) + v7 = int64(Int32FromInt32(0)) + if 0 != 0 { + r = ___syscall_cp(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _9 + } + v8 = r + goto _9 +_9: + return int32(X__syscall_ret(tls, Uint64FromInt64(v8))) +} + +func Xgetservbyname(tls *TLS, name uintptr, prots uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v prots=%v, (%v:)", tls, name, prots, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* res at bp+0 */ uintptr + if Xgetservbyname_r(tls, name, prots, uintptr(unsafe.Pointer(&_se)), uintptr(unsafe.Pointer(&_buf3)), uint64(16), bp) != 0 { + return uintptr(0) + } + return uintptr(unsafe.Pointer(&_se)) +} + +var _se Tservent + +var _buf3 [2]uintptr + +const ALIGN = 0 + +func Xgetservbyname_r(tls *TLS, name uintptr, prots uintptr, se uintptr, buf uintptr, buflen Tsize_t, res uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v prots=%v se=%v buf=%v buflen=%v res=%v, (%v:)", tls, name, prots, se, buf, buflen, res, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var align, cnt, proto int32 + var v1 uintptr + var _ /* end at bp+8 */ uintptr + var _ /* servs at bp+0 */ [2]Tservice + _, _, _, _ = align, cnt, proto, v1 + **(**uintptr)(__ccgo_up(res)) = uintptr(0) + /* Don't treat numeric port number strings as service records. */ + **(**uintptr)(__ccgo_up(bp + 8)) = __ccgo_ts + Xstrtoul(tls, name, bp+8, int32(10)) + if !(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)))) != 0) { + return int32(ENOENT) + } + /* Align buffer */ + align = Int32FromUint64(-uint64(buf) & (Uint64FromInt64(16) - Uint64FromInt64(8) - Uint64FromInt32(1))) + if buflen < Uint64FromInt32(2)*Uint64FromInt64(8)+Uint64FromInt32(align) { + return int32(ERANGE) + } + buf = buf + uintptr(align) + if !(prots != 0) { + proto = 0 + } else { + if !(Xstrcmp(tls, prots, __ccgo_ts+1081) != 0) { + proto = int32(IPPROTO_TCP) + } else { + if !(Xstrcmp(tls, prots, __ccgo_ts+1085) != 0) { + proto = int32(IPPROTO_UDP) + } else { + return int32(EINVAL) + } + } + } + cnt = X__lookup_serv(tls, bp, name, proto, 0, 0) + if cnt < 0 { + switch cnt { + case -int32(10): + fallthrough + case -int32(11): + return int32(ENOMEM) + default: + return int32(ENOENT) + } + } + (*Tservent)(unsafe.Pointer(se)).Fs_name = name + (*Tservent)(unsafe.Pointer(se)).Fs_aliases = buf + **(**uintptr)(__ccgo_up((*Tservent)(unsafe.Pointer(se)).Fs_aliases)) = (*Tservent)(unsafe.Pointer(se)).Fs_name + **(**uintptr)(__ccgo_up((*Tservent)(unsafe.Pointer(se)).Fs_aliases + 1*8)) = uintptr(0) + (*Tservent)(unsafe.Pointer(se)).Fs_port = Int32FromUint16(Xhtons(tls, (**(**[2]Tservice)(__ccgo_up(bp)))[0].Fport)) + if Int32FromUint8((**(**[2]Tservice)(__ccgo_up(bp)))[0].Fproto) == int32(IPPROTO_TCP) { + v1 = __ccgo_ts + 1081 + } else { + v1 = __ccgo_ts + 1085 + } + (*Tservent)(unsafe.Pointer(se)).Fs_proto = v1 + **(**uintptr)(__ccgo_up(res)) = se + return 0 +} + +func Xgetsockname(tls *TLS, fd int32, addr uintptr, len1 uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v addr=%v len1=%v, (%v:)", tls, fd, addr, len1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v8 int64 + var v1 int32 + var v2, v3, v4, v5, v6, v7 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _ = r, v1, v2, v3, v4, v5, v6, v7, v8 + v1 = int32(SYS_getsockname) + _ = int32(__SC_getsockname) + v2 = int64(fd) + v3 = int64(addr) + v4 = int64(len1) + v5 = int64(Int32FromInt32(0)) + v6 = int64(Int32FromInt32(0)) + v7 = int64(Int32FromInt32(0)) + if 0 != 0 { + r = ___syscall_cp(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _9 + } + v8 = r + goto _9 +_9: + return int32(X__syscall_ret(tls, Uint64FromInt64(v8))) +} + +func Xgetsockopt(tls *TLS, fd int32, level int32, optname int32, optval uintptr, optlen uintptr) (r2 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v level=%v optname=%v optval=%v optlen=%v, (%v:)", tls, fd, level, optname, optval, optlen, origin(2)) + defer func() { trc("-> %v", r2) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var r, v8 int64 + var r1, v1 int32 + var tv uintptr + var v2, v3, v4, v5, v6, v7 Tsyscall_arg_t + var _ /* tv32 at bp+8 */ [2]int64 + _, _, _, _, _, _, _, _, _, _, _ = r, r1, tv, v1, v2, v3, v4, v5, v6, v7, v8 + v1 = int32(SYS_getsockopt) + _ = int32(__SC_getsockopt) + v2 = int64(fd) + v3 = int64(level) + v4 = int64(optname) + v5 = int64(optval) + v6 = int64(optlen) + v7 = int64(Int32FromInt32(0)) + if 0 != 0 { + r = ___syscall_cp(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _9 + } + v8 = r + goto _9 +_9: + r1 = int32(v8) + if r1 == -int32(ENOPROTOOPT) { + switch level { + case int32(SOL_SOCKET): + switch optname { + case int32(SO_RCVTIMEO): + fallthrough + case int32(SO_SNDTIMEO): + if true { + break + } + if uint64(**(**Tsocklen_t)(__ccgo_up(optlen))) < uint64(16) { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL)))) + } + if optname == int32(SO_RCVTIMEO) { + optname = int32(SO_RCVTIMEO_OLD) + } + if optname == int32(SO_SNDTIMEO) { + optname = int32(SO_SNDTIMEO_OLD) + } + *(*[1]Tsocklen_t)(unsafe.Pointer(bp)) = [1]Tsocklen_t{ + 0: uint32(16), + } + v1 = int32(SYS_getsockopt) + _ = int32(__SC_getsockopt) + v2 = int64(fd) + v3 = int64(level) + v4 = int64(optname) + v5 = int64(bp + 8) + v6 = int64(bp) + v7 = int64(Int32FromInt32(0)) + if 0 != 0 { + r = ___syscall_cp(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _18 + } + v8 = r + goto _18 + _18: + r1 = int32(v8) + if r1 < 0 { + break + } + tv = optval + (*Ttimeval)(unsafe.Pointer(tv)).Ftv_sec = (**(**[2]int64)(__ccgo_up(bp + 8)))[0] + (*Ttimeval)(unsafe.Pointer(tv)).Ftv_usec = (**(**[2]int64)(__ccgo_up(bp + 8)))[int32(1)] + **(**Tsocklen_t)(__ccgo_up(optlen)) = uint32(16) + case int32(SO_TIMESTAMP): + fallthrough + case int32(SO_TIMESTAMPNS): + if true { + break + } + if optname == int32(SO_TIMESTAMP) { + optname = int32(SO_TIMESTAMP_OLD) + } + if optname == int32(SO_TIMESTAMPNS) { + optname = int32(SO_TIMESTAMPNS_OLD) + } + v1 = int32(SYS_getsockopt) + _ = int32(__SC_getsockopt) + v2 = int64(fd) + v3 = int64(level) + v4 = int64(optname) + v5 = int64(optval) + v6 = int64(optlen) + v7 = int64(Int32FromInt32(0)) + if 0 != 0 { + r = ___syscall_cp(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _27 + } + v8 = r + goto _27 + _27: + r1 = int32(v8) + break + } + } + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r1))) +} + +func X__h_errno_location(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + if !((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Fstack != 0) { + return uintptr(unsafe.Pointer(&Xh_errno)) + } + return uintptr(___get_tp(tls)) + 160 +} + +func Xherror(tls *TLS, msg uintptr) { + if __ccgo_strace { + trc("tls=%v msg=%v, (%v:)", tls, msg, origin(2)) + } + bp := tls.Alloc(32) + defer tls.Free(32) + var v1, v2 uintptr + _, _ = v1, v2 + if msg != 0 { + v1 = msg + } else { + v1 = __ccgo_ts + } + if msg != 0 { + v2 = __ccgo_ts + 355 + } else { + v2 = __ccgo_ts + } + Xfprintf(tls, uintptr(unsafe.Pointer(&X__stderr_FILE)), __ccgo_ts+1089, VaList(bp+8, v1, v2, Xhstrerror(tls, **(**int32)(__ccgo_up(X__h_errno_location(tls)))))) +} + +var _msgs1 = [84]int8{'H', 'o', 's', 't', ' ', 'n', 'o', 't', ' ', 'f', 'o', 'u', 'n', 'd', 0, 'T', 'r', 'y', ' ', 'a', 'g', 'a', 'i', 'n', 0, 'N', 'o', 'n', '-', 'r', 'e', 'c', 'o', 'v', 'e', 'r', 'a', 'b', 'l', 'e', ' ', 'e', 'r', 'r', 'o', 'r', 0, 'A', 'd', 'd', 'r', 'e', 's', 's', ' ', 'n', 'o', 't', ' ', 'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e', 0, 0, 'U', 'n', 'k', 'n', 'o', 'w', 'n', ' ', 'e', 'r', 'r', 'o', 'r'} + +func Xhstrerror(tls *TLS, ecode int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v ecode=%v, (%v:)", tls, ecode, origin(2)) + defer func() { trc("-> %v", r) }() + } + var s uintptr + _ = s + s = uintptr(unsafe.Pointer(&_msgs1)) + ecode = ecode - 1 + for { + if !(ecode != 0 && **(**int8)(__ccgo_up(s)) != 0) { + break + } + for { + if !(**(**int8)(__ccgo_up(s)) != 0) { + break + } + goto _2 + _2: + ; + s = s + 1 + } + goto _1 + _1: + ; + ecode = ecode - 1 + s = s + 1 + } + if !(**(**int8)(__ccgo_up(s)) != 0) { + s = s + 1 + } + return X__lctrans_cur(tls, s) +} + +func Xhtonl(tls *TLS, n Tuint32_t) (r Tuint32_t) { + if __ccgo_strace { + trc("tls=%v n=%v, (%v:)", tls, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var u struct { + Fc [0]int8 + Fi int32 + } + var v1 uint32 + var v2, v3 Tuint32_t + _, _, _, _ = u, v1, v2, v3 + u = *(*struct { + Fc [0]int8 + Fi int32 + })(unsafe.Pointer(&struct{ f int32 }{f: int32(1)})) + if *(*int8)(unsafe.Pointer(&u)) != 0 { + v2 = n + v3 = v2>>int32(24) | v2>>int32(8)&uint32(0xff00) | v2< %v", r) }() + } + var u struct { + Fc [0]int8 + Fi int32 + } + var v1 int32 + var v2, v3 Tuint16_t + _, _, _, _ = u, v1, v2, v3 + u = *(*struct { + Fc [0]int8 + Fi int32 + })(unsafe.Pointer(&struct{ f int32 }{f: int32(1)})) + if *(*int8)(unsafe.Pointer(&u)) != 0 { + v2 = n + v3 = Uint16FromInt32(Int32FromUint16(v2)<>int32(8)) + goto _4 + _4: + v1 = Int32FromUint16(v3) + } else { + v1 = Int32FromUint16(n) + } + return Uint16FromInt32(v1) +} + +func Xif_freenameindex(tls *TLS, idx uintptr) { + if __ccgo_strace { + trc("tls=%v idx=%v, (%v:)", tls, idx, origin(2)) + } + Xfree(tls, idx) +} + +func Xif_indextoname(tls *TLS, index uint32, name uintptr) (r1 uintptr) { + if __ccgo_strace { + trc("tls=%v index=%v name=%v, (%v:)", tls, index, name, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var fd, r, v1 int32 + var _ /* ifr at bp+0 */ Tifreq + _, _, _ = fd, r, v1 + v1 = Xsocket(tls, int32(PF_LOCAL), Int32FromInt32(SOCK_DGRAM)|Int32FromInt32(SOCK_CLOEXEC), 0) + fd = v1 + if v1 < 0 { + return uintptr(0) + } + *(*int32)(unsafe.Pointer(bp + 16)) = Int32FromUint32(index) + r = Xioctl(tls, fd, int32(SIOCGIFNAME), VaList(bp+48, bp)) + X__syscall1(tls, int64(SYS_close), int64(fd)) + if r < 0 { + if **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(ENODEV) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENXIO) + } + return uintptr(0) + } + return Xstrncpy(tls, name, bp, uint64(IF_NAMESIZE)) +} + +type Tifnamemap = struct { + Fhash_next uint32 + Findex uint32 + Fnamelen uint8 + Fname [16]int8 +} + +type Tifnameindexctx = struct { + Fnum uint32 + Fallocated uint32 + Fstr_bytes uint32 + Flist uintptr + Fhash [64]uint32 +} + +func _netlink_msg_to_nameindex(tls *TLS, pctx uintptr, h uintptr) (r int32) { + var a Tsize_t + var bucket, index, namelen, type1 int32 + var ctx, ifa, ifi, map1, rta uintptr + var i, v2 uint32 + _, _, _, _, _, _, _, _, _, _, _, _ = a, bucket, ctx, i, ifa, ifi, index, map1, namelen, rta, type1, v2 + ctx = pctx + if Int32FromUint16((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_type) == int32(RTM_NEWLINK) { + ifi = h + UintptrFromInt64(16) + index = (*Tifinfomsg)(unsafe.Pointer(ifi)).Fifi_index + type1 = int32(IFLA_IFNAME) + rta = h + UintptrFromInt64(16) + uintptr((Uint64FromInt64(16)+Uint64FromInt32(3))&Uint64FromInt32(^Int32FromInt32(3))) + } else { + ifa = h + UintptrFromInt64(16) + index = Int32FromUint32((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_index) + type1 = int32(IFA_LABEL) + rta = h + UintptrFromInt64(16) + uintptr((Uint64FromInt64(8)+Uint64FromInt32(3))&Uint64FromInt32(^Int32FromInt32(3))) + } + for { + if !(Uint64FromInt64(int64(h+uintptr((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_len))-int64(rta)) >= uint64(4)) { + break + } + if Int32FromUint16((*Trtattr)(unsafe.Pointer(rta)).Frta_type) != type1 { + goto _1 + } + namelen = Int32FromUint64(uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len) - uint64(4) - uint64(1)) + if namelen > int32(IF_NAMESIZE) { + return 0 + } + /* suppress duplicates */ + bucket = index % int32(IFADDRS_HASH_SIZE) + i = **(**uint32)(__ccgo_up(ctx + 24 + uintptr(bucket)*4)) + for i != 0 { + map1 = (*Tifnameindexctx)(unsafe.Pointer(ctx)).Flist + uintptr(i-uint32(1))*28 + if (*Tifnamemap)(unsafe.Pointer(map1)).Findex == Uint32FromInt32(index) && Int32FromUint8((*Tifnamemap)(unsafe.Pointer(map1)).Fnamelen) == namelen && Xmemcmp(tls, map1+9, rta+UintptrFromInt64(4), Uint64FromInt32(namelen)) == 0 { + return 0 + } + i = (*Tifnamemap)(unsafe.Pointer(map1)).Fhash_next + } + if (*Tifnameindexctx)(unsafe.Pointer(ctx)).Fnum >= (*Tifnameindexctx)(unsafe.Pointer(ctx)).Fallocated { + if (*Tifnameindexctx)(unsafe.Pointer(ctx)).Fallocated != 0 { + v2 = (*Tifnameindexctx)(unsafe.Pointer(ctx)).Fallocated*uint32(2) + uint32(1) + } else { + v2 = uint32(8) + } + a = uint64(v2) + if a > Uint64FromUint64(0xffffffffffffffff)/Uint64FromInt64(28) { + return -int32(1) + } + map1 = Xrealloc(tls, (*Tifnameindexctx)(unsafe.Pointer(ctx)).Flist, a*uint64(28)) + if !(map1 != 0) { + return -int32(1) + } + (*Tifnameindexctx)(unsafe.Pointer(ctx)).Flist = map1 + (*Tifnameindexctx)(unsafe.Pointer(ctx)).Fallocated = uint32(a) + } + map1 = (*Tifnameindexctx)(unsafe.Pointer(ctx)).Flist + uintptr((*Tifnameindexctx)(unsafe.Pointer(ctx)).Fnum)*28 + (*Tifnamemap)(unsafe.Pointer(map1)).Findex = Uint32FromInt32(index) + (*Tifnamemap)(unsafe.Pointer(map1)).Fnamelen = Uint8FromInt32(namelen) + Xmemcpy(tls, map1+9, rta+UintptrFromInt64(4), Uint64FromInt32(namelen)) + **(**uint32)(__ccgo_up(ctx + 8)) += Uint32FromInt32(namelen + int32(1)) + (*Tifnameindexctx)(unsafe.Pointer(ctx)).Fnum = (*Tifnameindexctx)(unsafe.Pointer(ctx)).Fnum + 1 + (*Tifnamemap)(unsafe.Pointer(map1)).Fhash_next = **(**uint32)(__ccgo_up(ctx + 24 + uintptr(bucket)*4)) + **(**uint32)(__ccgo_up(ctx + 24 + uintptr(bucket)*4)) = (*Tifnameindexctx)(unsafe.Pointer(ctx)).Fnum + return 0 + goto _1 + _1: + ; + rta = rta + uintptr((Int32FromUint16((*Trtattr)(unsafe.Pointer(rta)).Frta_len)+Int32FromInt32(3)) & ^Int32FromInt32(3)) + } + return 0 +} + +func Xif_nameindex(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(288) + defer tls.Free(288) + var ctx, d, ifs, p, s, v2 uintptr + var i int32 + var _ /* _ctx at bp+0 */ Tifnameindexctx + var _ /* cs at bp+280 */ int32 + _, _, _, _, _, _, _ = ctx, d, i, ifs, p, s, v2 + ctx = bp + ifs = uintptr(0) + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp+280) + Xmemset(tls, ctx, 0, uint64(280)) + if X__rtnetlink_enumerate(tls, PF_UNSPEC, int32(PF_INET), __ccgo_fp(_netlink_msg_to_nameindex), ctx) < 0 { + goto err + } + ifs = Xmalloc(tls, uint64((*Tifnameindexctx)(unsafe.Pointer(ctx)).Fnum+Uint32FromInt32(1))*16+uint64((*Tifnameindexctx)(unsafe.Pointer(ctx)).Fstr_bytes)) + if !(ifs != 0) { + goto err + } + p = ifs + uintptr((*Tifnameindexctx)(unsafe.Pointer(ctx)).Fnum)*16 + UintptrFromInt32(1)*16 + i = Int32FromUint32((*Tifnameindexctx)(unsafe.Pointer(ctx)).Fnum) + d = ifs + s = (*Tifnameindexctx)(unsafe.Pointer(ctx)).Flist + for { + if !(i != 0) { + break + } + (*Tif_nameindex)(unsafe.Pointer(d)).Fif_index = (*Tifnamemap)(unsafe.Pointer(s)).Findex + (*Tif_nameindex)(unsafe.Pointer(d)).Fif_name = p + Xmemcpy(tls, p, s+9, uint64((*Tifnamemap)(unsafe.Pointer(s)).Fnamelen)) + p = p + uintptr((*Tifnamemap)(unsafe.Pointer(s)).Fnamelen) + v2 = p + p = p + 1 + **(**int8)(__ccgo_up(v2)) = 0 + goto _1 + _1: + ; + i = i - 1 + s += 28 + d += 16 + } + (*Tif_nameindex)(unsafe.Pointer(d)).Fif_index = uint32(0) + (*Tif_nameindex)(unsafe.Pointer(d)).Fif_name = uintptr(0) + goto err +err: + ; + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 280)), uintptr(0)) + Xfree(tls, (*Tifnameindexctx)(unsafe.Pointer(ctx)).Flist) + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOBUFS) + return ifs +} + +func Xif_nametoindex(tls *TLS, name uintptr) (r1 uint32) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var fd, r, v1 int32 + var _ /* ifr at bp+0 */ Tifreq + _, _, _ = fd, r, v1 + v1 = Xsocket(tls, int32(PF_LOCAL), Int32FromInt32(SOCK_DGRAM)|Int32FromInt32(SOCK_CLOEXEC), 0) + fd = v1 + if v1 < 0 { + return uint32(0) + } + Xstrncpy(tls, bp, name, uint64(16)) + r = Xioctl(tls, fd, int32(SIOCGIFINDEX), VaList(bp+48, bp)) + X__syscall1(tls, int64(SYS_close), int64(fd)) + if r < 0 { + v1 = 0 + } else { + v1 = *(*int32)(unsafe.Pointer(bp + 16)) + } + return Uint32FromInt32(v1) +} + +func Xinet_addr(tls *TLS, p uintptr) (r Tin_addr_t) { + if __ccgo_strace { + trc("tls=%v p=%v, (%v:)", tls, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* a at bp+0 */ Tin_addr + if !(X__inet_aton(tls, p, bp) != 0) { + return Uint32FromInt32(-Int32FromInt32(1)) + } + return (**(**Tin_addr)(__ccgo_up(bp))).Fs_addr +} + +func X__inet_aton(tls *TLS, s0 uintptr, dest uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s0=%v dest=%v, (%v:)", tls, s0, dest, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + var d, s uintptr + var i int32 + var _ /* a at bp+0 */ [4]uint64 + var _ /* z at bp+32 */ uintptr + _, _, _ = d, i, s + s = s0 + d = dest + **(**[4]uint64)(__ccgo_up(bp)) = [4]uint64{} + i = 0 + for { + if !(i < int32(4)) { + break + } + (**(**[4]uint64)(__ccgo_up(bp)))[i] = Xstrtoul(tls, s, bp+32, 0) + if **(**uintptr)(__ccgo_up(bp + 32)) == s || **(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 32)))) != 0 && int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 32))))) != int32('.') || !(BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(s)))-Uint32FromUint8('0') < Uint32FromInt32(10)) != 0) { + return 0 + } + if !(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 32)))) != 0) { + break + } + s = **(**uintptr)(__ccgo_up(bp + 32)) + uintptr(1) + goto _1 + _1: + ; + i = i + 1 + } + if i == int32(4) { + return 0 + } + switch i { + case 0: + (**(**[4]uint64)(__ccgo_up(bp)))[int32(1)] = (**(**[4]uint64)(__ccgo_up(bp)))[0] & uint64(0xffffff) + **(**uint64)(__ccgo_up(bp)) >>= uint64(24) + fallthrough + case int32(1): + (**(**[4]uint64)(__ccgo_up(bp)))[int32(2)] = (**(**[4]uint64)(__ccgo_up(bp)))[int32(1)] & uint64(0xffff) + **(**uint64)(__ccgo_up(bp + 1*8)) >>= uint64(16) + fallthrough + case int32(2): + (**(**[4]uint64)(__ccgo_up(bp)))[int32(3)] = (**(**[4]uint64)(__ccgo_up(bp)))[int32(2)] & uint64(0xff) + **(**uint64)(__ccgo_up(bp + 2*8)) >>= uint64(8) + } + i = 0 + for { + if !(i < int32(4)) { + break + } + if (**(**[4]uint64)(__ccgo_up(bp)))[i] > uint64(255) { + return 0 + } + **(**uint8)(__ccgo_up(d + uintptr(i))) = uint8((**(**[4]uint64)(__ccgo_up(bp)))[i]) + goto _2 + _2: + ; + i = i + 1 + } + return int32(1) +} + +func Xinet_aton(tls *TLS, s0 uintptr, dest uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s0=%v dest=%v, (%v:)", tls, s0, dest, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__inet_aton(tls, s0, dest) +} + +func Xinet_network(tls *TLS, p uintptr) (r Tin_addr_t) { + if __ccgo_strace { + trc("tls=%v p=%v, (%v:)", tls, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xntohl(tls, Xinet_addr(tls, p)) +} + +func Xinet_makeaddr(tls *TLS, n Tin_addr_t, h Tin_addr_t) (r Tin_addr) { + if __ccgo_strace { + trc("tls=%v n=%v h=%v, (%v:)", tls, n, h, origin(2)) + defer func() { trc("-> %v", r) }() + } + if n < uint32(256) { + h = h | n< %v", r) }() + } + var h Tuint32_t + _ = h + h = in.Fs_addr + if h>>int32(24) < uint32(128) { + return h & uint32(0xffffff) + } + if h>>int32(24) < uint32(192) { + return h & uint32(0xffff) + } + return h & uint32(0xff) +} + +func Xinet_netof(tls *TLS, in Tin_addr) (r Tin_addr_t) { + if __ccgo_strace { + trc("tls=%v in=%v, (%v:)", tls, in, origin(2)) + defer func() { trc("-> %v", r) }() + } + var h Tuint32_t + _ = h + h = in.Fs_addr + if h>>int32(24) < uint32(128) { + return h >> int32(24) + } + if h>>int32(24) < uint32(192) { + return h >> int32(16) + } + return h >> int32(8) +} + +func Xinet_ntoa(tls *TLS, _in Tin_addr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v _in=%v, (%v:)", tls, _in, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + *(*Tin_addr)(unsafe.Pointer(bp)) = _in + var a uintptr + _ = a + a = bp + Xsnprintf(tls, uintptr(unsafe.Pointer(&_buf4)), uint64(16), __ccgo_ts+1097, VaList(bp+16, Int32FromUint8(**(**uint8)(__ccgo_up(a))), Int32FromUint8(**(**uint8)(__ccgo_up(a + 1))), Int32FromUint8(**(**uint8)(__ccgo_up(a + 2))), Int32FromUint8(**(**uint8)(__ccgo_up(a + 3))))) + return uintptr(unsafe.Pointer(&_buf4)) +} + +var _buf4 [16]int8 + +func Xinet_ntop(tls *TLS, af int32, a0 uintptr, s uintptr, l Tsocklen_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v af=%v a0=%v s=%v l=%v, (%v:)", tls, af, a0, s, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(192) + defer tls.Free(192) + var a uintptr + var best, i, j, max, v2 int32 + var v3 int8 + var _ /* buf at bp+0 */ [100]int8 + _, _, _, _, _, _, _ = a, best, i, j, max, v2, v3 + a = a0 + switch af { + case int32(PF_INET): + if Uint32FromInt32(Xsnprintf(tls, s, uint64(l), __ccgo_ts+1097, VaList(bp+112, Int32FromUint8(**(**uint8)(__ccgo_up(a))), Int32FromUint8(**(**uint8)(__ccgo_up(a + 1))), Int32FromUint8(**(**uint8)(__ccgo_up(a + 2))), Int32FromUint8(**(**uint8)(__ccgo_up(a + 3)))))) < l { + return s + } + case int32(PF_INET6): + if Xmemcmp(tls, a, __ccgo_ts+1044, uint64(12)) != 0 { + Xsnprintf(tls, bp, uint64(100), __ccgo_ts+1109, VaList(bp+112, int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 1))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 2)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 3))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 4)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 5))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 6)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 7))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 8)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 9))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 10)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 11))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 12)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 13))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 14)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 15))))) + } else { + Xsnprintf(tls, bp, uint64(100), __ccgo_ts+1133, VaList(bp+112, int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 1))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 2)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 3))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 4)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 5))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 6)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 7))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 8)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 9))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 10)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 11))), Int32FromUint8(**(**uint8)(__ccgo_up(a + 12))), Int32FromUint8(**(**uint8)(__ccgo_up(a + 13))), Int32FromUint8(**(**uint8)(__ccgo_up(a + 14))), Int32FromUint8(**(**uint8)(__ccgo_up(a + 15))))) + } + /* Replace longest /(^0|:)[:0]{2,}/ with "::" */ + v2 = Int32FromInt32(0) + best = v2 + i = v2 + max = Int32FromInt32(2) + for { + if !((**(**[100]int8)(__ccgo_up(bp)))[i] != 0) { + break + } + if i != 0 && int32((**(**[100]int8)(__ccgo_up(bp)))[i]) != int32(':') { + goto _1 + } + j = Int32FromUint64(Xstrspn(tls, bp+uintptr(i), __ccgo_ts+1163)) + if j > max { + best = i + max = j + } + goto _1 + _1: + ; + i = i + 1 + } + if max > int32(3) { + v3 = Int8FromUint8(':') + (**(**[100]int8)(__ccgo_up(bp)))[best+int32(1)] = v3 + (**(**[100]int8)(__ccgo_up(bp)))[best] = v3 + Xmemmove(tls, bp+uintptr(best)+uintptr(2), bp+uintptr(best)+uintptr(max), Uint64FromInt32(i-best-max+int32(1))) + } + if _strlen(tls, bp) < uint64(l) { + Xstrcpy(tls, s, bp) + return s + } + default: + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EAFNOSUPPORT) + return uintptr(0) + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOSPC) + return uintptr(0) +} + +func _hexval(tls *TLS, c uint32) (r int32) { + if c-uint32('0') < uint32(10) { + return Int32FromUint32(c - uint32('0')) + } + c = c | uint32(32) + if c-uint32('a') < uint32(6) { + return Int32FromUint32(c - uint32('a') + uint32(10)) + } + return -int32(1) +} + +func Xinet_pton(tls *TLS, af int32, s uintptr, a0 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v af=%v s=%v a0=%v, (%v:)", tls, af, s, a0, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var a, v4 uintptr + var brk, d, i, j, need_v4, v, v3, v9 int32 + var v5 bool + var _ /* ip at bp+0 */ [8]Tuint16_t + _, _, _, _, _, _, _, _, _, _, _ = a, brk, d, i, j, need_v4, v, v3, v4, v5, v9 + a = a0 + brk = -int32(1) + need_v4 = 0 + if af == int32(PF_INET) { + i = 0 + for { + if !(i < int32(4)) { + break + } + v3 = Int32FromInt32(0) + j = v3 + v = v3 + for { + if !(j < int32(3) && BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(s + uintptr(j))))-uint32('0') < uint32(10)) != 0) { + break + } + v = int32(10)*v + int32(**(**int8)(__ccgo_up(s + uintptr(j)))) - int32('0') + goto _2 + _2: + ; + j = j + 1 + } + if j == 0 || j > int32(1) && int32(**(**int8)(__ccgo_up(s))) == int32('0') || v > int32(255) { + return 0 + } + **(**uint8)(__ccgo_up(a + uintptr(i))) = Uint8FromInt32(v) + if int32(**(**int8)(__ccgo_up(s + uintptr(j)))) == 0 && i == int32(3) { + return int32(1) + } + if int32(**(**int8)(__ccgo_up(s + uintptr(j)))) != int32('.') { + return 0 + } + s = s + uintptr(j+int32(1)) + goto _1 + _1: + ; + i = i + 1 + } + return 0 + } else { + if af != int32(PF_INET6) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EAFNOSUPPORT) + return -int32(1) + } + } + if v5 = int32(**(**int8)(__ccgo_up(s))) == int32(':'); v5 { + s = s + 1 + v4 = s + } + if v5 && int32(**(**int8)(__ccgo_up(v4))) != int32(':') { + return 0 + } + i = 0 + for { + if int32(**(**int8)(__ccgo_up(s))) == int32(':') && brk < 0 { + brk = i + (**(**[8]Tuint16_t)(__ccgo_up(bp)))[i&int32(7)] = uint16(0) + s = s + 1 + v4 = s + if !(**(**int8)(__ccgo_up(v4)) != 0) { + break + } + if i == int32(7) { + return 0 + } + goto _6 + } + v3 = Int32FromInt32(0) + j = v3 + v = v3 + for { + if v5 = j < int32(4); v5 { + v9 = _hexval(tls, Uint32FromInt8(**(**int8)(__ccgo_up(s + uintptr(j))))) + d = v9 + } + if !(v5 && v9 >= 0) { + break + } + v = int32(16)*v + d + goto _8 + _8: + ; + j = j + 1 + } + if j == 0 { + return 0 + } + (**(**[8]Tuint16_t)(__ccgo_up(bp)))[i&int32(7)] = Uint16FromInt32(v) + if !(**(**int8)(__ccgo_up(s + uintptr(j))) != 0) && (brk >= 0 || i == int32(7)) { + break + } + if i == int32(7) { + return 0 + } + if int32(**(**int8)(__ccgo_up(s + uintptr(j)))) != int32(':') { + if int32(**(**int8)(__ccgo_up(s + uintptr(j)))) != int32('.') || i < int32(6) && brk < 0 { + return 0 + } + need_v4 = int32(1) + i = i + 1 + (**(**[8]Tuint16_t)(__ccgo_up(bp)))[i&int32(7)] = uint16(0) + break + } + s = s + uintptr(j+int32(1)) + goto _6 + _6: + ; + i = i + 1 + } + if brk >= 0 { + Xmemmove(tls, bp+uintptr(brk)*2+uintptr(7)*2-uintptr(i)*2, bp+uintptr(brk)*2, Uint64FromInt32(int32(2)*(i+int32(1)-brk))) + j = 0 + for { + if !(j < int32(7)-i) { + break + } + (**(**[8]Tuint16_t)(__ccgo_up(bp)))[brk+j] = uint16(0) + goto _12 + _12: + ; + j = j + 1 + } + } + j = 0 + for { + if !(j < int32(8)) { + break + } + v4 = a + a = a + 1 + **(**uint8)(__ccgo_up(v4)) = Uint8FromInt32(Int32FromUint16((**(**[8]Tuint16_t)(__ccgo_up(bp)))[j]) >> int32(8)) + v4 = a + a = a + 1 + **(**uint8)(__ccgo_up(v4)) = uint8((**(**[8]Tuint16_t)(__ccgo_up(bp)))[j]) + goto _13 + _13: + ; + j = j + 1 + } + if need_v4 != 0 && Xinet_pton(tls, int32(PF_INET), s, a-uintptr(4)) <= 0 { + return 0 + } + return int32(1) +} + +func Xlisten(tls *TLS, fd int32, backlog int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v backlog=%v, (%v:)", tls, fd, backlog, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v8 int64 + var v1 int32 + var v2, v3, v4, v5, v6, v7 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _ = r, v1, v2, v3, v4, v5, v6, v7, v8 + v1 = int32(SYS_listen) + _ = int32(__SC_listen) + v2 = int64(fd) + v3 = int64(backlog) + v4 = int64(Int32FromInt32(0)) + v5 = int64(Int32FromInt32(0)) + v6 = int64(Int32FromInt32(0)) + v7 = int64(Int32FromInt32(0)) + if 0 != 0 { + r = ___syscall_cp(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _9 + } + v8 = r + goto _9 +_9: + return int32(X__syscall_ret(tls, Uint64FromInt64(v8))) +} + +func X__lookup_ipliteral(tls *TLS, buf uintptr, name uintptr, family int32) (r int32) { + if __ccgo_strace { + trc("tls=%v buf=%v name=%v family=%v, (%v:)", tls, buf, name, family, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(96) + defer tls.Free(96) + var p, v1 uintptr + var scopeid uint64 + var _ /* a4 at bp+0 */ Tin_addr + var _ /* a6 at bp+4 */ Tin6_addr + var _ /* tmp at bp+20 */ [64]int8 + var _ /* z at bp+88 */ uintptr + _, _, _ = p, scopeid, v1 + if X__inet_aton(tls, name, bp) > 0 { + if family == int32(PF_INET6) { /* wrong family */ + return -int32(5) + } + Xmemcpy(tls, buf+8, bp, uint64(4)) + (**(**Taddress)(__ccgo_up(buf))).Ffamily = int32(PF_INET) + (**(**Taddress)(__ccgo_up(buf))).Fscopeid = uint32(0) + return int32(1) + } + p = Xstrchr(tls, name, int32('%')) + scopeid = uint64(0) + if p != 0 && int64(p)-int64(name) < int64(64) { + Xmemcpy(tls, bp+20, name, Uint64FromInt64(int64(p)-int64(name))) + (**(**[64]int8)(__ccgo_up(bp + 20)))[int64(p)-int64(name)] = 0 + name = bp + 20 + } + if Xinet_pton(tls, int32(PF_INET6), name, bp+4) <= 0 { + return 0 + } + if family == int32(PF_INET) { /* wrong family */ + return -int32(5) + } + Xmemcpy(tls, buf+8, bp+4, uint64(16)) + (**(**Taddress)(__ccgo_up(buf))).Ffamily = int32(PF_INET6) + if p != 0 { + p = p + 1 + v1 = p + if BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(v1)))-uint32('0') < uint32(10)) != 0 { + scopeid = Xstrtoull(tls, p, bp+88, int32(10)) + } else { + **(**uintptr)(__ccgo_up(bp + 88)) = p - uintptr(1) + } + if **(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 88)))) != 0 { + if !(Int32FromUint8(**(**Tuint8_t)(__ccgo_up(bp + 4))) == int32(0xfe) && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(bp + 4 + 1)))&int32(0xc0) == int32(0x80)) && !(Int32FromUint8(**(**Tuint8_t)(__ccgo_up(bp + 4))) == int32(0xff) && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(bp + 4 + 1)))&int32(0xf) == int32(0x2)) { + return -int32(2) + } + scopeid = uint64(Xif_nametoindex(tls, p)) + if !(scopeid != 0) { + return -int32(2) + } + } + if scopeid > uint64(0xffffffff) { + return -int32(2) + } + } + (**(**Taddress)(__ccgo_up(buf))).Fscopeid = uint32(scopeid) + return int32(1) +} + +const ABUF_SIZE = 4800 +const DAS_MATCHINGLABEL = 268435456 +const DAS_MATCHINGSCOPE = 536870912 +const DAS_ORDER_SHIFT = 0 +const DAS_PREC_SHIFT = 20 +const DAS_PREFIX_SHIFT = 8 +const DAS_SCOPE_SHIFT = 16 +const DAS_USABLE = 1073741824 +const RR_A = 1 +const RR_AAAA = 28 +const RR_CNAME = 5 + +func _is_valid_hostname(tls *TLS, host uintptr) (r int32) { + var s uintptr + _ = s + if Xstrnlen(tls, host, uint64(255))-uint64(1) >= uint64(254) || Xmbstowcs(tls, uintptr(0), host, uint64(0)) == Uint64FromInt32(-Int32FromInt32(1)) { + return 0 + } + s = host + for { + if !(Int32FromUint8(**(**uint8)(__ccgo_up(s))) >= int32(0x80) || Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('.') || Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('-') || Xisalnum(tls, Int32FromUint8(**(**uint8)(__ccgo_up(s)))) != 0) { + break + } + goto _1 + _1: + ; + s = s + 1 + } + return BoolInt32(!(**(**uint8)(__ccgo_up(s)) != 0)) +} + +func _name_from_null(tls *TLS, buf uintptr, name uintptr, family int32, flags int32) (r int32) { + var cnt, v1 int32 + _, _ = cnt, v1 + cnt = 0 + if name != 0 { + return 0 + } + if flags&int32(AI_PASSIVE) != 0 { + if family != int32(PF_INET6) { + v1 = cnt + cnt = cnt + 1 + **(**Taddress)(__ccgo_up(buf + uintptr(v1)*28)) = Taddress{ + Ffamily: int32(PF_INET), + } + } + if family != int32(PF_INET) { + v1 = cnt + cnt = cnt + 1 + **(**Taddress)(__ccgo_up(buf + uintptr(v1)*28)) = Taddress{ + Ffamily: int32(PF_INET6), + } + } + } else { + if family != int32(PF_INET6) { + v1 = cnt + cnt = cnt + 1 + **(**Taddress)(__ccgo_up(buf + uintptr(v1)*28)) = Taddress{ + Ffamily: int32(PF_INET), + Faddr: [16]Tuint8_t{ + 0: uint8(127), + 3: uint8(1), + }, + } + } + if family != int32(PF_INET) { + v1 = cnt + cnt = cnt + 1 + **(**Taddress)(__ccgo_up(buf + uintptr(v1)*28)) = Taddress{ + Ffamily: int32(PF_INET6), + Faddr: [16]Tuint8_t{ + 15: uint8(1), + }, + } + } + } + return cnt +} + +func _name_from_numeric(tls *TLS, buf uintptr, name uintptr, family int32) (r int32) { + return X__lookup_ipliteral(tls, buf, name, family) +} + +func _name_from_hosts(tls *TLS, buf uintptr, canon uintptr, name uintptr, family int32) (r int32) { + bp := tls.Alloc(1776) + defer tls.Free(1776) + var badfam, cnt, have_canon, v5, v6, v8, v9 int32 + var f, p, z, v1, v2 uintptr + var l Tsize_t + var v11, v12 bool + var _ /* _buf at bp+512 */ [1032]uint8 + var _ /* _f at bp+1544 */ TFILE + var _ /* line at bp+0 */ [512]int8 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = badfam, cnt, f, have_canon, l, p, z, v1, v11, v12, v2, v5, v6, v8, v9 + l = _strlen(tls, name) + cnt = 0 + badfam = 0 + have_canon = 0 + f = X__fopen_rb_ca(tls, __ccgo_ts+1033, bp+1544, bp+512, uint64(1032)) + if !(f != 0) { + switch **(**int32)(__ccgo_up(X__errno_location(tls))) { + case int32(ENOENT): + fallthrough + case int32(ENOTDIR): + fallthrough + case int32(EACCES): + return 0 + default: + return -int32(11) + } + } + for Xfgets(tls, bp, int32(512), f) != 0 && cnt < int32(MAXADDRS) { + v1 = Xstrchr(tls, bp, int32('#')) + p = v1 + if v1 != 0 { + v2 = p + p = p + 1 + **(**int8)(__ccgo_up(v2)) = int8('\n') + **(**int8)(__ccgo_up(p)) = Int8FromInt32(0) + } + p = bp + uintptr(1) + for { + v1 = Xstrstr(tls, p, name) + p = v1 + if v12 = v1 != 0; v12 { + v5 = int32(**(**int8)(__ccgo_up(p + uintptr(-Int32FromInt32(1))))) + v6 = BoolInt32(v5 == int32(' ') || Uint32FromInt32(v5)-uint32('\t') < uint32(5)) + goto _7 + _7: + ; + if v11 = !(v6 != 0); !v11 { + v8 = int32(**(**int8)(__ccgo_up(p + uintptr(l)))) + v9 = BoolInt32(v8 == int32(' ') || Uint32FromInt32(v8)-uint32('\t') < uint32(5)) + goto _10 + _10: + } + } + if !(v12 && (v11 || !(v9 != 0))) { + break + } + goto _3 + _3: + ; + p = p + 1 + } + if !(p != 0) { + continue + } + /* Isolate IP address to parse */ + p = bp + for { + if v11 = **(**int8)(__ccgo_up(p)) != 0; v11 { + v5 = int32(**(**int8)(__ccgo_up(p))) + v6 = BoolInt32(v5 == int32(' ') || Uint32FromInt32(v5)-uint32('\t') < uint32(5)) + goto _16 + _16: + } + if !(v11 && !(v6 != 0)) { + break + } + goto _13 + _13: + ; + p = p + 1 + } + v1 = p + p = p + 1 + **(**int8)(__ccgo_up(v1)) = 0 + switch _name_from_numeric(tls, buf+uintptr(cnt)*28, bp, family) { + case int32(1): + cnt = cnt + 1 + case 0: + continue + default: + badfam = -int32(5) + break + } + if have_canon != 0 { + continue + } + /* Extract first name as canonical name */ + for { + if v11 = **(**int8)(__ccgo_up(p)) != 0; v11 { + v5 = int32(**(**int8)(__ccgo_up(p))) + v6 = BoolInt32(v5 == int32(' ') || Uint32FromInt32(v5)-uint32('\t') < uint32(5)) + goto _22 + _22: + } + if !(v11 && v6 != 0) { + break + } + goto _19 + _19: + ; + p = p + 1 + } + z = p + for { + if v11 = **(**int8)(__ccgo_up(z)) != 0; v11 { + v5 = int32(**(**int8)(__ccgo_up(z))) + v6 = BoolInt32(v5 == int32(' ') || Uint32FromInt32(v5)-uint32('\t') < uint32(5)) + goto _27 + _27: + } + if !(v11 && !(v6 != 0)) { + break + } + goto _24 + _24: + ; + z = z + 1 + } + **(**int8)(__ccgo_up(z)) = 0 + if _is_valid_hostname(tls, p) != 0 { + have_canon = int32(1) + Xmemcpy(tls, canon, p, Uint64FromInt64(int64(z)-int64(p)+int64(1))) + } + } + X__fclose_ca(tls, f) + if cnt != 0 { + v5 = cnt + } else { + v5 = badfam + } + return v5 +} + +type Tdpc_ctx = struct { + Faddrs uintptr + Fcanon uintptr + Fcnt int32 + Frrtype int32 +} + +func _dns_parse_callback1(tls *TLS, c uintptr, rr int32, data uintptr, len1 int32, packet uintptr, plen int32) (r int32) { + bp := tls.Alloc(256) + defer tls.Free(256) + var ctx, v2 uintptr + var family, v1 int32 + var _ /* tmp at bp+0 */ [256]int8 + _, _, _, _ = ctx, family, v1, v2 + ctx = c + if rr == int32(RR_CNAME) { + if X__dn_expand(tls, packet, packet+uintptr(plen), data, bp, int32(256)) > 0 && _is_valid_hostname(tls, bp) != 0 { + Xstrcpy(tls, (*Tdpc_ctx)(unsafe.Pointer(ctx)).Fcanon, bp) + } + return 0 + } + if (*Tdpc_ctx)(unsafe.Pointer(ctx)).Fcnt >= int32(MAXADDRS) { + return 0 + } + if rr != (*Tdpc_ctx)(unsafe.Pointer(ctx)).Frrtype { + return 0 + } + switch rr { + case int32(RR_A): + if len1 != int32(4) { + return -int32(1) + } + family = int32(PF_INET) + case int32(RR_AAAA): + if len1 != int32(16) { + return -int32(1) + } + family = int32(PF_INET6) + break + } + (**(**Taddress)(__ccgo_up((*Tdpc_ctx)(unsafe.Pointer(ctx)).Faddrs + uintptr((*Tdpc_ctx)(unsafe.Pointer(ctx)).Fcnt)*28))).Ffamily = family + (**(**Taddress)(__ccgo_up((*Tdpc_ctx)(unsafe.Pointer(ctx)).Faddrs + uintptr((*Tdpc_ctx)(unsafe.Pointer(ctx)).Fcnt)*28))).Fscopeid = uint32(0) + v2 = ctx + 16 + v1 = *(*int32)(unsafe.Pointer(v2)) + *(*int32)(unsafe.Pointer(v2)) = *(*int32)(unsafe.Pointer(v2)) + 1 + Xmemcpy(tls, (*Tdpc_ctx)(unsafe.Pointer(ctx)).Faddrs+uintptr(v1)*28+8, data, Uint64FromInt32(len1)) + return 0 +} + +func _name_from_dns(tls *TLS, buf uintptr, canon uintptr, name uintptr, family int32, conf uintptr) (r int32) { + bp := tls.Alloc(10240) + defer tls.Free(10240) + var i, nq int32 + var qtypes [2]int32 + var _ /* abuf at bp+560 */ [2][4800]uint8 + var _ /* alens at bp+10200 */ [2]int32 + var _ /* ap at bp+10176 */ [2]uintptr + var _ /* ctx at bp+10208 */ Tdpc_ctx + var _ /* qbuf at bp+0 */ [2][280]uint8 + var _ /* qlens at bp+10192 */ [2]int32 + var _ /* qp at bp+10160 */ [2]uintptr + _, _, _ = i, nq, qtypes + **(**[2]uintptr)(__ccgo_up(bp + 10160)) = [2]uintptr{ + 0: bp, + 1: bp + 1*280, + } + **(**[2]uintptr)(__ccgo_up(bp + 10176)) = [2]uintptr{ + 0: bp + 560, + 1: bp + 560 + 1*4800, + } + nq = 0 + **(**Tdpc_ctx)(__ccgo_up(bp + 10208)) = Tdpc_ctx{ + Faddrs: buf, + Fcanon: canon, + } + i = 0 + for { + if !(i < int32(2)) { + break + } + if family != _afrr[i].Faf { + (**(**[2]int32)(__ccgo_up(bp + 10192)))[nq] = X__res_mkquery(tls, 0, name, int32(1), _afrr[i].Frr, uintptr(0), 0, uintptr(0), bp+uintptr(nq)*280, int32(280)) + if (**(**[2]int32)(__ccgo_up(bp + 10192)))[nq] == -int32(1) { + return 0 + } + qtypes[nq] = _afrr[i].Frr + **(**uint8)(__ccgo_up(bp + uintptr(nq)*280 + 3)) = uint8(0) /* don't need AD flag */ + /* Ensure query IDs are distinct. */ + if nq != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(bp + uintptr(nq)*280))) == Int32FromUint8(**(**uint8)(__ccgo_up(bp))) { + **(**uint8)(__ccgo_up(bp + uintptr(nq)*280)) = **(**uint8)(__ccgo_up(bp + uintptr(nq)*280)) + 1 + } + nq = nq + 1 + } + goto _1 + _1: + ; + i = i + 1 + } + if X__res_msend_rc(tls, nq, bp+10160, bp+10192, bp+10176, bp+10200, int32(4800), conf) < 0 { + return -int32(11) + } + i = 0 + for { + if !(i < nq) { + break + } + if (**(**[2]int32)(__ccgo_up(bp + 10200)))[i] < int32(4) || Int32FromUint8(**(**uint8)(__ccgo_up(bp + 560 + uintptr(i)*4800 + 3)))&int32(15) == int32(2) { + return -int32(3) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(bp + 560 + uintptr(i)*4800 + 3)))&int32(15) == int32(3) { + return 0 + } + if Int32FromUint8(**(**uint8)(__ccgo_up(bp + 560 + uintptr(i)*4800 + 3)))&int32(15) != 0 { + return -int32(4) + } + goto _2 + _2: + ; + i = i + 1 + } + i = nq - int32(1) + for { + if !(i >= 0) { + break + } + (**(**Tdpc_ctx)(__ccgo_up(bp + 10208))).Frrtype = qtypes[i] + if Uint64FromInt32((**(**[2]int32)(__ccgo_up(bp + 10200)))[i]) > uint64(4800) { + (**(**[2]int32)(__ccgo_up(bp + 10200)))[i] = int32(4800) + } + X__dns_parse(tls, bp+560+uintptr(i)*4800, (**(**[2]int32)(__ccgo_up(bp + 10200)))[i], __ccgo_fp(_dns_parse_callback1), bp+10208) + goto _3 + _3: + ; + i = i - 1 + } + if (**(**Tdpc_ctx)(__ccgo_up(bp + 10208))).Fcnt != 0 { + return (**(**Tdpc_ctx)(__ccgo_up(bp + 10208))).Fcnt + } + return -int32(5) +} + +var _afrr = [2]struct { + Faf int32 + Frr int32 +}{ + 0: { + Faf: int32(PF_INET6), + Frr: int32(RR_A), + }, + 1: { + Faf: int32(PF_INET), + Frr: int32(RR_AAAA), + }, +} + +func _name_from_dns_search(tls *TLS, buf uintptr, canon uintptr, name uintptr, family int32) (r int32) { + bp := tls.Alloc(368) + defer tls.Free(368) + var cnt, v5, v6 int32 + var dots, l, v2 Tsize_t + var p, z uintptr + var v12 bool + var _ /* conf at bp+256 */ Tresolvconf + var _ /* search at bp+0 */ [256]int8 + _, _, _, _, _, _, _, _, _ = cnt, dots, l, p, z, v12, v2, v5, v6 + if X__get_resolv_conf(tls, bp+256, bp, uint64(256)) < 0 { + return -int32(1) + } + /* Count dots, suppress search when >=ndots or name ends in + * a dot, which is an explicit request for global scope. */ + v2 = Uint64FromInt32(0) + l = v2 + dots = v2 + for { + if !(**(**int8)(__ccgo_up(name + uintptr(l))) != 0) { + break + } + if int32(**(**int8)(__ccgo_up(name + uintptr(l)))) == int32('.') { + dots = dots + 1 + } + goto _1 + _1: + ; + l = l + 1 + } + if dots >= uint64((**(**Tresolvconf)(__ccgo_up(bp + 256))).Fndots) || int32(**(**int8)(__ccgo_up(name + uintptr(l-uint64(1))))) == int32('.') { + **(**int8)(__ccgo_up(bp)) = 0 + } + /* Strip final dot for canon, fail if multiple trailing dots. */ + if int32(**(**int8)(__ccgo_up(name + uintptr(l-uint64(1))))) == int32('.') { + l = l - 1 + } + if !(l != 0) || int32(**(**int8)(__ccgo_up(name + uintptr(l-uint64(1))))) == int32('.') { + return -int32(2) + } + /* This can never happen; the caller already checked length. */ + if l >= uint64(256) { + return -int32(2) + } + /* Name with search domain appended is setup in canon[]. This both + * provides the desired default canonical name (if the requested + * name is not a CNAME record) and serves as a buffer for passing + * the full requested name to name_from_dns. */ + Xmemcpy(tls, canon, name, l) + **(**int8)(__ccgo_up(canon + uintptr(l))) = int8('.') + p = bp + for { + if !(**(**int8)(__ccgo_up(p)) != 0) { + break + } + for { + v5 = int32(**(**int8)(__ccgo_up(p))) + v6 = BoolInt32(v5 == int32(' ') || Uint32FromInt32(v5)-uint32('\t') < uint32(5)) + goto _7 + _7: + if !(v6 != 0) { + break + } + goto _4 + _4: + ; + p = p + 1 + } + z = p + for { + if v12 = **(**int8)(__ccgo_up(z)) != 0; v12 { + v5 = int32(**(**int8)(__ccgo_up(z))) + v6 = BoolInt32(v5 == int32(' ') || Uint32FromInt32(v5)-uint32('\t') < uint32(5)) + goto _11 + _11: + } + if !(v12 && !(v6 != 0)) { + break + } + goto _8 + _8: + ; + z = z + 1 + } + if z == p { + break + } + if Uint64FromInt64(int64(z)-int64(p)) < uint64(256)-l-uint64(1) { + Xmemcpy(tls, canon+uintptr(l)+uintptr(1), p, Uint64FromInt64(int64(z)-int64(p))) + **(**int8)(__ccgo_up(canon + uintptr(Uint64FromInt64(int64(z)-int64(p)+int64(1))+l))) = 0 + cnt = _name_from_dns(tls, buf, canon, canon, family, bp+256) + if cnt != 0 { + return cnt + } + } + goto _3 + _3: + ; + p = z + } + **(**int8)(__ccgo_up(canon + uintptr(l))) = 0 + return _name_from_dns(tls, buf, canon, name, family, bp+256) +} + +type Tpolicy = struct { + Faddr [16]uint8 + Flen1 uint8 + Fmask uint8 + Fprec uint8 + Flabel uint8 +} + +var _defpolicy = [6]Tpolicy{ + 0: { + Faddr: [16]uint8{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1}, + Flen1: uint8(15), + Fmask: uint8(0xff), + Fprec: uint8(50), + }, + 1: { + Faddr: [16]uint8{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255}, + Flen1: uint8(11), + Fmask: uint8(0xff), + Fprec: uint8(35), + Flabel: uint8(4), + }, + 2: { + Faddr: [16]uint8{' ', 2}, + Flen1: uint8(1), + Fmask: uint8(0xff), + Fprec: uint8(30), + Flabel: uint8(2), + }, + 3: { + Faddr: [16]uint8{' ', 1}, + Flen1: uint8(3), + Fmask: uint8(0xff), + Fprec: uint8(5), + Flabel: uint8(5), + }, + 4: { + Faddr: [16]uint8{252}, + Fmask: uint8(0xfe), + Fprec: uint8(3), + Flabel: uint8(13), + }, + 5: { + Faddr: [16]uint8{}, + Fprec: uint8(40), + Flabel: uint8(1), + }, +} + +func _policyof(tls *TLS, a uintptr) (r uintptr) { + var i int32 + _ = i + i = 0 + for { + if Xmemcmp(tls, a, uintptr(unsafe.Pointer(&_defpolicy))+uintptr(i)*20, uint64(_defpolicy[i].Flen1)) != 0 { + goto _1 + } + if Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a + uintptr(_defpolicy[i].Flen1))))&Int32FromUint8(_defpolicy[i].Fmask) != Int32FromUint8(**(**uint8)(__ccgo_up(uintptr(unsafe.Pointer(&_defpolicy)) + uintptr(i)*20 + uintptr(_defpolicy[i].Flen1)))) { + goto _1 + } + return uintptr(unsafe.Pointer(&_defpolicy)) + uintptr(i)*20 + goto _1 + _1: + ; + i = i + 1 + } + return r +} + +func _labelof(tls *TLS, a uintptr) (r int32) { + return Int32FromUint8((*Tpolicy)(unsafe.Pointer(_policyof(tls, a))).Flabel) +} + +func _scopeof(tls *TLS, a uintptr) (r int32) { + if Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a))) == int32(0xff) { + return Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a + 1))) & int32(15) + } + if Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a))) == int32(0xfe) && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a + 1)))&int32(0xc0) == int32(0x80) { + return int32(2) + } + if **(**Tuint32_t)(__ccgo_up(a)) == uint32(0) && **(**Tuint32_t)(__ccgo_up(a + 1*4)) == uint32(0) && **(**Tuint32_t)(__ccgo_up(a + 2*4)) == uint32(0) && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a + 12))) == 0 && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a + 13))) == 0 && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a + 14))) == 0 && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a + 15))) == int32(1) { + return int32(2) + } + if Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a))) == int32(0xfe) && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a + 1)))&int32(0xc0) == int32(0xc0) { + return int32(5) + } + return int32(14) +} + +func _prefixmatch(tls *TLS, s uintptr, d uintptr) (r int32) { + var i uint32 + _ = i + i = uint32(0) + for { + if !(i < uint32(128) && !((Int32FromUint8(**(**Tuint8_t)(__ccgo_up(s + uintptr(i/uint32(8)))))^Int32FromUint8(**(**Tuint8_t)(__ccgo_up(d + uintptr(i/uint32(8))))))&(Int32FromInt32(128)>>(i%Uint32FromInt32(8))) != 0)) { + break + } + goto _1 + _1: + ; + i = i + 1 + } + return Int32FromUint32(i) +} + +func _addrcmp(tls *TLS, _a uintptr, _b uintptr) (r int32) { + var a, b uintptr + _, _ = a, b + a = _a + b = _b + return (*Taddress)(unsafe.Pointer(b)).Fsortkey - (*Taddress)(unsafe.Pointer(a)).Fsortkey +} + +func X__lookup_name(tls *TLS, buf uintptr, canon uintptr, name uintptr, family int32, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v buf=%v canon=%v name=%v family=%v flags=%v, (%v:)", tls, buf, canon, name, family, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(96) + defer tls.Free(96) + var cnt, dlabel, dprec, dscope, family1, fd, i, j, key, prefixlen, v1 int32 + var da, dpolicy, sa uintptr + var dalen Tsocklen_t + var l Tsize_t + var _ /* cs at bp+0 */ int32 + var _ /* da4 at bp+76 */ Tsockaddr_in + var _ /* da6 at bp+32 */ Tsockaddr_in6 + var _ /* sa4 at bp+60 */ Tsockaddr_in + var _ /* sa6 at bp+4 */ Tsockaddr_in6 + var _ /* salen at bp+92 */ Tsocklen_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = cnt, da, dalen, dlabel, dpolicy, dprec, dscope, family1, fd, i, j, key, l, prefixlen, sa, v1 + cnt = 0 + **(**int8)(__ccgo_up(canon)) = 0 + if name != 0 { + /* reject empty name and check len so it fits into temp bufs */ + l = Xstrnlen(tls, name, uint64(255)) + if l-uint64(1) >= uint64(254) { + return -int32(2) + } + Xmemcpy(tls, canon, name, l+uint64(1)) + } + /* Procedurally, a request for v6 addresses with the v4-mapped + * flag set is like a request for unspecified family, followed + * by filtering of the results. */ + if flags&int32(AI_V4MAPPED) != 0 { + if family == int32(PF_INET6) { + family = PF_UNSPEC + } else { + flags = flags - int32(AI_V4MAPPED) + } + } + /* Try each backend until there's at least one result. */ + cnt = _name_from_null(tls, buf, name, family, flags) + if !(cnt != 0) { + cnt = _name_from_numeric(tls, buf, name, family) + } + if !(cnt != 0) && !(flags&Int32FromInt32(AI_NUMERICHOST) != 0) { + cnt = _name_from_hosts(tls, buf, canon, name, family) + if !(cnt != 0) { + cnt = _name_from_dns_search(tls, buf, canon, name, family) + } + } + if cnt <= 0 { + if cnt != 0 { + v1 = cnt + } else { + v1 = -int32(2) + } + return v1 + } + /* Filter/transform results for v4-mapped lookup, if requested. */ + if flags&int32(AI_V4MAPPED) != 0 { + if !(flags&Int32FromInt32(AI_ALL) != 0) { + /* If any v6 results exist, remove v4 results. */ + i = 0 + for { + if !(i < cnt && (**(**Taddress)(__ccgo_up(buf + uintptr(i)*28))).Ffamily != int32(PF_INET6)) { + break + } + goto _2 + _2: + ; + i = i + 1 + } + if i < cnt { + j = 0 + for { + if !(i < cnt) { + break + } + if (**(**Taddress)(__ccgo_up(buf + uintptr(i)*28))).Ffamily == int32(PF_INET6) { + v1 = j + j = j + 1 + **(**Taddress)(__ccgo_up(buf + uintptr(v1)*28)) = **(**Taddress)(__ccgo_up(buf + uintptr(i)*28)) + } + goto _3 + _3: + ; + i = i + 1 + } + v1 = j + i = v1 + cnt = v1 + } + } + /* Translate any remaining v4 results to v6 */ + i = 0 + for { + if !(i < cnt) { + break + } + if (**(**Taddress)(__ccgo_up(buf + uintptr(i)*28))).Ffamily != int32(PF_INET) { + goto _6 + } + Xmemcpy(tls, buf+uintptr(i)*28+8+uintptr(12), buf+uintptr(i)*28+8, uint64(4)) + Xmemcpy(tls, buf+uintptr(i)*28+8, __ccgo_ts+1044, uint64(12)) + (**(**Taddress)(__ccgo_up(buf + uintptr(i)*28))).Ffamily = int32(PF_INET6) + goto _6 + _6: + ; + i = i + 1 + } + } + /* No further processing is needed if there are fewer than 2 + * results or if there are only IPv4 results. */ + if cnt < int32(2) || family == int32(PF_INET) { + return cnt + } + i = 0 + for { + if !(i < cnt) { + break + } + if (**(**Taddress)(__ccgo_up(buf + uintptr(i)*28))).Ffamily != int32(PF_INET) { + break + } + goto _7 + _7: + ; + i = i + 1 + } + if i == cnt { + return cnt + } + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp) + /* The following implements a subset of RFC 3484/6724 destination + * address selection by generating a single 31-bit sort key for + * each address. Rules 3, 4, and 7 are omitted for having + * excessive runtime and code size cost and dubious benefit. + * So far the label/precedence table cannot be customized. */ + i = 0 + for { + if !(i < cnt) { + break + } + family1 = (**(**Taddress)(__ccgo_up(buf + uintptr(i)*28))).Ffamily + key = 0 + **(**Tsockaddr_in6)(__ccgo_up(bp + 4)) = Tsockaddr_in6{} + **(**Tsockaddr_in6)(__ccgo_up(bp + 32)) = Tsockaddr_in6{ + Fsin6_family: uint16(PF_INET6), + Fsin6_port: uint16(65535), + Fsin6_scope_id: (**(**Taddress)(__ccgo_up(buf + uintptr(i)*28))).Fscopeid, + } + **(**Tsockaddr_in)(__ccgo_up(bp + 60)) = Tsockaddr_in{} + **(**Tsockaddr_in)(__ccgo_up(bp + 76)) = Tsockaddr_in{ + Fsin_family: uint16(PF_INET), + Fsin_port: uint16(65535), + } + if family1 == int32(PF_INET6) { + Xmemcpy(tls, bp+32+8, buf+uintptr(i)*28+8, uint64(16)) + da = bp + 32 + dalen = uint32(28) + sa = bp + 4 + **(**Tsocklen_t)(__ccgo_up(bp + 92)) = uint32(28) + } else { + Xmemcpy(tls, bp+4+8, __ccgo_ts+1044, uint64(12)) + Xmemcpy(tls, bp+32+8+uintptr(12), buf+uintptr(i)*28+8, uint64(4)) + Xmemcpy(tls, bp+32+8, __ccgo_ts+1044, uint64(12)) + Xmemcpy(tls, bp+32+8+uintptr(12), buf+uintptr(i)*28+8, uint64(4)) + Xmemcpy(tls, bp+76+4, buf+uintptr(i)*28+8, uint64(4)) + da = bp + 76 + dalen = uint32(16) + sa = bp + 60 + **(**Tsocklen_t)(__ccgo_up(bp + 92)) = uint32(16) + } + dpolicy = _policyof(tls, bp+32+8) + dscope = _scopeof(tls, bp+32+8) + dlabel = Int32FromUint8((*Tpolicy)(unsafe.Pointer(dpolicy)).Flabel) + dprec = Int32FromUint8((*Tpolicy)(unsafe.Pointer(dpolicy)).Fprec) + prefixlen = 0 + fd = Xsocket(tls, family1, Int32FromInt32(SOCK_DGRAM)|Int32FromInt32(SOCK_CLOEXEC), int32(IPPROTO_UDP)) + if fd >= 0 { + if !(Xconnect(tls, fd, da, dalen) != 0) { + key = key | int32(DAS_USABLE) + if !(Xgetsockname(tls, fd, sa, bp+92) != 0) { + if family1 == int32(PF_INET) { + Xmemcpy(tls, bp+4+8+uintptr(12), bp+60+4, uint64(4)) + } + if dscope == _scopeof(tls, bp+4+8) { + key = key | int32(DAS_MATCHINGSCOPE) + } + if dlabel == _labelof(tls, bp+4+8) { + key = key | int32(DAS_MATCHINGLABEL) + } + prefixlen = _prefixmatch(tls, bp+4+8, bp+32+8) + } + } + Xclose(tls, fd) + } + key = key | dprec< %v", r) }() + } + bp := tls.Alloc(1408) + defer tls.Free(1408) + var cnt, v1, v2 int32 + var f, p, v3, v4 uintptr + var l Tsize_t + var port uint64 + var v10 bool + var _ /* _buf at bp+136 */ [1032]uint8 + var _ /* _f at bp+1168 */ TFILE + var _ /* line at bp+0 */ [128]int8 + var _ /* z at bp+128 */ uintptr + _, _, _, _, _, _, _, _, _, _ = cnt, f, l, p, port, v1, v10, v2, v3, v4 + cnt = 0 + **(**uintptr)(__ccgo_up(bp + 128)) = __ccgo_ts + port = uint64(0) + switch socktype { + case int32(SOCK_STREAM): + switch proto { + case 0: + proto = int32(IPPROTO_TCP) + fallthrough + case int32(IPPROTO_TCP): + default: + return -int32(8) + } + case int32(SOCK_DGRAM): + switch proto { + case 0: + proto = int32(IPPROTO_UDP) + fallthrough + case int32(IPPROTO_UDP): + default: + return -int32(8) + } + fallthrough + case 0: + default: + if name != 0 { + return -int32(8) + } + (**(**Tservice)(__ccgo_up(buf))).Fport = uint16(0) + (**(**Tservice)(__ccgo_up(buf))).Fproto = Uint8FromInt32(proto) + (**(**Tservice)(__ccgo_up(buf))).Fsocktype = Uint8FromInt32(socktype) + return int32(1) + } + if name != 0 { + if !(**(**int8)(__ccgo_up(name)) != 0) { + return -int32(8) + } + port = Xstrtoul(tls, name, bp+128, int32(10)) + } + if !(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 128)))) != 0) { + if port > uint64(65535) { + return -int32(8) + } + if proto != int32(IPPROTO_UDP) { + (**(**Tservice)(__ccgo_up(buf + uintptr(cnt)*4))).Fport = uint16(port) + (**(**Tservice)(__ccgo_up(buf + uintptr(cnt)*4))).Fsocktype = uint8(SOCK_STREAM) + v1 = cnt + cnt = cnt + 1 + (**(**Tservice)(__ccgo_up(buf + uintptr(v1)*4))).Fproto = uint8(IPPROTO_TCP) + } + if proto != int32(IPPROTO_TCP) { + (**(**Tservice)(__ccgo_up(buf + uintptr(cnt)*4))).Fport = uint16(port) + (**(**Tservice)(__ccgo_up(buf + uintptr(cnt)*4))).Fsocktype = uint8(SOCK_DGRAM) + v1 = cnt + cnt = cnt + 1 + (**(**Tservice)(__ccgo_up(buf + uintptr(v1)*4))).Fproto = uint8(IPPROTO_UDP) + } + return cnt + } + if flags&int32(AI_NUMERICSERV) != 0 { + return -int32(2) + } + l = _strlen(tls, name) + f = X__fopen_rb_ca(tls, __ccgo_ts+1057, bp+1168, bp+136, uint64(1032)) + if !(f != 0) { + switch **(**int32)(__ccgo_up(X__errno_location(tls))) { + case int32(ENOENT): + fallthrough + case int32(ENOTDIR): + fallthrough + case int32(EACCES): + return -int32(8) + default: + return -int32(11) + } + } + for Xfgets(tls, bp, int32(128), f) != 0 && cnt < int32(MAXSERVS) { + v3 = Xstrchr(tls, bp, int32('#')) + p = v3 + if v3 != 0 { + v4 = p + p = p + 1 + **(**int8)(__ccgo_up(v4)) = int8('\n') + **(**int8)(__ccgo_up(p)) = Int8FromInt32(0) + } + /* Find service name */ + p = bp + for { + v3 = Xstrstr(tls, p, name) + p = v3 + if !(v3 != 0) { + break + } + if v10 = p > bp; v10 { + v1 = int32(**(**int8)(__ccgo_up(p + uintptr(-Int32FromInt32(1))))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _9 + _9: + } + if v10 && !(v2 != 0) { + goto _5 + } + if v10 = **(**int8)(__ccgo_up(p + uintptr(l))) != 0; v10 { + v1 = int32(**(**int8)(__ccgo_up(p + uintptr(l)))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _13 + _13: + } + if v10 && !(v2 != 0) { + goto _5 + } + break + goto _5 + _5: + ; + p = p + 1 + } + if !(p != 0) { + continue + } + /* Skip past canonical name at beginning of line */ + p = bp + for { + if v10 = **(**int8)(__ccgo_up(p)) != 0; v10 { + v1 = int32(**(**int8)(__ccgo_up(p))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _18 + _18: + } + if !(v10 && !(v2 != 0)) { + break + } + goto _15 + _15: + ; + p = p + 1 + } + port = Xstrtoul(tls, p, bp+128, int32(10)) + if port > uint64(65535) || **(**uintptr)(__ccgo_up(bp + 128)) == p { + continue + } + if !(Xstrncmp(tls, **(**uintptr)(__ccgo_up(bp + 128)), __ccgo_ts+1071, uint64(4)) != 0) { + if proto == int32(IPPROTO_TCP) { + continue + } + (**(**Tservice)(__ccgo_up(buf + uintptr(cnt)*4))).Fport = uint16(port) + (**(**Tservice)(__ccgo_up(buf + uintptr(cnt)*4))).Fsocktype = uint8(SOCK_DGRAM) + v1 = cnt + cnt = cnt + 1 + (**(**Tservice)(__ccgo_up(buf + uintptr(v1)*4))).Fproto = uint8(IPPROTO_UDP) + } + if !(Xstrncmp(tls, **(**uintptr)(__ccgo_up(bp + 128)), __ccgo_ts+1076, uint64(4)) != 0) { + if proto == int32(IPPROTO_UDP) { + continue + } + (**(**Tservice)(__ccgo_up(buf + uintptr(cnt)*4))).Fport = uint16(port) + (**(**Tservice)(__ccgo_up(buf + uintptr(cnt)*4))).Fsocktype = uint8(SOCK_STREAM) + v1 = cnt + cnt = cnt + 1 + (**(**Tservice)(__ccgo_up(buf + uintptr(v1)*4))).Fproto = uint8(IPPROTO_TCP) + } + } + X__fclose_ca(tls, f) + if cnt > 0 { + v1 = cnt + } else { + v1 = -int32(8) + } + return v1 +} + +func ___netlink_enumerate(tls *TLS, fd int32, seq uint32, type1 int32, af int32, __ccgo_fp_cb uintptr, ctx uintptr) (r1 int32) { + bp := tls.Alloc(8192) + defer tls.Free(8192) + var h uintptr + var r, ret int32 + var _ /* u at bp+0 */ struct { + Freq [0]struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + } + Freply [0]Tnlmsghdr + Fbuf [8192]Tuint8_t + } + _, _, _ = h, r, ret + Xmemset(tls, bp, 0, uint64(20)) + (*(*struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + })(unsafe.Pointer(&**(**struct { + Freq [0]struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + } + Freply [0]Tnlmsghdr + Fbuf [8192]Tuint8_t + })(__ccgo_up(bp))))).Fnlh.Fnlmsg_len = uint32(20) + (*(*struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + })(unsafe.Pointer(&**(**struct { + Freq [0]struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + } + Freply [0]Tnlmsghdr + Fbuf [8192]Tuint8_t + })(__ccgo_up(bp))))).Fnlh.Fnlmsg_type = Uint16FromInt32(type1) + (*(*struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + })(unsafe.Pointer(&**(**struct { + Freq [0]struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + } + Freply [0]Tnlmsghdr + Fbuf [8192]Tuint8_t + })(__ccgo_up(bp))))).Fnlh.Fnlmsg_flags = Uint16FromInt32(Int32FromInt32(NLM_F_ROOT) | Int32FromInt32(NLM_F_MATCH) | Int32FromInt32(NLM_F_REQUEST)) + (*(*struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + })(unsafe.Pointer(&**(**struct { + Freq [0]struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + } + Freply [0]Tnlmsghdr + Fbuf [8192]Tuint8_t + })(__ccgo_up(bp))))).Fnlh.Fnlmsg_seq = seq + (*(*struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + })(unsafe.Pointer(&**(**struct { + Freq [0]struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + } + Freply [0]Tnlmsghdr + Fbuf [8192]Tuint8_t + })(__ccgo_up(bp))))).Fg.Frtgen_family = Uint8FromInt32(af) + r = int32(Xsend(tls, fd, bp, uint64(20), 0)) + if r < 0 { + return r + } + for int32(1) != 0 { + r = int32(Xrecv(tls, fd, bp, uint64(8192), int32(MSG_DONTWAIT))) + if r <= 0 { + return -int32(1) + } + h = bp + for { + if !(Uint64FromInt64(int64(bp+uintptr(r))-int64(h)) >= uint64(16)) { + break + } + if Int32FromUint16((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_type) == int32(NLMSG_DONE) { + return 0 + } + if Int32FromUint16((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_type) == int32(NLMSG_ERROR) { + return -int32(1) + } + ret = (*(*func(*TLS, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cb})))(tls, ctx, h) + if ret != 0 { + return ret + } + goto _1 + _1: + ; + h = h + uintptr(((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_len+Uint32FromInt32(3))&Uint32FromInt32(^Int32FromInt32(3))) + } + } + return r1 +} + +type t__ccgo_fp__X__rtnetlink_enumerate_2 = func(*TLS, uintptr, uintptr) int32 + +func X__rtnetlink_enumerate(tls *TLS, link_af int32, addr_af int32, __ccgo_fp_cb uintptr, ctx uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v link_af=%v addr_af=%v __ccgo_fp_cb=%v ctx=%v, (%v:)", tls, link_af, addr_af, __ccgo_fp_cb, ctx, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var fd, r int32 + _, _ = fd, r + fd = Xsocket(tls, int32(PF_NETLINK), Int32FromInt32(SOCK_RAW)|Int32FromInt32(SOCK_CLOEXEC), NETLINK_ROUTE) + if fd < 0 { + return -int32(1) + } + r = ___netlink_enumerate(tls, fd, uint32(1), int32(RTM_GETLINK), link_af, __ccgo_fp_cb, ctx) + if !(r != 0) { + r = ___netlink_enumerate(tls, fd, uint32(2), int32(RTM_GETADDR), addr_af, __ccgo_fp_cb, ctx) + } + X__syscall1(tls, int64(SYS_close), int64(fd)) + return r +} + +func Xgetnetbyaddr(tls *TLS, net Tuint32_t, type1 int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v net=%v type1=%v, (%v:)", tls, net, type1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(0) +} + +func Xgetnetbyname(tls *TLS, name uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(0) +} + +func Xns_get16(tls *TLS, cp uintptr) (r uint32) { + if __ccgo_strace { + trc("tls=%v cp=%v, (%v:)", tls, cp, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(cp)))< %v", r) }() + } + return uint64(uint32(**(**uint8)(__ccgo_up(cp)))<> int32(8)) + v1 = cp + cp = cp + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(s) +} + +func Xns_put32(tls *TLS, l uint64, cp uintptr) { + if __ccgo_strace { + trc("tls=%v l=%v cp=%v, (%v:)", tls, l, cp, origin(2)) + } + var v1 uintptr + _ = v1 + v1 = cp + cp = cp + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(l >> int32(24)) + v1 = cp + cp = cp + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(l >> int32(16)) + v1 = cp + cp = cp + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(l >> int32(8)) + v1 = cp + cp = cp + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(l) +} + +func Xns_initparse(tls *TLS, msg uintptr, msglen int32, handle uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v msg=%v msglen=%v handle=%v, (%v:)", tls, msg, msglen, handle, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var i, r int32 + _, _ = i, r + (*Tns_msg)(unsafe.Pointer(handle)).F_msg = msg + (*Tns_msg)(unsafe.Pointer(handle)).F_eom = msg + uintptr(msglen) + if msglen < (Int32FromInt32(2)+int32(_ns_s_max))*Int32FromInt32(NS_INT16SZ) { + goto bad + } + msg = msg + uintptr(2) + (*Tns_msg)(unsafe.Pointer(handle)).F_id = uint16(Xns_get16(tls, msg-uintptr(2))) + msg = msg + uintptr(2) + (*Tns_msg)(unsafe.Pointer(handle)).F_flags = uint16(Xns_get16(tls, msg-uintptr(2))) + i = 0 + for { + if !(i < int32(_ns_s_max)) { + break + } + msg = msg + uintptr(2) + **(**Tuint16_t)(__ccgo_up(handle + 20 + uintptr(i)*2)) = uint16(Xns_get16(tls, msg-uintptr(2))) + goto _1 + _1: + ; + i = i + 1 + } + i = 0 + for { + if !(i < int32(_ns_s_max)) { + break + } + if **(**Tuint16_t)(__ccgo_up(handle + 20 + uintptr(i)*2)) != 0 { + **(**uintptr)(__ccgo_up(handle + 32 + uintptr(i)*8)) = msg + r = Xns_skiprr(tls, msg, (*Tns_msg)(unsafe.Pointer(handle)).F_eom, i, Int32FromUint16(**(**Tuint16_t)(__ccgo_up(handle + 20 + uintptr(i)*2)))) + if r < 0 { + return -int32(1) + } + msg = msg + uintptr(r) + } else { + **(**uintptr)(__ccgo_up(handle + 32 + uintptr(i)*8)) = UintptrFromInt32(0) + } + goto _2 + _2: + ; + i = i + 1 + } + if msg != (*Tns_msg)(unsafe.Pointer(handle)).F_eom { + goto bad + } + (*Tns_msg)(unsafe.Pointer(handle)).F_sect = int32(_ns_s_max) + (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum = -int32(1) + (*Tns_msg)(unsafe.Pointer(handle)).F_msg_ptr = UintptrFromInt32(0) + return 0 + goto bad +bad: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EMSGSIZE) + return -int32(1) +} + +func Xns_skiprr(tls *TLS, ptr uintptr, eom uintptr, section Tns_sect, count int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v ptr=%v eom=%v section=%v count=%v, (%v:)", tls, ptr, eom, section, count, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var p uintptr + var r, v1 int32 + _, _, _ = p, r, v1 + p = ptr + for { + v1 = count + count = count - 1 + if !(v1 != 0) { + break + } + r = Xdn_skipname(tls, p, eom) + if r < 0 { + goto bad + } + if int64(r+Int32FromInt32(2)*Int32FromInt32(NS_INT16SZ)) > int64(eom)-int64(p) { + goto bad + } + p = p + uintptr(r+Int32FromInt32(2)*Int32FromInt32(NS_INT16SZ)) + if section != int32(_ns_s_qd) { + if int64(Int32FromInt32(NS_INT32SZ)+Int32FromInt32(NS_INT16SZ)) > int64(eom)-int64(p) { + goto bad + } + p = p + uintptr(NS_INT32SZ) + p = p + uintptr(2) + r = Int32FromUint32(Xns_get16(tls, p-uintptr(2))) + if int64(r) > int64(eom)-int64(p) { + goto bad + } + p = p + uintptr(r) + } + } + return int32(int64(p) - int64(ptr)) + goto bad +bad: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EMSGSIZE) + return -int32(1) +} + +func Xns_parserr(tls *TLS, handle uintptr, section Tns_sect, rrnum int32, rr uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v handle=%v section=%v rrnum=%v rr=%v, (%v:)", tls, handle, section, rrnum, rr, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + var v1 uintptr + _, _ = r, v1 + if section < 0 || section >= int32(_ns_s_max) { + goto bad + } + if section != (*Tns_msg)(unsafe.Pointer(handle)).F_sect { + (*Tns_msg)(unsafe.Pointer(handle)).F_sect = section + (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum = 0 + (*Tns_msg)(unsafe.Pointer(handle)).F_msg_ptr = **(**uintptr)(__ccgo_up(handle + 32 + uintptr(section)*8)) + } + if rrnum == -int32(1) { + rrnum = (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum + } + if rrnum < 0 || rrnum >= Int32FromUint16(**(**Tuint16_t)(__ccgo_up(handle + 20 + uintptr(section)*2))) { + goto bad + } + if rrnum < (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum { + (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum = 0 + (*Tns_msg)(unsafe.Pointer(handle)).F_msg_ptr = **(**uintptr)(__ccgo_up(handle + 32 + uintptr(section)*8)) + } + if rrnum > (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum { + r = Xns_skiprr(tls, (*Tns_msg)(unsafe.Pointer(handle)).F_msg_ptr, (*Tns_msg)(unsafe.Pointer(handle)).F_eom, section, rrnum-(*Tns_msg)(unsafe.Pointer(handle)).F_rrnum) + if r < 0 { + return -int32(1) + } + **(**uintptr)(__ccgo_up(handle + 72)) += uintptr(r) + (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum = rrnum + } + r = Xns_name_uncompress(tls, (*Tns_msg)(unsafe.Pointer(handle)).F_msg, (*Tns_msg)(unsafe.Pointer(handle)).F_eom, (*Tns_msg)(unsafe.Pointer(handle)).F_msg_ptr, rr, uint64(NS_MAXDNAME)) + if r < 0 { + return -int32(1) + } + **(**uintptr)(__ccgo_up(handle + 72)) += uintptr(r) + if int64(Int32FromInt32(2)*Int32FromInt32(NS_INT16SZ)) > int64((*Tns_msg)(unsafe.Pointer(handle)).F_eom)-int64((*Tns_msg)(unsafe.Pointer(handle)).F_msg_ptr) { + goto size + } + v1 = handle + 72 + *(*uintptr)(unsafe.Pointer(v1)) += uintptr(2) + (*Tns_rr)(unsafe.Pointer(rr)).Ftype1 = uint16(Xns_get16(tls, *(*uintptr)(unsafe.Pointer(v1))-uintptr(2))) + v1 = handle + 72 + *(*uintptr)(unsafe.Pointer(v1)) += uintptr(2) + (*Tns_rr)(unsafe.Pointer(rr)).Frr_class = uint16(Xns_get16(tls, *(*uintptr)(unsafe.Pointer(v1))-uintptr(2))) + if section != int32(_ns_s_qd) { + if int64(Int32FromInt32(NS_INT32SZ)+Int32FromInt32(NS_INT16SZ)) > int64((*Tns_msg)(unsafe.Pointer(handle)).F_eom)-int64((*Tns_msg)(unsafe.Pointer(handle)).F_msg_ptr) { + goto size + } + v1 = handle + 72 + *(*uintptr)(unsafe.Pointer(v1)) += uintptr(4) + (*Tns_rr)(unsafe.Pointer(rr)).Fttl = uint32(Xns_get32(tls, *(*uintptr)(unsafe.Pointer(v1))-uintptr(4))) + v1 = handle + 72 + *(*uintptr)(unsafe.Pointer(v1)) += uintptr(2) + (*Tns_rr)(unsafe.Pointer(rr)).Frdlength = uint16(Xns_get16(tls, *(*uintptr)(unsafe.Pointer(v1))-uintptr(2))) + if Int64FromUint16((*Tns_rr)(unsafe.Pointer(rr)).Frdlength) > int64((*Tns_msg)(unsafe.Pointer(handle)).F_eom)-int64((*Tns_msg)(unsafe.Pointer(handle)).F_msg_ptr) { + goto size + } + (*Tns_rr)(unsafe.Pointer(rr)).Frdata = (*Tns_msg)(unsafe.Pointer(handle)).F_msg_ptr + **(**uintptr)(__ccgo_up(handle + 72)) += uintptr((*Tns_rr)(unsafe.Pointer(rr)).Frdlength) + } else { + (*Tns_rr)(unsafe.Pointer(rr)).Fttl = uint32(0) + (*Tns_rr)(unsafe.Pointer(rr)).Frdlength = uint16(0) + (*Tns_rr)(unsafe.Pointer(rr)).Frdata = UintptrFromInt32(0) + } + (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum = (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum + 1 + if (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum > Int32FromUint16(**(**Tuint16_t)(__ccgo_up(handle + 20 + uintptr(section)*2))) { + (*Tns_msg)(unsafe.Pointer(handle)).F_sect = section + int32(1) + if (*Tns_msg)(unsafe.Pointer(handle)).F_sect == int32(_ns_s_max) { + (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum = -int32(1) + (*Tns_msg)(unsafe.Pointer(handle)).F_msg_ptr = UintptrFromInt32(0) + } else { + (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum = 0 + } + } + return 0 + goto bad +bad: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENODEV) + return -int32(1) + goto size +size: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EMSGSIZE) + return -int32(1) +} + +func Xns_name_uncompress(tls *TLS, msg uintptr, eom uintptr, src uintptr, dst uintptr, dstsiz Tsize_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v msg=%v eom=%v src=%v dst=%v dstsiz=%v, (%v:)", tls, msg, eom, src, dst, dstsiz, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + r = Xdn_expand(tls, msg, eom, src, dst, Int32FromUint64(dstsiz)) + if r < 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EMSGSIZE) + } + return r +} + +func Xntohl(tls *TLS, n Tuint32_t) (r Tuint32_t) { + if __ccgo_strace { + trc("tls=%v n=%v, (%v:)", tls, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var u struct { + Fc [0]int8 + Fi int32 + } + var v1 uint32 + var v2, v3 Tuint32_t + _, _, _, _ = u, v1, v2, v3 + u = *(*struct { + Fc [0]int8 + Fi int32 + })(unsafe.Pointer(&struct{ f int32 }{f: int32(1)})) + if *(*int8)(unsafe.Pointer(&u)) != 0 { + v2 = n + v3 = v2>>int32(24) | v2>>int32(8)&uint32(0xff00) | v2< %v", r) }() + } + var u struct { + Fc [0]int8 + Fi int32 + } + var v1 int32 + var v2, v3 Tuint16_t + _, _, _, _ = u, v1, v2, v3 + u = *(*struct { + Fc [0]int8 + Fi int32 + })(unsafe.Pointer(&struct{ f int32 }{f: int32(1)})) + if *(*int8)(unsafe.Pointer(&u)) != 0 { + v2 = n + v3 = Uint16FromInt32(Int32FromUint16(v2)<>int32(8)) + goto _4 + _4: + v1 = Int32FromUint16(v3) + } else { + v1 = Int32FromUint16(n) + } + return Uint16FromInt32(v1) +} + +/* do we really need all these?? */ + +var _idx int32 +var _protos = [239]uint8{0, 'i', 'p', 0, 1, 'i', 'c', 'm', 'p', 0, 2, 'i', 'g', 'm', 'p', 0, 3, 'g', 'g', 'p', 0, 4, 'i', 'p', 'e', 'n', 'c', 'a', 'p', 0, 5, 's', 't', 0, 6, 't', 'c', 'p', 0, 8, 'e', 'g', 'p', 0, 12, 'p', 'u', 'p', 0, 17, 'u', 'd', 'p', 0, 20, 'h', 'm', 'p', 0, 22, 'x', 'n', 's', '-', 'i', 'd', 'p', 0, 27, 'r', 'd', 'p', 0, 29, 'i', 's', 'o', '-', 't', 'p', '4', 0, '$', 'x', 't', 'p', 0, '%', 'd', 'd', 'p', 0, '&', 'i', 'd', 'p', 'r', '-', 'c', 'm', 't', 'p', 0, ')', 'i', 'p', 'v', '6', 0, '+', 'i', 'p', 'v', '6', '-', 'r', 'o', 'u', 't', 'e', 0, ',', 'i', 'p', 'v', '6', '-', 'f', 'r', 'a', 'g', 0, '-', 'i', 'd', 'r', 'p', 0, '.', 'r', 's', 'v', 'p', 0, '/', 'g', 'r', 'e', 0, '2', 'e', 's', 'p', 0, '3', 'a', 'h', 0, '9', 's', 'k', 'i', 'p', 0, ':', 'i', 'p', 'v', '6', '-', 'i', 'c', 'm', 'p', 0, ';', 'i', 'p', 'v', '6', '-', 'n', 'o', 'n', 'x', 't', 0, '<', 'i', 'p', 'v', '6', '-', 'o', 'p', 't', 's', 0, 'I', 'r', 's', 'p', 'f', 0, 'Q', 'v', 'm', 't', 'p', 0, 'Y', 'o', 's', 'p', 'f', 0, '^', 'i', 'p', 'i', 'p', 0, 'b', 'e', 'n', 'c', 'a', 'p', 0, 'g', 'p', 'i', 'm', 0, 255, 'r', 'a', 'w'} + +func Xendprotoent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + _idx = 0 +} + +func Xsetprotoent(tls *TLS, stayopen int32) { + if __ccgo_strace { + trc("tls=%v stayopen=%v, (%v:)", tls, stayopen, origin(2)) + } + _idx = 0 +} + +func Xgetprotoent(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + if Uint64FromInt32(_idx) >= uint64(239) { + return UintptrFromInt32(0) + } + _p.Fp_proto = Int32FromUint8(_protos[_idx]) + _p.Fp_name = uintptr(unsafe.Pointer(&_protos)) + uintptr(_idx+int32(1)) + _p.Fp_aliases = uintptr(unsafe.Pointer(&_aliases)) + _idx = Int32FromUint64(uint64(_idx) + (_strlen(tls, _p.Fp_name) + Uint64FromInt32(2))) + return uintptr(unsafe.Pointer(&_p)) +} + +var _p Tprotoent + +var _aliases uintptr + +func Xgetprotobyname(tls *TLS, name uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + var p uintptr + _ = p + Xendprotoent(tls) + for cond := true; cond; cond = p != 0 && Xstrcmp(tls, name, (*Tprotoent)(unsafe.Pointer(p)).Fp_name) != 0 { + p = Xgetprotoent(tls) + } + return p +} + +func Xgetprotobynumber(tls *TLS, num int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v num=%v, (%v:)", tls, num, origin(2)) + defer func() { trc("-> %v", r) }() + } + var p uintptr + _ = p + Xendprotoent(tls) + for cond := true; cond; cond = p != 0 && (*Tprotoent)(unsafe.Pointer(p)).Fp_proto != num { + p = Xgetprotoent(tls) + } + return p +} + +func Xrecv(tls *TLS, fd int32, buf uintptr, len1 Tsize_t, flags int32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v len1=%v flags=%v, (%v:)", tls, fd, buf, len1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xrecvfrom(tls, fd, buf, len1, flags, uintptr(0), uintptr(0)) +} + +func Xrecvfrom(tls *TLS, fd int32, buf uintptr, len1 Tsize_t, flags int32, addr uintptr, alen uintptr) (r1 Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v len1=%v flags=%v addr=%v alen=%v, (%v:)", tls, fd, buf, len1, flags, addr, alen, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v8 int64 + var v1 int32 + var v2, v3, v4, v5, v6, v7 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _ = r, v1, v2, v3, v4, v5, v6, v7, v8 + v1 = int32(SYS_recvfrom) + _ = int32(__SC_recvfrom) + v2 = int64(fd) + v3 = int64(buf) + v4 = Int64FromUint64(len1) + v5 = int64(flags) + v6 = int64(addr) + v7 = int64(alen) + if int32(1) != 0 { + r = ___syscall_cp(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _9 + } + v8 = r + goto _9 +_9: + return X__syscall_ret(tls, Uint64FromInt64(v8)) +} + +func Xrecvmmsg(tls *TLS, fd int32, msgvec uintptr, vlen uint32, flags uint32, timeout uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v msgvec=%v vlen=%v flags=%v timeout=%v, (%v:)", tls, fd, msgvec, vlen, flags, timeout, origin(2)) + defer func() { trc("-> %v", r) }() + } + var i uint32 + var mh uintptr + var v2 int32 + _, _, _ = i, mh, v2 + mh = msgvec + i = vlen + for { + if !(i != 0) { + break + } + v2 = Int32FromInt32(0) + (*Tmmsghdr)(unsafe.Pointer(mh)).Fmsg_hdr.F__pad2 = v2 + (*Tmmsghdr)(unsafe.Pointer(mh)).Fmsg_hdr.F__pad1 = v2 + goto _1 + _1: + ; + i = i - 1 + mh += 64 + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_recvmmsg), int64(fd), int64(msgvec), Int64FromUint32(vlen), Int64FromUint32(flags), int64(timeout), 0)))) +} + +func X__convert_scm_timestamps(tls *TLS, msg uintptr, csize Tsocklen_t) { + if __ccgo_strace { + trc("tls=%v msg=%v csize=%v, (%v:)", tls, msg, csize, origin(2)) + } + bp := tls.Alloc(32) + defer tls.Free(32) + var cmsg, last, v2 uintptr + var type1 int32 + var _ /* tmp at bp+0 */ int64 + var _ /* tvts at bp+8 */ [2]int64 + _, _, _, _ = cmsg, last, type1, v2 + if true { + return + } + if !((*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_control != 0) || !((*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_controllen != 0) { + return + } + last = uintptr(0) + type1 = 0 + if uint64((*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_controllen) >= uint64(16) { + v2 = (*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_control + } else { + v2 = UintptrFromInt32(0) + } + cmsg = v2 + for { + if !(cmsg != 0) { + break + } + if (*Tcmsghdr)(unsafe.Pointer(cmsg)).Fcmsg_level == int32(SOL_SOCKET) { + switch (*Tcmsghdr)(unsafe.Pointer(cmsg)).Fcmsg_type { + case int32(SO_TIMESTAMP_OLD): + goto _3 + case int32(SO_TIMESTAMPNS_OLD): + goto _4 + } + goto _5 + _3: + ; + if type1 != 0 { + goto _5 + } + type1 = int32(SO_TIMESTAMP) + goto common + _4: + ; + type1 = int32(SO_TIMESTAMPNS) + goto common + common: + ; + Xmemcpy(tls, bp, cmsg+UintptrFromInt32(1)*16, uint64(8)) + (**(**[2]int64)(__ccgo_up(bp + 8)))[0] = int64(**(**int64)(__ccgo_up(bp))) + Xmemcpy(tls, bp, cmsg+UintptrFromInt32(1)*16+uintptr(8), uint64(8)) + (**(**[2]int64)(__ccgo_up(bp + 8)))[int32(1)] = int64(**(**int64)(__ccgo_up(bp))) + goto _5 + _5: + } + last = cmsg + goto _1 + _1: + ; + if uint64((*Tcmsghdr)(unsafe.Pointer(cmsg)).Fcmsg_len) < uint64(16) || (uint64((*Tcmsghdr)(unsafe.Pointer(cmsg)).Fcmsg_len)+uint64(8)-uint64(1))&Uint64FromInt64(^Int64FromUint64(Uint64FromInt64(8)-Uint64FromInt32(1)))+uint64(16) >= Uint64FromInt64(int64((*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_control+uintptr((*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_controllen))-int64(cmsg)) { + v2 = uintptr(0) + } else { + v2 = cmsg + uintptr((uint64((*Tcmsghdr)(unsafe.Pointer(cmsg)).Fcmsg_len)+Uint64FromInt64(8)-Uint64FromInt32(1))&Uint64FromInt64(^Int64FromUint64(Uint64FromInt64(8)-Uint64FromInt32(1)))) + } + cmsg = v2 + } + if !(last != 0) || !(type1 != 0) { + return + } + if (Uint64FromInt64(16)+Uint64FromInt64(8)-Uint64FromInt32(1)) & ^(Uint64FromInt64(8)-Uint64FromInt32(1)) + (Uint64FromInt64(16)+Uint64FromInt64(8)-Uint64FromInt32(1)) & ^(Uint64FromInt64(8)-Uint64FromInt32(1)) > uint64(csize-(*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_controllen) { + **(**int32)(__ccgo_up(msg + 48)) |= int32(MSG_CTRUNC) + return + } + v2 = msg + 40 + *(*Tsocklen_t)(unsafe.Pointer(v2)) = Tsocklen_t(uint64(*(*Tsocklen_t)(unsafe.Pointer(v2))) + ((Uint64FromInt64(16)+Uint64FromInt64(8)-Uint64FromInt32(1)) & ^(Uint64FromInt64(8)-Uint64FromInt32(1)) + (Uint64FromInt64(16)+Uint64FromInt64(8)-Uint64FromInt32(1)) & ^(Uint64FromInt64(8)-Uint64FromInt32(1)))) + if uint64((*Tcmsghdr)(unsafe.Pointer(last)).Fcmsg_len) < uint64(16) || (uint64((*Tcmsghdr)(unsafe.Pointer(last)).Fcmsg_len)+uint64(8)-uint64(1))&Uint64FromInt64(^Int64FromUint64(Uint64FromInt64(8)-Uint64FromInt32(1)))+uint64(16) >= Uint64FromInt64(int64((*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_control+uintptr((*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_controllen))-int64(last)) { + v2 = uintptr(0) + } else { + v2 = last + uintptr((uint64((*Tcmsghdr)(unsafe.Pointer(last)).Fcmsg_len)+Uint64FromInt64(8)-Uint64FromInt32(1))&Uint64FromInt64(^Int64FromUint64(Uint64FromInt64(8)-Uint64FromInt32(1)))) + } + cmsg = v2 + (*Tcmsghdr)(unsafe.Pointer(cmsg)).Fcmsg_level = int32(SOL_SOCKET) + (*Tcmsghdr)(unsafe.Pointer(cmsg)).Fcmsg_type = type1 + (*Tcmsghdr)(unsafe.Pointer(cmsg)).Fcmsg_len = uint32((Uint64FromInt64(16)+Uint64FromInt64(8)-Uint64FromInt32(1)) & ^(Uint64FromInt64(8)-Uint64FromInt32(1)) + Uint64FromInt64(16)) + Xmemcpy(tls, cmsg+UintptrFromInt32(1)*16, bp+8, uint64(16)) +} + +func Xrecvmsg(tls *TLS, fd int32, msg uintptr, flags int32) (r2 Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v msg=%v flags=%v, (%v:)", tls, fd, msg, flags, origin(2)) + defer func() { trc("-> %v", r2) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var orig uintptr + var orig_controllen Tsocklen_t + var r, v9 int64 + var r1 Tssize_t + var v1 int32 + var v3, v4, v5, v6, v7, v8 Tsyscall_arg_t + var _ /* h at bp+0 */ Tmsghdr + _, _, _, _, _, _, _, _, _, _, _, _ = orig, orig_controllen, r, r1, v1, v3, v4, v5, v6, v7, v8, v9 + orig_controllen = (*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_controllen + orig = msg + if msg != 0 { + **(**Tmsghdr)(__ccgo_up(bp)) = **(**Tmsghdr)(__ccgo_up(msg)) + v1 = Int32FromInt32(0) + (**(**Tmsghdr)(__ccgo_up(bp))).F__pad2 = v1 + (**(**Tmsghdr)(__ccgo_up(bp))).F__pad1 = v1 + msg = bp + } + v1 = int32(SYS_recvmsg) + _ = int32(__SC_recvmsg) + v3 = int64(fd) + v4 = int64(msg) + v5 = int64(flags) + v6 = int64(Int32FromInt32(0)) + v7 = int64(Int32FromInt32(0)) + v8 = int64(Int32FromInt32(0)) + if int32(1) != 0 { + r = ___syscall_cp(tls, int64(v1), v3, v4, v5, v6, v7, v8) + } else { + r = X__syscall6(tls, int64(v1), v3, v4, v5, v6, v7, v8) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v9 = r + goto _10 + } + v9 = r + goto _10 +_10: + r1 = X__syscall_ret(tls, Uint64FromInt64(v9)) + if r1 >= 0 { + X__convert_scm_timestamps(tls, msg, orig_controllen) + } + if orig != 0 { + **(**Tmsghdr)(__ccgo_up(orig)) = **(**Tmsghdr)(__ccgo_up(bp)) + } + return r1 +} + +func Xres_init(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return 0 +} + +func X__res_mkquery(tls *TLS, op int32, dname uintptr, class int32, type1 int32, data uintptr, datalen int32, newrr uintptr, buf uintptr, buflen int32) (r int32) { + if __ccgo_strace { + trc("tls=%v op=%v dname=%v class=%v type1=%v data=%v datalen=%v newrr=%v buf=%v buflen=%v, (%v:)", tls, op, dname, class, type1, data, datalen, newrr, buf, buflen, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(304) + defer tls.Free(304) + var i, id, j, n int32 + var l Tsize_t + var _ /* q at bp+0 */ [280]uint8 + var _ /* ts at bp+280 */ Ttimespec + _, _, _, _, _ = i, id, j, l, n + l = Xstrnlen(tls, dname, uint64(255)) + if l != 0 && int32(**(**int8)(__ccgo_up(dname + uintptr(l-uint64(1))))) == int32('.') { + l = l - 1 + } + if l != 0 && int32(**(**int8)(__ccgo_up(dname + uintptr(l-uint64(1))))) == int32('.') { + return -int32(1) + } + n = Int32FromUint64(uint64(17) + l + BoolUint64(!!(l != 0))) + if l > uint64(253) || buflen < n || Uint32FromInt32(op) > uint32(15) || Uint32FromInt32(class) > uint32(255) || Uint32FromInt32(type1) > uint32(255) { + return -int32(1) + } + /* Construct query template - ID will be filled later */ + Xmemset(tls, bp, 0, Uint64FromInt32(n)) + (**(**[280]uint8)(__ccgo_up(bp)))[int32(2)] = Uint8FromInt32(op*int32(8) + int32(1)) + (**(**[280]uint8)(__ccgo_up(bp)))[int32(3)] = uint8(32) /* AD */ + (**(**[280]uint8)(__ccgo_up(bp)))[int32(5)] = uint8(1) + Xmemcpy(tls, bp+uintptr(13), dname, l) + i = int32(13) + for { + if !((**(**[280]uint8)(__ccgo_up(bp)))[i] != 0) { + break + } + j = i + for { + if !((**(**[280]uint8)(__ccgo_up(bp)))[j] != 0 && Int32FromUint8((**(**[280]uint8)(__ccgo_up(bp)))[j]) != int32('.')) { + break + } + goto _2 + _2: + ; + j = j + 1 + } + if Uint32FromInt32(j-i)-uint32(1) > uint32(62) { + return -int32(1) + } + (**(**[280]uint8)(__ccgo_up(bp)))[i-int32(1)] = Uint8FromInt32(j - i) + goto _1 + _1: + ; + i = j + int32(1) + } + (**(**[280]uint8)(__ccgo_up(bp)))[i+int32(1)] = Uint8FromInt32(type1) + (**(**[280]uint8)(__ccgo_up(bp)))[i+int32(3)] = Uint8FromInt32(class) + /* Make a reasonably unpredictable id */ + Xclock_gettime(tls, CLOCK_REALTIME, bp+280) + id = Int32FromUint64((Uint64FromInt64((**(**Ttimespec)(__ccgo_up(bp + 280))).Ftv_nsec) + Uint64FromInt64((**(**Ttimespec)(__ccgo_up(bp + 280))).Ftv_nsec)/uint64(65536)) & uint64(0xffff)) + (**(**[280]uint8)(__ccgo_up(bp)))[0] = Uint8FromInt32(id / int32(256)) + (**(**[280]uint8)(__ccgo_up(bp)))[int32(1)] = Uint8FromInt32(id) + Xmemcpy(tls, buf, bp, Uint64FromInt32(n)) + return n +} + +func Xres_mkquery(tls *TLS, op int32, dname uintptr, class int32, type1 int32, data uintptr, datalen int32, newrr uintptr, buf uintptr, buflen int32) (r int32) { + if __ccgo_strace { + trc("tls=%v op=%v dname=%v class=%v type1=%v data=%v datalen=%v newrr=%v buf=%v buflen=%v, (%v:)", tls, op, dname, class, type1, data, datalen, newrr, buf, buflen, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__res_mkquery(tls, op, dname, class, type1, data, datalen, newrr, buf, buflen) +} + +const POLLERR = 8 +const POLLHUP = 16 +const POLLIN = 1 +const POLLMSG = 1024 +const POLLNVAL = 32 +const POLLOUT = 4 +const POLLPRI = 2 +const POLLRDBAND = 128 +const POLLRDHUP = 8192 +const POLLRDNORM = 64 +const POLLWRBAND = 512 +const POLLWRNORM = 256 +const TCP_CC_INFO = 26 +const TCP_CLOSE = 7 +const TCP_CLOSE_WAIT = 8 +const TCP_CLOSING = 11 +const TCP_CM_INQ = 36 +const TCP_CONGESTION = 13 +const TCP_CORK = 3 +const TCP_DEFER_ACCEPT = 9 +const TCP_ESTABLISHED = 1 +const TCP_FASTOPEN = 23 +const TCP_FASTOPEN_CONNECT = 30 +const TCP_FASTOPEN_KEY = 33 +const TCP_FASTOPEN_NO_COOKIE = 34 +const TCP_FIN_WAIT1 = 4 +const TCP_FIN_WAIT2 = 5 +const TCP_INFO = 11 +const TCP_INQ = 36 +const TCP_KEEPCNT = 6 +const TCP_KEEPIDLE = 4 +const TCP_KEEPINTVL = 5 +const TCP_LAST_ACK = 9 +const TCP_LINGER2 = 8 +const TCP_LISTEN = 10 +const TCP_MAXSEG = 2 +const TCP_MD5SIG = 14 +const TCP_MD5SIG_EXT = 32 +const TCP_NODELAY = 1 +const TCP_NOTSENT_LOWAT = 25 +const TCP_QUEUE_SEQ = 21 +const TCP_QUICKACK = 12 +const TCP_REPAIR = 19 +const TCP_REPAIR_OPTIONS = 22 +const TCP_REPAIR_QUEUE = 20 +const TCP_REPAIR_WINDOW = 29 +const TCP_SAVED_SYN = 28 +const TCP_SAVE_SYN = 27 +const TCP_SYNCNT = 7 +const TCP_SYN_RECV = 3 +const TCP_SYN_SENT = 2 +const TCP_THIN_DUPACK = 17 +const TCP_THIN_LINEAR_TIMEOUTS = 16 +const TCP_TIMESTAMP = 24 +const TCP_TIME_WAIT = 6 +const TCP_TX_DELAY = 37 +const TCP_ULP = 31 +const TCP_USER_TIMEOUT = 18 +const TCP_WINDOW_CLAMP = 10 +const TCP_ZEROCOPY_RECEIVE = 35 + +const _TCP_NLA_PAD = 0 +const _TCP_NLA_BUSY = 1 +const _TCP_NLA_RWND_LIMITED = 2 +const _TCP_NLA_SNDBUF_LIMITED = 3 +const _TCP_NLA_DATA_SEGS_OUT = 4 +const _TCP_NLA_TOTAL_RETRANS = 5 +const _TCP_NLA_PACING_RATE = 6 +const _TCP_NLA_DELIVERY_RATE = 7 +const _TCP_NLA_SND_CWND = 8 +const _TCP_NLA_REORDERING = 9 +const _TCP_NLA_MIN_RTT = 10 +const _TCP_NLA_RECUR_RETRANS = 11 +const _TCP_NLA_DELIVERY_RATE_APP_LMT = 12 +const _TCP_NLA_SNDQ_SIZE = 13 +const _TCP_NLA_CA_STATE = 14 +const _TCP_NLA_SND_SSTHRESH = 15 +const _TCP_NLA_DELIVERED = 16 +const _TCP_NLA_DELIVERED_CE = 17 +const _TCP_NLA_BYTES_SENT = 18 +const _TCP_NLA_BYTES_RETRANS = 19 +const _TCP_NLA_DSACK_DUPS = 20 +const _TCP_NLA_REORD_SEEN = 21 +const _TCP_NLA_SRTT = 22 +const _TCP_NLA_TIMEOUT_REHASH = 23 +const _TCP_NLA_BYTES_NOTSENT = 24 +const _TCP_NLA_EDT = 25 +const _TCP_NLA_TTL = 26 + +type Tnfds_t = uint64 + +type Tpollfd = struct { + Ffd int32 + Fevents int16 + Frevents int16 +} + +func _cleanup(tls *TLS, p uintptr) { + var i int32 + var pfd uintptr + _, _ = i, pfd + pfd = p + i = 0 + for { + if !((**(**Tpollfd)(__ccgo_up(pfd + uintptr(i)*8))).Ffd >= -int32(1)) { + break + } + if (**(**Tpollfd)(__ccgo_up(pfd + uintptr(i)*8))).Ffd >= 0 { + X__syscall1(tls, int64(SYS_close), int64((**(**Tpollfd)(__ccgo_up(pfd + uintptr(i)*8))).Ffd)) + } + goto _1 + _1: + ; + i = i + 1 + } +} + +func _mtime(tls *TLS) (r uint64) { + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* ts at bp+0 */ Ttimespec + if Xclock_gettime(tls, int32(CLOCK_MONOTONIC), bp) < 0 && **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(ENOSYS) { + Xclock_gettime(tls, CLOCK_REALTIME, bp) + } + return Uint64FromInt64((**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec)*uint64(1000) + Uint64FromInt64((**(**Ttimespec)(__ccgo_up(bp))).Ftv_nsec/int64(1000000)) +} + +func _start_tcp(tls *TLS, pfd uintptr, family int32, sa uintptr, sl Tsocklen_t, q uintptr, ql int32) (r1 int32) { + bp := tls.Alloc(96) + defer tls.Free(96) + var fd, r int32 + var _ /* mh at bp+40 */ Tmsghdr + _, _ = fd, r + *(*[2]Tuint8_t)(unsafe.Pointer(bp + 32)) = [2]Tuint8_t{ + 0: Uint8FromInt32(ql >> int32(8)), + 1: Uint8FromInt32(ql), + } + *(*[2]Tiovec)(unsafe.Pointer(bp)) = [2]Tiovec{ + 0: { + Fiov_base: bp + 32, + Fiov_len: uint64(2), + }, + 1: { + Fiov_base: q, + Fiov_len: Uint64FromInt32(ql), + }, + } + **(**Tmsghdr)(__ccgo_up(bp + 40)) = Tmsghdr{ + Fmsg_name: sa, + Fmsg_namelen: sl, + Fmsg_iov: bp, + Fmsg_iovlen: int32(2), + } + fd = Xsocket(tls, family, Int32FromInt32(SOCK_STREAM)|Int32FromInt32(SOCK_CLOEXEC)|Int32FromInt32(SOCK_NONBLOCK), 0) + (*Tpollfd)(unsafe.Pointer(pfd)).Ffd = fd + (*Tpollfd)(unsafe.Pointer(pfd)).Fevents = int16(POLLOUT) + *(*int32)(unsafe.Pointer(bp + 36)) = int32(1) + if !(Xsetsockopt(tls, fd, int32(IPPROTO_TCP), int32(TCP_FASTOPEN_CONNECT), bp+36, uint32(4)) != 0) { + r = int32(Xsendmsg(tls, fd, bp+40, Int32FromInt32(MSG_FASTOPEN)|Int32FromInt32(MSG_NOSIGNAL))) + if r == ql+int32(2) { + (*Tpollfd)(unsafe.Pointer(pfd)).Fevents = int16(POLLIN) + } + if r >= 0 { + return r + } + if **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EINPROGRESS) { + return 0 + } + } + r = Xconnect(tls, fd, sa, sl) + if !(r != 0) || **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EINPROGRESS) { + return 0 + } + Xclose(tls, fd) + (*Tpollfd)(unsafe.Pointer(pfd)).Ffd = -int32(1) + return -int32(1) +} + +func _step_mh(tls *TLS, mh uintptr, n Tsize_t) { + /* Adjust iovec in msghdr to skip first n bytes. */ + for (*Tmsghdr)(unsafe.Pointer(mh)).Fmsg_iovlen != 0 && n >= (*Tiovec)(unsafe.Pointer((*Tmsghdr)(unsafe.Pointer(mh)).Fmsg_iov)).Fiov_len { + n = n - (*Tiovec)(unsafe.Pointer((*Tmsghdr)(unsafe.Pointer(mh)).Fmsg_iov)).Fiov_len + (*Tmsghdr)(unsafe.Pointer(mh)).Fmsg_iov += 16 + (*Tmsghdr)(unsafe.Pointer(mh)).Fmsg_iovlen = (*Tmsghdr)(unsafe.Pointer(mh)).Fmsg_iovlen - 1 + } + if !((*Tmsghdr)(unsafe.Pointer(mh)).Fmsg_iovlen != 0) { + return + } + (*Tiovec)(unsafe.Pointer((*Tmsghdr)(unsafe.Pointer(mh)).Fmsg_iov)).Fiov_base = (*Tiovec)(unsafe.Pointer((*Tmsghdr)(unsafe.Pointer(mh)).Fmsg_iov)).Fiov_base + uintptr(n) + **(**Tsize_t)(__ccgo_up((*Tmsghdr)(unsafe.Pointer(mh)).Fmsg_iov + 8)) -= n +} + +/* Internal contract for __res_msend[_rc]: asize must be >=512, nqueries + * must be sufficiently small to be safe as VLA size. In practice it's + * either 1 or 2, anyway. */ + +func X__res_msend_rc(tls *TLS, nqueries int32, queries uintptr, qlens uintptr, answers uintptr, alens uintptr, asize int32, conf uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v nqueries=%v queries=%v qlens=%v answers=%v alens=%v asize=%v conf=%v, (%v:)", tls, nqueries, queries, qlens, answers, alens, asize, conf, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(400) + defer tls.Free(400) + var alen, attempts, family, fd, i, j, next, nns, r, rcode, retry_interval, rlen, servfail_retry, timeout, v6 int32 + var alen_buf, apos, iplit, pfd, qpos uintptr + var sl Tsocklen_t + var t0, t1, t2, v10 uint64 + var v1, v2, v3, v4 t__predefined_size_t + var v18 bool + var _ /* __cb at bp+208 */ t__ptcb + var _ /* cs at bp+200 */ int32 + var _ /* mh at bp+232 */ Tmsghdr + var _ /* mh at bp+288 */ Tmsghdr + var _ /* mh at bp+344 */ Tmsghdr + var _ /* ns at bp+116 */ [3]struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + } + var _ /* sa at bp+88 */ struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = alen, alen_buf, apos, attempts, family, fd, i, iplit, j, next, nns, pfd, qpos, r, rcode, retry_interval, rlen, servfail_retry, sl, t0, t1, t2, timeout, v1, v10, v18, v2, v3, v4, v6 + defer func() { + Xrealloc(tls, alen_buf, 0) + Xrealloc(tls, apos, 0) + Xrealloc(tls, pfd, 0) + Xrealloc(tls, qpos, 0) + }() + *(*struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + })(unsafe.Pointer(bp + 88)) = struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + }{} + *(*uint16)(unsafe.Pointer(bp + 88)) = uint16(0) + **(**[3]struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + })(__ccgo_up(bp + 116)) = [3]struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + }{} + sl = uint32(16) + nns = 0 + family = int32(PF_INET) + v1 = Uint64FromInt32(nqueries+int32(2)) * 8 + pfd = Xrealloc(tls, pfd, v1) + v2 = Uint64FromInt32(nqueries) * 4 + qpos = Xrealloc(tls, qpos, v2) + v3 = Uint64FromInt32(nqueries) * 4 + apos = Xrealloc(tls, apos, v3) + v4 = Uint64FromInt32(nqueries) * 2 + alen_buf = Xrealloc(tls, alen_buf, v4) + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp+200) + timeout = Int32FromUint32(uint32(1000) * (*Tresolvconf)(unsafe.Pointer(conf)).Ftimeout) + attempts = Int32FromUint32((*Tresolvconf)(unsafe.Pointer(conf)).Fattempts) + nns = 0 + for { + if !(Uint32FromInt32(nns) < (*Tresolvconf)(unsafe.Pointer(conf)).Fnns) { + break + } + iplit = conf + uintptr(nns)*28 + if (*Taddress)(unsafe.Pointer(iplit)).Ffamily == int32(PF_INET) { + Xmemcpy(tls, bp+116+uintptr(nns)*28+4, iplit+8, uint64(4)) + (**(**[3]struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + })(__ccgo_up(bp + 116)))[nns].Fsin.Fsin_port = Xhtons(tls, uint16(53)) + (**(**[3]struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + })(__ccgo_up(bp + 116)))[nns].Fsin.Fsin_family = uint16(PF_INET) + } else { + sl = uint32(28) + Xmemcpy(tls, bp+116+uintptr(nns)*28+8, iplit+8, uint64(16)) + (*(*Tsockaddr_in6)(unsafe.Pointer(bp + 116 + uintptr(nns)*28))).Fsin6_port = Xhtons(tls, uint16(53)) + (*(*Tsockaddr_in6)(unsafe.Pointer(bp + 116 + uintptr(nns)*28))).Fsin6_scope_id = (*Taddress)(unsafe.Pointer(iplit)).Fscopeid + v6 = Int32FromInt32(PF_INET6) + family = v6 + (*(*Tsockaddr_in6)(unsafe.Pointer(bp + 116 + uintptr(nns)*28))).Fsin6_family = Uint16FromInt32(v6) + } + goto _5 + _5: + ; + nns = nns + 1 + } + /* Get local address and open/bind a socket */ + fd = Xsocket(tls, family, Int32FromInt32(SOCK_DGRAM)|Int32FromInt32(SOCK_CLOEXEC)|Int32FromInt32(SOCK_NONBLOCK), 0) + /* Handle case where system lacks IPv6 support */ + if fd < 0 && family == int32(PF_INET6) && **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EAFNOSUPPORT) { + i = 0 + for { + if !(i < nns && (**(**Taddress)(__ccgo_up(conf + uintptr(nns)*28))).Ffamily == int32(PF_INET6)) { + break + } + goto _7 + _7: + ; + i = i + 1 + } + if i == nns { + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 200)), uintptr(0)) + return -int32(1) + } + fd = Xsocket(tls, int32(PF_INET), Int32FromInt32(SOCK_DGRAM)|Int32FromInt32(SOCK_CLOEXEC)|Int32FromInt32(SOCK_NONBLOCK), 0) + family = int32(PF_INET) + sl = uint32(16) + } + /* Convert any IPv4 addresses in a mixed environment to v4-mapped */ + if fd >= 0 && family == int32(PF_INET6) { + *(*int32)(unsafe.Pointer(bp)) = 0 + Xsetsockopt(tls, fd, int32(IPPROTO_IPV6), int32(IPV6_V6ONLY), bp, uint32(4)) + i = 0 + for { + if !(i < nns) { + break + } + if Int32FromUint16((**(**[3]struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + })(__ccgo_up(bp + 116)))[i].Fsin.Fsin_family) != int32(PF_INET) { + goto _8 + } + Xmemcpy(tls, bp+116+uintptr(i)*28+8+uintptr(12), bp+116+uintptr(i)*28+4, uint64(4)) + Xmemcpy(tls, bp+116+uintptr(i)*28+8, __ccgo_ts+1044, uint64(12)) + (*(*Tsockaddr_in6)(unsafe.Pointer(bp + 116 + uintptr(i)*28))).Fsin6_family = uint16(PF_INET6) + (*(*Tsockaddr_in6)(unsafe.Pointer(bp + 116 + uintptr(i)*28))).Fsin6_flowinfo = uint32(0) + (*(*Tsockaddr_in6)(unsafe.Pointer(bp + 116 + uintptr(i)*28))).Fsin6_scope_id = uint32(0) + goto _8 + _8: + ; + i = i + 1 + } + } + (**(**struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + })(__ccgo_up(bp + 88))).Fsin.Fsin_family = Uint16FromInt32(family) + if fd < 0 || Xbind(tls, fd, bp+88, sl) < 0 { + if fd >= 0 { + Xclose(tls, fd) + } + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 200)), uintptr(0)) + return -int32(1) + } + /* Past this point, there are no errors. Each individual query will + * yield either no reply (indicated by zero length) or an answer + * packet which is up to the caller to interpret. */ + i = 0 + for { + if !(i < nqueries) { + break + } + (*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), i*8))).Ffd = -int32(1) + goto _9 + _9: + ; + i = i + 1 + } + (*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), nqueries*8))).Ffd = fd + (*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), nqueries*8))).Fevents = int16(POLLIN) + (*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), (nqueries+int32(1))*8))).Ffd = -int32(2) + __pthread_cleanup_push(tls, bp+208, __ccgo_fp(_cleanup), pfd) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 200)), uintptr(0)) + Xmemset(tls, alens, 0, uint64(4)*Uint64FromInt32(nqueries)) + retry_interval = timeout / attempts + next = 0 + v10 = _mtime(tls) + t2 = v10 + t0 = v10 + t1 = t2 - Uint64FromInt32(retry_interval) + for { + if !(t2-t0 < Uint64FromInt32(timeout)) { + break + } + /* This is the loop exit condition: that all queries + * have an accepted answer. */ + i = 0 + for { + if !(i < nqueries && **(**int32)(__ccgo_up(alens + uintptr(i)*4)) > 0) { + break + } + goto _12 + _12: + ; + i = i + 1 + } + if i == nqueries { + break + } + if t2-t1 >= Uint64FromInt32(retry_interval) { + /* Query all configured namservers in parallel */ + i = 0 + for { + if !(i < nqueries) { + break + } + if !(**(**int32)(__ccgo_up(alens + uintptr(i)*4)) != 0) { + j = 0 + for { + if !(j < nns) { + break + } + Xsendto(tls, fd, **(**uintptr)(__ccgo_up(queries + uintptr(i)*8)), Uint64FromInt32(**(**int32)(__ccgo_up(qlens + uintptr(i)*4))), int32(MSG_NOSIGNAL), bp+116+uintptr(j)*28, sl) + goto _14 + _14: + ; + j = j + 1 + } + } + goto _13 + _13: + ; + i = i + 1 + } + t1 = t2 + servfail_retry = int32(2) * nqueries + } + /* Wait for a response, or until time to retry */ + if Xpoll(tls, pfd, Uint64FromInt32(nqueries+int32(1)), Int32FromUint64(t1+Uint64FromInt32(retry_interval)-t2)) <= 0 { + goto _11 + } + for next < nqueries { + *(*[1]Tiovec)(unsafe.Pointer(bp + 8)) = [1]Tiovec{ + 0: { + Fiov_base: **(**uintptr)(__ccgo_up(answers + uintptr(next)*8)), + Fiov_len: Uint64FromInt32(asize), + }, + } + **(**Tmsghdr)(__ccgo_up(bp + 232)) = Tmsghdr{ + Fmsg_name: bp + 88, + Fmsg_namelen: sl, + Fmsg_iov: bp + 8, + Fmsg_iovlen: int32(1), + } + rlen = int32(Xrecvmsg(tls, fd, bp+232, 0)) + if rlen < 0 { + break + } + /* Ignore non-identifiable packets */ + if rlen < int32(4) { + continue + } + /* Ignore replies from addresses we didn't send to */ + j = 0 + for { + if !(j < nns && Xmemcmp(tls, bp+116+uintptr(j)*28, bp+88, uint64(sl)) != 0) { + break + } + goto _15 + _15: + ; + j = j + 1 + } + if j == nns { + continue + } + /* Find which query this answer goes with, if any */ + i = next + for { + if !(i < nqueries && (Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(answers + uintptr(next)*8))))) != Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(queries + uintptr(i)*8))))) || Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(answers + uintptr(next)*8)) + 1))) != Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(queries + uintptr(i)*8)) + 1))))) { + break + } + goto _16 + _16: + ; + i = i + 1 + } + if i == nqueries { + continue + } + if **(**int32)(__ccgo_up(alens + uintptr(i)*4)) != 0 { + continue + } + /* Only accept positive or negative responses; + * retry immediately on server failure, and ignore + * all other codes such as refusal. */ + switch Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(answers + uintptr(next)*8)) + 3))) & Int32FromInt32(15) { + case 0: + fallthrough + case int32(3): + case int32(2): + if v18 = servfail_retry != 0; v18 { + v6 = servfail_retry + servfail_retry = servfail_retry - 1 + } + if v18 && v6 != 0 { + Xsendto(tls, fd, **(**uintptr)(__ccgo_up(queries + uintptr(i)*8)), Uint64FromInt32(**(**int32)(__ccgo_up(qlens + uintptr(i)*4))), int32(MSG_NOSIGNAL), bp+116+uintptr(j)*28, sl) + } + fallthrough + default: + continue + } + /* Store answer in the right slot, or update next + * available temp slot if it's already in place. */ + **(**int32)(__ccgo_up(alens + uintptr(i)*4)) = rlen + if i == next { + for { + if !(next < nqueries && **(**int32)(__ccgo_up(alens + uintptr(next)*4)) != 0) { + break + } + goto _19 + _19: + ; + next = next + 1 + } + } else { + Xmemcpy(tls, **(**uintptr)(__ccgo_up(answers + uintptr(i)*8)), **(**uintptr)(__ccgo_up(answers + uintptr(next)*8)), Uint64FromInt32(rlen)) + } + /* Ignore further UDP if all slots full or TCP-mode */ + if next == nqueries { + (*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), nqueries*8))).Fevents = 0 + } + /* If answer is truncated (TC bit), fallback to TCP */ + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(answers + uintptr(i)*8)) + 2)))&int32(2) != 0 || (**(**Tmsghdr)(__ccgo_up(bp + 232))).Fmsg_flags&int32(MSG_TRUNC) != 0 { + **(**int32)(__ccgo_up(alens + uintptr(i)*4)) = -int32(1) + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), uintptr(0)) + r = _start_tcp(tls, pfd+uintptr(i)*8, family, bp+116+uintptr(j)*28, sl, **(**uintptr)(__ccgo_up(queries + uintptr(i)*8)), **(**int32)(__ccgo_up(qlens + uintptr(i)*4))) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 200)), uintptr(0)) + if r >= 0 { + *(*int32)(unsafe.Add(unsafe.Pointer(qpos), i*4)) = r + *(*int32)(unsafe.Add(unsafe.Pointer(apos), i*4)) = 0 + } + continue + } + } + i = 0 + for { + if !(i < nqueries) { + break + } + if int32((*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), i*8))).Frevents)&int32(POLLOUT) != 0 { + *(*[2]Tuint8_t)(unsafe.Pointer(bp + 52)) = [2]Tuint8_t{ + 0: Uint8FromInt32(**(**int32)(__ccgo_up(qlens + uintptr(i)*4)) >> int32(8)), + 1: Uint8FromInt32(**(**int32)(__ccgo_up(qlens + uintptr(i)*4))), + } + *(*[2]Tiovec)(unsafe.Pointer(bp + 24)) = [2]Tiovec{ + 0: { + Fiov_base: bp + 52, + Fiov_len: uint64(2), + }, + 1: { + Fiov_base: **(**uintptr)(__ccgo_up(queries + uintptr(i)*8)), + Fiov_len: Uint64FromInt32(**(**int32)(__ccgo_up(qlens + uintptr(i)*4))), + }, + } + **(**Tmsghdr)(__ccgo_up(bp + 288)) = Tmsghdr{ + Fmsg_iov: bp + 24, + Fmsg_iovlen: int32(2), + } + _step_mh(tls, bp+288, Uint64FromInt32(*(*int32)(unsafe.Add(unsafe.Pointer(qpos), i*4)))) + r = int32(Xsendmsg(tls, (*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), i*8))).Ffd, bp+288, int32(MSG_NOSIGNAL))) + if r < 0 { + goto out + } + **(**int32)(__ccgo_up(qpos + uintptr(i)*4)) += r + if *(*int32)(unsafe.Add(unsafe.Pointer(qpos), i*4)) == **(**int32)(__ccgo_up(qlens + uintptr(i)*4))+int32(2) { + (*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), i*8))).Fevents = int16(POLLIN) + } + } + goto _20 + _20: + ; + i = i + 1 + } + i = 0 + for { + if !(i < nqueries) { + break + } + if int32((*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), i*8))).Frevents)&int32(POLLIN) != 0 { + *(*[2]Tiovec)(unsafe.Pointer(bp + 56)) = [2]Tiovec{ + 0: { + Fiov_base: alen_buf + uintptr(i)*2, + Fiov_len: uint64(2), + }, + 1: { + Fiov_base: **(**uintptr)(__ccgo_up(answers + uintptr(i)*8)), + Fiov_len: Uint64FromInt32(asize), + }, + } + **(**Tmsghdr)(__ccgo_up(bp + 344)) = Tmsghdr{ + Fmsg_iov: bp + 56, + Fmsg_iovlen: int32(2), + } + _step_mh(tls, bp+344, Uint64FromInt32(*(*int32)(unsafe.Add(unsafe.Pointer(apos), i*4)))) + r = int32(Xrecvmsg(tls, (*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), i*8))).Ffd, bp+344, 0)) + if r <= 0 { + goto out + } + **(**int32)(__ccgo_up(apos + uintptr(i)*4)) += r + if *(*int32)(unsafe.Add(unsafe.Pointer(apos), i*4)) < int32(2) { + goto _21 + } + alen = Int32FromUint8(**(**uint8)(__ccgo_up(alen_buf + uintptr(i)*2)))*int32(256) + Int32FromUint8(**(**uint8)(__ccgo_up(alen_buf + uintptr(i)*2 + 1))) + if alen < int32(13) { + goto out + } + if *(*int32)(unsafe.Add(unsafe.Pointer(apos), i*4)) < alen+int32(2) && *(*int32)(unsafe.Add(unsafe.Pointer(apos), i*4)) < asize+int32(2) { + goto _21 + } + rcode = Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(answers + uintptr(i)*8)) + 3))) & int32(15) + if rcode != 0 && rcode != int32(3) { + goto out + } + /* Storing the length here commits the accepted answer. + * Immediately close TCP socket so as not to consume + * resources we no longer need. */ + **(**int32)(__ccgo_up(alens + uintptr(i)*4)) = alen + X__syscall1(tls, int64(SYS_close), int64((*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), i*8))).Ffd)) + (*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), i*8))).Ffd = -int32(1) + } + goto _21 + _21: + ; + i = i + 1 + } + goto _11 + _11: + ; + t2 = _mtime(tls) + } + goto out +out: + ; + __pthread_cleanup_pop(tls, bp+208, int32(1)) + /* Disregard any incomplete TCP results */ + i = 0 + for { + if !(i < nqueries) { + break + } + if **(**int32)(__ccgo_up(alens + uintptr(i)*4)) < 0 { + **(**int32)(__ccgo_up(alens + uintptr(i)*4)) = 0 + } + goto _22 + _22: + ; + i = i + 1 + } + return 0 +} + +func X__res_msend(tls *TLS, nqueries int32, queries uintptr, qlens uintptr, answers uintptr, alens uintptr, asize int32) (r int32) { + if __ccgo_strace { + trc("tls=%v nqueries=%v queries=%v qlens=%v answers=%v alens=%v asize=%v, (%v:)", tls, nqueries, queries, qlens, answers, alens, asize, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(112) + defer tls.Free(112) + var _ /* conf at bp+0 */ Tresolvconf + if X__get_resolv_conf(tls, bp, uintptr(0), uint64(0)) < 0 { + return -int32(1) + } + return X__res_msend_rc(tls, nqueries, queries, qlens, answers, alens, asize, bp) +} + +func X__res_send(tls *TLS, _msg uintptr, _msglen int32, _answer uintptr, _anslen int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v _msg=%v _msglen=%v _answer=%v _anslen=%v, (%v:)", tls, _msg, _msglen, _answer, _anslen, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(544) + defer tls.Free(544) + *(*uintptr)(unsafe.Pointer(bp)) = _msg + *(*int32)(unsafe.Pointer(bp + 8)) = _msglen + *(*uintptr)(unsafe.Pointer(bp + 16)) = _answer + *(*int32)(unsafe.Pointer(bp + 24)) = _anslen + var r, v1 int32 + var _ /* buf at bp+28 */ [512]uint8 + _, _ = r, v1 + if **(**int32)(__ccgo_up(bp + 24)) < int32(512) { + r = X__res_send(tls, **(**uintptr)(__ccgo_up(bp)), **(**int32)(__ccgo_up(bp + 8)), bp+28, int32(512)) + if r >= 0 { + if r < **(**int32)(__ccgo_up(bp + 24)) { + v1 = r + } else { + v1 = **(**int32)(__ccgo_up(bp + 24)) + } + Xmemcpy(tls, **(**uintptr)(__ccgo_up(bp + 16)), bp+28, Uint64FromInt32(v1)) + } + return r + } + r = X__res_msend(tls, int32(1), bp, bp+8, bp+16, bp+24, **(**int32)(__ccgo_up(bp + 24))) + if r < 0 || !(**(**int32)(__ccgo_up(bp + 24)) != 0) { + v1 = -int32(1) + } else { + v1 = **(**int32)(__ccgo_up(bp + 24)) + } + return v1 +} + +func Xres_send(tls *TLS, _msg uintptr, _msglen int32, _answer uintptr, _anslen int32) (r int32) { + if __ccgo_strace { + trc("tls=%v _msg=%v _msglen=%v _answer=%v _anslen=%v, (%v:)", tls, _msg, _msglen, _answer, _anslen, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__res_send(tls, _msg, _msglen, _answer, _anslen) +} + +/* This is completely unused, and exists purely to satisfy broken apps. */ + +func X__res_state(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(unsafe.Pointer(&_res1)) +} + +var _res1 t__res_state + +func X__get_resolv_conf(tls *TLS, conf uintptr, search uintptr, search_sz Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v conf=%v search=%v search_sz=%v, (%v:)", tls, conf, search, search_sz, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(752) + defer tls.Free(752) + var c, nns, v1, v2 int32 + var f, p uintptr + var l Tsize_t + var x, x1, x2, v5 uint64 + var v4 bool + var _ /* _buf at bp+256 */ [256]uint8 + var _ /* _f at bp+512 */ TFILE + var _ /* line at bp+0 */ [256]int8 + var _ /* z at bp+744 */ uintptr + _, _, _, _, _, _, _, _, _, _, _, _ = c, f, l, nns, p, x, x1, x2, v1, v2, v4, v5 + nns = 0 + (*Tresolvconf)(unsafe.Pointer(conf)).Fndots = uint32(1) + (*Tresolvconf)(unsafe.Pointer(conf)).Ftimeout = uint32(5) + (*Tresolvconf)(unsafe.Pointer(conf)).Fattempts = uint32(2) + if search != 0 { + **(**int8)(__ccgo_up(search)) = 0 + } + f = X__fopen_rb_ca(tls, __ccgo_ts+1166, bp+512, bp+256, uint64(256)) + if !(f != 0) { + switch **(**int32)(__ccgo_up(X__errno_location(tls))) { + case int32(ENOENT): + fallthrough + case int32(ENOTDIR): + fallthrough + case int32(EACCES): + goto no_resolv_conf + default: + return -int32(1) + } + } + for Xfgets(tls, bp, int32(256), f) != 0 { + if !(Xstrchr(tls, bp, int32('\n')) != 0) && !((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_EOF) != 0) { + for cond := true; cond; cond = c != int32('\n') && c != -int32(1) { + c = Xgetc(tls, f) + } + continue + } + if v4 = !(Xstrncmp(tls, bp, __ccgo_ts+1183, uint64(7)) != 0); v4 { + v1 = int32((**(**[256]int8)(__ccgo_up(bp)))[int32(7)]) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _3 + _3: + } + if v4 && v2 != 0 { + p = Xstrstr(tls, bp, __ccgo_ts+1191) + if p != 0 && BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(p + 6)))-uint32('0') < uint32(10)) != 0 { + p = p + uintptr(6) + x = Xstrtoul(tls, p, bp+744, int32(10)) + if **(**uintptr)(__ccgo_up(bp + 744)) != p { + if x > uint64(15) { + v5 = uint64(15) + } else { + v5 = x + } + (*Tresolvconf)(unsafe.Pointer(conf)).Fndots = uint32(v5) + } + } + p = Xstrstr(tls, bp, __ccgo_ts+1198) + if p != 0 && BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(p + 9)))-uint32('0') < uint32(10)) != 0 { + p = p + uintptr(9) + x1 = Xstrtoul(tls, p, bp+744, int32(10)) + if **(**uintptr)(__ccgo_up(bp + 744)) != p { + if x1 > uint64(10) { + v5 = uint64(10) + } else { + v5 = x1 + } + (*Tresolvconf)(unsafe.Pointer(conf)).Fattempts = uint32(v5) + } + } + p = Xstrstr(tls, bp, __ccgo_ts+1208) + if p != 0 && (BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(p + 8)))-uint32('0') < uint32(10)) != 0 || int32(**(**int8)(__ccgo_up(p + 8))) == int32('.')) { + p = p + uintptr(8) + x2 = Xstrtoul(tls, p, bp+744, int32(10)) + if **(**uintptr)(__ccgo_up(bp + 744)) != p { + if x2 > uint64(60) { + v5 = uint64(60) + } else { + v5 = x2 + } + (*Tresolvconf)(unsafe.Pointer(conf)).Ftimeout = uint32(v5) + } + } + continue + } + if v4 = !(Xstrncmp(tls, bp, __ccgo_ts+1217, uint64(10)) != 0); v4 { + v1 = int32((**(**[256]int8)(__ccgo_up(bp)))[int32(10)]) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _10 + _10: + } + if v4 && v2 != 0 { + if nns >= int32(MAXNS) { + continue + } + p = bp + uintptr(11) + for { + v1 = int32(**(**int8)(__ccgo_up(p))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _15 + _15: + if !(v2 != 0) { + break + } + goto _12 + _12: + ; + p = p + 1 + } + **(**uintptr)(__ccgo_up(bp + 744)) = p + for { + if v4 = **(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 744)))) != 0; v4 { + v1 = int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 744))))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _19 + _19: + } + if !(v4 && !(v2 != 0)) { + break + } + goto _16 + _16: + ; + **(**uintptr)(__ccgo_up(bp + 744)) = **(**uintptr)(__ccgo_up(bp + 744)) + 1 + } + **(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 744)))) = 0 + if X__lookup_ipliteral(tls, conf+uintptr(nns)*28, p, PF_UNSPEC) > 0 { + nns = nns + 1 + } + continue + } + if !(search != 0) { + continue + } + if v4 = Xstrncmp(tls, bp, __ccgo_ts+1228, uint64(6)) != 0 && Xstrncmp(tls, bp, __ccgo_ts+1235, uint64(6)) != 0; !v4 { + v1 = int32((**(**[256]int8)(__ccgo_up(bp)))[int32(6)]) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _23 + _23: + } + if v4 || !(v2 != 0) { + continue + } + p = bp + uintptr(7) + for { + v1 = int32(**(**int8)(__ccgo_up(p))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _28 + _28: + if !(v2 != 0) { + break + } + goto _25 + _25: + ; + p = p + 1 + } + l = _strlen(tls, p) + /* This can never happen anyway with chosen buffer sizes. */ + if l >= search_sz { + continue + } + Xmemcpy(tls, search, p, l+uint64(1)) + } + X__fclose_ca(tls, f) + goto no_resolv_conf +no_resolv_conf: + ; + if !(nns != 0) { + X__lookup_ipliteral(tls, conf, __ccgo_ts+1242, PF_UNSPEC) + nns = int32(1) + } + (*Tresolvconf)(unsafe.Pointer(conf)).Fnns = Uint32FromInt32(nns) + return 0 +} + +func Xsend(tls *TLS, fd int32, buf uintptr, len1 Tsize_t, flags int32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v len1=%v flags=%v, (%v:)", tls, fd, buf, len1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xsendto(tls, fd, buf, len1, flags, uintptr(0), uint32(0)) +} + +func Xsendmmsg(tls *TLS, fd int32, msgvec uintptr, vlen uint32, flags uint32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v msgvec=%v vlen=%v flags=%v, (%v:)", tls, fd, msgvec, vlen, flags, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var i, v2 int32 + var r Tssize_t + _, _, _ = i, r, v2 + if vlen > uint32(IOV_MAX) { + vlen = uint32(IOV_MAX) + } /* This matches the kernel. */ + if !(vlen != 0) { + return 0 + } + i = 0 + for { + if !(Uint32FromInt32(i) < vlen) { + break + } + /* As an unfortunate inconsistency, the sendmmsg API uses + * unsigned int for the resulting msg_len, despite sendmsg + * returning ssize_t. However Linux limits the total bytes + * sent by sendmsg to INT_MAX, so the assignment is safe. */ + r = Xsendmsg(tls, fd, msgvec+uintptr(i)*64, Int32FromUint32(flags)) + if r < 0 { + goto error + } + (**(**Tmmsghdr)(__ccgo_up(msgvec + uintptr(i)*64))).Fmsg_len = Uint32FromInt64(r) + goto _1 + _1: + ; + i = i + 1 + } + goto error +error: + ; + if i != 0 { + v2 = i + } else { + v2 = -int32(1) + } + return v2 + return r1 +} + +func Xsendmsg(tls *TLS, fd int32, msg uintptr, flags int32) (r1 Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v msg=%v flags=%v, (%v:)", tls, fd, msg, flags, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(1120) + defer tls.Free(1120) + var c1, v3 uintptr + var r, v12 int64 + var v1 int32 + var v10, v11, v6, v7, v8, v9 Tsyscall_arg_t + var _ /* chbuf at bp+56 */ [66]Tcmsghdr + var _ /* h at bp+0 */ Tmsghdr + _, _, _, _, _, _, _, _, _, _, _ = c1, r, v1, v10, v11, v12, v3, v6, v7, v8, v9 + if msg != 0 { + **(**Tmsghdr)(__ccgo_up(bp)) = **(**Tmsghdr)(__ccgo_up(msg)) + v1 = Int32FromInt32(0) + (**(**Tmsghdr)(__ccgo_up(bp))).F__pad2 = v1 + (**(**Tmsghdr)(__ccgo_up(bp))).F__pad1 = v1 + msg = bp + if (**(**Tmsghdr)(__ccgo_up(bp))).Fmsg_controllen != 0 { + if uint64((**(**Tmsghdr)(__ccgo_up(bp))).Fmsg_controllen) > uint64(1056) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOMEM) + return int64(-int32(1)) + } + Xmemcpy(tls, bp+56, (**(**Tmsghdr)(__ccgo_up(bp))).Fmsg_control, uint64((**(**Tmsghdr)(__ccgo_up(bp))).Fmsg_controllen)) + (**(**Tmsghdr)(__ccgo_up(bp))).Fmsg_control = bp + 56 + if uint64((*Tmsghdr)(unsafe.Pointer(bp)).Fmsg_controllen) >= uint64(16) { + v3 = (*Tmsghdr)(unsafe.Pointer(bp)).Fmsg_control + } else { + v3 = UintptrFromInt32(0) + } + c1 = v3 + for { + if !(c1 != 0) { + break + } + (*Tcmsghdr)(unsafe.Pointer(c1)).F__pad1 = 0 + goto _2 + _2: + ; + if uint64((*Tcmsghdr)(unsafe.Pointer(c1)).Fcmsg_len) < uint64(16) || (uint64((*Tcmsghdr)(unsafe.Pointer(c1)).Fcmsg_len)+uint64(8)-uint64(1))&Uint64FromInt64(^Int64FromUint64(Uint64FromInt64(8)-Uint64FromInt32(1)))+uint64(16) >= Uint64FromInt64(int64((*Tmsghdr)(unsafe.Pointer(bp)).Fmsg_control+uintptr((*Tmsghdr)(unsafe.Pointer(bp)).Fmsg_controllen))-int64(c1)) { + v3 = uintptr(0) + } else { + v3 = c1 + uintptr((uint64((*Tcmsghdr)(unsafe.Pointer(c1)).Fcmsg_len)+Uint64FromInt64(8)-Uint64FromInt32(1))&Uint64FromInt64(^Int64FromUint64(Uint64FromInt64(8)-Uint64FromInt32(1)))) + } + c1 = v3 + } + } + } + v1 = int32(SYS_sendmsg) + _ = int32(__SC_sendmsg) + v6 = int64(fd) + v7 = int64(msg) + v8 = int64(flags) + v9 = int64(Int32FromInt32(0)) + v10 = int64(Int32FromInt32(0)) + v11 = int64(Int32FromInt32(0)) + if int32(1) != 0 { + r = ___syscall_cp(tls, int64(v1), v6, v7, v8, v9, v10, v11) + } else { + r = X__syscall6(tls, int64(v1), v6, v7, v8, v9, v10, v11) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v12 = r + goto _13 + } + v12 = r + goto _13 +_13: + return X__syscall_ret(tls, Uint64FromInt64(v12)) +} + +func Xsendto(tls *TLS, fd int32, buf uintptr, len1 Tsize_t, flags int32, addr uintptr, alen Tsocklen_t) (r1 Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v len1=%v flags=%v addr=%v alen=%v, (%v:)", tls, fd, buf, len1, flags, addr, alen, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v8 int64 + var v1 int32 + var v2, v3, v4, v5, v6, v7 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _ = r, v1, v2, v3, v4, v5, v6, v7, v8 + v1 = int32(SYS_sendto) + _ = int32(__SC_sendto) + v2 = int64(fd) + v3 = int64(buf) + v4 = Int64FromUint64(len1) + v5 = int64(flags) + v6 = int64(addr) + v7 = Int64FromUint32(alen) + if int32(1) != 0 { + r = ___syscall_cp(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _9 + } + v8 = r + goto _9 +_9: + return X__syscall_ret(tls, Uint64FromInt64(v8)) +} + +func Xendservent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } +} + +func Xsetservent(tls *TLS, stayopen int32) { + if __ccgo_strace { + trc("tls=%v stayopen=%v, (%v:)", tls, stayopen, origin(2)) + } +} + +func Xgetservent(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(0) +} + +func Xsetsockopt(tls *TLS, fd int32, level int32, optname int32, optval uintptr, optlen Tsocklen_t) (r2 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v level=%v optname=%v optval=%v optlen=%v, (%v:)", tls, fd, level, optname, optval, optlen, origin(2)) + defer func() { trc("-> %v", r2) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var r, v8 int64 + var r1, v1 int32 + var s Ttime_t + var tv uintptr + var us Tsuseconds_t + var v10 uint64 + var v2, v3, v4, v5, v6, v7 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = r, r1, s, tv, us, v1, v10, v2, v3, v4, v5, v6, v7, v8 + v1 = int32(SYS_setsockopt) + _ = int32(__SC_setsockopt) + v2 = int64(fd) + v3 = int64(level) + v4 = int64(optname) + v5 = int64(optval) + v6 = Int64FromUint32(optlen) + v7 = int64(Int32FromInt32(0)) + if 0 != 0 { + r = ___syscall_cp(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _9 + } + v8 = r + goto _9 +_9: + r1 = int32(v8) + if r1 == -int32(ENOPROTOOPT) { + switch level { + case int32(SOL_SOCKET): + switch optname { + case int32(SO_RCVTIMEO): + fallthrough + case int32(SO_SNDTIMEO): + if true { + break + } + if uint64(optlen) < uint64(16) { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL)))) + } + tv = optval + s = (*Ttimeval)(unsafe.Pointer(tv)).Ftv_sec + us = (*Ttimeval)(unsafe.Pointer(tv)).Ftv_usec + if !!((Uint64FromInt64(s)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EOPNOTSUPP)))) + } + if optname == int32(SO_RCVTIMEO) { + optname = int32(SO_RCVTIMEO_OLD) + } + if optname == int32(SO_SNDTIMEO) { + optname = int32(SO_SNDTIMEO_OLD) + } + if !((Uint64FromInt64(us)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) { + v10 = Uint64FromInt64(us) + } else { + v10 = uint64(0x7fffffff) + (0+Uint64FromInt64(us))>>int32(63) + } + *(*[2]int64)(unsafe.Pointer(bp)) = [2]int64{ + 0: s, + 1: int64(Int32FromUint64(v10)), + } + v1 = int32(SYS_setsockopt) + _ = int32(__SC_setsockopt) + v2 = int64(fd) + v3 = int64(level) + v4 = int64(optname) + v5 = int64(bp) + v6 = Int64FromUint64(Uint64FromInt32(2) * Uint64FromInt64(8)) + v7 = int64(Int32FromInt32(0)) + if 0 != 0 { + r = ___syscall_cp(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _19 + } + v8 = r + goto _19 + _19: + r1 = int32(v8) + case int32(SO_TIMESTAMP): + fallthrough + case int32(SO_TIMESTAMPNS): + if true { + break + } + if optname == int32(SO_TIMESTAMP) { + optname = int32(SO_TIMESTAMP_OLD) + } + if optname == int32(SO_TIMESTAMPNS) { + optname = int32(SO_TIMESTAMPNS_OLD) + } + v1 = int32(SYS_setsockopt) + _ = int32(__SC_setsockopt) + v2 = int64(fd) + v3 = int64(level) + v4 = int64(optname) + v5 = int64(optval) + v6 = Int64FromUint32(optlen) + v7 = int64(Int32FromInt32(0)) + if 0 != 0 { + r = ___syscall_cp(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _28 + } + v8 = r + goto _28 + _28: + r1 = int32(v8) + break + } + } + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r1))) +} + +func Xshutdown(tls *TLS, fd int32, how int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v how=%v, (%v:)", tls, fd, how, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v8 int64 + var v1 int32 + var v2, v3, v4, v5, v6, v7 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _ = r, v1, v2, v3, v4, v5, v6, v7, v8 + v1 = int32(SYS_shutdown) + _ = int32(__SC_shutdown) + v2 = int64(fd) + v3 = int64(how) + v4 = int64(Int32FromInt32(0)) + v5 = int64(Int32FromInt32(0)) + v6 = int64(Int32FromInt32(0)) + v7 = int64(Int32FromInt32(0)) + if 0 != 0 { + r = ___syscall_cp(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _9 + } + v8 = r + goto _9 +_9: + return int32(X__syscall_ret(tls, Uint64FromInt64(v8))) +} + +func Xsockatmark(tls *TLS, s int32) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var _ /* ret at bp+0 */ int32 + if Xioctl(tls, s, int32(SIOCATMARK), VaList(bp+16, bp)) < 0 { + return -int32(1) + } + return **(**int32)(__ccgo_up(bp)) +} + +func Xsocket(tls *TLS, domain int32, type1 int32, protocol int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v domain=%v type1=%v protocol=%v, (%v:)", tls, domain, type1, protocol, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v17, v8 int64 + var s, v1, v10 int32 + var v11, v12, v13, v14, v15, v16, v2, v3, v4, v5, v6, v7 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = r, s, v1, v10, v11, v12, v13, v14, v15, v16, v17, v2, v3, v4, v5, v6, v7, v8 + v1 = int32(SYS_socket) + _ = int32(__SC_socket) + v2 = int64(domain) + v3 = int64(type1) + v4 = int64(protocol) + v5 = int64(Int32FromInt32(0)) + v6 = int64(Int32FromInt32(0)) + v7 = int64(Int32FromInt32(0)) + if 0 != 0 { + r = ___syscall_cp(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _9 + } + v8 = r + goto _9 +_9: + s = int32(v8) + if (s == -int32(EINVAL) || s == -int32(EPROTONOSUPPORT)) && type1&(Int32FromInt32(SOCK_CLOEXEC)|Int32FromInt32(SOCK_NONBLOCK)) != 0 { + v10 = int32(SYS_socket) + _ = int32(__SC_socket) + v11 = int64(domain) + v12 = int64(type1 & ^(Int32FromInt32(SOCK_CLOEXEC) | Int32FromInt32(SOCK_NONBLOCK))) + v13 = int64(protocol) + v14 = int64(Int32FromInt32(0)) + v15 = int64(Int32FromInt32(0)) + v16 = int64(Int32FromInt32(0)) + if 0 != 0 { + r = ___syscall_cp(tls, int64(v10), v11, v12, v13, v14, v15, v16) + } else { + r = X__syscall6(tls, int64(v10), v11, v12, v13, v14, v15, v16) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v17 = r + goto _18 + } + v17 = r + goto _18 + _18: + s = int32(v17) + if s < 0 { + return int32(X__syscall_ret(tls, Uint64FromInt32(s))) + } + if type1&int32(SOCK_CLOEXEC) != 0 { + X__syscall3(tls, int64(SYS_fcntl), int64(s), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + } + if type1&int32(SOCK_NONBLOCK) != 0 { + X__syscall3(tls, int64(SYS_fcntl), int64(s), int64(Int32FromInt32(F_SETFL)), int64(Int32FromInt32(O_NONBLOCK))) + } + } + return int32(X__syscall_ret(tls, Uint64FromInt32(s))) +} + +func Xsocketpair(tls *TLS, domain int32, type1 int32, protocol int32, fd uintptr) (r2 int32) { + if __ccgo_strace { + trc("tls=%v domain=%v type1=%v protocol=%v fd=%v, (%v:)", tls, domain, type1, protocol, fd, origin(2)) + defer func() { trc("-> %v", r2) }() + } + var r, v17, v8 int64 + var r1, v1, v10 int32 + var v11, v12, v13, v14, v15, v16, v2, v3, v4, v5, v6, v7 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = r, r1, v1, v10, v11, v12, v13, v14, v15, v16, v17, v2, v3, v4, v5, v6, v7, v8 + v1 = int32(SYS_socketpair) + _ = int32(__SC_socketpair) + v2 = int64(domain) + v3 = int64(type1) + v4 = int64(protocol) + v5 = int64(fd) + v6 = int64(Int32FromInt32(0)) + v7 = int64(Int32FromInt32(0)) + if 0 != 0 { + r = ___syscall_cp(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _9 + } + v8 = r + goto _9 +_9: + r1 = int32(X__syscall_ret(tls, Uint64FromInt64(v8))) + if r1 < 0 && (**(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EINVAL) || **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EPROTONOSUPPORT)) && type1&(Int32FromInt32(SOCK_CLOEXEC)|Int32FromInt32(SOCK_NONBLOCK)) != 0 { + v10 = int32(SYS_socketpair) + _ = int32(__SC_socketpair) + v11 = int64(domain) + v12 = int64(type1 & ^(Int32FromInt32(SOCK_CLOEXEC) | Int32FromInt32(SOCK_NONBLOCK))) + v13 = int64(protocol) + v14 = int64(fd) + v15 = int64(Int32FromInt32(0)) + v16 = int64(Int32FromInt32(0)) + if 0 != 0 { + r = ___syscall_cp(tls, int64(v10), v11, v12, v13, v14, v15, v16) + } else { + r = X__syscall6(tls, int64(v10), v11, v12, v13, v14, v15, v16) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v17 = r + goto _18 + } + v17 = r + goto _18 + _18: + r1 = int32(X__syscall_ret(tls, Uint64FromInt64(v17))) + if r1 < 0 { + return r1 + } + if type1&int32(SOCK_CLOEXEC) != 0 { + X__syscall3(tls, int64(SYS_fcntl), int64(**(**int32)(__ccgo_up(fd))), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + X__syscall3(tls, int64(SYS_fcntl), int64(**(**int32)(__ccgo_up(fd + 1*4))), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + } + if type1&int32(SOCK_NONBLOCK) != 0 { + X__syscall3(tls, int64(SYS_fcntl), int64(**(**int32)(__ccgo_up(fd))), int64(Int32FromInt32(F_SETFL)), int64(Int32FromInt32(O_NONBLOCK))) + X__syscall3(tls, int64(SYS_fcntl), int64(**(**int32)(__ccgo_up(fd + 1*4))), int64(Int32FromInt32(F_SETFL)), int64(Int32FromInt32(O_NONBLOCK))) + } + } + return r1 +} + +const SHADOW = "/etc/shadow" + +type Tgroup = struct { + Fgr_name uintptr + Fgr_passwd uintptr + Fgr_gid Tgid_t + Fgr_mem uintptr +} + +type Tspwd = struct { + Fsp_namp uintptr + Fsp_pwdp uintptr + Fsp_lstchg int64 + Fsp_min int64 + Fsp_max int64 + Fsp_warn int64 + Fsp_inact int64 + Fsp_expire int64 + Fsp_flag uint64 +} + +func Xfgetgrent(tls *TLS, f uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var _ /* nmem at bp+16 */ Tsize_t + var _ /* res at bp+0 */ uintptr + var _ /* size at bp+8 */ Tsize_t + **(**Tsize_t)(__ccgo_up(bp + 8)) = uint64(0) + **(**Tsize_t)(__ccgo_up(bp + 16)) = uint64(0) + X__getgrent_a(tls, f, uintptr(unsafe.Pointer(&_gr)), uintptr(unsafe.Pointer(&_line1)), bp+8, uintptr(unsafe.Pointer(&_mem)), bp+16, bp) + return **(**uintptr)(__ccgo_up(bp)) +} + +var _line1 uintptr + +var _mem uintptr + +var _gr Tgroup + +func Xfgetpwent(tls *TLS, f uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* res at bp+8 */ uintptr + var _ /* size at bp+0 */ Tsize_t + **(**Tsize_t)(__ccgo_up(bp)) = uint64(0) + X__getpwent_a(tls, f, uintptr(unsafe.Pointer(&_pw)), uintptr(unsafe.Pointer(&_line2)), bp, bp+8) + return **(**uintptr)(__ccgo_up(bp + 8)) +} + +var _line2 uintptr + +var _pw Tpasswd + +const GETGRBYGID = 3 +const GETGRBYNAME = 2 +const GETINITGR = 15 +const GETPWBYNAME = 0 +const GETPWBYUID = 1 +const GRFOUND = 1 +const GRGID = 4 +const GRMEMCNT = 5 +const GRNAMELEN = 2 +const GRPASSWDLEN = 3 +const GRVERSION = 0 +const GR_LEN = 6 +const INITGRFOUND = 1 +const INITGRNGRPS = 2 +const INITGRVERSION = 0 +const INITGR_LEN = 3 +const NSCDVERSION = 2 +const PWDIRLEN = 7 +const PWFOUND = 1 +const PWGECOSLEN = 6 +const PWGID = 5 +const PWNAMELEN = 2 +const PWPASSWDLEN = 3 +const PWSHELLLEN = 8 +const PWUID = 4 +const PWVERSION = 0 +const PW_LEN = 9 +const REQKEYLEN = 2 +const REQTYPE = 1 +const REQVERSION = 0 +const REQ_LEN = 3 + +func _itoa1(tls *TLS, p uintptr, x Tuint32_t) (r uintptr) { + var v1 uintptr + _ = v1 + // number of digits in a uint32_t + NUL + p = p + uintptr(11) + p = p - 1 + v1 = p + **(**int8)(__ccgo_up(v1)) = 0 + for cond := true; cond; cond = x != 0 { + p = p - 1 + v1 = p + **(**int8)(__ccgo_up(v1)) = Int8FromUint32(uint32('0') + x%uint32(10)) + x = x / uint32(10) + } + return p +} + +func X__getgr_a(tls *TLS, name uintptr, gid Tgid_t, gr uintptr, buf uintptr, size uintptr, mem uintptr, nmem uintptr, res uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v gid=%v gr=%v buf=%v size=%v mem=%v nmem=%v res=%v, (%v:)", tls, name, gid, gr, buf, size, mem, nmem, res, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + var f, key, ptr, tmp, tmp1 uintptr + var grlist_len, len1 Tsize_t + var i, req, v10 Tint32_t + var rv, v1 int32 + var v5, v6 Tuint32_t + var _ /* cs at bp+0 */ int32 + var _ /* gidbuf at bp+28 */ [11]int8 + var _ /* groupbuf at bp+4 */ [6]Tint32_t + var _ /* name_len at bp+44 */ Tuint32_t + var _ /* swap at bp+40 */ int32 + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = f, grlist_len, i, key, len1, ptr, req, rv, tmp, tmp1, v1, v10, v5, v6 + rv = 0 + **(**uintptr)(__ccgo_up(res)) = uintptr(0) + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp) + f = Xfopen(tls, __ccgo_ts+1252, __ccgo_ts+381) + if !(f != 0) { + rv = **(**int32)(__ccgo_up(X__errno_location(tls))) + goto done + } + for { + v1 = X__getgrent_a(tls, f, gr, buf, size, mem, nmem, res) + rv = v1 + if !(!(v1 != 0) && **(**uintptr)(__ccgo_up(res)) != 0) { + break + } + if name != 0 && !(Xstrcmp(tls, name, (*Tgroup)(unsafe.Pointer(**(**uintptr)(__ccgo_up(res)))).Fgr_name) != 0) || !(name != 0) && (*Tgroup)(unsafe.Pointer(**(**uintptr)(__ccgo_up(res)))).Fgr_gid == gid { + break + } + } + Xfclose(tls, f) + if !(**(**uintptr)(__ccgo_up(res)) != 0) && (rv == 0 || rv == int32(ENOENT) || rv == int32(ENOTDIR)) { + if name != 0 { + v1 = int32(GETGRBYNAME) + } else { + v1 = int32(GETGRBYGID) + } + req = v1 + **(**[6]Tint32_t)(__ccgo_up(bp + 4)) = [6]Tint32_t{} + len1 = uint64(0) + grlist_len = uint64(0) + **(**[11]int8)(__ccgo_up(bp + 28)) = [11]int8{} + **(**int32)(__ccgo_up(bp + 40)) = 0 + if name != 0 { + key = name + } else { + if gid < uint32(0) || gid > uint32(0xffffffff) { + rv = 0 + goto done + } + key = _itoa1(tls, bp+28, gid) + } + f = X__nscd_query(tls, req, key, bp+4, uint64(24), bp+40) + if !(f != 0) { + rv = **(**int32)(__ccgo_up(X__errno_location(tls))) + goto done + } + if !((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRFOUND)] != 0) { + rv = 0 + goto cleanup_f + } + if !((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRNAMELEN)] != 0) || !((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRPASSWDLEN)] != 0) { + rv = int32(EIO) + goto cleanup_f + } + if Uint64FromInt32((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRNAMELEN)]) > uint64(0xffffffffffffffff)-Uint64FromInt32((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRPASSWDLEN)]) { + rv = int32(ENOMEM) + goto cleanup_f + } + len1 = Uint64FromInt32((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRNAMELEN)] + (**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRPASSWDLEN)]) + i = 0 + for { + if !(i < (**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRMEMCNT)]) { + break + } + if Xfread(tls, bp+44, uint64(4), uint64(1), f) < uint64(1) { + if Xferror(tls, f) != 0 { + v1 = **(**int32)(__ccgo_up(X__errno_location(tls))) + } else { + v1 = int32(EIO) + } + rv = v1 + goto cleanup_f + } + if **(**int32)(__ccgo_up(bp + 40)) != 0 { + v5 = **(**Tuint32_t)(__ccgo_up(bp + 44)) + v6 = v5>>int32(24) | v5>>int32(8)&uint32(0xff00) | v5< uint64(0xffffffffffffffff)-grlist_len || uint64(**(**Tuint32_t)(__ccgo_up(bp + 44))) > uint64(0xffffffffffffffff)-len1 { + rv = int32(ENOMEM) + goto cleanup_f + } + len1 = len1 + uint64(**(**Tuint32_t)(__ccgo_up(bp + 44))) + grlist_len = grlist_len + uint64(**(**Tuint32_t)(__ccgo_up(bp + 44))) + goto _3 + _3: + ; + i = i + 1 + } + if len1 > **(**Tsize_t)(__ccgo_up(size)) || !(**(**uintptr)(__ccgo_up(buf)) != 0) { + tmp = Xrealloc(tls, **(**uintptr)(__ccgo_up(buf)), len1) + if !(tmp != 0) { + rv = **(**int32)(__ccgo_up(X__errno_location(tls))) + goto cleanup_f + } + **(**uintptr)(__ccgo_up(buf)) = tmp + **(**Tsize_t)(__ccgo_up(size)) = len1 + } + if !(Xfread(tls, **(**uintptr)(__ccgo_up(buf)), len1, uint64(1), f) != 0) { + if Xferror(tls, f) != 0 { + v1 = **(**int32)(__ccgo_up(X__errno_location(tls))) + } else { + v1 = int32(EIO) + } + rv = v1 + goto cleanup_f + } + if Uint64FromInt32((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRMEMCNT)]+int32(1)) > **(**Tsize_t)(__ccgo_up(nmem)) { + if Uint64FromInt32((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRMEMCNT)]+int32(1)) > Uint64FromUint64(0xffffffffffffffff)/Uint64FromInt64(8) { + rv = int32(ENOMEM) + goto cleanup_f + } + tmp1 = Xrealloc(tls, **(**uintptr)(__ccgo_up(mem)), Uint64FromInt32((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRMEMCNT)]+Int32FromInt32(1))*uint64(8)) + if !(tmp1 != 0) { + rv = **(**int32)(__ccgo_up(X__errno_location(tls))) + goto cleanup_f + } + **(**uintptr)(__ccgo_up(mem)) = tmp1 + **(**Tsize_t)(__ccgo_up(nmem)) = Uint64FromInt32((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRMEMCNT)] + int32(1)) + } + if (**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRMEMCNT)] != 0 { + **(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(mem)))) = **(**uintptr)(__ccgo_up(buf)) + uintptr((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRNAMELEN)]) + uintptr((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRPASSWDLEN)]) + ptr = **(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(mem)))) + i = Int32FromInt32(0) + for { + if !(ptr != **(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(mem))))+uintptr(grlist_len)) { + break + } + if !(**(**int8)(__ccgo_up(ptr)) != 0) { + i = i + 1 + v10 = i + **(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(mem)) + uintptr(v10)*8)) = ptr + uintptr(1) + } + goto _9 + _9: + ; + ptr = ptr + 1 + } + **(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(mem)) + uintptr(i)*8)) = uintptr(0) + if i != (**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRMEMCNT)] { + rv = int32(EIO) + goto cleanup_f + } + } else { + **(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(mem)))) = uintptr(0) + } + (*Tgroup)(unsafe.Pointer(gr)).Fgr_name = **(**uintptr)(__ccgo_up(buf)) + (*Tgroup)(unsafe.Pointer(gr)).Fgr_passwd = (*Tgroup)(unsafe.Pointer(gr)).Fgr_name + uintptr((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRNAMELEN)]) + (*Tgroup)(unsafe.Pointer(gr)).Fgr_gid = Uint32FromInt32((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRGID)]) + (*Tgroup)(unsafe.Pointer(gr)).Fgr_mem = **(**uintptr)(__ccgo_up(mem)) + if **(**int8)(__ccgo_up((*Tgroup)(unsafe.Pointer(gr)).Fgr_passwd + uintptr(-Int32FromInt32(1)))) != 0 || **(**int8)(__ccgo_up((*Tgroup)(unsafe.Pointer(gr)).Fgr_passwd + uintptr((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRPASSWDLEN)]-int32(1)))) != 0 { + rv = int32(EIO) + goto cleanup_f + } + if name != 0 && Xstrcmp(tls, name, (*Tgroup)(unsafe.Pointer(gr)).Fgr_name) != 0 || !(name != 0) && gid != (*Tgroup)(unsafe.Pointer(gr)).Fgr_gid { + rv = int32(EIO) + goto cleanup_f + } + **(**uintptr)(__ccgo_up(res)) = gr + goto cleanup_f + cleanup_f: + ; + Xfclose(tls, f) + goto done + } + goto done +done: + ; + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp)), uintptr(0)) + if rv != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = rv + } + return rv +} + +func _getgr_r(tls *TLS, name uintptr, gid Tgid_t, gr uintptr, buf uintptr, size Tsize_t, res uintptr) (r int32) { + bp := tls.Alloc(48) + defer tls.Free(48) + var i Tsize_t + var rv int32 + var _ /* cs at bp+32 */ int32 + var _ /* len at bp+8 */ Tsize_t + var _ /* line at bp+0 */ uintptr + var _ /* mem at bp+16 */ uintptr + var _ /* nmem at bp+24 */ Tsize_t + _, _ = i, rv + **(**uintptr)(__ccgo_up(bp)) = uintptr(0) + **(**Tsize_t)(__ccgo_up(bp + 8)) = uint64(0) + **(**uintptr)(__ccgo_up(bp + 16)) = uintptr(0) + **(**Tsize_t)(__ccgo_up(bp + 24)) = uint64(0) + rv = 0 + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp+32) + rv = X__getgr_a(tls, name, gid, gr, bp, bp+8, bp+16, bp+24, res) + if **(**uintptr)(__ccgo_up(res)) != 0 && size < **(**Tsize_t)(__ccgo_up(bp + 8))+(**(**Tsize_t)(__ccgo_up(bp + 24))+uint64(1))*uint64(8)+uint64(32) { + **(**uintptr)(__ccgo_up(res)) = uintptr(0) + rv = int32(ERANGE) + } + if **(**uintptr)(__ccgo_up(res)) != 0 { + buf = buf + uintptr((uint64(16)-uint64(buf))%uint64(16)) + (*Tgroup)(unsafe.Pointer(gr)).Fgr_mem = buf + buf = buf + uintptr((**(**Tsize_t)(__ccgo_up(bp + 24))+uint64(1))*uint64(8)) + Xmemcpy(tls, buf, **(**uintptr)(__ccgo_up(bp)), **(**Tsize_t)(__ccgo_up(bp + 8))) + (*Tgroup)(unsafe.Pointer(gr)).Fgr_name = uintptr(int64((*Tgroup)(unsafe.Pointer(gr)).Fgr_name)-int64(**(**uintptr)(__ccgo_up(bp)))) + buf + (*Tgroup)(unsafe.Pointer(gr)).Fgr_passwd = uintptr(int64((*Tgroup)(unsafe.Pointer(gr)).Fgr_passwd)-int64(**(**uintptr)(__ccgo_up(bp)))) + buf + i = uint64(0) + for { + if !(**(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 16)) + uintptr(i)*8)) != 0) { + break + } + **(**uintptr)(__ccgo_up((*Tgroup)(unsafe.Pointer(gr)).Fgr_mem + uintptr(i)*8)) = uintptr(int64(**(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 16)) + uintptr(i)*8)))-int64(**(**uintptr)(__ccgo_up(bp)))) + buf + goto _1 + _1: + ; + i = i + 1 + } + **(**uintptr)(__ccgo_up((*Tgroup)(unsafe.Pointer(gr)).Fgr_mem + uintptr(i)*8)) = uintptr(0) + } + Xfree(tls, **(**uintptr)(__ccgo_up(bp + 16))) + Xfree(tls, **(**uintptr)(__ccgo_up(bp))) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 32)), uintptr(0)) + if rv != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = rv + } + return rv +} + +func Xgetgrnam_r(tls *TLS, name uintptr, gr uintptr, buf uintptr, size Tsize_t, res uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v gr=%v buf=%v size=%v res=%v, (%v:)", tls, name, gr, buf, size, res, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _getgr_r(tls, name, uint32(0), gr, buf, size, res) +} + +func Xgetgrgid_r(tls *TLS, gid Tgid_t, gr uintptr, buf uintptr, size Tsize_t, res uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v gid=%v gr=%v buf=%v size=%v res=%v, (%v:)", tls, gid, gr, buf, size, res, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _getgr_r(tls, uintptr(0), gid, gr, buf, size, res) +} + +var _f1 uintptr +var _line3 uintptr +var _mem1 uintptr +var _gr1 Tgroup + +func Xsetgrent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + if _f1 != 0 { + Xfclose(tls, _f1) + } + _f1 = uintptr(0) +} + +func Xgetgrent(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var _ /* nmem at bp+16 */ Tsize_t + var _ /* res at bp+0 */ uintptr + var _ /* size at bp+8 */ Tsize_t + **(**Tsize_t)(__ccgo_up(bp + 8)) = uint64(0) + **(**Tsize_t)(__ccgo_up(bp + 16)) = uint64(0) + if !(_f1 != 0) { + _f1 = Xfopen(tls, __ccgo_ts+1252, __ccgo_ts+381) + } + if !(_f1 != 0) { + return uintptr(0) + } + X__getgrent_a(tls, _f1, uintptr(unsafe.Pointer(&_gr1)), uintptr(unsafe.Pointer(&_line3)), bp+8, uintptr(unsafe.Pointer(&_mem1)), bp+16, bp) + return **(**uintptr)(__ccgo_up(bp)) +} + +func Xgetgrgid(tls *TLS, gid Tgid_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v gid=%v, (%v:)", tls, gid, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var _ /* nmem at bp+16 */ Tsize_t + var _ /* res at bp+0 */ uintptr + var _ /* size at bp+8 */ Tsize_t + **(**Tsize_t)(__ccgo_up(bp + 8)) = uint64(0) + **(**Tsize_t)(__ccgo_up(bp + 16)) = uint64(0) + X__getgr_a(tls, uintptr(0), gid, uintptr(unsafe.Pointer(&_gr1)), uintptr(unsafe.Pointer(&_line3)), bp+8, uintptr(unsafe.Pointer(&_mem1)), bp+16, bp) + return **(**uintptr)(__ccgo_up(bp)) +} + +func Xgetgrnam(tls *TLS, name uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var _ /* nmem at bp+16 */ Tsize_t + var _ /* res at bp+0 */ uintptr + var _ /* size at bp+8 */ Tsize_t + **(**Tsize_t)(__ccgo_up(bp + 8)) = uint64(0) + **(**Tsize_t)(__ccgo_up(bp + 16)) = uint64(0) + X__getgr_a(tls, name, uint32(0), uintptr(unsafe.Pointer(&_gr1)), uintptr(unsafe.Pointer(&_line3)), bp+8, uintptr(unsafe.Pointer(&_mem1)), bp+16, bp) + return **(**uintptr)(__ccgo_up(bp)) +} + +func Xendgrent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + Xsetgrent(tls) +} + +func _atou(tls *TLS, s uintptr) (r uint32) { + var x uint32 + _ = x + x = uint32(0) + for { + if !(Uint32FromInt32(int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(s)))))-int32('0')) < uint32(10)) { + break + } + x = uint32(10)*x + Uint32FromInt32(int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(s)))))-Int32FromUint8('0')) + goto _1 + _1: + ; + **(**uintptr)(__ccgo_up(s)) = **(**uintptr)(__ccgo_up(s)) + 1 + } + return x +} + +func X__getgrent_a(tls *TLS, f uintptr, gr uintptr, line uintptr, size uintptr, mem uintptr, nmem uintptr, res uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v gr=%v line=%v size=%v mem=%v nmem=%v res=%v, (%v:)", tls, f, gr, line, size, mem, nmem, res, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var i, v13 Tsize_t + var l, v2 Tssize_t + var mems, v4 uintptr + var rv, v3 int32 + var _ /* cs at bp+8 */ int32 + var _ /* s at bp+0 */ uintptr + _, _, _, _, _, _, _, _ = i, l, mems, rv, v13, v2, v3, v4 + rv = 0 + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp+8) + for { + v2 = Xgetline(tls, line, size, f) + l = v2 + if v2 < 0 { + if Xferror(tls, f) != 0 { + v3 = **(**int32)(__ccgo_up(X__errno_location(tls))) + } else { + v3 = 0 + } + rv = v3 + Xfree(tls, **(**uintptr)(__ccgo_up(line))) + **(**uintptr)(__ccgo_up(line)) = uintptr(0) + gr = uintptr(0) + goto end + } + **(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(line)) + uintptr(l-int64(1)))) = 0 + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(line)) + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + (*Tgroup)(unsafe.Pointer(gr)).Fgr_name = v4 + v4 = Xstrchr(tls, **(**uintptr)(__ccgo_up(bp)), int32(':')) + **(**uintptr)(__ccgo_up(bp)) = v4 + if !(v4 != 0) { + goto _1 + } + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + **(**int8)(__ccgo_up(v4)) = 0 + (*Tgroup)(unsafe.Pointer(gr)).Fgr_passwd = **(**uintptr)(__ccgo_up(bp)) + v4 = Xstrchr(tls, **(**uintptr)(__ccgo_up(bp)), int32(':')) + **(**uintptr)(__ccgo_up(bp)) = v4 + if !(v4 != 0) { + goto _1 + } + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + **(**int8)(__ccgo_up(v4)) = 0 + (*Tgroup)(unsafe.Pointer(gr)).Fgr_gid = _atou(tls, bp) + if int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp))))) != int32(':') { + goto _1 + } + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + **(**int8)(__ccgo_up(v4)) = 0 + mems = **(**uintptr)(__ccgo_up(bp)) + break + goto _1 + _1: + } + **(**Tsize_t)(__ccgo_up(nmem)) = BoolUint64(!!(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)))) != 0)) + for { + if !(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)))) != 0) { + break + } + if int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp))))) == int32(',') { + **(**Tsize_t)(__ccgo_up(nmem)) = **(**Tsize_t)(__ccgo_up(nmem)) + 1 + } + goto _10 + _10: + ; + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + } + Xfree(tls, **(**uintptr)(__ccgo_up(mem))) + **(**uintptr)(__ccgo_up(mem)) = Xcalloc(tls, uint64(8), **(**Tsize_t)(__ccgo_up(nmem))+uint64(1)) + if !(**(**uintptr)(__ccgo_up(mem)) != 0) { + rv = **(**int32)(__ccgo_up(X__errno_location(tls))) + Xfree(tls, **(**uintptr)(__ccgo_up(line))) + **(**uintptr)(__ccgo_up(line)) = uintptr(0) + gr = uintptr(0) + goto end + } + if **(**int8)(__ccgo_up(mems)) != 0 { + **(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(mem)))) = mems + **(**uintptr)(__ccgo_up(bp)) = mems + i = Uint64FromInt32(0) + for { + if !(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)))) != 0) { + break + } + if int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp))))) == int32(',') { + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + **(**int8)(__ccgo_up(v4)) = 0 + i = i + 1 + v13 = i + **(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(mem)) + uintptr(v13)*8)) = **(**uintptr)(__ccgo_up(bp)) + } + goto _11 + _11: + ; + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + } + i = i + 1 + v13 = i + **(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(mem)) + uintptr(v13)*8)) = uintptr(0) + } else { + **(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(mem)))) = uintptr(0) + } + (*Tgroup)(unsafe.Pointer(gr)).Fgr_mem = **(**uintptr)(__ccgo_up(mem)) + goto end +end: + ; + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 8)), uintptr(0)) + **(**uintptr)(__ccgo_up(res)) = gr + if rv != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = rv + } + return rv +} + +func Xgetgrouplist(tls *TLS, user uintptr, gid Tgid_t, groups uintptr, ngroups uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v user=%v gid=%v groups=%v ngroups=%v, (%v:)", tls, user, gid, groups, ngroups, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(96) + defer tls.Free(96) + var f, nscdbuf, v1 uintptr + var i, n, v9 Tssize_t + var nbytes Tsize_t + var nlim, ret, rv, v6 int32 + var v14 int64 + var v3, v4 Tuint32_t + var _ /* buf at bp+56 */ uintptr + var _ /* gr at bp+0 */ Tgroup + var _ /* mem at bp+64 */ uintptr + var _ /* nmem at bp+72 */ Tsize_t + var _ /* res at bp+32 */ uintptr + var _ /* resp at bp+44 */ [3]Tint32_t + var _ /* size at bp+80 */ Tsize_t + var _ /* swap at bp+40 */ int32 + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = f, i, n, nbytes, nlim, nscdbuf, ret, rv, v1, v14, v3, v4, v6, v9 + ret = -int32(1) + n = int64(1) + **(**int32)(__ccgo_up(bp + 40)) = 0 + nscdbuf = uintptr(0) + **(**uintptr)(__ccgo_up(bp + 56)) = uintptr(0) + **(**uintptr)(__ccgo_up(bp + 64)) = uintptr(0) + **(**Tsize_t)(__ccgo_up(bp + 72)) = uint64(0) + nlim = **(**int32)(__ccgo_up(ngroups)) + if nlim >= int32(1) { + v1 = groups + groups += 4 + **(**Tgid_t)(__ccgo_up(v1)) = gid + } + f = X__nscd_query(tls, int32(GETINITGR), user, bp+44, uint64(12), bp+40) + if !(f != 0) { + goto cleanup + } + if (**(**[3]Tint32_t)(__ccgo_up(bp + 44)))[int32(INITGRFOUND)] != 0 { + nscdbuf = Xcalloc(tls, Uint64FromInt32((**(**[3]Tint32_t)(__ccgo_up(bp + 44)))[int32(INITGRNGRPS)]), uint64(4)) + if !(nscdbuf != 0) { + goto cleanup + } + nbytes = uint64(4) * Uint64FromInt32((**(**[3]Tint32_t)(__ccgo_up(bp + 44)))[int32(INITGRNGRPS)]) + if nbytes != 0 && !(Xfread(tls, nscdbuf, nbytes, uint64(1), f) != 0) { + if !(Xferror(tls, f) != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EIO) + } + goto cleanup + } + if **(**int32)(__ccgo_up(bp + 40)) != 0 { + i = 0 + for { + if !(i < int64((**(**[3]Tint32_t)(__ccgo_up(bp + 44)))[int32(INITGRNGRPS)])) { + break + } + v3 = **(**Tuint32_t)(__ccgo_up(nscdbuf + uintptr(i)*4)) + v4 = v3>>int32(24) | v3>>int32(8)&uint32(0xff00) | v3< int64(nlim) { + v14 = int64(-int32(1)) + } else { + v14 = n + } + ret = int32(v14) + **(**int32)(__ccgo_up(ngroups)) = int32(n) + goto cleanup +cleanup: + ; + if f != 0 { + Xfclose(tls, f) + } + Xfree(tls, nscdbuf) + Xfree(tls, **(**uintptr)(__ccgo_up(bp + 56))) + Xfree(tls, **(**uintptr)(__ccgo_up(bp + 64))) + return ret +} + +func _itoa2(tls *TLS, p uintptr, x Tuint32_t) (r uintptr) { + var v1 uintptr + _ = v1 + // number of digits in a uint32_t + NUL + p = p + uintptr(11) + p = p - 1 + v1 = p + **(**int8)(__ccgo_up(v1)) = 0 + for cond := true; cond; cond = x != 0 { + p = p - 1 + v1 = p + **(**int8)(__ccgo_up(v1)) = Int8FromUint32(uint32('0') + x%uint32(10)) + x = x / uint32(10) + } + return p +} + +func X__getpw_a(tls *TLS, name uintptr, uid Tuid_t, pw uintptr, buf uintptr, size uintptr, res uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v uid=%v pw=%v buf=%v size=%v res=%v, (%v:)", tls, name, uid, pw, buf, size, res, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var f, key, tmp uintptr + var len1 Tsize_t + var req Tint32_t + var rv, v1 int32 + var _ /* cs at bp+4 */ int32 + var _ /* passwdbuf at bp+8 */ [9]Tint32_t + var _ /* uidbuf at bp+44 */ [11]int8 + _, _, _, _, _, _, _ = f, key, len1, req, rv, tmp, v1 + rv = 0 + **(**uintptr)(__ccgo_up(res)) = uintptr(0) + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp+4) + f = Xfopen(tls, __ccgo_ts+1263, __ccgo_ts+381) + if !(f != 0) { + rv = **(**int32)(__ccgo_up(X__errno_location(tls))) + goto done + } + for { + v1 = X__getpwent_a(tls, f, pw, buf, size, res) + rv = v1 + if !(!(v1 != 0) && **(**uintptr)(__ccgo_up(res)) != 0) { + break + } + if name != 0 && !(Xstrcmp(tls, name, (*Tpasswd)(unsafe.Pointer(**(**uintptr)(__ccgo_up(res)))).Fpw_name) != 0) || !(name != 0) && (*Tpasswd)(unsafe.Pointer(**(**uintptr)(__ccgo_up(res)))).Fpw_uid == uid { + break + } + } + Xfclose(tls, f) + if !(**(**uintptr)(__ccgo_up(res)) != 0) && (rv == 0 || rv == int32(ENOENT) || rv == int32(ENOTDIR)) { + if name != 0 { + v1 = GETPWBYNAME + } else { + v1 = int32(GETPWBYUID) + } + req = v1 + **(**[9]Tint32_t)(__ccgo_up(bp + 8)) = [9]Tint32_t{} + len1 = uint64(0) + **(**[11]int8)(__ccgo_up(bp + 44)) = [11]int8{} + if name != 0 { + key = name + } else { + /* uid outside of this range can't be queried with the + * nscd interface, but might happen if uid_t ever + * happens to be a larger type (this is not true as of + * now) + */ + if uid < uint32(0) || uid > uint32(0xffffffff) { + rv = 0 + goto done + } + key = _itoa2(tls, bp+44, uid) + } + *(*[1]int32)(unsafe.Pointer(bp)) = [1]int32{} + f = X__nscd_query(tls, req, key, bp+8, uint64(36), bp) + if !(f != 0) { + rv = **(**int32)(__ccgo_up(X__errno_location(tls))) + goto done + } + if !((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWFOUND)] != 0) { + rv = 0 + goto cleanup_f + } + /* A zero length response from nscd is invalid. We ignore + * invalid responses and just report an error, rather than + * trying to do something with them. + */ + if !((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWNAMELEN)] != 0) || !((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWPASSWDLEN)] != 0) || !((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWGECOSLEN)] != 0) || !((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWDIRLEN)] != 0) || !((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWSHELLLEN)] != 0) { + rv = int32(EIO) + goto cleanup_f + } + if Uint64FromInt32((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWNAMELEN)]|(**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWPASSWDLEN)]|(**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWGECOSLEN)]|(**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWDIRLEN)]|(**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWSHELLLEN)]) >= Uint64FromUint64(0xffffffffffffffff)/Uint64FromInt32(8) { + rv = int32(ENOMEM) + goto cleanup_f + } + len1 = Uint64FromInt32((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWNAMELEN)] + (**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWPASSWDLEN)] + (**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWGECOSLEN)] + (**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWDIRLEN)] + (**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWSHELLLEN)]) + if len1 > **(**Tsize_t)(__ccgo_up(size)) || !(**(**uintptr)(__ccgo_up(buf)) != 0) { + tmp = Xrealloc(tls, **(**uintptr)(__ccgo_up(buf)), len1) + if !(tmp != 0) { + rv = **(**int32)(__ccgo_up(X__errno_location(tls))) + goto cleanup_f + } + **(**uintptr)(__ccgo_up(buf)) = tmp + **(**Tsize_t)(__ccgo_up(size)) = len1 + } + if !(Xfread(tls, **(**uintptr)(__ccgo_up(buf)), len1, uint64(1), f) != 0) { + if Xferror(tls, f) != 0 { + v1 = **(**int32)(__ccgo_up(X__errno_location(tls))) + } else { + v1 = int32(EIO) + } + rv = v1 + goto cleanup_f + } + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_name = **(**uintptr)(__ccgo_up(buf)) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_passwd = (*Tpasswd)(unsafe.Pointer(pw)).Fpw_name + uintptr((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWNAMELEN)]) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_gecos = (*Tpasswd)(unsafe.Pointer(pw)).Fpw_passwd + uintptr((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWPASSWDLEN)]) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_dir = (*Tpasswd)(unsafe.Pointer(pw)).Fpw_gecos + uintptr((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWGECOSLEN)]) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_shell = (*Tpasswd)(unsafe.Pointer(pw)).Fpw_dir + uintptr((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWDIRLEN)]) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_uid = Uint32FromInt32((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWUID)]) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_gid = Uint32FromInt32((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWGID)]) + /* Don't assume that nscd made sure to null terminate strings. + * It's supposed to, but malicious nscd should be ignored + * rather than causing a crash. + */ + if **(**int8)(__ccgo_up((*Tpasswd)(unsafe.Pointer(pw)).Fpw_passwd + uintptr(-Int32FromInt32(1)))) != 0 || **(**int8)(__ccgo_up((*Tpasswd)(unsafe.Pointer(pw)).Fpw_gecos + uintptr(-Int32FromInt32(1)))) != 0 || **(**int8)(__ccgo_up((*Tpasswd)(unsafe.Pointer(pw)).Fpw_dir + uintptr(-Int32FromInt32(1)))) != 0 || **(**int8)(__ccgo_up((*Tpasswd)(unsafe.Pointer(pw)).Fpw_shell + uintptr((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWSHELLLEN)]-int32(1)))) != 0 { + rv = int32(EIO) + goto cleanup_f + } + if name != 0 && Xstrcmp(tls, name, (*Tpasswd)(unsafe.Pointer(pw)).Fpw_name) != 0 || !(name != 0) && uid != (*Tpasswd)(unsafe.Pointer(pw)).Fpw_uid { + rv = int32(EIO) + goto cleanup_f + } + **(**uintptr)(__ccgo_up(res)) = pw + goto cleanup_f + cleanup_f: + ; + Xfclose(tls, f) + goto done + } + goto done +done: + ; + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 4)), uintptr(0)) + if rv != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = rv + } + return rv +} + +func _getpw_r(tls *TLS, name uintptr, uid Tuid_t, pw uintptr, buf uintptr, size Tsize_t, res uintptr) (r int32) { + bp := tls.Alloc(32) + defer tls.Free(32) + var rv int32 + var _ /* cs at bp+16 */ int32 + var _ /* len at bp+8 */ Tsize_t + var _ /* line at bp+0 */ uintptr + _ = rv + **(**uintptr)(__ccgo_up(bp)) = uintptr(0) + **(**Tsize_t)(__ccgo_up(bp + 8)) = uint64(0) + rv = 0 + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp+16) + rv = X__getpw_a(tls, name, uid, pw, bp, bp+8, res) + if **(**uintptr)(__ccgo_up(res)) != 0 && size < **(**Tsize_t)(__ccgo_up(bp + 8)) { + **(**uintptr)(__ccgo_up(res)) = uintptr(0) + rv = int32(ERANGE) + } + if **(**uintptr)(__ccgo_up(res)) != 0 { + Xmemcpy(tls, buf, **(**uintptr)(__ccgo_up(bp)), **(**Tsize_t)(__ccgo_up(bp + 8))) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_name = uintptr(int64((*Tpasswd)(unsafe.Pointer(pw)).Fpw_name)-int64(**(**uintptr)(__ccgo_up(bp)))) + buf + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_passwd = uintptr(int64((*Tpasswd)(unsafe.Pointer(pw)).Fpw_passwd)-int64(**(**uintptr)(__ccgo_up(bp)))) + buf + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_gecos = uintptr(int64((*Tpasswd)(unsafe.Pointer(pw)).Fpw_gecos)-int64(**(**uintptr)(__ccgo_up(bp)))) + buf + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_dir = uintptr(int64((*Tpasswd)(unsafe.Pointer(pw)).Fpw_dir)-int64(**(**uintptr)(__ccgo_up(bp)))) + buf + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_shell = uintptr(int64((*Tpasswd)(unsafe.Pointer(pw)).Fpw_shell)-int64(**(**uintptr)(__ccgo_up(bp)))) + buf + } + Xfree(tls, **(**uintptr)(__ccgo_up(bp))) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 16)), uintptr(0)) + if rv != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = rv + } + return rv +} + +func Xgetpwnam_r(tls *TLS, name uintptr, pw uintptr, buf uintptr, size Tsize_t, res uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v pw=%v buf=%v size=%v res=%v, (%v:)", tls, name, pw, buf, size, res, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _getpw_r(tls, name, uint32(0), pw, buf, size, res) +} + +func Xgetpwuid_r(tls *TLS, uid Tuid_t, pw uintptr, buf uintptr, size Tsize_t, res uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v uid=%v pw=%v buf=%v size=%v res=%v, (%v:)", tls, uid, pw, buf, size, res, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _getpw_r(tls, uintptr(0), uid, pw, buf, size, res) +} + +var _f2 uintptr +var _line4 uintptr +var _pw1 Tpasswd +var _size Tsize_t + +func Xsetpwent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + if _f2 != 0 { + Xfclose(tls, _f2) + } + _f2 = uintptr(0) +} + +func Xgetpwent(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* res at bp+0 */ uintptr + if !(_f2 != 0) { + _f2 = Xfopen(tls, __ccgo_ts+1263, __ccgo_ts+381) + } + if !(_f2 != 0) { + return uintptr(0) + } + X__getpwent_a(tls, _f2, uintptr(unsafe.Pointer(&_pw1)), uintptr(unsafe.Pointer(&_line4)), uintptr(unsafe.Pointer(&_size)), bp) + return **(**uintptr)(__ccgo_up(bp)) +} + +func Xgetpwuid(tls *TLS, uid Tuid_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v uid=%v, (%v:)", tls, uid, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* res at bp+0 */ uintptr + X__getpw_a(tls, uintptr(0), uid, uintptr(unsafe.Pointer(&_pw1)), uintptr(unsafe.Pointer(&_line4)), uintptr(unsafe.Pointer(&_size)), bp) + return **(**uintptr)(__ccgo_up(bp)) +} + +func Xgetpwnam(tls *TLS, name uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* res at bp+0 */ uintptr + X__getpw_a(tls, name, uint32(0), uintptr(unsafe.Pointer(&_pw1)), uintptr(unsafe.Pointer(&_line4)), uintptr(unsafe.Pointer(&_size)), bp) + return **(**uintptr)(__ccgo_up(bp)) +} + +func Xendpwent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + Xsetpwent(tls) +} + +func _atou1(tls *TLS, s uintptr) (r uint32) { + var x uint32 + _ = x + x = uint32(0) + for { + if !(Uint32FromInt32(int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(s)))))-int32('0')) < uint32(10)) { + break + } + x = uint32(10)*x + Uint32FromInt32(int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(s)))))-Int32FromUint8('0')) + goto _1 + _1: + ; + **(**uintptr)(__ccgo_up(s)) = **(**uintptr)(__ccgo_up(s)) + 1 + } + return x +} + +func X__getpwent_a(tls *TLS, f uintptr, pw uintptr, line uintptr, size uintptr, res uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v pw=%v line=%v size=%v res=%v, (%v:)", tls, f, pw, line, size, res, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var l, v2 Tssize_t + var rv, v3 int32 + var v4 uintptr + var _ /* cs at bp+8 */ int32 + var _ /* s at bp+0 */ uintptr + _, _, _, _, _ = l, rv, v2, v3, v4 + rv = 0 + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp+8) + for { + v2 = Xgetline(tls, line, size, f) + l = v2 + if v2 < 0 { + if Xferror(tls, f) != 0 { + v3 = **(**int32)(__ccgo_up(X__errno_location(tls))) + } else { + v3 = 0 + } + rv = v3 + Xfree(tls, **(**uintptr)(__ccgo_up(line))) + **(**uintptr)(__ccgo_up(line)) = uintptr(0) + pw = uintptr(0) + break + } + **(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(line)) + uintptr(l-int64(1)))) = 0 + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(line)) + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_name = v4 + v4 = Xstrchr(tls, **(**uintptr)(__ccgo_up(bp)), int32(':')) + **(**uintptr)(__ccgo_up(bp)) = v4 + if !(v4 != 0) { + goto _1 + } + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + **(**int8)(__ccgo_up(v4)) = 0 + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_passwd = **(**uintptr)(__ccgo_up(bp)) + v4 = Xstrchr(tls, **(**uintptr)(__ccgo_up(bp)), int32(':')) + **(**uintptr)(__ccgo_up(bp)) = v4 + if !(v4 != 0) { + goto _1 + } + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + **(**int8)(__ccgo_up(v4)) = 0 + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_uid = _atou1(tls, bp) + if int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp))))) != int32(':') { + goto _1 + } + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + **(**int8)(__ccgo_up(v4)) = 0 + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_gid = _atou1(tls, bp) + if int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp))))) != int32(':') { + goto _1 + } + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + **(**int8)(__ccgo_up(v4)) = 0 + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_gecos = **(**uintptr)(__ccgo_up(bp)) + v4 = Xstrchr(tls, **(**uintptr)(__ccgo_up(bp)), int32(':')) + **(**uintptr)(__ccgo_up(bp)) = v4 + if !(v4 != 0) { + goto _1 + } + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + **(**int8)(__ccgo_up(v4)) = 0 + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_dir = **(**uintptr)(__ccgo_up(bp)) + v4 = Xstrchr(tls, **(**uintptr)(__ccgo_up(bp)), int32(':')) + **(**uintptr)(__ccgo_up(bp)) = v4 + if !(v4 != 0) { + goto _1 + } + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + **(**int8)(__ccgo_up(v4)) = 0 + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_shell = **(**uintptr)(__ccgo_up(bp)) + break + goto _1 + _1: + } + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 8)), uintptr(0)) + **(**uintptr)(__ccgo_up(res)) = pw + if rv != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = rv + } + return rv +} + +func Xsetspent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } +} + +func Xendspent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } +} + +func Xgetspent(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(0) +} + +func Xlckpwdf(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return 0 +} + +func Xulckpwdf(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return 0 +} + +var _addr = struct { + Fsun_family int16 + Fsun_path [21]int8 +}{ + Fsun_family: int16(PF_LOCAL), + Fsun_path: [21]int8{'/', 'v', 'a', 'r', '/', 'r', 'u', 'n', '/', 'n', 's', 'c', 'd', '/', 's', 'o', 'c', 'k', 'e', 't'}, +} + +func X__nscd_query(tls *TLS, req Tint32_t, key uintptr, buf uintptr, len1 Tsize_t, swap uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v req=%v key=%v buf=%v len1=%v swap=%v, (%v:)", tls, req, key, buf, len1, swap, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(112) + defer tls.Free(112) + var errno_save, fd int32 + var f, v1 uintptr + var i Tsize_t + var v3, v4 Tuint32_t + var _ /* msg at bp+48 */ Tmsghdr + var _ /* req_buf at bp+32 */ [3]Tint32_t + _, _, _, _, _, _, _ = errno_save, f, fd, i, v1, v3, v4 + f = uintptr(0) + **(**[3]Tint32_t)(__ccgo_up(bp + 32)) = [3]Tint32_t{ + 0: int32(NSCDVERSION), + 1: req, + 2: Int32FromUint64(Xstrnlen(tls, key, uint64(LOGIN_NAME_MAX)) + uint64(1)), + } + *(*[2]Tiovec)(unsafe.Pointer(bp)) = [2]Tiovec{ + 0: { + Fiov_base: bp + 32, + Fiov_len: uint64(12), + }, + 1: { + Fiov_base: key, + Fiov_len: _strlen(tls, key) + uint64(1), + }, + } + **(**Tmsghdr)(__ccgo_up(bp + 48)) = Tmsghdr{ + Fmsg_iov: bp, + Fmsg_iovlen: int32(2), + } + errno_save = **(**int32)(__ccgo_up(X__errno_location(tls))) + **(**int32)(__ccgo_up(swap)) = 0 + goto retry +retry: + ; + Xmemset(tls, buf, 0, len1) + **(**Tint32_t)(__ccgo_up(buf)) = int32(NSCDVERSION) + fd = Xsocket(tls, int32(PF_LOCAL), Int32FromInt32(SOCK_STREAM)|Int32FromInt32(SOCK_CLOEXEC), 0) + if fd < 0 { + if **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EAFNOSUPPORT) { + f = Xfopen(tls, __ccgo_ts+1275, __ccgo_ts+1285) + if f != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = errno_save + } + return f + } + return uintptr(0) + } + v1 = Xfdopen(tls, fd, __ccgo_ts+1288) + f = v1 + if !(v1 != 0) { + Xclose(tls, fd) + return uintptr(0) + } + if (**(**[3]Tint32_t)(__ccgo_up(bp + 32)))[int32(2)] > int32(LOGIN_NAME_MAX) { + return f + } + if Xconnect(tls, fd, uintptr(unsafe.Pointer(&_addr)), uint32(24)) < 0 { + /* If there isn't a running nscd we simulate a "not found" + * result and the caller is responsible for calling + * fclose on the (unconnected) socket. The value of + * errno must be left unchanged in this case. */ + if **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EACCES) || **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(ECONNREFUSED) || **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(ENOENT) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = errno_save + return f + } + goto error + } + if Xsendmsg(tls, fd, bp+48, int32(MSG_NOSIGNAL)) < 0 { + goto error + } + if !(Xfread(tls, buf, len1, uint64(1), f) != 0) { + /* If the VERSION entry mismatches nscd will disconnect. The + * most likely cause is that the endianness mismatched. So, we + * byteswap and try once more. (if we already swapped, just + * fail out) + */ + if Xferror(tls, f) != 0 { + goto error + } + if !(**(**int32)(__ccgo_up(swap)) != 0) { + Xfclose(tls, f) + i = uint64(0) + for { + if !(i < Uint64FromInt64(12)/Uint64FromInt64(4)) { + break + } + v3 = Uint32FromInt32((**(**[3]Tint32_t)(__ccgo_up(bp + 32)))[i]) + v4 = v3>>int32(24) | v3>>int32(8)&uint32(0xff00) | v3<>int32(24) | v3>>int32(8)&uint32(0xff00) | v3< %v", r1) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var i Tsize_t + var r, v1 int32 + var v4 uintptr + _, _, _, _ = i, r, v1, v4 + Xflockfile(tls, f) + v1 = Xfprintf(tls, f, __ccgo_ts+1290, VaList(bp+8, (*Tgroup)(unsafe.Pointer(gr)).Fgr_name, (*Tgroup)(unsafe.Pointer(gr)).Fgr_passwd, (*Tgroup)(unsafe.Pointer(gr)).Fgr_gid)) + r = v1 + if v1 < 0 { + goto done + } + if (*Tgroup)(unsafe.Pointer(gr)).Fgr_mem != 0 { + i = uint64(0) + for { + if !(**(**uintptr)(__ccgo_up((*Tgroup)(unsafe.Pointer(gr)).Fgr_mem + uintptr(i)*8)) != 0) { + break + } + if i != 0 { + v4 = __ccgo_ts + 1300 + } else { + v4 = __ccgo_ts + } + v1 = Xfprintf(tls, f, __ccgo_ts+1302, VaList(bp+8, v4, **(**uintptr)(__ccgo_up((*Tgroup)(unsafe.Pointer(gr)).Fgr_mem + uintptr(i)*8)))) + r = v1 + if v1 < 0 { + goto done + } + goto _2 + _2: + ; + i = i + 1 + } + } + r = Xfputc(tls, int32('\n'), f) + goto done +done: + ; + Xfunlockfile(tls, f) + if r < 0 { + v1 = -int32(1) + } else { + v1 = 0 + } + return v1 +} + +func Xputpwent(tls *TLS, pw uintptr, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v pw=%v f=%v, (%v:)", tls, pw, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var v1 int32 + _ = v1 + if Xfprintf(tls, f, __ccgo_ts+1307, VaList(bp+8, (*Tpasswd)(unsafe.Pointer(pw)).Fpw_name, (*Tpasswd)(unsafe.Pointer(pw)).Fpw_passwd, (*Tpasswd)(unsafe.Pointer(pw)).Fpw_uid, (*Tpasswd)(unsafe.Pointer(pw)).Fpw_gid, (*Tpasswd)(unsafe.Pointer(pw)).Fpw_gecos, (*Tpasswd)(unsafe.Pointer(pw)).Fpw_dir, (*Tpasswd)(unsafe.Pointer(pw)).Fpw_shell)) < 0 { + v1 = -int32(1) + } else { + v1 = 0 + } + return v1 +} + +func Xputspent(tls *TLS, sp uintptr, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v sp=%v f=%v, (%v:)", tls, sp, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(144) + defer tls.Free(144) + var v1, v10, v12, v14, v16, v4, v6, v8 int32 + var v11, v13, v15, v5, v7, v9 int64 + var v17 uint64 + var v2, v3 uintptr + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = v1, v10, v11, v12, v13, v14, v15, v16, v17, v2, v3, v4, v5, v6, v7, v8, v9 + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_namp != 0 { + v2 = (*Tspwd)(unsafe.Pointer(sp)).Fsp_namp + } else { + v2 = __ccgo_ts + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_pwdp != 0 { + v3 = (*Tspwd)(unsafe.Pointer(sp)).Fsp_pwdp + } else { + v3 = __ccgo_ts + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_lstchg == int64(-int32(1)) { + v4 = 0 + } else { + v4 = -int32(1) + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_lstchg == int64(-int32(1)) { + v5 = 0 + } else { + v5 = (*Tspwd)(unsafe.Pointer(sp)).Fsp_lstchg + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_min == int64(-int32(1)) { + v6 = 0 + } else { + v6 = -int32(1) + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_min == int64(-int32(1)) { + v7 = 0 + } else { + v7 = (*Tspwd)(unsafe.Pointer(sp)).Fsp_min + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_max == int64(-int32(1)) { + v8 = 0 + } else { + v8 = -int32(1) + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_max == int64(-int32(1)) { + v9 = 0 + } else { + v9 = (*Tspwd)(unsafe.Pointer(sp)).Fsp_max + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_warn == int64(-int32(1)) { + v10 = 0 + } else { + v10 = -int32(1) + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_warn == int64(-int32(1)) { + v11 = 0 + } else { + v11 = (*Tspwd)(unsafe.Pointer(sp)).Fsp_warn + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_inact == int64(-int32(1)) { + v12 = 0 + } else { + v12 = -int32(1) + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_inact == int64(-int32(1)) { + v13 = 0 + } else { + v13 = (*Tspwd)(unsafe.Pointer(sp)).Fsp_inact + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_expire == int64(-int32(1)) { + v14 = 0 + } else { + v14 = -int32(1) + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_expire == int64(-int32(1)) { + v15 = 0 + } else { + v15 = (*Tspwd)(unsafe.Pointer(sp)).Fsp_expire + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_flag == Uint64FromInt32(-Int32FromInt32(1)) { + v16 = 0 + } else { + v16 = -int32(1) + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_flag == Uint64FromInt32(-Int32FromInt32(1)) { + v17 = uint64(0) + } else { + v17 = (*Tspwd)(unsafe.Pointer(sp)).Fsp_flag + } + if Xfprintf(tls, f, __ccgo_ts+1329, VaList(bp+8, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17)) < 0 { + v1 = -int32(1) + } else { + v1 = 0 + } + return v1 +} + +func X__rand48_step(tls *TLS, xi uintptr, lc uintptr) (r Tuint64_t) { + if __ccgo_strace { + trc("tls=%v xi=%v lc=%v, (%v:)", tls, xi, lc, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, x Tuint64_t + _, _ = a, x + x = uint64(uint32(**(**uint16)(__ccgo_up(xi)))|(uint32(**(**uint16)(__ccgo_up(xi + 1*2)))+0)<> int32(16)) + **(**uint16)(__ccgo_up(xi + 2*2)) = uint16(x >> int32(32)) + return x & uint64(0xffffffffffff) +} + +func Xerand48(tls *TLS, s uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* x at bp+0 */ struct { + Ff [0]float64 + Fu Tuint64_t + } + *(*struct { + Ff [0]float64 + Fu Tuint64_t + })(unsafe.Pointer(bp)) = struct { + Ff [0]float64 + Fu Tuint64_t + }{} + *(*uint64)(unsafe.Pointer(bp)) = uint64(0x3ff0000000000000) | X__rand48_step(tls, s, uintptr(unsafe.Pointer(&X__seed48))+uintptr(3)*2)< %v", r) }() + } + return Xerand48(tls, uintptr(unsafe.Pointer(&X__seed48))) +} + +func Xlcong48(tls *TLS, p uintptr) { + if __ccgo_strace { + trc("tls=%v p=%v, (%v:)", tls, p, origin(2)) + } + Xmemcpy(tls, uintptr(unsafe.Pointer(&X__seed48)), p, uint64(14)) +} + +func Xnrand48(tls *TLS, s uintptr) (r int64) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Int64FromUint64(X__rand48_step(tls, s, uintptr(unsafe.Pointer(&X__seed48))+uintptr(3)*2) >> int32(17)) +} + +func Xlrand48(tls *TLS) (r int64) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xnrand48(tls, uintptr(unsafe.Pointer(&X__seed48))) +} + +func Xjrand48(tls *TLS, s uintptr) (r int64) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int64(Int32FromUint64(X__rand48_step(tls, s, uintptr(unsafe.Pointer(&X__seed48))+uintptr(3)*2) >> Int32FromInt32(16))) +} + +func Xmrand48(tls *TLS) (r int64) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xjrand48(tls, uintptr(unsafe.Pointer(&X__seed48))) +} + +var _seed Tuint64_t + +func Xsrand(tls *TLS, s uint32) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + } + _seed = uint64(s - uint32(1)) +} + +func Xrand(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + _seed = uint64(6364136223846793005)*_seed + uint64(1) + return Int32FromUint64(_seed >> int32(33)) +} + +func _temper(tls *TLS, x uint32) (r uint32) { + x = x ^ x>>int32(11) + x = x ^ x<>int32(18) + return x +} + +func Xrand_r(tls *TLS, seed uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v seed=%v, (%v:)", tls, seed, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 uint32 + _ = v1 + v1 = **(**uint32)(__ccgo_up(seed))*Uint32FromInt32(1103515245) + Uint32FromInt32(12345) + **(**uint32)(__ccgo_up(seed)) = v1 + return Int32FromUint32(_temper(tls, v1) / uint32(2)) +} + +/* +this code uses the same lagged fibonacci generator as the +original bsd random implementation except for the seeding +which was broken in the original +*/ + +var _init = [32]Tuint32_t{ + 1: uint32(0x5851f42d), + 2: uint32(0xc0b18ccf), + 3: uint32(0xcbb5f646), + 4: uint32(0xc7033129), + 5: uint32(0x30705b04), + 6: uint32(0x20fd5db4), + 7: uint32(0x9a8b7f78), + 8: uint32(0x502959d8), + 9: uint32(0xab894868), + 10: uint32(0x6c0356a7), + 11: uint32(0x88cdb7ff), + 12: uint32(0xb477d43f), + 13: uint32(0x70a3a52b), + 14: uint32(0xa8e4baf1), + 15: uint32(0xfd8341fc), + 16: uint32(0x8ae16fd9), + 17: uint32(0x742d2f7a), + 18: uint32(0x0d1f0796), + 19: uint32(0x76035e09), + 20: uint32(0x40f7702c), + 21: uint32(0x6fa72ca5), + 22: uint32(0xaaa84157), + 23: uint32(0x58a0df74), + 24: uint32(0xc74a0364), + 25: uint32(0xae533cc4), + 26: uint32(0x04185faf), + 27: uint32(0x6de3b115), + 28: uint32(0x0cab8628), + 29: uint32(0xf043bfa4), + 30: uint32(0x398150e9), + 31: uint32(0x37521657), +} + +var _n = int32(31) +var _i = int32(3) +var _j = int32(0) +var _x1 = uintptr(unsafe.Pointer(&_init)) + uintptr(1)*4 +var _lock3 [1]int32 + +func _lcg31(tls *TLS, x Tuint32_t) (r Tuint32_t) { + return (uint32(1103515245)*x + uint32(12345)) & uint32(0x7fffffff) +} + +func _lcg64(tls *TLS, x Tuint64_t) (r Tuint64_t) { + return uint64(6364136223846793005)*x + uint64(1) +} + +func _savestate(tls *TLS) (r uintptr) { + **(**Tuint32_t)(__ccgo_up(_x1 + uintptr(-Int32FromInt32(1))*4)) = Uint32FromInt32(_n<> int32(16)) + _i = Int32FromUint32(**(**Tuint32_t)(__ccgo_up(_x1 + uintptr(-Int32FromInt32(1))*4)) >> Int32FromInt32(8) & uint32(0xff)) + _j = Int32FromUint32(**(**Tuint32_t)(__ccgo_up(_x1 + uintptr(-Int32FromInt32(1))*4)) & uint32(0xff)) +} + +func ___srandom(tls *TLS, seed uint32) { + var k, v1 int32 + var s Tuint64_t + _, _, _ = k, s, v1 + s = uint64(seed) + if _n == 0 { + **(**Tuint32_t)(__ccgo_up(_x1)) = uint32(s) + return + } + if _n == int32(31) || _n == int32(7) { + v1 = int32(3) + } else { + v1 = int32(1) + } + _i = v1 + _j = 0 + k = 0 + for { + if !(k < _n) { + break + } + s = _lcg64(tls, s) + **(**Tuint32_t)(__ccgo_up(_x1 + uintptr(k)*4)) = uint32(s >> int32(32)) + goto _2 + _2: + ; + k = k + 1 + } + /* make sure x contains at least one odd number */ + **(**Tuint32_t)(__ccgo_up(_x1)) |= uint32(1) +} + +func Xsrandom(tls *TLS, seed uint32) { + if __ccgo_strace { + trc("tls=%v seed=%v, (%v:)", tls, seed, origin(2)) + } + ___lock(tls, uintptr(unsafe.Pointer(&_lock3))) + ___srandom(tls, seed) + ___unlock(tls, uintptr(unsafe.Pointer(&_lock3))) +} + +func Xinitstate(tls *TLS, seed uint32, state uintptr, size Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v seed=%v state=%v size=%v, (%v:)", tls, seed, state, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + var old uintptr + _ = old + if size < uint64(8) { + return uintptr(0) + } + ___lock(tls, uintptr(unsafe.Pointer(&_lock3))) + old = _savestate(tls) + if size < uint64(32) { + _n = 0 + } else { + if size < uint64(64) { + _n = int32(7) + } else { + if size < uint64(128) { + _n = int32(15) + } else { + if size < uint64(256) { + _n = int32(31) + } else { + _n = int32(63) + } + } + } + } + _x1 = state + uintptr(1)*4 + ___srandom(tls, seed) + _savestate(tls) + ___unlock(tls, uintptr(unsafe.Pointer(&_lock3))) + return old +} + +func Xsetstate(tls *TLS, state uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v state=%v, (%v:)", tls, state, origin(2)) + defer func() { trc("-> %v", r) }() + } + var old uintptr + _ = old + ___lock(tls, uintptr(unsafe.Pointer(&_lock3))) + old = _savestate(tls) + _loadstate(tls, state) + ___unlock(tls, uintptr(unsafe.Pointer(&_lock3))) + return old +} + +func Xrandom(tls *TLS) (r int64) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + var k int64 + var v1 Tuint32_t + var v2 int32 + _, _, _ = k, v1, v2 + ___lock(tls, uintptr(unsafe.Pointer(&_lock3))) + if _n == 0 { + v1 = _lcg31(tls, **(**Tuint32_t)(__ccgo_up(_x1))) + **(**Tuint32_t)(__ccgo_up(_x1)) = v1 + k = Int64FromUint32(v1) + goto end + } + **(**Tuint32_t)(__ccgo_up(_x1 + uintptr(_i)*4)) += **(**Tuint32_t)(__ccgo_up(_x1 + uintptr(_j)*4)) + k = Int64FromUint32(**(**Tuint32_t)(__ccgo_up(_x1 + uintptr(_i)*4)) >> int32(1)) + _i = _i + 1 + v2 = _i + if v2 == _n { + _i = 0 + } + _j = _j + 1 + v2 = _j + if v2 == _n { + _j = 0 + } + goto end +end: + ; + ___unlock(tls, uintptr(unsafe.Pointer(&_lock3))) + return k +} + +func Xseed48(tls *TLS, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + Xmemcpy(tls, uintptr(unsafe.Pointer(&_p1)), uintptr(unsafe.Pointer(&X__seed48)), uint64(6)) + Xmemcpy(tls, uintptr(unsafe.Pointer(&X__seed48)), s, uint64(6)) + return uintptr(unsafe.Pointer(&_p1)) +} + +var _p1 [3]uint16 + +func Xsrand48(tls *TLS, seed int64) { + if __ccgo_strace { + trc("tls=%v seed=%v, (%v:)", tls, seed, origin(2)) + } + bp := tls.Alloc(16) + defer tls.Free(16) + *(*[3]uint16)(unsafe.Pointer(bp)) = [3]uint16{ + 0: uint16(0x330e), + 1: Uint16FromInt64(seed), + 2: Uint16FromInt64(seed >> int32(16)), + } + Xseed48(tls, bp) +} + +func Xexecl(tls *TLS, path uintptr, argv0 uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v argv0=%v va=%v, (%v:)", tls, path, argv0, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var argc, i int32 + var argv uintptr + var v2 t__predefined_size_t + _, _, _, _, _ = ap, argc, argv, i, v2 + defer func() { Xrealloc(tls, argv, 0) }() + ap = va + argc = int32(1) + for { + if !(VaUintptr(&ap) != 0) { + break + } + goto _1 + _1: + ; + argc = argc + 1 + } + _ = ap + v2 = Uint64FromInt32(argc+int32(1)) * 8 + argv = Xrealloc(tls, argv, v2) + ap = va + *(*uintptr)(unsafe.Add(unsafe.Pointer(argv), 0*8)) = argv0 + i = int32(1) + for { + if !(i < argc) { + break + } + *(*uintptr)(unsafe.Add(unsafe.Pointer(argv), i*8)) = VaUintptr(&ap) + goto _3 + _3: + ; + i = i + 1 + } + *(*uintptr)(unsafe.Add(unsafe.Pointer(argv), i*8)) = UintptrFromInt32(0) + _ = ap + return Xexecv(tls, path, argv) + return r +} + +func Xexecle(tls *TLS, path uintptr, argv0 uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v argv0=%v va=%v, (%v:)", tls, path, argv0, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var argc, i int32 + var argv, envp uintptr + var v2 t__predefined_size_t + _, _, _, _, _, _ = ap, argc, argv, envp, i, v2 + defer func() { Xrealloc(tls, argv, 0) }() + ap = va + argc = int32(1) + for { + if !(VaUintptr(&ap) != 0) { + break + } + goto _1 + _1: + ; + argc = argc + 1 + } + _ = ap + v2 = Uint64FromInt32(argc+int32(1)) * 8 + argv = Xrealloc(tls, argv, v2) + ap = va + *(*uintptr)(unsafe.Add(unsafe.Pointer(argv), 0*8)) = argv0 + i = int32(1) + for { + if !(i <= argc) { + break + } + *(*uintptr)(unsafe.Add(unsafe.Pointer(argv), i*8)) = VaUintptr(&ap) + goto _3 + _3: + ; + i = i + 1 + } + envp = VaUintptr(&ap) + _ = ap + return Xexecve(tls, path, argv, envp) + return r +} + +func Xexeclp(tls *TLS, file uintptr, argv0 uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v file=%v argv0=%v va=%v, (%v:)", tls, file, argv0, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var argc, i int32 + var argv uintptr + var v2 t__predefined_size_t + _, _, _, _, _ = ap, argc, argv, i, v2 + defer func() { Xrealloc(tls, argv, 0) }() + ap = va + argc = int32(1) + for { + if !(VaUintptr(&ap) != 0) { + break + } + goto _1 + _1: + ; + argc = argc + 1 + } + _ = ap + v2 = Uint64FromInt32(argc+int32(1)) * 8 + argv = Xrealloc(tls, argv, v2) + ap = va + *(*uintptr)(unsafe.Add(unsafe.Pointer(argv), 0*8)) = argv0 + i = int32(1) + for { + if !(i < argc) { + break + } + *(*uintptr)(unsafe.Add(unsafe.Pointer(argv), i*8)) = VaUintptr(&ap) + goto _3 + _3: + ; + i = i + 1 + } + *(*uintptr)(unsafe.Add(unsafe.Pointer(argv), i*8)) = UintptrFromInt32(0) + _ = ap + return Xexecvp(tls, file, argv) + return r +} + +func Xexecv(tls *TLS, path uintptr, argv uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v argv=%v, (%v:)", tls, path, argv, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xexecve(tls, path, argv, Xenviron) +} + +func Xexecve(tls *TLS, path uintptr, argv uintptr, envp uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v argv=%v envp=%v, (%v:)", tls, path, argv, envp, origin(2)) + defer func() { trc("-> %v", r) }() + } + /* do we need to use environ if envp is null? */ + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_execve), int64(path), int64(argv), int64(envp))))) +} + +func X__execvpe(tls *TLS, file uintptr, argv uintptr, envp uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v file=%v argv=%v envp=%v, (%v:)", tls, file, argv, envp, origin(2)) + defer func() { trc("-> %v", r) }() + } + var b, p, path, z, v3 uintptr + var k, l Tsize_t + var seen_eacces int32 + var v2 t__predefined_size_t + _, _, _, _, _, _, _, _, _ = b, k, l, p, path, seen_eacces, z, v2, v3 + defer func() { Xrealloc(tls, b, 0) }() + path = Xgetenv(tls, __ccgo_ts+1378) + seen_eacces = 0 + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOENT) + if !(**(**int8)(__ccgo_up(file)) != 0) { + return -int32(1) + } + if Xstrchr(tls, file, int32('/')) != 0 { + return Xexecve(tls, file, argv, envp) + } + if !(path != 0) { + path = __ccgo_ts + 1383 + } + k = Xstrnlen(tls, file, Uint64FromInt32(Int32FromInt32(NAME_MAX)+Int32FromInt32(1))) + if k > uint64(NAME_MAX) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENAMETOOLONG) + return -int32(1) + } + l = Xstrnlen(tls, path, Uint64FromInt32(Int32FromInt32(PATH_MAX)-Int32FromInt32(1))) + uint64(1) + p = path + for { + v2 = l + k + uint64(1) + b = Xrealloc(tls, b, v2) + z = X__strchrnul(tls, p, int32(':')) + if Uint64FromInt64(int64(z)-int64(p)) >= l { + v3 = z + z = z + 1 + if !(**(**int8)(__ccgo_up(v3)) != 0) { + break + } + goto _1 + } + Xmemcpy(tls, b, p, Uint64FromInt64(int64(z)-int64(p))) + *(*int8)(unsafe.Add(unsafe.Pointer(b), int64(z)-int64(p))) = int8('/') + Xmemcpy(tls, b+uintptr(int64(z)-int64(p))+BoolUintptr(z > p), file, k+uint64(1)) + Xexecve(tls, b, argv, envp) + switch **(**int32)(__ccgo_up(X__errno_location(tls))) { + case int32(EACCES): + seen_eacces = int32(1) + fallthrough + case int32(ENOENT): + fallthrough + case int32(ENOTDIR): + default: + return -int32(1) + } + v3 = z + z = z + 1 + if !(**(**int8)(__ccgo_up(v3)) != 0) { + break + } + goto _1 + _1: + ; + p = z + } + if seen_eacces != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EACCES) + } + return -int32(1) +} + +func Xexecvp(tls *TLS, file uintptr, argv uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v file=%v argv=%v, (%v:)", tls, file, argv, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__execvpe(tls, file, argv, Xenviron) +} + +func Xexecvpe(tls *TLS, file uintptr, argv uintptr, envp uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v file=%v argv=%v envp=%v, (%v:)", tls, file, argv, envp, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__execvpe(tls, file, argv, envp) +} + +func Xfexecve(tls *TLS, fd int32, argv uintptr, envp uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v argv=%v envp=%v, (%v:)", tls, fd, argv, envp, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var r int32 + var _ /* buf at bp+0 */ [27]int8 + _ = r + r = int32(X__syscall5(tls, int64(SYS_execveat), int64(fd), int64(__ccgo_ts), int64(argv), int64(envp), int64(Int32FromInt32(AT_EMPTY_PATH)))) + if r != -int32(ENOSYS) { + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) + } + X__procfdname(tls, bp, Uint32FromInt32(fd)) + Xexecve(tls, bp, argv, envp) + if **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(ENOENT) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EBADF) + } + return -int32(1) +} + +var _dummy_lockptr = uintptr(0) + +var _atfork_locks = [10]uintptr{ + 0: uintptr(unsafe.Pointer(&X__at_quick_exit_lockptr)), + 1: uintptr(unsafe.Pointer(&_dummy_lockptr)), + 2: uintptr(unsafe.Pointer(&X__gettext_lockptr)), + 3: uintptr(unsafe.Pointer(&X__locale_lockptr)), + 4: uintptr(unsafe.Pointer(&X__random_lockptr)), + 5: uintptr(unsafe.Pointer(&_dummy_lockptr)), + 6: uintptr(unsafe.Pointer(&X__stdio_ofl_lockptr)), + 7: uintptr(unsafe.Pointer(&X__syslog_lockptr)), + 8: uintptr(unsafe.Pointer(&X__timezone_lockptr)), + 9: uintptr(unsafe.Pointer(&_dummy_lockptr)), +} + +func _dummy8(tls *TLS, x int32) { +} + +func _dummy_0(tls *TLS) { +} + +const FDOP_CHDIR = 4 +const FDOP_CLOSE = 1 +const FDOP_DUP2 = 2 +const FDOP_FCHDIR = 5 +const FDOP_OPEN = 3 +const POSIX_SPAWN_RESETIDS = 1 +const POSIX_SPAWN_SETPGROUP = 2 +const POSIX_SPAWN_SETSCHEDPARAM = 16 +const POSIX_SPAWN_SETSCHEDULER = 32 +const POSIX_SPAWN_SETSID = 128 +const POSIX_SPAWN_SETSIGDEF = 4 +const POSIX_SPAWN_SETSIGMASK = 8 +const POSIX_SPAWN_USEVFORK = 64 + +type Tposix_spawnattr_t = struct { + F__flags int32 + F__pgrp Tpid_t + F__def Tsigset_t + F__mask Tsigset_t + F__prio int32 + F__pol int32 + F__fn uintptr + F__pad [56]int8 +} + +type Tposix_spawn_file_actions_t = struct { + F__pad0 [2]int32 + F__actions uintptr + F__pad [16]int32 +} + +type Tfdop = struct { + Fnext uintptr + Fprev uintptr + Fcmd int32 + Ffd int32 + Fsrcfd int32 + Foflag int32 + Fmode Tmode_t +} + +func Xposix_spawn_file_actions_addchdir_np(tls *TLS, fa uintptr, path uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fa=%v path=%v, (%v:)", tls, fa, path, origin(2)) + defer func() { trc("-> %v", r) }() + } + var op, v1 uintptr + _, _ = op, v1 + op = Xmalloc(tls, uint64(40)+_strlen(tls, path)+uint64(1)) + if !(op != 0) { + return int32(ENOMEM) + } + (*Tfdop)(unsafe.Pointer(op)).Fcmd = int32(FDOP_CHDIR) + (*Tfdop)(unsafe.Pointer(op)).Ffd = -int32(1) + Xstrcpy(tls, op+36, path) + v1 = (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions + (*Tfdop)(unsafe.Pointer(op)).Fnext = v1 + if v1 != 0 { + (*Tfdop)(unsafe.Pointer((*Tfdop)(unsafe.Pointer(op)).Fnext)).Fprev = op + } + (*Tfdop)(unsafe.Pointer(op)).Fprev = uintptr(0) + (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions = op + return 0 +} + +func Xposix_spawn_file_actions_addclose(tls *TLS, fa uintptr, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fa=%v fd=%v, (%v:)", tls, fa, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + var op, v1 uintptr + _, _ = op, v1 + if fd < 0 { + return int32(EBADF) + } + op = Xmalloc(tls, uint64(40)) + if !(op != 0) { + return int32(ENOMEM) + } + (*Tfdop)(unsafe.Pointer(op)).Fcmd = int32(FDOP_CLOSE) + (*Tfdop)(unsafe.Pointer(op)).Ffd = fd + v1 = (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions + (*Tfdop)(unsafe.Pointer(op)).Fnext = v1 + if v1 != 0 { + (*Tfdop)(unsafe.Pointer((*Tfdop)(unsafe.Pointer(op)).Fnext)).Fprev = op + } + (*Tfdop)(unsafe.Pointer(op)).Fprev = uintptr(0) + (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions = op + return 0 +} + +func Xposix_spawn_file_actions_adddup2(tls *TLS, fa uintptr, srcfd int32, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fa=%v srcfd=%v fd=%v, (%v:)", tls, fa, srcfd, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + var op, v1 uintptr + _, _ = op, v1 + if srcfd < 0 || fd < 0 { + return int32(EBADF) + } + op = Xmalloc(tls, uint64(40)) + if !(op != 0) { + return int32(ENOMEM) + } + (*Tfdop)(unsafe.Pointer(op)).Fcmd = int32(FDOP_DUP2) + (*Tfdop)(unsafe.Pointer(op)).Fsrcfd = srcfd + (*Tfdop)(unsafe.Pointer(op)).Ffd = fd + v1 = (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions + (*Tfdop)(unsafe.Pointer(op)).Fnext = v1 + if v1 != 0 { + (*Tfdop)(unsafe.Pointer((*Tfdop)(unsafe.Pointer(op)).Fnext)).Fprev = op + } + (*Tfdop)(unsafe.Pointer(op)).Fprev = uintptr(0) + (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions = op + return 0 +} + +func Xposix_spawn_file_actions_addfchdir_np(tls *TLS, fa uintptr, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fa=%v fd=%v, (%v:)", tls, fa, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + var op, v1 uintptr + _, _ = op, v1 + if fd < 0 { + return int32(EBADF) + } + op = Xmalloc(tls, uint64(40)) + if !(op != 0) { + return int32(ENOMEM) + } + (*Tfdop)(unsafe.Pointer(op)).Fcmd = int32(FDOP_FCHDIR) + (*Tfdop)(unsafe.Pointer(op)).Ffd = fd + v1 = (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions + (*Tfdop)(unsafe.Pointer(op)).Fnext = v1 + if v1 != 0 { + (*Tfdop)(unsafe.Pointer((*Tfdop)(unsafe.Pointer(op)).Fnext)).Fprev = op + } + (*Tfdop)(unsafe.Pointer(op)).Fprev = uintptr(0) + (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions = op + return 0 +} + +func Xposix_spawn_file_actions_addopen(tls *TLS, fa uintptr, fd int32, path uintptr, flags int32, mode Tmode_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fa=%v fd=%v path=%v flags=%v mode=%v, (%v:)", tls, fa, fd, path, flags, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + var op, v1 uintptr + _, _ = op, v1 + if fd < 0 { + return int32(EBADF) + } + op = Xmalloc(tls, uint64(40)+_strlen(tls, path)+uint64(1)) + if !(op != 0) { + return int32(ENOMEM) + } + (*Tfdop)(unsafe.Pointer(op)).Fcmd = int32(FDOP_OPEN) + (*Tfdop)(unsafe.Pointer(op)).Ffd = fd + (*Tfdop)(unsafe.Pointer(op)).Foflag = flags + (*Tfdop)(unsafe.Pointer(op)).Fmode = mode + Xstrcpy(tls, op+36, path) + v1 = (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions + (*Tfdop)(unsafe.Pointer(op)).Fnext = v1 + if v1 != 0 { + (*Tfdop)(unsafe.Pointer((*Tfdop)(unsafe.Pointer(op)).Fnext)).Fprev = op + } + (*Tfdop)(unsafe.Pointer(op)).Fprev = uintptr(0) + (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions = op + return 0 +} + +func Xposix_spawn_file_actions_destroy(tls *TLS, fa uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fa=%v, (%v:)", tls, fa, origin(2)) + defer func() { trc("-> %v", r) }() + } + var next, op uintptr + _, _ = next, op + op = (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions + for op != 0 { + next = (*Tfdop)(unsafe.Pointer(op)).Fnext + Xfree(tls, op) + op = next + } + return 0 +} + +func Xposix_spawn_file_actions_init(tls *TLS, fa uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fa=%v, (%v:)", tls, fa, origin(2)) + defer func() { trc("-> %v", r) }() + } + (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions = uintptr(0) + return 0 +} + +func Xposix_spawnattr_destroy(tls *TLS, attr uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v, (%v:)", tls, attr, origin(2)) + defer func() { trc("-> %v", r) }() + } + return 0 +} + +func Xposix_spawnattr_getflags(tls *TLS, attr uintptr, flags uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v flags=%v, (%v:)", tls, attr, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + **(**int16)(__ccgo_up(flags)) = int16((*Tposix_spawnattr_t)(unsafe.Pointer(attr)).F__flags) + return 0 +} + +func Xposix_spawnattr_getpgroup(tls *TLS, attr uintptr, pgrp uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v pgrp=%v, (%v:)", tls, attr, pgrp, origin(2)) + defer func() { trc("-> %v", r) }() + } + **(**Tpid_t)(__ccgo_up(pgrp)) = (*Tposix_spawnattr_t)(unsafe.Pointer(attr)).F__pgrp + return 0 +} + +func Xposix_spawnattr_getsigdefault(tls *TLS, attr uintptr, def uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v def=%v, (%v:)", tls, attr, def, origin(2)) + defer func() { trc("-> %v", r) }() + } + **(**Tsigset_t)(__ccgo_up(def)) = (*Tposix_spawnattr_t)(unsafe.Pointer(attr)).F__def + return 0 +} + +func Xposix_spawnattr_getsigmask(tls *TLS, attr uintptr, mask uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v mask=%v, (%v:)", tls, attr, mask, origin(2)) + defer func() { trc("-> %v", r) }() + } + **(**Tsigset_t)(__ccgo_up(mask)) = (*Tposix_spawnattr_t)(unsafe.Pointer(attr)).F__mask + return 0 +} + +func Xposix_spawnattr_init(tls *TLS, attr uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v, (%v:)", tls, attr, origin(2)) + defer func() { trc("-> %v", r) }() + } + **(**Tposix_spawnattr_t)(__ccgo_up(attr)) = Tposix_spawnattr_t{} + return 0 +} + +func Xposix_spawnattr_getschedparam(tls *TLS, attr uintptr, schedparam uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v schedparam=%v, (%v:)", tls, attr, schedparam, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(ENOSYS) +} + +func Xposix_spawnattr_setschedparam(tls *TLS, attr uintptr, schedparam uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v schedparam=%v, (%v:)", tls, attr, schedparam, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(ENOSYS) +} + +func Xposix_spawnattr_getschedpolicy(tls *TLS, attr uintptr, policy uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v policy=%v, (%v:)", tls, attr, policy, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(ENOSYS) +} + +func Xposix_spawnattr_setschedpolicy(tls *TLS, attr uintptr, policy int32) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v policy=%v, (%v:)", tls, attr, policy, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(ENOSYS) +} + +func Xposix_spawnattr_setflags(tls *TLS, attr uintptr, flags int16) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v flags=%v, (%v:)", tls, attr, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + var all_flags uint32 + _ = all_flags + all_flags = Uint32FromInt32(Int32FromInt32(POSIX_SPAWN_RESETIDS) | Int32FromInt32(POSIX_SPAWN_SETPGROUP) | Int32FromInt32(POSIX_SPAWN_SETSIGDEF) | Int32FromInt32(POSIX_SPAWN_SETSIGMASK) | Int32FromInt32(POSIX_SPAWN_SETSCHEDPARAM) | Int32FromInt32(POSIX_SPAWN_SETSCHEDULER) | Int32FromInt32(POSIX_SPAWN_USEVFORK) | Int32FromInt32(POSIX_SPAWN_SETSID)) + if Uint32FromInt16(flags) & ^all_flags != 0 { + return int32(EINVAL) + } + (*Tposix_spawnattr_t)(unsafe.Pointer(attr)).F__flags = int32(flags) + return 0 +} + +func Xposix_spawnattr_setpgroup(tls *TLS, attr uintptr, pgrp Tpid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v pgrp=%v, (%v:)", tls, attr, pgrp, origin(2)) + defer func() { trc("-> %v", r) }() + } + (*Tposix_spawnattr_t)(unsafe.Pointer(attr)).F__pgrp = pgrp + return 0 +} + +func Xposix_spawnattr_setsigdefault(tls *TLS, attr uintptr, def uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v def=%v, (%v:)", tls, attr, def, origin(2)) + defer func() { trc("-> %v", r) }() + } + (*Tposix_spawnattr_t)(unsafe.Pointer(attr)).F__def = **(**Tsigset_t)(__ccgo_up(def)) + return 0 +} + +func Xposix_spawnattr_setsigmask(tls *TLS, attr uintptr, mask uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v mask=%v, (%v:)", tls, attr, mask, origin(2)) + defer func() { trc("-> %v", r) }() + } + (*Tposix_spawnattr_t)(unsafe.Pointer(attr)).F__mask = **(**Tsigset_t)(__ccgo_up(mask)) + return 0 +} + +func Xvfork(tls *TLS) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + /* vfork syscall cannot be made from C code */ + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall0(tls, int64(SYS_fork))))) +} + +func Xwait(tls *TLS, status uintptr) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v status=%v, (%v:)", tls, status, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwaitpid(tls, -Int32FromInt32(1), status, 0) +} + +func Xwaitid(tls *TLS, type1 Tidtype_t, id Tid_t, info uintptr, options int32) (r int32) { + if __ccgo_strace { + trc("tls=%v type1=%v id=%v info=%v options=%v, (%v:)", tls, type1, id, info, options, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_waitid), int64(type1), Int64FromUint32(id), int64(info), int64(options), int64(Int32FromInt32(0)), 0)))) +} + +func Xwaitpid(tls *TLS, pid Tpid_t, status uintptr, options int32) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v pid=%v status=%v options=%v, (%v:)", tls, pid, status, options, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_wait4), int64(pid), int64(status), int64(options), int64(Int32FromInt32(0)), 0, 0)))) +} + +const BRACKET = -3 +const END = 0 +const FNM_CASEFOLD = 16 +const FNM_FILE_NAME = 1 +const FNM_LEADING_DIR = 8 +const FNM_NOESCAPE = 2 +const FNM_NOMATCH = 1 +const FNM_NOSYS = -1 +const FNM_PATHNAME = 1 +const FNM_PERIOD = 4 +const QUESTION = -4 +const STAR = -5 +const UNMATCHABLE = -2 + +func _str_next(tls *TLS, str uintptr, n Tsize_t, step uintptr) (r int32) { + bp := tls.Alloc(16) + defer tls.Free(16) + var k int32 + var _ /* wc at bp+0 */ Twchar_t + _ = k + if !(n != 0) { + **(**Tsize_t)(__ccgo_up(step)) = uint64(0) + return 0 + } + if Uint32FromInt8(**(**int8)(__ccgo_up(str))) >= uint32(128) { + k = Xmbtowc(tls, bp, str, n) + if k < 0 { + **(**Tsize_t)(__ccgo_up(step)) = uint64(1) + return -int32(1) + } + **(**Tsize_t)(__ccgo_up(step)) = Uint64FromInt32(k) + return **(**Twchar_t)(__ccgo_up(bp)) + } + **(**Tsize_t)(__ccgo_up(step)) = uint64(1) + return int32(**(**int8)(__ccgo_up(str))) +} + +func _pat_next(tls *TLS, pat uintptr, m Tsize_t, step uintptr, flags int32) (r int32) { + bp := tls.Alloc(16) + defer tls.Free(16) + var esc, k1, z int32 + var k Tsize_t + var _ /* wc at bp+0 */ Twchar_t + _, _, _, _ = esc, k, k1, z + esc = 0 + if !(m != 0) || !(**(**int8)(__ccgo_up(pat)) != 0) { + **(**Tsize_t)(__ccgo_up(step)) = uint64(0) + return END + } + **(**Tsize_t)(__ccgo_up(step)) = uint64(1) + if int32(**(**int8)(__ccgo_up(pat))) == int32('\\') && **(**int8)(__ccgo_up(pat + 1)) != 0 && !(flags&Int32FromInt32(FNM_NOESCAPE) != 0) { + **(**Tsize_t)(__ccgo_up(step)) = uint64(2) + pat = pat + 1 + esc = int32(1) + goto escaped + } + if int32(**(**int8)(__ccgo_up(pat))) == int32('[') { + k = uint64(1) + if k < m { + if int32(**(**int8)(__ccgo_up(pat + uintptr(k)))) == int32('^') || int32(**(**int8)(__ccgo_up(pat + uintptr(k)))) == int32('!') { + k = k + 1 + } + } + if k < m { + if int32(**(**int8)(__ccgo_up(pat + uintptr(k)))) == int32(']') { + k = k + 1 + } + } + for { + if !(k < m && **(**int8)(__ccgo_up(pat + uintptr(k))) != 0 && int32(**(**int8)(__ccgo_up(pat + uintptr(k)))) != int32(']')) { + break + } + if k+uint64(1) < m && **(**int8)(__ccgo_up(pat + uintptr(k+uint64(1)))) != 0 && int32(**(**int8)(__ccgo_up(pat + uintptr(k)))) == int32('[') && (int32(**(**int8)(__ccgo_up(pat + uintptr(k+uint64(1))))) == int32(':') || int32(**(**int8)(__ccgo_up(pat + uintptr(k+uint64(1))))) == int32('.') || int32(**(**int8)(__ccgo_up(pat + uintptr(k+uint64(1))))) == int32('=')) { + z = int32(**(**int8)(__ccgo_up(pat + uintptr(k+uint64(1))))) + k = k + uint64(2) + if k < m && **(**int8)(__ccgo_up(pat + uintptr(k))) != 0 { + k = k + 1 + } + for k < m && **(**int8)(__ccgo_up(pat + uintptr(k))) != 0 && (int32(**(**int8)(__ccgo_up(pat + uintptr(k-uint64(1))))) != z || int32(**(**int8)(__ccgo_up(pat + uintptr(k)))) != int32(']')) { + k = k + 1 + } + if k == m || !(**(**int8)(__ccgo_up(pat + uintptr(k))) != 0) { + break + } + } + goto _1 + _1: + ; + k = k + 1 + } + if k == m || !(**(**int8)(__ccgo_up(pat + uintptr(k))) != 0) { + **(**Tsize_t)(__ccgo_up(step)) = uint64(1) + return int32('[') + } + **(**Tsize_t)(__ccgo_up(step)) = k + uint64(1) + return -int32(3) + } + if int32(**(**int8)(__ccgo_up(pat))) == int32('*') { + return -int32(5) + } + if int32(**(**int8)(__ccgo_up(pat))) == int32('?') { + return -int32(4) + } + goto escaped +escaped: + ; + if Uint32FromInt8(**(**int8)(__ccgo_up(pat))) >= uint32(128) { + k1 = Xmbtowc(tls, bp, pat, m) + if k1 < 0 { + **(**Tsize_t)(__ccgo_up(step)) = uint64(0) + return -int32(2) + } + **(**Tsize_t)(__ccgo_up(step)) = Uint64FromInt32(k1 + esc) + return **(**Twchar_t)(__ccgo_up(bp)) + } + return int32(**(**int8)(__ccgo_up(pat))) +} + +func _casefold(tls *TLS, k int32) (r int32) { + var c int32 + var v1 uint32 + _, _ = c, v1 + c = Int32FromUint32(Xtowupper(tls, Uint32FromInt32(k))) + if c == k { + v1 = Xtowlower(tls, Uint32FromInt32(k)) + } else { + v1 = Uint32FromInt32(c) + } + return Int32FromUint32(v1) +} + +func _match_bracket(tls *TLS, p uintptr, k int32, kfold int32) (r int32) { + bp := tls.Alloc(32) + defer tls.Free(32) + var inv, l, l1, z int32 + var p0 uintptr + var _ /* buf at bp+8 */ [16]int8 + var _ /* wc at bp+0 */ Twchar_t + var _ /* wc2 at bp+4 */ Twchar_t + _, _, _, _, _ = inv, l, l1, p0, z + inv = 0 + p = p + 1 + if int32(**(**int8)(__ccgo_up(p))) == int32('^') || int32(**(**int8)(__ccgo_up(p))) == int32('!') { + inv = int32(1) + p = p + 1 + } + if int32(**(**int8)(__ccgo_up(p))) == int32(']') { + if k == int32(']') { + return BoolInt32(!(inv != 0)) + } + p = p + 1 + } else { + if int32(**(**int8)(__ccgo_up(p))) == int32('-') { + if k == int32('-') { + return BoolInt32(!(inv != 0)) + } + p = p + 1 + } + } + **(**Twchar_t)(__ccgo_up(bp)) = int32(**(**int8)(__ccgo_up(p + uintptr(-Int32FromInt32(1))))) + for { + if !(int32(**(**int8)(__ccgo_up(p))) != int32(']')) { + break + } + if int32(**(**int8)(__ccgo_up(p))) == int32('-') && int32(**(**int8)(__ccgo_up(p + 1))) != int32(']') { + l = Xmbtowc(tls, bp+4, p+uintptr(1), uint64(4)) + if l < 0 { + return 0 + } + if **(**Twchar_t)(__ccgo_up(bp)) <= **(**Twchar_t)(__ccgo_up(bp + 4)) { + if Uint32FromInt32(k)-Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp))) <= Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp + 4))-**(**Twchar_t)(__ccgo_up(bp))) || Uint32FromInt32(kfold)-Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp))) <= Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp + 4))-**(**Twchar_t)(__ccgo_up(bp))) { + return BoolInt32(!(inv != 0)) + } + } + p = p + uintptr(l-int32(1)) + goto _1 + } + if int32(**(**int8)(__ccgo_up(p))) == int32('[') && (int32(**(**int8)(__ccgo_up(p + 1))) == int32(':') || int32(**(**int8)(__ccgo_up(p + 1))) == int32('.') || int32(**(**int8)(__ccgo_up(p + 1))) == int32('=')) { + p0 = p + uintptr(2) + z = int32(**(**int8)(__ccgo_up(p + 1))) + p = p + uintptr(3) + for int32(**(**int8)(__ccgo_up(p + uintptr(-Int32FromInt32(1))))) != z || int32(**(**int8)(__ccgo_up(p))) != int32(']') { + p = p + 1 + } + if z == int32(':') && int64(p-uintptr(1))-int64(p0) < int64(16) { + Xmemcpy(tls, bp+8, p0, Uint64FromInt64(int64(p-uintptr(1))-int64(p0))) + (**(**[16]int8)(__ccgo_up(bp + 8)))[int64(p-uintptr(1))-int64(p0)] = 0 + if Xiswctype(tls, Uint32FromInt32(k), Xwctype(tls, bp+8)) != 0 || Xiswctype(tls, Uint32FromInt32(kfold), Xwctype(tls, bp+8)) != 0 { + return BoolInt32(!(inv != 0)) + } + } + goto _1 + } + if Uint32FromInt8(**(**int8)(__ccgo_up(p))) < uint32(128) { + **(**Twchar_t)(__ccgo_up(bp)) = Int32FromUint8(Uint8FromInt8(**(**int8)(__ccgo_up(p)))) + } else { + l1 = Xmbtowc(tls, bp, p, uint64(4)) + if l1 < 0 { + return 0 + } + p = p + uintptr(l1-int32(1)) + } + if **(**Twchar_t)(__ccgo_up(bp)) == k || **(**Twchar_t)(__ccgo_up(bp)) == kfold { + return BoolInt32(!(inv != 0)) + } + goto _1 + _1: + ; + p = p + 1 + } + return inv +} + +func _fnmatch_internal(tls *TLS, pat uintptr, m Tsize_t, str uintptr, n Tsize_t, flags int32) (r int32) { + bp := tls.Alloc(16) + defer tls.Free(16) + var c, k, kfold, v2 int32 + var endpat, endstr, p, ptail, s, stail, v6 uintptr + var tailcnt Tsize_t + var v9 bool + var _ /* pinc at bp+0 */ Tsize_t + var _ /* sinc at bp+8 */ Tsize_t + _, _, _, _, _, _, _, _, _, _, _, _, _ = c, endpat, endstr, k, kfold, p, ptail, s, stail, tailcnt, v2, v6, v9 + tailcnt = uint64(0) + if flags&int32(FNM_PERIOD) != 0 { + if int32(**(**int8)(__ccgo_up(str))) == int32('.') && int32(**(**int8)(__ccgo_up(pat))) != int32('.') { + return int32(FNM_NOMATCH) + } + } + for { + v2 = _pat_next(tls, pat, m, bp, flags) + c = v2 + switch v2 { + case -int32(2): + return int32(FNM_NOMATCH) + case -int32(5): + pat = pat + 1 + m = m - 1 + default: + k = _str_next(tls, str, n, bp+8) + if k <= 0 { + if c == END { + v2 = 0 + } else { + v2 = int32(FNM_NOMATCH) + } + return v2 + } + str = str + uintptr(**(**Tsize_t)(__ccgo_up(bp + 8))) + n = n - **(**Tsize_t)(__ccgo_up(bp + 8)) + if flags&int32(FNM_CASEFOLD) != 0 { + v2 = _casefold(tls, k) + } else { + v2 = k + } + kfold = v2 + if c == -int32(3) { + if !(_match_bracket(tls, pat, k, kfold) != 0) { + return int32(FNM_NOMATCH) + } + } else { + if c != -int32(4) && k != c && kfold != c { + return int32(FNM_NOMATCH) + } + } + pat = pat + uintptr(**(**Tsize_t)(__ccgo_up(bp))) + m = m - **(**Tsize_t)(__ccgo_up(bp)) + goto _1 + } + break + goto _1 + _1: + } + /* Compute real pat length if it was initially unknown/-1 */ + m = Xstrnlen(tls, pat, m) + endpat = pat + uintptr(m) + /* Find the last * in pat and count chars needed after it */ + v6 = pat + ptail = v6 + p = v6 + for { + if !(p < endpat) { + break + } + switch _pat_next(tls, p, Uint64FromInt64(int64(endpat)-int64(p)), bp, flags) { + case -int32(2): + return int32(FNM_NOMATCH) + case -int32(5): + tailcnt = uint64(0) + ptail = p + uintptr(1) + default: + tailcnt = tailcnt + 1 + break + } + goto _5 + _5: + ; + p = p + uintptr(**(**Tsize_t)(__ccgo_up(bp))) + } + /* Past this point we need not check for UNMATCHABLE in pat, + * because all of pat has already been parsed once. */ + /* Compute real str length if it was initially unknown/-1 */ + n = Xstrnlen(tls, str, n) + endstr = str + uintptr(n) + if n < tailcnt { + return int32(FNM_NOMATCH) + } + /* Find the final tailcnt chars of str, accounting for UTF-8. + * On illegal sequences we may get it wrong, but in that case + * we necessarily have a matching failure anyway. */ + s = endstr + for { + if !(s > str && tailcnt != 0) { + break + } + if v9 = Uint32FromInt8(**(**int8)(__ccgo_up(s + uintptr(-Int32FromInt32(1))))) < uint32(128); !v9 { + if !!(**(**uintptr)(__ccgo_up((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale)) != 0) { + v2 = int32(4) + } else { + v2 = int32(1) + } + } + if v9 || v2 == int32(1) { + s = s - 1 + } else { + for { + s = s - 1 + v6 = s + if !(uint32(Uint8FromInt8(**(**int8)(__ccgo_up(v6))))-uint32(0x80) < uint32(0x40) && s > str) { + break + } + } + } + goto _7 + _7: + ; + tailcnt = tailcnt - 1 + } + if tailcnt != 0 { + return int32(FNM_NOMATCH) + } + stail = s + /* Check that the pat and str tails match */ + p = ptail + for { + c = _pat_next(tls, p, Uint64FromInt64(int64(endpat)-int64(p)), bp, flags) + p = p + uintptr(**(**Tsize_t)(__ccgo_up(bp))) + v2 = _str_next(tls, s, Uint64FromInt64(int64(endstr)-int64(s)), bp+8) + k = v2 + if v2 <= 0 { + if c != END { + return int32(FNM_NOMATCH) + } + break + } + s = s + uintptr(**(**Tsize_t)(__ccgo_up(bp + 8))) + if flags&int32(FNM_CASEFOLD) != 0 { + v2 = _casefold(tls, k) + } else { + v2 = k + } + kfold = v2 + if c == -int32(3) { + if !(_match_bracket(tls, p-uintptr(**(**Tsize_t)(__ccgo_up(bp))), k, kfold) != 0) { + return int32(FNM_NOMATCH) + } + } else { + if c != -int32(4) && k != c && kfold != c { + return int32(FNM_NOMATCH) + } + } + goto _11 + _11: + } + /* We're all done with the tails now, so throw them out */ + endstr = stail + endpat = ptail + /* Match pattern components until there are none left */ + for pat < endpat { + p = pat + s = str + for { + c = _pat_next(tls, p, Uint64FromInt64(int64(endpat)-int64(p)), bp, flags) + p = p + uintptr(**(**Tsize_t)(__ccgo_up(bp))) + /* Encountering * completes/commits a component */ + if c == -int32(5) { + pat = p + str = s + break + } + k = _str_next(tls, s, Uint64FromInt64(int64(endstr)-int64(s)), bp+8) + if !(k != 0) { + return int32(FNM_NOMATCH) + } + if flags&int32(FNM_CASEFOLD) != 0 { + v2 = _casefold(tls, k) + } else { + v2 = k + } + kfold = v2 + if c == -int32(3) { + if !(_match_bracket(tls, p-uintptr(**(**Tsize_t)(__ccgo_up(bp))), k, kfold) != 0) { + break + } + } else { + if c != -int32(4) && k != c && kfold != c { + break + } + } + s = s + uintptr(**(**Tsize_t)(__ccgo_up(bp + 8))) + goto _14 + _14: + } + if c == -int32(5) { + continue + } + /* If we failed, advance str, by 1 char if it's a valid + * char, or past all invalid bytes otherwise. */ + k = _str_next(tls, str, Uint64FromInt64(int64(endstr)-int64(str)), bp+8) + if k > 0 { + str = str + uintptr(**(**Tsize_t)(__ccgo_up(bp + 8))) + } else { + str = str + 1 + for { + if !(_str_next(tls, str, Uint64FromInt64(int64(endstr)-int64(str)), bp+8) < 0) { + break + } + goto _16 + _16: + ; + str = str + 1 + } + } + } + return 0 +} + +func Xfnmatch(tls *TLS, pat uintptr, str uintptr, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v pat=%v str=%v flags=%v, (%v:)", tls, pat, str, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var c, v4 int32 + var p, s uintptr + var _ /* inc at bp+0 */ Tsize_t + _, _, _, _ = c, p, s, v4 + if flags&int32(FNM_PATHNAME) != 0 { + for { + s = str + for { + if !(**(**int8)(__ccgo_up(s)) != 0 && int32(**(**int8)(__ccgo_up(s))) != int32('/')) { + break + } + goto _2 + _2: + ; + s = s + 1 + } + p = pat + for { + v4 = _pat_next(tls, p, Uint64FromInt32(-Int32FromInt32(1)), bp, flags) + c = v4 + if !(v4 != END && c != int32('/')) { + break + } + goto _3 + _3: + ; + p = p + uintptr(**(**Tsize_t)(__ccgo_up(bp))) + } + if c != int32(**(**int8)(__ccgo_up(s))) && (!(**(**int8)(__ccgo_up(s)) != 0) || !(flags&Int32FromInt32(FNM_LEADING_DIR) != 0)) { + return int32(FNM_NOMATCH) + } + if _fnmatch_internal(tls, pat, Uint64FromInt64(int64(p)-int64(pat)), str, Uint64FromInt64(int64(s)-int64(str)), flags) != 0 { + return int32(FNM_NOMATCH) + } + if !(c != 0) { + return 0 + } + str = s + uintptr(1) + pat = p + uintptr(**(**Tsize_t)(__ccgo_up(bp))) + goto _1 + _1: + } + } else { + if flags&int32(FNM_LEADING_DIR) != 0 { + s = str + for { + if !(**(**int8)(__ccgo_up(s)) != 0) { + break + } + if int32(**(**int8)(__ccgo_up(s))) != int32('/') { + goto _5 + } + if !(_fnmatch_internal(tls, pat, Uint64FromInt32(-Int32FromInt32(1)), str, Uint64FromInt64(int64(s)-int64(str)), flags) != 0) { + return 0 + } + goto _5 + _5: + ; + s = s + 1 + } + } + } + return _fnmatch_internal(tls, pat, Uint64FromInt32(-Int32FromInt32(1)), str, Uint64FromInt32(-Int32FromInt32(1)), flags) +} + +const GLOB_ABORTED = 2 +const GLOB_APPEND = 32 +const GLOB_DOOFFS = 8 +const GLOB_ERR = 1 +const GLOB_MARK = 2 +const GLOB_NOCHECK = 16 +const GLOB_NOESCAPE = 64 +const GLOB_NOMATCH = 3 +const GLOB_NOSORT = 4 +const GLOB_NOSPACE = 1 +const GLOB_NOSYS = 4 +const GLOB_PERIOD = 128 +const GLOB_TILDE = 4096 +const GLOB_TILDE_CHECK = 16384 + +type Tglob_t = struct { + Fgl_pathc Tsize_t + Fgl_pathv uintptr + Fgl_offs Tsize_t + F__dummy1 int32 + F__dummy2 [5]uintptr +} + +type Tmatch = struct { + Fnext uintptr +} + +func _append(tls *TLS, tail uintptr, name uintptr, len1 Tsize_t, mark int32) (r int32) { + var new1 uintptr + _ = new1 + new1 = Xmalloc(tls, uint64(8)+len1+uint64(2)) + if !(new1 != 0) { + return -int32(1) + } + (*Tmatch)(unsafe.Pointer(**(**uintptr)(__ccgo_up(tail)))).Fnext = new1 + (*Tmatch)(unsafe.Pointer(new1)).Fnext = UintptrFromInt32(0) + Xmemcpy(tls, new1+8, name, len1+uint64(1)) + if mark != 0 && len1 != 0 && int32(**(**int8)(__ccgo_up(name + uintptr(len1-uint64(1))))) != int32('/') { + *(*int8)(unsafe.Pointer(new1 + 8 + uintptr(len1))) = int8('/') + *(*int8)(unsafe.Pointer(new1 + 8 + uintptr(len1+uint64(1)))) = 0 + } + **(**uintptr)(__ccgo_up(tail)) = new1 + return 0 +} + +func _do_glob(tls *TLS, buf uintptr, pos Tsize_t, type1 int32, pat uintptr, flags int32, __ccgo_fp_errfunc uintptr, tail uintptr) (r1 int32) { + bp := tls.Alloc(144) + defer tls.Free(144) + var de, dir, p, p2, v2 uintptr + var fnm_flags, in_bracket, old_errno, overflow, r, readerr, v10, v9 int32 + var i, j, v4 Tptrdiff_t + var l, v1 Tsize_t + var saved_sep int8 + var _ /* st at bp+0 */ Tstat + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = de, dir, fnm_flags, i, in_bracket, j, l, old_errno, overflow, p, p2, r, readerr, saved_sep, v1, v10, v2, v4, v9 + /* If GLOB_MARK is unused, we don't care about type. */ + if !(type1 != 0) && !(flags&Int32FromInt32(GLOB_MARK) != 0) { + type1 = int32(DT_REG) + } + /* Special-case the remaining pattern being all slashes, in + * which case we can use caller-passed type if it's a dir. */ + if **(**int8)(__ccgo_up(pat)) != 0 && type1 != int32(DT_DIR) { + type1 = 0 + } + for pos+uint64(1) < uint64(PATH_MAX) && int32(**(**int8)(__ccgo_up(pat))) == int32('/') { + v1 = pos + pos = pos + 1 + v2 = pat + pat = pat + 1 + **(**int8)(__ccgo_up(buf + uintptr(v1))) = **(**int8)(__ccgo_up(v2)) + } + /* Consume maximal [escaped-]literal prefix of pattern, copying + * and un-escaping it to the running buffer as we go. */ + i = 0 + j = 0 + in_bracket = 0 + overflow = 0 + for { + if !(int32(**(**int8)(__ccgo_up(pat + uintptr(i)))) != int32('*') && int32(**(**int8)(__ccgo_up(pat + uintptr(i)))) != int32('?') && (!(in_bracket != 0) || int32(**(**int8)(__ccgo_up(pat + uintptr(i)))) != int32(']'))) { + break + } + if !(**(**int8)(__ccgo_up(pat + uintptr(i))) != 0) { + if overflow != 0 { + return 0 + } + pat = pat + uintptr(i) + pos = pos + Uint64FromInt64(j) + v4 = Int64FromInt32(0) + j = v4 + i = v4 + break + } else { + if int32(**(**int8)(__ccgo_up(pat + uintptr(i)))) == int32('[') { + in_bracket = int32(1) + } else { + if int32(**(**int8)(__ccgo_up(pat + uintptr(i)))) == int32('\\') && !(flags&Int32FromInt32(GLOB_NOESCAPE) != 0) { + /* Backslashes inside a bracket are (at least by + * our interpretation) non-special, so if next + * char is ']' we have a complete expression. */ + if in_bracket != 0 && int32(**(**int8)(__ccgo_up(pat + uintptr(i+int64(1))))) == int32(']') { + break + } + /* Unpaired final backslash never matches. */ + if !(**(**int8)(__ccgo_up(pat + uintptr(i+int64(1)))) != 0) { + return 0 + } + i = i + 1 + } + } + } + if int32(**(**int8)(__ccgo_up(pat + uintptr(i)))) == int32('/') { + if overflow != 0 { + return 0 + } + in_bracket = 0 + pat = pat + uintptr(i+int64(1)) + i = int64(-int32(1)) + pos = pos + Uint64FromInt64(j+int64(1)) + j = int64(-int32(1)) + } + /* Only store a character if it fits in the buffer, but if + * a potential bracket expression is open, the overflow + * must be remembered and handled later only if the bracket + * is unterminated (and thereby a literal), so as not to + * disallow long bracket expressions with short matches. */ + if pos+Uint64FromInt64(j+Int64FromInt32(1)) < uint64(PATH_MAX) { + v4 = j + j = j + 1 + **(**int8)(__ccgo_up(buf + uintptr(pos+Uint64FromInt64(v4)))) = **(**int8)(__ccgo_up(pat + uintptr(i))) + } else { + if in_bracket != 0 { + overflow = int32(1) + } else { + return 0 + } + } + /* If we consume any new components, the caller-passed type + * or dummy type from above is no longer valid. */ + type1 = 0 + goto _3 + _3: + ; + i = i + 1 + } + **(**int8)(__ccgo_up(buf + uintptr(pos))) = 0 + if !(**(**int8)(__ccgo_up(pat)) != 0) { + if flags&int32(GLOB_MARK) != 0 && (!(type1 != 0) || type1 == int32(DT_LNK)) && !(Xstat(tls, buf, bp) != 0) { + if (**(**Tstat)(__ccgo_up(bp))).Fst_mode&uint32(S_IFMT) == uint32(S_IFDIR) { + type1 = int32(DT_DIR) + } else { + type1 = int32(DT_REG) + } + } + if !(type1 != 0) && Xlstat(tls, buf, bp) != 0 { + if **(**int32)(__ccgo_up(X__errno_location(tls))) != int32(ENOENT) && ((*(*func(*TLS, uintptr, int32) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_errfunc})))(tls, buf, **(**int32)(__ccgo_up(X__errno_location(tls)))) != 0 || flags&int32(GLOB_ERR) != 0) { + return int32(GLOB_ABORTED) + } + return 0 + } + if _append(tls, tail, buf, pos, BoolInt32(flags&int32(GLOB_MARK) != 0 && type1 == int32(DT_DIR))) != 0 { + return int32(GLOB_NOSPACE) + } + return 0 + } + p2 = Xstrchr(tls, pat, int32('/')) + saved_sep = int8('/') + /* Check if the '/' was escaped and, if so, remove the escape char + * so that it will not be unpaired when passed to fnmatch. */ + if p2 != 0 && !(flags&Int32FromInt32(GLOB_NOESCAPE) != 0) { + p = p2 + for { + if !(p > pat && int32(**(**int8)(__ccgo_up(p + uintptr(-Int32FromInt32(1))))) == int32('\\')) { + break + } + goto _6 + _6: + ; + p = p - 1 + } + if (int64(p2)-int64(p))%int64(2) != 0 { + p2 = p2 - 1 + saved_sep = int8('\\') + } + } + if pos != 0 { + v2 = buf + } else { + v2 = __ccgo_ts + 575 + } + dir = Xopendir(tls, v2) + if !(dir != 0) { + if (*(*func(*TLS, uintptr, int32) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_errfunc})))(tls, buf, **(**int32)(__ccgo_up(X__errno_location(tls)))) != 0 || flags&int32(GLOB_ERR) != 0 { + return int32(GLOB_ABORTED) + } + return 0 + } + old_errno = **(**int32)(__ccgo_up(X__errno_location(tls))) + for { + **(**int32)(__ccgo_up(X__errno_location(tls))) = 0 + v2 = Xreaddir(tls, dir) + de = v2 + if !(v2 != 0) { + break + } + /* Quickly skip non-directories when there's pattern left. */ + if p2 != 0 && (*Tdirent)(unsafe.Pointer(de)).Fd_type != 0 && Int32FromUint8((*Tdirent)(unsafe.Pointer(de)).Fd_type) != int32(DT_DIR) && Int32FromUint8((*Tdirent)(unsafe.Pointer(de)).Fd_type) != int32(DT_LNK) { + continue + } + l = _strlen(tls, de+19) + if l >= uint64(PATH_MAX)-pos { + continue + } + if p2 != 0 { + **(**int8)(__ccgo_up(p2)) = 0 + } + if flags&int32(GLOB_NOESCAPE) != 0 { + v9 = int32(FNM_NOESCAPE) + } else { + v9 = 0 + } + if !(flags&Int32FromInt32(GLOB_PERIOD) != 0) { + v10 = int32(FNM_PERIOD) + } else { + v10 = 0 + } + fnm_flags = v9 | v10 + if Xfnmatch(tls, pat, de+19, fnm_flags) != 0 { + continue + } + /* With GLOB_PERIOD, don't allow matching . or .. unless + * fnmatch would match them with FNM_PERIOD rules in effect. */ + if p2 != 0 && flags&int32(GLOB_PERIOD) != 0 && int32(**(**int8)(__ccgo_up(de + 19))) == int32('.') && (!(**(**int8)(__ccgo_up(de + 19 + 1)) != 0) || int32(**(**int8)(__ccgo_up(de + 19 + 1))) == int32('.') && !(**(**int8)(__ccgo_up(de + 19 + 2)) != 0)) && Xfnmatch(tls, pat, de+19, fnm_flags|int32(FNM_PERIOD)) != 0 { + continue + } + Xmemcpy(tls, buf+uintptr(pos), de+19, l+uint64(1)) + if p2 != 0 { + **(**int8)(__ccgo_up(p2)) = saved_sep + } + if p2 != 0 { + v2 = p2 + } else { + v2 = __ccgo_ts + } + r = _do_glob(tls, buf, pos+l, Int32FromUint8((*Tdirent)(unsafe.Pointer(de)).Fd_type), v2, flags, __ccgo_fp_errfunc, tail) + if r != 0 { + Xclosedir(tls, dir) + return r + } + } + readerr = **(**int32)(__ccgo_up(X__errno_location(tls))) + if p2 != 0 { + **(**int8)(__ccgo_up(p2)) = saved_sep + } + Xclosedir(tls, dir) + if readerr != 0 && ((*(*func(*TLS, uintptr, int32) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_errfunc})))(tls, buf, **(**int32)(__ccgo_up(X__errno_location(tls)))) != 0 || flags&int32(GLOB_ERR) != 0) { + return int32(GLOB_ABORTED) + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = old_errno + return 0 +} + +func _ignore_err(tls *TLS, path uintptr, err int32) (r int32) { + return 0 +} + +func _freelist(tls *TLS, head uintptr) { + var match, next uintptr + _, _ = match, next + match = (*Tmatch)(unsafe.Pointer(head)).Fnext + for { + if !(match != 0) { + break + } + next = (*Tmatch)(unsafe.Pointer(match)).Fnext + Xfree(tls, match) + goto _1 + _1: + ; + match = next + } +} + +func _sort(tls *TLS, a uintptr, b uintptr) (r int32) { + return Xstrcmp(tls, **(**uintptr)(__ccgo_up(a)), **(**uintptr)(__ccgo_up(b))) +} + +func _expand_tilde(tls *TLS, pat uintptr, buf uintptr, pos uintptr) (r int32) { + bp := tls.Alloc(64) + defer tls.Free(64) + var delim, v1 int8 + var home, name_end, p, v2 uintptr + var i, v10 Tsize_t + var v4 int32 + var _ /* pw at bp+0 */ Tpasswd + var _ /* res at bp+48 */ uintptr + _, _, _, _, _, _, _, _, _ = delim, home, i, name_end, p, v1, v10, v2, v4 + p = **(**uintptr)(__ccgo_up(pat)) + uintptr(1) + i = uint64(0) + name_end = X__strchrnul(tls, p, int32('/')) + v1 = **(**int8)(__ccgo_up(name_end)) + delim = v1 + if v1 != 0 { + v2 = name_end + name_end = name_end + 1 + **(**int8)(__ccgo_up(v2)) = 0 + } + **(**uintptr)(__ccgo_up(pat)) = name_end + if **(**int8)(__ccgo_up(p)) != 0 { + v2 = UintptrFromInt32(0) + } else { + v2 = Xgetenv(tls, __ccgo_ts+1412) + } + home = v2 + if !(home != 0) { + if **(**int8)(__ccgo_up(p)) != 0 { + v4 = Xgetpwnam_r(tls, p, bp, buf, uint64(PATH_MAX), bp+48) + } else { + v4 = Xgetpwuid_r(tls, Xgetuid(tls), bp, buf, uint64(PATH_MAX), bp+48) + } + switch v4 { + case int32(ENOMEM): + goto _5 + default: + goto _6 + case 0: + goto _7 + } + goto _8 + _5: + ; + return int32(GLOB_NOSPACE) + _7: + ; + if !!(**(**uintptr)(__ccgo_up(bp + 48)) != 0) { + goto _9 + } + _6: + ; + return int32(GLOB_NOMATCH) + _9: + ; + _8: + ; + home = (**(**Tpasswd)(__ccgo_up(bp))).Fpw_dir + } + for i < Uint64FromInt32(Int32FromInt32(PATH_MAX)-Int32FromInt32(2)) && **(**int8)(__ccgo_up(home)) != 0 { + v10 = i + i = i + 1 + v2 = home + home = home + 1 + **(**int8)(__ccgo_up(buf + uintptr(v10))) = **(**int8)(__ccgo_up(v2)) + } + if **(**int8)(__ccgo_up(home)) != 0 { + return int32(GLOB_NOMATCH) + } + v1 = delim + **(**int8)(__ccgo_up(buf + uintptr(i))) = v1 + if v1 != 0 { + i = i + 1 + v10 = i + **(**int8)(__ccgo_up(buf + uintptr(v10))) = 0 + } + **(**Tsize_t)(__ccgo_up(pos)) = i + return 0 +} + +type t__ccgo_fp__Xglob_2 = func(*TLS, uintptr, int32) int32 + +func Xglob(tls *TLS, pat uintptr, flags int32, __ccgo_fp_errfunc uintptr, g uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v pat=%v flags=%v __ccgo_fp_errfunc=%v g=%v, (%v:)", tls, pat, flags, __ccgo_fp_errfunc, g, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(4128) + defer tls.Free(4128) + var cnt, i, offs Tsize_t + var error1 int32 + var p, pathv uintptr + var v1 uint64 + var _ /* buf at bp+16 */ [4096]int8 + var _ /* head at bp+0 */ Tmatch + var _ /* pos at bp+4112 */ Tsize_t + var _ /* s at bp+4120 */ uintptr + var _ /* tail at bp+8 */ uintptr + _, _, _, _, _, _, _ = cnt, error1, i, offs, p, pathv, v1 + **(**Tmatch)(__ccgo_up(bp)) = struct { + Fnext uintptr + }{} + **(**uintptr)(__ccgo_up(bp + 8)) = bp + if flags&int32(GLOB_DOOFFS) != 0 { + v1 = (*Tglob_t)(unsafe.Pointer(g)).Fgl_offs + } else { + v1 = uint64(0) + } + offs = v1 + error1 = 0 + if !(__ccgo_fp_errfunc != 0) { + __ccgo_fp_errfunc = __ccgo_fp(_ignore_err) + } + if !(flags&Int32FromInt32(GLOB_APPEND) != 0) { + (*Tglob_t)(unsafe.Pointer(g)).Fgl_offs = offs + (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathc = uint64(0) + (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv = UintptrFromInt32(0) + } + if **(**int8)(__ccgo_up(pat)) != 0 { + p = Xstrdup(tls, pat) + if !(p != 0) { + return int32(GLOB_NOSPACE) + } + (**(**[4096]int8)(__ccgo_up(bp + 16)))[0] = 0 + **(**Tsize_t)(__ccgo_up(bp + 4112)) = uint64(0) + **(**uintptr)(__ccgo_up(bp + 4120)) = p + if flags&(Int32FromInt32(GLOB_TILDE)|Int32FromInt32(GLOB_TILDE_CHECK)) != 0 && int32(**(**int8)(__ccgo_up(p))) == int32('~') { + error1 = _expand_tilde(tls, bp+4120, bp+16, bp+4112) + } + if !(error1 != 0) { + error1 = _do_glob(tls, bp+16, **(**Tsize_t)(__ccgo_up(bp + 4112)), 0, **(**uintptr)(__ccgo_up(bp + 4120)), flags, __ccgo_fp_errfunc, bp+8) + } + Xfree(tls, p) + } + if error1 == int32(GLOB_NOSPACE) { + _freelist(tls, bp) + return error1 + } + cnt = uint64(0) + **(**uintptr)(__ccgo_up(bp + 8)) = (**(**Tmatch)(__ccgo_up(bp))).Fnext + for { + if !(**(**uintptr)(__ccgo_up(bp + 8)) != 0) { + break + } + goto _2 + _2: + ; + **(**uintptr)(__ccgo_up(bp + 8)) = (*Tmatch)(unsafe.Pointer(**(**uintptr)(__ccgo_up(bp + 8)))).Fnext + cnt = cnt + 1 + } + if !(cnt != 0) { + if flags&int32(GLOB_NOCHECK) != 0 { + **(**uintptr)(__ccgo_up(bp + 8)) = bp + if _append(tls, bp+8, pat, _strlen(tls, pat), 0) != 0 { + return int32(GLOB_NOSPACE) + } + cnt = cnt + 1 + } else { + if !(error1 != 0) { + return int32(GLOB_NOMATCH) + } + } + } + if flags&int32(GLOB_APPEND) != 0 { + pathv = Xrealloc(tls, (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv, (offs+(*Tglob_t)(unsafe.Pointer(g)).Fgl_pathc+cnt+uint64(1))*uint64(8)) + if !(pathv != 0) { + _freelist(tls, bp) + return int32(GLOB_NOSPACE) + } + (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv = pathv + offs = offs + (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathc + } else { + (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv = Xmalloc(tls, (offs+cnt+uint64(1))*uint64(8)) + if !((*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv != 0) { + _freelist(tls, bp) + return int32(GLOB_NOSPACE) + } + i = uint64(0) + for { + if !(i < offs) { + break + } + **(**uintptr)(__ccgo_up((*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv + uintptr(i)*8)) = UintptrFromInt32(0) + goto _3 + _3: + ; + i = i + 1 + } + } + i = uint64(0) + **(**uintptr)(__ccgo_up(bp + 8)) = (**(**Tmatch)(__ccgo_up(bp))).Fnext + for { + if !(i < cnt) { + break + } + **(**uintptr)(__ccgo_up((*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv + uintptr(offs+i)*8)) = **(**uintptr)(__ccgo_up(bp + 8)) + 8 + goto _4 + _4: + ; + **(**uintptr)(__ccgo_up(bp + 8)) = (*Tmatch)(unsafe.Pointer(**(**uintptr)(__ccgo_up(bp + 8)))).Fnext + i = i + 1 + } + **(**uintptr)(__ccgo_up((*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv + uintptr(offs+i)*8)) = UintptrFromInt32(0) + **(**Tsize_t)(__ccgo_up(g)) += cnt + if !(flags&Int32FromInt32(GLOB_NOSORT) != 0) { + Xqsort(tls, (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv+uintptr(offs)*8, cnt, uint64(8), __ccgo_fp(_sort)) + } + return error1 +} + +func Xglobfree(tls *TLS, g uintptr) { + if __ccgo_strace { + trc("tls=%v g=%v, (%v:)", tls, g, origin(2)) + } + var i Tsize_t + _ = i + i = uint64(0) + for { + if !(i < (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathc) { + break + } + Xfree(tls, **(**uintptr)(__ccgo_up((*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv + uintptr((*Tglob_t)(unsafe.Pointer(g)).Fgl_offs+i)*8))-uintptr(uint64(UintptrFromInt32(0)+8))) + goto _1 + _1: + ; + i = i + 1 + } + Xfree(tls, (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv) + (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathc = uint64(0) + (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv = UintptrFromInt32(0) +} + +const ASSERTION = -2 +const ASSERT_AT_BOL = 1 +const ASSERT_AT_BOW = 16 +const ASSERT_AT_EOL = 2 +const ASSERT_AT_EOW = 32 +const ASSERT_AT_WB = 64 +const ASSERT_AT_WB_NEG = 128 +const ASSERT_BACKREF = 256 +const ASSERT_CHAR_CLASS = 4 +const ASSERT_CHAR_CLASS_NEG = 8 +const ASSERT_LAST = 256 +const BACKREF = -4 +const COPY_MAXIMIZE_FIRST_TAG = 2 +const COPY_REMOVE_TAGS = 1 +const EMPTY1 = -1 +const MAX_NEG_CLASSES = 64 +const REG_BADBR = 10 +const REG_BADPAT = 2 +const REG_BADRPT = 13 +const REG_EBRACE = 9 +const REG_EBRACK = 7 +const REG_ECOLLATE = 3 +const REG_ECTYPE = 4 +const REG_EESCAPE = 5 +const REG_ENOSYS = -1 +const REG_EPAREN = 8 +const REG_ERANGE = 11 +const REG_ESPACE = 12 +const REG_ESUBREG = 6 +const REG_EXTENDED = 1 +const REG_ICASE = 2 +const REG_NEWLINE = 4 +const REG_NOMATCH = 1 +const REG_NOSUB = 8 +const REG_NOTBOL = 1 +const REG_NOTEOL = 2 +const REG_OK = 0 +const TAG = -3 +const TRE_CHAR_MAX = 1114111 +const TRE_MEM_BLOCK_SIZE = 1024 +const TRE_REGEX_T_FIELD = 0 +const tre_ctype = 0 +const tre_isalnum = 0 +const tre_isalpha = 0 +const tre_isblank = 0 +const tre_iscntrl = 0 +const tre_isctype = 0 +const tre_isdigit = 0 +const tre_isgraph = 0 +const tre_islower = 0 +const tre_isprint = 0 +const tre_ispunct = 0 +const tre_isspace = 0 +const tre_isupper = 0 +const tre_isxdigit = 0 +const tre_mem_alloc_impl = 0 +const tre_mem_destroy = 0 +const tre_mem_new_impl = 0 +const tre_strlen = 0 +const tre_tolower = 0 +const tre_toupper = 0 +const xcalloc = 0 +const xfree = 0 +const xmalloc = 0 +const xrealloc = 0 + +type Tregoff_t = int64 + +type Tregex_t = struct { + Fre_nsub Tsize_t + F__opaque uintptr + F__padding [4]uintptr + F__nsub2 Tsize_t + F__padding2 int8 +} + +type Tre_pattern_buffer = Tregex_t + +type Tregmatch_t = struct { + Frm_so Tregoff_t + Frm_eo Tregoff_t +} + +type Treg_errcode_t = int32 + +type Ttre_char_t = int32 + +type Ttre_cint_t = uint32 + +type Ttre_ctype_t = uint64 + +type Ttre_tnfa_transition_t = struct { + Fcode_min Ttre_cint_t + Fcode_max Ttre_cint_t + Fstate uintptr + Fstate_id int32 + Ftags uintptr + Fassertions int32 + Fu struct { + Fbackref [0]int32 + Fclass Ttre_ctype_t + } + Fneg_classes uintptr +} + +type Ttnfa_transition = Ttre_tnfa_transition_t + +type Ttre_tag_direction_t = int32 + +const _TRE_TAG_MINIMIZE = 0 +const _TRE_TAG_MAXIMIZE = 1 + +type Ttre_submatch_data = struct { + Fso_tag int32 + Feo_tag int32 + Fparents uintptr +} + +type Ttre_submatch_data_t = struct { + Fso_tag int32 + Feo_tag int32 + Fparents uintptr +} + +type Ttre_tnfa_t = struct { + Ftransitions uintptr + Fnum_transitions uint32 + Finitial uintptr + Ffinal uintptr + Fsubmatch_data uintptr + Ffirstpos_chars uintptr + Ffirst_char int32 + Fnum_submatches uint32 + Ftag_directions uintptr + Fminimal_tags uintptr + Fnum_tags int32 + Fnum_minimals int32 + Fend_tag int32 + Fnum_states int32 + Fcflags int32 + Fhave_backrefs int32 + Fhave_approx int32 +} + +type Ttnfa = Ttre_tnfa_t + +type Ttre_list_t = struct { + Fdata uintptr + Fnext uintptr +} + +type Ttre_list = Ttre_list_t + +type Ttre_mem_t = uintptr + +type Ttre_mem_struct = struct { + Fblocks uintptr + Fcurrent uintptr + Fptr uintptr + Fn Tsize_t + Ffailed int32 + Fprovided uintptr +} + +/*********************************************************************** + from tre-compile.h +***********************************************************************/ + +type Ttre_pos_and_tags_t = struct { + Fposition int32 + Fcode_min int32 + Fcode_max int32 + Ftags uintptr + Fassertions int32 + Fclass Ttre_ctype_t + Fneg_classes uintptr + Fbackref int32 +} + +/*********************************************************************** + from tre-ast.c and tre-ast.h +***********************************************************************/ + +// C documentation +// +// /* The different AST node types. */ +type Ttre_ast_type_t = int32 + +const _LITERAL = 0 +const _CATENATION = 1 +const _ITERATION = 2 +const _UNION = 3 + +/* Special subtypes of TRE_LITERAL. */ + +// C documentation +// +// /* A generic AST node. All AST nodes consist of this node on the top +// level with `obj' pointing to the actual content. */ +type Ttre_ast_node_t = struct { + Ftype1 Ttre_ast_type_t + Fobj uintptr + Fnullable int32 + Fsubmatch_id int32 + Fnum_submatches int32 + Fnum_tags int32 + Ffirstpos uintptr + Flastpos uintptr +} + +// C documentation +// +// /* A "literal" node. These are created for assertions, back references, +// tags, matching parameter settings, and all expressions that match one +// character. */ +type Ttre_literal_t = struct { + Fcode_min int64 + Fcode_max int64 + Fposition int32 + Fclass Ttre_ctype_t + Fneg_classes uintptr +} + +// C documentation +// +// /* A "catenation" node. These are created when two regexps are concatenated. +// If there are more than one subexpressions in sequence, the `left' part +// holds all but the last, and `right' part holds the last subexpression +// (catenation is left associative). */ +type Ttre_catenation_t = struct { + Fleft uintptr + Fright uintptr +} + +// C documentation +// +// /* An "iteration" node. These are created for the "*", "+", "?", and "{m,n}" +// operators. */ +type Ttre_iteration_t = struct { + Farg uintptr + Fmin int32 + Fmax int32 + F__ccgo16 uint8 +} + +// C documentation +// +// /* An "union" node. These are created for the "|" operator. */ +type Ttre_union_t = struct { + Fleft uintptr + Fright uintptr +} + +func _tre_ast_new_node(tls *TLS, mem Ttre_mem_t, type1 int32, obj uintptr) (r uintptr) { + var node uintptr + _ = node + node = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), int32(1), uint64(48)) + if !(node != 0) || !(obj != 0) { + return uintptr(0) + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj = obj + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 = type1 + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnullable = -int32(1) + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fsubmatch_id = -int32(1) + return node +} + +func _tre_ast_new_literal(tls *TLS, mem Ttre_mem_t, code_min int32, code_max int32, position int32) (r uintptr) { + var lit, node uintptr + _, _ = lit, node + lit = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), int32(1), uint64(40)) + node = _tre_ast_new_node(tls, mem, int32(_LITERAL), lit) + if !(node != 0) { + return uintptr(0) + } + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min = int64(code_min) + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max = int64(code_max) + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition = position + return node +} + +func _tre_ast_new_iter(tls *TLS, mem Ttre_mem_t, arg uintptr, min int32, max int32, minimal int32) (r uintptr) { + var iter, node uintptr + _, _ = iter, node + iter = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), int32(1), uint64(24)) + node = _tre_ast_new_node(tls, mem, int32(_ITERATION), iter) + if !(node != 0) { + return uintptr(0) + } + (*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg = arg + (*Ttre_iteration_t)(unsafe.Pointer(iter)).Fmin = min + (*Ttre_iteration_t)(unsafe.Pointer(iter)).Fmax = max + SetBitFieldPtr8Uint32(iter+16, Uint32FromInt32(minimal), 0, 0x1) + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_submatches = (*Ttre_ast_node_t)(unsafe.Pointer(arg)).Fnum_submatches + return node +} + +func _tre_ast_new_union(tls *TLS, mem Ttre_mem_t, left uintptr, right uintptr) (r uintptr) { + var node, un uintptr + _, _ = node, un + if !(left != 0) { + return right + } + un = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), int32(1), uint64(16)) + node = _tre_ast_new_node(tls, mem, int32(_UNION), un) + if !(node != 0) || !(right != 0) { + return uintptr(0) + } + (*Ttre_union_t)(unsafe.Pointer(un)).Fleft = left + (*Ttre_union_t)(unsafe.Pointer(un)).Fright = right + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_submatches = (*Ttre_ast_node_t)(unsafe.Pointer(left)).Fnum_submatches + (*Ttre_ast_node_t)(unsafe.Pointer(right)).Fnum_submatches + return node +} + +func _tre_ast_new_catenation(tls *TLS, mem Ttre_mem_t, left uintptr, right uintptr) (r uintptr) { + var cat, node uintptr + _, _ = cat, node + if !(left != 0) { + return right + } + cat = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), int32(1), uint64(16)) + node = _tre_ast_new_node(tls, mem, int32(_CATENATION), cat) + if !(node != 0) { + return uintptr(0) + } + (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft = left + (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright = right + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_submatches = (*Ttre_ast_node_t)(unsafe.Pointer(left)).Fnum_submatches + (*Ttre_ast_node_t)(unsafe.Pointer(right)).Fnum_submatches + return node +} + +/*********************************************************************** + from tre-stack.c and tre-stack.h +***********************************************************************/ + +type Ttre_stack_t = struct { + Fsize int32 + Fmax_size int32 + Fincrement int32 + Fptr int32 + Fstack uintptr +} + +/*********************************************************************** + from tre-stack.c and tre-stack.h +***********************************************************************/ + +type Ttre_stack_rec = Ttre_stack_t + +/* Just to save some typing. */ + +type Ttre_stack_item = struct { + Fint_value [0]int32 + Fvoidptr_value uintptr +} + +func _tre_stack_new(tls *TLS, size int32, max_size int32, increment int32) (r uintptr) { + var s uintptr + _ = s + s = Xmalloc(tls, uint64(24)) + if s != UintptrFromInt32(0) { + (*Ttre_stack_t)(unsafe.Pointer(s)).Fstack = Xmalloc(tls, uint64(8)*Uint64FromInt32(size)) + if (*Ttre_stack_t)(unsafe.Pointer(s)).Fstack == UintptrFromInt32(0) { + Xfree(tls, s) + return UintptrFromInt32(0) + } + (*Ttre_stack_t)(unsafe.Pointer(s)).Fsize = size + (*Ttre_stack_t)(unsafe.Pointer(s)).Fmax_size = max_size + (*Ttre_stack_t)(unsafe.Pointer(s)).Fincrement = increment + (*Ttre_stack_t)(unsafe.Pointer(s)).Fptr = 0 + } + return s +} + +func _tre_stack_destroy(tls *TLS, s uintptr) { + Xfree(tls, (*Ttre_stack_t)(unsafe.Pointer(s)).Fstack) + Xfree(tls, s) +} + +func _tre_stack_num_objects(tls *TLS, s uintptr) (r int32) { + return (*Ttre_stack_t)(unsafe.Pointer(s)).Fptr +} + +func _tre_stack_push(tls *TLS, s uintptr, value Ttre_stack_item) (r Treg_errcode_t) { + var new_buffer uintptr + var new_size int32 + _, _ = new_buffer, new_size + if (*Ttre_stack_t)(unsafe.Pointer(s)).Fptr < (*Ttre_stack_t)(unsafe.Pointer(s)).Fsize { + **(**Ttre_stack_item)(__ccgo_up((*Ttre_stack_t)(unsafe.Pointer(s)).Fstack + uintptr((*Ttre_stack_t)(unsafe.Pointer(s)).Fptr)*8)) = value + (*Ttre_stack_t)(unsafe.Pointer(s)).Fptr = (*Ttre_stack_t)(unsafe.Pointer(s)).Fptr + 1 + } else { + if (*Ttre_stack_t)(unsafe.Pointer(s)).Fsize >= (*Ttre_stack_t)(unsafe.Pointer(s)).Fmax_size { + return int32(REG_ESPACE) + } else { + new_size = (*Ttre_stack_t)(unsafe.Pointer(s)).Fsize + (*Ttre_stack_t)(unsafe.Pointer(s)).Fincrement + if new_size > (*Ttre_stack_t)(unsafe.Pointer(s)).Fmax_size { + new_size = (*Ttre_stack_t)(unsafe.Pointer(s)).Fmax_size + } + new_buffer = Xrealloc(tls, (*Ttre_stack_t)(unsafe.Pointer(s)).Fstack, uint64(8)*Uint64FromInt32(new_size)) + if new_buffer == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + (*Ttre_stack_t)(unsafe.Pointer(s)).Fsize = new_size + (*Ttre_stack_t)(unsafe.Pointer(s)).Fstack = new_buffer + _tre_stack_push(tls, s, value) + } + } + return REG_OK +} + +func _tre_stack_push_int(tls *TLS, s uintptr, value int32) (r Treg_errcode_t) { + var item Ttre_stack_item + _ = item + *(*int32)(unsafe.Pointer(&item)) = value + return _tre_stack_push(tls, s, item) +} + +func _tre_stack_push_voidptr(tls *TLS, s uintptr, value uintptr) (r Treg_errcode_t) { + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* item at bp+0 */ Ttre_stack_item + *(*uintptr)(unsafe.Pointer(bp)) = value + return _tre_stack_push(tls, s, **(**Ttre_stack_item)(__ccgo_up(bp))) +} + +func _tre_stack_pop_int(tls *TLS, s uintptr) (r int32) { + var v1 int32 + var v2 uintptr + _, _ = v1, v2 + v2 = s + 12 + *(*int32)(unsafe.Pointer(v2)) = *(*int32)(unsafe.Pointer(v2)) - 1 + v1 = *(*int32)(unsafe.Pointer(v2)) + return *(*int32)(unsafe.Pointer(&**(**Ttre_stack_item)(__ccgo_up((*Ttre_stack_t)(unsafe.Pointer(s)).Fstack + uintptr(v1)*8)))) +} + +func _tre_stack_pop_voidptr(tls *TLS, s uintptr) (r uintptr) { + var v1 int32 + var v2 uintptr + _, _ = v1, v2 + v2 = s + 12 + *(*int32)(unsafe.Pointer(v2)) = *(*int32)(unsafe.Pointer(v2)) - 1 + v1 = *(*int32)(unsafe.Pointer(v2)) + return *(*uintptr)(unsafe.Pointer((*Ttre_stack_t)(unsafe.Pointer(s)).Fstack + uintptr(v1)*8)) +} + +/*********************************************************************** + from tre-parse.c and tre-parse.h +***********************************************************************/ + +// C documentation +// +// /* Parse context. */ +type Ttre_parse_ctx_t = struct { + Fmem Ttre_mem_t + Fstack uintptr + Fn uintptr + Fs uintptr + Fstart uintptr + Fsubmatch_id int32 + Fposition int32 + Fmax_backref int32 + Fcflags int32 +} + +// C documentation +// +// /* Some macros for expanding \w, \s, etc. */ +var _tre_macros = [13]struct { + Fc int8 + Fexpansion uintptr +}{ + 0: { + Fc: int8('t'), + Fexpansion: __ccgo_ts + 1417, + }, + 1: { + Fc: int8('n'), + Fexpansion: __ccgo_ts + 367, + }, + 2: { + Fc: int8('r'), + Fexpansion: __ccgo_ts + 1419, + }, + 3: { + Fc: int8('f'), + Fexpansion: __ccgo_ts + 1421, + }, + 4: { + Fc: int8('a'), + Fexpansion: __ccgo_ts + 1423, + }, + 5: { + Fc: int8('e'), + Fexpansion: __ccgo_ts + 1425, + }, + 6: { + Fc: int8('w'), + Fexpansion: __ccgo_ts + 1427, + }, + 7: { + Fc: int8('W'), + Fexpansion: __ccgo_ts + 1440, + }, + 8: { + Fc: int8('s'), + Fexpansion: __ccgo_ts + 1454, + }, + 9: { + Fc: int8('S'), + Fexpansion: __ccgo_ts + 1466, + }, + 10: { + Fc: int8('d'), + Fexpansion: __ccgo_ts + 1479, + }, + 11: { + Fc: int8('D'), + Fexpansion: __ccgo_ts + 1491, + }, + 12: {}, +} + +// C documentation +// +// /* Expands a macro delimited by `regex' and `regex_end' to `buf', which +// must have at least `len' items. Sets buf[0] to zero if the there +// is no match in `tre_macros'. */ +func _tre_expand_macro(tls *TLS, s uintptr) (r uintptr) { + var i int32 + _ = i + i = 0 + for { + if !(_tre_macros[i].Fc != 0 && int32(_tre_macros[i].Fc) != int32(**(**int8)(__ccgo_up(s)))) { + break + } + goto _1 + _1: + ; + i = i + 1 + } + return _tre_macros[i].Fexpansion +} + +func _tre_compare_lit(tls *TLS, a uintptr, b uintptr) (r int32) { + var la, lb uintptr + _, _ = la, lb + la = a + lb = b + /* assumes the range of valid code_min is < INT_MAX */ + return int32((*Ttre_literal_t)(unsafe.Pointer(**(**uintptr)(__ccgo_up(la)))).Fcode_min - (*Ttre_literal_t)(unsafe.Pointer(**(**uintptr)(__ccgo_up(lb)))).Fcode_min) +} + +type Tliterals = struct { + Fmem Ttre_mem_t + Fa uintptr + Flen1 int32 + Fcap1 int32 +} + +func _tre_new_lit(tls *TLS, p uintptr) (r uintptr) { + var a, v2 uintptr + var v1 int32 + _, _, _ = a, v1, v2 + if (*Tliterals)(unsafe.Pointer(p)).Flen1 >= (*Tliterals)(unsafe.Pointer(p)).Fcap1 { + if (*Tliterals)(unsafe.Pointer(p)).Fcap1 >= Int32FromInt32(1)< max { + return int32(REG_ERANGE) + } + s = s + uintptr(len1) + } + } + if class != 0 && (*Tneg)(unsafe.Pointer(neg)).Fnegate != 0 { + if (*Tneg)(unsafe.Pointer(neg)).Flen1 >= int32(MAX_NEG_CLASSES) { + return int32(REG_ESPACE) + } + v6 = neg + 4 + v2 = *(*int32)(unsafe.Pointer(v6)) + *(*int32)(unsafe.Pointer(v6)) = *(*int32)(unsafe.Pointer(v6)) + 1 + **(**Ttre_ctype_t)(__ccgo_up(neg + 8 + uintptr(v2)*8)) = class + } else { + lit = _tre_new_lit(tls, ls) + if !(lit != 0) { + return int32(REG_ESPACE) + } + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min = int64(min) + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max = int64(max) + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fclass = class + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition = -int32(1) + /* Add opposite-case codepoints if REG_ICASE is present. + It seems that POSIX requires that bracket negation + should happen before case-folding, but most practical + implementations do it the other way around. Changing + the order would need efficient representation of + case-fold ranges and bracket range sets even with + simple patterns so this is ok for now. */ + if (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fcflags&int32(REG_ICASE) != 0 && !(class != 0) { + if _add_icase_literals(tls, ls, min, max) != 0 { + return int32(REG_ESPACE) + } + } + } + goto _1 + _1: + } + return r +} + +func _parse_bracket(tls *TLS, ctx uintptr, s uintptr) (r Treg_errcode_t) { + bp := tls.Alloc(544) + defer tls.Free(544) + var err Treg_errcode_t + var i, max, min, negmax, negmin, v1 int32 + var lit, n, nc, node uintptr + var _ /* ls at bp+0 */ Tliterals + var _ /* neg at bp+24 */ Tneg + _, _, _, _, _, _, _, _, _, _, _ = err, i, lit, max, min, n, nc, negmax, negmin, node, v1 + node = uintptr(0) + nc = uintptr(0) + (**(**Tliterals)(__ccgo_up(bp))).Fmem = (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem + (**(**Tliterals)(__ccgo_up(bp))).Flen1 = 0 + (**(**Tliterals)(__ccgo_up(bp))).Fcap1 = int32(32) + (**(**Tliterals)(__ccgo_up(bp))).Fa = Xmalloc(tls, Uint64FromInt32((**(**Tliterals)(__ccgo_up(bp))).Fcap1)*uint64(8)) + if !((**(**Tliterals)(__ccgo_up(bp))).Fa != 0) { + return int32(REG_ESPACE) + } + (**(**Tneg)(__ccgo_up(bp + 24))).Flen1 = 0 + (**(**Tneg)(__ccgo_up(bp + 24))).Fnegate = BoolInt32(int32(**(**int8)(__ccgo_up(s))) == int32('^')) + if (**(**Tneg)(__ccgo_up(bp + 24))).Fnegate != 0 { + s = s + 1 + } + err = _parse_bracket_terms(tls, ctx, s, bp, bp+24) + if err != REG_OK { + goto parse_bracket_done + } + if (**(**Tneg)(__ccgo_up(bp + 24))).Fnegate != 0 { + /* + * With REG_NEWLINE, POSIX requires that newlines are not matched by + * any form of a non-matching list. + */ + if (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fcflags&int32(REG_NEWLINE) != 0 { + lit = _tre_new_lit(tls, bp) + if !(lit != 0) { + err = int32(REG_ESPACE) + goto parse_bracket_done + } + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min = int64('\n') + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max = int64('\n') + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition = -int32(1) + } + /* Sort the array if we need to negate it. */ + Xqsort(tls, (**(**Tliterals)(__ccgo_up(bp))).Fa, Uint64FromInt32((**(**Tliterals)(__ccgo_up(bp))).Flen1), uint64(8), __ccgo_fp(_tre_compare_lit)) + /* extra lit for the last negated range */ + lit = _tre_new_lit(tls, bp) + if !(lit != 0) { + err = int32(REG_ESPACE) + goto parse_bracket_done + } + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min = int64(Int32FromInt32(TRE_CHAR_MAX) + Int32FromInt32(1)) + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max = int64(Int32FromInt32(TRE_CHAR_MAX) + Int32FromInt32(1)) + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition = -int32(1) + /* negated classes */ + if (**(**Tneg)(__ccgo_up(bp + 24))).Flen1 != 0 { + nc = X__tre_mem_alloc_impl(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, 0, UintptrFromInt32(0), 0, Uint64FromInt32((**(**Tneg)(__ccgo_up(bp + 24))).Flen1+Int32FromInt32(1))*uint64(8)) + if !(nc != 0) { + err = int32(REG_ESPACE) + goto parse_bracket_done + } + Xmemcpy(tls, nc, bp+24+8, Uint64FromInt32((**(**Tneg)(__ccgo_up(bp + 24))).Flen1)*uint64(8)) + **(**Ttre_ctype_t)(__ccgo_up(nc + uintptr((**(**Tneg)(__ccgo_up(bp + 24))).Flen1)*8)) = uint64(0) + } + } + /* Build a union of the items in the array, negated if necessary. */ + v1 = Int32FromInt32(0) + negmin = v1 + negmax = v1 + i = 0 + for { + if !(i < (**(**Tliterals)(__ccgo_up(bp))).Flen1) { + break + } + lit = **(**uintptr)(__ccgo_up((**(**Tliterals)(__ccgo_up(bp))).Fa + uintptr(i)*8)) + min = int32((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min) + max = int32((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max) + if (**(**Tneg)(__ccgo_up(bp + 24))).Fnegate != 0 { + if min <= negmin { + /* Overlap. */ + if max+int32(1) >= negmin { + v1 = max + int32(1) + } else { + v1 = negmin + } + negmin = v1 + goto _2 + } + negmax = min - int32(1) + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min = int64(negmin) + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max = int64(negmax) + negmin = max + int32(1) + } + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition = (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fposition + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fneg_classes = nc + n = _tre_ast_new_node(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, int32(_LITERAL), lit) + node = _tre_ast_new_union(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, node, n) + if !(node != 0) { + err = int32(REG_ESPACE) + break + } + goto _2 + _2: + ; + i = i + 1 + } + goto parse_bracket_done +parse_bracket_done: + ; + Xfree(tls, (**(**Tliterals)(__ccgo_up(bp))).Fa) + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fposition = (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fposition + 1 + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fn = node + return err +} + +func _parse_dup_count(tls *TLS, s uintptr, n uintptr) (r uintptr) { + **(**int32)(__ccgo_up(n)) = -int32(1) + if !(BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(s)))-Uint32FromUint8('0') < Uint32FromInt32(10)) != 0) { + return s + } + **(**int32)(__ccgo_up(n)) = 0 + for { + **(**int32)(__ccgo_up(n)) = int32(10)***(**int32)(__ccgo_up(n)) + (int32(**(**int8)(__ccgo_up(s))) - int32('0')) + s = s + 1 + if !(BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(s)))-Uint32FromUint8('0') < Uint32FromInt32(10)) != 0) || **(**int32)(__ccgo_up(n)) > int32(RE_DUP_MAX) { + break + } + goto _1 + _1: + } + return s +} + +func _parse_dup(tls *TLS, s uintptr, ere int32, pmin uintptr, pmax uintptr) (r uintptr) { + bp := tls.Alloc(16) + defer tls.Free(16) + var v1, v4 uintptr + var v2, v3, v5 bool + var _ /* max at bp+4 */ int32 + var _ /* min at bp+0 */ int32 + _, _, _, _, _ = v1, v2, v3, v4, v5 + s = _parse_dup_count(tls, s, bp) + if int32(**(**int8)(__ccgo_up(s))) == int32(',') { + s = _parse_dup_count(tls, s+uintptr(1), bp+4) + } else { + **(**int32)(__ccgo_up(bp + 4)) = **(**int32)(__ccgo_up(bp)) + } + if v3 = **(**int32)(__ccgo_up(bp + 4)) < **(**int32)(__ccgo_up(bp)) && **(**int32)(__ccgo_up(bp + 4)) >= 0 || **(**int32)(__ccgo_up(bp + 4)) > int32(RE_DUP_MAX) || **(**int32)(__ccgo_up(bp)) > int32(RE_DUP_MAX) || **(**int32)(__ccgo_up(bp)) < 0; !v3 { + if v2 = !(ere != 0); v2 { + v1 = s + s = s + 1 + } + } + if v5 = v3 || v2 && int32(**(**int8)(__ccgo_up(v1))) != int32('\\'); !v5 { + v4 = s + s = s + 1 + } + if v5 || int32(**(**int8)(__ccgo_up(v4))) != int32('}') { + return uintptr(0) + } + **(**int32)(__ccgo_up(pmin)) = **(**int32)(__ccgo_up(bp)) + **(**int32)(__ccgo_up(pmax)) = **(**int32)(__ccgo_up(bp + 4)) + return s +} + +func _hexval1(tls *TLS, c uint32) (r int32) { + if c-uint32('0') < uint32(10) { + return Int32FromUint32(c - uint32('0')) + } + c = c | uint32(32) + if c-uint32('a') < uint32(6) { + return Int32FromUint32(c - uint32('a') + uint32(10)) + } + return -int32(1) +} + +func _marksub(tls *TLS, ctx uintptr, node uintptr, subid int32) (r Treg_errcode_t) { + var n uintptr + _ = n + if (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fsubmatch_id >= 0 { + n = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(1), -int32(1), -int32(1)) + if !(n != 0) { + return int32(REG_ESPACE) + } + n = _tre_ast_new_catenation(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, n, node) + if !(n != 0) { + return int32(REG_ESPACE) + } + (*Ttre_ast_node_t)(unsafe.Pointer(n)).Fnum_submatches = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_submatches + node = n + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fsubmatch_id = subid + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_submatches = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_submatches + 1 + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fn = node + return REG_OK +} + +/* +BRE grammar: +Regex = Branch | '^' | '$' | '^$' | '^' Branch | Branch '$' | '^' Branch '$' +Branch = Atom | Branch Atom +Atom = char | quoted_char | '.' | Bracket | Atom Dup | '\(' Branch '\)' | back_ref +Dup = '*' | '\{' Count '\}' | '\{' Count ',\}' | '\{' Count ',' Count '\}' + +(leading ^ and trailing $ in a sub expr may be an anchor or literal as well) + +ERE grammar: +Regex = Branch | Regex '|' Branch +Branch = Atom | Branch Atom +Atom = char | quoted_char | '.' | Bracket | Atom Dup | '(' Regex ')' | '^' | '$' +Dup = '*' | '+' | '?' | '{' Count '}' | '{' Count ',}' | '{' Count ',' Count '}' + +(a*+?, ^*, $+, \X, {, (|a) are unspecified) +*/ + +func _parse_atom(tls *TLS, ctx uintptr, s uintptr) (r Treg_errcode_t) { + bp := tls.Alloc(16) + defer tls.Free(16) + var c, ere, i, len1, v, val, v16 int32 + var err Treg_errcode_t + var node, p, tmp1, tmp11, tmp2, tmp21, v14 uintptr + var _ /* wc at bp+0 */ Twchar_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = c, ere, err, i, len1, node, p, tmp1, tmp11, tmp2, tmp21, v, val, v14, v16 + ere = (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fcflags & int32(REG_EXTENDED) + switch int32(**(**int8)(__ccgo_up(s))) { + case int32('['): + goto _1 + case int32('\\'): + goto _2 + case int32('.'): + goto _3 + case int32('^'): + goto _4 + case int32('$'): + goto _5 + case int32('?'): + goto _6 + case int32('+'): + goto _7 + case int32('{'): + goto _8 + case int32('*'): + goto _9 + case int32('|'): + goto _10 + case 0: + goto _11 + default: + goto _12 + } + goto _13 +_1: + ; + return _parse_bracket(tls, ctx, s+uintptr(1)) +_2: + ; + p = _tre_expand_macro(tls, s+uintptr(1)) + if p != 0 { + /* assume \X expansion is a single atom */ + err = _parse_atom(tls, ctx, p) + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fs = s + uintptr(2) + return err + } + /* extensions: \b, \B, \<, \>, \xHH \x{HHHH} */ + s = s + 1 + v14 = s + switch int32(**(**int8)(__ccgo_up(v14))) { + case 0: + return int32(REG_EESCAPE) + case int32('b'): + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(2), int32(ASSERT_AT_WB), -int32(1)) + case int32('B'): + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(2), int32(ASSERT_AT_WB_NEG), -int32(1)) + case int32('<'): + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(2), int32(ASSERT_AT_BOW), -int32(1)) + case int32('>'): + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(2), int32(ASSERT_AT_EOW), -int32(1)) + case int32('x'): + s = s + 1 + v = 0 + len1 = int32(2) + if int32(**(**int8)(__ccgo_up(s))) == int32('{') { + len1 = int32(8) + s = s + 1 + } + i = 0 + for { + if !(i < len1 && v < int32(0x110000)) { + break + } + c = _hexval1(tls, Uint32FromInt8(**(**int8)(__ccgo_up(s + uintptr(i))))) + if c < 0 { + break + } + v = int32(16)*v + c + goto _15 + _15: + ; + i = i + 1 + } + s = s + uintptr(i) + if len1 == int32(8) { + if int32(**(**int8)(__ccgo_up(s))) != int32('}') { + return int32(REG_EBRACE) + } + s = s + 1 + } + v14 = ctx + 44 + v16 = *(*int32)(unsafe.Pointer(v14)) + *(*int32)(unsafe.Pointer(v14)) = *(*int32)(unsafe.Pointer(v14)) + 1 + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, v, v, v16) + s = s - 1 + case int32('{'): + fallthrough + case int32('+'): + fallthrough + case int32('?'): + /* extension: treat \+, \? as repetitions in BRE */ + /* reject repetitions after empty expression in BRE */ + if !(ere != 0) { + return int32(REG_BADRPT) + } + fallthrough + case int32('|'): + /* extension: treat \| as alternation in BRE */ + if !(ere != 0) { + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(1), -int32(1), -int32(1)) + s = s - 1 + goto end + } + /* fallthrough */ + fallthrough + default: + if !(ere != 0) && Uint32FromInt8(**(**int8)(__ccgo_up(s)))-uint32('1') < uint32(9) { + /* back reference */ + val = int32(**(**int8)(__ccgo_up(s))) - int32('0') + v14 = ctx + 44 + v16 = *(*int32)(unsafe.Pointer(v14)) + *(*int32)(unsafe.Pointer(v14)) = *(*int32)(unsafe.Pointer(v14)) + 1 + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(4), val, v16) + if val >= (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmax_backref { + v16 = val + } else { + v16 = (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmax_backref + } + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmax_backref = v16 + } else { + /* extension: accept unknown escaped char + as a literal */ + goto parse_literal + } + } + s = s + 1 + goto _13 +_3: + ; + if (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fcflags&int32(REG_NEWLINE) != 0 { + v14 = ctx + 44 + v16 = *(*int32)(unsafe.Pointer(v14)) + *(*int32)(unsafe.Pointer(v14)) = *(*int32)(unsafe.Pointer(v14)) + 1 + tmp1 = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, 0, Int32FromUint8('\n')-Int32FromInt32(1), v16) + v14 = ctx + 44 + v16 = *(*int32)(unsafe.Pointer(v14)) + *(*int32)(unsafe.Pointer(v14)) = *(*int32)(unsafe.Pointer(v14)) + 1 + tmp2 = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, Int32FromUint8('\n')+Int32FromInt32(1), int32(TRE_CHAR_MAX), v16) + if tmp1 != 0 && tmp2 != 0 { + node = _tre_ast_new_union(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, tmp1, tmp2) + } else { + node = uintptr(0) + } + } else { + v14 = ctx + 44 + v16 = *(*int32)(unsafe.Pointer(v14)) + *(*int32)(unsafe.Pointer(v14)) = *(*int32)(unsafe.Pointer(v14)) + 1 + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, 0, int32(TRE_CHAR_MAX), v16) + } + s = s + 1 + goto _13 +_4: + ; + /* '^' has a special meaning everywhere in EREs, and at beginning of BRE. */ + if !(ere != 0) && s != (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fstart { + goto parse_literal + } + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(2), int32(ASSERT_AT_BOL), -int32(1)) + s = s + 1 + goto _13 +_5: + ; + /* '$' is special everywhere in EREs, and at the end of a BRE subexpression. */ + if !(ere != 0) && **(**int8)(__ccgo_up(s + 1)) != 0 && (int32(**(**int8)(__ccgo_up(s + 1))) != int32('\\') || int32(**(**int8)(__ccgo_up(s + 2))) != int32(')') && int32(**(**int8)(__ccgo_up(s + 2))) != int32('|')) { + goto parse_literal + } + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(2), int32(ASSERT_AT_EOL), -int32(1)) + s = s + 1 + goto _13 +_9: + ; +_8: + ; +_7: + ; +_6: + ; + /* reject repetitions after empty expression in ERE */ + if ere != 0 { + return int32(REG_BADRPT) + } +_10: + ; + if !(ere != 0) { + goto parse_literal + } +_11: + ; + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(1), -int32(1), -int32(1)) + goto _13 +_12: + ; + goto parse_literal +parse_literal: + ; + len1 = Xmbtowc(tls, bp, s, Uint64FromInt32(-Int32FromInt32(1))) + if len1 < 0 { + return int32(REG_BADPAT) + } + if (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fcflags&int32(REG_ICASE) != 0 && (Xiswupper(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp)))) != 0 || Xiswlower(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp)))) != 0) { + /* multiple opposite case characters are not supported */ + tmp11 = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, Int32FromUint32(Xtowupper(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp))))), Int32FromUint32(Xtowupper(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp))))), (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fposition) + tmp21 = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, Int32FromUint32(Xtowlower(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp))))), Int32FromUint32(Xtowlower(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp))))), (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fposition) + if tmp11 != 0 && tmp21 != 0 { + node = _tre_ast_new_union(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, tmp11, tmp21) + } else { + node = uintptr(0) + } + } else { + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, **(**Twchar_t)(__ccgo_up(bp)), **(**Twchar_t)(__ccgo_up(bp)), (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fposition) + } + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fposition = (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fposition + 1 + s = s + uintptr(len1) + goto _13 +_13: + ; + goto end +end: + ; + if !(node != 0) { + return int32(REG_ESPACE) + } + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fn = node + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fs = s + return REG_OK +} + +func _tre_parse(tls *TLS, ctx uintptr) (r Treg_errcode_t) { + bp := tls.Alloc(16) + defer tls.Free(16) + var c, depth, ere, subid, v2 int32 + var err, v1 Treg_errcode_t + var nbranch, nunion, s, stack, v8 uintptr + var _ /* max at bp+4 */ int32 + var _ /* min at bp+0 */ int32 + _, _, _, _, _, _, _, _, _, _, _, _ = c, depth, ere, err, nbranch, nunion, s, stack, subid, v1, v2, v8 + nbranch = uintptr(0) + nunion = uintptr(0) + ere = (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fcflags & int32(REG_EXTENDED) + s = (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fstart + subid = 0 + depth = 0 + stack = (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fstack + v2 = subid + subid = subid + 1 + v1 = _tre_stack_push_int(tls, stack, v2) + err = v1 + if v1 != REG_OK { + return err + } + for { + if !(ere != 0) && int32(**(**int8)(__ccgo_up(s))) == int32('\\') && int32(**(**int8)(__ccgo_up(s + 1))) == int32('(') || ere != 0 && int32(**(**int8)(__ccgo_up(s))) == int32('(') { + v1 = _tre_stack_push_voidptr(tls, stack, nunion) + err = v1 + if v1 != REG_OK { + return err + } + v1 = _tre_stack_push_voidptr(tls, stack, nbranch) + err = v1 + if v1 != REG_OK { + return err + } + v2 = subid + subid = subid + 1 + v1 = _tre_stack_push_int(tls, stack, v2) + err = v1 + if v1 != REG_OK { + return err + } + s = s + 1 + if !(ere != 0) { + s = s + 1 + } + depth = depth + 1 + v8 = UintptrFromInt32(0) + nunion = v8 + nbranch = v8 + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fstart = s + goto _3 + } + if !(ere != 0) && int32(**(**int8)(__ccgo_up(s))) == int32('\\') && int32(**(**int8)(__ccgo_up(s + 1))) == int32(')') || ere != 0 && int32(**(**int8)(__ccgo_up(s))) == int32(')') && depth != 0 { + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fn = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(1), -int32(1), -int32(1)) + if !((*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fn != 0) { + return int32(REG_ESPACE) + } + } else { + err = _parse_atom(tls, ctx, s) + if err != REG_OK { + return err + } + s = (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fs + } + goto parse_iter + parse_iter: + ; + for { + if int32(**(**int8)(__ccgo_up(s))) != int32('\\') && int32(**(**int8)(__ccgo_up(s))) != int32('*') { + if !(ere != 0) { + break + } + if int32(**(**int8)(__ccgo_up(s))) != int32('+') && int32(**(**int8)(__ccgo_up(s))) != int32('?') && int32(**(**int8)(__ccgo_up(s))) != int32('{') { + break + } + } + if int32(**(**int8)(__ccgo_up(s))) == int32('\\') && ere != 0 { + break + } + /* extension: treat \+, \? as repetitions in BRE */ + if int32(**(**int8)(__ccgo_up(s))) == int32('\\') && int32(**(**int8)(__ccgo_up(s + 1))) != int32('+') && int32(**(**int8)(__ccgo_up(s + 1))) != int32('?') && int32(**(**int8)(__ccgo_up(s + 1))) != int32('{') { + break + } + if int32(**(**int8)(__ccgo_up(s))) == int32('\\') { + s = s + 1 + } + /* handle ^* at the start of a BRE. */ + if !(ere != 0) && s == (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fstart+uintptr(1) && int32(**(**int8)(__ccgo_up(s + uintptr(-Int32FromInt32(1))))) == int32('^') { + break + } + /* extension: multiple consecutive *+?{,} is unspecified, + but (a+)+ has to be supported so accepting a++ makes + sense, note however that the RE_DUP_MAX limit can be + circumvented: (a{255}){255} uses a lot of memory.. */ + if int32(**(**int8)(__ccgo_up(s))) == int32('{') { + s = _parse_dup(tls, s+uintptr(1), ere, bp, bp+4) + if !(s != 0) { + return int32(REG_BADBR) + } + } else { + **(**int32)(__ccgo_up(bp)) = 0 + **(**int32)(__ccgo_up(bp + 4)) = -int32(1) + if int32(**(**int8)(__ccgo_up(s))) == int32('+') { + **(**int32)(__ccgo_up(bp)) = int32(1) + } + if int32(**(**int8)(__ccgo_up(s))) == int32('?') { + **(**int32)(__ccgo_up(bp + 4)) = int32(1) + } + s = s + 1 + } + if **(**int32)(__ccgo_up(bp + 4)) == 0 { + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fn = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(1), -int32(1), -int32(1)) + } else { + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fn = _tre_ast_new_iter(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fn, **(**int32)(__ccgo_up(bp)), **(**int32)(__ccgo_up(bp + 4)), 0) + } + if !((*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fn != 0) { + return int32(REG_ESPACE) + } + goto _9 + _9: + } + nbranch = _tre_ast_new_catenation(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, nbranch, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fn) + if ere != 0 && int32(**(**int8)(__ccgo_up(s))) == int32('|') || ere != 0 && int32(**(**int8)(__ccgo_up(s))) == int32(')') && depth != 0 || !(ere != 0) && int32(**(**int8)(__ccgo_up(s))) == int32('\\') && int32(**(**int8)(__ccgo_up(s + 1))) == int32(')') || !(ere != 0) && int32(**(**int8)(__ccgo_up(s))) == int32('\\') && int32(**(**int8)(__ccgo_up(s + 1))) == int32('|') || !(**(**int8)(__ccgo_up(s)) != 0) { + /* extension: empty branch is unspecified (), (|a), (a|) + here they are not rejected but match on empty string */ + c = int32(**(**int8)(__ccgo_up(s))) + nunion = _tre_ast_new_union(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, nunion, nbranch) + nbranch = uintptr(0) + if c == int32('\\') && int32(**(**int8)(__ccgo_up(s + 1))) == int32('|') { + s = s + uintptr(2) + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fstart = s + } else { + if c == int32('|') { + s = s + 1 + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fstart = s + } else { + if c == int32('\\') { + if !(depth != 0) { + return int32(REG_EPAREN) + } + s = s + uintptr(2) + } else { + if c == int32(')') { + s = s + 1 + } + } + depth = depth - 1 + err = _marksub(tls, ctx, nunion, _tre_stack_pop_int(tls, stack)) + if err != REG_OK { + return err + } + if !(c != 0) && depth < 0 { + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fsubmatch_id = subid + return REG_OK + } + if !(c != 0) || depth < 0 { + return int32(REG_EPAREN) + } + nbranch = _tre_stack_pop_voidptr(tls, stack) + nunion = _tre_stack_pop_voidptr(tls, stack) + goto parse_iter + } + } + } + goto _3 + _3: + } + return r +} + +/*********************************************************************** + from tre-compile.c +***********************************************************************/ + +/* + TODO: + - Fix tre_ast_to_tnfa() to recurse using a stack instead of recursive + function calls. +*/ + +/* + Algorithms to setup tags so that submatch addressing can be done. +*/ + +// C documentation +// +// /* Inserts a catenation node to the root of the tree given in `node'. +// As the left child a new tag with number `tag_id' to `node' is added, +// and the right child is the old root. */ +func _tre_add_tag_left(tls *TLS, mem Ttre_mem_t, node uintptr, tag_id int32) (r Treg_errcode_t) { + var c uintptr + _ = c + c = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint64(16)) + if c == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + (*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft = _tre_ast_new_literal(tls, mem, -int32(3), tag_id, -int32(1)) + if (*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + (*Ttre_catenation_t)(unsafe.Pointer(c)).Fright = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint64(48)) + if (*Ttre_catenation_t)(unsafe.Pointer(c)).Fright == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fright)).Fobj = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fright)).Ftype1 = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fright)).Fnullable = -int32(1) + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fright)).Fsubmatch_id = -int32(1) + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fright)).Ffirstpos = UintptrFromInt32(0) + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fright)).Flastpos = UintptrFromInt32(0) + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fright)).Fnum_tags = 0 + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fright)).Fnum_submatches = 0 + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj = c + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 = int32(_CATENATION) + return REG_OK +} + +// C documentation +// +// /* Inserts a catenation node to the root of the tree given in `node'. +// As the right child a new tag with number `tag_id' to `node' is added, +// and the left child is the old root. */ +func _tre_add_tag_right(tls *TLS, mem Ttre_mem_t, node uintptr, tag_id int32) (r Treg_errcode_t) { + var c uintptr + _ = c + c = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint64(16)) + if c == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + (*Ttre_catenation_t)(unsafe.Pointer(c)).Fright = _tre_ast_new_literal(tls, mem, -int32(3), tag_id, -int32(1)) + if (*Ttre_catenation_t)(unsafe.Pointer(c)).Fright == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + (*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint64(48)) + if (*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft)).Fobj = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft)).Ftype1 = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft)).Fnullable = -int32(1) + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft)).Fsubmatch_id = -int32(1) + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft)).Ffirstpos = UintptrFromInt32(0) + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft)).Flastpos = UintptrFromInt32(0) + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft)).Fnum_tags = 0 + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft)).Fnum_submatches = 0 + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj = c + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 = int32(_CATENATION) + return REG_OK +} + +type Ttre_addtags_symbol_t = int32 + +const _ADDTAGS_RECURSE = 0 +const _ADDTAGS_AFTER_ITERATION = 1 +const _ADDTAGS_AFTER_UNION_LEFT = 2 +const _ADDTAGS_AFTER_UNION_RIGHT = 3 +const _ADDTAGS_AFTER_CAT_LEFT = 4 +const _ADDTAGS_AFTER_CAT_RIGHT = 5 +const _ADDTAGS_SET_SUBMATCH_END = 6 + +type Ttre_tag_states_t = struct { + Ftag int32 + Fnext_tag int32 +} + +// C documentation +// +// /* Go through `regset' and set submatch data for submatches that are +// using this tag. */ +func _tre_purge_regset(tls *TLS, regset uintptr, tnfa uintptr, tag int32) { + var i, id, start int32 + _, _, _ = i, id, start + i = 0 + for { + if !(**(**int32)(__ccgo_up(regset + uintptr(i)*4)) >= 0) { + break + } + id = **(**int32)(__ccgo_up(regset + uintptr(i)*4)) / int32(2) + start = BoolInt32(!(**(**int32)(__ccgo_up(regset + uintptr(i)*4))%Int32FromInt32(2) != 0)) + if start != 0 { + (**(**Ttre_submatch_data_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fsubmatch_data + uintptr(id)*16))).Fso_tag = tag + } else { + (**(**Ttre_submatch_data_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fsubmatch_data + uintptr(id)*16))).Feo_tag = tag + } + goto _1 + _1: + ; + i = i + 1 + } + **(**int32)(__ccgo_up(regset)) = -int32(1) +} + +// C documentation +// +// /* Adds tags to appropriate locations in the parse tree in `tree', so that +// subexpressions marked for submatch addressing can be traced. */ +func _tre_add_tags(tls *TLS, mem Ttre_mem_t, stack uintptr, tree uintptr, tnfa uintptr) (r Treg_errcode_t) { + var added_tags, bottom, enter_tag, first_pass, i1, i2, i3, i4, i5, i6, i7, id, id1, left_tag, minimal, minimal_tag, new_tag, next_tag, num_minimals, num_tags, reserved_tag, right_tag, tag, tag_left, tag_right, v22 int32 + var cat, iter, left, left1, left2, lit, node, orig_regset, p, parents, regset, right, right1, right2, saved_states, uni uintptr + var direction Ttre_tag_direction_t + var i uint32 + var status Treg_errcode_t + var symbol Ttre_addtags_symbol_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = added_tags, bottom, cat, direction, enter_tag, first_pass, i, i1, i2, i3, i4, i5, i6, i7, id, id1, iter, left, left1, left2, left_tag, lit, minimal, minimal_tag, new_tag, next_tag, node, num_minimals, num_tags, orig_regset, p, parents, regset, reserved_tag, right, right1, right2, right_tag, saved_states, status, symbol, tag, tag_left, tag_right, uni, v22 + status = REG_OK + node = tree /* Tree node we are currently looking at. */ + bottom = _tre_stack_num_objects(tls, stack) + /* True for first pass (counting number of needed tags) */ + first_pass = BoolInt32(mem == UintptrFromInt32(0) || tnfa == UintptrFromInt32(0)) + num_tags = 0 /* Total number of tags. */ + num_minimals = 0 /* Number of special minimal tags. */ + tag = 0 /* The tag that is to be added next. */ + next_tag = int32(1) /* Stack of submatches the current submatch is + contained in. */ + minimal_tag = -int32(1) + direction = int32(_TRE_TAG_MINIMIZE) + if !(first_pass != 0) { + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fend_tag = 0 + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags)) = -int32(1) + } + regset = Xmalloc(tls, uint64(4)*uint64(((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_submatches+Uint32FromInt32(1))*Uint32FromInt32(2))) + if regset == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + **(**int32)(__ccgo_up(regset)) = -int32(1) + orig_regset = regset + parents = Xmalloc(tls, uint64(4)*uint64((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_submatches+Uint32FromInt32(1))) + if parents == UintptrFromInt32(0) { + Xfree(tls, regset) + return int32(REG_ESPACE) + } + **(**int32)(__ccgo_up(parents)) = -int32(1) + saved_states = Xmalloc(tls, uint64(8)*uint64((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_submatches+Uint32FromInt32(1))) + if saved_states == UintptrFromInt32(0) { + Xfree(tls, regset) + Xfree(tls, parents) + return int32(REG_ESPACE) + } else { + i = uint32(0) + for { + if !(i <= (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_submatches) { + break + } + (**(**Ttre_tag_states_t)(__ccgo_up(saved_states + uintptr(i)*8))).Ftag = -int32(1) + goto _1 + _1: + ; + i = i + 1 + } + } + status = _tre_stack_push_voidptr(tls, stack, node) + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_RECURSE)) + for _tre_stack_num_objects(tls, stack) > bottom { + if status != REG_OK { + break + } + symbol = _tre_stack_pop_int(tls, stack) + switch symbol { + case int32(_ADDTAGS_SET_SUBMATCH_END): + goto _2 + case int32(_ADDTAGS_RECURSE): + goto _3 + case int32(_ADDTAGS_AFTER_ITERATION): + goto _4 + case int32(_ADDTAGS_AFTER_CAT_LEFT): + goto _5 + case int32(_ADDTAGS_AFTER_CAT_RIGHT): + goto _6 + case int32(_ADDTAGS_AFTER_UNION_LEFT): + goto _7 + case int32(_ADDTAGS_AFTER_UNION_RIGHT): + goto _8 + default: + goto _9 + } + goto _10 + _2: + ; + id = _tre_stack_pop_int(tls, stack) + /* Add end of this submatch to regset. */ + i1 = 0 + for { + if !(**(**int32)(__ccgo_up(regset + uintptr(i1)*4)) >= 0) { + break + } + goto _11 + _11: + ; + i1 = i1 + 1 + } + **(**int32)(__ccgo_up(regset + uintptr(i1)*4)) = id*int32(2) + int32(1) + **(**int32)(__ccgo_up(regset + uintptr(i1+int32(1))*4)) = -int32(1) + /* Pop this submatch from the parents stack. */ + i1 = 0 + for { + if !(**(**int32)(__ccgo_up(parents + uintptr(i1)*4)) >= 0) { + break + } + goto _12 + _12: + ; + i1 = i1 + 1 + } + **(**int32)(__ccgo_up(parents + uintptr(i1-int32(1))*4)) = -int32(1) + goto _10 + _3: + ; + node = _tre_stack_pop_voidptr(tls, stack) + if (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fsubmatch_id >= 0 { + id1 = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fsubmatch_id + /* Add start of this submatch to regset. */ + i2 = 0 + for { + if !(**(**int32)(__ccgo_up(regset + uintptr(i2)*4)) >= 0) { + break + } + goto _13 + _13: + ; + i2 = i2 + 1 + } + **(**int32)(__ccgo_up(regset + uintptr(i2)*4)) = id1 * int32(2) + **(**int32)(__ccgo_up(regset + uintptr(i2+int32(1))*4)) = -int32(1) + if !(first_pass != 0) { + i2 = 0 + for { + if !(**(**int32)(__ccgo_up(parents + uintptr(i2)*4)) >= 0) { + break + } + goto _14 + _14: + ; + i2 = i2 + 1 + } + (**(**Ttre_submatch_data_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fsubmatch_data + uintptr(id1)*16))).Fparents = UintptrFromInt32(0) + if i2 > 0 { + p = Xmalloc(tls, uint64(4)*Uint64FromInt32(i2+Int32FromInt32(1))) + if p == UintptrFromInt32(0) { + status = int32(REG_ESPACE) + goto _10 + } + (**(**Ttre_submatch_data_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fsubmatch_data + uintptr(id1)*16))).Fparents = p + i2 = 0 + for { + if !(**(**int32)(__ccgo_up(parents + uintptr(i2)*4)) >= 0) { + break + } + **(**int32)(__ccgo_up(p + uintptr(i2)*4)) = **(**int32)(__ccgo_up(parents + uintptr(i2)*4)) + goto _15 + _15: + ; + i2 = i2 + 1 + } + **(**int32)(__ccgo_up(p + uintptr(i2)*4)) = -int32(1) + } + } + /* Add end of this submatch to regset after processing this + node. */ + status = _tre_stack_push_int(tls, stack, (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fsubmatch_id) + if status != REG_OK { + goto _10 + } + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_SET_SUBMATCH_END)) + if status != REG_OK { + goto _10 + } + } + switch (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 { + case int32(_LITERAL): + lit = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + if !((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min < Int64FromInt32(0)) || (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min == int64(-int32(4)) { + if **(**int32)(__ccgo_up(regset)) >= 0 { + /* Regset is not empty, so add a tag before the + literal or backref. */ + if !(first_pass != 0) { + status = _tre_add_tag_left(tls, mem, node, tag) + **(**Ttre_tag_direction_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions + uintptr(tag)*4)) = direction + if minimal_tag >= 0 { + i3 = 0 + for { + if !(**(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i3)*4)) >= 0) { + break + } + goto _16 + _16: + ; + i3 = i3 + 1 + } + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i3)*4)) = tag + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i3+int32(1))*4)) = minimal_tag + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i3+int32(2))*4)) = -int32(1) + minimal_tag = -int32(1) + num_minimals = num_minimals + 1 + } + _tre_purge_regset(tls, regset, tnfa, tag) + } else { + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_tags = int32(1) + } + **(**int32)(__ccgo_up(regset)) = -int32(1) + tag = next_tag + num_tags = num_tags + 1 + next_tag = next_tag + 1 + } + } else { + } + case int32(_CATENATION): + cat = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + left = (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft + right = (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright + reserved_tag = -int32(1) + /* After processing right child. */ + status = _tre_stack_push_voidptr(tls, stack, node) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_AFTER_CAT_RIGHT)) + if status != REG_OK { + break + } + /* Process right child. */ + status = _tre_stack_push_voidptr(tls, stack, right) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_RECURSE)) + if status != REG_OK { + break + } + /* After processing left child. */ + status = _tre_stack_push_int(tls, stack, next_tag+(*Ttre_ast_node_t)(unsafe.Pointer(left)).Fnum_tags) + if status != REG_OK { + break + } + if (*Ttre_ast_node_t)(unsafe.Pointer(left)).Fnum_tags > 0 && (*Ttre_ast_node_t)(unsafe.Pointer(right)).Fnum_tags > 0 { + /* Reserve the next tag to the right child. */ + reserved_tag = next_tag + next_tag = next_tag + 1 + } + status = _tre_stack_push_int(tls, stack, reserved_tag) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_AFTER_CAT_LEFT)) + if status != REG_OK { + break + } + /* Process left child. */ + status = _tre_stack_push_voidptr(tls, stack, left) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_RECURSE)) + if status != REG_OK { + break + } + case int32(_ITERATION): + iter = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + if first_pass != 0 { + status = _tre_stack_push_int(tls, stack, BoolInt32(**(**int32)(__ccgo_up(regset)) >= 0 || int32(uint32(*(*uint8)(unsafe.Pointer(iter + 16))&0x1>>0)) != 0)) + if status != REG_OK { + break + } + } else { + status = _tre_stack_push_int(tls, stack, tag) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(uint32(*(*uint8)(unsafe.Pointer(iter + 16))&0x1>>0))) + if status != REG_OK { + break + } + } + status = _tre_stack_push_voidptr(tls, stack, node) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_AFTER_ITERATION)) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_RECURSE)) + if status != REG_OK { + break + } + /* Regset is not empty, so add a tag here. */ + if **(**int32)(__ccgo_up(regset)) >= 0 || int32(uint32(*(*uint8)(unsafe.Pointer(iter + 16))&0x1>>0)) != 0 { + if !(first_pass != 0) { + status = _tre_add_tag_left(tls, mem, node, tag) + if int32(uint32(*(*uint8)(unsafe.Pointer(iter + 16))&0x1>>0)) != 0 { + **(**Ttre_tag_direction_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions + uintptr(tag)*4)) = int32(_TRE_TAG_MAXIMIZE) + } else { + **(**Ttre_tag_direction_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions + uintptr(tag)*4)) = direction + } + if minimal_tag >= 0 { + i4 = 0 + for { + if !(**(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i4)*4)) >= 0) { + break + } + goto _17 + _17: + ; + i4 = i4 + 1 + } + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i4)*4)) = tag + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i4+int32(1))*4)) = minimal_tag + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i4+int32(2))*4)) = -int32(1) + minimal_tag = -int32(1) + num_minimals = num_minimals + 1 + } + _tre_purge_regset(tls, regset, tnfa, tag) + } + **(**int32)(__ccgo_up(regset)) = -int32(1) + tag = next_tag + num_tags = num_tags + 1 + next_tag = next_tag + 1 + } + direction = int32(_TRE_TAG_MINIMIZE) + case int32(_UNION): + uni = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + left1 = (*Ttre_union_t)(unsafe.Pointer(uni)).Fleft + right1 = (*Ttre_union_t)(unsafe.Pointer(uni)).Fright + if **(**int32)(__ccgo_up(regset)) >= 0 { + left_tag = next_tag + right_tag = next_tag + int32(1) + } else { + left_tag = tag + right_tag = next_tag + } + /* After processing right child. */ + status = _tre_stack_push_int(tls, stack, right_tag) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, left_tag) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, regset) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, BoolInt32(**(**int32)(__ccgo_up(regset)) >= 0)) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, node) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, right1) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, left1) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_AFTER_UNION_RIGHT)) + if status != REG_OK { + break + } + /* Process right child. */ + status = _tre_stack_push_voidptr(tls, stack, right1) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_RECURSE)) + if status != REG_OK { + break + } + /* After processing left child. */ + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_AFTER_UNION_LEFT)) + if status != REG_OK { + break + } + /* Process left child. */ + status = _tre_stack_push_voidptr(tls, stack, left1) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_RECURSE)) + if status != REG_OK { + break + } + /* Regset is not empty, so add a tag here. */ + if **(**int32)(__ccgo_up(regset)) >= 0 { + if !(first_pass != 0) { + status = _tre_add_tag_left(tls, mem, node, tag) + **(**Ttre_tag_direction_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions + uintptr(tag)*4)) = direction + if minimal_tag >= 0 { + i5 = 0 + for { + if !(**(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i5)*4)) >= 0) { + break + } + goto _18 + _18: + ; + i5 = i5 + 1 + } + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i5)*4)) = tag + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i5+int32(1))*4)) = minimal_tag + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i5+int32(2))*4)) = -int32(1) + minimal_tag = -int32(1) + num_minimals = num_minimals + 1 + } + _tre_purge_regset(tls, regset, tnfa, tag) + } + **(**int32)(__ccgo_up(regset)) = -int32(1) + tag = next_tag + num_tags = num_tags + 1 + next_tag = next_tag + 1 + } + if (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_submatches > 0 { + /* The next two tags are reserved for markers. */ + next_tag = next_tag + 1 + tag = next_tag + next_tag = next_tag + 1 + } + break + } + if (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fsubmatch_id >= 0 { + /* Push this submatch on the parents stack. */ + i6 = 0 + for { + if !(**(**int32)(__ccgo_up(parents + uintptr(i6)*4)) >= 0) { + break + } + goto _19 + _19: + ; + i6 = i6 + 1 + } + **(**int32)(__ccgo_up(parents + uintptr(i6)*4)) = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fsubmatch_id + **(**int32)(__ccgo_up(parents + uintptr(i6+int32(1))*4)) = -int32(1) + } + goto _10 /* end case: ADDTAGS_RECURSE */ + _4: + ; + minimal = 0 + node = _tre_stack_pop_voidptr(tls, stack) + if first_pass != 0 { + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_tags = (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_iteration_t)(unsafe.Pointer((*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj)).Farg)).Fnum_tags + _tre_stack_pop_int(tls, stack) + minimal_tag = -int32(1) + } else { + minimal = _tre_stack_pop_int(tls, stack) + enter_tag = _tre_stack_pop_int(tls, stack) + if minimal != 0 { + minimal_tag = enter_tag + } + } + if !(first_pass != 0) { + if minimal != 0 { + direction = int32(_TRE_TAG_MINIMIZE) + } else { + direction = int32(_TRE_TAG_MAXIMIZE) + } + } + goto _10 + _5: + ; + new_tag = _tre_stack_pop_int(tls, stack) + next_tag = _tre_stack_pop_int(tls, stack) + if new_tag >= 0 { + tag = new_tag + } + goto _10 + _6: + ; + node = _tre_stack_pop_voidptr(tls, stack) + if first_pass != 0 { + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_tags = (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer((*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj)).Fleft)).Fnum_tags + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer((*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj)).Fright)).Fnum_tags + } + goto _10 + _7: + ; + /* Lift the bottom of the `regset' array so that when processing + the right operand the items currently in the array are + invisible. The original bottom was saved at ADDTAGS_UNION and + will be restored at ADDTAGS_AFTER_UNION_RIGHT below. */ + _21: + ; + if !(**(**int32)(__ccgo_up(regset)) >= 0) { + goto _20 + } + regset += 4 + goto _21 + _20: + ; + goto _10 + _8: + ; + left2 = _tre_stack_pop_voidptr(tls, stack) + right2 = _tre_stack_pop_voidptr(tls, stack) + node = _tre_stack_pop_voidptr(tls, stack) + added_tags = _tre_stack_pop_int(tls, stack) + if first_pass != 0 { + if (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_submatches > 0 { + v22 = int32(2) + } else { + v22 = 0 + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_tags = (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_union_t)(unsafe.Pointer((*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj)).Fleft)).Fnum_tags + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_union_t)(unsafe.Pointer((*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj)).Fright)).Fnum_tags + added_tags + v22 + } + regset = _tre_stack_pop_voidptr(tls, stack) + tag_left = _tre_stack_pop_int(tls, stack) + tag_right = _tre_stack_pop_int(tls, stack) + /* Add tags after both children, the left child gets a smaller + tag than the right child. This guarantees that we prefer + the left child over the right child. */ + /* XXX - This is not always necessary (if the children have + tags which must be seen for every match of that child). */ + /* XXX - Check if this is the only place where tre_add_tag_right + is used. If so, use tre_add_tag_left (putting the tag before + the child as opposed after the child) and throw away + tre_add_tag_right. */ + if (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_submatches > 0 { + if !(first_pass != 0) { + status = _tre_add_tag_right(tls, mem, left2, tag_left) + **(**Ttre_tag_direction_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions + uintptr(tag_left)*4)) = int32(_TRE_TAG_MAXIMIZE) + if status == REG_OK { + status = _tre_add_tag_right(tls, mem, right2, tag_right) + } + **(**Ttre_tag_direction_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions + uintptr(tag_right)*4)) = int32(_TRE_TAG_MAXIMIZE) + } + num_tags = num_tags + int32(2) + } + direction = int32(_TRE_TAG_MAXIMIZE) + goto _10 + _9: + ; + goto _10 + _10: + /* end switch(symbol) */ + } /* end while(tre_stack_num_objects(stack) > bottom) */ + if !(first_pass != 0) { + _tre_purge_regset(tls, regset, tnfa, tag) + } + if !(first_pass != 0) && minimal_tag >= 0 { + i7 = 0 + for { + if !(**(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i7)*4)) >= 0) { + break + } + goto _23 + _23: + ; + i7 = i7 + 1 + } + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i7)*4)) = tag + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i7+int32(1))*4)) = minimal_tag + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i7+int32(2))*4)) = -int32(1) + minimal_tag = -int32(1) + num_minimals = num_minimals + 1 + } + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fend_tag = num_tags + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags = num_tags + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_minimals = num_minimals + Xfree(tls, orig_regset) + Xfree(tls, parents) + Xfree(tls, saved_states) + return status +} + +/* + AST to TNFA compilation routines. +*/ + +type Ttre_copyast_symbol_t = int32 + +const _COPY_RECURSE = 0 +const _COPY_SET_RESULT_PTR = 1 + +/* Flags for tre_copy_ast(). */ + +func _tre_copy_ast(tls *TLS, mem Ttre_mem_t, stack uintptr, ast uintptr, flags int32, pos_add uintptr, tag_directions uintptr, copy1 uintptr, max_pos uintptr) (r Treg_errcode_t) { + var bottom, first_tag, max, min, num_copied, pos, v1 int32 + var cat, iter, lit, node, p, result, tmp, tmp1, uni uintptr + var status Treg_errcode_t + var symbol Ttre_copyast_symbol_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = bottom, cat, first_tag, iter, lit, max, min, node, num_copied, p, pos, result, status, symbol, tmp, tmp1, uni, v1 + status = REG_OK + bottom = _tre_stack_num_objects(tls, stack) + num_copied = 0 + first_tag = int32(1) + result = copy1 + status = _tre_stack_push_voidptr(tls, stack, ast) + status = _tre_stack_push_int(tls, stack, int32(_COPY_RECURSE)) + for status == REG_OK && _tre_stack_num_objects(tls, stack) > bottom { + if status != REG_OK { + break + } + symbol = _tre_stack_pop_int(tls, stack) + switch symbol { + case int32(_COPY_SET_RESULT_PTR): + result = _tre_stack_pop_voidptr(tls, stack) + case int32(_COPY_RECURSE): + node = _tre_stack_pop_voidptr(tls, stack) + switch (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 { + case int32(_LITERAL): + lit = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + pos = (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition + min = int32((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min) + max = int32((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max) + if !((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min < Int64FromInt32(0)) || (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min == int64(-int32(4)) { + /* XXX - e.g. [ab] has only one position but two + nodes, so we are creating holes in the state space + here. Not fatal, just wastes memory. */ + pos = pos + **(**int32)(__ccgo_up(pos_add)) + num_copied = num_copied + 1 + } else { + if (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min == int64(-int32(3)) && flags&int32(COPY_REMOVE_TAGS) != 0 { + /* Change this tag to empty. */ + min = -int32(1) + v1 = -Int32FromInt32(1) + pos = v1 + max = v1 + } else { + if (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min == int64(-int32(3)) && flags&int32(COPY_MAXIMIZE_FIRST_TAG) != 0 && first_tag != 0 { + /* Maximize the first tag. */ + **(**Ttre_tag_direction_t)(__ccgo_up(tag_directions + uintptr(max)*4)) = int32(_TRE_TAG_MAXIMIZE) + first_tag = 0 + } + } + } + **(**uintptr)(__ccgo_up(result)) = _tre_ast_new_literal(tls, mem, min, max, pos) + if **(**uintptr)(__ccgo_up(result)) == UintptrFromInt32(0) { + status = int32(REG_ESPACE) + } else { + p = (*Ttre_ast_node_t)(unsafe.Pointer(**(**uintptr)(__ccgo_up(result)))).Fobj + (*Ttre_literal_t)(unsafe.Pointer(p)).Fclass = (*Ttre_literal_t)(unsafe.Pointer(lit)).Fclass + (*Ttre_literal_t)(unsafe.Pointer(p)).Fneg_classes = (*Ttre_literal_t)(unsafe.Pointer(lit)).Fneg_classes + } + if pos > **(**int32)(__ccgo_up(max_pos)) { + **(**int32)(__ccgo_up(max_pos)) = pos + } + case int32(_UNION): + uni = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + **(**uintptr)(__ccgo_up(result)) = _tre_ast_new_union(tls, mem, (*Ttre_union_t)(unsafe.Pointer(uni)).Fleft, (*Ttre_union_t)(unsafe.Pointer(uni)).Fright) + if **(**uintptr)(__ccgo_up(result)) == UintptrFromInt32(0) { + status = int32(REG_ESPACE) + break + } + tmp = (*Ttre_ast_node_t)(unsafe.Pointer(**(**uintptr)(__ccgo_up(result)))).Fobj + result = tmp + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_union_t)(unsafe.Pointer(uni)).Fright) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_COPY_RECURSE)) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, tmp+8) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_COPY_SET_RESULT_PTR)) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_union_t)(unsafe.Pointer(uni)).Fleft) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_COPY_RECURSE)) + if status != REG_OK { + break + } + case int32(_CATENATION): + cat = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + **(**uintptr)(__ccgo_up(result)) = _tre_ast_new_catenation(tls, mem, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright) + if **(**uintptr)(__ccgo_up(result)) == UintptrFromInt32(0) { + status = int32(REG_ESPACE) + break + } + tmp1 = (*Ttre_ast_node_t)(unsafe.Pointer(**(**uintptr)(__ccgo_up(result)))).Fobj + (*Ttre_catenation_t)(unsafe.Pointer(tmp1)).Fleft = UintptrFromInt32(0) + (*Ttre_catenation_t)(unsafe.Pointer(tmp1)).Fright = UintptrFromInt32(0) + result = tmp1 + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_COPY_RECURSE)) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, tmp1+8) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_COPY_SET_RESULT_PTR)) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_COPY_RECURSE)) + if status != REG_OK { + break + } + case int32(_ITERATION): + iter = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_COPY_RECURSE)) + if status != REG_OK { + break + } + **(**uintptr)(__ccgo_up(result)) = _tre_ast_new_iter(tls, mem, (*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg, (*Ttre_iteration_t)(unsafe.Pointer(iter)).Fmin, (*Ttre_iteration_t)(unsafe.Pointer(iter)).Fmax, int32(uint32(*(*uint8)(unsafe.Pointer(iter + 16))&0x1>>0))) + if **(**uintptr)(__ccgo_up(result)) == UintptrFromInt32(0) { + status = int32(REG_ESPACE) + break + } + iter = (*Ttre_ast_node_t)(unsafe.Pointer(**(**uintptr)(__ccgo_up(result)))).Fobj + result = iter + default: + break + } + break + } + } + **(**int32)(__ccgo_up(pos_add)) += num_copied + return status +} + +type Ttre_expand_ast_symbol_t = int32 + +const _EXPAND_RECURSE = 0 +const _EXPAND_AFTER_ITER = 1 + +// C documentation +// +// /* Expands each iteration node that has a finite nonzero minimum or maximum +// iteration count to a catenated sequence of copies of the node. */ +func _tre_expand_ast(tls *TLS, mem Ttre_mem_t, stack uintptr, ast uintptr, position uintptr, tag_directions uintptr) (r Treg_errcode_t) { + bp := tls.Alloc(32) + defer tls.Free(32) + var _status, _status1, status Treg_errcode_t + var bottom, flags, iter_depth, j, pos_add_last, pos_add_save, pos_add_total, v2 int32 + var cat, iter, iter1, lit, node, seq1, tmp, uni uintptr + var symbol Ttre_expand_ast_symbol_t + var _ /* copy at bp+16 */ uintptr + var _ /* copy at bp+24 */ uintptr + var _ /* max_pos at bp+4 */ int32 + var _ /* pos_add at bp+0 */ int32 + var _ /* seq2 at bp+8 */ uintptr + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = _status, _status1, bottom, cat, flags, iter, iter1, iter_depth, j, lit, node, pos_add_last, pos_add_save, pos_add_total, seq1, status, symbol, tmp, uni, v2 + status = REG_OK + bottom = _tre_stack_num_objects(tls, stack) + **(**int32)(__ccgo_up(bp)) = 0 + pos_add_total = 0 + **(**int32)(__ccgo_up(bp + 4)) = 0 + iter_depth = 0 + _status = _tre_stack_push_voidptr(tls, stack, ast) + if _status != REG_OK { + return _status + } + _status1 = _tre_stack_push_int(tls, stack, int32(_EXPAND_RECURSE)) + if _status1 != REG_OK { + return _status1 + } + for status == REG_OK && _tre_stack_num_objects(tls, stack) > bottom { + if status != REG_OK { + break + } + symbol = _tre_stack_pop_int(tls, stack) + node = _tre_stack_pop_voidptr(tls, stack) + switch symbol { + case int32(_EXPAND_RECURSE): + switch (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 { + case int32(_LITERAL): + lit = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + if !((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min < Int64FromInt32(0)) || (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min == int64(-int32(4)) { + **(**int32)(__ccgo_up(lit + 16)) += **(**int32)(__ccgo_up(bp)) + if (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition > **(**int32)(__ccgo_up(bp + 4)) { + **(**int32)(__ccgo_up(bp + 4)) = (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition + } + } + case int32(_UNION): + uni = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_union_t)(unsafe.Pointer(uni)).Fright) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_EXPAND_RECURSE)) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_union_t)(unsafe.Pointer(uni)).Fleft) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_EXPAND_RECURSE)) + if status != REG_OK { + break + } + case int32(_CATENATION): + cat = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_EXPAND_RECURSE)) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_EXPAND_RECURSE)) + if status != REG_OK { + break + } + case int32(_ITERATION): + iter = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + status = _tre_stack_push_int(tls, stack, **(**int32)(__ccgo_up(bp))) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, node) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_EXPAND_AFTER_ITER)) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_EXPAND_RECURSE)) + if status != REG_OK { + break + } + /* If we are going to expand this node at EXPAND_AFTER_ITER + then don't increase the `pos' fields of the nodes now, it + will get done when expanding. */ + if (*Ttre_iteration_t)(unsafe.Pointer(iter)).Fmin > int32(1) || (*Ttre_iteration_t)(unsafe.Pointer(iter)).Fmax > int32(1) { + **(**int32)(__ccgo_up(bp)) = 0 + } + iter_depth = iter_depth + 1 + default: + break + } + case int32(_EXPAND_AFTER_ITER): + iter1 = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + **(**int32)(__ccgo_up(bp)) = _tre_stack_pop_int(tls, stack) + pos_add_last = **(**int32)(__ccgo_up(bp)) + if (*Ttre_iteration_t)(unsafe.Pointer(iter1)).Fmin > int32(1) || (*Ttre_iteration_t)(unsafe.Pointer(iter1)).Fmax > int32(1) { + seq1 = UintptrFromInt32(0) + **(**uintptr)(__ccgo_up(bp + 8)) = UintptrFromInt32(0) + pos_add_save = **(**int32)(__ccgo_up(bp)) + /* Create a catenated sequence of copies of the node. */ + j = 0 + for { + if !(j < (*Ttre_iteration_t)(unsafe.Pointer(iter1)).Fmin) { + break + } + if j+int32(1) < (*Ttre_iteration_t)(unsafe.Pointer(iter1)).Fmin { + v2 = int32(COPY_REMOVE_TAGS) + } else { + v2 = int32(COPY_MAXIMIZE_FIRST_TAG) + } + /* Remove tags from all but the last copy. */ + flags = v2 + pos_add_save = **(**int32)(__ccgo_up(bp)) + status = _tre_copy_ast(tls, mem, stack, (*Ttre_iteration_t)(unsafe.Pointer(iter1)).Farg, flags, bp, tag_directions, bp+16, bp+4) + if status != REG_OK { + return status + } + if seq1 != UintptrFromInt32(0) { + seq1 = _tre_ast_new_catenation(tls, mem, seq1, **(**uintptr)(__ccgo_up(bp + 16))) + } else { + seq1 = **(**uintptr)(__ccgo_up(bp + 16)) + } + if seq1 == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + goto _1 + _1: + ; + j = j + 1 + } + if (*Ttre_iteration_t)(unsafe.Pointer(iter1)).Fmax == -int32(1) { + /* No upper limit. */ + pos_add_save = **(**int32)(__ccgo_up(bp)) + status = _tre_copy_ast(tls, mem, stack, (*Ttre_iteration_t)(unsafe.Pointer(iter1)).Farg, 0, bp, UintptrFromInt32(0), bp+8, bp+4) + if status != REG_OK { + return status + } + **(**uintptr)(__ccgo_up(bp + 8)) = _tre_ast_new_iter(tls, mem, **(**uintptr)(__ccgo_up(bp + 8)), 0, -int32(1), 0) + if **(**uintptr)(__ccgo_up(bp + 8)) == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + } else { + j = (*Ttre_iteration_t)(unsafe.Pointer(iter1)).Fmin + for { + if !(j < (*Ttre_iteration_t)(unsafe.Pointer(iter1)).Fmax) { + break + } + pos_add_save = **(**int32)(__ccgo_up(bp)) + status = _tre_copy_ast(tls, mem, stack, (*Ttre_iteration_t)(unsafe.Pointer(iter1)).Farg, 0, bp, UintptrFromInt32(0), bp+24, bp+4) + if status != REG_OK { + return status + } + if **(**uintptr)(__ccgo_up(bp + 8)) != UintptrFromInt32(0) { + **(**uintptr)(__ccgo_up(bp + 8)) = _tre_ast_new_catenation(tls, mem, **(**uintptr)(__ccgo_up(bp + 24)), **(**uintptr)(__ccgo_up(bp + 8))) + } else { + **(**uintptr)(__ccgo_up(bp + 8)) = **(**uintptr)(__ccgo_up(bp + 24)) + } + if **(**uintptr)(__ccgo_up(bp + 8)) == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + tmp = _tre_ast_new_literal(tls, mem, -int32(1), -int32(1), -int32(1)) + if tmp == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + **(**uintptr)(__ccgo_up(bp + 8)) = _tre_ast_new_union(tls, mem, tmp, **(**uintptr)(__ccgo_up(bp + 8))) + if **(**uintptr)(__ccgo_up(bp + 8)) == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + goto _3 + _3: + ; + j = j + 1 + } + } + **(**int32)(__ccgo_up(bp)) = pos_add_save + if seq1 == UintptrFromInt32(0) { + seq1 = **(**uintptr)(__ccgo_up(bp + 8)) + } else { + if **(**uintptr)(__ccgo_up(bp + 8)) != UintptrFromInt32(0) { + seq1 = _tre_ast_new_catenation(tls, mem, seq1, **(**uintptr)(__ccgo_up(bp + 8))) + } + } + if seq1 == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj = (*Ttre_ast_node_t)(unsafe.Pointer(seq1)).Fobj + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 = (*Ttre_ast_node_t)(unsafe.Pointer(seq1)).Ftype1 + } + iter_depth = iter_depth - 1 + pos_add_total = pos_add_total + (**(**int32)(__ccgo_up(bp)) - pos_add_last) + if iter_depth == 0 { + **(**int32)(__ccgo_up(bp)) = pos_add_total + } + default: + break + } + } + **(**int32)(__ccgo_up(position)) += pos_add_total + /* `max_pos' should never be larger than `*position' if the above + code works, but just an extra safeguard let's make sure + `*position' is set large enough so enough memory will be + allocated for the transition table. */ + if **(**int32)(__ccgo_up(bp + 4)) > **(**int32)(__ccgo_up(position)) { + **(**int32)(__ccgo_up(position)) = **(**int32)(__ccgo_up(bp + 4)) + } + return status +} + +func _tre_set_empty(tls *TLS, mem Ttre_mem_t) (r uintptr) { + var new_set uintptr + _ = new_set + new_set = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), int32(1), uint64(56)) + if new_set == UintptrFromInt32(0) { + return UintptrFromInt32(0) + } + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set))).Fposition = -int32(1) + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set))).Fcode_min = -int32(1) + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set))).Fcode_max = -int32(1) + return new_set +} + +func _tre_set_one(tls *TLS, mem Ttre_mem_t, position int32, code_min int32, code_max int32, class Ttre_ctype_t, neg_classes uintptr, backref int32) (r uintptr) { + var new_set uintptr + _ = new_set + new_set = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), int32(1), Uint64FromInt64(56)*Uint64FromInt32(2)) + if new_set == UintptrFromInt32(0) { + return UintptrFromInt32(0) + } + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set))).Fposition = position + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set))).Fcode_min = code_min + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set))).Fcode_max = code_max + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set))).Fclass = class + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set))).Fneg_classes = neg_classes + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set))).Fbackref = backref + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + 1*56))).Fposition = -int32(1) + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + 1*56))).Fcode_min = -int32(1) + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + 1*56))).Fcode_max = -int32(1) + return new_set +} + +func _tre_set_union(tls *TLS, mem Ttre_mem_t, set1 uintptr, set2 uintptr, tags uintptr, assertions int32) (r uintptr) { + var i, j, num_tags, s1, s2 int32 + var new_set, new_tags uintptr + _, _, _, _, _, _, _ = i, j, new_set, new_tags, num_tags, s1, s2 + num_tags = 0 + for { + if !(tags != UintptrFromInt32(0) && **(**int32)(__ccgo_up(tags + uintptr(num_tags)*4)) >= 0) { + break + } + goto _1 + _1: + ; + num_tags = num_tags + 1 + } + s1 = 0 + for { + if !((**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*56))).Fposition >= 0) { + break + } + goto _2 + _2: + ; + s1 = s1 + 1 + } + s2 = 0 + for { + if !((**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*56))).Fposition >= 0) { + break + } + goto _3 + _3: + ; + s2 = s2 + 1 + } + new_set = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), int32(1), uint64(56)*Uint64FromInt32(s1+s2+Int32FromInt32(1))) + if !(new_set != 0) { + return UintptrFromInt32(0) + } + s1 = 0 + for { + if !((**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*56))).Fposition >= 0) { + break + } + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1)*56))).Fposition = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*56))).Fposition + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1)*56))).Fcode_min = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*56))).Fcode_min + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1)*56))).Fcode_max = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*56))).Fcode_max + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1)*56))).Fassertions = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*56))).Fassertions | assertions + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1)*56))).Fclass = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*56))).Fclass + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1)*56))).Fneg_classes = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*56))).Fneg_classes + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1)*56))).Fbackref = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*56))).Fbackref + if (**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*56))).Ftags == UintptrFromInt32(0) && tags == UintptrFromInt32(0) { + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1)*56))).Ftags = UintptrFromInt32(0) + } else { + i = 0 + for { + if !((**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*56))).Ftags != UintptrFromInt32(0) && **(**int32)(__ccgo_up((**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*56))).Ftags + uintptr(i)*4)) >= 0) { + break + } + goto _5 + _5: + ; + i = i + 1 + } + new_tags = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, Uint64FromInt64(4)*Uint64FromInt32(i+num_tags+Int32FromInt32(1))) + if new_tags == UintptrFromInt32(0) { + return UintptrFromInt32(0) + } + j = 0 + for { + if !(j < i) { + break + } + **(**int32)(__ccgo_up(new_tags + uintptr(j)*4)) = **(**int32)(__ccgo_up((**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*56))).Ftags + uintptr(j)*4)) + goto _6 + _6: + ; + j = j + 1 + } + i = 0 + for { + if !(i < num_tags) { + break + } + **(**int32)(__ccgo_up(new_tags + uintptr(j+i)*4)) = **(**int32)(__ccgo_up(tags + uintptr(i)*4)) + goto _7 + _7: + ; + i = i + 1 + } + **(**int32)(__ccgo_up(new_tags + uintptr(j+i)*4)) = -int32(1) + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1)*56))).Ftags = new_tags + } + goto _4 + _4: + ; + s1 = s1 + 1 + } + s2 = 0 + for { + if !((**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*56))).Fposition >= 0) { + break + } + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1+s2)*56))).Fposition = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*56))).Fposition + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1+s2)*56))).Fcode_min = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*56))).Fcode_min + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1+s2)*56))).Fcode_max = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*56))).Fcode_max + /* XXX - why not | assertions here as well? */ + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1+s2)*56))).Fassertions = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*56))).Fassertions + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1+s2)*56))).Fclass = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*56))).Fclass + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1+s2)*56))).Fneg_classes = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*56))).Fneg_classes + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1+s2)*56))).Fbackref = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*56))).Fbackref + if (**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*56))).Ftags == UintptrFromInt32(0) { + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1+s2)*56))).Ftags = UintptrFromInt32(0) + } else { + i = 0 + for { + if !(**(**int32)(__ccgo_up((**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*56))).Ftags + uintptr(i)*4)) >= 0) { + break + } + goto _9 + _9: + ; + i = i + 1 + } + new_tags = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint64(4)*Uint64FromInt32(i+Int32FromInt32(1))) + if new_tags == UintptrFromInt32(0) { + return UintptrFromInt32(0) + } + j = 0 + for { + if !(j < i) { + break + } + **(**int32)(__ccgo_up(new_tags + uintptr(j)*4)) = **(**int32)(__ccgo_up((**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*56))).Ftags + uintptr(j)*4)) + goto _10 + _10: + ; + j = j + 1 + } + **(**int32)(__ccgo_up(new_tags + uintptr(j)*4)) = -int32(1) + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1+s2)*56))).Ftags = new_tags + } + goto _8 + _8: + ; + s2 = s2 + 1 + } + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1+s2)*56))).Fposition = -int32(1) + return new_set +} + +// C documentation +// +// /* Finds the empty path through `node' which is the one that should be +// taken according to POSIX.2 rules, and adds the tags on that path to +// `tags'. `tags' may be NULL. If `num_tags_seen' is not NULL, it is +// set to the number of tags seen on the path. */ +func _tre_match_empty(tls *TLS, stack uintptr, node uintptr, tags uintptr, assertions uintptr, num_tags_seen uintptr) (r Treg_errcode_t) { + var bottom, i int32 + var cat, iter, lit, uni, v2 uintptr + var status Treg_errcode_t + _, _, _, _, _, _, _, _ = bottom, cat, i, iter, lit, status, uni, v2 + bottom = _tre_stack_num_objects(tls, stack) + status = REG_OK + if num_tags_seen != 0 { + **(**int32)(__ccgo_up(num_tags_seen)) = 0 + } + status = _tre_stack_push_voidptr(tls, stack, node) + /* Walk through the tree recursively. */ + for status == REG_OK && _tre_stack_num_objects(tls, stack) > bottom { + node = _tre_stack_pop_voidptr(tls, stack) + switch (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 { + case int32(_LITERAL): + lit = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + switch (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min { + case int64(-int32(3)): + if (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max >= 0 { + if tags != UintptrFromInt32(0) { + /* Add the tag to `tags'. */ + i = 0 + for { + if !(**(**int32)(__ccgo_up(tags + uintptr(i)*4)) >= 0) { + break + } + if int64(**(**int32)(__ccgo_up(tags + uintptr(i)*4))) == (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max { + break + } + goto _1 + _1: + ; + i = i + 1 + } + if **(**int32)(__ccgo_up(tags + uintptr(i)*4)) < 0 { + **(**int32)(__ccgo_up(tags + uintptr(i)*4)) = int32((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max) + **(**int32)(__ccgo_up(tags + uintptr(i+int32(1))*4)) = -int32(1) + } + } + if num_tags_seen != 0 { + **(**int32)(__ccgo_up(num_tags_seen)) = **(**int32)(__ccgo_up(num_tags_seen)) + 1 + } + } + case int64(-int32(2)): + if assertions != UintptrFromInt32(0) { + v2 = assertions + *(*int32)(unsafe.Pointer(v2)) = int32(int64(*(*int32)(unsafe.Pointer(v2))) | (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max) + } + case int64(-int32(1)): + default: + break + } + case int32(_UNION): + /* Subexpressions starting earlier take priority over ones + starting later, so we prefer the left subexpression over the + right subexpression. */ + uni = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + if (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_union_t)(unsafe.Pointer(uni)).Fleft)).Fnullable != 0 { + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_union_t)(unsafe.Pointer(uni)).Fleft) + if status != REG_OK { + break + } + } else { + if (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_union_t)(unsafe.Pointer(uni)).Fright)).Fnullable != 0 { + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_union_t)(unsafe.Pointer(uni)).Fright) + if status != REG_OK { + break + } + } else { + } + } + case int32(_CATENATION): + /* The path must go through both children. */ + cat = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright) + if status != REG_OK { + break + } + case int32(_ITERATION): + /* A match with an empty string is preferred over no match at + all, so we go through the argument if possible. */ + iter = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + if (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg)).Fnullable != 0 { + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg) + if status != REG_OK { + break + } + } + default: + break + } + } + return status +} + +type Ttre_nfl_stack_symbol_t = int32 + +const _NFL_RECURSE = 0 +const _NFL_POST_UNION = 1 +const _NFL_POST_CATENATION = 2 +const _NFL_POST_ITERATION = 3 + +// C documentation +// +// /* Computes and fills in the fields `nullable', `firstpos', and `lastpos' for +// the nodes of the AST `tree'. */ +func _tre_compute_nfl(tls *TLS, mem Ttre_mem_t, stack uintptr, tree uintptr) (r Treg_errcode_t) { + bp := tls.Alloc(16) + defer tls.Free(16) + var _status, _status1, _status10, _status11, _status12, _status13, _status14, _status15, _status16, _status17, _status2, _status3, _status4, _status5, _status6, _status7, _status8, _status9, status Treg_errcode_t + var bottom int32 + var cat, iter, lit, node, tags, uni uintptr + var symbol Ttre_nfl_stack_symbol_t + var _ /* assertions at bp+4 */ int32 + var _ /* num_tags at bp+0 */ int32 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = _status, _status1, _status10, _status11, _status12, _status13, _status14, _status15, _status16, _status17, _status2, _status3, _status4, _status5, _status6, _status7, _status8, _status9, bottom, cat, iter, lit, node, status, symbol, tags, uni + bottom = _tre_stack_num_objects(tls, stack) + _status = _tre_stack_push_voidptr(tls, stack, tree) + if _status != REG_OK { + return _status + } + _status1 = _tre_stack_push_int(tls, stack, int32(_NFL_RECURSE)) + if _status1 != REG_OK { + return _status1 + } + for _tre_stack_num_objects(tls, stack) > bottom { + symbol = _tre_stack_pop_int(tls, stack) + node = _tre_stack_pop_voidptr(tls, stack) + switch symbol { + case int32(_NFL_RECURSE): + switch (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 { + case int32(_LITERAL): + lit = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + if (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min == int64(-int32(4)) { + /* Back references: nullable = false, firstpos = {i}, + lastpos = {i}. */ + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnullable = 0 + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos = _tre_set_one(tls, mem, (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition, 0, int32(TRE_CHAR_MAX), uint64(0), UintptrFromInt32(0), -int32(1)) + if !((*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos != 0) { + return int32(REG_ESPACE) + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos = _tre_set_one(tls, mem, (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition, 0, int32(TRE_CHAR_MAX), uint64(0), UintptrFromInt32(0), int32((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max)) + if !((*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos != 0) { + return int32(REG_ESPACE) + } + } else { + if (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min < 0 { + /* Tags, empty strings, params, and zero width assertions: + nullable = true, firstpos = {}, and lastpos = {}. */ + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnullable = int32(1) + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos = _tre_set_empty(tls, mem) + if !((*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos != 0) { + return int32(REG_ESPACE) + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos = _tre_set_empty(tls, mem) + if !((*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos != 0) { + return int32(REG_ESPACE) + } + } else { + /* Literal at position i: nullable = false, firstpos = {i}, + lastpos = {i}. */ + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnullable = 0 + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos = _tre_set_one(tls, mem, (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition, int32((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min), int32((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max), uint64(0), UintptrFromInt32(0), -int32(1)) + if !((*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos != 0) { + return int32(REG_ESPACE) + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos = _tre_set_one(tls, mem, (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition, int32((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min), int32((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max), (*Ttre_literal_t)(unsafe.Pointer(lit)).Fclass, (*Ttre_literal_t)(unsafe.Pointer(lit)).Fneg_classes, -int32(1)) + if !((*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos != 0) { + return int32(REG_ESPACE) + } + } + } + case int32(_UNION): + /* Compute the attributes for the two subtrees, and after that + for this node. */ + _status2 = _tre_stack_push_voidptr(tls, stack, node) + if _status2 != REG_OK { + return _status2 + } + _status3 = _tre_stack_push_int(tls, stack, int32(_NFL_POST_UNION)) + if _status3 != REG_OK { + return _status3 + } + _status4 = _tre_stack_push_voidptr(tls, stack, (*Ttre_union_t)(unsafe.Pointer((*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj)).Fright) + if _status4 != REG_OK { + return _status4 + } + _status5 = _tre_stack_push_int(tls, stack, int32(_NFL_RECURSE)) + if _status5 != REG_OK { + return _status5 + } + _status6 = _tre_stack_push_voidptr(tls, stack, (*Ttre_union_t)(unsafe.Pointer((*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj)).Fleft) + if _status6 != REG_OK { + return _status6 + } + _status7 = _tre_stack_push_int(tls, stack, int32(_NFL_RECURSE)) + if _status7 != REG_OK { + return _status7 + } + case int32(_CATENATION): + /* Compute the attributes for the two subtrees, and after that + for this node. */ + _status8 = _tre_stack_push_voidptr(tls, stack, node) + if _status8 != REG_OK { + return _status8 + } + _status9 = _tre_stack_push_int(tls, stack, int32(_NFL_POST_CATENATION)) + if _status9 != REG_OK { + return _status9 + } + _status10 = _tre_stack_push_voidptr(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer((*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj)).Fright) + if _status10 != REG_OK { + return _status10 + } + _status11 = _tre_stack_push_int(tls, stack, int32(_NFL_RECURSE)) + if _status11 != REG_OK { + return _status11 + } + _status12 = _tre_stack_push_voidptr(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer((*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj)).Fleft) + if _status12 != REG_OK { + return _status12 + } + _status13 = _tre_stack_push_int(tls, stack, int32(_NFL_RECURSE)) + if _status13 != REG_OK { + return _status13 + } + case int32(_ITERATION): + /* Compute the attributes for the subtree, and after that for + this node. */ + _status14 = _tre_stack_push_voidptr(tls, stack, node) + if _status14 != REG_OK { + return _status14 + } + _status15 = _tre_stack_push_int(tls, stack, int32(_NFL_POST_ITERATION)) + if _status15 != REG_OK { + return _status15 + } + _status16 = _tre_stack_push_voidptr(tls, stack, (*Ttre_iteration_t)(unsafe.Pointer((*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj)).Farg) + if _status16 != REG_OK { + return _status16 + } + _status17 = _tre_stack_push_int(tls, stack, int32(_NFL_RECURSE)) + if _status17 != REG_OK { + return _status17 + } + break + } + case int32(_NFL_POST_UNION): + uni = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnullable = BoolInt32((*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_union_t)(unsafe.Pointer(uni)).Fleft)).Fnullable != 0 || (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_union_t)(unsafe.Pointer(uni)).Fright)).Fnullable != 0) + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos = _tre_set_union(tls, mem, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_union_t)(unsafe.Pointer(uni)).Fleft)).Ffirstpos, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_union_t)(unsafe.Pointer(uni)).Fright)).Ffirstpos, UintptrFromInt32(0), 0) + if !((*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos != 0) { + return int32(REG_ESPACE) + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos = _tre_set_union(tls, mem, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_union_t)(unsafe.Pointer(uni)).Fleft)).Flastpos, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_union_t)(unsafe.Pointer(uni)).Fright)).Flastpos, UintptrFromInt32(0), 0) + if !((*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos != 0) { + return int32(REG_ESPACE) + } + case int32(_NFL_POST_ITERATION): + iter = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + if (*Ttre_iteration_t)(unsafe.Pointer(iter)).Fmin == 0 || (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg)).Fnullable != 0 { + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnullable = int32(1) + } else { + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnullable = 0 + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos = (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg)).Ffirstpos + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos = (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg)).Flastpos + case int32(_NFL_POST_CATENATION): + cat = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnullable = BoolInt32((*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft)).Fnullable != 0 && (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright)).Fnullable != 0) + /* Compute firstpos. */ + if (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft)).Fnullable != 0 { + /* The left side matches the empty string. Make a first pass + with tre_match_empty() to get the number of tags and + parameters. */ + status = _tre_match_empty(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft, UintptrFromInt32(0), UintptrFromInt32(0), bp) + if status != REG_OK { + return status + } + /* Allocate arrays for the tags and parameters. */ + tags = Xmalloc(tls, uint64(4)*Uint64FromInt32(**(**int32)(__ccgo_up(bp))+Int32FromInt32(1))) + if !(tags != 0) { + return int32(REG_ESPACE) + } + **(**int32)(__ccgo_up(tags)) = -int32(1) + **(**int32)(__ccgo_up(bp + 4)) = 0 + /* Second pass with tre_mach_empty() to get the list of + tags and parameters. */ + status = _tre_match_empty(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft, tags, bp+4, UintptrFromInt32(0)) + if status != REG_OK { + Xfree(tls, tags) + return status + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos = _tre_set_union(tls, mem, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright)).Ffirstpos, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft)).Ffirstpos, tags, **(**int32)(__ccgo_up(bp + 4))) + Xfree(tls, tags) + if !((*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos != 0) { + return int32(REG_ESPACE) + } + } else { + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos = (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft)).Ffirstpos + } + /* Compute lastpos. */ + if (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright)).Fnullable != 0 { + /* The right side matches the empty string. Make a first pass + with tre_match_empty() to get the number of tags and + parameters. */ + status = _tre_match_empty(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright, UintptrFromInt32(0), UintptrFromInt32(0), bp) + if status != REG_OK { + return status + } + /* Allocate arrays for the tags and parameters. */ + tags = Xmalloc(tls, uint64(4)*Uint64FromInt32(**(**int32)(__ccgo_up(bp))+Int32FromInt32(1))) + if !(tags != 0) { + return int32(REG_ESPACE) + } + **(**int32)(__ccgo_up(tags)) = -int32(1) + **(**int32)(__ccgo_up(bp + 4)) = 0 + /* Second pass with tre_mach_empty() to get the list of + tags and parameters. */ + status = _tre_match_empty(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright, tags, bp+4, UintptrFromInt32(0)) + if status != REG_OK { + Xfree(tls, tags) + return status + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos = _tre_set_union(tls, mem, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft)).Flastpos, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright)).Flastpos, tags, **(**int32)(__ccgo_up(bp + 4))) + Xfree(tls, tags) + if !((*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos != 0) { + return int32(REG_ESPACE) + } + } else { + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos = (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright)).Flastpos + } + default: + break + } + } + return REG_OK +} + +// C documentation +// +// /* Adds a transition from each position in `p1' to each position in `p2'. */ +func _tre_make_trans(tls *TLS, p1 uintptr, p2 uintptr, transitions uintptr, counts uintptr, offs uintptr) (r Treg_errcode_t) { + var dup, i, j, k, l, prev_p2_pos, v1, v2 int32 + var orig_p2, trans uintptr + _, _, _, _, _, _, _, _, _, _ = dup, i, j, k, l, orig_p2, prev_p2_pos, trans, v1, v2 + orig_p2 = p2 + if transitions != UintptrFromInt32(0) { + for (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fposition >= 0 { + p2 = orig_p2 + prev_p2_pos = -int32(1) + for (*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Fposition >= 0 { + /* Optimization: if this position was already handled, skip it. */ + if (*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Fposition == prev_p2_pos { + p2 += 56 + continue + } + prev_p2_pos = (*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Fposition + /* Set `trans' to point to the next unused transition from + position `p1->position'. */ + trans = transitions + uintptr(**(**int32)(__ccgo_up(offs + uintptr((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fposition)*4)))*56 + for (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fstate != UintptrFromInt32(0) { + trans += 56 + } + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fstate == UintptrFromInt32(0) { + (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans + UintptrFromInt32(1)*56)).Fstate = UintptrFromInt32(0) + } + /* Use the character ranges, assertions, etc. from `p1' for + the transition from `p1' to `p2'. */ + (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fcode_min = Uint32FromInt32((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fcode_min) + (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fcode_max = Uint32FromInt32((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fcode_max) + (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fstate = transitions + uintptr(**(**int32)(__ccgo_up(offs + uintptr((*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Fposition)*4)))*56 + (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fstate_id = (*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Fposition + if (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fclass != 0 { + v1 = int32(ASSERT_CHAR_CLASS) + } else { + v1 = 0 + } + if (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fneg_classes != UintptrFromInt32(0) { + v2 = int32(ASSERT_CHAR_CLASS_NEG) + } else { + v2 = 0 + } + (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fassertions = (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fassertions | (*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Fassertions | v1 | v2 + if (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fbackref >= 0 { + *(*int32)(unsafe.Pointer(&(*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fu)) = (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fbackref + **(**int32)(__ccgo_up(trans + 32)) |= int32(ASSERT_BACKREF) + } else { + *(*Ttre_ctype_t)(unsafe.Pointer(trans + 40)) = (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fclass + } + if (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fneg_classes != UintptrFromInt32(0) { + i = 0 + for { + if !(**(**Ttre_ctype_t)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fneg_classes + uintptr(i)*8)) != Uint64FromInt32(0)) { + break + } + goto _3 + _3: + ; + i = i + 1 + } + (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fneg_classes = Xmalloc(tls, uint64(8)*Uint64FromInt32(i+Int32FromInt32(1))) + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fneg_classes == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + i = 0 + for { + if !(**(**Ttre_ctype_t)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fneg_classes + uintptr(i)*8)) != Uint64FromInt32(0)) { + break + } + **(**Ttre_ctype_t)(__ccgo_up((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fneg_classes + uintptr(i)*8)) = **(**Ttre_ctype_t)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fneg_classes + uintptr(i)*8)) + goto _4 + _4: + ; + i = i + 1 + } + **(**Ttre_ctype_t)(__ccgo_up((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fneg_classes + uintptr(i)*8)) = Uint64FromInt32(0) + } else { + (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fneg_classes = UintptrFromInt32(0) + } + /* Find out how many tags this transition has. */ + i = 0 + if (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Ftags != UintptrFromInt32(0) { + for **(**int32)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Ftags + uintptr(i)*4)) >= 0 { + i = i + 1 + } + } + j = 0 + if (*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Ftags != UintptrFromInt32(0) { + for **(**int32)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Ftags + uintptr(j)*4)) >= 0 { + j = j + 1 + } + } + /* If we are overwriting a transition, free the old tag array. */ + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags != UintptrFromInt32(0) { + Xfree(tls, (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags) + } + (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags = UintptrFromInt32(0) + /* If there were any tags, allocate an array and fill it. */ + if i+j > 0 { + (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags = Xmalloc(tls, uint64(4)*Uint64FromInt32(i+j+Int32FromInt32(1))) + if !((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags != 0) { + return int32(REG_ESPACE) + } + i = 0 + if (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Ftags != UintptrFromInt32(0) { + for **(**int32)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Ftags + uintptr(i)*4)) >= 0 { + **(**int32)(__ccgo_up((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags + uintptr(i)*4)) = **(**int32)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Ftags + uintptr(i)*4)) + i = i + 1 + } + } + l = i + j = 0 + if (*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Ftags != UintptrFromInt32(0) { + for **(**int32)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Ftags + uintptr(j)*4)) >= 0 { + /* Don't add duplicates. */ + dup = 0 + k = 0 + for { + if !(k < i) { + break + } + if **(**int32)(__ccgo_up((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags + uintptr(k)*4)) == **(**int32)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Ftags + uintptr(j)*4)) { + dup = int32(1) + break + } + goto _5 + _5: + ; + k = k + 1 + } + if !(dup != 0) { + v1 = l + l = l + 1 + **(**int32)(__ccgo_up((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags + uintptr(v1)*4)) = **(**int32)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Ftags + uintptr(j)*4)) + } + j = j + 1 + } + } + **(**int32)(__ccgo_up((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags + uintptr(l)*4)) = -int32(1) + } + p2 += 56 + } + p1 += 56 + } + } else { + /* Compute a maximum limit for the number of transitions leaving + from each state. */ + for (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fposition >= 0 { + p2 = orig_p2 + for (*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Fposition >= 0 { + **(**int32)(__ccgo_up(counts + uintptr((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fposition)*4)) = **(**int32)(__ccgo_up(counts + uintptr((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fposition)*4)) + 1 + p2 += 56 + } + p1 += 56 + } + } + return REG_OK +} + +// C documentation +// +// /* Converts the syntax tree to a TNFA. All the transitions in the TNFA are +// labelled with one character range (there are no transitions on empty +// strings). The TNFA takes O(n^2) space in the worst case, `n' is size of +// the regexp. */ +func _tre_ast_to_tnfa(tls *TLS, node uintptr, transitions uintptr, counts uintptr, offs uintptr) (r Treg_errcode_t) { + var cat, iter, uni uintptr + var errcode Treg_errcode_t + _, _, _, _ = cat, errcode, iter, uni + errcode = REG_OK + /* XXX - recurse using a stack!. */ + switch (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 { + case int32(_LITERAL): + case int32(_UNION): + uni = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + errcode = _tre_ast_to_tnfa(tls, (*Ttre_union_t)(unsafe.Pointer(uni)).Fleft, transitions, counts, offs) + if errcode != REG_OK { + return errcode + } + errcode = _tre_ast_to_tnfa(tls, (*Ttre_union_t)(unsafe.Pointer(uni)).Fright, transitions, counts, offs) + case int32(_CATENATION): + cat = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + /* Add a transition from each position in cat->left->lastpos + to each position in cat->right->firstpos. */ + errcode = _tre_make_trans(tls, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft)).Flastpos, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright)).Ffirstpos, transitions, counts, offs) + if errcode != REG_OK { + return errcode + } + errcode = _tre_ast_to_tnfa(tls, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft, transitions, counts, offs) + if errcode != REG_OK { + return errcode + } + errcode = _tre_ast_to_tnfa(tls, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright, transitions, counts, offs) + case int32(_ITERATION): + iter = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + if (*Ttre_iteration_t)(unsafe.Pointer(iter)).Fmax == -int32(1) { + /* Add a transition from each last position in the iterated + expression to each first position. */ + errcode = _tre_make_trans(tls, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg)).Flastpos, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg)).Ffirstpos, transitions, counts, offs) + if errcode != REG_OK { + return errcode + } + } + errcode = _tre_ast_to_tnfa(tls, (*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg, transitions, counts, offs) + break + } + return errcode +} + +func Xregcomp(tls *TLS, preg uintptr, regex uintptr, cflags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v preg=%v regex=%v cflags=%v, (%v:)", tls, preg, regex, cflags, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var add, i, j, v1 int32 + var counts, initial, offs, p, stack, submatch_data, tag_directions, tmp_ast_l, tmp_ast_r, tnfa, transitions, tree, v2 uintptr + var errcode Treg_errcode_t + var mem Ttre_mem_t + var _ /* parse_ctx at bp+0 */ Ttre_parse_ctx_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = add, counts, errcode, i, initial, j, mem, offs, p, stack, submatch_data, tag_directions, tmp_ast_l, tmp_ast_r, tnfa, transitions, tree, v1, v2 + counts = UintptrFromInt32(0) + offs = UintptrFromInt32(0) + add = 0 + tnfa = UintptrFromInt32(0) + tag_directions = UintptrFromInt32(0) + /* Allocate a stack used throughout the compilation process for various + purposes. */ + stack = _tre_stack_new(tls, int32(512), int32(1024000), int32(128)) + if !(stack != 0) { + return int32(REG_ESPACE) + } + /* Allocate a fast memory allocator. */ + mem = X__tre_mem_new_impl(tls, 0, UintptrFromInt32(0)) + if !(mem != 0) { + _tre_stack_destroy(tls, stack) + return int32(REG_ESPACE) + } + /* Parse the regexp. */ + Xmemset(tls, bp, 0, uint64(56)) + (**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fmem = mem + (**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fstack = stack + (**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fstart = regex + (**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fcflags = cflags + (**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fmax_backref = -int32(1) + errcode = _tre_parse(tls, bp) + if errcode != REG_OK { + errcode = errcode + if int32(1) != 0 { + goto error_exit + } + } + (*Tregex_t)(unsafe.Pointer(preg)).Fre_nsub = Uint64FromInt32((**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fsubmatch_id - int32(1)) + tree = (**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fn + /* Referring to nonexistent subexpressions is illegal. */ + if (**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fmax_backref > Int32FromUint64((*Tregex_t)(unsafe.Pointer(preg)).Fre_nsub) { + errcode = int32(REG_ESUBREG) + if int32(1) != 0 { + goto error_exit + } + } + /* Allocate the TNFA struct. */ + tnfa = Xcalloc(tls, uint64(1), uint64(104)) + if tnfa == UintptrFromInt32(0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fhave_backrefs = BoolInt32((**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fmax_backref >= 0) + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fhave_approx = 0 + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_submatches = Uint32FromInt32((**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fsubmatch_id) + /* Set up tags for submatch addressing. If REG_NOSUB is set and the + regexp does not have back references, this can be skipped. */ + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fhave_backrefs != 0 || !(cflags&Int32FromInt32(REG_NOSUB) != 0) { + /* Figure out how many tags we will need. */ + errcode = _tre_add_tags(tls, UintptrFromInt32(0), stack, tree, tnfa) + if errcode != REG_OK { + errcode = errcode + if int32(1) != 0 { + goto error_exit + } + } + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags > 0 { + tag_directions = Xmalloc(tls, uint64(4)*Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags+Int32FromInt32(1))) + if tag_directions == UintptrFromInt32(0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions = tag_directions + Xmemset(tls, tag_directions, -int32(1), uint64(4)*Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags+Int32FromInt32(1))) + } + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags = Xcalloc(tls, uint64(Uint32FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags)*uint32(2)+uint32(1)), uint64(4)) + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags == UintptrFromInt32(0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + submatch_data = Xcalloc(tls, uint64(Uint32FromInt32((**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fsubmatch_id)), uint64(16)) + if submatch_data == UintptrFromInt32(0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fsubmatch_data = submatch_data + errcode = _tre_add_tags(tls, mem, stack, tree, tnfa) + if errcode != REG_OK { + errcode = errcode + if int32(1) != 0 { + goto error_exit + } + } + } + /* Expand iteration nodes. */ + errcode = _tre_expand_ast(tls, mem, stack, tree, bp+44, tag_directions) + if errcode != REG_OK { + errcode = errcode + if int32(1) != 0 { + goto error_exit + } + } + /* Add a dummy node for the final state. + XXX - For certain patterns this dummy node can be optimized away, + for example "a*" or "ab*". Figure out a simple way to detect + this possibility. */ + tmp_ast_l = tree + v2 = bp + 44 + v1 = *(*int32)(unsafe.Pointer(v2)) + *(*int32)(unsafe.Pointer(v2)) = *(*int32)(unsafe.Pointer(v2)) + 1 + tmp_ast_r = _tre_ast_new_literal(tls, mem, 0, 0, v1) + if tmp_ast_r == UintptrFromInt32(0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + tree = _tre_ast_new_catenation(tls, mem, tmp_ast_l, tmp_ast_r) + if tree == UintptrFromInt32(0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + errcode = _tre_compute_nfl(tls, mem, stack, tree) + if errcode != REG_OK { + errcode = errcode + if int32(1) != 0 { + goto error_exit + } + } + counts = Xmalloc(tls, uint64(4)*Uint64FromInt32((**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fposition)) + if counts == UintptrFromInt32(0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + offs = Xmalloc(tls, uint64(4)*Uint64FromInt32((**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fposition)) + if offs == UintptrFromInt32(0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + i = 0 + for { + if !(i < (**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fposition) { + break + } + **(**int32)(__ccgo_up(counts + uintptr(i)*4)) = 0 + goto _3 + _3: + ; + i = i + 1 + } + _tre_ast_to_tnfa(tls, tree, UintptrFromInt32(0), counts, UintptrFromInt32(0)) + add = 0 + i = 0 + for { + if !(i < (**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fposition) { + break + } + **(**int32)(__ccgo_up(offs + uintptr(i)*4)) = add + add = add + (**(**int32)(__ccgo_up(counts + uintptr(i)*4)) + int32(1)) + **(**int32)(__ccgo_up(counts + uintptr(i)*4)) = 0 + goto _4 + _4: + ; + i = i + 1 + } + transitions = Xcalloc(tls, uint64(Uint32FromInt32(add)+uint32(1)), uint64(56)) + if transitions == UintptrFromInt32(0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftransitions = transitions + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_transitions = Uint32FromInt32(add) + errcode = _tre_ast_to_tnfa(tls, tree, transitions, counts, offs) + if errcode != REG_OK { + errcode = errcode + if int32(1) != 0 { + goto error_exit + } + } + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ffirstpos_chars = UintptrFromInt32(0) + p = (*Ttre_ast_node_t)(unsafe.Pointer(tree)).Ffirstpos + i = 0 + for (*Ttre_pos_and_tags_t)(unsafe.Pointer(p)).Fposition >= 0 { + i = i + 1 + p += 56 + } + initial = Xcalloc(tls, uint64(Uint32FromInt32(i)+uint32(1)), uint64(56)) + if initial == UintptrFromInt32(0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Finitial = initial + i = 0 + p = (*Ttre_ast_node_t)(unsafe.Pointer(tree)).Ffirstpos + for { + if !((*Ttre_pos_and_tags_t)(unsafe.Pointer(p)).Fposition >= 0) { + break + } + (**(**Ttre_tnfa_transition_t)(__ccgo_up(initial + uintptr(i)*56))).Fstate = transitions + uintptr(**(**int32)(__ccgo_up(offs + uintptr((*Ttre_pos_and_tags_t)(unsafe.Pointer(p)).Fposition)*4)))*56 + (**(**Ttre_tnfa_transition_t)(__ccgo_up(initial + uintptr(i)*56))).Fstate_id = (*Ttre_pos_and_tags_t)(unsafe.Pointer(p)).Fposition + (**(**Ttre_tnfa_transition_t)(__ccgo_up(initial + uintptr(i)*56))).Ftags = UintptrFromInt32(0) + /* Copy the arrays p->tags, and p->params, they are allocated + from a tre_mem object. */ + if (*Ttre_pos_and_tags_t)(unsafe.Pointer(p)).Ftags != 0 { + j = 0 + for { + if !(**(**int32)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p)).Ftags + uintptr(j)*4)) >= 0) { + break + } + goto _6 + _6: + ; + j = j + 1 + } + (**(**Ttre_tnfa_transition_t)(__ccgo_up(initial + uintptr(i)*56))).Ftags = Xmalloc(tls, uint64(4)*Uint64FromInt32(j+Int32FromInt32(1))) + if !((**(**Ttre_tnfa_transition_t)(__ccgo_up(initial + uintptr(i)*56))).Ftags != 0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + Xmemcpy(tls, (**(**Ttre_tnfa_transition_t)(__ccgo_up(initial + uintptr(i)*56))).Ftags, (*Ttre_pos_and_tags_t)(unsafe.Pointer(p)).Ftags, uint64(4)*Uint64FromInt32(j+Int32FromInt32(1))) + } + (**(**Ttre_tnfa_transition_t)(__ccgo_up(initial + uintptr(i)*56))).Fassertions = (*Ttre_pos_and_tags_t)(unsafe.Pointer(p)).Fassertions + i = i + 1 + goto _5 + _5: + ; + p += 56 + } + (**(**Ttre_tnfa_transition_t)(__ccgo_up(initial + uintptr(i)*56))).Fstate = UintptrFromInt32(0) + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_transitions = Uint32FromInt32(add) + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ffinal = transitions + uintptr(**(**int32)(__ccgo_up(offs + uintptr((**(**Ttre_pos_and_tags_t)(__ccgo_up((*Ttre_ast_node_t)(unsafe.Pointer(tree)).Flastpos))).Fposition)*4)))*56 + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states = (**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fposition + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags = cflags + X__tre_mem_destroy(tls, mem) + _tre_stack_destroy(tls, stack) + Xfree(tls, counts) + Xfree(tls, offs) + (*Tregex_t)(unsafe.Pointer(preg)).F__opaque = tnfa + return REG_OK + goto error_exit +error_exit: + ; + /* Free everything that was allocated and return the error code. */ + X__tre_mem_destroy(tls, mem) + if stack != UintptrFromInt32(0) { + _tre_stack_destroy(tls, stack) + } + if counts != UintptrFromInt32(0) { + Xfree(tls, counts) + } + if offs != UintptrFromInt32(0) { + Xfree(tls, offs) + } + (*Tregex_t)(unsafe.Pointer(preg)).F__opaque = tnfa + Xregfree(tls, preg) + return errcode +} + +func Xregfree(tls *TLS, preg uintptr) { + if __ccgo_strace { + trc("tls=%v preg=%v, (%v:)", tls, preg, origin(2)) + } + var i uint32 + var tnfa, trans uintptr + _, _, _ = i, tnfa, trans + tnfa = (*Tregex_t)(unsafe.Pointer(preg)).F__opaque + if !(tnfa != 0) { + return + } + i = uint32(0) + for { + if !(i < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_transitions) { + break + } + if (**(**Ttre_tnfa_transition_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftransitions + uintptr(i)*56))).Fstate != 0 { + if (**(**Ttre_tnfa_transition_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftransitions + uintptr(i)*56))).Ftags != 0 { + Xfree(tls, (**(**Ttre_tnfa_transition_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftransitions + uintptr(i)*56))).Ftags) + } + if (**(**Ttre_tnfa_transition_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftransitions + uintptr(i)*56))).Fneg_classes != 0 { + Xfree(tls, (**(**Ttre_tnfa_transition_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftransitions + uintptr(i)*56))).Fneg_classes) + } + } + goto _1 + _1: + ; + i = i + 1 + } + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftransitions != 0 { + Xfree(tls, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftransitions) + } + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Finitial != 0 { + trans = (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Finitial + for { + if !((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fstate != 0) { + break + } + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags != 0 { + Xfree(tls, (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags) + } + goto _2 + _2: + ; + trans += 56 + } + Xfree(tls, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Finitial) + } + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fsubmatch_data != 0 { + i = uint32(0) + for { + if !(i < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_submatches) { + break + } + if (**(**Ttre_submatch_data_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fsubmatch_data + uintptr(i)*16))).Fparents != 0 { + Xfree(tls, (**(**Ttre_submatch_data_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fsubmatch_data + uintptr(i)*16))).Fparents) + } + goto _3 + _3: + ; + i = i + 1 + } + Xfree(tls, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fsubmatch_data) + } + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions != 0 { + Xfree(tls, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions) + } + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ffirstpos_chars != 0 { + Xfree(tls, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ffirstpos_chars) + } + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags != 0 { + Xfree(tls, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags) + } + Xfree(tls, tnfa) +} + +/* Error message strings for error codes listed in `regex.h'. This list + needs to be in sync with the codes listed there, naturally. */ + +/* Converted to single string by Rich Felker to remove the need for + * data relocations at runtime, 27 Feb 2006. */ + +var _messages = [286]int8{'N', 'o', ' ', 'e', 'r', 'r', 'o', 'r', 0, 'N', 'o', ' ', 'm', 'a', 't', 'c', 'h', 0, 'I', 'n', 'v', 'a', 'l', 'i', 'd', ' ', 'r', 'e', 'g', 'e', 'x', 'p', 0, 'U', 'n', 'k', 'n', 'o', 'w', 'n', ' ', 'c', 'o', 'l', 'l', 'a', 't', 'i', 'n', 'g', ' ', 'e', 'l', 'e', 'm', 'e', 'n', 't', 0, 'U', 'n', 'k', 'n', 'o', 'w', 'n', ' ', 'c', 'h', 'a', 'r', 'a', 'c', 't', 'e', 'r', ' ', 'c', 'l', 'a', 's', 's', ' ', 'n', 'a', 'm', 'e', 0, 'T', 'r', 'a', 'i', 'l', 'i', 'n', 'g', ' ', 'b', 'a', 'c', 'k', 's', 'l', 'a', 's', 'h', 0, 'I', 'n', 'v', 'a', 'l', 'i', 'd', ' ', 'b', 'a', 'c', 'k', ' ', 'r', 'e', 'f', 'e', 'r', 'e', 'n', 'c', 'e', 0, 'M', 'i', 's', 's', 'i', 'n', 'g', ' ', '\'', ']', '\'', 0, 'M', 'i', 's', 's', 'i', 'n', 'g', ' ', '\'', ')', '\'', 0, 'M', 'i', 's', 's', 'i', 'n', 'g', ' ', '\'', '}', '\'', 0, 'I', 'n', 'v', 'a', 'l', 'i', 'd', ' ', 'c', 'o', 'n', 't', 'e', 'n', 't', 's', ' ', 'o', 'f', ' ', '{', '}', 0, 'I', 'n', 'v', 'a', 'l', 'i', 'd', ' ', 'c', 'h', 'a', 'r', 'a', 'c', 't', 'e', 'r', ' ', 'r', 'a', 'n', 'g', 'e', 0, 'O', 'u', 't', ' ', 'o', 'f', ' ', 'm', 'e', 'm', 'o', 'r', 'y', 0, 'R', 'e', 'p', 'e', 't', 'i', 't', 'i', 'o', 'n', ' ', 'n', 'o', 't', ' ', 'p', 'r', 'e', 'c', 'e', 'd', 'e', 'd', ' ', 'b', 'y', ' ', 'v', 'a', 'l', 'i', 'd', ' ', 'e', 'x', 'p', 'r', 'e', 's', 's', 'i', 'o', 'n', 0, 0, 'U', 'n', 'k', 'n', 'o', 'w', 'n', ' ', 'e', 'r', 'r', 'o', 'r'} + +func Xregerror(tls *TLS, e int32, preg uintptr, buf uintptr, size Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v e=%v preg=%v buf=%v size=%v, (%v:)", tls, e, preg, buf, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var s uintptr + _ = s + s = uintptr(unsafe.Pointer(&_messages)) + for { + if !(e != 0 && **(**int8)(__ccgo_up(s)) != 0) { + break + } + goto _1 + _1: + ; + e = e - 1 + s = s + uintptr(_strlen(tls, s)+uint64(1)) + } + if !(**(**int8)(__ccgo_up(s)) != 0) { + s = s + 1 + } + s = X__lctrans_cur(tls, s) + return Uint64FromInt32(int32(1) + Xsnprintf(tls, buf, size, __ccgo_ts+15, VaList(bp+8, s))) +} + +const tre_bt_mem_alloc = 0 +const tre_bt_mem_destroy = 0 +const tre_bt_mem_new = 0 + +/*********************************************************************** + from tre-match-utils.h +***********************************************************************/ + +// C documentation +// +// /* Returns 1 if `t1' wins `t2', 0 otherwise. */ +func _tre_tag_order(tls *TLS, num_tags int32, tag_directions uintptr, t1 uintptr, t2 uintptr) (r int32) { + var i int32 + _ = i + i = 0 + for { + if !(i < num_tags) { + break + } + if **(**Ttre_tag_direction_t)(__ccgo_up(tag_directions + uintptr(i)*4)) == int32(_TRE_TAG_MINIMIZE) { + if **(**Tregoff_t)(__ccgo_up(t1 + uintptr(i)*8)) < **(**Tregoff_t)(__ccgo_up(t2 + uintptr(i)*8)) { + return int32(1) + } + if **(**Tregoff_t)(__ccgo_up(t1 + uintptr(i)*8)) > **(**Tregoff_t)(__ccgo_up(t2 + uintptr(i)*8)) { + return 0 + } + } else { + if **(**Tregoff_t)(__ccgo_up(t1 + uintptr(i)*8)) > **(**Tregoff_t)(__ccgo_up(t2 + uintptr(i)*8)) { + return int32(1) + } + if **(**Tregoff_t)(__ccgo_up(t1 + uintptr(i)*8)) < **(**Tregoff_t)(__ccgo_up(t2 + uintptr(i)*8)) { + return 0 + } + } + goto _1 + _1: + ; + i = i + 1 + } + /* assert(0);*/ + return 0 +} + +func _tre_neg_char_classes_match(tls *TLS, classes uintptr, wc Ttre_cint_t, icase int32) (r int32) { + for **(**Ttre_ctype_t)(__ccgo_up(classes)) != Uint64FromInt32(0) { + if !(icase != 0) && Xiswctype(tls, wc, **(**Ttre_ctype_t)(__ccgo_up(classes))) != 0 || icase != 0 && (Xiswctype(tls, Xtowupper(tls, wc), **(**Ttre_ctype_t)(__ccgo_up(classes))) != 0 || Xiswctype(tls, Xtowlower(tls, wc), **(**Ttre_ctype_t)(__ccgo_up(classes))) != 0) { + return int32(1) + } else { + classes += 8 + } + } + return 0 /* No match. */ +} + +/*********************************************************************** + from tre-match-parallel.c +***********************************************************************/ + +/* + This algorithm searches for matches basically by reading characters + in the searched string one by one, starting at the beginning. All + matching paths in the TNFA are traversed in parallel. When two or + more paths reach the same state, exactly one is chosen according to + tag ordering rules; if returning submatches is not required it does + not matter which path is chosen. + + The worst case time required for finding the leftmost and longest + match, or determining that there is no match, is always linearly + dependent on the length of the text being searched. + + This algorithm cannot handle TNFAs with back referencing nodes. + See `tre-match-backtrack.c'. +*/ + +type Ttre_tnfa_reach_t = struct { + Fstate uintptr + Ftags uintptr +} + +type Ttre_reach_pos_t = struct { + Fpos Tregoff_t + Ftags uintptr +} + +func _tre_tnfa_run_parallel(tls *TLS, tnfa uintptr, string1 uintptr, match_tags uintptr, eflags int32, match_end_ofs uintptr) (r Treg_errcode_t) { + bp := tls.Alloc(16) + defer tls.Free(16) + var buf, reach, reach_i, reach_next, reach_next_i, reach_pos, str_byte, tag_i, tmp_buf, tmp_iptr, tmp_tags, trans_i uintptr + var end, i, new_match, num_tags, reg_newline, reg_notbol, reg_noteol, skip, start, v18 int32 + var match_eo, pos, pos_add_next, v7 Tregoff_t + var pbytes, rbytes, tbytes, total_bytes, xbytes Tsize_t + var prev_c Ttre_char_t + var ret Treg_errcode_t + var v1 uint64 + var _ /* next_c at bp+0 */ Ttre_char_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = buf, end, i, match_eo, new_match, num_tags, pbytes, pos, pos_add_next, prev_c, rbytes, reach, reach_i, reach_next, reach_next_i, reach_pos, reg_newline, reg_notbol, reg_noteol, ret, skip, start, str_byte, tag_i, tbytes, tmp_buf, tmp_iptr, tmp_tags, total_bytes, trans_i, xbytes, v1, v18, v7 + /* State variables required by GET_NEXT_WCHAR. */ + prev_c = 0 + **(**Ttre_char_t)(__ccgo_up(bp)) = 0 + str_byte = string1 + pos = int64(-int32(1)) + pos_add_next = int64(1) + reg_notbol = eflags & int32(REG_NOTBOL) + reg_noteol = eflags & int32(REG_NOTEOL) + reg_newline = (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags & int32(REG_NEWLINE) + match_eo = int64(-int32(1)) /* end offset of match (-1 if no match found yet) */ + new_match = 0 + tmp_tags = UintptrFromInt32(0) + if !(match_tags != 0) { + num_tags = 0 + } else { + num_tags = (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags + } + /* Allocate memory for temporary data required for matching. This needs to + be done for every matching operation to be thread safe. This allocates + everything in a single large block with calloc(). */ + /* Ensure that tbytes and xbytes*num_states cannot overflow, and that + * they don't contribute more than 1/8 of SIZE_MAX to total_bytes. */ + if Uint64FromInt32(num_tags) > uint64(0xffffffffffffffff)/(Uint64FromInt32(8)*Uint64FromInt64(8)*Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states)) { + return int32(REG_ESPACE) + } + /* Likewise check rbytes. */ + if Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states+int32(1)) > Uint64FromUint64(0xffffffffffffffff)/(Uint64FromInt32(8)*Uint64FromInt64(16)) { + return int32(REG_ESPACE) + } + /* Likewise check pbytes. */ + if Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states) > Uint64FromUint64(0xffffffffffffffff)/(Uint64FromInt32(8)*Uint64FromInt64(16)) { + return int32(REG_ESPACE) + } + /* Compute the length of the block we need. */ + tbytes = uint64(8) * Uint64FromInt32(num_tags) + rbytes = uint64(16) * Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states+Int32FromInt32(1)) + pbytes = uint64(16) * Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states) + xbytes = uint64(8) * Uint64FromInt32(num_tags) + total_bytes = (Uint64FromInt64(8)-Uint64FromInt32(1))*Uint64FromInt32(4) + (rbytes+xbytes*Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states))*uint64(2) + tbytes + pbytes + /* Allocate the memory. */ + buf = Xcalloc(tls, total_bytes, uint64(1)) + if buf == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + /* Get the various pointers within tmp_buf (properly aligned). */ + tmp_tags = buf + tmp_buf = buf + uintptr(tbytes) + if Uint64FromInt64(int64(tmp_buf))%uint64(8) != 0 { + v1 = uint64(8) - Uint64FromInt64(int64(tmp_buf))%uint64(8) + } else { + v1 = uint64(0) + } + tmp_buf = tmp_buf + uintptr(v1) + reach_next = tmp_buf + tmp_buf = tmp_buf + uintptr(rbytes) + if Uint64FromInt64(int64(tmp_buf))%uint64(8) != 0 { + v1 = uint64(8) - Uint64FromInt64(int64(tmp_buf))%uint64(8) + } else { + v1 = uint64(0) + } + tmp_buf = tmp_buf + uintptr(v1) + reach = tmp_buf + tmp_buf = tmp_buf + uintptr(rbytes) + if Uint64FromInt64(int64(tmp_buf))%uint64(8) != 0 { + v1 = uint64(8) - Uint64FromInt64(int64(tmp_buf))%uint64(8) + } else { + v1 = uint64(0) + } + tmp_buf = tmp_buf + uintptr(v1) + reach_pos = tmp_buf + tmp_buf = tmp_buf + uintptr(pbytes) + if Uint64FromInt64(int64(tmp_buf))%uint64(8) != 0 { + v1 = uint64(8) - Uint64FromInt64(int64(tmp_buf))%uint64(8) + } else { + v1 = uint64(0) + } + tmp_buf = tmp_buf + uintptr(v1) + i = 0 + for { + if !(i < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states) { + break + } + (**(**Ttre_tnfa_reach_t)(__ccgo_up(reach + uintptr(i)*16))).Ftags = tmp_buf + tmp_buf = tmp_buf + uintptr(xbytes) + (**(**Ttre_tnfa_reach_t)(__ccgo_up(reach_next + uintptr(i)*16))).Ftags = tmp_buf + tmp_buf = tmp_buf + uintptr(xbytes) + goto _5 + _5: + ; + i = i + 1 + } + i = 0 + for { + if !(i < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states) { + break + } + (**(**Ttre_reach_pos_t)(__ccgo_up(reach_pos + uintptr(i)*16))).Fpos = int64(-int32(1)) + goto _6 + _6: + ; + i = i + 1 + } + prev_c = **(**Ttre_char_t)(__ccgo_up(bp)) + pos = pos + pos_add_next + v7 = int64(Xmbtowc(tls, bp, str_byte, uint64(MB_LEN_MAX))) + pos_add_next = v7 + if v7 <= 0 { + if pos_add_next < 0 { + ret = int32(REG_NOMATCH) + goto error_exit + } else { + pos_add_next = pos_add_next + 1 + } + } + str_byte = str_byte + uintptr(pos_add_next) + pos = 0 + reach_next_i = reach_next + for int32(1) != 0 { + /* If no match found yet, add the initial states to `reach_next'. */ + if match_eo < 0 { + trans_i = (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Finitial + for (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate != UintptrFromInt32(0) { + if (**(**Ttre_reach_pos_t)(__ccgo_up(reach_pos + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*16))).Fpos < pos { + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions != 0 && ((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_BOL) != 0 && (pos > 0 || reg_notbol != 0) && (prev_c != int32('\n') || !(reg_newline != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_EOL) != 0 && (**(**Ttre_char_t)(__ccgo_up(bp)) != int32('\000') || reg_noteol != 0) && (**(**Ttre_char_t)(__ccgo_up(bp)) != int32('\n') || !(reg_newline != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_BOW) != 0 && (prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0 || !(**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_EOW) != 0 && (!(prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0) || (**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_WB) != 0 && (pos != 0 && **(**Ttre_char_t)(__ccgo_up(bp)) != int32('\000') && BoolInt32(prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0) == BoolInt32(**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_WB_NEG) != 0 && (pos == 0 || **(**Ttre_char_t)(__ccgo_up(bp)) == int32('\000') || BoolInt32(prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0) != BoolInt32(**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0))) { + trans_i += 56 + continue + } + (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Fstate = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate + i = 0 + for { + if !(i < num_tags) { + break + } + **(**Tregoff_t)(__ccgo_up((*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Ftags + uintptr(i)*8)) = int64(-int32(1)) + goto _8 + _8: + ; + i = i + 1 + } + tag_i = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Ftags + if tag_i != 0 { + for **(**int32)(__ccgo_up(tag_i)) >= 0 { + if **(**int32)(__ccgo_up(tag_i)) < num_tags { + **(**Tregoff_t)(__ccgo_up((*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Ftags + uintptr(**(**int32)(__ccgo_up(tag_i)))*8)) = pos + } + tag_i += 4 + } + } + if (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Fstate == (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ffinal { + match_eo = pos + new_match = int32(1) + i = 0 + for { + if !(i < num_tags) { + break + } + **(**Tregoff_t)(__ccgo_up(match_tags + uintptr(i)*8)) = **(**Tregoff_t)(__ccgo_up((*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Ftags + uintptr(i)*8)) + goto _9 + _9: + ; + i = i + 1 + } + } + (**(**Ttre_reach_pos_t)(__ccgo_up(reach_pos + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*16))).Fpos = pos + (**(**Ttre_reach_pos_t)(__ccgo_up(reach_pos + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*16))).Ftags = reach_next_i + 8 + reach_next_i += 16 + } + trans_i += 56 + } + (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Fstate = UintptrFromInt32(0) + } else { + if num_tags == 0 || reach_next_i == reach_next { + /* We have found a match. */ + break + } + } + /* Check for end of string. */ + if !(**(**Ttre_char_t)(__ccgo_up(bp)) != 0) { + break + } + prev_c = **(**Ttre_char_t)(__ccgo_up(bp)) + pos = pos + pos_add_next + v7 = int64(Xmbtowc(tls, bp, str_byte, uint64(MB_LEN_MAX))) + pos_add_next = v7 + if v7 <= 0 { + if pos_add_next < 0 { + ret = int32(REG_NOMATCH) + goto error_exit + } else { + pos_add_next = pos_add_next + 1 + } + } + str_byte = str_byte + uintptr(pos_add_next) + /* Swap `reach' and `reach_next'. */ + reach_i = reach + reach = reach_next + reach_next = reach_i + /* For each state in `reach', weed out states that don't fulfill the + minimal matching conditions. */ + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_minimals != 0 && new_match != 0 { + new_match = 0 + reach_next_i = reach_next + reach_i = reach + for { + if !((*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_i)).Fstate != 0) { + break + } + skip = 0 + i = 0 + for { + if !(**(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i)*4)) >= 0) { + break + } + end = **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i)*4)) + start = **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i+int32(1))*4)) + if end >= num_tags { + skip = int32(1) + break + } else { + if **(**Tregoff_t)(__ccgo_up((*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_i)).Ftags + uintptr(start)*8)) == **(**Tregoff_t)(__ccgo_up(match_tags + uintptr(start)*8)) && **(**Tregoff_t)(__ccgo_up((*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_i)).Ftags + uintptr(end)*8)) < **(**Tregoff_t)(__ccgo_up(match_tags + uintptr(end)*8)) { + skip = int32(1) + break + } + } + goto _12 + _12: + ; + i = i + int32(2) + } + if !(skip != 0) { + (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Fstate = (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_i)).Fstate + tmp_iptr = (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Ftags + (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Ftags = (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_i)).Ftags + (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_i)).Ftags = tmp_iptr + reach_next_i += 16 + } + goto _11 + _11: + ; + reach_i += 16 + } + (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Fstate = UintptrFromInt32(0) + /* Swap `reach' and `reach_next'. */ + reach_i = reach + reach = reach_next + reach_next = reach_i + } + /* For each state in `reach' see if there is a transition leaving with + the current input symbol to a state not yet in `reach_next', and + add the destination states to `reach_next'. */ + reach_next_i = reach_next + reach_i = reach + for { + if !((*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_i)).Fstate != 0) { + break + } + trans_i = (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_i)).Fstate + for { + if !((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate != 0) { + break + } + /* Does this transition match the input symbol? */ + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fcode_min <= Uint32FromInt32(prev_c) && (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fcode_max >= Uint32FromInt32(prev_c) { + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions != 0 && ((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_BOL) != 0 && (pos > 0 || reg_notbol != 0) && (prev_c != int32('\n') || !(reg_newline != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_EOL) != 0 && (**(**Ttre_char_t)(__ccgo_up(bp)) != int32('\000') || reg_noteol != 0) && (**(**Ttre_char_t)(__ccgo_up(bp)) != int32('\n') || !(reg_newline != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_BOW) != 0 && (prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0 || !(**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_EOW) != 0 && (!(prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0) || (**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_WB) != 0 && (pos != 0 && **(**Ttre_char_t)(__ccgo_up(bp)) != int32('\000') && BoolInt32(prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0) == BoolInt32(**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_WB_NEG) != 0 && (pos == 0 || **(**Ttre_char_t)(__ccgo_up(bp)) == int32('\000') || BoolInt32(prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0) != BoolInt32(**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || ((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_CHAR_CLASS) != 0 && !((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags&Int32FromInt32(REG_ICASE) != 0) && !(Xiswctype(tls, Uint32FromInt32(prev_c), *(*Ttre_ctype_t)(unsafe.Pointer(trans_i + 40))) != 0) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_CHAR_CLASS) != 0 && (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags&int32(REG_ICASE) != 0 && !(Xiswctype(tls, Xtowlower(tls, Uint32FromInt32(prev_c)), *(*Ttre_ctype_t)(unsafe.Pointer(trans_i + 40))) != 0) && !(Xiswctype(tls, Xtowupper(tls, Uint32FromInt32(prev_c)), *(*Ttre_ctype_t)(unsafe.Pointer(trans_i + 40))) != 0) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_CHAR_CLASS_NEG) != 0 && _tre_neg_char_classes_match(tls, (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fneg_classes, Uint32FromInt32(prev_c), (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags&int32(REG_ICASE)) != 0)) { + goto _14 + } + /* Compute the tags after this transition. */ + i = 0 + for { + if !(i < num_tags) { + break + } + **(**Tregoff_t)(__ccgo_up(tmp_tags + uintptr(i)*8)) = **(**Tregoff_t)(__ccgo_up((*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_i)).Ftags + uintptr(i)*8)) + goto _15 + _15: + ; + i = i + 1 + } + tag_i = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Ftags + if tag_i != UintptrFromInt32(0) { + for **(**int32)(__ccgo_up(tag_i)) >= 0 { + if **(**int32)(__ccgo_up(tag_i)) < num_tags { + **(**Tregoff_t)(__ccgo_up(tmp_tags + uintptr(**(**int32)(__ccgo_up(tag_i)))*8)) = pos + } + tag_i += 4 + } + } + if (**(**Ttre_reach_pos_t)(__ccgo_up(reach_pos + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*16))).Fpos < pos { + /* Found an unvisited node. */ + (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Fstate = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate + tmp_iptr = (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Ftags + (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Ftags = tmp_tags + tmp_tags = tmp_iptr + (**(**Ttre_reach_pos_t)(__ccgo_up(reach_pos + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*16))).Fpos = pos + (**(**Ttre_reach_pos_t)(__ccgo_up(reach_pos + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*16))).Ftags = reach_next_i + 8 + if (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Fstate == (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ffinal && (match_eo == int64(-int32(1)) || num_tags > 0 && **(**Tregoff_t)(__ccgo_up((*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Ftags)) <= **(**Tregoff_t)(__ccgo_up(match_tags))) { + match_eo = pos + new_match = int32(1) + i = 0 + for { + if !(i < num_tags) { + break + } + **(**Tregoff_t)(__ccgo_up(match_tags + uintptr(i)*8)) = **(**Tregoff_t)(__ccgo_up((*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Ftags + uintptr(i)*8)) + goto _16 + _16: + ; + i = i + 1 + } + } + reach_next_i += 16 + } else { + /* Another path has also reached this state. We choose + the winner by examining the tag values for both + paths. */ + if _tre_tag_order(tls, num_tags, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions, tmp_tags, **(**uintptr)(__ccgo_up((**(**Ttre_reach_pos_t)(__ccgo_up(reach_pos + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*16))).Ftags))) != 0 { + /* The new path wins. */ + tmp_iptr = **(**uintptr)(__ccgo_up((**(**Ttre_reach_pos_t)(__ccgo_up(reach_pos + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*16))).Ftags)) + **(**uintptr)(__ccgo_up((**(**Ttre_reach_pos_t)(__ccgo_up(reach_pos + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*16))).Ftags)) = tmp_tags + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate == (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ffinal { + match_eo = pos + new_match = int32(1) + i = 0 + for { + if !(i < num_tags) { + break + } + **(**Tregoff_t)(__ccgo_up(match_tags + uintptr(i)*8)) = **(**Tregoff_t)(__ccgo_up(tmp_tags + uintptr(i)*8)) + goto _17 + _17: + ; + i = i + 1 + } + } + tmp_tags = tmp_iptr + } + } + } + goto _14 + _14: + ; + trans_i += 56 + } + goto _13 + _13: + ; + reach_i += 16 + } + (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Fstate = UintptrFromInt32(0) + } + **(**Tregoff_t)(__ccgo_up(match_end_ofs)) = match_eo + if match_eo >= 0 { + v18 = REG_OK + } else { + v18 = int32(REG_NOMATCH) + } + ret = v18 + goto error_exit +error_exit: + ; + Xfree(tls, buf) + return ret +} + +/*********************************************************************** + from tre-match-backtrack.c +***********************************************************************/ + +/* + This matcher is for regexps that use back referencing. Regexp matching + with back referencing is an NP-complete problem on the number of back + references. The easiest way to match them is to use a backtracking + routine which basically goes through all possible paths in the TNFA + and chooses the one which results in the best (leftmost and longest) + match. This can be spectacularly expensive and may run out of stack + space, but there really is no better known generic algorithm. Quoting + Henry Spencer from comp.compilers: + + + POSIX.2 REs require longest match, which is really exciting to + implement since the obsolete ("basic") variant also includes + \. I haven't found a better way of tackling this than doing + a preliminary match using a DFA (or simulation) on a modified RE + that just replicates subREs for \, and then doing a + backtracking match to determine whether the subRE matches were + right. This can be rather slow, but I console myself with the + thought that people who use \ deserve very slow execution. + (Pun unintentional but very appropriate.) + +*/ + +type Ttre_backtrack_item_t = struct { + Fpos Tregoff_t + Fstr_byte uintptr + Fstate uintptr + Fstate_id int32 + Fnext_c int32 + Ftags uintptr +} + +type Ttre_backtrack_t = uintptr + +type Ttre_backtrack_struct = struct { + Fitem Ttre_backtrack_item_t + Fprev uintptr + Fnext uintptr +} + +func _tre_tnfa_run_backtrack(tls *TLS, tnfa uintptr, string1 uintptr, match_tags uintptr, eflags int32, match_end_ofs uintptr) (r Treg_errcode_t) { + bp := tls.Alloc(16) + defer tls.Free(16) + var bt, empty_br_match, i, i1, i2, i3, i4, next_c_start, reg_newline, reg_notbol, reg_noteol, result, ret, v20 int32 + var bt_len, eo, match_eo, pos, pos_add_next, pos_start, so, v3 Tregoff_t + var mem Ttre_mem_t + var next_state, next_tags, pmatch, state, states_seen, str_byte, str_byte_start, tags, tmp, tmp1, trans_i, v6 uintptr + var prev_c Ttre_char_t + var s, s1, stack Ttre_backtrack_t + var _ /* next_c at bp+0 */ Ttre_char_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = bt, bt_len, empty_br_match, eo, i, i1, i2, i3, i4, match_eo, mem, next_c_start, next_state, next_tags, pmatch, pos, pos_add_next, pos_start, prev_c, reg_newline, reg_notbol, reg_noteol, result, ret, s, s1, so, stack, state, states_seen, str_byte, str_byte_start, tags, tmp, tmp1, trans_i, v20, v3, v6 + /* State variables required by GET_NEXT_WCHAR. */ + prev_c = 0 + **(**Ttre_char_t)(__ccgo_up(bp)) = 0 + str_byte = string1 + pos = 0 + pos_add_next = int64(1) + reg_notbol = eflags & int32(REG_NOTBOL) + reg_noteol = eflags & int32(REG_NOTEOL) + reg_newline = (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags & int32(REG_NEWLINE) + pos_start = int64(-int32(1)) + /* End offset of best match so far, or -1 if no match found yet. */ + match_eo = int64(-int32(1)) + tags = UintptrFromInt32(0) + states_seen = UintptrFromInt32(0) + /* Memory allocator to for allocating the backtracking stack. */ + mem = X__tre_mem_new_impl(tls, 0, UintptrFromInt32(0)) + pmatch = UintptrFromInt32(0) + if !(mem != 0) { + return int32(REG_ESPACE) + } + stack = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint64(56)) + if !(stack != 0) { + ret = int32(REG_ESPACE) + goto error_exit + } + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fprev = UintptrFromInt32(0) + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fnext = UintptrFromInt32(0) + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags != 0 { + tags = Xmalloc(tls, uint64(8)*Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags)) + if !(tags != 0) { + ret = int32(REG_ESPACE) + goto error_exit + } + } + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_submatches != 0 { + pmatch = Xmalloc(tls, uint64(16)*uint64((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_submatches)) + if !(pmatch != 0) { + ret = int32(REG_ESPACE) + goto error_exit + } + } + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states != 0 { + states_seen = Xmalloc(tls, uint64(4)*Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states)) + if !(states_seen != 0) { + ret = int32(REG_ESPACE) + goto error_exit + } + } + goto retry +retry: + ; + i = 0 + for { + if !(i < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags) { + break + } + **(**Tregoff_t)(__ccgo_up(tags + uintptr(i)*8)) = int64(-int32(1)) + if match_tags != 0 { + **(**Tregoff_t)(__ccgo_up(match_tags + uintptr(i)*8)) = int64(-int32(1)) + } + goto _1 + _1: + ; + i = i + 1 + } + i = 0 + for { + if !(i < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states) { + break + } + **(**int32)(__ccgo_up(states_seen + uintptr(i)*4)) = 0 + goto _2 + _2: + ; + i = i + 1 + } + state = UintptrFromInt32(0) + pos = pos_start + prev_c = **(**Ttre_char_t)(__ccgo_up(bp)) + pos = pos + pos_add_next + v3 = int64(Xmbtowc(tls, bp, str_byte, uint64(MB_LEN_MAX))) + pos_add_next = v3 + if v3 <= 0 { + if pos_add_next < 0 { + ret = int32(REG_NOMATCH) + goto error_exit + } else { + pos_add_next = pos_add_next + 1 + } + } + str_byte = str_byte + uintptr(pos_add_next) + pos_start = pos + next_c_start = **(**Ttre_char_t)(__ccgo_up(bp)) + str_byte_start = str_byte + /* Handle initial states. */ + next_tags = UintptrFromInt32(0) + trans_i = (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Finitial + for { + if !((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate != 0) { + break + } + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions != 0 && ((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_BOL) != 0 && (pos > 0 || reg_notbol != 0) && (prev_c != int32('\n') || !(reg_newline != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_EOL) != 0 && (**(**Ttre_char_t)(__ccgo_up(bp)) != int32('\000') || reg_noteol != 0) && (**(**Ttre_char_t)(__ccgo_up(bp)) != int32('\n') || !(reg_newline != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_BOW) != 0 && (prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0 || !(**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_EOW) != 0 && (!(prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0) || (**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_WB) != 0 && (pos != 0 && **(**Ttre_char_t)(__ccgo_up(bp)) != int32('\000') && BoolInt32(prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0) == BoolInt32(**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_WB_NEG) != 0 && (pos == 0 || **(**Ttre_char_t)(__ccgo_up(bp)) == int32('\000') || BoolInt32(prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0) != BoolInt32(**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0))) { + goto _4 + } + if state == UintptrFromInt32(0) { + /* Start from this state. */ + state = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate + next_tags = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Ftags + } else { + /* Backtrack to this state. */ + if !((*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fnext != 0) { + s = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint64(56)) + if !(s != 0) { + X__tre_mem_destroy(tls, mem) + if tags != 0 { + Xfree(tls, tags) + } + if pmatch != 0 { + Xfree(tls, pmatch) + } + if states_seen != 0 { + Xfree(tls, states_seen) + } + return int32(REG_ESPACE) + } + (*Ttre_backtrack_struct)(unsafe.Pointer(s)).Fprev = stack + (*Ttre_backtrack_struct)(unsafe.Pointer(s)).Fnext = UintptrFromInt32(0) + (*Ttre_backtrack_struct)(unsafe.Pointer(s)).Fitem.Ftags = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint64(8)*Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags)) + if !((*Ttre_backtrack_struct)(unsafe.Pointer(s)).Fitem.Ftags != 0) { + X__tre_mem_destroy(tls, mem) + if tags != 0 { + Xfree(tls, tags) + } + if pmatch != 0 { + Xfree(tls, pmatch) + } + if states_seen != 0 { + Xfree(tls, states_seen) + } + return int32(REG_ESPACE) + } + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fnext = s + stack = s + } else { + stack = (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fnext + } + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fpos = pos + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstr_byte = str_byte + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstate = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstate_id = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fnext_c = **(**Ttre_char_t)(__ccgo_up(bp)) + i1 = 0 + for { + if !(i1 < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags) { + break + } + **(**Tregoff_t)(__ccgo_up((*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Ftags + uintptr(i1)*8)) = **(**Tregoff_t)(__ccgo_up(tags + uintptr(i1)*8)) + goto _5 + _5: + ; + i1 = i1 + 1 + } + tmp = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Ftags + if tmp != 0 { + for **(**int32)(__ccgo_up(tmp)) >= 0 { + v6 = tmp + tmp += 4 + **(**Tregoff_t)(__ccgo_up((*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Ftags + uintptr(**(**int32)(__ccgo_up(v6)))*8)) = pos + } + } + } + goto _4 + _4: + ; + trans_i += 56 + } + if next_tags != 0 { + for { + if !(**(**int32)(__ccgo_up(next_tags)) >= 0) { + break + } + **(**Tregoff_t)(__ccgo_up(tags + uintptr(**(**int32)(__ccgo_up(next_tags)))*8)) = pos + goto _7 + _7: + ; + next_tags += 4 + } + } + if state == UintptrFromInt32(0) { + goto backtrack + } +_9: + ; + if !(int32(1) != 0) { + goto _8 + } + if state == (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ffinal { + if match_eo < pos || match_eo == pos && match_tags != 0 && _tre_tag_order(tls, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions, tags, match_tags) != 0 { + /* This match wins the previous match. */ + match_eo = pos + if match_tags != 0 { + i2 = 0 + for { + if !(i2 < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags) { + break + } + **(**Tregoff_t)(__ccgo_up(match_tags + uintptr(i2)*8)) = **(**Tregoff_t)(__ccgo_up(tags + uintptr(i2)*8)) + goto _10 + _10: + ; + i2 = i2 + 1 + } + } + } + /* Our TNFAs never have transitions leaving from the final state, + so we jump right to backtracking. */ + goto backtrack + } + /* Go to the next character in the input string. */ + empty_br_match = 0 + trans_i = state + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate != 0 && (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_BACKREF) != 0 { + bt = *(*int32)(unsafe.Pointer(&(*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fu)) + /* Get the substring we need to match against. Remember to + turn off REG_NOSUB temporarily. */ + _tre_fill_pmatch(tls, Uint64FromInt32(bt+int32(1)), pmatch, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags & ^Int32FromInt32(REG_NOSUB), tnfa, tags, pos) + so = (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(bt)*16))).Frm_so + eo = (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(bt)*16))).Frm_eo + bt_len = eo - so + result = Xstrncmp(tls, string1+uintptr(so), str_byte-uintptr(1), Uint64FromInt64(bt_len)) + if result == 0 { + /* Back reference matched. Check for infinite loop. */ + if bt_len == 0 { + empty_br_match = int32(1) + } + if empty_br_match != 0 && **(**int32)(__ccgo_up(states_seen + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*4)) != 0 { + goto backtrack + } + **(**int32)(__ccgo_up(states_seen + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*4)) = empty_br_match + /* Advance in input string and resync `prev_c', `next_c' + and pos. */ + str_byte = str_byte + uintptr(bt_len-int64(1)) + pos = pos + (bt_len - int64(1)) + prev_c = **(**Ttre_char_t)(__ccgo_up(bp)) + pos = pos + pos_add_next + v3 = int64(Xmbtowc(tls, bp, str_byte, uint64(MB_LEN_MAX))) + pos_add_next = v3 + if v3 <= 0 { + if pos_add_next < 0 { + ret = int32(REG_NOMATCH) + goto error_exit + } else { + pos_add_next = pos_add_next + 1 + } + } + str_byte = str_byte + uintptr(pos_add_next) + } else { + goto backtrack + } + } else { + /* Check for end of string. */ + if **(**Ttre_char_t)(__ccgo_up(bp)) == int32('\000') { + goto backtrack + } + /* Read the next character. */ + prev_c = **(**Ttre_char_t)(__ccgo_up(bp)) + pos = pos + pos_add_next + v3 = int64(Xmbtowc(tls, bp, str_byte, uint64(MB_LEN_MAX))) + pos_add_next = v3 + if v3 <= 0 { + if pos_add_next < 0 { + ret = int32(REG_NOMATCH) + goto error_exit + } else { + pos_add_next = pos_add_next + 1 + } + } + str_byte = str_byte + uintptr(pos_add_next) + } + next_state = UintptrFromInt32(0) + trans_i = state + for { + if !((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate != 0) { + break + } + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fcode_min <= Uint32FromInt32(prev_c) && (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fcode_max >= Uint32FromInt32(prev_c) { + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions != 0 && ((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_BOL) != 0 && (pos > 0 || reg_notbol != 0) && (prev_c != int32('\n') || !(reg_newline != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_EOL) != 0 && (**(**Ttre_char_t)(__ccgo_up(bp)) != int32('\000') || reg_noteol != 0) && (**(**Ttre_char_t)(__ccgo_up(bp)) != int32('\n') || !(reg_newline != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_BOW) != 0 && (prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0 || !(**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_EOW) != 0 && (!(prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0) || (**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_WB) != 0 && (pos != 0 && **(**Ttre_char_t)(__ccgo_up(bp)) != int32('\000') && BoolInt32(prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0) == BoolInt32(**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_WB_NEG) != 0 && (pos == 0 || **(**Ttre_char_t)(__ccgo_up(bp)) == int32('\000') || BoolInt32(prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0) != BoolInt32(**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || ((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_CHAR_CLASS) != 0 && !((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags&Int32FromInt32(REG_ICASE) != 0) && !(Xiswctype(tls, Uint32FromInt32(prev_c), *(*Ttre_ctype_t)(unsafe.Pointer(trans_i + 40))) != 0) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_CHAR_CLASS) != 0 && (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags&int32(REG_ICASE) != 0 && !(Xiswctype(tls, Xtowlower(tls, Uint32FromInt32(prev_c)), *(*Ttre_ctype_t)(unsafe.Pointer(trans_i + 40))) != 0) && !(Xiswctype(tls, Xtowupper(tls, Uint32FromInt32(prev_c)), *(*Ttre_ctype_t)(unsafe.Pointer(trans_i + 40))) != 0) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_CHAR_CLASS_NEG) != 0 && _tre_neg_char_classes_match(tls, (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fneg_classes, Uint32FromInt32(prev_c), (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags&int32(REG_ICASE)) != 0)) { + goto _13 + } + if next_state == UintptrFromInt32(0) { + /* First matching transition. */ + next_state = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate + next_tags = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Ftags + } else { + /* Second matching transition. We may need to backtrack here + to take this transition instead of the first one, so we + push this transition in the backtracking stack so we can + jump back here if needed. */ + if !((*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fnext != 0) { + s1 = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint64(56)) + if !(s1 != 0) { + X__tre_mem_destroy(tls, mem) + if tags != 0 { + Xfree(tls, tags) + } + if pmatch != 0 { + Xfree(tls, pmatch) + } + if states_seen != 0 { + Xfree(tls, states_seen) + } + return int32(REG_ESPACE) + } + (*Ttre_backtrack_struct)(unsafe.Pointer(s1)).Fprev = stack + (*Ttre_backtrack_struct)(unsafe.Pointer(s1)).Fnext = UintptrFromInt32(0) + (*Ttre_backtrack_struct)(unsafe.Pointer(s1)).Fitem.Ftags = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint64(8)*Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags)) + if !((*Ttre_backtrack_struct)(unsafe.Pointer(s1)).Fitem.Ftags != 0) { + X__tre_mem_destroy(tls, mem) + if tags != 0 { + Xfree(tls, tags) + } + if pmatch != 0 { + Xfree(tls, pmatch) + } + if states_seen != 0 { + Xfree(tls, states_seen) + } + return int32(REG_ESPACE) + } + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fnext = s1 + stack = s1 + } else { + stack = (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fnext + } + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fpos = pos + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstr_byte = str_byte + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstate = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstate_id = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fnext_c = **(**Ttre_char_t)(__ccgo_up(bp)) + i3 = 0 + for { + if !(i3 < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags) { + break + } + **(**Tregoff_t)(__ccgo_up((*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Ftags + uintptr(i3)*8)) = **(**Tregoff_t)(__ccgo_up(tags + uintptr(i3)*8)) + goto _14 + _14: + ; + i3 = i3 + 1 + } + tmp1 = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Ftags + for { + if !(tmp1 != 0 && **(**int32)(__ccgo_up(tmp1)) >= 0) { + break + } + **(**Tregoff_t)(__ccgo_up((*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Ftags + uintptr(**(**int32)(__ccgo_up(tmp1)))*8)) = pos + goto _15 + _15: + ; + tmp1 += 4 + } + } + } + goto _13 + _13: + ; + trans_i += 56 + } + if !(next_state != UintptrFromInt32(0)) { + goto _16 + } + /* Matching transitions were found. Take the first one. */ + state = next_state + /* Update the tag values. */ + if next_tags != 0 { + for **(**int32)(__ccgo_up(next_tags)) >= 0 { + v6 = next_tags + next_tags += 4 + **(**Tregoff_t)(__ccgo_up(tags + uintptr(**(**int32)(__ccgo_up(v6)))*8)) = pos + } + } + goto _17 +_16: + ; + goto backtrack +backtrack: + ; + /* A matching transition was not found. Try to backtrack. */ + if (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fprev != 0 { + if (*Ttre_tnfa_transition_t)(unsafe.Pointer((*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstate)).Fassertions&int32(ASSERT_BACKREF) != 0 { + **(**int32)(__ccgo_up(states_seen + uintptr((*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstate_id)*4)) = 0 + } + pos = (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fpos + str_byte = (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstr_byte + state = (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstate + **(**Ttre_char_t)(__ccgo_up(bp)) = (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fnext_c + i4 = 0 + for { + if !(i4 < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags) { + break + } + **(**Tregoff_t)(__ccgo_up(tags + uintptr(i4)*8)) = **(**Tregoff_t)(__ccgo_up((*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Ftags + uintptr(i4)*8)) + goto _19 + _19: + ; + i4 = i4 + 1 + } + stack = (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fprev + } else { + if match_eo < 0 { + /* Try starting from a later position in the input string. */ + /* Check for end of string. */ + if **(**Ttre_char_t)(__ccgo_up(bp)) == int32('\000') { + goto _8 + } + **(**Ttre_char_t)(__ccgo_up(bp)) = next_c_start + str_byte = str_byte_start + goto retry + } else { + goto _8 + } + } +_17: + ; + goto _9 +_8: + ; + if match_eo >= 0 { + v20 = REG_OK + } else { + v20 = int32(REG_NOMATCH) + } + ret = v20 + **(**Tregoff_t)(__ccgo_up(match_end_ofs)) = match_eo + goto error_exit +error_exit: + ; + X__tre_mem_destroy(tls, mem) + if tags != 0 { + Xfree(tls, tags) + } + if pmatch != 0 { + Xfree(tls, pmatch) + } + if states_seen != 0 { + Xfree(tls, states_seen) + } + return ret +} + +/*********************************************************************** + from regexec.c +***********************************************************************/ + +// C documentation +// +// /* Fills the POSIX.2 regmatch_t array according to the TNFA tag and match +// endpoint values. */ +func _tre_fill_pmatch(tls *TLS, nmatch Tsize_t, pmatch uintptr, cflags int32, tnfa uintptr, tags uintptr, match_eo Tregoff_t) { + var i, j uint32 + var parents, submatch_data uintptr + var v1 Tregoff_t + _, _, _, _, _ = i, j, parents, submatch_data, v1 + i = uint32(0) + if match_eo >= 0 && !(cflags&Int32FromInt32(REG_NOSUB) != 0) { + /* Construct submatch offsets from the tags. */ + submatch_data = (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fsubmatch_data + for i < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_submatches && uint64(i) < nmatch { + if (**(**Ttre_submatch_data_t)(__ccgo_up(submatch_data + uintptr(i)*16))).Fso_tag == (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fend_tag { + (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_so = match_eo + } else { + (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_so = **(**Tregoff_t)(__ccgo_up(tags + uintptr((**(**Ttre_submatch_data_t)(__ccgo_up(submatch_data + uintptr(i)*16))).Fso_tag)*8)) + } + if (**(**Ttre_submatch_data_t)(__ccgo_up(submatch_data + uintptr(i)*16))).Feo_tag == (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fend_tag { + (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_eo = match_eo + } else { + (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_eo = **(**Tregoff_t)(__ccgo_up(tags + uintptr((**(**Ttre_submatch_data_t)(__ccgo_up(submatch_data + uintptr(i)*16))).Feo_tag)*8)) + } + /* If either of the endpoints were not used, this submatch + was not part of the match. */ + if (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_so == int64(-int32(1)) || (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_eo == int64(-int32(1)) { + v1 = int64(-Int32FromInt32(1)) + (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_eo = v1 + (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_so = v1 + } + i = i + 1 + } + /* Reset all submatches that are not within all of their parent + submatches. */ + i = uint32(0) + for i < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_submatches && uint64(i) < nmatch { + if (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_eo == int64(-int32(1)) { + } + parents = (**(**Ttre_submatch_data_t)(__ccgo_up(submatch_data + uintptr(i)*16))).Fparents + if parents != UintptrFromInt32(0) { + j = uint32(0) + for { + if !(**(**int32)(__ccgo_up(parents + uintptr(j)*4)) >= 0) { + break + } + if (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_so < (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(**(**int32)(__ccgo_up(parents + uintptr(j)*4)))*16))).Frm_so || (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_eo > (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(**(**int32)(__ccgo_up(parents + uintptr(j)*4)))*16))).Frm_eo { + v1 = int64(-Int32FromInt32(1)) + (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_eo = v1 + (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_so = v1 + } + goto _2 + _2: + ; + j = j + 1 + } + } + i = i + 1 + } + } + for uint64(i) < nmatch { + (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_so = int64(-int32(1)) + (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_eo = int64(-int32(1)) + i = i + 1 + } +} + +/* + Wrapper functions for POSIX compatible regexp matching. +*/ + +func Xregexec(tls *TLS, preg uintptr, string1 uintptr, nmatch Tsize_t, pmatch uintptr, eflags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v preg=%v string1=%v nmatch=%v pmatch=%v eflags=%v, (%v:)", tls, preg, string1, nmatch, pmatch, eflags, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var status Treg_errcode_t + var tags, tnfa uintptr + var _ /* eo at bp+0 */ Tregoff_t + _, _, _ = status, tags, tnfa + tnfa = (*Tregex_t)(unsafe.Pointer(preg)).F__opaque + tags = UintptrFromInt32(0) + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags&int32(REG_NOSUB) != 0 { + nmatch = uint64(0) + } + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags > 0 && nmatch > uint64(0) { + tags = Xmalloc(tls, uint64(8)*Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags)) + if tags == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + } + /* Dispatch to the appropriate matcher. */ + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fhave_backrefs != 0 { + /* The regex has back references, use the backtracking matcher. */ + status = _tre_tnfa_run_backtrack(tls, tnfa, string1, tags, eflags, bp) + } else { + /* Exact matching, no back references, use the parallel matcher. */ + status = _tre_tnfa_run_parallel(tls, tnfa, string1, tags, eflags, bp) + } + if status == REG_OK { + /* A match was found, so fill the submatch registers. */ + _tre_fill_pmatch(tls, nmatch, pmatch, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags, tnfa, tags, **(**Tregoff_t)(__ccgo_up(bp))) + } + if tags != 0 { + Xfree(tls, tags) + } + return status +} + +/* + This memory allocator is for allocating small memory blocks efficiently + in terms of memory overhead and execution speed. The allocated blocks + cannot be freed individually, only all at once. There can be multiple + allocators, though. +*/ + +// C documentation +// +// /* Returns a new memory allocator or NULL if out of memory. */ +func X__tre_mem_new_impl(tls *TLS, provided int32, provided_block uintptr) (r Ttre_mem_t) { + if __ccgo_strace { + trc("tls=%v provided=%v provided_block=%v, (%v:)", tls, provided, provided_block, origin(2)) + defer func() { trc("-> %v", r) }() + } + var mem Ttre_mem_t + _ = mem + if provided != 0 { + mem = provided_block + Xmemset(tls, mem, 0, uint64(48)) + } else { + mem = Xcalloc(tls, uint64(1), uint64(48)) + } + if mem == UintptrFromInt32(0) { + return UintptrFromInt32(0) + } + return mem +} + +// C documentation +// +// /* Frees the memory allocator and all memory allocated with it. */ +func X__tre_mem_destroy(tls *TLS, mem Ttre_mem_t) { + if __ccgo_strace { + trc("tls=%v mem=%v, (%v:)", tls, mem, origin(2)) + } + var l, tmp uintptr + _, _ = l, tmp + l = (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fblocks + for l != UintptrFromInt32(0) { + Xfree(tls, (*Ttre_list_t)(unsafe.Pointer(l)).Fdata) + tmp = (*Ttre_list_t)(unsafe.Pointer(l)).Fnext + Xfree(tls, l) + l = tmp + } + Xfree(tls, mem) +} + +// C documentation +// +// /* Allocates a block of `size' bytes from `mem'. Returns a pointer to the +// allocated block or NULL if an underlying malloc() failed. */ +func X__tre_mem_alloc_impl(tls *TLS, mem Ttre_mem_t, provided int32, provided_block uintptr, zero int32, size Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v mem=%v provided=%v provided_block=%v zero=%v size=%v, (%v:)", tls, mem, provided, provided_block, zero, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + var block_size int32 + var l, ptr uintptr + var v1 uint64 + _, _, _, _ = block_size, l, ptr, v1 + if (*Ttre_mem_struct)(unsafe.Pointer(mem)).Ffailed != 0 { + return UintptrFromInt32(0) + } + if (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fn < size { + if provided != 0 { + if provided_block == UintptrFromInt32(0) { + (*Ttre_mem_struct)(unsafe.Pointer(mem)).Ffailed = int32(1) + return UintptrFromInt32(0) + } + (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fptr = provided_block + (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fn = uint64(TRE_MEM_BLOCK_SIZE) + } else { + if size*uint64(8) > uint64(TRE_MEM_BLOCK_SIZE) { + block_size = Int32FromUint64(size * uint64(8)) + } else { + block_size = int32(TRE_MEM_BLOCK_SIZE) + } + l = Xmalloc(tls, uint64(16)) + if l == UintptrFromInt32(0) { + (*Ttre_mem_struct)(unsafe.Pointer(mem)).Ffailed = int32(1) + return UintptrFromInt32(0) + } + (*Ttre_list_t)(unsafe.Pointer(l)).Fdata = Xmalloc(tls, Uint64FromInt32(block_size)) + if (*Ttre_list_t)(unsafe.Pointer(l)).Fdata == UintptrFromInt32(0) { + Xfree(tls, l) + (*Ttre_mem_struct)(unsafe.Pointer(mem)).Ffailed = int32(1) + return UintptrFromInt32(0) + } + (*Ttre_list_t)(unsafe.Pointer(l)).Fnext = UintptrFromInt32(0) + if (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fcurrent != UintptrFromInt32(0) { + (*Ttre_list_t)(unsafe.Pointer((*Ttre_mem_struct)(unsafe.Pointer(mem)).Fcurrent)).Fnext = l + } + if (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fblocks == UintptrFromInt32(0) { + (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fblocks = l + } + (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fcurrent = l + (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fptr = (*Ttre_list_t)(unsafe.Pointer(l)).Fdata + (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fn = Uint64FromInt32(block_size) + } + } + /* Make sure the next pointer will be aligned. */ + if (Uint64FromInt64(int64((*Ttre_mem_struct)(unsafe.Pointer(mem)).Fptr))+size)%uint64(8) != 0 { + v1 = uint64(8) - (Uint64FromInt64(int64((*Ttre_mem_struct)(unsafe.Pointer(mem)).Fptr))+size)%uint64(8) + } else { + v1 = uint64(0) + } + size = size + v1 + /* Allocate from current block. */ + ptr = (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fptr + **(**uintptr)(__ccgo_up(mem + 16)) += uintptr(size) + **(**Tsize_t)(__ccgo_up(mem + 24)) -= size + /* Set to zero if needed. */ + if zero != 0 { + Xmemset(tls, ptr, 0, size) + } + return ptr +} + +const MAXSIZE = 1 +const MINSIZE = 8 + +type TACTION = int32 + +const _FIND = 0 +const _ENTER = 1 + +type TVISIT = int32 + +const _preorder = 0 +const _postorder = 1 +const _endorder = 2 +const _leaf = 3 + +type TENTRY = struct { + Fkey uintptr + Fdata uintptr +} + +type Tentry = TENTRY + +type Thsearch_data = struct { + F__tab uintptr + F__unused1 uint32 + F__unused2 uint32 +} + +type Tqelem = struct { + Fq_forw uintptr + Fq_back uintptr + Fq_data [1]int8 +} + +/* +open addressing hash table with 2^n table size +quadratic probing is used in case of hash collision +tab indices and hash are size_t +after resize fails with ENOMEM the state of tab is still usable + +with the posix api items cannot be iterated and length cannot be queried +*/ + +type t__tab = struct { + Fentries uintptr + Fmask Tsize_t + Fused Tsize_t +} + +var _htab Thsearch_data + +func _keyhash(tls *TLS, k uintptr) (r Tsize_t) { + var h Tsize_t + var p, v1 uintptr + _, _, _ = h, p, v1 + p = k + h = uint64(0) + for **(**uint8)(__ccgo_up(p)) != 0 { + v1 = p + p = p + 1 + h = uint64(31)*h + uint64(**(**uint8)(__ccgo_up(v1))) + } + return h +} + +func _resize(tls *TLS, nel Tsize_t, htab uintptr) (r int32) { + var e, newe, oldtab uintptr + var i, j, newsize, oldsize, v4 Tsize_t + _, _, _, _, _, _, _, _ = e, i, j, newe, newsize, oldsize, oldtab, v4 + oldsize = (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fmask + uint64(1) + oldtab = (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fentries + if nel > Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(2)+Uint64FromInt32(1) { + nel = Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(2) + Uint64FromInt32(1) + } + newsize = uint64(MINSIZE) + for { + if !(newsize < nel) { + break + } + goto _1 + _1: + ; + newsize = newsize * uint64(2) + } + (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fentries = Xcalloc(tls, newsize, uint64(16)) + if !((*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fentries != 0) { + (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fentries = oldtab + return 0 + } + (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fmask = newsize - uint64(1) + if !(oldtab != 0) { + return int32(1) + } + e = oldtab + for { + if !(e < oldtab+uintptr(oldsize)*16) { + break + } + if (*TENTRY)(unsafe.Pointer(e)).Fkey != 0 { + i = _keyhash(tls, (*TENTRY)(unsafe.Pointer(e)).Fkey) + j = Uint64FromInt32(1) + for { + newe = (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fentries + uintptr(i&(*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fmask)*16 + if !((*TENTRY)(unsafe.Pointer(newe)).Fkey != 0) { + break + } + goto _3 + _3: + ; + v4 = j + j = j + 1 + i = i + v4 + } + **(**TENTRY)(__ccgo_up(newe)) = **(**TENTRY)(__ccgo_up(e)) + } + goto _2 + _2: + ; + e += 16 + } + Xfree(tls, oldtab) + return int32(1) +} + +func Xhcreate(tls *TLS, nel Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v nel=%v, (%v:)", tls, nel, origin(2)) + defer func() { trc("-> %v", r) }() + } + return ___hcreate_r(tls, nel, uintptr(unsafe.Pointer(&_htab))) +} + +func Xhdestroy(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + ___hdestroy_r(tls, uintptr(unsafe.Pointer(&_htab))) +} + +func _lookup(tls *TLS, key uintptr, hash Tsize_t, htab uintptr) (r uintptr) { + var e uintptr + var i, j, v2 Tsize_t + _, _, _, _ = e, i, j, v2 + i = hash + j = Uint64FromInt32(1) + for { + e = (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fentries + uintptr(i&(*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fmask)*16 + if !((*TENTRY)(unsafe.Pointer(e)).Fkey != 0) || Xstrcmp(tls, (*TENTRY)(unsafe.Pointer(e)).Fkey, key) == 0 { + break + } + goto _1 + _1: + ; + v2 = j + j = j + 1 + i = i + v2 + } + return e +} + +func Xhsearch(tls *TLS, item TENTRY, action TACTION) (r uintptr) { + if __ccgo_strace { + trc("tls=%v item=%v action=%v, (%v:)", tls, item, action, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* e at bp+0 */ uintptr + ___hsearch_r(tls, item, action, bp, uintptr(unsafe.Pointer(&_htab))) + return **(**uintptr)(__ccgo_up(bp)) +} + +func ___hcreate_r(tls *TLS, nel Tsize_t, htab uintptr) (r1 int32) { + var r int32 + _ = r + (*Thsearch_data)(unsafe.Pointer(htab)).F__tab = Xcalloc(tls, uint64(1), uint64(24)) + if !((*Thsearch_data)(unsafe.Pointer(htab)).F__tab != 0) { + return 0 + } + r = _resize(tls, nel, htab) + if r == 0 { + Xfree(tls, (*Thsearch_data)(unsafe.Pointer(htab)).F__tab) + (*Thsearch_data)(unsafe.Pointer(htab)).F__tab = uintptr(0) + } + return r +} + +func ___hdestroy_r(tls *TLS, htab uintptr) { + if (*Thsearch_data)(unsafe.Pointer(htab)).F__tab != 0 { + Xfree(tls, (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fentries) + } + Xfree(tls, (*Thsearch_data)(unsafe.Pointer(htab)).F__tab) + (*Thsearch_data)(unsafe.Pointer(htab)).F__tab = uintptr(0) +} + +func ___hsearch_r(tls *TLS, item TENTRY, action TACTION, retval uintptr, htab uintptr) (r int32) { + var e, v2 uintptr + var hash, v1 Tsize_t + _, _, _, _ = e, hash, v1, v2 + hash = _keyhash(tls, item.Fkey) + e = _lookup(tls, item.Fkey, hash, htab) + if (*TENTRY)(unsafe.Pointer(e)).Fkey != 0 { + **(**uintptr)(__ccgo_up(retval)) = e + return int32(1) + } + if action == int32(_FIND) { + **(**uintptr)(__ccgo_up(retval)) = uintptr(0) + return 0 + } + **(**TENTRY)(__ccgo_up(e)) = item + v2 = (*Thsearch_data)(unsafe.Pointer(htab)).F__tab + 16 + *(*Tsize_t)(unsafe.Pointer(v2)) = *(*Tsize_t)(unsafe.Pointer(v2)) + 1 + v1 = *(*Tsize_t)(unsafe.Pointer(v2)) + if v1 > (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fmask-(*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fmask/uint64(4) { + if !(_resize(tls, uint64(2)*(*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fused, htab) != 0) { + (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fused = (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fused - 1 + (*TENTRY)(unsafe.Pointer(e)).Fkey = uintptr(0) + **(**uintptr)(__ccgo_up(retval)) = uintptr(0) + return 0 + } + e = _lookup(tls, item.Fkey, hash, htab) + } + **(**uintptr)(__ccgo_up(retval)) = e + return int32(1) +} + +type Tnode = struct { + Fnext uintptr + Fprev uintptr +} + +func Xinsque(tls *TLS, element uintptr, pred uintptr) { + if __ccgo_strace { + trc("tls=%v element=%v pred=%v, (%v:)", tls, element, pred, origin(2)) + } + var e, p, v1 uintptr + _, _, _ = e, p, v1 + e = element + p = pred + if !(p != 0) { + v1 = UintptrFromInt32(0) + (*Tnode)(unsafe.Pointer(e)).Fprev = v1 + (*Tnode)(unsafe.Pointer(e)).Fnext = v1 + return + } + (*Tnode)(unsafe.Pointer(e)).Fnext = (*Tnode)(unsafe.Pointer(p)).Fnext + (*Tnode)(unsafe.Pointer(e)).Fprev = p + (*Tnode)(unsafe.Pointer(p)).Fnext = e + if (*Tnode)(unsafe.Pointer(e)).Fnext != 0 { + (*Tnode)(unsafe.Pointer((*Tnode)(unsafe.Pointer(e)).Fnext)).Fprev = e + } +} + +func Xremque(tls *TLS, element uintptr) { + if __ccgo_strace { + trc("tls=%v element=%v, (%v:)", tls, element, origin(2)) + } + var e uintptr + _ = e + e = element + if (*Tnode)(unsafe.Pointer(e)).Fnext != 0 { + (*Tnode)(unsafe.Pointer((*Tnode)(unsafe.Pointer(e)).Fnext)).Fprev = (*Tnode)(unsafe.Pointer(e)).Fprev + } + if (*Tnode)(unsafe.Pointer(e)).Fprev != 0 { + (*Tnode)(unsafe.Pointer((*Tnode)(unsafe.Pointer(e)).Fprev)).Fnext = (*Tnode)(unsafe.Pointer(e)).Fnext + } +} + +type t__ccgo_fp__Xlsearch_4 = func(*TLS, uintptr, uintptr) int32 + +func Xlsearch(tls *TLS, key uintptr, base uintptr, nelp uintptr, width Tsize_t, __ccgo_fp_compar uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v base=%v nelp=%v width=%v __ccgo_fp_compar=%v, (%v:)", tls, key, base, nelp, width, __ccgo_fp_compar, origin(2)) + defer func() { trc("-> %v", r) }() + } + var i, n Tsize_t + var p uintptr + var v1 t__predefined_size_t + _, _, _, _ = i, n, p, v1 + defer func() {}() + v1 = width + p = base + n = **(**Tsize_t)(__ccgo_up(nelp)) + i = uint64(0) + for { + if !(i < n) { + break + } + if (*(*func(*TLS, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_compar})))(tls, key, p+uintptr(i)*uintptr(v1)) == 0 { + return p + uintptr(i)*uintptr(v1) + } + goto _2 + _2: + ; + i = i + 1 + } + **(**Tsize_t)(__ccgo_up(nelp)) = n + uint64(1) + return Xmemcpy(tls, p+uintptr(n)*uintptr(v1), key, width) +} + +type t__ccgo_fp__Xlfind_4 = func(*TLS, uintptr, uintptr) int32 + +func Xlfind(tls *TLS, key uintptr, base uintptr, nelp uintptr, width Tsize_t, __ccgo_fp_compar uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v base=%v nelp=%v width=%v __ccgo_fp_compar=%v, (%v:)", tls, key, base, nelp, width, __ccgo_fp_compar, origin(2)) + defer func() { trc("-> %v", r) }() + } + var i, n Tsize_t + var p uintptr + var v1 t__predefined_size_t + _, _, _, _ = i, n, p, v1 + defer func() {}() + v1 = width + p = base + n = **(**Tsize_t)(__ccgo_up(nelp)) + i = uint64(0) + for { + if !(i < n) { + break + } + if (*(*func(*TLS, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_compar})))(tls, key, p+uintptr(i)*uintptr(v1)) == 0 { + return p + uintptr(i)*uintptr(v1) + } + goto _2 + _2: + ; + i = i + 1 + } + return uintptr(0) +} + +const MAXH = 0 + +type Tnode1 = struct { + Fkey uintptr + Fa [2]uintptr + Fh int32 +} + +type t__ccgo_fp__Xtdelete_2 = func(*TLS, uintptr, uintptr) int32 + +func Xtdelete(tls *TLS, key uintptr, rootp uintptr, __ccgo_fp_cmp uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v rootp=%v __ccgo_fp_cmp=%v, (%v:)", tls, key, rootp, __ccgo_fp_cmp, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a [97]uintptr + var c, i, v1 int32 + var child, deleted, n, parent uintptr + _, _, _, _, _, _, _, _ = a, c, child, deleted, i, n, parent, v1 + if !(rootp != 0) { + return uintptr(0) + } + n = **(**uintptr)(__ccgo_up(rootp)) + i = 0 + /* *a[0] is an arbitrary non-null pointer that is returned when + the root node is deleted. */ + v1 = i + i = i + 1 + a[v1] = rootp + v1 = i + i = i + 1 + a[v1] = rootp + for { + if !(n != 0) { + return uintptr(0) + } + c = (*(*func(*TLS, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cmp})))(tls, key, (*Tnode1)(unsafe.Pointer(n)).Fkey) + if !(c != 0) { + break + } + v1 = i + i = i + 1 + a[v1] = n + 8 + BoolUintptr(c > 0)*8 + n = **(**uintptr)(__ccgo_up(n + 8 + BoolUintptr(c > 0)*8)) + goto _3 + _3: + } + parent = **(**uintptr)(__ccgo_up(a[i-int32(2)])) + if **(**uintptr)(__ccgo_up(n + 8)) != 0 { + /* free the preceding node instead of the deleted one. */ + deleted = n + v1 = i + i = i + 1 + a[v1] = n + 8 + n = **(**uintptr)(__ccgo_up(n + 8)) + for **(**uintptr)(__ccgo_up(n + 8 + 1*8)) != 0 { + v1 = i + i = i + 1 + a[v1] = n + 8 + 1*8 + n = **(**uintptr)(__ccgo_up(n + 8 + 1*8)) + } + (*Tnode1)(unsafe.Pointer(deleted)).Fkey = (*Tnode1)(unsafe.Pointer(n)).Fkey + child = **(**uintptr)(__ccgo_up(n + 8)) + } else { + child = **(**uintptr)(__ccgo_up(n + 8 + 1*8)) + } + /* freed node has at most one child, move it up and rebalance. */ + Xfree(tls, n) + i = i - 1 + v1 = i + **(**uintptr)(__ccgo_up(a[v1])) = child + for { + i = i - 1 + v1 = i + if !(v1 != 0 && X__tsearch_balance(tls, a[i]) != 0) { + break + } + } + return parent +} + +type t__ccgo_fp__Xtdestroy_1 = func(*TLS, uintptr) + +func Xtdestroy(tls *TLS, root uintptr, __ccgo_fp_freekey uintptr) { + if __ccgo_strace { + trc("tls=%v root=%v __ccgo_fp_freekey=%v, (%v:)", tls, root, __ccgo_fp_freekey, origin(2)) + } + var r uintptr + _ = r + r = root + if r == uintptr(0) { + return + } + Xtdestroy(tls, **(**uintptr)(__ccgo_up(r + 8)), __ccgo_fp_freekey) + Xtdestroy(tls, **(**uintptr)(__ccgo_up(r + 8 + 1*8)), __ccgo_fp_freekey) + if __ccgo_fp_freekey != 0 { + (*(*func(*TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_freekey})))(tls, (*Tnode1)(unsafe.Pointer(r)).Fkey) + } + Xfree(tls, r) +} + +type t__ccgo_fp__Xtfind_2 = func(*TLS, uintptr, uintptr) int32 + +func Xtfind(tls *TLS, key uintptr, rootp uintptr, __ccgo_fp_cmp uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v rootp=%v __ccgo_fp_cmp=%v, (%v:)", tls, key, rootp, __ccgo_fp_cmp, origin(2)) + defer func() { trc("-> %v", r) }() + } + var c int32 + var n uintptr + _, _ = c, n + if !(rootp != 0) { + return uintptr(0) + } + n = **(**uintptr)(__ccgo_up(rootp)) + for { + if !(n != 0) { + break + } + c = (*(*func(*TLS, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cmp})))(tls, key, (*Tnode1)(unsafe.Pointer(n)).Fkey) + if !(c != 0) { + break + } + n = **(**uintptr)(__ccgo_up(n + 8 + BoolUintptr(c > 0)*8)) + goto _1 + _1: + } + return n +} + +func _height(tls *TLS, n uintptr) (r int32) { + var v1 int32 + _ = v1 + if n != 0 { + v1 = (*Tnode1)(unsafe.Pointer(n)).Fh + } else { + v1 = 0 + } + return v1 +} + +func _rot(tls *TLS, p uintptr, x uintptr, dir int32) (r int32) { + var hx, hz int32 + var y, z uintptr + _, _, _, _ = hx, hz, y, z + y = **(**uintptr)(__ccgo_up(x + 8 + uintptr(dir)*8)) + z = **(**uintptr)(__ccgo_up(y + 8 + BoolUintptr(!(dir != 0))*8)) + hx = (*Tnode1)(unsafe.Pointer(x)).Fh + hz = _height(tls, z) + if hz > _height(tls, **(**uintptr)(__ccgo_up(y + 8 + uintptr(dir)*8))) { + /* + * x + * / \ dir z + * A y / * / \ --> x y + * z D /| | * / \ A B C D + * B C + */ + **(**uintptr)(__ccgo_up(x + 8 + uintptr(dir)*8)) = **(**uintptr)(__ccgo_up(z + 8 + BoolUintptr(!(dir != 0))*8)) + **(**uintptr)(__ccgo_up(y + 8 + BoolUintptr(!(dir != 0))*8)) = **(**uintptr)(__ccgo_up(z + 8 + uintptr(dir)*8)) + **(**uintptr)(__ccgo_up(z + 8 + BoolUintptr(!(dir != 0))*8)) = x + **(**uintptr)(__ccgo_up(z + 8 + uintptr(dir)*8)) = y + (*Tnode1)(unsafe.Pointer(x)).Fh = hz + (*Tnode1)(unsafe.Pointer(y)).Fh = hz + (*Tnode1)(unsafe.Pointer(z)).Fh = hz + int32(1) + } else { + /* + * x y + * / \ / * A y --> x D + * / \ / * z D A z + */ + **(**uintptr)(__ccgo_up(x + 8 + uintptr(dir)*8)) = z + **(**uintptr)(__ccgo_up(y + 8 + BoolUintptr(!(dir != 0))*8)) = x + (*Tnode1)(unsafe.Pointer(x)).Fh = hz + int32(1) + (*Tnode1)(unsafe.Pointer(y)).Fh = hz + int32(2) + z = y + } + **(**uintptr)(__ccgo_up(p)) = z + return (*Tnode1)(unsafe.Pointer(z)).Fh - hx +} + +// C documentation +// +// /* balance *p, return 0 if height is unchanged. */ +func X__tsearch_balance(tls *TLS, p uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v p=%v, (%v:)", tls, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + var h0, h1, old, v1 int32 + var n uintptr + _, _, _, _, _ = h0, h1, n, old, v1 + n = **(**uintptr)(__ccgo_up(p)) + h0 = _height(tls, **(**uintptr)(__ccgo_up(n + 8))) + h1 = _height(tls, **(**uintptr)(__ccgo_up(n + 8 + 1*8))) + if Uint32FromInt32(h0-h1)+uint32(1) < uint32(3) { + old = (*Tnode1)(unsafe.Pointer(n)).Fh + if h0 < h1 { + v1 = h1 + int32(1) + } else { + v1 = h0 + int32(1) + } + (*Tnode1)(unsafe.Pointer(n)).Fh = v1 + return (*Tnode1)(unsafe.Pointer(n)).Fh - old + } + return _rot(tls, p, n, BoolInt32(h0 < h1)) +} + +type t__ccgo_fp__Xtsearch_2 = func(*TLS, uintptr, uintptr) int32 + +func Xtsearch(tls *TLS, key uintptr, rootp uintptr, __ccgo_fp_cmp uintptr) (r1 uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v rootp=%v __ccgo_fp_cmp=%v, (%v:)", tls, key, rootp, __ccgo_fp_cmp, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var a [96]uintptr + var c, i, v1 int32 + var n, r, v4 uintptr + var v7 bool + _, _, _, _, _, _, _, _ = a, c, i, n, r, v1, v4, v7 + if !(rootp != 0) { + return uintptr(0) + } + n = **(**uintptr)(__ccgo_up(rootp)) + i = 0 + v1 = i + i = i + 1 + a[v1] = rootp + for { + if !(n != 0) { + break + } + c = (*(*func(*TLS, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cmp})))(tls, key, (*Tnode1)(unsafe.Pointer(n)).Fkey) + if !(c != 0) { + return n + } + v1 = i + i = i + 1 + a[v1] = n + 8 + BoolUintptr(c > 0)*8 + n = **(**uintptr)(__ccgo_up(n + 8 + BoolUintptr(c > 0)*8)) + goto _2 + _2: + } + r = Xmalloc(tls, uint64(32)) + if !(r != 0) { + return uintptr(0) + } + (*Tnode1)(unsafe.Pointer(r)).Fkey = key + v4 = UintptrFromInt32(0) + **(**uintptr)(__ccgo_up(r + 8 + 1*8)) = v4 + **(**uintptr)(__ccgo_up(r + 8)) = v4 + (*Tnode1)(unsafe.Pointer(r)).Fh = int32(1) + /* insert new node, rebalance ancestors. */ + i = i - 1 + v1 = i + **(**uintptr)(__ccgo_up(a[v1])) = r + for { + if v7 = i != 0; v7 { + i = i - 1 + v1 = i + } + if !(v7 && X__tsearch_balance(tls, a[v1]) != 0) { + break + } + } + return r +} + +func _walk(tls *TLS, r uintptr, __ccgo_fp_action uintptr, d int32) { + if !(r != 0) { + return + } + if (*Tnode1)(unsafe.Pointer(r)).Fh == int32(1) { + (*(*func(*TLS, uintptr, TVISIT, int32))(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_action})))(tls, r, int32(_leaf), d) + } else { + (*(*func(*TLS, uintptr, TVISIT, int32))(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_action})))(tls, r, int32(_preorder), d) + _walk(tls, **(**uintptr)(__ccgo_up(r + 8)), __ccgo_fp_action, d+int32(1)) + (*(*func(*TLS, uintptr, TVISIT, int32))(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_action})))(tls, r, int32(_postorder), d) + _walk(tls, **(**uintptr)(__ccgo_up(r + 8 + 1*8)), __ccgo_fp_action, d+int32(1)) + (*(*func(*TLS, uintptr, TVISIT, int32))(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_action})))(tls, r, int32(_endorder), d) + } +} + +type t__ccgo_fp__Xtwalk_1 = func(*TLS, uintptr, int32, int32) + +func Xtwalk(tls *TLS, root uintptr, __ccgo_fp_action uintptr) { + if __ccgo_strace { + trc("tls=%v root=%v __ccgo_fp_action=%v, (%v:)", tls, root, __ccgo_fp_action, origin(2)) + } + _walk(tls, root, __ccgo_fp_action, 0) +} + +func Xpoll(tls *TLS, fds uintptr, n Tnfds_t, timeout int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fds=%v n=%v timeout=%v, (%v:)", tls, fds, n, timeout, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_poll), int64(fds), Int64FromUint64(n), int64(timeout), 0, 0, 0)))) +} + +func Xppoll(tls *TLS, fds uintptr, n Tnfds_t, to uintptr, mask uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fds=%v n=%v to=%v mask=%v, (%v:)", tls, fds, n, to, mask, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ns, v1, v2 int64 + var s Ttime_t + var v3 uintptr + _, _, _, _, _ = ns, s, v1, v2, v3 + if to != 0 { + v1 = (*Ttimespec)(unsafe.Pointer(to)).Ftv_sec + } else { + v1 = 0 + } + s = v1 + if to != 0 { + v2 = (*Ttimespec)(unsafe.Pointer(to)).Ftv_nsec + } else { + v2 = 0 + } + ns = v2 + if to != 0 { + *(*[2]int64)(unsafe.Pointer(bp)) = [2]int64{ + 0: s, + 1: ns, + } + v3 = bp + } else { + v3 = uintptr(0) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_ppoll), int64(fds), Int64FromUint64(n), int64(v3), int64(mask), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8)), 0)))) +} + +func Xpselect(tls *TLS, n int32, rfds uintptr, wfds uintptr, efds uintptr, ts uintptr, mask uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v n=%v rfds=%v wfds=%v efds=%v ts=%v mask=%v, (%v:)", tls, n, rfds, wfds, efds, ts, mask, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var ns, v1, v2 int64 + var s Ttime_t + var v3 uintptr + var _ /* data at bp+16 */ [2]Tsyscall_arg_t + _, _, _, _, _ = ns, s, v1, v2, v3 + **(**[2]Tsyscall_arg_t)(__ccgo_up(bp + 16)) = [2]Tsyscall_arg_t{ + 0: Int64FromUint64(uint64(mask)), + 1: int64(Int32FromInt32(_NSIG) / Int32FromInt32(8)), + } + if ts != 0 { + v1 = (*Ttimespec)(unsafe.Pointer(ts)).Ftv_sec + } else { + v1 = 0 + } + s = v1 + if ts != 0 { + v2 = (*Ttimespec)(unsafe.Pointer(ts)).Ftv_nsec + } else { + v2 = 0 + } + ns = v2 + if ts != 0 { + *(*[2]int64)(unsafe.Pointer(bp)) = [2]int64{ + 0: s, + 1: ns, + } + v3 = bp + } else { + v3 = uintptr(0) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_pselect6), int64(n), int64(rfds), int64(wfds), int64(efds), int64(v3), int64(bp+16))))) +} + +func Xselect(tls *TLS, n int32, rfds uintptr, wfds uintptr, efds uintptr, tv uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v n=%v rfds=%v wfds=%v efds=%v tv=%v, (%v:)", tls, n, rfds, wfds, efds, tv, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var max_time, s Ttime_t + var ns, v1, v2 int64 + var us Tsuseconds_t + var v3 uintptr + _, _, _, _, _, _, _ = max_time, ns, s, us, v1, v2, v3 + if tv != 0 { + v1 = (*Ttimeval)(unsafe.Pointer(tv)).Ftv_sec + } else { + v1 = 0 + } + s = v1 + if tv != 0 { + v2 = (*Ttimeval)(unsafe.Pointer(tv)).Ftv_usec + } else { + v2 = 0 + } + us = v2 + max_time = Int64FromUint64(Uint64FromUint64(1)<<(Uint64FromInt32(8)*Uint64FromInt64(8)-Uint64FromInt32(1)) - Uint64FromInt32(1)) + if s < 0 || us < 0 { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL)))) + } + if us/int64(1000000) > max_time-s { + s = max_time + us = int64(999999) + ns = int64(999999999) + } else { + s = s + us/int64(1000000) + us = us % int64(1000000) + ns = us * int64(1000) + } + if tv != 0 { + *(*[2]int64)(unsafe.Pointer(bp)) = [2]int64{ + 0: s, + 1: us, + } + v3 = bp + } else { + v3 = uintptr(0) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_select), int64(n), int64(rfds), int64(wfds), int64(efds), int64(v3), 0)))) +} + +var _all_mask = [1]uint64{ + 0: -Uint64FromUint64(1), +} + +var _app_mask = [1]uint64{ + 0: uint64(0xfffffffc7fffffff), +} + +func X__block_all_sigs(tls *TLS, set uintptr) { + if __ccgo_strace { + trc("tls=%v set=%v, (%v:)", tls, set, origin(2)) + } + X__syscall4(tls, int64(SYS_rt_sigprocmask), int64(Int32FromInt32(SIG_BLOCK)), int64(uintptr(unsafe.Pointer(&_all_mask))), int64(set), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8))) +} + +func X__block_app_sigs(tls *TLS, set uintptr) { + if __ccgo_strace { + trc("tls=%v set=%v, (%v:)", tls, set, origin(2)) + } + X__syscall4(tls, int64(SYS_rt_sigprocmask), int64(Int32FromInt32(SIG_BLOCK)), int64(uintptr(unsafe.Pointer(&_app_mask))), int64(set), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8))) +} + +func X__restore_sigs(tls *TLS, set uintptr) { + if __ccgo_strace { + trc("tls=%v set=%v, (%v:)", tls, set, origin(2)) + } + X__syscall4(tls, int64(SYS_rt_sigprocmask), int64(Int32FromInt32(SIG_SETMASK)), int64(set), int64(Int32FromInt32(0)), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8))) +} + +func Xgetitimer(tls *TLS, which int32, old uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v which=%v old=%v, (%v:)", tls, which, old, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var r int32 + var _ /* old32 at bp+0 */ [4]int64 + _ = r + if uint64(8) > uint64(8) { + r = int32(X__syscall2(tls, int64(SYS_getitimer), int64(which), int64(bp))) + if !(r != 0) { + (*Titimerval)(unsafe.Pointer(old)).Fit_interval.Ftv_sec = (**(**[4]int64)(__ccgo_up(bp)))[0] + (*Titimerval)(unsafe.Pointer(old)).Fit_interval.Ftv_usec = (**(**[4]int64)(__ccgo_up(bp)))[int32(1)] + (*Titimerval)(unsafe.Pointer(old)).Fit_value.Ftv_sec = (**(**[4]int64)(__ccgo_up(bp)))[int32(2)] + (*Titimerval)(unsafe.Pointer(old)).Fit_value.Ftv_usec = (**(**[4]int64)(__ccgo_up(bp)))[int32(3)] + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_getitimer), int64(which), int64(old))))) +} + +func Xkill(tls *TLS, pid Tpid_t, sig int32) (r int32) { + if __ccgo_strace { + trc("tls=%v pid=%v sig=%v, (%v:)", tls, pid, sig, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_kill), int64(pid), int64(sig))))) +} + +func Xkillpg(tls *TLS, pgid Tpid_t, sig int32) (r int32) { + if __ccgo_strace { + trc("tls=%v pgid=%v sig=%v, (%v:)", tls, pgid, sig, origin(2)) + defer func() { trc("-> %v", r) }() + } + if pgid < 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + return Xkill(tls, -pgid, sig) +} + +func Xpsiginfo(tls *TLS, si uintptr, msg uintptr) { + if __ccgo_strace { + trc("tls=%v si=%v msg=%v, (%v:)", tls, si, msg, origin(2)) + } + Xpsignal(tls, (*Tsiginfo_t)(unsafe.Pointer(si)).Fsi_signo, msg) +} + +func Xpsignal(tls *TLS, sig int32, msg uintptr) { + if __ccgo_strace { + trc("tls=%v sig=%v msg=%v, (%v:)", tls, sig, msg, origin(2)) + } + bp := tls.Alloc(32) + defer tls.Free(32) + var __need_unlock, old_errno, old_mode, v1 int32 + var f, old_locale, s, v2, v3 uintptr + _, _, _, _, _, _, _, _, _ = __need_unlock, f, old_errno, old_locale, old_mode, s, v1, v2, v3 + f = uintptr(unsafe.Pointer(&X__stderr_FILE)) + s = Xstrsignal(tls, sig) + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + /* Save stderr's orientation and encoding rule, since psignal is not + * permitted to change them. Save errno and restore it if there is no + * error since fprintf might change it even on success but psignal is + * not permitted to do so. */ + old_locale = (*TFILE)(unsafe.Pointer(f)).Flocale + old_mode = (*TFILE)(unsafe.Pointer(f)).Fmode + old_errno = **(**int32)(__ccgo_up(X__errno_location(tls))) + if msg != 0 { + v2 = msg + } else { + v2 = __ccgo_ts + } + if msg != 0 { + v3 = __ccgo_ts + 355 + } else { + v3 = __ccgo_ts + } + if Xfprintf(tls, f, __ccgo_ts+1089, VaList(bp+8, v2, v3, s)) >= 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = old_errno + } + (*TFILE)(unsafe.Pointer(f)).Fmode = old_mode + (*TFILE)(unsafe.Pointer(f)).Flocale = old_locale + if __need_unlock != 0 { + ___unlockfile(tls, f) + } +} + +func Xraise(tls *TLS, sig int32) (r int32) { + if __ccgo_strace { + trc("tls=%v sig=%v, (%v:)", tls, sig, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(128) + defer tls.Free(128) + var ret int32 + var _ /* set at bp+0 */ Tsigset_t + _ = ret + X__block_app_sigs(tls, bp) + ret = int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_tkill), int64((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Ftid), int64(sig))))) + X__restore_sigs(tls, bp) + return ret +} + +/* These functions will not work, but suffice for targets where the + * kernel sigaction structure does not actually use sa_restorer. */ +func X__restore(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } +} + +func X__restore_rt(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } +} + +func Xsetitimer(tls *TLS, which int32, new1 uintptr, old uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v which=%v new1=%v old=%v, (%v:)", tls, which, new1, old, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var is, vs Ttime_t + var ius, vus int64 + var r int32 + var _ /* old32 at bp+32 */ [4]int64 + _, _, _, _, _ = is, ius, r, vs, vus + if uint64(8) > uint64(8) { + is = (*Titimerval)(unsafe.Pointer(new1)).Fit_interval.Ftv_sec + vs = (*Titimerval)(unsafe.Pointer(new1)).Fit_value.Ftv_sec + ius = (*Titimerval)(unsafe.Pointer(new1)).Fit_interval.Ftv_usec + vus = (*Titimerval)(unsafe.Pointer(new1)).Fit_value.Ftv_usec + if !!((Uint64FromInt64(is)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) || !!((Uint64FromInt64(vs)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EOPNOTSUPP)))) + } + *(*[4]int64)(unsafe.Pointer(bp)) = [4]int64{ + 0: is, + 1: ius, + 2: vs, + 3: vus, + } + r = int32(X__syscall3(tls, int64(SYS_setitimer), int64(which), int64(bp), int64(bp+32))) + if !(r != 0) && old != 0 { + (*Titimerval)(unsafe.Pointer(old)).Fit_interval.Ftv_sec = (**(**[4]int64)(__ccgo_up(bp + 32)))[0] + (*Titimerval)(unsafe.Pointer(old)).Fit_interval.Ftv_usec = (**(**[4]int64)(__ccgo_up(bp + 32)))[int32(1)] + (*Titimerval)(unsafe.Pointer(old)).Fit_value.Ftv_sec = (**(**[4]int64)(__ccgo_up(bp + 32)))[int32(2)] + (*Titimerval)(unsafe.Pointer(old)).Fit_value.Ftv_usec = (**(**[4]int64)(__ccgo_up(bp + 32)))[int32(3)] + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_setitimer), int64(which), int64(new1), int64(old))))) +} + +const __restore = 0 + +type Tk_sigaction = struct { + Fhandler uintptr + Fflags uint64 + Frestorer uintptr + Fmask [2]uint32 +} + +var _unmask_done int32 +var _handler_set [1]uint64 + +func X__get_handler_set(tls *TLS, set uintptr) { + if __ccgo_strace { + trc("tls=%v set=%v, (%v:)", tls, set, origin(2)) + } + Xmemcpy(tls, set, uintptr(unsafe.Pointer(&_handler_set)), uint64(8)) +} + +func X__libc_sigaction(tls *TLS, sig int32, sa uintptr, old uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v sig=%v sa=%v old=%v, (%v:)", tls, sig, sa, old, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(80) + defer tls.Free(80) + var r int32 + var v1, v3 uintptr + var v2 int64 + var _ /* ksa at bp+8 */ Tk_sigaction + var _ /* ksa_old at bp+40 */ Tk_sigaction + _, _, _, _ = r, v1, v2, v3 + if sa != 0 { + if uint64(*(*uintptr)(unsafe.Pointer(sa))) > uint64(1) { + v1 = uintptr(unsafe.Pointer(&_handler_set)) + uintptr(Uint64FromInt32(sig-Int32FromInt32(1))/(Uint64FromInt32(8)*Uint64FromInt64(8)))*8 + v2 = Int64FromUint64(uint64(1) << (Uint64FromInt32(sig-Int32FromInt32(1)) % (Uint64FromInt32(8) * Uint64FromInt64(8)))) + if Uint64FromInt64(8) == Uint64FromInt64(4) { + // __asm__ __volatile__( + // + // "lock ; or %1, %0" + // : "=m"(*p) : "r"(v) : "memory" ); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 48, __ccgo_ts+1504) + } else { + // __asm__ __volatile__( + // + // "lock ; or %1, %0" + // : "=m"(*p) : "r"(v) : "memory" ); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 64, __ccgo_ts+1504) + } + /* If pthread_create has not yet been called, + * implementation-internal signals might not + * yet have been unblocked. They must be + * unblocked before any signal handler is + * installed, so that an application cannot + * receive an illegal sigset_t (with them + * blocked) as part of the ucontext_t passed + * to the signal handler. */ + if !(X__libc.Fthreaded != 0) && !(_unmask_done != 0) { + *(*[1]uint64)(unsafe.Pointer(bp)) = [1]uint64{ + 0: Uint64FromUint64(3) << (Int32FromInt32(32) * BoolInt32(Uint64FromInt64(8) > Uint64FromInt32(4))), + } + X__syscall4(tls, int64(SYS_rt_sigprocmask), int64(Int32FromInt32(SIG_UNBLOCK)), int64(bp), int64(Int32FromInt32(0)), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8))) + _unmask_done = int32(1) + } + if !((*Tsigaction)(unsafe.Pointer(sa)).Fsa_flags&Int32FromInt32(SA_RESTART) != 0) { + // __asm__ __volatile__( + // + // "mov %1, %0 ; lock ; orl $0,(%%rsp)" + // : "=m"(*p) : "r"(x) : "memory" ); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 88, __ccgo_ts+1504) + } + } + (**(**Tk_sigaction)(__ccgo_up(bp + 8))).Fhandler = *(*uintptr)(unsafe.Pointer(sa)) + (**(**Tk_sigaction)(__ccgo_up(bp + 8))).Fflags = Uint64FromInt32((*Tsigaction)(unsafe.Pointer(sa)).Fsa_flags) + (**(**Tk_sigaction)(__ccgo_up(bp + 8))).Fflags |= uint64(SA_RESTORER) + if (*Tsigaction)(unsafe.Pointer(sa)).Fsa_flags&int32(SA_SIGINFO) != 0 { + v1 = __ccgo_fp(X__restore_rt) + } else { + v1 = __ccgo_fp(X__restore_rt) + } + (**(**Tk_sigaction)(__ccgo_up(bp + 8))).Frestorer = v1 + Xmemcpy(tls, bp+8+24, sa+8, Uint64FromInt32(Int32FromInt32(_NSIG)/Int32FromInt32(8))) + } + if sa != 0 { + v1 = bp + 8 + } else { + v1 = uintptr(0) + } + if old != 0 { + v3 = bp + 40 + } else { + v3 = uintptr(0) + } + r = int32(X__syscall4(tls, int64(SYS_rt_sigaction), int64(sig), int64(v1), int64(v3), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8)))) + if old != 0 && !(r != 0) { + *(*uintptr)(unsafe.Pointer(old)) = (**(**Tk_sigaction)(__ccgo_up(bp + 40))).Fhandler + (*Tsigaction)(unsafe.Pointer(old)).Fsa_flags = Int32FromUint64((**(**Tk_sigaction)(__ccgo_up(bp + 40))).Fflags) + Xmemcpy(tls, old+8, bp+40+24, Uint64FromInt32(Int32FromInt32(_NSIG)/Int32FromInt32(8))) + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func X__sigaction(tls *TLS, sig int32, sa uintptr, old uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v sig=%v sa=%v old=%v, (%v:)", tls, sig, sa, old, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var r int32 + var _ /* set at bp+0 */ [1]uint64 + _ = r + if Uint32FromInt32(sig)-uint32(32) < uint32(3) || Uint32FromInt32(sig)-uint32(1) >= Uint32FromInt32(Int32FromInt32(_NSIG)-Int32FromInt32(1)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + /* Doing anything with the disposition of SIGABRT requires a lock, + * so that it cannot be changed while abort is terminating the + * process and so any change made by abort can't be observed. */ + if sig == int32(SIGABRT) { + X__block_all_sigs(tls, bp) + ___lock(tls, uintptr(unsafe.Pointer(&X__abort_lock))) + } + r = X__libc_sigaction(tls, sig, sa, old) + if sig == int32(SIGABRT) { + ___unlock(tls, uintptr(unsafe.Pointer(&X__abort_lock))) + X__restore_sigs(tls, bp) + } + return r +} + +func Xsigaction(tls *TLS, sig int32, sa uintptr, old uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v sig=%v sa=%v old=%v, (%v:)", tls, sig, sa, old, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__sigaction(tls, sig, sa, old) +} + +func Xsigaddset(tls *TLS, set uintptr, sig int32) (r int32) { + if __ccgo_strace { + trc("tls=%v set=%v sig=%v, (%v:)", tls, set, sig, origin(2)) + defer func() { trc("-> %v", r) }() + } + var s uint32 + _ = s + s = Uint32FromInt32(sig - int32(1)) + if s >= Uint32FromInt32(Int32FromInt32(_NSIG)-Int32FromInt32(1)) || Uint32FromInt32(sig)-uint32(32) < uint32(3) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + **(**uint64)(__ccgo_up(set + uintptr(uint64(s/uint32(8))/uint64(8))*8)) |= uint64(1) << (uint64(s) & (Uint64FromInt32(8)*Uint64FromInt64(8) - Uint64FromInt32(1))) + return 0 +} + +func Xsigaltstack(tls *TLS, ss uintptr, old uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v ss=%v old=%v, (%v:)", tls, ss, old, origin(2)) + defer func() { trc("-> %v", r) }() + } + if ss != 0 { + if !((*Tstack_t)(unsafe.Pointer(ss)).Fss_flags&Int32FromInt32(SS_DISABLE) != 0) && (*Tstack_t)(unsafe.Pointer(ss)).Fss_size < uint64(MINSIGSTKSZ) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOMEM) + return -int32(1) + } + if (*Tstack_t)(unsafe.Pointer(ss)).Fss_flags&int32(SS_ONSTACK) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_sigaltstack), int64(ss), int64(old))))) +} + +const SST_SIZE = 8 + +func Xsigandset(tls *TLS, dest uintptr, left uintptr, right uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v dest=%v left=%v right=%v, (%v:)", tls, dest, left, right, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var d, l, r uintptr + var i uint64 + _, _, _, _ = d, i, l, r + i = uint64(0) + d = dest + l = left + r = right + for { + if !(i < Uint64FromInt32(Int32FromInt32(_NSIG)/Int32FromInt32(8))/Uint64FromInt64(8)) { + break + } + **(**uint64)(__ccgo_up(d + uintptr(i)*8)) = **(**uint64)(__ccgo_up(l + uintptr(i)*8)) & **(**uint64)(__ccgo_up(r + uintptr(i)*8)) + goto _1 + _1: + ; + i = i + 1 + } + return 0 +} + +func Xsigdelset(tls *TLS, set uintptr, sig int32) (r int32) { + if __ccgo_strace { + trc("tls=%v set=%v sig=%v, (%v:)", tls, set, sig, origin(2)) + defer func() { trc("-> %v", r) }() + } + var s uint32 + _ = s + s = Uint32FromInt32(sig - int32(1)) + if s >= Uint32FromInt32(Int32FromInt32(_NSIG)-Int32FromInt32(1)) || Uint32FromInt32(sig)-uint32(32) < uint32(3) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + **(**uint64)(__ccgo_up(set + uintptr(uint64(s/uint32(8))/uint64(8))*8)) &= ^(Uint64FromUint64(1) << (uint64(s) & (Uint64FromInt32(8)*Uint64FromInt64(8) - Uint64FromInt32(1)))) + return 0 +} + +func Xsigemptyset(tls *TLS, set uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v set=%v, (%v:)", tls, set, origin(2)) + defer func() { trc("-> %v", r) }() + } + **(**uint64)(__ccgo_up(set)) = uint64(0) + if Bool(uint64(8) == uint64(4)) || Bool(int32(_NSIG) > int32(65)) { + **(**uint64)(__ccgo_up(set + 1*8)) = uint64(0) + } + if Bool(uint64(8) == uint64(4)) && Bool(int32(_NSIG) > int32(65)) { + **(**uint64)(__ccgo_up(set + 2*8)) = uint64(0) + **(**uint64)(__ccgo_up(set + 3*8)) = uint64(0) + } + return 0 +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xsigfillset(tls *TLS, set uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v set=%v, (%v:)", tls, set, origin(2)) + defer func() { trc("-> %v", r) }() + } + **(**uint64)(__ccgo_up(set)) = uint64(0xfffffffc7fffffff) + if int32(_NSIG) > int32(65) { + **(**uint64)(__ccgo_up(set + 1*8)) = uint64(0xffffffffffffffff) + } + return 0 +} + +func Xsigisemptyset(tls *TLS, set uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v set=%v, (%v:)", tls, set, origin(2)) + defer func() { trc("-> %v", r) }() + } + var i Tsize_t + _ = i + i = uint64(0) + for { + if !(i < Uint64FromInt32(Int32FromInt32(_NSIG)/Int32FromInt32(8))/Uint64FromInt64(8)) { + break + } + if **(**uint64)(__ccgo_up(set + uintptr(i)*8)) != 0 { + return 0 + } + goto _1 + _1: + ; + i = i + 1 + } + return int32(1) +} + +func Xsigismember(tls *TLS, set uintptr, sig int32) (r int32) { + if __ccgo_strace { + trc("tls=%v set=%v sig=%v, (%v:)", tls, set, sig, origin(2)) + defer func() { trc("-> %v", r) }() + } + var s uint32 + _ = s + s = Uint32FromInt32(sig - int32(1)) + if s >= Uint32FromInt32(Int32FromInt32(_NSIG)-Int32FromInt32(1)) { + return 0 + } + return BoolInt32(!!(**(**uint64)(__ccgo_up(set + uintptr(uint64(s/uint32(8))/uint64(8))*8))&(Uint64FromUint64(1)<<(uint64(s)&(Uint64FromInt32(8)*Uint64FromInt64(8)-Uint64FromInt32(1)))) != 0)) +} + +func Xsigorset(tls *TLS, dest uintptr, left uintptr, right uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v dest=%v left=%v right=%v, (%v:)", tls, dest, left, right, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var d, l, r uintptr + var i uint64 + _, _, _, _ = d, i, l, r + i = uint64(0) + d = dest + l = left + r = right + for { + if !(i < Uint64FromInt32(Int32FromInt32(_NSIG)/Int32FromInt32(8))/Uint64FromInt64(8)) { + break + } + **(**uint64)(__ccgo_up(d + uintptr(i)*8)) = **(**uint64)(__ccgo_up(l + uintptr(i)*8)) | **(**uint64)(__ccgo_up(r + uintptr(i)*8)) + goto _1 + _1: + ; + i = i + 1 + } + return 0 +} + +func Xsigpending(tls *TLS, set uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v set=%v, (%v:)", tls, set, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_rt_sigpending), int64(set), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8)))))) +} + +func Xsigprocmask(tls *TLS, how int32, set uintptr, old uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v how=%v set=%v old=%v, (%v:)", tls, how, set, old, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + r = _pthread_sigmask(tls, how, set, old) + if !(r != 0) { + return r + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = r + return -int32(1) +} + +func Xsigqueue(tls *TLS, pid Tpid_t, sig int32, value Tsigval) (r1 int32) { + if __ccgo_strace { + trc("tls=%v pid=%v sig=%v value=%v, (%v:)", tls, pid, sig, value, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(256) + defer tls.Free(256) + var r int32 + var _ /* set at bp+128 */ Tsigset_t + var _ /* si at bp+0 */ Tsiginfo_t + _ = r + Xmemset(tls, bp, 0, uint64(128)) + (**(**Tsiginfo_t)(__ccgo_up(bp))).Fsi_signo = sig + (**(**Tsiginfo_t)(__ccgo_up(bp))).Fsi_code = -int32(1) + *(*Tsigval)(unsafe.Pointer(bp + 16 + 8)) = value + *(*Tuid_t)(unsafe.Pointer(bp + 16 + 4)) = Xgetuid(tls) + X__block_app_sigs(tls, bp+128) + *(*Tpid_t)(unsafe.Pointer(bp + 16)) = Xgetpid(tls) + r = int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_rt_sigqueueinfo), int64(pid), int64(sig), int64(bp))))) + X__restore_sigs(tls, bp+128) + return r +} + +func X__libc_current_sigrtmax(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Int32FromInt32(_NSIG) - Int32FromInt32(1) +} + +func X__libc_current_sigrtmin(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(35) +} + +type t__jmp_buf = [8]uint64 + +type Tjmp_buf = [1]t__jmp_buf_tag + +type t__jmp_buf_tag = struct { + F__jb t__jmp_buf + F__fl uint64 + F__ss [16]uint64 +} + +type Tsigjmp_buf = [1]t__jmp_buf_tag + +func X__sigsetjmp_tail(tls *TLS, jb uintptr, ret int32) (r int32) { + if __ccgo_strace { + trc("tls=%v jb=%v ret=%v, (%v:)", tls, jb, ret, origin(2)) + defer func() { trc("-> %v", r) }() + } + var p, v1, v2 uintptr + _, _, _ = p, v1, v2 + p = jb + 72 + if ret != 0 { + v1 = p + } else { + v1 = uintptr(0) + } + if ret != 0 { + v2 = uintptr(0) + } else { + v2 = p + } + X__syscall4(tls, int64(SYS_rt_sigprocmask), int64(Int32FromInt32(SIG_SETMASK)), int64(v1), int64(v2), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8))) + return ret +} + +func Xsigsuspend(tls *TLS, mask uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v mask=%v, (%v:)", tls, mask, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_rt_sigsuspend), int64(mask), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8)), 0, 0, 0, 0)))) +} + +func _do_sigtimedwait(tls *TLS, mask uintptr, si uintptr, ts uintptr) (r int32) { + return int32(___syscall_cp(tls, int64(SYS_rt_sigtimedwait), int64(mask), int64(si), int64(ts), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8)), 0, 0)) +} + +func Xsigtimedwait(tls *TLS, mask uintptr, si uintptr, timeout uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v mask=%v si=%v timeout=%v, (%v:)", tls, mask, si, timeout, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret int32 + _ = ret + for cond := true; cond; cond = ret == -int32(EINTR) { + ret = _do_sigtimedwait(tls, mask, si, timeout) + } + return int32(X__syscall_ret(tls, Uint64FromInt32(ret))) +} + +func Xsigwait(tls *TLS, mask uintptr, sig uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v mask=%v sig=%v, (%v:)", tls, mask, sig, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(128) + defer tls.Free(128) + var _ /* si at bp+0 */ Tsiginfo_t + if Xsigtimedwait(tls, mask, bp, uintptr(0)) < 0 { + return -int32(1) + } + **(**int32)(__ccgo_up(sig)) = (**(**Tsiginfo_t)(__ccgo_up(bp))).Fsi_signo + return 0 +} + +func Xsigwaitinfo(tls *TLS, mask uintptr, si uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v mask=%v si=%v, (%v:)", tls, mask, si, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xsigtimedwait(tls, mask, si, uintptr(0)) +} + +func X__fxstat(tls *TLS, ver int32, fd int32, buf uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v ver=%v fd=%v buf=%v, (%v:)", tls, ver, fd, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfstat(tls, fd, buf) +} + +func X__fxstatat(tls *TLS, ver int32, fd int32, path uintptr, buf uintptr, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v ver=%v fd=%v path=%v buf=%v flag=%v, (%v:)", tls, ver, fd, path, buf, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfstatat(tls, fd, path, buf, flag) +} + +func X__lxstat(tls *TLS, ver int32, path uintptr, buf uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v ver=%v path=%v buf=%v, (%v:)", tls, ver, path, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xlstat(tls, path, buf) +} + +func X__xstat(tls *TLS, ver int32, path uintptr, buf uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v ver=%v path=%v buf=%v, (%v:)", tls, ver, path, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstat(tls, path, buf) +} + +func X__xmknod(tls *TLS, ver int32, path uintptr, mode Tmode_t, dev uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v ver=%v path=%v mode=%v dev=%v, (%v:)", tls, ver, path, mode, dev, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xmknod(tls, path, mode, **(**Tdev_t)(__ccgo_up(dev))) +} + +func X__xmknodat(tls *TLS, ver int32, fd int32, path uintptr, mode Tmode_t, dev uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v ver=%v fd=%v path=%v mode=%v dev=%v, (%v:)", tls, ver, fd, path, mode, dev, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xmknodat(tls, fd, path, mode, **(**Tdev_t)(__ccgo_up(dev))) +} + +func Xchmod(tls *TLS, path uintptr, mode Tmode_t) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v mode=%v, (%v:)", tls, path, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_chmod), int64(path), Int64FromUint32(mode))))) +} + +func Xfchmod(tls *TLS, fd int32, mode Tmode_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v mode=%v, (%v:)", tls, fd, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var ret int32 + var _ /* buf at bp+0 */ [27]int8 + _ = ret + ret = int32(X__syscall2(tls, int64(SYS_fchmod), int64(fd), Int64FromUint32(mode))) + if ret != -int32(EBADF) || X__syscall2(tls, int64(SYS_fcntl), int64(fd), int64(Int32FromInt32(F_GETFD))) < 0 { + return int32(X__syscall_ret(tls, Uint64FromInt32(ret))) + } + X__procfdname(tls, bp, Uint32FromInt32(fd)) + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_chmod), int64(bp), Int64FromUint32(mode))))) +} + +func Xfchmodat(tls *TLS, fd int32, path uintptr, mode Tmode_t, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v path=%v mode=%v flag=%v, (%v:)", tls, fd, path, mode, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(176) + defer tls.Free(176) + var fd2, ret, v1 int32 + var _ /* proc at bp+144 */ [27]int8 + var _ /* st at bp+0 */ Tstat + _, _, _ = fd2, ret, v1 + if !(flag != 0) { + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_fchmodat), int64(fd), int64(path), Int64FromUint32(mode))))) + } + ret = int32(X__syscall4(tls, int64(SYS_fchmodat2), int64(fd), int64(path), Int64FromUint32(mode), int64(flag))) + if ret != -int32(ENOSYS) { + return int32(X__syscall_ret(tls, Uint64FromInt32(ret))) + } + if flag != int32(AT_SYMLINK_NOFOLLOW) { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL)))) + } + if Xfstatat(tls, fd, path, bp, flag) != 0 { + return -int32(1) + } + if (**(**Tstat)(__ccgo_up(bp))).Fst_mode&uint32(S_IFMT) == uint32(S_IFLNK) { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EOPNOTSUPP)))) + } + v1 = int32(X__syscall3(tls, int64(SYS_openat), int64(fd), int64(path), int64(Int32FromInt32(O_RDONLY)|Int32FromInt32(O_PATH)|Int32FromInt32(O_NOFOLLOW)|Int32FromInt32(O_NOCTTY)|Int32FromInt32(O_CLOEXEC)))) + fd2 = v1 + if v1 < 0 { + if fd2 == -int32(ELOOP) { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EOPNOTSUPP)))) + } + return int32(X__syscall_ret(tls, Uint64FromInt32(fd2))) + } + X__procfdname(tls, bp+144, Uint32FromInt32(fd2)) + ret = Xstat(tls, bp+144, bp) + if !(ret != 0) { + if (**(**Tstat)(__ccgo_up(bp))).Fst_mode&uint32(S_IFMT) == uint32(S_IFLNK) { + ret = int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EOPNOTSUPP)))) + } else { + ret = int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_fchmodat), int64(-Int32FromInt32(100)), int64(bp+144), Int64FromUint32(mode))))) + } + } + X__syscall1(tls, int64(SYS_close), int64(fd2)) + return ret +} + +func X__fstat(tls *TLS, fd int32, st uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v st=%v, (%v:)", tls, fd, st, origin(2)) + defer func() { trc("-> %v", r) }() + } + if fd < 0 { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EBADF)))) + } + return X__fstatat(tls, fd, __ccgo_ts, st, int32(AT_EMPTY_PATH)) +} + +func Xfstat(tls *TLS, fd int32, st uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v st=%v, (%v:)", tls, fd, st, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fstat(tls, fd, st) +} + +type Tstatx1 = struct { + Fstx_mask Tuint32_t + Fstx_blksize Tuint32_t + Fstx_attributes Tuint64_t + Fstx_nlink Tuint32_t + Fstx_uid Tuint32_t + Fstx_gid Tuint32_t + Fstx_mode Tuint16_t + Fpad1 Tuint16_t + Fstx_ino Tuint64_t + Fstx_size Tuint64_t + Fstx_blocks Tuint64_t + Fstx_attributes_mask Tuint64_t + Fstx_atime struct { + Ftv_sec Tint64_t + Ftv_nsec Tuint32_t + Fpad Tint32_t + } + Fstx_btime struct { + Ftv_sec Tint64_t + Ftv_nsec Tuint32_t + Fpad Tint32_t + } + Fstx_ctime struct { + Ftv_sec Tint64_t + Ftv_nsec Tuint32_t + Fpad Tint32_t + } + Fstx_mtime struct { + Ftv_sec Tint64_t + Ftv_nsec Tuint32_t + Fpad Tint32_t + } + Fstx_rdev_major Tuint32_t + Fstx_rdev_minor Tuint32_t + Fstx_dev_major Tuint32_t + Fstx_dev_minor Tuint32_t + Fspare [14]Tuint64_t +} + +func _fstatat_statx(tls *TLS, fd int32, path uintptr, st uintptr, flag int32) (r int32) { + bp := tls.Alloc(256) + defer tls.Free(256) + var ret int32 + var _ /* stx at bp+0 */ Tstatx1 + _ = ret + flag = flag | int32(AT_NO_AUTOMOUNT) + ret = int32(X__syscall5(tls, int64(SYS_statx), int64(fd), int64(path), int64(flag), int64(Int32FromInt32(0x7ff)), int64(bp))) + if ret != 0 { + return ret + } + **(**Tstat)(__ccgo_up(st)) = Tstat{ + Fst_dev: uint64(uint64((**(**Tstatx1)(__ccgo_up(bp))).Fstx_dev_major)&Uint64FromUint64(0xfffff000)<= 0 && !(**(**int8)(__ccgo_up(path)) != 0) { + ret = int32(X__syscall2(tls, int64(SYS_fstat), int64(fd), int64(bp))) + if ret == -int32(EBADF) && X__syscall2(tls, int64(SYS_fcntl), int64(fd), int64(Int32FromInt32(F_GETFD))) >= 0 { + ret = int32(X__syscall4(tls, int64(SYS_newfstatat), int64(fd), int64(path), int64(bp), int64(flag))) + if ret == -int32(EINVAL) { + X__procfdname(tls, bp+144, Uint32FromInt32(fd)) + ret = int32(X__syscall2(tls, int64(SYS_stat), int64(bp+144), int64(bp))) + } + } + } else { + if (fd == -int32(100) || int32(**(**int8)(__ccgo_up(path))) == int32('/')) && flag == int32(AT_SYMLINK_NOFOLLOW) { + ret = int32(X__syscall2(tls, int64(SYS_lstat), int64(path), int64(bp))) + } else { + if (fd == -int32(100) || int32(**(**int8)(__ccgo_up(path))) == int32('/')) && !(flag != 0) { + ret = int32(X__syscall2(tls, int64(SYS_stat), int64(path), int64(bp))) + } else { + ret = int32(X__syscall4(tls, int64(SYS_newfstatat), int64(fd), int64(path), int64(bp), int64(flag))) + } + } + } + if ret != 0 { + return ret + } + **(**Tstat)(__ccgo_up(st)) = Tstat{ + Fst_dev: (**(**Tkstat)(__ccgo_up(bp))).Fst_dev, + Fst_ino: (**(**Tkstat)(__ccgo_up(bp))).Fst_ino, + Fst_nlink: (**(**Tkstat)(__ccgo_up(bp))).Fst_nlink, + Fst_mode: (**(**Tkstat)(__ccgo_up(bp))).Fst_mode, + Fst_uid: (**(**Tkstat)(__ccgo_up(bp))).Fst_uid, + Fst_gid: (**(**Tkstat)(__ccgo_up(bp))).Fst_gid, + Fst_rdev: (**(**Tkstat)(__ccgo_up(bp))).Fst_rdev, + Fst_size: (**(**Tkstat)(__ccgo_up(bp))).Fst_size, + Fst_blksize: (**(**Tkstat)(__ccgo_up(bp))).Fst_blksize, + Fst_blocks: (**(**Tkstat)(__ccgo_up(bp))).Fst_blocks, + Fst_atim: Ttimespec{ + Ftv_sec: (**(**Tkstat)(__ccgo_up(bp))).Fst_atime_sec, + Ftv_nsec: (**(**Tkstat)(__ccgo_up(bp))).Fst_atime_nsec, + }, + Fst_mtim: Ttimespec{ + Ftv_sec: (**(**Tkstat)(__ccgo_up(bp))).Fst_mtime_sec, + Ftv_nsec: (**(**Tkstat)(__ccgo_up(bp))).Fst_mtime_nsec, + }, + Fst_ctim: Ttimespec{ + Ftv_sec: (**(**Tkstat)(__ccgo_up(bp))).Fst_ctime_sec, + Ftv_nsec: (**(**Tkstat)(__ccgo_up(bp))).Fst_ctime_nsec, + }, + } + return 0 +} + +func X__fstatat(tls *TLS, fd int32, path uintptr, st uintptr, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v path=%v st=%v flag=%v, (%v:)", tls, fd, path, st, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret int32 + _ = ret + if uint64(8) < uint64(8) { + ret = _fstatat_statx(tls, fd, path, st, flag) + if ret != -int32(ENOSYS) { + return int32(X__syscall_ret(tls, Uint64FromInt32(ret))) + } + } + ret = _fstatat_kstat(tls, fd, path, st, flag) + return int32(X__syscall_ret(tls, Uint64FromInt32(ret))) +} + +func Xfstatat(tls *TLS, fd int32, path uintptr, st uintptr, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v path=%v st=%v flag=%v, (%v:)", tls, fd, path, st, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fstatat(tls, fd, path, st, flag) +} + +func Xfutimens(tls *TLS, fd int32, times uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v times=%v, (%v:)", tls, fd, times, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xutimensat(tls, fd, uintptr(0), times, 0) +} + +func X__futimesat(tls *TLS, dirfd int32, pathname uintptr, times uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v dirfd=%v pathname=%v times=%v, (%v:)", tls, dirfd, pathname, times, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var i int32 + var v2 uintptr + var _ /* ts at bp+0 */ [2]Ttimespec + _, _ = i, v2 + if times != 0 { + i = 0 + for { + if !(i < int32(2)) { + break + } + if Uint64FromInt64((**(**Ttimeval)(__ccgo_up(times + uintptr(i)*16))).Ftv_usec) >= uint64(1000000) { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL)))) + } + (**(**[2]Ttimespec)(__ccgo_up(bp)))[i].Ftv_sec = (**(**Ttimeval)(__ccgo_up(times + uintptr(i)*16))).Ftv_sec + (**(**[2]Ttimespec)(__ccgo_up(bp)))[i].Ftv_nsec = (**(**Ttimeval)(__ccgo_up(times + uintptr(i)*16))).Ftv_usec * int64(1000) + goto _1 + _1: + ; + i = i + 1 + } + } + if times != 0 { + v2 = bp + } else { + v2 = uintptr(0) + } + return Xutimensat(tls, dirfd, pathname, v2, 0) +} + +func Xfutimesat(tls *TLS, dirfd int32, pathname uintptr, times uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v dirfd=%v pathname=%v times=%v, (%v:)", tls, dirfd, pathname, times, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__futimesat(tls, dirfd, pathname, times) +} + +func Xlchmod(tls *TLS, path uintptr, mode Tmode_t) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v mode=%v, (%v:)", tls, path, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfchmodat(tls, -int32(100), path, mode, int32(AT_SYMLINK_NOFOLLOW)) +} + +func Xlstat(tls *TLS, path uintptr, buf uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v buf=%v, (%v:)", tls, path, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfstatat(tls, -int32(100), path, buf, int32(AT_SYMLINK_NOFOLLOW)) +} + +func Xmkdir(tls *TLS, path uintptr, mode Tmode_t) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v mode=%v, (%v:)", tls, path, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_mkdir), int64(path), Int64FromUint32(mode))))) +} + +func Xmkdirat(tls *TLS, fd int32, path uintptr, mode Tmode_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v path=%v mode=%v, (%v:)", tls, fd, path, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_mkdirat), int64(fd), int64(path), Int64FromUint32(mode))))) +} + +func Xmkfifo(tls *TLS, path uintptr, mode Tmode_t) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v mode=%v, (%v:)", tls, path, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xmknod(tls, path, mode|uint32(S_IFIFO), uint64(0)) +} + +func Xmkfifoat(tls *TLS, fd int32, path uintptr, mode Tmode_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v path=%v mode=%v, (%v:)", tls, fd, path, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xmknodat(tls, fd, path, mode|uint32(S_IFIFO), uint64(0)) +} + +func Xmknod(tls *TLS, path uintptr, mode Tmode_t, dev Tdev_t) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v mode=%v dev=%v, (%v:)", tls, path, mode, dev, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_mknod), int64(path), Int64FromUint32(mode), Int64FromUint64(dev))))) +} + +func Xmknodat(tls *TLS, fd int32, path uintptr, mode Tmode_t, dev Tdev_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v path=%v mode=%v dev=%v, (%v:)", tls, fd, path, mode, dev, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_mknodat), int64(fd), int64(path), Int64FromUint32(mode), Int64FromUint64(dev))))) +} + +func Xstat(tls *TLS, path uintptr, buf uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v buf=%v, (%v:)", tls, path, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfstatat(tls, -int32(100), path, buf, 0) +} + +func ___statfs(tls *TLS, path uintptr, buf uintptr) (r int32) { + **(**Tstatfs)(__ccgo_up(buf)) = Tstatfs{} + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_statfs), int64(path), int64(buf))))) +} + +func Xfstatfs(tls *TLS, fd int32, buf uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v, (%v:)", tls, fd, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + **(**Tstatfs)(__ccgo_up(buf)) = Tstatfs{} + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_fstatfs), int64(fd), int64(buf))))) +} + +func _fixup(tls *TLS, out uintptr, in uintptr) { + var v1 uint64 + _ = v1 + **(**Tstatvfs)(__ccgo_up(out)) = Tstatvfs{} + (*Tstatvfs)(unsafe.Pointer(out)).Ff_bsize = (*Tstatfs)(unsafe.Pointer(in)).Ff_bsize + if (*Tstatfs)(unsafe.Pointer(in)).Ff_frsize != 0 { + v1 = (*Tstatfs)(unsafe.Pointer(in)).Ff_frsize + } else { + v1 = (*Tstatfs)(unsafe.Pointer(in)).Ff_bsize + } + (*Tstatvfs)(unsafe.Pointer(out)).Ff_frsize = v1 + (*Tstatvfs)(unsafe.Pointer(out)).Ff_blocks = (*Tstatfs)(unsafe.Pointer(in)).Ff_blocks + (*Tstatvfs)(unsafe.Pointer(out)).Ff_bfree = (*Tstatfs)(unsafe.Pointer(in)).Ff_bfree + (*Tstatvfs)(unsafe.Pointer(out)).Ff_bavail = (*Tstatfs)(unsafe.Pointer(in)).Ff_bavail + (*Tstatvfs)(unsafe.Pointer(out)).Ff_files = (*Tstatfs)(unsafe.Pointer(in)).Ff_files + (*Tstatvfs)(unsafe.Pointer(out)).Ff_ffree = (*Tstatfs)(unsafe.Pointer(in)).Ff_ffree + (*Tstatvfs)(unsafe.Pointer(out)).Ff_favail = (*Tstatfs)(unsafe.Pointer(in)).Ff_ffree + (*Tstatvfs)(unsafe.Pointer(out)).Ff_fsid = Uint64FromInt32(**(**int32)(__ccgo_up(in + 56))) + (*Tstatvfs)(unsafe.Pointer(out)).Ff_flag = (*Tstatfs)(unsafe.Pointer(in)).Ff_flags + (*Tstatvfs)(unsafe.Pointer(out)).Ff_namemax = (*Tstatfs)(unsafe.Pointer(in)).Ff_namelen + (*Tstatvfs)(unsafe.Pointer(out)).Ff_type = uint32((*Tstatfs)(unsafe.Pointer(in)).Ff_type) +} + +func Xstatvfs(tls *TLS, path uintptr, buf uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v buf=%v, (%v:)", tls, path, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(128) + defer tls.Free(128) + var _ /* kbuf at bp+0 */ Tstatfs + if ___statfs(tls, path, bp) < 0 { + return -int32(1) + } + _fixup(tls, buf, bp) + return 0 +} + +func Xfstatvfs(tls *TLS, fd int32, buf uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v, (%v:)", tls, fd, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(128) + defer tls.Free(128) + var _ /* kbuf at bp+0 */ Tstatfs + if Xfstatfs(tls, fd, bp) < 0 { + return -int32(1) + } + _fixup(tls, buf, bp) + return 0 +} + +func Xumask(tls *TLS, mode Tmode_t) (r Tmode_t) { + if __ccgo_strace { + trc("tls=%v mode=%v, (%v:)", tls, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Uint32FromInt64(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_umask), Int64FromUint32(mode))))) +} + +func Xutimensat(tls *TLS, fd int32, path uintptr, times uintptr, flags int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v path=%v times=%v flags=%v, (%v:)", tls, fd, path, times, flags, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var i, r int32 + var tv uintptr + var _ /* tmp at bp+0 */ [4]int64 + _, _, _ = i, r, tv + if times != 0 && (**(**Ttimespec)(__ccgo_up(times))).Ftv_nsec == int64(UTIME_NOW) && (**(**Ttimespec)(__ccgo_up(times + 1*16))).Ftv_nsec == int64(UTIME_NOW) { + times = uintptr(0) + } + r = int32(X__syscall4(tls, int64(SYS_utimensat), int64(fd), int64(path), int64(times), int64(flags))) + if r != -int32(ENOSYS) || flags != 0 { + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) + } + tv = uintptr(0) + if times != 0 { + tv = bp + i = 0 + for { + if !(i < int32(2)) { + break + } + if Uint64FromInt64((**(**Ttimespec)(__ccgo_up(times + uintptr(i)*16))).Ftv_nsec) >= uint64(1000000000) { + if (**(**Ttimespec)(__ccgo_up(times + uintptr(i)*16))).Ftv_nsec == int64(UTIME_NOW) || (**(**Ttimespec)(__ccgo_up(times + uintptr(i)*16))).Ftv_nsec == int64(UTIME_OMIT) { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(ENOSYS)))) + } + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL)))) + } + (**(**[4]int64)(__ccgo_up(bp)))[int32(2)*i+0] = (**(**Ttimespec)(__ccgo_up(times + uintptr(i)*16))).Ftv_sec + (**(**[4]int64)(__ccgo_up(bp)))[int32(2)*i+int32(1)] = (**(**Ttimespec)(__ccgo_up(times + uintptr(i)*16))).Ftv_nsec / int64(1000) + goto _1 + _1: + ; + i = i + 1 + } + } + r = int32(X__syscall3(tls, int64(SYS_futimesat), int64(fd), int64(path), int64(tv))) + if r != -int32(ENOSYS) || fd != -int32(100) { + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) + } + r = int32(X__syscall2(tls, int64(SYS_utimes), int64(path), int64(tv))) + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func X__fclose_ca(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return (*(*func(*TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fclose1})))(tls, f) +} + +func X__fdopen(tls *TLS, fd int32, mode uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v fd=%v mode=%v, (%v:)", tls, fd, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var f, v1 uintptr + var flags, v2 int32 + var _ /* wsz at bp+0 */ Twinsize + _, _, _, _ = f, flags, v1, v2 + /* Check for valid initial mode character */ + if !(Xstrchr(tls, __ccgo_ts+1521, int32(**(**int8)(__ccgo_up(mode)))) != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(0) + } + /* Allocate FILE+buffer or fail */ + v1 = Xmalloc(tls, Uint64FromInt64(232)+Uint64FromInt32(UNGET)+Uint64FromInt32(BUFSIZ)) + f = v1 + if !(v1 != 0) { + return uintptr(0) + } + /* Zero-fill only the struct, not the buffer */ + Xmemset(tls, f, 0, uint64(232)) + /* Impose mode restrictions */ + if !(Xstrchr(tls, mode, int32('+')) != 0) { + if int32(**(**int8)(__ccgo_up(mode))) == int32('r') { + v2 = int32(F_NOWR) + } else { + v2 = int32(F_NORD) + } + (*TFILE)(unsafe.Pointer(f)).Fflags = Uint32FromInt32(v2) + } + /* Apply close-on-exec flag */ + if Xstrchr(tls, mode, int32('e')) != 0 { + X__syscall3(tls, int64(SYS_fcntl), int64(fd), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + } + /* Set append mode on fd if opened for append */ + if int32(**(**int8)(__ccgo_up(mode))) == int32('a') { + flags = int32(X__syscall2(tls, int64(SYS_fcntl), int64(fd), int64(Int32FromInt32(F_GETFL)))) + if !(flags&Int32FromInt32(O_APPEND) != 0) { + X__syscall3(tls, int64(SYS_fcntl), int64(fd), int64(Int32FromInt32(F_SETFL)), int64(flags|Int32FromInt32(O_APPEND))) + } + **(**uint32)(__ccgo_up(f)) |= uint32(F_APP) + } + (*TFILE)(unsafe.Pointer(f)).Ffd = fd + (*TFILE)(unsafe.Pointer(f)).Fbuf = f + uintptr(232) + uintptr(UNGET) + (*TFILE)(unsafe.Pointer(f)).Fbuf_size = uint64(BUFSIZ) + /* Activate line buffered mode for terminals */ + (*TFILE)(unsafe.Pointer(f)).Flbf = -int32(1) + if !((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_NOWR) != 0) && !(X__syscall3(tls, int64(SYS_ioctl), int64(fd), int64(Int32FromInt32(TIOCGWINSZ)), int64(bp)) != 0) { + (*TFILE)(unsafe.Pointer(f)).Flbf = int32('\n') + } + /* Initialize op ptrs. No problem if some are unneeded. */ + (*TFILE)(unsafe.Pointer(f)).Fread = __ccgo_fp(X__stdio_read) + (*TFILE)(unsafe.Pointer(f)).Fwrite = __ccgo_fp(X__stdio_write) + (*TFILE)(unsafe.Pointer(f)).Fseek = __ccgo_fp(X__stdio_seek) + (*TFILE)(unsafe.Pointer(f)).Fclose1 = __ccgo_fp(X__stdio_close) + if !(X__libc.Fthreaded != 0) { + AtomicStorePInt32(f+140, -int32(1)) + } + /* Add new FILE to open file list */ + return X__ofl_add(tls, f) +} + +func Xfdopen(tls *TLS, fd int32, mode uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v fd=%v mode=%v, (%v:)", tls, fd, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fdopen(tls, fd, mode) +} + +func X__fmodeflags(tls *TLS, mode uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v mode=%v, (%v:)", tls, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + var flags int32 + _ = flags + if Xstrchr(tls, mode, int32('+')) != 0 { + flags = int32(O_RDWR) + } else { + if int32(**(**int8)(__ccgo_up(mode))) == int32('r') { + flags = O_RDONLY + } else { + flags = int32(O_WRONLY) + } + } + if Xstrchr(tls, mode, int32('x')) != 0 { + flags = flags | int32(O_EXCL) + } + if Xstrchr(tls, mode, int32('e')) != 0 { + flags = flags | int32(O_CLOEXEC) + } + if int32(**(**int8)(__ccgo_up(mode))) != int32('r') { + flags = flags | int32(O_CREAT) + } + if int32(**(**int8)(__ccgo_up(mode))) == int32('w') { + flags = flags | int32(O_TRUNC) + } + if int32(**(**int8)(__ccgo_up(mode))) == int32('a') { + flags = flags | int32(O_APPEND) + } + return flags +} + +func X__fopen_rb_ca(tls *TLS, filename uintptr, f uintptr, buf uintptr, len1 Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v filename=%v f=%v buf=%v len1=%v, (%v:)", tls, filename, f, buf, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + Xmemset(tls, f, 0, uint64(232)) + (*TFILE)(unsafe.Pointer(f)).Ffd = int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_open), int64(filename), int64(Int32FromInt32(O_RDONLY)|Int32FromInt32(O_CLOEXEC)|Int32FromInt32(O_LARGEFILE)))))) + if (*TFILE)(unsafe.Pointer(f)).Ffd < 0 { + return uintptr(0) + } + X__syscall3(tls, int64(SYS_fcntl), int64((*TFILE)(unsafe.Pointer(f)).Ffd), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + (*TFILE)(unsafe.Pointer(f)).Fflags = Uint32FromInt32(Int32FromInt32(F_NOWR) | Int32FromInt32(F_PERM)) + (*TFILE)(unsafe.Pointer(f)).Fbuf = buf + uintptr(UNGET) + (*TFILE)(unsafe.Pointer(f)).Fbuf_size = len1 - uint64(UNGET) + (*TFILE)(unsafe.Pointer(f)).Fread = __ccgo_fp(X__stdio_read) + (*TFILE)(unsafe.Pointer(f)).Fseek = __ccgo_fp(X__stdio_seek) + (*TFILE)(unsafe.Pointer(f)).Fclose1 = __ccgo_fp(X__stdio_close) + AtomicStorePInt32(f+140, -int32(1)) + return f +} + +func X__overflow(tls *TLS, f uintptr, _c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v _c=%v, (%v:)", tls, f, _c, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uint8 + var v2, v3 uintptr + var _ /* c at bp+0 */ uint8 + _, _, _ = v1, v2, v3 + **(**uint8)(__ccgo_up(bp)) = Uint8FromInt32(_c) + if !((*TFILE)(unsafe.Pointer(f)).Fwend != 0) && X__towrite(tls, f) != 0 { + return -int32(1) + } + if (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwend && Int32FromUint8(**(**uint8)(__ccgo_up(bp))) != (*TFILE)(unsafe.Pointer(f)).Flbf { + v1 = **(**uint8)(__ccgo_up(bp)) + v3 = f + 40 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + **(**uint8)(__ccgo_up(v2)) = v1 + return Int32FromUint8(v1) + } + if (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tsize_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fwrite})))(tls, f, bp, uint64(1)) != uint64(1) { + return -int32(1) + } + return Int32FromUint8(**(**uint8)(__ccgo_up(bp))) +} + +func _dummy9(tls *TLS, fd int32) (r int32) { + return fd +} + +func X__stdio_close(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_close), int64(_dummy9(tls, (*TFILE)(unsafe.Pointer(f)).Ffd)))))) +} + +var _dummy_file = uintptr(0) + +func _close_file(tls *TLS, f uintptr) { + if !(f != 0) { + return + } + if AtomicLoadPInt32(f+140) >= 0 { + ___lockfile(tls, f) + } + if (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwbase { + (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tsize_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fwrite})))(tls, f, uintptr(0), uint64(0)) + } + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + (*(*func(*TLS, uintptr, Toff_t, int32) Toff_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fseek})))(tls, f, int64((*TFILE)(unsafe.Pointer(f)).Frpos)-int64((*TFILE)(unsafe.Pointer(f)).Frend), int32(1)) + } +} + +func X__stdio_exit(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + var f uintptr + _ = f + f = **(**uintptr)(__ccgo_up(X__ofl_lock(tls))) + for { + if !(f != 0) { + break + } + _close_file(tls, f) + goto _1 + _1: + ; + f = (*TFILE)(unsafe.Pointer(f)).Fnext + } + _close_file(tls, AtomicLoadPUintptr(uintptr(unsafe.Pointer(&X__stdin_used)))) + _close_file(tls, AtomicLoadPUintptr(uintptr(unsafe.Pointer(&X__stdout_used)))) + _close_file(tls, AtomicLoadPUintptr(uintptr(unsafe.Pointer(&X__stderr_used)))) +} + +func X__stdio_exit_needed(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + X__stdio_exit(tls) +} + +func X__stdio_read(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v f=%v buf=%v len1=%v, (%v:)", tls, f, buf, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var cnt Tssize_t + var v1 int64 + var v2 int32 + var v3, v4 uintptr + var _ /* iov at bp+0 */ [2]Tiovec + _, _, _, _, _ = cnt, v1, v2, v3, v4 + **(**[2]Tiovec)(__ccgo_up(bp)) = [2]Tiovec{ + 0: { + Fiov_base: buf, + Fiov_len: len1 - BoolUint64(!!((*TFILE)(unsafe.Pointer(f)).Fbuf_size != 0)), + }, + 1: { + Fiov_base: (*TFILE)(unsafe.Pointer(f)).Fbuf, + Fiov_len: (*TFILE)(unsafe.Pointer(f)).Fbuf_size, + }, + } + if (**(**[2]Tiovec)(__ccgo_up(bp)))[0].Fiov_len != 0 { + v1 = X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_readv), int64((*TFILE)(unsafe.Pointer(f)).Ffd), int64(bp), int64(Int32FromInt32(2))))) + } else { + v1 = X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, SYS_read, int64((*TFILE)(unsafe.Pointer(f)).Ffd), int64((**(**[2]Tiovec)(__ccgo_up(bp)))[int32(1)].Fiov_base), Int64FromUint64((**(**[2]Tiovec)(__ccgo_up(bp)))[int32(1)].Fiov_len)))) + } + cnt = v1 + if cnt <= 0 { + if cnt != 0 { + v2 = int32(F_ERR) + } else { + v2 = int32(F_EOF) + } + **(**uint32)(__ccgo_up(f)) |= Uint32FromInt32(v2) + return uint64(0) + } + if Uint64FromInt64(cnt) <= (**(**[2]Tiovec)(__ccgo_up(bp)))[0].Fiov_len { + return Uint64FromInt64(cnt) + } + cnt = Int64FromUint64(uint64(cnt) - (**(**[2]Tiovec)(__ccgo_up(bp)))[0].Fiov_len) + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Frend = (*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr(cnt) + if (*TFILE)(unsafe.Pointer(f)).Fbuf_size != 0 { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + **(**uint8)(__ccgo_up(buf + uintptr(len1-uint64(1)))) = **(**uint8)(__ccgo_up(v3)) + } + return len1 +} + +func X__stdio_seek(tls *TLS, f uintptr, off Toff_t, whence int32) (r Toff_t) { + if __ccgo_strace { + trc("tls=%v f=%v off=%v whence=%v, (%v:)", tls, f, off, whence, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lseek(tls, (*TFILE)(unsafe.Pointer(f)).Ffd, off, whence) +} + +func X__stdio_write(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v f=%v buf=%v len1=%v, (%v:)", tls, f, buf, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var cnt Tssize_t + var iov, v2, v3 uintptr + var iovcnt int32 + var rem Tsize_t + var v5 uint64 + var _ /* iovs at bp+0 */ [2]Tiovec + _, _, _, _, _, _, _ = cnt, iov, iovcnt, rem, v2, v3, v5 + **(**[2]Tiovec)(__ccgo_up(bp)) = [2]Tiovec{ + 0: { + Fiov_base: (*TFILE)(unsafe.Pointer(f)).Fwbase, + Fiov_len: Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Fwpos) - int64((*TFILE)(unsafe.Pointer(f)).Fwbase)), + }, + 1: { + Fiov_base: buf, + Fiov_len: len1, + }, + } + iov = bp + rem = (**(**Tiovec)(__ccgo_up(iov))).Fiov_len + (**(**Tiovec)(__ccgo_up(iov + 1*16))).Fiov_len + iovcnt = int32(2) + for { + cnt = X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_writev), int64((*TFILE)(unsafe.Pointer(f)).Ffd), int64(iov), int64(iovcnt)))) + if Uint64FromInt64(cnt) == rem { + (*TFILE)(unsafe.Pointer(f)).Fwend = (*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr((*TFILE)(unsafe.Pointer(f)).Fbuf_size) + v2 = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Fwbase = v2 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v2 + return len1 + } + if cnt < 0 { + v3 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Fwend = v3 + v2 = v3 + (*TFILE)(unsafe.Pointer(f)).Fwbase = v2 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v2 + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) + if iovcnt == int32(2) { + v5 = uint64(0) + } else { + v5 = len1 - (**(**Tiovec)(__ccgo_up(iov))).Fiov_len + } + return v5 + } + rem = rem - Uint64FromInt64(cnt) + if Uint64FromInt64(cnt) > (**(**Tiovec)(__ccgo_up(iov))).Fiov_len { + cnt = Int64FromUint64(uint64(cnt) - (**(**Tiovec)(__ccgo_up(iov))).Fiov_len) + iov += 16 + iovcnt = iovcnt - 1 + } + (**(**Tiovec)(__ccgo_up(iov))).Fiov_base = (**(**Tiovec)(__ccgo_up(iov))).Fiov_base + uintptr(cnt) + (**(**Tiovec)(__ccgo_up(iov))).Fiov_len -= Uint64FromInt64(cnt) + goto _1 + _1: + } + return r +} + +func X__stdout_write(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v f=%v buf=%v len1=%v, (%v:)", tls, f, buf, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* wsz at bp+0 */ Twinsize + (*TFILE)(unsafe.Pointer(f)).Fwrite = __ccgo_fp(X__stdio_write) + if !((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_SVB) != 0) && X__syscall3(tls, int64(SYS_ioctl), int64((*TFILE)(unsafe.Pointer(f)).Ffd), int64(Int32FromInt32(TIOCGWINSZ)), int64(bp)) != 0 { + (*TFILE)(unsafe.Pointer(f)).Flbf = -int32(1) + } + return X__stdio_write(tls, f, buf, len1) +} + +func X__toread(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1, v2 uintptr + var v4 int32 + _, _, _ = v1, v2, v4 + **(**int32)(__ccgo_up(f + 136)) |= (*TFILE)(unsafe.Pointer(f)).Fmode - int32(1) + if (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwbase { + (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tsize_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fwrite})))(tls, f, uintptr(0), uint64(0)) + } + v2 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Fwend = v2 + v1 = v2 + (*TFILE)(unsafe.Pointer(f)).Fwbase = v1 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v1 + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_NORD) != 0 { + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) + return -int32(1) + } + v1 = (*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr((*TFILE)(unsafe.Pointer(f)).Fbuf_size) + (*TFILE)(unsafe.Pointer(f)).Frend = v1 + (*TFILE)(unsafe.Pointer(f)).Frpos = v1 + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_EOF) != 0 { + v4 = -int32(1) + } else { + v4 = 0 + } + return v4 +} + +func X__toread_needs_stdio_exit(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + X__stdio_exit_needed(tls) +} + +func X__towrite(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 uintptr + _ = v1 + **(**int32)(__ccgo_up(f + 136)) |= (*TFILE)(unsafe.Pointer(f)).Fmode - int32(1) + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_NOWR) != 0 { + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) + return -int32(1) + } + /* Clear read buffer (easier than summoning nasal demons) */ + v1 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Frend = v1 + (*TFILE)(unsafe.Pointer(f)).Frpos = v1 + /* Activate write through the buffer. */ + v1 = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Fwbase = v1 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v1 + (*TFILE)(unsafe.Pointer(f)).Fwend = (*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr((*TFILE)(unsafe.Pointer(f)).Fbuf_size) + return 0 +} + +func X__towrite_needs_stdio_exit(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + X__stdio_exit_needed(tls) +} + +/* This function assumes it will never be called if there is already + * data buffered for reading. */ + +func X__uflow(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* c at bp+0 */ uint8 + if !(X__toread(tls, f) != 0) && (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tsize_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fread})))(tls, f, bp, uint64(1)) == uint64(1) { + return Int32FromUint8(**(**uint8)(__ccgo_up(bp))) + } + return -int32(1) +} + +func Xasprintf(tls *TLS, s uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v va=%v, (%v:)", tls, s, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvasprintf(tls, s, fmt, ap) + _ = ap + return ret +} + +func Xclearerr(tls *TLS, f uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } + var __need_unlock, v1 int32 + _, _ = __need_unlock, v1 + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + **(**uint32)(__ccgo_up(f)) &= Uint32FromInt32(^(Int32FromInt32(F_EOF) | Int32FromInt32(F_ERR))) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } +} + +func Xclearerr_unlocked(tls *TLS, f uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } + Xclearerr(tls, f) +} + +func Xdprintf(tls *TLS, fd int32, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v fmt=%v va=%v, (%v:)", tls, fd, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvdprintf(tls, fd, fmt, ap) + _ = ap + return ret +} + +const FSETLOCKING_BYCALLER = 2 +const FSETLOCKING_INTERNAL = 1 +const FSETLOCKING_QUERY = 0 + +func X_flushlbf(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + Xfflush(tls, uintptr(0)) +} + +func X__fsetlocking(tls *TLS, f uintptr, type1 int32) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v type1=%v, (%v:)", tls, f, type1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return 0 +} + +func X__fwriting(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32((*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_NORD) != 0 || (*TFILE)(unsafe.Pointer(f)).Fwend != 0) +} + +func X__freading(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32((*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_NOWR) != 0 || (*TFILE)(unsafe.Pointer(f)).Frend != 0) +} + +func X__freadable(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(!((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_NORD) != 0)) +} + +func X__fwritable(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(!((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_NOWR) != 0)) +} + +func X__flbf(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32((*TFILE)(unsafe.Pointer(f)).Flbf >= 0) +} + +func X__fbufsize(tls *TLS, f uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return (*TFILE)(unsafe.Pointer(f)).Fbuf_size +} + +func X__fpending(tls *TLS, f uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int64 + _ = v1 + if (*TFILE)(unsafe.Pointer(f)).Fwend != 0 { + v1 = int64((*TFILE)(unsafe.Pointer(f)).Fwpos) - int64((*TFILE)(unsafe.Pointer(f)).Fwbase) + } else { + v1 = 0 + } + return Uint64FromInt64(v1) +} + +func X__fpurge(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1, v2 uintptr + _, _ = v1, v2 + if !(f != 0) { // libbsd fpurge test fails w/o this. + return int32(1) + } + v2 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Fwend = v2 + v1 = v2 + (*TFILE)(unsafe.Pointer(f)).Fwbase = v1 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v1 + v1 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Frend = v1 + (*TFILE)(unsafe.Pointer(f)).Frpos = v1 + return 0 +} + +func Xfpurge(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fpurge(tls, f) +} + +func X__freadahead(tls *TLS, f uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int64 + _ = v1 + if (*TFILE)(unsafe.Pointer(f)).Frend != 0 { + v1 = int64((*TFILE)(unsafe.Pointer(f)).Frend) - int64((*TFILE)(unsafe.Pointer(f)).Frpos) + } else { + v1 = 0 + } + return Uint64FromInt64(v1) +} + +func X__freadptr(tls *TLS, f uintptr, sizep uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v sizep=%v, (%v:)", tls, f, sizep, origin(2)) + defer func() { trc("-> %v", r) }() + } + if (*TFILE)(unsafe.Pointer(f)).Frpos == (*TFILE)(unsafe.Pointer(f)).Frend { + return uintptr(0) + } + **(**Tsize_t)(__ccgo_up(sizep)) = Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Frend) - int64((*TFILE)(unsafe.Pointer(f)).Frpos)) + return (*TFILE)(unsafe.Pointer(f)).Frpos +} + +func X__freadptrinc(tls *TLS, f uintptr, inc Tsize_t) { + if __ccgo_strace { + trc("tls=%v f=%v inc=%v, (%v:)", tls, f, inc, origin(2)) + } + **(**uintptr)(__ccgo_up(f + 8)) += uintptr(inc) +} + +func X__fseterr(tls *TLS, f uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) +} + +func _dummy10(tls *TLS, f uintptr) { +} + +func Xfclose(tls *TLS, f uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var __need_unlock, r, v1 int32 + var head uintptr + _, _, _, _ = __need_unlock, head, r, v1 + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + r = Xfflush(tls, f) + r = r | (*(*func(*TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fclose1})))(tls, f) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + /* Past this point, f is closed and any further explict access + * to it is undefined. However, it still exists as an entry in + * the open file list and possibly in the thread's locked files + * list, if it was closed while explicitly locked. Functions + * which process these lists must tolerate dead FILE objects + * (which necessarily have inactive buffer pointers) without + * producing any side effects. */ + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_PERM) != 0 { + return r + } + X__unlist_locked_file(tls, f) + head = X__ofl_lock(tls) + if (*TFILE)(unsafe.Pointer(f)).Fprev != 0 { + (*TFILE)(unsafe.Pointer((*TFILE)(unsafe.Pointer(f)).Fprev)).Fnext = (*TFILE)(unsafe.Pointer(f)).Fnext + } + if (*TFILE)(unsafe.Pointer(f)).Fnext != 0 { + (*TFILE)(unsafe.Pointer((*TFILE)(unsafe.Pointer(f)).Fnext)).Fprev = (*TFILE)(unsafe.Pointer(f)).Fprev + } + if **(**uintptr)(__ccgo_up(head)) == f { + **(**uintptr)(__ccgo_up(head)) = (*TFILE)(unsafe.Pointer(f)).Fnext + } + X__ofl_unlock(tls) + Xfree(tls, (*TFILE)(unsafe.Pointer(f)).Fgetln_buf) + Xfree(tls, f) + return r +} + +func Xfeof(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, ret, v1 int32 + _, _, _ = __need_unlock, ret, v1 + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + ret = BoolInt32(!!((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_EOF) != 0)) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return ret +} + +func X_IO_feof_unlocked(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfeof(tls, f) +} + +func Xfeof_unlocked(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfeof(tls, f) +} + +func Xferror(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, ret, v1 int32 + _, _, _ = __need_unlock, ret, v1 + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + ret = BoolInt32(!!((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_ERR) != 0)) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return ret +} + +func X_IO_ferror_unlocked(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xferror(tls, f) +} + +func Xferror_unlocked(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xferror(tls, f) +} + +// C documentation +// +// /* stdout.c will override this if linked */ +var _dummy11 = uintptr(0) + +func Xfflush(tls *TLS, f uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var __need_unlock, __need_unlock1, r, v2 int32 + var v4, v5 uintptr + _, _, _, _, _, _ = __need_unlock, __need_unlock1, r, v2, v4, v5 + if !(f != 0) { + r = 0 + if AtomicLoadPUintptr(uintptr(unsafe.Pointer(&X__stdout_used))) != 0 { + r = r | Xfflush(tls, AtomicLoadPUintptr(uintptr(unsafe.Pointer(&X__stdout_used)))) + } + if AtomicLoadPUintptr(uintptr(unsafe.Pointer(&X__stderr_used))) != 0 { + r = r | Xfflush(tls, AtomicLoadPUintptr(uintptr(unsafe.Pointer(&X__stderr_used)))) + } + f = **(**uintptr)(__ccgo_up(X__ofl_lock(tls))) + for { + if !(f != 0) { + break + } + if AtomicLoadPInt32(f+140) >= 0 { + v2 = ___lockfile(tls, f) + } else { + v2 = 0 + } + __need_unlock = v2 + if (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwbase { + r = r | Xfflush(tls, f) + } + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + goto _1 + _1: + ; + f = (*TFILE)(unsafe.Pointer(f)).Fnext + } + X__ofl_unlock(tls) + return r + } + if AtomicLoadPInt32(f+140) >= 0 { + v2 = ___lockfile(tls, f) + } else { + v2 = 0 + } + __need_unlock1 = v2 + /* If writing, flush output */ + if (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwbase { + (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tsize_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fwrite})))(tls, f, uintptr(0), uint64(0)) + if !((*TFILE)(unsafe.Pointer(f)).Fwpos != 0) { + if __need_unlock1 != 0 { + ___unlockfile(tls, f) + } + return -int32(1) + } + } + /* If reading, sync position, per POSIX */ + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + (*(*func(*TLS, uintptr, Toff_t, int32) Toff_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fseek})))(tls, f, int64((*TFILE)(unsafe.Pointer(f)).Frpos)-int64((*TFILE)(unsafe.Pointer(f)).Frend), int32(1)) + } + /* Clear read and write modes */ + v5 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Fwend = v5 + v4 = v5 + (*TFILE)(unsafe.Pointer(f)).Fwbase = v4 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v4 + v4 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Frend = v4 + (*TFILE)(unsafe.Pointer(f)).Frpos = v4 + if __need_unlock1 != 0 { + ___unlockfile(tls, f) + } + return 0 +} + +func Xfflush_unlocked(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfflush(tls, f) +} + +func _locking_getc(tls *TLS, f uintptr) (r int32) { + var c, v1, v2, v4, v7, v8 int32 + var v10, v5, v6 uintptr + _, _, _, _, _, _, _, _, _ = c, v1, v10, v2, v4, v5, v6, v7, v8 + v1 = 0 + // __asm__ __volatile__ ( + // + // "lock ; cmpxchg %3, %1" + // : "=a"(t), "=m"(*p) : "a"(t), "r"(s) : "memory" ); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 4, __ccgo_ts+1525) + v2 = v1 + goto _3 +_3: + if v2 != 0 { + ___lockfile(tls, f) + } + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + v6 = f + 8 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v5))) + } else { + v1 = X__uflow(tls, f) + } + c = v1 + v2 = 0 + // __asm__ __volatile__( + // + // "xchg %0, %1" + // : "=r"(v), "=m"(*p) : "0"(v) : "memory" ); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 22, __ccgo_ts+1525) + v4 = v2 + goto _9 +_9: + if v4&int32(MAYBE_WAITERS) != 0 { + v10 = f + 140 + v7 = int32(1) + v8 = int32(1) + if v8 != 0 { + v8 = int32(FUTEX_PRIVATE) + } + if v7 < Int32FromInt32(0) { + v7 = int32(INT_MAX) + } + _ = X__syscall3(tls, int64(SYS_futex), int64(v10), int64(Int32FromInt32(FUTEX_WAKE)|v8), int64(v7)) != int64(-int32(ENOSYS)) || X__syscall3(tls, int64(SYS_futex), int64(v10), int64(Int32FromInt32(FUTEX_WAKE)), int64(v7)) != 0 + } + return c +} + +func Xfgetc(tls *TLS, f1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f1=%v, (%v:)", tls, f1, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l, v2, v4 int32 + var v1, v5, v6 uintptr + _, _, _, _, _, _ = l, v1, v2, v4, v5, v6 + v1 = f1 + l = AtomicLoadPInt32(v1 + 140) + if l < 0 || l != 0 && l & ^Int32FromInt32(MAYBE_WAITERS) == (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Ftid { + if (*TFILE)(unsafe.Pointer(v1)).Frpos != (*TFILE)(unsafe.Pointer(v1)).Frend { + v6 = v1 + 8 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + v4 = Int32FromUint8(**(**uint8)(__ccgo_up(v5))) + } else { + v4 = X__uflow(tls, v1) + } + v2 = v4 + goto _3 + } + v2 = _locking_getc(tls, v1) + goto _3 +_3: + return v2 +} + +func Xfgetln(tls *TLS, f uintptr, plen uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v plen=%v, (%v:)", tls, f, plen, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var __need_unlock, v1, v2 int32 + var l, v8 Tssize_t + var ret, z, v3, v4 uintptr + var v6 bool + _, _, _, _, _, _, _, _, _, _ = __need_unlock, l, ret, z, v1, v2, v3, v4, v6, v8 + ret = uintptr(0) + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v2 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v2 = X__uflow(tls, f) + } + Xungetc(tls, v2, f) + if v6 = (*TFILE)(unsafe.Pointer(f)).Frend != 0; v6 { + v3 = Xmemchr(tls, (*TFILE)(unsafe.Pointer(f)).Frpos, int32('\n'), Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Frend)-int64((*TFILE)(unsafe.Pointer(f)).Frpos))) + z = v3 + } + if v6 && v3 != 0 { + ret = (*TFILE)(unsafe.Pointer(f)).Frpos + z = z + 1 + v3 = z + **(**Tsize_t)(__ccgo_up(plen)) = Uint64FromInt64(int64(v3) - int64(ret)) + (*TFILE)(unsafe.Pointer(f)).Frpos = z + } else { + *(*[1]Tsize_t)(unsafe.Pointer(bp)) = [1]Tsize_t{} + v8 = Xgetline(tls, f+168, bp, f) + l = v8 + if v8 > 0 { + **(**Tsize_t)(__ccgo_up(plen)) = Uint64FromInt64(l) + ret = (*TFILE)(unsafe.Pointer(f)).Fgetln_buf + } + } + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return ret +} + +func Xfgetpos(tls *TLS, f uintptr, pos uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v pos=%v, (%v:)", tls, f, pos, origin(2)) + defer func() { trc("-> %v", r) }() + } + var off Toff_t + _ = off + off = X__ftello(tls, f) + if off < 0 { + return -int32(1) + } + **(**int64)(__ccgo_up(pos)) = off + return 0 +} + +func Xfgets(tls *TLS, s uintptr, n int32, f uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v f=%v, (%v:)", tls, s, n, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, c, v1, v4 int32 + var k Tsize_t + var p, z, v6, v7 uintptr + var v2 int64 + var v3 uint64 + var v8 int8 + _, _, _, _, _, _, _, _, _, _, _, _ = __need_unlock, c, k, p, z, v1, v2, v3, v4, v6, v7, v8 + p = s + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + if n <= int32(1) { + **(**int32)(__ccgo_up(f + 136)) |= (*TFILE)(unsafe.Pointer(f)).Fmode - int32(1) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + if n < int32(1) { + return uintptr(0) + } + **(**int8)(__ccgo_up(s)) = 0 + return s + } + n = n - 1 + for n != 0 { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + z = Xmemchr(tls, (*TFILE)(unsafe.Pointer(f)).Frpos, int32('\n'), Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Frend)-int64((*TFILE)(unsafe.Pointer(f)).Frpos))) + if z != 0 { + v2 = int64(z) - int64((*TFILE)(unsafe.Pointer(f)).Frpos) + int64(1) + } else { + v2 = int64((*TFILE)(unsafe.Pointer(f)).Frend) - int64((*TFILE)(unsafe.Pointer(f)).Frpos) + } + k = Uint64FromInt64(v2) + if k < Uint64FromInt32(n) { + v3 = k + } else { + v3 = Uint64FromInt32(n) + } + k = v3 + Xmemcpy(tls, p, (*TFILE)(unsafe.Pointer(f)).Frpos, k) + **(**uintptr)(__ccgo_up(f + 8)) += uintptr(k) + p = p + uintptr(k) + n = Int32FromUint64(uint64(n) - k) + if z != 0 || !(n != 0) { + break + } + } + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + v7 = f + 8 + v6 = *(*uintptr)(unsafe.Pointer(v7)) + *(*uintptr)(unsafe.Pointer(v7)) = *(*uintptr)(unsafe.Pointer(v7)) + 1 + v4 = Int32FromUint8(**(**uint8)(__ccgo_up(v6))) + } else { + v4 = X__uflow(tls, f) + } + v1 = v4 + c = v1 + if v1 < 0 { + if p == s || !((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_EOF) != 0) { + s = uintptr(0) + } + break + } + n = n - 1 + v8 = int8(c) + v6 = p + p = p + 1 + **(**int8)(__ccgo_up(v6)) = v8 + if int32(v8) == int32('\n') { + break + } + } + if s != 0 { + **(**int8)(__ccgo_up(p)) = 0 + } + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return s +} + +func Xfgets_unlocked(tls *TLS, s uintptr, n int32, f uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v f=%v, (%v:)", tls, s, n, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfgets(tls, s, n, f) +} + +func ___fgetwc_unlocked_internal(tls *TLS, f uintptr) (r Twint_t) { + bp := tls.Alloc(32) + defer tls.Free(32) + var c, first, v1, v2 int32 + var l Tsize_t + var v3, v4 uintptr + var _ /* b at bp+16 */ uint8 + var _ /* st at bp+8 */ Tmbstate_t + var _ /* wc at bp+0 */ Twchar_t + _, _, _, _, _, _, _ = c, first, l, v1, v2, v3, v4 + /* Convert character from buffer if possible */ + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + l = Uint64FromInt32(Xmbtowc(tls, bp, (*TFILE)(unsafe.Pointer(f)).Frpos, Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Frend)-int64((*TFILE)(unsafe.Pointer(f)).Frpos)))) + if l+uint64(1) >= uint64(1) { + **(**uintptr)(__ccgo_up(f + 8)) += uintptr(l + BoolUint64(!(l != 0))) /* l==0 means 1 byte, null */ + return Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp))) + } + } + /* Convert character byte-by-byte */ + **(**Tmbstate_t)(__ccgo_up(bp + 8)) = Tmbstate_t{} + first = int32(1) + for cond := true; cond; cond = l == Uint64FromInt32(-Int32FromInt32(2)) { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v2 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v2 = X__uflow(tls, f) + } + v1 = v2 + c = v1 + **(**uint8)(__ccgo_up(bp + 16)) = Uint8FromInt32(v1) + if c < 0 { + if !(first != 0) { + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EILSEQ) + } + return uint32(0xffffffff) + } + l = Xmbrtowc(tls, bp, bp+16, uint64(1), bp+8) + if l == Uint64FromInt32(-Int32FromInt32(1)) { + if !(first != 0) { + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) + Xungetc(tls, Int32FromUint8(**(**uint8)(__ccgo_up(bp + 16))), f) + } + return uint32(0xffffffff) + } + first = 0 + } + return Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp))) +} + +func X__fgetwc_unlocked(tls *TLS, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var loc Tlocale_t + var ploc uintptr + var wc Twchar_t + _, _, _ = loc, ploc, wc + ploc = uintptr(___get_tp(tls)) + 168 + loc = **(**Tlocale_t)(__ccgo_up(ploc)) + if (*TFILE)(unsafe.Pointer(f)).Fmode <= 0 { + Xfwide(tls, f, int32(1)) + } + **(**Tlocale_t)(__ccgo_up(ploc)) = (*TFILE)(unsafe.Pointer(f)).Flocale + wc = Int32FromUint32(___fgetwc_unlocked_internal(tls, f)) + **(**Tlocale_t)(__ccgo_up(ploc)) = loc + return Uint32FromInt32(wc) +} + +func Xfgetwc(tls *TLS, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, v1 int32 + var c Twint_t + _, _, _ = __need_unlock, c, v1 + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + c = X__fgetwc_unlocked(tls, f) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return c +} + +func Xfgetwc_unlocked(tls *TLS, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fgetwc_unlocked(tls, f) +} + +func Xgetwc_unlocked(tls *TLS, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fgetwc_unlocked(tls, f) +} + +func Xfgetws(tls *TLS, s uintptr, n int32, f uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v f=%v, (%v:)", tls, s, n, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, v1 int32 + var c Twint_t + var p, v4 uintptr + _, _, _, _, _ = __need_unlock, c, p, v1, v4 + p = s + v1 = n + n = n - 1 + if !(v1 != 0) { + return s + } + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + for { + if !(n != 0) { + break + } + c = X__fgetwc_unlocked(tls, f) + if c == uint32(0xffffffff) { + break + } + v4 = p + p += 4 + **(**Twchar_t)(__ccgo_up(v4)) = Int32FromUint32(c) + if c == uint32('\n') { + break + } + goto _3 + _3: + ; + n = n - 1 + } + **(**Twchar_t)(__ccgo_up(p)) = 0 + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_ERR) != 0 { + p = s + } + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + if p == s { + v4 = UintptrFromInt32(0) + } else { + v4 = s + } + return v4 +} + +func Xfgetws_unlocked(tls *TLS, s uintptr, n int32, f uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v f=%v, (%v:)", tls, s, n, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfgetws(tls, s, n, f) +} + +func Xfileno(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, fd, v1 int32 + _, _, _ = __need_unlock, fd, v1 + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + fd = (*TFILE)(unsafe.Pointer(f)).Ffd + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + if fd < 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EBADF) + return -int32(1) + } + return fd +} + +func Xfileno_unlocked(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfileno(tls, f) +} + +func Xflockfile(tls *TLS, f uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } + if !(Xftrylockfile(tls, f) != 0) { + return + } + ___lockfile(tls, f) + X__register_locked_file(tls, f, uintptr(___get_tp(tls))) +} + +type Tcookie = struct { + Fpos Tsize_t + Flen1 Tsize_t + Fsize Tsize_t + Fbuf uintptr + Fmode int32 +} + +type Tmem_FILE = struct { + Ff TFILE + Fc Tcookie + Fbuf [1032]uint8 +} + +func _mseek(tls *TLS, f uintptr, off Toff_t, whence int32) (r Toff_t) { + bp := tls.Alloc(32) + defer tls.Free(32) + var base Tssize_t + var c uintptr + var v2 Tsize_t + _, _, _ = base, c, v2 + c = (*TFILE)(unsafe.Pointer(f)).Fcookie + if !(Uint32FromInt32(whence) > uint32(2)) { + goto _1 + } + goto fail +fail: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return int64(-int32(1)) +_1: + ; + *(*[3]Tsize_t)(unsafe.Pointer(bp)) = [3]Tsize_t{ + 1: (*Tcookie)(unsafe.Pointer(c)).Fpos, + 2: (*Tcookie)(unsafe.Pointer(c)).Flen1, + } + base = Int64FromUint64(**(**Tsize_t)(__ccgo_up(bp + uintptr(whence)*8))) + if off < -base || off > Int64FromUint64((*Tcookie)(unsafe.Pointer(c)).Fsize)-base { + goto fail + } + v2 = Uint64FromInt64(base + off) + (*Tcookie)(unsafe.Pointer(c)).Fpos = v2 + return Int64FromUint64(v2) +} + +func _mread(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + var c uintptr + var rem Tsize_t + _, _ = c, rem + c = (*TFILE)(unsafe.Pointer(f)).Fcookie + rem = (*Tcookie)(unsafe.Pointer(c)).Flen1 - (*Tcookie)(unsafe.Pointer(c)).Fpos + if (*Tcookie)(unsafe.Pointer(c)).Fpos > (*Tcookie)(unsafe.Pointer(c)).Flen1 { + rem = uint64(0) + } + if len1 > rem { + len1 = rem + **(**uint32)(__ccgo_up(f)) |= uint32(F_EOF) + } + Xmemcpy(tls, buf, (*Tcookie)(unsafe.Pointer(c)).Fbuf+uintptr((*Tcookie)(unsafe.Pointer(c)).Fpos), len1) + **(**Tsize_t)(__ccgo_up(c)) += len1 + rem = rem - len1 + if rem > (*TFILE)(unsafe.Pointer(f)).Fbuf_size { + rem = (*TFILE)(unsafe.Pointer(f)).Fbuf_size + } + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Frend = (*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr(rem) + Xmemcpy(tls, (*TFILE)(unsafe.Pointer(f)).Frpos, (*Tcookie)(unsafe.Pointer(c)).Fbuf+uintptr((*Tcookie)(unsafe.Pointer(c)).Fpos), rem) + **(**Tsize_t)(__ccgo_up(c)) += rem + return len1 +} + +func _mwrite(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + var c uintptr + var len2, rem Tsize_t + _, _, _ = c, len2, rem + c = (*TFILE)(unsafe.Pointer(f)).Fcookie + len2 = Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Fwpos) - int64((*TFILE)(unsafe.Pointer(f)).Fwbase)) + if len2 != 0 { + (*TFILE)(unsafe.Pointer(f)).Fwpos = (*TFILE)(unsafe.Pointer(f)).Fwbase + if _mwrite(tls, f, (*TFILE)(unsafe.Pointer(f)).Fwpos, len2) < len2 { + return uint64(0) + } + } + if (*Tcookie)(unsafe.Pointer(c)).Fmode == int32('a') { + (*Tcookie)(unsafe.Pointer(c)).Fpos = (*Tcookie)(unsafe.Pointer(c)).Flen1 + } + rem = (*Tcookie)(unsafe.Pointer(c)).Fsize - (*Tcookie)(unsafe.Pointer(c)).Fpos + if len1 > rem { + len1 = rem + } + Xmemcpy(tls, (*Tcookie)(unsafe.Pointer(c)).Fbuf+uintptr((*Tcookie)(unsafe.Pointer(c)).Fpos), buf, len1) + **(**Tsize_t)(__ccgo_up(c)) += len1 + if (*Tcookie)(unsafe.Pointer(c)).Fpos > (*Tcookie)(unsafe.Pointer(c)).Flen1 { + (*Tcookie)(unsafe.Pointer(c)).Flen1 = (*Tcookie)(unsafe.Pointer(c)).Fpos + if (*Tcookie)(unsafe.Pointer(c)).Flen1 < (*Tcookie)(unsafe.Pointer(c)).Fsize { + **(**uint8)(__ccgo_up((*Tcookie)(unsafe.Pointer(c)).Fbuf + uintptr((*Tcookie)(unsafe.Pointer(c)).Flen1))) = uint8(0) + } else { + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_NORD) != 0 && (*Tcookie)(unsafe.Pointer(c)).Fsize != 0 { + **(**uint8)(__ccgo_up((*Tcookie)(unsafe.Pointer(c)).Fbuf + uintptr((*Tcookie)(unsafe.Pointer(c)).Fsize-uint64(1)))) = uint8(0) + } + } + } + return len1 +} + +func _mclose(tls *TLS, m uintptr) (r int32) { + return 0 +} + +func Xfmemopen(tls *TLS, buf uintptr, size Tsize_t, mode uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v buf=%v size=%v mode=%v, (%v:)", tls, buf, size, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + var f uintptr + var plus, v2 int32 + var v1 uint64 + var v3 Tsize_t + _, _, _, _, _ = f, plus, v1, v2, v3 + plus = BoolInt32(!!(Xstrchr(tls, mode, int32('+')) != 0)) + if !(Xstrchr(tls, __ccgo_ts+1521, int32(**(**int8)(__ccgo_up(mode)))) != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(0) + } + if !(buf != 0) && size > Uint64FromInt64(Int64FromInt64(INT64_MAX)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOMEM) + return uintptr(0) + } + if buf != 0 { + v1 = uint64(0) + } else { + v1 = size + } + f = Xmalloc(tls, uint64(1304)+v1) + if !(f != 0) { + return uintptr(0) + } + Xmemset(tls, f, 0, uint64(UintptrFromInt32(0)+272)) + (*Tmem_FILE)(unsafe.Pointer(f)).Ff.Fcookie = f + 232 + (*Tmem_FILE)(unsafe.Pointer(f)).Ff.Ffd = -int32(1) + (*Tmem_FILE)(unsafe.Pointer(f)).Ff.Flbf = -int32(1) + (*Tmem_FILE)(unsafe.Pointer(f)).Ff.Fbuf = f + 272 + uintptr(UNGET) + (*Tmem_FILE)(unsafe.Pointer(f)).Ff.Fbuf_size = Uint64FromInt64(1032) - Uint64FromInt32(UNGET) + if !(buf != 0) { + buf = f + 1304 + Xmemset(tls, buf, 0, size) + } + (*Tmem_FILE)(unsafe.Pointer(f)).Fc.Fbuf = buf + (*Tmem_FILE)(unsafe.Pointer(f)).Fc.Fsize = size + (*Tmem_FILE)(unsafe.Pointer(f)).Fc.Fmode = int32(**(**int8)(__ccgo_up(mode))) + if !(plus != 0) { + if int32(**(**int8)(__ccgo_up(mode))) == int32('r') { + v2 = int32(F_NOWR) + } else { + v2 = int32(F_NORD) + } + (*Tmem_FILE)(unsafe.Pointer(f)).Ff.Fflags = Uint32FromInt32(v2) + } + if int32(**(**int8)(__ccgo_up(mode))) == int32('r') { + (*Tmem_FILE)(unsafe.Pointer(f)).Fc.Flen1 = size + } else { + if int32(**(**int8)(__ccgo_up(mode))) == int32('a') { + v3 = Xstrnlen(tls, buf, size) + (*Tmem_FILE)(unsafe.Pointer(f)).Fc.Fpos = v3 + (*Tmem_FILE)(unsafe.Pointer(f)).Fc.Flen1 = v3 + } else { + if plus != 0 { + **(**uint8)(__ccgo_up((*Tmem_FILE)(unsafe.Pointer(f)).Fc.Fbuf)) = uint8(0) + } + } + } + (*Tmem_FILE)(unsafe.Pointer(f)).Ff.Fread = __ccgo_fp(_mread) + (*Tmem_FILE)(unsafe.Pointer(f)).Ff.Fwrite = __ccgo_fp(_mwrite) + (*Tmem_FILE)(unsafe.Pointer(f)).Ff.Fseek = __ccgo_fp(_mseek) + (*Tmem_FILE)(unsafe.Pointer(f)).Ff.Fclose1 = __ccgo_fp(_mclose) + if !(X__libc.Fthreaded != 0) { + AtomicStorePInt32(f+140, -int32(1)) + } + return X__ofl_add(tls, f) +} + +func Xfopen(tls *TLS, filename uintptr, mode uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v filename=%v mode=%v, (%v:)", tls, filename, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + var f uintptr + var fd, flags int32 + _, _, _ = f, fd, flags + /* Check for valid initial mode character */ + if !(Xstrchr(tls, __ccgo_ts+1521, int32(**(**int8)(__ccgo_up(mode)))) != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(0) + } + /* Compute the flags to pass to open() */ + flags = X__fmodeflags(tls, mode) + fd = int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_open), int64(filename), int64(flags|Int32FromInt32(O_LARGEFILE)), int64(Int32FromInt32(0666)))))) + if fd < 0 { + return uintptr(0) + } + if flags&int32(O_CLOEXEC) != 0 { + X__syscall3(tls, int64(SYS_fcntl), int64(fd), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + } + f = X__fdopen(tls, fd, mode) + if f != 0 { + return f + } + X__syscall1(tls, int64(SYS_close), int64(fd)) + return uintptr(0) +} + +type Tfcookie = struct { + Fcookie uintptr + Fiofuncs Tcookie_io_functions_t +} + +type Tcookie_FILE = struct { + Ff TFILE + Ffc Tfcookie + Fbuf [1032]uint8 +} + +func _cookieread(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + var fc, v2, v3 uintptr + var len2, readlen, remain, v1 Tsize_t + var ret Tssize_t + var v4 int32 + _, _, _, _, _, _, _, _, _ = fc, len2, readlen, remain, ret, v1, v2, v3, v4 + fc = (*TFILE)(unsafe.Pointer(f)).Fcookie + ret = int64(-int32(1)) + remain = len1 + readlen = uint64(0) + len2 = len1 - BoolUint64(!!((*TFILE)(unsafe.Pointer(f)).Fbuf_size != 0)) + if !((*Tfcookie)(unsafe.Pointer(fc)).Fiofuncs.Fread != 0) { + goto bail + } + if len2 != 0 { + ret = (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tssize_t)(unsafe.Pointer(&struct{ uintptr }{(*Tfcookie)(unsafe.Pointer(fc)).Fiofuncs.Fread})))(tls, (*Tfcookie)(unsafe.Pointer(fc)).Fcookie, buf, len2) + if ret <= 0 { + goto bail + } + readlen = readlen + Uint64FromInt64(ret) + remain = remain - Uint64FromInt64(ret) + } + if !((*TFILE)(unsafe.Pointer(f)).Fbuf_size != 0) || remain > BoolUint64(!!((*TFILE)(unsafe.Pointer(f)).Fbuf_size != 0)) { + return readlen + } + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Fbuf + ret = (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tssize_t)(unsafe.Pointer(&struct{ uintptr }{(*Tfcookie)(unsafe.Pointer(fc)).Fiofuncs.Fread})))(tls, (*Tfcookie)(unsafe.Pointer(fc)).Fcookie, (*TFILE)(unsafe.Pointer(f)).Frpos, (*TFILE)(unsafe.Pointer(f)).Fbuf_size) + if ret <= 0 { + goto bail + } + (*TFILE)(unsafe.Pointer(f)).Frend = (*TFILE)(unsafe.Pointer(f)).Frpos + uintptr(ret) + v1 = readlen + readlen = readlen + 1 + v3 = f + 8 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + **(**uint8)(__ccgo_up(buf + uintptr(v1))) = **(**uint8)(__ccgo_up(v2)) + return readlen + goto bail +bail: + ; + if ret == 0 { + v4 = int32(F_EOF) + } else { + v4 = int32(F_ERR) + } + **(**uint32)(__ccgo_up(f)) |= Uint32FromInt32(v4) + v2 = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Frend = v2 + (*TFILE)(unsafe.Pointer(f)).Frpos = v2 + return readlen +} + +func _cookiewrite(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + var fc, v1, v2 uintptr + var len2 Tsize_t + var ret Tssize_t + _, _, _, _, _ = fc, len2, ret, v1, v2 + fc = (*TFILE)(unsafe.Pointer(f)).Fcookie + len2 = Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Fwpos) - int64((*TFILE)(unsafe.Pointer(f)).Fwbase)) + if !((*Tfcookie)(unsafe.Pointer(fc)).Fiofuncs.Fwrite != 0) { + return len1 + } + if len2 != 0 { + (*TFILE)(unsafe.Pointer(f)).Fwpos = (*TFILE)(unsafe.Pointer(f)).Fwbase + if _cookiewrite(tls, f, (*TFILE)(unsafe.Pointer(f)).Fwpos, len2) < len2 { + return uint64(0) + } + } + ret = (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tssize_t)(unsafe.Pointer(&struct{ uintptr }{(*Tfcookie)(unsafe.Pointer(fc)).Fiofuncs.Fwrite})))(tls, (*Tfcookie)(unsafe.Pointer(fc)).Fcookie, buf, len1) + if ret < 0 { + v2 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Fwend = v2 + v1 = v2 + (*TFILE)(unsafe.Pointer(f)).Fwbase = v1 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v1 + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) + return uint64(0) + } + return Uint64FromInt64(ret) +} + +func _cookieseek(tls *TLS, f uintptr, _off Toff_t, whence int32) (r Toff_t) { + bp := tls.Alloc(16) + defer tls.Free(16) + *(*Toff_t)(unsafe.Pointer(bp)) = _off + var fc uintptr + var res int32 + _, _ = fc, res + fc = (*TFILE)(unsafe.Pointer(f)).Fcookie + if Uint32FromInt32(whence) > uint32(2) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return int64(-int32(1)) + } + if !((*Tfcookie)(unsafe.Pointer(fc)).Fiofuncs.Fseek != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOPNOTSUPP) + return int64(-int32(1)) + } + res = (*(*func(*TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(&struct{ uintptr }{(*Tfcookie)(unsafe.Pointer(fc)).Fiofuncs.Fseek})))(tls, (*Tfcookie)(unsafe.Pointer(fc)).Fcookie, bp, whence) + if res < 0 { + return int64(res) + } + return **(**Toff_t)(__ccgo_up(bp)) +} + +func _cookieclose(tls *TLS, f uintptr) (r int32) { + var fc uintptr + _ = fc + fc = (*TFILE)(unsafe.Pointer(f)).Fcookie + if (*Tfcookie)(unsafe.Pointer(fc)).Fiofuncs.Fclose1 != 0 { + return (*(*func(*TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*Tfcookie)(unsafe.Pointer(fc)).Fiofuncs.Fclose1})))(tls, (*Tfcookie)(unsafe.Pointer(fc)).Fcookie) + } + return 0 +} + +func Xfopencookie(tls *TLS, cookie uintptr, mode uintptr, iofuncs Tcookie_io_functions_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v cookie=%v mode=%v iofuncs=%v, (%v:)", tls, cookie, mode, iofuncs, origin(2)) + defer func() { trc("-> %v", r) }() + } + var f, v1 uintptr + var v2 int32 + _, _, _ = f, v1, v2 + /* Check for valid initial mode character */ + if !(Xstrchr(tls, __ccgo_ts+1521, int32(**(**int8)(__ccgo_up(mode)))) != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(0) + } + /* Allocate FILE+fcookie+buffer or fail */ + v1 = Xmalloc(tls, uint64(1304)) + f = v1 + if !(v1 != 0) { + return uintptr(0) + } + /* Zero-fill only the struct, not the buffer */ + Xmemset(tls, f, 0, uint64(232)) + /* Impose mode restrictions */ + if !(Xstrchr(tls, mode, int32('+')) != 0) { + if int32(**(**int8)(__ccgo_up(mode))) == int32('r') { + v2 = int32(F_NOWR) + } else { + v2 = int32(F_NORD) + } + (*Tcookie_FILE)(unsafe.Pointer(f)).Ff.Fflags = Uint32FromInt32(v2) + } + /* Set up our fcookie */ + (*Tcookie_FILE)(unsafe.Pointer(f)).Ffc.Fcookie = cookie + (*Tcookie_FILE)(unsafe.Pointer(f)).Ffc.Fiofuncs = iofuncs + (*Tcookie_FILE)(unsafe.Pointer(f)).Ff.Ffd = -int32(1) + (*Tcookie_FILE)(unsafe.Pointer(f)).Ff.Fcookie = f + 232 + (*Tcookie_FILE)(unsafe.Pointer(f)).Ff.Fbuf = f + 272 + uintptr(UNGET) + (*Tcookie_FILE)(unsafe.Pointer(f)).Ff.Fbuf_size = Uint64FromInt64(1032) - Uint64FromInt32(UNGET) + (*Tcookie_FILE)(unsafe.Pointer(f)).Ff.Flbf = -int32(1) + /* Initialize op ptrs. No problem if some are unneeded. */ + (*Tcookie_FILE)(unsafe.Pointer(f)).Ff.Fread = __ccgo_fp(_cookieread) + (*Tcookie_FILE)(unsafe.Pointer(f)).Ff.Fwrite = __ccgo_fp(_cookiewrite) + (*Tcookie_FILE)(unsafe.Pointer(f)).Ff.Fseek = __ccgo_fp(_cookieseek) + (*Tcookie_FILE)(unsafe.Pointer(f)).Ff.Fclose1 = __ccgo_fp(_cookieclose) + /* Add new FILE to open file list */ + return X__ofl_add(tls, f) +} + +func Xfprintf(tls *TLS, f uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v va=%v, (%v:)", tls, f, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvfprintf(tls, f, fmt, ap) + _ = ap + return ret +} + +func _locking_putc(tls *TLS, c int32, f uintptr) (r int32) { + var v1, v2, v4, v8 int32 + var v6, v7 uintptr + var v5 uint8 + _, _, _, _, _, _, _ = v1, v2, v4, v5, v6, v7, v8 + v1 = 0 + // __asm__ __volatile__ ( + // + // "lock ; cmpxchg %3, %1" + // : "=a"(t), "=m"(*p) : "a"(t), "r"(s) : "memory" ); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 4, __ccgo_ts+1538) + v2 = v1 + goto _3 +_3: + if v2 != 0 { + ___lockfile(tls, f) + } + if Int32FromUint8(Uint8FromInt32(c)) != (*TFILE)(unsafe.Pointer(f)).Flbf && (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwend { + v5 = Uint8FromInt32(c) + v7 = f + 40 + v6 = *(*uintptr)(unsafe.Pointer(v7)) + *(*uintptr)(unsafe.Pointer(v7)) = *(*uintptr)(unsafe.Pointer(v7)) + 1 + **(**uint8)(__ccgo_up(v6)) = v5 + v1 = Int32FromUint8(v5) + } else { + v1 = X__overflow(tls, f, Int32FromUint8(Uint8FromInt32(c))) + } + c = v1 + v1 = 0 + // __asm__ __volatile__( + // + // "xchg %0, %1" + // : "=r"(v), "=m"(*p) : "0"(v) : "memory" ); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 22, __ccgo_ts+1538) + v2 = v1 + goto _10 +_10: + if v2&int32(MAYBE_WAITERS) != 0 { + v6 = f + 140 + v4 = int32(1) + v8 = int32(1) + if v8 != 0 { + v8 = int32(FUTEX_PRIVATE) + } + if v4 < Int32FromInt32(0) { + v4 = int32(INT_MAX) + } + _ = X__syscall3(tls, int64(SYS_futex), int64(v6), int64(Int32FromInt32(FUTEX_WAKE)|v8), int64(v4)) != int64(-int32(ENOSYS)) || X__syscall3(tls, int64(SYS_futex), int64(v6), int64(Int32FromInt32(FUTEX_WAKE)), int64(v4)) != 0 + } + return c +} + +func Xfputc(tls *TLS, c1 int32, f1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v c1=%v f1=%v, (%v:)", tls, c1, f1, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l, v1, v3, v5 int32 + var v2, v7, v8 uintptr + var v6 uint8 + _, _, _, _, _, _, _, _ = l, v1, v2, v3, v5, v6, v7, v8 + v1 = c1 + v2 = f1 + l = AtomicLoadPInt32(v2 + 140) + if l < 0 || l != 0 && l & ^Int32FromInt32(MAYBE_WAITERS) == (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Ftid { + if Int32FromUint8(Uint8FromInt32(v1)) != (*TFILE)(unsafe.Pointer(v2)).Flbf && (*TFILE)(unsafe.Pointer(v2)).Fwpos != (*TFILE)(unsafe.Pointer(v2)).Fwend { + v6 = Uint8FromInt32(v1) + v8 = v2 + 40 + v7 = *(*uintptr)(unsafe.Pointer(v8)) + *(*uintptr)(unsafe.Pointer(v8)) = *(*uintptr)(unsafe.Pointer(v8)) + 1 + **(**uint8)(__ccgo_up(v7)) = v6 + v5 = Int32FromUint8(v6) + } else { + v5 = X__overflow(tls, v2, Int32FromUint8(Uint8FromInt32(v1))) + } + v3 = v5 + goto _4 + } + v3 = _locking_putc(tls, v1, v2) + goto _4 +_4: + return v3 +} + +func Xfputs(tls *TLS, s uintptr, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v f=%v, (%v:)", tls, s, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l Tsize_t + _ = l + l = _strlen(tls, s) + return BoolInt32(Xfwrite(tls, s, uint64(1), l, f) == l) - int32(1) +} + +func Xfputs_unlocked(tls *TLS, s uintptr, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v f=%v, (%v:)", tls, s, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfputs(tls, s, f) +} + +func X__fputwc_unlocked(tls *TLS, c Twchar_t, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v f=%v, (%v:)", tls, c, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var l, v1 int32 + var loc Tlocale_t + var ploc, v3, v4 uintptr + var v2 uint8 + var _ /* mbc at bp+0 */ [4]int8 + _, _, _, _, _, _, _ = l, loc, ploc, v1, v2, v3, v4 + ploc = uintptr(___get_tp(tls)) + 168 + loc = **(**Tlocale_t)(__ccgo_up(ploc)) + if (*TFILE)(unsafe.Pointer(f)).Fmode <= 0 { + Xfwide(tls, f, int32(1)) + } + **(**Tlocale_t)(__ccgo_up(ploc)) = (*TFILE)(unsafe.Pointer(f)).Flocale + if BoolInt32(Uint32FromInt32(c) < uint32(128)) != 0 { + if Int32FromUint8(Uint8FromInt32(c)) != (*TFILE)(unsafe.Pointer(f)).Flbf && (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwend { + v2 = Uint8FromInt32(c) + v4 = f + 40 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + **(**uint8)(__ccgo_up(v3)) = v2 + v1 = Int32FromUint8(v2) + } else { + v1 = X__overflow(tls, f, Int32FromUint8(Uint8FromInt32(c))) + } + c = v1 + } else { + if (*TFILE)(unsafe.Pointer(f)).Fwpos+uintptr(MB_LEN_MAX) < (*TFILE)(unsafe.Pointer(f)).Fwend { + l = Xwctomb(tls, (*TFILE)(unsafe.Pointer(f)).Fwpos, c) + if l < 0 { + c = Int32FromUint32(0xffffffff) + } else { + **(**uintptr)(__ccgo_up(f + 40)) += uintptr(l) + } + } else { + l = Xwctomb(tls, bp, c) + if l < 0 || X__fwritex(tls, bp, Uint64FromInt32(l), f) < Uint64FromInt32(l) { + c = Int32FromUint32(0xffffffff) + } + } + } + if Uint32FromInt32(c) == uint32(0xffffffff) { + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) + } + **(**Tlocale_t)(__ccgo_up(ploc)) = loc + return Uint32FromInt32(c) +} + +func Xfputwc(tls *TLS, c Twchar_t, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v f=%v, (%v:)", tls, c, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, v1 int32 + _, _ = __need_unlock, v1 + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + c = Int32FromUint32(X__fputwc_unlocked(tls, c, f)) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return Uint32FromInt32(c) +} + +func Xfputwc_unlocked(tls *TLS, c Twchar_t, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v f=%v, (%v:)", tls, c, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fputwc_unlocked(tls, c, f) +} + +func Xputwc_unlocked(tls *TLS, c Twchar_t, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v f=%v, (%v:)", tls, c, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fputwc_unlocked(tls, c, f) +} + +func Xfputws(tls *TLS, _ws uintptr, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v _ws=%v f=%v, (%v:)", tls, _ws, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(1040) + defer tls.Free(1040) + *(*uintptr)(unsafe.Pointer(bp)) = _ws + var __need_unlock, v1 int32 + var l, v2 Tsize_t + var loc Tlocale_t + var ploc uintptr + var v3 bool + var _ /* buf at bp+8 */ [1024]uint8 + _, _, _, _, _, _, _ = __need_unlock, l, loc, ploc, v1, v2, v3 + l = uint64(0) + ploc = uintptr(___get_tp(tls)) + 168 + loc = **(**Tlocale_t)(__ccgo_up(ploc)) + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + Xfwide(tls, f, int32(1)) + **(**Tlocale_t)(__ccgo_up(ploc)) = (*TFILE)(unsafe.Pointer(f)).Flocale + for { + if v3 = **(**uintptr)(__ccgo_up(bp)) != 0; v3 { + v2 = Xwcsrtombs(tls, bp+8, bp, uint64(1024), uintptr(0)) + l = v2 + } + if !(v3 && v2+uint64(1) > uint64(1)) { + break + } + if X__fwritex(tls, bp+8, l, f) < l { + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + **(**Tlocale_t)(__ccgo_up(ploc)) = loc + return -int32(1) + } + } + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + **(**Tlocale_t)(__ccgo_up(ploc)) = loc + return Int32FromUint64(l) /* 0 or -1 */ +} + +func Xfputws_unlocked(tls *TLS, _ws uintptr, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v _ws=%v f=%v, (%v:)", tls, _ws, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfputws(tls, _ws, f) +} + +func Xfread(tls *TLS, destv uintptr, size Tsize_t, nmemb Tsize_t, f uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v destv=%v size=%v nmemb=%v f=%v, (%v:)", tls, destv, size, nmemb, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, v1 int32 + var dest uintptr + var k, l, len1 Tsize_t + var v2 uint64 + _, _, _, _, _, _, _ = __need_unlock, dest, k, l, len1, v1, v2 + dest = destv + len1 = size * nmemb + l = len1 + if !(size != 0) { + nmemb = uint64(0) + } + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + **(**int32)(__ccgo_up(f + 136)) |= (*TFILE)(unsafe.Pointer(f)).Fmode - int32(1) + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + /* First exhaust the buffer. */ + if Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Frend)-int64((*TFILE)(unsafe.Pointer(f)).Frpos)) < l { + v2 = Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Frend) - int64((*TFILE)(unsafe.Pointer(f)).Frpos)) + } else { + v2 = l + } + k = v2 + Xmemcpy(tls, dest, (*TFILE)(unsafe.Pointer(f)).Frpos, k) + **(**uintptr)(__ccgo_up(f + 8)) += uintptr(k) + dest = dest + uintptr(k) + l = l - k + } + /* Read the remainder directly */ + for { + if !(l != 0) { + break + } + if X__toread(tls, f) != 0 { + v2 = uint64(0) + } else { + v2 = (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tsize_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fread})))(tls, f, dest, l) + } + k = v2 + if !(k != 0) { + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return (len1 - l) / size + } + goto _3 + _3: + ; + l = l - k + dest = dest + uintptr(k) + } + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return nmemb +} + +func Xfread_unlocked(tls *TLS, destv uintptr, size Tsize_t, nmemb Tsize_t, f uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v destv=%v size=%v nmemb=%v f=%v, (%v:)", tls, destv, size, nmemb, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfread(tls, destv, size, nmemb, f) +} + +/* The basic idea of this implementation is to open a new FILE, + * hack the necessary parts of the new FILE into the old one, then + * close the new FILE. */ + +/* Locking IS necessary because another thread may provably hold the + * lock, via flockfile or otherwise, when freopen is called, and in that + * case, freopen cannot act until the lock is released. */ + +func Xfreopen(tls *TLS, filename uintptr, mode uintptr, f uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v filename=%v mode=%v f=%v, (%v:)", tls, filename, mode, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, fl, v1 int32 + var f2 uintptr + _, _, _, _ = __need_unlock, f2, fl, v1 + fl = X__fmodeflags(tls, mode) + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + Xfflush(tls, f) + if !(filename != 0) { + if fl&int32(O_CLOEXEC) != 0 { + X__syscall3(tls, int64(SYS_fcntl), int64((*TFILE)(unsafe.Pointer(f)).Ffd), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + } + fl = fl & ^(Int32FromInt32(O_CREAT) | Int32FromInt32(O_EXCL) | Int32FromInt32(O_CLOEXEC)) + if X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_fcntl), int64((*TFILE)(unsafe.Pointer(f)).Ffd), int64(Int32FromInt32(F_SETFL)), int64(fl)))) < 0 { + goto fail + } + } else { + f2 = Xfopen(tls, filename, mode) + if !(f2 != 0) { + goto fail + } + if (*TFILE)(unsafe.Pointer(f2)).Ffd == (*TFILE)(unsafe.Pointer(f)).Ffd { + (*TFILE)(unsafe.Pointer(f2)).Ffd = -int32(1) + } else { + if X__dup3(tls, (*TFILE)(unsafe.Pointer(f2)).Ffd, (*TFILE)(unsafe.Pointer(f)).Ffd, fl&int32(O_CLOEXEC)) < 0 { + goto fail2 + } + } + (*TFILE)(unsafe.Pointer(f)).Fflags = (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_PERM) | (*TFILE)(unsafe.Pointer(f2)).Fflags + (*TFILE)(unsafe.Pointer(f)).Fread = (*TFILE)(unsafe.Pointer(f2)).Fread + (*TFILE)(unsafe.Pointer(f)).Fwrite = (*TFILE)(unsafe.Pointer(f2)).Fwrite + (*TFILE)(unsafe.Pointer(f)).Fseek = (*TFILE)(unsafe.Pointer(f2)).Fseek + (*TFILE)(unsafe.Pointer(f)).Fclose1 = (*TFILE)(unsafe.Pointer(f2)).Fclose1 + Xfclose(tls, f2) + } + (*TFILE)(unsafe.Pointer(f)).Fmode = 0 + (*TFILE)(unsafe.Pointer(f)).Flocale = uintptr(0) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return f + goto fail2 +fail2: + ; + Xfclose(tls, f2) + goto fail +fail: + ; + Xfclose(tls, f) + return UintptrFromInt32(0) +} + +func Xfscanf(tls *TLS, f uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v va=%v, (%v:)", tls, f, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvfscanf(tls, f, fmt, ap) + _ = ap + return ret +} + +func X__isoc99_fscanf(tls *TLS, f uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v va=%v, (%v:)", tls, f, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfscanf(tls, f, fmt, va) +} + +func X__fseeko_unlocked(tls *TLS, f uintptr, off Toff_t, whence int32) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v off=%v whence=%v, (%v:)", tls, f, off, whence, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1, v2 uintptr + _, _ = v1, v2 + /* Fail immediately for invalid whence argument. */ + if whence != int32(1) && whence != 0 && whence != int32(2) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + /* Adjust relative offset for unread data in buffer, if any. */ + if whence == int32(1) && (*TFILE)(unsafe.Pointer(f)).Frend != 0 { + off = off - (int64((*TFILE)(unsafe.Pointer(f)).Frend) - int64((*TFILE)(unsafe.Pointer(f)).Frpos)) + } + /* Flush write buffer, and report error on failure. */ + if (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwbase { + (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tsize_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fwrite})))(tls, f, uintptr(0), uint64(0)) + if !((*TFILE)(unsafe.Pointer(f)).Fwpos != 0) { + return -int32(1) + } + } + /* Leave writing mode */ + v2 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Fwend = v2 + v1 = v2 + (*TFILE)(unsafe.Pointer(f)).Fwbase = v1 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v1 + /* Perform the underlying seek. */ + if (*(*func(*TLS, uintptr, Toff_t, int32) Toff_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fseek})))(tls, f, off, whence) < 0 { + return -int32(1) + } + /* If seek succeeded, file is seekable and we discard read buffer. */ + v1 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Frend = v1 + (*TFILE)(unsafe.Pointer(f)).Frpos = v1 + **(**uint32)(__ccgo_up(f)) &= Uint32FromInt32(^Int32FromInt32(F_EOF)) + return 0 +} + +func X__fseeko(tls *TLS, f uintptr, off Toff_t, whence int32) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v off=%v whence=%v, (%v:)", tls, f, off, whence, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, result, v1 int32 + _, _, _ = __need_unlock, result, v1 + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + result = X__fseeko_unlocked(tls, f, off, whence) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return result +} + +func Xfseek(tls *TLS, f uintptr, off int64, whence int32) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v off=%v whence=%v, (%v:)", tls, f, off, whence, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fseeko(tls, f, off, whence) +} + +func Xfseeko(tls *TLS, f uintptr, off Toff_t, whence int32) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v off=%v whence=%v, (%v:)", tls, f, off, whence, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fseeko(tls, f, off, whence) +} + +func Xfsetpos(tls *TLS, f uintptr, pos uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v pos=%v, (%v:)", tls, f, pos, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fseeko(tls, f, int64(**(**int64)(__ccgo_up(pos))), 0) +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func X__ftello_unlocked(tls *TLS, f uintptr) (r Toff_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var pos Toff_t + var v1 int32 + _, _ = pos, v1 + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_APP) != 0 && (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwbase { + v1 = int32(2) + } else { + v1 = int32(1) + } + pos = (*(*func(*TLS, uintptr, Toff_t, int32) Toff_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fseek})))(tls, f, 0, v1) + if pos < 0 { + return pos + } + /* Adjust for data in buffer. */ + if (*TFILE)(unsafe.Pointer(f)).Frend != 0 { + pos = pos + (int64((*TFILE)(unsafe.Pointer(f)).Frpos) - int64((*TFILE)(unsafe.Pointer(f)).Frend)) + } else { + if (*TFILE)(unsafe.Pointer(f)).Fwbase != 0 { + pos = pos + (int64((*TFILE)(unsafe.Pointer(f)).Fwpos) - int64((*TFILE)(unsafe.Pointer(f)).Fwbase)) + } + } + return pos +} + +func X__ftello(tls *TLS, f uintptr) (r Toff_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, v1 int32 + var pos Toff_t + _, _, _ = __need_unlock, pos, v1 + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + pos = X__ftello_unlocked(tls, f) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return pos +} + +func Xftell(tls *TLS, f uintptr) (r int64) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var pos Toff_t + _ = pos + pos = X__ftello(tls, f) + if pos > int64(0x7fffffffffffffff) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOVERFLOW) + return int64(-int32(1)) + } + return pos +} + +func Xftello(tls *TLS, f uintptr) (r Toff_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__ftello(tls, f) +} + +func X__do_orphaned_stdio_locks(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + var f uintptr + _ = f + f = (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Fstdio_locks + for { + if !(f != 0) { + break + } + // __asm__ __volatile__( + // + // "mov %1, %0 ; lock ; orl $0,(%%rsp)" + // : "=m"(*p) : "r"(x) : "memory" ); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 88, __ccgo_ts+1551) + goto _1 + _1: + ; + f = (*TFILE)(unsafe.Pointer(f)).Fnext_locked + } +} + +func X__unlist_locked_file(tls *TLS, f uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } + if (*TFILE)(unsafe.Pointer(f)).Flockcount != 0 { + if (*TFILE)(unsafe.Pointer(f)).Fnext_locked != 0 { + (*TFILE)(unsafe.Pointer((*TFILE)(unsafe.Pointer(f)).Fnext_locked)).Fprev_locked = (*TFILE)(unsafe.Pointer(f)).Fprev_locked + } + if (*TFILE)(unsafe.Pointer(f)).Fprev_locked != 0 { + (*TFILE)(unsafe.Pointer((*TFILE)(unsafe.Pointer(f)).Fprev_locked)).Fnext_locked = (*TFILE)(unsafe.Pointer(f)).Fnext_locked + } else { + (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Fstdio_locks = (*TFILE)(unsafe.Pointer(f)).Fnext_locked + } + } +} + +func X__register_locked_file(tls *TLS, f uintptr, self Tpthread_t) { + if __ccgo_strace { + trc("tls=%v f=%v self=%v, (%v:)", tls, f, self, origin(2)) + } + (*TFILE)(unsafe.Pointer(f)).Flockcount = int64(1) + (*TFILE)(unsafe.Pointer(f)).Fprev_locked = uintptr(0) + (*TFILE)(unsafe.Pointer(f)).Fnext_locked = (*t__pthread)(unsafe.Pointer(self)).Fstdio_locks + if (*TFILE)(unsafe.Pointer(f)).Fnext_locked != 0 { + (*TFILE)(unsafe.Pointer((*TFILE)(unsafe.Pointer(f)).Fnext_locked)).Fprev_locked = f + } + (*t__pthread)(unsafe.Pointer(self)).Fstdio_locks = f +} + +func Xftrylockfile(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var owner, tid, v1, v2 int32 + var self Tpthread_t + var v5 bool + _, _, _, _, _, _ = owner, self, tid, v1, v2, v5 + self = uintptr(___get_tp(tls)) + tid = (*t__pthread)(unsafe.Pointer(self)).Ftid + owner = AtomicLoadPInt32(f + 140) + if owner & ^Int32FromInt32(MAYBE_WAITERS) == tid { + if (*TFILE)(unsafe.Pointer(f)).Flockcount == int64(0x7fffffffffffffff) { + return -int32(1) + } + (*TFILE)(unsafe.Pointer(f)).Flockcount = (*TFILE)(unsafe.Pointer(f)).Flockcount + 1 + return 0 + } + if owner < 0 { + v1 = Int32FromInt32(0) + owner = v1 + AtomicStorePInt32(f+140, v1) + } + if v5 = owner != 0; !v5 { + v1 = 0 + // __asm__ __volatile__ ( + // + // "lock ; cmpxchg %3, %1" + // : "=a"(t), "=m"(*p) : "a"(t), "r"(s) : "memory" ); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 4, __ccgo_ts+1577) + v2 = v1 + goto _4 + _4: + } + if v5 || v2 != 0 { + return -int32(1) + } + X__register_locked_file(tls, f, self) + return 0 +} + +func Xfunlockfile(tls *TLS, f uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } + if (*TFILE)(unsafe.Pointer(f)).Flockcount == int64(1) { + X__unlist_locked_file(tls, f) + (*TFILE)(unsafe.Pointer(f)).Flockcount = 0 + ___unlockfile(tls, f) + } else { + (*TFILE)(unsafe.Pointer(f)).Flockcount = (*TFILE)(unsafe.Pointer(f)).Flockcount - 1 + } +} + +func Xfwide(tls *TLS, f uintptr, mode int32) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v mode=%v, (%v:)", tls, f, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, v1, v3 int32 + var v2 Tlocale_t + _, _, _, _ = __need_unlock, v1, v2, v3 + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + if mode != 0 { + if !((*TFILE)(unsafe.Pointer(f)).Flocale != 0) { + if !!(**(**uintptr)(__ccgo_up((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale)) != 0) { + v3 = int32(4) + } else { + v3 = int32(1) + } + if v3 == int32(1) { + v2 = uintptr(unsafe.Pointer(&X__c_locale)) + } else { + v2 = uintptr(unsafe.Pointer(&X__c_dot_utf8_locale)) + } + (*TFILE)(unsafe.Pointer(f)).Flocale = v2 + } + if !((*TFILE)(unsafe.Pointer(f)).Fmode != 0) { + if mode > 0 { + v1 = int32(1) + } else { + v1 = -int32(1) + } + (*TFILE)(unsafe.Pointer(f)).Fmode = v1 + } + } + mode = (*TFILE)(unsafe.Pointer(f)).Fmode + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return mode +} + +func Xfwprintf(tls *TLS, f uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v va=%v, (%v:)", tls, f, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvfwprintf(tls, f, fmt, ap) + _ = ap + return ret +} + +func X__fwritex(tls *TLS, s uintptr, l Tsize_t, f uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v l=%v f=%v, (%v:)", tls, s, l, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var i, n Tsize_t + _, _ = i, n + i = uint64(0) + if !((*TFILE)(unsafe.Pointer(f)).Fwend != 0) && X__towrite(tls, f) != 0 { + return uint64(0) + } + if l > Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Fwend)-int64((*TFILE)(unsafe.Pointer(f)).Fwpos)) { + return (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tsize_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fwrite})))(tls, f, s, l) + } + if (*TFILE)(unsafe.Pointer(f)).Flbf >= 0 { + /* Match /^(.*\n|)/ */ + i = l + for { + if !(i != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(i-uint64(1))))) != int32('\n')) { + break + } + goto _1 + _1: + ; + i = i - 1 + } + if i != 0 { + n = (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tsize_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fwrite})))(tls, f, s, i) + if n < i { + return n + } + s = s + uintptr(i) + l = l - i + } + } + Xmemcpy(tls, (*TFILE)(unsafe.Pointer(f)).Fwpos, s, l) + **(**uintptr)(__ccgo_up(f + 40)) += uintptr(l) + return l + i +} + +func Xfwrite(tls *TLS, src uintptr, size Tsize_t, nmemb Tsize_t, f uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v src=%v size=%v nmemb=%v f=%v, (%v:)", tls, src, size, nmemb, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, v1 int32 + var k, l Tsize_t + var v2 uint64 + _, _, _, _, _ = __need_unlock, k, l, v1, v2 + l = size * nmemb + if !(size != 0) { + nmemb = uint64(0) + } + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + k = X__fwritex(tls, src, l, f) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + if k == l { + v2 = nmemb + } else { + v2 = k / size + } + return v2 +} + +func Xfwrite_unlocked(tls *TLS, src uintptr, size Tsize_t, nmemb Tsize_t, f uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v src=%v size=%v nmemb=%v f=%v, (%v:)", tls, src, size, nmemb, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfwrite(tls, src, size, nmemb, f) +} + +func Xfwscanf(tls *TLS, f uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v va=%v, (%v:)", tls, f, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvfwscanf(tls, f, fmt, ap) + _ = ap + return ret +} + +func X__isoc99_fwscanf(tls *TLS, f uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v va=%v, (%v:)", tls, f, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfwscanf(tls, f, fmt, va) +} + +func _locking_getc1(tls *TLS, f uintptr) (r int32) { + var c, v1, v2, v4, v7, v8 int32 + var v10, v5, v6 uintptr + _, _, _, _, _, _, _, _, _ = c, v1, v10, v2, v4, v5, v6, v7, v8 + v1 = 0 + // __asm__ __volatile__ ( + // + // "lock ; cmpxchg %3, %1" + // : "=a"(t), "=m"(*p) : "a"(t), "r"(s) : "memory" ); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 4, __ccgo_ts+1525) + v2 = v1 + goto _3 +_3: + if v2 != 0 { + ___lockfile(tls, f) + } + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + v6 = f + 8 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v5))) + } else { + v1 = X__uflow(tls, f) + } + c = v1 + v2 = 0 + // __asm__ __volatile__( + // + // "xchg %0, %1" + // : "=r"(v), "=m"(*p) : "0"(v) : "memory" ); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 22, __ccgo_ts+1525) + v4 = v2 + goto _9 +_9: + if v4&int32(MAYBE_WAITERS) != 0 { + v10 = f + 140 + v7 = int32(1) + v8 = int32(1) + if v8 != 0 { + v8 = int32(FUTEX_PRIVATE) + } + if v7 < Int32FromInt32(0) { + v7 = int32(INT_MAX) + } + _ = X__syscall3(tls, int64(SYS_futex), int64(v10), int64(Int32FromInt32(FUTEX_WAKE)|v8), int64(v7)) != int64(-int32(ENOSYS)) || X__syscall3(tls, int64(SYS_futex), int64(v10), int64(Int32FromInt32(FUTEX_WAKE)), int64(v7)) != 0 + } + return c +} + +func Xgetc(tls *TLS, f1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f1=%v, (%v:)", tls, f1, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l, v2, v4 int32 + var v1, v5, v6 uintptr + _, _, _, _, _, _ = l, v1, v2, v4, v5, v6 + v1 = f1 + l = AtomicLoadPInt32(v1 + 140) + if l < 0 || l != 0 && l & ^Int32FromInt32(MAYBE_WAITERS) == (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Ftid { + if (*TFILE)(unsafe.Pointer(v1)).Frpos != (*TFILE)(unsafe.Pointer(v1)).Frend { + v6 = v1 + 8 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + v4 = Int32FromUint8(**(**uint8)(__ccgo_up(v5))) + } else { + v4 = X__uflow(tls, v1) + } + v2 = v4 + goto _3 + } + v2 = _locking_getc1(tls, v1) + goto _3 +_3: + return v2 +} + +func X_IO_getc(tls *TLS, f1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f1=%v, (%v:)", tls, f1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetc(tls, f1) +} + +func Xgetc_unlocked(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + var v2, v3 uintptr + _, _, _ = v1, v2, v3 + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + v3 = f + 8 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__uflow(tls, f) + } + return v1 +} + +func X_IO_getc_unlocked(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetc_unlocked(tls, f) +} + +func Xfgetc_unlocked(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetc_unlocked(tls, f) +} + +func _locking_getc2(tls *TLS, f uintptr) (r int32) { + var c, v1, v2, v4, v7, v8 int32 + var v10, v5, v6 uintptr + _, _, _, _, _, _, _, _, _ = c, v1, v10, v2, v4, v5, v6, v7, v8 + v1 = 0 + // __asm__ __volatile__ ( + // + // "lock ; cmpxchg %3, %1" + // : "=a"(t), "=m"(*p) : "a"(t), "r"(s) : "memory" ); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 4, __ccgo_ts+1525) + v2 = v1 + goto _3 +_3: + if v2 != 0 { + ___lockfile(tls, f) + } + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + v6 = f + 8 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v5))) + } else { + v1 = X__uflow(tls, f) + } + c = v1 + v2 = 0 + // __asm__ __volatile__( + // + // "xchg %0, %1" + // : "=r"(v), "=m"(*p) : "0"(v) : "memory" ); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 22, __ccgo_ts+1525) + v4 = v2 + goto _9 +_9: + if v4&int32(MAYBE_WAITERS) != 0 { + v10 = f + 140 + v7 = int32(1) + v8 = int32(1) + if v8 != 0 { + v8 = int32(FUTEX_PRIVATE) + } + if v7 < Int32FromInt32(0) { + v7 = int32(INT_MAX) + } + _ = X__syscall3(tls, int64(SYS_futex), int64(v10), int64(Int32FromInt32(FUTEX_WAKE)|v8), int64(v7)) != int64(-int32(ENOSYS)) || X__syscall3(tls, int64(SYS_futex), int64(v10), int64(Int32FromInt32(FUTEX_WAKE)), int64(v7)) != 0 + } + return c +} + +func Xgetchar(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l, v2, v4 int32 + var v1, v5, v6 uintptr + _, _, _, _, _, _ = l, v1, v2, v4, v5, v6 + v1 = uintptr(unsafe.Pointer(&X__stdin_FILE)) + l = AtomicLoadPInt32(v1 + 140) + if l < 0 || l != 0 && l & ^Int32FromInt32(MAYBE_WAITERS) == (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Ftid { + if (*TFILE)(unsafe.Pointer(v1)).Frpos != (*TFILE)(unsafe.Pointer(v1)).Frend { + v6 = v1 + 8 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + v4 = Int32FromUint8(**(**uint8)(__ccgo_up(v5))) + } else { + v4 = X__uflow(tls, v1) + } + v2 = v4 + goto _3 + } + v2 = _locking_getc2(tls, v1) + goto _3 +_3: + return v2 +} + +func Xgetchar_unlocked(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + var v2, v3 uintptr + _, _, _ = v1, v2, v3 + if (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdin_FILE)))).Frpos != (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdin_FILE)))).Frend { + v3 = uintptr(unsafe.Pointer(&X__stdin_FILE)) + 8 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__uflow(tls, uintptr(unsafe.Pointer(&X__stdin_FILE))) + } + return v1 +} + +func Xgetdelim(tls *TLS, s uintptr, n uintptr, delim int32, f uintptr) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v delim=%v f=%v, (%v:)", tls, s, n, delim, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, c, v1, v4 int32 + var i, k, m, v11 Tsize_t + var tmp, z, v6, v7 uintptr + var v10 int8 + var v3 int64 + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = __need_unlock, c, i, k, m, tmp, z, v1, v10, v11, v3, v4, v6, v7 + i = uint64(0) + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + if !(n != 0) || !(s != 0) { + **(**int32)(__ccgo_up(f + 136)) |= (*TFILE)(unsafe.Pointer(f)).Fmode - int32(1) + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return int64(-int32(1)) + } + if !(**(**uintptr)(__ccgo_up(s)) != 0) { + **(**Tsize_t)(__ccgo_up(n)) = uint64(0) + } + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + z = Xmemchr(tls, (*TFILE)(unsafe.Pointer(f)).Frpos, delim, Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Frend)-int64((*TFILE)(unsafe.Pointer(f)).Frpos))) + if z != 0 { + v3 = int64(z) - int64((*TFILE)(unsafe.Pointer(f)).Frpos) + int64(1) + } else { + v3 = int64((*TFILE)(unsafe.Pointer(f)).Frend) - int64((*TFILE)(unsafe.Pointer(f)).Frpos) + } + k = Uint64FromInt64(v3) + } else { + z = uintptr(0) + k = uint64(0) + } + if i+k >= **(**Tsize_t)(__ccgo_up(n)) { + m = i + k + uint64(2) + if !(z != 0) && m < Uint64FromUint64(0xffffffffffffffff)/Uint64FromInt32(4) { + m = m + m/uint64(2) + } + tmp = Xrealloc(tls, **(**uintptr)(__ccgo_up(s)), m) + if !(tmp != 0) { + m = i + k + uint64(2) + tmp = Xrealloc(tls, **(**uintptr)(__ccgo_up(s)), m) + if !(tmp != 0) { + /* Copy as much as fits and ensure no + * pushback remains in the FILE buf. */ + k = **(**Tsize_t)(__ccgo_up(n)) - i + Xmemcpy(tls, **(**uintptr)(__ccgo_up(s))+uintptr(i), (*TFILE)(unsafe.Pointer(f)).Frpos, k) + **(**uintptr)(__ccgo_up(f + 8)) += uintptr(k) + **(**int32)(__ccgo_up(f + 136)) |= (*TFILE)(unsafe.Pointer(f)).Fmode - int32(1) + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOMEM) + return int64(-int32(1)) + } + } + **(**uintptr)(__ccgo_up(s)) = tmp + **(**Tsize_t)(__ccgo_up(n)) = m + } + if k != 0 { + Xmemcpy(tls, **(**uintptr)(__ccgo_up(s))+uintptr(i), (*TFILE)(unsafe.Pointer(f)).Frpos, k) + **(**uintptr)(__ccgo_up(f + 8)) += uintptr(k) + i = i + k + } + if z != 0 { + break + } + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + v7 = f + 8 + v6 = *(*uintptr)(unsafe.Pointer(v7)) + *(*uintptr)(unsafe.Pointer(v7)) = *(*uintptr)(unsafe.Pointer(v7)) + 1 + v4 = Int32FromUint8(**(**uint8)(__ccgo_up(v6))) + } else { + v4 = X__uflow(tls, f) + } + v1 = v4 + c = v1 + if v1 == -int32(1) { + if !(i != 0) || !((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_EOF) != 0) { + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return int64(-int32(1)) + } + break + } + /* If the byte read by getc won't fit without growing the + * output buffer, push it back for next iteration. */ + if i+uint64(1) >= **(**Tsize_t)(__ccgo_up(n)) { + v7 = f + 8 + *(*uintptr)(unsafe.Pointer(v7)) = *(*uintptr)(unsafe.Pointer(v7)) - 1 + v6 = *(*uintptr)(unsafe.Pointer(v7)) + **(**uint8)(__ccgo_up(v6)) = Uint8FromInt32(c) + } else { + v10 = int8(c) + v11 = i + i = i + 1 + **(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(s)) + uintptr(v11))) = v10 + if int32(v10) == delim { + break + } + } + goto _2 + _2: + } + **(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(s)) + uintptr(i))) = 0 + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return Int64FromUint64(i) +} + +func X__getdelim(tls *TLS, s uintptr, n uintptr, delim int32, f uintptr) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v delim=%v f=%v, (%v:)", tls, s, n, delim, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetdelim(tls, s, n, delim, f) +} + +func Xgetline(tls *TLS, s uintptr, n uintptr, f uintptr) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v f=%v, (%v:)", tls, s, n, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetdelim(tls, s, n, int32('\n'), f) +} + +func Xgets(tls *TLS, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, c, v1, v2, v3 int32 + var i, v6 Tsize_t + var v4, v5 uintptr + _, _, _, _, _, _, _, _, _ = __need_unlock, c, i, v1, v2, v3, v4, v5, v6 + i = uint64(0) + if AtomicLoadPInt32(uintptr(unsafe.Pointer(&X__stdin_FILE))+140) >= 0 { + v1 = ___lockfile(tls, uintptr(unsafe.Pointer(&X__stdin_FILE))) + } else { + v1 = 0 + } + __need_unlock = v1 + for { + if (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdin_FILE)))).Frpos != (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdin_FILE)))).Frend { + v5 = uintptr(unsafe.Pointer(&X__stdin_FILE)) + 8 + v4 = *(*uintptr)(unsafe.Pointer(v5)) + *(*uintptr)(unsafe.Pointer(v5)) = *(*uintptr)(unsafe.Pointer(v5)) + 1 + v3 = Int32FromUint8(**(**uint8)(__ccgo_up(v4))) + } else { + v3 = X__uflow(tls, uintptr(unsafe.Pointer(&X__stdin_FILE))) + } + v2 = v3 + c = v2 + if !(v2 != -int32(1) && c != int32('\n')) { + break + } + v6 = i + i = i + 1 + **(**int8)(__ccgo_up(s + uintptr(v6))) = int8(c) + } + **(**int8)(__ccgo_up(s + uintptr(i))) = 0 + if c != int32('\n') && (!((*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdin_FILE)))).Fflags&Uint32FromInt32(F_EOF) != 0) || !(i != 0)) { + s = uintptr(0) + } + if __need_unlock != 0 { + ___unlockfile(tls, uintptr(unsafe.Pointer(&X__stdin_FILE))) + } + return s +} + +func Xgetw(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 int32 + var _ /* x at bp+0 */ int32 + _ = v1 + if Xfread(tls, bp, uint64(4), uint64(1), f) != 0 { + v1 = **(**int32)(__ccgo_up(bp)) + } else { + v1 = -int32(1) + } + return v1 +} + +func Xgetwc(tls *TLS, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfgetwc(tls, f) +} + +func Xgetwchar(tls *TLS) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfgetwc(tls, uintptr(unsafe.Pointer(&X__stdin_FILE))) +} + +func Xgetwchar_unlocked(tls *TLS) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetwchar(tls) +} + +var _ofl_head uintptr +var _ofl_lock [1]int32 + +func X__ofl_lock(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + ___lock(tls, uintptr(unsafe.Pointer(&_ofl_lock))) + return uintptr(unsafe.Pointer(&_ofl_head)) +} + +func X__ofl_unlock(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + ___unlock(tls, uintptr(unsafe.Pointer(&_ofl_lock))) +} + +func X__ofl_add(tls *TLS, f uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var head uintptr + _ = head + head = X__ofl_lock(tls) + (*TFILE)(unsafe.Pointer(f)).Fnext = **(**uintptr)(__ccgo_up(head)) + if **(**uintptr)(__ccgo_up(head)) != 0 { + (*TFILE)(unsafe.Pointer(**(**uintptr)(__ccgo_up(head)))).Fprev = f + } + **(**uintptr)(__ccgo_up(head)) = f + X__ofl_unlock(tls) + return f +} + +type Tcookie1 = struct { + Fbufp uintptr + Fsizep uintptr + Fpos Tsize_t + Fbuf uintptr + Flen1 Tsize_t + Fspace Tsize_t +} + +type Tms_FILE = struct { + Ff TFILE + Fc Tcookie1 + Fbuf [1024]uint8 +} + +func _ms_seek(tls *TLS, f uintptr, off Toff_t, whence int32) (r Toff_t) { + bp := tls.Alloc(32) + defer tls.Free(32) + var base Tssize_t + var c uintptr + var v2 Tsize_t + _, _, _ = base, c, v2 + c = (*TFILE)(unsafe.Pointer(f)).Fcookie + if !(Uint32FromInt32(whence) > uint32(2)) { + goto _1 + } + goto fail +fail: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return int64(-int32(1)) +_1: + ; + *(*[3]Tsize_t)(unsafe.Pointer(bp)) = [3]Tsize_t{ + 1: (*Tcookie1)(unsafe.Pointer(c)).Fpos, + 2: (*Tcookie1)(unsafe.Pointer(c)).Flen1, + } + base = Int64FromUint64(**(**Tsize_t)(__ccgo_up(bp + uintptr(whence)*8))) + if off < -base || off > int64(0x7fffffffffffffff)-base { + goto fail + } + v2 = Uint64FromInt64(base + off) + (*Tcookie1)(unsafe.Pointer(c)).Fpos = v2 + return Int64FromUint64(v2) +} + +func _ms_write(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + var c, newbuf, v1 uintptr + var len2 Tsize_t + _, _, _, _ = c, len2, newbuf, v1 + c = (*TFILE)(unsafe.Pointer(f)).Fcookie + len2 = Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Fwpos) - int64((*TFILE)(unsafe.Pointer(f)).Fwbase)) + if len2 != 0 { + (*TFILE)(unsafe.Pointer(f)).Fwpos = (*TFILE)(unsafe.Pointer(f)).Fwbase + if _ms_write(tls, f, (*TFILE)(unsafe.Pointer(f)).Fwbase, len2) < len2 { + return uint64(0) + } + } + if len1+(*Tcookie1)(unsafe.Pointer(c)).Fpos >= (*Tcookie1)(unsafe.Pointer(c)).Fspace { + len2 = uint64(2)*(*Tcookie1)(unsafe.Pointer(c)).Fspace + uint64(1) | ((*Tcookie1)(unsafe.Pointer(c)).Fpos + len1 + uint64(1)) + newbuf = Xrealloc(tls, (*Tcookie1)(unsafe.Pointer(c)).Fbuf, len2) + if !(newbuf != 0) { + return uint64(0) + } + v1 = newbuf + (*Tcookie1)(unsafe.Pointer(c)).Fbuf = v1 + **(**uintptr)(__ccgo_up((*Tcookie1)(unsafe.Pointer(c)).Fbufp)) = v1 + Xmemset(tls, (*Tcookie1)(unsafe.Pointer(c)).Fbuf+uintptr((*Tcookie1)(unsafe.Pointer(c)).Fspace), 0, len2-(*Tcookie1)(unsafe.Pointer(c)).Fspace) + (*Tcookie1)(unsafe.Pointer(c)).Fspace = len2 + } + Xmemcpy(tls, (*Tcookie1)(unsafe.Pointer(c)).Fbuf+uintptr((*Tcookie1)(unsafe.Pointer(c)).Fpos), buf, len1) + **(**Tsize_t)(__ccgo_up(c + 16)) += len1 + if (*Tcookie1)(unsafe.Pointer(c)).Fpos >= (*Tcookie1)(unsafe.Pointer(c)).Flen1 { + (*Tcookie1)(unsafe.Pointer(c)).Flen1 = (*Tcookie1)(unsafe.Pointer(c)).Fpos + } + **(**Tsize_t)(__ccgo_up((*Tcookie1)(unsafe.Pointer(c)).Fsizep)) = (*Tcookie1)(unsafe.Pointer(c)).Fpos + return len1 +} + +func _ms_close(tls *TLS, f uintptr) (r int32) { + return 0 +} + +func Xopen_memstream(tls *TLS, bufp uintptr, sizep uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v bufp=%v sizep=%v, (%v:)", tls, bufp, sizep, origin(2)) + defer func() { trc("-> %v", r) }() + } + var buf, f, v1 uintptr + var v3, v4, v5 Tsize_t + _, _, _, _, _, _ = buf, f, v1, v3, v4, v5 + v1 = Xmalloc(tls, uint64(1304)) + f = v1 + if !(v1 != 0) { + return uintptr(0) + } + v1 = Xmalloc(tls, uint64(1)) + buf = v1 + if !(v1 != 0) { + Xfree(tls, f) + return uintptr(0) + } + Xmemset(tls, f, 0, uint64(232)) + Xmemset(tls, f+232, 0, uint64(48)) + (*Tms_FILE)(unsafe.Pointer(f)).Ff.Fcookie = f + 232 + (*Tms_FILE)(unsafe.Pointer(f)).Fc.Fbufp = bufp + (*Tms_FILE)(unsafe.Pointer(f)).Fc.Fsizep = sizep + v5 = Uint64FromInt32(0) + **(**Tsize_t)(__ccgo_up(sizep)) = v5 + v4 = v5 + (*Tms_FILE)(unsafe.Pointer(f)).Fc.Fspace = v4 + v3 = v4 + (*Tms_FILE)(unsafe.Pointer(f)).Fc.Flen1 = v3 + (*Tms_FILE)(unsafe.Pointer(f)).Fc.Fpos = v3 + v1 = buf + **(**uintptr)(__ccgo_up(bufp)) = v1 + (*Tms_FILE)(unsafe.Pointer(f)).Fc.Fbuf = v1 + **(**int8)(__ccgo_up(buf)) = 0 + (*Tms_FILE)(unsafe.Pointer(f)).Ff.Fflags = uint32(F_NORD) + (*Tms_FILE)(unsafe.Pointer(f)).Ff.Ffd = -int32(1) + (*Tms_FILE)(unsafe.Pointer(f)).Ff.Fbuf = f + 280 + (*Tms_FILE)(unsafe.Pointer(f)).Ff.Fbuf_size = uint64(1024) + (*Tms_FILE)(unsafe.Pointer(f)).Ff.Flbf = -int32(1) + (*Tms_FILE)(unsafe.Pointer(f)).Ff.Fwrite = __ccgo_fp(_ms_write) + (*Tms_FILE)(unsafe.Pointer(f)).Ff.Fseek = __ccgo_fp(_ms_seek) + (*Tms_FILE)(unsafe.Pointer(f)).Ff.Fclose1 = __ccgo_fp(_ms_close) + (*Tms_FILE)(unsafe.Pointer(f)).Ff.Fmode = -int32(1) + if !(X__libc.Fthreaded != 0) { + AtomicStorePInt32(f+140, -int32(1)) + } + return X__ofl_add(tls, f) +} + +type Tcookie2 = struct { + Fbufp uintptr + Fsizep uintptr + Fpos Tsize_t + Fbuf uintptr + Flen1 Tsize_t + Fspace Tsize_t + Fmbs Tmbstate_t +} + +type Twms_FILE = struct { + Ff TFILE + Fc Tcookie2 + Fbuf [1]uint8 +} + +func _wms_seek(tls *TLS, f uintptr, off Toff_t, whence int32) (r Toff_t) { + bp := tls.Alloc(32) + defer tls.Free(32) + var base Tssize_t + var c uintptr + var v2 Tsize_t + _, _, _ = base, c, v2 + c = (*TFILE)(unsafe.Pointer(f)).Fcookie + if !(Uint32FromInt32(whence) > uint32(2)) { + goto _1 + } + goto fail +fail: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return int64(-int32(1)) +_1: + ; + *(*[3]Tsize_t)(unsafe.Pointer(bp)) = [3]Tsize_t{ + 1: (*Tcookie2)(unsafe.Pointer(c)).Fpos, + 2: (*Tcookie2)(unsafe.Pointer(c)).Flen1, + } + base = Int64FromUint64(**(**Tsize_t)(__ccgo_up(bp + uintptr(whence)*8))) + if off < -base || off > Int64FromInt64(0x7fffffffffffffff)/Int64FromInt32(4)-base { + goto fail + } + Xmemset(tls, c+48, 0, uint64(8)) + v2 = Uint64FromInt64(base + off) + (*Tcookie2)(unsafe.Pointer(c)).Fpos = v2 + return Int64FromUint64(v2) +} + +func _wms_write(tls *TLS, f uintptr, _buf uintptr, len1 Tsize_t) (r Tsize_t) { + bp := tls.Alloc(16) + defer tls.Free(16) + *(*uintptr)(unsafe.Pointer(bp)) = _buf + var c, newbuf, v1 uintptr + var len2 Tsize_t + _, _, _, _ = c, len2, newbuf, v1 + c = (*TFILE)(unsafe.Pointer(f)).Fcookie + len2 = Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Fwpos) - int64((*TFILE)(unsafe.Pointer(f)).Fwbase)) + if len2 != 0 { + (*TFILE)(unsafe.Pointer(f)).Fwpos = (*TFILE)(unsafe.Pointer(f)).Fwbase + if _wms_write(tls, f, (*TFILE)(unsafe.Pointer(f)).Fwbase, len2) < len2 { + return uint64(0) + } + } + if len1+(*Tcookie2)(unsafe.Pointer(c)).Fpos >= (*Tcookie2)(unsafe.Pointer(c)).Fspace { + len2 = uint64(2)*(*Tcookie2)(unsafe.Pointer(c)).Fspace + uint64(1) | ((*Tcookie2)(unsafe.Pointer(c)).Fpos + len1 + uint64(1)) + if len2 > Uint64FromInt64(Int64FromInt64(0x7fffffffffffffff)/Int64FromInt32(4)) { + return uint64(0) + } + newbuf = Xrealloc(tls, (*Tcookie2)(unsafe.Pointer(c)).Fbuf, len2*uint64(4)) + if !(newbuf != 0) { + return uint64(0) + } + v1 = newbuf + (*Tcookie2)(unsafe.Pointer(c)).Fbuf = v1 + **(**uintptr)(__ccgo_up((*Tcookie2)(unsafe.Pointer(c)).Fbufp)) = v1 + Xmemset(tls, (*Tcookie2)(unsafe.Pointer(c)).Fbuf+uintptr((*Tcookie2)(unsafe.Pointer(c)).Fspace)*4, 0, uint64(4)*(len2-(*Tcookie2)(unsafe.Pointer(c)).Fspace)) + (*Tcookie2)(unsafe.Pointer(c)).Fspace = len2 + } + len2 = Xmbsnrtowcs(tls, (*Tcookie2)(unsafe.Pointer(c)).Fbuf+uintptr((*Tcookie2)(unsafe.Pointer(c)).Fpos)*4, bp, len1, (*Tcookie2)(unsafe.Pointer(c)).Fspace-(*Tcookie2)(unsafe.Pointer(c)).Fpos, c+48) + if len2 == Uint64FromInt32(-Int32FromInt32(1)) { + return uint64(0) + } + **(**Tsize_t)(__ccgo_up(c + 16)) += len2 + if (*Tcookie2)(unsafe.Pointer(c)).Fpos >= (*Tcookie2)(unsafe.Pointer(c)).Flen1 { + (*Tcookie2)(unsafe.Pointer(c)).Flen1 = (*Tcookie2)(unsafe.Pointer(c)).Fpos + } + **(**Tsize_t)(__ccgo_up((*Tcookie2)(unsafe.Pointer(c)).Fsizep)) = (*Tcookie2)(unsafe.Pointer(c)).Fpos + return len1 +} + +func _wms_close(tls *TLS, f uintptr) (r int32) { + return 0 +} + +func Xopen_wmemstream(tls *TLS, bufp uintptr, sizep uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v bufp=%v sizep=%v, (%v:)", tls, bufp, sizep, origin(2)) + defer func() { trc("-> %v", r) }() + } + var buf, f, v1 uintptr + var v3, v4, v5 Tsize_t + _, _, _, _, _, _ = buf, f, v1, v3, v4, v5 + v1 = Xmalloc(tls, uint64(296)) + f = v1 + if !(v1 != 0) { + return uintptr(0) + } + v1 = Xmalloc(tls, uint64(4)) + buf = v1 + if !(v1 != 0) { + Xfree(tls, f) + return uintptr(0) + } + Xmemset(tls, f, 0, uint64(232)) + Xmemset(tls, f+232, 0, uint64(56)) + (*Twms_FILE)(unsafe.Pointer(f)).Ff.Fcookie = f + 232 + (*Twms_FILE)(unsafe.Pointer(f)).Fc.Fbufp = bufp + (*Twms_FILE)(unsafe.Pointer(f)).Fc.Fsizep = sizep + v5 = Uint64FromInt32(0) + **(**Tsize_t)(__ccgo_up(sizep)) = v5 + v4 = v5 + (*Twms_FILE)(unsafe.Pointer(f)).Fc.Fspace = v4 + v3 = v4 + (*Twms_FILE)(unsafe.Pointer(f)).Fc.Flen1 = v3 + (*Twms_FILE)(unsafe.Pointer(f)).Fc.Fpos = v3 + v1 = buf + **(**uintptr)(__ccgo_up(bufp)) = v1 + (*Twms_FILE)(unsafe.Pointer(f)).Fc.Fbuf = v1 + **(**Twchar_t)(__ccgo_up(buf)) = 0 + (*Twms_FILE)(unsafe.Pointer(f)).Ff.Fflags = uint32(F_NORD) + (*Twms_FILE)(unsafe.Pointer(f)).Ff.Ffd = -int32(1) + (*Twms_FILE)(unsafe.Pointer(f)).Ff.Fbuf = f + 288 + (*Twms_FILE)(unsafe.Pointer(f)).Ff.Fbuf_size = uint64(0) + (*Twms_FILE)(unsafe.Pointer(f)).Ff.Flbf = -int32(1) + (*Twms_FILE)(unsafe.Pointer(f)).Ff.Fwrite = __ccgo_fp(_wms_write) + (*Twms_FILE)(unsafe.Pointer(f)).Ff.Fseek = __ccgo_fp(_wms_seek) + (*Twms_FILE)(unsafe.Pointer(f)).Ff.Fclose1 = __ccgo_fp(_wms_close) + if !(X__libc.Fthreaded != 0) { + AtomicStorePInt32(f+140, -int32(1)) + } + Xfwide(tls, f, int32(1)) + return X__ofl_add(tls, f) +} + +func Xpclose(tls *TLS, f uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var pid Tpid_t + var r, v1 int32 + var _ /* status at bp+0 */ int32 + _, _, _ = pid, r, v1 + pid = (*TFILE)(unsafe.Pointer(f)).Fpipe_pid + Xfclose(tls, f) + for { + v1 = int32(X__syscall4(tls, int64(SYS_wait4), int64(pid), int64(bp), int64(Int32FromInt32(0)), int64(Int32FromInt32(0)))) + r = v1 + if !(v1 == -int32(EINTR)) { + break + } + } + if r < 0 { + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) + } + return **(**int32)(__ccgo_up(bp)) +} + +func Xperror(tls *TLS, msg uintptr) { + if __ccgo_strace { + trc("tls=%v msg=%v, (%v:)", tls, msg, origin(2)) + } + var __need_unlock, old_mode, v1 int32 + var errstr, f, old_locale uintptr + _, _, _, _, _, _ = __need_unlock, errstr, f, old_locale, old_mode, v1 + f = uintptr(unsafe.Pointer(&X__stderr_FILE)) + errstr = Xstrerror(tls, **(**int32)(__ccgo_up(X__errno_location(tls)))) + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + /* Save stderr's orientation and encoding rule, since perror is not + * permitted to change them. */ + old_locale = (*TFILE)(unsafe.Pointer(f)).Flocale + old_mode = (*TFILE)(unsafe.Pointer(f)).Fmode + if msg != 0 && **(**int8)(__ccgo_up(msg)) != 0 { + Xfwrite(tls, msg, _strlen(tls, msg), uint64(1), f) + Xfputc(tls, int32(':'), f) + Xfputc(tls, int32(' '), f) + } + Xfwrite(tls, errstr, _strlen(tls, errstr), uint64(1), f) + Xfputc(tls, int32('\n'), f) + (*TFILE)(unsafe.Pointer(f)).Fmode = old_mode + (*TFILE)(unsafe.Pointer(f)).Flocale = old_locale + if __need_unlock != 0 { + ___unlockfile(tls, f) + } +} + +func Xprintf(tls *TLS, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v va=%v, (%v:)", tls, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvfprintf(tls, uintptr(unsafe.Pointer(&X__stdout_FILE)), fmt, ap) + _ = ap + return ret +} + +func _locking_putc1(tls *TLS, c int32, f uintptr) (r int32) { + var v1, v2, v4, v8 int32 + var v6, v7 uintptr + var v5 uint8 + _, _, _, _, _, _, _ = v1, v2, v4, v5, v6, v7, v8 + v1 = 0 + // __asm__ __volatile__ ( + // + // "lock ; cmpxchg %3, %1" + // : "=a"(t), "=m"(*p) : "a"(t), "r"(s) : "memory" ); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 4, __ccgo_ts+1538) + v2 = v1 + goto _3 +_3: + if v2 != 0 { + ___lockfile(tls, f) + } + if Int32FromUint8(Uint8FromInt32(c)) != (*TFILE)(unsafe.Pointer(f)).Flbf && (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwend { + v5 = Uint8FromInt32(c) + v7 = f + 40 + v6 = *(*uintptr)(unsafe.Pointer(v7)) + *(*uintptr)(unsafe.Pointer(v7)) = *(*uintptr)(unsafe.Pointer(v7)) + 1 + **(**uint8)(__ccgo_up(v6)) = v5 + v1 = Int32FromUint8(v5) + } else { + v1 = X__overflow(tls, f, Int32FromUint8(Uint8FromInt32(c))) + } + c = v1 + v1 = 0 + // __asm__ __volatile__( + // + // "xchg %0, %1" + // : "=r"(v), "=m"(*p) : "0"(v) : "memory" ); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 22, __ccgo_ts+1538) + v2 = v1 + goto _10 +_10: + if v2&int32(MAYBE_WAITERS) != 0 { + v6 = f + 140 + v4 = int32(1) + v8 = int32(1) + if v8 != 0 { + v8 = int32(FUTEX_PRIVATE) + } + if v4 < Int32FromInt32(0) { + v4 = int32(INT_MAX) + } + _ = X__syscall3(tls, int64(SYS_futex), int64(v6), int64(Int32FromInt32(FUTEX_WAKE)|v8), int64(v4)) != int64(-int32(ENOSYS)) || X__syscall3(tls, int64(SYS_futex), int64(v6), int64(Int32FromInt32(FUTEX_WAKE)), int64(v4)) != 0 + } + return c +} + +func Xputc(tls *TLS, c1 int32, f1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v c1=%v f1=%v, (%v:)", tls, c1, f1, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l, v1, v3, v5 int32 + var v2, v7, v8 uintptr + var v6 uint8 + _, _, _, _, _, _, _, _ = l, v1, v2, v3, v5, v6, v7, v8 + v1 = c1 + v2 = f1 + l = AtomicLoadPInt32(v2 + 140) + if l < 0 || l != 0 && l & ^Int32FromInt32(MAYBE_WAITERS) == (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Ftid { + if Int32FromUint8(Uint8FromInt32(v1)) != (*TFILE)(unsafe.Pointer(v2)).Flbf && (*TFILE)(unsafe.Pointer(v2)).Fwpos != (*TFILE)(unsafe.Pointer(v2)).Fwend { + v6 = Uint8FromInt32(v1) + v8 = v2 + 40 + v7 = *(*uintptr)(unsafe.Pointer(v8)) + *(*uintptr)(unsafe.Pointer(v8)) = *(*uintptr)(unsafe.Pointer(v8)) + 1 + **(**uint8)(__ccgo_up(v7)) = v6 + v5 = Int32FromUint8(v6) + } else { + v5 = X__overflow(tls, v2, Int32FromUint8(Uint8FromInt32(v1))) + } + v3 = v5 + goto _4 + } + v3 = _locking_putc1(tls, v1, v2) + goto _4 +_4: + return v3 +} + +func X_IO_putc(tls *TLS, c1 int32, f1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v c1=%v f1=%v, (%v:)", tls, c1, f1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xputc(tls, c1, f1) +} + +func Xputc_unlocked(tls *TLS, c int32, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v f=%v, (%v:)", tls, c, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + var v2 uint8 + var v3, v4 uintptr + _, _, _, _ = v1, v2, v3, v4 + if Int32FromUint8(Uint8FromInt32(c)) != (*TFILE)(unsafe.Pointer(f)).Flbf && (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwend { + v2 = Uint8FromInt32(c) + v4 = f + 40 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + **(**uint8)(__ccgo_up(v3)) = v2 + v1 = Int32FromUint8(v2) + } else { + v1 = X__overflow(tls, f, Int32FromUint8(Uint8FromInt32(c))) + } + return v1 +} + +func X_IO_putc_unlocked(tls *TLS, c int32, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v f=%v, (%v:)", tls, c, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xputc_unlocked(tls, c, f) +} + +func Xfputc_unlocked(tls *TLS, c int32, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v f=%v, (%v:)", tls, c, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xputc_unlocked(tls, c, f) +} + +func _locking_putc2(tls *TLS, c int32, f uintptr) (r int32) { + var v1, v2, v4, v8 int32 + var v6, v7 uintptr + var v5 uint8 + _, _, _, _, _, _, _ = v1, v2, v4, v5, v6, v7, v8 + v1 = 0 + // __asm__ __volatile__ ( + // + // "lock ; cmpxchg %3, %1" + // : "=a"(t), "=m"(*p) : "a"(t), "r"(s) : "memory" ); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 4, __ccgo_ts+1538) + v2 = v1 + goto _3 +_3: + if v2 != 0 { + ___lockfile(tls, f) + } + if Int32FromUint8(Uint8FromInt32(c)) != (*TFILE)(unsafe.Pointer(f)).Flbf && (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwend { + v5 = Uint8FromInt32(c) + v7 = f + 40 + v6 = *(*uintptr)(unsafe.Pointer(v7)) + *(*uintptr)(unsafe.Pointer(v7)) = *(*uintptr)(unsafe.Pointer(v7)) + 1 + **(**uint8)(__ccgo_up(v6)) = v5 + v1 = Int32FromUint8(v5) + } else { + v1 = X__overflow(tls, f, Int32FromUint8(Uint8FromInt32(c))) + } + c = v1 + v1 = 0 + // __asm__ __volatile__( + // + // "xchg %0, %1" + // : "=r"(v), "=m"(*p) : "0"(v) : "memory" ); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 22, __ccgo_ts+1538) + v2 = v1 + goto _10 +_10: + if v2&int32(MAYBE_WAITERS) != 0 { + v6 = f + 140 + v4 = int32(1) + v8 = int32(1) + if v8 != 0 { + v8 = int32(FUTEX_PRIVATE) + } + if v4 < Int32FromInt32(0) { + v4 = int32(INT_MAX) + } + _ = X__syscall3(tls, int64(SYS_futex), int64(v6), int64(Int32FromInt32(FUTEX_WAKE)|v8), int64(v4)) != int64(-int32(ENOSYS)) || X__syscall3(tls, int64(SYS_futex), int64(v6), int64(Int32FromInt32(FUTEX_WAKE)), int64(v4)) != 0 + } + return c +} + +func Xputchar(tls *TLS, c1 int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c1=%v, (%v:)", tls, c1, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l, v1, v3, v5 int32 + var v2, v7, v8 uintptr + var v6 uint8 + _, _, _, _, _, _, _, _ = l, v1, v2, v3, v5, v6, v7, v8 + v1 = c1 + v2 = uintptr(unsafe.Pointer(&X__stdout_FILE)) + l = AtomicLoadPInt32(v2 + 140) + if l < 0 || l != 0 && l & ^Int32FromInt32(MAYBE_WAITERS) == (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Ftid { + if Int32FromUint8(Uint8FromInt32(v1)) != (*TFILE)(unsafe.Pointer(v2)).Flbf && (*TFILE)(unsafe.Pointer(v2)).Fwpos != (*TFILE)(unsafe.Pointer(v2)).Fwend { + v6 = Uint8FromInt32(v1) + v8 = v2 + 40 + v7 = *(*uintptr)(unsafe.Pointer(v8)) + *(*uintptr)(unsafe.Pointer(v8)) = *(*uintptr)(unsafe.Pointer(v8)) + 1 + **(**uint8)(__ccgo_up(v7)) = v6 + v5 = Int32FromUint8(v6) + } else { + v5 = X__overflow(tls, v2, Int32FromUint8(Uint8FromInt32(v1))) + } + v3 = v5 + goto _4 + } + v3 = _locking_putc2(tls, v1, v2) + goto _4 +_4: + return v3 +} + +func Xputchar_unlocked(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + var v2 uint8 + var v3, v4 uintptr + _, _, _, _ = v1, v2, v3, v4 + if Int32FromUint8(Uint8FromInt32(c)) != (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdout_FILE)))).Flbf && (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdout_FILE)))).Fwpos != (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdout_FILE)))).Fwend { + v2 = Uint8FromInt32(c) + v4 = uintptr(unsafe.Pointer(&X__stdout_FILE)) + 40 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + **(**uint8)(__ccgo_up(v3)) = v2 + v1 = Int32FromUint8(v2) + } else { + v1 = X__overflow(tls, uintptr(unsafe.Pointer(&X__stdout_FILE)), Int32FromUint8(Uint8FromInt32(c))) + } + return v1 +} + +func Xputs(tls *TLS, s uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var __need_unlock, r, v1, v2 int32 + var v3 uint8 + var v4, v5 uintptr + var v6 bool + _, _, _, _, _, _, _, _ = __need_unlock, r, v1, v2, v3, v4, v5, v6 + if AtomicLoadPInt32(uintptr(unsafe.Pointer(&X__stdout_FILE))+140) >= 0 { + v1 = ___lockfile(tls, uintptr(unsafe.Pointer(&X__stdout_FILE))) + } else { + v1 = 0 + } + __need_unlock = v1 + if v6 = Xfputs(tls, s, uintptr(unsafe.Pointer(&X__stdout_FILE))) < 0; !v6 { + if Int32FromUint8(Uint8FromInt32(Int32FromUint8('\n'))) != (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdout_FILE)))).Flbf && (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdout_FILE)))).Fwpos != (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdout_FILE)))).Fwend { + v3 = Uint8FromInt32(Int32FromUint8('\n')) + v5 = uintptr(unsafe.Pointer(&X__stdout_FILE)) + 40 + v4 = *(*uintptr)(unsafe.Pointer(v5)) + *(*uintptr)(unsafe.Pointer(v5)) = *(*uintptr)(unsafe.Pointer(v5)) + 1 + **(**uint8)(__ccgo_up(v4)) = v3 + v2 = Int32FromUint8(v3) + } else { + v2 = X__overflow(tls, uintptr(unsafe.Pointer(&X__stdout_FILE)), Int32FromUint8(Uint8FromInt32(Int32FromUint8('\n')))) + } + } + r = -BoolInt32(v6 || v2 < 0) + if __need_unlock != 0 { + ___unlockfile(tls, uintptr(unsafe.Pointer(&X__stdout_FILE))) + } + return r +} + +func Xputw(tls *TLS, _x int32, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v _x=%v f=%v, (%v:)", tls, _x, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + *(*int32)(unsafe.Pointer(bp)) = _x + return Int32FromUint64(Xfwrite(tls, bp, uint64(4), uint64(1), f)) - int32(1) +} + +func Xputwc(tls *TLS, c Twchar_t, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v f=%v, (%v:)", tls, c, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfputwc(tls, c, f) +} + +func Xputwchar(tls *TLS, c Twchar_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfputwc(tls, c, uintptr(unsafe.Pointer(&X__stdout_FILE))) +} + +func Xputwchar_unlocked(tls *TLS, c Twchar_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xputwchar(tls, c) +} + +func Xremove(tls *TLS, path uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v path=%v, (%v:)", tls, path, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + r = int32(X__syscall1(tls, int64(SYS_unlink), int64(path))) + if r == -int32(EISDIR) { + r = int32(X__syscall1(tls, int64(SYS_rmdir), int64(path))) + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func Xrename(tls *TLS, old uintptr, new1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v old=%v new1=%v, (%v:)", tls, old, new1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_rename), int64(old), int64(new1))))) +} + +func Xrewind(tls *TLS, f uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } + var __need_unlock, v1 int32 + _, _ = __need_unlock, v1 + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + X__fseeko_unlocked(tls, f, 0, 0) + **(**uint32)(__ccgo_up(f)) &= Uint32FromInt32(^Int32FromInt32(F_ERR)) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } +} + +func Xscanf(tls *TLS, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v va=%v, (%v:)", tls, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvscanf(tls, fmt, ap) + _ = ap + return ret +} + +func X__isoc99_scanf(tls *TLS, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v va=%v, (%v:)", tls, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xscanf(tls, fmt, va) +} + +func Xsetbuf(tls *TLS, f uintptr, buf uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v buf=%v, (%v:)", tls, f, buf, origin(2)) + } + var v1 int32 + _ = v1 + if buf != 0 { + v1 = _IOFBF + } else { + v1 = int32(_IONBF) + } + Xsetvbuf(tls, f, buf, v1, uint64(BUFSIZ)) +} + +func Xsetbuffer(tls *TLS, f uintptr, buf uintptr, size Tsize_t) { + if __ccgo_strace { + trc("tls=%v f=%v buf=%v size=%v, (%v:)", tls, f, buf, size, origin(2)) + } + var v1 int32 + _ = v1 + if buf != 0 { + v1 = _IOFBF + } else { + v1 = int32(_IONBF) + } + Xsetvbuf(tls, f, buf, v1, size) +} + +func Xsetlinebuf(tls *TLS, f uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } + Xsetvbuf(tls, f, uintptr(0), int32(_IOLBF), uint64(0)) +} + +/* The behavior of this function is undefined except when it is the first + * operation on the stream, so the presence or absence of locking is not + * observable in a program whose behavior is defined. Thus no locking is + * performed here. No allocation of buffers is performed, but a buffer + * provided by the caller is used as long as it is suitably sized. */ + +func Xsetvbuf(tls *TLS, f uintptr, buf uintptr, type1 int32, size Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v buf=%v type1=%v size=%v, (%v:)", tls, f, buf, type1, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + (*TFILE)(unsafe.Pointer(f)).Flbf = -int32(1) + if type1 == int32(_IONBF) { + (*TFILE)(unsafe.Pointer(f)).Fbuf_size = uint64(0) + } else { + if type1 == int32(_IOLBF) || type1 == _IOFBF { + if buf != 0 && size >= uint64(UNGET) { + (*TFILE)(unsafe.Pointer(f)).Fbuf = buf + UintptrFromInt32(UNGET) + (*TFILE)(unsafe.Pointer(f)).Fbuf_size = size - uint64(UNGET) + } + if type1 == int32(_IOLBF) && (*TFILE)(unsafe.Pointer(f)).Fbuf_size != 0 { + (*TFILE)(unsafe.Pointer(f)).Flbf = int32('\n') + } + } else { + return -int32(1) + } + } + **(**uint32)(__ccgo_up(f)) |= uint32(F_SVB) + return 0 +} + +func Xsnprintf(tls *TLS, s uintptr, n Tsize_t, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v fmt=%v va=%v, (%v:)", tls, s, n, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvsnprintf(tls, s, n, fmt, ap) + _ = ap + return ret +} + +func Xsprintf(tls *TLS, s uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v va=%v, (%v:)", tls, s, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvsprintf(tls, s, fmt, ap) + _ = ap + return ret +} + +func Xsscanf(tls *TLS, s uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v va=%v, (%v:)", tls, s, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvsscanf(tls, s, fmt, ap) + _ = ap + return ret +} + +func X__isoc99_sscanf(tls *TLS, s uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v va=%v, (%v:)", tls, s, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xsscanf(tls, s, fmt, va) +} + +var _buf5 [8]uint8 + +func init() { + p := unsafe.Pointer(&X__stderr_FILE) + *(*uintptr)(unsafe.Add(p, 24)) = __ccgo_fp(X__stdio_close) + *(*uintptr)(unsafe.Add(p, 72)) = __ccgo_fp(X__stdio_write) + *(*uintptr)(unsafe.Add(p, 80)) = __ccgo_fp(X__stdio_seek) +} + +var _buf6 [1032]uint8 + +func init() { + p := unsafe.Pointer(&X__stdin_FILE) + *(*uintptr)(unsafe.Add(p, 24)) = __ccgo_fp(X__stdio_close) + *(*uintptr)(unsafe.Add(p, 64)) = __ccgo_fp(X__stdio_read) + *(*uintptr)(unsafe.Add(p, 80)) = __ccgo_fp(X__stdio_seek) +} + +var _buf7 [1032]uint8 + +func init() { + p := unsafe.Pointer(&X__stdout_FILE) + *(*uintptr)(unsafe.Add(p, 24)) = __ccgo_fp(X__stdio_close) + *(*uintptr)(unsafe.Add(p, 72)) = __ccgo_fp(X__stdout_write) + *(*uintptr)(unsafe.Add(p, 80)) = __ccgo_fp(X__stdio_seek) +} + +func Xswprintf(tls *TLS, s uintptr, n Tsize_t, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v fmt=%v va=%v, (%v:)", tls, s, n, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvswprintf(tls, s, n, fmt, ap) + _ = ap + return ret +} + +func Xswscanf(tls *TLS, s uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v va=%v, (%v:)", tls, s, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvswscanf(tls, s, fmt, ap) + _ = ap + return ret +} + +func X__isoc99_swscanf(tls *TLS, s uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v va=%v, (%v:)", tls, s, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xswscanf(tls, s, fmt, va) +} + +const MAXTRIES = 100 + +func Xtempnam(tls *TLS, dir uintptr, pfx uintptr) (r1 uintptr) { + if __ccgo_strace { + trc("tls=%v dir=%v pfx=%v, (%v:)", tls, dir, pfx, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(4112) + defer tls.Free(4112) + var dl, l, pl Tsize_t + var r, try int32 + var _ /* s at bp+1 */ [4096]int8 + _, _, _, _, _ = dl, l, pl, r, try + if !(dir != 0) { + dir = __ccgo_ts + 1590 + } + if !(pfx != 0) { + pfx = __ccgo_ts + 1595 + } + dl = _strlen(tls, dir) + pl = _strlen(tls, pfx) + l = dl + uint64(1) + pl + uint64(1) + uint64(6) + if l >= uint64(PATH_MAX) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENAMETOOLONG) + return uintptr(0) + } + Xmemcpy(tls, bp+1, dir, dl) + (**(**[4096]int8)(__ccgo_up(bp + 1)))[dl] = int8('/') + Xmemcpy(tls, bp+1+uintptr(dl)+uintptr(1), pfx, pl) + (**(**[4096]int8)(__ccgo_up(bp + 1)))[dl+uint64(1)+pl] = int8('_') + (**(**[4096]int8)(__ccgo_up(bp + 1)))[l] = 0 + try = 0 + for { + if !(try < int32(MAXTRIES)) { + break + } + ___randname(tls, bp+1+uintptr(l)-uintptr(6)) + *(*[1]int8)(unsafe.Pointer(bp)) = [1]int8{} + r = int32(X__syscall3(tls, int64(SYS_readlink), int64(bp+1), int64(bp), int64(Int32FromInt32(1)))) + if r == -int32(ENOENT) { + return Xstrdup(tls, bp+1) + } + goto _1 + _1: + ; + try = try + 1 + } + return uintptr(0) +} + +func Xtmpfile(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var f uintptr + var fd, try int32 + var _ /* s at bp+0 */ [20]int8 + _, _, _ = f, fd, try + **(**[20]int8)(__ccgo_up(bp)) = [20]int8{'/', 't', 'm', 'p', '/', 't', 'm', 'p', 'f', 'i', 'l', 'e', '_', 'X', 'X', 'X', 'X', 'X', 'X'} + try = 0 + for { + if !(try < int32(MAXTRIES)) { + break + } + ___randname(tls, bp+uintptr(13)) + fd = int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_open), int64(bp), int64(Int32FromInt32(O_RDWR)|Int32FromInt32(O_CREAT)|Int32FromInt32(O_EXCL)|Int32FromInt32(O_LARGEFILE)), int64(Int32FromInt32(0600)))))) + if fd >= 0 { + X__syscall1(tls, int64(SYS_unlink), int64(bp)) + f = X__fdopen(tls, fd, __ccgo_ts+1600) + if !(f != 0) { + X__syscall1(tls, int64(SYS_close), int64(fd)) + } + return f + } + goto _1 + _1: + ; + try = try + 1 + } + return uintptr(0) +} + +func Xtmpnam(tls *TLS, buf uintptr) (r1 uintptr) { + if __ccgo_strace { + trc("tls=%v buf=%v, (%v:)", tls, buf, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var r, try int32 + var v2 uintptr + var _ /* s at bp+1 */ [19]int8 + _, _, _ = r, try, v2 + **(**[19]int8)(__ccgo_up(bp + 1)) = [19]int8{'/', 't', 'm', 'p', '/', 't', 'm', 'p', 'n', 'a', 'm', '_', 'X', 'X', 'X', 'X', 'X', 'X'} + try = 0 + for { + if !(try < int32(MAXTRIES)) { + break + } + ___randname(tls, bp+1+uintptr(12)) + *(*[1]int8)(unsafe.Pointer(bp)) = [1]int8{} + r = int32(X__syscall3(tls, int64(SYS_readlink), int64(bp+1), int64(bp), int64(Int32FromInt32(1)))) + if r == -int32(ENOENT) { + if buf != 0 { + v2 = buf + } else { + v2 = uintptr(unsafe.Pointer(&_internal1)) + } + return Xstrcpy(tls, v2, bp+1) + } + goto _1 + _1: + ; + try = try + 1 + } + return uintptr(0) +} + +var _internal1 [20]int8 + +func Xungetc(tls *TLS, c int32, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v f=%v, (%v:)", tls, c, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, v1 int32 + var v2, v3 uintptr + _, _, _, _ = __need_unlock, v1, v2, v3 + if c == -int32(1) { + return c + } + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + if !((*TFILE)(unsafe.Pointer(f)).Frpos != 0) { + X__toread(tls, f) + } + if !((*TFILE)(unsafe.Pointer(f)).Frpos != 0) || (*TFILE)(unsafe.Pointer(f)).Frpos <= (*TFILE)(unsafe.Pointer(f)).Fbuf-uintptr(UNGET) { + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return -int32(1) + } + v3 = f + 8 + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) - 1 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + **(**uint8)(__ccgo_up(v2)) = Uint8FromInt32(c) + **(**uint32)(__ccgo_up(f)) &= Uint32FromInt32(^Int32FromInt32(F_EOF)) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return Int32FromUint8(Uint8FromInt32(c)) +} + +func Xungetwc(tls *TLS, c Twint_t, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v f=%v, (%v:)", tls, c, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var __need_unlock, l, v1 int32 + var loc Tlocale_t + var ploc, v4, v5 uintptr + var v3 bool + var _ /* mbc at bp+0 */ [4]uint8 + _, _, _, _, _, _, _, _ = __need_unlock, l, loc, ploc, v1, v3, v4, v5 + ploc = uintptr(___get_tp(tls)) + 168 + loc = **(**Tlocale_t)(__ccgo_up(ploc)) + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + if (*TFILE)(unsafe.Pointer(f)).Fmode <= 0 { + Xfwide(tls, f, int32(1)) + } + **(**Tlocale_t)(__ccgo_up(ploc)) = (*TFILE)(unsafe.Pointer(f)).Flocale + if !((*TFILE)(unsafe.Pointer(f)).Frpos != 0) { + X__toread(tls, f) + } + if v3 = !((*TFILE)(unsafe.Pointer(f)).Frpos != 0) || c == uint32(0xffffffff); !v3 { + v1 = Int32FromUint64(Xwcrtomb(tls, bp, Int32FromUint32(c), uintptr(0))) + l = v1 + } + if v3 || v1 < 0 || (*TFILE)(unsafe.Pointer(f)).Frpos < (*TFILE)(unsafe.Pointer(f)).Fbuf-uintptr(UNGET)+uintptr(l) { + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + **(**Tlocale_t)(__ccgo_up(ploc)) = loc + return uint32(0xffffffff) + } + if BoolInt32(c < uint32(128)) != 0 { + v5 = f + 8 + *(*uintptr)(unsafe.Pointer(v5)) = *(*uintptr)(unsafe.Pointer(v5)) - 1 + v4 = *(*uintptr)(unsafe.Pointer(v5)) + **(**uint8)(__ccgo_up(v4)) = uint8(c) + } else { + v4 = f + 8 + *(*uintptr)(unsafe.Pointer(v4)) -= uintptr(l) + Xmemcpy(tls, *(*uintptr)(unsafe.Pointer(v4)), bp, Uint64FromInt32(l)) + } + **(**uint32)(__ccgo_up(f)) &= Uint32FromInt32(^Int32FromInt32(F_EOF)) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + **(**Tlocale_t)(__ccgo_up(ploc)) = loc + return c +} + +func Xvasprintf(tls *TLS, s uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v ap=%v, (%v:)", tls, s, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap2 Tva_list + var l int32 + var v1 uintptr + var v2 bool + _, _, _, _ = ap2, l, v1, v2 + ap2 = ap + l = Xvsnprintf(tls, uintptr(0), uint64(0), fmt, ap2) + _ = ap2 + if v2 = l < 0; !v2 { + v1 = Xmalloc(tls, uint64(Uint32FromInt32(l)+uint32(1))) + **(**uintptr)(__ccgo_up(s)) = v1 + } + if v2 || !(v1 != 0) { + return -int32(1) + } + return Xvsnprintf(tls, **(**uintptr)(__ccgo_up(s)), uint64(Uint32FromInt32(l)+uint32(1)), fmt, ap) +} + +func Xvdprintf(tls *TLS, fd int32, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v fmt=%v ap=%v, (%v:)", tls, fd, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(240) + defer tls.Free(240) + var _ /* f at bp+0 */ TFILE + **(**TFILE)(__ccgo_up(bp)) = TFILE{ + Fwrite: __ccgo_fp(X__stdio_write), + Fbuf: fmt, + Ffd: fd, + Flock: -int32(1), + Flbf: -int32(1), + } + return Xvfprintf(tls, bp, fmt, ap) +} + +const ALT_FORM = 8 +const FLAGMASK = 75913 +const GROUPED = 128 +const LDBL_EPSILON3 = 2.22044604925031308085e-16 +const LEFT_ADJ = 8192 +const MARK_POS = 2048 +const PAD_POS = 1 +const ZERO_PAD = 65536 + +const _BARE = 0 +const _LPRE = 1 +const _LLPRE = 2 +const _HPRE = 3 +const _HHPRE = 4 +const _BIGLPRE = 5 +const _ZTPRE = 6 +const _JPRE = 7 +const _STOP = 8 +const _PTR = 9 +const _INT = 10 +const _UINT = 11 +const _ULLONG = 12 +const _LONG = 13 +const _ULONG = 14 +const _SHORT = 15 +const _USHORT = 16 +const _CHAR = 17 +const _UCHAR = 18 +const _LLONG = 19 +const _SIZET = 20 +const _IMAX = 21 +const _UMAX = 22 +const _PDIFF = 23 +const _UIPTR = 24 +const _DBL = 25 +const _LDBL = 26 +const _NOARG = 27 +const _MAXSTATE = 28 + +var _states = [8][58]uint8{ + 0: { + 0: uint8(_DBL), + 2: uint8(_UINT), + 4: uint8(_DBL), + 5: uint8(_DBL), + 6: uint8(_DBL), + 11: uint8(_BIGLPRE), + 18: uint8(_PTR), + 23: uint8(_UINT), + 32: uint8(_DBL), + 34: uint8(_INT), + 35: uint8(_INT), + 36: uint8(_DBL), + 37: uint8(_DBL), + 38: uint8(_DBL), + 39: uint8(_HPRE), + 40: uint8(_INT), + 41: uint8(_JPRE), + 43: uint8(_LPRE), + 44: uint8(_NOARG), + 45: uint8(_PTR), + 46: uint8(_UINT), + 47: uint8(_UIPTR), + 50: uint8(_PTR), + 51: uint8(_ZTPRE), + 52: uint8(_UINT), + 55: uint8(_UINT), + 57: uint8(_ZTPRE), + }, + 1: { + 0: uint8(_DBL), + 4: uint8(_DBL), + 5: uint8(_DBL), + 6: uint8(_DBL), + 23: uint8(_ULONG), + 32: uint8(_DBL), + 34: uint8(_UINT), + 35: uint8(_LONG), + 36: uint8(_DBL), + 37: uint8(_DBL), + 38: uint8(_DBL), + 40: uint8(_LONG), + 43: uint8(_LLPRE), + 45: uint8(_PTR), + 46: uint8(_ULONG), + 50: uint8(_PTR), + 52: uint8(_ULONG), + 55: uint8(_ULONG), + }, + 2: { + 23: uint8(_ULLONG), + 35: uint8(_LLONG), + 40: uint8(_LLONG), + 45: uint8(_PTR), + 46: uint8(_ULLONG), + 52: uint8(_ULLONG), + 55: uint8(_ULLONG), + }, + 3: { + 23: uint8(_USHORT), + 35: uint8(_SHORT), + 39: uint8(_HHPRE), + 40: uint8(_SHORT), + 45: uint8(_PTR), + 46: uint8(_USHORT), + 52: uint8(_USHORT), + 55: uint8(_USHORT), + }, + 4: { + 23: uint8(_UCHAR), + 35: uint8(_CHAR), + 40: uint8(_CHAR), + 45: uint8(_PTR), + 46: uint8(_UCHAR), + 52: uint8(_UCHAR), + 55: uint8(_UCHAR), + }, + 5: { + 0: uint8(_LDBL), + 4: uint8(_LDBL), + 5: uint8(_LDBL), + 6: uint8(_LDBL), + 32: uint8(_LDBL), + 36: uint8(_LDBL), + 37: uint8(_LDBL), + 38: uint8(_LDBL), + 45: uint8(_PTR), + }, + 6: { + 23: uint8(_SIZET), + 35: uint8(_PDIFF), + 40: uint8(_PDIFF), + 45: uint8(_PTR), + 46: uint8(_SIZET), + 52: uint8(_SIZET), + 55: uint8(_SIZET), + }, + 7: { + 23: uint8(_UMAX), + 35: uint8(_IMAX), + 40: uint8(_IMAX), + 45: uint8(_PTR), + 46: uint8(_UMAX), + 52: uint8(_UMAX), + 55: uint8(_UMAX), + }, +} + +type Targ = struct { + Ff [0]float64 + Fp [0]uintptr + Fi Tuintmax_t +} + +func _pop_arg(tls *TLS, arg uintptr, type1 int32, ap uintptr) { + switch type1 { + case int32(_PTR): + *(*uintptr)(unsafe.Pointer(arg)) = VaUintptr(&**(**Tva_list)(__ccgo_up(ap))) + case int32(_INT): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt32(VaInt32(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_UINT): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(VaUint32(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_LONG): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt64(VaInt64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_ULONG): + (*Targ)(unsafe.Pointer(arg)).Fi = VaUint64(&**(**Tva_list)(__ccgo_up(ap))) + case int32(_ULLONG): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(VaUint64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_SHORT): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt16(int16(VaInt32(&**(**Tva_list)(__ccgo_up(ap))))) + case int32(_USHORT): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(Uint16FromInt32(VaInt32(&**(**Tva_list)(__ccgo_up(ap))))) + case int32(_CHAR): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt8(int8(VaInt32(&**(**Tva_list)(__ccgo_up(ap))))) + case int32(_UCHAR): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(Uint8FromInt32(VaInt32(&**(**Tva_list)(__ccgo_up(ap))))) + case int32(_LLONG): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt64(VaInt64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_SIZET): + (*Targ)(unsafe.Pointer(arg)).Fi = VaUint64(&**(**Tva_list)(__ccgo_up(ap))) + case int32(_IMAX): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt64(VaInt64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_UMAX): + (*Targ)(unsafe.Pointer(arg)).Fi = VaUint64(&**(**Tva_list)(__ccgo_up(ap))) + case int32(_PDIFF): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt64(VaInt64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_UIPTR): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(VaUintptr(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_DBL): + *(*float64)(unsafe.Pointer(arg)) = float64(VaFloat64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_LDBL): + *(*float64)(unsafe.Pointer(arg)) = VaFloat64(&**(**Tva_list)(__ccgo_up(ap))) + } +} + +func _out(tls *TLS, f uintptr, s uintptr, l Tsize_t) { + if !((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_ERR) != 0) { + X__fwritex(tls, s, l, f) + } +} + +func _pad3(tls *TLS, f uintptr, c int8, w int32, l int32, fl int32) { + bp := tls.Alloc(256) + defer tls.Free(256) + var v1 uint64 + var _ /* pad at bp+0 */ [256]int8 + _ = v1 + if Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8('0')-Int32FromUint8(' '))) != 0 || l >= w { + return + } + l = w - l + if Uint64FromInt32(l) > uint64(256) { + v1 = uint64(256) + } else { + v1 = Uint64FromInt32(l) + } + Xmemset(tls, bp, int32(c), v1) + for { + if !(Uint64FromInt32(l) >= uint64(256)) { + break + } + _out(tls, f, bp, uint64(256)) + goto _2 + _2: + ; + l = Int32FromUint64(uint64(l) - Uint64FromInt64(256)) + } + _out(tls, f, bp, Uint64FromInt32(l)) +} + +var _xdigits1 = [16]int8{'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'} + +func _fmt_x(tls *TLS, x Tuintmax_t, s uintptr, lower int32) (r uintptr) { + var v2 uintptr + _ = v2 + for { + if !(x != 0) { + break + } + s = s - 1 + v2 = s + **(**int8)(__ccgo_up(v2)) = int8(int32(_xdigits1[x&uint64(15)]) | lower) + goto _1 + _1: + ; + x = x >> uint64(4) + } + return s +} + +func _fmt_o(tls *TLS, x Tuintmax_t, s uintptr) (r uintptr) { + var v2 uintptr + _ = v2 + for { + if !(x != 0) { + break + } + s = s - 1 + v2 = s + **(**int8)(__ccgo_up(v2)) = Int8FromUint64(uint64('0') + x&uint64(7)) + goto _1 + _1: + ; + x = x >> uint64(3) + } + return s +} + +func _fmt_u(tls *TLS, x Tuintmax_t, s uintptr) (r uintptr) { + var y uint64 + var v2 uintptr + _, _ = y, v2 + for { + if !(x > Uint64FromUint64(2)*Uint64FromInt64(0x7fffffffffffffff)+Uint64FromInt32(1)) { + break + } + s = s - 1 + v2 = s + **(**int8)(__ccgo_up(v2)) = Int8FromUint64(uint64('0') + x%uint64(10)) + goto _1 + _1: + ; + x = x / uint64(10) + } + y = x + for { + if !(y != 0) { + break + } + s = s - 1 + v2 = s + **(**int8)(__ccgo_up(v2)) = Int8FromUint64(uint64('0') + y%uint64(10)) + goto _3 + _3: + ; + y = y / uint64(10) + } + return s +} + +// C documentation +// +// /* Do not override this check. The floating point printing code below +// * depends on the float.h constants being right. If they are wrong, it +// * may overflow the stack. */ +type Tcompiler_defines_long_double_incorrectly = [1]int8 + +func _fmt_fp(tls *TLS, f uintptr, y float64, w int32, p int32, fl int32, t int32) (r1 int32) { + bp := tls.Alloc(560) + defer tls.Free(560) + var a, b, d, ebuf, estr, prefix, r, s, s1, s2, s3, s4, z, v5, v6 uintptr + var carry, carry1, rm, x2 Tuint32_t + var e, i, j, l, need, pl, re, sh, sh1, x, v7 int32 + var round, round1, small float64 + var x1 Tuint64_t + var v1 uint64 + var v36, v37, v38 int64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + var _ /* big at bp+8 */ [126]Tuint32_t + var _ /* buf at bp+516 */ [22]int8 + var _ /* e2 at bp+512 */ int32 + var _ /* ebuf0 at bp+538 */ [12]int8 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = a, b, carry, carry1, d, e, ebuf, estr, i, j, l, need, pl, prefix, r, re, rm, round, round1, s, s1, s2, s3, s4, sh, sh1, small, x, x1, x2, z, v1, v36, v37, v38, v5, v6, v7 + **(**int32)(__ccgo_up(bp + 512)) = 0 + prefix = __ccgo_ts + 1603 + ebuf = bp + 538 + uintptr(Uint64FromInt32(3)*Uint64FromInt64(4)) + pl = int32(1) + *(*float64)(unsafe.Pointer(bp)) = y + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + if Int32FromUint64(v1>>Int32FromInt32(63)) != 0 { + y = -y + } else { + if Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('+')-Int32FromUint8(' '))) != 0 { + prefix = prefix + uintptr(3) + } else { + if Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8(' ')-Int32FromUint8(' '))) != 0 { + prefix = prefix + uintptr(6) + } else { + prefix = prefix + 1 + pl = Int32FromInt32(0) + } + } + } + *(*float64)(unsafe.Pointer(bp)) = y + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _4 +_4: + if !(BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) < Uint64FromUint64(0x7ff)< int32(3)+pl { + v7 = w + } else { + v7 = int32(3) + pl + } + return v7 + } + y = float64(Xfrexpl(tls, y, bp+512) * Float64FromInt32(2)) + if y != 0 { + **(**int32)(__ccgo_up(bp + 512)) = **(**int32)(__ccgo_up(bp + 512)) - 1 + } + if t|int32(32) == int32('a') { + round = Float64FromFloat64(8) + if t&int32(32) != 0 { + prefix = prefix + uintptr(9) + } + pl = pl + int32(2) + if p < 0 || p >= Int32FromInt32(LDBL_MANT_DIG)/Int32FromInt32(4)-Int32FromInt32(1) { + re = 0 + } else { + re = Int32FromInt32(LDBL_MANT_DIG)/Int32FromInt32(4) - Int32FromInt32(1) - p + } + if re != 0 { + round = round * float64(Int32FromInt32(1)<<(Int32FromInt32(LDBL_MANT_DIG)%Int32FromInt32(4))) + for { + v7 = re + re = re - 1 + if !(v7 != 0) { + break + } + round = round * Float64FromInt32(16) + } + if int32(**(**int8)(__ccgo_up(prefix))) == int32('-') { + y = -y + y = y - round + y = y + round + y = -y + } else { + y = y + round + y = y - round + } + } + if **(**int32)(__ccgo_up(bp + 512)) < 0 { + v7 = -**(**int32)(__ccgo_up(bp + 512)) + } else { + v7 = **(**int32)(__ccgo_up(bp + 512)) + } + estr = _fmt_u(tls, Uint64FromInt32(v7), ebuf) + if estr == ebuf { + estr = estr - 1 + v5 = estr + **(**int8)(__ccgo_up(v5)) = int8('0') + } + estr = estr - 1 + v5 = estr + if **(**int32)(__ccgo_up(bp + 512)) < 0 { + v7 = int32('-') + } else { + v7 = int32('+') + } + **(**int8)(__ccgo_up(v5)) = int8(v7) + estr = estr - 1 + v5 = estr + **(**int8)(__ccgo_up(v5)) = int8(t + (Int32FromUint8('p') - Int32FromUint8('a'))) + s = bp + 516 + for cond := true; cond; cond = y != 0 { + x = int32(y) + v5 = s + s = s + 1 + **(**int8)(__ccgo_up(v5)) = int8(int32(_xdigits1[x]) | t&int32(32)) + y = float64(Float64FromInt32(16) * (y - float64(x))) + if int64(s)-t__predefined_ptrdiff_t(bp+516) == int64(1) && (y != 0 || p > 0 || Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0) { + v5 = s + s = s + 1 + **(**int8)(__ccgo_up(v5)) = int8('.') + } + } + if int64(p) > int64(Int32FromInt32(INT_MAX)-Int32FromInt32(2))-(int64(ebuf)-int64(estr))-int64(pl) { + return -int32(1) + } + if p != 0 && int64(s)-t__predefined_ptrdiff_t(bp+516)-int64(2) < int64(p) { + l = int32(int64(p+Int32FromInt32(2)) + (int64(ebuf) - int64(estr))) + } else { + l = int32(int64(s) - t__predefined_ptrdiff_t(bp+516) + (int64(ebuf) - int64(estr))) + } + _pad3(tls, f, int8(' '), w, pl+l, fl) + _out(tls, f, prefix, Uint64FromInt32(pl)) + _pad3(tls, f, int8('0'), w, pl+l, Int32FromUint32(Uint32FromInt32(fl)^Uint32FromUint32(1)<<(Int32FromUint8('0')-Int32FromUint8(' ')))) + _out(tls, f, bp+516, Uint64FromInt64(int64(s)-t__predefined_ptrdiff_t(bp+516))) + _pad3(tls, f, int8('0'), int32(int64(l)-(int64(ebuf)-int64(estr))-(int64(s)-t__predefined_ptrdiff_t(bp+516))), 0, 0) + _out(tls, f, estr, Uint64FromInt64(int64(ebuf)-int64(estr))) + _pad3(tls, f, int8(' '), w, pl+l, Int32FromUint32(Uint32FromInt32(fl)^Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' ')))) + if w > pl+l { + v7 = w + } else { + v7 = pl + l + } + return v7 + } + if p < 0 { + p = int32(6) + } + if y != 0 { + y = y * Float64FromFloat64(2.68435456e+08) + **(**int32)(__ccgo_up(bp + 512)) = **(**int32)(__ccgo_up(bp + 512)) - int32(28) + } + if **(**int32)(__ccgo_up(bp + 512)) < 0 { + v6 = bp + 8 + z = v6 + v5 = v6 + r = v5 + a = v5 + } else { + v6 = bp + 8 + uintptr(Uint64FromInt64(504)/Uint64FromInt64(4))*4 - UintptrFromInt32(LDBL_MANT_DIG)*4 - UintptrFromInt32(1)*4 + z = v6 + v5 = v6 + r = v5 + a = v5 + } + for cond := true; cond; cond = y != 0 { + **(**Tuint32_t)(__ccgo_up(z)) = uint32(y) + v5 = z + z += 4 + y = float64(Float64FromInt32(1000000000) * (y - float64(**(**Tuint32_t)(__ccgo_up(v5))))) + } + for **(**int32)(__ccgo_up(bp + 512)) > 0 { + carry = uint32(0) + if int32(29) < **(**int32)(__ccgo_up(bp + 512)) { + v7 = int32(29) + } else { + v7 = **(**int32)(__ccgo_up(bp + 512)) + } + sh = v7 + d = z - uintptr(1)*4 + for { + if !(d >= a) { + break + } + x1 = uint64(**(**Tuint32_t)(__ccgo_up(d)))< a && !(**(**Tuint32_t)(__ccgo_up(z + uintptr(-Int32FromInt32(1))*4)) != 0) { + z -= 4 + } + **(**int32)(__ccgo_up(bp + 512)) = **(**int32)(__ccgo_up(bp + 512)) - sh + } + for **(**int32)(__ccgo_up(bp + 512)) < 0 { + carry1 = uint32(0) + if int32(9) < -**(**int32)(__ccgo_up(bp + 512)) { + v7 = int32(9) + } else { + v7 = -**(**int32)(__ccgo_up(bp + 512)) + } + sh1 = v7 + need = Int32FromUint32(uint32(1) + (Uint32FromInt32(p)+Uint32FromInt32(LDBL_MANT_DIG)/Uint32FromUint32(3)+uint32(8))/uint32(9)) + d = a + for { + if !(d < z) { + break + } + rm = **(**Tuint32_t)(__ccgo_up(d)) & Uint32FromInt32(int32(1)<>sh1 + carry1 + carry1 = Uint32FromInt32(Int32FromInt32(1000000000)>>sh1) * rm + goto _26 + _26: + ; + d += 4 + } + if !(**(**Tuint32_t)(__ccgo_up(a)) != 0) { + a += 4 + } + if carry1 != 0 { + v5 = z + z += 4 + **(**Tuint32_t)(__ccgo_up(v5)) = carry1 + } + /* Avoid (slow!) computation past requested precision */ + if t|int32(32) == int32('f') { + v5 = r + } else { + v5 = a + } + b = v5 + if (int64(z)-int64(b))/4 > int64(need) { + z = b + uintptr(need)*4 + } + **(**int32)(__ccgo_up(bp + 512)) = **(**int32)(__ccgo_up(bp + 512)) + sh1 + } + if a < z { + i = int32(10) + e = int32(Int64FromInt32(9) * ((int64(r) - int64(a)) / 4)) + for { + if !(**(**Tuint32_t)(__ccgo_up(a)) >= Uint32FromInt32(i)) { + break + } + goto _29 + _29: + ; + i = i * int32(10) + e = e + 1 + } + } else { + e = 0 + } + /* Perform rounding: j is precision after the radix (possibly neg) */ + j = p - BoolInt32(t|int32(32) != int32('f'))*e - BoolInt32(t|int32(32) == int32('g') && p != 0) + if int64(j) < int64(9)*((int64(z)-int64(r))/4-int64(1)) { + /* We avoid C's broken division of negative numbers */ + d = r + uintptr(1)*4 + uintptr((j+Int32FromInt32(9)*Int32FromInt32(LDBL_MAX_EXP))/Int32FromInt32(9)-Int32FromInt32(LDBL_MAX_EXP))*4 + j = j + Int32FromInt32(9)*Int32FromInt32(LDBL_MAX_EXP) + j = j % int32(9) + i = int32(10) + j = j + 1 + for { + if !(j < int32(9)) { + break + } + goto _30 + _30: + ; + i = i * int32(10) + j = j + 1 + } + x2 = **(**Tuint32_t)(__ccgo_up(d)) % Uint32FromInt32(i) + /* Are there any significant digits past j? */ + if x2 != 0 || d+uintptr(1)*4 != z { + round1 = Float64FromInt32(2) / Float64FromFloat64(2.22044604925031308085e-16) + if **(**Tuint32_t)(__ccgo_up(d))/Uint32FromInt32(i)&uint32(1) != 0 || i == int32(1000000000) && d > a && **(**Tuint32_t)(__ccgo_up(d + uintptr(-Int32FromInt32(1))*4))&uint32(1) != 0 { + round1 = round1 + Float64FromInt32(2) + } + if x2 < Uint32FromInt32(i/int32(2)) { + small = Float64FromFloat64(0.5) + } else { + if x2 == Uint32FromInt32(i/int32(2)) && d+uintptr(1)*4 == z { + small = Float64FromFloat64(1) + } else { + small = Float64FromFloat64(1.5) + } + } + if pl != 0 && int32(**(**int8)(__ccgo_up(prefix))) == int32('-') { + round1 = round1 * float64(-Int32FromInt32(1)) + small = small * float64(-Int32FromInt32(1)) + } + **(**Tuint32_t)(__ccgo_up(d)) -= x2 + /* Decide whether to round by probing round+small */ + if round1+small != round1 { + **(**Tuint32_t)(__ccgo_up(d)) = **(**Tuint32_t)(__ccgo_up(d)) + Uint32FromInt32(i) + for **(**Tuint32_t)(__ccgo_up(d)) > uint32(999999999) { + v5 = d + d -= 4 + **(**Tuint32_t)(__ccgo_up(v5)) = uint32(0) + if d < a { + a -= 4 + v5 = a + **(**Tuint32_t)(__ccgo_up(v5)) = uint32(0) + } + **(**Tuint32_t)(__ccgo_up(d)) = **(**Tuint32_t)(__ccgo_up(d)) + 1 + } + i = int32(10) + e = int32(Int64FromInt32(9) * ((int64(r) - int64(a)) / 4)) + for { + if !(**(**Tuint32_t)(__ccgo_up(a)) >= Uint32FromInt32(i)) { + break + } + goto _33 + _33: + ; + i = i * int32(10) + e = e + 1 + } + } + } + if z > d+uintptr(1)*4 { + z = d + uintptr(1)*4 + } + } + for { + if !(z > a && !(**(**Tuint32_t)(__ccgo_up(z + uintptr(-Int32FromInt32(1))*4)) != 0)) { + break + } + goto _34 + _34: + ; + z -= 4 + } + if t|int32(32) == int32('g') { + if !(p != 0) { + p = p + 1 + } + if p > e && e >= -int32(4) { + t = t - 1 + p = p - (e + int32(1)) + } else { + t = t - int32(2) + p = p - 1 + } + if !(Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0) { + /* Count trailing zeros in last place */ + if z > a && **(**Tuint32_t)(__ccgo_up(z + uintptr(-Int32FromInt32(1))*4)) != 0 { + i = int32(10) + j = Int32FromInt32(0) + for { + if !(**(**Tuint32_t)(__ccgo_up(z + uintptr(-Int32FromInt32(1))*4))%Uint32FromInt32(i) == uint32(0)) { + break + } + goto _35 + _35: + ; + i = i * int32(10) + j = j + 1 + } + } else { + j = int32(9) + } + if t|int32(32) == int32('f') { + if int64(Int32FromInt32(0)) > int64(9)*((int64(z)-int64(r))/4-int64(1))-int64(j) { + v37 = int64(Int32FromInt32(0)) + } else { + v37 = int64(9)*((int64(z)-int64(r))/4-int64(1)) - int64(j) + } + if int64(p) < v37 { + v36 = int64(p) + } else { + if int64(Int32FromInt32(0)) > int64(9)*((int64(z)-int64(r))/4-int64(1))-int64(j) { + v38 = int64(Int32FromInt32(0)) + } else { + v38 = int64(9)*((int64(z)-int64(r))/4-int64(1)) - int64(j) + } + v36 = v38 + } + p = int32(v36) + } else { + if int64(Int32FromInt32(0)) > int64(9)*((int64(z)-int64(r))/4-int64(1))+int64(e)-int64(j) { + v37 = int64(Int32FromInt32(0)) + } else { + v37 = int64(9)*((int64(z)-int64(r))/4-int64(1)) + int64(e) - int64(j) + } + if int64(p) < v37 { + v36 = int64(p) + } else { + if int64(Int32FromInt32(0)) > int64(9)*((int64(z)-int64(r))/4-int64(1))+int64(e)-int64(j) { + v38 = int64(Int32FromInt32(0)) + } else { + v38 = int64(9)*((int64(z)-int64(r))/4-int64(1)) + int64(e) - int64(j) + } + v36 = v38 + } + p = int32(v36) + } + } + } + if p > Int32FromInt32(INT_MAX)-Int32FromInt32(1)-BoolInt32(p != 0 || Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0) { + return -int32(1) + } + l = int32(1) + p + BoolInt32(p != 0 || Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0) + if t|int32(32) == int32('f') { + if e > int32(INT_MAX)-l { + return -int32(1) + } + if e > 0 { + l = l + e + } + } else { + if e < 0 { + v7 = -e + } else { + v7 = e + } + estr = _fmt_u(tls, Uint64FromInt32(v7), ebuf) + for int64(ebuf)-int64(estr) < int64(2) { + estr = estr - 1 + v5 = estr + **(**int8)(__ccgo_up(v5)) = int8('0') + } + estr = estr - 1 + v5 = estr + if e < 0 { + v7 = int32('-') + } else { + v7 = int32('+') + } + **(**int8)(__ccgo_up(v5)) = int8(v7) + estr = estr - 1 + v5 = estr + **(**int8)(__ccgo_up(v5)) = int8(t) + if int64(ebuf)-int64(estr) > int64(int32(INT_MAX)-l) { + return -int32(1) + } + l = int32(int64(l) + (int64(ebuf) - int64(estr))) + } + if l > int32(INT_MAX)-pl { + return -int32(1) + } + _pad3(tls, f, int8(' '), w, pl+l, fl) + _out(tls, f, prefix, Uint64FromInt32(pl)) + _pad3(tls, f, int8('0'), w, pl+l, Int32FromUint32(Uint32FromInt32(fl)^Uint32FromUint32(1)<<(Int32FromUint8('0')-Int32FromUint8(' ')))) + if t|int32(32) == int32('f') { + if a > r { + a = r + } + d = a + for { + if !(d <= r) { + break + } + s2 = _fmt_u(tls, uint64(**(**Tuint32_t)(__ccgo_up(d))), bp+516+uintptr(9)) + if d != a { + for s2 > bp+516 { + s2 = s2 - 1 + v5 = s2 + **(**int8)(__ccgo_up(v5)) = int8('0') + } + } else { + if s2 == bp+516+uintptr(9) { + s2 = s2 - 1 + v5 = s2 + **(**int8)(__ccgo_up(v5)) = int8('0') + } + } + _out(tls, f, s2, Uint64FromInt64(int64(bp+516+uintptr(9))-int64(s2))) + goto _47 + _47: + ; + d += 4 + } + if p != 0 || Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0 { + _out(tls, f, __ccgo_ts+575, uint64(1)) + } + for { + if !(d < z && p > 0) { + break + } + s3 = _fmt_u(tls, uint64(**(**Tuint32_t)(__ccgo_up(d))), bp+516+uintptr(9)) + for s3 > bp+516 { + s3 = s3 - 1 + v5 = s3 + **(**int8)(__ccgo_up(v5)) = int8('0') + } + if int32(9) < p { + v7 = int32(9) + } else { + v7 = p + } + _out(tls, f, s3, Uint64FromInt32(v7)) + goto _50 + _50: + ; + d += 4 + p = p - int32(9) + } + _pad3(tls, f, int8('0'), p+int32(9), int32(9), 0) + } else { + if z <= a { + z = a + uintptr(1)*4 + } + d = a + for { + if !(d < z && p >= 0) { + break + } + s4 = _fmt_u(tls, uint64(**(**Tuint32_t)(__ccgo_up(d))), bp+516+uintptr(9)) + if s4 == bp+516+uintptr(9) { + s4 = s4 - 1 + v5 = s4 + **(**int8)(__ccgo_up(v5)) = int8('0') + } + if d != a { + for s4 > bp+516 { + s4 = s4 - 1 + v5 = s4 + **(**int8)(__ccgo_up(v5)) = int8('0') + } + } else { + v5 = s4 + s4 = s4 + 1 + _out(tls, f, v5, uint64(1)) + if p > 0 || Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0 { + _out(tls, f, __ccgo_ts+575, uint64(1)) + } + } + if int64(bp+516+UintptrFromInt32(9))-int64(s4) < int64(p) { + v36 = int64(bp+516+UintptrFromInt32(9)) - int64(s4) + } else { + v36 = int64(p) + } + _out(tls, f, s4, Uint64FromInt64(v36)) + p = int32(int64(p) - (int64(bp+516+UintptrFromInt32(9)) - int64(s4))) + goto _53 + _53: + ; + d += 4 + } + _pad3(tls, f, int8('0'), p+int32(18), int32(18), 0) + _out(tls, f, estr, Uint64FromInt64(int64(ebuf)-int64(estr))) + } + _pad3(tls, f, int8(' '), w, pl+l, Int32FromUint32(Uint32FromInt32(fl)^Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' ')))) + if w > pl+l { + v7 = w + } else { + v7 = pl + l + } + return v7 +} + +func _getint(tls *TLS, s uintptr) (r int32) { + var i int32 + _ = i + i = 0 + for { + if !(BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(s)))))-uint32('0') < uint32(10)) != 0) { + break + } + if Uint32FromInt32(i) > Uint32FromInt32(INT_MAX)/Uint32FromUint32(10) || int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(s)))))-int32('0') > int32(INT_MAX)-int32(10)*i { + i = -int32(1) + } else { + i = int32(10)*i + (int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(s))))) - int32('0')) + } + goto _1 + _1: + ; + **(**uintptr)(__ccgo_up(s)) = **(**uintptr)(__ccgo_up(s)) + 1 + } + return i +} + +func _printf_core(tls *TLS, f uintptr, fmt uintptr, ap uintptr, nl_arg uintptr, nl_type uintptr) (r int32) { + bp := tls.Alloc(64) + defer tls.Free(64) + var a, prefix, ws, z, v8 uintptr + var argpos, cnt, l, p, pl, t, w, xp, v5, v6 int32 + var fl, l10n, ps, st uint32 + var i Tsize_t + var v31 uint64 + var v34 int64 + var v45 bool + var _ /* arg at bp+8 */ Targ + var _ /* buf at bp+16 */ [24]int8 + var _ /* mb at bp+48 */ [4]int8 + var _ /* s at bp+0 */ uintptr + var _ /* wc at bp+40 */ [2]Twchar_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = a, argpos, cnt, fl, i, l, l10n, p, pl, prefix, ps, st, t, w, ws, xp, z, v31, v34, v45, v5, v6, v8 + **(**uintptr)(__ccgo_up(bp)) = fmt + l10n = uint32(0) + cnt = 0 + l = 0 + for { + /* This error is only specified for snprintf, but since it's + * unspecified for other forms, do the same. Stop immediately + * on overflow; otherwise %n could produce wrong results. */ + if l > int32(INT_MAX)-cnt { + goto overflow + } + /* Update output count, end loop when fmt is exhausted */ + cnt = cnt + l + if !(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)))) != 0) { + break + } + /* Handle literal text and %% format specifiers */ + a = **(**uintptr)(__ccgo_up(bp)) + for { + if !(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)))) != 0 && int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp))))) != int32('%')) { + break + } + goto _2 + _2: + ; + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + } + z = **(**uintptr)(__ccgo_up(bp)) + for { + if !(int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp))))) == int32('%') && int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 1))) == int32('%')) { + break + } + goto _3 + _3: + ; + z = z + 1 + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + uintptr(2) + } + if int64(z)-int64(a) > int64(int32(INT_MAX)-cnt) { + goto overflow + } + l = int32(int64(z) - int64(a)) + if f != 0 { + _out(tls, f, a, Uint64FromInt32(l)) + } + if l != 0 { + goto _1 + } + if BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 1)))-uint32('0') < uint32(10)) != 0 && int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 2))) == int32('$') { + l10n = uint32(1) + argpos = int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 1))) - int32('0') + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + uintptr(3) + } else { + argpos = -int32(1) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + } + /* Read modifier flags */ + fl = uint32(0) + for { + if !(Uint32FromInt8(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)))))-uint32(' ') < uint32(32) && (Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8('0')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8(' ')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8('+')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8('\'')-Int32FromUint8(' ')))&(uint32(1)<<(int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)))))-int32(' '))) != 0) { + break + } + fl = fl | uint32(1)<<(int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)))))-int32(' ')) + goto _4 + _4: + ; + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + } + /* Read field width */ + if int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp))))) == int32('*') { + if BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 1)))-uint32('0') < uint32(10)) != 0 && int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 2))) == int32('$') { + l10n = uint32(1) + if !(f != 0) { + **(**int32)(__ccgo_up(nl_type + uintptr(int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 1)))-int32('0'))*4)) = int32(_INT) + w = Int32FromInt32(0) + } else { + w = Int32FromUint64(*(*Tuintmax_t)(unsafe.Pointer(nl_arg + uintptr(int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 1)))-int32('0'))*8))) + } + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + uintptr(3) + } else { + if !(l10n != 0) { + if f != 0 { + v5 = VaInt32(&**(**Tva_list)(__ccgo_up(ap))) + } else { + v5 = 0 + } + w = v5 + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + } else { + goto inval + } + } + if w < 0 { + fl = fl | Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' ')) + w = -w + } + } else { + v5 = _getint(tls, bp) + w = v5 + if v5 < 0 { + goto overflow + } + } + /* Read precision */ + if int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp))))) == int32('.') && int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 1))) == int32('*') { + if BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 2)))-uint32('0') < uint32(10)) != 0 && int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 3))) == int32('$') { + if !(f != 0) { + **(**int32)(__ccgo_up(nl_type + uintptr(int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 2)))-int32('0'))*4)) = int32(_INT) + p = Int32FromInt32(0) + } else { + p = Int32FromUint64(*(*Tuintmax_t)(unsafe.Pointer(nl_arg + uintptr(int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 2)))-int32('0'))*8))) + } + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + uintptr(4) + } else { + if !(l10n != 0) { + if f != 0 { + v5 = VaInt32(&**(**Tva_list)(__ccgo_up(ap))) + } else { + v5 = 0 + } + p = v5 + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + uintptr(2) + } else { + goto inval + } + } + xp = BoolInt32(p >= 0) + } else { + if int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp))))) == int32('.') { + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + p = _getint(tls, bp) + xp = int32(1) + } else { + p = -int32(1) + xp = 0 + } + } + /* Format specifier state machine */ + st = uint32(0) + for cond := true; cond; cond = st-uint32(1) < uint32(_STOP) { + if Uint32FromInt8(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)))))-uint32('A') > Uint32FromInt32(Int32FromUint8('z')-Int32FromUint8('A')) { + goto inval + } + ps = st + v8 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + st = uint32(**(**uint8)(__ccgo_up(uintptr(unsafe.Pointer(&_states)) + uintptr(st)*58 + uintptr(int32(**(**int8)(__ccgo_up(v8)))-int32('A'))))) + } + if !(st != 0) { + goto inval + } + /* Check validity of argument type (nl/normal) */ + if st == uint32(_NOARG) { + if argpos >= 0 { + goto inval + } + } else { + if argpos >= 0 { + if !(f != 0) { + **(**int32)(__ccgo_up(nl_type + uintptr(argpos)*4)) = Int32FromUint32(st) + } else { + **(**Targ)(__ccgo_up(bp + 8)) = **(**Targ)(__ccgo_up(nl_arg + uintptr(argpos)*8)) + } + } else { + if f != 0 { + _pop_arg(tls, bp+8, Int32FromUint32(st), ap) + } else { + return 0 + } + } + } + if !(f != 0) { + goto _1 + } + /* Do not process any new directives once in error state. */ + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_ERR) != 0 { + return -int32(1) + } + z = bp + 16 + uintptr(24) + prefix = __ccgo_ts + 1634 + pl = 0 + t = int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + uintptr(-Int32FromInt32(1))))) + /* Transform ls,lc -> S,C */ + if ps != 0 && t&int32(15) == int32(3) { + t = t & ^Int32FromInt32(32) + } + /* - and 0 flags are mutually exclusive */ + if fl&(Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' '))) != 0 { + fl = fl & ^(Uint32FromUint32(1) << (Int32FromUint8('0') - Int32FromUint8(' '))) + } + switch t { + case int32('n'): + goto _9 + case int32('p'): + goto _10 + case int32('X'): + goto _11 + case int32('x'): + goto _12 + case int32('o'): + goto _13 + case int32('i'): + goto _14 + case int32('d'): + goto _15 + case int32('u'): + goto _16 + case int32('c'): + goto _17 + case int32('s'): + goto _18 + case int32('m'): + goto _19 + case int32('C'): + goto _20 + case int32('S'): + goto _21 + case int32('A'): + goto _22 + case int32('G'): + goto _23 + case int32('F'): + goto _24 + case int32('E'): + goto _25 + case int32('a'): + goto _26 + case int32('g'): + goto _27 + case int32('f'): + goto _28 + case int32('e'): + goto _29 + } + goto _30 + _9: + ; + switch ps { + case uint32(_BARE): + **(**int32)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 8)))) = cnt + case uint32(_LPRE): + **(**int64)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 8)))) = int64(cnt) + case uint32(_LLPRE): + **(**int64)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 8)))) = int64(cnt) + case uint32(_HPRE): + **(**uint16)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 8)))) = Uint16FromInt32(cnt) + case uint32(_HHPRE): + **(**uint8)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 8)))) = Uint8FromInt32(cnt) + case uint32(_ZTPRE): + **(**Tsize_t)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 8)))) = Uint64FromInt32(cnt) + case uint32(_JPRE): + **(**Tuintmax_t)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 8)))) = Uint64FromInt32(cnt) + break + } + goto _1 + _10: + ; + if Uint64FromInt32(p) > Uint64FromInt32(2)*Uint64FromInt64(8) { + v31 = Uint64FromInt32(p) + } else { + v31 = Uint64FromInt32(2) * Uint64FromInt64(8) + } + p = Int32FromUint64(v31) + t = int32('x') + fl = fl | Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' ')) + _12: + ; + _11: + ; + a = _fmt_x(tls, *(*Tuintmax_t)(unsafe.Pointer(bp + 8)), z, t&int32(32)) + if *(*Tuintmax_t)(unsafe.Pointer(bp + 8)) != 0 && fl&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0 { + prefix = prefix + uintptr(t>>Int32FromInt32(4)) + pl = Int32FromInt32(2) + } + if !(0 != 0) { + goto _32 + } + _13: + ; + a = _fmt_o(tls, *(*Tuintmax_t)(unsafe.Pointer(bp + 8)), z) + if fl&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0 && int64(p) < int64(z)-int64(a)+int64(1) { + p = int32(int64(z) - int64(a) + int64(1)) + } + _32: + ; + if !(0 != 0) { + goto _33 + } + _15: + ; + _14: + ; + pl = int32(1) + if *(*Tuintmax_t)(unsafe.Pointer(bp + 8)) > Uint64FromInt64(Int64FromInt64(INT64_MAX)) { + *(*Tuintmax_t)(unsafe.Pointer(bp + 8)) = -*(*Tuintmax_t)(unsafe.Pointer(bp + 8)) + } else { + if fl&(Uint32FromUint32(1)<<(Int32FromUint8('+')-Int32FromUint8(' '))) != 0 { + prefix = prefix + 1 + } else { + if fl&(Uint32FromUint32(1)<<(Int32FromUint8(' ')-Int32FromUint8(' '))) != 0 { + prefix = prefix + uintptr(2) + } else { + pl = 0 + } + } + } + _16: + ; + a = _fmt_u(tls, *(*Tuintmax_t)(unsafe.Pointer(bp + 8)), z) + _33: + ; + if xp != 0 && p < 0 { + goto overflow + } + if xp != 0 { + fl = fl & ^(Uint32FromUint32(1) << (Int32FromUint8('0') - Int32FromUint8(' '))) + } + if !(*(*Tuintmax_t)(unsafe.Pointer(bp + 8)) != 0) && !(p != 0) { + a = z + goto _30 + } + if int64(p) > int64(z)-int64(a)+BoolInt64(!(*(*Tuintmax_t)(unsafe.Pointer(bp + 8)) != 0)) { + v34 = int64(p) + } else { + v34 = int64(z) - int64(a) + BoolInt64(!(*(*Tuintmax_t)(unsafe.Pointer(bp + 8)) != 0)) + } + p = int32(v34) + goto _30 + goto narrow_c + narrow_c: + ; + _17: + ; + v5 = Int32FromInt32(1) + p = v5 + v8 = z - uintptr(v5) + a = v8 + **(**int8)(__ccgo_up(v8)) = Int8FromUint64(*(*Tuintmax_t)(unsafe.Pointer(bp + 8))) + fl = fl & ^(Uint32FromUint32(1) << (Int32FromUint8('0') - Int32FromUint8(' '))) + goto _30 + _19: + ; + if !(int32(1) != 0) { + goto _37 + } + a = Xstrerror(tls, **(**int32)(__ccgo_up(X__errno_location(tls)))) + goto _38 + _37: + ; + _18: + ; + if *(*uintptr)(unsafe.Pointer(bp + 8)) != 0 { + v8 = *(*uintptr)(unsafe.Pointer(bp + 8)) + } else { + v8 = __ccgo_ts + 1644 + } + a = v8 + _38: + ; + if p < 0 { + v5 = int32(INT_MAX) + } else { + v5 = p + } + z = a + uintptr(Xstrnlen(tls, a, Uint64FromInt32(v5))) + if p < 0 && **(**int8)(__ccgo_up(z)) != 0 { + goto overflow + } + p = int32(int64(z) - int64(a)) + fl = fl & ^(Uint32FromUint32(1) << (Int32FromUint8('0') - Int32FromUint8(' '))) + goto _30 + _20: + ; + if !(*(*Tuintmax_t)(unsafe.Pointer(bp + 8)) != 0) { + goto narrow_c + } + (**(**[2]Twchar_t)(__ccgo_up(bp + 40)))[0] = Int32FromUint64(*(*Tuintmax_t)(unsafe.Pointer(bp + 8))) + (**(**[2]Twchar_t)(__ccgo_up(bp + 40)))[int32(1)] = 0 + *(*uintptr)(unsafe.Pointer(bp + 8)) = bp + 40 + p = -int32(1) + _21: + ; + ws = *(*uintptr)(unsafe.Pointer(bp + 8)) + v5 = Int32FromInt32(0) + l = v5 + i = Uint64FromInt32(v5) + for { + if v45 = i < Uint64FromInt32(p) && **(**Twchar_t)(__ccgo_up(ws)) != 0; v45 { + v8 = ws + ws += 4 + v6 = Xwctomb(tls, bp+48, **(**Twchar_t)(__ccgo_up(v8))) + l = v6 + } + if !(v45 && v6 >= 0 && Uint64FromInt32(l) <= Uint64FromInt32(p)-i) { + break + } + goto _41 + _41: + ; + i = i + Uint64FromInt32(l) + } + if l < 0 { + return -int32(1) + } + if i > uint64(INT_MAX) { + goto overflow + } + p = Int32FromUint64(i) + _pad3(tls, f, int8(' '), w, p, Int32FromUint32(fl)) + ws = *(*uintptr)(unsafe.Pointer(bp + 8)) + i = uint64(0) + for { + if v45 = i < uint64(0+Uint32FromInt32(p)) && **(**Twchar_t)(__ccgo_up(ws)) != 0; v45 { + v8 = ws + ws += 4 + v5 = Xwctomb(tls, bp+48, **(**Twchar_t)(__ccgo_up(v8))) + l = v5 + } + if !(v45 && i+Uint64FromInt32(v5) <= Uint64FromInt32(p)) { + break + } + _out(tls, f, bp+48, Uint64FromInt32(l)) + goto _46 + _46: + ; + i = i + Uint64FromInt32(l) + } + _pad3(tls, f, int8(' '), w, p, Int32FromUint32(fl^Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' ')))) + if w > p { + v5 = w + } else { + v5 = p + } + l = v5 + goto _1 + _29: + ; + _28: + ; + _27: + ; + _26: + ; + _25: + ; + _24: + ; + _23: + ; + _22: + ; + if xp != 0 && p < 0 { + goto overflow + } + l = _fmt_fp(tls, f, *(*float64)(unsafe.Pointer(bp + 8)), w, p, Int32FromUint32(fl), t) + if l < 0 { + goto overflow + } + goto _1 + _30: + ; + if int64(p) < int64(z)-int64(a) { + p = int32(int64(z) - int64(a)) + } + if p > int32(INT_MAX)-pl { + goto overflow + } + if w < pl+p { + w = pl + p + } + if w > int32(INT_MAX)-cnt { + goto overflow + } + _pad3(tls, f, int8(' '), w, pl+p, Int32FromUint32(fl)) + _out(tls, f, prefix, Uint64FromInt32(pl)) + _pad3(tls, f, int8('0'), w, pl+p, Int32FromUint32(fl^Uint32FromUint32(1)<<(Int32FromUint8('0')-Int32FromUint8(' ')))) + _pad3(tls, f, int8('0'), p, int32(int64(z)-int64(a)), 0) + _out(tls, f, a, Uint64FromInt64(int64(z)-int64(a))) + _pad3(tls, f, int8(' '), w, pl+p, Int32FromUint32(fl^Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' ')))) + l = w + goto _1 + _1: + } + if f != 0 { + return cnt + } + if !(l10n != 0) { + return 0 + } + i = uint64(1) + for { + if !(i <= uint64(NL_ARGMAX) && **(**int32)(__ccgo_up(nl_type + uintptr(i)*4)) != 0) { + break + } + _pop_arg(tls, nl_arg+uintptr(i)*8, **(**int32)(__ccgo_up(nl_type + uintptr(i)*4)), ap) + goto _51 + _51: + ; + i = i + 1 + } + for { + if !(i <= uint64(NL_ARGMAX) && !(**(**int32)(__ccgo_up(nl_type + uintptr(i)*4)) != 0)) { + break + } + goto _52 + _52: + ; + i = i + 1 + } + if i <= uint64(NL_ARGMAX) { + goto inval + } + return int32(1) + goto inval +inval: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + goto overflow +overflow: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOVERFLOW) + return -int32(1) +} + +func Xvfprintf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v ap=%v, (%v:)", tls, f, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(208) + defer tls.Free(208) + var __need_unlock, olderr, ret, v1 int32 + var saved_buf, v2, v3 uintptr + var _ /* ap2 at bp+0 */ Tva_list + var _ /* internal_buf at bp+128 */ [80]uint8 + var _ /* nl_arg at bp+48 */ [10]Targ + var _ /* nl_type at bp+8 */ [10]int32 + _, _, _, _, _, _, _ = __need_unlock, olderr, ret, saved_buf, v1, v2, v3 + **(**[10]int32)(__ccgo_up(bp + 8)) = [10]int32{} + saved_buf = uintptr(0) + /* the copy allows passing va_list* even if va_list is an array */ + **(**Tva_list)(__ccgo_up(bp)) = ap + if _printf_core(tls, uintptr(0), fmt, bp, bp+48, bp+8) < 0 { + _ = **(**Tva_list)(__ccgo_up(bp)) + return -int32(1) + } + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + olderr = Int32FromUint32((*TFILE)(unsafe.Pointer(f)).Fflags & uint32(F_ERR)) + **(**uint32)(__ccgo_up(f)) &= Uint32FromInt32(^Int32FromInt32(F_ERR)) + if !((*TFILE)(unsafe.Pointer(f)).Fbuf_size != 0) { + saved_buf = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Fbuf = bp + 128 + (*TFILE)(unsafe.Pointer(f)).Fbuf_size = uint64(80) + v3 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Fwend = v3 + v2 = v3 + (*TFILE)(unsafe.Pointer(f)).Fwbase = v2 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v2 + } + if !((*TFILE)(unsafe.Pointer(f)).Fwend != 0) && X__towrite(tls, f) != 0 { + ret = -int32(1) + } else { + ret = _printf_core(tls, f, fmt, bp, bp+48, bp+8) + } + if saved_buf != 0 { + (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tsize_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fwrite})))(tls, f, uintptr(0), uint64(0)) + if !((*TFILE)(unsafe.Pointer(f)).Fwpos != 0) { + ret = -int32(1) + } + (*TFILE)(unsafe.Pointer(f)).Fbuf = saved_buf + (*TFILE)(unsafe.Pointer(f)).Fbuf_size = uint64(0) + v3 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Fwend = v3 + v2 = v3 + (*TFILE)(unsafe.Pointer(f)).Fwbase = v2 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v2 + } + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_ERR) != 0 { + ret = -int32(1) + } + **(**uint32)(__ccgo_up(f)) |= Uint32FromInt32(olderr) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + _ = **(**Tva_list)(__ccgo_up(bp)) + return ret +} + +const SIZE_L = 2 +const SIZE_def = 0 +const SIZE_h = -1 +const SIZE_hh = -2 +const SIZE_l = 1 +const SIZE_ll = 3 + +func _store_int(tls *TLS, dest uintptr, size int32, i uint64) { + if !(dest != 0) { + return + } + switch size { + case -int32(2): + **(**int8)(__ccgo_up(dest)) = Int8FromUint64(i) + case -int32(1): + **(**int16)(__ccgo_up(dest)) = Int16FromUint64(i) + case SIZE_def: + **(**int32)(__ccgo_up(dest)) = Int32FromUint64(i) + case int32(SIZE_l): + **(**int64)(__ccgo_up(dest)) = Int64FromUint64(i) + case int32(SIZE_ll): + **(**int64)(__ccgo_up(dest)) = Int64FromUint64(i) + break + } +} + +func _arg_n(tls *TLS, ap Tva_list, n uint32) (r uintptr) { + var ap2 Tva_list + var i uint32 + var p uintptr + _, _, _ = ap2, i, p + ap2 = ap + i = n + for { + if !(i > uint32(1)) { + break + } + _ = VaUintptr(&ap2) + goto _1 + _1: + ; + i = i - 1 + } + p = VaUintptr(&ap2) + _ = ap2 + return p +} + +func Xvfscanf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v ap=%v, (%v:)", tls, f, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(288) + defer tls.Free(288) + var __need_unlock, alloc, base, c, invert, matches, size, t, width, v1, v3, v4, v6 int32 + var dest, p, s, tmp, tmp1, wcs, v10, v11, v17 uintptr + var i, k, v64 Tsize_t + var pos Toff_t + var x uint64 + var y float64 + var v59 uint32 + var _ /* scanset at bp+16 */ [257]uint8 + var _ /* st at bp+8 */ Tmbstate_t + var _ /* wc at bp+276 */ Twchar_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = __need_unlock, alloc, base, c, dest, i, invert, k, matches, p, pos, s, size, t, tmp, tmp1, wcs, width, x, y, v1, v10, v11, v17, v3, v4, v59, v6, v64 + alloc = 0 + dest = UintptrFromInt32(0) + matches = 0 + pos = 0 + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + if !((*TFILE)(unsafe.Pointer(f)).Frpos != 0) { + X__toread(tls, f) + } + if !((*TFILE)(unsafe.Pointer(f)).Frpos != 0) { + goto input_fail + } + p = fmt + for { + if !(**(**uint8)(__ccgo_up(p)) != 0) { + break + } + alloc = 0 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(p))) + v3 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _5 + _5: + if v3 != 0 { + for { + v4 = Int32FromUint8(**(**uint8)(__ccgo_up(p + 1))) + v6 = BoolInt32(v4 == int32(' ') || Uint32FromInt32(v4)-uint32('\t') < uint32(5)) + goto _8 + _8: + if !(v6 != 0) { + break + } + p = p + 1 + } + X__shlim(tls, f, int64(Int32FromInt32(0))) + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v11 = f + 8 + v10 = *(*uintptr)(unsafe.Pointer(v11)) + *(*uintptr)(unsafe.Pointer(v11)) = *(*uintptr)(unsafe.Pointer(v11)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v10))) + } else { + v1 = X__shgetc(tls, f) + } + v3 = v1 + v4 = BoolInt32(v3 == int32(' ') || Uint32FromInt32(v3)-uint32('\t') < uint32(5)) + goto _14 + _14: + if !(v4 != 0) { + break + } + } + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + pos = pos + ((*TFILE)(unsafe.Pointer(f)).Fshcnt + (int64((*TFILE)(unsafe.Pointer(f)).Frpos) - int64((*TFILE)(unsafe.Pointer(f)).Fbuf))) + goto _2 + } + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) != int32('%') || Int32FromUint8(**(**uint8)(__ccgo_up(p + 1))) == int32('%') { + X__shlim(tls, f, int64(Int32FromInt32(0))) + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('%') { + p = p + 1 + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v11 = f + 8 + v10 = *(*uintptr)(unsafe.Pointer(v11)) + *(*uintptr)(unsafe.Pointer(v11)) = *(*uintptr)(unsafe.Pointer(v11)) + 1 + v3 = Int32FromUint8(**(**uint8)(__ccgo_up(v10))) + } else { + v3 = X__shgetc(tls, f) + } + v1 = v3 + c = v1 + v4 = v1 + v6 = BoolInt32(v4 == int32(' ') || Uint32FromInt32(v4)-uint32('\t') < uint32(5)) + goto _21 + _21: + if !(v6 != 0) { + break + } + } + } else { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v11 = f + 8 + v10 = *(*uintptr)(unsafe.Pointer(v11)) + *(*uintptr)(unsafe.Pointer(v11)) = *(*uintptr)(unsafe.Pointer(v11)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v10))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + if c != Int32FromUint8(**(**uint8)(__ccgo_up(p))) { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + if c < 0 { + goto input_fail + } + goto match_fail + } + pos = pos + ((*TFILE)(unsafe.Pointer(f)).Fshcnt + (int64((*TFILE)(unsafe.Pointer(f)).Frpos) - int64((*TFILE)(unsafe.Pointer(f)).Fbuf))) + goto _2 + } + p = p + 1 + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('*') { + dest = uintptr(0) + p = p + 1 + } else { + if BoolInt32(uint32(**(**uint8)(__ccgo_up(p)))-uint32('0') < uint32(10)) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(p + 1))) == int32('$') { + dest = _arg_n(tls, ap, Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(p)))-int32('0'))) + p = p + uintptr(2) + } else { + dest = VaUintptr(&ap) + } + } + width = 0 + for { + if !(BoolInt32(uint32(**(**uint8)(__ccgo_up(p)))-uint32('0') < uint32(10)) != 0) { + break + } + width = int32(10)*width + Int32FromUint8(**(**uint8)(__ccgo_up(p))) - int32('0') + goto _25 + _25: + ; + p = p + 1 + } + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('m') { + wcs = uintptr(0) + s = uintptr(0) + alloc = BoolInt32(!!(dest != 0)) + p = p + 1 + } else { + alloc = 0 + } + size = SIZE_def + v10 = p + p = p + 1 + switch Int32FromUint8(**(**uint8)(__ccgo_up(v10))) { + case int32('h'): + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('h') { + p = p + 1 + size = -Int32FromInt32(2) + } else { + size = -int32(1) + } + case int32('l'): + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('l') { + p = p + 1 + size = Int32FromInt32(SIZE_ll) + } else { + size = int32(SIZE_l) + } + case int32('j'): + size = int32(SIZE_ll) + case int32('z'): + fallthrough + case int32('t'): + size = int32(SIZE_l) + case int32('L'): + size = int32(SIZE_L) + case int32('d'): + fallthrough + case int32('i'): + fallthrough + case int32('o'): + fallthrough + case int32('u'): + fallthrough + case int32('x'): + fallthrough + case int32('a'): + fallthrough + case int32('e'): + fallthrough + case int32('f'): + fallthrough + case int32('g'): + fallthrough + case int32('A'): + fallthrough + case int32('E'): + fallthrough + case int32('F'): + fallthrough + case int32('G'): + fallthrough + case int32('X'): + fallthrough + case int32('s'): + fallthrough + case int32('c'): + fallthrough + case int32('['): + fallthrough + case int32('S'): + fallthrough + case int32('C'): + fallthrough + case int32('p'): + fallthrough + case int32('n'): + p = p - 1 + default: + goto fmt_fail + } + t = Int32FromUint8(**(**uint8)(__ccgo_up(p))) + /* C or S */ + if t&int32(0x2f) == int32(3) { + t = t | int32(32) + size = int32(SIZE_l) + } + switch t { + case int32('c'): + if width < int32(1) { + width = int32(1) + } + fallthrough + case int32('['): + case int32('n'): + _store_int(tls, dest, size, Uint64FromInt64(pos)) + /* do not increment match count, etc! */ + goto _2 + default: + X__shlim(tls, f, int64(Int32FromInt32(0))) + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v11 = f + 8 + v10 = *(*uintptr)(unsafe.Pointer(v11)) + *(*uintptr)(unsafe.Pointer(v11)) = *(*uintptr)(unsafe.Pointer(v11)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v10))) + } else { + v1 = X__shgetc(tls, f) + } + v3 = v1 + v4 = BoolInt32(v3 == int32(' ') || Uint32FromInt32(v3)-uint32('\t') < uint32(5)) + goto _32 + _32: + if !(v4 != 0) { + break + } + } + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + pos = pos + ((*TFILE)(unsafe.Pointer(f)).Fshcnt + (int64((*TFILE)(unsafe.Pointer(f)).Frpos) - int64((*TFILE)(unsafe.Pointer(f)).Fbuf))) + } + X__shlim(tls, f, int64(width)) + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v11 = f + 8 + v10 = *(*uintptr)(unsafe.Pointer(v11)) + *(*uintptr)(unsafe.Pointer(v11)) = *(*uintptr)(unsafe.Pointer(v11)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v10))) + } else { + v1 = X__shgetc(tls, f) + } + if v1 < 0 { + goto input_fail + } + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + switch t { + case int32('['): + goto _36 + case int32('c'): + goto _37 + case int32('s'): + goto _38 + case int32('x'): + goto _39 + case int32('X'): + goto _40 + case int32('p'): + goto _41 + case int32('o'): + goto _42 + case int32('u'): + goto _43 + case int32('d'): + goto _44 + case int32('i'): + goto _45 + case int32('G'): + goto _46 + case int32('g'): + goto _47 + case int32('F'): + goto _48 + case int32('f'): + goto _49 + case int32('E'): + goto _50 + case int32('e'): + goto _51 + case int32('A'): + goto _52 + case int32('a'): + goto _53 + } + goto _54 + _38: + ; + _37: + ; + _36: + ; + if t == int32('c') || t == int32('s') { + Xmemset(tls, bp+16, -int32(1), uint64(257)) + (**(**[257]uint8)(__ccgo_up(bp + 16)))[0] = uint8(0) + if t == int32('s') { + (**(**[257]uint8)(__ccgo_up(bp + 16)))[Int32FromInt32(1)+Int32FromUint8('\t')] = uint8(0) + (**(**[257]uint8)(__ccgo_up(bp + 16)))[Int32FromInt32(1)+Int32FromUint8('\n')] = uint8(0) + (**(**[257]uint8)(__ccgo_up(bp + 16)))[Int32FromInt32(1)+Int32FromUint8('\v')] = uint8(0) + (**(**[257]uint8)(__ccgo_up(bp + 16)))[Int32FromInt32(1)+Int32FromUint8('\f')] = uint8(0) + (**(**[257]uint8)(__ccgo_up(bp + 16)))[Int32FromInt32(1)+Int32FromUint8('\r')] = uint8(0) + (**(**[257]uint8)(__ccgo_up(bp + 16)))[Int32FromInt32(1)+Int32FromUint8(' ')] = uint8(0) + } + } else { + p = p + 1 + v10 = p + if Int32FromUint8(**(**uint8)(__ccgo_up(v10))) == int32('^') { + p = p + 1 + invert = Int32FromInt32(1) + } else { + invert = 0 + } + Xmemset(tls, bp+16, invert, uint64(257)) + (**(**[257]uint8)(__ccgo_up(bp + 16)))[0] = uint8(0) + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('-') { + p = p + 1 + (**(**[257]uint8)(__ccgo_up(bp + 16)))[Int32FromInt32(1)+Int32FromUint8('-')] = Uint8FromInt32(Int32FromInt32(1) - invert) + } else { + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32(']') { + p = p + 1 + (**(**[257]uint8)(__ccgo_up(bp + 16)))[Int32FromInt32(1)+Int32FromUint8(']')] = Uint8FromInt32(Int32FromInt32(1) - invert) + } + } + for { + if !(Int32FromUint8(**(**uint8)(__ccgo_up(p))) != int32(']')) { + break + } + if !(**(**uint8)(__ccgo_up(p)) != 0) { + goto fmt_fail + } + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('-') && **(**uint8)(__ccgo_up(p + 1)) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(p + 1))) != int32(']') { + v10 = p + p = p + 1 + c = Int32FromUint8(**(**uint8)(__ccgo_up(v10 + uintptr(-Int32FromInt32(1))))) + for { + if !(c < Int32FromUint8(**(**uint8)(__ccgo_up(p)))) { + break + } + (**(**[257]uint8)(__ccgo_up(bp + 16)))[int32(1)+c] = Uint8FromInt32(int32(1) - invert) + goto _57 + _57: + ; + c = c + 1 + } + } + (**(**[257]uint8)(__ccgo_up(bp + 16)))[int32(1)+Int32FromUint8(**(**uint8)(__ccgo_up(p)))] = Uint8FromInt32(int32(1) - invert) + goto _56 + _56: + ; + p = p + 1 + } + } + wcs = uintptr(0) + s = uintptr(0) + i = uint64(0) + if t == int32('c') { + v59 = Uint32FromInt32(width) + uint32(1) + } else { + v59 = uint32(31) + } + k = uint64(v59) + if size == int32(SIZE_l) { + if alloc != 0 { + wcs = Xmalloc(tls, k*uint64(4)) + if !(wcs != 0) { + goto alloc_fail + } + } else { + wcs = dest + } + **(**Tmbstate_t)(__ccgo_up(bp + 8)) = Tmbstate_t{} + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v11 = f + 8 + v10 = *(*uintptr)(unsafe.Pointer(v11)) + *(*uintptr)(unsafe.Pointer(v11)) = *(*uintptr)(unsafe.Pointer(v11)) + 1 + v3 = Int32FromUint8(**(**uint8)(__ccgo_up(v10))) + } else { + v3 = X__shgetc(tls, f) + } + v1 = v3 + c = v1 + if !((**(**[257]uint8)(__ccgo_up(bp + 16)))[v1+int32(1)] != 0) { + break + } + *(*int8)(unsafe.Pointer(bp)) = int8(c) + switch Xmbrtowc(tls, bp+276, bp, uint64(1), bp+8) { + case Uint64FromInt32(-Int32FromInt32(1)): + goto input_fail + case Uint64FromInt32(-Int32FromInt32(2)): + continue + } + if wcs != 0 { + v64 = i + i = i + 1 + **(**Twchar_t)(__ccgo_up(wcs + uintptr(v64)*4)) = **(**Twchar_t)(__ccgo_up(bp + 276)) + } + if alloc != 0 && i == k { + k = k + (k + uint64(1)) + tmp = Xrealloc(tls, wcs, k*uint64(4)) + if !(tmp != 0) { + goto alloc_fail + } + wcs = tmp + } + } + if !(Xmbsinit(tls, bp+8) != 0) { + goto input_fail + } + } else { + if alloc != 0 { + s = Xmalloc(tls, k) + if !(s != 0) { + goto alloc_fail + } + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v11 = f + 8 + v10 = *(*uintptr)(unsafe.Pointer(v11)) + *(*uintptr)(unsafe.Pointer(v11)) = *(*uintptr)(unsafe.Pointer(v11)) + 1 + v3 = Int32FromUint8(**(**uint8)(__ccgo_up(v10))) + } else { + v3 = X__shgetc(tls, f) + } + v1 = v3 + c = v1 + if !((**(**[257]uint8)(__ccgo_up(bp + 16)))[v1+int32(1)] != 0) { + break + } + v64 = i + i = i + 1 + **(**int8)(__ccgo_up(s + uintptr(v64))) = int8(c) + if i == k { + k = k + (k + uint64(1)) + tmp1 = Xrealloc(tls, s, k) + if !(tmp1 != 0) { + goto alloc_fail + } + s = tmp1 + } + } + } else { + v10 = dest + s = v10 + if v10 != 0 { + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v17 = f + 8 + v11 = *(*uintptr)(unsafe.Pointer(v17)) + *(*uintptr)(unsafe.Pointer(v17)) = *(*uintptr)(unsafe.Pointer(v17)) + 1 + v3 = Int32FromUint8(**(**uint8)(__ccgo_up(v11))) + } else { + v3 = X__shgetc(tls, f) + } + v1 = v3 + c = v1 + if !((**(**[257]uint8)(__ccgo_up(bp + 16)))[v1+int32(1)] != 0) { + break + } + v64 = i + i = i + 1 + **(**int8)(__ccgo_up(s + uintptr(v64))) = int8(c) + } + } else { + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v11 = f + 8 + v10 = *(*uintptr)(unsafe.Pointer(v11)) + *(*uintptr)(unsafe.Pointer(v11)) = *(*uintptr)(unsafe.Pointer(v11)) + 1 + v3 = Int32FromUint8(**(**uint8)(__ccgo_up(v10))) + } else { + v3 = X__shgetc(tls, f) + } + v1 = v3 + c = v1 + if !((**(**[257]uint8)(__ccgo_up(bp + 16)))[v1+int32(1)] != 0) { + break + } + } + } + } + } + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + if !((*TFILE)(unsafe.Pointer(f)).Fshcnt+(int64((*TFILE)(unsafe.Pointer(f)).Frpos)-int64((*TFILE)(unsafe.Pointer(f)).Fbuf)) != 0) { + goto match_fail + } + if t == int32('c') && (*TFILE)(unsafe.Pointer(f)).Fshcnt+(int64((*TFILE)(unsafe.Pointer(f)).Frpos)-int64((*TFILE)(unsafe.Pointer(f)).Fbuf)) != int64(width) { + goto match_fail + } + if alloc != 0 { + if size == int32(SIZE_l) { + **(**uintptr)(__ccgo_up(dest)) = wcs + } else { + **(**uintptr)(__ccgo_up(dest)) = s + } + } + if t != int32('c') { + if wcs != 0 { + **(**Twchar_t)(__ccgo_up(wcs + uintptr(i)*4)) = 0 + } + if s != 0 { + **(**int8)(__ccgo_up(s + uintptr(i))) = 0 + } + } + goto _54 + _41: + ; + _40: + ; + _39: + ; + base = int32(16) + goto int_common + _42: + ; + base = int32(8) + goto int_common + _44: + ; + _43: + ; + base = int32(10) + goto int_common + _45: + ; + base = 0 + goto int_common + int_common: + ; + x = X__intscan(tls, f, Uint32FromInt32(base), 0, Uint64FromUint64(2)*Uint64FromInt64(0x7fffffffffffffff)+Uint64FromInt32(1)) + if !((*TFILE)(unsafe.Pointer(f)).Fshcnt+(int64((*TFILE)(unsafe.Pointer(f)).Frpos)-int64((*TFILE)(unsafe.Pointer(f)).Fbuf)) != 0) { + goto match_fail + } + if t == int32('p') && dest != 0 { + **(**uintptr)(__ccgo_up(dest)) = uintptr(x) + } else { + _store_int(tls, dest, size, x) + } + goto _54 + _53: + ; + _52: + ; + _51: + ; + _50: + ; + _49: + ; + _48: + ; + _47: + ; + _46: + ; + y = X__floatscan(tls, f, size, 0) + if !((*TFILE)(unsafe.Pointer(f)).Fshcnt+(int64((*TFILE)(unsafe.Pointer(f)).Frpos)-int64((*TFILE)(unsafe.Pointer(f)).Fbuf)) != 0) { + goto match_fail + } + if dest != 0 { + switch size { + case SIZE_def: + **(**float32)(__ccgo_up(dest)) = float32(y) + case int32(SIZE_l): + **(**float64)(__ccgo_up(dest)) = y + case int32(SIZE_L): + **(**float64)(__ccgo_up(dest)) = y + break + } + } + goto _54 + _54: + ; + pos = pos + ((*TFILE)(unsafe.Pointer(f)).Fshcnt + (int64((*TFILE)(unsafe.Pointer(f)).Frpos) - int64((*TFILE)(unsafe.Pointer(f)).Fbuf))) + if dest != 0 { + matches = matches + 1 + } + goto _2 + _2: + ; + p = p + 1 + } + if !(0 != 0) { + goto _80 + } + goto fmt_fail +fmt_fail: + ; + goto alloc_fail +alloc_fail: + ; + goto input_fail +input_fail: + ; + if !(matches != 0) { + matches = matches - 1 + } + goto match_fail +match_fail: + ; + if alloc != 0 { + Xfree(tls, s) + Xfree(tls, wcs) + } +_80: + ; + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return matches +} + +func X__isoc99_vfscanf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v ap=%v, (%v:)", tls, f, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvfscanf(tls, f, fmt, ap) +} + +var _states1 = [8][58]uint8{ + 0: { + 0: uint8(_DBL), + 2: uint8(_UINT), + 4: uint8(_DBL), + 5: uint8(_DBL), + 6: uint8(_DBL), + 11: uint8(_BIGLPRE), + 18: uint8(_PTR), + 23: uint8(_UINT), + 32: uint8(_DBL), + 34: uint8(_INT), + 35: uint8(_INT), + 36: uint8(_DBL), + 37: uint8(_DBL), + 38: uint8(_DBL), + 39: uint8(_HPRE), + 40: uint8(_INT), + 41: uint8(_JPRE), + 43: uint8(_LPRE), + 44: uint8(_NOARG), + 45: uint8(_PTR), + 46: uint8(_UINT), + 47: uint8(_UIPTR), + 50: uint8(_PTR), + 51: uint8(_ZTPRE), + 52: uint8(_UINT), + 55: uint8(_UINT), + 57: uint8(_ZTPRE), + }, + 1: { + 0: uint8(_DBL), + 4: uint8(_DBL), + 5: uint8(_DBL), + 6: uint8(_DBL), + 23: uint8(_ULONG), + 32: uint8(_DBL), + 34: uint8(_UINT), + 35: uint8(_LONG), + 36: uint8(_DBL), + 37: uint8(_DBL), + 38: uint8(_DBL), + 40: uint8(_LONG), + 43: uint8(_LLPRE), + 45: uint8(_PTR), + 46: uint8(_ULONG), + 50: uint8(_PTR), + 52: uint8(_ULONG), + 55: uint8(_ULONG), + }, + 2: { + 23: uint8(_ULLONG), + 35: uint8(_LLONG), + 40: uint8(_LLONG), + 45: uint8(_PTR), + 46: uint8(_ULLONG), + 52: uint8(_ULLONG), + 55: uint8(_ULLONG), + }, + 3: { + 23: uint8(_USHORT), + 35: uint8(_SHORT), + 39: uint8(_HHPRE), + 40: uint8(_SHORT), + 45: uint8(_PTR), + 46: uint8(_USHORT), + 52: uint8(_USHORT), + 55: uint8(_USHORT), + }, + 4: { + 23: uint8(_UCHAR), + 35: uint8(_CHAR), + 40: uint8(_CHAR), + 45: uint8(_PTR), + 46: uint8(_UCHAR), + 52: uint8(_UCHAR), + 55: uint8(_UCHAR), + }, + 5: { + 0: uint8(_LDBL), + 4: uint8(_LDBL), + 5: uint8(_LDBL), + 6: uint8(_LDBL), + 32: uint8(_LDBL), + 36: uint8(_LDBL), + 37: uint8(_LDBL), + 38: uint8(_LDBL), + 45: uint8(_PTR), + }, + 6: { + 23: uint8(_SIZET), + 35: uint8(_PDIFF), + 40: uint8(_PDIFF), + 45: uint8(_PTR), + 46: uint8(_SIZET), + 52: uint8(_SIZET), + 55: uint8(_SIZET), + }, + 7: { + 23: uint8(_UMAX), + 35: uint8(_IMAX), + 40: uint8(_IMAX), + 45: uint8(_PTR), + 46: uint8(_UMAX), + 52: uint8(_UMAX), + 55: uint8(_UMAX), + }, +} + +func _pop_arg1(tls *TLS, arg uintptr, type1 int32, ap uintptr) { + switch type1 { + case int32(_PTR): + *(*uintptr)(unsafe.Pointer(arg)) = VaUintptr(&**(**Tva_list)(__ccgo_up(ap))) + case int32(_INT): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt32(VaInt32(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_UINT): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(VaUint32(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_LONG): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt64(VaInt64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_ULONG): + (*Targ)(unsafe.Pointer(arg)).Fi = VaUint64(&**(**Tva_list)(__ccgo_up(ap))) + case int32(_ULLONG): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(VaUint64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_SHORT): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt16(int16(VaInt32(&**(**Tva_list)(__ccgo_up(ap))))) + case int32(_USHORT): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(Uint16FromInt32(VaInt32(&**(**Tva_list)(__ccgo_up(ap))))) + case int32(_CHAR): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt8(int8(VaInt32(&**(**Tva_list)(__ccgo_up(ap))))) + case int32(_UCHAR): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(Uint8FromInt32(VaInt32(&**(**Tva_list)(__ccgo_up(ap))))) + case int32(_LLONG): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt64(VaInt64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_SIZET): + (*Targ)(unsafe.Pointer(arg)).Fi = VaUint64(&**(**Tva_list)(__ccgo_up(ap))) + case int32(_IMAX): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt64(VaInt64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_UMAX): + (*Targ)(unsafe.Pointer(arg)).Fi = VaUint64(&**(**Tva_list)(__ccgo_up(ap))) + case int32(_PDIFF): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt64(VaInt64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_UIPTR): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(VaUintptr(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_DBL): + *(*float64)(unsafe.Pointer(arg)) = float64(VaFloat64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_LDBL): + *(*float64)(unsafe.Pointer(arg)) = VaFloat64(&**(**Tva_list)(__ccgo_up(ap))) + } +} + +func _out1(tls *TLS, f uintptr, s uintptr, l Tsize_t) { + var v1 Tsize_t + var v2 uintptr + _, _ = v1, v2 + for { + v1 = l + l = l - 1 + if !(v1 != 0 && !((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_ERR) != 0)) { + break + } + v2 = s + s += 4 + Xfputwc(tls, **(**Twchar_t)(__ccgo_up(v2)), f) + } +} + +func _pad4(tls *TLS, f uintptr, n int32, fl int32) { + bp := tls.Alloc(32) + defer tls.Free(32) + if Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' '))) != 0 || !(n != 0) || (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_ERR) != 0 { + return + } + Xfprintf(tls, f, __ccgo_ts+1651, VaList(bp+8, n, __ccgo_ts)) +} + +func _getint1(tls *TLS, s uintptr) (r int32) { + var i int32 + _ = i + i = 0 + for { + if !(BoolInt32(Uint32FromInt32(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(s)))))-uint32('0') < uint32(10)) != 0) { + break + } + if Uint32FromInt32(i) > Uint32FromInt32(INT_MAX)/Uint32FromUint32(10) || **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(s))))-int32('0') > int32(INT_MAX)-int32(10)*i { + i = -int32(1) + } else { + i = int32(10)*i + (**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(s)))) - int32('0')) + } + goto _1 + _1: + ; + **(**uintptr)(__ccgo_up(s)) += 4 + } + return i +} + +var _sizeprefix = [24]int8{ + 0: int8('L'), + 3: int8('j'), + 4: int8('L'), + 5: int8('L'), + 6: int8('L'), + 8: int8('j'), + 14: int8('j'), + 15: int8('j'), + 20: int8('j'), + 23: int8('j'), +} + +func _wprintf_core(tls *TLS, f uintptr, fmt uintptr, ap uintptr, nl_arg uintptr, nl_type uintptr) (r int32) { + bp := tls.Alloc(112) + defer tls.Free(112) + var a, bs, z, v8 uintptr + var argpos, cnt, i, l, p, t, w, xp, v5, v6, v7 int32 + var fl, l10n, ps, st uint32 + var v15 bool + var v9 uint64 + var _ /* arg at bp+16 */ Targ + var _ /* charfmt at bp+24 */ [16]int8 + var _ /* s at bp+8 */ uintptr + var _ /* wc at bp+40 */ Twchar_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = a, argpos, bs, cnt, fl, i, l, l10n, p, ps, st, t, w, xp, z, v15, v5, v6, v7, v8, v9 + **(**uintptr)(__ccgo_up(bp + 8)) = fmt + l10n = uint32(0) + cnt = 0 + l = 0 + for { + /* This error is only specified for snprintf, but since it's + * unspecified for other forms, do the same. Stop immediately + * on overflow; otherwise %n could produce wrong results. */ + if l > int32(INT_MAX)-cnt { + goto overflow + } + /* Update output count, end loop when fmt is exhausted */ + cnt = cnt + l + if !(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)))) != 0) { + break + } + /* Handle literal text and %% format specifiers */ + a = **(**uintptr)(__ccgo_up(bp + 8)) + for { + if !(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)))) != 0 && **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)))) != int32('%')) { + break + } + goto _2 + _2: + ; + **(**uintptr)(__ccgo_up(bp + 8)) += 4 + } + z = **(**uintptr)(__ccgo_up(bp + 8)) + for { + if !(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)))) == int32('%') && **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + 1*4)) == int32('%')) { + break + } + goto _3 + _3: + ; + z += 4 + **(**uintptr)(__ccgo_up(bp + 8)) = **(**uintptr)(__ccgo_up(bp + 8)) + uintptr(2)*4 + } + if (int64(z)-int64(a))/4 > int64(int32(INT_MAX)-cnt) { + goto overflow + } + l = int32((int64(z) - int64(a)) / 4) + if f != 0 { + _out1(tls, f, a, Uint64FromInt32(l)) + } + if l != 0 { + goto _1 + } + if BoolInt32(Uint32FromInt32(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + 1*4)))-uint32('0') < uint32(10)) != 0 && **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + 2*4)) == int32('$') { + l10n = uint32(1) + argpos = **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + 1*4)) - int32('0') + **(**uintptr)(__ccgo_up(bp + 8)) = **(**uintptr)(__ccgo_up(bp + 8)) + uintptr(3)*4 + } else { + argpos = -int32(1) + **(**uintptr)(__ccgo_up(bp + 8)) += 4 + } + /* Read modifier flags */ + fl = uint32(0) + for { + if !(Uint32FromInt32(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)))))-uint32(' ') < uint32(32) && (Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8('0')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8(' ')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8('+')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8('\'')-Int32FromUint8(' ')))&(uint32(1)<<(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8))))-int32(' '))) != 0) { + break + } + fl = fl | uint32(1)<<(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8))))-int32(' ')) + goto _4 + _4: + ; + **(**uintptr)(__ccgo_up(bp + 8)) += 4 + } + /* Read field width */ + if **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)))) == int32('*') { + if BoolInt32(Uint32FromInt32(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + 1*4)))-uint32('0') < uint32(10)) != 0 && **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + 2*4)) == int32('$') { + l10n = uint32(1) + **(**int32)(__ccgo_up(nl_type + uintptr(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + 1*4))-int32('0'))*4)) = int32(_INT) + w = Int32FromUint64(*(*Tuintmax_t)(unsafe.Pointer(nl_arg + uintptr(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + 1*4))-int32('0'))*8))) + **(**uintptr)(__ccgo_up(bp + 8)) = **(**uintptr)(__ccgo_up(bp + 8)) + uintptr(3)*4 + } else { + if !(l10n != 0) { + if f != 0 { + v5 = VaInt32(&**(**Tva_list)(__ccgo_up(ap))) + } else { + v5 = 0 + } + w = v5 + **(**uintptr)(__ccgo_up(bp + 8)) += 4 + } else { + goto inval + } + } + if w < 0 { + fl = fl | Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' ')) + w = -w + } + } else { + v5 = _getint1(tls, bp+8) + w = v5 + if v5 < 0 { + goto overflow + } + } + /* Read precision */ + if **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)))) == int32('.') && **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + 1*4)) == int32('*') { + if BoolInt32(Uint32FromInt32(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + 2*4)))-uint32('0') < uint32(10)) != 0 && **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + 3*4)) == int32('$') { + **(**int32)(__ccgo_up(nl_type + uintptr(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + 2*4))-int32('0'))*4)) = int32(_INT) + p = Int32FromUint64(*(*Tuintmax_t)(unsafe.Pointer(nl_arg + uintptr(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + 2*4))-int32('0'))*8))) + **(**uintptr)(__ccgo_up(bp + 8)) = **(**uintptr)(__ccgo_up(bp + 8)) + uintptr(4)*4 + } else { + if !(l10n != 0) { + if f != 0 { + v5 = VaInt32(&**(**Tva_list)(__ccgo_up(ap))) + } else { + v5 = 0 + } + p = v5 + **(**uintptr)(__ccgo_up(bp + 8)) = **(**uintptr)(__ccgo_up(bp + 8)) + uintptr(2)*4 + } else { + goto inval + } + } + xp = BoolInt32(p >= 0) + } else { + if **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)))) == int32('.') { + **(**uintptr)(__ccgo_up(bp + 8)) += 4 + p = _getint1(tls, bp+8) + xp = int32(1) + } else { + p = -int32(1) + xp = 0 + } + } + /* Format specifier state machine */ + st = uint32(0) + for cond := true; cond; cond = st-uint32(1) < uint32(_STOP) { + if Uint32FromInt32(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)))))-uint32('A') > Uint32FromInt32(Int32FromUint8('z')-Int32FromUint8('A')) { + goto inval + } + ps = st + v8 = **(**uintptr)(__ccgo_up(bp + 8)) + **(**uintptr)(__ccgo_up(bp + 8)) += 4 + st = uint32(**(**uint8)(__ccgo_up(uintptr(unsafe.Pointer(&_states1)) + uintptr(st)*58 + uintptr(**(**Twchar_t)(__ccgo_up(v8))-int32('A'))))) + } + if !(st != 0) { + goto inval + } + /* Check validity of argument type (nl/normal) */ + if st == uint32(_NOARG) { + if argpos >= 0 { + goto inval + } + } else { + if argpos >= 0 { + **(**int32)(__ccgo_up(nl_type + uintptr(argpos)*4)) = Int32FromUint32(st) + **(**Targ)(__ccgo_up(bp + 16)) = **(**Targ)(__ccgo_up(nl_arg + uintptr(argpos)*8)) + } else { + if f != 0 { + _pop_arg1(tls, bp+16, Int32FromUint32(st), ap) + } else { + return 0 + } + } + } + if !(f != 0) { + goto _1 + } + /* Do not process any new directives once in error state. */ + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_ERR) != 0 { + return -int32(1) + } + t = **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + uintptr(-Int32FromInt32(1))*4)) + if ps != 0 && t&int32(15) == int32(3) { + t = t & ^Int32FromInt32(32) + } + switch t { + case int32('n'): + switch ps { + case uint32(_BARE): + **(**int32)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 16)))) = cnt + case uint32(_LPRE): + **(**int64)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 16)))) = int64(cnt) + case uint32(_LLPRE): + **(**int64)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 16)))) = int64(cnt) + case uint32(_HPRE): + **(**uint16)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 16)))) = Uint16FromInt32(cnt) + case uint32(_HHPRE): + **(**uint8)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 16)))) = Uint8FromInt32(cnt) + case uint32(_ZTPRE): + **(**Tsize_t)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 16)))) = Uint64FromInt32(cnt) + case uint32(_JPRE): + **(**Tuintmax_t)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 16)))) = Uint64FromInt32(cnt) + break + } + goto _1 + case int32('c'): + fallthrough + case int32('C'): + if w < int32(1) { + w = int32(1) + } + _pad4(tls, f, w-int32(1), Int32FromUint32(fl)) + if t == int32('C') { + v9 = *(*Tuintmax_t)(unsafe.Pointer(bp + 16)) + } else { + v9 = uint64(Xbtowc(tls, Int32FromUint64(*(*Tuintmax_t)(unsafe.Pointer(bp + 16))))) + } + *(*Twchar_t)(unsafe.Pointer(bp)) = Int32FromUint64(v9) + _out1(tls, f, bp, uint64(1)) + _pad4(tls, f, w-int32(1), Int32FromUint32(fl^Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' ')))) + l = w + goto _1 + case int32('S'): + a = *(*uintptr)(unsafe.Pointer(bp + 16)) + if p < 0 { + v5 = int32(INT_MAX) + } else { + v5 = p + } + z = a + uintptr(Xwcsnlen(tls, a, Uint64FromInt32(v5)))*4 + if p < 0 && **(**Twchar_t)(__ccgo_up(z)) != 0 { + goto overflow + } + p = int32((int64(z) - int64(a)) / 4) + if w < p { + w = p + } + _pad4(tls, f, w-p, Int32FromUint32(fl)) + _out1(tls, f, a, Uint64FromInt32(p)) + _pad4(tls, f, w-p, Int32FromUint32(fl^Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' ')))) + l = w + goto _1 + case int32('m'): + *(*uintptr)(unsafe.Pointer(bp + 16)) = Xstrerror(tls, **(**int32)(__ccgo_up(X__errno_location(tls)))) + fallthrough + case int32('s'): + if !(*(*uintptr)(unsafe.Pointer(bp + 16)) != 0) { + *(*uintptr)(unsafe.Pointer(bp + 16)) = __ccgo_ts + 1644 + } + bs = *(*uintptr)(unsafe.Pointer(bp + 16)) + v5 = Int32FromInt32(0) + l = v5 + i = v5 + for { + if p < 0 { + v6 = int32(INT_MAX) + } else { + v6 = p + } + if v15 = l < v6; v15 { + v7 = Xmbtowc(tls, bp+40, bs, uint64(MB_LEN_MAX)) + i = v7 + } + if !(v15 && v7 > 0) { + break + } + goto _11 + _11: + ; + bs = bs + uintptr(i) + l = l + 1 + } + if i < 0 { + return -int32(1) + } + if p < 0 && **(**int8)(__ccgo_up(bs)) != 0 { + goto overflow + } + p = l + if w < p { + w = p + } + _pad4(tls, f, w-p, Int32FromUint32(fl)) + bs = *(*uintptr)(unsafe.Pointer(bp + 16)) + for { + v5 = l + l = l - 1 + if !(v5 != 0) { + break + } + i = Xmbtowc(tls, bp+40, bs, uint64(MB_LEN_MAX)) + bs = bs + uintptr(i) + _out1(tls, f, bp+40, uint64(1)) + } + _pad4(tls, f, w-p, Int32FromUint32(fl^Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' ')))) + l = w + goto _1 + } + if xp != 0 && p < 0 { + goto overflow + } + Xsnprintf(tls, bp+24, uint64(16), __ccgo_ts+1655, VaList(bp+56, __ccgo_ts+1675+BoolUintptr(!(fl&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0)), __ccgo_ts+1677+BoolUintptr(!(fl&(Uint32FromUint32(1)<<(Int32FromUint8('+')-Int32FromUint8(' '))) != 0)), __ccgo_ts+1679+BoolUintptr(!(fl&(Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' '))) != 0)), __ccgo_ts+689+BoolUintptr(!(fl&(Uint32FromUint32(1)<<(Int32FromUint8(' ')-Int32FromUint8(' '))) != 0)), __ccgo_ts+1681+BoolUintptr(!(fl&(Uint32FromUint32(1)<<(Int32FromUint8('0')-Int32FromUint8(' '))) != 0)), int32(_sizeprefix[t|int32(32)-int32('a')]), t)) + switch t | Int32FromInt32(32) { + case int32('a'): + fallthrough + case int32('e'): + fallthrough + case int32('f'): + fallthrough + case int32('g'): + l = Xfprintf(tls, f, bp+24, VaList(bp+56, w, p, *(*float64)(unsafe.Pointer(bp + 16)))) + case int32('d'): + fallthrough + case int32('i'): + fallthrough + case int32('o'): + fallthrough + case int32('u'): + fallthrough + case int32('x'): + fallthrough + case int32('p'): + l = Xfprintf(tls, f, bp+24, VaList(bp+56, w, p, *(*Tuintmax_t)(unsafe.Pointer(bp + 16)))) + break + } + goto _1 + _1: + } + if f != 0 { + return cnt + } + if !(l10n != 0) { + return 0 + } + i = int32(1) + for { + if !(i <= int32(NL_ARGMAX) && **(**int32)(__ccgo_up(nl_type + uintptr(i)*4)) != 0) { + break + } + _pop_arg1(tls, nl_arg+uintptr(i)*8, **(**int32)(__ccgo_up(nl_type + uintptr(i)*4)), ap) + goto _17 + _17: + ; + i = i + 1 + } + for { + if !(i <= int32(NL_ARGMAX) && !(**(**int32)(__ccgo_up(nl_type + uintptr(i)*4)) != 0)) { + break + } + goto _18 + _18: + ; + i = i + 1 + } + if i <= int32(NL_ARGMAX) { + return -int32(1) + } + return int32(1) + goto inval +inval: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + goto overflow +overflow: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOVERFLOW) + return -int32(1) +} + +func Xvfwprintf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v ap=%v, (%v:)", tls, f, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(128) + defer tls.Free(128) + var __need_unlock, olderr, ret, v1 int32 + var _ /* ap2 at bp+0 */ Tva_list + var _ /* nl_arg at bp+48 */ [10]Targ + var _ /* nl_type at bp+8 */ [10]int32 + _, _, _, _ = __need_unlock, olderr, ret, v1 + **(**[10]int32)(__ccgo_up(bp + 8)) = [10]int32{} + /* the copy allows passing va_list* even if va_list is an array */ + **(**Tva_list)(__ccgo_up(bp)) = ap + if _wprintf_core(tls, uintptr(0), fmt, bp, bp+48, bp+8) < 0 { + _ = **(**Tva_list)(__ccgo_up(bp)) + return -int32(1) + } + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + Xfwide(tls, f, int32(1)) + olderr = Int32FromUint32((*TFILE)(unsafe.Pointer(f)).Fflags & uint32(F_ERR)) + **(**uint32)(__ccgo_up(f)) &= Uint32FromInt32(^Int32FromInt32(F_ERR)) + ret = _wprintf_core(tls, f, fmt, bp, bp+48, bp+8) + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_ERR) != 0 { + ret = -int32(1) + } + **(**uint32)(__ccgo_up(f)) |= Uint32FromInt32(olderr) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + _ = **(**Tva_list)(__ccgo_up(bp)) + return ret +} + +func _store_int1(tls *TLS, dest uintptr, size int32, i uint64) { + if !(dest != 0) { + return + } + switch size { + case -int32(2): + **(**int8)(__ccgo_up(dest)) = Int8FromUint64(i) + case -int32(1): + **(**int16)(__ccgo_up(dest)) = Int16FromUint64(i) + case SIZE_def: + **(**int32)(__ccgo_up(dest)) = Int32FromUint64(i) + case int32(SIZE_l): + **(**int64)(__ccgo_up(dest)) = Int64FromUint64(i) + case int32(SIZE_ll): + **(**int64)(__ccgo_up(dest)) = Int64FromUint64(i) + break + } +} + +func _arg_n1(tls *TLS, ap Tva_list, n uint32) (r uintptr) { + var ap2 Tva_list + var i uint32 + var p uintptr + _, _, _ = ap2, i, p + ap2 = ap + i = n + for { + if !(i > uint32(1)) { + break + } + _ = VaUintptr(&ap2) + goto _1 + _1: + ; + i = i - 1 + } + p = VaUintptr(&ap2) + _ = ap2 + return p +} + +func _in_set(tls *TLS, set uintptr, c int32) (r int32) { + var j int32 + var p, v3 uintptr + _, _, _ = j, p, v3 + p = set + if **(**Twchar_t)(__ccgo_up(p)) == int32('-') { + if c == int32('-') { + return int32(1) + } + p += 4 + } else { + if **(**Twchar_t)(__ccgo_up(p)) == int32(']') { + if c == int32(']') { + return int32(1) + } + p += 4 + } + } + for { + if !(**(**Twchar_t)(__ccgo_up(p)) != 0 && **(**Twchar_t)(__ccgo_up(p)) != int32(']')) { + break + } + if **(**Twchar_t)(__ccgo_up(p)) == int32('-') && **(**Twchar_t)(__ccgo_up(p + 1*4)) != 0 && **(**Twchar_t)(__ccgo_up(p + 1*4)) != int32(']') { + v3 = p + p += 4 + j = **(**Twchar_t)(__ccgo_up(v3 + uintptr(-Int32FromInt32(1))*4)) + for { + if !(j < **(**Twchar_t)(__ccgo_up(p))) { + break + } + if c == j { + return int32(1) + } + goto _2 + _2: + ; + j = j + 1 + } + } + if c == **(**Twchar_t)(__ccgo_up(p)) { + return int32(1) + } + goto _1 + _1: + ; + p += 4 + } + return 0 +} + +func Xvfwscanf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v ap=%v, (%v:)", tls, f, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(80) + defer tls.Free(80) + var __need_unlock, alloc, c, gotmatch, invert, l, matches, size, t, width, v1 int32 + var dest, p, s, set, tmp1, tmp2, wcs, v5, v6 uintptr + var i, k, v37 Tsize_t + var pos Toff_t + var v4 uint32 + var _ /* cnt at bp+0 */ Toff_t + var _ /* tmp at bp+8 */ [22]int8 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = __need_unlock, alloc, c, dest, gotmatch, i, invert, k, l, matches, p, pos, s, set, size, t, tmp1, tmp2, wcs, width, v1, v37, v4, v5, v6 + dest = UintptrFromInt32(0) + matches = 0 + pos = 0 + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + Xfwide(tls, f, int32(1)) + p = fmt + for { + if !(**(**Twchar_t)(__ccgo_up(p)) != 0) { + break + } + alloc = 0 + if Xiswspace(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(p)))) != 0 { + for Xiswspace(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(p + 1*4)))) != 0 { + p += 4 + } + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend && Int32FromUint8(**(**uint8)(__ccgo_up((*TFILE)(unsafe.Pointer(f)).Frpos))) < int32(128) { + v6 = f + 8 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + v4 = uint32(**(**uint8)(__ccgo_up(v5))) + } else { + v4 = Xgetwc(tls, f) + } + v1 = Int32FromUint32(v4) + c = v1 + if !(Xiswspace(tls, Uint32FromInt32(v1)) != 0) { + break + } + pos = pos + 1 + } + if (*TFILE)(unsafe.Pointer(f)).Frend != 0 && Uint32FromInt32(c) < uint32(128) { + v6 = f + 8 + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) - 1 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + _ = **(**uint8)(__ccgo_up(v5)) + } else { + Xungetwc(tls, Uint32FromInt32(c), f) + } + goto _2 + } + if **(**Twchar_t)(__ccgo_up(p)) != int32('%') || **(**Twchar_t)(__ccgo_up(p + 1*4)) == int32('%') { + if **(**Twchar_t)(__ccgo_up(p)) == int32('%') { + p += 4 + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend && Int32FromUint8(**(**uint8)(__ccgo_up((*TFILE)(unsafe.Pointer(f)).Frpos))) < int32(128) { + v6 = f + 8 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + v4 = uint32(**(**uint8)(__ccgo_up(v5))) + } else { + v4 = Xgetwc(tls, f) + } + v1 = Int32FromUint32(v4) + c = v1 + if !(Xiswspace(tls, Uint32FromInt32(v1)) != 0) { + break + } + pos = pos + 1 + } + } else { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend && Int32FromUint8(**(**uint8)(__ccgo_up((*TFILE)(unsafe.Pointer(f)).Frpos))) < int32(128) { + v6 = f + 8 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + v4 = uint32(**(**uint8)(__ccgo_up(v5))) + } else { + v4 = Xgetwc(tls, f) + } + c = Int32FromUint32(v4) + } + if c != **(**Twchar_t)(__ccgo_up(p)) { + if (*TFILE)(unsafe.Pointer(f)).Frend != 0 && Uint32FromInt32(c) < uint32(128) { + v6 = f + 8 + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) - 1 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + _ = **(**uint8)(__ccgo_up(v5)) + } else { + Xungetwc(tls, Uint32FromInt32(c), f) + } + if c < 0 { + goto input_fail + } + goto match_fail + } + pos = pos + 1 + goto _2 + } + p += 4 + if **(**Twchar_t)(__ccgo_up(p)) == int32('*') { + dest = uintptr(0) + p += 4 + } else { + if BoolInt32(Uint32FromInt32(**(**Twchar_t)(__ccgo_up(p)))-uint32('0') < uint32(10)) != 0 && **(**Twchar_t)(__ccgo_up(p + 1*4)) == int32('$') { + dest = _arg_n1(tls, ap, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(p))-int32('0'))) + p = p + uintptr(2)*4 + } else { + dest = VaUintptr(&ap) + } + } + width = 0 + for { + if !(BoolInt32(Uint32FromInt32(**(**Twchar_t)(__ccgo_up(p)))-uint32('0') < uint32(10)) != 0) { + break + } + width = int32(10)*width + **(**Twchar_t)(__ccgo_up(p)) - int32('0') + goto _18 + _18: + ; + p += 4 + } + if **(**Twchar_t)(__ccgo_up(p)) == int32('m') { + wcs = uintptr(0) + s = uintptr(0) + alloc = BoolInt32(!!(dest != 0)) + p += 4 + } else { + alloc = 0 + } + size = SIZE_def + v5 = p + p += 4 + switch **(**Twchar_t)(__ccgo_up(v5)) { + case int32('h'): + if **(**Twchar_t)(__ccgo_up(p)) == int32('h') { + p += 4 + size = -Int32FromInt32(2) + } else { + size = -int32(1) + } + case int32('l'): + if **(**Twchar_t)(__ccgo_up(p)) == int32('l') { + p += 4 + size = Int32FromInt32(SIZE_ll) + } else { + size = int32(SIZE_l) + } + case int32('j'): + size = int32(SIZE_ll) + case int32('z'): + fallthrough + case int32('t'): + size = int32(SIZE_l) + case int32('L'): + size = int32(SIZE_L) + case int32('d'): + fallthrough + case int32('i'): + fallthrough + case int32('o'): + fallthrough + case int32('u'): + fallthrough + case int32('x'): + fallthrough + case int32('a'): + fallthrough + case int32('e'): + fallthrough + case int32('f'): + fallthrough + case int32('g'): + fallthrough + case int32('A'): + fallthrough + case int32('E'): + fallthrough + case int32('F'): + fallthrough + case int32('G'): + fallthrough + case int32('X'): + fallthrough + case int32('s'): + fallthrough + case int32('c'): + fallthrough + case int32('['): + fallthrough + case int32('S'): + fallthrough + case int32('C'): + fallthrough + case int32('p'): + fallthrough + case int32('n'): + p -= 4 + default: + goto fmt_fail + } + t = **(**Twchar_t)(__ccgo_up(p)) + /* Transform S,C -> ls,lc */ + if t&int32(0x2f) == int32(3) { + size = int32(SIZE_l) + t = t | int32(32) + } + if t != int32('n') { + if t != int32('[') && t|int32(32) != int32('c') { + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend && Int32FromUint8(**(**uint8)(__ccgo_up((*TFILE)(unsafe.Pointer(f)).Frpos))) < int32(128) { + v6 = f + 8 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + v4 = uint32(**(**uint8)(__ccgo_up(v5))) + } else { + v4 = Xgetwc(tls, f) + } + v1 = Int32FromUint32(v4) + c = v1 + if !(Xiswspace(tls, Uint32FromInt32(v1)) != 0) { + break + } + pos = pos + 1 + } + } else { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend && Int32FromUint8(**(**uint8)(__ccgo_up((*TFILE)(unsafe.Pointer(f)).Frpos))) < int32(128) { + v6 = f + 8 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + v4 = uint32(**(**uint8)(__ccgo_up(v5))) + } else { + v4 = Xgetwc(tls, f) + } + c = Int32FromUint32(v4) + } + if c < 0 { + goto input_fail + } + if (*TFILE)(unsafe.Pointer(f)).Frend != 0 && Uint32FromInt32(c) < uint32(128) { + v6 = f + 8 + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) - 1 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + _ = **(**uint8)(__ccgo_up(v5)) + } else { + Xungetwc(tls, Uint32FromInt32(c), f) + } + } + switch t { + case int32('n'): + _store_int1(tls, dest, size, Uint64FromInt64(pos)) + /* do not increment match count, etc! */ + goto _2 + case int32('s'): + fallthrough + case int32('c'): + fallthrough + case int32('['): + if t == int32('c') { + if width < int32(1) { + width = int32(1) + } + invert = int32(1) + set = __ccgo_ts + 1683 + } else { + if t == int32('s') { + invert = int32(1) + set = uintptr(unsafe.Pointer(&_spaces1)) + } else { + p += 4 + v5 = p + if **(**Twchar_t)(__ccgo_up(v5)) == int32('^') { + p += 4 + invert = Int32FromInt32(1) + } else { + invert = 0 + } + set = p + if **(**Twchar_t)(__ccgo_up(p)) == int32(']') { + p += 4 + } + for **(**Twchar_t)(__ccgo_up(p)) != int32(']') { + if !(**(**Twchar_t)(__ccgo_up(p)) != 0) { + goto fmt_fail + } + p += 4 + } + } + } + if size == SIZE_def { + v5 = dest + } else { + v5 = uintptr(0) + } + s = v5 + if size == int32(SIZE_l) { + v5 = dest + } else { + v5 = uintptr(0) + } + wcs = v5 + gotmatch = 0 + if width < int32(1) { + width = -int32(1) + } + i = uint64(0) + if alloc != 0 { + if t == int32('c') { + v4 = Uint32FromInt32(width) + uint32(1) + } else { + v4 = uint32(31) + } + k = uint64(v4) + if size == int32(SIZE_l) { + wcs = Xmalloc(tls, k*uint64(4)) + if !(wcs != 0) { + goto alloc_fail + } + } else { + s = Xmalloc(tls, k) + if !(s != 0) { + goto alloc_fail + } + } + } + for width != 0 { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend && Int32FromUint8(**(**uint8)(__ccgo_up((*TFILE)(unsafe.Pointer(f)).Frpos))) < int32(128) { + v6 = f + 8 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + v4 = uint32(**(**uint8)(__ccgo_up(v5))) + } else { + v4 = Xgetwc(tls, f) + } + v1 = Int32FromUint32(v4) + c = v1 + if v1 < 0 { + break + } + if _in_set(tls, set, c) == invert { + break + } + if wcs != 0 { + v37 = i + i = i + 1 + **(**Twchar_t)(__ccgo_up(wcs + uintptr(v37)*4)) = c + if alloc != 0 && i == k { + k = k + (k + uint64(1)) + tmp1 = Xrealloc(tls, wcs, k*uint64(4)) + if !(tmp1 != 0) { + goto alloc_fail + } + wcs = tmp1 + } + } else { + if size != int32(SIZE_l) { + if s != 0 { + v5 = s + uintptr(i) + } else { + v5 = bp + 8 + } + l = Xwctomb(tls, v5, c) + if l < 0 { + goto input_fail + } + i = i + Uint64FromInt32(l) + if alloc != 0 && i > k-uint64(4) { + k = k + (k + uint64(1)) + tmp2 = Xrealloc(tls, s, k) + if !(tmp2 != 0) { + goto alloc_fail + } + s = tmp2 + } + } + } + pos = pos + 1 + width = width - BoolInt32(width > 0) + gotmatch = int32(1) + } + if width != 0 { + if (*TFILE)(unsafe.Pointer(f)).Frend != 0 && Uint32FromInt32(c) < uint32(128) { + v6 = f + 8 + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) - 1 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + _ = **(**uint8)(__ccgo_up(v5)) + } else { + Xungetwc(tls, Uint32FromInt32(c), f) + } + if t == int32('c') || !(gotmatch != 0) { + goto match_fail + } + } + if alloc != 0 { + if size == int32(SIZE_l) { + **(**uintptr)(__ccgo_up(dest)) = wcs + } else { + **(**uintptr)(__ccgo_up(dest)) = s + } + } + if t != int32('c') { + if wcs != 0 { + **(**Twchar_t)(__ccgo_up(wcs + uintptr(i)*4)) = 0 + } + if s != 0 { + **(**int8)(__ccgo_up(s + uintptr(i))) = 0 + } + } + case int32('d'): + fallthrough + case int32('i'): + fallthrough + case int32('o'): + fallthrough + case int32('u'): + fallthrough + case int32('x'): + fallthrough + case int32('a'): + fallthrough + case int32('e'): + fallthrough + case int32('f'): + fallthrough + case int32('g'): + fallthrough + case int32('A'): + fallthrough + case int32('E'): + fallthrough + case int32('F'): + fallthrough + case int32('G'): + fallthrough + case int32('X'): + fallthrough + case int32('p'): + if width < int32(1) { + width = 0 + } + Xsnprintf(tls, bp+8, uint64(22), __ccgo_ts+1687, VaList(bp+40, int32(1)+BoolInt32(!(dest != 0)), __ccgo_ts+1705, width, uintptr(unsafe.Pointer(&_size_pfx))+uintptr(size+int32(2))*3, t)) + **(**Toff_t)(__ccgo_up(bp)) = 0 + if dest != 0 { + v5 = dest + } else { + v5 = bp + } + if Xfscanf(tls, f, bp+8, VaList(bp+40, v5, bp)) == -int32(1) { + goto input_fail + } else { + if !(**(**Toff_t)(__ccgo_up(bp)) != 0) { + goto match_fail + } + } + pos = pos + **(**Toff_t)(__ccgo_up(bp)) + default: + goto fmt_fail + } + if dest != 0 { + matches = matches + 1 + } + goto _2 + _2: + ; + p += 4 + } + if !(0 != 0) { + goto _42 + } + goto fmt_fail +fmt_fail: + ; + goto alloc_fail +alloc_fail: + ; + goto input_fail +input_fail: + ; + if !(matches != 0) { + matches = matches - 1 + } + goto match_fail +match_fail: + ; + if alloc != 0 { + Xfree(tls, s) + Xfree(tls, wcs) + } +_42: + ; + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return matches +} + +var _size_pfx = [6][3]int8{ + 0: {'h', 'h'}, + 1: {'h'}, + 2: {}, + 3: {'l'}, + 4: {'L'}, + 5: {'l', 'l'}, +} + +var _spaces1 = [22]Twchar_t{ + 0: int32(' '), + 1: int32('\t'), + 2: int32('\n'), + 3: int32('\r'), + 4: int32(11), + 5: int32(12), + 6: int32(0x0085), + 7: int32(0x2000), + 8: int32(0x2001), + 9: int32(0x2002), + 10: int32(0x2003), + 11: int32(0x2004), + 12: int32(0x2005), + 13: int32(0x2006), + 14: int32(0x2008), + 15: int32(0x2009), + 16: int32(0x200a), + 17: int32(0x2028), + 18: int32(0x2029), + 19: int32(0x205f), + 20: int32(0x3000), +} + +func X__isoc99_vfwscanf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v ap=%v, (%v:)", tls, f, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvfwscanf(tls, f, fmt, ap) +} + +func Xvprintf(tls *TLS, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v ap=%v, (%v:)", tls, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvfprintf(tls, uintptr(unsafe.Pointer(&X__stdout_FILE)), fmt, ap) +} + +func Xvscanf(tls *TLS, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v ap=%v, (%v:)", tls, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvfscanf(tls, uintptr(unsafe.Pointer(&X__stdin_FILE)), fmt, ap) +} + +func X__isoc99_vscanf(tls *TLS, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v ap=%v, (%v:)", tls, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvscanf(tls, fmt, ap) +} + +type Tcookie3 = struct { + Fs uintptr + Fn Tsize_t +} + +func _sn_write(tls *TLS, f uintptr, s uintptr, l Tsize_t) (r Tsize_t) { + var c, v3 uintptr + var k Tsize_t + var v1 uint64 + _, _, _, _ = c, k, v1, v3 + c = (*TFILE)(unsafe.Pointer(f)).Fcookie + if (*Tcookie3)(unsafe.Pointer(c)).Fn < Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Fwpos)-int64((*TFILE)(unsafe.Pointer(f)).Fwbase)) { + v1 = (*Tcookie3)(unsafe.Pointer(c)).Fn + } else { + v1 = Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Fwpos) - int64((*TFILE)(unsafe.Pointer(f)).Fwbase)) + } + k = v1 + if k != 0 { + Xmemcpy(tls, (*Tcookie3)(unsafe.Pointer(c)).Fs, (*TFILE)(unsafe.Pointer(f)).Fwbase, k) + **(**uintptr)(__ccgo_up(c)) += uintptr(k) + **(**Tsize_t)(__ccgo_up(c + 8)) -= k + } + if (*Tcookie3)(unsafe.Pointer(c)).Fn < l { + v1 = (*Tcookie3)(unsafe.Pointer(c)).Fn + } else { + v1 = l + } + k = v1 + if k != 0 { + Xmemcpy(tls, (*Tcookie3)(unsafe.Pointer(c)).Fs, s, k) + **(**uintptr)(__ccgo_up(c)) += uintptr(k) + **(**Tsize_t)(__ccgo_up(c + 8)) -= k + } + **(**int8)(__ccgo_up((*Tcookie3)(unsafe.Pointer(c)).Fs)) = 0 + v3 = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Fwbase = v3 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v3 + /* pretend to succeed, even if we discarded extra data */ + return l +} + +func Xvsnprintf(tls *TLS, s uintptr, n Tsize_t, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v fmt=%v ap=%v, (%v:)", tls, s, n, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(256) + defer tls.Free(256) + var v1 uintptr + var v2 uint64 + var _ /* buf at bp+0 */ [1]uint8 + var _ /* c at bp+8 */ Tcookie3 + var _ /* dummy at bp+1 */ [1]int8 + var _ /* f at bp+24 */ TFILE + _, _ = v1, v2 + if n != 0 { + v1 = s + } else { + v1 = bp + 1 + } + if n != 0 { + v2 = n - uint64(1) + } else { + v2 = uint64(0) + } + **(**Tcookie3)(__ccgo_up(bp + 8)) = Tcookie3{ + Fs: v1, + Fn: v2, + } + **(**TFILE)(__ccgo_up(bp + 24)) = TFILE{ + Fwrite: __ccgo_fp(_sn_write), + Fbuf: bp, + Flock: -int32(1), + Flbf: -int32(1), + Fcookie: bp + 8, + } + **(**int8)(__ccgo_up((**(**Tcookie3)(__ccgo_up(bp + 8))).Fs)) = 0 + return Xvfprintf(tls, bp+24, fmt, ap) +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xvsprintf(tls *TLS, s uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v ap=%v, (%v:)", tls, s, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvsnprintf(tls, s, uint64(INT_MAX), fmt, ap) +} + +func _string_read(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + var end, src uintptr + var k Tsize_t + _, _, _ = end, k, src + src = (*TFILE)(unsafe.Pointer(f)).Fcookie + k = len1 + uint64(256) + end = Xmemchr(tls, src, 0, k) + if end != 0 { + k = Uint64FromInt64(int64(end) - int64(src)) + } + if k < len1 { + len1 = k + } + Xmemcpy(tls, buf, src, len1) + (*TFILE)(unsafe.Pointer(f)).Frpos = src + uintptr(len1) + (*TFILE)(unsafe.Pointer(f)).Frend = src + uintptr(k) + (*TFILE)(unsafe.Pointer(f)).Fcookie = src + uintptr(k) + return len1 +} + +func Xvsscanf(tls *TLS, s uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v ap=%v, (%v:)", tls, s, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(240) + defer tls.Free(240) + var _ /* f at bp+0 */ TFILE + **(**TFILE)(__ccgo_up(bp)) = TFILE{ + Fread: __ccgo_fp(_string_read), + Fbuf: s, + Flock: -int32(1), + Fcookie: s, + } + return Xvfscanf(tls, bp, fmt, ap) +} + +func X__isoc99_vsscanf(tls *TLS, s uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v ap=%v, (%v:)", tls, s, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvsscanf(tls, s, fmt, ap) +} + +type Tcookie4 = struct { + Fws uintptr + Fl Tsize_t +} + +func _sw_write(tls *TLS, f uintptr, s uintptr, l Tsize_t) (r Tsize_t) { + var c, v3, v4 uintptr + var i, v1 int32 + var l0 Tsize_t + var v2 bool + _, _, _, _, _, _, _ = c, i, l0, v1, v2, v3, v4 + l0 = l + i = 0 + c = (*TFILE)(unsafe.Pointer(f)).Fcookie + if s != (*TFILE)(unsafe.Pointer(f)).Fwbase && _sw_write(tls, f, (*TFILE)(unsafe.Pointer(f)).Fwbase, Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Fwpos)-int64((*TFILE)(unsafe.Pointer(f)).Fwbase))) == Uint64FromInt32(-Int32FromInt32(1)) { + return Uint64FromInt32(-Int32FromInt32(1)) + } + for { + if v2 = (*Tcookie4)(unsafe.Pointer(c)).Fl != 0 && l != 0; v2 { + v1 = Xmbtowc(tls, (*Tcookie4)(unsafe.Pointer(c)).Fws, s, l) + i = v1 + } + if !(v2 && v1 >= 0) { + break + } + if !(i != 0) { + i = int32(1) + } + s = s + uintptr(i) + l = l - Uint64FromInt32(i) + (*Tcookie4)(unsafe.Pointer(c)).Fl = (*Tcookie4)(unsafe.Pointer(c)).Fl - 1 + (*Tcookie4)(unsafe.Pointer(c)).Fws += 4 + } + **(**Twchar_t)(__ccgo_up((*Tcookie4)(unsafe.Pointer(c)).Fws)) = 0 + if i < 0 { + v4 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Fwend = v4 + v3 = v4 + (*TFILE)(unsafe.Pointer(f)).Fwbase = v3 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v3 + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) + return Uint64FromInt32(i) + } + (*TFILE)(unsafe.Pointer(f)).Fwend = (*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr((*TFILE)(unsafe.Pointer(f)).Fbuf_size) + v3 = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Fwbase = v3 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v3 + return l0 +} + +func Xvswprintf(tls *TLS, s uintptr, n Tsize_t, fmt uintptr, ap Tva_list) (r1 int32) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v fmt=%v ap=%v, (%v:)", tls, s, n, fmt, ap, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(512) + defer tls.Free(512) + var r, v1 int32 + var _ /* buf at bp+0 */ [256]uint8 + var _ /* c at bp+256 */ Tcookie4 + var _ /* f at bp+272 */ TFILE + _, _ = r, v1 + **(**Tcookie4)(__ccgo_up(bp + 256)) = Tcookie4{ + Fws: s, + Fl: n - uint64(1), + } + **(**TFILE)(__ccgo_up(bp + 272)) = TFILE{ + Fwrite: __ccgo_fp(_sw_write), + Fbuf: bp, + Fbuf_size: uint64(256), + Flock: -int32(1), + Flbf: -int32(1), + Fcookie: bp + 256, + } + if !(n != 0) { + return -int32(1) + } + r = Xvfwprintf(tls, bp+272, fmt, ap) + _sw_write(tls, bp+272, uintptr(0), uint64(0)) + if Uint64FromInt32(r) >= n { + v1 = -int32(1) + } else { + v1 = r + } + return v1 +} + +func _wstring_read(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + bp := tls.Alloc(16) + defer tls.Free(16) + var k Tsize_t + var v1, v2 uintptr + var _ /* src at bp+0 */ uintptr + _, _, _ = k, v1, v2 + **(**uintptr)(__ccgo_up(bp)) = (*TFILE)(unsafe.Pointer(f)).Fcookie + if !(**(**uintptr)(__ccgo_up(bp)) != 0) { + return uint64(0) + } + k = Xwcsrtombs(tls, (*TFILE)(unsafe.Pointer(f)).Fbuf, bp, (*TFILE)(unsafe.Pointer(f)).Fbuf_size, uintptr(0)) + if k == Uint64FromInt32(-Int32FromInt32(1)) { + v1 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Frend = v1 + (*TFILE)(unsafe.Pointer(f)).Frpos = v1 + return uint64(0) + } + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Frend = (*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr(k) + (*TFILE)(unsafe.Pointer(f)).Fcookie = **(**uintptr)(__ccgo_up(bp)) + if !(len1 != 0) || !(k != 0) { + return uint64(0) + } + v2 = f + 8 + v1 = *(*uintptr)(unsafe.Pointer(v2)) + *(*uintptr)(unsafe.Pointer(v2)) = *(*uintptr)(unsafe.Pointer(v2)) + 1 + **(**uint8)(__ccgo_up(buf)) = **(**uint8)(__ccgo_up(v1)) + return uint64(1) +} + +func Xvswscanf(tls *TLS, s uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v ap=%v, (%v:)", tls, s, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(496) + defer tls.Free(496) + var _ /* buf at bp+0 */ [256]uint8 + var _ /* f at bp+256 */ TFILE + **(**TFILE)(__ccgo_up(bp + 256)) = TFILE{ + Fread: __ccgo_fp(_wstring_read), + Fbuf: bp, + Fbuf_size: uint64(256), + Flock: -int32(1), + Fcookie: s, + } + return Xvfwscanf(tls, bp+256, fmt, ap) +} + +func X__isoc99_vswscanf(tls *TLS, s uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v ap=%v, (%v:)", tls, s, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvswscanf(tls, s, fmt, ap) +} + +func Xvwprintf(tls *TLS, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v ap=%v, (%v:)", tls, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvfwprintf(tls, uintptr(unsafe.Pointer(&X__stdout_FILE)), fmt, ap) +} + +func Xvwscanf(tls *TLS, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v ap=%v, (%v:)", tls, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvfwscanf(tls, uintptr(unsafe.Pointer(&X__stdin_FILE)), fmt, ap) +} + +func X__isoc99_vwscanf(tls *TLS, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v ap=%v, (%v:)", tls, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvwscanf(tls, fmt, ap) +} + +func Xwprintf(tls *TLS, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v va=%v, (%v:)", tls, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvwprintf(tls, fmt, ap) + _ = ap + return ret +} + +func Xwscanf(tls *TLS, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v va=%v, (%v:)", tls, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvwscanf(tls, fmt, ap) + _ = ap + return ret +} + +func X__isoc99_wscanf(tls *TLS, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v va=%v, (%v:)", tls, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwscanf(tls, fmt, va) +} + +func Xabs(tls *TLS, a int32) (r int32) { + if __ccgo_strace { + trc("tls=%v a=%v, (%v:)", tls, a, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + _ = v1 + if a > 0 { + v1 = a + } else { + v1 = -a + } + return v1 +} + +func Xatof(tls *TLS, s uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtod(tls, s, uintptr(0)) +} + +func Xatoi(tls *TLS, s uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var n, neg, v1, v2 int32 + var v4 uintptr + _, _, _, _, _ = n, neg, v1, v2, v4 + n = 0 + neg = 0 + for { + v1 = int32(**(**int8)(__ccgo_up(s))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _3 + _3: + if !(v2 != 0) { + break + } + s = s + 1 + } + switch int32(**(**int8)(__ccgo_up(s))) { + case int32('-'): + neg = int32(1) + fallthrough + case int32('+'): + s = s + 1 + } + /* Compute n as a negative number to avoid overflow on INT_MIN */ + for BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(s)))-uint32('0') < uint32(10)) != 0 { + v4 = s + s = s + 1 + n = int32(10)*n - (int32(**(**int8)(__ccgo_up(v4))) - int32('0')) + } + if neg != 0 { + v1 = n + } else { + v1 = -n + } + return v1 +} + +func Xatol(tls *TLS, s uintptr) (r int64) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var n, v5 int64 + var neg, v1, v2 int32 + var v4 uintptr + _, _, _, _, _, _ = n, neg, v1, v2, v4, v5 + n = 0 + neg = 0 + for { + v1 = int32(**(**int8)(__ccgo_up(s))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _3 + _3: + if !(v2 != 0) { + break + } + s = s + 1 + } + switch int32(**(**int8)(__ccgo_up(s))) { + case int32('-'): + neg = int32(1) + fallthrough + case int32('+'): + s = s + 1 + } + /* Compute n as a negative number to avoid overflow on LONG_MIN */ + for BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(s)))-uint32('0') < uint32(10)) != 0 { + v4 = s + s = s + 1 + n = int64(10)*n - int64(int32(**(**int8)(__ccgo_up(v4)))-Int32FromUint8('0')) + } + if neg != 0 { + v5 = n + } else { + v5 = -n + } + return v5 +} + +func Xatoll(tls *TLS, s uintptr) (r int64) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var n, v5 int64 + var neg, v1, v2 int32 + var v4 uintptr + _, _, _, _, _, _ = n, neg, v1, v2, v4, v5 + n = 0 + neg = 0 + for { + v1 = int32(**(**int8)(__ccgo_up(s))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _3 + _3: + if !(v2 != 0) { + break + } + s = s + 1 + } + switch int32(**(**int8)(__ccgo_up(s))) { + case int32('-'): + neg = int32(1) + fallthrough + case int32('+'): + s = s + 1 + } + /* Compute n as a negative number to avoid overflow on LLONG_MIN */ + for BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(s)))-uint32('0') < uint32(10)) != 0 { + v4 = s + s = s + 1 + n = int64(10)*n - int64(int32(**(**int8)(__ccgo_up(v4)))-Int32FromUint8('0')) + } + if neg != 0 { + v5 = n + } else { + v5 = -n + } + return v5 +} + +type t__ccgo_fp__Xbsearch_4 = func(*TLS, uintptr, uintptr) int32 + +func Xbsearch(tls *TLS, key uintptr, base uintptr, nel Tsize_t, width Tsize_t, __ccgo_fp_cmp uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v base=%v nel=%v width=%v __ccgo_fp_cmp=%v, (%v:)", tls, key, base, nel, width, __ccgo_fp_cmp, origin(2)) + defer func() { trc("-> %v", r) }() + } + var sign int32 + var try uintptr + _, _ = sign, try + for nel > uint64(0) { + try = base + uintptr(width*(nel/uint64(2))) + sign = (*(*func(*TLS, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cmp})))(tls, key, try) + if sign < 0 { + nel = nel / uint64(2) + } else { + if sign > 0 { + base = try + uintptr(width) + nel = nel - (nel/uint64(2) + uint64(1)) + } else { + return try + } + } + } + return UintptrFromInt32(0) +} + +func Xdiv(tls *TLS, num int32, den int32) (r Tdiv_t) { + if __ccgo_strace { + trc("tls=%v num=%v den=%v, (%v:)", tls, num, den, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Tdiv_t{ + Fquot: num / den, + Frem: num % den, + } +} + +func Xecvt(tls *TLS, x float64, n int32, dp uintptr, sign uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v dp=%v sign=%v, (%v:)", tls, x, n, dp, sign, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var i, j, v1 int32 + var _ /* tmp at bp+0 */ [32]int8 + _, _, _ = i, j, v1 + if Uint32FromInt32(n)-uint32(1) > uint32(15) { + n = int32(15) + } + Xsprintf(tls, bp, __ccgo_ts+1708, VaList(bp+40, n-int32(1), x)) + v1 = BoolInt32(int32((**(**[32]int8)(__ccgo_up(bp)))[0]) == Int32FromUint8('-')) + **(**int32)(__ccgo_up(sign)) = v1 + i = v1 + j = 0 + for { + if !(int32((**(**[32]int8)(__ccgo_up(bp)))[i]) != int32('e')) { + break + } + _buf8[j] = (**(**[32]int8)(__ccgo_up(bp)))[i] + goto _2 + _2: + ; + v1 = i + i = i + 1 + j = j + BoolInt32(int32((**(**[32]int8)(__ccgo_up(bp)))[v1]) != int32('.')) + } + _buf8[j] = 0 + **(**int32)(__ccgo_up(dp)) = Xatoi(tls, bp+uintptr(i)+uintptr(1)) + int32(1) + return uintptr(unsafe.Pointer(&_buf8)) +} + +var _buf8 [16]int8 + +func Xfcvt(tls *TLS, x float64, n int32, dp uintptr, sign uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v dp=%v sign=%v, (%v:)", tls, x, n, dp, sign, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(1536) + defer tls.Free(1536) + var i, lz int32 + var _ /* tmp at bp+0 */ [1500]int8 + _, _ = i, lz + if Uint32FromInt32(n) > uint32(1400) { + n = int32(1400) + } + Xsprintf(tls, bp, __ccgo_ts+1713, VaList(bp+1512, n, x)) + i = BoolInt32(int32((**(**[1500]int8)(__ccgo_up(bp)))[0]) == int32('-')) + if int32((**(**[1500]int8)(__ccgo_up(bp)))[i]) == int32('0') { + lz = Int32FromUint64(Xstrspn(tls, bp+uintptr(i)+uintptr(2), __ccgo_ts+1681)) + } else { + lz = -Int32FromUint64(Xstrcspn(tls, bp+uintptr(i), __ccgo_ts+575)) + } + if n <= lz { + **(**int32)(__ccgo_up(sign)) = i + **(**int32)(__ccgo_up(dp)) = int32(1) + if Uint32FromInt32(n) > uint32(14) { + n = int32(14) + } + return __ccgo_ts + 1718 + UintptrFromInt32(14) - uintptr(n) + } + return Xecvt(tls, x, n-lz, dp, sign) +} + +func Xgcvt(tls *TLS, x float64, n int32, b uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v b=%v, (%v:)", tls, x, n, b, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + Xsprintf(tls, b, __ccgo_ts+1734, VaList(bp+8, n, x)) + return b +} + +func Ximaxabs(tls *TLS, a Tintmax_t) (r Tintmax_t) { + if __ccgo_strace { + trc("tls=%v a=%v, (%v:)", tls, a, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int64 + _ = v1 + if a > 0 { + v1 = a + } else { + v1 = -a + } + return v1 +} + +func Ximaxdiv(tls *TLS, num Tintmax_t, den Tintmax_t) (r Timaxdiv_t) { + if __ccgo_strace { + trc("tls=%v num=%v den=%v, (%v:)", tls, num, den, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Timaxdiv_t{ + Fquot: num / den, + Frem: num % den, + } +} + +func Xlabs(tls *TLS, a int64) (r int64) { + if __ccgo_strace { + trc("tls=%v a=%v, (%v:)", tls, a, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int64 + _ = v1 + if a > 0 { + v1 = a + } else { + v1 = -a + } + return v1 +} + +func Xldiv(tls *TLS, num int64, den int64) (r Tldiv_t) { + if __ccgo_strace { + trc("tls=%v num=%v den=%v, (%v:)", tls, num, den, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Tldiv_t{ + Fquot: num / den, + Frem: num % den, + } +} + +func Xllabs(tls *TLS, a int64) (r int64) { + if __ccgo_strace { + trc("tls=%v a=%v, (%v:)", tls, a, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int64 + _ = v1 + if a > 0 { + v1 = a + } else { + v1 = -a + } + return v1 +} + +func Xlldiv(tls *TLS, num int64, den int64) (r Tlldiv_t) { + if __ccgo_strace { + trc("tls=%v num=%v den=%v, (%v:)", tls, num, den, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Tlldiv_t{ + Fquot: num / den, + Frem: num % den, + } +} + +type Tcmpfun = uintptr + +func _pntz(tls *TLS, p uintptr) (r1 int32) { + var r, v1 int32 + var v2 bool + _, _, _ = r, v1, v2 + r = _a_ctz_l(tls, **(**Tsize_t)(__ccgo_up(p))-uint64(1)) + if v2 = r != 0; !v2 { + v1 = Int32FromUint64(Uint64FromInt32(8)*Uint64FromInt64(8) + Uint64FromInt32(_a_ctz_l(tls, **(**Tsize_t)(__ccgo_up(p + 1*8))))) + r = v1 + } + if v2 || Uint64FromInt32(v1) != Uint64FromInt32(8)*Uint64FromInt64(8) { + return r + } + return 0 +} + +func _cycle(tls *TLS, width Tsize_t, ar uintptr, n int32) { + bp := tls.Alloc(256) + defer tls.Free(256) + var i int32 + var l Tsize_t + var v1 uint64 + var _ /* tmp at bp+0 */ [256]uint8 + _, _, _ = i, l, v1 + if n < int32(2) { + return + } + **(**uintptr)(__ccgo_up(ar + uintptr(n)*8)) = bp + for width != 0 { + if uint64(256) < width { + v1 = uint64(256) + } else { + v1 = width + } + l = v1 + Xmemcpy(tls, **(**uintptr)(__ccgo_up(ar + uintptr(n)*8)), **(**uintptr)(__ccgo_up(ar)), l) + i = 0 + for { + if !(i < n) { + break + } + Xmemcpy(tls, **(**uintptr)(__ccgo_up(ar + uintptr(i)*8)), **(**uintptr)(__ccgo_up(ar + uintptr(i+int32(1))*8)), l) + **(**uintptr)(__ccgo_up(ar + uintptr(i)*8)) += uintptr(l) + goto _2 + _2: + ; + i = i + 1 + } + width = width - l + } +} + +// C documentation +// +// /* shl() and shr() need n > 0 */ +func _shl(tls *TLS, p uintptr, n int32) { + if Uint64FromInt32(n) >= Uint64FromInt32(8)*Uint64FromInt64(8) { + n = Int32FromUint64(uint64(n) - Uint64FromInt32(8)*Uint64FromInt64(8)) + **(**Tsize_t)(__ccgo_up(p + 1*8)) = **(**Tsize_t)(__ccgo_up(p)) + **(**Tsize_t)(__ccgo_up(p)) = uint64(0) + } + **(**Tsize_t)(__ccgo_up(p + 1*8)) <<= Uint64FromInt32(n) + **(**Tsize_t)(__ccgo_up(p + 1*8)) |= **(**Tsize_t)(__ccgo_up(p)) >> (Uint64FromInt64(8)*Uint64FromInt32(8) - Uint64FromInt32(n)) + **(**Tsize_t)(__ccgo_up(p)) <<= Uint64FromInt32(n) +} + +func _shr(tls *TLS, p uintptr, n int32) { + if Uint64FromInt32(n) >= Uint64FromInt32(8)*Uint64FromInt64(8) { + n = Int32FromUint64(uint64(n) - Uint64FromInt32(8)*Uint64FromInt64(8)) + **(**Tsize_t)(__ccgo_up(p)) = **(**Tsize_t)(__ccgo_up(p + 1*8)) + **(**Tsize_t)(__ccgo_up(p + 1*8)) = uint64(0) + } + **(**Tsize_t)(__ccgo_up(p)) >>= Uint64FromInt32(n) + **(**Tsize_t)(__ccgo_up(p)) |= **(**Tsize_t)(__ccgo_up(p + 1*8)) << (Uint64FromInt64(8)*Uint64FromInt32(8) - Uint64FromInt32(n)) + **(**Tsize_t)(__ccgo_up(p + 1*8)) >>= Uint64FromInt32(n) +} + +func _sift(tls *TLS, head uintptr, width Tsize_t, __ccgo_fp_cmp Tcmpfun, arg uintptr, pshift int32, lp uintptr) { + bp := tls.Alloc(912) + defer tls.Free(912) + var i, v1 int32 + var lf, rt uintptr + var _ /* ar at bp+0 */ [113]uintptr + _, _, _, _ = i, lf, rt, v1 + i = int32(1) + (**(**[113]uintptr)(__ccgo_up(bp)))[0] = head + for pshift > int32(1) { + rt = head - uintptr(width) + lf = head - uintptr(width) - uintptr(**(**Tsize_t)(__ccgo_up(lp + uintptr(pshift-int32(2))*8))) + if (*(*func(*TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cmp})))(tls, (**(**[113]uintptr)(__ccgo_up(bp)))[0], lf, arg) >= 0 && (*(*func(*TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cmp})))(tls, (**(**[113]uintptr)(__ccgo_up(bp)))[0], rt, arg) >= 0 { + break + } + if (*(*func(*TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cmp})))(tls, lf, rt, arg) >= 0 { + v1 = i + i = i + 1 + (**(**[113]uintptr)(__ccgo_up(bp)))[v1] = lf + head = lf + pshift = pshift - int32(1) + } else { + v1 = i + i = i + 1 + (**(**[113]uintptr)(__ccgo_up(bp)))[v1] = rt + head = rt + pshift = pshift - int32(2) + } + } + _cycle(tls, width, bp, i) +} + +func _trinkle(tls *TLS, head uintptr, width Tsize_t, __ccgo_fp_cmp Tcmpfun, arg uintptr, pp uintptr, pshift int32, trusty int32, lp uintptr) { + bp := tls.Alloc(928) + defer tls.Free(928) + var i, trail, v1 int32 + var lf, rt, stepson uintptr + var _ /* ar at bp+16 */ [113]uintptr + var _ /* p at bp+0 */ [2]Tsize_t + _, _, _, _, _, _ = i, lf, rt, stepson, trail, v1 + i = int32(1) + (**(**[2]Tsize_t)(__ccgo_up(bp)))[0] = **(**Tsize_t)(__ccgo_up(pp)) + (**(**[2]Tsize_t)(__ccgo_up(bp)))[int32(1)] = **(**Tsize_t)(__ccgo_up(pp + 1*8)) + (**(**[113]uintptr)(__ccgo_up(bp + 16)))[0] = head + for (**(**[2]Tsize_t)(__ccgo_up(bp)))[0] != uint64(1) || (**(**[2]Tsize_t)(__ccgo_up(bp)))[int32(1)] != uint64(0) { + stepson = head - uintptr(**(**Tsize_t)(__ccgo_up(lp + uintptr(pshift)*8))) + if (*(*func(*TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cmp})))(tls, stepson, (**(**[113]uintptr)(__ccgo_up(bp + 16)))[0], arg) <= 0 { + break + } + if !(trusty != 0) && pshift > int32(1) { + rt = head - uintptr(width) + lf = head - uintptr(width) - uintptr(**(**Tsize_t)(__ccgo_up(lp + uintptr(pshift-int32(2))*8))) + if (*(*func(*TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cmp})))(tls, rt, stepson, arg) >= 0 || (*(*func(*TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cmp})))(tls, lf, stepson, arg) >= 0 { + break + } + } + v1 = i + i = i + 1 + (**(**[113]uintptr)(__ccgo_up(bp + 16)))[v1] = stepson + head = stepson + trail = _pntz(tls, bp) + _shr(tls, bp, trail) + pshift = pshift + trail + trusty = 0 + } + if !(trusty != 0) { + _cycle(tls, width, bp+16, i) + _sift(tls, head, width, __ccgo_fp_cmp, arg, pshift, lp) + } +} + +type t__ccgo_fp__X__qsort_r_3 = func(*TLS, uintptr, uintptr, uintptr) int32 + +func X__qsort_r(tls *TLS, base uintptr, nel Tsize_t, width Tsize_t, __ccgo_fp_cmp Tcmpfun, arg uintptr) { + if __ccgo_strace { + trc("tls=%v base=%v nel=%v width=%v __ccgo_fp_cmp=%v arg=%v, (%v:)", tls, base, nel, width, __ccgo_fp_cmp, arg, origin(2)) + } + bp := tls.Alloc(784) + defer tls.Free(784) + var head, high uintptr + var i, size, v2, v3 Tsize_t + var pshift, trail int32 + var _ /* lp at bp+0 */ [96]Tsize_t + var _ /* p at bp+768 */ [2]Tsize_t + _, _, _, _, _, _, _, _ = head, high, i, pshift, size, trail, v2, v3 + size = width * nel + **(**[2]Tsize_t)(__ccgo_up(bp + 768)) = [2]Tsize_t{ + 0: uint64(1), + } + pshift = int32(1) + if !(size != 0) { + return + } + head = base + high = head + uintptr(size) - uintptr(width) + /* Precompute Leonardo numbers, scaled by element width */ + v2 = width + (**(**[96]Tsize_t)(__ccgo_up(bp)))[int32(1)] = v2 + (**(**[96]Tsize_t)(__ccgo_up(bp)))[0] = v2 + i = Uint64FromInt32(2) + for { + v3 = (**(**[96]Tsize_t)(__ccgo_up(bp)))[i-uint64(2)] + (**(**[96]Tsize_t)(__ccgo_up(bp)))[i-uint64(1)] + width + (**(**[96]Tsize_t)(__ccgo_up(bp)))[i] = v3 + if !(v3 < size) { + break + } + goto _1 + _1: + ; + i = i + 1 + } + for head < high { + if (**(**[2]Tsize_t)(__ccgo_up(bp + 768)))[0]&uint64(3) == uint64(3) { + _sift(tls, head, width, __ccgo_fp_cmp, arg, pshift, bp) + _shr(tls, bp+768, int32(2)) + pshift = pshift + int32(2) + } else { + if (**(**[96]Tsize_t)(__ccgo_up(bp)))[pshift-int32(1)] >= Uint64FromInt64(int64(high)-int64(head)) { + _trinkle(tls, head, width, __ccgo_fp_cmp, arg, bp+768, pshift, 0, bp) + } else { + _sift(tls, head, width, __ccgo_fp_cmp, arg, pshift, bp) + } + if pshift == int32(1) { + _shl(tls, bp+768, int32(1)) + pshift = 0 + } else { + _shl(tls, bp+768, pshift-int32(1)) + pshift = int32(1) + } + } + **(**Tsize_t)(__ccgo_up(bp + 768)) |= uint64(1) + head = head + uintptr(width) + } + _trinkle(tls, head, width, __ccgo_fp_cmp, arg, bp+768, pshift, 0, bp) + for pshift != int32(1) || (**(**[2]Tsize_t)(__ccgo_up(bp + 768)))[0] != uint64(1) || (**(**[2]Tsize_t)(__ccgo_up(bp + 768)))[int32(1)] != uint64(0) { + if pshift <= int32(1) { + trail = _pntz(tls, bp+768) + _shr(tls, bp+768, trail) + pshift = pshift + trail + } else { + _shl(tls, bp+768, int32(2)) + pshift = pshift - int32(2) + **(**Tsize_t)(__ccgo_up(bp + 768)) ^= uint64(7) + _shr(tls, bp+768, int32(1)) + _trinkle(tls, head-uintptr((**(**[96]Tsize_t)(__ccgo_up(bp)))[pshift])-uintptr(width), width, __ccgo_fp_cmp, arg, bp+768, pshift+int32(1), int32(1), bp) + _shl(tls, bp+768, int32(1)) + **(**Tsize_t)(__ccgo_up(bp + 768)) |= uint64(1) + _trinkle(tls, head-uintptr(width), width, __ccgo_fp_cmp, arg, bp+768, pshift, int32(1), bp) + } + head = head - uintptr(width) + } +} + +type t__ccgo_fp__Xqsort_r_3 = func(*TLS, uintptr, uintptr, uintptr) int32 + +func Xqsort_r(tls *TLS, base uintptr, nel Tsize_t, width Tsize_t, __ccgo_fp_cmp Tcmpfun, arg uintptr) { + if __ccgo_strace { + trc("tls=%v base=%v nel=%v width=%v __ccgo_fp_cmp=%v arg=%v, (%v:)", tls, base, nel, width, __ccgo_fp_cmp, arg, origin(2)) + } + X__qsort_r(tls, base, nel, width, __ccgo_fp_cmp, arg) +} + +func _wrapper_cmp(tls *TLS, v1 uintptr, v2 uintptr, cmp uintptr) (r int32) { + return (*(*func(*TLS, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{cmp})))(tls, v1, v2) +} + +type t__ccgo_fp__Xqsort_3 = func(*TLS, uintptr, uintptr) int32 + +func Xqsort(tls *TLS, base uintptr, nel Tsize_t, width Tsize_t, __ccgo_fp_cmp Tcmpfun) { + if __ccgo_strace { + trc("tls=%v base=%v nel=%v width=%v __ccgo_fp_cmp=%v, (%v:)", tls, base, nel, width, __ccgo_fp_cmp, origin(2)) + } + X__qsort_r(tls, base, nel, width, __ccgo_fp(_wrapper_cmp), __ccgo_fp_cmp) +} + +func _strtox(tls *TLS, s uintptr, p uintptr, prec int32) (r float64) { + bp := tls.Alloc(240) + defer tls.Free(240) + var cnt Toff_t + var y float64 + var v1 uintptr + var _ /* f at bp+0 */ TFILE + _, _, _ = cnt, y, v1 + v1 = s + (*TFILE)(unsafe.Pointer(bp)).Frpos = v1 + (*TFILE)(unsafe.Pointer(bp)).Fbuf = v1 + (*TFILE)(unsafe.Pointer(bp)).Frend = uintptr(-Int32FromInt32(1)) + X__shlim(tls, bp, int64(Int32FromInt32(0))) + y = X__floatscan(tls, bp, prec, int32(1)) + cnt = (*TFILE)(unsafe.Pointer(bp)).Fshcnt + (int64((*TFILE)(unsafe.Pointer(bp)).Frpos) - int64((*TFILE)(unsafe.Pointer(bp)).Fbuf)) + if p != 0 { + if cnt != 0 { + v1 = s + uintptr(cnt) + } else { + v1 = s + } + **(**uintptr)(__ccgo_up(p)) = v1 + } + return y +} + +func Xstrtof(tls *TLS, s uintptr, p uintptr) (r float32) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + return float32(_strtox(tls, s, p, 0)) +} + +func Xstrtod(tls *TLS, s uintptr, p uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _strtox(tls, s, p, int32(1)) +} + +func Xstrtold(tls *TLS, s uintptr, p uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _strtox(tls, s, p, int32(2)) +} + +func _strtox1(tls *TLS, s uintptr, p uintptr, base int32, lim uint64) (r uint64) { + bp := tls.Alloc(240) + defer tls.Free(240) + var cnt Tsize_t + var y uint64 + var v1 uintptr + var _ /* f at bp+0 */ TFILE + _, _, _ = cnt, y, v1 + v1 = s + (*TFILE)(unsafe.Pointer(bp)).Frpos = v1 + (*TFILE)(unsafe.Pointer(bp)).Fbuf = v1 + (*TFILE)(unsafe.Pointer(bp)).Frend = uintptr(-Int32FromInt32(1)) + X__shlim(tls, bp, int64(Int32FromInt32(0))) + y = X__intscan(tls, bp, Uint32FromInt32(base), int32(1), lim) + if p != 0 { + cnt = Uint64FromInt64((*TFILE)(unsafe.Pointer(bp)).Fshcnt + (int64((*TFILE)(unsafe.Pointer(bp)).Frpos) - int64((*TFILE)(unsafe.Pointer(bp)).Fbuf))) + **(**uintptr)(__ccgo_up(p)) = s + uintptr(cnt) + } + return y +} + +func Xstrtoull(tls *TLS, s uintptr, p uintptr, base int32) (r uint64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _strtox1(tls, s, p, base, Uint64FromUint64(2)*Uint64FromInt64(0x7fffffffffffffff)+Uint64FromInt32(1)) +} + +func Xstrtoll(tls *TLS, s uintptr, p uintptr, base int32) (r int64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Int64FromUint64(_strtox1(tls, s, p, base, Uint64FromInt64(-Int64FromInt64(0x7fffffffffffffff)-Int64FromInt32(1)))) +} + +func Xstrtoul(tls *TLS, s uintptr, p uintptr, base int32) (r uint64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _strtox1(tls, s, p, base, uint64(Uint64FromUint64(2)*Uint64FromInt64(0x7fffffffffffffff)+Uint64FromInt32(1))) +} + +func Xstrtol(tls *TLS, s uintptr, p uintptr, base int32) (r int64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Int64FromUint64(_strtox1(tls, s, p, base, uint64(Uint64FromUint64(0)+Uint64FromInt64(-Int64FromInt64(0x7fffffffffffffff)-Int64FromInt32(1))))) +} + +func Xstrtoimax(tls *TLS, s uintptr, p uintptr, base int32) (r Tintmax_t) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtoll(tls, s, p, base) +} + +func Xstrtoumax(tls *TLS, s uintptr, p uintptr, base int32) (r Tuintmax_t) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtoull(tls, s, p, base) +} + +func X__strtoimax_internal(tls *TLS, s uintptr, p uintptr, base int32) (r Tintmax_t) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtoimax(tls, s, p, base) +} + +func X__strtol_internal(tls *TLS, s uintptr, p uintptr, base int32) (r int64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtol(tls, s, p, base) +} + +func X__strtoll_internal(tls *TLS, s uintptr, p uintptr, base int32) (r int64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtoll(tls, s, p, base) +} + +func X__strtoul_internal(tls *TLS, s uintptr, p uintptr, base int32) (r uint64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtoul(tls, s, p, base) +} + +func X__strtoull_internal(tls *TLS, s uintptr, p uintptr, base int32) (r uint64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtoull(tls, s, p, base) +} + +func X__strtoumax_internal(tls *TLS, s uintptr, p uintptr, base int32) (r Tuintmax_t) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtoumax(tls, s, p, base) +} + +/* This read function heavily cheats. It knows: + * (1) len will always be 1 + * (2) non-ascii characters don't matter */ + +func _do_read(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + var i Tsize_t + var wcs, v3, v4 uintptr + var v2 int32 + _, _, _, _, _ = i, wcs, v2, v3, v4 + wcs = (*TFILE)(unsafe.Pointer(f)).Fcookie + if !(**(**Twchar_t)(__ccgo_up(wcs)) != 0) { + wcs = __ccgo_ts + 1739 + } + i = uint64(0) + for { + if !(i < (*TFILE)(unsafe.Pointer(f)).Fbuf_size && **(**Twchar_t)(__ccgo_up(wcs + uintptr(i)*4)) != 0) { + break + } + if **(**Twchar_t)(__ccgo_up(wcs + uintptr(i)*4)) < int32(128) { + v2 = **(**Twchar_t)(__ccgo_up(wcs + uintptr(i)*4)) + } else { + v2 = int32('@') + } + **(**uint8)(__ccgo_up((*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr(i))) = Uint8FromInt32(v2) + goto _1 + _1: + ; + i = i + 1 + } + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Frend = (*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr(i) + (*TFILE)(unsafe.Pointer(f)).Fcookie = wcs + uintptr(i)*4 + if i != 0 && len1 != 0 { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + **(**uint8)(__ccgo_up(buf)) = **(**uint8)(__ccgo_up(v3)) + return uint64(1) + } + return uint64(0) +} + +func _wcstox(tls *TLS, s uintptr, p uintptr, prec int32) (r float64) { + bp := tls.Alloc(304) + defer tls.Free(304) + var cnt Tsize_t + var t, v1, v2 uintptr + var y float64 + var _ /* buf at bp+0 */ [64]uint8 + var _ /* f at bp+64 */ TFILE + _, _, _, _, _ = cnt, t, y, v1, v2 + t = s + **(**TFILE)(__ccgo_up(bp + 64)) = TFILE{} + (**(**TFILE)(__ccgo_up(bp + 64))).Fflags = uint32(0) + v2 = bp + UintptrFromInt32(4) + (**(**TFILE)(__ccgo_up(bp + 64))).Fbuf = v2 + v1 = v2 + (**(**TFILE)(__ccgo_up(bp + 64))).Frend = v1 + (**(**TFILE)(__ccgo_up(bp + 64))).Frpos = v1 + (**(**TFILE)(__ccgo_up(bp + 64))).Fbuf_size = Uint64FromInt64(64) - Uint64FromInt32(4) + AtomicStorePInt32(bp+64+140, -int32(1)) + (**(**TFILE)(__ccgo_up(bp + 64))).Fread = __ccgo_fp(_do_read) + for Xiswspace(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(t)))) != 0 { + t += 4 + } + (**(**TFILE)(__ccgo_up(bp + 64))).Fcookie = t + X__shlim(tls, bp+64, int64(Int32FromInt32(0))) + y = X__floatscan(tls, bp+64, prec, int32(1)) + if p != 0 { + cnt = Uint64FromInt64((*TFILE)(unsafe.Pointer(bp+64)).Fshcnt + (int64((*TFILE)(unsafe.Pointer(bp+64)).Frpos) - int64((*TFILE)(unsafe.Pointer(bp+64)).Fbuf))) + if cnt != 0 { + v1 = t + uintptr(cnt)*4 + } else { + v1 = s + } + **(**uintptr)(__ccgo_up(p)) = v1 + } + return y +} + +func Xwcstof(tls *TLS, s uintptr, p uintptr) (r float32) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + return float32(_wcstox(tls, s, p, 0)) +} + +func Xwcstod(tls *TLS, s uintptr, p uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _wcstox(tls, s, p, int32(1)) +} + +func Xwcstold(tls *TLS, s uintptr, p uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _wcstox(tls, s, p, int32(2)) +} + +/* This read function heavily cheats. It knows: + * (1) len will always be 1 + * (2) non-ascii characters don't matter */ + +func _do_read1(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + var i Tsize_t + var wcs, v3, v4 uintptr + var v2 int32 + _, _, _, _, _ = i, wcs, v2, v3, v4 + wcs = (*TFILE)(unsafe.Pointer(f)).Fcookie + if !(**(**Twchar_t)(__ccgo_up(wcs)) != 0) { + wcs = __ccgo_ts + 1739 + } + i = uint64(0) + for { + if !(i < (*TFILE)(unsafe.Pointer(f)).Fbuf_size && **(**Twchar_t)(__ccgo_up(wcs + uintptr(i)*4)) != 0) { + break + } + if **(**Twchar_t)(__ccgo_up(wcs + uintptr(i)*4)) < int32(128) { + v2 = **(**Twchar_t)(__ccgo_up(wcs + uintptr(i)*4)) + } else { + v2 = int32('@') + } + **(**uint8)(__ccgo_up((*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr(i))) = Uint8FromInt32(v2) + goto _1 + _1: + ; + i = i + 1 + } + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Frend = (*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr(i) + (*TFILE)(unsafe.Pointer(f)).Fcookie = wcs + uintptr(i)*4 + if i != 0 && len1 != 0 { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + **(**uint8)(__ccgo_up(buf)) = **(**uint8)(__ccgo_up(v3)) + return uint64(1) + } + return uint64(0) +} + +func _wcstox1(tls *TLS, s uintptr, p uintptr, base int32, lim uint64) (r uint64) { + bp := tls.Alloc(304) + defer tls.Free(304) + var cnt Tsize_t + var t, v1, v2 uintptr + var y uint64 + var _ /* buf at bp+0 */ [64]uint8 + var _ /* f at bp+64 */ TFILE + _, _, _, _, _ = cnt, t, y, v1, v2 + t = s + **(**TFILE)(__ccgo_up(bp + 64)) = TFILE{} + (**(**TFILE)(__ccgo_up(bp + 64))).Fflags = uint32(0) + v2 = bp + UintptrFromInt32(4) + (**(**TFILE)(__ccgo_up(bp + 64))).Fbuf = v2 + v1 = v2 + (**(**TFILE)(__ccgo_up(bp + 64))).Frend = v1 + (**(**TFILE)(__ccgo_up(bp + 64))).Frpos = v1 + (**(**TFILE)(__ccgo_up(bp + 64))).Fbuf_size = Uint64FromInt64(64) - Uint64FromInt32(4) + AtomicStorePInt32(bp+64+140, -int32(1)) + (**(**TFILE)(__ccgo_up(bp + 64))).Fread = __ccgo_fp(_do_read1) + for Xiswspace(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(t)))) != 0 { + t += 4 + } + (**(**TFILE)(__ccgo_up(bp + 64))).Fcookie = t + X__shlim(tls, bp+64, int64(Int32FromInt32(0))) + y = X__intscan(tls, bp+64, Uint32FromInt32(base), int32(1), lim) + if p != 0 { + cnt = Uint64FromInt64((*TFILE)(unsafe.Pointer(bp+64)).Fshcnt + (int64((*TFILE)(unsafe.Pointer(bp+64)).Frpos) - int64((*TFILE)(unsafe.Pointer(bp+64)).Fbuf))) + if cnt != 0 { + v1 = t + uintptr(cnt)*4 + } else { + v1 = s + } + **(**uintptr)(__ccgo_up(p)) = v1 + } + return y +} + +func Xwcstoull(tls *TLS, s uintptr, p uintptr, base int32) (r uint64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _wcstox1(tls, s, p, base, Uint64FromUint64(2)*Uint64FromInt64(0x7fffffffffffffff)+Uint64FromInt32(1)) +} + +func Xwcstoll(tls *TLS, s uintptr, p uintptr, base int32) (r int64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Int64FromUint64(_wcstox1(tls, s, p, base, Uint64FromInt64(-Int64FromInt64(0x7fffffffffffffff)-Int64FromInt32(1)))) +} + +func Xwcstoul(tls *TLS, s uintptr, p uintptr, base int32) (r uint64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _wcstox1(tls, s, p, base, uint64(Uint64FromUint64(2)*Uint64FromInt64(0x7fffffffffffffff)+Uint64FromInt32(1))) +} + +func Xwcstol(tls *TLS, s uintptr, p uintptr, base int32) (r int64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Int64FromUint64(_wcstox1(tls, s, p, base, uint64(Uint64FromUint64(0)+Uint64FromInt64(-Int64FromInt64(0x7fffffffffffffff)-Int64FromInt32(1))))) +} + +func Xwcstoimax(tls *TLS, s uintptr, p uintptr, base int32) (r Tintmax_t) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwcstoll(tls, s, p, base) +} + +func Xwcstoumax(tls *TLS, s uintptr, p uintptr, base int32) (r Tuintmax_t) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwcstoull(tls, s, p, base) +} + +func Xbcmp(tls *TLS, s1 uintptr, s2 uintptr, n Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v s1=%v s2=%v n=%v, (%v:)", tls, s1, s2, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xmemcmp(tls, s1, s2, n) +} + +func Xbcopy(tls *TLS, s1 uintptr, s2 uintptr, n Tsize_t) { + if __ccgo_strace { + trc("tls=%v s1=%v s2=%v n=%v, (%v:)", tls, s1, s2, n, origin(2)) + } + Xmemmove(tls, s2, s1, n) +} + +func Xbzero(tls *TLS, s uintptr, n Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v, (%v:)", tls, s, n, origin(2)) + } + Xmemset(tls, s, 0, n) +} + +func Xexplicit_bzero(tls *TLS, d uintptr, n Tsize_t) { + if __ccgo_strace { + trc("tls=%v d=%v n=%v, (%v:)", tls, d, n, origin(2)) + } + d = Xmemset(tls, d, 0, n) +} + +func Xindex(tls *TLS, s uintptr, c int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrchr(tls, s, c) +} + +const ALIGN1 = -1 +const HIGHS = 0 +const ONES = 0 + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xmemccpy(tls *TLS, dest uintptr, src uintptr, c int32, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v c=%v n=%v, (%v:)", tls, dest, src, c, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var d, s, wd, ws uintptr + var k Tsize_t + var v2 uint8 + var v3 bool + _, _, _, _, _, _, _ = d, k, s, wd, ws, v2, v3 + d = dest + s = src + c = Int32FromUint8(Uint8FromInt32(c)) + if uint64(s)&(Uint64FromInt64(8)-Uint64FromInt32(1)) == uint64(d)&(Uint64FromInt64(8)-Uint64FromInt32(1)) { + for { + if v3 = uint64(s)&(Uint64FromInt64(8)-Uint64FromInt32(1)) != 0 && n != 0; v3 { + v2 = **(**uint8)(__ccgo_up(s)) + **(**uint8)(__ccgo_up(d)) = v2 + } + if !(v3 && Int32FromUint8(v2) != c) { + break + } + goto _1 + _1: + ; + n = n - 1 + s = s + 1 + d = d + 1 + } + if uint64(s)&(Uint64FromInt64(8)-Uint64FromInt32(1)) != 0 { + goto tail + } + k = Uint64FromInt32(-Int32FromInt32(1)) / Uint64FromInt32(UCHAR_MAX) * Uint64FromInt32(c) + wd = d + ws = s + for { + if !(n >= uint64(8) && !((**(**uint64)(__ccgo_up(ws))^k-Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)) & ^(**(**uint64)(__ccgo_up(ws))^k) & (Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)*Uint64FromInt32(Int32FromInt32(UCHAR_MAX)/Int32FromInt32(2)+Int32FromInt32(1))) != 0)) { + break + } + **(**uint64)(__ccgo_up(wd)) = **(**uint64)(__ccgo_up(ws)) + goto _4 + _4: + ; + n = n - uint64(8) + ws += 8 + wd += 8 + } + d = wd + s = ws + } + for { + if v3 = n != 0; v3 { + v2 = **(**uint8)(__ccgo_up(s)) + **(**uint8)(__ccgo_up(d)) = v2 + } + if !(v3 && Int32FromUint8(v2) != c) { + break + } + goto _5 + _5: + ; + n = n - 1 + s = s + 1 + d = d + 1 + } + goto tail +tail: + ; + if n != 0 { + return d + uintptr(1) + } + return uintptr(0) +} + +const SS = 0 + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xmemchr(tls *TLS, src uintptr, c int32, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v src=%v c=%v n=%v, (%v:)", tls, src, c, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var k Tsize_t + var s, w, v4 uintptr + _, _, _, _ = k, s, w, v4 + s = src + c = Int32FromUint8(Uint8FromInt32(c)) + for { + if !(uint64(s)&(Uint64FromInt64(8)-Uint64FromInt32(1)) != 0 && n != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(s))) != c) { + break + } + goto _1 + _1: + ; + s = s + 1 + n = n - 1 + } + if n != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(s))) != c { + k = Uint64FromInt32(-Int32FromInt32(1)) / Uint64FromInt32(UCHAR_MAX) * Uint64FromInt32(c) + w = s + for { + if !(n >= Uint64FromInt64(8) && !((**(**uint64)(__ccgo_up(w))^k-Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)) & ^(**(**uint64)(__ccgo_up(w))^k) & (Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)*Uint64FromInt32(Int32FromInt32(UCHAR_MAX)/Int32FromInt32(2)+Int32FromInt32(1))) != 0)) { + break + } + goto _2 + _2: + ; + w += 8 + n = n - Uint64FromInt64(8) + } + s = w + } + for { + if !(n != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(s))) != c) { + break + } + goto _3 + _3: + ; + s = s + 1 + n = n - 1 + } + if n != 0 { + v4 = s + } else { + v4 = uintptr(0) + } + return v4 +} + +func Xmemcmp(tls *TLS, vl uintptr, vr uintptr, n Tsize_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v vl=%v vr=%v n=%v, (%v:)", tls, vl, vr, n, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var l, r uintptr + var v2 int32 + _, _, _ = l, r, v2 + l = vl + r = vr + for { + if !(n != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(l))) == Int32FromUint8(**(**uint8)(__ccgo_up(r)))) { + break + } + goto _1 + _1: + ; + n = n - 1 + l = l + 1 + r = r + 1 + } + if n != 0 { + v2 = Int32FromUint8(**(**uint8)(__ccgo_up(l))) - Int32FromUint8(**(**uint8)(__ccgo_up(r))) + } else { + v2 = 0 + } + return v2 +} + +const LS = 0 +const RS = 0 + +func Xmemcpy(tls *TLS, dest uintptr, src uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v n=%v, (%v:)", tls, dest, src, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var d, s, v2, v3 uintptr + var w, x Tuint32_t + _, _, _, _, _, _ = d, s, w, x, v2, v3 + d = dest + s = src + for { + if !(uint64(s)%uint64(4) != 0 && n != 0) { + break + } + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + goto _1 + _1: + ; + n = n - 1 + } + if uint64(d)%uint64(4) == uint64(0) { + for { + if !(n >= uint64(16)) { + break + } + **(**uint32)(__ccgo_up(d + UintptrFromInt32(0))) = **(**uint32)(__ccgo_up(s + UintptrFromInt32(0))) + **(**uint32)(__ccgo_up(d + UintptrFromInt32(4))) = **(**uint32)(__ccgo_up(s + UintptrFromInt32(4))) + **(**uint32)(__ccgo_up(d + UintptrFromInt32(8))) = **(**uint32)(__ccgo_up(s + UintptrFromInt32(8))) + **(**uint32)(__ccgo_up(d + UintptrFromInt32(12))) = **(**uint32)(__ccgo_up(s + UintptrFromInt32(12))) + goto _4 + _4: + ; + s = s + uintptr(16) + d = d + uintptr(16) + n = n - uint64(16) + } + if n&uint64(8) != 0 { + **(**uint32)(__ccgo_up(d + UintptrFromInt32(0))) = **(**uint32)(__ccgo_up(s + UintptrFromInt32(0))) + **(**uint32)(__ccgo_up(d + UintptrFromInt32(4))) = **(**uint32)(__ccgo_up(s + UintptrFromInt32(4))) + d = d + uintptr(8) + s = s + uintptr(8) + } + if n&uint64(4) != 0 { + **(**uint32)(__ccgo_up(d + UintptrFromInt32(0))) = **(**uint32)(__ccgo_up(s + UintptrFromInt32(0))) + d = d + uintptr(4) + s = s + uintptr(4) + } + if n&uint64(2) != 0 { + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + } + if n&uint64(1) != 0 { + **(**uint8)(__ccgo_up(d)) = **(**uint8)(__ccgo_up(s)) + } + return dest + } + if n >= uint64(32) { + switch uint64(d) % Uint64FromInt32(4) { + case uint64(1): + w = **(**uint32)(__ccgo_up(s)) + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + n = n - uint64(3) + for { + if !(n >= uint64(17)) { + break + } + x = **(**uint32)(__ccgo_up(s + UintptrFromInt32(1))) + **(**uint32)(__ccgo_up(d + UintptrFromInt32(0))) = w>>Int32FromInt32(24) | x<>Int32FromInt32(24) | w<>Int32FromInt32(24) | x<>Int32FromInt32(24) | w<= uint64(18)) { + break + } + x = **(**uint32)(__ccgo_up(s + UintptrFromInt32(2))) + **(**uint32)(__ccgo_up(d + UintptrFromInt32(0))) = w>>Int32FromInt32(16) | x<>Int32FromInt32(16) | w<>Int32FromInt32(16) | x<>Int32FromInt32(16) | w<= uint64(19)) { + break + } + x = **(**uint32)(__ccgo_up(s + UintptrFromInt32(3))) + **(**uint32)(__ccgo_up(d + UintptrFromInt32(0))) = w>>Int32FromInt32(8) | x<>Int32FromInt32(8) | w<>Int32FromInt32(8) | x<>Int32FromInt32(8) | w< Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(jp+k)))) { + jp = jp + k + k = uint64(1) + p = jp - ip + } else { + v2 = jp + jp = jp + 1 + ip = v2 + v2 = Uint64FromInt32(1) + p = v2 + k = v2 + } + } + } + ms = ip + p0 = p + /* And with the opposite comparison */ + ip = Uint64FromInt32(-Int32FromInt32(1)) + jp = uint64(0) + v2 = Uint64FromInt32(1) + p = v2 + k = v2 + for jp+k < l { + if Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(ip+k)))) == Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(jp+k)))) { + if k == p { + jp = jp + p + k = uint64(1) + } else { + k = k + 1 + } + } else { + if Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(ip+k)))) < Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(jp+k)))) { + jp = jp + k + k = uint64(1) + p = jp - ip + } else { + v2 = jp + jp = jp + 1 + ip = v2 + v2 = Uint64FromInt32(1) + p = v2 + k = v2 + } + } + } + if ip+uint64(1) > ms+uint64(1) { + ms = ip + } else { + p = p0 + } + /* Periodic needle? */ + if Xmemcmp(tls, n, n+uintptr(p), ms+uint64(1)) != 0 { + mem0 = uint64(0) + if ms > l-ms-uint64(1) { + v8 = ms + } else { + v8 = l - ms - uint64(1) + } + p = v8 + uint64(1) + } else { + mem0 = l - p + } + mem = uint64(0) + /* Search loop */ + for { + /* If remainder of haystack is shorter than needle, done */ + if Uint64FromInt64(int64(z)-int64(h)) < l { + return uintptr(0) + } + /* Check last byte first; advance by shift on mismatch */ + if (**(**[4]Tsize_t)(__ccgo_up(bp)))[uint64(**(**uint8)(__ccgo_up(h + uintptr(l-uint64(1)))))/(Uint64FromInt32(8)*Uint64FromInt64(8))]&(Uint64FromInt32(1)<<(uint64(**(**uint8)(__ccgo_up(h + uintptr(l-uint64(1)))))%(Uint64FromInt32(8)*Uint64FromInt64(8)))) != 0 { + k = l - shift[**(**uint8)(__ccgo_up(h + uintptr(l-uint64(1))))] + if k != 0 { + if k < mem { + k = mem + } + h = h + uintptr(k) + mem = uint64(0) + goto _9 + } + } else { + h = h + uintptr(l) + mem = uint64(0) + goto _9 + } + /* Compare right half */ + if ms+uint64(1) > mem { + v8 = ms + uint64(1) + } else { + v8 = mem + } + k = v8 + for { + if !(k < l && Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(k)))) == Int32FromUint8(**(**uint8)(__ccgo_up(h + uintptr(k))))) { + break + } + goto _10 + _10: + ; + k = k + 1 + } + if k < l { + h = h + uintptr(k-ms) + mem = uint64(0) + goto _9 + } + /* Compare left half */ + k = ms + uint64(1) + for { + if !(k > mem && Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(k-uint64(1))))) == Int32FromUint8(**(**uint8)(__ccgo_up(h + uintptr(k-uint64(1)))))) { + break + } + goto _12 + _12: + ; + k = k - 1 + } + if k <= mem { + return h + } + h = h + uintptr(p) + mem = mem0 + goto _9 + _9: + } + return r +} + +func Xmemmem(tls *TLS, h0 uintptr, k Tsize_t, n0 uintptr, l Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v h0=%v k=%v n0=%v l=%v, (%v:)", tls, h0, k, n0, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + var h, n uintptr + _, _ = h, n + h = h0 + n = n0 + /* Return immediately on empty needle */ + if !(l != 0) { + return h + } + /* Return immediately when needle is longer than haystack */ + if k < l { + return uintptr(0) + } + /* Use faster algorithms for short needles */ + h = Xmemchr(tls, h0, Int32FromUint8(**(**uint8)(__ccgo_up(n))), k) + if !(h != 0) || l == uint64(1) { + return h + } + k = k - Uint64FromInt64(int64(h)-int64(h0)) + if k < l { + return uintptr(0) + } + if l == uint64(2) { + return _twobyte_memmem(tls, h, k, n) + } + if l == uint64(3) { + return _threebyte_memmem(tls, h, k, n) + } + if l == uint64(4) { + return _fourbyte_memmem(tls, h, k, n) + } + return _twoway_memmem(tls, h, h+uintptr(k), n, l) +} + +const WS = 0 + +type TWT = uint64 + +func Xmemmove(tls *TLS, dest uintptr, src uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v n=%v, (%v:)", tls, dest, src, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var d, s, v2, v3 uintptr + var v1 Tsize_t + _, _, _, _, _ = d, s, v1, v2, v3 + d = dest + s = src + if d == s { + return d + } + if uint64(s)-uint64(d)-n <= Uint64FromInt32(-Int32FromInt32(2))*n { + return Xmemcpy(tls, d, s, n) + } + if d < s { + if uint64(s)%Uint64FromInt64(8) == uint64(d)%Uint64FromInt64(8) { + for uint64(d)%Uint64FromInt64(8) != 0 { + v1 = n + n = n - 1 + if !(v1 != 0) { + return dest + } + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**int8)(__ccgo_up(v2)) = **(**int8)(__ccgo_up(v3)) + } + for { + if !(n >= Uint64FromInt64(8)) { + break + } + **(**TWT)(__ccgo_up(d)) = **(**TWT)(__ccgo_up(s)) + goto _4 + _4: + ; + n = n - Uint64FromInt64(8) + d = d + uintptr(Uint64FromInt64(8)) + s = s + uintptr(Uint64FromInt64(8)) + } + } + for { + if !(n != 0) { + break + } + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**int8)(__ccgo_up(v2)) = **(**int8)(__ccgo_up(v3)) + goto _5 + _5: + ; + n = n - 1 + } + } else { + if uint64(s)%Uint64FromInt64(8) == uint64(d)%Uint64FromInt64(8) { + for uint64(d+uintptr(n))%Uint64FromInt64(8) != 0 { + v1 = n + n = n - 1 + if !(v1 != 0) { + return dest + } + **(**int8)(__ccgo_up(d + uintptr(n))) = **(**int8)(__ccgo_up(s + uintptr(n))) + } + for n >= Uint64FromInt64(8) { + n = n - Uint64FromInt64(8) + **(**TWT)(__ccgo_up(d + uintptr(n))) = **(**TWT)(__ccgo_up(s + uintptr(n))) + } + } + for n != 0 { + n = n - 1 + **(**int8)(__ccgo_up(d + uintptr(n))) = **(**int8)(__ccgo_up(s + uintptr(n))) + } + } + return dest +} + +func Xmempcpy(tls *TLS, dest uintptr, src uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v n=%v, (%v:)", tls, dest, src, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xmemcpy(tls, dest, src, n) + uintptr(n) +} + +func X__memrchr(tls *TLS, m uintptr, c int32, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v m=%v c=%v n=%v, (%v:)", tls, m, c, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var s uintptr + var v1 Tsize_t + _, _ = s, v1 + s = m + c = Int32FromUint8(Uint8FromInt32(c)) + for { + v1 = n + n = n - 1 + if !(v1 != 0) { + break + } + if Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(n)))) == c { + return s + uintptr(n) + } + } + return uintptr(0) +} + +func Xmemrchr(tls *TLS, m uintptr, c int32, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v m=%v c=%v n=%v, (%v:)", tls, m, c, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__memrchr(tls, m, c, n) +} + +func Xmemset(tls *TLS, dest uintptr, c int32, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v dest=%v c=%v n=%v, (%v:)", tls, dest, c, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var c32 uint32 + var c64 uint64 + var k Tsize_t + var s uintptr + _, _, _, _ = c32, c64, k, s + s = dest + /* Fill head and tail with minimal branching. Each + * conditional ensures that all the subsequently used + * offsets are well-defined and in the dest region. */ + if !(n != 0) { + return dest + } + **(**uint8)(__ccgo_up(s)) = Uint8FromInt32(c) + **(**uint8)(__ccgo_up(s + uintptr(n-uint64(1)))) = Uint8FromInt32(c) + if n <= uint64(2) { + return dest + } + **(**uint8)(__ccgo_up(s + 1)) = Uint8FromInt32(c) + **(**uint8)(__ccgo_up(s + 2)) = Uint8FromInt32(c) + **(**uint8)(__ccgo_up(s + uintptr(n-uint64(2)))) = Uint8FromInt32(c) + **(**uint8)(__ccgo_up(s + uintptr(n-uint64(3)))) = Uint8FromInt32(c) + if n <= uint64(6) { + return dest + } + **(**uint8)(__ccgo_up(s + 3)) = Uint8FromInt32(c) + **(**uint8)(__ccgo_up(s + uintptr(n-uint64(4)))) = Uint8FromInt32(c) + if n <= uint64(8) { + return dest + } + /* Advance pointer to align it at a 4-byte boundary, + * and truncate n to a multiple of 4. The previous code + * already took care of any head/tail that get cut off + * by the alignment. */ + k = -uint64(s) & uint64(3) + s = s + uintptr(k) + n = n - k + n = n & Uint64FromInt32(-Int32FromInt32(4)) + c32 = Uint32FromInt32(-Int32FromInt32(1)) / Uint32FromInt32(255) * uint32(Uint8FromInt32(c)) + /* In preparation to copy 32 bytes at a time, aligned on + * an 8-byte bounary, fill head/tail up to 28 bytes each. + * As in the initial byte-based head/tail fill, each + * conditional below ensures that the subsequent offsets + * are valid (e.g. !(n<=24) implies n>=28). */ + **(**uint32)(__ccgo_up(s + UintptrFromInt32(0))) = c32 + **(**uint32)(__ccgo_up(s + uintptr(n) - UintptrFromInt32(4))) = c32 + if n <= uint64(8) { + return dest + } + **(**uint32)(__ccgo_up(s + UintptrFromInt32(4))) = c32 + **(**uint32)(__ccgo_up(s + UintptrFromInt32(8))) = c32 + **(**uint32)(__ccgo_up(s + uintptr(n) - UintptrFromInt32(12))) = c32 + **(**uint32)(__ccgo_up(s + uintptr(n) - UintptrFromInt32(8))) = c32 + if n <= uint64(24) { + return dest + } + **(**uint32)(__ccgo_up(s + UintptrFromInt32(12))) = c32 + **(**uint32)(__ccgo_up(s + UintptrFromInt32(16))) = c32 + **(**uint32)(__ccgo_up(s + UintptrFromInt32(20))) = c32 + **(**uint32)(__ccgo_up(s + UintptrFromInt32(24))) = c32 + **(**uint32)(__ccgo_up(s + uintptr(n) - UintptrFromInt32(28))) = c32 + **(**uint32)(__ccgo_up(s + uintptr(n) - UintptrFromInt32(24))) = c32 + **(**uint32)(__ccgo_up(s + uintptr(n) - UintptrFromInt32(20))) = c32 + **(**uint32)(__ccgo_up(s + uintptr(n) - UintptrFromInt32(16))) = c32 + /* Align to a multiple of 8 so we can fill 64 bits at a time, + * and avoid writing the same bytes twice as much as is + * practical without introducing additional branching. */ + k = uint64(24) + uint64(s)&uint64(4) + s = s + uintptr(k) + n = n - k + /* If this loop is reached, 28 tail bytes have already been + * filled, so any remainder when n drops below 32 can be + * safely ignored. */ + c64 = uint64(c32) | uint64(c32)<= uint64(32)) { + break + } + **(**uint64)(__ccgo_up(s + UintptrFromInt32(0))) = c64 + **(**uint64)(__ccgo_up(s + UintptrFromInt32(8))) = c64 + **(**uint64)(__ccgo_up(s + UintptrFromInt32(16))) = c64 + **(**uint64)(__ccgo_up(s + UintptrFromInt32(24))) = c64 + goto _1 + _1: + ; + n = n - uint64(32) + s = s + uintptr(32) + } + return dest +} + +func Xrindex(tls *TLS, s uintptr, c int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrrchr(tls, s, c) +} + +const ALIGN2 = 0 + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func X__stpcpy(tls *TLS, d uintptr, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v, (%v:)", tls, d, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var wd, ws, v4, v5 uintptr + var v2 int8 + _, _, _, _, _ = wd, ws, v2, v4, v5 + if uint64(s)%Uint64FromInt64(8) == uint64(d)%Uint64FromInt64(8) { + for { + if !(uint64(s)%Uint64FromInt64(8) != 0) { + break + } + v2 = **(**int8)(__ccgo_up(s)) + **(**int8)(__ccgo_up(d)) = v2 + if !(v2 != 0) { + return d + } + goto _1 + _1: + ; + s = s + 1 + d = d + 1 + } + wd = d + ws = s + for { + if !!((**(**uint64)(__ccgo_up(ws))-Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)) & ^**(**uint64)(__ccgo_up(ws)) & (Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)*Uint64FromInt32(Int32FromInt32(UCHAR_MAX)/Int32FromInt32(2)+Int32FromInt32(1))) != 0) { + break + } + goto _3 + _3: + ; + v4 = wd + wd += 8 + v5 = ws + ws += 8 + **(**uint64)(__ccgo_up(v4)) = **(**uint64)(__ccgo_up(v5)) + } + d = wd + s = ws + } + for { + v2 = **(**int8)(__ccgo_up(s)) + **(**int8)(__ccgo_up(d)) = v2 + if !(v2 != 0) { + break + } + goto _6 + _6: + ; + s = s + 1 + d = d + 1 + } + return d +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xstpcpy(tls *TLS, d uintptr, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v, (%v:)", tls, d, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__stpcpy(tls, d, s) +} + +const ALIGN3 = -1 + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func X__stpncpy(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var wd, ws uintptr + var v2 int8 + var v3 bool + _, _, _, _ = wd, ws, v2, v3 + if uint64(s)&(Uint64FromInt64(8)-Uint64FromInt32(1)) == uint64(d)&(Uint64FromInt64(8)-Uint64FromInt32(1)) { + for { + if v3 = uint64(s)&(Uint64FromInt64(8)-Uint64FromInt32(1)) != 0 && n != 0; v3 { + v2 = **(**int8)(__ccgo_up(s)) + **(**int8)(__ccgo_up(d)) = v2 + } + if !(v3 && v2 != 0) { + break + } + goto _1 + _1: + ; + n = n - 1 + s = s + 1 + d = d + 1 + } + if !(n != 0) || !(**(**int8)(__ccgo_up(s)) != 0) { + goto tail + } + wd = d + ws = s + for { + if !(n >= uint64(8) && !((**(**uint64)(__ccgo_up(ws))-Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)) & ^**(**uint64)(__ccgo_up(ws)) & (Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)*Uint64FromInt32(Int32FromInt32(UCHAR_MAX)/Int32FromInt32(2)+Int32FromInt32(1))) != 0)) { + break + } + **(**uint64)(__ccgo_up(wd)) = **(**uint64)(__ccgo_up(ws)) + goto _4 + _4: + ; + n = n - uint64(8) + ws += 8 + wd += 8 + } + d = wd + s = ws + } + for { + if v3 = n != 0; v3 { + v2 = **(**int8)(__ccgo_up(s)) + **(**int8)(__ccgo_up(d)) = v2 + } + if !(v3 && v2 != 0) { + break + } + goto _5 + _5: + ; + n = n - 1 + s = s + 1 + d = d + 1 + } + goto tail +tail: + ; + Xmemset(tls, d, 0, n) + return d +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xstpncpy(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__stpncpy(tls, d, s, n) +} + +func Xstrcasecmp(tls *TLS, _l uintptr, _r uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v _l=%v _r=%v, (%v:)", tls, _l, _r, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var l, r uintptr + _, _ = l, r + l = _l + r = _r + for { + if !(**(**uint8)(__ccgo_up(l)) != 0 && **(**uint8)(__ccgo_up(r)) != 0 && (Int32FromUint8(**(**uint8)(__ccgo_up(l))) == Int32FromUint8(**(**uint8)(__ccgo_up(r))) || Xtolower(tls, Int32FromUint8(**(**uint8)(__ccgo_up(l)))) == Xtolower(tls, Int32FromUint8(**(**uint8)(__ccgo_up(r)))))) { + break + } + goto _1 + _1: + ; + l = l + 1 + r = r + 1 + } + return Xtolower(tls, Int32FromUint8(**(**uint8)(__ccgo_up(l)))) - Xtolower(tls, Int32FromUint8(**(**uint8)(__ccgo_up(r)))) +} + +func X__strcasecmp_l(tls *TLS, l uintptr, r uintptr, loc Tlocale_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v loc=%v, (%v:)", tls, l, r, loc, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return Xstrcasecmp(tls, l, r) +} + +func Xstrcasecmp_l(tls *TLS, l uintptr, r uintptr, loc Tlocale_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v loc=%v, (%v:)", tls, l, r, loc, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return X__strcasecmp_l(tls, l, r, loc) +} + +func Xstrcasestr(tls *TLS, h uintptr, n uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v h=%v n=%v, (%v:)", tls, h, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l Tsize_t + _ = l + l = _strlen(tls, n) + for { + if !(**(**int8)(__ccgo_up(h)) != 0) { + break + } + if !(Xstrncasecmp(tls, h, n, l) != 0) { + return h + } + goto _1 + _1: + ; + h = h + 1 + } + return uintptr(0) +} + +func Xstrcat(tls *TLS, dest uintptr, src uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v, (%v:)", tls, dest, src, origin(2)) + defer func() { trc("-> %v", r) }() + } + Xstrcpy(tls, dest+uintptr(_strlen(tls, dest)), src) + return dest +} + +func Xstrchr(tls *TLS, s uintptr, c int32) (r1 uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v1 uintptr + _, _ = r, v1 + r = X__strchrnul(tls, s, c) + if Int32FromUint8(**(**uint8)(__ccgo_up(r))) == Int32FromUint8(Uint8FromInt32(c)) { + v1 = r + } else { + v1 = uintptr(0) + } + return v1 +} + +const ALIGN4 = 0 + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func X__strchrnul(tls *TLS, s uintptr, c int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + var k Tsize_t + var w uintptr + _, _ = k, w + c = Int32FromUint8(Uint8FromInt32(c)) + if !(c != 0) { + return s + uintptr(_strlen(tls, s)) + } + for { + if !(uint64(s)%Uint64FromInt64(8) != 0) { + break + } + if !(**(**int8)(__ccgo_up(s)) != 0) || Int32FromUint8(**(**uint8)(__ccgo_up(s))) == c { + return s + } + goto _1 + _1: + ; + s = s + 1 + } + k = Uint64FromInt32(-Int32FromInt32(1)) / Uint64FromInt32(UCHAR_MAX) * Uint64FromInt32(c) + w = s + for { + if !(!((**(**uint64)(__ccgo_up(w))-Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)) & ^**(**uint64)(__ccgo_up(w)) & (Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)*Uint64FromInt32(Int32FromInt32(UCHAR_MAX)/Int32FromInt32(2)+Int32FromInt32(1))) != 0) && !((**(**uint64)(__ccgo_up(w))^k-Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)) & ^(**(**uint64)(__ccgo_up(w))^k) & (Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)*Uint64FromInt32(Int32FromInt32(UCHAR_MAX)/Int32FromInt32(2)+Int32FromInt32(1))) != 0)) { + break + } + goto _2 + _2: + ; + w += 8 + } + s = w + for { + if !(**(**int8)(__ccgo_up(s)) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(s))) != c) { + break + } + goto _3 + _3: + ; + s = s + 1 + } + return s +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xstrchrnul(tls *TLS, s uintptr, c int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__strchrnul(tls, s, c) +} + +func Xstrcmp(tls *TLS, l uintptr, r uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v, (%v:)", tls, l, r, origin(2)) + defer func() { trc("-> %v", r1) }() + } + for { + if !(int32(**(**int8)(__ccgo_up(l))) == int32(**(**int8)(__ccgo_up(r))) && **(**int8)(__ccgo_up(l)) != 0) { + break + } + goto _1 + _1: + ; + l = l + 1 + r = r + 1 + } + return Int32FromUint8(**(**uint8)(__ccgo_up(l))) - Int32FromUint8(**(**uint8)(__ccgo_up(r))) +} + +func Xstrcpy(tls *TLS, dest uintptr, src uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v, (%v:)", tls, dest, src, origin(2)) + defer func() { trc("-> %v", r) }() + } + X__stpcpy(tls, dest, src) + return dest +} + +func Xstrcspn(tls *TLS, s uintptr, c uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var a, v2 uintptr + var v3 bool + var _ /* byteset at bp+0 */ [4]Tsize_t + _, _, _ = a, v2, v3 + a = s + if !(**(**int8)(__ccgo_up(c)) != 0) || !(**(**int8)(__ccgo_up(c + 1)) != 0) { + return Uint64FromInt64(int64(X__strchrnul(tls, s, int32(**(**int8)(__ccgo_up(c))))) - int64(a)) + } + Xmemset(tls, bp, 0, uint64(32)) + for { + if v3 = **(**int8)(__ccgo_up(c)) != 0; v3 { + v2 = bp + uintptr(uint64(**(**uint8)(__ccgo_up(c)))/(Uint64FromInt32(8)*Uint64FromInt64(8)))*8 + *(*Tsize_t)(unsafe.Pointer(v2)) |= Uint64FromInt32(1) << (uint64(**(**uint8)(__ccgo_up(c))) % (Uint64FromInt32(8) * Uint64FromInt64(8))) + } + if !(v3 && *(*Tsize_t)(unsafe.Pointer(v2)) != 0) { + break + } + goto _1 + _1: + ; + c = c + 1 + } + for { + if !(**(**int8)(__ccgo_up(s)) != 0 && !((**(**[4]Tsize_t)(__ccgo_up(bp)))[uint64(**(**uint8)(__ccgo_up(s)))/(Uint64FromInt32(8)*Uint64FromInt64(8))]&(Uint64FromInt32(1)<<(uint64(**(**uint8)(__ccgo_up(s)))%(Uint64FromInt32(8)*Uint64FromInt64(8)))) != 0)) { + break + } + goto _4 + _4: + ; + s = s + 1 + } + return Uint64FromInt64(int64(s) - int64(a)) +} + +func Xstrdup(tls *TLS, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var d uintptr + var l Tsize_t + _, _ = d, l + l = _strlen(tls, s) + d = Xmalloc(tls, l+uint64(1)) + if !(d != 0) { + return UintptrFromInt32(0) + } + return Xmemcpy(tls, d, s, l+uint64(1)) +} + +func Xstrerror_r(tls *TLS, err int32, buf uintptr, buflen Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v err=%v buf=%v buflen=%v, (%v:)", tls, err, buf, buflen, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l Tsize_t + var msg uintptr + _, _ = l, msg + msg = Xstrerror(tls, err) + l = _strlen(tls, msg) + if l >= buflen { + if buflen != 0 { + Xmemcpy(tls, buf, msg, buflen-uint64(1)) + **(**int8)(__ccgo_up(buf + uintptr(buflen-uint64(1)))) = 0 + } + return int32(ERANGE) + } + Xmemcpy(tls, buf, msg, l+uint64(1)) + return 0 +} + +func X__xpg_strerror_r(tls *TLS, err int32, buf uintptr, buflen Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v err=%v buf=%v buflen=%v, (%v:)", tls, err, buf, buflen, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrerror_r(tls, err, buf, buflen) +} + +func Xstrlcat(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l Tsize_t + _ = l + l = Xstrnlen(tls, d, n) + if l == n { + return l + _strlen(tls, s) + } + return l + Xstrlcpy(tls, d+uintptr(l), s, n-l) +} + +const ALIGN5 = -1 + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xstrlcpy(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var d0, wd, ws uintptr + var v1 Tsize_t + var v3 int8 + var v4 bool + _, _, _, _, _, _ = d0, wd, ws, v1, v3, v4 + d0 = d + v1 = n + n = n - 1 + if !(v1 != 0) { + goto finish + } + if uint64(s)&(Uint64FromInt64(8)-Uint64FromInt32(1)) == uint64(d)&(Uint64FromInt64(8)-Uint64FromInt32(1)) { + for { + if v4 = uint64(s)&(Uint64FromInt64(8)-Uint64FromInt32(1)) != 0 && n != 0; v4 { + v3 = **(**int8)(__ccgo_up(s)) + **(**int8)(__ccgo_up(d)) = v3 + } + if !(v4 && v3 != 0) { + break + } + goto _2 + _2: + ; + n = n - 1 + s = s + 1 + d = d + 1 + } + if n != 0 && **(**int8)(__ccgo_up(s)) != 0 { + wd = d + ws = s + for { + if !(n >= uint64(8) && !((**(**uint64)(__ccgo_up(ws))-Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)) & ^**(**uint64)(__ccgo_up(ws)) & (Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)*Uint64FromInt32(Int32FromInt32(UCHAR_MAX)/Int32FromInt32(2)+Int32FromInt32(1))) != 0)) { + break + } + **(**Tsize_t)(__ccgo_up(wd)) = **(**uint64)(__ccgo_up(ws)) + goto _5 + _5: + ; + n = n - uint64(8) + ws += 8 + wd += 8 + } + d = wd + s = ws + } + } + for { + if v4 = n != 0; v4 { + v3 = **(**int8)(__ccgo_up(s)) + **(**int8)(__ccgo_up(d)) = v3 + } + if !(v4 && v3 != 0) { + break + } + goto _6 + _6: + ; + n = n - 1 + s = s + 1 + d = d + 1 + } + **(**int8)(__ccgo_up(d)) = 0 + goto finish +finish: + ; + return Uint64FromInt64(int64(d)-int64(d0)) + _strlen(tls, s) + return r +} + +const ALIGN6 = 0 + +func Xstrncasecmp(tls *TLS, _l uintptr, _r uintptr, n Tsize_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v _l=%v _r=%v n=%v, (%v:)", tls, _l, _r, n, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var l, r uintptr + var v1 Tsize_t + _, _, _ = l, r, v1 + l = _l + r = _r + v1 = n + n = n - 1 + if !(v1 != 0) { + return 0 + } + for { + if !(**(**uint8)(__ccgo_up(l)) != 0 && **(**uint8)(__ccgo_up(r)) != 0 && n != 0 && (Int32FromUint8(**(**uint8)(__ccgo_up(l))) == Int32FromUint8(**(**uint8)(__ccgo_up(r))) || Xtolower(tls, Int32FromUint8(**(**uint8)(__ccgo_up(l)))) == Xtolower(tls, Int32FromUint8(**(**uint8)(__ccgo_up(r)))))) { + break + } + goto _2 + _2: + ; + l = l + 1 + r = r + 1 + n = n - 1 + } + return Xtolower(tls, Int32FromUint8(**(**uint8)(__ccgo_up(l)))) - Xtolower(tls, Int32FromUint8(**(**uint8)(__ccgo_up(r)))) +} + +func X__strncasecmp_l(tls *TLS, l uintptr, r uintptr, n Tsize_t, loc Tlocale_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v n=%v loc=%v, (%v:)", tls, l, r, n, loc, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return Xstrncasecmp(tls, l, r, n) +} + +func Xstrncasecmp_l(tls *TLS, l uintptr, r uintptr, n Tsize_t, loc Tlocale_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v n=%v loc=%v, (%v:)", tls, l, r, n, loc, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return X__strncasecmp_l(tls, l, r, n, loc) +} + +func Xstrncat(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, v1, v2 uintptr + _, _, _ = a, v1, v2 + a = d + d = d + uintptr(_strlen(tls, d)) + for n != 0 && **(**int8)(__ccgo_up(s)) != 0 { + n = n - 1 + v1 = d + d = d + 1 + v2 = s + s = s + 1 + **(**int8)(__ccgo_up(v1)) = **(**int8)(__ccgo_up(v2)) + } + v1 = d + d = d + 1 + **(**int8)(__ccgo_up(v1)) = 0 + return a +} + +func Xstrncmp(tls *TLS, _l uintptr, _r uintptr, n Tsize_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v _l=%v _r=%v n=%v, (%v:)", tls, _l, _r, n, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var l, r uintptr + var v1 Tsize_t + _, _, _ = l, r, v1 + l = _l + r = _r + v1 = n + n = n - 1 + if !(v1 != 0) { + return 0 + } + for { + if !(**(**uint8)(__ccgo_up(l)) != 0 && **(**uint8)(__ccgo_up(r)) != 0 && n != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(l))) == Int32FromUint8(**(**uint8)(__ccgo_up(r)))) { + break + } + goto _2 + _2: + ; + l = l + 1 + r = r + 1 + n = n - 1 + } + return Int32FromUint8(**(**uint8)(__ccgo_up(l))) - Int32FromUint8(**(**uint8)(__ccgo_up(r))) +} + +func Xstrncpy(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + X__stpncpy(tls, d, s, n) + return d +} + +func Xstrndup(tls *TLS, s uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v, (%v:)", tls, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var d uintptr + var l Tsize_t + _, _ = d, l + l = Xstrnlen(tls, s, n) + d = Xmalloc(tls, l+uint64(1)) + if !(d != 0) { + return UintptrFromInt32(0) + } + Xmemcpy(tls, d, s, l) + **(**int8)(__ccgo_up(d + uintptr(l))) = 0 + return d +} + +func Xstrnlen(tls *TLS, s uintptr, n Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v, (%v:)", tls, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var p uintptr + var v1 uint64 + _, _ = p, v1 + p = Xmemchr(tls, s, 0, n) + if p != 0 { + v1 = Uint64FromInt64(int64(p) - int64(s)) + } else { + v1 = n + } + return v1 +} + +func Xstrpbrk(tls *TLS, s uintptr, b uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v b=%v, (%v:)", tls, s, b, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 uintptr + _ = v1 + s = s + uintptr(Xstrcspn(tls, s, b)) + if **(**int8)(__ccgo_up(s)) != 0 { + v1 = s + } else { + v1 = uintptr(0) + } + return v1 +} + +func Xstrrchr(tls *TLS, s uintptr, c int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__memrchr(tls, s, c, _strlen(tls, s)+uint64(1)) +} + +func Xstrsep(tls *TLS, str uintptr, sep uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v str=%v sep=%v, (%v:)", tls, str, sep, origin(2)) + defer func() { trc("-> %v", r) }() + } + var end, s, v1 uintptr + _, _, _ = end, s, v1 + s = **(**uintptr)(__ccgo_up(str)) + if !(s != 0) { + return UintptrFromInt32(0) + } + end = s + uintptr(Xstrcspn(tls, s, sep)) + if **(**int8)(__ccgo_up(end)) != 0 { + v1 = end + end = end + 1 + **(**int8)(__ccgo_up(v1)) = 0 + } else { + end = uintptr(0) + } + **(**uintptr)(__ccgo_up(str)) = end + return s +} + +var _strings = [671]int8{'U', 'n', 'k', 'n', 'o', 'w', 'n', ' ', 's', 'i', 'g', 'n', 'a', 'l', 0, 'H', 'a', 'n', 'g', 'u', 'p', 0, 'I', 'n', 't', 'e', 'r', 'r', 'u', 'p', 't', 0, 'Q', 'u', 'i', 't', 0, 'I', 'l', 'l', 'e', 'g', 'a', 'l', ' ', 'i', 'n', 's', 't', 'r', 'u', 'c', 't', 'i', 'o', 'n', 0, 'T', 'r', 'a', 'c', 'e', '/', 'b', 'r', 'e', 'a', 'k', 'p', 'o', 'i', 'n', 't', ' ', 't', 'r', 'a', 'p', 0, 'A', 'b', 'o', 'r', 't', 'e', 'd', 0, 'B', 'u', 's', ' ', 'e', 'r', 'r', 'o', 'r', 0, 'A', 'r', 'i', 't', 'h', 'm', 'e', 't', 'i', 'c', ' ', 'e', 'x', 'c', 'e', 'p', 't', 'i', 'o', 'n', 0, 'K', 'i', 'l', 'l', 'e', 'd', 0, 'U', 's', 'e', 'r', ' ', 'd', 'e', 'f', 'i', 'n', 'e', 'd', ' ', 's', 'i', 'g', 'n', 'a', 'l', ' ', '1', 0, 'S', 'e', 'g', 'm', 'e', 'n', 't', 'a', 't', 'i', 'o', 'n', ' ', 'f', 'a', 'u', 'l', 't', 0, 'U', 's', 'e', 'r', ' ', 'd', 'e', 'f', 'i', 'n', 'e', 'd', ' ', 's', 'i', 'g', 'n', 'a', 'l', ' ', '2', 0, 'B', 'r', 'o', 'k', 'e', 'n', ' ', 'p', 'i', 'p', 'e', 0, 'A', 'l', 'a', 'r', 'm', ' ', 'c', 'l', 'o', 'c', 'k', 0, 'T', 'e', 'r', 'm', 'i', 'n', 'a', 't', 'e', 'd', 0, 'S', 't', 'a', 'c', 'k', ' ', 'f', 'a', 'u', 'l', 't', 0, 'C', 'h', 'i', 'l', 'd', ' ', 'p', 'r', 'o', 'c', 'e', 's', 's', ' ', 's', 't', 'a', 't', 'u', 's', 0, 'C', 'o', 'n', 't', 'i', 'n', 'u', 'e', 'd', 0, 'S', 't', 'o', 'p', 'p', 'e', 'd', ' ', '(', 's', 'i', 'g', 'n', 'a', 'l', ')', 0, 'S', 't', 'o', 'p', 'p', 'e', 'd', 0, 'S', 't', 'o', 'p', 'p', 'e', 'd', ' ', '(', 't', 't', 'y', ' ', 'i', 'n', 'p', 'u', 't', ')', 0, 'S', 't', 'o', 'p', 'p', 'e', 'd', ' ', '(', 't', 't', 'y', ' ', 'o', 'u', 't', 'p', 'u', 't', ')', 0, 'U', 'r', 'g', 'e', 'n', 't', ' ', 'I', '/', 'O', ' ', 'c', 'o', 'n', 'd', 'i', 't', 'i', 'o', 'n', 0, 'C', 'P', 'U', ' ', 't', 'i', 'm', 'e', ' ', 'l', 'i', 'm', 'i', 't', ' ', 'e', 'x', 'c', 'e', 'e', 'd', 'e', 'd', 0, 'F', 'i', 'l', 'e', ' ', 's', 'i', 'z', 'e', ' ', 'l', 'i', 'm', 'i', 't', ' ', 'e', 'x', 'c', 'e', 'e', 'd', 'e', 'd', 0, 'V', 'i', 'r', 't', 'u', 'a', 'l', ' ', 't', 'i', 'm', 'e', 'r', ' ', 'e', 'x', 'p', 'i', 'r', 'e', 'd', 0, 'P', 'r', 'o', 'f', 'i', 'l', 'i', 'n', 'g', ' ', 't', 'i', 'm', 'e', 'r', ' ', 'e', 'x', 'p', 'i', 'r', 'e', 'd', 0, 'W', 'i', 'n', 'd', 'o', 'w', ' ', 'c', 'h', 'a', 'n', 'g', 'e', 'd', 0, 'I', '/', 'O', ' ', 'p', 'o', 's', 's', 'i', 'b', 'l', 'e', 0, 'P', 'o', 'w', 'e', 'r', ' ', 'f', 'a', 'i', 'l', 'u', 'r', 'e', 0, 'B', 'a', 'd', ' ', 's', 'y', 's', 't', 'e', 'm', ' ', 'c', 'a', 'l', 'l', 0, 'R', 'T', '3', '2', 0, 'R', 'T', '3', '3', 0, 'R', 'T', '3', '4', 0, 'R', 'T', '3', '5', 0, 'R', 'T', '3', '6', 0, 'R', 'T', '3', '7', 0, 'R', 'T', '3', '8', 0, 'R', 'T', '3', '9', 0, 'R', 'T', '4', '0', 0, 'R', 'T', '4', '1', 0, 'R', 'T', '4', '2', 0, 'R', 'T', '4', '3', 0, 'R', 'T', '4', '4', 0, 'R', 'T', '4', '5', 0, 'R', 'T', '4', '6', 0, 'R', 'T', '4', '7', 0, 'R', 'T', '4', '8', 0, 'R', 'T', '4', '9', 0, 'R', 'T', '5', '0', 0, 'R', 'T', '5', '1', 0, 'R', 'T', '5', '2', 0, 'R', 'T', '5', '3', 0, 'R', 'T', '5', '4', 0, 'R', 'T', '5', '5', 0, 'R', 'T', '5', '6', 0, 'R', 'T', '5', '7', 0, 'R', 'T', '5', '8', 0, 'R', 'T', '5', '9', 0, 'R', 'T', '6', '0', 0, 'R', 'T', '6', '1', 0, 'R', 'T', '6', '2', 0, 'R', 'T', '6', '3', 0, 'R', 'T', '6', '4'} + +func Xstrsignal(tls *TLS, signum int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v signum=%v, (%v:)", tls, signum, origin(2)) + defer func() { trc("-> %v", r) }() + } + var s uintptr + var v2 int32 + _, _ = s, v2 + s = uintptr(unsafe.Pointer(&_strings)) + signum = signum + if Uint32FromInt32(signum)-uint32(1) >= Uint32FromInt32(Int32FromInt32(_NSIG)-Int32FromInt32(1)) { + signum = 0 + } + for { + v2 = signum + signum = signum - 1 + if !(v2 != 0) { + break + } + for { + if !(**(**int8)(__ccgo_up(s)) != 0) { + break + } + goto _3 + _3: + ; + s = s + 1 + } + goto _1 + _1: + ; + s = s + 1 + } + return X__lctrans_cur(tls, s) +} + +func Xstrspn(tls *TLS, s uintptr, c uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var a, v3 uintptr + var v4 bool + var _ /* byteset at bp+0 */ [4]Tsize_t + _, _, _ = a, v3, v4 + a = s + **(**[4]Tsize_t)(__ccgo_up(bp)) = [4]Tsize_t{} + if !(**(**int8)(__ccgo_up(c)) != 0) { + return uint64(0) + } + if !(**(**int8)(__ccgo_up(c + 1)) != 0) { + for { + if !(int32(**(**int8)(__ccgo_up(s))) == int32(**(**int8)(__ccgo_up(c)))) { + break + } + goto _1 + _1: + ; + s = s + 1 + } + return Uint64FromInt64(int64(s) - int64(a)) + } + for { + if v4 = **(**int8)(__ccgo_up(c)) != 0; v4 { + v3 = bp + uintptr(uint64(**(**uint8)(__ccgo_up(c)))/(Uint64FromInt32(8)*Uint64FromInt64(8)))*8 + *(*Tsize_t)(unsafe.Pointer(v3)) |= Uint64FromInt32(1) << (uint64(**(**uint8)(__ccgo_up(c))) % (Uint64FromInt32(8) * Uint64FromInt64(8))) + } + if !(v4 && *(*Tsize_t)(unsafe.Pointer(v3)) != 0) { + break + } + goto _2 + _2: + ; + c = c + 1 + } + for { + if !(**(**int8)(__ccgo_up(s)) != 0 && (**(**[4]Tsize_t)(__ccgo_up(bp)))[uint64(**(**uint8)(__ccgo_up(s)))/(Uint64FromInt32(8)*Uint64FromInt64(8))]&(Uint64FromInt32(1)<<(uint64(**(**uint8)(__ccgo_up(s)))%(Uint64FromInt32(8)*Uint64FromInt64(8)))) != 0) { + break + } + goto _5 + _5: + ; + s = s + 1 + } + return Uint64FromInt64(int64(s) - int64(a)) +} + +func _twobyte_strstr(tls *TLS, h uintptr, n uintptr) (r uintptr) { + var hw, nw Tuint16_t + var v2 uintptr + _, _, _ = hw, nw, v2 + nw = Uint16FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(n)))< Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(jp+k)))) { + jp = jp + k + k = uint64(1) + p = jp - ip + } else { + v2 = jp + jp = jp + 1 + ip = v2 + v2 = Uint64FromInt32(1) + p = v2 + k = v2 + } + } + } + ms = ip + p0 = p + /* And with the opposite comparison */ + ip = Uint64FromInt32(-Int32FromInt32(1)) + jp = uint64(0) + v2 = Uint64FromInt32(1) + p = v2 + k = v2 + for jp+k < l { + if Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(ip+k)))) == Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(jp+k)))) { + if k == p { + jp = jp + p + k = uint64(1) + } else { + k = k + 1 + } + } else { + if Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(ip+k)))) < Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(jp+k)))) { + jp = jp + k + k = uint64(1) + p = jp - ip + } else { + v2 = jp + jp = jp + 1 + ip = v2 + v2 = Uint64FromInt32(1) + p = v2 + k = v2 + } + } + } + if ip+uint64(1) > ms+uint64(1) { + ms = ip + } else { + p = p0 + } + /* Periodic needle? */ + if Xmemcmp(tls, n, n+uintptr(p), ms+uint64(1)) != 0 { + mem0 = uint64(0) + if ms > l-ms-uint64(1) { + v8 = ms + } else { + v8 = l - ms - uint64(1) + } + p = v8 + uint64(1) + } else { + mem0 = l - p + } + mem = uint64(0) + /* Initialize incremental end-of-haystack pointer */ + z = h + /* Search loop */ + for { + /* Update incremental end-of-haystack pointer */ + if Uint64FromInt64(int64(z)-int64(h)) < l { + /* Fast estimate for MAX(l,63) */ + grow = l | uint64(63) + z2 = Xmemchr(tls, z, 0, grow) + if z2 != 0 { + z = z2 + if Uint64FromInt64(int64(z)-int64(h)) < l { + return uintptr(0) + } + } else { + z = z + uintptr(grow) + } + } + /* Check last byte first; advance by shift on mismatch */ + if (**(**[4]Tsize_t)(__ccgo_up(bp)))[uint64(**(**uint8)(__ccgo_up(h + uintptr(l-uint64(1)))))/(Uint64FromInt32(8)*Uint64FromInt64(8))]&(Uint64FromInt32(1)<<(uint64(**(**uint8)(__ccgo_up(h + uintptr(l-uint64(1)))))%(Uint64FromInt32(8)*Uint64FromInt64(8)))) != 0 { + k = l - shift[**(**uint8)(__ccgo_up(h + uintptr(l-uint64(1))))] + if k != 0 { + if k < mem { + k = mem + } + h = h + uintptr(k) + mem = uint64(0) + goto _9 + } + } else { + h = h + uintptr(l) + mem = uint64(0) + goto _9 + } + /* Compare right half */ + if ms+uint64(1) > mem { + v8 = ms + uint64(1) + } else { + v8 = mem + } + k = v8 + for { + if !(**(**uint8)(__ccgo_up(n + uintptr(k))) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(k)))) == Int32FromUint8(**(**uint8)(__ccgo_up(h + uintptr(k))))) { + break + } + goto _10 + _10: + ; + k = k + 1 + } + if **(**uint8)(__ccgo_up(n + uintptr(k))) != 0 { + h = h + uintptr(k-ms) + mem = uint64(0) + goto _9 + } + /* Compare left half */ + k = ms + uint64(1) + for { + if !(k > mem && Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(k-uint64(1))))) == Int32FromUint8(**(**uint8)(__ccgo_up(h + uintptr(k-uint64(1)))))) { + break + } + goto _12 + _12: + ; + k = k - 1 + } + if k <= mem { + return h + } + h = h + uintptr(p) + mem = mem0 + goto _9 + _9: + } + return r +} + +func Xstrstr(tls *TLS, h uintptr, n uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v h=%v n=%v, (%v:)", tls, h, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + /* Return immediately on empty needle */ + if !(**(**int8)(__ccgo_up(n)) != 0) { + return h + } + /* Use faster algorithms for short needles */ + h = Xstrchr(tls, h, int32(**(**int8)(__ccgo_up(n)))) + if !(h != 0) || !(**(**int8)(__ccgo_up(n + 1)) != 0) { + return h + } + if !(**(**int8)(__ccgo_up(h + 1)) != 0) { + return uintptr(0) + } + if !(**(**int8)(__ccgo_up(n + 2)) != 0) { + return _twobyte_strstr(tls, h, n) + } + if !(**(**int8)(__ccgo_up(h + 2)) != 0) { + return uintptr(0) + } + if !(**(**int8)(__ccgo_up(n + 3)) != 0) { + return _threebyte_strstr(tls, h, n) + } + if !(**(**int8)(__ccgo_up(h + 3)) != 0) { + return uintptr(0) + } + if !(**(**int8)(__ccgo_up(n + 4)) != 0) { + return _fourbyte_strstr(tls, h, n) + } + return _twoway_strstr(tls, h, n) +} + +func Xstrtok(tls *TLS, s uintptr, sep uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v sep=%v, (%v:)", tls, s, sep, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 uintptr + var v2 bool + _, _ = v1, v2 + if v2 = !(s != 0); v2 { + v1 = _p2 + s = v1 + } + if v2 && !(v1 != 0) { + return UintptrFromInt32(0) + } + s = s + uintptr(Xstrspn(tls, s, sep)) + if !(**(**int8)(__ccgo_up(s)) != 0) { + v1 = UintptrFromInt32(0) + _p2 = v1 + return v1 + } + _p2 = s + uintptr(Xstrcspn(tls, s, sep)) + if **(**int8)(__ccgo_up(_p2)) != 0 { + v1 = _p2 + _p2 = _p2 + 1 + **(**int8)(__ccgo_up(v1)) = 0 + } else { + _p2 = uintptr(0) + } + return s +} + +var _p2 uintptr + +func Xstrtok_r(tls *TLS, s uintptr, sep uintptr, p uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v sep=%v p=%v, (%v:)", tls, s, sep, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1, v3 uintptr + var v2 bool + _, _, _ = v1, v2, v3 + if v2 = !(s != 0); v2 { + v1 = **(**uintptr)(__ccgo_up(p)) + s = v1 + } + if v2 && !(v1 != 0) { + return UintptrFromInt32(0) + } + s = s + uintptr(Xstrspn(tls, s, sep)) + if !(**(**int8)(__ccgo_up(s)) != 0) { + v1 = UintptrFromInt32(0) + **(**uintptr)(__ccgo_up(p)) = v1 + return v1 + } + **(**uintptr)(__ccgo_up(p)) = s + uintptr(Xstrcspn(tls, s, sep)) + if **(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(p)))) != 0 { + v3 = p + v1 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + **(**int8)(__ccgo_up(v1)) = 0 + } else { + **(**uintptr)(__ccgo_up(p)) = uintptr(0) + } + return s +} + +func Xstrverscmp(tls *TLS, l0 uintptr, r0 uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l0=%v r0=%v, (%v:)", tls, l0, r0, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var c, z int32 + var dp, i, j, v2 Tsize_t + var l, r uintptr + _, _, _, _, _, _, _, _ = c, dp, i, j, l, r, z, v2 + l = l0 + r = r0 + z = int32(1) + /* Find maximal matching prefix and track its maximal digit + * suffix and whether those digits are all zeros. */ + v2 = Uint64FromInt32(0) + i = v2 + dp = v2 + for { + if !(Int32FromUint8(**(**uint8)(__ccgo_up(l + uintptr(i)))) == Int32FromUint8(**(**uint8)(__ccgo_up(r + uintptr(i))))) { + break + } + c = Int32FromUint8(**(**uint8)(__ccgo_up(l + uintptr(i)))) + if !(c != 0) { + return 0 + } + if !(BoolInt32(Uint32FromInt32(c)-Uint32FromUint8('0') < Uint32FromInt32(10)) != 0) { + dp = i + uint64(1) + z = Int32FromInt32(1) + } else { + if c != int32('0') { + z = 0 + } + } + goto _1 + _1: + ; + i = i + 1 + } + if Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(l + uintptr(dp))))-int32('1')) < uint32(9) && Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(r + uintptr(dp))))-int32('1')) < uint32(9) { + /* If we're looking at non-degenerate digit sequences starting + * with nonzero digits, longest digit string is greater. */ + j = i + for { + if !(BoolInt32(uint32(**(**uint8)(__ccgo_up(l + uintptr(j))))-uint32('0') < uint32(10)) != 0) { + break + } + if !(BoolInt32(uint32(**(**uint8)(__ccgo_up(r + uintptr(j))))-Uint32FromUint8('0') < Uint32FromInt32(10)) != 0) { + return int32(1) + } + goto _3 + _3: + ; + j = j + 1 + } + if BoolInt32(uint32(**(**uint8)(__ccgo_up(r + uintptr(j))))-uint32('0') < uint32(10)) != 0 { + return -int32(1) + } + } else { + if z != 0 && dp < i && (BoolInt32(uint32(**(**uint8)(__ccgo_up(l + uintptr(i))))-uint32('0') < uint32(10)) != 0 || BoolInt32(uint32(**(**uint8)(__ccgo_up(r + uintptr(i))))-uint32('0') < uint32(10)) != 0) { + /* Otherwise, if common prefix of digit sequence is + * all zeros, digits order less than non-digits. */ + return Int32FromUint8(Uint8FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(l + uintptr(i))))-Int32FromUint8('0'))) - Int32FromUint8(Uint8FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(r + uintptr(i))))-Int32FromUint8('0'))) + } + } + return Int32FromUint8(**(**uint8)(__ccgo_up(l + uintptr(i)))) - Int32FromUint8(**(**uint8)(__ccgo_up(r + uintptr(i)))) +} + +func Xswab(tls *TLS, _src uintptr, _dest uintptr, n Tssize_t) { + if __ccgo_strace { + trc("tls=%v _src=%v _dest=%v n=%v, (%v:)", tls, _src, _dest, n, origin(2)) + } + var dest, src uintptr + _, _ = dest, src + src = _src + dest = _dest + for { + if !(n > int64(1)) { + break + } + **(**int8)(__ccgo_up(dest)) = **(**int8)(__ccgo_up(src + 1)) + **(**int8)(__ccgo_up(dest + 1)) = **(**int8)(__ccgo_up(src)) + dest = dest + uintptr(2) + src = src + uintptr(2) + goto _1 + _1: + ; + n = n - int64(2) + } +} + +func Xwcpcpy(tls *TLS, d uintptr, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v, (%v:)", tls, d, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwcscpy(tls, d, s) + uintptr(Xwcslen(tls, s))*4 +} + +func Xwcpncpy(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwcsncpy(tls, d, s, n) + uintptr(Xwcsnlen(tls, s, n))*4 +} + +func Xwcscasecmp(tls *TLS, l uintptr, r uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v, (%v:)", tls, l, r, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return Xwcsncasecmp(tls, l, r, Uint64FromInt32(-Int32FromInt32(1))) +} + +func Xwcscasecmp_l(tls *TLS, l uintptr, r uintptr, locale Tlocale_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v locale=%v, (%v:)", tls, l, r, locale, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return Xwcscasecmp(tls, l, r) +} + +func Xwcscat(tls *TLS, dest uintptr, src uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v, (%v:)", tls, dest, src, origin(2)) + defer func() { trc("-> %v", r) }() + } + Xwcscpy(tls, dest+uintptr(Xwcslen(tls, dest))*4, src) + return dest +} + +func Xwcschr(tls *TLS, s uintptr, c Twchar_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v2 uintptr + _ = v2 + if !(c != 0) { + return s + uintptr(Xwcslen(tls, s))*4 + } + for { + if !(**(**Twchar_t)(__ccgo_up(s)) != 0 && **(**Twchar_t)(__ccgo_up(s)) != c) { + break + } + goto _1 + _1: + ; + s += 4 + } + if **(**Twchar_t)(__ccgo_up(s)) != 0 { + v2 = s + } else { + v2 = uintptr(0) + } + return v2 +} + +func Xwcscmp(tls *TLS, l uintptr, r uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v, (%v:)", tls, l, r, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var v2 int32 + _ = v2 + for { + if !(**(**Twchar_t)(__ccgo_up(l)) == **(**Twchar_t)(__ccgo_up(r)) && **(**Twchar_t)(__ccgo_up(l)) != 0 && **(**Twchar_t)(__ccgo_up(r)) != 0) { + break + } + goto _1 + _1: + ; + l += 4 + r += 4 + } + if **(**Twchar_t)(__ccgo_up(l)) < **(**Twchar_t)(__ccgo_up(r)) { + v2 = -int32(1) + } else { + v2 = BoolInt32(**(**Twchar_t)(__ccgo_up(l)) > **(**Twchar_t)(__ccgo_up(r))) + } + return v2 +} + +func Xwcscpy(tls *TLS, d uintptr, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v, (%v:)", tls, d, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, v2, v3 uintptr + var v1 Twchar_t + _, _, _, _ = a, v1, v2, v3 + a = d + for { + v2 = s + s += 4 + v1 = **(**Twchar_t)(__ccgo_up(v2)) + v3 = d + d += 4 + **(**Twchar_t)(__ccgo_up(v3)) = v1 + if !(v1 != 0) { + break + } + } + return a +} + +func Xwcscspn(tls *TLS, s uintptr, c uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, v2, v3 uintptr + var v1 uint64 + _, _, _, _ = a, v1, v2, v3 + if !(**(**Twchar_t)(__ccgo_up(c)) != 0) { + return Xwcslen(tls, s) + } + if !(**(**Twchar_t)(__ccgo_up(c + 1*4)) != 0) { + v3 = s + a = v3 + v2 = Xwcschr(tls, v3, **(**Twchar_t)(__ccgo_up(c))) + s = v2 + if v2 != 0 { + v1 = Uint64FromInt64((int64(s) - int64(a)) / 4) + } else { + v1 = Xwcslen(tls, a) + } + return v1 + } + a = s + for { + if !(**(**Twchar_t)(__ccgo_up(s)) != 0 && !(Xwcschr(tls, c, **(**Twchar_t)(__ccgo_up(s))) != 0)) { + break + } + goto _4 + _4: + ; + s += 4 + } + return Uint64FromInt64((int64(s) - int64(a)) / 4) +} + +func Xwcsdup(tls *TLS, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var d uintptr + var l Tsize_t + _, _ = d, l + l = Xwcslen(tls, s) + d = Xmalloc(tls, (l+uint64(1))*uint64(4)) + if !(d != 0) { + return UintptrFromInt32(0) + } + return Xwmemcpy(tls, d, s, l+uint64(1)) +} + +func Xwcslen(tls *TLS, s uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a uintptr + _ = a + a = s + for { + if !(**(**Twchar_t)(__ccgo_up(s)) != 0) { + break + } + goto _1 + _1: + ; + s += 4 + } + return Uint64FromInt64((int64(s) - int64(a)) / 4) +} + +func Xwcsncasecmp(tls *TLS, l uintptr, r uintptr, n Tsize_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v n=%v, (%v:)", tls, l, r, n, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var v1 Tsize_t + _ = v1 + v1 = n + n = n - 1 + if !(v1 != 0) { + return 0 + } + for { + if !(**(**Twchar_t)(__ccgo_up(l)) != 0 && **(**Twchar_t)(__ccgo_up(r)) != 0 && n != 0 && (**(**Twchar_t)(__ccgo_up(l)) == **(**Twchar_t)(__ccgo_up(r)) || Xtowlower(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(l)))) == Xtowlower(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(r)))))) { + break + } + goto _2 + _2: + ; + l += 4 + r += 4 + n = n - 1 + } + return Int32FromUint32(Xtowlower(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(l)))) - Xtowlower(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(r))))) +} + +func Xwcsncasecmp_l(tls *TLS, l uintptr, r uintptr, n Tsize_t, locale Tlocale_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v n=%v locale=%v, (%v:)", tls, l, r, n, locale, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return Xwcsncasecmp(tls, l, r, n) +} + +func Xwcsncat(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, v1, v2 uintptr + _, _, _ = a, v1, v2 + a = d + d = d + uintptr(Xwcslen(tls, d))*4 + for n != 0 && **(**Twchar_t)(__ccgo_up(s)) != 0 { + n = n - 1 + v1 = d + d += 4 + v2 = s + s += 4 + **(**Twchar_t)(__ccgo_up(v1)) = **(**Twchar_t)(__ccgo_up(v2)) + } + v1 = d + d += 4 + **(**Twchar_t)(__ccgo_up(v1)) = 0 + return a +} + +func Xwcsncmp(tls *TLS, l uintptr, r uintptr, n Tsize_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v n=%v, (%v:)", tls, l, r, n, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var v2, v3 int32 + _, _ = v2, v3 + for { + if !(n != 0 && **(**Twchar_t)(__ccgo_up(l)) == **(**Twchar_t)(__ccgo_up(r)) && **(**Twchar_t)(__ccgo_up(l)) != 0 && **(**Twchar_t)(__ccgo_up(r)) != 0) { + break + } + goto _1 + _1: + ; + n = n - 1 + l += 4 + r += 4 + } + if n != 0 { + if **(**Twchar_t)(__ccgo_up(l)) < **(**Twchar_t)(__ccgo_up(r)) { + v3 = -int32(1) + } else { + v3 = BoolInt32(**(**Twchar_t)(__ccgo_up(l)) > **(**Twchar_t)(__ccgo_up(r))) + } + v2 = v3 + } else { + v2 = 0 + } + return v2 +} + +func Xwcsncpy(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, v1, v2 uintptr + _, _, _ = a, v1, v2 + a = d + for n != 0 && **(**Twchar_t)(__ccgo_up(s)) != 0 { + n = n - 1 + v1 = d + d += 4 + v2 = s + s += 4 + **(**Twchar_t)(__ccgo_up(v1)) = **(**Twchar_t)(__ccgo_up(v2)) + } + Xwmemset(tls, d, 0, n) + return a +} + +func Xwcsnlen(tls *TLS, s uintptr, n Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v, (%v:)", tls, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var z uintptr + _ = z + z = Xwmemchr(tls, s, 0, n) + if z != 0 { + n = Uint64FromInt64((int64(z) - int64(s)) / 4) + } + return n +} + +func Xwcspbrk(tls *TLS, s uintptr, b uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v b=%v, (%v:)", tls, s, b, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 uintptr + _ = v1 + s = s + uintptr(Xwcscspn(tls, s, b))*4 + if **(**Twchar_t)(__ccgo_up(s)) != 0 { + v1 = s + } else { + v1 = UintptrFromInt32(0) + } + return v1 +} + +func Xwcsrchr(tls *TLS, s uintptr, c Twchar_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + var p, v2 uintptr + _, _ = p, v2 + p = s + uintptr(Xwcslen(tls, s))*4 + for { + if !(p >= s && **(**Twchar_t)(__ccgo_up(p)) != c) { + break + } + goto _1 + _1: + ; + p -= 4 + } + if p >= s { + v2 = p + } else { + v2 = uintptr(0) + } + return v2 +} + +func Xwcsspn(tls *TLS, s uintptr, c uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a uintptr + _ = a + a = s + for { + if !(**(**Twchar_t)(__ccgo_up(s)) != 0 && Xwcschr(tls, c, **(**Twchar_t)(__ccgo_up(s))) != 0) { + break + } + goto _1 + _1: + ; + s += 4 + } + return Uint64FromInt64((int64(s) - int64(a)) / 4) +} + +func _twoway_wcsstr(tls *TLS, h uintptr, n uintptr) (r uintptr) { + var grow, ip, jp, k, l, mem, mem0, ms, p, p0, v2 Tsize_t + var z, z2 uintptr + var v8 uint64 + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = grow, ip, jp, k, l, mem, mem0, ms, p, p0, z, z2, v2, v8 + /* Computing length of needle */ + l = uint64(0) + for { + if !(**(**Twchar_t)(__ccgo_up(n + uintptr(l)*4)) != 0 && **(**Twchar_t)(__ccgo_up(h + uintptr(l)*4)) != 0) { + break + } + goto _1 + _1: + ; + l = l + 1 + } + if **(**Twchar_t)(__ccgo_up(n + uintptr(l)*4)) != 0 { + return uintptr(0) + } /* hit the end of h */ + /* Compute maximal suffix */ + ip = Uint64FromInt32(-Int32FromInt32(1)) + jp = uint64(0) + v2 = Uint64FromInt32(1) + p = v2 + k = v2 + for jp+k < l { + if **(**Twchar_t)(__ccgo_up(n + uintptr(ip+k)*4)) == **(**Twchar_t)(__ccgo_up(n + uintptr(jp+k)*4)) { + if k == p { + jp = jp + p + k = uint64(1) + } else { + k = k + 1 + } + } else { + if **(**Twchar_t)(__ccgo_up(n + uintptr(ip+k)*4)) > **(**Twchar_t)(__ccgo_up(n + uintptr(jp+k)*4)) { + jp = jp + k + k = uint64(1) + p = jp - ip + } else { + v2 = jp + jp = jp + 1 + ip = v2 + v2 = Uint64FromInt32(1) + p = v2 + k = v2 + } + } + } + ms = ip + p0 = p + /* And with the opposite comparison */ + ip = Uint64FromInt32(-Int32FromInt32(1)) + jp = uint64(0) + v2 = Uint64FromInt32(1) + p = v2 + k = v2 + for jp+k < l { + if **(**Twchar_t)(__ccgo_up(n + uintptr(ip+k)*4)) == **(**Twchar_t)(__ccgo_up(n + uintptr(jp+k)*4)) { + if k == p { + jp = jp + p + k = uint64(1) + } else { + k = k + 1 + } + } else { + if **(**Twchar_t)(__ccgo_up(n + uintptr(ip+k)*4)) < **(**Twchar_t)(__ccgo_up(n + uintptr(jp+k)*4)) { + jp = jp + k + k = uint64(1) + p = jp - ip + } else { + v2 = jp + jp = jp + 1 + ip = v2 + v2 = Uint64FromInt32(1) + p = v2 + k = v2 + } + } + } + if ip+uint64(1) > ms+uint64(1) { + ms = ip + } else { + p = p0 + } + /* Periodic needle? */ + if Xwmemcmp(tls, n, n+uintptr(p)*4, ms+uint64(1)) != 0 { + mem0 = uint64(0) + if ms > l-ms-uint64(1) { + v8 = ms + } else { + v8 = l - ms - uint64(1) + } + p = v8 + uint64(1) + } else { + mem0 = l - p + } + mem = uint64(0) + /* Initialize incremental end-of-haystack pointer */ + z = h + /* Search loop */ + for { + /* Update incremental end-of-haystack pointer */ + if Uint64FromInt64((int64(z)-int64(h))/4) < l { + /* Fast estimate for MIN(l,63) */ + grow = l | uint64(63) + z2 = Xwmemchr(tls, z, 0, grow) + if z2 != 0 { + z = z2 + if Uint64FromInt64((int64(z)-int64(h))/4) < l { + return uintptr(0) + } + } else { + z = z + uintptr(grow)*4 + } + } + /* Compare right half */ + if ms+uint64(1) > mem { + v8 = ms + uint64(1) + } else { + v8 = mem + } + k = v8 + for { + if !(**(**Twchar_t)(__ccgo_up(n + uintptr(k)*4)) != 0 && **(**Twchar_t)(__ccgo_up(n + uintptr(k)*4)) == **(**Twchar_t)(__ccgo_up(h + uintptr(k)*4))) { + break + } + goto _10 + _10: + ; + k = k + 1 + } + if **(**Twchar_t)(__ccgo_up(n + uintptr(k)*4)) != 0 { + h = h + uintptr(k-ms)*4 + mem = uint64(0) + goto _9 + } + /* Compare left half */ + k = ms + uint64(1) + for { + if !(k > mem && **(**Twchar_t)(__ccgo_up(n + uintptr(k-uint64(1))*4)) == **(**Twchar_t)(__ccgo_up(h + uintptr(k-uint64(1))*4))) { + break + } + goto _12 + _12: + ; + k = k - 1 + } + if k <= mem { + return h + } + h = h + uintptr(p)*4 + mem = mem0 + goto _9 + _9: + } + return r +} + +func Xwcsstr(tls *TLS, h uintptr, n uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v h=%v n=%v, (%v:)", tls, h, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + /* Return immediately on empty needle or haystack */ + if !(**(**Twchar_t)(__ccgo_up(n)) != 0) { + return h + } + if !(**(**Twchar_t)(__ccgo_up(h)) != 0) { + return uintptr(0) + } + /* Use faster algorithms for short needles */ + h = Xwcschr(tls, h, **(**Twchar_t)(__ccgo_up(n))) + if !(h != 0) || !(**(**Twchar_t)(__ccgo_up(n + 1*4)) != 0) { + return h + } + if !(**(**Twchar_t)(__ccgo_up(h + 1*4)) != 0) { + return uintptr(0) + } + return _twoway_wcsstr(tls, h, n) +} + +func Xwcstok(tls *TLS, s uintptr, sep uintptr, p uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v sep=%v p=%v, (%v:)", tls, s, sep, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1, v3 uintptr + var v2 bool + _, _, _ = v1, v2, v3 + if v2 = !(s != 0); v2 { + v1 = **(**uintptr)(__ccgo_up(p)) + s = v1 + } + if v2 && !(v1 != 0) { + return UintptrFromInt32(0) + } + s = s + uintptr(Xwcsspn(tls, s, sep))*4 + if !(**(**Twchar_t)(__ccgo_up(s)) != 0) { + v1 = UintptrFromInt32(0) + **(**uintptr)(__ccgo_up(p)) = v1 + return v1 + } + **(**uintptr)(__ccgo_up(p)) = s + uintptr(Xwcscspn(tls, s, sep))*4 + if **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(p)))) != 0 { + v3 = p + v1 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) += 4 + **(**Twchar_t)(__ccgo_up(v1)) = 0 + } else { + **(**uintptr)(__ccgo_up(p)) = uintptr(0) + } + return s +} + +func Xwcswcs(tls *TLS, haystack uintptr, needle uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v haystack=%v needle=%v, (%v:)", tls, haystack, needle, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwcsstr(tls, haystack, needle) +} + +func Xwmemchr(tls *TLS, s uintptr, c Twchar_t, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v n=%v, (%v:)", tls, s, c, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v2 uintptr + _ = v2 + for { + if !(n != 0 && **(**Twchar_t)(__ccgo_up(s)) != c) { + break + } + goto _1 + _1: + ; + n = n - 1 + s += 4 + } + if n != 0 { + v2 = s + } else { + v2 = uintptr(0) + } + return v2 +} + +func Xwmemcmp(tls *TLS, l uintptr, r uintptr, n Tsize_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v n=%v, (%v:)", tls, l, r, n, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var v2, v3 int32 + _, _ = v2, v3 + for { + if !(n != 0 && **(**Twchar_t)(__ccgo_up(l)) == **(**Twchar_t)(__ccgo_up(r))) { + break + } + goto _1 + _1: + ; + n = n - 1 + l += 4 + r += 4 + } + if n != 0 { + if **(**Twchar_t)(__ccgo_up(l)) < **(**Twchar_t)(__ccgo_up(r)) { + v3 = -int32(1) + } else { + v3 = BoolInt32(**(**Twchar_t)(__ccgo_up(l)) > **(**Twchar_t)(__ccgo_up(r))) + } + v2 = v3 + } else { + v2 = 0 + } + return v2 +} + +func Xwmemcpy(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, v2, v3 uintptr + var v1 Tsize_t + _, _, _, _ = a, v1, v2, v3 + a = d + for { + v1 = n + n = n - 1 + if !(v1 != 0) { + break + } + v2 = d + d += 4 + v3 = s + s += 4 + **(**Twchar_t)(__ccgo_up(v2)) = **(**Twchar_t)(__ccgo_up(v3)) + } + return a +} + +func Xwmemmove(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var d0, v3, v4 uintptr + var v1 Tsize_t + _, _, _, _ = d0, v1, v3, v4 + d0 = d + if d == s { + return d + } + if uint64(d)-uint64(s) < n*uint64(4) { + for { + v1 = n + n = n - 1 + if !(v1 != 0) { + break + } + **(**Twchar_t)(__ccgo_up(d + uintptr(n)*4)) = **(**Twchar_t)(__ccgo_up(s + uintptr(n)*4)) + } + } else { + for { + v1 = n + n = n - 1 + if !(v1 != 0) { + break + } + v3 = d + d += 4 + v4 = s + s += 4 + **(**Twchar_t)(__ccgo_up(v3)) = **(**Twchar_t)(__ccgo_up(v4)) + } + } + return d0 +} + +func Xwmemset(tls *TLS, d uintptr, c Twchar_t, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v c=%v n=%v, (%v:)", tls, d, c, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret, v2 uintptr + var v1 Tsize_t + _, _, _ = ret, v1, v2 + ret = d + for { + v1 = n + n = n - 1 + if !(v1 != 0) { + break + } + v2 = d + d += 4 + **(**Twchar_t)(__ccgo_up(v2)) = c + } + return ret +} + +func Xmkdtemp(tls *TLS, template uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v template=%v, (%v:)", tls, template, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l Tsize_t + var retries, v1 int32 + _, _, _ = l, retries, v1 + l = _strlen(tls, template) + retries = int32(100) + if l < uint64(6) || Xmemcmp(tls, template+uintptr(l)-uintptr(6), __ccgo_ts+1747, uint64(6)) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(0) + } + for { + ___randname(tls, template+uintptr(l)-uintptr(6)) + if !(Xmkdir(tls, template, uint32(0700)) != 0) { + return template + } + goto _2 + _2: + ; + retries = retries - 1 + v1 = retries + if !(v1 != 0 && **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EEXIST)) { + break + } + } + Xmemcpy(tls, template+uintptr(l)-uintptr(6), __ccgo_ts+1747, uint64(6)) + return uintptr(0) +} + +func Xmkostemp(tls *TLS, template uintptr, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v template=%v flags=%v, (%v:)", tls, template, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__mkostemps(tls, template, 0, flags) +} + +func X__mkostemps(tls *TLS, template uintptr, len1 int32, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v template=%v len1=%v flags=%v, (%v:)", tls, template, len1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var fd, retries, v1 int32 + var l Tsize_t + _, _, _, _ = fd, l, retries, v1 + l = _strlen(tls, template) + if l < uint64(6) || Uint64FromInt32(len1) > l-uint64(6) || Xmemcmp(tls, template+uintptr(l)-uintptr(len1)-uintptr(6), __ccgo_ts+1747, uint64(6)) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + flags = flags - flags&(Int32FromInt32(03)|Int32FromInt32(O_PATH)) + retries = int32(100) + for { + ___randname(tls, template+uintptr(l)-uintptr(len1)-uintptr(6)) + v1 = Xopen(tls, template, flags|int32(O_RDWR)|int32(O_CREAT)|int32(O_EXCL), VaList(bp+8, int32(0600))) + fd = v1 + if v1 >= 0 { + return fd + } + goto _2 + _2: + ; + retries = retries - 1 + v1 = retries + if !(v1 != 0 && **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EEXIST)) { + break + } + } + Xmemcpy(tls, template+uintptr(l)-uintptr(len1)-uintptr(6), __ccgo_ts+1747, uint64(6)) + return -int32(1) +} + +func Xmkostemps(tls *TLS, template uintptr, len1 int32, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v template=%v len1=%v flags=%v, (%v:)", tls, template, len1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__mkostemps(tls, template, len1, flags) +} + +func Xmkstemp(tls *TLS, template uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v template=%v, (%v:)", tls, template, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__mkostemps(tls, template, 0, 0) +} + +func Xmkstemps(tls *TLS, template uintptr, len1 int32) (r int32) { + if __ccgo_strace { + trc("tls=%v template=%v len1=%v, (%v:)", tls, template, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__mkostemps(tls, template, len1, 0) +} + +func Xmktemp(tls *TLS, template uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v template=%v, (%v:)", tls, template, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(144) + defer tls.Free(144) + var l Tsize_t + var retries, v1 int32 + var _ /* st at bp+0 */ Tstat + _, _, _ = l, retries, v1 + l = _strlen(tls, template) + retries = int32(100) + if l < uint64(6) || Xmemcmp(tls, template+uintptr(l)-uintptr(6), __ccgo_ts+1747, uint64(6)) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + **(**int8)(__ccgo_up(template)) = 0 + return template + } + for { + ___randname(tls, template+uintptr(l)-uintptr(6)) + if Xstat(tls, template, bp) != 0 { + if **(**int32)(__ccgo_up(X__errno_location(tls))) != int32(ENOENT) { + **(**int8)(__ccgo_up(template)) = 0 + } + return template + } + goto _2 + _2: + ; + retries = retries - 1 + v1 = retries + if !(v1 != 0) { + break + } + } + **(**int8)(__ccgo_up(template)) = 0 + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EEXIST) + return template +} + +func Xcfgetospeed(tls *TLS, tio uintptr) (r Tspeed_t) { + if __ccgo_strace { + trc("tls=%v tio=%v, (%v:)", tls, tio, origin(2)) + defer func() { trc("-> %v", r) }() + } + return (*Ttermios)(unsafe.Pointer(tio)).Fc_cflag & uint32(CBAUD) +} + +func Xcfgetispeed(tls *TLS, tio uintptr) (r Tspeed_t) { + if __ccgo_strace { + trc("tls=%v tio=%v, (%v:)", tls, tio, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xcfgetospeed(tls, tio) +} + +func Xcfmakeraw(tls *TLS, t uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v, (%v:)", tls, t, origin(2)) + } + **(**Ttcflag_t)(__ccgo_up(t)) &= Uint32FromInt32(^(Int32FromInt32(IGNBRK) | Int32FromInt32(BRKINT) | Int32FromInt32(PARMRK) | Int32FromInt32(ISTRIP) | Int32FromInt32(INLCR) | Int32FromInt32(IGNCR) | Int32FromInt32(ICRNL) | Int32FromInt32(IXON))) + **(**Ttcflag_t)(__ccgo_up(t + 4)) &= Uint32FromInt32(^Int32FromInt32(OPOST)) + **(**Ttcflag_t)(__ccgo_up(t + 12)) &= Uint32FromInt32(^(Int32FromInt32(ECHO) | Int32FromInt32(ECHONL) | Int32FromInt32(ICANON) | Int32FromInt32(ISIG) | Int32FromInt32(IEXTEN))) + **(**Ttcflag_t)(__ccgo_up(t + 8)) &= Uint32FromInt32(^(Int32FromInt32(CSIZE) | Int32FromInt32(PARENB))) + **(**Ttcflag_t)(__ccgo_up(t + 8)) |= uint32(CS8) + **(**Tcc_t)(__ccgo_up(t + 17 + 6)) = uint8(1) + **(**Tcc_t)(__ccgo_up(t + 17 + 5)) = uint8(0) +} + +func Xcfsetospeed(tls *TLS, tio uintptr, speed Tspeed_t) (r int32) { + if __ccgo_strace { + trc("tls=%v tio=%v speed=%v, (%v:)", tls, tio, speed, origin(2)) + defer func() { trc("-> %v", r) }() + } + if speed&Uint32FromInt32(^Int32FromInt32(CBAUD)) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + **(**Ttcflag_t)(__ccgo_up(tio + 8)) &= Uint32FromInt32(^Int32FromInt32(CBAUD)) + **(**Ttcflag_t)(__ccgo_up(tio + 8)) |= speed + return 0 +} + +func Xcfsetispeed(tls *TLS, tio uintptr, speed Tspeed_t) (r int32) { + if __ccgo_strace { + trc("tls=%v tio=%v speed=%v, (%v:)", tls, tio, speed, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + _ = v1 + if speed != 0 { + v1 = Xcfsetospeed(tls, tio, speed) + } else { + v1 = 0 + } + return v1 +} + +func Xcfsetspeed(tls *TLS, tio uintptr, speed Tspeed_t) (r int32) { + if __ccgo_strace { + trc("tls=%v tio=%v speed=%v, (%v:)", tls, tio, speed, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xcfsetospeed(tls, tio, speed) +} + +func Xtcdrain(tls *TLS, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_ioctl), int64(fd), int64(Int32FromInt32(TCSBRK)), int64(Int32FromInt32(1)), 0, 0, 0)))) +} + +func Xtcflow(tls *TLS, fd int32, action int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v action=%v, (%v:)", tls, fd, action, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + return Xioctl(tls, fd, int32(TCXONC), VaList(bp+8, action)) +} + +func Xtcflush(tls *TLS, fd int32, queue int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v queue=%v, (%v:)", tls, fd, queue, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + return Xioctl(tls, fd, int32(TCFLSH), VaList(bp+8, queue)) +} + +func Xtcgetattr(tls *TLS, fd int32, tio uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v tio=%v, (%v:)", tls, fd, tio, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + if Xioctl(tls, fd, int32(TCGETS), VaList(bp+8, tio)) != 0 { + return -int32(1) + } + return 0 +} + +func Xtcgetsid(tls *TLS, fd int32) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var _ /* sid at bp+0 */ int32 + if Xioctl(tls, fd, int32(TIOCGSID), VaList(bp+16, bp)) < 0 { + return -int32(1) + } + return **(**int32)(__ccgo_up(bp)) +} + +func Xtcgetwinsize(tls *TLS, fd int32, wsz uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v wsz=%v, (%v:)", tls, fd, wsz, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_ioctl), int64(fd), int64(Int32FromInt32(TIOCGWINSZ)), int64(wsz))))) +} + +func Xtcsendbreak(tls *TLS, fd int32, dur int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v dur=%v, (%v:)", tls, fd, dur, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + /* nonzero duration is implementation-defined, so ignore it */ + return Xioctl(tls, fd, int32(TCSBRK), VaList(bp+8, 0)) +} + +func Xtcsetattr(tls *TLS, fd int32, act int32, tio uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v act=%v tio=%v, (%v:)", tls, fd, act, tio, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + if act < 0 || act > int32(2) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + return Xioctl(tls, fd, int32(TCSETS)+act, VaList(bp+8, tio)) +} + +func Xtcsetwinsize(tls *TLS, fd int32, wsz uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v wsz=%v, (%v:)", tls, fd, wsz, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_ioctl), int64(fd), int64(Int32FromInt32(TIOCSWINSZ)), int64(wsz))))) +} + +func X__map_file(tls *TLS, pathname uintptr, size uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v pathname=%v size=%v, (%v:)", tls, pathname, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(144) + defer tls.Free(144) + var fd int32 + var map1, v1 uintptr + var _ /* st at bp+0 */ Tstat + _, _, _ = fd, map1, v1 + map1 = uintptr(-Int32FromInt32(1)) + fd = int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_open), int64(pathname), int64(Int32FromInt32(O_RDONLY)|Int32FromInt32(O_CLOEXEC)|Int32FromInt32(O_NONBLOCK)|Int32FromInt32(O_LARGEFILE)))))) + if fd < 0 { + return uintptr(0) + } + if !(X__fstat(tls, fd, bp) != 0) { + map1 = X__mmap(tls, uintptr(0), Uint64FromInt64((**(**Tstat)(__ccgo_up(bp))).Fst_size), int32(PROT_READ), int32(MAP_SHARED), fd, 0) + **(**Tsize_t)(__ccgo_up(size)) = Uint64FromInt64((**(**Tstat)(__ccgo_up(bp))).Fst_size) + } + X__syscall1(tls, int64(SYS_close), int64(fd)) + if map1 == uintptr(-Int32FromInt32(1)) { + v1 = uintptr(0) + } else { + v1 = map1 + } + return v1 +} + +func X__month_to_secs(tls *TLS, month int32, is_leap int32) (r int32) { + if __ccgo_strace { + trc("tls=%v month=%v is_leap=%v, (%v:)", tls, month, is_leap, origin(2)) + defer func() { trc("-> %v", r) }() + } + var t int32 + _ = t + t = _secs_through_month[month] + if is_leap != 0 && month >= int32(2) { + t = t + int32(86400) + } + return t +} + +var _secs_through_month = [12]int32{ + 1: Int32FromInt32(31) * Int32FromInt32(86400), + 2: Int32FromInt32(59) * Int32FromInt32(86400), + 3: Int32FromInt32(90) * Int32FromInt32(86400), + 4: Int32FromInt32(120) * Int32FromInt32(86400), + 5: Int32FromInt32(151) * Int32FromInt32(86400), + 6: Int32FromInt32(181) * Int32FromInt32(86400), + 7: Int32FromInt32(212) * Int32FromInt32(86400), + 8: Int32FromInt32(243) * Int32FromInt32(86400), + 9: Int32FromInt32(273) * Int32FromInt32(86400), + 10: Int32FromInt32(304) * Int32FromInt32(86400), + 11: Int32FromInt32(334) * Int32FromInt32(86400), +} + +const DAYS_PER_100Y = 36524 +const DAYS_PER_400Y = 146097 +const DAYS_PER_4Y = 1461 +const LEAPOCH = 951868800 + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +/* 2000-03-01 (mod 400 year, immediately after feb29 */ + +func X__secs_to_tm(tls *TLS, t int64, tm uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v t=%v tm=%v, (%v:)", tls, t, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + var c_cycles, leap, months, q_cycles, qc_cycles, remdays, remsecs, remyears, wday, yday int32 + var days, secs, years int64 + _, _, _, _, _, _, _, _, _, _, _, _, _ = c_cycles, days, leap, months, q_cycles, qc_cycles, remdays, remsecs, remyears, secs, wday, yday, years + /* Reject time_t values whose year would overflow int */ + if t < int64(-Int32FromInt32(1)-Int32FromInt32(0x7fffffff))*Int64FromInt64(31622400) || t > Int64FromInt32(INT_MAX)*Int64FromInt64(31622400) { + return -int32(1) + } + secs = t - (Int64FromInt64(946684800) + int64(Int32FromInt32(86400)*(Int32FromInt32(31)+Int32FromInt32(29)))) + days = secs / int64(86400) + remsecs = int32(secs % int64(86400)) + if remsecs < 0 { + remsecs = remsecs + int32(86400) + days = days - 1 + } + wday = int32((int64(3) + days) % int64(7)) + if wday < 0 { + wday = wday + int32(7) + } + qc_cycles = int32(days / int64(Int32FromInt32(365)*Int32FromInt32(400)+Int32FromInt32(97))) + remdays = int32(days % int64(Int32FromInt32(365)*Int32FromInt32(400)+Int32FromInt32(97))) + if remdays < 0 { + remdays = remdays + (Int32FromInt32(365)*Int32FromInt32(400) + Int32FromInt32(97)) + qc_cycles = qc_cycles - 1 + } + c_cycles = remdays / (Int32FromInt32(365)*Int32FromInt32(100) + Int32FromInt32(24)) + if c_cycles == int32(4) { + c_cycles = c_cycles - 1 + } + remdays = remdays - c_cycles*(Int32FromInt32(365)*Int32FromInt32(100)+Int32FromInt32(24)) + q_cycles = remdays / (Int32FromInt32(365)*Int32FromInt32(4) + Int32FromInt32(1)) + if q_cycles == int32(25) { + q_cycles = q_cycles - 1 + } + remdays = remdays - q_cycles*(Int32FromInt32(365)*Int32FromInt32(4)+Int32FromInt32(1)) + remyears = remdays / int32(365) + if remyears == int32(4) { + remyears = remyears - 1 + } + remdays = remdays - remyears*int32(365) + leap = BoolInt32(!(remyears != 0) && (q_cycles != 0 || !(c_cycles != 0))) + yday = remdays + int32(31) + int32(28) + leap + if yday >= int32(365)+leap { + yday = yday - (int32(365) + leap) + } + years = int64(remyears+int32(4)*q_cycles+int32(100)*c_cycles) + int64(400)*int64(qc_cycles) + months = 0 + for { + if !(int32(_days_in_month[months]) <= remdays) { + break + } + remdays = remdays - int32(_days_in_month[months]) + goto _1 + _1: + ; + months = months + 1 + } + if months >= int32(10) { + months = months - int32(12) + years = years + 1 + } + if years+int64(100) > int64(INT_MAX) || years+int64(100) < int64(-Int32FromInt32(1)-Int32FromInt32(0x7fffffff)) { + return -int32(1) + } + (*Ttm)(unsafe.Pointer(tm)).Ftm_year = int32(years + int64(100)) + (*Ttm)(unsafe.Pointer(tm)).Ftm_mon = months + int32(2) + (*Ttm)(unsafe.Pointer(tm)).Ftm_mday = remdays + int32(1) + (*Ttm)(unsafe.Pointer(tm)).Ftm_wday = wday + (*Ttm)(unsafe.Pointer(tm)).Ftm_yday = yday + (*Ttm)(unsafe.Pointer(tm)).Ftm_hour = remsecs / int32(3600) + (*Ttm)(unsafe.Pointer(tm)).Ftm_min = remsecs / int32(60) % int32(60) + (*Ttm)(unsafe.Pointer(tm)).Ftm_sec = remsecs % int32(60) + return 0 +} + +var _days_in_month = [12]int8{ + 0: int8(31), + 1: int8(30), + 2: int8(31), + 3: int8(30), + 4: int8(31), + 5: int8(31), + 6: int8(30), + 7: int8(31), + 8: int8(30), + 9: int8(31), + 10: int8(31), + 11: int8(29), +} + +func X__tm_to_secs(tls *TLS, tm uintptr) (r int64) { + if __ccgo_strace { + trc("tls=%v tm=%v, (%v:)", tls, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var adj, month int32 + var t, year int64 + var _ /* is_leap at bp+0 */ int32 + _, _, _, _ = adj, month, t, year + year = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_year) + month = (*Ttm)(unsafe.Pointer(tm)).Ftm_mon + if month >= int32(12) || month < 0 { + adj = month / int32(12) + month = month % int32(12) + if month < 0 { + adj = adj - 1 + month = month + int32(12) + } + year = year + int64(adj) + } + t = X__year_to_secs(tls, year, bp) + t = t + int64(X__month_to_secs(tls, month, **(**int32)(__ccgo_up(bp)))) + t = t + int64(86400)*int64((*Ttm)(unsafe.Pointer(tm)).Ftm_mday-Int32FromInt32(1)) + t = t + int64(3600)*int64((*Ttm)(unsafe.Pointer(tm)).Ftm_hour) + t = t + int64(60)*int64((*Ttm)(unsafe.Pointer(tm)).Ftm_min) + t = t + int64((*Ttm)(unsafe.Pointer(tm)).Ftm_sec) + return t +} + +var _std_name [7]int8 +var _dst_name [7]int8 + +var _dst_off int32 +var _r0 [5]int32 +var _r12 [5]int32 + +var _zi uintptr +var _trans uintptr +var _index uintptr +var _types uintptr +var _abbrevs uintptr +var _abbrevs_end uintptr +var _map_size Tsize_t + +var _old_tz_buf [32]int8 +var _old_tz = uintptr(unsafe.Pointer(&_old_tz_buf)) +var _old_tz_size = uint64(32) + +var _lock4 [1]int32 + +func _getint2(tls *TLS, p uintptr) (r int32) { + var x uint32 + _ = x + x = uint32(0) + for { + if !(Uint32FromInt32(int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(p)))))-int32('0')) < uint32(10)) { + break + } + x = Uint32FromInt32(int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(p)))))-int32('0')) + uint32(10)*x + goto _1 + _1: + ; + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + } + return Int32FromUint32(x) +} + +func _getoff(tls *TLS, p uintptr) (r int32) { + var neg, off, v1 int32 + _, _, _ = neg, off, v1 + neg = 0 + if int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(p))))) == int32('-') { + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + neg = int32(1) + } else { + if int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(p))))) == int32('+') { + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + } + } + off = int32(3600) * _getint2(tls, p) + if int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(p))))) == int32(':') { + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + off = off + int32(60)*_getint2(tls, p) + if int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(p))))) == int32(':') { + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + off = off + _getint2(tls, p) + } + } + if neg != 0 { + v1 = -off + } else { + v1 = off + } + return v1 +} + +func _getrule(tls *TLS, p uintptr, rule uintptr) { + var r, v1 int32 + _, _ = r, v1 + v1 = int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(p))))) + **(**int32)(__ccgo_up(rule)) = v1 + r = v1 + if r != int32('M') { + if r == int32('J') { + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + } else { + **(**int32)(__ccgo_up(rule)) = 0 + } + **(**int32)(__ccgo_up(rule + 1*4)) = _getint2(tls, p) + } else { + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + **(**int32)(__ccgo_up(rule + 1*4)) = _getint2(tls, p) + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + **(**int32)(__ccgo_up(rule + 2*4)) = _getint2(tls, p) + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + **(**int32)(__ccgo_up(rule + 3*4)) = _getint2(tls, p) + } + if int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(p))))) == int32('/') { + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + **(**int32)(__ccgo_up(rule + 4*4)) = _getoff(tls, p) + } else { + **(**int32)(__ccgo_up(rule + 4*4)) = int32(7200) + } +} + +func _getname(tls *TLS, d uintptr, p uintptr) { + var i, v3 int32 + _, _ = i, v3 + if int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(p))))) == int32('<') { + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + i = 0 + for { + if !(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(p)) + uintptr(i))) != 0 && int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(p)) + uintptr(i)))) != int32('>')) { + break + } + if i < int32(TZNAME_MAX) { + **(**int8)(__ccgo_up(d + uintptr(i))) = **(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(p)) + uintptr(i))) + } + goto _1 + _1: + ; + i = i + 1 + } + if **(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(p)) + uintptr(i))) != 0 { + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + } + } else { + i = 0 + for { + if !(Uint32FromInt32(int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(p)) + uintptr(i))))|int32(32)-int32('a')) < uint32(26)) { + break + } + if i < int32(TZNAME_MAX) { + **(**int8)(__ccgo_up(d + uintptr(i))) = **(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(p)) + uintptr(i))) + } + goto _2 + _2: + ; + i = i + 1 + } + } + **(**uintptr)(__ccgo_up(p)) += uintptr(i) + if i < int32(TZNAME_MAX) { + v3 = i + } else { + v3 = int32(TZNAME_MAX) + } + **(**int8)(__ccgo_up(d + uintptr(v3))) = 0 +} + +func _zi_read32(tls *TLS, z uintptr) (r Tuint32_t) { + return uint32(**(**uint8)(__ccgo_up(z)))< Uint64FromInt32(Int32FromInt32(PATH_MAX)+Int32FromInt32(1)) { + **(**uintptr)(__ccgo_up(bp + 288)) = uintptr(unsafe.Pointer(&X__utc)) + i = Uint64FromInt32(3) + } + if i >= _old_tz_size { + _old_tz_size = _old_tz_size * uint64(2) + if i >= _old_tz_size { + _old_tz_size = i + uint64(1) + } + if _old_tz_size > Uint64FromInt32(Int32FromInt32(PATH_MAX)+Int32FromInt32(2)) { + _old_tz_size = Uint64FromInt32(Int32FromInt32(PATH_MAX) + Int32FromInt32(2)) + } + _old_tz = Xmalloc(tls, _old_tz_size) + } + if _old_tz != 0 { + Xmemcpy(tls, _old_tz, **(**uintptr)(__ccgo_up(bp + 288)), i+uint64(1)) + } + posix_form = 0 + if int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 288))))) != int32(':') { + **(**uintptr)(__ccgo_up(bp + 296)) = **(**uintptr)(__ccgo_up(bp + 288)) + _getname(tls, bp+308, bp+296) + if **(**uintptr)(__ccgo_up(bp + 296)) != **(**uintptr)(__ccgo_up(bp + 288)) && (int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 296))))) == int32('+') || int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 296))))) == int32('-') || BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 296)))))-uint32('0') < uint32(10)) != 0 || !(Xstrcmp(tls, bp+308, __ccgo_ts+1772) != 0) || !(Xstrcmp(tls, bp+308, __ccgo_ts+1776) != 0)) { + posix_form = int32(1) + } + } + /* Non-suid can use an absolute tzfile pathname or a relative + * pathame beginning with "."; in secure mode, only the + * standard path will be searched. */ + if !(posix_form != 0) { + if int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 288))))) == int32(':') { + **(**uintptr)(__ccgo_up(bp + 288)) = **(**uintptr)(__ccgo_up(bp + 288)) + 1 + } + if int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 288))))) == int32('/') || int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 288))))) == int32('.') { + if !(X__libc.Fsecure != 0) || !(Xstrcmp(tls, **(**uintptr)(__ccgo_up(bp + 288)), __ccgo_ts+1757) != 0) { + map1 = X__map_file(tls, **(**uintptr)(__ccgo_up(bp + 288)), uintptr(unsafe.Pointer(&_map_size))) + } + } else { + l = _strlen(tls, **(**uintptr)(__ccgo_up(bp + 288))) + if l <= uint64(NAME_MAX) && !(Xstrchr(tls, **(**uintptr)(__ccgo_up(bp + 288)), int32('.')) != 0) { + Xmemcpy(tls, pathname, **(**uintptr)(__ccgo_up(bp + 288)), l+uint64(1)) + **(**int8)(__ccgo_up(pathname + uintptr(l))) = 0 + try = uintptr(unsafe.Pointer(&_search)) + for { + if !(!(map1 != 0) && **(**int8)(__ccgo_up(try)) != 0) { + break + } + l = _strlen(tls, try) + Xmemcpy(tls, pathname-uintptr(l), try, l) + map1 = X__map_file(tls, pathname-uintptr(l), uintptr(unsafe.Pointer(&_map_size))) + goto _3 + _3: + ; + try = try + uintptr(l+uint64(1)) + } + } + } + if !(map1 != 0) { + **(**uintptr)(__ccgo_up(bp + 288)) = uintptr(unsafe.Pointer(&X__utc)) + } + } + if map1 != 0 && (_map_size < uint64(44) || Xmemcmp(tls, map1, __ccgo_ts+1780, uint64(4)) != 0) { + X__munmap(tls, map1, _map_size) + map1 = uintptr(0) + **(**uintptr)(__ccgo_up(bp + 288)) = uintptr(unsafe.Pointer(&X__utc)) + } + _zi = map1 + if map1 != 0 { + scale = int32(2) + if Int32FromUint8(**(**uint8)(__ccgo_up(map1 + 4))) != int32('1') { + *(*[6]uint8)(unsafe.Pointer(bp)) = [6]uint8{ + 0: uint8(1), + 1: uint8(1), + 2: uint8(8), + 3: uint8(5), + 4: uint8(6), + 5: uint8(1), + } + skip = _zi_dotprod(tls, _zi+uintptr(20), bp, uint64(6)) + _trans = _zi + uintptr(skip) + uintptr(44) + uintptr(44) + scale = scale + 1 + } else { + _trans = _zi + uintptr(44) + } + _index = _trans + uintptr(_zi_read32(tls, _trans-uintptr(12))<> scale) + if !(n != 0) { + if alt != 0 { + **(**Tsize_t)(__ccgo_up(alt)) = uint64(0) + } + return uint64(0) + } + /* Binary search for 'most-recent rule before t'. */ + for n > uint64(1) { + m = a + n/uint64(2) + x = uint64(_zi_read32(tls, _trans+uintptr(m<> scale) + if a == n-uint64(1) { + return Uint64FromInt32(-Int32FromInt32(1)) + } + if a == uint64(0) { + x = uint64(_zi_read32(tls, _trans)) + if scale == int32(3) { + x = x<>(m-int32(1))&int32(1) + } + return r +} + +/* Convert a POSIX DST rule plus year to seconds since epoch. */ + +func _rule_to_secs(tls *TLS, rule uintptr, year int32) (r int64) { + bp := tls.Alloc(16) + defer tls.Free(16) + var d, days, m, n, wday, x int32 + var t int64 + var _ /* is_leap at bp+0 */ int32 + _, _, _, _, _, _, _ = d, days, m, n, t, wday, x + t = X__year_to_secs(tls, int64(year), bp) + if **(**int32)(__ccgo_up(rule)) != int32('M') { + x = **(**int32)(__ccgo_up(rule + 1*4)) + if **(**int32)(__ccgo_up(rule)) == int32('J') && (x < int32(60) || !(**(**int32)(__ccgo_up(bp)) != 0)) { + x = x - 1 + } + t = t + int64(int32(86400)*x) + } else { + m = **(**int32)(__ccgo_up(rule + 1*4)) + n = **(**int32)(__ccgo_up(rule + 2*4)) + d = **(**int32)(__ccgo_up(rule + 3*4)) + t = t + int64(X__month_to_secs(tls, m-int32(1), **(**int32)(__ccgo_up(bp)))) + wday = int32((t+int64(Int32FromInt32(4)*Int32FromInt32(86400)))%int64(Int32FromInt32(7)*Int32FromInt32(86400))) / int32(86400) + days = d - wday + if days < 0 { + days = days + int32(7) + } + if n == int32(5) && days+int32(28) >= _days_in_month1(tls, m, **(**int32)(__ccgo_up(bp))) { + n = int32(4) + } + t = t + int64(int32(86400)*(days+int32(7)*(n-int32(1)))) + } + t = t + int64(**(**int32)(__ccgo_up(rule + 4*4))) + return t +} + +/* Determine the time zone in effect for a given time in seconds since the + * epoch. It can be given in local or universal time. The results will + * indicate whether DST is in effect at the queried time, and will give both + * the GMT offset for the active zone/DST rule and the opposite DST. This + * enables a caller to efficiently adjust for the case where an explicit + * DST specification mismatches what would be in effect at the time. */ + +func X__secs_to_zone(tls *TLS, t int64, local int32, isdst uintptr, offset uintptr, oppoff uintptr, zonename uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v local=%v isdst=%v offset=%v oppoff=%v zonename=%v, (%v:)", tls, t, local, isdst, offset, oppoff, zonename, origin(2)) + } + bp := tls.Alloc(16) + defer tls.Free(16) + var i Tsize_t + var t0, t1, y int64 + var _ /* alt at bp+0 */ Tsize_t + _, _, _, _ = i, t0, t1, y + ___lock(tls, uintptr(unsafe.Pointer(&_lock4))) + _do_tzset(tls) + if _zi != 0 { + i = _scan_trans(tls, t, local, bp) + if i != Uint64FromInt32(-Int32FromInt32(1)) { + **(**int32)(__ccgo_up(isdst)) = Int32FromUint8(**(**uint8)(__ccgo_up(_types + uintptr(uint64(6)*i+uint64(4))))) + **(**int64)(__ccgo_up(offset)) = int64(Int32FromUint32(_zi_read32(tls, _types+uintptr(uint64(6)*i)))) + **(**uintptr)(__ccgo_up(zonename)) = _abbrevs + uintptr(**(**uint8)(__ccgo_up(_types + uintptr(uint64(6)*i+uint64(5))))) + if oppoff != 0 { + **(**int64)(__ccgo_up(oppoff)) = int64(Int32FromUint32(_zi_read32(tls, _types+uintptr(uint64(6)***(**Tsize_t)(__ccgo_up(bp)))))) + } + ___unlock(tls, uintptr(unsafe.Pointer(&_lock4))) + return + } + } + if !(Xdaylight != 0) { + goto std + } + /* FIXME: may be broken if DST changes right at year boundary? + * Also, this could be more efficient.*/ + y = t/int64(31556952) + int64(70) + for X__year_to_secs(tls, y, uintptr(0)) > t { + y = y - 1 + } + for X__year_to_secs(tls, y+int64(1), uintptr(0)) < t { + y = y + 1 + } + t0 = _rule_to_secs(tls, uintptr(unsafe.Pointer(&_r0)), int32(y)) + t1 = _rule_to_secs(tls, uintptr(unsafe.Pointer(&_r12)), int32(y)) + if !(local != 0) { + t0 = t0 + Xtimezone + t1 = t1 + int64(_dst_off) + } + if t0 < t1 { + if t >= t0 && t < t1 { + goto dst + } + goto std + } else { + if t >= t1 && t < t0 { + goto std + } + goto dst + } + goto std +std: + ; + **(**int32)(__ccgo_up(isdst)) = 0 + **(**int64)(__ccgo_up(offset)) = -Xtimezone + if oppoff != 0 { + **(**int64)(__ccgo_up(oppoff)) = int64(-_dst_off) + } + **(**uintptr)(__ccgo_up(zonename)) = Xtzname[0] + ___unlock(tls, uintptr(unsafe.Pointer(&_lock4))) + return + goto dst +dst: + ; + **(**int32)(__ccgo_up(isdst)) = int32(1) + **(**int64)(__ccgo_up(offset)) = int64(-_dst_off) + if oppoff != 0 { + **(**int64)(__ccgo_up(oppoff)) = -Xtimezone + } + **(**uintptr)(__ccgo_up(zonename)) = Xtzname[int32(1)] + ___unlock(tls, uintptr(unsafe.Pointer(&_lock4))) +} + +func ___tzset(tls *TLS) { + ___lock(tls, uintptr(unsafe.Pointer(&_lock4))) + _do_tzset(tls) + ___unlock(tls, uintptr(unsafe.Pointer(&_lock4))) +} + +func X__tm_to_tzname(tls *TLS, tm uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v tm=%v, (%v:)", tls, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + var p uintptr + _ = p + p = (*Ttm)(unsafe.Pointer(tm)).F__tm_zone + ___lock(tls, uintptr(unsafe.Pointer(&_lock4))) + _do_tzset(tls) + if p != uintptr(unsafe.Pointer(&X__utc)) && p != Xtzname[0] && p != Xtzname[int32(1)] && (!(_zi != 0) || uint64(p)-uint64(_abbrevs) >= Uint64FromInt64(int64(_abbrevs_end)-int64(_abbrevs))) { + p = __ccgo_ts + } + ___unlock(tls, uintptr(unsafe.Pointer(&_lock4))) + return p +} + +func X__year_to_secs(tls *TLS, year int64, is_leap uintptr) (r int64) { + if __ccgo_strace { + trc("tls=%v year=%v is_leap=%v, (%v:)", tls, year, is_leap, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var centuries, cycles, leaps, leaps1, rem, y int32 + var _ /* dummy at bp+0 */ int32 + _, _, _, _, _, _ = centuries, cycles, leaps, leaps1, rem, y + if Uint64FromInt64(year)-uint64(2) <= uint64(136) { + y = int32(year) + leaps = (y - int32(68)) >> int32(2) + if !((y-Int32FromInt32(68))&Int32FromInt32(3) != 0) { + leaps = leaps - 1 + if is_leap != 0 { + **(**int32)(__ccgo_up(is_leap)) = int32(1) + } + } else { + if is_leap != 0 { + **(**int32)(__ccgo_up(is_leap)) = 0 + } + } + return int64(int32(31536000)*(y-int32(70)) + int32(86400)*leaps) + } + if !(is_leap != 0) { + is_leap = bp + } + cycles = int32((year - int64(100)) / int64(400)) + rem = int32((year - int64(100)) % int64(400)) + if rem < 0 { + cycles = cycles - 1 + rem = rem + int32(400) + } + if !(rem != 0) { + **(**int32)(__ccgo_up(is_leap)) = int32(1) + centuries = 0 + leaps1 = 0 + } else { + if rem >= int32(200) { + if rem >= int32(300) { + centuries = int32(3) + rem = rem - int32(300) + } else { + centuries = int32(2) + rem = rem - int32(200) + } + } else { + if rem >= int32(100) { + centuries = int32(1) + rem = rem - int32(100) + } else { + centuries = 0 + } + } + if !(rem != 0) { + **(**int32)(__ccgo_up(is_leap)) = 0 + leaps1 = 0 + } else { + leaps1 = Int32FromUint32(Uint32FromInt32(rem) / uint32(4)) + rem = Int32FromUint32(uint32(rem) % Uint32FromUint32(4)) + **(**int32)(__ccgo_up(is_leap)) = BoolInt32(!(rem != 0)) + } + } + leaps1 = leaps1 + (int32(97)*cycles + int32(24)*centuries - **(**int32)(__ccgo_up(is_leap))) + return (year-int64(100))*int64(31536000) + int64(leaps1)*int64(86400) + int64(946684800) + int64(86400) +} + +func Xasctime(tls *TLS, tm uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v tm=%v, (%v:)", tls, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__asctime_r(tls, tm, uintptr(unsafe.Pointer(&_buf9))) +} + +var _buf9 [26]int8 + +func X__asctime_r(tls *TLS, tm uintptr, buf uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v tm=%v buf=%v, (%v:)", tls, tm, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + if Xsnprintf(tls, buf, uint64(26), __ccgo_ts+1785, VaList(bp+8, X__nl_langinfo_l(tls, int32(ABDAY_1)+(*Ttm)(unsafe.Pointer(tm)).Ftm_wday, uintptr(unsafe.Pointer(&X__c_locale))), X__nl_langinfo_l(tls, int32(ABMON_1)+(*Ttm)(unsafe.Pointer(tm)).Ftm_mon, uintptr(unsafe.Pointer(&X__c_locale))), (*Ttm)(unsafe.Pointer(tm)).Ftm_mday, (*Ttm)(unsafe.Pointer(tm)).Ftm_hour, (*Ttm)(unsafe.Pointer(tm)).Ftm_min, (*Ttm)(unsafe.Pointer(tm)).Ftm_sec, int32(1900)+(*Ttm)(unsafe.Pointer(tm)).Ftm_year)) >= int32(26) { + /* ISO C requires us to use the above format string, + * even if it will not fit in the buffer. Thus asctime_r + * is _supposed_ to crash if the fields in tm are too large. + * We follow this behavior and crash "gracefully" to warn + * application developers that they may not be so lucky + * on other implementations (e.g. stack smashing..). + */ + // __asm__ __volatile__( "hlt" : : : "memory" ); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 108, __ccgo_ts+1817) + } + return buf +} + +func Xasctime_r(tls *TLS, tm uintptr, buf uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v tm=%v buf=%v, (%v:)", tls, tm, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__asctime_r(tls, tm, buf) +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xclock(tls *TLS) (r Tclock_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* ts at bp+0 */ Ttimespec + if X__clock_gettime(tls, int32(CLOCK_PROCESS_CPUTIME_ID), bp) != 0 { + return int64(-int32(1)) + } + if (**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec > Int64FromInt64(0x7fffffffffffffff)/Int64FromInt32(1000000) || (**(**Ttimespec)(__ccgo_up(bp))).Ftv_nsec/int64(1000) > int64(0x7fffffffffffffff)-int64(1000000)*(**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec { + return int64(-int32(1)) + } + return (**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec*int64(1000000) + (**(**Ttimespec)(__ccgo_up(bp))).Ftv_nsec/int64(1000) +} + +func Xclock_getcpuclockid(tls *TLS, pid Tpid_t, clk uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v pid=%v clk=%v, (%v:)", tls, pid, clk, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var id Tclockid_t + var ret int32 + var _ /* ts at bp+0 */ Ttimespec + _, _ = id, ret + id = Int32FromUint32(Uint32FromInt32(-pid-Int32FromInt32(1))*uint32(8) + uint32(2)) + ret = int32(X__syscall2(tls, int64(SYS_clock_getres), int64(id), int64(bp))) + if ret == -int32(EINVAL) { + ret = -int32(ESRCH) + } + if ret != 0 { + return -ret + } + **(**Tclockid_t)(__ccgo_up(clk)) = id + return 0 +} + +func Xclock_getres(tls *TLS, clk Tclockid_t, ts uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v clk=%v ts=%v, (%v:)", tls, clk, ts, origin(2)) + defer func() { trc("-> %v", r) }() + } + /* If reaching this point, it's a 64-bit arch or time64-only + * 32-bit arch and we can get result directly into timespec. */ + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_clock_getres), int64(clk), int64(ts))))) +} + +func X__clock_gettime(tls *TLS, clk Tclockid_t, ts uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v clk=%v ts=%v, (%v:)", tls, clk, ts, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + r = int32(X__syscall2(tls, int64(SYS_clock_gettime), int64(clk), int64(ts))) + if r == -int32(ENOSYS) { + if clk == CLOCK_REALTIME { + X__syscall2(tls, int64(SYS_gettimeofday), int64(ts), int64(Int32FromInt32(0))) + (*Ttimespec)(unsafe.Pointer(ts)).Ftv_nsec = int64(int32((*Ttimespec)(unsafe.Pointer(ts)).Ftv_nsec) * int32(1000)) + return 0 + } + r = -int32(EINVAL) + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func Xclock_gettime(tls *TLS, clk Tclockid_t, ts uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v clk=%v ts=%v, (%v:)", tls, clk, ts, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__clock_gettime(tls, clk, ts) +} + +func X__clock_nanosleep(tls *TLS, clk Tclockid_t, flags int32, req uintptr, rem uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v clk=%v flags=%v req=%v rem=%v, (%v:)", tls, clk, flags, req, rem, origin(2)) + defer func() { trc("-> %v", r) }() + } + if clk == int32(CLOCK_THREAD_CPUTIME_ID) { + return int32(EINVAL) + } + if clk == CLOCK_REALTIME && !(flags != 0) { + return int32(-___syscall_cp(tls, int64(SYS_nanosleep), int64(req), int64(rem), 0, 0, 0, 0)) + } + return int32(-___syscall_cp(tls, int64(SYS_clock_nanosleep), int64(clk), int64(flags), int64(req), int64(rem), 0, 0)) +} + +func Xclock_nanosleep(tls *TLS, clk Tclockid_t, flags int32, req uintptr, rem uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v clk=%v flags=%v req=%v rem=%v, (%v:)", tls, clk, flags, req, rem, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__clock_nanosleep(tls, clk, flags, req, rem) +} + +func Xclock_settime(tls *TLS, clk Tclockid_t, ts uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v clk=%v ts=%v, (%v:)", tls, clk, ts, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_clock_settime), int64(clk), int64(ts))))) +} + +func Xctime(tls *TLS, t uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v, (%v:)", tls, t, origin(2)) + defer func() { trc("-> %v", r) }() + } + var tm uintptr + _ = tm + tm = Xlocaltime(tls, t) + if !(tm != 0) { + return uintptr(0) + } + return Xasctime(tls, tm) +} + +func Xctime_r(tls *TLS, t uintptr, buf uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v buf=%v, (%v:)", tls, t, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var tm_p, v1 uintptr + var _ /* tm at bp+0 */ Ttm + _, _ = tm_p, v1 + tm_p = Xlocaltime_r(tls, t, bp) + if tm_p != 0 { + v1 = Xasctime_r(tls, tm_p, buf) + } else { + v1 = uintptr(0) + } + return v1 +} + +func Xdifftime(tls *TLS, t1 Ttime_t, t0 Ttime_t) (r float64) { + if __ccgo_strace { + trc("tls=%v t1=%v t0=%v, (%v:)", tls, t1, t0, origin(2)) + defer func() { trc("-> %v", r) }() + } + return float64(t1 - t0) +} + +type Ttimeb = struct { + Ftime Ttime_t + Fmillitm uint16 + Ftimezone int16 + Fdstflag int16 +} + +func Xftime(tls *TLS, tp uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v tp=%v, (%v:)", tls, tp, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 int16 + var _ /* ts at bp+0 */ Ttimespec + _ = v1 + Xclock_gettime(tls, CLOCK_REALTIME, bp) + (*Ttimeb)(unsafe.Pointer(tp)).Ftime = (**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec + (*Ttimeb)(unsafe.Pointer(tp)).Fmillitm = Uint16FromInt64((**(**Ttimespec)(__ccgo_up(bp))).Ftv_nsec / int64(1000000)) + v1 = Int16FromInt32(0) + (*Ttimeb)(unsafe.Pointer(tp)).Fdstflag = v1 + (*Ttimeb)(unsafe.Pointer(tp)).Ftimezone = v1 + return 0 +} + +func Xgetdate(tls *TLS, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(112) + defer tls.Free(112) + var datemsk, f, p, ret uintptr + var _ /* cs at bp+100 */ int32 + var _ /* fmt at bp+0 */ [100]int8 + _, _, _, _ = datemsk, f, p, ret + ret = uintptr(0) + datemsk = Xgetenv(tls, __ccgo_ts+1829) + f = uintptr(0) + _pthread_setcancelstate(tls, PTHREAD_CANCEL_DEFERRED, bp+100) + if !(datemsk != 0) { + Xgetdate_err = int32(1) + goto out + } + f = Xfopen(tls, datemsk, __ccgo_ts+381) + if !(f != 0) { + if **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(ENOMEM) { + Xgetdate_err = int32(6) + } else { + Xgetdate_err = int32(2) + } + goto out + } + for Xfgets(tls, bp, int32(100), f) != 0 { + p = Xstrptime(tls, s, bp, uintptr(unsafe.Pointer(&_tmbuf))) + if p != 0 && !(**(**int8)(__ccgo_up(p)) != 0) { + ret = uintptr(unsafe.Pointer(&_tmbuf)) + goto out + } + } + if Xferror(tls, f) != 0 { + Xgetdate_err = int32(5) + } else { + Xgetdate_err = int32(7) + } + goto out +out: + ; + if f != 0 { + Xfclose(tls, f) + } + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 100)), uintptr(0)) + return ret +} + +var _tmbuf Ttm + +func Xgettimeofday(tls *TLS, tv uintptr, tz uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v tv=%v tz=%v, (%v:)", tls, tv, tz, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* ts at bp+0 */ Ttimespec + if !(tv != 0) { + return 0 + } + Xclock_gettime(tls, CLOCK_REALTIME, bp) + (*Ttimeval)(unsafe.Pointer(tv)).Ftv_sec = (**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec + (*Ttimeval)(unsafe.Pointer(tv)).Ftv_usec = int64(int32((**(**Ttimespec)(__ccgo_up(bp))).Ftv_nsec) / int32(1000)) + return 0 +} + +func Xgmtime(tls *TLS, t uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v, (%v:)", tls, t, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__gmtime_r(tls, t, uintptr(unsafe.Pointer(&_tm))) +} + +var _tm Ttm + +func X__gmtime_r(tls *TLS, t uintptr, tm uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v tm=%v, (%v:)", tls, t, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + if X__secs_to_tm(tls, int64(**(**Ttime_t)(__ccgo_up(t))), tm) < 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOVERFLOW) + return uintptr(0) + } + (*Ttm)(unsafe.Pointer(tm)).Ftm_isdst = 0 + (*Ttm)(unsafe.Pointer(tm)).F__tm_gmtoff = 0 + (*Ttm)(unsafe.Pointer(tm)).F__tm_zone = uintptr(unsafe.Pointer(&X__utc)) + return tm +} + +func Xgmtime_r(tls *TLS, t uintptr, tm uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v tm=%v, (%v:)", tls, t, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__gmtime_r(tls, t, tm) +} + +func Xlocaltime(tls *TLS, t uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v, (%v:)", tls, t, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__localtime_r(tls, t, uintptr(unsafe.Pointer(&_tm1))) +} + +var _tm1 Ttm + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func X__localtime_r(tls *TLS, t uintptr, tm uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v tm=%v, (%v:)", tls, t, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + /* Reject time_t values whose year would overflow int because + * __secs_to_zone cannot safely handle them. */ + if int64(**(**Ttime_t)(__ccgo_up(t))) < int64(-Int32FromInt32(1)-Int32FromInt32(0x7fffffff))*Int64FromInt64(31622400) || int64(**(**Ttime_t)(__ccgo_up(t))) > Int64FromInt32(INT_MAX)*Int64FromInt64(31622400) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOVERFLOW) + return uintptr(0) + } + X__secs_to_zone(tls, int64(**(**Ttime_t)(__ccgo_up(t))), 0, tm+32, tm+40, uintptr(0), tm+48) + if X__secs_to_tm(tls, int64(**(**Ttime_t)(__ccgo_up(t)))+(*Ttm)(unsafe.Pointer(tm)).F__tm_gmtoff, tm) < 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOVERFLOW) + return uintptr(0) + } + return tm +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xlocaltime_r(tls *TLS, t uintptr, tm uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v tm=%v, (%v:)", tls, t, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__localtime_r(tls, t, tm) +} + +func Xmktime(tls *TLS, tm uintptr) (r Ttime_t) { + if __ccgo_strace { + trc("tls=%v tm=%v, (%v:)", tls, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var t int64 + var _ /* new at bp+0 */ Ttm + var _ /* opp at bp+56 */ int64 + _ = t + t = X__tm_to_secs(tls, tm) + X__secs_to_zone(tls, t, int32(1), bp+32, bp+40, bp+56, bp+48) + if (*Ttm)(unsafe.Pointer(tm)).Ftm_isdst >= 0 && (**(**Ttm)(__ccgo_up(bp))).Ftm_isdst != (*Ttm)(unsafe.Pointer(tm)).Ftm_isdst { + t = t - int64(**(**int64)(__ccgo_up(bp + 56))-(**(**Ttm)(__ccgo_up(bp))).F__tm_gmtoff) + } + t = t - int64((**(**Ttm)(__ccgo_up(bp))).F__tm_gmtoff) + if t != t { + goto error + } + X__secs_to_zone(tls, t, 0, bp+32, bp+40, bp+56, bp+48) + if X__secs_to_tm(tls, t+int64((**(**Ttm)(__ccgo_up(bp))).F__tm_gmtoff), bp) < 0 { + goto error + } + **(**Ttm)(__ccgo_up(tm)) = **(**Ttm)(__ccgo_up(bp)) + return t + goto error +error: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOVERFLOW) + return int64(-int32(1)) +} + +func Xnanosleep(tls *TLS, req uintptr, rem uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v req=%v rem=%v, (%v:)", tls, req, rem, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt32(-X__clock_nanosleep(tls, CLOCK_REALTIME, 0, req, rem)))) +} + +func _is_leap(tls *TLS, y int32) (r int32) { + /* Avoid overflow */ + if y > Int32FromInt32(INT_MAX)-Int32FromInt32(1900) { + y = y - int32(2000) + } + y = y + int32(1900) + return BoolInt32(!(y%Int32FromInt32(4) != 0) && (y%int32(100) != 0 || !(y%Int32FromInt32(400) != 0))) +} + +func _week_num(tls *TLS, tm uintptr) (r int32) { + var dec31, jan1, val int32 + _, _, _ = dec31, jan1, val + val = Int32FromUint32((Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_yday) + uint32(7) - (Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_wday)+uint32(6))%uint32(7)) / uint32(7)) + /* If 1 Jan is just 1-3 days past Monday, + * the previous week is also in this year. */ + if (Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_wday)+uint32(371)-Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_yday)-uint32(2))%uint32(7) <= uint32(2) { + val = val + 1 + } + if !(val != 0) { + val = int32(52) + /* If 31 December of prev year a Thursday, + * or Friday of a leap year, then the + * prev year has 53 weeks. */ + dec31 = Int32FromUint32((Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_wday) + uint32(7) - Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_yday) - uint32(1)) % uint32(7)) + if dec31 == int32(4) || dec31 == int32(5) && _is_leap(tls, (*Ttm)(unsafe.Pointer(tm)).Ftm_year%int32(400)-int32(1)) != 0 { + val = val + 1 + } + } else { + if val == int32(53) { + /* If 1 January is not a Thursday, and not + * a Wednesday of a leap year, then this + * year has only 52 weeks. */ + jan1 = Int32FromUint32((Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_wday) + uint32(371) - Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_yday)) % uint32(7)) + if jan1 != int32(4) && (jan1 != int32(3) || !(_is_leap(tls, (*Ttm)(unsafe.Pointer(tm)).Ftm_year) != 0)) { + val = int32(1) + } + } + } + return val +} + +func X__strftime_fmt_1(tls *TLS, s uintptr, l uintptr, f int32, tm uintptr, loc Tlocale_t, pad int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v l=%v f=%v tm=%v loc=%v pad=%v, (%v:)", tls, s, l, f, tm, loc, pad, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var d, fmt, v4, v5 uintptr + var def_pad, width, v1 int32 + var item Tnl_item + var val int64 + _, _, _, _, _, _, _, _, _ = d, def_pad, fmt, item, val, width, v1, v4, v5 + fmt = __ccgo_ts + 1679 + width = int32(2) + def_pad = int32('0') + switch f { + case int32('a'): + if Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_wday) > uint32(6) { + goto string + } + item = int32(ABDAY_1) + (*Ttm)(unsafe.Pointer(tm)).Ftm_wday + goto nl_strcat + case int32('A'): + if Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_wday) > uint32(6) { + goto string + } + item = int32(DAY_1) + (*Ttm)(unsafe.Pointer(tm)).Ftm_wday + goto nl_strcat + case int32('h'): + fallthrough + case int32('b'): + if Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_mon) > uint32(11) { + goto string + } + item = int32(ABMON_1) + (*Ttm)(unsafe.Pointer(tm)).Ftm_mon + goto nl_strcat + case int32('B'): + if Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_mon) > uint32(11) { + goto string + } + item = int32(MON_1) + (*Ttm)(unsafe.Pointer(tm)).Ftm_mon + goto nl_strcat + case int32('c'): + item = int32(D_T_FMT) + goto nl_strftime + case int32('C'): + val = (int64(1900) + int64((*Ttm)(unsafe.Pointer(tm)).Ftm_year)) / int64(100) + goto number + case int32('e'): + def_pad = int32('_') + fallthrough + case int32('d'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_mday) + goto number + case int32('D'): + fmt = __ccgo_ts + 1837 + goto recu_strftime + case int32('F'): + fmt = __ccgo_ts + 1846 + goto recu_strftime + case int32('g'): + fallthrough + case int32('G'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_year) + int64(1900) + if (*Ttm)(unsafe.Pointer(tm)).Ftm_yday < int32(3) && _week_num(tls, tm) != int32(1) { + val = val - 1 + } else { + if (*Ttm)(unsafe.Pointer(tm)).Ftm_yday > int32(360) && _week_num(tls, tm) == int32(1) { + val = val + 1 + } + } + if f == int32('g') { + val = val % int64(100) + } else { + width = int32(4) + } + goto number + case int32('H'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_hour) + goto number + case int32('l'): + def_pad = int32('_') + fallthrough + case int32('I'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_hour) + if !(val != 0) { + val = int64(12) + } else { + if val > int64(12) { + val = val - int64(12) + } + } + goto number + case int32('j'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_yday + int32(1)) + width = int32(3) + goto number + case int32('k'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_hour) + def_pad = int32('_') + goto number + case int32('m'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_mon + int32(1)) + goto number + case int32('M'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_min) + goto number + case int32('n'): + **(**Tsize_t)(__ccgo_up(l)) = uint64(1) + return __ccgo_ts + 367 + case int32('p'): + if (*Ttm)(unsafe.Pointer(tm)).Ftm_hour >= int32(12) { + v1 = int32(PM_STR) + } else { + v1 = int32(AM_STR) + } + item = v1 + goto nl_strcat + case int32('P'): + if (*Ttm)(unsafe.Pointer(tm)).Ftm_hour >= int32(12) { + v1 = int32(PM_STR) + } else { + v1 = int32(AM_STR) + } + item = v1 + fmt = X__nl_langinfo_l(tls, item, loc) + d = s + **(**Tsize_t)(__ccgo_up(l)) = uint64(0) + for { + if !(**(**int8)(__ccgo_up(fmt)) != 0) { + break + } + v4 = d + d = d + 1 + v5 = fmt + fmt = fmt + 1 + **(**int8)(__ccgo_up(v4)) = int8(Xtolower(tls, int32(**(**int8)(__ccgo_up(v5))))) + goto _3 + _3: + ; + **(**Tsize_t)(__ccgo_up(l)) = **(**Tsize_t)(__ccgo_up(l)) + 1 + } + return s + case int32('r'): + item = int32(T_FMT_AMPM) + goto nl_strftime + case int32('R'): + fmt = __ccgo_ts + 1855 + goto recu_strftime + case int32('s'): + val = X__tm_to_secs(tls, tm) - (*Ttm)(unsafe.Pointer(tm)).F__tm_gmtoff + width = int32(1) + goto number + case int32('S'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_sec) + goto number + case int32('t'): + **(**Tsize_t)(__ccgo_up(l)) = uint64(1) + return __ccgo_ts + 1417 + case int32('T'): + fmt = __ccgo_ts + 1861 + goto recu_strftime + case int32('u'): + if (*Ttm)(unsafe.Pointer(tm)).Ftm_wday != 0 { + v1 = (*Ttm)(unsafe.Pointer(tm)).Ftm_wday + } else { + v1 = int32(7) + } + val = int64(v1) + width = int32(1) + goto number + case int32('U'): + val = Int64FromUint32((Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_yday) + uint32(7) - Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_wday)) / uint32(7)) + goto number + case int32('W'): + val = Int64FromUint32((Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_yday) + uint32(7) - (Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_wday)+uint32(6))%uint32(7)) / uint32(7)) + goto number + case int32('V'): + val = int64(_week_num(tls, tm)) + goto number + case int32('w'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_wday) + width = int32(1) + goto number + case int32('x'): + item = int32(D_FMT) + goto nl_strftime + case int32('X'): + item = int32(T_FMT) + goto nl_strftime + case int32('y'): + val = (int64((*Ttm)(unsafe.Pointer(tm)).Ftm_year) + int64(1900)) % int64(100) + if val < 0 { + val = -val + } + goto number + case int32('Y'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_year) + int64(1900) + if val >= int64(10000) { + **(**Tsize_t)(__ccgo_up(l)) = Uint64FromInt32(Xsnprintf(tls, s, uint64(100), __ccgo_ts+1870, VaList(bp+8, val))) + return s + } + width = int32(4) + goto number + case int32('z'): + if (*Ttm)(unsafe.Pointer(tm)).Ftm_isdst < 0 { + **(**Tsize_t)(__ccgo_up(l)) = uint64(0) + return __ccgo_ts + } + **(**Tsize_t)(__ccgo_up(l)) = Uint64FromInt32(Xsnprintf(tls, s, uint64(100), __ccgo_ts+1876, VaList(bp+8, (*Ttm)(unsafe.Pointer(tm)).F__tm_gmtoff/int64(3600)*int64(100)+(*Ttm)(unsafe.Pointer(tm)).F__tm_gmtoff%int64(3600)/int64(60)))) + return s + case int32('Z'): + if (*Ttm)(unsafe.Pointer(tm)).Ftm_isdst < 0 { + **(**Tsize_t)(__ccgo_up(l)) = uint64(0) + return __ccgo_ts + } + fmt = X__tm_to_tzname(tls, tm) + goto string + case int32('%'): + **(**Tsize_t)(__ccgo_up(l)) = uint64(1) + return __ccgo_ts + 414 + default: + return uintptr(0) + } + goto number +number: + ; + if pad != 0 { + v1 = pad + } else { + v1 = def_pad + } + switch v1 { + case int32('-'): + **(**Tsize_t)(__ccgo_up(l)) = Uint64FromInt32(Xsnprintf(tls, s, uint64(100), __ccgo_ts+1883, VaList(bp+8, val))) + case int32('_'): + **(**Tsize_t)(__ccgo_up(l)) = Uint64FromInt32(Xsnprintf(tls, s, uint64(100), __ccgo_ts+1888, VaList(bp+8, width, val))) + case int32('0'): + fallthrough + default: + **(**Tsize_t)(__ccgo_up(l)) = Uint64FromInt32(Xsnprintf(tls, s, uint64(100), __ccgo_ts+1894, VaList(bp+8, width, val))) + break + } + return s + goto nl_strcat +nl_strcat: + ; + fmt = X__nl_langinfo_l(tls, item, loc) + goto string +string: + ; + **(**Tsize_t)(__ccgo_up(l)) = _strlen(tls, fmt) + return fmt + goto nl_strftime +nl_strftime: + ; + fmt = X__nl_langinfo_l(tls, item, loc) + goto recu_strftime +recu_strftime: + ; + **(**Tsize_t)(__ccgo_up(l)) = X__strftime_l(tls, s, uint64(100), fmt, tm, loc) + if !(**(**Tsize_t)(__ccgo_up(l)) != 0) { + return uintptr(0) + } + return s +} + +func X__strftime_l(tls *TLS, s uintptr, n Tsize_t, f uintptr, tm uintptr, loc Tlocale_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v f=%v tm=%v loc=%v, (%v:)", tls, s, n, f, tm, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(128) + defer tls.Free(128) + var d, l, v2 Tsize_t + var pad, plus, v4 int32 + var t, v3 uintptr + var width uint64 + var v9 bool + var _ /* buf at bp+8 */ [100]int8 + var _ /* k at bp+0 */ Tsize_t + var _ /* p at bp+112 */ uintptr + _, _, _, _, _, _, _, _, _, _ = d, l, pad, plus, t, width, v2, v3, v4, v9 + l = uint64(0) + for { + if !(l < n) { + break + } + if !(**(**int8)(__ccgo_up(f)) != 0) { + **(**int8)(__ccgo_up(s + uintptr(l))) = 0 + return l + } + if int32(**(**int8)(__ccgo_up(f))) != int32('%') { + v2 = l + l = l + 1 + **(**int8)(__ccgo_up(s + uintptr(v2))) = **(**int8)(__ccgo_up(f)) + goto _1 + } + f = f + 1 + pad = 0 + if int32(**(**int8)(__ccgo_up(f))) == int32('-') || int32(**(**int8)(__ccgo_up(f))) == int32('_') || int32(**(**int8)(__ccgo_up(f))) == int32('0') { + v3 = f + f = f + 1 + pad = int32(**(**int8)(__ccgo_up(v3))) + } + v4 = BoolInt32(int32(**(**int8)(__ccgo_up(f))) == Int32FromUint8('+')) + plus = v4 + if v4 != 0 { + f = f + 1 + } + if BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(f)))-uint32('0') < uint32(10)) != 0 { + width = Xstrtoul(tls, f, bp+112, int32(10)) + } else { + width = uint64(0) + **(**uintptr)(__ccgo_up(bp + 112)) = f + } + if int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 112))))) == int32('C') || int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 112))))) == int32('F') || int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 112))))) == int32('G') || int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 112))))) == int32('Y') { + if !(width != 0) && **(**uintptr)(__ccgo_up(bp + 112)) != f { + width = uint64(1) + } + } else { + width = uint64(0) + } + f = **(**uintptr)(__ccgo_up(bp + 112)) + if int32(**(**int8)(__ccgo_up(f))) == int32('E') || int32(**(**int8)(__ccgo_up(f))) == int32('O') { + f = f + 1 + } + t = X__strftime_fmt_1(tls, bp+8, bp, int32(**(**int8)(__ccgo_up(f))), tm, loc, pad) + if !(t != 0) { + break + } + if width != 0 { + /* Trim off any sign and leading zeros, then + * count remaining digits to determine behavior + * for the + flag. */ + if int32(**(**int8)(__ccgo_up(t))) == int32('+') || int32(**(**int8)(__ccgo_up(t))) == int32('-') { + t = t + 1 + **(**Tsize_t)(__ccgo_up(bp)) = **(**Tsize_t)(__ccgo_up(bp)) - 1 + } + for { + if !(int32(**(**int8)(__ccgo_up(t))) == int32('0') && Uint32FromInt32(int32(**(**int8)(__ccgo_up(t + 1)))-int32('0')) < uint32(10)) { + break + } + goto _5 + _5: + ; + t = t + 1 + **(**Tsize_t)(__ccgo_up(bp)) = **(**Tsize_t)(__ccgo_up(bp)) - 1 + } + if width < **(**Tsize_t)(__ccgo_up(bp)) { + width = **(**Tsize_t)(__ccgo_up(bp)) + } + d = uint64(0) + for { + if !(Uint32FromInt32(int32(**(**int8)(__ccgo_up(t + uintptr(d))))-int32('0')) < uint32(10)) { + break + } + goto _6 + _6: + ; + d = d + 1 + } + if (*Ttm)(unsafe.Pointer(tm)).Ftm_year < -int32(1900) { + v2 = l + l = l + 1 + **(**int8)(__ccgo_up(s + uintptr(v2))) = int8('-') + width = width - 1 + } else { + if v9 = plus != 0; v9 { + if int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 112))))) == int32('C') { + v4 = int32(3) + } else { + v4 = int32(5) + } + } + if v9 && d+(width-**(**Tsize_t)(__ccgo_up(bp))) >= Uint64FromInt32(v4) { + v2 = l + l = l + 1 + **(**int8)(__ccgo_up(s + uintptr(v2))) = int8('+') + width = width - 1 + } + } + for { + if !(width > **(**Tsize_t)(__ccgo_up(bp)) && l < n) { + break + } + v2 = l + l = l + 1 + **(**int8)(__ccgo_up(s + uintptr(v2))) = int8('0') + goto _11 + _11: + ; + width = width - 1 + } + } + if **(**Tsize_t)(__ccgo_up(bp)) > n-l { + **(**Tsize_t)(__ccgo_up(bp)) = n - l + } + Xmemcpy(tls, s+uintptr(l), t, **(**Tsize_t)(__ccgo_up(bp))) + l = l + **(**Tsize_t)(__ccgo_up(bp)) + goto _1 + _1: + ; + f = f + 1 + } + if n != 0 { + if l == n { + l = n - uint64(1) + } + **(**int8)(__ccgo_up(s + uintptr(l))) = 0 + } + return uint64(0) +} + +func Xstrftime(tls *TLS, s uintptr, n Tsize_t, f uintptr, tm uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v f=%v tm=%v, (%v:)", tls, s, n, f, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__strftime_l(tls, s, n, f, tm, (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale) +} + +func Xstrftime_l(tls *TLS, s uintptr, n Tsize_t, f uintptr, tm uintptr, loc Tlocale_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v f=%v tm=%v loc=%v, (%v:)", tls, s, n, f, tm, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__strftime_l(tls, s, n, f, tm, loc) +} + +func Xstrptime(tls *TLS, s uintptr, f uintptr, tm uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v f=%v tm=%v, (%v:)", tls, s, f, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var adj, i, min, neg, range1, w, want_century, v1, v2, v5, v6 int32 + var dest, ex, v9 uintptr + var len1 Tsize_t + var v8 bool + var _ /* century at bp+4 */ int32 + var _ /* dummy at bp+0 */ int32 + var _ /* new_f at bp+16 */ uintptr + var _ /* relyear at bp+8 */ int32 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = adj, dest, ex, i, len1, min, neg, range1, w, want_century, v1, v2, v5, v6, v8, v9 + want_century = 0 + **(**int32)(__ccgo_up(bp + 4)) = 0 + **(**int32)(__ccgo_up(bp + 8)) = 0 + for **(**int8)(__ccgo_up(f)) != 0 { + if int32(**(**int8)(__ccgo_up(f))) != int32('%') { + v1 = int32(**(**int8)(__ccgo_up(f))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _3 + _3: + if v2 != 0 { + for { + if v8 = **(**int8)(__ccgo_up(s)) != 0; v8 { + v5 = int32(**(**int8)(__ccgo_up(s))) + v6 = BoolInt32(v5 == int32(' ') || Uint32FromInt32(v5)-uint32('\t') < uint32(5)) + goto _7 + _7: + } + if !(v8 && v6 != 0) { + break + } + goto _4 + _4: + ; + s = s + 1 + } + } else { + if int32(**(**int8)(__ccgo_up(s))) != int32(**(**int8)(__ccgo_up(f))) { + return uintptr(0) + } else { + s = s + 1 + } + } + f = f + 1 + continue + } + f = f + 1 + if int32(**(**int8)(__ccgo_up(f))) == int32('+') { + f = f + 1 + } + if BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(f)))-uint32('0') < uint32(10)) != 0 { + w = Int32FromUint64(Xstrtoul(tls, f, bp+16, int32(10))) + f = **(**uintptr)(__ccgo_up(bp + 16)) + } else { + w = -int32(1) + } + adj = 0 + v9 = f + f = f + 1 + switch int32(**(**int8)(__ccgo_up(v9))) { + case int32('A'): + goto _10 + case int32('a'): + goto _11 + case int32('h'): + goto _12 + case int32('B'): + goto _13 + case int32('b'): + goto _14 + case int32('c'): + goto _15 + case int32('C'): + goto _16 + case int32('e'): + goto _17 + case int32('d'): + goto _18 + case int32('D'): + goto _19 + case int32('H'): + goto _20 + case int32('I'): + goto _21 + case int32('j'): + goto _22 + case int32('m'): + goto _23 + case int32('M'): + goto _24 + case int32('t'): + goto _25 + case int32('n'): + goto _26 + case int32('p'): + goto _27 + case int32('r'): + goto _28 + case int32('R'): + goto _29 + case int32('S'): + goto _30 + case int32('T'): + goto _31 + case int32('W'): + goto _32 + case int32('U'): + goto _33 + case int32('w'): + goto _34 + case int32('x'): + goto _35 + case int32('X'): + goto _36 + case int32('y'): + goto _37 + case int32('Y'): + goto _38 + case int32('%'): + goto _39 + default: + goto _40 + } + goto _41 + _11: + ; + _10: + ; + dest = tm + 24 + min = int32(ABDAY_1) + range1 = int32(7) + goto symbolic_range + _14: + ; + _13: + ; + _12: + ; + dest = tm + 16 + min = int32(ABMON_1) + range1 = int32(12) + goto symbolic_range + _15: + ; + s = Xstrptime(tls, s, Xnl_langinfo(tls, int32(D_T_FMT)), tm) + if !(s != 0) { + return uintptr(0) + } + goto _41 + _16: + ; + dest = bp + 4 + if w < 0 { + w = int32(2) + } + want_century = want_century | int32(2) + goto numeric_digits + _18: + ; + _17: + ; + dest = tm + 12 + min = int32(1) + range1 = int32(31) + goto numeric_range + _19: + ; + s = Xstrptime(tls, s, __ccgo_ts+1837, tm) + if !(s != 0) { + return uintptr(0) + } + goto _41 + _20: + ; + dest = tm + 8 + min = 0 + range1 = int32(24) + goto numeric_range + _21: + ; + dest = tm + 8 + min = int32(1) + range1 = int32(12) + goto numeric_range + _22: + ; + dest = tm + 28 + min = int32(1) + range1 = int32(366) + adj = int32(1) + goto numeric_range + _23: + ; + dest = tm + 16 + min = int32(1) + range1 = int32(12) + adj = int32(1) + goto numeric_range + _24: + ; + dest = tm + 4 + min = 0 + range1 = int32(60) + goto numeric_range + _26: + ; + _25: + ; + _44: + ; + if v8 = **(**int8)(__ccgo_up(s)) != 0; v8 { + v1 = int32(**(**int8)(__ccgo_up(s))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _47 + _47: + } + if !(v8 && v2 != 0) { + goto _42 + } + goto _43 + _43: + ; + s = s + 1 + goto _44 + goto _42 + _42: + ; + goto _41 + _27: + ; + ex = Xnl_langinfo(tls, int32(AM_STR)) + len1 = _strlen(tls, ex) + if !(Xstrncasecmp(tls, s, ex, len1) != 0) { + **(**int32)(__ccgo_up(tm + 8)) %= int32(12) + s = s + uintptr(len1) + goto _41 + } + ex = Xnl_langinfo(tls, int32(PM_STR)) + len1 = _strlen(tls, ex) + if !(Xstrncasecmp(tls, s, ex, len1) != 0) { + **(**int32)(__ccgo_up(tm + 8)) %= int32(12) + **(**int32)(__ccgo_up(tm + 8)) += int32(12) + s = s + uintptr(len1) + goto _41 + } + return uintptr(0) + _28: + ; + s = Xstrptime(tls, s, Xnl_langinfo(tls, int32(T_FMT_AMPM)), tm) + if !(s != 0) { + return uintptr(0) + } + goto _41 + _29: + ; + s = Xstrptime(tls, s, __ccgo_ts+1855, tm) + if !(s != 0) { + return uintptr(0) + } + goto _41 + _30: + ; + dest = tm + min = 0 + range1 = int32(61) + goto numeric_range + _31: + ; + s = Xstrptime(tls, s, __ccgo_ts+1861, tm) + if !(s != 0) { + return uintptr(0) + } + goto _41 + _33: + ; + _32: + ; + /* Throw away result, for now. (FIXME?) */ + dest = bp + min = 0 + range1 = int32(54) + goto numeric_range + _34: + ; + dest = tm + 24 + min = 0 + range1 = int32(7) + goto numeric_range + _35: + ; + s = Xstrptime(tls, s, Xnl_langinfo(tls, int32(D_FMT)), tm) + if !(s != 0) { + return uintptr(0) + } + goto _41 + _36: + ; + s = Xstrptime(tls, s, Xnl_langinfo(tls, int32(T_FMT)), tm) + if !(s != 0) { + return uintptr(0) + } + goto _41 + _37: + ; + dest = bp + 8 + w = int32(2) + want_century = want_century | int32(1) + goto numeric_digits + _38: + ; + dest = tm + 20 + if w < 0 { + w = int32(4) + } + adj = int32(1900) + want_century = 0 + goto numeric_digits + _39: + ; + v9 = s + s = s + 1 + if int32(**(**int8)(__ccgo_up(v9))) != int32('%') { + return uintptr(0) + } + goto _41 + _40: + ; + return uintptr(0) + goto numeric_range + numeric_range: + ; + if !(BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(s)))-Uint32FromUint8('0') < Uint32FromInt32(10)) != 0) { + return uintptr(0) + } + **(**int32)(__ccgo_up(dest)) = 0 + i = int32(1) + for { + if !(i <= min+range1 && BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(s)))-uint32('0') < uint32(10)) != 0) { + break + } + v9 = s + s = s + 1 + **(**int32)(__ccgo_up(dest)) = **(**int32)(__ccgo_up(dest))*int32(10) + int32(**(**int8)(__ccgo_up(v9))) - int32('0') + goto _50 + _50: + ; + i = i * int32(10) + } + if Uint32FromInt32(**(**int32)(__ccgo_up(dest))-min) >= Uint32FromInt32(range1) { + return uintptr(0) + } + **(**int32)(__ccgo_up(dest)) -= adj + switch int64(dest) - int64(tm) { + case Int64FromUint64(uint64(UintptrFromInt32(0) + 28)): + } + goto update + goto numeric_digits + numeric_digits: + ; + neg = 0 + if int32(**(**int8)(__ccgo_up(s))) == int32('+') { + s = s + 1 + } else { + if int32(**(**int8)(__ccgo_up(s))) == int32('-') { + neg = int32(1) + s = s + 1 + } + } + if !(BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(s)))-Uint32FromUint8('0') < Uint32FromInt32(10)) != 0) { + return uintptr(0) + } + v1 = Int32FromInt32(0) + i = v1 + **(**int32)(__ccgo_up(dest)) = v1 + for { + if !(i < w && BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(s)))-uint32('0') < uint32(10)) != 0) { + break + } + v9 = s + s = s + 1 + **(**int32)(__ccgo_up(dest)) = **(**int32)(__ccgo_up(dest))*int32(10) + int32(**(**int8)(__ccgo_up(v9))) - int32('0') + goto _52 + _52: + ; + i = i + 1 + } + if neg != 0 { + **(**int32)(__ccgo_up(dest)) = -**(**int32)(__ccgo_up(dest)) + } + **(**int32)(__ccgo_up(dest)) -= adj + goto update + goto symbolic_range + symbolic_range: + ; + i = int32(2)*range1 - int32(1) + for { + if !(i >= 0) { + break + } + ex = Xnl_langinfo(tls, min+i) + len1 = _strlen(tls, ex) + if Xstrncasecmp(tls, s, ex, len1) != 0 { + goto _55 + } + s = s + uintptr(len1) + **(**int32)(__ccgo_up(dest)) = i % range1 + break + goto _55 + _55: + ; + i = i - 1 + } + if i < 0 { + return uintptr(0) + } + goto update + goto update + update: + ; + //FIXME + _41: + } + if want_century != 0 { + (*Ttm)(unsafe.Pointer(tm)).Ftm_year = **(**int32)(__ccgo_up(bp + 8)) + if want_century&int32(2) != 0 { + **(**int32)(__ccgo_up(tm + 20)) += **(**int32)(__ccgo_up(bp + 4))*int32(100) - int32(1900) + } else { + if (*Ttm)(unsafe.Pointer(tm)).Ftm_year <= int32(68) { + **(**int32)(__ccgo_up(tm + 20)) += int32(100) + } + } + } + return s +} + +func Xtime(tls *TLS, t uintptr) (r Ttime_t) { + if __ccgo_strace { + trc("tls=%v t=%v, (%v:)", tls, t, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* ts at bp+0 */ Ttimespec + X__clock_gettime(tls, CLOCK_REALTIME, bp) + if t != 0 { + **(**Ttime_t)(__ccgo_up(t)) = (**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec + } + return (**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec +} + +func Xtimegm(tls *TLS, tm uintptr) (r Ttime_t) { + if __ccgo_strace { + trc("tls=%v tm=%v, (%v:)", tls, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var t int64 + var _ /* new at bp+0 */ Ttm1 + _ = t + t = X__tm_to_secs(tls, tm) + if X__secs_to_tm(tls, t, bp) < 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOVERFLOW) + return int64(-int32(1)) + } + **(**Ttm1)(__ccgo_up(tm)) = **(**Ttm1)(__ccgo_up(bp)) + (*Ttm1)(unsafe.Pointer(tm)).Ftm_isdst = 0 + (*Ttm1)(unsafe.Pointer(tm)).Ftm_gmtoff = 0 + (*Ttm1)(unsafe.Pointer(tm)).Ftm_zone = uintptr(unsafe.Pointer(&X__utc)) + return t +} + +func Xtimer_delete(tls *TLS, t Ttimer_t) (r int32) { + if __ccgo_strace { + trc("tls=%v t=%v, (%v:)", tls, t, origin(2)) + defer func() { trc("-> %v", r) }() + } + var td Tpthread_t + _ = td + if int64(t) < 0 { + td = uintptr(uint64(t) << Int32FromInt32(1)) + // __asm__ __volatile__( + // + // "mov %1, %0 ; lock ; orl $0,(%%rsp)" + // : "=m"(*p) : "r"(x) : "memory" ); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 88, __ccgo_ts+1901) + X__syscall2(tls, int64(SYS_tkill), int64((*t__pthread)(unsafe.Pointer(td)).Ftid), int64(Int32FromInt32(SIGTIMER))) + return 0 + } + return int32(X__syscall1(tls, int64(SYS_timer_delete), int64(t))) +} + +func Xtimer_getoverrun(tls *TLS, t Ttimer_t) (r int32) { + if __ccgo_strace { + trc("tls=%v t=%v, (%v:)", tls, t, origin(2)) + defer func() { trc("-> %v", r) }() + } + var td Tpthread_t + _ = td + if int64(t) < 0 { + td = uintptr(uint64(t) << Int32FromInt32(1)) + t = uintptr(Uint64FromInt32(AtomicLoadPInt32(td+164) & Int32FromInt32(INT_MAX))) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_timer_getoverrun), int64(t))))) +} + +func Xtimer_gettime(tls *TLS, t Ttimer_t, val uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v t=%v val=%v, (%v:)", tls, t, val, origin(2)) + defer func() { trc("-> %v", r) }() + } + var td Tpthread_t + _ = td + if int64(t) < 0 { + td = uintptr(uint64(t) << Int32FromInt32(1)) + t = uintptr(Uint64FromInt32(AtomicLoadPInt32(td+164) & Int32FromInt32(INT_MAX))) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_timer_gettime), int64(t), int64(val))))) +} + +func Xtimer_settime(tls *TLS, t Ttimer_t, flags int32, val uintptr, old uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v t=%v flags=%v val=%v old=%v, (%v:)", tls, t, flags, val, old, origin(2)) + defer func() { trc("-> %v", r) }() + } + var td Tpthread_t + _ = td + if int64(t) < 0 { + td = uintptr(uint64(t) << Int32FromInt32(1)) + t = uintptr(Uint64FromInt32(AtomicLoadPInt32(td+164) & Int32FromInt32(INT_MAX))) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_timer_settime), int64(t), int64(flags), int64(val), int64(old))))) +} + +type Ttms = struct { + Ftms_utime Tclock_t + Ftms_stime Tclock_t + Ftms_cutime Tclock_t + Ftms_cstime Tclock_t +} + +func Xtimes(tls *TLS, tms uintptr) (r Tclock_t) { + if __ccgo_strace { + trc("tls=%v tms=%v, (%v:)", tls, tms, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall1(tls, int64(SYS_times), int64(tms)) +} + +// C documentation +// +// /* There is no other implemented value than TIME_UTC; all other values +// * are considered erroneous. */ +func Xtimespec_get(tls *TLS, ts uintptr, base int32) (r int32) { + if __ccgo_strace { + trc("tls=%v ts=%v base=%v, (%v:)", tls, ts, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret, v1 int32 + _, _ = ret, v1 + if base != int32(TIME_UTC) { + return 0 + } + ret = X__clock_gettime(tls, CLOCK_REALTIME, ts) + if ret < 0 { + v1 = 0 + } else { + v1 = base + } + return v1 +} + +type Tutimbuf = struct { + Factime Ttime_t + Fmodtime Ttime_t +} + +func Xutime(tls *TLS, path uintptr, times uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v times=%v, (%v:)", tls, path, times, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var v1 uintptr + _ = v1 + if times != 0 { + *(*[2]Ttimespec)(unsafe.Pointer(bp)) = [2]Ttimespec{ + 0: { + Ftv_sec: (*Tutimbuf)(unsafe.Pointer(times)).Factime, + }, + 1: { + Ftv_sec: (*Tutimbuf)(unsafe.Pointer(times)).Fmodtime, + }, + } + v1 = bp + } else { + v1 = uintptr(0) + } + return Xutimensat(tls, -int32(100), path, v1, 0) +} + +func X__wcsftime_l(tls *TLS, s uintptr, n Tsize_t, f uintptr, tm uintptr, loc Tlocale_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v f=%v tm=%v loc=%v, (%v:)", tls, s, n, f, tm, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(528) + defer tls.Free(528) + var l, v2 Tsize_t + var pad, plus, v4 int32 + var t, t_mb, v3 uintptr + var width uint64 + var _ /* buf at bp+8 */ [100]int8 + var _ /* k at bp+0 */ Tsize_t + var _ /* p at bp+512 */ uintptr + var _ /* wbuf at bp+108 */ [100]Twchar_t + _, _, _, _, _, _, _, _, _ = l, pad, plus, t, t_mb, width, v2, v3, v4 + l = uint64(0) + for { + if !(l < n) { + break + } + if !(**(**Twchar_t)(__ccgo_up(f)) != 0) { + **(**Twchar_t)(__ccgo_up(s + uintptr(l)*4)) = 0 + return l + } + if **(**Twchar_t)(__ccgo_up(f)) != int32('%') { + v2 = l + l = l + 1 + **(**Twchar_t)(__ccgo_up(s + uintptr(v2)*4)) = **(**Twchar_t)(__ccgo_up(f)) + goto _1 + } + f += 4 + pad = 0 + if **(**Twchar_t)(__ccgo_up(f)) == int32('-') || **(**Twchar_t)(__ccgo_up(f)) == int32('_') || **(**Twchar_t)(__ccgo_up(f)) == int32('0') { + v3 = f + f += 4 + pad = **(**Twchar_t)(__ccgo_up(v3)) + } + v4 = BoolInt32(**(**Twchar_t)(__ccgo_up(f)) == Int32FromUint8('+')) + plus = v4 + if v4 != 0 { + f += 4 + } + width = Xwcstoul(tls, f, bp+512, int32(10)) + if **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 512)))) == int32('C') || **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 512)))) == int32('F') || **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 512)))) == int32('G') || **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 512)))) == int32('Y') { + if !(width != 0) && **(**uintptr)(__ccgo_up(bp + 512)) != f { + width = uint64(1) + } + } else { + width = uint64(0) + } + f = **(**uintptr)(__ccgo_up(bp + 512)) + if **(**Twchar_t)(__ccgo_up(f)) == int32('E') || **(**Twchar_t)(__ccgo_up(f)) == int32('O') { + f += 4 + } + t_mb = X__strftime_fmt_1(tls, bp+8, bp, **(**Twchar_t)(__ccgo_up(f)), tm, loc, pad) + if !(t_mb != 0) { + break + } + **(**Tsize_t)(__ccgo_up(bp)) = Xmbstowcs(tls, bp+108, t_mb, Uint64FromInt64(400)/Uint64FromInt64(4)) + if **(**Tsize_t)(__ccgo_up(bp)) == Uint64FromInt32(-Int32FromInt32(1)) { + return uint64(0) + } + t = bp + 108 + if width != 0 { + for { + if !(**(**Twchar_t)(__ccgo_up(t)) == int32('+') || **(**Twchar_t)(__ccgo_up(t)) == int32('-') || **(**Twchar_t)(__ccgo_up(t)) == int32('0') && **(**Twchar_t)(__ccgo_up(t + 1*4)) != 0) { + break + } + goto _5 + _5: + ; + t += 4 + **(**Tsize_t)(__ccgo_up(bp)) = **(**Tsize_t)(__ccgo_up(bp)) - 1 + } + width = width - 1 + if plus != 0 && (*Ttm)(unsafe.Pointer(tm)).Ftm_year >= Int32FromInt32(10000)-Int32FromInt32(1900) { + v2 = l + l = l + 1 + **(**Twchar_t)(__ccgo_up(s + uintptr(v2)*4)) = int32('+') + } else { + if (*Ttm)(unsafe.Pointer(tm)).Ftm_year < -int32(1900) { + v2 = l + l = l + 1 + **(**Twchar_t)(__ccgo_up(s + uintptr(v2)*4)) = int32('-') + } else { + width = width + 1 + } + } + for { + if !(width > **(**Tsize_t)(__ccgo_up(bp)) && l < n) { + break + } + v2 = l + l = l + 1 + **(**Twchar_t)(__ccgo_up(s + uintptr(v2)*4)) = int32('0') + goto _8 + _8: + ; + width = width - 1 + } + } + if **(**Tsize_t)(__ccgo_up(bp)) >= n-l { + **(**Tsize_t)(__ccgo_up(bp)) = n - l + } + Xwmemcpy(tls, s+uintptr(l)*4, t, **(**Tsize_t)(__ccgo_up(bp))) + l = l + **(**Tsize_t)(__ccgo_up(bp)) + goto _1 + _1: + ; + f += 4 + } + if n != 0 { + if l == n { + l = n - uint64(1) + } + **(**Twchar_t)(__ccgo_up(s + uintptr(l)*4)) = 0 + } + return uint64(0) +} + +func Xwcsftime(tls *TLS, wcs uintptr, n Tsize_t, f uintptr, tm uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v wcs=%v n=%v f=%v tm=%v, (%v:)", tls, wcs, n, f, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__wcsftime_l(tls, wcs, n, f, tm, (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale) +} + +func Xwcsftime_l(tls *TLS, s uintptr, n Tsize_t, f uintptr, tm uintptr, loc Tlocale_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v f=%v tm=%v loc=%v, (%v:)", tls, s, n, f, tm, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__wcsftime_l(tls, s, n, f, tm, loc) +} + +func X_exit(tls *TLS, status int32) { + if __ccgo_strace { + trc("tls=%v status=%v, (%v:)", tls, status, origin(2)) + } + X_Exit(tls, status) +} + +func Xaccess(tls *TLS, filename uintptr, amode int32) (r int32) { + if __ccgo_strace { + trc("tls=%v filename=%v amode=%v, (%v:)", tls, filename, amode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_access), int64(filename), int64(amode))))) +} + +func Xacct(tls *TLS, filename uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v filename=%v, (%v:)", tls, filename, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_acct), int64(filename))))) +} + +func Xalarm(tls *TLS, seconds uint32) (r uint32) { + if __ccgo_strace { + trc("tls=%v seconds=%v, (%v:)", tls, seconds, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var _ /* it at bp+0 */ Titimerval + var _ /* old at bp+32 */ Titimerval + **(**Titimerval)(__ccgo_up(bp)) = Titimerval{ + Fit_value: Ttimeval{ + Ftv_sec: Int64FromUint32(seconds), + }, + } + **(**Titimerval)(__ccgo_up(bp + 32)) = Titimerval{} + Xsetitimer(tls, ITIMER_REAL, bp, bp+32) + return Uint32FromInt64((**(**Titimerval)(__ccgo_up(bp + 32))).Fit_value.Ftv_sec + BoolInt64(!!((**(**Titimerval)(__ccgo_up(bp + 32))).Fit_value.Ftv_usec != 0))) +} + +func Xchdir(tls *TLS, path uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v, (%v:)", tls, path, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_chdir), int64(path))))) +} + +func Xchown(tls *TLS, path uintptr, uid Tuid_t, gid Tgid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v uid=%v gid=%v, (%v:)", tls, path, uid, gid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_chown), int64(path), Int64FromUint32(uid), Int64FromUint32(gid))))) +} + +func _dummy12(tls *TLS, fd int32) (r int32) { + return fd +} + +func Xclose(tls *TLS, fd int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + fd = _dummy12(tls, fd) + r = int32(___syscall_cp(tls, int64(SYS_close), int64(fd), 0, 0, 0, 0, 0)) + if r == -int32(EINTR) { + r = 0 + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func Xctermid(tls *TLS, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 uintptr + _ = v1 + if s != 0 { + v1 = Xstrcpy(tls, s, __ccgo_ts+358) + } else { + v1 = __ccgo_ts + 358 + } + return v1 +} + +func Xdup(tls *TLS, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_dup), int64(fd))))) +} + +func Xdup2(tls *TLS, old int32, new1 int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v old=%v new1=%v, (%v:)", tls, old, new1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v1 int32 + _, _ = r, v1 + for { + v1 = int32(X__syscall2(tls, int64(SYS_dup2), int64(old), int64(new1))) + r = v1 + if !(v1 == -int32(EBUSY)) { + break + } + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func X__dup3(tls *TLS, old int32, new1 int32, flags int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v old=%v new1=%v flags=%v, (%v:)", tls, old, new1, flags, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v1 int32 + _, _ = r, v1 + if old == new1 { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL)))) + } + if flags != 0 { + for { + v1 = int32(X__syscall3(tls, int64(SYS_dup3), int64(old), int64(new1), int64(flags))) + r = v1 + if !(v1 == -int32(EBUSY)) { + break + } + } + if r != -int32(ENOSYS) { + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) + } + if flags & ^Int32FromInt32(O_CLOEXEC) != 0 { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL)))) + } + } + for { + v1 = int32(X__syscall2(tls, int64(SYS_dup2), int64(old), int64(new1))) + r = v1 + if !(v1 == -int32(EBUSY)) { + break + } + } + if r >= 0 && flags&int32(O_CLOEXEC) != 0 { + X__syscall3(tls, int64(SYS_fcntl), int64(new1), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func Xdup3(tls *TLS, old int32, new1 int32, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v old=%v new1=%v flags=%v, (%v:)", tls, old, new1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__dup3(tls, old, new1, flags) +} + +type Tctx1 = struct { + Ffd int32 + Ffilename uintptr + Famode int32 + Fp int32 +} + +func _checker(tls *TLS, p uintptr) (r int32) { + bp := tls.Alloc(16) + defer tls.Free(16) + var c uintptr + var _ /* ret at bp+0 */ int32 + _ = c + c = p + if X__syscall2(tls, int64(SYS_setregid), X__syscall0(tls, int64(SYS_getegid)), int64(-Int32FromInt32(1))) != 0 || X__syscall2(tls, int64(SYS_setreuid), X__syscall0(tls, int64(SYS_geteuid)), int64(-Int32FromInt32(1))) != 0 { + X__syscall1(tls, int64(SYS_exit), int64(Int32FromInt32(1))) + } + **(**int32)(__ccgo_up(bp)) = int32(X__syscall4(tls, int64(SYS_faccessat), int64((*Tctx1)(unsafe.Pointer(c)).Ffd), int64((*Tctx1)(unsafe.Pointer(c)).Ffilename), int64((*Tctx1)(unsafe.Pointer(c)).Famode), int64(Int32FromInt32(0)))) + X__syscall3(tls, int64(SYS_write), int64((*Tctx1)(unsafe.Pointer(c)).Fp), int64(bp), Int64FromUint64(Uint64FromInt64(4))) + return 0 +} + +func Xfaccessat(tls *TLS, fd int32, filename uintptr, amode int32, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v filename=%v amode=%v flag=%v, (%v:)", tls, fd, filename, amode, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret int32 + _ = ret + if flag != 0 { + ret = int32(X__syscall4(tls, int64(SYS_faccessat2), int64(fd), int64(filename), int64(amode), int64(flag))) + if ret != -int32(ENOSYS) { + return int32(X__syscall_ret(tls, Uint64FromInt32(ret))) + } + } + if flag & ^Int32FromInt32(AT_EACCESS) != 0 { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL)))) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_faccessat), int64(fd), int64(filename), int64(amode))))) +} + +func Xfchdir(tls *TLS, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var ret int32 + var _ /* buf at bp+0 */ [27]int8 + _ = ret + ret = int32(X__syscall1(tls, int64(SYS_fchdir), int64(fd))) + if ret != -int32(EBADF) || X__syscall2(tls, int64(SYS_fcntl), int64(fd), int64(Int32FromInt32(F_GETFD))) < 0 { + return int32(X__syscall_ret(tls, Uint64FromInt32(ret))) + } + X__procfdname(tls, bp, Uint32FromInt32(fd)) + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_chdir), int64(bp))))) +} + +func Xfchown(tls *TLS, fd int32, uid Tuid_t, gid Tgid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v uid=%v gid=%v, (%v:)", tls, fd, uid, gid, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var ret int32 + var _ /* buf at bp+0 */ [27]int8 + _ = ret + ret = int32(X__syscall3(tls, int64(SYS_fchown), int64(fd), Int64FromUint32(uid), Int64FromUint32(gid))) + if ret != -int32(EBADF) || X__syscall2(tls, int64(SYS_fcntl), int64(fd), int64(Int32FromInt32(F_GETFD))) < 0 { + return int32(X__syscall_ret(tls, Uint64FromInt32(ret))) + } + X__procfdname(tls, bp, Uint32FromInt32(fd)) + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_chown), int64(bp), Int64FromUint32(uid), Int64FromUint32(gid))))) +} + +func Xfchownat(tls *TLS, fd int32, path uintptr, uid Tuid_t, gid Tgid_t, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v path=%v uid=%v gid=%v flag=%v, (%v:)", tls, fd, path, uid, gid, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_fchownat), int64(fd), int64(path), Int64FromUint32(uid), Int64FromUint32(gid), int64(flag))))) +} + +func Xfdatasync(tls *TLS, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_fdatasync), int64(fd), 0, 0, 0, 0, 0)))) +} + +func Xfsync(tls *TLS, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_fsync), int64(fd), 0, 0, 0, 0, 0)))) +} + +func Xftruncate(tls *TLS, fd int32, length Toff_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v length=%v, (%v:)", tls, fd, length, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_ftruncate), int64(fd), length)))) +} + +func Xgetcwd(tls *TLS, buf uintptr, size Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v buf=%v size=%v, (%v:)", tls, buf, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret int64 + var tmp, v3 uintptr + var v1 t__predefined_size_t + var v2 int32 + _, _, _, _, _ = ret, tmp, v1, v2, v3 + defer func() { Xrealloc(tls, tmp, 0) }() + if buf != 0 { + v2 = int32(1) + } else { + v2 = int32(PATH_MAX) + } + v1 = Uint64FromInt32(v2) + tmp = Xrealloc(tls, tmp, v1) + if !(buf != 0) { + buf = tmp + size = v1 + } else { + if !(size != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(0) + } + } + ret = X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_getcwd), int64(buf), Int64FromUint64(size)))) + if ret < 0 { + return uintptr(0) + } + if ret == 0 || int32(**(**int8)(__ccgo_up(buf))) != int32('/') { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOENT) + return uintptr(0) + } + if buf == tmp { + v3 = Xstrdup(tls, buf) + } else { + v3 = buf + } + return v3 +} + +func Xgetegid(tls *TLS) (r Tgid_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Uint32FromInt64(X__syscall0(tls, int64(SYS_getegid))) +} + +func Xgeteuid(tls *TLS) (r Tuid_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Uint32FromInt64(X__syscall0(tls, int64(SYS_geteuid))) +} + +func Xgetgid(tls *TLS) (r Tgid_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Uint32FromInt64(X__syscall0(tls, int64(SYS_getgid))) +} + +func Xgetgroups(tls *TLS, count int32, list uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v count=%v list=%v, (%v:)", tls, count, list, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_getgroups), int64(count), int64(list))))) +} + +func Xgethostname(tls *TLS, name uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v len1=%v, (%v:)", tls, name, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(400) + defer tls.Free(400) + var i Tsize_t + var v2 int8 + var v3 bool + var _ /* uts at bp+0 */ Tutsname1 + _, _, _ = i, v2, v3 + if Xuname(tls, bp) != 0 { + return -int32(1) + } + if len1 > uint64(65) { + len1 = uint64(65) + } + i = uint64(0) + for { + if v3 = i < len1; v3 { + v2 = **(**int8)(__ccgo_up(bp + 65 + uintptr(i))) + **(**int8)(__ccgo_up(name + uintptr(i))) = v2 + } + if !(v3 && v2 != 0) { + break + } + goto _1 + _1: + ; + i = i + 1 + } + if i != 0 && i == len1 { + **(**int8)(__ccgo_up(name + uintptr(i-uint64(1)))) = 0 + } + return 0 +} + +func Xgetlogin(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetenv(tls, __ccgo_ts+1914) +} + +func Xgetlogin_r(tls *TLS, name uintptr, size Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v size=%v, (%v:)", tls, name, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + var logname uintptr + _ = logname + logname = Xgetlogin(tls) + if !(logname != 0) { + return int32(ENXIO) + } /* or...? */ + if _strlen(tls, logname) >= size { + return int32(ERANGE) + } + Xstrcpy(tls, name, logname) + return 0 +} + +func Xgetpgid(tls *TLS, pid Tpid_t) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v pid=%v, (%v:)", tls, pid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_getpgid), int64(pid))))) +} + +func Xgetpgrp(tls *TLS) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall1(tls, int64(SYS_getpgid), int64(Int32FromInt32(0)))) +} + +func Xgetpid(tls *TLS) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall0(tls, int64(SYS_getpid))) +} + +func Xgetppid(tls *TLS) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall0(tls, int64(SYS_getppid))) +} + +func Xgetsid(tls *TLS, pid Tpid_t) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v pid=%v, (%v:)", tls, pid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_getsid), int64(pid))))) +} + +func Xgetuid(tls *TLS) (r Tuid_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Uint32FromInt64(X__syscall0(tls, int64(SYS_getuid))) +} + +func Xisatty(tls *TLS, fd int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var r uint64 + var _ /* wsz at bp+0 */ Twinsize + _ = r + r = Uint64FromInt64(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_ioctl), int64(fd), int64(Int32FromInt32(TIOCGWINSZ)), int64(bp))))) + if r == uint64(0) { + return int32(1) + } + if **(**int32)(__ccgo_up(X__errno_location(tls))) != int32(EBADF) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOTTY) + } + return 0 +} + +func Xlchown(tls *TLS, path uintptr, uid Tuid_t, gid Tgid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v uid=%v gid=%v, (%v:)", tls, path, uid, gid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_lchown), int64(path), Int64FromUint32(uid), Int64FromUint32(gid))))) +} + +func Xlink(tls *TLS, existing uintptr, new1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v existing=%v new1=%v, (%v:)", tls, existing, new1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_link), int64(existing), int64(new1))))) +} + +func Xlinkat(tls *TLS, fd1 int32, existing uintptr, fd2 int32, new1 uintptr, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd1=%v existing=%v fd2=%v new1=%v flag=%v, (%v:)", tls, fd1, existing, fd2, new1, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_linkat), int64(fd1), int64(existing), int64(fd2), int64(new1), int64(flag))))) +} + +func X__lseek(tls *TLS, fd int32, offset Toff_t, whence int32) (r Toff_t) { + if __ccgo_strace { + trc("tls=%v fd=%v offset=%v whence=%v, (%v:)", tls, fd, offset, whence, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_lseek), int64(fd), offset, int64(whence)))) +} + +func Xlseek(tls *TLS, fd int32, offset Toff_t, whence int32) (r Toff_t) { + if __ccgo_strace { + trc("tls=%v fd=%v offset=%v whence=%v, (%v:)", tls, fd, offset, whence, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lseek(tls, fd, offset, whence) +} + +func Xnice(tls *TLS, inc int32) (r int32) { + if __ccgo_strace { + trc("tls=%v inc=%v, (%v:)", tls, inc, origin(2)) + defer func() { trc("-> %v", r) }() + } + var prio int32 + _ = prio + prio = inc + // Only query old priority if it can affect the result. + // This also avoids issues with integer overflow. + if inc > -Int32FromInt32(2)*Int32FromInt32(NZERO) && inc < Int32FromInt32(2)*Int32FromInt32(NZERO) { + prio = prio + Xgetpriority(tls, PRIO_PROCESS, uint32(0)) + } + if prio > Int32FromInt32(NZERO)-Int32FromInt32(1) { + prio = Int32FromInt32(NZERO) - Int32FromInt32(1) + } + if prio < -int32(NZERO) { + prio = -int32(NZERO) + } + if Xsetpriority(tls, PRIO_PROCESS, uint32(0), prio) != 0 { + if **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EACCES) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EPERM) + } + return -int32(1) + } else { + return prio + } + return r +} + +func Xpause(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_pause), 0, 0, 0, 0, 0, 0)))) +} + +func Xpipe(tls *TLS, fd uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_pipe), int64(fd))))) +} + +func Xpipe2(tls *TLS, fd uintptr, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v flag=%v, (%v:)", tls, fd, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret int32 + _ = ret + if !(flag != 0) { + return Xpipe(tls, fd) + } + ret = int32(X__syscall2(tls, int64(SYS_pipe2), int64(fd), int64(flag))) + if ret != -int32(ENOSYS) { + return int32(X__syscall_ret(tls, Uint64FromInt32(ret))) + } + if flag & ^(Int32FromInt32(O_CLOEXEC)|Int32FromInt32(O_NONBLOCK)) != 0 { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL)))) + } + ret = Xpipe(tls, fd) + if ret != 0 { + return ret + } + if flag&int32(O_CLOEXEC) != 0 { + X__syscall3(tls, int64(SYS_fcntl), int64(**(**int32)(__ccgo_up(fd))), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + X__syscall3(tls, int64(SYS_fcntl), int64(**(**int32)(__ccgo_up(fd + 1*4))), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + } + if flag&int32(O_NONBLOCK) != 0 { + X__syscall3(tls, int64(SYS_fcntl), int64(**(**int32)(__ccgo_up(fd))), int64(Int32FromInt32(F_SETFL)), int64(Int32FromInt32(O_NONBLOCK))) + X__syscall3(tls, int64(SYS_fcntl), int64(**(**int32)(__ccgo_up(fd + 1*4))), int64(Int32FromInt32(F_SETFL)), int64(Int32FromInt32(O_NONBLOCK))) + } + return 0 +} + +func Xposix_close(tls *TLS, fd int32, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v flags=%v, (%v:)", tls, fd, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xclose(tls, fd) +} + +func Xpread(tls *TLS, fd int32, buf uintptr, size Tsize_t, ofs Toff_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v size=%v ofs=%v, (%v:)", tls, fd, buf, size, ofs, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_pread64), int64(fd), int64(buf), Int64FromUint64(size), ofs, 0, 0))) +} + +func Xpreadv(tls *TLS, fd int32, iov uintptr, count int32, ofs Toff_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v iov=%v count=%v ofs=%v, (%v:)", tls, fd, iov, count, ofs, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_preadv), int64(fd), int64(iov), int64(count), ofs, ofs>>Int32FromInt32(32), 0))) +} + +func Xpwrite(tls *TLS, fd int32, buf uintptr, size Tsize_t, ofs Toff_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v size=%v ofs=%v, (%v:)", tls, fd, buf, size, ofs, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_pwrite64), int64(fd), int64(buf), Int64FromUint64(size), ofs, 0, 0))) +} + +func Xpwritev(tls *TLS, fd int32, iov uintptr, count int32, ofs Toff_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v iov=%v count=%v ofs=%v, (%v:)", tls, fd, iov, count, ofs, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_pwritev), int64(fd), int64(iov), int64(count), ofs, ofs>>Int32FromInt32(32), 0))) +} + +func Xread(tls *TLS, fd int32, buf uintptr, count Tsize_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v count=%v, (%v:)", tls, fd, buf, count, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, SYS_read, int64(fd), int64(buf), Int64FromUint64(count), 0, 0, 0))) +} + +func Xreadlink(tls *TLS, path uintptr, buf uintptr, bufsize Tsize_t) (r1 Tssize_t) { + if __ccgo_strace { + trc("tls=%v path=%v buf=%v bufsize=%v, (%v:)", tls, path, buf, bufsize, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var r int32 + var _ /* dummy at bp+0 */ [1]int8 + _ = r + if !(bufsize != 0) { + buf = bp + bufsize = uint64(1) + } + r = int32(X__syscall3(tls, int64(SYS_readlink), int64(path), int64(buf), Int64FromUint64(bufsize))) + if buf == bp && r > 0 { + r = 0 + } + return X__syscall_ret(tls, Uint64FromInt32(r)) +} + +func Xreadlinkat(tls *TLS, fd int32, path uintptr, buf uintptr, bufsize Tsize_t) (r1 Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v path=%v buf=%v bufsize=%v, (%v:)", tls, fd, path, buf, bufsize, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var r int32 + var _ /* dummy at bp+0 */ [1]int8 + _ = r + if !(bufsize != 0) { + buf = bp + bufsize = uint64(1) + } + r = int32(X__syscall4(tls, int64(SYS_readlinkat), int64(fd), int64(path), int64(buf), Int64FromUint64(bufsize))) + if buf == bp && r > 0 { + r = 0 + } + return X__syscall_ret(tls, Uint64FromInt32(r)) +} + +func Xreadv(tls *TLS, fd int32, iov uintptr, count int32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v iov=%v count=%v, (%v:)", tls, fd, iov, count, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_readv), int64(fd), int64(iov), int64(count), 0, 0, 0))) +} + +func Xrenameat(tls *TLS, oldfd int32, old uintptr, newfd int32, new1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v oldfd=%v old=%v newfd=%v new1=%v, (%v:)", tls, oldfd, old, newfd, new1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_renameat), int64(oldfd), int64(old), int64(newfd), int64(new1))))) +} + +func Xrmdir(tls *TLS, path uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v, (%v:)", tls, path, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_rmdir), int64(path))))) +} + +func Xsetgid(tls *TLS, gid Tgid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v gid=%v, (%v:)", tls, gid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__setxid(tls, int32(SYS_setgid), Int32FromUint32(gid), 0, 0) +} + +func Xsetpgid(tls *TLS, pid Tpid_t, pgid Tpid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v pid=%v pgid=%v, (%v:)", tls, pid, pgid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_setpgid), int64(pid), int64(pgid))))) +} + +func Xsetpgrp(tls *TLS) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xsetpgid(tls, 0, 0) +} + +func Xsetsid(tls *TLS) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall0(tls, int64(SYS_setsid))))) +} + +func Xsetuid(tls *TLS, uid Tuid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v uid=%v, (%v:)", tls, uid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__setxid(tls, int32(SYS_setuid), Int32FromUint32(uid), 0, 0) +} + +type Tctx2 = struct { + Fid int32 + Feid int32 + Fsid int32 + Fnr int32 + Fret int32 +} + +func _do_setxid(tls *TLS, p uintptr) { + var c uintptr + var ret int32 + _, _ = c, ret + c = p + if (*Tctx2)(unsafe.Pointer(c)).Fret < 0 { + return + } + ret = int32(X__syscall3(tls, int64((*Tctx2)(unsafe.Pointer(c)).Fnr), int64((*Tctx2)(unsafe.Pointer(c)).Fid), int64((*Tctx2)(unsafe.Pointer(c)).Feid), int64((*Tctx2)(unsafe.Pointer(c)).Fsid))) + if ret != 0 && !((*Tctx2)(unsafe.Pointer(c)).Fret != 0) { + /* If one thread fails to set ids after another has already + * succeeded, forcibly killing the process is the only safe + * thing to do. State is inconsistent and dangerous. Use + * SIGKILL because it is uncatchable. */ + X__block_all_sigs(tls, uintptr(0)) + X__syscall2(tls, int64(SYS_kill), X__syscall0(tls, int64(SYS_getpid)), int64(Int32FromInt32(SIGKILL))) + } + (*Tctx2)(unsafe.Pointer(c)).Fret = ret +} + +func X__setxid(tls *TLS, nr int32, id int32, eid int32, sid int32) (r int32) { + if __ccgo_strace { + trc("tls=%v nr=%v id=%v eid=%v sid=%v, (%v:)", tls, nr, id, eid, sid, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var v1 int32 + var _ /* c at bp+0 */ Tctx2 + _ = v1 + /* ret is initially nonzero so that failure of the first thread does not + * trigger the safety kill above. */ + **(**Tctx2)(__ccgo_up(bp)) = Tctx2{ + Fid: id, + Feid: eid, + Fsid: sid, + Fnr: nr, + Fret: int32(1), + } + ___synccall(tls, __ccgo_fp(_do_setxid), bp) + if (**(**Tctx2)(__ccgo_up(bp))).Fret > 0 { + v1 = -int32(EAGAIN) + } else { + v1 = (**(**Tctx2)(__ccgo_up(bp))).Fret + } + return int32(X__syscall_ret(tls, Uint64FromInt32(v1))) +} + +func Xsleep(tls *TLS, seconds uint32) (r uint32) { + if __ccgo_strace { + trc("tls=%v seconds=%v, (%v:)", tls, seconds, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* tv at bp+0 */ Ttimespec + **(**Ttimespec)(__ccgo_up(bp)) = Ttimespec{ + Ftv_sec: Int64FromUint32(seconds), + } + if Xnanosleep(tls, bp, bp) != 0 { + return Uint32FromInt64((**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec) + } + return uint32(0) +} + +func Xsymlink(tls *TLS, existing uintptr, new1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v existing=%v new1=%v, (%v:)", tls, existing, new1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_symlink), int64(existing), int64(new1))))) +} + +func Xsymlinkat(tls *TLS, existing uintptr, fd int32, new1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v existing=%v fd=%v new1=%v, (%v:)", tls, existing, fd, new1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_symlinkat), int64(existing), int64(fd), int64(new1))))) +} + +func Xsync(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + X__syscall0(tls, int64(SYS_sync)) +} + +func Xtcgetpgrp(tls *TLS, fd int32) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var _ /* pgrp at bp+0 */ int32 + if Xioctl(tls, fd, int32(TIOCGPGRP), VaList(bp+16, bp)) < 0 { + return -int32(1) + } + return **(**int32)(__ccgo_up(bp)) +} + +func Xtcsetpgrp(tls *TLS, fd int32, pgrp Tpid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v pgrp=%v, (%v:)", tls, fd, pgrp, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var _ /* pgrp_int at bp+0 */ int32 + **(**int32)(__ccgo_up(bp)) = pgrp + return Xioctl(tls, fd, int32(TIOCSPGRP), VaList(bp+16, bp)) +} + +func Xtruncate(tls *TLS, path uintptr, length Toff_t) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v length=%v, (%v:)", tls, path, length, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_truncate), int64(path), length)))) +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xttyname(tls *TLS, fd int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + var result, v1 int32 + _, _ = result, v1 + v1 = Xttyname_r(tls, fd, uintptr(unsafe.Pointer(&_buf10)), uint64(32)) + result = v1 + if v1 != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = result + return UintptrFromInt32(0) + } + return uintptr(unsafe.Pointer(&_buf10)) +} + +var _buf10 [32]int8 + +func Xttyname_r(tls *TLS, fd int32, name uintptr, size Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v name=%v size=%v, (%v:)", tls, fd, name, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(320) + defer tls.Free(320) + var l Tssize_t + var _ /* procname at bp+288 */ [29]int8 + var _ /* st1 at bp+0 */ Tstat + var _ /* st2 at bp+144 */ Tstat + _ = l + if !(Xisatty(tls, fd) != 0) { + return **(**int32)(__ccgo_up(X__errno_location(tls))) + } + X__procfdname(tls, bp+288, Uint32FromInt32(fd)) + l = Xreadlink(tls, bp+288, name, size) + if l < 0 { + return **(**int32)(__ccgo_up(X__errno_location(tls))) + } else { + if Uint64FromInt64(l) == size { + return int32(ERANGE) + } + } + **(**int8)(__ccgo_up(name + uintptr(l))) = 0 + if Xstat(tls, name, bp) != 0 || Xfstat(tls, fd, bp+144) != 0 { + return **(**int32)(__ccgo_up(X__errno_location(tls))) + } + if (**(**Tstat)(__ccgo_up(bp))).Fst_dev != (**(**Tstat)(__ccgo_up(bp + 144))).Fst_dev || (**(**Tstat)(__ccgo_up(bp))).Fst_ino != (**(**Tstat)(__ccgo_up(bp + 144))).Fst_ino { + return int32(ENODEV) + } + return 0 +} + +func Xualarm(tls *TLS, value uint32, interval uint32) (r uint32) { + if __ccgo_strace { + trc("tls=%v value=%v interval=%v, (%v:)", tls, value, interval, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var _ /* it at bp+0 */ Titimerval + var _ /* it_old at bp+32 */ Titimerval + **(**Titimerval)(__ccgo_up(bp)) = Titimerval{ + Fit_interval: Ttimeval{ + Ftv_usec: Int64FromUint32(interval), + }, + Fit_value: Ttimeval{ + Ftv_usec: Int64FromUint32(value), + }, + } + Xsetitimer(tls, ITIMER_REAL, bp, bp+32) + return Uint32FromInt64((**(**Titimerval)(__ccgo_up(bp + 32))).Fit_value.Ftv_sec*int64(1000000) + (**(**Titimerval)(__ccgo_up(bp + 32))).Fit_value.Ftv_usec) +} + +func Xunlink(tls *TLS, path uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v, (%v:)", tls, path, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_unlink), int64(path))))) +} + +func Xunlinkat(tls *TLS, fd int32, path uintptr, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v path=%v flag=%v, (%v:)", tls, fd, path, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_unlinkat), int64(fd), int64(path), int64(flag))))) +} + +func Xusleep(tls *TLS, useconds uint32) (r int32) { + if __ccgo_strace { + trc("tls=%v useconds=%v, (%v:)", tls, useconds, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* tv at bp+0 */ Ttimespec + **(**Ttimespec)(__ccgo_up(bp)) = Ttimespec{ + Ftv_sec: Int64FromUint32(useconds / uint32(1000000)), + Ftv_nsec: Int64FromUint32(useconds % uint32(1000000) * uint32(1000)), + } + return Xnanosleep(tls, bp, bp) +} + +func Xwrite(tls *TLS, fd int32, buf uintptr, count Tsize_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v count=%v, (%v:)", tls, fd, buf, count, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_write), int64(fd), int64(buf), Int64FromUint64(count), 0, 0, 0))) +} + +func Xwritev(tls *TLS, fd int32, iov uintptr, count int32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v iov=%v count=%v, (%v:)", tls, fd, iov, count, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_writev), int64(fd), int64(iov), int64(count), 0, 0, 0))) +} + +func __ccgo_fp(f interface{}) uintptr { + type iface [2]uintptr + return (*iface)(unsafe.Pointer(&f))[1] +} + +func __ccgo_up(n uintptr) unsafe.Pointer { + return unsafe.Pointer(&n) +} + +var X__abort_lock [1]int32 + +var X__at_quick_exit_lockptr = uintptr(unsafe.Pointer(&_lock)) + +var X__c_dot_utf8 = t__locale_map{ + Fmap1: uintptr(unsafe.Pointer(&_empty_mo)), + Fmap_size: uint64(20), + Fname: [24]int8{'C', '.', 'U', 'T', 'F', '-', '8'}, +} + +var X__c_dot_utf8_locale = t__locale_struct{ + Fcat: [6]uintptr{ + 0: uintptr(unsafe.Pointer(&X__c_dot_utf8)), + }, +} + +var X__c_locale = t__locale_struct{} + +var Xdaylight int32 + +var X__eintr_valid_flag int32 + +var Xenviron uintptr + +var X__exp2f_data = Texp2f_data{ + Ftab: [32]Tuint64_t{ + 0: uint64(0x3ff0000000000000), + 1: uint64(0x3fefd9b0d3158574), + 2: uint64(0x3fefb5586cf9890f), + 3: uint64(0x3fef9301d0125b51), + 4: uint64(0x3fef72b83c7d517b), + 5: uint64(0x3fef54873168b9aa), + 6: uint64(0x3fef387a6e756238), + 7: uint64(0x3fef1e9df51fdee1), + 8: uint64(0x3fef06fe0a31b715), + 9: uint64(0x3feef1a7373aa9cb), + 10: uint64(0x3feedea64c123422), + 11: uint64(0x3feece086061892d), + 12: uint64(0x3feebfdad5362a27), + 13: uint64(0x3feeb42b569d4f82), + 14: uint64(0x3feeab07dd485429), + 15: uint64(0x3feea47eb03a5585), + 16: uint64(0x3feea09e667f3bcd), + 17: uint64(0x3fee9f75e8ec5f74), + 18: uint64(0x3feea11473eb0187), + 19: uint64(0x3feea589994cce13), + 20: uint64(0x3feeace5422aa0db), + 21: uint64(0x3feeb737b0cdc5e5), + 22: uint64(0x3feec49182a3f090), + 23: uint64(0x3feed503b23e255d), + 24: uint64(0x3feee89f995ad3ad), + 25: uint64(0x3feeff76f2fb5e47), + 26: uint64(0x3fef199bdd85529c), + 27: uint64(0x3fef3720dcef9069), + 28: uint64(0x3fef5818dcfba487), + 29: uint64(0x3fef7c97337b9b5f), + 30: uint64(0x3fefa4afa2a490da), + 31: uint64(0x3fefd0765b6e4540), + }, + Fshift_scaled: Float64FromFloat64(6.755399441055744e+15) / float64(Int32FromInt32(1)<>Int32FromInt32(6) | Uint32FromInt32(0x0), + 31: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0x1), + 32: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0x2), + 33: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0x3), + 34: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0x4), + 35: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0x5), + 36: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0x6), + 37: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0x7), + 38: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0x8), + 39: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0x9), + 40: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0xa), + 41: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0xb), + 42: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0xc), + 43: (Uint32FromUint32(0x40)-Uint32FromInt32(0xa0))<>Int32FromInt32(6) | Uint32FromInt32(0xd), + 44: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0xe), + 45: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0xf), + 46: (Uint32FromUint32(0)-Uint32FromInt32(0x90))<>Int32FromInt32(6) | (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(12) | Uint32FromInt32(0x0), + 47: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(12) | Uint32FromInt32(0x1), + 48: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(12) | Uint32FromInt32(0x2), + 49: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(12) | Uint32FromInt32(0x3), + 50: (Uint32FromUint32(0x40)-Uint32FromInt32(0x90))<>Int32FromInt32(6) | (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(12) | Uint32FromInt32(0x4), +} + +var X__gettext_lockptr = uintptr(unsafe.Pointer(&_lock1)) + +var X__hwcap Tsize_t + +var X__libc t__libc + +var X__libc_version = [6]int8{'1', '.', '2', '.', '5'} + +var X__locale_lock [1]int32 + +var X__locale_lockptr = uintptr(unsafe.Pointer(&X__locale_lock)) + +var X__log2_data = Tlog2_data{ + Finvln2hi: float64(1.4426950407214463), + Finvln2lo: float64(1.6751713164886512e-10), + Fpoly: [6]float64{ + 0: -Float64FromFloat64(0.7213475204444882), + 1: float64(0.4808983469629985), + 2: -Float64FromFloat64(0.36067375954075914), + 3: float64(0.2885390073180969), + 4: -Float64FromFloat64(0.2404693555628422), + 5: float64(0.2061202382173603), + }, + Fpoly1: [10]float64{ + 0: -Float64FromFloat64(0.7213475204444817), + 1: float64(0.48089834696298744), + 2: -Float64FromFloat64(0.360673760222145), + 3: float64(0.2885390081805197), + 4: -Float64FromFloat64(0.24044917405728863), + 5: float64(0.2060992861022954), + 6: -Float64FromFloat64(0.18033596705327856), + 7: float64(0.1603032746063156), + 8: -Float64FromFloat64(0.14483316576701266), + 9: float64(0.13046826811283835), + }, + Ftab: [64]struct { + Finvc float64 + Flogc float64 + }{ + 0: { + Finvc: float64(1.4463276106642393), + Flogc: -Float64FromFloat64(0.5323943771486483), + }, + 1: { + Finvc: float64(1.4301675812282968), + Flogc: -Float64FromFloat64(0.516184206053822), + }, + 2: { + Finvc: float64(1.4143648676229383), + Flogc: -Float64FromFloat64(0.5001543441974263), + }, + 3: { + Finvc: float64(1.3989068970611538), + Flogc: -Float64FromFloat64(0.4842999484799293), + }, + 4: { + Finvc: float64(1.3837838957784339), + Flogc: -Float64FromFloat64(0.46861865624623533), + }, + 5: { + Finvc: float64(1.368983882697786), + Flogc: -Float64FromFloat64(0.4531054615783887), + }, + 6: { + Finvc: float64(1.3544972916324536), + Flogc: -Float64FromFloat64(0.43775750882059583), + }, + 7: { + Finvc: float64(1.3403139676437443), + Flogc: -Float64FromFloat64(0.4225709906127122), + }, + 8: { + Finvc: float64(1.3264249304188642), + Flogc: -Float64FromFloat64(0.40754302793970965), + }, + 9: { + Finvc: float64(1.3128203652112156), + Flogc: -Float64FromFloat64(0.3926695240384106), + }, + 10: { + Finvc: float64(1.299492412370217), + Flogc: -Float64FromFloat64(0.3779482100565019), + }, + 11: { + Finvc: float64(1.28643198385998), + Flogc: -Float64FromFloat64(0.36337518101890964), + }, + 12: { + Finvc: float64(1.2736319291846832), + Flogc: -Float64FromFloat64(0.3489484089425332), + }, + 13: { + Finvc: float64(1.2610838968062879), + Flogc: -Float64FromFloat64(0.33466425780738973), + }, + 14: { + Finvc: float64(1.248780314313572), + Flogc: -Float64FromFloat64(0.3205197000629596), + }, + 15: { + Finvc: float64(1.2367150450059063), + Flogc: -Float64FromFloat64(0.3065131231801388), + }, + 16: { + Finvc: float64(1.2248804968401878), + Flogc: -Float64FromFloat64(0.2926410022678283), + }, + 17: { + Finvc: float64(1.2132702353497795), + Flogc: -Float64FromFloat64(0.2789009220805383), + }, + 18: { + Finvc: float64(1.2018780785715362), + Flogc: -Float64FromFloat64(0.2652905529862437), + }, + 19: { + Finvc: float64(1.190697765061355), + Flogc: -Float64FromFloat64(0.2518072602367738), + }, + 20: { + Finvc: float64(1.1797235410550593), + Flogc: -Float64FromFloat64(0.23844881494437686), + }, + 21: { + Finvc: float64(1.1689498986205256), + Flogc: -Float64FromFloat64(0.22521309705462045), + }, + 22: { + Finvc: float64(1.158371137408455), + Flogc: -Float64FromFloat64(0.21209756102439314), + }, + 23: { + Finvc: float64(1.1479820146386086), + Flogc: -Float64FromFloat64(0.1991000395789797), + }, + 24: { + Finvc: float64(1.1377775576851088), + Flogc: -Float64FromFloat64(0.18621852970682085), + }, + 25: { + Finvc: float64(1.127753150630225), + Flogc: -Float64FromFloat64(0.17345131655361), + }, + 26: { + Finvc: float64(1.1179037012282074), + Flogc: -Float64FromFloat64(0.16079591649577196), + }, + 27: { + Finvc: float64(1.1082251967632821), + Flogc: -Float64FromFloat64(0.14825107384353942), + }, + 28: { + Finvc: float64(1.098712461056607), + Flogc: -Float64FromFloat64(0.13581387465410444), + }, + 29: { + Finvc: float64(1.0893619091634283), + Flogc: -Float64FromFloat64(0.12348332762257996), + }, + 30: { + Finvc: float64(1.0801689912316736), + Flogc: -Float64FromFloat64(0.11125703807351783), + }, + 31: { + Finvc: float64(1.071129489697672), + Flogc: -Float64FromFloat64(0.09913289918449664), + }, + 32: { + Finvc: float64(1.0622406576750423), + Flogc: -Float64FromFloat64(0.08711065531497297), + }, + 33: { + Finvc: float64(1.0534977607927976), + Flogc: -Float64FromFloat64(0.07518724771330199), + }, + 34: { + Finvc: float64(1.044897877982342), + Flogc: -Float64FromFloat64(0.06336194888240243), + }, + 35: { + Finvc: float64(1.0364370289499079), + Flogc: -Float64FromFloat64(0.0516324649456692), + }, + 36: { + Finvc: float64(1.0281122132034575), + Flogc: -Float64FromFloat64(0.039997735929773626), + }, + 37: { + Finvc: float64(1.0199202450036955), + Flogc: -Float64FromFloat64(0.028456341769015125), + }, + 38: { + Finvc: float64(1.0118577522306755), + Flogc: -Float64FromFloat64(0.017006489068080555), + }, + 39: { + Finvc: float64(1.003921649236766), + Flogc: -Float64FromFloat64(0.005646678981520381), + }, + 40: { + Finvc: float64(0.9922480467550775), + Flogc: float64(0.011227277611396858), + }, + 41: { + Finvc: float64(0.9770993366178549), + Flogc: float64(0.033422853921138085), + }, + 42: { + Finvc: float64(0.9624059787315814), + Flogc: float64(0.05528248992573026), + }, + 43: { + Finvc: float64(0.9481480598286369), + Flogc: float64(0.07681573143713649), + }, + 44: { + Finvc: float64(0.9343065931261065), + Flogc: float64(0.09803204623631245), + }, + 45: { + Finvc: float64(0.9208633936884979), + Flogc: float64(0.11894094059630334), + }, + 46: { + Finvc: float64(0.9078013641840602), + Flogc: float64(0.13955143862290242), + }, + 47: { + Finvc: float64(0.8951048181512927), + Flogc: float64(0.15987146080919956), + }, + 48: { + Finvc: float64(0.882758574260473), + Flogc: float64(0.17990916589428707), + }, + 49: { + Finvc: float64(0.8707481902241709), + Flogc: float64(0.19967252559081317), + }, + 50: { + Finvc: float64(0.8590602881746972), + Flogc: float64(0.2191687127685782), + }, + 51: { + Finvc: float64(0.8476822044336688), + Flogc: float64(0.23840459427242422), + }, + 52: { + Finvc: float64(0.8366013284053287), + Flogc: float64(0.25738780610663525), + }, + 53: { + Finvc: float64(0.8258064913621258), + Flogc: float64(0.27612433583180973), + }, + 54: { + Finvc: float64(0.8152865101579193), + Flogc: float64(0.2946209507022104), + }, + 55: { + Finvc: float64(0.8050314363208223), + Flogc: float64(0.31288297359969874), + }, + 56: { + Finvc: float64(0.7950310492640542), + Flogc: float64(0.33091689015759584), + }, + 57: { + Finvc: float64(0.7852760432487271), + Flogc: float64(0.3487282100279572), + }, + 58: { + Finvc: float64(0.7757575660314712), + Flogc: float64(0.36632223233368677), + }, + 59: { + Finvc: float64(0.7664670566588946), + Flogc: float64(0.383704309808536), + }, + 60: { + Finvc: float64(0.7573965608078645), + Flogc: float64(0.4008792246509074), + }, + 61: { + Finvc: float64(0.7485380168514022), + Flogc: float64(0.41785250494945103), + }, + 62: { + Finvc: float64(0.7398844213755009), + Flogc: float64(0.4346281724315304), + }, + 63: { + Finvc: float64(0.7314286113178112), + Flogc: float64(0.45121103315341315), + }, + }, + Ftab2: [64]struct { + Fchi float64 + Fclo float64 + }{ + 0: { + Fchi: float64(0.6914062848739648), + Fclo: float64(4.339971893418182e-17), + }, + 1: { + Fchi: float64(0.6992187580850853), + Fclo: float64(7.805593338712074e-18), + }, + 2: { + Fchi: float64(0.7070311366547563), + Fclo: float64(3.20843320369626e-17), + }, + 3: { + Fchi: float64(0.7148438556567389), + Fclo: float64(4.336491946473985e-17), + }, + 4: { + Fchi: float64(0.7226561915128084), + Fclo: float64(4.681890319761607e-17), + }, + 5: { + Fchi: float64(0.730468789763508), + Fclo: -Float64FromFloat64(1.647126642147294e-17), + }, + 6: { + Fchi: float64(0.7382812842650944), + Fclo: float64(2.0846837208642192e-17), + }, + 7: { + Fchi: float64(0.7460938437864584), + Fclo: -Float64FromFloat64(7.82131795361932e-18), + }, + 8: { + Fchi: float64(0.7539062159244969), + Fclo: -Float64FromFloat64(3.470987810015201e-17), + }, + 9: { + Fchi: float64(0.761718835645205), + Fclo: float64(1.2996798345429576e-17), + }, + 10: { + Fchi: float64(0.7695312342578777), + Fclo: -Float64FromFloat64(5.2071007285622585e-17), + }, + 11: { + Fchi: float64(0.7773438569208053), + Fclo: -Float64FromFloat64(4.513636731226183e-17), + }, + 12: { + Fchi: float64(0.7851561955110148), + Fclo: -Float64FromFloat64(2.0797044446832382e-17), + }, + 13: { + Fchi: float64(0.7929686538163826), + Fclo: -Float64FromFloat64(1.9947626198727574e-17), + }, + 14: { + Fchi: float64(0.8007813612514213), + Fclo: float64(1.472064871061342e-17), + }, + 15: { + Fchi: float64(0.8085937047812207), + Fclo: float64(5.290804109377209e-17), + }, + 16: { + Fchi: float64(0.816406173973453), + Fclo: -Float64FromFloat64(1.129659587857177e-17), + }, + 17: { + Fchi: float64(0.8242186867064328), + Fclo: float64(3.901543738154691e-17), + }, + 18: { + Fchi: float64(0.8320311501051142), + Fclo: -Float64FromFloat64(3.212482853127187e-17), + }, + 19: { + Fchi: float64(0.8398436860662717), + Fclo: float64(5.220081794706035e-18), + }, + 20: { + Fchi: float64(0.8476562221566525), + Fclo: -Float64FromFloat64(5.37416378988278e-17), + }, + 21: { + Fchi: float64(0.8554686571084844), + Fclo: float64(4.291992377471359e-18), + }, + 22: { + Fchi: float64(0.8632811779454657), + Fclo: float64(1.7319616935225806e-17), + }, + 23: { + Fchi: float64(0.8710937865301015), + Fclo: float64(1.8251073579011692e-17), + }, + 24: { + Fchi: float64(0.8789064200163806), + Fclo: float64(1.2113671810693101e-17), + }, + 25: { + Fchi: float64(0.8867188705623812), + Fclo: -Float64FromFloat64(2.431195196496269e-17), + }, + 26: { + Fchi: float64(0.894531433164887), + Fclo: -Float64FromFloat64(2.258952781769403e-17), + }, + 27: { + Fchi: float64(0.9023436779100781), + Fclo: float64(4.3322028821617186e-17), + }, + 28: { + Fchi: float64(0.9101562378188762), + Fclo: -Float64FromFloat64(5.2414676705491076e-18), + }, + 29: { + Fchi: float64(0.9179685755379005), + Fclo: -Float64FromFloat64(2.3432856904274634e-17), + }, + 30: { + Fchi: float64(0.9257810658494647), + Fclo: float64(3.9914341909758727e-17), + }, + 31: { + Fchi: float64(0.9335939394986237), + Fclo: -Float64FromFloat64(1.8218382846902827e-17), + }, + 32: { + Fchi: float64(0.9414062555172099), + Fclo: float64(4.423669374431538e-17), + }, + 33: { + Fchi: float64(0.9492189136192009), + Fclo: -Float64FromFloat64(2.6059674623550364e-17), + }, + 34: { + Fchi: float64(0.9570313243730211), + Fclo: -Float64FromFloat64(4.947019261946595e-17), + }, + 35: { + Fchi: float64(0.9648439529540691), + Fclo: -Float64FromFloat64(5.4644837229582306e-17), + }, + 36: { + Fchi: float64(0.9726564738338594), + Fclo: -Float64FromFloat64(5.4656321533328614e-17), + }, + 37: { + Fchi: float64(0.9804688208697894), + Fclo: -Float64FromFloat64(1.782581090537996e-18), + }, + 38: { + Fchi: float64(0.98828120632121), + Fclo: -Float64FromFloat64(5.2277711573086786e-18), + }, + 39: { + Fchi: float64(0.9960936700192217), + Fclo: float64(4.1586638841164565e-17), + }, + 40: { + Fchi: float64(1.007812515499802), + Fclo: float64(9.540912389137736e-17), + }, + 41: { + Fchi: float64(1.0234373952820537), + Fclo: float64(3.985821704561347e-17), + }, + 42: { + Fchi: float64(1.0390625391978199), + Fclo: -Float64FromFloat64(5.179495640960355e-18), + }, + 43: { + Fchi: float64(1.0546875982436061), + Fclo: -Float64FromFloat64(6.074512782488841e-17), + }, + 44: { + Fchi: float64(1.07031247275489), + Fclo: -Float64FromFloat64(4.853656019321416e-17), + }, + 45: { + Fchi: float64(1.0859374005459401), + Fclo: -Float64FromFloat64(1.0233609026899023e-16), + }, + 46: { + Fchi: float64(1.101562565835984), + Fclo: float64(9.714504510281668e-17), + }, + 47: { + Fchi: float64(1.1171875960464082), + Fclo: -Float64FromFloat64(5.728631491659617e-17), + }, + 48: { + Fchi: float64(1.1328125595809087), + Fclo: -Float64FromFloat64(4.3353271744463366e-17), + }, + 49: { + Fchi: float64(1.1484376438870962), + Fclo: float64(5.029455257812864e-17), + }, + 50: { + Fchi: float64(1.1640626551656426), + Fclo: -Float64FromFloat64(1.3886091944776072e-17), + }, + 51: { + Fchi: float64(1.179687381390876), + Fclo: float64(9.535864385063222e-17), + }, + 52: { + Fchi: float64(1.19531246968748), + Fclo: float64(2.5970710873556995e-17), + }, + 53: { + Fchi: float64(1.2109374417129501), + Fclo: -Float64FromFloat64(1.0412863482435496e-16), + }, + 54: { + Fchi: float64(1.2265626715770166), + Fclo: float64(1.903080930681457e-17), + }, + 55: { + Fchi: float64(1.2421875157698543), + Fclo: float64(9.884933154288451e-17), + }, + 56: { + Fchi: float64(1.2578125104996614), + Fclo: float64(2.605028401046449e-17), + }, + 57: { + Fchi: float64(1.273437549250769), + Fclo: float64(3.128070230699857e-17), + }, + 58: { + Fchi: float64(1.2890625161616944), + Fclo: -Float64FromFloat64(4.506460293510891e-17), + }, + 59: { + Fchi: float64(1.3046875156762752), + Fclo: -Float64FromFloat64(2.0874781900380847e-17), + }, + 60: { + Fchi: float64(1.3203123063212308), + Fclo: float64(8.50535702424751e-17), + }, + 61: { + Fchi: float64(1.3359374907988373), + Fclo: -Float64FromFloat64(3.99657459893118e-17), + }, + 62: { + Fchi: float64(1.351562448282023), + Fclo: float64(4.1576596545784e-17), + }, + 63: { + Fchi: float64(1.3671874254389709), + Fclo: -Float64FromFloat64(6.072295450780066e-17), + }, + }, +} + +var X__log2f_data = Tlog2f_data{ + Ftab: [16]struct { + Finvc float64 + Flogc float64 + }{ + 0: { + Finvc: float64(1.398907162146528), + Flogc: -Float64FromFloat64(0.48430022186289673), + }, + 1: { + Finvc: float64(1.3403141896637998), + Flogc: -Float64FromFloat64(0.42257122959194704), + }, + 2: { + Finvc: float64(1.286432210124115), + Flogc: -Float64FromFloat64(0.3633754347673556), + }, + 3: { + Finvc: float64(1.2367150214269895), + Flogc: -Float64FromFloat64(0.30651309567405577), + }, + 4: { + Finvc: float64(1.1906977166711752), + Flogc: -Float64FromFloat64(0.25180720160537634), + }, + 5: { + Finvc: float64(1.1479821020556429), + Flogc: -Float64FromFloat64(0.19910014943794563), + }, + 6: { + Finvc: float64(1.1082251448272158), + Flogc: -Float64FromFloat64(0.14825100623281615), + }, + 7: { + Finvc: float64(1.0711297413057381), + Flogc: -Float64FromFloat64(0.09913323807318392), + }, + 8: { + Finvc: float64(1.036437278977283), + Flogc: -Float64FromFloat64(0.051632812977629436), + }, + 9: { + Finvc: float64(1), + }, + 10: { + Finvc: float64(0.9492859795739057), + Flogc: float64(0.07508531937943004), + }, + 11: { + Finvc: float64(0.8951049428609004), + Flogc: float64(0.15987125980713107), + }, + 12: { + Finvc: float64(0.8476821620351103), + Flogc: float64(0.2384046664317681), + }, + 13: { + Finvc: float64(0.8050314851692001), + Flogc: float64(0.31288288605863257), + }, + 14: { + Finvc: float64(0.7664671008843108), + Flogc: float64(0.38370422656453185), + }, + 15: { + Finvc: float64(0.731428603316328), + Flogc: float64(0.451211048935815), + }, + }, + Fpoly: [4]float64{ + 0: -Float64FromFloat64(0.36051725506874704), + 1: float64(0.4811247078767291), + 2: -Float64FromFloat64(0.7213476299867769), + 3: float64(1.4426950186867042), + }, +} + +var X__log_data = Tlog_data{ + Fln2hi: float64(0.6931471805598903), + Fln2lo: float64(5.497923018708371e-14), + Fpoly: [5]float64{ + 0: -Float64FromFloat64(0.5000000000000001), + 1: float64(0.33333333331825593), + 2: -Float64FromFloat64(0.2499999999622955), + 3: float64(0.20000304511814496), + 4: -Float64FromFloat64(0.16667054827627667), + }, + Fpoly1: [11]float64{ + 0: -Float64FromFloat64(0.5), + 1: float64(0.3333333333333352), + 2: -Float64FromFloat64(0.24999999999998432), + 3: float64(0.19999999999320328), + 4: -Float64FromFloat64(0.16666666669929706), + 5: float64(0.14285715076560868), + 6: -Float64FromFloat64(0.12499997863982555), + 7: float64(0.11110712032936046), + 8: -Float64FromFloat64(0.10000486757818193), + 9: float64(0.09181994006195467), + 10: -Float64FromFloat64(0.08328363062289341), + }, + Ftab: [128]struct { + Finvc float64 + Flogc float64 + }{ + 0: { + Finvc: float64(1.4504249240398293), + Flogc: -Float64FromFloat64(0.3718565645633589), + }, + 1: { + Finvc: float64(1.442253508327276), + Flogc: -Float64FromFloat64(0.36620682668944937), + }, + 2: { + Finvc: float64(1.4341736174350004), + Flogc: -Float64FromFloat64(0.3605888069791945), + }, + 3: { + Finvc: float64(1.426183816329995), + Flogc: -Float64FromFloat64(0.3550022171419869), + }, + 4: { + Finvc: float64(1.4182825527052965), + Flogc: -Float64FromFloat64(0.34944666968829097), + }, + 5: { + Finvc: float64(1.4104682921759335), + Flogc: -Float64FromFloat64(0.3439217713603284), + }, + 6: { + Finvc: float64(1.4027396147468003), + Flogc: -Float64FromFloat64(0.3384271921261188), + }, + 7: { + Finvc: float64(1.3950954438932313), + Flogc: -Float64FromFloat64(0.332962831494342), + }, + 8: { + Finvc: float64(1.3875338232485754), + Flogc: -Float64FromFloat64(0.32752794345742586), + }, + 9: { + Finvc: float64(1.3800539211058593), + Flogc: -Float64FromFloat64(0.32212257167088865), + }, + 10: { + Finvc: float64(1.3726542695419708), + Flogc: -Float64FromFloat64(0.3167462884799761), + }, + 11: { + Finvc: float64(1.3653332798446802), + Flogc: -Float64FromFloat64(0.3113985598928366), + }, + 12: { + Finvc: float64(1.358090204587874), + Flogc: -Float64FromFloat64(0.3060794515165526), + }, + 13: { + Finvc: float64(1.3509234892132138), + Flogc: -Float64FromFloat64(0.300788424667644), + }, + 14: { + Finvc: float64(1.3438320840699889), + Flogc: -Float64FromFloat64(0.2955252968476998), + }, + 15: { + Finvc: float64(1.3368146974742003), + Flogc: -Float64FromFloat64(0.29028969275850613), + }, + 16: { + Finvc: float64(1.329870114677736), + Flogc: -Float64FromFloat64(0.2850812793277555), + }, + 17: { + Finvc: float64(1.322997339161106), + Flogc: -Float64FromFloat64(0.27989987391470095), + }, + 18: { + Finvc: float64(1.316195352741367), + Flogc: -Float64FromFloat64(0.27474526621870154), + }, + 19: { + Finvc: float64(1.3094628125672239), + Flogc: -Float64FromFloat64(0.2696169863701243), + }, + 20: { + Finvc: float64(1.3027990455471041), + Flogc: -Float64FromFloat64(0.26451506180308115), + }, + 21: { + Finvc: float64(1.2962024229438942), + Flogc: -Float64FromFloat64(0.2594387762767383), + }, + 22: { + Finvc: float64(1.2896726275815547), + Flogc: -Float64FromFloat64(0.2543884090981692), + }, + 23: { + Finvc: float64(1.2832080305745537), + Flogc: -Float64FromFloat64(0.24936321635129843), + }, + 24: { + Finvc: float64(1.276807885983376), + Flogc: -Float64FromFloat64(0.24436312405975968), + }, + 25: { + Finvc: float64(1.2704714060687552), + Flogc: -Float64FromFloat64(0.23938801747897287), + }, + 26: { + Finvc: float64(1.2641976054949482), + Flogc: -Float64FromFloat64(0.23443761696705678), + }, + 27: { + Finvc: float64(1.257985357514882), + Flogc: -Float64FromFloat64(0.22951151871518505), + }, + 28: { + Finvc: float64(1.2518337750655457), + Flogc: -Float64FromFloat64(0.2246094963439873), + }, + 29: { + Finvc: float64(1.2457421919097305), + Flogc: -Float64FromFloat64(0.21973149037705753), + }, + 30: { + Finvc: float64(1.2397094966625508), + Flogc: -Float64FromFloat64(0.2148770752847895), + }, + 31: { + Finvc: float64(1.2337348463589233), + Flogc: -Float64FromFloat64(0.210046029103637), + }, + 32: { + Finvc: float64(1.2278176973028803), + Flogc: -Float64FromFloat64(0.20523836373934046), + }, + 33: { + Finvc: float64(1.2219570190618474), + Flogc: -Float64FromFloat64(0.20045368751368642), + }, + 34: { + Finvc: float64(1.2161519732977757), + Flogc: -Float64FromFloat64(0.1956917537758045), + }, + 35: { + Finvc: float64(1.2104018095009725), + Flogc: -Float64FromFloat64(0.19095237845203883), + }, + 36: { + Finvc: float64(1.204705805718973), + Flogc: -Float64FromFloat64(0.18623539250290833), + }, + 37: { + Finvc: float64(1.1990631185441964), + Flogc: -Float64FromFloat64(0.18154051731551135), + }, + 38: { + Finvc: float64(1.1934733004462308), + Flogc: -Float64FromFloat64(0.1768677957431919), + }, + 39: { + Finvc: float64(1.1879350812847385), + Flogc: -Float64FromFloat64(0.17221657406412305), + }, + 40: { + Finvc: float64(1.1824481322833125), + Flogc: -Float64FromFloat64(0.16758697765942543), + }, + 41: { + Finvc: float64(1.1770114976921955), + Flogc: -Float64FromFloat64(0.16297859687290384), + }, + 42: { + Finvc: float64(1.1716248121809465), + Flogc: -Float64FromFloat64(0.15839151377804228), + }, + 43: { + Finvc: float64(1.1662869231674715), + Flogc: -Float64FromFloat64(0.15382513241456763), + }, + 44: { + Finvc: float64(1.1609977486762766), + Flogc: -Float64FromFloat64(0.14927976358922024), + }, + 45: { + Finvc: float64(1.1557563220795803), + Flogc: -Float64FromFloat64(0.14475495398119165), + }, + 46: { + Finvc: float64(1.1505619105480347), + Flogc: -Float64FromFloat64(0.14025044090817573), + }, + 47: { + Finvc: float64(1.1454138888505974), + Flogc: -Float64FromFloat64(0.1357660466685502), + }, + 48: { + Finvc: float64(1.140311877374656), + Flogc: -Float64FromFloat64(0.1313018016355727), + }, + 49: { + Finvc: float64(1.1352550225747513), + Flogc: -Float64FromFloat64(0.12685731518763532), + }, + 50: { + Finvc: float64(1.1302429094831266), + Flogc: -Float64FromFloat64(0.1224325737671279), + }, + 51: { + Finvc: float64(1.1252747693068048), + Flogc: -Float64FromFloat64(0.11802724521862729), + }, + 52: { + Finvc: float64(1.1203501571039876), + Flogc: -Float64FromFloat64(0.11364127671663482), + }, + 53: { + Finvc: float64(1.1154683327680124), + Flogc: -Float64FromFloat64(0.10927434611278386), + }, + 54: { + Finvc: float64(1.1106291463292157), + Flogc: -Float64FromFloat64(0.10492665324943573), + }, + 55: { + Finvc: float64(1.1058315813301596), + Flogc: -Float64FromFloat64(0.10059761422644442), + }, + 56: { + Finvc: float64(1.1010752177696026), + Flogc: -Float64FromFloat64(0.09628717309055901), + }, + 57: { + Finvc: float64(1.0963597137952512), + Flogc: -Float64FromFloat64(0.09199534069557558), + }, + 58: { + Finvc: float64(1.0916844827550398), + Flogc: -Float64FromFloat64(0.08772190036688698), + }, + 59: { + Finvc: float64(1.0870487291277784), + Flogc: -Float64FromFloat64(0.08346643613867855), + }, + 60: { + Finvc: float64(1.082452357388312), + Flogc: -Float64FromFloat64(0.07922916827544668), + }, + 61: { + Finvc: float64(1.0778948225025884), + Flogc: -Float64FromFloat64(0.0750099004750382), + }, + 62: { + Finvc: float64(1.0733751731601076), + Flogc: -Float64FromFloat64(0.07080805133352897), + }, + 63: { + Finvc: float64(1.068893585073351), + Flogc: -Float64FromFloat64(0.06662408085151128), + }, + 64: { + Finvc: float64(1.0644491706655506), + Flogc: -Float64FromFloat64(0.06245745471915143), + }, + 65: { + Finvc: float64(1.0600414846328305), + Flogc: -Float64FromFloat64(0.0583080438042316), + }, + 66: { + Finvc: float64(1.0556701316181605), + Flogc: -Float64FromFloat64(0.05417576112313327), + }, + 67: { + Finvc: float64(1.051334750556926), + Flogc: -Float64FromFloat64(0.050060547896805474), + }, + 68: { + Finvc: float64(1.0470347288442157), + Flogc: -Float64FromFloat64(0.045962101199052086), + }, + 69: { + Finvc: float64(1.0427699229652954), + Flogc: -Float64FromFloat64(0.04188056008865715), + }, + 70: { + Finvc: float64(1.0385395013738175), + Flogc: -Float64FromFloat64(0.03781540056183985), + }, + 71: { + Finvc: float64(1.034343418940345), + Flogc: -Float64FromFloat64(0.03376684757915882), + }, + 72: { + Finvc: float64(1.0301811073173315), + Flogc: -Float64FromFloat64(0.029734619131772888), + }, + 73: { + Finvc: float64(1.026052043621297), + Flogc: -Float64FromFloat64(0.025718470239212365), + }, + 74: { + Finvc: float64(1.0219561082336197), + Flogc: -Float64FromFloat64(0.021718543925430822), + }, + 75: { + Finvc: float64(1.0178926505784922), + Flogc: -Float64FromFloat64(0.01773446126981071), + }, + 76: { + Finvc: float64(1.0138614436244586), + Flogc: -Float64FromFloat64(0.013766252464051831), + }, + 77: { + Finvc: float64(1.0098620186501341), + Flogc: -Float64FromFloat64(0.009813706322574944), + }, + 78: { + Finvc: float64(1.0058938559734134), + Flogc: -Float64FromFloat64(0.005876555150052809), + }, + 79: { + Finvc: float64(1.00195696235014), + Flogc: -Float64FromFloat64(0.0019550499938532084), + }, + 80: { + Finvc: float64(0.9961089923088509), + Flogc: float64(0.0038985973556009412), + }, + 81: { + Finvc: float64(0.9884170338185201), + Flogc: float64(0.011650571286395461), + }, + 82: { + Finvc: float64(0.9808429191005297), + Flogc: float64(0.019342955478919066), + }, + 83: { + Finvc: float64(0.9733840169987446), + Flogc: float64(0.0269766014846482), + }, + 84: { + Finvc: float64(0.9660377568876556), + Flogc: float64(0.034552359728422744), + }, + 85: { + Finvc: float64(0.9588014945307369), + Flogc: float64(0.04207121767183253), + }, + 86: { + Finvc: float64(0.9516728569073111), + Flogc: float64(0.049533940950141186), + }, + 87: { + Finvc: float64(0.9446494635965822), + Flogc: float64(0.056941358295944156), + }, + 88: { + Finvc: float64(0.9377288993026223), + Flogc: float64(0.06429439168346107), + }, + 89: { + Finvc: float64(0.9309091073790681), + Flogc: float64(0.0715936354946507), + }, + 90: { + Finvc: float64(0.924187681612722), + Flogc: float64(0.07884010933776153), + }, + 91: { + Finvc: float64(0.9175626765599192), + Flogc: float64(0.08603438905970506), + }, + 92: { + Finvc: float64(0.9110320403624034), + Flogc: float64(0.09317721180013905), + }, + 93: { + Finvc: float64(0.9045935839762024), + Flogc: float64(0.10026951462748457), + }, + 94: { + Finvc: float64(0.8982456375922825), + Flogc: float64(0.10731170956330516), + }, + 95: { + Finvc: float64(0.8919860966782501), + Flogc: float64(0.11430473320717738), + }, + 96: { + Finvc: float64(0.8858131121185129), + Flogc: float64(0.12124928503033061), + }, + 97: { + Finvc: float64(0.879725075760676), + Flogc: float64(0.12814583422959913), + }, + 98: { + Finvc: float64(0.8737201372634685), + Flogc: float64(0.1349951636851756), + }, + 99: { + Finvc: float64(0.8677966405782273), + Flogc: float64(0.1417978768189414), + }, + 100: { + Finvc: float64(0.8619528050060739), + Flogc: float64(0.14855476039031146), + }, + 101: { + Finvc: float64(0.8561872354420692), + Flogc: float64(0.1552661937658968), + }, + 102: { + Finvc: float64(0.8504983927816893), + Flogc: float64(0.16193275688146969), + }, + 103: { + Finvc: float64(0.8448844572790304), + Flogc: float64(0.16855539792220497), + }, + 104: { + Finvc: float64(0.8393442741575965), + Flogc: float64(0.1751343179947753), + }, + 105: { + Finvc: float64(0.8338762249349438), + Flogc: float64(0.1816702989864325), + }, + 106: { + Finvc: float64(0.8284789320557778), + Flogc: float64(0.18816387146023317), + }, + 107: { + Finvc: float64(0.8231510800065832), + Flogc: float64(0.1946155228479256), + }, + 108: { + Finvc: float64(0.8178913903778707), + Flogc: float64(0.20102572579389744), + }, + 109: { + Finvc: float64(0.8126984007245374), + Flogc: float64(0.2073952090795501), + }, + 110: { + Finvc: float64(0.8075710029460227), + Flogc: float64(0.21372429840596396), + }, + 111: { + Finvc: float64(0.8025078881160415), + Flogc: float64(0.2200135945981856), + }, + 112: { + Finvc: float64(0.7975077379364331), + Flogc: float64(0.22626374162859975), + }, + 113: { + Finvc: float64(0.792569604966373), + Flogc: float64(0.23247494747693054), + }, + 114: { + Finvc: float64(0.7876923641254114), + Flogc: float64(0.23864766620658884), + }, + 115: { + Finvc: float64(0.7828746724940998), + Flogc: float64(0.24478265647405806), + }, + 116: { + Finvc: float64(0.7781155388790811), + Flogc: float64(0.25088025827324145), + }, + 117: { + Finvc: float64(0.7734139557869777), + Flogc: float64(0.2569408552510595), + }, + 118: { + Finvc: float64(0.7687687179914933), + Flogc: float64(0.26296511155101143), + }, + 119: { + Finvc: float64(0.7641790698041854), + Flogc: float64(0.2689531327189343), + }, + 120: { + Finvc: float64(0.7596438763692399), + Flogc: float64(0.27490553924610595), + }, + 121: { + Finvc: float64(0.7551621951078668), + Flogc: float64(0.2808227248478943), + }, + 122: { + Finvc: float64(0.7507331780216866), + Flogc: float64(0.286704979267256), + }, + 123: { + Finvc: float64(0.7463557196361751), + Flogc: float64(0.29255295645509705), + }, + 124: { + Finvc: float64(0.7420289364869653), + Flogc: float64(0.2983670386142876), + }, + 125: { + Finvc: float64(0.7377521537065876), + Flogc: float64(0.30414734587282055), + }, + 126: { + Finvc: float64(0.7335242966002608), + Flogc: float64(0.30989455774829366), + }, + 127: { + Finvc: float64(0.729344777457841), + Flogc: float64(0.31560871301871884), + }, + }, + Ftab2: [128]struct { + Fchi float64 + Fclo float64 + }{ + 0: { + Fchi: float64(0.6894531274426304), + Fclo: float64(2.60290652810535e-17), + }, + 1: { + Fchi: float64(0.6933593811533166), + Fclo: float64(5.1607448519931415e-17), + }, + 2: { + Fchi: float64(0.6972656502972674), + Fclo: float64(5.290672414887869e-17), + }, + 3: { + Fchi: float64(0.7011718886092148), + Fclo: float64(7.801030634806013e-18), + }, + 4: { + Fchi: float64(0.7050781228976939), + Fclo: -Float64FromFloat64(2.471355337688684e-17), + }, + 5: { + Fchi: float64(0.7089843887644558), + Fclo: -Float64FromFloat64(4.6413389636862956e-17), + }, + 6: { + Fchi: float64(0.7128906815542553), + Fclo: float64(3.3387408065940366e-17), + }, + 7: { + Fchi: float64(0.7167968359278303), + Fclo: -Float64FromFloat64(2.6454587338050098e-17), + }, + 8: { + Fchi: float64(0.7207031520563163), + Fclo: float64(2.4284096334522285e-17), + }, + 9: { + Fchi: float64(0.7246093683054673), + Fclo: float64(4.85782435031982e-17), + }, + 10: { + Fchi: float64(0.7285155644718035), + Fclo: -Float64FromFloat64(1.3014776598894487e-17), + }, + 11: { + Fchi: float64(0.7324219036935506), + Fclo: -Float64FromFloat64(1.0402317671225898e-17), + }, + 12: { + Fchi: float64(0.73632811474659), + Fclo: float64(3.078291427467431e-17), + }, + 13: { + Fchi: float64(0.7402343715130797), + Fclo: -Float64FromFloat64(1.4304998976623033e-17), + }, + 14: { + Fchi: float64(0.7441405900738403), + Fclo: -Float64FromFloat64(2.8625955785571303e-17), + }, + 15: { + Fchi: float64(0.7480468324364), + Fclo: float64(5.1609093535635645e-17), + }, + 16: { + Fchi: float64(0.7519531335902885), + Fclo: float64(4.423423949536319e-17), + }, + 17: { + Fchi: float64(0.7558594189116706), + Fclo: -Float64FromFloat64(4.683016762099508e-17), + }, + 18: { + Fchi: float64(0.7597656365502305), + Fclo: float64(4.466742007514772e-17), + }, + 19: { + Fchi: float64(0.7636719350887737), + Fclo: -Float64FromFloat64(4.8134498775190266e-17), + }, + 20: { + Fchi: float64(0.767578087670501), + Fclo: -Float64FromFloat64(4.3371015350542286e-17), + }, + 21: { + Fchi: float64(0.7714844396979536), + Fclo: -Float64FromFloat64(2.515644472251707e-17), + }, + 22: { + Fchi: float64(0.7753905747966752), + Fclo: -Float64FromFloat64(4.163636184961329e-17), + }, + 23: { + Fchi: float64(0.7792968686084766), + Fclo: float64(3.3837161384165165e-17), + }, + 24: { + Fchi: float64(0.783203182701066), + Fclo: float64(4.379206565056758e-17), + }, + 25: { + Fchi: float64(0.7871094109030913), + Fclo: float64(2.7322930976146396e-17), + }, + 26: { + Fchi: float64(0.7910155783031153), + Fclo: -Float64FromFloat64(5.463661225364046e-17), + }, + 27: { + Fchi: float64(0.7949218121071572), + Fclo: -Float64FromFloat64(1.4320502634189868e-17), + }, + 28: { + Fchi: float64(0.7988281031542229), + Fclo: -Float64FromFloat64(4.0766731402809024e-17), + }, + 29: { + Fchi: float64(0.8027343109146796), + Fclo: -Float64FromFloat64(4.0338264352540086e-17), + }, + 30: { + Fchi: float64(0.8066405901480322), + Fclo: float64(1.7241428071650815e-18), + }, + 31: { + Fchi: float64(0.8105469363625933), + Fclo: -Float64FromFloat64(4.5534218930924523e-17), + }, + 32: { + Fchi: float64(0.8144531571720115), + Fclo: float64(1.821216920589142e-17), + }, + 33: { + Fchi: float64(0.8183593894061396), + Fclo: float64(4.9864288025894273e-17), + }, + 34: { + Fchi: float64(0.8222656559018297), + Fclo: float64(4.335990416726689e-17), + }, + 35: { + Fchi: float64(0.8261719308006343), + Fclo: -Float64FromFloat64(5.422001471661127e-17), + }, + 36: { + Fchi: float64(0.830078177803083), + Fclo: -Float64FromFloat64(5.333603728929035e-17), + }, + 37: { + Fchi: float64(0.8339844538076674), + Fclo: -Float64FromFloat64(1.1270648442682386e-17), + }, + 38: { + Fchi: float64(0.8378905498984414), + Fclo: -Float64FromFloat64(3.165126734800398e-17), + }, + 39: { + Fchi: float64(0.8417968420618669), + Fclo: float64(1.1286283062565865e-17), + }, + 40: { + Fchi: float64(0.8457030568173808), + Fclo: float64(5.643595964448442e-18), + }, + 41: { + Fchi: float64(0.8496093725173733), + Fclo: -Float64FromFloat64(2.1687834632368187e-17), + }, + 42: { + Fchi: float64(0.8535155534462677), + Fclo: -Float64FromFloat64(2.2548234217914977e-17), + }, + 43: { + Fchi: float64(0.8574219432077146), + Fclo: float64(4.683260556353139e-17), + }, + 44: { + Fchi: float64(0.8613281129443706), + Fclo: float64(2.5148296884122795e-17), + }, + 45: { + Fchi: float64(0.8652342893532053), + Fclo: -Float64FromFloat64(8.672187570949467e-18), + }, + 46: { + Fchi: float64(0.8691405397938828), + Fclo: -Float64FromFloat64(1.2576268285559751e-17), + }, + 47: { + Fchi: float64(0.8730468608194392), + Fclo: -Float64FromFloat64(2.9930851265148e-17), + }, + 48: { + Fchi: float64(0.8769530685783117), + Fclo: float64(4.814801507681644e-17), + }, + 49: { + Fchi: float64(0.8808593488818101), + Fclo: -Float64FromFloat64(9.10549533611022e-18), + }, + 50: { + Fchi: float64(0.8847655593409667), + Fclo: -Float64FromFloat64(3.512414651620766e-17), + }, + 51: { + Fchi: float64(0.888671840226208), + Fclo: float64(3.555261815374023e-17), + }, + 52: { + Fchi: float64(0.8925780870017613), + Fclo: float64(1.692380503540994e-17), + }, + 53: { + Fchi: float64(0.8964844367374554), + Fclo: -Float64FromFloat64(1.0837881791715702e-17), + }, + 54: { + Fchi: float64(0.9003905608862683), + Fclo: float64(5.2900545724138363e-17), + }, + 55: { + Fchi: float64(0.9042968358682077), + Fclo: float64(5.3330721088784517e-17), + }, + 56: { + Fchi: float64(0.9082031671057441), + Fclo: float64(1.8640040753232978e-17), + }, + 57: { + Fchi: float64(0.9121093993305497), + Fclo: float64(4.467972832054075e-17), + }, + 58: { + Fchi: float64(0.9160155849026457), + Fclo: -Float64FromFloat64(5.216213419585033e-18), + }, + 59: { + Fchi: float64(0.9199219622862499), + Fclo: -Float64FromFloat64(2.7324731032846873e-17), + }, + 60: { + Fchi: float64(0.9238281880717143), + Fclo: -Float64FromFloat64(1.7769263393434193e-17), + }, + 61: { + Fchi: float64(0.9277343012727929), + Fclo: float64(4.943363080817441e-17), + }, + 62: { + Fchi: float64(0.9316407021562788), + Fclo: float64(4.164434042024055e-17), + }, + 63: { + Fchi: float64(0.935546825207466), + Fclo: float64(1.3011820859795741e-17), + }, + 64: { + Fchi: float64(0.9394530312562943), + Fclo: -Float64FromFloat64(2.7332907838481398e-17), + }, + 65: { + Fchi: float64(0.9433593066844669), + Fclo: float64(2.342133170803292e-17), + }, + 66: { + Fchi: float64(0.9472655994038329), + Fclo: float64(1.6478717480487438e-17), + }, + 67: { + Fchi: float64(0.9511718313032721), + Fclo: -Float64FromFloat64(5.19608290131499e-18), + }, + 68: { + Fchi: float64(0.9550781578218178), + Fclo: -Float64FromFloat64(3.5565573220579e-17), + }, + 69: { + Fchi: float64(0.9589843147339043), + Fclo: float64(2.0816772146458738e-17), + }, + 70: { + Fchi: float64(0.9628906735633685), + Fclo: -Float64FromFloat64(3.471962826146841e-18), + }, + 71: { + Fchi: float64(0.9667968893972092), + Fclo: -Float64FromFloat64(3.68646834472642e-17), + }, + 72: { + Fchi: float64(0.9707031054025779), + Fclo: -Float64FromFloat64(3.4674108076868834e-18), + }, + 73: { + Fchi: float64(0.9746094325494931), + Fclo: float64(4.598152624774392e-17), + }, + 74: { + Fchi: float64(0.9785156054582722), + Fclo: float64(4.553145752392568e-17), + }, + 75: { + Fchi: float64(0.9824218687812282), + Fclo: -Float64FromFloat64(7.811259169418978e-18), + }, + 76: { + Fchi: float64(0.9863280690752917), + Fclo: float64(2.0375615178047467e-17), + }, + 77: { + Fchi: float64(0.9902342909546034), + Fclo: -Float64FromFloat64(1.344597043422914e-17), + }, + 78: { + Fchi: float64(0.9941406780264008), + Fclo: float64(1.51853723695054e-17), + }, + 79: { + Fchi: float64(0.9980468598715558), + Fclo: -Float64FromFloat64(1.301926039598001e-17), + }, + 80: { + Fchi: float64(1.0039062067717412), + Fclo: -Float64FromFloat64(4.596120641744973e-17), + }, + 81: { + Fchi: float64(1.0117187035281372), + Fclo: -Float64FromFloat64(8.152405002665349e-17), + }, + 82: { + Fchi: float64(1.0195312424919558), + Fclo: float64(8.239927014757811e-17), + }, + 83: { + Fchi: float64(1.0273437641634193), + Fclo: float64(3.122851005327045e-17), + }, + 84: { + Fchi: float64(1.0351562274561221), + Fclo: -Float64FromFloat64(1.3010212611128995e-17), + }, + 85: { + Fchi: float64(1.0429687539123276), + Fclo: -Float64FromFloat64(5.984116688633458e-17), + }, + 86: { + Fchi: float64(1.0507812561238108), + Fclo: float64(2.860923854822335e-17), + }, + 87: { + Fchi: float64(1.0585937308350133), + Fclo: -Float64FromFloat64(1.9962944508904598e-17), + }, + 88: { + Fchi: float64(1.0664062936992642), + Fclo: float64(5.291469130309099e-17), + }, + 89: { + Fchi: float64(1.0742187309945372), + Fclo: float64(1.0321575006732523e-16), + }, + 90: { + Fchi: float64(1.082031301537134), + Fclo: float64(9.021194373419119e-17), + }, + 91: { + Fchi: float64(1.0898438063644336), + Fclo: float64(5.202798992357953e-17), + }, + 92: { + Fchi: float64(1.0976562356711468), + Fclo: float64(5.898318482500785e-17), + }, + 93: { + Fchi: float64(1.1054688179463226), + Fclo: float64(8.846377690653252e-17), + }, + 94: { + Fchi: float64(1.113281220803328), + Fclo: -Float64FromFloat64(9.529455965212574e-18), + }, + 95: { + Fchi: float64(1.1210937073167315), + Fclo: float64(6.765080709377787e-17), + }, + 96: { + Fchi: float64(1.1289062967338532), + Fclo: float64(1.0929327370933015e-16), + }, + 97: { + Fchi: float64(1.1367187631150848), + Fclo: float64(6.938570551230516e-17), + }, + 98: { + Fchi: float64(1.1445312490244826), + Fclo: float64(1.908841015045148e-17), + }, + 99: { + Fchi: float64(1.1523437096203593), + Fclo: float64(2.7744504138979832e-17), + }, + 100: { + Fchi: float64(1.1601563266482477), + Fclo: -Float64FromFloat64(1.5621964097491672e-17), + }, + 101: { + Fchi: float64(1.1679688257483505), + Fclo: -Float64FromFloat64(6.4191661495975e-17), + }, + 102: { + Fchi: float64(1.1757811754697645), + Fclo: -Float64FromFloat64(4.336465165059268e-17), + }, + 103: { + Fchi: float64(1.183593793665613), + Fclo: -Float64FromFloat64(3.8159292551356396e-17), + }, + 104: { + Fchi: float64(1.1914062331617676), + Fclo: -Float64FromFloat64(2.94933042768015e-17), + }, + 105: { + Fchi: float64(1.1992187450577771), + Fclo: -Float64FromFloat64(6.244142916351348e-17), + }, + 106: { + Fchi: float64(1.2070312971249755), + Fclo: float64(7.458644622627413e-17), + }, + 107: { + Fchi: float64(1.2148438169965134), + Fclo: float64(2.7760519266147807e-17), + }, + 108: { + Fchi: float64(1.222656225220801), + Fclo: -Float64FromFloat64(7.025106921079665e-17), + }, + 109: { + Fchi: float64(1.2304687681290862), + Fclo: float64(3.7292622364618835e-17), + }, + 110: { + Fchi: float64(1.2382812116234925), + Fclo: float64(2.2558949940652082e-17), + }, + 111: { + Fchi: float64(1.2460936706149877), + Fclo: float64(8.499368944400665e-17), + }, + 112: { + Fchi: float64(1.2539063289686938), + Fclo: float64(1.039515474644361e-17), + }, + 113: { + Fchi: float64(1.2617188367227732), + Fclo: float64(3.297262223275499e-17), + }, + 114: { + Fchi: float64(1.2695311590462317), + Fclo: float64(4.509883253594155e-17), + }, + 115: { + Fchi: float64(1.277343660657941), + Fclo: -Float64FromFloat64(7.546987371769545e-17), + }, + 116: { + Fchi: float64(1.2851561882963496), + Fclo: float64(9.454295598818184e-17), + }, + 117: { + Fchi: float64(1.2929686521915196), + Fclo: -Float64FromFloat64(7.28545609119749e-17), + }, + 118: { + Fchi: float64(1.3007813359167737), + Fclo: -Float64FromFloat64(8.934357651462802e-17), + }, + 119: { + Fchi: float64(1.3085938093753886), + Fclo: float64(8.15257059458102e-17), + }, + 120: { + Fchi: float64(1.3164063202609564), + Fclo: float64(6.946341460765881e-18), + }, + 121: { + Fchi: float64(1.3242188320313901), + Fclo: -Float64FromFloat64(7.892731380721676e-17), + }, + 122: { + Fchi: float64(1.3320311786874468), + Fclo: -Float64FromFloat64(4.3384657500713545e-17), + }, + 123: { + Fchi: float64(1.3398436880573092), + Fclo: float64(9.627577954598792e-17), + }, + 124: { + Fchi: float64(1.3476563390295309), + Fclo: float64(4.2492400590204517e-17), + }, + 125: { + Fchi: float64(1.3554687641043626), + Fclo: -Float64FromFloat64(1.0843419551446047e-16), + }, + 126: { + Fchi: float64(1.3632813590971713), + Fclo: -Float64FromFloat64(8.50172782472025e-17), + }, + 127: { + Fchi: float64(1.3710936595522603), + Fclo: -Float64FromFloat64(7.110627206162922e-17), + }, + }, +} + +var X__logf_data = Tlogf_data{ + Ftab: [16]struct { + Finvc float64 + Flogc float64 + }{ + 0: { + Finvc: float64(1.398907162146528), + Flogc: -Float64FromFloat64(0.33569133332882284), + }, + 1: { + Finvc: float64(1.3403141896637998), + Flogc: -Float64FromFloat64(0.2929040563774074), + }, + 2: { + Finvc: float64(1.286432210124115), + Flogc: -Float64FromFloat64(0.2518726580937369), + }, + 3: { + Finvc: float64(1.2367150214269895), + Flogc: -Float64FromFloat64(0.21245868807117255), + }, + 4: { + Finvc: float64(1.1906977166711752), + Flogc: -Float64FromFloat64(0.17453945183745634), + }, + 5: { + Finvc: float64(1.1479821020556429), + Flogc: -Float64FromFloat64(0.1380057072319758), + }, + 6: { + Finvc: float64(1.1082251448272158), + Flogc: -Float64FromFloat64(0.10275976698545139), + }, + 7: { + Finvc: float64(1.0711297413057381), + Flogc: -Float64FromFloat64(0.06871392447020525), + }, + 8: { + Finvc: float64(1.036437278977283), + Flogc: -Float64FromFloat64(0.0357891387398228), + }, + 9: { + Finvc: float64(1), + }, + 10: { + Finvc: float64(0.9492859795739057), + Flogc: float64(0.05204517742929496), + }, + 11: { + Finvc: float64(0.8951049428609004), + Flogc: float64(0.11081431298787942), + }, + 12: { + Finvc: float64(0.8476821620351103), + Flogc: float64(0.1652495223695143), + }, + 13: { + Finvc: float64(0.8050314851692001), + Flogc: float64(0.21687389031699977), + }, + 14: { + Finvc: float64(0.7664671008843108), + Flogc: float64(0.2659635028121397), + }, + 15: { + Finvc: float64(0.731428603316328), + Flogc: float64(0.3127556664073557), + }, + }, + Fln2: float64(0.6931471805599453), + Fpoly: [3]float64{ + 0: -Float64FromFloat64(0.25089342214237154), + 1: float64(0.333456765744066), + 2: -Float64FromFloat64(0.4999997485802103), + }, +} + +var X__optpos int32 + +var Xoptreset int32 + +var X__pow_log_data = Tpow_log_data{ + Fln2hi: float64(0.6931471805598903), + Fln2lo: float64(5.497923018708371e-14), + Fpoly: [7]float64{ + 0: -Float64FromFloat64(0.5), + 1: float64(Float64FromFloat64(0.3333333333333339) * float64(-Int32FromInt32(2))), + 2: float64(-Float64FromFloat64(0.25000000000000033) * float64(-Int32FromInt32(2))), + 3: float64(Float64FromFloat64(0.1999999998830994) * Float64FromInt32(4)), + 4: float64(-Float64FromFloat64(0.16666666658719348) * Float64FromInt32(4)), + 5: float64(Float64FromFloat64(0.14286370355743763) * float64(-Int32FromInt32(8))), + 6: float64(-Float64FromFloat64(0.12500519079594427) * float64(-Int32FromInt32(8))), + }, + Ftab: [128]struct { + Finvc float64 + Fpad float64 + Flogc float64 + Flogctail float64 + }{ + 0: { + Finvc: float64(1.4140625), + Flogc: -Float64FromFloat64(0.3464667673462145), + Flogctail: float64(5.929407345889625e-15), + }, + 1: { + Finvc: float64(1.40625), + Flogc: -Float64FromFloat64(0.34092658697056777), + Flogctail: -Float64FromFloat64(2.544157440035963e-14), + }, + 2: { + Finvc: float64(1.3984375), + Flogc: -Float64FromFloat64(0.3353555419211034), + Flogctail: -Float64FromFloat64(3.443525940775045e-14), + }, + 3: { + Finvc: float64(1.390625), + Flogc: -Float64FromFloat64(0.3297532863724655), + Flogctail: -Float64FromFloat64(2.500123826022799e-15), + }, + 4: { + Finvc: float64(1.3828125), + Flogc: -Float64FromFloat64(0.32411946865420305), + Flogctail: -Float64FromFloat64(8.929337133850617e-15), + }, + 5: { + Finvc: float64(1.375), + Flogc: -Float64FromFloat64(0.31845373111855224), + Flogctail: float64(1.7625431312172662e-14), + }, + 6: { + Finvc: float64(1.3671875), + Flogc: -Float64FromFloat64(0.31275571000389846), + Flogctail: float64(1.5688303180062087e-15), + }, + 7: { + Finvc: float64(1.359375), + Flogc: -Float64FromFloat64(0.3070250352949415), + Flogctail: float64(2.9655274673691784e-14), + }, + 8: { + Finvc: float64(1.3515625), + Flogc: -Float64FromFloat64(0.3012613305781997), + Flogctail: float64(3.7923164802093147e-14), + }, + 9: { + Finvc: float64(1.34375), + Flogc: -Float64FromFloat64(0.2954642128938758), + Flogctail: float64(3.993416384387844e-14), + }, + 10: { + Finvc: float64(1.3359375), + Flogc: -Float64FromFloat64(0.28963329258306203), + Flogctail: float64(1.9352855826489123e-14), + }, + 11: { + Finvc: float64(1.3359375), + Flogc: -Float64FromFloat64(0.28963329258306203), + Flogctail: float64(1.9352855826489123e-14), + }, + 12: { + Finvc: float64(1.328125), + Flogc: -Float64FromFloat64(0.28376817313062475), + Flogctail: -Float64FromFloat64(1.9852665484979036e-14), + }, + 13: { + Finvc: float64(1.3203125), + Flogc: -Float64FromFloat64(0.27786845100342816), + Flogctail: -Float64FromFloat64(2.814323765595281e-14), + }, + 14: { + Finvc: float64(1.3125), + Flogc: -Float64FromFloat64(0.2719337154836694), + Flogctail: float64(2.7643769993528702e-14), + }, + 15: { + Finvc: float64(1.3046875), + Flogc: -Float64FromFloat64(0.2659635484970977), + Flogctail: -Float64FromFloat64(4.025092402293806e-14), + }, + 16: { + Finvc: float64(1.296875), + Flogc: -Float64FromFloat64(0.25995752443691345), + Flogctail: -Float64FromFloat64(1.2621729398885316e-14), + }, + 17: { + Finvc: float64(1.2890625), + Flogc: -Float64FromFloat64(0.25391520998095984), + Flogctail: -Float64FromFloat64(3.600176732637335e-15), + }, + 18: { + Finvc: float64(1.2890625), + Flogc: -Float64FromFloat64(0.25391520998095984), + Flogctail: -Float64FromFloat64(3.600176732637335e-15), + }, + 19: { + Finvc: float64(1.28125), + Flogc: -Float64FromFloat64(0.2478361639045943), + Flogctail: float64(1.3029797173308663e-14), + }, + 20: { + Finvc: float64(1.2734375), + Flogc: -Float64FromFloat64(0.2417199368871934), + Flogctail: float64(4.8230289429940886e-14), + }, + 21: { + Finvc: float64(1.265625), + Flogc: -Float64FromFloat64(0.23556607131274632), + Flogctail: -Float64FromFloat64(2.0592242769647135e-14), + }, + 22: { + Finvc: float64(1.2578125), + Flogc: -Float64FromFloat64(0.22937410106487732), + Flogctail: float64(3.149265065191484e-14), + }, + 23: { + Finvc: float64(1.25), + Flogc: -Float64FromFloat64(0.22314355131425145), + Flogctail: float64(4.169796584527195e-14), + }, + 24: { + Finvc: float64(1.25), + Flogc: -Float64FromFloat64(0.22314355131425145), + Flogctail: float64(4.169796584527195e-14), + }, + 25: { + Finvc: float64(1.2421875), + Flogc: -Float64FromFloat64(0.21687393830063684), + Flogctail: float64(2.2477465222466186e-14), + }, + 26: { + Finvc: float64(1.234375), + Flogc: -Float64FromFloat64(0.21056476910735), + Flogctail: float64(3.6507188831790577e-16), + }, + 27: { + Finvc: float64(1.2265625), + Flogc: -Float64FromFloat64(0.2042155414286526), + Flogctail: -Float64FromFloat64(3.827767260205414e-14), + }, + 28: { + Finvc: float64(1.2265625), + Flogc: -Float64FromFloat64(0.2042155414286526), + Flogctail: -Float64FromFloat64(3.827767260205414e-14), + }, + 29: { + Finvc: float64(1.21875), + Flogc: -Float64FromFloat64(0.19782574332987224), + Flogctail: -Float64FromFloat64(4.7641388950792196e-14), + }, + 30: { + Finvc: float64(1.2109375), + Flogc: -Float64FromFloat64(0.19139485299967873), + Flogctail: float64(4.9278276214647115e-14), + }, + 31: { + Finvc: float64(1.203125), + Flogc: -Float64FromFloat64(0.18492233849406148), + Flogctail: float64(4.9485167661250996e-14), + }, + 32: { + Finvc: float64(1.203125), + Flogc: -Float64FromFloat64(0.18492233849406148), + Flogctail: float64(4.9485167661250996e-14), + }, + 33: { + Finvc: float64(1.1953125), + Flogc: -Float64FromFloat64(0.1784076574728033), + Flogctail: -Float64FromFloat64(1.5003333854266542e-14), + }, + 34: { + Finvc: float64(1.1875), + Flogc: -Float64FromFloat64(0.17185025692663203), + Flogctail: -Float64FromFloat64(2.7194441649495324e-14), + }, + 35: { + Finvc: float64(1.1875), + Flogc: -Float64FromFloat64(0.17185025692663203), + Flogctail: -Float64FromFloat64(2.7194441649495324e-14), + }, + 36: { + Finvc: float64(1.1796875), + Flogc: -Float64FromFloat64(0.1652495728952772), + Flogctail: -Float64FromFloat64(2.99659267292569e-14), + }, + 37: { + Finvc: float64(1.171875), + Flogc: -Float64FromFloat64(0.15860503017665906), + Flogctail: float64(2.0472357800461955e-14), + }, + 38: { + Finvc: float64(1.171875), + Flogc: -Float64FromFloat64(0.15860503017665906), + Flogctail: float64(2.0472357800461955e-14), + }, + 39: { + Finvc: float64(1.1640625), + Flogc: -Float64FromFloat64(0.15191604202584585), + Flogctail: float64(3.879296723063646e-15), + }, + 40: { + Finvc: float64(1.15625), + Flogc: -Float64FromFloat64(0.1451820098444614), + Flogctail: -Float64FromFloat64(3.6506824353335045e-14), + }, + 41: { + Finvc: float64(1.1484375), + Flogc: -Float64FromFloat64(0.13840232285906495), + Flogctail: -Float64FromFloat64(5.4183331379008994e-14), + }, + 42: { + Finvc: float64(1.1484375), + Flogc: -Float64FromFloat64(0.13840232285906495), + Flogctail: -Float64FromFloat64(5.4183331379008994e-14), + }, + 43: { + Finvc: float64(1.140625), + Flogc: -Float64FromFloat64(0.131576357788731), + Flogctail: float64(1.1729485484531301e-14), + }, + 44: { + Finvc: float64(1.140625), + Flogc: -Float64FromFloat64(0.131576357788731), + Flogctail: float64(1.1729485484531301e-14), + }, + 45: { + Finvc: float64(1.1328125), + Flogc: -Float64FromFloat64(0.12470347850091912), + Flogctail: -Float64FromFloat64(3.811763084710266e-14), + }, + 46: { + Finvc: float64(1.125), + Flogc: -Float64FromFloat64(0.11778303565643), + Flogctail: float64(4.654729747598445e-14), + }, + 47: { + Finvc: float64(1.125), + Flogc: -Float64FromFloat64(0.11778303565643), + Flogctail: float64(4.654729747598445e-14), + }, + 48: { + Finvc: float64(1.1171875), + Flogc: -Float64FromFloat64(0.11081436634026431), + Flogctail: -Float64FromFloat64(2.5799991283069902e-14), + }, + 49: { + Finvc: float64(1.109375), + Flogc: -Float64FromFloat64(0.10379679368168127), + Flogctail: float64(3.7700471749674615e-14), + }, + 50: { + Finvc: float64(1.109375), + Flogc: -Float64FromFloat64(0.10379679368168127), + Flogctail: float64(3.7700471749674615e-14), + }, + 51: { + Finvc: float64(1.1015625), + Flogc: -Float64FromFloat64(0.09672962645856842), + Flogctail: float64(1.7306161136093256e-14), + }, + 52: { + Finvc: float64(1.1015625), + Flogc: -Float64FromFloat64(0.09672962645856842), + Flogctail: float64(1.7306161136093256e-14), + }, + 53: { + Finvc: float64(1.09375), + Flogc: -Float64FromFloat64(0.089612158689647), + Flogctail: -Float64FromFloat64(4.012913552726574e-14), + }, + 54: { + Finvc: float64(1.0859375), + Flogc: -Float64FromFloat64(0.08244366921110213), + Flogctail: float64(2.7541708360737882e-14), + }, + 55: { + Finvc: float64(1.0859375), + Flogc: -Float64FromFloat64(0.08244366921110213), + Flogctail: float64(2.7541708360737882e-14), + }, + 56: { + Finvc: float64(1.078125), + Flogc: -Float64FromFloat64(0.07522342123763792), + Flogctail: float64(5.0396178134370583e-14), + }, + 57: { + Finvc: float64(1.078125), + Flogc: -Float64FromFloat64(0.07522342123763792), + Flogctail: float64(5.0396178134370583e-14), + }, + 58: { + Finvc: float64(1.0703125), + Flogc: -Float64FromFloat64(0.06795066190852594), + Flogctail: float64(1.8195060030168815e-14), + }, + 59: { + Finvc: float64(1.0625), + Flogc: -Float64FromFloat64(0.06062462181648698), + Flogctail: float64(5.213620639136504e-14), + }, + 60: { + Finvc: float64(1.0625), + Flogc: -Float64FromFloat64(0.06062462181648698), + Flogctail: float64(5.213620639136504e-14), + }, + 61: { + Finvc: float64(1.0546875), + Flogc: -Float64FromFloat64(0.053244514518837605), + Flogctail: float64(2.532168943117445e-14), + }, + 62: { + Finvc: float64(1.0546875), + Flogc: -Float64FromFloat64(0.053244514518837605), + Flogctail: float64(2.532168943117445e-14), + }, + 63: { + Finvc: float64(1.046875), + Flogc: -Float64FromFloat64(0.045809536031242715), + Flogctail: -Float64FromFloat64(5.148849572685811e-14), + }, + 64: { + Finvc: float64(1.046875), + Flogc: -Float64FromFloat64(0.045809536031242715), + Flogctail: -Float64FromFloat64(5.148849572685811e-14), + }, + 65: { + Finvc: float64(1.0390625), + Flogc: -Float64FromFloat64(0.038318864302141264), + Flogctail: float64(4.6652946995830086e-15), + }, + 66: { + Finvc: float64(1.0390625), + Flogc: -Float64FromFloat64(0.038318864302141264), + Flogctail: float64(4.6652946995830086e-15), + }, + 67: { + Finvc: float64(1.03125), + Flogc: -Float64FromFloat64(0.03077165866670839), + Flogctail: -Float64FromFloat64(4.529814257790929e-14), + }, + 68: { + Finvc: float64(1.03125), + Flogc: -Float64FromFloat64(0.03077165866670839), + Flogctail: -Float64FromFloat64(4.529814257790929e-14), + }, + 69: { + Finvc: float64(1.0234375), + Flogc: -Float64FromFloat64(0.023167059281490765), + Flogctail: -Float64FromFloat64(4.361324067851568e-14), + }, + 70: { + Finvc: float64(1.015625), + Flogc: -Float64FromFloat64(0.015504186535963527), + Flogctail: -Float64FromFloat64(1.7274567499706107e-15), + }, + 71: { + Finvc: float64(1.015625), + Flogc: -Float64FromFloat64(0.015504186535963527), + Flogctail: -Float64FromFloat64(1.7274567499706107e-15), + }, + 72: { + Finvc: float64(1.0078125), + Flogc: -Float64FromFloat64(0.0077821404420319595), + Flogctail: -Float64FromFloat64(2.298941004620351e-14), + }, + 73: { + Finvc: float64(1.0078125), + Flogc: -Float64FromFloat64(0.0077821404420319595), + Flogctail: -Float64FromFloat64(2.298941004620351e-14), + }, + 74: { + Finvc: float64(1), + }, + 75: { + Finvc: float64(1), + }, + 76: { + Finvc: float64(0.9921875), + Flogc: float64(0.007843177461040796), + Flogctail: -Float64FromFloat64(1.4902732911301337e-14), + }, + 77: { + Finvc: float64(0.984375), + Flogc: float64(0.01574835696817445), + Flogctail: -Float64FromFloat64(3.527980389655325e-14), + }, + 78: { + Finvc: float64(0.9765625), + Flogc: float64(0.023716526617363343), + Flogctail: -Float64FromFloat64(4.730054772033249e-14), + }, + 79: { + Finvc: float64(0.96875), + Flogc: float64(0.03174869831457272), + Flogctail: float64(7.580310369375161e-15), + }, + 80: { + Finvc: float64(0.9609375), + Flogc: float64(0.039845908547249564), + Flogctail: -Float64FromFloat64(4.9893776716773285e-14), + }, + 81: { + Finvc: float64(0.953125), + Flogc: float64(0.048009219186383234), + Flogctail: -Float64FromFloat64(2.262629393030674e-14), + }, + 82: { + Finvc: float64(0.9453125), + Flogc: float64(0.056239718322899535), + Flogctail: -Float64FromFloat64(2.345674491018699e-14), + }, + 83: { + Finvc: float64(0.94140625), + Flogc: float64(0.06038051098892083), + Flogctail: -Float64FromFloat64(1.3352588834854848e-14), + }, + 84: { + Finvc: float64(0.93359375), + Flogc: float64(0.06871389254808946), + Flogctail: -Float64FromFloat64(3.765296820388875e-14), + }, + 85: { + Finvc: float64(0.92578125), + Flogc: float64(0.07711730334438016), + Flogctail: float64(5.1128335719851986e-14), + }, + 86: { + Finvc: float64(0.91796875), + Flogc: float64(0.08559193033545398), + Flogctail: -Float64FromFloat64(5.046674438470119e-14), + }, + 87: { + Finvc: float64(0.9140625), + Flogc: float64(0.08985632912185793), + Flogctail: float64(3.1218748807418837e-15), + }, + 88: { + Finvc: float64(0.90625), + Flogc: float64(0.09844007281321865), + Flogctail: float64(3.3871241029241416e-14), + }, + 89: { + Finvc: float64(0.8984375), + Flogc: float64(0.10709813555638448), + Flogctail: -Float64FromFloat64(1.7376727386423858e-14), + }, + 90: { + Finvc: float64(0.89453125), + Flogc: float64(0.11145544092528326), + Flogctail: float64(3.957125899799804e-14), + }, + 91: { + Finvc: float64(0.88671875), + Flogc: float64(0.12022742699821265), + Flogctail: -Float64FromFloat64(5.2849453521890294e-14), + }, + 92: { + Finvc: float64(0.8828125), + Flogc: float64(0.12464244520731427), + Flogctail: -Float64FromFloat64(3.767012502308738e-14), + }, + 93: { + Finvc: float64(0.875), + Flogc: float64(0.13353139262449076), + Flogctail: float64(3.1859736349078334e-14), + }, + 94: { + Finvc: float64(0.87109375), + Flogc: float64(0.13800567301939282), + Flogctail: float64(5.0900642926060466e-14), + }, + 95: { + Finvc: float64(0.86328125), + Flogc: float64(0.14701474296180095), + Flogctail: float64(8.710783796122478e-15), + }, + 96: { + Finvc: float64(0.859375), + Flogc: float64(0.15154989812720032), + Flogctail: float64(6.157896229122976e-16), + }, + 97: { + Finvc: float64(0.8515625), + Flogc: float64(0.16068238169043525), + Flogctail: float64(3.821577743916796e-14), + }, + 98: { + Finvc: float64(0.84765625), + Flogc: float64(0.16528009093906348), + Flogctail: float64(3.9440046718453496e-14), + }, + 99: { + Finvc: float64(0.83984375), + Flogc: float64(0.17453941635187675), + Flogctail: float64(2.2924522154618074e-14), + }, + 100: { + Finvc: float64(0.8359375), + Flogc: float64(0.17920142945774842), + Flogctail: -Float64FromFloat64(3.742530094732263e-14), + }, + 101: { + Finvc: float64(0.83203125), + Flogc: float64(0.18388527877016259), + Flogctail: -Float64FromFloat64(2.5223102140407338e-14), + }, + 102: { + Finvc: float64(0.82421875), + Flogc: float64(0.1933193110035063), + Flogctail: -Float64FromFloat64(1.0320443688698849e-14), + }, + 103: { + Finvc: float64(0.8203125), + Flogc: float64(0.19806991376208316), + Flogctail: float64(1.0634128304268335e-14), + }, + 104: { + Finvc: float64(0.8125), + Flogc: float64(0.20763936477828793), + Flogctail: -Float64FromFloat64(4.3425422595242564e-14), + }, + 105: { + Finvc: float64(0.80859375), + Flogc: float64(0.21245865121420593), + Flogctail: -Float64FromFloat64(1.2527395755711364e-14), + }, + 106: { + Finvc: float64(0.8046875), + Flogc: float64(0.21730127569003344), + Flogctail: -Float64FromFloat64(5.204008743405884e-14), + }, + 107: { + Finvc: float64(0.80078125), + Flogc: float64(0.22216746534115828), + Flogctail: -Float64FromFloat64(3.979844515951702e-15), + }, + 108: { + Finvc: float64(0.79296875), + Flogc: float64(0.2319714654378231), + Flogctail: -Float64FromFloat64(4.7955860343296286e-14), + }, + 109: { + Finvc: float64(0.7890625), + Flogc: float64(0.2369097470783572), + Flogctail: float64(5.015686013791602e-16), + }, + 110: { + Finvc: float64(0.78515625), + Flogc: float64(0.24187253642048745), + Flogctail: -Float64FromFloat64(7.252318953240293e-16), + }, + 111: { + Finvc: float64(0.78125), + Flogc: float64(0.2468600779315011), + Flogctail: float64(2.4688324156011588e-14), + }, + 112: { + Finvc: float64(0.7734375), + Flogc: float64(0.2569104137850218), + Flogctail: float64(5.465121253624792e-15), + }, + 113: { + Finvc: float64(0.76953125), + Flogc: float64(0.26197371574153294), + Flogctail: float64(4.102651071698446e-14), + }, + 114: { + Finvc: float64(0.765625), + Flogc: float64(0.2670627852490952), + Flogctail: -Float64FromFloat64(4.996736502345936e-14), + }, + 115: { + Finvc: float64(0.76171875), + Flogc: float64(0.27217788591576664), + Flogctail: float64(4.903580708156347e-14), + }, + 116: { + Finvc: float64(0.7578125), + Flogc: float64(0.27731928541618345), + Flogctail: float64(5.089628039500759e-14), + }, + 117: { + Finvc: float64(0.75390625), + Flogc: float64(0.28248725557466514), + Flogctail: float64(1.1782016386565151e-14), + }, + 118: { + Finvc: float64(0.74609375), + Flogc: float64(0.29290401643288533), + Flogctail: float64(4.727452940514406e-14), + }, + 119: { + Finvc: float64(0.7421875), + Flogc: float64(0.29815337231912054), + Flogctail: -Float64FromFloat64(4.4204083338755686e-14), + }, + 120: { + Finvc: float64(0.73828125), + Flogc: float64(0.3034304294199046), + Flogctail: float64(1.548345993498083e-14), + }, + 121: { + Finvc: float64(0.734375), + Flogc: float64(0.30873548164959175), + Flogctail: float64(2.1522127491642888e-14), + }, + 122: { + Finvc: float64(0.73046875), + Flogc: float64(0.3140688276249648), + Flogctail: float64(1.1054030169005386e-14), + }, + 123: { + Finvc: float64(0.7265625), + Flogc: float64(0.31943077076641657), + Flogctail: -Float64FromFloat64(5.534326352070679e-14), + }, + 124: { + Finvc: float64(0.72265625), + Flogc: float64(0.3248216194012912), + Flogctail: -Float64FromFloat64(5.351646604259541e-14), + }, + 125: { + Finvc: float64(0.71875), + Flogc: float64(0.33024168687052224), + Flogctail: float64(5.4612144489920215e-14), + }, + 126: { + Finvc: float64(0.71484375), + Flogc: float64(0.3356912916381134), + Flogctail: float64(2.8136969901227338e-14), + }, + 127: { + Finvc: float64(0.7109375), + Flogc: float64(0.3411707574027787), + Flogctail: -Float64FromFloat64(1.156568624616423e-14), + }, + }, +} + +var X__powf_log2_data = Tpowf_log2_data{ + Ftab: [16]struct { + Finvc float64 + Flogc float64 + }{ + 0: { + Finvc: float64(1.398907162146528), + Flogc: float64(-Float64FromFloat64(0.48430022186289673) * float64(Int32FromInt32(1)<> int32(32)) + **(**int32)(__ccgo_up(expt)) = Int32FromUint32(hx>>Int32FromInt32(20) - Uint32FromInt32(Int32FromInt32(0x3ff)+Int32FromInt32(1023)) + _k) + v1 = uint64(hx&Uint32FromInt32(0xfffff)|Uint32FromInt32((Int32FromInt32(0x3ff)+Int32FromInt32(1023))<= ln(DBL_MAX)) +// * where care is needed to avoid overflow. +// * +// * The present implementation is narrowly tailored for our hyperbolic and +// * exponential functions. We assume expt is small (0 or -1), and the caller +// * has filtered out very large x, for which overflow would be inevitable. +// */ +func X__ldexp_cexp(tls *TLS, z complex128, expt int32) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v expt=%v, (%v:)", tls, z, expt, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var exp_x, scale1, scale2, x, y float64 + var half_expt int32 + var v1 Tuint64_t + var v3 [2]float64 + var _ /* ex_expt at bp+0 */ int32 + _, _, _, _, _, _, _, _ = exp_x, half_expt, scale1, scale2, x, y, v1, v3 + x = Float64FromComplex128(z) + y = +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] + exp_x = ___frexp_exp(tls, x, bp) + expt = expt + **(**int32)(__ccgo_up(bp)) + /* + * Arrange so that scale1 * scale2 == 2**expt. We use this to + * compensate for scalbn being horrendously slow. + */ + half_expt = expt / int32(2) + v1 = Uint64FromInt32((Int32FromInt32(0x3ff)+half_expt)<>Int32FromInt32(23) - Uint32FromInt32(Int32FromInt32(0x7f)+Int32FromInt32(127)) + _k1) + v1 = hx&uint32(0x7fffff) | Uint32FromInt32((Int32FromInt32(0x7f)+Int32FromInt32(127))< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var exp_x, scale1, scale2, x, y float32 + var half_expt int32 + var v1 Tuint32_t + var v3 [2]float32 + var _ /* ex_expt at bp+0 */ int32 + _, _, _, _, _, _, _, _ = exp_x, half_expt, scale1, scale2, x, y, v1, v3 + x = Float32FromComplex64(z) + y = +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] + exp_x = ___frexp_expf(tls, x, bp) + expt = expt + **(**int32)(__ccgo_up(bp)) + half_expt = expt / int32(2) + v1 = Uint32FromInt32((int32(0x7f) + half_expt) << int32(23)) + scale1 = *(*float32)(unsafe.Pointer(&v1)) + half_expt = expt - half_expt + v1 = Uint32FromInt32((int32(0x7f) + half_expt) << int32(23)) + scale2 = *(*float32)(unsafe.Pointer(&v1)) + v3 = [2]float32{ + 0: float32(float32(float32(Xcosf(tls, y)*exp_x)*scale1) * scale2), + 1: float32(float32(float32(Xsinf(tls, y)*exp_x)*scale1) * scale2), + } + return *(*complex64)(unsafe.Pointer(&v3)) +} + +func Xcabs(tls *TLS, z complex128) (r float64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xhypot(tls, Float64FromComplex128(z), +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)]) +} + +func Xcabsf(tls *TLS, z complex64) (r float32) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xhypotf(tls, Float32FromComplex64(z), +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)]) +} + +func Xcabsl(tls *TLS, z complex128) (r float64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xcabs(tls, Complex128FromComplex128(z)) +} + +const M_PI_21 = 1.5707963267948966 + +// FIXME: Hull et al. "Implementing the complex arcsine and arccosine functions using exception handling" 1997 + +/* acos(z) = pi/2 - asin(z) */ + +func Xcacos(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float64 + _ = v1 + z = Xcasin(tls, z) + v1 = [2]float64{ + 0: float64(1.5707963267948966) - Float64FromComplex128(z), + 1: -+(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +// FIXME + +var _float_pi_2 = float32(1.5707963267948966) + +func Xcacosf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float32 + _ = v1 + z = Xcasinf(tls, z) + v1 = [2]float32{ + 0: _float_pi_2 - Float32FromComplex64(z), + 1: -+(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + } + return *(*complex64)(unsafe.Pointer(&v1)) +} + +const M_PI_22 = 0 + +/* acosh(z) = i acos(z) */ + +func Xcacosh(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var zineg int32 + var v1 uint64 + var v3 [2]float64 + var _ /* __u at bp+0 */ struct { + F__ccgo_align [0]uint32 + F__i [0]uint64 + F__f float64 + } + _, _, _ = zineg, v1, v3 + *(*float64)(unsafe.Pointer(bp)) = +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + zineg = Int32FromUint64(v1 >> Int32FromInt32(63)) + z = Xcacos(tls, z) + if zineg != 0 { + v3 = [2]float64{ + 0: +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: -Float64FromComplex128(z), + } + return *(*complex128)(unsafe.Pointer(&v3)) + } else { + v3 = [2]float64{ + 0: -+(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: Float64FromComplex128(z), + } + return *(*complex128)(unsafe.Pointer(&v3)) + } + return r +} + +func Xcacoshf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var zineg int32 + var v1 uint32 + var v3 [2]float32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _, _, _ = zineg, v1, v3 + *(*float32)(unsafe.Pointer(bp)) = +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + zineg = Int32FromUint32(v1 >> Int32FromInt32(31)) + z = Xcacosf(tls, z) + if zineg != 0 { + v3 = [2]float32{ + 0: +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: -Float32FromComplex64(z), + } + return *(*complex64)(unsafe.Pointer(&v3)) + } else { + v3 = [2]float32{ + 0: -+(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: Float32FromComplex64(z), + } + return *(*complex64)(unsafe.Pointer(&v3)) + } + return r +} + +func Xcacoshl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcacosh(tls, Complex128FromComplex128(z))) +} + +func Xcacosl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcacos(tls, Complex128FromComplex128(z))) +} + +func Xcarg(tls *TLS, z complex128) (r float64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xatan2(tls, +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], Float64FromComplex128(z)) +} + +func Xcargf(tls *TLS, z complex64) (r float32) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xatan2f(tls, +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], Float32FromComplex64(z)) +} + +func Xcargl(tls *TLS, z complex128) (r float64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xcarg(tls, Complex128FromComplex128(z)) +} + +// FIXME + +/* asin(z) = -i log(i z + sqrt(1 - z*z)) */ + +func Xcasin(tls *TLS, z complex128) (r1 complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, w complex128 + var x, y float64 + var v1, v2 [2]float64 + _, _, _, _, _, _ = r, w, x, y, v1, v2 + x = Float64FromComplex128(z) + y = +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] + v1 = [2]float64{ + 0: float64(1) - float64((x-y)*(x+y)), + 1: float64(float64(-Float64FromFloat64(2)*x) * y), + } + w = *(*complex128)(unsafe.Pointer(&v1)) + v1 = [2]float64{ + 0: -y, + 1: x, + } + r = Xclog(tls, *(*complex128)(unsafe.Pointer(&v1))+Xcsqrt(tls, w)) + v2 = [2]float64{ + 0: +(*(*[2]float64)(unsafe.Pointer(&r)))[int32(1)], + 1: -Float64FromComplex128(r), + } + return *(*complex128)(unsafe.Pointer(&v2)) +} + +// FIXME + +func Xcasinf(tls *TLS, z complex64) (r1 complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, w complex64 + var x, y float32 + var v1, v2 [2]float32 + _, _, _, _, _, _ = r, w, x, y, v1, v2 + x = Float32FromComplex64(z) + y = +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] + v1 = [2]float32{ + 0: float32(Float64FromFloat64(1) - float64((x-y)*(x+y))), + 1: float32(float64(float64(-Float64FromFloat64(2)*float64(x)) * float64(y))), + } + w = *(*complex64)(unsafe.Pointer(&v1)) + v1 = [2]float32{ + 0: -y, + 1: x, + } + r = Xclogf(tls, *(*complex64)(unsafe.Pointer(&v1))+Xcsqrtf(tls, w)) + v2 = [2]float32{ + 0: +(*(*[2]float32)(unsafe.Pointer(&r)))[int32(1)], + 1: -Float32FromComplex64(r), + } + return *(*complex64)(unsafe.Pointer(&v2)) +} + +/* asinh(z) = -i asin(i z) */ + +func Xcasinh(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float64 + _ = v1 + v1 = [2]float64{ + 0: -+(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: Float64FromComplex128(z), + } + z = Xcasin(tls, *(*complex128)(unsafe.Pointer(&v1))) + v1 = [2]float64{ + 0: +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: -Float64FromComplex128(z), + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +func Xcasinhf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float32 + _ = v1 + v1 = [2]float32{ + 0: -+(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: Float32FromComplex64(z), + } + z = Xcasinf(tls, *(*complex64)(unsafe.Pointer(&v1))) + v1 = [2]float32{ + 0: +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: -Float32FromComplex64(z), + } + return *(*complex64)(unsafe.Pointer(&v1)) +} + +func Xcasinhl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcasinh(tls, Complex128FromComplex128(z))) +} + +func Xcasinl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcasin(tls, Complex128FromComplex128(z))) +} + +const MAXNUM = 0 +const M_PI1 = 3.141592653589793 + +var _DP1 = float64(3.141592651605606) +var _DP2 = float64(1.9841871479187034e-09) +var _DP3 = float64(1.1442377452219664e-17) + +func __redupi(tls *TLS, x float64) (r float64) { + var i int32 + var t float64 + _, _ = i, t + t = x / float64(3.141592653589793) + if t >= float64(0) { + t = t + float64(0.5) + } else { + t = t - float64(0.5) + } + i = int32(t) /* the multiple */ + t = float64(i) + t = x - float64(t*_DP1) - float64(t*_DP2) - float64(t*_DP3) + return t +} + +func Xcatan(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, t, x, x2, y float64 + var w complex128 + var v1 [2]float64 + _, _, _, _, _, _, _ = a, t, w, x, x2, y, v1 + x = Float64FromComplex128(z) + y = +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] + x2 = float64(x * x) + a = float64(1) - x2 - float64(y*y) + t = float64(float64(0.5) * Xatan2(tls, float64(float64(2)*x), a)) + w = Complex128FromFloat64(__redupi(tls, t)) + t = y - float64(1) + a = x2 + float64(t*t) + t = y + float64(1) + a = (x2 + float64(t*t)) / a + v1 = [2]float64{ + 0: Float64FromComplex128(w), + 1: float64(float64(0.25) * Xlog(tls, a)), + } + w = *(*complex128)(unsafe.Pointer(&v1)) + return w +} + +const MAXNUMF = 0 + +var _DP11 = float64(3.140625) +var _DP21 = float64(0.0009675025939941406) +var _DP31 = float64(1.5099579909783765e-07) + +var _float_pi = float32(3.141592653589793) + +func __redupif(tls *TLS, xx float32) (r float32) { + var i int32 + var t, x float32 + _, _, _ = i, t, x + x = xx + t = x / _float_pi + if t >= Float32FromFloat32(0) { + t = t + Float32FromFloat32(0.5) + } else { + t = t - Float32FromFloat32(0.5) + } + i = int32(t) /* the multiple */ + t = float32(i) + t = float32(float64(x) - float64(float64(t)*_DP11) - float64(float64(t)*_DP21) - float64(float64(t)*_DP31)) + return t +} + +func Xcatanf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, t, x, x2, y float32 + var w complex64 + var v1 [2]float32 + _, _, _, _, _, _, _ = a, t, w, x, x2, y, v1 + x = Float32FromComplex64(z) + y = +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] + x2 = float32(x * x) + a = Float32FromFloat32(1) - x2 - float32(y*y) + t = float32(Float32FromFloat32(0.5) * Xatan2f(tls, float32(Float32FromFloat32(2)*x), a)) + w = Complex64FromFloat32(__redupif(tls, t)) + t = y - Float32FromFloat32(1) + a = x2 + float32(t*t) + t = y + Float32FromFloat32(1) + a = (x2 + float32(t*t)) / a + v1 = [2]float32{ + 0: Float32FromComplex64(w), + 1: float32(Float32FromFloat32(0.25) * Xlogf(tls, a)), + } + w = *(*complex64)(unsafe.Pointer(&v1)) + return w +} + +const M_PI2 = 0 + +/* atanh = -i atan(i z) */ + +func Xcatanh(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float64 + _ = v1 + v1 = [2]float64{ + 0: -+(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: Float64FromComplex128(z), + } + z = Xcatan(tls, *(*complex128)(unsafe.Pointer(&v1))) + v1 = [2]float64{ + 0: +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: -Float64FromComplex128(z), + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +func Xcatanhf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float32 + _ = v1 + v1 = [2]float32{ + 0: -+(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: Float32FromComplex64(z), + } + z = Xcatanf(tls, *(*complex64)(unsafe.Pointer(&v1))) + v1 = [2]float32{ + 0: +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: -Float32FromComplex64(z), + } + return *(*complex64)(unsafe.Pointer(&v1)) +} + +func Xcatanhl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcatanh(tls, Complex128FromComplex128(z))) +} + +func Xcatanl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcatan(tls, Complex128FromComplex128(z))) +} + +/* cos(z) = cosh(i z) */ + +func Xccos(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float64 + _ = v1 + v1 = [2]float64{ + 0: -+(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: Float64FromComplex128(z), + } + return Xccosh(tls, *(*complex128)(unsafe.Pointer(&v1))) +} + +func Xccosf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float32 + _ = v1 + v1 = [2]float32{ + 0: -+(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: Float32FromComplex64(z), + } + return Xccoshf(tls, *(*complex64)(unsafe.Pointer(&v1))) +} + +var _huge = float64(8.98846567431158e+307) + +func Xccosh(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __u, __u1 Tuint64_t + var h, x, y float64 + var hx, hy, ix, iy, lx, ly Tint32_t + var v1 [2]float64 + _, _, _, _, _, _, _, _, _, _, _, _ = __u, __u1, h, hx, hy, ix, iy, lx, ly, x, y, v1 + x = Float64FromComplex128(z) + y = +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] + __u = *(*Tuint64_t)(unsafe.Pointer(&x)) + hx = Int32FromUint64(__u >> int32(32)) + lx = Int32FromUint32(uint32(__u)) + __u1 = *(*Tuint64_t)(unsafe.Pointer(&y)) + hy = Int32FromUint64(__u1 >> int32(32)) + ly = Int32FromUint32(uint32(__u1)) + ix = int32(0x7fffffff) & hx + iy = int32(0x7fffffff) & hy + /* Handle the nearly-non-exceptional cases where x and y are finite. */ + if ix < int32(0x7ff00000) && iy < int32(0x7ff00000) { + if iy|ly == 0 { + v1 = [2]float64{ + 0: Xcosh(tls, x), + 1: float64(x * y), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + if ix < int32(0x40360000) { /* small x: normal case */ + v1 = [2]float64{ + 0: float64(Xcosh(tls, x) * Xcos(tls, y)), + 1: float64(Xsinh(tls, x) * Xsin(tls, y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* |x| >= 22, so cosh(x) ~= exp(|x|) */ + if ix < int32(0x40862e42) { + /* x < 710: exp(|x|) won't overflow */ + h = float64(Xexp(tls, Xfabs(tls, x)) * float64(0.5)) + v1 = [2]float64{ + 0: float64(h * Xcos(tls, y)), + 1: float64(Xcopysign(tls, h, x) * Xsin(tls, y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } else { + if ix < int32(0x4096bbaa) { + /* x < 1455: scale to avoid overflow */ + v1 = [2]float64{ + 0: Xfabs(tls, x), + 1: y, + } + z = X__ldexp_cexp(tls, *(*complex128)(unsafe.Pointer(&v1)), -int32(1)) + v1 = [2]float64{ + 0: Float64FromComplex128(z), + 1: float64(+(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] * Xcopysign(tls, Float64FromInt32(1), x)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } else { + /* x >= 1455: the result always overflows */ + h = float64(_huge * x) + v1 = [2]float64{ + 0: float64(float64(h*h) * Xcos(tls, y)), + 1: float64(h * Xsin(tls, y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + } + } + /* + * cosh(+-0 +- I Inf) = dNaN + I sign(d(+-0, dNaN))0. + * The sign of 0 in the result is unspecified. Choice = normally + * the same as dNaN. Raise the invalid floating-point exception. + * + * cosh(+-0 +- I NaN) = d(NaN) + I sign(d(+-0, NaN))0. + * The sign of 0 in the result is unspecified. Choice = normally + * the same as d(NaN). + */ + if ix|lx == 0 && iy >= int32(0x7ff00000) { + v1 = [2]float64{ + 0: y - y, + 1: Xcopysign(tls, Float64FromInt32(0), float64(x*(y-y))), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* + * cosh(+-Inf +- I 0) = +Inf + I (+-)(+-)0. + * + * cosh(NaN +- I 0) = d(NaN) + I sign(d(NaN, +-0))0. + * The sign of 0 in the result is unspecified. + */ + if iy|ly == 0 && ix >= int32(0x7ff00000) { + if hx&int32(0xfffff)|lx == 0 { + v1 = [2]float64{ + 0: float64(x * x), + 1: float64(Xcopysign(tls, Float64FromInt32(0), x) * y), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + v1 = [2]float64{ + 0: float64(x * x), + 1: Xcopysign(tls, Float64FromInt32(0), float64((x+x)*y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* + * cosh(x +- I Inf) = dNaN + I dNaN. + * Raise the invalid floating-point exception for finite nonzero x. + * + * cosh(x + I NaN) = d(NaN) + I d(NaN). + * Optionally raises the invalid floating-point exception for finite + * nonzero x. Choice = don't raise (except for signaling NaNs). + */ + if ix < int32(0x7ff00000) && iy >= int32(0x7ff00000) { + v1 = [2]float64{ + 0: y - y, + 1: float64(x * (y - y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* + * cosh(+-Inf + I NaN) = +Inf + I d(NaN). + * + * cosh(+-Inf +- I Inf) = +Inf + I dNaN. + * The sign of Inf in the result is unspecified. Choice = always +. + * Raise the invalid floating-point exception. + * + * cosh(+-Inf + I y) = +Inf cos(y) +- I Inf sin(y) + */ + if ix >= int32(0x7ff00000) && hx&int32(0xfffff)|lx == 0 { + if iy >= int32(0x7ff00000) { + v1 = [2]float64{ + 0: float64(x * x), + 1: float64(x * (y - y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + v1 = [2]float64{ + 0: float64(float64(x*x) * Xcos(tls, y)), + 1: float64(x * Xsin(tls, y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* + * cosh(NaN + I NaN) = d(NaN) + I d(NaN). + * + * cosh(NaN +- I Inf) = d(NaN) + I d(NaN). + * Optionally raises the invalid floating-point exception. + * Choice = raise. + * + * cosh(NaN + I y) = d(NaN) + I d(NaN). + * Optionally raises the invalid floating-point exception for finite + * nonzero y. Choice = don't raise (except for signaling NaNs). + */ + v1 = [2]float64{ + 0: float64(float64(x*x) * (y - y)), + 1: float64((x + x) * (y - y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +var _huge1 = float32(1.7014118346046923e+38) + +func Xccoshf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var h, x, y float32 + var hx, hy, ix, iy Tint32_t + var v1 [2]float32 + _, _, _, _, _, _, _, _ = h, hx, hy, ix, iy, x, y, v1 + x = Float32FromComplex64(z) + y = +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] + hx = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(&x))) + hy = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(&y))) + ix = int32(0x7fffffff) & hx + iy = int32(0x7fffffff) & hy + if ix < int32(0x7f800000) && iy < int32(0x7f800000) { + if iy == 0 { + v1 = [2]float32{ + 0: Xcoshf(tls, x), + 1: float32(x * y), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + if ix < int32(0x41100000) { /* small x: normal case */ + v1 = [2]float32{ + 0: float32(Xcoshf(tls, x) * Xcosf(tls, y)), + 1: float32(Xsinhf(tls, x) * Xsinf(tls, y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + /* |x| >= 9, so cosh(x) ~= exp(|x|) */ + if ix < int32(0x42b17218) { + /* x < 88.7: expf(|x|) won't overflow */ + h = float32(Xexpf(tls, Xfabsf(tls, x)) * Float32FromFloat32(0.5)) + v1 = [2]float32{ + 0: float32(h * Xcosf(tls, y)), + 1: float32(Xcopysignf(tls, h, x) * Xsinf(tls, y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } else { + if ix < int32(0x4340b1e7) { + /* x < 192.7: scale to avoid overflow */ + v1 = [2]float32{ + 0: Xfabsf(tls, x), + 1: y, + } + z = X__ldexp_cexpf(tls, *(*complex64)(unsafe.Pointer(&v1)), -int32(1)) + v1 = [2]float32{ + 0: Float32FromComplex64(z), + 1: float32(+(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] * Xcopysignf(tls, Float32FromInt32(1), x)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } else { + /* x >= 192.7: the result always overflows */ + h = float32(_huge1 * x) + v1 = [2]float32{ + 0: float32(float32(h*h) * Xcosf(tls, y)), + 1: float32(h * Xsinf(tls, y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + } + } + if ix == 0 && iy >= int32(0x7f800000) { + v1 = [2]float32{ + 0: y - y, + 1: Xcopysignf(tls, Float32FromInt32(0), float32(x*(y-y))), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + if iy == 0 && ix >= int32(0x7f800000) { + if hx&int32(0x7fffff) == 0 { + v1 = [2]float32{ + 0: float32(x * x), + 1: float32(Xcopysignf(tls, Float32FromInt32(0), x) * y), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + v1 = [2]float32{ + 0: float32(x * x), + 1: Xcopysignf(tls, Float32FromInt32(0), float32((x+x)*y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + if ix < int32(0x7f800000) && iy >= int32(0x7f800000) { + v1 = [2]float32{ + 0: y - y, + 1: float32(x * (y - y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + if ix >= int32(0x7f800000) && hx&int32(0x7fffff) == 0 { + if iy >= int32(0x7f800000) { + v1 = [2]float32{ + 0: float32(x * x), + 1: float32(x * (y - y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + v1 = [2]float32{ + 0: float32(float32(x*x) * Xcosf(tls, y)), + 1: float32(x * Xsinf(tls, y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + v1 = [2]float32{ + 0: float32(float32(x*x) * (y - y)), + 1: float32((x + x) * (y - y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) +} + +// C documentation +// +// //FIXME +func Xccoshl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xccosh(tls, Complex128FromComplex128(z))) +} + +func Xccosl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xccos(tls, Complex128FromComplex128(z))) +} + +var _exp_ovfl = uint32(0x40862e42) /* high bits of MAX_EXP * ln2 ~= 710 */ +var _cexp_ovfl = uint32(0x4096b8e4) /* (MAX_EXP - MIN_DENORM_EXP) * ln2 */ + +func Xcexp(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __u, __u1 Tuint64_t + var exp_x, x, y float64 + var hx, hy, lx, ly Tuint32_t + var v1 [2]float64 + _, _, _, _, _, _, _, _, _, _ = __u, __u1, exp_x, hx, hy, lx, ly, x, y, v1 + x = Float64FromComplex128(z) + y = +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] + __u = *(*Tuint64_t)(unsafe.Pointer(&y)) + hy = uint32(__u >> int32(32)) + ly = uint32(__u) + hy = hy & uint32(0x7fffffff) + /* cexp(x + I 0) = exp(x) + I 0 */ + if hy|ly == uint32(0) { + v1 = [2]float64{ + 0: Xexp(tls, x), + 1: y, + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + __u1 = *(*Tuint64_t)(unsafe.Pointer(&x)) + hx = uint32(__u1 >> int32(32)) + lx = uint32(__u1) + /* cexp(0 + I y) = cos(y) + I sin(y) */ + if hx&uint32(0x7fffffff)|lx == uint32(0) { + v1 = [2]float64{ + 0: Xcos(tls, y), + 1: Xsin(tls, y), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + if hy >= uint32(0x7ff00000) { + if lx != uint32(0) || hx&uint32(0x7fffffff) != uint32(0x7ff00000) { + /* cexp(finite|NaN +- I Inf|NaN) = NaN + I NaN */ + v1 = [2]float64{ + 0: y - y, + 1: y - y, + } + return *(*complex128)(unsafe.Pointer(&v1)) + } else { + if hx&uint32(0x80000000) != 0 { + /* cexp(-Inf +- I Inf|NaN) = 0 + I 0 */ + v1 = [2]float64{} + return *(*complex128)(unsafe.Pointer(&v1)) + } else { + /* cexp(+Inf +- I Inf|NaN) = Inf + I NaN */ + v1 = [2]float64{ + 0: x, + 1: y - y, + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + } + } + if hx >= _exp_ovfl && hx <= _cexp_ovfl { + /* + * x is between 709.7 and 1454.3, so we must scale to avoid + * overflow in exp(x). + */ + return X__ldexp_cexp(tls, z, 0) + } else { + /* + * Cases covered here: + * - x < exp_ovfl and exp(x) won't overflow (common case) + * - x > cexp_ovfl, so exp(x) * s overflows for all s > 0 + * - x = +-Inf (generated by exp()) + * - x = NaN (spurious inexact exception from y) + */ + exp_x = Xexp(tls, x) + v1 = [2]float64{ + 0: float64(exp_x * Xcos(tls, y)), + 1: float64(exp_x * Xsin(tls, y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + return r +} + +var _exp_ovfl1 = uint32(0x42b17218) /* MAX_EXP * ln2 ~= 88.722839355 */ +var _cexp_ovfl1 = uint32(0x43400074) /* (MAX_EXP - MIN_DENORM_EXP) * ln2 */ + +func Xcexpf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var exp_x, x, y float32 + var hx, hy Tuint32_t + var v1 [2]float32 + _, _, _, _, _, _ = exp_x, hx, hy, x, y, v1 + x = Float32FromComplex64(z) + y = +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] + hy = *(*Tuint32_t)(unsafe.Pointer(&y)) + hy = hy & uint32(0x7fffffff) + /* cexp(x + I 0) = exp(x) + I 0 */ + if hy == uint32(0) { + v1 = [2]float32{ + 0: Xexpf(tls, x), + 1: y, + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + hx = *(*Tuint32_t)(unsafe.Pointer(&x)) + /* cexp(0 + I y) = cos(y) + I sin(y) */ + if hx&uint32(0x7fffffff) == uint32(0) { + v1 = [2]float32{ + 0: Xcosf(tls, y), + 1: Xsinf(tls, y), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + if hy >= uint32(0x7f800000) { + if hx&uint32(0x7fffffff) != uint32(0x7f800000) { + /* cexp(finite|NaN +- I Inf|NaN) = NaN + I NaN */ + v1 = [2]float32{ + 0: y - y, + 1: y - y, + } + return *(*complex64)(unsafe.Pointer(&v1)) + } else { + if hx&uint32(0x80000000) != 0 { + /* cexp(-Inf +- I Inf|NaN) = 0 + I 0 */ + v1 = [2]float32{} + return *(*complex64)(unsafe.Pointer(&v1)) + } else { + /* cexp(+Inf +- I Inf|NaN) = Inf + I NaN */ + v1 = [2]float32{ + 0: x, + 1: y - y, + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + } + } + if hx >= _exp_ovfl1 && hx <= _cexp_ovfl1 { + /* + * x is between 88.7 and 192, so we must scale to avoid + * overflow in expf(x). + */ + return X__ldexp_cexpf(tls, z, 0) + } else { + /* + * Cases covered here: + * - x < exp_ovfl and exp(x) won't overflow (common case) + * - x > cexp_ovfl, so exp(x) * s overflows for all s > 0 + * - x = +-Inf (generated by exp()) + * - x = NaN (spurious inexact exception from y) + */ + exp_x = Xexpf(tls, x) + v1 = [2]float32{ + 0: float32(exp_x * Xcosf(tls, y)), + 1: float32(exp_x * Xsinf(tls, y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + return r +} + +// C documentation +// +// //FIXME +func Xcexpl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcexp(tls, Complex128FromComplex128(z))) +} + +func Xcimag(tls *TLS, z complex128) (r float64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] +} + +func Xcimagf(tls *TLS, z complex64) (r float32) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] +} + +func Xcimagl(tls *TLS, z complex128) (r float64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] +} + +// FIXME + +/* log(z) = log(|z|) + i arg(z) */ + +func Xclog(tls *TLS, z complex128) (r1 complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var phi, r float64 + var v1 [2]float64 + _, _, _ = phi, r, v1 + r = Xcabs(tls, z) + phi = Xcarg(tls, z) + v1 = [2]float64{ + 0: Xlog(tls, r), + 1: phi, + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +// FIXME + +func Xclogf(tls *TLS, z complex64) (r1 complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var phi, r float32 + var v1 [2]float32 + _, _, _ = phi, r, v1 + r = Xcabsf(tls, z) + phi = Xcargf(tls, z) + v1 = [2]float32{ + 0: Xlogf(tls, r), + 1: phi, + } + return *(*complex64)(unsafe.Pointer(&v1)) +} + +func Xclogl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xclog(tls, Complex128FromComplex128(z))) +} + +func Xconj(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float64 + _ = v1 + v1 = [2]float64{ + 0: Float64FromComplex128(z), + 1: -+(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +func Xconjf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float32 + _ = v1 + v1 = [2]float32{ + 0: Float32FromComplex64(z), + 1: -+(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + } + return *(*complex64)(unsafe.Pointer(&v1)) +} + +func Xconjl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float64 + _ = v1 + v1 = [2]float64{ + 0: Float64FromComplex128(z), + 1: -+(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +/* pow(z, c) = exp(c log(z)), See C99 G.6.4.1 */ + +func Xcpow(tls *TLS, z complex128, c complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v c=%v, (%v:)", tls, z, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xcexp(tls, c*Xclog(tls, z)) +} + +func Xcpowf(tls *TLS, z complex64, c complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v c=%v, (%v:)", tls, z, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xcexpf(tls, c*Xclogf(tls, z)) +} + +func Xcpowl(tls *TLS, z complex128, c complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v c=%v, (%v:)", tls, z, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcpow(tls, Complex128FromComplex128(z), Complex128FromComplex128(c))) +} + +func Xcproj(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1, v3 uint64 + var v5 bool + var v6 [2]float64 + var _ /* __u at bp+0 */ struct { + F__ccgo_align [0]uint32 + F__i [0]uint64 + F__f float64 + } + _, _, _, _ = v1, v3, v5, v6 + *(*float64)(unsafe.Pointer(bp)) = Float64FromComplex128(z) + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + ; + if v5 = BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) == Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) == Uint64FromUint64(0x7ff)< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1, v3 uint32 + var v5 bool + var v6 [2]float32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _, _, _, _ = v1, v3, v5, v6 + *(*float32)(unsafe.Pointer(bp)) = Float32FromComplex64(z) + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + ; + if v5 = BoolInt32(v1&uint32(0x7fffffff) == uint32(0x7f800000)) != 0; !v5 { + *(*float32)(unsafe.Pointer(bp)) = +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] + v3 = *(*uint32)(unsafe.Pointer(bp)) + goto _4 + _4: + } + if v5 || BoolInt32(v3&uint32(0x7fffffff) == uint32(0x7f800000)) != 0 { + v6 = [2]float32{ + 0: X__builtin_inff(tls), + 1: Xcopysignf(tls, float32(0), +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)]), + } + return *(*complex64)(unsafe.Pointer(&v6)) + } + return z +} + +func Xcprojl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcproj(tls, Complex128FromComplex128(z))) +} + +func Xcreal(tls *TLS, z complex128) (r float64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Float64FromComplex128(z) +} + +func Xcrealf(tls *TLS, z complex64) (r float32) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Float32FromComplex64(z) +} + +func Xcreall(tls *TLS, z complex128) (r float64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Float64FromComplex128(z) +} + +/* sin(z) = -i sinh(i z) */ + +func Xcsin(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float64 + _ = v1 + v1 = [2]float64{ + 0: -+(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: Float64FromComplex128(z), + } + z = Xcsinh(tls, *(*complex128)(unsafe.Pointer(&v1))) + v1 = [2]float64{ + 0: +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: -Float64FromComplex128(z), + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +func Xcsinf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float32 + _ = v1 + v1 = [2]float32{ + 0: -+(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: Float32FromComplex64(z), + } + z = Xcsinhf(tls, *(*complex64)(unsafe.Pointer(&v1))) + v1 = [2]float32{ + 0: +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: -Float32FromComplex64(z), + } + return *(*complex64)(unsafe.Pointer(&v1)) +} + +var _huge2 = float64(8.98846567431158e+307) + +func Xcsinh(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __u, __u1 Tuint64_t + var h, x, y float64 + var hx, hy, ix, iy, lx, ly Tint32_t + var v1 [2]float64 + _, _, _, _, _, _, _, _, _, _, _, _ = __u, __u1, h, hx, hy, ix, iy, lx, ly, x, y, v1 + x = Float64FromComplex128(z) + y = +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] + __u = *(*Tuint64_t)(unsafe.Pointer(&x)) + hx = Int32FromUint64(__u >> int32(32)) + lx = Int32FromUint32(uint32(__u)) + __u1 = *(*Tuint64_t)(unsafe.Pointer(&y)) + hy = Int32FromUint64(__u1 >> int32(32)) + ly = Int32FromUint32(uint32(__u1)) + ix = int32(0x7fffffff) & hx + iy = int32(0x7fffffff) & hy + /* Handle the nearly-non-exceptional cases where x and y are finite. */ + if ix < int32(0x7ff00000) && iy < int32(0x7ff00000) { + if iy|ly == 0 { + v1 = [2]float64{ + 0: Xsinh(tls, x), + 1: y, + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + if ix < int32(0x40360000) { /* small x: normal case */ + v1 = [2]float64{ + 0: float64(Xsinh(tls, x) * Xcos(tls, y)), + 1: float64(Xcosh(tls, x) * Xsin(tls, y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* |x| >= 22, so cosh(x) ~= exp(|x|) */ + if ix < int32(0x40862e42) { + /* x < 710: exp(|x|) won't overflow */ + h = float64(Xexp(tls, Xfabs(tls, x)) * float64(0.5)) + v1 = [2]float64{ + 0: float64(Xcopysign(tls, h, x) * Xcos(tls, y)), + 1: float64(h * Xsin(tls, y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } else { + if ix < int32(0x4096bbaa) { + /* x < 1455: scale to avoid overflow */ + v1 = [2]float64{ + 0: Xfabs(tls, x), + 1: y, + } + z = X__ldexp_cexp(tls, *(*complex128)(unsafe.Pointer(&v1)), -int32(1)) + v1 = [2]float64{ + 0: float64(Float64FromComplex128(z) * Xcopysign(tls, Float64FromInt32(1), x)), + 1: +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + } + return *(*complex128)(unsafe.Pointer(&v1)) + } else { + /* x >= 1455: the result always overflows */ + h = float64(_huge2 * x) + v1 = [2]float64{ + 0: float64(h * Xcos(tls, y)), + 1: float64(float64(h*h) * Xsin(tls, y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + } + } + /* + * sinh(+-0 +- I Inf) = sign(d(+-0, dNaN))0 + I dNaN. + * The sign of 0 in the result is unspecified. Choice = normally + * the same as dNaN. Raise the invalid floating-point exception. + * + * sinh(+-0 +- I NaN) = sign(d(+-0, NaN))0 + I d(NaN). + * The sign of 0 in the result is unspecified. Choice = normally + * the same as d(NaN). + */ + if ix|lx == 0 && iy >= int32(0x7ff00000) { + v1 = [2]float64{ + 0: Xcopysign(tls, Float64FromInt32(0), float64(x*(y-y))), + 1: y - y, + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* + * sinh(+-Inf +- I 0) = +-Inf + I +-0. + * + * sinh(NaN +- I 0) = d(NaN) + I +-0. + */ + if iy|ly == 0 && ix >= int32(0x7ff00000) { + if hx&int32(0xfffff)|lx == 0 { + v1 = [2]float64{ + 0: x, + 1: y, + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + v1 = [2]float64{ + 0: x, + 1: Xcopysign(tls, Float64FromInt32(0), y), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* + * sinh(x +- I Inf) = dNaN + I dNaN. + * Raise the invalid floating-point exception for finite nonzero x. + * + * sinh(x + I NaN) = d(NaN) + I d(NaN). + * Optionally raises the invalid floating-point exception for finite + * nonzero x. Choice = don't raise (except for signaling NaNs). + */ + if ix < int32(0x7ff00000) && iy >= int32(0x7ff00000) { + v1 = [2]float64{ + 0: y - y, + 1: float64(x * (y - y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* + * sinh(+-Inf + I NaN) = +-Inf + I d(NaN). + * The sign of Inf in the result is unspecified. Choice = normally + * the same as d(NaN). + * + * sinh(+-Inf +- I Inf) = +Inf + I dNaN. + * The sign of Inf in the result is unspecified. Choice = always +. + * Raise the invalid floating-point exception. + * + * sinh(+-Inf + I y) = +-Inf cos(y) + I Inf sin(y) + */ + if ix >= int32(0x7ff00000) && hx&int32(0xfffff)|lx == 0 { + if iy >= int32(0x7ff00000) { + v1 = [2]float64{ + 0: float64(x * x), + 1: float64(x * (y - y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + v1 = [2]float64{ + 0: float64(x * Xcos(tls, y)), + 1: float64(float64(X__builtin_inff(tls)) * Xsin(tls, y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* + * sinh(NaN + I NaN) = d(NaN) + I d(NaN). + * + * sinh(NaN +- I Inf) = d(NaN) + I d(NaN). + * Optionally raises the invalid floating-point exception. + * Choice = raise. + * + * sinh(NaN + I y) = d(NaN) + I d(NaN). + * Optionally raises the invalid floating-point exception for finite + * nonzero y. Choice = don't raise (except for signaling NaNs). + */ + v1 = [2]float64{ + 0: float64(float64(x*x) * (y - y)), + 1: float64((x + x) * (y - y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +var _huge3 = float32(1.7014118346046923e+38) + +func Xcsinhf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var h, x, y float32 + var hx, hy, ix, iy Tint32_t + var v1 [2]float32 + _, _, _, _, _, _, _, _ = h, hx, hy, ix, iy, x, y, v1 + x = Float32FromComplex64(z) + y = +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] + hx = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(&x))) + hy = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(&y))) + ix = int32(0x7fffffff) & hx + iy = int32(0x7fffffff) & hy + if ix < int32(0x7f800000) && iy < int32(0x7f800000) { + if iy == 0 { + v1 = [2]float32{ + 0: Xsinhf(tls, x), + 1: y, + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + if ix < int32(0x41100000) { /* small x: normal case */ + v1 = [2]float32{ + 0: float32(Xsinhf(tls, x) * Xcosf(tls, y)), + 1: float32(Xcoshf(tls, x) * Xsinf(tls, y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + /* |x| >= 9, so cosh(x) ~= exp(|x|) */ + if ix < int32(0x42b17218) { + /* x < 88.7: expf(|x|) won't overflow */ + h = float32(Xexpf(tls, Xfabsf(tls, x)) * Float32FromFloat32(0.5)) + v1 = [2]float32{ + 0: float32(Xcopysignf(tls, h, x) * Xcosf(tls, y)), + 1: float32(h * Xsinf(tls, y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } else { + if ix < int32(0x4340b1e7) { + /* x < 192.7: scale to avoid overflow */ + v1 = [2]float32{ + 0: Xfabsf(tls, x), + 1: y, + } + z = X__ldexp_cexpf(tls, *(*complex64)(unsafe.Pointer(&v1)), -int32(1)) + v1 = [2]float32{ + 0: float32(Float32FromComplex64(z) * Xcopysignf(tls, Float32FromInt32(1), x)), + 1: +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + } + return *(*complex64)(unsafe.Pointer(&v1)) + } else { + /* x >= 192.7: the result always overflows */ + h = float32(_huge3 * x) + v1 = [2]float32{ + 0: float32(h * Xcosf(tls, y)), + 1: float32(float32(h*h) * Xsinf(tls, y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + } + } + if ix == 0 && iy >= int32(0x7f800000) { + v1 = [2]float32{ + 0: Xcopysignf(tls, Float32FromInt32(0), float32(x*(y-y))), + 1: y - y, + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + if iy == 0 && ix >= int32(0x7f800000) { + if hx&int32(0x7fffff) == 0 { + v1 = [2]float32{ + 0: x, + 1: y, + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + v1 = [2]float32{ + 0: x, + 1: Xcopysignf(tls, Float32FromInt32(0), y), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + if ix < int32(0x7f800000) && iy >= int32(0x7f800000) { + v1 = [2]float32{ + 0: y - y, + 1: float32(x * (y - y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + if ix >= int32(0x7f800000) && hx&int32(0x7fffff) == 0 { + if iy >= int32(0x7f800000) { + v1 = [2]float32{ + 0: float32(x * x), + 1: float32(x * (y - y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + v1 = [2]float32{ + 0: float32(x * Xcosf(tls, y)), + 1: float32(X__builtin_inff(tls) * Xsinf(tls, y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + v1 = [2]float32{ + 0: float32(float32(x*x) * (y - y)), + 1: float32((x + x) * (y - y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) +} + +// C documentation +// +// //FIXME +func Xcsinhl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcsinh(tls, Complex128FromComplex128(z))) +} + +func Xcsinl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcsin(tls, Complex128FromComplex128(z))) +} + +const THRESH = 7.446288774449766e+307 + +/* + * gcc doesn't implement complex multiplication or division correctly, + * so we need to handle infinities specially. We turn on this pragma to + * notify conforming c99 compilers that the fast-but-incorrect code that + * gcc generates is acceptable, since the special cases have already been + * handled. + */ + +/* We risk spurious overflow for components >= DBL_MAX / (1 + sqrt(2)). */ + +func Xcsqrt(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var a, b, t float64 + var result complex128 + var scale int32 + var v1 [2]float64 + var v2, v5 uint64 + var _ /* __u at bp+0 */ struct { + F__ccgo_align [0]uint32 + F__i [0]uint64 + F__f float64 + } + _, _, _, _, _, _, _, _ = a, b, result, scale, t, v1, v2, v5 + a = Float64FromComplex128(z) + b = +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] + /* Handle special cases. */ + if z == Complex128FromInt32(0) { + v1 = [2]float64{ + 1: b, + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + *(*float64)(unsafe.Pointer(bp)) = b + v2 = *(*uint64)(unsafe.Pointer(bp)) + goto _3 +_3: + if BoolInt32(v2&(-Uint64FromUint64(1)>>Int32FromInt32(1)) == Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) == Uint64FromUint64(0x7ff)<>Int32FromInt32(63)) != 0 { + v1 = [2]float64{ + 0: Xfabs(tls, b-b), + 1: Xcopysign(tls, a, b), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } else { + v1 = [2]float64{ + 0: a, + 1: Xcopysign(tls, b-b, b), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + } + /* + * The remaining special case (b is NaN) is handled just fine by + * the normal code path below. + */ + /* Scale to avoid overflow. */ + if Xfabs(tls, a) >= float64(7.446288774449766e+307) || Xfabs(tls, b) >= float64(7.446288774449766e+307) { + a = a * float64(0.25) + b = b * float64(0.25) + scale = int32(1) + } else { + scale = 0 + } + /* Algorithm 312, CACM vol 10, Oct 1967. */ + if a >= Float64FromInt32(0) { + t = Xsqrt(tls, float64((a+Xhypot(tls, a, b))*float64(0.5))) + v1 = [2]float64{ + 0: t, + 1: b / float64(Float64FromInt32(2)*t), + } + result = *(*complex128)(unsafe.Pointer(&v1)) + } else { + t = Xsqrt(tls, float64((-a+Xhypot(tls, a, b))*float64(0.5))) + v1 = [2]float64{ + 0: Xfabs(tls, b) / float64(Float64FromInt32(2)*t), + 1: Xcopysign(tls, t, b), + } + result = *(*complex128)(unsafe.Pointer(&v1)) + } + /* Rescale. */ + if scale != 0 { + result = result * Complex128FromInt32(2) + } + return result +} + +/* + * gcc doesn't implement complex multiplication or division correctly, + * so we need to handle infinities specially. We turn on this pragma to + * notify conforming c99 compilers that the fast-but-incorrect code that + * gcc generates is acceptable, since the special cases have already been + * handled. + */ + +func Xcsqrtf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var a, b float32 + var t float64 + var v1 [2]float32 + var v2, v5 uint32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _, _, _, _, _, _ = a, b, t, v1, v2, v5 + a = Float32FromComplex64(z) + b = +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] + /* Handle special cases. */ + if z == Complex64FromInt32(0) { + v1 = [2]float32{ + 1: b, + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + *(*float32)(unsafe.Pointer(bp)) = b + v2 = *(*uint32)(unsafe.Pointer(bp)) + goto _3 +_3: + if BoolInt32(v2&uint32(0x7fffffff) == uint32(0x7f800000)) != 0 { + v1 = [2]float32{ + 0: X__builtin_inff(tls), + 1: b, + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + *(*float32)(unsafe.Pointer(bp)) = a + v2 = *(*uint32)(unsafe.Pointer(bp)) + goto _6 +_6: + if BoolInt32(v2&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + t = float64((b - b) / (b - b)) /* raise invalid if b is not a NaN */ + v1 = [2]float32{ + 0: a, + 1: float32(t), + } + return *(*complex64)(unsafe.Pointer(&v1)) /* return NaN + NaN i */ + } + *(*float32)(unsafe.Pointer(bp)) = a + v2 = *(*uint32)(unsafe.Pointer(bp)) + goto _9 +_9: + if BoolInt32(v2&uint32(0x7fffffff) == uint32(0x7f800000)) != 0 { + /* + * csqrtf(inf + NaN i) = inf + NaN i + * csqrtf(inf + y i) = inf + 0 i + * csqrtf(-inf + NaN i) = NaN +- inf i + * csqrtf(-inf + y i) = 0 + inf i + */ + *(*float32)(unsafe.Pointer(bp)) = a + v5 = *(*uint32)(unsafe.Pointer(bp)) + goto _11 + _11: + if Int32FromUint32(v5>>Int32FromInt32(31)) != 0 { + v1 = [2]float32{ + 0: Xfabsf(tls, b-b), + 1: Xcopysignf(tls, a, b), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } else { + v1 = [2]float32{ + 0: a, + 1: Xcopysignf(tls, b-b, b), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + } + /* + * The remaining special case (b is NaN) is handled just fine by + * the normal code path below. + */ + /* + * We compute t in double precision to avoid overflow and to + * provide correct rounding in nearly all cases. + * This is Algorithm 312, CACM vol 10, Oct 1967. + */ + if a >= Float32FromInt32(0) { + t = Xsqrt(tls, float64((float64(a)+Xhypot(tls, float64(a), float64(b)))*float64(0.5))) + v1 = [2]float32{ + 0: float32(t), + 1: float32(float64(b) / float64(Float64FromFloat64(2)*t)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } else { + t = Xsqrt(tls, float64((float64(-a)+Xhypot(tls, float64(a), float64(b)))*float64(0.5))) + v1 = [2]float32{ + 0: float32(float64(Xfabsf(tls, b)) / float64(Float64FromFloat64(2)*t)), + 1: Xcopysignf(tls, float32(t), b), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + return r +} + +// C documentation +// +// //FIXME +func Xcsqrtl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcsqrt(tls, Complex128FromComplex128(z))) +} + +/* tan(z) = -i tanh(i z) */ + +func Xctan(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float64 + _ = v1 + v1 = [2]float64{ + 0: -+(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: Float64FromComplex128(z), + } + z = Xctanh(tls, *(*complex128)(unsafe.Pointer(&v1))) + v1 = [2]float64{ + 0: +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: -Float64FromComplex128(z), + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +func Xctanf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float32 + _ = v1 + v1 = [2]float32{ + 0: -+(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: Float32FromComplex64(z), + } + z = Xctanhf(tls, *(*complex64)(unsafe.Pointer(&v1))) + v1 = [2]float32{ + 0: +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: -Float32FromComplex64(z), + } + return *(*complex64)(unsafe.Pointer(&v1)) +} + +func Xctanh(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var __u1, v3 Tuint64_t + var beta, denom, exp_mx, rho, s, t, x, y, v2 float64 + var hx, ix, lx Tuint32_t + var v1 [2]float64 + var v6 uint64 + var _ /* __u at bp+0 */ struct { + F__ccgo_align [0]uint32 + F__i [0]uint64 + F__f float64 + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = __u1, beta, denom, exp_mx, hx, ix, lx, rho, s, t, x, y, v1, v2, v3, v6 + x = Float64FromComplex128(z) + y = +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] + __u1 = *(*Tuint64_t)(unsafe.Pointer(&x)) + hx = uint32(__u1 >> int32(32)) + lx = uint32(__u1) + ix = hx & uint32(0x7fffffff) + /* + * ctanh(NaN + i 0) = NaN + i 0 + * + * ctanh(NaN + i y) = NaN + i NaN for y != 0 + * + * The imaginary part has the sign of x*sin(2*y), but there's no + * special effort to get this right. + * + * ctanh(+-Inf +- i Inf) = +-1 +- 0 + * + * ctanh(+-Inf + i y) = +-1 + 0 sin(2y) for y finite + * + * The imaginary part of the sign is unspecified. This special + * case is only needed to avoid a spurious invalid exception when + * y is infinite. + */ + if ix >= uint32(0x7ff00000) { + if ix&uint32(0xfffff)|lx != 0 { /* x is NaN */ + if y == Float64FromInt32(0) { + v2 = y + } else { + v2 = float64(x * y) + } + v1 = [2]float64{ + 0: x, + 1: v2, + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + v3 = uint64(hx-Uint32FromInt32(0x40000000))<>Int32FromInt32(1)) == Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) < Uint64FromUint64(0x7ff)<= uint32(0x40360000) { /* x >= 22 */ + exp_mx = Xexp(tls, -Xfabs(tls, x)) + v1 = [2]float64{ + 0: Xcopysign(tls, Float64FromInt32(1), x), + 1: float64(float64(float64(float64(Float64FromInt32(4)*Xsin(tls, y))*Xcos(tls, y))*exp_mx) * exp_mx), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* Kahan's algorithm */ + t = Xtan(tls, y) + beta = float64(1) + float64(t*t) /* = 1 / cos^2(y) */ + s = Xsinh(tls, x) + rho = Xsqrt(tls, Float64FromInt32(1)+float64(s*s)) /* = cosh(x) */ + denom = Float64FromInt32(1) + float64(float64(beta*s)*s) + v1 = [2]float64{ + 0: float64(float64(beta*rho)*s) / denom, + 1: t / denom, + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +func Xctanhf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var beta, denom, exp_mx, rho, s, t, x, y, v2 float32 + var hx, ix, v3 Tuint32_t + var v1 [2]float32 + var v6 uint32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = beta, denom, exp_mx, hx, ix, rho, s, t, x, y, v1, v2, v3, v6 + x = Float32FromComplex64(z) + y = +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] + hx = *(*Tuint32_t)(unsafe.Pointer(&x)) + ix = hx & uint32(0x7fffffff) + if ix >= uint32(0x7f800000) { + if ix&uint32(0x7fffff) != 0 { + if y == Float32FromInt32(0) { + v2 = y + } else { + v2 = float32(x * y) + } + v1 = [2]float32{ + 0: x, + 1: v2, + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + v3 = hx - uint32(0x40000000) + x = *(*float32)(unsafe.Pointer(&v3)) + *(*float32)(unsafe.Pointer(bp)) = y + v6 = *(*uint32)(unsafe.Pointer(bp)) + goto _7 + _7: + if BoolInt32(v6&uint32(0x7fffffff) == uint32(0x7f800000)) != 0 { + v2 = y + } else { + v2 = float32(Xsinf(tls, y) * Xcosf(tls, y)) + } + v1 = [2]float32{ + 0: x, + 1: Xcopysignf(tls, Float32FromInt32(0), v2), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + *(*float32)(unsafe.Pointer(bp)) = y + v6 = *(*uint32)(unsafe.Pointer(bp)) + goto _9 +_9: + if !(BoolInt32(v6&Uint32FromInt32(0x7fffffff) < Uint32FromInt32(0x7f800000)) != 0) { + if ix != 0 { + v2 = y - y + } else { + v2 = x + } + v1 = [2]float32{ + 0: v2, + 1: y - y, + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + if ix >= uint32(0x41300000) { /* x >= 11 */ + exp_mx = Xexpf(tls, -Xfabsf(tls, x)) + v1 = [2]float32{ + 0: Xcopysignf(tls, Float32FromInt32(1), x), + 1: float32(float32(float32(float32(Float32FromInt32(4)*Xsinf(tls, y))*Xcosf(tls, y))*exp_mx) * exp_mx), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + t = Xtanf(tls, y) + beta = float32(float64(1) + float64(t*t)) + s = Xsinhf(tls, x) + rho = Xsqrtf(tls, Float32FromInt32(1)+float32(s*s)) + denom = Float32FromInt32(1) + float32(float32(beta*s)*s) + v1 = [2]float32{ + 0: float32(float32(beta*rho)*s) / denom, + 1: t / denom, + } + return *(*complex64)(unsafe.Pointer(&v1)) +} + +// C documentation +// +// //FIXME +func Xctanhl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xctanh(tls, Complex128FromComplex128(z))) +} + +func Xctanl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xctan(tls, Complex128FromComplex128(z))) +} + +const BUFSIZ = 1024 +const E2BIG = 7 +const EACCES = 13 +const EADDRINUSE = 98 +const EADDRNOTAVAIL = 99 +const EADV = 68 +const EAFNOSUPPORT = 97 +const EAGAIN = 11 +const EALREADY = 114 +const EBADE = 52 +const EBADF = 9 +const EBADFD = 77 +const EBADMSG = 74 +const EBADR = 53 +const EBADRQC = 56 +const EBADSLT = 57 +const EBFONT = 59 +const EBUSY = 16 +const ECANCELED = 125 +const ECHILD = 10 +const ECHRNG = 44 +const ECOMM = 70 +const ECONNABORTED = 103 +const ECONNREFUSED = 111 +const ECONNRESET = 104 +const EDEADLK = 35 +const EDEADLOCK = 35 +const EDESTADDRREQ = 89 +const EDOM = 33 +const EDOTDOT = 73 +const EDQUOT = 122 +const EEXIST = 17 +const EFAULT = 14 +const EFBIG = 27 +const EHOSTDOWN = 112 +const EHOSTUNREACH = 113 +const EHWPOISON = 133 +const EIDRM = 43 +const EILSEQ = 84 +const EINPROGRESS = 115 +const EINTR = 4 +const EINVAL = 22 +const EIO = 5 +const EISCONN = 106 +const EISDIR = 21 +const EISNAM = 120 +const EKEYEXPIRED = 127 +const EKEYREJECTED = 129 +const EKEYREVOKED = 128 +const EL2HLT = 51 +const EL2NSYNC = 45 +const EL3HLT = 46 +const EL3RST = 47 +const ELIBACC = 79 +const ELIBBAD = 80 +const ELIBEXEC = 83 +const ELIBMAX = 82 +const ELIBSCN = 81 +const ELNRNG = 48 +const ELOOP = 40 +const EMEDIUMTYPE = 124 +const EMFILE = 24 +const EMLINK = 31 +const EMSGSIZE = 90 +const EMULTIHOP = 72 +const ENAMETOOLONG = 36 +const ENAVAIL = 119 +const ENETDOWN = 100 +const ENETRESET = 102 +const ENETUNREACH = 101 +const ENFILE = 23 +const ENOANO = 55 +const ENOBUFS = 105 +const ENOCSI = 50 +const ENODATA = 61 +const ENODEV = 19 +const ENOENT = 2 +const ENOEXEC = 8 +const ENOKEY = 126 +const ENOLCK = 37 +const ENOLINK = 67 +const ENOMEDIUM = 123 +const ENOMEM = 12 +const ENOMSG = 42 +const ENONET = 64 +const ENOPKG = 65 +const ENOPROTOOPT = 92 +const ENOSPC = 28 +const ENOSR = 63 +const ENOSTR = 60 +const ENOSYS = 38 +const ENOTBLK = 15 +const ENOTCONN = 107 +const ENOTDIR = 20 +const ENOTEMPTY = 39 +const ENOTNAM = 118 +const ENOTRECOVERABLE = 131 +const ENOTSOCK = 88 +const ENOTSUP = 95 +const ENOTTY = 25 +const ENOTUNIQ = 76 +const ENXIO = 6 +const EOPNOTSUPP = 95 +const EOVERFLOW = 75 +const EOWNERDEAD = 130 +const EPERM = 1 +const EPFNOSUPPORT = 96 +const EPIPE = 32 +const EPROTO = 71 +const EPROTONOSUPPORT = 93 +const EPROTOTYPE = 91 +const ERANGE = 34 +const EREMCHG = 78 +const EREMOTE = 66 +const EREMOTEIO = 121 +const ERESTART = 85 +const ERFKILL = 132 +const EROFS = 30 +const ESHUTDOWN = 108 +const ESOCKTNOSUPPORT = 94 +const ESPIPE = 29 +const ESRCH = 3 +const ESRMNT = 69 +const ESTALE = 116 +const ESTRPIPE = 86 +const ETIME = 62 +const ETIMEDOUT = 110 +const ETOOMANYREFS = 109 +const ETXTBSY = 26 +const EUCLEAN = 117 +const EUNATCH = 49 +const EUSERS = 87 +const EWOULDBLOCK = 11 +const EXDEV = 18 +const EXFULL = 54 +const FILENAME_MAX = 4096 +const FOPEN_MAX = 1000 +const F_LOCK = 1 +const F_OK = 0 +const F_TEST = 3 +const F_TLOCK = 2 +const F_ULOCK = 0 +const L_ctermid = 20 +const L_tmpnam = 20 +const POSIX_CLOSE_RESTART = 0 +const P_tmpdir = "/tmp" +const R_OK = 4 +const SEEK_DATA = 3 +const SEEK_HOLE = 4 +const STDERR_FILENO = 2 +const STDIN_FILENO = 0 +const STDOUT_FILENO = 1 +const TMP_MAX = 10000 +const W_OK = 2 +const X_OK = 1 +const _CS_GNU_LIBC_VERSION = 2 +const _CS_GNU_LIBPTHREAD_VERSION = 3 +const _CS_PATH = 0 +const _CS_POSIX_V5_WIDTH_RESTRICTED_ENVS = 4 +const _CS_POSIX_V6_ILP32_OFF32_CFLAGS = 1116 +const _CS_POSIX_V6_ILP32_OFF32_LDFLAGS = 1117 +const _CS_POSIX_V6_ILP32_OFF32_LIBS = 1118 +const _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS = 1119 +const _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS = 1120 +const _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS = 1121 +const _CS_POSIX_V6_ILP32_OFFBIG_LIBS = 1122 +const _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS = 1123 +const _CS_POSIX_V6_LP64_OFF64_CFLAGS = 1124 +const _CS_POSIX_V6_LP64_OFF64_LDFLAGS = 1125 +const _CS_POSIX_V6_LP64_OFF64_LIBS = 1126 +const _CS_POSIX_V6_LP64_OFF64_LINTFLAGS = 1127 +const _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS = 1128 +const _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS = 1129 +const _CS_POSIX_V6_LPBIG_OFFBIG_LIBS = 1130 +const _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS = 1131 +const _CS_POSIX_V6_WIDTH_RESTRICTED_ENVS = 1 +const _CS_POSIX_V7_ILP32_OFF32_CFLAGS = 1132 +const _CS_POSIX_V7_ILP32_OFF32_LDFLAGS = 1133 +const _CS_POSIX_V7_ILP32_OFF32_LIBS = 1134 +const _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS = 1135 +const _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS = 1136 +const _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS = 1137 +const _CS_POSIX_V7_ILP32_OFFBIG_LIBS = 1138 +const _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS = 1139 +const _CS_POSIX_V7_LP64_OFF64_CFLAGS = 1140 +const _CS_POSIX_V7_LP64_OFF64_LDFLAGS = 1141 +const _CS_POSIX_V7_LP64_OFF64_LIBS = 1142 +const _CS_POSIX_V7_LP64_OFF64_LINTFLAGS = 1143 +const _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS = 1144 +const _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS = 1145 +const _CS_POSIX_V7_LPBIG_OFFBIG_LIBS = 1146 +const _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS = 1147 +const _CS_POSIX_V7_THREADS_CFLAGS = 1150 +const _CS_POSIX_V7_THREADS_LDFLAGS = 1151 +const _CS_POSIX_V7_WIDTH_RESTRICTED_ENVS = 5 +const _CS_V6_ENV = 1148 +const _CS_V7_ENV = 1149 +const _IOFBF = 0 +const _IOLBF = 1 +const _IONBF = 2 +const _PC_2_SYMLINKS = 20 +const _PC_ALLOC_SIZE_MIN = 18 +const _PC_ASYNC_IO = 10 +const _PC_CHOWN_RESTRICTED = 6 +const _PC_FILESIZEBITS = 13 +const _PC_LINK_MAX = 0 +const _PC_MAX_CANON = 1 +const _PC_MAX_INPUT = 2 +const _PC_NAME_MAX = 3 +const _PC_NO_TRUNC = 7 +const _PC_PATH_MAX = 4 +const _PC_PIPE_BUF = 5 +const _PC_PRIO_IO = 11 +const _PC_REC_INCR_XFER_SIZE = 14 +const _PC_REC_MAX_XFER_SIZE = 15 +const _PC_REC_MIN_XFER_SIZE = 16 +const _PC_REC_XFER_ALIGN = 17 +const _PC_SOCK_MAXBUF = 12 +const _PC_SYMLINK_MAX = 19 +const _PC_SYNC_IO = 9 +const _PC_VDISABLE = 8 +const _POSIX2_C_BIND = 200809 +const _POSIX2_VERSION = 200809 +const _POSIX_ADVISORY_INFO = 200809 +const _POSIX_ASYNCHRONOUS_IO = 200809 +const _POSIX_BARRIERS = 200809 +const _POSIX_CHOWN_RESTRICTED = 1 +const _POSIX_CLOCK_SELECTION = 200809 +const _POSIX_CPUTIME = 200809 +const _POSIX_FSYNC = 200809 +const _POSIX_IPV6 = 200809 +const _POSIX_JOB_CONTROL = 1 +const _POSIX_MAPPED_FILES = 200809 +const _POSIX_MEMLOCK = 200809 +const _POSIX_MEMLOCK_RANGE = 200809 +const _POSIX_MEMORY_PROTECTION = 200809 +const _POSIX_MESSAGE_PASSING = 200809 +const _POSIX_MONOTONIC_CLOCK = 200809 +const _POSIX_NO_TRUNC = 1 +const _POSIX_RAW_SOCKETS = 200809 +const _POSIX_READER_WRITER_LOCKS = 200809 +const _POSIX_REALTIME_SIGNALS = 200809 +const _POSIX_REGEXP = 1 +const _POSIX_SAVED_IDS = 1 +const _POSIX_SEMAPHORES = 200809 +const _POSIX_SHARED_MEMORY_OBJECTS = 200809 +const _POSIX_SHELL = 1 +const _POSIX_SPAWN = 200809 +const _POSIX_SPIN_LOCKS = 200809 +const _POSIX_THREADS = 200809 +const _POSIX_THREAD_ATTR_STACKADDR = 200809 +const _POSIX_THREAD_ATTR_STACKSIZE = 200809 +const _POSIX_THREAD_CPUTIME = 200809 +const _POSIX_THREAD_PRIORITY_SCHEDULING = 200809 +const _POSIX_THREAD_PROCESS_SHARED = 200809 +const _POSIX_THREAD_SAFE_FUNCTIONS = 200809 +const _POSIX_TIMEOUTS = 200809 +const _POSIX_TIMERS = 200809 +const _POSIX_V6_ILP32_OFFBIG = 1 +const _POSIX_V7_ILP32_OFFBIG = 1 +const _POSIX_VDISABLE = 0 +const _POSIX_VERSION = 200809 +const _SC_2_CHAR_TERM = 95 +const _SC_2_C_BIND = 47 +const _SC_2_C_DEV = 48 +const _SC_2_FORT_DEV = 49 +const _SC_2_FORT_RUN = 50 +const _SC_2_LOCALEDEF = 52 +const _SC_2_PBS = 168 +const _SC_2_PBS_ACCOUNTING = 169 +const _SC_2_PBS_CHECKPOINT = 175 +const _SC_2_PBS_LOCATE = 170 +const _SC_2_PBS_MESSAGE = 171 +const _SC_2_PBS_TRACK = 172 +const _SC_2_SW_DEV = 51 +const _SC_2_UPE = 97 +const _SC_2_VERSION = 46 +const _SC_ADVISORY_INFO = 132 +const _SC_AIO_LISTIO_MAX = 23 +const _SC_AIO_MAX = 24 +const _SC_AIO_PRIO_DELTA_MAX = 25 +const _SC_ARG_MAX = 0 +const _SC_ASYNCHRONOUS_IO = 12 +const _SC_ATEXIT_MAX = 87 +const _SC_AVPHYS_PAGES = 86 +const _SC_BARRIERS = 133 +const _SC_BC_BASE_MAX = 36 +const _SC_BC_DIM_MAX = 37 +const _SC_BC_SCALE_MAX = 38 +const _SC_BC_STRING_MAX = 39 +const _SC_CHILD_MAX = 1 +const _SC_CLK_TCK = 2 +const _SC_CLOCK_SELECTION = 137 +const _SC_COLL_WEIGHTS_MAX = 40 +const _SC_CPUTIME = 138 +const _SC_DELAYTIMER_MAX = 26 +const _SC_EXPR_NEST_MAX = 42 +const _SC_FSYNC = 15 +const _SC_GETGR_R_SIZE_MAX = 69 +const _SC_GETPW_R_SIZE_MAX = 70 +const _SC_HOST_NAME_MAX = 180 +const _SC_IOV_MAX = 60 +const _SC_IPV6 = 235 +const _SC_JOB_CONTROL = 7 +const _SC_LINE_MAX = 43 +const _SC_LOGIN_NAME_MAX = 71 +const _SC_MAPPED_FILES = 16 +const _SC_MEMLOCK = 17 +const _SC_MEMLOCK_RANGE = 18 +const _SC_MEMORY_PROTECTION = 19 +const _SC_MESSAGE_PASSING = 20 +const _SC_MINSIGSTKSZ = 249 +const _SC_MONOTONIC_CLOCK = 149 +const _SC_MQ_OPEN_MAX = 27 +const _SC_MQ_PRIO_MAX = 28 +const _SC_NGROUPS_MAX = 3 +const _SC_NPROCESSORS_CONF = 83 +const _SC_NPROCESSORS_ONLN = 84 +const _SC_NZERO = 109 +const _SC_OPEN_MAX = 4 +const _SC_PAGESIZE = 30 +const _SC_PAGE_SIZE = 30 +const _SC_PASS_MAX = 88 +const _SC_PHYS_PAGES = 85 +const _SC_PRIORITIZED_IO = 13 +const _SC_PRIORITY_SCHEDULING = 10 +const _SC_RAW_SOCKETS = 236 +const _SC_READER_WRITER_LOCKS = 153 +const _SC_REALTIME_SIGNALS = 9 +const _SC_REGEXP = 155 +const _SC_RE_DUP_MAX = 44 +const _SC_RTSIG_MAX = 31 +const _SC_SAVED_IDS = 8 +const _SC_SEMAPHORES = 21 +const _SC_SEM_NSEMS_MAX = 32 +const _SC_SEM_VALUE_MAX = 33 +const _SC_SHARED_MEMORY_OBJECTS = 22 +const _SC_SHELL = 157 +const _SC_SIGQUEUE_MAX = 34 +const _SC_SIGSTKSZ = 250 +const _SC_SPAWN = 159 +const _SC_SPIN_LOCKS = 154 +const _SC_SPORADIC_SERVER = 160 +const _SC_SS_REPL_MAX = 241 +const _SC_STREAMS = 174 +const _SC_STREAM_MAX = 5 +const _SC_SYMLOOP_MAX = 173 +const _SC_SYNCHRONIZED_IO = 14 +const _SC_THREADS = 67 +const _SC_THREAD_ATTR_STACKADDR = 77 +const _SC_THREAD_ATTR_STACKSIZE = 78 +const _SC_THREAD_CPUTIME = 139 +const _SC_THREAD_DESTRUCTOR_ITERATIONS = 73 +const _SC_THREAD_KEYS_MAX = 74 +const _SC_THREAD_PRIORITY_SCHEDULING = 79 +const _SC_THREAD_PRIO_INHERIT = 80 +const _SC_THREAD_PRIO_PROTECT = 81 +const _SC_THREAD_PROCESS_SHARED = 82 +const _SC_THREAD_ROBUST_PRIO_INHERIT = 247 +const _SC_THREAD_ROBUST_PRIO_PROTECT = 248 +const _SC_THREAD_SAFE_FUNCTIONS = 68 +const _SC_THREAD_SPORADIC_SERVER = 161 +const _SC_THREAD_STACK_MIN = 75 +const _SC_THREAD_THREADS_MAX = 76 +const _SC_TIMEOUTS = 164 +const _SC_TIMERS = 11 +const _SC_TIMER_MAX = 35 +const _SC_TRACE = 181 +const _SC_TRACE_EVENT_FILTER = 182 +const _SC_TRACE_EVENT_NAME_MAX = 242 +const _SC_TRACE_INHERIT = 183 +const _SC_TRACE_LOG = 184 +const _SC_TRACE_NAME_MAX = 243 +const _SC_TRACE_SYS_MAX = 244 +const _SC_TRACE_USER_EVENT_MAX = 245 +const _SC_TTY_NAME_MAX = 72 +const _SC_TYPED_MEMORY_OBJECTS = 165 +const _SC_TZNAME_MAX = 6 +const _SC_UIO_MAXIOV = 60 +const _SC_V6_ILP32_OFF32 = 176 +const _SC_V6_ILP32_OFFBIG = 177 +const _SC_V6_LP64_OFF64 = 178 +const _SC_V6_LPBIG_OFFBIG = 179 +const _SC_V7_ILP32_OFF32 = 237 +const _SC_V7_ILP32_OFFBIG = 238 +const _SC_V7_LP64_OFF64 = 239 +const _SC_V7_LPBIG_OFFBIG = 240 +const _SC_VERSION = 29 +const _SC_XBS5_ILP32_OFF32 = 125 +const _SC_XBS5_ILP32_OFFBIG = 126 +const _SC_XBS5_LP64_OFF64 = 127 +const _SC_XBS5_LPBIG_OFFBIG = 128 +const _SC_XOPEN_CRYPT = 92 +const _SC_XOPEN_ENH_I18N = 93 +const _SC_XOPEN_LEGACY = 129 +const _SC_XOPEN_REALTIME = 130 +const _SC_XOPEN_REALTIME_THREADS = 131 +const _SC_XOPEN_SHM = 94 +const _SC_XOPEN_STREAMS = 246 +const _SC_XOPEN_UNIX = 91 +const _SC_XOPEN_VERSION = 89 +const _SC_XOPEN_XCU_VERSION = 90 +const _SC_XOPEN_XPG2 = 98 +const _SC_XOPEN_XPG3 = 99 +const _SC_XOPEN_XPG4 = 100 +const _XOPEN_ENH_I18N = 1 +const _XOPEN_UNIX = 1 +const _XOPEN_VERSION = 700 + +type Tsize_t = uint32 + +type Tssize_t = int32 + +type Toff_t = int64 + +type Tpid_t = int32 + +type Tuid_t = uint32 + +type Tgid_t = uint32 + +type Tuseconds_t = uint32 + +type Tva_list = uintptr + +type t__isoc_va_list = uintptr + +type Tfpos_t = struct { + F__ccgo_align [0]uint32 + F__lldata [0]int64 + F__align [0]float64 + F__opaque [16]uint8 +} + +type T_G_fpos64_t = Tfpos_t + +func Xconfstr(tls *TLS, name int32, buf uintptr, len1 Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v name=%v buf=%v len1=%v, (%v:)", tls, name, buf, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var s uintptr + _ = s + s = __ccgo_ts + if !(name != 0) { + s = __ccgo_ts + 1 + } else { + if Uint32FromInt32(name) & ^Uint32FromUint32(4) != uint32(1) && Uint32FromInt32(name-int32(_CS_POSIX_V6_ILP32_OFF32_CFLAGS)) > uint32(35) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uint32(0) + } + } + // snprintf is overkill but avoid wasting code size to implement + // this completely useless function and its truncation semantics + return Uint32FromInt32(Xsnprintf(tls, buf, len1, __ccgo_ts+15, VaList(bp+8, s)) + int32(1)) +} + +const ARG_MAX = 131072 +const BC_BASE_MAX = 99 +const BC_DIM_MAX = 2048 +const BC_SCALE_MAX = 99 +const BC_STRING_MAX = 1000 +const CHARCLASS_NAME_MAX = 14 +const CHAR_BIT = 8 +const CHAR_MAX = 255 +const CHAR_MIN = 0 +const COLL_WEIGHTS_MAX = 2 +const DELAYTIMER_MAX = 2147483647 +const EXPR_NEST_MAX = 32 +const FILESIZEBITS = 64 +const HOST_NAME_MAX = 255 +const INT_MAX = 2147483647 +const INT_MIN = -2147483648 +const IOV_MAX = 1024 +const LINE_MAX = 4096 +const LLONG_MAX = 9223372036854775807 +const LLONG_MIN = -9223372036854775808 +const LOGIN_NAME_MAX = 256 +const LONG_BIT = 32 +const LONG_MAX = 2147483647 +const LONG_MIN = -2147483648 +const MB_LEN_MAX = 4 +const MQ_PRIO_MAX = 32768 +const NAME_MAX = 255 +const NGROUPS_MAX = 32 +const NL_ARGMAX = 9 +const NL_LANGMAX = 32 +const NL_MSGMAX = 32767 +const NL_SETMAX = 255 +const NL_TEXTMAX = 2048 +const NZERO = 20 +const PATH_MAX = 4096 +const PIPE_BUF = 4096 +const PTHREAD_DESTRUCTOR_ITERATIONS = 4 +const PTHREAD_KEYS_MAX = 128 +const PTHREAD_STACK_MIN = 2048 +const RE_DUP_MAX = 255 +const SCHAR_MAX = 127 +const SCHAR_MIN = -128 +const SEEK_CUR = 1 +const SEEK_END = 2 +const SEEK_SET = 0 +const SEM_NSEMS_MAX = 256 +const SEM_VALUE_MAX = 2147483647 +const SHRT_MAX = 32767 +const SHRT_MIN = -32768 +const SSIZE_MAX = 2147483647 +const SYMLOOP_MAX = 40 +const TTY_NAME_MAX = 32 +const TZNAME_MAX = 6 +const UCHAR_MAX = 255 +const UINT_MAX = 4294967295 +const ULLONG_MAX = 18446744073709551615 +const ULONG_MAX = 4294967295 +const USHRT_MAX = 65535 +const WORD_BIT = 32 +const _POSIX2_BC_BASE_MAX = 99 +const _POSIX2_BC_DIM_MAX = 2048 +const _POSIX2_BC_SCALE_MAX = 99 +const _POSIX2_BC_STRING_MAX = 1000 +const _POSIX2_CHARCLASS_NAME_MAX = 14 +const _POSIX2_COLL_WEIGHTS_MAX = 2 +const _POSIX2_EXPR_NEST_MAX = 32 +const _POSIX2_LINE_MAX = 2048 +const _POSIX2_RE_DUP_MAX = 255 +const _POSIX_AIO_LISTIO_MAX = 2 +const _POSIX_AIO_MAX = 1 +const _POSIX_ARG_MAX = 4096 +const _POSIX_CHILD_MAX = 25 +const _POSIX_CLOCKRES_MIN = 20000000 +const _POSIX_DELAYTIMER_MAX = 32 +const _POSIX_HOST_NAME_MAX = 255 +const _POSIX_LINK_MAX = 8 +const _POSIX_LOGIN_NAME_MAX = 9 +const _POSIX_MAX_CANON = 255 +const _POSIX_MAX_INPUT = 255 +const _POSIX_MQ_OPEN_MAX = 8 +const _POSIX_MQ_PRIO_MAX = 32 +const _POSIX_NAME_MAX = 14 +const _POSIX_NGROUPS_MAX = 8 +const _POSIX_OPEN_MAX = 20 +const _POSIX_PATH_MAX = 256 +const _POSIX_PIPE_BUF = 512 +const _POSIX_RE_DUP_MAX = 255 +const _POSIX_RTSIG_MAX = 8 +const _POSIX_SEM_NSEMS_MAX = 256 +const _POSIX_SEM_VALUE_MAX = 32767 +const _POSIX_SIGQUEUE_MAX = 32 +const _POSIX_SSIZE_MAX = 32767 +const _POSIX_SS_REPL_MAX = 4 +const _POSIX_STREAM_MAX = 8 +const _POSIX_SYMLINK_MAX = 255 +const _POSIX_SYMLOOP_MAX = 8 +const _POSIX_THREAD_DESTRUCTOR_ITERATIONS = 4 +const _POSIX_THREAD_KEYS_MAX = 128 +const _POSIX_THREAD_THREADS_MAX = 64 +const _POSIX_TIMER_MAX = 32 +const _POSIX_TRACE_EVENT_NAME_MAX = 30 +const _POSIX_TRACE_NAME_MAX = 8 +const _POSIX_TRACE_SYS_MAX = 8 +const _POSIX_TRACE_USER_EVENT_MAX = 32 +const _POSIX_TTY_NAME_MAX = 9 +const _POSIX_TZNAME_MAX = 6 +const _XOPEN_IOV_MAX = 16 +const _XOPEN_NAME_MAX = 255 +const _XOPEN_PATH_MAX = 1024 + +func Xfpathconf(tls *TLS, fd int32, name int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v name=%v, (%v:)", tls, fd, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + if Uint32FromInt32(name) >= Uint32FromInt64(42)/Uint32FromInt64(2) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + return int32(_values[name]) +} + +var _values = [21]int16{ + 0: int16(_POSIX_LINK_MAX), + 1: int16(_POSIX_MAX_CANON), + 2: int16(_POSIX_MAX_INPUT), + 3: int16(NAME_MAX), + 4: int16(PATH_MAX), + 5: int16(PIPE_BUF), + 6: int16(1), + 7: int16(1), + 9: int16(1), + 10: int16(-int32(1)), + 11: int16(-int32(1)), + 12: int16(-int32(1)), + 13: int16(FILESIZEBITS), + 14: int16(4096), + 15: int16(4096), + 16: int16(4096), + 17: int16(4096), + 18: int16(4096), + 19: int16(-int32(1)), + 20: int16(1), +} + +const SI_LOAD_SHIFT = 16 + +type Tsysinfo = struct { + Fuptime uint32 + Floads [3]uint32 + Ftotalram uint32 + Ffreeram uint32 + Fsharedram uint32 + Fbufferram uint32 + Ftotalswap uint32 + Ffreeswap uint32 + Fprocs uint16 + Fpad uint16 + Ftotalhigh uint32 + Ffreehigh uint32 + Fmem_unit uint32 + F__reserved [256]uint8 +} + +func Xget_nprocs_conf(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xsysconf(tls, int32(_SC_NPROCESSORS_CONF)) +} + +func Xget_nprocs(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xsysconf(tls, int32(_SC_NPROCESSORS_ONLN)) +} + +func Xget_phys_pages(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xsysconf(tls, int32(_SC_PHYS_PAGES)) +} + +func Xget_avphys_pages(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xsysconf(tls, int32(_SC_AVPHYS_PAGES)) +} + +func Xpathconf(tls *TLS, path uintptr, name int32) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v name=%v, (%v:)", tls, path, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfpathconf(tls, -int32(1), name) +} + +const AT_BASE = 7 +const AT_BASE_PLATFORM = 24 +const AT_CLKTCK = 17 +const AT_DCACHEBSIZE = 19 +const AT_EGID = 14 +const AT_ENTRY = 9 +const AT_EUID = 12 +const AT_EXECFD = 2 +const AT_EXECFN = 31 +const AT_FLAGS = 8 +const AT_FPUCW = 18 +const AT_GID = 13 +const AT_HWCAP = 16 +const AT_HWCAP2 = 26 +const AT_ICACHEBSIZE = 20 +const AT_IGNORE = 1 +const AT_IGNOREPPC = 22 +const AT_L1D_CACHEGEOMETRY = 43 +const AT_L1D_CACHESHAPE = 35 +const AT_L1D_CACHESIZE = 42 +const AT_L1I_CACHEGEOMETRY = 41 +const AT_L1I_CACHESHAPE = 34 +const AT_L1I_CACHESIZE = 40 +const AT_L2_CACHEGEOMETRY = 45 +const AT_L2_CACHESHAPE = 36 +const AT_L2_CACHESIZE = 44 +const AT_L3_CACHEGEOMETRY = 47 +const AT_L3_CACHESHAPE = 37 +const AT_L3_CACHESIZE = 46 +const AT_MINSIGSTKSZ = 51 +const AT_NOTELF = 10 +const AT_NULL = 0 +const AT_PAGESZ = 6 +const AT_PHDR = 3 +const AT_PHENT = 4 +const AT_PHNUM = 5 +const AT_PLATFORM = 15 +const AT_RANDOM = 25 +const AT_SECURE = 23 +const AT_SYSINFO = 32 +const AT_SYSINFO_EHDR = 33 +const AT_UCACHEBSIZE = 21 +const AT_UID = 11 +const BUS_ADRALN = 1 +const BUS_ADRERR = 2 +const BUS_MCEERR_AO = 5 +const BUS_MCEERR_AR = 4 +const BUS_OBJERR = 3 +const CLD_CONTINUED = 6 +const CLD_DUMPED = 3 +const CLD_EXITED = 1 +const CLD_KILLED = 2 +const CLD_STOPPED = 5 +const CLD_TRAPPED = 4 +const DF_1_CONFALT = 8192 +const DF_1_DIRECT = 256 +const DF_1_DISPRELDNE = 32768 +const DF_1_DISPRELPND = 65536 +const DF_1_EDITED = 2097152 +const DF_1_ENDFILTEE = 16384 +const DF_1_GLOBAL = 2 +const DF_1_GLOBAUDIT = 16777216 +const DF_1_GROUP = 4 +const DF_1_IGNMULDEF = 262144 +const DF_1_INITFIRST = 32 +const DF_1_INTERPOSE = 1024 +const DF_1_LOADFLTR = 16 +const DF_1_NODEFLIB = 2048 +const DF_1_NODELETE = 8 +const DF_1_NODIRECT = 131072 +const DF_1_NODUMP = 4096 +const DF_1_NOHDR = 1048576 +const DF_1_NOKSYMS = 524288 +const DF_1_NOOPEN = 64 +const DF_1_NORELOC = 4194304 +const DF_1_NOW = 1 +const DF_1_ORIGIN = 128 +const DF_1_PIE = 134217728 +const DF_1_SINGLETON = 33554432 +const DF_1_STUB = 67108864 +const DF_1_SYMINTPOSE = 8388608 +const DF_1_TRANS = 512 +const DF_BIND_NOW = 8 +const DF_ORIGIN = 1 +const DF_P1_GROUPPERM = 2 +const DF_P1_LAZYLOAD = 1 +const DF_STATIC_TLS = 16 +const DF_SYMBOLIC = 2 +const DF_TEXTREL = 4 +const DTF_1_CONFEXP = 2 +const DTF_1_PARINIT = 1 +const DT_ADDRNUM = 11 +const DT_ADDRRNGHI = 1879047935 +const DT_ADDRRNGLO = 1879047680 +const DT_ALPHA_NUM = 1 +const DT_ALPHA_PLTRO = 1879048192 +const DT_AUDIT = 1879047932 +const DT_AUXILIARY = 2147483645 +const DT_BIND_NOW = 24 +const DT_CHECKSUM = 1879047672 +const DT_CONFIG = 1879047930 +const DT_DEBUG = 21 +const DT_DEPAUDIT = 1879047931 +const DT_ENCODING = 32 +const DT_EXTRANUM = 3 +const DT_FEATURE_1 = 1879047676 +const DT_FILTER = 2147483647 +const DT_FINI = 13 +const DT_FINI_ARRAY = 26 +const DT_FINI_ARRAYSZ = 28 +const DT_FLAGS = 30 +const DT_FLAGS_1 = 1879048187 +const DT_GNU_CONFLICT = 1879047928 +const DT_GNU_CONFLICTSZ = 1879047670 +const DT_GNU_HASH = 1879047925 +const DT_GNU_LIBLIST = 1879047929 +const DT_GNU_LIBLISTSZ = 1879047671 +const DT_GNU_PRELINKED = 1879047669 +const DT_HASH = 4 +const DT_HIOS = 1879044096 +const DT_HIPROC = 2147483647 +const DT_IA_64_NUM = 1 +const DT_IA_64_PLT_RESERVE = 1879048192 +const DT_INIT = 12 +const DT_INIT_ARRAY = 25 +const DT_INIT_ARRAYSZ = 27 +const DT_JMPREL = 23 +const DT_LOOS = 1610612749 +const DT_LOPROC = 1879048192 +const DT_MIPS_AUX_DYNAMIC = 1879048241 +const DT_MIPS_BASE_ADDRESS = 1879048198 +const DT_MIPS_COMPACT_SIZE = 1879048239 +const DT_MIPS_CONFLICT = 1879048200 +const DT_MIPS_CONFLICTNO = 1879048203 +const DT_MIPS_CXX_FLAGS = 1879048226 +const DT_MIPS_DELTA_CLASS = 1879048215 +const DT_MIPS_DELTA_CLASSSYM = 1879048224 +const DT_MIPS_DELTA_CLASSSYM_NO = 1879048225 +const DT_MIPS_DELTA_CLASS_NO = 1879048216 +const DT_MIPS_DELTA_INSTANCE = 1879048217 +const DT_MIPS_DELTA_INSTANCE_NO = 1879048218 +const DT_MIPS_DELTA_RELOC = 1879048219 +const DT_MIPS_DELTA_RELOC_NO = 1879048220 +const DT_MIPS_DELTA_SYM = 1879048221 +const DT_MIPS_DELTA_SYM_NO = 1879048222 +const DT_MIPS_DYNSTR_ALIGN = 1879048235 +const DT_MIPS_FLAGS = 1879048197 +const DT_MIPS_GOTSYM = 1879048211 +const DT_MIPS_GP_VALUE = 1879048240 +const DT_MIPS_HIDDEN_GOTIDX = 1879048231 +const DT_MIPS_HIPAGENO = 1879048212 +const DT_MIPS_ICHECKSUM = 1879048195 +const DT_MIPS_INTERFACE = 1879048234 +const DT_MIPS_INTERFACE_SIZE = 1879048236 +const DT_MIPS_IVERSION = 1879048196 +const DT_MIPS_LIBLIST = 1879048201 +const DT_MIPS_LIBLISTNO = 1879048208 +const DT_MIPS_LOCALPAGE_GOTIDX = 1879048229 +const DT_MIPS_LOCAL_GOTIDX = 1879048230 +const DT_MIPS_LOCAL_GOTNO = 1879048202 +const DT_MIPS_MSYM = 1879048199 +const DT_MIPS_NUM = 54 +const DT_MIPS_OPTIONS = 1879048233 +const DT_MIPS_PERF_SUFFIX = 1879048238 +const DT_MIPS_PIXIE_INIT = 1879048227 +const DT_MIPS_PLTGOT = 1879048242 +const DT_MIPS_PROTECTED_GOTIDX = 1879048232 +const DT_MIPS_RLD_MAP = 1879048214 +const DT_MIPS_RLD_MAP_REL = 1879048245 +const DT_MIPS_RLD_TEXT_RESOLVE_ADDR = 1879048237 +const DT_MIPS_RLD_VERSION = 1879048193 +const DT_MIPS_RWPLT = 1879048244 +const DT_MIPS_SYMBOL_LIB = 1879048228 +const DT_MIPS_SYMTABNO = 1879048209 +const DT_MIPS_TIME_STAMP = 1879048194 +const DT_MIPS_UNREFEXTNO = 1879048210 +const DT_MOVEENT = 1879047674 +const DT_MOVESZ = 1879047675 +const DT_MOVETAB = 1879047934 +const DT_NEEDED = 1 +const DT_NIOS2_GP = 1879048194 +const DT_NULL = 0 +const DT_NUM = 38 +const DT_PLTGOT = 3 +const DT_PLTPAD = 1879047933 +const DT_PLTPADSZ = 1879047673 +const DT_PLTREL = 20 +const DT_PLTRELSZ = 2 +const DT_POSFLAG_1 = 1879047677 +const DT_PPC64_GLINK = 1879048192 +const DT_PPC64_NUM = 4 +const DT_PPC64_OPD = 1879048193 +const DT_PPC64_OPDSZ = 1879048194 +const DT_PPC64_OPT = 1879048195 +const DT_PPC_GOT = 1879048192 +const DT_PPC_NUM = 2 +const DT_PPC_OPT = 1879048193 +const DT_PREINIT_ARRAY = 32 +const DT_PREINIT_ARRAYSZ = 33 +const DT_PROCNUM = 54 +const DT_REL = 17 +const DT_RELA = 7 +const DT_RELACOUNT = 1879048185 +const DT_RELAENT = 9 +const DT_RELASZ = 8 +const DT_RELCOUNT = 1879048186 +const DT_RELENT = 19 +const DT_RELR = 36 +const DT_RELRENT = 37 +const DT_RELRSZ = 35 +const DT_RELSZ = 18 +const DT_RPATH = 15 +const DT_RUNPATH = 29 +const DT_SONAME = 14 +const DT_SPARC_NUM = 2 +const DT_SPARC_REGISTER = 1879048193 +const DT_STRSZ = 10 +const DT_STRTAB = 5 +const DT_SYMBOLIC = 16 +const DT_SYMENT = 11 +const DT_SYMINENT = 1879047679 +const DT_SYMINFO = 1879047935 +const DT_SYMINSZ = 1879047678 +const DT_SYMTAB = 6 +const DT_SYMTAB_SHNDX = 34 +const DT_TEXTREL = 22 +const DT_TLSDESC_GOT = 1879047927 +const DT_TLSDESC_PLT = 1879047926 +const DT_VALNUM = 12 +const DT_VALRNGHI = 1879047679 +const DT_VALRNGLO = 1879047424 +const DT_VERDEF = 1879048188 +const DT_VERDEFNUM = 1879048189 +const DT_VERNEED = 1879048190 +const DT_VERNEEDNUM = 1879048191 +const DT_VERSIONTAGNUM = 16 +const DT_VERSYM = 1879048176 +const EFA_PARISC_1_0 = 523 +const EFA_PARISC_1_1 = 528 +const EFA_PARISC_2_0 = 532 +const EF_ALPHA_32BIT = 1 +const EF_ALPHA_CANRELAX = 2 +const EF_ARM_ABI_FLOAT_HARD = 1024 +const EF_ARM_ABI_FLOAT_SOFT = 512 +const EF_ARM_ALIGN8 = 64 +const EF_ARM_APCS_26 = 8 +const EF_ARM_APCS_FLOAT = 16 +const EF_ARM_BE8 = 8388608 +const EF_ARM_DYNSYMSUSESEGIDX = 8 +const EF_ARM_EABIMASK = 4278190080 +const EF_ARM_EABI_UNKNOWN = 0 +const EF_ARM_EABI_VER1 = 16777216 +const EF_ARM_EABI_VER2 = 33554432 +const EF_ARM_EABI_VER3 = 50331648 +const EF_ARM_EABI_VER4 = 67108864 +const EF_ARM_EABI_VER5 = 83886080 +const EF_ARM_HASENTRY = 2 +const EF_ARM_INTERWORK = 4 +const EF_ARM_LE8 = 4194304 +const EF_ARM_MAPSYMSFIRST = 16 +const EF_ARM_MAVERICK_FLOAT = 2048 +const EF_ARM_NEW_ABI = 128 +const EF_ARM_OLD_ABI = 256 +const EF_ARM_PIC = 32 +const EF_ARM_RELEXEC = 1 +const EF_ARM_SOFT_FLOAT = 512 +const EF_ARM_SYMSARESORTED = 4 +const EF_ARM_VFP_FLOAT = 1024 +const EF_CPU32 = 8454144 +const EF_IA_64_ABI64 = 16 +const EF_IA_64_ARCH = 4278190080 +const EF_IA_64_MASKOS = 15 +const EF_LARCH_ABI_DOUBLE_FLOAT = 3 +const EF_LARCH_ABI_MODIFIER_MASK = 7 +const EF_LARCH_ABI_SINGLE_FLOAT = 2 +const EF_LARCH_ABI_SOFT_FLOAT = 1 +const EF_LARCH_OBJABI_V1 = 64 +const EF_MIPS_64BIT_WHIRL = 16 +const EF_MIPS_ABI2 = 32 +const EF_MIPS_ABI_ON32 = 64 +const EF_MIPS_ARCH = 4026531840 +const EF_MIPS_ARCH_1 = 0 +const EF_MIPS_ARCH_2 = 268435456 +const EF_MIPS_ARCH_3 = 536870912 +const EF_MIPS_ARCH_32 = 1342177280 +const EF_MIPS_ARCH_32R2 = 1879048192 +const EF_MIPS_ARCH_4 = 805306368 +const EF_MIPS_ARCH_5 = 1073741824 +const EF_MIPS_ARCH_64 = 1610612736 +const EF_MIPS_ARCH_64R2 = 2147483648 +const EF_MIPS_CPIC = 4 +const EF_MIPS_FP64 = 512 +const EF_MIPS_NAN2008 = 1024 +const EF_MIPS_NOREORDER = 1 +const EF_MIPS_PIC = 2 +const EF_MIPS_XGOT = 8 +const EF_PARISC_ARCH = 65535 +const EF_PARISC_EXT = 131072 +const EF_PARISC_LAZYSWAP = 4194304 +const EF_PARISC_LSB = 262144 +const EF_PARISC_NO_KABP = 1048576 +const EF_PARISC_TRAPNIL = 65536 +const EF_PARISC_WIDE = 524288 +const EF_PPC64_ABI = 3 +const EF_PPC_EMB = 2147483648 +const EF_PPC_RELOCATABLE = 65536 +const EF_PPC_RELOCATABLE_LIB = 32768 +const EF_SH1 = 1 +const EF_SH2 = 2 +const EF_SH2A = 13 +const EF_SH2A_NOFPU = 19 +const EF_SH2A_SH3E = 24 +const EF_SH2A_SH3_NOFPU = 22 +const EF_SH2A_SH4 = 23 +const EF_SH2A_SH4_NOFPU = 21 +const EF_SH2E = 11 +const EF_SH3 = 3 +const EF_SH3E = 8 +const EF_SH3_DSP = 5 +const EF_SH3_NOMMU = 20 +const EF_SH4 = 9 +const EF_SH4A = 12 +const EF_SH4AL_DSP = 6 +const EF_SH4A_NOFPU = 17 +const EF_SH4_NOFPU = 16 +const EF_SH4_NOMMU_NOFPU = 18 +const EF_SH_DSP = 4 +const EF_SH_MACH_MASK = 31 +const EF_SH_UNKNOWN = 0 +const EF_SPARCV9_MM = 3 +const EF_SPARCV9_PSO = 1 +const EF_SPARCV9_RMO = 2 +const EF_SPARCV9_TSO = 0 +const EF_SPARC_32PLUS = 256 +const EF_SPARC_EXT_MASK = 16776960 +const EF_SPARC_HAL_R1 = 1024 +const EF_SPARC_LEDATA = 8388608 +const EF_SPARC_SUN_US1 = 512 +const EF_SPARC_SUN_US3 = 2048 +const EI_ABIVERSION = 8 +const EI_CLASS = 4 +const EI_DATA = 5 +const EI_MAG0 = 0 +const EI_MAG1 = 1 +const EI_MAG2 = 2 +const EI_MAG3 = 3 +const EI_NIDENT = 16 +const EI_OSABI = 7 +const EI_PAD = 9 +const EI_VERSION = 6 +const ELFCLASS32 = 1 +const ELFCLASS64 = 2 +const ELFCLASSNONE = 0 +const ELFCLASSNUM = 3 +const ELFCOMPRESS_HIOS = 1879048191 +const ELFCOMPRESS_HIPROC = 2147483647 +const ELFCOMPRESS_LOOS = 1610612736 +const ELFCOMPRESS_LOPROC = 1879048192 +const ELFCOMPRESS_ZLIB = 1 +const ELFCOMPRESS_ZSTD = 2 +const ELFDATA2LSB = 1 +const ELFDATA2MSB = 2 +const ELFDATANONE = 0 +const ELFDATANUM = 3 +const ELFMAG = "\\177ELF" +const ELFMAG0 = 127 +const ELFMAG1 = 69 +const ELFMAG2 = 76 +const ELFMAG3 = 70 +const ELFOSABI_AIX = 7 +const ELFOSABI_ARM = 97 +const ELFOSABI_FREEBSD = 9 +const ELFOSABI_GNU = 3 +const ELFOSABI_HPUX = 1 +const ELFOSABI_IRIX = 8 +const ELFOSABI_LINUX = 3 +const ELFOSABI_MODESTO = 11 +const ELFOSABI_NETBSD = 2 +const ELFOSABI_NONE = 0 +const ELFOSABI_OPENBSD = 12 +const ELFOSABI_SOLARIS = 6 +const ELFOSABI_STANDALONE = 255 +const ELFOSABI_SYSV = 0 +const ELFOSABI_TRU64 = 10 +const ELF_NOTE_ABI = 1 +const ELF_NOTE_GNU = "GNU" +const ELF_NOTE_OS_FREEBSD = 3 +const ELF_NOTE_OS_GNU = 1 +const ELF_NOTE_OS_LINUX = 0 +const ELF_NOTE_OS_SOLARIS2 = 2 +const ELF_NOTE_PAGESIZE_HINT = 1 +const ELF_NOTE_SOLARIS = "SUNW Solaris" +const EM_386 = 3 +const EM_56800EX = 200 +const EM_68HC05 = 72 +const EM_68HC08 = 71 +const EM_68HC11 = 70 +const EM_68HC12 = 53 +const EM_68HC16 = 69 +const EM_68K = 4 +const EM_78KOR = 199 +const EM_8051 = 165 +const EM_860 = 7 +const EM_88K = 5 +const EM_960 = 19 +const EM_AARCH64 = 183 +const EM_ALPHA = 36902 +const EM_ALTERA_NIOS2 = 113 +const EM_AMDGPU = 224 +const EM_ARC = 45 +const EM_ARCA = 109 +const EM_ARC_A5 = 93 +const EM_ARC_COMPACT = 93 +const EM_ARC_COMPACT2 = 195 +const EM_ARM = 40 +const EM_AVR = 83 +const EM_AVR32 = 185 +const EM_BA1 = 201 +const EM_BA2 = 202 +const EM_BLACKFIN = 106 +const EM_BPF = 247 +const EM_C166 = 116 +const EM_CDP = 215 +const EM_CE = 119 +const EM_CLOUDSHIELD = 192 +const EM_COGE = 216 +const EM_COLDFIRE = 52 +const EM_COOL = 217 +const EM_COREA_1ST = 193 +const EM_COREA_2ND = 194 +const EM_CR = 103 +const EM_CR16 = 177 +const EM_CRAYNV2 = 172 +const EM_CRIS = 76 +const EM_CRX = 114 +const EM_CSKY = 252 +const EM_CSR_KALIMBA = 219 +const EM_CUDA = 190 +const EM_CYPRESS_M8C = 161 +const EM_D10V = 85 +const EM_D30V = 86 +const EM_DSP24 = 136 +const EM_DSPIC30F = 118 +const EM_DXP = 112 +const EM_ECOG16 = 176 +const EM_ECOG1X = 168 +const EM_ECOG2 = 134 +const EM_EMX16 = 212 +const EM_EMX8 = 213 +const EM_ETPU = 178 +const EM_EXCESS = 111 +const EM_F2MC16 = 104 +const EM_FAKE_ALPHA = 41 +const EM_FIREPATH = 78 +const EM_FR20 = 37 +const EM_FR30 = 84 +const EM_FT32 = 222 +const EM_FX66 = 66 +const EM_H8S = 48 +const EM_H8_300 = 46 +const EM_H8_300H = 47 +const EM_H8_500 = 49 +const EM_HUANY = 81 +const EM_IA_64 = 50 +const EM_IP2K = 101 +const EM_JAVELIN = 77 +const EM_K10M = 181 +const EM_KM32 = 210 +const EM_KMX32 = 211 +const EM_KVARC = 214 +const EM_L10M = 180 +const EM_LATTICEMICO32 = 138 +const EM_LOONGARCH = 258 +const EM_M16C = 117 +const EM_M32 = 1 +const EM_M32C = 120 +const EM_M32R = 88 +const EM_MANIK = 171 +const EM_MAX = 102 +const EM_MAXQ30 = 169 +const EM_MCHP_PIC = 204 +const EM_MCST_ELBRUS = 175 +const EM_ME16 = 59 +const EM_METAG = 174 +const EM_MICROBLAZE = 189 +const EM_MIPS = 8 +const EM_MIPS_RS3_LE = 10 +const EM_MIPS_X = 51 +const EM_MMA = 54 +const EM_MMDSP_PLUS = 160 +const EM_MMIX = 80 +const EM_MN10200 = 90 +const EM_MN10300 = 89 +const EM_MOXIE = 223 +const EM_MSP430 = 105 +const EM_NCPU = 56 +const EM_NDR1 = 57 +const EM_NDS32 = 167 +const EM_NONE = 0 +const EM_NORC = 218 +const EM_NS32K = 97 +const EM_NUM = 259 +const EM_OPEN8 = 196 +const EM_OPENRISC = 92 +const EM_OR1K = 92 +const EM_PARISC = 15 +const EM_PCP = 55 +const EM_PDSP = 63 +const EM_PJ = 91 +const EM_PPC = 20 +const EM_PPC64 = 21 +const EM_PRISM = 82 +const EM_QDSP6 = 164 +const EM_R32C = 162 +const EM_RCE = 39 +const EM_RH32 = 38 +const EM_RISCV = 243 +const EM_RL78 = 197 +const EM_RS08 = 132 +const EM_RX = 173 +const EM_S370 = 9 +const EM_S390 = 22 +const EM_SCORE7 = 135 +const EM_SEP = 108 +const EM_SE_C17 = 139 +const EM_SE_C33 = 107 +const EM_SH = 42 +const EM_SHARC = 133 +const EM_SLE9X = 179 +const EM_SNP1K = 99 +const EM_SPARC = 2 +const EM_SPARC32PLUS = 18 +const EM_SPARCV9 = 43 +const EM_ST100 = 60 +const EM_ST19 = 74 +const EM_ST200 = 100 +const EM_ST7 = 68 +const EM_ST9PLUS = 67 +const EM_STARCORE = 58 +const EM_STM8 = 186 +const EM_STXP7X = 166 +const EM_SVX = 73 +const EM_TILE64 = 187 +const EM_TILEGX = 191 +const EM_TILEPRO = 188 +const EM_TINYJ = 61 +const EM_TI_ARP32 = 143 +const EM_TI_C2000 = 141 +const EM_TI_C5500 = 142 +const EM_TI_C6000 = 140 +const EM_TI_PRU = 144 +const EM_TMM_GPP = 96 +const EM_TPC = 98 +const EM_TRICORE = 44 +const EM_TRIMEDIA = 163 +const EM_TSK3000 = 131 +const EM_UNICORE = 110 +const EM_V800 = 36 +const EM_V850 = 87 +const EM_VAX = 75 +const EM_VIDEOCORE = 95 +const EM_VIDEOCORE3 = 137 +const EM_VIDEOCORE5 = 198 +const EM_VISIUM = 221 +const EM_VPP500 = 17 +const EM_X86_64 = 62 +const EM_XCORE = 203 +const EM_XGATE = 115 +const EM_XIMO16 = 170 +const EM_XTENSA = 94 +const EM_Z80 = 220 +const EM_ZSP = 79 +const ET_CORE = 4 +const ET_DYN = 3 +const ET_EXEC = 2 +const ET_HIOS = 65279 +const ET_HIPROC = 65535 +const ET_LOOS = 65024 +const ET_LOPROC = 65280 +const ET_NONE = 0 +const ET_NUM = 5 +const ET_REL = 1 +const EV_CURRENT = 1 +const EV_NONE = 0 +const EV_NUM = 2 +const EXIT_FAILURE = 1 +const EXIT_SUCCESS = 0 +const E_MIPS_ARCH_1 = 0 +const E_MIPS_ARCH_2 = 268435456 +const E_MIPS_ARCH_3 = 536870912 +const E_MIPS_ARCH_32 = 1342177280 +const E_MIPS_ARCH_4 = 805306368 +const E_MIPS_ARCH_5 = 1073741824 +const E_MIPS_ARCH_64 = 1610612736 +const FD_SETSIZE = 1024 +const FPE_FLTDIV = 3 +const FPE_FLTINV = 7 +const FPE_FLTOVF = 4 +const FPE_FLTRES = 6 +const FPE_FLTSUB = 8 +const FPE_FLTUND = 5 +const FPE_INTDIV = 1 +const FPE_INTOVF = 2 +const GRP_COMDAT = 1 +const HWCAP2_AES = 1 +const HWCAP2_CRC32 = 16 +const HWCAP2_PMULL = 2 +const HWCAP2_SHA1 = 4 +const HWCAP2_SHA2 = 8 +const HWCAP_26BIT = 8 +const HWCAP_ARM_26BIT = 8 +const HWCAP_ARM_CRUNCH = 1024 +const HWCAP_ARM_EDSP = 128 +const HWCAP_ARM_EVTSTRM = 2097152 +const HWCAP_ARM_FAST_MULT = 16 +const HWCAP_ARM_FPA = 32 +const HWCAP_ARM_HALF = 2 +const HWCAP_ARM_IDIV = 393216 +const HWCAP_ARM_IDIVA = 131072 +const HWCAP_ARM_IDIVT = 262144 +const HWCAP_ARM_IWMMXT = 512 +const HWCAP_ARM_JAVA = 256 +const HWCAP_ARM_LPAE = 1048576 +const HWCAP_ARM_NEON = 4096 +const HWCAP_ARM_SWP = 1 +const HWCAP_ARM_THUMB = 4 +const HWCAP_ARM_THUMBEE = 2048 +const HWCAP_ARM_TLS = 32768 +const HWCAP_ARM_VFP = 64 +const HWCAP_ARM_VFPD32 = 524288 +const HWCAP_ARM_VFPv3 = 8192 +const HWCAP_ARM_VFPv3D16 = 16384 +const HWCAP_ARM_VFPv4 = 65536 +const HWCAP_CRUNCH = 1024 +const HWCAP_EDSP = 128 +const HWCAP_EVTSTRM = 2097152 +const HWCAP_FAST_MULT = 16 +const HWCAP_FPA = 32 +const HWCAP_HALF = 2 +const HWCAP_IDIV = 393216 +const HWCAP_IDIVA = 131072 +const HWCAP_IDIVT = 262144 +const HWCAP_IWMMXT = 512 +const HWCAP_JAVA = 256 +const HWCAP_LPAE = 1048576 +const HWCAP_NEON = 4096 +const HWCAP_SWP = 1 +const HWCAP_THUMB = 4 +const HWCAP_THUMBEE = 2048 +const HWCAP_TLS = 32768 +const HWCAP_VFP = 64 +const HWCAP_VFPD32 = 524288 +const HWCAP_VFPv3 = 8192 +const HWCAP_VFPv3D16 = 16384 +const HWCAP_VFPv4 = 65536 +const ILL_BADSTK = 8 +const ILL_COPROC = 7 +const ILL_ILLADR = 3 +const ILL_ILLOPC = 1 +const ILL_ILLOPN = 2 +const ILL_ILLTRP = 4 +const ILL_PRVOPC = 5 +const ILL_PRVREG = 6 +const ITIMER_PROF = 2 +const ITIMER_REAL = 0 +const ITIMER_VIRTUAL = 1 +const JT_ARG_MAX = -254 +const JT_AVPHYS_PAGES = -247 +const JT_DELAYTIMER_MAX = -245 +const JT_MINSIGSTKSZ = -244 +const JT_MQ_PRIO_MAX = -253 +const JT_NPROCESSORS_CONF = -250 +const JT_NPROCESSORS_ONLN = -249 +const JT_PAGE_SIZE = -252 +const JT_PHYS_PAGES = -248 +const JT_SEM_VALUE_MAX = -251 +const JT_SIGSTKSZ = -243 +const JT_ZERO = -246 +const LITUSE_ALPHA_ADDR = 0 +const LITUSE_ALPHA_BASE = 1 +const LITUSE_ALPHA_BYTOFF = 2 +const LITUSE_ALPHA_JSR = 3 +const LITUSE_ALPHA_TLS_GD = 4 +const LITUSE_ALPHA_TLS_LDM = 5 +const LL_DELAY_LOAD = 16 +const LL_DELTA = 32 +const LL_EXACT_MATCH = 1 +const LL_EXPORTS = 8 +const LL_IGNORE_INT_VER = 2 +const LL_NONE = 0 +const LL_REQUIRE_MINOR = 4 +const MB_CUR_MAX = 0 +const MINSIGSTKSZ = 2048 +const MIPS_AFL_ASE_DSP = 1 +const MIPS_AFL_ASE_DSPR2 = 2 +const MIPS_AFL_ASE_EVA = 4 +const MIPS_AFL_ASE_MASK = 8191 +const MIPS_AFL_ASE_MCU = 8 +const MIPS_AFL_ASE_MDMX = 16 +const MIPS_AFL_ASE_MICROMIPS = 2048 +const MIPS_AFL_ASE_MIPS16 = 1024 +const MIPS_AFL_ASE_MIPS3D = 32 +const MIPS_AFL_ASE_MSA = 512 +const MIPS_AFL_ASE_MT = 64 +const MIPS_AFL_ASE_SMARTMIPS = 128 +const MIPS_AFL_ASE_VIRT = 256 +const MIPS_AFL_ASE_XPA = 4096 +const MIPS_AFL_EXT_10000 = 11 +const MIPS_AFL_EXT_3900 = 10 +const MIPS_AFL_EXT_4010 = 8 +const MIPS_AFL_EXT_4100 = 9 +const MIPS_AFL_EXT_4111 = 13 +const MIPS_AFL_EXT_4120 = 14 +const MIPS_AFL_EXT_4650 = 7 +const MIPS_AFL_EXT_5400 = 15 +const MIPS_AFL_EXT_5500 = 16 +const MIPS_AFL_EXT_5900 = 6 +const MIPS_AFL_EXT_LOONGSON_2E = 17 +const MIPS_AFL_EXT_LOONGSON_2F = 18 +const MIPS_AFL_EXT_LOONGSON_3A = 4 +const MIPS_AFL_EXT_OCTEON = 5 +const MIPS_AFL_EXT_OCTEON2 = 2 +const MIPS_AFL_EXT_OCTEONP = 3 +const MIPS_AFL_EXT_SB1 = 12 +const MIPS_AFL_EXT_XLR = 1 +const MIPS_AFL_FLAGS1_ODDSPREG = 1 +const MIPS_AFL_REG_128 = 3 +const MIPS_AFL_REG_32 = 1 +const MIPS_AFL_REG_64 = 2 +const MIPS_AFL_REG_NONE = 0 +const NT_386_IOPERM = 513 +const NT_386_TLS = 512 +const NT_ARC_V2 = 1536 +const NT_ARM_HW_BREAK = 1026 +const NT_ARM_HW_WATCH = 1027 +const NT_ARM_PACA_KEYS = 1031 +const NT_ARM_PACG_KEYS = 1032 +const NT_ARM_PAC_ENABLED_KEYS = 1034 +const NT_ARM_PAC_MASK = 1030 +const NT_ARM_SVE = 1029 +const NT_ARM_SYSTEM_CALL = 1028 +const NT_ARM_TAGGED_ADDR_CTRL = 1033 +const NT_ARM_TLS = 1025 +const NT_ARM_VFP = 1024 +const NT_ASRS = 8 +const NT_AUXV = 6 +const NT_FILE = 1179208773 +const NT_FPREGSET = 2 +const NT_GNU_ABI_TAG = 1 +const NT_GNU_BUILD_ID = 3 +const NT_GNU_GOLD_VERSION = 4 +const NT_GNU_PROPERTY_TYPE_0 = 5 +const NT_GWINDOWS = 7 +const NT_LOONGARCH_CPUCFG = 2560 +const NT_LOONGARCH_CSR = 2561 +const NT_LOONGARCH_LASX = 2563 +const NT_LOONGARCH_LBT = 2564 +const NT_LOONGARCH_LSX = 2562 +const NT_LWPSINFO = 17 +const NT_LWPSTATUS = 16 +const NT_METAG_CBUF = 1280 +const NT_METAG_RPIPE = 1281 +const NT_METAG_TLS = 1282 +const NT_MIPS_DSP = 2048 +const NT_MIPS_FP_MODE = 2049 +const NT_MIPS_MSA = 2050 +const NT_PLATFORM = 5 +const NT_PPC_DSCR = 261 +const NT_PPC_EBB = 262 +const NT_PPC_PMU = 263 +const NT_PPC_PPR = 260 +const NT_PPC_SPE = 257 +const NT_PPC_TAR = 259 +const NT_PPC_TM_CDSCR = 271 +const NT_PPC_TM_CFPR = 265 +const NT_PPC_TM_CGPR = 264 +const NT_PPC_TM_CPPR = 270 +const NT_PPC_TM_CTAR = 269 +const NT_PPC_TM_CVMX = 266 +const NT_PPC_TM_CVSX = 267 +const NT_PPC_TM_SPR = 268 +const NT_PPC_VMX = 256 +const NT_PPC_VSX = 258 +const NT_PRCRED = 14 +const NT_PRFPREG = 2 +const NT_PRFPXREG = 20 +const NT_PRPSINFO = 3 +const NT_PRSTATUS = 1 +const NT_PRXFPREG = 1189489535 +const NT_PRXREG = 4 +const NT_PSINFO = 13 +const NT_PSTATUS = 10 +const NT_RISCV_CSR = 2304 +const NT_RISCV_VECTOR = 2305 +const NT_S390_CTRS = 772 +const NT_S390_GS_BC = 780 +const NT_S390_GS_CB = 779 +const NT_S390_HIGH_GPRS = 768 +const NT_S390_LAST_BREAK = 774 +const NT_S390_PREFIX = 773 +const NT_S390_RI_CB = 781 +const NT_S390_SYSTEM_CALL = 775 +const NT_S390_TDB = 776 +const NT_S390_TIMER = 769 +const NT_S390_TODCMP = 770 +const NT_S390_TODPREG = 771 +const NT_S390_VXRS_HIGH = 778 +const NT_S390_VXRS_LOW = 777 +const NT_SIGINFO = 1397311305 +const NT_TASKSTRUCT = 4 +const NT_UTSNAME = 15 +const NT_VERSION = 1 +const NT_VMCOREDD = 1792 +const NT_X86_XSTATE = 514 +const ODK_EXCEPTIONS = 2 +const ODK_FILL = 5 +const ODK_HWAND = 7 +const ODK_HWOR = 8 +const ODK_HWPATCH = 4 +const ODK_NULL = 0 +const ODK_PAD = 3 +const ODK_REGINFO = 1 +const ODK_TAGS = 6 +const OEX_DISMISS = 524288 +const OEX_FPDBUG = 262144 +const OEX_FPU_DIV0 = 8 +const OEX_FPU_INEX = 1 +const OEX_FPU_INVAL = 16 +const OEX_FPU_MAX = 7936 +const OEX_FPU_MIN = 31 +const OEX_FPU_OFLO = 4 +const OEX_FPU_UFLO = 2 +const OEX_PAGE0 = 65536 +const OEX_PRECISEFP = 262144 +const OEX_SMM = 131072 +const OHWA0_R4KEOP_CHECKED = 1 +const OHWA1_R4KEOP_CLEAN = 2 +const OHW_R4KEOP = 1 +const OHW_R5KCVTL = 8 +const OHW_R5KEOP = 4 +const OHW_R8KPFETCH = 2 +const OPAD_POSTFIX = 2 +const OPAD_PREFIX = 1 +const OPAD_SYMBOL = 4 +const PF_ARM_ABS = 1073741824 +const PF_ARM_PI = 536870912 +const PF_ARM_SB = 268435456 +const PF_HP_CODE = 16777216 +const PF_HP_FAR_SHARED = 2097152 +const PF_HP_LAZYSWAP = 67108864 +const PF_HP_MODIFY = 33554432 +const PF_HP_NEAR_SHARED = 4194304 +const PF_HP_PAGE_SIZE = 1048576 +const PF_HP_SBP = 134217728 +const PF_IA_64_NORECOV = 2147483648 +const PF_MASKOS = 267386880 +const PF_MASKPROC = 4026531840 +const PF_MIPS_LOCAL = 268435456 +const PF_PARISC_SBP = 134217728 +const PF_R = 4 +const PF_W = 2 +const PF_X = 1 +const PN_XNUM = 65535 +const POLL_ERR = 4 +const POLL_HUP = 6 +const POLL_IN = 1 +const POLL_MSG = 3 +const POLL_OUT = 2 +const POLL_PRI = 5 +const PPC64_OPT_LOCALENTRY = 4 +const PPC64_OPT_MULTI_TOC = 2 +const PPC64_OPT_TLS = 1 +const PPC_OPT_TLS = 1 +const PRIO_MAX = 20 +const PRIO_MIN = -20 +const PRIO_PGRP = 1 +const PRIO_PROCESS = 0 +const PRIO_USER = 2 +const PT_ARM_EXIDX = 1879048193 +const PT_DYNAMIC = 2 +const PT_GNU_EH_FRAME = 1685382480 +const PT_GNU_PROPERTY = 1685382483 +const PT_GNU_RELRO = 1685382482 +const PT_GNU_STACK = 1685382481 +const PT_HIOS = 1879048191 +const PT_HIPROC = 2147483647 +const PT_HISUNW = 1879048191 +const PT_HP_CORE_COMM = 1610612740 +const PT_HP_CORE_KERNEL = 1610612739 +const PT_HP_CORE_LOADABLE = 1610612742 +const PT_HP_CORE_MMF = 1610612745 +const PT_HP_CORE_NONE = 1610612737 +const PT_HP_CORE_PROC = 1610612741 +const PT_HP_CORE_SHM = 1610612744 +const PT_HP_CORE_STACK = 1610612743 +const PT_HP_CORE_VERSION = 1610612738 +const PT_HP_FASTBIND = 1610612753 +const PT_HP_HSL_ANNOT = 1610612755 +const PT_HP_OPT_ANNOT = 1610612754 +const PT_HP_PARALLEL = 1610612752 +const PT_HP_STACK = 1610612756 +const PT_HP_TLS = 1610612736 +const PT_IA_64_ARCHEXT = 1879048192 +const PT_IA_64_HP_HSL_ANOT = 1610612755 +const PT_IA_64_HP_OPT_ANOT = 1610612754 +const PT_IA_64_HP_STACK = 1610612756 +const PT_IA_64_UNWIND = 1879048193 +const PT_INTERP = 3 +const PT_LOAD = 1 +const PT_LOOS = 1610612736 +const PT_LOPROC = 1879048192 +const PT_LOSUNW = 1879048186 +const PT_MIPS_ABIFLAGS = 1879048195 +const PT_MIPS_OPTIONS = 1879048194 +const PT_MIPS_REGINFO = 1879048192 +const PT_MIPS_RTPROC = 1879048193 +const PT_NOTE = 4 +const PT_NULL = 0 +const PT_NUM = 8 +const PT_PARISC_ARCHEXT = 1879048192 +const PT_PARISC_UNWIND = 1879048193 +const PT_PHDR = 6 +const PT_SHLIB = 5 +const PT_SUNWBSS = 1879048186 +const PT_SUNWSTACK = 1879048187 +const PT_TLS = 7 +const RAND_MAX = 2147483647 +const RHF_CORD = 4096 +const RHF_DEFAULT_DELAY_LOAD = 512 +const RHF_DELTA_C_PLUS_PLUS = 64 +const RHF_GUARANTEE_INIT = 32 +const RHF_GUARANTEE_START_INIT = 128 +const RHF_NONE = 0 +const RHF_NOTPOT = 2 +const RHF_NO_LIBRARY_REPLACEMENT = 4 +const RHF_NO_MOVE = 8 +const RHF_NO_UNRES_UNDEF = 8192 +const RHF_PIXIE = 256 +const RHF_QUICKSTART = 1 +const RHF_REQUICKSTART = 1024 +const RHF_REQUICKSTARTED = 2048 +const RHF_RLD_ORDER_SAFE = 16384 +const RHF_SGI_ONLY = 16 +const RLIMIT_AS = 9 +const RLIMIT_CORE = 4 +const RLIMIT_CPU = 0 +const RLIMIT_DATA = 2 +const RLIMIT_FSIZE = 1 +const RLIMIT_LOCKS = 10 +const RLIMIT_MEMLOCK = 8 +const RLIMIT_MSGQUEUE = 12 +const RLIMIT_NICE = 13 +const RLIMIT_NLIMITS = 16 +const RLIMIT_NOFILE = 7 +const RLIMIT_NPROC = 6 +const RLIMIT_RSS = 5 +const RLIMIT_RTPRIO = 14 +const RLIMIT_RTTIME = 15 +const RLIMIT_SIGPENDING = 11 +const RLIMIT_STACK = 3 +const RLIM_INFINITY = 18446744073709551615 +const RLIM_NLIMITS = 16 +const RLIM_SAVED_CUR = 18446744073709551615 +const RLIM_SAVED_MAX = 18446744073709551615 +const RUSAGE_CHILDREN = -1 +const RUSAGE_SELF = 0 +const RUSAGE_THREAD = 1 +const R_386_16 = 20 +const R_386_32 = 1 +const R_386_32PLT = 11 +const R_386_8 = 22 +const R_386_COPY = 5 +const R_386_GLOB_DAT = 6 +const R_386_GOT32 = 3 +const R_386_GOT32X = 43 +const R_386_GOTOFF = 9 +const R_386_GOTPC = 10 +const R_386_IRELATIVE = 42 +const R_386_JMP_SLOT = 7 +const R_386_NONE = 0 +const R_386_NUM = 44 +const R_386_PC16 = 21 +const R_386_PC32 = 2 +const R_386_PC8 = 23 +const R_386_PLT32 = 4 +const R_386_RELATIVE = 8 +const R_386_SIZE32 = 38 +const R_386_TLS_DESC = 41 +const R_386_TLS_DESC_CALL = 40 +const R_386_TLS_DTPMOD32 = 35 +const R_386_TLS_DTPOFF32 = 36 +const R_386_TLS_GD = 18 +const R_386_TLS_GD_32 = 24 +const R_386_TLS_GD_CALL = 26 +const R_386_TLS_GD_POP = 27 +const R_386_TLS_GD_PUSH = 25 +const R_386_TLS_GOTDESC = 39 +const R_386_TLS_GOTIE = 16 +const R_386_TLS_IE = 15 +const R_386_TLS_IE_32 = 33 +const R_386_TLS_LDM = 19 +const R_386_TLS_LDM_32 = 28 +const R_386_TLS_LDM_CALL = 30 +const R_386_TLS_LDM_POP = 31 +const R_386_TLS_LDM_PUSH = 29 +const R_386_TLS_LDO_32 = 32 +const R_386_TLS_LE = 17 +const R_386_TLS_LE_32 = 34 +const R_386_TLS_TPOFF = 14 +const R_386_TLS_TPOFF32 = 37 +const R_390_12 = 2 +const R_390_16 = 3 +const R_390_20 = 57 +const R_390_32 = 4 +const R_390_64 = 22 +const R_390_8 = 1 +const R_390_COPY = 9 +const R_390_GLOB_DAT = 10 +const R_390_GOT12 = 6 +const R_390_GOT16 = 15 +const R_390_GOT20 = 58 +const R_390_GOT32 = 7 +const R_390_GOT64 = 24 +const R_390_GOTENT = 26 +const R_390_GOTOFF16 = 27 +const R_390_GOTOFF32 = 13 +const R_390_GOTOFF64 = 28 +const R_390_GOTPC = 14 +const R_390_GOTPCDBL = 21 +const R_390_GOTPLT12 = 29 +const R_390_GOTPLT16 = 30 +const R_390_GOTPLT20 = 59 +const R_390_GOTPLT32 = 31 +const R_390_GOTPLT64 = 32 +const R_390_GOTPLTENT = 33 +const R_390_JMP_SLOT = 11 +const R_390_NONE = 0 +const R_390_NUM = 61 +const R_390_PC16 = 16 +const R_390_PC16DBL = 17 +const R_390_PC32 = 5 +const R_390_PC32DBL = 19 +const R_390_PC64 = 23 +const R_390_PLT16DBL = 18 +const R_390_PLT32 = 8 +const R_390_PLT32DBL = 20 +const R_390_PLT64 = 25 +const R_390_PLTOFF16 = 34 +const R_390_PLTOFF32 = 35 +const R_390_PLTOFF64 = 36 +const R_390_RELATIVE = 12 +const R_390_TLS_DTPMOD = 54 +const R_390_TLS_DTPOFF = 55 +const R_390_TLS_GD32 = 40 +const R_390_TLS_GD64 = 41 +const R_390_TLS_GDCALL = 38 +const R_390_TLS_GOTIE12 = 42 +const R_390_TLS_GOTIE20 = 60 +const R_390_TLS_GOTIE32 = 43 +const R_390_TLS_GOTIE64 = 44 +const R_390_TLS_IE32 = 47 +const R_390_TLS_IE64 = 48 +const R_390_TLS_IEENT = 49 +const R_390_TLS_LDCALL = 39 +const R_390_TLS_LDM32 = 45 +const R_390_TLS_LDM64 = 46 +const R_390_TLS_LDO32 = 52 +const R_390_TLS_LDO64 = 53 +const R_390_TLS_LE32 = 50 +const R_390_TLS_LE64 = 51 +const R_390_TLS_LOAD = 37 +const R_390_TLS_TPOFF = 56 +const R_68K_16 = 2 +const R_68K_32 = 1 +const R_68K_8 = 3 +const R_68K_COPY = 19 +const R_68K_GLOB_DAT = 20 +const R_68K_GOT16 = 8 +const R_68K_GOT16O = 11 +const R_68K_GOT32 = 7 +const R_68K_GOT32O = 10 +const R_68K_GOT8 = 9 +const R_68K_GOT8O = 12 +const R_68K_JMP_SLOT = 21 +const R_68K_NONE = 0 +const R_68K_NUM = 43 +const R_68K_PC16 = 5 +const R_68K_PC32 = 4 +const R_68K_PC8 = 6 +const R_68K_PLT16 = 14 +const R_68K_PLT16O = 17 +const R_68K_PLT32 = 13 +const R_68K_PLT32O = 16 +const R_68K_PLT8 = 15 +const R_68K_PLT8O = 18 +const R_68K_RELATIVE = 22 +const R_68K_TLS_DTPMOD32 = 40 +const R_68K_TLS_DTPREL32 = 41 +const R_68K_TLS_GD16 = 26 +const R_68K_TLS_GD32 = 25 +const R_68K_TLS_GD8 = 27 +const R_68K_TLS_IE16 = 35 +const R_68K_TLS_IE32 = 34 +const R_68K_TLS_IE8 = 36 +const R_68K_TLS_LDM16 = 29 +const R_68K_TLS_LDM32 = 28 +const R_68K_TLS_LDM8 = 30 +const R_68K_TLS_LDO16 = 32 +const R_68K_TLS_LDO32 = 31 +const R_68K_TLS_LDO8 = 33 +const R_68K_TLS_LE16 = 38 +const R_68K_TLS_LE32 = 37 +const R_68K_TLS_LE8 = 39 +const R_68K_TLS_TPREL32 = 42 +const R_AARCH64_ABS16 = 259 +const R_AARCH64_ABS32 = 258 +const R_AARCH64_ABS64 = 257 +const R_AARCH64_ADD_ABS_LO12_NC = 277 +const R_AARCH64_ADR_GOT_PAGE = 311 +const R_AARCH64_ADR_PREL_LO21 = 274 +const R_AARCH64_ADR_PREL_PG_HI21 = 275 +const R_AARCH64_ADR_PREL_PG_HI21_NC = 276 +const R_AARCH64_CALL26 = 283 +const R_AARCH64_CONDBR19 = 280 +const R_AARCH64_COPY = 1024 +const R_AARCH64_GLOB_DAT = 1025 +const R_AARCH64_GOTREL32 = 308 +const R_AARCH64_GOTREL64 = 307 +const R_AARCH64_GOT_LD_PREL19 = 309 +const R_AARCH64_JUMP26 = 282 +const R_AARCH64_JUMP_SLOT = 1026 +const R_AARCH64_LD64_GOTOFF_LO15 = 310 +const R_AARCH64_LD64_GOTPAGE_LO15 = 313 +const R_AARCH64_LD64_GOT_LO12_NC = 312 +const R_AARCH64_LDST128_ABS_LO12_NC = 299 +const R_AARCH64_LDST16_ABS_LO12_NC = 284 +const R_AARCH64_LDST32_ABS_LO12_NC = 285 +const R_AARCH64_LDST64_ABS_LO12_NC = 286 +const R_AARCH64_LDST8_ABS_LO12_NC = 278 +const R_AARCH64_LD_PREL_LO19 = 273 +const R_AARCH64_MOVW_GOTOFF_G0 = 300 +const R_AARCH64_MOVW_GOTOFF_G0_NC = 301 +const R_AARCH64_MOVW_GOTOFF_G1 = 302 +const R_AARCH64_MOVW_GOTOFF_G1_NC = 303 +const R_AARCH64_MOVW_GOTOFF_G2 = 304 +const R_AARCH64_MOVW_GOTOFF_G2_NC = 305 +const R_AARCH64_MOVW_GOTOFF_G3 = 306 +const R_AARCH64_MOVW_PREL_G0 = 287 +const R_AARCH64_MOVW_PREL_G0_NC = 288 +const R_AARCH64_MOVW_PREL_G1 = 289 +const R_AARCH64_MOVW_PREL_G1_NC = 290 +const R_AARCH64_MOVW_PREL_G2 = 291 +const R_AARCH64_MOVW_PREL_G2_NC = 292 +const R_AARCH64_MOVW_PREL_G3 = 293 +const R_AARCH64_MOVW_SABS_G0 = 270 +const R_AARCH64_MOVW_SABS_G1 = 271 +const R_AARCH64_MOVW_SABS_G2 = 272 +const R_AARCH64_MOVW_UABS_G0 = 263 +const R_AARCH64_MOVW_UABS_G0_NC = 264 +const R_AARCH64_MOVW_UABS_G1 = 265 +const R_AARCH64_MOVW_UABS_G1_NC = 266 +const R_AARCH64_MOVW_UABS_G2 = 267 +const R_AARCH64_MOVW_UABS_G2_NC = 268 +const R_AARCH64_MOVW_UABS_G3 = 269 +const R_AARCH64_NONE = 0 +const R_AARCH64_P32_ABS32 = 1 +const R_AARCH64_P32_COPY = 180 +const R_AARCH64_P32_GLOB_DAT = 181 +const R_AARCH64_P32_IRELATIVE = 188 +const R_AARCH64_P32_JUMP_SLOT = 182 +const R_AARCH64_P32_RELATIVE = 183 +const R_AARCH64_P32_TLSDESC = 187 +const R_AARCH64_P32_TLS_DTPMOD = 184 +const R_AARCH64_P32_TLS_DTPREL = 185 +const R_AARCH64_P32_TLS_TPREL = 186 +const R_AARCH64_PREL16 = 262 +const R_AARCH64_PREL32 = 261 +const R_AARCH64_PREL64 = 260 +const R_AARCH64_RELATIVE = 1027 +const R_AARCH64_TLSDESC = 1031 +const R_AARCH64_TLSDESC_ADD = 568 +const R_AARCH64_TLSDESC_ADD_LO12 = 564 +const R_AARCH64_TLSDESC_ADR_PAGE21 = 562 +const R_AARCH64_TLSDESC_ADR_PREL21 = 561 +const R_AARCH64_TLSDESC_CALL = 569 +const R_AARCH64_TLSDESC_LD64_LO12 = 563 +const R_AARCH64_TLSDESC_LDR = 567 +const R_AARCH64_TLSDESC_LD_PREL19 = 560 +const R_AARCH64_TLSDESC_OFF_G0_NC = 566 +const R_AARCH64_TLSDESC_OFF_G1 = 565 +const R_AARCH64_TLSGD_ADD_LO12_NC = 514 +const R_AARCH64_TLSGD_ADR_PAGE21 = 513 +const R_AARCH64_TLSGD_ADR_PREL21 = 512 +const R_AARCH64_TLSGD_MOVW_G0_NC = 516 +const R_AARCH64_TLSGD_MOVW_G1 = 515 +const R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21 = 541 +const R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC = 542 +const R_AARCH64_TLSIE_LD_GOTTPREL_PREL19 = 543 +const R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC = 540 +const R_AARCH64_TLSIE_MOVW_GOTTPREL_G1 = 539 +const R_AARCH64_TLSLD_ADD_DTPREL_HI12 = 528 +const R_AARCH64_TLSLD_ADD_DTPREL_LO12 = 529 +const R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC = 530 +const R_AARCH64_TLSLD_ADD_LO12_NC = 519 +const R_AARCH64_TLSLD_ADR_PAGE21 = 518 +const R_AARCH64_TLSLD_ADR_PREL21 = 517 +const R_AARCH64_TLSLD_LDST128_DTPREL_LO12 = 572 +const R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC = 573 +const R_AARCH64_TLSLD_LDST16_DTPREL_LO12 = 533 +const R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC = 534 +const R_AARCH64_TLSLD_LDST32_DTPREL_LO12 = 535 +const R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC = 536 +const R_AARCH64_TLSLD_LDST64_DTPREL_LO12 = 537 +const R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC = 538 +const R_AARCH64_TLSLD_LDST8_DTPREL_LO12 = 531 +const R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC = 532 +const R_AARCH64_TLSLD_LD_PREL19 = 522 +const R_AARCH64_TLSLD_MOVW_DTPREL_G0 = 526 +const R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC = 527 +const R_AARCH64_TLSLD_MOVW_DTPREL_G1 = 524 +const R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC = 525 +const R_AARCH64_TLSLD_MOVW_DTPREL_G2 = 523 +const R_AARCH64_TLSLD_MOVW_G0_NC = 521 +const R_AARCH64_TLSLD_MOVW_G1 = 520 +const R_AARCH64_TLSLE_ADD_TPREL_HI12 = 549 +const R_AARCH64_TLSLE_ADD_TPREL_LO12 = 550 +const R_AARCH64_TLSLE_ADD_TPREL_LO12_NC = 551 +const R_AARCH64_TLSLE_LDST128_TPREL_LO12 = 570 +const R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC = 571 +const R_AARCH64_TLSLE_LDST16_TPREL_LO12 = 554 +const R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC = 555 +const R_AARCH64_TLSLE_LDST32_TPREL_LO12 = 556 +const R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC = 557 +const R_AARCH64_TLSLE_LDST64_TPREL_LO12 = 558 +const R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC = 559 +const R_AARCH64_TLSLE_LDST8_TPREL_LO12 = 552 +const R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC = 553 +const R_AARCH64_TLSLE_MOVW_TPREL_G0 = 547 +const R_AARCH64_TLSLE_MOVW_TPREL_G0_NC = 548 +const R_AARCH64_TLSLE_MOVW_TPREL_G1 = 545 +const R_AARCH64_TLSLE_MOVW_TPREL_G1_NC = 546 +const R_AARCH64_TLSLE_MOVW_TPREL_G2 = 544 +const R_AARCH64_TLS_DTPMOD = 1028 +const R_AARCH64_TLS_DTPMOD64 = 1028 +const R_AARCH64_TLS_DTPREL = 1029 +const R_AARCH64_TLS_DTPREL64 = 1029 +const R_AARCH64_TLS_TPREL = 1030 +const R_AARCH64_TLS_TPREL64 = 1030 +const R_AARCH64_TSTBR14 = 279 +const R_ALPHA_BRADDR = 7 +const R_ALPHA_COPY = 24 +const R_ALPHA_DTPMOD64 = 31 +const R_ALPHA_DTPREL16 = 36 +const R_ALPHA_DTPREL64 = 33 +const R_ALPHA_DTPRELHI = 34 +const R_ALPHA_DTPRELLO = 35 +const R_ALPHA_GLOB_DAT = 25 +const R_ALPHA_GOTDTPREL = 32 +const R_ALPHA_GOTTPREL = 37 +const R_ALPHA_GPDISP = 6 +const R_ALPHA_GPREL16 = 19 +const R_ALPHA_GPREL32 = 3 +const R_ALPHA_GPRELHIGH = 17 +const R_ALPHA_GPRELLOW = 18 +const R_ALPHA_HINT = 8 +const R_ALPHA_JMP_SLOT = 26 +const R_ALPHA_LITERAL = 4 +const R_ALPHA_LITUSE = 5 +const R_ALPHA_NONE = 0 +const R_ALPHA_NUM = 46 +const R_ALPHA_REFLONG = 1 +const R_ALPHA_REFQUAD = 2 +const R_ALPHA_RELATIVE = 27 +const R_ALPHA_SREL16 = 9 +const R_ALPHA_SREL32 = 10 +const R_ALPHA_SREL64 = 11 +const R_ALPHA_TLSGD = 29 +const R_ALPHA_TLS_GD_HI = 28 +const R_ALPHA_TLS_LDM = 30 +const R_ALPHA_TPREL16 = 41 +const R_ALPHA_TPREL64 = 38 +const R_ALPHA_TPRELHI = 39 +const R_ALPHA_TPRELLO = 40 +const R_ARM_ABS12 = 6 +const R_ARM_ABS16 = 5 +const R_ARM_ABS32 = 2 +const R_ARM_ABS32_NOI = 55 +const R_ARM_ABS8 = 8 +const R_ARM_ALU_PCREL_15_8 = 33 +const R_ARM_ALU_PCREL_23_15 = 34 +const R_ARM_ALU_PCREL_7_0 = 32 +const R_ARM_ALU_PC_G0 = 58 +const R_ARM_ALU_PC_G0_NC = 57 +const R_ARM_ALU_PC_G1 = 60 +const R_ARM_ALU_PC_G1_NC = 59 +const R_ARM_ALU_PC_G2 = 61 +const R_ARM_ALU_SBREL_19_12 = 36 +const R_ARM_ALU_SBREL_27_20 = 37 +const R_ARM_ALU_SB_G0 = 71 +const R_ARM_ALU_SB_G0_NC = 70 +const R_ARM_ALU_SB_G1 = 73 +const R_ARM_ALU_SB_G1_NC = 72 +const R_ARM_ALU_SB_G2 = 74 +const R_ARM_AMP_VCALL9 = 12 +const R_ARM_BASE_ABS = 31 +const R_ARM_CALL = 28 +const R_ARM_COPY = 20 +const R_ARM_GLOB_DAT = 21 +const R_ARM_GNU_VTENTRY = 100 +const R_ARM_GNU_VTINHERIT = 101 +const R_ARM_GOT32 = 26 +const R_ARM_GOTOFF = 24 +const R_ARM_GOTOFF12 = 98 +const R_ARM_GOTPC = 25 +const R_ARM_GOTRELAX = 99 +const R_ARM_GOT_ABS = 95 +const R_ARM_GOT_BREL12 = 97 +const R_ARM_GOT_PREL = 96 +const R_ARM_IRELATIVE = 160 +const R_ARM_JUMP24 = 29 +const R_ARM_JUMP_SLOT = 22 +const R_ARM_LDC_PC_G0 = 67 +const R_ARM_LDC_PC_G1 = 68 +const R_ARM_LDC_PC_G2 = 69 +const R_ARM_LDC_SB_G0 = 81 +const R_ARM_LDC_SB_G1 = 82 +const R_ARM_LDC_SB_G2 = 83 +const R_ARM_LDRS_PC_G0 = 64 +const R_ARM_LDRS_PC_G1 = 65 +const R_ARM_LDRS_PC_G2 = 66 +const R_ARM_LDRS_SB_G0 = 78 +const R_ARM_LDRS_SB_G1 = 79 +const R_ARM_LDRS_SB_G2 = 80 +const R_ARM_LDR_PC_G1 = 62 +const R_ARM_LDR_PC_G2 = 63 +const R_ARM_LDR_SBREL_11_0 = 35 +const R_ARM_LDR_SB_G0 = 75 +const R_ARM_LDR_SB_G1 = 76 +const R_ARM_LDR_SB_G2 = 77 +const R_ARM_ME_TOO = 128 +const R_ARM_MOVT_ABS = 44 +const R_ARM_MOVT_BREL = 85 +const R_ARM_MOVT_PREL = 46 +const R_ARM_MOVW_ABS_NC = 43 +const R_ARM_MOVW_BREL = 86 +const R_ARM_MOVW_BREL_NC = 84 +const R_ARM_MOVW_PREL_NC = 45 +const R_ARM_NONE = 0 +const R_ARM_NUM = 256 +const R_ARM_PC13 = 4 +const R_ARM_PC24 = 1 +const R_ARM_PLT32 = 27 +const R_ARM_PLT32_ABS = 94 +const R_ARM_PREL31 = 42 +const R_ARM_RABS22 = 253 +const R_ARM_RBASE = 255 +const R_ARM_REL32 = 3 +const R_ARM_REL32_NOI = 56 +const R_ARM_RELATIVE = 23 +const R_ARM_RPC24 = 254 +const R_ARM_RREL32 = 252 +const R_ARM_RSBREL32 = 250 +const R_ARM_RXPC25 = 249 +const R_ARM_SBREL31 = 39 +const R_ARM_SBREL32 = 9 +const R_ARM_TARGET1 = 38 +const R_ARM_TARGET2 = 41 +const R_ARM_THM_ABS5 = 7 +const R_ARM_THM_ALU_PREL_11_0 = 53 +const R_ARM_THM_GOT_BREL12 = 131 +const R_ARM_THM_JUMP19 = 51 +const R_ARM_THM_JUMP24 = 30 +const R_ARM_THM_JUMP6 = 52 +const R_ARM_THM_MOVT_ABS = 48 +const R_ARM_THM_MOVT_BREL = 88 +const R_ARM_THM_MOVT_PREL = 50 +const R_ARM_THM_MOVW_ABS_NC = 47 +const R_ARM_THM_MOVW_BREL = 89 +const R_ARM_THM_MOVW_BREL_NC = 87 +const R_ARM_THM_MOVW_PREL_NC = 49 +const R_ARM_THM_PC11 = 102 +const R_ARM_THM_PC12 = 54 +const R_ARM_THM_PC22 = 10 +const R_ARM_THM_PC8 = 11 +const R_ARM_THM_PC9 = 103 +const R_ARM_THM_RPC22 = 251 +const R_ARM_THM_SWI8 = 14 +const R_ARM_THM_TLS_CALL = 93 +const R_ARM_THM_TLS_DESCSEQ = 129 +const R_ARM_THM_TLS_DESCSEQ16 = 129 +const R_ARM_THM_TLS_DESCSEQ32 = 130 +const R_ARM_THM_XPC22 = 16 +const R_ARM_TLS_CALL = 91 +const R_ARM_TLS_DESC = 13 +const R_ARM_TLS_DESCSEQ = 92 +const R_ARM_TLS_DTPMOD32 = 17 +const R_ARM_TLS_DTPOFF32 = 18 +const R_ARM_TLS_GD32 = 104 +const R_ARM_TLS_GOTDESC = 90 +const R_ARM_TLS_IE12GP = 111 +const R_ARM_TLS_IE32 = 107 +const R_ARM_TLS_LDM32 = 105 +const R_ARM_TLS_LDO12 = 109 +const R_ARM_TLS_LDO32 = 106 +const R_ARM_TLS_LE12 = 110 +const R_ARM_TLS_LE32 = 108 +const R_ARM_TLS_TPOFF32 = 19 +const R_ARM_V4BX = 40 +const R_ARM_XPC25 = 15 +const R_BPF_MAP_FD = 1 +const R_BPF_NONE = 0 +const R_CKCORE_ADDR32 = 1 +const R_CKCORE_ADDRGOT = 17 +const R_CKCORE_ADDRGOT_HI16 = 36 +const R_CKCORE_ADDRGOT_LO16 = 37 +const R_CKCORE_ADDRPLT = 18 +const R_CKCORE_ADDRPLT_HI16 = 38 +const R_CKCORE_ADDRPLT_LO16 = 39 +const R_CKCORE_ADDR_HI16 = 24 +const R_CKCORE_ADDR_LO16 = 25 +const R_CKCORE_COPY = 10 +const R_CKCORE_DOFFSET_IMM18 = 44 +const R_CKCORE_DOFFSET_IMM18BY2 = 45 +const R_CKCORE_DOFFSET_IMM18BY4 = 46 +const R_CKCORE_DOFFSET_LO16 = 42 +const R_CKCORE_GLOB_DAT = 11 +const R_CKCORE_GOT12 = 30 +const R_CKCORE_GOT32 = 15 +const R_CKCORE_GOTOFF = 13 +const R_CKCORE_GOTOFF_HI16 = 28 +const R_CKCORE_GOTOFF_LO16 = 29 +const R_CKCORE_GOTPC = 14 +const R_CKCORE_GOTPC_HI16 = 26 +const R_CKCORE_GOTPC_LO16 = 27 +const R_CKCORE_GOT_HI16 = 31 +const R_CKCORE_GOT_IMM18BY4 = 48 +const R_CKCORE_GOT_LO16 = 32 +const R_CKCORE_JUMP_SLOT = 12 +const R_CKCORE_NONE = 0 +const R_CKCORE_PCREL32 = 5 +const R_CKCORE_PCRELIMM11BY2 = 3 +const R_CKCORE_PCRELIMM8BY4 = 2 +const R_CKCORE_PCRELJSR_IMM11BY2 = 6 +const R_CKCORE_PCREL_IMM10BY2 = 22 +const R_CKCORE_PCREL_IMM10BY4 = 23 +const R_CKCORE_PCREL_IMM16BY2 = 20 +const R_CKCORE_PCREL_IMM16BY4 = 21 +const R_CKCORE_PCREL_IMM18BY2 = 43 +const R_CKCORE_PCREL_IMM26BY2 = 19 +const R_CKCORE_PCREL_IMM7BY4 = 50 +const R_CKCORE_PCREL_JSR_IMM26BY2 = 40 +const R_CKCORE_PLT12 = 33 +const R_CKCORE_PLT32 = 16 +const R_CKCORE_PLT_HI16 = 34 +const R_CKCORE_PLT_IMM18BY4 = 49 +const R_CKCORE_PLT_LO16 = 35 +const R_CKCORE_RELATIVE = 9 +const R_CKCORE_TLS_DTPMOD32 = 56 +const R_CKCORE_TLS_DTPOFF32 = 57 +const R_CKCORE_TLS_GD32 = 53 +const R_CKCORE_TLS_IE32 = 52 +const R_CKCORE_TLS_LDM32 = 54 +const R_CKCORE_TLS_LDO32 = 55 +const R_CKCORE_TLS_LE32 = 51 +const R_CKCORE_TLS_TPOFF32 = 58 +const R_CKCORE_TOFFSET_LO16 = 41 +const R_CRIS_16 = 2 +const R_CRIS_16_GOT = 13 +const R_CRIS_16_GOTPLT = 15 +const R_CRIS_16_PCREL = 5 +const R_CRIS_32 = 3 +const R_CRIS_32_GOT = 14 +const R_CRIS_32_GOTPLT = 16 +const R_CRIS_32_GOTREL = 17 +const R_CRIS_32_PCREL = 6 +const R_CRIS_32_PLT_GOTREL = 18 +const R_CRIS_32_PLT_PCREL = 19 +const R_CRIS_8 = 1 +const R_CRIS_8_PCREL = 4 +const R_CRIS_COPY = 9 +const R_CRIS_GLOB_DAT = 10 +const R_CRIS_GNU_VTENTRY = 8 +const R_CRIS_GNU_VTINHERIT = 7 +const R_CRIS_JUMP_SLOT = 11 +const R_CRIS_NONE = 0 +const R_CRIS_NUM = 20 +const R_CRIS_RELATIVE = 12 +const R_IA64_COPY = 132 +const R_IA64_DIR32LSB = 37 +const R_IA64_DIR32MSB = 36 +const R_IA64_DIR64LSB = 39 +const R_IA64_DIR64MSB = 38 +const R_IA64_DTPMOD64LSB = 167 +const R_IA64_DTPMOD64MSB = 166 +const R_IA64_DTPREL14 = 177 +const R_IA64_DTPREL22 = 178 +const R_IA64_DTPREL32LSB = 181 +const R_IA64_DTPREL32MSB = 180 +const R_IA64_DTPREL64I = 179 +const R_IA64_DTPREL64LSB = 183 +const R_IA64_DTPREL64MSB = 182 +const R_IA64_FPTR32LSB = 69 +const R_IA64_FPTR32MSB = 68 +const R_IA64_FPTR64I = 67 +const R_IA64_FPTR64LSB = 71 +const R_IA64_FPTR64MSB = 70 +const R_IA64_GPREL22 = 42 +const R_IA64_GPREL32LSB = 45 +const R_IA64_GPREL32MSB = 44 +const R_IA64_GPREL64I = 43 +const R_IA64_GPREL64LSB = 47 +const R_IA64_GPREL64MSB = 46 +const R_IA64_IMM14 = 33 +const R_IA64_IMM22 = 34 +const R_IA64_IMM64 = 35 +const R_IA64_IPLTLSB = 129 +const R_IA64_IPLTMSB = 128 +const R_IA64_LDXMOV = 135 +const R_IA64_LTOFF22 = 50 +const R_IA64_LTOFF22X = 134 +const R_IA64_LTOFF64I = 51 +const R_IA64_LTOFF_DTPMOD22 = 170 +const R_IA64_LTOFF_DTPREL22 = 186 +const R_IA64_LTOFF_FPTR22 = 82 +const R_IA64_LTOFF_FPTR32LSB = 85 +const R_IA64_LTOFF_FPTR32MSB = 84 +const R_IA64_LTOFF_FPTR64I = 83 +const R_IA64_LTOFF_FPTR64LSB = 87 +const R_IA64_LTOFF_FPTR64MSB = 86 +const R_IA64_LTOFF_TPREL22 = 154 +const R_IA64_LTV32LSB = 117 +const R_IA64_LTV32MSB = 116 +const R_IA64_LTV64LSB = 119 +const R_IA64_LTV64MSB = 118 +const R_IA64_NONE = 0 +const R_IA64_PCREL21B = 73 +const R_IA64_PCREL21BI = 121 +const R_IA64_PCREL21F = 75 +const R_IA64_PCREL21M = 74 +const R_IA64_PCREL22 = 122 +const R_IA64_PCREL32LSB = 77 +const R_IA64_PCREL32MSB = 76 +const R_IA64_PCREL60B = 72 +const R_IA64_PCREL64I = 123 +const R_IA64_PCREL64LSB = 79 +const R_IA64_PCREL64MSB = 78 +const R_IA64_PLTOFF22 = 58 +const R_IA64_PLTOFF64I = 59 +const R_IA64_PLTOFF64LSB = 63 +const R_IA64_PLTOFF64MSB = 62 +const R_IA64_REL32LSB = 109 +const R_IA64_REL32MSB = 108 +const R_IA64_REL64LSB = 111 +const R_IA64_REL64MSB = 110 +const R_IA64_SECREL32LSB = 101 +const R_IA64_SECREL32MSB = 100 +const R_IA64_SECREL64LSB = 103 +const R_IA64_SECREL64MSB = 102 +const R_IA64_SEGREL32LSB = 93 +const R_IA64_SEGREL32MSB = 92 +const R_IA64_SEGREL64LSB = 95 +const R_IA64_SEGREL64MSB = 94 +const R_IA64_SUB = 133 +const R_IA64_TPREL14 = 145 +const R_IA64_TPREL22 = 146 +const R_IA64_TPREL64I = 147 +const R_IA64_TPREL64LSB = 151 +const R_IA64_TPREL64MSB = 150 +const R_LARCH_32 = 1 +const R_LARCH_32_PCREL = 99 +const R_LARCH_64 = 2 +const R_LARCH_ABS64_HI12 = 70 +const R_LARCH_ABS64_LO20 = 69 +const R_LARCH_ABS_HI20 = 67 +const R_LARCH_ABS_LO12 = 68 +const R_LARCH_ADD16 = 48 +const R_LARCH_ADD24 = 49 +const R_LARCH_ADD32 = 50 +const R_LARCH_ADD64 = 51 +const R_LARCH_ADD8 = 47 +const R_LARCH_B16 = 64 +const R_LARCH_B21 = 65 +const R_LARCH_B26 = 66 +const R_LARCH_COPY = 4 +const R_LARCH_GNU_VTENTRY = 58 +const R_LARCH_GNU_VTINHERIT = 57 +const R_LARCH_GOT64_HI12 = 82 +const R_LARCH_GOT64_LO20 = 81 +const R_LARCH_GOT64_PC_HI12 = 78 +const R_LARCH_GOT64_PC_LO20 = 77 +const R_LARCH_GOT_HI20 = 79 +const R_LARCH_GOT_LO12 = 80 +const R_LARCH_GOT_PC_HI20 = 75 +const R_LARCH_GOT_PC_LO12 = 76 +const R_LARCH_IRELATIVE = 12 +const R_LARCH_JUMP_SLOT = 5 +const R_LARCH_MARK_LA = 20 +const R_LARCH_MARK_PCREL = 21 +const R_LARCH_NONE = 0 +const R_LARCH_PCALA64_HI12 = 74 +const R_LARCH_PCALA64_LO20 = 73 +const R_LARCH_PCALA_HI20 = 71 +const R_LARCH_PCALA_LO12 = 72 +const R_LARCH_RELATIVE = 3 +const R_LARCH_RELAX = 100 +const R_LARCH_SOP_ADD = 35 +const R_LARCH_SOP_AND = 36 +const R_LARCH_SOP_ASSERT = 30 +const R_LARCH_SOP_IF_ELSE = 37 +const R_LARCH_SOP_NOT = 31 +const R_LARCH_SOP_POP_32_S_0_10_10_16_S2 = 45 +const R_LARCH_SOP_POP_32_S_0_5_10_16_S2 = 44 +const R_LARCH_SOP_POP_32_S_10_12 = 40 +const R_LARCH_SOP_POP_32_S_10_16 = 41 +const R_LARCH_SOP_POP_32_S_10_16_S2 = 42 +const R_LARCH_SOP_POP_32_S_10_5 = 38 +const R_LARCH_SOP_POP_32_S_5_20 = 43 +const R_LARCH_SOP_POP_32_U = 46 +const R_LARCH_SOP_POP_32_U_10_12 = 39 +const R_LARCH_SOP_PUSH_ABSOLUTE = 23 +const R_LARCH_SOP_PUSH_DUP = 24 +const R_LARCH_SOP_PUSH_GPREL = 25 +const R_LARCH_SOP_PUSH_PCREL = 22 +const R_LARCH_SOP_PUSH_PLT_PCREL = 29 +const R_LARCH_SOP_PUSH_TLS_GD = 28 +const R_LARCH_SOP_PUSH_TLS_GOT = 27 +const R_LARCH_SOP_PUSH_TLS_TPREL = 26 +const R_LARCH_SOP_SL = 33 +const R_LARCH_SOP_SR = 34 +const R_LARCH_SOP_SUB = 32 +const R_LARCH_SUB16 = 53 +const R_LARCH_SUB24 = 54 +const R_LARCH_SUB32 = 55 +const R_LARCH_SUB64 = 56 +const R_LARCH_SUB8 = 52 +const R_LARCH_TLS_DTPMOD32 = 6 +const R_LARCH_TLS_DTPMOD64 = 7 +const R_LARCH_TLS_DTPREL32 = 8 +const R_LARCH_TLS_DTPREL64 = 9 +const R_LARCH_TLS_GD_HI20 = 98 +const R_LARCH_TLS_GD_PC_HI20 = 97 +const R_LARCH_TLS_IE64_HI12 = 94 +const R_LARCH_TLS_IE64_LO20 = 93 +const R_LARCH_TLS_IE64_PC_HI12 = 90 +const R_LARCH_TLS_IE64_PC_LO20 = 89 +const R_LARCH_TLS_IE_HI20 = 91 +const R_LARCH_TLS_IE_LO12 = 92 +const R_LARCH_TLS_IE_PC_HI20 = 87 +const R_LARCH_TLS_IE_PC_LO12 = 88 +const R_LARCH_TLS_LD_HI20 = 96 +const R_LARCH_TLS_LD_PC_HI20 = 95 +const R_LARCH_TLS_LE64_HI12 = 86 +const R_LARCH_TLS_LE64_LO20 = 85 +const R_LARCH_TLS_LE_HI20 = 83 +const R_LARCH_TLS_LE_LO12 = 84 +const R_LARCH_TLS_TPREL32 = 10 +const R_LARCH_TLS_TPREL64 = 11 +const R_M32R_10_PCREL = 4 +const R_M32R_10_PCREL_RELA = 36 +const R_M32R_16 = 1 +const R_M32R_16_RELA = 33 +const R_M32R_18_PCREL = 5 +const R_M32R_18_PCREL_RELA = 37 +const R_M32R_24 = 3 +const R_M32R_24_RELA = 35 +const R_M32R_26_PCREL = 6 +const R_M32R_26_PCREL_RELA = 38 +const R_M32R_26_PLTREL = 49 +const R_M32R_32 = 2 +const R_M32R_32_RELA = 34 +const R_M32R_COPY = 50 +const R_M32R_GLOB_DAT = 51 +const R_M32R_GNU_VTENTRY = 12 +const R_M32R_GNU_VTINHERIT = 11 +const R_M32R_GOT16_HI_SLO = 57 +const R_M32R_GOT16_HI_ULO = 56 +const R_M32R_GOT16_LO = 58 +const R_M32R_GOT24 = 48 +const R_M32R_GOTOFF = 54 +const R_M32R_GOTOFF_HI_SLO = 63 +const R_M32R_GOTOFF_HI_ULO = 62 +const R_M32R_GOTOFF_LO = 64 +const R_M32R_GOTPC24 = 55 +const R_M32R_GOTPC_HI_SLO = 60 +const R_M32R_GOTPC_HI_ULO = 59 +const R_M32R_GOTPC_LO = 61 +const R_M32R_HI16_SLO = 8 +const R_M32R_HI16_SLO_RELA = 40 +const R_M32R_HI16_ULO = 7 +const R_M32R_HI16_ULO_RELA = 39 +const R_M32R_JMP_SLOT = 52 +const R_M32R_LO16 = 9 +const R_M32R_LO16_RELA = 41 +const R_M32R_NONE = 0 +const R_M32R_NUM = 256 +const R_M32R_REL32 = 45 +const R_M32R_RELATIVE = 53 +const R_M32R_RELA_GNU_VTENTRY = 44 +const R_M32R_RELA_GNU_VTINHERIT = 43 +const R_M32R_SDA16 = 10 +const R_M32R_SDA16_RELA = 42 +const R_MICROBLAZE_32 = 1 +const R_MICROBLAZE_32_LO = 6 +const R_MICROBLAZE_32_PCREL = 2 +const R_MICROBLAZE_32_PCREL_LO = 4 +const R_MICROBLAZE_32_SYM_OP_SYM = 10 +const R_MICROBLAZE_64 = 5 +const R_MICROBLAZE_64_NONE = 9 +const R_MICROBLAZE_64_PCREL = 3 +const R_MICROBLAZE_COPY = 21 +const R_MICROBLAZE_GLOB_DAT = 18 +const R_MICROBLAZE_GNU_VTENTRY = 12 +const R_MICROBLAZE_GNU_VTINHERIT = 11 +const R_MICROBLAZE_GOTOFF_32 = 20 +const R_MICROBLAZE_GOTOFF_64 = 19 +const R_MICROBLAZE_GOTPC_64 = 13 +const R_MICROBLAZE_GOT_64 = 14 +const R_MICROBLAZE_JUMP_SLOT = 17 +const R_MICROBLAZE_NONE = 0 +const R_MICROBLAZE_PLT_64 = 15 +const R_MICROBLAZE_REL = 16 +const R_MICROBLAZE_SRO32 = 7 +const R_MICROBLAZE_SRW32 = 8 +const R_MICROBLAZE_TLS = 22 +const R_MICROBLAZE_TLSDTPMOD32 = 25 +const R_MICROBLAZE_TLSDTPREL32 = 26 +const R_MICROBLAZE_TLSDTPREL64 = 27 +const R_MICROBLAZE_TLSGD = 23 +const R_MICROBLAZE_TLSGOTTPREL32 = 28 +const R_MICROBLAZE_TLSLD = 24 +const R_MICROBLAZE_TLSTPREL32 = 29 +const R_MIPS_16 = 1 +const R_MIPS_26 = 4 +const R_MIPS_32 = 2 +const R_MIPS_64 = 18 +const R_MIPS_ADD_IMMEDIATE = 34 +const R_MIPS_CALL16 = 11 +const R_MIPS_CALL_HI16 = 30 +const R_MIPS_CALL_LO16 = 31 +const R_MIPS_COPY = 126 +const R_MIPS_DELETE = 27 +const R_MIPS_GLOB_DAT = 51 +const R_MIPS_GOT16 = 9 +const R_MIPS_GOT_DISP = 19 +const R_MIPS_GOT_HI16 = 22 +const R_MIPS_GOT_LO16 = 23 +const R_MIPS_GOT_OFST = 21 +const R_MIPS_GOT_PAGE = 20 +const R_MIPS_GPREL16 = 7 +const R_MIPS_GPREL32 = 12 +const R_MIPS_HI16 = 5 +const R_MIPS_HIGHER = 28 +const R_MIPS_HIGHEST = 29 +const R_MIPS_INSERT_A = 25 +const R_MIPS_INSERT_B = 26 +const R_MIPS_JALR = 37 +const R_MIPS_JUMP_SLOT = 127 +const R_MIPS_LITERAL = 8 +const R_MIPS_LO16 = 6 +const R_MIPS_NONE = 0 +const R_MIPS_NUM = 128 +const R_MIPS_PC16 = 10 +const R_MIPS_PJUMP = 35 +const R_MIPS_REL16 = 33 +const R_MIPS_REL32 = 3 +const R_MIPS_RELGOT = 36 +const R_MIPS_SCN_DISP = 32 +const R_MIPS_SHIFT5 = 16 +const R_MIPS_SHIFT6 = 17 +const R_MIPS_SUB = 24 +const R_MIPS_TLS_DTPMOD32 = 38 +const R_MIPS_TLS_DTPMOD64 = 40 +const R_MIPS_TLS_DTPREL32 = 39 +const R_MIPS_TLS_DTPREL64 = 41 +const R_MIPS_TLS_DTPREL_HI16 = 44 +const R_MIPS_TLS_DTPREL_LO16 = 45 +const R_MIPS_TLS_GD = 42 +const R_MIPS_TLS_GOTTPREL = 46 +const R_MIPS_TLS_LDM = 43 +const R_MIPS_TLS_TPREL32 = 47 +const R_MIPS_TLS_TPREL64 = 48 +const R_MIPS_TLS_TPREL_HI16 = 49 +const R_MIPS_TLS_TPREL_LO16 = 50 +const R_MN10300_16 = 2 +const R_MN10300_24 = 9 +const R_MN10300_32 = 1 +const R_MN10300_8 = 3 +const R_MN10300_COPY = 20 +const R_MN10300_GLOB_DAT = 21 +const R_MN10300_GNU_VTENTRY = 8 +const R_MN10300_GNU_VTINHERIT = 7 +const R_MN10300_GOT16 = 19 +const R_MN10300_GOT24 = 18 +const R_MN10300_GOT32 = 17 +const R_MN10300_GOTOFF16 = 14 +const R_MN10300_GOTOFF24 = 13 +const R_MN10300_GOTOFF32 = 12 +const R_MN10300_GOTPC16 = 11 +const R_MN10300_GOTPC32 = 10 +const R_MN10300_JMP_SLOT = 22 +const R_MN10300_NONE = 0 +const R_MN10300_NUM = 24 +const R_MN10300_PCREL16 = 5 +const R_MN10300_PCREL32 = 4 +const R_MN10300_PCREL8 = 6 +const R_MN10300_PLT16 = 16 +const R_MN10300_PLT32 = 15 +const R_MN10300_RELATIVE = 23 +const R_NIOS2_ALIGN = 21 +const R_NIOS2_BFD_RELOC_16 = 13 +const R_NIOS2_BFD_RELOC_32 = 12 +const R_NIOS2_BFD_RELOC_8 = 14 +const R_NIOS2_CACHE_OPX = 6 +const R_NIOS2_CALL16 = 23 +const R_NIOS2_CALL26 = 4 +const R_NIOS2_CALL26_NOAT = 41 +const R_NIOS2_CALLR = 20 +const R_NIOS2_CALL_HA = 45 +const R_NIOS2_CALL_LO = 44 +const R_NIOS2_CJMP = 19 +const R_NIOS2_COPY = 36 +const R_NIOS2_GLOB_DAT = 37 +const R_NIOS2_GNU_VTENTRY = 17 +const R_NIOS2_GNU_VTINHERIT = 16 +const R_NIOS2_GOT16 = 22 +const R_NIOS2_GOTOFF = 40 +const R_NIOS2_GOTOFF_HA = 25 +const R_NIOS2_GOTOFF_LO = 24 +const R_NIOS2_GOT_HA = 43 +const R_NIOS2_GOT_LO = 42 +const R_NIOS2_GPREL = 15 +const R_NIOS2_HI16 = 9 +const R_NIOS2_HIADJ16 = 11 +const R_NIOS2_IMM5 = 5 +const R_NIOS2_IMM6 = 7 +const R_NIOS2_IMM8 = 8 +const R_NIOS2_JUMP_SLOT = 38 +const R_NIOS2_LO16 = 10 +const R_NIOS2_NONE = 0 +const R_NIOS2_PCREL16 = 3 +const R_NIOS2_PCREL_HA = 27 +const R_NIOS2_PCREL_LO = 26 +const R_NIOS2_RELATIVE = 39 +const R_NIOS2_S16 = 1 +const R_NIOS2_TLS_DTPMOD = 33 +const R_NIOS2_TLS_DTPREL = 34 +const R_NIOS2_TLS_GD16 = 28 +const R_NIOS2_TLS_IE16 = 31 +const R_NIOS2_TLS_LDM16 = 29 +const R_NIOS2_TLS_LDO16 = 30 +const R_NIOS2_TLS_LE16 = 32 +const R_NIOS2_TLS_TPREL = 35 +const R_NIOS2_U16 = 2 +const R_NIOS2_UJMP = 18 +const R_OR1K_16 = 2 +const R_OR1K_16_PCREL = 10 +const R_OR1K_32 = 1 +const R_OR1K_32_PCREL = 9 +const R_OR1K_8 = 3 +const R_OR1K_8_PCREL = 11 +const R_OR1K_COPY = 18 +const R_OR1K_GLOB_DAT = 19 +const R_OR1K_GNU_VTENTRY = 7 +const R_OR1K_GNU_VTINHERIT = 8 +const R_OR1K_GOT16 = 14 +const R_OR1K_GOTOFF_HI16 = 16 +const R_OR1K_GOTOFF_LO16 = 17 +const R_OR1K_GOTPC_HI16 = 12 +const R_OR1K_GOTPC_LO16 = 13 +const R_OR1K_HI_16_IN_INSN = 5 +const R_OR1K_INSN_REL_26 = 6 +const R_OR1K_JMP_SLOT = 20 +const R_OR1K_LO_16_IN_INSN = 4 +const R_OR1K_NONE = 0 +const R_OR1K_PLT26 = 15 +const R_OR1K_RELATIVE = 21 +const R_OR1K_TLS_DTPMOD = 34 +const R_OR1K_TLS_DTPOFF = 33 +const R_OR1K_TLS_GD_HI16 = 22 +const R_OR1K_TLS_GD_LO16 = 23 +const R_OR1K_TLS_IE_HI16 = 28 +const R_OR1K_TLS_IE_LO16 = 29 +const R_OR1K_TLS_LDM_HI16 = 24 +const R_OR1K_TLS_LDM_LO16 = 25 +const R_OR1K_TLS_LDO_HI16 = 26 +const R_OR1K_TLS_LDO_LO16 = 27 +const R_OR1K_TLS_LE_HI16 = 30 +const R_OR1K_TLS_LE_LO16 = 31 +const R_OR1K_TLS_TPOFF = 32 +const R_PARISC_COPY = 128 +const R_PARISC_DIR14DR = 84 +const R_PARISC_DIR14R = 6 +const R_PARISC_DIR14WR = 83 +const R_PARISC_DIR16DF = 87 +const R_PARISC_DIR16F = 85 +const R_PARISC_DIR16WF = 86 +const R_PARISC_DIR17F = 4 +const R_PARISC_DIR17R = 3 +const R_PARISC_DIR21L = 2 +const R_PARISC_DIR32 = 1 +const R_PARISC_DIR64 = 80 +const R_PARISC_DPREL14R = 22 +const R_PARISC_DPREL21L = 18 +const R_PARISC_EPLT = 130 +const R_PARISC_FPTR64 = 64 +const R_PARISC_GNU_VTENTRY = 232 +const R_PARISC_GNU_VTINHERIT = 233 +const R_PARISC_GPREL14DR = 92 +const R_PARISC_GPREL14R = 30 +const R_PARISC_GPREL14WR = 91 +const R_PARISC_GPREL16DF = 95 +const R_PARISC_GPREL16F = 93 +const R_PARISC_GPREL16WF = 94 +const R_PARISC_GPREL21L = 26 +const R_PARISC_GPREL64 = 88 +const R_PARISC_HIRESERVE = 255 +const R_PARISC_IPLT = 129 +const R_PARISC_LORESERVE = 128 +const R_PARISC_LTOFF14DR = 100 +const R_PARISC_LTOFF14R = 38 +const R_PARISC_LTOFF14WR = 99 +const R_PARISC_LTOFF16DF = 103 +const R_PARISC_LTOFF16F = 101 +const R_PARISC_LTOFF16WF = 102 +const R_PARISC_LTOFF21L = 34 +const R_PARISC_LTOFF64 = 96 +const R_PARISC_LTOFF_FPTR14DR = 124 +const R_PARISC_LTOFF_FPTR14R = 62 +const R_PARISC_LTOFF_FPTR14WR = 123 +const R_PARISC_LTOFF_FPTR16DF = 127 +const R_PARISC_LTOFF_FPTR16F = 125 +const R_PARISC_LTOFF_FPTR16WF = 126 +const R_PARISC_LTOFF_FPTR21L = 58 +const R_PARISC_LTOFF_FPTR32 = 57 +const R_PARISC_LTOFF_FPTR64 = 120 +const R_PARISC_LTOFF_TP14DR = 228 +const R_PARISC_LTOFF_TP14F = 167 +const R_PARISC_LTOFF_TP14R = 166 +const R_PARISC_LTOFF_TP14WR = 227 +const R_PARISC_LTOFF_TP16DF = 231 +const R_PARISC_LTOFF_TP16F = 229 +const R_PARISC_LTOFF_TP16WF = 230 +const R_PARISC_LTOFF_TP21L = 162 +const R_PARISC_LTOFF_TP64 = 224 +const R_PARISC_NONE = 0 +const R_PARISC_PCREL14DR = 76 +const R_PARISC_PCREL14R = 14 +const R_PARISC_PCREL14WR = 75 +const R_PARISC_PCREL16DF = 79 +const R_PARISC_PCREL16F = 77 +const R_PARISC_PCREL16WF = 78 +const R_PARISC_PCREL17F = 12 +const R_PARISC_PCREL17R = 11 +const R_PARISC_PCREL21L = 10 +const R_PARISC_PCREL22F = 74 +const R_PARISC_PCREL32 = 9 +const R_PARISC_PCREL64 = 72 +const R_PARISC_PLABEL14R = 70 +const R_PARISC_PLABEL21L = 66 +const R_PARISC_PLABEL32 = 65 +const R_PARISC_PLTOFF14DR = 116 +const R_PARISC_PLTOFF14R = 54 +const R_PARISC_PLTOFF14WR = 115 +const R_PARISC_PLTOFF16DF = 119 +const R_PARISC_PLTOFF16F = 117 +const R_PARISC_PLTOFF16WF = 118 +const R_PARISC_PLTOFF21L = 50 +const R_PARISC_SECREL32 = 41 +const R_PARISC_SECREL64 = 104 +const R_PARISC_SEGBASE = 48 +const R_PARISC_SEGREL32 = 49 +const R_PARISC_SEGREL64 = 112 +const R_PARISC_TLS_DTPMOD32 = 242 +const R_PARISC_TLS_DTPMOD64 = 243 +const R_PARISC_TLS_DTPOFF32 = 244 +const R_PARISC_TLS_DTPOFF64 = 245 +const R_PARISC_TLS_GD14R = 235 +const R_PARISC_TLS_GD21L = 234 +const R_PARISC_TLS_GDCALL = 236 +const R_PARISC_TLS_IE14R = 166 +const R_PARISC_TLS_IE21L = 162 +const R_PARISC_TLS_LDM14R = 238 +const R_PARISC_TLS_LDM21L = 237 +const R_PARISC_TLS_LDMCALL = 239 +const R_PARISC_TLS_LDO14R = 241 +const R_PARISC_TLS_LDO21L = 240 +const R_PARISC_TLS_LE14R = 158 +const R_PARISC_TLS_LE21L = 154 +const R_PARISC_TLS_TPREL32 = 153 +const R_PARISC_TLS_TPREL64 = 216 +const R_PARISC_TPREL14DR = 220 +const R_PARISC_TPREL14R = 158 +const R_PARISC_TPREL14WR = 219 +const R_PARISC_TPREL16DF = 223 +const R_PARISC_TPREL16F = 221 +const R_PARISC_TPREL16WF = 222 +const R_PARISC_TPREL21L = 154 +const R_PARISC_TPREL32 = 153 +const R_PARISC_TPREL64 = 216 +const R_PPC64_ADDR14 = 7 +const R_PPC64_ADDR14_BRNTAKEN = 9 +const R_PPC64_ADDR14_BRTAKEN = 8 +const R_PPC64_ADDR16 = 3 +const R_PPC64_ADDR16_DS = 56 +const R_PPC64_ADDR16_HA = 6 +const R_PPC64_ADDR16_HI = 5 +const R_PPC64_ADDR16_HIGH = 110 +const R_PPC64_ADDR16_HIGHA = 111 +const R_PPC64_ADDR16_HIGHER = 39 +const R_PPC64_ADDR16_HIGHERA = 40 +const R_PPC64_ADDR16_HIGHEST = 41 +const R_PPC64_ADDR16_HIGHESTA = 42 +const R_PPC64_ADDR16_LO = 4 +const R_PPC64_ADDR16_LO_DS = 57 +const R_PPC64_ADDR24 = 2 +const R_PPC64_ADDR30 = 37 +const R_PPC64_ADDR32 = 1 +const R_PPC64_ADDR64 = 38 +const R_PPC64_COPY = 19 +const R_PPC64_DTPMOD64 = 68 +const R_PPC64_DTPREL16 = 74 +const R_PPC64_DTPREL16_DS = 101 +const R_PPC64_DTPREL16_HA = 77 +const R_PPC64_DTPREL16_HI = 76 +const R_PPC64_DTPREL16_HIGH = 114 +const R_PPC64_DTPREL16_HIGHA = 115 +const R_PPC64_DTPREL16_HIGHER = 103 +const R_PPC64_DTPREL16_HIGHERA = 104 +const R_PPC64_DTPREL16_HIGHEST = 105 +const R_PPC64_DTPREL16_HIGHESTA = 106 +const R_PPC64_DTPREL16_LO = 75 +const R_PPC64_DTPREL16_LO_DS = 102 +const R_PPC64_DTPREL64 = 78 +const R_PPC64_GLOB_DAT = 20 +const R_PPC64_GOT16 = 14 +const R_PPC64_GOT16_DS = 58 +const R_PPC64_GOT16_HA = 17 +const R_PPC64_GOT16_HI = 16 +const R_PPC64_GOT16_LO = 15 +const R_PPC64_GOT16_LO_DS = 59 +const R_PPC64_GOT_DTPREL16_DS = 91 +const R_PPC64_GOT_DTPREL16_HA = 94 +const R_PPC64_GOT_DTPREL16_HI = 93 +const R_PPC64_GOT_DTPREL16_LO_DS = 92 +const R_PPC64_GOT_TLSGD16 = 79 +const R_PPC64_GOT_TLSGD16_HA = 82 +const R_PPC64_GOT_TLSGD16_HI = 81 +const R_PPC64_GOT_TLSGD16_LO = 80 +const R_PPC64_GOT_TLSLD16 = 83 +const R_PPC64_GOT_TLSLD16_HA = 86 +const R_PPC64_GOT_TLSLD16_HI = 85 +const R_PPC64_GOT_TLSLD16_LO = 84 +const R_PPC64_GOT_TPREL16_DS = 87 +const R_PPC64_GOT_TPREL16_HA = 90 +const R_PPC64_GOT_TPREL16_HI = 89 +const R_PPC64_GOT_TPREL16_LO_DS = 88 +const R_PPC64_IRELATIVE = 248 +const R_PPC64_JMP_IREL = 247 +const R_PPC64_JMP_SLOT = 21 +const R_PPC64_NONE = 0 +const R_PPC64_PLT16_HA = 31 +const R_PPC64_PLT16_HI = 30 +const R_PPC64_PLT16_LO = 29 +const R_PPC64_PLT16_LO_DS = 60 +const R_PPC64_PLT32 = 27 +const R_PPC64_PLT64 = 45 +const R_PPC64_PLTGOT16 = 52 +const R_PPC64_PLTGOT16_DS = 65 +const R_PPC64_PLTGOT16_HA = 55 +const R_PPC64_PLTGOT16_HI = 54 +const R_PPC64_PLTGOT16_LO = 53 +const R_PPC64_PLTGOT16_LO_DS = 66 +const R_PPC64_PLTREL32 = 28 +const R_PPC64_PLTREL64 = 46 +const R_PPC64_REL14 = 11 +const R_PPC64_REL14_BRNTAKEN = 13 +const R_PPC64_REL14_BRTAKEN = 12 +const R_PPC64_REL16 = 249 +const R_PPC64_REL16_HA = 252 +const R_PPC64_REL16_HI = 251 +const R_PPC64_REL16_LO = 250 +const R_PPC64_REL24 = 10 +const R_PPC64_REL32 = 26 +const R_PPC64_REL64 = 44 +const R_PPC64_RELATIVE = 22 +const R_PPC64_SECTOFF = 33 +const R_PPC64_SECTOFF_DS = 61 +const R_PPC64_SECTOFF_HA = 36 +const R_PPC64_SECTOFF_HI = 35 +const R_PPC64_SECTOFF_LO = 34 +const R_PPC64_SECTOFF_LO_DS = 62 +const R_PPC64_TLS = 67 +const R_PPC64_TLSGD = 107 +const R_PPC64_TLSLD = 108 +const R_PPC64_TOC = 51 +const R_PPC64_TOC16 = 47 +const R_PPC64_TOC16_DS = 63 +const R_PPC64_TOC16_HA = 50 +const R_PPC64_TOC16_HI = 49 +const R_PPC64_TOC16_LO = 48 +const R_PPC64_TOC16_LO_DS = 64 +const R_PPC64_TOCSAVE = 109 +const R_PPC64_TPREL16 = 69 +const R_PPC64_TPREL16_DS = 95 +const R_PPC64_TPREL16_HA = 72 +const R_PPC64_TPREL16_HI = 71 +const R_PPC64_TPREL16_HIGH = 112 +const R_PPC64_TPREL16_HIGHA = 113 +const R_PPC64_TPREL16_HIGHER = 97 +const R_PPC64_TPREL16_HIGHERA = 98 +const R_PPC64_TPREL16_HIGHEST = 99 +const R_PPC64_TPREL16_HIGHESTA = 100 +const R_PPC64_TPREL16_LO = 70 +const R_PPC64_TPREL16_LO_DS = 96 +const R_PPC64_TPREL64 = 73 +const R_PPC64_UADDR16 = 25 +const R_PPC64_UADDR32 = 24 +const R_PPC64_UADDR64 = 43 +const R_PPC_ADDR14 = 7 +const R_PPC_ADDR14_BRNTAKEN = 9 +const R_PPC_ADDR14_BRTAKEN = 8 +const R_PPC_ADDR16 = 3 +const R_PPC_ADDR16_HA = 6 +const R_PPC_ADDR16_HI = 5 +const R_PPC_ADDR16_LO = 4 +const R_PPC_ADDR24 = 2 +const R_PPC_ADDR32 = 1 +const R_PPC_COPY = 19 +const R_PPC_DIAB_RELSDA_HA = 185 +const R_PPC_DIAB_RELSDA_HI = 184 +const R_PPC_DIAB_RELSDA_LO = 183 +const R_PPC_DIAB_SDA21_HA = 182 +const R_PPC_DIAB_SDA21_HI = 181 +const R_PPC_DIAB_SDA21_LO = 180 +const R_PPC_DTPMOD32 = 68 +const R_PPC_DTPREL16 = 74 +const R_PPC_DTPREL16_HA = 77 +const R_PPC_DTPREL16_HI = 76 +const R_PPC_DTPREL16_LO = 75 +const R_PPC_DTPREL32 = 78 +const R_PPC_EMB_BIT_FLD = 115 +const R_PPC_EMB_MRKREF = 110 +const R_PPC_EMB_NADDR16 = 102 +const R_PPC_EMB_NADDR16_HA = 105 +const R_PPC_EMB_NADDR16_HI = 104 +const R_PPC_EMB_NADDR16_LO = 103 +const R_PPC_EMB_NADDR32 = 101 +const R_PPC_EMB_RELSDA = 116 +const R_PPC_EMB_RELSEC16 = 111 +const R_PPC_EMB_RELST_HA = 114 +const R_PPC_EMB_RELST_HI = 113 +const R_PPC_EMB_RELST_LO = 112 +const R_PPC_EMB_SDA21 = 109 +const R_PPC_EMB_SDA2I16 = 107 +const R_PPC_EMB_SDA2REL = 108 +const R_PPC_EMB_SDAI16 = 106 +const R_PPC_GLOB_DAT = 20 +const R_PPC_GOT16 = 14 +const R_PPC_GOT16_HA = 17 +const R_PPC_GOT16_HI = 16 +const R_PPC_GOT16_LO = 15 +const R_PPC_GOT_DTPREL16 = 91 +const R_PPC_GOT_DTPREL16_HA = 94 +const R_PPC_GOT_DTPREL16_HI = 93 +const R_PPC_GOT_DTPREL16_LO = 92 +const R_PPC_GOT_TLSGD16 = 79 +const R_PPC_GOT_TLSGD16_HA = 82 +const R_PPC_GOT_TLSGD16_HI = 81 +const R_PPC_GOT_TLSGD16_LO = 80 +const R_PPC_GOT_TLSLD16 = 83 +const R_PPC_GOT_TLSLD16_HA = 86 +const R_PPC_GOT_TLSLD16_HI = 85 +const R_PPC_GOT_TLSLD16_LO = 84 +const R_PPC_GOT_TPREL16 = 87 +const R_PPC_GOT_TPREL16_HA = 90 +const R_PPC_GOT_TPREL16_HI = 89 +const R_PPC_GOT_TPREL16_LO = 88 +const R_PPC_IRELATIVE = 248 +const R_PPC_JMP_SLOT = 21 +const R_PPC_LOCAL24PC = 23 +const R_PPC_NONE = 0 +const R_PPC_PLT16_HA = 31 +const R_PPC_PLT16_HI = 30 +const R_PPC_PLT16_LO = 29 +const R_PPC_PLT32 = 27 +const R_PPC_PLTREL24 = 18 +const R_PPC_PLTREL32 = 28 +const R_PPC_REL14 = 11 +const R_PPC_REL14_BRNTAKEN = 13 +const R_PPC_REL14_BRTAKEN = 12 +const R_PPC_REL16 = 249 +const R_PPC_REL16_HA = 252 +const R_PPC_REL16_HI = 251 +const R_PPC_REL16_LO = 250 +const R_PPC_REL24 = 10 +const R_PPC_REL32 = 26 +const R_PPC_RELATIVE = 22 +const R_PPC_SDAREL16 = 32 +const R_PPC_SECTOFF = 33 +const R_PPC_SECTOFF_HA = 36 +const R_PPC_SECTOFF_HI = 35 +const R_PPC_SECTOFF_LO = 34 +const R_PPC_TLS = 67 +const R_PPC_TLSGD = 95 +const R_PPC_TLSLD = 96 +const R_PPC_TOC16 = 255 +const R_PPC_TPREL16 = 69 +const R_PPC_TPREL16_HA = 72 +const R_PPC_TPREL16_HI = 71 +const R_PPC_TPREL16_LO = 70 +const R_PPC_TPREL32 = 73 +const R_PPC_UADDR16 = 25 +const R_PPC_UADDR32 = 24 +const R_RISCV_32 = 1 +const R_RISCV_32_PCREL = 57 +const R_RISCV_64 = 2 +const R_RISCV_ADD16 = 34 +const R_RISCV_ADD32 = 35 +const R_RISCV_ADD64 = 36 +const R_RISCV_ADD8 = 33 +const R_RISCV_ALIGN = 43 +const R_RISCV_BRANCH = 16 +const R_RISCV_CALL = 18 +const R_RISCV_CALL_PLT = 19 +const R_RISCV_COPY = 4 +const R_RISCV_GOT32_PCREL = 41 +const R_RISCV_GOT_HI20 = 20 +const R_RISCV_HI20 = 26 +const R_RISCV_IRELATIVE = 58 +const R_RISCV_JAL = 17 +const R_RISCV_JUMP_SLOT = 5 +const R_RISCV_LO12_I = 27 +const R_RISCV_LO12_S = 28 +const R_RISCV_NONE = 0 +const R_RISCV_PCREL_HI20 = 23 +const R_RISCV_PCREL_LO12_I = 24 +const R_RISCV_PCREL_LO12_S = 25 +const R_RISCV_PLT32 = 59 +const R_RISCV_RELATIVE = 3 +const R_RISCV_RELAX = 51 +const R_RISCV_RVC_BRANCH = 44 +const R_RISCV_RVC_JUMP = 45 +const R_RISCV_RVC_LUI = 46 +const R_RISCV_SET16 = 55 +const R_RISCV_SET32 = 56 +const R_RISCV_SET6 = 53 +const R_RISCV_SET8 = 54 +const R_RISCV_SET_ULEB128 = 60 +const R_RISCV_SUB16 = 38 +const R_RISCV_SUB32 = 39 +const R_RISCV_SUB6 = 52 +const R_RISCV_SUB64 = 40 +const R_RISCV_SUB8 = 37 +const R_RISCV_SUB_ULEB128 = 61 +const R_RISCV_TLSDESC = 12 +const R_RISCV_TLSDESC_ADD_LO12 = 64 +const R_RISCV_TLSDESC_CALL = 65 +const R_RISCV_TLSDESC_HI20 = 62 +const R_RISCV_TLSDESC_LOAD_LO12 = 63 +const R_RISCV_TLS_DTPMOD32 = 6 +const R_RISCV_TLS_DTPMOD64 = 7 +const R_RISCV_TLS_DTPREL32 = 8 +const R_RISCV_TLS_DTPREL64 = 9 +const R_RISCV_TLS_GD_HI20 = 22 +const R_RISCV_TLS_GOT_HI20 = 21 +const R_RISCV_TLS_TPREL32 = 10 +const R_RISCV_TLS_TPREL64 = 11 +const R_RISCV_TPREL_ADD = 32 +const R_RISCV_TPREL_HI20 = 29 +const R_RISCV_TPREL_LO12_I = 30 +const R_RISCV_TPREL_LO12_S = 31 +const R_SH_ALIGN = 29 +const R_SH_CODE = 30 +const R_SH_COPY = 162 +const R_SH_COUNT = 28 +const R_SH_DATA = 31 +const R_SH_DIR32 = 1 +const R_SH_DIR8BP = 7 +const R_SH_DIR8L = 9 +const R_SH_DIR8W = 8 +const R_SH_DIR8WPL = 5 +const R_SH_DIR8WPN = 3 +const R_SH_DIR8WPZ = 6 +const R_SH_FUNCDESC = 207 +const R_SH_FUNCDESC_VALUE = 208 +const R_SH_GLOB_DAT = 163 +const R_SH_GNU_VTENTRY = 35 +const R_SH_GNU_VTINHERIT = 34 +const R_SH_GOT20 = 201 +const R_SH_GOT32 = 160 +const R_SH_GOTFUNCDESC = 203 +const R_SH_GOTFUNCDEST20 = 204 +const R_SH_GOTOFF = 166 +const R_SH_GOTOFF20 = 202 +const R_SH_GOTOFFFUNCDESC = 205 +const R_SH_GOTOFFFUNCDEST20 = 206 +const R_SH_GOTPC = 167 +const R_SH_IND12W = 4 +const R_SH_JMP_SLOT = 164 +const R_SH_LABEL = 32 +const R_SH_NONE = 0 +const R_SH_NUM = 256 +const R_SH_PLT32 = 161 +const R_SH_REL32 = 2 +const R_SH_RELATIVE = 165 +const R_SH_SWITCH16 = 25 +const R_SH_SWITCH32 = 26 +const R_SH_SWITCH8 = 33 +const R_SH_TLS_DTPMOD32 = 149 +const R_SH_TLS_DTPOFF32 = 150 +const R_SH_TLS_GD_32 = 144 +const R_SH_TLS_IE_32 = 147 +const R_SH_TLS_LDO_32 = 146 +const R_SH_TLS_LD_32 = 145 +const R_SH_TLS_LE_32 = 148 +const R_SH_TLS_TPOFF32 = 151 +const R_SH_USES = 27 +const R_SPARC_10 = 30 +const R_SPARC_11 = 31 +const R_SPARC_13 = 11 +const R_SPARC_16 = 2 +const R_SPARC_22 = 10 +const R_SPARC_32 = 3 +const R_SPARC_5 = 44 +const R_SPARC_6 = 45 +const R_SPARC_64 = 32 +const R_SPARC_7 = 43 +const R_SPARC_8 = 1 +const R_SPARC_COPY = 19 +const R_SPARC_DISP16 = 5 +const R_SPARC_DISP32 = 6 +const R_SPARC_DISP64 = 46 +const R_SPARC_DISP8 = 4 +const R_SPARC_GLOB_DAT = 20 +const R_SPARC_GLOB_JMP = 42 +const R_SPARC_GNU_VTENTRY = 251 +const R_SPARC_GNU_VTINHERIT = 250 +const R_SPARC_GOT10 = 13 +const R_SPARC_GOT13 = 14 +const R_SPARC_GOT22 = 15 +const R_SPARC_GOTDATA_HIX22 = 80 +const R_SPARC_GOTDATA_LOX10 = 81 +const R_SPARC_GOTDATA_OP = 84 +const R_SPARC_GOTDATA_OP_HIX22 = 82 +const R_SPARC_GOTDATA_OP_LOX10 = 83 +const R_SPARC_H34 = 85 +const R_SPARC_H44 = 50 +const R_SPARC_HH22 = 34 +const R_SPARC_HI22 = 9 +const R_SPARC_HIPLT22 = 25 +const R_SPARC_HIX22 = 48 +const R_SPARC_HM10 = 35 +const R_SPARC_JMP_SLOT = 21 +const R_SPARC_L44 = 52 +const R_SPARC_LM22 = 36 +const R_SPARC_LO10 = 12 +const R_SPARC_LOPLT10 = 26 +const R_SPARC_LOX10 = 49 +const R_SPARC_M44 = 51 +const R_SPARC_NONE = 0 +const R_SPARC_NUM = 253 +const R_SPARC_OLO10 = 33 +const R_SPARC_PC10 = 16 +const R_SPARC_PC22 = 17 +const R_SPARC_PCPLT10 = 29 +const R_SPARC_PCPLT22 = 28 +const R_SPARC_PCPLT32 = 27 +const R_SPARC_PC_HH22 = 37 +const R_SPARC_PC_HM10 = 38 +const R_SPARC_PC_LM22 = 39 +const R_SPARC_PLT32 = 24 +const R_SPARC_PLT64 = 47 +const R_SPARC_REGISTER = 53 +const R_SPARC_RELATIVE = 22 +const R_SPARC_REV32 = 252 +const R_SPARC_SIZE32 = 86 +const R_SPARC_SIZE64 = 87 +const R_SPARC_TLS_DTPMOD32 = 74 +const R_SPARC_TLS_DTPMOD64 = 75 +const R_SPARC_TLS_DTPOFF32 = 76 +const R_SPARC_TLS_DTPOFF64 = 77 +const R_SPARC_TLS_GD_ADD = 58 +const R_SPARC_TLS_GD_CALL = 59 +const R_SPARC_TLS_GD_HI22 = 56 +const R_SPARC_TLS_GD_LO10 = 57 +const R_SPARC_TLS_IE_ADD = 71 +const R_SPARC_TLS_IE_HI22 = 67 +const R_SPARC_TLS_IE_LD = 69 +const R_SPARC_TLS_IE_LDX = 70 +const R_SPARC_TLS_IE_LO10 = 68 +const R_SPARC_TLS_LDM_ADD = 62 +const R_SPARC_TLS_LDM_CALL = 63 +const R_SPARC_TLS_LDM_HI22 = 60 +const R_SPARC_TLS_LDM_LO10 = 61 +const R_SPARC_TLS_LDO_ADD = 66 +const R_SPARC_TLS_LDO_HIX22 = 64 +const R_SPARC_TLS_LDO_LOX10 = 65 +const R_SPARC_TLS_LE_HIX22 = 72 +const R_SPARC_TLS_LE_LOX10 = 73 +const R_SPARC_TLS_TPOFF32 = 78 +const R_SPARC_TLS_TPOFF64 = 79 +const R_SPARC_UA16 = 55 +const R_SPARC_UA32 = 23 +const R_SPARC_UA64 = 54 +const R_SPARC_WDISP16 = 40 +const R_SPARC_WDISP19 = 41 +const R_SPARC_WDISP22 = 8 +const R_SPARC_WDISP30 = 7 +const R_SPARC_WPLT30 = 18 +const R_X86_64_16 = 12 +const R_X86_64_32 = 10 +const R_X86_64_32S = 11 +const R_X86_64_64 = 1 +const R_X86_64_8 = 14 +const R_X86_64_COPY = 5 +const R_X86_64_DTPMOD64 = 16 +const R_X86_64_DTPOFF32 = 21 +const R_X86_64_DTPOFF64 = 17 +const R_X86_64_GLOB_DAT = 6 +const R_X86_64_GOT32 = 3 +const R_X86_64_GOT64 = 27 +const R_X86_64_GOTOFF64 = 25 +const R_X86_64_GOTPC32 = 26 +const R_X86_64_GOTPC32_TLSDESC = 34 +const R_X86_64_GOTPC64 = 29 +const R_X86_64_GOTPCREL = 9 +const R_X86_64_GOTPCREL64 = 28 +const R_X86_64_GOTPCRELX = 41 +const R_X86_64_GOTPLT64 = 30 +const R_X86_64_GOTTPOFF = 22 +const R_X86_64_IRELATIVE = 37 +const R_X86_64_JUMP_SLOT = 7 +const R_X86_64_NONE = 0 +const R_X86_64_NUM = 43 +const R_X86_64_PC16 = 13 +const R_X86_64_PC32 = 2 +const R_X86_64_PC64 = 24 +const R_X86_64_PC8 = 15 +const R_X86_64_PLT32 = 4 +const R_X86_64_PLTOFF64 = 31 +const R_X86_64_RELATIVE = 8 +const R_X86_64_RELATIVE64 = 38 +const R_X86_64_REX_GOTPCRELX = 42 +const R_X86_64_SIZE32 = 32 +const R_X86_64_SIZE64 = 33 +const R_X86_64_TLSDESC = 36 +const R_X86_64_TLSDESC_CALL = 35 +const R_X86_64_TLSGD = 19 +const R_X86_64_TLSLD = 20 +const R_X86_64_TPOFF32 = 23 +const R_X86_64_TPOFF64 = 18 +const SA_EXPOSE_TAGBITS = 2048 +const SA_NOCLDSTOP = 1 +const SA_NOCLDWAIT = 2 +const SA_NODEFER = 1073741824 +const SA_ONSTACK = 134217728 +const SA_RESETHAND = 2147483648 +const SA_RESTART = 268435456 +const SA_RESTORER = 67108864 +const SA_SIGINFO = 4 +const SA_UNSUPPORTED = 1024 +const SCM_TIMESTAMPING_OLD = 37 +const SCM_TIMESTAMPNS_OLD = 35 +const SCM_TIMESTAMP_OLD = 29 +const SEGV_ACCERR = 2 +const SEGV_BNDERR = 3 +const SEGV_MAPERR = 1 +const SEGV_MTEAERR = 8 +const SEGV_MTESERR = 9 +const SEGV_PKUERR = 4 +const SELFMAG = 4 +const SHF_ALLOC = 2 +const SHF_ALPHA_GPREL = 268435456 +const SHF_ARM_COMDEF = 2147483648 +const SHF_ARM_ENTRYSECT = 268435456 +const SHF_COMPRESSED = 2048 +const SHF_EXCLUDE = 2147483648 +const SHF_EXECINSTR = 4 +const SHF_GROUP = 512 +const SHF_IA_64_NORECOV = 536870912 +const SHF_IA_64_SHORT = 268435456 +const SHF_INFO_LINK = 64 +const SHF_LINK_ORDER = 128 +const SHF_MASKOS = 267386880 +const SHF_MASKPROC = 4026531840 +const SHF_MERGE = 16 +const SHF_MIPS_ADDR = 1073741824 +const SHF_MIPS_GPREL = 268435456 +const SHF_MIPS_LOCAL = 67108864 +const SHF_MIPS_MERGE = 536870912 +const SHF_MIPS_NAMES = 33554432 +const SHF_MIPS_NODUPE = 16777216 +const SHF_MIPS_NOSTRIP = 134217728 +const SHF_MIPS_STRINGS = 2147483648 +const SHF_ORDERED = 1073741824 +const SHF_OS_NONCONFORMING = 256 +const SHF_PARISC_HUGE = 1073741824 +const SHF_PARISC_SBP = 2147483648 +const SHF_PARISC_SHORT = 536870912 +const SHF_STRINGS = 32 +const SHF_TLS = 1024 +const SHF_WRITE = 1 +const SHN_ABS = 65521 +const SHN_AFTER = 65281 +const SHN_BEFORE = 65280 +const SHN_COMMON = 65522 +const SHN_HIOS = 65343 +const SHN_HIPROC = 65311 +const SHN_HIRESERVE = 65535 +const SHN_LOOS = 65312 +const SHN_LOPROC = 65280 +const SHN_LORESERVE = 65280 +const SHN_MIPS_ACOMMON = 65280 +const SHN_MIPS_DATA = 65282 +const SHN_MIPS_SCOMMON = 65283 +const SHN_MIPS_SUNDEFINED = 65284 +const SHN_MIPS_TEXT = 65281 +const SHN_PARISC_ANSI_COMMON = 65280 +const SHN_PARISC_HUGE_COMMON = 65281 +const SHN_UNDEF = 0 +const SHN_XINDEX = 65535 +const SHT_ALPHA_DEBUG = 1879048193 +const SHT_ALPHA_REGINFO = 1879048194 +const SHT_ARM_ATTRIBUTES = 1879048195 +const SHT_ARM_EXIDX = 1879048193 +const SHT_ARM_PREEMPTMAP = 1879048194 +const SHT_CHECKSUM = 1879048184 +const SHT_DYNAMIC = 6 +const SHT_DYNSYM = 11 +const SHT_FINI_ARRAY = 15 +const SHT_GNU_ATTRIBUTES = 1879048181 +const SHT_GNU_HASH = 1879048182 +const SHT_GNU_LIBLIST = 1879048183 +const SHT_GNU_verdef = 1879048189 +const SHT_GNU_verneed = 1879048190 +const SHT_GNU_versym = 1879048191 +const SHT_GROUP = 17 +const SHT_HASH = 5 +const SHT_HIOS = 1879048191 +const SHT_HIPROC = 2147483647 +const SHT_HISUNW = 1879048191 +const SHT_HIUSER = 2415919103 +const SHT_IA_64_EXT = 1879048192 +const SHT_IA_64_UNWIND = 1879048193 +const SHT_INIT_ARRAY = 14 +const SHT_LOOS = 1610612736 +const SHT_LOPROC = 1879048192 +const SHT_LOSUNW = 1879048186 +const SHT_LOUSER = 2147483648 +const SHT_MIPS_AUXSYM = 1879048214 +const SHT_MIPS_CONFLICT = 1879048194 +const SHT_MIPS_CONTENT = 1879048204 +const SHT_MIPS_DEBUG = 1879048197 +const SHT_MIPS_DELTACLASS = 1879048221 +const SHT_MIPS_DELTADECL = 1879048223 +const SHT_MIPS_DELTAINST = 1879048220 +const SHT_MIPS_DELTASYM = 1879048219 +const SHT_MIPS_DENSE = 1879048211 +const SHT_MIPS_DWARF = 1879048222 +const SHT_MIPS_EH_REGION = 1879048231 +const SHT_MIPS_EVENTS = 1879048225 +const SHT_MIPS_EXTSYM = 1879048210 +const SHT_MIPS_FDESC = 1879048209 +const SHT_MIPS_GPTAB = 1879048195 +const SHT_MIPS_IFACE = 1879048203 +const SHT_MIPS_LIBLIST = 1879048192 +const SHT_MIPS_LINE = 1879048217 +const SHT_MIPS_LOCSTR = 1879048216 +const SHT_MIPS_LOCSYM = 1879048213 +const SHT_MIPS_MSYM = 1879048193 +const SHT_MIPS_OPTIONS = 1879048205 +const SHT_MIPS_OPTSYM = 1879048215 +const SHT_MIPS_PACKAGE = 1879048199 +const SHT_MIPS_PACKSYM = 1879048200 +const SHT_MIPS_PDESC = 1879048212 +const SHT_MIPS_PDR_EXCEPTION = 1879048233 +const SHT_MIPS_PIXIE = 1879048227 +const SHT_MIPS_REGINFO = 1879048198 +const SHT_MIPS_RELD = 1879048201 +const SHT_MIPS_RFDESC = 1879048218 +const SHT_MIPS_SHDR = 1879048208 +const SHT_MIPS_SYMBOL_LIB = 1879048224 +const SHT_MIPS_TRANSLATE = 1879048226 +const SHT_MIPS_UCODE = 1879048196 +const SHT_MIPS_WHIRL = 1879048230 +const SHT_MIPS_XLATE = 1879048228 +const SHT_MIPS_XLATE_DEBUG = 1879048229 +const SHT_MIPS_XLATE_OLD = 1879048232 +const SHT_NOBITS = 8 +const SHT_NOTE = 7 +const SHT_NULL = 0 +const SHT_NUM = 20 +const SHT_PARISC_DOC = 1879048194 +const SHT_PARISC_EXT = 1879048192 +const SHT_PARISC_UNWIND = 1879048193 +const SHT_PREINIT_ARRAY = 16 +const SHT_PROGBITS = 1 +const SHT_REL = 9 +const SHT_RELA = 4 +const SHT_RELR = 19 +const SHT_SHLIB = 10 +const SHT_STRTAB = 3 +const SHT_SUNW_COMDAT = 1879048187 +const SHT_SUNW_move = 1879048186 +const SHT_SUNW_syminfo = 1879048188 +const SHT_SYMTAB = 2 +const SHT_SYMTAB_SHNDX = 18 +const SIGABRT = 6 +const SIGALRM = 14 +const SIGBUS = 7 +const SIGCHLD = 17 +const SIGCONT = 18 +const SIGEV_NONE = 1 +const SIGEV_SIGNAL = 0 +const SIGEV_THREAD = 2 +const SIGEV_THREAD_ID = 4 +const SIGFPE = 8 +const SIGHUP = 1 +const SIGILL = 4 +const SIGINT = 2 +const SIGIO = 29 +const SIGIOT = 6 +const SIGKILL = 9 +const SIGPIPE = 13 +const SIGPOLL = 29 +const SIGPROF = 27 +const SIGPWR = 30 +const SIGQUIT = 3 +const SIGRTMAX = 0 +const SIGRTMIN = 0 +const SIGSEGV = 11 +const SIGSTKFLT = 16 +const SIGSTKSZ = 8192 +const SIGSTOP = 19 +const SIGSYS = 31 +const SIGTERM = 15 +const SIGTRAP = 5 +const SIGTSTP = 20 +const SIGTTIN = 21 +const SIGTTOU = 22 +const SIGUNUSED = 31 +const SIGURG = 23 +const SIGUSR1 = 10 +const SIGUSR2 = 12 +const SIGVTALRM = 26 +const SIGWINCH = 28 +const SIGXCPU = 24 +const SIGXFSZ = 25 +const SIG_BLOCK = 0 +const SIG_SETMASK = 2 +const SIG_UNBLOCK = 1 +const SIOCGSTAMPNS_OLD = 35079 +const SIOCGSTAMP_OLD = 35078 +const SI_ASYNCIO = -4 +const SI_ASYNCNL = -60 +const SI_KERNEL = 128 +const SI_MESGQ = -3 +const SI_QUEUE = -1 +const SI_SIGIO = -5 +const SI_TIMER = -2 +const SI_TKILL = -6 +const SI_USER = 0 +const SO_RCVTIMEO_OLD = 20 +const SO_SNDTIMEO_OLD = 21 +const SO_TIMESTAMPING_OLD = 37 +const SO_TIMESTAMPNS_OLD = 35 +const SO_TIMESTAMP_OLD = 29 +const SS_AUTODISARM = 2147483648 +const SS_DISABLE = 2 +const SS_FLAG_BITS = 2147483648 +const SS_ONSTACK = 1 +const STB_GLOBAL = 1 +const STB_GNU_UNIQUE = 10 +const STB_HIOS = 12 +const STB_HIPROC = 15 +const STB_LOCAL = 0 +const STB_LOOS = 10 +const STB_LOPROC = 13 +const STB_MIPS_SPLIT_COMMON = 13 +const STB_NUM = 3 +const STB_WEAK = 2 +const STN_UNDEF = 0 +const STO_ALPHA_NOPV = 128 +const STO_ALPHA_STD_GPLOAD = 136 +const STO_MIPS_DEFAULT = 0 +const STO_MIPS_HIDDEN = 2 +const STO_MIPS_INTERNAL = 1 +const STO_MIPS_PLT = 8 +const STO_MIPS_PROTECTED = 3 +const STO_MIPS_SC_ALIGN_UNUSED = 255 +const STO_PPC64_LOCAL_BIT = 5 +const STO_PPC64_LOCAL_MASK = 224 +const STT_ARM_16BIT = 15 +const STT_ARM_TFUNC = 13 +const STT_COMMON = 5 +const STT_FILE = 4 +const STT_FUNC = 2 +const STT_GNU_IFUNC = 10 +const STT_HIOS = 12 +const STT_HIPROC = 15 +const STT_HP_OPAQUE = 11 +const STT_HP_STUB = 12 +const STT_LOOS = 10 +const STT_LOPROC = 13 +const STT_NOTYPE = 0 +const STT_NUM = 7 +const STT_OBJECT = 1 +const STT_PARISC_MILLICODE = 13 +const STT_SECTION = 3 +const STT_SPARC_REGISTER = 13 +const STT_TLS = 6 +const STV_DEFAULT = 0 +const STV_HIDDEN = 2 +const STV_INTERNAL = 1 +const STV_PROTECTED = 3 +const SYMINFO_BT_LOWRESERVE = 65280 +const SYMINFO_BT_PARENT = 65534 +const SYMINFO_BT_SELF = 65535 +const SYMINFO_CURRENT = 1 +const SYMINFO_FLG_COPY = 4 +const SYMINFO_FLG_DIRECT = 1 +const SYMINFO_FLG_LAZYLOAD = 8 +const SYMINFO_FLG_PASSTHRU = 2 +const SYMINFO_NONE = 0 +const SYMINFO_NUM = 2 +const SYSCALL_MMAP2_UNIT = 4096 +const SYSCALL_RLIM_INFINITY = 18446744073709551615 +const SYS__llseek = 140 +const SYS__newselect = 142 +const SYS__sysctl = 149 +const SYS_accept = 285 +const SYS_accept4 = 366 +const SYS_access = 33 +const SYS_acct = 51 +const SYS_add_key = 309 +const SYS_adjtimex = 124 +const SYS_arm_fadvise64_64 = 270 +const SYS_arm_sync_file_range = 341 +const SYS_bdflush = 134 +const SYS_bind = 282 +const SYS_bpf = 386 +const SYS_brk = 45 +const SYS_cachestat = 451 +const SYS_capget = 184 +const SYS_capset = 185 +const SYS_chdir = 12 +const SYS_chmod = 15 +const SYS_chown32 = 212 +const SYS_chroot = 61 +const SYS_clock_adjtime = 372 +const SYS_clock_adjtime64 = 405 +const SYS_clock_getres = 264 +const SYS_clock_getres_time32 = 264 +const SYS_clock_getres_time64 = 406 +const SYS_clock_gettime = 263 +const SYS_clock_gettime32 = 263 +const SYS_clock_gettime64 = 403 +const SYS_clock_nanosleep = 265 +const SYS_clock_nanosleep_time32 = 265 +const SYS_clock_nanosleep_time64 = 407 +const SYS_clock_settime = 262 +const SYS_clock_settime32 = 262 +const SYS_clock_settime64 = 404 +const SYS_clone = 120 +const SYS_clone3 = 435 +const SYS_close = 6 +const SYS_close_range = 436 +const SYS_connect = 283 +const SYS_copy_file_range = 391 +const SYS_creat = 8 +const SYS_delete_module = 129 +const SYS_dup = 41 +const SYS_dup2 = 63 +const SYS_dup3 = 358 +const SYS_epoll_create = 250 +const SYS_epoll_create1 = 357 +const SYS_epoll_ctl = 251 +const SYS_epoll_pwait = 346 +const SYS_epoll_pwait2 = 441 +const SYS_epoll_wait = 252 +const SYS_eventfd = 351 +const SYS_eventfd2 = 356 +const SYS_execve = 11 +const SYS_execveat = 387 +const SYS_exit = 1 +const SYS_exit_group = 248 +const SYS_faccessat = 334 +const SYS_faccessat2 = 439 +const SYS_fadvise64_64 = 270 +const SYS_fallocate = 352 +const SYS_fanotify_init = 367 +const SYS_fanotify_mark = 368 +const SYS_fchdir = 133 +const SYS_fchmod = 94 +const SYS_fchmodat = 333 +const SYS_fchmodat2 = 452 +const SYS_fchown32 = 207 +const SYS_fchownat = 325 +const SYS_fcntl64 = 221 +const SYS_fdatasync = 148 +const SYS_fgetxattr = 231 +const SYS_finit_module = 379 +const SYS_flistxattr = 234 +const SYS_flock = 143 +const SYS_fork = 2 +const SYS_fremovexattr = 237 +const SYS_fsconfig = 431 +const SYS_fsetxattr = 228 +const SYS_fsmount = 432 +const SYS_fsopen = 430 +const SYS_fspick = 433 +const SYS_fstat64 = 197 +const SYS_fstatat64 = 327 +const SYS_fstatfs64 = 267 +const SYS_fsync = 118 +const SYS_ftruncate64 = 194 +const SYS_futex = 240 +const SYS_futex_time64 = 422 +const SYS_futex_waitv = 449 +const SYS_futimesat = 326 +const SYS_get_mempolicy = 320 +const SYS_get_robust_list = 339 +const SYS_getcpu = 345 +const SYS_getcwd = 183 +const SYS_getdents64 = 217 +const SYS_getegid32 = 202 +const SYS_geteuid32 = 201 +const SYS_getgid32 = 200 +const SYS_getgroups32 = 205 +const SYS_getitimer = 105 +const SYS_getpeername = 287 +const SYS_getpgid = 132 +const SYS_getpgrp = 65 +const SYS_getpid = 20 +const SYS_getppid = 64 +const SYS_getpriority = 96 +const SYS_getrandom = 384 +const SYS_getresgid32 = 211 +const SYS_getresuid32 = 209 +const SYS_getrusage = 77 +const SYS_getsid = 147 +const SYS_getsockname = 286 +const SYS_getsockopt = 295 +const SYS_gettid = 224 +const SYS_gettimeofday = 78 +const SYS_gettimeofday_time32 = 78 +const SYS_getuid32 = 199 +const SYS_getxattr = 229 +const SYS_init_module = 128 +const SYS_inotify_add_watch = 317 +const SYS_inotify_init = 316 +const SYS_inotify_init1 = 360 +const SYS_inotify_rm_watch = 318 +const SYS_io_cancel = 247 +const SYS_io_destroy = 244 +const SYS_io_getevents = 245 +const SYS_io_pgetevents = 399 +const SYS_io_pgetevents_time64 = 416 +const SYS_io_setup = 243 +const SYS_io_submit = 246 +const SYS_io_uring_enter = 426 +const SYS_io_uring_register = 427 +const SYS_io_uring_setup = 425 +const SYS_ioctl = 54 +const SYS_ioprio_get = 315 +const SYS_ioprio_set = 314 +const SYS_kcmp = 378 +const SYS_kexec_file_load = 401 +const SYS_kexec_load = 347 +const SYS_keyctl = 311 +const SYS_kill = 37 +const SYS_landlock_add_rule = 445 +const SYS_landlock_create_ruleset = 444 +const SYS_landlock_restrict_self = 446 +const SYS_lchown32 = 198 +const SYS_lgetxattr = 230 +const SYS_link = 9 +const SYS_linkat = 330 +const SYS_listen = 284 +const SYS_listxattr = 232 +const SYS_llistxattr = 233 +const SYS_lookup_dcookie = 249 +const SYS_lremovexattr = 236 +const SYS_lseek = 19 +const SYS_lsetxattr = 227 +const SYS_lstat64 = 196 +const SYS_madvise = 220 +const SYS_mbind = 319 +const SYS_membarrier = 389 +const SYS_memfd_create = 385 +const SYS_migrate_pages = 400 +const SYS_mincore = 219 +const SYS_mkdir = 39 +const SYS_mkdirat = 323 +const SYS_mknod = 14 +const SYS_mknodat = 324 +const SYS_mlock = 150 +const SYS_mlock2 = 390 +const SYS_mlockall = 152 +const SYS_mmap2 = 192 +const SYS_mount = 21 +const SYS_mount_setattr = 442 +const SYS_move_mount = 429 +const SYS_move_pages = 344 +const SYS_mprotect = 125 +const SYS_mq_getsetattr = 279 +const SYS_mq_notify = 278 +const SYS_mq_open = 274 +const SYS_mq_timedreceive = 277 +const SYS_mq_timedreceive_time64 = 419 +const SYS_mq_timedsend = 276 +const SYS_mq_timedsend_time64 = 418 +const SYS_mq_unlink = 275 +const SYS_mremap = 163 +const SYS_msgctl = 304 +const SYS_msgget = 303 +const SYS_msgrcv = 302 +const SYS_msgsnd = 301 +const SYS_msync = 144 +const SYS_munlock = 151 +const SYS_munlockall = 153 +const SYS_munmap = 91 +const SYS_name_to_handle_at = 370 +const SYS_nanosleep = 162 +const SYS_nfsservctl = 169 +const SYS_nice = 34 +const SYS_open = 5 +const SYS_open_by_handle_at = 371 +const SYS_open_tree = 428 +const SYS_openat = 322 +const SYS_openat2 = 437 +const SYS_pause = 29 +const SYS_pciconfig_iobase = 271 +const SYS_pciconfig_read = 272 +const SYS_pciconfig_write = 273 +const SYS_perf_event_open = 364 +const SYS_personality = 136 +const SYS_pidfd_getfd = 438 +const SYS_pidfd_open = 434 +const SYS_pidfd_send_signal = 424 +const SYS_pipe = 42 +const SYS_pipe2 = 359 +const SYS_pivot_root = 218 +const SYS_pkey_alloc = 395 +const SYS_pkey_free = 396 +const SYS_pkey_mprotect = 394 +const SYS_poll = 168 +const SYS_ppoll = 336 +const SYS_ppoll_time64 = 414 +const SYS_prctl = 172 +const SYS_pread64 = 180 +const SYS_preadv = 361 +const SYS_preadv2 = 392 +const SYS_prlimit64 = 369 +const SYS_process_madvise = 440 +const SYS_process_mrelease = 448 +const SYS_process_vm_readv = 376 +const SYS_process_vm_writev = 377 +const SYS_pselect6 = 335 +const SYS_pselect6_time64 = 413 +const SYS_ptrace = 26 +const SYS_pwrite64 = 181 +const SYS_pwritev = 362 +const SYS_pwritev2 = 393 +const SYS_quotactl = 131 +const SYS_read = 3 +const SYS_readahead = 225 +const SYS_readlink = 85 +const SYS_readlinkat = 332 +const SYS_readv = 145 +const SYS_reboot = 88 +const SYS_recv = 291 +const SYS_recvfrom = 292 +const SYS_recvmmsg = 365 +const SYS_recvmmsg_time64 = 417 +const SYS_recvmsg = 297 +const SYS_remap_file_pages = 253 +const SYS_removexattr = 235 +const SYS_rename = 38 +const SYS_renameat = 329 +const SYS_renameat2 = 382 +const SYS_request_key = 310 +const SYS_restart_syscall = 0 +const SYS_rmdir = 40 +const SYS_rseq = 398 +const SYS_rt_sigaction = 174 +const SYS_rt_sigpending = 176 +const SYS_rt_sigprocmask = 175 +const SYS_rt_sigqueueinfo = 178 +const SYS_rt_sigreturn = 173 +const SYS_rt_sigsuspend = 179 +const SYS_rt_sigtimedwait = 177 +const SYS_rt_sigtimedwait_time64 = 421 +const SYS_rt_tgsigqueueinfo = 363 +const SYS_sched_get_priority_max = 159 +const SYS_sched_get_priority_min = 160 +const SYS_sched_getaffinity = 242 +const SYS_sched_getattr = 381 +const SYS_sched_getparam = 155 +const SYS_sched_getscheduler = 157 +const SYS_sched_rr_get_interval = 161 +const SYS_sched_rr_get_interval_time64 = 423 +const SYS_sched_setaffinity = 241 +const SYS_sched_setattr = 380 +const SYS_sched_setparam = 154 +const SYS_sched_setscheduler = 156 +const SYS_sched_yield = 158 +const SYS_seccomp = 383 +const SYS_semctl = 300 +const SYS_semget = 299 +const SYS_semop = 298 +const SYS_semtimedop = 312 +const SYS_semtimedop_time64 = 420 +const SYS_send = 289 +const SYS_sendfile64 = 239 +const SYS_sendmmsg = 374 +const SYS_sendmsg = 296 +const SYS_sendto = 290 +const SYS_set_mempolicy = 321 +const SYS_set_mempolicy_home_node = 450 +const SYS_set_robust_list = 338 +const SYS_set_tid_address = 256 +const SYS_setdomainname = 121 +const SYS_setfsgid32 = 216 +const SYS_setfsuid32 = 215 +const SYS_setgid32 = 214 +const SYS_setgroups32 = 206 +const SYS_sethostname = 74 +const SYS_setitimer = 104 +const SYS_setns = 375 +const SYS_setpgid = 57 +const SYS_setpriority = 97 +const SYS_setregid32 = 204 +const SYS_setresgid32 = 210 +const SYS_setresuid32 = 208 +const SYS_setreuid32 = 203 +const SYS_setrlimit = 75 +const SYS_setsid = 66 +const SYS_setsockopt = 294 +const SYS_settimeofday = 79 +const SYS_settimeofday_time32 = 79 +const SYS_setuid32 = 213 +const SYS_setxattr = 226 +const SYS_shmat = 305 +const SYS_shmctl = 308 +const SYS_shmdt = 306 +const SYS_shmget = 307 +const SYS_shutdown = 293 +const SYS_sigaction = 67 +const SYS_sigaltstack = 186 +const SYS_signalfd = 349 +const SYS_signalfd4 = 355 +const SYS_sigpending = 73 +const SYS_sigprocmask = 126 +const SYS_sigreturn = 119 +const SYS_sigsuspend = 72 +const SYS_socket = 281 +const SYS_socketpair = 288 +const SYS_splice = 340 +const SYS_stat64 = 195 +const SYS_statfs64 = 266 +const SYS_statx = 397 +const SYS_swapoff = 115 +const SYS_swapon = 87 +const SYS_symlink = 83 +const SYS_symlinkat = 331 +const SYS_sync = 36 +const SYS_sync_file_range2 = 341 +const SYS_syncfs = 373 +const SYS_sysfs = 135 +const SYS_sysinfo = 116 +const SYS_syslog = 103 +const SYS_tee = 342 +const SYS_tgkill = 268 +const SYS_timer_create = 257 +const SYS_timer_delete = 261 +const SYS_timer_getoverrun = 260 +const SYS_timer_gettime = 259 +const SYS_timer_gettime32 = 259 +const SYS_timer_gettime64 = 408 +const SYS_timer_settime = 258 +const SYS_timer_settime32 = 258 +const SYS_timer_settime64 = 409 +const SYS_timerfd_create = 350 +const SYS_timerfd_gettime = 354 +const SYS_timerfd_gettime32 = 354 +const SYS_timerfd_gettime64 = 410 +const SYS_timerfd_settime = 353 +const SYS_timerfd_settime32 = 353 +const SYS_timerfd_settime64 = 411 +const SYS_times = 43 +const SYS_tkill = 238 +const SYS_truncate64 = 193 +const SYS_ugetrlimit = 191 +const SYS_umask = 60 +const SYS_umount2 = 52 +const SYS_uname = 122 +const SYS_unlink = 10 +const SYS_unlinkat = 328 +const SYS_unshare = 337 +const SYS_uselib = 86 +const SYS_userfaultfd = 388 +const SYS_ustat = 62 +const SYS_utimensat = 348 +const SYS_utimensat_time64 = 412 +const SYS_utimes = 269 +const SYS_vfork = 190 +const SYS_vhangup = 111 +const SYS_vmsplice = 343 +const SYS_vserver = 313 +const SYS_wait4 = 114 +const SYS_waitid = 280 +const SYS_write = 4 +const SYS_writev = 146 +const TRAP_BRANCH = 3 +const TRAP_BRKPT = 1 +const TRAP_HWBKPT = 4 +const TRAP_TRACE = 2 +const TRAP_UNK = 5 +const VER = -255 +const VER_DEF_CURRENT = 1 +const VER_DEF_NONE = 0 +const VER_DEF_NUM = 2 +const VER_FLG_BASE = 1 +const VER_FLG_WEAK = 2 +const VER_NDX_ELIMINATE = 65281 +const VER_NDX_GLOBAL = 1 +const VER_NDX_LOCAL = 0 +const VER_NDX_LORESERVE = 65280 +const VER_NEED_CURRENT = 1 +const VER_NEED_NONE = 0 +const VER_NEED_NUM = 2 +const WNOHANG = 1 +const WUNTRACED = 2 +const _NSIG = 65 +const __ARM_NR_breakpoint = 983041 +const __ARM_NR_cacheflush = 983042 +const __ARM_NR_get_tls = 983046 +const __ARM_NR_set_tls = 983045 +const __ARM_NR_usr26 = 983043 +const __ARM_NR_usr32 = 983044 +const __NR__llseek = 140 +const __NR__newselect = 142 +const __NR__sysctl = 149 +const __NR_accept = 285 +const __NR_accept4 = 366 +const __NR_access = 33 +const __NR_acct = 51 +const __NR_add_key = 309 +const __NR_adjtimex = 124 +const __NR_arm_fadvise64_64 = 270 +const __NR_arm_sync_file_range = 341 +const __NR_bdflush = 134 +const __NR_bind = 282 +const __NR_bpf = 386 +const __NR_brk = 45 +const __NR_cachestat = 451 +const __NR_capget = 184 +const __NR_capset = 185 +const __NR_chdir = 12 +const __NR_chmod = 15 +const __NR_chown = 182 +const __NR_chown32 = 212 +const __NR_chroot = 61 +const __NR_clock_adjtime = 372 +const __NR_clock_adjtime64 = 405 +const __NR_clock_getres_time32 = 264 +const __NR_clock_getres_time64 = 406 +const __NR_clock_gettime32 = 263 +const __NR_clock_gettime64 = 403 +const __NR_clock_nanosleep_time32 = 265 +const __NR_clock_nanosleep_time64 = 407 +const __NR_clock_settime32 = 262 +const __NR_clock_settime64 = 404 +const __NR_clone = 120 +const __NR_clone3 = 435 +const __NR_close = 6 +const __NR_close_range = 436 +const __NR_connect = 283 +const __NR_copy_file_range = 391 +const __NR_creat = 8 +const __NR_delete_module = 129 +const __NR_dup = 41 +const __NR_dup2 = 63 +const __NR_dup3 = 358 +const __NR_epoll_create = 250 +const __NR_epoll_create1 = 357 +const __NR_epoll_ctl = 251 +const __NR_epoll_pwait = 346 +const __NR_epoll_pwait2 = 441 +const __NR_epoll_wait = 252 +const __NR_eventfd = 351 +const __NR_eventfd2 = 356 +const __NR_execve = 11 +const __NR_execveat = 387 +const __NR_exit = 1 +const __NR_exit_group = 248 +const __NR_faccessat = 334 +const __NR_faccessat2 = 439 +const __NR_fadvise64_64 = 270 +const __NR_fallocate = 352 +const __NR_fanotify_init = 367 +const __NR_fanotify_mark = 368 +const __NR_fchdir = 133 +const __NR_fchmod = 94 +const __NR_fchmodat = 333 +const __NR_fchmodat2 = 452 +const __NR_fchown = 95 +const __NR_fchown32 = 207 +const __NR_fchownat = 325 +const __NR_fcntl = 55 +const __NR_fcntl64 = 221 +const __NR_fdatasync = 148 +const __NR_fgetxattr = 231 +const __NR_finit_module = 379 +const __NR_flistxattr = 234 +const __NR_flock = 143 +const __NR_fork = 2 +const __NR_fremovexattr = 237 +const __NR_fsconfig = 431 +const __NR_fsetxattr = 228 +const __NR_fsmount = 432 +const __NR_fsopen = 430 +const __NR_fspick = 433 +const __NR_fstat = 108 +const __NR_fstat64 = 197 +const __NR_fstatat64 = 327 +const __NR_fstatfs = 100 +const __NR_fstatfs64 = 267 +const __NR_fsync = 118 +const __NR_ftruncate = 93 +const __NR_ftruncate64 = 194 +const __NR_futex = 240 +const __NR_futex_time64 = 422 +const __NR_futex_waitv = 449 +const __NR_futimesat = 326 +const __NR_get_mempolicy = 320 +const __NR_get_robust_list = 339 +const __NR_getcpu = 345 +const __NR_getcwd = 183 +const __NR_getdents = 141 +const __NR_getdents64 = 217 +const __NR_getegid = 50 +const __NR_getegid32 = 202 +const __NR_geteuid = 49 +const __NR_geteuid32 = 201 +const __NR_getgid = 47 +const __NR_getgid32 = 200 +const __NR_getgroups = 80 +const __NR_getgroups32 = 205 +const __NR_getitimer = 105 +const __NR_getpeername = 287 +const __NR_getpgid = 132 +const __NR_getpgrp = 65 +const __NR_getpid = 20 +const __NR_getppid = 64 +const __NR_getpriority = 96 +const __NR_getrandom = 384 +const __NR_getresgid = 171 +const __NR_getresgid32 = 211 +const __NR_getresuid = 165 +const __NR_getresuid32 = 209 +const __NR_getrusage = 77 +const __NR_getsid = 147 +const __NR_getsockname = 286 +const __NR_getsockopt = 295 +const __NR_gettid = 224 +const __NR_gettimeofday_time32 = 78 +const __NR_getuid = 24 +const __NR_getuid32 = 199 +const __NR_getxattr = 229 +const __NR_init_module = 128 +const __NR_inotify_add_watch = 317 +const __NR_inotify_init = 316 +const __NR_inotify_init1 = 360 +const __NR_inotify_rm_watch = 318 +const __NR_io_cancel = 247 +const __NR_io_destroy = 244 +const __NR_io_getevents = 245 +const __NR_io_pgetevents = 399 +const __NR_io_pgetevents_time64 = 416 +const __NR_io_setup = 243 +const __NR_io_submit = 246 +const __NR_io_uring_enter = 426 +const __NR_io_uring_register = 427 +const __NR_io_uring_setup = 425 +const __NR_ioctl = 54 +const __NR_ioprio_get = 315 +const __NR_ioprio_set = 314 +const __NR_kcmp = 378 +const __NR_kexec_file_load = 401 +const __NR_kexec_load = 347 +const __NR_keyctl = 311 +const __NR_kill = 37 +const __NR_landlock_add_rule = 445 +const __NR_landlock_create_ruleset = 444 +const __NR_landlock_restrict_self = 446 +const __NR_lchown = 16 +const __NR_lchown32 = 198 +const __NR_lgetxattr = 230 +const __NR_link = 9 +const __NR_linkat = 330 +const __NR_listen = 284 +const __NR_listxattr = 232 +const __NR_llistxattr = 233 +const __NR_lookup_dcookie = 249 +const __NR_lremovexattr = 236 +const __NR_lseek = 19 +const __NR_lsetxattr = 227 +const __NR_lstat = 107 +const __NR_lstat64 = 196 +const __NR_madvise = 220 +const __NR_mbind = 319 +const __NR_membarrier = 389 +const __NR_memfd_create = 385 +const __NR_migrate_pages = 400 +const __NR_mincore = 219 +const __NR_mkdir = 39 +const __NR_mkdirat = 323 +const __NR_mknod = 14 +const __NR_mknodat = 324 +const __NR_mlock = 150 +const __NR_mlock2 = 390 +const __NR_mlockall = 152 +const __NR_mmap2 = 192 +const __NR_mount = 21 +const __NR_mount_setattr = 442 +const __NR_move_mount = 429 +const __NR_move_pages = 344 +const __NR_mprotect = 125 +const __NR_mq_getsetattr = 279 +const __NR_mq_notify = 278 +const __NR_mq_open = 274 +const __NR_mq_timedreceive = 277 +const __NR_mq_timedreceive_time64 = 419 +const __NR_mq_timedsend = 276 +const __NR_mq_timedsend_time64 = 418 +const __NR_mq_unlink = 275 +const __NR_mremap = 163 +const __NR_msgctl = 304 +const __NR_msgget = 303 +const __NR_msgrcv = 302 +const __NR_msgsnd = 301 +const __NR_msync = 144 +const __NR_munlock = 151 +const __NR_munlockall = 153 +const __NR_munmap = 91 +const __NR_name_to_handle_at = 370 +const __NR_nanosleep = 162 +const __NR_nfsservctl = 169 +const __NR_nice = 34 +const __NR_open = 5 +const __NR_open_by_handle_at = 371 +const __NR_open_tree = 428 +const __NR_openat = 322 +const __NR_openat2 = 437 +const __NR_pause = 29 +const __NR_pciconfig_iobase = 271 +const __NR_pciconfig_read = 272 +const __NR_pciconfig_write = 273 +const __NR_perf_event_open = 364 +const __NR_personality = 136 +const __NR_pidfd_getfd = 438 +const __NR_pidfd_open = 434 +const __NR_pidfd_send_signal = 424 +const __NR_pipe = 42 +const __NR_pipe2 = 359 +const __NR_pivot_root = 218 +const __NR_pkey_alloc = 395 +const __NR_pkey_free = 396 +const __NR_pkey_mprotect = 394 +const __NR_poll = 168 +const __NR_ppoll = 336 +const __NR_ppoll_time64 = 414 +const __NR_prctl = 172 +const __NR_pread64 = 180 +const __NR_preadv = 361 +const __NR_preadv2 = 392 +const __NR_prlimit64 = 369 +const __NR_process_madvise = 440 +const __NR_process_mrelease = 448 +const __NR_process_vm_readv = 376 +const __NR_process_vm_writev = 377 +const __NR_pselect6 = 335 +const __NR_pselect6_time64 = 413 +const __NR_ptrace = 26 +const __NR_pwrite64 = 181 +const __NR_pwritev = 362 +const __NR_pwritev2 = 393 +const __NR_quotactl = 131 +const __NR_read = 3 +const __NR_readahead = 225 +const __NR_readlink = 85 +const __NR_readlinkat = 332 +const __NR_readv = 145 +const __NR_reboot = 88 +const __NR_recv = 291 +const __NR_recvfrom = 292 +const __NR_recvmmsg = 365 +const __NR_recvmmsg_time64 = 417 +const __NR_recvmsg = 297 +const __NR_remap_file_pages = 253 +const __NR_removexattr = 235 +const __NR_rename = 38 +const __NR_renameat = 329 +const __NR_renameat2 = 382 +const __NR_request_key = 310 +const __NR_restart_syscall = 0 +const __NR_rmdir = 40 +const __NR_rseq = 398 +const __NR_rt_sigaction = 174 +const __NR_rt_sigpending = 176 +const __NR_rt_sigprocmask = 175 +const __NR_rt_sigqueueinfo = 178 +const __NR_rt_sigreturn = 173 +const __NR_rt_sigsuspend = 179 +const __NR_rt_sigtimedwait = 177 +const __NR_rt_sigtimedwait_time64 = 421 +const __NR_rt_tgsigqueueinfo = 363 +const __NR_sched_get_priority_max = 159 +const __NR_sched_get_priority_min = 160 +const __NR_sched_getaffinity = 242 +const __NR_sched_getattr = 381 +const __NR_sched_getparam = 155 +const __NR_sched_getscheduler = 157 +const __NR_sched_rr_get_interval = 161 +const __NR_sched_rr_get_interval_time64 = 423 +const __NR_sched_setaffinity = 241 +const __NR_sched_setattr = 380 +const __NR_sched_setparam = 154 +const __NR_sched_setscheduler = 156 +const __NR_sched_yield = 158 +const __NR_seccomp = 383 +const __NR_semctl = 300 +const __NR_semget = 299 +const __NR_semop = 298 +const __NR_semtimedop = 312 +const __NR_semtimedop_time64 = 420 +const __NR_send = 289 +const __NR_sendfile = 187 +const __NR_sendfile64 = 239 +const __NR_sendmmsg = 374 +const __NR_sendmsg = 296 +const __NR_sendto = 290 +const __NR_set_mempolicy = 321 +const __NR_set_mempolicy_home_node = 450 +const __NR_set_robust_list = 338 +const __NR_set_tid_address = 256 +const __NR_setdomainname = 121 +const __NR_setfsgid = 139 +const __NR_setfsgid32 = 216 +const __NR_setfsuid = 138 +const __NR_setfsuid32 = 215 +const __NR_setgid = 46 +const __NR_setgid32 = 214 +const __NR_setgroups = 81 +const __NR_setgroups32 = 206 +const __NR_sethostname = 74 +const __NR_setitimer = 104 +const __NR_setns = 375 +const __NR_setpgid = 57 +const __NR_setpriority = 97 +const __NR_setregid = 71 +const __NR_setregid32 = 204 +const __NR_setresgid = 170 +const __NR_setresgid32 = 210 +const __NR_setresuid = 164 +const __NR_setresuid32 = 208 +const __NR_setreuid = 70 +const __NR_setreuid32 = 203 +const __NR_setrlimit = 75 +const __NR_setsid = 66 +const __NR_setsockopt = 294 +const __NR_settimeofday_time32 = 79 +const __NR_setuid = 23 +const __NR_setuid32 = 213 +const __NR_setxattr = 226 +const __NR_shmat = 305 +const __NR_shmctl = 308 +const __NR_shmdt = 306 +const __NR_shmget = 307 +const __NR_shutdown = 293 +const __NR_sigaction = 67 +const __NR_sigaltstack = 186 +const __NR_signalfd = 349 +const __NR_signalfd4 = 355 +const __NR_sigpending = 73 +const __NR_sigprocmask = 126 +const __NR_sigreturn = 119 +const __NR_sigsuspend = 72 +const __NR_socket = 281 +const __NR_socketpair = 288 +const __NR_splice = 340 +const __NR_stat = 106 +const __NR_stat64 = 195 +const __NR_statfs = 99 +const __NR_statfs64 = 266 +const __NR_statx = 397 +const __NR_swapoff = 115 +const __NR_swapon = 87 +const __NR_symlink = 83 +const __NR_symlinkat = 331 +const __NR_sync = 36 +const __NR_sync_file_range2 = 341 +const __NR_syncfs = 373 +const __NR_sysfs = 135 +const __NR_sysinfo = 116 +const __NR_syslog = 103 +const __NR_tee = 342 +const __NR_tgkill = 268 +const __NR_timer_create = 257 +const __NR_timer_delete = 261 +const __NR_timer_getoverrun = 260 +const __NR_timer_gettime32 = 259 +const __NR_timer_gettime64 = 408 +const __NR_timer_settime32 = 258 +const __NR_timer_settime64 = 409 +const __NR_timerfd_create = 350 +const __NR_timerfd_gettime32 = 354 +const __NR_timerfd_gettime64 = 410 +const __NR_timerfd_settime32 = 353 +const __NR_timerfd_settime64 = 411 +const __NR_times = 43 +const __NR_tkill = 238 +const __NR_truncate = 92 +const __NR_truncate64 = 193 +const __NR_ugetrlimit = 191 +const __NR_umask = 60 +const __NR_umount2 = 52 +const __NR_uname = 122 +const __NR_unlink = 10 +const __NR_unlinkat = 328 +const __NR_unshare = 337 +const __NR_uselib = 86 +const __NR_userfaultfd = 388 +const __NR_ustat = 62 +const __NR_utimensat = 348 +const __NR_utimensat_time64 = 412 +const __NR_utimes = 269 +const __NR_vfork = 190 +const __NR_vhangup = 111 +const __NR_vmsplice = 343 +const __NR_vserver = 313 +const __NR_wait4 = 114 +const __NR_waitid = 280 +const __NR_write = 4 +const __NR_writev = 146 +const __SC_accept = 5 +const __SC_accept4 = 18 +const __SC_bind = 2 +const __SC_connect = 3 +const __SC_getpeername = 7 +const __SC_getsockname = 6 +const __SC_getsockopt = 15 +const __SC_listen = 4 +const __SC_recv = 10 +const __SC_recvfrom = 12 +const __SC_recvmmsg = 19 +const __SC_recvmsg = 17 +const __SC_send = 9 +const __SC_sendmmsg = 20 +const __SC_sendmsg = 16 +const __SC_sendto = 11 +const __SC_setsockopt = 14 +const __SC_shutdown = 13 +const __SC_socket = 1 +const __SC_socketpair = 8 +const libc = 0 + +type Ttime_t = int64 + +type Tsuseconds_t = int64 + +type Ttimeval = struct { + F__ccgo_align [0]uint32 + Ftv_sec Ttime_t + Ftv_usec Tsuseconds_t +} + +type Ttimespec = struct { + F__ccgo_align [0]uint32 + Ftv_sec Ttime_t + Ftv_nsec int32 + F__ccgo12 uint32 +} + +type Tsigset_t = struct { + F__bits [32]uint32 +} + +type t__sigset_t = Tsigset_t + +type Tfd_mask = uint32 + +type Tfd_set = struct { + Ffds_bits [32]uint32 +} + +type Titimerval = struct { + F__ccgo_align [0]uint32 + Fit_interval Ttimeval + Fit_value Ttimeval +} + +type Tid_t = uint32 + +type Trlim_t = uint64 + +type Trlimit = struct { + F__ccgo_align [0]uint32 + Frlim_cur Trlim_t + Frlim_max Trlim_t +} + +type Trusage = struct { + F__ccgo_align [0]uint32 + Fru_utime Ttimeval + Fru_stime Ttimeval + Fru_maxrss int32 + Fru_ixrss int32 + Fru_idrss int32 + Fru_isrss int32 + Fru_minflt int32 + Fru_majflt int32 + Fru_nswap int32 + Fru_inblock int32 + Fru_oublock int32 + Fru_msgsnd int32 + Fru_msgrcv int32 + Fru_nsignals int32 + Fru_nvcsw int32 + Fru_nivcsw int32 + F__reserved [16]int32 +} + +type Tclock_t = int32 + +type Tpthread_t = uintptr + +type Tpthread_attr_t = struct { + F__u struct { + F__vi [0][9]int32 + F__s [0][9]uint32 + F__i [9]int32 + } +} + +type Tstack_t = struct { + Fss_sp uintptr + Fss_flags int32 + Fss_size Tsize_t +} + +type Tsigaltstack = Tstack_t + +type Tmcontext_t = struct { + F__regs [21]uint32 +} + +type Tucontext_t = struct { + F__ccgo_align [0]uint32 + Fuc_flags uint32 + Fuc_link uintptr + Fuc_stack Tstack_t + Fuc_mcontext Tmcontext_t + Fuc_sigmask Tsigset_t + Fuc_regspace [64]uint64 +} + +type t__ucontext = Tucontext_t + +type Tsigval = struct { + Fsival_ptr [0]uintptr + Fsival_int int32 +} + +type Tsiginfo_t = struct { + Fsi_signo int32 + Fsi_errno int32 + Fsi_code int32 + F__si_fields struct { + F__si_common [0]struct { + F__first struct { + F__timer [0]struct { + Fsi_timerid int32 + Fsi_overrun int32 + } + F__piduid struct { + Fsi_pid Tpid_t + Fsi_uid Tuid_t + } + } + F__second struct { + F__sigchld [0]struct { + Fsi_status int32 + Fsi_utime Tclock_t + Fsi_stime Tclock_t + } + Fsi_value Tsigval + F__ccgo_pad2 [8]byte + } + } + F__sigfault [0]struct { + Fsi_addr uintptr + Fsi_addr_lsb int16 + F__first struct { + Fsi_pkey [0]uint32 + F__addr_bnd struct { + Fsi_lower uintptr + Fsi_upper uintptr + } + } + } + F__sigpoll [0]struct { + Fsi_band int32 + Fsi_fd int32 + } + F__sigsys [0]struct { + Fsi_call_addr uintptr + Fsi_syscall int32 + Fsi_arch uint32 + } + F__pad [116]uint8 + } +} + +type Tsigaction = struct { + F__sa_handler struct { + Fsa_sigaction [0]uintptr + Fsa_handler uintptr + } + Fsa_mask Tsigset_t + Fsa_flags int32 + Fsa_restorer uintptr +} + +type Tsigevent = struct { + Fsigev_value Tsigval + Fsigev_signo int32 + Fsigev_notify int32 + F__sev_fields struct { + Fsigev_notify_thread_id [0]Tpid_t + F__sev_thread [0]struct { + Fsigev_notify_function uintptr + Fsigev_notify_attributes uintptr + } + F__pad [52]uint8 + } +} + +type Tsig_atomic_t = int32 + +type TElf32_Half = uint16 + +type TElf64_Half = uint16 + +type TElf32_Word = uint32 + +type TElf32_Sword = int32 + +type TElf64_Word = uint32 + +type TElf64_Sword = int32 + +type TElf32_Xword = uint64 + +type TElf32_Sxword = int64 + +type TElf64_Xword = uint64 + +type TElf64_Sxword = int64 + +type TElf32_Addr = uint32 + +type TElf64_Addr = uint64 + +type TElf32_Off = uint32 + +type TElf64_Off = uint64 + +type TElf32_Section = uint16 + +type TElf64_Section = uint16 + +type TElf32_Versym = uint16 + +type TElf64_Versym = uint16 + +type TElf32_Ehdr = struct { + Fe_ident [16]uint8 + Fe_type TElf32_Half + Fe_machine TElf32_Half + Fe_version TElf32_Word + Fe_entry TElf32_Addr + Fe_phoff TElf32_Off + Fe_shoff TElf32_Off + Fe_flags TElf32_Word + Fe_ehsize TElf32_Half + Fe_phentsize TElf32_Half + Fe_phnum TElf32_Half + Fe_shentsize TElf32_Half + Fe_shnum TElf32_Half + Fe_shstrndx TElf32_Half +} + +type TElf64_Ehdr = struct { + F__ccgo_align [0]uint32 + Fe_ident [16]uint8 + Fe_type TElf64_Half + Fe_machine TElf64_Half + Fe_version TElf64_Word + Fe_entry TElf64_Addr + Fe_phoff TElf64_Off + Fe_shoff TElf64_Off + Fe_flags TElf64_Word + Fe_ehsize TElf64_Half + Fe_phentsize TElf64_Half + Fe_phnum TElf64_Half + Fe_shentsize TElf64_Half + Fe_shnum TElf64_Half + Fe_shstrndx TElf64_Half +} + +type TElf32_Shdr = struct { + Fsh_name TElf32_Word + Fsh_type TElf32_Word + Fsh_flags TElf32_Word + Fsh_addr TElf32_Addr + Fsh_offset TElf32_Off + Fsh_size TElf32_Word + Fsh_link TElf32_Word + Fsh_info TElf32_Word + Fsh_addralign TElf32_Word + Fsh_entsize TElf32_Word +} + +type TElf64_Shdr = struct { + F__ccgo_align [0]uint32 + Fsh_name TElf64_Word + Fsh_type TElf64_Word + Fsh_flags TElf64_Xword + Fsh_addr TElf64_Addr + Fsh_offset TElf64_Off + Fsh_size TElf64_Xword + Fsh_link TElf64_Word + Fsh_info TElf64_Word + Fsh_addralign TElf64_Xword + Fsh_entsize TElf64_Xword +} + +type TElf32_Chdr = struct { + Fch_type TElf32_Word + Fch_size TElf32_Word + Fch_addralign TElf32_Word +} + +type TElf64_Chdr = struct { + F__ccgo_align [0]uint32 + Fch_type TElf64_Word + Fch_reserved TElf64_Word + Fch_size TElf64_Xword + Fch_addralign TElf64_Xword +} + +type TElf32_Sym = struct { + Fst_name TElf32_Word + Fst_value TElf32_Addr + Fst_size TElf32_Word + Fst_info uint8 + Fst_other uint8 + Fst_shndx TElf32_Section +} + +type TElf64_Sym = struct { + F__ccgo_align [0]uint32 + Fst_name TElf64_Word + Fst_info uint8 + Fst_other uint8 + Fst_shndx TElf64_Section + Fst_value TElf64_Addr + Fst_size TElf64_Xword +} + +type TElf32_Syminfo = struct { + Fsi_boundto TElf32_Half + Fsi_flags TElf32_Half +} + +type TElf64_Syminfo = struct { + Fsi_boundto TElf64_Half + Fsi_flags TElf64_Half +} + +type TElf32_Rel = struct { + Fr_offset TElf32_Addr + Fr_info TElf32_Word +} + +type TElf64_Rel = struct { + F__ccgo_align [0]uint32 + Fr_offset TElf64_Addr + Fr_info TElf64_Xword +} + +type TElf32_Rela = struct { + Fr_offset TElf32_Addr + Fr_info TElf32_Word + Fr_addend TElf32_Sword +} + +type TElf64_Rela = struct { + F__ccgo_align [0]uint32 + Fr_offset TElf64_Addr + Fr_info TElf64_Xword + Fr_addend TElf64_Sxword +} + +type TElf32_Relr = uint32 + +type TElf64_Relr = uint64 + +type TElf32_Phdr = struct { + Fp_type TElf32_Word + Fp_offset TElf32_Off + Fp_vaddr TElf32_Addr + Fp_paddr TElf32_Addr + Fp_filesz TElf32_Word + Fp_memsz TElf32_Word + Fp_flags TElf32_Word + Fp_align TElf32_Word +} + +type TElf64_Phdr = struct { + F__ccgo_align [0]uint32 + Fp_type TElf64_Word + Fp_flags TElf64_Word + Fp_offset TElf64_Off + Fp_vaddr TElf64_Addr + Fp_paddr TElf64_Addr + Fp_filesz TElf64_Xword + Fp_memsz TElf64_Xword + Fp_align TElf64_Xword +} + +type TElf32_Dyn = struct { + Fd_tag TElf32_Sword + Fd_un struct { + Fd_ptr [0]TElf32_Addr + Fd_val TElf32_Word + } +} + +type TElf64_Dyn = struct { + F__ccgo_align [0]uint32 + Fd_tag TElf64_Sxword + Fd_un struct { + F__ccgo_align [0]uint32 + Fd_ptr [0]TElf64_Addr + Fd_val TElf64_Xword + } +} + +type TElf32_Verdef = struct { + Fvd_version TElf32_Half + Fvd_flags TElf32_Half + Fvd_ndx TElf32_Half + Fvd_cnt TElf32_Half + Fvd_hash TElf32_Word + Fvd_aux TElf32_Word + Fvd_next TElf32_Word +} + +type TElf64_Verdef = struct { + Fvd_version TElf64_Half + Fvd_flags TElf64_Half + Fvd_ndx TElf64_Half + Fvd_cnt TElf64_Half + Fvd_hash TElf64_Word + Fvd_aux TElf64_Word + Fvd_next TElf64_Word +} + +type TElf32_Verdaux = struct { + Fvda_name TElf32_Word + Fvda_next TElf32_Word +} + +type TElf64_Verdaux = struct { + Fvda_name TElf64_Word + Fvda_next TElf64_Word +} + +type TElf32_Verneed = struct { + Fvn_version TElf32_Half + Fvn_cnt TElf32_Half + Fvn_file TElf32_Word + Fvn_aux TElf32_Word + Fvn_next TElf32_Word +} + +type TElf64_Verneed = struct { + Fvn_version TElf64_Half + Fvn_cnt TElf64_Half + Fvn_file TElf64_Word + Fvn_aux TElf64_Word + Fvn_next TElf64_Word +} + +type TElf32_Vernaux = struct { + Fvna_hash TElf32_Word + Fvna_flags TElf32_Half + Fvna_other TElf32_Half + Fvna_name TElf32_Word + Fvna_next TElf32_Word +} + +type TElf64_Vernaux = struct { + Fvna_hash TElf64_Word + Fvna_flags TElf64_Half + Fvna_other TElf64_Half + Fvna_name TElf64_Word + Fvna_next TElf64_Word +} + +type TElf32_auxv_t = struct { + Fa_type Tuint32_t + Fa_un struct { + Fa_val Tuint32_t + } +} + +type TElf64_auxv_t = struct { + F__ccgo_align [0]uint32 + Fa_type Tuint64_t + Fa_un struct { + F__ccgo_align [0]uint32 + Fa_val Tuint64_t + } +} + +type TElf32_Nhdr = struct { + Fn_namesz TElf32_Word + Fn_descsz TElf32_Word + Fn_type TElf32_Word +} + +type TElf64_Nhdr = struct { + Fn_namesz TElf64_Word + Fn_descsz TElf64_Word + Fn_type TElf64_Word +} + +type TElf32_Move = struct { + F__ccgo_align [0]uint32 + Fm_value TElf32_Xword + Fm_info TElf32_Word + Fm_poffset TElf32_Word + Fm_repeat TElf32_Half + Fm_stride TElf32_Half + F__ccgo_pad5 [4]byte +} + +type TElf64_Move = struct { + F__ccgo_align [0]uint32 + Fm_value TElf64_Xword + Fm_info TElf64_Xword + Fm_poffset TElf64_Xword + Fm_repeat TElf64_Half + Fm_stride TElf64_Half + F__ccgo_pad5 [4]byte +} + +type TElf32_gptab = struct { + Fgt_entry [0]struct { + Fgt_g_value TElf32_Word + Fgt_bytes TElf32_Word + } + Fgt_header struct { + Fgt_current_g_value TElf32_Word + Fgt_unused TElf32_Word + } +} + +type TElf32_RegInfo = struct { + Fri_gprmask TElf32_Word + Fri_cprmask [4]TElf32_Word + Fri_gp_value TElf32_Sword +} + +type TElf_Options = struct { + Fkind uint8 + Fsize uint8 + Fsection TElf32_Section + Finfo TElf32_Word +} + +type TElf_Options_Hw = struct { + Fhwp_flags1 TElf32_Word + Fhwp_flags2 TElf32_Word +} + +type TElf32_Lib = struct { + Fl_name TElf32_Word + Fl_time_stamp TElf32_Word + Fl_checksum TElf32_Word + Fl_version TElf32_Word + Fl_flags TElf32_Word +} + +type TElf64_Lib = struct { + Fl_name TElf64_Word + Fl_time_stamp TElf64_Word + Fl_checksum TElf64_Word + Fl_version TElf64_Word + Fl_flags TElf64_Word +} + +type TElf32_Conflict = uint32 + +type TElf_MIPS_ABIFlags_v0 = struct { + Fversion TElf32_Half + Fisa_level uint8 + Fisa_rev uint8 + Fgpr_size uint8 + Fcpr1_size uint8 + Fcpr2_size uint8 + Ffp_abi uint8 + Fisa_ext TElf32_Word + Fases TElf32_Word + Fflags1 TElf32_Word + Fflags2 TElf32_Word +} + +const _Val_GNU_MIPS_ABI_FP_ANY = 0 +const _Val_GNU_MIPS_ABI_FP_DOUBLE = 1 +const _Val_GNU_MIPS_ABI_FP_SINGLE = 2 +const _Val_GNU_MIPS_ABI_FP_SOFT = 3 +const _Val_GNU_MIPS_ABI_FP_OLD_64 = 4 +const _Val_GNU_MIPS_ABI_FP_XX = 5 +const _Val_GNU_MIPS_ABI_FP_64 = 6 +const _Val_GNU_MIPS_ABI_FP_64A = 7 +const _Val_GNU_MIPS_ABI_FP_MAX = 7 + +type Tsyscall_arg_t = int32 + +type Twchar_t = uint32 + +type Tdiv_t = struct { + Fquot int32 + Frem int32 +} + +type Tldiv_t = struct { + Fquot int32 + Frem int32 +} + +type Tlldiv_t = struct { + F__ccgo_align [0]uint32 + Fquot int64 + Frem int64 +} + +type t__locale_struct = struct { + Fcat [6]uintptr +} + +type Ttls_module = struct { + Fnext uintptr + Fimage uintptr + Flen1 Tsize_t + Fsize Tsize_t + Falign Tsize_t + Foffset Tsize_t +} + +type t__libc = struct { + Fcan_do_threads uint8 + Fthreaded uint8 + Fsecure uint8 + Fneed_locks int8 + Fthreads_minus_1 int32 + Fauxv uintptr + Ftls_head uintptr + Ftls_size Tsize_t + Ftls_align Tsize_t + Ftls_cnt Tsize_t + Fpage_size Tsize_t + Fglobal_locale t__locale_struct +} + +func Xsysconf(tls *TLS, name int32) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(464) + defer tls.Free(464) + var cnt, i, val, v3 int32 + var mem, v1 uint64 + var v5 uintptr + var _ /* lim at bp+0 */ Trlimit + var _ /* set at bp+16 */ [128]uint8 + var _ /* si at bp+144 */ Tsysinfo + _, _, _, _, _, _, _ = cnt, i, mem, val, v1, v3, v5 + if Uint32FromInt32(name) >= Uint32FromInt64(502)/Uint32FromInt64(2) || !(_values1[name] != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } else { + if int32(_values1[name]) >= -int32(1) { + return int32(_values1[name]) + } else { + if int32(_values1[name]) < -int32(256) { + Xgetrlimit(tls, int32(_values1[name])&int32(16383), bp) + if (**(**Trlimit)(__ccgo_up(bp))).Frlim_cur == ^Uint64FromUint64(0) { + return -int32(1) + } + if (**(**Trlimit)(__ccgo_up(bp))).Frlim_cur > uint64(0x7fffffff) { + v1 = uint64(0x7fffffff) + } else { + v1 = (**(**Trlimit)(__ccgo_up(bp))).Frlim_cur + } + return Int32FromUint64(v1) + } + } + } + switch Int32FromUint8(Uint8FromInt16(_values1[name])) { + case (-Int32FromInt32(256) | Int32FromInt32(1)) & Int32FromInt32(255): + return int32(200809) + case (-Int32FromInt32(256) | Int32FromInt32(2)) & Int32FromInt32(255): + return int32(ARG_MAX) + case (-Int32FromInt32(256) | Int32FromInt32(3)) & Int32FromInt32(255): + return int32(MQ_PRIO_MAX) + case (-Int32FromInt32(256) | Int32FromInt32(4)) & Int32FromInt32(255): + return Int32FromUint32(X__libc.Fpage_size) + case (-Int32FromInt32(256) | Int32FromInt32(5)) & Int32FromInt32(255): + return int32(SEM_VALUE_MAX) + case (-Int32FromInt32(256) | Int32FromInt32(11)) & Int32FromInt32(255): + return int32(DELAYTIMER_MAX) + case (-Int32FromInt32(256) | Int32FromInt32(6)) & Int32FromInt32(255): + fallthrough + case (-Int32FromInt32(256) | Int32FromInt32(7)) & Int32FromInt32(255): + **(**[128]uint8)(__ccgo_up(bp + 16)) = [128]uint8{ + 0: uint8(1), + } + X__syscall3(tls, int32(SYS_sched_getaffinity), int32(Int32FromInt32(0)), Int32FromUint32(Uint32FromInt64(128)), int32(bp+16)) + v3 = Int32FromInt32(0) + cnt = v3 + i = v3 + for { + if !(Uint32FromInt32(i) < uint32(128)) { + break + } + for { + if !((**(**[128]uint8)(__ccgo_up(bp + 16)))[i] != 0) { + break + } + goto _4 + _4: + ; + v5 = bp + 16 + uintptr(i) + *(*uint8)(unsafe.Pointer(v5)) = uint8(int32(*(*uint8)(unsafe.Pointer(v5))) & (Int32FromUint8((**(**[128]uint8)(__ccgo_up(bp + 16)))[i]) - Int32FromInt32(1))) + cnt = cnt + 1 + } + goto _2 + _2: + ; + i = i + 1 + } + return cnt + case (-Int32FromInt32(256) | Int32FromInt32(8)) & Int32FromInt32(255): + fallthrough + case (-Int32FromInt32(256) | Int32FromInt32(9)) & Int32FromInt32(255): + X__lsysinfo(tls, bp+144) + if !((**(**Tsysinfo)(__ccgo_up(bp + 144))).Fmem_unit != 0) { + (**(**Tsysinfo)(__ccgo_up(bp + 144))).Fmem_unit = uint32(1) + } + if name == int32(_SC_PHYS_PAGES) { + mem = uint64((**(**Tsysinfo)(__ccgo_up(bp + 144))).Ftotalram) + } else { + mem = uint64((**(**Tsysinfo)(__ccgo_up(bp + 144))).Ffreeram + (**(**Tsysinfo)(__ccgo_up(bp + 144))).Fbufferram) + } + mem = mem * uint64((**(**Tsysinfo)(__ccgo_up(bp + 144))).Fmem_unit) + mem = mem / uint64(X__libc.Fpage_size) + if mem > uint64(0x7fffffff) { + v1 = uint64(0x7fffffff) + } else { + v1 = mem + } + return Int32FromUint64(v1) + case (-Int32FromInt32(256) | Int32FromInt32(12)) & Int32FromInt32(255): + fallthrough + case (-Int32FromInt32(256) | Int32FromInt32(13)) & Int32FromInt32(255): + val = Int32FromUint32(X__getauxval(tls, uint32(AT_MINSIGSTKSZ))) + if val < int32(MINSIGSTKSZ) { + val = int32(MINSIGSTKSZ) + } + if int32(_values1[name]) == -Int32FromInt32(256)|Int32FromInt32(13) { + val = val + int32(Int32FromInt32(SIGSTKSZ)-Int32FromInt32(MINSIGSTKSZ)) + } + return val + case (-Int32FromInt32(256) | Int32FromInt32(10)) & Int32FromInt32(255): + return 0 + } + return int32(_values1[name]) +} + +var _values1 = [251]int16{ + 0: int16(-Int32FromInt32(256) | Int32FromInt32(2)), + 1: int16(-Int32FromInt32(32768) | Int32FromInt32(RLIMIT_NPROC)), + 2: int16(100), + 3: int16(32), + 4: int16(-Int32FromInt32(32768) | Int32FromInt32(RLIMIT_NOFILE)), + 5: int16(-int32(1)), + 6: int16(TZNAME_MAX), + 7: int16(1), + 8: int16(1), + 9: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 10: int16(-int32(1)), + 11: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 12: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 13: int16(-int32(1)), + 14: int16(-int32(1)), + 15: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 16: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 17: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 18: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 19: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 20: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 21: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 22: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 23: int16(-int32(1)), + 24: int16(-int32(1)), + 25: int16(-Int32FromInt32(256) | Int32FromInt32(10)), + 26: int16(-Int32FromInt32(256) | Int32FromInt32(11)), + 27: int16(-int32(1)), + 28: int16(-Int32FromInt32(256) | Int32FromInt32(3)), + 29: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 30: int16(-Int32FromInt32(256) | Int32FromInt32(4)), + 31: int16(Int32FromInt32(_NSIG) - Int32FromInt32(1) - Int32FromInt32(31) - Int32FromInt32(3)), + 32: int16(SEM_NSEMS_MAX), + 33: int16(-Int32FromInt32(256) | Int32FromInt32(5)), + 34: int16(-int32(1)), + 35: int16(-int32(1)), + 36: int16(_POSIX2_BC_BASE_MAX), + 37: int16(_POSIX2_BC_DIM_MAX), + 38: int16(_POSIX2_BC_SCALE_MAX), + 39: int16(_POSIX2_BC_STRING_MAX), + 40: int16(COLL_WEIGHTS_MAX), + 42: int16(-int32(1)), + 43: int16(-int32(1)), + 44: int16(RE_DUP_MAX), + 46: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 47: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 48: int16(-int32(1)), + 49: int16(-int32(1)), + 50: int16(-int32(1)), + 51: int16(-int32(1)), + 52: int16(-int32(1)), + 60: int16(IOV_MAX), + 67: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 68: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 69: int16(-int32(1)), + 70: int16(-int32(1)), + 71: int16(256), + 72: int16(TTY_NAME_MAX), + 73: int16(PTHREAD_DESTRUCTOR_ITERATIONS), + 74: int16(PTHREAD_KEYS_MAX), + 75: int16(PTHREAD_STACK_MIN), + 76: int16(-int32(1)), + 77: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 78: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 79: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 80: int16(-int32(1)), + 81: int16(-int32(1)), + 82: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 83: int16(-Int32FromInt32(256) | Int32FromInt32(6)), + 84: int16(-Int32FromInt32(256) | Int32FromInt32(7)), + 85: int16(-Int32FromInt32(256) | Int32FromInt32(8)), + 86: int16(-Int32FromInt32(256) | Int32FromInt32(9)), + 87: int16(-int32(1)), + 88: int16(-int32(1)), + 89: int16(_XOPEN_VERSION), + 90: int16(_XOPEN_VERSION), + 91: int16(1), + 92: int16(-int32(1)), + 93: int16(1), + 94: int16(1), + 95: int16(-int32(1)), + 97: int16(-int32(1)), + 98: int16(-int32(1)), + 99: int16(-int32(1)), + 100: int16(-int32(1)), + 109: int16(NZERO), + 125: int16(-int32(1)), + 126: int16(1), + 127: int16(-int32(1)), + 128: int16(-int32(1)), + 129: int16(-int32(1)), + 130: int16(-int32(1)), + 131: int16(-int32(1)), + 132: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 133: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 137: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 138: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 139: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 149: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 153: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 154: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 155: int16(1), + 157: int16(1), + 159: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 160: int16(-int32(1)), + 161: int16(-int32(1)), + 164: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 165: int16(-int32(1)), + 168: int16(-int32(1)), + 169: int16(-int32(1)), + 170: int16(-int32(1)), + 171: int16(-int32(1)), + 172: int16(-int32(1)), + 173: int16(SYMLOOP_MAX), + 174: int16(-Int32FromInt32(256) | Int32FromInt32(10)), + 175: int16(-int32(1)), + 176: int16(-int32(1)), + 177: int16(1), + 178: int16(-int32(1)), + 179: int16(-int32(1)), + 180: int16(HOST_NAME_MAX), + 181: int16(-int32(1)), + 182: int16(-int32(1)), + 183: int16(-int32(1)), + 184: int16(-int32(1)), + 235: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 236: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 237: int16(-int32(1)), + 238: int16(1), + 239: int16(-int32(1)), + 240: int16(-int32(1)), + 241: int16(-int32(1)), + 242: int16(-int32(1)), + 243: int16(-int32(1)), + 244: int16(-int32(1)), + 245: int16(-int32(1)), + 246: int16(-Int32FromInt32(256) | Int32FromInt32(10)), + 247: int16(-int32(1)), + 248: int16(-int32(1)), + 249: int16(-Int32FromInt32(256) | Int32FromInt32(12)), + 250: int16(-Int32FromInt32(256) | Int32FromInt32(13)), +} + +type Tcrypt_data = struct { + Finitialized int32 + F__buf [256]uint8 +} + +func Xcrypt(tls *TLS, key uintptr, salt uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v salt=%v, (%v:)", tls, key, salt, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__crypt_r(tls, key, salt, uintptr(unsafe.Pointer(&_buf))) +} + +/* This buffer is sufficiently large for all + * currently-supported hash types. It needs to be updated if + * longer hashes are added. The cast to struct crypt_data * is + * purely to meet the public API requirements of the crypt_r + * function; the implementation of crypt_r uses the object + * purely as a char buffer. */ +var _buf [128]uint8 + +const BF_N = 16 + +type Tlocale_t = uintptr + +type TBF_word = uint32 + +type TBF_word_signed = int32 + +/* Number of Blowfish rounds, this is also hardcoded into a few places */ + +type TBF_key = [18]TBF_word + +type TBF_ctx = struct { + FPS [0][1042]TBF_word + Fs struct { + FP TBF_key + FS [4][256]TBF_word + } +} + +// C documentation +// +// /* +// * Magic IV for 64 Blowfish encryptions that we do at the end. +// * The string is "OrpheanBeholderScryDoubt" on big-endian. +// */ +var _BF_magic_w = [6]TBF_word{ + 0: uint32(0x4F727068), + 1: uint32(0x65616E42), + 2: uint32(0x65686F6C), + 3: uint32(0x64657253), + 4: uint32(0x63727944), + 5: uint32(0x6F756274), +} + +// C documentation +// +// /* +// * P-box and S-box tables initialized with digits of Pi. +// */ +var _BF_init_state = *(*TBF_ctx)(unsafe.Pointer(&struct { + FP TBF_key + FS [4][256]TBF_word +}{ + FP: TBF_key{ + 0: uint32(0x243f6a88), + 1: uint32(0x85a308d3), + 2: uint32(0x13198a2e), + 3: uint32(0x03707344), + 4: uint32(0xa4093822), + 5: uint32(0x299f31d0), + 6: uint32(0x082efa98), + 7: uint32(0xec4e6c89), + 8: uint32(0x452821e6), + 9: uint32(0x38d01377), + 10: uint32(0xbe5466cf), + 11: uint32(0x34e90c6c), + 12: uint32(0xc0ac29b7), + 13: uint32(0xc97c50dd), + 14: uint32(0x3f84d5b5), + 15: uint32(0xb5470917), + 16: uint32(0x9216d5d9), + 17: uint32(0x8979fb1b), + }, + FS: [4][256]TBF_word{ + 0: { + 0: uint32(0xd1310ba6), + 1: uint32(0x98dfb5ac), + 2: uint32(0x2ffd72db), + 3: uint32(0xd01adfb7), + 4: uint32(0xb8e1afed), + 5: uint32(0x6a267e96), + 6: uint32(0xba7c9045), + 7: uint32(0xf12c7f99), + 8: uint32(0x24a19947), + 9: uint32(0xb3916cf7), + 10: uint32(0x0801f2e2), + 11: uint32(0x858efc16), + 12: uint32(0x636920d8), + 13: uint32(0x71574e69), + 14: uint32(0xa458fea3), + 15: uint32(0xf4933d7e), + 16: uint32(0x0d95748f), + 17: uint32(0x728eb658), + 18: uint32(0x718bcd58), + 19: uint32(0x82154aee), + 20: uint32(0x7b54a41d), + 21: uint32(0xc25a59b5), + 22: uint32(0x9c30d539), + 23: uint32(0x2af26013), + 24: uint32(0xc5d1b023), + 25: uint32(0x286085f0), + 26: uint32(0xca417918), + 27: uint32(0xb8db38ef), + 28: uint32(0x8e79dcb0), + 29: uint32(0x603a180e), + 30: uint32(0x6c9e0e8b), + 31: uint32(0xb01e8a3e), + 32: uint32(0xd71577c1), + 33: uint32(0xbd314b27), + 34: uint32(0x78af2fda), + 35: uint32(0x55605c60), + 36: uint32(0xe65525f3), + 37: uint32(0xaa55ab94), + 38: uint32(0x57489862), + 39: uint32(0x63e81440), + 40: uint32(0x55ca396a), + 41: uint32(0x2aab10b6), + 42: uint32(0xb4cc5c34), + 43: uint32(0x1141e8ce), + 44: uint32(0xa15486af), + 45: uint32(0x7c72e993), + 46: uint32(0xb3ee1411), + 47: uint32(0x636fbc2a), + 48: uint32(0x2ba9c55d), + 49: uint32(0x741831f6), + 50: uint32(0xce5c3e16), + 51: uint32(0x9b87931e), + 52: uint32(0xafd6ba33), + 53: uint32(0x6c24cf5c), + 54: uint32(0x7a325381), + 55: uint32(0x28958677), + 56: uint32(0x3b8f4898), + 57: uint32(0x6b4bb9af), + 58: uint32(0xc4bfe81b), + 59: uint32(0x66282193), + 60: uint32(0x61d809cc), + 61: uint32(0xfb21a991), + 62: uint32(0x487cac60), + 63: uint32(0x5dec8032), + 64: uint32(0xef845d5d), + 65: uint32(0xe98575b1), + 66: uint32(0xdc262302), + 67: uint32(0xeb651b88), + 68: uint32(0x23893e81), + 69: uint32(0xd396acc5), + 70: uint32(0x0f6d6ff3), + 71: uint32(0x83f44239), + 72: uint32(0x2e0b4482), + 73: uint32(0xa4842004), + 74: uint32(0x69c8f04a), + 75: uint32(0x9e1f9b5e), + 76: uint32(0x21c66842), + 77: uint32(0xf6e96c9a), + 78: uint32(0x670c9c61), + 79: uint32(0xabd388f0), + 80: uint32(0x6a51a0d2), + 81: uint32(0xd8542f68), + 82: uint32(0x960fa728), + 83: uint32(0xab5133a3), + 84: uint32(0x6eef0b6c), + 85: uint32(0x137a3be4), + 86: uint32(0xba3bf050), + 87: uint32(0x7efb2a98), + 88: uint32(0xa1f1651d), + 89: uint32(0x39af0176), + 90: uint32(0x66ca593e), + 91: uint32(0x82430e88), + 92: uint32(0x8cee8619), + 93: uint32(0x456f9fb4), + 94: uint32(0x7d84a5c3), + 95: uint32(0x3b8b5ebe), + 96: uint32(0xe06f75d8), + 97: uint32(0x85c12073), + 98: uint32(0x401a449f), + 99: uint32(0x56c16aa6), + 100: uint32(0x4ed3aa62), + 101: uint32(0x363f7706), + 102: uint32(0x1bfedf72), + 103: uint32(0x429b023d), + 104: uint32(0x37d0d724), + 105: uint32(0xd00a1248), + 106: uint32(0xdb0fead3), + 107: uint32(0x49f1c09b), + 108: uint32(0x075372c9), + 109: uint32(0x80991b7b), + 110: uint32(0x25d479d8), + 111: uint32(0xf6e8def7), + 112: uint32(0xe3fe501a), + 113: uint32(0xb6794c3b), + 114: uint32(0x976ce0bd), + 115: uint32(0x04c006ba), + 116: uint32(0xc1a94fb6), + 117: uint32(0x409f60c4), + 118: uint32(0x5e5c9ec2), + 119: uint32(0x196a2463), + 120: uint32(0x68fb6faf), + 121: uint32(0x3e6c53b5), + 122: uint32(0x1339b2eb), + 123: uint32(0x3b52ec6f), + 124: uint32(0x6dfc511f), + 125: uint32(0x9b30952c), + 126: uint32(0xcc814544), + 127: uint32(0xaf5ebd09), + 128: uint32(0xbee3d004), + 129: uint32(0xde334afd), + 130: uint32(0x660f2807), + 131: uint32(0x192e4bb3), + 132: uint32(0xc0cba857), + 133: uint32(0x45c8740f), + 134: uint32(0xd20b5f39), + 135: uint32(0xb9d3fbdb), + 136: uint32(0x5579c0bd), + 137: uint32(0x1a60320a), + 138: uint32(0xd6a100c6), + 139: uint32(0x402c7279), + 140: uint32(0x679f25fe), + 141: uint32(0xfb1fa3cc), + 142: uint32(0x8ea5e9f8), + 143: uint32(0xdb3222f8), + 144: uint32(0x3c7516df), + 145: uint32(0xfd616b15), + 146: uint32(0x2f501ec8), + 147: uint32(0xad0552ab), + 148: uint32(0x323db5fa), + 149: uint32(0xfd238760), + 150: uint32(0x53317b48), + 151: uint32(0x3e00df82), + 152: uint32(0x9e5c57bb), + 153: uint32(0xca6f8ca0), + 154: uint32(0x1a87562e), + 155: uint32(0xdf1769db), + 156: uint32(0xd542a8f6), + 157: uint32(0x287effc3), + 158: uint32(0xac6732c6), + 159: uint32(0x8c4f5573), + 160: uint32(0x695b27b0), + 161: uint32(0xbbca58c8), + 162: uint32(0xe1ffa35d), + 163: uint32(0xb8f011a0), + 164: uint32(0x10fa3d98), + 165: uint32(0xfd2183b8), + 166: uint32(0x4afcb56c), + 167: uint32(0x2dd1d35b), + 168: uint32(0x9a53e479), + 169: uint32(0xb6f84565), + 170: uint32(0xd28e49bc), + 171: uint32(0x4bfb9790), + 172: uint32(0xe1ddf2da), + 173: uint32(0xa4cb7e33), + 174: uint32(0x62fb1341), + 175: uint32(0xcee4c6e8), + 176: uint32(0xef20cada), + 177: uint32(0x36774c01), + 178: uint32(0xd07e9efe), + 179: uint32(0x2bf11fb4), + 180: uint32(0x95dbda4d), + 181: uint32(0xae909198), + 182: uint32(0xeaad8e71), + 183: uint32(0x6b93d5a0), + 184: uint32(0xd08ed1d0), + 185: uint32(0xafc725e0), + 186: uint32(0x8e3c5b2f), + 187: uint32(0x8e7594b7), + 188: uint32(0x8ff6e2fb), + 189: uint32(0xf2122b64), + 190: uint32(0x8888b812), + 191: uint32(0x900df01c), + 192: uint32(0x4fad5ea0), + 193: uint32(0x688fc31c), + 194: uint32(0xd1cff191), + 195: uint32(0xb3a8c1ad), + 196: uint32(0x2f2f2218), + 197: uint32(0xbe0e1777), + 198: uint32(0xea752dfe), + 199: uint32(0x8b021fa1), + 200: uint32(0xe5a0cc0f), + 201: uint32(0xb56f74e8), + 202: uint32(0x18acf3d6), + 203: uint32(0xce89e299), + 204: uint32(0xb4a84fe0), + 205: uint32(0xfd13e0b7), + 206: uint32(0x7cc43b81), + 207: uint32(0xd2ada8d9), + 208: uint32(0x165fa266), + 209: uint32(0x80957705), + 210: uint32(0x93cc7314), + 211: uint32(0x211a1477), + 212: uint32(0xe6ad2065), + 213: uint32(0x77b5fa86), + 214: uint32(0xc75442f5), + 215: uint32(0xfb9d35cf), + 216: uint32(0xebcdaf0c), + 217: uint32(0x7b3e89a0), + 218: uint32(0xd6411bd3), + 219: uint32(0xae1e7e49), + 220: uint32(0x00250e2d), + 221: uint32(0x2071b35e), + 222: uint32(0x226800bb), + 223: uint32(0x57b8e0af), + 224: uint32(0x2464369b), + 225: uint32(0xf009b91e), + 226: uint32(0x5563911d), + 227: uint32(0x59dfa6aa), + 228: uint32(0x78c14389), + 229: uint32(0xd95a537f), + 230: uint32(0x207d5ba2), + 231: uint32(0x02e5b9c5), + 232: uint32(0x83260376), + 233: uint32(0x6295cfa9), + 234: uint32(0x11c81968), + 235: uint32(0x4e734a41), + 236: uint32(0xb3472dca), + 237: uint32(0x7b14a94a), + 238: uint32(0x1b510052), + 239: uint32(0x9a532915), + 240: uint32(0xd60f573f), + 241: uint32(0xbc9bc6e4), + 242: uint32(0x2b60a476), + 243: uint32(0x81e67400), + 244: uint32(0x08ba6fb5), + 245: uint32(0x571be91f), + 246: uint32(0xf296ec6b), + 247: uint32(0x2a0dd915), + 248: uint32(0xb6636521), + 249: uint32(0xe7b9f9b6), + 250: uint32(0xff34052e), + 251: uint32(0xc5855664), + 252: uint32(0x53b02d5d), + 253: uint32(0xa99f8fa1), + 254: uint32(0x08ba4799), + 255: uint32(0x6e85076a), + }, + 1: { + 0: uint32(0x4b7a70e9), + 1: uint32(0xb5b32944), + 2: uint32(0xdb75092e), + 3: uint32(0xc4192623), + 4: uint32(0xad6ea6b0), + 5: uint32(0x49a7df7d), + 6: uint32(0x9cee60b8), + 7: uint32(0x8fedb266), + 8: uint32(0xecaa8c71), + 9: uint32(0x699a17ff), + 10: uint32(0x5664526c), + 11: uint32(0xc2b19ee1), + 12: uint32(0x193602a5), + 13: uint32(0x75094c29), + 14: uint32(0xa0591340), + 15: uint32(0xe4183a3e), + 16: uint32(0x3f54989a), + 17: uint32(0x5b429d65), + 18: uint32(0x6b8fe4d6), + 19: uint32(0x99f73fd6), + 20: uint32(0xa1d29c07), + 21: uint32(0xefe830f5), + 22: uint32(0x4d2d38e6), + 23: uint32(0xf0255dc1), + 24: uint32(0x4cdd2086), + 25: uint32(0x8470eb26), + 26: uint32(0x6382e9c6), + 27: uint32(0x021ecc5e), + 28: uint32(0x09686b3f), + 29: uint32(0x3ebaefc9), + 30: uint32(0x3c971814), + 31: uint32(0x6b6a70a1), + 32: uint32(0x687f3584), + 33: uint32(0x52a0e286), + 34: uint32(0xb79c5305), + 35: uint32(0xaa500737), + 36: uint32(0x3e07841c), + 37: uint32(0x7fdeae5c), + 38: uint32(0x8e7d44ec), + 39: uint32(0x5716f2b8), + 40: uint32(0xb03ada37), + 41: uint32(0xf0500c0d), + 42: uint32(0xf01c1f04), + 43: uint32(0x0200b3ff), + 44: uint32(0xae0cf51a), + 45: uint32(0x3cb574b2), + 46: uint32(0x25837a58), + 47: uint32(0xdc0921bd), + 48: uint32(0xd19113f9), + 49: uint32(0x7ca92ff6), + 50: uint32(0x94324773), + 51: uint32(0x22f54701), + 52: uint32(0x3ae5e581), + 53: uint32(0x37c2dadc), + 54: uint32(0xc8b57634), + 55: uint32(0x9af3dda7), + 56: uint32(0xa9446146), + 57: uint32(0x0fd0030e), + 58: uint32(0xecc8c73e), + 59: uint32(0xa4751e41), + 60: uint32(0xe238cd99), + 61: uint32(0x3bea0e2f), + 62: uint32(0x3280bba1), + 63: uint32(0x183eb331), + 64: uint32(0x4e548b38), + 65: uint32(0x4f6db908), + 66: uint32(0x6f420d03), + 67: uint32(0xf60a04bf), + 68: uint32(0x2cb81290), + 69: uint32(0x24977c79), + 70: uint32(0x5679b072), + 71: uint32(0xbcaf89af), + 72: uint32(0xde9a771f), + 73: uint32(0xd9930810), + 74: uint32(0xb38bae12), + 75: uint32(0xdccf3f2e), + 76: uint32(0x5512721f), + 77: uint32(0x2e6b7124), + 78: uint32(0x501adde6), + 79: uint32(0x9f84cd87), + 80: uint32(0x7a584718), + 81: uint32(0x7408da17), + 82: uint32(0xbc9f9abc), + 83: uint32(0xe94b7d8c), + 84: uint32(0xec7aec3a), + 85: uint32(0xdb851dfa), + 86: uint32(0x63094366), + 87: uint32(0xc464c3d2), + 88: uint32(0xef1c1847), + 89: uint32(0x3215d908), + 90: uint32(0xdd433b37), + 91: uint32(0x24c2ba16), + 92: uint32(0x12a14d43), + 93: uint32(0x2a65c451), + 94: uint32(0x50940002), + 95: uint32(0x133ae4dd), + 96: uint32(0x71dff89e), + 97: uint32(0x10314e55), + 98: uint32(0x81ac77d6), + 99: uint32(0x5f11199b), + 100: uint32(0x043556f1), + 101: uint32(0xd7a3c76b), + 102: uint32(0x3c11183b), + 103: uint32(0x5924a509), + 104: uint32(0xf28fe6ed), + 105: uint32(0x97f1fbfa), + 106: uint32(0x9ebabf2c), + 107: uint32(0x1e153c6e), + 108: uint32(0x86e34570), + 109: uint32(0xeae96fb1), + 110: uint32(0x860e5e0a), + 111: uint32(0x5a3e2ab3), + 112: uint32(0x771fe71c), + 113: uint32(0x4e3d06fa), + 114: uint32(0x2965dcb9), + 115: uint32(0x99e71d0f), + 116: uint32(0x803e89d6), + 117: uint32(0x5266c825), + 118: uint32(0x2e4cc978), + 119: uint32(0x9c10b36a), + 120: uint32(0xc6150eba), + 121: uint32(0x94e2ea78), + 122: uint32(0xa5fc3c53), + 123: uint32(0x1e0a2df4), + 124: uint32(0xf2f74ea7), + 125: uint32(0x361d2b3d), + 126: uint32(0x1939260f), + 127: uint32(0x19c27960), + 128: uint32(0x5223a708), + 129: uint32(0xf71312b6), + 130: uint32(0xebadfe6e), + 131: uint32(0xeac31f66), + 132: uint32(0xe3bc4595), + 133: uint32(0xa67bc883), + 134: uint32(0xb17f37d1), + 135: uint32(0x018cff28), + 136: uint32(0xc332ddef), + 137: uint32(0xbe6c5aa5), + 138: uint32(0x65582185), + 139: uint32(0x68ab9802), + 140: uint32(0xeecea50f), + 141: uint32(0xdb2f953b), + 142: uint32(0x2aef7dad), + 143: uint32(0x5b6e2f84), + 144: uint32(0x1521b628), + 145: uint32(0x29076170), + 146: uint32(0xecdd4775), + 147: uint32(0x619f1510), + 148: uint32(0x13cca830), + 149: uint32(0xeb61bd96), + 150: uint32(0x0334fe1e), + 151: uint32(0xaa0363cf), + 152: uint32(0xb5735c90), + 153: uint32(0x4c70a239), + 154: uint32(0xd59e9e0b), + 155: uint32(0xcbaade14), + 156: uint32(0xeecc86bc), + 157: uint32(0x60622ca7), + 158: uint32(0x9cab5cab), + 159: uint32(0xb2f3846e), + 160: uint32(0x648b1eaf), + 161: uint32(0x19bdf0ca), + 162: uint32(0xa02369b9), + 163: uint32(0x655abb50), + 164: uint32(0x40685a32), + 165: uint32(0x3c2ab4b3), + 166: uint32(0x319ee9d5), + 167: uint32(0xc021b8f7), + 168: uint32(0x9b540b19), + 169: uint32(0x875fa099), + 170: uint32(0x95f7997e), + 171: uint32(0x623d7da8), + 172: uint32(0xf837889a), + 173: uint32(0x97e32d77), + 174: uint32(0x11ed935f), + 175: uint32(0x16681281), + 176: uint32(0x0e358829), + 177: uint32(0xc7e61fd6), + 178: uint32(0x96dedfa1), + 179: uint32(0x7858ba99), + 180: uint32(0x57f584a5), + 181: uint32(0x1b227263), + 182: uint32(0x9b83c3ff), + 183: uint32(0x1ac24696), + 184: uint32(0xcdb30aeb), + 185: uint32(0x532e3054), + 186: uint32(0x8fd948e4), + 187: uint32(0x6dbc3128), + 188: uint32(0x58ebf2ef), + 189: uint32(0x34c6ffea), + 190: uint32(0xfe28ed61), + 191: uint32(0xee7c3c73), + 192: uint32(0x5d4a14d9), + 193: uint32(0xe864b7e3), + 194: uint32(0x42105d14), + 195: uint32(0x203e13e0), + 196: uint32(0x45eee2b6), + 197: uint32(0xa3aaabea), + 198: uint32(0xdb6c4f15), + 199: uint32(0xfacb4fd0), + 200: uint32(0xc742f442), + 201: uint32(0xef6abbb5), + 202: uint32(0x654f3b1d), + 203: uint32(0x41cd2105), + 204: uint32(0xd81e799e), + 205: uint32(0x86854dc7), + 206: uint32(0xe44b476a), + 207: uint32(0x3d816250), + 208: uint32(0xcf62a1f2), + 209: uint32(0x5b8d2646), + 210: uint32(0xfc8883a0), + 211: uint32(0xc1c7b6a3), + 212: uint32(0x7f1524c3), + 213: uint32(0x69cb7492), + 214: uint32(0x47848a0b), + 215: uint32(0x5692b285), + 216: uint32(0x095bbf00), + 217: uint32(0xad19489d), + 218: uint32(0x1462b174), + 219: uint32(0x23820e00), + 220: uint32(0x58428d2a), + 221: uint32(0x0c55f5ea), + 222: uint32(0x1dadf43e), + 223: uint32(0x233f7061), + 224: uint32(0x3372f092), + 225: uint32(0x8d937e41), + 226: uint32(0xd65fecf1), + 227: uint32(0x6c223bdb), + 228: uint32(0x7cde3759), + 229: uint32(0xcbee7460), + 230: uint32(0x4085f2a7), + 231: uint32(0xce77326e), + 232: uint32(0xa6078084), + 233: uint32(0x19f8509e), + 234: uint32(0xe8efd855), + 235: uint32(0x61d99735), + 236: uint32(0xa969a7aa), + 237: uint32(0xc50c06c2), + 238: uint32(0x5a04abfc), + 239: uint32(0x800bcadc), + 240: uint32(0x9e447a2e), + 241: uint32(0xc3453484), + 242: uint32(0xfdd56705), + 243: uint32(0x0e1e9ec9), + 244: uint32(0xdb73dbd3), + 245: uint32(0x105588cd), + 246: uint32(0x675fda79), + 247: uint32(0xe3674340), + 248: uint32(0xc5c43465), + 249: uint32(0x713e38d8), + 250: uint32(0x3d28f89e), + 251: uint32(0xf16dff20), + 252: uint32(0x153e21e7), + 253: uint32(0x8fb03d4a), + 254: uint32(0xe6e39f2b), + 255: uint32(0xdb83adf7), + }, + 2: { + 0: uint32(0xe93d5a68), + 1: uint32(0x948140f7), + 2: uint32(0xf64c261c), + 3: uint32(0x94692934), + 4: uint32(0x411520f7), + 5: uint32(0x7602d4f7), + 6: uint32(0xbcf46b2e), + 7: uint32(0xd4a20068), + 8: uint32(0xd4082471), + 9: uint32(0x3320f46a), + 10: uint32(0x43b7d4b7), + 11: uint32(0x500061af), + 12: uint32(0x1e39f62e), + 13: uint32(0x97244546), + 14: uint32(0x14214f74), + 15: uint32(0xbf8b8840), + 16: uint32(0x4d95fc1d), + 17: uint32(0x96b591af), + 18: uint32(0x70f4ddd3), + 19: uint32(0x66a02f45), + 20: uint32(0xbfbc09ec), + 21: uint32(0x03bd9785), + 22: uint32(0x7fac6dd0), + 23: uint32(0x31cb8504), + 24: uint32(0x96eb27b3), + 25: uint32(0x55fd3941), + 26: uint32(0xda2547e6), + 27: uint32(0xabca0a9a), + 28: uint32(0x28507825), + 29: uint32(0x530429f4), + 30: uint32(0x0a2c86da), + 31: uint32(0xe9b66dfb), + 32: uint32(0x68dc1462), + 33: uint32(0xd7486900), + 34: uint32(0x680ec0a4), + 35: uint32(0x27a18dee), + 36: uint32(0x4f3ffea2), + 37: uint32(0xe887ad8c), + 38: uint32(0xb58ce006), + 39: uint32(0x7af4d6b6), + 40: uint32(0xaace1e7c), + 41: uint32(0xd3375fec), + 42: uint32(0xce78a399), + 43: uint32(0x406b2a42), + 44: uint32(0x20fe9e35), + 45: uint32(0xd9f385b9), + 46: uint32(0xee39d7ab), + 47: uint32(0x3b124e8b), + 48: uint32(0x1dc9faf7), + 49: uint32(0x4b6d1856), + 50: uint32(0x26a36631), + 51: uint32(0xeae397b2), + 52: uint32(0x3a6efa74), + 53: uint32(0xdd5b4332), + 54: uint32(0x6841e7f7), + 55: uint32(0xca7820fb), + 56: uint32(0xfb0af54e), + 57: uint32(0xd8feb397), + 58: uint32(0x454056ac), + 59: uint32(0xba489527), + 60: uint32(0x55533a3a), + 61: uint32(0x20838d87), + 62: uint32(0xfe6ba9b7), + 63: uint32(0xd096954b), + 64: uint32(0x55a867bc), + 65: uint32(0xa1159a58), + 66: uint32(0xcca92963), + 67: uint32(0x99e1db33), + 68: uint32(0xa62a4a56), + 69: uint32(0x3f3125f9), + 70: uint32(0x5ef47e1c), + 71: uint32(0x9029317c), + 72: uint32(0xfdf8e802), + 73: uint32(0x04272f70), + 74: uint32(0x80bb155c), + 75: uint32(0x05282ce3), + 76: uint32(0x95c11548), + 77: uint32(0xe4c66d22), + 78: uint32(0x48c1133f), + 79: uint32(0xc70f86dc), + 80: uint32(0x07f9c9ee), + 81: uint32(0x41041f0f), + 82: uint32(0x404779a4), + 83: uint32(0x5d886e17), + 84: uint32(0x325f51eb), + 85: uint32(0xd59bc0d1), + 86: uint32(0xf2bcc18f), + 87: uint32(0x41113564), + 88: uint32(0x257b7834), + 89: uint32(0x602a9c60), + 90: uint32(0xdff8e8a3), + 91: uint32(0x1f636c1b), + 92: uint32(0x0e12b4c2), + 93: uint32(0x02e1329e), + 94: uint32(0xaf664fd1), + 95: uint32(0xcad18115), + 96: uint32(0x6b2395e0), + 97: uint32(0x333e92e1), + 98: uint32(0x3b240b62), + 99: uint32(0xeebeb922), + 100: uint32(0x85b2a20e), + 101: uint32(0xe6ba0d99), + 102: uint32(0xde720c8c), + 103: uint32(0x2da2f728), + 104: uint32(0xd0127845), + 105: uint32(0x95b794fd), + 106: uint32(0x647d0862), + 107: uint32(0xe7ccf5f0), + 108: uint32(0x5449a36f), + 109: uint32(0x877d48fa), + 110: uint32(0xc39dfd27), + 111: uint32(0xf33e8d1e), + 112: uint32(0x0a476341), + 113: uint32(0x992eff74), + 114: uint32(0x3a6f6eab), + 115: uint32(0xf4f8fd37), + 116: uint32(0xa812dc60), + 117: uint32(0xa1ebddf8), + 118: uint32(0x991be14c), + 119: uint32(0xdb6e6b0d), + 120: uint32(0xc67b5510), + 121: uint32(0x6d672c37), + 122: uint32(0x2765d43b), + 123: uint32(0xdcd0e804), + 124: uint32(0xf1290dc7), + 125: uint32(0xcc00ffa3), + 126: uint32(0xb5390f92), + 127: uint32(0x690fed0b), + 128: uint32(0x667b9ffb), + 129: uint32(0xcedb7d9c), + 130: uint32(0xa091cf0b), + 131: uint32(0xd9155ea3), + 132: uint32(0xbb132f88), + 133: uint32(0x515bad24), + 134: uint32(0x7b9479bf), + 135: uint32(0x763bd6eb), + 136: uint32(0x37392eb3), + 137: uint32(0xcc115979), + 138: uint32(0x8026e297), + 139: uint32(0xf42e312d), + 140: uint32(0x6842ada7), + 141: uint32(0xc66a2b3b), + 142: uint32(0x12754ccc), + 143: uint32(0x782ef11c), + 144: uint32(0x6a124237), + 145: uint32(0xb79251e7), + 146: uint32(0x06a1bbe6), + 147: uint32(0x4bfb6350), + 148: uint32(0x1a6b1018), + 149: uint32(0x11caedfa), + 150: uint32(0x3d25bdd8), + 151: uint32(0xe2e1c3c9), + 152: uint32(0x44421659), + 153: uint32(0x0a121386), + 154: uint32(0xd90cec6e), + 155: uint32(0xd5abea2a), + 156: uint32(0x64af674e), + 157: uint32(0xda86a85f), + 158: uint32(0xbebfe988), + 159: uint32(0x64e4c3fe), + 160: uint32(0x9dbc8057), + 161: uint32(0xf0f7c086), + 162: uint32(0x60787bf8), + 163: uint32(0x6003604d), + 164: uint32(0xd1fd8346), + 165: uint32(0xf6381fb0), + 166: uint32(0x7745ae04), + 167: uint32(0xd736fccc), + 168: uint32(0x83426b33), + 169: uint32(0xf01eab71), + 170: uint32(0xb0804187), + 171: uint32(0x3c005e5f), + 172: uint32(0x77a057be), + 173: uint32(0xbde8ae24), + 174: uint32(0x55464299), + 175: uint32(0xbf582e61), + 176: uint32(0x4e58f48f), + 177: uint32(0xf2ddfda2), + 178: uint32(0xf474ef38), + 179: uint32(0x8789bdc2), + 180: uint32(0x5366f9c3), + 181: uint32(0xc8b38e74), + 182: uint32(0xb475f255), + 183: uint32(0x46fcd9b9), + 184: uint32(0x7aeb2661), + 185: uint32(0x8b1ddf84), + 186: uint32(0x846a0e79), + 187: uint32(0x915f95e2), + 188: uint32(0x466e598e), + 189: uint32(0x20b45770), + 190: uint32(0x8cd55591), + 191: uint32(0xc902de4c), + 192: uint32(0xb90bace1), + 193: uint32(0xbb8205d0), + 194: uint32(0x11a86248), + 195: uint32(0x7574a99e), + 196: uint32(0xb77f19b6), + 197: uint32(0xe0a9dc09), + 198: uint32(0x662d09a1), + 199: uint32(0xc4324633), + 200: uint32(0xe85a1f02), + 201: uint32(0x09f0be8c), + 202: uint32(0x4a99a025), + 203: uint32(0x1d6efe10), + 204: uint32(0x1ab93d1d), + 205: uint32(0x0ba5a4df), + 206: uint32(0xa186f20f), + 207: uint32(0x2868f169), + 208: uint32(0xdcb7da83), + 209: uint32(0x573906fe), + 210: uint32(0xa1e2ce9b), + 211: uint32(0x4fcd7f52), + 212: uint32(0x50115e01), + 213: uint32(0xa70683fa), + 214: uint32(0xa002b5c4), + 215: uint32(0x0de6d027), + 216: uint32(0x9af88c27), + 217: uint32(0x773f8641), + 218: uint32(0xc3604c06), + 219: uint32(0x61a806b5), + 220: uint32(0xf0177a28), + 221: uint32(0xc0f586e0), + 222: uint32(0x006058aa), + 223: uint32(0x30dc7d62), + 224: uint32(0x11e69ed7), + 225: uint32(0x2338ea63), + 226: uint32(0x53c2dd94), + 227: uint32(0xc2c21634), + 228: uint32(0xbbcbee56), + 229: uint32(0x90bcb6de), + 230: uint32(0xebfc7da1), + 231: uint32(0xce591d76), + 232: uint32(0x6f05e409), + 233: uint32(0x4b7c0188), + 234: uint32(0x39720a3d), + 235: uint32(0x7c927c24), + 236: uint32(0x86e3725f), + 237: uint32(0x724d9db9), + 238: uint32(0x1ac15bb4), + 239: uint32(0xd39eb8fc), + 240: uint32(0xed545578), + 241: uint32(0x08fca5b5), + 242: uint32(0xd83d7cd3), + 243: uint32(0x4dad0fc4), + 244: uint32(0x1e50ef5e), + 245: uint32(0xb161e6f8), + 246: uint32(0xa28514d9), + 247: uint32(0x6c51133c), + 248: uint32(0x6fd5c7e7), + 249: uint32(0x56e14ec4), + 250: uint32(0x362abfce), + 251: uint32(0xddc6c837), + 252: uint32(0xd79a3234), + 253: uint32(0x92638212), + 254: uint32(0x670efa8e), + 255: uint32(0x406000e0), + }, + 3: { + 0: uint32(0x3a39ce37), + 1: uint32(0xd3faf5cf), + 2: uint32(0xabc27737), + 3: uint32(0x5ac52d1b), + 4: uint32(0x5cb0679e), + 5: uint32(0x4fa33742), + 6: uint32(0xd3822740), + 7: uint32(0x99bc9bbe), + 8: uint32(0xd5118e9d), + 9: uint32(0xbf0f7315), + 10: uint32(0xd62d1c7e), + 11: uint32(0xc700c47b), + 12: uint32(0xb78c1b6b), + 13: uint32(0x21a19045), + 14: uint32(0xb26eb1be), + 15: uint32(0x6a366eb4), + 16: uint32(0x5748ab2f), + 17: uint32(0xbc946e79), + 18: uint32(0xc6a376d2), + 19: uint32(0x6549c2c8), + 20: uint32(0x530ff8ee), + 21: uint32(0x468dde7d), + 22: uint32(0xd5730a1d), + 23: uint32(0x4cd04dc6), + 24: uint32(0x2939bbdb), + 25: uint32(0xa9ba4650), + 26: uint32(0xac9526e8), + 27: uint32(0xbe5ee304), + 28: uint32(0xa1fad5f0), + 29: uint32(0x6a2d519a), + 30: uint32(0x63ef8ce2), + 31: uint32(0x9a86ee22), + 32: uint32(0xc089c2b8), + 33: uint32(0x43242ef6), + 34: uint32(0xa51e03aa), + 35: uint32(0x9cf2d0a4), + 36: uint32(0x83c061ba), + 37: uint32(0x9be96a4d), + 38: uint32(0x8fe51550), + 39: uint32(0xba645bd6), + 40: uint32(0x2826a2f9), + 41: uint32(0xa73a3ae1), + 42: uint32(0x4ba99586), + 43: uint32(0xef5562e9), + 44: uint32(0xc72fefd3), + 45: uint32(0xf752f7da), + 46: uint32(0x3f046f69), + 47: uint32(0x77fa0a59), + 48: uint32(0x80e4a915), + 49: uint32(0x87b08601), + 50: uint32(0x9b09e6ad), + 51: uint32(0x3b3ee593), + 52: uint32(0xe990fd5a), + 53: uint32(0x9e34d797), + 54: uint32(0x2cf0b7d9), + 55: uint32(0x022b8b51), + 56: uint32(0x96d5ac3a), + 57: uint32(0x017da67d), + 58: uint32(0xd1cf3ed6), + 59: uint32(0x7c7d2d28), + 60: uint32(0x1f9f25cf), + 61: uint32(0xadf2b89b), + 62: uint32(0x5ad6b472), + 63: uint32(0x5a88f54c), + 64: uint32(0xe029ac71), + 65: uint32(0xe019a5e6), + 66: uint32(0x47b0acfd), + 67: uint32(0xed93fa9b), + 68: uint32(0xe8d3c48d), + 69: uint32(0x283b57cc), + 70: uint32(0xf8d56629), + 71: uint32(0x79132e28), + 72: uint32(0x785f0191), + 73: uint32(0xed756055), + 74: uint32(0xf7960e44), + 75: uint32(0xe3d35e8c), + 76: uint32(0x15056dd4), + 77: uint32(0x88f46dba), + 78: uint32(0x03a16125), + 79: uint32(0x0564f0bd), + 80: uint32(0xc3eb9e15), + 81: uint32(0x3c9057a2), + 82: uint32(0x97271aec), + 83: uint32(0xa93a072a), + 84: uint32(0x1b3f6d9b), + 85: uint32(0x1e6321f5), + 86: uint32(0xf59c66fb), + 87: uint32(0x26dcf319), + 88: uint32(0x7533d928), + 89: uint32(0xb155fdf5), + 90: uint32(0x03563482), + 91: uint32(0x8aba3cbb), + 92: uint32(0x28517711), + 93: uint32(0xc20ad9f8), + 94: uint32(0xabcc5167), + 95: uint32(0xccad925f), + 96: uint32(0x4de81751), + 97: uint32(0x3830dc8e), + 98: uint32(0x379d5862), + 99: uint32(0x9320f991), + 100: uint32(0xea7a90c2), + 101: uint32(0xfb3e7bce), + 102: uint32(0x5121ce64), + 103: uint32(0x774fbe32), + 104: uint32(0xa8b6e37e), + 105: uint32(0xc3293d46), + 106: uint32(0x48de5369), + 107: uint32(0x6413e680), + 108: uint32(0xa2ae0810), + 109: uint32(0xdd6db224), + 110: uint32(0x69852dfd), + 111: uint32(0x09072166), + 112: uint32(0xb39a460a), + 113: uint32(0x6445c0dd), + 114: uint32(0x586cdecf), + 115: uint32(0x1c20c8ae), + 116: uint32(0x5bbef7dd), + 117: uint32(0x1b588d40), + 118: uint32(0xccd2017f), + 119: uint32(0x6bb4e3bb), + 120: uint32(0xdda26a7e), + 121: uint32(0x3a59ff45), + 122: uint32(0x3e350a44), + 123: uint32(0xbcb4cdd5), + 124: uint32(0x72eacea8), + 125: uint32(0xfa6484bb), + 126: uint32(0x8d6612ae), + 127: uint32(0xbf3c6f47), + 128: uint32(0xd29be463), + 129: uint32(0x542f5d9e), + 130: uint32(0xaec2771b), + 131: uint32(0xf64e6370), + 132: uint32(0x740e0d8d), + 133: uint32(0xe75b1357), + 134: uint32(0xf8721671), + 135: uint32(0xaf537d5d), + 136: uint32(0x4040cb08), + 137: uint32(0x4eb4e2cc), + 138: uint32(0x34d2466a), + 139: uint32(0x0115af84), + 140: uint32(0xe1b00428), + 141: uint32(0x95983a1d), + 142: uint32(0x06b89fb4), + 143: uint32(0xce6ea048), + 144: uint32(0x6f3f3b82), + 145: uint32(0x3520ab82), + 146: uint32(0x011a1d4b), + 147: uint32(0x277227f8), + 148: uint32(0x611560b1), + 149: uint32(0xe7933fdc), + 150: uint32(0xbb3a792b), + 151: uint32(0x344525bd), + 152: uint32(0xa08839e1), + 153: uint32(0x51ce794b), + 154: uint32(0x2f32c9b7), + 155: uint32(0xa01fbac9), + 156: uint32(0xe01cc87e), + 157: uint32(0xbcc7d1f6), + 158: uint32(0xcf0111c3), + 159: uint32(0xa1e8aac7), + 160: uint32(0x1a908749), + 161: uint32(0xd44fbd9a), + 162: uint32(0xd0dadecb), + 163: uint32(0xd50ada38), + 164: uint32(0x0339c32a), + 165: uint32(0xc6913667), + 166: uint32(0x8df9317c), + 167: uint32(0xe0b12b4f), + 168: uint32(0xf79e59b7), + 169: uint32(0x43f5bb3a), + 170: uint32(0xf2d519ff), + 171: uint32(0x27d9459c), + 172: uint32(0xbf97222c), + 173: uint32(0x15e6fc2a), + 174: uint32(0x0f91fc71), + 175: uint32(0x9b941525), + 176: uint32(0xfae59361), + 177: uint32(0xceb69ceb), + 178: uint32(0xc2a86459), + 179: uint32(0x12baa8d1), + 180: uint32(0xb6c1075e), + 181: uint32(0xe3056a0c), + 182: uint32(0x10d25065), + 183: uint32(0xcb03a442), + 184: uint32(0xe0ec6e0e), + 185: uint32(0x1698db3b), + 186: uint32(0x4c98a0be), + 187: uint32(0x3278e964), + 188: uint32(0x9f1f9532), + 189: uint32(0xe0d392df), + 190: uint32(0xd3a0342b), + 191: uint32(0x8971f21e), + 192: uint32(0x1b0a7441), + 193: uint32(0x4ba3348c), + 194: uint32(0xc5be7120), + 195: uint32(0xc37632d8), + 196: uint32(0xdf359f8d), + 197: uint32(0x9b992f2e), + 198: uint32(0xe60b6f47), + 199: uint32(0x0fe3f11d), + 200: uint32(0xe54cda54), + 201: uint32(0x1edad891), + 202: uint32(0xce6279cf), + 203: uint32(0xcd3e7e6f), + 204: uint32(0x1618b166), + 205: uint32(0xfd2c1d05), + 206: uint32(0x848fd2c5), + 207: uint32(0xf6fb2299), + 208: uint32(0xf523f357), + 209: uint32(0xa6327623), + 210: uint32(0x93a83531), + 211: uint32(0x56cccd02), + 212: uint32(0xacf08162), + 213: uint32(0x5a75ebb5), + 214: uint32(0x6e163697), + 215: uint32(0x88d273cc), + 216: uint32(0xde966292), + 217: uint32(0x81b949d0), + 218: uint32(0x4c50901b), + 219: uint32(0x71c65614), + 220: uint32(0xe6c6c7bd), + 221: uint32(0x327a140a), + 222: uint32(0x45e1d006), + 223: uint32(0xc3f27b9a), + 224: uint32(0xc9aa53fd), + 225: uint32(0x62a80f00), + 226: uint32(0xbb25bfe2), + 227: uint32(0x35bdd2f6), + 228: uint32(0x71126905), + 229: uint32(0xb2040222), + 230: uint32(0xb6cbcf7c), + 231: uint32(0xcd769c2b), + 232: uint32(0x53113ec0), + 233: uint32(0x1640e3d3), + 234: uint32(0x38abbd60), + 235: uint32(0x2547adf0), + 236: uint32(0xba38209c), + 237: uint32(0xf746ce76), + 238: uint32(0x77afa1c5), + 239: uint32(0x20756060), + 240: uint32(0x85cbfe4e), + 241: uint32(0x8ae88dd8), + 242: uint32(0x7aaaf9b0), + 243: uint32(0x4cf9aa7e), + 244: uint32(0x1948c25c), + 245: uint32(0x02fb8a8c), + 246: uint32(0x01c36ae4), + 247: uint32(0xd6ebe1f9), + 248: uint32(0x90d4f869), + 249: uint32(0xa65cdea0), + 250: uint32(0x3f09252d), + 251: uint32(0xc208e69f), + 252: uint32(0xb74e6132), + 253: uint32(0xce77e25b), + 254: uint32(0x578fdfe3), + 255: uint32(0x3ac372e6), + }, + }, +})) + +var _BF_itoa64 = [65]uint8{'.', '/', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9'} + +var _BF_atoi64 = [96]uint8{ + 0: uint8(64), + 1: uint8(64), + 2: uint8(64), + 3: uint8(64), + 4: uint8(64), + 5: uint8(64), + 6: uint8(64), + 7: uint8(64), + 8: uint8(64), + 9: uint8(64), + 10: uint8(64), + 11: uint8(64), + 12: uint8(64), + 13: uint8(64), + 15: uint8(1), + 16: uint8(54), + 17: uint8(55), + 18: uint8(56), + 19: uint8(57), + 20: uint8(58), + 21: uint8(59), + 22: uint8(60), + 23: uint8(61), + 24: uint8(62), + 25: uint8(63), + 26: uint8(64), + 27: uint8(64), + 28: uint8(64), + 29: uint8(64), + 30: uint8(64), + 31: uint8(64), + 32: uint8(64), + 33: uint8(2), + 34: uint8(3), + 35: uint8(4), + 36: uint8(5), + 37: uint8(6), + 38: uint8(7), + 39: uint8(8), + 40: uint8(9), + 41: uint8(10), + 42: uint8(11), + 43: uint8(12), + 44: uint8(13), + 45: uint8(14), + 46: uint8(15), + 47: uint8(16), + 48: uint8(17), + 49: uint8(18), + 50: uint8(19), + 51: uint8(20), + 52: uint8(21), + 53: uint8(22), + 54: uint8(23), + 55: uint8(24), + 56: uint8(25), + 57: uint8(26), + 58: uint8(27), + 59: uint8(64), + 60: uint8(64), + 61: uint8(64), + 62: uint8(64), + 63: uint8(64), + 64: uint8(64), + 65: uint8(28), + 66: uint8(29), + 67: uint8(30), + 68: uint8(31), + 69: uint8(32), + 70: uint8(33), + 71: uint8(34), + 72: uint8(35), + 73: uint8(36), + 74: uint8(37), + 75: uint8(38), + 76: uint8(39), + 77: uint8(40), + 78: uint8(41), + 79: uint8(42), + 80: uint8(43), + 81: uint8(44), + 82: uint8(45), + 83: uint8(46), + 84: uint8(47), + 85: uint8(48), + 86: uint8(49), + 87: uint8(50), + 88: uint8(51), + 89: uint8(52), + 90: uint8(53), + 91: uint8(64), + 92: uint8(64), + 93: uint8(64), + 94: uint8(64), + 95: uint8(64), +} + +func _BF_decode(tls *TLS, dst uintptr, src uintptr, size int32) (r int32) { + var c1, c2, c3, c4, tmp uint32 + var dptr, end, sptr, v1 uintptr + _, _, _, _, _, _, _, _, _ = c1, c2, c3, c4, dptr, end, sptr, tmp, v1 + dptr = dst + end = dptr + uintptr(size) + sptr = src + for cond := true; cond; cond = dptr < end { + v1 = sptr + sptr = sptr + 1 + tmp = uint32(**(**uint8)(__ccgo_up(v1))) + tmp = tmp - uint32(0x20) + if tmp >= uint32(0x60) { + return -int32(1) + } + tmp = uint32(_BF_atoi64[tmp]) + if tmp > uint32(63) { + return -int32(1) + } + c1 = tmp + v1 = sptr + sptr = sptr + 1 + tmp = uint32(**(**uint8)(__ccgo_up(v1))) + tmp = tmp - uint32(0x20) + if tmp >= uint32(0x60) { + return -int32(1) + } + tmp = uint32(_BF_atoi64[tmp]) + if tmp > uint32(63) { + return -int32(1) + } + c2 = tmp + v1 = dptr + dptr = dptr + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(c1<>int32(4)) + if dptr >= end { + break + } + v1 = sptr + sptr = sptr + 1 + tmp = uint32(**(**uint8)(__ccgo_up(v1))) + tmp = tmp - uint32(0x20) + if tmp >= uint32(0x60) { + return -int32(1) + } + tmp = uint32(_BF_atoi64[tmp]) + if tmp > uint32(63) { + return -int32(1) + } + c3 = tmp + v1 = dptr + dptr = dptr + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(c2&uint32(0x0F)<>int32(2)) + if dptr >= end { + break + } + v1 = sptr + sptr = sptr + 1 + tmp = uint32(**(**uint8)(__ccgo_up(v1))) + tmp = tmp - uint32(0x20) + if tmp >= uint32(0x60) { + return -int32(1) + } + tmp = uint32(_BF_atoi64[tmp]) + if tmp > uint32(63) { + return -int32(1) + } + c4 = tmp + v1 = dptr + dptr = dptr + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(c3&uint32(0x03)<>int32(2)] + c1 = c1 & uint32(0x03) << int32(4) + if sptr >= end { + v1 = dptr + dptr = dptr + 1 + **(**uint8)(__ccgo_up(v1)) = _BF_itoa64[c1] + break + } + v1 = sptr + sptr = sptr + 1 + c2 = uint32(**(**uint8)(__ccgo_up(v1))) + c1 = c1 | c2>>int32(4) + v1 = dptr + dptr = dptr + 1 + **(**uint8)(__ccgo_up(v1)) = _BF_itoa64[c1] + c1 = c2 & uint32(0x0f) << int32(2) + if sptr >= end { + v1 = dptr + dptr = dptr + 1 + **(**uint8)(__ccgo_up(v1)) = _BF_itoa64[c1] + break + } + v1 = sptr + sptr = sptr + 1 + c2 = uint32(**(**uint8)(__ccgo_up(v1))) + c1 = c1 | c2>>int32(6) + v1 = dptr + dptr = dptr + 1 + **(**uint8)(__ccgo_up(v1)) = _BF_itoa64[c1] + v1 = dptr + dptr = dptr + 1 + **(**uint8)(__ccgo_up(v1)) = _BF_itoa64[c2&uint32(0x3f)] + } +} + +func _BF_swap(tls *TLS, x uintptr, count int32) { + var tmp TBF_word + var v1, v2 int32 + var v4 uintptr + _, _, _, _ = tmp, v1, v2, v4 + v1 = int32(1) + if *(*uint8)(unsafe.Pointer(&v1)) != 0 { + for { + tmp = **(**TBF_word)(__ccgo_up(x)) + tmp = tmp<>Int32FromInt32(16) + v4 = x + x += 4 + **(**TBF_word)(__ccgo_up(v4)) = tmp&uint32(0x00FF00FF)<>Int32FromInt32(8)&uint32(0x00FF00FF) + goto _3 + _3: + ; + count = count - 1 + v2 = count + if !(v2 != 0) { + break + } + } + } +} + +func _BF_encrypt(tls *TLS, ctx uintptr, L TBF_word, R TBF_word, start uintptr, end uintptr) (r TBF_word) { + var i int32 + var ptr, v2 uintptr + var tmp1, tmp2, tmp3, tmp4 TBF_word + _, _, _, _, _, _, _ = i, ptr, tmp1, tmp2, tmp3, tmp4, v2 + ptr = start + for cond := true; cond; cond = ptr < end { + L = L ^ **(**TBF_word)(__ccgo_up(ctx)) + i = 0 + for { + if !(i < int32(16)) { + break + } + tmp1 = L & uint32(0xFF) + tmp2 = L >> int32(8) + tmp2 = tmp2 & uint32(0xFF) + tmp3 = L >> int32(16) + tmp3 = tmp3 & uint32(0xFF) + tmp4 = L >> int32(24) + tmp1 = **(**TBF_word)(__ccgo_up(ctx + 72 + 3*1024 + uintptr(tmp1)*4)) + tmp2 = **(**TBF_word)(__ccgo_up(ctx + 72 + 2*1024 + uintptr(tmp2)*4)) + tmp3 = **(**TBF_word)(__ccgo_up(ctx + 72 + 1*1024 + uintptr(tmp3)*4)) + tmp3 = tmp3 + **(**TBF_word)(__ccgo_up(ctx + 72 + uintptr(tmp4)*4)) + tmp3 = tmp3 ^ tmp2 + R = R ^ **(**TBF_word)(__ccgo_up(ctx + uintptr(i+int32(1))*4)) + tmp3 = tmp3 + tmp1 + R = R ^ tmp3 + tmp1 = R & uint32(0xFF) + tmp2 = R >> int32(8) + tmp2 = tmp2 & uint32(0xFF) + tmp3 = R >> int32(16) + tmp3 = tmp3 & uint32(0xFF) + tmp4 = R >> int32(24) + tmp1 = **(**TBF_word)(__ccgo_up(ctx + 72 + 3*1024 + uintptr(tmp1)*4)) + tmp2 = **(**TBF_word)(__ccgo_up(ctx + 72 + 2*1024 + uintptr(tmp2)*4)) + tmp3 = **(**TBF_word)(__ccgo_up(ctx + 72 + 1*1024 + uintptr(tmp3)*4)) + tmp3 = tmp3 + **(**TBF_word)(__ccgo_up(ctx + 72 + uintptr(tmp4)*4)) + tmp3 = tmp3 ^ tmp2 + L = L ^ **(**TBF_word)(__ccgo_up(ctx + uintptr(i+int32(1)+int32(1))*4)) + tmp3 = tmp3 + tmp1 + L = L ^ tmp3 + goto _1 + _1: + ; + i = i + int32(2) + } + tmp4 = R + R = L + L = tmp4 ^ **(**TBF_word)(__ccgo_up(ctx + uintptr(Int32FromInt32(BF_N)+Int32FromInt32(1))*4)) + v2 = ptr + ptr += 4 + **(**TBF_word)(__ccgo_up(v2)) = L + v2 = ptr + ptr += 4 + **(**TBF_word)(__ccgo_up(v2)) = R + } + return L +} + +func _BF_set_key(tls *TLS, key uintptr, expanded uintptr, initial uintptr, flags uint8) { + bp := tls.Alloc(16) + defer tls.Free(16) + var bug, i, j uint32 + var diff, safety, sign, v1 TBF_word + var ptr uintptr + var _ /* tmp at bp+0 */ [2]TBF_word + _, _, _, _, _, _, _, _ = bug, diff, i, j, ptr, safety, sign, v1 + ptr = key + /* + * There was a sign extension bug in older revisions of this function. While + * we would have liked to simply fix the bug and move on, we have to provide + * a backwards compatibility feature (essentially the bug) for some systems and + * a safety measure for some others. The latter is needed because for certain + * multiple inputs to the buggy algorithm there exist easily found inputs to + * the correct algorithm that produce the same hash. Thus, we optionally + * deviate from the correct algorithm just enough to avoid such collisions. + * While the bug itself affected the majority of passwords containing + * characters with the 8th bit set (although only a percentage of those in a + * collision-producing way), the anti-collision safety measure affects + * only a subset of passwords containing the '\xff' character (not even all of + * those passwords, just some of them). This character is not found in valid + * UTF-8 sequences and is rarely used in popular 8-bit character encodings. + * Thus, the safety measure is unlikely to cause much annoyance, and is a + * reasonable tradeoff to use when authenticating against existing hashes that + * are not reliably known to have been computed with the correct algorithm. + * + * We use an approach that tries to minimize side-channel leaks of password + * information - that is, we mostly use fixed-cost bitwise operations instead + * of branches or table lookups. (One conditional branch based on password + * length remains. It is not part of the bug aftermath, though, and is + * difficult and possibly unreasonable to avoid given the use of C strings by + * the caller, which results in similar timing leaks anyway.) + * + * For actual implementation, we set an array index in the variable "bug" + * (0 means no bug, 1 means sign extension bug emulation) and a flag in the + * variable "safety" (bit 16 is set when the safety measure is requested). + * Valid combinations of settings are: + * + * Prefix "$2a$": bug = 0, safety = 0x10000 + * Prefix "$2b$": bug = 0, safety = 0 + * Prefix "$2x$": bug = 1, safety = 0 + * Prefix "$2y$": bug = 0, safety = 0 + */ + bug = Uint32FromInt32(Int32FromUint8(flags) & int32(1)) + safety = uint32(flags) & uint32(2) << int32(15) + v1 = Uint32FromInt32(0) + diff = v1 + sign = v1 + i = uint32(0) + for { + if !(i < Uint32FromInt32(Int32FromInt32(BF_N)+Int32FromInt32(2))) { + break + } + v1 = Uint32FromInt32(0) + (**(**[2]TBF_word)(__ccgo_up(bp)))[int32(1)] = v1 + (**(**[2]TBF_word)(__ccgo_up(bp)))[0] = v1 + j = uint32(0) + for { + if !(j < uint32(4)) { + break + } + **(**TBF_word)(__ccgo_up(bp)) <<= uint32(8) + **(**TBF_word)(__ccgo_up(bp)) |= uint32(uint8(**(**uint8)(__ccgo_up(ptr)))) /* correct */ + **(**TBF_word)(__ccgo_up(bp + 1*4)) <<= uint32(8) + **(**TBF_word)(__ccgo_up(bp + 1*4)) |= Uint32FromInt8(Int8FromUint8(**(**uint8)(__ccgo_up(ptr)))) /* bug */ + /* + * Sign extension in the first char has no effect - nothing to overwrite yet, + * and those extra 24 bits will be fully shifted out of the 32-bit word. For + * chars 2, 3, 4 in each four-char block, we set bit 7 of "sign" if sign + * extension in tmp[1] occurs. Once this flag is set, it remains set. + */ + if j != 0 { + sign = sign | (**(**[2]TBF_word)(__ccgo_up(bp)))[int32(1)]&uint32(0x80) + } + if !(**(**uint8)(__ccgo_up(ptr)) != 0) { + ptr = key + } else { + ptr = ptr + 1 + } + goto _4 + _4: + ; + j = j + 1 + } + diff = diff | ((**(**[2]TBF_word)(__ccgo_up(bp)))[0] ^ (**(**[2]TBF_word)(__ccgo_up(bp)))[int32(1)]) /* Non-zero on any differences */ + **(**TBF_word)(__ccgo_up(expanded + uintptr(i)*4)) = (**(**[2]TBF_word)(__ccgo_up(bp)))[bug] + **(**TBF_word)(__ccgo_up(initial + uintptr(i)*4)) = **(**TBF_word)(__ccgo_up(uintptr(unsafe.Pointer(&_BF_init_state)) + uintptr(i)*4)) ^ (**(**[2]TBF_word)(__ccgo_up(bp)))[bug] + goto _2 + _2: + ; + i = i + 1 + } + /* + * At this point, "diff" is zero iff the correct and buggy algorithms produced + * exactly the same result. If so and if "sign" is non-zero, which indicates + * that there was a non-benign sign extension, this means that we have a + * collision between the correctly computed hash for this password and a set of + * passwords that could be supplied to the buggy algorithm. Our safety measure + * is meant to protect from such many-buggy to one-correct collisions, by + * deviating from the correct algorithm in such cases. Let's check for this. + */ + diff = diff | diff>>int32(16) /* still zero iff exact match */ + diff = diff & uint32(0xffff) /* ditto */ + diff = diff + uint32(0xffff) /* bit 16 set iff "diff" was non-zero (on non-match) */ + sign = sign << uint32(9) /* move the non-benign sign extension flag to bit 16 */ + sign = sign & (^diff & safety) /* action needed? */ + /* + * If we have determined that we need to deviate from the correct algorithm, + * flip bit 16 in initial expanded key. (The choice of 16 is arbitrary, but + * let's stick to it now. It came out of the approach we used above, and it's + * not any worse than any other choice we could make.) + * + * It is crucial that we don't do the same to the expanded key used in the main + * Eksblowfish loop. By doing it to only one of these two, we deviate from a + * state that could be directly specified by a password to the buggy algorithm + * (and to the fully correct one as well, but that's a side-effect). + */ + **(**TBF_word)(__ccgo_up(initial)) ^= sign +} + +var _flags_by_subtype = [26]uint8{ + 0: uint8(2), + 1: uint8(4), + 23: uint8(1), + 24: uint8(4), +} + +func _BF_crypt(tls *TLS, key uintptr, setting uintptr, output uintptr, min TBF_word) (r uintptr) { + bp := tls.Alloc(4272) + defer tls.Free(4272) + var L, L1, R, count, tmp1, tmp2, tmp3, tmp4, v1 TBF_word + var done, i int32 + var ptr uintptr + var _ /* LR at bp+4264 */ [2]TBF_word + var _ /* data at bp+0 */ struct { + Fctx TBF_ctx + Fexpanded_key TBF_key + Fbinary struct { + Foutput [0][6]TBF_word + Fsalt [4]TBF_word + F__ccgo_pad2 [8]byte + } + } + _, _, _, _, _, _, _, _, _, _, _, _ = L, L1, R, count, done, i, ptr, tmp1, tmp2, tmp3, tmp4, v1 + if Int32FromUint8(**(**uint8)(__ccgo_up(setting))) != int32('$') || Int32FromUint8(**(**uint8)(__ccgo_up(setting + 1))) != int32('2') || Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(setting + 2)))-int32('a')) > uint32(25) || !(_flags_by_subtype[Int32FromUint8(**(**uint8)(__ccgo_up(setting + 2)))-int32('a')] != 0) || Int32FromUint8(**(**uint8)(__ccgo_up(setting + 3))) != int32('$') || Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(setting + 4)))-int32('0')) > uint32(1) || Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(setting + 5)))-int32('0')) > uint32(9) || Int32FromUint8(**(**uint8)(__ccgo_up(setting + 6))) != int32('$') { + return UintptrFromInt32(0) + } + count = Uint32FromInt32(1) << ((Int32FromUint8(**(**uint8)(__ccgo_up(setting + 4)))-int32('0'))*int32(10) + (Int32FromUint8(**(**uint8)(__ccgo_up(setting + 5))) - int32('0'))) + if count < min || _BF_decode(tls, bp+4240, setting+7, int32(16)) != 0 { + return UintptrFromInt32(0) + } + _BF_swap(tls, bp+4240, int32(4)) + _BF_set_key(tls, key, bp+4168, bp, _flags_by_subtype[Int32FromUint8(**(**uint8)(__ccgo_up(setting + 2)))-int32('a')]) + _memcpy(tls, bp+72, uintptr(unsafe.Pointer(&_BF_init_state))+72, uint32(4096)) + L = uint32(0) + R = uint32(0) + ptr = bp + for cond := true; cond; cond = int32(1) != 0 { + L = _BF_encrypt(tls, bp, L^**(**TBF_word)(__ccgo_up(bp + 4240)), R^**(**TBF_word)(__ccgo_up(bp + 4240 + 1*4)), ptr, ptr) + R = **(**TBF_word)(__ccgo_up(ptr + UintptrFromInt32(1)*4)) + ptr = ptr + uintptr(2)*4 + if ptr >= bp+uintptr(Int32FromInt32(BF_N)+Int32FromInt32(2)+Int32FromInt32(4)*Int32FromInt32(0x100))*4 { + break + } + L = _BF_encrypt(tls, bp, L^**(**TBF_word)(__ccgo_up(bp + 4240 + 2*4)), R^**(**TBF_word)(__ccgo_up(bp + 4240 + 3*4)), ptr, ptr) + R = **(**TBF_word)(__ccgo_up(ptr + UintptrFromInt32(1)*4)) + ptr = ptr + uintptr(2)*4 + } + for { + i = 0 + for { + if !(i < Int32FromInt32(BF_N)+Int32FromInt32(2)) { + break + } + **(**TBF_word)(__ccgo_up(bp + uintptr(i)*4)) ^= **(**TBF_word)(__ccgo_up(bp + 4168 + uintptr(i)*4)) + **(**TBF_word)(__ccgo_up(bp + uintptr(i+int32(1))*4)) ^= **(**TBF_word)(__ccgo_up(bp + 4168 + uintptr(i+int32(1))*4)) + goto _3 + _3: + ; + i = i + int32(2) + } + done = 0 + for cond := true; cond; cond = int32(1) != 0 { + _BF_encrypt(tls, bp, uint32(0), uint32(0), bp, bp+uintptr(Int32FromInt32(BF_N)+Int32FromInt32(2)+Int32FromInt32(4)*Int32FromInt32(0x100))*4) + if done != 0 { + break + } + done = int32(1) + tmp1 = **(**TBF_word)(__ccgo_up(bp + 4240)) + tmp2 = **(**TBF_word)(__ccgo_up(bp + 4240 + 1*4)) + tmp3 = **(**TBF_word)(__ccgo_up(bp + 4240 + 2*4)) + tmp4 = **(**TBF_word)(__ccgo_up(bp + 4240 + 3*4)) + i = 0 + for { + if !(i < int32(BF_N)) { + break + } + **(**TBF_word)(__ccgo_up(bp + uintptr(i)*4)) ^= tmp1 + **(**TBF_word)(__ccgo_up(bp + uintptr(i+int32(1))*4)) ^= tmp2 + **(**TBF_word)(__ccgo_up(bp + uintptr(i+int32(2))*4)) ^= tmp3 + **(**TBF_word)(__ccgo_up(bp + uintptr(i+int32(3))*4)) ^= tmp4 + goto _4 + _4: + ; + i = i + int32(4) + } + **(**TBF_word)(__ccgo_up(bp + 16*4)) ^= tmp1 + **(**TBF_word)(__ccgo_up(bp + 17*4)) ^= tmp2 + } + goto _2 + _2: + ; + count = count - 1 + v1 = count + if !(v1 != 0) { + break + } + } + i = 0 + for { + if !(i < int32(6)) { + break + } + L1 = _BF_magic_w[i] + (**(**[2]TBF_word)(__ccgo_up(bp + 4264)))[int32(1)] = _BF_magic_w[i+int32(1)] + count = uint32(64) + for { + L1 = _BF_encrypt(tls, bp, L1, (**(**[2]TBF_word)(__ccgo_up(bp + 4264)))[int32(1)], bp+4264, bp+4264) + goto _7 + _7: + ; + count = count - 1 + v1 = count + if !(v1 != 0) { + break + } + } + **(**TBF_word)(__ccgo_up(bp + 4240 + uintptr(i)*4)) = L1 + **(**TBF_word)(__ccgo_up(bp + 4240 + uintptr(i+int32(1))*4)) = (**(**[2]TBF_word)(__ccgo_up(bp + 4264)))[int32(1)] + goto _5 + _5: + ; + i = i + int32(2) + } + _memcpy(tls, output, setting, Uint32FromInt32(Int32FromInt32(7)+Int32FromInt32(22)-Int32FromInt32(1))) + **(**uint8)(__ccgo_up(output + uintptr(Int32FromInt32(7)+Int32FromInt32(22)-Int32FromInt32(1)))) = _BF_itoa64[Int32FromUint8(_BF_atoi64[Int32FromUint8(**(**uint8)(__ccgo_up(setting + uintptr(Int32FromInt32(7)+Int32FromInt32(22)-Int32FromInt32(1)))))-int32(0x20)])&int32(0x30)] + /* This has to be bug-compatible with the original implementation, so + * only encode 23 of the 24 bytes. :-) */ + _BF_swap(tls, bp+4240, int32(6)) + _BF_encode(tls, output+uintptr(Int32FromInt32(7)+Int32FromInt32(22)), bp+4240, int32(23)) + **(**uint8)(__ccgo_up(output + uintptr(Int32FromInt32(7)+Int32FromInt32(22)+Int32FromInt32(31)))) = uint8('\000') + return output +} + +// C documentation +// +// /* +// * Please preserve the runtime self-test. It serves two purposes at once: +// * +// * 1. We really can't afford the risk of producing incompatible hashes e.g. +// * when there's something like gcc bug 26587 again, whereas an application or +// * library integrating this code might not also integrate our external tests or +// * it might not run them after every build. Even if it does, the miscompile +// * might only occur on the production build, but not on a testing build (such +// * as because of different optimization settings). It is painful to recover +// * from incorrectly-computed hashes - merely fixing whatever broke is not +// * enough. Thus, a proactive measure like this self-test is needed. +// * +// * 2. We don't want to leave sensitive data from our actual password hash +// * computation on the stack or in registers. Previous revisions of the code +// * would do explicit cleanups, but simply running the self-test after hash +// * computation is more reliable. +// * +// * The performance cost of this quick self-test is around 0.6% at the "$2a$08" +// * setting. +// */ +func X__crypt_blowfish(tls *TLS, key uintptr, setting uintptr, output uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v setting=%v output=%v, (%v:)", tls, key, setting, output, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(384) + defer tls.Free(384) + var flags uint32 + var k, p, retval, test_hash, test_key, test_setting uintptr + var ok int32 + var _ /* ae at bp+96 */ TBF_key + var _ /* ai at bp+168 */ TBF_key + var _ /* buf at bp+0 */ struct { + Fs [30]uint8 + Fo [63]uint8 + } + var _ /* ye at bp+240 */ TBF_key + var _ /* yi at bp+312 */ TBF_key + _, _, _, _, _, _, _, _ = flags, k, ok, p, retval, test_hash, test_key, test_setting + test_key = __ccgo_ts + 18 + test_setting = __ccgo_ts + 28 + test_hash = uintptr(unsafe.Pointer(&_test_hashes)) + /* Hash the supplied password */ + retval = _BF_crypt(tls, key, setting, output, uint32(16)) + /* + * Do a quick self-test. It is important that we make both calls to BF_crypt() + * from the same scope such that they likely use the same stack locations, + * which makes the second call overwrite the first call's sensitive data on the + * stack and makes it more likely that any alignment related issues would be + * detected by the self-test. + */ + _memcpy(tls, bp, test_setting, uint32(30)) + if retval != 0 { + flags = uint32(_flags_by_subtype[Int32FromUint8(**(**uint8)(__ccgo_up(setting + 2)))-int32('a')]) + test_hash = uintptr(unsafe.Pointer(&_test_hashes)) + uintptr(flags&uint32(1))*34 + **(**uint8)(__ccgo_up(bp + 2)) = **(**uint8)(__ccgo_up(setting + 2)) + } + Xmemset(tls, bp+30, int32(0x55), uint32(63)) + **(**uint8)(__ccgo_up(bp + 30 + uintptr(Uint32FromInt64(63)-Uint32FromInt32(1)))) = uint8(0) + p = _BF_crypt(tls, test_key, bp, bp+30, uint32(1)) + ok = BoolInt32(p == bp+30 && !(Xmemcmp(tls, p, bp, Uint32FromInt32(Int32FromInt32(7)+Int32FromInt32(22))) != 0) && !(Xmemcmp(tls, p+uintptr(Int32FromInt32(7)+Int32FromInt32(22)), test_hash, Uint32FromInt32(Int32FromInt32(31)+Int32FromInt32(1)+Int32FromInt32(1)+Int32FromInt32(1))) != 0)) + k = __ccgo_ts + 58 + _BF_set_key(tls, k, bp+96, bp+168, uint8(2)) /* $2a$ */ + _BF_set_key(tls, k, bp+240, bp+312, uint8(4)) /* $2y$ */ + **(**TBF_word)(__ccgo_up(bp + 168)) ^= uint32(0x10000) /* undo the safety (for comparison) */ + ok = BoolInt32(ok != 0 && (**(**TBF_key)(__ccgo_up(bp + 168)))[0] == uint32(0xdb9c59bc) && (**(**TBF_key)(__ccgo_up(bp + 240)))[int32(17)] == uint32(0x33343500) && !(Xmemcmp(tls, bp+96, bp+240, uint32(72)) != 0) && !(Xmemcmp(tls, bp+168, bp+312, uint32(72)) != 0)) + if ok != 0 && retval != 0 { + return retval + } + return __ccgo_ts + 70 +} + +var _test_hashes = [2][34]uint8{ + 0: {'i', '1', 'D', '7', '0', '9', 'v', 'f', 'a', 'm', 'u', 'l', 'i', 'm', 'l', 'G', 'c', 'q', '0', 'q', 'q', '3', 'U', 'v', 'u', 'U', 'a', 's', 'v', 'E', 'a', 0, 'U'}, + 1: {'V', 'U', 'r', 'P', 'm', 'X', 'D', '6', 'q', '/', 'n', 'V', 'S', 'S', 'p', '7', 'p', 'N', 'D', 'h', 'C', 'R', '9', '0', '7', '1', 'I', 'f', 'I', 'R', 'e', 0, 'U'}, +} + +const _PASSWORD_EFMT1 = 95 + +type Texpanded_key = struct { + Fl [16]Tuint32_t + Fr [16]Tuint32_t +} + +var _key_shifts = [16]uint8{ + 0: uint8(1), + 1: uint8(1), + 2: uint8(2), + 3: uint8(2), + 4: uint8(2), + 5: uint8(2), + 6: uint8(2), + 7: uint8(2), + 8: uint8(1), + 9: uint8(2), + 10: uint8(2), + 11: uint8(2), + 12: uint8(2), + 13: uint8(2), + 14: uint8(2), + 15: uint8(1), +} + +var _psbox = [8][64]Tuint32_t{ + 0: { + 0: uint32(0x00808200), + 2: uint32(0x00008000), + 3: uint32(0x00808202), + 4: uint32(0x00808002), + 5: uint32(0x00008202), + 6: uint32(0x00000002), + 7: uint32(0x00008000), + 8: uint32(0x00000200), + 9: uint32(0x00808200), + 10: uint32(0x00808202), + 11: uint32(0x00000200), + 12: uint32(0x00800202), + 13: uint32(0x00808002), + 14: uint32(0x00800000), + 15: uint32(0x00000002), + 16: uint32(0x00000202), + 17: uint32(0x00800200), + 18: uint32(0x00800200), + 19: uint32(0x00008200), + 20: uint32(0x00008200), + 21: uint32(0x00808000), + 22: uint32(0x00808000), + 23: uint32(0x00800202), + 24: uint32(0x00008002), + 25: uint32(0x00800002), + 26: uint32(0x00800002), + 27: uint32(0x00008002), + 29: uint32(0x00000202), + 30: uint32(0x00008202), + 31: uint32(0x00800000), + 32: uint32(0x00008000), + 33: uint32(0x00808202), + 34: uint32(0x00000002), + 35: uint32(0x00808000), + 36: uint32(0x00808200), + 37: uint32(0x00800000), + 38: uint32(0x00800000), + 39: uint32(0x00000200), + 40: uint32(0x00808002), + 41: uint32(0x00008000), + 42: uint32(0x00008200), + 43: uint32(0x00800002), + 44: uint32(0x00000200), + 45: uint32(0x00000002), + 46: uint32(0x00800202), + 47: uint32(0x00008202), + 48: uint32(0x00808202), + 49: uint32(0x00008002), + 50: uint32(0x00808000), + 51: uint32(0x00800202), + 52: uint32(0x00800002), + 53: uint32(0x00000202), + 54: uint32(0x00008202), + 55: uint32(0x00808200), + 56: uint32(0x00000202), + 57: uint32(0x00800200), + 58: uint32(0x00800200), + 60: uint32(0x00008002), + 61: uint32(0x00008200), + 63: uint32(0x00808002), + }, + 1: { + 0: uint32(0x40084010), + 1: uint32(0x40004000), + 2: uint32(0x00004000), + 3: uint32(0x00084010), + 4: uint32(0x00080000), + 5: uint32(0x00000010), + 6: uint32(0x40080010), + 7: uint32(0x40004010), + 8: uint32(0x40000010), + 9: uint32(0x40084010), + 10: uint32(0x40084000), + 11: uint32(0x40000000), + 12: uint32(0x40004000), + 13: uint32(0x00080000), + 14: uint32(0x00000010), + 15: uint32(0x40080010), + 16: uint32(0x00084000), + 17: uint32(0x00080010), + 18: uint32(0x40004010), + 20: uint32(0x40000000), + 21: uint32(0x00004000), + 22: uint32(0x00084010), + 23: uint32(0x40080000), + 24: uint32(0x00080010), + 25: uint32(0x40000010), + 27: uint32(0x00084000), + 28: uint32(0x00004010), + 29: uint32(0x40084000), + 30: uint32(0x40080000), + 31: uint32(0x00004010), + 33: uint32(0x00084010), + 34: uint32(0x40080010), + 35: uint32(0x00080000), + 36: uint32(0x40004010), + 37: uint32(0x40080000), + 38: uint32(0x40084000), + 39: uint32(0x00004000), + 40: uint32(0x40080000), + 41: uint32(0x40004000), + 42: uint32(0x00000010), + 43: uint32(0x40084010), + 44: uint32(0x00084010), + 45: uint32(0x00000010), + 46: uint32(0x00004000), + 47: uint32(0x40000000), + 48: uint32(0x00004010), + 49: uint32(0x40084000), + 50: uint32(0x00080000), + 51: uint32(0x40000010), + 52: uint32(0x00080010), + 53: uint32(0x40004010), + 54: uint32(0x40000010), + 55: uint32(0x00080010), + 56: uint32(0x00084000), + 58: uint32(0x40004000), + 59: uint32(0x00004010), + 60: uint32(0x40000000), + 61: uint32(0x40080010), + 62: uint32(0x40084010), + 63: uint32(0x00084000), + }, + 2: { + 0: uint32(0x00000104), + 1: uint32(0x04010100), + 3: uint32(0x04010004), + 4: uint32(0x04000100), + 6: uint32(0x00010104), + 7: uint32(0x04000100), + 8: uint32(0x00010004), + 9: uint32(0x04000004), + 10: uint32(0x04000004), + 11: uint32(0x00010000), + 12: uint32(0x04010104), + 13: uint32(0x00010004), + 14: uint32(0x04010000), + 15: uint32(0x00000104), + 16: uint32(0x04000000), + 17: uint32(0x00000004), + 18: uint32(0x04010100), + 19: uint32(0x00000100), + 20: uint32(0x00010100), + 21: uint32(0x04010000), + 22: uint32(0x04010004), + 23: uint32(0x00010104), + 24: uint32(0x04000104), + 25: uint32(0x00010100), + 26: uint32(0x00010000), + 27: uint32(0x04000104), + 28: uint32(0x00000004), + 29: uint32(0x04010104), + 30: uint32(0x00000100), + 31: uint32(0x04000000), + 32: uint32(0x04010100), + 33: uint32(0x04000000), + 34: uint32(0x00010004), + 35: uint32(0x00000104), + 36: uint32(0x00010000), + 37: uint32(0x04010100), + 38: uint32(0x04000100), + 40: uint32(0x00000100), + 41: uint32(0x00010004), + 42: uint32(0x04010104), + 43: uint32(0x04000100), + 44: uint32(0x04000004), + 45: uint32(0x00000100), + 47: uint32(0x04010004), + 48: uint32(0x04000104), + 49: uint32(0x00010000), + 50: uint32(0x04000000), + 51: uint32(0x04010104), + 52: uint32(0x00000004), + 53: uint32(0x00010104), + 54: uint32(0x00010100), + 55: uint32(0x04000004), + 56: uint32(0x04010000), + 57: uint32(0x04000104), + 58: uint32(0x00000104), + 59: uint32(0x04010000), + 60: uint32(0x00010104), + 61: uint32(0x00000004), + 62: uint32(0x04010004), + 63: uint32(0x00010100), + }, + 3: { + 0: uint32(0x80401000), + 1: uint32(0x80001040), + 2: uint32(0x80001040), + 3: uint32(0x00000040), + 4: uint32(0x00401040), + 5: uint32(0x80400040), + 6: uint32(0x80400000), + 7: uint32(0x80001000), + 9: uint32(0x00401000), + 10: uint32(0x00401000), + 11: uint32(0x80401040), + 12: uint32(0x80000040), + 14: uint32(0x00400040), + 15: uint32(0x80400000), + 16: uint32(0x80000000), + 17: uint32(0x00001000), + 18: uint32(0x00400000), + 19: uint32(0x80401000), + 20: uint32(0x00000040), + 21: uint32(0x00400000), + 22: uint32(0x80001000), + 23: uint32(0x00001040), + 24: uint32(0x80400040), + 25: uint32(0x80000000), + 26: uint32(0x00001040), + 27: uint32(0x00400040), + 28: uint32(0x00001000), + 29: uint32(0x00401040), + 30: uint32(0x80401040), + 31: uint32(0x80000040), + 32: uint32(0x00400040), + 33: uint32(0x80400000), + 34: uint32(0x00401000), + 35: uint32(0x80401040), + 36: uint32(0x80000040), + 39: uint32(0x00401000), + 40: uint32(0x00001040), + 41: uint32(0x00400040), + 42: uint32(0x80400040), + 43: uint32(0x80000000), + 44: uint32(0x80401000), + 45: uint32(0x80001040), + 46: uint32(0x80001040), + 47: uint32(0x00000040), + 48: uint32(0x80401040), + 49: uint32(0x80000040), + 50: uint32(0x80000000), + 51: uint32(0x00001000), + 52: uint32(0x80400000), + 53: uint32(0x80001000), + 54: uint32(0x00401040), + 55: uint32(0x80400040), + 56: uint32(0x80001000), + 57: uint32(0x00001040), + 58: uint32(0x00400000), + 59: uint32(0x80401000), + 60: uint32(0x00000040), + 61: uint32(0x00400000), + 62: uint32(0x00001000), + 63: uint32(0x00401040), + }, + 4: { + 0: uint32(0x00000080), + 1: uint32(0x01040080), + 2: uint32(0x01040000), + 3: uint32(0x21000080), + 4: uint32(0x00040000), + 5: uint32(0x00000080), + 6: uint32(0x20000000), + 7: uint32(0x01040000), + 8: uint32(0x20040080), + 9: uint32(0x00040000), + 10: uint32(0x01000080), + 11: uint32(0x20040080), + 12: uint32(0x21000080), + 13: uint32(0x21040000), + 14: uint32(0x00040080), + 15: uint32(0x20000000), + 16: uint32(0x01000000), + 17: uint32(0x20040000), + 18: uint32(0x20040000), + 20: uint32(0x20000080), + 21: uint32(0x21040080), + 22: uint32(0x21040080), + 23: uint32(0x01000080), + 24: uint32(0x21040000), + 25: uint32(0x20000080), + 27: uint32(0x21000000), + 28: uint32(0x01040080), + 29: uint32(0x01000000), + 30: uint32(0x21000000), + 31: uint32(0x00040080), + 32: uint32(0x00040000), + 33: uint32(0x21000080), + 34: uint32(0x00000080), + 35: uint32(0x01000000), + 36: uint32(0x20000000), + 37: uint32(0x01040000), + 38: uint32(0x21000080), + 39: uint32(0x20040080), + 40: uint32(0x01000080), + 41: uint32(0x20000000), + 42: uint32(0x21040000), + 43: uint32(0x01040080), + 44: uint32(0x20040080), + 45: uint32(0x00000080), + 46: uint32(0x01000000), + 47: uint32(0x21040000), + 48: uint32(0x21040080), + 49: uint32(0x00040080), + 50: uint32(0x21000000), + 51: uint32(0x21040080), + 52: uint32(0x01040000), + 54: uint32(0x20040000), + 55: uint32(0x21000000), + 56: uint32(0x00040080), + 57: uint32(0x01000080), + 58: uint32(0x20000080), + 59: uint32(0x00040000), + 61: uint32(0x20040000), + 62: uint32(0x01040080), + 63: uint32(0x20000080), + }, + 5: { + 0: uint32(0x10000008), + 1: uint32(0x10200000), + 2: uint32(0x00002000), + 3: uint32(0x10202008), + 4: uint32(0x10200000), + 5: uint32(0x00000008), + 6: uint32(0x10202008), + 7: uint32(0x00200000), + 8: uint32(0x10002000), + 9: uint32(0x00202008), + 10: uint32(0x00200000), + 11: uint32(0x10000008), + 12: uint32(0x00200008), + 13: uint32(0x10002000), + 14: uint32(0x10000000), + 15: uint32(0x00002008), + 17: uint32(0x00200008), + 18: uint32(0x10002008), + 19: uint32(0x00002000), + 20: uint32(0x00202000), + 21: uint32(0x10002008), + 22: uint32(0x00000008), + 23: uint32(0x10200008), + 24: uint32(0x10200008), + 26: uint32(0x00202008), + 27: uint32(0x10202000), + 28: uint32(0x00002008), + 29: uint32(0x00202000), + 30: uint32(0x10202000), + 31: uint32(0x10000000), + 32: uint32(0x10002000), + 33: uint32(0x00000008), + 34: uint32(0x10200008), + 35: uint32(0x00202000), + 36: uint32(0x10202008), + 37: uint32(0x00200000), + 38: uint32(0x00002008), + 39: uint32(0x10000008), + 40: uint32(0x00200000), + 41: uint32(0x10002000), + 42: uint32(0x10000000), + 43: uint32(0x00002008), + 44: uint32(0x10000008), + 45: uint32(0x10202008), + 46: uint32(0x00202000), + 47: uint32(0x10200000), + 48: uint32(0x00202008), + 49: uint32(0x10202000), + 51: uint32(0x10200008), + 52: uint32(0x00000008), + 53: uint32(0x00002000), + 54: uint32(0x10200000), + 55: uint32(0x00202008), + 56: uint32(0x00002000), + 57: uint32(0x00200008), + 58: uint32(0x10002008), + 60: uint32(0x10202000), + 61: uint32(0x10000000), + 62: uint32(0x00200008), + 63: uint32(0x10002008), + }, + 6: { + 0: uint32(0x00100000), + 1: uint32(0x02100001), + 2: uint32(0x02000401), + 4: uint32(0x00000400), + 5: uint32(0x02000401), + 6: uint32(0x00100401), + 7: uint32(0x02100400), + 8: uint32(0x02100401), + 9: uint32(0x00100000), + 11: uint32(0x02000001), + 12: uint32(0x00000001), + 13: uint32(0x02000000), + 14: uint32(0x02100001), + 15: uint32(0x00000401), + 16: uint32(0x02000400), + 17: uint32(0x00100401), + 18: uint32(0x00100001), + 19: uint32(0x02000400), + 20: uint32(0x02000001), + 21: uint32(0x02100000), + 22: uint32(0x02100400), + 23: uint32(0x00100001), + 24: uint32(0x02100000), + 25: uint32(0x00000400), + 26: uint32(0x00000401), + 27: uint32(0x02100401), + 28: uint32(0x00100400), + 29: uint32(0x00000001), + 30: uint32(0x02000000), + 31: uint32(0x00100400), + 32: uint32(0x02000000), + 33: uint32(0x00100400), + 34: uint32(0x00100000), + 35: uint32(0x02000401), + 36: uint32(0x02000401), + 37: uint32(0x02100001), + 38: uint32(0x02100001), + 39: uint32(0x00000001), + 40: uint32(0x00100001), + 41: uint32(0x02000000), + 42: uint32(0x02000400), + 43: uint32(0x00100000), + 44: uint32(0x02100400), + 45: uint32(0x00000401), + 46: uint32(0x00100401), + 47: uint32(0x02100400), + 48: uint32(0x00000401), + 49: uint32(0x02000001), + 50: uint32(0x02100401), + 51: uint32(0x02100000), + 52: uint32(0x00100400), + 54: uint32(0x00000001), + 55: uint32(0x02100401), + 57: uint32(0x00100401), + 58: uint32(0x02100000), + 59: uint32(0x00000400), + 60: uint32(0x02000001), + 61: uint32(0x02000400), + 62: uint32(0x00000400), + 63: uint32(0x00100001), + }, + 7: { + 0: uint32(0x08000820), + 1: uint32(0x00000800), + 2: uint32(0x00020000), + 3: uint32(0x08020820), + 4: uint32(0x08000000), + 5: uint32(0x08000820), + 6: uint32(0x00000020), + 7: uint32(0x08000000), + 8: uint32(0x00020020), + 9: uint32(0x08020000), + 10: uint32(0x08020820), + 11: uint32(0x00020800), + 12: uint32(0x08020800), + 13: uint32(0x00020820), + 14: uint32(0x00000800), + 15: uint32(0x00000020), + 16: uint32(0x08020000), + 17: uint32(0x08000020), + 18: uint32(0x08000800), + 19: uint32(0x00000820), + 20: uint32(0x00020800), + 21: uint32(0x00020020), + 22: uint32(0x08020020), + 23: uint32(0x08020800), + 24: uint32(0x00000820), + 27: uint32(0x08020020), + 28: uint32(0x08000020), + 29: uint32(0x08000800), + 30: uint32(0x00020820), + 31: uint32(0x00020000), + 32: uint32(0x00020820), + 33: uint32(0x00020000), + 34: uint32(0x08020800), + 35: uint32(0x00000800), + 36: uint32(0x00000020), + 37: uint32(0x08020020), + 38: uint32(0x00000800), + 39: uint32(0x00020820), + 40: uint32(0x08000800), + 41: uint32(0x00000020), + 42: uint32(0x08000020), + 43: uint32(0x08020000), + 44: uint32(0x08020020), + 45: uint32(0x08000000), + 46: uint32(0x00020000), + 47: uint32(0x08000820), + 49: uint32(0x08020820), + 50: uint32(0x00020020), + 51: uint32(0x08000020), + 52: uint32(0x08020000), + 53: uint32(0x08000800), + 54: uint32(0x08000820), + 56: uint32(0x08020820), + 57: uint32(0x00020800), + 58: uint32(0x00020800), + 59: uint32(0x00000820), + 60: uint32(0x00000820), + 61: uint32(0x00020020), + 62: uint32(0x08000000), + 63: uint32(0x08020800), + }, +} +var _ip_maskl = [16][16]Tuint32_t{ + 0: { + 1: uint32(0x00010000), + 3: uint32(0x00010000), + 4: uint32(0x01000000), + 5: uint32(0x01010000), + 6: uint32(0x01000000), + 7: uint32(0x01010000), + 9: uint32(0x00010000), + 11: uint32(0x00010000), + 12: uint32(0x01000000), + 13: uint32(0x01010000), + 14: uint32(0x01000000), + 15: uint32(0x01010000), + }, + 1: { + 1: uint32(0x00000001), + 3: uint32(0x00000001), + 4: uint32(0x00000100), + 5: uint32(0x00000101), + 6: uint32(0x00000100), + 7: uint32(0x00000101), + 9: uint32(0x00000001), + 11: uint32(0x00000001), + 12: uint32(0x00000100), + 13: uint32(0x00000101), + 14: uint32(0x00000100), + 15: uint32(0x00000101), + }, + 2: { + 1: uint32(0x00020000), + 3: uint32(0x00020000), + 4: uint32(0x02000000), + 5: uint32(0x02020000), + 6: uint32(0x02000000), + 7: uint32(0x02020000), + 9: uint32(0x00020000), + 11: uint32(0x00020000), + 12: uint32(0x02000000), + 13: uint32(0x02020000), + 14: uint32(0x02000000), + 15: uint32(0x02020000), + }, + 3: { + 1: uint32(0x00000002), + 3: uint32(0x00000002), + 4: uint32(0x00000200), + 5: uint32(0x00000202), + 6: uint32(0x00000200), + 7: uint32(0x00000202), + 9: uint32(0x00000002), + 11: uint32(0x00000002), + 12: uint32(0x00000200), + 13: uint32(0x00000202), + 14: uint32(0x00000200), + 15: uint32(0x00000202), + }, + 4: { + 1: uint32(0x00040000), + 3: uint32(0x00040000), + 4: uint32(0x04000000), + 5: uint32(0x04040000), + 6: uint32(0x04000000), + 7: uint32(0x04040000), + 9: uint32(0x00040000), + 11: uint32(0x00040000), + 12: uint32(0x04000000), + 13: uint32(0x04040000), + 14: uint32(0x04000000), + 15: uint32(0x04040000), + }, + 5: { + 1: uint32(0x00000004), + 3: uint32(0x00000004), + 4: uint32(0x00000400), + 5: uint32(0x00000404), + 6: uint32(0x00000400), + 7: uint32(0x00000404), + 9: uint32(0x00000004), + 11: uint32(0x00000004), + 12: uint32(0x00000400), + 13: uint32(0x00000404), + 14: uint32(0x00000400), + 15: uint32(0x00000404), + }, + 6: { + 1: uint32(0x00080000), + 3: uint32(0x00080000), + 4: uint32(0x08000000), + 5: uint32(0x08080000), + 6: uint32(0x08000000), + 7: uint32(0x08080000), + 9: uint32(0x00080000), + 11: uint32(0x00080000), + 12: uint32(0x08000000), + 13: uint32(0x08080000), + 14: uint32(0x08000000), + 15: uint32(0x08080000), + }, + 7: { + 1: uint32(0x00000008), + 3: uint32(0x00000008), + 4: uint32(0x00000800), + 5: uint32(0x00000808), + 6: uint32(0x00000800), + 7: uint32(0x00000808), + 9: uint32(0x00000008), + 11: uint32(0x00000008), + 12: uint32(0x00000800), + 13: uint32(0x00000808), + 14: uint32(0x00000800), + 15: uint32(0x00000808), + }, + 8: { + 1: uint32(0x00100000), + 3: uint32(0x00100000), + 4: uint32(0x10000000), + 5: uint32(0x10100000), + 6: uint32(0x10000000), + 7: uint32(0x10100000), + 9: uint32(0x00100000), + 11: uint32(0x00100000), + 12: uint32(0x10000000), + 13: uint32(0x10100000), + 14: uint32(0x10000000), + 15: uint32(0x10100000), + }, + 9: { + 1: uint32(0x00000010), + 3: uint32(0x00000010), + 4: uint32(0x00001000), + 5: uint32(0x00001010), + 6: uint32(0x00001000), + 7: uint32(0x00001010), + 9: uint32(0x00000010), + 11: uint32(0x00000010), + 12: uint32(0x00001000), + 13: uint32(0x00001010), + 14: uint32(0x00001000), + 15: uint32(0x00001010), + }, + 10: { + 1: uint32(0x00200000), + 3: uint32(0x00200000), + 4: uint32(0x20000000), + 5: uint32(0x20200000), + 6: uint32(0x20000000), + 7: uint32(0x20200000), + 9: uint32(0x00200000), + 11: uint32(0x00200000), + 12: uint32(0x20000000), + 13: uint32(0x20200000), + 14: uint32(0x20000000), + 15: uint32(0x20200000), + }, + 11: { + 1: uint32(0x00000020), + 3: uint32(0x00000020), + 4: uint32(0x00002000), + 5: uint32(0x00002020), + 6: uint32(0x00002000), + 7: uint32(0x00002020), + 9: uint32(0x00000020), + 11: uint32(0x00000020), + 12: uint32(0x00002000), + 13: uint32(0x00002020), + 14: uint32(0x00002000), + 15: uint32(0x00002020), + }, + 12: { + 1: uint32(0x00400000), + 3: uint32(0x00400000), + 4: uint32(0x40000000), + 5: uint32(0x40400000), + 6: uint32(0x40000000), + 7: uint32(0x40400000), + 9: uint32(0x00400000), + 11: uint32(0x00400000), + 12: uint32(0x40000000), + 13: uint32(0x40400000), + 14: uint32(0x40000000), + 15: uint32(0x40400000), + }, + 13: { + 1: uint32(0x00000040), + 3: uint32(0x00000040), + 4: uint32(0x00004000), + 5: uint32(0x00004040), + 6: uint32(0x00004000), + 7: uint32(0x00004040), + 9: uint32(0x00000040), + 11: uint32(0x00000040), + 12: uint32(0x00004000), + 13: uint32(0x00004040), + 14: uint32(0x00004000), + 15: uint32(0x00004040), + }, + 14: { + 1: uint32(0x00800000), + 3: uint32(0x00800000), + 4: uint32(0x80000000), + 5: uint32(0x80800000), + 6: uint32(0x80000000), + 7: uint32(0x80800000), + 9: uint32(0x00800000), + 11: uint32(0x00800000), + 12: uint32(0x80000000), + 13: uint32(0x80800000), + 14: uint32(0x80000000), + 15: uint32(0x80800000), + }, + 15: { + 1: uint32(0x00000080), + 3: uint32(0x00000080), + 4: uint32(0x00008000), + 5: uint32(0x00008080), + 6: uint32(0x00008000), + 7: uint32(0x00008080), + 9: uint32(0x00000080), + 11: uint32(0x00000080), + 12: uint32(0x00008000), + 13: uint32(0x00008080), + 14: uint32(0x00008000), + 15: uint32(0x00008080), + }, +} +var _ip_maskr = [16][16]Tuint32_t{ + 0: { + 2: uint32(0x00010000), + 3: uint32(0x00010000), + 6: uint32(0x00010000), + 7: uint32(0x00010000), + 8: uint32(0x01000000), + 9: uint32(0x01000000), + 10: uint32(0x01010000), + 11: uint32(0x01010000), + 12: uint32(0x01000000), + 13: uint32(0x01000000), + 14: uint32(0x01010000), + 15: uint32(0x01010000), + }, + 1: { + 2: uint32(0x00000001), + 3: uint32(0x00000001), + 6: uint32(0x00000001), + 7: uint32(0x00000001), + 8: uint32(0x00000100), + 9: uint32(0x00000100), + 10: uint32(0x00000101), + 11: uint32(0x00000101), + 12: uint32(0x00000100), + 13: uint32(0x00000100), + 14: uint32(0x00000101), + 15: uint32(0x00000101), + }, + 2: { + 2: uint32(0x00020000), + 3: uint32(0x00020000), + 6: uint32(0x00020000), + 7: uint32(0x00020000), + 8: uint32(0x02000000), + 9: uint32(0x02000000), + 10: uint32(0x02020000), + 11: uint32(0x02020000), + 12: uint32(0x02000000), + 13: uint32(0x02000000), + 14: uint32(0x02020000), + 15: uint32(0x02020000), + }, + 3: { + 2: uint32(0x00000002), + 3: uint32(0x00000002), + 6: uint32(0x00000002), + 7: uint32(0x00000002), + 8: uint32(0x00000200), + 9: uint32(0x00000200), + 10: uint32(0x00000202), + 11: uint32(0x00000202), + 12: uint32(0x00000200), + 13: uint32(0x00000200), + 14: uint32(0x00000202), + 15: uint32(0x00000202), + }, + 4: { + 2: uint32(0x00040000), + 3: uint32(0x00040000), + 6: uint32(0x00040000), + 7: uint32(0x00040000), + 8: uint32(0x04000000), + 9: uint32(0x04000000), + 10: uint32(0x04040000), + 11: uint32(0x04040000), + 12: uint32(0x04000000), + 13: uint32(0x04000000), + 14: uint32(0x04040000), + 15: uint32(0x04040000), + }, + 5: { + 2: uint32(0x00000004), + 3: uint32(0x00000004), + 6: uint32(0x00000004), + 7: uint32(0x00000004), + 8: uint32(0x00000400), + 9: uint32(0x00000400), + 10: uint32(0x00000404), + 11: uint32(0x00000404), + 12: uint32(0x00000400), + 13: uint32(0x00000400), + 14: uint32(0x00000404), + 15: uint32(0x00000404), + }, + 6: { + 2: uint32(0x00080000), + 3: uint32(0x00080000), + 6: uint32(0x00080000), + 7: uint32(0x00080000), + 8: uint32(0x08000000), + 9: uint32(0x08000000), + 10: uint32(0x08080000), + 11: uint32(0x08080000), + 12: uint32(0x08000000), + 13: uint32(0x08000000), + 14: uint32(0x08080000), + 15: uint32(0x08080000), + }, + 7: { + 2: uint32(0x00000008), + 3: uint32(0x00000008), + 6: uint32(0x00000008), + 7: uint32(0x00000008), + 8: uint32(0x00000800), + 9: uint32(0x00000800), + 10: uint32(0x00000808), + 11: uint32(0x00000808), + 12: uint32(0x00000800), + 13: uint32(0x00000800), + 14: uint32(0x00000808), + 15: uint32(0x00000808), + }, + 8: { + 2: uint32(0x00100000), + 3: uint32(0x00100000), + 6: uint32(0x00100000), + 7: uint32(0x00100000), + 8: uint32(0x10000000), + 9: uint32(0x10000000), + 10: uint32(0x10100000), + 11: uint32(0x10100000), + 12: uint32(0x10000000), + 13: uint32(0x10000000), + 14: uint32(0x10100000), + 15: uint32(0x10100000), + }, + 9: { + 2: uint32(0x00000010), + 3: uint32(0x00000010), + 6: uint32(0x00000010), + 7: uint32(0x00000010), + 8: uint32(0x00001000), + 9: uint32(0x00001000), + 10: uint32(0x00001010), + 11: uint32(0x00001010), + 12: uint32(0x00001000), + 13: uint32(0x00001000), + 14: uint32(0x00001010), + 15: uint32(0x00001010), + }, + 10: { + 2: uint32(0x00200000), + 3: uint32(0x00200000), + 6: uint32(0x00200000), + 7: uint32(0x00200000), + 8: uint32(0x20000000), + 9: uint32(0x20000000), + 10: uint32(0x20200000), + 11: uint32(0x20200000), + 12: uint32(0x20000000), + 13: uint32(0x20000000), + 14: uint32(0x20200000), + 15: uint32(0x20200000), + }, + 11: { + 2: uint32(0x00000020), + 3: uint32(0x00000020), + 6: uint32(0x00000020), + 7: uint32(0x00000020), + 8: uint32(0x00002000), + 9: uint32(0x00002000), + 10: uint32(0x00002020), + 11: uint32(0x00002020), + 12: uint32(0x00002000), + 13: uint32(0x00002000), + 14: uint32(0x00002020), + 15: uint32(0x00002020), + }, + 12: { + 2: uint32(0x00400000), + 3: uint32(0x00400000), + 6: uint32(0x00400000), + 7: uint32(0x00400000), + 8: uint32(0x40000000), + 9: uint32(0x40000000), + 10: uint32(0x40400000), + 11: uint32(0x40400000), + 12: uint32(0x40000000), + 13: uint32(0x40000000), + 14: uint32(0x40400000), + 15: uint32(0x40400000), + }, + 13: { + 2: uint32(0x00000040), + 3: uint32(0x00000040), + 6: uint32(0x00000040), + 7: uint32(0x00000040), + 8: uint32(0x00004000), + 9: uint32(0x00004000), + 10: uint32(0x00004040), + 11: uint32(0x00004040), + 12: uint32(0x00004000), + 13: uint32(0x00004000), + 14: uint32(0x00004040), + 15: uint32(0x00004040), + }, + 14: { + 2: uint32(0x00800000), + 3: uint32(0x00800000), + 6: uint32(0x00800000), + 7: uint32(0x00800000), + 8: uint32(0x80000000), + 9: uint32(0x80000000), + 10: uint32(0x80800000), + 11: uint32(0x80800000), + 12: uint32(0x80000000), + 13: uint32(0x80000000), + 14: uint32(0x80800000), + 15: uint32(0x80800000), + }, + 15: { + 2: uint32(0x00000080), + 3: uint32(0x00000080), + 6: uint32(0x00000080), + 7: uint32(0x00000080), + 8: uint32(0x00008000), + 9: uint32(0x00008000), + 10: uint32(0x00008080), + 11: uint32(0x00008080), + 12: uint32(0x00008000), + 13: uint32(0x00008000), + 14: uint32(0x00008080), + 15: uint32(0x00008080), + }, +} +var _fp_maskl = [8][16]Tuint32_t{ + 0: { + 1: uint32(0x40000000), + 2: uint32(0x00400000), + 3: uint32(0x40400000), + 4: uint32(0x00004000), + 5: uint32(0x40004000), + 6: uint32(0x00404000), + 7: uint32(0x40404000), + 8: uint32(0x00000040), + 9: uint32(0x40000040), + 10: uint32(0x00400040), + 11: uint32(0x40400040), + 12: uint32(0x00004040), + 13: uint32(0x40004040), + 14: uint32(0x00404040), + 15: uint32(0x40404040), + }, + 1: { + 1: uint32(0x10000000), + 2: uint32(0x00100000), + 3: uint32(0x10100000), + 4: uint32(0x00001000), + 5: uint32(0x10001000), + 6: uint32(0x00101000), + 7: uint32(0x10101000), + 8: uint32(0x00000010), + 9: uint32(0x10000010), + 10: uint32(0x00100010), + 11: uint32(0x10100010), + 12: uint32(0x00001010), + 13: uint32(0x10001010), + 14: uint32(0x00101010), + 15: uint32(0x10101010), + }, + 2: { + 1: uint32(0x04000000), + 2: uint32(0x00040000), + 3: uint32(0x04040000), + 4: uint32(0x00000400), + 5: uint32(0x04000400), + 6: uint32(0x00040400), + 7: uint32(0x04040400), + 8: uint32(0x00000004), + 9: uint32(0x04000004), + 10: uint32(0x00040004), + 11: uint32(0x04040004), + 12: uint32(0x00000404), + 13: uint32(0x04000404), + 14: uint32(0x00040404), + 15: uint32(0x04040404), + }, + 3: { + 1: uint32(0x01000000), + 2: uint32(0x00010000), + 3: uint32(0x01010000), + 4: uint32(0x00000100), + 5: uint32(0x01000100), + 6: uint32(0x00010100), + 7: uint32(0x01010100), + 8: uint32(0x00000001), + 9: uint32(0x01000001), + 10: uint32(0x00010001), + 11: uint32(0x01010001), + 12: uint32(0x00000101), + 13: uint32(0x01000101), + 14: uint32(0x00010101), + 15: uint32(0x01010101), + }, + 4: { + 1: uint32(0x80000000), + 2: uint32(0x00800000), + 3: uint32(0x80800000), + 4: uint32(0x00008000), + 5: uint32(0x80008000), + 6: uint32(0x00808000), + 7: uint32(0x80808000), + 8: uint32(0x00000080), + 9: uint32(0x80000080), + 10: uint32(0x00800080), + 11: uint32(0x80800080), + 12: uint32(0x00008080), + 13: uint32(0x80008080), + 14: uint32(0x00808080), + 15: uint32(0x80808080), + }, + 5: { + 1: uint32(0x20000000), + 2: uint32(0x00200000), + 3: uint32(0x20200000), + 4: uint32(0x00002000), + 5: uint32(0x20002000), + 6: uint32(0x00202000), + 7: uint32(0x20202000), + 8: uint32(0x00000020), + 9: uint32(0x20000020), + 10: uint32(0x00200020), + 11: uint32(0x20200020), + 12: uint32(0x00002020), + 13: uint32(0x20002020), + 14: uint32(0x00202020), + 15: uint32(0x20202020), + }, + 6: { + 1: uint32(0x08000000), + 2: uint32(0x00080000), + 3: uint32(0x08080000), + 4: uint32(0x00000800), + 5: uint32(0x08000800), + 6: uint32(0x00080800), + 7: uint32(0x08080800), + 8: uint32(0x00000008), + 9: uint32(0x08000008), + 10: uint32(0x00080008), + 11: uint32(0x08080008), + 12: uint32(0x00000808), + 13: uint32(0x08000808), + 14: uint32(0x00080808), + 15: uint32(0x08080808), + }, + 7: { + 1: uint32(0x02000000), + 2: uint32(0x00020000), + 3: uint32(0x02020000), + 4: uint32(0x00000200), + 5: uint32(0x02000200), + 6: uint32(0x00020200), + 7: uint32(0x02020200), + 8: uint32(0x00000002), + 9: uint32(0x02000002), + 10: uint32(0x00020002), + 11: uint32(0x02020002), + 12: uint32(0x00000202), + 13: uint32(0x02000202), + 14: uint32(0x00020202), + 15: uint32(0x02020202), + }, +} +var _fp_maskr = [8][16]Tuint32_t{ + 0: { + 1: uint32(0x40000000), + 2: uint32(0x00400000), + 3: uint32(0x40400000), + 4: uint32(0x00004000), + 5: uint32(0x40004000), + 6: uint32(0x00404000), + 7: uint32(0x40404000), + 8: uint32(0x00000040), + 9: uint32(0x40000040), + 10: uint32(0x00400040), + 11: uint32(0x40400040), + 12: uint32(0x00004040), + 13: uint32(0x40004040), + 14: uint32(0x00404040), + 15: uint32(0x40404040), + }, + 1: { + 1: uint32(0x10000000), + 2: uint32(0x00100000), + 3: uint32(0x10100000), + 4: uint32(0x00001000), + 5: uint32(0x10001000), + 6: uint32(0x00101000), + 7: uint32(0x10101000), + 8: uint32(0x00000010), + 9: uint32(0x10000010), + 10: uint32(0x00100010), + 11: uint32(0x10100010), + 12: uint32(0x00001010), + 13: uint32(0x10001010), + 14: uint32(0x00101010), + 15: uint32(0x10101010), + }, + 2: { + 1: uint32(0x04000000), + 2: uint32(0x00040000), + 3: uint32(0x04040000), + 4: uint32(0x00000400), + 5: uint32(0x04000400), + 6: uint32(0x00040400), + 7: uint32(0x04040400), + 8: uint32(0x00000004), + 9: uint32(0x04000004), + 10: uint32(0x00040004), + 11: uint32(0x04040004), + 12: uint32(0x00000404), + 13: uint32(0x04000404), + 14: uint32(0x00040404), + 15: uint32(0x04040404), + }, + 3: { + 1: uint32(0x01000000), + 2: uint32(0x00010000), + 3: uint32(0x01010000), + 4: uint32(0x00000100), + 5: uint32(0x01000100), + 6: uint32(0x00010100), + 7: uint32(0x01010100), + 8: uint32(0x00000001), + 9: uint32(0x01000001), + 10: uint32(0x00010001), + 11: uint32(0x01010001), + 12: uint32(0x00000101), + 13: uint32(0x01000101), + 14: uint32(0x00010101), + 15: uint32(0x01010101), + }, + 4: { + 1: uint32(0x80000000), + 2: uint32(0x00800000), + 3: uint32(0x80800000), + 4: uint32(0x00008000), + 5: uint32(0x80008000), + 6: uint32(0x00808000), + 7: uint32(0x80808000), + 8: uint32(0x00000080), + 9: uint32(0x80000080), + 10: uint32(0x00800080), + 11: uint32(0x80800080), + 12: uint32(0x00008080), + 13: uint32(0x80008080), + 14: uint32(0x00808080), + 15: uint32(0x80808080), + }, + 5: { + 1: uint32(0x20000000), + 2: uint32(0x00200000), + 3: uint32(0x20200000), + 4: uint32(0x00002000), + 5: uint32(0x20002000), + 6: uint32(0x00202000), + 7: uint32(0x20202000), + 8: uint32(0x00000020), + 9: uint32(0x20000020), + 10: uint32(0x00200020), + 11: uint32(0x20200020), + 12: uint32(0x00002020), + 13: uint32(0x20002020), + 14: uint32(0x00202020), + 15: uint32(0x20202020), + }, + 6: { + 1: uint32(0x08000000), + 2: uint32(0x00080000), + 3: uint32(0x08080000), + 4: uint32(0x00000800), + 5: uint32(0x08000800), + 6: uint32(0x00080800), + 7: uint32(0x08080800), + 8: uint32(0x00000008), + 9: uint32(0x08000008), + 10: uint32(0x00080008), + 11: uint32(0x08080008), + 12: uint32(0x00000808), + 13: uint32(0x08000808), + 14: uint32(0x00080808), + 15: uint32(0x08080808), + }, + 7: { + 1: uint32(0x02000000), + 2: uint32(0x00020000), + 3: uint32(0x02020000), + 4: uint32(0x00000200), + 5: uint32(0x02000200), + 6: uint32(0x00020200), + 7: uint32(0x02020200), + 8: uint32(0x00000002), + 9: uint32(0x02000002), + 10: uint32(0x00020002), + 11: uint32(0x02020002), + 12: uint32(0x00000202), + 13: uint32(0x02000202), + 14: uint32(0x00020202), + 15: uint32(0x02020202), + }, +} +var _key_perm_maskl = [8][16]Tuint32_t{ + 0: { + 2: uint32(0x00000010), + 3: uint32(0x00000010), + 4: uint32(0x00001000), + 5: uint32(0x00001000), + 6: uint32(0x00001010), + 7: uint32(0x00001010), + 8: uint32(0x00100000), + 9: uint32(0x00100000), + 10: uint32(0x00100010), + 11: uint32(0x00100010), + 12: uint32(0x00101000), + 13: uint32(0x00101000), + 14: uint32(0x00101010), + 15: uint32(0x00101010), + }, + 1: { + 2: uint32(0x00000020), + 3: uint32(0x00000020), + 4: uint32(0x00002000), + 5: uint32(0x00002000), + 6: uint32(0x00002020), + 7: uint32(0x00002020), + 8: uint32(0x00200000), + 9: uint32(0x00200000), + 10: uint32(0x00200020), + 11: uint32(0x00200020), + 12: uint32(0x00202000), + 13: uint32(0x00202000), + 14: uint32(0x00202020), + 15: uint32(0x00202020), + }, + 2: { + 2: uint32(0x00000040), + 3: uint32(0x00000040), + 4: uint32(0x00004000), + 5: uint32(0x00004000), + 6: uint32(0x00004040), + 7: uint32(0x00004040), + 8: uint32(0x00400000), + 9: uint32(0x00400000), + 10: uint32(0x00400040), + 11: uint32(0x00400040), + 12: uint32(0x00404000), + 13: uint32(0x00404000), + 14: uint32(0x00404040), + 15: uint32(0x00404040), + }, + 3: { + 2: uint32(0x00000080), + 3: uint32(0x00000080), + 4: uint32(0x00008000), + 5: uint32(0x00008000), + 6: uint32(0x00008080), + 7: uint32(0x00008080), + 8: uint32(0x00800000), + 9: uint32(0x00800000), + 10: uint32(0x00800080), + 11: uint32(0x00800080), + 12: uint32(0x00808000), + 13: uint32(0x00808000), + 14: uint32(0x00808080), + 15: uint32(0x00808080), + }, + 4: { + 1: uint32(0x00000001), + 2: uint32(0x00000100), + 3: uint32(0x00000101), + 4: uint32(0x00010000), + 5: uint32(0x00010001), + 6: uint32(0x00010100), + 7: uint32(0x00010101), + 8: uint32(0x01000000), + 9: uint32(0x01000001), + 10: uint32(0x01000100), + 11: uint32(0x01000101), + 12: uint32(0x01010000), + 13: uint32(0x01010001), + 14: uint32(0x01010100), + 15: uint32(0x01010101), + }, + 5: { + 1: uint32(0x00000002), + 2: uint32(0x00000200), + 3: uint32(0x00000202), + 4: uint32(0x00020000), + 5: uint32(0x00020002), + 6: uint32(0x00020200), + 7: uint32(0x00020202), + 8: uint32(0x02000000), + 9: uint32(0x02000002), + 10: uint32(0x02000200), + 11: uint32(0x02000202), + 12: uint32(0x02020000), + 13: uint32(0x02020002), + 14: uint32(0x02020200), + 15: uint32(0x02020202), + }, + 6: { + 1: uint32(0x00000004), + 2: uint32(0x00000400), + 3: uint32(0x00000404), + 4: uint32(0x00040000), + 5: uint32(0x00040004), + 6: uint32(0x00040400), + 7: uint32(0x00040404), + 8: uint32(0x04000000), + 9: uint32(0x04000004), + 10: uint32(0x04000400), + 11: uint32(0x04000404), + 12: uint32(0x04040000), + 13: uint32(0x04040004), + 14: uint32(0x04040400), + 15: uint32(0x04040404), + }, + 7: { + 1: uint32(0x00000008), + 2: uint32(0x00000800), + 3: uint32(0x00000808), + 4: uint32(0x00080000), + 5: uint32(0x00080008), + 6: uint32(0x00080800), + 7: uint32(0x00080808), + 8: uint32(0x08000000), + 9: uint32(0x08000008), + 10: uint32(0x08000800), + 11: uint32(0x08000808), + 12: uint32(0x08080000), + 13: uint32(0x08080008), + 14: uint32(0x08080800), + 15: uint32(0x08080808), + }, +} +var _key_perm_maskr = [12][16]Tuint32_t{ + 0: { + 1: uint32(0x00000001), + 3: uint32(0x00000001), + 5: uint32(0x00000001), + 7: uint32(0x00000001), + 9: uint32(0x00000001), + 11: uint32(0x00000001), + 13: uint32(0x00000001), + 15: uint32(0x00000001), + }, + 1: { + 2: uint32(0x00100000), + 3: uint32(0x00100000), + 4: uint32(0x00001000), + 5: uint32(0x00001000), + 6: uint32(0x00101000), + 7: uint32(0x00101000), + 8: uint32(0x00000010), + 9: uint32(0x00000010), + 10: uint32(0x00100010), + 11: uint32(0x00100010), + 12: uint32(0x00001010), + 13: uint32(0x00001010), + 14: uint32(0x00101010), + 15: uint32(0x00101010), + }, + 2: { + 1: uint32(0x00000002), + 3: uint32(0x00000002), + 5: uint32(0x00000002), + 7: uint32(0x00000002), + 9: uint32(0x00000002), + 11: uint32(0x00000002), + 13: uint32(0x00000002), + 15: uint32(0x00000002), + }, + 3: { + 2: uint32(0x00200000), + 3: uint32(0x00200000), + 4: uint32(0x00002000), + 5: uint32(0x00002000), + 6: uint32(0x00202000), + 7: uint32(0x00202000), + 8: uint32(0x00000020), + 9: uint32(0x00000020), + 10: uint32(0x00200020), + 11: uint32(0x00200020), + 12: uint32(0x00002020), + 13: uint32(0x00002020), + 14: uint32(0x00202020), + 15: uint32(0x00202020), + }, + 4: { + 1: uint32(0x00000004), + 3: uint32(0x00000004), + 5: uint32(0x00000004), + 7: uint32(0x00000004), + 9: uint32(0x00000004), + 11: uint32(0x00000004), + 13: uint32(0x00000004), + 15: uint32(0x00000004), + }, + 5: { + 2: uint32(0x00400000), + 3: uint32(0x00400000), + 4: uint32(0x00004000), + 5: uint32(0x00004000), + 6: uint32(0x00404000), + 7: uint32(0x00404000), + 8: uint32(0x00000040), + 9: uint32(0x00000040), + 10: uint32(0x00400040), + 11: uint32(0x00400040), + 12: uint32(0x00004040), + 13: uint32(0x00004040), + 14: uint32(0x00404040), + 15: uint32(0x00404040), + }, + 6: { + 1: uint32(0x00000008), + 3: uint32(0x00000008), + 5: uint32(0x00000008), + 7: uint32(0x00000008), + 9: uint32(0x00000008), + 11: uint32(0x00000008), + 13: uint32(0x00000008), + 15: uint32(0x00000008), + }, + 7: { + 2: uint32(0x00800000), + 3: uint32(0x00800000), + 4: uint32(0x00008000), + 5: uint32(0x00008000), + 6: uint32(0x00808000), + 7: uint32(0x00808000), + 8: uint32(0x00000080), + 9: uint32(0x00000080), + 10: uint32(0x00800080), + 11: uint32(0x00800080), + 12: uint32(0x00008080), + 13: uint32(0x00008080), + 14: uint32(0x00808080), + 15: uint32(0x00808080), + }, + 8: { + 2: uint32(0x01000000), + 3: uint32(0x01000000), + 4: uint32(0x00010000), + 5: uint32(0x00010000), + 6: uint32(0x01010000), + 7: uint32(0x01010000), + 8: uint32(0x00000100), + 9: uint32(0x00000100), + 10: uint32(0x01000100), + 11: uint32(0x01000100), + 12: uint32(0x00010100), + 13: uint32(0x00010100), + 14: uint32(0x01010100), + 15: uint32(0x01010100), + }, + 9: { + 2: uint32(0x02000000), + 3: uint32(0x02000000), + 4: uint32(0x00020000), + 5: uint32(0x00020000), + 6: uint32(0x02020000), + 7: uint32(0x02020000), + 8: uint32(0x00000200), + 9: uint32(0x00000200), + 10: uint32(0x02000200), + 11: uint32(0x02000200), + 12: uint32(0x00020200), + 13: uint32(0x00020200), + 14: uint32(0x02020200), + 15: uint32(0x02020200), + }, + 10: { + 2: uint32(0x04000000), + 3: uint32(0x04000000), + 4: uint32(0x00040000), + 5: uint32(0x00040000), + 6: uint32(0x04040000), + 7: uint32(0x04040000), + 8: uint32(0x00000400), + 9: uint32(0x00000400), + 10: uint32(0x04000400), + 11: uint32(0x04000400), + 12: uint32(0x00040400), + 13: uint32(0x00040400), + 14: uint32(0x04040400), + 15: uint32(0x04040400), + }, + 11: { + 2: uint32(0x08000000), + 3: uint32(0x08000000), + 4: uint32(0x00080000), + 5: uint32(0x00080000), + 6: uint32(0x08080000), + 7: uint32(0x08080000), + 8: uint32(0x00000800), + 9: uint32(0x00000800), + 10: uint32(0x08000800), + 11: uint32(0x08000800), + 12: uint32(0x00080800), + 13: uint32(0x00080800), + 14: uint32(0x08080800), + 15: uint32(0x08080800), + }, +} +var _comp_maskl0 = [4][8]Tuint32_t{ + 0: { + 1: uint32(0x00020000), + 2: uint32(0x00000001), + 3: uint32(0x00020001), + 4: uint32(0x00080000), + 5: uint32(0x000a0000), + 6: uint32(0x00080001), + 7: uint32(0x000a0001), + }, + 1: { + 1: uint32(0x00001000), + 3: uint32(0x00001000), + 4: uint32(0x00000040), + 5: uint32(0x00001040), + 6: uint32(0x00000040), + 7: uint32(0x00001040), + }, + 2: { + 1: uint32(0x00400000), + 2: uint32(0x00000020), + 3: uint32(0x00400020), + 4: uint32(0x00008000), + 5: uint32(0x00408000), + 6: uint32(0x00008020), + 7: uint32(0x00408020), + }, + 3: { + 1: uint32(0x00100000), + 2: uint32(0x00000800), + 3: uint32(0x00100800), + 5: uint32(0x00100000), + 6: uint32(0x00000800), + 7: uint32(0x00100800), + }, +} +var _comp_maskr0 = [4][8]Tuint32_t{ + 0: { + 1: uint32(0x00200000), + 2: uint32(0x00020000), + 3: uint32(0x00220000), + 4: uint32(0x00000002), + 5: uint32(0x00200002), + 6: uint32(0x00020002), + 7: uint32(0x00220002), + }, + 1: { + 2: uint32(0x00100000), + 3: uint32(0x00100000), + 4: uint32(0x00000004), + 5: uint32(0x00000004), + 6: uint32(0x00100004), + 7: uint32(0x00100004), + }, + 2: { + 1: uint32(0x00004000), + 2: uint32(0x00000800), + 3: uint32(0x00004800), + 5: uint32(0x00004000), + 6: uint32(0x00000800), + 7: uint32(0x00004800), + }, + 3: { + 1: uint32(0x00400000), + 2: uint32(0x00008000), + 3: uint32(0x00408000), + 4: uint32(0x00000008), + 5: uint32(0x00400008), + 6: uint32(0x00008008), + 7: uint32(0x00408008), + }, +} +var _comp_maskl1 = [4][16]Tuint32_t{ + 0: { + 1: uint32(0x00000010), + 2: uint32(0x00004000), + 3: uint32(0x00004010), + 4: uint32(0x00040000), + 5: uint32(0x00040010), + 6: uint32(0x00044000), + 7: uint32(0x00044010), + 8: uint32(0x00000100), + 9: uint32(0x00000110), + 10: uint32(0x00004100), + 11: uint32(0x00004110), + 12: uint32(0x00040100), + 13: uint32(0x00040110), + 14: uint32(0x00044100), + 15: uint32(0x00044110), + }, + 1: { + 1: uint32(0x00800000), + 2: uint32(0x00000002), + 3: uint32(0x00800002), + 4: uint32(0x00000200), + 5: uint32(0x00800200), + 6: uint32(0x00000202), + 7: uint32(0x00800202), + 8: uint32(0x00200000), + 9: uint32(0x00a00000), + 10: uint32(0x00200002), + 11: uint32(0x00a00002), + 12: uint32(0x00200200), + 13: uint32(0x00a00200), + 14: uint32(0x00200202), + 15: uint32(0x00a00202), + }, + 2: { + 1: uint32(0x00002000), + 2: uint32(0x00000004), + 3: uint32(0x00002004), + 4: uint32(0x00000400), + 5: uint32(0x00002400), + 6: uint32(0x00000404), + 7: uint32(0x00002404), + 9: uint32(0x00002000), + 10: uint32(0x00000004), + 11: uint32(0x00002004), + 12: uint32(0x00000400), + 13: uint32(0x00002400), + 14: uint32(0x00000404), + 15: uint32(0x00002404), + }, + 3: { + 1: uint32(0x00010000), + 2: uint32(0x00000008), + 3: uint32(0x00010008), + 4: uint32(0x00000080), + 5: uint32(0x00010080), + 6: uint32(0x00000088), + 7: uint32(0x00010088), + 9: uint32(0x00010000), + 10: uint32(0x00000008), + 11: uint32(0x00010008), + 12: uint32(0x00000080), + 13: uint32(0x00010080), + 14: uint32(0x00000088), + 15: uint32(0x00010088), + }, +} +var _comp_maskr1 = [4][16]Tuint32_t{ + 0: { + 2: uint32(0x00000080), + 3: uint32(0x00000080), + 4: uint32(0x00002000), + 5: uint32(0x00002000), + 6: uint32(0x00002080), + 7: uint32(0x00002080), + 8: uint32(0x00000001), + 9: uint32(0x00000001), + 10: uint32(0x00000081), + 11: uint32(0x00000081), + 12: uint32(0x00002001), + 13: uint32(0x00002001), + 14: uint32(0x00002081), + 15: uint32(0x00002081), + }, + 1: { + 1: uint32(0x00000010), + 2: uint32(0x00800000), + 3: uint32(0x00800010), + 4: uint32(0x00010000), + 5: uint32(0x00010010), + 6: uint32(0x00810000), + 7: uint32(0x00810010), + 8: uint32(0x00000200), + 9: uint32(0x00000210), + 10: uint32(0x00800200), + 11: uint32(0x00800210), + 12: uint32(0x00010200), + 13: uint32(0x00010210), + 14: uint32(0x00810200), + 15: uint32(0x00810210), + }, + 2: { + 1: uint32(0x00000400), + 2: uint32(0x00001000), + 3: uint32(0x00001400), + 4: uint32(0x00080000), + 5: uint32(0x00080400), + 6: uint32(0x00081000), + 7: uint32(0x00081400), + 8: uint32(0x00000020), + 9: uint32(0x00000420), + 10: uint32(0x00001020), + 11: uint32(0x00001420), + 12: uint32(0x00080020), + 13: uint32(0x00080420), + 14: uint32(0x00081020), + 15: uint32(0x00081420), + }, + 3: { + 1: uint32(0x00000100), + 2: uint32(0x00040000), + 3: uint32(0x00040100), + 5: uint32(0x00000100), + 6: uint32(0x00040000), + 7: uint32(0x00040100), + 8: uint32(0x00000040), + 9: uint32(0x00000140), + 10: uint32(0x00040040), + 11: uint32(0x00040140), + 12: uint32(0x00000040), + 13: uint32(0x00000140), + 14: uint32(0x00040040), + 15: uint32(0x00040140), + }, +} + +var _ascii64 = [65]uint8{'.', '/', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'} + +/* 0000000000111111111122222222223333333333444444444455555555556666 */ +/* 0123456789012345678901234567890123456789012345678901234567890123 */ + +// C documentation +// +// /* +// * We match the behavior of UFC-crypt on systems where "char" is signed by +// * default (the majority), regardless of char's signedness on our system. +// */ +func _ascii_to_bin(tls *TLS, ch int32) (r Tuint32_t) { + var retval, sch, v1 int32 + _, _, _ = retval, sch, v1 + if ch < int32(0x80) { + v1 = ch + } else { + v1 = -(int32(0x100) - ch) + } + sch = v1 + retval = sch - int32('.') + if sch >= int32('A') { + retval = sch - (Int32FromUint8('A') - Int32FromInt32(12)) + if sch >= int32('a') { + retval = sch - (Int32FromUint8('a') - Int32FromInt32(38)) + } + } + retval = retval & int32(0x3f) + return Uint32FromInt32(retval) +} + +// C documentation +// +// /* +// * When we choose to "support" invalid salts, nevertheless disallow those +// * containing characters that would violate the passwd file format. +// */ +func _ascii_is_unsafe(tls *TLS, ch uint8) (r int32) { + return BoolInt32(!(ch != 0) || Int32FromUint8(ch) == int32('\n') || Int32FromUint8(ch) == int32(':')) +} + +func _setup_salt(tls *TLS, salt Tuint32_t) (r Tuint32_t) { + var i uint32 + var obit, saltbit, saltbits Tuint32_t + _, _, _, _ = i, obit, saltbit, saltbits + saltbits = uint32(0) + saltbit = uint32(1) + obit = uint32(0x800000) + i = uint32(0) + for { + if !(i < uint32(24)) { + break + } + if salt&saltbit != 0 { + saltbits = saltbits | obit + } + saltbit = saltbit << uint32(1) + obit = obit >> uint32(1) + goto _1 + _1: + ; + i = i + 1 + } + return saltbits +} + +func X__des_setkey(tls *TLS, key uintptr, ekey uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v ekey=%v, (%v:)", tls, key, ekey, origin(2)) + } + var i, ibit, j, round, shifts uint32 + var k0, k1, kl, kr, rawkey0, rawkey1, t0, t1, v1 Tuint32_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = i, ibit, j, k0, k1, kl, kr, rawkey0, rawkey1, round, shifts, t0, t1, v1 + rawkey0 = uint32(**(**uint8)(__ccgo_up(key + 3))) | uint32(**(**uint8)(__ccgo_up(key + 2)))<>ibit&uint32(0xf))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_key_perm_maskl)) + uintptr(i+uint32(4))*64 + uintptr(rawkey1>>ibit&uint32(0xf))*4))) + k1 = k1 | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_key_perm_maskr)) + uintptr(j)*64 + uintptr(rawkey0>>ibit&uint32(0xf))*4)) + ibit = ibit - uint32(4) + k1 = k1 | (**(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_key_perm_maskr)) + uintptr(j+uint32(1))*64 + uintptr(rawkey0>>ibit&uint32(0xf))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_key_perm_maskr)) + uintptr(i+uint32(8))*64 + uintptr(rawkey1>>ibit&uint32(0xf))*4))) + goto _2 + _2: + ; + i = i + 1 + ibit = ibit - uint32(4) + } + /* + * Rotate subkeys and do compression permutation. + */ + shifts = uint32(0) + round = uint32(0) + for { + if !(round < uint32(16)) { + break + } + shifts = shifts + uint32(_key_shifts[round]) + t0 = k0<>(Uint32FromInt32(28)-shifts) + t1 = k1<>(Uint32FromInt32(28)-shifts) + v1 = Uint32FromInt32(0) + kr = v1 + kl = v1 + ibit = uint32(25) + i = uint32(0) + for { + if !(i < uint32(4)) { + break + } + kl = kl | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_comp_maskl0)) + uintptr(i)*32 + uintptr(t0>>ibit&uint32(7))*4)) + kr = kr | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_comp_maskr0)) + uintptr(i)*32 + uintptr(t1>>ibit&uint32(7))*4)) + ibit = ibit - uint32(4) + kl = kl | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_comp_maskl1)) + uintptr(i)*64 + uintptr(t0>>ibit&uint32(0xf))*4)) + kr = kr | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_comp_maskr1)) + uintptr(i)*64 + uintptr(t1>>ibit&uint32(0xf))*4)) + ibit = ibit - uint32(3) + goto _5 + _5: + ; + i = i + 1 + } + **(**Tuint32_t)(__ccgo_up(ekey + uintptr(round)*4)) = kl + **(**Tuint32_t)(__ccgo_up(ekey + 64 + uintptr(round)*4)) = kr + goto _3 + _3: + ; + round = round + 1 + } +} + +// C documentation +// +// /* +// * l_in, r_in, l_out, and r_out are in pseudo-"big-endian" format. +// */ +func X__do_des(tls *TLS, l_in Tuint32_t, r_in Tuint32_t, l_out uintptr, r_out uintptr, count Tuint32_t, saltbits Tuint32_t, ekey uintptr) { + if __ccgo_strace { + trc("tls=%v l_in=%v r_in=%v l_out=%v r_out=%v count=%v saltbits=%v ekey=%v, (%v:)", tls, l_in, r_in, l_out, r_out, count, saltbits, ekey, origin(2)) + } + var f, l, lo, r, r48l, r48r, ro, v1 Tuint32_t + var i, i1, ibit, ibit1, round, v4 uint32 + var kl, kr, v5 uintptr + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = f, i, i1, ibit, ibit1, kl, kr, l, lo, r, r48l, r48r, ro, round, v1, v4, v5 + /* + * Do initial permutation (IP). + */ + v1 = Uint32FromInt32(0) + r = v1 + l = v1 + if l_in|r_in != 0 { + i = uint32(0) + ibit = Uint32FromInt32(28) + for { + if !(i < uint32(8)) { + break + } + l = l | (**(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_ip_maskl)) + uintptr(i)*64 + uintptr(l_in>>ibit&uint32(0xf))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_ip_maskl)) + uintptr(i+uint32(8))*64 + uintptr(r_in>>ibit&uint32(0xf))*4))) + r = r | (**(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_ip_maskr)) + uintptr(i)*64 + uintptr(l_in>>ibit&uint32(0xf))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_ip_maskr)) + uintptr(i+uint32(8))*64 + uintptr(r_in>>ibit&uint32(0xf))*4))) + goto _2 + _2: + ; + i = i + 1 + ibit = ibit - uint32(4) + } + } + for { + v1 = count + count = count - 1 + if !(v1 != 0) { + break + } + /* + * Do each round. + */ + round = uint32(16) + kl = ekey + kr = ekey + 64 + for { + v4 = round + round = round - 1 + if !(v4 != 0) { + break + } + /* + * Expand R to 48 bits (simulate the E-box). + */ + r48l = r&uint32(0x00000001)<>int32(9) | r&uint32(0x1f800000)>>int32(11) | r&uint32(0x01f80000)>>int32(13) | r&uint32(0x001f8000)>>int32(15) + r48r = r&uint32(0x0001f800)<>int32(31) + /* + * Do salting for crypt() and friends, and + * XOR with the permuted key. + */ + f = (r48l ^ r48r) & saltbits + v5 = kl + kl += 4 + r48l = r48l ^ (f ^ **(**Tuint32_t)(__ccgo_up(v5))) + v5 = kr + kr += 4 + r48r = r48r ^ (f ^ **(**Tuint32_t)(__ccgo_up(v5))) + /* + * Do S-box lookups (which shrink it back to 32 bits) + * and do the P-box permutation at the same time. + */ + f = **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_psbox)) + uintptr(r48l>>int32(18))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_psbox)) + 1*256 + uintptr(r48l>>Int32FromInt32(12)&uint32(0x3f))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_psbox)) + 2*256 + uintptr(r48l>>Int32FromInt32(6)&uint32(0x3f))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_psbox)) + 3*256 + uintptr(r48l&uint32(0x3f))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_psbox)) + 4*256 + uintptr(r48r>>int32(18))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_psbox)) + 5*256 + uintptr(r48r>>Int32FromInt32(12)&uint32(0x3f))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_psbox)) + 6*256 + uintptr(r48r>>Int32FromInt32(6)&uint32(0x3f))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_psbox)) + 7*256 + uintptr(r48r&uint32(0x3f))*4)) + /* + * Now that we've permuted things, complete f(). + */ + f = f ^ l + l = r + r = f + } + r = l + l = f + } + /* + * Do final permutation (inverse of IP). + */ + v1 = Uint32FromInt32(0) + ro = v1 + lo = v1 + i1 = uint32(0) + ibit1 = Uint32FromInt32(28) + for { + if !(i1 < uint32(4)) { + break + } + ro = ro | (**(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_fp_maskr)) + uintptr(i1)*64 + uintptr(l>>ibit1&uint32(0xf))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_fp_maskr)) + uintptr(i1+uint32(4))*64 + uintptr(r>>ibit1&uint32(0xf))*4))) + ibit1 = ibit1 - uint32(4) + lo = lo | (**(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_fp_maskl)) + uintptr(i1)*64 + uintptr(l>>ibit1&uint32(0xf))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_fp_maskl)) + uintptr(i1+uint32(4))*64 + uintptr(r>>ibit1&uint32(0xf))*4))) + goto _8 + _8: + ; + i1 = i1 + 1 + ibit1 = ibit1 - uint32(4) + } + **(**Tuint32_t)(__ccgo_up(l_out)) = lo + **(**Tuint32_t)(__ccgo_up(r_out)) = ro +} + +func _des_cipher(tls *TLS, in uintptr, out uintptr, count Tuint32_t, saltbits Tuint32_t, ekey uintptr) { + bp := tls.Alloc(16) + defer tls.Free(16) + var rawl, rawr Tuint32_t + var _ /* l_out at bp+0 */ Tuint32_t + var _ /* r_out at bp+4 */ Tuint32_t + _, _ = rawl, rawr + rawl = uint32(**(**uint8)(__ccgo_up(in + 3))) | uint32(**(**uint8)(__ccgo_up(in + 2)))<> int32(24)) + **(**uint8)(__ccgo_up(out + 1)) = uint8(**(**Tuint32_t)(__ccgo_up(bp)) >> int32(16)) + **(**uint8)(__ccgo_up(out + 2)) = uint8(**(**Tuint32_t)(__ccgo_up(bp)) >> int32(8)) + **(**uint8)(__ccgo_up(out + 3)) = uint8(**(**Tuint32_t)(__ccgo_up(bp))) + **(**uint8)(__ccgo_up(out + 4)) = uint8(**(**Tuint32_t)(__ccgo_up(bp + 4)) >> int32(24)) + **(**uint8)(__ccgo_up(out + 5)) = uint8(**(**Tuint32_t)(__ccgo_up(bp + 4)) >> int32(16)) + **(**uint8)(__ccgo_up(out + 6)) = uint8(**(**Tuint32_t)(__ccgo_up(bp + 4)) >> int32(8)) + **(**uint8)(__ccgo_up(out + 7)) = uint8(**(**Tuint32_t)(__ccgo_up(bp + 4))) +} + +func __crypt_extended_r_uut(tls *TLS, _key uintptr, _setting uintptr, output uintptr) (r uintptr) { + bp := tls.Alloc(144) + defer tls.Free(144) + var count, l, salt, value, value1 Tuint32_t + var i uint32 + var key, p, q, setting, v1, v4, v5 uintptr + var _ /* ekey at bp+0 */ Texpanded_key + var _ /* keybuf at bp+128 */ [8]uint8 + var _ /* r0 at bp+136 */ Tuint32_t + var _ /* r1 at bp+140 */ Tuint32_t + _, _, _, _, _, _, _, _, _, _, _, _, _ = count, i, key, l, p, q, salt, setting, value, value1, v1, v4, v5 + key = _key + setting = _setting + /* + * Copy the key, shifting each character left by one bit and padding + * with zeroes. + */ + q = bp + 128 + for q <= bp+128+uintptr(Uint32FromInt64(8)-Uint32FromInt32(1)) { + v1 = q + q = q + 1 + **(**uint8)(__ccgo_up(v1)) = Uint8FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(key))) << int32(1)) + if **(**uint8)(__ccgo_up(key)) != 0 { + key = key + 1 + } + } + X__des_setkey(tls, bp+128, bp) + if Int32FromUint8(**(**uint8)(__ccgo_up(setting))) == int32('_') { + /* + * "new"-style: + * setting - underscore, 4 chars of count, 4 chars of salt + * key - unlimited characters + */ + i = uint32(1) + count = Uint32FromInt32(0) + for { + if !(i < uint32(5)) { + break + } + value = _ascii_to_bin(tls, Int32FromUint8(**(**uint8)(__ccgo_up(setting + uintptr(i))))) + if Int32FromUint8(_ascii64[value]) != Int32FromUint8(**(**uint8)(__ccgo_up(setting + uintptr(i)))) { + return UintptrFromInt32(0) + } + count = count | value<<((i-uint32(1))*uint32(6)) + goto _2 + _2: + ; + i = i + 1 + } + if !(count != 0) { + return UintptrFromInt32(0) + } + i = uint32(5) + salt = Uint32FromInt32(0) + for { + if !(i < uint32(9)) { + break + } + value1 = _ascii_to_bin(tls, Int32FromUint8(**(**uint8)(__ccgo_up(setting + uintptr(i))))) + if Int32FromUint8(_ascii64[value1]) != Int32FromUint8(**(**uint8)(__ccgo_up(setting + uintptr(i)))) { + return UintptrFromInt32(0) + } + salt = salt | value1<<((i-uint32(5))*uint32(6)) + goto _3 + _3: + ; + i = i + 1 + } + for **(**uint8)(__ccgo_up(key)) != 0 { + /* + * Encrypt the key with itself. + */ + _des_cipher(tls, bp+128, bp+128, uint32(1), uint32(0), bp) + /* + * And XOR with the next 8 characters of the key. + */ + q = bp + 128 + for q <= bp+128+uintptr(Uint32FromInt64(8)-Uint32FromInt32(1)) && **(**uint8)(__ccgo_up(key)) != 0 { + v4 = q + q = q + 1 + v1 = v4 + v5 = key + key = key + 1 + *(*uint8)(unsafe.Pointer(v1)) = uint8(int32(*(*uint8)(unsafe.Pointer(v1))) ^ Int32FromUint8(**(**uint8)(__ccgo_up(v5)))<> int32(8) + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l>>Int32FromInt32(18)&uint32(0x3f)] + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l>>Int32FromInt32(12)&uint32(0x3f)] + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l>>Int32FromInt32(6)&uint32(0x3f)] + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l&uint32(0x3f)] + l = **(**Tuint32_t)(__ccgo_up(bp + 136))<>Int32FromInt32(16)&uint32(0xffff) + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l>>Int32FromInt32(18)&uint32(0x3f)] + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l>>Int32FromInt32(12)&uint32(0x3f)] + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l>>Int32FromInt32(6)&uint32(0x3f)] + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l&uint32(0x3f)] + l = **(**Tuint32_t)(__ccgo_up(bp + 140)) << int32(2) + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l>>Int32FromInt32(12)&uint32(0x3f)] + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l>>Int32FromInt32(6)&uint32(0x3f)] + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l&uint32(0x3f)] + **(**uint8)(__ccgo_up(p)) = uint8(0) + return output +} + +func X__crypt_des(tls *TLS, key uintptr, setting uintptr, output uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v setting=%v output=%v, (%v:)", tls, key, setting, output, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var p, retval, test_hash, test_key, test_setting, v1 uintptr + var _ /* test_buf at bp+0 */ [21]uint8 + _, _, _, _, _, _ = p, retval, test_hash, test_key, test_setting, v1 + test_key = __ccgo_ts + 72 + test_setting = __ccgo_ts + 93 + test_hash = __ccgo_ts + 103 + if Int32FromUint8(**(**uint8)(__ccgo_up(setting))) != int32('_') { + test_setting = __ccgo_ts + 124 + test_hash = __ccgo_ts + 127 + } + /* + * Hash the supplied password. + */ + retval = __crypt_extended_r_uut(tls, key, setting, output) + /* + * Perform a quick self-test. It is important that we make both calls + * to _crypt_extended_r_uut() from the same scope such that they likely + * use the same stack locations, which makes the second call overwrite + * the first call's sensitive data on the stack and makes it more + * likely that any alignment related issues would be detected. + */ + p = __crypt_extended_r_uut(tls, test_key, test_setting, bp) + if p != 0 && !(Xstrcmp(tls, p, test_hash) != 0) && retval != 0 { + return retval + } + if Int32FromUint8(**(**uint8)(__ccgo_up(setting))) == int32('*') { + v1 = __ccgo_ts + 141 + } else { + v1 = __ccgo_ts + 70 + } + return v1 +} + +const KEY_MAX = 30000 +const SALT_MAX = 8 + +/* public domain md5 implementation based on rfc1321 and libtomcrypt */ + +type Tmd5 = struct { + F__ccgo_align [0]uint32 + Flen1 Tuint64_t + Fh [4]Tuint32_t + Fbuf [64]Tuint8_t +} + +func _rol(tls *TLS, n Tuint32_t, k int32) (r Tuint32_t) { + return n<>(Int32FromInt32(32)-k) +} + +var _tab = [64]Tuint32_t{ + 0: uint32(0xd76aa478), + 1: uint32(0xe8c7b756), + 2: uint32(0x242070db), + 3: uint32(0xc1bdceee), + 4: uint32(0xf57c0faf), + 5: uint32(0x4787c62a), + 6: uint32(0xa8304613), + 7: uint32(0xfd469501), + 8: uint32(0x698098d8), + 9: uint32(0x8b44f7af), + 10: uint32(0xffff5bb1), + 11: uint32(0x895cd7be), + 12: uint32(0x6b901122), + 13: uint32(0xfd987193), + 14: uint32(0xa679438e), + 15: uint32(0x49b40821), + 16: uint32(0xf61e2562), + 17: uint32(0xc040b340), + 18: uint32(0x265e5a51), + 19: uint32(0xe9b6c7aa), + 20: uint32(0xd62f105d), + 21: uint32(0x02441453), + 22: uint32(0xd8a1e681), + 23: uint32(0xe7d3fbc8), + 24: uint32(0x21e1cde6), + 25: uint32(0xc33707d6), + 26: uint32(0xf4d50d87), + 27: uint32(0x455a14ed), + 28: uint32(0xa9e3e905), + 29: uint32(0xfcefa3f8), + 30: uint32(0x676f02d9), + 31: uint32(0x8d2a4c8a), + 32: uint32(0xfffa3942), + 33: uint32(0x8771f681), + 34: uint32(0x6d9d6122), + 35: uint32(0xfde5380c), + 36: uint32(0xa4beea44), + 37: uint32(0x4bdecfa9), + 38: uint32(0xf6bb4b60), + 39: uint32(0xbebfbc70), + 40: uint32(0x289b7ec6), + 41: uint32(0xeaa127fa), + 42: uint32(0xd4ef3085), + 43: uint32(0x04881d05), + 44: uint32(0xd9d4d039), + 45: uint32(0xe6db99e5), + 46: uint32(0x1fa27cf8), + 47: uint32(0xc4ac5665), + 48: uint32(0xf4292244), + 49: uint32(0x432aff97), + 50: uint32(0xab9423a7), + 51: uint32(0xfc93a039), + 52: uint32(0x655b59c3), + 53: uint32(0x8f0ccc92), + 54: uint32(0xffeff47d), + 55: uint32(0x85845dd1), + 56: uint32(0x6fa87e4f), + 57: uint32(0xfe2ce6e0), + 58: uint32(0xa3014314), + 59: uint32(0x4e0811a1), + 60: uint32(0xf7537e82), + 61: uint32(0xbd3af235), + 62: uint32(0x2ad7d2bb), + 63: uint32(0xeb86d391), +} + +func _processblock(tls *TLS, s uintptr, buf uintptr) { + bp := tls.Alloc(64) + defer tls.Free(64) + var a, b, c, d, i Tuint32_t + var _ /* W at bp+0 */ [16]Tuint32_t + _, _, _, _, _ = a, b, c, d, i + i = uint32(0) + for { + if !(i < uint32(16)) { + break + } + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[i] = uint32(**(**Tuint8_t)(__ccgo_up(buf + uintptr(uint32(4)*i)))) + **(**Tuint32_t)(__ccgo_up(bp + uintptr(i)*4)) |= uint32(**(**Tuint8_t)(__ccgo_up(buf + uintptr(uint32(4)*i+uint32(1))))) << int32(8) + **(**Tuint32_t)(__ccgo_up(bp + uintptr(i)*4)) |= uint32(**(**Tuint8_t)(__ccgo_up(buf + uintptr(uint32(4)*i+uint32(2))))) << int32(16) + **(**Tuint32_t)(__ccgo_up(bp + uintptr(i)*4)) |= uint32(**(**Tuint8_t)(__ccgo_up(buf + uintptr(uint32(4)*i+uint32(3))))) << int32(24) + goto _1 + _1: + ; + i = i + 1 + } + a = **(**Tuint32_t)(__ccgo_up(s + 8)) + b = **(**Tuint32_t)(__ccgo_up(s + 8 + 1*4)) + c = **(**Tuint32_t)(__ccgo_up(s + 8 + 2*4)) + d = **(**Tuint32_t)(__ccgo_up(s + 8 + 3*4)) + i = uint32(0) + for i < uint32(16) { + a = a + (d ^ b&(c^d) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[i] + _tab[i]) + a = _rol(tls, a, int32(7)) + b + i = i + 1 + d = d + (c ^ a&(b^c) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[i] + _tab[i]) + d = _rol(tls, d, int32(12)) + a + i = i + 1 + c = c + (b ^ d&(a^b) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[i] + _tab[i]) + c = _rol(tls, c, int32(17)) + d + i = i + 1 + b = b + (a ^ c&(d^a) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[i] + _tab[i]) + b = _rol(tls, b, int32(22)) + c + i = i + 1 + } + for i < uint32(32) { + a = a + (c ^ d&(c^b) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[(uint32(5)*i+uint32(1))%uint32(16)] + _tab[i]) + a = _rol(tls, a, int32(5)) + b + i = i + 1 + d = d + (b ^ c&(b^a) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[(uint32(5)*i+uint32(1))%uint32(16)] + _tab[i]) + d = _rol(tls, d, int32(9)) + a + i = i + 1 + c = c + (a ^ b&(a^d) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[(uint32(5)*i+uint32(1))%uint32(16)] + _tab[i]) + c = _rol(tls, c, int32(14)) + d + i = i + 1 + b = b + (d ^ a&(d^c) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[(uint32(5)*i+uint32(1))%uint32(16)] + _tab[i]) + b = _rol(tls, b, int32(20)) + c + i = i + 1 + } + for i < uint32(48) { + a = a + (b ^ c ^ d + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[(uint32(3)*i+uint32(5))%uint32(16)] + _tab[i]) + a = _rol(tls, a, int32(4)) + b + i = i + 1 + d = d + (a ^ b ^ c + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[(uint32(3)*i+uint32(5))%uint32(16)] + _tab[i]) + d = _rol(tls, d, int32(11)) + a + i = i + 1 + c = c + (d ^ a ^ b + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[(uint32(3)*i+uint32(5))%uint32(16)] + _tab[i]) + c = _rol(tls, c, int32(16)) + d + i = i + 1 + b = b + (c ^ d ^ a + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[(uint32(3)*i+uint32(5))%uint32(16)] + _tab[i]) + b = _rol(tls, b, int32(23)) + c + i = i + 1 + } + for i < uint32(64) { + a = a + (c ^ (b | ^d) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[uint32(7)*i%uint32(16)] + _tab[i]) + a = _rol(tls, a, int32(6)) + b + i = i + 1 + d = d + (b ^ (a | ^c) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[uint32(7)*i%uint32(16)] + _tab[i]) + d = _rol(tls, d, int32(10)) + a + i = i + 1 + c = c + (a ^ (d | ^b) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[uint32(7)*i%uint32(16)] + _tab[i]) + c = _rol(tls, c, int32(15)) + d + i = i + 1 + b = b + (d ^ (c | ^a) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[uint32(7)*i%uint32(16)] + _tab[i]) + b = _rol(tls, b, int32(21)) + c + i = i + 1 + } + **(**Tuint32_t)(__ccgo_up(s + 8)) += a + **(**Tuint32_t)(__ccgo_up(s + 8 + 1*4)) += b + **(**Tuint32_t)(__ccgo_up(s + 8 + 2*4)) += c + **(**Tuint32_t)(__ccgo_up(s + 8 + 3*4)) += d +} + +func _pad(tls *TLS, s uintptr) { + var r, v1 uint32 + _, _ = r, v1 + r = uint32((*Tmd5)(unsafe.Pointer(s)).Flen1 % uint64(64)) + v1 = r + r = r + 1 + **(**Tuint8_t)(__ccgo_up(s + 24 + uintptr(v1))) = uint8(0x80) + if r > uint32(56) { + Xmemset(tls, s+24+uintptr(r), 0, uint32(64)-r) + r = uint32(0) + _processblock(tls, s, s+24) + } + Xmemset(tls, s+24+uintptr(r), 0, uint32(56)-r) + **(**Tuint64_t)(__ccgo_up(s)) *= uint64(8) + **(**Tuint8_t)(__ccgo_up(s + 24 + 56)) = uint8((*Tmd5)(unsafe.Pointer(s)).Flen1) + **(**Tuint8_t)(__ccgo_up(s + 24 + 57)) = uint8((*Tmd5)(unsafe.Pointer(s)).Flen1 >> int32(8)) + **(**Tuint8_t)(__ccgo_up(s + 24 + 58)) = uint8((*Tmd5)(unsafe.Pointer(s)).Flen1 >> int32(16)) + **(**Tuint8_t)(__ccgo_up(s + 24 + 59)) = uint8((*Tmd5)(unsafe.Pointer(s)).Flen1 >> int32(24)) + **(**Tuint8_t)(__ccgo_up(s + 24 + 60)) = uint8((*Tmd5)(unsafe.Pointer(s)).Flen1 >> int32(32)) + **(**Tuint8_t)(__ccgo_up(s + 24 + 61)) = uint8((*Tmd5)(unsafe.Pointer(s)).Flen1 >> int32(40)) + **(**Tuint8_t)(__ccgo_up(s + 24 + 62)) = uint8((*Tmd5)(unsafe.Pointer(s)).Flen1 >> int32(48)) + **(**Tuint8_t)(__ccgo_up(s + 24 + 63)) = uint8((*Tmd5)(unsafe.Pointer(s)).Flen1 >> int32(56)) + _processblock(tls, s, s+24) +} + +func _md5_init(tls *TLS, s uintptr) { + (*Tmd5)(unsafe.Pointer(s)).Flen1 = uint64(0) + **(**Tuint32_t)(__ccgo_up(s + 8)) = uint32(0x67452301) + **(**Tuint32_t)(__ccgo_up(s + 8 + 1*4)) = uint32(0xefcdab89) + **(**Tuint32_t)(__ccgo_up(s + 8 + 2*4)) = uint32(0x98badcfe) + **(**Tuint32_t)(__ccgo_up(s + 8 + 3*4)) = uint32(0x10325476) +} + +func _md5_sum(tls *TLS, s uintptr, md uintptr) { + var i int32 + _ = i + _pad(tls, s) + i = 0 + for { + if !(i < int32(4)) { + break + } + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(4)*i))) = uint8(**(**Tuint32_t)(__ccgo_up(s + 8 + uintptr(i)*4))) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(4)*i+int32(1)))) = uint8(**(**Tuint32_t)(__ccgo_up(s + 8 + uintptr(i)*4)) >> int32(8)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(4)*i+int32(2)))) = uint8(**(**Tuint32_t)(__ccgo_up(s + 8 + uintptr(i)*4)) >> int32(16)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(4)*i+int32(3)))) = uint8(**(**Tuint32_t)(__ccgo_up(s + 8 + uintptr(i)*4)) >> int32(24)) + goto _1 + _1: + ; + i = i + 1 + } +} + +func _md5_update(tls *TLS, s uintptr, m uintptr, len1 uint32) { + var p uintptr + var r uint32 + _, _ = p, r + p = m + r = uint32((*Tmd5)(unsafe.Pointer(s)).Flen1 % uint64(64)) + **(**Tuint64_t)(__ccgo_up(s)) += uint64(len1) + if r != 0 { + if len1 < uint32(64)-r { + _memcpy(tls, s+24+uintptr(r), p, len1) + return + } + _memcpy(tls, s+24+uintptr(r), p, uint32(64)-r) + len1 = len1 - (uint32(64) - r) + p = p + uintptr(uint32(64)-r) + _processblock(tls, s, s+24) + } + for { + if !(len1 >= uint32(64)) { + break + } + _processblock(tls, s, p) + goto _1 + _1: + ; + len1 = len1 - uint32(64) + p = p + uintptr(64) + } + _memcpy(tls, s+24, p, len1) +} + +/*- + * Copyright (c) 2003 Poul-Henning Kamp + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + */ + +/* key limit is not part of the original design, added for DoS protection */ + +var _b64 = [65]uint8{'.', '/', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'} + +func _to64(tls *TLS, s uintptr, u uint32, n int32) (r uintptr) { + var v1 int32 + var v2 uintptr + _, _ = v1, v2 + for { + n = n - 1 + v1 = n + if !(v1 >= 0) { + break + } + v2 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = _b64[u%uint32(64)] + u = u / uint32(64) + } + return s +} + +func _md5crypt(tls *TLS, key uintptr, setting uintptr, output uintptr) (r uintptr) { + bp := tls.Alloc(112) + defer tls.Free(112) + var i, klen, slen uint32 + var p, salt, v5 uintptr + var _ /* ctx at bp+0 */ Tmd5 + var _ /* md at bp+88 */ [16]uint8 + _, _, _, _, _, _ = i, klen, p, salt, slen, v5 + /* reject large keys */ + klen = Xstrnlen(tls, key, Uint32FromInt32(Int32FromInt32(KEY_MAX)+Int32FromInt32(1))) + if klen > uint32(KEY_MAX) { + return uintptr(0) + } + /* setting: $1$salt$ (closing $ is optional) */ + if Xstrncmp(tls, setting, __ccgo_ts+143, uint32(3)) != 0 { + return uintptr(0) + } + salt = setting + uintptr(3) + i = uint32(0) + for { + if !(i < uint32(SALT_MAX) && **(**uint8)(__ccgo_up(salt + uintptr(i))) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(salt + uintptr(i)))) != int32('$')) { + break + } + goto _1 + _1: + ; + i = i + 1 + } + slen = i + /* md5(key salt key) */ + _md5_init(tls, bp) + _md5_update(tls, bp, key, klen) + _md5_update(tls, bp, salt, slen) + _md5_update(tls, bp, key, klen) + _md5_sum(tls, bp, bp+88) + /* md5(key $1$ salt repeated-md weird-key[0]-0) */ + _md5_init(tls, bp) + _md5_update(tls, bp, key, klen) + _md5_update(tls, bp, setting, uint32(3)+slen) + i = klen + for { + if !(i > uint32(16)) { + break + } + _md5_update(tls, bp, bp+88, uint32(16)) + goto _2 + _2: + ; + i = i - uint32(16) + } + _md5_update(tls, bp, bp+88, i) + (**(**[16]uint8)(__ccgo_up(bp + 88)))[0] = uint8(0) + i = klen + for { + if !(i != 0) { + break + } + if i&uint32(1) != 0 { + _md5_update(tls, bp, bp+88, uint32(1)) + } else { + _md5_update(tls, bp, key, uint32(1)) + } + goto _3 + _3: + ; + i = i >> uint32(1) + } + _md5_sum(tls, bp, bp+88) + /* md = f(md, key, salt) iteration */ + i = uint32(0) + for { + if !(i < uint32(1000)) { + break + } + _md5_init(tls, bp) + if i%uint32(2) != 0 { + _md5_update(tls, bp, key, klen) + } else { + _md5_update(tls, bp, bp+88, uint32(16)) + } + if i%uint32(3) != 0 { + _md5_update(tls, bp, salt, slen) + } + if i%uint32(7) != 0 { + _md5_update(tls, bp, key, klen) + } + if i%uint32(2) != 0 { + _md5_update(tls, bp, bp+88, uint32(16)) + } else { + _md5_update(tls, bp, key, klen) + } + _md5_sum(tls, bp, bp+88) + goto _4 + _4: + ; + i = i + 1 + } + /* output is $1$salt$hash */ + _memcpy(tls, output, setting, uint32(3)+slen) + p = output + uintptr(3) + uintptr(slen) + v5 = p + p = p + 1 + **(**uint8)(__ccgo_up(v5)) = uint8('$') + i = uint32(0) + for { + if !(i < uint32(5)) { + break + } + p = _to64(tls, p, Uint32FromInt32(Int32FromUint8((**(**[16]uint8)(__ccgo_up(bp + 88)))[**(**uint8)(__ccgo_up(uintptr(unsafe.Pointer(&_perm)) + uintptr(i)*3))])< %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var p, q uintptr + var _ /* testbuf at bp+0 */ [64]uint8 + _, _ = p, q + p = _md5crypt(tls, key, setting, output) + /* self test and stack cleanup */ + q = _md5crypt(tls, uintptr(unsafe.Pointer(&_testkey)), uintptr(unsafe.Pointer(&_testsetting)), bp) + if !(p != 0) || q != bp || Xmemcmp(tls, bp, uintptr(unsafe.Pointer(&_testhash)), uint32(35)) != 0 { + return __ccgo_ts + 70 + } + return p +} + +var _testkey = [18]uint8{'X', 'y', '0', '1', '@', '#', 1, 2, 128, 127, 255, 13, 10, 129, 9, ' ', '!'} + +var _testsetting = [13]uint8{'$', '1', '$', 'a', 'b', 'c', 'd', '0', '1', '2', '3', '$'} + +var _testhash = [35]uint8{'$', '1', '$', 'a', 'b', 'c', 'd', '0', '1', '2', '3', '$', '9', 'Q', 'c', 'g', '8', 'D', 'y', 'v', 'i', 'e', 'k', 'V', '3', 't', 'D', 'G', 'M', 'Z', 'y', 'n', 'J', '1'} + +func X__crypt_r(tls *TLS, key uintptr, salt uintptr, data uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v salt=%v data=%v, (%v:)", tls, key, salt, data, origin(2)) + defer func() { trc("-> %v", r) }() + } + var output uintptr + _ = output + /* Per the crypt_r API, the caller has provided a pointer to + * struct crypt_data; however, this implementation does not + * use the structure to store any internal state, and treats + * it purely as a char buffer for storing the result. */ + output = data + if Int32FromUint8(**(**uint8)(__ccgo_up(salt))) == int32('$') && **(**uint8)(__ccgo_up(salt + 1)) != 0 && **(**uint8)(__ccgo_up(salt + 2)) != 0 { + if Int32FromUint8(**(**uint8)(__ccgo_up(salt + 1))) == int32('1') && Int32FromUint8(**(**uint8)(__ccgo_up(salt + 2))) == int32('$') { + return X__crypt_md5(tls, key, salt, output) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(salt + 1))) == int32('2') && Int32FromUint8(**(**uint8)(__ccgo_up(salt + 3))) == int32('$') { + return X__crypt_blowfish(tls, key, salt, output) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(salt + 1))) == int32('5') && Int32FromUint8(**(**uint8)(__ccgo_up(salt + 2))) == int32('$') { + return X__crypt_sha256(tls, key, salt, output) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(salt + 1))) == int32('6') && Int32FromUint8(**(**uint8)(__ccgo_up(salt + 2))) == int32('$') { + return X__crypt_sha512(tls, key, salt, output) + } + } + return X__crypt_des(tls, key, salt, output) +} + +func Xcrypt_r(tls *TLS, key uintptr, salt uintptr, data uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v salt=%v data=%v, (%v:)", tls, key, salt, data, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__crypt_r(tls, key, salt, data) +} + +const KEY_MAX1 = 256 +const ROUNDS_DEFAULT = 5000 +const ROUNDS_MAX = 9999999 +const ROUNDS_MIN = 1000 +const SALT_MAX1 = 16 + +/* public domain sha256 implementation based on fips180-3 */ + +type Tsha256 = struct { + F__ccgo_align [0]uint32 + Flen1 Tuint64_t + Fh [8]Tuint32_t + Fbuf [64]Tuint8_t +} + +func _ror(tls *TLS, n Tuint32_t, k int32) (r Tuint32_t) { + return n>>k | n<<(Int32FromInt32(32)-k) +} + +var _K = [64]Tuint32_t{ + 0: uint32(0x428a2f98), + 1: uint32(0x71374491), + 2: uint32(0xb5c0fbcf), + 3: uint32(0xe9b5dba5), + 4: uint32(0x3956c25b), + 5: uint32(0x59f111f1), + 6: uint32(0x923f82a4), + 7: uint32(0xab1c5ed5), + 8: uint32(0xd807aa98), + 9: uint32(0x12835b01), + 10: uint32(0x243185be), + 11: uint32(0x550c7dc3), + 12: uint32(0x72be5d74), + 13: uint32(0x80deb1fe), + 14: uint32(0x9bdc06a7), + 15: uint32(0xc19bf174), + 16: uint32(0xe49b69c1), + 17: uint32(0xefbe4786), + 18: uint32(0x0fc19dc6), + 19: uint32(0x240ca1cc), + 20: uint32(0x2de92c6f), + 21: uint32(0x4a7484aa), + 22: uint32(0x5cb0a9dc), + 23: uint32(0x76f988da), + 24: uint32(0x983e5152), + 25: uint32(0xa831c66d), + 26: uint32(0xb00327c8), + 27: uint32(0xbf597fc7), + 28: uint32(0xc6e00bf3), + 29: uint32(0xd5a79147), + 30: uint32(0x06ca6351), + 31: uint32(0x14292967), + 32: uint32(0x27b70a85), + 33: uint32(0x2e1b2138), + 34: uint32(0x4d2c6dfc), + 35: uint32(0x53380d13), + 36: uint32(0x650a7354), + 37: uint32(0x766a0abb), + 38: uint32(0x81c2c92e), + 39: uint32(0x92722c85), + 40: uint32(0xa2bfe8a1), + 41: uint32(0xa81a664b), + 42: uint32(0xc24b8b70), + 43: uint32(0xc76c51a3), + 44: uint32(0xd192e819), + 45: uint32(0xd6990624), + 46: uint32(0xf40e3585), + 47: uint32(0x106aa070), + 48: uint32(0x19a4c116), + 49: uint32(0x1e376c08), + 50: uint32(0x2748774c), + 51: uint32(0x34b0bcb5), + 52: uint32(0x391c0cb3), + 53: uint32(0x4ed8aa4a), + 54: uint32(0x5b9cca4f), + 55: uint32(0x682e6ff3), + 56: uint32(0x748f82ee), + 57: uint32(0x78a5636f), + 58: uint32(0x84c87814), + 59: uint32(0x8cc70208), + 60: uint32(0x90befffa), + 61: uint32(0xa4506ceb), + 62: uint32(0xbef9a3f7), + 63: uint32(0xc67178f2), +} + +func _processblock1(tls *TLS, s uintptr, buf uintptr) { + bp := tls.Alloc(256) + defer tls.Free(256) + var a, b, c, d, e, f, g, h, t1, t2 Tuint32_t + var i int32 + var _ /* W at bp+0 */ [64]Tuint32_t + _, _, _, _, _, _, _, _, _, _, _ = a, b, c, d, e, f, g, h, i, t1, t2 + i = 0 + for { + if !(i < int32(16)) { + break + } + (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i] = uint32(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(4)*i)))) << int32(24) + **(**Tuint32_t)(__ccgo_up(bp + uintptr(i)*4)) |= uint32(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(4)*i+int32(1))))) << int32(16) + **(**Tuint32_t)(__ccgo_up(bp + uintptr(i)*4)) |= uint32(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(4)*i+int32(2))))) << int32(8) + **(**Tuint32_t)(__ccgo_up(bp + uintptr(i)*4)) |= uint32(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(4)*i+int32(3))))) + goto _1 + _1: + ; + i = i + 1 + } + for { + if !(i < int32(64)) { + break + } + (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i] = _ror(tls, (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i-int32(2)], int32(17)) ^ _ror(tls, (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i-int32(2)], int32(19)) ^ (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i-int32(2)]>>Int32FromInt32(10) + (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i-int32(7)] + (_ror(tls, (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i-int32(15)], int32(7)) ^ _ror(tls, (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i-int32(15)], int32(18)) ^ (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i-int32(15)]>>Int32FromInt32(3)) + (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i-int32(16)] + goto _2 + _2: + ; + i = i + 1 + } + a = **(**Tuint32_t)(__ccgo_up(s + 8)) + b = **(**Tuint32_t)(__ccgo_up(s + 8 + 1*4)) + c = **(**Tuint32_t)(__ccgo_up(s + 8 + 2*4)) + d = **(**Tuint32_t)(__ccgo_up(s + 8 + 3*4)) + e = **(**Tuint32_t)(__ccgo_up(s + 8 + 4*4)) + f = **(**Tuint32_t)(__ccgo_up(s + 8 + 5*4)) + g = **(**Tuint32_t)(__ccgo_up(s + 8 + 6*4)) + h = **(**Tuint32_t)(__ccgo_up(s + 8 + 7*4)) + i = 0 + for { + if !(i < int32(64)) { + break + } + t1 = h + (_ror(tls, e, int32(6)) ^ _ror(tls, e, int32(11)) ^ _ror(tls, e, int32(25))) + (g ^ e&(f^g)) + _K[i] + (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i] + t2 = _ror(tls, a, int32(2)) ^ _ror(tls, a, int32(13)) ^ _ror(tls, a, int32(22)) + (a&b | c&(a|b)) + h = g + g = f + f = e + e = d + t1 + d = c + c = b + b = a + a = t1 + t2 + goto _3 + _3: + ; + i = i + 1 + } + **(**Tuint32_t)(__ccgo_up(s + 8)) += a + **(**Tuint32_t)(__ccgo_up(s + 8 + 1*4)) += b + **(**Tuint32_t)(__ccgo_up(s + 8 + 2*4)) += c + **(**Tuint32_t)(__ccgo_up(s + 8 + 3*4)) += d + **(**Tuint32_t)(__ccgo_up(s + 8 + 4*4)) += e + **(**Tuint32_t)(__ccgo_up(s + 8 + 5*4)) += f + **(**Tuint32_t)(__ccgo_up(s + 8 + 6*4)) += g + **(**Tuint32_t)(__ccgo_up(s + 8 + 7*4)) += h +} + +func _pad1(tls *TLS, s uintptr) { + var r, v1 uint32 + _, _ = r, v1 + r = uint32((*Tsha256)(unsafe.Pointer(s)).Flen1 % uint64(64)) + v1 = r + r = r + 1 + **(**Tuint8_t)(__ccgo_up(s + 40 + uintptr(v1))) = uint8(0x80) + if r > uint32(56) { + Xmemset(tls, s+40+uintptr(r), 0, uint32(64)-r) + r = uint32(0) + _processblock1(tls, s, s+40) + } + Xmemset(tls, s+40+uintptr(r), 0, uint32(56)-r) + **(**Tuint64_t)(__ccgo_up(s)) *= uint64(8) + **(**Tuint8_t)(__ccgo_up(s + 40 + 56)) = uint8((*Tsha256)(unsafe.Pointer(s)).Flen1 >> int32(56)) + **(**Tuint8_t)(__ccgo_up(s + 40 + 57)) = uint8((*Tsha256)(unsafe.Pointer(s)).Flen1 >> int32(48)) + **(**Tuint8_t)(__ccgo_up(s + 40 + 58)) = uint8((*Tsha256)(unsafe.Pointer(s)).Flen1 >> int32(40)) + **(**Tuint8_t)(__ccgo_up(s + 40 + 59)) = uint8((*Tsha256)(unsafe.Pointer(s)).Flen1 >> int32(32)) + **(**Tuint8_t)(__ccgo_up(s + 40 + 60)) = uint8((*Tsha256)(unsafe.Pointer(s)).Flen1 >> int32(24)) + **(**Tuint8_t)(__ccgo_up(s + 40 + 61)) = uint8((*Tsha256)(unsafe.Pointer(s)).Flen1 >> int32(16)) + **(**Tuint8_t)(__ccgo_up(s + 40 + 62)) = uint8((*Tsha256)(unsafe.Pointer(s)).Flen1 >> int32(8)) + **(**Tuint8_t)(__ccgo_up(s + 40 + 63)) = uint8((*Tsha256)(unsafe.Pointer(s)).Flen1) + _processblock1(tls, s, s+40) +} + +func _sha256_init(tls *TLS, s uintptr) { + (*Tsha256)(unsafe.Pointer(s)).Flen1 = uint64(0) + **(**Tuint32_t)(__ccgo_up(s + 8)) = uint32(0x6a09e667) + **(**Tuint32_t)(__ccgo_up(s + 8 + 1*4)) = uint32(0xbb67ae85) + **(**Tuint32_t)(__ccgo_up(s + 8 + 2*4)) = uint32(0x3c6ef372) + **(**Tuint32_t)(__ccgo_up(s + 8 + 3*4)) = uint32(0xa54ff53a) + **(**Tuint32_t)(__ccgo_up(s + 8 + 4*4)) = uint32(0x510e527f) + **(**Tuint32_t)(__ccgo_up(s + 8 + 5*4)) = uint32(0x9b05688c) + **(**Tuint32_t)(__ccgo_up(s + 8 + 6*4)) = uint32(0x1f83d9ab) + **(**Tuint32_t)(__ccgo_up(s + 8 + 7*4)) = uint32(0x5be0cd19) +} + +func _sha256_sum(tls *TLS, s uintptr, md uintptr) { + var i int32 + _ = i + _pad1(tls, s) + i = 0 + for { + if !(i < int32(8)) { + break + } + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(4)*i))) = uint8(**(**Tuint32_t)(__ccgo_up(s + 8 + uintptr(i)*4)) >> int32(24)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(4)*i+int32(1)))) = uint8(**(**Tuint32_t)(__ccgo_up(s + 8 + uintptr(i)*4)) >> int32(16)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(4)*i+int32(2)))) = uint8(**(**Tuint32_t)(__ccgo_up(s + 8 + uintptr(i)*4)) >> int32(8)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(4)*i+int32(3)))) = uint8(**(**Tuint32_t)(__ccgo_up(s + 8 + uintptr(i)*4))) + goto _1 + _1: + ; + i = i + 1 + } +} + +func _sha256_update(tls *TLS, s uintptr, m uintptr, len1 uint32) { + var p uintptr + var r uint32 + _, _ = p, r + p = m + r = uint32((*Tsha256)(unsafe.Pointer(s)).Flen1 % uint64(64)) + **(**Tuint64_t)(__ccgo_up(s)) += uint64(len1) + if r != 0 { + if len1 < uint32(64)-r { + _memcpy(tls, s+40+uintptr(r), p, len1) + return + } + _memcpy(tls, s+40+uintptr(r), p, uint32(64)-r) + len1 = len1 - (uint32(64) - r) + p = p + uintptr(uint32(64)-r) + _processblock1(tls, s, s+40) + } + for { + if !(len1 >= uint32(64)) { + break + } + _processblock1(tls, s, p) + goto _1 + _1: + ; + len1 = len1 - uint32(64) + p = p + uintptr(64) + } + _memcpy(tls, s+40, p, len1) +} + +var _b641 = [65]uint8{'.', '/', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'} + +func _to641(tls *TLS, s uintptr, u uint32, n int32) (r uintptr) { + var v1 int32 + var v2 uintptr + _, _ = v1, v2 + for { + n = n - 1 + v1 = n + if !(v1 >= 0) { + break + } + v2 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = _b641[u%uint32(64)] + u = u / uint32(64) + } + return s +} + +/* key limit is not part of the original design, added for DoS protection. + * rounds limit has been lowered (versus the reference/spec), also for DoS + * protection. runtime is O(klen^2 + klen*rounds) */ + +// C documentation +// +// /* hash n bytes of the repeated md message digest */ +func _hashmd(tls *TLS, s uintptr, n uint32, md uintptr) { + var i uint32 + _ = i + i = n + for { + if !(i > uint32(32)) { + break + } + _sha256_update(tls, s, md, uint32(32)) + goto _1 + _1: + ; + i = i - uint32(32) + } + _sha256_update(tls, s, md, i) +} + +func _sha256crypt(tls *TLS, key uintptr, setting uintptr, output uintptr) (r1 uintptr) { + bp := tls.Alloc(256) + defer tls.Free(256) + var i, klen, r, slen, u uint32 + var p, salt uintptr + var _ /* ctx at bp+0 */ Tsha256 + var _ /* end at bp+220 */ uintptr + var _ /* kmd at bp+136 */ [32]uint8 + var _ /* md at bp+104 */ [32]uint8 + var _ /* rounds at bp+200 */ [20]uint8 + var _ /* smd at bp+168 */ [32]uint8 + _, _, _, _, _, _, _ = i, klen, p, r, salt, slen, u + **(**[20]uint8)(__ccgo_up(bp + 200)) = [20]uint8{} + /* reject large keys */ + klen = Xstrnlen(tls, key, Uint32FromInt32(Int32FromInt32(KEY_MAX1)+Int32FromInt32(1))) + if klen > uint32(KEY_MAX1) { + return uintptr(0) + } + /* setting: $5$rounds=n$salt$ (rounds=n$ and closing $ are optional) */ + if Xstrncmp(tls, setting, __ccgo_ts+147, uint32(3)) != 0 { + return uintptr(0) + } + salt = setting + uintptr(3) + r = uint32(ROUNDS_DEFAULT) + if Xstrncmp(tls, salt, __ccgo_ts+151, Uint32FromInt64(8)-Uint32FromInt32(1)) == 0 { + /* + * this is a deviation from the reference: + * bad rounds setting is rejected if it is + * - empty + * - unterminated (missing '$') + * - begins with anything but a decimal digit + * the reference implementation treats these bad + * rounds as part of the salt or parse them with + * strtoul semantics which may cause problems + * including non-portable hashes that depend on + * the host's value of ULONG_MAX. + */ + salt = salt + uintptr(Uint32FromInt64(8)-Uint32FromInt32(1)) + if !(BoolInt32(uint32(**(**uint8)(__ccgo_up(salt)))-Uint32FromUint8('0') < Uint32FromInt32(10)) != 0) { + return uintptr(0) + } + u = Xstrtoul(tls, salt, bp+220, int32(10)) + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 220))))) != int32('$') { + return uintptr(0) + } + salt = **(**uintptr)(__ccgo_up(bp + 220)) + uintptr(1) + if u < uint32(ROUNDS_MIN) { + r = uint32(ROUNDS_MIN) + } else { + if u > uint32(ROUNDS_MAX) { + return uintptr(0) + } else { + r = u + } + } + /* needed when rounds is zero prefixed or out of bounds */ + Xsprintf(tls, bp+200, __ccgo_ts+159, VaList(bp+232, r)) + } + i = uint32(0) + for { + if !(i < uint32(SALT_MAX1) && **(**uint8)(__ccgo_up(salt + uintptr(i))) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(salt + uintptr(i)))) != int32('$')) { + break + } + /* reject characters that interfere with /etc/shadow parsing */ + if Int32FromUint8(**(**uint8)(__ccgo_up(salt + uintptr(i)))) == int32('\n') || Int32FromUint8(**(**uint8)(__ccgo_up(salt + uintptr(i)))) == int32(':') { + return uintptr(0) + } + goto _1 + _1: + ; + i = i + 1 + } + slen = i + /* B = sha(key salt key) */ + _sha256_init(tls, bp) + _sha256_update(tls, bp, key, klen) + _sha256_update(tls, bp, salt, slen) + _sha256_update(tls, bp, key, klen) + _sha256_sum(tls, bp, bp+104) + /* A = sha(key salt repeat-B alternate-B-key) */ + _sha256_init(tls, bp) + _sha256_update(tls, bp, key, klen) + _sha256_update(tls, bp, salt, slen) + _hashmd(tls, bp, klen, bp+104) + i = klen + for { + if !(i > uint32(0)) { + break + } + if i&uint32(1) != 0 { + _sha256_update(tls, bp, bp+104, uint32(32)) + } else { + _sha256_update(tls, bp, key, klen) + } + goto _2 + _2: + ; + i = i >> uint32(1) + } + _sha256_sum(tls, bp, bp+104) + /* DP = sha(repeat-key), this step takes O(klen^2) time */ + _sha256_init(tls, bp) + i = uint32(0) + for { + if !(i < klen) { + break + } + _sha256_update(tls, bp, key, klen) + goto _3 + _3: + ; + i = i + 1 + } + _sha256_sum(tls, bp, bp+136) + /* DS = sha(repeat-salt) */ + _sha256_init(tls, bp) + i = uint32(0) + for { + if !(i < Uint32FromInt32(int32(16)+Int32FromUint8((**(**[32]uint8)(__ccgo_up(bp + 104)))[0]))) { + break + } + _sha256_update(tls, bp, salt, slen) + goto _4 + _4: + ; + i = i + 1 + } + _sha256_sum(tls, bp, bp+168) + /* iterate A = f(A,DP,DS), this step takes O(rounds*klen) time */ + i = uint32(0) + for { + if !(i < r) { + break + } + _sha256_init(tls, bp) + if i%uint32(2) != 0 { + _hashmd(tls, bp, klen, bp+136) + } else { + _sha256_update(tls, bp, bp+104, uint32(32)) + } + if i%uint32(3) != 0 { + _sha256_update(tls, bp, bp+168, slen) + } + if i%uint32(7) != 0 { + _hashmd(tls, bp, klen, bp+136) + } + if i%uint32(2) != 0 { + _sha256_update(tls, bp, bp+104, uint32(32)) + } else { + _hashmd(tls, bp, klen, bp+136) + } + _sha256_sum(tls, bp, bp+104) + goto _5 + _5: + ; + i = i + 1 + } + /* output is $5$rounds=n$salt$hash */ + p = output + p = p + uintptr(Xsprintf(tls, p, __ccgo_ts+170, VaList(bp+232, bp+200, slen, salt))) + i = uint32(0) + for { + if !(i < uint32(10)) { + break + } + p = _to641(tls, p, Uint32FromInt32(Int32FromUint8((**(**[32]uint8)(__ccgo_up(bp + 104)))[**(**uint8)(__ccgo_up(uintptr(unsafe.Pointer(&_perm1)) + uintptr(i)*3))])< %v", r) }() + } + bp := tls.Alloc(128) + defer tls.Free(128) + var p, q uintptr + var _ /* testbuf at bp+0 */ [128]uint8 + _, _ = p, q + p = _sha256crypt(tls, key, setting, output) + /* self test and stack cleanup */ + q = _sha256crypt(tls, uintptr(unsafe.Pointer(&_testkey1)), uintptr(unsafe.Pointer(&_testsetting1)), bp) + if !(p != 0) || q != bp || Xmemcmp(tls, bp, uintptr(unsafe.Pointer(&_testhash1)), uint32(73)) != 0 { + return __ccgo_ts + 70 + } + return p +} + +var _testkey1 = [18]uint8{'X', 'y', '0', '1', '@', '#', 1, 2, 128, 127, 255, 13, 10, 129, 9, ' ', '!'} + +var _testsetting1 = [30]uint8{'$', '5', '$', 'r', 'o', 'u', 'n', 'd', 's', '=', '1', '2', '3', '4', '$', 'a', 'b', 'c', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '$'} + +var _testhash1 = [73]uint8{'$', '5', '$', 'r', 'o', 'u', 'n', 'd', 's', '=', '1', '2', '3', '4', '$', 'a', 'b', 'c', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '$', '3', 'V', 'f', 'D', 'j', 'P', 't', '0', '5', 'V', 'H', 'F', 'n', '4', '7', 'C', '/', 'o', 'j', 'F', 'Z', '6', 'K', 'R', 'P', 'Y', 'r', 'O', 'j', 'j', '1', 'l', 'L', 'b', 'H', '.', 'd', 'k', 'F', '3', 'b', 'Z', '6'} + +/* public domain sha512 implementation based on fips180-3 */ +/* >=2^64 bits messages are not supported (about 2000 peta bytes) */ + +type Tsha512 = struct { + F__ccgo_align [0]uint32 + Flen1 Tuint64_t + Fh [8]Tuint64_t + Fbuf [128]Tuint8_t +} + +func _ror1(tls *TLS, n Tuint64_t, k int32) (r Tuint64_t) { + return n>>k | n<<(Int32FromInt32(64)-k) +} + +var _K1 = [80]Tuint64_t{ + 0: uint64(0x428a2f98d728ae22), + 1: uint64(0x7137449123ef65cd), + 2: uint64(0xb5c0fbcfec4d3b2f), + 3: uint64(0xe9b5dba58189dbbc), + 4: uint64(0x3956c25bf348b538), + 5: uint64(0x59f111f1b605d019), + 6: uint64(0x923f82a4af194f9b), + 7: uint64(0xab1c5ed5da6d8118), + 8: uint64(0xd807aa98a3030242), + 9: uint64(0x12835b0145706fbe), + 10: uint64(0x243185be4ee4b28c), + 11: uint64(0x550c7dc3d5ffb4e2), + 12: uint64(0x72be5d74f27b896f), + 13: uint64(0x80deb1fe3b1696b1), + 14: uint64(0x9bdc06a725c71235), + 15: uint64(0xc19bf174cf692694), + 16: uint64(0xe49b69c19ef14ad2), + 17: uint64(0xefbe4786384f25e3), + 18: uint64(0x0fc19dc68b8cd5b5), + 19: uint64(0x240ca1cc77ac9c65), + 20: uint64(0x2de92c6f592b0275), + 21: uint64(0x4a7484aa6ea6e483), + 22: uint64(0x5cb0a9dcbd41fbd4), + 23: uint64(0x76f988da831153b5), + 24: uint64(0x983e5152ee66dfab), + 25: uint64(0xa831c66d2db43210), + 26: uint64(0xb00327c898fb213f), + 27: uint64(0xbf597fc7beef0ee4), + 28: uint64(0xc6e00bf33da88fc2), + 29: uint64(0xd5a79147930aa725), + 30: uint64(0x06ca6351e003826f), + 31: uint64(0x142929670a0e6e70), + 32: uint64(0x27b70a8546d22ffc), + 33: uint64(0x2e1b21385c26c926), + 34: uint64(0x4d2c6dfc5ac42aed), + 35: uint64(0x53380d139d95b3df), + 36: uint64(0x650a73548baf63de), + 37: uint64(0x766a0abb3c77b2a8), + 38: uint64(0x81c2c92e47edaee6), + 39: uint64(0x92722c851482353b), + 40: uint64(0xa2bfe8a14cf10364), + 41: uint64(0xa81a664bbc423001), + 42: uint64(0xc24b8b70d0f89791), + 43: uint64(0xc76c51a30654be30), + 44: uint64(0xd192e819d6ef5218), + 45: uint64(0xd69906245565a910), + 46: uint64(0xf40e35855771202a), + 47: uint64(0x106aa07032bbd1b8), + 48: uint64(0x19a4c116b8d2d0c8), + 49: uint64(0x1e376c085141ab53), + 50: uint64(0x2748774cdf8eeb99), + 51: uint64(0x34b0bcb5e19b48a8), + 52: uint64(0x391c0cb3c5c95a63), + 53: uint64(0x4ed8aa4ae3418acb), + 54: uint64(0x5b9cca4f7763e373), + 55: uint64(0x682e6ff3d6b2b8a3), + 56: uint64(0x748f82ee5defb2fc), + 57: uint64(0x78a5636f43172f60), + 58: uint64(0x84c87814a1f0ab72), + 59: uint64(0x8cc702081a6439ec), + 60: uint64(0x90befffa23631e28), + 61: uint64(0xa4506cebde82bde9), + 62: uint64(0xbef9a3f7b2c67915), + 63: uint64(0xc67178f2e372532b), + 64: uint64(0xca273eceea26619c), + 65: uint64(0xd186b8c721c0c207), + 66: uint64(0xeada7dd6cde0eb1e), + 67: uint64(0xf57d4f7fee6ed178), + 68: uint64(0x06f067aa72176fba), + 69: uint64(0x0a637dc5a2c898a6), + 70: uint64(0x113f9804bef90dae), + 71: uint64(0x1b710b35131c471b), + 72: uint64(0x28db77f523047d84), + 73: uint64(0x32caab7b40c72493), + 74: uint64(0x3c9ebe0a15c9bebc), + 75: uint64(0x431d67c49c100d4c), + 76: uint64(0x4cc5d4becb3e42b6), + 77: uint64(0x597f299cfc657e2a), + 78: uint64(0x5fcb6fab3ad6faec), + 79: uint64(0x6c44198c4a475817), +} + +func _processblock2(tls *TLS, s uintptr, buf uintptr) { + bp := tls.Alloc(640) + defer tls.Free(640) + var a, b, c, d, e, f, g, h, t1, t2 Tuint64_t + var i int32 + var _ /* W at bp+0 */ [80]Tuint64_t + _, _, _, _, _, _, _, _, _, _, _ = a, b, c, d, e, f, g, h, i, t1, t2 + i = 0 + for { + if !(i < int32(16)) { + break + } + (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i] = uint64(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(8)*i)))) << int32(56) + **(**Tuint64_t)(__ccgo_up(bp + uintptr(i)*8)) |= uint64(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(8)*i+int32(1))))) << int32(48) + **(**Tuint64_t)(__ccgo_up(bp + uintptr(i)*8)) |= uint64(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(8)*i+int32(2))))) << int32(40) + **(**Tuint64_t)(__ccgo_up(bp + uintptr(i)*8)) |= uint64(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(8)*i+int32(3))))) << int32(32) + **(**Tuint64_t)(__ccgo_up(bp + uintptr(i)*8)) |= uint64(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(8)*i+int32(4))))) << int32(24) + **(**Tuint64_t)(__ccgo_up(bp + uintptr(i)*8)) |= uint64(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(8)*i+int32(5))))) << int32(16) + **(**Tuint64_t)(__ccgo_up(bp + uintptr(i)*8)) |= uint64(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(8)*i+int32(6))))) << int32(8) + **(**Tuint64_t)(__ccgo_up(bp + uintptr(i)*8)) |= uint64(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(8)*i+int32(7))))) + goto _1 + _1: + ; + i = i + 1 + } + for { + if !(i < int32(80)) { + break + } + (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i] = _ror1(tls, (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i-int32(2)], int32(19)) ^ _ror1(tls, (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i-int32(2)], int32(61)) ^ (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i-int32(2)]>>Int32FromInt32(6) + (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i-int32(7)] + (_ror1(tls, (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i-int32(15)], int32(1)) ^ _ror1(tls, (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i-int32(15)], int32(8)) ^ (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i-int32(15)]>>Int32FromInt32(7)) + (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i-int32(16)] + goto _2 + _2: + ; + i = i + 1 + } + a = **(**Tuint64_t)(__ccgo_up(s + 8)) + b = **(**Tuint64_t)(__ccgo_up(s + 8 + 1*8)) + c = **(**Tuint64_t)(__ccgo_up(s + 8 + 2*8)) + d = **(**Tuint64_t)(__ccgo_up(s + 8 + 3*8)) + e = **(**Tuint64_t)(__ccgo_up(s + 8 + 4*8)) + f = **(**Tuint64_t)(__ccgo_up(s + 8 + 5*8)) + g = **(**Tuint64_t)(__ccgo_up(s + 8 + 6*8)) + h = **(**Tuint64_t)(__ccgo_up(s + 8 + 7*8)) + i = 0 + for { + if !(i < int32(80)) { + break + } + t1 = h + (_ror1(tls, e, int32(14)) ^ _ror1(tls, e, int32(18)) ^ _ror1(tls, e, int32(41))) + (g ^ e&(f^g)) + _K1[i] + (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i] + t2 = _ror1(tls, a, int32(28)) ^ _ror1(tls, a, int32(34)) ^ _ror1(tls, a, int32(39)) + (a&b | c&(a|b)) + h = g + g = f + f = e + e = d + t1 + d = c + c = b + b = a + a = t1 + t2 + goto _3 + _3: + ; + i = i + 1 + } + **(**Tuint64_t)(__ccgo_up(s + 8)) += a + **(**Tuint64_t)(__ccgo_up(s + 8 + 1*8)) += b + **(**Tuint64_t)(__ccgo_up(s + 8 + 2*8)) += c + **(**Tuint64_t)(__ccgo_up(s + 8 + 3*8)) += d + **(**Tuint64_t)(__ccgo_up(s + 8 + 4*8)) += e + **(**Tuint64_t)(__ccgo_up(s + 8 + 5*8)) += f + **(**Tuint64_t)(__ccgo_up(s + 8 + 6*8)) += g + **(**Tuint64_t)(__ccgo_up(s + 8 + 7*8)) += h +} + +func _pad2(tls *TLS, s uintptr) { + var r, v1 uint32 + _, _ = r, v1 + r = uint32((*Tsha512)(unsafe.Pointer(s)).Flen1 % uint64(128)) + v1 = r + r = r + 1 + **(**Tuint8_t)(__ccgo_up(s + 72 + uintptr(v1))) = uint8(0x80) + if r > uint32(112) { + Xmemset(tls, s+72+uintptr(r), 0, uint32(128)-r) + r = uint32(0) + _processblock2(tls, s, s+72) + } + Xmemset(tls, s+72+uintptr(r), 0, uint32(120)-r) + **(**Tuint64_t)(__ccgo_up(s)) *= uint64(8) + **(**Tuint8_t)(__ccgo_up(s + 72 + 120)) = uint8((*Tsha512)(unsafe.Pointer(s)).Flen1 >> int32(56)) + **(**Tuint8_t)(__ccgo_up(s + 72 + 121)) = uint8((*Tsha512)(unsafe.Pointer(s)).Flen1 >> int32(48)) + **(**Tuint8_t)(__ccgo_up(s + 72 + 122)) = uint8((*Tsha512)(unsafe.Pointer(s)).Flen1 >> int32(40)) + **(**Tuint8_t)(__ccgo_up(s + 72 + 123)) = uint8((*Tsha512)(unsafe.Pointer(s)).Flen1 >> int32(32)) + **(**Tuint8_t)(__ccgo_up(s + 72 + 124)) = uint8((*Tsha512)(unsafe.Pointer(s)).Flen1 >> int32(24)) + **(**Tuint8_t)(__ccgo_up(s + 72 + 125)) = uint8((*Tsha512)(unsafe.Pointer(s)).Flen1 >> int32(16)) + **(**Tuint8_t)(__ccgo_up(s + 72 + 126)) = uint8((*Tsha512)(unsafe.Pointer(s)).Flen1 >> int32(8)) + **(**Tuint8_t)(__ccgo_up(s + 72 + 127)) = uint8((*Tsha512)(unsafe.Pointer(s)).Flen1) + _processblock2(tls, s, s+72) +} + +func _sha512_init(tls *TLS, s uintptr) { + (*Tsha512)(unsafe.Pointer(s)).Flen1 = uint64(0) + **(**Tuint64_t)(__ccgo_up(s + 8)) = uint64(0x6a09e667f3bcc908) + **(**Tuint64_t)(__ccgo_up(s + 8 + 1*8)) = uint64(0xbb67ae8584caa73b) + **(**Tuint64_t)(__ccgo_up(s + 8 + 2*8)) = uint64(0x3c6ef372fe94f82b) + **(**Tuint64_t)(__ccgo_up(s + 8 + 3*8)) = uint64(0xa54ff53a5f1d36f1) + **(**Tuint64_t)(__ccgo_up(s + 8 + 4*8)) = uint64(0x510e527fade682d1) + **(**Tuint64_t)(__ccgo_up(s + 8 + 5*8)) = uint64(0x9b05688c2b3e6c1f) + **(**Tuint64_t)(__ccgo_up(s + 8 + 6*8)) = uint64(0x1f83d9abfb41bd6b) + **(**Tuint64_t)(__ccgo_up(s + 8 + 7*8)) = uint64(0x5be0cd19137e2179) +} + +func _sha512_sum(tls *TLS, s uintptr, md uintptr) { + var i int32 + _ = i + _pad2(tls, s) + i = 0 + for { + if !(i < int32(8)) { + break + } + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(8)*i))) = uint8(**(**Tuint64_t)(__ccgo_up(s + 8 + uintptr(i)*8)) >> int32(56)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(8)*i+int32(1)))) = uint8(**(**Tuint64_t)(__ccgo_up(s + 8 + uintptr(i)*8)) >> int32(48)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(8)*i+int32(2)))) = uint8(**(**Tuint64_t)(__ccgo_up(s + 8 + uintptr(i)*8)) >> int32(40)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(8)*i+int32(3)))) = uint8(**(**Tuint64_t)(__ccgo_up(s + 8 + uintptr(i)*8)) >> int32(32)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(8)*i+int32(4)))) = uint8(**(**Tuint64_t)(__ccgo_up(s + 8 + uintptr(i)*8)) >> int32(24)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(8)*i+int32(5)))) = uint8(**(**Tuint64_t)(__ccgo_up(s + 8 + uintptr(i)*8)) >> int32(16)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(8)*i+int32(6)))) = uint8(**(**Tuint64_t)(__ccgo_up(s + 8 + uintptr(i)*8)) >> int32(8)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(8)*i+int32(7)))) = uint8(**(**Tuint64_t)(__ccgo_up(s + 8 + uintptr(i)*8))) + goto _1 + _1: + ; + i = i + 1 + } +} + +func _sha512_update(tls *TLS, s uintptr, m uintptr, len1 uint32) { + var p uintptr + var r uint32 + _, _ = p, r + p = m + r = uint32((*Tsha512)(unsafe.Pointer(s)).Flen1 % uint64(128)) + **(**Tuint64_t)(__ccgo_up(s)) += uint64(len1) + if r != 0 { + if len1 < uint32(128)-r { + _memcpy(tls, s+72+uintptr(r), p, len1) + return + } + _memcpy(tls, s+72+uintptr(r), p, uint32(128)-r) + len1 = len1 - (uint32(128) - r) + p = p + uintptr(uint32(128)-r) + _processblock2(tls, s, s+72) + } + for { + if !(len1 >= uint32(128)) { + break + } + _processblock2(tls, s, p) + goto _1 + _1: + ; + len1 = len1 - uint32(128) + p = p + uintptr(128) + } + _memcpy(tls, s+72, p, len1) +} + +var _b642 = [65]uint8{'.', '/', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'} + +func _to642(tls *TLS, s uintptr, u uint32, n int32) (r uintptr) { + var v1 int32 + var v2 uintptr + _, _ = v1, v2 + for { + n = n - 1 + v1 = n + if !(v1 >= 0) { + break + } + v2 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = _b642[u%uint32(64)] + u = u / uint32(64) + } + return s +} + +/* key limit is not part of the original design, added for DoS protection. + * rounds limit has been lowered (versus the reference/spec), also for DoS + * protection. runtime is O(klen^2 + klen*rounds) */ + +// C documentation +// +// /* hash n bytes of the repeated md message digest */ +func _hashmd1(tls *TLS, s uintptr, n uint32, md uintptr) { + var i uint32 + _ = i + i = n + for { + if !(i > uint32(64)) { + break + } + _sha512_update(tls, s, md, uint32(64)) + goto _1 + _1: + ; + i = i - uint32(64) + } + _sha512_update(tls, s, md, i) +} + +func _sha512crypt(tls *TLS, key uintptr, setting uintptr, output uintptr) (r1 uintptr) { + bp := tls.Alloc(448) + defer tls.Free(448) + var i, klen, r, slen, u uint32 + var p, salt uintptr + var _ /* ctx at bp+0 */ Tsha512 + var _ /* end at bp+412 */ uintptr + var _ /* kmd at bp+264 */ [64]uint8 + var _ /* md at bp+200 */ [64]uint8 + var _ /* rounds at bp+392 */ [20]uint8 + var _ /* smd at bp+328 */ [64]uint8 + _, _, _, _, _, _, _ = i, klen, p, r, salt, slen, u + **(**[20]uint8)(__ccgo_up(bp + 392)) = [20]uint8{} + /* reject large keys */ + i = uint32(0) + for { + if !(i <= uint32(KEY_MAX1) && **(**uint8)(__ccgo_up(key + uintptr(i))) != 0) { + break + } + goto _1 + _1: + ; + i = i + 1 + } + if i > uint32(KEY_MAX1) { + return uintptr(0) + } + klen = i + /* setting: $6$rounds=n$salt$ (rounds=n$ and closing $ are optional) */ + if Xstrncmp(tls, setting, __ccgo_ts+181, uint32(3)) != 0 { + return uintptr(0) + } + salt = setting + uintptr(3) + r = uint32(ROUNDS_DEFAULT) + if Xstrncmp(tls, salt, __ccgo_ts+151, Uint32FromInt64(8)-Uint32FromInt32(1)) == 0 { + /* + * this is a deviation from the reference: + * bad rounds setting is rejected if it is + * - empty + * - unterminated (missing '$') + * - begins with anything but a decimal digit + * the reference implementation treats these bad + * rounds as part of the salt or parse them with + * strtoul semantics which may cause problems + * including non-portable hashes that depend on + * the host's value of ULONG_MAX. + */ + salt = salt + uintptr(Uint32FromInt64(8)-Uint32FromInt32(1)) + if !(BoolInt32(uint32(**(**uint8)(__ccgo_up(salt)))-Uint32FromUint8('0') < Uint32FromInt32(10)) != 0) { + return uintptr(0) + } + u = Xstrtoul(tls, salt, bp+412, int32(10)) + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 412))))) != int32('$') { + return uintptr(0) + } + salt = **(**uintptr)(__ccgo_up(bp + 412)) + uintptr(1) + if u < uint32(ROUNDS_MIN) { + r = uint32(ROUNDS_MIN) + } else { + if u > uint32(ROUNDS_MAX) { + return uintptr(0) + } else { + r = u + } + } + /* needed when rounds is zero prefixed or out of bounds */ + Xsprintf(tls, bp+392, __ccgo_ts+159, VaList(bp+424, r)) + } + i = uint32(0) + for { + if !(i < uint32(SALT_MAX1) && **(**uint8)(__ccgo_up(salt + uintptr(i))) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(salt + uintptr(i)))) != int32('$')) { + break + } + /* reject characters that interfere with /etc/shadow parsing */ + if Int32FromUint8(**(**uint8)(__ccgo_up(salt + uintptr(i)))) == int32('\n') || Int32FromUint8(**(**uint8)(__ccgo_up(salt + uintptr(i)))) == int32(':') { + return uintptr(0) + } + goto _2 + _2: + ; + i = i + 1 + } + slen = i + /* B = sha(key salt key) */ + _sha512_init(tls, bp) + _sha512_update(tls, bp, key, klen) + _sha512_update(tls, bp, salt, slen) + _sha512_update(tls, bp, key, klen) + _sha512_sum(tls, bp, bp+200) + /* A = sha(key salt repeat-B alternate-B-key) */ + _sha512_init(tls, bp) + _sha512_update(tls, bp, key, klen) + _sha512_update(tls, bp, salt, slen) + _hashmd1(tls, bp, klen, bp+200) + i = klen + for { + if !(i > uint32(0)) { + break + } + if i&uint32(1) != 0 { + _sha512_update(tls, bp, bp+200, uint32(64)) + } else { + _sha512_update(tls, bp, key, klen) + } + goto _3 + _3: + ; + i = i >> uint32(1) + } + _sha512_sum(tls, bp, bp+200) + /* DP = sha(repeat-key), this step takes O(klen^2) time */ + _sha512_init(tls, bp) + i = uint32(0) + for { + if !(i < klen) { + break + } + _sha512_update(tls, bp, key, klen) + goto _4 + _4: + ; + i = i + 1 + } + _sha512_sum(tls, bp, bp+264) + /* DS = sha(repeat-salt) */ + _sha512_init(tls, bp) + i = uint32(0) + for { + if !(i < Uint32FromInt32(int32(16)+Int32FromUint8((**(**[64]uint8)(__ccgo_up(bp + 200)))[0]))) { + break + } + _sha512_update(tls, bp, salt, slen) + goto _5 + _5: + ; + i = i + 1 + } + _sha512_sum(tls, bp, bp+328) + /* iterate A = f(A,DP,DS), this step takes O(rounds*klen) time */ + i = uint32(0) + for { + if !(i < r) { + break + } + _sha512_init(tls, bp) + if i%uint32(2) != 0 { + _hashmd1(tls, bp, klen, bp+264) + } else { + _sha512_update(tls, bp, bp+200, uint32(64)) + } + if i%uint32(3) != 0 { + _sha512_update(tls, bp, bp+328, slen) + } + if i%uint32(7) != 0 { + _hashmd1(tls, bp, klen, bp+264) + } + if i%uint32(2) != 0 { + _sha512_update(tls, bp, bp+200, uint32(64)) + } else { + _hashmd1(tls, bp, klen, bp+264) + } + _sha512_sum(tls, bp, bp+200) + goto _6 + _6: + ; + i = i + 1 + } + /* output is $6$rounds=n$salt$hash */ + p = output + p = p + uintptr(Xsprintf(tls, p, __ccgo_ts+185, VaList(bp+424, bp+392, slen, salt))) + i = uint32(0) + for { + if !(i < uint32(21)) { + break + } + p = _to642(tls, p, Uint32FromInt32(Int32FromUint8((**(**[64]uint8)(__ccgo_up(bp + 200)))[**(**uint8)(__ccgo_up(uintptr(unsafe.Pointer(&_perm2)) + uintptr(i)*3))])< %v", r) }() + } + bp := tls.Alloc(128) + defer tls.Free(128) + var p, q uintptr + var _ /* testbuf at bp+0 */ [128]uint8 + _, _ = p, q + p = _sha512crypt(tls, key, setting, output) + /* self test and stack cleanup */ + q = _sha512crypt(tls, uintptr(unsafe.Pointer(&_testkey2)), uintptr(unsafe.Pointer(&_testsetting2)), bp) + if !(p != 0) || q != bp || Xmemcmp(tls, bp, uintptr(unsafe.Pointer(&_testhash2)), uint32(116)) != 0 { + return __ccgo_ts + 70 + } + return p +} + +var _testkey2 = [18]uint8{'X', 'y', '0', '1', '@', '#', 1, 2, 128, 127, 255, 13, 10, 129, 9, ' ', '!'} + +var _testsetting2 = [30]uint8{'$', '6', '$', 'r', 'o', 'u', 'n', 'd', 's', '=', '1', '2', '3', '4', '$', 'a', 'b', 'c', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '$'} + +var _testhash2 = [116]uint8{'$', '6', '$', 'r', 'o', 'u', 'n', 'd', 's', '=', '1', '2', '3', '4', '$', 'a', 'b', 'c', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '$', 'B', 'C', 'p', 't', '8', 'z', 'L', 'r', 'c', '/', 'R', 'c', 'y', 'u', 'X', 'm', 'C', 'D', 'O', 'E', '1', 'A', 'L', 'q', 'M', 'X', 'B', '2', 'M', 'H', '6', 'n', '1', 'g', '8', '9', '1', 'H', 'h', 'F', 'j', '8', '.', 'w', '7', 'L', 'x', 'G', 'v', '.', 'F', 'T', 'k', 'q', 'q', '6', 'V', 'x', 'c', '/', 'k', 'm', '3', 'Y', '0', 'j', 'E', '0', 'j', '2', '4', 'j', 'Y', '5', 'P', 'I', 'v', '/', 'o', 'O', 'u', '6', 'r', 'e', 'g', '1'} + +var ___encrypt_key Texpanded_key + +func Xsetkey(tls *TLS, key uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v, (%v:)", tls, key, origin(2)) + } + bp := tls.Alloc(16) + defer tls.Free(16) + var i, j int32 + var v3 uintptr + var _ /* bkey at bp+0 */ [8]uint8 + _, _, _ = i, j, v3 + i = 0 + for { + if !(i < int32(8)) { + break + } + (**(**[8]uint8)(__ccgo_up(bp)))[i] = uint8(0) + j = int32(7) + for { + if !(j >= 0) { + break + } + v3 = bp + uintptr(i) + *(*uint8)(unsafe.Pointer(v3)) = uint8(uint32(*(*uint8)(unsafe.Pointer(v3))) | Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(key)))&Int32FromInt32(1))<= 0) { + break + } + **(**Tuint32_t)(__ccgo_up(bp + 128 + uintptr(i)*4)) |= Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(p)))&Int32FromInt32(1)) << j + goto _2 + _2: + ; + j = j - 1 + p = p + 1 + } + goto _1 + _1: + ; + i = i + 1 + } + key = uintptr(unsafe.Pointer(&___encrypt_key)) + if edflag != 0 { + key = bp + i = 0 + for { + if !(i < int32(16)) { + break + } + **(**Tuint32_t)(__ccgo_up(bp + uintptr(i)*4)) = **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&___encrypt_key)) + uintptr(int32(15)-i)*4)) + **(**Tuint32_t)(__ccgo_up(bp + 64 + uintptr(i)*4)) = **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&___encrypt_key)) + 64 + uintptr(int32(15)-i)*4)) + goto _3 + _3: + ; + i = i + 1 + } + } + X__do_des(tls, (**(**[2]Tuint32_t)(__ccgo_up(bp + 128)))[0], (**(**[2]Tuint32_t)(__ccgo_up(bp + 128)))[int32(1)], bp+128, bp+128+uintptr(1)*4, uint32(1), uint32(0), key) + p = block + i = 0 + for { + if !(i < int32(2)) { + break + } + j = int32(31) + for { + if !(j >= 0) { + break + } + v6 = p + p = p + 1 + **(**uint8)(__ccgo_up(v6)) = uint8((**(**[2]Tuint32_t)(__ccgo_up(bp + 128)))[i] >> j & uint32(1)) + goto _5 + _5: + ; + j = j - 1 + } + goto _4 + _4: + ; + i = i + 1 + } +} + +var _table = [384]uint16{ + 128: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 129: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 130: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 131: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 132: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 133: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 134: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 135: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 136: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 137: Uint16FromInt32((Int32FromInt32(0x320)/Int32FromInt32(256) | Int32FromInt32(0x320)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 138: Uint16FromInt32((Int32FromInt32(0x220)/Int32FromInt32(256) | Int32FromInt32(0x220)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 139: Uint16FromInt32((Int32FromInt32(0x220)/Int32FromInt32(256) | Int32FromInt32(0x220)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 140: Uint16FromInt32((Int32FromInt32(0x220)/Int32FromInt32(256) | Int32FromInt32(0x220)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 141: Uint16FromInt32((Int32FromInt32(0x220)/Int32FromInt32(256) | Int32FromInt32(0x220)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 142: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 143: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 144: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 145: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 146: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 147: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 148: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 149: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 150: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 151: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 152: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 153: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 154: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 155: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 156: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 157: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 158: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 159: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 160: Uint16FromInt32((Int32FromInt32(0x160)/Int32FromInt32(256) | Int32FromInt32(0x160)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 161: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 162: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 163: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 164: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 165: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 166: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 167: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 168: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 169: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 170: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 171: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 172: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 173: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 174: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 175: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 176: Uint16FromInt32((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 177: Uint16FromInt32((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 178: Uint16FromInt32((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 179: Uint16FromInt32((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 180: Uint16FromInt32((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 181: Uint16FromInt32((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 182: Uint16FromInt32((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 183: Uint16FromInt32((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 184: Uint16FromInt32((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 185: Uint16FromInt32((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 186: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 187: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 188: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 189: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 190: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 191: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 192: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 193: Uint16FromInt32((Int32FromInt32(0x8d5)/Int32FromInt32(256) | Int32FromInt32(0x8d5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 194: Uint16FromInt32((Int32FromInt32(0x8d5)/Int32FromInt32(256) | Int32FromInt32(0x8d5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 195: Uint16FromInt32((Int32FromInt32(0x8d5)/Int32FromInt32(256) | Int32FromInt32(0x8d5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 196: Uint16FromInt32((Int32FromInt32(0x8d5)/Int32FromInt32(256) | Int32FromInt32(0x8d5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 197: Uint16FromInt32((Int32FromInt32(0x8d5)/Int32FromInt32(256) | Int32FromInt32(0x8d5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 198: Uint16FromInt32((Int32FromInt32(0x8d5)/Int32FromInt32(256) | Int32FromInt32(0x8d5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 199: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 200: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 201: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 202: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 203: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 204: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 205: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 206: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 207: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 208: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 209: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 210: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 211: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 212: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 213: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 214: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 215: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 216: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 217: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 218: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 219: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 220: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 221: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 222: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 223: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 224: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 225: Uint16FromInt32((Int32FromInt32(0x8d6)/Int32FromInt32(256) | Int32FromInt32(0x8d6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 226: Uint16FromInt32((Int32FromInt32(0x8d6)/Int32FromInt32(256) | Int32FromInt32(0x8d6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 227: Uint16FromInt32((Int32FromInt32(0x8d6)/Int32FromInt32(256) | Int32FromInt32(0x8d6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 228: Uint16FromInt32((Int32FromInt32(0x8d6)/Int32FromInt32(256) | Int32FromInt32(0x8d6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 229: Uint16FromInt32((Int32FromInt32(0x8d6)/Int32FromInt32(256) | Int32FromInt32(0x8d6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 230: Uint16FromInt32((Int32FromInt32(0x8d6)/Int32FromInt32(256) | Int32FromInt32(0x8d6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 231: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 232: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 233: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 234: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 235: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 236: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 237: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 238: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 239: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 240: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 241: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 242: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 243: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 244: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 245: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 246: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 247: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 248: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 249: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 250: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 251: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 252: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 253: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 254: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 255: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), +} + +var _ptable = uintptr(unsafe.Pointer(&_table)) + uintptr(128)*2 + +func X__ctype_b_loc(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(unsafe.Pointer(&_ptable)) +} + +const BLX = "blx" +const CLOCKS_PER_SEC = 1000000 +const CLOCK_BOOTTIME = 7 +const CLOCK_BOOTTIME_ALARM = 9 +const CLOCK_MONOTONIC = 1 +const CLOCK_MONOTONIC_COARSE = 6 +const CLOCK_MONOTONIC_RAW = 4 +const CLOCK_PROCESS_CPUTIME_ID = 2 +const CLOCK_REALTIME = 0 +const CLOCK_REALTIME_ALARM = 8 +const CLOCK_REALTIME_COARSE = 5 +const CLOCK_SGI_CYCLE = 10 +const CLOCK_TAI = 11 +const CLOCK_THREAD_CPUTIME_ID = 3 +const C_LOCALE = 0 +const DEFAULT_GUARD_MAX = 1048576 +const DEFAULT_GUARD_SIZE = 8192 +const DEFAULT_STACK_MAX = 8388608 +const DEFAULT_STACK_SIZE = 131072 +const DTP_OFFSET = 0 +const FUTEX_CLOCK_REALTIME = 256 +const FUTEX_CMP_REQUEUE = 4 +const FUTEX_FD = 2 +const FUTEX_LOCK_PI = 6 +const FUTEX_PRIVATE = 128 +const FUTEX_REQUEUE = 3 +const FUTEX_TRYLOCK_PI = 8 +const FUTEX_UNLOCK_PI = 7 +const FUTEX_WAIT = 0 +const FUTEX_WAIT_BITSET = 9 +const FUTEX_WAKE = 1 +const FUTEX_WAKE_OP = 5 +const GAP_ABOVE_TP = 8 +const LC_ALL = 6 +const LC_ALL_MASK = 2147483647 +const LC_COLLATE = 3 +const LC_COLLATE_MASK = 8 +const LC_CTYPE = 0 +const LC_CTYPE_MASK = 1 +const LC_GLOBAL_LOCALE = -1 +const LC_MESSAGES = 5 +const LC_MESSAGES_MASK = 32 +const LC_MONETARY = 4 +const LC_MONETARY_MASK = 16 +const LC_NUMERIC = 1 +const LC_NUMERIC_MASK = 2 +const LC_TIME = 2 +const LC_TIME_MASK = 4 +const LOCALE_NAME_MAX = 23 +const MAP_ANON = 32 +const MAP_ANONYMOUS = 32 +const MAP_DENYWRITE = 2048 +const MAP_EXECUTABLE = 4096 +const MAP_FAILED = -1 +const MAP_FILE = 0 +const MAP_FIXED = 16 +const MAP_FIXED_NOREPLACE = 1048576 +const MAP_GROWSDOWN = 256 +const MAP_HUGETLB = 262144 +const MAP_HUGE_16GB = 2281701376 +const MAP_HUGE_16KB = 939524096 +const MAP_HUGE_16MB = 1610612736 +const MAP_HUGE_1GB = 2013265920 +const MAP_HUGE_1MB = 1342177280 +const MAP_HUGE_256MB = 1879048192 +const MAP_HUGE_2GB = 2080374784 +const MAP_HUGE_2MB = 1409286144 +const MAP_HUGE_32MB = 1677721600 +const MAP_HUGE_512KB = 1275068416 +const MAP_HUGE_512MB = 1946157056 +const MAP_HUGE_64KB = 1073741824 +const MAP_HUGE_8MB = 1543503872 +const MAP_HUGE_MASK = 63 +const MAP_HUGE_SHIFT = 26 +const MAP_LOCKED = 8192 +const MAP_NONBLOCK = 65536 +const MAP_NORESERVE = 16384 +const MAP_POPULATE = 32768 +const MAP_PRIVATE = 2 +const MAP_SHARED = 1 +const MAP_SHARED_VALIDATE = 3 +const MAP_STACK = 131072 +const MAP_SYNC = 524288 +const MAP_TYPE = 15 +const MCL_CURRENT = 1 +const MCL_FUTURE = 2 +const MCL_ONFAULT = 4 +const MC_PC = 0 +const MS_ASYNC = 1 +const MS_INVALIDATE = 2 +const MS_SYNC = 4 +const POSIX_MADV_DONTNEED = 4 +const POSIX_MADV_NORMAL = 0 +const POSIX_MADV_RANDOM = 1 +const POSIX_MADV_SEQUENTIAL = 2 +const POSIX_MADV_WILLNEED = 3 +const PROT_EXEC = 4 +const PROT_GROWSDOWN = 16777216 +const PROT_GROWSUP = 33554432 +const PROT_NONE = 0 +const PROT_READ = 1 +const PROT_WRITE = 2 +const PTHREAD_BARRIER_SERIAL_THREAD = -1 +const PTHREAD_CANCELED = -1 +const PTHREAD_CANCEL_ASYNCHRONOUS = 1 +const PTHREAD_CANCEL_DEFERRED = 0 +const PTHREAD_CANCEL_DISABLE = 1 +const PTHREAD_CANCEL_ENABLE = 0 +const PTHREAD_CANCEL_MASKED = 2 +const PTHREAD_CREATE_DETACHED = 1 +const PTHREAD_CREATE_JOINABLE = 0 +const PTHREAD_EXPLICIT_SCHED = 1 +const PTHREAD_INHERIT_SCHED = 0 +const PTHREAD_MUTEX_DEFAULT = 0 +const PTHREAD_MUTEX_ERRORCHECK = 2 +const PTHREAD_MUTEX_NORMAL = 0 +const PTHREAD_MUTEX_RECURSIVE = 1 +const PTHREAD_MUTEX_ROBUST = 1 +const PTHREAD_MUTEX_STALLED = 0 +const PTHREAD_ONCE_INIT = 0 +const PTHREAD_PRIO_INHERIT = 1 +const PTHREAD_PRIO_NONE = 0 +const PTHREAD_PRIO_PROTECT = 2 +const PTHREAD_PROCESS_PRIVATE = 0 +const PTHREAD_PROCESS_SHARED = 1 +const PTHREAD_SCOPE_PROCESS = 1 +const PTHREAD_SCOPE_SYSTEM = 0 +const SCHED_BATCH = 3 +const SCHED_DEADLINE = 6 +const SCHED_FIFO = 1 +const SCHED_IDLE = 5 +const SCHED_OTHER = 0 +const SCHED_RESET_ON_FORK = 1073741824 +const SCHED_RR = 2 +const SIGCANCEL = 33 +const SIGSYNCCALL = 34 +const SIGTIMER = 32 +const TIMER_ABSTIME = 1 +const TIME_UTC = 1 +const TP_OFFSET = 0 +const UTF8_LOCALE = 0 +const __CCGO_SIZEOF_GO_MUTEX = 8 +const __SU = 0 +const a_post_llsc = 0 +const a_pre_llsc = 0 +const a_spin = 0 +const pthread = 0 +const tls_mod_off_t = 0 + +type Tlconv = struct { + Fdecimal_point uintptr + Fthousands_sep uintptr + Fgrouping uintptr + Fint_curr_symbol uintptr + Fcurrency_symbol uintptr + Fmon_decimal_point uintptr + Fmon_thousands_sep uintptr + Fmon_grouping uintptr + Fpositive_sign uintptr + Fnegative_sign uintptr + Fint_frac_digits uint8 + Ffrac_digits uint8 + Fp_cs_precedes uint8 + Fp_sep_by_space uint8 + Fn_cs_precedes uint8 + Fn_sep_by_space uint8 + Fp_sign_posn uint8 + Fn_sign_posn uint8 + Fint_p_cs_precedes uint8 + Fint_p_sep_by_space uint8 + Fint_n_cs_precedes uint8 + Fint_n_sep_by_space uint8 + Fint_p_sign_posn uint8 + Fint_n_sign_posn uint8 +} + +type t__locale_map = struct { + Fmap1 uintptr + Fmap_size Tsize_t + Fname [24]uint8 + Fnext uintptr +} + +type Tclockid_t = int32 + +type t__pthread = struct { + F__ccgo_align [0]uint32 + Fself uintptr + Fprev uintptr + Fnext uintptr + Fsysinfo Tuintptr_t + Ftid int32 + Ferrno_val int32 + Fdetach_state int32 + Fcancel int32 + Fcanceldisable uint8 + Fcancelasync uint8 + F__ccgo34 uint8 + Fmap_base uintptr + Fmap_size Tsize_t + Fstack uintptr + Fstack_size Tsize_t + Fguard_size Tsize_t + Fresult uintptr + Fcancelbuf uintptr + Ftsd uintptr + Frobust_list struct { + Fhead uintptr + Foff int32 + Fpending uintptr + } + Fh_errno_val int32 + Ftimer_id int32 + Flocale Tlocale_t + Fkilllock [1]int32 + Fdlerror_buf uintptr + Fstdio_locks uintptr + F__ccgo_join_mutex [1]int64 + Fcanary Tuintptr_t + Fdtv uintptr +} + +type Tpthread_once_t = int32 + +type Tpthread_key_t = uint32 + +type Tpthread_spinlock_t = int32 + +type Tpthread_mutexattr_t = struct { + F__attr uint32 +} + +type Tpthread_condattr_t = struct { + F__attr uint32 +} + +type Tpthread_barrierattr_t = struct { + F__attr uint32 +} + +type Tpthread_rwlockattr_t = struct { + F__attr [2]uint32 +} + +type Tpthread_mutex_t = struct { + F__u struct { + F__vi [0][6]int32 + F__p [0][6]uintptr + F__i [6]int32 + } + F__ccgo_room int32 +} + +type Tpthread_cond_t = struct { + F__u struct { + F__vi [0][12]int32 + F__p [0][12]uintptr + F__i [12]int32 + } +} + +type Tpthread_rwlock_t = struct { + F__u struct { + F__vi [0][8]int32 + F__p [0][8]uintptr + F__i [8]int32 + } +} + +type Tpthread_barrier_t = struct { + F__u struct { + F__vi [0][5]int32 + F__p [0][5]uintptr + F__i [5]int32 + } +} + +type Tsched_param = struct { + Fsched_priority int32 + F__reserved1 int32 + F__reserved2 [4]int32 + F__reserved3 int32 +} + +type Ttimer_t = uintptr + +type Ttm = struct { + Ftm_sec int32 + Ftm_min int32 + Ftm_hour int32 + Ftm_mday int32 + Ftm_mon int32 + Ftm_year int32 + Ftm_wday int32 + Ftm_yday int32 + Ftm_isdst int32 + F__tm_gmtoff int32 + F__tm_zone uintptr +} + +type Titimerspec = struct { + F__ccgo_align [0]uint32 + Fit_interval Ttimespec + Fit_value Ttimespec +} + +type t__ptcb = struct { + F__f uintptr + F__x uintptr + F__next uintptr +} + +type Tmode_t = uint32 + +type Ta_cas_p_undefined_but_pointer_not_32bit = [1]uint8 + +const _DT_EXITED = 0 +const _DT_EXITING = 1 +const _DT_JOINABLE = 2 +const _DT_DETACHED = 3 + +func X__ctype_get_mb_cur_max(tls *TLS) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + _ = v1 + if !!(**(**uintptr)(__ccgo_up((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale)) != 0) { + v1 = int32(4) + } else { + v1 = int32(1) + } + return Uint32FromInt32(v1) +} + +var _table1 = [384]Tint32_t{ + 129: int32(1), + 130: int32(2), + 131: int32(3), + 132: int32(4), + 133: int32(5), + 134: int32(6), + 135: int32(7), + 136: int32(8), + 137: int32(9), + 138: int32(10), + 139: int32(11), + 140: int32(12), + 141: int32(13), + 142: int32(14), + 143: int32(15), + 144: int32(16), + 145: int32(17), + 146: int32(18), + 147: int32(19), + 148: int32(20), + 149: int32(21), + 150: int32(22), + 151: int32(23), + 152: int32(24), + 153: int32(25), + 154: int32(26), + 155: int32(27), + 156: int32(28), + 157: int32(29), + 158: int32(30), + 159: int32(31), + 160: int32(32), + 161: int32(33), + 162: int32(34), + 163: int32(35), + 164: int32(36), + 165: int32(37), + 166: int32(38), + 167: int32(39), + 168: int32(40), + 169: int32(41), + 170: int32(42), + 171: int32(43), + 172: int32(44), + 173: int32(45), + 174: int32(46), + 175: int32(47), + 176: int32(48), + 177: int32(49), + 178: int32(50), + 179: int32(51), + 180: int32(52), + 181: int32(53), + 182: int32(54), + 183: int32(55), + 184: int32(56), + 185: int32(57), + 186: int32(58), + 187: int32(59), + 188: int32(60), + 189: int32(61), + 190: int32(62), + 191: int32(63), + 192: int32(64), + 193: int32('a'), + 194: int32('b'), + 195: int32('c'), + 196: int32('d'), + 197: int32('e'), + 198: int32('f'), + 199: int32('g'), + 200: int32('h'), + 201: int32('i'), + 202: int32('j'), + 203: int32('k'), + 204: int32('l'), + 205: int32('m'), + 206: int32('n'), + 207: int32('o'), + 208: int32('p'), + 209: int32('q'), + 210: int32('r'), + 211: int32('s'), + 212: int32('t'), + 213: int32('u'), + 214: int32('v'), + 215: int32('w'), + 216: int32('x'), + 217: int32('y'), + 218: int32('z'), + 219: int32(91), + 220: int32(92), + 221: int32(93), + 222: int32(94), + 223: int32(95), + 224: int32(96), + 225: int32('a'), + 226: int32('b'), + 227: int32('c'), + 228: int32('d'), + 229: int32('e'), + 230: int32('f'), + 231: int32('g'), + 232: int32('h'), + 233: int32('i'), + 234: int32('j'), + 235: int32('k'), + 236: int32('l'), + 237: int32('m'), + 238: int32('n'), + 239: int32('o'), + 240: int32('p'), + 241: int32('q'), + 242: int32('r'), + 243: int32('s'), + 244: int32('t'), + 245: int32('u'), + 246: int32('v'), + 247: int32('w'), + 248: int32('x'), + 249: int32('y'), + 250: int32('z'), + 251: int32(123), + 252: int32(124), + 253: int32(125), + 254: int32(126), + 255: int32(127), +} + +var _ptable1 = uintptr(unsafe.Pointer(&_table1)) + uintptr(128)*4 + +func X__ctype_tolower_loc(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(unsafe.Pointer(&_ptable1)) +} + +var _table2 = [384]Tint32_t{ + 129: int32(1), + 130: int32(2), + 131: int32(3), + 132: int32(4), + 133: int32(5), + 134: int32(6), + 135: int32(7), + 136: int32(8), + 137: int32(9), + 138: int32(10), + 139: int32(11), + 140: int32(12), + 141: int32(13), + 142: int32(14), + 143: int32(15), + 144: int32(16), + 145: int32(17), + 146: int32(18), + 147: int32(19), + 148: int32(20), + 149: int32(21), + 150: int32(22), + 151: int32(23), + 152: int32(24), + 153: int32(25), + 154: int32(26), + 155: int32(27), + 156: int32(28), + 157: int32(29), + 158: int32(30), + 159: int32(31), + 160: int32(32), + 161: int32(33), + 162: int32(34), + 163: int32(35), + 164: int32(36), + 165: int32(37), + 166: int32(38), + 167: int32(39), + 168: int32(40), + 169: int32(41), + 170: int32(42), + 171: int32(43), + 172: int32(44), + 173: int32(45), + 174: int32(46), + 175: int32(47), + 176: int32(48), + 177: int32(49), + 178: int32(50), + 179: int32(51), + 180: int32(52), + 181: int32(53), + 182: int32(54), + 183: int32(55), + 184: int32(56), + 185: int32(57), + 186: int32(58), + 187: int32(59), + 188: int32(60), + 189: int32(61), + 190: int32(62), + 191: int32(63), + 192: int32(64), + 193: int32('A'), + 194: int32('B'), + 195: int32('C'), + 196: int32('D'), + 197: int32('E'), + 198: int32('F'), + 199: int32('G'), + 200: int32('H'), + 201: int32('I'), + 202: int32('J'), + 203: int32('K'), + 204: int32('L'), + 205: int32('M'), + 206: int32('N'), + 207: int32('O'), + 208: int32('P'), + 209: int32('Q'), + 210: int32('R'), + 211: int32('S'), + 212: int32('T'), + 213: int32('U'), + 214: int32('V'), + 215: int32('W'), + 216: int32('X'), + 217: int32('Y'), + 218: int32('Z'), + 219: int32(91), + 220: int32(92), + 221: int32(93), + 222: int32(94), + 223: int32(95), + 224: int32(96), + 225: int32('A'), + 226: int32('B'), + 227: int32('C'), + 228: int32('D'), + 229: int32('E'), + 230: int32('F'), + 231: int32('G'), + 232: int32('H'), + 233: int32('I'), + 234: int32('J'), + 235: int32('K'), + 236: int32('L'), + 237: int32('M'), + 238: int32('N'), + 239: int32('O'), + 240: int32('P'), + 241: int32('Q'), + 242: int32('R'), + 243: int32('S'), + 244: int32('T'), + 245: int32('U'), + 246: int32('V'), + 247: int32('W'), + 248: int32('X'), + 249: int32('Y'), + 250: int32('Z'), + 251: int32(123), + 252: int32(124), + 253: int32(125), + 254: int32(126), + 255: int32(127), +} + +var _ptable2 = uintptr(unsafe.Pointer(&_table2)) + uintptr(128)*4 + +func X__ctype_toupper_loc(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(unsafe.Pointer(&_ptable2)) +} + +func Xisalnum(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(BoolInt32(Uint32FromInt32(c)|uint32(32)-uint32('a') < uint32(26)) != 0 || BoolInt32(Uint32FromInt32(c)-uint32('0') < uint32(10)) != 0) +} + +func X__isalnum_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xisalnum(tls, c) +} + +func Xisalnum_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__isalnum_l(tls, c, l) +} + +func Xisalpha(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(Uint32FromInt32(c)|uint32(32)-uint32('a') < uint32(26)) +} + +func X__isalpha_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xisalpha(tls, c) +} + +func Xisalpha_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__isalpha_l(tls, c, l) +} + +func Xisascii(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(!(c & ^Int32FromInt32(0x7f) != 0)) +} + +func Xisblank(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(c == int32(' ') || c == int32('\t')) +} + +func X__isblank_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xisblank(tls, c) +} + +func Xisblank_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__isblank_l(tls, c, l) +} + +func Xiscntrl(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(Uint32FromInt32(c) < uint32(0x20) || c == int32(0x7f)) +} + +func X__iscntrl_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiscntrl(tls, c) +} + +func Xiscntrl_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iscntrl_l(tls, c, l) +} + +func Xisdigit(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(Uint32FromInt32(c)-uint32('0') < uint32(10)) +} + +func X__isdigit_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xisdigit(tls, c) +} + +func Xisdigit_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__isdigit_l(tls, c, l) +} + +func Xisgraph(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(Uint32FromInt32(c)-uint32(0x21) < uint32(0x5e)) +} + +func X__isgraph_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xisgraph(tls, c) +} + +func Xisgraph_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__isgraph_l(tls, c, l) +} + +func Xislower(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(Uint32FromInt32(c)-uint32('a') < uint32(26)) +} + +func X__islower_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xislower(tls, c) +} + +func Xislower_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__islower_l(tls, c, l) +} + +func Xisprint(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(Uint32FromInt32(c)-uint32(0x20) < uint32(0x5f)) +} + +func X__isprint_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xisprint(tls, c) +} + +func Xisprint_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__isprint_l(tls, c, l) +} + +func Xispunct(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(BoolInt32(Uint32FromInt32(c)-uint32(0x21) < uint32(0x5e)) != 0 && !(Xisalnum(tls, c) != 0)) +} + +func X__ispunct_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xispunct(tls, c) +} + +func Xispunct_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__ispunct_l(tls, c, l) +} + +func Xisspace(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(c == int32(' ') || Uint32FromInt32(c)-uint32('\t') < uint32(5)) +} + +func X__isspace_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xisspace(tls, c) +} + +func Xisspace_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__isspace_l(tls, c, l) +} + +func Xisupper(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(Uint32FromInt32(c)-uint32('A') < uint32(26)) +} + +func X__isupper_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xisupper(tls, c) +} + +func Xisupper_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__isupper_l(tls, c, l) +} + +type Twint_t = uint32 + +type Twctype_t = uint32 + +type Twctrans_t = uintptr + +func Xiswalnum(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(BoolInt32(wc-uint32('0') < uint32(10)) != 0 || Xiswalpha(tls, wc) != 0) +} + +func X__iswalnum_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswalnum(tls, c) +} + +func Xiswalnum_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswalnum_l(tls, c, l) +} + +var _table3 = [3904]uint8{ + 0: uint8(18), + 1: uint8(17), + 2: uint8(19), + 3: uint8(20), + 4: uint8(21), + 5: uint8(22), + 6: uint8(23), + 7: uint8(24), + 8: uint8(25), + 9: uint8(26), + 10: uint8(27), + 11: uint8(28), + 12: uint8(29), + 13: uint8(30), + 14: uint8(31), + 15: uint8(32), + 16: uint8(33), + 17: uint8(17), + 18: uint8(34), + 19: uint8(35), + 20: uint8(36), + 21: uint8(17), + 22: uint8(37), + 23: uint8(38), + 24: uint8(39), + 25: uint8(40), + 26: uint8(41), + 27: uint8(42), + 28: uint8(43), + 29: uint8(44), + 30: uint8(17), + 31: uint8(45), + 32: uint8(46), + 33: uint8(47), + 34: uint8(16), + 35: uint8(16), + 36: uint8(48), + 37: uint8(16), + 38: uint8(16), + 39: uint8(16), + 40: uint8(16), + 41: uint8(16), + 42: uint8(16), + 43: uint8(16), + 44: uint8(49), + 45: uint8(50), + 46: uint8(51), + 47: uint8(16), + 48: uint8(52), + 49: uint8(53), + 50: uint8(16), + 51: uint8(16), + 52: uint8(17), + 53: uint8(17), + 54: uint8(17), + 55: uint8(17), + 56: uint8(17), + 57: uint8(17), + 58: uint8(17), + 59: uint8(17), + 60: uint8(17), + 61: uint8(17), + 62: uint8(17), + 63: uint8(17), + 64: uint8(17), + 65: uint8(17), + 66: uint8(17), + 67: uint8(17), + 68: uint8(17), + 69: uint8(17), + 70: uint8(17), + 71: uint8(17), + 72: uint8(17), + 73: uint8(17), + 74: uint8(17), + 75: uint8(17), + 76: uint8(17), + 77: uint8(54), + 78: uint8(17), + 79: uint8(17), + 80: uint8(17), + 81: uint8(17), + 82: uint8(17), + 83: uint8(17), + 84: uint8(17), + 85: uint8(17), + 86: uint8(17), + 87: uint8(17), + 88: uint8(17), + 89: uint8(17), + 90: uint8(17), + 91: uint8(17), + 92: uint8(17), + 93: uint8(17), + 94: uint8(17), + 95: uint8(17), + 96: uint8(17), + 97: uint8(17), + 98: uint8(17), + 99: uint8(17), + 100: uint8(17), + 101: uint8(17), + 102: uint8(17), + 103: uint8(17), + 104: uint8(17), + 105: uint8(17), + 106: uint8(17), + 107: uint8(17), + 108: uint8(17), + 109: uint8(17), + 110: uint8(17), + 111: uint8(17), + 112: uint8(17), + 113: uint8(17), + 114: uint8(17), + 115: uint8(17), + 116: uint8(17), + 117: uint8(17), + 118: uint8(17), + 119: uint8(17), + 120: uint8(17), + 121: uint8(17), + 122: uint8(17), + 123: uint8(17), + 124: uint8(17), + 125: uint8(17), + 126: uint8(17), + 127: uint8(17), + 128: uint8(17), + 129: uint8(17), + 130: uint8(17), + 131: uint8(17), + 132: uint8(17), + 133: uint8(17), + 134: uint8(17), + 135: uint8(17), + 136: uint8(17), + 137: uint8(17), + 138: uint8(17), + 139: uint8(17), + 140: uint8(17), + 141: uint8(17), + 142: uint8(17), + 143: uint8(17), + 144: uint8(17), + 145: uint8(17), + 146: uint8(17), + 147: uint8(17), + 148: uint8(17), + 149: uint8(17), + 150: uint8(17), + 151: uint8(17), + 152: uint8(17), + 153: uint8(17), + 154: uint8(17), + 155: uint8(17), + 156: uint8(17), + 157: uint8(17), + 158: uint8(17), + 159: uint8(55), + 160: uint8(17), + 161: uint8(17), + 162: uint8(17), + 163: uint8(17), + 164: uint8(56), + 165: uint8(17), + 166: uint8(57), + 167: uint8(58), + 168: uint8(59), + 169: uint8(60), + 170: uint8(61), + 171: uint8(62), + 172: uint8(17), + 173: uint8(17), + 174: uint8(17), + 175: uint8(17), + 176: uint8(17), + 177: uint8(17), + 178: uint8(17), + 179: uint8(17), + 180: uint8(17), + 181: uint8(17), + 182: uint8(17), + 183: uint8(17), + 184: uint8(17), + 185: uint8(17), + 186: uint8(17), + 187: uint8(17), + 188: uint8(17), + 189: uint8(17), + 190: uint8(17), + 191: uint8(17), + 192: uint8(17), + 193: uint8(17), + 194: uint8(17), + 195: uint8(17), + 196: uint8(17), + 197: uint8(17), + 198: uint8(17), + 199: uint8(17), + 200: uint8(17), + 201: uint8(17), + 202: uint8(17), + 203: uint8(17), + 204: uint8(17), + 205: uint8(17), + 206: uint8(17), + 207: uint8(17), + 208: uint8(17), + 209: uint8(17), + 210: uint8(17), + 211: uint8(17), + 212: uint8(17), + 213: uint8(17), + 214: uint8(17), + 215: uint8(63), + 216: uint8(16), + 217: uint8(16), + 218: uint8(16), + 219: uint8(16), + 220: uint8(16), + 221: uint8(16), + 222: uint8(16), + 223: uint8(16), + 224: uint8(16), + 225: uint8(16), + 226: uint8(16), + 227: uint8(16), + 228: uint8(16), + 229: uint8(16), + 230: uint8(16), + 231: uint8(16), + 232: uint8(16), + 233: uint8(16), + 234: uint8(16), + 235: uint8(16), + 236: uint8(16), + 237: uint8(16), + 238: uint8(16), + 239: uint8(16), + 240: uint8(16), + 241: uint8(16), + 242: uint8(16), + 243: uint8(16), + 244: uint8(16), + 245: uint8(16), + 246: uint8(16), + 247: uint8(16), + 248: uint8(16), + 249: uint8(17), + 250: uint8(64), + 251: uint8(65), + 252: uint8(17), + 253: uint8(66), + 254: uint8(67), + 255: uint8(68), + 256: uint8(69), + 257: uint8(70), + 258: uint8(71), + 259: uint8(72), + 260: uint8(73), + 261: uint8(74), + 262: uint8(17), + 263: uint8(75), + 264: uint8(76), + 265: uint8(77), + 266: uint8(78), + 267: uint8(79), + 268: uint8(80), + 269: uint8(81), + 270: uint8(16), + 271: uint8(82), + 272: uint8(83), + 273: uint8(84), + 274: uint8(85), + 275: uint8(86), + 276: uint8(87), + 277: uint8(88), + 278: uint8(89), + 279: uint8(90), + 280: uint8(91), + 281: uint8(92), + 282: uint8(93), + 283: uint8(16), + 284: uint8(94), + 285: uint8(95), + 286: uint8(96), + 287: uint8(16), + 288: uint8(17), + 289: uint8(17), + 290: uint8(17), + 291: uint8(97), + 292: uint8(98), + 293: uint8(99), + 294: uint8(16), + 295: uint8(16), + 296: uint8(16), + 297: uint8(16), + 298: uint8(16), + 299: uint8(16), + 300: uint8(16), + 301: uint8(16), + 302: uint8(16), + 303: uint8(16), + 304: uint8(17), + 305: uint8(17), + 306: uint8(17), + 307: uint8(17), + 308: uint8(100), + 309: uint8(16), + 310: uint8(16), + 311: uint8(16), + 312: uint8(16), + 313: uint8(16), + 314: uint8(16), + 315: uint8(16), + 316: uint8(16), + 317: uint8(16), + 318: uint8(16), + 319: uint8(16), + 320: uint8(16), + 321: uint8(16), + 322: uint8(16), + 323: uint8(16), + 324: uint8(17), + 325: uint8(17), + 326: uint8(101), + 327: uint8(16), + 328: uint8(16), + 329: uint8(16), + 330: uint8(16), + 331: uint8(16), + 332: uint8(16), + 333: uint8(16), + 334: uint8(16), + 335: uint8(16), + 336: uint8(16), + 337: uint8(16), + 338: uint8(16), + 339: uint8(16), + 340: uint8(16), + 341: uint8(16), + 342: uint8(16), + 343: uint8(16), + 344: uint8(16), + 345: uint8(16), + 346: uint8(16), + 347: uint8(16), + 348: uint8(16), + 349: uint8(16), + 350: uint8(16), + 351: uint8(16), + 352: uint8(16), + 353: uint8(16), + 354: uint8(16), + 355: uint8(16), + 356: uint8(16), + 357: uint8(16), + 358: uint8(16), + 359: uint8(16), + 360: uint8(17), + 361: uint8(17), + 362: uint8(102), + 363: uint8(103), + 364: uint8(16), + 365: uint8(16), + 366: uint8(104), + 367: uint8(105), + 368: uint8(17), + 369: uint8(17), + 370: uint8(17), + 371: uint8(17), + 372: uint8(17), + 373: uint8(17), + 374: uint8(17), + 375: uint8(17), + 376: uint8(17), + 377: uint8(17), + 378: uint8(17), + 379: uint8(17), + 380: uint8(17), + 381: uint8(17), + 382: uint8(17), + 383: uint8(17), + 384: uint8(17), + 385: uint8(17), + 386: uint8(17), + 387: uint8(17), + 388: uint8(17), + 389: uint8(17), + 390: uint8(17), + 391: uint8(106), + 392: uint8(17), + 393: uint8(17), + 394: uint8(107), + 395: uint8(16), + 396: uint8(16), + 397: uint8(16), + 398: uint8(16), + 399: uint8(16), + 400: uint8(16), + 401: uint8(16), + 402: uint8(16), + 403: uint8(16), + 404: uint8(16), + 405: uint8(16), + 406: uint8(16), + 407: uint8(16), + 408: uint8(16), + 409: uint8(16), + 410: uint8(16), + 411: uint8(16), + 412: uint8(16), + 413: uint8(16), + 414: uint8(16), + 415: uint8(16), + 416: uint8(16), + 417: uint8(16), + 418: uint8(16), + 419: uint8(16), + 420: uint8(16), + 421: uint8(16), + 422: uint8(16), + 423: uint8(16), + 424: uint8(16), + 425: uint8(16), + 426: uint8(16), + 427: uint8(16), + 428: uint8(16), + 429: uint8(16), + 430: uint8(16), + 431: uint8(16), + 432: uint8(17), + 433: uint8(108), + 434: uint8(109), + 435: uint8(16), + 436: uint8(16), + 437: uint8(16), + 438: uint8(16), + 439: uint8(16), + 440: uint8(16), + 441: uint8(16), + 442: uint8(16), + 443: uint8(16), + 444: uint8(110), + 445: uint8(16), + 446: uint8(16), + 447: uint8(16), + 448: uint8(16), + 449: uint8(16), + 450: uint8(16), + 451: uint8(16), + 452: uint8(16), + 453: uint8(16), + 454: uint8(16), + 455: uint8(16), + 456: uint8(16), + 457: uint8(16), + 458: uint8(16), + 459: uint8(16), + 460: uint8(16), + 461: uint8(16), + 462: uint8(16), + 463: uint8(16), + 464: uint8(16), + 465: uint8(16), + 466: uint8(16), + 467: uint8(16), + 468: uint8(111), + 469: uint8(112), + 470: uint8(113), + 471: uint8(114), + 472: uint8(16), + 473: uint8(16), + 474: uint8(16), + 475: uint8(16), + 476: uint8(16), + 477: uint8(16), + 478: uint8(16), + 479: uint8(16), + 480: uint8(115), + 481: uint8(116), + 482: uint8(117), + 483: uint8(16), + 484: uint8(16), + 485: uint8(16), + 486: uint8(16), + 487: uint8(16), + 488: uint8(118), + 489: uint8(119), + 490: uint8(16), + 491: uint8(16), + 492: uint8(16), + 493: uint8(16), + 494: uint8(120), + 495: uint8(16), + 496: uint8(16), + 497: uint8(121), + 498: uint8(16), + 499: uint8(16), + 500: uint8(16), + 501: uint8(16), + 502: uint8(16), + 503: uint8(16), + 504: uint8(16), + 505: uint8(16), + 506: uint8(16), + 507: uint8(16), + 508: uint8(16), + 509: uint8(16), + 510: uint8(16), + 511: uint8(16), + 544: uint8(255), + 545: uint8(255), + 546: uint8(255), + 547: uint8(255), + 548: uint8(255), + 549: uint8(255), + 550: uint8(255), + 551: uint8(255), + 552: uint8(255), + 553: uint8(255), + 554: uint8(255), + 555: uint8(255), + 556: uint8(255), + 557: uint8(255), + 558: uint8(255), + 559: uint8(255), + 560: uint8(255), + 561: uint8(255), + 562: uint8(255), + 563: uint8(255), + 564: uint8(255), + 565: uint8(255), + 566: uint8(255), + 567: uint8(255), + 568: uint8(255), + 569: uint8(255), + 570: uint8(255), + 571: uint8(255), + 572: uint8(255), + 573: uint8(255), + 574: uint8(255), + 575: uint8(255), + 584: uint8(254), + 585: uint8(255), + 586: uint8(255), + 587: uint8(7), + 588: uint8(254), + 589: uint8(255), + 590: uint8(255), + 591: uint8(7), + 597: uint8(4), + 598: uint8(32), + 599: uint8(4), + 600: uint8(255), + 601: uint8(255), + 602: uint8(127), + 603: uint8(255), + 604: uint8(255), + 605: uint8(255), + 606: uint8(127), + 607: uint8(255), + 608: uint8(255), + 609: uint8(255), + 610: uint8(255), + 611: uint8(255), + 612: uint8(255), + 613: uint8(255), + 614: uint8(255), + 615: uint8(255), + 616: uint8(255), + 617: uint8(255), + 618: uint8(255), + 619: uint8(255), + 620: uint8(255), + 621: uint8(255), + 622: uint8(255), + 623: uint8(255), + 624: uint8(255), + 625: uint8(255), + 626: uint8(255), + 627: uint8(255), + 628: uint8(255), + 629: uint8(255), + 630: uint8(255), + 631: uint8(255), + 632: uint8(195), + 633: uint8(255), + 634: uint8(3), + 636: uint8(31), + 637: uint8(80), + 648: uint8(32), + 654: uint8(223), + 655: uint8(188), + 656: uint8(64), + 657: uint8(215), + 658: uint8(255), + 659: uint8(255), + 660: uint8(251), + 661: uint8(255), + 662: uint8(255), + 663: uint8(255), + 664: uint8(255), + 665: uint8(255), + 666: uint8(255), + 667: uint8(255), + 668: uint8(255), + 669: uint8(255), + 670: uint8(191), + 671: uint8(255), + 672: uint8(255), + 673: uint8(255), + 674: uint8(255), + 675: uint8(255), + 676: uint8(255), + 677: uint8(255), + 678: uint8(255), + 679: uint8(255), + 680: uint8(255), + 681: uint8(255), + 682: uint8(255), + 683: uint8(255), + 684: uint8(255), + 685: uint8(255), + 686: uint8(255), + 687: uint8(255), + 688: uint8(3), + 689: uint8(252), + 690: uint8(255), + 691: uint8(255), + 692: uint8(255), + 693: uint8(255), + 694: uint8(255), + 695: uint8(255), + 696: uint8(255), + 697: uint8(255), + 698: uint8(255), + 699: uint8(255), + 700: uint8(255), + 701: uint8(255), + 702: uint8(255), + 703: uint8(255), + 704: uint8(255), + 705: uint8(255), + 706: uint8(255), + 707: uint8(255), + 708: uint8(255), + 709: uint8(255), + 710: uint8(254), + 711: uint8(255), + 712: uint8(255), + 713: uint8(255), + 714: uint8(127), + 715: uint8(2), + 716: uint8(255), + 717: uint8(255), + 718: uint8(255), + 719: uint8(255), + 720: uint8(255), + 721: uint8(1), + 726: uint8(255), + 727: uint8(191), + 728: uint8(182), + 730: uint8(255), + 731: uint8(255), + 732: uint8(255), + 733: uint8(135), + 734: uint8(7), + 738: uint8(255), + 739: uint8(7), + 740: uint8(255), + 741: uint8(255), + 742: uint8(255), + 743: uint8(255), + 744: uint8(255), + 745: uint8(255), + 746: uint8(255), + 747: uint8(254), + 748: uint8(255), + 749: uint8(195), + 750: uint8(255), + 751: uint8(255), + 752: uint8(255), + 753: uint8(255), + 754: uint8(255), + 755: uint8(255), + 756: uint8(255), + 757: uint8(255), + 758: uint8(255), + 759: uint8(255), + 760: uint8(255), + 761: uint8(255), + 762: uint8(239), + 763: uint8(31), + 764: uint8(254), + 765: uint8(225), + 766: uint8(255), + 767: uint8(159), + 770: uint8(255), + 771: uint8(255), + 772: uint8(255), + 773: uint8(255), + 774: uint8(255), + 775: uint8(255), + 777: uint8(224), + 778: uint8(255), + 779: uint8(255), + 780: uint8(255), + 781: uint8(255), + 782: uint8(255), + 783: uint8(255), + 784: uint8(255), + 785: uint8(255), + 786: uint8(255), + 787: uint8(255), + 788: uint8(255), + 789: uint8(255), + 790: uint8(3), + 792: uint8(255), + 793: uint8(255), + 794: uint8(255), + 795: uint8(255), + 796: uint8(255), + 797: uint8(7), + 798: uint8(48), + 799: uint8(4), + 800: uint8(255), + 801: uint8(255), + 802: uint8(255), + 803: uint8(252), + 804: uint8(255), + 805: uint8(31), + 808: uint8(255), + 809: uint8(255), + 810: uint8(255), + 811: uint8(1), + 812: uint8(255), + 813: uint8(7), + 820: uint8(255), + 821: uint8(255), + 822: uint8(223), + 823: uint8(63), + 826: uint8(240), + 827: uint8(255), + 828: uint8(248), + 829: uint8(3), + 830: uint8(255), + 831: uint8(255), + 832: uint8(255), + 833: uint8(255), + 834: uint8(255), + 835: uint8(255), + 836: uint8(255), + 837: uint8(255), + 838: uint8(255), + 839: uint8(239), + 840: uint8(255), + 841: uint8(223), + 842: uint8(225), + 843: uint8(255), + 844: uint8(207), + 845: uint8(255), + 846: uint8(254), + 847: uint8(255), + 848: uint8(239), + 849: uint8(159), + 850: uint8(249), + 851: uint8(255), + 852: uint8(255), + 853: uint8(253), + 854: uint8(197), + 855: uint8(227), + 856: uint8(159), + 857: uint8(89), + 858: uint8(128), + 859: uint8(176), + 860: uint8(207), + 861: uint8(255), + 862: uint8(3), + 863: uint8(16), + 864: uint8(238), + 865: uint8(135), + 866: uint8(249), + 867: uint8(255), + 868: uint8(255), + 869: uint8(253), + 870: uint8(109), + 871: uint8(195), + 872: uint8(135), + 873: uint8(25), + 874: uint8(2), + 875: uint8(94), + 876: uint8(192), + 877: uint8(255), + 878: uint8(63), + 880: uint8(238), + 881: uint8(191), + 882: uint8(251), + 883: uint8(255), + 884: uint8(255), + 885: uint8(253), + 886: uint8(237), + 887: uint8(227), + 888: uint8(191), + 889: uint8(27), + 890: uint8(1), + 892: uint8(207), + 893: uint8(255), + 895: uint8(30), + 896: uint8(238), + 897: uint8(159), + 898: uint8(249), + 899: uint8(255), + 900: uint8(255), + 901: uint8(253), + 902: uint8(237), + 903: uint8(227), + 904: uint8(159), + 905: uint8(25), + 906: uint8(192), + 907: uint8(176), + 908: uint8(207), + 909: uint8(255), + 910: uint8(2), + 912: uint8(236), + 913: uint8(199), + 914: uint8(61), + 915: uint8(214), + 916: uint8(24), + 917: uint8(199), + 918: uint8(255), + 919: uint8(195), + 920: uint8(199), + 921: uint8(29), + 922: uint8(129), + 924: uint8(192), + 925: uint8(255), + 928: uint8(239), + 929: uint8(223), + 930: uint8(253), + 931: uint8(255), + 932: uint8(255), + 933: uint8(253), + 934: uint8(255), + 935: uint8(227), + 936: uint8(223), + 937: uint8(29), + 938: uint8(96), + 939: uint8(7), + 940: uint8(207), + 941: uint8(255), + 944: uint8(239), + 945: uint8(223), + 946: uint8(253), + 947: uint8(255), + 948: uint8(255), + 949: uint8(253), + 950: uint8(239), + 951: uint8(227), + 952: uint8(223), + 953: uint8(29), + 954: uint8(96), + 955: uint8(64), + 956: uint8(207), + 957: uint8(255), + 958: uint8(6), + 960: uint8(239), + 961: uint8(223), + 962: uint8(253), + 963: uint8(255), + 964: uint8(255), + 965: uint8(255), + 966: uint8(255), + 967: uint8(231), + 968: uint8(223), + 969: uint8(93), + 970: uint8(240), + 971: uint8(128), + 972: uint8(207), + 973: uint8(255), + 975: uint8(252), + 976: uint8(236), + 977: uint8(255), + 978: uint8(127), + 979: uint8(252), + 980: uint8(255), + 981: uint8(255), + 982: uint8(251), + 983: uint8(47), + 984: uint8(127), + 985: uint8(128), + 986: uint8(95), + 987: uint8(255), + 988: uint8(192), + 989: uint8(255), + 990: uint8(12), + 992: uint8(254), + 993: uint8(255), + 994: uint8(255), + 995: uint8(255), + 996: uint8(255), + 997: uint8(127), + 998: uint8(255), + 999: uint8(7), + 1000: uint8(63), + 1001: uint8(32), + 1002: uint8(255), + 1003: uint8(3), + 1008: uint8(214), + 1009: uint8(247), + 1010: uint8(255), + 1011: uint8(255), + 1012: uint8(175), + 1013: uint8(255), + 1014: uint8(255), + 1015: uint8(59), + 1016: uint8(95), + 1017: uint8(32), + 1018: uint8(255), + 1019: uint8(243), + 1024: uint8(1), + 1028: uint8(255), + 1029: uint8(3), + 1032: uint8(255), + 1033: uint8(254), + 1034: uint8(255), + 1035: uint8(255), + 1036: uint8(255), + 1037: uint8(31), + 1038: uint8(254), + 1039: uint8(255), + 1040: uint8(3), + 1041: uint8(255), + 1042: uint8(255), + 1043: uint8(254), + 1044: uint8(255), + 1045: uint8(255), + 1046: uint8(255), + 1047: uint8(31), + 1056: uint8(255), + 1057: uint8(255), + 1058: uint8(255), + 1059: uint8(255), + 1060: uint8(255), + 1061: uint8(255), + 1062: uint8(127), + 1063: uint8(249), + 1064: uint8(255), + 1065: uint8(3), + 1066: uint8(255), + 1067: uint8(255), + 1068: uint8(255), + 1069: uint8(255), + 1070: uint8(255), + 1071: uint8(255), + 1072: uint8(255), + 1073: uint8(255), + 1074: uint8(255), + 1075: uint8(63), + 1076: uint8(255), + 1077: uint8(255), + 1078: uint8(255), + 1079: uint8(255), + 1080: uint8(191), + 1081: uint8(32), + 1082: uint8(255), + 1083: uint8(255), + 1084: uint8(255), + 1085: uint8(255), + 1086: uint8(255), + 1087: uint8(247), + 1088: uint8(255), + 1089: uint8(255), + 1090: uint8(255), + 1091: uint8(255), + 1092: uint8(255), + 1093: uint8(255), + 1094: uint8(255), + 1095: uint8(255), + 1096: uint8(255), + 1097: uint8(61), + 1098: uint8(127), + 1099: uint8(61), + 1100: uint8(255), + 1101: uint8(255), + 1102: uint8(255), + 1103: uint8(255), + 1104: uint8(255), + 1105: uint8(61), + 1106: uint8(255), + 1107: uint8(255), + 1108: uint8(255), + 1109: uint8(255), + 1110: uint8(61), + 1111: uint8(127), + 1112: uint8(61), + 1113: uint8(255), + 1114: uint8(127), + 1115: uint8(255), + 1116: uint8(255), + 1117: uint8(255), + 1118: uint8(255), + 1119: uint8(255), + 1120: uint8(255), + 1121: uint8(255), + 1122: uint8(61), + 1123: uint8(255), + 1124: uint8(255), + 1125: uint8(255), + 1126: uint8(255), + 1127: uint8(255), + 1128: uint8(255), + 1129: uint8(255), + 1130: uint8(255), + 1131: uint8(7), + 1136: uint8(255), + 1137: uint8(255), + 1140: uint8(255), + 1141: uint8(255), + 1142: uint8(255), + 1143: uint8(255), + 1144: uint8(255), + 1145: uint8(255), + 1146: uint8(255), + 1147: uint8(255), + 1148: uint8(255), + 1149: uint8(255), + 1150: uint8(63), + 1151: uint8(63), + 1152: uint8(254), + 1153: uint8(255), + 1154: uint8(255), + 1155: uint8(255), + 1156: uint8(255), + 1157: uint8(255), + 1158: uint8(255), + 1159: uint8(255), + 1160: uint8(255), + 1161: uint8(255), + 1162: uint8(255), + 1163: uint8(255), + 1164: uint8(255), + 1165: uint8(255), + 1166: uint8(255), + 1167: uint8(255), + 1168: uint8(255), + 1169: uint8(255), + 1170: uint8(255), + 1171: uint8(255), + 1172: uint8(255), + 1173: uint8(255), + 1174: uint8(255), + 1175: uint8(255), + 1176: uint8(255), + 1177: uint8(255), + 1178: uint8(255), + 1179: uint8(255), + 1180: uint8(255), + 1181: uint8(255), + 1182: uint8(255), + 1183: uint8(255), + 1184: uint8(255), + 1185: uint8(255), + 1186: uint8(255), + 1187: uint8(255), + 1188: uint8(255), + 1189: uint8(255), + 1190: uint8(255), + 1191: uint8(255), + 1192: uint8(255), + 1193: uint8(255), + 1194: uint8(255), + 1195: uint8(255), + 1196: uint8(255), + 1197: uint8(159), + 1198: uint8(255), + 1199: uint8(255), + 1200: uint8(254), + 1201: uint8(255), + 1202: uint8(255), + 1203: uint8(7), + 1204: uint8(255), + 1205: uint8(255), + 1206: uint8(255), + 1207: uint8(255), + 1208: uint8(255), + 1209: uint8(255), + 1210: uint8(255), + 1211: uint8(255), + 1212: uint8(255), + 1213: uint8(199), + 1214: uint8(255), + 1215: uint8(1), + 1216: uint8(255), + 1217: uint8(223), + 1218: uint8(15), + 1220: uint8(255), + 1221: uint8(255), + 1222: uint8(15), + 1224: uint8(255), + 1225: uint8(255), + 1226: uint8(15), + 1228: uint8(255), + 1229: uint8(223), + 1230: uint8(13), + 1232: uint8(255), + 1233: uint8(255), + 1234: uint8(255), + 1235: uint8(255), + 1236: uint8(255), + 1237: uint8(255), + 1238: uint8(207), + 1239: uint8(255), + 1240: uint8(255), + 1241: uint8(1), + 1242: uint8(128), + 1243: uint8(16), + 1244: uint8(255), + 1245: uint8(3), + 1250: uint8(255), + 1251: uint8(3), + 1252: uint8(255), + 1253: uint8(255), + 1254: uint8(255), + 1255: uint8(255), + 1256: uint8(255), + 1257: uint8(255), + 1258: uint8(255), + 1259: uint8(255), + 1260: uint8(255), + 1261: uint8(255), + 1262: uint8(255), + 1263: uint8(1), + 1264: uint8(255), + 1265: uint8(255), + 1266: uint8(255), + 1267: uint8(255), + 1268: uint8(255), + 1269: uint8(7), + 1270: uint8(255), + 1271: uint8(255), + 1272: uint8(255), + 1273: uint8(255), + 1274: uint8(255), + 1275: uint8(255), + 1276: uint8(255), + 1277: uint8(255), + 1278: uint8(63), + 1280: uint8(255), + 1281: uint8(255), + 1282: uint8(255), + 1283: uint8(127), + 1284: uint8(255), + 1285: uint8(15), + 1286: uint8(255), + 1287: uint8(1), + 1288: uint8(192), + 1289: uint8(255), + 1290: uint8(255), + 1291: uint8(255), + 1292: uint8(255), + 1293: uint8(63), + 1294: uint8(31), + 1296: uint8(255), + 1297: uint8(255), + 1298: uint8(255), + 1299: uint8(255), + 1300: uint8(255), + 1301: uint8(15), + 1302: uint8(255), + 1303: uint8(255), + 1304: uint8(255), + 1305: uint8(3), + 1306: uint8(255), + 1307: uint8(3), + 1312: uint8(255), + 1313: uint8(255), + 1314: uint8(255), + 1315: uint8(15), + 1316: uint8(255), + 1317: uint8(255), + 1318: uint8(255), + 1319: uint8(255), + 1320: uint8(255), + 1321: uint8(255), + 1322: uint8(255), + 1323: uint8(127), + 1324: uint8(254), + 1325: uint8(255), + 1326: uint8(31), + 1328: uint8(255), + 1329: uint8(3), + 1330: uint8(255), + 1331: uint8(3), + 1332: uint8(128), + 1344: uint8(255), + 1345: uint8(255), + 1346: uint8(255), + 1347: uint8(255), + 1348: uint8(255), + 1349: uint8(255), + 1350: uint8(239), + 1351: uint8(255), + 1352: uint8(239), + 1353: uint8(15), + 1354: uint8(255), + 1355: uint8(3), + 1360: uint8(255), + 1361: uint8(255), + 1362: uint8(255), + 1363: uint8(255), + 1364: uint8(255), + 1365: uint8(243), + 1366: uint8(255), + 1367: uint8(255), + 1368: uint8(255), + 1369: uint8(255), + 1370: uint8(255), + 1371: uint8(255), + 1372: uint8(191), + 1373: uint8(255), + 1374: uint8(3), + 1376: uint8(255), + 1377: uint8(255), + 1378: uint8(255), + 1379: uint8(255), + 1380: uint8(255), + 1381: uint8(255), + 1382: uint8(127), + 1384: uint8(255), + 1385: uint8(227), + 1386: uint8(255), + 1387: uint8(255), + 1388: uint8(255), + 1389: uint8(255), + 1390: uint8(255), + 1391: uint8(63), + 1392: uint8(255), + 1393: uint8(1), + 1394: uint8(255), + 1395: uint8(255), + 1396: uint8(255), + 1397: uint8(255), + 1398: uint8(255), + 1399: uint8(231), + 1405: uint8(222), + 1406: uint8(111), + 1407: uint8(4), + 1408: uint8(255), + 1409: uint8(255), + 1410: uint8(255), + 1411: uint8(255), + 1412: uint8(255), + 1413: uint8(255), + 1414: uint8(255), + 1415: uint8(255), + 1416: uint8(255), + 1417: uint8(255), + 1418: uint8(255), + 1419: uint8(255), + 1420: uint8(255), + 1421: uint8(255), + 1422: uint8(255), + 1423: uint8(255), + 1424: uint8(255), + 1425: uint8(255), + 1426: uint8(255), + 1427: uint8(255), + 1428: uint8(255), + 1429: uint8(255), + 1430: uint8(255), + 1431: uint8(255), + 1436: uint8(128), + 1437: uint8(255), + 1438: uint8(31), + 1440: uint8(255), + 1441: uint8(255), + 1442: uint8(63), + 1443: uint8(63), + 1444: uint8(255), + 1445: uint8(255), + 1446: uint8(255), + 1447: uint8(255), + 1448: uint8(63), + 1449: uint8(63), + 1450: uint8(255), + 1451: uint8(170), + 1452: uint8(255), + 1453: uint8(255), + 1454: uint8(255), + 1455: uint8(63), + 1456: uint8(255), + 1457: uint8(255), + 1458: uint8(255), + 1459: uint8(255), + 1460: uint8(255), + 1461: uint8(255), + 1462: uint8(223), + 1463: uint8(95), + 1464: uint8(220), + 1465: uint8(31), + 1466: uint8(207), + 1467: uint8(15), + 1468: uint8(255), + 1469: uint8(31), + 1470: uint8(220), + 1471: uint8(31), + 1486: uint8(2), + 1487: uint8(128), + 1490: uint8(255), + 1491: uint8(31), + 1504: uint8(132), + 1505: uint8(252), + 1506: uint8(47), + 1507: uint8(62), + 1508: uint8(80), + 1509: uint8(189), + 1510: uint8(255), + 1511: uint8(243), + 1512: uint8(224), + 1513: uint8(67), + 1516: uint8(255), + 1517: uint8(255), + 1518: uint8(255), + 1519: uint8(255), + 1520: uint8(255), + 1521: uint8(1), + 1558: uint8(192), + 1559: uint8(255), + 1560: uint8(255), + 1561: uint8(255), + 1562: uint8(255), + 1563: uint8(255), + 1564: uint8(255), + 1565: uint8(3), + 1568: uint8(255), + 1569: uint8(255), + 1570: uint8(255), + 1571: uint8(255), + 1572: uint8(255), + 1573: uint8(127), + 1574: uint8(255), + 1575: uint8(255), + 1576: uint8(255), + 1577: uint8(255), + 1578: uint8(255), + 1579: uint8(127), + 1580: uint8(255), + 1581: uint8(255), + 1582: uint8(255), + 1583: uint8(255), + 1584: uint8(255), + 1585: uint8(255), + 1586: uint8(255), + 1587: uint8(255), + 1588: uint8(255), + 1589: uint8(255), + 1590: uint8(255), + 1591: uint8(255), + 1592: uint8(255), + 1593: uint8(255), + 1594: uint8(255), + 1595: uint8(255), + 1596: uint8(31), + 1597: uint8(120), + 1598: uint8(12), + 1600: uint8(255), + 1601: uint8(255), + 1602: uint8(255), + 1603: uint8(255), + 1604: uint8(191), + 1605: uint8(32), + 1606: uint8(255), + 1607: uint8(255), + 1608: uint8(255), + 1609: uint8(255), + 1610: uint8(255), + 1611: uint8(255), + 1612: uint8(255), + 1613: uint8(128), + 1616: uint8(255), + 1617: uint8(255), + 1618: uint8(127), + 1620: uint8(127), + 1621: uint8(127), + 1622: uint8(127), + 1623: uint8(127), + 1624: uint8(127), + 1625: uint8(127), + 1626: uint8(127), + 1627: uint8(127), + 1628: uint8(255), + 1629: uint8(255), + 1630: uint8(255), + 1631: uint8(255), + 1637: uint8(128), + 1664: uint8(224), + 1668: uint8(254), + 1669: uint8(3), + 1670: uint8(62), + 1671: uint8(31), + 1672: uint8(254), + 1673: uint8(255), + 1674: uint8(255), + 1675: uint8(255), + 1676: uint8(255), + 1677: uint8(255), + 1678: uint8(255), + 1679: uint8(255), + 1680: uint8(255), + 1681: uint8(255), + 1682: uint8(127), + 1683: uint8(224), + 1684: uint8(254), + 1685: uint8(255), + 1686: uint8(255), + 1687: uint8(255), + 1688: uint8(255), + 1689: uint8(255), + 1690: uint8(255), + 1691: uint8(255), + 1692: uint8(255), + 1693: uint8(255), + 1694: uint8(255), + 1695: uint8(247), + 1696: uint8(224), + 1697: uint8(255), + 1698: uint8(255), + 1699: uint8(255), + 1700: uint8(255), + 1701: uint8(255), + 1702: uint8(254), + 1703: uint8(255), + 1704: uint8(255), + 1705: uint8(255), + 1706: uint8(255), + 1707: uint8(255), + 1708: uint8(255), + 1709: uint8(255), + 1710: uint8(255), + 1711: uint8(255), + 1712: uint8(255), + 1713: uint8(127), + 1716: uint8(255), + 1717: uint8(255), + 1718: uint8(255), + 1719: uint8(7), + 1726: uint8(255), + 1727: uint8(255), + 1728: uint8(255), + 1729: uint8(255), + 1730: uint8(255), + 1731: uint8(255), + 1732: uint8(255), + 1733: uint8(255), + 1734: uint8(255), + 1735: uint8(255), + 1736: uint8(255), + 1737: uint8(255), + 1738: uint8(255), + 1739: uint8(255), + 1740: uint8(255), + 1741: uint8(255), + 1742: uint8(255), + 1743: uint8(255), + 1744: uint8(255), + 1745: uint8(255), + 1746: uint8(255), + 1747: uint8(255), + 1748: uint8(255), + 1749: uint8(255), + 1750: uint8(63), + 1760: uint8(255), + 1761: uint8(255), + 1762: uint8(255), + 1763: uint8(255), + 1764: uint8(255), + 1765: uint8(255), + 1766: uint8(255), + 1767: uint8(255), + 1768: uint8(255), + 1769: uint8(255), + 1770: uint8(255), + 1771: uint8(255), + 1772: uint8(255), + 1773: uint8(255), + 1774: uint8(255), + 1775: uint8(255), + 1776: uint8(255), + 1777: uint8(255), + 1778: uint8(255), + 1779: uint8(255), + 1780: uint8(255), + 1781: uint8(255), + 1782: uint8(255), + 1783: uint8(255), + 1784: uint8(255), + 1785: uint8(255), + 1786: uint8(255), + 1787: uint8(255), + 1788: uint8(255), + 1789: uint8(255), + 1792: uint8(255), + 1793: uint8(255), + 1794: uint8(255), + 1795: uint8(255), + 1796: uint8(255), + 1797: uint8(255), + 1798: uint8(255), + 1799: uint8(255), + 1800: uint8(255), + 1801: uint8(255), + 1802: uint8(255), + 1803: uint8(255), + 1804: uint8(255), + 1805: uint8(255), + 1806: uint8(255), + 1807: uint8(255), + 1808: uint8(255), + 1809: uint8(31), + 1818: uint8(255), + 1819: uint8(255), + 1820: uint8(255), + 1821: uint8(255), + 1822: uint8(255), + 1823: uint8(63), + 1824: uint8(255), + 1825: uint8(31), + 1826: uint8(255), + 1827: uint8(255), + 1828: uint8(255), + 1829: uint8(15), + 1832: uint8(255), + 1833: uint8(255), + 1834: uint8(255), + 1835: uint8(255), + 1836: uint8(255), + 1837: uint8(127), + 1838: uint8(240), + 1839: uint8(143), + 1840: uint8(255), + 1841: uint8(255), + 1842: uint8(255), + 1843: uint8(255), + 1844: uint8(255), + 1845: uint8(255), + 1846: uint8(255), + 1847: uint8(255), + 1848: uint8(255), + 1849: uint8(255), + 1850: uint8(255), + 1851: uint8(255), + 1852: uint8(255), + 1853: uint8(255), + 1858: uint8(128), + 1859: uint8(255), + 1860: uint8(252), + 1861: uint8(255), + 1862: uint8(255), + 1863: uint8(255), + 1864: uint8(255), + 1865: uint8(255), + 1866: uint8(255), + 1867: uint8(255), + 1868: uint8(255), + 1869: uint8(255), + 1870: uint8(255), + 1871: uint8(255), + 1872: uint8(255), + 1873: uint8(249), + 1874: uint8(255), + 1875: uint8(255), + 1876: uint8(255), + 1877: uint8(255), + 1878: uint8(255), + 1879: uint8(255), + 1880: uint8(124), + 1886: uint8(128), + 1887: uint8(255), + 1888: uint8(191), + 1889: uint8(255), + 1890: uint8(255), + 1891: uint8(255), + 1892: uint8(255), + 1896: uint8(255), + 1897: uint8(255), + 1898: uint8(255), + 1899: uint8(255), + 1900: uint8(255), + 1901: uint8(255), + 1902: uint8(15), + 1904: uint8(255), + 1905: uint8(255), + 1906: uint8(255), + 1907: uint8(255), + 1908: uint8(255), + 1909: uint8(255), + 1910: uint8(255), + 1911: uint8(255), + 1912: uint8(47), + 1914: uint8(255), + 1915: uint8(3), + 1918: uint8(252), + 1919: uint8(232), + 1920: uint8(255), + 1921: uint8(255), + 1922: uint8(255), + 1923: uint8(255), + 1924: uint8(255), + 1925: uint8(7), + 1926: uint8(255), + 1927: uint8(255), + 1928: uint8(255), + 1929: uint8(255), + 1930: uint8(7), + 1932: uint8(255), + 1933: uint8(255), + 1934: uint8(255), + 1935: uint8(31), + 1936: uint8(255), + 1937: uint8(255), + 1938: uint8(255), + 1939: uint8(255), + 1940: uint8(255), + 1941: uint8(255), + 1942: uint8(247), + 1943: uint8(255), + 1945: uint8(128), + 1946: uint8(255), + 1947: uint8(3), + 1948: uint8(255), + 1949: uint8(255), + 1950: uint8(255), + 1951: uint8(127), + 1952: uint8(255), + 1953: uint8(255), + 1954: uint8(255), + 1955: uint8(255), + 1956: uint8(255), + 1957: uint8(255), + 1958: uint8(127), + 1960: uint8(255), + 1961: uint8(63), + 1962: uint8(255), + 1963: uint8(3), + 1964: uint8(255), + 1965: uint8(255), + 1966: uint8(127), + 1967: uint8(252), + 1968: uint8(255), + 1969: uint8(255), + 1970: uint8(255), + 1971: uint8(255), + 1972: uint8(255), + 1973: uint8(255), + 1974: uint8(255), + 1975: uint8(127), + 1976: uint8(5), + 1979: uint8(56), + 1980: uint8(255), + 1981: uint8(255), + 1982: uint8(60), + 1984: uint8(126), + 1985: uint8(126), + 1986: uint8(126), + 1988: uint8(127), + 1989: uint8(127), + 1990: uint8(255), + 1991: uint8(255), + 1992: uint8(255), + 1993: uint8(255), + 1994: uint8(255), + 1995: uint8(247), + 1996: uint8(255), + 1998: uint8(255), + 1999: uint8(255), + 2000: uint8(255), + 2001: uint8(255), + 2002: uint8(255), + 2003: uint8(255), + 2004: uint8(255), + 2005: uint8(255), + 2006: uint8(255), + 2007: uint8(255), + 2008: uint8(255), + 2009: uint8(255), + 2010: uint8(255), + 2011: uint8(255), + 2012: uint8(255), + 2013: uint8(7), + 2014: uint8(255), + 2015: uint8(3), + 2016: uint8(255), + 2017: uint8(255), + 2018: uint8(255), + 2019: uint8(255), + 2020: uint8(255), + 2021: uint8(255), + 2022: uint8(255), + 2023: uint8(255), + 2024: uint8(255), + 2025: uint8(255), + 2026: uint8(255), + 2027: uint8(255), + 2028: uint8(255), + 2029: uint8(255), + 2030: uint8(255), + 2031: uint8(255), + 2032: uint8(255), + 2033: uint8(255), + 2034: uint8(255), + 2035: uint8(255), + 2036: uint8(15), + 2038: uint8(255), + 2039: uint8(255), + 2040: uint8(127), + 2041: uint8(248), + 2042: uint8(255), + 2043: uint8(255), + 2044: uint8(255), + 2045: uint8(255), + 2046: uint8(255), + 2047: uint8(15), + 2048: uint8(255), + 2049: uint8(255), + 2050: uint8(255), + 2051: uint8(255), + 2052: uint8(255), + 2053: uint8(255), + 2054: uint8(255), + 2055: uint8(255), + 2056: uint8(255), + 2057: uint8(255), + 2058: uint8(255), + 2059: uint8(255), + 2060: uint8(255), + 2061: uint8(63), + 2062: uint8(255), + 2063: uint8(255), + 2064: uint8(255), + 2065: uint8(255), + 2066: uint8(255), + 2067: uint8(255), + 2068: uint8(255), + 2069: uint8(255), + 2070: uint8(255), + 2071: uint8(255), + 2072: uint8(255), + 2073: uint8(255), + 2074: uint8(255), + 2075: uint8(3), + 2080: uint8(127), + 2082: uint8(248), + 2083: uint8(224), + 2084: uint8(255), + 2085: uint8(253), + 2086: uint8(127), + 2087: uint8(95), + 2088: uint8(219), + 2089: uint8(255), + 2090: uint8(255), + 2091: uint8(255), + 2092: uint8(255), + 2093: uint8(255), + 2094: uint8(255), + 2095: uint8(255), + 2096: uint8(255), + 2097: uint8(255), + 2098: uint8(255), + 2099: uint8(255), + 2100: uint8(255), + 2101: uint8(255), + 2102: uint8(3), + 2106: uint8(248), + 2107: uint8(255), + 2108: uint8(255), + 2109: uint8(255), + 2110: uint8(255), + 2111: uint8(255), + 2112: uint8(255), + 2113: uint8(255), + 2114: uint8(255), + 2115: uint8(255), + 2116: uint8(255), + 2117: uint8(255), + 2118: uint8(255), + 2119: uint8(63), + 2122: uint8(255), + 2123: uint8(255), + 2124: uint8(255), + 2125: uint8(255), + 2126: uint8(255), + 2127: uint8(255), + 2128: uint8(255), + 2129: uint8(255), + 2130: uint8(252), + 2131: uint8(255), + 2132: uint8(255), + 2133: uint8(255), + 2134: uint8(255), + 2135: uint8(255), + 2136: uint8(255), + 2142: uint8(255), + 2143: uint8(15), + 2158: uint8(223), + 2159: uint8(255), + 2160: uint8(255), + 2161: uint8(255), + 2162: uint8(255), + 2163: uint8(255), + 2164: uint8(255), + 2165: uint8(255), + 2166: uint8(255), + 2167: uint8(255), + 2168: uint8(255), + 2169: uint8(255), + 2170: uint8(255), + 2171: uint8(255), + 2172: uint8(255), + 2173: uint8(255), + 2174: uint8(255), + 2175: uint8(31), + 2178: uint8(255), + 2179: uint8(3), + 2180: uint8(254), + 2181: uint8(255), + 2182: uint8(255), + 2183: uint8(7), + 2184: uint8(254), + 2185: uint8(255), + 2186: uint8(255), + 2187: uint8(7), + 2188: uint8(192), + 2189: uint8(255), + 2190: uint8(255), + 2191: uint8(255), + 2192: uint8(255), + 2193: uint8(255), + 2194: uint8(255), + 2195: uint8(255), + 2196: uint8(255), + 2197: uint8(255), + 2198: uint8(255), + 2199: uint8(127), + 2200: uint8(252), + 2201: uint8(252), + 2202: uint8(252), + 2203: uint8(28), + 2208: uint8(255), + 2209: uint8(239), + 2210: uint8(255), + 2211: uint8(255), + 2212: uint8(127), + 2213: uint8(255), + 2214: uint8(255), + 2215: uint8(183), + 2216: uint8(255), + 2217: uint8(63), + 2218: uint8(255), + 2219: uint8(63), + 2224: uint8(255), + 2225: uint8(255), + 2226: uint8(255), + 2227: uint8(255), + 2228: uint8(255), + 2229: uint8(255), + 2230: uint8(255), + 2231: uint8(255), + 2232: uint8(255), + 2233: uint8(255), + 2234: uint8(255), + 2235: uint8(255), + 2236: uint8(255), + 2237: uint8(255), + 2238: uint8(255), + 2239: uint8(7), + 2248: uint8(255), + 2249: uint8(255), + 2250: uint8(255), + 2251: uint8(255), + 2252: uint8(255), + 2253: uint8(255), + 2254: uint8(31), + 2288: uint8(255), + 2289: uint8(255), + 2290: uint8(255), + 2291: uint8(31), + 2292: uint8(255), + 2293: uint8(255), + 2294: uint8(255), + 2295: uint8(255), + 2296: uint8(255), + 2297: uint8(255), + 2298: uint8(1), + 2304: uint8(255), + 2305: uint8(255), + 2306: uint8(255), + 2307: uint8(255), + 2309: uint8(224), + 2310: uint8(255), + 2311: uint8(255), + 2312: uint8(255), + 2313: uint8(7), + 2314: uint8(255), + 2315: uint8(255), + 2316: uint8(255), + 2317: uint8(255), + 2318: uint8(255), + 2319: uint8(7), + 2320: uint8(255), + 2321: uint8(255), + 2322: uint8(255), + 2323: uint8(63), + 2324: uint8(255), + 2325: uint8(255), + 2326: uint8(255), + 2327: uint8(255), + 2328: uint8(15), + 2329: uint8(255), + 2330: uint8(62), + 2336: uint8(255), + 2337: uint8(255), + 2338: uint8(255), + 2339: uint8(255), + 2340: uint8(255), + 2341: uint8(255), + 2342: uint8(255), + 2343: uint8(255), + 2344: uint8(255), + 2345: uint8(255), + 2346: uint8(255), + 2347: uint8(255), + 2348: uint8(255), + 2349: uint8(255), + 2350: uint8(255), + 2351: uint8(255), + 2352: uint8(255), + 2353: uint8(255), + 2354: uint8(255), + 2355: uint8(63), + 2356: uint8(255), + 2357: uint8(3), + 2358: uint8(255), + 2359: uint8(255), + 2360: uint8(255), + 2361: uint8(255), + 2362: uint8(15), + 2363: uint8(255), + 2364: uint8(255), + 2365: uint8(255), + 2366: uint8(255), + 2367: uint8(15), + 2368: uint8(255), + 2369: uint8(255), + 2370: uint8(255), + 2371: uint8(255), + 2372: uint8(255), + 2374: uint8(255), + 2375: uint8(255), + 2376: uint8(255), + 2377: uint8(255), + 2378: uint8(255), + 2379: uint8(255), + 2380: uint8(15), + 2400: uint8(255), + 2401: uint8(255), + 2402: uint8(255), + 2403: uint8(255), + 2404: uint8(255), + 2405: uint8(255), + 2406: uint8(127), + 2408: uint8(255), + 2409: uint8(255), + 2410: uint8(63), + 2412: uint8(255), + 2432: uint8(63), + 2433: uint8(253), + 2434: uint8(255), + 2435: uint8(255), + 2436: uint8(255), + 2437: uint8(255), + 2438: uint8(191), + 2439: uint8(145), + 2440: uint8(255), + 2441: uint8(255), + 2442: uint8(63), + 2444: uint8(255), + 2445: uint8(255), + 2446: uint8(127), + 2448: uint8(255), + 2449: uint8(255), + 2450: uint8(255), + 2451: uint8(127), + 2460: uint8(255), + 2461: uint8(255), + 2462: uint8(55), + 2464: uint8(255), + 2465: uint8(255), + 2466: uint8(63), + 2468: uint8(255), + 2469: uint8(255), + 2470: uint8(255), + 2471: uint8(3), + 2480: uint8(255), + 2481: uint8(255), + 2482: uint8(255), + 2483: uint8(255), + 2484: uint8(255), + 2485: uint8(255), + 2486: uint8(255), + 2487: uint8(192), + 2496: uint8(111), + 2497: uint8(240), + 2498: uint8(239), + 2499: uint8(254), + 2500: uint8(255), + 2501: uint8(255), + 2502: uint8(63), + 2508: uint8(255), + 2509: uint8(255), + 2510: uint8(255), + 2511: uint8(31), + 2512: uint8(255), + 2513: uint8(255), + 2514: uint8(255), + 2515: uint8(31), + 2520: uint8(255), + 2521: uint8(254), + 2522: uint8(255), + 2523: uint8(255), + 2524: uint8(31), + 2528: uint8(255), + 2529: uint8(255), + 2530: uint8(255), + 2531: uint8(255), + 2532: uint8(255), + 2533: uint8(255), + 2534: uint8(63), + 2536: uint8(255), + 2537: uint8(255), + 2538: uint8(63), + 2540: uint8(255), + 2541: uint8(255), + 2542: uint8(7), + 2544: uint8(255), + 2545: uint8(255), + 2546: uint8(3), + 2560: uint8(255), + 2561: uint8(255), + 2562: uint8(255), + 2563: uint8(255), + 2564: uint8(255), + 2565: uint8(255), + 2566: uint8(255), + 2567: uint8(255), + 2568: uint8(255), + 2569: uint8(1), + 2576: uint8(255), + 2577: uint8(255), + 2578: uint8(255), + 2579: uint8(255), + 2580: uint8(255), + 2581: uint8(255), + 2582: uint8(7), + 2584: uint8(255), + 2585: uint8(255), + 2586: uint8(255), + 2587: uint8(255), + 2588: uint8(255), + 2589: uint8(255), + 2590: uint8(7), + 2592: uint8(255), + 2593: uint8(255), + 2594: uint8(255), + 2595: uint8(255), + 2596: uint8(255), + 2598: uint8(255), + 2599: uint8(3), + 2624: uint8(255), + 2625: uint8(255), + 2626: uint8(255), + 2627: uint8(31), + 2628: uint8(128), + 2630: uint8(255), + 2631: uint8(255), + 2632: uint8(63), + 2652: uint8(255), + 2653: uint8(255), + 2654: uint8(127), + 2656: uint8(255), + 2657: uint8(255), + 2658: uint8(255), + 2659: uint8(255), + 2660: uint8(255), + 2661: uint8(255), + 2662: uint8(255), + 2663: uint8(255), + 2664: uint8(63), + 2668: uint8(192), + 2669: uint8(255), + 2672: uint8(252), + 2673: uint8(255), + 2674: uint8(255), + 2675: uint8(255), + 2676: uint8(255), + 2677: uint8(255), + 2678: uint8(255), + 2679: uint8(1), + 2682: uint8(255), + 2683: uint8(255), + 2684: uint8(255), + 2685: uint8(1), + 2686: uint8(255), + 2687: uint8(3), + 2688: uint8(255), + 2689: uint8(255), + 2690: uint8(255), + 2691: uint8(255), + 2692: uint8(255), + 2693: uint8(255), + 2694: uint8(199), + 2695: uint8(255), + 2696: uint8(112), + 2698: uint8(255), + 2699: uint8(255), + 2700: uint8(255), + 2701: uint8(255), + 2702: uint8(71), + 2704: uint8(255), + 2705: uint8(255), + 2706: uint8(255), + 2707: uint8(255), + 2708: uint8(255), + 2709: uint8(255), + 2710: uint8(255), + 2711: uint8(255), + 2712: uint8(30), + 2714: uint8(255), + 2715: uint8(23), + 2720: uint8(255), + 2721: uint8(255), + 2722: uint8(251), + 2723: uint8(255), + 2724: uint8(255), + 2725: uint8(255), + 2726: uint8(159), + 2727: uint8(64), + 2736: uint8(127), + 2737: uint8(189), + 2738: uint8(255), + 2739: uint8(191), + 2740: uint8(255), + 2741: uint8(1), + 2742: uint8(255), + 2743: uint8(255), + 2744: uint8(255), + 2745: uint8(255), + 2746: uint8(255), + 2747: uint8(255), + 2748: uint8(255), + 2749: uint8(1), + 2750: uint8(255), + 2751: uint8(3), + 2752: uint8(239), + 2753: uint8(159), + 2754: uint8(249), + 2755: uint8(255), + 2756: uint8(255), + 2757: uint8(253), + 2758: uint8(237), + 2759: uint8(227), + 2760: uint8(159), + 2761: uint8(25), + 2762: uint8(129), + 2763: uint8(224), + 2764: uint8(15), + 2784: uint8(255), + 2785: uint8(255), + 2786: uint8(255), + 2787: uint8(255), + 2788: uint8(255), + 2789: uint8(255), + 2790: uint8(255), + 2791: uint8(255), + 2792: uint8(187), + 2793: uint8(7), + 2794: uint8(255), + 2795: uint8(131), + 2800: uint8(255), + 2801: uint8(255), + 2802: uint8(255), + 2803: uint8(255), + 2804: uint8(255), + 2805: uint8(255), + 2806: uint8(255), + 2807: uint8(255), + 2808: uint8(179), + 2810: uint8(255), + 2811: uint8(3), + 2832: uint8(255), + 2833: uint8(255), + 2834: uint8(255), + 2835: uint8(255), + 2836: uint8(255), + 2837: uint8(255), + 2838: uint8(63), + 2839: uint8(127), + 2843: uint8(63), + 2848: uint8(255), + 2849: uint8(255), + 2850: uint8(255), + 2851: uint8(255), + 2852: uint8(255), + 2853: uint8(255), + 2854: uint8(255), + 2855: uint8(127), + 2856: uint8(17), + 2858: uint8(255), + 2859: uint8(3), + 2864: uint8(255), + 2865: uint8(255), + 2866: uint8(255), + 2867: uint8(255), + 2868: uint8(255), + 2869: uint8(255), + 2870: uint8(63), + 2871: uint8(1), + 2872: uint8(255), + 2873: uint8(3), + 2880: uint8(255), + 2881: uint8(255), + 2882: uint8(255), + 2883: uint8(231), + 2884: uint8(255), + 2885: uint8(7), + 2886: uint8(255), + 2887: uint8(3), + 2912: uint8(255), + 2913: uint8(255), + 2914: uint8(255), + 2915: uint8(255), + 2916: uint8(255), + 2917: uint8(255), + 2918: uint8(255), + 2919: uint8(1), + 2932: uint8(255), + 2933: uint8(255), + 2934: uint8(255), + 2935: uint8(255), + 2936: uint8(255), + 2937: uint8(255), + 2938: uint8(255), + 2939: uint8(255), + 2940: uint8(255), + 2941: uint8(3), + 2943: uint8(128), + 2964: uint8(255), + 2965: uint8(252), + 2966: uint8(255), + 2967: uint8(255), + 2968: uint8(255), + 2969: uint8(255), + 2970: uint8(255), + 2971: uint8(252), + 2972: uint8(26), + 2976: uint8(255), + 2977: uint8(255), + 2978: uint8(255), + 2979: uint8(255), + 2980: uint8(255), + 2981: uint8(255), + 2982: uint8(231), + 2983: uint8(127), + 2986: uint8(255), + 2987: uint8(255), + 2988: uint8(255), + 2989: uint8(255), + 2990: uint8(255), + 2991: uint8(255), + 2992: uint8(255), + 2993: uint8(255), + 2994: uint8(255), + 2995: uint8(32), + 3000: uint8(255), + 3001: uint8(255), + 3002: uint8(255), + 3003: uint8(255), + 3004: uint8(255), + 3005: uint8(255), + 3006: uint8(255), + 3007: uint8(1), + 3008: uint8(255), + 3009: uint8(253), + 3010: uint8(255), + 3011: uint8(255), + 3012: uint8(255), + 3013: uint8(255), + 3014: uint8(127), + 3015: uint8(127), + 3016: uint8(1), + 3018: uint8(255), + 3019: uint8(3), + 3022: uint8(252), + 3023: uint8(255), + 3024: uint8(255), + 3025: uint8(255), + 3026: uint8(252), + 3027: uint8(255), + 3028: uint8(255), + 3029: uint8(254), + 3030: uint8(127), + 3040: uint8(127), + 3041: uint8(251), + 3042: uint8(255), + 3043: uint8(255), + 3044: uint8(255), + 3045: uint8(255), + 3046: uint8(127), + 3047: uint8(180), + 3048: uint8(203), + 3050: uint8(255), + 3051: uint8(3), + 3052: uint8(191), + 3053: uint8(253), + 3054: uint8(255), + 3055: uint8(255), + 3056: uint8(255), + 3057: uint8(127), + 3058: uint8(123), + 3059: uint8(1), + 3060: uint8(255), + 3061: uint8(3), + 3100: uint8(255), + 3101: uint8(255), + 3102: uint8(127), + 3104: uint8(255), + 3105: uint8(255), + 3106: uint8(255), + 3107: uint8(255), + 3108: uint8(255), + 3109: uint8(255), + 3110: uint8(255), + 3111: uint8(255), + 3112: uint8(255), + 3113: uint8(255), + 3114: uint8(255), + 3115: uint8(255), + 3116: uint8(255), + 3117: uint8(255), + 3118: uint8(255), + 3119: uint8(255), + 3120: uint8(255), + 3121: uint8(255), + 3122: uint8(255), + 3123: uint8(3), + 3136: uint8(255), + 3137: uint8(255), + 3138: uint8(255), + 3139: uint8(255), + 3140: uint8(255), + 3141: uint8(255), + 3142: uint8(255), + 3143: uint8(255), + 3144: uint8(255), + 3145: uint8(255), + 3146: uint8(255), + 3147: uint8(255), + 3148: uint8(255), + 3149: uint8(127), + 3152: uint8(255), + 3153: uint8(255), + 3154: uint8(255), + 3155: uint8(255), + 3156: uint8(255), + 3157: uint8(255), + 3158: uint8(255), + 3159: uint8(255), + 3160: uint8(255), + 3161: uint8(255), + 3162: uint8(255), + 3163: uint8(255), + 3164: uint8(255), + 3165: uint8(255), + 3166: uint8(255), + 3167: uint8(255), + 3168: uint8(255), + 3169: uint8(255), + 3170: uint8(255), + 3171: uint8(255), + 3172: uint8(255), + 3173: uint8(255), + 3174: uint8(255), + 3175: uint8(255), + 3176: uint8(15), + 3200: uint8(255), + 3201: uint8(255), + 3202: uint8(255), + 3203: uint8(255), + 3204: uint8(255), + 3205: uint8(127), + 3232: uint8(255), + 3233: uint8(255), + 3234: uint8(255), + 3235: uint8(255), + 3236: uint8(255), + 3237: uint8(255), + 3238: uint8(255), + 3239: uint8(255), + 3240: uint8(127), + 3264: uint8(255), + 3265: uint8(255), + 3266: uint8(255), + 3267: uint8(255), + 3268: uint8(255), + 3269: uint8(255), + 3270: uint8(255), + 3271: uint8(1), + 3272: uint8(255), + 3273: uint8(255), + 3274: uint8(255), + 3275: uint8(127), + 3276: uint8(255), + 3277: uint8(3), + 3290: uint8(255), + 3291: uint8(255), + 3292: uint8(255), + 3293: uint8(63), + 3296: uint8(255), + 3297: uint8(255), + 3298: uint8(255), + 3299: uint8(255), + 3300: uint8(255), + 3301: uint8(255), + 3304: uint8(15), + 3306: uint8(255), + 3307: uint8(3), + 3308: uint8(248), + 3309: uint8(255), + 3310: uint8(255), + 3311: uint8(224), + 3312: uint8(255), + 3313: uint8(255), + 3336: uint8(255), + 3337: uint8(255), + 3338: uint8(255), + 3339: uint8(255), + 3340: uint8(255), + 3341: uint8(255), + 3342: uint8(255), + 3343: uint8(255), + 3360: uint8(255), + 3361: uint8(255), + 3362: uint8(255), + 3363: uint8(255), + 3364: uint8(255), + 3365: uint8(255), + 3366: uint8(255), + 3367: uint8(255), + 3368: uint8(255), + 3369: uint8(135), + 3370: uint8(255), + 3371: uint8(255), + 3372: uint8(255), + 3373: uint8(255), + 3374: uint8(255), + 3375: uint8(255), + 3376: uint8(255), + 3377: uint8(128), + 3378: uint8(255), + 3379: uint8(255), + 3388: uint8(11), + 3392: uint8(255), + 3393: uint8(255), + 3394: uint8(255), + 3395: uint8(255), + 3396: uint8(255), + 3397: uint8(255), + 3398: uint8(255), + 3399: uint8(255), + 3400: uint8(255), + 3401: uint8(255), + 3402: uint8(255), + 3403: uint8(255), + 3404: uint8(255), + 3405: uint8(255), + 3406: uint8(255), + 3407: uint8(255), + 3408: uint8(255), + 3409: uint8(255), + 3410: uint8(255), + 3411: uint8(255), + 3412: uint8(255), + 3413: uint8(255), + 3414: uint8(255), + 3415: uint8(255), + 3416: uint8(255), + 3417: uint8(255), + 3418: uint8(255), + 3419: uint8(255), + 3420: uint8(255), + 3421: uint8(255), + 3422: uint8(255), + 3424: uint8(255), + 3425: uint8(255), + 3426: uint8(255), + 3427: uint8(255), + 3428: uint8(255), + 3429: uint8(255), + 3430: uint8(255), + 3431: uint8(255), + 3432: uint8(255), + 3433: uint8(255), + 3434: uint8(255), + 3435: uint8(255), + 3436: uint8(255), + 3437: uint8(255), + 3438: uint8(255), + 3439: uint8(255), + 3440: uint8(255), + 3441: uint8(255), + 3442: uint8(255), + 3443: uint8(255), + 3444: uint8(255), + 3445: uint8(255), + 3446: uint8(255), + 3447: uint8(255), + 3448: uint8(255), + 3449: uint8(255), + 3450: uint8(255), + 3451: uint8(255), + 3452: uint8(255), + 3453: uint8(255), + 3454: uint8(7), + 3456: uint8(255), + 3457: uint8(255), + 3458: uint8(255), + 3459: uint8(127), + 3466: uint8(7), + 3468: uint8(240), + 3470: uint8(255), + 3471: uint8(255), + 3472: uint8(255), + 3473: uint8(255), + 3474: uint8(255), + 3475: uint8(255), + 3476: uint8(255), + 3477: uint8(255), + 3478: uint8(255), + 3479: uint8(255), + 3480: uint8(255), + 3481: uint8(255), + 3482: uint8(255), + 3483: uint8(255), + 3484: uint8(255), + 3485: uint8(255), + 3486: uint8(255), + 3487: uint8(255), + 3488: uint8(255), + 3489: uint8(255), + 3490: uint8(255), + 3491: uint8(255), + 3492: uint8(255), + 3493: uint8(255), + 3494: uint8(255), + 3495: uint8(255), + 3496: uint8(255), + 3497: uint8(255), + 3498: uint8(255), + 3499: uint8(255), + 3500: uint8(255), + 3501: uint8(255), + 3502: uint8(255), + 3503: uint8(255), + 3504: uint8(255), + 3505: uint8(255), + 3506: uint8(255), + 3507: uint8(255), + 3508: uint8(255), + 3509: uint8(255), + 3510: uint8(255), + 3511: uint8(255), + 3512: uint8(255), + 3513: uint8(255), + 3514: uint8(255), + 3515: uint8(255), + 3516: uint8(255), + 3517: uint8(255), + 3518: uint8(255), + 3519: uint8(15), + 3520: uint8(255), + 3521: uint8(255), + 3522: uint8(255), + 3523: uint8(255), + 3524: uint8(255), + 3525: uint8(255), + 3526: uint8(255), + 3527: uint8(255), + 3528: uint8(255), + 3529: uint8(255), + 3530: uint8(255), + 3531: uint8(255), + 3532: uint8(255), + 3533: uint8(7), + 3534: uint8(255), + 3535: uint8(31), + 3536: uint8(255), + 3537: uint8(1), + 3538: uint8(255), + 3539: uint8(67), + 3552: uint8(255), + 3553: uint8(255), + 3554: uint8(255), + 3555: uint8(255), + 3556: uint8(255), + 3557: uint8(255), + 3558: uint8(255), + 3559: uint8(255), + 3560: uint8(255), + 3561: uint8(255), + 3562: uint8(223), + 3563: uint8(255), + 3564: uint8(255), + 3565: uint8(255), + 3566: uint8(255), + 3567: uint8(255), + 3568: uint8(255), + 3569: uint8(255), + 3570: uint8(255), + 3571: uint8(223), + 3572: uint8(100), + 3573: uint8(222), + 3574: uint8(255), + 3575: uint8(235), + 3576: uint8(239), + 3577: uint8(255), + 3578: uint8(255), + 3579: uint8(255), + 3580: uint8(255), + 3581: uint8(255), + 3582: uint8(255), + 3583: uint8(255), + 3584: uint8(191), + 3585: uint8(231), + 3586: uint8(223), + 3587: uint8(223), + 3588: uint8(255), + 3589: uint8(255), + 3590: uint8(255), + 3591: uint8(123), + 3592: uint8(95), + 3593: uint8(252), + 3594: uint8(253), + 3595: uint8(255), + 3596: uint8(255), + 3597: uint8(255), + 3598: uint8(255), + 3599: uint8(255), + 3600: uint8(255), + 3601: uint8(255), + 3602: uint8(255), + 3603: uint8(255), + 3604: uint8(255), + 3605: uint8(255), + 3606: uint8(255), + 3607: uint8(255), + 3608: uint8(255), + 3609: uint8(255), + 3610: uint8(255), + 3611: uint8(255), + 3612: uint8(255), + 3613: uint8(255), + 3614: uint8(255), + 3615: uint8(255), + 3616: uint8(255), + 3617: uint8(255), + 3618: uint8(255), + 3619: uint8(255), + 3620: uint8(255), + 3621: uint8(255), + 3622: uint8(255), + 3623: uint8(255), + 3624: uint8(255), + 3625: uint8(255), + 3626: uint8(255), + 3627: uint8(255), + 3628: uint8(255), + 3629: uint8(255), + 3630: uint8(255), + 3631: uint8(255), + 3632: uint8(255), + 3633: uint8(255), + 3634: uint8(255), + 3635: uint8(255), + 3636: uint8(63), + 3637: uint8(255), + 3638: uint8(255), + 3639: uint8(255), + 3640: uint8(253), + 3641: uint8(255), + 3642: uint8(255), + 3643: uint8(247), + 3644: uint8(255), + 3645: uint8(255), + 3646: uint8(255), + 3647: uint8(247), + 3648: uint8(255), + 3649: uint8(255), + 3650: uint8(223), + 3651: uint8(255), + 3652: uint8(255), + 3653: uint8(255), + 3654: uint8(223), + 3655: uint8(255), + 3656: uint8(255), + 3657: uint8(127), + 3658: uint8(255), + 3659: uint8(255), + 3660: uint8(255), + 3661: uint8(127), + 3662: uint8(255), + 3663: uint8(255), + 3664: uint8(255), + 3665: uint8(253), + 3666: uint8(255), + 3667: uint8(255), + 3668: uint8(255), + 3669: uint8(253), + 3670: uint8(255), + 3671: uint8(255), + 3672: uint8(247), + 3673: uint8(207), + 3674: uint8(255), + 3675: uint8(255), + 3676: uint8(255), + 3677: uint8(255), + 3678: uint8(255), + 3679: uint8(255), + 3680: uint8(127), + 3681: uint8(255), + 3682: uint8(255), + 3683: uint8(249), + 3684: uint8(219), + 3685: uint8(7), + 3712: uint8(255), + 3713: uint8(255), + 3714: uint8(255), + 3715: uint8(255), + 3716: uint8(255), + 3717: uint8(31), + 3718: uint8(128), + 3719: uint8(63), + 3720: uint8(255), + 3721: uint8(67), + 3768: uint8(255), + 3769: uint8(255), + 3770: uint8(255), + 3771: uint8(255), + 3772: uint8(255), + 3773: uint8(15), + 3774: uint8(255), + 3775: uint8(3), + 3776: uint8(255), + 3777: uint8(255), + 3778: uint8(255), + 3779: uint8(255), + 3780: uint8(255), + 3781: uint8(255), + 3782: uint8(255), + 3783: uint8(255), + 3784: uint8(255), + 3785: uint8(255), + 3786: uint8(255), + 3787: uint8(255), + 3788: uint8(255), + 3789: uint8(255), + 3790: uint8(255), + 3791: uint8(255), + 3792: uint8(255), + 3793: uint8(255), + 3794: uint8(255), + 3795: uint8(255), + 3796: uint8(255), + 3797: uint8(255), + 3798: uint8(255), + 3799: uint8(255), + 3800: uint8(31), + 3808: uint8(255), + 3809: uint8(255), + 3810: uint8(255), + 3811: uint8(255), + 3812: uint8(255), + 3813: uint8(255), + 3814: uint8(255), + 3815: uint8(255), + 3816: uint8(143), + 3817: uint8(8), + 3818: uint8(255), + 3819: uint8(3), + 3840: uint8(239), + 3841: uint8(255), + 3842: uint8(255), + 3843: uint8(255), + 3844: uint8(150), + 3845: uint8(254), + 3846: uint8(247), + 3847: uint8(10), + 3848: uint8(132), + 3849: uint8(234), + 3850: uint8(150), + 3851: uint8(170), + 3852: uint8(150), + 3853: uint8(247), + 3854: uint8(247), + 3855: uint8(94), + 3856: uint8(255), + 3857: uint8(251), + 3858: uint8(255), + 3859: uint8(15), + 3860: uint8(238), + 3861: uint8(251), + 3862: uint8(255), + 3863: uint8(15), + 3878: uint8(255), + 3879: uint8(255), + 3880: uint8(255), + 3881: uint8(3), + 3882: uint8(255), + 3883: uint8(255), + 3884: uint8(255), + 3885: uint8(3), + 3886: uint8(255), + 3887: uint8(255), + 3888: uint8(255), + 3889: uint8(3), +} + +func Xiswalpha(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + if wc < uint32(0x20000) { + return Int32FromUint8(_table3[Uint32FromInt32(Int32FromUint8(_table3[wc>>int32(8)])*int32(32))+wc&uint32(255)>>int32(3)]) >> (wc & uint32(7)) & int32(1) + } + if wc < uint32(0x2fffe) { + return int32(1) + } + return 0 +} + +func X__iswalpha_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswalpha(tls, c) +} + +func Xiswalpha_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswalpha_l(tls, c, l) +} + +func Xiswblank(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xisblank(tls, Int32FromUint32(wc)) +} + +func X__iswblank_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswblank(tls, c) +} + +func Xiswblank_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswblank_l(tls, c, l) +} + +func Xiswcntrl(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(wc < uint32(32) || wc-Uint32FromInt32(0x7f) < uint32(33) || wc-Uint32FromInt32(0x2028) < uint32(2) || wc-Uint32FromInt32(0xfff9) < uint32(3)) +} + +func X__iswcntrl_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswcntrl(tls, c) +} + +func Xiswcntrl_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswcntrl_l(tls, c, l) +} + +const WCTYPE_ALNUM = 1 +const WCTYPE_ALPHA = 2 +const WCTYPE_BLANK = 3 +const WCTYPE_CNTRL = 4 +const WCTYPE_DIGIT = 5 +const WCTYPE_GRAPH = 6 +const WCTYPE_LOWER = 7 +const WCTYPE_PRINT = 8 +const WCTYPE_PUNCT = 9 +const WCTYPE_SPACE = 10 +const WCTYPE_UPPER = 11 +const WCTYPE_XDIGIT = 12 + +func Xiswctype(tls *TLS, wc Twint_t, type1 Twctype_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v type1=%v, (%v:)", tls, wc, type1, origin(2)) + defer func() { trc("-> %v", r) }() + } + switch type1 { + case uint32(WCTYPE_ALNUM): + return Xiswalnum(tls, wc) + case uint32(WCTYPE_ALPHA): + return Xiswalpha(tls, wc) + case uint32(WCTYPE_BLANK): + return Xiswblank(tls, wc) + case uint32(WCTYPE_CNTRL): + return Xiswcntrl(tls, wc) + case uint32(WCTYPE_DIGIT): + return BoolInt32(wc-uint32('0') < uint32(10)) + case uint32(WCTYPE_GRAPH): + return Xiswgraph(tls, wc) + case uint32(WCTYPE_LOWER): + return Xiswlower(tls, wc) + case uint32(WCTYPE_PRINT): + return Xiswprint(tls, wc) + case uint32(WCTYPE_PUNCT): + return Xiswpunct(tls, wc) + case uint32(WCTYPE_SPACE): + return Xiswspace(tls, wc) + case uint32(WCTYPE_UPPER): + return Xiswupper(tls, wc) + case uint32(WCTYPE_XDIGIT): + return Xiswxdigit(tls, wc) + } + return 0 +} + +func Xwctype(tls *TLS, s uintptr) (r Twctype_t) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var i int32 + var p uintptr + _, _ = i, p + i = int32(1) + p = uintptr(unsafe.Pointer(&_names)) + for { + if !(**(**uint8)(__ccgo_up(p)) != 0) { + break + } + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == Int32FromUint8(**(**uint8)(__ccgo_up(p))) && !(Xstrcmp(tls, s, p) != 0) { + return Uint32FromInt32(i) + } + goto _1 + _1: + ; + i = i + 1 + p = p + uintptr(6) + } + return uint32(0) +} + +/* order must match! */ +var _names = [73]uint8{'a', 'l', 'n', 'u', 'm', 0, 'a', 'l', 'p', 'h', 'a', 0, 'b', 'l', 'a', 'n', 'k', 0, 'c', 'n', 't', 'r', 'l', 0, 'd', 'i', 'g', 'i', 't', 0, 'g', 'r', 'a', 'p', 'h', 0, 'l', 'o', 'w', 'e', 'r', 0, 'p', 'r', 'i', 'n', 't', 0, 'p', 'u', 'n', 'c', 't', 0, 's', 'p', 'a', 'c', 'e', 0, 'u', 'p', 'p', 'e', 'r', 0, 'x', 'd', 'i', 'g', 'i', 't'} + +func X__iswctype_l(tls *TLS, c Twint_t, t Twctype_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v t=%v l=%v, (%v:)", tls, c, t, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswctype(tls, c, t) +} + +func X__wctype_l(tls *TLS, s uintptr, l Tlocale_t) (r Twctype_t) { + if __ccgo_strace { + trc("tls=%v s=%v l=%v, (%v:)", tls, s, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwctype(tls, s) +} + +func Xiswctype_l(tls *TLS, c Twint_t, t Twctype_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v t=%v l=%v, (%v:)", tls, c, t, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswctype_l(tls, c, t, l) +} + +func Xwctype_l(tls *TLS, s uintptr, l Tlocale_t) (r Twctype_t) { + if __ccgo_strace { + trc("tls=%v s=%v l=%v, (%v:)", tls, s, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__wctype_l(tls, s, l) +} + +func Xiswdigit(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(wc-uint32('0') < uint32(10)) +} + +func X__iswdigit_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswdigit(tls, c) +} + +func Xiswdigit_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswdigit_l(tls, c, l) +} + +func Xiswgraph(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + /* ISO C defines this function as: */ + return BoolInt32(!(Xiswspace(tls, wc) != 0) && Xiswprint(tls, wc) != 0) +} + +func X__iswgraph_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswgraph(tls, c) +} + +func Xiswgraph_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswgraph_l(tls, c, l) +} + +func Xiswlower(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(Xtowupper(tls, wc) != wc) +} + +func X__iswlower_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswlower(tls, c) +} + +func Xiswlower_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswlower_l(tls, c, l) +} + +/* Consider all legal codepoints as printable except for: + * - C0 and C1 control characters + * - U+2028 and U+2029 (line/para break) + * - U+FFF9 through U+FFFB (interlinear annotation controls) + * The following code is optimized heavily to make hot paths for the + * expected printable characters. */ + +func Xiswprint(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + if wc < uint32(0xff) { + return BoolInt32((wc+uint32(1))&uint32(0x7f) >= uint32(0x21)) + } + if wc < uint32(0x2028) || wc-uint32(0x202a) < Uint32FromInt32(Int32FromInt32(0xd800)-Int32FromInt32(0x202a)) || wc-uint32(0xe000) < Uint32FromInt32(Int32FromInt32(0xfff9)-Int32FromInt32(0xe000)) { + return int32(1) + } + if wc-uint32(0xfffc) > Uint32FromInt32(Int32FromInt32(0x10ffff)-Int32FromInt32(0xfffc)) || wc&uint32(0xfffe) == uint32(0xfffe) { + return 0 + } + return int32(1) +} + +func X__iswprint_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswprint(tls, c) +} + +func Xiswprint_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswprint_l(tls, c, l) +} + +var _table4 = [4000]uint8{ + 0: uint8(18), + 1: uint8(16), + 2: uint8(19), + 3: uint8(20), + 4: uint8(21), + 5: uint8(22), + 6: uint8(23), + 7: uint8(24), + 8: uint8(25), + 9: uint8(26), + 10: uint8(27), + 11: uint8(28), + 12: uint8(29), + 13: uint8(30), + 14: uint8(31), + 15: uint8(32), + 16: uint8(33), + 17: uint8(16), + 18: uint8(16), + 19: uint8(34), + 20: uint8(35), + 21: uint8(16), + 22: uint8(36), + 23: uint8(37), + 24: uint8(38), + 25: uint8(39), + 26: uint8(40), + 27: uint8(41), + 28: uint8(42), + 29: uint8(43), + 30: uint8(16), + 31: uint8(44), + 32: uint8(45), + 33: uint8(46), + 34: uint8(17), + 35: uint8(17), + 36: uint8(47), + 37: uint8(17), + 38: uint8(17), + 39: uint8(17), + 40: uint8(17), + 41: uint8(17), + 42: uint8(17), + 43: uint8(48), + 44: uint8(49), + 45: uint8(50), + 46: uint8(51), + 47: uint8(52), + 48: uint8(53), + 49: uint8(54), + 50: uint8(55), + 51: uint8(17), + 52: uint8(16), + 53: uint8(16), + 54: uint8(16), + 55: uint8(16), + 56: uint8(16), + 57: uint8(16), + 58: uint8(16), + 59: uint8(16), + 60: uint8(16), + 61: uint8(16), + 62: uint8(16), + 63: uint8(16), + 64: uint8(16), + 65: uint8(16), + 66: uint8(16), + 67: uint8(16), + 68: uint8(16), + 69: uint8(16), + 70: uint8(16), + 71: uint8(16), + 72: uint8(16), + 73: uint8(16), + 74: uint8(16), + 75: uint8(16), + 76: uint8(16), + 77: uint8(56), + 78: uint8(16), + 79: uint8(16), + 80: uint8(16), + 81: uint8(16), + 82: uint8(16), + 83: uint8(16), + 84: uint8(16), + 85: uint8(16), + 86: uint8(16), + 87: uint8(16), + 88: uint8(16), + 89: uint8(16), + 90: uint8(16), + 91: uint8(16), + 92: uint8(16), + 93: uint8(16), + 94: uint8(16), + 95: uint8(16), + 96: uint8(16), + 97: uint8(16), + 98: uint8(16), + 99: uint8(16), + 100: uint8(16), + 101: uint8(16), + 102: uint8(16), + 103: uint8(16), + 104: uint8(16), + 105: uint8(16), + 106: uint8(16), + 107: uint8(16), + 108: uint8(16), + 109: uint8(16), + 110: uint8(16), + 111: uint8(16), + 112: uint8(16), + 113: uint8(16), + 114: uint8(16), + 115: uint8(16), + 116: uint8(16), + 117: uint8(16), + 118: uint8(16), + 119: uint8(16), + 120: uint8(16), + 121: uint8(16), + 122: uint8(16), + 123: uint8(16), + 124: uint8(16), + 125: uint8(16), + 126: uint8(16), + 127: uint8(16), + 128: uint8(16), + 129: uint8(16), + 130: uint8(16), + 131: uint8(16), + 132: uint8(16), + 133: uint8(16), + 134: uint8(16), + 135: uint8(16), + 136: uint8(16), + 137: uint8(16), + 138: uint8(16), + 139: uint8(16), + 140: uint8(16), + 141: uint8(16), + 142: uint8(16), + 143: uint8(16), + 144: uint8(16), + 145: uint8(16), + 146: uint8(16), + 147: uint8(16), + 148: uint8(16), + 149: uint8(16), + 150: uint8(16), + 151: uint8(16), + 152: uint8(16), + 153: uint8(16), + 154: uint8(16), + 155: uint8(16), + 156: uint8(16), + 157: uint8(16), + 158: uint8(16), + 159: uint8(16), + 160: uint8(16), + 161: uint8(16), + 162: uint8(16), + 163: uint8(16), + 164: uint8(57), + 165: uint8(16), + 166: uint8(58), + 167: uint8(59), + 168: uint8(60), + 169: uint8(61), + 170: uint8(62), + 171: uint8(63), + 172: uint8(16), + 173: uint8(16), + 174: uint8(16), + 175: uint8(16), + 176: uint8(16), + 177: uint8(16), + 178: uint8(16), + 179: uint8(16), + 180: uint8(16), + 181: uint8(16), + 182: uint8(16), + 183: uint8(16), + 184: uint8(16), + 185: uint8(16), + 186: uint8(16), + 187: uint8(16), + 188: uint8(16), + 189: uint8(16), + 190: uint8(16), + 191: uint8(16), + 192: uint8(16), + 193: uint8(16), + 194: uint8(16), + 195: uint8(16), + 196: uint8(16), + 197: uint8(16), + 198: uint8(16), + 199: uint8(16), + 200: uint8(16), + 201: uint8(16), + 202: uint8(16), + 203: uint8(16), + 204: uint8(16), + 205: uint8(16), + 206: uint8(16), + 207: uint8(16), + 208: uint8(16), + 209: uint8(16), + 210: uint8(16), + 211: uint8(16), + 212: uint8(16), + 213: uint8(16), + 214: uint8(16), + 215: uint8(16), + 216: uint8(16), + 217: uint8(16), + 218: uint8(16), + 219: uint8(16), + 220: uint8(16), + 221: uint8(16), + 222: uint8(16), + 223: uint8(16), + 224: uint8(64), + 225: uint8(16), + 226: uint8(16), + 227: uint8(16), + 228: uint8(16), + 229: uint8(16), + 230: uint8(16), + 231: uint8(16), + 232: uint8(16), + 233: uint8(16), + 234: uint8(16), + 235: uint8(16), + 236: uint8(16), + 237: uint8(16), + 238: uint8(16), + 239: uint8(16), + 240: uint8(16), + 241: uint8(16), + 242: uint8(16), + 243: uint8(16), + 244: uint8(16), + 245: uint8(16), + 246: uint8(16), + 247: uint8(16), + 248: uint8(65), + 249: uint8(16), + 250: uint8(16), + 251: uint8(66), + 252: uint8(16), + 253: uint8(67), + 254: uint8(68), + 255: uint8(69), + 256: uint8(16), + 257: uint8(70), + 258: uint8(71), + 259: uint8(72), + 260: uint8(16), + 261: uint8(73), + 262: uint8(16), + 263: uint8(16), + 264: uint8(74), + 265: uint8(75), + 266: uint8(76), + 267: uint8(77), + 268: uint8(78), + 269: uint8(16), + 270: uint8(79), + 271: uint8(80), + 272: uint8(81), + 273: uint8(82), + 274: uint8(83), + 275: uint8(84), + 276: uint8(85), + 277: uint8(86), + 278: uint8(87), + 279: uint8(88), + 280: uint8(89), + 281: uint8(90), + 282: uint8(91), + 283: uint8(16), + 284: uint8(92), + 285: uint8(93), + 286: uint8(94), + 287: uint8(95), + 288: uint8(16), + 289: uint8(16), + 290: uint8(16), + 291: uint8(16), + 292: uint8(96), + 293: uint8(16), + 294: uint8(16), + 295: uint8(16), + 296: uint8(16), + 297: uint8(16), + 298: uint8(16), + 299: uint8(16), + 300: uint8(16), + 301: uint8(16), + 302: uint8(16), + 303: uint8(16), + 304: uint8(16), + 305: uint8(16), + 306: uint8(16), + 307: uint8(16), + 308: uint8(97), + 309: uint8(16), + 310: uint8(16), + 311: uint8(16), + 312: uint8(16), + 313: uint8(16), + 314: uint8(16), + 315: uint8(16), + 316: uint8(16), + 317: uint8(16), + 318: uint8(16), + 319: uint8(16), + 320: uint8(16), + 321: uint8(16), + 322: uint8(16), + 323: uint8(16), + 324: uint8(16), + 325: uint8(16), + 326: uint8(16), + 327: uint8(16), + 328: uint8(16), + 329: uint8(16), + 330: uint8(16), + 331: uint8(16), + 332: uint8(16), + 333: uint8(16), + 334: uint8(16), + 335: uint8(16), + 336: uint8(16), + 337: uint8(16), + 338: uint8(16), + 339: uint8(16), + 340: uint8(16), + 341: uint8(16), + 342: uint8(16), + 343: uint8(16), + 344: uint8(16), + 345: uint8(16), + 346: uint8(16), + 347: uint8(16), + 348: uint8(16), + 349: uint8(16), + 350: uint8(16), + 351: uint8(16), + 352: uint8(16), + 353: uint8(16), + 354: uint8(16), + 355: uint8(16), + 356: uint8(16), + 357: uint8(16), + 358: uint8(16), + 359: uint8(16), + 360: uint8(16), + 361: uint8(16), + 362: uint8(98), + 363: uint8(99), + 364: uint8(16), + 365: uint8(16), + 366: uint8(100), + 367: uint8(101), + 368: uint8(16), + 369: uint8(16), + 370: uint8(16), + 371: uint8(16), + 372: uint8(16), + 373: uint8(16), + 374: uint8(16), + 375: uint8(16), + 376: uint8(16), + 377: uint8(16), + 378: uint8(16), + 379: uint8(16), + 380: uint8(16), + 381: uint8(16), + 382: uint8(16), + 383: uint8(16), + 384: uint8(16), + 385: uint8(16), + 386: uint8(16), + 387: uint8(16), + 388: uint8(16), + 389: uint8(16), + 390: uint8(16), + 391: uint8(16), + 392: uint8(16), + 393: uint8(16), + 394: uint8(16), + 395: uint8(16), + 396: uint8(16), + 397: uint8(16), + 398: uint8(16), + 399: uint8(16), + 400: uint8(16), + 401: uint8(16), + 402: uint8(16), + 403: uint8(16), + 404: uint8(16), + 405: uint8(16), + 406: uint8(16), + 407: uint8(16), + 408: uint8(16), + 409: uint8(16), + 410: uint8(16), + 411: uint8(16), + 412: uint8(16), + 413: uint8(16), + 414: uint8(16), + 415: uint8(16), + 416: uint8(16), + 417: uint8(16), + 418: uint8(16), + 419: uint8(16), + 420: uint8(16), + 421: uint8(16), + 422: uint8(16), + 423: uint8(16), + 424: uint8(16), + 425: uint8(16), + 426: uint8(16), + 427: uint8(16), + 428: uint8(16), + 429: uint8(16), + 430: uint8(16), + 431: uint8(16), + 432: uint8(16), + 433: uint8(16), + 434: uint8(16), + 435: uint8(16), + 436: uint8(16), + 437: uint8(16), + 438: uint8(16), + 439: uint8(16), + 440: uint8(16), + 441: uint8(16), + 442: uint8(16), + 443: uint8(16), + 444: uint8(102), + 445: uint8(16), + 446: uint8(16), + 447: uint8(16), + 448: uint8(16), + 449: uint8(16), + 450: uint8(16), + 451: uint8(16), + 452: uint8(16), + 453: uint8(16), + 454: uint8(16), + 455: uint8(16), + 456: uint8(16), + 457: uint8(16), + 458: uint8(16), + 459: uint8(16), + 460: uint8(16), + 461: uint8(16), + 462: uint8(16), + 463: uint8(16), + 464: uint8(103), + 465: uint8(104), + 466: uint8(105), + 467: uint8(106), + 468: uint8(16), + 469: uint8(16), + 470: uint8(107), + 471: uint8(108), + 472: uint8(17), + 473: uint8(17), + 474: uint8(109), + 475: uint8(16), + 476: uint8(16), + 477: uint8(16), + 478: uint8(16), + 479: uint8(16), + 480: uint8(16), + 481: uint8(110), + 482: uint8(111), + 483: uint8(16), + 484: uint8(16), + 485: uint8(16), + 486: uint8(16), + 487: uint8(16), + 488: uint8(112), + 489: uint8(113), + 490: uint8(16), + 491: uint8(16), + 492: uint8(114), + 493: uint8(115), + 494: uint8(116), + 495: uint8(16), + 496: uint8(117), + 497: uint8(118), + 498: uint8(119), + 499: uint8(17), + 500: uint8(17), + 501: uint8(17), + 502: uint8(120), + 503: uint8(121), + 504: uint8(122), + 505: uint8(123), + 506: uint8(124), + 507: uint8(16), + 508: uint8(16), + 509: uint8(16), + 510: uint8(16), + 511: uint8(16), + 544: uint8(255), + 545: uint8(255), + 546: uint8(255), + 547: uint8(255), + 548: uint8(255), + 549: uint8(255), + 550: uint8(255), + 551: uint8(255), + 552: uint8(255), + 553: uint8(255), + 554: uint8(255), + 555: uint8(255), + 556: uint8(255), + 557: uint8(255), + 558: uint8(255), + 559: uint8(255), + 560: uint8(255), + 561: uint8(255), + 562: uint8(255), + 563: uint8(255), + 564: uint8(255), + 565: uint8(255), + 566: uint8(255), + 567: uint8(255), + 568: uint8(255), + 569: uint8(255), + 570: uint8(255), + 571: uint8(255), + 572: uint8(255), + 573: uint8(255), + 574: uint8(255), + 575: uint8(255), + 580: uint8(254), + 581: uint8(255), + 583: uint8(252), + 584: uint8(1), + 587: uint8(248), + 588: uint8(1), + 591: uint8(120), + 596: uint8(255), + 597: uint8(251), + 598: uint8(223), + 599: uint8(251), + 602: uint8(128), + 606: uint8(128), + 632: uint8(60), + 634: uint8(252), + 635: uint8(255), + 636: uint8(224), + 637: uint8(175), + 638: uint8(255), + 639: uint8(255), + 640: uint8(255), + 641: uint8(255), + 642: uint8(255), + 643: uint8(255), + 644: uint8(255), + 645: uint8(255), + 646: uint8(255), + 647: uint8(255), + 648: uint8(223), + 649: uint8(255), + 650: uint8(255), + 651: uint8(255), + 652: uint8(255), + 653: uint8(255), + 654: uint8(32), + 655: uint8(64), + 656: uint8(176), + 670: uint8(64), + 688: uint8(252), + 689: uint8(3), + 715: uint8(252), + 721: uint8(230), + 722: uint8(254), + 723: uint8(255), + 724: uint8(255), + 725: uint8(255), + 727: uint8(64), + 728: uint8(73), + 734: uint8(24), + 736: uint8(255), + 737: uint8(255), + 739: uint8(216), + 747: uint8(1), + 749: uint8(60), + 762: uint8(16), + 763: uint8(224), + 764: uint8(1), + 765: uint8(30), + 767: uint8(96), + 768: uint8(255), + 769: uint8(191), + 776: uint8(255), + 777: uint8(7), + 797: uint8(248), + 798: uint8(207), + 799: uint8(227), + 803: uint8(3), + 805: uint8(32), + 806: uint8(255), + 807: uint8(127), + 811: uint8(78), + 826: uint8(8), + 828: uint8(7), + 829: uint8(252), + 839: uint8(16), + 841: uint8(32), + 842: uint8(30), + 844: uint8(48), + 846: uint8(1), + 855: uint8(16), + 857: uint8(32), + 862: uint8(252), + 863: uint8(111), + 871: uint8(16), + 873: uint8(32), + 878: uint8(64), + 887: uint8(16), + 889: uint8(32), + 894: uint8(3), + 895: uint8(224), + 903: uint8(16), + 905: uint8(32), + 910: uint8(253), + 921: uint8(32), + 926: uint8(255), + 927: uint8(7), + 928: uint8(16), + 937: uint8(32), + 942: uint8(128), + 943: uint8(255), + 944: uint8(16), + 951: uint8(16), + 953: uint8(32), + 967: uint8(24), + 969: uint8(160), + 971: uint8(127), + 974: uint8(255), + 975: uint8(3), + 985: uint8(4), + 990: uint8(16), + 997: uint8(128), + 999: uint8(128), + 1000: uint8(192), + 1001: uint8(223), + 1003: uint8(12), + 1015: uint8(4), + 1017: uint8(31), + 1024: uint8(254), + 1025: uint8(255), + 1026: uint8(255), + 1027: uint8(255), + 1029: uint8(252), + 1030: uint8(255), + 1031: uint8(255), + 1040: uint8(252), + 1047: uint8(192), + 1048: uint8(255), + 1049: uint8(223), + 1050: uint8(255), + 1051: uint8(7), + 1062: uint8(128), + 1063: uint8(6), + 1065: uint8(252), + 1075: uint8(192), + 1087: uint8(8), + 1099: uint8(224), + 1100: uint8(255), + 1101: uint8(255), + 1102: uint8(255), + 1103: uint8(31), + 1106: uint8(255), + 1107: uint8(3), + 1120: uint8(1), + 1165: uint8(96), + 1168: uint8(1), + 1171: uint8(24), + 1181: uint8(56), + 1186: uint8(16), + 1190: uint8(112), + 1206: uint8(48), + 1209: uint8(254), + 1210: uint8(127), + 1211: uint8(47), + 1214: uint8(255), + 1215: uint8(3), + 1216: uint8(255), + 1217: uint8(127), + 1255: uint8(14), + 1256: uint8(49), + 1275: uint8(196), + 1276: uint8(255), + 1277: uint8(255), + 1278: uint8(255), + 1279: uint8(255), + 1283: uint8(192), + 1292: uint8(1), + 1294: uint8(224), + 1295: uint8(159), + 1300: uint8(127), + 1301: uint8(63), + 1302: uint8(255), + 1303: uint8(127), + 1318: uint8(16), + 1320: uint8(16), + 1323: uint8(252), + 1324: uint8(255), + 1325: uint8(255), + 1326: uint8(255), + 1327: uint8(31), + 1333: uint8(12), + 1340: uint8(64), + 1342: uint8(12), + 1343: uint8(240), + 1350: uint8(128), + 1351: uint8(248), + 1359: uint8(192), + 1368: uint8(255), + 1370: uint8(255), + 1371: uint8(255), + 1372: uint8(255), + 1373: uint8(33), + 1374: uint8(144), + 1375: uint8(3), + 1400: uint8(255), + 1401: uint8(255), + 1402: uint8(255), + 1403: uint8(255), + 1404: uint8(127), + 1406: uint8(224), + 1407: uint8(251), + 1431: uint8(160), + 1432: uint8(3), + 1433: uint8(224), + 1435: uint8(224), + 1437: uint8(224), + 1439: uint8(96), + 1440: uint8(128), + 1441: uint8(248), + 1442: uint8(255), + 1443: uint8(255), + 1444: uint8(255), + 1445: uint8(252), + 1446: uint8(255), + 1447: uint8(255), + 1448: uint8(255), + 1449: uint8(255), + 1450: uint8(255), + 1451: uint8(127), + 1452: uint8(223), + 1453: uint8(255), + 1454: uint8(241), + 1455: uint8(127), + 1456: uint8(255), + 1457: uint8(127), + 1460: uint8(255), + 1461: uint8(255), + 1462: uint8(255), + 1463: uint8(255), + 1466: uint8(255), + 1467: uint8(255), + 1468: uint8(255), + 1469: uint8(255), + 1470: uint8(1), + 1472: uint8(123), + 1473: uint8(3), + 1474: uint8(208), + 1475: uint8(193), + 1476: uint8(175), + 1477: uint8(66), + 1479: uint8(12), + 1480: uint8(31), + 1481: uint8(188), + 1482: uint8(255), + 1483: uint8(255), + 1489: uint8(14), + 1490: uint8(255), + 1491: uint8(255), + 1492: uint8(255), + 1493: uint8(255), + 1494: uint8(255), + 1495: uint8(255), + 1496: uint8(255), + 1497: uint8(255), + 1498: uint8(255), + 1499: uint8(255), + 1500: uint8(255), + 1501: uint8(255), + 1502: uint8(255), + 1503: uint8(255), + 1504: uint8(255), + 1505: uint8(255), + 1506: uint8(255), + 1507: uint8(255), + 1508: uint8(127), + 1512: uint8(255), + 1513: uint8(7), + 1516: uint8(255), + 1517: uint8(255), + 1518: uint8(255), + 1519: uint8(255), + 1520: uint8(255), + 1521: uint8(255), + 1522: uint8(255), + 1523: uint8(255), + 1524: uint8(255), + 1525: uint8(255), + 1526: uint8(63), + 1533: uint8(252), + 1534: uint8(255), + 1535: uint8(255), + 1536: uint8(255), + 1537: uint8(255), + 1538: uint8(255), + 1539: uint8(255), + 1540: uint8(255), + 1541: uint8(255), + 1542: uint8(255), + 1543: uint8(255), + 1544: uint8(255), + 1545: uint8(255), + 1546: uint8(255), + 1547: uint8(255), + 1548: uint8(255), + 1549: uint8(255), + 1550: uint8(207), + 1551: uint8(255), + 1552: uint8(255), + 1553: uint8(255), + 1554: uint8(63), + 1555: uint8(255), + 1556: uint8(255), + 1557: uint8(255), + 1558: uint8(255), + 1559: uint8(255), + 1560: uint8(255), + 1561: uint8(255), + 1562: uint8(255), + 1563: uint8(255), + 1564: uint8(255), + 1565: uint8(255), + 1566: uint8(255), + 1567: uint8(255), + 1596: uint8(224), + 1597: uint8(135), + 1598: uint8(3), + 1599: uint8(254), + 1614: uint8(1), + 1615: uint8(128), + 1632: uint8(255), + 1633: uint8(255), + 1634: uint8(255), + 1635: uint8(255), + 1636: uint8(255), + 1637: uint8(127), + 1638: uint8(255), + 1639: uint8(255), + 1640: uint8(255), + 1641: uint8(255), + 1648: uint8(255), + 1649: uint8(255), + 1650: uint8(255), + 1651: uint8(251), + 1652: uint8(255), + 1653: uint8(255), + 1654: uint8(255), + 1655: uint8(255), + 1656: uint8(255), + 1657: uint8(255), + 1658: uint8(255), + 1659: uint8(255), + 1660: uint8(255), + 1661: uint8(255), + 1662: uint8(15), + 1664: uint8(255), + 1665: uint8(255), + 1666: uint8(255), + 1667: uint8(255), + 1668: uint8(255), + 1669: uint8(255), + 1670: uint8(255), + 1671: uint8(255), + 1672: uint8(255), + 1673: uint8(255), + 1674: uint8(255), + 1675: uint8(255), + 1676: uint8(255), + 1677: uint8(255), + 1678: uint8(255), + 1679: uint8(255), + 1680: uint8(255), + 1681: uint8(255), + 1682: uint8(255), + 1683: uint8(255), + 1684: uint8(255), + 1685: uint8(255), + 1686: uint8(255), + 1687: uint8(255), + 1688: uint8(255), + 1689: uint8(255), + 1690: uint8(63), + 1694: uint8(255), + 1695: uint8(15), + 1696: uint8(30), + 1697: uint8(255), + 1698: uint8(255), + 1699: uint8(255), + 1700: uint8(1), + 1701: uint8(252), + 1702: uint8(193), + 1703: uint8(224), + 1715: uint8(30), + 1716: uint8(1), + 1727: uint8(8), + 1746: uint8(255), + 1747: uint8(255), + 1752: uint8(255), + 1753: uint8(255), + 1754: uint8(255), + 1755: uint8(255), + 1756: uint8(15), + 1760: uint8(255), + 1761: uint8(255), + 1762: uint8(255), + 1763: uint8(127), + 1764: uint8(255), + 1765: uint8(255), + 1766: uint8(255), + 1767: uint8(255), + 1768: uint8(255), + 1769: uint8(255), + 1770: uint8(255), + 1771: uint8(255), + 1772: uint8(255), + 1773: uint8(255), + 1774: uint8(255), + 1775: uint8(255), + 1776: uint8(255), + 1777: uint8(255), + 1778: uint8(255), + 1779: uint8(255), + 1780: uint8(255), + 1781: uint8(255), + 1782: uint8(255), + 1783: uint8(255), + 1784: uint8(255), + 1785: uint8(255), + 1786: uint8(255), + 1787: uint8(255), + 1788: uint8(255), + 1789: uint8(255), + 1790: uint8(255), + 1791: uint8(255), + 1816: uint8(255), + 1817: uint8(255), + 1818: uint8(255), + 1819: uint8(255), + 1820: uint8(255), + 1821: uint8(255), + 1822: uint8(255), + 1823: uint8(255), + 1842: uint8(255), + 1843: uint8(255), + 1844: uint8(255), + 1845: uint8(255), + 1846: uint8(255), + 1847: uint8(255), + 1848: uint8(127), + 1855: uint8(192), + 1857: uint8(224), + 1869: uint8(128), + 1870: uint8(15), + 1871: uint8(112), + 1886: uint8(255), + 1888: uint8(255), + 1889: uint8(255), + 1890: uint8(127), + 1892: uint8(3), + 1905: uint8(6), + 1920: uint8(64), + 1925: uint8(15), + 1926: uint8(255), + 1927: uint8(3), + 1934: uint8(240), + 1944: uint8(16), + 1945: uint8(192), + 1948: uint8(255), + 1949: uint8(255), + 1950: uint8(3), + 1951: uint8(23), + 1957: uint8(248), + 1962: uint8(8), + 1963: uint8(128), + 1974: uint8(8), + 1976: uint8(255), + 1977: uint8(63), + 1979: uint8(192), + 1995: uint8(240), + 1998: uint8(128), + 1999: uint8(3), + 2007: uint8(128), + 2008: uint8(2), + 2011: uint8(192), + 2014: uint8(67), + 2027: uint8(8), + 2045: uint8(56), + 2048: uint8(1), + 2111: uint8(128), + 2117: uint8(2), + 2134: uint8(252), + 2135: uint8(255), + 2136: uint8(3), + 2151: uint8(192), + 2175: uint8(48), + 2176: uint8(255), + 2177: uint8(255), + 2178: uint8(255), + 2179: uint8(3), + 2180: uint8(255), + 2181: uint8(255), + 2182: uint8(255), + 2183: uint8(255), + 2184: uint8(255), + 2185: uint8(255), + 2186: uint8(247), + 2187: uint8(255), + 2188: uint8(127), + 2189: uint8(15), + 2207: uint8(128), + 2208: uint8(254), + 2209: uint8(255), + 2211: uint8(252), + 2212: uint8(1), + 2215: uint8(248), + 2216: uint8(1), + 2219: uint8(248), + 2220: uint8(63), + 2236: uint8(127), + 2237: uint8(127), + 2239: uint8(48), + 2240: uint8(135), + 2241: uint8(255), + 2242: uint8(255), + 2243: uint8(255), + 2244: uint8(255), + 2245: uint8(255), + 2246: uint8(143), + 2247: uint8(255), + 2254: uint8(224), + 2255: uint8(255), + 2256: uint8(255), + 2257: uint8(127), + 2258: uint8(255), + 2259: uint8(15), + 2260: uint8(1), + 2266: uint8(255), + 2267: uint8(255), + 2268: uint8(255), + 2269: uint8(255), + 2270: uint8(255), + 2271: uint8(63), + 2300: uint8(255), + 2301: uint8(255), + 2302: uint8(255), + 2303: uint8(15), + 2308: uint8(15), + 2323: uint8(128), + 2330: uint8(1), + 2349: uint8(128), + 2378: uint8(128), + 2379: uint8(255), + 2382: uint8(128), + 2383: uint8(255), + 2388: uint8(128), + 2389: uint8(255), + 2399: uint8(248), + 2402: uint8(192), + 2403: uint8(143), + 2407: uint8(128), + 2423: uint8(48), + 2424: uint8(255), + 2425: uint8(255), + 2426: uint8(252), + 2427: uint8(255), + 2428: uint8(255), + 2429: uint8(255), + 2430: uint8(255), + 2431: uint8(255), + 2439: uint8(135), + 2440: uint8(255), + 2441: uint8(1), + 2442: uint8(255), + 2443: uint8(1), + 2447: uint8(224), + 2451: uint8(224), + 2457: uint8(1), + 2460: uint8(96), + 2461: uint8(248), + 2462: uint8(127), + 2471: uint8(254), + 2475: uint8(255), + 2479: uint8(255), + 2483: uint8(30), + 2485: uint8(254), + 2527: uint8(252), + 2540: uint8(255), + 2541: uint8(255), + 2542: uint8(255), + 2543: uint8(127), + 2563: uint8(224), + 2564: uint8(127), + 2568: uint8(192), + 2569: uint8(255), + 2570: uint8(255), + 2571: uint8(3), + 2600: uint8(192), + 2601: uint8(63), + 2602: uint8(252), + 2603: uint8(255), + 2604: uint8(63), + 2607: uint8(128), + 2608: uint8(3), + 2615: uint8(254), + 2616: uint8(3), + 2617: uint8(32), + 2630: uint8(24), + 2632: uint8(15), + 2638: uint8(56), + 2648: uint8(225), + 2649: uint8(63), + 2651: uint8(232), + 2652: uint8(254), + 2653: uint8(255), + 2654: uint8(31), + 2662: uint8(96), + 2663: uint8(63), + 2677: uint8(2), + 2685: uint8(6), + 2695: uint8(24), + 2697: uint8(32), + 2700: uint8(192), + 2701: uint8(31), + 2702: uint8(31), + 2728: uint8(68), + 2729: uint8(248), + 2731: uint8(104), + 2744: uint8(76), + 2775: uint8(128), + 2776: uint8(255), + 2777: uint8(255), + 2778: uint8(255), + 2791: uint8(128), + 2792: uint8(14), + 2796: uint8(255), + 2797: uint8(31), + 2806: uint8(192), + 2821: uint8(8), + 2823: uint8(252), + 2855: uint8(14), + 2877: uint8(252), + 2878: uint8(7), + 2908: uint8(5), + 2918: uint8(24), + 2919: uint8(128), + 2920: uint8(255), + 2931: uint8(223), + 2932: uint8(7), + 2951: uint8(128), + 2952: uint8(62), + 2955: uint8(252), + 2956: uint8(255), + 2957: uint8(31), + 2958: uint8(3), + 2984: uint8(52), + 2994: uint8(128), + 3038: uint8(128), + 3039: uint8(1), + 3064: uint8(255), + 3065: uint8(255), + 3066: uint8(255), + 3067: uint8(255), + 3068: uint8(255), + 3069: uint8(255), + 3070: uint8(3), + 3071: uint8(128), + 3086: uint8(31), + 3110: uint8(255), + 3111: uint8(1), + 3149: uint8(192), + 3166: uint8(63), + 3174: uint8(255), + 3175: uint8(255), + 3176: uint8(48), + 3179: uint8(248), + 3180: uint8(3), + 3216: uint8(255), + 3217: uint8(255), + 3218: uint8(255), + 3219: uint8(7), + 3260: uint8(4), + 3283: uint8(176), + 3284: uint8(15), + 3296: uint8(255), + 3297: uint8(255), + 3298: uint8(255), + 3299: uint8(255), + 3300: uint8(255), + 3301: uint8(255), + 3302: uint8(255), + 3303: uint8(255), + 3304: uint8(255), + 3305: uint8(255), + 3306: uint8(255), + 3307: uint8(255), + 3308: uint8(255), + 3309: uint8(255), + 3310: uint8(255), + 3311: uint8(255), + 3312: uint8(255), + 3313: uint8(255), + 3314: uint8(255), + 3315: uint8(255), + 3316: uint8(255), + 3317: uint8(255), + 3318: uint8(255), + 3319: uint8(255), + 3320: uint8(255), + 3321: uint8(255), + 3322: uint8(255), + 3323: uint8(255), + 3324: uint8(255), + 3325: uint8(255), + 3326: uint8(63), + 3328: uint8(255), + 3329: uint8(255), + 3330: uint8(255), + 3331: uint8(255), + 3332: uint8(127), + 3333: uint8(254), + 3334: uint8(255), + 3335: uint8(255), + 3336: uint8(255), + 3337: uint8(255), + 3338: uint8(255), + 3339: uint8(255), + 3340: uint8(255), + 3341: uint8(255), + 3342: uint8(255), + 3343: uint8(255), + 3344: uint8(255), + 3345: uint8(255), + 3346: uint8(255), + 3347: uint8(255), + 3348: uint8(255), + 3349: uint8(255), + 3350: uint8(255), + 3351: uint8(255), + 3352: uint8(255), + 3353: uint8(255), + 3354: uint8(255), + 3355: uint8(255), + 3356: uint8(255), + 3357: uint8(1), + 3360: uint8(255), + 3361: uint8(255), + 3362: uint8(255), + 3363: uint8(255), + 3364: uint8(255), + 3365: uint8(255), + 3366: uint8(255), + 3367: uint8(255), + 3368: uint8(63), + 3388: uint8(255), + 3389: uint8(255), + 3390: uint8(15), + 3392: uint8(255), + 3393: uint8(255), + 3394: uint8(255), + 3395: uint8(255), + 3396: uint8(255), + 3397: uint8(255), + 3398: uint8(255), + 3399: uint8(255), + 3400: uint8(255), + 3401: uint8(255), + 3402: uint8(127), + 3404: uint8(255), + 3405: uint8(255), + 3406: uint8(255), + 3407: uint8(1), + 3448: uint8(2), + 3451: uint8(8), + 3455: uint8(8), + 3458: uint8(32), + 3462: uint8(32), + 3465: uint8(128), + 3469: uint8(128), + 3473: uint8(2), + 3477: uint8(2), + 3480: uint8(8), + 3488: uint8(255), + 3489: uint8(255), + 3490: uint8(255), + 3491: uint8(255), + 3492: uint8(255), + 3493: uint8(255), + 3494: uint8(255), + 3495: uint8(255), + 3496: uint8(255), + 3497: uint8(255), + 3498: uint8(255), + 3499: uint8(255), + 3500: uint8(255), + 3501: uint8(255), + 3502: uint8(255), + 3503: uint8(255), + 3504: uint8(255), + 3505: uint8(15), + 3507: uint8(248), + 3508: uint8(254), + 3509: uint8(255), + 3526: uint8(127), + 3529: uint8(128), + 3581: uint8(240), + 3583: uint8(128), + 3608: uint8(128), + 3609: uint8(255), + 3610: uint8(127), + 3624: uint8(112), + 3625: uint8(7), + 3627: uint8(192), + 3662: uint8(254), + 3663: uint8(255), + 3664: uint8(255), + 3665: uint8(255), + 3666: uint8(255), + 3667: uint8(255), + 3668: uint8(255), + 3669: uint8(255), + 3670: uint8(31), + 3680: uint8(254), + 3681: uint8(255), + 3682: uint8(255), + 3683: uint8(255), + 3684: uint8(255), + 3685: uint8(255), + 3686: uint8(255), + 3687: uint8(63), + 3742: uint8(3), + 3744: uint8(255), + 3745: uint8(255), + 3746: uint8(255), + 3747: uint8(255), + 3748: uint8(255), + 3749: uint8(15), + 3750: uint8(255), + 3751: uint8(255), + 3752: uint8(255), + 3753: uint8(255), + 3754: uint8(255), + 3755: uint8(255), + 3756: uint8(255), + 3757: uint8(255), + 3758: uint8(255), + 3759: uint8(255), + 3760: uint8(255), + 3761: uint8(255), + 3762: uint8(15), + 3764: uint8(255), + 3765: uint8(127), + 3766: uint8(254), + 3767: uint8(255), + 3768: uint8(254), + 3769: uint8(255), + 3770: uint8(254), + 3771: uint8(255), + 3772: uint8(255), + 3773: uint8(255), + 3774: uint8(63), + 3776: uint8(255), + 3777: uint8(31), + 3778: uint8(255), + 3779: uint8(255), + 3780: uint8(255), + 3781: uint8(255), + 3785: uint8(252), + 3789: uint8(28), + 3793: uint8(252), + 3794: uint8(255), + 3795: uint8(255), + 3796: uint8(255), + 3797: uint8(31), + 3804: uint8(192), + 3805: uint8(255), + 3806: uint8(255), + 3807: uint8(255), + 3808: uint8(7), + 3810: uint8(255), + 3811: uint8(255), + 3812: uint8(255), + 3813: uint8(255), + 3814: uint8(255), + 3815: uint8(15), + 3816: uint8(255), + 3817: uint8(1), + 3818: uint8(3), + 3820: uint8(63), + 3840: uint8(255), + 3841: uint8(255), + 3842: uint8(255), + 3843: uint8(255), + 3844: uint8(255), + 3845: uint8(255), + 3846: uint8(255), + 3847: uint8(255), + 3848: uint8(255), + 3849: uint8(255), + 3850: uint8(255), + 3851: uint8(255), + 3852: uint8(255), + 3853: uint8(255), + 3854: uint8(255), + 3855: uint8(255), + 3856: uint8(255), + 3857: uint8(255), + 3858: uint8(255), + 3859: uint8(255), + 3860: uint8(255), + 3861: uint8(255), + 3862: uint8(255), + 3863: uint8(255), + 3864: uint8(255), + 3865: uint8(255), + 3866: uint8(63), + 3868: uint8(255), + 3869: uint8(31), + 3870: uint8(255), + 3871: uint8(7), + 3872: uint8(255), + 3873: uint8(255), + 3874: uint8(255), + 3875: uint8(255), + 3876: uint8(255), + 3877: uint8(255), + 3878: uint8(255), + 3879: uint8(255), + 3880: uint8(255), + 3881: uint8(255), + 3882: uint8(255), + 3883: uint8(255), + 3884: uint8(255), + 3885: uint8(255), + 3886: uint8(15), + 3888: uint8(255), + 3889: uint8(255), + 3890: uint8(255), + 3891: uint8(255), + 3892: uint8(255), + 3893: uint8(255), + 3894: uint8(255), + 3895: uint8(255), + 3896: uint8(255), + 3897: uint8(255), + 3898: uint8(255), + 3899: uint8(1), + 3900: uint8(255), + 3901: uint8(15), + 3904: uint8(255), + 3905: uint8(15), + 3906: uint8(255), + 3907: uint8(255), + 3908: uint8(255), + 3909: uint8(255), + 3910: uint8(255), + 3911: uint8(255), + 3912: uint8(255), + 3914: uint8(255), + 3915: uint8(3), + 3916: uint8(255), + 3917: uint8(255), + 3918: uint8(255), + 3919: uint8(255), + 3920: uint8(255), + 3922: uint8(255), + 3923: uint8(255), + 3924: uint8(255), + 3925: uint8(63), + 3936: uint8(255), + 3937: uint8(239), + 3938: uint8(255), + 3939: uint8(255), + 3940: uint8(255), + 3941: uint8(255), + 3942: uint8(255), + 3943: uint8(255), + 3944: uint8(255), + 3945: uint8(255), + 3946: uint8(255), + 3947: uint8(255), + 3948: uint8(255), + 3949: uint8(255), + 3950: uint8(123), + 3951: uint8(252), + 3952: uint8(255), + 3953: uint8(255), + 3954: uint8(255), + 3955: uint8(255), + 3956: uint8(231), + 3957: uint8(199), + 3958: uint8(255), + 3959: uint8(255), + 3960: uint8(255), + 3961: uint8(231), + 3962: uint8(255), + 3963: uint8(255), + 3964: uint8(255), + 3965: uint8(255), + 3966: uint8(255), + 3967: uint8(255), + 3968: uint8(255), + 3969: uint8(255), + 3970: uint8(255), + 3971: uint8(255), + 3972: uint8(255), + 3973: uint8(255), + 3974: uint8(255), + 3975: uint8(255), + 3976: uint8(255), + 3977: uint8(255), + 3978: uint8(15), + 3980: uint8(255), + 3981: uint8(63), + 3982: uint8(15), + 3983: uint8(7), + 3984: uint8(7), + 3986: uint8(63), +} + +func Xiswpunct(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + if wc < uint32(0x20000) { + return Int32FromUint8(_table4[Uint32FromInt32(Int32FromUint8(_table4[wc>>int32(8)])*int32(32))+wc&uint32(255)>>int32(3)]) >> (wc & uint32(7)) & int32(1) + } + return 0 +} + +func X__iswpunct_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswpunct(tls, c) +} + +func Xiswpunct_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswpunct_l(tls, c, l) +} + +type Tmbstate_t = struct { + F__opaque1 uint32 + F__opaque2 uint32 +} + +type t__mbstate_t = Tmbstate_t + +/* Our definition of whitespace is the Unicode White_Space property, + * minus non-breaking spaces (U+00A0, U+2007, and U+202F) and script- + * specific characters with non-blank glyphs (U+1680 and U+180E). */ + +func Xiswspace(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(wc != 0 && Xwcschr(tls, uintptr(unsafe.Pointer(&_spaces)), wc) != 0) +} + +var _spaces = [22]Twchar_t{ + 0: uint32(' '), + 1: uint32('\t'), + 2: uint32('\n'), + 3: uint32('\r'), + 4: uint32(11), + 5: uint32(12), + 6: uint32(0x0085), + 7: uint32(0x2000), + 8: uint32(0x2001), + 9: uint32(0x2002), + 10: uint32(0x2003), + 11: uint32(0x2004), + 12: uint32(0x2005), + 13: uint32(0x2006), + 14: uint32(0x2008), + 15: uint32(0x2009), + 16: uint32(0x200a), + 17: uint32(0x2028), + 18: uint32(0x2029), + 19: uint32(0x205f), + 20: uint32(0x3000), +} + +func X__iswspace_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswspace(tls, c) +} + +func Xiswspace_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswspace_l(tls, c, l) +} + +func Xiswupper(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(Xtowlower(tls, wc) != wc) +} + +func X__iswupper_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswupper(tls, c) +} + +func Xiswupper_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswupper_l(tls, c, l) +} + +func Xiswxdigit(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(wc-Uint32FromUint8('0') < uint32(10) || wc|Uint32FromInt32(32)-Uint32FromUint8('a') < uint32(6)) +} + +func X__iswxdigit_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswxdigit(tls, c) +} + +func Xiswxdigit_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswxdigit_l(tls, c, l) +} + +func Xisxdigit(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(BoolInt32(Uint32FromInt32(c)-uint32('0') < uint32(10)) != 0 || Uint32FromInt32(c)|uint32(32)-uint32('a') < uint32(6)) +} + +func X__isxdigit_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xisxdigit(tls, c) +} + +func Xisxdigit_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__isxdigit_l(tls, c, l) +} + +// C documentation +// +// /* nonsense function that should NEVER be used! */ +func Xtoascii(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return c & int32(0x7f) +} + +func Xtolower(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + if BoolInt32(Uint32FromInt32(c)-uint32('A') < uint32(26)) != 0 { + return c | int32(32) + } + return c +} + +func X__tolower_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xtolower(tls, c) +} + +func Xtolower_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__tolower_l(tls, c, l) +} + +func Xtoupper(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + if BoolInt32(Uint32FromInt32(c)-uint32('a') < uint32(26)) != 0 { + return c & int32(0x5f) + } + return c +} + +func X__toupper_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xtoupper(tls, c) +} + +func Xtoupper_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__toupper_l(tls, c, l) +} + +var _tab1 = [2666]uint8{ + 0: uint8(7), + 1: uint8(8), + 2: uint8(9), + 3: uint8(10), + 4: uint8(11), + 5: uint8(12), + 6: uint8(6), + 7: uint8(6), + 8: uint8(6), + 9: uint8(6), + 10: uint8(6), + 11: uint8(6), + 12: uint8(6), + 13: uint8(6), + 14: uint8(6), + 15: uint8(6), + 16: uint8(13), + 17: uint8(6), + 18: uint8(6), + 19: uint8(14), + 20: uint8(6), + 21: uint8(6), + 22: uint8(6), + 23: uint8(6), + 24: uint8(6), + 25: uint8(6), + 26: uint8(6), + 27: uint8(6), + 28: uint8(15), + 29: uint8(16), + 30: uint8(17), + 31: uint8(18), + 32: uint8(6), + 33: uint8(19), + 34: uint8(6), + 35: uint8(6), + 36: uint8(6), + 37: uint8(6), + 38: uint8(6), + 39: uint8(6), + 40: uint8(6), + 41: uint8(6), + 42: uint8(6), + 43: uint8(6), + 44: uint8(20), + 45: uint8(21), + 46: uint8(6), + 47: uint8(6), + 48: uint8(6), + 49: uint8(6), + 50: uint8(6), + 51: uint8(6), + 52: uint8(6), + 53: uint8(6), + 54: uint8(6), + 55: uint8(6), + 56: uint8(6), + 57: uint8(6), + 58: uint8(6), + 59: uint8(6), + 60: uint8(6), + 61: uint8(6), + 62: uint8(6), + 63: uint8(6), + 64: uint8(6), + 65: uint8(6), + 66: uint8(6), + 67: uint8(6), + 68: uint8(6), + 69: uint8(6), + 70: uint8(6), + 71: uint8(6), + 72: uint8(6), + 73: uint8(6), + 74: uint8(6), + 75: uint8(6), + 76: uint8(6), + 77: uint8(6), + 78: uint8(6), + 79: uint8(6), + 80: uint8(6), + 81: uint8(6), + 82: uint8(6), + 83: uint8(6), + 84: uint8(6), + 85: uint8(6), + 86: uint8(6), + 87: uint8(6), + 88: uint8(6), + 89: uint8(6), + 90: uint8(6), + 91: uint8(6), + 92: uint8(6), + 93: uint8(6), + 94: uint8(6), + 95: uint8(6), + 96: uint8(6), + 97: uint8(6), + 98: uint8(6), + 99: uint8(6), + 100: uint8(6), + 101: uint8(6), + 102: uint8(6), + 103: uint8(6), + 104: uint8(6), + 105: uint8(6), + 106: uint8(6), + 107: uint8(6), + 108: uint8(6), + 109: uint8(6), + 110: uint8(6), + 111: uint8(6), + 112: uint8(6), + 113: uint8(6), + 114: uint8(6), + 115: uint8(6), + 116: uint8(6), + 117: uint8(6), + 118: uint8(6), + 119: uint8(6), + 120: uint8(6), + 121: uint8(6), + 122: uint8(6), + 123: uint8(6), + 124: uint8(6), + 125: uint8(6), + 126: uint8(6), + 127: uint8(6), + 128: uint8(6), + 129: uint8(6), + 130: uint8(6), + 131: uint8(6), + 132: uint8(6), + 133: uint8(6), + 134: uint8(6), + 135: uint8(6), + 136: uint8(6), + 137: uint8(6), + 138: uint8(6), + 139: uint8(6), + 140: uint8(6), + 141: uint8(6), + 142: uint8(6), + 143: uint8(6), + 144: uint8(6), + 145: uint8(6), + 146: uint8(6), + 147: uint8(6), + 148: uint8(6), + 149: uint8(6), + 150: uint8(6), + 151: uint8(6), + 152: uint8(6), + 153: uint8(6), + 154: uint8(6), + 155: uint8(6), + 156: uint8(6), + 157: uint8(6), + 158: uint8(6), + 159: uint8(6), + 160: uint8(6), + 161: uint8(6), + 162: uint8(6), + 163: uint8(6), + 164: uint8(6), + 165: uint8(6), + 166: uint8(22), + 167: uint8(23), + 168: uint8(6), + 169: uint8(6), + 170: uint8(6), + 171: uint8(24), + 172: uint8(6), + 173: uint8(6), + 174: uint8(6), + 175: uint8(6), + 176: uint8(6), + 177: uint8(6), + 178: uint8(6), + 179: uint8(6), + 180: uint8(6), + 181: uint8(6), + 182: uint8(6), + 183: uint8(6), + 184: uint8(6), + 185: uint8(6), + 186: uint8(6), + 187: uint8(6), + 188: uint8(6), + 189: uint8(6), + 190: uint8(6), + 191: uint8(6), + 192: uint8(6), + 193: uint8(6), + 194: uint8(6), + 195: uint8(6), + 196: uint8(6), + 197: uint8(6), + 198: uint8(6), + 199: uint8(6), + 200: uint8(6), + 201: uint8(6), + 202: uint8(6), + 203: uint8(6), + 204: uint8(6), + 205: uint8(6), + 206: uint8(6), + 207: uint8(6), + 208: uint8(6), + 209: uint8(6), + 210: uint8(6), + 211: uint8(6), + 212: uint8(6), + 213: uint8(6), + 214: uint8(6), + 215: uint8(6), + 216: uint8(6), + 217: uint8(6), + 218: uint8(6), + 219: uint8(6), + 220: uint8(6), + 221: uint8(6), + 222: uint8(6), + 223: uint8(6), + 224: uint8(6), + 225: uint8(6), + 226: uint8(6), + 227: uint8(6), + 228: uint8(6), + 229: uint8(6), + 230: uint8(6), + 231: uint8(6), + 232: uint8(6), + 233: uint8(6), + 234: uint8(6), + 235: uint8(6), + 236: uint8(6), + 237: uint8(6), + 238: uint8(6), + 239: uint8(6), + 240: uint8(6), + 241: uint8(6), + 242: uint8(6), + 243: uint8(6), + 244: uint8(6), + 245: uint8(6), + 246: uint8(6), + 247: uint8(6), + 248: uint8(6), + 249: uint8(6), + 250: uint8(6), + 251: uint8(6), + 252: uint8(6), + 253: uint8(6), + 254: uint8(6), + 255: uint8(25), + 256: uint8(6), + 257: uint8(6), + 258: uint8(6), + 259: uint8(6), + 260: uint8(26), + 261: uint8(6), + 262: uint8(6), + 263: uint8(6), + 264: uint8(6), + 265: uint8(6), + 266: uint8(6), + 267: uint8(6), + 268: uint8(27), + 269: uint8(6), + 270: uint8(6), + 271: uint8(6), + 272: uint8(6), + 273: uint8(6), + 274: uint8(6), + 275: uint8(6), + 276: uint8(6), + 277: uint8(6), + 278: uint8(6), + 279: uint8(6), + 280: uint8(28), + 281: uint8(6), + 282: uint8(6), + 283: uint8(6), + 284: uint8(6), + 285: uint8(6), + 286: uint8(6), + 287: uint8(6), + 288: uint8(6), + 289: uint8(6), + 290: uint8(6), + 291: uint8(6), + 292: uint8(6), + 293: uint8(6), + 294: uint8(6), + 295: uint8(6), + 296: uint8(6), + 297: uint8(6), + 298: uint8(6), + 299: uint8(6), + 300: uint8(6), + 301: uint8(6), + 302: uint8(6), + 303: uint8(6), + 304: uint8(6), + 305: uint8(6), + 306: uint8(6), + 307: uint8(6), + 308: uint8(6), + 309: uint8(6), + 310: uint8(6), + 311: uint8(6), + 312: uint8(6), + 313: uint8(6), + 314: uint8(6), + 315: uint8(6), + 316: uint8(6), + 317: uint8(6), + 318: uint8(6), + 319: uint8(6), + 320: uint8(6), + 321: uint8(6), + 322: uint8(6), + 323: uint8(6), + 324: uint8(6), + 325: uint8(6), + 326: uint8(6), + 327: uint8(6), + 328: uint8(6), + 329: uint8(6), + 330: uint8(6), + 331: uint8(6), + 332: uint8(6), + 333: uint8(6), + 334: uint8(6), + 335: uint8(6), + 336: uint8(6), + 337: uint8(6), + 338: uint8(6), + 339: uint8(6), + 340: uint8(6), + 341: uint8(6), + 342: uint8(6), + 343: uint8(6), + 344: uint8(6), + 345: uint8(6), + 346: uint8(6), + 347: uint8(6), + 348: uint8(6), + 349: uint8(6), + 350: uint8(6), + 351: uint8(6), + 352: uint8(6), + 353: uint8(6), + 354: uint8(6), + 355: uint8(6), + 356: uint8(6), + 357: uint8(6), + 358: uint8(6), + 359: uint8(6), + 360: uint8(6), + 361: uint8(6), + 362: uint8(6), + 363: uint8(6), + 364: uint8(6), + 365: uint8(6), + 366: uint8(29), + 367: uint8(6), + 368: uint8(6), + 369: uint8(6), + 370: uint8(6), + 371: uint8(6), + 372: uint8(6), + 373: uint8(6), + 374: uint8(6), + 375: uint8(6), + 376: uint8(6), + 377: uint8(6), + 378: uint8(6), + 379: uint8(6), + 380: uint8(6), + 381: uint8(6), + 382: uint8(6), + 383: uint8(6), + 384: uint8(6), + 385: uint8(6), + 386: uint8(6), + 387: uint8(6), + 388: uint8(6), + 389: uint8(6), + 390: uint8(6), + 391: uint8(6), + 392: uint8(6), + 393: uint8(6), + 394: uint8(6), + 395: uint8(6), + 396: uint8(6), + 397: uint8(6), + 398: uint8(6), + 399: uint8(6), + 400: uint8(6), + 401: uint8(6), + 402: uint8(6), + 403: uint8(6), + 404: uint8(6), + 405: uint8(6), + 406: uint8(6), + 407: uint8(6), + 408: uint8(6), + 409: uint8(6), + 410: uint8(6), + 411: uint8(6), + 412: uint8(6), + 413: uint8(6), + 414: uint8(6), + 415: uint8(6), + 416: uint8(6), + 417: uint8(6), + 418: uint8(6), + 419: uint8(6), + 420: uint8(6), + 421: uint8(6), + 422: uint8(6), + 423: uint8(6), + 424: uint8(6), + 425: uint8(6), + 426: uint8(6), + 427: uint8(6), + 428: uint8(6), + 429: uint8(6), + 430: uint8(6), + 431: uint8(6), + 432: uint8(6), + 433: uint8(6), + 434: uint8(6), + 435: uint8(6), + 436: uint8(6), + 437: uint8(6), + 438: uint8(6), + 439: uint8(6), + 440: uint8(6), + 441: uint8(6), + 442: uint8(6), + 443: uint8(6), + 444: uint8(6), + 445: uint8(6), + 446: uint8(6), + 447: uint8(6), + 448: uint8(6), + 449: uint8(6), + 450: uint8(6), + 451: uint8(6), + 452: uint8(6), + 453: uint8(6), + 454: uint8(6), + 455: uint8(6), + 456: uint8(6), + 457: uint8(6), + 458: uint8(6), + 459: uint8(6), + 460: uint8(6), + 461: uint8(6), + 462: uint8(6), + 463: uint8(6), + 464: uint8(6), + 465: uint8(6), + 466: uint8(6), + 467: uint8(6), + 468: uint8(6), + 469: uint8(6), + 470: uint8(6), + 471: uint8(6), + 472: uint8(6), + 473: uint8(6), + 474: uint8(6), + 475: uint8(6), + 476: uint8(6), + 477: uint8(6), + 478: uint8(6), + 479: uint8(6), + 480: uint8(6), + 481: uint8(6), + 482: uint8(6), + 483: uint8(6), + 484: uint8(6), + 485: uint8(6), + 486: uint8(6), + 487: uint8(6), + 488: uint8(6), + 489: uint8(30), + 490: uint8(6), + 491: uint8(6), + 492: uint8(6), + 493: uint8(6), + 494: uint8(6), + 495: uint8(6), + 496: uint8(6), + 497: uint8(6), + 498: uint8(6), + 499: uint8(6), + 500: uint8(6), + 501: uint8(6), + 502: uint8(6), + 503: uint8(6), + 504: uint8(6), + 505: uint8(6), + 506: uint8(6), + 507: uint8(6), + 508: uint8(6), + 509: uint8(6), + 510: uint8(6), + 511: uint8(6), + 623: uint8(36), + 624: uint8(43), + 625: uint8(43), + 626: uint8(43), + 627: uint8(43), + 628: uint8(43), + 629: uint8(43), + 630: uint8(43), + 631: uint8(43), + 632: uint8(1), + 634: uint8(84), + 635: uint8(86), + 636: uint8(86), + 637: uint8(86), + 638: uint8(86), + 639: uint8(86), + 640: uint8(86), + 641: uint8(86), + 642: uint8(86), + 662: uint8(24), + 666: uint8(43), + 667: uint8(43), + 668: uint8(43), + 669: uint8(43), + 670: uint8(43), + 671: uint8(43), + 672: uint8(43), + 673: uint8(7), + 674: uint8(43), + 675: uint8(43), + 676: uint8(91), + 677: uint8(86), + 678: uint8(86), + 679: uint8(86), + 680: uint8(86), + 681: uint8(86), + 682: uint8(86), + 683: uint8(86), + 684: uint8(74), + 685: uint8(86), + 686: uint8(86), + 687: uint8(5), + 688: uint8(49), + 689: uint8(80), + 690: uint8(49), + 691: uint8(80), + 692: uint8(49), + 693: uint8(80), + 694: uint8(49), + 695: uint8(80), + 696: uint8(49), + 697: uint8(80), + 698: uint8(49), + 699: uint8(80), + 700: uint8(49), + 701: uint8(80), + 702: uint8(49), + 703: uint8(80), + 704: uint8(36), + 705: uint8(80), + 706: uint8(121), + 707: uint8(49), + 708: uint8(80), + 709: uint8(49), + 710: uint8(80), + 711: uint8(49), + 712: uint8(56), + 713: uint8(80), + 714: uint8(49), + 715: uint8(80), + 716: uint8(49), + 717: uint8(80), + 718: uint8(49), + 719: uint8(80), + 720: uint8(49), + 721: uint8(80), + 722: uint8(49), + 723: uint8(80), + 724: uint8(49), + 725: uint8(80), + 726: uint8(49), + 727: uint8(80), + 728: uint8(78), + 729: uint8(49), + 730: uint8(2), + 731: uint8(78), + 732: uint8(13), + 733: uint8(13), + 734: uint8(78), + 735: uint8(3), + 736: uint8(78), + 738: uint8(36), + 739: uint8(110), + 741: uint8(78), + 742: uint8(49), + 743: uint8(38), + 744: uint8(110), + 745: uint8(81), + 746: uint8(78), + 747: uint8(36), + 748: uint8(80), + 749: uint8(78), + 750: uint8(57), + 751: uint8(20), + 752: uint8(129), + 753: uint8(27), + 754: uint8(29), + 755: uint8(29), + 756: uint8(83), + 757: uint8(49), + 758: uint8(80), + 759: uint8(49), + 760: uint8(80), + 761: uint8(13), + 762: uint8(49), + 763: uint8(80), + 764: uint8(49), + 765: uint8(80), + 766: uint8(49), + 767: uint8(80), + 768: uint8(27), + 769: uint8(83), + 770: uint8(36), + 771: uint8(80), + 772: uint8(49), + 773: uint8(2), + 774: uint8(92), + 775: uint8(123), + 776: uint8(92), + 777: uint8(123), + 778: uint8(92), + 779: uint8(123), + 780: uint8(92), + 781: uint8(123), + 782: uint8(92), + 783: uint8(123), + 784: uint8(20), + 785: uint8(121), + 786: uint8(92), + 787: uint8(123), + 788: uint8(92), + 789: uint8(123), + 790: uint8(92), + 791: uint8(45), + 792: uint8(43), + 793: uint8(73), + 794: uint8(3), + 795: uint8(72), + 796: uint8(3), + 797: uint8(120), + 798: uint8(92), + 799: uint8(123), + 800: uint8(20), + 802: uint8(150), + 803: uint8(10), + 804: uint8(1), + 805: uint8(43), + 806: uint8(40), + 807: uint8(6), + 808: uint8(6), + 810: uint8(42), + 811: uint8(6), + 812: uint8(42), + 813: uint8(42), + 814: uint8(43), + 815: uint8(7), + 816: uint8(187), + 817: uint8(181), + 818: uint8(43), + 819: uint8(30), + 821: uint8(43), + 822: uint8(7), + 823: uint8(43), + 824: uint8(43), + 825: uint8(43), + 826: uint8(1), + 827: uint8(43), + 828: uint8(43), + 829: uint8(43), + 830: uint8(43), + 831: uint8(43), + 832: uint8(43), + 833: uint8(43), + 834: uint8(43), + 835: uint8(43), + 836: uint8(43), + 837: uint8(43), + 838: uint8(43), + 839: uint8(43), + 840: uint8(43), + 841: uint8(43), + 842: uint8(43), + 843: uint8(43), + 844: uint8(43), + 845: uint8(43), + 846: uint8(43), + 847: uint8(43), + 848: uint8(43), + 849: uint8(43), + 850: uint8(43), + 851: uint8(43), + 852: uint8(43), + 853: uint8(43), + 854: uint8(43), + 855: uint8(43), + 856: uint8(43), + 857: uint8(43), + 858: uint8(43), + 859: uint8(1), + 860: uint8(43), + 861: uint8(43), + 862: uint8(43), + 863: uint8(43), + 864: uint8(43), + 865: uint8(43), + 866: uint8(43), + 867: uint8(43), + 868: uint8(43), + 869: uint8(43), + 870: uint8(43), + 871: uint8(43), + 872: uint8(43), + 873: uint8(43), + 874: uint8(43), + 875: uint8(43), + 876: uint8(43), + 877: uint8(43), + 878: uint8(43), + 879: uint8(43), + 880: uint8(43), + 881: uint8(43), + 882: uint8(43), + 883: uint8(42), + 884: uint8(43), + 885: uint8(43), + 886: uint8(43), + 887: uint8(43), + 888: uint8(43), + 889: uint8(43), + 890: uint8(43), + 891: uint8(43), + 892: uint8(43), + 893: uint8(43), + 894: uint8(43), + 895: uint8(43), + 896: uint8(43), + 897: uint8(205), + 898: uint8(70), + 899: uint8(205), + 900: uint8(43), + 902: uint8(37), + 903: uint8(43), + 904: uint8(7), + 905: uint8(1), + 906: uint8(6), + 907: uint8(1), + 908: uint8(85), + 909: uint8(86), + 910: uint8(86), + 911: uint8(86), + 912: uint8(86), + 913: uint8(86), + 914: uint8(85), + 915: uint8(86), + 916: uint8(86), + 917: uint8(2), + 918: uint8(36), + 919: uint8(129), + 920: uint8(129), + 921: uint8(129), + 922: uint8(129), + 923: uint8(129), + 924: uint8(21), + 925: uint8(129), + 926: uint8(129), + 927: uint8(129), + 930: uint8(43), + 932: uint8(178), + 933: uint8(209), + 934: uint8(178), + 935: uint8(209), + 936: uint8(178), + 937: uint8(209), + 938: uint8(178), + 939: uint8(209), + 942: uint8(205), + 943: uint8(204), + 944: uint8(1), + 946: uint8(215), + 947: uint8(215), + 948: uint8(215), + 949: uint8(215), + 950: uint8(215), + 951: uint8(131), + 952: uint8(129), + 953: uint8(129), + 954: uint8(129), + 955: uint8(129), + 956: uint8(129), + 957: uint8(129), + 958: uint8(129), + 959: uint8(129), + 960: uint8(129), + 961: uint8(129), + 962: uint8(172), + 963: uint8(172), + 964: uint8(172), + 965: uint8(172), + 966: uint8(172), + 967: uint8(172), + 968: uint8(172), + 969: uint8(172), + 970: uint8(172), + 971: uint8(172), + 972: uint8(28), + 978: uint8(49), + 979: uint8(80), + 980: uint8(49), + 981: uint8(80), + 982: uint8(49), + 983: uint8(80), + 984: uint8(49), + 985: uint8(80), + 986: uint8(49), + 987: uint8(80), + 988: uint8(49), + 989: uint8(2), + 992: uint8(49), + 993: uint8(80), + 994: uint8(49), + 995: uint8(80), + 996: uint8(49), + 997: uint8(80), + 998: uint8(49), + 999: uint8(80), + 1000: uint8(49), + 1001: uint8(80), + 1002: uint8(49), + 1003: uint8(80), + 1004: uint8(49), + 1005: uint8(80), + 1006: uint8(49), + 1007: uint8(80), + 1008: uint8(49), + 1009: uint8(80), + 1010: uint8(78), + 1011: uint8(49), + 1012: uint8(80), + 1013: uint8(49), + 1014: uint8(80), + 1015: uint8(78), + 1016: uint8(49), + 1017: uint8(80), + 1018: uint8(49), + 1019: uint8(80), + 1020: uint8(49), + 1021: uint8(80), + 1022: uint8(49), + 1023: uint8(80), + 1024: uint8(49), + 1025: uint8(80), + 1026: uint8(49), + 1027: uint8(80), + 1028: uint8(49), + 1029: uint8(80), + 1030: uint8(49), + 1031: uint8(2), + 1032: uint8(135), + 1033: uint8(166), + 1034: uint8(135), + 1035: uint8(166), + 1036: uint8(135), + 1037: uint8(166), + 1038: uint8(135), + 1039: uint8(166), + 1040: uint8(135), + 1041: uint8(166), + 1042: uint8(135), + 1043: uint8(166), + 1044: uint8(135), + 1045: uint8(166), + 1046: uint8(135), + 1047: uint8(166), + 1048: uint8(42), + 1049: uint8(43), + 1050: uint8(43), + 1051: uint8(43), + 1052: uint8(43), + 1053: uint8(43), + 1054: uint8(43), + 1055: uint8(43), + 1056: uint8(43), + 1057: uint8(43), + 1058: uint8(43), + 1059: uint8(43), + 1060: uint8(43), + 1064: uint8(84), + 1065: uint8(86), + 1066: uint8(86), + 1067: uint8(86), + 1068: uint8(86), + 1069: uint8(86), + 1070: uint8(86), + 1071: uint8(86), + 1072: uint8(86), + 1073: uint8(86), + 1074: uint8(86), + 1075: uint8(86), + 1076: uint8(86), + 1171: uint8(84), + 1172: uint8(86), + 1173: uint8(86), + 1174: uint8(86), + 1175: uint8(86), + 1176: uint8(86), + 1177: uint8(86), + 1178: uint8(86), + 1179: uint8(86), + 1180: uint8(86), + 1181: uint8(86), + 1182: uint8(86), + 1183: uint8(86), + 1184: uint8(12), + 1186: uint8(12), + 1187: uint8(42), + 1188: uint8(43), + 1189: uint8(43), + 1190: uint8(43), + 1191: uint8(43), + 1192: uint8(43), + 1193: uint8(43), + 1194: uint8(43), + 1195: uint8(43), + 1196: uint8(43), + 1197: uint8(43), + 1198: uint8(43), + 1199: uint8(43), + 1200: uint8(43), + 1201: uint8(7), + 1202: uint8(42), + 1203: uint8(1), + 1257: uint8(42), + 1258: uint8(43), + 1259: uint8(43), + 1260: uint8(43), + 1261: uint8(43), + 1262: uint8(43), + 1263: uint8(43), + 1264: uint8(43), + 1265: uint8(43), + 1266: uint8(43), + 1267: uint8(43), + 1268: uint8(43), + 1269: uint8(43), + 1270: uint8(43), + 1271: uint8(43), + 1272: uint8(43), + 1273: uint8(43), + 1274: uint8(43), + 1275: uint8(43), + 1276: uint8(43), + 1277: uint8(43), + 1278: uint8(43), + 1279: uint8(43), + 1280: uint8(43), + 1281: uint8(43), + 1282: uint8(43), + 1283: uint8(43), + 1284: uint8(86), + 1285: uint8(86), + 1286: uint8(108), + 1287: uint8(129), + 1288: uint8(21), + 1290: uint8(43), + 1291: uint8(43), + 1292: uint8(43), + 1293: uint8(43), + 1294: uint8(43), + 1295: uint8(43), + 1296: uint8(43), + 1297: uint8(43), + 1298: uint8(43), + 1299: uint8(43), + 1300: uint8(43), + 1301: uint8(43), + 1302: uint8(43), + 1303: uint8(43), + 1304: uint8(43), + 1305: uint8(43), + 1306: uint8(43), + 1307: uint8(43), + 1308: uint8(43), + 1309: uint8(43), + 1310: uint8(43), + 1311: uint8(43), + 1312: uint8(43), + 1313: uint8(43), + 1314: uint8(43), + 1315: uint8(43), + 1316: uint8(43), + 1317: uint8(43), + 1318: uint8(43), + 1319: uint8(43), + 1320: uint8(43), + 1321: uint8(43), + 1322: uint8(43), + 1323: uint8(43), + 1324: uint8(43), + 1325: uint8(43), + 1326: uint8(43), + 1327: uint8(43), + 1328: uint8(43), + 1329: uint8(43), + 1330: uint8(43), + 1331: uint8(43), + 1332: uint8(7), + 1333: uint8(108), + 1334: uint8(3), + 1335: uint8(65), + 1336: uint8(43), + 1337: uint8(43), + 1338: uint8(86), + 1339: uint8(86), + 1340: uint8(86), + 1341: uint8(86), + 1342: uint8(86), + 1343: uint8(86), + 1344: uint8(86), + 1345: uint8(86), + 1346: uint8(86), + 1347: uint8(86), + 1348: uint8(86), + 1349: uint8(86), + 1350: uint8(86), + 1351: uint8(86), + 1352: uint8(44), + 1353: uint8(86), + 1354: uint8(43), + 1355: uint8(43), + 1356: uint8(43), + 1357: uint8(43), + 1358: uint8(43), + 1359: uint8(43), + 1360: uint8(43), + 1361: uint8(43), + 1362: uint8(43), + 1363: uint8(43), + 1364: uint8(43), + 1365: uint8(43), + 1366: uint8(43), + 1367: uint8(43), + 1368: uint8(43), + 1369: uint8(43), + 1370: uint8(43), + 1371: uint8(43), + 1372: uint8(43), + 1373: uint8(43), + 1374: uint8(43), + 1375: uint8(1), + 1416: uint8(12), + 1417: uint8(108), + 1423: uint8(6), + 1462: uint8(6), + 1463: uint8(37), + 1464: uint8(6), + 1465: uint8(37), + 1466: uint8(6), + 1467: uint8(37), + 1468: uint8(6), + 1469: uint8(37), + 1470: uint8(6), + 1471: uint8(37), + 1472: uint8(6), + 1473: uint8(37), + 1474: uint8(6), + 1475: uint8(37), + 1476: uint8(6), + 1477: uint8(37), + 1478: uint8(6), + 1479: uint8(37), + 1480: uint8(6), + 1481: uint8(37), + 1482: uint8(6), + 1483: uint8(37), + 1484: uint8(6), + 1485: uint8(37), + 1486: uint8(6), + 1487: uint8(37), + 1488: uint8(6), + 1489: uint8(37), + 1490: uint8(6), + 1491: uint8(37), + 1492: uint8(6), + 1493: uint8(37), + 1494: uint8(6), + 1495: uint8(37), + 1496: uint8(6), + 1497: uint8(37), + 1498: uint8(6), + 1499: uint8(37), + 1500: uint8(6), + 1501: uint8(37), + 1502: uint8(6), + 1503: uint8(37), + 1504: uint8(6), + 1505: uint8(37), + 1506: uint8(6), + 1507: uint8(37), + 1508: uint8(6), + 1509: uint8(37), + 1510: uint8(6), + 1511: uint8(37), + 1512: uint8(86), + 1513: uint8(122), + 1514: uint8(158), + 1515: uint8(38), + 1516: uint8(6), + 1517: uint8(37), + 1518: uint8(6), + 1519: uint8(37), + 1520: uint8(6), + 1521: uint8(37), + 1522: uint8(6), + 1523: uint8(37), + 1524: uint8(6), + 1525: uint8(37), + 1526: uint8(6), + 1527: uint8(37), + 1528: uint8(6), + 1529: uint8(37), + 1530: uint8(6), + 1531: uint8(37), + 1532: uint8(6), + 1533: uint8(37), + 1534: uint8(6), + 1535: uint8(37), + 1536: uint8(6), + 1537: uint8(37), + 1538: uint8(6), + 1539: uint8(37), + 1540: uint8(6), + 1541: uint8(37), + 1542: uint8(6), + 1543: uint8(37), + 1544: uint8(6), + 1545: uint8(37), + 1546: uint8(6), + 1547: uint8(1), + 1548: uint8(43), + 1549: uint8(43), + 1550: uint8(79), + 1551: uint8(86), + 1552: uint8(86), + 1553: uint8(44), + 1554: uint8(43), + 1555: uint8(127), + 1556: uint8(86), + 1557: uint8(86), + 1558: uint8(57), + 1559: uint8(43), + 1560: uint8(43), + 1561: uint8(85), + 1562: uint8(86), + 1563: uint8(86), + 1564: uint8(43), + 1565: uint8(43), + 1566: uint8(79), + 1567: uint8(86), + 1568: uint8(86), + 1569: uint8(44), + 1570: uint8(43), + 1571: uint8(127), + 1572: uint8(86), + 1573: uint8(86), + 1574: uint8(129), + 1575: uint8(55), + 1576: uint8(117), + 1577: uint8(91), + 1578: uint8(123), + 1579: uint8(92), + 1580: uint8(43), + 1581: uint8(43), + 1582: uint8(79), + 1583: uint8(86), + 1584: uint8(86), + 1585: uint8(2), + 1586: uint8(172), + 1587: uint8(4), + 1590: uint8(57), + 1591: uint8(43), + 1592: uint8(43), + 1593: uint8(85), + 1594: uint8(86), + 1595: uint8(86), + 1596: uint8(43), + 1597: uint8(43), + 1598: uint8(79), + 1599: uint8(86), + 1600: uint8(86), + 1601: uint8(44), + 1602: uint8(43), + 1603: uint8(43), + 1604: uint8(86), + 1605: uint8(86), + 1606: uint8(50), + 1607: uint8(19), + 1608: uint8(129), + 1609: uint8(87), + 1611: uint8(111), + 1612: uint8(129), + 1613: uint8(126), + 1614: uint8(201), + 1615: uint8(215), + 1616: uint8(126), + 1617: uint8(45), + 1618: uint8(129), + 1619: uint8(129), + 1620: uint8(14), + 1621: uint8(126), + 1622: uint8(57), + 1623: uint8(127), + 1624: uint8(111), + 1625: uint8(87), + 1627: uint8(129), + 1628: uint8(129), + 1629: uint8(126), + 1630: uint8(21), + 1632: uint8(126), + 1633: uint8(3), + 1634: uint8(43), + 1635: uint8(43), + 1636: uint8(43), + 1637: uint8(43), + 1638: uint8(43), + 1639: uint8(43), + 1640: uint8(43), + 1641: uint8(43), + 1642: uint8(43), + 1643: uint8(43), + 1644: uint8(43), + 1645: uint8(43), + 1646: uint8(7), + 1647: uint8(43), + 1648: uint8(36), + 1649: uint8(43), + 1650: uint8(151), + 1651: uint8(43), + 1652: uint8(43), + 1653: uint8(43), + 1654: uint8(43), + 1655: uint8(43), + 1656: uint8(43), + 1657: uint8(43), + 1658: uint8(43), + 1659: uint8(43), + 1660: uint8(42), + 1661: uint8(43), + 1662: uint8(43), + 1663: uint8(43), + 1664: uint8(43), + 1665: uint8(43), + 1666: uint8(86), + 1667: uint8(86), + 1668: uint8(86), + 1669: uint8(86), + 1670: uint8(86), + 1671: uint8(128), + 1672: uint8(129), + 1673: uint8(129), + 1674: uint8(129), + 1675: uint8(129), + 1676: uint8(57), + 1677: uint8(187), + 1678: uint8(42), + 1679: uint8(43), + 1680: uint8(43), + 1681: uint8(43), + 1682: uint8(43), + 1683: uint8(43), + 1684: uint8(43), + 1685: uint8(43), + 1686: uint8(43), + 1687: uint8(43), + 1688: uint8(43), + 1689: uint8(43), + 1690: uint8(43), + 1691: uint8(43), + 1692: uint8(43), + 1693: uint8(43), + 1694: uint8(43), + 1695: uint8(43), + 1696: uint8(43), + 1697: uint8(43), + 1698: uint8(43), + 1699: uint8(43), + 1700: uint8(43), + 1701: uint8(43), + 1702: uint8(43), + 1703: uint8(43), + 1704: uint8(43), + 1705: uint8(43), + 1706: uint8(43), + 1707: uint8(43), + 1708: uint8(43), + 1709: uint8(43), + 1710: uint8(43), + 1711: uint8(43), + 1712: uint8(43), + 1713: uint8(43), + 1714: uint8(43), + 1715: uint8(43), + 1716: uint8(43), + 1717: uint8(43), + 1718: uint8(43), + 1719: uint8(1), + 1720: uint8(129), + 1721: uint8(129), + 1722: uint8(129), + 1723: uint8(129), + 1724: uint8(129), + 1725: uint8(129), + 1726: uint8(129), + 1727: uint8(129), + 1728: uint8(129), + 1729: uint8(129), + 1730: uint8(129), + 1731: uint8(129), + 1732: uint8(129), + 1733: uint8(129), + 1734: uint8(129), + 1735: uint8(201), + 1736: uint8(172), + 1737: uint8(172), + 1738: uint8(172), + 1739: uint8(172), + 1740: uint8(172), + 1741: uint8(172), + 1742: uint8(172), + 1743: uint8(172), + 1744: uint8(172), + 1745: uint8(172), + 1746: uint8(172), + 1747: uint8(172), + 1748: uint8(172), + 1749: uint8(172), + 1750: uint8(172), + 1751: uint8(208), + 1752: uint8(13), + 1754: uint8(78), + 1755: uint8(49), + 1756: uint8(2), + 1757: uint8(180), + 1758: uint8(193), + 1759: uint8(193), + 1760: uint8(215), + 1761: uint8(215), + 1762: uint8(36), + 1763: uint8(80), + 1764: uint8(49), + 1765: uint8(80), + 1766: uint8(49), + 1767: uint8(80), + 1768: uint8(49), + 1769: uint8(80), + 1770: uint8(49), + 1771: uint8(80), + 1772: uint8(49), + 1773: uint8(80), + 1774: uint8(49), + 1775: uint8(80), + 1776: uint8(49), + 1777: uint8(80), + 1778: uint8(49), + 1779: uint8(80), + 1780: uint8(49), + 1781: uint8(80), + 1782: uint8(49), + 1783: uint8(80), + 1784: uint8(49), + 1785: uint8(80), + 1786: uint8(49), + 1787: uint8(80), + 1788: uint8(49), + 1789: uint8(80), + 1790: uint8(49), + 1791: uint8(80), + 1792: uint8(49), + 1793: uint8(80), + 1794: uint8(49), + 1795: uint8(80), + 1796: uint8(215), + 1797: uint8(215), + 1798: uint8(83), + 1799: uint8(193), + 1800: uint8(71), + 1801: uint8(212), + 1802: uint8(215), + 1803: uint8(215), + 1804: uint8(215), + 1805: uint8(5), + 1806: uint8(43), + 1807: uint8(43), + 1808: uint8(43), + 1809: uint8(43), + 1810: uint8(43), + 1811: uint8(43), + 1812: uint8(43), + 1813: uint8(43), + 1814: uint8(43), + 1815: uint8(43), + 1816: uint8(43), + 1817: uint8(43), + 1818: uint8(7), + 1819: uint8(1), + 1821: uint8(1), + 1913: uint8(78), + 1914: uint8(49), + 1915: uint8(80), + 1916: uint8(49), + 1917: uint8(80), + 1918: uint8(49), + 1919: uint8(80), + 1920: uint8(49), + 1921: uint8(80), + 1922: uint8(49), + 1923: uint8(80), + 1924: uint8(49), + 1925: uint8(80), + 1926: uint8(49), + 1927: uint8(80), + 1928: uint8(13), + 1934: uint8(36), + 1935: uint8(80), + 1936: uint8(49), + 1937: uint8(80), + 1938: uint8(49), + 1939: uint8(80), + 1940: uint8(49), + 1941: uint8(80), + 1942: uint8(49), + 1943: uint8(80), + 1978: uint8(43), + 1979: uint8(43), + 1980: uint8(43), + 1981: uint8(43), + 1982: uint8(43), + 1983: uint8(43), + 1984: uint8(43), + 1985: uint8(43), + 1986: uint8(43), + 1987: uint8(43), + 1988: uint8(43), + 1989: uint8(121), + 1990: uint8(92), + 1991: uint8(123), + 1992: uint8(92), + 1993: uint8(123), + 1994: uint8(79), + 1995: uint8(123), + 1996: uint8(92), + 1997: uint8(123), + 1998: uint8(92), + 1999: uint8(123), + 2000: uint8(92), + 2001: uint8(123), + 2002: uint8(92), + 2003: uint8(123), + 2004: uint8(92), + 2005: uint8(123), + 2006: uint8(92), + 2007: uint8(123), + 2008: uint8(92), + 2009: uint8(123), + 2010: uint8(92), + 2011: uint8(123), + 2012: uint8(92), + 2013: uint8(123), + 2014: uint8(92), + 2015: uint8(45), + 2016: uint8(43), + 2017: uint8(43), + 2018: uint8(121), + 2019: uint8(20), + 2020: uint8(92), + 2021: uint8(123), + 2022: uint8(92), + 2023: uint8(45), + 2024: uint8(121), + 2025: uint8(42), + 2026: uint8(92), + 2027: uint8(39), + 2028: uint8(92), + 2029: uint8(123), + 2030: uint8(92), + 2031: uint8(123), + 2032: uint8(92), + 2033: uint8(123), + 2034: uint8(164), + 2036: uint8(10), + 2037: uint8(180), + 2038: uint8(92), + 2039: uint8(123), + 2040: uint8(92), + 2041: uint8(123), + 2042: uint8(79), + 2043: uint8(3), + 2044: uint8(42), + 2045: uint8(43), + 2046: uint8(43), + 2047: uint8(43), + 2048: uint8(43), + 2049: uint8(43), + 2050: uint8(43), + 2051: uint8(43), + 2052: uint8(43), + 2053: uint8(43), + 2054: uint8(43), + 2055: uint8(43), + 2056: uint8(43), + 2057: uint8(43), + 2058: uint8(43), + 2059: uint8(43), + 2060: uint8(43), + 2061: uint8(43), + 2062: uint8(43), + 2063: uint8(1), + 2091: uint8(72), + 2101: uint8(42), + 2102: uint8(43), + 2103: uint8(43), + 2104: uint8(43), + 2105: uint8(43), + 2106: uint8(43), + 2107: uint8(43), + 2108: uint8(43), + 2109: uint8(43), + 2110: uint8(43), + 2111: uint8(43), + 2112: uint8(43), + 2113: uint8(43), + 2114: uint8(43), + 2115: uint8(43), + 2116: uint8(43), + 2117: uint8(43), + 2118: uint8(43), + 2119: uint8(43), + 2120: uint8(43), + 2121: uint8(43), + 2122: uint8(43), + 2123: uint8(43), + 2124: uint8(43), + 2125: uint8(43), + 2126: uint8(43), + 2127: uint8(43), + 2161: uint8(43), + 2162: uint8(43), + 2163: uint8(43), + 2164: uint8(43), + 2165: uint8(43), + 2166: uint8(43), + 2167: uint8(43), + 2168: uint8(43), + 2169: uint8(7), + 2171: uint8(72), + 2172: uint8(86), + 2173: uint8(86), + 2174: uint8(86), + 2175: uint8(86), + 2176: uint8(86), + 2177: uint8(86), + 2178: uint8(86), + 2179: uint8(86), + 2180: uint8(2), + 2236: uint8(43), + 2237: uint8(43), + 2238: uint8(43), + 2239: uint8(43), + 2240: uint8(43), + 2241: uint8(43), + 2242: uint8(43), + 2243: uint8(43), + 2244: uint8(43), + 2245: uint8(43), + 2246: uint8(43), + 2247: uint8(43), + 2248: uint8(43), + 2249: uint8(85), + 2250: uint8(86), + 2251: uint8(86), + 2252: uint8(86), + 2253: uint8(86), + 2254: uint8(86), + 2255: uint8(86), + 2256: uint8(86), + 2257: uint8(86), + 2258: uint8(86), + 2259: uint8(86), + 2260: uint8(86), + 2261: uint8(86), + 2262: uint8(14), + 2294: uint8(36), + 2295: uint8(43), + 2296: uint8(43), + 2297: uint8(43), + 2298: uint8(43), + 2299: uint8(43), + 2300: uint8(43), + 2301: uint8(43), + 2302: uint8(43), + 2303: uint8(43), + 2304: uint8(43), + 2305: uint8(43), + 2306: uint8(7), + 2308: uint8(86), + 2309: uint8(86), + 2310: uint8(86), + 2311: uint8(86), + 2312: uint8(86), + 2313: uint8(86), + 2314: uint8(86), + 2315: uint8(86), + 2316: uint8(86), + 2317: uint8(86), + 2318: uint8(86), + 2319: uint8(86), + 2364: uint8(36), + 2365: uint8(43), + 2366: uint8(43), + 2367: uint8(43), + 2368: uint8(43), + 2369: uint8(43), + 2370: uint8(43), + 2371: uint8(43), + 2372: uint8(43), + 2373: uint8(43), + 2374: uint8(43), + 2375: uint8(43), + 2376: uint8(43), + 2377: uint8(43), + 2378: uint8(43), + 2379: uint8(43), + 2380: uint8(43), + 2381: uint8(7), + 2386: uint8(86), + 2387: uint8(86), + 2388: uint8(86), + 2389: uint8(86), + 2390: uint8(86), + 2391: uint8(86), + 2392: uint8(86), + 2393: uint8(86), + 2394: uint8(86), + 2395: uint8(86), + 2396: uint8(86), + 2397: uint8(86), + 2398: uint8(86), + 2399: uint8(86), + 2400: uint8(86), + 2401: uint8(86), + 2402: uint8(86), + 2461: uint8(42), + 2462: uint8(43), + 2463: uint8(43), + 2464: uint8(43), + 2465: uint8(43), + 2466: uint8(43), + 2467: uint8(43), + 2468: uint8(43), + 2469: uint8(43), + 2470: uint8(43), + 2471: uint8(43), + 2472: uint8(86), + 2473: uint8(86), + 2474: uint8(86), + 2475: uint8(86), + 2476: uint8(86), + 2477: uint8(86), + 2478: uint8(86), + 2479: uint8(86), + 2480: uint8(86), + 2481: uint8(86), + 2482: uint8(14), + 2515: uint8(42), + 2516: uint8(43), + 2517: uint8(43), + 2518: uint8(43), + 2519: uint8(43), + 2520: uint8(43), + 2521: uint8(43), + 2522: uint8(43), + 2523: uint8(43), + 2524: uint8(43), + 2525: uint8(43), + 2526: uint8(86), + 2527: uint8(86), + 2528: uint8(86), + 2529: uint8(86), + 2530: uint8(86), + 2531: uint8(86), + 2532: uint8(86), + 2533: uint8(86), + 2534: uint8(86), + 2535: uint8(86), + 2536: uint8(14), + 2580: uint8(43), + 2581: uint8(43), + 2582: uint8(43), + 2583: uint8(43), + 2584: uint8(43), + 2585: uint8(43), + 2586: uint8(43), + 2587: uint8(43), + 2588: uint8(43), + 2589: uint8(43), + 2590: uint8(43), + 2591: uint8(85), + 2592: uint8(86), + 2593: uint8(86), + 2594: uint8(86), + 2595: uint8(86), + 2596: uint8(86), + 2597: uint8(86), + 2598: uint8(86), + 2599: uint8(86), + 2600: uint8(86), + 2601: uint8(86), + 2602: uint8(14), +} +var _rules = [240]int32{ + 1: int32(0x2001), + 2: -int32(0x2000), + 3: int32(0x1dbf00), + 4: int32(0x2e700), + 5: int32(0x7900), + 6: int32(0x2402), + 7: int32(0x101), + 8: -int32(0x100), + 10: int32(0x201), + 11: -int32(0x200), + 12: -int32(0xc6ff), + 13: -int32(0xe800), + 14: -int32(0x78ff), + 15: -int32(0x12c00), + 16: int32(0xc300), + 17: int32(0xd201), + 18: int32(0xce01), + 19: int32(0xcd01), + 20: int32(0x4f01), + 21: int32(0xca01), + 22: int32(0xcb01), + 23: int32(0xcf01), + 24: int32(0x6100), + 25: int32(0xd301), + 26: int32(0xd101), + 27: int32(0xa300), + 28: int32(0xd501), + 29: int32(0x8200), + 30: int32(0xd601), + 31: int32(0xda01), + 32: int32(0xd901), + 33: int32(0xdb01), + 34: int32(0x3800), + 35: int32(0x3), + 36: -int32(0x4f00), + 37: -int32(0x60ff), + 38: -int32(0x37ff), + 39: int32(0x242802), + 41: int32(0x101), + 42: -int32(0x100), + 43: -int32(0xcd00), + 44: -int32(0xda00), + 45: -int32(0x81ff), + 46: int32(0x2a2b01), + 47: -int32(0xa2ff), + 48: int32(0x2a2801), + 49: int32(0x2a3f00), + 50: -int32(0xc2ff), + 51: int32(0x4501), + 52: int32(0x4701), + 53: int32(0x2a1f00), + 54: int32(0x2a1c00), + 55: int32(0x2a1e00), + 56: -int32(0xd200), + 57: -int32(0xce00), + 58: -int32(0xca00), + 59: -int32(0xcb00), + 60: int32(0xa54f00), + 61: int32(0xa54b00), + 62: -int32(0xcf00), + 63: int32(0xa52800), + 64: int32(0xa54400), + 65: -int32(0xd100), + 66: -int32(0xd300), + 67: int32(0x29f700), + 68: int32(0xa54100), + 69: int32(0x29fd00), + 70: -int32(0xd500), + 71: -int32(0xd600), + 72: int32(0x29e700), + 73: int32(0xa54300), + 74: int32(0xa52a00), + 75: -int32(0x4500), + 76: -int32(0xd900), + 77: -int32(0x4700), + 78: -int32(0xdb00), + 79: int32(0xa51500), + 80: int32(0xa51200), + 81: int32(0x4c2402), + 83: int32(0x2001), + 84: -int32(0x2000), + 85: int32(0x101), + 86: -int32(0x100), + 87: int32(0x5400), + 88: int32(0x7401), + 89: int32(0x2601), + 90: int32(0x2501), + 91: int32(0x4001), + 92: int32(0x3f01), + 93: -int32(0x2600), + 94: -int32(0x2500), + 95: -int32(0x1f00), + 96: -int32(0x4000), + 97: -int32(0x3f00), + 98: int32(0x801), + 99: -int32(0x3e00), + 100: -int32(0x3900), + 101: -int32(0x2f00), + 102: -int32(0x3600), + 103: -int32(0x800), + 104: -int32(0x5600), + 105: -int32(0x5000), + 106: int32(0x700), + 107: -int32(0x7400), + 108: -int32(0x3bff), + 109: -int32(0x6000), + 110: -int32(0x6ff), + 111: int32(0x701a02), + 112: int32(0x101), + 113: -int32(0x100), + 114: int32(0x2001), + 115: -int32(0x2000), + 116: int32(0x5001), + 117: int32(0xf01), + 118: -int32(0xf00), + 120: int32(0x3001), + 121: -int32(0x3000), + 122: int32(0x101), + 123: -int32(0x100), + 125: int32(0xbc000), + 126: int32(0x1c6001), + 128: int32(0x97d001), + 129: int32(0x801), + 130: -int32(0x800), + 131: int32(0x8a0502), + 133: -int32(0xbbfff), + 134: -int32(0x186200), + 135: int32(0x89c200), + 136: -int32(0x182500), + 137: -int32(0x186e00), + 138: -int32(0x186d00), + 139: -int32(0x186400), + 140: -int32(0x186300), + 141: -int32(0x185c00), + 143: int32(0x8a3800), + 144: int32(0x8a0400), + 145: int32(0xee600), + 146: int32(0x101), + 147: -int32(0x100), + 149: -int32(0x3b00), + 150: -int32(0x1dbeff), + 151: int32(0x8f1d02), + 152: int32(0x800), + 153: -int32(0x7ff), + 155: int32(0x5600), + 156: -int32(0x55ff), + 157: int32(0x4a00), + 158: int32(0x6400), + 159: int32(0x8000), + 160: int32(0x7000), + 161: int32(0x7e00), + 162: int32(0x900), + 163: -int32(0x49ff), + 164: -int32(0x8ff), + 165: -int32(0x1c2500), + 166: -int32(0x63ff), + 167: -int32(0x6fff), + 168: -int32(0x7fff), + 169: -int32(0x7dff), + 170: int32(0xac0502), + 172: int32(0x1001), + 173: -int32(0x1000), + 174: int32(0x1c01), + 175: int32(0x101), + 176: -int32(0x1d5cff), + 177: -int32(0x20beff), + 178: -int32(0x2045ff), + 179: -int32(0x1c00), + 180: int32(0xb10b02), + 181: int32(0x101), + 182: -int32(0x100), + 183: int32(0x3001), + 184: -int32(0x3000), + 186: -int32(0x29f6ff), + 187: -int32(0xee5ff), + 188: -int32(0x29e6ff), + 189: -int32(0x2a2b00), + 190: -int32(0x2a2800), + 191: -int32(0x2a1bff), + 192: -int32(0x29fcff), + 193: -int32(0x2a1eff), + 194: -int32(0x2a1dff), + 195: -int32(0x2a3eff), + 197: -int32(0x1c6000), + 199: int32(0x101), + 200: -int32(0x100), + 201: int32(0xbc0c02), + 203: int32(0x101), + 204: -int32(0x100), + 205: -int32(0xa543ff), + 206: int32(0x3a001), + 207: -int32(0x8a03ff), + 208: -int32(0xa527ff), + 209: int32(0x3000), + 210: -int32(0xa54eff), + 211: -int32(0xa54aff), + 212: -int32(0xa540ff), + 213: -int32(0xa511ff), + 214: -int32(0xa529ff), + 215: -int32(0xa514ff), + 216: -int32(0x2fff), + 217: -int32(0xa542ff), + 218: -int32(0x8a37ff), + 220: -int32(0x97d000), + 221: -int32(0x3a000), + 223: int32(0x2001), + 224: -int32(0x2000), + 226: int32(0x2801), + 227: -int32(0x2800), + 229: int32(0x4001), + 230: -int32(0x4000), + 232: int32(0x2001), + 233: -int32(0x2000), + 235: int32(0x2001), + 236: -int32(0x2000), + 238: int32(0x2201), + 239: -int32(0x2200), +} +var _rulebases = [512]uint8{ + 1: uint8(6), + 2: uint8(39), + 3: uint8(81), + 4: uint8(111), + 5: uint8(119), + 16: uint8(124), + 19: uint8(127), + 28: uint8(131), + 29: uint8(142), + 30: uint8(146), + 31: uint8(151), + 33: uint8(170), + 44: uint8(180), + 45: uint8(196), + 166: uint8(198), + 167: uint8(201), + 171: uint8(219), + 255: uint8(222), + 260: uint8(225), + 268: uint8(228), + 280: uint8(231), + 366: uint8(234), + 489: uint8(237), +} +var _exceptions = [200][2]uint8{ + 0: { + 0: uint8(48), + 1: uint8(12), + }, + 1: { + 0: uint8(49), + 1: uint8(13), + }, + 2: { + 0: uint8(120), + 1: uint8(14), + }, + 3: { + 0: uint8(127), + 1: uint8(15), + }, + 4: { + 0: uint8(128), + 1: uint8(16), + }, + 5: { + 0: uint8(129), + 1: uint8(17), + }, + 6: { + 0: uint8(134), + 1: uint8(18), + }, + 7: { + 0: uint8(137), + 1: uint8(19), + }, + 8: { + 0: uint8(138), + 1: uint8(19), + }, + 9: { + 0: uint8(142), + 1: uint8(20), + }, + 10: { + 0: uint8(143), + 1: uint8(21), + }, + 11: { + 0: uint8(144), + 1: uint8(22), + }, + 12: { + 0: uint8(147), + 1: uint8(19), + }, + 13: { + 0: uint8(148), + 1: uint8(23), + }, + 14: { + 0: uint8(149), + 1: uint8(24), + }, + 15: { + 0: uint8(150), + 1: uint8(25), + }, + 16: { + 0: uint8(151), + 1: uint8(26), + }, + 17: { + 0: uint8(154), + 1: uint8(27), + }, + 18: { + 0: uint8(156), + 1: uint8(25), + }, + 19: { + 0: uint8(157), + 1: uint8(28), + }, + 20: { + 0: uint8(158), + 1: uint8(29), + }, + 21: { + 0: uint8(159), + 1: uint8(30), + }, + 22: { + 0: uint8(166), + 1: uint8(31), + }, + 23: { + 0: uint8(169), + 1: uint8(31), + }, + 24: { + 0: uint8(174), + 1: uint8(31), + }, + 25: { + 0: uint8(177), + 1: uint8(32), + }, + 26: { + 0: uint8(178), + 1: uint8(32), + }, + 27: { + 0: uint8(183), + 1: uint8(33), + }, + 28: { + 0: uint8(191), + 1: uint8(34), + }, + 29: { + 0: uint8(197), + 1: uint8(35), + }, + 30: { + 0: uint8(200), + 1: uint8(35), + }, + 31: { + 0: uint8(203), + 1: uint8(35), + }, + 32: { + 0: uint8(221), + 1: uint8(36), + }, + 33: { + 0: uint8(242), + 1: uint8(35), + }, + 34: { + 0: uint8(246), + 1: uint8(37), + }, + 35: { + 0: uint8(247), + 1: uint8(38), + }, + 36: { + 0: uint8(32), + 1: uint8(45), + }, + 37: { + 0: uint8(58), + 1: uint8(46), + }, + 38: { + 0: uint8(61), + 1: uint8(47), + }, + 39: { + 0: uint8(62), + 1: uint8(48), + }, + 40: { + 0: uint8(63), + 1: uint8(49), + }, + 41: { + 0: uint8(64), + 1: uint8(49), + }, + 42: { + 0: uint8(67), + 1: uint8(50), + }, + 43: { + 0: uint8(68), + 1: uint8(51), + }, + 44: { + 0: uint8(69), + 1: uint8(52), + }, + 45: { + 0: uint8(80), + 1: uint8(53), + }, + 46: { + 0: uint8(81), + 1: uint8(54), + }, + 47: { + 0: uint8(82), + 1: uint8(55), + }, + 48: { + 0: uint8(83), + 1: uint8(56), + }, + 49: { + 0: uint8(84), + 1: uint8(57), + }, + 50: { + 0: uint8(89), + 1: uint8(58), + }, + 51: { + 0: uint8(91), + 1: uint8(59), + }, + 52: { + 0: uint8(92), + 1: uint8(60), + }, + 53: { + 0: uint8(97), + 1: uint8(61), + }, + 54: { + 0: uint8(99), + 1: uint8(62), + }, + 55: { + 0: uint8(101), + 1: uint8(63), + }, + 56: { + 0: uint8(102), + 1: uint8(64), + }, + 57: { + 0: uint8(104), + 1: uint8(65), + }, + 58: { + 0: uint8(105), + 1: uint8(66), + }, + 59: { + 0: uint8(106), + 1: uint8(64), + }, + 60: { + 0: uint8(107), + 1: uint8(67), + }, + 61: { + 0: uint8(108), + 1: uint8(68), + }, + 62: { + 0: uint8(111), + 1: uint8(66), + }, + 63: { + 0: uint8(113), + 1: uint8(69), + }, + 64: { + 0: uint8(114), + 1: uint8(70), + }, + 65: { + 0: uint8(117), + 1: uint8(71), + }, + 66: { + 0: uint8(125), + 1: uint8(72), + }, + 67: { + 0: uint8(130), + 1: uint8(73), + }, + 68: { + 0: uint8(135), + 1: uint8(74), + }, + 69: { + 0: uint8(137), + 1: uint8(75), + }, + 70: { + 0: uint8(138), + 1: uint8(76), + }, + 71: { + 0: uint8(139), + 1: uint8(76), + }, + 72: { + 0: uint8(140), + 1: uint8(77), + }, + 73: { + 0: uint8(146), + 1: uint8(78), + }, + 74: { + 0: uint8(157), + 1: uint8(79), + }, + 75: { + 0: uint8(158), + 1: uint8(80), + }, + 76: { + 0: uint8(69), + 1: uint8(87), + }, + 77: { + 0: uint8(123), + 1: uint8(29), + }, + 78: { + 0: uint8(124), + 1: uint8(29), + }, + 79: { + 0: uint8(125), + 1: uint8(29), + }, + 80: { + 0: uint8(127), + 1: uint8(88), + }, + 81: { + 0: uint8(134), + 1: uint8(89), + }, + 82: { + 0: uint8(136), + 1: uint8(90), + }, + 83: { + 0: uint8(137), + 1: uint8(90), + }, + 84: { + 0: uint8(138), + 1: uint8(90), + }, + 85: { + 0: uint8(140), + 1: uint8(91), + }, + 86: { + 0: uint8(142), + 1: uint8(92), + }, + 87: { + 0: uint8(143), + 1: uint8(92), + }, + 88: { + 0: uint8(172), + 1: uint8(93), + }, + 89: { + 0: uint8(173), + 1: uint8(94), + }, + 90: { + 0: uint8(174), + 1: uint8(94), + }, + 91: { + 0: uint8(175), + 1: uint8(94), + }, + 92: { + 0: uint8(194), + 1: uint8(95), + }, + 93: { + 0: uint8(204), + 1: uint8(96), + }, + 94: { + 0: uint8(205), + 1: uint8(97), + }, + 95: { + 0: uint8(206), + 1: uint8(97), + }, + 96: { + 0: uint8(207), + 1: uint8(98), + }, + 97: { + 0: uint8(208), + 1: uint8(99), + }, + 98: { + 0: uint8(209), + 1: uint8(100), + }, + 99: { + 0: uint8(213), + 1: uint8(101), + }, + 100: { + 0: uint8(214), + 1: uint8(102), + }, + 101: { + 0: uint8(215), + 1: uint8(103), + }, + 102: { + 0: uint8(240), + 1: uint8(104), + }, + 103: { + 0: uint8(241), + 1: uint8(105), + }, + 104: { + 0: uint8(242), + 1: uint8(106), + }, + 105: { + 0: uint8(243), + 1: uint8(107), + }, + 106: { + 0: uint8(244), + 1: uint8(108), + }, + 107: { + 0: uint8(245), + 1: uint8(109), + }, + 108: { + 0: uint8(249), + 1: uint8(110), + }, + 109: { + 0: uint8(253), + 1: uint8(45), + }, + 110: { + 0: uint8(254), + 1: uint8(45), + }, + 111: { + 0: uint8(255), + 1: uint8(45), + }, + 112: { + 0: uint8(80), + 1: uint8(105), + }, + 113: { + 0: uint8(81), + 1: uint8(105), + }, + 114: { + 0: uint8(82), + 1: uint8(105), + }, + 115: { + 0: uint8(83), + 1: uint8(105), + }, + 116: { + 0: uint8(84), + 1: uint8(105), + }, + 117: { + 0: uint8(85), + 1: uint8(105), + }, + 118: { + 0: uint8(86), + 1: uint8(105), + }, + 119: { + 0: uint8(87), + 1: uint8(105), + }, + 120: { + 0: uint8(88), + 1: uint8(105), + }, + 121: { + 0: uint8(89), + 1: uint8(105), + }, + 122: { + 0: uint8(90), + 1: uint8(105), + }, + 123: { + 0: uint8(91), + 1: uint8(105), + }, + 124: { + 0: uint8(92), + 1: uint8(105), + }, + 125: { + 0: uint8(93), + 1: uint8(105), + }, + 126: { + 0: uint8(94), + 1: uint8(105), + }, + 127: { + 0: uint8(95), + 1: uint8(105), + }, + 128: { + 0: uint8(130), + }, + 129: { + 0: uint8(131), + }, + 130: { + 0: uint8(132), + }, + 131: { + 0: uint8(133), + }, + 132: { + 0: uint8(134), + }, + 133: { + 0: uint8(135), + }, + 134: { + 0: uint8(136), + }, + 135: { + 0: uint8(137), + }, + 136: { + 0: uint8(192), + 1: uint8(117), + }, + 137: { + 0: uint8(207), + 1: uint8(118), + }, + 138: { + 0: uint8(128), + 1: uint8(137), + }, + 139: { + 0: uint8(129), + 1: uint8(138), + }, + 140: { + 0: uint8(130), + 1: uint8(139), + }, + 141: { + 0: uint8(133), + 1: uint8(140), + }, + 142: { + 0: uint8(134), + 1: uint8(141), + }, + 143: { + 0: uint8(112), + 1: uint8(157), + }, + 144: { + 0: uint8(113), + 1: uint8(157), + }, + 145: { + 0: uint8(118), + 1: uint8(158), + }, + 146: { + 0: uint8(119), + 1: uint8(158), + }, + 147: { + 0: uint8(120), + 1: uint8(159), + }, + 148: { + 0: uint8(121), + 1: uint8(159), + }, + 149: { + 0: uint8(122), + 1: uint8(160), + }, + 150: { + 0: uint8(123), + 1: uint8(160), + }, + 151: { + 0: uint8(124), + 1: uint8(161), + }, + 152: { + 0: uint8(125), + 1: uint8(161), + }, + 153: { + 0: uint8(179), + 1: uint8(162), + }, + 154: { + 0: uint8(186), + 1: uint8(163), + }, + 155: { + 0: uint8(187), + 1: uint8(163), + }, + 156: { + 0: uint8(188), + 1: uint8(164), + }, + 157: { + 0: uint8(190), + 1: uint8(165), + }, + 158: { + 0: uint8(195), + 1: uint8(162), + }, + 159: { + 0: uint8(204), + 1: uint8(164), + }, + 160: { + 0: uint8(218), + 1: uint8(166), + }, + 161: { + 0: uint8(219), + 1: uint8(166), + }, + 162: { + 0: uint8(229), + 1: uint8(106), + }, + 163: { + 0: uint8(234), + 1: uint8(167), + }, + 164: { + 0: uint8(235), + 1: uint8(167), + }, + 165: { + 0: uint8(236), + 1: uint8(110), + }, + 166: { + 0: uint8(243), + 1: uint8(162), + }, + 167: { + 0: uint8(248), + 1: uint8(168), + }, + 168: { + 0: uint8(249), + 1: uint8(168), + }, + 169: { + 0: uint8(250), + 1: uint8(169), + }, + 170: { + 0: uint8(251), + 1: uint8(169), + }, + 171: { + 0: uint8(252), + 1: uint8(164), + }, + 172: { + 0: uint8(38), + 1: uint8(176), + }, + 173: { + 0: uint8(42), + 1: uint8(177), + }, + 174: { + 0: uint8(43), + 1: uint8(178), + }, + 175: { + 0: uint8(78), + 1: uint8(179), + }, + 176: { + 0: uint8(132), + 1: uint8(8), + }, + 177: { + 0: uint8(98), + 1: uint8(186), + }, + 178: { + 0: uint8(99), + 1: uint8(187), + }, + 179: { + 0: uint8(100), + 1: uint8(188), + }, + 180: { + 0: uint8(101), + 1: uint8(189), + }, + 181: { + 0: uint8(102), + 1: uint8(190), + }, + 182: { + 0: uint8(109), + 1: uint8(191), + }, + 183: { + 0: uint8(110), + 1: uint8(192), + }, + 184: { + 0: uint8(111), + 1: uint8(193), + }, + 185: { + 0: uint8(112), + 1: uint8(194), + }, + 186: { + 0: uint8(126), + 1: uint8(195), + }, + 187: { + 0: uint8(127), + 1: uint8(195), + }, + 188: { + 0: uint8(125), + 1: uint8(207), + }, + 189: { + 0: uint8(141), + 1: uint8(208), + }, + 190: { + 0: uint8(148), + 1: uint8(209), + }, + 191: { + 0: uint8(171), + 1: uint8(210), + }, + 192: { + 0: uint8(172), + 1: uint8(211), + }, + 193: { + 0: uint8(173), + 1: uint8(212), + }, + 194: { + 0: uint8(176), + 1: uint8(213), + }, + 195: { + 0: uint8(177), + 1: uint8(214), + }, + 196: { + 0: uint8(178), + 1: uint8(215), + }, + 197: { + 0: uint8(196), + 1: uint8(216), + }, + 198: { + 0: uint8(197), + 1: uint8(217), + }, + 199: { + 0: uint8(198), + 1: uint8(218), + }, +} + +func _casemap(tls *TLS, c uint32, dir int32) (r1 int32) { + var b, rt, try, v, x, xb, xn, y uint32 + var c0, r, rd, v1 int32 + _, _, _, _, _, _, _, _, _, _, _, _ = b, c0, r, rd, rt, try, v, x, xb, xn, y, v1 + c0 = Int32FromUint32(c) + if c >= uint32(0x20000) { + return Int32FromUint32(c) + } + b = c >> int32(8) + c = c & uint32(255) + x = c / uint32(3) + y = c % uint32(3) + /* lookup entry in two-level base-6 table */ + v = uint32(_tab1[Uint32FromInt32(Int32FromUint8(_tab1[b])*int32(86))+x]) + v = v * Uint32FromInt32(_mt[y]) >> int32(11) % uint32(6) + /* use the bit vector out of the tables as an index into + * a block-specific set of rules and decode the rule into + * a type and a case-mapping delta. */ + r = _rules[uint32(_rulebases[b])+v] + rt = Uint32FromInt32(r & int32(255)) + rd = r >> int32(8) + /* rules 0/1 are simple lower/upper case with a delta. + * apply according to desired mapping direction. */ + if rt < uint32(2) { + return Int32FromUint32(Uint32FromInt32(c0) + Uint32FromInt32(rd)&-(rt^Uint32FromInt32(dir))) + } + /* binary search. endpoints of the binary search for + * this block are stored in the rule delta field. */ + xn = Uint32FromInt32(rd & int32(0xff)) + xb = Uint32FromInt32(rd) >> int32(8) + for xn != 0 { + try = uint32(**(**uint8)(__ccgo_up(uintptr(unsafe.Pointer(&_exceptions)) + uintptr(xb+xn/uint32(2))*2))) + if try == c { + r = _rules[**(**uint8)(__ccgo_up(uintptr(unsafe.Pointer(&_exceptions)) + uintptr(xb+xn/uint32(2))*2 + 1))] + rt = Uint32FromInt32(r & int32(255)) + rd = r >> int32(8) + if rt < uint32(2) { + return Int32FromUint32(Uint32FromInt32(c0) + Uint32FromInt32(rd)&-(rt^Uint32FromInt32(dir))) + } + /* Hard-coded for the four exceptional titlecase */ + if dir != 0 { + v1 = -int32(1) + } else { + v1 = int32(1) + } + return c0 + v1 + } else { + if try > c { + xn = xn / uint32(2) + } else { + xb = xb + xn/uint32(2) + xn = xn - xn/uint32(2) + } + } + } + return c0 +} + +var _mt = [3]int32{ + 0: int32(2048), + 1: int32(342), + 2: int32(57), +} + +func Xtowlower(tls *TLS, wc Twint_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Uint32FromInt32(_casemap(tls, wc, 0)) +} + +func Xtowupper(tls *TLS, wc Twint_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Uint32FromInt32(_casemap(tls, wc, int32(1))) +} + +func X__towupper_l(tls *TLS, c Twint_t, l Tlocale_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xtowupper(tls, c) +} + +func X__towlower_l(tls *TLS, c Twint_t, l Tlocale_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xtowlower(tls, c) +} + +func Xtowlower_l(tls *TLS, c Twint_t, l Tlocale_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__towlower_l(tls, c, l) +} + +func Xtowupper_l(tls *TLS, c Twint_t, l Tlocale_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__towupper_l(tls, c, l) +} + +func Xwcswidth(tls *TLS, wcs uintptr, n Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wcs=%v n=%v, (%v:)", tls, wcs, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var k, l, v3 int32 + var v2 Tsize_t + var v4 bool + _, _, _, _, _ = k, l, v2, v3, v4 + l = 0 + k = 0 + for { + v2 = n + n = n - 1 + if v4 = v2 != 0 && **(**Twchar_t)(__ccgo_up(wcs)) != 0; v4 { + v3 = Xwcwidth(tls, **(**Twchar_t)(__ccgo_up(wcs))) + k = v3 + } + if !(v4 && v3 >= 0) { + break + } + goto _1 + _1: + ; + l = l + k + wcs += 4 + } + if k < 0 { + v3 = k + } else { + v3 = l + } + return v3 +} + +func Xwctrans(tls *TLS, class uintptr) (r Twctrans_t) { + if __ccgo_strace { + trc("tls=%v class=%v, (%v:)", tls, class, origin(2)) + defer func() { trc("-> %v", r) }() + } + if !(Xstrcmp(tls, class, __ccgo_ts+196) != 0) { + return UintptrFromInt32(1) + } + if !(Xstrcmp(tls, class, __ccgo_ts+204) != 0) { + return UintptrFromInt32(2) + } + return uintptr(0) +} + +func Xtowctrans(tls *TLS, wc Twint_t, trans Twctrans_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v wc=%v trans=%v, (%v:)", tls, wc, trans, origin(2)) + defer func() { trc("-> %v", r) }() + } + if trans == UintptrFromInt32(1) { + return Xtowupper(tls, wc) + } + if trans == UintptrFromInt32(2) { + return Xtowlower(tls, wc) + } + return wc +} + +func X__wctrans_l(tls *TLS, s uintptr, l Tlocale_t) (r Twctrans_t) { + if __ccgo_strace { + trc("tls=%v s=%v l=%v, (%v:)", tls, s, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwctrans(tls, s) +} + +func X__towctrans_l(tls *TLS, c Twint_t, t Twctrans_t, l Tlocale_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v t=%v l=%v, (%v:)", tls, c, t, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xtowctrans(tls, c, t) +} + +func Xtowctrans_l(tls *TLS, c Twint_t, t Twctrans_t, l Tlocale_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v t=%v l=%v, (%v:)", tls, c, t, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__towctrans_l(tls, c, t, l) +} + +func Xwctrans_l(tls *TLS, s uintptr, l Tlocale_t) (r Twctrans_t) { + if __ccgo_strace { + trc("tls=%v s=%v l=%v, (%v:)", tls, s, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__wctrans_l(tls, s, l) +} + +var _table5 = [2784]uint8{ + 0: uint8(16), + 1: uint8(16), + 2: uint8(16), + 3: uint8(18), + 4: uint8(19), + 5: uint8(20), + 6: uint8(21), + 7: uint8(22), + 8: uint8(23), + 9: uint8(24), + 10: uint8(25), + 11: uint8(26), + 12: uint8(27), + 13: uint8(28), + 14: uint8(29), + 15: uint8(30), + 16: uint8(31), + 17: uint8(32), + 18: uint8(16), + 19: uint8(33), + 20: uint8(16), + 21: uint8(16), + 22: uint8(16), + 23: uint8(34), + 24: uint8(35), + 25: uint8(36), + 26: uint8(37), + 27: uint8(38), + 28: uint8(39), + 29: uint8(40), + 30: uint8(16), + 31: uint8(16), + 32: uint8(41), + 33: uint8(16), + 34: uint8(16), + 35: uint8(16), + 36: uint8(16), + 37: uint8(16), + 38: uint8(16), + 39: uint8(16), + 40: uint8(16), + 41: uint8(16), + 42: uint8(16), + 43: uint8(16), + 44: uint8(42), + 45: uint8(43), + 46: uint8(16), + 47: uint8(16), + 48: uint8(44), + 49: uint8(16), + 50: uint8(16), + 51: uint8(16), + 52: uint8(16), + 53: uint8(16), + 54: uint8(16), + 55: uint8(16), + 56: uint8(16), + 57: uint8(16), + 58: uint8(16), + 59: uint8(16), + 60: uint8(16), + 61: uint8(16), + 62: uint8(16), + 63: uint8(16), + 64: uint8(16), + 65: uint8(16), + 66: uint8(16), + 67: uint8(16), + 68: uint8(16), + 69: uint8(16), + 70: uint8(16), + 71: uint8(16), + 72: uint8(16), + 73: uint8(16), + 74: uint8(16), + 75: uint8(16), + 76: uint8(16), + 77: uint8(16), + 78: uint8(16), + 79: uint8(16), + 80: uint8(16), + 81: uint8(16), + 82: uint8(16), + 83: uint8(16), + 84: uint8(16), + 85: uint8(16), + 86: uint8(16), + 87: uint8(16), + 88: uint8(16), + 89: uint8(16), + 90: uint8(16), + 91: uint8(16), + 92: uint8(16), + 93: uint8(16), + 94: uint8(16), + 95: uint8(16), + 96: uint8(16), + 97: uint8(16), + 98: uint8(16), + 99: uint8(16), + 100: uint8(16), + 101: uint8(16), + 102: uint8(16), + 103: uint8(16), + 104: uint8(16), + 105: uint8(16), + 106: uint8(16), + 107: uint8(16), + 108: uint8(16), + 109: uint8(16), + 110: uint8(16), + 111: uint8(16), + 112: uint8(16), + 113: uint8(16), + 114: uint8(16), + 115: uint8(16), + 116: uint8(16), + 117: uint8(16), + 118: uint8(16), + 119: uint8(16), + 120: uint8(16), + 121: uint8(16), + 122: uint8(16), + 123: uint8(16), + 124: uint8(16), + 125: uint8(16), + 126: uint8(16), + 127: uint8(16), + 128: uint8(16), + 129: uint8(16), + 130: uint8(16), + 131: uint8(16), + 132: uint8(16), + 133: uint8(16), + 134: uint8(16), + 135: uint8(16), + 136: uint8(16), + 137: uint8(16), + 138: uint8(16), + 139: uint8(16), + 140: uint8(16), + 141: uint8(16), + 142: uint8(16), + 143: uint8(16), + 144: uint8(16), + 145: uint8(16), + 146: uint8(16), + 147: uint8(16), + 148: uint8(16), + 149: uint8(16), + 150: uint8(16), + 151: uint8(16), + 152: uint8(16), + 153: uint8(16), + 154: uint8(16), + 155: uint8(16), + 156: uint8(16), + 157: uint8(16), + 158: uint8(16), + 159: uint8(16), + 160: uint8(16), + 161: uint8(16), + 162: uint8(16), + 163: uint8(16), + 164: uint8(16), + 165: uint8(16), + 166: uint8(45), + 167: uint8(16), + 168: uint8(46), + 169: uint8(47), + 170: uint8(48), + 171: uint8(49), + 172: uint8(16), + 173: uint8(16), + 174: uint8(16), + 175: uint8(16), + 176: uint8(16), + 177: uint8(16), + 178: uint8(16), + 179: uint8(16), + 180: uint8(16), + 181: uint8(16), + 182: uint8(16), + 183: uint8(16), + 184: uint8(16), + 185: uint8(16), + 186: uint8(16), + 187: uint8(16), + 188: uint8(16), + 189: uint8(16), + 190: uint8(16), + 191: uint8(16), + 192: uint8(16), + 193: uint8(16), + 194: uint8(16), + 195: uint8(16), + 196: uint8(16), + 197: uint8(16), + 198: uint8(16), + 199: uint8(16), + 200: uint8(16), + 201: uint8(16), + 202: uint8(16), + 203: uint8(16), + 204: uint8(16), + 205: uint8(16), + 206: uint8(16), + 207: uint8(16), + 208: uint8(16), + 209: uint8(16), + 210: uint8(16), + 211: uint8(16), + 212: uint8(16), + 213: uint8(16), + 214: uint8(16), + 215: uint8(50), + 216: uint8(16), + 217: uint8(16), + 218: uint8(16), + 219: uint8(16), + 220: uint8(16), + 221: uint8(16), + 222: uint8(16), + 223: uint8(16), + 224: uint8(16), + 225: uint8(16), + 226: uint8(16), + 227: uint8(16), + 228: uint8(16), + 229: uint8(16), + 230: uint8(16), + 231: uint8(16), + 232: uint8(16), + 233: uint8(16), + 234: uint8(16), + 235: uint8(16), + 236: uint8(16), + 237: uint8(16), + 238: uint8(16), + 239: uint8(16), + 240: uint8(16), + 241: uint8(16), + 242: uint8(16), + 243: uint8(16), + 244: uint8(16), + 245: uint8(16), + 246: uint8(16), + 247: uint8(16), + 248: uint8(16), + 249: uint8(16), + 250: uint8(16), + 251: uint8(51), + 252: uint8(16), + 253: uint8(16), + 254: uint8(52), + 255: uint8(53), + 256: uint8(16), + 257: uint8(54), + 258: uint8(55), + 259: uint8(56), + 260: uint8(16), + 261: uint8(16), + 262: uint8(16), + 263: uint8(16), + 264: uint8(16), + 265: uint8(16), + 266: uint8(57), + 267: uint8(16), + 268: uint8(16), + 269: uint8(58), + 270: uint8(16), + 271: uint8(59), + 272: uint8(60), + 273: uint8(61), + 274: uint8(62), + 275: uint8(63), + 276: uint8(64), + 277: uint8(65), + 278: uint8(66), + 279: uint8(67), + 280: uint8(68), + 281: uint8(69), + 282: uint8(70), + 283: uint8(16), + 284: uint8(71), + 285: uint8(72), + 286: uint8(73), + 287: uint8(16), + 288: uint8(16), + 289: uint8(16), + 290: uint8(16), + 291: uint8(16), + 292: uint8(16), + 293: uint8(16), + 294: uint8(16), + 295: uint8(16), + 296: uint8(16), + 297: uint8(16), + 298: uint8(16), + 299: uint8(16), + 300: uint8(16), + 301: uint8(16), + 302: uint8(16), + 303: uint8(16), + 304: uint8(16), + 305: uint8(16), + 306: uint8(16), + 307: uint8(16), + 308: uint8(74), + 309: uint8(16), + 310: uint8(16), + 311: uint8(16), + 312: uint8(16), + 313: uint8(16), + 314: uint8(16), + 315: uint8(16), + 316: uint8(16), + 317: uint8(16), + 318: uint8(16), + 319: uint8(16), + 320: uint8(16), + 321: uint8(16), + 322: uint8(16), + 323: uint8(16), + 324: uint8(16), + 325: uint8(16), + 326: uint8(16), + 327: uint8(16), + 328: uint8(16), + 329: uint8(16), + 330: uint8(16), + 331: uint8(16), + 332: uint8(16), + 333: uint8(16), + 334: uint8(16), + 335: uint8(16), + 336: uint8(16), + 337: uint8(16), + 338: uint8(16), + 339: uint8(16), + 340: uint8(16), + 341: uint8(16), + 342: uint8(16), + 343: uint8(16), + 344: uint8(16), + 345: uint8(16), + 346: uint8(16), + 347: uint8(16), + 348: uint8(16), + 349: uint8(16), + 350: uint8(16), + 351: uint8(16), + 352: uint8(16), + 353: uint8(16), + 354: uint8(16), + 355: uint8(16), + 356: uint8(16), + 357: uint8(16), + 358: uint8(16), + 359: uint8(16), + 360: uint8(16), + 361: uint8(16), + 362: uint8(75), + 363: uint8(76), + 364: uint8(16), + 365: uint8(16), + 366: uint8(16), + 367: uint8(77), + 368: uint8(16), + 369: uint8(16), + 370: uint8(16), + 371: uint8(16), + 372: uint8(16), + 373: uint8(16), + 374: uint8(16), + 375: uint8(16), + 376: uint8(16), + 377: uint8(16), + 378: uint8(16), + 379: uint8(16), + 380: uint8(16), + 381: uint8(16), + 382: uint8(16), + 383: uint8(16), + 384: uint8(16), + 385: uint8(16), + 386: uint8(16), + 387: uint8(16), + 388: uint8(16), + 389: uint8(16), + 390: uint8(16), + 391: uint8(16), + 392: uint8(16), + 393: uint8(16), + 394: uint8(16), + 395: uint8(16), + 396: uint8(16), + 397: uint8(16), + 398: uint8(16), + 399: uint8(16), + 400: uint8(16), + 401: uint8(16), + 402: uint8(16), + 403: uint8(16), + 404: uint8(16), + 405: uint8(16), + 406: uint8(16), + 407: uint8(16), + 408: uint8(16), + 409: uint8(16), + 410: uint8(16), + 411: uint8(16), + 412: uint8(16), + 413: uint8(16), + 414: uint8(16), + 415: uint8(16), + 416: uint8(16), + 417: uint8(16), + 418: uint8(16), + 419: uint8(16), + 420: uint8(16), + 421: uint8(16), + 422: uint8(16), + 423: uint8(16), + 424: uint8(16), + 425: uint8(16), + 426: uint8(16), + 427: uint8(16), + 428: uint8(16), + 429: uint8(16), + 430: uint8(16), + 431: uint8(16), + 432: uint8(16), + 433: uint8(16), + 434: uint8(16), + 435: uint8(16), + 436: uint8(16), + 437: uint8(16), + 438: uint8(16), + 439: uint8(16), + 440: uint8(16), + 441: uint8(16), + 442: uint8(16), + 443: uint8(16), + 444: uint8(78), + 445: uint8(16), + 446: uint8(16), + 447: uint8(16), + 448: uint8(16), + 449: uint8(16), + 450: uint8(16), + 451: uint8(16), + 452: uint8(16), + 453: uint8(16), + 454: uint8(16), + 455: uint8(16), + 456: uint8(16), + 457: uint8(16), + 458: uint8(16), + 459: uint8(16), + 460: uint8(16), + 461: uint8(16), + 462: uint8(16), + 463: uint8(16), + 464: uint8(16), + 465: uint8(79), + 466: uint8(80), + 467: uint8(16), + 468: uint8(16), + 469: uint8(16), + 470: uint8(16), + 471: uint8(16), + 472: uint8(16), + 473: uint8(16), + 474: uint8(81), + 475: uint8(16), + 476: uint8(16), + 477: uint8(16), + 478: uint8(16), + 479: uint8(16), + 480: uint8(82), + 481: uint8(83), + 482: uint8(84), + 483: uint8(16), + 484: uint8(16), + 485: uint8(16), + 486: uint8(16), + 487: uint8(16), + 488: uint8(85), + 489: uint8(86), + 490: uint8(16), + 491: uint8(16), + 492: uint8(16), + 493: uint8(16), + 494: uint8(16), + 495: uint8(16), + 496: uint8(16), + 497: uint8(16), + 498: uint8(16), + 499: uint8(16), + 500: uint8(16), + 501: uint8(16), + 502: uint8(16), + 503: uint8(16), + 504: uint8(16), + 505: uint8(16), + 506: uint8(16), + 507: uint8(16), + 508: uint8(16), + 509: uint8(16), + 510: uint8(16), + 511: uint8(16), + 544: uint8(255), + 545: uint8(255), + 546: uint8(255), + 547: uint8(255), + 548: uint8(255), + 549: uint8(255), + 550: uint8(255), + 551: uint8(255), + 552: uint8(255), + 553: uint8(255), + 554: uint8(255), + 555: uint8(255), + 556: uint8(255), + 557: uint8(255), + 558: uint8(255), + 559: uint8(255), + 560: uint8(255), + 561: uint8(255), + 562: uint8(255), + 563: uint8(255), + 564: uint8(255), + 565: uint8(255), + 566: uint8(255), + 567: uint8(255), + 568: uint8(255), + 569: uint8(255), + 570: uint8(255), + 571: uint8(255), + 572: uint8(255), + 573: uint8(255), + 574: uint8(255), + 575: uint8(255), + 576: uint8(255), + 577: uint8(255), + 578: uint8(255), + 579: uint8(255), + 580: uint8(255), + 581: uint8(255), + 582: uint8(255), + 583: uint8(255), + 584: uint8(255), + 585: uint8(255), + 586: uint8(255), + 587: uint8(255), + 588: uint8(255), + 589: uint8(255), + 624: uint8(248), + 625: uint8(3), + 658: uint8(254), + 659: uint8(255), + 660: uint8(255), + 661: uint8(255), + 662: uint8(255), + 663: uint8(191), + 664: uint8(182), + 672: uint8(63), + 674: uint8(255), + 675: uint8(23), + 681: uint8(248), + 682: uint8(255), + 683: uint8(255), + 686: uint8(1), + 698: uint8(192), + 699: uint8(191), + 700: uint8(159), + 701: uint8(61), + 705: uint8(128), + 706: uint8(2), + 710: uint8(255), + 711: uint8(255), + 712: uint8(255), + 713: uint8(7), + 724: uint8(192), + 725: uint8(255), + 726: uint8(1), + 733: uint8(248), + 734: uint8(15), + 735: uint8(32), + 738: uint8(192), + 739: uint8(251), + 740: uint8(239), + 741: uint8(62), + 747: uint8(14), + 762: uint8(248), + 763: uint8(255), + 764: uint8(255), + 765: uint8(255), + 766: uint8(255), + 767: uint8(255), + 768: uint8(7), + 775: uint8(20), + 776: uint8(254), + 777: uint8(33), + 778: uint8(254), + 780: uint8(12), + 784: uint8(2), + 791: uint8(16), + 792: uint8(30), + 793: uint8(32), + 796: uint8(12), + 799: uint8(64), + 800: uint8(6), + 807: uint8(16), + 808: uint8(134), + 809: uint8(57), + 810: uint8(2), + 814: uint8(35), + 816: uint8(6), + 823: uint8(16), + 824: uint8(190), + 825: uint8(33), + 828: uint8(12), + 831: uint8(252), + 832: uint8(2), + 839: uint8(144), + 840: uint8(30), + 841: uint8(32), + 842: uint8(64), + 844: uint8(12), + 848: uint8(4), + 856: uint8(1), + 857: uint8(32), + 864: uint8(17), + 871: uint8(192), + 872: uint8(193), + 873: uint8(61), + 874: uint8(96), + 876: uint8(12), + 880: uint8(2), + 887: uint8(144), + 888: uint8(64), + 889: uint8(48), + 892: uint8(12), + 896: uint8(3), + 903: uint8(24), + 904: uint8(30), + 905: uint8(32), + 908: uint8(12), + 921: uint8(4), + 922: uint8(92), + 934: uint8(242), + 935: uint8(7), + 936: uint8(128), + 937: uint8(127), + 950: uint8(242), + 951: uint8(31), + 953: uint8(63), + 963: uint8(3), + 966: uint8(160), + 967: uint8(2), + 974: uint8(254), + 975: uint8(127), + 976: uint8(223), + 977: uint8(224), + 978: uint8(255), + 979: uint8(254), + 980: uint8(255), + 981: uint8(255), + 982: uint8(255), + 983: uint8(31), + 984: uint8(64), + 997: uint8(224), + 998: uint8(253), + 999: uint8(102), + 1003: uint8(195), + 1004: uint8(1), + 1006: uint8(30), + 1008: uint8(100), + 1009: uint8(32), + 1011: uint8(32), + 1036: uint8(255), + 1037: uint8(255), + 1038: uint8(255), + 1039: uint8(255), + 1040: uint8(255), + 1041: uint8(255), + 1042: uint8(255), + 1043: uint8(255), + 1044: uint8(255), + 1045: uint8(255), + 1046: uint8(255), + 1047: uint8(255), + 1048: uint8(255), + 1049: uint8(255), + 1050: uint8(255), + 1051: uint8(255), + 1052: uint8(255), + 1053: uint8(255), + 1054: uint8(255), + 1055: uint8(255), + 1067: uint8(224), + 1090: uint8(28), + 1094: uint8(28), + 1098: uint8(12), + 1102: uint8(12), + 1110: uint8(176), + 1111: uint8(63), + 1112: uint8(64), + 1113: uint8(254), + 1114: uint8(15), + 1115: uint8(32), + 1121: uint8(120), + 1136: uint8(96), + 1141: uint8(2), + 1156: uint8(135), + 1157: uint8(1), + 1158: uint8(4), + 1159: uint8(14), + 1186: uint8(128), + 1187: uint8(9), + 1194: uint8(64), + 1195: uint8(127), + 1196: uint8(229), + 1197: uint8(31), + 1198: uint8(248), + 1199: uint8(159), + 1206: uint8(255), + 1207: uint8(127), + 1216: uint8(15), + 1222: uint8(208), + 1223: uint8(23), + 1224: uint8(4), + 1229: uint8(248), + 1230: uint8(15), + 1232: uint8(3), + 1236: uint8(60), + 1237: uint8(59), + 1244: uint8(64), + 1245: uint8(163), + 1246: uint8(3), + 1253: uint8(240), + 1254: uint8(207), + 1274: uint8(247), + 1275: uint8(255), + 1276: uint8(253), + 1277: uint8(33), + 1278: uint8(16), + 1279: uint8(3), + 1304: uint8(255), + 1305: uint8(255), + 1306: uint8(255), + 1307: uint8(255), + 1308: uint8(255), + 1309: uint8(255), + 1310: uint8(255), + 1311: uint8(251), + 1313: uint8(248), + 1317: uint8(124), + 1324: uint8(223), + 1325: uint8(255), + 1338: uint8(255), + 1339: uint8(255), + 1340: uint8(255), + 1341: uint8(255), + 1342: uint8(1), + 1373: uint8(128), + 1374: uint8(3), + 1391: uint8(128), + 1404: uint8(255), + 1405: uint8(255), + 1406: uint8(255), + 1407: uint8(255), + 1413: uint8(60), + 1427: uint8(6), + 1453: uint8(128), + 1454: uint8(247), + 1455: uint8(63), + 1459: uint8(192), + 1470: uint8(3), + 1472: uint8(68), + 1473: uint8(8), + 1476: uint8(96), + 1496: uint8(48), + 1500: uint8(255), + 1501: uint8(255), + 1502: uint8(3), + 1503: uint8(128), + 1508: uint8(192), + 1509: uint8(63), + 1512: uint8(128), + 1513: uint8(255), + 1514: uint8(3), + 1520: uint8(7), + 1526: uint8(200), + 1527: uint8(51), + 1532: uint8(32), + 1541: uint8(126), + 1542: uint8(102), + 1544: uint8(8), + 1545: uint8(16), + 1551: uint8(16), + 1558: uint8(157), + 1559: uint8(193), + 1560: uint8(2), + 1565: uint8(48), + 1566: uint8(64), + 1596: uint8(32), + 1597: uint8(33), + 1622: uint8(255), + 1623: uint8(255), + 1624: uint8(255), + 1625: uint8(255), + 1626: uint8(255), + 1627: uint8(255), + 1628: uint8(255), + 1629: uint8(255), + 1630: uint8(255), + 1631: uint8(255), + 1635: uint8(64), + 1664: uint8(255), + 1665: uint8(255), + 1668: uint8(255), + 1669: uint8(255), + 1695: uint8(128), + 1727: uint8(14), + 1759: uint8(32), + 1788: uint8(1), + 1806: uint8(192), + 1807: uint8(7), + 1824: uint8(110), + 1825: uint8(240), + 1831: uint8(135), + 1852: uint8(96), + 1860: uint8(240), + 1896: uint8(192), + 1897: uint8(255), + 1898: uint8(1), + 1920: uint8(2), + 1927: uint8(255), + 1928: uint8(127), + 1935: uint8(128), + 1936: uint8(3), + 1942: uint8(120), + 1943: uint8(38), + 1945: uint8(32), + 1952: uint8(7), + 1956: uint8(128), + 1957: uint8(239), + 1958: uint8(31), + 1966: uint8(8), + 1968: uint8(3), + 1974: uint8(192), + 1975: uint8(127), + 1977: uint8(30), + 1989: uint8(128), + 1990: uint8(211), + 1991: uint8(64), + 2011: uint8(128), + 2012: uint8(248), + 2013: uint8(7), + 2016: uint8(3), + 2023: uint8(24), + 2024: uint8(1), + 2028: uint8(192), + 2029: uint8(31), + 2030: uint8(31), + 2055: uint8(255), + 2056: uint8(92), + 2059: uint8(64), + 2070: uint8(248), + 2071: uint8(133), + 2072: uint8(13), + 2102: uint8(60), + 2103: uint8(176), + 2104: uint8(1), + 2107: uint8(48), + 2118: uint8(248), + 2119: uint8(167), + 2120: uint8(1), + 2133: uint8(40), + 2134: uint8(191), + 2147: uint8(224), + 2148: uint8(188), + 2149: uint8(15), + 2181: uint8(128), + 2182: uint8(255), + 2183: uint8(6), + 2234: uint8(240), + 2235: uint8(12), + 2236: uint8(1), + 2240: uint8(254), + 2241: uint8(7), + 2246: uint8(248), + 2247: uint8(121), + 2248: uint8(128), + 2250: uint8(126), + 2251: uint8(14), + 2257: uint8(252), + 2258: uint8(127), + 2259: uint8(3), + 2278: uint8(127), + 2279: uint8(191), + 2290: uint8(252), + 2291: uint8(255), + 2292: uint8(255), + 2293: uint8(252), + 2294: uint8(109), + 2310: uint8(126), + 2311: uint8(180), + 2312: uint8(191), + 2322: uint8(163), + 2366: uint8(24), + 2374: uint8(255), + 2375: uint8(1), + 2430: uint8(31), + 2438: uint8(127), + 2473: uint8(128), + 2481: uint8(128), + 2482: uint8(7), + 2515: uint8(96), + 2516: uint8(15), + 2540: uint8(128), + 2541: uint8(3), + 2542: uint8(248), + 2543: uint8(255), + 2544: uint8(231), + 2545: uint8(15), + 2549: uint8(60), + 2568: uint8(28), + 2592: uint8(255), + 2593: uint8(255), + 2594: uint8(255), + 2595: uint8(255), + 2596: uint8(255), + 2597: uint8(255), + 2598: uint8(127), + 2599: uint8(248), + 2600: uint8(255), + 2601: uint8(255), + 2602: uint8(255), + 2603: uint8(255), + 2604: uint8(255), + 2605: uint8(31), + 2606: uint8(32), + 2608: uint8(16), + 2611: uint8(248), + 2612: uint8(254), + 2613: uint8(255), + 2624: uint8(127), + 2625: uint8(255), + 2626: uint8(255), + 2627: uint8(249), + 2628: uint8(219), + 2629: uint8(7), + 2662: uint8(127), + 2717: uint8(240), + 2746: uint8(127), + 2760: uint8(240), + 2761: uint8(7), +} + +var _wtable = [1600]uint8{ + 0: uint8(16), + 1: uint8(16), + 2: uint8(16), + 3: uint8(16), + 4: uint8(16), + 5: uint8(16), + 6: uint8(16), + 7: uint8(16), + 8: uint8(16), + 9: uint8(16), + 10: uint8(16), + 11: uint8(16), + 12: uint8(16), + 13: uint8(16), + 14: uint8(16), + 15: uint8(16), + 16: uint8(16), + 17: uint8(18), + 18: uint8(16), + 19: uint8(16), + 20: uint8(16), + 21: uint8(16), + 22: uint8(16), + 23: uint8(16), + 24: uint8(16), + 25: uint8(16), + 26: uint8(16), + 27: uint8(16), + 28: uint8(16), + 29: uint8(16), + 30: uint8(16), + 31: uint8(16), + 32: uint8(16), + 33: uint8(16), + 34: uint8(16), + 35: uint8(19), + 36: uint8(16), + 37: uint8(20), + 38: uint8(21), + 39: uint8(22), + 40: uint8(16), + 41: uint8(16), + 42: uint8(16), + 43: uint8(23), + 44: uint8(16), + 45: uint8(16), + 46: uint8(24), + 47: uint8(25), + 48: uint8(26), + 49: uint8(27), + 50: uint8(28), + 51: uint8(17), + 52: uint8(17), + 53: uint8(17), + 54: uint8(17), + 55: uint8(17), + 56: uint8(17), + 57: uint8(17), + 58: uint8(17), + 59: uint8(17), + 60: uint8(17), + 61: uint8(17), + 62: uint8(17), + 63: uint8(17), + 64: uint8(17), + 65: uint8(17), + 66: uint8(17), + 67: uint8(17), + 68: uint8(17), + 69: uint8(17), + 70: uint8(17), + 71: uint8(17), + 72: uint8(17), + 73: uint8(17), + 74: uint8(17), + 75: uint8(17), + 76: uint8(17), + 77: uint8(29), + 78: uint8(17), + 79: uint8(17), + 80: uint8(17), + 81: uint8(17), + 82: uint8(17), + 83: uint8(17), + 84: uint8(17), + 85: uint8(17), + 86: uint8(17), + 87: uint8(17), + 88: uint8(17), + 89: uint8(17), + 90: uint8(17), + 91: uint8(17), + 92: uint8(17), + 93: uint8(17), + 94: uint8(17), + 95: uint8(17), + 96: uint8(17), + 97: uint8(17), + 98: uint8(17), + 99: uint8(17), + 100: uint8(17), + 101: uint8(17), + 102: uint8(17), + 103: uint8(17), + 104: uint8(17), + 105: uint8(17), + 106: uint8(17), + 107: uint8(17), + 108: uint8(17), + 109: uint8(17), + 110: uint8(17), + 111: uint8(17), + 112: uint8(17), + 113: uint8(17), + 114: uint8(17), + 115: uint8(17), + 116: uint8(17), + 117: uint8(17), + 118: uint8(17), + 119: uint8(17), + 120: uint8(17), + 121: uint8(17), + 122: uint8(17), + 123: uint8(17), + 124: uint8(17), + 125: uint8(17), + 126: uint8(17), + 127: uint8(17), + 128: uint8(17), + 129: uint8(17), + 130: uint8(17), + 131: uint8(17), + 132: uint8(17), + 133: uint8(17), + 134: uint8(17), + 135: uint8(17), + 136: uint8(17), + 137: uint8(17), + 138: uint8(17), + 139: uint8(17), + 140: uint8(17), + 141: uint8(17), + 142: uint8(17), + 143: uint8(17), + 144: uint8(17), + 145: uint8(17), + 146: uint8(17), + 147: uint8(17), + 148: uint8(17), + 149: uint8(17), + 150: uint8(17), + 151: uint8(17), + 152: uint8(17), + 153: uint8(17), + 154: uint8(17), + 155: uint8(17), + 156: uint8(17), + 157: uint8(17), + 158: uint8(17), + 159: uint8(17), + 160: uint8(17), + 161: uint8(17), + 162: uint8(17), + 163: uint8(17), + 164: uint8(30), + 165: uint8(16), + 166: uint8(16), + 167: uint8(16), + 168: uint8(16), + 169: uint8(31), + 170: uint8(16), + 171: uint8(16), + 172: uint8(17), + 173: uint8(17), + 174: uint8(17), + 175: uint8(17), + 176: uint8(17), + 177: uint8(17), + 178: uint8(17), + 179: uint8(17), + 180: uint8(17), + 181: uint8(17), + 182: uint8(17), + 183: uint8(17), + 184: uint8(17), + 185: uint8(17), + 186: uint8(17), + 187: uint8(17), + 188: uint8(17), + 189: uint8(17), + 190: uint8(17), + 191: uint8(17), + 192: uint8(17), + 193: uint8(17), + 194: uint8(17), + 195: uint8(17), + 196: uint8(17), + 197: uint8(17), + 198: uint8(17), + 199: uint8(17), + 200: uint8(17), + 201: uint8(17), + 202: uint8(17), + 203: uint8(17), + 204: uint8(17), + 205: uint8(17), + 206: uint8(17), + 207: uint8(17), + 208: uint8(17), + 209: uint8(17), + 210: uint8(17), + 211: uint8(17), + 212: uint8(17), + 213: uint8(17), + 214: uint8(17), + 215: uint8(32), + 216: uint8(16), + 217: uint8(16), + 218: uint8(16), + 219: uint8(16), + 220: uint8(16), + 221: uint8(16), + 222: uint8(16), + 223: uint8(16), + 224: uint8(16), + 225: uint8(16), + 226: uint8(16), + 227: uint8(16), + 228: uint8(16), + 229: uint8(16), + 230: uint8(16), + 231: uint8(16), + 232: uint8(16), + 233: uint8(16), + 234: uint8(16), + 235: uint8(16), + 236: uint8(16), + 237: uint8(16), + 238: uint8(16), + 239: uint8(16), + 240: uint8(16), + 241: uint8(16), + 242: uint8(16), + 243: uint8(16), + 244: uint8(16), + 245: uint8(16), + 246: uint8(16), + 247: uint8(16), + 248: uint8(16), + 249: uint8(17), + 250: uint8(17), + 251: uint8(16), + 252: uint8(16), + 253: uint8(16), + 254: uint8(33), + 255: uint8(34), + 256: uint8(16), + 257: uint8(16), + 258: uint8(16), + 259: uint8(16), + 260: uint8(16), + 261: uint8(16), + 262: uint8(16), + 263: uint8(16), + 264: uint8(16), + 265: uint8(16), + 266: uint8(16), + 267: uint8(16), + 268: uint8(16), + 269: uint8(16), + 270: uint8(16), + 271: uint8(16), + 272: uint8(16), + 273: uint8(16), + 274: uint8(16), + 275: uint8(16), + 276: uint8(16), + 277: uint8(16), + 278: uint8(16), + 279: uint8(16), + 280: uint8(16), + 281: uint8(16), + 282: uint8(16), + 283: uint8(16), + 284: uint8(16), + 285: uint8(16), + 286: uint8(16), + 287: uint8(16), + 288: uint8(16), + 289: uint8(16), + 290: uint8(16), + 291: uint8(16), + 292: uint8(16), + 293: uint8(16), + 294: uint8(16), + 295: uint8(16), + 296: uint8(16), + 297: uint8(16), + 298: uint8(16), + 299: uint8(16), + 300: uint8(16), + 301: uint8(16), + 302: uint8(16), + 303: uint8(16), + 304: uint8(16), + 305: uint8(16), + 306: uint8(16), + 307: uint8(16), + 308: uint8(16), + 309: uint8(16), + 310: uint8(16), + 311: uint8(16), + 312: uint8(16), + 313: uint8(16), + 314: uint8(16), + 315: uint8(16), + 316: uint8(16), + 317: uint8(16), + 318: uint8(16), + 319: uint8(16), + 320: uint8(16), + 321: uint8(16), + 322: uint8(16), + 323: uint8(16), + 324: uint8(16), + 325: uint8(16), + 326: uint8(16), + 327: uint8(16), + 328: uint8(16), + 329: uint8(16), + 330: uint8(16), + 331: uint8(16), + 332: uint8(16), + 333: uint8(16), + 334: uint8(16), + 335: uint8(16), + 336: uint8(16), + 337: uint8(16), + 338: uint8(16), + 339: uint8(16), + 340: uint8(16), + 341: uint8(16), + 342: uint8(16), + 343: uint8(16), + 344: uint8(16), + 345: uint8(16), + 346: uint8(16), + 347: uint8(16), + 348: uint8(16), + 349: uint8(16), + 350: uint8(16), + 351: uint8(16), + 352: uint8(16), + 353: uint8(16), + 354: uint8(16), + 355: uint8(16), + 356: uint8(16), + 357: uint8(16), + 358: uint8(16), + 359: uint8(16), + 360: uint8(16), + 361: uint8(16), + 362: uint8(16), + 363: uint8(16), + 364: uint8(16), + 365: uint8(16), + 366: uint8(16), + 367: uint8(35), + 368: uint8(17), + 369: uint8(17), + 370: uint8(17), + 371: uint8(17), + 372: uint8(17), + 373: uint8(17), + 374: uint8(17), + 375: uint8(17), + 376: uint8(17), + 377: uint8(17), + 378: uint8(17), + 379: uint8(17), + 380: uint8(17), + 381: uint8(17), + 382: uint8(17), + 383: uint8(17), + 384: uint8(17), + 385: uint8(17), + 386: uint8(17), + 387: uint8(17), + 388: uint8(17), + 389: uint8(17), + 390: uint8(17), + 391: uint8(36), + 392: uint8(17), + 393: uint8(17), + 394: uint8(37), + 395: uint8(16), + 396: uint8(16), + 397: uint8(16), + 398: uint8(16), + 399: uint8(16), + 400: uint8(16), + 401: uint8(16), + 402: uint8(16), + 403: uint8(16), + 404: uint8(16), + 405: uint8(16), + 406: uint8(16), + 407: uint8(16), + 408: uint8(16), + 409: uint8(16), + 410: uint8(16), + 411: uint8(16), + 412: uint8(16), + 413: uint8(16), + 414: uint8(16), + 415: uint8(16), + 416: uint8(16), + 417: uint8(16), + 418: uint8(16), + 419: uint8(16), + 420: uint8(16), + 421: uint8(16), + 422: uint8(16), + 423: uint8(16), + 424: uint8(16), + 425: uint8(16), + 426: uint8(16), + 427: uint8(16), + 428: uint8(16), + 429: uint8(16), + 430: uint8(16), + 431: uint8(16), + 432: uint8(17), + 433: uint8(38), + 434: uint8(39), + 435: uint8(16), + 436: uint8(16), + 437: uint8(16), + 438: uint8(16), + 439: uint8(16), + 440: uint8(16), + 441: uint8(16), + 442: uint8(16), + 443: uint8(16), + 444: uint8(16), + 445: uint8(16), + 446: uint8(16), + 447: uint8(16), + 448: uint8(16), + 449: uint8(16), + 450: uint8(16), + 451: uint8(16), + 452: uint8(16), + 453: uint8(16), + 454: uint8(16), + 455: uint8(16), + 456: uint8(16), + 457: uint8(16), + 458: uint8(16), + 459: uint8(16), + 460: uint8(16), + 461: uint8(16), + 462: uint8(16), + 463: uint8(16), + 464: uint8(16), + 465: uint8(16), + 466: uint8(16), + 467: uint8(16), + 468: uint8(16), + 469: uint8(16), + 470: uint8(16), + 471: uint8(16), + 472: uint8(16), + 473: uint8(16), + 474: uint8(16), + 475: uint8(16), + 476: uint8(16), + 477: uint8(16), + 478: uint8(16), + 479: uint8(16), + 480: uint8(16), + 481: uint8(16), + 482: uint8(16), + 483: uint8(16), + 484: uint8(16), + 485: uint8(16), + 486: uint8(16), + 487: uint8(16), + 488: uint8(16), + 489: uint8(16), + 490: uint8(16), + 491: uint8(16), + 492: uint8(16), + 493: uint8(16), + 494: uint8(16), + 495: uint8(16), + 496: uint8(40), + 497: uint8(41), + 498: uint8(42), + 499: uint8(43), + 500: uint8(44), + 501: uint8(45), + 502: uint8(46), + 503: uint8(47), + 504: uint8(16), + 505: uint8(48), + 506: uint8(49), + 507: uint8(16), + 508: uint8(16), + 509: uint8(16), + 510: uint8(16), + 511: uint8(16), + 544: uint8(255), + 545: uint8(255), + 546: uint8(255), + 547: uint8(255), + 548: uint8(255), + 549: uint8(255), + 550: uint8(255), + 551: uint8(255), + 552: uint8(255), + 553: uint8(255), + 554: uint8(255), + 555: uint8(255), + 556: uint8(255), + 557: uint8(255), + 558: uint8(255), + 559: uint8(255), + 560: uint8(255), + 561: uint8(255), + 562: uint8(255), + 563: uint8(255), + 564: uint8(255), + 565: uint8(255), + 566: uint8(255), + 567: uint8(255), + 568: uint8(255), + 569: uint8(255), + 570: uint8(255), + 571: uint8(255), + 572: uint8(255), + 573: uint8(255), + 574: uint8(255), + 575: uint8(255), + 576: uint8(255), + 577: uint8(255), + 578: uint8(255), + 579: uint8(255), + 580: uint8(255), + 581: uint8(255), + 582: uint8(255), + 583: uint8(255), + 584: uint8(255), + 585: uint8(255), + 586: uint8(255), + 587: uint8(255), + 611: uint8(12), + 613: uint8(6), + 637: uint8(30), + 638: uint8(9), + 671: uint8(96), + 674: uint8(48), + 681: uint8(255), + 682: uint8(15), + 687: uint8(128), + 690: uint8(8), + 692: uint8(2), + 693: uint8(12), + 695: uint8(96), + 696: uint8(48), + 697: uint8(64), + 698: uint8(16), + 701: uint8(4), + 702: uint8(44), + 703: uint8(36), + 704: uint8(32), + 705: uint8(12), + 709: uint8(1), + 713: uint8(80), + 714: uint8(184), + 722: uint8(224), + 726: uint8(1), + 727: uint8(128), + 739: uint8(24), + 746: uint8(33), + 784: uint8(255), + 785: uint8(255), + 786: uint8(255), + 787: uint8(251), + 788: uint8(255), + 789: uint8(255), + 790: uint8(255), + 791: uint8(255), + 792: uint8(255), + 793: uint8(255), + 794: uint8(255), + 795: uint8(255), + 796: uint8(255), + 797: uint8(255), + 798: uint8(15), + 800: uint8(255), + 801: uint8(255), + 802: uint8(255), + 803: uint8(255), + 804: uint8(255), + 805: uint8(255), + 806: uint8(255), + 807: uint8(255), + 808: uint8(255), + 809: uint8(255), + 810: uint8(255), + 811: uint8(255), + 812: uint8(255), + 813: uint8(255), + 814: uint8(255), + 815: uint8(255), + 816: uint8(255), + 817: uint8(255), + 818: uint8(255), + 819: uint8(255), + 820: uint8(255), + 821: uint8(255), + 822: uint8(255), + 823: uint8(255), + 824: uint8(255), + 825: uint8(255), + 826: uint8(63), + 830: uint8(255), + 831: uint8(15), + 832: uint8(255), + 833: uint8(255), + 834: uint8(255), + 835: uint8(255), + 836: uint8(255), + 837: uint8(255), + 838: uint8(255), + 839: uint8(127), + 840: uint8(254), + 841: uint8(255), + 842: uint8(255), + 843: uint8(255), + 844: uint8(255), + 845: uint8(255), + 846: uint8(255), + 847: uint8(255), + 848: uint8(255), + 849: uint8(255), + 850: uint8(127), + 851: uint8(254), + 852: uint8(255), + 853: uint8(255), + 854: uint8(255), + 855: uint8(255), + 856: uint8(255), + 857: uint8(255), + 858: uint8(255), + 859: uint8(255), + 860: uint8(255), + 861: uint8(255), + 862: uint8(255), + 863: uint8(255), + 864: uint8(224), + 865: uint8(255), + 866: uint8(255), + 867: uint8(255), + 868: uint8(255), + 869: uint8(255), + 870: uint8(254), + 871: uint8(255), + 872: uint8(255), + 873: uint8(255), + 874: uint8(255), + 875: uint8(255), + 876: uint8(255), + 877: uint8(255), + 878: uint8(255), + 879: uint8(255), + 880: uint8(255), + 881: uint8(127), + 882: uint8(255), + 883: uint8(255), + 884: uint8(255), + 885: uint8(255), + 886: uint8(255), + 887: uint8(7), + 888: uint8(255), + 889: uint8(255), + 890: uint8(255), + 891: uint8(255), + 892: uint8(15), + 894: uint8(255), + 895: uint8(255), + 896: uint8(255), + 897: uint8(255), + 898: uint8(255), + 899: uint8(127), + 900: uint8(255), + 901: uint8(255), + 902: uint8(255), + 903: uint8(255), + 904: uint8(255), + 906: uint8(255), + 907: uint8(255), + 908: uint8(255), + 909: uint8(255), + 910: uint8(255), + 911: uint8(255), + 912: uint8(255), + 913: uint8(255), + 914: uint8(255), + 915: uint8(255), + 916: uint8(255), + 917: uint8(255), + 918: uint8(255), + 919: uint8(255), + 920: uint8(255), + 921: uint8(255), + 922: uint8(255), + 923: uint8(255), + 924: uint8(255), + 925: uint8(255), + 926: uint8(255), + 927: uint8(255), + 928: uint8(255), + 929: uint8(255), + 930: uint8(255), + 931: uint8(255), + 932: uint8(255), + 933: uint8(255), + 934: uint8(255), + 935: uint8(255), + 936: uint8(255), + 937: uint8(255), + 938: uint8(255), + 939: uint8(255), + 940: uint8(255), + 941: uint8(255), + 942: uint8(255), + 943: uint8(255), + 944: uint8(255), + 945: uint8(255), + 946: uint8(255), + 947: uint8(255), + 948: uint8(255), + 949: uint8(255), + 950: uint8(255), + 951: uint8(255), + 960: uint8(255), + 961: uint8(255), + 962: uint8(255), + 963: uint8(255), + 964: uint8(255), + 965: uint8(255), + 966: uint8(255), + 967: uint8(255), + 968: uint8(255), + 969: uint8(255), + 970: uint8(255), + 971: uint8(255), + 972: uint8(255), + 973: uint8(255), + 974: uint8(255), + 975: uint8(255), + 976: uint8(255), + 977: uint8(31), + 978: uint8(255), + 979: uint8(255), + 980: uint8(255), + 981: uint8(255), + 982: uint8(255), + 983: uint8(255), + 984: uint8(127), + 1004: uint8(255), + 1005: uint8(255), + 1006: uint8(255), + 1007: uint8(31), + 1024: uint8(255), + 1025: uint8(255), + 1026: uint8(255), + 1027: uint8(255), + 1028: uint8(255), + 1029: uint8(255), + 1030: uint8(255), + 1031: uint8(255), + 1032: uint8(255), + 1033: uint8(255), + 1034: uint8(255), + 1035: uint8(255), + 1036: uint8(255), + 1037: uint8(255), + 1038: uint8(255), + 1039: uint8(255), + 1040: uint8(255), + 1041: uint8(255), + 1042: uint8(255), + 1043: uint8(255), + 1044: uint8(15), + 1058: uint8(255), + 1059: uint8(3), + 1062: uint8(255), + 1063: uint8(255), + 1064: uint8(255), + 1065: uint8(255), + 1066: uint8(247), + 1067: uint8(255), + 1068: uint8(127), + 1069: uint8(15), + 1088: uint8(254), + 1089: uint8(255), + 1090: uint8(255), + 1091: uint8(255), + 1092: uint8(255), + 1093: uint8(255), + 1094: uint8(255), + 1095: uint8(255), + 1096: uint8(255), + 1097: uint8(255), + 1098: uint8(255), + 1099: uint8(255), + 1100: uint8(1), + 1116: uint8(127), + 1148: uint8(15), + 1152: uint8(255), + 1153: uint8(255), + 1154: uint8(255), + 1155: uint8(255), + 1156: uint8(255), + 1157: uint8(255), + 1158: uint8(255), + 1159: uint8(255), + 1160: uint8(255), + 1161: uint8(255), + 1162: uint8(255), + 1163: uint8(255), + 1164: uint8(255), + 1165: uint8(255), + 1166: uint8(255), + 1167: uint8(255), + 1168: uint8(255), + 1169: uint8(255), + 1170: uint8(255), + 1171: uint8(255), + 1172: uint8(255), + 1173: uint8(255), + 1174: uint8(255), + 1175: uint8(255), + 1176: uint8(255), + 1177: uint8(255), + 1178: uint8(255), + 1179: uint8(255), + 1180: uint8(255), + 1181: uint8(255), + 1182: uint8(255), + 1184: uint8(255), + 1185: uint8(255), + 1186: uint8(255), + 1187: uint8(255), + 1188: uint8(255), + 1189: uint8(255), + 1190: uint8(255), + 1191: uint8(255), + 1192: uint8(255), + 1193: uint8(255), + 1194: uint8(255), + 1195: uint8(255), + 1196: uint8(255), + 1197: uint8(255), + 1198: uint8(255), + 1199: uint8(255), + 1200: uint8(255), + 1201: uint8(255), + 1202: uint8(255), + 1203: uint8(255), + 1204: uint8(255), + 1205: uint8(255), + 1206: uint8(255), + 1207: uint8(255), + 1208: uint8(255), + 1209: uint8(255), + 1210: uint8(255), + 1211: uint8(255), + 1212: uint8(255), + 1213: uint8(255), + 1214: uint8(7), + 1216: uint8(255), + 1217: uint8(255), + 1218: uint8(255), + 1219: uint8(127), + 1226: uint8(7), + 1228: uint8(240), + 1230: uint8(255), + 1231: uint8(255), + 1232: uint8(255), + 1233: uint8(255), + 1234: uint8(255), + 1235: uint8(255), + 1236: uint8(255), + 1237: uint8(255), + 1238: uint8(255), + 1239: uint8(255), + 1240: uint8(255), + 1241: uint8(255), + 1242: uint8(255), + 1243: uint8(255), + 1244: uint8(255), + 1245: uint8(255), + 1246: uint8(255), + 1247: uint8(255), + 1248: uint8(255), + 1249: uint8(255), + 1250: uint8(255), + 1251: uint8(255), + 1252: uint8(255), + 1253: uint8(255), + 1254: uint8(255), + 1255: uint8(255), + 1256: uint8(255), + 1257: uint8(255), + 1258: uint8(255), + 1259: uint8(255), + 1260: uint8(255), + 1261: uint8(255), + 1262: uint8(255), + 1263: uint8(255), + 1264: uint8(255), + 1265: uint8(255), + 1266: uint8(255), + 1267: uint8(255), + 1268: uint8(255), + 1269: uint8(255), + 1270: uint8(255), + 1271: uint8(255), + 1272: uint8(255), + 1273: uint8(255), + 1274: uint8(255), + 1275: uint8(255), + 1276: uint8(255), + 1277: uint8(255), + 1278: uint8(255), + 1279: uint8(15), + 1280: uint8(16), + 1305: uint8(128), + 1329: uint8(64), + 1330: uint8(254), + 1331: uint8(7), + 1344: uint8(7), + 1346: uint8(255), + 1347: uint8(255), + 1348: uint8(255), + 1349: uint8(255), + 1350: uint8(255), + 1351: uint8(15), + 1352: uint8(255), + 1353: uint8(1), + 1354: uint8(3), + 1356: uint8(63), + 1376: uint8(255), + 1377: uint8(255), + 1378: uint8(255), + 1379: uint8(255), + 1380: uint8(1), + 1381: uint8(224), + 1382: uint8(191), + 1383: uint8(255), + 1384: uint8(255), + 1385: uint8(255), + 1386: uint8(255), + 1387: uint8(255), + 1388: uint8(255), + 1389: uint8(255), + 1390: uint8(255), + 1391: uint8(223), + 1392: uint8(255), + 1393: uint8(255), + 1394: uint8(15), + 1396: uint8(255), + 1397: uint8(255), + 1398: uint8(255), + 1399: uint8(255), + 1400: uint8(255), + 1401: uint8(135), + 1402: uint8(15), + 1404: uint8(255), + 1405: uint8(255), + 1406: uint8(17), + 1407: uint8(255), + 1408: uint8(255), + 1409: uint8(255), + 1410: uint8(255), + 1411: uint8(255), + 1412: uint8(255), + 1413: uint8(255), + 1414: uint8(255), + 1415: uint8(127), + 1416: uint8(253), + 1417: uint8(255), + 1418: uint8(255), + 1419: uint8(255), + 1420: uint8(255), + 1421: uint8(255), + 1422: uint8(255), + 1423: uint8(255), + 1424: uint8(255), + 1425: uint8(255), + 1426: uint8(255), + 1427: uint8(255), + 1428: uint8(255), + 1429: uint8(255), + 1430: uint8(255), + 1431: uint8(255), + 1432: uint8(255), + 1433: uint8(255), + 1434: uint8(255), + 1435: uint8(255), + 1436: uint8(255), + 1437: uint8(255), + 1438: uint8(255), + 1439: uint8(159), + 1440: uint8(255), + 1441: uint8(255), + 1442: uint8(255), + 1443: uint8(255), + 1444: uint8(255), + 1445: uint8(255), + 1446: uint8(255), + 1447: uint8(63), + 1449: uint8(120), + 1450: uint8(255), + 1451: uint8(255), + 1452: uint8(255), + 1455: uint8(4), + 1458: uint8(96), + 1460: uint8(16), + 1471: uint8(248), + 1472: uint8(255), + 1473: uint8(255), + 1474: uint8(255), + 1475: uint8(255), + 1476: uint8(255), + 1477: uint8(255), + 1478: uint8(255), + 1479: uint8(255), + 1480: uint8(255), + 1481: uint8(255), + 1488: uint8(255), + 1489: uint8(255), + 1490: uint8(255), + 1491: uint8(255), + 1492: uint8(255), + 1493: uint8(255), + 1494: uint8(255), + 1495: uint8(255), + 1496: uint8(63), + 1497: uint8(16), + 1498: uint8(39), + 1501: uint8(24), + 1502: uint8(240), + 1503: uint8(7), + 1532: uint8(255), + 1533: uint8(15), + 1537: uint8(224), + 1538: uint8(255), + 1539: uint8(255), + 1540: uint8(255), + 1541: uint8(255), + 1542: uint8(255), + 1543: uint8(255), + 1544: uint8(255), + 1545: uint8(255), + 1546: uint8(255), + 1547: uint8(255), + 1548: uint8(255), + 1549: uint8(255), + 1550: uint8(123), + 1551: uint8(252), + 1552: uint8(255), + 1553: uint8(255), + 1554: uint8(255), + 1555: uint8(255), + 1556: uint8(231), + 1557: uint8(199), + 1558: uint8(255), + 1559: uint8(255), + 1560: uint8(255), + 1561: uint8(231), + 1562: uint8(255), + 1563: uint8(255), + 1564: uint8(255), + 1565: uint8(255), + 1566: uint8(255), + 1567: uint8(255), + 1582: uint8(15), + 1583: uint8(7), + 1584: uint8(7), + 1586: uint8(63), +} + +func Xwcwidth(tls *TLS, wc Twchar_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1, v2 int32 + _, _ = v1, v2 + if wc < uint32(0xff) { + if (wc+uint32(1))&uint32(0x7f) >= uint32(0x21) { + v1 = int32(1) + } else { + if wc != 0 { + v2 = -int32(1) + } else { + v2 = 0 + } + v1 = v2 + } + return v1 + } + if wc&uint32(0xfffeffff) < uint32(0xfffe) { + if Int32FromUint8(_table5[Uint32FromInt32(Int32FromUint8(_table5[wc>>int32(8)])*int32(32))+wc&uint32(255)>>int32(3)])>>(wc&uint32(7))&int32(1) != 0 { + return 0 + } + if Int32FromUint8(_wtable[Uint32FromInt32(Int32FromUint8(_wtable[wc>>int32(8)])*int32(32))+wc&uint32(255)>>int32(3)])>>(wc&uint32(7))&int32(1) != 0 { + return int32(2) + } + return int32(1) + } + if wc&uint32(0xfffe) == uint32(0xfffe) { + return -int32(1) + } + if wc-uint32(0x20000) < uint32(0x20000) { + return int32(2) + } + if wc == uint32(0xe0001) || wc-uint32(0xe0020) < uint32(0x5f) || wc-uint32(0xe0100) < uint32(0xef) { + return 0 + } + return int32(1) +} + +const d_fileno = 0 + +type Tino_t = uint64 + +type Tdirent = struct { + F__ccgo_align [0]uint32 + Fd_ino Tino_t + Fd_off Toff_t + Fd_reclen uint16 + Fd_type uint8 + Fd_name [256]uint8 + F__ccgo_pad5 [5]byte +} + +func Xalphasort(tls *TLS, a uintptr, b uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v a=%v b=%v, (%v:)", tls, a, b, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrcoll(tls, **(**uintptr)(__ccgo_up(a))+19, **(**uintptr)(__ccgo_up(b))+19) +} + +type TDIR = struct { + F__ccgo_align [0]uint32 + Ftell Toff_t + Ffd int32 + Fbuf_pos int32 + Fbuf_end int32 + Flock [1]int32 + Fbuf [2048]uint8 +} + +type t__dirstream = TDIR + +func Xclosedir(tls *TLS, dir uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v dir=%v, (%v:)", tls, dir, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret int32 + _ = ret + ret = Xclose(tls, (*TDIR)(unsafe.Pointer(dir)).Ffd) + Xfree(tls, dir) + return ret +} + +func Xdirfd(tls *TLS, d uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v d=%v, (%v:)", tls, d, origin(2)) + defer func() { trc("-> %v", r) }() + } + return (*TDIR)(unsafe.Pointer(d)).Ffd +} + +const AT_EACCESS = 512 +const AT_FDCWD = -100 +const AT_REMOVEDIR = 512 +const AT_SYMLINK_FOLLOW = 1024 +const AT_SYMLINK_NOFOLLOW = 256 +const FD_CLOEXEC = 1 +const F_DUPFD = 0 +const F_DUPFD_CLOEXEC = 1030 +const F_GETFD = 1 +const F_GETFL = 3 +const F_GETLK = 12 +const F_GETOWN = 9 +const F_GETOWNER_UIDS = 17 +const F_GETOWN_EX = 16 +const F_GETSIG = 11 +const F_OFD_GETLK = 36 +const F_OFD_SETLK = 37 +const F_OFD_SETLKW = 38 +const F_RDLCK = 0 +const F_SETFD = 2 +const F_SETFL = 4 +const F_SETLK = 13 +const F_SETLKW = 14 +const F_SETOWN = 8 +const F_SETOWN_EX = 15 +const F_SETSIG = 10 +const F_UNLCK = 2 +const F_WRLCK = 1 +const O_ACCMODE = 2097155 +const O_APPEND = 1024 +const O_ASYNC = 8192 +const O_CLOEXEC = 524288 +const O_CREAT = 64 +const O_DIRECT = 65536 +const O_DIRECTORY = 16384 +const O_DSYNC = 4096 +const O_EXCL = 128 +const O_EXEC = 2097152 +const O_LARGEFILE = 131072 +const O_NDELAY = 2048 +const O_NOATIME = 262144 +const O_NOCTTY = 256 +const O_NOFOLLOW = 32768 +const O_NONBLOCK = 2048 +const O_PATH = 2097152 +const O_RDONLY = 0 +const O_RDWR = 2 +const O_RSYNC = 1052672 +const O_SEARCH = 2097152 +const O_SYNC = 1052672 +const O_TMPFILE = 4210688 +const O_TRUNC = 512 +const O_TTY_INIT = 0 +const O_WRONLY = 1 +const POSIX_FADV_DONTNEED = 4 +const POSIX_FADV_NOREUSE = 5 +const POSIX_FADV_NORMAL = 0 +const POSIX_FADV_RANDOM = 1 +const POSIX_FADV_SEQUENTIAL = 2 +const POSIX_FADV_WILLNEED = 3 +const S_IFBLK = 24576 +const S_IFCHR = 8192 +const S_IFDIR = 16384 +const S_IFIFO = 4096 +const S_IFLNK = 40960 +const S_IFMT = 61440 +const S_IFREG = 32768 +const S_IFSOCK = 49152 +const S_IRGRP = 32 +const S_IROTH = 4 +const S_IRUSR = 256 +const S_IRWXG = 56 +const S_IRWXO = 7 +const S_IRWXU = 448 +const S_ISGID = 1024 +const S_ISUID = 2048 +const S_ISVTX = 512 +const S_IWGRP = 16 +const S_IWOTH = 2 +const S_IWUSR = 128 +const S_IXGRP = 8 +const S_IXOTH = 1 +const S_IXUSR = 64 +const UTIME_NOW = 1073741823 +const UTIME_OMIT = 1073741822 + +type Tflock = struct { + F__ccgo_align [0]uint32 + Fl_type int16 + Fl_whence int16 + F__ccgo_align2 [4]byte + Fl_start Toff_t + Fl_len Toff_t + Fl_pid Tpid_t + F__ccgo_pad5 [4]byte +} + +type Tnlink_t = uint32 + +type Tdev_t = uint64 + +type Tblksize_t = int32 + +type Tblkcnt_t = int64 + +type Tstat = struct { + F__ccgo_align [0]uint32 + Fst_dev Tdev_t + F__st_dev_padding int32 + F__st_ino_truncated int32 + Fst_mode Tmode_t + Fst_nlink Tnlink_t + Fst_uid Tuid_t + Fst_gid Tgid_t + Fst_rdev Tdev_t + F__st_rdev_padding int32 + F__ccgo_align9 [4]byte + Fst_size Toff_t + Fst_blksize Tblksize_t + F__ccgo_align11 [4]byte + Fst_blocks Tblkcnt_t + F__st_atim32 struct { + Ftv_sec int32 + Ftv_nsec int32 + } + F__st_mtim32 struct { + Ftv_sec int32 + Ftv_nsec int32 + } + F__st_ctim32 struct { + Ftv_sec int32 + Ftv_nsec int32 + } + Fst_ino Tino_t + Fst_atim Ttimespec + Fst_mtim Ttimespec + Fst_ctim Ttimespec +} + +func Xfdopendir(tls *TLS, fd int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(176) + defer tls.Free(176) + var dir, v1 uintptr + var _ /* st at bp+0 */ Tstat + _, _ = dir, v1 + if Xfstat(tls, fd, bp) < 0 { + return uintptr(0) + } + if Xfcntl(tls, fd, int32(F_GETFL), 0)&int32(O_PATH) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EBADF) + return uintptr(0) + } + if !((**(**Tstat)(__ccgo_up(bp))).Fst_mode&Uint32FromInt32(S_IFMT) == Uint32FromInt32(S_IFDIR)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOTDIR) + return uintptr(0) + } + v1 = Xcalloc(tls, uint32(1), uint32(2072)) + dir = v1 + if !(v1 != 0) { + return uintptr(0) + } + Xfcntl(tls, fd, int32(F_SETFD), VaList(bp+160, int32(FD_CLOEXEC))) + (*TDIR)(unsafe.Pointer(dir)).Ffd = fd + return dir +} + +const AT_EMPTY_PATH = 4096 +const AT_NO_AUTOMOUNT = 2048 +const AT_RECURSIVE = 32768 +const AT_STATX_DONT_SYNC = 16384 +const AT_STATX_FORCE_SYNC = 8192 +const AT_STATX_SYNC_AS_STAT = 0 +const AT_STATX_SYNC_TYPE = 24576 +const DN_ACCESS = 1 +const DN_ATTRIB = 32 +const DN_CREATE = 4 +const DN_DELETE = 8 +const DN_MODIFY = 2 +const DN_MULTISHOT = 2147483648 +const DN_RENAME = 16 +const DT_BLK = 6 +const DT_CHR = 2 +const DT_DIR = 4 +const DT_FIFO = 1 +const DT_LNK = 10 +const DT_REG = 8 +const DT_SOCK = 12 +const DT_UNKNOWN = 0 +const DT_WHT = 14 +const FALLOC_FL_KEEP_SIZE = 1 +const FALLOC_FL_PUNCH_HOLE = 2 +const FAPPEND = 1024 +const FASYNC = 8192 +const FFSYNC = 1052672 +const FNDELAY = 2048 +const FNONBLOCK = 2048 +const F_ADD_SEALS = 1033 +const F_CANCELLK = 1029 +const F_GETLEASE = 1025 +const F_GETPIPE_SZ = 1032 +const F_GET_FILE_RW_HINT = 1037 +const F_GET_RW_HINT = 1035 +const F_GET_SEALS = 1034 +const F_NOTIFY = 1026 +const F_OWNER_GID = 2 +const F_OWNER_PGRP = 2 +const F_OWNER_PID = 1 +const F_OWNER_TID = 0 +const F_SEAL_FUTURE_WRITE = 16 +const F_SEAL_GROW = 4 +const F_SEAL_SEAL = 1 +const F_SEAL_SHRINK = 2 +const F_SEAL_WRITE = 8 +const F_SETLEASE = 1024 +const F_SETPIPE_SZ = 1031 +const F_SET_FILE_RW_HINT = 1038 +const F_SET_RW_HINT = 1036 +const MAX_HANDLE_SZ = 128 +const RWF_WRITE_LIFE_NOT_SET = 0 +const RWH_WRITE_LIFE_EXTREME = 5 +const RWH_WRITE_LIFE_LONG = 4 +const RWH_WRITE_LIFE_MEDIUM = 3 +const RWH_WRITE_LIFE_NONE = 1 +const RWH_WRITE_LIFE_SHORT = 2 +const SPLICE_F_GIFT = 8 +const SPLICE_F_MORE = 4 +const SPLICE_F_MOVE = 1 +const SPLICE_F_NONBLOCK = 2 +const SYNC_FILE_RANGE_WAIT_AFTER = 4 +const SYNC_FILE_RANGE_WAIT_BEFORE = 1 +const SYNC_FILE_RANGE_WRITE = 2 +const alloca = 0 +const loff_t = 0 + +type Tiovec = struct { + Fiov_base uintptr + Fiov_len Tsize_t +} + +type Tfile_handle = struct { + Fhandle_bytes uint32 + Fhandle_type int32 +} + +type Tf_owner_ex = struct { + Ftype1 int32 + Fpid Tpid_t +} + +func Xopendir(tls *TLS, name uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + var dir, v2 uintptr + var fd, v1 int32 + _, _, _, _ = dir, fd, v1, v2 + v1 = Xopen(tls, name, Int32FromInt32(O_RDONLY)|Int32FromInt32(O_DIRECTORY)|Int32FromInt32(O_CLOEXEC), 0) + fd = v1 + if v1 < 0 { + return uintptr(0) + } + v2 = Xcalloc(tls, uint32(1), uint32(2072)) + dir = v2 + if !(v2 != 0) { + X__syscall1(tls, int32(SYS_close), fd) + return uintptr(0) + } + (*TDIR)(unsafe.Pointer(dir)).Ffd = fd + return dir +} + +type Tptrdiff_t = int32 + +type Tdirstream_buf_alignment_check = [1]uint8 + +func Xreaddir(tls *TLS, dir uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v dir=%v, (%v:)", tls, dir, origin(2)) + defer func() { trc("-> %v", r) }() + } + var de uintptr + var len1 int32 + _, _ = de, len1 + if (*TDIR)(unsafe.Pointer(dir)).Fbuf_pos >= (*TDIR)(unsafe.Pointer(dir)).Fbuf_end { + len1 = int32(X__syscall3(tls, int32(SYS_getdents64), (*TDIR)(unsafe.Pointer(dir)).Ffd, int32(dir+24), Int32FromUint32(Uint32FromInt64(2048)))) + if len1 <= 0 { + if len1 < 0 && len1 != -int32(ENOENT) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = -len1 + } + return uintptr(0) + } + (*TDIR)(unsafe.Pointer(dir)).Fbuf_end = len1 + (*TDIR)(unsafe.Pointer(dir)).Fbuf_pos = 0 + } + de = dir + 24 + uintptr((*TDIR)(unsafe.Pointer(dir)).Fbuf_pos) + **(**int32)(__ccgo_up(dir + 12)) += Int32FromUint16((*Tdirent)(unsafe.Pointer(de)).Fd_reclen) + (*TDIR)(unsafe.Pointer(dir)).Ftell = (*Tdirent)(unsafe.Pointer(de)).Fd_off + return de +} + +func Xreaddir_r(tls *TLS, dir uintptr, buf uintptr, result uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v dir=%v buf=%v result=%v, (%v:)", tls, dir, buf, result, origin(2)) + defer func() { trc("-> %v", r) }() + } + var de uintptr + var errno_save, ret, v1 int32 + _, _, _, _ = de, errno_save, ret, v1 + errno_save = **(**int32)(__ccgo_up(X__errno_location(tls))) + ___lock(tls, dir+20) + **(**int32)(__ccgo_up(X__errno_location(tls))) = 0 + de = Xreaddir(tls, dir) + v1 = **(**int32)(__ccgo_up(X__errno_location(tls))) + ret = v1 + if v1 != 0 { + ___unlock(tls, dir+20) + return ret + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = errno_save + if de != 0 { + _memcpy(tls, buf, de, uint32((*Tdirent)(unsafe.Pointer(de)).Fd_reclen)) + } else { + buf = UintptrFromInt32(0) + } + ___unlock(tls, dir+20) + **(**uintptr)(__ccgo_up(result)) = buf + return 0 +} + +func Xrewinddir(tls *TLS, dir uintptr) { + if __ccgo_strace { + trc("tls=%v dir=%v, (%v:)", tls, dir, origin(2)) + } + var v1 int32 + _ = v1 + ___lock(tls, dir+20) + Xlseek(tls, (*TDIR)(unsafe.Pointer(dir)).Ffd, 0, SEEK_SET) + v1 = Int32FromInt32(0) + (*TDIR)(unsafe.Pointer(dir)).Fbuf_end = v1 + (*TDIR)(unsafe.Pointer(dir)).Fbuf_pos = v1 + (*TDIR)(unsafe.Pointer(dir)).Ftell = 0 + ___unlock(tls, dir+20) +} + +type t__ccgo_fp__Xscandir_2 = func(*TLS, uintptr) int32 + +type t__ccgo_fp__Xscandir_3 = func(*TLS, uintptr, uintptr) int32 + +func Xscandir(tls *TLS, path uintptr, res uintptr, __ccgo_fp_sel uintptr, __ccgo_fp_cmp uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v res=%v __ccgo_fp_sel=%v __ccgo_fp_cmp=%v, (%v:)", tls, path, res, __ccgo_fp_sel, __ccgo_fp_cmp, origin(2)) + defer func() { trc("-> %v", r) }() + } + var cnt, len1, v2 Tsize_t + var d, de, names, tmp, v1 uintptr + var old_errno int32 + _, _, _, _, _, _, _, _, _ = cnt, d, de, len1, names, old_errno, tmp, v1, v2 + d = Xopendir(tls, path) + names = uintptr(0) + cnt = uint32(0) + len1 = uint32(0) + old_errno = **(**int32)(__ccgo_up(X__errno_location(tls))) + if !(d != 0) { + return -int32(1) + } + for { + **(**int32)(__ccgo_up(X__errno_location(tls))) = 0 + v1 = Xreaddir(tls, d) + de = v1 + if !(v1 != 0) { + break + } + if __ccgo_fp_sel != 0 && !((*(*func(*TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_sel})))(tls, de) != 0) { + continue + } + if cnt >= len1 { + len1 = uint32(2)*len1 + uint32(1) + if len1 > Uint32FromUint32(0xffffffff)/Uint32FromInt64(4) { + break + } + tmp = Xrealloc(tls, names, len1*uint32(4)) + if !(tmp != 0) { + break + } + names = tmp + } + **(**uintptr)(__ccgo_up(names + uintptr(cnt)*4)) = Xmalloc(tls, uint32((*Tdirent)(unsafe.Pointer(de)).Fd_reclen)) + if !(**(**uintptr)(__ccgo_up(names + uintptr(cnt)*4)) != 0) { + break + } + v2 = cnt + cnt = cnt + 1 + _memcpy(tls, **(**uintptr)(__ccgo_up(names + uintptr(v2)*4)), de, uint32((*Tdirent)(unsafe.Pointer(de)).Fd_reclen)) + } + Xclosedir(tls, d) + if **(**int32)(__ccgo_up(X__errno_location(tls))) != 0 { + if names != 0 { + for { + v2 = cnt + cnt = cnt - 1 + if !(v2 > uint32(0)) { + break + } + Xfree(tls, **(**uintptr)(__ccgo_up(names + uintptr(cnt)*4))) + } + } + Xfree(tls, names) + return -int32(1) + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = old_errno + if __ccgo_fp_cmp != 0 { + Xqsort(tls, names, cnt, uint32(4), __ccgo_fp_cmp) + } + **(**uintptr)(__ccgo_up(res)) = names + return Int32FromUint32(cnt) +} + +func Xseekdir(tls *TLS, dir uintptr, off int32) { + if __ccgo_strace { + trc("tls=%v dir=%v off=%v, (%v:)", tls, dir, off, origin(2)) + } + var v1 int32 + _ = v1 + ___lock(tls, dir+20) + (*TDIR)(unsafe.Pointer(dir)).Ftell = Xlseek(tls, (*TDIR)(unsafe.Pointer(dir)).Ffd, int64(off), SEEK_SET) + v1 = Int32FromInt32(0) + (*TDIR)(unsafe.Pointer(dir)).Fbuf_end = v1 + (*TDIR)(unsafe.Pointer(dir)).Fbuf_pos = v1 + ___unlock(tls, dir+20) +} + +func Xtelldir(tls *TLS, dir uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v dir=%v, (%v:)", tls, dir, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32((*TDIR)(unsafe.Pointer(dir)).Ftell) +} + +func Xversionsort(tls *TLS, a uintptr, b uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v a=%v b=%v, (%v:)", tls, a, b, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrverscmp(tls, **(**uintptr)(__ccgo_up(a))+19, **(**uintptr)(__ccgo_up(b))+19) +} + +func X__reset_tls(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + var i, n Tsize_t + var mem, p uintptr + var self Tpthread_t + _, _, _, _, _ = i, mem, n, p, self + self = uintptr(___get_tp(tls)) + n = **(**Tuintptr_t)(__ccgo_up((*t__pthread)(unsafe.Pointer(self)).Fdtv)) + if n != 0 { + p = X__libc.Ftls_head + i = Uint32FromInt32(1) + for { + if !(i <= n) { + break + } + mem = uintptr(**(**Tuintptr_t)(__ccgo_up((*t__pthread)(unsafe.Pointer(self)).Fdtv + uintptr(i)*4)) - Uint32FromInt32(DTP_OFFSET)) + _memcpy(tls, mem, (*Ttls_module)(unsafe.Pointer(p)).Fimage, (*Ttls_module)(unsafe.Pointer(p)).Flen1) + Xmemset(tls, mem+uintptr((*Ttls_module)(unsafe.Pointer(p)).Flen1), 0, (*Ttls_module)(unsafe.Pointer(p)).Fsize-(*Ttls_module)(unsafe.Pointer(p)).Flen1) + goto _1 + _1: + ; + i = i + 1 + p = (*Ttls_module)(unsafe.Pointer(p)).Fnext + } + } +} + +func X__init_ssp(tls *TLS, entropy uintptr) { + if __ccgo_strace { + trc("tls=%v entropy=%v, (%v:)", tls, entropy, origin(2)) + } + if entropy != 0 { + _memcpy(tls, uintptr(unsafe.Pointer(&X__stack_chk_guard)), entropy, uint32(4)) + } else { + X__stack_chk_guard = Tuintptr_t(uintptr(unsafe.Pointer(&X__stack_chk_guard))) * uint32(1103515245) + } + (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Fcanary = X__stack_chk_guard +} + +func X__stack_chk_fail(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + _a_crash(tls) +} + +func X__stack_chk_fail_local(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + X__stack_chk_fail(tls) +} + +const L_INCR = 1 +const L_SET = 0 +const L_XTND = 2 + +func _dummy(tls *TLS, old uintptr, new1 uintptr) { +} + +func Xclearenv(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + var e, v1 uintptr + _, _ = e, v1 + e = Xenviron + Xenviron = uintptr(0) + if e != 0 { + for **(**uintptr)(__ccgo_up(e)) != 0 { + v1 = e + e += 4 + X__env_rm_add(tls, **(**uintptr)(__ccgo_up(v1)), uintptr(0)) + } + } + return 0 +} + +func Xgetenv(tls *TLS, name uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + var e uintptr + var l Tsize_t + _, _ = e, l + l = Uint32FromInt32(int32(X__strchrnul(tls, name, int32('='))) - int32(name)) + if l != 0 && !(**(**uint8)(__ccgo_up(name + uintptr(l))) != 0) && Xenviron != 0 { + e = Xenviron + for { + if !(**(**uintptr)(__ccgo_up(e)) != 0) { + break + } + if !(Xstrncmp(tls, name, **(**uintptr)(__ccgo_up(e)), l) != 0) && Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(e)) + uintptr(l)))) == int32('=') { + return **(**uintptr)(__ccgo_up(e)) + uintptr(l) + uintptr(1) + } + goto _1 + _1: + ; + e += 4 + } + } + return uintptr(0) +} + +func _dummy1(tls *TLS, old uintptr, new1 uintptr) { +} + +func X__putenv(tls *TLS, s uintptr, l Tsize_t, r uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v s=%v l=%v r=%v, (%v:)", tls, s, l, r, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var e, newenv, tmp, v2 uintptr + var i Tsize_t + _, _, _, _, _ = e, i, newenv, tmp, v2 + i = uint32(0) + if Xenviron != 0 { + e = Xenviron + for { + if !(**(**uintptr)(__ccgo_up(e)) != 0) { + break + } + if !(Xstrncmp(tls, s, **(**uintptr)(__ccgo_up(e)), l+uint32(1)) != 0) { + tmp = **(**uintptr)(__ccgo_up(e)) + **(**uintptr)(__ccgo_up(e)) = s + X__env_rm_add(tls, tmp, r) + return 0 + } + goto _1 + _1: + ; + e += 4 + i = i + 1 + } + } + if Xenviron == _oldenv { + newenv = Xrealloc(tls, _oldenv, uint32(4)*(i+uint32(2))) + if !(newenv != 0) { + goto oom + } + } else { + newenv = Xmalloc(tls, uint32(4)*(i+uint32(2))) + if !(newenv != 0) { + goto oom + } + if i != 0 { + _memcpy(tls, newenv, Xenviron, uint32(4)*i) + } + Xfree(tls, _oldenv) + } + **(**uintptr)(__ccgo_up(newenv + uintptr(i)*4)) = s + **(**uintptr)(__ccgo_up(newenv + uintptr(i+uint32(1))*4)) = uintptr(0) + v2 = newenv + _oldenv = v2 + Xenviron = v2 + if r != 0 { + X__env_rm_add(tls, uintptr(0), r) + } + return 0 + goto oom +oom: + ; + Xfree(tls, r) + return -int32(1) +} + +var _oldenv uintptr + +func Xputenv(tls *TLS, s uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l Tsize_t + _ = l + l = Uint32FromInt32(int32(X__strchrnul(tls, s, int32('='))) - int32(s)) + if !(l != 0) || !(**(**uint8)(__ccgo_up(s + uintptr(l))) != 0) { + return Xunsetenv(tls, s) + } + return X__putenv(tls, s, l, uintptr(0)) +} + +const L_cuserid = 20 +const NL_NMAX = 16 + +type Tcookie_io_functions_t = struct { + Fread uintptr + Fwrite uintptr + Fseek uintptr + Fclose1 uintptr +} + +type T_IO_cookie_io_functions_t = Tcookie_io_functions_t + +func Xsecure_getenv(tls *TLS, name uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 uintptr + _ = v1 + if X__libc.Fsecure != 0 { + v1 = UintptrFromInt32(0) + } else { + v1 = Xgetenv(tls, name) + } + return v1 +} + +func X__env_rm_add(tls *TLS, old uintptr, new1 uintptr) { + if __ccgo_strace { + trc("tls=%v old=%v new1=%v, (%v:)", tls, old, new1, origin(2)) + } + var i, v3 Tsize_t + var t, v2 uintptr + _, _, _, _ = i, t, v2, v3 + i = uint32(0) + for { + if !(i < _env_alloced_n) { + break + } + if **(**uintptr)(__ccgo_up(_env_alloced + uintptr(i)*4)) == old { + **(**uintptr)(__ccgo_up(_env_alloced + uintptr(i)*4)) = new1 + Xfree(tls, old) + return + } else { + if !(**(**uintptr)(__ccgo_up(_env_alloced + uintptr(i)*4)) != 0) && new1 != 0 { + **(**uintptr)(__ccgo_up(_env_alloced + uintptr(i)*4)) = new1 + new1 = uintptr(0) + } + } + goto _1 + _1: + ; + i = i + 1 + } + if !(new1 != 0) { + return + } + t = Xrealloc(tls, _env_alloced, uint32(4)*(_env_alloced_n+uint32(1))) + if !(t != 0) { + return + } + v2 = t + _env_alloced = v2 + v3 = _env_alloced_n + _env_alloced_n = _env_alloced_n + 1 + **(**uintptr)(__ccgo_up(v2 + uintptr(v3)*4)) = new1 +} + +var _env_alloced uintptr + +var _env_alloced_n Tsize_t + +func Xsetenv(tls *TLS, var1 uintptr, value uintptr, overwrite int32) (r int32) { + if __ccgo_strace { + trc("tls=%v var1=%v value=%v overwrite=%v, (%v:)", tls, var1, value, overwrite, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l1, l2, v1 Tsize_t + var s uintptr + var v2 bool + _, _, _, _, _ = l1, l2, s, v1, v2 + if v2 = !(var1 != 0); !v2 { + v1 = Uint32FromInt32(int32(X__strchrnul(tls, var1, int32('='))) - int32(var1)) + l1 = v1 + } + if v2 || !(v1 != 0) || **(**uint8)(__ccgo_up(var1 + uintptr(l1))) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + if !(overwrite != 0) && Xgetenv(tls, var1) != 0 { + return 0 + } + l2 = _strlen(tls, value) + s = Xmalloc(tls, l1+l2+uint32(2)) + if !(s != 0) { + return -int32(1) + } + _memcpy(tls, s, var1, l1) + **(**uint8)(__ccgo_up(s + uintptr(l1))) = uint8('=') + _memcpy(tls, s+uintptr(l1)+uintptr(1), value, l2+uint32(1)) + return X__putenv(tls, s, l1, s) +} + +func _dummy2(tls *TLS, old uintptr, new1 uintptr) { +} + +func Xunsetenv(tls *TLS, name uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + var e, eo, v2 uintptr + var l Tsize_t + _, _, _, _ = e, eo, l, v2 + l = Uint32FromInt32(int32(X__strchrnul(tls, name, int32('='))) - int32(name)) + if !(l != 0) || **(**uint8)(__ccgo_up(name + uintptr(l))) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + if Xenviron != 0 { + e = Xenviron + eo = e + for { + if !(**(**uintptr)(__ccgo_up(e)) != 0) { + break + } + if !(Xstrncmp(tls, name, **(**uintptr)(__ccgo_up(e)), l) != 0) && Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(e)) + uintptr(l)))) == int32('=') { + X__env_rm_add(tls, **(**uintptr)(__ccgo_up(e)), uintptr(0)) + } else { + if eo != e { + v2 = eo + eo += 4 + **(**uintptr)(__ccgo_up(v2)) = **(**uintptr)(__ccgo_up(e)) + } else { + eo += 4 + } + } + goto _1 + _1: + ; + e += 4 + } + if eo != e { + **(**uintptr)(__ccgo_up(eo)) = uintptr(0) + } + } + return 0 +} + +/* mips has one error code outside of the 8-bit range due to a + * historical typo, so we just remap it. */ + +type Terrmsgstr_t = struct { + Fstr0 [21]uint8 + FstrEILSEQ [22]uint8 + FstrEDOM [13]uint8 + FstrERANGE [25]uint8 + FstrENOTTY [10]uint8 + FstrEACCES [18]uint8 + FstrEPERM [24]uint8 + FstrENOENT [26]uint8 + FstrESRCH [16]uint8 + FstrEEXIST [12]uint8 + FstrEOVERFLOW [30]uint8 + FstrENOSPC [24]uint8 + FstrENOMEM [14]uint8 + FstrEBUSY [14]uint8 + FstrEINTR [24]uint8 + FstrEAGAIN [33]uint8 + FstrESPIPE [13]uint8 + FstrEXDEV [18]uint8 + FstrEROFS [22]uint8 + FstrENOTEMPTY [20]uint8 + FstrECONNRESET [25]uint8 + FstrETIMEDOUT [20]uint8 + FstrECONNREFUSED [19]uint8 + FstrEHOSTDOWN [13]uint8 + FstrEHOSTUNREACH [20]uint8 + FstrEADDRINUSE [15]uint8 + FstrEPIPE [12]uint8 + FstrEIO [10]uint8 + FstrENXIO [26]uint8 + FstrENOTBLK [22]uint8 + FstrENODEV [15]uint8 + FstrENOTDIR [16]uint8 + FstrEISDIR [15]uint8 + FstrETXTBSY [15]uint8 + FstrENOEXEC [18]uint8 + FstrEINVAL [17]uint8 + FstrE2BIG [23]uint8 + FstrELOOP [19]uint8 + FstrENAMETOOLONG [18]uint8 + FstrENFILE [30]uint8 + FstrEMFILE [30]uint8 + FstrEBADF [20]uint8 + FstrECHILD [17]uint8 + FstrEFAULT [12]uint8 + FstrEFBIG [15]uint8 + FstrEMLINK [15]uint8 + FstrENOLCK [19]uint8 + FstrEDEADLK [30]uint8 + FstrENOTRECOVERABLE [22]uint8 + FstrEOWNERDEAD [20]uint8 + FstrECANCELED [19]uint8 + FstrENOSYS [25]uint8 + FstrENOMSG [27]uint8 + FstrEIDRM [19]uint8 + FstrENOSTR [20]uint8 + FstrENODATA [18]uint8 + FstrETIME [15]uint8 + FstrENOSR [25]uint8 + FstrENOLINK [22]uint8 + FstrEPROTO [15]uint8 + FstrEBADMSG [12]uint8 + FstrEBADFD [29]uint8 + FstrENOTSOCK [13]uint8 + FstrEDESTADDRREQ [29]uint8 + FstrEMSGSIZE [18]uint8 + FstrEPROTOTYPE [31]uint8 + FstrENOPROTOOPT [23]uint8 + FstrEPROTONOSUPPORT [23]uint8 + FstrESOCKTNOSUPPORT [26]uint8 + FstrENOTSUP [14]uint8 + FstrEPFNOSUPPORT [30]uint8 + FstrEAFNOSUPPORT [41]uint8 + FstrEADDRNOTAVAIL [22]uint8 + FstrENETDOWN [16]uint8 + FstrENETUNREACH [20]uint8 + FstrENETRESET [28]uint8 + FstrECONNABORTED [19]uint8 + FstrENOBUFS [26]uint8 + FstrEISCONN [20]uint8 + FstrENOTCONN [21]uint8 + FstrESHUTDOWN [34]uint8 + FstrEALREADY [30]uint8 + FstrEINPROGRESS [22]uint8 + FstrESTALE [18]uint8 + FstrEREMOTEIO [17]uint8 + FstrEDQUOT [15]uint8 + FstrENOMEDIUM [16]uint8 + FstrEMEDIUMTYPE [18]uint8 + FstrEMULTIHOP [19]uint8 + FstrENOKEY [27]uint8 + FstrEKEYEXPIRED [16]uint8 + FstrEKEYREVOKED [21]uint8 + FstrEKEYREJECTED [28]uint8 +} + +/* mips has one error code outside of the 8-bit range due to a + * historical typo, so we just remap it. */ + +var _errmsgstr = Terrmsgstr_t{ + Fstr0: [21]uint8{'N', 'o', ' ', 'e', 'r', 'r', 'o', 'r', ' ', 'i', 'n', 'f', 'o', 'r', 'm', 'a', 't', 'i', 'o', 'n'}, + FstrEILSEQ: [22]uint8{'I', 'l', 'l', 'e', 'g', 'a', 'l', ' ', 'b', 'y', 't', 'e', ' ', 's', 'e', 'q', 'u', 'e', 'n', 'c', 'e'}, + FstrEDOM: [13]uint8{'D', 'o', 'm', 'a', 'i', 'n', ' ', 'e', 'r', 'r', 'o', 'r'}, + FstrERANGE: [25]uint8{'R', 'e', 's', 'u', 'l', 't', ' ', 'n', 'o', 't', ' ', 'r', 'e', 'p', 'r', 'e', 's', 'e', 'n', 't', 'a', 'b', 'l', 'e'}, + FstrENOTTY: [10]uint8{'N', 'o', 't', ' ', 'a', ' ', 't', 't', 'y'}, + FstrEACCES: [18]uint8{'P', 'e', 'r', 'm', 'i', 's', 's', 'i', 'o', 'n', ' ', 'd', 'e', 'n', 'i', 'e', 'd'}, + FstrEPERM: [24]uint8{'O', 'p', 'e', 'r', 'a', 't', 'i', 'o', 'n', ' ', 'n', 'o', 't', ' ', 'p', 'e', 'r', 'm', 'i', 't', 't', 'e', 'd'}, + FstrENOENT: [26]uint8{'N', 'o', ' ', 's', 'u', 'c', 'h', ' ', 'f', 'i', 'l', 'e', ' ', 'o', 'r', ' ', 'd', 'i', 'r', 'e', 'c', 't', 'o', 'r', 'y'}, + FstrESRCH: [16]uint8{'N', 'o', ' ', 's', 'u', 'c', 'h', ' ', 'p', 'r', 'o', 'c', 'e', 's', 's'}, + FstrEEXIST: [12]uint8{'F', 'i', 'l', 'e', ' ', 'e', 'x', 'i', 's', 't', 's'}, + FstrEOVERFLOW: [30]uint8{'V', 'a', 'l', 'u', 'e', ' ', 't', 'o', 'o', ' ', 'l', 'a', 'r', 'g', 'e', ' ', 'f', 'o', 'r', ' ', 'd', 'a', 't', 'a', ' ', 't', 'y', 'p', 'e'}, + FstrENOSPC: [24]uint8{'N', 'o', ' ', 's', 'p', 'a', 'c', 'e', ' ', 'l', 'e', 'f', 't', ' ', 'o', 'n', ' ', 'd', 'e', 'v', 'i', 'c', 'e'}, + FstrENOMEM: [14]uint8{'O', 'u', 't', ' ', 'o', 'f', ' ', 'm', 'e', 'm', 'o', 'r', 'y'}, + FstrEBUSY: [14]uint8{'R', 'e', 's', 'o', 'u', 'r', 'c', 'e', ' ', 'b', 'u', 's', 'y'}, + FstrEINTR: [24]uint8{'I', 'n', 't', 'e', 'r', 'r', 'u', 'p', 't', 'e', 'd', ' ', 's', 'y', 's', 't', 'e', 'm', ' ', 'c', 'a', 'l', 'l'}, + FstrEAGAIN: [33]uint8{'R', 'e', 's', 'o', 'u', 'r', 'c', 'e', ' ', 't', 'e', 'm', 'p', 'o', 'r', 'a', 'r', 'i', 'l', 'y', ' ', 'u', 'n', 'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e'}, + FstrESPIPE: [13]uint8{'I', 'n', 'v', 'a', 'l', 'i', 'd', ' ', 's', 'e', 'e', 'k'}, + FstrEXDEV: [18]uint8{'C', 'r', 'o', 's', 's', '-', 'd', 'e', 'v', 'i', 'c', 'e', ' ', 'l', 'i', 'n', 'k'}, + FstrEROFS: [22]uint8{'R', 'e', 'a', 'd', '-', 'o', 'n', 'l', 'y', ' ', 'f', 'i', 'l', 'e', ' ', 's', 'y', 's', 't', 'e', 'm'}, + FstrENOTEMPTY: [20]uint8{'D', 'i', 'r', 'e', 'c', 't', 'o', 'r', 'y', ' ', 'n', 'o', 't', ' ', 'e', 'm', 'p', 't', 'y'}, + FstrECONNRESET: [25]uint8{'C', 'o', 'n', 'n', 'e', 'c', 't', 'i', 'o', 'n', ' ', 'r', 'e', 's', 'e', 't', ' ', 'b', 'y', ' ', 'p', 'e', 'e', 'r'}, + FstrETIMEDOUT: [20]uint8{'O', 'p', 'e', 'r', 'a', 't', 'i', 'o', 'n', ' ', 't', 'i', 'm', 'e', 'd', ' ', 'o', 'u', 't'}, + FstrECONNREFUSED: [19]uint8{'C', 'o', 'n', 'n', 'e', 'c', 't', 'i', 'o', 'n', ' ', 'r', 'e', 'f', 'u', 's', 'e', 'd'}, + FstrEHOSTDOWN: [13]uint8{'H', 'o', 's', 't', ' ', 'i', 's', ' ', 'd', 'o', 'w', 'n'}, + FstrEHOSTUNREACH: [20]uint8{'H', 'o', 's', 't', ' ', 'i', 's', ' ', 'u', 'n', 'r', 'e', 'a', 'c', 'h', 'a', 'b', 'l', 'e'}, + FstrEADDRINUSE: [15]uint8{'A', 'd', 'd', 'r', 'e', 's', 's', ' ', 'i', 'n', ' ', 'u', 's', 'e'}, + FstrEPIPE: [12]uint8{'B', 'r', 'o', 'k', 'e', 'n', ' ', 'p', 'i', 'p', 'e'}, + FstrEIO: [10]uint8{'I', '/', 'O', ' ', 'e', 'r', 'r', 'o', 'r'}, + FstrENXIO: [26]uint8{'N', 'o', ' ', 's', 'u', 'c', 'h', ' ', 'd', 'e', 'v', 'i', 'c', 'e', ' ', 'o', 'r', ' ', 'a', 'd', 'd', 'r', 'e', 's', 's'}, + FstrENOTBLK: [22]uint8{'B', 'l', 'o', 'c', 'k', ' ', 'd', 'e', 'v', 'i', 'c', 'e', ' ', 'r', 'e', 'q', 'u', 'i', 'r', 'e', 'd'}, + FstrENODEV: [15]uint8{'N', 'o', ' ', 's', 'u', 'c', 'h', ' ', 'd', 'e', 'v', 'i', 'c', 'e'}, + FstrENOTDIR: [16]uint8{'N', 'o', 't', ' ', 'a', ' ', 'd', 'i', 'r', 'e', 'c', 't', 'o', 'r', 'y'}, + FstrEISDIR: [15]uint8{'I', 's', ' ', 'a', ' ', 'd', 'i', 'r', 'e', 'c', 't', 'o', 'r', 'y'}, + FstrETXTBSY: [15]uint8{'T', 'e', 'x', 't', ' ', 'f', 'i', 'l', 'e', ' ', 'b', 'u', 's', 'y'}, + FstrENOEXEC: [18]uint8{'E', 'x', 'e', 'c', ' ', 'f', 'o', 'r', 'm', 'a', 't', ' ', 'e', 'r', 'r', 'o', 'r'}, + FstrEINVAL: [17]uint8{'I', 'n', 'v', 'a', 'l', 'i', 'd', ' ', 'a', 'r', 'g', 'u', 'm', 'e', 'n', 't'}, + FstrE2BIG: [23]uint8{'A', 'r', 'g', 'u', 'm', 'e', 'n', 't', ' ', 'l', 'i', 's', 't', ' ', 't', 'o', 'o', ' ', 'l', 'o', 'n', 'g'}, + FstrELOOP: [19]uint8{'S', 'y', 'm', 'b', 'o', 'l', 'i', 'c', ' ', 'l', 'i', 'n', 'k', ' ', 'l', 'o', 'o', 'p'}, + FstrENAMETOOLONG: [18]uint8{'F', 'i', 'l', 'e', 'n', 'a', 'm', 'e', ' ', 't', 'o', 'o', ' ', 'l', 'o', 'n', 'g'}, + FstrENFILE: [30]uint8{'T', 'o', 'o', ' ', 'm', 'a', 'n', 'y', ' ', 'o', 'p', 'e', 'n', ' ', 'f', 'i', 'l', 'e', 's', ' ', 'i', 'n', ' ', 's', 'y', 's', 't', 'e', 'm'}, + FstrEMFILE: [30]uint8{'N', 'o', ' ', 'f', 'i', 'l', 'e', ' ', 'd', 'e', 's', 'c', 'r', 'i', 'p', 't', 'o', 'r', 's', ' ', 'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e'}, + FstrEBADF: [20]uint8{'B', 'a', 'd', ' ', 'f', 'i', 'l', 'e', ' ', 'd', 'e', 's', 'c', 'r', 'i', 'p', 't', 'o', 'r'}, + FstrECHILD: [17]uint8{'N', 'o', ' ', 'c', 'h', 'i', 'l', 'd', ' ', 'p', 'r', 'o', 'c', 'e', 's', 's'}, + FstrEFAULT: [12]uint8{'B', 'a', 'd', ' ', 'a', 'd', 'd', 'r', 'e', 's', 's'}, + FstrEFBIG: [15]uint8{'F', 'i', 'l', 'e', ' ', 't', 'o', 'o', ' ', 'l', 'a', 'r', 'g', 'e'}, + FstrEMLINK: [15]uint8{'T', 'o', 'o', ' ', 'm', 'a', 'n', 'y', ' ', 'l', 'i', 'n', 'k', 's'}, + FstrENOLCK: [19]uint8{'N', 'o', ' ', 'l', 'o', 'c', 'k', 's', ' ', 'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e'}, + FstrEDEADLK: [30]uint8{'R', 'e', 's', 'o', 'u', 'r', 'c', 'e', ' ', 'd', 'e', 'a', 'd', 'l', 'o', 'c', 'k', ' ', 'w', 'o', 'u', 'l', 'd', ' ', 'o', 'c', 'c', 'u', 'r'}, + FstrENOTRECOVERABLE: [22]uint8{'S', 't', 'a', 't', 'e', ' ', 'n', 'o', 't', ' ', 'r', 'e', 'c', 'o', 'v', 'e', 'r', 'a', 'b', 'l', 'e'}, + FstrEOWNERDEAD: [20]uint8{'P', 'r', 'e', 'v', 'i', 'o', 'u', 's', ' ', 'o', 'w', 'n', 'e', 'r', ' ', 'd', 'i', 'e', 'd'}, + FstrECANCELED: [19]uint8{'O', 'p', 'e', 'r', 'a', 't', 'i', 'o', 'n', ' ', 'c', 'a', 'n', 'c', 'e', 'l', 'e', 'd'}, + FstrENOSYS: [25]uint8{'F', 'u', 'n', 'c', 't', 'i', 'o', 'n', ' ', 'n', 'o', 't', ' ', 'i', 'm', 'p', 'l', 'e', 'm', 'e', 'n', 't', 'e', 'd'}, + FstrENOMSG: [27]uint8{'N', 'o', ' ', 'm', 'e', 's', 's', 'a', 'g', 'e', ' ', 'o', 'f', ' ', 'd', 'e', 's', 'i', 'r', 'e', 'd', ' ', 't', 'y', 'p', 'e'}, + FstrEIDRM: [19]uint8{'I', 'd', 'e', 'n', 't', 'i', 'f', 'i', 'e', 'r', ' ', 'r', 'e', 'm', 'o', 'v', 'e', 'd'}, + FstrENOSTR: [20]uint8{'D', 'e', 'v', 'i', 'c', 'e', ' ', 'n', 'o', 't', ' ', 'a', ' ', 's', 't', 'r', 'e', 'a', 'm'}, + FstrENODATA: [18]uint8{'N', 'o', ' ', 'd', 'a', 't', 'a', ' ', 'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e'}, + FstrETIME: [15]uint8{'D', 'e', 'v', 'i', 'c', 'e', ' ', 't', 'i', 'm', 'e', 'o', 'u', 't'}, + FstrENOSR: [25]uint8{'O', 'u', 't', ' ', 'o', 'f', ' ', 's', 't', 'r', 'e', 'a', 'm', 's', ' ', 'r', 'e', 's', 'o', 'u', 'r', 'c', 'e', 's'}, + FstrENOLINK: [22]uint8{'L', 'i', 'n', 'k', ' ', 'h', 'a', 's', ' ', 'b', 'e', 'e', 'n', ' ', 's', 'e', 'v', 'e', 'r', 'e', 'd'}, + FstrEPROTO: [15]uint8{'P', 'r', 'o', 't', 'o', 'c', 'o', 'l', ' ', 'e', 'r', 'r', 'o', 'r'}, + FstrEBADMSG: [12]uint8{'B', 'a', 'd', ' ', 'm', 'e', 's', 's', 'a', 'g', 'e'}, + FstrEBADFD: [29]uint8{'F', 'i', 'l', 'e', ' ', 'd', 'e', 's', 'c', 'r', 'i', 'p', 't', 'o', 'r', ' ', 'i', 'n', ' ', 'b', 'a', 'd', ' ', 's', 't', 'a', 't', 'e'}, + FstrENOTSOCK: [13]uint8{'N', 'o', 't', ' ', 'a', ' ', 's', 'o', 'c', 'k', 'e', 't'}, + FstrEDESTADDRREQ: [29]uint8{'D', 'e', 's', 't', 'i', 'n', 'a', 't', 'i', 'o', 'n', ' ', 'a', 'd', 'd', 'r', 'e', 's', 's', ' ', 'r', 'e', 'q', 'u', 'i', 'r', 'e', 'd'}, + FstrEMSGSIZE: [18]uint8{'M', 'e', 's', 's', 'a', 'g', 'e', ' ', 't', 'o', 'o', ' ', 'l', 'a', 'r', 'g', 'e'}, + FstrEPROTOTYPE: [31]uint8{'P', 'r', 'o', 't', 'o', 'c', 'o', 'l', ' ', 'w', 'r', 'o', 'n', 'g', ' ', 't', 'y', 'p', 'e', ' ', 'f', 'o', 'r', ' ', 's', 'o', 'c', 'k', 'e', 't'}, + FstrENOPROTOOPT: [23]uint8{'P', 'r', 'o', 't', 'o', 'c', 'o', 'l', ' ', 'n', 'o', 't', ' ', 'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e'}, + FstrEPROTONOSUPPORT: [23]uint8{'P', 'r', 'o', 't', 'o', 'c', 'o', 'l', ' ', 'n', 'o', 't', ' ', 's', 'u', 'p', 'p', 'o', 'r', 't', 'e', 'd'}, + FstrESOCKTNOSUPPORT: [26]uint8{'S', 'o', 'c', 'k', 'e', 't', ' ', 't', 'y', 'p', 'e', ' ', 'n', 'o', 't', ' ', 's', 'u', 'p', 'p', 'o', 'r', 't', 'e', 'd'}, + FstrENOTSUP: [14]uint8{'N', 'o', 't', ' ', 's', 'u', 'p', 'p', 'o', 'r', 't', 'e', 'd'}, + FstrEPFNOSUPPORT: [30]uint8{'P', 'r', 'o', 't', 'o', 'c', 'o', 'l', ' ', 'f', 'a', 'm', 'i', 'l', 'y', ' ', 'n', 'o', 't', ' ', 's', 'u', 'p', 'p', 'o', 'r', 't', 'e', 'd'}, + FstrEAFNOSUPPORT: [41]uint8{'A', 'd', 'd', 'r', 'e', 's', 's', ' ', 'f', 'a', 'm', 'i', 'l', 'y', ' ', 'n', 'o', 't', ' ', 's', 'u', 'p', 'p', 'o', 'r', 't', 'e', 'd', ' ', 'b', 'y', ' ', 'p', 'r', 'o', 't', 'o', 'c', 'o', 'l'}, + FstrEADDRNOTAVAIL: [22]uint8{'A', 'd', 'd', 'r', 'e', 's', 's', ' ', 'n', 'o', 't', ' ', 'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e'}, + FstrENETDOWN: [16]uint8{'N', 'e', 't', 'w', 'o', 'r', 'k', ' ', 'i', 's', ' ', 'd', 'o', 'w', 'n'}, + FstrENETUNREACH: [20]uint8{'N', 'e', 't', 'w', 'o', 'r', 'k', ' ', 'u', 'n', 'r', 'e', 'a', 'c', 'h', 'a', 'b', 'l', 'e'}, + FstrENETRESET: [28]uint8{'C', 'o', 'n', 'n', 'e', 'c', 't', 'i', 'o', 'n', ' ', 'r', 'e', 's', 'e', 't', ' ', 'b', 'y', ' ', 'n', 'e', 't', 'w', 'o', 'r', 'k'}, + FstrECONNABORTED: [19]uint8{'C', 'o', 'n', 'n', 'e', 'c', 't', 'i', 'o', 'n', ' ', 'a', 'b', 'o', 'r', 't', 'e', 'd'}, + FstrENOBUFS: [26]uint8{'N', 'o', ' ', 'b', 'u', 'f', 'f', 'e', 'r', ' ', 's', 'p', 'a', 'c', 'e', ' ', 'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e'}, + FstrEISCONN: [20]uint8{'S', 'o', 'c', 'k', 'e', 't', ' ', 'i', 's', ' ', 'c', 'o', 'n', 'n', 'e', 'c', 't', 'e', 'd'}, + FstrENOTCONN: [21]uint8{'S', 'o', 'c', 'k', 'e', 't', ' ', 'n', 'o', 't', ' ', 'c', 'o', 'n', 'n', 'e', 'c', 't', 'e', 'd'}, + FstrESHUTDOWN: [34]uint8{'C', 'a', 'n', 'n', 'o', 't', ' ', 's', 'e', 'n', 'd', ' ', 'a', 'f', 't', 'e', 'r', ' ', 's', 'o', 'c', 'k', 'e', 't', ' ', 's', 'h', 'u', 't', 'd', 'o', 'w', 'n'}, + FstrEALREADY: [30]uint8{'O', 'p', 'e', 'r', 'a', 't', 'i', 'o', 'n', ' ', 'a', 'l', 'r', 'e', 'a', 'd', 'y', ' ', 'i', 'n', ' ', 'p', 'r', 'o', 'g', 'r', 'e', 's', 's'}, + FstrEINPROGRESS: [22]uint8{'O', 'p', 'e', 'r', 'a', 't', 'i', 'o', 'n', ' ', 'i', 'n', ' ', 'p', 'r', 'o', 'g', 'r', 'e', 's', 's'}, + FstrESTALE: [18]uint8{'S', 't', 'a', 'l', 'e', ' ', 'f', 'i', 'l', 'e', ' ', 'h', 'a', 'n', 'd', 'l', 'e'}, + FstrEREMOTEIO: [17]uint8{'R', 'e', 'm', 'o', 't', 'e', ' ', 'I', '/', 'O', ' ', 'e', 'r', 'r', 'o', 'r'}, + FstrEDQUOT: [15]uint8{'Q', 'u', 'o', 't', 'a', ' ', 'e', 'x', 'c', 'e', 'e', 'd', 'e', 'd'}, + FstrENOMEDIUM: [16]uint8{'N', 'o', ' ', 'm', 'e', 'd', 'i', 'u', 'm', ' ', 'f', 'o', 'u', 'n', 'd'}, + FstrEMEDIUMTYPE: [18]uint8{'W', 'r', 'o', 'n', 'g', ' ', 'm', 'e', 'd', 'i', 'u', 'm', ' ', 't', 'y', 'p', 'e'}, + FstrEMULTIHOP: [19]uint8{'M', 'u', 'l', 't', 'i', 'h', 'o', 'p', ' ', 'a', 't', 't', 'e', 'm', 'p', 't', 'e', 'd'}, + FstrENOKEY: [27]uint8{'R', 'e', 'q', 'u', 'i', 'r', 'e', 'd', ' ', 'k', 'e', 'y', ' ', 'n', 'o', 't', ' ', 'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e'}, + FstrEKEYEXPIRED: [16]uint8{'K', 'e', 'y', ' ', 'h', 'a', 's', ' ', 'e', 'x', 'p', 'i', 'r', 'e', 'd'}, + FstrEKEYREVOKED: [21]uint8{'K', 'e', 'y', ' ', 'h', 'a', 's', ' ', 'b', 'e', 'e', 'n', ' ', 'r', 'e', 'v', 'o', 'k', 'e', 'd'}, + FstrEKEYREJECTED: [28]uint8{'K', 'e', 'y', ' ', 'w', 'a', 's', ' ', 'r', 'e', 'j', 'e', 'c', 't', 'e', 'd', ' ', 'b', 'y', ' ', 's', 'e', 'r', 'v', 'i', 'c', 'e'}, +} + +var _errmsgidx = [132]uint16{ + 1: uint16(uint32(UintptrFromInt32(0) + 109)), + 2: uint16(uint32(UintptrFromInt32(0) + 133)), + 3: uint16(uint32(UintptrFromInt32(0) + 159)), + 4: uint16(uint32(UintptrFromInt32(0) + 269)), + 5: uint16(uint32(UintptrFromInt32(0) + 523)), + 6: uint16(uint32(UintptrFromInt32(0) + 533)), + 7: uint16(uint32(UintptrFromInt32(0) + 677)), + 8: uint16(uint32(UintptrFromInt32(0) + 642)), + 9: uint16(uint32(UintptrFromInt32(0) + 797)), + 10: uint16(uint32(UintptrFromInt32(0) + 817)), + 11: uint16(uint32(UintptrFromInt32(0) + 293)), + 12: uint16(uint32(UintptrFromInt32(0) + 241)), + 13: uint16(uint32(UintptrFromInt32(0) + 91)), + 14: uint16(uint32(UintptrFromInt32(0) + 834)), + 15: uint16(uint32(UintptrFromInt32(0) + 559)), + 16: uint16(uint32(UintptrFromInt32(0) + 255)), + 17: uint16(uint32(UintptrFromInt32(0) + 175)), + 18: uint16(uint32(UintptrFromInt32(0) + 339)), + 19: uint16(uint32(UintptrFromInt32(0) + 581)), + 20: uint16(uint32(UintptrFromInt32(0) + 596)), + 21: uint16(uint32(UintptrFromInt32(0) + 612)), + 22: uint16(uint32(UintptrFromInt32(0) + 660)), + 23: uint16(uint32(UintptrFromInt32(0) + 737)), + 24: uint16(uint32(UintptrFromInt32(0) + 767)), + 25: uint16(uint32(UintptrFromInt32(0) + 81)), + 26: uint16(uint32(UintptrFromInt32(0) + 627)), + 27: uint16(uint32(UintptrFromInt32(0) + 846)), + 28: uint16(uint32(UintptrFromInt32(0) + 217)), + 29: uint16(uint32(UintptrFromInt32(0) + 326)), + 30: uint16(uint32(UintptrFromInt32(0) + 357)), + 31: uint16(uint32(UintptrFromInt32(0) + 861)), + 32: uint16(uint32(UintptrFromInt32(0) + 511)), + 33: uint16(uint32(UintptrFromInt32(0) + 43)), + 34: uint16(uint32(UintptrFromInt32(0) + 56)), + 35: uint16(uint32(UintptrFromInt32(0) + 895)), + 36: uint16(uint32(UintptrFromInt32(0) + 719)), + 37: uint16(uint32(UintptrFromInt32(0) + 876)), + 38: uint16(uint32(UintptrFromInt32(0) + 986)), + 39: uint16(uint32(UintptrFromInt32(0) + 379)), + 40: uint16(uint32(UintptrFromInt32(0) + 700)), + 42: uint16(uint32(UintptrFromInt32(0) + 1011)), + 43: uint16(uint32(UintptrFromInt32(0) + 1038)), + 60: uint16(uint32(UintptrFromInt32(0) + 1057)), + 61: uint16(uint32(UintptrFromInt32(0) + 1077)), + 62: uint16(uint32(UintptrFromInt32(0) + 1095)), + 63: uint16(uint32(UintptrFromInt32(0) + 1110)), + 67: uint16(uint32(UintptrFromInt32(0) + 1135)), + 71: uint16(uint32(UintptrFromInt32(0) + 1157)), + 72: uint16(uint32(UintptrFromInt32(0) + 1803)), + 74: uint16(uint32(UintptrFromInt32(0) + 1172)), + 75: uint16(uint32(UintptrFromInt32(0) + 187)), + 77: uint16(uint32(UintptrFromInt32(0) + 1184)), + 84: uint16(uint32(UintptrFromInt32(0) + 21)), + 88: uint16(uint32(UintptrFromInt32(0) + 1213)), + 89: uint16(uint32(UintptrFromInt32(0) + 1226)), + 90: uint16(uint32(UintptrFromInt32(0) + 1255)), + 91: uint16(uint32(UintptrFromInt32(0) + 1273)), + 92: uint16(uint32(UintptrFromInt32(0) + 1304)), + 93: uint16(uint32(UintptrFromInt32(0) + 1327)), + 94: uint16(uint32(UintptrFromInt32(0) + 1350)), + 95: uint16(uint32(UintptrFromInt32(0) + 1376)), + 96: uint16(uint32(UintptrFromInt32(0) + 1390)), + 97: uint16(uint32(UintptrFromInt32(0) + 1420)), + 98: uint16(uint32(UintptrFromInt32(0) + 496)), + 99: uint16(uint32(UintptrFromInt32(0) + 1461)), + 100: uint16(uint32(UintptrFromInt32(0) + 1483)), + 101: uint16(uint32(UintptrFromInt32(0) + 1499)), + 102: uint16(uint32(UintptrFromInt32(0) + 1519)), + 103: uint16(uint32(UintptrFromInt32(0) + 1547)), + 104: uint16(uint32(UintptrFromInt32(0) + 399)), + 105: uint16(uint32(UintptrFromInt32(0) + 1566)), + 106: uint16(uint32(UintptrFromInt32(0) + 1592)), + 107: uint16(uint32(UintptrFromInt32(0) + 1612)), + 108: uint16(uint32(UintptrFromInt32(0) + 1633)), + 110: uint16(uint32(UintptrFromInt32(0) + 424)), + 111: uint16(uint32(UintptrFromInt32(0) + 444)), + 112: uint16(uint32(UintptrFromInt32(0) + 463)), + 113: uint16(uint32(UintptrFromInt32(0) + 476)), + 114: uint16(uint32(UintptrFromInt32(0) + 1667)), + 115: uint16(uint32(UintptrFromInt32(0) + 1697)), + 116: uint16(uint32(UintptrFromInt32(0) + 1719)), + 121: uint16(uint32(UintptrFromInt32(0) + 1737)), + 122: uint16(uint32(UintptrFromInt32(0) + 1754)), + 123: uint16(uint32(UintptrFromInt32(0) + 1769)), + 124: uint16(uint32(UintptrFromInt32(0) + 1785)), + 125: uint16(uint32(UintptrFromInt32(0) + 967)), + 126: uint16(uint32(UintptrFromInt32(0) + 1822)), + 127: uint16(uint32(UintptrFromInt32(0) + 1849)), + 128: uint16(uint32(UintptrFromInt32(0) + 1865)), + 129: uint16(uint32(UintptrFromInt32(0) + 1886)), + 130: uint16(uint32(UintptrFromInt32(0) + 947)), + 131: uint16(uint32(UintptrFromInt32(0) + 925)), +} + +func X__strerror_l(tls *TLS, e int32, loc Tlocale_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v e=%v loc=%v, (%v:)", tls, e, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + var s uintptr + _ = s + if Uint32FromInt32(e) >= Uint32FromInt64(264)/Uint32FromInt64(2) { + e = 0 + } + s = uintptr(unsafe.Pointer(&_errmsgstr)) + uintptr(_errmsgidx[e]) + return X__lctrans(tls, s, **(**uintptr)(__ccgo_up(loc + 5*4))) +} + +func Xstrerror(tls *TLS, e int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v e=%v, (%v:)", tls, e, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__strerror_l(tls, e, (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale) +} + +func Xstrerror_l(tls *TLS, e int32, loc Tlocale_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v e=%v loc=%v, (%v:)", tls, e, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__strerror_l(tls, e, loc) +} + +func X_Exit(tls *TLS, ec int32) { + if __ccgo_strace { + trc("tls=%v ec=%v, (%v:)", tls, ec, origin(2)) + } + X__syscall1(tls, int32(SYS_exit_group), ec) + for { + X__syscall1(tls, int32(SYS_exit), ec) + goto _1 + _1: + } +} + +func X__assert_fail(tls *TLS, expr uintptr, file uintptr, line int32, func1 uintptr) { + if __ccgo_strace { + trc("tls=%v expr=%v file=%v line=%v func1=%v, (%v:)", tls, expr, file, line, func1, origin(2)) + } + bp := tls.Alloc(48) + defer tls.Free(48) + Xfprintf(tls, uintptr(unsafe.Pointer(&X__stderr_FILE)), __ccgo_ts+212, VaList(bp+8, expr, file, func1, line)) + Xabort(tls) +} + +const COUNT = 32 + +var _funcs [32]uintptr +var _count int32 +var _lock [1]int32 + +func X__funcs_on_quick_exit(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + var func1 uintptr + var v1 int32 + _, _ = func1, v1 + ___lock(tls, uintptr(unsafe.Pointer(&_lock))) + for _count > 0 { + _count = _count - 1 + v1 = _count + func1 = _funcs[v1] + ___unlock(tls, uintptr(unsafe.Pointer(&_lock))) + (*(*func(*TLS))(unsafe.Pointer(&struct{ uintptr }{func1})))(tls) + ___lock(tls, uintptr(unsafe.Pointer(&_lock))) + } +} + +type t__ccgo_fp__Xat_quick_exit_0 = func(*TLS) + +func Xat_quick_exit(tls *TLS, __ccgo_fp_func uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v __ccgo_fp_func=%v, (%v:)", tls, __ccgo_fp_func, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v1 int32 + _, _ = r, v1 + r = 0 + ___lock(tls, uintptr(unsafe.Pointer(&_lock))) + if _count == int32(32) { + r = -int32(1) + } else { + v1 = _count + _count = _count + 1 + _funcs[v1] = __ccgo_fp_func + } + ___unlock(tls, uintptr(unsafe.Pointer(&_lock))) + return r +} + +func _dummy3(tls *TLS) { +} + +func Xquick_exit(tls *TLS, code int32) { + if __ccgo_strace { + trc("tls=%v code=%v, (%v:)", tls, code, origin(2)) + } + X__funcs_on_quick_exit(tls) + X_Exit(tls, code) +} + +func Xcreat(tls *TLS, filename uintptr, mode Tmode_t) (r int32) { + if __ccgo_strace { + trc("tls=%v filename=%v mode=%v, (%v:)", tls, filename, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + return Xopen(tls, filename, Int32FromInt32(O_CREAT)|Int32FromInt32(O_WRONLY)|Int32FromInt32(O_TRUNC), VaList(bp+8, mode)) +} + +func Xfcntl(tls *TLS, fd int32, cmd int32, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v cmd=%v va=%v, (%v:)", tls, fd, cmd, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ap Tva_list + var arg uint32 + var ret, ret1, v1 int32 + var _ /* ex at bp+0 */ Tf_owner_ex + _, _, _, _, _ = ap, arg, ret, ret1, v1 + ap = va + arg = VaUint32(&ap) + _ = ap + if cmd == int32(F_SETFL) { + arg = arg | uint32(O_LARGEFILE) + } + if cmd == int32(F_SETLKW) { + return X__syscall_ret(tls, Uint32FromInt32(___syscall_cp(tls, int32(SYS_fcntl64), fd, cmd, int32(uintptr(arg)), 0, 0, 0))) + } + if cmd == int32(F_GETOWN) { + ret = int32(X__syscall3(tls, int32(SYS_fcntl64), fd, int32(Int32FromInt32(F_GETOWN_EX)), int32(bp))) + if ret == -int32(EINVAL) { + return int32(X__syscall3(tls, int32(SYS_fcntl64), fd, cmd, int32(uintptr(arg)))) + } + if ret != 0 { + return X__syscall_ret(tls, Uint32FromInt32(ret)) + } + if (**(**Tf_owner_ex)(__ccgo_up(bp))).Ftype1 == int32(F_OWNER_PGRP) { + v1 = -(**(**Tf_owner_ex)(__ccgo_up(bp))).Fpid + } else { + v1 = (**(**Tf_owner_ex)(__ccgo_up(bp))).Fpid + } + return v1 + } + if cmd == int32(F_DUPFD_CLOEXEC) { + ret1 = int32(X__syscall3(tls, int32(SYS_fcntl64), fd, int32(Int32FromInt32(F_DUPFD_CLOEXEC)), Int32FromUint32(arg))) + if ret1 != -int32(EINVAL) { + if ret1 >= 0 { + X__syscall3(tls, int32(SYS_fcntl64), ret1, int32(Int32FromInt32(F_SETFD)), int32(Int32FromInt32(FD_CLOEXEC))) + } + return X__syscall_ret(tls, Uint32FromInt32(ret1)) + } + ret1 = int32(X__syscall3(tls, int32(SYS_fcntl64), fd, int32(Int32FromInt32(F_DUPFD_CLOEXEC)), int32(Int32FromInt32(0)))) + if ret1 != -int32(EINVAL) { + if ret1 >= 0 { + X__syscall1(tls, int32(SYS_close), ret1) + } + return X__syscall_ret(tls, Uint32FromInt32(-Int32FromInt32(EINVAL))) + } + ret1 = int32(X__syscall3(tls, int32(SYS_fcntl64), fd, int32(Int32FromInt32(F_DUPFD)), Int32FromUint32(arg))) + if ret1 >= 0 { + X__syscall3(tls, int32(SYS_fcntl64), ret1, int32(Int32FromInt32(F_SETFD)), int32(Int32FromInt32(FD_CLOEXEC))) + } + return X__syscall_ret(tls, Uint32FromInt32(ret1)) + } + switch cmd { + case int32(F_SETLK): + fallthrough + case int32(F_GETLK): + fallthrough + case int32(F_GETOWN_EX): + fallthrough + case int32(F_SETOWN_EX): + return X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_fcntl64), fd, cmd, int32(uintptr(arg))))) + default: + return X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_fcntl64), fd, cmd, Int32FromUint32(arg)))) + } + return r +} + +func Xopen(tls *TLS, filename uintptr, flags int32, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v filename=%v flags=%v va=%v, (%v:)", tls, filename, flags, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var fd int32 + var mode Tmode_t + _, _, _ = ap, fd, mode + mode = uint32(0) + if flags&int32(O_CREAT) != 0 || flags&int32(O_TMPFILE) == int32(O_TMPFILE) { + ap = va + mode = VaUint32(&ap) + _ = ap + } + fd = int32(___syscall_cp(tls, int32(SYS_open), int32(filename), int32(flags|Int32FromInt32(O_LARGEFILE)), Int32FromUint32(mode), 0, 0, 0)) + if fd >= 0 && flags&int32(O_CLOEXEC) != 0 { + X__syscall3(tls, int32(SYS_fcntl64), fd, int32(Int32FromInt32(F_SETFD)), int32(Int32FromInt32(FD_CLOEXEC))) + } + return X__syscall_ret(tls, Uint32FromInt32(fd)) +} + +func Xopenat(tls *TLS, fd int32, filename uintptr, flags int32, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v filename=%v flags=%v va=%v, (%v:)", tls, fd, filename, flags, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var mode Tmode_t + _, _ = ap, mode + mode = uint32(0) + if flags&int32(O_CREAT) != 0 || flags&int32(O_TMPFILE) == int32(O_TMPFILE) { + ap = va + mode = VaUint32(&ap) + _ = ap + } + return X__syscall_ret(tls, Uint32FromInt32(___syscall_cp(tls, int32(SYS_openat), fd, int32(filename), int32(flags|Int32FromInt32(O_LARGEFILE)), Int32FromUint32(mode), 0, 0))) +} + +func Xposix_fadvise(tls *TLS, fd int32, base Toff_t, len1 Toff_t, advice int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v base=%v len1=%v advice=%v, (%v:)", tls, fd, base, len1, advice, origin(2)) + defer func() { trc("-> %v", r) }() + } + /* Some archs, at least arm and powerpc, have the syscall + * arguments reordered to avoid needing 7 argument registers + * due to 64-bit argument alignment. */ + return int32(-X__syscall6(tls, int32(SYS_fadvise64_64), fd, advice, int32(base), int32(base>>Int32FromInt32(32)), int32(len1), int32(len1>>Int32FromInt32(32)))) +} + +func Xposix_fallocate(tls *TLS, fd int32, base Toff_t, len1 Toff_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v base=%v len1=%v, (%v:)", tls, fd, base, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(-X__syscall6(tls, int32(SYS_fallocate), fd, int32(Int32FromInt32(0)), int32(base), int32(base>>Int32FromInt32(32)), int32(len1), int32(len1>>Int32FromInt32(32)))) +} + +const WCONTINUED = 8 +const WEXITED = 4 +const WNOWAIT = 16777216 +const WSTOPPED = 2 +const __WALL = 1073741824 +const __WCLONE = 2147483648 +const __WNOTHREAD = 536870912 + +type Tidtype_t = int32 + +const _P_ALL = 0 +const _P_PID = 1 +const _P_PGID = 2 +const _P_PIDFD = 3 +const F_APP = 128 +const F_EOF = 16 +const F_ERR = 32 +const F_NORD = 4 +const F_NOWR = 8 +const F_PERM = 1 +const F_SVB = 64 +const KMAX = 128 +const LDBL_EPSILON1 = 2.22044604925031308085e-16 +const LDBL_MAX1 = 1.79769313486231570815e+308 +const LDBL_MIN1 = 2.22507385850720138309e-308 +const LD_B1B_DIG = 2 +const LD_B1B_MAX = 254740991 +const MASK = 127 +const MAYBE_WAITERS = 1073741824 +const UNGET = 8 + +type TFILE = struct { + F__ccgo_align [0]uint32 + Fflags uint32 + Frpos uintptr + Frend uintptr + Fclose1 uintptr + Fwend uintptr + Fwpos uintptr + Fmustbezero_1 uintptr + Fwbase uintptr + Fread uintptr + Fwrite uintptr + Fseek uintptr + Fbuf uintptr + Fbuf_size Tsize_t + Fprev uintptr + Fnext uintptr + Ffd int32 + Fpipe_pid int32 + Flockcount int32 + Fmode int32 + Flock int32 + Flbf int32 + Fcookie uintptr + Foff Toff_t + Fgetln_buf uintptr + Fmustbezero_2 uintptr + Fshend uintptr + F__ccgo_align26 [4]byte + Fshlim Toff_t + Fshcnt Toff_t + Fprev_locked uintptr + Fnext_locked uintptr + Flocale uintptr + F__ccgo_pad31 [4]byte +} + +type T_IO_FILE = TFILE + +func _scanexp(tls *TLS, f uintptr, pok int32) (r int64) { + var c, neg, x, v1 int32 + var y, v19 int64 + var v2, v3 uintptr + _, _, _, _, _, _, _, _ = c, neg, x, y, v1, v19, v2, v3 + neg = 0 + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v3 = f + 4 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + if c == int32('+') || c == int32('-') { + neg = BoolInt32(c == int32('-')) + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v3 = f + 4 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + if Uint32FromInt32(c-int32('0')) >= uint32(10) && pok != 0 { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + } + } + if Uint32FromInt32(c-int32('0')) >= uint32(10) { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + return -Int64FromInt64(0x7fffffffffffffff) - Int64FromInt32(1) + } + x = 0 + for { + if !(Uint32FromInt32(c-int32('0')) < uint32(10) && x < Int32FromInt32(INT_MAX)/Int32FromInt32(10)) { + break + } + x = int32(10)*x + c - int32('0') + goto _7 + _7: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v3 = f + 4 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + y = int64(x) + for { + if !(Uint32FromInt32(c-int32('0')) < uint32(10) && y < Int64FromInt64(0x7fffffffffffffff)/Int64FromInt32(100)) { + break + } + y = int64(10)*y + int64(c) - int64('0') + goto _11 + _11: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v3 = f + 4 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + for { + if !(Uint32FromInt32(c-int32('0')) < uint32(10)) { + break + } + goto _15 + _15: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v3 = f + 4 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + if neg != 0 { + v19 = -y + } else { + v19 = y + } + return v19 +} + +func _decfloat(tls *TLS, f uintptr, c int32, bits int32, emin int32, sign int32, pok int32) (r float64) { + bp := tls.Alloc(512) + defer tls.Free(512) + var a, bitlim, denormal, e2, emax, gotdig, gotrad, i, j, k, lnz, p10, rp, rpm9, sh, z, v2, v6 int32 + var bias, frac, y float64 + var carry, carry1, carry2, t, tmp, tmp2 Tuint32_t + var dc, e10, lrp int64 + var tmp1 Tuint64_t + var v3, v4 uintptr + var _ /* x at bp+0 */ [128]Tuint32_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = a, bias, bitlim, carry, carry1, carry2, dc, denormal, e10, e2, emax, frac, gotdig, gotrad, i, j, k, lnz, lrp, p10, rp, rpm9, sh, t, tmp, tmp1, tmp2, y, z, v2, v3, v4, v6 + lrp = 0 + dc = 0 + e10 = 0 + lnz = 0 + gotdig = 0 + gotrad = 0 + emax = -emin - bits + int32(3) + denormal = 0 + frac = Float64FromInt32(0) + bias = Float64FromInt32(0) + j = 0 + k = 0 + /* Don't let leading zeros consume buffer space */ + for { + if !(c == int32('0')) { + break + } + gotdig = int32(1) + goto _1 + _1: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 4 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v2 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v2 = X__shgetc(tls, f) + } + c = v2 + } + if c == int32('.') { + gotrad = int32(1) + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 4 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v2 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v2 = X__shgetc(tls, f) + } + c = v2 + for { + if !(c == int32('0')) { + break + } + gotdig = int32(1) + lrp = lrp - 1 + goto _5 + _5: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 4 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v2 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v2 = X__shgetc(tls, f) + } + c = v2 + } + } + (**(**[128]Tuint32_t)(__ccgo_up(bp)))[0] = uint32(0) + for { + if !(Uint32FromInt32(c-int32('0')) < uint32(10) || c == int32('.')) { + break + } + if c == int32('.') { + if gotrad != 0 { + break + } + gotrad = int32(1) + lrp = dc + } else { + if k < Int32FromInt32(KMAX)-Int32FromInt32(3) { + dc = dc + 1 + if c != int32('0') { + lnz = int32(dc) + } + if j != 0 { + (**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] = (**(**[128]Tuint32_t)(__ccgo_up(bp)))[k]*uint32(10) + Uint32FromInt32(c) - uint32('0') + } else { + (**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] = Uint32FromInt32(c - int32('0')) + } + j = j + 1 + v2 = j + if v2 == int32(9) { + k = k + 1 + j = 0 + } + gotdig = int32(1) + } else { + dc = dc + 1 + if c != int32('0') { + lnz = (Int32FromInt32(KMAX) - Int32FromInt32(4)) * Int32FromInt32(9) + **(**Tuint32_t)(__ccgo_up(bp + uintptr(Int32FromInt32(KMAX)-Int32FromInt32(4))*4)) |= uint32(1) + } + } + } + goto _12 + _12: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 4 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v2 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v2 = X__shgetc(tls, f) + } + c = v2 + } + if !(gotrad != 0) { + lrp = dc + } + if gotdig != 0 && c|int32(32) == int32('e') { + e10 = _scanexp(tls, f, pok) + if e10 == -Int64FromInt64(0x7fffffffffffffff)-Int64FromInt32(1) { + if pok != 0 { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + } else { + X__shlim(tls, f, int64(Int32FromInt32(0))) + return Float64FromInt32(0) + } + e10 = 0 + } + lrp = lrp + e10 + } else { + if c >= 0 { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + } + } + if !(gotdig != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + X__shlim(tls, f, int64(Int32FromInt32(0))) + return Float64FromInt32(0) + } + /* Handle zero specially to avoid nasty special cases later */ + if !((**(**[128]Tuint32_t)(__ccgo_up(bp)))[0] != 0) { + return float64(float64(sign) * float64(0)) + } + /* Optimize small integers (w/no exponent) and over/under-flow */ + if lrp == dc && dc < int64(10) && (bits > int32(30) || (**(**[128]Tuint32_t)(__ccgo_up(bp)))[0]>>bits == uint32(0)) { + return float64(float64(sign) * float64((**(**[128]Tuint32_t)(__ccgo_up(bp)))[0])) + } + if lrp > int64(-emin/int32(2)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ERANGE) + return float64(float64(float64(sign)*Float64FromFloat64(1.79769313486231570815e+308)) * Float64FromFloat64(1.79769313486231570815e+308)) + } + if lrp < int64(emin-Int32FromInt32(2)*Int32FromInt32(LDBL_MANT_DIG)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ERANGE) + return float64(float64(float64(sign)*Float64FromFloat64(2.22507385850720138309e-308)) * Float64FromFloat64(2.22507385850720138309e-308)) + } + /* Align incomplete final B1B digit */ + if j != 0 { + for { + if !(j < int32(9)) { + break + } + **(**Tuint32_t)(__ccgo_up(bp + uintptr(k)*4)) *= uint32(10) + goto _17 + _17: + ; + j = j + 1 + } + k = k + 1 + j = 0 + } + a = 0 + z = k + e2 = 0 + rp = int32(lrp) + /* Optimize small to mid-size integers (even in exp. notation) */ + if lnz < int32(9) && lnz <= rp && rp < int32(18) { + if rp == int32(9) { + return float64(float64(sign) * float64((**(**[128]Tuint32_t)(__ccgo_up(bp)))[0])) + } + if rp < int32(9) { + return float64(float64(sign)*float64((**(**[128]Tuint32_t)(__ccgo_up(bp)))[0])) / float64(_p10s[int32(8)-rp]) + } + bitlim = bits - int32(3)*(rp-Int32FromInt32(9)) + if bitlim > int32(30) || (**(**[128]Tuint32_t)(__ccgo_up(bp)))[0]>>bitlim == uint32(0) { + return float64(float64(float64(sign)*float64((**(**[128]Tuint32_t)(__ccgo_up(bp)))[0])) * float64(_p10s[rp-int32(10)])) + } + } + /* Drop trailing zeros */ + for { + if !!((**(**[128]Tuint32_t)(__ccgo_up(bp)))[z-int32(1)] != 0) { + break + } + goto _18 + _18: + ; + z = z - 1 + } + /* Align radix point to B1B digit boundary */ + if rp%int32(9) != 0 { + if rp >= 0 { + v2 = rp % int32(9) + } else { + v2 = rp%int32(9) + int32(9) + } + rpm9 = v2 + p10 = _p10s[int32(8)-rpm9] + carry = uint32(0) + k = a + for { + if !(k != z) { + break + } + tmp = (**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] % Uint32FromInt32(p10) + (**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] = (**(**[128]Tuint32_t)(__ccgo_up(bp)))[k]/Uint32FromInt32(p10) + carry + carry = Uint32FromInt32(int32(1000000000)/p10) * tmp + if k == a && !((**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] != 0) { + a = (a + int32(1)) & (Int32FromInt32(KMAX) - Int32FromInt32(1)) + rp = rp - int32(9) + } + goto _20 + _20: + ; + k = k + 1 + } + if carry != 0 { + v2 = z + z = z + 1 + (**(**[128]Tuint32_t)(__ccgo_up(bp)))[v2] = carry + } + rp = rp + (int32(9) - rpm9) + } + /* Upscale until desired number of bits are left of radix point */ + for rp < Int32FromInt32(9)*Int32FromInt32(LD_B1B_DIG) || rp == Int32FromInt32(9)*Int32FromInt32(LD_B1B_DIG) && (**(**[128]Tuint32_t)(__ccgo_up(bp)))[a] < _th[0] { + carry1 = uint32(0) + e2 = e2 - int32(29) + k = (z - int32(1)) & (Int32FromInt32(KMAX) - Int32FromInt32(1)) + for { + tmp1 = uint64((**(**[128]Tuint32_t)(__ccgo_up(bp)))[k])< uint64(1000000000) { + carry1 = uint32(tmp1 / uint64(1000000000)) + (**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] = uint32(tmp1 % uint64(1000000000)) + } else { + carry1 = uint32(0) + (**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] = uint32(tmp1) + } + if k == (z-int32(1))&(Int32FromInt32(KMAX)-Int32FromInt32(1)) && k != a && !((**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] != 0) { + z = k + } + if k == a { + break + } + goto _22 + _22: + ; + k = (k - int32(1)) & (Int32FromInt32(KMAX) - Int32FromInt32(1)) + } + if carry1 != 0 { + rp = rp + int32(9) + a = (a - int32(1)) & (Int32FromInt32(KMAX) - Int32FromInt32(1)) + if a == z { + z = (z - int32(1)) & (Int32FromInt32(KMAX) - Int32FromInt32(1)) + **(**Tuint32_t)(__ccgo_up(bp + uintptr((z-int32(1))&(Int32FromInt32(KMAX)-Int32FromInt32(1)))*4)) |= (**(**[128]Tuint32_t)(__ccgo_up(bp)))[z] + } + (**(**[128]Tuint32_t)(__ccgo_up(bp)))[a] = carry1 + } + } + /* Downscale until exactly number of bits are left of radix point */ + for { + carry2 = uint32(0) + sh = int32(1) + i = 0 + for { + if !(i < int32(LD_B1B_DIG)) { + break + } + k = (a + i) & (Int32FromInt32(KMAX) - Int32FromInt32(1)) + if k == z || (**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] < _th[i] { + i = int32(LD_B1B_DIG) + break + } + if (**(**[128]Tuint32_t)(__ccgo_up(bp)))[(a+i)&(Int32FromInt32(KMAX)-Int32FromInt32(1))] > _th[i] { + break + } + goto _24 + _24: + ; + i = i + 1 + } + if i == int32(LD_B1B_DIG) && rp == Int32FromInt32(9)*Int32FromInt32(LD_B1B_DIG) { + break + } + /* FIXME: find a way to compute optimal sh */ + if rp > Int32FromInt32(9)+Int32FromInt32(9)*Int32FromInt32(LD_B1B_DIG) { + sh = int32(9) + } + e2 = e2 + sh + k = a + for { + if !(k != z) { + break + } + tmp2 = (**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] & Uint32FromInt32(int32(1)<>sh + carry2 + carry2 = Uint32FromInt32(Int32FromInt32(1000000000)>>sh) * tmp2 + if k == a && !((**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] != 0) { + a = (a + int32(1)) & (Int32FromInt32(KMAX) - Int32FromInt32(1)) + i = i - 1 + rp = rp - int32(9) + } + goto _25 + _25: + ; + k = (k + int32(1)) & (Int32FromInt32(KMAX) - Int32FromInt32(1)) + } + if carry2 != 0 { + if (z+int32(1))&(Int32FromInt32(KMAX)-Int32FromInt32(1)) != a { + (**(**[128]Tuint32_t)(__ccgo_up(bp)))[z] = carry2 + z = (z + int32(1)) & (Int32FromInt32(KMAX) - Int32FromInt32(1)) + } else { + **(**Tuint32_t)(__ccgo_up(bp + uintptr((z-int32(1))&(Int32FromInt32(KMAX)-Int32FromInt32(1)))*4)) |= uint32(1) + } + } + goto _23 + _23: + } + /* Assemble desired bits into floating point variable */ + v2 = Int32FromInt32(0) + i = v2 + y = float64(v2) + for { + if !(i < int32(LD_B1B_DIG)) { + break + } + if (a+i)&(Int32FromInt32(KMAX)-Int32FromInt32(1)) == z { + v6 = (z + Int32FromInt32(1)) & (Int32FromInt32(KMAX) - Int32FromInt32(1)) + z = v6 + (**(**[128]Tuint32_t)(__ccgo_up(bp)))[v6-int32(1)] = uint32(0) + } + y = float64(Float64FromFloat64(1e+09)*y) + float64((**(**[128]Tuint32_t)(__ccgo_up(bp)))[(a+i)&(Int32FromInt32(KMAX)-Int32FromInt32(1))]) + goto _26 + _26: + ; + i = i + 1 + } + y = y * float64(sign) + /* Limit precision for denormal results */ + if bits > int32(LDBL_MANT_DIG)+e2-emin { + bits = int32(LDBL_MANT_DIG) + e2 - emin + if bits < 0 { + bits = 0 + } + denormal = int32(1) + } + /* Calculate bias term to force rounding, move out lower bits */ + if bits < int32(LDBL_MANT_DIG) { + bias = Xcopysignl(tls, Xscalbn(tls, Float64FromInt32(1), Int32FromInt32(2)*Int32FromInt32(LDBL_MANT_DIG)-bits-int32(1)), y) + frac = Xfmodl(tls, y, Xscalbn(tls, Float64FromInt32(1), int32(LDBL_MANT_DIG)-bits)) + y = y - frac + y = y + bias + } + /* Process tail of decimal input so it can affect rounding */ + if (a+i)&(Int32FromInt32(KMAX)-Int32FromInt32(1)) != z { + t = (**(**[128]Tuint32_t)(__ccgo_up(bp)))[(a+i)&(Int32FromInt32(KMAX)-Int32FromInt32(1))] + if t < uint32(500000000) && (t != 0 || (a+i+int32(1))&(Int32FromInt32(KMAX)-Int32FromInt32(1)) != z) { + frac = frac + float64(float64(0.25)*float64(sign)) + } else { + if t > uint32(500000000) { + frac = frac + float64(float64(0.75)*float64(sign)) + } else { + if t == uint32(500000000) { + if (a+i+int32(1))&(Int32FromInt32(KMAX)-Int32FromInt32(1)) == z { + frac = frac + float64(float64(0.5)*float64(sign)) + } else { + frac = frac + float64(float64(0.75)*float64(sign)) + } + } + } + } + if int32(LDBL_MANT_DIG)-bits >= int32(2) && !(Xfmodl(tls, frac, Float64FromInt32(1)) != 0) { + frac = frac + 1 + } + } + y = y + frac + y = y - bias + if (e2+int32(LDBL_MANT_DIG))&int32(INT_MAX) > emax-int32(5) { + if Xfabsl(tls, y) >= Float64FromInt32(2)/Float64FromFloat64(2.22044604925031308085e-16) { + if denormal != 0 && bits == int32(LDBL_MANT_DIG)+e2-emin { + denormal = 0 + } + y = y * Float64FromFloat64(0.5) + e2 = e2 + 1 + } + if e2+int32(LDBL_MANT_DIG) > emax || denormal != 0 && frac != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ERANGE) + } + } + return Xscalbnl(tls, y, e2) +} + +var _th = [2]Tuint32_t{ + 0: uint32(9007199), + 1: uint32(254740991), +} + +var _p10s = [8]int32{ + 0: int32(10), + 1: int32(100), + 2: int32(1000), + 3: int32(10000), + 4: int32(100000), + 5: int32(1000000), + 6: int32(10000000), + 7: int32(100000000), +} + +func _hexfloat(tls *TLS, f uintptr, bits int32, emin int32, sign int32, pok int32) (r float64) { + var bias, scale, y float64 + var c, d, gotdig, gotrad, gottail, v1 int32 + var dc, e2, rp int64 + var x Tuint32_t + var v2, v3 uintptr + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = bias, c, d, dc, e2, gotdig, gotrad, gottail, rp, scale, x, y, v1, v2, v3 + x = uint32(0) + y = Float64FromInt32(0) + scale = Float64FromInt32(1) + bias = Float64FromInt32(0) + gottail = 0 + gotrad = 0 + gotdig = 0 + rp = 0 + dc = 0 + e2 = 0 + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v3 = f + 4 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + /* Skip leading zeros */ + for { + if !(c == int32('0')) { + break + } + gotdig = int32(1) + goto _4 + _4: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v3 = f + 4 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + if c == int32('.') { + gotrad = int32(1) + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v3 = f + 4 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + /* Count zeros after the radix point before significand */ + rp = 0 + for { + if !(c == int32('0')) { + break + } + gotdig = int32(1) + goto _11 + _11: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v3 = f + 4 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + rp = rp - 1 + } + } + for { + if !(Uint32FromInt32(c-int32('0')) < uint32(10) || Uint32FromInt32(c|int32(32)-int32('a')) < uint32(6) || c == int32('.')) { + break + } + if c == int32('.') { + if gotrad != 0 { + break + } + rp = dc + gotrad = int32(1) + } else { + gotdig = int32(1) + if c > int32('9') { + d = c | int32(32) + int32(10) - int32('a') + } else { + d = c - int32('0') + } + if dc < int64(8) { + x = x*uint32(16) + Uint32FromInt32(d) + } else { + if dc < int64(Int32FromInt32(LDBL_MANT_DIG)/Int32FromInt32(4)+Int32FromInt32(1)) { + scale = scale / Float64FromInt32(16) + y = y + float64(float64(d)*scale) + } else { + if d != 0 && !(gottail != 0) { + y = y + float64(Float64FromFloat64(0.5)*scale) + gottail = int32(1) + } + } + } + dc = dc + 1 + } + goto _15 + _15: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v3 = f + 4 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + if !(gotdig != 0) { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + if pok != 0 { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + if gotrad != 0 { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + } + } else { + X__shlim(tls, f, int64(Int32FromInt32(0))) + } + return float64(float64(sign) * float64(0)) + } + if !(gotrad != 0) { + rp = dc + } + for dc < int64(8) { + x = x * uint32(16) + dc = dc + 1 + } + if c|int32(32) == int32('p') { + e2 = _scanexp(tls, f, pok) + if e2 == -Int64FromInt64(0x7fffffffffffffff)-Int64FromInt32(1) { + if pok != 0 { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + } else { + X__shlim(tls, f, int64(Int32FromInt32(0))) + return Float64FromInt32(0) + } + e2 = 0 + } + } else { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + } + e2 = e2 + (int64(4)*rp - int64(32)) + if !(x != 0) { + return float64(float64(sign) * float64(0)) + } + if e2 > int64(-emin) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ERANGE) + return float64(float64(float64(sign)*Float64FromFloat64(1.79769313486231570815e+308)) * Float64FromFloat64(1.79769313486231570815e+308)) + } + if e2 < int64(emin-Int32FromInt32(2)*Int32FromInt32(LDBL_MANT_DIG)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ERANGE) + return float64(float64(float64(sign)*Float64FromFloat64(2.22507385850720138309e-308)) * Float64FromFloat64(2.22507385850720138309e-308)) + } + for x < uint32(0x80000000) { + if y >= Float64FromFloat64(0.5) { + x = x + (x + uint32(1)) + y = y + (y - Float64FromInt32(1)) + } else { + x = x + x + y = y + y + } + e2 = e2 - 1 + } + if int64(bits) > int64(32)+e2-int64(emin) { + bits = int32(int64(32) + e2 - int64(emin)) + if bits < 0 { + bits = 0 + } + } + if bits < int32(LDBL_MANT_DIG) { + bias = Xcopysignl(tls, Xscalbn(tls, Float64FromInt32(1), Int32FromInt32(32)+Int32FromInt32(LDBL_MANT_DIG)-bits-int32(1)), float64(sign)) + } + if bits < int32(32) && y != 0 && !(x&Uint32FromInt32(1) != 0) { + x = x + 1 + y = Float64FromInt32(0) + } + y = bias + float64(float64(sign)*float64(x)) + float64(float64(sign)*y) + y = y - bias + if !(y != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ERANGE) + } + return Xscalbnl(tls, y, int32(e2)) +} + +func X__floatscan(tls *TLS, f uintptr, prec int32, pok int32) (r float64) { + if __ccgo_strace { + trc("tls=%v f=%v prec=%v pok=%v, (%v:)", tls, f, prec, pok, origin(2)) + defer func() { trc("-> %v", r) }() + } + var bits, c, emin, sign, v1, v2, v5, v6 int32 + var i, v27 Tsize_t + var v3, v4 uintptr + _, _, _, _, _, _, _, _, _, _, _, _ = bits, c, emin, i, sign, v1, v2, v27, v3, v4, v5, v6 + sign = int32(1) + switch prec { + case 0: + bits = int32(FLT_MANT_DIG) + emin = -int32(125) - bits + case int32(1): + bits = int32(DBL_MANT_DIG) + emin = -int32(1021) - bits + case int32(2): + bits = int32(LDBL_MANT_DIG) + emin = -int32(1021) - bits + default: + return Float64FromInt32(0) + } + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 4 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v2 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v2 = X__shgetc(tls, f) + } + v1 = v2 + c = v1 + v5 = v1 + v6 = BoolInt32(v5 == int32(' ') || Uint32FromInt32(v5)-uint32('\t') < uint32(5)) + goto _7 + _7: + if !(v6 != 0) { + break + } + } + if c == int32('+') || c == int32('-') { + sign = sign - int32(2)*BoolInt32(c == int32('-')) + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 4 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + i = uint32(0) + for { + if !(i < uint32(8) && c|int32(32) == Int32FromUint8(**(**uint8)(__ccgo_up(__ccgo_ts + 247 + uintptr(i))))) { + break + } + if i < uint32(7) { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 4 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + goto _11 + _11: + ; + i = i + 1 + } + if i == uint32(3) || i == uint32(8) || i > uint32(3) && pok != 0 { + if i != uint32(8) { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + if pok != 0 { + for { + if !(i > uint32(3)) { + break + } + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + goto _15 + _15: + ; + i = i - 1 + } + } + } + return float64(float32(sign) * X__builtin_inff(tls)) + } + if !(i != 0) { + i = uint32(0) + for { + if !(i < uint32(3) && c|int32(32) == Int32FromUint8(**(**uint8)(__ccgo_up(__ccgo_ts + 256 + uintptr(i))))) { + break + } + if i < uint32(2) { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 4 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + goto _16 + _16: + ; + i = i + 1 + } + } + if i == uint32(3) { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 4 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + if v1 != int32('(') { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + return float64(X__builtin_nanf(tls, __ccgo_ts)) + } + i = uint32(1) + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 4 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + if Uint32FromInt32(c-int32('0')) < uint32(10) || Uint32FromInt32(c-int32('A')) < uint32(26) || Uint32FromInt32(c-int32('a')) < uint32(26) || c == int32('_') { + goto _23 + } + if c == int32(')') { + return float64(X__builtin_nanf(tls, __ccgo_ts)) + } + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + if !(pok != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + X__shlim(tls, f, int64(Int32FromInt32(0))) + return Float64FromInt32(0) + } + for { + v27 = i + i = i - 1 + if !(v27 != 0) { + break + } + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + } + return float64(X__builtin_nanf(tls, __ccgo_ts)) + goto _23 + _23: + ; + i = i + 1 + } + return float64(X__builtin_nanf(tls, __ccgo_ts)) + } + if i != 0 { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + X__shlim(tls, f, int64(Int32FromInt32(0))) + return Float64FromInt32(0) + } + if c == int32('0') { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 4 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + if c|int32(32) == int32('x') { + return _hexfloat(tls, f, bits, emin, sign, pok) + } + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + c = int32('0') + } + return _decfloat(tls, f, c, bits, emin, sign, pok) +} + +// C documentation +// +// /* Lookup table for digit values. -1==255>=36 -> invalid */ +var _table6 = [257]uint8{ + 0: Uint8FromInt32(-Int32FromInt32(1)), + 1: Uint8FromInt32(-Int32FromInt32(1)), + 2: Uint8FromInt32(-Int32FromInt32(1)), + 3: Uint8FromInt32(-Int32FromInt32(1)), + 4: Uint8FromInt32(-Int32FromInt32(1)), + 5: Uint8FromInt32(-Int32FromInt32(1)), + 6: Uint8FromInt32(-Int32FromInt32(1)), + 7: Uint8FromInt32(-Int32FromInt32(1)), + 8: Uint8FromInt32(-Int32FromInt32(1)), + 9: Uint8FromInt32(-Int32FromInt32(1)), + 10: Uint8FromInt32(-Int32FromInt32(1)), + 11: Uint8FromInt32(-Int32FromInt32(1)), + 12: Uint8FromInt32(-Int32FromInt32(1)), + 13: Uint8FromInt32(-Int32FromInt32(1)), + 14: Uint8FromInt32(-Int32FromInt32(1)), + 15: Uint8FromInt32(-Int32FromInt32(1)), + 16: Uint8FromInt32(-Int32FromInt32(1)), + 17: Uint8FromInt32(-Int32FromInt32(1)), + 18: Uint8FromInt32(-Int32FromInt32(1)), + 19: Uint8FromInt32(-Int32FromInt32(1)), + 20: Uint8FromInt32(-Int32FromInt32(1)), + 21: Uint8FromInt32(-Int32FromInt32(1)), + 22: Uint8FromInt32(-Int32FromInt32(1)), + 23: Uint8FromInt32(-Int32FromInt32(1)), + 24: Uint8FromInt32(-Int32FromInt32(1)), + 25: Uint8FromInt32(-Int32FromInt32(1)), + 26: Uint8FromInt32(-Int32FromInt32(1)), + 27: Uint8FromInt32(-Int32FromInt32(1)), + 28: Uint8FromInt32(-Int32FromInt32(1)), + 29: Uint8FromInt32(-Int32FromInt32(1)), + 30: Uint8FromInt32(-Int32FromInt32(1)), + 31: Uint8FromInt32(-Int32FromInt32(1)), + 32: Uint8FromInt32(-Int32FromInt32(1)), + 33: Uint8FromInt32(-Int32FromInt32(1)), + 34: Uint8FromInt32(-Int32FromInt32(1)), + 35: Uint8FromInt32(-Int32FromInt32(1)), + 36: Uint8FromInt32(-Int32FromInt32(1)), + 37: Uint8FromInt32(-Int32FromInt32(1)), + 38: Uint8FromInt32(-Int32FromInt32(1)), + 39: Uint8FromInt32(-Int32FromInt32(1)), + 40: Uint8FromInt32(-Int32FromInt32(1)), + 41: Uint8FromInt32(-Int32FromInt32(1)), + 42: Uint8FromInt32(-Int32FromInt32(1)), + 43: Uint8FromInt32(-Int32FromInt32(1)), + 44: Uint8FromInt32(-Int32FromInt32(1)), + 45: Uint8FromInt32(-Int32FromInt32(1)), + 46: Uint8FromInt32(-Int32FromInt32(1)), + 47: Uint8FromInt32(-Int32FromInt32(1)), + 48: Uint8FromInt32(-Int32FromInt32(1)), + 50: uint8(1), + 51: uint8(2), + 52: uint8(3), + 53: uint8(4), + 54: uint8(5), + 55: uint8(6), + 56: uint8(7), + 57: uint8(8), + 58: uint8(9), + 59: Uint8FromInt32(-Int32FromInt32(1)), + 60: Uint8FromInt32(-Int32FromInt32(1)), + 61: Uint8FromInt32(-Int32FromInt32(1)), + 62: Uint8FromInt32(-Int32FromInt32(1)), + 63: Uint8FromInt32(-Int32FromInt32(1)), + 64: Uint8FromInt32(-Int32FromInt32(1)), + 65: Uint8FromInt32(-Int32FromInt32(1)), + 66: uint8(10), + 67: uint8(11), + 68: uint8(12), + 69: uint8(13), + 70: uint8(14), + 71: uint8(15), + 72: uint8(16), + 73: uint8(17), + 74: uint8(18), + 75: uint8(19), + 76: uint8(20), + 77: uint8(21), + 78: uint8(22), + 79: uint8(23), + 80: uint8(24), + 81: uint8(25), + 82: uint8(26), + 83: uint8(27), + 84: uint8(28), + 85: uint8(29), + 86: uint8(30), + 87: uint8(31), + 88: uint8(32), + 89: uint8(33), + 90: uint8(34), + 91: uint8(35), + 92: Uint8FromInt32(-Int32FromInt32(1)), + 93: Uint8FromInt32(-Int32FromInt32(1)), + 94: Uint8FromInt32(-Int32FromInt32(1)), + 95: Uint8FromInt32(-Int32FromInt32(1)), + 96: Uint8FromInt32(-Int32FromInt32(1)), + 97: Uint8FromInt32(-Int32FromInt32(1)), + 98: uint8(10), + 99: uint8(11), + 100: uint8(12), + 101: uint8(13), + 102: uint8(14), + 103: uint8(15), + 104: uint8(16), + 105: uint8(17), + 106: uint8(18), + 107: uint8(19), + 108: uint8(20), + 109: uint8(21), + 110: uint8(22), + 111: uint8(23), + 112: uint8(24), + 113: uint8(25), + 114: uint8(26), + 115: uint8(27), + 116: uint8(28), + 117: uint8(29), + 118: uint8(30), + 119: uint8(31), + 120: uint8(32), + 121: uint8(33), + 122: uint8(34), + 123: uint8(35), + 124: Uint8FromInt32(-Int32FromInt32(1)), + 125: Uint8FromInt32(-Int32FromInt32(1)), + 126: Uint8FromInt32(-Int32FromInt32(1)), + 127: Uint8FromInt32(-Int32FromInt32(1)), + 128: Uint8FromInt32(-Int32FromInt32(1)), + 129: Uint8FromInt32(-Int32FromInt32(1)), + 130: Uint8FromInt32(-Int32FromInt32(1)), + 131: Uint8FromInt32(-Int32FromInt32(1)), + 132: Uint8FromInt32(-Int32FromInt32(1)), + 133: Uint8FromInt32(-Int32FromInt32(1)), + 134: Uint8FromInt32(-Int32FromInt32(1)), + 135: Uint8FromInt32(-Int32FromInt32(1)), + 136: Uint8FromInt32(-Int32FromInt32(1)), + 137: Uint8FromInt32(-Int32FromInt32(1)), + 138: Uint8FromInt32(-Int32FromInt32(1)), + 139: Uint8FromInt32(-Int32FromInt32(1)), + 140: Uint8FromInt32(-Int32FromInt32(1)), + 141: Uint8FromInt32(-Int32FromInt32(1)), + 142: Uint8FromInt32(-Int32FromInt32(1)), + 143: Uint8FromInt32(-Int32FromInt32(1)), + 144: Uint8FromInt32(-Int32FromInt32(1)), + 145: Uint8FromInt32(-Int32FromInt32(1)), + 146: Uint8FromInt32(-Int32FromInt32(1)), + 147: Uint8FromInt32(-Int32FromInt32(1)), + 148: Uint8FromInt32(-Int32FromInt32(1)), + 149: Uint8FromInt32(-Int32FromInt32(1)), + 150: Uint8FromInt32(-Int32FromInt32(1)), + 151: Uint8FromInt32(-Int32FromInt32(1)), + 152: Uint8FromInt32(-Int32FromInt32(1)), + 153: Uint8FromInt32(-Int32FromInt32(1)), + 154: Uint8FromInt32(-Int32FromInt32(1)), + 155: Uint8FromInt32(-Int32FromInt32(1)), + 156: Uint8FromInt32(-Int32FromInt32(1)), + 157: Uint8FromInt32(-Int32FromInt32(1)), + 158: Uint8FromInt32(-Int32FromInt32(1)), + 159: Uint8FromInt32(-Int32FromInt32(1)), + 160: Uint8FromInt32(-Int32FromInt32(1)), + 161: Uint8FromInt32(-Int32FromInt32(1)), + 162: Uint8FromInt32(-Int32FromInt32(1)), + 163: Uint8FromInt32(-Int32FromInt32(1)), + 164: Uint8FromInt32(-Int32FromInt32(1)), + 165: Uint8FromInt32(-Int32FromInt32(1)), + 166: Uint8FromInt32(-Int32FromInt32(1)), + 167: Uint8FromInt32(-Int32FromInt32(1)), + 168: Uint8FromInt32(-Int32FromInt32(1)), + 169: Uint8FromInt32(-Int32FromInt32(1)), + 170: Uint8FromInt32(-Int32FromInt32(1)), + 171: Uint8FromInt32(-Int32FromInt32(1)), + 172: Uint8FromInt32(-Int32FromInt32(1)), + 173: Uint8FromInt32(-Int32FromInt32(1)), + 174: Uint8FromInt32(-Int32FromInt32(1)), + 175: Uint8FromInt32(-Int32FromInt32(1)), + 176: Uint8FromInt32(-Int32FromInt32(1)), + 177: Uint8FromInt32(-Int32FromInt32(1)), + 178: Uint8FromInt32(-Int32FromInt32(1)), + 179: Uint8FromInt32(-Int32FromInt32(1)), + 180: Uint8FromInt32(-Int32FromInt32(1)), + 181: Uint8FromInt32(-Int32FromInt32(1)), + 182: Uint8FromInt32(-Int32FromInt32(1)), + 183: Uint8FromInt32(-Int32FromInt32(1)), + 184: Uint8FromInt32(-Int32FromInt32(1)), + 185: Uint8FromInt32(-Int32FromInt32(1)), + 186: Uint8FromInt32(-Int32FromInt32(1)), + 187: Uint8FromInt32(-Int32FromInt32(1)), + 188: Uint8FromInt32(-Int32FromInt32(1)), + 189: Uint8FromInt32(-Int32FromInt32(1)), + 190: Uint8FromInt32(-Int32FromInt32(1)), + 191: Uint8FromInt32(-Int32FromInt32(1)), + 192: Uint8FromInt32(-Int32FromInt32(1)), + 193: Uint8FromInt32(-Int32FromInt32(1)), + 194: Uint8FromInt32(-Int32FromInt32(1)), + 195: Uint8FromInt32(-Int32FromInt32(1)), + 196: Uint8FromInt32(-Int32FromInt32(1)), + 197: Uint8FromInt32(-Int32FromInt32(1)), + 198: Uint8FromInt32(-Int32FromInt32(1)), + 199: Uint8FromInt32(-Int32FromInt32(1)), + 200: Uint8FromInt32(-Int32FromInt32(1)), + 201: Uint8FromInt32(-Int32FromInt32(1)), + 202: Uint8FromInt32(-Int32FromInt32(1)), + 203: Uint8FromInt32(-Int32FromInt32(1)), + 204: Uint8FromInt32(-Int32FromInt32(1)), + 205: Uint8FromInt32(-Int32FromInt32(1)), + 206: Uint8FromInt32(-Int32FromInt32(1)), + 207: Uint8FromInt32(-Int32FromInt32(1)), + 208: Uint8FromInt32(-Int32FromInt32(1)), + 209: Uint8FromInt32(-Int32FromInt32(1)), + 210: Uint8FromInt32(-Int32FromInt32(1)), + 211: Uint8FromInt32(-Int32FromInt32(1)), + 212: Uint8FromInt32(-Int32FromInt32(1)), + 213: Uint8FromInt32(-Int32FromInt32(1)), + 214: Uint8FromInt32(-Int32FromInt32(1)), + 215: Uint8FromInt32(-Int32FromInt32(1)), + 216: Uint8FromInt32(-Int32FromInt32(1)), + 217: Uint8FromInt32(-Int32FromInt32(1)), + 218: Uint8FromInt32(-Int32FromInt32(1)), + 219: Uint8FromInt32(-Int32FromInt32(1)), + 220: Uint8FromInt32(-Int32FromInt32(1)), + 221: Uint8FromInt32(-Int32FromInt32(1)), + 222: Uint8FromInt32(-Int32FromInt32(1)), + 223: Uint8FromInt32(-Int32FromInt32(1)), + 224: Uint8FromInt32(-Int32FromInt32(1)), + 225: Uint8FromInt32(-Int32FromInt32(1)), + 226: Uint8FromInt32(-Int32FromInt32(1)), + 227: Uint8FromInt32(-Int32FromInt32(1)), + 228: Uint8FromInt32(-Int32FromInt32(1)), + 229: Uint8FromInt32(-Int32FromInt32(1)), + 230: Uint8FromInt32(-Int32FromInt32(1)), + 231: Uint8FromInt32(-Int32FromInt32(1)), + 232: Uint8FromInt32(-Int32FromInt32(1)), + 233: Uint8FromInt32(-Int32FromInt32(1)), + 234: Uint8FromInt32(-Int32FromInt32(1)), + 235: Uint8FromInt32(-Int32FromInt32(1)), + 236: Uint8FromInt32(-Int32FromInt32(1)), + 237: Uint8FromInt32(-Int32FromInt32(1)), + 238: Uint8FromInt32(-Int32FromInt32(1)), + 239: Uint8FromInt32(-Int32FromInt32(1)), + 240: Uint8FromInt32(-Int32FromInt32(1)), + 241: Uint8FromInt32(-Int32FromInt32(1)), + 242: Uint8FromInt32(-Int32FromInt32(1)), + 243: Uint8FromInt32(-Int32FromInt32(1)), + 244: Uint8FromInt32(-Int32FromInt32(1)), + 245: Uint8FromInt32(-Int32FromInt32(1)), + 246: Uint8FromInt32(-Int32FromInt32(1)), + 247: Uint8FromInt32(-Int32FromInt32(1)), + 248: Uint8FromInt32(-Int32FromInt32(1)), + 249: Uint8FromInt32(-Int32FromInt32(1)), + 250: Uint8FromInt32(-Int32FromInt32(1)), + 251: Uint8FromInt32(-Int32FromInt32(1)), + 252: Uint8FromInt32(-Int32FromInt32(1)), + 253: Uint8FromInt32(-Int32FromInt32(1)), + 254: Uint8FromInt32(-Int32FromInt32(1)), + 255: Uint8FromInt32(-Int32FromInt32(1)), + 256: Uint8FromInt32(-Int32FromInt32(1)), +} + +func X__intscan(tls *TLS, f uintptr, base uint32, pok int32, lim uint64) (r uint64) { + if __ccgo_strace { + trc("tls=%v f=%v base=%v pok=%v lim=%v, (%v:)", tls, f, base, pok, lim, origin(2)) + defer func() { trc("-> %v", r) }() + } + var bs, c, neg, v1, v2, v5, v6 int32 + var val, v3, v4 uintptr + var x uint32 + var y uint64 + _, _, _, _, _, _, _, _, _, _, _, _ = bs, c, neg, val, x, y, v1, v2, v3, v4, v5, v6 + val = uintptr(unsafe.Pointer(&_table6)) + uintptr(1) + neg = 0 + if base > uint32(36) || base == uint32(1) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uint64(0) + } + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 4 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v2 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v2 = X__shgetc(tls, f) + } + v1 = v2 + c = v1 + v5 = v1 + v6 = BoolInt32(v5 == int32(' ') || Uint32FromInt32(v5)-uint32('\t') < uint32(5)) + goto _7 + _7: + if !(v6 != 0) { + break + } + } + if c == int32('+') || c == int32('-') { + neg = -BoolInt32(c == int32('-')) + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 4 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + if (base == uint32(0) || base == uint32(16)) && c == int32('0') { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 4 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + if c|int32(32) == int32('x') { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 4 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + if Int32FromUint8(**(**uint8)(__ccgo_up(val + uintptr(c)))) >= int32(16) { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + if pok != 0 { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + } else { + X__shlim(tls, f, int64(Int32FromInt32(0))) + } + return uint64(0) + } + base = uint32(16) + } else { + if base == uint32(0) { + base = uint32(8) + } + } + } else { + if base == uint32(0) { + base = uint32(10) + } + if uint32(**(**uint8)(__ccgo_up(val + uintptr(c)))) >= base { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + X__shlim(tls, f, int64(Int32FromInt32(0))) + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uint64(0) + } + } + if base == uint32(10) { + x = uint32(0) + for { + if !(Uint32FromInt32(c-int32('0')) < uint32(10) && x <= Uint32FromUint32(0xffffffff)/Uint32FromInt32(10)-Uint32FromInt32(1)) { + break + } + x = x*uint32(10) + Uint32FromInt32(c-Int32FromUint8('0')) + goto _17 + _17: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 4 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + y = uint64(x) + for { + if !(Uint32FromInt32(c-int32('0')) < uint32(10) && y <= (Uint64FromUint64(2)*Uint64FromInt64(0x7fffffffffffffff)+Uint64FromInt32(1))/Uint64FromInt32(10) && uint64(10)*y <= Uint64FromUint64(2)*Uint64FromInt64(0x7fffffffffffffff)+Uint64FromInt32(1)-Uint64FromInt32(c-Int32FromUint8('0'))) { + break + } + y = y*uint64(10) + Uint64FromInt32(c-Int32FromUint8('0')) + goto _21 + _21: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 4 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + if Uint32FromInt32(c-int32('0')) >= uint32(10) { + goto done + } + } else { + if !(base&(base-Uint32FromInt32(1)) != 0) { + bs = Int32FromUint8(**(**uint8)(__ccgo_up(__ccgo_ts + 260 + uintptr(uint32(0x17)*base>>int32(5)&uint32(7))))) + x = uint32(0) + for { + if !(uint32(**(**uint8)(__ccgo_up(val + uintptr(c)))) < base && x <= Uint32FromUint32(0xffffffff)/Uint32FromInt32(32)) { + break + } + x = x<>bs) { + break + } + y = y<= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + if y >= lim { + if !(lim&Uint64FromInt32(1) != 0) && !(neg != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ERANGE) + return lim - uint64(1) + } else { + if y > lim { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ERANGE) + return lim + } + } + } + return y ^ Uint64FromInt32(neg) - Uint64FromInt32(neg) +} + +func X__procfdname(tls *TLS, buf uintptr, fd uint32) { + if __ccgo_strace { + trc("tls=%v buf=%v fd=%v, (%v:)", tls, buf, fd, origin(2)) + } + var i, j, v5 uint32 + var v2 uint8 + _, _, _, _ = i, j, v2, v5 + i = uint32(0) + for { + v2 = **(**uint8)(__ccgo_up(__ccgo_ts + 269 + uintptr(i))) + **(**uint8)(__ccgo_up(buf + uintptr(i))) = v2 + if !(v2 != 0) { + break + } + goto _1 + _1: + ; + i = i + 1 + } + if !(fd != 0) { + **(**uint8)(__ccgo_up(buf + uintptr(i))) = uint8('0') + **(**uint8)(__ccgo_up(buf + uintptr(i+uint32(1)))) = uint8(0) + return + } + j = fd + for { + if !(j != 0) { + break + } + goto _3 + _3: + ; + j = j / uint32(10) + i = i + 1 + } + **(**uint8)(__ccgo_up(buf + uintptr(i))) = uint8(0) + for { + if !(fd != 0) { + break + } + i = i - 1 + v5 = i + **(**uint8)(__ccgo_up(buf + uintptr(v5))) = uint8(uint32('0') + fd%uint32(10)) + goto _4 + _4: + ; + fd = fd / uint32(10) + } +} + +/* The shcnt field stores the number of bytes read so far, offset by + * the value of buf-rpos at the last function call (__shlim or __shgetc), + * so that between calls the inline shcnt macro can add rpos-buf to get + * the actual count. */ + +func X__shlim(tls *TLS, f uintptr, lim Toff_t) { + if __ccgo_strace { + trc("tls=%v f=%v lim=%v, (%v:)", tls, f, lim, origin(2)) + } + (*TFILE)(unsafe.Pointer(f)).Fshlim = lim + (*TFILE)(unsafe.Pointer(f)).Fshcnt = int64(int32((*TFILE)(unsafe.Pointer(f)).Fbuf) - int32((*TFILE)(unsafe.Pointer(f)).Frpos)) + /* If lim is nonzero, rend must be a valid pointer. */ + if lim != 0 && int64(int32((*TFILE)(unsafe.Pointer(f)).Frend)-int32((*TFILE)(unsafe.Pointer(f)).Frpos)) > lim { + (*TFILE)(unsafe.Pointer(f)).Fshend = (*TFILE)(unsafe.Pointer(f)).Frpos + uintptr(lim) + } else { + (*TFILE)(unsafe.Pointer(f)).Fshend = (*TFILE)(unsafe.Pointer(f)).Frend + } +} + +func X__shgetc(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var c, v1 int32 + var cnt Toff_t + var v2 bool + _, _, _, _ = c, cnt, v1, v2 + cnt = (*TFILE)(unsafe.Pointer(f)).Fshcnt + int64(int32((*TFILE)(unsafe.Pointer(f)).Frpos)-int32((*TFILE)(unsafe.Pointer(f)).Fbuf)) + if v2 = (*TFILE)(unsafe.Pointer(f)).Fshlim != 0 && cnt >= (*TFILE)(unsafe.Pointer(f)).Fshlim; !v2 { + v1 = X__uflow(tls, f) + c = v1 + } + if v2 || v1 < 0 { + (*TFILE)(unsafe.Pointer(f)).Fshcnt = int64(int32((*TFILE)(unsafe.Pointer(f)).Fbuf)-int32((*TFILE)(unsafe.Pointer(f)).Frpos)) + cnt + (*TFILE)(unsafe.Pointer(f)).Fshend = (*TFILE)(unsafe.Pointer(f)).Frpos + (*TFILE)(unsafe.Pointer(f)).Fshlim = int64(-int32(1)) + return -int32(1) + } + cnt = cnt + 1 + if (*TFILE)(unsafe.Pointer(f)).Fshlim != 0 && int64(int32((*TFILE)(unsafe.Pointer(f)).Frend)-int32((*TFILE)(unsafe.Pointer(f)).Frpos)) > (*TFILE)(unsafe.Pointer(f)).Fshlim-cnt { + (*TFILE)(unsafe.Pointer(f)).Fshend = (*TFILE)(unsafe.Pointer(f)).Frpos + uintptr((*TFILE)(unsafe.Pointer(f)).Fshlim-cnt) + } else { + (*TFILE)(unsafe.Pointer(f)).Fshend = (*TFILE)(unsafe.Pointer(f)).Frend + } + (*TFILE)(unsafe.Pointer(f)).Fshcnt = int64(int32((*TFILE)(unsafe.Pointer(f)).Fbuf)-int32((*TFILE)(unsafe.Pointer(f)).Frpos)) + cnt + if (*TFILE)(unsafe.Pointer(f)).Frpos <= (*TFILE)(unsafe.Pointer(f)).Fbuf { + **(**uint8)(__ccgo_up((*TFILE)(unsafe.Pointer(f)).Frpos + uintptr(-Int32FromInt32(1)))) = Uint8FromInt32(c) + } + return c +} + +func X__syscall_ret(tls *TLS, r uint32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v r=%v, (%v:)", tls, r, origin(2)) + defer func() { trc("-> %v", r1) }() + } + if r > -Uint32FromUint32(4096) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = Int32FromUint32(-r) + return -int32(1) + } + return Int32FromUint32(r) +} + +type TElf_Symndx = uint32 + +type Tdl_phdr_info = struct { + F__ccgo_align [0]uint32 + Fdlpi_addr TElf32_Addr + Fdlpi_name uintptr + Fdlpi_phdr uintptr + Fdlpi_phnum TElf32_Half + F__ccgo_align4 [2]byte + Fdlpi_adds uint64 + Fdlpi_subs uint64 + Fdlpi_tls_modid Tsize_t + Fdlpi_tls_data uintptr +} + +type Tlink_map = struct { + Fl_addr TElf32_Addr + Fl_name uintptr + Fl_ld uintptr + Fl_next uintptr + Fl_prev uintptr +} + +type Tr_debug = struct { + Fr_version int32 + Fr_map uintptr + Fr_brk TElf32_Addr + Fr_state int32 + Fr_ldbase TElf32_Addr +} + +const _RT_CONSISTENT = 0 +const _RT_ADD = 1 +const _RT_DELETE = 2 +const VERSION = "1.2.5" + +const IPC_CREAT = 512 +const IPC_EXCL = 1024 +const IPC_INFO = 3 +const IPC_NOWAIT = 2048 +const IPC_RMID = 0 +const IPC_SET = 1 +const IPC_STAT = 258 +const __ipc_perm_key = 0 +const __ipc_perm_seq = 0 + +type Tkey_t = int32 + +type Tipc_perm = struct { + F__key Tkey_t + Fuid Tuid_t + Fgid Tgid_t + Fcuid Tuid_t + Fcgid Tgid_t + Fmode Tmode_t + F__seq int32 + F__pad1 int32 + F__pad2 int32 +} + +func Xftok(tls *TLS, path uintptr, id int32) (r Tkey_t) { + if __ccgo_strace { + trc("tls=%v path=%v id=%v, (%v:)", tls, path, id, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(160) + defer tls.Free(160) + var _ /* st at bp+0 */ Tstat + if Xstat(tls, path, bp) < 0 { + return -int32(1) + } + return Int32FromUint64((**(**Tstat)(__ccgo_up(bp))).Fst_ino&Uint64FromInt32(0xffff) | (**(**Tstat)(__ccgo_up(bp))).Fst_dev&Uint64FromInt32(0xff)< %v", r1) }() + } + bp := tls.Alloc(112) + defer tls.Free(112) + var orig uintptr + var r int32 + var _ /* out at bp+0 */ Tmsqid_ds + _, _ = orig, r + if cmd&(Int32FromInt32(IPC_STAT)&Int32FromInt32(0x100)) != 0 { + **(**Tmsqid_ds)(__ccgo_up(bp)) = Tmsqid_ds{} + orig = buf + buf = bp + } + r = int32(X__syscall3(tls, int32(SYS_msgctl), q, int32(cmd & ^(Int32FromInt32(IPC_STAT)&Int32FromInt32(0x100)) | Int32FromInt32(IPC_64)), int32(buf))) + if r >= 0 && cmd&(Int32FromInt32(IPC_STAT)&Int32FromInt32(0x100)) != 0 { + buf = orig + **(**Tmsqid_ds)(__ccgo_up(buf)) = **(**Tmsqid_ds)(__ccgo_up(bp)) + (*Tmsqid_ds)(unsafe.Pointer(buf)).Fmsg_stime = Int64FromUint32((*Tmsqid_ds)(unsafe.Pointer(buf)).F__msg_stime_lo) | (0+Int64FromUint32((*Tmsqid_ds)(unsafe.Pointer(buf)).F__msg_stime_hi))< %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_msgget), k, flag))) +} + +func Xmsgrcv(tls *TLS, q int32, m uintptr, len1 Tsize_t, type1 int32, flag int32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v q=%v m=%v len1=%v type1=%v flag=%v, (%v:)", tls, q, m, len1, type1, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(___syscall_cp(tls, int32(SYS_msgrcv), q, int32(m), Int32FromUint32(len1), type1, flag, 0))) +} + +func Xmsgsnd(tls *TLS, q int32, m uintptr, len1 Tsize_t, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v q=%v m=%v len1=%v flag=%v, (%v:)", tls, q, m, len1, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(___syscall_cp(tls, int32(SYS_msgsnd), q, int32(m), Int32FromUint32(len1), flag, 0, 0))) +} + +const GETALL = 13 +const GETNCNT = 14 +const GETPID = 11 +const GETVAL = 12 +const GETZCNT = 15 +const SEM_INFO = 19 +const SEM_STAT = 274 +const SEM_STAT_ANY = 276 +const SEM_UNDO = 4096 +const SETALL = 17 +const SETVAL = 16 +const _SEM_SEMUN_UNDEFINED = 1 + +type Tsemid_ds = struct { + F__ccgo_align [0]uint32 + Fsem_perm Tipc_perm + F__sem_otime_lo uint32 + F__sem_otime_hi uint32 + F__sem_ctime_lo uint32 + F__sem_ctime_hi uint32 + Fsem_nsems uint16 + F__sem_nsems_pad [2]uint8 + F__unused3 int32 + F__unused4 int32 + Fsem_otime Ttime_t + Fsem_ctime Ttime_t +} + +type Tseminfo = struct { + Fsemmap int32 + Fsemmni int32 + Fsemmns int32 + Fsemmnu int32 + Fsemmsl int32 + Fsemopm int32 + Fsemume int32 + Fsemusz int32 + Fsemvmx int32 + Fsemaem int32 +} + +type Tsembuf = struct { + Fsem_num uint16 + Fsem_op int16 + Fsem_flg int16 +} + +type Tsemun = struct { + Fbuf [0]uintptr + Farray [0]uintptr + Fval int32 +} + +func Xsemctl(tls *TLS, id int32, num int32, cmd int32, va uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v id=%v num=%v cmd=%v va=%v, (%v:)", tls, id, num, cmd, va, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(96) + defer tls.Free(96) + var ap Tva_list + var orig uintptr + var r int32 + var _ /* arg at bp+0 */ Tsemun + var _ /* out at bp+8 */ Tsemid_ds + _, _, _ = ap, orig, r + *(*Tsemun)(unsafe.Pointer(bp)) = Tsemun{} + *(*int32)(unsafe.Pointer(bp)) = 0 + switch cmd & ^(Int32FromInt32(IPC_STAT) & Int32FromInt32(0x100)) { + case int32(SETVAL): + fallthrough + case int32(GETALL): + fallthrough + case int32(SETALL): + fallthrough + case int32(IPC_SET): + fallthrough + case int32(IPC_INFO): + fallthrough + case int32(SEM_INFO): + fallthrough + case Int32FromInt32(IPC_STAT) & ^(Int32FromInt32(IPC_STAT) & Int32FromInt32(0x100)): + fallthrough + case (Int32FromInt32(18) | Int32FromInt32(IPC_STAT)&Int32FromInt32(0x100)) & ^(Int32FromInt32(IPC_STAT) & Int32FromInt32(0x100)): + fallthrough + case (Int32FromInt32(20) | Int32FromInt32(IPC_STAT)&Int32FromInt32(0x100)) & ^(Int32FromInt32(IPC_STAT) & Int32FromInt32(0x100)): + ap = va + **(**Tsemun)(__ccgo_up(bp)) = *(*Tsemun)(unsafe.Pointer(VaOther(&ap, 4))) + _ = ap + } + if cmd&(Int32FromInt32(IPC_STAT)&Int32FromInt32(0x100)) != 0 { + **(**Tsemid_ds)(__ccgo_up(bp + 8)) = Tsemid_ds{} + orig = *(*uintptr)(unsafe.Pointer(bp)) + *(*uintptr)(unsafe.Pointer(bp)) = bp + 8 + } + r = int32(X__syscall4(tls, int32(SYS_semctl), id, num, int32(cmd & ^(Int32FromInt32(IPC_STAT)&Int32FromInt32(0x100)) | Int32FromInt32(IPC_64)), int32(*(*uintptr)(unsafe.Pointer(bp))))) + if r >= 0 && cmd&(Int32FromInt32(IPC_STAT)&Int32FromInt32(0x100)) != 0 { + *(*uintptr)(unsafe.Pointer(bp)) = orig + **(**Tsemid_ds)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp)))) = **(**Tsemid_ds)(__ccgo_up(bp + 8)) + (*Tsemid_ds)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)))).Fsem_otime = Int64FromUint32((*Tsemid_ds)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)))).F__sem_otime_lo) | (0+Int64FromUint32((*Tsemid_ds)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)))).F__sem_otime_hi))< %v", r) }() + } + /* The kernel uses the wrong type for the sem_nsems member + * of struct semid_ds, and thus might not check that the + * n fits in the correct (per POSIX) userspace type, so + * we have to check here. */ + if n > int32(USHRT_MAX) { + return X__syscall_ret(tls, Uint32FromInt32(-Int32FromInt32(EINVAL))) + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_semget), key, n, fl))) +} + +func Xsemop(tls *TLS, id int32, buf uintptr, n Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v id=%v buf=%v n=%v, (%v:)", tls, id, buf, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_semop), id, int32(buf), Int32FromUint32(n)))) +} + +const NO_TIME32 = 0 +const __key = 0 +const __seq = 0 + +type Tipc_perm1 = struct { + Fkey Tkey_t + Fuid Tuid_t + Fgid Tgid_t + Fcuid Tuid_t + Fcgid Tgid_t + Fmode Tmode_t + Fseq int32 + F__pad1 int32 + F__pad2 int32 +} + +type Tsemid_ds1 = struct { + F__ccgo_align [0]uint32 + Fsem_perm Tipc_perm1 + F__sem_otime_lo uint32 + F__sem_otime_hi uint32 + F__sem_ctime_lo uint32 + F__sem_ctime_hi uint32 + Fsem_nsems uint16 + F__sem_nsems_pad [2]uint8 + F__unused3 int32 + F__unused4 int32 + Fsem_otime Ttime_t + Fsem_ctime Ttime_t +} + +func Xsemtimedop(tls *TLS, id int32, buf uintptr, n Tsize_t, ts uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v id=%v buf=%v n=%v ts=%v, (%v:)", tls, id, buf, n, ts, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var ns, r, v2 int32 + var s Ttime_t + var v1 int64 + var v3 uintptr + var v5 uint64 + _, _, _, _, _, _, _ = ns, r, s, v1, v2, v3, v5 + if ts != 0 { + v1 = (*Ttimespec)(unsafe.Pointer(ts)).Ftv_sec + } else { + v1 = 0 + } + s = v1 + if ts != 0 { + v2 = (*Ttimespec)(unsafe.Pointer(ts)).Ftv_nsec + } else { + v2 = 0 + } + ns = v2 + r = -int32(ENOSYS) + if Bool(NO_TIME32 != 0) || !!((Uint64FromInt64(s)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) { + if ts != 0 { + *(*[2]int64)(unsafe.Pointer(bp)) = [2]int64{ + 0: s, + 1: int64(ns), + } + v3 = bp + } else { + v3 = uintptr(0) + } + r = int32(X__syscall4(tls, int32(SYS_semtimedop_time64), id, int32(buf), Int32FromUint32(n), int32(v3))) + } + if Bool(NO_TIME32 != 0) || r != -int32(ENOSYS) { + return X__syscall_ret(tls, Uint32FromInt32(r)) + } + if ts != 0 { + if !((Uint64FromInt64(s)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) { + v5 = Uint64FromInt64(s) + } else { + v5 = uint64(0x7fffffff) + (0+Uint64FromInt64(s))>>int32(63) + } + *(*[2]int32)(unsafe.Pointer(bp + 16)) = [2]int32{ + 0: int32(Int32FromUint64(v5)), + 1: ns, + } + v3 = bp + 16 + } else { + v3 = uintptr(0) + } + ts = v3 + return X__syscall_ret(tls, Uint32FromInt32(X__syscall4(tls, int32(SYS_semtimedop), id, int32(buf), Int32FromUint32(n), int32(ts)))) +} + +const SHMLBA = 4096 +const SHM_DEST = 512 +const SHM_EXEC = 32768 +const SHM_HUGETLB = 2048 +const SHM_HUGE_16GB = 2281701376 +const SHM_HUGE_16MB = 1610612736 +const SHM_HUGE_1GB = 2013265920 +const SHM_HUGE_1MB = 1342177280 +const SHM_HUGE_256MB = 1879048192 +const SHM_HUGE_2GB = 2080374784 +const SHM_HUGE_2MB = 1409286144 +const SHM_HUGE_32MB = 1677721600 +const SHM_HUGE_512KB = 1275068416 +const SHM_HUGE_512MB = 1946157056 +const SHM_HUGE_64KB = 1073741824 +const SHM_HUGE_8MB = 1543503872 +const SHM_HUGE_MASK = 63 +const SHM_HUGE_SHIFT = 26 +const SHM_INFO = 14 +const SHM_LOCK = 11 +const SHM_LOCKED = 1024 +const SHM_NORESERVE = 4096 +const SHM_R = 256 +const SHM_RDONLY = 4096 +const SHM_REMAP = 16384 +const SHM_RND = 8192 +const SHM_STAT = 269 +const SHM_STAT_ANY = 271 +const SHM_UNLOCK = 12 +const SHM_W = 128 + +type Tshmid_ds = struct { + F__ccgo_align [0]uint32 + Fshm_perm Tipc_perm + Fshm_segsz Tsize_t + F__shm_atime_lo uint32 + F__shm_atime_hi uint32 + F__shm_dtime_lo uint32 + F__shm_dtime_hi uint32 + F__shm_ctime_lo uint32 + F__shm_ctime_hi uint32 + Fshm_cpid Tpid_t + Fshm_lpid Tpid_t + Fshm_nattch uint32 + F__pad1 uint32 + F__pad2 uint32 + F__pad3 uint32 + Fshm_atime Ttime_t + Fshm_dtime Ttime_t + Fshm_ctime Ttime_t +} + +type Tshminfo = struct { + Fshmmax uint32 + Fshmmin uint32 + Fshmmni uint32 + Fshmseg uint32 + Fshmall uint32 + F__unused [4]uint32 +} + +type Tshm_info = struct { + F__used_ids int32 + Fshm_tot uint32 + Fshm_rss uint32 + Fshm_swp uint32 + F__swap_attempts uint32 + F__swap_successes uint32 +} + +type Tshmatt_t = uint32 + +func Xshmat(tls *TLS, id int32, addr uintptr, flag int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v id=%v addr=%v flag=%v, (%v:)", tls, id, addr, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_shmat), id, int32(addr), flag)))) +} + +func Xshmctl(tls *TLS, id int32, cmd int32, buf uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v id=%v cmd=%v buf=%v, (%v:)", tls, id, cmd, buf, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(112) + defer tls.Free(112) + var orig uintptr + var r int32 + var _ /* out at bp+0 */ Tshmid_ds + _, _ = orig, r + if cmd&(Int32FromInt32(IPC_STAT)&Int32FromInt32(0x100)) != 0 { + **(**Tshmid_ds)(__ccgo_up(bp)) = Tshmid_ds{} + orig = buf + buf = bp + } + r = int32(X__syscall3(tls, int32(SYS_shmctl), id, int32(cmd & ^(Int32FromInt32(IPC_STAT)&Int32FromInt32(0x100)) | Int32FromInt32(IPC_64)), int32(buf))) + if r >= 0 && cmd&(Int32FromInt32(IPC_STAT)&Int32FromInt32(0x100)) != 0 { + buf = orig + **(**Tshmid_ds)(__ccgo_up(buf)) = **(**Tshmid_ds)(__ccgo_up(bp)) + (*Tshmid_ds)(unsafe.Pointer(buf)).Fshm_atime = Int64FromUint32((*Tshmid_ds)(unsafe.Pointer(buf)).F__shm_atime_lo) | (0+Int64FromUint32((*Tshmid_ds)(unsafe.Pointer(buf)).F__shm_atime_hi))< %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall1(tls, int32(SYS_shmdt), int32(addr)))) +} + +func Xshmget(tls *TLS, key Tkey_t, size Tsize_t, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v key=%v size=%v flag=%v, (%v:)", tls, key, size, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + if size > Uint32FromInt32(Int32FromInt32(INT32_MAX)) { + size = Uint32FromUint32(0xffffffff) + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_shmget), key, Int32FromUint32(size), flag))) +} + +type Tpasswd = struct { + Fpw_name uintptr + Fpw_passwd uintptr + Fpw_uid Tuid_t + Fpw_gid Tgid_t + Fpw_gecos uintptr + Fpw_dir uintptr + Fpw_shell uintptr +} + +func Xcuserid(tls *TLS, buf uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v buf=%v, (%v:)", tls, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(1056) + defer tls.Free(1056) + var len1 Tsize_t + var _ /* ppw at bp+28 */ uintptr + var _ /* pw at bp+0 */ Tpasswd + var _ /* pwb at bp+32 */ [256]int32 + _ = len1 + if buf != 0 { + **(**uint8)(__ccgo_up(buf)) = uint8(0) + } + Xgetpwuid_r(tls, Xgeteuid(tls), bp, bp+32, uint32(1024), bp+28) + if !(**(**uintptr)(__ccgo_up(bp + 28)) != 0) { + return buf + } + len1 = Xstrnlen(tls, (**(**Tpasswd)(__ccgo_up(bp))).Fpw_name, uint32(L_cuserid)) + if len1 == uint32(L_cuserid) { + return buf + } + if !(buf != 0) { + buf = uintptr(unsafe.Pointer(&_usridbuf)) + } + _memcpy(tls, buf, (**(**Tpasswd)(__ccgo_up(bp))).Fpw_name, len1+uint32(1)) + return buf +} + +var _usridbuf [20]uint8 + +func Xvwarn(tls *TLS, fmt uintptr, ap Tva_list) { + if __ccgo_strace { + trc("tls=%v fmt=%v ap=%v, (%v:)", tls, fmt, ap, origin(2)) + } + bp := tls.Alloc(16) + defer tls.Free(16) + Xfprintf(tls, uintptr(unsafe.Pointer(&X__stderr_FILE)), __ccgo_ts+284, VaList(bp+8, Xprogram_invocation_short_name)) + if fmt != 0 { + Xvfprintf(tls, uintptr(unsafe.Pointer(&X__stderr_FILE)), fmt, ap) + Xfputs(tls, __ccgo_ts+289, uintptr(unsafe.Pointer(&X__stderr_FILE))) + } + Xperror(tls, uintptr(0)) +} + +func Xvwarnx(tls *TLS, fmt uintptr, ap Tva_list) { + if __ccgo_strace { + trc("tls=%v fmt=%v ap=%v, (%v:)", tls, fmt, ap, origin(2)) + } + bp := tls.Alloc(16) + defer tls.Free(16) + Xfprintf(tls, uintptr(unsafe.Pointer(&X__stderr_FILE)), __ccgo_ts+284, VaList(bp+8, Xprogram_invocation_short_name)) + if fmt != 0 { + Xvfprintf(tls, uintptr(unsafe.Pointer(&X__stderr_FILE)), fmt, ap) + } + Xputc(tls, int32('\n'), uintptr(unsafe.Pointer(&X__stderr_FILE))) +} + +func Xverr(tls *TLS, status int32, fmt uintptr, ap Tva_list) { + if __ccgo_strace { + trc("tls=%v status=%v fmt=%v ap=%v, (%v:)", tls, status, fmt, ap, origin(2)) + } + Xvwarn(tls, fmt, ap) + _exit(tls, status) +} + +func Xverrx(tls *TLS, status int32, fmt uintptr, ap Tva_list) { + if __ccgo_strace { + trc("tls=%v status=%v fmt=%v ap=%v, (%v:)", tls, status, fmt, ap, origin(2)) + } + Xvwarnx(tls, fmt, ap) + _exit(tls, status) +} + +func Xwarn(tls *TLS, fmt uintptr, va uintptr) { + if __ccgo_strace { + trc("tls=%v fmt=%v va=%v, (%v:)", tls, fmt, va, origin(2)) + } + var ap Tva_list + _ = ap + ap = va + Xvwarn(tls, fmt, ap) + _ = ap +} + +func Xwarnx(tls *TLS, fmt uintptr, va uintptr) { + if __ccgo_strace { + trc("tls=%v fmt=%v va=%v, (%v:)", tls, fmt, va, origin(2)) + } + var ap Tva_list + _ = ap + ap = va + Xvwarnx(tls, fmt, ap) + _ = ap +} + +func Xerr(tls *TLS, status int32, fmt uintptr, va uintptr) { + if __ccgo_strace { + trc("tls=%v status=%v fmt=%v va=%v, (%v:)", tls, status, fmt, va, origin(2)) + } + var ap Tva_list + _ = ap + ap = va + Xverr(tls, status, fmt, ap) + _ = ap +} + +func Xerrx(tls *TLS, status int32, fmt uintptr, va uintptr) { + if __ccgo_strace { + trc("tls=%v status=%v fmt=%v va=%v, (%v:)", tls, status, fmt, va, origin(2)) + } + var ap Tva_list + _ = ap + ap = va + Xverrx(tls, status, fmt, ap) + _ = ap +} + +func Xeuidaccess(tls *TLS, filename uintptr, amode int32) (r int32) { + if __ccgo_strace { + trc("tls=%v filename=%v amode=%v, (%v:)", tls, filename, amode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfaccessat(tls, -int32(100), filename, amode, int32(AT_EACCESS)) +} + +func Xeaccess(tls *TLS, filename uintptr, amode int32) (r int32) { + if __ccgo_strace { + trc("tls=%v filename=%v amode=%v, (%v:)", tls, filename, amode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xeuidaccess(tls, filename, amode) +} + +const FTW_CHDIR = 4 +const FTW_D = 2 +const FTW_DEPTH = 8 +const FTW_DNR = 3 +const FTW_DP = 6 +const FTW_F = 1 +const FTW_MOUNT = 2 +const FTW_NS = 4 +const FTW_PHYS = 1 +const FTW_SL = 5 +const FTW_SLN = 7 + +type TFTW = struct { + Fbase int32 + Flevel int32 +} + +type t__ccgo_fp__Xftw_1 = func(*TLS, uintptr, uintptr, int32) int32 + +func Xftw(tls *TLS, path uintptr, __ccgo_fp_fn uintptr, fd_limit int32) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v __ccgo_fp_fn=%v fd_limit=%v, (%v:)", tls, path, __ccgo_fp_fn, fd_limit, origin(2)) + defer func() { trc("-> %v", r) }() + } + /* The following cast assumes that calling a function with one + * argument more than it needs behaves as expected. This is + * actually undefined, but works on all real-world machines. */ + return Xnftw(tls, path, __ccgo_fp_fn, fd_limit, int32(FTW_PHYS)) +} + +const STATX_ALL = 4095 +const STATX_ATIME = 32 +const STATX_BASIC_STATS = 2047 +const STATX_BLOCKS = 1024 +const STATX_BTIME = 2048 +const STATX_CTIME = 128 +const STATX_GID = 16 +const STATX_INO = 256 +const STATX_MODE = 2 +const STATX_MTIME = 64 +const STATX_NLINK = 4 +const STATX_SIZE = 512 +const STATX_TYPE = 1 +const STATX_UID = 8 +const S_IEXEC = 64 +const S_IREAD = 256 +const S_IWRITE = 128 + +type Tstatx_timestamp = struct { + F__ccgo_align [0]uint32 + Ftv_sec Tint64_t + Ftv_nsec Tuint32_t + F__pad Tuint32_t +} + +type Tstatx = struct { + F__ccgo_align [0]uint32 + Fstx_mask Tuint32_t + Fstx_blksize Tuint32_t + Fstx_attributes Tuint64_t + Fstx_nlink Tuint32_t + Fstx_uid Tuint32_t + Fstx_gid Tuint32_t + Fstx_mode Tuint16_t + F__pad0 [1]Tuint16_t + Fstx_ino Tuint64_t + Fstx_size Tuint64_t + Fstx_blocks Tuint64_t + Fstx_attributes_mask Tuint64_t + Fstx_atime Tstatx_timestamp + Fstx_btime Tstatx_timestamp + Fstx_ctime Tstatx_timestamp + Fstx_mtime Tstatx_timestamp + Fstx_rdev_major Tuint32_t + Fstx_rdev_minor Tuint32_t + Fstx_dev_major Tuint32_t + Fstx_dev_minor Tuint32_t + F__pad1 [14]Tuint64_t +} + +type Ttimezone = struct { + Ftz_minuteswest int32 + Ftz_dsttime int32 +} + +func Xfutimes(tls *TLS, fd int32, tv uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v tv=%v, (%v:)", tls, fd, tv, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var _ /* times at bp+0 */ [2]Ttimespec + if !(tv != 0) { + return Xfutimens(tls, fd, uintptr(0)) + } + (**(**[2]Ttimespec)(__ccgo_up(bp)))[0].Ftv_sec = (**(**Ttimeval)(__ccgo_up(tv))).Ftv_sec + (**(**[2]Ttimespec)(__ccgo_up(bp)))[0].Ftv_nsec = int32((**(**Ttimeval)(__ccgo_up(tv))).Ftv_usec * int64(1000)) + (**(**[2]Ttimespec)(__ccgo_up(bp)))[int32(1)].Ftv_sec = (**(**Ttimeval)(__ccgo_up(tv + 1*16))).Ftv_sec + (**(**[2]Ttimespec)(__ccgo_up(bp)))[int32(1)].Ftv_nsec = int32((**(**Ttimeval)(__ccgo_up(tv + 1*16))).Ftv_usec * int64(1000)) + return Xfutimens(tls, fd, bp) +} + +const prlimit64 = 0 + +func Xgetdtablesize(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uint64 + var _ /* rl at bp+0 */ Trlimit + _ = v1 + Xgetrlimit(tls, int32(RLIMIT_NOFILE), bp) + if (**(**Trlimit)(__ccgo_up(bp))).Frlim_cur < uint64(INT_MAX) { + v1 = (**(**Trlimit)(__ccgo_up(bp))).Frlim_cur + } else { + v1 = uint64(INT_MAX) + } + return Int32FromUint64(v1) +} + +func Xgetloadavg(tls *TLS, a uintptr, n int32) (r int32) { + if __ccgo_strace { + trc("tls=%v a=%v n=%v, (%v:)", tls, a, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(320) + defer tls.Free(320) + var i, v1 int32 + var _ /* si at bp+0 */ Tsysinfo + _, _ = i, v1 + if n <= 0 { + if n != 0 { + v1 = -int32(1) + } else { + v1 = 0 + } + return v1 + } + Xsysinfo(tls, bp) + if n > int32(3) { + n = int32(3) + } + i = 0 + for { + if !(i < n) { + break + } + **(**float64)(__ccgo_up(a + uintptr(i)*8)) = float64(Float64FromFloat64(1) / float64(Int32FromInt32(1)< %v", r) }() + } + return Int32FromUint32(X__libc.Fpage_size) +} + +const B0 = 0 +const B1000000 = 4104 +const B110 = 3 +const B115200 = 4098 +const B1152000 = 4105 +const B1200 = 9 +const B134 = 4 +const B150 = 5 +const B1500000 = 4106 +const B1800 = 10 +const B19200 = 14 +const B200 = 6 +const B2000000 = 4107 +const B230400 = 4099 +const B2400 = 11 +const B2500000 = 4108 +const B300 = 7 +const B3000000 = 4109 +const B3500000 = 4110 +const B38400 = 15 +const B4000000 = 4111 +const B460800 = 4100 +const B4800 = 12 +const B50 = 1 +const B500000 = 4101 +const B57600 = 4097 +const B576000 = 4102 +const B600 = 8 +const B75 = 2 +const B921600 = 4103 +const B9600 = 13 +const BRKINT = 2 +const BS0 = 0 +const BS1 = 8192 +const BSDLY = 8192 +const CBAUD = 4111 +const CBAUDEX = 4096 +const CIBAUD = 269418496 +const CLOCAL = 2048 +const CMSPAR = 1073741824 +const CR0 = 0 +const CR1 = 512 +const CR2 = 1024 +const CR3 = 1536 +const CRDLY = 1536 +const CREAD = 128 +const CRTSCTS = 2147483648 +const CS5 = 0 +const CS6 = 16 +const CS7 = 32 +const CS8 = 48 +const CSIZE = 48 +const CSTOPB = 64 +const ECHO = 8 +const ECHOCTL = 512 +const ECHOE = 16 +const ECHOK = 32 +const ECHOKE = 2048 +const ECHONL = 64 +const ECHOPRT = 1024 +const EXTA = 14 +const EXTB = 15 +const EXTPROC = 65536 +const FF0 = 0 +const FF1 = 32768 +const FFDLY = 32768 +const FLUSHO = 4096 +const HUPCL = 1024 +const ICANON = 2 +const ICRNL = 256 +const IEXTEN = 32768 +const IGNBRK = 1 +const IGNCR = 128 +const IGNPAR = 4 +const IMAXBEL = 8192 +const INLCR = 64 +const INPCK = 16 +const ISIG = 1 +const ISTRIP = 32 +const IUCLC = 512 +const IUTF8 = 16384 +const IXANY = 2048 +const IXOFF = 4096 +const IXON = 1024 +const NCCS = 32 +const NL0 = 0 +const NL1 = 256 +const NLDLY = 256 +const NOFLSH = 128 +const OCRNL = 8 +const OFDEL = 128 +const OFILL = 64 +const OLCUC = 2 +const ONLCR = 4 +const ONLRET = 32 +const ONOCR = 16 +const OPOST = 1 +const PARENB = 256 +const PARMRK = 8 +const PARODD = 512 +const PENDIN = 16384 +const TAB0 = 0 +const TAB1 = 2048 +const TAB2 = 4096 +const TAB3 = 6144 +const TABDLY = 6144 +const TCIFLUSH = 0 +const TCIOFF = 2 +const TCIOFLUSH = 2 +const TCION = 3 +const TCOFLUSH = 1 +const TCOOFF = 0 +const TCOON = 1 +const TCSADRAIN = 1 +const TCSAFLUSH = 2 +const TCSANOW = 0 +const TOSTOP = 256 +const VDISCARD = 13 +const VEOF = 4 +const VEOL = 11 +const VEOL2 = 16 +const VERASE = 2 +const VINTR = 0 +const VKILL = 3 +const VLNEXT = 15 +const VMIN = 6 +const VQUIT = 1 +const VREPRINT = 12 +const VSTART = 8 +const VSTOP = 9 +const VSUSP = 10 +const VSWTC = 7 +const VT0 = 0 +const VT1 = 16384 +const VTDLY = 16384 +const VTIME = 5 +const VWERASE = 14 +const XCASE = 4 +const XTABS = 6144 + +type Twinsize = struct { + Fws_row uint16 + Fws_col uint16 + Fws_xpixel uint16 + Fws_ypixel uint16 +} + +type Tcc_t = uint8 + +type Tspeed_t = uint32 + +type Ttcflag_t = uint32 + +type Ttermios = struct { + Fc_iflag Ttcflag_t + Fc_oflag Ttcflag_t + Fc_cflag Ttcflag_t + Fc_lflag Ttcflag_t + Fc_line Tcc_t + Fc_cc [32]Tcc_t + F__c_ispeed Tspeed_t + F__c_ospeed Tspeed_t +} + +func Xgetpass(tls *TLS, prompt uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v prompt=%v, (%v:)", tls, prompt, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(144) + defer tls.Free(144) + var fd, v1 int32 + var l Tssize_t + var v2 uintptr + var _ /* s at bp+0 */ Ttermios + var _ /* t at bp+60 */ Ttermios + _, _, _, _ = fd, l, v1, v2 + v1 = Xopen(tls, __ccgo_ts+292, Int32FromInt32(O_RDWR)|Int32FromInt32(O_NOCTTY)|Int32FromInt32(O_CLOEXEC), 0) + fd = v1 + if v1 < 0 { + return uintptr(0) + } + Xtcgetattr(tls, fd, bp+60) + **(**Ttermios)(__ccgo_up(bp)) = **(**Ttermios)(__ccgo_up(bp + 60)) + (**(**Ttermios)(__ccgo_up(bp + 60))).Fc_lflag &= Uint32FromInt32(^(Int32FromInt32(ECHO) | Int32FromInt32(ISIG))) + (**(**Ttermios)(__ccgo_up(bp + 60))).Fc_lflag |= uint32(ICANON) + (**(**Ttermios)(__ccgo_up(bp + 60))).Fc_iflag &= Uint32FromInt32(^(Int32FromInt32(INLCR) | Int32FromInt32(IGNCR))) + (**(**Ttermios)(__ccgo_up(bp + 60))).Fc_iflag |= uint32(ICRNL) + Xtcsetattr(tls, fd, int32(TCSAFLUSH), bp+60) + Xtcdrain(tls, fd) + Xdprintf(tls, fd, __ccgo_ts+15, VaList(bp+128, prompt)) + l = Xread(tls, fd, uintptr(unsafe.Pointer(&_password)), uint32(128)) + if l >= 0 { + if l > 0 && Int32FromUint8(_password[l-int32(1)]) == int32('\n') || Uint32FromInt32(l) == uint32(128) { + l = l - 1 + } + _password[l] = uint8(0) + } + Xtcsetattr(tls, fd, int32(TCSAFLUSH), bp) + Xdprintf(tls, fd, __ccgo_ts+301, 0) + Xclose(tls, fd) + if l < 0 { + v2 = uintptr(0) + } else { + v2 = uintptr(unsafe.Pointer(&_password)) + } + return v2 +} + +var _password [128]uint8 + +var _defshells = [18]uint8{'/', 'b', 'i', 'n', '/', 's', 'h', 10, '/', 'b', 'i', 'n', '/', 'c', 's', 'h', 10} + +var _line uintptr +var _linesize Tsize_t +var _f uintptr + +func Xendusershell(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + if _f != 0 { + Xfclose(tls, _f) + } + _f = uintptr(0) +} + +func Xsetusershell(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + if !(_f != 0) { + _f = Xfopen(tls, __ccgo_ts+303, __ccgo_ts+315) + } + if !(_f != 0) { + _f = Xfmemopen(tls, uintptr(unsafe.Pointer(&_defshells)), Uint32FromInt64(18)-Uint32FromInt32(1), __ccgo_ts+319) + } +} + +func Xgetusershell(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l Tssize_t + _ = l + if !(_f != 0) { + Xsetusershell(tls) + } + if !(_f != 0) { + return uintptr(0) + } + l = Xgetline(tls, uintptr(unsafe.Pointer(&_line)), uintptr(unsafe.Pointer(&_linesize)), _f) + if l <= 0 { + return uintptr(0) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(_line + uintptr(l-int32(1))))) == int32('\n') { + **(**uint8)(__ccgo_up(_line + uintptr(l-int32(1)))) = uint8(0) + } + return _line +} + +const ANYMARK = 1 +const FLUSHBAND = 4 +const FLUSHR = 1 +const FLUSHRW = 3 +const FLUSHW = 2 +const FMNAMESZ = 8 +const I_ATMARK = 21279 +const I_CANPUT = 21282 +const I_CKBAND = 21277 +const I_FDINSERT = 21264 +const I_FIND = 21259 +const I_FLUSH = 21253 +const I_FLUSHBAND = 21276 +const I_GETBAND = 21278 +const I_GETCLTIME = 21281 +const I_GETSIG = 21258 +const I_GRDOPT = 21255 +const I_GWROPT = 21268 +const I_LINK = 21260 +const I_LIST = 21269 +const I_LOOK = 21252 +const I_NREAD = 21249 +const I_PEEK = 21263 +const I_PLINK = 21270 +const I_POP = 21251 +const I_PUNLINK = 21271 +const I_PUSH = 21250 +const I_RECVFD = 21262 +const I_SENDFD = 21265 +const I_SETCLTIME = 21280 +const I_SETSIG = 21257 +const I_SRDOPT = 21254 +const I_STR = 21256 +const I_SWROPT = 21267 +const I_UNLINK = 21261 +const LASTMARK = 2 +const MORECTL = 1 +const MOREDATA = 2 +const MSG_ANY = 2 +const MSG_BAND = 4 +const MSG_HIPRI = 1 +const MUXID_ALL = -1 +const RMSGD = 1 +const RMSGN = 2 +const RNORM = 0 +const RPROTDAT = 4 +const RPROTDIS = 8 +const RPROTMASK = 28 +const RPROTNORM = 16 +const RS_HIPRI = 1 +const SNDPIPE = 2 +const SNDZERO = 1 +const S_BANDURG = 512 +const S_ERROR = 16 +const S_HANGUP = 32 +const S_HIPRI = 2 +const S_INPUT = 1 +const S_MSG = 8 +const S_OUTPUT = 4 +const S_RDBAND = 128 +const S_RDNORM = 64 +const S_WRBAND = 256 +const S_WRNORM = 4 +const __SID = 21248 + +type Tbandinfo = struct { + Fbi_pri uint8 + Fbi_flag int32 +} + +type Tstrbuf = struct { + Fmaxlen int32 + Flen1 int32 + Fbuf uintptr +} + +type Tstrpeek = struct { + Fctlbuf Tstrbuf + Fdatabuf Tstrbuf + Fflags uint32 +} + +type Tstrfdinsert = struct { + Fctlbuf Tstrbuf + Fdatabuf Tstrbuf + Fflags uint32 + Ffildes int32 + Foffset int32 +} + +type Tstrioctl = struct { + Fic_cmd int32 + Fic_timout int32 + Fic_len int32 + Fic_dp uintptr +} + +type Tstrrecvfd = struct { + Ffd int32 + Fuid int32 + Fgid int32 + F__fill [8]uint8 +} + +type Tstr_mlist = struct { + Fl_name [9]uint8 +} + +type Tstr_list = struct { + Fsl_nmods int32 + Fsl_modlist uintptr +} + +func Xisastream(tls *TLS, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + _ = v1 + if Xfcntl(tls, fd, int32(F_GETFD), 0) < 0 { + v1 = -int32(1) + } else { + v1 = 0 + } + return v1 +} + +func Xlutimes(tls *TLS, filename uintptr, tv uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v filename=%v tv=%v, (%v:)", tls, filename, tv, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var v1 uintptr + var _ /* times at bp+0 */ [2]Ttimespec + _ = v1 + if tv != 0 { + (**(**[2]Ttimespec)(__ccgo_up(bp)))[0].Ftv_sec = (**(**Ttimeval)(__ccgo_up(tv))).Ftv_sec + (**(**[2]Ttimespec)(__ccgo_up(bp)))[0].Ftv_nsec = int32((**(**Ttimeval)(__ccgo_up(tv))).Ftv_usec * int64(1000)) + (**(**[2]Ttimespec)(__ccgo_up(bp)))[int32(1)].Ftv_sec = (**(**Ttimeval)(__ccgo_up(tv + 1*16))).Ftv_sec + (**(**[2]Ttimespec)(__ccgo_up(bp)))[int32(1)].Ftv_nsec = int32((**(**Ttimeval)(__ccgo_up(tv + 1*16))).Ftv_usec * int64(1000)) + } + if tv != 0 { + v1 = bp + } else { + v1 = uintptr(0) + } + return Xutimensat(tls, -int32(100), filename, v1, int32(AT_SYMLINK_NOFOLLOW)) +} + +const UL_GETFSIZE = 1 +const UL_SETFSIZE = 2 + +func Xulimit(tls *TLS, cmd int32, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v cmd=%v va=%v, (%v:)", tls, cmd, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ap Tva_list + var val int32 + var _ /* rl at bp+0 */ Trlimit + _, _ = ap, val + Xgetrlimit(tls, int32(RLIMIT_FSIZE), bp) + if cmd == int32(UL_SETFSIZE) { + ap = va + val = VaInt32(&ap) + _ = ap + (**(**Trlimit)(__ccgo_up(bp))).Frlim_cur = uint64(512) * Uint64FromInt32(val) + if Xsetrlimit(tls, int32(RLIMIT_FSIZE), bp) != 0 { + return -int32(1) + } + } + return Int32FromUint64((**(**Trlimit)(__ccgo_up(bp))).Frlim_cur / uint64(512)) +} + +const BOOT_TIME = 2 +const DEAD_PROCESS = 8 +const EMPTY = 0 +const INIT_PROCESS = 5 +const LOGIN_PROCESS = 6 +const NEW_TIME = 3 +const OLD_TIME = 4 +const RUN_LVL = 1 +const USER_PROCESS = 7 +const e_exit = 0 +const e_termination = 0 + +type Tutmpx = struct { + F__ccgo_align [0]uint32 + Fut_type int16 + F__ut_pad1 int16 + Fut_pid Tpid_t + Fut_line [32]uint8 + Fut_id [4]uint8 + Fut_user [32]uint8 + Fut_host [256]uint8 + Fut_exit struct { + F__e_termination int16 + F__e_exit int16 + } + Fut_session int32 + F__ut_pad2 int32 + Fut_tv Ttimeval + Fut_addr_v6 [4]uint32 + F__unused [20]uint8 + F__ccgo_pad13 [4]byte +} + +func Xendutxent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } +} + +func Xsetutxent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } +} + +func Xgetutxent(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return UintptrFromInt32(0) +} + +func Xgetutxid(tls *TLS, ut uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v ut=%v, (%v:)", tls, ut, origin(2)) + defer func() { trc("-> %v", r) }() + } + return UintptrFromInt32(0) +} + +func Xgetutxline(tls *TLS, ut uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v ut=%v, (%v:)", tls, ut, origin(2)) + defer func() { trc("-> %v", r) }() + } + return UintptrFromInt32(0) +} + +func Xpututxline(tls *TLS, ut uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v ut=%v, (%v:)", tls, ut, origin(2)) + defer func() { trc("-> %v", r) }() + } + return UintptrFromInt32(0) +} + +func Xupdwtmpx(tls *TLS, f uintptr, u uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v u=%v, (%v:)", tls, f, u, origin(2)) + } +} + +func ___utmpxname(tls *TLS, f uintptr) (r int32) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOPNOTSUPP) + return -int32(1) +} + +func Xendutent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + Xendutxent(tls) +} + +func Xgetutent(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetutxent(tls) +} + +func Xgetutid(tls *TLS, ut uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v ut=%v, (%v:)", tls, ut, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetutxid(tls, ut) +} + +func Xgetutline(tls *TLS, ut uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v ut=%v, (%v:)", tls, ut, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetutxline(tls, ut) +} + +func Xpututline(tls *TLS, ut uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v ut=%v, (%v:)", tls, ut, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xpututxline(tls, ut) +} + +func Xsetutent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + Xsetutxent(tls) +} + +func Xupdwtmp(tls *TLS, f uintptr, u uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v u=%v, (%v:)", tls, f, u, origin(2)) + } + Xupdwtmpx(tls, f, u) +} + +const ADJ_ESTERROR = 8 +const ADJ_FREQUENCY = 2 +const ADJ_MAXERROR = 4 +const ADJ_MICRO = 4096 +const ADJ_NANO = 8192 +const ADJ_OFFSET = 1 +const ADJ_OFFSET_SINGLESHOT = 32769 +const ADJ_OFFSET_SS_READ = 40961 +const ADJ_SETOFFSET = 256 +const ADJ_STATUS = 16 +const ADJ_TAI = 128 +const ADJ_TICK = 16384 +const ADJ_TIMECONST = 32 +const MAXTC = 6 +const MOD_CLKA = 32769 +const MOD_CLKB = 16384 +const MOD_ESTERROR = 8 +const MOD_FREQUENCY = 2 +const MOD_MAXERROR = 4 +const MOD_MICRO = 4096 +const MOD_NANO = 8192 +const MOD_OFFSET = 1 +const MOD_STATUS = 16 +const MOD_TAI = 128 +const MOD_TIMECONST = 32 +const STA_CLK = 32768 +const STA_CLOCKERR = 4096 +const STA_DEL = 32 +const STA_FLL = 8 +const STA_FREQHOLD = 128 +const STA_INS = 16 +const STA_MODE = 16384 +const STA_NANO = 8192 +const STA_PLL = 1 +const STA_PPSERROR = 2048 +const STA_PPSFREQ = 2 +const STA_PPSJITTER = 512 +const STA_PPSSIGNAL = 256 +const STA_PPSTIME = 4 +const STA_PPSWANDER = 1024 +const STA_RONLY = 65280 +const STA_UNSYNC = 64 +const TIME_BAD = 5 +const TIME_DEL = 2 +const TIME_ERROR = 5 +const TIME_INS = 1 +const TIME_OK = 0 +const TIME_OOP = 3 +const TIME_WAIT = 4 + +type Tntptimeval = struct { + F__ccgo_align [0]uint32 + Ftime Ttimeval + Fmaxerror int32 + Festerror int32 +} + +type Ttimex = struct { + F__ccgo_align [0]uint32 + Fmodes uint32 + Foffset int32 + Ffreq int32 + Fmaxerror int32 + Festerror int32 + Fstatus int32 + Fconstant int32 + Fprecision int32 + Ftolerance int32 + F__ccgo_align9 [4]byte + Ftime Ttimeval + Ftick int32 + Fppsfreq int32 + Fjitter int32 + Fshift int32 + Fstabil int32 + Fjitcnt int32 + Fcalcnt int32 + Ferrcnt int32 + Fstbcnt int32 + Ftai int32 + F__padding [11]int32 + F__ccgo_pad21 [4]byte +} + +func Xadjtime(tls *TLS, in uintptr, out uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v in=%v out=%v, (%v:)", tls, in, out, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(144) + defer tls.Free(144) + var v1 Tsuseconds_t + var _ /* tx at bp+0 */ Ttimex + _ = v1 + **(**Ttimex)(__ccgo_up(bp)) = Ttimex{} + if in != 0 { + if (*Ttimeval)(unsafe.Pointer(in)).Ftv_sec > int64(1000) || (*Ttimeval)(unsafe.Pointer(in)).Ftv_usec > int64(1000000000) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + (**(**Ttimex)(__ccgo_up(bp))).Foffset = int32((*Ttimeval)(unsafe.Pointer(in)).Ftv_sec*int64(1000000) + (*Ttimeval)(unsafe.Pointer(in)).Ftv_usec) + (**(**Ttimex)(__ccgo_up(bp))).Fmodes = uint32(ADJ_OFFSET_SINGLESHOT) + } + if Xadjtimex(tls, bp) < 0 { + return -int32(1) + } + if out != 0 { + (*Ttimeval)(unsafe.Pointer(out)).Ftv_sec = int64((**(**Ttimex)(__ccgo_up(bp))).Foffset / int32(1000000)) + v1 = int64((**(**Ttimex)(__ccgo_up(bp))).Foffset % Int32FromInt32(1000000)) + (*Ttimeval)(unsafe.Pointer(out)).Ftv_usec = v1 + if v1 < 0 { + (*Ttimeval)(unsafe.Pointer(out)).Ftv_sec = (*Ttimeval)(unsafe.Pointer(out)).Ftv_sec - 1 + **(**Tsuseconds_t)(__ccgo_up(out + 8)) += int64(1000000) + } + } + return 0 +} + +func Xadjtimex(tls *TLS, tx uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v tx=%v, (%v:)", tls, tx, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xclock_adjtime(tls, CLOCK_REALTIME, tx) +} + +func Xbrk(tls *TLS, end uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v end=%v, (%v:)", tls, end, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(-Int32FromInt32(ENOMEM))) +} + +func Xcapset(tls *TLS, a uintptr, b uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v a=%v b=%v, (%v:)", tls, a, b, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_capset), int32(a), int32(b)))) +} + +func Xcapget(tls *TLS, a uintptr, b uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v a=%v b=%v, (%v:)", tls, a, b, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_capget), int32(a), int32(b)))) +} + +func Xchroot(tls *TLS, path uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v, (%v:)", tls, path, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall1(tls, int32(SYS_chroot), int32(path)))) +} + +type Tktimex64 = struct { + F__ccgo_align [0]uint32 + Fmodes uint32 + F__ccgo4 uint32 + Foffset int64 + Ffreq int64 + Fmaxerror int64 + Festerror int64 + Fstatus int32 + F__ccgo44 uint32 + Fconstant int64 + Fprecision int64 + Ftolerance int64 + Ftime_sec int64 + Ftime_usec int64 + Ftick int64 + Fppsfreq int64 + Fjitter int64 + Fshift int32 + F__ccgo116 uint32 + Fstabil int64 + Fjitcnt int64 + Fcalcnt int64 + Ferrcnt int64 + Fstbcnt int64 + Ftai int32 + F__padding [11]int32 +} + +type Tktimex = struct { + Fmodes uint32 + Foffset int32 + Ffreq int32 + Fmaxerror int32 + Festerror int32 + Fstatus int32 + Fconstant int32 + Fprecision int32 + Ftolerance int32 + Ftime_sec int32 + Ftime_usec int32 + Ftick int32 + Fppsfreq int32 + Fjitter int32 + Fshift int32 + Fstabil int32 + Fjitcnt int32 + Fcalcnt int32 + Ferrcnt int32 + Fstbcnt int32 + Ftai int32 + F__padding [11]int32 +} + +func Xclock_adjtime(tls *TLS, clock_id Tclockid_t, utx uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v clock_id=%v utx=%v, (%v:)", tls, clock_id, utx, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(336) + defer tls.Free(336) + var r int32 + var _ /* ktx at bp+0 */ Tktimex64 + var _ /* ktx at bp+208 */ Tktimex + _ = r + r = -int32(ENOSYS) + **(**Tktimex64)(__ccgo_up(bp)) = Tktimex64{ + Fmodes: (*Ttimex)(unsafe.Pointer(utx)).Fmodes, + Foffset: int64((*Ttimex)(unsafe.Pointer(utx)).Foffset), + Ffreq: int64((*Ttimex)(unsafe.Pointer(utx)).Ffreq), + Fmaxerror: int64((*Ttimex)(unsafe.Pointer(utx)).Fmaxerror), + Festerror: int64((*Ttimex)(unsafe.Pointer(utx)).Festerror), + Fstatus: (*Ttimex)(unsafe.Pointer(utx)).Fstatus, + Fconstant: int64((*Ttimex)(unsafe.Pointer(utx)).Fconstant), + Fprecision: int64((*Ttimex)(unsafe.Pointer(utx)).Fprecision), + Ftolerance: int64((*Ttimex)(unsafe.Pointer(utx)).Ftolerance), + Ftime_sec: (*Ttimex)(unsafe.Pointer(utx)).Ftime.Ftv_sec, + Ftime_usec: (*Ttimex)(unsafe.Pointer(utx)).Ftime.Ftv_usec, + Ftick: int64((*Ttimex)(unsafe.Pointer(utx)).Ftick), + Fppsfreq: int64((*Ttimex)(unsafe.Pointer(utx)).Fppsfreq), + Fjitter: int64((*Ttimex)(unsafe.Pointer(utx)).Fjitter), + Fshift: (*Ttimex)(unsafe.Pointer(utx)).Fshift, + Fstabil: int64((*Ttimex)(unsafe.Pointer(utx)).Fstabil), + Fjitcnt: int64((*Ttimex)(unsafe.Pointer(utx)).Fjitcnt), + Fcalcnt: int64((*Ttimex)(unsafe.Pointer(utx)).Fcalcnt), + Ferrcnt: int64((*Ttimex)(unsafe.Pointer(utx)).Ferrcnt), + Fstbcnt: int64((*Ttimex)(unsafe.Pointer(utx)).Fstbcnt), + Ftai: (*Ttimex)(unsafe.Pointer(utx)).Ftai, + } + r = int32(X__syscall2(tls, int32(SYS_clock_adjtime64), clock_id, int32(bp))) + if r >= 0 { + (*Ttimex)(unsafe.Pointer(utx)).Fmodes = (**(**Tktimex64)(__ccgo_up(bp))).Fmodes + (*Ttimex)(unsafe.Pointer(utx)).Foffset = int32((**(**Tktimex64)(__ccgo_up(bp))).Foffset) + (*Ttimex)(unsafe.Pointer(utx)).Ffreq = int32((**(**Tktimex64)(__ccgo_up(bp))).Ffreq) + (*Ttimex)(unsafe.Pointer(utx)).Fmaxerror = int32((**(**Tktimex64)(__ccgo_up(bp))).Fmaxerror) + (*Ttimex)(unsafe.Pointer(utx)).Festerror = int32((**(**Tktimex64)(__ccgo_up(bp))).Festerror) + (*Ttimex)(unsafe.Pointer(utx)).Fstatus = (**(**Tktimex64)(__ccgo_up(bp))).Fstatus + (*Ttimex)(unsafe.Pointer(utx)).Fconstant = int32((**(**Tktimex64)(__ccgo_up(bp))).Fconstant) + (*Ttimex)(unsafe.Pointer(utx)).Fprecision = int32((**(**Tktimex64)(__ccgo_up(bp))).Fprecision) + (*Ttimex)(unsafe.Pointer(utx)).Ftolerance = int32((**(**Tktimex64)(__ccgo_up(bp))).Ftolerance) + (*Ttimex)(unsafe.Pointer(utx)).Ftime.Ftv_sec = (**(**Tktimex64)(__ccgo_up(bp))).Ftime_sec + (*Ttimex)(unsafe.Pointer(utx)).Ftime.Ftv_usec = (**(**Tktimex64)(__ccgo_up(bp))).Ftime_usec + (*Ttimex)(unsafe.Pointer(utx)).Ftick = int32((**(**Tktimex64)(__ccgo_up(bp))).Ftick) + (*Ttimex)(unsafe.Pointer(utx)).Fppsfreq = int32((**(**Tktimex64)(__ccgo_up(bp))).Fppsfreq) + (*Ttimex)(unsafe.Pointer(utx)).Fjitter = int32((**(**Tktimex64)(__ccgo_up(bp))).Fjitter) + (*Ttimex)(unsafe.Pointer(utx)).Fshift = (**(**Tktimex64)(__ccgo_up(bp))).Fshift + (*Ttimex)(unsafe.Pointer(utx)).Fstabil = int32((**(**Tktimex64)(__ccgo_up(bp))).Fstabil) + (*Ttimex)(unsafe.Pointer(utx)).Fjitcnt = int32((**(**Tktimex64)(__ccgo_up(bp))).Fjitcnt) + (*Ttimex)(unsafe.Pointer(utx)).Fcalcnt = int32((**(**Tktimex64)(__ccgo_up(bp))).Fcalcnt) + (*Ttimex)(unsafe.Pointer(utx)).Ferrcnt = int32((**(**Tktimex64)(__ccgo_up(bp))).Ferrcnt) + (*Ttimex)(unsafe.Pointer(utx)).Fstbcnt = int32((**(**Tktimex64)(__ccgo_up(bp))).Fstbcnt) + (*Ttimex)(unsafe.Pointer(utx)).Ftai = (**(**Tktimex64)(__ccgo_up(bp))).Ftai + } + if Bool(false) || r != -int32(ENOSYS) { + return X__syscall_ret(tls, Uint32FromInt32(r)) + } + if (*Ttimex)(unsafe.Pointer(utx)).Fmodes&uint32(ADJ_SETOFFSET) != 0 && !!((Uint64FromInt64((*Ttimex)(unsafe.Pointer(utx)).Ftime.Ftv_sec)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) { + return X__syscall_ret(tls, Uint32FromInt32(-Int32FromInt32(EOPNOTSUPP))) + } + if uint32(8) > uint32(4) { + **(**Tktimex)(__ccgo_up(bp + 208)) = Tktimex{ + Fmodes: (*Ttimex)(unsafe.Pointer(utx)).Fmodes, + Foffset: (*Ttimex)(unsafe.Pointer(utx)).Foffset, + Ffreq: (*Ttimex)(unsafe.Pointer(utx)).Ffreq, + Fmaxerror: (*Ttimex)(unsafe.Pointer(utx)).Fmaxerror, + Festerror: (*Ttimex)(unsafe.Pointer(utx)).Festerror, + Fstatus: (*Ttimex)(unsafe.Pointer(utx)).Fstatus, + Fconstant: (*Ttimex)(unsafe.Pointer(utx)).Fconstant, + Fprecision: (*Ttimex)(unsafe.Pointer(utx)).Fprecision, + Ftolerance: (*Ttimex)(unsafe.Pointer(utx)).Ftolerance, + Ftime_sec: int32((*Ttimex)(unsafe.Pointer(utx)).Ftime.Ftv_sec), + Ftime_usec: int32((*Ttimex)(unsafe.Pointer(utx)).Ftime.Ftv_usec), + Ftick: (*Ttimex)(unsafe.Pointer(utx)).Ftick, + Fppsfreq: (*Ttimex)(unsafe.Pointer(utx)).Fppsfreq, + Fjitter: (*Ttimex)(unsafe.Pointer(utx)).Fjitter, + Fshift: (*Ttimex)(unsafe.Pointer(utx)).Fshift, + Fstabil: (*Ttimex)(unsafe.Pointer(utx)).Fstabil, + Fjitcnt: (*Ttimex)(unsafe.Pointer(utx)).Fjitcnt, + Fcalcnt: (*Ttimex)(unsafe.Pointer(utx)).Fcalcnt, + Ferrcnt: (*Ttimex)(unsafe.Pointer(utx)).Ferrcnt, + Fstbcnt: (*Ttimex)(unsafe.Pointer(utx)).Fstbcnt, + Ftai: (*Ttimex)(unsafe.Pointer(utx)).Ftai, + } + if clock_id == CLOCK_REALTIME { + r = int32(X__syscall1(tls, int32(SYS_adjtimex), int32(bp+208))) + } else { + r = int32(X__syscall2(tls, int32(SYS_clock_adjtime), clock_id, int32(bp+208))) + } + if r >= 0 { + (*Ttimex)(unsafe.Pointer(utx)).Fmodes = (**(**Tktimex)(__ccgo_up(bp + 208))).Fmodes + (*Ttimex)(unsafe.Pointer(utx)).Foffset = (**(**Tktimex)(__ccgo_up(bp + 208))).Foffset + (*Ttimex)(unsafe.Pointer(utx)).Ffreq = (**(**Tktimex)(__ccgo_up(bp + 208))).Ffreq + (*Ttimex)(unsafe.Pointer(utx)).Fmaxerror = (**(**Tktimex)(__ccgo_up(bp + 208))).Fmaxerror + (*Ttimex)(unsafe.Pointer(utx)).Festerror = (**(**Tktimex)(__ccgo_up(bp + 208))).Festerror + (*Ttimex)(unsafe.Pointer(utx)).Fstatus = (**(**Tktimex)(__ccgo_up(bp + 208))).Fstatus + (*Ttimex)(unsafe.Pointer(utx)).Fconstant = (**(**Tktimex)(__ccgo_up(bp + 208))).Fconstant + (*Ttimex)(unsafe.Pointer(utx)).Fprecision = (**(**Tktimex)(__ccgo_up(bp + 208))).Fprecision + (*Ttimex)(unsafe.Pointer(utx)).Ftolerance = (**(**Tktimex)(__ccgo_up(bp + 208))).Ftolerance + (*Ttimex)(unsafe.Pointer(utx)).Ftime.Ftv_sec = int64((**(**Tktimex)(__ccgo_up(bp + 208))).Ftime_sec) + (*Ttimex)(unsafe.Pointer(utx)).Ftime.Ftv_usec = int64((**(**Tktimex)(__ccgo_up(bp + 208))).Ftime_usec) + (*Ttimex)(unsafe.Pointer(utx)).Ftick = (**(**Tktimex)(__ccgo_up(bp + 208))).Ftick + (*Ttimex)(unsafe.Pointer(utx)).Fppsfreq = (**(**Tktimex)(__ccgo_up(bp + 208))).Fppsfreq + (*Ttimex)(unsafe.Pointer(utx)).Fjitter = (**(**Tktimex)(__ccgo_up(bp + 208))).Fjitter + (*Ttimex)(unsafe.Pointer(utx)).Fshift = (**(**Tktimex)(__ccgo_up(bp + 208))).Fshift + (*Ttimex)(unsafe.Pointer(utx)).Fstabil = (**(**Tktimex)(__ccgo_up(bp + 208))).Fstabil + (*Ttimex)(unsafe.Pointer(utx)).Fjitcnt = (**(**Tktimex)(__ccgo_up(bp + 208))).Fjitcnt + (*Ttimex)(unsafe.Pointer(utx)).Fcalcnt = (**(**Tktimex)(__ccgo_up(bp + 208))).Fcalcnt + (*Ttimex)(unsafe.Pointer(utx)).Ferrcnt = (**(**Tktimex)(__ccgo_up(bp + 208))).Ferrcnt + (*Ttimex)(unsafe.Pointer(utx)).Fstbcnt = (**(**Tktimex)(__ccgo_up(bp + 208))).Fstbcnt + (*Ttimex)(unsafe.Pointer(utx)).Ftai = (**(**Tktimex)(__ccgo_up(bp + 208))).Ftai + } + return X__syscall_ret(tls, Uint32FromInt32(r)) + } + if clock_id == CLOCK_REALTIME { + return X__syscall_ret(tls, Uint32FromInt32(X__syscall1(tls, int32(SYS_adjtimex), int32(utx)))) + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_clock_adjtime), clock_id, int32(utx)))) +} + +func Xcopy_file_range(tls *TLS, fd_in int32, off_in uintptr, fd_out int32, off_out uintptr, len1 Tsize_t, flags uint32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd_in=%v off_in=%v fd_out=%v off_out=%v len1=%v flags=%v, (%v:)", tls, fd_in, off_in, fd_out, off_out, len1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall6(tls, int32(SYS_copy_file_range), fd_in, int32(off_in), fd_out, int32(off_out), Int32FromUint32(len1), Int32FromUint32(flags)))) +} + +const EPOLLERR = 8 +const EPOLLET = 2147483648 +const EPOLLEXCLUSIVE = 268435456 +const EPOLLHUP = 16 +const EPOLLIN = 1 +const EPOLLMSG = 1024 +const EPOLLNVAL = 32 +const EPOLLONESHOT = 1073741824 +const EPOLLOUT = 4 +const EPOLLPRI = 2 +const EPOLLRDBAND = 128 +const EPOLLRDHUP = 8192 +const EPOLLRDNORM = 64 +const EPOLLWAKEUP = 536870912 +const EPOLLWRBAND = 512 +const EPOLLWRNORM = 256 +const EPOLL_CLOEXEC = 524288 +const EPOLL_CTL_ADD = 1 +const EPOLL_CTL_DEL = 2 +const EPOLL_CTL_MOD = 3 +const EPOLL_NONBLOCK = 2048 + +type Tfsblkcnt_t = uint64 + +type Tfsfilcnt_t = uint64 + +type _EPOLL_EVENTS = int32 + +const ___EPOLL_DUMMY = 0 + +type Tepoll_data_t = struct { + F__ccgo_align [0]uint32 + Ffd [0]int32 + Fu32 [0]Tuint32_t + Fu64 [0]Tuint64_t + Fptr uintptr + F__ccgo_pad4 [4]byte +} + +type Tepoll_data = Tepoll_data_t + +type Tepoll_event = struct { + F__ccgo_align [0]uint32 + Fevents Tuint32_t + F__ccgo_align1 [4]byte + Fdata Tepoll_data_t +} + +func Xepoll_create(tls *TLS, size int32) (r int32) { + if __ccgo_strace { + trc("tls=%v size=%v, (%v:)", tls, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + if size <= 0 { + return X__syscall_ret(tls, Uint32FromInt32(-Int32FromInt32(EINVAL))) + } + return Xepoll_create1(tls, 0) +} + +func Xepoll_create1(tls *TLS, flags int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v flags=%v, (%v:)", tls, flags, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + r = int32(X__syscall1(tls, int32(SYS_epoll_create1), flags)) + if r == -int32(ENOSYS) && !(flags != 0) { + r = int32(X__syscall1(tls, int32(SYS_epoll_create), int32(Int32FromInt32(1)))) + } + return X__syscall_ret(tls, Uint32FromInt32(r)) +} + +func Xepoll_ctl(tls *TLS, fd int32, op int32, fd2 int32, ev uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v op=%v fd2=%v ev=%v, (%v:)", tls, fd, op, fd2, ev, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall4(tls, int32(SYS_epoll_ctl), fd, op, fd2, int32(ev)))) +} + +func Xepoll_pwait(tls *TLS, fd int32, ev uintptr, cnt int32, to int32, sigs uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v ev=%v cnt=%v to=%v sigs=%v, (%v:)", tls, fd, ev, cnt, to, sigs, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + r = int32(___syscall_cp(tls, int32(SYS_epoll_pwait), fd, int32(ev), cnt, to, int32(sigs), int32(Int32FromInt32(_NSIG)/Int32FromInt32(8)))) + if r == -int32(ENOSYS) && !(sigs != 0) { + r = int32(___syscall_cp(tls, int32(SYS_epoll_wait), fd, int32(ev), cnt, to, 0, 0)) + } + return X__syscall_ret(tls, Uint32FromInt32(r)) +} + +func Xepoll_wait(tls *TLS, fd int32, ev uintptr, cnt int32, to int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v ev=%v cnt=%v to=%v, (%v:)", tls, fd, ev, cnt, to, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xepoll_pwait(tls, fd, ev, cnt, to, uintptr(0)) +} + +const EFD_CLOEXEC = 524288 +const EFD_NONBLOCK = 2048 +const EFD_SEMAPHORE = 1 + +type Teventfd_t = uint64 + +func Xeventfd(tls *TLS, count uint32, flags int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v count=%v flags=%v, (%v:)", tls, count, flags, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + r = int32(X__syscall2(tls, int32(SYS_eventfd2), Int32FromUint32(count), flags)) + if r == -int32(ENOSYS) && !(flags != 0) { + r = int32(X__syscall1(tls, int32(SYS_eventfd), Int32FromUint32(count))) + } + return X__syscall_ret(tls, Uint32FromInt32(r)) +} + +func Xeventfd_read(tls *TLS, fd int32, value uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v value=%v, (%v:)", tls, fd, value, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + _ = v1 + if uint32(8) == Uint32FromInt32(Xread(tls, fd, value, uint32(8))) { + v1 = 0 + } else { + v1 = -int32(1) + } + return v1 +} + +func Xeventfd_write(tls *TLS, fd int32, _value Teventfd_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v _value=%v, (%v:)", tls, fd, _value, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + *(*Teventfd_t)(unsafe.Pointer(bp)) = _value + var v1 int32 + _ = v1 + if uint32(8) == Uint32FromInt32(Xwrite(tls, fd, bp, uint32(8))) { + v1 = 0 + } else { + v1 = -int32(1) + } + return v1 +} + +func Xfallocate(tls *TLS, fd int32, mode int32, base Toff_t, len1 Toff_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v mode=%v base=%v len1=%v, (%v:)", tls, fd, mode, base, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall6(tls, int32(SYS_fallocate), fd, mode, int32(base), int32(base>>Int32FromInt32(32)), int32(len1), int32(len1>>Int32FromInt32(32))))) +} + +const FANOTIFY_METADATA_VERSION = 3 +const FAN_ACCESS = 1 +const FAN_ACCESS_PERM = 131072 +const FAN_ALLOW = 1 +const FAN_ALL_CLASS_BITS = 12 +const FAN_ALL_EVENTS = 59 +const FAN_ALL_INIT_FLAGS = 63 +const FAN_ALL_MARK_FLAGS = 255 +const FAN_ALL_OUTGOING_EVENTS = 213051 +const FAN_ALL_PERM_EVENTS = 196608 +const FAN_ATTRIB = 4 +const FAN_AUDIT = 16 +const FAN_CLASS_CONTENT = 4 +const FAN_CLASS_NOTIF = 0 +const FAN_CLASS_PRE_CONTENT = 8 +const FAN_CLOEXEC = 1 +const FAN_CLOSE = 24 +const FAN_CLOSE_NOWRITE = 16 +const FAN_CLOSE_WRITE = 8 +const FAN_CREATE = 256 +const FAN_DELETE = 512 +const FAN_DELETE_SELF = 1024 +const FAN_DENY = 2 +const FAN_DIR_MODIFY = 524288 +const FAN_ENABLE_AUDIT = 64 +const FAN_EVENT_INFO_TYPE_DFID = 3 +const FAN_EVENT_INFO_TYPE_DFID_NAME = 2 +const FAN_EVENT_INFO_TYPE_FID = 1 +const FAN_EVENT_METADATA_LEN = 0 +const FAN_EVENT_ON_CHILD = 134217728 +const FAN_MARK_ADD = 1 +const FAN_MARK_DONT_FOLLOW = 4 +const FAN_MARK_FILESYSTEM = 256 +const FAN_MARK_FLUSH = 128 +const FAN_MARK_IGNORED_MASK = 32 +const FAN_MARK_IGNORED_SURV_MODIFY = 64 +const FAN_MARK_INODE = 0 +const FAN_MARK_MOUNT = 16 +const FAN_MARK_ONLYDIR = 8 +const FAN_MARK_REMOVE = 2 +const FAN_MARK_TYPE_MASK = 272 +const FAN_MODIFY = 2 +const FAN_MOVE = 192 +const FAN_MOVED_FROM = 64 +const FAN_MOVED_TO = 128 +const FAN_MOVE_SELF = 2048 +const FAN_NOFD = -1 +const FAN_NONBLOCK = 2 +const FAN_ONDIR = 1073741824 +const FAN_OPEN = 32 +const FAN_OPEN_EXEC = 4096 +const FAN_OPEN_EXEC_PERM = 262144 +const FAN_OPEN_PERM = 65536 +const FAN_Q_OVERFLOW = 16384 +const FAN_REPORT_DFID_NAME = 3072 +const FAN_REPORT_DIR_FID = 1024 +const FAN_REPORT_FID = 512 +const FAN_REPORT_NAME = 2048 +const FAN_REPORT_TID = 256 +const FAN_UNLIMITED_MARKS = 32 +const FAN_UNLIMITED_QUEUE = 16 +const ST_APPEND = 256 +const ST_IMMUTABLE = 512 +const ST_MANDLOCK = 64 +const ST_NOATIME = 1024 +const ST_NODEV = 4 +const ST_NODIRATIME = 2048 +const ST_NOEXEC = 8 +const ST_NOSUID = 2 +const ST_RDONLY = 1 +const ST_RELATIME = 4096 +const ST_SYNCHRONOUS = 16 +const ST_WRITE = 128 + +type Tstatvfs = struct { + F__ccgo_align [0]uint32 + Ff_bsize uint32 + Ff_frsize uint32 + Ff_blocks Tfsblkcnt_t + Ff_bfree Tfsblkcnt_t + Ff_bavail Tfsblkcnt_t + Ff_files Tfsfilcnt_t + Ff_ffree Tfsfilcnt_t + Ff_favail Tfsfilcnt_t + Ff_fsid uint32 + F__ccgo60 uint32 + Ff_flag uint32 + Ff_namemax uint32 + Ff_type uint32 + F__reserved [5]int32 +} + +type Tfsid_t = struct { + F__val [2]int32 +} + +type t__fsid_t = Tfsid_t + +type Tstatfs = struct { + F__ccgo_align [0]uint32 + Ff_type uint32 + Ff_bsize uint32 + Ff_blocks Tfsblkcnt_t + Ff_bfree Tfsblkcnt_t + Ff_bavail Tfsblkcnt_t + Ff_files Tfsfilcnt_t + Ff_ffree Tfsfilcnt_t + Ff_fsid Tfsid_t + Ff_namelen uint32 + Ff_frsize uint32 + Ff_flags uint32 + Ff_spare [4]uint32 + F__ccgo_pad12 [4]byte +} + +type Tfanotify_event_metadata = struct { + F__ccgo_align [0]uint32 + Fevent_len uint32 + Fvers uint8 + Freserved uint8 + Fmetadata_len uint16 + Fmask uint64 + Ffd int32 + Fpid int32 +} + +type Tfanotify_event_info_header = struct { + Finfo_type uint8 + Fpad uint8 + Flen1 uint16 +} + +type Tfanotify_event_info_fid = struct { + Fhdr Tfanotify_event_info_header + Ffsid Tfsid_t +} + +type Tfanotify_response = struct { + Ffd int32 + Fresponse uint32 +} + +func Xfanotify_init(tls *TLS, flags uint32, event_f_flags uint32) (r int32) { + if __ccgo_strace { + trc("tls=%v flags=%v event_f_flags=%v, (%v:)", tls, flags, event_f_flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_fanotify_init), Int32FromUint32(flags), Int32FromUint32(event_f_flags)))) +} + +func Xfanotify_mark(tls *TLS, fanotify_fd int32, flags uint32, mask uint64, dfd int32, pathname uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fanotify_fd=%v flags=%v mask=%v dfd=%v pathname=%v, (%v:)", tls, fanotify_fd, flags, mask, dfd, pathname, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall6(tls, int32(SYS_fanotify_mark), fanotify_fd, Int32FromUint32(flags), int32(Int32FromUint64(mask)), int32(Int32FromUint64(mask>>Int32FromInt32(32))), dfd, int32(pathname)))) +} + +const LOCK_EX = 2 +const LOCK_NB = 4 +const LOCK_SH = 1 +const LOCK_UN = 8 + +func Xflock(tls *TLS, fd int32, op int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v op=%v, (%v:)", tls, fd, op, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_flock), fd, op))) +} + +func Xgetdents(tls *TLS, fd int32, buf uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v len1=%v, (%v:)", tls, fd, buf, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + if len1 > uint32(INT_MAX) { + len1 = uint32(INT_MAX) + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_getdents64), fd, int32(buf), Int32FromUint32(len1)))) +} + +const GRND_INSECURE = 4 +const GRND_NONBLOCK = 1 +const GRND_RANDOM = 2 + +func Xgetrandom(tls *TLS, buf uintptr, buflen Tsize_t, flags uint32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v buf=%v buflen=%v flags=%v, (%v:)", tls, buf, buflen, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(___syscall_cp(tls, int32(SYS_getrandom), int32(buf), Int32FromUint32(buflen), Int32FromUint32(flags), 0, 0, 0))) +} + +const IN_ACCESS = 1 +const IN_ALL_EVENTS = 4095 +const IN_ATTRIB = 4 +const IN_CLOEXEC = 524288 +const IN_CLOSE = 24 +const IN_CLOSE_NOWRITE = 16 +const IN_CLOSE_WRITE = 8 +const IN_CREATE = 256 +const IN_DELETE = 512 +const IN_DELETE_SELF = 1024 +const IN_DONT_FOLLOW = 33554432 +const IN_EXCL_UNLINK = 67108864 +const IN_IGNORED = 32768 +const IN_ISDIR = 1073741824 +const IN_MASK_ADD = 536870912 +const IN_MASK_CREATE = 268435456 +const IN_MODIFY = 2 +const IN_MOVE = 192 +const IN_MOVED_FROM = 64 +const IN_MOVED_TO = 128 +const IN_MOVE_SELF = 2048 +const IN_NONBLOCK = 2048 +const IN_ONESHOT = 2147483648 +const IN_ONLYDIR = 16777216 +const IN_OPEN = 32 +const IN_Q_OVERFLOW = 16384 +const IN_UNMOUNT = 8192 + +type Tinotify_event = struct { + Fwd int32 + Fmask Tuint32_t + Fcookie Tuint32_t + Flen1 Tuint32_t +} + +func Xinotify_init(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xinotify_init1(tls, 0) +} + +func Xinotify_init1(tls *TLS, flags int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v flags=%v, (%v:)", tls, flags, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + r = int32(X__syscall1(tls, int32(SYS_inotify_init1), flags)) + if r == -int32(ENOSYS) && !(flags != 0) { + r = int32(X__syscall0(tls, int32(SYS_inotify_init))) + } + return X__syscall_ret(tls, Uint32FromInt32(r)) +} + +func Xinotify_add_watch(tls *TLS, fd int32, pathname uintptr, mask Tuint32_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v pathname=%v mask=%v, (%v:)", tls, fd, pathname, mask, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_inotify_add_watch), fd, int32(pathname), Int32FromUint32(mask)))) +} + +func Xinotify_rm_watch(tls *TLS, fd int32, wd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v wd=%v, (%v:)", tls, fd, wd, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_inotify_rm_watch), fd, wd))) +} + +func Xklogctl(tls *TLS, type1 int32, buf uintptr, len1 int32) (r int32) { + if __ccgo_strace { + trc("tls=%v type1=%v buf=%v len1=%v, (%v:)", tls, type1, buf, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_syslog), type1, int32(buf), len1))) +} + +const MADV_COLD = 20 +const MADV_DODUMP = 17 +const MADV_DOFORK = 11 +const MADV_DONTDUMP = 16 +const MADV_DONTFORK = 10 +const MADV_DONTNEED = 4 +const MADV_FREE = 8 +const MADV_HUGEPAGE = 14 +const MADV_HWPOISON = 100 +const MADV_KEEPONFORK = 19 +const MADV_MERGEABLE = 12 +const MADV_NOHUGEPAGE = 15 +const MADV_NORMAL = 0 +const MADV_PAGEOUT = 21 +const MADV_RANDOM = 1 +const MADV_REMOVE = 9 +const MADV_SEQUENTIAL = 2 +const MADV_SOFT_OFFLINE = 101 +const MADV_UNMERGEABLE = 13 +const MADV_WILLNEED = 3 +const MADV_WIPEONFORK = 18 +const MFD_ALLOW_SEALING = 2 +const MFD_CLOEXEC = 1 +const MFD_HUGETLB = 4 +const MLOCK_ONFAULT = 1 +const MREMAP_DONTUNMAP = 4 +const MREMAP_FIXED = 2 +const MREMAP_MAYMOVE = 1 +const _GNU_SOURCE = 1 + +func Xmemfd_create(tls *TLS, name uintptr, flags uint32) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v flags=%v, (%v:)", tls, name, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_memfd_create), int32(name), Int32FromUint32(flags)))) +} + +func Xmlock2(tls *TLS, addr uintptr, len1 Tsize_t, flags uint32) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v len1=%v flags=%v, (%v:)", tls, addr, len1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + if flags == uint32(0) { + return Xmlock(tls, addr, len1) + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_mlock2), int32(addr), Int32FromUint32(len1), Int32FromUint32(flags)))) +} + +func Xinit_module(tls *TLS, a uintptr, b uint32, c uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v a=%v b=%v c=%v, (%v:)", tls, a, b, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_init_module), int32(a), Int32FromUint32(b), int32(c)))) +} + +func Xdelete_module(tls *TLS, a uintptr, b uint32) (r int32) { + if __ccgo_strace { + trc("tls=%v a=%v b=%v, (%v:)", tls, a, b, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_delete_module), int32(a), Int32FromUint32(b)))) +} + +const BLKBSZGET = 2147488368 +const BLKBSZSET = 1073746545 +const BLKFLSBUF = 4705 +const BLKFRAGET = 4709 +const BLKFRASET = 4708 +const BLKGETSIZE = 4704 +const BLKGETSIZE64 = 2147488370 +const BLKRAGET = 4707 +const BLKRASET = 4706 +const BLKROGET = 4702 +const BLKROSET = 4701 +const BLKRRPART = 4703 +const BLKSECTGET = 4711 +const BLKSECTSET = 4710 +const BLKSSZGET = 4712 +const FIOASYNC = 21586 +const FIOCLEX = 21585 +const FIOGETOWN = 35075 +const FIONBIO = 21537 +const FIONCLEX = 21584 +const FIONREAD = 21531 +const FIOSETOWN = 35073 +const MNT_DETACH = 2 +const MNT_EXPIRE = 4 +const MNT_FORCE = 1 +const MS_ACTIVE = 1073741824 +const MS_BIND = 4096 +const MS_BORN = 536870912 +const MS_DIRSYNC = 128 +const MS_I_VERSION = 8388608 +const MS_KERNMOUNT = 4194304 +const MS_LAZYTIME = 33554432 +const MS_MANDLOCK = 64 +const MS_MGC_MSK = 4294901760 +const MS_MGC_VAL = 3236757504 +const MS_MOVE = 8192 +const MS_NOATIME = 1024 +const MS_NODEV = 4 +const MS_NODIRATIME = 2048 +const MS_NOEXEC = 8 +const MS_NOREMOTELOCK = 134217728 +const MS_NOSEC = 268435456 +const MS_NOSUID = 2 +const MS_NOSYMFOLLOW = 256 +const MS_NOUSER = 2147483648 +const MS_POSIXACL = 65536 +const MS_PRIVATE = 262144 +const MS_RDONLY = 1 +const MS_REC = 16384 +const MS_RELATIME = 2097152 +const MS_REMOUNT = 32 +const MS_RMT_MASK = 41943121 +const MS_SHARED = 1048576 +const MS_SILENT = 32768 +const MS_SLAVE = 524288 +const MS_STRICTATIME = 16777216 +const MS_SYNCHRONOUS = 16 +const MS_UNBINDABLE = 131072 +const N_6PACK = 7 +const N_AX25 = 5 +const N_CAIF = 20 +const N_GIGASET_M101 = 16 +const N_GSM0710 = 21 +const N_HCI = 15 +const N_HDLC = 13 +const N_IRDA = 11 +const N_MASC = 8 +const N_MOUSE = 2 +const N_NCI = 25 +const N_NULL = 27 +const N_PPP = 3 +const N_PPS = 18 +const N_PROFIBUS_FDL = 10 +const N_R3964 = 9 +const N_SLCAN = 17 +const N_SLIP = 1 +const N_SMSBLOCK = 12 +const N_SPEAKUP = 26 +const N_STRIP = 4 +const N_SYNC_PPP = 14 +const N_TI_WL = 22 +const N_TRACEROUTER = 24 +const N_TRACESINK = 23 +const N_TTY = 0 +const N_V253 = 19 +const N_X25 = 6 +const SIOCADDDLCI = 35200 +const SIOCADDMULTI = 35121 +const SIOCADDRT = 35083 +const SIOCATMARK = 35077 +const SIOCDARP = 35155 +const SIOCDELDLCI = 35201 +const SIOCDELMULTI = 35122 +const SIOCDELRT = 35084 +const SIOCDEVPRIVATE = 35312 +const SIOCDIFADDR = 35126 +const SIOCDRARP = 35168 +const SIOCGARP = 35156 +const SIOCGIFADDR = 35093 +const SIOCGIFBR = 35136 +const SIOCGIFBRDADDR = 35097 +const SIOCGIFCONF = 35090 +const SIOCGIFCOUNT = 35128 +const SIOCGIFDSTADDR = 35095 +const SIOCGIFENCAP = 35109 +const SIOCGIFFLAGS = 35091 +const SIOCGIFHWADDR = 35111 +const SIOCGIFINDEX = 35123 +const SIOCGIFMAP = 35184 +const SIOCGIFMEM = 35103 +const SIOCGIFMETRIC = 35101 +const SIOCGIFMTU = 35105 +const SIOCGIFNAME = 35088 +const SIOCGIFNETMASK = 35099 +const SIOCGIFPFLAGS = 35125 +const SIOCGIFSLAVE = 35113 +const SIOCGIFTXQLEN = 35138 +const SIOCGPGRP = 35076 +const SIOCGRARP = 35169 +const SIOCGSTAMP = 2147518726 +const SIOCGSTAMPNS = 2147518727 +const SIOCPROTOPRIVATE = 35296 +const SIOCRTMSG = 35085 +const SIOCSARP = 35157 +const SIOCSIFADDR = 35094 +const SIOCSIFBR = 35137 +const SIOCSIFBRDADDR = 35098 +const SIOCSIFDSTADDR = 35096 +const SIOCSIFENCAP = 35110 +const SIOCSIFFLAGS = 35092 +const SIOCSIFHWADDR = 35108 +const SIOCSIFHWBROADCAST = 35127 +const SIOCSIFLINK = 35089 +const SIOCSIFMAP = 35185 +const SIOCSIFMEM = 35104 +const SIOCSIFMETRIC = 35102 +const SIOCSIFMTU = 35106 +const SIOCSIFNAME = 35107 +const SIOCSIFNETMASK = 35100 +const SIOCSIFPFLAGS = 35124 +const SIOCSIFSLAVE = 35120 +const SIOCSIFTXQLEN = 35139 +const SIOCSPGRP = 35074 +const SIOCSRARP = 35170 +const SIOGIFINDEX = 35123 +const TCFLSH = 21515 +const TCGETA = 21509 +const TCGETS = 21505 +const TCGETX = 21554 +const TCSBRK = 21513 +const TCSBRKP = 21541 +const TCSETA = 21510 +const TCSETAF = 21512 +const TCSETAW = 21511 +const TCSETS = 21506 +const TCSETSF = 21508 +const TCSETSW = 21507 +const TCSETX = 21555 +const TCSETXF = 21556 +const TCSETXW = 21557 +const TCXONC = 21514 +const TIOCCBRK = 21544 +const TIOCCONS = 21533 +const TIOCEXCL = 21516 +const TIOCGDEV = 2147767346 +const TIOCGETD = 21540 +const TIOCGEXCL = 2147767360 +const TIOCGICOUNT = 21597 +const TIOCGISO7816 = 2150126658 +const TIOCGLCKTRMIOS = 21590 +const TIOCGPGRP = 21519 +const TIOCGPKT = 2147767352 +const TIOCGPTLCK = 2147767353 +const TIOCGPTN = 2147767344 +const TIOCGPTPEER = 21569 +const TIOCGRS485 = 21550 +const TIOCGSERIAL = 21534 +const TIOCGSID = 21545 +const TIOCGSOFTCAR = 21529 +const TIOCGWINSZ = 21523 +const TIOCINQ = 21531 +const TIOCLINUX = 21532 +const TIOCMBIC = 21527 +const TIOCMBIS = 21526 +const TIOCMGET = 21525 +const TIOCMIWAIT = 21596 +const TIOCMSET = 21528 +const TIOCM_CAR = 64 +const TIOCM_CD = 64 +const TIOCM_CTS = 32 +const TIOCM_DSR = 256 +const TIOCM_DTR = 2 +const TIOCM_LE = 1 +const TIOCM_LOOP = 32768 +const TIOCM_OUT1 = 8192 +const TIOCM_OUT2 = 16384 +const TIOCM_RI = 128 +const TIOCM_RNG = 128 +const TIOCM_RTS = 4 +const TIOCM_SR = 16 +const TIOCM_ST = 8 +const TIOCNOTTY = 21538 +const TIOCNXCL = 21517 +const TIOCOUTQ = 21521 +const TIOCPKT = 21536 +const TIOCPKT_DATA = 0 +const TIOCPKT_DOSTOP = 32 +const TIOCPKT_FLUSHREAD = 1 +const TIOCPKT_FLUSHWRITE = 2 +const TIOCPKT_IOCTL = 64 +const TIOCPKT_NOSTOP = 16 +const TIOCPKT_START = 8 +const TIOCPKT_STOP = 4 +const TIOCSBRK = 21543 +const TIOCSCTTY = 21518 +const TIOCSERCONFIG = 21587 +const TIOCSERGETLSR = 21593 +const TIOCSERGETMULTI = 21594 +const TIOCSERGSTRUCT = 21592 +const TIOCSERGWILD = 21588 +const TIOCSERSETMULTI = 21595 +const TIOCSERSWILD = 21589 +const TIOCSER_TEMT = 1 +const TIOCSETD = 21539 +const TIOCSIG = 1074025526 +const TIOCSISO7816 = 3223868483 +const TIOCSLCKTRMIOS = 21591 +const TIOCSPGRP = 21520 +const TIOCSPTLCK = 1074025521 +const TIOCSRS485 = 21551 +const TIOCSSERIAL = 21535 +const TIOCSSOFTCAR = 21530 +const TIOCSTI = 21522 +const TIOCSWINSZ = 21524 +const TIOCVHANGUP = 21559 +const UMOUNT_NOFOLLOW = 8 +const _IOC_NONE = 0 +const _IOC_READ = 2 +const _IOC_WRITE = 1 + +func Xmount(tls *TLS, special uintptr, dir uintptr, fstype uintptr, flags uint32, data uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v special=%v dir=%v fstype=%v flags=%v data=%v, (%v:)", tls, special, dir, fstype, flags, data, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall5(tls, int32(SYS_mount), int32(special), int32(dir), int32(fstype), Int32FromUint32(flags), int32(data)))) +} + +func Xumount(tls *TLS, special uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v special=%v, (%v:)", tls, special, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_umount2), int32(special), int32(Int32FromInt32(0))))) +} + +func Xumount2(tls *TLS, special uintptr, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v special=%v flags=%v, (%v:)", tls, special, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_umount2), int32(special), flags))) +} + +func Xname_to_handle_at(tls *TLS, dirfd int32, pathname uintptr, handle uintptr, mount_id uintptr, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v dirfd=%v pathname=%v handle=%v mount_id=%v flags=%v, (%v:)", tls, dirfd, pathname, handle, mount_id, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall5(tls, int32(SYS_name_to_handle_at), dirfd, int32(pathname), int32(handle), int32(mount_id), flags))) +} + +func Xopen_by_handle_at(tls *TLS, mount_fd int32, handle uintptr, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v mount_fd=%v handle=%v flags=%v, (%v:)", tls, mount_fd, handle, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_open_by_handle_at), mount_fd, int32(handle), flags))) +} + +const ADDR_COMPAT_LAYOUT = 2097152 +const ADDR_LIMIT_32BIT = 8388608 +const ADDR_LIMIT_3GB = 134217728 +const ADDR_NO_RANDOMIZE = 262144 +const FDPIC_FUNCPTRS = 524288 +const MMAP_PAGE_ZERO = 1048576 +const PER_BSD = 6 +const PER_HPUX = 16 +const PER_IRIX32 = 67108873 +const PER_IRIX64 = 67108875 +const PER_IRIXN32 = 67108874 +const PER_ISCR4 = 67108869 +const PER_LINUX = 0 +const PER_LINUX32 = 8 +const PER_LINUX32_3GB = 134217736 +const PER_LINUX_32BIT = 8388608 +const PER_LINUX_FDPIC = 524288 +const PER_MASK = 255 +const PER_OSF4 = 15 +const PER_OSR5 = 100663299 +const PER_RISCOS = 12 +const PER_SCOSVR3 = 117440515 +const PER_SOLARIS = 67108877 +const PER_SUNOS = 67108870 +const PER_SVR3 = 83886082 +const PER_SVR4 = 68157441 +const PER_UW7 = 68157454 +const PER_WYSEV386 = 83886084 +const PER_XENIX = 83886087 +const READ_IMPLIES_EXEC = 4194304 +const SHORT_INODE = 16777216 +const STICKY_TIMEOUTS = 67108864 +const UNAME26 = 131072 +const WHOLE_SECONDS = 33554432 + +func Xpersonality(tls *TLS, persona uint32) (r int32) { + if __ccgo_strace { + trc("tls=%v persona=%v, (%v:)", tls, persona, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall1(tls, int32(SYS_personality), Int32FromUint32(persona)))) +} + +func Xpivot_root(tls *TLS, new1 uintptr, old uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v new1=%v old=%v, (%v:)", tls, new1, old, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_pivot_root), int32(new1), int32(old)))) +} + +const PR_CAPBSET_DROP = 24 +const PR_CAPBSET_READ = 23 +const PR_CAP_AMBIENT = 47 +const PR_CAP_AMBIENT_CLEAR_ALL = 4 +const PR_CAP_AMBIENT_IS_SET = 1 +const PR_CAP_AMBIENT_LOWER = 3 +const PR_CAP_AMBIENT_RAISE = 2 +const PR_ENDIAN_BIG = 0 +const PR_ENDIAN_LITTLE = 1 +const PR_ENDIAN_PPC_LITTLE = 2 +const PR_FPEMU_NOPRINT = 1 +const PR_FPEMU_SIGFPE = 2 +const PR_FP_EXC_ASYNC = 2 +const PR_FP_EXC_DISABLED = 0 +const PR_FP_EXC_DIV = 65536 +const PR_FP_EXC_INV = 1048576 +const PR_FP_EXC_NONRECOV = 1 +const PR_FP_EXC_OVF = 131072 +const PR_FP_EXC_PRECISE = 3 +const PR_FP_EXC_RES = 524288 +const PR_FP_EXC_SW_ENABLE = 128 +const PR_FP_EXC_UND = 262144 +const PR_FP_MODE_FR = 1 +const PR_FP_MODE_FRE = 2 +const PR_GET_CHILD_SUBREAPER = 37 +const PR_GET_DUMPABLE = 3 +const PR_GET_ENDIAN = 19 +const PR_GET_FPEMU = 9 +const PR_GET_FPEXC = 11 +const PR_GET_FP_MODE = 46 +const PR_GET_IO_FLUSHER = 58 +const PR_GET_KEEPCAPS = 7 +const PR_GET_NAME = 16 +const PR_GET_NO_NEW_PRIVS = 39 +const PR_GET_PDEATHSIG = 2 +const PR_GET_SECCOMP = 21 +const PR_GET_SECUREBITS = 27 +const PR_GET_SPECULATION_CTRL = 52 +const PR_GET_TAGGED_ADDR_CTRL = 56 +const PR_GET_THP_DISABLE = 42 +const PR_GET_TID_ADDRESS = 40 +const PR_GET_TIMERSLACK = 30 +const PR_GET_TIMING = 13 +const PR_GET_TSC = 25 +const PR_GET_UNALIGN = 5 +const PR_MCE_KILL = 33 +const PR_MCE_KILL_CLEAR = 0 +const PR_MCE_KILL_DEFAULT = 2 +const PR_MCE_KILL_EARLY = 1 +const PR_MCE_KILL_GET = 34 +const PR_MCE_KILL_LATE = 0 +const PR_MCE_KILL_SET = 1 +const PR_MPX_DISABLE_MANAGEMENT = 44 +const PR_MPX_ENABLE_MANAGEMENT = 43 +const PR_MTE_TAG_MASK = 524280 +const PR_MTE_TAG_SHIFT = 3 +const PR_MTE_TCF_ASYNC = 4 +const PR_MTE_TCF_MASK = 6 +const PR_MTE_TCF_NONE = 0 +const PR_MTE_TCF_SHIFT = 1 +const PR_MTE_TCF_SYNC = 2 +const PR_PAC_APDAKEY = 4 +const PR_PAC_APDBKEY = 8 +const PR_PAC_APGAKEY = 16 +const PR_PAC_APIAKEY = 1 +const PR_PAC_APIBKEY = 2 +const PR_PAC_GET_ENABLED_KEYS = 61 +const PR_PAC_RESET_KEYS = 54 +const PR_PAC_SET_ENABLED_KEYS = 60 +const PR_SET_CHILD_SUBREAPER = 36 +const PR_SET_DUMPABLE = 4 +const PR_SET_ENDIAN = 20 +const PR_SET_FPEMU = 10 +const PR_SET_FPEXC = 12 +const PR_SET_FP_MODE = 45 +const PR_SET_IO_FLUSHER = 57 +const PR_SET_KEEPCAPS = 8 +const PR_SET_MM = 35 +const PR_SET_MM_ARG_END = 9 +const PR_SET_MM_ARG_START = 8 +const PR_SET_MM_AUXV = 12 +const PR_SET_MM_BRK = 7 +const PR_SET_MM_END_CODE = 2 +const PR_SET_MM_END_DATA = 4 +const PR_SET_MM_ENV_END = 11 +const PR_SET_MM_ENV_START = 10 +const PR_SET_MM_EXE_FILE = 13 +const PR_SET_MM_MAP = 14 +const PR_SET_MM_MAP_SIZE = 15 +const PR_SET_MM_START_BRK = 6 +const PR_SET_MM_START_CODE = 1 +const PR_SET_MM_START_DATA = 3 +const PR_SET_MM_START_STACK = 5 +const PR_SET_NAME = 15 +const PR_SET_NO_NEW_PRIVS = 38 +const PR_SET_PDEATHSIG = 1 +const PR_SET_PTRACER = 1499557217 +const PR_SET_PTRACER_ANY = 18446744073709551615 +const PR_SET_SECCOMP = 22 +const PR_SET_SECUREBITS = 28 +const PR_SET_SPECULATION_CTRL = 53 +const PR_SET_SYSCALL_USER_DISPATCH = 59 +const PR_SET_TAGGED_ADDR_CTRL = 55 +const PR_SET_THP_DISABLE = 41 +const PR_SET_TIMERSLACK = 29 +const PR_SET_TIMING = 14 +const PR_SET_TSC = 26 +const PR_SET_UNALIGN = 6 +const PR_SPEC_DISABLE = 4 +const PR_SPEC_DISABLE_NOEXEC = 16 +const PR_SPEC_ENABLE = 2 +const PR_SPEC_FORCE_DISABLE = 8 +const PR_SPEC_INDIRECT_BRANCH = 1 +const PR_SPEC_NOT_AFFECTED = 0 +const PR_SPEC_PRCTL = 1 +const PR_SPEC_STORE_BYPASS = 0 +const PR_SVE_GET_VL = 51 +const PR_SVE_SET_VL = 50 +const PR_SVE_SET_VL_ONEXEC = 262144 +const PR_SVE_VL_INHERIT = 131072 +const PR_SVE_VL_LEN_MASK = 65535 +const PR_SYS_DISPATCH_OFF = 0 +const PR_SYS_DISPATCH_ON = 1 +const PR_TAGGED_ADDR_ENABLE = 1 +const PR_TASK_PERF_EVENTS_DISABLE = 31 +const PR_TASK_PERF_EVENTS_ENABLE = 32 +const PR_TIMING_STATISTICAL = 0 +const PR_TIMING_TIMESTAMP = 1 +const PR_TSC_ENABLE = 1 +const PR_TSC_SIGSEGV = 2 +const PR_UNALIGN_NOPRINT = 1 +const PR_UNALIGN_SIGBUS = 2 +const SYSCALL_DISPATCH_FILTER_ALLOW = 0 +const SYSCALL_DISPATCH_FILTER_BLOCK = 1 + +type Tprctl_mm_map = struct { + F__ccgo_align [0]uint32 + Fstart_code Tuint64_t + Fend_code Tuint64_t + Fstart_data Tuint64_t + Fend_data Tuint64_t + Fstart_brk Tuint64_t + Fbrk Tuint64_t + Fstart_stack Tuint64_t + Farg_start Tuint64_t + Farg_end Tuint64_t + Fenv_start Tuint64_t + Fenv_end Tuint64_t + Fauxv uintptr + Fauxv_size Tuint32_t + Fexe_fd Tuint32_t + F__ccgo_pad14 [4]byte +} + +func Xprctl(tls *TLS, op int32, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v op=%v va=%v, (%v:)", tls, op, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var i int32 + var x [4]uint32 + _, _, _ = ap, i, x + ap = va + i = 0 + for { + if !(i < int32(4)) { + break + } + x[i] = VaUint32(&ap) + goto _1 + _1: + ; + i = i + 1 + } + _ = ap + return X__syscall_ret(tls, Uint32FromInt32(X__syscall5(tls, int32(SYS_prctl), op, Int32FromUint32(x[0]), Int32FromUint32(x[int32(1)]), Int32FromUint32(x[int32(2)]), Int32FromUint32(x[int32(3)])))) +} + +const RWF_APPEND = 16 +const RWF_DSYNC = 2 +const RWF_HIPRI = 1 +const RWF_NOWAIT = 8 +const RWF_SYNC = 4 +const UIO_MAXIOV = 1024 + +func Xpreadv2(tls *TLS, fd int32, iov uintptr, count int32, ofs Toff_t, flags int32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v iov=%v count=%v ofs=%v flags=%v, (%v:)", tls, fd, iov, count, ofs, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + if !(flags != 0) { + if ofs == int64(-int32(1)) { + return Xreadv(tls, fd, iov, count) + } + return X__syscall_ret(tls, Uint32FromInt32(___syscall_cp(tls, int32(SYS_preadv), fd, int32(iov), count, int32(ofs), int32(ofs>>Int32FromInt32(32)), 0))) + } + return X__syscall_ret(tls, Uint32FromInt32(___syscall_cp(tls, int32(SYS_preadv2), fd, int32(iov), count, int32(ofs), int32(ofs>>Int32FromInt32(32)), flags))) +} + +func Xprlimit(tls *TLS, pid Tpid_t, resource int32, new_limit uintptr, old_limit uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v pid=%v resource=%v new_limit=%v old_limit=%v, (%v:)", tls, pid, resource, new_limit, old_limit, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var r int32 + var _ /* tmp at bp+0 */ Trlimit + _ = r + if new_limit != 0 && Bool(^Uint64FromUint64(0) != ^Uint64FromUint64(0)) { + **(**Trlimit)(__ccgo_up(bp)) = **(**Trlimit)(__ccgo_up(new_limit)) + if (**(**Trlimit)(__ccgo_up(bp))).Frlim_cur >= ^Uint64FromUint64(0) { + (**(**Trlimit)(__ccgo_up(bp))).Frlim_cur = ^Uint64FromUint64(0) + } + if (**(**Trlimit)(__ccgo_up(bp))).Frlim_max >= ^Uint64FromUint64(0) { + (**(**Trlimit)(__ccgo_up(bp))).Frlim_max = ^Uint64FromUint64(0) + } + new_limit = bp + } + r = X__syscall_ret(tls, Uint32FromInt32(X__syscall4(tls, int32(SYS_prlimit64), pid, resource, int32(new_limit), int32(old_limit)))) + if !(r != 0) && old_limit != 0 && Bool(^Uint64FromUint64(0) != ^Uint64FromUint64(0)) { + if (*Trlimit)(unsafe.Pointer(old_limit)).Frlim_cur >= ^Uint64FromUint64(0) { + (*Trlimit)(unsafe.Pointer(old_limit)).Frlim_cur = ^Uint64FromUint64(0) + } + if (*Trlimit)(unsafe.Pointer(old_limit)).Frlim_max >= ^Uint64FromUint64(0) { + (*Trlimit)(unsafe.Pointer(old_limit)).Frlim_max = ^Uint64FromUint64(0) + } + } + return r +} + +func Xprocess_vm_writev(tls *TLS, pid Tpid_t, lvec uintptr, liovcnt uint32, rvec uintptr, riovcnt uint32, flags uint32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v pid=%v lvec=%v liovcnt=%v rvec=%v riovcnt=%v flags=%v, (%v:)", tls, pid, lvec, liovcnt, rvec, riovcnt, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall6(tls, int32(SYS_process_vm_writev), pid, int32(lvec), Int32FromUint32(liovcnt), int32(rvec), Int32FromUint32(riovcnt), Int32FromUint32(flags)))) +} + +func Xprocess_vm_readv(tls *TLS, pid Tpid_t, lvec uintptr, liovcnt uint32, rvec uintptr, riovcnt uint32, flags uint32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v pid=%v lvec=%v liovcnt=%v rvec=%v riovcnt=%v flags=%v, (%v:)", tls, pid, lvec, liovcnt, rvec, riovcnt, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall6(tls, int32(SYS_process_vm_readv), pid, int32(lvec), Int32FromUint32(liovcnt), int32(rvec), Int32FromUint32(riovcnt), Int32FromUint32(flags)))) +} + +const PTRACE_ATTACH = 16 +const PTRACE_CONT = 7 +const PTRACE_DETACH = 17 +const PTRACE_EVENT_CLONE = 3 +const PTRACE_EVENT_EXEC = 4 +const PTRACE_EVENT_EXIT = 6 +const PTRACE_EVENT_FORK = 1 +const PTRACE_EVENT_SECCOMP = 7 +const PTRACE_EVENT_STOP = 128 +const PTRACE_EVENT_VFORK = 2 +const PTRACE_EVENT_VFORK_DONE = 5 +const PTRACE_GETCRUNCHREGS = 25 +const PTRACE_GETEVENTMSG = 16897 +const PTRACE_GETFDPIC = 31 +const PTRACE_GETFDPIC_EXEC = 0 +const PTRACE_GETFDPIC_INTERP = 1 +const PTRACE_GETFPREGS = 14 +const PTRACE_GETFPXREGS = 18 +const PTRACE_GETHBPREGS = 29 +const PTRACE_GETREGS = 12 +const PTRACE_GETREGSET = 16900 +const PTRACE_GETSIGINFO = 16898 +const PTRACE_GETSIGMASK = 16906 +const PTRACE_GETVFPREGS = 27 +const PTRACE_GETWMMXREGS = 18 +const PTRACE_GET_RSEQ_CONFIGURATION = 16911 +const PTRACE_GET_SYSCALL_INFO = 16910 +const PTRACE_GET_THREAD_AREA = 22 +const PTRACE_INTERRUPT = 16903 +const PTRACE_KILL = 8 +const PTRACE_LISTEN = 16904 +const PTRACE_O_EXITKILL = 1048576 +const PTRACE_O_MASK = 3145983 +const PTRACE_O_SUSPEND_SECCOMP = 2097152 +const PTRACE_O_TRACECLONE = 8 +const PTRACE_O_TRACEEXEC = 16 +const PTRACE_O_TRACEEXIT = 64 +const PTRACE_O_TRACEFORK = 2 +const PTRACE_O_TRACESECCOMP = 128 +const PTRACE_O_TRACESYSGOOD = 1 +const PTRACE_O_TRACEVFORK = 4 +const PTRACE_O_TRACEVFORKDONE = 32 +const PTRACE_PEEKDATA = 2 +const PTRACE_PEEKSIGINFO = 16905 +const PTRACE_PEEKSIGINFO_SHARED = 1 +const PTRACE_PEEKTEXT = 1 +const PTRACE_PEEKUSER = 3 +const PTRACE_POKEDATA = 5 +const PTRACE_POKETEXT = 4 +const PTRACE_POKEUSER = 6 +const PTRACE_SECCOMP_GET_FILTER = 16908 +const PTRACE_SECCOMP_GET_METADATA = 16909 +const PTRACE_SEIZE = 16902 +const PTRACE_SETCRUNCHREGS = 26 +const PTRACE_SETFPREGS = 15 +const PTRACE_SETFPXREGS = 19 +const PTRACE_SETHBPREGS = 30 +const PTRACE_SETOPTIONS = 16896 +const PTRACE_SETREGS = 13 +const PTRACE_SETREGSET = 16901 +const PTRACE_SETSIGINFO = 16899 +const PTRACE_SETSIGMASK = 16907 +const PTRACE_SETVFPREGS = 28 +const PTRACE_SETWMMXREGS = 19 +const PTRACE_SET_SYSCALL = 23 +const PTRACE_SINGLESTEP = 9 +const PTRACE_SYSCALL = 24 +const PTRACE_SYSCALL_INFO_ENTRY = 1 +const PTRACE_SYSCALL_INFO_EXIT = 2 +const PTRACE_SYSCALL_INFO_NONE = 0 +const PTRACE_SYSCALL_INFO_SECCOMP = 3 +const PTRACE_TRACEME = 0 +const PT_ATTACH = 16 +const PT_CONTINUE = 7 +const PT_DETACH = 17 +const PT_GETCRUNCHREGS = 25 +const PT_GETEVENTMSG = 16897 +const PT_GETFDPIC = 31 +const PT_GETFPREGS = 14 +const PT_GETFPXREGS = 18 +const PT_GETHBPREGS = 29 +const PT_GETREGS = 12 +const PT_GETSIGINFO = 16898 +const PT_GETVFPREGS = 27 +const PT_GETWMMXREGS = 18 +const PT_GET_THREAD_AREA = 22 +const PT_KILL = 8 +const PT_READ_D = 2 +const PT_READ_I = 1 +const PT_READ_U = 3 +const PT_SETCRUNCHREGS = 26 +const PT_SETFPREGS = 15 +const PT_SETFPXREGS = 19 +const PT_SETHBPREGS = 30 +const PT_SETOPTIONS = 16896 +const PT_SETREGS = 13 +const PT_SETSIGINFO = 16899 +const PT_SETVFPREGS = 28 +const PT_SETWMMXREGS = 19 +const PT_SET_SYSCALL = 23 +const PT_STEP = 9 +const PT_SYSCALL = 24 +const PT_TRACE_ME = 0 +const PT_WRITE_D = 5 +const PT_WRITE_I = 4 +const PT_WRITE_U = 6 + +type t__ptrace_peeksiginfo_args = struct { + F__ccgo_align [0]uint32 + Foff Tuint64_t + Fflags Tuint32_t + Fnr Tint32_t +} + +type t__ptrace_seccomp_metadata = struct { + F__ccgo_align [0]uint32 + Ffilter_off Tuint64_t + Fflags Tuint64_t +} + +type t__ptrace_syscall_info = struct { + F__ccgo_align [0]uint32 + Fop Tuint8_t + F__pad [3]Tuint8_t + Farch Tuint32_t + Finstruction_pointer Tuint64_t + Fstack_pointer Tuint64_t + F__ccgo5_24 struct { + F__ccgo_align [0]uint32 + Fexit [0]struct { + F__ccgo_align [0]uint32 + Frval Tint64_t + Fis_error Tuint8_t + F__ccgo_pad2 [7]byte + } + Fseccomp [0]struct { + F__ccgo_align [0]uint32 + Fnr Tuint64_t + Fargs [6]Tuint64_t + Fret_data Tuint32_t + F__ccgo_pad3 [4]byte + } + Fentry struct { + F__ccgo_align [0]uint32 + Fnr Tuint64_t + Fargs [6]Tuint64_t + } + F__ccgo_pad3 [8]byte + } +} + +type t__ptrace_rseq_configuration = struct { + F__ccgo_align [0]uint32 + Frseq_abi_pointer Tuint64_t + Frseq_abi_size Tuint32_t + Fsignature Tuint32_t + Fflags Tuint32_t + Fpad Tuint32_t +} + +func Xptrace(tls *TLS, req int32, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v req=%v va=%v, (%v:)", tls, req, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var addr, addr2, data uintptr + var ap Tva_list + var pid Tpid_t + var ret int32 + var _ /* result at bp+0 */ int32 + _, _, _, _, _, _ = addr, addr2, ap, data, pid, ret + addr2 = uintptr(0) + ap = va + pid = VaInt32(&ap) + addr = VaUintptr(&ap) + data = VaUintptr(&ap) + /* PTRACE_{READ,WRITE}{DATA,TEXT} (16...19) are specific to SPARC. */ + _ = ap + if Uint32FromInt32(req)-uint32(1) < uint32(3) { + data = bp + } + ret = X__syscall_ret(tls, Uint32FromInt32(X__syscall5(tls, int32(SYS_ptrace), req, pid, int32(addr), int32(data), int32(addr2)))) + if ret < 0 || Uint32FromInt32(req)-uint32(1) >= uint32(3) { + return ret + } + return **(**int32)(__ccgo_up(bp)) +} + +func Xpwritev2(tls *TLS, fd int32, iov uintptr, count int32, ofs Toff_t, flags int32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v iov=%v count=%v ofs=%v flags=%v, (%v:)", tls, fd, iov, count, ofs, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + if !(flags != 0) { + if ofs == int64(-int32(1)) { + return Xwritev(tls, fd, iov, count) + } + return X__syscall_ret(tls, Uint32FromInt32(___syscall_cp(tls, int32(SYS_pwritev), fd, int32(iov), count, int32(ofs), int32(ofs>>Int32FromInt32(32)), 0))) + } + return X__syscall_ret(tls, Uint32FromInt32(___syscall_cp(tls, int32(SYS_pwritev2), fd, int32(iov), count, int32(ofs), int32(ofs>>Int32FromInt32(32)), flags))) +} + +const GRPQUOTA = 1 +const IIF_ALL = 7 +const IIF_BGRACE = 1 +const IIF_FLAGS = 4 +const IIF_IGRACE = 2 +const MAXQUOTAS = 2 +const MAX_DQ_TIME = 604800 +const MAX_IQ_TIME = 604800 +const NR_DQHASH = 43 +const NR_DQUOTS = 256 +const QFMT_OCFS2 = 3 +const QFMT_VFS_OLD = 1 +const QFMT_VFS_V0 = 2 +const QFMT_VFS_V1 = 4 +const QIF_ALL = 63 +const QIF_BLIMITS = 1 +const QIF_BTIME = 16 +const QIF_ILIMITS = 4 +const QIF_INODES = 8 +const QIF_ITIME = 32 +const QIF_LIMITS = 5 +const QIF_SPACE = 2 +const QIF_TIMES = 48 +const QIF_USAGE = 10 +const QUOTAFILENAME = "quota" +const QUOTAGROUP = "staff" +const Q_GETFMT = 8388612 +const Q_GETINFO = 8388613 +const Q_GETQUOTA = 8388615 +const Q_QUOTAOFF = 8388611 +const Q_QUOTAON = 8388610 +const Q_SETINFO = 8388614 +const Q_SETQUOTA = 8388616 +const Q_SYNC = 8388609 +const SUBCMDMASK = 255 +const SUBCMDSHIFT = 8 +const USRQUOTA = 0 +const _LINUX_QUOTA_VERSION = 2 + +type Tdqblk = struct { + F__ccgo_align [0]uint32 + Fdqb_bhardlimit Tuint64_t + Fdqb_bsoftlimit Tuint64_t + Fdqb_curspace Tuint64_t + Fdqb_ihardlimit Tuint64_t + Fdqb_isoftlimit Tuint64_t + Fdqb_curinodes Tuint64_t + Fdqb_btime Tuint64_t + Fdqb_itime Tuint64_t + Fdqb_valid Tuint32_t + F__ccgo_pad9 [4]byte +} + +type Tdqinfo = struct { + F__ccgo_align [0]uint32 + Fdqi_bgrace Tuint64_t + Fdqi_igrace Tuint64_t + Fdqi_flags Tuint32_t + Fdqi_valid Tuint32_t +} + +func Xquotactl(tls *TLS, cmd int32, special uintptr, id int32, addr uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v cmd=%v special=%v id=%v addr=%v, (%v:)", tls, cmd, special, id, addr, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall4(tls, int32(SYS_quotactl), cmd, int32(special), id, int32(addr)))) +} + +func Xreadahead(tls *TLS, fd int32, pos Toff_t, len1 Tsize_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v pos=%v len1=%v, (%v:)", tls, fd, pos, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall5(tls, int32(SYS_readahead), fd, int32(Int32FromInt32(0)), int32(pos), int32(pos>>Int32FromInt32(32)), Int32FromUint32(len1)))) +} + +const RB_AUTOBOOT = 19088743 +const RB_DISABLE_CAD = 0 +const RB_ENABLE_CAD = 2309737967 +const RB_HALT_SYSTEM = 3454992675 +const RB_KEXEC = 1163412803 +const RB_POWER_OFF = 1126301404 +const RB_SW_SUSPEND = 3489725666 + +func Xreboot(tls *TLS, type1 int32) (r int32) { + if __ccgo_strace { + trc("tls=%v type1=%v, (%v:)", tls, type1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_reboot), Int32FromUint32(Uint32FromUint32(0xfee1dead)), int32(Int32FromInt32(672274793)), type1))) +} + +func Xremap_file_pages(tls *TLS, addr uintptr, size Tsize_t, prot int32, pgoff Tsize_t, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v size=%v prot=%v pgoff=%v flags=%v, (%v:)", tls, addr, size, prot, pgoff, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall5(tls, int32(SYS_remap_file_pages), int32(addr), Int32FromUint32(size), prot, Int32FromUint32(pgoff), flags))) +} + +func Xsbrk(tls *TLS, inc Tintptr_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v inc=%v, (%v:)", tls, inc, origin(2)) + defer func() { trc("-> %v", r) }() + } + if inc != 0 { + return uintptr(X__syscall_ret(tls, Uint32FromInt32(-Int32FromInt32(ENOMEM)))) + } + return uintptr(X__syscall1(tls, int32(SYS_brk), int32(Int32FromInt32(0)))) +} + +func Xsendfile(tls *TLS, out_fd int32, in_fd int32, ofs uintptr, count Tsize_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v out_fd=%v in_fd=%v ofs=%v count=%v, (%v:)", tls, out_fd, in_fd, ofs, count, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall4(tls, int32(SYS_sendfile64), out_fd, in_fd, int32(ofs), Int32FromUint32(count)))) +} + +func Xsetfsgid(tls *TLS, gid Tgid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v gid=%v, (%v:)", tls, gid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall1(tls, int32(SYS_setfsgid32), Int32FromUint32(gid)))) +} + +func Xsetfsuid(tls *TLS, uid Tuid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v uid=%v, (%v:)", tls, uid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall1(tls, int32(SYS_setfsuid32), Int32FromUint32(uid)))) +} + +func Xsethostname(tls *TLS, name uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v len1=%v, (%v:)", tls, name, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_sethostname), int32(name), Int32FromUint32(len1)))) +} + +const CLONE_CHILD_CLEARTID = 2097152 +const CLONE_CHILD_SETTID = 16777216 +const CLONE_DETACHED = 4194304 +const CLONE_FILES = 1024 +const CLONE_FS = 512 +const CLONE_IO = 2147483648 +const CLONE_NEWCGROUP = 33554432 +const CLONE_NEWIPC = 134217728 +const CLONE_NEWNET = 1073741824 +const CLONE_NEWNS = 131072 +const CLONE_NEWPID = 536870912 +const CLONE_NEWTIME = 128 +const CLONE_NEWUSER = 268435456 +const CLONE_NEWUTS = 67108864 +const CLONE_PARENT = 32768 +const CLONE_PARENT_SETTID = 1048576 +const CLONE_PIDFD = 4096 +const CLONE_PTRACE = 8192 +const CLONE_SETTLS = 524288 +const CLONE_SIGHAND = 2048 +const CLONE_SYSVSEM = 262144 +const CLONE_THREAD = 65536 +const CLONE_UNTRACED = 8388608 +const CLONE_VFORK = 16384 +const CLONE_VM = 256 +const CPU_SETSIZE = 1024 +const CSIGNAL = 255 + +type Tcpu_set_t = struct { + F__bits [32]uint32 +} + +func Xsetns(tls *TLS, fd int32, nstype int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v nstype=%v, (%v:)", tls, fd, nstype, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_setns), fd, nstype))) +} + +const __tm_gmtoff = 0 +const __tm_zone = 0 + +type Ttm1 = struct { + Ftm_sec int32 + Ftm_min int32 + Ftm_hour int32 + Ftm_mday int32 + Ftm_mon int32 + Ftm_year int32 + Ftm_wday int32 + Ftm_yday int32 + Ftm_isdst int32 + Ftm_gmtoff int32 + Ftm_zone uintptr +} + +func Xsettimeofday(tls *TLS, tv uintptr, tz uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v tv=%v tz=%v, (%v:)", tls, tv, tz, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + if !(tv != 0) { + return 0 + } + if Uint64FromInt64((*Ttimeval)(unsafe.Pointer(tv)).Ftv_usec) >= uint64(1000000) { + return X__syscall_ret(tls, Uint32FromInt32(-Int32FromInt32(EINVAL))) + } + *(*Ttimespec)(unsafe.Pointer(bp)) = Ttimespec{ + Ftv_sec: (*Ttimeval)(unsafe.Pointer(tv)).Ftv_sec, + Ftv_nsec: int32((*Ttimeval)(unsafe.Pointer(tv)).Ftv_usec * int64(1000)), + } + return Xclock_settime(tls, CLOCK_REALTIME, bp) +} + +const SFD_CLOEXEC = 524288 +const SFD_NONBLOCK = 2048 + +type Tsignalfd_siginfo = struct { + F__ccgo_align [0]uint32 + Fssi_signo Tuint32_t + Fssi_errno Tint32_t + Fssi_code Tint32_t + Fssi_pid Tuint32_t + Fssi_uid Tuint32_t + Fssi_fd Tint32_t + Fssi_tid Tuint32_t + Fssi_band Tuint32_t + Fssi_overrun Tuint32_t + Fssi_trapno Tuint32_t + Fssi_status Tint32_t + Fssi_int Tint32_t + Fssi_ptr Tuint64_t + Fssi_utime Tuint64_t + Fssi_stime Tuint64_t + Fssi_addr Tuint64_t + Fssi_addr_lsb Tuint16_t + F__pad2 Tuint16_t + Fssi_syscall Tint32_t + Fssi_call_addr Tuint64_t + Fssi_arch Tuint32_t + F__pad [28]Tuint8_t +} + +func Xsignalfd(tls *TLS, fd int32, sigs uintptr, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v sigs=%v flags=%v, (%v:)", tls, fd, sigs, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret int32 + _ = ret + ret = int32(X__syscall4(tls, int32(SYS_signalfd4), fd, int32(sigs), int32(Int32FromInt32(_NSIG)/Int32FromInt32(8)), flags)) + if ret != -int32(ENOSYS) { + return X__syscall_ret(tls, Uint32FromInt32(ret)) + } + ret = int32(X__syscall3(tls, int32(SYS_signalfd), fd, int32(sigs), int32(Int32FromInt32(_NSIG)/Int32FromInt32(8)))) + if ret >= 0 { + if flags&int32(O_CLOEXEC) != 0 { + X__syscall3(tls, int32(SYS_fcntl64), ret, int32(Int32FromInt32(F_SETFD)), int32(Int32FromInt32(FD_CLOEXEC))) + } + if flags&int32(O_NONBLOCK) != 0 { + X__syscall3(tls, int32(SYS_fcntl64), ret, int32(Int32FromInt32(F_SETFL)), int32(Int32FromInt32(O_NONBLOCK))) + } + } + return X__syscall_ret(tls, Uint32FromInt32(ret)) +} + +func Xsplice(tls *TLS, fd_in int32, off_in uintptr, fd_out int32, off_out uintptr, len1 Tsize_t, flags uint32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd_in=%v off_in=%v fd_out=%v off_out=%v len1=%v flags=%v, (%v:)", tls, fd_in, off_in, fd_out, off_out, len1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall6(tls, int32(SYS_splice), fd_in, int32(off_in), fd_out, int32(off_out), Int32FromUint32(len1), Int32FromUint32(flags)))) +} + +func Xstatx(tls *TLS, dirfd int32, path uintptr, flags int32, mask uint32, stx uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v dirfd=%v path=%v flags=%v mask=%v stx=%v, (%v:)", tls, dirfd, path, flags, mask, stx, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(160) + defer tls.Free(160) + var ret int32 + var _ /* st at bp+0 */ Tstat + _ = ret + ret = int32(X__syscall5(tls, int32(SYS_statx), dirfd, int32(path), flags, Int32FromUint32(mask), int32(stx))) + if ret != -int32(ENOSYS) { + return X__syscall_ret(tls, Uint32FromInt32(ret)) + } + ret = Xfstatat(tls, dirfd, path, bp, flags) + if ret != 0 { + return ret + } + (*Tstatx)(unsafe.Pointer(stx)).Fstx_dev_major = uint32((**(**Tstat)(__ccgo_up(bp))).Fst_dev>>Int32FromInt32(31)>>Int32FromInt32(1)&Uint64FromUint32(0xfffff000) | (**(**Tstat)(__ccgo_up(bp))).Fst_dev>>Int32FromInt32(8)&Uint64FromInt32(0x00000fff)) + (*Tstatx)(unsafe.Pointer(stx)).Fstx_dev_minor = uint32((**(**Tstat)(__ccgo_up(bp))).Fst_dev>>Int32FromInt32(12)&Uint64FromUint32(0xffffff00) | (**(**Tstat)(__ccgo_up(bp))).Fst_dev&Uint64FromInt32(0x000000ff)) + (*Tstatx)(unsafe.Pointer(stx)).Fstx_ino = (**(**Tstat)(__ccgo_up(bp))).Fst_ino + (*Tstatx)(unsafe.Pointer(stx)).Fstx_mode = uint16((**(**Tstat)(__ccgo_up(bp))).Fst_mode) + (*Tstatx)(unsafe.Pointer(stx)).Fstx_nlink = (**(**Tstat)(__ccgo_up(bp))).Fst_nlink + (*Tstatx)(unsafe.Pointer(stx)).Fstx_uid = (**(**Tstat)(__ccgo_up(bp))).Fst_uid + (*Tstatx)(unsafe.Pointer(stx)).Fstx_gid = (**(**Tstat)(__ccgo_up(bp))).Fst_gid + (*Tstatx)(unsafe.Pointer(stx)).Fstx_size = Uint64FromInt64((**(**Tstat)(__ccgo_up(bp))).Fst_size) + (*Tstatx)(unsafe.Pointer(stx)).Fstx_blksize = Uint32FromInt32((**(**Tstat)(__ccgo_up(bp))).Fst_blksize) + (*Tstatx)(unsafe.Pointer(stx)).Fstx_blocks = Uint64FromInt64((**(**Tstat)(__ccgo_up(bp))).Fst_blocks) + (*Tstatx)(unsafe.Pointer(stx)).Fstx_atime.Ftv_sec = (**(**Tstat)(__ccgo_up(bp))).Fst_atim.Ftv_sec + (*Tstatx)(unsafe.Pointer(stx)).Fstx_atime.Ftv_nsec = Uint32FromInt32((**(**Tstat)(__ccgo_up(bp))).Fst_atim.Ftv_nsec) + (*Tstatx)(unsafe.Pointer(stx)).Fstx_mtime.Ftv_sec = (**(**Tstat)(__ccgo_up(bp))).Fst_mtim.Ftv_sec + (*Tstatx)(unsafe.Pointer(stx)).Fstx_mtime.Ftv_nsec = Uint32FromInt32((**(**Tstat)(__ccgo_up(bp))).Fst_mtim.Ftv_nsec) + (*Tstatx)(unsafe.Pointer(stx)).Fstx_ctime.Ftv_sec = (**(**Tstat)(__ccgo_up(bp))).Fst_ctim.Ftv_sec + (*Tstatx)(unsafe.Pointer(stx)).Fstx_ctime.Ftv_nsec = Uint32FromInt32((**(**Tstat)(__ccgo_up(bp))).Fst_ctim.Ftv_nsec) + (*Tstatx)(unsafe.Pointer(stx)).Fstx_btime = Tstatx_timestamp{} + (*Tstatx)(unsafe.Pointer(stx)).Fstx_mask = uint32(0x7ff) + return 0 +} + +func Xstime(tls *TLS, t uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v t=%v, (%v:)", tls, t, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* tv at bp+0 */ Ttimeval + **(**Ttimeval)(__ccgo_up(bp)) = Ttimeval{ + Ftv_sec: **(**Ttime_t)(__ccgo_up(t)), + } + return Xsettimeofday(tls, bp, UintptrFromInt32(0)) +} + +const SWAP_FLAG_DISCARD = 65536 +const SWAP_FLAG_PREFER = 32768 +const SWAP_FLAG_PRIO_MASK = 32767 +const SWAP_FLAG_PRIO_SHIFT = 0 + +func Xswapon(tls *TLS, path uintptr, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v flags=%v, (%v:)", tls, path, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_swapon), int32(path), flags))) +} + +func Xswapoff(tls *TLS, path uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v, (%v:)", tls, path, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall1(tls, int32(SYS_swapoff), int32(path)))) +} + +func Xsync_file_range(tls *TLS, fd int32, pos Toff_t, len1 Toff_t, flags uint32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v pos=%v len1=%v flags=%v, (%v:)", tls, fd, pos, len1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall6(tls, int32(SYS_sync_file_range2), fd, Int32FromUint32(flags), int32(pos), int32(pos>>Int32FromInt32(32)), int32(len1), int32(len1>>Int32FromInt32(32))))) +} + +func Xsyncfs(tls *TLS, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall1(tls, int32(SYS_syncfs), fd))) +} + +func X__lsysinfo(tls *TLS, info uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v info=%v, (%v:)", tls, info, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall1(tls, int32(SYS_sysinfo), int32(info)))) +} + +func Xsysinfo(tls *TLS, info uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v info=%v, (%v:)", tls, info, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lsysinfo(tls, info) +} + +func Xtee(tls *TLS, src int32, dest int32, len1 Tsize_t, flags uint32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v src=%v dest=%v len1=%v flags=%v, (%v:)", tls, src, dest, len1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall4(tls, int32(SYS_tee), src, dest, Int32FromUint32(len1), Int32FromUint32(flags)))) +} + +const TFD_CLOEXEC = 524288 +const TFD_NONBLOCK = 2048 +const TFD_TIMER_ABSTIME = 1 +const TFD_TIMER_CANCEL_ON_SET = 2 + +func Xtimerfd_create(tls *TLS, clockid int32, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v clockid=%v flags=%v, (%v:)", tls, clockid, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_timerfd_create), clockid, flags))) +} + +func Xtimerfd_settime(tls *TLS, fd int32, flags int32, new1 uintptr, old uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v flags=%v new1=%v old=%v, (%v:)", tls, fd, flags, new1, old, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var ins, r, vns int32 + var is, vs Ttime_t + var _ /* old32 at bp+48 */ [4]int32 + _, _, _, _, _ = ins, is, r, vns, vs + is = (*Titimerspec)(unsafe.Pointer(new1)).Fit_interval.Ftv_sec + vs = (*Titimerspec)(unsafe.Pointer(new1)).Fit_value.Ftv_sec + ins = (*Titimerspec)(unsafe.Pointer(new1)).Fit_interval.Ftv_nsec + vns = (*Titimerspec)(unsafe.Pointer(new1)).Fit_value.Ftv_nsec + r = -int32(ENOSYS) + if Bool(false) || !!((Uint64FromInt64(is)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) || !!((Uint64FromInt64(vs)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) || Bool(uint32(8) > uint32(4)) && old != 0 { + *(*[4]int64)(unsafe.Pointer(bp)) = [4]int64{ + 0: is, + 1: int64(ins), + 2: vs, + 3: int64(vns), + } + r = int32(X__syscall4(tls, int32(SYS_timerfd_settime64), fd, flags, int32(bp), int32(old))) + } + if Bool(false) || r != -int32(ENOSYS) { + return X__syscall_ret(tls, Uint32FromInt32(r)) + } + if !!((Uint64FromInt64(is)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) || !!((Uint64FromInt64(vs)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) { + return X__syscall_ret(tls, Uint32FromInt32(-Int32FromInt32(EOPNOTSUPP))) + } + *(*[4]int32)(unsafe.Pointer(bp + 32)) = [4]int32{ + 0: int32(is), + 1: ins, + 2: int32(vs), + 3: vns, + } + r = int32(X__syscall4(tls, int32(SYS_timerfd_settime32), fd, flags, int32(bp+32), int32(bp+48))) + if !(r != 0) && old != 0 { + (*Titimerspec)(unsafe.Pointer(old)).Fit_interval.Ftv_sec = int64((**(**[4]int32)(__ccgo_up(bp + 48)))[0]) + (*Titimerspec)(unsafe.Pointer(old)).Fit_interval.Ftv_nsec = (**(**[4]int32)(__ccgo_up(bp + 48)))[int32(1)] + (*Titimerspec)(unsafe.Pointer(old)).Fit_value.Ftv_sec = int64((**(**[4]int32)(__ccgo_up(bp + 48)))[int32(2)]) + (*Titimerspec)(unsafe.Pointer(old)).Fit_value.Ftv_nsec = (**(**[4]int32)(__ccgo_up(bp + 48)))[int32(3)] + } + return X__syscall_ret(tls, Uint32FromInt32(r)) + return X__syscall_ret(tls, Uint32FromInt32(X__syscall4(tls, int32(SYS_timerfd_settime32), fd, flags, int32(new1), int32(old)))) +} + +func Xtimerfd_gettime(tls *TLS, fd int32, cur uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v cur=%v, (%v:)", tls, fd, cur, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var r int32 + var _ /* cur32 at bp+0 */ [4]int32 + _ = r + r = -int32(ENOSYS) + if uint32(8) > uint32(4) { + r = int32(X__syscall2(tls, int32(SYS_timerfd_gettime64), fd, int32(cur))) + } + if Bool(false) || r != -int32(ENOSYS) { + return X__syscall_ret(tls, Uint32FromInt32(r)) + } + r = int32(X__syscall2(tls, int32(SYS_timerfd_gettime32), fd, int32(bp))) + if !(r != 0) { + (*Titimerspec)(unsafe.Pointer(cur)).Fit_interval.Ftv_sec = int64((**(**[4]int32)(__ccgo_up(bp)))[0]) + (*Titimerspec)(unsafe.Pointer(cur)).Fit_interval.Ftv_nsec = (**(**[4]int32)(__ccgo_up(bp)))[int32(1)] + (*Titimerspec)(unsafe.Pointer(cur)).Fit_value.Ftv_sec = int64((**(**[4]int32)(__ccgo_up(bp)))[int32(2)]) + (*Titimerspec)(unsafe.Pointer(cur)).Fit_value.Ftv_nsec = (**(**[4]int32)(__ccgo_up(bp)))[int32(3)] + } + return X__syscall_ret(tls, Uint32FromInt32(r)) + return X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_timerfd_gettime32), fd, int32(cur)))) +} + +func Xunshare(tls *TLS, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v flags=%v, (%v:)", tls, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall1(tls, int32(SYS_unshare), flags))) +} + +func Xutimes(tls *TLS, path uintptr, times uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v times=%v, (%v:)", tls, path, times, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__futimesat(tls, -int32(100), path, times) +} + +func Xvhangup(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall0(tls, int32(SYS_vhangup)))) +} + +func Xvmsplice(tls *TLS, fd int32, iov uintptr, cnt Tsize_t, flags uint32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v iov=%v cnt=%v flags=%v, (%v:)", tls, fd, iov, cnt, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall4(tls, int32(SYS_vmsplice), fd, int32(iov), Int32FromUint32(cnt), Int32FromUint32(flags)))) +} + +const NSIG = 65 +const SA_NOMASK = 1073741824 +const SA_ONESHOT = 2147483648 +const SYS_SECCOMP = 1 +const SYS_USER_DISPATCH = 2 +const __ucontext = 0 + +type Tgreg_t = int32 + +type Tgregset_t = [18]int32 + +type Tmcontext_t1 = struct { + Ftrap_no uint32 + Ferror_code uint32 + Foldmask uint32 + Farm_r0 uint32 + Farm_r1 uint32 + Farm_r2 uint32 + Farm_r3 uint32 + Farm_r4 uint32 + Farm_r5 uint32 + Farm_r6 uint32 + Farm_r7 uint32 + Farm_r8 uint32 + Farm_r9 uint32 + Farm_r10 uint32 + Farm_fp uint32 + Farm_ip uint32 + Farm_sp uint32 + Farm_lr uint32 + Farm_pc uint32 + Farm_cpsr uint32 + Ffault_address uint32 +} + +type Tsigcontext = Tmcontext_t1 + +type Tucontext_t1 = struct { + F__ccgo_align [0]uint32 + Fuc_flags uint32 + Fuc_link uintptr + Fuc_stack Tstack_t + Fuc_mcontext Tmcontext_t1 + Fuc_sigmask Tsigset_t + Fuc_regspace [64]uint64 +} + +type Tucontext = Tucontext_t1 + +type Tsig_t = uintptr + +type Tsighandler_t = uintptr + +func Xwait3(tls *TLS, status uintptr, options int32, usage uintptr) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v status=%v options=%v usage=%v, (%v:)", tls, status, options, usage, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwait4(tls, -int32(1), status, options, usage) +} + +func Xwait4(tls *TLS, pid Tpid_t, status uintptr, options int32, ru uintptr) (r1 Tpid_t) { + if __ccgo_strace { + trc("tls=%v pid=%v status=%v options=%v ru=%v, (%v:)", tls, pid, status, options, ru, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var dest, v1 uintptr + var r int32 + var _ /* kru at bp+0 */ [4]int32 + _, _, _ = dest, r, v1 + if ru != 0 { + v1 = ru + 32 - uintptr(Uint32FromInt32(4)*Uint32FromInt64(4)) + } else { + v1 = uintptr(0) + } + dest = v1 + r = int32(X__syscall4(tls, int32(SYS_wait4), pid, int32(status), options, int32(dest))) + if r > 0 && ru != 0 && Bool(uint32(8) > uint32(4)) { + _memcpy(tls, bp, dest, Uint32FromInt32(4)*Uint32FromInt64(4)) + (*Trusage)(unsafe.Pointer(ru)).Fru_utime = Ttimeval{ + Ftv_sec: int64((**(**[4]int32)(__ccgo_up(bp)))[0]), + Ftv_usec: int64((**(**[4]int32)(__ccgo_up(bp)))[int32(1)]), + } + (*Trusage)(unsafe.Pointer(ru)).Fru_stime = Ttimeval{ + Ftv_sec: int64((**(**[4]int32)(__ccgo_up(bp)))[int32(2)]), + Ftv_usec: int64((**(**[4]int32)(__ccgo_up(bp)))[int32(3)]), + } + } + return X__syscall_ret(tls, Uint32FromInt32(r)) +} + +const XATTR_CREATE = 1 +const XATTR_REPLACE = 2 +const __UAPI_DEF_XATTR = 0 + +func Xgetxattr(tls *TLS, path uintptr, name uintptr, value uintptr, size Tsize_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v path=%v name=%v value=%v size=%v, (%v:)", tls, path, name, value, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall4(tls, int32(SYS_getxattr), int32(path), int32(name), int32(value), Int32FromUint32(size)))) +} + +func Xlgetxattr(tls *TLS, path uintptr, name uintptr, value uintptr, size Tsize_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v path=%v name=%v value=%v size=%v, (%v:)", tls, path, name, value, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall4(tls, int32(SYS_lgetxattr), int32(path), int32(name), int32(value), Int32FromUint32(size)))) +} + +func Xfgetxattr(tls *TLS, filedes int32, name uintptr, value uintptr, size Tsize_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v filedes=%v name=%v value=%v size=%v, (%v:)", tls, filedes, name, value, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall4(tls, int32(SYS_fgetxattr), filedes, int32(name), int32(value), Int32FromUint32(size)))) +} + +func Xlistxattr(tls *TLS, path uintptr, list uintptr, size Tsize_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v path=%v list=%v size=%v, (%v:)", tls, path, list, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_listxattr), int32(path), int32(list), Int32FromUint32(size)))) +} + +func Xllistxattr(tls *TLS, path uintptr, list uintptr, size Tsize_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v path=%v list=%v size=%v, (%v:)", tls, path, list, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_llistxattr), int32(path), int32(list), Int32FromUint32(size)))) +} + +func Xflistxattr(tls *TLS, filedes int32, list uintptr, size Tsize_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v filedes=%v list=%v size=%v, (%v:)", tls, filedes, list, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_flistxattr), filedes, int32(list), Int32FromUint32(size)))) +} + +func Xsetxattr(tls *TLS, path uintptr, name uintptr, value uintptr, size Tsize_t, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v name=%v value=%v size=%v flags=%v, (%v:)", tls, path, name, value, size, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall5(tls, int32(SYS_setxattr), int32(path), int32(name), int32(value), Int32FromUint32(size), flags))) +} + +func Xlsetxattr(tls *TLS, path uintptr, name uintptr, value uintptr, size Tsize_t, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v name=%v value=%v size=%v flags=%v, (%v:)", tls, path, name, value, size, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall5(tls, int32(SYS_lsetxattr), int32(path), int32(name), int32(value), Int32FromUint32(size), flags))) +} + +func Xfsetxattr(tls *TLS, filedes int32, name uintptr, value uintptr, size Tsize_t, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v filedes=%v name=%v value=%v size=%v flags=%v, (%v:)", tls, filedes, name, value, size, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall5(tls, int32(SYS_fsetxattr), filedes, int32(name), int32(value), Int32FromUint32(size), flags))) +} + +func Xremovexattr(tls *TLS, path uintptr, name uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v name=%v, (%v:)", tls, path, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_removexattr), int32(path), int32(name)))) +} + +func Xlremovexattr(tls *TLS, path uintptr, name uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v name=%v, (%v:)", tls, path, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_lremovexattr), int32(path), int32(name)))) +} + +func Xfremovexattr(tls *TLS, fd int32, name uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v name=%v, (%v:)", tls, fd, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_fremovexattr), fd, int32(name)))) +} + +func _dummy4(tls *TLS, msg uintptr, lm uintptr) (r uintptr) { + return msg +} + +func X__lctrans(tls *TLS, msg uintptr, lm uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v msg=%v lm=%v, (%v:)", tls, msg, lm, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lctrans_impl(tls, msg, lm) +} + +func X__lctrans_cur(tls *TLS, msg uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v msg=%v, (%v:)", tls, msg, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lctrans_impl(tls, msg, **(**uintptr)(__ccgo_up((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale + 5*4))) +} + +func _swapc(tls *TLS, x Tuint32_t, c int32) (r Tuint32_t) { + var v1 uint32 + _ = v1 + if c != 0 { + v1 = x>>int32(24) | x>>int32(8)&uint32(0xff00) | x< %v", r) }() + } + var b, n, o, ol, os, t, tl, ts Tuint32_t + var mo uintptr + var sign, sw int32 + _, _, _, _, _, _, _, _, _, _, _ = b, mo, n, o, ol, os, sign, sw, t, tl, ts + mo = p + sw = Int32FromUint32(**(**Tuint32_t)(__ccgo_up(mo)) - uint32(0x950412de)) + b = uint32(0) + n = _swapc(tls, **(**Tuint32_t)(__ccgo_up(mo + 2*4)), sw) + o = _swapc(tls, **(**Tuint32_t)(__ccgo_up(mo + 3*4)), sw) + t = _swapc(tls, **(**Tuint32_t)(__ccgo_up(mo + 4*4)), sw) + if n >= size/uint32(4) || o >= size-uint32(4)*n || t >= size-uint32(4)*n || (o|t)%uint32(4) != 0 { + return uintptr(0) + } + o = o / uint32(4) + t = t / uint32(4) + for { + ol = _swapc(tls, **(**Tuint32_t)(__ccgo_up(mo + uintptr(o+uint32(2)*(b+n/uint32(2)))*4)), sw) + os = _swapc(tls, **(**Tuint32_t)(__ccgo_up(mo + uintptr(o+uint32(2)*(b+n/uint32(2))+uint32(1))*4)), sw) + if os >= size || ol >= size-os || **(**uint8)(__ccgo_up(p + uintptr(os+ol))) != 0 { + return uintptr(0) + } + sign = Xstrcmp(tls, s, p+uintptr(os)) + if !(sign != 0) { + tl = _swapc(tls, **(**Tuint32_t)(__ccgo_up(mo + uintptr(t+uint32(2)*(b+n/uint32(2)))*4)), sw) + ts = _swapc(tls, **(**Tuint32_t)(__ccgo_up(mo + uintptr(t+uint32(2)*(b+n/uint32(2))+uint32(1))*4)), sw) + if ts >= size || tl >= size-ts || **(**uint8)(__ccgo_up(p + uintptr(ts+tl))) != 0 { + return uintptr(0) + } + return p + uintptr(ts) + } else { + if n == uint32(1) { + return uintptr(0) + } else { + if sign < 0 { + n = n / uint32(2) + } else { + b = b + n/uint32(2) + n = n - n/uint32(2) + } + } + } + goto _1 + _1: + } + return uintptr(0) +} + +const __USE_GNU_GETTEXT = 1 + +func Xbind_textdomain_codeset(tls *TLS, domainname uintptr, codeset uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v domainname=%v codeset=%v, (%v:)", tls, domainname, codeset, origin(2)) + defer func() { trc("-> %v", r) }() + } + if codeset != 0 && Xstrcasecmp(tls, codeset, __ccgo_ts+322) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + } + return UintptrFromInt32(0) +} + +var _empty_mo = [5]Tuint32_t{ + 0: uint32(0x950412de), + 2: Uint32FromInt32(-Int32FromInt32(1)), + 3: Uint32FromInt32(-Int32FromInt32(1)), + 4: Uint32FromInt32(-Int32FromInt32(1)), +} + +const NL_CAT_LOCALE = 1 +const NL_SETD = 1 + +type Tnl_item = int32 + +type Tnl_catd = uintptr + +func Xcatclose(tls *TLS, catd Tnl_catd) (r int32) { + if __ccgo_strace { + trc("tls=%v catd=%v, (%v:)", tls, catd, origin(2)) + defer func() { trc("-> %v", r) }() + } + var map1 uintptr + var v1, v2 Tuint32_t + _, _, _ = map1, v1, v2 + map1 = catd + v1 = **(**Tuint32_t)(__ccgo_up(map1 + UintptrFromInt32(8))) + v2 = v1>>int32(24) | v1>>int32(8)&uint32(0xff00) | v1<>int32(24) | v1>>int32(8)&uint32(0xff00) | v1<>int32(24) | v4>>int32(8)&uint32(0xff00) | v4< y { + v8 = int32(1) + } else { + v8 = 0 + } + v7 = v8 + } + return v7 +} + +func Xcatgets(tls *TLS, catd Tnl_catd, set_id int32, msg_id int32, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v catd=%v set_id=%v msg_id=%v s=%v, (%v:)", tls, catd, set_id, msg_id, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var map1, msg, msgs, set, sets, strings uintptr + var nmsgs, nsets, v1, v10, v11, v13, v14, v2, v4, v5, v7, v8 Tuint32_t + var _ /* msg_id_be at bp+4 */ Tuint32_t + var _ /* set_id_be at bp+0 */ Tuint32_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = map1, msg, msgs, nmsgs, nsets, set, sets, strings, v1, v10, v11, v13, v14, v2, v4, v5, v7, v8 + map1 = catd + v1 = **(**Tuint32_t)(__ccgo_up(map1 + UintptrFromInt32(4))) + v2 = v1>>int32(24) | v1>>int32(8)&uint32(0xff00) | v1<>int32(24) | v4>>int32(8)&uint32(0xff00) | v4<>int32(24) | v7>>int32(8)&uint32(0xff00) | v7<>int32(24) | v10>>int32(8)&uint32(0xff00) | v10<>int32(24) | v13>>int32(8)&uint32(0xff00) | v13<>int32(24) | v1>>int32(8)&uint32(0xff00) | v1<>int32(24) | v4>>int32(8)&uint32(0xff00) | v4<>int32(24) | v1>>int32(8)&uint32(0xff00) | v1<>int32(24) | v1>>int32(8)&uint32(0xff00) | v1<>int32(24) | v5>>int32(8)&uint32(0xff00) | v5< %v", r) }() + } + bp := tls.Alloc(4096) + defer tls.Free(4096) + var catd Tnl_catd + var i, l Tsize_t + var lang, p, path, v, z, v1 uintptr + var v2 bool + var _ /* buf at bp+0 */ [4096]uint8 + _, _, _, _, _, _, _, _, _, _ = catd, i, l, lang, p, path, v, z, v1, v2 + if Xstrchr(tls, name, int32('/')) != 0 { + return _do_catopen(tls, name) + } + if v2 = X__libc.Fsecure != 0; !v2 { + v1 = Xgetenv(tls, __ccgo_ts+328) + path = v1 + } + if v2 || !(v1 != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOENT) + return uintptr(-Int32FromInt32(1)) + } + if oflag != 0 { + v1 = Xnl_langinfo(tls, Int32FromInt32(LC_MESSAGES)<= uint32(4096)-i { + break + } + _memcpy(tls, bp+uintptr(i), v, l) + i = i + l + goto _5 + _5: + ; + p = p + 1 + } + if !(**(**uint8)(__ccgo_up(z)) != 0) && (p < z || !(i != 0)) { + break + } + if p < z { + goto _4 + } + if **(**uint8)(__ccgo_up(z)) != 0 { + z = z + 1 + } + (**(**[4096]uint8)(__ccgo_up(bp)))[i] = uint8(0) + /* Leading : or :: in NLSPATH is same as %N */ + if i != 0 { + v1 = bp + } else { + v1 = name + } + catd = _do_catopen(tls, v1) + if catd != uintptr(-Int32FromInt32(1)) { + return catd + } + goto _4 + _4: + ; + p = z + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOENT) + return uintptr(-Int32FromInt32(1)) +} + +const calloc = 0 +const free = 0 +const malloc = 0 +const realloc = 0 + +type Tbinding = struct { + Fnext uintptr + Fdirlen int32 + Factive int32 + Fdomainname uintptr + Fdirname uintptr +} + +var _bindings uintptr + +func _gettextdir(tls *TLS, domainname uintptr, dirlen uintptr) (r uintptr) { + var p uintptr + _ = p + p = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_bindings))) + for { + if !(p != 0) { + break + } + if !(Xstrcmp(tls, (*Tbinding)(unsafe.Pointer(p)).Fdomainname, domainname) != 0) && AtomicLoadPInt32(p+8) != 0 { + **(**Tsize_t)(__ccgo_up(dirlen)) = Uint32FromInt32((*Tbinding)(unsafe.Pointer(p)).Fdirlen) + return (*Tbinding)(unsafe.Pointer(p)).Fdirname + } + goto _1 + _1: + ; + p = (*Tbinding)(unsafe.Pointer(p)).Fnext + } + return uintptr(0) +} + +var _lock1 [1]int32 + +func Xbindtextdomain(tls *TLS, domainname uintptr, dirname uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v domainname=%v dirname=%v, (%v:)", tls, domainname, dirname, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var dirlen, domlen Tsize_t + var old, v4 int32 + var p3, q, v3 uintptr + _, _, _, _, _, _, _ = dirlen, domlen, old, p3, q, v3, v4 + if !(domainname != 0) { + return uintptr(0) + } + if !(dirname != 0) { + *(*Tsize_t)(unsafe.Pointer(bp)) = uint32(0) + return _gettextdir(tls, domainname, bp) + } + domlen = Xstrnlen(tls, domainname, Uint32FromInt32(Int32FromInt32(NAME_MAX)+Int32FromInt32(1))) + dirlen = Xstrnlen(tls, dirname, uint32(PATH_MAX)) + if domlen > uint32(NAME_MAX) || dirlen >= uint32(PATH_MAX) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(0) + } + ___lock(tls, uintptr(unsafe.Pointer(&_lock1))) + p3 = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_bindings))) + for { + if !(p3 != 0) { + break + } + if !(Xstrcmp(tls, (*Tbinding)(unsafe.Pointer(p3)).Fdomainname, domainname) != 0) && !(Xstrcmp(tls, (*Tbinding)(unsafe.Pointer(p3)).Fdirname, dirname) != 0) { + break + } + goto _1 + _1: + ; + p3 = (*Tbinding)(unsafe.Pointer(p3)).Fnext + } + if !(p3 != 0) { + p3 = Xcalloc(tls, uint32(20)+domlen+dirlen+uint32(2), uint32(1)) + if !(p3 != 0) { + ___unlock(tls, uintptr(unsafe.Pointer(&_lock1))) + return uintptr(0) + } + (*Tbinding)(unsafe.Pointer(p3)).Fnext = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_bindings))) + (*Tbinding)(unsafe.Pointer(p3)).Fdirlen = Int32FromUint32(dirlen) + (*Tbinding)(unsafe.Pointer(p3)).Fdomainname = p3 + 20 + (*Tbinding)(unsafe.Pointer(p3)).Fdirname = p3 + 20 + uintptr(domlen) + uintptr(1) + _memcpy(tls, (*Tbinding)(unsafe.Pointer(p3)).Fdomainname, domainname, domlen+uint32(1)) + _memcpy(tls, (*Tbinding)(unsafe.Pointer(p3)).Fdirname, dirname, dirlen+uint32(1)) + v3 = uintptr(unsafe.Pointer(&_bindings)) + _a_barrier(tls) + for cond := true; cond; cond = old == int32(AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_bindings)))) && !(_a_sc(tls, v3, int32(p3)) != 0) { + old = _a_ll(tls, v3) + } + _a_barrier(tls) + v4 = old + goto _5 + _5: + _ = uintptr(v4) + goto _2 + _2: + } + _a_barrier(tls) + AtomicStorePInt32(p3+8, int32(1)) + _a_barrier(tls) + q = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_bindings))) + for { + if !(q != 0) { + break + } + if !(Xstrcmp(tls, (*Tbinding)(unsafe.Pointer(q)).Fdomainname, domainname) != 0) && q != p3 { + _a_barrier(tls) + AtomicStorePInt32(q+8, 0) + _a_barrier(tls) + } + goto _6 + _6: + ; + q = (*Tbinding)(unsafe.Pointer(q)).Fnext + } + ___unlock(tls, uintptr(unsafe.Pointer(&_lock1))) + return (*Tbinding)(unsafe.Pointer(p3)).Fdirname +} + +var _catnames = [6][12]uint8{ + 0: {'L', 'C', '_', 'C', 'T', 'Y', 'P', 'E'}, + 1: {'L', 'C', '_', 'N', 'U', 'M', 'E', 'R', 'I', 'C'}, + 2: {'L', 'C', '_', 'T', 'I', 'M', 'E'}, + 3: {'L', 'C', '_', 'C', 'O', 'L', 'L', 'A', 'T', 'E'}, + 4: {'L', 'C', '_', 'M', 'O', 'N', 'E', 'T', 'A', 'R', 'Y'}, + 5: {'L', 'C', '_', 'M', 'E', 'S', 'S', 'A', 'G', 'E', 'S'}, +} + +var _catlens = [6]uint8{ + 0: uint8(8), + 1: uint8(10), + 2: uint8(7), + 3: uint8(10), + 4: uint8(11), + 5: uint8(11), +} + +type Tmsgcat = struct { + Fnext uintptr + Fmap1 uintptr + Fmap_size Tsize_t + Fplural_rule uintptr + Fnplurals int32 + Fbinding uintptr + Flm uintptr + Fcat int32 +} + +func _dummy_gettextdomain(tls *TLS) (r uintptr) { + return __ccgo_ts + 350 +} + +func Xdcngettext(tls *TLS, domainname uintptr, msgid1 uintptr, msgid2 uintptr, n uint32, category int32) (r1 uintptr) { + if __ccgo_strace { + trc("tls=%v domainname=%v msgid1=%v msgid2=%v n=%v category=%v, (%v:)", tls, domainname, msgid1, msgid2, n, category, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(80) + defer tls.Free(80) + var alt_modlen, catlen, dirlen, domlen, l, loclen, modlen, rem, v5 Tsize_t + var catname, csp, dirname, lm, loc, locname, locp, map1, modname, name, old_cats, p2, q, r, rule, trans, v3, v8 uintptr + var np, plural, v23 uint32 + var old, old_errno, v11, v12 int32 + var v6 t__predefined_size_t + var _ /* map_size at bp+0 */ Tsize_t + var _ /* z at bp+4 */ uintptr + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = alt_modlen, catlen, catname, csp, dirlen, dirname, domlen, l, lm, loc, loclen, locname, locp, map1, modlen, modname, name, np, old, old_cats, old_errno, p2, plural, q, r, rem, rule, trans, v11, v12, v23, v3, v5, v6, v8 + defer func() { Xrealloc(tls, name, 0) }() + loc = (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale + old_errno = **(**int32)(__ccgo_up(X__errno_location(tls))) + /* match gnu gettext behaviour */ + if !(msgid1 != 0) { + goto notrans + } + if Uint32FromInt32(category) >= uint32(LC_ALL) { + goto notrans + } + if !(domainname != 0) { + domainname = X__gettextdomain(tls) + } + domlen = Xstrnlen(tls, domainname, Uint32FromInt32(Int32FromInt32(NAME_MAX)+Int32FromInt32(1))) + if domlen > uint32(NAME_MAX) { + goto notrans + } + q = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_bindings))) + for { + if !(q != 0) { + break + } + if !(Xstrcmp(tls, (*Tbinding)(unsafe.Pointer(q)).Fdomainname, domainname) != 0) && AtomicLoadPInt32(q+8) != 0 { + break + } + goto _1 + _1: + ; + q = (*Tbinding)(unsafe.Pointer(q)).Fnext + } + if !(q != 0) { + goto notrans + } + lm = **(**uintptr)(__ccgo_up(loc + uintptr(category)*4)) + if !!(lm != 0) { + goto _2 + } + goto notrans +notrans: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = old_errno + if n == uint32(1) { + v3 = msgid1 + } else { + v3 = msgid2 + } + return v3 +_2: + ; + p2 = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_cats))) + for { + if !(p2 != 0) { + break + } + if (*Tmsgcat)(unsafe.Pointer(p2)).Fbinding == q && (*Tmsgcat)(unsafe.Pointer(p2)).Flm == lm && (*Tmsgcat)(unsafe.Pointer(p2)).Fcat == category { + break + } + goto _4 + _4: + ; + p2 = (*Tmsgcat)(unsafe.Pointer(p2)).Fnext + } + if !(p2 != 0) { + dirname = (*Tbinding)(unsafe.Pointer(q)).Fdirname + locname = lm + 8 + catname = uintptr(unsafe.Pointer(&_catnames)) + uintptr(category)*12 + dirlen = Uint32FromInt32((*Tbinding)(unsafe.Pointer(q)).Fdirlen) + loclen = _strlen(tls, locname) + catlen = uint32(_catlens[category]) + /* Logically split @mod suffix from locale name. */ + modname = Xmemchr(tls, locname, int32('@'), loclen) + if !(modname != 0) { + modname = locname + uintptr(loclen) + } + v5 = loclen - Uint32FromInt32(int32(modname)-int32(locname)) + modlen = v5 + alt_modlen = v5 + loclen = Uint32FromInt32(int32(modname) - int32(locname)) + /* Drop .charset identifier; it is not used. */ + csp = Xmemchr(tls, locname, int32('.'), loclen) + if csp != 0 { + loclen = Uint32FromInt32(int32(csp) - int32(locname)) + } + v6 = dirlen + uint32(1) + loclen + modlen + uint32(1) + catlen + uint32(1) + domlen + uint32(3) + uint32(1) + name = Xrealloc(tls, name, v6) + for { + Xsnprintf(tls, name, v6, __ccgo_ts+359, VaList(bp+16, dirname, Int32FromUint32(loclen), locname, Int32FromUint32(alt_modlen), modname, catname, domainname)) + v3 = X__map_file(tls, name, bp) + map1 = v3 + if v3 != 0 { + break + } + /* Try dropping @mod, _YY, then both. */ + if alt_modlen != 0 { + alt_modlen = uint32(0) + } else { + v3 = Xmemchr(tls, locname, int32('_'), loclen) + locp = v3 + if v3 != 0 { + loclen = Uint32FromInt32(int32(locp) - int32(locname)) + alt_modlen = modlen + } else { + break + } + } + goto _7 + _7: + } + if !(map1 != 0) { + goto notrans + } + p2 = Xcalloc(tls, uint32(32), uint32(1)) + if !(p2 != 0) { + X__munmap(tls, map1, **(**Tsize_t)(__ccgo_up(bp))) + goto notrans + } + (*Tmsgcat)(unsafe.Pointer(p2)).Fcat = category + (*Tmsgcat)(unsafe.Pointer(p2)).Fbinding = q + (*Tmsgcat)(unsafe.Pointer(p2)).Flm = lm + (*Tmsgcat)(unsafe.Pointer(p2)).Fmap1 = map1 + (*Tmsgcat)(unsafe.Pointer(p2)).Fmap_size = **(**Tsize_t)(__ccgo_up(bp)) + rule = __ccgo_ts + 381 + np = uint32(2) + r = X__mo_lookup(tls, (*Tmsgcat)(unsafe.Pointer(p2)).Fmap1, (*Tmsgcat)(unsafe.Pointer(p2)).Fmap_size, __ccgo_ts) + for r != 0 && Xstrncmp(tls, r, __ccgo_ts+387, uint32(13)) != 0 { + **(**uintptr)(__ccgo_up(bp + 4)) = Xstrchr(tls, r, int32('\n')) + if **(**uintptr)(__ccgo_up(bp + 4)) != 0 { + v3 = **(**uintptr)(__ccgo_up(bp + 4)) + uintptr(1) + } else { + v3 = uintptr(0) + } + r = v3 + } + if r != 0 { + r = r + uintptr(13) + for { + v11 = Int32FromUint8(**(**uint8)(__ccgo_up(r))) + v12 = BoolInt32(v11 == int32(' ') || Uint32FromInt32(v11)-uint32('\t') < uint32(5)) + goto _13 + _13: + if !(v12 != 0) { + break + } + r = r + 1 + } + if !(Xstrncmp(tls, r, __ccgo_ts+401, uint32(9)) != 0) { + np = Xstrtoul(tls, r+uintptr(9), bp+4, int32(10)) + r = **(**uintptr)(__ccgo_up(bp + 4)) + } + for **(**uint8)(__ccgo_up(r)) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(r))) != int32(';') { + r = r + 1 + } + if **(**uint8)(__ccgo_up(r)) != 0 { + r = r + 1 + for { + v11 = Int32FromUint8(**(**uint8)(__ccgo_up(r))) + v12 = BoolInt32(v11 == int32(' ') || Uint32FromInt32(v11)-uint32('\t') < uint32(5)) + goto _16 + _16: + if !(v12 != 0) { + break + } + r = r + 1 + } + if !(Xstrncmp(tls, r, __ccgo_ts+411, uint32(7)) != 0) { + rule = r + uintptr(7) + } + } + } + (*Tmsgcat)(unsafe.Pointer(p2)).Fnplurals = Int32FromUint32(np) + (*Tmsgcat)(unsafe.Pointer(p2)).Fplural_rule = rule + for { + old_cats = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_cats))) + (*Tmsgcat)(unsafe.Pointer(p2)).Fnext = old_cats + goto _22 + _22: + ; + v8 = uintptr(unsafe.Pointer(&_cats)) + _a_barrier(tls) + for cond := true; cond; cond = old == int32(old_cats) && !(_a_sc(tls, v8, int32(p2)) != 0) { + old = _a_ll(tls, v8) + } + _a_barrier(tls) + v11 = old + goto _21 + _21: + v3 = uintptr(v11) + goto _18 + _18: + ; + if !(v3 != old_cats) { + break + } + } + } + trans = X__mo_lookup(tls, (*Tmsgcat)(unsafe.Pointer(p2)).Fmap1, (*Tmsgcat)(unsafe.Pointer(p2)).Fmap_size, msgid1) + if !(trans != 0) { + goto notrans + } + /* Non-plural-processing gettext forms pass a null pointer as + * msgid2 to request that dcngettext suppress plural processing. */ + if msgid2 != 0 && (*Tmsgcat)(unsafe.Pointer(p2)).Fnplurals != 0 { + plural = X__pleval(tls, (*Tmsgcat)(unsafe.Pointer(p2)).Fplural_rule, n) + if plural > Uint32FromInt32((*Tmsgcat)(unsafe.Pointer(p2)).Fnplurals) { + goto notrans + } + for { + v23 = plural + plural = plural - 1 + if !(v23 != 0) { + break + } + rem = (*Tmsgcat)(unsafe.Pointer(p2)).Fmap_size - Uint32FromInt32(int32(trans)-int32((*Tmsgcat)(unsafe.Pointer(p2)).Fmap1)) + l = Xstrnlen(tls, trans, rem) + if l+uint32(1) >= rem { + goto notrans + } + trans = trans + uintptr(l+uint32(1)) + } + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = old_errno + return trans +} + +var _cats uintptr + +func Xdcgettext(tls *TLS, domainname uintptr, msgid uintptr, category int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v domainname=%v msgid=%v category=%v, (%v:)", tls, domainname, msgid, category, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xdcngettext(tls, domainname, msgid, uintptr(0), uint32(1), category) +} + +func Xdngettext(tls *TLS, domainname uintptr, msgid1 uintptr, msgid2 uintptr, n uint32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v domainname=%v msgid1=%v msgid2=%v n=%v, (%v:)", tls, domainname, msgid1, msgid2, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xdcngettext(tls, domainname, msgid1, msgid2, n, int32(LC_MESSAGES)) +} + +func Xdgettext(tls *TLS, domainname uintptr, msgid uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v domainname=%v msgid=%v, (%v:)", tls, domainname, msgid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xdcngettext(tls, domainname, msgid, uintptr(0), uint32(1), int32(LC_MESSAGES)) +} + +func X__duplocale(tls *TLS, old Tlocale_t) (r Tlocale_t) { + if __ccgo_strace { + trc("tls=%v old=%v, (%v:)", tls, old, origin(2)) + defer func() { trc("-> %v", r) }() + } + var new1 Tlocale_t + _ = new1 + new1 = Xmalloc(tls, uint32(24)) + if !(new1 != 0) { + return uintptr(0) + } + if old == uintptr(-Int32FromInt32(1)) { + old = uintptr(unsafe.Pointer(&X__libc)) + 32 + } + **(**t__locale_struct)(__ccgo_up(new1)) = **(**t__locale_struct)(__ccgo_up(old)) + return new1 +} + +func Xduplocale(tls *TLS, old Tlocale_t) (r Tlocale_t) { + if __ccgo_strace { + trc("tls=%v old=%v, (%v:)", tls, old, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__duplocale(tls, old) +} + +func Xfreelocale(tls *TLS, l Tlocale_t) { + if __ccgo_strace { + trc("tls=%v l=%v, (%v:)", tls, l, origin(2)) + } + if X__loc_is_allocated(tls, l) != 0 { + Xfree(tls, l) + } +} + +func X__freelocale(tls *TLS, l Tlocale_t) { + if __ccgo_strace { + trc("tls=%v l=%v, (%v:)", tls, l, origin(2)) + } + Xfreelocale(tls, l) +} + +const BIG5 = 224 +const EUC_JP = 208 +const EUC_KR = 232 +const GB18030 = 216 +const GB2312 = 218 +const GBK = 217 +const ISO2022_JP = 210 +const SHIFT_JIS = 209 +const UCS2 = 204 +const UCS2BE = 196 +const UCS2LE = 197 +const US_ASCII = 199 +const UTF_16 = 202 +const UTF_16BE = 194 +const UTF_16LE = 193 +const UTF_32 = 203 +const UTF_32BE = 192 +const UTF_32LE = 195 +const UTF_8 = 200 +const WCHAR_T = 198 +const mbrtowc_utf8 = 0 +const wctomb_utf8 = 0 + +type Ticonv_t = uintptr + +/* Definitions of charmaps. Each charmap consists of: + * 1. Empty-string-terminated list of null-terminated aliases. + * 2. Special type code or number of elided quads of entries. + * 3. Character table (size determined by field 2), consisting + * of 5 bytes for every 4 characters, interpreted as 10-bit + * indices into the legacy_chars table. */ + +var _charmaps = [4907]uint8{'u', 't', 'f', '8', 0, 'c', 'h', 'a', 'r', 0, 0, 200, 'w', 'c', 'h', 'a', 'r', 't', 0, 0, 198, 'u', 'c', 's', '2', 'b', 'e', 0, 0, 196, 'u', 'c', 's', '2', 'l', 'e', 0, 0, 197, 'u', 't', 'f', '1', '6', 'b', 'e', 0, 0, 194, 'u', 't', 'f', '1', '6', 'l', 'e', 0, 0, 193, 'u', 'c', 's', '4', 'b', 'e', 0, 'u', 't', 'f', '3', '2', 'b', 'e', 0, 0, 192, 'u', 'c', 's', '4', 'l', 'e', 0, 'u', 't', 'f', '3', '2', 'l', 'e', 0, 0, 195, 'a', 's', 'c', 'i', 'i', 0, 'u', 's', 'a', 's', 'c', 'i', 'i', 0, 'i', 's', 'o', '6', '4', '6', 0, 'i', 's', 'o', '6', '4', '6', 'u', 's', 0, 0, 199, 'u', 't', 'f', '1', '6', 0, 0, 202, 'u', 'c', 's', '4', 0, 'u', 't', 'f', '3', '2', 0, 0, 203, 'u', 'c', 's', '2', 0, 0, 204, 'e', 'u', 'c', 'j', 'p', 0, 0, 208, 's', 'h', 'i', 'f', 't', 'j', 'i', 's', 0, 's', 'j', 'i', 's', 0, 'c', 'p', '9', '3', '2', 0, 0, 209, 'i', 's', 'o', '2', '0', '2', '2', 'j', 'p', 0, 0, 210, 'g', 'b', '1', '8', '0', '3', '0', 0, 0, 216, 'g', 'b', 'k', 0, 'c', 'p', '9', '3', '6', 0, 'w', 'i', 'n', 'd', 'o', 'w', 's', '9', '3', '6', 0, 0, 217, 'g', 'b', '2', '3', '1', '2', 0, 0, 218, 'b', 'i', 'g', '5', 0, 'b', 'i', 'g', 'f', 'i', 'v', 'e', 0, 'c', 'p', '9', '5', '0', 0, 'b', 'i', 'g', '5', 'h', 'k', 's', 'c', 's', 0, 0, 224, 'e', 'u', 'c', 'k', 'r', 0, 'k', 's', 'c', '5', '6', '0', '1', 0, 'k', 's', 'x', '1', '0', '0', '1', 0, 'c', 'p', '9', '4', '9', 0, 0, 232, 'i', 's', 'o', '8', '8', '5', '9', '1', 0, 'l', 'a', 't', 'i', 'n', '1', 0, 0, '@', 'i', 's', 'o', '8', '8', '5', '9', '2', 0, 0, '(', 160, 16, 244, 'W', 'N', 164, 220, 244, 212, ')', 168, 'T', '5', 'U', 'V', 'n', 181, '"', 23, '\\', 176, 20, 20, 152, 'N', 180, 224, 4, 149, '_', 184, 'X', 'E', 149, 'V', 'o', 13, '6', 'W', '\\', 'I', 5, '#', 140, '@', 196, 204, 'd', 208, '1', 12, '%', 'c', 209, '2', 24, '5', 227, 140, 'C', 16, 237, 244, 211, '4', 212, 20, 'e', 205, '5', 'M', 141, 165, 'M', 'Y', 220, 't', 's', 213, '7', 'J', 133, '#', 206, '@', 228, 208, 't', 208, '9', 13, 165, 's', 209, ':', 25, 181, 227, 206, 'C', 17, 241, 4, 212, '<', 244, 24, 'e', 207, '=', 'N', 145, 165, 143, 'Y', 252, 244, 131, 21, '`', 'i', 's', 'o', '8', '8', '5', '9', '3', 0, 0, '(', 160, 144, 244, 215, '(', 164, 0, ' ', 210, ')', 168, 176, '4', 21, 'G', '.', 181, 2, 0, '\\', 176, 148, '$', 203, ',', 180, 212, '2', 210, '-', 184, 180, 'D', 'U', 'G', '/', 245, 2, '@', '\\', 192, 4, '#', 12, 0, 196, '(', 132, 208, '1', 200, '$', 163, 204, '2', 204, '4', 227, 204, '3', 0, 'D', '#', 205, '4', 212, 'x', 'd', 205, '5', 26, 'e', 163, 205, '6', 220, 132, 21, 213, '7', 224, 132, '#', 14, 0, 228, ',', 148, 208, '9', 232, 164, 163, 206, ':', 236, 180, 227, 206, ';', 0, 196, '#', 207, '<', 244, '|', 'd', 207, '=', 27, 229, 163, 207, '>', 252, 136, '%', 21, '`', 'i', 's', 'o', '8', '8', '5', '9', '4', 0, 0, '(', 160, 16, '$', 211, 'R', 164, 152, 'T', 211, ')', 168, 'T', '%', 17, 'H', '[', 181, '"', 215, '+', 176, 20, 20, 24, 'S', 180, 156, 'd', 147, '_', 184, 'X', '5', 'Q', 'H', '\\', 5, '5', 151, 'P', 0, 5, '#', 204, '0', 196, 20, 'c', 140, 'J', 12, '%', 'c', 209, '2', 20, '5', 227, 12, 'J', 16, 245, '4', 20, 'L', 212, 'T', 'c', 205, '5', 216, 156, 165, 205, '6', 220, 't', 245, 213, '7', 1, 133, '#', 206, '8', 228, 148, 'c', 206, 'J', 13, 165, 's', 209, ':', 21, 181, 227, 'N', 'J', 17, 249, 'D', 'T', 'L', 244, 212, 'c', 207, '=', 248, 160, 165, 207, '>', 252, 'x', 5, 22, '`', 'i', 's', 'o', '8', '8', '5', '9', '5', 0, 0, '(', 160, 'D', '\'', 221, 't', 212, 'U', 'g', 221, 'u', 216, 'e', 167, 221, 'v', 220, 181, 210, 157, 'w', 223, 129, 23, 158, 'x', 227, 145, 'W', 158, 'y', 231, 161, 151, 158, 'z', 235, 177, 215, 158, '{', 239, 193, 23, 159, '|', 243, 209, 'W', 159, '}', 247, 225, 151, 159, '~', 251, 241, 215, 159, 127, 255, 1, 24, 160, 128, 3, 18, 'X', 160, 129, 7, '"', 152, 160, 130, 11, '2', 216, 160, 131, 15, 'B', 24, 161, 132, 19, 'R', 'X', 161, 133, 23, 'b', 152, 161, 134, 27, 'r', 216, 161, 135, '&', 127, 8, 'b', 136, '"', 142, 'H', 'b', 137, '&', 158, 136, 'b', 138, '*', 158, 178, '"', 139, 'i', 's', 'o', '8', '8', '5', '9', '6', 0, 0, '(', 160, 0, 0, 0, 0, 164, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'b', 182, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 192, 152, 0, 0, 0, 0, 153, 0, 148, 'i', 230, 153, 'h', 166, 169, 230, 154, 'l', 182, 233, 230, 155, 'p', 198, ')', 231, 156, 't', 214, 'i', 231, 157, 'x', 230, 169, 231, 158, '|', 246, 233, '\'', 0, 0, 0, 0, 0, 0, 127, 2, 26, 168, 160, 131, 18, 'Z', 168, 161, 135, '"', 154, 168, 162, 139, '2', 218, 168, 163, 143, 'B', 26, ')', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'i', 's', 'o', '8', '8', '5', '9', '7', 0, 0, '(', 160, 'L', 'L', 241, '(', '$', 151, 'l', 202, ')', 168, 164, 146, 216, '*', 172, 180, 2, '@', 196, 176, 196, '"', 203, ',', 138, '-', 198, 216, '-', 141, '9', 246, 216, '.', 144, 245, 18, 153, 'd', 147, 'Q', 'V', 153, 'e', 151, 'a', 150, 153, 'f', 155, 'q', 214, 153, 'g', 159, 129, 22, 154, 'h', 163, 145, 6, '@', 'i', 166, 157, 134, 'Z', 'j', 170, 173, 198, 'Z', 'k', 174, 189, 6, '[', 'l', 178, 205, 'F', '[', 'm', 182, 221, 134, '[', 'n', 186, 237, 198, '[', 'o', 190, 253, 6, '\\', 'p', 194, 13, 'G', '\\', 'q', 198, 29, 135, '\\', 'r', 202, '-', 199, '\\', 's', 206, '=', 7, 29, 0, 'i', 's', 'o', '8', '8', '5', '9', '8', 0, 0, '(', 160, 0, ' ', 202, '(', 164, 148, 'b', 202, ')', 168, 164, 'r', 205, '*', 172, 180, 226, 202, '+', 176, 196, '"', 203, ',', 180, 212, 'b', 203, '-', 184, 228, 'r', 207, '.', 188, 244, 226, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 128, 196, 'B', 14, 'I', 'd', 145, 'F', 30, 137, 'd', 146, 'J', '.', 201, 'd', 147, 'N', '>', 9, 'e', 148, 'R', 'N', 'I', 'e', 149, 'V', '^', 137, 'e', 150, 'Z', 'n', 201, '%', 0, 0, '4', 236, '0', 0, 'i', 's', 'o', '8', '8', '5', '9', '9', 0, 0, '4', 28, 'E', '#', 205, '4', 212, 'T', 'c', 205, '5', 216, 'd', 163, 205, '6', 220, 176, '4', 213, '7', 224, 132, '#', 206, '8', 228, 148, 'c', 206, '9', 232, 164, 163, 206, ':', 236, 180, 227, 206, ';', 29, 197, '#', 207, '<', 244, 212, 'c', 207, '=', 248, 228, 163, 207, '>', 252, 180, 'D', 213, '?', 'i', 's', 'o', '8', '8', '5', '9', '1', '0', 0, 0, '(', 160, 16, '$', 17, 'H', '(', 153, 4, 211, ')', '5', 'A', 'T', 213, 'V', 'r', 181, 242, 'U', 'P', 176, 20, '4', 'Q', 'H', ')', 157, 20, 211, '-', '6', 'E', 'd', 21, 'W', 's', 'E', 12, 150, 'P', 0, 5, '#', 204, '0', 196, 20, 'c', 140, 'J', 12, '%', 'c', 209, '2', 20, '5', 227, 204, '3', 208, 244, '4', 212, '4', 212, 'T', 'c', 'M', 'W', 216, 156, 165, 205, '6', 220, 't', 227, 205, '7', 1, 133, '#', 206, '8', 228, 148, 'c', 206, 'J', 13, 165, 's', 209, ':', 21, 181, 227, 206, ';', 240, 248, 'D', 212, '<', 244, 212, 'c', 143, 'W', 248, 160, 165, 207, '>', 252, 244, 227, 143, 'L', 'i', 's', 'o', '8', '8', '5', '9', '1', '1', 0, 't', 'i', 's', '6', '2', '0', 0, 0, '(', 160, 'x', 250, ')', 168, 161, 138, ':', '*', 169, 165, 154, 'z', '*', 170, 169, 170, 186, '*', 171, 173, 186, 250, '*', 172, 177, 202, ':', '+', 173, 181, 218, 'z', '+', 174, 185, 234, 186, '+', 175, 189, 250, 250, '+', 176, 193, 10, ';', ',', 177, 197, 26, '{', ',', 178, 201, '*', 187, ',', 179, 205, ':', 251, ',', 180, 209, 'J', ';', '-', 181, 213, 'Z', '{', '-', 0, 0, 0, 0, 0, 182, 217, 'j', 187, '-', 183, 221, 'z', 251, '-', 184, 225, 138, ';', '.', 185, 229, 154, '{', '.', 186, 233, 170, 187, '.', 187, 237, 186, 251, '.', 188, 241, 202, ';', '/', 189, 0, 0, 0, 0, 0, 'i', 's', 'o', '8', '8', '5', '9', '1', '3', 0, 0, '(', 160, '\\', ',', 202, '(', 164, '`', 'l', 202, ')', 216, 164, 178, 212, '*', 172, 180, 226, 138, '1', 176, 196, '"', 203, ',', 22, 215, 'b', 203, '-', 248, 228, 194, 212, '.', 188, 244, 226, 139, '9', 4, 169, 4, 144, 'A', 196, 20, 'c', 145, 'D', 12, '%', 227, 22, 'E', ' ', 193, 132, 'R', 'M', 'U', 237, 212, 211, '4', 'C', 'U', 'c', 205, '5', 'g', 229, 244, 212, 'W', 220, 192, '%', 215, '7', 5, 173, 20, 208, 'A', 228, 148, 's', 209, 'D', 13, 165, 243, 'V', 'E', '!', 197, 148, 146, 'M', 'V', 241, 228, 211, '<', 'D', 213, 'c', 207, '=', 'h', 233, 4, 21, 'X', 252, 196, '5', 23, 197, 'i', 's', 'o', '8', '8', '5', '9', '1', '4', 0, 0, '(', 160, 212, 'k', 239, '(', 10, '-', 't', 239, ')', 3, 167, 'R', '0', 190, 9, 183, 226, 'J', '[', 249, 234, 235, 209, 'G', 251, 242, 'k', 'K', 191, 4, 251, 'k', 240, 191, 10, 31, 140, '0', 192, 192, 4, '#', 204, '0', 196, 20, 'c', 204, '1', 200, '$', 163, 204, '2', 204, '4', 227, 204, '3', 'i', 'E', '#', 205, '4', 212, 'T', 'c', 'M', 192, 216, 'd', 163, 205, '6', 220, 't', 179, 214, '7', 224, 132, '#', 206, '8', 228, 148, 'c', 206, '9', 232, 164, 163, 206, ':', 236, 180, 227, 206, ';', 'j', 197, '#', 207, '<', 244, 212, 'c', 143, 192, 248, 228, 163, 207, '>', 252, 244, 195, 214, '?', 'i', 's', 'o', '8', '8', '5', '9', '1', '5', 0, 'l', 'a', 't', 'i', 'n', '9', 0, 0, ')', '$', 151, 'R', 213, ')', 'V', 165, 162, 202, '*', 172, 180, 226, 202, '+', 176, 196, '"', 203, ',', 'r', 213, 'b', 203, '-', 's', 229, 162, 203, '.', 'G', '!', 213, 214, '/', 192, 4, '#', 204, '0', 196, 20, 'c', 204, '1', 200, '$', 163, 204, '2', 204, '4', 227, 204, '3', 208, 'D', '#', 205, '4', 212, 'T', 'c', 205, '5', 216, 'd', 163, 205, '6', 220, 't', 227, 205, '7', 224, 132, '#', 206, '8', 228, 148, 'c', 206, '9', 232, 164, 163, 206, ':', 236, 180, 227, 206, ';', 240, 196, '#', 207, '<', 244, 212, 'c', 207, '=', 248, 228, 163, 207, '>', 252, 244, 227, 207, '?', 'i', 's', 'o', '8', '8', '5', '9', '1', '6', 0, 0, '(', 160, 16, 'T', 'P', 'N', '$', 'c', '\\', 213, ')', 'V', 165, 146, 215, '*', 'n', 181, 242, 22, '\\', 176, 196, 194, 144, 'N', 'r', ']', 'l', 203, '-', 's', '5', 164, 215, '.', 'G', '!', 213, 'V', '\\', 192, 4, '#', 140, '@', 196, 24, 'd', 204, '1', 200, '$', 163, 204, '2', 204, '4', 227, 204, '3', 16, 237, '$', 205, '4', 212, 20, 'e', 205, 'S', 'e', 'e', 163, 205, '6', 220, 'X', 180, 215, '7', 224, 132, '#', 206, '@', 228, 28, 'd', 206, '9', 232, 164, 163, 206, ':', 236, 180, 227, 206, ';', 17, 241, '$', 207, '<', 244, 24, 'e', 15, 'T', 'f', 229, 163, 207, '>', 252, '\\', 196, 215, '?', 'c', 'p', '1', '2', '5', '0', 0, 'w', 'i', 'n', 'd', 'o', 'w', 's', '1', '2', '5', '0', 0, 0, ' ', '$', 3, 'P', '1', 0, 24, 's', 156, 177, 198, 0, 't', '\\', 149, 199, 'O', 'e', '%', 151, '[', 0, 'L', 'L', 177, 197, 23, 'o', 252, '0', 196, 0, 156, 'l', 213, 199, 'P', 'i', '5', 215, '[', 160, 248, 245, 'W', 'N', 164, 16, 'd', 202, ')', 168, 164, '2', 213, '*', 172, 180, 226, 10, '\\', 176, 196, 18, 152, 'N', 180, 212, 'b', 203, '-', 184, 20, 'D', 213, '.', '7', 13, 134, 'S', '\\', 'I', 5, '#', 140, '@', 196, 204, 'd', 208, '1', 12, '%', 'c', 209, '2', 24, '5', 227, 140, 'C', 16, 237, 244, 211, '4', 212, 20, 'e', 205, '5', 'M', 141, 165, 'M', 'Y', 220, 't', 's', 213, '7', 'J', 133, '#', 206, '@', 228, 208, 't', 208, '9', 13, 165, 's', 209, ':', 25, 181, 227, 206, 'C', 17, 241, 4, 212, '<', 244, 24, 'e', 207, '=', 'N', 145, 165, 143, 'Y', 252, 244, 131, 21, '`', 'c', 'p', '1', '2', '5', '1', 0, 'w', 'i', 'n', 'd', 'o', 'w', 's', '1', '2', '5', '1', 0, 0, ' ', 210, 'M', 'W', 'q', 136, 24, 's', 156, 177, 198, '$', 'w', 156, 157, 199, 218, 'q', 183, 157, 'w', ' ', 'N', 'L', 177, 197, 23, 'o', 252, '0', 196, 0, 156, '|', 226, 199, '(', 170, 152, '"', 139, 160, 't', 183, '"', 'v', 164, 180, 'h', 202, ')', 209, 165, 'B', 221, '*', 172, 180, 226, 202, 'u', 176, 196, 'b', 29, 137, '.', 214, 'b', 203, '-', 31, 154, ',', 226, '.', '&', 'V', '7', 'b', 137, 223, 129, 23, 158, 'x', 227, 145, 'W', 158, 'y', 231, 161, 151, 158, 'z', 235, 177, 215, 158, '{', 239, 193, 23, 159, '|', 243, 209, 'W', 159, '}', 247, 225, 151, 159, '~', 251, 241, 215, 159, 127, 255, 1, 24, 160, 128, 3, 18, 'X', 160, 129, 7, '"', 152, 160, 130, 11, '2', 216, 160, 131, 15, 'B', 24, 161, 132, 19, 'R', 'X', 161, 133, 23, 'b', 152, 161, 134, 27, 'r', 216, 161, 135, 'c', 'p', '1', '2', '5', '2', 0, 'w', 'i', 'n', 'd', 'o', 'w', 's', '1', '2', '5', '2', 0, 0, ' ', '$', 3, 'P', '1', ']', 24, 's', 156, 177, 198, '}', 'u', '\\', 149, 199, 'G', 1, ' ', 23, 0, 0, 'L', 'L', 177, 197, 23, 'o', 252, '0', 196, 130, 157, 'l', 213, 199, 'H', 1, '0', 'W', '[', 160, 132, '"', 202, '(', 164, 148, 'b', 202, ')', 168, 164, 162, 202, '*', 172, 180, 226, 202, '+', 176, 196, '"', 203, ',', 180, 212, 'b', 203, '-', 184, 228, 162, 203, '.', 188, 244, 226, 203, '/', 192, 4, '#', 204, '0', 196, 20, 'c', 204, '1', 200, '$', 163, 204, '2', 204, '4', 227, 204, '3', 208, 'D', '#', 205, '4', 212, 'T', 'c', 205, '5', 216, 'd', 163, 205, '6', 220, 't', 227, 205, '7', 224, 132, '#', 206, '8', 228, 148, 'c', 206, '9', 232, 164, 163, 206, ':', 236, 180, 227, 206, ';', 240, 196, '#', 207, '<', 244, 212, 'c', 207, '=', 248, 228, 163, 207, '>', 252, 244, 227, 207, '?', 'c', 'p', '1', '2', '5', '3', 0, 'w', 'i', 'n', 'd', 'o', 'w', 's', '1', '2', '5', '3', 0, 0, ' ', '$', 3, 'P', '1', ']', 24, 's', 156, 177, 198, 0, 't', 12, 128, 199, 0, 0, 0, 0, 0, 0, 'L', 'L', 177, 197, 23, 'o', 252, '0', 196, 0, 156, 12, 192, 199, 0, 0, 0, 0, 0, 160, ',', 198, 216, '(', 164, 148, 'b', 202, ')', 168, 164, 2, 192, '*', 172, 180, 226, 'J', 196, 176, 196, '"', 203, ',', 138, 213, 'b', 203, '-', 141, '9', 246, 216, '.', 144, 245, 18, 153, 'd', 147, 'Q', 'V', 153, 'e', 151, 'a', 150, 153, 'f', 155, 'q', 214, 153, 'g', 159, 129, 22, 154, 'h', 163, 145, 6, '@', 'i', 166, 157, 134, 'Z', 'j', 170, 173, 198, 'Z', 'k', 174, 189, 6, '[', 'l', 178, 205, 'F', '[', 'm', 182, 221, 134, '[', 'n', 186, 237, 198, '[', 'o', 190, 253, 6, '\\', 'p', 194, 13, 'G', '\\', 'q', 198, 29, 135, '\\', 'r', 202, '-', 199, '\\', 's', 206, '=', 7, 29, 0, 'c', 'p', '1', '2', '5', '4', 0, 'w', 'i', 'n', 'd', 'o', 'w', 's', '1', '2', '5', '4', 0, 0, ' ', '$', 3, 'P', '1', ']', 24, 's', 156, 177, 198, '}', 'u', '\\', 149, 199, 'G', 1, 0, 0, 0, 0, 'L', 'L', 177, 197, 23, 'o', 252, '0', 196, 130, 157, 'l', 213, 199, 'H', 1, 0, '@', '[', 160, 132, '"', 202, '(', 164, 148, 'b', 202, ')', 168, 164, 162, 202, '*', 172, 180, 226, 202, '+', 176, 196, '"', 203, ',', 180, 212, 'b', 203, '-', 184, 228, 162, 203, '.', 188, 244, 226, 203, '/', 192, 4, '#', 204, '0', 196, 20, 'c', 204, '1', 200, '$', 163, 204, '2', 204, '4', 227, 204, '3', 28, 'E', '#', 205, '4', 212, 'T', 'c', 205, '5', 216, 'd', 163, 205, '6', 220, 176, '4', 213, '7', 224, 132, '#', 206, '8', 228, 148, 'c', 206, '9', 232, 164, 163, 206, ':', 236, 180, 227, 206, ';', 29, 197, '#', 207, '<', 244, 212, 'c', 207, '=', 248, 228, 163, 207, '>', 252, 180, 'D', 213, '?', 'c', 'p', '1', '2', '5', '5', 0, 'w', 'i', 'n', 'd', 'o', 'w', 's', '1', '2', '5', '5', 0, 0, ' ', '$', 3, 'P', '1', ']', 24, 's', 156, 177, 198, '}', 'u', 12, 128, 199, 0, 0, 0, 0, 0, 0, 'L', 'L', 177, 197, 23, 'o', 252, '0', 196, 130, 157, 12, 192, 199, 0, 0, 0, 0, 0, 160, 132, '"', 202, '(', '"', 151, 'b', 202, ')', 168, 164, 'r', 205, '*', 172, 180, 226, 202, '+', 176, 196, '"', 203, ',', 180, 212, 'b', 203, '-', 184, 228, 'r', 207, '.', 188, 244, 226, 203, '/', '/', 194, 24, 163, 140, '3', 210, 'X', 163, 141, '7', 226, 8, '@', 142, ':', 238, 200, 'c', 143, '>', 254, 8, 'd', 144, ']', 'z', 249, '%', 152, 'a', 2, 0, 0, 0, 0, 0, 0, 0, 0, 'B', 14, 'I', 'd', 145, 'F', 30, 137, 'd', 146, 'J', '.', 201, 'd', 147, 'N', '>', 9, 'e', 148, 'R', 'N', 'I', 'e', 149, 'V', '^', 137, 'e', 150, 'Z', 'n', 201, '%', 0, 0, '4', 236, '0', 0, 'c', 'p', '1', '2', '5', '6', 0, 'w', 'i', 'n', 'd', 'o', 'w', 's', '1', '2', '5', '6', 0, 0, ' ', '$', 'O', 'Z', '1', ']', 24, 's', 156, 177, 198, '}', 'u', ',', 169, 199, 'G', 'Q', 'z', 'i', 165, 153, 'N', 'L', 177, 197, 23, 'o', 252, '0', 196, 152, 158, 'l', 233, 199, 'H', '-', 204, 176, 166, 160, 136, ')', 202, '(', 164, 148, 'b', 202, ')', 168, 164, 178, 233, '*', 172, 180, 226, 202, '+', 176, 196, '"', 203, ',', 180, 212, 'b', 203, '-', 184, 228, '2', 230, '.', 188, 244, 226, 11, 153, 156, 150, 'i', 230, 153, 'h', 166, 169, 230, 154, 'l', 182, 233, 230, 155, 'p', 198, ')', 231, 156, 't', 214, 'i', 231, 157, 'x', 230, 169, 231, '5', '{', 242, 217, 167, 159, 127, 2, 26, 168, 160, 224, 12, '*', 14, 161, 133, 26, 'z', 232, '9', 232, 164, 163, 206, ':', 136, '&', 234, 206, ';', 138, '.', 202, 'h', 163, 244, '8', 250, 232, '=', 144, 230, 19, 233, '>', 252, '4', 236, 'p', 167, 'c', 'p', '1', '2', '5', '7', 0, 'w', 'i', 'n', 'd', 'o', 'w', 's', '1', '2', '5', '7', 0, 0, ' ', '$', 3, 'P', '1', 0, 24, 's', 156, 177, 198, 0, 't', 12, 128, 199, 0, 160, 226, 23, '.', 0, 'L', 'L', 177, 197, 23, 'o', 252, '0', 196, 0, 156, 12, 192, 199, 0, 188, 18, 24, 0, 160, 0, ' ', 202, '(', 164, 0, '`', 202, ')', 216, 164, 178, 212, '*', 172, 180, 226, 138, '1', 176, 196, '"', 203, ',', 180, 212, 'b', 203, '-', 248, 228, 194, 212, '.', 188, 244, 226, 139, '9', 4, 169, 4, 144, 'A', 196, 20, 'c', 145, 'D', 12, '%', 227, 22, 'E', ' ', 193, 132, 'R', 'M', 'U', 237, 212, 211, '4', 'C', 'U', 'c', 205, '5', 'g', 229, 244, 212, 'W', 220, 192, '%', 215, '7', 5, 173, 20, 208, 'A', 228, 148, 's', 209, 'D', 13, 165, 243, 'V', 'E', '!', 197, 148, 146, 'M', 'V', 241, 228, 211, '<', 'D', 213, 'c', 207, '=', 'h', 233, 4, 21, 'X', 252, 196, '5', 23, '`', 'c', 'p', '1', '2', '5', '8', 0, 'w', 'i', 'n', 'd', 'o', 'w', 's', '1', '2', '5', '8', 0, 0, ' ', '$', 3, 'P', '1', ']', 24, 's', 156, 177, 198, '}', 'u', 12, 128, 199, 'G', 1, 0, 0, 0, 0, 'L', 'L', 177, 197, 23, 'o', 252, '0', 196, 130, 157, 12, 192, 199, 'H', 1, 0, '@', '[', 160, 132, '"', 202, '(', 164, 148, 'b', 202, ')', 168, 164, 162, 202, '*', 172, 180, 226, 202, '+', 176, 196, '"', 203, ',', 180, 212, 'b', 203, '-', 184, 228, 162, 203, '.', 188, 244, 226, 203, '/', 192, 4, '#', 140, '@', 196, 20, 'c', 204, '1', 200, '$', 163, 204, '2', 132, '5', 227, 204, '3', 16, 'E', 's', 216, '4', 212, 212, 'e', 205, '5', 216, 'd', 163, 205, '6', 220, 220, 'e', 216, '7', 224, 132, '#', 206, '@', 228, 148, 'c', 206, '9', 232, 164, 163, 206, ':', 133, 181, 227, 206, ';', 17, 197, 131, 216, '<', 244, 216, 'e', 207, '=', 248, 228, 163, 207, '>', 252, 224, '5', 242, '?', 'k', 'o', 'i', '8', 'r', 0, 0, ' ', '3', 211, '\\', 179, 205, '7', 227, 156, 179, 206, ';', 243, 220, 243, 214, '\\', 'w', 237, 245, 215, '`', 135, '-', 'v', 204, 'c', 163, 156, '2', 203, '.', 191, 12, 138, 204, 176, 200, 'r', 203, '=', '>', 255, 12, 244, 135, 'A', 11, '=', '4', 209, 'E', 27, '}', '4', 210, 'I', '+', 189, '4', 211, 'M', ';', 253, 't', 't', 'P', 'G', '-', 245, 212, 'T', 'W', 'm', 245, 213, 'X', 'g', 173, 'u', '*', 29, 254, 7, '`', 133, 3, 18, '8', 161, 128, 20, 30, 136, '`', 130, 10, '.', 200, '`', 131, 14, 'z', 248, ' ', 132, 17, 'J', 'X', '`', 128, 27, 'j', 'h', 224, 133, 28, 'b', 'h', 'a', 134, 253, '}', 7, '^', '}', 227, 145, '7', 159, 'x', 244, 157, 135, '^', 'z', 234, 173, 199, '^', '{', 238, 249, 247, 30, '|', 241, 201, 'W', '^', 'x', 251, 233, 'g', 222, '}', 252, 225, 'g', '_', '~', 'k', 'o', 'i', '8', 'u', 0, 0, ' ', '3', 211, '\\', 179, 205, '7', 227, 156, 179, 206, ';', 243, 220, 243, 214, '\\', 'w', 237, 245, 215, '`', 135, '-', 'v', 204, 'c', 163, 156, '2', 203, '.', 191, 12, 138, 204, 176, 200, 'r', 203, '=', '>', 255, 12, 244, 135, '"', 10, 'M', 'b', 137, 'E', 27, '}', '4', 210, 'I', 187, 184, '4', 211, 'M', ';', 253, 't', 't', 212, 'E', 'm', 221, 'u', 'T', 'W', 'm', 245, 213, 'X', 183, 168, 'u', '*', 29, 254, 7, '`', 133, 3, 18, '8', 161, 128, 20, 30, 136, '`', 130, 10, '.', 200, '`', 131, 14, 'z', 248, ' ', 132, 17, 'J', 'X', '`', 128, 27, 'j', 'h', 224, 133, 28, 'b', 'h', 'a', 134, 253, '}', 7, '^', '}', 227, 145, '7', 159, 'x', 244, 157, 135, '^', 'z', 234, 173, 199, '^', '{', 238, 249, 247, 30, '|', 241, 201, 'W', '^', 'x', 251, 233, 'g', 222, '}', 252, 225, 'g', '_', '~', 'c', 'p', '4', '3', '7', 0, 0, ' ', 199, 240, 147, 142, '8', 228, 128, 'S', 206, '9', 234, 172, 131, 206, ';', 238, 176, 'C', 'L', '1', 201, 152, 'c', 12, '=', 246, 200, 179, 'O', '>', 255, 'X', 195, 141, '(', 163, 148, 18, '2', ']', 225, 180, '3', 143, '>', 241, 'D', 163, 138, '.', 191, 192, 204, 'J', '/', 188, 132, 178, 202, '.', '`', 135, '-', '6', 205, ':', '?', 13, '5', 209, 'C', 'G', 253, 's', 209, 'K', '+', 157, 180, 205, '7', 243, 188, 's', 206, '3', 247, 204, 't', 211, 'H', 11, '}', '5', 213, 'N', 251, 172, 'u', 213, 'V', 'K', '=', 245, 209, 'F', 3, 29, 't', 214, 'X', 227, '\\', 's', 215, '\\', '{', 253, 245, 214, 179, '}', 'c', 153, 'p', 165, 21, 'W', 139, 'q', 168, 'm', 182, 154, 'm', '*', '#', 'w', 219, 202, '-', 199, 242, 178, 203, '1', 203, '|', 15, 203, 176, 160, '|', 'K', 202, ' ', 203, '2', '6', '(', 'c', 'p', '8', '5', '0', 0, 0, ' ', 199, 240, 147, 142, '8', 228, 128, 'S', 206, '9', 234, 172, 131, 206, ';', 238, 176, 'C', 'L', '1', 201, 152, 'c', 12, '=', 246, 200, 179, 'O', '>', 255, 'X', 195, 13, '>', 163, '`', 's', 13, ']', 225, 180, '3', 143, '>', 241, 'D', 163, 138, '.', 191, 184, 194, 'J', '/', 188, 132, 178, 202, '.', '`', 135, '-', '6', 205, ':', 7, '#', 12, '0', 169, 'D', 253, 's', 209, 'K', 139, 'R', 138, 205, '7', 243, 188, 's', 206, '3', 247, '<', 206, '0', 'H', 11, '}', '5', 213, 'N', 251, 172, '5', ')', 240, '@', 163, 204, '2', 200, 180, 212, 140, '3', 207, 224, '\\', 's', 215, '\\', 155, 194, 204, 214, 211, '|', 'C', 141, '4', 245, 'T', 'S', 139, '?', 222, 'h', 179, 'M', '6', 253, 't', 243, 10, '-', 173, 196, '"', 177, '/', 182, 156, 'r', 15, '.', 176, 160, 'r', 'K', '.', 179, 200, '2', '6', '(', 'c', 'p', '8', '6', '6', 0, 0, ' ', 223, 129, 23, 158, 'x', 227, 145, 'W', 158, 'y', 231, 161, 151, 158, 'z', 235, 177, 215, 158, '{', 239, 193, 23, 159, '|', 243, 209, 'W', 159, '}', 247, 225, 151, 159, '~', 251, 241, 215, 159, 127, 255, 1, 24, 160, 128, 3, 18, 'X', 160, 129, 7, '"', 152, 160, 130, 11, '2', 216, 160, 131, '`', 135, '-', '6', 205, ':', '?', 13, '5', 209, 'C', 'G', 253, 's', 209, 'K', '+', 157, 180, 205, '7', 243, 188, 's', 206, '3', 247, 204, 't', 211, 'H', 11, '}', '5', 213, 'N', 251, 172, 'u', 213, 'V', 'K', '=', 245, 209, 'F', 3, 29, 't', 214, 'X', 227, '\\', 's', 215, '\\', '{', 253, 245, 214, 15, 'B', 24, 161, 132, 19, 'R', 'X', 161, 133, 23, 'b', 152, 161, 134, 27, 'r', 216, 161, 135, 209, '}', 'H', 157, 136, 215, 149, 216, 221, 138, 176, 160, '|', 'K', 202, '&', 147, '2', '6', '(', 'i', 'b', 'm', '1', '0', '4', '7', 0, 'c', 'p', '1', '0', '4', '7', 0, 0, 1, 156, '$', '`', 200, 31, 151, '4', 226, 200, 2, 12, '4', 224, 192, 3, 16, 'D', ' ', 193, 4, 157, 20, 130, 192, '!', 24, 'd', ' ', 201, '#', 28, 't', 224, 193, 7, 128, 4, '"', 200, ' ', 132, '(', 'p', 193, 6, 136, '$', 162, 200, '"', 140, 20, '`', 192, 1, 144, 'D', 'b', 193, '$', 148, 'T', 'b', 9, 1, 152, 'd', 162, 201, '&', 20, 'T', 224, 137, 6, ' ', 128, '"', 14, '9', 224, 132, '3', 'N', '9', 231, 196, '#', 138, 11, '<', 160, 176, 2, 31, '&', 164, 163, 206, ':', 232, 180, 227, 206, ';', 236, '|', 19, 2, 9, '*', 164, 176, 131, 23, '-', 188, ' ', 12, '1', 192, 4, '3', 'L', '1', 199, 'D', 'c', 10, 11, '%', '|', 225, 195, 15, 248, '$', 163, 204, '2', 200, '4', 227, 204, '3', 204, 128, 161, 195, 8, '@', 156, 208, 131, 8, 216, 132, '!', 198, 24, 'd', 148, 'a', 198, 25, 'h', 164, 177, 202, '.', 240, 244, 227, 'O', ',', 176, 168, 177, 6, 27, 'm', 184, 241, 6, 28, 'q', 200, 161, 138, '.', 230, 224, 'b', 12, ')', 181, 248, '1', 7, 29, 'u', 216, 'q', 7, 30, 'y', 232, 17, 202, '/', 208, 'l', 225, 141, '+', 172, 140, 'R', 202, '-', 169, 156, 'b', 11, '/', 189, 248, 210, 13, '*', 175, 't', 'A', 203, '5', '{', 4, '!', 196, 16, 'D', 20, 'a', 196, 17, 'H', '$', 209, 10, '=', 246, 200, '3', 'O', '=', '}', '(', 177, 4, 19, 'M', '8', 241, 4, 20, 'Q', 'H', 145, 203, '>', 252, 228, 163, 207, '?', '\\', 220, '3', 5, 21, 'U', 'X', 'q', 5, 22, 'Y', 'h', '!', 11, '5', 214, 'H', '3', 'M', '5', '0', 196, ' ', 195, 12, '4', 212, '`', 195, 13, '8', 228, '0', 203, '6', 220, 'd', 163, 205, '\''} + +// C documentation +// +// /* Table of characters that appear in legacy 8-bit codepages, +// * limited to 1024 slots (10 bit indices). The first 256 entries +// * are elided since those characters are obviously all included. */ +var _legacy_chars = [612]uint16{ + 0: uint16(256), + 1: uint16(257), + 2: uint16(258), + 3: uint16(259), + 4: uint16(260), + 5: uint16(261), + 6: uint16(262), + 7: uint16(263), + 8: uint16(264), + 9: uint16(265), + 10: uint16(266), + 11: uint16(267), + 12: uint16(268), + 13: uint16(269), + 14: uint16(270), + 15: uint16(271), + 16: uint16(272), + 17: uint16(273), + 18: uint16(274), + 19: uint16(275), + 20: uint16(278), + 21: uint16(279), + 22: uint16(280), + 23: uint16(281), + 24: uint16(282), + 25: uint16(283), + 26: uint16(284), + 27: uint16(285), + 28: uint16(286), + 29: uint16(287), + 30: uint16(288), + 31: uint16(289), + 32: uint16(290), + 33: uint16(291), + 34: uint16(292), + 35: uint16(293), + 36: uint16(294), + 37: uint16(295), + 38: uint16(296), + 39: uint16(297), + 40: uint16(298), + 41: uint16(299), + 42: uint16(302), + 43: uint16(303), + 44: uint16(304), + 45: uint16(305), + 46: uint16(308), + 47: uint16(309), + 48: uint16(310), + 49: uint16(311), + 50: uint16(312), + 51: uint16(313), + 52: uint16(314), + 53: uint16(315), + 54: uint16(316), + 55: uint16(317), + 56: uint16(318), + 57: uint16(321), + 58: uint16(322), + 59: uint16(323), + 60: uint16(324), + 61: uint16(325), + 62: uint16(326), + 63: uint16(327), + 64: uint16(328), + 65: uint16(330), + 66: uint16(331), + 67: uint16(332), + 68: uint16(333), + 69: uint16(336), + 70: uint16(337), + 71: uint16(338), + 72: uint16(339), + 73: uint16(340), + 74: uint16(341), + 75: uint16(342), + 76: uint16(343), + 77: uint16(344), + 78: uint16(345), + 79: uint16(346), + 80: uint16(347), + 81: uint16(348), + 82: uint16(349), + 83: uint16(350), + 84: uint16(351), + 85: uint16(352), + 86: uint16(353), + 87: uint16(354), + 88: uint16(355), + 89: uint16(356), + 90: uint16(357), + 91: uint16(358), + 92: uint16(359), + 93: uint16(360), + 94: uint16(361), + 95: uint16(362), + 96: uint16(363), + 97: uint16(364), + 98: uint16(365), + 99: uint16(366), + 100: uint16(367), + 101: uint16(368), + 102: uint16(369), + 103: uint16(370), + 104: uint16(371), + 105: uint16(372), + 106: uint16(373), + 107: uint16(374), + 108: uint16(375), + 109: uint16(376), + 110: uint16(377), + 111: uint16(378), + 112: uint16(379), + 113: uint16(380), + 114: uint16(381), + 115: uint16(382), + 116: uint16(402), + 117: uint16(416), + 118: uint16(417), + 119: uint16(431), + 120: uint16(432), + 121: uint16(536), + 122: uint16(537), + 123: uint16(538), + 124: uint16(539), + 125: uint16(710), + 126: uint16(711), + 127: uint16(728), + 128: uint16(729), + 129: uint16(731), + 130: uint16(732), + 131: uint16(733), + 132: uint16(768), + 133: uint16(769), + 134: uint16(771), + 135: uint16(777), + 136: uint16(803), + 137: uint16(890), + 138: uint16(900), + 139: uint16(901), + 140: uint16(902), + 141: uint16(904), + 142: uint16(905), + 143: uint16(906), + 144: uint16(908), + 145: uint16(910), + 146: uint16(911), + 147: uint16(912), + 148: uint16(913), + 149: uint16(914), + 150: uint16(915), + 151: uint16(916), + 152: uint16(917), + 153: uint16(918), + 154: uint16(919), + 155: uint16(920), + 156: uint16(921), + 157: uint16(922), + 158: uint16(923), + 159: uint16(924), + 160: uint16(925), + 161: uint16(926), + 162: uint16(927), + 163: uint16(928), + 164: uint16(929), + 165: uint16(931), + 166: uint16(932), + 167: uint16(933), + 168: uint16(934), + 169: uint16(935), + 170: uint16(936), + 171: uint16(937), + 172: uint16(938), + 173: uint16(939), + 174: uint16(940), + 175: uint16(941), + 176: uint16(942), + 177: uint16(943), + 178: uint16(944), + 179: uint16(945), + 180: uint16(946), + 181: uint16(947), + 182: uint16(948), + 183: uint16(949), + 184: uint16(950), + 185: uint16(951), + 186: uint16(952), + 187: uint16(953), + 188: uint16(954), + 189: uint16(955), + 190: uint16(956), + 191: uint16(957), + 192: uint16(958), + 193: uint16(959), + 194: uint16(960), + 195: uint16(961), + 196: uint16(962), + 197: uint16(963), + 198: uint16(964), + 199: uint16(965), + 200: uint16(966), + 201: uint16(967), + 202: uint16(968), + 203: uint16(969), + 204: uint16(970), + 205: uint16(971), + 206: uint16(972), + 207: uint16(973), + 208: uint16(974), + 209: uint16(1025), + 210: uint16(1026), + 211: uint16(1027), + 212: uint16(1028), + 213: uint16(1029), + 214: uint16(1030), + 215: uint16(1031), + 216: uint16(1032), + 217: uint16(1033), + 218: uint16(1034), + 219: uint16(1035), + 220: uint16(1036), + 221: uint16(1038), + 222: uint16(1039), + 223: uint16(1040), + 224: uint16(1041), + 225: uint16(1042), + 226: uint16(1043), + 227: uint16(1044), + 228: uint16(1045), + 229: uint16(1046), + 230: uint16(1047), + 231: uint16(1048), + 232: uint16(1049), + 233: uint16(1050), + 234: uint16(1051), + 235: uint16(1052), + 236: uint16(1053), + 237: uint16(1054), + 238: uint16(1055), + 239: uint16(1056), + 240: uint16(1057), + 241: uint16(1058), + 242: uint16(1059), + 243: uint16(1060), + 244: uint16(1061), + 245: uint16(1062), + 246: uint16(1063), + 247: uint16(1064), + 248: uint16(1065), + 249: uint16(1066), + 250: uint16(1067), + 251: uint16(1068), + 252: uint16(1069), + 253: uint16(1070), + 254: uint16(1071), + 255: uint16(1072), + 256: uint16(1073), + 257: uint16(1074), + 258: uint16(1075), + 259: uint16(1076), + 260: uint16(1077), + 261: uint16(1078), + 262: uint16(1079), + 263: uint16(1080), + 264: uint16(1081), + 265: uint16(1082), + 266: uint16(1083), + 267: uint16(1084), + 268: uint16(1085), + 269: uint16(1086), + 270: uint16(1087), + 271: uint16(1088), + 272: uint16(1089), + 273: uint16(1090), + 274: uint16(1091), + 275: uint16(1092), + 276: uint16(1093), + 277: uint16(1094), + 278: uint16(1095), + 279: uint16(1096), + 280: uint16(1097), + 281: uint16(1098), + 282: uint16(1099), + 283: uint16(1100), + 284: uint16(1101), + 285: uint16(1102), + 286: uint16(1103), + 287: uint16(1105), + 288: uint16(1106), + 289: uint16(1107), + 290: uint16(1108), + 291: uint16(1109), + 292: uint16(1110), + 293: uint16(1111), + 294: uint16(1112), + 295: uint16(1113), + 296: uint16(1114), + 297: uint16(1115), + 298: uint16(1116), + 299: uint16(1118), + 300: uint16(1119), + 301: uint16(1168), + 302: uint16(1169), + 303: uint16(1456), + 304: uint16(1457), + 305: uint16(1458), + 306: uint16(1459), + 307: uint16(1460), + 308: uint16(1461), + 309: uint16(1462), + 310: uint16(1463), + 311: uint16(1464), + 312: uint16(1465), + 313: uint16(1467), + 314: uint16(1468), + 315: uint16(1469), + 316: uint16(1470), + 317: uint16(1471), + 318: uint16(1472), + 319: uint16(1473), + 320: uint16(1474), + 321: uint16(1475), + 322: uint16(1488), + 323: uint16(1489), + 324: uint16(1490), + 325: uint16(1491), + 326: uint16(1492), + 327: uint16(1493), + 328: uint16(1494), + 329: uint16(1495), + 330: uint16(1496), + 331: uint16(1497), + 332: uint16(1498), + 333: uint16(1499), + 334: uint16(1500), + 335: uint16(1501), + 336: uint16(1502), + 337: uint16(1503), + 338: uint16(1504), + 339: uint16(1505), + 340: uint16(1506), + 341: uint16(1507), + 342: uint16(1508), + 343: uint16(1509), + 344: uint16(1510), + 345: uint16(1511), + 346: uint16(1512), + 347: uint16(1513), + 348: uint16(1514), + 349: uint16(1520), + 350: uint16(1521), + 351: uint16(1522), + 352: uint16(1523), + 353: uint16(1524), + 354: uint16(1548), + 355: uint16(1563), + 356: uint16(1567), + 357: uint16(1569), + 358: uint16(1570), + 359: uint16(1571), + 360: uint16(1572), + 361: uint16(1573), + 362: uint16(1574), + 363: uint16(1575), + 364: uint16(1576), + 365: uint16(1577), + 366: uint16(1578), + 367: uint16(1579), + 368: uint16(1580), + 369: uint16(1581), + 370: uint16(1582), + 371: uint16(1583), + 372: uint16(1584), + 373: uint16(1585), + 374: uint16(1586), + 375: uint16(1587), + 376: uint16(1588), + 377: uint16(1589), + 378: uint16(1590), + 379: uint16(1591), + 380: uint16(1592), + 381: uint16(1593), + 382: uint16(1594), + 383: uint16(1600), + 384: uint16(1601), + 385: uint16(1602), + 386: uint16(1603), + 387: uint16(1604), + 388: uint16(1605), + 389: uint16(1606), + 390: uint16(1607), + 391: uint16(1608), + 392: uint16(1609), + 393: uint16(1610), + 394: uint16(1611), + 395: uint16(1612), + 396: uint16(1613), + 397: uint16(1614), + 398: uint16(1615), + 399: uint16(1616), + 400: uint16(1617), + 401: uint16(1618), + 402: uint16(1657), + 403: uint16(1662), + 404: uint16(1670), + 405: uint16(1672), + 406: uint16(1681), + 407: uint16(1688), + 408: uint16(1705), + 409: uint16(1711), + 410: uint16(1722), + 411: uint16(1726), + 412: uint16(1729), + 413: uint16(1746), + 414: uint16(3585), + 415: uint16(3586), + 416: uint16(3587), + 417: uint16(3588), + 418: uint16(3589), + 419: uint16(3590), + 420: uint16(3591), + 421: uint16(3592), + 422: uint16(3593), + 423: uint16(3594), + 424: uint16(3595), + 425: uint16(3596), + 426: uint16(3597), + 427: uint16(3598), + 428: uint16(3599), + 429: uint16(3600), + 430: uint16(3601), + 431: uint16(3602), + 432: uint16(3603), + 433: uint16(3604), + 434: uint16(3605), + 435: uint16(3606), + 436: uint16(3607), + 437: uint16(3608), + 438: uint16(3609), + 439: uint16(3610), + 440: uint16(3611), + 441: uint16(3612), + 442: uint16(3613), + 443: uint16(3614), + 444: uint16(3615), + 445: uint16(3616), + 446: uint16(3617), + 447: uint16(3618), + 448: uint16(3619), + 449: uint16(3620), + 450: uint16(3621), + 451: uint16(3622), + 452: uint16(3623), + 453: uint16(3624), + 454: uint16(3625), + 455: uint16(3626), + 456: uint16(3627), + 457: uint16(3628), + 458: uint16(3629), + 459: uint16(3630), + 460: uint16(3631), + 461: uint16(3632), + 462: uint16(3633), + 463: uint16(3634), + 464: uint16(3635), + 465: uint16(3636), + 466: uint16(3637), + 467: uint16(3638), + 468: uint16(3639), + 469: uint16(3640), + 470: uint16(3641), + 471: uint16(3642), + 472: uint16(3647), + 473: uint16(3648), + 474: uint16(3649), + 475: uint16(3650), + 476: uint16(3651), + 477: uint16(3652), + 478: uint16(3653), + 479: uint16(3654), + 480: uint16(3655), + 481: uint16(3656), + 482: uint16(3657), + 483: uint16(3658), + 484: uint16(3659), + 485: uint16(3660), + 486: uint16(3661), + 487: uint16(3662), + 488: uint16(3663), + 489: uint16(3664), + 490: uint16(3665), + 491: uint16(3666), + 492: uint16(3667), + 493: uint16(3668), + 494: uint16(3669), + 495: uint16(3670), + 496: uint16(3671), + 497: uint16(3672), + 498: uint16(3673), + 499: uint16(3674), + 500: uint16(3675), + 501: uint16(7682), + 502: uint16(7683), + 503: uint16(7690), + 504: uint16(7691), + 505: uint16(7710), + 506: uint16(7711), + 507: uint16(7744), + 508: uint16(7745), + 509: uint16(7766), + 510: uint16(7767), + 511: uint16(7776), + 512: uint16(7777), + 513: uint16(7786), + 514: uint16(7787), + 515: uint16(7808), + 516: uint16(7809), + 517: uint16(7810), + 518: uint16(7811), + 519: uint16(7812), + 520: uint16(7813), + 521: uint16(7922), + 522: uint16(7923), + 523: uint16(8204), + 524: uint16(8205), + 525: uint16(8206), + 526: uint16(8207), + 527: uint16(8211), + 528: uint16(8212), + 529: uint16(8213), + 530: uint16(8215), + 531: uint16(8216), + 532: uint16(8217), + 533: uint16(8218), + 534: uint16(8220), + 535: uint16(8221), + 536: uint16(8222), + 537: uint16(8224), + 538: uint16(8225), + 539: uint16(8226), + 540: uint16(8230), + 541: uint16(8240), + 542: uint16(8249), + 543: uint16(8250), + 544: uint16(8319), + 545: uint16(8359), + 546: uint16(8362), + 547: uint16(8363), + 548: uint16(8364), + 549: uint16(8367), + 550: uint16(8470), + 551: uint16(8482), + 552: uint16(8729), + 553: uint16(8730), + 554: uint16(8734), + 555: uint16(8745), + 556: uint16(8776), + 557: uint16(8801), + 558: uint16(8804), + 559: uint16(8805), + 560: uint16(8976), + 561: uint16(8992), + 562: uint16(8993), + 563: uint16(9472), + 564: uint16(9474), + 565: uint16(9484), + 566: uint16(9488), + 567: uint16(9492), + 568: uint16(9496), + 569: uint16(9500), + 570: uint16(9508), + 571: uint16(9516), + 572: uint16(9524), + 573: uint16(9532), + 574: uint16(9552), + 575: uint16(9553), + 576: uint16(9554), + 577: uint16(9555), + 578: uint16(9556), + 579: uint16(9557), + 580: uint16(9558), + 581: uint16(9559), + 582: uint16(9560), + 583: uint16(9561), + 584: uint16(9562), + 585: uint16(9563), + 586: uint16(9564), + 587: uint16(9565), + 588: uint16(9566), + 589: uint16(9567), + 590: uint16(9568), + 591: uint16(9569), + 592: uint16(9570), + 593: uint16(9571), + 594: uint16(9572), + 595: uint16(9573), + 596: uint16(9574), + 597: uint16(9575), + 598: uint16(9576), + 599: uint16(9577), + 600: uint16(9578), + 601: uint16(9579), + 602: uint16(9580), + 603: uint16(9600), + 604: uint16(9604), + 605: uint16(9608), + 606: uint16(9612), + 607: uint16(9616), + 608: uint16(9617), + 609: uint16(9618), + 610: uint16(9619), + 611: uint16(9632), +} + +var _jis0208 = [84][94]uint16{ + 0: { + 0: uint16(12288), + 1: uint16(12289), + 2: uint16(12290), + 3: uint16(65292), + 4: uint16(65294), + 5: uint16(12539), + 6: uint16(65306), + 7: uint16(65307), + 8: uint16(65311), + 9: uint16(65281), + 10: uint16(12443), + 11: uint16(12444), + 12: uint16(180), + 13: uint16(65344), + 14: uint16(168), + 15: uint16(65342), + 16: uint16(65507), + 17: uint16(65343), + 18: uint16(12541), + 19: uint16(12542), + 20: uint16(12445), + 21: uint16(12446), + 22: uint16(12291), + 23: uint16(20189), + 24: uint16(12293), + 25: uint16(12294), + 26: uint16(12295), + 27: uint16(12540), + 28: uint16(8213), + 29: uint16(8208), + 30: uint16(65295), + 31: uint16(92), + 32: uint16(12316), + 33: uint16(8214), + 34: uint16(65372), + 35: uint16(8230), + 36: uint16(8229), + 37: uint16(8216), + 38: uint16(8217), + 39: uint16(8220), + 40: uint16(8221), + 41: uint16(65288), + 42: uint16(65289), + 43: uint16(12308), + 44: uint16(12309), + 45: uint16(65339), + 46: uint16(65341), + 47: uint16(65371), + 48: uint16(65373), + 49: uint16(12296), + 50: uint16(12297), + 51: uint16(12298), + 52: uint16(12299), + 53: uint16(12300), + 54: uint16(12301), + 55: uint16(12302), + 56: uint16(12303), + 57: uint16(12304), + 58: uint16(12305), + 59: uint16(65291), + 60: uint16(8722), + 61: uint16(177), + 62: uint16(215), + 63: uint16(247), + 64: uint16(65309), + 65: uint16(8800), + 66: uint16(65308), + 67: uint16(65310), + 68: uint16(8806), + 69: uint16(8807), + 70: uint16(8734), + 71: uint16(8756), + 72: uint16(9794), + 73: uint16(9792), + 74: uint16(176), + 75: uint16(8242), + 76: uint16(8243), + 77: uint16(8451), + 78: uint16(65509), + 79: uint16(65284), + 80: uint16(162), + 81: uint16(163), + 82: uint16(65285), + 83: uint16(65283), + 84: uint16(65286), + 85: uint16(65290), + 86: uint16(65312), + 87: uint16(167), + 88: uint16(9734), + 89: uint16(9733), + 90: uint16(9675), + 91: uint16(9679), + 92: uint16(9678), + 93: uint16(9671), + }, + 1: { + 0: uint16(9670), + 1: uint16(9633), + 2: uint16(9632), + 3: uint16(9651), + 4: uint16(9650), + 5: uint16(9661), + 6: uint16(9660), + 7: uint16(8251), + 8: uint16(12306), + 9: uint16(8594), + 10: uint16(8592), + 11: uint16(8593), + 12: uint16(8595), + 13: uint16(12307), + 25: uint16(8712), + 26: uint16(8715), + 27: uint16(8838), + 28: uint16(8839), + 29: uint16(8834), + 30: uint16(8835), + 31: uint16(8746), + 32: uint16(8745), + 41: uint16(8743), + 42: uint16(8744), + 43: uint16(172), + 44: uint16(8658), + 45: uint16(8660), + 46: uint16(8704), + 47: uint16(8707), + 59: uint16(8736), + 60: uint16(8869), + 61: uint16(8978), + 62: uint16(8706), + 63: uint16(8711), + 64: uint16(8801), + 65: uint16(8786), + 66: uint16(8810), + 67: uint16(8811), + 68: uint16(8730), + 69: uint16(8765), + 70: uint16(8733), + 71: uint16(8757), + 72: uint16(8747), + 73: uint16(8748), + 81: uint16(8491), + 82: uint16(8240), + 83: uint16(9839), + 84: uint16(9837), + 85: uint16(9834), + 86: uint16(8224), + 87: uint16(8225), + 88: uint16(182), + 93: uint16(9711), + }, + 2: { + 15: uint16(65296), + 16: uint16(65297), + 17: uint16(65298), + 18: uint16(65299), + 19: uint16(65300), + 20: uint16(65301), + 21: uint16(65302), + 22: uint16(65303), + 23: uint16(65304), + 24: uint16(65305), + 32: uint16(65313), + 33: uint16(65314), + 34: uint16(65315), + 35: uint16(65316), + 36: uint16(65317), + 37: uint16(65318), + 38: uint16(65319), + 39: uint16(65320), + 40: uint16(65321), + 41: uint16(65322), + 42: uint16(65323), + 43: uint16(65324), + 44: uint16(65325), + 45: uint16(65326), + 46: uint16(65327), + 47: uint16(65328), + 48: uint16(65329), + 49: uint16(65330), + 50: uint16(65331), + 51: uint16(65332), + 52: uint16(65333), + 53: uint16(65334), + 54: uint16(65335), + 55: uint16(65336), + 56: uint16(65337), + 57: uint16(65338), + 64: uint16(65345), + 65: uint16(65346), + 66: uint16(65347), + 67: uint16(65348), + 68: uint16(65349), + 69: uint16(65350), + 70: uint16(65351), + 71: uint16(65352), + 72: uint16(65353), + 73: uint16(65354), + 74: uint16(65355), + 75: uint16(65356), + 76: uint16(65357), + 77: uint16(65358), + 78: uint16(65359), + 79: uint16(65360), + 80: uint16(65361), + 81: uint16(65362), + 82: uint16(65363), + 83: uint16(65364), + 84: uint16(65365), + 85: uint16(65366), + 86: uint16(65367), + 87: uint16(65368), + 88: uint16(65369), + 89: uint16(65370), + }, + 3: { + 0: uint16(12353), + 1: uint16(12354), + 2: uint16(12355), + 3: uint16(12356), + 4: uint16(12357), + 5: uint16(12358), + 6: uint16(12359), + 7: uint16(12360), + 8: uint16(12361), + 9: uint16(12362), + 10: uint16(12363), + 11: uint16(12364), + 12: uint16(12365), + 13: uint16(12366), + 14: uint16(12367), + 15: uint16(12368), + 16: uint16(12369), + 17: uint16(12370), + 18: uint16(12371), + 19: uint16(12372), + 20: uint16(12373), + 21: uint16(12374), + 22: uint16(12375), + 23: uint16(12376), + 24: uint16(12377), + 25: uint16(12378), + 26: uint16(12379), + 27: uint16(12380), + 28: uint16(12381), + 29: uint16(12382), + 30: uint16(12383), + 31: uint16(12384), + 32: uint16(12385), + 33: uint16(12386), + 34: uint16(12387), + 35: uint16(12388), + 36: uint16(12389), + 37: uint16(12390), + 38: uint16(12391), + 39: uint16(12392), + 40: uint16(12393), + 41: uint16(12394), + 42: uint16(12395), + 43: uint16(12396), + 44: uint16(12397), + 45: uint16(12398), + 46: uint16(12399), + 47: uint16(12400), + 48: uint16(12401), + 49: uint16(12402), + 50: uint16(12403), + 51: uint16(12404), + 52: uint16(12405), + 53: uint16(12406), + 54: uint16(12407), + 55: uint16(12408), + 56: uint16(12409), + 57: uint16(12410), + 58: uint16(12411), + 59: uint16(12412), + 60: uint16(12413), + 61: uint16(12414), + 62: uint16(12415), + 63: uint16(12416), + 64: uint16(12417), + 65: uint16(12418), + 66: uint16(12419), + 67: uint16(12420), + 68: uint16(12421), + 69: uint16(12422), + 70: uint16(12423), + 71: uint16(12424), + 72: uint16(12425), + 73: uint16(12426), + 74: uint16(12427), + 75: uint16(12428), + 76: uint16(12429), + 77: uint16(12430), + 78: uint16(12431), + 79: uint16(12432), + 80: uint16(12433), + 81: uint16(12434), + 82: uint16(12435), + }, + 4: { + 0: uint16(12449), + 1: uint16(12450), + 2: uint16(12451), + 3: uint16(12452), + 4: uint16(12453), + 5: uint16(12454), + 6: uint16(12455), + 7: uint16(12456), + 8: uint16(12457), + 9: uint16(12458), + 10: uint16(12459), + 11: uint16(12460), + 12: uint16(12461), + 13: uint16(12462), + 14: uint16(12463), + 15: uint16(12464), + 16: uint16(12465), + 17: uint16(12466), + 18: uint16(12467), + 19: uint16(12468), + 20: uint16(12469), + 21: uint16(12470), + 22: uint16(12471), + 23: uint16(12472), + 24: uint16(12473), + 25: uint16(12474), + 26: uint16(12475), + 27: uint16(12476), + 28: uint16(12477), + 29: uint16(12478), + 30: uint16(12479), + 31: uint16(12480), + 32: uint16(12481), + 33: uint16(12482), + 34: uint16(12483), + 35: uint16(12484), + 36: uint16(12485), + 37: uint16(12486), + 38: uint16(12487), + 39: uint16(12488), + 40: uint16(12489), + 41: uint16(12490), + 42: uint16(12491), + 43: uint16(12492), + 44: uint16(12493), + 45: uint16(12494), + 46: uint16(12495), + 47: uint16(12496), + 48: uint16(12497), + 49: uint16(12498), + 50: uint16(12499), + 51: uint16(12500), + 52: uint16(12501), + 53: uint16(12502), + 54: uint16(12503), + 55: uint16(12504), + 56: uint16(12505), + 57: uint16(12506), + 58: uint16(12507), + 59: uint16(12508), + 60: uint16(12509), + 61: uint16(12510), + 62: uint16(12511), + 63: uint16(12512), + 64: uint16(12513), + 65: uint16(12514), + 66: uint16(12515), + 67: uint16(12516), + 68: uint16(12517), + 69: uint16(12518), + 70: uint16(12519), + 71: uint16(12520), + 72: uint16(12521), + 73: uint16(12522), + 74: uint16(12523), + 75: uint16(12524), + 76: uint16(12525), + 77: uint16(12526), + 78: uint16(12527), + 79: uint16(12528), + 80: uint16(12529), + 81: uint16(12530), + 82: uint16(12531), + 83: uint16(12532), + 84: uint16(12533), + 85: uint16(12534), + }, + 5: { + 0: uint16(913), + 1: uint16(914), + 2: uint16(915), + 3: uint16(916), + 4: uint16(917), + 5: uint16(918), + 6: uint16(919), + 7: uint16(920), + 8: uint16(921), + 9: uint16(922), + 10: uint16(923), + 11: uint16(924), + 12: uint16(925), + 13: uint16(926), + 14: uint16(927), + 15: uint16(928), + 16: uint16(929), + 17: uint16(931), + 18: uint16(932), + 19: uint16(933), + 20: uint16(934), + 21: uint16(935), + 22: uint16(936), + 23: uint16(937), + 32: uint16(945), + 33: uint16(946), + 34: uint16(947), + 35: uint16(948), + 36: uint16(949), + 37: uint16(950), + 38: uint16(951), + 39: uint16(952), + 40: uint16(953), + 41: uint16(954), + 42: uint16(955), + 43: uint16(956), + 44: uint16(957), + 45: uint16(958), + 46: uint16(959), + 47: uint16(960), + 48: uint16(961), + 49: uint16(963), + 50: uint16(964), + 51: uint16(965), + 52: uint16(966), + 53: uint16(967), + 54: uint16(968), + 55: uint16(969), + }, + 6: { + 0: uint16(1040), + 1: uint16(1041), + 2: uint16(1042), + 3: uint16(1043), + 4: uint16(1044), + 5: uint16(1045), + 6: uint16(1025), + 7: uint16(1046), + 8: uint16(1047), + 9: uint16(1048), + 10: uint16(1049), + 11: uint16(1050), + 12: uint16(1051), + 13: uint16(1052), + 14: uint16(1053), + 15: uint16(1054), + 16: uint16(1055), + 17: uint16(1056), + 18: uint16(1057), + 19: uint16(1058), + 20: uint16(1059), + 21: uint16(1060), + 22: uint16(1061), + 23: uint16(1062), + 24: uint16(1063), + 25: uint16(1064), + 26: uint16(1065), + 27: uint16(1066), + 28: uint16(1067), + 29: uint16(1068), + 30: uint16(1069), + 31: uint16(1070), + 32: uint16(1071), + 48: uint16(1072), + 49: uint16(1073), + 50: uint16(1074), + 51: uint16(1075), + 52: uint16(1076), + 53: uint16(1077), + 54: uint16(1105), + 55: uint16(1078), + 56: uint16(1079), + 57: uint16(1080), + 58: uint16(1081), + 59: uint16(1082), + 60: uint16(1083), + 61: uint16(1084), + 62: uint16(1085), + 63: uint16(1086), + 64: uint16(1087), + 65: uint16(1088), + 66: uint16(1089), + 67: uint16(1090), + 68: uint16(1091), + 69: uint16(1092), + 70: uint16(1093), + 71: uint16(1094), + 72: uint16(1095), + 73: uint16(1096), + 74: uint16(1097), + 75: uint16(1098), + 76: uint16(1099), + 77: uint16(1100), + 78: uint16(1101), + 79: uint16(1102), + 80: uint16(1103), + }, + 7: { + 0: uint16(9472), + 1: uint16(9474), + 2: uint16(9484), + 3: uint16(9488), + 4: uint16(9496), + 5: uint16(9492), + 6: uint16(9500), + 7: uint16(9516), + 8: uint16(9508), + 9: uint16(9524), + 10: uint16(9532), + 11: uint16(9473), + 12: uint16(9475), + 13: uint16(9487), + 14: uint16(9491), + 15: uint16(9499), + 16: uint16(9495), + 17: uint16(9507), + 18: uint16(9523), + 19: uint16(9515), + 20: uint16(9531), + 21: uint16(9547), + 22: uint16(9504), + 23: uint16(9519), + 24: uint16(9512), + 25: uint16(9527), + 26: uint16(9535), + 27: uint16(9501), + 28: uint16(9520), + 29: uint16(9509), + 30: uint16(9528), + 31: uint16(9538), + }, + 8: {}, + 9: {}, + 10: {}, + 11: {}, + 12: {}, + 13: {}, + 14: {}, + 15: { + 0: uint16(20124), + 1: uint16(21782), + 2: uint16(23043), + 3: uint16(38463), + 4: uint16(21696), + 5: uint16(24859), + 6: uint16(25384), + 7: uint16(23030), + 8: uint16(36898), + 9: uint16(33909), + 10: uint16(33564), + 11: uint16(31312), + 12: uint16(24746), + 13: uint16(25569), + 14: uint16(28197), + 15: uint16(26093), + 16: uint16(33894), + 17: uint16(33446), + 18: uint16(39925), + 19: uint16(26771), + 20: uint16(22311), + 21: uint16(26017), + 22: uint16(25201), + 23: uint16(23451), + 24: uint16(22992), + 25: uint16(34427), + 26: uint16(39156), + 27: uint16(32098), + 28: uint16(32190), + 29: uint16(39822), + 30: uint16(25110), + 31: uint16(31903), + 32: uint16(34999), + 33: uint16(23433), + 34: uint16(24245), + 35: uint16(25353), + 36: uint16(26263), + 37: uint16(26696), + 38: uint16(38343), + 39: uint16(38797), + 40: uint16(26447), + 41: uint16(20197), + 42: uint16(20234), + 43: uint16(20301), + 44: uint16(20381), + 45: uint16(20553), + 46: uint16(22258), + 47: uint16(22839), + 48: uint16(22996), + 49: uint16(23041), + 50: uint16(23561), + 51: uint16(24799), + 52: uint16(24847), + 53: uint16(24944), + 54: uint16(26131), + 55: uint16(26885), + 56: uint16(28858), + 57: uint16(30031), + 58: uint16(30064), + 59: uint16(31227), + 60: uint16(32173), + 61: uint16(32239), + 62: uint16(32963), + 63: uint16(33806), + 64: uint16(34915), + 65: uint16(35586), + 66: uint16(36949), + 67: uint16(36986), + 68: uint16(21307), + 69: uint16(20117), + 70: uint16(20133), + 71: uint16(22495), + 72: uint16(32946), + 73: uint16(37057), + 74: uint16(30959), + 75: uint16(19968), + 76: uint16(22769), + 77: uint16(28322), + 78: uint16(36920), + 79: uint16(31282), + 80: uint16(33576), + 81: uint16(33419), + 82: uint16(39983), + 83: uint16(20801), + 84: uint16(21360), + 85: uint16(21693), + 86: uint16(21729), + 87: uint16(22240), + 88: uint16(23035), + 89: uint16(24341), + 90: uint16(39154), + 91: uint16(28139), + 92: uint16(32996), + 93: uint16(34093), + }, + 16: { + 0: uint16(38498), + 1: uint16(38512), + 2: uint16(38560), + 3: uint16(38907), + 4: uint16(21515), + 5: uint16(21491), + 6: uint16(23431), + 7: uint16(28879), + 8: uint16(32701), + 9: uint16(36802), + 10: uint16(38632), + 11: uint16(21359), + 12: uint16(40284), + 13: uint16(31418), + 14: uint16(19985), + 15: uint16(30867), + 16: uint16(33276), + 17: uint16(28198), + 18: uint16(22040), + 19: uint16(21764), + 20: uint16(27421), + 21: uint16(34074), + 22: uint16(39995), + 23: uint16(23013), + 24: uint16(21417), + 25: uint16(28006), + 26: uint16(29916), + 27: uint16(38287), + 28: uint16(22082), + 29: uint16(20113), + 30: uint16(36939), + 31: uint16(38642), + 32: uint16(33615), + 33: uint16(39180), + 34: uint16(21473), + 35: uint16(21942), + 36: uint16(23344), + 37: uint16(24433), + 38: uint16(26144), + 39: uint16(26355), + 40: uint16(26628), + 41: uint16(27704), + 42: uint16(27891), + 43: uint16(27945), + 44: uint16(29787), + 45: uint16(30408), + 46: uint16(31310), + 47: uint16(38964), + 48: uint16(33521), + 49: uint16(34907), + 50: uint16(35424), + 51: uint16(37613), + 52: uint16(28082), + 53: uint16(30123), + 54: uint16(30410), + 55: uint16(39365), + 56: uint16(24742), + 57: uint16(35585), + 58: uint16(36234), + 59: uint16(38322), + 60: uint16(27022), + 61: uint16(21421), + 62: uint16(20870), + 63: uint16(22290), + 64: uint16(22576), + 65: uint16(22852), + 66: uint16(23476), + 67: uint16(24310), + 68: uint16(24616), + 69: uint16(25513), + 70: uint16(25588), + 71: uint16(27839), + 72: uint16(28436), + 73: uint16(28814), + 74: uint16(28948), + 75: uint16(29017), + 76: uint16(29141), + 77: uint16(29503), + 78: uint16(32257), + 79: uint16(33398), + 80: uint16(33489), + 81: uint16(34199), + 82: uint16(36960), + 83: uint16(37467), + 84: uint16(40219), + 85: uint16(22633), + 86: uint16(26044), + 87: uint16(27738), + 88: uint16(29989), + 89: uint16(20985), + 90: uint16(22830), + 91: uint16(22885), + 92: uint16(24448), + 93: uint16(24540), + }, + 17: { + 0: uint16(25276), + 1: uint16(26106), + 2: uint16(27178), + 3: uint16(27431), + 4: uint16(27572), + 5: uint16(29579), + 6: uint16(32705), + 7: uint16(35158), + 8: uint16(40236), + 9: uint16(40206), + 10: uint16(40644), + 11: uint16(23713), + 12: uint16(27798), + 13: uint16(33659), + 14: uint16(20740), + 15: uint16(23627), + 16: uint16(25014), + 17: uint16(33222), + 18: uint16(26742), + 19: uint16(29281), + 20: uint16(20057), + 21: uint16(20474), + 22: uint16(21368), + 23: uint16(24681), + 24: uint16(28201), + 25: uint16(31311), + 26: uint16(38899), + 27: uint16(19979), + 28: uint16(21270), + 29: uint16(20206), + 30: uint16(20309), + 31: uint16(20285), + 32: uint16(20385), + 33: uint16(20339), + 34: uint16(21152), + 35: uint16(21487), + 36: uint16(22025), + 37: uint16(22799), + 38: uint16(23233), + 39: uint16(23478), + 40: uint16(23521), + 41: uint16(31185), + 42: uint16(26247), + 43: uint16(26524), + 44: uint16(26550), + 45: uint16(27468), + 46: uint16(27827), + 47: uint16(28779), + 48: uint16(29634), + 49: uint16(31117), + 50: uint16(31166), + 51: uint16(31292), + 52: uint16(31623), + 53: uint16(33457), + 54: uint16(33499), + 55: uint16(33540), + 56: uint16(33655), + 57: uint16(33775), + 58: uint16(33747), + 59: uint16(34662), + 60: uint16(35506), + 61: uint16(22057), + 62: uint16(36008), + 63: uint16(36838), + 64: uint16(36942), + 65: uint16(38686), + 66: uint16(34442), + 67: uint16(20420), + 68: uint16(23784), + 69: uint16(25105), + 70: uint16(29273), + 71: uint16(30011), + 72: uint16(33253), + 73: uint16(33469), + 74: uint16(34558), + 75: uint16(36032), + 76: uint16(38597), + 77: uint16(39187), + 78: uint16(39381), + 79: uint16(20171), + 80: uint16(20250), + 81: uint16(35299), + 82: uint16(22238), + 83: uint16(22602), + 84: uint16(22730), + 85: uint16(24315), + 86: uint16(24555), + 87: uint16(24618), + 88: uint16(24724), + 89: uint16(24674), + 90: uint16(25040), + 91: uint16(25106), + 92: uint16(25296), + 93: uint16(25913), + }, + 18: { + 0: uint16(39745), + 1: uint16(26214), + 2: uint16(26800), + 3: uint16(28023), + 4: uint16(28784), + 5: uint16(30028), + 6: uint16(30342), + 7: uint16(32117), + 8: uint16(33445), + 9: uint16(34809), + 10: uint16(38283), + 11: uint16(38542), + 12: uint16(35997), + 13: uint16(20977), + 14: uint16(21182), + 15: uint16(22806), + 16: uint16(21683), + 17: uint16(23475), + 18: uint16(23830), + 19: uint16(24936), + 20: uint16(27010), + 21: uint16(28079), + 22: uint16(30861), + 23: uint16(33995), + 24: uint16(34903), + 25: uint16(35442), + 26: uint16(37799), + 27: uint16(39608), + 28: uint16(28012), + 29: uint16(39336), + 30: uint16(34521), + 31: uint16(22435), + 32: uint16(26623), + 33: uint16(34510), + 34: uint16(37390), + 35: uint16(21123), + 36: uint16(22151), + 37: uint16(21508), + 38: uint16(24275), + 39: uint16(25313), + 40: uint16(25785), + 41: uint16(26684), + 42: uint16(26680), + 43: uint16(27579), + 44: uint16(29554), + 45: uint16(30906), + 46: uint16(31339), + 47: uint16(35226), + 48: uint16(35282), + 49: uint16(36203), + 50: uint16(36611), + 51: uint16(37101), + 52: uint16(38307), + 53: uint16(38548), + 54: uint16(38761), + 55: uint16(23398), + 56: uint16(23731), + 57: uint16(27005), + 58: uint16(38989), + 59: uint16(38990), + 60: uint16(25499), + 61: uint16(31520), + 62: uint16(27179), + 63: uint16(27263), + 64: uint16(26806), + 65: uint16(39949), + 66: uint16(28511), + 67: uint16(21106), + 68: uint16(21917), + 69: uint16(24688), + 70: uint16(25324), + 71: uint16(27963), + 72: uint16(28167), + 73: uint16(28369), + 74: uint16(33883), + 75: uint16(35088), + 76: uint16(36676), + 77: uint16(19988), + 78: uint16(39993), + 79: uint16(21494), + 80: uint16(26907), + 81: uint16(27194), + 82: uint16(38788), + 83: uint16(26666), + 84: uint16(20828), + 85: uint16(31427), + 86: uint16(33970), + 87: uint16(37340), + 88: uint16(37772), + 89: uint16(22107), + 90: uint16(40232), + 91: uint16(26658), + 92: uint16(33541), + 93: uint16(33841), + }, + 19: { + 0: uint16(31909), + 1: uint16(21000), + 2: uint16(33477), + 3: uint16(29926), + 4: uint16(20094), + 5: uint16(20355), + 6: uint16(20896), + 7: uint16(23506), + 8: uint16(21002), + 9: uint16(21208), + 10: uint16(21223), + 11: uint16(24059), + 12: uint16(21914), + 13: uint16(22570), + 14: uint16(23014), + 15: uint16(23436), + 16: uint16(23448), + 17: uint16(23515), + 18: uint16(24178), + 19: uint16(24185), + 20: uint16(24739), + 21: uint16(24863), + 22: uint16(24931), + 23: uint16(25022), + 24: uint16(25563), + 25: uint16(25954), + 26: uint16(26577), + 27: uint16(26707), + 28: uint16(26874), + 29: uint16(27454), + 30: uint16(27475), + 31: uint16(27735), + 32: uint16(28450), + 33: uint16(28567), + 34: uint16(28485), + 35: uint16(29872), + 36: uint16(29976), + 37: uint16(30435), + 38: uint16(30475), + 39: uint16(31487), + 40: uint16(31649), + 41: uint16(31777), + 42: uint16(32233), + 43: uint16(32566), + 44: uint16(32752), + 45: uint16(32925), + 46: uint16(33382), + 47: uint16(33694), + 48: uint16(35251), + 49: uint16(35532), + 50: uint16(36011), + 51: uint16(36996), + 52: uint16(37969), + 53: uint16(38291), + 54: uint16(38289), + 55: uint16(38306), + 56: uint16(38501), + 57: uint16(38867), + 58: uint16(39208), + 59: uint16(33304), + 60: uint16(20024), + 61: uint16(21547), + 62: uint16(23736), + 63: uint16(24012), + 64: uint16(29609), + 65: uint16(30284), + 66: uint16(30524), + 67: uint16(23721), + 68: uint16(32747), + 69: uint16(36107), + 70: uint16(38593), + 71: uint16(38929), + 72: uint16(38996), + 73: uint16(39000), + 74: uint16(20225), + 75: uint16(20238), + 76: uint16(21361), + 77: uint16(21916), + 78: uint16(22120), + 79: uint16(22522), + 80: uint16(22855), + 81: uint16(23305), + 82: uint16(23492), + 83: uint16(23696), + 84: uint16(24076), + 85: uint16(24190), + 86: uint16(24524), + 87: uint16(25582), + 88: uint16(26426), + 89: uint16(26071), + 90: uint16(26082), + 91: uint16(26399), + 92: uint16(26827), + 93: uint16(26820), + }, + 20: { + 0: uint16(27231), + 1: uint16(24112), + 2: uint16(27589), + 3: uint16(27671), + 4: uint16(27773), + 5: uint16(30079), + 6: uint16(31048), + 7: uint16(23395), + 8: uint16(31232), + 9: uint16(32000), + 10: uint16(24509), + 11: uint16(35215), + 12: uint16(35352), + 13: uint16(36020), + 14: uint16(36215), + 15: uint16(36556), + 16: uint16(36637), + 17: uint16(39138), + 18: uint16(39438), + 19: uint16(39740), + 20: uint16(20096), + 21: uint16(20605), + 22: uint16(20736), + 23: uint16(22931), + 24: uint16(23452), + 25: uint16(25135), + 26: uint16(25216), + 27: uint16(25836), + 28: uint16(27450), + 29: uint16(29344), + 30: uint16(30097), + 31: uint16(31047), + 32: uint16(32681), + 33: uint16(34811), + 34: uint16(35516), + 35: uint16(35696), + 36: uint16(25516), + 37: uint16(33738), + 38: uint16(38816), + 39: uint16(21513), + 40: uint16(21507), + 41: uint16(21931), + 42: uint16(26708), + 43: uint16(27224), + 44: uint16(35440), + 45: uint16(30759), + 46: uint16(26485), + 47: uint16(40653), + 48: uint16(21364), + 49: uint16(23458), + 50: uint16(33050), + 51: uint16(34384), + 52: uint16(36870), + 53: uint16(19992), + 54: uint16(20037), + 55: uint16(20167), + 56: uint16(20241), + 57: uint16(21450), + 58: uint16(21560), + 59: uint16(23470), + 60: uint16(24339), + 61: uint16(24613), + 62: uint16(25937), + 63: uint16(26429), + 64: uint16(27714), + 65: uint16(27762), + 66: uint16(27875), + 67: uint16(28792), + 68: uint16(29699), + 69: uint16(31350), + 70: uint16(31406), + 71: uint16(31496), + 72: uint16(32026), + 73: uint16(31998), + 74: uint16(32102), + 75: uint16(26087), + 76: uint16(29275), + 77: uint16(21435), + 78: uint16(23621), + 79: uint16(24040), + 80: uint16(25298), + 81: uint16(25312), + 82: uint16(25369), + 83: uint16(28192), + 84: uint16(34394), + 85: uint16(35377), + 86: uint16(36317), + 87: uint16(37624), + 88: uint16(28417), + 89: uint16(31142), + 90: uint16(39770), + 91: uint16(20136), + 92: uint16(20139), + 93: uint16(20140), + }, + 21: { + 0: uint16(20379), + 1: uint16(20384), + 2: uint16(20689), + 3: uint16(20807), + 4: uint16(31478), + 5: uint16(20849), + 6: uint16(20982), + 7: uint16(21332), + 8: uint16(21281), + 9: uint16(21375), + 10: uint16(21483), + 11: uint16(21932), + 12: uint16(22659), + 13: uint16(23777), + 14: uint16(24375), + 15: uint16(24394), + 16: uint16(24623), + 17: uint16(24656), + 18: uint16(24685), + 19: uint16(25375), + 20: uint16(25945), + 21: uint16(27211), + 22: uint16(27841), + 23: uint16(29378), + 24: uint16(29421), + 25: uint16(30703), + 26: uint16(33016), + 27: uint16(33029), + 28: uint16(33288), + 29: uint16(34126), + 30: uint16(37111), + 31: uint16(37857), + 32: uint16(38911), + 33: uint16(39255), + 34: uint16(39514), + 35: uint16(20208), + 36: uint16(20957), + 37: uint16(23597), + 38: uint16(26241), + 39: uint16(26989), + 40: uint16(23616), + 41: uint16(26354), + 42: uint16(26997), + 43: uint16(29577), + 44: uint16(26704), + 45: uint16(31873), + 46: uint16(20677), + 47: uint16(21220), + 48: uint16(22343), + 49: uint16(24062), + 50: uint16(37670), + 51: uint16(26020), + 52: uint16(27427), + 53: uint16(27453), + 54: uint16(29748), + 55: uint16(31105), + 56: uint16(31165), + 57: uint16(31563), + 58: uint16(32202), + 59: uint16(33465), + 60: uint16(33740), + 61: uint16(34943), + 62: uint16(35167), + 63: uint16(35641), + 64: uint16(36817), + 65: uint16(37329), + 66: uint16(21535), + 67: uint16(37504), + 68: uint16(20061), + 69: uint16(20534), + 70: uint16(21477), + 71: uint16(21306), + 72: uint16(29399), + 73: uint16(29590), + 74: uint16(30697), + 75: uint16(33510), + 76: uint16(36527), + 77: uint16(39366), + 78: uint16(39368), + 79: uint16(39378), + 80: uint16(20855), + 81: uint16(24858), + 82: uint16(34398), + 83: uint16(21936), + 84: uint16(31354), + 85: uint16(20598), + 86: uint16(23507), + 87: uint16(36935), + 88: uint16(38533), + 89: uint16(20018), + 90: uint16(27355), + 91: uint16(37351), + 92: uint16(23633), + 93: uint16(23624), + }, + 22: { + 0: uint16(25496), + 1: uint16(31391), + 2: uint16(27795), + 3: uint16(38772), + 4: uint16(36705), + 5: uint16(31402), + 6: uint16(29066), + 7: uint16(38536), + 8: uint16(31874), + 9: uint16(26647), + 10: uint16(32368), + 11: uint16(26705), + 12: uint16(37740), + 13: uint16(21234), + 14: uint16(21531), + 15: uint16(34219), + 16: uint16(35347), + 17: uint16(32676), + 18: uint16(36557), + 19: uint16(37089), + 20: uint16(21350), + 21: uint16(34952), + 22: uint16(31041), + 23: uint16(20418), + 24: uint16(20670), + 25: uint16(21009), + 26: uint16(20804), + 27: uint16(21843), + 28: uint16(22317), + 29: uint16(29674), + 30: uint16(22411), + 31: uint16(22865), + 32: uint16(24418), + 33: uint16(24452), + 34: uint16(24693), + 35: uint16(24950), + 36: uint16(24935), + 37: uint16(25001), + 38: uint16(25522), + 39: uint16(25658), + 40: uint16(25964), + 41: uint16(26223), + 42: uint16(26690), + 43: uint16(28179), + 44: uint16(30054), + 45: uint16(31293), + 46: uint16(31995), + 47: uint16(32076), + 48: uint16(32153), + 49: uint16(32331), + 50: uint16(32619), + 51: uint16(33550), + 52: uint16(33610), + 53: uint16(34509), + 54: uint16(35336), + 55: uint16(35427), + 56: uint16(35686), + 57: uint16(36605), + 58: uint16(38938), + 59: uint16(40335), + 60: uint16(33464), + 61: uint16(36814), + 62: uint16(39912), + 63: uint16(21127), + 64: uint16(25119), + 65: uint16(25731), + 66: uint16(28608), + 67: uint16(38553), + 68: uint16(26689), + 69: uint16(20625), + 70: uint16(27424), + 71: uint16(27770), + 72: uint16(28500), + 73: uint16(31348), + 74: uint16(32080), + 75: uint16(34880), + 76: uint16(35363), + 77: uint16(26376), + 78: uint16(20214), + 79: uint16(20537), + 80: uint16(20518), + 81: uint16(20581), + 82: uint16(20860), + 83: uint16(21048), + 84: uint16(21091), + 85: uint16(21927), + 86: uint16(22287), + 87: uint16(22533), + 88: uint16(23244), + 89: uint16(24314), + 90: uint16(25010), + 91: uint16(25080), + 92: uint16(25331), + 93: uint16(25458), + }, + 23: { + 0: uint16(26908), + 1: uint16(27177), + 2: uint16(29309), + 3: uint16(29356), + 4: uint16(29486), + 5: uint16(30740), + 6: uint16(30831), + 7: uint16(32121), + 8: uint16(30476), + 9: uint16(32937), + 10: uint16(35211), + 11: uint16(35609), + 12: uint16(36066), + 13: uint16(36562), + 14: uint16(36963), + 15: uint16(37749), + 16: uint16(38522), + 17: uint16(38997), + 18: uint16(39443), + 19: uint16(40568), + 20: uint16(20803), + 21: uint16(21407), + 22: uint16(21427), + 23: uint16(24187), + 24: uint16(24358), + 25: uint16(28187), + 26: uint16(28304), + 27: uint16(29572), + 28: uint16(29694), + 29: uint16(32067), + 30: uint16(33335), + 31: uint16(35328), + 32: uint16(35578), + 33: uint16(38480), + 34: uint16(20046), + 35: uint16(20491), + 36: uint16(21476), + 37: uint16(21628), + 38: uint16(22266), + 39: uint16(22993), + 40: uint16(23396), + 41: uint16(24049), + 42: uint16(24235), + 43: uint16(24359), + 44: uint16(25144), + 45: uint16(25925), + 46: uint16(26543), + 47: uint16(28246), + 48: uint16(29392), + 49: uint16(31946), + 50: uint16(34996), + 51: uint16(32929), + 52: uint16(32993), + 53: uint16(33776), + 54: uint16(34382), + 55: uint16(35463), + 56: uint16(36328), + 57: uint16(37431), + 58: uint16(38599), + 59: uint16(39015), + 60: uint16(40723), + 61: uint16(20116), + 62: uint16(20114), + 63: uint16(20237), + 64: uint16(21320), + 65: uint16(21577), + 66: uint16(21566), + 67: uint16(23087), + 68: uint16(24460), + 69: uint16(24481), + 70: uint16(24735), + 71: uint16(26791), + 72: uint16(27278), + 73: uint16(29786), + 74: uint16(30849), + 75: uint16(35486), + 76: uint16(35492), + 77: uint16(35703), + 78: uint16(37264), + 79: uint16(20062), + 80: uint16(39881), + 81: uint16(20132), + 82: uint16(20348), + 83: uint16(20399), + 84: uint16(20505), + 85: uint16(20502), + 86: uint16(20809), + 87: uint16(20844), + 88: uint16(21151), + 89: uint16(21177), + 90: uint16(21246), + 91: uint16(21402), + 92: uint16(21475), + 93: uint16(21521), + }, + 24: { + 0: uint16(21518), + 1: uint16(21897), + 2: uint16(22353), + 3: uint16(22434), + 4: uint16(22909), + 5: uint16(23380), + 6: uint16(23389), + 7: uint16(23439), + 8: uint16(24037), + 9: uint16(24039), + 10: uint16(24055), + 11: uint16(24184), + 12: uint16(24195), + 13: uint16(24218), + 14: uint16(24247), + 15: uint16(24344), + 16: uint16(24658), + 17: uint16(24908), + 18: uint16(25239), + 19: uint16(25304), + 20: uint16(25511), + 21: uint16(25915), + 22: uint16(26114), + 23: uint16(26179), + 24: uint16(26356), + 25: uint16(26477), + 26: uint16(26657), + 27: uint16(26775), + 28: uint16(27083), + 29: uint16(27743), + 30: uint16(27946), + 31: uint16(28009), + 32: uint16(28207), + 33: uint16(28317), + 34: uint16(30002), + 35: uint16(30343), + 36: uint16(30828), + 37: uint16(31295), + 38: uint16(31968), + 39: uint16(32005), + 40: uint16(32024), + 41: uint16(32094), + 42: uint16(32177), + 43: uint16(32789), + 44: uint16(32771), + 45: uint16(32943), + 46: uint16(32945), + 47: uint16(33108), + 48: uint16(33167), + 49: uint16(33322), + 50: uint16(33618), + 51: uint16(34892), + 52: uint16(34913), + 53: uint16(35611), + 54: uint16(36002), + 55: uint16(36092), + 56: uint16(37066), + 57: uint16(37237), + 58: uint16(37489), + 59: uint16(30783), + 60: uint16(37628), + 61: uint16(38308), + 62: uint16(38477), + 63: uint16(38917), + 64: uint16(39321), + 65: uint16(39640), + 66: uint16(40251), + 67: uint16(21083), + 68: uint16(21163), + 69: uint16(21495), + 70: uint16(21512), + 71: uint16(22741), + 72: uint16(25335), + 73: uint16(28640), + 74: uint16(35946), + 75: uint16(36703), + 76: uint16(40633), + 77: uint16(20811), + 78: uint16(21051), + 79: uint16(21578), + 80: uint16(22269), + 81: uint16(31296), + 82: uint16(37239), + 83: uint16(40288), + 84: uint16(40658), + 85: uint16(29508), + 86: uint16(28425), + 87: uint16(33136), + 88: uint16(29969), + 89: uint16(24573), + 90: uint16(24794), + 91: uint16(39592), + 92: uint16(29403), + 93: uint16(36796), + }, + 25: { + 0: uint16(27492), + 1: uint16(38915), + 2: uint16(20170), + 3: uint16(22256), + 4: uint16(22372), + 5: uint16(22718), + 6: uint16(23130), + 7: uint16(24680), + 8: uint16(25031), + 9: uint16(26127), + 10: uint16(26118), + 11: uint16(26681), + 12: uint16(26801), + 13: uint16(28151), + 14: uint16(30165), + 15: uint16(32058), + 16: uint16(33390), + 17: uint16(39746), + 18: uint16(20123), + 19: uint16(20304), + 20: uint16(21449), + 21: uint16(21766), + 22: uint16(23919), + 23: uint16(24038), + 24: uint16(24046), + 25: uint16(26619), + 26: uint16(27801), + 27: uint16(29811), + 28: uint16(30722), + 29: uint16(35408), + 30: uint16(37782), + 31: uint16(35039), + 32: uint16(22352), + 33: uint16(24231), + 34: uint16(25387), + 35: uint16(20661), + 36: uint16(20652), + 37: uint16(20877), + 38: uint16(26368), + 39: uint16(21705), + 40: uint16(22622), + 41: uint16(22971), + 42: uint16(23472), + 43: uint16(24425), + 44: uint16(25165), + 45: uint16(25505), + 46: uint16(26685), + 47: uint16(27507), + 48: uint16(28168), + 49: uint16(28797), + 50: uint16(37319), + 51: uint16(29312), + 52: uint16(30741), + 53: uint16(30758), + 54: uint16(31085), + 55: uint16(25998), + 56: uint16(32048), + 57: uint16(33756), + 58: uint16(35009), + 59: uint16(36617), + 60: uint16(38555), + 61: uint16(21092), + 62: uint16(22312), + 63: uint16(26448), + 64: uint16(32618), + 65: uint16(36001), + 66: uint16(20916), + 67: uint16(22338), + 68: uint16(38442), + 69: uint16(22586), + 70: uint16(27018), + 71: uint16(32948), + 72: uint16(21682), + 73: uint16(23822), + 74: uint16(22524), + 75: uint16(30869), + 76: uint16(40442), + 77: uint16(20316), + 78: uint16(21066), + 79: uint16(21643), + 80: uint16(25662), + 81: uint16(26152), + 82: uint16(26388), + 83: uint16(26613), + 84: uint16(31364), + 85: uint16(31574), + 86: uint16(32034), + 87: uint16(37679), + 88: uint16(26716), + 89: uint16(39853), + 90: uint16(31545), + 91: uint16(21273), + 92: uint16(20874), + 93: uint16(21047), + }, + 26: { + 0: uint16(23519), + 1: uint16(25334), + 2: uint16(25774), + 3: uint16(25830), + 4: uint16(26413), + 5: uint16(27578), + 6: uint16(34217), + 7: uint16(38609), + 8: uint16(30352), + 9: uint16(39894), + 10: uint16(25420), + 11: uint16(37638), + 12: uint16(39851), + 13: uint16(30399), + 14: uint16(26194), + 15: uint16(19977), + 16: uint16(20632), + 17: uint16(21442), + 18: uint16(23665), + 19: uint16(24808), + 20: uint16(25746), + 21: uint16(25955), + 22: uint16(26719), + 23: uint16(29158), + 24: uint16(29642), + 25: uint16(29987), + 26: uint16(31639), + 27: uint16(32386), + 28: uint16(34453), + 29: uint16(35715), + 30: uint16(36059), + 31: uint16(37240), + 32: uint16(39184), + 33: uint16(26028), + 34: uint16(26283), + 35: uint16(27531), + 36: uint16(20181), + 37: uint16(20180), + 38: uint16(20282), + 39: uint16(20351), + 40: uint16(21050), + 41: uint16(21496), + 42: uint16(21490), + 43: uint16(21987), + 44: uint16(22235), + 45: uint16(22763), + 46: uint16(22987), + 47: uint16(22985), + 48: uint16(23039), + 49: uint16(23376), + 50: uint16(23629), + 51: uint16(24066), + 52: uint16(24107), + 53: uint16(24535), + 54: uint16(24605), + 55: uint16(25351), + 56: uint16(25903), + 57: uint16(23388), + 58: uint16(26031), + 59: uint16(26045), + 60: uint16(26088), + 61: uint16(26525), + 62: uint16(27490), + 63: uint16(27515), + 64: uint16(27663), + 65: uint16(29509), + 66: uint16(31049), + 67: uint16(31169), + 68: uint16(31992), + 69: uint16(32025), + 70: uint16(32043), + 71: uint16(32930), + 72: uint16(33026), + 73: uint16(33267), + 74: uint16(35222), + 75: uint16(35422), + 76: uint16(35433), + 77: uint16(35430), + 78: uint16(35468), + 79: uint16(35566), + 80: uint16(36039), + 81: uint16(36060), + 82: uint16(38604), + 83: uint16(39164), + 84: uint16(27503), + 85: uint16(20107), + 86: uint16(20284), + 87: uint16(20365), + 88: uint16(20816), + 89: uint16(23383), + 90: uint16(23546), + 91: uint16(24904), + 92: uint16(25345), + 93: uint16(26178), + }, + 27: { + 0: uint16(27425), + 1: uint16(28363), + 2: uint16(27835), + 3: uint16(29246), + 4: uint16(29885), + 5: uint16(30164), + 6: uint16(30913), + 7: uint16(31034), + 8: uint16(32780), + 9: uint16(32819), + 10: uint16(33258), + 11: uint16(33940), + 12: uint16(36766), + 13: uint16(27728), + 14: uint16(40575), + 15: uint16(24335), + 16: uint16(35672), + 17: uint16(40235), + 18: uint16(31482), + 19: uint16(36600), + 20: uint16(23437), + 21: uint16(38635), + 22: uint16(19971), + 23: uint16(21489), + 24: uint16(22519), + 25: uint16(22833), + 26: uint16(23241), + 27: uint16(23460), + 28: uint16(24713), + 29: uint16(28287), + 30: uint16(28422), + 31: uint16(30142), + 32: uint16(36074), + 33: uint16(23455), + 34: uint16(34048), + 35: uint16(31712), + 36: uint16(20594), + 37: uint16(26612), + 38: uint16(33437), + 39: uint16(23649), + 40: uint16(34122), + 41: uint16(32286), + 42: uint16(33294), + 43: uint16(20889), + 44: uint16(23556), + 45: uint16(25448), + 46: uint16(36198), + 47: uint16(26012), + 48: uint16(29038), + 49: uint16(31038), + 50: uint16(32023), + 51: uint16(32773), + 52: uint16(35613), + 53: uint16(36554), + 54: uint16(36974), + 55: uint16(34503), + 56: uint16(37034), + 57: uint16(20511), + 58: uint16(21242), + 59: uint16(23610), + 60: uint16(26451), + 61: uint16(28796), + 62: uint16(29237), + 63: uint16(37196), + 64: uint16(37320), + 65: uint16(37675), + 66: uint16(33509), + 67: uint16(23490), + 68: uint16(24369), + 69: uint16(24825), + 70: uint16(20027), + 71: uint16(21462), + 72: uint16(23432), + 73: uint16(25163), + 74: uint16(26417), + 75: uint16(27530), + 76: uint16(29417), + 77: uint16(29664), + 78: uint16(31278), + 79: uint16(33131), + 80: uint16(36259), + 81: uint16(37202), + 82: uint16(39318), + 83: uint16(20754), + 84: uint16(21463), + 85: uint16(21610), + 86: uint16(23551), + 87: uint16(25480), + 88: uint16(27193), + 89: uint16(32172), + 90: uint16(38656), + 91: uint16(22234), + 92: uint16(21454), + 93: uint16(21608), + }, + 28: { + 0: uint16(23447), + 1: uint16(23601), + 2: uint16(24030), + 3: uint16(20462), + 4: uint16(24833), + 5: uint16(25342), + 6: uint16(27954), + 7: uint16(31168), + 8: uint16(31179), + 9: uint16(32066), + 10: uint16(32333), + 11: uint16(32722), + 12: uint16(33261), + 13: uint16(33311), + 14: uint16(33936), + 15: uint16(34886), + 16: uint16(35186), + 17: uint16(35728), + 18: uint16(36468), + 19: uint16(36655), + 20: uint16(36913), + 21: uint16(37195), + 22: uint16(37228), + 23: uint16(38598), + 24: uint16(37276), + 25: uint16(20160), + 26: uint16(20303), + 27: uint16(20805), + 28: uint16(21313), + 29: uint16(24467), + 30: uint16(25102), + 31: uint16(26580), + 32: uint16(27713), + 33: uint16(28171), + 34: uint16(29539), + 35: uint16(32294), + 36: uint16(37325), + 37: uint16(37507), + 38: uint16(21460), + 39: uint16(22809), + 40: uint16(23487), + 41: uint16(28113), + 42: uint16(31069), + 43: uint16(32302), + 44: uint16(31899), + 45: uint16(22654), + 46: uint16(29087), + 47: uint16(20986), + 48: uint16(34899), + 49: uint16(36848), + 50: uint16(20426), + 51: uint16(23803), + 52: uint16(26149), + 53: uint16(30636), + 54: uint16(31459), + 55: uint16(33308), + 56: uint16(39423), + 57: uint16(20934), + 58: uint16(24490), + 59: uint16(26092), + 60: uint16(26991), + 61: uint16(27529), + 62: uint16(28147), + 63: uint16(28310), + 64: uint16(28516), + 65: uint16(30462), + 66: uint16(32020), + 67: uint16(24033), + 68: uint16(36981), + 69: uint16(37255), + 70: uint16(38918), + 71: uint16(20966), + 72: uint16(21021), + 73: uint16(25152), + 74: uint16(26257), + 75: uint16(26329), + 76: uint16(28186), + 77: uint16(24246), + 78: uint16(32210), + 79: uint16(32626), + 80: uint16(26360), + 81: uint16(34223), + 82: uint16(34295), + 83: uint16(35576), + 84: uint16(21161), + 85: uint16(21465), + 86: uint16(22899), + 87: uint16(24207), + 88: uint16(24464), + 89: uint16(24661), + 90: uint16(37604), + 91: uint16(38500), + 92: uint16(20663), + 93: uint16(20767), + }, + 29: { + 0: uint16(21213), + 1: uint16(21280), + 2: uint16(21319), + 3: uint16(21484), + 4: uint16(21736), + 5: uint16(21830), + 6: uint16(21809), + 7: uint16(22039), + 8: uint16(22888), + 9: uint16(22974), + 10: uint16(23100), + 11: uint16(23477), + 12: uint16(23558), + 13: uint16(23567), + 14: uint16(23569), + 15: uint16(23578), + 16: uint16(24196), + 17: uint16(24202), + 18: uint16(24288), + 19: uint16(24432), + 20: uint16(25215), + 21: uint16(25220), + 22: uint16(25307), + 23: uint16(25484), + 24: uint16(25463), + 25: uint16(26119), + 26: uint16(26124), + 27: uint16(26157), + 28: uint16(26230), + 29: uint16(26494), + 30: uint16(26786), + 31: uint16(27167), + 32: uint16(27189), + 33: uint16(27836), + 34: uint16(28040), + 35: uint16(28169), + 36: uint16(28248), + 37: uint16(28988), + 38: uint16(28966), + 39: uint16(29031), + 40: uint16(30151), + 41: uint16(30465), + 42: uint16(30813), + 43: uint16(30977), + 44: uint16(31077), + 45: uint16(31216), + 46: uint16(31456), + 47: uint16(31505), + 48: uint16(31911), + 49: uint16(32057), + 50: uint16(32918), + 51: uint16(33750), + 52: uint16(33931), + 53: uint16(34121), + 54: uint16(34909), + 55: uint16(35059), + 56: uint16(35359), + 57: uint16(35388), + 58: uint16(35412), + 59: uint16(35443), + 60: uint16(35937), + 61: uint16(36062), + 62: uint16(37284), + 63: uint16(37478), + 64: uint16(37758), + 65: uint16(37912), + 66: uint16(38556), + 67: uint16(38808), + 68: uint16(19978), + 69: uint16(19976), + 70: uint16(19998), + 71: uint16(20055), + 72: uint16(20887), + 73: uint16(21104), + 74: uint16(22478), + 75: uint16(22580), + 76: uint16(22732), + 77: uint16(23330), + 78: uint16(24120), + 79: uint16(24773), + 80: uint16(25854), + 81: uint16(26465), + 82: uint16(26454), + 83: uint16(27972), + 84: uint16(29366), + 85: uint16(30067), + 86: uint16(31331), + 87: uint16(33976), + 88: uint16(35698), + 89: uint16(37304), + 90: uint16(37664), + 91: uint16(22065), + 92: uint16(22516), + 93: uint16(39166), + }, + 30: { + 0: uint16(25325), + 1: uint16(26893), + 2: uint16(27542), + 3: uint16(29165), + 4: uint16(32340), + 5: uint16(32887), + 6: uint16(33394), + 7: uint16(35302), + 8: uint16(39135), + 9: uint16(34645), + 10: uint16(36785), + 11: uint16(23611), + 12: uint16(20280), + 13: uint16(20449), + 14: uint16(20405), + 15: uint16(21767), + 16: uint16(23072), + 17: uint16(23517), + 18: uint16(23529), + 19: uint16(24515), + 20: uint16(24910), + 21: uint16(25391), + 22: uint16(26032), + 23: uint16(26187), + 24: uint16(26862), + 25: uint16(27035), + 26: uint16(28024), + 27: uint16(28145), + 28: uint16(30003), + 29: uint16(30137), + 30: uint16(30495), + 31: uint16(31070), + 32: uint16(31206), + 33: uint16(32051), + 34: uint16(33251), + 35: uint16(33455), + 36: uint16(34218), + 37: uint16(35242), + 38: uint16(35386), + 39: uint16(36523), + 40: uint16(36763), + 41: uint16(36914), + 42: uint16(37341), + 43: uint16(38663), + 44: uint16(20154), + 45: uint16(20161), + 46: uint16(20995), + 47: uint16(22645), + 48: uint16(22764), + 49: uint16(23563), + 50: uint16(29978), + 51: uint16(23613), + 52: uint16(33102), + 53: uint16(35338), + 54: uint16(36805), + 55: uint16(38499), + 56: uint16(38765), + 57: uint16(31525), + 58: uint16(35535), + 59: uint16(38920), + 60: uint16(37218), + 61: uint16(22259), + 62: uint16(21416), + 63: uint16(36887), + 64: uint16(21561), + 65: uint16(22402), + 66: uint16(24101), + 67: uint16(25512), + 68: uint16(27700), + 69: uint16(28810), + 70: uint16(30561), + 71: uint16(31883), + 72: uint16(32736), + 73: uint16(34928), + 74: uint16(36930), + 75: uint16(37204), + 76: uint16(37648), + 77: uint16(37656), + 78: uint16(38543), + 79: uint16(29790), + 80: uint16(39620), + 81: uint16(23815), + 82: uint16(23913), + 83: uint16(25968), + 84: uint16(26530), + 85: uint16(36264), + 86: uint16(38619), + 87: uint16(25454), + 88: uint16(26441), + 89: uint16(26905), + 90: uint16(33733), + 91: uint16(38935), + 92: uint16(38592), + 93: uint16(35070), + }, + 31: { + 0: uint16(28548), + 1: uint16(25722), + 2: uint16(23544), + 3: uint16(19990), + 4: uint16(28716), + 5: uint16(30045), + 6: uint16(26159), + 7: uint16(20932), + 8: uint16(21046), + 9: uint16(21218), + 10: uint16(22995), + 11: uint16(24449), + 12: uint16(24615), + 13: uint16(25104), + 14: uint16(25919), + 15: uint16(25972), + 16: uint16(26143), + 17: uint16(26228), + 18: uint16(26866), + 19: uint16(26646), + 20: uint16(27491), + 21: uint16(28165), + 22: uint16(29298), + 23: uint16(29983), + 24: uint16(30427), + 25: uint16(31934), + 26: uint16(32854), + 27: uint16(22768), + 28: uint16(35069), + 29: uint16(35199), + 30: uint16(35488), + 31: uint16(35475), + 32: uint16(35531), + 33: uint16(36893), + 34: uint16(37266), + 35: uint16(38738), + 36: uint16(38745), + 37: uint16(25993), + 38: uint16(31246), + 39: uint16(33030), + 40: uint16(38587), + 41: uint16(24109), + 42: uint16(24796), + 43: uint16(25114), + 44: uint16(26021), + 45: uint16(26132), + 46: uint16(26512), + 47: uint16(30707), + 48: uint16(31309), + 49: uint16(31821), + 50: uint16(32318), + 51: uint16(33034), + 52: uint16(36012), + 53: uint16(36196), + 54: uint16(36321), + 55: uint16(36447), + 56: uint16(30889), + 57: uint16(20999), + 58: uint16(25305), + 59: uint16(25509), + 60: uint16(25666), + 61: uint16(25240), + 62: uint16(35373), + 63: uint16(31363), + 64: uint16(31680), + 65: uint16(35500), + 66: uint16(38634), + 67: uint16(32118), + 68: uint16(33292), + 69: uint16(34633), + 70: uint16(20185), + 71: uint16(20808), + 72: uint16(21315), + 73: uint16(21344), + 74: uint16(23459), + 75: uint16(23554), + 76: uint16(23574), + 77: uint16(24029), + 78: uint16(25126), + 79: uint16(25159), + 80: uint16(25776), + 81: uint16(26643), + 82: uint16(26676), + 83: uint16(27849), + 84: uint16(27973), + 85: uint16(27927), + 86: uint16(26579), + 87: uint16(28508), + 88: uint16(29006), + 89: uint16(29053), + 90: uint16(26059), + 91: uint16(31359), + 92: uint16(31661), + 93: uint16(32218), + }, + 32: { + 0: uint16(32330), + 1: uint16(32680), + 2: uint16(33146), + 3: uint16(33307), + 4: uint16(33337), + 5: uint16(34214), + 6: uint16(35438), + 7: uint16(36046), + 8: uint16(36341), + 9: uint16(36984), + 10: uint16(36983), + 11: uint16(37549), + 12: uint16(37521), + 13: uint16(38275), + 14: uint16(39854), + 15: uint16(21069), + 16: uint16(21892), + 17: uint16(28472), + 18: uint16(28982), + 19: uint16(20840), + 20: uint16(31109), + 21: uint16(32341), + 22: uint16(33203), + 23: uint16(31950), + 24: uint16(22092), + 25: uint16(22609), + 26: uint16(23720), + 27: uint16(25514), + 28: uint16(26366), + 29: uint16(26365), + 30: uint16(26970), + 31: uint16(29401), + 32: uint16(30095), + 33: uint16(30094), + 34: uint16(30990), + 35: uint16(31062), + 36: uint16(31199), + 37: uint16(31895), + 38: uint16(32032), + 39: uint16(32068), + 40: uint16(34311), + 41: uint16(35380), + 42: uint16(38459), + 43: uint16(36961), + 44: uint16(40736), + 45: uint16(20711), + 46: uint16(21109), + 47: uint16(21452), + 48: uint16(21474), + 49: uint16(20489), + 50: uint16(21930), + 51: uint16(22766), + 52: uint16(22863), + 53: uint16(29245), + 54: uint16(23435), + 55: uint16(23652), + 56: uint16(21277), + 57: uint16(24803), + 58: uint16(24819), + 59: uint16(25436), + 60: uint16(25475), + 61: uint16(25407), + 62: uint16(25531), + 63: uint16(25805), + 64: uint16(26089), + 65: uint16(26361), + 66: uint16(24035), + 67: uint16(27085), + 68: uint16(27133), + 69: uint16(28437), + 70: uint16(29157), + 71: uint16(20105), + 72: uint16(30185), + 73: uint16(30456), + 74: uint16(31379), + 75: uint16(31967), + 76: uint16(32207), + 77: uint16(32156), + 78: uint16(32865), + 79: uint16(33609), + 80: uint16(33624), + 81: uint16(33900), + 82: uint16(33980), + 83: uint16(34299), + 84: uint16(35013), + 85: uint16(36208), + 86: uint16(36865), + 87: uint16(36973), + 88: uint16(37783), + 89: uint16(38684), + 90: uint16(39442), + 91: uint16(20687), + 92: uint16(22679), + 93: uint16(24974), + }, + 33: { + 0: uint16(33235), + 1: uint16(34101), + 2: uint16(36104), + 3: uint16(36896), + 4: uint16(20419), + 5: uint16(20596), + 6: uint16(21063), + 7: uint16(21363), + 8: uint16(24687), + 9: uint16(25417), + 10: uint16(26463), + 11: uint16(28204), + 12: uint16(36275), + 13: uint16(36895), + 14: uint16(20439), + 15: uint16(23646), + 16: uint16(36042), + 17: uint16(26063), + 18: uint16(32154), + 19: uint16(21330), + 20: uint16(34966), + 21: uint16(20854), + 22: uint16(25539), + 23: uint16(23384), + 24: uint16(23403), + 25: uint16(23562), + 26: uint16(25613), + 27: uint16(26449), + 28: uint16(36956), + 29: uint16(20182), + 30: uint16(22810), + 31: uint16(22826), + 32: uint16(27760), + 33: uint16(35409), + 34: uint16(21822), + 35: uint16(22549), + 36: uint16(22949), + 37: uint16(24816), + 38: uint16(25171), + 39: uint16(26561), + 40: uint16(33333), + 41: uint16(26965), + 42: uint16(38464), + 43: uint16(39364), + 44: uint16(39464), + 45: uint16(20307), + 46: uint16(22534), + 47: uint16(23550), + 48: uint16(32784), + 49: uint16(23729), + 50: uint16(24111), + 51: uint16(24453), + 52: uint16(24608), + 53: uint16(24907), + 54: uint16(25140), + 55: uint16(26367), + 56: uint16(27888), + 57: uint16(28382), + 58: uint16(32974), + 59: uint16(33151), + 60: uint16(33492), + 61: uint16(34955), + 62: uint16(36024), + 63: uint16(36864), + 64: uint16(36910), + 65: uint16(38538), + 66: uint16(40667), + 67: uint16(39899), + 68: uint16(20195), + 69: uint16(21488), + 70: uint16(22823), + 71: uint16(31532), + 72: uint16(37261), + 73: uint16(38988), + 74: uint16(40441), + 75: uint16(28381), + 76: uint16(28711), + 77: uint16(21331), + 78: uint16(21828), + 79: uint16(23429), + 80: uint16(25176), + 81: uint16(25246), + 82: uint16(25299), + 83: uint16(27810), + 84: uint16(28655), + 85: uint16(29730), + 86: uint16(35351), + 87: uint16(37944), + 88: uint16(28609), + 89: uint16(35582), + 90: uint16(33592), + 91: uint16(20967), + 92: uint16(34552), + 93: uint16(21482), + }, + 34: { + 0: uint16(21481), + 1: uint16(20294), + 2: uint16(36948), + 3: uint16(36784), + 4: uint16(22890), + 5: uint16(33073), + 6: uint16(24061), + 7: uint16(31466), + 8: uint16(36799), + 9: uint16(26842), + 10: uint16(35895), + 11: uint16(29432), + 12: uint16(40008), + 13: uint16(27197), + 14: uint16(35504), + 15: uint16(20025), + 16: uint16(21336), + 17: uint16(22022), + 18: uint16(22374), + 19: uint16(25285), + 20: uint16(25506), + 21: uint16(26086), + 22: uint16(27470), + 23: uint16(28129), + 24: uint16(28251), + 25: uint16(28845), + 26: uint16(30701), + 27: uint16(31471), + 28: uint16(31658), + 29: uint16(32187), + 30: uint16(32829), + 31: uint16(32966), + 32: uint16(34507), + 33: uint16(35477), + 34: uint16(37723), + 35: uint16(22243), + 36: uint16(22727), + 37: uint16(24382), + 38: uint16(26029), + 39: uint16(26262), + 40: uint16(27264), + 41: uint16(27573), + 42: uint16(30007), + 43: uint16(35527), + 44: uint16(20516), + 45: uint16(30693), + 46: uint16(22320), + 47: uint16(24347), + 48: uint16(24677), + 49: uint16(26234), + 50: uint16(27744), + 51: uint16(30196), + 52: uint16(31258), + 53: uint16(32622), + 54: uint16(33268), + 55: uint16(34584), + 56: uint16(36933), + 57: uint16(39347), + 58: uint16(31689), + 59: uint16(30044), + 60: uint16(31481), + 61: uint16(31569), + 62: uint16(33988), + 63: uint16(36880), + 64: uint16(31209), + 65: uint16(31378), + 66: uint16(33590), + 67: uint16(23265), + 68: uint16(30528), + 69: uint16(20013), + 70: uint16(20210), + 71: uint16(23449), + 72: uint16(24544), + 73: uint16(25277), + 74: uint16(26172), + 75: uint16(26609), + 76: uint16(27880), + 77: uint16(34411), + 78: uint16(34935), + 79: uint16(35387), + 80: uint16(37198), + 81: uint16(37619), + 82: uint16(39376), + 83: uint16(27159), + 84: uint16(28710), + 85: uint16(29482), + 86: uint16(33511), + 87: uint16(33879), + 88: uint16(36015), + 89: uint16(19969), + 90: uint16(20806), + 91: uint16(20939), + 92: uint16(21899), + 93: uint16(23541), + }, + 35: { + 0: uint16(24086), + 1: uint16(24115), + 2: uint16(24193), + 3: uint16(24340), + 4: uint16(24373), + 5: uint16(24427), + 6: uint16(24500), + 7: uint16(25074), + 8: uint16(25361), + 9: uint16(26274), + 10: uint16(26397), + 11: uint16(28526), + 12: uint16(29266), + 13: uint16(30010), + 14: uint16(30522), + 15: uint16(32884), + 16: uint16(33081), + 17: uint16(33144), + 18: uint16(34678), + 19: uint16(35519), + 20: uint16(35548), + 21: uint16(36229), + 22: uint16(36339), + 23: uint16(37530), + 24: uint16(38263), + 25: uint16(38914), + 26: uint16(40165), + 27: uint16(21189), + 28: uint16(25431), + 29: uint16(30452), + 30: uint16(26389), + 31: uint16(27784), + 32: uint16(29645), + 33: uint16(36035), + 34: uint16(37806), + 35: uint16(38515), + 36: uint16(27941), + 37: uint16(22684), + 38: uint16(26894), + 39: uint16(27084), + 40: uint16(36861), + 41: uint16(37786), + 42: uint16(30171), + 43: uint16(36890), + 44: uint16(22618), + 45: uint16(26626), + 46: uint16(25524), + 47: uint16(27131), + 48: uint16(20291), + 49: uint16(28460), + 50: uint16(26584), + 51: uint16(36795), + 52: uint16(34086), + 53: uint16(32180), + 54: uint16(37716), + 55: uint16(26943), + 56: uint16(28528), + 57: uint16(22378), + 58: uint16(22775), + 59: uint16(23340), + 60: uint16(32044), + 61: uint16(29226), + 62: uint16(21514), + 63: uint16(37347), + 64: uint16(40372), + 65: uint16(20141), + 66: uint16(20302), + 67: uint16(20572), + 68: uint16(20597), + 69: uint16(21059), + 70: uint16(35998), + 71: uint16(21576), + 72: uint16(22564), + 73: uint16(23450), + 74: uint16(24093), + 75: uint16(24213), + 76: uint16(24237), + 77: uint16(24311), + 78: uint16(24351), + 79: uint16(24716), + 80: uint16(25269), + 81: uint16(25402), + 82: uint16(25552), + 83: uint16(26799), + 84: uint16(27712), + 85: uint16(30855), + 86: uint16(31118), + 87: uint16(31243), + 88: uint16(32224), + 89: uint16(33351), + 90: uint16(35330), + 91: uint16(35558), + 92: uint16(36420), + 93: uint16(36883), + }, + 36: { + 0: uint16(37048), + 1: uint16(37165), + 2: uint16(37336), + 3: uint16(40718), + 4: uint16(27877), + 5: uint16(25688), + 6: uint16(25826), + 7: uint16(25973), + 8: uint16(28404), + 9: uint16(30340), + 10: uint16(31515), + 11: uint16(36969), + 12: uint16(37841), + 13: uint16(28346), + 14: uint16(21746), + 15: uint16(24505), + 16: uint16(25764), + 17: uint16(36685), + 18: uint16(36845), + 19: uint16(37444), + 20: uint16(20856), + 21: uint16(22635), + 22: uint16(22825), + 23: uint16(23637), + 24: uint16(24215), + 25: uint16(28155), + 26: uint16(32399), + 27: uint16(29980), + 28: uint16(36028), + 29: uint16(36578), + 30: uint16(39003), + 31: uint16(28857), + 32: uint16(20253), + 33: uint16(27583), + 34: uint16(28593), + 35: uint16(30000), + 36: uint16(38651), + 37: uint16(20814), + 38: uint16(21520), + 39: uint16(22581), + 40: uint16(22615), + 41: uint16(22956), + 42: uint16(23648), + 43: uint16(24466), + 44: uint16(26007), + 45: uint16(26460), + 46: uint16(28193), + 47: uint16(30331), + 48: uint16(33759), + 49: uint16(36077), + 50: uint16(36884), + 51: uint16(37117), + 52: uint16(37709), + 53: uint16(30757), + 54: uint16(30778), + 55: uint16(21162), + 56: uint16(24230), + 57: uint16(22303), + 58: uint16(22900), + 59: uint16(24594), + 60: uint16(20498), + 61: uint16(20826), + 62: uint16(20908), + 63: uint16(20941), + 64: uint16(20992), + 65: uint16(21776), + 66: uint16(22612), + 67: uint16(22616), + 68: uint16(22871), + 69: uint16(23445), + 70: uint16(23798), + 71: uint16(23947), + 72: uint16(24764), + 73: uint16(25237), + 74: uint16(25645), + 75: uint16(26481), + 76: uint16(26691), + 77: uint16(26812), + 78: uint16(26847), + 79: uint16(30423), + 80: uint16(28120), + 81: uint16(28271), + 82: uint16(28059), + 83: uint16(28783), + 84: uint16(29128), + 85: uint16(24403), + 86: uint16(30168), + 87: uint16(31095), + 88: uint16(31561), + 89: uint16(31572), + 90: uint16(31570), + 91: uint16(31958), + 92: uint16(32113), + 93: uint16(21040), + }, + 37: { + 0: uint16(33891), + 1: uint16(34153), + 2: uint16(34276), + 3: uint16(35342), + 4: uint16(35588), + 5: uint16(35910), + 6: uint16(36367), + 7: uint16(36867), + 8: uint16(36879), + 9: uint16(37913), + 10: uint16(38518), + 11: uint16(38957), + 12: uint16(39472), + 13: uint16(38360), + 14: uint16(20685), + 15: uint16(21205), + 16: uint16(21516), + 17: uint16(22530), + 18: uint16(23566), + 19: uint16(24999), + 20: uint16(25758), + 21: uint16(27934), + 22: uint16(30643), + 23: uint16(31461), + 24: uint16(33012), + 25: uint16(33796), + 26: uint16(36947), + 27: uint16(37509), + 28: uint16(23776), + 29: uint16(40199), + 30: uint16(21311), + 31: uint16(24471), + 32: uint16(24499), + 33: uint16(28060), + 34: uint16(29305), + 35: uint16(30563), + 36: uint16(31167), + 37: uint16(31716), + 38: uint16(27602), + 39: uint16(29420), + 40: uint16(35501), + 41: uint16(26627), + 42: uint16(27233), + 43: uint16(20984), + 44: uint16(31361), + 45: uint16(26932), + 46: uint16(23626), + 47: uint16(40182), + 48: uint16(33515), + 49: uint16(23493), + 50: uint16(37193), + 51: uint16(28702), + 52: uint16(22136), + 53: uint16(23663), + 54: uint16(24775), + 55: uint16(25958), + 56: uint16(27788), + 57: uint16(35930), + 58: uint16(36929), + 59: uint16(38931), + 60: uint16(21585), + 61: uint16(26311), + 62: uint16(37389), + 63: uint16(22856), + 64: uint16(37027), + 65: uint16(20869), + 66: uint16(20045), + 67: uint16(20970), + 68: uint16(34201), + 69: uint16(35598), + 70: uint16(28760), + 71: uint16(25466), + 72: uint16(37707), + 73: uint16(26978), + 74: uint16(39348), + 75: uint16(32260), + 76: uint16(30071), + 77: uint16(21335), + 78: uint16(26976), + 79: uint16(36575), + 80: uint16(38627), + 81: uint16(27741), + 82: uint16(20108), + 83: uint16(23612), + 84: uint16(24336), + 85: uint16(36841), + 86: uint16(21250), + 87: uint16(36049), + 88: uint16(32905), + 89: uint16(34425), + 90: uint16(24319), + 91: uint16(26085), + 92: uint16(20083), + 93: uint16(20837), + }, + 38: { + 0: uint16(22914), + 1: uint16(23615), + 2: uint16(38894), + 3: uint16(20219), + 4: uint16(22922), + 5: uint16(24525), + 6: uint16(35469), + 7: uint16(28641), + 8: uint16(31152), + 9: uint16(31074), + 10: uint16(23527), + 11: uint16(33905), + 12: uint16(29483), + 13: uint16(29105), + 14: uint16(24180), + 15: uint16(24565), + 16: uint16(25467), + 17: uint16(25754), + 18: uint16(29123), + 19: uint16(31896), + 20: uint16(20035), + 21: uint16(24316), + 22: uint16(20043), + 23: uint16(22492), + 24: uint16(22178), + 25: uint16(24745), + 26: uint16(28611), + 27: uint16(32013), + 28: uint16(33021), + 29: uint16(33075), + 30: uint16(33215), + 31: uint16(36786), + 32: uint16(35223), + 33: uint16(34468), + 34: uint16(24052), + 35: uint16(25226), + 36: uint16(25773), + 37: uint16(35207), + 38: uint16(26487), + 39: uint16(27874), + 40: uint16(27966), + 41: uint16(29750), + 42: uint16(30772), + 43: uint16(23110), + 44: uint16(32629), + 45: uint16(33453), + 46: uint16(39340), + 47: uint16(20467), + 48: uint16(24259), + 49: uint16(25309), + 50: uint16(25490), + 51: uint16(25943), + 52: uint16(26479), + 53: uint16(30403), + 54: uint16(29260), + 55: uint16(32972), + 56: uint16(32954), + 57: uint16(36649), + 58: uint16(37197), + 59: uint16(20493), + 60: uint16(22521), + 61: uint16(23186), + 62: uint16(26757), + 63: uint16(26995), + 64: uint16(29028), + 65: uint16(29437), + 66: uint16(36023), + 67: uint16(22770), + 68: uint16(36064), + 69: uint16(38506), + 70: uint16(36889), + 71: uint16(34687), + 72: uint16(31204), + 73: uint16(30695), + 74: uint16(33833), + 75: uint16(20271), + 76: uint16(21093), + 77: uint16(21338), + 78: uint16(25293), + 79: uint16(26575), + 80: uint16(27850), + 81: uint16(30333), + 82: uint16(31636), + 83: uint16(31893), + 84: uint16(33334), + 85: uint16(34180), + 86: uint16(36843), + 87: uint16(26333), + 88: uint16(28448), + 89: uint16(29190), + 90: uint16(32283), + 91: uint16(33707), + 92: uint16(39361), + 93: uint16(40614), + }, + 39: { + 0: uint16(20989), + 1: uint16(31665), + 2: uint16(30834), + 3: uint16(31672), + 4: uint16(32903), + 5: uint16(31560), + 6: uint16(27368), + 7: uint16(24161), + 8: uint16(32908), + 9: uint16(30033), + 10: uint16(30048), + 11: uint16(20843), + 12: uint16(37474), + 13: uint16(28300), + 14: uint16(30330), + 15: uint16(37271), + 16: uint16(39658), + 17: uint16(20240), + 18: uint16(32624), + 19: uint16(25244), + 20: uint16(31567), + 21: uint16(38309), + 22: uint16(40169), + 23: uint16(22138), + 24: uint16(22617), + 25: uint16(34532), + 26: uint16(38588), + 27: uint16(20276), + 28: uint16(21028), + 29: uint16(21322), + 30: uint16(21453), + 31: uint16(21467), + 32: uint16(24070), + 33: uint16(25644), + 34: uint16(26001), + 35: uint16(26495), + 36: uint16(27710), + 37: uint16(27726), + 38: uint16(29256), + 39: uint16(29359), + 40: uint16(29677), + 41: uint16(30036), + 42: uint16(32321), + 43: uint16(33324), + 44: uint16(34281), + 45: uint16(36009), + 46: uint16(31684), + 47: uint16(37318), + 48: uint16(29033), + 49: uint16(38930), + 50: uint16(39151), + 51: uint16(25405), + 52: uint16(26217), + 53: uint16(30058), + 54: uint16(30436), + 55: uint16(30928), + 56: uint16(34115), + 57: uint16(34542), + 58: uint16(21290), + 59: uint16(21329), + 60: uint16(21542), + 61: uint16(22915), + 62: uint16(24199), + 63: uint16(24444), + 64: uint16(24754), + 65: uint16(25161), + 66: uint16(25209), + 67: uint16(25259), + 68: uint16(26000), + 69: uint16(27604), + 70: uint16(27852), + 71: uint16(30130), + 72: uint16(30382), + 73: uint16(30865), + 74: uint16(31192), + 75: uint16(32203), + 76: uint16(32631), + 77: uint16(32933), + 78: uint16(34987), + 79: uint16(35513), + 80: uint16(36027), + 81: uint16(36991), + 82: uint16(38750), + 83: uint16(39131), + 84: uint16(27147), + 85: uint16(31800), + 86: uint16(20633), + 87: uint16(23614), + 88: uint16(24494), + 89: uint16(26503), + 90: uint16(27608), + 91: uint16(29749), + 92: uint16(30473), + 93: uint16(32654), + }, + 40: { + 0: uint16(40763), + 1: uint16(26570), + 2: uint16(31255), + 3: uint16(21305), + 4: uint16(30091), + 5: uint16(39661), + 6: uint16(24422), + 7: uint16(33181), + 8: uint16(33777), + 9: uint16(32920), + 10: uint16(24380), + 11: uint16(24517), + 12: uint16(30050), + 13: uint16(31558), + 14: uint16(36924), + 15: uint16(26727), + 16: uint16(23019), + 17: uint16(23195), + 18: uint16(32016), + 19: uint16(30334), + 20: uint16(35628), + 21: uint16(20469), + 22: uint16(24426), + 23: uint16(27161), + 24: uint16(27703), + 25: uint16(28418), + 26: uint16(29922), + 27: uint16(31080), + 28: uint16(34920), + 29: uint16(35413), + 30: uint16(35961), + 31: uint16(24287), + 32: uint16(25551), + 33: uint16(30149), + 34: uint16(31186), + 35: uint16(33495), + 36: uint16(37672), + 37: uint16(37618), + 38: uint16(33948), + 39: uint16(34541), + 40: uint16(39981), + 41: uint16(21697), + 42: uint16(24428), + 43: uint16(25996), + 44: uint16(27996), + 45: uint16(28693), + 46: uint16(36007), + 47: uint16(36051), + 48: uint16(38971), + 49: uint16(25935), + 50: uint16(29942), + 51: uint16(19981), + 52: uint16(20184), + 53: uint16(22496), + 54: uint16(22827), + 55: uint16(23142), + 56: uint16(23500), + 57: uint16(20904), + 58: uint16(24067), + 59: uint16(24220), + 60: uint16(24598), + 61: uint16(25206), + 62: uint16(25975), + 63: uint16(26023), + 64: uint16(26222), + 65: uint16(28014), + 66: uint16(29238), + 67: uint16(31526), + 68: uint16(33104), + 69: uint16(33178), + 70: uint16(33433), + 71: uint16(35676), + 72: uint16(36000), + 73: uint16(36070), + 74: uint16(36212), + 75: uint16(38428), + 76: uint16(38468), + 77: uint16(20398), + 78: uint16(25771), + 79: uint16(27494), + 80: uint16(33310), + 81: uint16(33889), + 82: uint16(34154), + 83: uint16(37096), + 84: uint16(23553), + 85: uint16(26963), + 86: uint16(39080), + 87: uint16(33914), + 88: uint16(34135), + 89: uint16(20239), + 90: uint16(21103), + 91: uint16(24489), + 92: uint16(24133), + 93: uint16(26381), + }, + 41: { + 0: uint16(31119), + 1: uint16(33145), + 2: uint16(35079), + 3: uint16(35206), + 4: uint16(28149), + 5: uint16(24343), + 6: uint16(25173), + 7: uint16(27832), + 8: uint16(20175), + 9: uint16(29289), + 10: uint16(39826), + 11: uint16(20998), + 12: uint16(21563), + 13: uint16(22132), + 14: uint16(22707), + 15: uint16(24996), + 16: uint16(25198), + 17: uint16(28954), + 18: uint16(22894), + 19: uint16(31881), + 20: uint16(31966), + 21: uint16(32027), + 22: uint16(38640), + 23: uint16(25991), + 24: uint16(32862), + 25: uint16(19993), + 26: uint16(20341), + 27: uint16(20853), + 28: uint16(22592), + 29: uint16(24163), + 30: uint16(24179), + 31: uint16(24330), + 32: uint16(26564), + 33: uint16(20006), + 34: uint16(34109), + 35: uint16(38281), + 36: uint16(38491), + 37: uint16(31859), + 38: uint16(38913), + 39: uint16(20731), + 40: uint16(22721), + 41: uint16(30294), + 42: uint16(30887), + 43: uint16(21029), + 44: uint16(30629), + 45: uint16(34065), + 46: uint16(31622), + 47: uint16(20559), + 48: uint16(22793), + 49: uint16(29255), + 50: uint16(31687), + 51: uint16(32232), + 52: uint16(36794), + 53: uint16(36820), + 54: uint16(36941), + 55: uint16(20415), + 56: uint16(21193), + 57: uint16(23081), + 58: uint16(24321), + 59: uint16(38829), + 60: uint16(20445), + 61: uint16(33303), + 62: uint16(37610), + 63: uint16(22275), + 64: uint16(25429), + 65: uint16(27497), + 66: uint16(29995), + 67: uint16(35036), + 68: uint16(36628), + 69: uint16(31298), + 70: uint16(21215), + 71: uint16(22675), + 72: uint16(24917), + 73: uint16(25098), + 74: uint16(26286), + 75: uint16(27597), + 76: uint16(31807), + 77: uint16(33769), + 78: uint16(20515), + 79: uint16(20472), + 80: uint16(21253), + 81: uint16(21574), + 82: uint16(22577), + 83: uint16(22857), + 84: uint16(23453), + 85: uint16(23792), + 86: uint16(23791), + 87: uint16(23849), + 88: uint16(24214), + 89: uint16(25265), + 90: uint16(25447), + 91: uint16(25918), + 92: uint16(26041), + 93: uint16(26379), + }, + 42: { + 0: uint16(27861), + 1: uint16(27873), + 2: uint16(28921), + 3: uint16(30770), + 4: uint16(32299), + 5: uint16(32990), + 6: uint16(33459), + 7: uint16(33804), + 8: uint16(34028), + 9: uint16(34562), + 10: uint16(35090), + 11: uint16(35370), + 12: uint16(35914), + 13: uint16(37030), + 14: uint16(37586), + 15: uint16(39165), + 16: uint16(40179), + 17: uint16(40300), + 18: uint16(20047), + 19: uint16(20129), + 20: uint16(20621), + 21: uint16(21078), + 22: uint16(22346), + 23: uint16(22952), + 24: uint16(24125), + 25: uint16(24536), + 26: uint16(24537), + 27: uint16(25151), + 28: uint16(26292), + 29: uint16(26395), + 30: uint16(26576), + 31: uint16(26834), + 32: uint16(20882), + 33: uint16(32033), + 34: uint16(32938), + 35: uint16(33192), + 36: uint16(35584), + 37: uint16(35980), + 38: uint16(36031), + 39: uint16(37502), + 40: uint16(38450), + 41: uint16(21536), + 42: uint16(38956), + 43: uint16(21271), + 44: uint16(20693), + 45: uint16(21340), + 46: uint16(22696), + 47: uint16(25778), + 48: uint16(26420), + 49: uint16(29287), + 50: uint16(30566), + 51: uint16(31302), + 52: uint16(37350), + 53: uint16(21187), + 54: uint16(27809), + 55: uint16(27526), + 56: uint16(22528), + 57: uint16(24140), + 58: uint16(22868), + 59: uint16(26412), + 60: uint16(32763), + 61: uint16(20961), + 62: uint16(30406), + 63: uint16(25705), + 64: uint16(30952), + 65: uint16(39764), + 66: uint16(40635), + 67: uint16(22475), + 68: uint16(22969), + 69: uint16(26151), + 70: uint16(26522), + 71: uint16(27598), + 72: uint16(21737), + 73: uint16(27097), + 74: uint16(24149), + 75: uint16(33180), + 76: uint16(26517), + 77: uint16(39850), + 78: uint16(26622), + 79: uint16(40018), + 80: uint16(26717), + 81: uint16(20134), + 82: uint16(20451), + 83: uint16(21448), + 84: uint16(25273), + 85: uint16(26411), + 86: uint16(27819), + 87: uint16(36804), + 88: uint16(20397), + 89: uint16(32365), + 90: uint16(40639), + 91: uint16(19975), + 92: uint16(24930), + 93: uint16(28288), + }, + 43: { + 0: uint16(28459), + 1: uint16(34067), + 2: uint16(21619), + 3: uint16(26410), + 4: uint16(39749), + 5: uint16(24051), + 6: uint16(31637), + 7: uint16(23724), + 8: uint16(23494), + 9: uint16(34588), + 10: uint16(28234), + 11: uint16(34001), + 12: uint16(31252), + 13: uint16(33032), + 14: uint16(22937), + 15: uint16(31885), + 16: uint16(27665), + 17: uint16(30496), + 18: uint16(21209), + 19: uint16(22818), + 20: uint16(28961), + 21: uint16(29279), + 22: uint16(30683), + 23: uint16(38695), + 24: uint16(40289), + 25: uint16(26891), + 26: uint16(23167), + 27: uint16(23064), + 28: uint16(20901), + 29: uint16(21517), + 30: uint16(21629), + 31: uint16(26126), + 32: uint16(30431), + 33: uint16(36855), + 34: uint16(37528), + 35: uint16(40180), + 36: uint16(23018), + 37: uint16(29277), + 38: uint16(28357), + 39: uint16(20813), + 40: uint16(26825), + 41: uint16(32191), + 42: uint16(32236), + 43: uint16(38754), + 44: uint16(40634), + 45: uint16(25720), + 46: uint16(27169), + 47: uint16(33538), + 48: uint16(22916), + 49: uint16(23391), + 50: uint16(27611), + 51: uint16(29467), + 52: uint16(30450), + 53: uint16(32178), + 54: uint16(32791), + 55: uint16(33945), + 56: uint16(20786), + 57: uint16(26408), + 58: uint16(40665), + 59: uint16(30446), + 60: uint16(26466), + 61: uint16(21247), + 62: uint16(39173), + 63: uint16(23588), + 64: uint16(25147), + 65: uint16(31870), + 66: uint16(36016), + 67: uint16(21839), + 68: uint16(24758), + 69: uint16(32011), + 70: uint16(38272), + 71: uint16(21249), + 72: uint16(20063), + 73: uint16(20918), + 74: uint16(22812), + 75: uint16(29242), + 76: uint16(32822), + 77: uint16(37326), + 78: uint16(24357), + 79: uint16(30690), + 80: uint16(21380), + 81: uint16(24441), + 82: uint16(32004), + 83: uint16(34220), + 84: uint16(35379), + 85: uint16(36493), + 86: uint16(38742), + 87: uint16(26611), + 88: uint16(34222), + 89: uint16(37971), + 90: uint16(24841), + 91: uint16(24840), + 92: uint16(27833), + 93: uint16(30290), + }, + 44: { + 0: uint16(35565), + 1: uint16(36664), + 2: uint16(21807), + 3: uint16(20305), + 4: uint16(20778), + 5: uint16(21191), + 6: uint16(21451), + 7: uint16(23461), + 8: uint16(24189), + 9: uint16(24736), + 10: uint16(24962), + 11: uint16(25558), + 12: uint16(26377), + 13: uint16(26586), + 14: uint16(28263), + 15: uint16(28044), + 16: uint16(29494), + 17: uint16(29495), + 18: uint16(30001), + 19: uint16(31056), + 20: uint16(35029), + 21: uint16(35480), + 22: uint16(36938), + 23: uint16(37009), + 24: uint16(37109), + 25: uint16(38596), + 26: uint16(34701), + 27: uint16(22805), + 28: uint16(20104), + 29: uint16(20313), + 30: uint16(19982), + 31: uint16(35465), + 32: uint16(36671), + 33: uint16(38928), + 34: uint16(20653), + 35: uint16(24188), + 36: uint16(22934), + 37: uint16(23481), + 38: uint16(24248), + 39: uint16(25562), + 40: uint16(25594), + 41: uint16(25793), + 42: uint16(26332), + 43: uint16(26954), + 44: uint16(27096), + 45: uint16(27915), + 46: uint16(28342), + 47: uint16(29076), + 48: uint16(29992), + 49: uint16(31407), + 50: uint16(32650), + 51: uint16(32768), + 52: uint16(33865), + 53: uint16(33993), + 54: uint16(35201), + 55: uint16(35617), + 56: uint16(36362), + 57: uint16(36965), + 58: uint16(38525), + 59: uint16(39178), + 60: uint16(24958), + 61: uint16(25233), + 62: uint16(27442), + 63: uint16(27779), + 64: uint16(28020), + 65: uint16(32716), + 66: uint16(32764), + 67: uint16(28096), + 68: uint16(32645), + 69: uint16(34746), + 70: uint16(35064), + 71: uint16(26469), + 72: uint16(33713), + 73: uint16(38972), + 74: uint16(38647), + 75: uint16(27931), + 76: uint16(32097), + 77: uint16(33853), + 78: uint16(37226), + 79: uint16(20081), + 80: uint16(21365), + 81: uint16(23888), + 82: uint16(27396), + 83: uint16(28651), + 84: uint16(34253), + 85: uint16(34349), + 86: uint16(35239), + 87: uint16(21033), + 88: uint16(21519), + 89: uint16(23653), + 90: uint16(26446), + 91: uint16(26792), + 92: uint16(29702), + 93: uint16(29827), + }, + 45: { + 0: uint16(30178), + 1: uint16(35023), + 2: uint16(35041), + 3: uint16(37324), + 4: uint16(38626), + 5: uint16(38520), + 6: uint16(24459), + 7: uint16(29575), + 8: uint16(31435), + 9: uint16(33870), + 10: uint16(25504), + 11: uint16(30053), + 12: uint16(21129), + 13: uint16(27969), + 14: uint16(28316), + 15: uint16(29705), + 16: uint16(30041), + 17: uint16(30827), + 18: uint16(31890), + 19: uint16(38534), + 20: uint16(31452), + 21: uint16(40845), + 22: uint16(20406), + 23: uint16(24942), + 24: uint16(26053), + 25: uint16(34396), + 26: uint16(20102), + 27: uint16(20142), + 28: uint16(20698), + 29: uint16(20001), + 30: uint16(20940), + 31: uint16(23534), + 32: uint16(26009), + 33: uint16(26753), + 34: uint16(28092), + 35: uint16(29471), + 36: uint16(30274), + 37: uint16(30637), + 38: uint16(31260), + 39: uint16(31975), + 40: uint16(33391), + 41: uint16(35538), + 42: uint16(36988), + 43: uint16(37327), + 44: uint16(38517), + 45: uint16(38936), + 46: uint16(21147), + 47: uint16(32209), + 48: uint16(20523), + 49: uint16(21400), + 50: uint16(26519), + 51: uint16(28107), + 52: uint16(29136), + 53: uint16(29747), + 54: uint16(33256), + 55: uint16(36650), + 56: uint16(38563), + 57: uint16(40023), + 58: uint16(40607), + 59: uint16(29792), + 60: uint16(22593), + 61: uint16(28057), + 62: uint16(32047), + 63: uint16(39006), + 64: uint16(20196), + 65: uint16(20278), + 66: uint16(20363), + 67: uint16(20919), + 68: uint16(21169), + 69: uint16(23994), + 70: uint16(24604), + 71: uint16(29618), + 72: uint16(31036), + 73: uint16(33491), + 74: uint16(37428), + 75: uint16(38583), + 76: uint16(38646), + 77: uint16(38666), + 78: uint16(40599), + 79: uint16(40802), + 80: uint16(26278), + 81: uint16(27508), + 82: uint16(21015), + 83: uint16(21155), + 84: uint16(28872), + 85: uint16(35010), + 86: uint16(24265), + 87: uint16(24651), + 88: uint16(24976), + 89: uint16(28451), + 90: uint16(29001), + 91: uint16(31806), + 92: uint16(32244), + 93: uint16(32879), + }, + 46: { + 0: uint16(34030), + 1: uint16(36899), + 2: uint16(37676), + 3: uint16(21570), + 4: uint16(39791), + 5: uint16(27347), + 6: uint16(28809), + 7: uint16(36034), + 8: uint16(36335), + 9: uint16(38706), + 10: uint16(21172), + 11: uint16(23105), + 12: uint16(24266), + 13: uint16(24324), + 14: uint16(26391), + 15: uint16(27004), + 16: uint16(27028), + 17: uint16(28010), + 18: uint16(28431), + 19: uint16(29282), + 20: uint16(29436), + 21: uint16(31725), + 22: uint16(32769), + 23: uint16(32894), + 24: uint16(34635), + 25: uint16(37070), + 26: uint16(20845), + 27: uint16(40595), + 28: uint16(31108), + 29: uint16(32907), + 30: uint16(37682), + 31: uint16(35542), + 32: uint16(20525), + 33: uint16(21644), + 34: uint16(35441), + 35: uint16(27498), + 36: uint16(36036), + 37: uint16(33031), + 38: uint16(24785), + 39: uint16(26528), + 40: uint16(40434), + 41: uint16(20121), + 42: uint16(20120), + 43: uint16(39952), + 44: uint16(35435), + 45: uint16(34241), + 46: uint16(34152), + 47: uint16(26880), + 48: uint16(28286), + 49: uint16(30871), + 50: uint16(33109), + }, + 47: { + 0: uint16(24332), + 1: uint16(19984), + 2: uint16(19989), + 3: uint16(20010), + 4: uint16(20017), + 5: uint16(20022), + 6: uint16(20028), + 7: uint16(20031), + 8: uint16(20034), + 9: uint16(20054), + 10: uint16(20056), + 11: uint16(20098), + 12: uint16(20101), + 13: uint16(35947), + 14: uint16(20106), + 15: uint16(33298), + 16: uint16(24333), + 17: uint16(20110), + 18: uint16(20126), + 19: uint16(20127), + 20: uint16(20128), + 21: uint16(20130), + 22: uint16(20144), + 23: uint16(20147), + 24: uint16(20150), + 25: uint16(20174), + 26: uint16(20173), + 27: uint16(20164), + 28: uint16(20166), + 29: uint16(20162), + 30: uint16(20183), + 31: uint16(20190), + 32: uint16(20205), + 33: uint16(20191), + 34: uint16(20215), + 35: uint16(20233), + 36: uint16(20314), + 37: uint16(20272), + 38: uint16(20315), + 39: uint16(20317), + 40: uint16(20311), + 41: uint16(20295), + 42: uint16(20342), + 43: uint16(20360), + 44: uint16(20367), + 45: uint16(20376), + 46: uint16(20347), + 47: uint16(20329), + 48: uint16(20336), + 49: uint16(20369), + 50: uint16(20335), + 51: uint16(20358), + 52: uint16(20374), + 53: uint16(20760), + 54: uint16(20436), + 55: uint16(20447), + 56: uint16(20430), + 57: uint16(20440), + 58: uint16(20443), + 59: uint16(20433), + 60: uint16(20442), + 61: uint16(20432), + 62: uint16(20452), + 63: uint16(20453), + 64: uint16(20506), + 65: uint16(20520), + 66: uint16(20500), + 67: uint16(20522), + 68: uint16(20517), + 69: uint16(20485), + 70: uint16(20252), + 71: uint16(20470), + 72: uint16(20513), + 73: uint16(20521), + 74: uint16(20524), + 75: uint16(20478), + 76: uint16(20463), + 77: uint16(20497), + 78: uint16(20486), + 79: uint16(20547), + 80: uint16(20551), + 81: uint16(26371), + 82: uint16(20565), + 83: uint16(20560), + 84: uint16(20552), + 85: uint16(20570), + 86: uint16(20566), + 87: uint16(20588), + 88: uint16(20600), + 89: uint16(20608), + 90: uint16(20634), + 91: uint16(20613), + 92: uint16(20660), + 93: uint16(20658), + }, + 48: { + 0: uint16(20681), + 1: uint16(20682), + 2: uint16(20659), + 3: uint16(20674), + 4: uint16(20694), + 5: uint16(20702), + 6: uint16(20709), + 7: uint16(20717), + 8: uint16(20707), + 9: uint16(20718), + 10: uint16(20729), + 11: uint16(20725), + 12: uint16(20745), + 13: uint16(20737), + 14: uint16(20738), + 15: uint16(20758), + 16: uint16(20757), + 17: uint16(20756), + 18: uint16(20762), + 19: uint16(20769), + 20: uint16(20794), + 21: uint16(20791), + 22: uint16(20796), + 23: uint16(20795), + 24: uint16(20799), + 25: uint16(20800), + 26: uint16(20818), + 27: uint16(20812), + 28: uint16(20820), + 29: uint16(20834), + 30: uint16(31480), + 31: uint16(20841), + 32: uint16(20842), + 33: uint16(20846), + 34: uint16(20864), + 35: uint16(20866), + 36: uint16(22232), + 37: uint16(20876), + 38: uint16(20873), + 39: uint16(20879), + 40: uint16(20881), + 41: uint16(20883), + 42: uint16(20885), + 43: uint16(20886), + 44: uint16(20900), + 45: uint16(20902), + 46: uint16(20898), + 47: uint16(20905), + 48: uint16(20906), + 49: uint16(20907), + 50: uint16(20915), + 51: uint16(20913), + 52: uint16(20914), + 53: uint16(20912), + 54: uint16(20917), + 55: uint16(20925), + 56: uint16(20933), + 57: uint16(20937), + 58: uint16(20955), + 59: uint16(20960), + 60: uint16(34389), + 61: uint16(20969), + 62: uint16(20973), + 63: uint16(20976), + 64: uint16(20981), + 65: uint16(20990), + 66: uint16(20996), + 67: uint16(21003), + 68: uint16(21012), + 69: uint16(21006), + 70: uint16(21031), + 71: uint16(21034), + 72: uint16(21038), + 73: uint16(21043), + 74: uint16(21049), + 75: uint16(21071), + 76: uint16(21060), + 77: uint16(21067), + 78: uint16(21068), + 79: uint16(21086), + 80: uint16(21076), + 81: uint16(21098), + 82: uint16(21108), + 83: uint16(21097), + 84: uint16(21107), + 85: uint16(21119), + 86: uint16(21117), + 87: uint16(21133), + 88: uint16(21140), + 89: uint16(21138), + 90: uint16(21105), + 91: uint16(21128), + 92: uint16(21137), + 93: uint16(36776), + }, + 49: { + 0: uint16(36775), + 1: uint16(21164), + 2: uint16(21165), + 3: uint16(21180), + 4: uint16(21173), + 5: uint16(21185), + 6: uint16(21197), + 7: uint16(21207), + 8: uint16(21214), + 9: uint16(21219), + 10: uint16(21222), + 11: uint16(39149), + 12: uint16(21216), + 13: uint16(21235), + 14: uint16(21237), + 15: uint16(21240), + 16: uint16(21241), + 17: uint16(21254), + 18: uint16(21256), + 19: uint16(30008), + 20: uint16(21261), + 21: uint16(21264), + 22: uint16(21263), + 23: uint16(21269), + 24: uint16(21274), + 25: uint16(21283), + 26: uint16(21295), + 27: uint16(21297), + 28: uint16(21299), + 29: uint16(21304), + 30: uint16(21312), + 31: uint16(21318), + 32: uint16(21317), + 33: uint16(19991), + 34: uint16(21321), + 35: uint16(21325), + 36: uint16(20950), + 37: uint16(21342), + 38: uint16(21353), + 39: uint16(21358), + 40: uint16(22808), + 41: uint16(21371), + 42: uint16(21367), + 43: uint16(21378), + 44: uint16(21398), + 45: uint16(21408), + 46: uint16(21414), + 47: uint16(21413), + 48: uint16(21422), + 49: uint16(21424), + 50: uint16(21430), + 51: uint16(21443), + 52: uint16(31762), + 53: uint16(38617), + 54: uint16(21471), + 55: uint16(26364), + 56: uint16(29166), + 57: uint16(21486), + 58: uint16(21480), + 59: uint16(21485), + 60: uint16(21498), + 61: uint16(21505), + 62: uint16(21565), + 63: uint16(21568), + 64: uint16(21548), + 65: uint16(21549), + 66: uint16(21564), + 67: uint16(21550), + 68: uint16(21558), + 69: uint16(21545), + 70: uint16(21533), + 71: uint16(21582), + 72: uint16(21647), + 73: uint16(21621), + 74: uint16(21646), + 75: uint16(21599), + 76: uint16(21617), + 77: uint16(21623), + 78: uint16(21616), + 79: uint16(21650), + 80: uint16(21627), + 81: uint16(21632), + 82: uint16(21622), + 83: uint16(21636), + 84: uint16(21648), + 85: uint16(21638), + 86: uint16(21703), + 87: uint16(21666), + 88: uint16(21688), + 89: uint16(21669), + 90: uint16(21676), + 91: uint16(21700), + 92: uint16(21704), + 93: uint16(21672), + }, + 50: { + 0: uint16(21675), + 1: uint16(21698), + 2: uint16(21668), + 3: uint16(21694), + 4: uint16(21692), + 5: uint16(21720), + 6: uint16(21733), + 7: uint16(21734), + 8: uint16(21775), + 9: uint16(21780), + 10: uint16(21757), + 11: uint16(21742), + 12: uint16(21741), + 13: uint16(21754), + 14: uint16(21730), + 15: uint16(21817), + 16: uint16(21824), + 17: uint16(21859), + 18: uint16(21836), + 19: uint16(21806), + 20: uint16(21852), + 21: uint16(21829), + 22: uint16(21846), + 23: uint16(21847), + 24: uint16(21816), + 25: uint16(21811), + 26: uint16(21853), + 27: uint16(21913), + 28: uint16(21888), + 29: uint16(21679), + 30: uint16(21898), + 31: uint16(21919), + 32: uint16(21883), + 33: uint16(21886), + 34: uint16(21912), + 35: uint16(21918), + 36: uint16(21934), + 37: uint16(21884), + 38: uint16(21891), + 39: uint16(21929), + 40: uint16(21895), + 41: uint16(21928), + 42: uint16(21978), + 43: uint16(21957), + 44: uint16(21983), + 45: uint16(21956), + 46: uint16(21980), + 47: uint16(21988), + 48: uint16(21972), + 49: uint16(22036), + 50: uint16(22007), + 51: uint16(22038), + 52: uint16(22014), + 53: uint16(22013), + 54: uint16(22043), + 55: uint16(22009), + 56: uint16(22094), + 57: uint16(22096), + 58: uint16(29151), + 59: uint16(22068), + 60: uint16(22070), + 61: uint16(22066), + 62: uint16(22072), + 63: uint16(22123), + 64: uint16(22116), + 65: uint16(22063), + 66: uint16(22124), + 67: uint16(22122), + 68: uint16(22150), + 69: uint16(22144), + 70: uint16(22154), + 71: uint16(22176), + 72: uint16(22164), + 73: uint16(22159), + 74: uint16(22181), + 75: uint16(22190), + 76: uint16(22198), + 77: uint16(22196), + 78: uint16(22210), + 79: uint16(22204), + 80: uint16(22209), + 81: uint16(22211), + 82: uint16(22208), + 83: uint16(22216), + 84: uint16(22222), + 85: uint16(22225), + 86: uint16(22227), + 87: uint16(22231), + 88: uint16(22254), + 89: uint16(22265), + 90: uint16(22272), + 91: uint16(22271), + 92: uint16(22276), + 93: uint16(22281), + }, + 51: { + 0: uint16(22280), + 1: uint16(22283), + 2: uint16(22285), + 3: uint16(22291), + 4: uint16(22296), + 5: uint16(22294), + 6: uint16(21959), + 7: uint16(22300), + 8: uint16(22310), + 9: uint16(22327), + 10: uint16(22328), + 11: uint16(22350), + 12: uint16(22331), + 13: uint16(22336), + 14: uint16(22351), + 15: uint16(22377), + 16: uint16(22464), + 17: uint16(22408), + 18: uint16(22369), + 19: uint16(22399), + 20: uint16(22409), + 21: uint16(22419), + 22: uint16(22432), + 23: uint16(22451), + 24: uint16(22436), + 25: uint16(22442), + 26: uint16(22448), + 27: uint16(22467), + 28: uint16(22470), + 29: uint16(22484), + 30: uint16(22482), + 31: uint16(22483), + 32: uint16(22538), + 33: uint16(22486), + 34: uint16(22499), + 35: uint16(22539), + 36: uint16(22553), + 37: uint16(22557), + 38: uint16(22642), + 39: uint16(22561), + 40: uint16(22626), + 41: uint16(22603), + 42: uint16(22640), + 43: uint16(27584), + 44: uint16(22610), + 45: uint16(22589), + 46: uint16(22649), + 47: uint16(22661), + 48: uint16(22713), + 49: uint16(22687), + 50: uint16(22699), + 51: uint16(22714), + 52: uint16(22750), + 53: uint16(22715), + 54: uint16(22712), + 55: uint16(22702), + 56: uint16(22725), + 57: uint16(22739), + 58: uint16(22737), + 59: uint16(22743), + 60: uint16(22745), + 61: uint16(22744), + 62: uint16(22757), + 63: uint16(22748), + 64: uint16(22756), + 65: uint16(22751), + 66: uint16(22767), + 67: uint16(22778), + 68: uint16(22777), + 69: uint16(22779), + 70: uint16(22780), + 71: uint16(22781), + 72: uint16(22786), + 73: uint16(22794), + 74: uint16(22800), + 75: uint16(22811), + 76: uint16(26790), + 77: uint16(22821), + 78: uint16(22828), + 79: uint16(22829), + 80: uint16(22834), + 81: uint16(22840), + 82: uint16(22846), + 83: uint16(31442), + 84: uint16(22869), + 85: uint16(22864), + 86: uint16(22862), + 87: uint16(22874), + 88: uint16(22872), + 89: uint16(22882), + 90: uint16(22880), + 91: uint16(22887), + 92: uint16(22892), + 93: uint16(22889), + }, + 52: { + 0: uint16(22904), + 1: uint16(22913), + 2: uint16(22941), + 3: uint16(20318), + 4: uint16(20395), + 5: uint16(22947), + 6: uint16(22962), + 7: uint16(22982), + 8: uint16(23016), + 9: uint16(23004), + 10: uint16(22925), + 11: uint16(23001), + 12: uint16(23002), + 13: uint16(23077), + 14: uint16(23071), + 15: uint16(23057), + 16: uint16(23068), + 17: uint16(23049), + 18: uint16(23066), + 19: uint16(23104), + 20: uint16(23148), + 21: uint16(23113), + 22: uint16(23093), + 23: uint16(23094), + 24: uint16(23138), + 25: uint16(23146), + 26: uint16(23194), + 27: uint16(23228), + 28: uint16(23230), + 29: uint16(23243), + 30: uint16(23234), + 31: uint16(23229), + 32: uint16(23267), + 33: uint16(23255), + 34: uint16(23270), + 35: uint16(23273), + 36: uint16(23254), + 37: uint16(23290), + 38: uint16(23291), + 39: uint16(23308), + 40: uint16(23307), + 41: uint16(23318), + 42: uint16(23346), + 43: uint16(23248), + 44: uint16(23338), + 45: uint16(23350), + 46: uint16(23358), + 47: uint16(23363), + 48: uint16(23365), + 49: uint16(23360), + 50: uint16(23377), + 51: uint16(23381), + 52: uint16(23386), + 53: uint16(23387), + 54: uint16(23397), + 55: uint16(23401), + 56: uint16(23408), + 57: uint16(23411), + 58: uint16(23413), + 59: uint16(23416), + 60: uint16(25992), + 61: uint16(23418), + 62: uint16(23424), + 63: uint16(23427), + 64: uint16(23462), + 65: uint16(23480), + 66: uint16(23491), + 67: uint16(23495), + 68: uint16(23497), + 69: uint16(23508), + 70: uint16(23504), + 71: uint16(23524), + 72: uint16(23526), + 73: uint16(23522), + 74: uint16(23518), + 75: uint16(23525), + 76: uint16(23531), + 77: uint16(23536), + 78: uint16(23542), + 79: uint16(23539), + 80: uint16(23557), + 81: uint16(23559), + 82: uint16(23560), + 83: uint16(23565), + 84: uint16(23571), + 85: uint16(23584), + 86: uint16(23586), + 87: uint16(23592), + 88: uint16(23608), + 89: uint16(23609), + 90: uint16(23617), + 91: uint16(23622), + 92: uint16(23630), + 93: uint16(23635), + }, + 53: { + 0: uint16(23632), + 1: uint16(23631), + 2: uint16(23409), + 3: uint16(23660), + 4: uint16(23662), + 5: uint16(20066), + 6: uint16(23670), + 7: uint16(23673), + 8: uint16(23692), + 9: uint16(23697), + 10: uint16(23700), + 11: uint16(22939), + 12: uint16(23723), + 13: uint16(23739), + 14: uint16(23734), + 15: uint16(23740), + 16: uint16(23735), + 17: uint16(23749), + 18: uint16(23742), + 19: uint16(23751), + 20: uint16(23769), + 21: uint16(23785), + 22: uint16(23805), + 23: uint16(23802), + 24: uint16(23789), + 25: uint16(23948), + 26: uint16(23786), + 27: uint16(23819), + 28: uint16(23829), + 29: uint16(23831), + 30: uint16(23900), + 31: uint16(23839), + 32: uint16(23835), + 33: uint16(23825), + 34: uint16(23828), + 35: uint16(23842), + 36: uint16(23834), + 37: uint16(23833), + 38: uint16(23832), + 39: uint16(23884), + 40: uint16(23890), + 41: uint16(23886), + 42: uint16(23883), + 43: uint16(23916), + 44: uint16(23923), + 45: uint16(23926), + 46: uint16(23943), + 47: uint16(23940), + 48: uint16(23938), + 49: uint16(23970), + 50: uint16(23965), + 51: uint16(23980), + 52: uint16(23982), + 53: uint16(23997), + 54: uint16(23952), + 55: uint16(23991), + 56: uint16(23996), + 57: uint16(24009), + 58: uint16(24013), + 59: uint16(24019), + 60: uint16(24018), + 61: uint16(24022), + 62: uint16(24027), + 63: uint16(24043), + 64: uint16(24050), + 65: uint16(24053), + 66: uint16(24075), + 67: uint16(24090), + 68: uint16(24089), + 69: uint16(24081), + 70: uint16(24091), + 71: uint16(24118), + 72: uint16(24119), + 73: uint16(24132), + 74: uint16(24131), + 75: uint16(24128), + 76: uint16(24142), + 77: uint16(24151), + 78: uint16(24148), + 79: uint16(24159), + 80: uint16(24162), + 81: uint16(24164), + 82: uint16(24135), + 83: uint16(24181), + 84: uint16(24182), + 85: uint16(24186), + 86: uint16(40636), + 87: uint16(24191), + 88: uint16(24224), + 89: uint16(24257), + 90: uint16(24258), + 91: uint16(24264), + 92: uint16(24272), + 93: uint16(24271), + }, + 54: { + 0: uint16(24278), + 1: uint16(24291), + 2: uint16(24285), + 3: uint16(24282), + 4: uint16(24283), + 5: uint16(24290), + 6: uint16(24289), + 7: uint16(24296), + 8: uint16(24297), + 9: uint16(24300), + 10: uint16(24305), + 11: uint16(24307), + 12: uint16(24304), + 13: uint16(24308), + 14: uint16(24312), + 15: uint16(24318), + 16: uint16(24323), + 17: uint16(24329), + 18: uint16(24413), + 19: uint16(24412), + 20: uint16(24331), + 21: uint16(24337), + 22: uint16(24342), + 23: uint16(24361), + 24: uint16(24365), + 25: uint16(24376), + 26: uint16(24385), + 27: uint16(24392), + 28: uint16(24396), + 29: uint16(24398), + 30: uint16(24367), + 31: uint16(24401), + 32: uint16(24406), + 33: uint16(24407), + 34: uint16(24409), + 35: uint16(24417), + 36: uint16(24429), + 37: uint16(24435), + 38: uint16(24439), + 39: uint16(24451), + 40: uint16(24450), + 41: uint16(24447), + 42: uint16(24458), + 43: uint16(24456), + 44: uint16(24465), + 45: uint16(24455), + 46: uint16(24478), + 47: uint16(24473), + 48: uint16(24472), + 49: uint16(24480), + 50: uint16(24488), + 51: uint16(24493), + 52: uint16(24508), + 53: uint16(24534), + 54: uint16(24571), + 55: uint16(24548), + 56: uint16(24568), + 57: uint16(24561), + 58: uint16(24541), + 59: uint16(24755), + 60: uint16(24575), + 61: uint16(24609), + 62: uint16(24672), + 63: uint16(24601), + 64: uint16(24592), + 65: uint16(24617), + 66: uint16(24590), + 67: uint16(24625), + 68: uint16(24603), + 69: uint16(24597), + 70: uint16(24619), + 71: uint16(24614), + 72: uint16(24591), + 73: uint16(24634), + 74: uint16(24666), + 75: uint16(24641), + 76: uint16(24682), + 77: uint16(24695), + 78: uint16(24671), + 79: uint16(24650), + 80: uint16(24646), + 81: uint16(24653), + 82: uint16(24675), + 83: uint16(24643), + 84: uint16(24676), + 85: uint16(24642), + 86: uint16(24684), + 87: uint16(24683), + 88: uint16(24665), + 89: uint16(24705), + 90: uint16(24717), + 91: uint16(24807), + 92: uint16(24707), + 93: uint16(24730), + }, + 55: { + 0: uint16(24708), + 1: uint16(24731), + 2: uint16(24726), + 3: uint16(24727), + 4: uint16(24722), + 5: uint16(24743), + 6: uint16(24715), + 7: uint16(24801), + 8: uint16(24760), + 9: uint16(24800), + 10: uint16(24787), + 11: uint16(24756), + 12: uint16(24560), + 13: uint16(24765), + 14: uint16(24774), + 15: uint16(24757), + 16: uint16(24792), + 17: uint16(24909), + 18: uint16(24853), + 19: uint16(24838), + 20: uint16(24822), + 21: uint16(24823), + 22: uint16(24832), + 23: uint16(24820), + 24: uint16(24826), + 25: uint16(24835), + 26: uint16(24865), + 27: uint16(24827), + 28: uint16(24817), + 29: uint16(24845), + 30: uint16(24846), + 31: uint16(24903), + 32: uint16(24894), + 33: uint16(24872), + 34: uint16(24871), + 35: uint16(24906), + 36: uint16(24895), + 37: uint16(24892), + 38: uint16(24876), + 39: uint16(24884), + 40: uint16(24893), + 41: uint16(24898), + 42: uint16(24900), + 43: uint16(24947), + 44: uint16(24951), + 45: uint16(24920), + 46: uint16(24921), + 47: uint16(24922), + 48: uint16(24939), + 49: uint16(24948), + 50: uint16(24943), + 51: uint16(24933), + 52: uint16(24945), + 53: uint16(24927), + 54: uint16(24925), + 55: uint16(24915), + 56: uint16(24949), + 57: uint16(24985), + 58: uint16(24982), + 59: uint16(24967), + 60: uint16(25004), + 61: uint16(24980), + 62: uint16(24986), + 63: uint16(24970), + 64: uint16(24977), + 65: uint16(25003), + 66: uint16(25006), + 67: uint16(25036), + 68: uint16(25034), + 69: uint16(25033), + 70: uint16(25079), + 71: uint16(25032), + 72: uint16(25027), + 73: uint16(25030), + 74: uint16(25018), + 75: uint16(25035), + 76: uint16(32633), + 77: uint16(25037), + 78: uint16(25062), + 79: uint16(25059), + 80: uint16(25078), + 81: uint16(25082), + 82: uint16(25076), + 83: uint16(25087), + 84: uint16(25085), + 85: uint16(25084), + 86: uint16(25086), + 87: uint16(25088), + 88: uint16(25096), + 89: uint16(25097), + 90: uint16(25101), + 91: uint16(25100), + 92: uint16(25108), + 93: uint16(25115), + }, + 56: { + 0: uint16(25118), + 1: uint16(25121), + 2: uint16(25130), + 3: uint16(25134), + 4: uint16(25136), + 5: uint16(25138), + 6: uint16(25139), + 7: uint16(25153), + 8: uint16(25166), + 9: uint16(25182), + 10: uint16(25187), + 11: uint16(25179), + 12: uint16(25184), + 13: uint16(25192), + 14: uint16(25212), + 15: uint16(25218), + 16: uint16(25225), + 17: uint16(25214), + 18: uint16(25234), + 19: uint16(25235), + 20: uint16(25238), + 21: uint16(25300), + 22: uint16(25219), + 23: uint16(25236), + 24: uint16(25303), + 25: uint16(25297), + 26: uint16(25275), + 27: uint16(25295), + 28: uint16(25343), + 29: uint16(25286), + 30: uint16(25812), + 31: uint16(25288), + 32: uint16(25308), + 33: uint16(25292), + 34: uint16(25290), + 35: uint16(25282), + 36: uint16(25287), + 37: uint16(25243), + 38: uint16(25289), + 39: uint16(25356), + 40: uint16(25326), + 41: uint16(25329), + 42: uint16(25383), + 43: uint16(25346), + 44: uint16(25352), + 45: uint16(25327), + 46: uint16(25333), + 47: uint16(25424), + 48: uint16(25406), + 49: uint16(25421), + 50: uint16(25628), + 51: uint16(25423), + 52: uint16(25494), + 53: uint16(25486), + 54: uint16(25472), + 55: uint16(25515), + 56: uint16(25462), + 57: uint16(25507), + 58: uint16(25487), + 59: uint16(25481), + 60: uint16(25503), + 61: uint16(25525), + 62: uint16(25451), + 63: uint16(25449), + 64: uint16(25534), + 65: uint16(25577), + 66: uint16(25536), + 67: uint16(25542), + 68: uint16(25571), + 69: uint16(25545), + 70: uint16(25554), + 71: uint16(25590), + 72: uint16(25540), + 73: uint16(25622), + 74: uint16(25652), + 75: uint16(25606), + 76: uint16(25619), + 77: uint16(25638), + 78: uint16(25654), + 79: uint16(25885), + 80: uint16(25623), + 81: uint16(25640), + 82: uint16(25615), + 83: uint16(25703), + 84: uint16(25711), + 85: uint16(25718), + 86: uint16(25678), + 87: uint16(25898), + 88: uint16(25749), + 89: uint16(25747), + 90: uint16(25765), + 91: uint16(25769), + 92: uint16(25736), + 93: uint16(25788), + }, + 57: { + 0: uint16(25818), + 1: uint16(25810), + 2: uint16(25797), + 3: uint16(25799), + 4: uint16(25787), + 5: uint16(25816), + 6: uint16(25794), + 7: uint16(25841), + 8: uint16(25831), + 9: uint16(33289), + 10: uint16(25824), + 11: uint16(25825), + 12: uint16(25260), + 13: uint16(25827), + 14: uint16(25839), + 15: uint16(25900), + 16: uint16(25846), + 17: uint16(25844), + 18: uint16(25842), + 19: uint16(25850), + 20: uint16(25856), + 21: uint16(25853), + 22: uint16(25880), + 23: uint16(25884), + 24: uint16(25861), + 25: uint16(25892), + 26: uint16(25891), + 27: uint16(25899), + 28: uint16(25908), + 29: uint16(25909), + 30: uint16(25911), + 31: uint16(25910), + 32: uint16(25912), + 33: uint16(30027), + 34: uint16(25928), + 35: uint16(25942), + 36: uint16(25941), + 37: uint16(25933), + 38: uint16(25944), + 39: uint16(25950), + 40: uint16(25949), + 41: uint16(25970), + 42: uint16(25976), + 43: uint16(25986), + 44: uint16(25987), + 45: uint16(35722), + 46: uint16(26011), + 47: uint16(26015), + 48: uint16(26027), + 49: uint16(26039), + 50: uint16(26051), + 51: uint16(26054), + 52: uint16(26049), + 53: uint16(26052), + 54: uint16(26060), + 55: uint16(26066), + 56: uint16(26075), + 57: uint16(26073), + 58: uint16(26080), + 59: uint16(26081), + 60: uint16(26097), + 61: uint16(26482), + 62: uint16(26122), + 63: uint16(26115), + 64: uint16(26107), + 65: uint16(26483), + 66: uint16(26165), + 67: uint16(26166), + 68: uint16(26164), + 69: uint16(26140), + 70: uint16(26191), + 71: uint16(26180), + 72: uint16(26185), + 73: uint16(26177), + 74: uint16(26206), + 75: uint16(26205), + 76: uint16(26212), + 77: uint16(26215), + 78: uint16(26216), + 79: uint16(26207), + 80: uint16(26210), + 81: uint16(26224), + 82: uint16(26243), + 83: uint16(26248), + 84: uint16(26254), + 85: uint16(26249), + 86: uint16(26244), + 87: uint16(26264), + 88: uint16(26269), + 89: uint16(26305), + 90: uint16(26297), + 91: uint16(26313), + 92: uint16(26302), + 93: uint16(26300), + }, + 58: { + 0: uint16(26308), + 1: uint16(26296), + 2: uint16(26326), + 3: uint16(26330), + 4: uint16(26336), + 5: uint16(26175), + 6: uint16(26342), + 7: uint16(26345), + 8: uint16(26352), + 9: uint16(26357), + 10: uint16(26359), + 11: uint16(26383), + 12: uint16(26390), + 13: uint16(26398), + 14: uint16(26406), + 15: uint16(26407), + 16: uint16(38712), + 17: uint16(26414), + 18: uint16(26431), + 19: uint16(26422), + 20: uint16(26433), + 21: uint16(26424), + 22: uint16(26423), + 23: uint16(26438), + 24: uint16(26462), + 25: uint16(26464), + 26: uint16(26457), + 27: uint16(26467), + 28: uint16(26468), + 29: uint16(26505), + 30: uint16(26480), + 31: uint16(26537), + 32: uint16(26492), + 33: uint16(26474), + 34: uint16(26508), + 35: uint16(26507), + 36: uint16(26534), + 37: uint16(26529), + 38: uint16(26501), + 39: uint16(26551), + 40: uint16(26607), + 41: uint16(26548), + 42: uint16(26604), + 43: uint16(26547), + 44: uint16(26601), + 45: uint16(26552), + 46: uint16(26596), + 47: uint16(26590), + 48: uint16(26589), + 49: uint16(26594), + 50: uint16(26606), + 51: uint16(26553), + 52: uint16(26574), + 53: uint16(26566), + 54: uint16(26599), + 55: uint16(27292), + 56: uint16(26654), + 57: uint16(26694), + 58: uint16(26665), + 59: uint16(26688), + 60: uint16(26701), + 61: uint16(26674), + 62: uint16(26702), + 63: uint16(26803), + 64: uint16(26667), + 65: uint16(26713), + 66: uint16(26723), + 67: uint16(26743), + 68: uint16(26751), + 69: uint16(26783), + 70: uint16(26767), + 71: uint16(26797), + 72: uint16(26772), + 73: uint16(26781), + 74: uint16(26779), + 75: uint16(26755), + 76: uint16(27310), + 77: uint16(26809), + 78: uint16(26740), + 79: uint16(26805), + 80: uint16(26784), + 81: uint16(26810), + 82: uint16(26895), + 83: uint16(26765), + 84: uint16(26750), + 85: uint16(26881), + 86: uint16(26826), + 87: uint16(26888), + 88: uint16(26840), + 89: uint16(26914), + 90: uint16(26918), + 91: uint16(26849), + 92: uint16(26892), + 93: uint16(26829), + }, + 59: { + 0: uint16(26836), + 1: uint16(26855), + 2: uint16(26837), + 3: uint16(26934), + 4: uint16(26898), + 5: uint16(26884), + 6: uint16(26839), + 7: uint16(26851), + 8: uint16(26917), + 9: uint16(26873), + 10: uint16(26848), + 11: uint16(26863), + 12: uint16(26920), + 13: uint16(26922), + 14: uint16(26906), + 15: uint16(26915), + 16: uint16(26913), + 17: uint16(26822), + 18: uint16(27001), + 19: uint16(26999), + 20: uint16(26972), + 21: uint16(27000), + 22: uint16(26987), + 23: uint16(26964), + 24: uint16(27006), + 25: uint16(26990), + 26: uint16(26937), + 27: uint16(26996), + 28: uint16(26941), + 29: uint16(26969), + 30: uint16(26928), + 31: uint16(26977), + 32: uint16(26974), + 33: uint16(26973), + 34: uint16(27009), + 35: uint16(26986), + 36: uint16(27058), + 37: uint16(27054), + 38: uint16(27088), + 39: uint16(27071), + 40: uint16(27073), + 41: uint16(27091), + 42: uint16(27070), + 43: uint16(27086), + 44: uint16(23528), + 45: uint16(27082), + 46: uint16(27101), + 47: uint16(27067), + 48: uint16(27075), + 49: uint16(27047), + 50: uint16(27182), + 51: uint16(27025), + 52: uint16(27040), + 53: uint16(27036), + 54: uint16(27029), + 55: uint16(27060), + 56: uint16(27102), + 57: uint16(27112), + 58: uint16(27138), + 59: uint16(27163), + 60: uint16(27135), + 61: uint16(27402), + 62: uint16(27129), + 63: uint16(27122), + 64: uint16(27111), + 65: uint16(27141), + 66: uint16(27057), + 67: uint16(27166), + 68: uint16(27117), + 69: uint16(27156), + 70: uint16(27115), + 71: uint16(27146), + 72: uint16(27154), + 73: uint16(27329), + 74: uint16(27171), + 75: uint16(27155), + 76: uint16(27204), + 77: uint16(27148), + 78: uint16(27250), + 79: uint16(27190), + 80: uint16(27256), + 81: uint16(27207), + 82: uint16(27234), + 83: uint16(27225), + 84: uint16(27238), + 85: uint16(27208), + 86: uint16(27192), + 87: uint16(27170), + 88: uint16(27280), + 89: uint16(27277), + 90: uint16(27296), + 91: uint16(27268), + 92: uint16(27298), + 93: uint16(27299), + }, + 60: { + 0: uint16(27287), + 1: uint16(34327), + 2: uint16(27323), + 3: uint16(27331), + 4: uint16(27330), + 5: uint16(27320), + 6: uint16(27315), + 7: uint16(27308), + 8: uint16(27358), + 9: uint16(27345), + 10: uint16(27359), + 11: uint16(27306), + 12: uint16(27354), + 13: uint16(27370), + 14: uint16(27387), + 15: uint16(27397), + 16: uint16(34326), + 17: uint16(27386), + 18: uint16(27410), + 19: uint16(27414), + 20: uint16(39729), + 21: uint16(27423), + 22: uint16(27448), + 23: uint16(27447), + 24: uint16(30428), + 25: uint16(27449), + 26: uint16(39150), + 27: uint16(27463), + 28: uint16(27459), + 29: uint16(27465), + 30: uint16(27472), + 31: uint16(27481), + 32: uint16(27476), + 33: uint16(27483), + 34: uint16(27487), + 35: uint16(27489), + 36: uint16(27512), + 37: uint16(27513), + 38: uint16(27519), + 39: uint16(27520), + 40: uint16(27524), + 41: uint16(27523), + 42: uint16(27533), + 43: uint16(27544), + 44: uint16(27541), + 45: uint16(27550), + 46: uint16(27556), + 47: uint16(27562), + 48: uint16(27563), + 49: uint16(27567), + 50: uint16(27570), + 51: uint16(27569), + 52: uint16(27571), + 53: uint16(27575), + 54: uint16(27580), + 55: uint16(27590), + 56: uint16(27595), + 57: uint16(27603), + 58: uint16(27615), + 59: uint16(27628), + 60: uint16(27627), + 61: uint16(27635), + 62: uint16(27631), + 63: uint16(40638), + 64: uint16(27656), + 65: uint16(27667), + 66: uint16(27668), + 67: uint16(27675), + 68: uint16(27684), + 69: uint16(27683), + 70: uint16(27742), + 71: uint16(27733), + 72: uint16(27746), + 73: uint16(27754), + 74: uint16(27778), + 75: uint16(27789), + 76: uint16(27802), + 77: uint16(27777), + 78: uint16(27803), + 79: uint16(27774), + 80: uint16(27752), + 81: uint16(27763), + 82: uint16(27794), + 83: uint16(27792), + 84: uint16(27844), + 85: uint16(27889), + 86: uint16(27859), + 87: uint16(27837), + 88: uint16(27863), + 89: uint16(27845), + 90: uint16(27869), + 91: uint16(27822), + 92: uint16(27825), + 93: uint16(27838), + }, + 61: { + 0: uint16(27834), + 1: uint16(27867), + 2: uint16(27887), + 3: uint16(27865), + 4: uint16(27882), + 5: uint16(27935), + 6: uint16(34893), + 7: uint16(27958), + 8: uint16(27947), + 9: uint16(27965), + 10: uint16(27960), + 11: uint16(27929), + 12: uint16(27957), + 13: uint16(27955), + 14: uint16(27922), + 15: uint16(27916), + 16: uint16(28003), + 17: uint16(28051), + 18: uint16(28004), + 19: uint16(27994), + 20: uint16(28025), + 21: uint16(27993), + 22: uint16(28046), + 23: uint16(28053), + 24: uint16(28644), + 25: uint16(28037), + 26: uint16(28153), + 27: uint16(28181), + 28: uint16(28170), + 29: uint16(28085), + 30: uint16(28103), + 31: uint16(28134), + 32: uint16(28088), + 33: uint16(28102), + 34: uint16(28140), + 35: uint16(28126), + 36: uint16(28108), + 37: uint16(28136), + 38: uint16(28114), + 39: uint16(28101), + 40: uint16(28154), + 41: uint16(28121), + 42: uint16(28132), + 43: uint16(28117), + 44: uint16(28138), + 45: uint16(28142), + 46: uint16(28205), + 47: uint16(28270), + 48: uint16(28206), + 49: uint16(28185), + 50: uint16(28274), + 51: uint16(28255), + 52: uint16(28222), + 53: uint16(28195), + 54: uint16(28267), + 55: uint16(28203), + 56: uint16(28278), + 57: uint16(28237), + 58: uint16(28191), + 59: uint16(28227), + 60: uint16(28218), + 61: uint16(28238), + 62: uint16(28196), + 63: uint16(28415), + 64: uint16(28189), + 65: uint16(28216), + 66: uint16(28290), + 67: uint16(28330), + 68: uint16(28312), + 69: uint16(28361), + 70: uint16(28343), + 71: uint16(28371), + 72: uint16(28349), + 73: uint16(28335), + 74: uint16(28356), + 75: uint16(28338), + 76: uint16(28372), + 77: uint16(28373), + 78: uint16(28303), + 79: uint16(28325), + 80: uint16(28354), + 81: uint16(28319), + 82: uint16(28481), + 83: uint16(28433), + 84: uint16(28748), + 85: uint16(28396), + 86: uint16(28408), + 87: uint16(28414), + 88: uint16(28479), + 89: uint16(28402), + 90: uint16(28465), + 91: uint16(28399), + 92: uint16(28466), + 93: uint16(28364), + }, + 62: { + 0: uint16(28478), + 1: uint16(28435), + 2: uint16(28407), + 3: uint16(28550), + 4: uint16(28538), + 5: uint16(28536), + 6: uint16(28545), + 7: uint16(28544), + 8: uint16(28527), + 9: uint16(28507), + 10: uint16(28659), + 11: uint16(28525), + 12: uint16(28546), + 13: uint16(28540), + 14: uint16(28504), + 15: uint16(28558), + 16: uint16(28561), + 17: uint16(28610), + 18: uint16(28518), + 19: uint16(28595), + 20: uint16(28579), + 21: uint16(28577), + 22: uint16(28580), + 23: uint16(28601), + 24: uint16(28614), + 25: uint16(28586), + 26: uint16(28639), + 27: uint16(28629), + 28: uint16(28652), + 29: uint16(28628), + 30: uint16(28632), + 31: uint16(28657), + 32: uint16(28654), + 33: uint16(28635), + 34: uint16(28681), + 35: uint16(28683), + 36: uint16(28666), + 37: uint16(28689), + 38: uint16(28673), + 39: uint16(28687), + 40: uint16(28670), + 41: uint16(28699), + 42: uint16(28698), + 43: uint16(28532), + 44: uint16(28701), + 45: uint16(28696), + 46: uint16(28703), + 47: uint16(28720), + 48: uint16(28734), + 49: uint16(28722), + 50: uint16(28753), + 51: uint16(28771), + 52: uint16(28825), + 53: uint16(28818), + 54: uint16(28847), + 55: uint16(28913), + 56: uint16(28844), + 57: uint16(28856), + 58: uint16(28851), + 59: uint16(28846), + 60: uint16(28895), + 61: uint16(28875), + 62: uint16(28893), + 63: uint16(28889), + 64: uint16(28937), + 65: uint16(28925), + 66: uint16(28956), + 67: uint16(28953), + 68: uint16(29029), + 69: uint16(29013), + 70: uint16(29064), + 71: uint16(29030), + 72: uint16(29026), + 73: uint16(29004), + 74: uint16(29014), + 75: uint16(29036), + 76: uint16(29071), + 77: uint16(29179), + 78: uint16(29060), + 79: uint16(29077), + 80: uint16(29096), + 81: uint16(29100), + 82: uint16(29143), + 83: uint16(29113), + 84: uint16(29118), + 85: uint16(29138), + 86: uint16(29129), + 87: uint16(29140), + 88: uint16(29134), + 89: uint16(29152), + 90: uint16(29164), + 91: uint16(29159), + 92: uint16(29173), + 93: uint16(29180), + }, + 63: { + 0: uint16(29177), + 1: uint16(29183), + 2: uint16(29197), + 3: uint16(29200), + 4: uint16(29211), + 5: uint16(29224), + 6: uint16(29229), + 7: uint16(29228), + 8: uint16(29232), + 9: uint16(29234), + 10: uint16(29243), + 11: uint16(29244), + 12: uint16(29247), + 13: uint16(29248), + 14: uint16(29254), + 15: uint16(29259), + 16: uint16(29272), + 17: uint16(29300), + 18: uint16(29310), + 19: uint16(29314), + 20: uint16(29313), + 21: uint16(29319), + 22: uint16(29330), + 23: uint16(29334), + 24: uint16(29346), + 25: uint16(29351), + 26: uint16(29369), + 27: uint16(29362), + 28: uint16(29379), + 29: uint16(29382), + 30: uint16(29380), + 31: uint16(29390), + 32: uint16(29394), + 33: uint16(29410), + 34: uint16(29408), + 35: uint16(29409), + 36: uint16(29433), + 37: uint16(29431), + 38: uint16(20495), + 39: uint16(29463), + 40: uint16(29450), + 41: uint16(29468), + 42: uint16(29462), + 43: uint16(29469), + 44: uint16(29492), + 45: uint16(29487), + 46: uint16(29481), + 47: uint16(29477), + 48: uint16(29502), + 49: uint16(29518), + 50: uint16(29519), + 51: uint16(40664), + 52: uint16(29527), + 53: uint16(29546), + 54: uint16(29544), + 55: uint16(29552), + 56: uint16(29560), + 57: uint16(29557), + 58: uint16(29563), + 59: uint16(29562), + 60: uint16(29640), + 61: uint16(29619), + 62: uint16(29646), + 63: uint16(29627), + 64: uint16(29632), + 65: uint16(29669), + 66: uint16(29678), + 67: uint16(29662), + 68: uint16(29858), + 69: uint16(29701), + 70: uint16(29807), + 71: uint16(29733), + 72: uint16(29688), + 73: uint16(29746), + 74: uint16(29754), + 75: uint16(29781), + 76: uint16(29759), + 77: uint16(29791), + 78: uint16(29785), + 79: uint16(29761), + 80: uint16(29788), + 81: uint16(29801), + 82: uint16(29808), + 83: uint16(29795), + 84: uint16(29802), + 85: uint16(29814), + 86: uint16(29822), + 87: uint16(29835), + 88: uint16(29854), + 89: uint16(29863), + 90: uint16(29898), + 91: uint16(29903), + 92: uint16(29908), + 93: uint16(29681), + }, + 64: { + 0: uint16(29920), + 1: uint16(29923), + 2: uint16(29927), + 3: uint16(29929), + 4: uint16(29934), + 5: uint16(29938), + 6: uint16(29936), + 7: uint16(29937), + 8: uint16(29944), + 9: uint16(29943), + 10: uint16(29956), + 11: uint16(29955), + 12: uint16(29957), + 13: uint16(29964), + 14: uint16(29966), + 15: uint16(29965), + 16: uint16(29973), + 17: uint16(29971), + 18: uint16(29982), + 19: uint16(29990), + 20: uint16(29996), + 21: uint16(30012), + 22: uint16(30020), + 23: uint16(30029), + 24: uint16(30026), + 25: uint16(30025), + 26: uint16(30043), + 27: uint16(30022), + 28: uint16(30042), + 29: uint16(30057), + 30: uint16(30052), + 31: uint16(30055), + 32: uint16(30059), + 33: uint16(30061), + 34: uint16(30072), + 35: uint16(30070), + 36: uint16(30086), + 37: uint16(30087), + 38: uint16(30068), + 39: uint16(30090), + 40: uint16(30089), + 41: uint16(30082), + 42: uint16(30100), + 43: uint16(30106), + 44: uint16(30109), + 45: uint16(30117), + 46: uint16(30115), + 47: uint16(30146), + 48: uint16(30131), + 49: uint16(30147), + 50: uint16(30133), + 51: uint16(30141), + 52: uint16(30136), + 53: uint16(30140), + 54: uint16(30129), + 55: uint16(30157), + 56: uint16(30154), + 57: uint16(30162), + 58: uint16(30169), + 59: uint16(30179), + 60: uint16(30174), + 61: uint16(30206), + 62: uint16(30207), + 63: uint16(30204), + 64: uint16(30209), + 65: uint16(30192), + 66: uint16(30202), + 67: uint16(30194), + 68: uint16(30195), + 69: uint16(30219), + 70: uint16(30221), + 71: uint16(30217), + 72: uint16(30239), + 73: uint16(30247), + 74: uint16(30240), + 75: uint16(30241), + 76: uint16(30242), + 77: uint16(30244), + 78: uint16(30260), + 79: uint16(30256), + 80: uint16(30267), + 81: uint16(30279), + 82: uint16(30280), + 83: uint16(30278), + 84: uint16(30300), + 85: uint16(30296), + 86: uint16(30305), + 87: uint16(30306), + 88: uint16(30312), + 89: uint16(30313), + 90: uint16(30314), + 91: uint16(30311), + 92: uint16(30316), + 93: uint16(30320), + }, + 65: { + 0: uint16(30322), + 1: uint16(30326), + 2: uint16(30328), + 3: uint16(30332), + 4: uint16(30336), + 5: uint16(30339), + 6: uint16(30344), + 7: uint16(30347), + 8: uint16(30350), + 9: uint16(30358), + 10: uint16(30355), + 11: uint16(30361), + 12: uint16(30362), + 13: uint16(30384), + 14: uint16(30388), + 15: uint16(30392), + 16: uint16(30393), + 17: uint16(30394), + 18: uint16(30402), + 19: uint16(30413), + 20: uint16(30422), + 21: uint16(30418), + 22: uint16(30430), + 23: uint16(30433), + 24: uint16(30437), + 25: uint16(30439), + 26: uint16(30442), + 27: uint16(34351), + 28: uint16(30459), + 29: uint16(30472), + 30: uint16(30471), + 31: uint16(30468), + 32: uint16(30505), + 33: uint16(30500), + 34: uint16(30494), + 35: uint16(30501), + 36: uint16(30502), + 37: uint16(30491), + 38: uint16(30519), + 39: uint16(30520), + 40: uint16(30535), + 41: uint16(30554), + 42: uint16(30568), + 43: uint16(30571), + 44: uint16(30555), + 45: uint16(30565), + 46: uint16(30591), + 47: uint16(30590), + 48: uint16(30585), + 49: uint16(30606), + 50: uint16(30603), + 51: uint16(30609), + 52: uint16(30624), + 53: uint16(30622), + 54: uint16(30640), + 55: uint16(30646), + 56: uint16(30649), + 57: uint16(30655), + 58: uint16(30652), + 59: uint16(30653), + 60: uint16(30651), + 61: uint16(30663), + 62: uint16(30669), + 63: uint16(30679), + 64: uint16(30682), + 65: uint16(30684), + 66: uint16(30691), + 67: uint16(30702), + 68: uint16(30716), + 69: uint16(30732), + 70: uint16(30738), + 71: uint16(31014), + 72: uint16(30752), + 73: uint16(31018), + 74: uint16(30789), + 75: uint16(30862), + 76: uint16(30836), + 77: uint16(30854), + 78: uint16(30844), + 79: uint16(30874), + 80: uint16(30860), + 81: uint16(30883), + 82: uint16(30901), + 83: uint16(30890), + 84: uint16(30895), + 85: uint16(30929), + 86: uint16(30918), + 87: uint16(30923), + 88: uint16(30932), + 89: uint16(30910), + 90: uint16(30908), + 91: uint16(30917), + 92: uint16(30922), + 93: uint16(30956), + }, + 66: { + 0: uint16(30951), + 1: uint16(30938), + 2: uint16(30973), + 3: uint16(30964), + 4: uint16(30983), + 5: uint16(30994), + 6: uint16(30993), + 7: uint16(31001), + 8: uint16(31020), + 9: uint16(31019), + 10: uint16(31040), + 11: uint16(31072), + 12: uint16(31063), + 13: uint16(31071), + 14: uint16(31066), + 15: uint16(31061), + 16: uint16(31059), + 17: uint16(31098), + 18: uint16(31103), + 19: uint16(31114), + 20: uint16(31133), + 21: uint16(31143), + 22: uint16(40779), + 23: uint16(31146), + 24: uint16(31150), + 25: uint16(31155), + 26: uint16(31161), + 27: uint16(31162), + 28: uint16(31177), + 29: uint16(31189), + 30: uint16(31207), + 31: uint16(31212), + 32: uint16(31201), + 33: uint16(31203), + 34: uint16(31240), + 35: uint16(31245), + 36: uint16(31256), + 37: uint16(31257), + 38: uint16(31264), + 39: uint16(31263), + 40: uint16(31104), + 41: uint16(31281), + 42: uint16(31291), + 43: uint16(31294), + 44: uint16(31287), + 45: uint16(31299), + 46: uint16(31319), + 47: uint16(31305), + 48: uint16(31329), + 49: uint16(31330), + 50: uint16(31337), + 51: uint16(40861), + 52: uint16(31344), + 53: uint16(31353), + 54: uint16(31357), + 55: uint16(31368), + 56: uint16(31383), + 57: uint16(31381), + 58: uint16(31384), + 59: uint16(31382), + 60: uint16(31401), + 61: uint16(31432), + 62: uint16(31408), + 63: uint16(31414), + 64: uint16(31429), + 65: uint16(31428), + 66: uint16(31423), + 67: uint16(36995), + 68: uint16(31431), + 69: uint16(31434), + 70: uint16(31437), + 71: uint16(31439), + 72: uint16(31445), + 73: uint16(31443), + 74: uint16(31449), + 75: uint16(31450), + 76: uint16(31453), + 77: uint16(31457), + 78: uint16(31458), + 79: uint16(31462), + 80: uint16(31469), + 81: uint16(31472), + 82: uint16(31490), + 83: uint16(31503), + 84: uint16(31498), + 85: uint16(31494), + 86: uint16(31539), + 87: uint16(31512), + 88: uint16(31513), + 89: uint16(31518), + 90: uint16(31541), + 91: uint16(31528), + 92: uint16(31542), + 93: uint16(31568), + }, + 67: { + 0: uint16(31610), + 1: uint16(31492), + 2: uint16(31565), + 3: uint16(31499), + 4: uint16(31564), + 5: uint16(31557), + 6: uint16(31605), + 7: uint16(31589), + 8: uint16(31604), + 9: uint16(31591), + 10: uint16(31600), + 11: uint16(31601), + 12: uint16(31596), + 13: uint16(31598), + 14: uint16(31645), + 15: uint16(31640), + 16: uint16(31647), + 17: uint16(31629), + 18: uint16(31644), + 19: uint16(31642), + 20: uint16(31627), + 21: uint16(31634), + 22: uint16(31631), + 23: uint16(31581), + 24: uint16(31641), + 25: uint16(31691), + 26: uint16(31681), + 27: uint16(31692), + 28: uint16(31695), + 29: uint16(31668), + 30: uint16(31686), + 31: uint16(31709), + 32: uint16(31721), + 33: uint16(31761), + 34: uint16(31764), + 35: uint16(31718), + 36: uint16(31717), + 37: uint16(31840), + 38: uint16(31744), + 39: uint16(31751), + 40: uint16(31763), + 41: uint16(31731), + 42: uint16(31735), + 43: uint16(31767), + 44: uint16(31757), + 45: uint16(31734), + 46: uint16(31779), + 47: uint16(31783), + 48: uint16(31786), + 49: uint16(31775), + 50: uint16(31799), + 51: uint16(31787), + 52: uint16(31805), + 53: uint16(31820), + 54: uint16(31811), + 55: uint16(31828), + 56: uint16(31823), + 57: uint16(31808), + 58: uint16(31824), + 59: uint16(31832), + 60: uint16(31839), + 61: uint16(31844), + 62: uint16(31830), + 63: uint16(31845), + 64: uint16(31852), + 65: uint16(31861), + 66: uint16(31875), + 67: uint16(31888), + 68: uint16(31908), + 69: uint16(31917), + 70: uint16(31906), + 71: uint16(31915), + 72: uint16(31905), + 73: uint16(31912), + 74: uint16(31923), + 75: uint16(31922), + 76: uint16(31921), + 77: uint16(31918), + 78: uint16(31929), + 79: uint16(31933), + 80: uint16(31936), + 81: uint16(31941), + 82: uint16(31938), + 83: uint16(31960), + 84: uint16(31954), + 85: uint16(31964), + 86: uint16(31970), + 87: uint16(39739), + 88: uint16(31983), + 89: uint16(31986), + 90: uint16(31988), + 91: uint16(31990), + 92: uint16(31994), + 93: uint16(32006), + }, + 68: { + 0: uint16(32002), + 1: uint16(32028), + 2: uint16(32021), + 3: uint16(32010), + 4: uint16(32069), + 5: uint16(32075), + 6: uint16(32046), + 7: uint16(32050), + 8: uint16(32063), + 9: uint16(32053), + 10: uint16(32070), + 11: uint16(32115), + 12: uint16(32086), + 13: uint16(32078), + 14: uint16(32114), + 15: uint16(32104), + 16: uint16(32110), + 17: uint16(32079), + 18: uint16(32099), + 19: uint16(32147), + 20: uint16(32137), + 21: uint16(32091), + 22: uint16(32143), + 23: uint16(32125), + 24: uint16(32155), + 25: uint16(32186), + 26: uint16(32174), + 27: uint16(32163), + 28: uint16(32181), + 29: uint16(32199), + 30: uint16(32189), + 31: uint16(32171), + 32: uint16(32317), + 33: uint16(32162), + 34: uint16(32175), + 35: uint16(32220), + 36: uint16(32184), + 37: uint16(32159), + 38: uint16(32176), + 39: uint16(32216), + 40: uint16(32221), + 41: uint16(32228), + 42: uint16(32222), + 43: uint16(32251), + 44: uint16(32242), + 45: uint16(32225), + 46: uint16(32261), + 47: uint16(32266), + 48: uint16(32291), + 49: uint16(32289), + 50: uint16(32274), + 51: uint16(32305), + 52: uint16(32287), + 53: uint16(32265), + 54: uint16(32267), + 55: uint16(32290), + 56: uint16(32326), + 57: uint16(32358), + 58: uint16(32315), + 59: uint16(32309), + 60: uint16(32313), + 61: uint16(32323), + 62: uint16(32311), + 63: uint16(32306), + 64: uint16(32314), + 65: uint16(32359), + 66: uint16(32349), + 67: uint16(32342), + 68: uint16(32350), + 69: uint16(32345), + 70: uint16(32346), + 71: uint16(32377), + 72: uint16(32362), + 73: uint16(32361), + 74: uint16(32380), + 75: uint16(32379), + 76: uint16(32387), + 77: uint16(32213), + 78: uint16(32381), + 79: uint16(36782), + 80: uint16(32383), + 81: uint16(32392), + 82: uint16(32393), + 83: uint16(32396), + 84: uint16(32402), + 85: uint16(32400), + 86: uint16(32403), + 87: uint16(32404), + 88: uint16(32406), + 89: uint16(32398), + 90: uint16(32411), + 91: uint16(32412), + 92: uint16(32568), + 93: uint16(32570), + }, + 69: { + 0: uint16(32581), + 1: uint16(32588), + 2: uint16(32589), + 3: uint16(32590), + 4: uint16(32592), + 5: uint16(32593), + 6: uint16(32597), + 7: uint16(32596), + 8: uint16(32600), + 9: uint16(32607), + 10: uint16(32608), + 11: uint16(32616), + 12: uint16(32617), + 13: uint16(32615), + 14: uint16(32632), + 15: uint16(32642), + 16: uint16(32646), + 17: uint16(32643), + 18: uint16(32648), + 19: uint16(32647), + 20: uint16(32652), + 21: uint16(32660), + 22: uint16(32670), + 23: uint16(32669), + 24: uint16(32666), + 25: uint16(32675), + 26: uint16(32687), + 27: uint16(32690), + 28: uint16(32697), + 29: uint16(32686), + 30: uint16(32694), + 31: uint16(32696), + 32: uint16(35697), + 33: uint16(32709), + 34: uint16(32710), + 35: uint16(32714), + 36: uint16(32725), + 37: uint16(32724), + 38: uint16(32737), + 39: uint16(32742), + 40: uint16(32745), + 41: uint16(32755), + 42: uint16(32761), + 43: uint16(39132), + 44: uint16(32774), + 45: uint16(32772), + 46: uint16(32779), + 47: uint16(32786), + 48: uint16(32792), + 49: uint16(32793), + 50: uint16(32796), + 51: uint16(32801), + 52: uint16(32808), + 53: uint16(32831), + 54: uint16(32827), + 55: uint16(32842), + 56: uint16(32838), + 57: uint16(32850), + 58: uint16(32856), + 59: uint16(32858), + 60: uint16(32863), + 61: uint16(32866), + 62: uint16(32872), + 63: uint16(32883), + 64: uint16(32882), + 65: uint16(32880), + 66: uint16(32886), + 67: uint16(32889), + 68: uint16(32893), + 69: uint16(32895), + 70: uint16(32900), + 71: uint16(32902), + 72: uint16(32901), + 73: uint16(32923), + 74: uint16(32915), + 75: uint16(32922), + 76: uint16(32941), + 77: uint16(20880), + 78: uint16(32940), + 79: uint16(32987), + 80: uint16(32997), + 81: uint16(32985), + 82: uint16(32989), + 83: uint16(32964), + 84: uint16(32986), + 85: uint16(32982), + 86: uint16(33033), + 87: uint16(33007), + 88: uint16(33009), + 89: uint16(33051), + 90: uint16(33065), + 91: uint16(33059), + 92: uint16(33071), + 93: uint16(33099), + }, + 70: { + 0: uint16(38539), + 1: uint16(33094), + 2: uint16(33086), + 3: uint16(33107), + 4: uint16(33105), + 5: uint16(33020), + 6: uint16(33137), + 7: uint16(33134), + 8: uint16(33125), + 9: uint16(33126), + 10: uint16(33140), + 11: uint16(33155), + 12: uint16(33160), + 13: uint16(33162), + 14: uint16(33152), + 15: uint16(33154), + 16: uint16(33184), + 17: uint16(33173), + 18: uint16(33188), + 19: uint16(33187), + 20: uint16(33119), + 21: uint16(33171), + 22: uint16(33193), + 23: uint16(33200), + 24: uint16(33205), + 25: uint16(33214), + 26: uint16(33208), + 27: uint16(33213), + 28: uint16(33216), + 29: uint16(33218), + 30: uint16(33210), + 31: uint16(33225), + 32: uint16(33229), + 33: uint16(33233), + 34: uint16(33241), + 35: uint16(33240), + 36: uint16(33224), + 37: uint16(33242), + 38: uint16(33247), + 39: uint16(33248), + 40: uint16(33255), + 41: uint16(33274), + 42: uint16(33275), + 43: uint16(33278), + 44: uint16(33281), + 45: uint16(33282), + 46: uint16(33285), + 47: uint16(33287), + 48: uint16(33290), + 49: uint16(33293), + 50: uint16(33296), + 51: uint16(33302), + 52: uint16(33321), + 53: uint16(33323), + 54: uint16(33336), + 55: uint16(33331), + 56: uint16(33344), + 57: uint16(33369), + 58: uint16(33368), + 59: uint16(33373), + 60: uint16(33370), + 61: uint16(33375), + 62: uint16(33380), + 63: uint16(33378), + 64: uint16(33384), + 65: uint16(33386), + 66: uint16(33387), + 67: uint16(33326), + 68: uint16(33393), + 69: uint16(33399), + 70: uint16(33400), + 71: uint16(33406), + 72: uint16(33421), + 73: uint16(33426), + 74: uint16(33451), + 75: uint16(33439), + 76: uint16(33467), + 77: uint16(33452), + 78: uint16(33505), + 79: uint16(33507), + 80: uint16(33503), + 81: uint16(33490), + 82: uint16(33524), + 83: uint16(33523), + 84: uint16(33530), + 85: uint16(33683), + 86: uint16(33539), + 87: uint16(33531), + 88: uint16(33529), + 89: uint16(33502), + 90: uint16(33542), + 91: uint16(33500), + 92: uint16(33545), + 93: uint16(33497), + }, + 71: { + 0: uint16(33589), + 1: uint16(33588), + 2: uint16(33558), + 3: uint16(33586), + 4: uint16(33585), + 5: uint16(33600), + 6: uint16(33593), + 7: uint16(33616), + 8: uint16(33605), + 9: uint16(33583), + 10: uint16(33579), + 11: uint16(33559), + 12: uint16(33560), + 13: uint16(33669), + 14: uint16(33690), + 15: uint16(33706), + 16: uint16(33695), + 17: uint16(33698), + 18: uint16(33686), + 19: uint16(33571), + 20: uint16(33678), + 21: uint16(33671), + 22: uint16(33674), + 23: uint16(33660), + 24: uint16(33717), + 25: uint16(33651), + 26: uint16(33653), + 27: uint16(33696), + 28: uint16(33673), + 29: uint16(33704), + 30: uint16(33780), + 31: uint16(33811), + 32: uint16(33771), + 33: uint16(33742), + 34: uint16(33789), + 35: uint16(33795), + 36: uint16(33752), + 37: uint16(33803), + 38: uint16(33729), + 39: uint16(33783), + 40: uint16(33799), + 41: uint16(33760), + 42: uint16(33778), + 43: uint16(33805), + 44: uint16(33826), + 45: uint16(33824), + 46: uint16(33725), + 47: uint16(33848), + 48: uint16(34054), + 49: uint16(33787), + 50: uint16(33901), + 51: uint16(33834), + 52: uint16(33852), + 53: uint16(34138), + 54: uint16(33924), + 55: uint16(33911), + 56: uint16(33899), + 57: uint16(33965), + 58: uint16(33902), + 59: uint16(33922), + 60: uint16(33897), + 61: uint16(33862), + 62: uint16(33836), + 63: uint16(33903), + 64: uint16(33913), + 65: uint16(33845), + 66: uint16(33994), + 67: uint16(33890), + 68: uint16(33977), + 69: uint16(33983), + 70: uint16(33951), + 71: uint16(34009), + 72: uint16(33997), + 73: uint16(33979), + 74: uint16(34010), + 75: uint16(34000), + 76: uint16(33985), + 77: uint16(33990), + 78: uint16(34006), + 79: uint16(33953), + 80: uint16(34081), + 81: uint16(34047), + 82: uint16(34036), + 83: uint16(34071), + 84: uint16(34072), + 85: uint16(34092), + 86: uint16(34079), + 87: uint16(34069), + 88: uint16(34068), + 89: uint16(34044), + 90: uint16(34112), + 91: uint16(34147), + 92: uint16(34136), + 93: uint16(34120), + }, + 72: { + 0: uint16(34113), + 1: uint16(34306), + 2: uint16(34123), + 3: uint16(34133), + 4: uint16(34176), + 5: uint16(34212), + 6: uint16(34184), + 7: uint16(34193), + 8: uint16(34186), + 9: uint16(34216), + 10: uint16(34157), + 11: uint16(34196), + 12: uint16(34203), + 13: uint16(34282), + 14: uint16(34183), + 15: uint16(34204), + 16: uint16(34167), + 17: uint16(34174), + 18: uint16(34192), + 19: uint16(34249), + 20: uint16(34234), + 21: uint16(34255), + 22: uint16(34233), + 23: uint16(34256), + 24: uint16(34261), + 25: uint16(34269), + 26: uint16(34277), + 27: uint16(34268), + 28: uint16(34297), + 29: uint16(34314), + 30: uint16(34323), + 31: uint16(34315), + 32: uint16(34302), + 33: uint16(34298), + 34: uint16(34310), + 35: uint16(34338), + 36: uint16(34330), + 37: uint16(34352), + 38: uint16(34367), + 39: uint16(34381), + 40: uint16(20053), + 41: uint16(34388), + 42: uint16(34399), + 43: uint16(34407), + 44: uint16(34417), + 45: uint16(34451), + 46: uint16(34467), + 47: uint16(34473), + 48: uint16(34474), + 49: uint16(34443), + 50: uint16(34444), + 51: uint16(34486), + 52: uint16(34479), + 53: uint16(34500), + 54: uint16(34502), + 55: uint16(34480), + 56: uint16(34505), + 57: uint16(34851), + 58: uint16(34475), + 59: uint16(34516), + 60: uint16(34526), + 61: uint16(34537), + 62: uint16(34540), + 63: uint16(34527), + 64: uint16(34523), + 65: uint16(34543), + 66: uint16(34578), + 67: uint16(34566), + 68: uint16(34568), + 69: uint16(34560), + 70: uint16(34563), + 71: uint16(34555), + 72: uint16(34577), + 73: uint16(34569), + 74: uint16(34573), + 75: uint16(34553), + 76: uint16(34570), + 77: uint16(34612), + 78: uint16(34623), + 79: uint16(34615), + 80: uint16(34619), + 81: uint16(34597), + 82: uint16(34601), + 83: uint16(34586), + 84: uint16(34656), + 85: uint16(34655), + 86: uint16(34680), + 87: uint16(34636), + 88: uint16(34638), + 89: uint16(34676), + 90: uint16(34647), + 91: uint16(34664), + 92: uint16(34670), + 93: uint16(34649), + }, + 73: { + 0: uint16(34643), + 1: uint16(34659), + 2: uint16(34666), + 3: uint16(34821), + 4: uint16(34722), + 5: uint16(34719), + 6: uint16(34690), + 7: uint16(34735), + 8: uint16(34763), + 9: uint16(34749), + 10: uint16(34752), + 11: uint16(34768), + 12: uint16(38614), + 13: uint16(34731), + 14: uint16(34756), + 15: uint16(34739), + 16: uint16(34759), + 17: uint16(34758), + 18: uint16(34747), + 19: uint16(34799), + 20: uint16(34802), + 21: uint16(34784), + 22: uint16(34831), + 23: uint16(34829), + 24: uint16(34814), + 25: uint16(34806), + 26: uint16(34807), + 27: uint16(34830), + 28: uint16(34770), + 29: uint16(34833), + 30: uint16(34838), + 31: uint16(34837), + 32: uint16(34850), + 33: uint16(34849), + 34: uint16(34865), + 35: uint16(34870), + 36: uint16(34873), + 37: uint16(34855), + 38: uint16(34875), + 39: uint16(34884), + 40: uint16(34882), + 41: uint16(34898), + 42: uint16(34905), + 43: uint16(34910), + 44: uint16(34914), + 45: uint16(34923), + 46: uint16(34945), + 47: uint16(34942), + 48: uint16(34974), + 49: uint16(34933), + 50: uint16(34941), + 51: uint16(34997), + 52: uint16(34930), + 53: uint16(34946), + 54: uint16(34967), + 55: uint16(34962), + 56: uint16(34990), + 57: uint16(34969), + 58: uint16(34978), + 59: uint16(34957), + 60: uint16(34980), + 61: uint16(34992), + 62: uint16(35007), + 63: uint16(34993), + 64: uint16(35011), + 65: uint16(35012), + 66: uint16(35028), + 67: uint16(35032), + 68: uint16(35033), + 69: uint16(35037), + 70: uint16(35065), + 71: uint16(35074), + 72: uint16(35068), + 73: uint16(35060), + 74: uint16(35048), + 75: uint16(35058), + 76: uint16(35076), + 77: uint16(35084), + 78: uint16(35082), + 79: uint16(35091), + 80: uint16(35139), + 81: uint16(35102), + 82: uint16(35109), + 83: uint16(35114), + 84: uint16(35115), + 85: uint16(35137), + 86: uint16(35140), + 87: uint16(35131), + 88: uint16(35126), + 89: uint16(35128), + 90: uint16(35148), + 91: uint16(35101), + 92: uint16(35168), + 93: uint16(35166), + }, + 74: { + 0: uint16(35174), + 1: uint16(35172), + 2: uint16(35181), + 3: uint16(35178), + 4: uint16(35183), + 5: uint16(35188), + 6: uint16(35191), + 7: uint16(35198), + 8: uint16(35203), + 9: uint16(35208), + 10: uint16(35210), + 11: uint16(35219), + 12: uint16(35224), + 13: uint16(35233), + 14: uint16(35241), + 15: uint16(35238), + 16: uint16(35244), + 17: uint16(35247), + 18: uint16(35250), + 19: uint16(35258), + 20: uint16(35261), + 21: uint16(35263), + 22: uint16(35264), + 23: uint16(35290), + 24: uint16(35292), + 25: uint16(35293), + 26: uint16(35303), + 27: uint16(35316), + 28: uint16(35320), + 29: uint16(35331), + 30: uint16(35350), + 31: uint16(35344), + 32: uint16(35340), + 33: uint16(35355), + 34: uint16(35357), + 35: uint16(35365), + 36: uint16(35382), + 37: uint16(35393), + 38: uint16(35419), + 39: uint16(35410), + 40: uint16(35398), + 41: uint16(35400), + 42: uint16(35452), + 43: uint16(35437), + 44: uint16(35436), + 45: uint16(35426), + 46: uint16(35461), + 47: uint16(35458), + 48: uint16(35460), + 49: uint16(35496), + 50: uint16(35489), + 51: uint16(35473), + 52: uint16(35493), + 53: uint16(35494), + 54: uint16(35482), + 55: uint16(35491), + 56: uint16(35524), + 57: uint16(35533), + 58: uint16(35522), + 59: uint16(35546), + 60: uint16(35563), + 61: uint16(35571), + 62: uint16(35559), + 63: uint16(35556), + 64: uint16(35569), + 65: uint16(35604), + 66: uint16(35552), + 67: uint16(35554), + 68: uint16(35575), + 69: uint16(35550), + 70: uint16(35547), + 71: uint16(35596), + 72: uint16(35591), + 73: uint16(35610), + 74: uint16(35553), + 75: uint16(35606), + 76: uint16(35600), + 77: uint16(35607), + 78: uint16(35616), + 79: uint16(35635), + 80: uint16(38827), + 81: uint16(35622), + 82: uint16(35627), + 83: uint16(35646), + 84: uint16(35624), + 85: uint16(35649), + 86: uint16(35660), + 87: uint16(35663), + 88: uint16(35662), + 89: uint16(35657), + 90: uint16(35670), + 91: uint16(35675), + 92: uint16(35674), + 93: uint16(35691), + }, + 75: { + 0: uint16(35679), + 1: uint16(35692), + 2: uint16(35695), + 3: uint16(35700), + 4: uint16(35709), + 5: uint16(35712), + 6: uint16(35724), + 7: uint16(35726), + 8: uint16(35730), + 9: uint16(35731), + 10: uint16(35734), + 11: uint16(35737), + 12: uint16(35738), + 13: uint16(35898), + 14: uint16(35905), + 15: uint16(35903), + 16: uint16(35912), + 17: uint16(35916), + 18: uint16(35918), + 19: uint16(35920), + 20: uint16(35925), + 21: uint16(35938), + 22: uint16(35948), + 23: uint16(35960), + 24: uint16(35962), + 25: uint16(35970), + 26: uint16(35977), + 27: uint16(35973), + 28: uint16(35978), + 29: uint16(35981), + 30: uint16(35982), + 31: uint16(35988), + 32: uint16(35964), + 33: uint16(35992), + 34: uint16(25117), + 35: uint16(36013), + 36: uint16(36010), + 37: uint16(36029), + 38: uint16(36018), + 39: uint16(36019), + 40: uint16(36014), + 41: uint16(36022), + 42: uint16(36040), + 43: uint16(36033), + 44: uint16(36068), + 45: uint16(36067), + 46: uint16(36058), + 47: uint16(36093), + 48: uint16(36090), + 49: uint16(36091), + 50: uint16(36100), + 51: uint16(36101), + 52: uint16(36106), + 53: uint16(36103), + 54: uint16(36111), + 55: uint16(36109), + 56: uint16(36112), + 57: uint16(40782), + 58: uint16(36115), + 59: uint16(36045), + 60: uint16(36116), + 61: uint16(36118), + 62: uint16(36199), + 63: uint16(36205), + 64: uint16(36209), + 65: uint16(36211), + 66: uint16(36225), + 67: uint16(36249), + 68: uint16(36290), + 69: uint16(36286), + 70: uint16(36282), + 71: uint16(36303), + 72: uint16(36314), + 73: uint16(36310), + 74: uint16(36300), + 75: uint16(36315), + 76: uint16(36299), + 77: uint16(36330), + 78: uint16(36331), + 79: uint16(36319), + 80: uint16(36323), + 81: uint16(36348), + 82: uint16(36360), + 83: uint16(36361), + 84: uint16(36351), + 85: uint16(36381), + 86: uint16(36382), + 87: uint16(36368), + 88: uint16(36383), + 89: uint16(36418), + 90: uint16(36405), + 91: uint16(36400), + 92: uint16(36404), + 93: uint16(36426), + }, + 76: { + 0: uint16(36423), + 1: uint16(36425), + 2: uint16(36428), + 3: uint16(36432), + 4: uint16(36424), + 5: uint16(36441), + 6: uint16(36452), + 7: uint16(36448), + 8: uint16(36394), + 9: uint16(36451), + 10: uint16(36437), + 11: uint16(36470), + 12: uint16(36466), + 13: uint16(36476), + 14: uint16(36481), + 15: uint16(36487), + 16: uint16(36485), + 17: uint16(36484), + 18: uint16(36491), + 19: uint16(36490), + 20: uint16(36499), + 21: uint16(36497), + 22: uint16(36500), + 23: uint16(36505), + 24: uint16(36522), + 25: uint16(36513), + 26: uint16(36524), + 27: uint16(36528), + 28: uint16(36550), + 29: uint16(36529), + 30: uint16(36542), + 31: uint16(36549), + 32: uint16(36552), + 33: uint16(36555), + 34: uint16(36571), + 35: uint16(36579), + 36: uint16(36604), + 37: uint16(36603), + 38: uint16(36587), + 39: uint16(36606), + 40: uint16(36618), + 41: uint16(36613), + 42: uint16(36629), + 43: uint16(36626), + 44: uint16(36633), + 45: uint16(36627), + 46: uint16(36636), + 47: uint16(36639), + 48: uint16(36635), + 49: uint16(36620), + 50: uint16(36646), + 51: uint16(36659), + 52: uint16(36667), + 53: uint16(36665), + 54: uint16(36677), + 55: uint16(36674), + 56: uint16(36670), + 57: uint16(36684), + 58: uint16(36681), + 59: uint16(36678), + 60: uint16(36686), + 61: uint16(36695), + 62: uint16(36700), + 63: uint16(36706), + 64: uint16(36707), + 65: uint16(36708), + 66: uint16(36764), + 67: uint16(36767), + 68: uint16(36771), + 69: uint16(36781), + 70: uint16(36783), + 71: uint16(36791), + 72: uint16(36826), + 73: uint16(36837), + 74: uint16(36834), + 75: uint16(36842), + 76: uint16(36847), + 77: uint16(36999), + 78: uint16(36852), + 79: uint16(36869), + 80: uint16(36857), + 81: uint16(36858), + 82: uint16(36881), + 83: uint16(36885), + 84: uint16(36897), + 85: uint16(36877), + 86: uint16(36894), + 87: uint16(36886), + 88: uint16(36875), + 89: uint16(36903), + 90: uint16(36918), + 91: uint16(36917), + 92: uint16(36921), + 93: uint16(36856), + }, + 77: { + 0: uint16(36943), + 1: uint16(36944), + 2: uint16(36945), + 3: uint16(36946), + 4: uint16(36878), + 5: uint16(36937), + 6: uint16(36926), + 7: uint16(36950), + 8: uint16(36952), + 9: uint16(36958), + 10: uint16(36968), + 11: uint16(36975), + 12: uint16(36982), + 13: uint16(38568), + 14: uint16(36978), + 15: uint16(36994), + 16: uint16(36989), + 17: uint16(36993), + 18: uint16(36992), + 19: uint16(37002), + 20: uint16(37001), + 21: uint16(37007), + 22: uint16(37032), + 23: uint16(37039), + 24: uint16(37041), + 25: uint16(37045), + 26: uint16(37090), + 27: uint16(37092), + 28: uint16(25160), + 29: uint16(37083), + 30: uint16(37122), + 31: uint16(37138), + 32: uint16(37145), + 33: uint16(37170), + 34: uint16(37168), + 35: uint16(37194), + 36: uint16(37206), + 37: uint16(37208), + 38: uint16(37219), + 39: uint16(37221), + 40: uint16(37225), + 41: uint16(37235), + 42: uint16(37234), + 43: uint16(37259), + 44: uint16(37257), + 45: uint16(37250), + 46: uint16(37282), + 47: uint16(37291), + 48: uint16(37295), + 49: uint16(37290), + 50: uint16(37301), + 51: uint16(37300), + 52: uint16(37306), + 53: uint16(37312), + 54: uint16(37313), + 55: uint16(37321), + 56: uint16(37323), + 57: uint16(37328), + 58: uint16(37334), + 59: uint16(37343), + 60: uint16(37345), + 61: uint16(37339), + 62: uint16(37372), + 63: uint16(37365), + 64: uint16(37366), + 65: uint16(37406), + 66: uint16(37375), + 67: uint16(37396), + 68: uint16(37420), + 69: uint16(37397), + 70: uint16(37393), + 71: uint16(37470), + 72: uint16(37463), + 73: uint16(37445), + 74: uint16(37449), + 75: uint16(37476), + 76: uint16(37448), + 77: uint16(37525), + 78: uint16(37439), + 79: uint16(37451), + 80: uint16(37456), + 81: uint16(37532), + 82: uint16(37526), + 83: uint16(37523), + 84: uint16(37531), + 85: uint16(37466), + 86: uint16(37583), + 87: uint16(37561), + 88: uint16(37559), + 89: uint16(37609), + 90: uint16(37647), + 91: uint16(37626), + 92: uint16(37700), + 93: uint16(37678), + }, + 78: { + 0: uint16(37657), + 1: uint16(37666), + 2: uint16(37658), + 3: uint16(37667), + 4: uint16(37690), + 5: uint16(37685), + 6: uint16(37691), + 7: uint16(37724), + 8: uint16(37728), + 9: uint16(37756), + 10: uint16(37742), + 11: uint16(37718), + 12: uint16(37808), + 13: uint16(37804), + 14: uint16(37805), + 15: uint16(37780), + 16: uint16(37817), + 17: uint16(37846), + 18: uint16(37847), + 19: uint16(37864), + 20: uint16(37861), + 21: uint16(37848), + 22: uint16(37827), + 23: uint16(37853), + 24: uint16(37840), + 25: uint16(37832), + 26: uint16(37860), + 27: uint16(37914), + 28: uint16(37908), + 29: uint16(37907), + 30: uint16(37891), + 31: uint16(37895), + 32: uint16(37904), + 33: uint16(37942), + 34: uint16(37931), + 35: uint16(37941), + 36: uint16(37921), + 37: uint16(37946), + 38: uint16(37953), + 39: uint16(37970), + 40: uint16(37956), + 41: uint16(37979), + 42: uint16(37984), + 43: uint16(37986), + 44: uint16(37982), + 45: uint16(37994), + 46: uint16(37417), + 47: uint16(38000), + 48: uint16(38005), + 49: uint16(38007), + 50: uint16(38013), + 51: uint16(37978), + 52: uint16(38012), + 53: uint16(38014), + 54: uint16(38017), + 55: uint16(38015), + 56: uint16(38274), + 57: uint16(38279), + 58: uint16(38282), + 59: uint16(38292), + 60: uint16(38294), + 61: uint16(38296), + 62: uint16(38297), + 63: uint16(38304), + 64: uint16(38312), + 65: uint16(38311), + 66: uint16(38317), + 67: uint16(38332), + 68: uint16(38331), + 69: uint16(38329), + 70: uint16(38334), + 71: uint16(38346), + 72: uint16(28662), + 73: uint16(38339), + 74: uint16(38349), + 75: uint16(38348), + 76: uint16(38357), + 77: uint16(38356), + 78: uint16(38358), + 79: uint16(38364), + 80: uint16(38369), + 81: uint16(38373), + 82: uint16(38370), + 83: uint16(38433), + 84: uint16(38440), + 85: uint16(38446), + 86: uint16(38447), + 87: uint16(38466), + 88: uint16(38476), + 89: uint16(38479), + 90: uint16(38475), + 91: uint16(38519), + 92: uint16(38492), + 93: uint16(38494), + }, + 79: { + 0: uint16(38493), + 1: uint16(38495), + 2: uint16(38502), + 3: uint16(38514), + 4: uint16(38508), + 5: uint16(38541), + 6: uint16(38552), + 7: uint16(38549), + 8: uint16(38551), + 9: uint16(38570), + 10: uint16(38567), + 11: uint16(38577), + 12: uint16(38578), + 13: uint16(38576), + 14: uint16(38580), + 15: uint16(38582), + 16: uint16(38584), + 17: uint16(38585), + 18: uint16(38606), + 19: uint16(38603), + 20: uint16(38601), + 21: uint16(38605), + 22: uint16(35149), + 23: uint16(38620), + 24: uint16(38669), + 25: uint16(38613), + 26: uint16(38649), + 27: uint16(38660), + 28: uint16(38662), + 29: uint16(38664), + 30: uint16(38675), + 31: uint16(38670), + 32: uint16(38673), + 33: uint16(38671), + 34: uint16(38678), + 35: uint16(38681), + 36: uint16(38692), + 37: uint16(38698), + 38: uint16(38704), + 39: uint16(38713), + 40: uint16(38717), + 41: uint16(38718), + 42: uint16(38724), + 43: uint16(38726), + 44: uint16(38728), + 45: uint16(38722), + 46: uint16(38729), + 47: uint16(38748), + 48: uint16(38752), + 49: uint16(38756), + 50: uint16(38758), + 51: uint16(38760), + 52: uint16(21202), + 53: uint16(38763), + 54: uint16(38769), + 55: uint16(38777), + 56: uint16(38789), + 57: uint16(38780), + 58: uint16(38785), + 59: uint16(38778), + 60: uint16(38790), + 61: uint16(38795), + 62: uint16(38799), + 63: uint16(38800), + 64: uint16(38812), + 65: uint16(38824), + 66: uint16(38822), + 67: uint16(38819), + 68: uint16(38835), + 69: uint16(38836), + 70: uint16(38851), + 71: uint16(38854), + 72: uint16(38856), + 73: uint16(38859), + 74: uint16(38876), + 75: uint16(38893), + 76: uint16(40783), + 77: uint16(38898), + 78: uint16(31455), + 79: uint16(38902), + 80: uint16(38901), + 81: uint16(38927), + 82: uint16(38924), + 83: uint16(38968), + 84: uint16(38948), + 85: uint16(38945), + 86: uint16(38967), + 87: uint16(38973), + 88: uint16(38982), + 89: uint16(38991), + 90: uint16(38987), + 91: uint16(39019), + 92: uint16(39023), + 93: uint16(39024), + }, + 80: { + 0: uint16(39025), + 1: uint16(39028), + 2: uint16(39027), + 3: uint16(39082), + 4: uint16(39087), + 5: uint16(39089), + 6: uint16(39094), + 7: uint16(39108), + 8: uint16(39107), + 9: uint16(39110), + 10: uint16(39145), + 11: uint16(39147), + 12: uint16(39171), + 13: uint16(39177), + 14: uint16(39186), + 15: uint16(39188), + 16: uint16(39192), + 17: uint16(39201), + 18: uint16(39197), + 19: uint16(39198), + 20: uint16(39204), + 21: uint16(39200), + 22: uint16(39212), + 23: uint16(39214), + 24: uint16(39229), + 25: uint16(39230), + 26: uint16(39234), + 27: uint16(39241), + 28: uint16(39237), + 29: uint16(39248), + 30: uint16(39243), + 31: uint16(39249), + 32: uint16(39250), + 33: uint16(39244), + 34: uint16(39253), + 35: uint16(39319), + 36: uint16(39320), + 37: uint16(39333), + 38: uint16(39341), + 39: uint16(39342), + 40: uint16(39356), + 41: uint16(39391), + 42: uint16(39387), + 43: uint16(39389), + 44: uint16(39384), + 45: uint16(39377), + 46: uint16(39405), + 47: uint16(39406), + 48: uint16(39409), + 49: uint16(39410), + 50: uint16(39419), + 51: uint16(39416), + 52: uint16(39425), + 53: uint16(39439), + 54: uint16(39429), + 55: uint16(39394), + 56: uint16(39449), + 57: uint16(39467), + 58: uint16(39479), + 59: uint16(39493), + 60: uint16(39490), + 61: uint16(39488), + 62: uint16(39491), + 63: uint16(39486), + 64: uint16(39509), + 65: uint16(39501), + 66: uint16(39515), + 67: uint16(39511), + 68: uint16(39519), + 69: uint16(39522), + 70: uint16(39525), + 71: uint16(39524), + 72: uint16(39529), + 73: uint16(39531), + 74: uint16(39530), + 75: uint16(39597), + 76: uint16(39600), + 77: uint16(39612), + 78: uint16(39616), + 79: uint16(39631), + 80: uint16(39633), + 81: uint16(39635), + 82: uint16(39636), + 83: uint16(39646), + 84: uint16(39647), + 85: uint16(39650), + 86: uint16(39651), + 87: uint16(39654), + 88: uint16(39663), + 89: uint16(39659), + 90: uint16(39662), + 91: uint16(39668), + 92: uint16(39665), + 93: uint16(39671), + }, + 81: { + 0: uint16(39675), + 1: uint16(39686), + 2: uint16(39704), + 3: uint16(39706), + 4: uint16(39711), + 5: uint16(39714), + 6: uint16(39715), + 7: uint16(39717), + 8: uint16(39719), + 9: uint16(39720), + 10: uint16(39721), + 11: uint16(39722), + 12: uint16(39726), + 13: uint16(39727), + 14: uint16(39730), + 15: uint16(39748), + 16: uint16(39747), + 17: uint16(39759), + 18: uint16(39757), + 19: uint16(39758), + 20: uint16(39761), + 21: uint16(39768), + 22: uint16(39796), + 23: uint16(39827), + 24: uint16(39811), + 25: uint16(39825), + 26: uint16(39830), + 27: uint16(39831), + 28: uint16(39839), + 29: uint16(39840), + 30: uint16(39848), + 31: uint16(39860), + 32: uint16(39872), + 33: uint16(39882), + 34: uint16(39865), + 35: uint16(39878), + 36: uint16(39887), + 37: uint16(39889), + 38: uint16(39890), + 39: uint16(39907), + 40: uint16(39906), + 41: uint16(39908), + 42: uint16(39892), + 43: uint16(39905), + 44: uint16(39994), + 45: uint16(39922), + 46: uint16(39921), + 47: uint16(39920), + 48: uint16(39957), + 49: uint16(39956), + 50: uint16(39945), + 51: uint16(39955), + 52: uint16(39948), + 53: uint16(39942), + 54: uint16(39944), + 55: uint16(39954), + 56: uint16(39946), + 57: uint16(39940), + 58: uint16(39982), + 59: uint16(39963), + 60: uint16(39973), + 61: uint16(39972), + 62: uint16(39969), + 63: uint16(39984), + 64: uint16(40007), + 65: uint16(39986), + 66: uint16(40006), + 67: uint16(39998), + 68: uint16(40026), + 69: uint16(40032), + 70: uint16(40039), + 71: uint16(40054), + 72: uint16(40056), + 73: uint16(40167), + 74: uint16(40172), + 75: uint16(40176), + 76: uint16(40201), + 77: uint16(40200), + 78: uint16(40171), + 79: uint16(40195), + 80: uint16(40198), + 81: uint16(40234), + 82: uint16(40230), + 83: uint16(40367), + 84: uint16(40227), + 85: uint16(40223), + 86: uint16(40260), + 87: uint16(40213), + 88: uint16(40210), + 89: uint16(40257), + 90: uint16(40255), + 91: uint16(40254), + 92: uint16(40262), + 93: uint16(40264), + }, + 82: { + 0: uint16(40285), + 1: uint16(40286), + 2: uint16(40292), + 3: uint16(40273), + 4: uint16(40272), + 5: uint16(40281), + 6: uint16(40306), + 7: uint16(40329), + 8: uint16(40327), + 9: uint16(40363), + 10: uint16(40303), + 11: uint16(40314), + 12: uint16(40346), + 13: uint16(40356), + 14: uint16(40361), + 15: uint16(40370), + 16: uint16(40388), + 17: uint16(40385), + 18: uint16(40379), + 19: uint16(40376), + 20: uint16(40378), + 21: uint16(40390), + 22: uint16(40399), + 23: uint16(40386), + 24: uint16(40409), + 25: uint16(40403), + 26: uint16(40440), + 27: uint16(40422), + 28: uint16(40429), + 29: uint16(40431), + 30: uint16(40445), + 31: uint16(40474), + 32: uint16(40475), + 33: uint16(40478), + 34: uint16(40565), + 35: uint16(40569), + 36: uint16(40573), + 37: uint16(40577), + 38: uint16(40584), + 39: uint16(40587), + 40: uint16(40588), + 41: uint16(40594), + 42: uint16(40597), + 43: uint16(40593), + 44: uint16(40605), + 45: uint16(40613), + 46: uint16(40617), + 47: uint16(40632), + 48: uint16(40618), + 49: uint16(40621), + 50: uint16(38753), + 51: uint16(40652), + 52: uint16(40654), + 53: uint16(40655), + 54: uint16(40656), + 55: uint16(40660), + 56: uint16(40668), + 57: uint16(40670), + 58: uint16(40669), + 59: uint16(40672), + 60: uint16(40677), + 61: uint16(40680), + 62: uint16(40687), + 63: uint16(40692), + 64: uint16(40694), + 65: uint16(40695), + 66: uint16(40697), + 67: uint16(40699), + 68: uint16(40700), + 69: uint16(40701), + 70: uint16(40711), + 71: uint16(40712), + 72: uint16(30391), + 73: uint16(40725), + 74: uint16(40737), + 75: uint16(40748), + 76: uint16(40766), + 77: uint16(40778), + 78: uint16(40786), + 79: uint16(40788), + 80: uint16(40803), + 81: uint16(40799), + 82: uint16(40800), + 83: uint16(40801), + 84: uint16(40806), + 85: uint16(40807), + 86: uint16(40812), + 87: uint16(40810), + 88: uint16(40823), + 89: uint16(40818), + 90: uint16(40822), + 91: uint16(40853), + 92: uint16(40860), + 93: uint16(40864), + }, + 83: { + 0: uint16(22575), + 1: uint16(27079), + 2: uint16(36953), + 3: uint16(29796), + 4: uint16(20956), + 5: uint16(29081), + }, +} + +var _gb18030 = [126][190]uint16{ + 0: { + 0: uint16(19970), + 1: uint16(19972), + 2: uint16(19973), + 3: uint16(19974), + 4: uint16(19983), + 5: uint16(19986), + 6: uint16(19991), + 7: uint16(19999), + 8: uint16(20000), + 9: uint16(20001), + 10: uint16(20003), + 11: uint16(20006), + 12: uint16(20009), + 13: uint16(20014), + 14: uint16(20015), + 15: uint16(20017), + 16: uint16(20019), + 17: uint16(20021), + 18: uint16(20023), + 19: uint16(20028), + 20: uint16(20032), + 21: uint16(20033), + 22: uint16(20034), + 23: uint16(20036), + 24: uint16(20038), + 25: uint16(20042), + 26: uint16(20049), + 27: uint16(20053), + 28: uint16(20055), + 29: uint16(20058), + 30: uint16(20059), + 31: uint16(20066), + 32: uint16(20067), + 33: uint16(20068), + 34: uint16(20069), + 35: uint16(20071), + 36: uint16(20072), + 37: uint16(20074), + 38: uint16(20075), + 39: uint16(20076), + 40: uint16(20077), + 41: uint16(20078), + 42: uint16(20079), + 43: uint16(20082), + 44: uint16(20084), + 45: uint16(20085), + 46: uint16(20086), + 47: uint16(20087), + 48: uint16(20088), + 49: uint16(20089), + 50: uint16(20090), + 51: uint16(20091), + 52: uint16(20092), + 53: uint16(20093), + 54: uint16(20095), + 55: uint16(20096), + 56: uint16(20097), + 57: uint16(20098), + 58: uint16(20099), + 59: uint16(20100), + 60: uint16(20101), + 61: uint16(20103), + 62: uint16(20106), + 63: uint16(20112), + 64: uint16(20118), + 65: uint16(20119), + 66: uint16(20121), + 67: uint16(20124), + 68: uint16(20125), + 69: uint16(20126), + 70: uint16(20131), + 71: uint16(20138), + 72: uint16(20143), + 73: uint16(20144), + 74: uint16(20145), + 75: uint16(20148), + 76: uint16(20150), + 77: uint16(20151), + 78: uint16(20152), + 79: uint16(20153), + 80: uint16(20156), + 81: uint16(20157), + 82: uint16(20158), + 83: uint16(20168), + 84: uint16(20172), + 85: uint16(20175), + 86: uint16(20176), + 87: uint16(20178), + 88: uint16(20186), + 89: uint16(20187), + 90: uint16(20188), + 91: uint16(20192), + 92: uint16(20194), + 93: uint16(20198), + 94: uint16(20199), + 95: uint16(20201), + 96: uint16(20205), + 97: uint16(20206), + 98: uint16(20207), + 99: uint16(20209), + 100: uint16(20212), + 101: uint16(20216), + 102: uint16(20217), + 103: uint16(20218), + 104: uint16(20220), + 105: uint16(20222), + 106: uint16(20224), + 107: uint16(20226), + 108: uint16(20227), + 109: uint16(20228), + 110: uint16(20229), + 111: uint16(20230), + 112: uint16(20231), + 113: uint16(20232), + 114: uint16(20235), + 115: uint16(20236), + 116: uint16(20242), + 117: uint16(20243), + 118: uint16(20244), + 119: uint16(20245), + 120: uint16(20246), + 121: uint16(20252), + 122: uint16(20253), + 123: uint16(20257), + 124: uint16(20259), + 125: uint16(20264), + 126: uint16(20265), + 127: uint16(20268), + 128: uint16(20269), + 129: uint16(20270), + 130: uint16(20273), + 131: uint16(20275), + 132: uint16(20277), + 133: uint16(20279), + 134: uint16(20281), + 135: uint16(20283), + 136: uint16(20286), + 137: uint16(20287), + 138: uint16(20288), + 139: uint16(20289), + 140: uint16(20290), + 141: uint16(20292), + 142: uint16(20293), + 143: uint16(20295), + 144: uint16(20296), + 145: uint16(20297), + 146: uint16(20298), + 147: uint16(20299), + 148: uint16(20300), + 149: uint16(20306), + 150: uint16(20308), + 151: uint16(20310), + 152: uint16(20321), + 153: uint16(20322), + 154: uint16(20326), + 155: uint16(20328), + 156: uint16(20330), + 157: uint16(20331), + 158: uint16(20333), + 159: uint16(20334), + 160: uint16(20337), + 161: uint16(20338), + 162: uint16(20341), + 163: uint16(20343), + 164: uint16(20344), + 165: uint16(20345), + 166: uint16(20346), + 167: uint16(20349), + 168: uint16(20352), + 169: uint16(20353), + 170: uint16(20354), + 171: uint16(20357), + 172: uint16(20358), + 173: uint16(20359), + 174: uint16(20362), + 175: uint16(20364), + 176: uint16(20366), + 177: uint16(20368), + 178: uint16(20370), + 179: uint16(20371), + 180: uint16(20373), + 181: uint16(20374), + 182: uint16(20376), + 183: uint16(20377), + 184: uint16(20378), + 185: uint16(20380), + 186: uint16(20382), + 187: uint16(20383), + 188: uint16(20385), + 189: uint16(20386), + }, + 1: { + 0: uint16(20388), + 1: uint16(20395), + 2: uint16(20397), + 3: uint16(20400), + 4: uint16(20401), + 5: uint16(20402), + 6: uint16(20403), + 7: uint16(20404), + 8: uint16(20406), + 9: uint16(20407), + 10: uint16(20408), + 11: uint16(20409), + 12: uint16(20410), + 13: uint16(20411), + 14: uint16(20412), + 15: uint16(20413), + 16: uint16(20414), + 17: uint16(20416), + 18: uint16(20417), + 19: uint16(20418), + 20: uint16(20422), + 21: uint16(20423), + 22: uint16(20424), + 23: uint16(20425), + 24: uint16(20427), + 25: uint16(20428), + 26: uint16(20429), + 27: uint16(20434), + 28: uint16(20435), + 29: uint16(20436), + 30: uint16(20437), + 31: uint16(20438), + 32: uint16(20441), + 33: uint16(20443), + 34: uint16(20448), + 35: uint16(20450), + 36: uint16(20452), + 37: uint16(20453), + 38: uint16(20455), + 39: uint16(20459), + 40: uint16(20460), + 41: uint16(20464), + 42: uint16(20466), + 43: uint16(20468), + 44: uint16(20469), + 45: uint16(20470), + 46: uint16(20471), + 47: uint16(20473), + 48: uint16(20475), + 49: uint16(20476), + 50: uint16(20477), + 51: uint16(20479), + 52: uint16(20480), + 53: uint16(20481), + 54: uint16(20482), + 55: uint16(20483), + 56: uint16(20484), + 57: uint16(20485), + 58: uint16(20486), + 59: uint16(20487), + 60: uint16(20488), + 61: uint16(20489), + 62: uint16(20490), + 63: uint16(20491), + 64: uint16(20494), + 65: uint16(20496), + 66: uint16(20497), + 67: uint16(20499), + 68: uint16(20501), + 69: uint16(20502), + 70: uint16(20503), + 71: uint16(20507), + 72: uint16(20509), + 73: uint16(20510), + 74: uint16(20512), + 75: uint16(20514), + 76: uint16(20515), + 77: uint16(20516), + 78: uint16(20519), + 79: uint16(20523), + 80: uint16(20527), + 81: uint16(20528), + 82: uint16(20529), + 83: uint16(20530), + 84: uint16(20531), + 85: uint16(20532), + 86: uint16(20533), + 87: uint16(20534), + 88: uint16(20535), + 89: uint16(20536), + 90: uint16(20537), + 91: uint16(20539), + 92: uint16(20541), + 93: uint16(20543), + 94: uint16(20544), + 95: uint16(20545), + 96: uint16(20546), + 97: uint16(20548), + 98: uint16(20549), + 99: uint16(20550), + 100: uint16(20553), + 101: uint16(20554), + 102: uint16(20555), + 103: uint16(20557), + 104: uint16(20560), + 105: uint16(20561), + 106: uint16(20562), + 107: uint16(20563), + 108: uint16(20564), + 109: uint16(20566), + 110: uint16(20567), + 111: uint16(20568), + 112: uint16(20569), + 113: uint16(20571), + 114: uint16(20573), + 115: uint16(20574), + 116: uint16(20575), + 117: uint16(20576), + 118: uint16(20577), + 119: uint16(20578), + 120: uint16(20579), + 121: uint16(20580), + 122: uint16(20582), + 123: uint16(20583), + 124: uint16(20584), + 125: uint16(20585), + 126: uint16(20586), + 127: uint16(20587), + 128: uint16(20589), + 129: uint16(20590), + 130: uint16(20591), + 131: uint16(20592), + 132: uint16(20593), + 133: uint16(20594), + 134: uint16(20595), + 135: uint16(20596), + 136: uint16(20597), + 137: uint16(20600), + 138: uint16(20601), + 139: uint16(20602), + 140: uint16(20604), + 141: uint16(20605), + 142: uint16(20609), + 143: uint16(20610), + 144: uint16(20611), + 145: uint16(20612), + 146: uint16(20614), + 147: uint16(20615), + 148: uint16(20617), + 149: uint16(20618), + 150: uint16(20619), + 151: uint16(20620), + 152: uint16(20622), + 153: uint16(20623), + 154: uint16(20624), + 155: uint16(20625), + 156: uint16(20626), + 157: uint16(20627), + 158: uint16(20628), + 159: uint16(20629), + 160: uint16(20630), + 161: uint16(20631), + 162: uint16(20632), + 163: uint16(20633), + 164: uint16(20634), + 165: uint16(20635), + 166: uint16(20636), + 167: uint16(20637), + 168: uint16(20638), + 169: uint16(20639), + 170: uint16(20640), + 171: uint16(20641), + 172: uint16(20642), + 173: uint16(20644), + 174: uint16(20646), + 175: uint16(20650), + 176: uint16(20651), + 177: uint16(20653), + 178: uint16(20654), + 179: uint16(20655), + 180: uint16(20656), + 181: uint16(20657), + 182: uint16(20659), + 183: uint16(20660), + 184: uint16(20661), + 185: uint16(20662), + 186: uint16(20663), + 187: uint16(20664), + 188: uint16(20665), + 189: uint16(20668), + }, + 2: { + 0: uint16(20669), + 1: uint16(20670), + 2: uint16(20671), + 3: uint16(20672), + 4: uint16(20673), + 5: uint16(20674), + 6: uint16(20675), + 7: uint16(20676), + 8: uint16(20677), + 9: uint16(20678), + 10: uint16(20679), + 11: uint16(20680), + 12: uint16(20681), + 13: uint16(20682), + 14: uint16(20683), + 15: uint16(20684), + 16: uint16(20685), + 17: uint16(20686), + 18: uint16(20688), + 19: uint16(20689), + 20: uint16(20690), + 21: uint16(20691), + 22: uint16(20692), + 23: uint16(20693), + 24: uint16(20695), + 25: uint16(20696), + 26: uint16(20697), + 27: uint16(20699), + 28: uint16(20700), + 29: uint16(20701), + 30: uint16(20702), + 31: uint16(20703), + 32: uint16(20704), + 33: uint16(20705), + 34: uint16(20706), + 35: uint16(20707), + 36: uint16(20708), + 37: uint16(20709), + 38: uint16(20712), + 39: uint16(20713), + 40: uint16(20714), + 41: uint16(20715), + 42: uint16(20719), + 43: uint16(20720), + 44: uint16(20721), + 45: uint16(20722), + 46: uint16(20724), + 47: uint16(20726), + 48: uint16(20727), + 49: uint16(20728), + 50: uint16(20729), + 51: uint16(20730), + 52: uint16(20732), + 53: uint16(20733), + 54: uint16(20734), + 55: uint16(20735), + 56: uint16(20736), + 57: uint16(20737), + 58: uint16(20738), + 59: uint16(20739), + 60: uint16(20740), + 61: uint16(20741), + 62: uint16(20744), + 63: uint16(20745), + 64: uint16(20746), + 65: uint16(20748), + 66: uint16(20749), + 67: uint16(20750), + 68: uint16(20751), + 69: uint16(20752), + 70: uint16(20753), + 71: uint16(20755), + 72: uint16(20756), + 73: uint16(20757), + 74: uint16(20758), + 75: uint16(20759), + 76: uint16(20760), + 77: uint16(20761), + 78: uint16(20762), + 79: uint16(20763), + 80: uint16(20764), + 81: uint16(20765), + 82: uint16(20766), + 83: uint16(20767), + 84: uint16(20768), + 85: uint16(20770), + 86: uint16(20771), + 87: uint16(20772), + 88: uint16(20773), + 89: uint16(20774), + 90: uint16(20775), + 91: uint16(20776), + 92: uint16(20777), + 93: uint16(20778), + 94: uint16(20779), + 95: uint16(20780), + 96: uint16(20781), + 97: uint16(20782), + 98: uint16(20783), + 99: uint16(20784), + 100: uint16(20785), + 101: uint16(20786), + 102: uint16(20787), + 103: uint16(20788), + 104: uint16(20789), + 105: uint16(20790), + 106: uint16(20791), + 107: uint16(20792), + 108: uint16(20793), + 109: uint16(20794), + 110: uint16(20795), + 111: uint16(20796), + 112: uint16(20797), + 113: uint16(20798), + 114: uint16(20802), + 115: uint16(20807), + 116: uint16(20810), + 117: uint16(20812), + 118: uint16(20814), + 119: uint16(20815), + 120: uint16(20816), + 121: uint16(20818), + 122: uint16(20819), + 123: uint16(20823), + 124: uint16(20824), + 125: uint16(20825), + 126: uint16(20827), + 127: uint16(20829), + 128: uint16(20830), + 129: uint16(20831), + 130: uint16(20832), + 131: uint16(20833), + 132: uint16(20835), + 133: uint16(20836), + 134: uint16(20838), + 135: uint16(20839), + 136: uint16(20841), + 137: uint16(20842), + 138: uint16(20847), + 139: uint16(20850), + 140: uint16(20858), + 141: uint16(20862), + 142: uint16(20863), + 143: uint16(20867), + 144: uint16(20868), + 145: uint16(20870), + 146: uint16(20871), + 147: uint16(20874), + 148: uint16(20875), + 149: uint16(20878), + 150: uint16(20879), + 151: uint16(20880), + 152: uint16(20881), + 153: uint16(20883), + 154: uint16(20884), + 155: uint16(20888), + 156: uint16(20890), + 157: uint16(20893), + 158: uint16(20894), + 159: uint16(20895), + 160: uint16(20897), + 161: uint16(20899), + 162: uint16(20902), + 163: uint16(20903), + 164: uint16(20904), + 165: uint16(20905), + 166: uint16(20906), + 167: uint16(20909), + 168: uint16(20910), + 169: uint16(20916), + 170: uint16(20920), + 171: uint16(20921), + 172: uint16(20922), + 173: uint16(20926), + 174: uint16(20927), + 175: uint16(20929), + 176: uint16(20930), + 177: uint16(20931), + 178: uint16(20933), + 179: uint16(20936), + 180: uint16(20938), + 181: uint16(20941), + 182: uint16(20942), + 183: uint16(20944), + 184: uint16(20946), + 185: uint16(20947), + 186: uint16(20948), + 187: uint16(20949), + 188: uint16(20950), + 189: uint16(20951), + }, + 3: { + 0: uint16(20952), + 1: uint16(20953), + 2: uint16(20954), + 3: uint16(20956), + 4: uint16(20958), + 5: uint16(20959), + 6: uint16(20962), + 7: uint16(20963), + 8: uint16(20965), + 9: uint16(20966), + 10: uint16(20967), + 11: uint16(20968), + 12: uint16(20969), + 13: uint16(20970), + 14: uint16(20972), + 15: uint16(20974), + 16: uint16(20977), + 17: uint16(20978), + 18: uint16(20980), + 19: uint16(20983), + 20: uint16(20990), + 21: uint16(20996), + 22: uint16(20997), + 23: uint16(21001), + 24: uint16(21003), + 25: uint16(21004), + 26: uint16(21007), + 27: uint16(21008), + 28: uint16(21011), + 29: uint16(21012), + 30: uint16(21013), + 31: uint16(21020), + 32: uint16(21022), + 33: uint16(21023), + 34: uint16(21025), + 35: uint16(21026), + 36: uint16(21027), + 37: uint16(21029), + 38: uint16(21030), + 39: uint16(21031), + 40: uint16(21034), + 41: uint16(21036), + 42: uint16(21039), + 43: uint16(21041), + 44: uint16(21042), + 45: uint16(21044), + 46: uint16(21045), + 47: uint16(21052), + 48: uint16(21054), + 49: uint16(21060), + 50: uint16(21061), + 51: uint16(21062), + 52: uint16(21063), + 53: uint16(21064), + 54: uint16(21065), + 55: uint16(21067), + 56: uint16(21070), + 57: uint16(21071), + 58: uint16(21074), + 59: uint16(21075), + 60: uint16(21077), + 61: uint16(21079), + 62: uint16(21080), + 63: uint16(21081), + 64: uint16(21082), + 65: uint16(21083), + 66: uint16(21085), + 67: uint16(21087), + 68: uint16(21088), + 69: uint16(21090), + 70: uint16(21091), + 71: uint16(21092), + 72: uint16(21094), + 73: uint16(21096), + 74: uint16(21099), + 75: uint16(21100), + 76: uint16(21101), + 77: uint16(21102), + 78: uint16(21104), + 79: uint16(21105), + 80: uint16(21107), + 81: uint16(21108), + 82: uint16(21109), + 83: uint16(21110), + 84: uint16(21111), + 85: uint16(21112), + 86: uint16(21113), + 87: uint16(21114), + 88: uint16(21115), + 89: uint16(21116), + 90: uint16(21118), + 91: uint16(21120), + 92: uint16(21123), + 93: uint16(21124), + 94: uint16(21125), + 95: uint16(21126), + 96: uint16(21127), + 97: uint16(21129), + 98: uint16(21130), + 99: uint16(21131), + 100: uint16(21132), + 101: uint16(21133), + 102: uint16(21134), + 103: uint16(21135), + 104: uint16(21137), + 105: uint16(21138), + 106: uint16(21140), + 107: uint16(21141), + 108: uint16(21142), + 109: uint16(21143), + 110: uint16(21144), + 111: uint16(21145), + 112: uint16(21146), + 113: uint16(21148), + 114: uint16(21156), + 115: uint16(21157), + 116: uint16(21158), + 117: uint16(21159), + 118: uint16(21166), + 119: uint16(21167), + 120: uint16(21168), + 121: uint16(21172), + 122: uint16(21173), + 123: uint16(21174), + 124: uint16(21175), + 125: uint16(21176), + 126: uint16(21177), + 127: uint16(21178), + 128: uint16(21179), + 129: uint16(21180), + 130: uint16(21181), + 131: uint16(21184), + 132: uint16(21185), + 133: uint16(21186), + 134: uint16(21188), + 135: uint16(21189), + 136: uint16(21190), + 137: uint16(21192), + 138: uint16(21194), + 139: uint16(21196), + 140: uint16(21197), + 141: uint16(21198), + 142: uint16(21199), + 143: uint16(21201), + 144: uint16(21203), + 145: uint16(21204), + 146: uint16(21205), + 147: uint16(21207), + 148: uint16(21209), + 149: uint16(21210), + 150: uint16(21211), + 151: uint16(21212), + 152: uint16(21213), + 153: uint16(21214), + 154: uint16(21216), + 155: uint16(21217), + 156: uint16(21218), + 157: uint16(21219), + 158: uint16(21221), + 159: uint16(21222), + 160: uint16(21223), + 161: uint16(21224), + 162: uint16(21225), + 163: uint16(21226), + 164: uint16(21227), + 165: uint16(21228), + 166: uint16(21229), + 167: uint16(21230), + 168: uint16(21231), + 169: uint16(21233), + 170: uint16(21234), + 171: uint16(21235), + 172: uint16(21236), + 173: uint16(21237), + 174: uint16(21238), + 175: uint16(21239), + 176: uint16(21240), + 177: uint16(21243), + 178: uint16(21244), + 179: uint16(21245), + 180: uint16(21249), + 181: uint16(21250), + 182: uint16(21251), + 183: uint16(21252), + 184: uint16(21255), + 185: uint16(21257), + 186: uint16(21258), + 187: uint16(21259), + 188: uint16(21260), + 189: uint16(21262), + }, + 4: { + 0: uint16(21265), + 1: uint16(21266), + 2: uint16(21267), + 3: uint16(21268), + 4: uint16(21272), + 5: uint16(21275), + 6: uint16(21276), + 7: uint16(21278), + 8: uint16(21279), + 9: uint16(21282), + 10: uint16(21284), + 11: uint16(21285), + 12: uint16(21287), + 13: uint16(21288), + 14: uint16(21289), + 15: uint16(21291), + 16: uint16(21292), + 17: uint16(21293), + 18: uint16(21295), + 19: uint16(21296), + 20: uint16(21297), + 21: uint16(21298), + 22: uint16(21299), + 23: uint16(21300), + 24: uint16(21301), + 25: uint16(21302), + 26: uint16(21303), + 27: uint16(21304), + 28: uint16(21308), + 29: uint16(21309), + 30: uint16(21312), + 31: uint16(21314), + 32: uint16(21316), + 33: uint16(21318), + 34: uint16(21323), + 35: uint16(21324), + 36: uint16(21325), + 37: uint16(21328), + 38: uint16(21332), + 39: uint16(21336), + 40: uint16(21337), + 41: uint16(21339), + 42: uint16(21341), + 43: uint16(21349), + 44: uint16(21352), + 45: uint16(21354), + 46: uint16(21356), + 47: uint16(21357), + 48: uint16(21362), + 49: uint16(21366), + 50: uint16(21369), + 51: uint16(21371), + 52: uint16(21372), + 53: uint16(21373), + 54: uint16(21374), + 55: uint16(21376), + 56: uint16(21377), + 57: uint16(21379), + 58: uint16(21383), + 59: uint16(21384), + 60: uint16(21386), + 61: uint16(21390), + 62: uint16(21391), + 63: uint16(21392), + 64: uint16(21393), + 65: uint16(21394), + 66: uint16(21395), + 67: uint16(21396), + 68: uint16(21398), + 69: uint16(21399), + 70: uint16(21401), + 71: uint16(21403), + 72: uint16(21404), + 73: uint16(21406), + 74: uint16(21408), + 75: uint16(21409), + 76: uint16(21412), + 77: uint16(21415), + 78: uint16(21418), + 79: uint16(21419), + 80: uint16(21420), + 81: uint16(21421), + 82: uint16(21423), + 83: uint16(21424), + 84: uint16(21425), + 85: uint16(21426), + 86: uint16(21427), + 87: uint16(21428), + 88: uint16(21429), + 89: uint16(21431), + 90: uint16(21432), + 91: uint16(21433), + 92: uint16(21434), + 93: uint16(21436), + 94: uint16(21437), + 95: uint16(21438), + 96: uint16(21440), + 97: uint16(21443), + 98: uint16(21444), + 99: uint16(21445), + 100: uint16(21446), + 101: uint16(21447), + 102: uint16(21454), + 103: uint16(21455), + 104: uint16(21456), + 105: uint16(21458), + 106: uint16(21459), + 107: uint16(21461), + 108: uint16(21466), + 109: uint16(21468), + 110: uint16(21469), + 111: uint16(21470), + 112: uint16(21473), + 113: uint16(21474), + 114: uint16(21479), + 115: uint16(21492), + 116: uint16(21498), + 117: uint16(21502), + 118: uint16(21503), + 119: uint16(21504), + 120: uint16(21506), + 121: uint16(21509), + 122: uint16(21511), + 123: uint16(21515), + 124: uint16(21524), + 125: uint16(21528), + 126: uint16(21529), + 127: uint16(21530), + 128: uint16(21532), + 129: uint16(21538), + 130: uint16(21540), + 131: uint16(21541), + 132: uint16(21546), + 133: uint16(21552), + 134: uint16(21555), + 135: uint16(21558), + 136: uint16(21559), + 137: uint16(21562), + 138: uint16(21565), + 139: uint16(21567), + 140: uint16(21569), + 141: uint16(21570), + 142: uint16(21572), + 143: uint16(21573), + 144: uint16(21575), + 145: uint16(21577), + 146: uint16(21580), + 147: uint16(21581), + 148: uint16(21582), + 149: uint16(21583), + 150: uint16(21585), + 151: uint16(21594), + 152: uint16(21597), + 153: uint16(21598), + 154: uint16(21599), + 155: uint16(21600), + 156: uint16(21601), + 157: uint16(21603), + 158: uint16(21605), + 159: uint16(21607), + 160: uint16(21609), + 161: uint16(21610), + 162: uint16(21611), + 163: uint16(21612), + 164: uint16(21613), + 165: uint16(21614), + 166: uint16(21615), + 167: uint16(21616), + 168: uint16(21620), + 169: uint16(21625), + 170: uint16(21626), + 171: uint16(21630), + 172: uint16(21631), + 173: uint16(21633), + 174: uint16(21635), + 175: uint16(21637), + 176: uint16(21639), + 177: uint16(21640), + 178: uint16(21641), + 179: uint16(21642), + 180: uint16(21645), + 181: uint16(21649), + 182: uint16(21651), + 183: uint16(21655), + 184: uint16(21656), + 185: uint16(21660), + 186: uint16(21662), + 187: uint16(21663), + 188: uint16(21664), + 189: uint16(21665), + }, + 5: { + 0: uint16(21666), + 1: uint16(21669), + 2: uint16(21678), + 3: uint16(21680), + 4: uint16(21682), + 5: uint16(21685), + 6: uint16(21686), + 7: uint16(21687), + 8: uint16(21689), + 9: uint16(21690), + 10: uint16(21692), + 11: uint16(21694), + 12: uint16(21699), + 13: uint16(21701), + 14: uint16(21706), + 15: uint16(21707), + 16: uint16(21718), + 17: uint16(21720), + 18: uint16(21723), + 19: uint16(21728), + 20: uint16(21729), + 21: uint16(21730), + 22: uint16(21731), + 23: uint16(21732), + 24: uint16(21739), + 25: uint16(21740), + 26: uint16(21743), + 27: uint16(21744), + 28: uint16(21745), + 29: uint16(21748), + 30: uint16(21749), + 31: uint16(21750), + 32: uint16(21751), + 33: uint16(21752), + 34: uint16(21753), + 35: uint16(21755), + 36: uint16(21758), + 37: uint16(21760), + 38: uint16(21762), + 39: uint16(21763), + 40: uint16(21764), + 41: uint16(21765), + 42: uint16(21768), + 43: uint16(21770), + 44: uint16(21771), + 45: uint16(21772), + 46: uint16(21773), + 47: uint16(21774), + 48: uint16(21778), + 49: uint16(21779), + 50: uint16(21781), + 51: uint16(21782), + 52: uint16(21783), + 53: uint16(21784), + 54: uint16(21785), + 55: uint16(21786), + 56: uint16(21788), + 57: uint16(21789), + 58: uint16(21790), + 59: uint16(21791), + 60: uint16(21793), + 61: uint16(21797), + 62: uint16(21798), + 63: uint16(21800), + 64: uint16(21801), + 65: uint16(21803), + 66: uint16(21805), + 67: uint16(21810), + 68: uint16(21812), + 69: uint16(21813), + 70: uint16(21814), + 71: uint16(21816), + 72: uint16(21817), + 73: uint16(21818), + 74: uint16(21819), + 75: uint16(21821), + 76: uint16(21824), + 77: uint16(21826), + 78: uint16(21829), + 79: uint16(21831), + 80: uint16(21832), + 81: uint16(21835), + 82: uint16(21836), + 83: uint16(21837), + 84: uint16(21838), + 85: uint16(21839), + 86: uint16(21841), + 87: uint16(21842), + 88: uint16(21843), + 89: uint16(21844), + 90: uint16(21847), + 91: uint16(21848), + 92: uint16(21849), + 93: uint16(21850), + 94: uint16(21851), + 95: uint16(21853), + 96: uint16(21854), + 97: uint16(21855), + 98: uint16(21856), + 99: uint16(21858), + 100: uint16(21859), + 101: uint16(21864), + 102: uint16(21865), + 103: uint16(21867), + 104: uint16(21871), + 105: uint16(21872), + 106: uint16(21873), + 107: uint16(21874), + 108: uint16(21875), + 109: uint16(21876), + 110: uint16(21881), + 111: uint16(21882), + 112: uint16(21885), + 113: uint16(21887), + 114: uint16(21893), + 115: uint16(21894), + 116: uint16(21900), + 117: uint16(21901), + 118: uint16(21902), + 119: uint16(21904), + 120: uint16(21906), + 121: uint16(21907), + 122: uint16(21909), + 123: uint16(21910), + 124: uint16(21911), + 125: uint16(21914), + 126: uint16(21915), + 127: uint16(21918), + 128: uint16(21920), + 129: uint16(21921), + 130: uint16(21922), + 131: uint16(21923), + 132: uint16(21924), + 133: uint16(21925), + 134: uint16(21926), + 135: uint16(21928), + 136: uint16(21929), + 137: uint16(21930), + 138: uint16(21931), + 139: uint16(21932), + 140: uint16(21933), + 141: uint16(21934), + 142: uint16(21935), + 143: uint16(21936), + 144: uint16(21938), + 145: uint16(21940), + 146: uint16(21942), + 147: uint16(21944), + 148: uint16(21946), + 149: uint16(21948), + 150: uint16(21951), + 151: uint16(21952), + 152: uint16(21953), + 153: uint16(21954), + 154: uint16(21955), + 155: uint16(21958), + 156: uint16(21959), + 157: uint16(21960), + 158: uint16(21962), + 159: uint16(21963), + 160: uint16(21966), + 161: uint16(21967), + 162: uint16(21968), + 163: uint16(21973), + 164: uint16(21975), + 165: uint16(21976), + 166: uint16(21977), + 167: uint16(21978), + 168: uint16(21979), + 169: uint16(21982), + 170: uint16(21984), + 171: uint16(21986), + 172: uint16(21991), + 173: uint16(21993), + 174: uint16(21997), + 175: uint16(21998), + 176: uint16(22000), + 177: uint16(22001), + 178: uint16(22004), + 179: uint16(22006), + 180: uint16(22008), + 181: uint16(22009), + 182: uint16(22010), + 183: uint16(22011), + 184: uint16(22012), + 185: uint16(22015), + 186: uint16(22018), + 187: uint16(22019), + 188: uint16(22020), + 189: uint16(22021), + }, + 6: { + 0: uint16(22022), + 1: uint16(22023), + 2: uint16(22026), + 3: uint16(22027), + 4: uint16(22029), + 5: uint16(22032), + 6: uint16(22033), + 7: uint16(22034), + 8: uint16(22035), + 9: uint16(22036), + 10: uint16(22037), + 11: uint16(22038), + 12: uint16(22039), + 13: uint16(22041), + 14: uint16(22042), + 15: uint16(22044), + 16: uint16(22045), + 17: uint16(22048), + 18: uint16(22049), + 19: uint16(22050), + 20: uint16(22053), + 21: uint16(22054), + 22: uint16(22056), + 23: uint16(22057), + 24: uint16(22058), + 25: uint16(22059), + 26: uint16(22062), + 27: uint16(22063), + 28: uint16(22064), + 29: uint16(22067), + 30: uint16(22069), + 31: uint16(22071), + 32: uint16(22072), + 33: uint16(22074), + 34: uint16(22076), + 35: uint16(22077), + 36: uint16(22078), + 37: uint16(22080), + 38: uint16(22081), + 39: uint16(22082), + 40: uint16(22083), + 41: uint16(22084), + 42: uint16(22085), + 43: uint16(22086), + 44: uint16(22087), + 45: uint16(22088), + 46: uint16(22089), + 47: uint16(22090), + 48: uint16(22091), + 49: uint16(22095), + 50: uint16(22096), + 51: uint16(22097), + 52: uint16(22098), + 53: uint16(22099), + 54: uint16(22101), + 55: uint16(22102), + 56: uint16(22106), + 57: uint16(22107), + 58: uint16(22109), + 59: uint16(22110), + 60: uint16(22111), + 61: uint16(22112), + 62: uint16(22113), + 63: uint16(22115), + 64: uint16(22117), + 65: uint16(22118), + 66: uint16(22119), + 67: uint16(22125), + 68: uint16(22126), + 69: uint16(22127), + 70: uint16(22128), + 71: uint16(22130), + 72: uint16(22131), + 73: uint16(22132), + 74: uint16(22133), + 75: uint16(22135), + 76: uint16(22136), + 77: uint16(22137), + 78: uint16(22138), + 79: uint16(22141), + 80: uint16(22142), + 81: uint16(22143), + 82: uint16(22144), + 83: uint16(22145), + 84: uint16(22146), + 85: uint16(22147), + 86: uint16(22148), + 87: uint16(22151), + 88: uint16(22152), + 89: uint16(22153), + 90: uint16(22154), + 91: uint16(22155), + 92: uint16(22156), + 93: uint16(22157), + 94: uint16(22160), + 95: uint16(22161), + 96: uint16(22162), + 97: uint16(22164), + 98: uint16(22165), + 99: uint16(22166), + 100: uint16(22167), + 101: uint16(22168), + 102: uint16(22169), + 103: uint16(22170), + 104: uint16(22171), + 105: uint16(22172), + 106: uint16(22173), + 107: uint16(22174), + 108: uint16(22175), + 109: uint16(22176), + 110: uint16(22177), + 111: uint16(22178), + 112: uint16(22180), + 113: uint16(22181), + 114: uint16(22182), + 115: uint16(22183), + 116: uint16(22184), + 117: uint16(22185), + 118: uint16(22186), + 119: uint16(22187), + 120: uint16(22188), + 121: uint16(22189), + 122: uint16(22190), + 123: uint16(22192), + 124: uint16(22193), + 125: uint16(22194), + 126: uint16(22195), + 127: uint16(22196), + 128: uint16(22197), + 129: uint16(22198), + 130: uint16(22200), + 131: uint16(22201), + 132: uint16(22202), + 133: uint16(22203), + 134: uint16(22205), + 135: uint16(22206), + 136: uint16(22207), + 137: uint16(22208), + 138: uint16(22209), + 139: uint16(22210), + 140: uint16(22211), + 141: uint16(22212), + 142: uint16(22213), + 143: uint16(22214), + 144: uint16(22215), + 145: uint16(22216), + 146: uint16(22217), + 147: uint16(22219), + 148: uint16(22220), + 149: uint16(22221), + 150: uint16(22222), + 151: uint16(22223), + 152: uint16(22224), + 153: uint16(22225), + 154: uint16(22226), + 155: uint16(22227), + 156: uint16(22229), + 157: uint16(22230), + 158: uint16(22232), + 159: uint16(22233), + 160: uint16(22236), + 161: uint16(22243), + 162: uint16(22245), + 163: uint16(22246), + 164: uint16(22247), + 165: uint16(22248), + 166: uint16(22249), + 167: uint16(22250), + 168: uint16(22252), + 169: uint16(22254), + 170: uint16(22255), + 171: uint16(22258), + 172: uint16(22259), + 173: uint16(22262), + 174: uint16(22263), + 175: uint16(22264), + 176: uint16(22267), + 177: uint16(22268), + 178: uint16(22272), + 179: uint16(22273), + 180: uint16(22274), + 181: uint16(22277), + 182: uint16(22279), + 183: uint16(22283), + 184: uint16(22284), + 185: uint16(22285), + 186: uint16(22286), + 187: uint16(22287), + 188: uint16(22288), + 189: uint16(22289), + }, + 7: { + 0: uint16(22290), + 1: uint16(22291), + 2: uint16(22292), + 3: uint16(22293), + 4: uint16(22294), + 5: uint16(22295), + 6: uint16(22296), + 7: uint16(22297), + 8: uint16(22298), + 9: uint16(22299), + 10: uint16(22301), + 11: uint16(22302), + 12: uint16(22304), + 13: uint16(22305), + 14: uint16(22306), + 15: uint16(22308), + 16: uint16(22309), + 17: uint16(22310), + 18: uint16(22311), + 19: uint16(22315), + 20: uint16(22321), + 21: uint16(22322), + 22: uint16(22324), + 23: uint16(22325), + 24: uint16(22326), + 25: uint16(22327), + 26: uint16(22328), + 27: uint16(22332), + 28: uint16(22333), + 29: uint16(22335), + 30: uint16(22337), + 31: uint16(22339), + 32: uint16(22340), + 33: uint16(22341), + 34: uint16(22342), + 35: uint16(22344), + 36: uint16(22345), + 37: uint16(22347), + 38: uint16(22354), + 39: uint16(22355), + 40: uint16(22356), + 41: uint16(22357), + 42: uint16(22358), + 43: uint16(22360), + 44: uint16(22361), + 45: uint16(22370), + 46: uint16(22371), + 47: uint16(22373), + 48: uint16(22375), + 49: uint16(22380), + 50: uint16(22382), + 51: uint16(22384), + 52: uint16(22385), + 53: uint16(22386), + 54: uint16(22388), + 55: uint16(22389), + 56: uint16(22392), + 57: uint16(22393), + 58: uint16(22394), + 59: uint16(22397), + 60: uint16(22398), + 61: uint16(22399), + 62: uint16(22400), + 63: uint16(22401), + 64: uint16(22407), + 65: uint16(22408), + 66: uint16(22409), + 67: uint16(22410), + 68: uint16(22413), + 69: uint16(22414), + 70: uint16(22415), + 71: uint16(22416), + 72: uint16(22417), + 73: uint16(22420), + 74: uint16(22421), + 75: uint16(22422), + 76: uint16(22423), + 77: uint16(22424), + 78: uint16(22425), + 79: uint16(22426), + 80: uint16(22428), + 81: uint16(22429), + 82: uint16(22430), + 83: uint16(22431), + 84: uint16(22437), + 85: uint16(22440), + 86: uint16(22442), + 87: uint16(22444), + 88: uint16(22447), + 89: uint16(22448), + 90: uint16(22449), + 91: uint16(22451), + 92: uint16(22453), + 93: uint16(22454), + 94: uint16(22455), + 95: uint16(22457), + 96: uint16(22458), + 97: uint16(22459), + 98: uint16(22460), + 99: uint16(22461), + 100: uint16(22462), + 101: uint16(22463), + 102: uint16(22464), + 103: uint16(22465), + 104: uint16(22468), + 105: uint16(22469), + 106: uint16(22470), + 107: uint16(22471), + 108: uint16(22472), + 109: uint16(22473), + 110: uint16(22474), + 111: uint16(22476), + 112: uint16(22477), + 113: uint16(22480), + 114: uint16(22481), + 115: uint16(22483), + 116: uint16(22486), + 117: uint16(22487), + 118: uint16(22491), + 119: uint16(22492), + 120: uint16(22494), + 121: uint16(22497), + 122: uint16(22498), + 123: uint16(22499), + 124: uint16(22501), + 125: uint16(22502), + 126: uint16(22503), + 127: uint16(22504), + 128: uint16(22505), + 129: uint16(22506), + 130: uint16(22507), + 131: uint16(22508), + 132: uint16(22510), + 133: uint16(22512), + 134: uint16(22513), + 135: uint16(22514), + 136: uint16(22515), + 137: uint16(22517), + 138: uint16(22518), + 139: uint16(22519), + 140: uint16(22523), + 141: uint16(22524), + 142: uint16(22526), + 143: uint16(22527), + 144: uint16(22529), + 145: uint16(22531), + 146: uint16(22532), + 147: uint16(22533), + 148: uint16(22536), + 149: uint16(22537), + 150: uint16(22538), + 151: uint16(22540), + 152: uint16(22542), + 153: uint16(22543), + 154: uint16(22544), + 155: uint16(22546), + 156: uint16(22547), + 157: uint16(22548), + 158: uint16(22550), + 159: uint16(22551), + 160: uint16(22552), + 161: uint16(22554), + 162: uint16(22555), + 163: uint16(22556), + 164: uint16(22557), + 165: uint16(22559), + 166: uint16(22562), + 167: uint16(22563), + 168: uint16(22565), + 169: uint16(22566), + 170: uint16(22567), + 171: uint16(22568), + 172: uint16(22569), + 173: uint16(22571), + 174: uint16(22572), + 175: uint16(22573), + 176: uint16(22574), + 177: uint16(22575), + 178: uint16(22577), + 179: uint16(22578), + 180: uint16(22579), + 181: uint16(22580), + 182: uint16(22582), + 183: uint16(22583), + 184: uint16(22584), + 185: uint16(22585), + 186: uint16(22586), + 187: uint16(22587), + 188: uint16(22588), + 189: uint16(22589), + }, + 8: { + 0: uint16(22590), + 1: uint16(22591), + 2: uint16(22592), + 3: uint16(22593), + 4: uint16(22594), + 5: uint16(22595), + 6: uint16(22597), + 7: uint16(22598), + 8: uint16(22599), + 9: uint16(22600), + 10: uint16(22601), + 11: uint16(22602), + 12: uint16(22603), + 13: uint16(22606), + 14: uint16(22607), + 15: uint16(22608), + 16: uint16(22610), + 17: uint16(22611), + 18: uint16(22613), + 19: uint16(22614), + 20: uint16(22615), + 21: uint16(22617), + 22: uint16(22618), + 23: uint16(22619), + 24: uint16(22620), + 25: uint16(22621), + 26: uint16(22623), + 27: uint16(22624), + 28: uint16(22625), + 29: uint16(22626), + 30: uint16(22627), + 31: uint16(22628), + 32: uint16(22630), + 33: uint16(22631), + 34: uint16(22632), + 35: uint16(22633), + 36: uint16(22634), + 37: uint16(22637), + 38: uint16(22638), + 39: uint16(22639), + 40: uint16(22640), + 41: uint16(22641), + 42: uint16(22642), + 43: uint16(22643), + 44: uint16(22644), + 45: uint16(22645), + 46: uint16(22646), + 47: uint16(22647), + 48: uint16(22648), + 49: uint16(22649), + 50: uint16(22650), + 51: uint16(22651), + 52: uint16(22652), + 53: uint16(22653), + 54: uint16(22655), + 55: uint16(22658), + 56: uint16(22660), + 57: uint16(22662), + 58: uint16(22663), + 59: uint16(22664), + 60: uint16(22666), + 61: uint16(22667), + 62: uint16(22668), + 63: uint16(22669), + 64: uint16(22670), + 65: uint16(22671), + 66: uint16(22672), + 67: uint16(22673), + 68: uint16(22676), + 69: uint16(22677), + 70: uint16(22678), + 71: uint16(22679), + 72: uint16(22680), + 73: uint16(22683), + 74: uint16(22684), + 75: uint16(22685), + 76: uint16(22688), + 77: uint16(22689), + 78: uint16(22690), + 79: uint16(22691), + 80: uint16(22692), + 81: uint16(22693), + 82: uint16(22694), + 83: uint16(22695), + 84: uint16(22698), + 85: uint16(22699), + 86: uint16(22700), + 87: uint16(22701), + 88: uint16(22702), + 89: uint16(22703), + 90: uint16(22704), + 91: uint16(22705), + 92: uint16(22706), + 93: uint16(22707), + 94: uint16(22708), + 95: uint16(22709), + 96: uint16(22710), + 97: uint16(22711), + 98: uint16(22712), + 99: uint16(22713), + 100: uint16(22714), + 101: uint16(22715), + 102: uint16(22717), + 103: uint16(22718), + 104: uint16(22719), + 105: uint16(22720), + 106: uint16(22722), + 107: uint16(22723), + 108: uint16(22724), + 109: uint16(22726), + 110: uint16(22727), + 111: uint16(22728), + 112: uint16(22729), + 113: uint16(22730), + 114: uint16(22731), + 115: uint16(22732), + 116: uint16(22733), + 117: uint16(22734), + 118: uint16(22735), + 119: uint16(22736), + 120: uint16(22738), + 121: uint16(22739), + 122: uint16(22740), + 123: uint16(22742), + 124: uint16(22743), + 125: uint16(22744), + 126: uint16(22745), + 127: uint16(22746), + 128: uint16(22747), + 129: uint16(22748), + 130: uint16(22749), + 131: uint16(22750), + 132: uint16(22751), + 133: uint16(22752), + 134: uint16(22753), + 135: uint16(22754), + 136: uint16(22755), + 137: uint16(22757), + 138: uint16(22758), + 139: uint16(22759), + 140: uint16(22760), + 141: uint16(22761), + 142: uint16(22762), + 143: uint16(22765), + 144: uint16(22767), + 145: uint16(22769), + 146: uint16(22770), + 147: uint16(22772), + 148: uint16(22773), + 149: uint16(22775), + 150: uint16(22776), + 151: uint16(22778), + 152: uint16(22779), + 153: uint16(22780), + 154: uint16(22781), + 155: uint16(22782), + 156: uint16(22783), + 157: uint16(22784), + 158: uint16(22785), + 159: uint16(22787), + 160: uint16(22789), + 161: uint16(22790), + 162: uint16(22792), + 163: uint16(22793), + 164: uint16(22794), + 165: uint16(22795), + 166: uint16(22796), + 167: uint16(22798), + 168: uint16(22800), + 169: uint16(22801), + 170: uint16(22802), + 171: uint16(22803), + 172: uint16(22807), + 173: uint16(22808), + 174: uint16(22811), + 175: uint16(22813), + 176: uint16(22814), + 177: uint16(22816), + 178: uint16(22817), + 179: uint16(22818), + 180: uint16(22819), + 181: uint16(22822), + 182: uint16(22824), + 183: uint16(22828), + 184: uint16(22832), + 185: uint16(22834), + 186: uint16(22835), + 187: uint16(22837), + 188: uint16(22838), + 189: uint16(22843), + }, + 9: { + 0: uint16(22845), + 1: uint16(22846), + 2: uint16(22847), + 3: uint16(22848), + 4: uint16(22851), + 5: uint16(22853), + 6: uint16(22854), + 7: uint16(22858), + 8: uint16(22860), + 9: uint16(22861), + 10: uint16(22864), + 11: uint16(22866), + 12: uint16(22867), + 13: uint16(22873), + 14: uint16(22875), + 15: uint16(22876), + 16: uint16(22877), + 17: uint16(22878), + 18: uint16(22879), + 19: uint16(22881), + 20: uint16(22883), + 21: uint16(22884), + 22: uint16(22886), + 23: uint16(22887), + 24: uint16(22888), + 25: uint16(22889), + 26: uint16(22890), + 27: uint16(22891), + 28: uint16(22892), + 29: uint16(22893), + 30: uint16(22894), + 31: uint16(22895), + 32: uint16(22896), + 33: uint16(22897), + 34: uint16(22898), + 35: uint16(22901), + 36: uint16(22903), + 37: uint16(22906), + 38: uint16(22907), + 39: uint16(22908), + 40: uint16(22910), + 41: uint16(22911), + 42: uint16(22912), + 43: uint16(22917), + 44: uint16(22921), + 45: uint16(22923), + 46: uint16(22924), + 47: uint16(22926), + 48: uint16(22927), + 49: uint16(22928), + 50: uint16(22929), + 51: uint16(22932), + 52: uint16(22933), + 53: uint16(22936), + 54: uint16(22938), + 55: uint16(22939), + 56: uint16(22940), + 57: uint16(22941), + 58: uint16(22943), + 59: uint16(22944), + 60: uint16(22945), + 61: uint16(22946), + 62: uint16(22950), + 63: uint16(22951), + 64: uint16(22956), + 65: uint16(22957), + 66: uint16(22960), + 67: uint16(22961), + 68: uint16(22963), + 69: uint16(22964), + 70: uint16(22965), + 71: uint16(22966), + 72: uint16(22967), + 73: uint16(22968), + 74: uint16(22970), + 75: uint16(22972), + 76: uint16(22973), + 77: uint16(22975), + 78: uint16(22976), + 79: uint16(22977), + 80: uint16(22978), + 81: uint16(22979), + 82: uint16(22980), + 83: uint16(22981), + 84: uint16(22983), + 85: uint16(22984), + 86: uint16(22985), + 87: uint16(22988), + 88: uint16(22989), + 89: uint16(22990), + 90: uint16(22991), + 91: uint16(22997), + 92: uint16(22998), + 93: uint16(23001), + 94: uint16(23003), + 95: uint16(23006), + 96: uint16(23007), + 97: uint16(23008), + 98: uint16(23009), + 99: uint16(23010), + 100: uint16(23012), + 101: uint16(23014), + 102: uint16(23015), + 103: uint16(23017), + 104: uint16(23018), + 105: uint16(23019), + 106: uint16(23021), + 107: uint16(23022), + 108: uint16(23023), + 109: uint16(23024), + 110: uint16(23025), + 111: uint16(23026), + 112: uint16(23027), + 113: uint16(23028), + 114: uint16(23029), + 115: uint16(23030), + 116: uint16(23031), + 117: uint16(23032), + 118: uint16(23034), + 119: uint16(23036), + 120: uint16(23037), + 121: uint16(23038), + 122: uint16(23040), + 123: uint16(23042), + 124: uint16(23050), + 125: uint16(23051), + 126: uint16(23053), + 127: uint16(23054), + 128: uint16(23055), + 129: uint16(23056), + 130: uint16(23058), + 131: uint16(23060), + 132: uint16(23061), + 133: uint16(23062), + 134: uint16(23063), + 135: uint16(23065), + 136: uint16(23066), + 137: uint16(23067), + 138: uint16(23069), + 139: uint16(23070), + 140: uint16(23073), + 141: uint16(23074), + 142: uint16(23076), + 143: uint16(23078), + 144: uint16(23079), + 145: uint16(23080), + 146: uint16(23082), + 147: uint16(23083), + 148: uint16(23084), + 149: uint16(23085), + 150: uint16(23086), + 151: uint16(23087), + 152: uint16(23088), + 153: uint16(23091), + 154: uint16(23093), + 155: uint16(23095), + 156: uint16(23096), + 157: uint16(23097), + 158: uint16(23098), + 159: uint16(23099), + 160: uint16(23101), + 161: uint16(23102), + 162: uint16(23103), + 163: uint16(23105), + 164: uint16(23106), + 165: uint16(23107), + 166: uint16(23108), + 167: uint16(23109), + 168: uint16(23111), + 169: uint16(23112), + 170: uint16(23115), + 171: uint16(23116), + 172: uint16(23117), + 173: uint16(23118), + 174: uint16(23119), + 175: uint16(23120), + 176: uint16(23121), + 177: uint16(23122), + 178: uint16(23123), + 179: uint16(23124), + 180: uint16(23126), + 181: uint16(23127), + 182: uint16(23128), + 183: uint16(23129), + 184: uint16(23131), + 185: uint16(23132), + 186: uint16(23133), + 187: uint16(23134), + 188: uint16(23135), + 189: uint16(23136), + }, + 10: { + 0: uint16(23137), + 1: uint16(23139), + 2: uint16(23140), + 3: uint16(23141), + 4: uint16(23142), + 5: uint16(23144), + 6: uint16(23145), + 7: uint16(23147), + 8: uint16(23148), + 9: uint16(23149), + 10: uint16(23150), + 11: uint16(23151), + 12: uint16(23152), + 13: uint16(23153), + 14: uint16(23154), + 15: uint16(23155), + 16: uint16(23160), + 17: uint16(23161), + 18: uint16(23163), + 19: uint16(23164), + 20: uint16(23165), + 21: uint16(23166), + 22: uint16(23168), + 23: uint16(23169), + 24: uint16(23170), + 25: uint16(23171), + 26: uint16(23172), + 27: uint16(23173), + 28: uint16(23174), + 29: uint16(23175), + 30: uint16(23176), + 31: uint16(23177), + 32: uint16(23178), + 33: uint16(23179), + 34: uint16(23180), + 35: uint16(23181), + 36: uint16(23182), + 37: uint16(23183), + 38: uint16(23184), + 39: uint16(23185), + 40: uint16(23187), + 41: uint16(23188), + 42: uint16(23189), + 43: uint16(23190), + 44: uint16(23191), + 45: uint16(23192), + 46: uint16(23193), + 47: uint16(23196), + 48: uint16(23197), + 49: uint16(23198), + 50: uint16(23199), + 51: uint16(23200), + 52: uint16(23201), + 53: uint16(23202), + 54: uint16(23203), + 55: uint16(23204), + 56: uint16(23205), + 57: uint16(23206), + 58: uint16(23207), + 59: uint16(23208), + 60: uint16(23209), + 61: uint16(23211), + 62: uint16(23212), + 63: uint16(23213), + 64: uint16(23214), + 65: uint16(23215), + 66: uint16(23216), + 67: uint16(23217), + 68: uint16(23220), + 69: uint16(23222), + 70: uint16(23223), + 71: uint16(23225), + 72: uint16(23226), + 73: uint16(23227), + 74: uint16(23228), + 75: uint16(23229), + 76: uint16(23231), + 77: uint16(23232), + 78: uint16(23235), + 79: uint16(23236), + 80: uint16(23237), + 81: uint16(23238), + 82: uint16(23239), + 83: uint16(23240), + 84: uint16(23242), + 85: uint16(23243), + 86: uint16(23245), + 87: uint16(23246), + 88: uint16(23247), + 89: uint16(23248), + 90: uint16(23249), + 91: uint16(23251), + 92: uint16(23253), + 93: uint16(23255), + 94: uint16(23257), + 95: uint16(23258), + 96: uint16(23259), + 97: uint16(23261), + 98: uint16(23262), + 99: uint16(23263), + 100: uint16(23266), + 101: uint16(23268), + 102: uint16(23269), + 103: uint16(23271), + 104: uint16(23272), + 105: uint16(23274), + 106: uint16(23276), + 107: uint16(23277), + 108: uint16(23278), + 109: uint16(23279), + 110: uint16(23280), + 111: uint16(23282), + 112: uint16(23283), + 113: uint16(23284), + 114: uint16(23285), + 115: uint16(23286), + 116: uint16(23287), + 117: uint16(23288), + 118: uint16(23289), + 119: uint16(23290), + 120: uint16(23291), + 121: uint16(23292), + 122: uint16(23293), + 123: uint16(23294), + 124: uint16(23295), + 125: uint16(23296), + 126: uint16(23297), + 127: uint16(23298), + 128: uint16(23299), + 129: uint16(23300), + 130: uint16(23301), + 131: uint16(23302), + 132: uint16(23303), + 133: uint16(23304), + 134: uint16(23306), + 135: uint16(23307), + 136: uint16(23308), + 137: uint16(23309), + 138: uint16(23310), + 139: uint16(23311), + 140: uint16(23312), + 141: uint16(23313), + 142: uint16(23314), + 143: uint16(23315), + 144: uint16(23316), + 145: uint16(23317), + 146: uint16(23320), + 147: uint16(23321), + 148: uint16(23322), + 149: uint16(23323), + 150: uint16(23324), + 151: uint16(23325), + 152: uint16(23326), + 153: uint16(23327), + 154: uint16(23328), + 155: uint16(23329), + 156: uint16(23330), + 157: uint16(23331), + 158: uint16(23332), + 159: uint16(23333), + 160: uint16(23334), + 161: uint16(23335), + 162: uint16(23336), + 163: uint16(23337), + 164: uint16(23338), + 165: uint16(23339), + 166: uint16(23340), + 167: uint16(23341), + 168: uint16(23342), + 169: uint16(23343), + 170: uint16(23344), + 171: uint16(23345), + 172: uint16(23347), + 173: uint16(23349), + 174: uint16(23350), + 175: uint16(23352), + 176: uint16(23353), + 177: uint16(23354), + 178: uint16(23355), + 179: uint16(23356), + 180: uint16(23357), + 181: uint16(23358), + 182: uint16(23359), + 183: uint16(23361), + 184: uint16(23362), + 185: uint16(23363), + 186: uint16(23364), + 187: uint16(23365), + 188: uint16(23366), + 189: uint16(23367), + }, + 11: { + 0: uint16(23368), + 1: uint16(23369), + 2: uint16(23370), + 3: uint16(23371), + 4: uint16(23372), + 5: uint16(23373), + 6: uint16(23374), + 7: uint16(23375), + 8: uint16(23378), + 9: uint16(23382), + 10: uint16(23390), + 11: uint16(23392), + 12: uint16(23393), + 13: uint16(23399), + 14: uint16(23400), + 15: uint16(23403), + 16: uint16(23405), + 17: uint16(23406), + 18: uint16(23407), + 19: uint16(23410), + 20: uint16(23412), + 21: uint16(23414), + 22: uint16(23415), + 23: uint16(23416), + 24: uint16(23417), + 25: uint16(23419), + 26: uint16(23420), + 27: uint16(23422), + 28: uint16(23423), + 29: uint16(23426), + 30: uint16(23430), + 31: uint16(23434), + 32: uint16(23437), + 33: uint16(23438), + 34: uint16(23440), + 35: uint16(23441), + 36: uint16(23442), + 37: uint16(23444), + 38: uint16(23446), + 39: uint16(23455), + 40: uint16(23463), + 41: uint16(23464), + 42: uint16(23465), + 43: uint16(23468), + 44: uint16(23469), + 45: uint16(23470), + 46: uint16(23471), + 47: uint16(23473), + 48: uint16(23474), + 49: uint16(23479), + 50: uint16(23482), + 51: uint16(23483), + 52: uint16(23484), + 53: uint16(23488), + 54: uint16(23489), + 55: uint16(23491), + 56: uint16(23496), + 57: uint16(23497), + 58: uint16(23498), + 59: uint16(23499), + 60: uint16(23501), + 61: uint16(23502), + 62: uint16(23503), + 63: uint16(23505), + 64: uint16(23508), + 65: uint16(23509), + 66: uint16(23510), + 67: uint16(23511), + 68: uint16(23512), + 69: uint16(23513), + 70: uint16(23514), + 71: uint16(23515), + 72: uint16(23516), + 73: uint16(23520), + 74: uint16(23522), + 75: uint16(23523), + 76: uint16(23526), + 77: uint16(23527), + 78: uint16(23529), + 79: uint16(23530), + 80: uint16(23531), + 81: uint16(23532), + 82: uint16(23533), + 83: uint16(23535), + 84: uint16(23537), + 85: uint16(23538), + 86: uint16(23539), + 87: uint16(23540), + 88: uint16(23541), + 89: uint16(23542), + 90: uint16(23543), + 91: uint16(23549), + 92: uint16(23550), + 93: uint16(23552), + 94: uint16(23554), + 95: uint16(23555), + 96: uint16(23557), + 97: uint16(23559), + 98: uint16(23560), + 99: uint16(23563), + 100: uint16(23564), + 101: uint16(23565), + 102: uint16(23566), + 103: uint16(23568), + 104: uint16(23570), + 105: uint16(23571), + 106: uint16(23575), + 107: uint16(23577), + 108: uint16(23579), + 109: uint16(23582), + 110: uint16(23583), + 111: uint16(23584), + 112: uint16(23585), + 113: uint16(23587), + 114: uint16(23590), + 115: uint16(23592), + 116: uint16(23593), + 117: uint16(23594), + 118: uint16(23595), + 119: uint16(23597), + 120: uint16(23598), + 121: uint16(23599), + 122: uint16(23600), + 123: uint16(23602), + 124: uint16(23603), + 125: uint16(23605), + 126: uint16(23606), + 127: uint16(23607), + 128: uint16(23619), + 129: uint16(23620), + 130: uint16(23622), + 131: uint16(23623), + 132: uint16(23628), + 133: uint16(23629), + 134: uint16(23634), + 135: uint16(23635), + 136: uint16(23636), + 137: uint16(23638), + 138: uint16(23639), + 139: uint16(23640), + 140: uint16(23642), + 141: uint16(23643), + 142: uint16(23644), + 143: uint16(23645), + 144: uint16(23647), + 145: uint16(23650), + 146: uint16(23652), + 147: uint16(23655), + 148: uint16(23656), + 149: uint16(23657), + 150: uint16(23658), + 151: uint16(23659), + 152: uint16(23660), + 153: uint16(23661), + 154: uint16(23664), + 155: uint16(23666), + 156: uint16(23667), + 157: uint16(23668), + 158: uint16(23669), + 159: uint16(23670), + 160: uint16(23671), + 161: uint16(23672), + 162: uint16(23675), + 163: uint16(23676), + 164: uint16(23677), + 165: uint16(23678), + 166: uint16(23680), + 167: uint16(23683), + 168: uint16(23684), + 169: uint16(23685), + 170: uint16(23686), + 171: uint16(23687), + 172: uint16(23689), + 173: uint16(23690), + 174: uint16(23691), + 175: uint16(23694), + 176: uint16(23695), + 177: uint16(23698), + 178: uint16(23699), + 179: uint16(23701), + 180: uint16(23709), + 181: uint16(23710), + 182: uint16(23711), + 183: uint16(23712), + 184: uint16(23713), + 185: uint16(23716), + 186: uint16(23717), + 187: uint16(23718), + 188: uint16(23719), + 189: uint16(23720), + }, + 12: { + 0: uint16(23722), + 1: uint16(23726), + 2: uint16(23727), + 3: uint16(23728), + 4: uint16(23730), + 5: uint16(23732), + 6: uint16(23734), + 7: uint16(23737), + 8: uint16(23738), + 9: uint16(23739), + 10: uint16(23740), + 11: uint16(23742), + 12: uint16(23744), + 13: uint16(23746), + 14: uint16(23747), + 15: uint16(23749), + 16: uint16(23750), + 17: uint16(23751), + 18: uint16(23752), + 19: uint16(23753), + 20: uint16(23754), + 21: uint16(23756), + 22: uint16(23757), + 23: uint16(23758), + 24: uint16(23759), + 25: uint16(23760), + 26: uint16(23761), + 27: uint16(23763), + 28: uint16(23764), + 29: uint16(23765), + 30: uint16(23766), + 31: uint16(23767), + 32: uint16(23768), + 33: uint16(23770), + 34: uint16(23771), + 35: uint16(23772), + 36: uint16(23773), + 37: uint16(23774), + 38: uint16(23775), + 39: uint16(23776), + 40: uint16(23778), + 41: uint16(23779), + 42: uint16(23783), + 43: uint16(23785), + 44: uint16(23787), + 45: uint16(23788), + 46: uint16(23790), + 47: uint16(23791), + 48: uint16(23793), + 49: uint16(23794), + 50: uint16(23795), + 51: uint16(23796), + 52: uint16(23797), + 53: uint16(23798), + 54: uint16(23799), + 55: uint16(23800), + 56: uint16(23801), + 57: uint16(23802), + 58: uint16(23804), + 59: uint16(23805), + 60: uint16(23806), + 61: uint16(23807), + 62: uint16(23808), + 63: uint16(23809), + 64: uint16(23812), + 65: uint16(23813), + 66: uint16(23816), + 67: uint16(23817), + 68: uint16(23818), + 69: uint16(23819), + 70: uint16(23820), + 71: uint16(23821), + 72: uint16(23823), + 73: uint16(23824), + 74: uint16(23825), + 75: uint16(23826), + 76: uint16(23827), + 77: uint16(23829), + 78: uint16(23831), + 79: uint16(23832), + 80: uint16(23833), + 81: uint16(23834), + 82: uint16(23836), + 83: uint16(23837), + 84: uint16(23839), + 85: uint16(23840), + 86: uint16(23841), + 87: uint16(23842), + 88: uint16(23843), + 89: uint16(23845), + 90: uint16(23848), + 91: uint16(23850), + 92: uint16(23851), + 93: uint16(23852), + 94: uint16(23855), + 95: uint16(23856), + 96: uint16(23857), + 97: uint16(23858), + 98: uint16(23859), + 99: uint16(23861), + 100: uint16(23862), + 101: uint16(23863), + 102: uint16(23864), + 103: uint16(23865), + 104: uint16(23866), + 105: uint16(23867), + 106: uint16(23868), + 107: uint16(23871), + 108: uint16(23872), + 109: uint16(23873), + 110: uint16(23874), + 111: uint16(23875), + 112: uint16(23876), + 113: uint16(23877), + 114: uint16(23878), + 115: uint16(23880), + 116: uint16(23881), + 117: uint16(23885), + 118: uint16(23886), + 119: uint16(23887), + 120: uint16(23888), + 121: uint16(23889), + 122: uint16(23890), + 123: uint16(23891), + 124: uint16(23892), + 125: uint16(23893), + 126: uint16(23894), + 127: uint16(23895), + 128: uint16(23897), + 129: uint16(23898), + 130: uint16(23900), + 131: uint16(23902), + 132: uint16(23903), + 133: uint16(23904), + 134: uint16(23905), + 135: uint16(23906), + 136: uint16(23907), + 137: uint16(23908), + 138: uint16(23909), + 139: uint16(23910), + 140: uint16(23911), + 141: uint16(23912), + 142: uint16(23914), + 143: uint16(23917), + 144: uint16(23918), + 145: uint16(23920), + 146: uint16(23921), + 147: uint16(23922), + 148: uint16(23923), + 149: uint16(23925), + 150: uint16(23926), + 151: uint16(23927), + 152: uint16(23928), + 153: uint16(23929), + 154: uint16(23930), + 155: uint16(23931), + 156: uint16(23932), + 157: uint16(23933), + 158: uint16(23934), + 159: uint16(23935), + 160: uint16(23936), + 161: uint16(23937), + 162: uint16(23939), + 163: uint16(23940), + 164: uint16(23941), + 165: uint16(23942), + 166: uint16(23943), + 167: uint16(23944), + 168: uint16(23945), + 169: uint16(23946), + 170: uint16(23947), + 171: uint16(23948), + 172: uint16(23949), + 173: uint16(23950), + 174: uint16(23951), + 175: uint16(23952), + 176: uint16(23953), + 177: uint16(23954), + 178: uint16(23955), + 179: uint16(23956), + 180: uint16(23957), + 181: uint16(23958), + 182: uint16(23959), + 183: uint16(23960), + 184: uint16(23962), + 185: uint16(23963), + 186: uint16(23964), + 187: uint16(23966), + 188: uint16(23967), + 189: uint16(23968), + }, + 13: { + 0: uint16(23969), + 1: uint16(23970), + 2: uint16(23971), + 3: uint16(23972), + 4: uint16(23973), + 5: uint16(23974), + 6: uint16(23975), + 7: uint16(23976), + 8: uint16(23977), + 9: uint16(23978), + 10: uint16(23979), + 11: uint16(23980), + 12: uint16(23981), + 13: uint16(23982), + 14: uint16(23983), + 15: uint16(23984), + 16: uint16(23985), + 17: uint16(23986), + 18: uint16(23987), + 19: uint16(23988), + 20: uint16(23989), + 21: uint16(23990), + 22: uint16(23992), + 23: uint16(23993), + 24: uint16(23994), + 25: uint16(23995), + 26: uint16(23996), + 27: uint16(23997), + 28: uint16(23998), + 29: uint16(23999), + 30: uint16(24000), + 31: uint16(24001), + 32: uint16(24002), + 33: uint16(24003), + 34: uint16(24004), + 35: uint16(24006), + 36: uint16(24007), + 37: uint16(24008), + 38: uint16(24009), + 39: uint16(24010), + 40: uint16(24011), + 41: uint16(24012), + 42: uint16(24014), + 43: uint16(24015), + 44: uint16(24016), + 45: uint16(24017), + 46: uint16(24018), + 47: uint16(24019), + 48: uint16(24020), + 49: uint16(24021), + 50: uint16(24022), + 51: uint16(24023), + 52: uint16(24024), + 53: uint16(24025), + 54: uint16(24026), + 55: uint16(24028), + 56: uint16(24031), + 57: uint16(24032), + 58: uint16(24035), + 59: uint16(24036), + 60: uint16(24042), + 61: uint16(24044), + 62: uint16(24045), + 63: uint16(24048), + 64: uint16(24053), + 65: uint16(24054), + 66: uint16(24056), + 67: uint16(24057), + 68: uint16(24058), + 69: uint16(24059), + 70: uint16(24060), + 71: uint16(24063), + 72: uint16(24064), + 73: uint16(24068), + 74: uint16(24071), + 75: uint16(24073), + 76: uint16(24074), + 77: uint16(24075), + 78: uint16(24077), + 79: uint16(24078), + 80: uint16(24082), + 81: uint16(24083), + 82: uint16(24087), + 83: uint16(24094), + 84: uint16(24095), + 85: uint16(24096), + 86: uint16(24097), + 87: uint16(24098), + 88: uint16(24099), + 89: uint16(24100), + 90: uint16(24101), + 91: uint16(24104), + 92: uint16(24105), + 93: uint16(24106), + 94: uint16(24107), + 95: uint16(24108), + 96: uint16(24111), + 97: uint16(24112), + 98: uint16(24114), + 99: uint16(24115), + 100: uint16(24116), + 101: uint16(24117), + 102: uint16(24118), + 103: uint16(24121), + 104: uint16(24122), + 105: uint16(24126), + 106: uint16(24127), + 107: uint16(24128), + 108: uint16(24129), + 109: uint16(24131), + 110: uint16(24134), + 111: uint16(24135), + 112: uint16(24136), + 113: uint16(24137), + 114: uint16(24138), + 115: uint16(24139), + 116: uint16(24141), + 117: uint16(24142), + 118: uint16(24143), + 119: uint16(24144), + 120: uint16(24145), + 121: uint16(24146), + 122: uint16(24147), + 123: uint16(24150), + 124: uint16(24151), + 125: uint16(24152), + 126: uint16(24153), + 127: uint16(24154), + 128: uint16(24156), + 129: uint16(24157), + 130: uint16(24159), + 131: uint16(24160), + 132: uint16(24163), + 133: uint16(24164), + 134: uint16(24165), + 135: uint16(24166), + 136: uint16(24167), + 137: uint16(24168), + 138: uint16(24169), + 139: uint16(24170), + 140: uint16(24171), + 141: uint16(24172), + 142: uint16(24173), + 143: uint16(24174), + 144: uint16(24175), + 145: uint16(24176), + 146: uint16(24177), + 147: uint16(24181), + 148: uint16(24183), + 149: uint16(24185), + 150: uint16(24190), + 151: uint16(24193), + 152: uint16(24194), + 153: uint16(24195), + 154: uint16(24197), + 155: uint16(24200), + 156: uint16(24201), + 157: uint16(24204), + 158: uint16(24205), + 159: uint16(24206), + 160: uint16(24210), + 161: uint16(24216), + 162: uint16(24219), + 163: uint16(24221), + 164: uint16(24225), + 165: uint16(24226), + 166: uint16(24227), + 167: uint16(24228), + 168: uint16(24232), + 169: uint16(24233), + 170: uint16(24234), + 171: uint16(24235), + 172: uint16(24236), + 173: uint16(24238), + 174: uint16(24239), + 175: uint16(24240), + 176: uint16(24241), + 177: uint16(24242), + 178: uint16(24244), + 179: uint16(24250), + 180: uint16(24251), + 181: uint16(24252), + 182: uint16(24253), + 183: uint16(24255), + 184: uint16(24256), + 185: uint16(24257), + 186: uint16(24258), + 187: uint16(24259), + 188: uint16(24260), + 189: uint16(24261), + }, + 14: { + 0: uint16(24262), + 1: uint16(24263), + 2: uint16(24264), + 3: uint16(24267), + 4: uint16(24268), + 5: uint16(24269), + 6: uint16(24270), + 7: uint16(24271), + 8: uint16(24272), + 9: uint16(24276), + 10: uint16(24277), + 11: uint16(24279), + 12: uint16(24280), + 13: uint16(24281), + 14: uint16(24282), + 15: uint16(24284), + 16: uint16(24285), + 17: uint16(24286), + 18: uint16(24287), + 19: uint16(24288), + 20: uint16(24289), + 21: uint16(24290), + 22: uint16(24291), + 23: uint16(24292), + 24: uint16(24293), + 25: uint16(24294), + 26: uint16(24295), + 27: uint16(24297), + 28: uint16(24299), + 29: uint16(24300), + 30: uint16(24301), + 31: uint16(24302), + 32: uint16(24303), + 33: uint16(24304), + 34: uint16(24305), + 35: uint16(24306), + 36: uint16(24307), + 37: uint16(24309), + 38: uint16(24312), + 39: uint16(24313), + 40: uint16(24315), + 41: uint16(24316), + 42: uint16(24317), + 43: uint16(24325), + 44: uint16(24326), + 45: uint16(24327), + 46: uint16(24329), + 47: uint16(24332), + 48: uint16(24333), + 49: uint16(24334), + 50: uint16(24336), + 51: uint16(24338), + 52: uint16(24340), + 53: uint16(24342), + 54: uint16(24345), + 55: uint16(24346), + 56: uint16(24348), + 57: uint16(24349), + 58: uint16(24350), + 59: uint16(24353), + 60: uint16(24354), + 61: uint16(24355), + 62: uint16(24356), + 63: uint16(24360), + 64: uint16(24363), + 65: uint16(24364), + 66: uint16(24366), + 67: uint16(24368), + 68: uint16(24370), + 69: uint16(24371), + 70: uint16(24372), + 71: uint16(24373), + 72: uint16(24374), + 73: uint16(24375), + 74: uint16(24376), + 75: uint16(24379), + 76: uint16(24381), + 77: uint16(24382), + 78: uint16(24383), + 79: uint16(24385), + 80: uint16(24386), + 81: uint16(24387), + 82: uint16(24388), + 83: uint16(24389), + 84: uint16(24390), + 85: uint16(24391), + 86: uint16(24392), + 87: uint16(24393), + 88: uint16(24394), + 89: uint16(24395), + 90: uint16(24396), + 91: uint16(24397), + 92: uint16(24398), + 93: uint16(24399), + 94: uint16(24401), + 95: uint16(24404), + 96: uint16(24409), + 97: uint16(24410), + 98: uint16(24411), + 99: uint16(24412), + 100: uint16(24414), + 101: uint16(24415), + 102: uint16(24416), + 103: uint16(24419), + 104: uint16(24421), + 105: uint16(24423), + 106: uint16(24424), + 107: uint16(24427), + 108: uint16(24430), + 109: uint16(24431), + 110: uint16(24434), + 111: uint16(24436), + 112: uint16(24437), + 113: uint16(24438), + 114: uint16(24440), + 115: uint16(24442), + 116: uint16(24445), + 117: uint16(24446), + 118: uint16(24447), + 119: uint16(24451), + 120: uint16(24454), + 121: uint16(24461), + 122: uint16(24462), + 123: uint16(24463), + 124: uint16(24465), + 125: uint16(24467), + 126: uint16(24468), + 127: uint16(24470), + 128: uint16(24474), + 129: uint16(24475), + 130: uint16(24477), + 131: uint16(24478), + 132: uint16(24479), + 133: uint16(24480), + 134: uint16(24482), + 135: uint16(24483), + 136: uint16(24484), + 137: uint16(24485), + 138: uint16(24486), + 139: uint16(24487), + 140: uint16(24489), + 141: uint16(24491), + 142: uint16(24492), + 143: uint16(24495), + 144: uint16(24496), + 145: uint16(24497), + 146: uint16(24498), + 147: uint16(24499), + 148: uint16(24500), + 149: uint16(24502), + 150: uint16(24504), + 151: uint16(24505), + 152: uint16(24506), + 153: uint16(24507), + 154: uint16(24510), + 155: uint16(24511), + 156: uint16(24512), + 157: uint16(24513), + 158: uint16(24514), + 159: uint16(24519), + 160: uint16(24520), + 161: uint16(24522), + 162: uint16(24523), + 163: uint16(24526), + 164: uint16(24531), + 165: uint16(24532), + 166: uint16(24533), + 167: uint16(24538), + 168: uint16(24539), + 169: uint16(24540), + 170: uint16(24542), + 171: uint16(24543), + 172: uint16(24546), + 173: uint16(24547), + 174: uint16(24549), + 175: uint16(24550), + 176: uint16(24552), + 177: uint16(24553), + 178: uint16(24556), + 179: uint16(24559), + 180: uint16(24560), + 181: uint16(24562), + 182: uint16(24563), + 183: uint16(24564), + 184: uint16(24566), + 185: uint16(24567), + 186: uint16(24569), + 187: uint16(24570), + 188: uint16(24572), + 189: uint16(24583), + }, + 15: { + 0: uint16(24584), + 1: uint16(24585), + 2: uint16(24587), + 3: uint16(24588), + 4: uint16(24592), + 5: uint16(24593), + 6: uint16(24595), + 7: uint16(24599), + 8: uint16(24600), + 9: uint16(24602), + 10: uint16(24606), + 11: uint16(24607), + 12: uint16(24610), + 13: uint16(24611), + 14: uint16(24612), + 15: uint16(24620), + 16: uint16(24621), + 17: uint16(24622), + 18: uint16(24624), + 19: uint16(24625), + 20: uint16(24626), + 21: uint16(24627), + 22: uint16(24628), + 23: uint16(24630), + 24: uint16(24631), + 25: uint16(24632), + 26: uint16(24633), + 27: uint16(24634), + 28: uint16(24637), + 29: uint16(24638), + 30: uint16(24640), + 31: uint16(24644), + 32: uint16(24645), + 33: uint16(24646), + 34: uint16(24647), + 35: uint16(24648), + 36: uint16(24649), + 37: uint16(24650), + 38: uint16(24652), + 39: uint16(24654), + 40: uint16(24655), + 41: uint16(24657), + 42: uint16(24659), + 43: uint16(24660), + 44: uint16(24662), + 45: uint16(24663), + 46: uint16(24664), + 47: uint16(24667), + 48: uint16(24668), + 49: uint16(24670), + 50: uint16(24671), + 51: uint16(24672), + 52: uint16(24673), + 53: uint16(24677), + 54: uint16(24678), + 55: uint16(24686), + 56: uint16(24689), + 57: uint16(24690), + 58: uint16(24692), + 59: uint16(24693), + 60: uint16(24695), + 61: uint16(24702), + 62: uint16(24704), + 63: uint16(24705), + 64: uint16(24706), + 65: uint16(24709), + 66: uint16(24710), + 67: uint16(24711), + 68: uint16(24712), + 69: uint16(24714), + 70: uint16(24715), + 71: uint16(24718), + 72: uint16(24719), + 73: uint16(24720), + 74: uint16(24721), + 75: uint16(24723), + 76: uint16(24725), + 77: uint16(24727), + 78: uint16(24728), + 79: uint16(24729), + 80: uint16(24732), + 81: uint16(24734), + 82: uint16(24737), + 83: uint16(24738), + 84: uint16(24740), + 85: uint16(24741), + 86: uint16(24743), + 87: uint16(24745), + 88: uint16(24746), + 89: uint16(24750), + 90: uint16(24752), + 91: uint16(24755), + 92: uint16(24757), + 93: uint16(24758), + 94: uint16(24759), + 95: uint16(24761), + 96: uint16(24762), + 97: uint16(24765), + 98: uint16(24766), + 99: uint16(24767), + 100: uint16(24768), + 101: uint16(24769), + 102: uint16(24770), + 103: uint16(24771), + 104: uint16(24772), + 105: uint16(24775), + 106: uint16(24776), + 107: uint16(24777), + 108: uint16(24780), + 109: uint16(24781), + 110: uint16(24782), + 111: uint16(24783), + 112: uint16(24784), + 113: uint16(24786), + 114: uint16(24787), + 115: uint16(24788), + 116: uint16(24790), + 117: uint16(24791), + 118: uint16(24793), + 119: uint16(24795), + 120: uint16(24798), + 121: uint16(24801), + 122: uint16(24802), + 123: uint16(24803), + 124: uint16(24804), + 125: uint16(24805), + 126: uint16(24810), + 127: uint16(24817), + 128: uint16(24818), + 129: uint16(24821), + 130: uint16(24823), + 131: uint16(24824), + 132: uint16(24827), + 133: uint16(24828), + 134: uint16(24829), + 135: uint16(24830), + 136: uint16(24831), + 137: uint16(24834), + 138: uint16(24835), + 139: uint16(24836), + 140: uint16(24837), + 141: uint16(24839), + 142: uint16(24842), + 143: uint16(24843), + 144: uint16(24844), + 145: uint16(24848), + 146: uint16(24849), + 147: uint16(24850), + 148: uint16(24851), + 149: uint16(24852), + 150: uint16(24854), + 151: uint16(24855), + 152: uint16(24856), + 153: uint16(24857), + 154: uint16(24859), + 155: uint16(24860), + 156: uint16(24861), + 157: uint16(24862), + 158: uint16(24865), + 159: uint16(24866), + 160: uint16(24869), + 161: uint16(24872), + 162: uint16(24873), + 163: uint16(24874), + 164: uint16(24876), + 165: uint16(24877), + 166: uint16(24878), + 167: uint16(24879), + 168: uint16(24880), + 169: uint16(24881), + 170: uint16(24882), + 171: uint16(24883), + 172: uint16(24884), + 173: uint16(24885), + 174: uint16(24886), + 175: uint16(24887), + 176: uint16(24888), + 177: uint16(24889), + 178: uint16(24890), + 179: uint16(24891), + 180: uint16(24892), + 181: uint16(24893), + 182: uint16(24894), + 183: uint16(24896), + 184: uint16(24897), + 185: uint16(24898), + 186: uint16(24899), + 187: uint16(24900), + 188: uint16(24901), + 189: uint16(24902), + }, + 16: { + 0: uint16(24903), + 1: uint16(24905), + 2: uint16(24907), + 3: uint16(24909), + 4: uint16(24911), + 5: uint16(24912), + 6: uint16(24914), + 7: uint16(24915), + 8: uint16(24916), + 9: uint16(24918), + 10: uint16(24919), + 11: uint16(24920), + 12: uint16(24921), + 13: uint16(24922), + 14: uint16(24923), + 15: uint16(24924), + 16: uint16(24926), + 17: uint16(24927), + 18: uint16(24928), + 19: uint16(24929), + 20: uint16(24931), + 21: uint16(24932), + 22: uint16(24933), + 23: uint16(24934), + 24: uint16(24937), + 25: uint16(24938), + 26: uint16(24939), + 27: uint16(24940), + 28: uint16(24941), + 29: uint16(24942), + 30: uint16(24943), + 31: uint16(24945), + 32: uint16(24946), + 33: uint16(24947), + 34: uint16(24948), + 35: uint16(24950), + 36: uint16(24952), + 37: uint16(24953), + 38: uint16(24954), + 39: uint16(24955), + 40: uint16(24956), + 41: uint16(24957), + 42: uint16(24958), + 43: uint16(24959), + 44: uint16(24960), + 45: uint16(24961), + 46: uint16(24962), + 47: uint16(24963), + 48: uint16(24964), + 49: uint16(24965), + 50: uint16(24966), + 51: uint16(24967), + 52: uint16(24968), + 53: uint16(24969), + 54: uint16(24970), + 55: uint16(24972), + 56: uint16(24973), + 57: uint16(24975), + 58: uint16(24976), + 59: uint16(24977), + 60: uint16(24978), + 61: uint16(24979), + 62: uint16(24981), + 63: uint16(24982), + 64: uint16(24983), + 65: uint16(24984), + 66: uint16(24985), + 67: uint16(24986), + 68: uint16(24987), + 69: uint16(24988), + 70: uint16(24990), + 71: uint16(24991), + 72: uint16(24992), + 73: uint16(24993), + 74: uint16(24994), + 75: uint16(24995), + 76: uint16(24996), + 77: uint16(24997), + 78: uint16(24998), + 79: uint16(25002), + 80: uint16(25003), + 81: uint16(25005), + 82: uint16(25006), + 83: uint16(25007), + 84: uint16(25008), + 85: uint16(25009), + 86: uint16(25010), + 87: uint16(25011), + 88: uint16(25012), + 89: uint16(25013), + 90: uint16(25014), + 91: uint16(25016), + 92: uint16(25017), + 93: uint16(25018), + 94: uint16(25019), + 95: uint16(25020), + 96: uint16(25021), + 97: uint16(25023), + 98: uint16(25024), + 99: uint16(25025), + 100: uint16(25027), + 101: uint16(25028), + 102: uint16(25029), + 103: uint16(25030), + 104: uint16(25031), + 105: uint16(25033), + 106: uint16(25036), + 107: uint16(25037), + 108: uint16(25038), + 109: uint16(25039), + 110: uint16(25040), + 111: uint16(25043), + 112: uint16(25045), + 113: uint16(25046), + 114: uint16(25047), + 115: uint16(25048), + 116: uint16(25049), + 117: uint16(25050), + 118: uint16(25051), + 119: uint16(25052), + 120: uint16(25053), + 121: uint16(25054), + 122: uint16(25055), + 123: uint16(25056), + 124: uint16(25057), + 125: uint16(25058), + 126: uint16(25059), + 127: uint16(25060), + 128: uint16(25061), + 129: uint16(25063), + 130: uint16(25064), + 131: uint16(25065), + 132: uint16(25066), + 133: uint16(25067), + 134: uint16(25068), + 135: uint16(25069), + 136: uint16(25070), + 137: uint16(25071), + 138: uint16(25072), + 139: uint16(25073), + 140: uint16(25074), + 141: uint16(25075), + 142: uint16(25076), + 143: uint16(25078), + 144: uint16(25079), + 145: uint16(25080), + 146: uint16(25081), + 147: uint16(25082), + 148: uint16(25083), + 149: uint16(25084), + 150: uint16(25085), + 151: uint16(25086), + 152: uint16(25088), + 153: uint16(25089), + 154: uint16(25090), + 155: uint16(25091), + 156: uint16(25092), + 157: uint16(25093), + 158: uint16(25095), + 159: uint16(25097), + 160: uint16(25107), + 161: uint16(25108), + 162: uint16(25113), + 163: uint16(25116), + 164: uint16(25117), + 165: uint16(25118), + 166: uint16(25120), + 167: uint16(25123), + 168: uint16(25126), + 169: uint16(25127), + 170: uint16(25128), + 171: uint16(25129), + 172: uint16(25131), + 173: uint16(25133), + 174: uint16(25135), + 175: uint16(25136), + 176: uint16(25137), + 177: uint16(25138), + 178: uint16(25141), + 179: uint16(25142), + 180: uint16(25144), + 181: uint16(25145), + 182: uint16(25146), + 183: uint16(25147), + 184: uint16(25148), + 185: uint16(25154), + 186: uint16(25156), + 187: uint16(25157), + 188: uint16(25158), + 189: uint16(25162), + }, + 17: { + 0: uint16(25167), + 1: uint16(25168), + 2: uint16(25173), + 3: uint16(25174), + 4: uint16(25175), + 5: uint16(25177), + 6: uint16(25178), + 7: uint16(25180), + 8: uint16(25181), + 9: uint16(25182), + 10: uint16(25183), + 11: uint16(25184), + 12: uint16(25185), + 13: uint16(25186), + 14: uint16(25188), + 15: uint16(25189), + 16: uint16(25192), + 17: uint16(25201), + 18: uint16(25202), + 19: uint16(25204), + 20: uint16(25205), + 21: uint16(25207), + 22: uint16(25208), + 23: uint16(25210), + 24: uint16(25211), + 25: uint16(25213), + 26: uint16(25217), + 27: uint16(25218), + 28: uint16(25219), + 29: uint16(25221), + 30: uint16(25222), + 31: uint16(25223), + 32: uint16(25224), + 33: uint16(25227), + 34: uint16(25228), + 35: uint16(25229), + 36: uint16(25230), + 37: uint16(25231), + 38: uint16(25232), + 39: uint16(25236), + 40: uint16(25241), + 41: uint16(25244), + 42: uint16(25245), + 43: uint16(25246), + 44: uint16(25251), + 45: uint16(25254), + 46: uint16(25255), + 47: uint16(25257), + 48: uint16(25258), + 49: uint16(25261), + 50: uint16(25262), + 51: uint16(25263), + 52: uint16(25264), + 53: uint16(25266), + 54: uint16(25267), + 55: uint16(25268), + 56: uint16(25270), + 57: uint16(25271), + 58: uint16(25272), + 59: uint16(25274), + 60: uint16(25278), + 61: uint16(25280), + 62: uint16(25281), + 63: uint16(25283), + 64: uint16(25291), + 65: uint16(25295), + 66: uint16(25297), + 67: uint16(25301), + 68: uint16(25309), + 69: uint16(25310), + 70: uint16(25312), + 71: uint16(25313), + 72: uint16(25316), + 73: uint16(25322), + 74: uint16(25323), + 75: uint16(25328), + 76: uint16(25330), + 77: uint16(25333), + 78: uint16(25336), + 79: uint16(25337), + 80: uint16(25338), + 81: uint16(25339), + 82: uint16(25344), + 83: uint16(25347), + 84: uint16(25348), + 85: uint16(25349), + 86: uint16(25350), + 87: uint16(25354), + 88: uint16(25355), + 89: uint16(25356), + 90: uint16(25357), + 91: uint16(25359), + 92: uint16(25360), + 93: uint16(25362), + 94: uint16(25363), + 95: uint16(25364), + 96: uint16(25365), + 97: uint16(25367), + 98: uint16(25368), + 99: uint16(25369), + 100: uint16(25372), + 101: uint16(25382), + 102: uint16(25383), + 103: uint16(25385), + 104: uint16(25388), + 105: uint16(25389), + 106: uint16(25390), + 107: uint16(25392), + 108: uint16(25393), + 109: uint16(25395), + 110: uint16(25396), + 111: uint16(25397), + 112: uint16(25398), + 113: uint16(25399), + 114: uint16(25400), + 115: uint16(25403), + 116: uint16(25404), + 117: uint16(25406), + 118: uint16(25407), + 119: uint16(25408), + 120: uint16(25409), + 121: uint16(25412), + 122: uint16(25415), + 123: uint16(25416), + 124: uint16(25418), + 125: uint16(25425), + 126: uint16(25426), + 127: uint16(25427), + 128: uint16(25428), + 129: uint16(25430), + 130: uint16(25431), + 131: uint16(25432), + 132: uint16(25433), + 133: uint16(25434), + 134: uint16(25435), + 135: uint16(25436), + 136: uint16(25437), + 137: uint16(25440), + 138: uint16(25444), + 139: uint16(25445), + 140: uint16(25446), + 141: uint16(25448), + 142: uint16(25450), + 143: uint16(25451), + 144: uint16(25452), + 145: uint16(25455), + 146: uint16(25456), + 147: uint16(25458), + 148: uint16(25459), + 149: uint16(25460), + 150: uint16(25461), + 151: uint16(25464), + 152: uint16(25465), + 153: uint16(25468), + 154: uint16(25469), + 155: uint16(25470), + 156: uint16(25471), + 157: uint16(25473), + 158: uint16(25475), + 159: uint16(25476), + 160: uint16(25477), + 161: uint16(25478), + 162: uint16(25483), + 163: uint16(25485), + 164: uint16(25489), + 165: uint16(25491), + 166: uint16(25492), + 167: uint16(25493), + 168: uint16(25495), + 169: uint16(25497), + 170: uint16(25498), + 171: uint16(25499), + 172: uint16(25500), + 173: uint16(25501), + 174: uint16(25502), + 175: uint16(25503), + 176: uint16(25505), + 177: uint16(25508), + 178: uint16(25510), + 179: uint16(25515), + 180: uint16(25519), + 181: uint16(25521), + 182: uint16(25522), + 183: uint16(25525), + 184: uint16(25526), + 185: uint16(25529), + 186: uint16(25531), + 187: uint16(25533), + 188: uint16(25535), + 189: uint16(25536), + }, + 18: { + 0: uint16(25537), + 1: uint16(25538), + 2: uint16(25539), + 3: uint16(25541), + 4: uint16(25543), + 5: uint16(25544), + 6: uint16(25546), + 7: uint16(25547), + 8: uint16(25548), + 9: uint16(25553), + 10: uint16(25555), + 11: uint16(25556), + 12: uint16(25557), + 13: uint16(25559), + 14: uint16(25560), + 15: uint16(25561), + 16: uint16(25562), + 17: uint16(25563), + 18: uint16(25564), + 19: uint16(25565), + 20: uint16(25567), + 21: uint16(25570), + 22: uint16(25572), + 23: uint16(25573), + 24: uint16(25574), + 25: uint16(25575), + 26: uint16(25576), + 27: uint16(25579), + 28: uint16(25580), + 29: uint16(25582), + 30: uint16(25583), + 31: uint16(25584), + 32: uint16(25585), + 33: uint16(25587), + 34: uint16(25589), + 35: uint16(25591), + 36: uint16(25593), + 37: uint16(25594), + 38: uint16(25595), + 39: uint16(25596), + 40: uint16(25598), + 41: uint16(25603), + 42: uint16(25604), + 43: uint16(25606), + 44: uint16(25607), + 45: uint16(25608), + 46: uint16(25609), + 47: uint16(25610), + 48: uint16(25613), + 49: uint16(25614), + 50: uint16(25617), + 51: uint16(25618), + 52: uint16(25621), + 53: uint16(25622), + 54: uint16(25623), + 55: uint16(25624), + 56: uint16(25625), + 57: uint16(25626), + 58: uint16(25629), + 59: uint16(25631), + 60: uint16(25634), + 61: uint16(25635), + 62: uint16(25636), + 63: uint16(25637), + 64: uint16(25639), + 65: uint16(25640), + 66: uint16(25641), + 67: uint16(25643), + 68: uint16(25646), + 69: uint16(25647), + 70: uint16(25648), + 71: uint16(25649), + 72: uint16(25650), + 73: uint16(25651), + 74: uint16(25653), + 75: uint16(25654), + 76: uint16(25655), + 77: uint16(25656), + 78: uint16(25657), + 79: uint16(25659), + 80: uint16(25660), + 81: uint16(25662), + 82: uint16(25664), + 83: uint16(25666), + 84: uint16(25667), + 85: uint16(25673), + 86: uint16(25675), + 87: uint16(25676), + 88: uint16(25677), + 89: uint16(25678), + 90: uint16(25679), + 91: uint16(25680), + 92: uint16(25681), + 93: uint16(25683), + 94: uint16(25685), + 95: uint16(25686), + 96: uint16(25687), + 97: uint16(25689), + 98: uint16(25690), + 99: uint16(25691), + 100: uint16(25692), + 101: uint16(25693), + 102: uint16(25695), + 103: uint16(25696), + 104: uint16(25697), + 105: uint16(25698), + 106: uint16(25699), + 107: uint16(25700), + 108: uint16(25701), + 109: uint16(25702), + 110: uint16(25704), + 111: uint16(25706), + 112: uint16(25707), + 113: uint16(25708), + 114: uint16(25710), + 115: uint16(25711), + 116: uint16(25712), + 117: uint16(25713), + 118: uint16(25714), + 119: uint16(25715), + 120: uint16(25716), + 121: uint16(25717), + 122: uint16(25718), + 123: uint16(25719), + 124: uint16(25723), + 125: uint16(25724), + 126: uint16(25725), + 127: uint16(25726), + 128: uint16(25727), + 129: uint16(25728), + 130: uint16(25729), + 131: uint16(25731), + 132: uint16(25734), + 133: uint16(25736), + 134: uint16(25737), + 135: uint16(25738), + 136: uint16(25739), + 137: uint16(25740), + 138: uint16(25741), + 139: uint16(25742), + 140: uint16(25743), + 141: uint16(25744), + 142: uint16(25747), + 143: uint16(25748), + 144: uint16(25751), + 145: uint16(25752), + 146: uint16(25754), + 147: uint16(25755), + 148: uint16(25756), + 149: uint16(25757), + 150: uint16(25759), + 151: uint16(25760), + 152: uint16(25761), + 153: uint16(25762), + 154: uint16(25763), + 155: uint16(25765), + 156: uint16(25766), + 157: uint16(25767), + 158: uint16(25768), + 159: uint16(25770), + 160: uint16(25771), + 161: uint16(25775), + 162: uint16(25777), + 163: uint16(25778), + 164: uint16(25779), + 165: uint16(25780), + 166: uint16(25782), + 167: uint16(25785), + 168: uint16(25787), + 169: uint16(25789), + 170: uint16(25790), + 171: uint16(25791), + 172: uint16(25793), + 173: uint16(25795), + 174: uint16(25796), + 175: uint16(25798), + 176: uint16(25799), + 177: uint16(25800), + 178: uint16(25801), + 179: uint16(25802), + 180: uint16(25803), + 181: uint16(25804), + 182: uint16(25807), + 183: uint16(25809), + 184: uint16(25811), + 185: uint16(25812), + 186: uint16(25813), + 187: uint16(25814), + 188: uint16(25817), + 189: uint16(25818), + }, + 19: { + 0: uint16(25819), + 1: uint16(25820), + 2: uint16(25821), + 3: uint16(25823), + 4: uint16(25824), + 5: uint16(25825), + 6: uint16(25827), + 7: uint16(25829), + 8: uint16(25831), + 9: uint16(25832), + 10: uint16(25833), + 11: uint16(25834), + 12: uint16(25835), + 13: uint16(25836), + 14: uint16(25837), + 15: uint16(25838), + 16: uint16(25839), + 17: uint16(25840), + 18: uint16(25841), + 19: uint16(25842), + 20: uint16(25843), + 21: uint16(25844), + 22: uint16(25845), + 23: uint16(25846), + 24: uint16(25847), + 25: uint16(25848), + 26: uint16(25849), + 27: uint16(25850), + 28: uint16(25851), + 29: uint16(25852), + 30: uint16(25853), + 31: uint16(25854), + 32: uint16(25855), + 33: uint16(25857), + 34: uint16(25858), + 35: uint16(25859), + 36: uint16(25860), + 37: uint16(25861), + 38: uint16(25862), + 39: uint16(25863), + 40: uint16(25864), + 41: uint16(25866), + 42: uint16(25867), + 43: uint16(25868), + 44: uint16(25869), + 45: uint16(25870), + 46: uint16(25871), + 47: uint16(25872), + 48: uint16(25873), + 49: uint16(25875), + 50: uint16(25876), + 51: uint16(25877), + 52: uint16(25878), + 53: uint16(25879), + 54: uint16(25881), + 55: uint16(25882), + 56: uint16(25883), + 57: uint16(25884), + 58: uint16(25885), + 59: uint16(25886), + 60: uint16(25887), + 61: uint16(25888), + 62: uint16(25889), + 63: uint16(25890), + 64: uint16(25891), + 65: uint16(25892), + 66: uint16(25894), + 67: uint16(25895), + 68: uint16(25896), + 69: uint16(25897), + 70: uint16(25898), + 71: uint16(25900), + 72: uint16(25901), + 73: uint16(25904), + 74: uint16(25905), + 75: uint16(25906), + 76: uint16(25907), + 77: uint16(25911), + 78: uint16(25914), + 79: uint16(25916), + 80: uint16(25917), + 81: uint16(25920), + 82: uint16(25921), + 83: uint16(25922), + 84: uint16(25923), + 85: uint16(25924), + 86: uint16(25926), + 87: uint16(25927), + 88: uint16(25930), + 89: uint16(25931), + 90: uint16(25933), + 91: uint16(25934), + 92: uint16(25936), + 93: uint16(25938), + 94: uint16(25939), + 95: uint16(25940), + 96: uint16(25943), + 97: uint16(25944), + 98: uint16(25946), + 99: uint16(25948), + 100: uint16(25951), + 101: uint16(25952), + 102: uint16(25953), + 103: uint16(25956), + 104: uint16(25957), + 105: uint16(25959), + 106: uint16(25960), + 107: uint16(25961), + 108: uint16(25962), + 109: uint16(25965), + 110: uint16(25966), + 111: uint16(25967), + 112: uint16(25969), + 113: uint16(25971), + 114: uint16(25973), + 115: uint16(25974), + 116: uint16(25976), + 117: uint16(25977), + 118: uint16(25978), + 119: uint16(25979), + 120: uint16(25980), + 121: uint16(25981), + 122: uint16(25982), + 123: uint16(25983), + 124: uint16(25984), + 125: uint16(25985), + 126: uint16(25986), + 127: uint16(25987), + 128: uint16(25988), + 129: uint16(25989), + 130: uint16(25990), + 131: uint16(25992), + 132: uint16(25993), + 133: uint16(25994), + 134: uint16(25997), + 135: uint16(25998), + 136: uint16(25999), + 137: uint16(26002), + 138: uint16(26004), + 139: uint16(26005), + 140: uint16(26006), + 141: uint16(26008), + 142: uint16(26010), + 143: uint16(26013), + 144: uint16(26014), + 145: uint16(26016), + 146: uint16(26018), + 147: uint16(26019), + 148: uint16(26022), + 149: uint16(26024), + 150: uint16(26026), + 151: uint16(26028), + 152: uint16(26030), + 153: uint16(26033), + 154: uint16(26034), + 155: uint16(26035), + 156: uint16(26036), + 157: uint16(26037), + 158: uint16(26038), + 159: uint16(26039), + 160: uint16(26040), + 161: uint16(26042), + 162: uint16(26043), + 163: uint16(26046), + 164: uint16(26047), + 165: uint16(26048), + 166: uint16(26050), + 167: uint16(26055), + 168: uint16(26056), + 169: uint16(26057), + 170: uint16(26058), + 171: uint16(26061), + 172: uint16(26064), + 173: uint16(26065), + 174: uint16(26067), + 175: uint16(26068), + 176: uint16(26069), + 177: uint16(26072), + 178: uint16(26073), + 179: uint16(26074), + 180: uint16(26075), + 181: uint16(26076), + 182: uint16(26077), + 183: uint16(26078), + 184: uint16(26079), + 185: uint16(26081), + 186: uint16(26083), + 187: uint16(26084), + 188: uint16(26090), + 189: uint16(26091), + }, + 20: { + 0: uint16(26098), + 1: uint16(26099), + 2: uint16(26100), + 3: uint16(26101), + 4: uint16(26104), + 5: uint16(26105), + 6: uint16(26107), + 7: uint16(26108), + 8: uint16(26109), + 9: uint16(26110), + 10: uint16(26111), + 11: uint16(26113), + 12: uint16(26116), + 13: uint16(26117), + 14: uint16(26119), + 15: uint16(26120), + 16: uint16(26121), + 17: uint16(26123), + 18: uint16(26125), + 19: uint16(26128), + 20: uint16(26129), + 21: uint16(26130), + 22: uint16(26134), + 23: uint16(26135), + 24: uint16(26136), + 25: uint16(26138), + 26: uint16(26139), + 27: uint16(26140), + 28: uint16(26142), + 29: uint16(26145), + 30: uint16(26146), + 31: uint16(26147), + 32: uint16(26148), + 33: uint16(26150), + 34: uint16(26153), + 35: uint16(26154), + 36: uint16(26155), + 37: uint16(26156), + 38: uint16(26158), + 39: uint16(26160), + 40: uint16(26162), + 41: uint16(26163), + 42: uint16(26167), + 43: uint16(26168), + 44: uint16(26169), + 45: uint16(26170), + 46: uint16(26171), + 47: uint16(26173), + 48: uint16(26175), + 49: uint16(26176), + 50: uint16(26178), + 51: uint16(26180), + 52: uint16(26181), + 53: uint16(26182), + 54: uint16(26183), + 55: uint16(26184), + 56: uint16(26185), + 57: uint16(26186), + 58: uint16(26189), + 59: uint16(26190), + 60: uint16(26192), + 61: uint16(26193), + 62: uint16(26200), + 63: uint16(26201), + 64: uint16(26203), + 65: uint16(26204), + 66: uint16(26205), + 67: uint16(26206), + 68: uint16(26208), + 69: uint16(26210), + 70: uint16(26211), + 71: uint16(26213), + 72: uint16(26215), + 73: uint16(26217), + 74: uint16(26218), + 75: uint16(26219), + 76: uint16(26220), + 77: uint16(26221), + 78: uint16(26225), + 79: uint16(26226), + 80: uint16(26227), + 81: uint16(26229), + 82: uint16(26232), + 83: uint16(26233), + 84: uint16(26235), + 85: uint16(26236), + 86: uint16(26237), + 87: uint16(26239), + 88: uint16(26240), + 89: uint16(26241), + 90: uint16(26243), + 91: uint16(26245), + 92: uint16(26246), + 93: uint16(26248), + 94: uint16(26249), + 95: uint16(26250), + 96: uint16(26251), + 97: uint16(26253), + 98: uint16(26254), + 99: uint16(26255), + 100: uint16(26256), + 101: uint16(26258), + 102: uint16(26259), + 103: uint16(26260), + 104: uint16(26261), + 105: uint16(26264), + 106: uint16(26265), + 107: uint16(26266), + 108: uint16(26267), + 109: uint16(26268), + 110: uint16(26270), + 111: uint16(26271), + 112: uint16(26272), + 113: uint16(26273), + 114: uint16(26274), + 115: uint16(26275), + 116: uint16(26276), + 117: uint16(26277), + 118: uint16(26278), + 119: uint16(26281), + 120: uint16(26282), + 121: uint16(26283), + 122: uint16(26284), + 123: uint16(26285), + 124: uint16(26287), + 125: uint16(26288), + 126: uint16(26289), + 127: uint16(26290), + 128: uint16(26291), + 129: uint16(26293), + 130: uint16(26294), + 131: uint16(26295), + 132: uint16(26296), + 133: uint16(26298), + 134: uint16(26299), + 135: uint16(26300), + 136: uint16(26301), + 137: uint16(26303), + 138: uint16(26304), + 139: uint16(26305), + 140: uint16(26306), + 141: uint16(26307), + 142: uint16(26308), + 143: uint16(26309), + 144: uint16(26310), + 145: uint16(26311), + 146: uint16(26312), + 147: uint16(26313), + 148: uint16(26314), + 149: uint16(26315), + 150: uint16(26316), + 151: uint16(26317), + 152: uint16(26318), + 153: uint16(26319), + 154: uint16(26320), + 155: uint16(26321), + 156: uint16(26322), + 157: uint16(26323), + 158: uint16(26324), + 159: uint16(26325), + 160: uint16(26326), + 161: uint16(26327), + 162: uint16(26328), + 163: uint16(26330), + 164: uint16(26334), + 165: uint16(26335), + 166: uint16(26336), + 167: uint16(26337), + 168: uint16(26338), + 169: uint16(26339), + 170: uint16(26340), + 171: uint16(26341), + 172: uint16(26343), + 173: uint16(26344), + 174: uint16(26346), + 175: uint16(26347), + 176: uint16(26348), + 177: uint16(26349), + 178: uint16(26350), + 179: uint16(26351), + 180: uint16(26353), + 181: uint16(26357), + 182: uint16(26358), + 183: uint16(26360), + 184: uint16(26362), + 185: uint16(26363), + 186: uint16(26365), + 187: uint16(26369), + 188: uint16(26370), + 189: uint16(26371), + }, + 21: { + 0: uint16(26372), + 1: uint16(26373), + 2: uint16(26374), + 3: uint16(26375), + 4: uint16(26380), + 5: uint16(26382), + 6: uint16(26383), + 7: uint16(26385), + 8: uint16(26386), + 9: uint16(26387), + 10: uint16(26390), + 11: uint16(26392), + 12: uint16(26393), + 13: uint16(26394), + 14: uint16(26396), + 15: uint16(26398), + 16: uint16(26400), + 17: uint16(26401), + 18: uint16(26402), + 19: uint16(26403), + 20: uint16(26404), + 21: uint16(26405), + 22: uint16(26407), + 23: uint16(26409), + 24: uint16(26414), + 25: uint16(26416), + 26: uint16(26418), + 27: uint16(26419), + 28: uint16(26422), + 29: uint16(26423), + 30: uint16(26424), + 31: uint16(26425), + 32: uint16(26427), + 33: uint16(26428), + 34: uint16(26430), + 35: uint16(26431), + 36: uint16(26433), + 37: uint16(26436), + 38: uint16(26437), + 39: uint16(26439), + 40: uint16(26442), + 41: uint16(26443), + 42: uint16(26445), + 43: uint16(26450), + 44: uint16(26452), + 45: uint16(26453), + 46: uint16(26455), + 47: uint16(26456), + 48: uint16(26457), + 49: uint16(26458), + 50: uint16(26459), + 51: uint16(26461), + 52: uint16(26466), + 53: uint16(26467), + 54: uint16(26468), + 55: uint16(26470), + 56: uint16(26471), + 57: uint16(26475), + 58: uint16(26476), + 59: uint16(26478), + 60: uint16(26481), + 61: uint16(26484), + 62: uint16(26486), + 63: uint16(26488), + 64: uint16(26489), + 65: uint16(26490), + 66: uint16(26491), + 67: uint16(26493), + 68: uint16(26496), + 69: uint16(26498), + 70: uint16(26499), + 71: uint16(26501), + 72: uint16(26502), + 73: uint16(26504), + 74: uint16(26506), + 75: uint16(26508), + 76: uint16(26509), + 77: uint16(26510), + 78: uint16(26511), + 79: uint16(26513), + 80: uint16(26514), + 81: uint16(26515), + 82: uint16(26516), + 83: uint16(26518), + 84: uint16(26521), + 85: uint16(26523), + 86: uint16(26527), + 87: uint16(26528), + 88: uint16(26529), + 89: uint16(26532), + 90: uint16(26534), + 91: uint16(26537), + 92: uint16(26540), + 93: uint16(26542), + 94: uint16(26545), + 95: uint16(26546), + 96: uint16(26548), + 97: uint16(26553), + 98: uint16(26554), + 99: uint16(26555), + 100: uint16(26556), + 101: uint16(26557), + 102: uint16(26558), + 103: uint16(26559), + 104: uint16(26560), + 105: uint16(26562), + 106: uint16(26565), + 107: uint16(26566), + 108: uint16(26567), + 109: uint16(26568), + 110: uint16(26569), + 111: uint16(26570), + 112: uint16(26571), + 113: uint16(26572), + 114: uint16(26573), + 115: uint16(26574), + 116: uint16(26581), + 117: uint16(26582), + 118: uint16(26583), + 119: uint16(26587), + 120: uint16(26591), + 121: uint16(26593), + 122: uint16(26595), + 123: uint16(26596), + 124: uint16(26598), + 125: uint16(26599), + 126: uint16(26600), + 127: uint16(26602), + 128: uint16(26603), + 129: uint16(26605), + 130: uint16(26606), + 131: uint16(26610), + 132: uint16(26613), + 133: uint16(26614), + 134: uint16(26615), + 135: uint16(26616), + 136: uint16(26617), + 137: uint16(26618), + 138: uint16(26619), + 139: uint16(26620), + 140: uint16(26622), + 141: uint16(26625), + 142: uint16(26626), + 143: uint16(26627), + 144: uint16(26628), + 145: uint16(26630), + 146: uint16(26637), + 147: uint16(26640), + 148: uint16(26642), + 149: uint16(26644), + 150: uint16(26645), + 151: uint16(26648), + 152: uint16(26649), + 153: uint16(26650), + 154: uint16(26651), + 155: uint16(26652), + 156: uint16(26654), + 157: uint16(26655), + 158: uint16(26656), + 159: uint16(26658), + 160: uint16(26659), + 161: uint16(26660), + 162: uint16(26661), + 163: uint16(26662), + 164: uint16(26663), + 165: uint16(26664), + 166: uint16(26667), + 167: uint16(26668), + 168: uint16(26669), + 169: uint16(26670), + 170: uint16(26671), + 171: uint16(26672), + 172: uint16(26673), + 173: uint16(26676), + 174: uint16(26677), + 175: uint16(26678), + 176: uint16(26682), + 177: uint16(26683), + 178: uint16(26687), + 179: uint16(26695), + 180: uint16(26699), + 181: uint16(26701), + 182: uint16(26703), + 183: uint16(26706), + 184: uint16(26710), + 185: uint16(26711), + 186: uint16(26712), + 187: uint16(26713), + 188: uint16(26714), + 189: uint16(26715), + }, + 22: { + 0: uint16(26716), + 1: uint16(26717), + 2: uint16(26718), + 3: uint16(26719), + 4: uint16(26730), + 5: uint16(26732), + 6: uint16(26733), + 7: uint16(26734), + 8: uint16(26735), + 9: uint16(26736), + 10: uint16(26737), + 11: uint16(26738), + 12: uint16(26739), + 13: uint16(26741), + 14: uint16(26744), + 15: uint16(26745), + 16: uint16(26746), + 17: uint16(26747), + 18: uint16(26748), + 19: uint16(26749), + 20: uint16(26750), + 21: uint16(26751), + 22: uint16(26752), + 23: uint16(26754), + 24: uint16(26756), + 25: uint16(26759), + 26: uint16(26760), + 27: uint16(26761), + 28: uint16(26762), + 29: uint16(26763), + 30: uint16(26764), + 31: uint16(26765), + 32: uint16(26766), + 33: uint16(26768), + 34: uint16(26769), + 35: uint16(26770), + 36: uint16(26772), + 37: uint16(26773), + 38: uint16(26774), + 39: uint16(26776), + 40: uint16(26777), + 41: uint16(26778), + 42: uint16(26779), + 43: uint16(26780), + 44: uint16(26781), + 45: uint16(26782), + 46: uint16(26783), + 47: uint16(26784), + 48: uint16(26785), + 49: uint16(26787), + 50: uint16(26788), + 51: uint16(26789), + 52: uint16(26793), + 53: uint16(26794), + 54: uint16(26795), + 55: uint16(26796), + 56: uint16(26798), + 57: uint16(26801), + 58: uint16(26802), + 59: uint16(26804), + 60: uint16(26806), + 61: uint16(26807), + 62: uint16(26808), + 63: uint16(26809), + 64: uint16(26810), + 65: uint16(26811), + 66: uint16(26812), + 67: uint16(26813), + 68: uint16(26814), + 69: uint16(26815), + 70: uint16(26817), + 71: uint16(26819), + 72: uint16(26820), + 73: uint16(26821), + 74: uint16(26822), + 75: uint16(26823), + 76: uint16(26824), + 77: uint16(26826), + 78: uint16(26828), + 79: uint16(26830), + 80: uint16(26831), + 81: uint16(26832), + 82: uint16(26833), + 83: uint16(26835), + 84: uint16(26836), + 85: uint16(26838), + 86: uint16(26839), + 87: uint16(26841), + 88: uint16(26843), + 89: uint16(26844), + 90: uint16(26845), + 91: uint16(26846), + 92: uint16(26847), + 93: uint16(26849), + 94: uint16(26850), + 95: uint16(26852), + 96: uint16(26853), + 97: uint16(26854), + 98: uint16(26855), + 99: uint16(26856), + 100: uint16(26857), + 101: uint16(26858), + 102: uint16(26859), + 103: uint16(26860), + 104: uint16(26861), + 105: uint16(26863), + 106: uint16(26866), + 107: uint16(26867), + 108: uint16(26868), + 109: uint16(26870), + 110: uint16(26871), + 111: uint16(26872), + 112: uint16(26875), + 113: uint16(26877), + 114: uint16(26878), + 115: uint16(26879), + 116: uint16(26880), + 117: uint16(26882), + 118: uint16(26883), + 119: uint16(26884), + 120: uint16(26886), + 121: uint16(26887), + 122: uint16(26888), + 123: uint16(26889), + 124: uint16(26890), + 125: uint16(26892), + 126: uint16(26895), + 127: uint16(26897), + 128: uint16(26899), + 129: uint16(26900), + 130: uint16(26901), + 131: uint16(26902), + 132: uint16(26903), + 133: uint16(26904), + 134: uint16(26905), + 135: uint16(26906), + 136: uint16(26907), + 137: uint16(26908), + 138: uint16(26909), + 139: uint16(26910), + 140: uint16(26913), + 141: uint16(26914), + 142: uint16(26915), + 143: uint16(26917), + 144: uint16(26918), + 145: uint16(26919), + 146: uint16(26920), + 147: uint16(26921), + 148: uint16(26922), + 149: uint16(26923), + 150: uint16(26924), + 151: uint16(26926), + 152: uint16(26927), + 153: uint16(26929), + 154: uint16(26930), + 155: uint16(26931), + 156: uint16(26933), + 157: uint16(26934), + 158: uint16(26935), + 159: uint16(26936), + 160: uint16(26938), + 161: uint16(26939), + 162: uint16(26940), + 163: uint16(26942), + 164: uint16(26944), + 165: uint16(26945), + 166: uint16(26947), + 167: uint16(26948), + 168: uint16(26949), + 169: uint16(26950), + 170: uint16(26951), + 171: uint16(26952), + 172: uint16(26953), + 173: uint16(26954), + 174: uint16(26955), + 175: uint16(26956), + 176: uint16(26957), + 177: uint16(26958), + 178: uint16(26959), + 179: uint16(26960), + 180: uint16(26961), + 181: uint16(26962), + 182: uint16(26963), + 183: uint16(26965), + 184: uint16(26966), + 185: uint16(26968), + 186: uint16(26969), + 187: uint16(26971), + 188: uint16(26972), + 189: uint16(26975), + }, + 23: { + 0: uint16(26977), + 1: uint16(26978), + 2: uint16(26980), + 3: uint16(26981), + 4: uint16(26983), + 5: uint16(26984), + 6: uint16(26985), + 7: uint16(26986), + 8: uint16(26988), + 9: uint16(26989), + 10: uint16(26991), + 11: uint16(26992), + 12: uint16(26994), + 13: uint16(26995), + 14: uint16(26996), + 15: uint16(26997), + 16: uint16(26998), + 17: uint16(27002), + 18: uint16(27003), + 19: uint16(27005), + 20: uint16(27006), + 21: uint16(27007), + 22: uint16(27009), + 23: uint16(27011), + 24: uint16(27013), + 25: uint16(27018), + 26: uint16(27019), + 27: uint16(27020), + 28: uint16(27022), + 29: uint16(27023), + 30: uint16(27024), + 31: uint16(27025), + 32: uint16(27026), + 33: uint16(27027), + 34: uint16(27030), + 35: uint16(27031), + 36: uint16(27033), + 37: uint16(27034), + 38: uint16(27037), + 39: uint16(27038), + 40: uint16(27039), + 41: uint16(27040), + 42: uint16(27041), + 43: uint16(27042), + 44: uint16(27043), + 45: uint16(27044), + 46: uint16(27045), + 47: uint16(27046), + 48: uint16(27049), + 49: uint16(27050), + 50: uint16(27052), + 51: uint16(27054), + 52: uint16(27055), + 53: uint16(27056), + 54: uint16(27058), + 55: uint16(27059), + 56: uint16(27061), + 57: uint16(27062), + 58: uint16(27064), + 59: uint16(27065), + 60: uint16(27066), + 61: uint16(27068), + 62: uint16(27069), + 63: uint16(27070), + 64: uint16(27071), + 65: uint16(27072), + 66: uint16(27074), + 67: uint16(27075), + 68: uint16(27076), + 69: uint16(27077), + 70: uint16(27078), + 71: uint16(27079), + 72: uint16(27080), + 73: uint16(27081), + 74: uint16(27083), + 75: uint16(27085), + 76: uint16(27087), + 77: uint16(27089), + 78: uint16(27090), + 79: uint16(27091), + 80: uint16(27093), + 81: uint16(27094), + 82: uint16(27095), + 83: uint16(27096), + 84: uint16(27097), + 85: uint16(27098), + 86: uint16(27100), + 87: uint16(27101), + 88: uint16(27102), + 89: uint16(27105), + 90: uint16(27106), + 91: uint16(27107), + 92: uint16(27108), + 93: uint16(27109), + 94: uint16(27110), + 95: uint16(27111), + 96: uint16(27112), + 97: uint16(27113), + 98: uint16(27114), + 99: uint16(27115), + 100: uint16(27116), + 101: uint16(27118), + 102: uint16(27119), + 103: uint16(27120), + 104: uint16(27121), + 105: uint16(27123), + 106: uint16(27124), + 107: uint16(27125), + 108: uint16(27126), + 109: uint16(27127), + 110: uint16(27128), + 111: uint16(27129), + 112: uint16(27130), + 113: uint16(27131), + 114: uint16(27132), + 115: uint16(27134), + 116: uint16(27136), + 117: uint16(27137), + 118: uint16(27138), + 119: uint16(27139), + 120: uint16(27140), + 121: uint16(27141), + 122: uint16(27142), + 123: uint16(27143), + 124: uint16(27144), + 125: uint16(27145), + 126: uint16(27147), + 127: uint16(27148), + 128: uint16(27149), + 129: uint16(27150), + 130: uint16(27151), + 131: uint16(27152), + 132: uint16(27153), + 133: uint16(27154), + 134: uint16(27155), + 135: uint16(27156), + 136: uint16(27157), + 137: uint16(27158), + 138: uint16(27161), + 139: uint16(27162), + 140: uint16(27163), + 141: uint16(27164), + 142: uint16(27165), + 143: uint16(27166), + 144: uint16(27168), + 145: uint16(27170), + 146: uint16(27171), + 147: uint16(27172), + 148: uint16(27173), + 149: uint16(27174), + 150: uint16(27175), + 151: uint16(27177), + 152: uint16(27179), + 153: uint16(27180), + 154: uint16(27181), + 155: uint16(27182), + 156: uint16(27184), + 157: uint16(27186), + 158: uint16(27187), + 159: uint16(27188), + 160: uint16(27190), + 161: uint16(27191), + 162: uint16(27192), + 163: uint16(27193), + 164: uint16(27194), + 165: uint16(27195), + 166: uint16(27196), + 167: uint16(27199), + 168: uint16(27200), + 169: uint16(27201), + 170: uint16(27202), + 171: uint16(27203), + 172: uint16(27205), + 173: uint16(27206), + 174: uint16(27208), + 175: uint16(27209), + 176: uint16(27210), + 177: uint16(27211), + 178: uint16(27212), + 179: uint16(27213), + 180: uint16(27214), + 181: uint16(27215), + 182: uint16(27217), + 183: uint16(27218), + 184: uint16(27219), + 185: uint16(27220), + 186: uint16(27221), + 187: uint16(27222), + 188: uint16(27223), + 189: uint16(27226), + }, + 24: { + 0: uint16(27228), + 1: uint16(27229), + 2: uint16(27230), + 3: uint16(27231), + 4: uint16(27232), + 5: uint16(27234), + 6: uint16(27235), + 7: uint16(27236), + 8: uint16(27238), + 9: uint16(27239), + 10: uint16(27240), + 11: uint16(27241), + 12: uint16(27242), + 13: uint16(27243), + 14: uint16(27244), + 15: uint16(27245), + 16: uint16(27246), + 17: uint16(27247), + 18: uint16(27248), + 19: uint16(27250), + 20: uint16(27251), + 21: uint16(27252), + 22: uint16(27253), + 23: uint16(27254), + 24: uint16(27255), + 25: uint16(27256), + 26: uint16(27258), + 27: uint16(27259), + 28: uint16(27261), + 29: uint16(27262), + 30: uint16(27263), + 31: uint16(27265), + 32: uint16(27266), + 33: uint16(27267), + 34: uint16(27269), + 35: uint16(27270), + 36: uint16(27271), + 37: uint16(27272), + 38: uint16(27273), + 39: uint16(27274), + 40: uint16(27275), + 41: uint16(27276), + 42: uint16(27277), + 43: uint16(27279), + 44: uint16(27282), + 45: uint16(27283), + 46: uint16(27284), + 47: uint16(27285), + 48: uint16(27286), + 49: uint16(27288), + 50: uint16(27289), + 51: uint16(27290), + 52: uint16(27291), + 53: uint16(27292), + 54: uint16(27293), + 55: uint16(27294), + 56: uint16(27295), + 57: uint16(27297), + 58: uint16(27298), + 59: uint16(27299), + 60: uint16(27300), + 61: uint16(27301), + 62: uint16(27302), + 63: uint16(27303), + 64: uint16(27304), + 65: uint16(27306), + 66: uint16(27309), + 67: uint16(27310), + 68: uint16(27311), + 69: uint16(27312), + 70: uint16(27313), + 71: uint16(27314), + 72: uint16(27315), + 73: uint16(27316), + 74: uint16(27317), + 75: uint16(27318), + 76: uint16(27319), + 77: uint16(27320), + 78: uint16(27321), + 79: uint16(27322), + 80: uint16(27323), + 81: uint16(27324), + 82: uint16(27325), + 83: uint16(27326), + 84: uint16(27327), + 85: uint16(27328), + 86: uint16(27329), + 87: uint16(27330), + 88: uint16(27331), + 89: uint16(27332), + 90: uint16(27333), + 91: uint16(27334), + 92: uint16(27335), + 93: uint16(27336), + 94: uint16(27337), + 95: uint16(27338), + 96: uint16(27339), + 97: uint16(27340), + 98: uint16(27341), + 99: uint16(27342), + 100: uint16(27343), + 101: uint16(27344), + 102: uint16(27345), + 103: uint16(27346), + 104: uint16(27347), + 105: uint16(27348), + 106: uint16(27349), + 107: uint16(27350), + 108: uint16(27351), + 109: uint16(27352), + 110: uint16(27353), + 111: uint16(27354), + 112: uint16(27355), + 113: uint16(27356), + 114: uint16(27357), + 115: uint16(27358), + 116: uint16(27359), + 117: uint16(27360), + 118: uint16(27361), + 119: uint16(27362), + 120: uint16(27363), + 121: uint16(27364), + 122: uint16(27365), + 123: uint16(27366), + 124: uint16(27367), + 125: uint16(27368), + 126: uint16(27369), + 127: uint16(27370), + 128: uint16(27371), + 129: uint16(27372), + 130: uint16(27373), + 131: uint16(27374), + 132: uint16(27375), + 133: uint16(27376), + 134: uint16(27377), + 135: uint16(27378), + 136: uint16(27379), + 137: uint16(27380), + 138: uint16(27381), + 139: uint16(27382), + 140: uint16(27383), + 141: uint16(27384), + 142: uint16(27385), + 143: uint16(27386), + 144: uint16(27387), + 145: uint16(27388), + 146: uint16(27389), + 147: uint16(27390), + 148: uint16(27391), + 149: uint16(27392), + 150: uint16(27393), + 151: uint16(27394), + 152: uint16(27395), + 153: uint16(27396), + 154: uint16(27397), + 155: uint16(27398), + 156: uint16(27399), + 157: uint16(27400), + 158: uint16(27401), + 159: uint16(27402), + 160: uint16(27403), + 161: uint16(27404), + 162: uint16(27405), + 163: uint16(27406), + 164: uint16(27407), + 165: uint16(27408), + 166: uint16(27409), + 167: uint16(27410), + 168: uint16(27411), + 169: uint16(27412), + 170: uint16(27413), + 171: uint16(27414), + 172: uint16(27415), + 173: uint16(27416), + 174: uint16(27417), + 175: uint16(27418), + 176: uint16(27419), + 177: uint16(27420), + 178: uint16(27421), + 179: uint16(27422), + 180: uint16(27423), + 181: uint16(27429), + 182: uint16(27430), + 183: uint16(27432), + 184: uint16(27433), + 185: uint16(27434), + 186: uint16(27435), + 187: uint16(27436), + 188: uint16(27437), + 189: uint16(27438), + }, + 25: { + 0: uint16(27439), + 1: uint16(27440), + 2: uint16(27441), + 3: uint16(27443), + 4: uint16(27444), + 5: uint16(27445), + 6: uint16(27446), + 7: uint16(27448), + 8: uint16(27451), + 9: uint16(27452), + 10: uint16(27453), + 11: uint16(27455), + 12: uint16(27456), + 13: uint16(27457), + 14: uint16(27458), + 15: uint16(27460), + 16: uint16(27461), + 17: uint16(27464), + 18: uint16(27466), + 19: uint16(27467), + 20: uint16(27469), + 21: uint16(27470), + 22: uint16(27471), + 23: uint16(27472), + 24: uint16(27473), + 25: uint16(27474), + 26: uint16(27475), + 27: uint16(27476), + 28: uint16(27477), + 29: uint16(27478), + 30: uint16(27479), + 31: uint16(27480), + 32: uint16(27482), + 33: uint16(27483), + 34: uint16(27484), + 35: uint16(27485), + 36: uint16(27486), + 37: uint16(27487), + 38: uint16(27488), + 39: uint16(27489), + 40: uint16(27496), + 41: uint16(27497), + 42: uint16(27499), + 43: uint16(27500), + 44: uint16(27501), + 45: uint16(27502), + 46: uint16(27503), + 47: uint16(27504), + 48: uint16(27505), + 49: uint16(27506), + 50: uint16(27507), + 51: uint16(27508), + 52: uint16(27509), + 53: uint16(27510), + 54: uint16(27511), + 55: uint16(27512), + 56: uint16(27514), + 57: uint16(27517), + 58: uint16(27518), + 59: uint16(27519), + 60: uint16(27520), + 61: uint16(27525), + 62: uint16(27528), + 63: uint16(27532), + 64: uint16(27534), + 65: uint16(27535), + 66: uint16(27536), + 67: uint16(27537), + 68: uint16(27540), + 69: uint16(27541), + 70: uint16(27543), + 71: uint16(27544), + 72: uint16(27545), + 73: uint16(27548), + 74: uint16(27549), + 75: uint16(27550), + 76: uint16(27551), + 77: uint16(27552), + 78: uint16(27554), + 79: uint16(27555), + 80: uint16(27556), + 81: uint16(27557), + 82: uint16(27558), + 83: uint16(27559), + 84: uint16(27560), + 85: uint16(27561), + 86: uint16(27563), + 87: uint16(27564), + 88: uint16(27565), + 89: uint16(27566), + 90: uint16(27567), + 91: uint16(27568), + 92: uint16(27569), + 93: uint16(27570), + 94: uint16(27574), + 95: uint16(27576), + 96: uint16(27577), + 97: uint16(27578), + 98: uint16(27579), + 99: uint16(27580), + 100: uint16(27581), + 101: uint16(27582), + 102: uint16(27584), + 103: uint16(27587), + 104: uint16(27588), + 105: uint16(27590), + 106: uint16(27591), + 107: uint16(27592), + 108: uint16(27593), + 109: uint16(27594), + 110: uint16(27596), + 111: uint16(27598), + 112: uint16(27600), + 113: uint16(27601), + 114: uint16(27608), + 115: uint16(27610), + 116: uint16(27612), + 117: uint16(27613), + 118: uint16(27614), + 119: uint16(27615), + 120: uint16(27616), + 121: uint16(27618), + 122: uint16(27619), + 123: uint16(27620), + 124: uint16(27621), + 125: uint16(27622), + 126: uint16(27623), + 127: uint16(27624), + 128: uint16(27625), + 129: uint16(27628), + 130: uint16(27629), + 131: uint16(27630), + 132: uint16(27632), + 133: uint16(27633), + 134: uint16(27634), + 135: uint16(27636), + 136: uint16(27638), + 137: uint16(27639), + 138: uint16(27640), + 139: uint16(27642), + 140: uint16(27643), + 141: uint16(27644), + 142: uint16(27646), + 143: uint16(27647), + 144: uint16(27648), + 145: uint16(27649), + 146: uint16(27650), + 147: uint16(27651), + 148: uint16(27652), + 149: uint16(27656), + 150: uint16(27657), + 151: uint16(27658), + 152: uint16(27659), + 153: uint16(27660), + 154: uint16(27662), + 155: uint16(27666), + 156: uint16(27671), + 157: uint16(27676), + 158: uint16(27677), + 159: uint16(27678), + 160: uint16(27680), + 161: uint16(27683), + 162: uint16(27685), + 163: uint16(27691), + 164: uint16(27692), + 165: uint16(27693), + 166: uint16(27697), + 167: uint16(27699), + 168: uint16(27702), + 169: uint16(27703), + 170: uint16(27705), + 171: uint16(27706), + 172: uint16(27707), + 173: uint16(27708), + 174: uint16(27710), + 175: uint16(27711), + 176: uint16(27715), + 177: uint16(27716), + 178: uint16(27717), + 179: uint16(27720), + 180: uint16(27723), + 181: uint16(27724), + 182: uint16(27725), + 183: uint16(27726), + 184: uint16(27727), + 185: uint16(27729), + 186: uint16(27730), + 187: uint16(27731), + 188: uint16(27734), + 189: uint16(27736), + }, + 26: { + 0: uint16(27737), + 1: uint16(27738), + 2: uint16(27746), + 3: uint16(27747), + 4: uint16(27749), + 5: uint16(27750), + 6: uint16(27751), + 7: uint16(27755), + 8: uint16(27756), + 9: uint16(27757), + 10: uint16(27758), + 11: uint16(27759), + 12: uint16(27761), + 13: uint16(27763), + 14: uint16(27765), + 15: uint16(27767), + 16: uint16(27768), + 17: uint16(27770), + 18: uint16(27771), + 19: uint16(27772), + 20: uint16(27775), + 21: uint16(27776), + 22: uint16(27780), + 23: uint16(27783), + 24: uint16(27786), + 25: uint16(27787), + 26: uint16(27789), + 27: uint16(27790), + 28: uint16(27793), + 29: uint16(27794), + 30: uint16(27797), + 31: uint16(27798), + 32: uint16(27799), + 33: uint16(27800), + 34: uint16(27802), + 35: uint16(27804), + 36: uint16(27805), + 37: uint16(27806), + 38: uint16(27808), + 39: uint16(27810), + 40: uint16(27816), + 41: uint16(27820), + 42: uint16(27823), + 43: uint16(27824), + 44: uint16(27828), + 45: uint16(27829), + 46: uint16(27830), + 47: uint16(27831), + 48: uint16(27834), + 49: uint16(27840), + 50: uint16(27841), + 51: uint16(27842), + 52: uint16(27843), + 53: uint16(27846), + 54: uint16(27847), + 55: uint16(27848), + 56: uint16(27851), + 57: uint16(27853), + 58: uint16(27854), + 59: uint16(27855), + 60: uint16(27857), + 61: uint16(27858), + 62: uint16(27864), + 63: uint16(27865), + 64: uint16(27866), + 65: uint16(27868), + 66: uint16(27869), + 67: uint16(27871), + 68: uint16(27876), + 69: uint16(27878), + 70: uint16(27879), + 71: uint16(27881), + 72: uint16(27884), + 73: uint16(27885), + 74: uint16(27890), + 75: uint16(27892), + 76: uint16(27897), + 77: uint16(27903), + 78: uint16(27904), + 79: uint16(27906), + 80: uint16(27907), + 81: uint16(27909), + 82: uint16(27910), + 83: uint16(27912), + 84: uint16(27913), + 85: uint16(27914), + 86: uint16(27917), + 87: uint16(27919), + 88: uint16(27920), + 89: uint16(27921), + 90: uint16(27923), + 91: uint16(27924), + 92: uint16(27925), + 93: uint16(27926), + 94: uint16(27928), + 95: uint16(27932), + 96: uint16(27933), + 97: uint16(27935), + 98: uint16(27936), + 99: uint16(27937), + 100: uint16(27938), + 101: uint16(27939), + 102: uint16(27940), + 103: uint16(27942), + 104: uint16(27944), + 105: uint16(27945), + 106: uint16(27948), + 107: uint16(27949), + 108: uint16(27951), + 109: uint16(27952), + 110: uint16(27956), + 111: uint16(27958), + 112: uint16(27959), + 113: uint16(27960), + 114: uint16(27962), + 115: uint16(27967), + 116: uint16(27968), + 117: uint16(27970), + 118: uint16(27972), + 119: uint16(27977), + 120: uint16(27980), + 121: uint16(27984), + 122: uint16(27989), + 123: uint16(27990), + 124: uint16(27991), + 125: uint16(27992), + 126: uint16(27995), + 127: uint16(27997), + 128: uint16(27999), + 129: uint16(28001), + 130: uint16(28002), + 131: uint16(28004), + 132: uint16(28005), + 133: uint16(28007), + 134: uint16(28008), + 135: uint16(28011), + 136: uint16(28012), + 137: uint16(28013), + 138: uint16(28016), + 139: uint16(28017), + 140: uint16(28018), + 141: uint16(28019), + 142: uint16(28021), + 143: uint16(28022), + 144: uint16(28025), + 145: uint16(28026), + 146: uint16(28027), + 147: uint16(28029), + 148: uint16(28030), + 149: uint16(28031), + 150: uint16(28032), + 151: uint16(28033), + 152: uint16(28035), + 153: uint16(28036), + 154: uint16(28038), + 155: uint16(28039), + 156: uint16(28042), + 157: uint16(28043), + 158: uint16(28045), + 159: uint16(28047), + 160: uint16(28048), + 161: uint16(28050), + 162: uint16(28054), + 163: uint16(28055), + 164: uint16(28056), + 165: uint16(28057), + 166: uint16(28058), + 167: uint16(28060), + 168: uint16(28066), + 169: uint16(28069), + 170: uint16(28076), + 171: uint16(28077), + 172: uint16(28080), + 173: uint16(28081), + 174: uint16(28083), + 175: uint16(28084), + 176: uint16(28086), + 177: uint16(28087), + 178: uint16(28089), + 179: uint16(28090), + 180: uint16(28091), + 181: uint16(28092), + 182: uint16(28093), + 183: uint16(28094), + 184: uint16(28097), + 185: uint16(28098), + 186: uint16(28099), + 187: uint16(28104), + 188: uint16(28105), + 189: uint16(28106), + }, + 27: { + 0: uint16(28109), + 1: uint16(28110), + 2: uint16(28111), + 3: uint16(28112), + 4: uint16(28114), + 5: uint16(28115), + 6: uint16(28116), + 7: uint16(28117), + 8: uint16(28119), + 9: uint16(28122), + 10: uint16(28123), + 11: uint16(28124), + 12: uint16(28127), + 13: uint16(28130), + 14: uint16(28131), + 15: uint16(28133), + 16: uint16(28135), + 17: uint16(28136), + 18: uint16(28137), + 19: uint16(28138), + 20: uint16(28141), + 21: uint16(28143), + 22: uint16(28144), + 23: uint16(28146), + 24: uint16(28148), + 25: uint16(28149), + 26: uint16(28150), + 27: uint16(28152), + 28: uint16(28154), + 29: uint16(28157), + 30: uint16(28158), + 31: uint16(28159), + 32: uint16(28160), + 33: uint16(28161), + 34: uint16(28162), + 35: uint16(28163), + 36: uint16(28164), + 37: uint16(28166), + 38: uint16(28167), + 39: uint16(28168), + 40: uint16(28169), + 41: uint16(28171), + 42: uint16(28175), + 43: uint16(28178), + 44: uint16(28179), + 45: uint16(28181), + 46: uint16(28184), + 47: uint16(28185), + 48: uint16(28187), + 49: uint16(28188), + 50: uint16(28190), + 51: uint16(28191), + 52: uint16(28194), + 53: uint16(28198), + 54: uint16(28199), + 55: uint16(28200), + 56: uint16(28202), + 57: uint16(28204), + 58: uint16(28206), + 59: uint16(28208), + 60: uint16(28209), + 61: uint16(28211), + 62: uint16(28213), + 63: uint16(28214), + 64: uint16(28215), + 65: uint16(28217), + 66: uint16(28219), + 67: uint16(28220), + 68: uint16(28221), + 69: uint16(28222), + 70: uint16(28223), + 71: uint16(28224), + 72: uint16(28225), + 73: uint16(28226), + 74: uint16(28229), + 75: uint16(28230), + 76: uint16(28231), + 77: uint16(28232), + 78: uint16(28233), + 79: uint16(28234), + 80: uint16(28235), + 81: uint16(28236), + 82: uint16(28239), + 83: uint16(28240), + 84: uint16(28241), + 85: uint16(28242), + 86: uint16(28245), + 87: uint16(28247), + 88: uint16(28249), + 89: uint16(28250), + 90: uint16(28252), + 91: uint16(28253), + 92: uint16(28254), + 93: uint16(28256), + 94: uint16(28257), + 95: uint16(28258), + 96: uint16(28259), + 97: uint16(28260), + 98: uint16(28261), + 99: uint16(28262), + 100: uint16(28263), + 101: uint16(28264), + 102: uint16(28265), + 103: uint16(28266), + 104: uint16(28268), + 105: uint16(28269), + 106: uint16(28271), + 107: uint16(28272), + 108: uint16(28273), + 109: uint16(28274), + 110: uint16(28275), + 111: uint16(28276), + 112: uint16(28277), + 113: uint16(28278), + 114: uint16(28279), + 115: uint16(28280), + 116: uint16(28281), + 117: uint16(28282), + 118: uint16(28283), + 119: uint16(28284), + 120: uint16(28285), + 121: uint16(28288), + 122: uint16(28289), + 123: uint16(28290), + 124: uint16(28292), + 125: uint16(28295), + 126: uint16(28296), + 127: uint16(28298), + 128: uint16(28299), + 129: uint16(28300), + 130: uint16(28301), + 131: uint16(28302), + 132: uint16(28305), + 133: uint16(28306), + 134: uint16(28307), + 135: uint16(28308), + 136: uint16(28309), + 137: uint16(28310), + 138: uint16(28311), + 139: uint16(28313), + 140: uint16(28314), + 141: uint16(28315), + 142: uint16(28317), + 143: uint16(28318), + 144: uint16(28320), + 145: uint16(28321), + 146: uint16(28323), + 147: uint16(28324), + 148: uint16(28326), + 149: uint16(28328), + 150: uint16(28329), + 151: uint16(28331), + 152: uint16(28332), + 153: uint16(28333), + 154: uint16(28334), + 155: uint16(28336), + 156: uint16(28339), + 157: uint16(28341), + 158: uint16(28344), + 159: uint16(28345), + 160: uint16(28348), + 161: uint16(28350), + 162: uint16(28351), + 163: uint16(28352), + 164: uint16(28355), + 165: uint16(28356), + 166: uint16(28357), + 167: uint16(28358), + 168: uint16(28360), + 169: uint16(28361), + 170: uint16(28362), + 171: uint16(28364), + 172: uint16(28365), + 173: uint16(28366), + 174: uint16(28368), + 175: uint16(28370), + 176: uint16(28374), + 177: uint16(28376), + 178: uint16(28377), + 179: uint16(28379), + 180: uint16(28380), + 181: uint16(28381), + 182: uint16(28387), + 183: uint16(28391), + 184: uint16(28394), + 185: uint16(28395), + 186: uint16(28396), + 187: uint16(28397), + 188: uint16(28398), + 189: uint16(28399), + }, + 28: { + 0: uint16(28400), + 1: uint16(28401), + 2: uint16(28402), + 3: uint16(28403), + 4: uint16(28405), + 5: uint16(28406), + 6: uint16(28407), + 7: uint16(28408), + 8: uint16(28410), + 9: uint16(28411), + 10: uint16(28412), + 11: uint16(28413), + 12: uint16(28414), + 13: uint16(28415), + 14: uint16(28416), + 15: uint16(28417), + 16: uint16(28419), + 17: uint16(28420), + 18: uint16(28421), + 19: uint16(28423), + 20: uint16(28424), + 21: uint16(28426), + 22: uint16(28427), + 23: uint16(28428), + 24: uint16(28429), + 25: uint16(28430), + 26: uint16(28432), + 27: uint16(28433), + 28: uint16(28434), + 29: uint16(28438), + 30: uint16(28439), + 31: uint16(28440), + 32: uint16(28441), + 33: uint16(28442), + 34: uint16(28443), + 35: uint16(28444), + 36: uint16(28445), + 37: uint16(28446), + 38: uint16(28447), + 39: uint16(28449), + 40: uint16(28450), + 41: uint16(28451), + 42: uint16(28453), + 43: uint16(28454), + 44: uint16(28455), + 45: uint16(28456), + 46: uint16(28460), + 47: uint16(28462), + 48: uint16(28464), + 49: uint16(28466), + 50: uint16(28468), + 51: uint16(28469), + 52: uint16(28471), + 53: uint16(28472), + 54: uint16(28473), + 55: uint16(28474), + 56: uint16(28475), + 57: uint16(28476), + 58: uint16(28477), + 59: uint16(28479), + 60: uint16(28480), + 61: uint16(28481), + 62: uint16(28482), + 63: uint16(28483), + 64: uint16(28484), + 65: uint16(28485), + 66: uint16(28488), + 67: uint16(28489), + 68: uint16(28490), + 69: uint16(28492), + 70: uint16(28494), + 71: uint16(28495), + 72: uint16(28496), + 73: uint16(28497), + 74: uint16(28498), + 75: uint16(28499), + 76: uint16(28500), + 77: uint16(28501), + 78: uint16(28502), + 79: uint16(28503), + 80: uint16(28505), + 81: uint16(28506), + 82: uint16(28507), + 83: uint16(28509), + 84: uint16(28511), + 85: uint16(28512), + 86: uint16(28513), + 87: uint16(28515), + 88: uint16(28516), + 89: uint16(28517), + 90: uint16(28519), + 91: uint16(28520), + 92: uint16(28521), + 93: uint16(28522), + 94: uint16(28523), + 95: uint16(28524), + 96: uint16(28527), + 97: uint16(28528), + 98: uint16(28529), + 99: uint16(28531), + 100: uint16(28533), + 101: uint16(28534), + 102: uint16(28535), + 103: uint16(28537), + 104: uint16(28539), + 105: uint16(28541), + 106: uint16(28542), + 107: uint16(28543), + 108: uint16(28544), + 109: uint16(28545), + 110: uint16(28546), + 111: uint16(28547), + 112: uint16(28549), + 113: uint16(28550), + 114: uint16(28551), + 115: uint16(28554), + 116: uint16(28555), + 117: uint16(28559), + 118: uint16(28560), + 119: uint16(28561), + 120: uint16(28562), + 121: uint16(28563), + 122: uint16(28564), + 123: uint16(28565), + 124: uint16(28566), + 125: uint16(28567), + 126: uint16(28568), + 127: uint16(28569), + 128: uint16(28570), + 129: uint16(28571), + 130: uint16(28573), + 131: uint16(28574), + 132: uint16(28575), + 133: uint16(28576), + 134: uint16(28578), + 135: uint16(28579), + 136: uint16(28580), + 137: uint16(28581), + 138: uint16(28582), + 139: uint16(28584), + 140: uint16(28585), + 141: uint16(28586), + 142: uint16(28587), + 143: uint16(28588), + 144: uint16(28589), + 145: uint16(28590), + 146: uint16(28591), + 147: uint16(28592), + 148: uint16(28593), + 149: uint16(28594), + 150: uint16(28596), + 151: uint16(28597), + 152: uint16(28599), + 153: uint16(28600), + 154: uint16(28602), + 155: uint16(28603), + 156: uint16(28604), + 157: uint16(28605), + 158: uint16(28606), + 159: uint16(28607), + 160: uint16(28609), + 161: uint16(28611), + 162: uint16(28612), + 163: uint16(28613), + 164: uint16(28614), + 165: uint16(28615), + 166: uint16(28616), + 167: uint16(28618), + 168: uint16(28619), + 169: uint16(28620), + 170: uint16(28621), + 171: uint16(28622), + 172: uint16(28623), + 173: uint16(28624), + 174: uint16(28627), + 175: uint16(28628), + 176: uint16(28629), + 177: uint16(28630), + 178: uint16(28631), + 179: uint16(28632), + 180: uint16(28633), + 181: uint16(28634), + 182: uint16(28635), + 183: uint16(28636), + 184: uint16(28637), + 185: uint16(28639), + 186: uint16(28642), + 187: uint16(28643), + 188: uint16(28644), + 189: uint16(28645), + }, + 29: { + 0: uint16(28646), + 1: uint16(28647), + 2: uint16(28648), + 3: uint16(28649), + 4: uint16(28650), + 5: uint16(28651), + 6: uint16(28652), + 7: uint16(28653), + 8: uint16(28656), + 9: uint16(28657), + 10: uint16(28658), + 11: uint16(28659), + 12: uint16(28660), + 13: uint16(28661), + 14: uint16(28662), + 15: uint16(28663), + 16: uint16(28664), + 17: uint16(28665), + 18: uint16(28666), + 19: uint16(28667), + 20: uint16(28668), + 21: uint16(28669), + 22: uint16(28670), + 23: uint16(28671), + 24: uint16(28672), + 25: uint16(28673), + 26: uint16(28674), + 27: uint16(28675), + 28: uint16(28676), + 29: uint16(28677), + 30: uint16(28678), + 31: uint16(28679), + 32: uint16(28680), + 33: uint16(28681), + 34: uint16(28682), + 35: uint16(28683), + 36: uint16(28684), + 37: uint16(28685), + 38: uint16(28686), + 39: uint16(28687), + 40: uint16(28688), + 41: uint16(28690), + 42: uint16(28691), + 43: uint16(28692), + 44: uint16(28693), + 45: uint16(28694), + 46: uint16(28695), + 47: uint16(28696), + 48: uint16(28697), + 49: uint16(28700), + 50: uint16(28701), + 51: uint16(28702), + 52: uint16(28703), + 53: uint16(28704), + 54: uint16(28705), + 55: uint16(28706), + 56: uint16(28708), + 57: uint16(28709), + 58: uint16(28710), + 59: uint16(28711), + 60: uint16(28712), + 61: uint16(28713), + 62: uint16(28714), + 63: uint16(28715), + 64: uint16(28716), + 65: uint16(28717), + 66: uint16(28718), + 67: uint16(28719), + 68: uint16(28720), + 69: uint16(28721), + 70: uint16(28722), + 71: uint16(28723), + 72: uint16(28724), + 73: uint16(28726), + 74: uint16(28727), + 75: uint16(28728), + 76: uint16(28730), + 77: uint16(28731), + 78: uint16(28732), + 79: uint16(28733), + 80: uint16(28734), + 81: uint16(28735), + 82: uint16(28736), + 83: uint16(28737), + 84: uint16(28738), + 85: uint16(28739), + 86: uint16(28740), + 87: uint16(28741), + 88: uint16(28742), + 89: uint16(28743), + 90: uint16(28744), + 91: uint16(28745), + 92: uint16(28746), + 93: uint16(28747), + 94: uint16(28749), + 95: uint16(28750), + 96: uint16(28752), + 97: uint16(28753), + 98: uint16(28754), + 99: uint16(28755), + 100: uint16(28756), + 101: uint16(28757), + 102: uint16(28758), + 103: uint16(28759), + 104: uint16(28760), + 105: uint16(28761), + 106: uint16(28762), + 107: uint16(28763), + 108: uint16(28764), + 109: uint16(28765), + 110: uint16(28767), + 111: uint16(28768), + 112: uint16(28769), + 113: uint16(28770), + 114: uint16(28771), + 115: uint16(28772), + 116: uint16(28773), + 117: uint16(28774), + 118: uint16(28775), + 119: uint16(28776), + 120: uint16(28777), + 121: uint16(28778), + 122: uint16(28782), + 123: uint16(28785), + 124: uint16(28786), + 125: uint16(28787), + 126: uint16(28788), + 127: uint16(28791), + 128: uint16(28793), + 129: uint16(28794), + 130: uint16(28795), + 131: uint16(28797), + 132: uint16(28801), + 133: uint16(28802), + 134: uint16(28803), + 135: uint16(28804), + 136: uint16(28806), + 137: uint16(28807), + 138: uint16(28808), + 139: uint16(28811), + 140: uint16(28812), + 141: uint16(28813), + 142: uint16(28815), + 143: uint16(28816), + 144: uint16(28817), + 145: uint16(28819), + 146: uint16(28823), + 147: uint16(28824), + 148: uint16(28826), + 149: uint16(28827), + 150: uint16(28830), + 151: uint16(28831), + 152: uint16(28832), + 153: uint16(28833), + 154: uint16(28834), + 155: uint16(28835), + 156: uint16(28836), + 157: uint16(28837), + 158: uint16(28838), + 159: uint16(28839), + 160: uint16(28840), + 161: uint16(28841), + 162: uint16(28842), + 163: uint16(28848), + 164: uint16(28850), + 165: uint16(28852), + 166: uint16(28853), + 167: uint16(28854), + 168: uint16(28858), + 169: uint16(28862), + 170: uint16(28863), + 171: uint16(28868), + 172: uint16(28869), + 173: uint16(28870), + 174: uint16(28871), + 175: uint16(28873), + 176: uint16(28875), + 177: uint16(28876), + 178: uint16(28877), + 179: uint16(28878), + 180: uint16(28879), + 181: uint16(28880), + 182: uint16(28881), + 183: uint16(28882), + 184: uint16(28883), + 185: uint16(28884), + 186: uint16(28885), + 187: uint16(28886), + 188: uint16(28887), + 189: uint16(28890), + }, + 30: { + 0: uint16(28892), + 1: uint16(28893), + 2: uint16(28894), + 3: uint16(28896), + 4: uint16(28897), + 5: uint16(28898), + 6: uint16(28899), + 7: uint16(28901), + 8: uint16(28906), + 9: uint16(28910), + 10: uint16(28912), + 11: uint16(28913), + 12: uint16(28914), + 13: uint16(28915), + 14: uint16(28916), + 15: uint16(28917), + 16: uint16(28918), + 17: uint16(28920), + 18: uint16(28922), + 19: uint16(28923), + 20: uint16(28924), + 21: uint16(28926), + 22: uint16(28927), + 23: uint16(28928), + 24: uint16(28929), + 25: uint16(28930), + 26: uint16(28931), + 27: uint16(28932), + 28: uint16(28933), + 29: uint16(28934), + 30: uint16(28935), + 31: uint16(28936), + 32: uint16(28939), + 33: uint16(28940), + 34: uint16(28941), + 35: uint16(28942), + 36: uint16(28943), + 37: uint16(28945), + 38: uint16(28946), + 39: uint16(28948), + 40: uint16(28951), + 41: uint16(28955), + 42: uint16(28956), + 43: uint16(28957), + 44: uint16(28958), + 45: uint16(28959), + 46: uint16(28960), + 47: uint16(28961), + 48: uint16(28962), + 49: uint16(28963), + 50: uint16(28964), + 51: uint16(28965), + 52: uint16(28967), + 53: uint16(28968), + 54: uint16(28969), + 55: uint16(28970), + 56: uint16(28971), + 57: uint16(28972), + 58: uint16(28973), + 59: uint16(28974), + 60: uint16(28978), + 61: uint16(28979), + 62: uint16(28980), + 63: uint16(28981), + 64: uint16(28983), + 65: uint16(28984), + 66: uint16(28985), + 67: uint16(28986), + 68: uint16(28987), + 69: uint16(28988), + 70: uint16(28989), + 71: uint16(28990), + 72: uint16(28991), + 73: uint16(28992), + 74: uint16(28993), + 75: uint16(28994), + 76: uint16(28995), + 77: uint16(28996), + 78: uint16(28998), + 79: uint16(28999), + 80: uint16(29000), + 81: uint16(29001), + 82: uint16(29003), + 83: uint16(29005), + 84: uint16(29007), + 85: uint16(29008), + 86: uint16(29009), + 87: uint16(29010), + 88: uint16(29011), + 89: uint16(29012), + 90: uint16(29013), + 91: uint16(29014), + 92: uint16(29015), + 93: uint16(29016), + 94: uint16(29017), + 95: uint16(29018), + 96: uint16(29019), + 97: uint16(29021), + 98: uint16(29023), + 99: uint16(29024), + 100: uint16(29025), + 101: uint16(29026), + 102: uint16(29027), + 103: uint16(29029), + 104: uint16(29033), + 105: uint16(29034), + 106: uint16(29035), + 107: uint16(29036), + 108: uint16(29037), + 109: uint16(29039), + 110: uint16(29040), + 111: uint16(29041), + 112: uint16(29044), + 113: uint16(29045), + 114: uint16(29046), + 115: uint16(29047), + 116: uint16(29049), + 117: uint16(29051), + 118: uint16(29052), + 119: uint16(29054), + 120: uint16(29055), + 121: uint16(29056), + 122: uint16(29057), + 123: uint16(29058), + 124: uint16(29059), + 125: uint16(29061), + 126: uint16(29062), + 127: uint16(29063), + 128: uint16(29064), + 129: uint16(29065), + 130: uint16(29067), + 131: uint16(29068), + 132: uint16(29069), + 133: uint16(29070), + 134: uint16(29072), + 135: uint16(29073), + 136: uint16(29074), + 137: uint16(29075), + 138: uint16(29077), + 139: uint16(29078), + 140: uint16(29079), + 141: uint16(29082), + 142: uint16(29083), + 143: uint16(29084), + 144: uint16(29085), + 145: uint16(29086), + 146: uint16(29089), + 147: uint16(29090), + 148: uint16(29091), + 149: uint16(29092), + 150: uint16(29093), + 151: uint16(29094), + 152: uint16(29095), + 153: uint16(29097), + 154: uint16(29098), + 155: uint16(29099), + 156: uint16(29101), + 157: uint16(29102), + 158: uint16(29103), + 159: uint16(29104), + 160: uint16(29105), + 161: uint16(29106), + 162: uint16(29108), + 163: uint16(29110), + 164: uint16(29111), + 165: uint16(29112), + 166: uint16(29114), + 167: uint16(29115), + 168: uint16(29116), + 169: uint16(29117), + 170: uint16(29118), + 171: uint16(29119), + 172: uint16(29120), + 173: uint16(29121), + 174: uint16(29122), + 175: uint16(29124), + 176: uint16(29125), + 177: uint16(29126), + 178: uint16(29127), + 179: uint16(29128), + 180: uint16(29129), + 181: uint16(29130), + 182: uint16(29131), + 183: uint16(29132), + 184: uint16(29133), + 185: uint16(29135), + 186: uint16(29136), + 187: uint16(29137), + 188: uint16(29138), + 189: uint16(29139), + }, + 31: { + 0: uint16(29142), + 1: uint16(29143), + 2: uint16(29144), + 3: uint16(29145), + 4: uint16(29146), + 5: uint16(29147), + 6: uint16(29148), + 7: uint16(29149), + 8: uint16(29150), + 9: uint16(29151), + 10: uint16(29153), + 11: uint16(29154), + 12: uint16(29155), + 13: uint16(29156), + 14: uint16(29158), + 15: uint16(29160), + 16: uint16(29161), + 17: uint16(29162), + 18: uint16(29163), + 19: uint16(29164), + 20: uint16(29165), + 21: uint16(29167), + 22: uint16(29168), + 23: uint16(29169), + 24: uint16(29170), + 25: uint16(29171), + 26: uint16(29172), + 27: uint16(29173), + 28: uint16(29174), + 29: uint16(29175), + 30: uint16(29176), + 31: uint16(29178), + 32: uint16(29179), + 33: uint16(29180), + 34: uint16(29181), + 35: uint16(29182), + 36: uint16(29183), + 37: uint16(29184), + 38: uint16(29185), + 39: uint16(29186), + 40: uint16(29187), + 41: uint16(29188), + 42: uint16(29189), + 43: uint16(29191), + 44: uint16(29192), + 45: uint16(29193), + 46: uint16(29194), + 47: uint16(29195), + 48: uint16(29196), + 49: uint16(29197), + 50: uint16(29198), + 51: uint16(29199), + 52: uint16(29200), + 53: uint16(29201), + 54: uint16(29202), + 55: uint16(29203), + 56: uint16(29204), + 57: uint16(29205), + 58: uint16(29206), + 59: uint16(29207), + 60: uint16(29208), + 61: uint16(29209), + 62: uint16(29210), + 63: uint16(29211), + 64: uint16(29212), + 65: uint16(29214), + 66: uint16(29215), + 67: uint16(29216), + 68: uint16(29217), + 69: uint16(29218), + 70: uint16(29219), + 71: uint16(29220), + 72: uint16(29221), + 73: uint16(29222), + 74: uint16(29223), + 75: uint16(29225), + 76: uint16(29227), + 77: uint16(29229), + 78: uint16(29230), + 79: uint16(29231), + 80: uint16(29234), + 81: uint16(29235), + 82: uint16(29236), + 83: uint16(29242), + 84: uint16(29244), + 85: uint16(29246), + 86: uint16(29248), + 87: uint16(29249), + 88: uint16(29250), + 89: uint16(29251), + 90: uint16(29252), + 91: uint16(29253), + 92: uint16(29254), + 93: uint16(29257), + 94: uint16(29258), + 95: uint16(29259), + 96: uint16(29262), + 97: uint16(29263), + 98: uint16(29264), + 99: uint16(29265), + 100: uint16(29267), + 101: uint16(29268), + 102: uint16(29269), + 103: uint16(29271), + 104: uint16(29272), + 105: uint16(29274), + 106: uint16(29276), + 107: uint16(29278), + 108: uint16(29280), + 109: uint16(29283), + 110: uint16(29284), + 111: uint16(29285), + 112: uint16(29288), + 113: uint16(29290), + 114: uint16(29291), + 115: uint16(29292), + 116: uint16(29293), + 117: uint16(29296), + 118: uint16(29297), + 119: uint16(29299), + 120: uint16(29300), + 121: uint16(29302), + 122: uint16(29303), + 123: uint16(29304), + 124: uint16(29307), + 125: uint16(29308), + 126: uint16(29309), + 127: uint16(29314), + 128: uint16(29315), + 129: uint16(29317), + 130: uint16(29318), + 131: uint16(29319), + 132: uint16(29320), + 133: uint16(29321), + 134: uint16(29324), + 135: uint16(29326), + 136: uint16(29328), + 137: uint16(29329), + 138: uint16(29331), + 139: uint16(29332), + 140: uint16(29333), + 141: uint16(29334), + 142: uint16(29335), + 143: uint16(29336), + 144: uint16(29337), + 145: uint16(29338), + 146: uint16(29339), + 147: uint16(29340), + 148: uint16(29341), + 149: uint16(29342), + 150: uint16(29344), + 151: uint16(29345), + 152: uint16(29346), + 153: uint16(29347), + 154: uint16(29348), + 155: uint16(29349), + 156: uint16(29350), + 157: uint16(29351), + 158: uint16(29352), + 159: uint16(29353), + 160: uint16(29354), + 161: uint16(29355), + 162: uint16(29358), + 163: uint16(29361), + 164: uint16(29362), + 165: uint16(29363), + 166: uint16(29365), + 167: uint16(29370), + 168: uint16(29371), + 169: uint16(29372), + 170: uint16(29373), + 171: uint16(29374), + 172: uint16(29375), + 173: uint16(29376), + 174: uint16(29381), + 175: uint16(29382), + 176: uint16(29383), + 177: uint16(29385), + 178: uint16(29386), + 179: uint16(29387), + 180: uint16(29388), + 181: uint16(29391), + 182: uint16(29393), + 183: uint16(29395), + 184: uint16(29396), + 185: uint16(29397), + 186: uint16(29398), + 187: uint16(29400), + 188: uint16(29402), + 189: uint16(29403), + }, + 32: { + 0: uint16(58566), + 1: uint16(58567), + 2: uint16(58568), + 3: uint16(58569), + 4: uint16(58570), + 5: uint16(58571), + 6: uint16(58572), + 7: uint16(58573), + 8: uint16(58574), + 9: uint16(58575), + 10: uint16(58576), + 11: uint16(58577), + 12: uint16(58578), + 13: uint16(58579), + 14: uint16(58580), + 15: uint16(58581), + 16: uint16(58582), + 17: uint16(58583), + 18: uint16(58584), + 19: uint16(58585), + 20: uint16(58586), + 21: uint16(58587), + 22: uint16(58588), + 23: uint16(58589), + 24: uint16(58590), + 25: uint16(58591), + 26: uint16(58592), + 27: uint16(58593), + 28: uint16(58594), + 29: uint16(58595), + 30: uint16(58596), + 31: uint16(58597), + 32: uint16(58598), + 33: uint16(58599), + 34: uint16(58600), + 35: uint16(58601), + 36: uint16(58602), + 37: uint16(58603), + 38: uint16(58604), + 39: uint16(58605), + 40: uint16(58606), + 41: uint16(58607), + 42: uint16(58608), + 43: uint16(58609), + 44: uint16(58610), + 45: uint16(58611), + 46: uint16(58612), + 47: uint16(58613), + 48: uint16(58614), + 49: uint16(58615), + 50: uint16(58616), + 51: uint16(58617), + 52: uint16(58618), + 53: uint16(58619), + 54: uint16(58620), + 55: uint16(58621), + 56: uint16(58622), + 57: uint16(58623), + 58: uint16(58624), + 59: uint16(58625), + 60: uint16(58626), + 61: uint16(58627), + 62: uint16(58628), + 63: uint16(58629), + 64: uint16(58630), + 65: uint16(58631), + 66: uint16(58632), + 67: uint16(58633), + 68: uint16(58634), + 69: uint16(58635), + 70: uint16(58636), + 71: uint16(58637), + 72: uint16(58638), + 73: uint16(58639), + 74: uint16(58640), + 75: uint16(58641), + 76: uint16(58642), + 77: uint16(58643), + 78: uint16(58644), + 79: uint16(58645), + 80: uint16(58646), + 81: uint16(58647), + 82: uint16(58648), + 83: uint16(58649), + 84: uint16(58650), + 85: uint16(58651), + 86: uint16(58652), + 87: uint16(58653), + 88: uint16(58654), + 89: uint16(58655), + 90: uint16(58656), + 91: uint16(58657), + 92: uint16(58658), + 93: uint16(58659), + 94: uint16(58660), + 95: uint16(58661), + 96: uint16(12288), + 97: uint16(12289), + 98: uint16(12290), + 99: uint16(183), + 100: uint16(713), + 101: uint16(711), + 102: uint16(168), + 103: uint16(12291), + 104: uint16(12293), + 105: uint16(8212), + 106: uint16(65374), + 107: uint16(8214), + 108: uint16(8230), + 109: uint16(8216), + 110: uint16(8217), + 111: uint16(8220), + 112: uint16(8221), + 113: uint16(12308), + 114: uint16(12309), + 115: uint16(12296), + 116: uint16(12297), + 117: uint16(12298), + 118: uint16(12299), + 119: uint16(12300), + 120: uint16(12301), + 121: uint16(12302), + 122: uint16(12303), + 123: uint16(12310), + 124: uint16(12311), + 125: uint16(12304), + 126: uint16(12305), + 127: uint16(177), + 128: uint16(215), + 129: uint16(247), + 130: uint16(8758), + 131: uint16(8743), + 132: uint16(8744), + 133: uint16(8721), + 134: uint16(8719), + 135: uint16(8746), + 136: uint16(8745), + 137: uint16(8712), + 138: uint16(8759), + 139: uint16(8730), + 140: uint16(8869), + 141: uint16(8741), + 142: uint16(8736), + 143: uint16(8978), + 144: uint16(8857), + 145: uint16(8747), + 146: uint16(8750), + 147: uint16(8801), + 148: uint16(8780), + 149: uint16(8776), + 150: uint16(8765), + 151: uint16(8733), + 152: uint16(8800), + 153: uint16(8814), + 154: uint16(8815), + 155: uint16(8804), + 156: uint16(8805), + 157: uint16(8734), + 158: uint16(8757), + 159: uint16(8756), + 160: uint16(9794), + 161: uint16(9792), + 162: uint16(176), + 163: uint16(8242), + 164: uint16(8243), + 165: uint16(8451), + 166: uint16(65284), + 167: uint16(164), + 168: uint16(65504), + 169: uint16(65505), + 170: uint16(8240), + 171: uint16(167), + 172: uint16(8470), + 173: uint16(9734), + 174: uint16(9733), + 175: uint16(9675), + 176: uint16(9679), + 177: uint16(9678), + 178: uint16(9671), + 179: uint16(9670), + 180: uint16(9633), + 181: uint16(9632), + 182: uint16(9651), + 183: uint16(9650), + 184: uint16(8251), + 185: uint16(8594), + 186: uint16(8592), + 187: uint16(8593), + 188: uint16(8595), + 189: uint16(12307), + }, + 33: { + 0: uint16(58662), + 1: uint16(58663), + 2: uint16(58664), + 3: uint16(58665), + 4: uint16(58666), + 5: uint16(58667), + 6: uint16(58668), + 7: uint16(58669), + 8: uint16(58670), + 9: uint16(58671), + 10: uint16(58672), + 11: uint16(58673), + 12: uint16(58674), + 13: uint16(58675), + 14: uint16(58676), + 15: uint16(58677), + 16: uint16(58678), + 17: uint16(58679), + 18: uint16(58680), + 19: uint16(58681), + 20: uint16(58682), + 21: uint16(58683), + 22: uint16(58684), + 23: uint16(58685), + 24: uint16(58686), + 25: uint16(58687), + 26: uint16(58688), + 27: uint16(58689), + 28: uint16(58690), + 29: uint16(58691), + 30: uint16(58692), + 31: uint16(58693), + 32: uint16(58694), + 33: uint16(58695), + 34: uint16(58696), + 35: uint16(58697), + 36: uint16(58698), + 37: uint16(58699), + 38: uint16(58700), + 39: uint16(58701), + 40: uint16(58702), + 41: uint16(58703), + 42: uint16(58704), + 43: uint16(58705), + 44: uint16(58706), + 45: uint16(58707), + 46: uint16(58708), + 47: uint16(58709), + 48: uint16(58710), + 49: uint16(58711), + 50: uint16(58712), + 51: uint16(58713), + 52: uint16(58714), + 53: uint16(58715), + 54: uint16(58716), + 55: uint16(58717), + 56: uint16(58718), + 57: uint16(58719), + 58: uint16(58720), + 59: uint16(58721), + 60: uint16(58722), + 61: uint16(58723), + 62: uint16(58724), + 63: uint16(58725), + 64: uint16(58726), + 65: uint16(58727), + 66: uint16(58728), + 67: uint16(58729), + 68: uint16(58730), + 69: uint16(58731), + 70: uint16(58732), + 71: uint16(58733), + 72: uint16(58734), + 73: uint16(58735), + 74: uint16(58736), + 75: uint16(58737), + 76: uint16(58738), + 77: uint16(58739), + 78: uint16(58740), + 79: uint16(58741), + 80: uint16(58742), + 81: uint16(58743), + 82: uint16(58744), + 83: uint16(58745), + 84: uint16(58746), + 85: uint16(58747), + 86: uint16(58748), + 87: uint16(58749), + 88: uint16(58750), + 89: uint16(58751), + 90: uint16(58752), + 91: uint16(58753), + 92: uint16(58754), + 93: uint16(58755), + 94: uint16(58756), + 95: uint16(58757), + 96: uint16(8560), + 97: uint16(8561), + 98: uint16(8562), + 99: uint16(8563), + 100: uint16(8564), + 101: uint16(8565), + 102: uint16(8566), + 103: uint16(8567), + 104: uint16(8568), + 105: uint16(8569), + 106: uint16(59238), + 107: uint16(59239), + 108: uint16(59240), + 109: uint16(59241), + 110: uint16(59242), + 111: uint16(59243), + 112: uint16(9352), + 113: uint16(9353), + 114: uint16(9354), + 115: uint16(9355), + 116: uint16(9356), + 117: uint16(9357), + 118: uint16(9358), + 119: uint16(9359), + 120: uint16(9360), + 121: uint16(9361), + 122: uint16(9362), + 123: uint16(9363), + 124: uint16(9364), + 125: uint16(9365), + 126: uint16(9366), + 127: uint16(9367), + 128: uint16(9368), + 129: uint16(9369), + 130: uint16(9370), + 131: uint16(9371), + 132: uint16(9332), + 133: uint16(9333), + 134: uint16(9334), + 135: uint16(9335), + 136: uint16(9336), + 137: uint16(9337), + 138: uint16(9338), + 139: uint16(9339), + 140: uint16(9340), + 141: uint16(9341), + 142: uint16(9342), + 143: uint16(9343), + 144: uint16(9344), + 145: uint16(9345), + 146: uint16(9346), + 147: uint16(9347), + 148: uint16(9348), + 149: uint16(9349), + 150: uint16(9350), + 151: uint16(9351), + 152: uint16(9312), + 153: uint16(9313), + 154: uint16(9314), + 155: uint16(9315), + 156: uint16(9316), + 157: uint16(9317), + 158: uint16(9318), + 159: uint16(9319), + 160: uint16(9320), + 161: uint16(9321), + 162: uint16(8364), + 163: uint16(59245), + 164: uint16(12832), + 165: uint16(12833), + 166: uint16(12834), + 167: uint16(12835), + 168: uint16(12836), + 169: uint16(12837), + 170: uint16(12838), + 171: uint16(12839), + 172: uint16(12840), + 173: uint16(12841), + 174: uint16(59246), + 175: uint16(59247), + 176: uint16(8544), + 177: uint16(8545), + 178: uint16(8546), + 179: uint16(8547), + 180: uint16(8548), + 181: uint16(8549), + 182: uint16(8550), + 183: uint16(8551), + 184: uint16(8552), + 185: uint16(8553), + 186: uint16(8554), + 187: uint16(8555), + 188: uint16(59248), + 189: uint16(59249), + }, + 34: { + 0: uint16(58758), + 1: uint16(58759), + 2: uint16(58760), + 3: uint16(58761), + 4: uint16(58762), + 5: uint16(58763), + 6: uint16(58764), + 7: uint16(58765), + 8: uint16(58766), + 9: uint16(58767), + 10: uint16(58768), + 11: uint16(58769), + 12: uint16(58770), + 13: uint16(58771), + 14: uint16(58772), + 15: uint16(58773), + 16: uint16(58774), + 17: uint16(58775), + 18: uint16(58776), + 19: uint16(58777), + 20: uint16(58778), + 21: uint16(58779), + 22: uint16(58780), + 23: uint16(58781), + 24: uint16(58782), + 25: uint16(58783), + 26: uint16(58784), + 27: uint16(58785), + 28: uint16(58786), + 29: uint16(58787), + 30: uint16(58788), + 31: uint16(58789), + 32: uint16(58790), + 33: uint16(58791), + 34: uint16(58792), + 35: uint16(58793), + 36: uint16(58794), + 37: uint16(58795), + 38: uint16(58796), + 39: uint16(58797), + 40: uint16(58798), + 41: uint16(58799), + 42: uint16(58800), + 43: uint16(58801), + 44: uint16(58802), + 45: uint16(58803), + 46: uint16(58804), + 47: uint16(58805), + 48: uint16(58806), + 49: uint16(58807), + 50: uint16(58808), + 51: uint16(58809), + 52: uint16(58810), + 53: uint16(58811), + 54: uint16(58812), + 55: uint16(58813), + 56: uint16(58814), + 57: uint16(58815), + 58: uint16(58816), + 59: uint16(58817), + 60: uint16(58818), + 61: uint16(58819), + 62: uint16(58820), + 63: uint16(58821), + 64: uint16(58822), + 65: uint16(58823), + 66: uint16(58824), + 67: uint16(58825), + 68: uint16(58826), + 69: uint16(58827), + 70: uint16(58828), + 71: uint16(58829), + 72: uint16(58830), + 73: uint16(58831), + 74: uint16(58832), + 75: uint16(58833), + 76: uint16(58834), + 77: uint16(58835), + 78: uint16(58836), + 79: uint16(58837), + 80: uint16(58838), + 81: uint16(58839), + 82: uint16(58840), + 83: uint16(58841), + 84: uint16(58842), + 85: uint16(58843), + 86: uint16(58844), + 87: uint16(58845), + 88: uint16(58846), + 89: uint16(58847), + 90: uint16(58848), + 91: uint16(58849), + 92: uint16(58850), + 93: uint16(58851), + 94: uint16(58852), + 95: uint16(58853), + 96: uint16(65281), + 97: uint16(65282), + 98: uint16(65283), + 99: uint16(65509), + 100: uint16(65285), + 101: uint16(65286), + 102: uint16(65287), + 103: uint16(65288), + 104: uint16(65289), + 105: uint16(65290), + 106: uint16(65291), + 107: uint16(65292), + 108: uint16(65293), + 109: uint16(65294), + 110: uint16(65295), + 111: uint16(65296), + 112: uint16(65297), + 113: uint16(65298), + 114: uint16(65299), + 115: uint16(65300), + 116: uint16(65301), + 117: uint16(65302), + 118: uint16(65303), + 119: uint16(65304), + 120: uint16(65305), + 121: uint16(65306), + 122: uint16(65307), + 123: uint16(65308), + 124: uint16(65309), + 125: uint16(65310), + 126: uint16(65311), + 127: uint16(65312), + 128: uint16(65313), + 129: uint16(65314), + 130: uint16(65315), + 131: uint16(65316), + 132: uint16(65317), + 133: uint16(65318), + 134: uint16(65319), + 135: uint16(65320), + 136: uint16(65321), + 137: uint16(65322), + 138: uint16(65323), + 139: uint16(65324), + 140: uint16(65325), + 141: uint16(65326), + 142: uint16(65327), + 143: uint16(65328), + 144: uint16(65329), + 145: uint16(65330), + 146: uint16(65331), + 147: uint16(65332), + 148: uint16(65333), + 149: uint16(65334), + 150: uint16(65335), + 151: uint16(65336), + 152: uint16(65337), + 153: uint16(65338), + 154: uint16(65339), + 155: uint16(65340), + 156: uint16(65341), + 157: uint16(65342), + 158: uint16(65343), + 159: uint16(65344), + 160: uint16(65345), + 161: uint16(65346), + 162: uint16(65347), + 163: uint16(65348), + 164: uint16(65349), + 165: uint16(65350), + 166: uint16(65351), + 167: uint16(65352), + 168: uint16(65353), + 169: uint16(65354), + 170: uint16(65355), + 171: uint16(65356), + 172: uint16(65357), + 173: uint16(65358), + 174: uint16(65359), + 175: uint16(65360), + 176: uint16(65361), + 177: uint16(65362), + 178: uint16(65363), + 179: uint16(65364), + 180: uint16(65365), + 181: uint16(65366), + 182: uint16(65367), + 183: uint16(65368), + 184: uint16(65369), + 185: uint16(65370), + 186: uint16(65371), + 187: uint16(65372), + 188: uint16(65373), + 189: uint16(65507), + }, + 35: { + 0: uint16(58854), + 1: uint16(58855), + 2: uint16(58856), + 3: uint16(58857), + 4: uint16(58858), + 5: uint16(58859), + 6: uint16(58860), + 7: uint16(58861), + 8: uint16(58862), + 9: uint16(58863), + 10: uint16(58864), + 11: uint16(58865), + 12: uint16(58866), + 13: uint16(58867), + 14: uint16(58868), + 15: uint16(58869), + 16: uint16(58870), + 17: uint16(58871), + 18: uint16(58872), + 19: uint16(58873), + 20: uint16(58874), + 21: uint16(58875), + 22: uint16(58876), + 23: uint16(58877), + 24: uint16(58878), + 25: uint16(58879), + 26: uint16(58880), + 27: uint16(58881), + 28: uint16(58882), + 29: uint16(58883), + 30: uint16(58884), + 31: uint16(58885), + 32: uint16(58886), + 33: uint16(58887), + 34: uint16(58888), + 35: uint16(58889), + 36: uint16(58890), + 37: uint16(58891), + 38: uint16(58892), + 39: uint16(58893), + 40: uint16(58894), + 41: uint16(58895), + 42: uint16(58896), + 43: uint16(58897), + 44: uint16(58898), + 45: uint16(58899), + 46: uint16(58900), + 47: uint16(58901), + 48: uint16(58902), + 49: uint16(58903), + 50: uint16(58904), + 51: uint16(58905), + 52: uint16(58906), + 53: uint16(58907), + 54: uint16(58908), + 55: uint16(58909), + 56: uint16(58910), + 57: uint16(58911), + 58: uint16(58912), + 59: uint16(58913), + 60: uint16(58914), + 61: uint16(58915), + 62: uint16(58916), + 63: uint16(58917), + 64: uint16(58918), + 65: uint16(58919), + 66: uint16(58920), + 67: uint16(58921), + 68: uint16(58922), + 69: uint16(58923), + 70: uint16(58924), + 71: uint16(58925), + 72: uint16(58926), + 73: uint16(58927), + 74: uint16(58928), + 75: uint16(58929), + 76: uint16(58930), + 77: uint16(58931), + 78: uint16(58932), + 79: uint16(58933), + 80: uint16(58934), + 81: uint16(58935), + 82: uint16(58936), + 83: uint16(58937), + 84: uint16(58938), + 85: uint16(58939), + 86: uint16(58940), + 87: uint16(58941), + 88: uint16(58942), + 89: uint16(58943), + 90: uint16(58944), + 91: uint16(58945), + 92: uint16(58946), + 93: uint16(58947), + 94: uint16(58948), + 95: uint16(58949), + 96: uint16(12353), + 97: uint16(12354), + 98: uint16(12355), + 99: uint16(12356), + 100: uint16(12357), + 101: uint16(12358), + 102: uint16(12359), + 103: uint16(12360), + 104: uint16(12361), + 105: uint16(12362), + 106: uint16(12363), + 107: uint16(12364), + 108: uint16(12365), + 109: uint16(12366), + 110: uint16(12367), + 111: uint16(12368), + 112: uint16(12369), + 113: uint16(12370), + 114: uint16(12371), + 115: uint16(12372), + 116: uint16(12373), + 117: uint16(12374), + 118: uint16(12375), + 119: uint16(12376), + 120: uint16(12377), + 121: uint16(12378), + 122: uint16(12379), + 123: uint16(12380), + 124: uint16(12381), + 125: uint16(12382), + 126: uint16(12383), + 127: uint16(12384), + 128: uint16(12385), + 129: uint16(12386), + 130: uint16(12387), + 131: uint16(12388), + 132: uint16(12389), + 133: uint16(12390), + 134: uint16(12391), + 135: uint16(12392), + 136: uint16(12393), + 137: uint16(12394), + 138: uint16(12395), + 139: uint16(12396), + 140: uint16(12397), + 141: uint16(12398), + 142: uint16(12399), + 143: uint16(12400), + 144: uint16(12401), + 145: uint16(12402), + 146: uint16(12403), + 147: uint16(12404), + 148: uint16(12405), + 149: uint16(12406), + 150: uint16(12407), + 151: uint16(12408), + 152: uint16(12409), + 153: uint16(12410), + 154: uint16(12411), + 155: uint16(12412), + 156: uint16(12413), + 157: uint16(12414), + 158: uint16(12415), + 159: uint16(12416), + 160: uint16(12417), + 161: uint16(12418), + 162: uint16(12419), + 163: uint16(12420), + 164: uint16(12421), + 165: uint16(12422), + 166: uint16(12423), + 167: uint16(12424), + 168: uint16(12425), + 169: uint16(12426), + 170: uint16(12427), + 171: uint16(12428), + 172: uint16(12429), + 173: uint16(12430), + 174: uint16(12431), + 175: uint16(12432), + 176: uint16(12433), + 177: uint16(12434), + 178: uint16(12435), + 179: uint16(59250), + 180: uint16(59251), + 181: uint16(59252), + 182: uint16(59253), + 183: uint16(59254), + 184: uint16(59255), + 185: uint16(59256), + 186: uint16(59257), + 187: uint16(59258), + 188: uint16(59259), + 189: uint16(59260), + }, + 36: { + 0: uint16(58950), + 1: uint16(58951), + 2: uint16(58952), + 3: uint16(58953), + 4: uint16(58954), + 5: uint16(58955), + 6: uint16(58956), + 7: uint16(58957), + 8: uint16(58958), + 9: uint16(58959), + 10: uint16(58960), + 11: uint16(58961), + 12: uint16(58962), + 13: uint16(58963), + 14: uint16(58964), + 15: uint16(58965), + 16: uint16(58966), + 17: uint16(58967), + 18: uint16(58968), + 19: uint16(58969), + 20: uint16(58970), + 21: uint16(58971), + 22: uint16(58972), + 23: uint16(58973), + 24: uint16(58974), + 25: uint16(58975), + 26: uint16(58976), + 27: uint16(58977), + 28: uint16(58978), + 29: uint16(58979), + 30: uint16(58980), + 31: uint16(58981), + 32: uint16(58982), + 33: uint16(58983), + 34: uint16(58984), + 35: uint16(58985), + 36: uint16(58986), + 37: uint16(58987), + 38: uint16(58988), + 39: uint16(58989), + 40: uint16(58990), + 41: uint16(58991), + 42: uint16(58992), + 43: uint16(58993), + 44: uint16(58994), + 45: uint16(58995), + 46: uint16(58996), + 47: uint16(58997), + 48: uint16(58998), + 49: uint16(58999), + 50: uint16(59000), + 51: uint16(59001), + 52: uint16(59002), + 53: uint16(59003), + 54: uint16(59004), + 55: uint16(59005), + 56: uint16(59006), + 57: uint16(59007), + 58: uint16(59008), + 59: uint16(59009), + 60: uint16(59010), + 61: uint16(59011), + 62: uint16(59012), + 63: uint16(59013), + 64: uint16(59014), + 65: uint16(59015), + 66: uint16(59016), + 67: uint16(59017), + 68: uint16(59018), + 69: uint16(59019), + 70: uint16(59020), + 71: uint16(59021), + 72: uint16(59022), + 73: uint16(59023), + 74: uint16(59024), + 75: uint16(59025), + 76: uint16(59026), + 77: uint16(59027), + 78: uint16(59028), + 79: uint16(59029), + 80: uint16(59030), + 81: uint16(59031), + 82: uint16(59032), + 83: uint16(59033), + 84: uint16(59034), + 85: uint16(59035), + 86: uint16(59036), + 87: uint16(59037), + 88: uint16(59038), + 89: uint16(59039), + 90: uint16(59040), + 91: uint16(59041), + 92: uint16(59042), + 93: uint16(59043), + 94: uint16(59044), + 95: uint16(59045), + 96: uint16(12449), + 97: uint16(12450), + 98: uint16(12451), + 99: uint16(12452), + 100: uint16(12453), + 101: uint16(12454), + 102: uint16(12455), + 103: uint16(12456), + 104: uint16(12457), + 105: uint16(12458), + 106: uint16(12459), + 107: uint16(12460), + 108: uint16(12461), + 109: uint16(12462), + 110: uint16(12463), + 111: uint16(12464), + 112: uint16(12465), + 113: uint16(12466), + 114: uint16(12467), + 115: uint16(12468), + 116: uint16(12469), + 117: uint16(12470), + 118: uint16(12471), + 119: uint16(12472), + 120: uint16(12473), + 121: uint16(12474), + 122: uint16(12475), + 123: uint16(12476), + 124: uint16(12477), + 125: uint16(12478), + 126: uint16(12479), + 127: uint16(12480), + 128: uint16(12481), + 129: uint16(12482), + 130: uint16(12483), + 131: uint16(12484), + 132: uint16(12485), + 133: uint16(12486), + 134: uint16(12487), + 135: uint16(12488), + 136: uint16(12489), + 137: uint16(12490), + 138: uint16(12491), + 139: uint16(12492), + 140: uint16(12493), + 141: uint16(12494), + 142: uint16(12495), + 143: uint16(12496), + 144: uint16(12497), + 145: uint16(12498), + 146: uint16(12499), + 147: uint16(12500), + 148: uint16(12501), + 149: uint16(12502), + 150: uint16(12503), + 151: uint16(12504), + 152: uint16(12505), + 153: uint16(12506), + 154: uint16(12507), + 155: uint16(12508), + 156: uint16(12509), + 157: uint16(12510), + 158: uint16(12511), + 159: uint16(12512), + 160: uint16(12513), + 161: uint16(12514), + 162: uint16(12515), + 163: uint16(12516), + 164: uint16(12517), + 165: uint16(12518), + 166: uint16(12519), + 167: uint16(12520), + 168: uint16(12521), + 169: uint16(12522), + 170: uint16(12523), + 171: uint16(12524), + 172: uint16(12525), + 173: uint16(12526), + 174: uint16(12527), + 175: uint16(12528), + 176: uint16(12529), + 177: uint16(12530), + 178: uint16(12531), + 179: uint16(12532), + 180: uint16(12533), + 181: uint16(12534), + 182: uint16(59261), + 183: uint16(59262), + 184: uint16(59263), + 185: uint16(59264), + 186: uint16(59265), + 187: uint16(59266), + 188: uint16(59267), + 189: uint16(59268), + }, + 37: { + 0: uint16(59046), + 1: uint16(59047), + 2: uint16(59048), + 3: uint16(59049), + 4: uint16(59050), + 5: uint16(59051), + 6: uint16(59052), + 7: uint16(59053), + 8: uint16(59054), + 9: uint16(59055), + 10: uint16(59056), + 11: uint16(59057), + 12: uint16(59058), + 13: uint16(59059), + 14: uint16(59060), + 15: uint16(59061), + 16: uint16(59062), + 17: uint16(59063), + 18: uint16(59064), + 19: uint16(59065), + 20: uint16(59066), + 21: uint16(59067), + 22: uint16(59068), + 23: uint16(59069), + 24: uint16(59070), + 25: uint16(59071), + 26: uint16(59072), + 27: uint16(59073), + 28: uint16(59074), + 29: uint16(59075), + 30: uint16(59076), + 31: uint16(59077), + 32: uint16(59078), + 33: uint16(59079), + 34: uint16(59080), + 35: uint16(59081), + 36: uint16(59082), + 37: uint16(59083), + 38: uint16(59084), + 39: uint16(59085), + 40: uint16(59086), + 41: uint16(59087), + 42: uint16(59088), + 43: uint16(59089), + 44: uint16(59090), + 45: uint16(59091), + 46: uint16(59092), + 47: uint16(59093), + 48: uint16(59094), + 49: uint16(59095), + 50: uint16(59096), + 51: uint16(59097), + 52: uint16(59098), + 53: uint16(59099), + 54: uint16(59100), + 55: uint16(59101), + 56: uint16(59102), + 57: uint16(59103), + 58: uint16(59104), + 59: uint16(59105), + 60: uint16(59106), + 61: uint16(59107), + 62: uint16(59108), + 63: uint16(59109), + 64: uint16(59110), + 65: uint16(59111), + 66: uint16(59112), + 67: uint16(59113), + 68: uint16(59114), + 69: uint16(59115), + 70: uint16(59116), + 71: uint16(59117), + 72: uint16(59118), + 73: uint16(59119), + 74: uint16(59120), + 75: uint16(59121), + 76: uint16(59122), + 77: uint16(59123), + 78: uint16(59124), + 79: uint16(59125), + 80: uint16(59126), + 81: uint16(59127), + 82: uint16(59128), + 83: uint16(59129), + 84: uint16(59130), + 85: uint16(59131), + 86: uint16(59132), + 87: uint16(59133), + 88: uint16(59134), + 89: uint16(59135), + 90: uint16(59136), + 91: uint16(59137), + 92: uint16(59138), + 93: uint16(59139), + 94: uint16(59140), + 95: uint16(59141), + 96: uint16(913), + 97: uint16(914), + 98: uint16(915), + 99: uint16(916), + 100: uint16(917), + 101: uint16(918), + 102: uint16(919), + 103: uint16(920), + 104: uint16(921), + 105: uint16(922), + 106: uint16(923), + 107: uint16(924), + 108: uint16(925), + 109: uint16(926), + 110: uint16(927), + 111: uint16(928), + 112: uint16(929), + 113: uint16(931), + 114: uint16(932), + 115: uint16(933), + 116: uint16(934), + 117: uint16(935), + 118: uint16(936), + 119: uint16(937), + 120: uint16(59269), + 121: uint16(59270), + 122: uint16(59271), + 123: uint16(59272), + 124: uint16(59273), + 125: uint16(59274), + 126: uint16(59275), + 127: uint16(59276), + 128: uint16(945), + 129: uint16(946), + 130: uint16(947), + 131: uint16(948), + 132: uint16(949), + 133: uint16(950), + 134: uint16(951), + 135: uint16(952), + 136: uint16(953), + 137: uint16(954), + 138: uint16(955), + 139: uint16(956), + 140: uint16(957), + 141: uint16(958), + 142: uint16(959), + 143: uint16(960), + 144: uint16(961), + 145: uint16(963), + 146: uint16(964), + 147: uint16(965), + 148: uint16(966), + 149: uint16(967), + 150: uint16(968), + 151: uint16(969), + 152: uint16(59277), + 153: uint16(59278), + 154: uint16(59279), + 155: uint16(59280), + 156: uint16(59281), + 157: uint16(59282), + 158: uint16(59283), + 159: uint16(65077), + 160: uint16(65078), + 161: uint16(65081), + 162: uint16(65082), + 163: uint16(65087), + 164: uint16(65088), + 165: uint16(65085), + 166: uint16(65086), + 167: uint16(65089), + 168: uint16(65090), + 169: uint16(65091), + 170: uint16(65092), + 171: uint16(59284), + 172: uint16(59285), + 173: uint16(65083), + 174: uint16(65084), + 175: uint16(65079), + 176: uint16(65080), + 177: uint16(65073), + 178: uint16(59286), + 179: uint16(65075), + 180: uint16(65076), + 181: uint16(59287), + 182: uint16(59288), + 183: uint16(59289), + 184: uint16(59290), + 185: uint16(59291), + 186: uint16(59292), + 187: uint16(59293), + 188: uint16(59294), + 189: uint16(59295), + }, + 38: { + 0: uint16(59142), + 1: uint16(59143), + 2: uint16(59144), + 3: uint16(59145), + 4: uint16(59146), + 5: uint16(59147), + 6: uint16(59148), + 7: uint16(59149), + 8: uint16(59150), + 9: uint16(59151), + 10: uint16(59152), + 11: uint16(59153), + 12: uint16(59154), + 13: uint16(59155), + 14: uint16(59156), + 15: uint16(59157), + 16: uint16(59158), + 17: uint16(59159), + 18: uint16(59160), + 19: uint16(59161), + 20: uint16(59162), + 21: uint16(59163), + 22: uint16(59164), + 23: uint16(59165), + 24: uint16(59166), + 25: uint16(59167), + 26: uint16(59168), + 27: uint16(59169), + 28: uint16(59170), + 29: uint16(59171), + 30: uint16(59172), + 31: uint16(59173), + 32: uint16(59174), + 33: uint16(59175), + 34: uint16(59176), + 35: uint16(59177), + 36: uint16(59178), + 37: uint16(59179), + 38: uint16(59180), + 39: uint16(59181), + 40: uint16(59182), + 41: uint16(59183), + 42: uint16(59184), + 43: uint16(59185), + 44: uint16(59186), + 45: uint16(59187), + 46: uint16(59188), + 47: uint16(59189), + 48: uint16(59190), + 49: uint16(59191), + 50: uint16(59192), + 51: uint16(59193), + 52: uint16(59194), + 53: uint16(59195), + 54: uint16(59196), + 55: uint16(59197), + 56: uint16(59198), + 57: uint16(59199), + 58: uint16(59200), + 59: uint16(59201), + 60: uint16(59202), + 61: uint16(59203), + 62: uint16(59204), + 63: uint16(59205), + 64: uint16(59206), + 65: uint16(59207), + 66: uint16(59208), + 67: uint16(59209), + 68: uint16(59210), + 69: uint16(59211), + 70: uint16(59212), + 71: uint16(59213), + 72: uint16(59214), + 73: uint16(59215), + 74: uint16(59216), + 75: uint16(59217), + 76: uint16(59218), + 77: uint16(59219), + 78: uint16(59220), + 79: uint16(59221), + 80: uint16(59222), + 81: uint16(59223), + 82: uint16(59224), + 83: uint16(59225), + 84: uint16(59226), + 85: uint16(59227), + 86: uint16(59228), + 87: uint16(59229), + 88: uint16(59230), + 89: uint16(59231), + 90: uint16(59232), + 91: uint16(59233), + 92: uint16(59234), + 93: uint16(59235), + 94: uint16(59236), + 95: uint16(59237), + 96: uint16(1040), + 97: uint16(1041), + 98: uint16(1042), + 99: uint16(1043), + 100: uint16(1044), + 101: uint16(1045), + 102: uint16(1025), + 103: uint16(1046), + 104: uint16(1047), + 105: uint16(1048), + 106: uint16(1049), + 107: uint16(1050), + 108: uint16(1051), + 109: uint16(1052), + 110: uint16(1053), + 111: uint16(1054), + 112: uint16(1055), + 113: uint16(1056), + 114: uint16(1057), + 115: uint16(1058), + 116: uint16(1059), + 117: uint16(1060), + 118: uint16(1061), + 119: uint16(1062), + 120: uint16(1063), + 121: uint16(1064), + 122: uint16(1065), + 123: uint16(1066), + 124: uint16(1067), + 125: uint16(1068), + 126: uint16(1069), + 127: uint16(1070), + 128: uint16(1071), + 129: uint16(59296), + 130: uint16(59297), + 131: uint16(59298), + 132: uint16(59299), + 133: uint16(59300), + 134: uint16(59301), + 135: uint16(59302), + 136: uint16(59303), + 137: uint16(59304), + 138: uint16(59305), + 139: uint16(59306), + 140: uint16(59307), + 141: uint16(59308), + 142: uint16(59309), + 143: uint16(59310), + 144: uint16(1072), + 145: uint16(1073), + 146: uint16(1074), + 147: uint16(1075), + 148: uint16(1076), + 149: uint16(1077), + 150: uint16(1105), + 151: uint16(1078), + 152: uint16(1079), + 153: uint16(1080), + 154: uint16(1081), + 155: uint16(1082), + 156: uint16(1083), + 157: uint16(1084), + 158: uint16(1085), + 159: uint16(1086), + 160: uint16(1087), + 161: uint16(1088), + 162: uint16(1089), + 163: uint16(1090), + 164: uint16(1091), + 165: uint16(1092), + 166: uint16(1093), + 167: uint16(1094), + 168: uint16(1095), + 169: uint16(1096), + 170: uint16(1097), + 171: uint16(1098), + 172: uint16(1099), + 173: uint16(1100), + 174: uint16(1101), + 175: uint16(1102), + 176: uint16(1103), + 177: uint16(59311), + 178: uint16(59312), + 179: uint16(59313), + 180: uint16(59314), + 181: uint16(59315), + 182: uint16(59316), + 183: uint16(59317), + 184: uint16(59318), + 185: uint16(59319), + 186: uint16(59320), + 187: uint16(59321), + 188: uint16(59322), + 189: uint16(59323), + }, + 39: { + 0: uint16(714), + 1: uint16(715), + 2: uint16(729), + 3: uint16(8211), + 4: uint16(8213), + 5: uint16(8229), + 6: uint16(8245), + 7: uint16(8453), + 8: uint16(8457), + 9: uint16(8598), + 10: uint16(8599), + 11: uint16(8600), + 12: uint16(8601), + 13: uint16(8725), + 14: uint16(8735), + 15: uint16(8739), + 16: uint16(8786), + 17: uint16(8806), + 18: uint16(8807), + 19: uint16(8895), + 20: uint16(9552), + 21: uint16(9553), + 22: uint16(9554), + 23: uint16(9555), + 24: uint16(9556), + 25: uint16(9557), + 26: uint16(9558), + 27: uint16(9559), + 28: uint16(9560), + 29: uint16(9561), + 30: uint16(9562), + 31: uint16(9563), + 32: uint16(9564), + 33: uint16(9565), + 34: uint16(9566), + 35: uint16(9567), + 36: uint16(9568), + 37: uint16(9569), + 38: uint16(9570), + 39: uint16(9571), + 40: uint16(9572), + 41: uint16(9573), + 42: uint16(9574), + 43: uint16(9575), + 44: uint16(9576), + 45: uint16(9577), + 46: uint16(9578), + 47: uint16(9579), + 48: uint16(9580), + 49: uint16(9581), + 50: uint16(9582), + 51: uint16(9583), + 52: uint16(9584), + 53: uint16(9585), + 54: uint16(9586), + 55: uint16(9587), + 56: uint16(9601), + 57: uint16(9602), + 58: uint16(9603), + 59: uint16(9604), + 60: uint16(9605), + 61: uint16(9606), + 62: uint16(9607), + 63: uint16(9608), + 64: uint16(9609), + 65: uint16(9610), + 66: uint16(9611), + 67: uint16(9612), + 68: uint16(9613), + 69: uint16(9614), + 70: uint16(9615), + 71: uint16(9619), + 72: uint16(9620), + 73: uint16(9621), + 74: uint16(9660), + 75: uint16(9661), + 76: uint16(9698), + 77: uint16(9699), + 78: uint16(9700), + 79: uint16(9701), + 80: uint16(9737), + 81: uint16(8853), + 82: uint16(12306), + 83: uint16(12317), + 84: uint16(12318), + 85: uint16(59324), + 86: uint16(59325), + 87: uint16(59326), + 88: uint16(59327), + 89: uint16(59328), + 90: uint16(59329), + 91: uint16(59330), + 92: uint16(59331), + 93: uint16(59332), + 94: uint16(59333), + 95: uint16(59334), + 96: uint16(257), + 97: uint16(225), + 98: uint16(462), + 99: uint16(224), + 100: uint16(275), + 101: uint16(233), + 102: uint16(283), + 103: uint16(232), + 104: uint16(299), + 105: uint16(237), + 106: uint16(464), + 107: uint16(236), + 108: uint16(333), + 109: uint16(243), + 110: uint16(466), + 111: uint16(242), + 112: uint16(363), + 113: uint16(250), + 114: uint16(468), + 115: uint16(249), + 116: uint16(470), + 117: uint16(472), + 118: uint16(474), + 119: uint16(476), + 120: uint16(252), + 121: uint16(234), + 122: uint16(593), + 123: uint16(59335), + 124: uint16(324), + 125: uint16(328), + 126: uint16(505), + 127: uint16(609), + 128: uint16(59337), + 129: uint16(59338), + 130: uint16(59339), + 131: uint16(59340), + 132: uint16(12549), + 133: uint16(12550), + 134: uint16(12551), + 135: uint16(12552), + 136: uint16(12553), + 137: uint16(12554), + 138: uint16(12555), + 139: uint16(12556), + 140: uint16(12557), + 141: uint16(12558), + 142: uint16(12559), + 143: uint16(12560), + 144: uint16(12561), + 145: uint16(12562), + 146: uint16(12563), + 147: uint16(12564), + 148: uint16(12565), + 149: uint16(12566), + 150: uint16(12567), + 151: uint16(12568), + 152: uint16(12569), + 153: uint16(12570), + 154: uint16(12571), + 155: uint16(12572), + 156: uint16(12573), + 157: uint16(12574), + 158: uint16(12575), + 159: uint16(12576), + 160: uint16(12577), + 161: uint16(12578), + 162: uint16(12579), + 163: uint16(12580), + 164: uint16(12581), + 165: uint16(12582), + 166: uint16(12583), + 167: uint16(12584), + 168: uint16(12585), + 169: uint16(59341), + 170: uint16(59342), + 171: uint16(59343), + 172: uint16(59344), + 173: uint16(59345), + 174: uint16(59346), + 175: uint16(59347), + 176: uint16(59348), + 177: uint16(59349), + 178: uint16(59350), + 179: uint16(59351), + 180: uint16(59352), + 181: uint16(59353), + 182: uint16(59354), + 183: uint16(59355), + 184: uint16(59356), + 185: uint16(59357), + 186: uint16(59358), + 187: uint16(59359), + 188: uint16(59360), + 189: uint16(59361), + }, + 40: { + 0: uint16(12321), + 1: uint16(12322), + 2: uint16(12323), + 3: uint16(12324), + 4: uint16(12325), + 5: uint16(12326), + 6: uint16(12327), + 7: uint16(12328), + 8: uint16(12329), + 9: uint16(12963), + 10: uint16(13198), + 11: uint16(13199), + 12: uint16(13212), + 13: uint16(13213), + 14: uint16(13214), + 15: uint16(13217), + 16: uint16(13252), + 17: uint16(13262), + 18: uint16(13265), + 19: uint16(13266), + 20: uint16(13269), + 21: uint16(65072), + 22: uint16(65506), + 23: uint16(65508), + 24: uint16(59362), + 25: uint16(8481), + 26: uint16(12849), + 27: uint16(59363), + 28: uint16(8208), + 29: uint16(59364), + 30: uint16(59365), + 31: uint16(59366), + 32: uint16(12540), + 33: uint16(12443), + 34: uint16(12444), + 35: uint16(12541), + 36: uint16(12542), + 37: uint16(12294), + 38: uint16(12445), + 39: uint16(12446), + 40: uint16(65097), + 41: uint16(65098), + 42: uint16(65099), + 43: uint16(65100), + 44: uint16(65101), + 45: uint16(65102), + 46: uint16(65103), + 47: uint16(65104), + 48: uint16(65105), + 49: uint16(65106), + 50: uint16(65108), + 51: uint16(65109), + 52: uint16(65110), + 53: uint16(65111), + 54: uint16(65113), + 55: uint16(65114), + 56: uint16(65115), + 57: uint16(65116), + 58: uint16(65117), + 59: uint16(65118), + 60: uint16(65119), + 61: uint16(65120), + 62: uint16(65121), + 63: uint16(65122), + 64: uint16(65123), + 65: uint16(65124), + 66: uint16(65125), + 67: uint16(65126), + 68: uint16(65128), + 69: uint16(65129), + 70: uint16(65130), + 71: uint16(65131), + 72: uint16(12350), + 73: uint16(12272), + 74: uint16(12273), + 75: uint16(12274), + 76: uint16(12275), + 77: uint16(12276), + 78: uint16(12277), + 79: uint16(12278), + 80: uint16(12279), + 81: uint16(12280), + 82: uint16(12281), + 83: uint16(12282), + 84: uint16(12283), + 85: uint16(12295), + 86: uint16(59380), + 87: uint16(59381), + 88: uint16(59382), + 89: uint16(59383), + 90: uint16(59384), + 91: uint16(59385), + 92: uint16(59386), + 93: uint16(59387), + 94: uint16(59388), + 95: uint16(59389), + 96: uint16(59390), + 97: uint16(59391), + 98: uint16(59392), + 99: uint16(9472), + 100: uint16(9473), + 101: uint16(9474), + 102: uint16(9475), + 103: uint16(9476), + 104: uint16(9477), + 105: uint16(9478), + 106: uint16(9479), + 107: uint16(9480), + 108: uint16(9481), + 109: uint16(9482), + 110: uint16(9483), + 111: uint16(9484), + 112: uint16(9485), + 113: uint16(9486), + 114: uint16(9487), + 115: uint16(9488), + 116: uint16(9489), + 117: uint16(9490), + 118: uint16(9491), + 119: uint16(9492), + 120: uint16(9493), + 121: uint16(9494), + 122: uint16(9495), + 123: uint16(9496), + 124: uint16(9497), + 125: uint16(9498), + 126: uint16(9499), + 127: uint16(9500), + 128: uint16(9501), + 129: uint16(9502), + 130: uint16(9503), + 131: uint16(9504), + 132: uint16(9505), + 133: uint16(9506), + 134: uint16(9507), + 135: uint16(9508), + 136: uint16(9509), + 137: uint16(9510), + 138: uint16(9511), + 139: uint16(9512), + 140: uint16(9513), + 141: uint16(9514), + 142: uint16(9515), + 143: uint16(9516), + 144: uint16(9517), + 145: uint16(9518), + 146: uint16(9519), + 147: uint16(9520), + 148: uint16(9521), + 149: uint16(9522), + 150: uint16(9523), + 151: uint16(9524), + 152: uint16(9525), + 153: uint16(9526), + 154: uint16(9527), + 155: uint16(9528), + 156: uint16(9529), + 157: uint16(9530), + 158: uint16(9531), + 159: uint16(9532), + 160: uint16(9533), + 161: uint16(9534), + 162: uint16(9535), + 163: uint16(9536), + 164: uint16(9537), + 165: uint16(9538), + 166: uint16(9539), + 167: uint16(9540), + 168: uint16(9541), + 169: uint16(9542), + 170: uint16(9543), + 171: uint16(9544), + 172: uint16(9545), + 173: uint16(9546), + 174: uint16(9547), + 175: uint16(59393), + 176: uint16(59394), + 177: uint16(59395), + 178: uint16(59396), + 179: uint16(59397), + 180: uint16(59398), + 181: uint16(59399), + 182: uint16(59400), + 183: uint16(59401), + 184: uint16(59402), + 185: uint16(59403), + 186: uint16(59404), + 187: uint16(59405), + 188: uint16(59406), + 189: uint16(59407), + }, + 41: { + 0: uint16(29404), + 1: uint16(29405), + 2: uint16(29407), + 3: uint16(29410), + 4: uint16(29411), + 5: uint16(29412), + 6: uint16(29413), + 7: uint16(29414), + 8: uint16(29415), + 9: uint16(29418), + 10: uint16(29419), + 11: uint16(29429), + 12: uint16(29430), + 13: uint16(29433), + 14: uint16(29437), + 15: uint16(29438), + 16: uint16(29439), + 17: uint16(29440), + 18: uint16(29442), + 19: uint16(29444), + 20: uint16(29445), + 21: uint16(29446), + 22: uint16(29447), + 23: uint16(29448), + 24: uint16(29449), + 25: uint16(29451), + 26: uint16(29452), + 27: uint16(29453), + 28: uint16(29455), + 29: uint16(29456), + 30: uint16(29457), + 31: uint16(29458), + 32: uint16(29460), + 33: uint16(29464), + 34: uint16(29465), + 35: uint16(29466), + 36: uint16(29471), + 37: uint16(29472), + 38: uint16(29475), + 39: uint16(29476), + 40: uint16(29478), + 41: uint16(29479), + 42: uint16(29480), + 43: uint16(29485), + 44: uint16(29487), + 45: uint16(29488), + 46: uint16(29490), + 47: uint16(29491), + 48: uint16(29493), + 49: uint16(29494), + 50: uint16(29498), + 51: uint16(29499), + 52: uint16(29500), + 53: uint16(29501), + 54: uint16(29504), + 55: uint16(29505), + 56: uint16(29506), + 57: uint16(29507), + 58: uint16(29508), + 59: uint16(29509), + 60: uint16(29510), + 61: uint16(29511), + 62: uint16(29512), + 63: uint16(29513), + 64: uint16(29514), + 65: uint16(29515), + 66: uint16(29516), + 67: uint16(29518), + 68: uint16(29519), + 69: uint16(29521), + 70: uint16(29523), + 71: uint16(29524), + 72: uint16(29525), + 73: uint16(29526), + 74: uint16(29528), + 75: uint16(29529), + 76: uint16(29530), + 77: uint16(29531), + 78: uint16(29532), + 79: uint16(29533), + 80: uint16(29534), + 81: uint16(29535), + 82: uint16(29537), + 83: uint16(29538), + 84: uint16(29539), + 85: uint16(29540), + 86: uint16(29541), + 87: uint16(29542), + 88: uint16(29543), + 89: uint16(29544), + 90: uint16(29545), + 91: uint16(29546), + 92: uint16(29547), + 93: uint16(29550), + 94: uint16(29552), + 95: uint16(29553), + 96: uint16(57344), + 97: uint16(57345), + 98: uint16(57346), + 99: uint16(57347), + 100: uint16(57348), + 101: uint16(57349), + 102: uint16(57350), + 103: uint16(57351), + 104: uint16(57352), + 105: uint16(57353), + 106: uint16(57354), + 107: uint16(57355), + 108: uint16(57356), + 109: uint16(57357), + 110: uint16(57358), + 111: uint16(57359), + 112: uint16(57360), + 113: uint16(57361), + 114: uint16(57362), + 115: uint16(57363), + 116: uint16(57364), + 117: uint16(57365), + 118: uint16(57366), + 119: uint16(57367), + 120: uint16(57368), + 121: uint16(57369), + 122: uint16(57370), + 123: uint16(57371), + 124: uint16(57372), + 125: uint16(57373), + 126: uint16(57374), + 127: uint16(57375), + 128: uint16(57376), + 129: uint16(57377), + 130: uint16(57378), + 131: uint16(57379), + 132: uint16(57380), + 133: uint16(57381), + 134: uint16(57382), + 135: uint16(57383), + 136: uint16(57384), + 137: uint16(57385), + 138: uint16(57386), + 139: uint16(57387), + 140: uint16(57388), + 141: uint16(57389), + 142: uint16(57390), + 143: uint16(57391), + 144: uint16(57392), + 145: uint16(57393), + 146: uint16(57394), + 147: uint16(57395), + 148: uint16(57396), + 149: uint16(57397), + 150: uint16(57398), + 151: uint16(57399), + 152: uint16(57400), + 153: uint16(57401), + 154: uint16(57402), + 155: uint16(57403), + 156: uint16(57404), + 157: uint16(57405), + 158: uint16(57406), + 159: uint16(57407), + 160: uint16(57408), + 161: uint16(57409), + 162: uint16(57410), + 163: uint16(57411), + 164: uint16(57412), + 165: uint16(57413), + 166: uint16(57414), + 167: uint16(57415), + 168: uint16(57416), + 169: uint16(57417), + 170: uint16(57418), + 171: uint16(57419), + 172: uint16(57420), + 173: uint16(57421), + 174: uint16(57422), + 175: uint16(57423), + 176: uint16(57424), + 177: uint16(57425), + 178: uint16(57426), + 179: uint16(57427), + 180: uint16(57428), + 181: uint16(57429), + 182: uint16(57430), + 183: uint16(57431), + 184: uint16(57432), + 185: uint16(57433), + 186: uint16(57434), + 187: uint16(57435), + 188: uint16(57436), + 189: uint16(57437), + }, + 42: { + 0: uint16(29554), + 1: uint16(29555), + 2: uint16(29556), + 3: uint16(29557), + 4: uint16(29558), + 5: uint16(29559), + 6: uint16(29560), + 7: uint16(29561), + 8: uint16(29562), + 9: uint16(29563), + 10: uint16(29564), + 11: uint16(29565), + 12: uint16(29567), + 13: uint16(29568), + 14: uint16(29569), + 15: uint16(29570), + 16: uint16(29571), + 17: uint16(29573), + 18: uint16(29574), + 19: uint16(29576), + 20: uint16(29578), + 21: uint16(29580), + 22: uint16(29581), + 23: uint16(29583), + 24: uint16(29584), + 25: uint16(29586), + 26: uint16(29587), + 27: uint16(29588), + 28: uint16(29589), + 29: uint16(29591), + 30: uint16(29592), + 31: uint16(29593), + 32: uint16(29594), + 33: uint16(29596), + 34: uint16(29597), + 35: uint16(29598), + 36: uint16(29600), + 37: uint16(29601), + 38: uint16(29603), + 39: uint16(29604), + 40: uint16(29605), + 41: uint16(29606), + 42: uint16(29607), + 43: uint16(29608), + 44: uint16(29610), + 45: uint16(29612), + 46: uint16(29613), + 47: uint16(29617), + 48: uint16(29620), + 49: uint16(29621), + 50: uint16(29622), + 51: uint16(29624), + 52: uint16(29625), + 53: uint16(29628), + 54: uint16(29629), + 55: uint16(29630), + 56: uint16(29631), + 57: uint16(29633), + 58: uint16(29635), + 59: uint16(29636), + 60: uint16(29637), + 61: uint16(29638), + 62: uint16(29639), + 63: uint16(29643), + 64: uint16(29644), + 65: uint16(29646), + 66: uint16(29650), + 67: uint16(29651), + 68: uint16(29652), + 69: uint16(29653), + 70: uint16(29654), + 71: uint16(29655), + 72: uint16(29656), + 73: uint16(29658), + 74: uint16(29659), + 75: uint16(29660), + 76: uint16(29661), + 77: uint16(29663), + 78: uint16(29665), + 79: uint16(29666), + 80: uint16(29667), + 81: uint16(29668), + 82: uint16(29670), + 83: uint16(29672), + 84: uint16(29674), + 85: uint16(29675), + 86: uint16(29676), + 87: uint16(29678), + 88: uint16(29679), + 89: uint16(29680), + 90: uint16(29681), + 91: uint16(29683), + 92: uint16(29684), + 93: uint16(29685), + 94: uint16(29686), + 95: uint16(29687), + 96: uint16(57438), + 97: uint16(57439), + 98: uint16(57440), + 99: uint16(57441), + 100: uint16(57442), + 101: uint16(57443), + 102: uint16(57444), + 103: uint16(57445), + 104: uint16(57446), + 105: uint16(57447), + 106: uint16(57448), + 107: uint16(57449), + 108: uint16(57450), + 109: uint16(57451), + 110: uint16(57452), + 111: uint16(57453), + 112: uint16(57454), + 113: uint16(57455), + 114: uint16(57456), + 115: uint16(57457), + 116: uint16(57458), + 117: uint16(57459), + 118: uint16(57460), + 119: uint16(57461), + 120: uint16(57462), + 121: uint16(57463), + 122: uint16(57464), + 123: uint16(57465), + 124: uint16(57466), + 125: uint16(57467), + 126: uint16(57468), + 127: uint16(57469), + 128: uint16(57470), + 129: uint16(57471), + 130: uint16(57472), + 131: uint16(57473), + 132: uint16(57474), + 133: uint16(57475), + 134: uint16(57476), + 135: uint16(57477), + 136: uint16(57478), + 137: uint16(57479), + 138: uint16(57480), + 139: uint16(57481), + 140: uint16(57482), + 141: uint16(57483), + 142: uint16(57484), + 143: uint16(57485), + 144: uint16(57486), + 145: uint16(57487), + 146: uint16(57488), + 147: uint16(57489), + 148: uint16(57490), + 149: uint16(57491), + 150: uint16(57492), + 151: uint16(57493), + 152: uint16(57494), + 153: uint16(57495), + 154: uint16(57496), + 155: uint16(57497), + 156: uint16(57498), + 157: uint16(57499), + 158: uint16(57500), + 159: uint16(57501), + 160: uint16(57502), + 161: uint16(57503), + 162: uint16(57504), + 163: uint16(57505), + 164: uint16(57506), + 165: uint16(57507), + 166: uint16(57508), + 167: uint16(57509), + 168: uint16(57510), + 169: uint16(57511), + 170: uint16(57512), + 171: uint16(57513), + 172: uint16(57514), + 173: uint16(57515), + 174: uint16(57516), + 175: uint16(57517), + 176: uint16(57518), + 177: uint16(57519), + 178: uint16(57520), + 179: uint16(57521), + 180: uint16(57522), + 181: uint16(57523), + 182: uint16(57524), + 183: uint16(57525), + 184: uint16(57526), + 185: uint16(57527), + 186: uint16(57528), + 187: uint16(57529), + 188: uint16(57530), + 189: uint16(57531), + }, + 43: { + 0: uint16(29688), + 1: uint16(29689), + 2: uint16(29690), + 3: uint16(29691), + 4: uint16(29692), + 5: uint16(29693), + 6: uint16(29694), + 7: uint16(29695), + 8: uint16(29696), + 9: uint16(29697), + 10: uint16(29698), + 11: uint16(29700), + 12: uint16(29703), + 13: uint16(29704), + 14: uint16(29707), + 15: uint16(29708), + 16: uint16(29709), + 17: uint16(29710), + 18: uint16(29713), + 19: uint16(29714), + 20: uint16(29715), + 21: uint16(29716), + 22: uint16(29717), + 23: uint16(29718), + 24: uint16(29719), + 25: uint16(29720), + 26: uint16(29721), + 27: uint16(29724), + 28: uint16(29725), + 29: uint16(29726), + 30: uint16(29727), + 31: uint16(29728), + 32: uint16(29729), + 33: uint16(29731), + 34: uint16(29732), + 35: uint16(29735), + 36: uint16(29737), + 37: uint16(29739), + 38: uint16(29741), + 39: uint16(29743), + 40: uint16(29745), + 41: uint16(29746), + 42: uint16(29751), + 43: uint16(29752), + 44: uint16(29753), + 45: uint16(29754), + 46: uint16(29755), + 47: uint16(29757), + 48: uint16(29758), + 49: uint16(29759), + 50: uint16(29760), + 51: uint16(29762), + 52: uint16(29763), + 53: uint16(29764), + 54: uint16(29765), + 55: uint16(29766), + 56: uint16(29767), + 57: uint16(29768), + 58: uint16(29769), + 59: uint16(29770), + 60: uint16(29771), + 61: uint16(29772), + 62: uint16(29773), + 63: uint16(29774), + 64: uint16(29775), + 65: uint16(29776), + 66: uint16(29777), + 67: uint16(29778), + 68: uint16(29779), + 69: uint16(29780), + 70: uint16(29782), + 71: uint16(29784), + 72: uint16(29789), + 73: uint16(29792), + 74: uint16(29793), + 75: uint16(29794), + 76: uint16(29795), + 77: uint16(29796), + 78: uint16(29797), + 79: uint16(29798), + 80: uint16(29799), + 81: uint16(29800), + 82: uint16(29801), + 83: uint16(29802), + 84: uint16(29803), + 85: uint16(29804), + 86: uint16(29806), + 87: uint16(29807), + 88: uint16(29809), + 89: uint16(29810), + 90: uint16(29811), + 91: uint16(29812), + 92: uint16(29813), + 93: uint16(29816), + 94: uint16(29817), + 95: uint16(29818), + 96: uint16(57532), + 97: uint16(57533), + 98: uint16(57534), + 99: uint16(57535), + 100: uint16(57536), + 101: uint16(57537), + 102: uint16(57538), + 103: uint16(57539), + 104: uint16(57540), + 105: uint16(57541), + 106: uint16(57542), + 107: uint16(57543), + 108: uint16(57544), + 109: uint16(57545), + 110: uint16(57546), + 111: uint16(57547), + 112: uint16(57548), + 113: uint16(57549), + 114: uint16(57550), + 115: uint16(57551), + 116: uint16(57552), + 117: uint16(57553), + 118: uint16(57554), + 119: uint16(57555), + 120: uint16(57556), + 121: uint16(57557), + 122: uint16(57558), + 123: uint16(57559), + 124: uint16(57560), + 125: uint16(57561), + 126: uint16(57562), + 127: uint16(57563), + 128: uint16(57564), + 129: uint16(57565), + 130: uint16(57566), + 131: uint16(57567), + 132: uint16(57568), + 133: uint16(57569), + 134: uint16(57570), + 135: uint16(57571), + 136: uint16(57572), + 137: uint16(57573), + 138: uint16(57574), + 139: uint16(57575), + 140: uint16(57576), + 141: uint16(57577), + 142: uint16(57578), + 143: uint16(57579), + 144: uint16(57580), + 145: uint16(57581), + 146: uint16(57582), + 147: uint16(57583), + 148: uint16(57584), + 149: uint16(57585), + 150: uint16(57586), + 151: uint16(57587), + 152: uint16(57588), + 153: uint16(57589), + 154: uint16(57590), + 155: uint16(57591), + 156: uint16(57592), + 157: uint16(57593), + 158: uint16(57594), + 159: uint16(57595), + 160: uint16(57596), + 161: uint16(57597), + 162: uint16(57598), + 163: uint16(57599), + 164: uint16(57600), + 165: uint16(57601), + 166: uint16(57602), + 167: uint16(57603), + 168: uint16(57604), + 169: uint16(57605), + 170: uint16(57606), + 171: uint16(57607), + 172: uint16(57608), + 173: uint16(57609), + 174: uint16(57610), + 175: uint16(57611), + 176: uint16(57612), + 177: uint16(57613), + 178: uint16(57614), + 179: uint16(57615), + 180: uint16(57616), + 181: uint16(57617), + 182: uint16(57618), + 183: uint16(57619), + 184: uint16(57620), + 185: uint16(57621), + 186: uint16(57622), + 187: uint16(57623), + 188: uint16(57624), + 189: uint16(57625), + }, + 44: { + 0: uint16(29819), + 1: uint16(29820), + 2: uint16(29821), + 3: uint16(29823), + 4: uint16(29826), + 5: uint16(29828), + 6: uint16(29829), + 7: uint16(29830), + 8: uint16(29832), + 9: uint16(29833), + 10: uint16(29834), + 11: uint16(29836), + 12: uint16(29837), + 13: uint16(29839), + 14: uint16(29841), + 15: uint16(29842), + 16: uint16(29843), + 17: uint16(29844), + 18: uint16(29845), + 19: uint16(29846), + 20: uint16(29847), + 21: uint16(29848), + 22: uint16(29849), + 23: uint16(29850), + 24: uint16(29851), + 25: uint16(29853), + 26: uint16(29855), + 27: uint16(29856), + 28: uint16(29857), + 29: uint16(29858), + 30: uint16(29859), + 31: uint16(29860), + 32: uint16(29861), + 33: uint16(29862), + 34: uint16(29866), + 35: uint16(29867), + 36: uint16(29868), + 37: uint16(29869), + 38: uint16(29870), + 39: uint16(29871), + 40: uint16(29872), + 41: uint16(29873), + 42: uint16(29874), + 43: uint16(29875), + 44: uint16(29876), + 45: uint16(29877), + 46: uint16(29878), + 47: uint16(29879), + 48: uint16(29880), + 49: uint16(29881), + 50: uint16(29883), + 51: uint16(29884), + 52: uint16(29885), + 53: uint16(29886), + 54: uint16(29887), + 55: uint16(29888), + 56: uint16(29889), + 57: uint16(29890), + 58: uint16(29891), + 59: uint16(29892), + 60: uint16(29893), + 61: uint16(29894), + 62: uint16(29895), + 63: uint16(29896), + 64: uint16(29897), + 65: uint16(29898), + 66: uint16(29899), + 67: uint16(29900), + 68: uint16(29901), + 69: uint16(29902), + 70: uint16(29903), + 71: uint16(29904), + 72: uint16(29905), + 73: uint16(29907), + 74: uint16(29908), + 75: uint16(29909), + 76: uint16(29910), + 77: uint16(29911), + 78: uint16(29912), + 79: uint16(29913), + 80: uint16(29914), + 81: uint16(29915), + 82: uint16(29917), + 83: uint16(29919), + 84: uint16(29921), + 85: uint16(29925), + 86: uint16(29927), + 87: uint16(29928), + 88: uint16(29929), + 89: uint16(29930), + 90: uint16(29931), + 91: uint16(29932), + 92: uint16(29933), + 93: uint16(29936), + 94: uint16(29937), + 95: uint16(29938), + 96: uint16(57626), + 97: uint16(57627), + 98: uint16(57628), + 99: uint16(57629), + 100: uint16(57630), + 101: uint16(57631), + 102: uint16(57632), + 103: uint16(57633), + 104: uint16(57634), + 105: uint16(57635), + 106: uint16(57636), + 107: uint16(57637), + 108: uint16(57638), + 109: uint16(57639), + 110: uint16(57640), + 111: uint16(57641), + 112: uint16(57642), + 113: uint16(57643), + 114: uint16(57644), + 115: uint16(57645), + 116: uint16(57646), + 117: uint16(57647), + 118: uint16(57648), + 119: uint16(57649), + 120: uint16(57650), + 121: uint16(57651), + 122: uint16(57652), + 123: uint16(57653), + 124: uint16(57654), + 125: uint16(57655), + 126: uint16(57656), + 127: uint16(57657), + 128: uint16(57658), + 129: uint16(57659), + 130: uint16(57660), + 131: uint16(57661), + 132: uint16(57662), + 133: uint16(57663), + 134: uint16(57664), + 135: uint16(57665), + 136: uint16(57666), + 137: uint16(57667), + 138: uint16(57668), + 139: uint16(57669), + 140: uint16(57670), + 141: uint16(57671), + 142: uint16(57672), + 143: uint16(57673), + 144: uint16(57674), + 145: uint16(57675), + 146: uint16(57676), + 147: uint16(57677), + 148: uint16(57678), + 149: uint16(57679), + 150: uint16(57680), + 151: uint16(57681), + 152: uint16(57682), + 153: uint16(57683), + 154: uint16(57684), + 155: uint16(57685), + 156: uint16(57686), + 157: uint16(57687), + 158: uint16(57688), + 159: uint16(57689), + 160: uint16(57690), + 161: uint16(57691), + 162: uint16(57692), + 163: uint16(57693), + 164: uint16(57694), + 165: uint16(57695), + 166: uint16(57696), + 167: uint16(57697), + 168: uint16(57698), + 169: uint16(57699), + 170: uint16(57700), + 171: uint16(57701), + 172: uint16(57702), + 173: uint16(57703), + 174: uint16(57704), + 175: uint16(57705), + 176: uint16(57706), + 177: uint16(57707), + 178: uint16(57708), + 179: uint16(57709), + 180: uint16(57710), + 181: uint16(57711), + 182: uint16(57712), + 183: uint16(57713), + 184: uint16(57714), + 185: uint16(57715), + 186: uint16(57716), + 187: uint16(57717), + 188: uint16(57718), + 189: uint16(57719), + }, + 45: { + 0: uint16(29939), + 1: uint16(29941), + 2: uint16(29944), + 3: uint16(29945), + 4: uint16(29946), + 5: uint16(29947), + 6: uint16(29948), + 7: uint16(29949), + 8: uint16(29950), + 9: uint16(29952), + 10: uint16(29953), + 11: uint16(29954), + 12: uint16(29955), + 13: uint16(29957), + 14: uint16(29958), + 15: uint16(29959), + 16: uint16(29960), + 17: uint16(29961), + 18: uint16(29962), + 19: uint16(29963), + 20: uint16(29964), + 21: uint16(29966), + 22: uint16(29968), + 23: uint16(29970), + 24: uint16(29972), + 25: uint16(29973), + 26: uint16(29974), + 27: uint16(29975), + 28: uint16(29979), + 29: uint16(29981), + 30: uint16(29982), + 31: uint16(29984), + 32: uint16(29985), + 33: uint16(29986), + 34: uint16(29987), + 35: uint16(29988), + 36: uint16(29990), + 37: uint16(29991), + 38: uint16(29994), + 39: uint16(29998), + 40: uint16(30004), + 41: uint16(30006), + 42: uint16(30009), + 43: uint16(30012), + 44: uint16(30013), + 45: uint16(30015), + 46: uint16(30017), + 47: uint16(30018), + 48: uint16(30019), + 49: uint16(30020), + 50: uint16(30022), + 51: uint16(30023), + 52: uint16(30025), + 53: uint16(30026), + 54: uint16(30029), + 55: uint16(30032), + 56: uint16(30033), + 57: uint16(30034), + 58: uint16(30035), + 59: uint16(30037), + 60: uint16(30038), + 61: uint16(30039), + 62: uint16(30040), + 63: uint16(30045), + 64: uint16(30046), + 65: uint16(30047), + 66: uint16(30048), + 67: uint16(30049), + 68: uint16(30050), + 69: uint16(30051), + 70: uint16(30052), + 71: uint16(30055), + 72: uint16(30056), + 73: uint16(30057), + 74: uint16(30059), + 75: uint16(30060), + 76: uint16(30061), + 77: uint16(30062), + 78: uint16(30063), + 79: uint16(30064), + 80: uint16(30065), + 81: uint16(30067), + 82: uint16(30069), + 83: uint16(30070), + 84: uint16(30071), + 85: uint16(30074), + 86: uint16(30075), + 87: uint16(30076), + 88: uint16(30077), + 89: uint16(30078), + 90: uint16(30080), + 91: uint16(30081), + 92: uint16(30082), + 93: uint16(30084), + 94: uint16(30085), + 95: uint16(30087), + 96: uint16(57720), + 97: uint16(57721), + 98: uint16(57722), + 99: uint16(57723), + 100: uint16(57724), + 101: uint16(57725), + 102: uint16(57726), + 103: uint16(57727), + 104: uint16(57728), + 105: uint16(57729), + 106: uint16(57730), + 107: uint16(57731), + 108: uint16(57732), + 109: uint16(57733), + 110: uint16(57734), + 111: uint16(57735), + 112: uint16(57736), + 113: uint16(57737), + 114: uint16(57738), + 115: uint16(57739), + 116: uint16(57740), + 117: uint16(57741), + 118: uint16(57742), + 119: uint16(57743), + 120: uint16(57744), + 121: uint16(57745), + 122: uint16(57746), + 123: uint16(57747), + 124: uint16(57748), + 125: uint16(57749), + 126: uint16(57750), + 127: uint16(57751), + 128: uint16(57752), + 129: uint16(57753), + 130: uint16(57754), + 131: uint16(57755), + 132: uint16(57756), + 133: uint16(57757), + 134: uint16(57758), + 135: uint16(57759), + 136: uint16(57760), + 137: uint16(57761), + 138: uint16(57762), + 139: uint16(57763), + 140: uint16(57764), + 141: uint16(57765), + 142: uint16(57766), + 143: uint16(57767), + 144: uint16(57768), + 145: uint16(57769), + 146: uint16(57770), + 147: uint16(57771), + 148: uint16(57772), + 149: uint16(57773), + 150: uint16(57774), + 151: uint16(57775), + 152: uint16(57776), + 153: uint16(57777), + 154: uint16(57778), + 155: uint16(57779), + 156: uint16(57780), + 157: uint16(57781), + 158: uint16(57782), + 159: uint16(57783), + 160: uint16(57784), + 161: uint16(57785), + 162: uint16(57786), + 163: uint16(57787), + 164: uint16(57788), + 165: uint16(57789), + 166: uint16(57790), + 167: uint16(57791), + 168: uint16(57792), + 169: uint16(57793), + 170: uint16(57794), + 171: uint16(57795), + 172: uint16(57796), + 173: uint16(57797), + 174: uint16(57798), + 175: uint16(57799), + 176: uint16(57800), + 177: uint16(57801), + 178: uint16(57802), + 179: uint16(57803), + 180: uint16(57804), + 181: uint16(57805), + 182: uint16(57806), + 183: uint16(57807), + 184: uint16(57808), + 185: uint16(57809), + 186: uint16(57810), + 187: uint16(57811), + 188: uint16(57812), + 189: uint16(57813), + }, + 46: { + 0: uint16(30088), + 1: uint16(30089), + 2: uint16(30090), + 3: uint16(30092), + 4: uint16(30093), + 5: uint16(30094), + 6: uint16(30096), + 7: uint16(30099), + 8: uint16(30101), + 9: uint16(30104), + 10: uint16(30107), + 11: uint16(30108), + 12: uint16(30110), + 13: uint16(30114), + 14: uint16(30118), + 15: uint16(30119), + 16: uint16(30120), + 17: uint16(30121), + 18: uint16(30122), + 19: uint16(30125), + 20: uint16(30134), + 21: uint16(30135), + 22: uint16(30138), + 23: uint16(30139), + 24: uint16(30143), + 25: uint16(30144), + 26: uint16(30145), + 27: uint16(30150), + 28: uint16(30155), + 29: uint16(30156), + 30: uint16(30158), + 31: uint16(30159), + 32: uint16(30160), + 33: uint16(30161), + 34: uint16(30163), + 35: uint16(30167), + 36: uint16(30169), + 37: uint16(30170), + 38: uint16(30172), + 39: uint16(30173), + 40: uint16(30175), + 41: uint16(30176), + 42: uint16(30177), + 43: uint16(30181), + 44: uint16(30185), + 45: uint16(30188), + 46: uint16(30189), + 47: uint16(30190), + 48: uint16(30191), + 49: uint16(30194), + 50: uint16(30195), + 51: uint16(30197), + 52: uint16(30198), + 53: uint16(30199), + 54: uint16(30200), + 55: uint16(30202), + 56: uint16(30203), + 57: uint16(30205), + 58: uint16(30206), + 59: uint16(30210), + 60: uint16(30212), + 61: uint16(30214), + 62: uint16(30215), + 63: uint16(30216), + 64: uint16(30217), + 65: uint16(30219), + 66: uint16(30221), + 67: uint16(30222), + 68: uint16(30223), + 69: uint16(30225), + 70: uint16(30226), + 71: uint16(30227), + 72: uint16(30228), + 73: uint16(30230), + 74: uint16(30234), + 75: uint16(30236), + 76: uint16(30237), + 77: uint16(30238), + 78: uint16(30241), + 79: uint16(30243), + 80: uint16(30247), + 81: uint16(30248), + 82: uint16(30252), + 83: uint16(30254), + 84: uint16(30255), + 85: uint16(30257), + 86: uint16(30258), + 87: uint16(30262), + 88: uint16(30263), + 89: uint16(30265), + 90: uint16(30266), + 91: uint16(30267), + 92: uint16(30269), + 93: uint16(30273), + 94: uint16(30274), + 95: uint16(30276), + 96: uint16(57814), + 97: uint16(57815), + 98: uint16(57816), + 99: uint16(57817), + 100: uint16(57818), + 101: uint16(57819), + 102: uint16(57820), + 103: uint16(57821), + 104: uint16(57822), + 105: uint16(57823), + 106: uint16(57824), + 107: uint16(57825), + 108: uint16(57826), + 109: uint16(57827), + 110: uint16(57828), + 111: uint16(57829), + 112: uint16(57830), + 113: uint16(57831), + 114: uint16(57832), + 115: uint16(57833), + 116: uint16(57834), + 117: uint16(57835), + 118: uint16(57836), + 119: uint16(57837), + 120: uint16(57838), + 121: uint16(57839), + 122: uint16(57840), + 123: uint16(57841), + 124: uint16(57842), + 125: uint16(57843), + 126: uint16(57844), + 127: uint16(57845), + 128: uint16(57846), + 129: uint16(57847), + 130: uint16(57848), + 131: uint16(57849), + 132: uint16(57850), + 133: uint16(57851), + 134: uint16(57852), + 135: uint16(57853), + 136: uint16(57854), + 137: uint16(57855), + 138: uint16(57856), + 139: uint16(57857), + 140: uint16(57858), + 141: uint16(57859), + 142: uint16(57860), + 143: uint16(57861), + 144: uint16(57862), + 145: uint16(57863), + 146: uint16(57864), + 147: uint16(57865), + 148: uint16(57866), + 149: uint16(57867), + 150: uint16(57868), + 151: uint16(57869), + 152: uint16(57870), + 153: uint16(57871), + 154: uint16(57872), + 155: uint16(57873), + 156: uint16(57874), + 157: uint16(57875), + 158: uint16(57876), + 159: uint16(57877), + 160: uint16(57878), + 161: uint16(57879), + 162: uint16(57880), + 163: uint16(57881), + 164: uint16(57882), + 165: uint16(57883), + 166: uint16(57884), + 167: uint16(57885), + 168: uint16(57886), + 169: uint16(57887), + 170: uint16(57888), + 171: uint16(57889), + 172: uint16(57890), + 173: uint16(57891), + 174: uint16(57892), + 175: uint16(57893), + 176: uint16(57894), + 177: uint16(57895), + 178: uint16(57896), + 179: uint16(57897), + 180: uint16(57898), + 181: uint16(57899), + 182: uint16(57900), + 183: uint16(57901), + 184: uint16(57902), + 185: uint16(57903), + 186: uint16(57904), + 187: uint16(57905), + 188: uint16(57906), + 189: uint16(57907), + }, + 47: { + 0: uint16(30277), + 1: uint16(30278), + 2: uint16(30279), + 3: uint16(30280), + 4: uint16(30281), + 5: uint16(30282), + 6: uint16(30283), + 7: uint16(30286), + 8: uint16(30287), + 9: uint16(30288), + 10: uint16(30289), + 11: uint16(30290), + 12: uint16(30291), + 13: uint16(30293), + 14: uint16(30295), + 15: uint16(30296), + 16: uint16(30297), + 17: uint16(30298), + 18: uint16(30299), + 19: uint16(30301), + 20: uint16(30303), + 21: uint16(30304), + 22: uint16(30305), + 23: uint16(30306), + 24: uint16(30308), + 25: uint16(30309), + 26: uint16(30310), + 27: uint16(30311), + 28: uint16(30312), + 29: uint16(30313), + 30: uint16(30314), + 31: uint16(30316), + 32: uint16(30317), + 33: uint16(30318), + 34: uint16(30320), + 35: uint16(30321), + 36: uint16(30322), + 37: uint16(30323), + 38: uint16(30324), + 39: uint16(30325), + 40: uint16(30326), + 41: uint16(30327), + 42: uint16(30329), + 43: uint16(30330), + 44: uint16(30332), + 45: uint16(30335), + 46: uint16(30336), + 47: uint16(30337), + 48: uint16(30339), + 49: uint16(30341), + 50: uint16(30345), + 51: uint16(30346), + 52: uint16(30348), + 53: uint16(30349), + 54: uint16(30351), + 55: uint16(30352), + 56: uint16(30354), + 57: uint16(30356), + 58: uint16(30357), + 59: uint16(30359), + 60: uint16(30360), + 61: uint16(30362), + 62: uint16(30363), + 63: uint16(30364), + 64: uint16(30365), + 65: uint16(30366), + 66: uint16(30367), + 67: uint16(30368), + 68: uint16(30369), + 69: uint16(30370), + 70: uint16(30371), + 71: uint16(30373), + 72: uint16(30374), + 73: uint16(30375), + 74: uint16(30376), + 75: uint16(30377), + 76: uint16(30378), + 77: uint16(30379), + 78: uint16(30380), + 79: uint16(30381), + 80: uint16(30383), + 81: uint16(30384), + 82: uint16(30387), + 83: uint16(30389), + 84: uint16(30390), + 85: uint16(30391), + 86: uint16(30392), + 87: uint16(30393), + 88: uint16(30394), + 89: uint16(30395), + 90: uint16(30396), + 91: uint16(30397), + 92: uint16(30398), + 93: uint16(30400), + 94: uint16(30401), + 95: uint16(30403), + 96: uint16(21834), + 97: uint16(38463), + 98: uint16(22467), + 99: uint16(25384), + 100: uint16(21710), + 101: uint16(21769), + 102: uint16(21696), + 103: uint16(30353), + 104: uint16(30284), + 105: uint16(34108), + 106: uint16(30702), + 107: uint16(33406), + 108: uint16(30861), + 109: uint16(29233), + 110: uint16(38552), + 111: uint16(38797), + 112: uint16(27688), + 113: uint16(23433), + 114: uint16(20474), + 115: uint16(25353), + 116: uint16(26263), + 117: uint16(23736), + 118: uint16(33018), + 119: uint16(26696), + 120: uint16(32942), + 121: uint16(26114), + 122: uint16(30414), + 123: uint16(20985), + 124: uint16(25942), + 125: uint16(29100), + 126: uint16(32753), + 127: uint16(34948), + 128: uint16(20658), + 129: uint16(22885), + 130: uint16(25034), + 131: uint16(28595), + 132: uint16(33453), + 133: uint16(25420), + 134: uint16(25170), + 135: uint16(21485), + 136: uint16(21543), + 137: uint16(31494), + 138: uint16(20843), + 139: uint16(30116), + 140: uint16(24052), + 141: uint16(25300), + 142: uint16(36299), + 143: uint16(38774), + 144: uint16(25226), + 145: uint16(32793), + 146: uint16(22365), + 147: uint16(38712), + 148: uint16(32610), + 149: uint16(29240), + 150: uint16(30333), + 151: uint16(26575), + 152: uint16(30334), + 153: uint16(25670), + 154: uint16(20336), + 155: uint16(36133), + 156: uint16(25308), + 157: uint16(31255), + 158: uint16(26001), + 159: uint16(29677), + 160: uint16(25644), + 161: uint16(25203), + 162: uint16(33324), + 163: uint16(39041), + 164: uint16(26495), + 165: uint16(29256), + 166: uint16(25198), + 167: uint16(25292), + 168: uint16(20276), + 169: uint16(29923), + 170: uint16(21322), + 171: uint16(21150), + 172: uint16(32458), + 173: uint16(37030), + 174: uint16(24110), + 175: uint16(26758), + 176: uint16(27036), + 177: uint16(33152), + 178: uint16(32465), + 179: uint16(26834), + 180: uint16(30917), + 181: uint16(34444), + 182: uint16(38225), + 183: uint16(20621), + 184: uint16(35876), + 185: uint16(33502), + 186: uint16(32990), + 187: uint16(21253), + 188: uint16(35090), + 189: uint16(21093), + }, + 48: { + 0: uint16(30404), + 1: uint16(30407), + 2: uint16(30409), + 3: uint16(30411), + 4: uint16(30412), + 5: uint16(30419), + 6: uint16(30421), + 7: uint16(30425), + 8: uint16(30426), + 9: uint16(30428), + 10: uint16(30429), + 11: uint16(30430), + 12: uint16(30432), + 13: uint16(30433), + 14: uint16(30434), + 15: uint16(30435), + 16: uint16(30436), + 17: uint16(30438), + 18: uint16(30439), + 19: uint16(30440), + 20: uint16(30441), + 21: uint16(30442), + 22: uint16(30443), + 23: uint16(30444), + 24: uint16(30445), + 25: uint16(30448), + 26: uint16(30451), + 27: uint16(30453), + 28: uint16(30454), + 29: uint16(30455), + 30: uint16(30458), + 31: uint16(30459), + 32: uint16(30461), + 33: uint16(30463), + 34: uint16(30464), + 35: uint16(30466), + 36: uint16(30467), + 37: uint16(30469), + 38: uint16(30470), + 39: uint16(30474), + 40: uint16(30476), + 41: uint16(30478), + 42: uint16(30479), + 43: uint16(30480), + 44: uint16(30481), + 45: uint16(30482), + 46: uint16(30483), + 47: uint16(30484), + 48: uint16(30485), + 49: uint16(30486), + 50: uint16(30487), + 51: uint16(30488), + 52: uint16(30491), + 53: uint16(30492), + 54: uint16(30493), + 55: uint16(30494), + 56: uint16(30497), + 57: uint16(30499), + 58: uint16(30500), + 59: uint16(30501), + 60: uint16(30503), + 61: uint16(30506), + 62: uint16(30507), + 63: uint16(30508), + 64: uint16(30510), + 65: uint16(30512), + 66: uint16(30513), + 67: uint16(30514), + 68: uint16(30515), + 69: uint16(30516), + 70: uint16(30521), + 71: uint16(30523), + 72: uint16(30525), + 73: uint16(30526), + 74: uint16(30527), + 75: uint16(30530), + 76: uint16(30532), + 77: uint16(30533), + 78: uint16(30534), + 79: uint16(30536), + 80: uint16(30537), + 81: uint16(30538), + 82: uint16(30539), + 83: uint16(30540), + 84: uint16(30541), + 85: uint16(30542), + 86: uint16(30543), + 87: uint16(30546), + 88: uint16(30547), + 89: uint16(30548), + 90: uint16(30549), + 91: uint16(30550), + 92: uint16(30551), + 93: uint16(30552), + 94: uint16(30553), + 95: uint16(30556), + 96: uint16(34180), + 97: uint16(38649), + 98: uint16(20445), + 99: uint16(22561), + 100: uint16(39281), + 101: uint16(23453), + 102: uint16(25265), + 103: uint16(25253), + 104: uint16(26292), + 105: uint16(35961), + 106: uint16(40077), + 107: uint16(29190), + 108: uint16(26479), + 109: uint16(30865), + 110: uint16(24754), + 111: uint16(21329), + 112: uint16(21271), + 113: uint16(36744), + 114: uint16(32972), + 115: uint16(36125), + 116: uint16(38049), + 117: uint16(20493), + 118: uint16(29384), + 119: uint16(22791), + 120: uint16(24811), + 121: uint16(28953), + 122: uint16(34987), + 123: uint16(22868), + 124: uint16(33519), + 125: uint16(26412), + 126: uint16(31528), + 127: uint16(23849), + 128: uint16(32503), + 129: uint16(29997), + 130: uint16(27893), + 131: uint16(36454), + 132: uint16(36856), + 133: uint16(36924), + 134: uint16(40763), + 135: uint16(27604), + 136: uint16(37145), + 137: uint16(31508), + 138: uint16(24444), + 139: uint16(30887), + 140: uint16(34006), + 141: uint16(34109), + 142: uint16(27605), + 143: uint16(27609), + 144: uint16(27606), + 145: uint16(24065), + 146: uint16(24199), + 147: uint16(30201), + 148: uint16(38381), + 149: uint16(25949), + 150: uint16(24330), + 151: uint16(24517), + 152: uint16(36767), + 153: uint16(22721), + 154: uint16(33218), + 155: uint16(36991), + 156: uint16(38491), + 157: uint16(38829), + 158: uint16(36793), + 159: uint16(32534), + 160: uint16(36140), + 161: uint16(25153), + 162: uint16(20415), + 163: uint16(21464), + 164: uint16(21342), + 165: uint16(36776), + 166: uint16(36777), + 167: uint16(36779), + 168: uint16(36941), + 169: uint16(26631), + 170: uint16(24426), + 171: uint16(33176), + 172: uint16(34920), + 173: uint16(40150), + 174: uint16(24971), + 175: uint16(21035), + 176: uint16(30250), + 177: uint16(24428), + 178: uint16(25996), + 179: uint16(28626), + 180: uint16(28392), + 181: uint16(23486), + 182: uint16(25672), + 183: uint16(20853), + 184: uint16(20912), + 185: uint16(26564), + 186: uint16(19993), + 187: uint16(31177), + 188: uint16(39292), + 189: uint16(28851), + }, + 49: { + 0: uint16(30557), + 1: uint16(30558), + 2: uint16(30559), + 3: uint16(30560), + 4: uint16(30564), + 5: uint16(30567), + 6: uint16(30569), + 7: uint16(30570), + 8: uint16(30573), + 9: uint16(30574), + 10: uint16(30575), + 11: uint16(30576), + 12: uint16(30577), + 13: uint16(30578), + 14: uint16(30579), + 15: uint16(30580), + 16: uint16(30581), + 17: uint16(30582), + 18: uint16(30583), + 19: uint16(30584), + 20: uint16(30586), + 21: uint16(30587), + 22: uint16(30588), + 23: uint16(30593), + 24: uint16(30594), + 25: uint16(30595), + 26: uint16(30598), + 27: uint16(30599), + 28: uint16(30600), + 29: uint16(30601), + 30: uint16(30602), + 31: uint16(30603), + 32: uint16(30607), + 33: uint16(30608), + 34: uint16(30611), + 35: uint16(30612), + 36: uint16(30613), + 37: uint16(30614), + 38: uint16(30615), + 39: uint16(30616), + 40: uint16(30617), + 41: uint16(30618), + 42: uint16(30619), + 43: uint16(30620), + 44: uint16(30621), + 45: uint16(30622), + 46: uint16(30625), + 47: uint16(30627), + 48: uint16(30628), + 49: uint16(30630), + 50: uint16(30632), + 51: uint16(30635), + 52: uint16(30637), + 53: uint16(30638), + 54: uint16(30639), + 55: uint16(30641), + 56: uint16(30642), + 57: uint16(30644), + 58: uint16(30646), + 59: uint16(30647), + 60: uint16(30648), + 61: uint16(30649), + 62: uint16(30650), + 63: uint16(30652), + 64: uint16(30654), + 65: uint16(30656), + 66: uint16(30657), + 67: uint16(30658), + 68: uint16(30659), + 69: uint16(30660), + 70: uint16(30661), + 71: uint16(30662), + 72: uint16(30663), + 73: uint16(30664), + 74: uint16(30665), + 75: uint16(30666), + 76: uint16(30667), + 77: uint16(30668), + 78: uint16(30670), + 79: uint16(30671), + 80: uint16(30672), + 81: uint16(30673), + 82: uint16(30674), + 83: uint16(30675), + 84: uint16(30676), + 85: uint16(30677), + 86: uint16(30678), + 87: uint16(30680), + 88: uint16(30681), + 89: uint16(30682), + 90: uint16(30685), + 91: uint16(30686), + 92: uint16(30687), + 93: uint16(30688), + 94: uint16(30689), + 95: uint16(30692), + 96: uint16(30149), + 97: uint16(24182), + 98: uint16(29627), + 99: uint16(33760), + 100: uint16(25773), + 101: uint16(25320), + 102: uint16(38069), + 103: uint16(27874), + 104: uint16(21338), + 105: uint16(21187), + 106: uint16(25615), + 107: uint16(38082), + 108: uint16(31636), + 109: uint16(20271), + 110: uint16(24091), + 111: uint16(33334), + 112: uint16(33046), + 113: uint16(33162), + 114: uint16(28196), + 115: uint16(27850), + 116: uint16(39539), + 117: uint16(25429), + 118: uint16(21340), + 119: uint16(21754), + 120: uint16(34917), + 121: uint16(22496), + 122: uint16(19981), + 123: uint16(24067), + 124: uint16(27493), + 125: uint16(31807), + 126: uint16(37096), + 127: uint16(24598), + 128: uint16(25830), + 129: uint16(29468), + 130: uint16(35009), + 131: uint16(26448), + 132: uint16(25165), + 133: uint16(36130), + 134: uint16(30572), + 135: uint16(36393), + 136: uint16(37319), + 137: uint16(24425), + 138: uint16(33756), + 139: uint16(34081), + 140: uint16(39184), + 141: uint16(21442), + 142: uint16(34453), + 143: uint16(27531), + 144: uint16(24813), + 145: uint16(24808), + 146: uint16(28799), + 147: uint16(33485), + 148: uint16(33329), + 149: uint16(20179), + 150: uint16(27815), + 151: uint16(34255), + 152: uint16(25805), + 153: uint16(31961), + 154: uint16(27133), + 155: uint16(26361), + 156: uint16(33609), + 157: uint16(21397), + 158: uint16(31574), + 159: uint16(20391), + 160: uint16(20876), + 161: uint16(27979), + 162: uint16(23618), + 163: uint16(36461), + 164: uint16(25554), + 165: uint16(21449), + 166: uint16(33580), + 167: uint16(33590), + 168: uint16(26597), + 169: uint16(30900), + 170: uint16(25661), + 171: uint16(23519), + 172: uint16(23700), + 173: uint16(24046), + 174: uint16(35815), + 175: uint16(25286), + 176: uint16(26612), + 177: uint16(35962), + 178: uint16(25600), + 179: uint16(25530), + 180: uint16(34633), + 181: uint16(39307), + 182: uint16(35863), + 183: uint16(32544), + 184: uint16(38130), + 185: uint16(20135), + 186: uint16(38416), + 187: uint16(39076), + 188: uint16(26124), + 189: uint16(29462), + }, + 50: { + 0: uint16(30694), + 1: uint16(30696), + 2: uint16(30698), + 3: uint16(30703), + 4: uint16(30704), + 5: uint16(30705), + 6: uint16(30706), + 7: uint16(30708), + 8: uint16(30709), + 9: uint16(30711), + 10: uint16(30713), + 11: uint16(30714), + 12: uint16(30715), + 13: uint16(30716), + 14: uint16(30723), + 15: uint16(30724), + 16: uint16(30725), + 17: uint16(30726), + 18: uint16(30727), + 19: uint16(30728), + 20: uint16(30730), + 21: uint16(30731), + 22: uint16(30734), + 23: uint16(30735), + 24: uint16(30736), + 25: uint16(30739), + 26: uint16(30741), + 27: uint16(30745), + 28: uint16(30747), + 29: uint16(30750), + 30: uint16(30752), + 31: uint16(30753), + 32: uint16(30754), + 33: uint16(30756), + 34: uint16(30760), + 35: uint16(30762), + 36: uint16(30763), + 37: uint16(30766), + 38: uint16(30767), + 39: uint16(30769), + 40: uint16(30770), + 41: uint16(30771), + 42: uint16(30773), + 43: uint16(30774), + 44: uint16(30781), + 45: uint16(30783), + 46: uint16(30785), + 47: uint16(30786), + 48: uint16(30787), + 49: uint16(30788), + 50: uint16(30790), + 51: uint16(30792), + 52: uint16(30793), + 53: uint16(30794), + 54: uint16(30795), + 55: uint16(30797), + 56: uint16(30799), + 57: uint16(30801), + 58: uint16(30803), + 59: uint16(30804), + 60: uint16(30808), + 61: uint16(30809), + 62: uint16(30810), + 63: uint16(30811), + 64: uint16(30812), + 65: uint16(30814), + 66: uint16(30815), + 67: uint16(30816), + 68: uint16(30817), + 69: uint16(30818), + 70: uint16(30819), + 71: uint16(30820), + 72: uint16(30821), + 73: uint16(30822), + 74: uint16(30823), + 75: uint16(30824), + 76: uint16(30825), + 77: uint16(30831), + 78: uint16(30832), + 79: uint16(30833), + 80: uint16(30834), + 81: uint16(30835), + 82: uint16(30836), + 83: uint16(30837), + 84: uint16(30838), + 85: uint16(30840), + 86: uint16(30841), + 87: uint16(30842), + 88: uint16(30843), + 89: uint16(30845), + 90: uint16(30846), + 91: uint16(30847), + 92: uint16(30848), + 93: uint16(30849), + 94: uint16(30850), + 95: uint16(30851), + 96: uint16(22330), + 97: uint16(23581), + 98: uint16(24120), + 99: uint16(38271), + 100: uint16(20607), + 101: uint16(32928), + 102: uint16(21378), + 103: uint16(25950), + 104: uint16(30021), + 105: uint16(21809), + 106: uint16(20513), + 107: uint16(36229), + 108: uint16(25220), + 109: uint16(38046), + 110: uint16(26397), + 111: uint16(22066), + 112: uint16(28526), + 113: uint16(24034), + 114: uint16(21557), + 115: uint16(28818), + 116: uint16(36710), + 117: uint16(25199), + 118: uint16(25764), + 119: uint16(25507), + 120: uint16(24443), + 121: uint16(28552), + 122: uint16(37108), + 123: uint16(33251), + 124: uint16(36784), + 125: uint16(23576), + 126: uint16(26216), + 127: uint16(24561), + 128: uint16(27785), + 129: uint16(38472), + 130: uint16(36225), + 131: uint16(34924), + 132: uint16(25745), + 133: uint16(31216), + 134: uint16(22478), + 135: uint16(27225), + 136: uint16(25104), + 137: uint16(21576), + 138: uint16(20056), + 139: uint16(31243), + 140: uint16(24809), + 141: uint16(28548), + 142: uint16(35802), + 143: uint16(25215), + 144: uint16(36894), + 145: uint16(39563), + 146: uint16(31204), + 147: uint16(21507), + 148: uint16(30196), + 149: uint16(25345), + 150: uint16(21273), + 151: uint16(27744), + 152: uint16(36831), + 153: uint16(24347), + 154: uint16(39536), + 155: uint16(32827), + 156: uint16(40831), + 157: uint16(20360), + 158: uint16(23610), + 159: uint16(36196), + 160: uint16(32709), + 161: uint16(26021), + 162: uint16(28861), + 163: uint16(20805), + 164: uint16(20914), + 165: uint16(34411), + 166: uint16(23815), + 167: uint16(23456), + 168: uint16(25277), + 169: uint16(37228), + 170: uint16(30068), + 171: uint16(36364), + 172: uint16(31264), + 173: uint16(24833), + 174: uint16(31609), + 175: uint16(20167), + 176: uint16(32504), + 177: uint16(30597), + 178: uint16(19985), + 179: uint16(33261), + 180: uint16(21021), + 181: uint16(20986), + 182: uint16(27249), + 183: uint16(21416), + 184: uint16(36487), + 185: uint16(38148), + 186: uint16(38607), + 187: uint16(28353), + 188: uint16(38500), + 189: uint16(26970), + }, + 51: { + 0: uint16(30852), + 1: uint16(30853), + 2: uint16(30854), + 3: uint16(30856), + 4: uint16(30858), + 5: uint16(30859), + 6: uint16(30863), + 7: uint16(30864), + 8: uint16(30866), + 9: uint16(30868), + 10: uint16(30869), + 11: uint16(30870), + 12: uint16(30873), + 13: uint16(30877), + 14: uint16(30878), + 15: uint16(30880), + 16: uint16(30882), + 17: uint16(30884), + 18: uint16(30886), + 19: uint16(30888), + 20: uint16(30889), + 21: uint16(30890), + 22: uint16(30891), + 23: uint16(30892), + 24: uint16(30893), + 25: uint16(30894), + 26: uint16(30895), + 27: uint16(30901), + 28: uint16(30902), + 29: uint16(30903), + 30: uint16(30904), + 31: uint16(30906), + 32: uint16(30907), + 33: uint16(30908), + 34: uint16(30909), + 35: uint16(30911), + 36: uint16(30912), + 37: uint16(30914), + 38: uint16(30915), + 39: uint16(30916), + 40: uint16(30918), + 41: uint16(30919), + 42: uint16(30920), + 43: uint16(30924), + 44: uint16(30925), + 45: uint16(30926), + 46: uint16(30927), + 47: uint16(30929), + 48: uint16(30930), + 49: uint16(30931), + 50: uint16(30934), + 51: uint16(30935), + 52: uint16(30936), + 53: uint16(30938), + 54: uint16(30939), + 55: uint16(30940), + 56: uint16(30941), + 57: uint16(30942), + 58: uint16(30943), + 59: uint16(30944), + 60: uint16(30945), + 61: uint16(30946), + 62: uint16(30947), + 63: uint16(30948), + 64: uint16(30949), + 65: uint16(30950), + 66: uint16(30951), + 67: uint16(30953), + 68: uint16(30954), + 69: uint16(30955), + 70: uint16(30957), + 71: uint16(30958), + 72: uint16(30959), + 73: uint16(30960), + 74: uint16(30961), + 75: uint16(30963), + 76: uint16(30965), + 77: uint16(30966), + 78: uint16(30968), + 79: uint16(30969), + 80: uint16(30971), + 81: uint16(30972), + 82: uint16(30973), + 83: uint16(30974), + 84: uint16(30975), + 85: uint16(30976), + 86: uint16(30978), + 87: uint16(30979), + 88: uint16(30980), + 89: uint16(30982), + 90: uint16(30983), + 91: uint16(30984), + 92: uint16(30985), + 93: uint16(30986), + 94: uint16(30987), + 95: uint16(30988), + 96: uint16(30784), + 97: uint16(20648), + 98: uint16(30679), + 99: uint16(25616), + 100: uint16(35302), + 101: uint16(22788), + 102: uint16(25571), + 103: uint16(24029), + 104: uint16(31359), + 105: uint16(26941), + 106: uint16(20256), + 107: uint16(33337), + 108: uint16(21912), + 109: uint16(20018), + 110: uint16(30126), + 111: uint16(31383), + 112: uint16(24162), + 113: uint16(24202), + 114: uint16(38383), + 115: uint16(21019), + 116: uint16(21561), + 117: uint16(28810), + 118: uint16(25462), + 119: uint16(38180), + 120: uint16(22402), + 121: uint16(26149), + 122: uint16(26943), + 123: uint16(37255), + 124: uint16(21767), + 125: uint16(28147), + 126: uint16(32431), + 127: uint16(34850), + 128: uint16(25139), + 129: uint16(32496), + 130: uint16(30133), + 131: uint16(33576), + 132: uint16(30913), + 133: uint16(38604), + 134: uint16(36766), + 135: uint16(24904), + 136: uint16(29943), + 137: uint16(35789), + 138: uint16(27492), + 139: uint16(21050), + 140: uint16(36176), + 141: uint16(27425), + 142: uint16(32874), + 143: uint16(33905), + 144: uint16(22257), + 145: uint16(21254), + 146: uint16(20174), + 147: uint16(19995), + 148: uint16(20945), + 149: uint16(31895), + 150: uint16(37259), + 151: uint16(31751), + 152: uint16(20419), + 153: uint16(36479), + 154: uint16(31713), + 155: uint16(31388), + 156: uint16(25703), + 157: uint16(23828), + 158: uint16(20652), + 159: uint16(33030), + 160: uint16(30209), + 161: uint16(31929), + 162: uint16(28140), + 163: uint16(32736), + 164: uint16(26449), + 165: uint16(23384), + 166: uint16(23544), + 167: uint16(30923), + 168: uint16(25774), + 169: uint16(25619), + 170: uint16(25514), + 171: uint16(25387), + 172: uint16(38169), + 173: uint16(25645), + 174: uint16(36798), + 175: uint16(31572), + 176: uint16(30249), + 177: uint16(25171), + 178: uint16(22823), + 179: uint16(21574), + 180: uint16(27513), + 181: uint16(20643), + 182: uint16(25140), + 183: uint16(24102), + 184: uint16(27526), + 185: uint16(20195), + 186: uint16(36151), + 187: uint16(34955), + 188: uint16(24453), + 189: uint16(36910), + }, + 52: { + 0: uint16(30989), + 1: uint16(30990), + 2: uint16(30991), + 3: uint16(30992), + 4: uint16(30993), + 5: uint16(30994), + 6: uint16(30996), + 7: uint16(30997), + 8: uint16(30998), + 9: uint16(30999), + 10: uint16(31000), + 11: uint16(31001), + 12: uint16(31002), + 13: uint16(31003), + 14: uint16(31004), + 15: uint16(31005), + 16: uint16(31007), + 17: uint16(31008), + 18: uint16(31009), + 19: uint16(31010), + 20: uint16(31011), + 21: uint16(31013), + 22: uint16(31014), + 23: uint16(31015), + 24: uint16(31016), + 25: uint16(31017), + 26: uint16(31018), + 27: uint16(31019), + 28: uint16(31020), + 29: uint16(31021), + 30: uint16(31022), + 31: uint16(31023), + 32: uint16(31024), + 33: uint16(31025), + 34: uint16(31026), + 35: uint16(31027), + 36: uint16(31029), + 37: uint16(31030), + 38: uint16(31031), + 39: uint16(31032), + 40: uint16(31033), + 41: uint16(31037), + 42: uint16(31039), + 43: uint16(31042), + 44: uint16(31043), + 45: uint16(31044), + 46: uint16(31045), + 47: uint16(31047), + 48: uint16(31050), + 49: uint16(31051), + 50: uint16(31052), + 51: uint16(31053), + 52: uint16(31054), + 53: uint16(31055), + 54: uint16(31056), + 55: uint16(31057), + 56: uint16(31058), + 57: uint16(31060), + 58: uint16(31061), + 59: uint16(31064), + 60: uint16(31065), + 61: uint16(31073), + 62: uint16(31075), + 63: uint16(31076), + 64: uint16(31078), + 65: uint16(31081), + 66: uint16(31082), + 67: uint16(31083), + 68: uint16(31084), + 69: uint16(31086), + 70: uint16(31088), + 71: uint16(31089), + 72: uint16(31090), + 73: uint16(31091), + 74: uint16(31092), + 75: uint16(31093), + 76: uint16(31094), + 77: uint16(31097), + 78: uint16(31099), + 79: uint16(31100), + 80: uint16(31101), + 81: uint16(31102), + 82: uint16(31103), + 83: uint16(31106), + 84: uint16(31107), + 85: uint16(31110), + 86: uint16(31111), + 87: uint16(31112), + 88: uint16(31113), + 89: uint16(31115), + 90: uint16(31116), + 91: uint16(31117), + 92: uint16(31118), + 93: uint16(31120), + 94: uint16(31121), + 95: uint16(31122), + 96: uint16(24608), + 97: uint16(32829), + 98: uint16(25285), + 99: uint16(20025), + 100: uint16(21333), + 101: uint16(37112), + 102: uint16(25528), + 103: uint16(32966), + 104: uint16(26086), + 105: uint16(27694), + 106: uint16(20294), + 107: uint16(24814), + 108: uint16(28129), + 109: uint16(35806), + 110: uint16(24377), + 111: uint16(34507), + 112: uint16(24403), + 113: uint16(25377), + 114: uint16(20826), + 115: uint16(33633), + 116: uint16(26723), + 117: uint16(20992), + 118: uint16(25443), + 119: uint16(36424), + 120: uint16(20498), + 121: uint16(23707), + 122: uint16(31095), + 123: uint16(23548), + 124: uint16(21040), + 125: uint16(31291), + 126: uint16(24764), + 127: uint16(36947), + 128: uint16(30423), + 129: uint16(24503), + 130: uint16(24471), + 131: uint16(30340), + 132: uint16(36460), + 133: uint16(28783), + 134: uint16(30331), + 135: uint16(31561), + 136: uint16(30634), + 137: uint16(20979), + 138: uint16(37011), + 139: uint16(22564), + 140: uint16(20302), + 141: uint16(28404), + 142: uint16(36842), + 143: uint16(25932), + 144: uint16(31515), + 145: uint16(29380), + 146: uint16(28068), + 147: uint16(32735), + 148: uint16(23265), + 149: uint16(25269), + 150: uint16(24213), + 151: uint16(22320), + 152: uint16(33922), + 153: uint16(31532), + 154: uint16(24093), + 155: uint16(24351), + 156: uint16(36882), + 157: uint16(32532), + 158: uint16(39072), + 159: uint16(25474), + 160: uint16(28359), + 161: uint16(30872), + 162: uint16(28857), + 163: uint16(20856), + 164: uint16(38747), + 165: uint16(22443), + 166: uint16(30005), + 167: uint16(20291), + 168: uint16(30008), + 169: uint16(24215), + 170: uint16(24806), + 171: uint16(22880), + 172: uint16(28096), + 173: uint16(27583), + 174: uint16(30857), + 175: uint16(21500), + 176: uint16(38613), + 177: uint16(20939), + 178: uint16(20993), + 179: uint16(25481), + 180: uint16(21514), + 181: uint16(38035), + 182: uint16(35843), + 183: uint16(36300), + 184: uint16(29241), + 185: uint16(30879), + 186: uint16(34678), + 187: uint16(36845), + 188: uint16(35853), + 189: uint16(21472), + }, + 53: { + 0: uint16(31123), + 1: uint16(31124), + 2: uint16(31125), + 3: uint16(31126), + 4: uint16(31127), + 5: uint16(31128), + 6: uint16(31129), + 7: uint16(31131), + 8: uint16(31132), + 9: uint16(31133), + 10: uint16(31134), + 11: uint16(31135), + 12: uint16(31136), + 13: uint16(31137), + 14: uint16(31138), + 15: uint16(31139), + 16: uint16(31140), + 17: uint16(31141), + 18: uint16(31142), + 19: uint16(31144), + 20: uint16(31145), + 21: uint16(31146), + 22: uint16(31147), + 23: uint16(31148), + 24: uint16(31149), + 25: uint16(31150), + 26: uint16(31151), + 27: uint16(31152), + 28: uint16(31153), + 29: uint16(31154), + 30: uint16(31156), + 31: uint16(31157), + 32: uint16(31158), + 33: uint16(31159), + 34: uint16(31160), + 35: uint16(31164), + 36: uint16(31167), + 37: uint16(31170), + 38: uint16(31172), + 39: uint16(31173), + 40: uint16(31175), + 41: uint16(31176), + 42: uint16(31178), + 43: uint16(31180), + 44: uint16(31182), + 45: uint16(31183), + 46: uint16(31184), + 47: uint16(31187), + 48: uint16(31188), + 49: uint16(31190), + 50: uint16(31191), + 51: uint16(31193), + 52: uint16(31194), + 53: uint16(31195), + 54: uint16(31196), + 55: uint16(31197), + 56: uint16(31198), + 57: uint16(31200), + 58: uint16(31201), + 59: uint16(31202), + 60: uint16(31205), + 61: uint16(31208), + 62: uint16(31210), + 63: uint16(31212), + 64: uint16(31214), + 65: uint16(31217), + 66: uint16(31218), + 67: uint16(31219), + 68: uint16(31220), + 69: uint16(31221), + 70: uint16(31222), + 71: uint16(31223), + 72: uint16(31225), + 73: uint16(31226), + 74: uint16(31228), + 75: uint16(31230), + 76: uint16(31231), + 77: uint16(31233), + 78: uint16(31236), + 79: uint16(31237), + 80: uint16(31239), + 81: uint16(31240), + 82: uint16(31241), + 83: uint16(31242), + 84: uint16(31244), + 85: uint16(31247), + 86: uint16(31248), + 87: uint16(31249), + 88: uint16(31250), + 89: uint16(31251), + 90: uint16(31253), + 91: uint16(31254), + 92: uint16(31256), + 93: uint16(31257), + 94: uint16(31259), + 95: uint16(31260), + 96: uint16(19969), + 97: uint16(30447), + 98: uint16(21486), + 99: uint16(38025), + 100: uint16(39030), + 101: uint16(40718), + 102: uint16(38189), + 103: uint16(23450), + 104: uint16(35746), + 105: uint16(20002), + 106: uint16(19996), + 107: uint16(20908), + 108: uint16(33891), + 109: uint16(25026), + 110: uint16(21160), + 111: uint16(26635), + 112: uint16(20375), + 113: uint16(24683), + 114: uint16(20923), + 115: uint16(27934), + 116: uint16(20828), + 117: uint16(25238), + 118: uint16(26007), + 119: uint16(38497), + 120: uint16(35910), + 121: uint16(36887), + 122: uint16(30168), + 123: uint16(37117), + 124: uint16(30563), + 125: uint16(27602), + 126: uint16(29322), + 127: uint16(29420), + 128: uint16(35835), + 129: uint16(22581), + 130: uint16(30585), + 131: uint16(36172), + 132: uint16(26460), + 133: uint16(38208), + 134: uint16(32922), + 135: uint16(24230), + 136: uint16(28193), + 137: uint16(22930), + 138: uint16(31471), + 139: uint16(30701), + 140: uint16(38203), + 141: uint16(27573), + 142: uint16(26029), + 143: uint16(32526), + 144: uint16(22534), + 145: uint16(20817), + 146: uint16(38431), + 147: uint16(23545), + 148: uint16(22697), + 149: uint16(21544), + 150: uint16(36466), + 151: uint16(25958), + 152: uint16(39039), + 153: uint16(22244), + 154: uint16(38045), + 155: uint16(30462), + 156: uint16(36929), + 157: uint16(25479), + 158: uint16(21702), + 159: uint16(22810), + 160: uint16(22842), + 161: uint16(22427), + 162: uint16(36530), + 163: uint16(26421), + 164: uint16(36346), + 165: uint16(33333), + 166: uint16(21057), + 167: uint16(24816), + 168: uint16(22549), + 169: uint16(34558), + 170: uint16(23784), + 171: uint16(40517), + 172: uint16(20420), + 173: uint16(39069), + 174: uint16(35769), + 175: uint16(23077), + 176: uint16(24694), + 177: uint16(21380), + 178: uint16(25212), + 179: uint16(36943), + 180: uint16(37122), + 181: uint16(39295), + 182: uint16(24681), + 183: uint16(32780), + 184: uint16(20799), + 185: uint16(32819), + 186: uint16(23572), + 187: uint16(39285), + 188: uint16(27953), + 189: uint16(20108), + }, + 54: { + 0: uint16(31261), + 1: uint16(31263), + 2: uint16(31265), + 3: uint16(31266), + 4: uint16(31268), + 5: uint16(31269), + 6: uint16(31270), + 7: uint16(31271), + 8: uint16(31272), + 9: uint16(31273), + 10: uint16(31274), + 11: uint16(31275), + 12: uint16(31276), + 13: uint16(31277), + 14: uint16(31278), + 15: uint16(31279), + 16: uint16(31280), + 17: uint16(31281), + 18: uint16(31282), + 19: uint16(31284), + 20: uint16(31285), + 21: uint16(31286), + 22: uint16(31288), + 23: uint16(31290), + 24: uint16(31294), + 25: uint16(31296), + 26: uint16(31297), + 27: uint16(31298), + 28: uint16(31299), + 29: uint16(31300), + 30: uint16(31301), + 31: uint16(31303), + 32: uint16(31304), + 33: uint16(31305), + 34: uint16(31306), + 35: uint16(31307), + 36: uint16(31308), + 37: uint16(31309), + 38: uint16(31310), + 39: uint16(31311), + 40: uint16(31312), + 41: uint16(31314), + 42: uint16(31315), + 43: uint16(31316), + 44: uint16(31317), + 45: uint16(31318), + 46: uint16(31320), + 47: uint16(31321), + 48: uint16(31322), + 49: uint16(31323), + 50: uint16(31324), + 51: uint16(31325), + 52: uint16(31326), + 53: uint16(31327), + 54: uint16(31328), + 55: uint16(31329), + 56: uint16(31330), + 57: uint16(31331), + 58: uint16(31332), + 59: uint16(31333), + 60: uint16(31334), + 61: uint16(31335), + 62: uint16(31336), + 63: uint16(31337), + 64: uint16(31338), + 65: uint16(31339), + 66: uint16(31340), + 67: uint16(31341), + 68: uint16(31342), + 69: uint16(31343), + 70: uint16(31345), + 71: uint16(31346), + 72: uint16(31347), + 73: uint16(31349), + 74: uint16(31355), + 75: uint16(31356), + 76: uint16(31357), + 77: uint16(31358), + 78: uint16(31362), + 79: uint16(31365), + 80: uint16(31367), + 81: uint16(31369), + 82: uint16(31370), + 83: uint16(31371), + 84: uint16(31372), + 85: uint16(31374), + 86: uint16(31375), + 87: uint16(31376), + 88: uint16(31379), + 89: uint16(31380), + 90: uint16(31385), + 91: uint16(31386), + 92: uint16(31387), + 93: uint16(31390), + 94: uint16(31393), + 95: uint16(31394), + 96: uint16(36144), + 97: uint16(21457), + 98: uint16(32602), + 99: uint16(31567), + 100: uint16(20240), + 101: uint16(20047), + 102: uint16(38400), + 103: uint16(27861), + 104: uint16(29648), + 105: uint16(34281), + 106: uint16(24070), + 107: uint16(30058), + 108: uint16(32763), + 109: uint16(27146), + 110: uint16(30718), + 111: uint16(38034), + 112: uint16(32321), + 113: uint16(20961), + 114: uint16(28902), + 115: uint16(21453), + 116: uint16(36820), + 117: uint16(33539), + 118: uint16(36137), + 119: uint16(29359), + 120: uint16(39277), + 121: uint16(27867), + 122: uint16(22346), + 123: uint16(33459), + 124: uint16(26041), + 125: uint16(32938), + 126: uint16(25151), + 127: uint16(38450), + 128: uint16(22952), + 129: uint16(20223), + 130: uint16(35775), + 131: uint16(32442), + 132: uint16(25918), + 133: uint16(33778), + 134: uint16(38750), + 135: uint16(21857), + 136: uint16(39134), + 137: uint16(32933), + 138: uint16(21290), + 139: uint16(35837), + 140: uint16(21536), + 141: uint16(32954), + 142: uint16(24223), + 143: uint16(27832), + 144: uint16(36153), + 145: uint16(33452), + 146: uint16(37210), + 147: uint16(21545), + 148: uint16(27675), + 149: uint16(20998), + 150: uint16(32439), + 151: uint16(22367), + 152: uint16(28954), + 153: uint16(27774), + 154: uint16(31881), + 155: uint16(22859), + 156: uint16(20221), + 157: uint16(24575), + 158: uint16(24868), + 159: uint16(31914), + 160: uint16(20016), + 161: uint16(23553), + 162: uint16(26539), + 163: uint16(34562), + 164: uint16(23792), + 165: uint16(38155), + 166: uint16(39118), + 167: uint16(30127), + 168: uint16(28925), + 169: uint16(36898), + 170: uint16(20911), + 171: uint16(32541), + 172: uint16(35773), + 173: uint16(22857), + 174: uint16(20964), + 175: uint16(20315), + 176: uint16(21542), + 177: uint16(22827), + 178: uint16(25975), + 179: uint16(32932), + 180: uint16(23413), + 181: uint16(25206), + 182: uint16(25282), + 183: uint16(36752), + 184: uint16(24133), + 185: uint16(27679), + 186: uint16(31526), + 187: uint16(20239), + 188: uint16(20440), + 189: uint16(26381), + }, + 55: { + 0: uint16(31395), + 1: uint16(31396), + 2: uint16(31399), + 3: uint16(31401), + 4: uint16(31402), + 5: uint16(31403), + 6: uint16(31406), + 7: uint16(31407), + 8: uint16(31408), + 9: uint16(31409), + 10: uint16(31410), + 11: uint16(31412), + 12: uint16(31413), + 13: uint16(31414), + 14: uint16(31415), + 15: uint16(31416), + 16: uint16(31417), + 17: uint16(31418), + 18: uint16(31419), + 19: uint16(31420), + 20: uint16(31421), + 21: uint16(31422), + 22: uint16(31424), + 23: uint16(31425), + 24: uint16(31426), + 25: uint16(31427), + 26: uint16(31428), + 27: uint16(31429), + 28: uint16(31430), + 29: uint16(31431), + 30: uint16(31432), + 31: uint16(31433), + 32: uint16(31434), + 33: uint16(31436), + 34: uint16(31437), + 35: uint16(31438), + 36: uint16(31439), + 37: uint16(31440), + 38: uint16(31441), + 39: uint16(31442), + 40: uint16(31443), + 41: uint16(31444), + 42: uint16(31445), + 43: uint16(31447), + 44: uint16(31448), + 45: uint16(31450), + 46: uint16(31451), + 47: uint16(31452), + 48: uint16(31453), + 49: uint16(31457), + 50: uint16(31458), + 51: uint16(31460), + 52: uint16(31463), + 53: uint16(31464), + 54: uint16(31465), + 55: uint16(31466), + 56: uint16(31467), + 57: uint16(31468), + 58: uint16(31470), + 59: uint16(31472), + 60: uint16(31473), + 61: uint16(31474), + 62: uint16(31475), + 63: uint16(31476), + 64: uint16(31477), + 65: uint16(31478), + 66: uint16(31479), + 67: uint16(31480), + 68: uint16(31483), + 69: uint16(31484), + 70: uint16(31486), + 71: uint16(31488), + 72: uint16(31489), + 73: uint16(31490), + 74: uint16(31493), + 75: uint16(31495), + 76: uint16(31497), + 77: uint16(31500), + 78: uint16(31501), + 79: uint16(31502), + 80: uint16(31504), + 81: uint16(31506), + 82: uint16(31507), + 83: uint16(31510), + 84: uint16(31511), + 85: uint16(31512), + 86: uint16(31514), + 87: uint16(31516), + 88: uint16(31517), + 89: uint16(31519), + 90: uint16(31521), + 91: uint16(31522), + 92: uint16(31523), + 93: uint16(31527), + 94: uint16(31529), + 95: uint16(31533), + 96: uint16(28014), + 97: uint16(28074), + 98: uint16(31119), + 99: uint16(34993), + 100: uint16(24343), + 101: uint16(29995), + 102: uint16(25242), + 103: uint16(36741), + 104: uint16(20463), + 105: uint16(37340), + 106: uint16(26023), + 107: uint16(33071), + 108: uint16(33105), + 109: uint16(24220), + 110: uint16(33104), + 111: uint16(36212), + 112: uint16(21103), + 113: uint16(35206), + 114: uint16(36171), + 115: uint16(22797), + 116: uint16(20613), + 117: uint16(20184), + 118: uint16(38428), + 119: uint16(29238), + 120: uint16(33145), + 121: uint16(36127), + 122: uint16(23500), + 123: uint16(35747), + 124: uint16(38468), + 125: uint16(22919), + 126: uint16(32538), + 127: uint16(21648), + 128: uint16(22134), + 129: uint16(22030), + 130: uint16(35813), + 131: uint16(25913), + 132: uint16(27010), + 133: uint16(38041), + 134: uint16(30422), + 135: uint16(28297), + 136: uint16(24178), + 137: uint16(29976), + 138: uint16(26438), + 139: uint16(26577), + 140: uint16(31487), + 141: uint16(32925), + 142: uint16(36214), + 143: uint16(24863), + 144: uint16(31174), + 145: uint16(25954), + 146: uint16(36195), + 147: uint16(20872), + 148: uint16(21018), + 149: uint16(38050), + 150: uint16(32568), + 151: uint16(32923), + 152: uint16(32434), + 153: uint16(23703), + 154: uint16(28207), + 155: uint16(26464), + 156: uint16(31705), + 157: uint16(30347), + 158: uint16(39640), + 159: uint16(33167), + 160: uint16(32660), + 161: uint16(31957), + 162: uint16(25630), + 163: uint16(38224), + 164: uint16(31295), + 165: uint16(21578), + 166: uint16(21733), + 167: uint16(27468), + 168: uint16(25601), + 169: uint16(25096), + 170: uint16(40509), + 171: uint16(33011), + 172: uint16(30105), + 173: uint16(21106), + 174: uint16(38761), + 175: uint16(33883), + 176: uint16(26684), + 177: uint16(34532), + 178: uint16(38401), + 179: uint16(38548), + 180: uint16(38124), + 181: uint16(20010), + 182: uint16(21508), + 183: uint16(32473), + 184: uint16(26681), + 185: uint16(36319), + 186: uint16(32789), + 187: uint16(26356), + 188: uint16(24218), + 189: uint16(32697), + }, + 56: { + 0: uint16(31535), + 1: uint16(31536), + 2: uint16(31538), + 3: uint16(31540), + 4: uint16(31541), + 5: uint16(31542), + 6: uint16(31543), + 7: uint16(31545), + 8: uint16(31547), + 9: uint16(31549), + 10: uint16(31551), + 11: uint16(31552), + 12: uint16(31553), + 13: uint16(31554), + 14: uint16(31555), + 15: uint16(31556), + 16: uint16(31558), + 17: uint16(31560), + 18: uint16(31562), + 19: uint16(31565), + 20: uint16(31566), + 21: uint16(31571), + 22: uint16(31573), + 23: uint16(31575), + 24: uint16(31577), + 25: uint16(31580), + 26: uint16(31582), + 27: uint16(31583), + 28: uint16(31585), + 29: uint16(31587), + 30: uint16(31588), + 31: uint16(31589), + 32: uint16(31590), + 33: uint16(31591), + 34: uint16(31592), + 35: uint16(31593), + 36: uint16(31594), + 37: uint16(31595), + 38: uint16(31596), + 39: uint16(31597), + 40: uint16(31599), + 41: uint16(31600), + 42: uint16(31603), + 43: uint16(31604), + 44: uint16(31606), + 45: uint16(31608), + 46: uint16(31610), + 47: uint16(31612), + 48: uint16(31613), + 49: uint16(31615), + 50: uint16(31617), + 51: uint16(31618), + 52: uint16(31619), + 53: uint16(31620), + 54: uint16(31622), + 55: uint16(31623), + 56: uint16(31624), + 57: uint16(31625), + 58: uint16(31626), + 59: uint16(31627), + 60: uint16(31628), + 61: uint16(31630), + 62: uint16(31631), + 63: uint16(31633), + 64: uint16(31634), + 65: uint16(31635), + 66: uint16(31638), + 67: uint16(31640), + 68: uint16(31641), + 69: uint16(31642), + 70: uint16(31643), + 71: uint16(31646), + 72: uint16(31647), + 73: uint16(31648), + 74: uint16(31651), + 75: uint16(31652), + 76: uint16(31653), + 77: uint16(31662), + 78: uint16(31663), + 79: uint16(31664), + 80: uint16(31666), + 81: uint16(31667), + 82: uint16(31669), + 83: uint16(31670), + 84: uint16(31671), + 85: uint16(31673), + 86: uint16(31674), + 87: uint16(31675), + 88: uint16(31676), + 89: uint16(31677), + 90: uint16(31678), + 91: uint16(31679), + 92: uint16(31680), + 93: uint16(31682), + 94: uint16(31683), + 95: uint16(31684), + 96: uint16(22466), + 97: uint16(32831), + 98: uint16(26775), + 99: uint16(24037), + 100: uint16(25915), + 101: uint16(21151), + 102: uint16(24685), + 103: uint16(40858), + 104: uint16(20379), + 105: uint16(36524), + 106: uint16(20844), + 107: uint16(23467), + 108: uint16(24339), + 109: uint16(24041), + 110: uint16(27742), + 111: uint16(25329), + 112: uint16(36129), + 113: uint16(20849), + 114: uint16(38057), + 115: uint16(21246), + 116: uint16(27807), + 117: uint16(33503), + 118: uint16(29399), + 119: uint16(22434), + 120: uint16(26500), + 121: uint16(36141), + 122: uint16(22815), + 123: uint16(36764), + 124: uint16(33735), + 125: uint16(21653), + 126: uint16(31629), + 127: uint16(20272), + 128: uint16(27837), + 129: uint16(23396), + 130: uint16(22993), + 131: uint16(40723), + 132: uint16(21476), + 133: uint16(34506), + 134: uint16(39592), + 135: uint16(35895), + 136: uint16(32929), + 137: uint16(25925), + 138: uint16(39038), + 139: uint16(22266), + 140: uint16(38599), + 141: uint16(21038), + 142: uint16(29916), + 143: uint16(21072), + 144: uint16(23521), + 145: uint16(25346), + 146: uint16(35074), + 147: uint16(20054), + 148: uint16(25296), + 149: uint16(24618), + 150: uint16(26874), + 151: uint16(20851), + 152: uint16(23448), + 153: uint16(20896), + 154: uint16(35266), + 155: uint16(31649), + 156: uint16(39302), + 157: uint16(32592), + 158: uint16(24815), + 159: uint16(28748), + 160: uint16(36143), + 161: uint16(20809), + 162: uint16(24191), + 163: uint16(36891), + 164: uint16(29808), + 165: uint16(35268), + 166: uint16(22317), + 167: uint16(30789), + 168: uint16(24402), + 169: uint16(40863), + 170: uint16(38394), + 171: uint16(36712), + 172: uint16(39740), + 173: uint16(35809), + 174: uint16(30328), + 175: uint16(26690), + 176: uint16(26588), + 177: uint16(36330), + 178: uint16(36149), + 179: uint16(21053), + 180: uint16(36746), + 181: uint16(28378), + 182: uint16(26829), + 183: uint16(38149), + 184: uint16(37101), + 185: uint16(22269), + 186: uint16(26524), + 187: uint16(35065), + 188: uint16(36807), + 189: uint16(21704), + }, + 57: { + 0: uint16(31685), + 1: uint16(31688), + 2: uint16(31689), + 3: uint16(31690), + 4: uint16(31691), + 5: uint16(31693), + 6: uint16(31694), + 7: uint16(31695), + 8: uint16(31696), + 9: uint16(31698), + 10: uint16(31700), + 11: uint16(31701), + 12: uint16(31702), + 13: uint16(31703), + 14: uint16(31704), + 15: uint16(31707), + 16: uint16(31708), + 17: uint16(31710), + 18: uint16(31711), + 19: uint16(31712), + 20: uint16(31714), + 21: uint16(31715), + 22: uint16(31716), + 23: uint16(31719), + 24: uint16(31720), + 25: uint16(31721), + 26: uint16(31723), + 27: uint16(31724), + 28: uint16(31725), + 29: uint16(31727), + 30: uint16(31728), + 31: uint16(31730), + 32: uint16(31731), + 33: uint16(31732), + 34: uint16(31733), + 35: uint16(31734), + 36: uint16(31736), + 37: uint16(31737), + 38: uint16(31738), + 39: uint16(31739), + 40: uint16(31741), + 41: uint16(31743), + 42: uint16(31744), + 43: uint16(31745), + 44: uint16(31746), + 45: uint16(31747), + 46: uint16(31748), + 47: uint16(31749), + 48: uint16(31750), + 49: uint16(31752), + 50: uint16(31753), + 51: uint16(31754), + 52: uint16(31757), + 53: uint16(31758), + 54: uint16(31760), + 55: uint16(31761), + 56: uint16(31762), + 57: uint16(31763), + 58: uint16(31764), + 59: uint16(31765), + 60: uint16(31767), + 61: uint16(31768), + 62: uint16(31769), + 63: uint16(31770), + 64: uint16(31771), + 65: uint16(31772), + 66: uint16(31773), + 67: uint16(31774), + 68: uint16(31776), + 69: uint16(31777), + 70: uint16(31778), + 71: uint16(31779), + 72: uint16(31780), + 73: uint16(31781), + 74: uint16(31784), + 75: uint16(31785), + 76: uint16(31787), + 77: uint16(31788), + 78: uint16(31789), + 79: uint16(31790), + 80: uint16(31791), + 81: uint16(31792), + 82: uint16(31793), + 83: uint16(31794), + 84: uint16(31795), + 85: uint16(31796), + 86: uint16(31797), + 87: uint16(31798), + 88: uint16(31799), + 89: uint16(31801), + 90: uint16(31802), + 91: uint16(31803), + 92: uint16(31804), + 93: uint16(31805), + 94: uint16(31806), + 95: uint16(31810), + 96: uint16(39608), + 97: uint16(23401), + 98: uint16(28023), + 99: uint16(27686), + 100: uint16(20133), + 101: uint16(23475), + 102: uint16(39559), + 103: uint16(37219), + 104: uint16(25000), + 105: uint16(37039), + 106: uint16(38889), + 107: uint16(21547), + 108: uint16(28085), + 109: uint16(23506), + 110: uint16(20989), + 111: uint16(21898), + 112: uint16(32597), + 113: uint16(32752), + 114: uint16(25788), + 115: uint16(25421), + 116: uint16(26097), + 117: uint16(25022), + 118: uint16(24717), + 119: uint16(28938), + 120: uint16(27735), + 121: uint16(27721), + 122: uint16(22831), + 123: uint16(26477), + 124: uint16(33322), + 125: uint16(22741), + 126: uint16(22158), + 127: uint16(35946), + 128: uint16(27627), + 129: uint16(37085), + 130: uint16(22909), + 131: uint16(32791), + 132: uint16(21495), + 133: uint16(28009), + 134: uint16(21621), + 135: uint16(21917), + 136: uint16(33655), + 137: uint16(33743), + 138: uint16(26680), + 139: uint16(31166), + 140: uint16(21644), + 141: uint16(20309), + 142: uint16(21512), + 143: uint16(30418), + 144: uint16(35977), + 145: uint16(38402), + 146: uint16(27827), + 147: uint16(28088), + 148: uint16(36203), + 149: uint16(35088), + 150: uint16(40548), + 151: uint16(36154), + 152: uint16(22079), + 153: uint16(40657), + 154: uint16(30165), + 155: uint16(24456), + 156: uint16(29408), + 157: uint16(24680), + 158: uint16(21756), + 159: uint16(20136), + 160: uint16(27178), + 161: uint16(34913), + 162: uint16(24658), + 163: uint16(36720), + 164: uint16(21700), + 165: uint16(28888), + 166: uint16(34425), + 167: uint16(40511), + 168: uint16(27946), + 169: uint16(23439), + 170: uint16(24344), + 171: uint16(32418), + 172: uint16(21897), + 173: uint16(20399), + 174: uint16(29492), + 175: uint16(21564), + 176: uint16(21402), + 177: uint16(20505), + 178: uint16(21518), + 179: uint16(21628), + 180: uint16(20046), + 181: uint16(24573), + 182: uint16(29786), + 183: uint16(22774), + 184: uint16(33899), + 185: uint16(32993), + 186: uint16(34676), + 187: uint16(29392), + 188: uint16(31946), + 189: uint16(28246), + }, + 58: { + 0: uint16(31811), + 1: uint16(31812), + 2: uint16(31813), + 3: uint16(31814), + 4: uint16(31815), + 5: uint16(31816), + 6: uint16(31817), + 7: uint16(31818), + 8: uint16(31819), + 9: uint16(31820), + 10: uint16(31822), + 11: uint16(31823), + 12: uint16(31824), + 13: uint16(31825), + 14: uint16(31826), + 15: uint16(31827), + 16: uint16(31828), + 17: uint16(31829), + 18: uint16(31830), + 19: uint16(31831), + 20: uint16(31832), + 21: uint16(31833), + 22: uint16(31834), + 23: uint16(31835), + 24: uint16(31836), + 25: uint16(31837), + 26: uint16(31838), + 27: uint16(31839), + 28: uint16(31840), + 29: uint16(31841), + 30: uint16(31842), + 31: uint16(31843), + 32: uint16(31844), + 33: uint16(31845), + 34: uint16(31846), + 35: uint16(31847), + 36: uint16(31848), + 37: uint16(31849), + 38: uint16(31850), + 39: uint16(31851), + 40: uint16(31852), + 41: uint16(31853), + 42: uint16(31854), + 43: uint16(31855), + 44: uint16(31856), + 45: uint16(31857), + 46: uint16(31858), + 47: uint16(31861), + 48: uint16(31862), + 49: uint16(31863), + 50: uint16(31864), + 51: uint16(31865), + 52: uint16(31866), + 53: uint16(31870), + 54: uint16(31871), + 55: uint16(31872), + 56: uint16(31873), + 57: uint16(31874), + 58: uint16(31875), + 59: uint16(31876), + 60: uint16(31877), + 61: uint16(31878), + 62: uint16(31879), + 63: uint16(31880), + 64: uint16(31882), + 65: uint16(31883), + 66: uint16(31884), + 67: uint16(31885), + 68: uint16(31886), + 69: uint16(31887), + 70: uint16(31888), + 71: uint16(31891), + 72: uint16(31892), + 73: uint16(31894), + 74: uint16(31897), + 75: uint16(31898), + 76: uint16(31899), + 77: uint16(31904), + 78: uint16(31905), + 79: uint16(31907), + 80: uint16(31910), + 81: uint16(31911), + 82: uint16(31912), + 83: uint16(31913), + 84: uint16(31915), + 85: uint16(31916), + 86: uint16(31917), + 87: uint16(31919), + 88: uint16(31920), + 89: uint16(31924), + 90: uint16(31925), + 91: uint16(31926), + 92: uint16(31927), + 93: uint16(31928), + 94: uint16(31930), + 95: uint16(31931), + 96: uint16(24359), + 97: uint16(34382), + 98: uint16(21804), + 99: uint16(25252), + 100: uint16(20114), + 101: uint16(27818), + 102: uint16(25143), + 103: uint16(33457), + 104: uint16(21719), + 105: uint16(21326), + 106: uint16(29502), + 107: uint16(28369), + 108: uint16(30011), + 109: uint16(21010), + 110: uint16(21270), + 111: uint16(35805), + 112: uint16(27088), + 113: uint16(24458), + 114: uint16(24576), + 115: uint16(28142), + 116: uint16(22351), + 117: uint16(27426), + 118: uint16(29615), + 119: uint16(26707), + 120: uint16(36824), + 121: uint16(32531), + 122: uint16(25442), + 123: uint16(24739), + 124: uint16(21796), + 125: uint16(30186), + 126: uint16(35938), + 127: uint16(28949), + 128: uint16(28067), + 129: uint16(23462), + 130: uint16(24187), + 131: uint16(33618), + 132: uint16(24908), + 133: uint16(40644), + 134: uint16(30970), + 135: uint16(34647), + 136: uint16(31783), + 137: uint16(30343), + 138: uint16(20976), + 139: uint16(24822), + 140: uint16(29004), + 141: uint16(26179), + 142: uint16(24140), + 143: uint16(24653), + 144: uint16(35854), + 145: uint16(28784), + 146: uint16(25381), + 147: uint16(36745), + 148: uint16(24509), + 149: uint16(24674), + 150: uint16(34516), + 151: uint16(22238), + 152: uint16(27585), + 153: uint16(24724), + 154: uint16(24935), + 155: uint16(21321), + 156: uint16(24800), + 157: uint16(26214), + 158: uint16(36159), + 159: uint16(31229), + 160: uint16(20250), + 161: uint16(28905), + 162: uint16(27719), + 163: uint16(35763), + 164: uint16(35826), + 165: uint16(32472), + 166: uint16(33636), + 167: uint16(26127), + 168: uint16(23130), + 169: uint16(39746), + 170: uint16(27985), + 171: uint16(28151), + 172: uint16(35905), + 173: uint16(27963), + 174: uint16(20249), + 175: uint16(28779), + 176: uint16(33719), + 177: uint16(25110), + 178: uint16(24785), + 179: uint16(38669), + 180: uint16(36135), + 181: uint16(31096), + 182: uint16(20987), + 183: uint16(22334), + 184: uint16(22522), + 185: uint16(26426), + 186: uint16(30072), + 187: uint16(31293), + 188: uint16(31215), + 189: uint16(31637), + }, + 59: { + 0: uint16(31935), + 1: uint16(31936), + 2: uint16(31938), + 3: uint16(31939), + 4: uint16(31940), + 5: uint16(31942), + 6: uint16(31945), + 7: uint16(31947), + 8: uint16(31950), + 9: uint16(31951), + 10: uint16(31952), + 11: uint16(31953), + 12: uint16(31954), + 13: uint16(31955), + 14: uint16(31956), + 15: uint16(31960), + 16: uint16(31962), + 17: uint16(31963), + 18: uint16(31965), + 19: uint16(31966), + 20: uint16(31969), + 21: uint16(31970), + 22: uint16(31971), + 23: uint16(31972), + 24: uint16(31973), + 25: uint16(31974), + 26: uint16(31975), + 27: uint16(31977), + 28: uint16(31978), + 29: uint16(31979), + 30: uint16(31980), + 31: uint16(31981), + 32: uint16(31982), + 33: uint16(31984), + 34: uint16(31985), + 35: uint16(31986), + 36: uint16(31987), + 37: uint16(31988), + 38: uint16(31989), + 39: uint16(31990), + 40: uint16(31991), + 41: uint16(31993), + 42: uint16(31994), + 43: uint16(31996), + 44: uint16(31997), + 45: uint16(31998), + 46: uint16(31999), + 47: uint16(32000), + 48: uint16(32001), + 49: uint16(32002), + 50: uint16(32003), + 51: uint16(32004), + 52: uint16(32005), + 53: uint16(32006), + 54: uint16(32007), + 55: uint16(32008), + 56: uint16(32009), + 57: uint16(32011), + 58: uint16(32012), + 59: uint16(32013), + 60: uint16(32014), + 61: uint16(32015), + 62: uint16(32016), + 63: uint16(32017), + 64: uint16(32018), + 65: uint16(32019), + 66: uint16(32020), + 67: uint16(32021), + 68: uint16(32022), + 69: uint16(32023), + 70: uint16(32024), + 71: uint16(32025), + 72: uint16(32026), + 73: uint16(32027), + 74: uint16(32028), + 75: uint16(32029), + 76: uint16(32030), + 77: uint16(32031), + 78: uint16(32033), + 79: uint16(32035), + 80: uint16(32036), + 81: uint16(32037), + 82: uint16(32038), + 83: uint16(32040), + 84: uint16(32041), + 85: uint16(32042), + 86: uint16(32044), + 87: uint16(32045), + 88: uint16(32046), + 89: uint16(32048), + 90: uint16(32049), + 91: uint16(32050), + 92: uint16(32051), + 93: uint16(32052), + 94: uint16(32053), + 95: uint16(32054), + 96: uint16(32908), + 97: uint16(39269), + 98: uint16(36857), + 99: uint16(28608), + 100: uint16(35749), + 101: uint16(40481), + 102: uint16(23020), + 103: uint16(32489), + 104: uint16(32521), + 105: uint16(21513), + 106: uint16(26497), + 107: uint16(26840), + 108: uint16(36753), + 109: uint16(31821), + 110: uint16(38598), + 111: uint16(21450), + 112: uint16(24613), + 113: uint16(30142), + 114: uint16(27762), + 115: uint16(21363), + 116: uint16(23241), + 117: uint16(32423), + 118: uint16(25380), + 119: uint16(20960), + 120: uint16(33034), + 121: uint16(24049), + 122: uint16(34015), + 123: uint16(25216), + 124: uint16(20864), + 125: uint16(23395), + 126: uint16(20238), + 127: uint16(31085), + 128: uint16(21058), + 129: uint16(24760), + 130: uint16(27982), + 131: uint16(23492), + 132: uint16(23490), + 133: uint16(35745), + 134: uint16(35760), + 135: uint16(26082), + 136: uint16(24524), + 137: uint16(38469), + 138: uint16(22931), + 139: uint16(32487), + 140: uint16(32426), + 141: uint16(22025), + 142: uint16(26551), + 143: uint16(22841), + 144: uint16(20339), + 145: uint16(23478), + 146: uint16(21152), + 147: uint16(33626), + 148: uint16(39050), + 149: uint16(36158), + 150: uint16(30002), + 151: uint16(38078), + 152: uint16(20551), + 153: uint16(31292), + 154: uint16(20215), + 155: uint16(26550), + 156: uint16(39550), + 157: uint16(23233), + 158: uint16(27516), + 159: uint16(30417), + 160: uint16(22362), + 161: uint16(23574), + 162: uint16(31546), + 163: uint16(38388), + 164: uint16(29006), + 165: uint16(20860), + 166: uint16(32937), + 167: uint16(33392), + 168: uint16(22904), + 169: uint16(32516), + 170: uint16(33575), + 171: uint16(26816), + 172: uint16(26604), + 173: uint16(30897), + 174: uint16(30839), + 175: uint16(25315), + 176: uint16(25441), + 177: uint16(31616), + 178: uint16(20461), + 179: uint16(21098), + 180: uint16(20943), + 181: uint16(33616), + 182: uint16(27099), + 183: uint16(37492), + 184: uint16(36341), + 185: uint16(36145), + 186: uint16(35265), + 187: uint16(38190), + 188: uint16(31661), + 189: uint16(20214), + }, + 60: { + 0: uint16(32055), + 1: uint16(32056), + 2: uint16(32057), + 3: uint16(32058), + 4: uint16(32059), + 5: uint16(32060), + 6: uint16(32061), + 7: uint16(32062), + 8: uint16(32063), + 9: uint16(32064), + 10: uint16(32065), + 11: uint16(32066), + 12: uint16(32067), + 13: uint16(32068), + 14: uint16(32069), + 15: uint16(32070), + 16: uint16(32071), + 17: uint16(32072), + 18: uint16(32073), + 19: uint16(32074), + 20: uint16(32075), + 21: uint16(32076), + 22: uint16(32077), + 23: uint16(32078), + 24: uint16(32079), + 25: uint16(32080), + 26: uint16(32081), + 27: uint16(32082), + 28: uint16(32083), + 29: uint16(32084), + 30: uint16(32085), + 31: uint16(32086), + 32: uint16(32087), + 33: uint16(32088), + 34: uint16(32089), + 35: uint16(32090), + 36: uint16(32091), + 37: uint16(32092), + 38: uint16(32093), + 39: uint16(32094), + 40: uint16(32095), + 41: uint16(32096), + 42: uint16(32097), + 43: uint16(32098), + 44: uint16(32099), + 45: uint16(32100), + 46: uint16(32101), + 47: uint16(32102), + 48: uint16(32103), + 49: uint16(32104), + 50: uint16(32105), + 51: uint16(32106), + 52: uint16(32107), + 53: uint16(32108), + 54: uint16(32109), + 55: uint16(32111), + 56: uint16(32112), + 57: uint16(32113), + 58: uint16(32114), + 59: uint16(32115), + 60: uint16(32116), + 61: uint16(32117), + 62: uint16(32118), + 63: uint16(32120), + 64: uint16(32121), + 65: uint16(32122), + 66: uint16(32123), + 67: uint16(32124), + 68: uint16(32125), + 69: uint16(32126), + 70: uint16(32127), + 71: uint16(32128), + 72: uint16(32129), + 73: uint16(32130), + 74: uint16(32131), + 75: uint16(32132), + 76: uint16(32133), + 77: uint16(32134), + 78: uint16(32135), + 79: uint16(32136), + 80: uint16(32137), + 81: uint16(32138), + 82: uint16(32139), + 83: uint16(32140), + 84: uint16(32141), + 85: uint16(32142), + 86: uint16(32143), + 87: uint16(32144), + 88: uint16(32145), + 89: uint16(32146), + 90: uint16(32147), + 91: uint16(32148), + 92: uint16(32149), + 93: uint16(32150), + 94: uint16(32151), + 95: uint16(32152), + 96: uint16(20581), + 97: uint16(33328), + 98: uint16(21073), + 99: uint16(39279), + 100: uint16(28176), + 101: uint16(28293), + 102: uint16(28071), + 103: uint16(24314), + 104: uint16(20725), + 105: uint16(23004), + 106: uint16(23558), + 107: uint16(27974), + 108: uint16(27743), + 109: uint16(30086), + 110: uint16(33931), + 111: uint16(26728), + 112: uint16(22870), + 113: uint16(35762), + 114: uint16(21280), + 115: uint16(37233), + 116: uint16(38477), + 117: uint16(34121), + 118: uint16(26898), + 119: uint16(30977), + 120: uint16(28966), + 121: uint16(33014), + 122: uint16(20132), + 123: uint16(37066), + 124: uint16(27975), + 125: uint16(39556), + 126: uint16(23047), + 127: uint16(22204), + 128: uint16(25605), + 129: uint16(38128), + 130: uint16(30699), + 131: uint16(20389), + 132: uint16(33050), + 133: uint16(29409), + 134: uint16(35282), + 135: uint16(39290), + 136: uint16(32564), + 137: uint16(32478), + 138: uint16(21119), + 139: uint16(25945), + 140: uint16(37237), + 141: uint16(36735), + 142: uint16(36739), + 143: uint16(21483), + 144: uint16(31382), + 145: uint16(25581), + 146: uint16(25509), + 147: uint16(30342), + 148: uint16(31224), + 149: uint16(34903), + 150: uint16(38454), + 151: uint16(25130), + 152: uint16(21163), + 153: uint16(33410), + 154: uint16(26708), + 155: uint16(26480), + 156: uint16(25463), + 157: uint16(30571), + 158: uint16(31469), + 159: uint16(27905), + 160: uint16(32467), + 161: uint16(35299), + 162: uint16(22992), + 163: uint16(25106), + 164: uint16(34249), + 165: uint16(33445), + 166: uint16(30028), + 167: uint16(20511), + 168: uint16(20171), + 169: uint16(30117), + 170: uint16(35819), + 171: uint16(23626), + 172: uint16(24062), + 173: uint16(31563), + 174: uint16(26020), + 175: uint16(37329), + 176: uint16(20170), + 177: uint16(27941), + 178: uint16(35167), + 179: uint16(32039), + 180: uint16(38182), + 181: uint16(20165), + 182: uint16(35880), + 183: uint16(36827), + 184: uint16(38771), + 185: uint16(26187), + 186: uint16(31105), + 187: uint16(36817), + 188: uint16(28908), + 189: uint16(28024), + }, + 61: { + 0: uint16(32153), + 1: uint16(32154), + 2: uint16(32155), + 3: uint16(32156), + 4: uint16(32157), + 5: uint16(32158), + 6: uint16(32159), + 7: uint16(32160), + 8: uint16(32161), + 9: uint16(32162), + 10: uint16(32163), + 11: uint16(32164), + 12: uint16(32165), + 13: uint16(32167), + 14: uint16(32168), + 15: uint16(32169), + 16: uint16(32170), + 17: uint16(32171), + 18: uint16(32172), + 19: uint16(32173), + 20: uint16(32175), + 21: uint16(32176), + 22: uint16(32177), + 23: uint16(32178), + 24: uint16(32179), + 25: uint16(32180), + 26: uint16(32181), + 27: uint16(32182), + 28: uint16(32183), + 29: uint16(32184), + 30: uint16(32185), + 31: uint16(32186), + 32: uint16(32187), + 33: uint16(32188), + 34: uint16(32189), + 35: uint16(32190), + 36: uint16(32191), + 37: uint16(32192), + 38: uint16(32193), + 39: uint16(32194), + 40: uint16(32195), + 41: uint16(32196), + 42: uint16(32197), + 43: uint16(32198), + 44: uint16(32199), + 45: uint16(32200), + 46: uint16(32201), + 47: uint16(32202), + 48: uint16(32203), + 49: uint16(32204), + 50: uint16(32205), + 51: uint16(32206), + 52: uint16(32207), + 53: uint16(32208), + 54: uint16(32209), + 55: uint16(32210), + 56: uint16(32211), + 57: uint16(32212), + 58: uint16(32213), + 59: uint16(32214), + 60: uint16(32215), + 61: uint16(32216), + 62: uint16(32217), + 63: uint16(32218), + 64: uint16(32219), + 65: uint16(32220), + 66: uint16(32221), + 67: uint16(32222), + 68: uint16(32223), + 69: uint16(32224), + 70: uint16(32225), + 71: uint16(32226), + 72: uint16(32227), + 73: uint16(32228), + 74: uint16(32229), + 75: uint16(32230), + 76: uint16(32231), + 77: uint16(32232), + 78: uint16(32233), + 79: uint16(32234), + 80: uint16(32235), + 81: uint16(32236), + 82: uint16(32237), + 83: uint16(32238), + 84: uint16(32239), + 85: uint16(32240), + 86: uint16(32241), + 87: uint16(32242), + 88: uint16(32243), + 89: uint16(32244), + 90: uint16(32245), + 91: uint16(32246), + 92: uint16(32247), + 93: uint16(32248), + 94: uint16(32249), + 95: uint16(32250), + 96: uint16(23613), + 97: uint16(21170), + 98: uint16(33606), + 99: uint16(20834), + 100: uint16(33550), + 101: uint16(30555), + 102: uint16(26230), + 103: uint16(40120), + 104: uint16(20140), + 105: uint16(24778), + 106: uint16(31934), + 107: uint16(31923), + 108: uint16(32463), + 109: uint16(20117), + 110: uint16(35686), + 111: uint16(26223), + 112: uint16(39048), + 113: uint16(38745), + 114: uint16(22659), + 115: uint16(25964), + 116: uint16(38236), + 117: uint16(24452), + 118: uint16(30153), + 119: uint16(38742), + 120: uint16(31455), + 121: uint16(31454), + 122: uint16(20928), + 123: uint16(28847), + 124: uint16(31384), + 125: uint16(25578), + 126: uint16(31350), + 127: uint16(32416), + 128: uint16(29590), + 129: uint16(38893), + 130: uint16(20037), + 131: uint16(28792), + 132: uint16(20061), + 133: uint16(37202), + 134: uint16(21417), + 135: uint16(25937), + 136: uint16(26087), + 137: uint16(33276), + 138: uint16(33285), + 139: uint16(21646), + 140: uint16(23601), + 141: uint16(30106), + 142: uint16(38816), + 143: uint16(25304), + 144: uint16(29401), + 145: uint16(30141), + 146: uint16(23621), + 147: uint16(39545), + 148: uint16(33738), + 149: uint16(23616), + 150: uint16(21632), + 151: uint16(30697), + 152: uint16(20030), + 153: uint16(27822), + 154: uint16(32858), + 155: uint16(25298), + 156: uint16(25454), + 157: uint16(24040), + 158: uint16(20855), + 159: uint16(36317), + 160: uint16(36382), + 161: uint16(38191), + 162: uint16(20465), + 163: uint16(21477), + 164: uint16(24807), + 165: uint16(28844), + 166: uint16(21095), + 167: uint16(25424), + 168: uint16(40515), + 169: uint16(23071), + 170: uint16(20518), + 171: uint16(30519), + 172: uint16(21367), + 173: uint16(32482), + 174: uint16(25733), + 175: uint16(25899), + 176: uint16(25225), + 177: uint16(25496), + 178: uint16(20500), + 179: uint16(29237), + 180: uint16(35273), + 181: uint16(20915), + 182: uint16(35776), + 183: uint16(32477), + 184: uint16(22343), + 185: uint16(33740), + 186: uint16(38055), + 187: uint16(20891), + 188: uint16(21531), + 189: uint16(23803), + }, + 62: { + 0: uint16(32251), + 1: uint16(32252), + 2: uint16(32253), + 3: uint16(32254), + 4: uint16(32255), + 5: uint16(32256), + 6: uint16(32257), + 7: uint16(32258), + 8: uint16(32259), + 9: uint16(32260), + 10: uint16(32261), + 11: uint16(32262), + 12: uint16(32263), + 13: uint16(32264), + 14: uint16(32265), + 15: uint16(32266), + 16: uint16(32267), + 17: uint16(32268), + 18: uint16(32269), + 19: uint16(32270), + 20: uint16(32271), + 21: uint16(32272), + 22: uint16(32273), + 23: uint16(32274), + 24: uint16(32275), + 25: uint16(32276), + 26: uint16(32277), + 27: uint16(32278), + 28: uint16(32279), + 29: uint16(32280), + 30: uint16(32281), + 31: uint16(32282), + 32: uint16(32283), + 33: uint16(32284), + 34: uint16(32285), + 35: uint16(32286), + 36: uint16(32287), + 37: uint16(32288), + 38: uint16(32289), + 39: uint16(32290), + 40: uint16(32291), + 41: uint16(32292), + 42: uint16(32293), + 43: uint16(32294), + 44: uint16(32295), + 45: uint16(32296), + 46: uint16(32297), + 47: uint16(32298), + 48: uint16(32299), + 49: uint16(32300), + 50: uint16(32301), + 51: uint16(32302), + 52: uint16(32303), + 53: uint16(32304), + 54: uint16(32305), + 55: uint16(32306), + 56: uint16(32307), + 57: uint16(32308), + 58: uint16(32309), + 59: uint16(32310), + 60: uint16(32311), + 61: uint16(32312), + 62: uint16(32313), + 63: uint16(32314), + 64: uint16(32316), + 65: uint16(32317), + 66: uint16(32318), + 67: uint16(32319), + 68: uint16(32320), + 69: uint16(32322), + 70: uint16(32323), + 71: uint16(32324), + 72: uint16(32325), + 73: uint16(32326), + 74: uint16(32328), + 75: uint16(32329), + 76: uint16(32330), + 77: uint16(32331), + 78: uint16(32332), + 79: uint16(32333), + 80: uint16(32334), + 81: uint16(32335), + 82: uint16(32336), + 83: uint16(32337), + 84: uint16(32338), + 85: uint16(32339), + 86: uint16(32340), + 87: uint16(32341), + 88: uint16(32342), + 89: uint16(32343), + 90: uint16(32344), + 91: uint16(32345), + 92: uint16(32346), + 93: uint16(32347), + 94: uint16(32348), + 95: uint16(32349), + 96: uint16(20426), + 97: uint16(31459), + 98: uint16(27994), + 99: uint16(37089), + 100: uint16(39567), + 101: uint16(21888), + 102: uint16(21654), + 103: uint16(21345), + 104: uint16(21679), + 105: uint16(24320), + 106: uint16(25577), + 107: uint16(26999), + 108: uint16(20975), + 109: uint16(24936), + 110: uint16(21002), + 111: uint16(22570), + 112: uint16(21208), + 113: uint16(22350), + 114: uint16(30733), + 115: uint16(30475), + 116: uint16(24247), + 117: uint16(24951), + 118: uint16(31968), + 119: uint16(25179), + 120: uint16(25239), + 121: uint16(20130), + 122: uint16(28821), + 123: uint16(32771), + 124: uint16(25335), + 125: uint16(28900), + 126: uint16(38752), + 127: uint16(22391), + 128: uint16(33499), + 129: uint16(26607), + 130: uint16(26869), + 131: uint16(30933), + 132: uint16(39063), + 133: uint16(31185), + 134: uint16(22771), + 135: uint16(21683), + 136: uint16(21487), + 137: uint16(28212), + 138: uint16(20811), + 139: uint16(21051), + 140: uint16(23458), + 141: uint16(35838), + 142: uint16(32943), + 143: uint16(21827), + 144: uint16(22438), + 145: uint16(24691), + 146: uint16(22353), + 147: uint16(21549), + 148: uint16(31354), + 149: uint16(24656), + 150: uint16(23380), + 151: uint16(25511), + 152: uint16(25248), + 153: uint16(21475), + 154: uint16(25187), + 155: uint16(23495), + 156: uint16(26543), + 157: uint16(21741), + 158: uint16(31391), + 159: uint16(33510), + 160: uint16(37239), + 161: uint16(24211), + 162: uint16(35044), + 163: uint16(22840), + 164: uint16(22446), + 165: uint16(25358), + 166: uint16(36328), + 167: uint16(33007), + 168: uint16(22359), + 169: uint16(31607), + 170: uint16(20393), + 171: uint16(24555), + 172: uint16(23485), + 173: uint16(27454), + 174: uint16(21281), + 175: uint16(31568), + 176: uint16(29378), + 177: uint16(26694), + 178: uint16(30719), + 179: uint16(30518), + 180: uint16(26103), + 181: uint16(20917), + 182: uint16(20111), + 183: uint16(30420), + 184: uint16(23743), + 185: uint16(31397), + 186: uint16(33909), + 187: uint16(22862), + 188: uint16(39745), + 189: uint16(20608), + }, + 63: { + 0: uint16(32350), + 1: uint16(32351), + 2: uint16(32352), + 3: uint16(32353), + 4: uint16(32354), + 5: uint16(32355), + 6: uint16(32356), + 7: uint16(32357), + 8: uint16(32358), + 9: uint16(32359), + 10: uint16(32360), + 11: uint16(32361), + 12: uint16(32362), + 13: uint16(32363), + 14: uint16(32364), + 15: uint16(32365), + 16: uint16(32366), + 17: uint16(32367), + 18: uint16(32368), + 19: uint16(32369), + 20: uint16(32370), + 21: uint16(32371), + 22: uint16(32372), + 23: uint16(32373), + 24: uint16(32374), + 25: uint16(32375), + 26: uint16(32376), + 27: uint16(32377), + 28: uint16(32378), + 29: uint16(32379), + 30: uint16(32380), + 31: uint16(32381), + 32: uint16(32382), + 33: uint16(32383), + 34: uint16(32384), + 35: uint16(32385), + 36: uint16(32387), + 37: uint16(32388), + 38: uint16(32389), + 39: uint16(32390), + 40: uint16(32391), + 41: uint16(32392), + 42: uint16(32393), + 43: uint16(32394), + 44: uint16(32395), + 45: uint16(32396), + 46: uint16(32397), + 47: uint16(32398), + 48: uint16(32399), + 49: uint16(32400), + 50: uint16(32401), + 51: uint16(32402), + 52: uint16(32403), + 53: uint16(32404), + 54: uint16(32405), + 55: uint16(32406), + 56: uint16(32407), + 57: uint16(32408), + 58: uint16(32409), + 59: uint16(32410), + 60: uint16(32412), + 61: uint16(32413), + 62: uint16(32414), + 63: uint16(32430), + 64: uint16(32436), + 65: uint16(32443), + 66: uint16(32444), + 67: uint16(32470), + 68: uint16(32484), + 69: uint16(32492), + 70: uint16(32505), + 71: uint16(32522), + 72: uint16(32528), + 73: uint16(32542), + 74: uint16(32567), + 75: uint16(32569), + 76: uint16(32571), + 77: uint16(32572), + 78: uint16(32573), + 79: uint16(32574), + 80: uint16(32575), + 81: uint16(32576), + 82: uint16(32577), + 83: uint16(32579), + 84: uint16(32582), + 85: uint16(32583), + 86: uint16(32584), + 87: uint16(32585), + 88: uint16(32586), + 89: uint16(32587), + 90: uint16(32588), + 91: uint16(32589), + 92: uint16(32590), + 93: uint16(32591), + 94: uint16(32594), + 95: uint16(32595), + 96: uint16(39304), + 97: uint16(24871), + 98: uint16(28291), + 99: uint16(22372), + 100: uint16(26118), + 101: uint16(25414), + 102: uint16(22256), + 103: uint16(25324), + 104: uint16(25193), + 105: uint16(24275), + 106: uint16(38420), + 107: uint16(22403), + 108: uint16(25289), + 109: uint16(21895), + 110: uint16(34593), + 111: uint16(33098), + 112: uint16(36771), + 113: uint16(21862), + 114: uint16(33713), + 115: uint16(26469), + 116: uint16(36182), + 117: uint16(34013), + 118: uint16(23146), + 119: uint16(26639), + 120: uint16(25318), + 121: uint16(31726), + 122: uint16(38417), + 123: uint16(20848), + 124: uint16(28572), + 125: uint16(35888), + 126: uint16(25597), + 127: uint16(35272), + 128: uint16(25042), + 129: uint16(32518), + 130: uint16(28866), + 131: uint16(28389), + 132: uint16(29701), + 133: uint16(27028), + 134: uint16(29436), + 135: uint16(24266), + 136: uint16(37070), + 137: uint16(26391), + 138: uint16(28010), + 139: uint16(25438), + 140: uint16(21171), + 141: uint16(29282), + 142: uint16(32769), + 143: uint16(20332), + 144: uint16(23013), + 145: uint16(37226), + 146: uint16(28889), + 147: uint16(28061), + 148: uint16(21202), + 149: uint16(20048), + 150: uint16(38647), + 151: uint16(38253), + 152: uint16(34174), + 153: uint16(30922), + 154: uint16(32047), + 155: uint16(20769), + 156: uint16(22418), + 157: uint16(25794), + 158: uint16(32907), + 159: uint16(31867), + 160: uint16(27882), + 161: uint16(26865), + 162: uint16(26974), + 163: uint16(20919), + 164: uint16(21400), + 165: uint16(26792), + 166: uint16(29313), + 167: uint16(40654), + 168: uint16(31729), + 169: uint16(29432), + 170: uint16(31163), + 171: uint16(28435), + 172: uint16(29702), + 173: uint16(26446), + 174: uint16(37324), + 175: uint16(40100), + 176: uint16(31036), + 177: uint16(33673), + 178: uint16(33620), + 179: uint16(21519), + 180: uint16(26647), + 181: uint16(20029), + 182: uint16(21385), + 183: uint16(21169), + 184: uint16(30782), + 185: uint16(21382), + 186: uint16(21033), + 187: uint16(20616), + 188: uint16(20363), + 189: uint16(20432), + }, + 64: { + 0: uint16(32598), + 1: uint16(32601), + 2: uint16(32603), + 3: uint16(32604), + 4: uint16(32605), + 5: uint16(32606), + 6: uint16(32608), + 7: uint16(32611), + 8: uint16(32612), + 9: uint16(32613), + 10: uint16(32614), + 11: uint16(32615), + 12: uint16(32619), + 13: uint16(32620), + 14: uint16(32621), + 15: uint16(32623), + 16: uint16(32624), + 17: uint16(32627), + 18: uint16(32629), + 19: uint16(32630), + 20: uint16(32631), + 21: uint16(32632), + 22: uint16(32634), + 23: uint16(32635), + 24: uint16(32636), + 25: uint16(32637), + 26: uint16(32639), + 27: uint16(32640), + 28: uint16(32642), + 29: uint16(32643), + 30: uint16(32644), + 31: uint16(32645), + 32: uint16(32646), + 33: uint16(32647), + 34: uint16(32648), + 35: uint16(32649), + 36: uint16(32651), + 37: uint16(32653), + 38: uint16(32655), + 39: uint16(32656), + 40: uint16(32657), + 41: uint16(32658), + 42: uint16(32659), + 43: uint16(32661), + 44: uint16(32662), + 45: uint16(32663), + 46: uint16(32664), + 47: uint16(32665), + 48: uint16(32667), + 49: uint16(32668), + 50: uint16(32672), + 51: uint16(32674), + 52: uint16(32675), + 53: uint16(32677), + 54: uint16(32678), + 55: uint16(32680), + 56: uint16(32681), + 57: uint16(32682), + 58: uint16(32683), + 59: uint16(32684), + 60: uint16(32685), + 61: uint16(32686), + 62: uint16(32689), + 63: uint16(32691), + 64: uint16(32692), + 65: uint16(32693), + 66: uint16(32694), + 67: uint16(32695), + 68: uint16(32698), + 69: uint16(32699), + 70: uint16(32702), + 71: uint16(32704), + 72: uint16(32706), + 73: uint16(32707), + 74: uint16(32708), + 75: uint16(32710), + 76: uint16(32711), + 77: uint16(32712), + 78: uint16(32713), + 79: uint16(32715), + 80: uint16(32717), + 81: uint16(32719), + 82: uint16(32720), + 83: uint16(32721), + 84: uint16(32722), + 85: uint16(32723), + 86: uint16(32726), + 87: uint16(32727), + 88: uint16(32729), + 89: uint16(32730), + 90: uint16(32731), + 91: uint16(32732), + 92: uint16(32733), + 93: uint16(32734), + 94: uint16(32738), + 95: uint16(32739), + 96: uint16(30178), + 97: uint16(31435), + 98: uint16(31890), + 99: uint16(27813), + 100: uint16(38582), + 101: uint16(21147), + 102: uint16(29827), + 103: uint16(21737), + 104: uint16(20457), + 105: uint16(32852), + 106: uint16(33714), + 107: uint16(36830), + 108: uint16(38256), + 109: uint16(24265), + 110: uint16(24604), + 111: uint16(28063), + 112: uint16(24088), + 113: uint16(25947), + 114: uint16(33080), + 115: uint16(38142), + 116: uint16(24651), + 117: uint16(28860), + 118: uint16(32451), + 119: uint16(31918), + 120: uint16(20937), + 121: uint16(26753), + 122: uint16(31921), + 123: uint16(33391), + 124: uint16(20004), + 125: uint16(36742), + 126: uint16(37327), + 127: uint16(26238), + 128: uint16(20142), + 129: uint16(35845), + 130: uint16(25769), + 131: uint16(32842), + 132: uint16(20698), + 133: uint16(30103), + 134: uint16(29134), + 135: uint16(23525), + 136: uint16(36797), + 137: uint16(28518), + 138: uint16(20102), + 139: uint16(25730), + 140: uint16(38243), + 141: uint16(24278), + 142: uint16(26009), + 143: uint16(21015), + 144: uint16(35010), + 145: uint16(28872), + 146: uint16(21155), + 147: uint16(29454), + 148: uint16(29747), + 149: uint16(26519), + 150: uint16(30967), + 151: uint16(38678), + 152: uint16(20020), + 153: uint16(37051), + 154: uint16(40158), + 155: uint16(28107), + 156: uint16(20955), + 157: uint16(36161), + 158: uint16(21533), + 159: uint16(25294), + 160: uint16(29618), + 161: uint16(33777), + 162: uint16(38646), + 163: uint16(40836), + 164: uint16(38083), + 165: uint16(20278), + 166: uint16(32666), + 167: uint16(20940), + 168: uint16(28789), + 169: uint16(38517), + 170: uint16(23725), + 171: uint16(39046), + 172: uint16(21478), + 173: uint16(20196), + 174: uint16(28316), + 175: uint16(29705), + 176: uint16(27060), + 177: uint16(30827), + 178: uint16(39311), + 179: uint16(30041), + 180: uint16(21016), + 181: uint16(30244), + 182: uint16(27969), + 183: uint16(26611), + 184: uint16(20845), + 185: uint16(40857), + 186: uint16(32843), + 187: uint16(21657), + 188: uint16(31548), + 189: uint16(31423), + }, + 65: { + 0: uint16(32740), + 1: uint16(32743), + 2: uint16(32744), + 3: uint16(32746), + 4: uint16(32747), + 5: uint16(32748), + 6: uint16(32749), + 7: uint16(32751), + 8: uint16(32754), + 9: uint16(32756), + 10: uint16(32757), + 11: uint16(32758), + 12: uint16(32759), + 13: uint16(32760), + 14: uint16(32761), + 15: uint16(32762), + 16: uint16(32765), + 17: uint16(32766), + 18: uint16(32767), + 19: uint16(32770), + 20: uint16(32775), + 21: uint16(32776), + 22: uint16(32777), + 23: uint16(32778), + 24: uint16(32782), + 25: uint16(32783), + 26: uint16(32785), + 27: uint16(32787), + 28: uint16(32794), + 29: uint16(32795), + 30: uint16(32797), + 31: uint16(32798), + 32: uint16(32799), + 33: uint16(32801), + 34: uint16(32803), + 35: uint16(32804), + 36: uint16(32811), + 37: uint16(32812), + 38: uint16(32813), + 39: uint16(32814), + 40: uint16(32815), + 41: uint16(32816), + 42: uint16(32818), + 43: uint16(32820), + 44: uint16(32825), + 45: uint16(32826), + 46: uint16(32828), + 47: uint16(32830), + 48: uint16(32832), + 49: uint16(32833), + 50: uint16(32836), + 51: uint16(32837), + 52: uint16(32839), + 53: uint16(32840), + 54: uint16(32841), + 55: uint16(32846), + 56: uint16(32847), + 57: uint16(32848), + 58: uint16(32849), + 59: uint16(32851), + 60: uint16(32853), + 61: uint16(32854), + 62: uint16(32855), + 63: uint16(32857), + 64: uint16(32859), + 65: uint16(32860), + 66: uint16(32861), + 67: uint16(32862), + 68: uint16(32863), + 69: uint16(32864), + 70: uint16(32865), + 71: uint16(32866), + 72: uint16(32867), + 73: uint16(32868), + 74: uint16(32869), + 75: uint16(32870), + 76: uint16(32871), + 77: uint16(32872), + 78: uint16(32875), + 79: uint16(32876), + 80: uint16(32877), + 81: uint16(32878), + 82: uint16(32879), + 83: uint16(32880), + 84: uint16(32882), + 85: uint16(32883), + 86: uint16(32884), + 87: uint16(32885), + 88: uint16(32886), + 89: uint16(32887), + 90: uint16(32888), + 91: uint16(32889), + 92: uint16(32890), + 93: uint16(32891), + 94: uint16(32892), + 95: uint16(32893), + 96: uint16(38534), + 97: uint16(22404), + 98: uint16(25314), + 99: uint16(38471), + 100: uint16(27004), + 101: uint16(23044), + 102: uint16(25602), + 103: uint16(31699), + 104: uint16(28431), + 105: uint16(38475), + 106: uint16(33446), + 107: uint16(21346), + 108: uint16(39045), + 109: uint16(24208), + 110: uint16(28809), + 111: uint16(25523), + 112: uint16(21348), + 113: uint16(34383), + 114: uint16(40065), + 115: uint16(40595), + 116: uint16(30860), + 117: uint16(38706), + 118: uint16(36335), + 119: uint16(36162), + 120: uint16(40575), + 121: uint16(28510), + 122: uint16(31108), + 123: uint16(24405), + 124: uint16(38470), + 125: uint16(25134), + 126: uint16(39540), + 127: uint16(21525), + 128: uint16(38109), + 129: uint16(20387), + 130: uint16(26053), + 131: uint16(23653), + 132: uint16(23649), + 133: uint16(32533), + 134: uint16(34385), + 135: uint16(27695), + 136: uint16(24459), + 137: uint16(29575), + 138: uint16(28388), + 139: uint16(32511), + 140: uint16(23782), + 141: uint16(25371), + 142: uint16(23402), + 143: uint16(28390), + 144: uint16(21365), + 145: uint16(20081), + 146: uint16(25504), + 147: uint16(30053), + 148: uint16(25249), + 149: uint16(36718), + 150: uint16(20262), + 151: uint16(20177), + 152: uint16(27814), + 153: uint16(32438), + 154: uint16(35770), + 155: uint16(33821), + 156: uint16(34746), + 157: uint16(32599), + 158: uint16(36923), + 159: uint16(38179), + 160: uint16(31657), + 161: uint16(39585), + 162: uint16(35064), + 163: uint16(33853), + 164: uint16(27931), + 165: uint16(39558), + 166: uint16(32476), + 167: uint16(22920), + 168: uint16(40635), + 169: uint16(29595), + 170: uint16(30721), + 171: uint16(34434), + 172: uint16(39532), + 173: uint16(39554), + 174: uint16(22043), + 175: uint16(21527), + 176: uint16(22475), + 177: uint16(20080), + 178: uint16(40614), + 179: uint16(21334), + 180: uint16(36808), + 181: uint16(33033), + 182: uint16(30610), + 183: uint16(39314), + 184: uint16(34542), + 185: uint16(28385), + 186: uint16(34067), + 187: uint16(26364), + 188: uint16(24930), + 189: uint16(28459), + }, + 66: { + 0: uint16(32894), + 1: uint16(32897), + 2: uint16(32898), + 3: uint16(32901), + 4: uint16(32904), + 5: uint16(32906), + 6: uint16(32909), + 7: uint16(32910), + 8: uint16(32911), + 9: uint16(32912), + 10: uint16(32913), + 11: uint16(32914), + 12: uint16(32916), + 13: uint16(32917), + 14: uint16(32919), + 15: uint16(32921), + 16: uint16(32926), + 17: uint16(32931), + 18: uint16(32934), + 19: uint16(32935), + 20: uint16(32936), + 21: uint16(32940), + 22: uint16(32944), + 23: uint16(32947), + 24: uint16(32949), + 25: uint16(32950), + 26: uint16(32952), + 27: uint16(32953), + 28: uint16(32955), + 29: uint16(32965), + 30: uint16(32967), + 31: uint16(32968), + 32: uint16(32969), + 33: uint16(32970), + 34: uint16(32971), + 35: uint16(32975), + 36: uint16(32976), + 37: uint16(32977), + 38: uint16(32978), + 39: uint16(32979), + 40: uint16(32980), + 41: uint16(32981), + 42: uint16(32984), + 43: uint16(32991), + 44: uint16(32992), + 45: uint16(32994), + 46: uint16(32995), + 47: uint16(32998), + 48: uint16(33006), + 49: uint16(33013), + 50: uint16(33015), + 51: uint16(33017), + 52: uint16(33019), + 53: uint16(33022), + 54: uint16(33023), + 55: uint16(33024), + 56: uint16(33025), + 57: uint16(33027), + 58: uint16(33028), + 59: uint16(33029), + 60: uint16(33031), + 61: uint16(33032), + 62: uint16(33035), + 63: uint16(33036), + 64: uint16(33045), + 65: uint16(33047), + 66: uint16(33049), + 67: uint16(33051), + 68: uint16(33052), + 69: uint16(33053), + 70: uint16(33055), + 71: uint16(33056), + 72: uint16(33057), + 73: uint16(33058), + 74: uint16(33059), + 75: uint16(33060), + 76: uint16(33061), + 77: uint16(33062), + 78: uint16(33063), + 79: uint16(33064), + 80: uint16(33065), + 81: uint16(33066), + 82: uint16(33067), + 83: uint16(33069), + 84: uint16(33070), + 85: uint16(33072), + 86: uint16(33075), + 87: uint16(33076), + 88: uint16(33077), + 89: uint16(33079), + 90: uint16(33081), + 91: uint16(33082), + 92: uint16(33083), + 93: uint16(33084), + 94: uint16(33085), + 95: uint16(33087), + 96: uint16(35881), + 97: uint16(33426), + 98: uint16(33579), + 99: uint16(30450), + 100: uint16(27667), + 101: uint16(24537), + 102: uint16(33725), + 103: uint16(29483), + 104: uint16(33541), + 105: uint16(38170), + 106: uint16(27611), + 107: uint16(30683), + 108: uint16(38086), + 109: uint16(21359), + 110: uint16(33538), + 111: uint16(20882), + 112: uint16(24125), + 113: uint16(35980), + 114: uint16(36152), + 115: uint16(20040), + 116: uint16(29611), + 117: uint16(26522), + 118: uint16(26757), + 119: uint16(37238), + 120: uint16(38665), + 121: uint16(29028), + 122: uint16(27809), + 123: uint16(30473), + 124: uint16(23186), + 125: uint16(38209), + 126: uint16(27599), + 127: uint16(32654), + 128: uint16(26151), + 129: uint16(23504), + 130: uint16(22969), + 131: uint16(23194), + 132: uint16(38376), + 133: uint16(38391), + 134: uint16(20204), + 135: uint16(33804), + 136: uint16(33945), + 137: uint16(27308), + 138: uint16(30431), + 139: uint16(38192), + 140: uint16(29467), + 141: uint16(26790), + 142: uint16(23391), + 143: uint16(30511), + 144: uint16(37274), + 145: uint16(38753), + 146: uint16(31964), + 147: uint16(36855), + 148: uint16(35868), + 149: uint16(24357), + 150: uint16(31859), + 151: uint16(31192), + 152: uint16(35269), + 153: uint16(27852), + 154: uint16(34588), + 155: uint16(23494), + 156: uint16(24130), + 157: uint16(26825), + 158: uint16(30496), + 159: uint16(32501), + 160: uint16(20885), + 161: uint16(20813), + 162: uint16(21193), + 163: uint16(23081), + 164: uint16(32517), + 165: uint16(38754), + 166: uint16(33495), + 167: uint16(25551), + 168: uint16(30596), + 169: uint16(34256), + 170: uint16(31186), + 171: uint16(28218), + 172: uint16(24217), + 173: uint16(22937), + 174: uint16(34065), + 175: uint16(28781), + 176: uint16(27665), + 177: uint16(25279), + 178: uint16(30399), + 179: uint16(25935), + 180: uint16(24751), + 181: uint16(38397), + 182: uint16(26126), + 183: uint16(34719), + 184: uint16(40483), + 185: uint16(38125), + 186: uint16(21517), + 187: uint16(21629), + 188: uint16(35884), + 189: uint16(25720), + }, + 67: { + 0: uint16(33088), + 1: uint16(33089), + 2: uint16(33090), + 3: uint16(33091), + 4: uint16(33092), + 5: uint16(33093), + 6: uint16(33095), + 7: uint16(33097), + 8: uint16(33101), + 9: uint16(33102), + 10: uint16(33103), + 11: uint16(33106), + 12: uint16(33110), + 13: uint16(33111), + 14: uint16(33112), + 15: uint16(33115), + 16: uint16(33116), + 17: uint16(33117), + 18: uint16(33118), + 19: uint16(33119), + 20: uint16(33121), + 21: uint16(33122), + 22: uint16(33123), + 23: uint16(33124), + 24: uint16(33126), + 25: uint16(33128), + 26: uint16(33130), + 27: uint16(33131), + 28: uint16(33132), + 29: uint16(33135), + 30: uint16(33138), + 31: uint16(33139), + 32: uint16(33141), + 33: uint16(33142), + 34: uint16(33143), + 35: uint16(33144), + 36: uint16(33153), + 37: uint16(33155), + 38: uint16(33156), + 39: uint16(33157), + 40: uint16(33158), + 41: uint16(33159), + 42: uint16(33161), + 43: uint16(33163), + 44: uint16(33164), + 45: uint16(33165), + 46: uint16(33166), + 47: uint16(33168), + 48: uint16(33170), + 49: uint16(33171), + 50: uint16(33172), + 51: uint16(33173), + 52: uint16(33174), + 53: uint16(33175), + 54: uint16(33177), + 55: uint16(33178), + 56: uint16(33182), + 57: uint16(33183), + 58: uint16(33184), + 59: uint16(33185), + 60: uint16(33186), + 61: uint16(33188), + 62: uint16(33189), + 63: uint16(33191), + 64: uint16(33193), + 65: uint16(33195), + 66: uint16(33196), + 67: uint16(33197), + 68: uint16(33198), + 69: uint16(33199), + 70: uint16(33200), + 71: uint16(33201), + 72: uint16(33202), + 73: uint16(33204), + 74: uint16(33205), + 75: uint16(33206), + 76: uint16(33207), + 77: uint16(33208), + 78: uint16(33209), + 79: uint16(33212), + 80: uint16(33213), + 81: uint16(33214), + 82: uint16(33215), + 83: uint16(33220), + 84: uint16(33221), + 85: uint16(33223), + 86: uint16(33224), + 87: uint16(33225), + 88: uint16(33227), + 89: uint16(33229), + 90: uint16(33230), + 91: uint16(33231), + 92: uint16(33232), + 93: uint16(33233), + 94: uint16(33234), + 95: uint16(33235), + 96: uint16(25721), + 97: uint16(34321), + 98: uint16(27169), + 99: uint16(33180), + 100: uint16(30952), + 101: uint16(25705), + 102: uint16(39764), + 103: uint16(25273), + 104: uint16(26411), + 105: uint16(33707), + 106: uint16(22696), + 107: uint16(40664), + 108: uint16(27819), + 109: uint16(28448), + 110: uint16(23518), + 111: uint16(38476), + 112: uint16(35851), + 113: uint16(29279), + 114: uint16(26576), + 115: uint16(25287), + 116: uint16(29281), + 117: uint16(20137), + 118: uint16(22982), + 119: uint16(27597), + 120: uint16(22675), + 121: uint16(26286), + 122: uint16(24149), + 123: uint16(21215), + 124: uint16(24917), + 125: uint16(26408), + 126: uint16(30446), + 127: uint16(30566), + 128: uint16(29287), + 129: uint16(31302), + 130: uint16(25343), + 131: uint16(21738), + 132: uint16(21584), + 133: uint16(38048), + 134: uint16(37027), + 135: uint16(23068), + 136: uint16(32435), + 137: uint16(27670), + 138: uint16(20035), + 139: uint16(22902), + 140: uint16(32784), + 141: uint16(22856), + 142: uint16(21335), + 143: uint16(30007), + 144: uint16(38590), + 145: uint16(22218), + 146: uint16(25376), + 147: uint16(33041), + 148: uint16(24700), + 149: uint16(38393), + 150: uint16(28118), + 151: uint16(21602), + 152: uint16(39297), + 153: uint16(20869), + 154: uint16(23273), + 155: uint16(33021), + 156: uint16(22958), + 157: uint16(38675), + 158: uint16(20522), + 159: uint16(27877), + 160: uint16(23612), + 161: uint16(25311), + 162: uint16(20320), + 163: uint16(21311), + 164: uint16(33147), + 165: uint16(36870), + 166: uint16(28346), + 167: uint16(34091), + 168: uint16(25288), + 169: uint16(24180), + 170: uint16(30910), + 171: uint16(25781), + 172: uint16(25467), + 173: uint16(24565), + 174: uint16(23064), + 175: uint16(37247), + 176: uint16(40479), + 177: uint16(23615), + 178: uint16(25423), + 179: uint16(32834), + 180: uint16(23421), + 181: uint16(21870), + 182: uint16(38218), + 183: uint16(38221), + 184: uint16(28037), + 185: uint16(24744), + 186: uint16(26592), + 187: uint16(29406), + 188: uint16(20957), + 189: uint16(23425), + }, + 68: { + 0: uint16(33236), + 1: uint16(33237), + 2: uint16(33238), + 3: uint16(33239), + 4: uint16(33240), + 5: uint16(33241), + 6: uint16(33242), + 7: uint16(33243), + 8: uint16(33244), + 9: uint16(33245), + 10: uint16(33246), + 11: uint16(33247), + 12: uint16(33248), + 13: uint16(33249), + 14: uint16(33250), + 15: uint16(33252), + 16: uint16(33253), + 17: uint16(33254), + 18: uint16(33256), + 19: uint16(33257), + 20: uint16(33259), + 21: uint16(33262), + 22: uint16(33263), + 23: uint16(33264), + 24: uint16(33265), + 25: uint16(33266), + 26: uint16(33269), + 27: uint16(33270), + 28: uint16(33271), + 29: uint16(33272), + 30: uint16(33273), + 31: uint16(33274), + 32: uint16(33277), + 33: uint16(33279), + 34: uint16(33283), + 35: uint16(33287), + 36: uint16(33288), + 37: uint16(33289), + 38: uint16(33290), + 39: uint16(33291), + 40: uint16(33294), + 41: uint16(33295), + 42: uint16(33297), + 43: uint16(33299), + 44: uint16(33301), + 45: uint16(33302), + 46: uint16(33303), + 47: uint16(33304), + 48: uint16(33305), + 49: uint16(33306), + 50: uint16(33309), + 51: uint16(33312), + 52: uint16(33316), + 53: uint16(33317), + 54: uint16(33318), + 55: uint16(33319), + 56: uint16(33321), + 57: uint16(33326), + 58: uint16(33330), + 59: uint16(33338), + 60: uint16(33340), + 61: uint16(33341), + 62: uint16(33343), + 63: uint16(33344), + 64: uint16(33345), + 65: uint16(33346), + 66: uint16(33347), + 67: uint16(33349), + 68: uint16(33350), + 69: uint16(33352), + 70: uint16(33354), + 71: uint16(33356), + 72: uint16(33357), + 73: uint16(33358), + 74: uint16(33360), + 75: uint16(33361), + 76: uint16(33362), + 77: uint16(33363), + 78: uint16(33364), + 79: uint16(33365), + 80: uint16(33366), + 81: uint16(33367), + 82: uint16(33369), + 83: uint16(33371), + 84: uint16(33372), + 85: uint16(33373), + 86: uint16(33374), + 87: uint16(33376), + 88: uint16(33377), + 89: uint16(33378), + 90: uint16(33379), + 91: uint16(33380), + 92: uint16(33381), + 93: uint16(33382), + 94: uint16(33383), + 95: uint16(33385), + 96: uint16(25319), + 97: uint16(27870), + 98: uint16(29275), + 99: uint16(25197), + 100: uint16(38062), + 101: uint16(32445), + 102: uint16(33043), + 103: uint16(27987), + 104: uint16(20892), + 105: uint16(24324), + 106: uint16(22900), + 107: uint16(21162), + 108: uint16(24594), + 109: uint16(22899), + 110: uint16(26262), + 111: uint16(34384), + 112: uint16(30111), + 113: uint16(25386), + 114: uint16(25062), + 115: uint16(31983), + 116: uint16(35834), + 117: uint16(21734), + 118: uint16(27431), + 119: uint16(40485), + 120: uint16(27572), + 121: uint16(34261), + 122: uint16(21589), + 123: uint16(20598), + 124: uint16(27812), + 125: uint16(21866), + 126: uint16(36276), + 127: uint16(29228), + 128: uint16(24085), + 129: uint16(24597), + 130: uint16(29750), + 131: uint16(25293), + 132: uint16(25490), + 133: uint16(29260), + 134: uint16(24472), + 135: uint16(28227), + 136: uint16(27966), + 137: uint16(25856), + 138: uint16(28504), + 139: uint16(30424), + 140: uint16(30928), + 141: uint16(30460), + 142: uint16(30036), + 143: uint16(21028), + 144: uint16(21467), + 145: uint16(20051), + 146: uint16(24222), + 147: uint16(26049), + 148: uint16(32810), + 149: uint16(32982), + 150: uint16(25243), + 151: uint16(21638), + 152: uint16(21032), + 153: uint16(28846), + 154: uint16(34957), + 155: uint16(36305), + 156: uint16(27873), + 157: uint16(21624), + 158: uint16(32986), + 159: uint16(22521), + 160: uint16(35060), + 161: uint16(36180), + 162: uint16(38506), + 163: uint16(37197), + 164: uint16(20329), + 165: uint16(27803), + 166: uint16(21943), + 167: uint16(30406), + 168: uint16(30768), + 169: uint16(25256), + 170: uint16(28921), + 171: uint16(28558), + 172: uint16(24429), + 173: uint16(34028), + 174: uint16(26842), + 175: uint16(30844), + 176: uint16(31735), + 177: uint16(33192), + 178: uint16(26379), + 179: uint16(40527), + 180: uint16(25447), + 181: uint16(30896), + 182: uint16(22383), + 183: uint16(30738), + 184: uint16(38713), + 185: uint16(25209), + 186: uint16(25259), + 187: uint16(21128), + 188: uint16(29749), + 189: uint16(27607), + }, + 69: { + 0: uint16(33386), + 1: uint16(33387), + 2: uint16(33388), + 3: uint16(33389), + 4: uint16(33393), + 5: uint16(33397), + 6: uint16(33398), + 7: uint16(33399), + 8: uint16(33400), + 9: uint16(33403), + 10: uint16(33404), + 11: uint16(33408), + 12: uint16(33409), + 13: uint16(33411), + 14: uint16(33413), + 15: uint16(33414), + 16: uint16(33415), + 17: uint16(33417), + 18: uint16(33420), + 19: uint16(33424), + 20: uint16(33427), + 21: uint16(33428), + 22: uint16(33429), + 23: uint16(33430), + 24: uint16(33434), + 25: uint16(33435), + 26: uint16(33438), + 27: uint16(33440), + 28: uint16(33442), + 29: uint16(33443), + 30: uint16(33447), + 31: uint16(33458), + 32: uint16(33461), + 33: uint16(33462), + 34: uint16(33466), + 35: uint16(33467), + 36: uint16(33468), + 37: uint16(33471), + 38: uint16(33472), + 39: uint16(33474), + 40: uint16(33475), + 41: uint16(33477), + 42: uint16(33478), + 43: uint16(33481), + 44: uint16(33488), + 45: uint16(33494), + 46: uint16(33497), + 47: uint16(33498), + 48: uint16(33501), + 49: uint16(33506), + 50: uint16(33511), + 51: uint16(33512), + 52: uint16(33513), + 53: uint16(33514), + 54: uint16(33516), + 55: uint16(33517), + 56: uint16(33518), + 57: uint16(33520), + 58: uint16(33522), + 59: uint16(33523), + 60: uint16(33525), + 61: uint16(33526), + 62: uint16(33528), + 63: uint16(33530), + 64: uint16(33532), + 65: uint16(33533), + 66: uint16(33534), + 67: uint16(33535), + 68: uint16(33536), + 69: uint16(33546), + 70: uint16(33547), + 71: uint16(33549), + 72: uint16(33552), + 73: uint16(33554), + 74: uint16(33555), + 75: uint16(33558), + 76: uint16(33560), + 77: uint16(33561), + 78: uint16(33565), + 79: uint16(33566), + 80: uint16(33567), + 81: uint16(33568), + 82: uint16(33569), + 83: uint16(33570), + 84: uint16(33571), + 85: uint16(33572), + 86: uint16(33573), + 87: uint16(33574), + 88: uint16(33577), + 89: uint16(33578), + 90: uint16(33582), + 91: uint16(33584), + 92: uint16(33586), + 93: uint16(33591), + 94: uint16(33595), + 95: uint16(33597), + 96: uint16(21860), + 97: uint16(33086), + 98: uint16(30130), + 99: uint16(30382), + 100: uint16(21305), + 101: uint16(30174), + 102: uint16(20731), + 103: uint16(23617), + 104: uint16(35692), + 105: uint16(31687), + 106: uint16(20559), + 107: uint16(29255), + 108: uint16(39575), + 109: uint16(39128), + 110: uint16(28418), + 111: uint16(29922), + 112: uint16(31080), + 113: uint16(25735), + 114: uint16(30629), + 115: uint16(25340), + 116: uint16(39057), + 117: uint16(36139), + 118: uint16(21697), + 119: uint16(32856), + 120: uint16(20050), + 121: uint16(22378), + 122: uint16(33529), + 123: uint16(33805), + 124: uint16(24179), + 125: uint16(20973), + 126: uint16(29942), + 127: uint16(35780), + 128: uint16(23631), + 129: uint16(22369), + 130: uint16(27900), + 131: uint16(39047), + 132: uint16(23110), + 133: uint16(30772), + 134: uint16(39748), + 135: uint16(36843), + 136: uint16(31893), + 137: uint16(21078), + 138: uint16(25169), + 139: uint16(38138), + 140: uint16(20166), + 141: uint16(33670), + 142: uint16(33889), + 143: uint16(33769), + 144: uint16(33970), + 145: uint16(22484), + 146: uint16(26420), + 147: uint16(22275), + 148: uint16(26222), + 149: uint16(28006), + 150: uint16(35889), + 151: uint16(26333), + 152: uint16(28689), + 153: uint16(26399), + 154: uint16(27450), + 155: uint16(26646), + 156: uint16(25114), + 157: uint16(22971), + 158: uint16(19971), + 159: uint16(20932), + 160: uint16(28422), + 161: uint16(26578), + 162: uint16(27791), + 163: uint16(20854), + 164: uint16(26827), + 165: uint16(22855), + 166: uint16(27495), + 167: uint16(30054), + 168: uint16(23822), + 169: uint16(33040), + 170: uint16(40784), + 171: uint16(26071), + 172: uint16(31048), + 173: uint16(31041), + 174: uint16(39569), + 175: uint16(36215), + 176: uint16(23682), + 177: uint16(20062), + 178: uint16(20225), + 179: uint16(21551), + 180: uint16(22865), + 181: uint16(30732), + 182: uint16(22120), + 183: uint16(27668), + 184: uint16(36804), + 185: uint16(24323), + 186: uint16(27773), + 187: uint16(27875), + 188: uint16(35755), + 189: uint16(25488), + }, + 70: { + 0: uint16(33598), + 1: uint16(33599), + 2: uint16(33601), + 3: uint16(33602), + 4: uint16(33604), + 5: uint16(33605), + 6: uint16(33608), + 7: uint16(33610), + 8: uint16(33611), + 9: uint16(33612), + 10: uint16(33613), + 11: uint16(33614), + 12: uint16(33619), + 13: uint16(33621), + 14: uint16(33622), + 15: uint16(33623), + 16: uint16(33624), + 17: uint16(33625), + 18: uint16(33629), + 19: uint16(33634), + 20: uint16(33648), + 21: uint16(33649), + 22: uint16(33650), + 23: uint16(33651), + 24: uint16(33652), + 25: uint16(33653), + 26: uint16(33654), + 27: uint16(33657), + 28: uint16(33658), + 29: uint16(33662), + 30: uint16(33663), + 31: uint16(33664), + 32: uint16(33665), + 33: uint16(33666), + 34: uint16(33667), + 35: uint16(33668), + 36: uint16(33671), + 37: uint16(33672), + 38: uint16(33674), + 39: uint16(33675), + 40: uint16(33676), + 41: uint16(33677), + 42: uint16(33679), + 43: uint16(33680), + 44: uint16(33681), + 45: uint16(33684), + 46: uint16(33685), + 47: uint16(33686), + 48: uint16(33687), + 49: uint16(33689), + 50: uint16(33690), + 51: uint16(33693), + 52: uint16(33695), + 53: uint16(33697), + 54: uint16(33698), + 55: uint16(33699), + 56: uint16(33700), + 57: uint16(33701), + 58: uint16(33702), + 59: uint16(33703), + 60: uint16(33708), + 61: uint16(33709), + 62: uint16(33710), + 63: uint16(33711), + 64: uint16(33717), + 65: uint16(33723), + 66: uint16(33726), + 67: uint16(33727), + 68: uint16(33730), + 69: uint16(33731), + 70: uint16(33732), + 71: uint16(33734), + 72: uint16(33736), + 73: uint16(33737), + 74: uint16(33739), + 75: uint16(33741), + 76: uint16(33742), + 77: uint16(33744), + 78: uint16(33745), + 79: uint16(33746), + 80: uint16(33747), + 81: uint16(33749), + 82: uint16(33751), + 83: uint16(33753), + 84: uint16(33754), + 85: uint16(33755), + 86: uint16(33758), + 87: uint16(33762), + 88: uint16(33763), + 89: uint16(33764), + 90: uint16(33766), + 91: uint16(33767), + 92: uint16(33768), + 93: uint16(33771), + 94: uint16(33772), + 95: uint16(33773), + 96: uint16(24688), + 97: uint16(27965), + 98: uint16(29301), + 99: uint16(25190), + 100: uint16(38030), + 101: uint16(38085), + 102: uint16(21315), + 103: uint16(36801), + 104: uint16(31614), + 105: uint16(20191), + 106: uint16(35878), + 107: uint16(20094), + 108: uint16(40660), + 109: uint16(38065), + 110: uint16(38067), + 111: uint16(21069), + 112: uint16(28508), + 113: uint16(36963), + 114: uint16(27973), + 115: uint16(35892), + 116: uint16(22545), + 117: uint16(23884), + 118: uint16(27424), + 119: uint16(27465), + 120: uint16(26538), + 121: uint16(21595), + 122: uint16(33108), + 123: uint16(32652), + 124: uint16(22681), + 125: uint16(34103), + 126: uint16(24378), + 127: uint16(25250), + 128: uint16(27207), + 129: uint16(38201), + 130: uint16(25970), + 131: uint16(24708), + 132: uint16(26725), + 133: uint16(30631), + 134: uint16(20052), + 135: uint16(20392), + 136: uint16(24039), + 137: uint16(38808), + 138: uint16(25772), + 139: uint16(32728), + 140: uint16(23789), + 141: uint16(20431), + 142: uint16(31373), + 143: uint16(20999), + 144: uint16(33540), + 145: uint16(19988), + 146: uint16(24623), + 147: uint16(31363), + 148: uint16(38054), + 149: uint16(20405), + 150: uint16(20146), + 151: uint16(31206), + 152: uint16(29748), + 153: uint16(21220), + 154: uint16(33465), + 155: uint16(25810), + 156: uint16(31165), + 157: uint16(23517), + 158: uint16(27777), + 159: uint16(38738), + 160: uint16(36731), + 161: uint16(27682), + 162: uint16(20542), + 163: uint16(21375), + 164: uint16(28165), + 165: uint16(25806), + 166: uint16(26228), + 167: uint16(27696), + 168: uint16(24773), + 169: uint16(39031), + 170: uint16(35831), + 171: uint16(24198), + 172: uint16(29756), + 173: uint16(31351), + 174: uint16(31179), + 175: uint16(19992), + 176: uint16(37041), + 177: uint16(29699), + 178: uint16(27714), + 179: uint16(22234), + 180: uint16(37195), + 181: uint16(27845), + 182: uint16(36235), + 183: uint16(21306), + 184: uint16(34502), + 185: uint16(26354), + 186: uint16(36527), + 187: uint16(23624), + 188: uint16(39537), + 189: uint16(28192), + }, + 71: { + 0: uint16(33774), + 1: uint16(33775), + 2: uint16(33779), + 3: uint16(33780), + 4: uint16(33781), + 5: uint16(33782), + 6: uint16(33783), + 7: uint16(33786), + 8: uint16(33787), + 9: uint16(33788), + 10: uint16(33790), + 11: uint16(33791), + 12: uint16(33792), + 13: uint16(33794), + 14: uint16(33797), + 15: uint16(33799), + 16: uint16(33800), + 17: uint16(33801), + 18: uint16(33802), + 19: uint16(33808), + 20: uint16(33810), + 21: uint16(33811), + 22: uint16(33812), + 23: uint16(33813), + 24: uint16(33814), + 25: uint16(33815), + 26: uint16(33817), + 27: uint16(33818), + 28: uint16(33819), + 29: uint16(33822), + 30: uint16(33823), + 31: uint16(33824), + 32: uint16(33825), + 33: uint16(33826), + 34: uint16(33827), + 35: uint16(33833), + 36: uint16(33834), + 37: uint16(33835), + 38: uint16(33836), + 39: uint16(33837), + 40: uint16(33838), + 41: uint16(33839), + 42: uint16(33840), + 43: uint16(33842), + 44: uint16(33843), + 45: uint16(33844), + 46: uint16(33845), + 47: uint16(33846), + 48: uint16(33847), + 49: uint16(33849), + 50: uint16(33850), + 51: uint16(33851), + 52: uint16(33854), + 53: uint16(33855), + 54: uint16(33856), + 55: uint16(33857), + 56: uint16(33858), + 57: uint16(33859), + 58: uint16(33860), + 59: uint16(33861), + 60: uint16(33863), + 61: uint16(33864), + 62: uint16(33865), + 63: uint16(33866), + 64: uint16(33867), + 65: uint16(33868), + 66: uint16(33869), + 67: uint16(33870), + 68: uint16(33871), + 69: uint16(33872), + 70: uint16(33874), + 71: uint16(33875), + 72: uint16(33876), + 73: uint16(33877), + 74: uint16(33878), + 75: uint16(33880), + 76: uint16(33885), + 77: uint16(33886), + 78: uint16(33887), + 79: uint16(33888), + 80: uint16(33890), + 81: uint16(33892), + 82: uint16(33893), + 83: uint16(33894), + 84: uint16(33895), + 85: uint16(33896), + 86: uint16(33898), + 87: uint16(33902), + 88: uint16(33903), + 89: uint16(33904), + 90: uint16(33906), + 91: uint16(33908), + 92: uint16(33911), + 93: uint16(33913), + 94: uint16(33915), + 95: uint16(33916), + 96: uint16(21462), + 97: uint16(23094), + 98: uint16(40843), + 99: uint16(36259), + 100: uint16(21435), + 101: uint16(22280), + 102: uint16(39079), + 103: uint16(26435), + 104: uint16(37275), + 105: uint16(27849), + 106: uint16(20840), + 107: uint16(30154), + 108: uint16(25331), + 109: uint16(29356), + 110: uint16(21048), + 111: uint16(21149), + 112: uint16(32570), + 113: uint16(28820), + 114: uint16(30264), + 115: uint16(21364), + 116: uint16(40522), + 117: uint16(27063), + 118: uint16(30830), + 119: uint16(38592), + 120: uint16(35033), + 121: uint16(32676), + 122: uint16(28982), + 123: uint16(29123), + 124: uint16(20873), + 125: uint16(26579), + 126: uint16(29924), + 127: uint16(22756), + 128: uint16(25880), + 129: uint16(22199), + 130: uint16(35753), + 131: uint16(39286), + 132: uint16(25200), + 133: uint16(32469), + 134: uint16(24825), + 135: uint16(28909), + 136: uint16(22764), + 137: uint16(20161), + 138: uint16(20154), + 139: uint16(24525), + 140: uint16(38887), + 141: uint16(20219), + 142: uint16(35748), + 143: uint16(20995), + 144: uint16(22922), + 145: uint16(32427), + 146: uint16(25172), + 147: uint16(20173), + 148: uint16(26085), + 149: uint16(25102), + 150: uint16(33592), + 151: uint16(33993), + 152: uint16(33635), + 153: uint16(34701), + 154: uint16(29076), + 155: uint16(28342), + 156: uint16(23481), + 157: uint16(32466), + 158: uint16(20887), + 159: uint16(25545), + 160: uint16(26580), + 161: uint16(32905), + 162: uint16(33593), + 163: uint16(34837), + 164: uint16(20754), + 165: uint16(23418), + 166: uint16(22914), + 167: uint16(36785), + 168: uint16(20083), + 169: uint16(27741), + 170: uint16(20837), + 171: uint16(35109), + 172: uint16(36719), + 173: uint16(38446), + 174: uint16(34122), + 175: uint16(29790), + 176: uint16(38160), + 177: uint16(38384), + 178: uint16(28070), + 179: uint16(33509), + 180: uint16(24369), + 181: uint16(25746), + 182: uint16(27922), + 183: uint16(33832), + 184: uint16(33134), + 185: uint16(40131), + 186: uint16(22622), + 187: uint16(36187), + 188: uint16(19977), + 189: uint16(21441), + }, + 72: { + 0: uint16(33917), + 1: uint16(33918), + 2: uint16(33919), + 3: uint16(33920), + 4: uint16(33921), + 5: uint16(33923), + 6: uint16(33924), + 7: uint16(33925), + 8: uint16(33926), + 9: uint16(33930), + 10: uint16(33933), + 11: uint16(33935), + 12: uint16(33936), + 13: uint16(33937), + 14: uint16(33938), + 15: uint16(33939), + 16: uint16(33940), + 17: uint16(33941), + 18: uint16(33942), + 19: uint16(33944), + 20: uint16(33946), + 21: uint16(33947), + 22: uint16(33949), + 23: uint16(33950), + 24: uint16(33951), + 25: uint16(33952), + 26: uint16(33954), + 27: uint16(33955), + 28: uint16(33956), + 29: uint16(33957), + 30: uint16(33958), + 31: uint16(33959), + 32: uint16(33960), + 33: uint16(33961), + 34: uint16(33962), + 35: uint16(33963), + 36: uint16(33964), + 37: uint16(33965), + 38: uint16(33966), + 39: uint16(33968), + 40: uint16(33969), + 41: uint16(33971), + 42: uint16(33973), + 43: uint16(33974), + 44: uint16(33975), + 45: uint16(33979), + 46: uint16(33980), + 47: uint16(33982), + 48: uint16(33984), + 49: uint16(33986), + 50: uint16(33987), + 51: uint16(33989), + 52: uint16(33990), + 53: uint16(33991), + 54: uint16(33992), + 55: uint16(33995), + 56: uint16(33996), + 57: uint16(33998), + 58: uint16(33999), + 59: uint16(34002), + 60: uint16(34004), + 61: uint16(34005), + 62: uint16(34007), + 63: uint16(34008), + 64: uint16(34009), + 65: uint16(34010), + 66: uint16(34011), + 67: uint16(34012), + 68: uint16(34014), + 69: uint16(34017), + 70: uint16(34018), + 71: uint16(34020), + 72: uint16(34023), + 73: uint16(34024), + 74: uint16(34025), + 75: uint16(34026), + 76: uint16(34027), + 77: uint16(34029), + 78: uint16(34030), + 79: uint16(34031), + 80: uint16(34033), + 81: uint16(34034), + 82: uint16(34035), + 83: uint16(34036), + 84: uint16(34037), + 85: uint16(34038), + 86: uint16(34039), + 87: uint16(34040), + 88: uint16(34041), + 89: uint16(34042), + 90: uint16(34043), + 91: uint16(34045), + 92: uint16(34046), + 93: uint16(34048), + 94: uint16(34049), + 95: uint16(34050), + 96: uint16(20254), + 97: uint16(25955), + 98: uint16(26705), + 99: uint16(21971), + 100: uint16(20007), + 101: uint16(25620), + 102: uint16(39578), + 103: uint16(25195), + 104: uint16(23234), + 105: uint16(29791), + 106: uint16(33394), + 107: uint16(28073), + 108: uint16(26862), + 109: uint16(20711), + 110: uint16(33678), + 111: uint16(30722), + 112: uint16(26432), + 113: uint16(21049), + 114: uint16(27801), + 115: uint16(32433), + 116: uint16(20667), + 117: uint16(21861), + 118: uint16(29022), + 119: uint16(31579), + 120: uint16(26194), + 121: uint16(29642), + 122: uint16(33515), + 123: uint16(26441), + 124: uint16(23665), + 125: uint16(21024), + 126: uint16(29053), + 127: uint16(34923), + 128: uint16(38378), + 129: uint16(38485), + 130: uint16(25797), + 131: uint16(36193), + 132: uint16(33203), + 133: uint16(21892), + 134: uint16(27733), + 135: uint16(25159), + 136: uint16(32558), + 137: uint16(22674), + 138: uint16(20260), + 139: uint16(21830), + 140: uint16(36175), + 141: uint16(26188), + 142: uint16(19978), + 143: uint16(23578), + 144: uint16(35059), + 145: uint16(26786), + 146: uint16(25422), + 147: uint16(31245), + 148: uint16(28903), + 149: uint16(33421), + 150: uint16(21242), + 151: uint16(38902), + 152: uint16(23569), + 153: uint16(21736), + 154: uint16(37045), + 155: uint16(32461), + 156: uint16(22882), + 157: uint16(36170), + 158: uint16(34503), + 159: uint16(33292), + 160: uint16(33293), + 161: uint16(36198), + 162: uint16(25668), + 163: uint16(23556), + 164: uint16(24913), + 165: uint16(28041), + 166: uint16(31038), + 167: uint16(35774), + 168: uint16(30775), + 169: uint16(30003), + 170: uint16(21627), + 171: uint16(20280), + 172: uint16(36523), + 173: uint16(28145), + 174: uint16(23072), + 175: uint16(32453), + 176: uint16(31070), + 177: uint16(27784), + 178: uint16(23457), + 179: uint16(23158), + 180: uint16(29978), + 181: uint16(32958), + 182: uint16(24910), + 183: uint16(28183), + 184: uint16(22768), + 185: uint16(29983), + 186: uint16(29989), + 187: uint16(29298), + 188: uint16(21319), + 189: uint16(32499), + }, + 73: { + 0: uint16(34051), + 1: uint16(34052), + 2: uint16(34053), + 3: uint16(34054), + 4: uint16(34055), + 5: uint16(34056), + 6: uint16(34057), + 7: uint16(34058), + 8: uint16(34059), + 9: uint16(34061), + 10: uint16(34062), + 11: uint16(34063), + 12: uint16(34064), + 13: uint16(34066), + 14: uint16(34068), + 15: uint16(34069), + 16: uint16(34070), + 17: uint16(34072), + 18: uint16(34073), + 19: uint16(34075), + 20: uint16(34076), + 21: uint16(34077), + 22: uint16(34078), + 23: uint16(34080), + 24: uint16(34082), + 25: uint16(34083), + 26: uint16(34084), + 27: uint16(34085), + 28: uint16(34086), + 29: uint16(34087), + 30: uint16(34088), + 31: uint16(34089), + 32: uint16(34090), + 33: uint16(34093), + 34: uint16(34094), + 35: uint16(34095), + 36: uint16(34096), + 37: uint16(34097), + 38: uint16(34098), + 39: uint16(34099), + 40: uint16(34100), + 41: uint16(34101), + 42: uint16(34102), + 43: uint16(34110), + 44: uint16(34111), + 45: uint16(34112), + 46: uint16(34113), + 47: uint16(34114), + 48: uint16(34116), + 49: uint16(34117), + 50: uint16(34118), + 51: uint16(34119), + 52: uint16(34123), + 53: uint16(34124), + 54: uint16(34125), + 55: uint16(34126), + 56: uint16(34127), + 57: uint16(34128), + 58: uint16(34129), + 59: uint16(34130), + 60: uint16(34131), + 61: uint16(34132), + 62: uint16(34133), + 63: uint16(34135), + 64: uint16(34136), + 65: uint16(34138), + 66: uint16(34139), + 67: uint16(34140), + 68: uint16(34141), + 69: uint16(34143), + 70: uint16(34144), + 71: uint16(34145), + 72: uint16(34146), + 73: uint16(34147), + 74: uint16(34149), + 75: uint16(34150), + 76: uint16(34151), + 77: uint16(34153), + 78: uint16(34154), + 79: uint16(34155), + 80: uint16(34156), + 81: uint16(34157), + 82: uint16(34158), + 83: uint16(34159), + 84: uint16(34160), + 85: uint16(34161), + 86: uint16(34163), + 87: uint16(34165), + 88: uint16(34166), + 89: uint16(34167), + 90: uint16(34168), + 91: uint16(34172), + 92: uint16(34173), + 93: uint16(34175), + 94: uint16(34176), + 95: uint16(34177), + 96: uint16(30465), + 97: uint16(30427), + 98: uint16(21097), + 99: uint16(32988), + 100: uint16(22307), + 101: uint16(24072), + 102: uint16(22833), + 103: uint16(29422), + 104: uint16(26045), + 105: uint16(28287), + 106: uint16(35799), + 107: uint16(23608), + 108: uint16(34417), + 109: uint16(21313), + 110: uint16(30707), + 111: uint16(25342), + 112: uint16(26102), + 113: uint16(20160), + 114: uint16(39135), + 115: uint16(34432), + 116: uint16(23454), + 117: uint16(35782), + 118: uint16(21490), + 119: uint16(30690), + 120: uint16(20351), + 121: uint16(23630), + 122: uint16(39542), + 123: uint16(22987), + 124: uint16(24335), + 125: uint16(31034), + 126: uint16(22763), + 127: uint16(19990), + 128: uint16(26623), + 129: uint16(20107), + 130: uint16(25325), + 131: uint16(35475), + 132: uint16(36893), + 133: uint16(21183), + 134: uint16(26159), + 135: uint16(21980), + 136: uint16(22124), + 137: uint16(36866), + 138: uint16(20181), + 139: uint16(20365), + 140: uint16(37322), + 141: uint16(39280), + 142: uint16(27663), + 143: uint16(24066), + 144: uint16(24643), + 145: uint16(23460), + 146: uint16(35270), + 147: uint16(35797), + 148: uint16(25910), + 149: uint16(25163), + 150: uint16(39318), + 151: uint16(23432), + 152: uint16(23551), + 153: uint16(25480), + 154: uint16(21806), + 155: uint16(21463), + 156: uint16(30246), + 157: uint16(20861), + 158: uint16(34092), + 159: uint16(26530), + 160: uint16(26803), + 161: uint16(27530), + 162: uint16(25234), + 163: uint16(36755), + 164: uint16(21460), + 165: uint16(33298), + 166: uint16(28113), + 167: uint16(30095), + 168: uint16(20070), + 169: uint16(36174), + 170: uint16(23408), + 171: uint16(29087), + 172: uint16(34223), + 173: uint16(26257), + 174: uint16(26329), + 175: uint16(32626), + 176: uint16(34560), + 177: uint16(40653), + 178: uint16(40736), + 179: uint16(23646), + 180: uint16(26415), + 181: uint16(36848), + 182: uint16(26641), + 183: uint16(26463), + 184: uint16(25101), + 185: uint16(31446), + 186: uint16(22661), + 187: uint16(24246), + 188: uint16(25968), + 189: uint16(28465), + }, + 74: { + 0: uint16(34178), + 1: uint16(34179), + 2: uint16(34182), + 3: uint16(34184), + 4: uint16(34185), + 5: uint16(34186), + 6: uint16(34187), + 7: uint16(34188), + 8: uint16(34189), + 9: uint16(34190), + 10: uint16(34192), + 11: uint16(34193), + 12: uint16(34194), + 13: uint16(34195), + 14: uint16(34196), + 15: uint16(34197), + 16: uint16(34198), + 17: uint16(34199), + 18: uint16(34200), + 19: uint16(34201), + 20: uint16(34202), + 21: uint16(34205), + 22: uint16(34206), + 23: uint16(34207), + 24: uint16(34208), + 25: uint16(34209), + 26: uint16(34210), + 27: uint16(34211), + 28: uint16(34213), + 29: uint16(34214), + 30: uint16(34215), + 31: uint16(34217), + 32: uint16(34219), + 33: uint16(34220), + 34: uint16(34221), + 35: uint16(34225), + 36: uint16(34226), + 37: uint16(34227), + 38: uint16(34228), + 39: uint16(34229), + 40: uint16(34230), + 41: uint16(34232), + 42: uint16(34234), + 43: uint16(34235), + 44: uint16(34236), + 45: uint16(34237), + 46: uint16(34238), + 47: uint16(34239), + 48: uint16(34240), + 49: uint16(34242), + 50: uint16(34243), + 51: uint16(34244), + 52: uint16(34245), + 53: uint16(34246), + 54: uint16(34247), + 55: uint16(34248), + 56: uint16(34250), + 57: uint16(34251), + 58: uint16(34252), + 59: uint16(34253), + 60: uint16(34254), + 61: uint16(34257), + 62: uint16(34258), + 63: uint16(34260), + 64: uint16(34262), + 65: uint16(34263), + 66: uint16(34264), + 67: uint16(34265), + 68: uint16(34266), + 69: uint16(34267), + 70: uint16(34269), + 71: uint16(34270), + 72: uint16(34271), + 73: uint16(34272), + 74: uint16(34273), + 75: uint16(34274), + 76: uint16(34275), + 77: uint16(34277), + 78: uint16(34278), + 79: uint16(34279), + 80: uint16(34280), + 81: uint16(34282), + 82: uint16(34283), + 83: uint16(34284), + 84: uint16(34285), + 85: uint16(34286), + 86: uint16(34287), + 87: uint16(34288), + 88: uint16(34289), + 89: uint16(34290), + 90: uint16(34291), + 91: uint16(34292), + 92: uint16(34293), + 93: uint16(34294), + 94: uint16(34295), + 95: uint16(34296), + 96: uint16(24661), + 97: uint16(21047), + 98: uint16(32781), + 99: uint16(25684), + 100: uint16(34928), + 101: uint16(29993), + 102: uint16(24069), + 103: uint16(26643), + 104: uint16(25332), + 105: uint16(38684), + 106: uint16(21452), + 107: uint16(29245), + 108: uint16(35841), + 109: uint16(27700), + 110: uint16(30561), + 111: uint16(31246), + 112: uint16(21550), + 113: uint16(30636), + 114: uint16(39034), + 115: uint16(33308), + 116: uint16(35828), + 117: uint16(30805), + 118: uint16(26388), + 119: uint16(28865), + 120: uint16(26031), + 121: uint16(25749), + 122: uint16(22070), + 123: uint16(24605), + 124: uint16(31169), + 125: uint16(21496), + 126: uint16(19997), + 127: uint16(27515), + 128: uint16(32902), + 129: uint16(23546), + 130: uint16(21987), + 131: uint16(22235), + 132: uint16(20282), + 133: uint16(20284), + 134: uint16(39282), + 135: uint16(24051), + 136: uint16(26494), + 137: uint16(32824), + 138: uint16(24578), + 139: uint16(39042), + 140: uint16(36865), + 141: uint16(23435), + 142: uint16(35772), + 143: uint16(35829), + 144: uint16(25628), + 145: uint16(33368), + 146: uint16(25822), + 147: uint16(22013), + 148: uint16(33487), + 149: uint16(37221), + 150: uint16(20439), + 151: uint16(32032), + 152: uint16(36895), + 153: uint16(31903), + 154: uint16(20723), + 155: uint16(22609), + 156: uint16(28335), + 157: uint16(23487), + 158: uint16(35785), + 159: uint16(32899), + 160: uint16(37240), + 161: uint16(33948), + 162: uint16(31639), + 163: uint16(34429), + 164: uint16(38539), + 165: uint16(38543), + 166: uint16(32485), + 167: uint16(39635), + 168: uint16(30862), + 169: uint16(23681), + 170: uint16(31319), + 171: uint16(36930), + 172: uint16(38567), + 173: uint16(31071), + 174: uint16(23385), + 175: uint16(25439), + 176: uint16(31499), + 177: uint16(34001), + 178: uint16(26797), + 179: uint16(21766), + 180: uint16(32553), + 181: uint16(29712), + 182: uint16(32034), + 183: uint16(38145), + 184: uint16(25152), + 185: uint16(22604), + 186: uint16(20182), + 187: uint16(23427), + 188: uint16(22905), + 189: uint16(22612), + }, + 75: { + 0: uint16(34297), + 1: uint16(34298), + 2: uint16(34300), + 3: uint16(34301), + 4: uint16(34302), + 5: uint16(34304), + 6: uint16(34305), + 7: uint16(34306), + 8: uint16(34307), + 9: uint16(34308), + 10: uint16(34310), + 11: uint16(34311), + 12: uint16(34312), + 13: uint16(34313), + 14: uint16(34314), + 15: uint16(34315), + 16: uint16(34316), + 17: uint16(34317), + 18: uint16(34318), + 19: uint16(34319), + 20: uint16(34320), + 21: uint16(34322), + 22: uint16(34323), + 23: uint16(34324), + 24: uint16(34325), + 25: uint16(34327), + 26: uint16(34328), + 27: uint16(34329), + 28: uint16(34330), + 29: uint16(34331), + 30: uint16(34332), + 31: uint16(34333), + 32: uint16(34334), + 33: uint16(34335), + 34: uint16(34336), + 35: uint16(34337), + 36: uint16(34338), + 37: uint16(34339), + 38: uint16(34340), + 39: uint16(34341), + 40: uint16(34342), + 41: uint16(34344), + 42: uint16(34346), + 43: uint16(34347), + 44: uint16(34348), + 45: uint16(34349), + 46: uint16(34350), + 47: uint16(34351), + 48: uint16(34352), + 49: uint16(34353), + 50: uint16(34354), + 51: uint16(34355), + 52: uint16(34356), + 53: uint16(34357), + 54: uint16(34358), + 55: uint16(34359), + 56: uint16(34361), + 57: uint16(34362), + 58: uint16(34363), + 59: uint16(34365), + 60: uint16(34366), + 61: uint16(34367), + 62: uint16(34368), + 63: uint16(34369), + 64: uint16(34370), + 65: uint16(34371), + 66: uint16(34372), + 67: uint16(34373), + 68: uint16(34374), + 69: uint16(34375), + 70: uint16(34376), + 71: uint16(34377), + 72: uint16(34378), + 73: uint16(34379), + 74: uint16(34380), + 75: uint16(34386), + 76: uint16(34387), + 77: uint16(34389), + 78: uint16(34390), + 79: uint16(34391), + 80: uint16(34392), + 81: uint16(34393), + 82: uint16(34395), + 83: uint16(34396), + 84: uint16(34397), + 85: uint16(34399), + 86: uint16(34400), + 87: uint16(34401), + 88: uint16(34403), + 89: uint16(34404), + 90: uint16(34405), + 91: uint16(34406), + 92: uint16(34407), + 93: uint16(34408), + 94: uint16(34409), + 95: uint16(34410), + 96: uint16(29549), + 97: uint16(25374), + 98: uint16(36427), + 99: uint16(36367), + 100: uint16(32974), + 101: uint16(33492), + 102: uint16(25260), + 103: uint16(21488), + 104: uint16(27888), + 105: uint16(37214), + 106: uint16(22826), + 107: uint16(24577), + 108: uint16(27760), + 109: uint16(22349), + 110: uint16(25674), + 111: uint16(36138), + 112: uint16(30251), + 113: uint16(28393), + 114: uint16(22363), + 115: uint16(27264), + 116: uint16(30192), + 117: uint16(28525), + 118: uint16(35885), + 119: uint16(35848), + 120: uint16(22374), + 121: uint16(27631), + 122: uint16(34962), + 123: uint16(30899), + 124: uint16(25506), + 125: uint16(21497), + 126: uint16(28845), + 127: uint16(27748), + 128: uint16(22616), + 129: uint16(25642), + 130: uint16(22530), + 131: uint16(26848), + 132: uint16(33179), + 133: uint16(21776), + 134: uint16(31958), + 135: uint16(20504), + 136: uint16(36538), + 137: uint16(28108), + 138: uint16(36255), + 139: uint16(28907), + 140: uint16(25487), + 141: uint16(28059), + 142: uint16(28372), + 143: uint16(32486), + 144: uint16(33796), + 145: uint16(26691), + 146: uint16(36867), + 147: uint16(28120), + 148: uint16(38518), + 149: uint16(35752), + 150: uint16(22871), + 151: uint16(29305), + 152: uint16(34276), + 153: uint16(33150), + 154: uint16(30140), + 155: uint16(35466), + 156: uint16(26799), + 157: uint16(21076), + 158: uint16(36386), + 159: uint16(38161), + 160: uint16(25552), + 161: uint16(39064), + 162: uint16(36420), + 163: uint16(21884), + 164: uint16(20307), + 165: uint16(26367), + 166: uint16(22159), + 167: uint16(24789), + 168: uint16(28053), + 169: uint16(21059), + 170: uint16(23625), + 171: uint16(22825), + 172: uint16(28155), + 173: uint16(22635), + 174: uint16(30000), + 175: uint16(29980), + 176: uint16(24684), + 177: uint16(33300), + 178: uint16(33094), + 179: uint16(25361), + 180: uint16(26465), + 181: uint16(36834), + 182: uint16(30522), + 183: uint16(36339), + 184: uint16(36148), + 185: uint16(38081), + 186: uint16(24086), + 187: uint16(21381), + 188: uint16(21548), + 189: uint16(28867), + }, + 76: { + 0: uint16(34413), + 1: uint16(34415), + 2: uint16(34416), + 3: uint16(34418), + 4: uint16(34419), + 5: uint16(34420), + 6: uint16(34421), + 7: uint16(34422), + 8: uint16(34423), + 9: uint16(34424), + 10: uint16(34435), + 11: uint16(34436), + 12: uint16(34437), + 13: uint16(34438), + 14: uint16(34439), + 15: uint16(34440), + 16: uint16(34441), + 17: uint16(34446), + 18: uint16(34447), + 19: uint16(34448), + 20: uint16(34449), + 21: uint16(34450), + 22: uint16(34452), + 23: uint16(34454), + 24: uint16(34455), + 25: uint16(34456), + 26: uint16(34457), + 27: uint16(34458), + 28: uint16(34459), + 29: uint16(34462), + 30: uint16(34463), + 31: uint16(34464), + 32: uint16(34465), + 33: uint16(34466), + 34: uint16(34469), + 35: uint16(34470), + 36: uint16(34475), + 37: uint16(34477), + 38: uint16(34478), + 39: uint16(34482), + 40: uint16(34483), + 41: uint16(34487), + 42: uint16(34488), + 43: uint16(34489), + 44: uint16(34491), + 45: uint16(34492), + 46: uint16(34493), + 47: uint16(34494), + 48: uint16(34495), + 49: uint16(34497), + 50: uint16(34498), + 51: uint16(34499), + 52: uint16(34501), + 53: uint16(34504), + 54: uint16(34508), + 55: uint16(34509), + 56: uint16(34514), + 57: uint16(34515), + 58: uint16(34517), + 59: uint16(34518), + 60: uint16(34519), + 61: uint16(34522), + 62: uint16(34524), + 63: uint16(34525), + 64: uint16(34528), + 65: uint16(34529), + 66: uint16(34530), + 67: uint16(34531), + 68: uint16(34533), + 69: uint16(34534), + 70: uint16(34535), + 71: uint16(34536), + 72: uint16(34538), + 73: uint16(34539), + 74: uint16(34540), + 75: uint16(34543), + 76: uint16(34549), + 77: uint16(34550), + 78: uint16(34551), + 79: uint16(34554), + 80: uint16(34555), + 81: uint16(34556), + 82: uint16(34557), + 83: uint16(34559), + 84: uint16(34561), + 85: uint16(34564), + 86: uint16(34565), + 87: uint16(34566), + 88: uint16(34571), + 89: uint16(34572), + 90: uint16(34574), + 91: uint16(34575), + 92: uint16(34576), + 93: uint16(34577), + 94: uint16(34580), + 95: uint16(34582), + 96: uint16(27712), + 97: uint16(24311), + 98: uint16(20572), + 99: uint16(20141), + 100: uint16(24237), + 101: uint16(25402), + 102: uint16(33351), + 103: uint16(36890), + 104: uint16(26704), + 105: uint16(37230), + 106: uint16(30643), + 107: uint16(21516), + 108: uint16(38108), + 109: uint16(24420), + 110: uint16(31461), + 111: uint16(26742), + 112: uint16(25413), + 113: uint16(31570), + 114: uint16(32479), + 115: uint16(30171), + 116: uint16(20599), + 117: uint16(25237), + 118: uint16(22836), + 119: uint16(36879), + 120: uint16(20984), + 121: uint16(31171), + 122: uint16(31361), + 123: uint16(22270), + 124: uint16(24466), + 125: uint16(36884), + 126: uint16(28034), + 127: uint16(23648), + 128: uint16(22303), + 129: uint16(21520), + 130: uint16(20820), + 131: uint16(28237), + 132: uint16(22242), + 133: uint16(25512), + 134: uint16(39059), + 135: uint16(33151), + 136: uint16(34581), + 137: uint16(35114), + 138: uint16(36864), + 139: uint16(21534), + 140: uint16(23663), + 141: uint16(33216), + 142: uint16(25302), + 143: uint16(25176), + 144: uint16(33073), + 145: uint16(40501), + 146: uint16(38464), + 147: uint16(39534), + 148: uint16(39548), + 149: uint16(26925), + 150: uint16(22949), + 151: uint16(25299), + 152: uint16(21822), + 153: uint16(25366), + 154: uint16(21703), + 155: uint16(34521), + 156: uint16(27964), + 157: uint16(23043), + 158: uint16(29926), + 159: uint16(34972), + 160: uint16(27498), + 161: uint16(22806), + 162: uint16(35916), + 163: uint16(24367), + 164: uint16(28286), + 165: uint16(29609), + 166: uint16(39037), + 167: uint16(20024), + 168: uint16(28919), + 169: uint16(23436), + 170: uint16(30871), + 171: uint16(25405), + 172: uint16(26202), + 173: uint16(30358), + 174: uint16(24779), + 175: uint16(23451), + 176: uint16(23113), + 177: uint16(19975), + 178: uint16(33109), + 179: uint16(27754), + 180: uint16(29579), + 181: uint16(20129), + 182: uint16(26505), + 183: uint16(32593), + 184: uint16(24448), + 185: uint16(26106), + 186: uint16(26395), + 187: uint16(24536), + 188: uint16(22916), + 189: uint16(23041), + }, + 77: { + 0: uint16(34585), + 1: uint16(34587), + 2: uint16(34589), + 3: uint16(34591), + 4: uint16(34592), + 5: uint16(34596), + 6: uint16(34598), + 7: uint16(34599), + 8: uint16(34600), + 9: uint16(34602), + 10: uint16(34603), + 11: uint16(34604), + 12: uint16(34605), + 13: uint16(34607), + 14: uint16(34608), + 15: uint16(34610), + 16: uint16(34611), + 17: uint16(34613), + 18: uint16(34614), + 19: uint16(34616), + 20: uint16(34617), + 21: uint16(34618), + 22: uint16(34620), + 23: uint16(34621), + 24: uint16(34624), + 25: uint16(34625), + 26: uint16(34626), + 27: uint16(34627), + 28: uint16(34628), + 29: uint16(34629), + 30: uint16(34630), + 31: uint16(34634), + 32: uint16(34635), + 33: uint16(34637), + 34: uint16(34639), + 35: uint16(34640), + 36: uint16(34641), + 37: uint16(34642), + 38: uint16(34644), + 39: uint16(34645), + 40: uint16(34646), + 41: uint16(34648), + 42: uint16(34650), + 43: uint16(34651), + 44: uint16(34652), + 45: uint16(34653), + 46: uint16(34654), + 47: uint16(34655), + 48: uint16(34657), + 49: uint16(34658), + 50: uint16(34662), + 51: uint16(34663), + 52: uint16(34664), + 53: uint16(34665), + 54: uint16(34666), + 55: uint16(34667), + 56: uint16(34668), + 57: uint16(34669), + 58: uint16(34671), + 59: uint16(34673), + 60: uint16(34674), + 61: uint16(34675), + 62: uint16(34677), + 63: uint16(34679), + 64: uint16(34680), + 65: uint16(34681), + 66: uint16(34682), + 67: uint16(34687), + 68: uint16(34688), + 69: uint16(34689), + 70: uint16(34692), + 71: uint16(34694), + 72: uint16(34695), + 73: uint16(34697), + 74: uint16(34698), + 75: uint16(34700), + 76: uint16(34702), + 77: uint16(34703), + 78: uint16(34704), + 79: uint16(34705), + 80: uint16(34706), + 81: uint16(34708), + 82: uint16(34709), + 83: uint16(34710), + 84: uint16(34712), + 85: uint16(34713), + 86: uint16(34714), + 87: uint16(34715), + 88: uint16(34716), + 89: uint16(34717), + 90: uint16(34718), + 91: uint16(34720), + 92: uint16(34721), + 93: uint16(34722), + 94: uint16(34723), + 95: uint16(34724), + 96: uint16(24013), + 97: uint16(24494), + 98: uint16(21361), + 99: uint16(38886), + 100: uint16(36829), + 101: uint16(26693), + 102: uint16(22260), + 103: uint16(21807), + 104: uint16(24799), + 105: uint16(20026), + 106: uint16(28493), + 107: uint16(32500), + 108: uint16(33479), + 109: uint16(33806), + 110: uint16(22996), + 111: uint16(20255), + 112: uint16(20266), + 113: uint16(23614), + 114: uint16(32428), + 115: uint16(26410), + 116: uint16(34074), + 117: uint16(21619), + 118: uint16(30031), + 119: uint16(32963), + 120: uint16(21890), + 121: uint16(39759), + 122: uint16(20301), + 123: uint16(28205), + 124: uint16(35859), + 125: uint16(23561), + 126: uint16(24944), + 127: uint16(21355), + 128: uint16(30239), + 129: uint16(28201), + 130: uint16(34442), + 131: uint16(25991), + 132: uint16(38395), + 133: uint16(32441), + 134: uint16(21563), + 135: uint16(31283), + 136: uint16(32010), + 137: uint16(38382), + 138: uint16(21985), + 139: uint16(32705), + 140: uint16(29934), + 141: uint16(25373), + 142: uint16(34583), + 143: uint16(28065), + 144: uint16(31389), + 145: uint16(25105), + 146: uint16(26017), + 147: uint16(21351), + 148: uint16(25569), + 149: uint16(27779), + 150: uint16(24043), + 151: uint16(21596), + 152: uint16(38056), + 153: uint16(20044), + 154: uint16(27745), + 155: uint16(35820), + 156: uint16(23627), + 157: uint16(26080), + 158: uint16(33436), + 159: uint16(26791), + 160: uint16(21566), + 161: uint16(21556), + 162: uint16(27595), + 163: uint16(27494), + 164: uint16(20116), + 165: uint16(25410), + 166: uint16(21320), + 167: uint16(33310), + 168: uint16(20237), + 169: uint16(20398), + 170: uint16(22366), + 171: uint16(25098), + 172: uint16(38654), + 173: uint16(26212), + 174: uint16(29289), + 175: uint16(21247), + 176: uint16(21153), + 177: uint16(24735), + 178: uint16(35823), + 179: uint16(26132), + 180: uint16(29081), + 181: uint16(26512), + 182: uint16(35199), + 183: uint16(30802), + 184: uint16(30717), + 185: uint16(26224), + 186: uint16(22075), + 187: uint16(21560), + 188: uint16(38177), + 189: uint16(29306), + }, + 78: { + 0: uint16(34725), + 1: uint16(34726), + 2: uint16(34727), + 3: uint16(34729), + 4: uint16(34730), + 5: uint16(34734), + 6: uint16(34736), + 7: uint16(34737), + 8: uint16(34738), + 9: uint16(34740), + 10: uint16(34742), + 11: uint16(34743), + 12: uint16(34744), + 13: uint16(34745), + 14: uint16(34747), + 15: uint16(34748), + 16: uint16(34750), + 17: uint16(34751), + 18: uint16(34753), + 19: uint16(34754), + 20: uint16(34755), + 21: uint16(34756), + 22: uint16(34757), + 23: uint16(34759), + 24: uint16(34760), + 25: uint16(34761), + 26: uint16(34764), + 27: uint16(34765), + 28: uint16(34766), + 29: uint16(34767), + 30: uint16(34768), + 31: uint16(34772), + 32: uint16(34773), + 33: uint16(34774), + 34: uint16(34775), + 35: uint16(34776), + 36: uint16(34777), + 37: uint16(34778), + 38: uint16(34780), + 39: uint16(34781), + 40: uint16(34782), + 41: uint16(34783), + 42: uint16(34785), + 43: uint16(34786), + 44: uint16(34787), + 45: uint16(34788), + 46: uint16(34790), + 47: uint16(34791), + 48: uint16(34792), + 49: uint16(34793), + 50: uint16(34795), + 51: uint16(34796), + 52: uint16(34797), + 53: uint16(34799), + 54: uint16(34800), + 55: uint16(34801), + 56: uint16(34802), + 57: uint16(34803), + 58: uint16(34804), + 59: uint16(34805), + 60: uint16(34806), + 61: uint16(34807), + 62: uint16(34808), + 63: uint16(34810), + 64: uint16(34811), + 65: uint16(34812), + 66: uint16(34813), + 67: uint16(34815), + 68: uint16(34816), + 69: uint16(34817), + 70: uint16(34818), + 71: uint16(34820), + 72: uint16(34821), + 73: uint16(34822), + 74: uint16(34823), + 75: uint16(34824), + 76: uint16(34825), + 77: uint16(34827), + 78: uint16(34828), + 79: uint16(34829), + 80: uint16(34830), + 81: uint16(34831), + 82: uint16(34832), + 83: uint16(34833), + 84: uint16(34834), + 85: uint16(34836), + 86: uint16(34839), + 87: uint16(34840), + 88: uint16(34841), + 89: uint16(34842), + 90: uint16(34844), + 91: uint16(34845), + 92: uint16(34846), + 93: uint16(34847), + 94: uint16(34848), + 95: uint16(34851), + 96: uint16(31232), + 97: uint16(24687), + 98: uint16(24076), + 99: uint16(24713), + 100: uint16(33181), + 101: uint16(22805), + 102: uint16(24796), + 103: uint16(29060), + 104: uint16(28911), + 105: uint16(28330), + 106: uint16(27728), + 107: uint16(29312), + 108: uint16(27268), + 109: uint16(34989), + 110: uint16(24109), + 111: uint16(20064), + 112: uint16(23219), + 113: uint16(21916), + 114: uint16(38115), + 115: uint16(27927), + 116: uint16(31995), + 117: uint16(38553), + 118: uint16(25103), + 119: uint16(32454), + 120: uint16(30606), + 121: uint16(34430), + 122: uint16(21283), + 123: uint16(38686), + 124: uint16(36758), + 125: uint16(26247), + 126: uint16(23777), + 127: uint16(20384), + 128: uint16(29421), + 129: uint16(19979), + 130: uint16(21414), + 131: uint16(22799), + 132: uint16(21523), + 133: uint16(25472), + 134: uint16(38184), + 135: uint16(20808), + 136: uint16(20185), + 137: uint16(40092), + 138: uint16(32420), + 139: uint16(21688), + 140: uint16(36132), + 141: uint16(34900), + 142: uint16(33335), + 143: uint16(38386), + 144: uint16(28046), + 145: uint16(24358), + 146: uint16(23244), + 147: uint16(26174), + 148: uint16(38505), + 149: uint16(29616), + 150: uint16(29486), + 151: uint16(21439), + 152: uint16(33146), + 153: uint16(39301), + 154: uint16(32673), + 155: uint16(23466), + 156: uint16(38519), + 157: uint16(38480), + 158: uint16(32447), + 159: uint16(30456), + 160: uint16(21410), + 161: uint16(38262), + 162: uint16(39321), + 163: uint16(31665), + 164: uint16(35140), + 165: uint16(28248), + 166: uint16(20065), + 167: uint16(32724), + 168: uint16(31077), + 169: uint16(35814), + 170: uint16(24819), + 171: uint16(21709), + 172: uint16(20139), + 173: uint16(39033), + 174: uint16(24055), + 175: uint16(27233), + 176: uint16(20687), + 177: uint16(21521), + 178: uint16(35937), + 179: uint16(33831), + 180: uint16(30813), + 181: uint16(38660), + 182: uint16(21066), + 183: uint16(21742), + 184: uint16(22179), + 185: uint16(38144), + 186: uint16(28040), + 187: uint16(23477), + 188: uint16(28102), + 189: uint16(26195), + }, + 79: { + 0: uint16(34852), + 1: uint16(34853), + 2: uint16(34854), + 3: uint16(34855), + 4: uint16(34856), + 5: uint16(34857), + 6: uint16(34858), + 7: uint16(34859), + 8: uint16(34860), + 9: uint16(34861), + 10: uint16(34862), + 11: uint16(34863), + 12: uint16(34864), + 13: uint16(34865), + 14: uint16(34867), + 15: uint16(34868), + 16: uint16(34869), + 17: uint16(34870), + 18: uint16(34871), + 19: uint16(34872), + 20: uint16(34874), + 21: uint16(34875), + 22: uint16(34877), + 23: uint16(34878), + 24: uint16(34879), + 25: uint16(34881), + 26: uint16(34882), + 27: uint16(34883), + 28: uint16(34886), + 29: uint16(34887), + 30: uint16(34888), + 31: uint16(34889), + 32: uint16(34890), + 33: uint16(34891), + 34: uint16(34894), + 35: uint16(34895), + 36: uint16(34896), + 37: uint16(34897), + 38: uint16(34898), + 39: uint16(34899), + 40: uint16(34901), + 41: uint16(34902), + 42: uint16(34904), + 43: uint16(34906), + 44: uint16(34907), + 45: uint16(34908), + 46: uint16(34909), + 47: uint16(34910), + 48: uint16(34911), + 49: uint16(34912), + 50: uint16(34918), + 51: uint16(34919), + 52: uint16(34922), + 53: uint16(34925), + 54: uint16(34927), + 55: uint16(34929), + 56: uint16(34931), + 57: uint16(34932), + 58: uint16(34933), + 59: uint16(34934), + 60: uint16(34936), + 61: uint16(34937), + 62: uint16(34938), + 63: uint16(34939), + 64: uint16(34940), + 65: uint16(34944), + 66: uint16(34947), + 67: uint16(34950), + 68: uint16(34951), + 69: uint16(34953), + 70: uint16(34954), + 71: uint16(34956), + 72: uint16(34958), + 73: uint16(34959), + 74: uint16(34960), + 75: uint16(34961), + 76: uint16(34963), + 77: uint16(34964), + 78: uint16(34965), + 79: uint16(34967), + 80: uint16(34968), + 81: uint16(34969), + 82: uint16(34970), + 83: uint16(34971), + 84: uint16(34973), + 85: uint16(34974), + 86: uint16(34975), + 87: uint16(34976), + 88: uint16(34977), + 89: uint16(34979), + 90: uint16(34981), + 91: uint16(34982), + 92: uint16(34983), + 93: uint16(34984), + 94: uint16(34985), + 95: uint16(34986), + 96: uint16(23567), + 97: uint16(23389), + 98: uint16(26657), + 99: uint16(32918), + 100: uint16(21880), + 101: uint16(31505), + 102: uint16(25928), + 103: uint16(26964), + 104: uint16(20123), + 105: uint16(27463), + 106: uint16(34638), + 107: uint16(38795), + 108: uint16(21327), + 109: uint16(25375), + 110: uint16(25658), + 111: uint16(37034), + 112: uint16(26012), + 113: uint16(32961), + 114: uint16(35856), + 115: uint16(20889), + 116: uint16(26800), + 117: uint16(21368), + 118: uint16(34809), + 119: uint16(25032), + 120: uint16(27844), + 121: uint16(27899), + 122: uint16(35874), + 123: uint16(23633), + 124: uint16(34218), + 125: uint16(33455), + 126: uint16(38156), + 127: uint16(27427), + 128: uint16(36763), + 129: uint16(26032), + 130: uint16(24571), + 131: uint16(24515), + 132: uint16(20449), + 133: uint16(34885), + 134: uint16(26143), + 135: uint16(33125), + 136: uint16(29481), + 137: uint16(24826), + 138: uint16(20852), + 139: uint16(21009), + 140: uint16(22411), + 141: uint16(24418), + 142: uint16(37026), + 143: uint16(34892), + 144: uint16(37266), + 145: uint16(24184), + 146: uint16(26447), + 147: uint16(24615), + 148: uint16(22995), + 149: uint16(20804), + 150: uint16(20982), + 151: uint16(33016), + 152: uint16(21256), + 153: uint16(27769), + 154: uint16(38596), + 155: uint16(29066), + 156: uint16(20241), + 157: uint16(20462), + 158: uint16(32670), + 159: uint16(26429), + 160: uint16(21957), + 161: uint16(38152), + 162: uint16(31168), + 163: uint16(34966), + 164: uint16(32483), + 165: uint16(22687), + 166: uint16(25100), + 167: uint16(38656), + 168: uint16(34394), + 169: uint16(22040), + 170: uint16(39035), + 171: uint16(24464), + 172: uint16(35768), + 173: uint16(33988), + 174: uint16(37207), + 175: uint16(21465), + 176: uint16(26093), + 177: uint16(24207), + 178: uint16(30044), + 179: uint16(24676), + 180: uint16(32110), + 181: uint16(23167), + 182: uint16(32490), + 183: uint16(32493), + 184: uint16(36713), + 185: uint16(21927), + 186: uint16(23459), + 187: uint16(24748), + 188: uint16(26059), + 189: uint16(29572), + }, + 80: { + 0: uint16(34988), + 1: uint16(34990), + 2: uint16(34991), + 3: uint16(34992), + 4: uint16(34994), + 5: uint16(34995), + 6: uint16(34996), + 7: uint16(34997), + 8: uint16(34998), + 9: uint16(35000), + 10: uint16(35001), + 11: uint16(35002), + 12: uint16(35003), + 13: uint16(35005), + 14: uint16(35006), + 15: uint16(35007), + 16: uint16(35008), + 17: uint16(35011), + 18: uint16(35012), + 19: uint16(35015), + 20: uint16(35016), + 21: uint16(35018), + 22: uint16(35019), + 23: uint16(35020), + 24: uint16(35021), + 25: uint16(35023), + 26: uint16(35024), + 27: uint16(35025), + 28: uint16(35027), + 29: uint16(35030), + 30: uint16(35031), + 31: uint16(35034), + 32: uint16(35035), + 33: uint16(35036), + 34: uint16(35037), + 35: uint16(35038), + 36: uint16(35040), + 37: uint16(35041), + 38: uint16(35046), + 39: uint16(35047), + 40: uint16(35049), + 41: uint16(35050), + 42: uint16(35051), + 43: uint16(35052), + 44: uint16(35053), + 45: uint16(35054), + 46: uint16(35055), + 47: uint16(35058), + 48: uint16(35061), + 49: uint16(35062), + 50: uint16(35063), + 51: uint16(35066), + 52: uint16(35067), + 53: uint16(35069), + 54: uint16(35071), + 55: uint16(35072), + 56: uint16(35073), + 57: uint16(35075), + 58: uint16(35076), + 59: uint16(35077), + 60: uint16(35078), + 61: uint16(35079), + 62: uint16(35080), + 63: uint16(35081), + 64: uint16(35083), + 65: uint16(35084), + 66: uint16(35085), + 67: uint16(35086), + 68: uint16(35087), + 69: uint16(35089), + 70: uint16(35092), + 71: uint16(35093), + 72: uint16(35094), + 73: uint16(35095), + 74: uint16(35096), + 75: uint16(35100), + 76: uint16(35101), + 77: uint16(35102), + 78: uint16(35103), + 79: uint16(35104), + 80: uint16(35106), + 81: uint16(35107), + 82: uint16(35108), + 83: uint16(35110), + 84: uint16(35111), + 85: uint16(35112), + 86: uint16(35113), + 87: uint16(35116), + 88: uint16(35117), + 89: uint16(35118), + 90: uint16(35119), + 91: uint16(35121), + 92: uint16(35122), + 93: uint16(35123), + 94: uint16(35125), + 95: uint16(35127), + 96: uint16(36873), + 97: uint16(30307), + 98: uint16(30505), + 99: uint16(32474), + 100: uint16(38772), + 101: uint16(34203), + 102: uint16(23398), + 103: uint16(31348), + 104: uint16(38634), + 105: uint16(34880), + 106: uint16(21195), + 107: uint16(29071), + 108: uint16(24490), + 109: uint16(26092), + 110: uint16(35810), + 111: uint16(23547), + 112: uint16(39535), + 113: uint16(24033), + 114: uint16(27529), + 115: uint16(27739), + 116: uint16(35757), + 117: uint16(35759), + 118: uint16(36874), + 119: uint16(36805), + 120: uint16(21387), + 121: uint16(25276), + 122: uint16(40486), + 123: uint16(40493), + 124: uint16(21568), + 125: uint16(20011), + 126: uint16(33469), + 127: uint16(29273), + 128: uint16(34460), + 129: uint16(23830), + 130: uint16(34905), + 131: uint16(28079), + 132: uint16(38597), + 133: uint16(21713), + 134: uint16(20122), + 135: uint16(35766), + 136: uint16(28937), + 137: uint16(21693), + 138: uint16(38409), + 139: uint16(28895), + 140: uint16(28153), + 141: uint16(30416), + 142: uint16(20005), + 143: uint16(30740), + 144: uint16(34578), + 145: uint16(23721), + 146: uint16(24310), + 147: uint16(35328), + 148: uint16(39068), + 149: uint16(38414), + 150: uint16(28814), + 151: uint16(27839), + 152: uint16(22852), + 153: uint16(25513), + 154: uint16(30524), + 155: uint16(34893), + 156: uint16(28436), + 157: uint16(33395), + 158: uint16(22576), + 159: uint16(29141), + 160: uint16(21388), + 161: uint16(30746), + 162: uint16(38593), + 163: uint16(21761), + 164: uint16(24422), + 165: uint16(28976), + 166: uint16(23476), + 167: uint16(35866), + 168: uint16(39564), + 169: uint16(27523), + 170: uint16(22830), + 171: uint16(40495), + 172: uint16(31207), + 173: uint16(26472), + 174: uint16(25196), + 175: uint16(20335), + 176: uint16(30113), + 177: uint16(32650), + 178: uint16(27915), + 179: uint16(38451), + 180: uint16(27687), + 181: uint16(20208), + 182: uint16(30162), + 183: uint16(20859), + 184: uint16(26679), + 185: uint16(28478), + 186: uint16(36992), + 187: uint16(33136), + 188: uint16(22934), + 189: uint16(29814), + }, + 81: { + 0: uint16(35128), + 1: uint16(35129), + 2: uint16(35130), + 3: uint16(35131), + 4: uint16(35132), + 5: uint16(35133), + 6: uint16(35134), + 7: uint16(35135), + 8: uint16(35136), + 9: uint16(35138), + 10: uint16(35139), + 11: uint16(35141), + 12: uint16(35142), + 13: uint16(35143), + 14: uint16(35144), + 15: uint16(35145), + 16: uint16(35146), + 17: uint16(35147), + 18: uint16(35148), + 19: uint16(35149), + 20: uint16(35150), + 21: uint16(35151), + 22: uint16(35152), + 23: uint16(35153), + 24: uint16(35154), + 25: uint16(35155), + 26: uint16(35156), + 27: uint16(35157), + 28: uint16(35158), + 29: uint16(35159), + 30: uint16(35160), + 31: uint16(35161), + 32: uint16(35162), + 33: uint16(35163), + 34: uint16(35164), + 35: uint16(35165), + 36: uint16(35168), + 37: uint16(35169), + 38: uint16(35170), + 39: uint16(35171), + 40: uint16(35172), + 41: uint16(35173), + 42: uint16(35175), + 43: uint16(35176), + 44: uint16(35177), + 45: uint16(35178), + 46: uint16(35179), + 47: uint16(35180), + 48: uint16(35181), + 49: uint16(35182), + 50: uint16(35183), + 51: uint16(35184), + 52: uint16(35185), + 53: uint16(35186), + 54: uint16(35187), + 55: uint16(35188), + 56: uint16(35189), + 57: uint16(35190), + 58: uint16(35191), + 59: uint16(35192), + 60: uint16(35193), + 61: uint16(35194), + 62: uint16(35196), + 63: uint16(35197), + 64: uint16(35198), + 65: uint16(35200), + 66: uint16(35202), + 67: uint16(35204), + 68: uint16(35205), + 69: uint16(35207), + 70: uint16(35208), + 71: uint16(35209), + 72: uint16(35210), + 73: uint16(35211), + 74: uint16(35212), + 75: uint16(35213), + 76: uint16(35214), + 77: uint16(35215), + 78: uint16(35216), + 79: uint16(35217), + 80: uint16(35218), + 81: uint16(35219), + 82: uint16(35220), + 83: uint16(35221), + 84: uint16(35222), + 85: uint16(35223), + 86: uint16(35224), + 87: uint16(35225), + 88: uint16(35226), + 89: uint16(35227), + 90: uint16(35228), + 91: uint16(35229), + 92: uint16(35230), + 93: uint16(35231), + 94: uint16(35232), + 95: uint16(35233), + 96: uint16(25671), + 97: uint16(23591), + 98: uint16(36965), + 99: uint16(31377), + 100: uint16(35875), + 101: uint16(23002), + 102: uint16(21676), + 103: uint16(33280), + 104: uint16(33647), + 105: uint16(35201), + 106: uint16(32768), + 107: uint16(26928), + 108: uint16(22094), + 109: uint16(32822), + 110: uint16(29239), + 111: uint16(37326), + 112: uint16(20918), + 113: uint16(20063), + 114: uint16(39029), + 115: uint16(25494), + 116: uint16(19994), + 117: uint16(21494), + 118: uint16(26355), + 119: uint16(33099), + 120: uint16(22812), + 121: uint16(28082), + 122: uint16(19968), + 123: uint16(22777), + 124: uint16(21307), + 125: uint16(25558), + 126: uint16(38129), + 127: uint16(20381), + 128: uint16(20234), + 129: uint16(34915), + 130: uint16(39056), + 131: uint16(22839), + 132: uint16(36951), + 133: uint16(31227), + 134: uint16(20202), + 135: uint16(33008), + 136: uint16(30097), + 137: uint16(27778), + 138: uint16(23452), + 139: uint16(23016), + 140: uint16(24413), + 141: uint16(26885), + 142: uint16(34433), + 143: uint16(20506), + 144: uint16(24050), + 145: uint16(20057), + 146: uint16(30691), + 147: uint16(20197), + 148: uint16(33402), + 149: uint16(25233), + 150: uint16(26131), + 151: uint16(37009), + 152: uint16(23673), + 153: uint16(20159), + 154: uint16(24441), + 155: uint16(33222), + 156: uint16(36920), + 157: uint16(32900), + 158: uint16(30123), + 159: uint16(20134), + 160: uint16(35028), + 161: uint16(24847), + 162: uint16(27589), + 163: uint16(24518), + 164: uint16(20041), + 165: uint16(30410), + 166: uint16(28322), + 167: uint16(35811), + 168: uint16(35758), + 169: uint16(35850), + 170: uint16(35793), + 171: uint16(24322), + 172: uint16(32764), + 173: uint16(32716), + 174: uint16(32462), + 175: uint16(33589), + 176: uint16(33643), + 177: uint16(22240), + 178: uint16(27575), + 179: uint16(38899), + 180: uint16(38452), + 181: uint16(23035), + 182: uint16(21535), + 183: uint16(38134), + 184: uint16(28139), + 185: uint16(23493), + 186: uint16(39278), + 187: uint16(23609), + 188: uint16(24341), + 189: uint16(38544), + }, + 82: { + 0: uint16(35234), + 1: uint16(35235), + 2: uint16(35236), + 3: uint16(35237), + 4: uint16(35238), + 5: uint16(35239), + 6: uint16(35240), + 7: uint16(35241), + 8: uint16(35242), + 9: uint16(35243), + 10: uint16(35244), + 11: uint16(35245), + 12: uint16(35246), + 13: uint16(35247), + 14: uint16(35248), + 15: uint16(35249), + 16: uint16(35250), + 17: uint16(35251), + 18: uint16(35252), + 19: uint16(35253), + 20: uint16(35254), + 21: uint16(35255), + 22: uint16(35256), + 23: uint16(35257), + 24: uint16(35258), + 25: uint16(35259), + 26: uint16(35260), + 27: uint16(35261), + 28: uint16(35262), + 29: uint16(35263), + 30: uint16(35264), + 31: uint16(35267), + 32: uint16(35277), + 33: uint16(35283), + 34: uint16(35284), + 35: uint16(35285), + 36: uint16(35287), + 37: uint16(35288), + 38: uint16(35289), + 39: uint16(35291), + 40: uint16(35293), + 41: uint16(35295), + 42: uint16(35296), + 43: uint16(35297), + 44: uint16(35298), + 45: uint16(35300), + 46: uint16(35303), + 47: uint16(35304), + 48: uint16(35305), + 49: uint16(35306), + 50: uint16(35308), + 51: uint16(35309), + 52: uint16(35310), + 53: uint16(35312), + 54: uint16(35313), + 55: uint16(35314), + 56: uint16(35316), + 57: uint16(35317), + 58: uint16(35318), + 59: uint16(35319), + 60: uint16(35320), + 61: uint16(35321), + 62: uint16(35322), + 63: uint16(35323), + 64: uint16(35324), + 65: uint16(35325), + 66: uint16(35326), + 67: uint16(35327), + 68: uint16(35329), + 69: uint16(35330), + 70: uint16(35331), + 71: uint16(35332), + 72: uint16(35333), + 73: uint16(35334), + 74: uint16(35336), + 75: uint16(35337), + 76: uint16(35338), + 77: uint16(35339), + 78: uint16(35340), + 79: uint16(35341), + 80: uint16(35342), + 81: uint16(35343), + 82: uint16(35344), + 83: uint16(35345), + 84: uint16(35346), + 85: uint16(35347), + 86: uint16(35348), + 87: uint16(35349), + 88: uint16(35350), + 89: uint16(35351), + 90: uint16(35352), + 91: uint16(35353), + 92: uint16(35354), + 93: uint16(35355), + 94: uint16(35356), + 95: uint16(35357), + 96: uint16(21360), + 97: uint16(33521), + 98: uint16(27185), + 99: uint16(23156), + 100: uint16(40560), + 101: uint16(24212), + 102: uint16(32552), + 103: uint16(33721), + 104: uint16(33828), + 105: uint16(33829), + 106: uint16(33639), + 107: uint16(34631), + 108: uint16(36814), + 109: uint16(36194), + 110: uint16(30408), + 111: uint16(24433), + 112: uint16(39062), + 113: uint16(30828), + 114: uint16(26144), + 115: uint16(21727), + 116: uint16(25317), + 117: uint16(20323), + 118: uint16(33219), + 119: uint16(30152), + 120: uint16(24248), + 121: uint16(38605), + 122: uint16(36362), + 123: uint16(34553), + 124: uint16(21647), + 125: uint16(27891), + 126: uint16(28044), + 127: uint16(27704), + 128: uint16(24703), + 129: uint16(21191), + 130: uint16(29992), + 131: uint16(24189), + 132: uint16(20248), + 133: uint16(24736), + 134: uint16(24551), + 135: uint16(23588), + 136: uint16(30001), + 137: uint16(37038), + 138: uint16(38080), + 139: uint16(29369), + 140: uint16(27833), + 141: uint16(28216), + 142: uint16(37193), + 143: uint16(26377), + 144: uint16(21451), + 145: uint16(21491), + 146: uint16(20305), + 147: uint16(37321), + 148: uint16(35825), + 149: uint16(21448), + 150: uint16(24188), + 151: uint16(36802), + 152: uint16(28132), + 153: uint16(20110), + 154: uint16(30402), + 155: uint16(27014), + 156: uint16(34398), + 157: uint16(24858), + 158: uint16(33286), + 159: uint16(20313), + 160: uint16(20446), + 161: uint16(36926), + 162: uint16(40060), + 163: uint16(24841), + 164: uint16(28189), + 165: uint16(28180), + 166: uint16(38533), + 167: uint16(20104), + 168: uint16(23089), + 169: uint16(38632), + 170: uint16(19982), + 171: uint16(23679), + 172: uint16(31161), + 173: uint16(23431), + 174: uint16(35821), + 175: uint16(32701), + 176: uint16(29577), + 177: uint16(22495), + 178: uint16(33419), + 179: uint16(37057), + 180: uint16(21505), + 181: uint16(36935), + 182: uint16(21947), + 183: uint16(23786), + 184: uint16(24481), + 185: uint16(24840), + 186: uint16(27442), + 187: uint16(29425), + 188: uint16(32946), + 189: uint16(35465), + }, + 83: { + 0: uint16(35358), + 1: uint16(35359), + 2: uint16(35360), + 3: uint16(35361), + 4: uint16(35362), + 5: uint16(35363), + 6: uint16(35364), + 7: uint16(35365), + 8: uint16(35366), + 9: uint16(35367), + 10: uint16(35368), + 11: uint16(35369), + 12: uint16(35370), + 13: uint16(35371), + 14: uint16(35372), + 15: uint16(35373), + 16: uint16(35374), + 17: uint16(35375), + 18: uint16(35376), + 19: uint16(35377), + 20: uint16(35378), + 21: uint16(35379), + 22: uint16(35380), + 23: uint16(35381), + 24: uint16(35382), + 25: uint16(35383), + 26: uint16(35384), + 27: uint16(35385), + 28: uint16(35386), + 29: uint16(35387), + 30: uint16(35388), + 31: uint16(35389), + 32: uint16(35391), + 33: uint16(35392), + 34: uint16(35393), + 35: uint16(35394), + 36: uint16(35395), + 37: uint16(35396), + 38: uint16(35397), + 39: uint16(35398), + 40: uint16(35399), + 41: uint16(35401), + 42: uint16(35402), + 43: uint16(35403), + 44: uint16(35404), + 45: uint16(35405), + 46: uint16(35406), + 47: uint16(35407), + 48: uint16(35408), + 49: uint16(35409), + 50: uint16(35410), + 51: uint16(35411), + 52: uint16(35412), + 53: uint16(35413), + 54: uint16(35414), + 55: uint16(35415), + 56: uint16(35416), + 57: uint16(35417), + 58: uint16(35418), + 59: uint16(35419), + 60: uint16(35420), + 61: uint16(35421), + 62: uint16(35422), + 63: uint16(35423), + 64: uint16(35424), + 65: uint16(35425), + 66: uint16(35426), + 67: uint16(35427), + 68: uint16(35428), + 69: uint16(35429), + 70: uint16(35430), + 71: uint16(35431), + 72: uint16(35432), + 73: uint16(35433), + 74: uint16(35434), + 75: uint16(35435), + 76: uint16(35436), + 77: uint16(35437), + 78: uint16(35438), + 79: uint16(35439), + 80: uint16(35440), + 81: uint16(35441), + 82: uint16(35442), + 83: uint16(35443), + 84: uint16(35444), + 85: uint16(35445), + 86: uint16(35446), + 87: uint16(35447), + 88: uint16(35448), + 89: uint16(35450), + 90: uint16(35451), + 91: uint16(35452), + 92: uint16(35453), + 93: uint16(35454), + 94: uint16(35455), + 95: uint16(35456), + 96: uint16(28020), + 97: uint16(23507), + 98: uint16(35029), + 99: uint16(39044), + 100: uint16(35947), + 101: uint16(39533), + 102: uint16(40499), + 103: uint16(28170), + 104: uint16(20900), + 105: uint16(20803), + 106: uint16(22435), + 107: uint16(34945), + 108: uint16(21407), + 109: uint16(25588), + 110: uint16(36757), + 111: uint16(22253), + 112: uint16(21592), + 113: uint16(22278), + 114: uint16(29503), + 115: uint16(28304), + 116: uint16(32536), + 117: uint16(36828), + 118: uint16(33489), + 119: uint16(24895), + 120: uint16(24616), + 121: uint16(38498), + 122: uint16(26352), + 123: uint16(32422), + 124: uint16(36234), + 125: uint16(36291), + 126: uint16(38053), + 127: uint16(23731), + 128: uint16(31908), + 129: uint16(26376), + 130: uint16(24742), + 131: uint16(38405), + 132: uint16(32792), + 133: uint16(20113), + 134: uint16(37095), + 135: uint16(21248), + 136: uint16(38504), + 137: uint16(20801), + 138: uint16(36816), + 139: uint16(34164), + 140: uint16(37213), + 141: uint16(26197), + 142: uint16(38901), + 143: uint16(23381), + 144: uint16(21277), + 145: uint16(30776), + 146: uint16(26434), + 147: uint16(26685), + 148: uint16(21705), + 149: uint16(28798), + 150: uint16(23472), + 151: uint16(36733), + 152: uint16(20877), + 153: uint16(22312), + 154: uint16(21681), + 155: uint16(25874), + 156: uint16(26242), + 157: uint16(36190), + 158: uint16(36163), + 159: uint16(33039), + 160: uint16(33900), + 161: uint16(36973), + 162: uint16(31967), + 163: uint16(20991), + 164: uint16(34299), + 165: uint16(26531), + 166: uint16(26089), + 167: uint16(28577), + 168: uint16(34468), + 169: uint16(36481), + 170: uint16(22122), + 171: uint16(36896), + 172: uint16(30338), + 173: uint16(28790), + 174: uint16(29157), + 175: uint16(36131), + 176: uint16(25321), + 177: uint16(21017), + 178: uint16(27901), + 179: uint16(36156), + 180: uint16(24590), + 181: uint16(22686), + 182: uint16(24974), + 183: uint16(26366), + 184: uint16(36192), + 185: uint16(25166), + 186: uint16(21939), + 187: uint16(28195), + 188: uint16(26413), + 189: uint16(36711), + }, + 84: { + 0: uint16(35457), + 1: uint16(35458), + 2: uint16(35459), + 3: uint16(35460), + 4: uint16(35461), + 5: uint16(35462), + 6: uint16(35463), + 7: uint16(35464), + 8: uint16(35467), + 9: uint16(35468), + 10: uint16(35469), + 11: uint16(35470), + 12: uint16(35471), + 13: uint16(35472), + 14: uint16(35473), + 15: uint16(35474), + 16: uint16(35476), + 17: uint16(35477), + 18: uint16(35478), + 19: uint16(35479), + 20: uint16(35480), + 21: uint16(35481), + 22: uint16(35482), + 23: uint16(35483), + 24: uint16(35484), + 25: uint16(35485), + 26: uint16(35486), + 27: uint16(35487), + 28: uint16(35488), + 29: uint16(35489), + 30: uint16(35490), + 31: uint16(35491), + 32: uint16(35492), + 33: uint16(35493), + 34: uint16(35494), + 35: uint16(35495), + 36: uint16(35496), + 37: uint16(35497), + 38: uint16(35498), + 39: uint16(35499), + 40: uint16(35500), + 41: uint16(35501), + 42: uint16(35502), + 43: uint16(35503), + 44: uint16(35504), + 45: uint16(35505), + 46: uint16(35506), + 47: uint16(35507), + 48: uint16(35508), + 49: uint16(35509), + 50: uint16(35510), + 51: uint16(35511), + 52: uint16(35512), + 53: uint16(35513), + 54: uint16(35514), + 55: uint16(35515), + 56: uint16(35516), + 57: uint16(35517), + 58: uint16(35518), + 59: uint16(35519), + 60: uint16(35520), + 61: uint16(35521), + 62: uint16(35522), + 63: uint16(35523), + 64: uint16(35524), + 65: uint16(35525), + 66: uint16(35526), + 67: uint16(35527), + 68: uint16(35528), + 69: uint16(35529), + 70: uint16(35530), + 71: uint16(35531), + 72: uint16(35532), + 73: uint16(35533), + 74: uint16(35534), + 75: uint16(35535), + 76: uint16(35536), + 77: uint16(35537), + 78: uint16(35538), + 79: uint16(35539), + 80: uint16(35540), + 81: uint16(35541), + 82: uint16(35542), + 83: uint16(35543), + 84: uint16(35544), + 85: uint16(35545), + 86: uint16(35546), + 87: uint16(35547), + 88: uint16(35548), + 89: uint16(35549), + 90: uint16(35550), + 91: uint16(35551), + 92: uint16(35552), + 93: uint16(35553), + 94: uint16(35554), + 95: uint16(35555), + 96: uint16(38113), + 97: uint16(38392), + 98: uint16(30504), + 99: uint16(26629), + 100: uint16(27048), + 101: uint16(21643), + 102: uint16(20045), + 103: uint16(28856), + 104: uint16(35784), + 105: uint16(25688), + 106: uint16(25995), + 107: uint16(23429), + 108: uint16(31364), + 109: uint16(20538), + 110: uint16(23528), + 111: uint16(30651), + 112: uint16(27617), + 113: uint16(35449), + 114: uint16(31896), + 115: uint16(27838), + 116: uint16(30415), + 117: uint16(26025), + 118: uint16(36759), + 119: uint16(23853), + 120: uint16(23637), + 121: uint16(34360), + 122: uint16(26632), + 123: uint16(21344), + 124: uint16(25112), + 125: uint16(31449), + 126: uint16(28251), + 127: uint16(32509), + 128: uint16(27167), + 129: uint16(31456), + 130: uint16(24432), + 131: uint16(28467), + 132: uint16(24352), + 133: uint16(25484), + 134: uint16(28072), + 135: uint16(26454), + 136: uint16(19976), + 137: uint16(24080), + 138: uint16(36134), + 139: uint16(20183), + 140: uint16(32960), + 141: uint16(30260), + 142: uint16(38556), + 143: uint16(25307), + 144: uint16(26157), + 145: uint16(25214), + 146: uint16(27836), + 147: uint16(36213), + 148: uint16(29031), + 149: uint16(32617), + 150: uint16(20806), + 151: uint16(32903), + 152: uint16(21484), + 153: uint16(36974), + 154: uint16(25240), + 155: uint16(21746), + 156: uint16(34544), + 157: uint16(36761), + 158: uint16(32773), + 159: uint16(38167), + 160: uint16(34071), + 161: uint16(36825), + 162: uint16(27993), + 163: uint16(29645), + 164: uint16(26015), + 165: uint16(30495), + 166: uint16(29956), + 167: uint16(30759), + 168: uint16(33275), + 169: uint16(36126), + 170: uint16(38024), + 171: uint16(20390), + 172: uint16(26517), + 173: uint16(30137), + 174: uint16(35786), + 175: uint16(38663), + 176: uint16(25391), + 177: uint16(38215), + 178: uint16(38453), + 179: uint16(33976), + 180: uint16(25379), + 181: uint16(30529), + 182: uint16(24449), + 183: uint16(29424), + 184: uint16(20105), + 185: uint16(24596), + 186: uint16(25972), + 187: uint16(25327), + 188: uint16(27491), + 189: uint16(25919), + }, + 85: { + 0: uint16(35556), + 1: uint16(35557), + 2: uint16(35558), + 3: uint16(35559), + 4: uint16(35560), + 5: uint16(35561), + 6: uint16(35562), + 7: uint16(35563), + 8: uint16(35564), + 9: uint16(35565), + 10: uint16(35566), + 11: uint16(35567), + 12: uint16(35568), + 13: uint16(35569), + 14: uint16(35570), + 15: uint16(35571), + 16: uint16(35572), + 17: uint16(35573), + 18: uint16(35574), + 19: uint16(35575), + 20: uint16(35576), + 21: uint16(35577), + 22: uint16(35578), + 23: uint16(35579), + 24: uint16(35580), + 25: uint16(35581), + 26: uint16(35582), + 27: uint16(35583), + 28: uint16(35584), + 29: uint16(35585), + 30: uint16(35586), + 31: uint16(35587), + 32: uint16(35588), + 33: uint16(35589), + 34: uint16(35590), + 35: uint16(35592), + 36: uint16(35593), + 37: uint16(35594), + 38: uint16(35595), + 39: uint16(35596), + 40: uint16(35597), + 41: uint16(35598), + 42: uint16(35599), + 43: uint16(35600), + 44: uint16(35601), + 45: uint16(35602), + 46: uint16(35603), + 47: uint16(35604), + 48: uint16(35605), + 49: uint16(35606), + 50: uint16(35607), + 51: uint16(35608), + 52: uint16(35609), + 53: uint16(35610), + 54: uint16(35611), + 55: uint16(35612), + 56: uint16(35613), + 57: uint16(35614), + 58: uint16(35615), + 59: uint16(35616), + 60: uint16(35617), + 61: uint16(35618), + 62: uint16(35619), + 63: uint16(35620), + 64: uint16(35621), + 65: uint16(35623), + 66: uint16(35624), + 67: uint16(35625), + 68: uint16(35626), + 69: uint16(35627), + 70: uint16(35628), + 71: uint16(35629), + 72: uint16(35630), + 73: uint16(35631), + 74: uint16(35632), + 75: uint16(35633), + 76: uint16(35634), + 77: uint16(35635), + 78: uint16(35636), + 79: uint16(35637), + 80: uint16(35638), + 81: uint16(35639), + 82: uint16(35640), + 83: uint16(35641), + 84: uint16(35642), + 85: uint16(35643), + 86: uint16(35644), + 87: uint16(35645), + 88: uint16(35646), + 89: uint16(35647), + 90: uint16(35648), + 91: uint16(35649), + 92: uint16(35650), + 93: uint16(35651), + 94: uint16(35652), + 95: uint16(35653), + 96: uint16(24103), + 97: uint16(30151), + 98: uint16(37073), + 99: uint16(35777), + 100: uint16(33437), + 101: uint16(26525), + 102: uint16(25903), + 103: uint16(21553), + 104: uint16(34584), + 105: uint16(30693), + 106: uint16(32930), + 107: uint16(33026), + 108: uint16(27713), + 109: uint16(20043), + 110: uint16(32455), + 111: uint16(32844), + 112: uint16(30452), + 113: uint16(26893), + 114: uint16(27542), + 115: uint16(25191), + 116: uint16(20540), + 117: uint16(20356), + 118: uint16(22336), + 119: uint16(25351), + 120: uint16(27490), + 121: uint16(36286), + 122: uint16(21482), + 123: uint16(26088), + 124: uint16(32440), + 125: uint16(24535), + 126: uint16(25370), + 127: uint16(25527), + 128: uint16(33267), + 129: uint16(33268), + 130: uint16(32622), + 131: uint16(24092), + 132: uint16(23769), + 133: uint16(21046), + 134: uint16(26234), + 135: uint16(31209), + 136: uint16(31258), + 137: uint16(36136), + 138: uint16(28825), + 139: uint16(30164), + 140: uint16(28382), + 141: uint16(27835), + 142: uint16(31378), + 143: uint16(20013), + 144: uint16(30405), + 145: uint16(24544), + 146: uint16(38047), + 147: uint16(34935), + 148: uint16(32456), + 149: uint16(31181), + 150: uint16(32959), + 151: uint16(37325), + 152: uint16(20210), + 153: uint16(20247), + 154: uint16(33311), + 155: uint16(21608), + 156: uint16(24030), + 157: uint16(27954), + 158: uint16(35788), + 159: uint16(31909), + 160: uint16(36724), + 161: uint16(32920), + 162: uint16(24090), + 163: uint16(21650), + 164: uint16(30385), + 165: uint16(23449), + 166: uint16(26172), + 167: uint16(39588), + 168: uint16(29664), + 169: uint16(26666), + 170: uint16(34523), + 171: uint16(26417), + 172: uint16(29482), + 173: uint16(35832), + 174: uint16(35803), + 175: uint16(36880), + 176: uint16(31481), + 177: uint16(28891), + 178: uint16(29038), + 179: uint16(25284), + 180: uint16(30633), + 181: uint16(22065), + 182: uint16(20027), + 183: uint16(33879), + 184: uint16(26609), + 185: uint16(21161), + 186: uint16(34496), + 187: uint16(36142), + 188: uint16(38136), + 189: uint16(31569), + }, + 86: { + 0: uint16(35654), + 1: uint16(35655), + 2: uint16(35656), + 3: uint16(35657), + 4: uint16(35658), + 5: uint16(35659), + 6: uint16(35660), + 7: uint16(35661), + 8: uint16(35662), + 9: uint16(35663), + 10: uint16(35664), + 11: uint16(35665), + 12: uint16(35666), + 13: uint16(35667), + 14: uint16(35668), + 15: uint16(35669), + 16: uint16(35670), + 17: uint16(35671), + 18: uint16(35672), + 19: uint16(35673), + 20: uint16(35674), + 21: uint16(35675), + 22: uint16(35676), + 23: uint16(35677), + 24: uint16(35678), + 25: uint16(35679), + 26: uint16(35680), + 27: uint16(35681), + 28: uint16(35682), + 29: uint16(35683), + 30: uint16(35684), + 31: uint16(35685), + 32: uint16(35687), + 33: uint16(35688), + 34: uint16(35689), + 35: uint16(35690), + 36: uint16(35691), + 37: uint16(35693), + 38: uint16(35694), + 39: uint16(35695), + 40: uint16(35696), + 41: uint16(35697), + 42: uint16(35698), + 43: uint16(35699), + 44: uint16(35700), + 45: uint16(35701), + 46: uint16(35702), + 47: uint16(35703), + 48: uint16(35704), + 49: uint16(35705), + 50: uint16(35706), + 51: uint16(35707), + 52: uint16(35708), + 53: uint16(35709), + 54: uint16(35710), + 55: uint16(35711), + 56: uint16(35712), + 57: uint16(35713), + 58: uint16(35714), + 59: uint16(35715), + 60: uint16(35716), + 61: uint16(35717), + 62: uint16(35718), + 63: uint16(35719), + 64: uint16(35720), + 65: uint16(35721), + 66: uint16(35722), + 67: uint16(35723), + 68: uint16(35724), + 69: uint16(35725), + 70: uint16(35726), + 71: uint16(35727), + 72: uint16(35728), + 73: uint16(35729), + 74: uint16(35730), + 75: uint16(35731), + 76: uint16(35732), + 77: uint16(35733), + 78: uint16(35734), + 79: uint16(35735), + 80: uint16(35736), + 81: uint16(35737), + 82: uint16(35738), + 83: uint16(35739), + 84: uint16(35740), + 85: uint16(35741), + 86: uint16(35742), + 87: uint16(35743), + 88: uint16(35756), + 89: uint16(35761), + 90: uint16(35771), + 91: uint16(35783), + 92: uint16(35792), + 93: uint16(35818), + 94: uint16(35849), + 95: uint16(35870), + 96: uint16(20303), + 97: uint16(27880), + 98: uint16(31069), + 99: uint16(39547), + 100: uint16(25235), + 101: uint16(29226), + 102: uint16(25341), + 103: uint16(19987), + 104: uint16(30742), + 105: uint16(36716), + 106: uint16(25776), + 107: uint16(36186), + 108: uint16(31686), + 109: uint16(26729), + 110: uint16(24196), + 111: uint16(35013), + 112: uint16(22918), + 113: uint16(25758), + 114: uint16(22766), + 115: uint16(29366), + 116: uint16(26894), + 117: uint16(38181), + 118: uint16(36861), + 119: uint16(36184), + 120: uint16(22368), + 121: uint16(32512), + 122: uint16(35846), + 123: uint16(20934), + 124: uint16(25417), + 125: uint16(25305), + 126: uint16(21331), + 127: uint16(26700), + 128: uint16(29730), + 129: uint16(33537), + 130: uint16(37196), + 131: uint16(21828), + 132: uint16(30528), + 133: uint16(28796), + 134: uint16(27978), + 135: uint16(20857), + 136: uint16(21672), + 137: uint16(36164), + 138: uint16(23039), + 139: uint16(28363), + 140: uint16(28100), + 141: uint16(23388), + 142: uint16(32043), + 143: uint16(20180), + 144: uint16(31869), + 145: uint16(28371), + 146: uint16(23376), + 147: uint16(33258), + 148: uint16(28173), + 149: uint16(23383), + 150: uint16(39683), + 151: uint16(26837), + 152: uint16(36394), + 153: uint16(23447), + 154: uint16(32508), + 155: uint16(24635), + 156: uint16(32437), + 157: uint16(37049), + 158: uint16(36208), + 159: uint16(22863), + 160: uint16(25549), + 161: uint16(31199), + 162: uint16(36275), + 163: uint16(21330), + 164: uint16(26063), + 165: uint16(31062), + 166: uint16(35781), + 167: uint16(38459), + 168: uint16(32452), + 169: uint16(38075), + 170: uint16(32386), + 171: uint16(22068), + 172: uint16(37257), + 173: uint16(26368), + 174: uint16(32618), + 175: uint16(23562), + 176: uint16(36981), + 177: uint16(26152), + 178: uint16(24038), + 179: uint16(20304), + 180: uint16(26590), + 181: uint16(20570), + 182: uint16(20316), + 183: uint16(22352), + 184: uint16(24231), + 185: uint16(59408), + 186: uint16(59409), + 187: uint16(59410), + 188: uint16(59411), + 189: uint16(59412), + }, + 87: { + 0: uint16(35896), + 1: uint16(35897), + 2: uint16(35898), + 3: uint16(35899), + 4: uint16(35900), + 5: uint16(35901), + 6: uint16(35902), + 7: uint16(35903), + 8: uint16(35904), + 9: uint16(35906), + 10: uint16(35907), + 11: uint16(35908), + 12: uint16(35909), + 13: uint16(35912), + 14: uint16(35914), + 15: uint16(35915), + 16: uint16(35917), + 17: uint16(35918), + 18: uint16(35919), + 19: uint16(35920), + 20: uint16(35921), + 21: uint16(35922), + 22: uint16(35923), + 23: uint16(35924), + 24: uint16(35926), + 25: uint16(35927), + 26: uint16(35928), + 27: uint16(35929), + 28: uint16(35931), + 29: uint16(35932), + 30: uint16(35933), + 31: uint16(35934), + 32: uint16(35935), + 33: uint16(35936), + 34: uint16(35939), + 35: uint16(35940), + 36: uint16(35941), + 37: uint16(35942), + 38: uint16(35943), + 39: uint16(35944), + 40: uint16(35945), + 41: uint16(35948), + 42: uint16(35949), + 43: uint16(35950), + 44: uint16(35951), + 45: uint16(35952), + 46: uint16(35953), + 47: uint16(35954), + 48: uint16(35956), + 49: uint16(35957), + 50: uint16(35958), + 51: uint16(35959), + 52: uint16(35963), + 53: uint16(35964), + 54: uint16(35965), + 55: uint16(35966), + 56: uint16(35967), + 57: uint16(35968), + 58: uint16(35969), + 59: uint16(35971), + 60: uint16(35972), + 61: uint16(35974), + 62: uint16(35975), + 63: uint16(35976), + 64: uint16(35979), + 65: uint16(35981), + 66: uint16(35982), + 67: uint16(35983), + 68: uint16(35984), + 69: uint16(35985), + 70: uint16(35986), + 71: uint16(35987), + 72: uint16(35989), + 73: uint16(35990), + 74: uint16(35991), + 75: uint16(35993), + 76: uint16(35994), + 77: uint16(35995), + 78: uint16(35996), + 79: uint16(35997), + 80: uint16(35998), + 81: uint16(35999), + 82: uint16(36000), + 83: uint16(36001), + 84: uint16(36002), + 85: uint16(36003), + 86: uint16(36004), + 87: uint16(36005), + 88: uint16(36006), + 89: uint16(36007), + 90: uint16(36008), + 91: uint16(36009), + 92: uint16(36010), + 93: uint16(36011), + 94: uint16(36012), + 95: uint16(36013), + 96: uint16(20109), + 97: uint16(19980), + 98: uint16(20800), + 99: uint16(19984), + 100: uint16(24319), + 101: uint16(21317), + 102: uint16(19989), + 103: uint16(20120), + 104: uint16(19998), + 105: uint16(39730), + 106: uint16(23404), + 107: uint16(22121), + 108: uint16(20008), + 109: uint16(31162), + 110: uint16(20031), + 111: uint16(21269), + 112: uint16(20039), + 113: uint16(22829), + 114: uint16(29243), + 115: uint16(21358), + 116: uint16(27664), + 117: uint16(22239), + 118: uint16(32996), + 119: uint16(39319), + 120: uint16(27603), + 121: uint16(30590), + 122: uint16(40727), + 123: uint16(20022), + 124: uint16(20127), + 125: uint16(40720), + 126: uint16(20060), + 127: uint16(20073), + 128: uint16(20115), + 129: uint16(33416), + 130: uint16(23387), + 131: uint16(21868), + 132: uint16(22031), + 133: uint16(20164), + 134: uint16(21389), + 135: uint16(21405), + 136: uint16(21411), + 137: uint16(21413), + 138: uint16(21422), + 139: uint16(38757), + 140: uint16(36189), + 141: uint16(21274), + 142: uint16(21493), + 143: uint16(21286), + 144: uint16(21294), + 145: uint16(21310), + 146: uint16(36188), + 147: uint16(21350), + 148: uint16(21347), + 149: uint16(20994), + 150: uint16(21000), + 151: uint16(21006), + 152: uint16(21037), + 153: uint16(21043), + 154: uint16(21055), + 155: uint16(21056), + 156: uint16(21068), + 157: uint16(21086), + 158: uint16(21089), + 159: uint16(21084), + 160: uint16(33967), + 161: uint16(21117), + 162: uint16(21122), + 163: uint16(21121), + 164: uint16(21136), + 165: uint16(21139), + 166: uint16(20866), + 167: uint16(32596), + 168: uint16(20155), + 169: uint16(20163), + 170: uint16(20169), + 171: uint16(20162), + 172: uint16(20200), + 173: uint16(20193), + 174: uint16(20203), + 175: uint16(20190), + 176: uint16(20251), + 177: uint16(20211), + 178: uint16(20258), + 179: uint16(20324), + 180: uint16(20213), + 181: uint16(20261), + 182: uint16(20263), + 183: uint16(20233), + 184: uint16(20267), + 185: uint16(20318), + 186: uint16(20327), + 187: uint16(25912), + 188: uint16(20314), + 189: uint16(20317), + }, + 88: { + 0: uint16(36014), + 1: uint16(36015), + 2: uint16(36016), + 3: uint16(36017), + 4: uint16(36018), + 5: uint16(36019), + 6: uint16(36020), + 7: uint16(36021), + 8: uint16(36022), + 9: uint16(36023), + 10: uint16(36024), + 11: uint16(36025), + 12: uint16(36026), + 13: uint16(36027), + 14: uint16(36028), + 15: uint16(36029), + 16: uint16(36030), + 17: uint16(36031), + 18: uint16(36032), + 19: uint16(36033), + 20: uint16(36034), + 21: uint16(36035), + 22: uint16(36036), + 23: uint16(36037), + 24: uint16(36038), + 25: uint16(36039), + 26: uint16(36040), + 27: uint16(36041), + 28: uint16(36042), + 29: uint16(36043), + 30: uint16(36044), + 31: uint16(36045), + 32: uint16(36046), + 33: uint16(36047), + 34: uint16(36048), + 35: uint16(36049), + 36: uint16(36050), + 37: uint16(36051), + 38: uint16(36052), + 39: uint16(36053), + 40: uint16(36054), + 41: uint16(36055), + 42: uint16(36056), + 43: uint16(36057), + 44: uint16(36058), + 45: uint16(36059), + 46: uint16(36060), + 47: uint16(36061), + 48: uint16(36062), + 49: uint16(36063), + 50: uint16(36064), + 51: uint16(36065), + 52: uint16(36066), + 53: uint16(36067), + 54: uint16(36068), + 55: uint16(36069), + 56: uint16(36070), + 57: uint16(36071), + 58: uint16(36072), + 59: uint16(36073), + 60: uint16(36074), + 61: uint16(36075), + 62: uint16(36076), + 63: uint16(36077), + 64: uint16(36078), + 65: uint16(36079), + 66: uint16(36080), + 67: uint16(36081), + 68: uint16(36082), + 69: uint16(36083), + 70: uint16(36084), + 71: uint16(36085), + 72: uint16(36086), + 73: uint16(36087), + 74: uint16(36088), + 75: uint16(36089), + 76: uint16(36090), + 77: uint16(36091), + 78: uint16(36092), + 79: uint16(36093), + 80: uint16(36094), + 81: uint16(36095), + 82: uint16(36096), + 83: uint16(36097), + 84: uint16(36098), + 85: uint16(36099), + 86: uint16(36100), + 87: uint16(36101), + 88: uint16(36102), + 89: uint16(36103), + 90: uint16(36104), + 91: uint16(36105), + 92: uint16(36106), + 93: uint16(36107), + 94: uint16(36108), + 95: uint16(36109), + 96: uint16(20319), + 97: uint16(20311), + 98: uint16(20274), + 99: uint16(20285), + 100: uint16(20342), + 101: uint16(20340), + 102: uint16(20369), + 103: uint16(20361), + 104: uint16(20355), + 105: uint16(20367), + 106: uint16(20350), + 107: uint16(20347), + 108: uint16(20394), + 109: uint16(20348), + 110: uint16(20396), + 111: uint16(20372), + 112: uint16(20454), + 113: uint16(20456), + 114: uint16(20458), + 115: uint16(20421), + 116: uint16(20442), + 117: uint16(20451), + 118: uint16(20444), + 119: uint16(20433), + 120: uint16(20447), + 121: uint16(20472), + 122: uint16(20521), + 123: uint16(20556), + 124: uint16(20467), + 125: uint16(20524), + 126: uint16(20495), + 127: uint16(20526), + 128: uint16(20525), + 129: uint16(20478), + 130: uint16(20508), + 131: uint16(20492), + 132: uint16(20517), + 133: uint16(20520), + 134: uint16(20606), + 135: uint16(20547), + 136: uint16(20565), + 137: uint16(20552), + 138: uint16(20558), + 139: uint16(20588), + 140: uint16(20603), + 141: uint16(20645), + 142: uint16(20647), + 143: uint16(20649), + 144: uint16(20666), + 145: uint16(20694), + 146: uint16(20742), + 147: uint16(20717), + 148: uint16(20716), + 149: uint16(20710), + 150: uint16(20718), + 151: uint16(20743), + 152: uint16(20747), + 153: uint16(20189), + 154: uint16(27709), + 155: uint16(20312), + 156: uint16(20325), + 157: uint16(20430), + 158: uint16(40864), + 159: uint16(27718), + 160: uint16(31860), + 161: uint16(20846), + 162: uint16(24061), + 163: uint16(40649), + 164: uint16(39320), + 165: uint16(20865), + 166: uint16(22804), + 167: uint16(21241), + 168: uint16(21261), + 169: uint16(35335), + 170: uint16(21264), + 171: uint16(20971), + 172: uint16(22809), + 173: uint16(20821), + 174: uint16(20128), + 175: uint16(20822), + 176: uint16(20147), + 177: uint16(34926), + 178: uint16(34980), + 179: uint16(20149), + 180: uint16(33044), + 181: uint16(35026), + 182: uint16(31104), + 183: uint16(23348), + 184: uint16(34819), + 185: uint16(32696), + 186: uint16(20907), + 187: uint16(20913), + 188: uint16(20925), + 189: uint16(20924), + }, + 89: { + 0: uint16(36110), + 1: uint16(36111), + 2: uint16(36112), + 3: uint16(36113), + 4: uint16(36114), + 5: uint16(36115), + 6: uint16(36116), + 7: uint16(36117), + 8: uint16(36118), + 9: uint16(36119), + 10: uint16(36120), + 11: uint16(36121), + 12: uint16(36122), + 13: uint16(36123), + 14: uint16(36124), + 15: uint16(36128), + 16: uint16(36177), + 17: uint16(36178), + 18: uint16(36183), + 19: uint16(36191), + 20: uint16(36197), + 21: uint16(36200), + 22: uint16(36201), + 23: uint16(36202), + 24: uint16(36204), + 25: uint16(36206), + 26: uint16(36207), + 27: uint16(36209), + 28: uint16(36210), + 29: uint16(36216), + 30: uint16(36217), + 31: uint16(36218), + 32: uint16(36219), + 33: uint16(36220), + 34: uint16(36221), + 35: uint16(36222), + 36: uint16(36223), + 37: uint16(36224), + 38: uint16(36226), + 39: uint16(36227), + 40: uint16(36230), + 41: uint16(36231), + 42: uint16(36232), + 43: uint16(36233), + 44: uint16(36236), + 45: uint16(36237), + 46: uint16(36238), + 47: uint16(36239), + 48: uint16(36240), + 49: uint16(36242), + 50: uint16(36243), + 51: uint16(36245), + 52: uint16(36246), + 53: uint16(36247), + 54: uint16(36248), + 55: uint16(36249), + 56: uint16(36250), + 57: uint16(36251), + 58: uint16(36252), + 59: uint16(36253), + 60: uint16(36254), + 61: uint16(36256), + 62: uint16(36257), + 63: uint16(36258), + 64: uint16(36260), + 65: uint16(36261), + 66: uint16(36262), + 67: uint16(36263), + 68: uint16(36264), + 69: uint16(36265), + 70: uint16(36266), + 71: uint16(36267), + 72: uint16(36268), + 73: uint16(36269), + 74: uint16(36270), + 75: uint16(36271), + 76: uint16(36272), + 77: uint16(36274), + 78: uint16(36278), + 79: uint16(36279), + 80: uint16(36281), + 81: uint16(36283), + 82: uint16(36285), + 83: uint16(36288), + 84: uint16(36289), + 85: uint16(36290), + 86: uint16(36293), + 87: uint16(36295), + 88: uint16(36296), + 89: uint16(36297), + 90: uint16(36298), + 91: uint16(36301), + 92: uint16(36304), + 93: uint16(36306), + 94: uint16(36307), + 95: uint16(36308), + 96: uint16(20935), + 97: uint16(20886), + 98: uint16(20898), + 99: uint16(20901), + 100: uint16(35744), + 101: uint16(35750), + 102: uint16(35751), + 103: uint16(35754), + 104: uint16(35764), + 105: uint16(35765), + 106: uint16(35767), + 107: uint16(35778), + 108: uint16(35779), + 109: uint16(35787), + 110: uint16(35791), + 111: uint16(35790), + 112: uint16(35794), + 113: uint16(35795), + 114: uint16(35796), + 115: uint16(35798), + 116: uint16(35800), + 117: uint16(35801), + 118: uint16(35804), + 119: uint16(35807), + 120: uint16(35808), + 121: uint16(35812), + 122: uint16(35816), + 123: uint16(35817), + 124: uint16(35822), + 125: uint16(35824), + 126: uint16(35827), + 127: uint16(35830), + 128: uint16(35833), + 129: uint16(35836), + 130: uint16(35839), + 131: uint16(35840), + 132: uint16(35842), + 133: uint16(35844), + 134: uint16(35847), + 135: uint16(35852), + 136: uint16(35855), + 137: uint16(35857), + 138: uint16(35858), + 139: uint16(35860), + 140: uint16(35861), + 141: uint16(35862), + 142: uint16(35865), + 143: uint16(35867), + 144: uint16(35864), + 145: uint16(35869), + 146: uint16(35871), + 147: uint16(35872), + 148: uint16(35873), + 149: uint16(35877), + 150: uint16(35879), + 151: uint16(35882), + 152: uint16(35883), + 153: uint16(35886), + 154: uint16(35887), + 155: uint16(35890), + 156: uint16(35891), + 157: uint16(35893), + 158: uint16(35894), + 159: uint16(21353), + 160: uint16(21370), + 161: uint16(38429), + 162: uint16(38434), + 163: uint16(38433), + 164: uint16(38449), + 165: uint16(38442), + 166: uint16(38461), + 167: uint16(38460), + 168: uint16(38466), + 169: uint16(38473), + 170: uint16(38484), + 171: uint16(38495), + 172: uint16(38503), + 173: uint16(38508), + 174: uint16(38514), + 175: uint16(38516), + 176: uint16(38536), + 177: uint16(38541), + 178: uint16(38551), + 179: uint16(38576), + 180: uint16(37015), + 181: uint16(37019), + 182: uint16(37021), + 183: uint16(37017), + 184: uint16(37036), + 185: uint16(37025), + 186: uint16(37044), + 187: uint16(37043), + 188: uint16(37046), + 189: uint16(37050), + }, + 90: { + 0: uint16(36309), + 1: uint16(36312), + 2: uint16(36313), + 3: uint16(36316), + 4: uint16(36320), + 5: uint16(36321), + 6: uint16(36322), + 7: uint16(36325), + 8: uint16(36326), + 9: uint16(36327), + 10: uint16(36329), + 11: uint16(36333), + 12: uint16(36334), + 13: uint16(36336), + 14: uint16(36337), + 15: uint16(36338), + 16: uint16(36340), + 17: uint16(36342), + 18: uint16(36348), + 19: uint16(36350), + 20: uint16(36351), + 21: uint16(36352), + 22: uint16(36353), + 23: uint16(36354), + 24: uint16(36355), + 25: uint16(36356), + 26: uint16(36358), + 27: uint16(36359), + 28: uint16(36360), + 29: uint16(36363), + 30: uint16(36365), + 31: uint16(36366), + 32: uint16(36368), + 33: uint16(36369), + 34: uint16(36370), + 35: uint16(36371), + 36: uint16(36373), + 37: uint16(36374), + 38: uint16(36375), + 39: uint16(36376), + 40: uint16(36377), + 41: uint16(36378), + 42: uint16(36379), + 43: uint16(36380), + 44: uint16(36384), + 45: uint16(36385), + 46: uint16(36388), + 47: uint16(36389), + 48: uint16(36390), + 49: uint16(36391), + 50: uint16(36392), + 51: uint16(36395), + 52: uint16(36397), + 53: uint16(36400), + 54: uint16(36402), + 55: uint16(36403), + 56: uint16(36404), + 57: uint16(36406), + 58: uint16(36407), + 59: uint16(36408), + 60: uint16(36411), + 61: uint16(36412), + 62: uint16(36414), + 63: uint16(36415), + 64: uint16(36419), + 65: uint16(36421), + 66: uint16(36422), + 67: uint16(36428), + 68: uint16(36429), + 69: uint16(36430), + 70: uint16(36431), + 71: uint16(36432), + 72: uint16(36435), + 73: uint16(36436), + 74: uint16(36437), + 75: uint16(36438), + 76: uint16(36439), + 77: uint16(36440), + 78: uint16(36442), + 79: uint16(36443), + 80: uint16(36444), + 81: uint16(36445), + 82: uint16(36446), + 83: uint16(36447), + 84: uint16(36448), + 85: uint16(36449), + 86: uint16(36450), + 87: uint16(36451), + 88: uint16(36452), + 89: uint16(36453), + 90: uint16(36455), + 91: uint16(36456), + 92: uint16(36458), + 93: uint16(36459), + 94: uint16(36462), + 95: uint16(36465), + 96: uint16(37048), + 97: uint16(37040), + 98: uint16(37071), + 99: uint16(37061), + 100: uint16(37054), + 101: uint16(37072), + 102: uint16(37060), + 103: uint16(37063), + 104: uint16(37075), + 105: uint16(37094), + 106: uint16(37090), + 107: uint16(37084), + 108: uint16(37079), + 109: uint16(37083), + 110: uint16(37099), + 111: uint16(37103), + 112: uint16(37118), + 113: uint16(37124), + 114: uint16(37154), + 115: uint16(37150), + 116: uint16(37155), + 117: uint16(37169), + 118: uint16(37167), + 119: uint16(37177), + 120: uint16(37187), + 121: uint16(37190), + 122: uint16(21005), + 123: uint16(22850), + 124: uint16(21154), + 125: uint16(21164), + 126: uint16(21165), + 127: uint16(21182), + 128: uint16(21759), + 129: uint16(21200), + 130: uint16(21206), + 131: uint16(21232), + 132: uint16(21471), + 133: uint16(29166), + 134: uint16(30669), + 135: uint16(24308), + 136: uint16(20981), + 137: uint16(20988), + 138: uint16(39727), + 139: uint16(21430), + 140: uint16(24321), + 141: uint16(30042), + 142: uint16(24047), + 143: uint16(22348), + 144: uint16(22441), + 145: uint16(22433), + 146: uint16(22654), + 147: uint16(22716), + 148: uint16(22725), + 149: uint16(22737), + 150: uint16(22313), + 151: uint16(22316), + 152: uint16(22314), + 153: uint16(22323), + 154: uint16(22329), + 155: uint16(22318), + 156: uint16(22319), + 157: uint16(22364), + 158: uint16(22331), + 159: uint16(22338), + 160: uint16(22377), + 161: uint16(22405), + 162: uint16(22379), + 163: uint16(22406), + 164: uint16(22396), + 165: uint16(22395), + 166: uint16(22376), + 167: uint16(22381), + 168: uint16(22390), + 169: uint16(22387), + 170: uint16(22445), + 171: uint16(22436), + 172: uint16(22412), + 173: uint16(22450), + 174: uint16(22479), + 175: uint16(22439), + 176: uint16(22452), + 177: uint16(22419), + 178: uint16(22432), + 179: uint16(22485), + 180: uint16(22488), + 181: uint16(22490), + 182: uint16(22489), + 183: uint16(22482), + 184: uint16(22456), + 185: uint16(22516), + 186: uint16(22511), + 187: uint16(22520), + 188: uint16(22500), + 189: uint16(22493), + }, + 91: { + 0: uint16(36467), + 1: uint16(36469), + 2: uint16(36471), + 3: uint16(36472), + 4: uint16(36473), + 5: uint16(36474), + 6: uint16(36475), + 7: uint16(36477), + 8: uint16(36478), + 9: uint16(36480), + 10: uint16(36482), + 11: uint16(36483), + 12: uint16(36484), + 13: uint16(36486), + 14: uint16(36488), + 15: uint16(36489), + 16: uint16(36490), + 17: uint16(36491), + 18: uint16(36492), + 19: uint16(36493), + 20: uint16(36494), + 21: uint16(36497), + 22: uint16(36498), + 23: uint16(36499), + 24: uint16(36501), + 25: uint16(36502), + 26: uint16(36503), + 27: uint16(36504), + 28: uint16(36505), + 29: uint16(36506), + 30: uint16(36507), + 31: uint16(36509), + 32: uint16(36511), + 33: uint16(36512), + 34: uint16(36513), + 35: uint16(36514), + 36: uint16(36515), + 37: uint16(36516), + 38: uint16(36517), + 39: uint16(36518), + 40: uint16(36519), + 41: uint16(36520), + 42: uint16(36521), + 43: uint16(36522), + 44: uint16(36525), + 45: uint16(36526), + 46: uint16(36528), + 47: uint16(36529), + 48: uint16(36531), + 49: uint16(36532), + 50: uint16(36533), + 51: uint16(36534), + 52: uint16(36535), + 53: uint16(36536), + 54: uint16(36537), + 55: uint16(36539), + 56: uint16(36540), + 57: uint16(36541), + 58: uint16(36542), + 59: uint16(36543), + 60: uint16(36544), + 61: uint16(36545), + 62: uint16(36546), + 63: uint16(36547), + 64: uint16(36548), + 65: uint16(36549), + 66: uint16(36550), + 67: uint16(36551), + 68: uint16(36552), + 69: uint16(36553), + 70: uint16(36554), + 71: uint16(36555), + 72: uint16(36556), + 73: uint16(36557), + 74: uint16(36559), + 75: uint16(36560), + 76: uint16(36561), + 77: uint16(36562), + 78: uint16(36563), + 79: uint16(36564), + 80: uint16(36565), + 81: uint16(36566), + 82: uint16(36567), + 83: uint16(36568), + 84: uint16(36569), + 85: uint16(36570), + 86: uint16(36571), + 87: uint16(36572), + 88: uint16(36573), + 89: uint16(36574), + 90: uint16(36575), + 91: uint16(36576), + 92: uint16(36577), + 93: uint16(36578), + 94: uint16(36579), + 95: uint16(36580), + 96: uint16(22539), + 97: uint16(22541), + 98: uint16(22525), + 99: uint16(22509), + 100: uint16(22528), + 101: uint16(22558), + 102: uint16(22553), + 103: uint16(22596), + 104: uint16(22560), + 105: uint16(22629), + 106: uint16(22636), + 107: uint16(22657), + 108: uint16(22665), + 109: uint16(22682), + 110: uint16(22656), + 111: uint16(39336), + 112: uint16(40729), + 113: uint16(25087), + 114: uint16(33401), + 115: uint16(33405), + 116: uint16(33407), + 117: uint16(33423), + 118: uint16(33418), + 119: uint16(33448), + 120: uint16(33412), + 121: uint16(33422), + 122: uint16(33425), + 123: uint16(33431), + 124: uint16(33433), + 125: uint16(33451), + 126: uint16(33464), + 127: uint16(33470), + 128: uint16(33456), + 129: uint16(33480), + 130: uint16(33482), + 131: uint16(33507), + 132: uint16(33432), + 133: uint16(33463), + 134: uint16(33454), + 135: uint16(33483), + 136: uint16(33484), + 137: uint16(33473), + 138: uint16(33449), + 139: uint16(33460), + 140: uint16(33441), + 141: uint16(33450), + 142: uint16(33439), + 143: uint16(33476), + 144: uint16(33486), + 145: uint16(33444), + 146: uint16(33505), + 147: uint16(33545), + 148: uint16(33527), + 149: uint16(33508), + 150: uint16(33551), + 151: uint16(33543), + 152: uint16(33500), + 153: uint16(33524), + 154: uint16(33490), + 155: uint16(33496), + 156: uint16(33548), + 157: uint16(33531), + 158: uint16(33491), + 159: uint16(33553), + 160: uint16(33562), + 161: uint16(33542), + 162: uint16(33556), + 163: uint16(33557), + 164: uint16(33504), + 165: uint16(33493), + 166: uint16(33564), + 167: uint16(33617), + 168: uint16(33627), + 169: uint16(33628), + 170: uint16(33544), + 171: uint16(33682), + 172: uint16(33596), + 173: uint16(33588), + 174: uint16(33585), + 175: uint16(33691), + 176: uint16(33630), + 177: uint16(33583), + 178: uint16(33615), + 179: uint16(33607), + 180: uint16(33603), + 181: uint16(33631), + 182: uint16(33600), + 183: uint16(33559), + 184: uint16(33632), + 185: uint16(33581), + 186: uint16(33594), + 187: uint16(33587), + 188: uint16(33638), + 189: uint16(33637), + }, + 92: { + 0: uint16(36581), + 1: uint16(36582), + 2: uint16(36583), + 3: uint16(36584), + 4: uint16(36585), + 5: uint16(36586), + 6: uint16(36587), + 7: uint16(36588), + 8: uint16(36589), + 9: uint16(36590), + 10: uint16(36591), + 11: uint16(36592), + 12: uint16(36593), + 13: uint16(36594), + 14: uint16(36595), + 15: uint16(36596), + 16: uint16(36597), + 17: uint16(36598), + 18: uint16(36599), + 19: uint16(36600), + 20: uint16(36601), + 21: uint16(36602), + 22: uint16(36603), + 23: uint16(36604), + 24: uint16(36605), + 25: uint16(36606), + 26: uint16(36607), + 27: uint16(36608), + 28: uint16(36609), + 29: uint16(36610), + 30: uint16(36611), + 31: uint16(36612), + 32: uint16(36613), + 33: uint16(36614), + 34: uint16(36615), + 35: uint16(36616), + 36: uint16(36617), + 37: uint16(36618), + 38: uint16(36619), + 39: uint16(36620), + 40: uint16(36621), + 41: uint16(36622), + 42: uint16(36623), + 43: uint16(36624), + 44: uint16(36625), + 45: uint16(36626), + 46: uint16(36627), + 47: uint16(36628), + 48: uint16(36629), + 49: uint16(36630), + 50: uint16(36631), + 51: uint16(36632), + 52: uint16(36633), + 53: uint16(36634), + 54: uint16(36635), + 55: uint16(36636), + 56: uint16(36637), + 57: uint16(36638), + 58: uint16(36639), + 59: uint16(36640), + 60: uint16(36641), + 61: uint16(36642), + 62: uint16(36643), + 63: uint16(36644), + 64: uint16(36645), + 65: uint16(36646), + 66: uint16(36647), + 67: uint16(36648), + 68: uint16(36649), + 69: uint16(36650), + 70: uint16(36651), + 71: uint16(36652), + 72: uint16(36653), + 73: uint16(36654), + 74: uint16(36655), + 75: uint16(36656), + 76: uint16(36657), + 77: uint16(36658), + 78: uint16(36659), + 79: uint16(36660), + 80: uint16(36661), + 81: uint16(36662), + 82: uint16(36663), + 83: uint16(36664), + 84: uint16(36665), + 85: uint16(36666), + 86: uint16(36667), + 87: uint16(36668), + 88: uint16(36669), + 89: uint16(36670), + 90: uint16(36671), + 91: uint16(36672), + 92: uint16(36673), + 93: uint16(36674), + 94: uint16(36675), + 95: uint16(36676), + 96: uint16(33640), + 97: uint16(33563), + 98: uint16(33641), + 99: uint16(33644), + 100: uint16(33642), + 101: uint16(33645), + 102: uint16(33646), + 103: uint16(33712), + 104: uint16(33656), + 105: uint16(33715), + 106: uint16(33716), + 107: uint16(33696), + 108: uint16(33706), + 109: uint16(33683), + 110: uint16(33692), + 111: uint16(33669), + 112: uint16(33660), + 113: uint16(33718), + 114: uint16(33705), + 115: uint16(33661), + 116: uint16(33720), + 117: uint16(33659), + 118: uint16(33688), + 119: uint16(33694), + 120: uint16(33704), + 121: uint16(33722), + 122: uint16(33724), + 123: uint16(33729), + 124: uint16(33793), + 125: uint16(33765), + 126: uint16(33752), + 127: uint16(22535), + 128: uint16(33816), + 129: uint16(33803), + 130: uint16(33757), + 131: uint16(33789), + 132: uint16(33750), + 133: uint16(33820), + 134: uint16(33848), + 135: uint16(33809), + 136: uint16(33798), + 137: uint16(33748), + 138: uint16(33759), + 139: uint16(33807), + 140: uint16(33795), + 141: uint16(33784), + 142: uint16(33785), + 143: uint16(33770), + 144: uint16(33733), + 145: uint16(33728), + 146: uint16(33830), + 147: uint16(33776), + 148: uint16(33761), + 149: uint16(33884), + 150: uint16(33873), + 151: uint16(33882), + 152: uint16(33881), + 153: uint16(33907), + 154: uint16(33927), + 155: uint16(33928), + 156: uint16(33914), + 157: uint16(33929), + 158: uint16(33912), + 159: uint16(33852), + 160: uint16(33862), + 161: uint16(33897), + 162: uint16(33910), + 163: uint16(33932), + 164: uint16(33934), + 165: uint16(33841), + 166: uint16(33901), + 167: uint16(33985), + 168: uint16(33997), + 169: uint16(34000), + 170: uint16(34022), + 171: uint16(33981), + 172: uint16(34003), + 173: uint16(33994), + 174: uint16(33983), + 175: uint16(33978), + 176: uint16(34016), + 177: uint16(33953), + 178: uint16(33977), + 179: uint16(33972), + 180: uint16(33943), + 181: uint16(34021), + 182: uint16(34019), + 183: uint16(34060), + 184: uint16(29965), + 185: uint16(34104), + 186: uint16(34032), + 187: uint16(34105), + 188: uint16(34079), + 189: uint16(34106), + }, + 93: { + 0: uint16(36677), + 1: uint16(36678), + 2: uint16(36679), + 3: uint16(36680), + 4: uint16(36681), + 5: uint16(36682), + 6: uint16(36683), + 7: uint16(36684), + 8: uint16(36685), + 9: uint16(36686), + 10: uint16(36687), + 11: uint16(36688), + 12: uint16(36689), + 13: uint16(36690), + 14: uint16(36691), + 15: uint16(36692), + 16: uint16(36693), + 17: uint16(36694), + 18: uint16(36695), + 19: uint16(36696), + 20: uint16(36697), + 21: uint16(36698), + 22: uint16(36699), + 23: uint16(36700), + 24: uint16(36701), + 25: uint16(36702), + 26: uint16(36703), + 27: uint16(36704), + 28: uint16(36705), + 29: uint16(36706), + 30: uint16(36707), + 31: uint16(36708), + 32: uint16(36709), + 33: uint16(36714), + 34: uint16(36736), + 35: uint16(36748), + 36: uint16(36754), + 37: uint16(36765), + 38: uint16(36768), + 39: uint16(36769), + 40: uint16(36770), + 41: uint16(36772), + 42: uint16(36773), + 43: uint16(36774), + 44: uint16(36775), + 45: uint16(36778), + 46: uint16(36780), + 47: uint16(36781), + 48: uint16(36782), + 49: uint16(36783), + 50: uint16(36786), + 51: uint16(36787), + 52: uint16(36788), + 53: uint16(36789), + 54: uint16(36791), + 55: uint16(36792), + 56: uint16(36794), + 57: uint16(36795), + 58: uint16(36796), + 59: uint16(36799), + 60: uint16(36800), + 61: uint16(36803), + 62: uint16(36806), + 63: uint16(36809), + 64: uint16(36810), + 65: uint16(36811), + 66: uint16(36812), + 67: uint16(36813), + 68: uint16(36815), + 69: uint16(36818), + 70: uint16(36822), + 71: uint16(36823), + 72: uint16(36826), + 73: uint16(36832), + 74: uint16(36833), + 75: uint16(36835), + 76: uint16(36839), + 77: uint16(36844), + 78: uint16(36847), + 79: uint16(36849), + 80: uint16(36850), + 81: uint16(36852), + 82: uint16(36853), + 83: uint16(36854), + 84: uint16(36858), + 85: uint16(36859), + 86: uint16(36860), + 87: uint16(36862), + 88: uint16(36863), + 89: uint16(36871), + 90: uint16(36872), + 91: uint16(36876), + 92: uint16(36878), + 93: uint16(36883), + 94: uint16(36885), + 95: uint16(36888), + 96: uint16(34134), + 97: uint16(34107), + 98: uint16(34047), + 99: uint16(34044), + 100: uint16(34137), + 101: uint16(34120), + 102: uint16(34152), + 103: uint16(34148), + 104: uint16(34142), + 105: uint16(34170), + 106: uint16(30626), + 107: uint16(34115), + 108: uint16(34162), + 109: uint16(34171), + 110: uint16(34212), + 111: uint16(34216), + 112: uint16(34183), + 113: uint16(34191), + 114: uint16(34169), + 115: uint16(34222), + 116: uint16(34204), + 117: uint16(34181), + 118: uint16(34233), + 119: uint16(34231), + 120: uint16(34224), + 121: uint16(34259), + 122: uint16(34241), + 123: uint16(34268), + 124: uint16(34303), + 125: uint16(34343), + 126: uint16(34309), + 127: uint16(34345), + 128: uint16(34326), + 129: uint16(34364), + 130: uint16(24318), + 131: uint16(24328), + 132: uint16(22844), + 133: uint16(22849), + 134: uint16(32823), + 135: uint16(22869), + 136: uint16(22874), + 137: uint16(22872), + 138: uint16(21263), + 139: uint16(23586), + 140: uint16(23589), + 141: uint16(23596), + 142: uint16(23604), + 143: uint16(25164), + 144: uint16(25194), + 145: uint16(25247), + 146: uint16(25275), + 147: uint16(25290), + 148: uint16(25306), + 149: uint16(25303), + 150: uint16(25326), + 151: uint16(25378), + 152: uint16(25334), + 153: uint16(25401), + 154: uint16(25419), + 155: uint16(25411), + 156: uint16(25517), + 157: uint16(25590), + 158: uint16(25457), + 159: uint16(25466), + 160: uint16(25486), + 161: uint16(25524), + 162: uint16(25453), + 163: uint16(25516), + 164: uint16(25482), + 165: uint16(25449), + 166: uint16(25518), + 167: uint16(25532), + 168: uint16(25586), + 169: uint16(25592), + 170: uint16(25568), + 171: uint16(25599), + 172: uint16(25540), + 173: uint16(25566), + 174: uint16(25550), + 175: uint16(25682), + 176: uint16(25542), + 177: uint16(25534), + 178: uint16(25669), + 179: uint16(25665), + 180: uint16(25611), + 181: uint16(25627), + 182: uint16(25632), + 183: uint16(25612), + 184: uint16(25638), + 185: uint16(25633), + 186: uint16(25694), + 187: uint16(25732), + 188: uint16(25709), + 189: uint16(25750), + }, + 94: { + 0: uint16(36889), + 1: uint16(36892), + 2: uint16(36899), + 3: uint16(36900), + 4: uint16(36901), + 5: uint16(36903), + 6: uint16(36904), + 7: uint16(36905), + 8: uint16(36906), + 9: uint16(36907), + 10: uint16(36908), + 11: uint16(36912), + 12: uint16(36913), + 13: uint16(36914), + 14: uint16(36915), + 15: uint16(36916), + 16: uint16(36919), + 17: uint16(36921), + 18: uint16(36922), + 19: uint16(36925), + 20: uint16(36927), + 21: uint16(36928), + 22: uint16(36931), + 23: uint16(36933), + 24: uint16(36934), + 25: uint16(36936), + 26: uint16(36937), + 27: uint16(36938), + 28: uint16(36939), + 29: uint16(36940), + 30: uint16(36942), + 31: uint16(36948), + 32: uint16(36949), + 33: uint16(36950), + 34: uint16(36953), + 35: uint16(36954), + 36: uint16(36956), + 37: uint16(36957), + 38: uint16(36958), + 39: uint16(36959), + 40: uint16(36960), + 41: uint16(36961), + 42: uint16(36964), + 43: uint16(36966), + 44: uint16(36967), + 45: uint16(36969), + 46: uint16(36970), + 47: uint16(36971), + 48: uint16(36972), + 49: uint16(36975), + 50: uint16(36976), + 51: uint16(36977), + 52: uint16(36978), + 53: uint16(36979), + 54: uint16(36982), + 55: uint16(36983), + 56: uint16(36984), + 57: uint16(36985), + 58: uint16(36986), + 59: uint16(36987), + 60: uint16(36988), + 61: uint16(36990), + 62: uint16(36993), + 63: uint16(36996), + 64: uint16(36997), + 65: uint16(36998), + 66: uint16(36999), + 67: uint16(37001), + 68: uint16(37002), + 69: uint16(37004), + 70: uint16(37005), + 71: uint16(37006), + 72: uint16(37007), + 73: uint16(37008), + 74: uint16(37010), + 75: uint16(37012), + 76: uint16(37014), + 77: uint16(37016), + 78: uint16(37018), + 79: uint16(37020), + 80: uint16(37022), + 81: uint16(37023), + 82: uint16(37024), + 83: uint16(37028), + 84: uint16(37029), + 85: uint16(37031), + 86: uint16(37032), + 87: uint16(37033), + 88: uint16(37035), + 89: uint16(37037), + 90: uint16(37042), + 91: uint16(37047), + 92: uint16(37052), + 93: uint16(37053), + 94: uint16(37055), + 95: uint16(37056), + 96: uint16(25722), + 97: uint16(25783), + 98: uint16(25784), + 99: uint16(25753), + 100: uint16(25786), + 101: uint16(25792), + 102: uint16(25808), + 103: uint16(25815), + 104: uint16(25828), + 105: uint16(25826), + 106: uint16(25865), + 107: uint16(25893), + 108: uint16(25902), + 109: uint16(24331), + 110: uint16(24530), + 111: uint16(29977), + 112: uint16(24337), + 113: uint16(21343), + 114: uint16(21489), + 115: uint16(21501), + 116: uint16(21481), + 117: uint16(21480), + 118: uint16(21499), + 119: uint16(21522), + 120: uint16(21526), + 121: uint16(21510), + 122: uint16(21579), + 123: uint16(21586), + 124: uint16(21587), + 125: uint16(21588), + 126: uint16(21590), + 127: uint16(21571), + 128: uint16(21537), + 129: uint16(21591), + 130: uint16(21593), + 131: uint16(21539), + 132: uint16(21554), + 133: uint16(21634), + 134: uint16(21652), + 135: uint16(21623), + 136: uint16(21617), + 137: uint16(21604), + 138: uint16(21658), + 139: uint16(21659), + 140: uint16(21636), + 141: uint16(21622), + 142: uint16(21606), + 143: uint16(21661), + 144: uint16(21712), + 145: uint16(21677), + 146: uint16(21698), + 147: uint16(21684), + 148: uint16(21714), + 149: uint16(21671), + 150: uint16(21670), + 151: uint16(21715), + 152: uint16(21716), + 153: uint16(21618), + 154: uint16(21667), + 155: uint16(21717), + 156: uint16(21691), + 157: uint16(21695), + 158: uint16(21708), + 159: uint16(21721), + 160: uint16(21722), + 161: uint16(21724), + 162: uint16(21673), + 163: uint16(21674), + 164: uint16(21668), + 165: uint16(21725), + 166: uint16(21711), + 167: uint16(21726), + 168: uint16(21787), + 169: uint16(21735), + 170: uint16(21792), + 171: uint16(21757), + 172: uint16(21780), + 173: uint16(21747), + 174: uint16(21794), + 175: uint16(21795), + 176: uint16(21775), + 177: uint16(21777), + 178: uint16(21799), + 179: uint16(21802), + 180: uint16(21863), + 181: uint16(21903), + 182: uint16(21941), + 183: uint16(21833), + 184: uint16(21869), + 185: uint16(21825), + 186: uint16(21845), + 187: uint16(21823), + 188: uint16(21840), + 189: uint16(21820), + }, + 95: { + 0: uint16(37058), + 1: uint16(37059), + 2: uint16(37062), + 3: uint16(37064), + 4: uint16(37065), + 5: uint16(37067), + 6: uint16(37068), + 7: uint16(37069), + 8: uint16(37074), + 9: uint16(37076), + 10: uint16(37077), + 11: uint16(37078), + 12: uint16(37080), + 13: uint16(37081), + 14: uint16(37082), + 15: uint16(37086), + 16: uint16(37087), + 17: uint16(37088), + 18: uint16(37091), + 19: uint16(37092), + 20: uint16(37093), + 21: uint16(37097), + 22: uint16(37098), + 23: uint16(37100), + 24: uint16(37102), + 25: uint16(37104), + 26: uint16(37105), + 27: uint16(37106), + 28: uint16(37107), + 29: uint16(37109), + 30: uint16(37110), + 31: uint16(37111), + 32: uint16(37113), + 33: uint16(37114), + 34: uint16(37115), + 35: uint16(37116), + 36: uint16(37119), + 37: uint16(37120), + 38: uint16(37121), + 39: uint16(37123), + 40: uint16(37125), + 41: uint16(37126), + 42: uint16(37127), + 43: uint16(37128), + 44: uint16(37129), + 45: uint16(37130), + 46: uint16(37131), + 47: uint16(37132), + 48: uint16(37133), + 49: uint16(37134), + 50: uint16(37135), + 51: uint16(37136), + 52: uint16(37137), + 53: uint16(37138), + 54: uint16(37139), + 55: uint16(37140), + 56: uint16(37141), + 57: uint16(37142), + 58: uint16(37143), + 59: uint16(37144), + 60: uint16(37146), + 61: uint16(37147), + 62: uint16(37148), + 63: uint16(37149), + 64: uint16(37151), + 65: uint16(37152), + 66: uint16(37153), + 67: uint16(37156), + 68: uint16(37157), + 69: uint16(37158), + 70: uint16(37159), + 71: uint16(37160), + 72: uint16(37161), + 73: uint16(37162), + 74: uint16(37163), + 75: uint16(37164), + 76: uint16(37165), + 77: uint16(37166), + 78: uint16(37168), + 79: uint16(37170), + 80: uint16(37171), + 81: uint16(37172), + 82: uint16(37173), + 83: uint16(37174), + 84: uint16(37175), + 85: uint16(37176), + 86: uint16(37178), + 87: uint16(37179), + 88: uint16(37180), + 89: uint16(37181), + 90: uint16(37182), + 91: uint16(37183), + 92: uint16(37184), + 93: uint16(37185), + 94: uint16(37186), + 95: uint16(37188), + 96: uint16(21815), + 97: uint16(21846), + 98: uint16(21877), + 99: uint16(21878), + 100: uint16(21879), + 101: uint16(21811), + 102: uint16(21808), + 103: uint16(21852), + 104: uint16(21899), + 105: uint16(21970), + 106: uint16(21891), + 107: uint16(21937), + 108: uint16(21945), + 109: uint16(21896), + 110: uint16(21889), + 111: uint16(21919), + 112: uint16(21886), + 113: uint16(21974), + 114: uint16(21905), + 115: uint16(21883), + 116: uint16(21983), + 117: uint16(21949), + 118: uint16(21950), + 119: uint16(21908), + 120: uint16(21913), + 121: uint16(21994), + 122: uint16(22007), + 123: uint16(21961), + 124: uint16(22047), + 125: uint16(21969), + 126: uint16(21995), + 127: uint16(21996), + 128: uint16(21972), + 129: uint16(21990), + 130: uint16(21981), + 131: uint16(21956), + 132: uint16(21999), + 133: uint16(21989), + 134: uint16(22002), + 135: uint16(22003), + 136: uint16(21964), + 137: uint16(21965), + 138: uint16(21992), + 139: uint16(22005), + 140: uint16(21988), + 141: uint16(36756), + 142: uint16(22046), + 143: uint16(22024), + 144: uint16(22028), + 145: uint16(22017), + 146: uint16(22052), + 147: uint16(22051), + 148: uint16(22014), + 149: uint16(22016), + 150: uint16(22055), + 151: uint16(22061), + 152: uint16(22104), + 153: uint16(22073), + 154: uint16(22103), + 155: uint16(22060), + 156: uint16(22093), + 157: uint16(22114), + 158: uint16(22105), + 159: uint16(22108), + 160: uint16(22092), + 161: uint16(22100), + 162: uint16(22150), + 163: uint16(22116), + 164: uint16(22129), + 165: uint16(22123), + 166: uint16(22139), + 167: uint16(22140), + 168: uint16(22149), + 169: uint16(22163), + 170: uint16(22191), + 171: uint16(22228), + 172: uint16(22231), + 173: uint16(22237), + 174: uint16(22241), + 175: uint16(22261), + 176: uint16(22251), + 177: uint16(22265), + 178: uint16(22271), + 179: uint16(22276), + 180: uint16(22282), + 181: uint16(22281), + 182: uint16(22300), + 183: uint16(24079), + 184: uint16(24089), + 185: uint16(24084), + 186: uint16(24081), + 187: uint16(24113), + 188: uint16(24123), + 189: uint16(24124), + }, + 96: { + 0: uint16(37189), + 1: uint16(37191), + 2: uint16(37192), + 3: uint16(37201), + 4: uint16(37203), + 5: uint16(37204), + 6: uint16(37205), + 7: uint16(37206), + 8: uint16(37208), + 9: uint16(37209), + 10: uint16(37211), + 11: uint16(37212), + 12: uint16(37215), + 13: uint16(37216), + 14: uint16(37222), + 15: uint16(37223), + 16: uint16(37224), + 17: uint16(37227), + 18: uint16(37229), + 19: uint16(37235), + 20: uint16(37242), + 21: uint16(37243), + 22: uint16(37244), + 23: uint16(37248), + 24: uint16(37249), + 25: uint16(37250), + 26: uint16(37251), + 27: uint16(37252), + 28: uint16(37254), + 29: uint16(37256), + 30: uint16(37258), + 31: uint16(37262), + 32: uint16(37263), + 33: uint16(37267), + 34: uint16(37268), + 35: uint16(37269), + 36: uint16(37270), + 37: uint16(37271), + 38: uint16(37272), + 39: uint16(37273), + 40: uint16(37276), + 41: uint16(37277), + 42: uint16(37278), + 43: uint16(37279), + 44: uint16(37280), + 45: uint16(37281), + 46: uint16(37284), + 47: uint16(37285), + 48: uint16(37286), + 49: uint16(37287), + 50: uint16(37288), + 51: uint16(37289), + 52: uint16(37291), + 53: uint16(37292), + 54: uint16(37296), + 55: uint16(37297), + 56: uint16(37298), + 57: uint16(37299), + 58: uint16(37302), + 59: uint16(37303), + 60: uint16(37304), + 61: uint16(37305), + 62: uint16(37307), + 63: uint16(37308), + 64: uint16(37309), + 65: uint16(37310), + 66: uint16(37311), + 67: uint16(37312), + 68: uint16(37313), + 69: uint16(37314), + 70: uint16(37315), + 71: uint16(37316), + 72: uint16(37317), + 73: uint16(37318), + 74: uint16(37320), + 75: uint16(37323), + 76: uint16(37328), + 77: uint16(37330), + 78: uint16(37331), + 79: uint16(37332), + 80: uint16(37333), + 81: uint16(37334), + 82: uint16(37335), + 83: uint16(37336), + 84: uint16(37337), + 85: uint16(37338), + 86: uint16(37339), + 87: uint16(37341), + 88: uint16(37342), + 89: uint16(37343), + 90: uint16(37344), + 91: uint16(37345), + 92: uint16(37346), + 93: uint16(37347), + 94: uint16(37348), + 95: uint16(37349), + 96: uint16(24119), + 97: uint16(24132), + 98: uint16(24148), + 99: uint16(24155), + 100: uint16(24158), + 101: uint16(24161), + 102: uint16(23692), + 103: uint16(23674), + 104: uint16(23693), + 105: uint16(23696), + 106: uint16(23702), + 107: uint16(23688), + 108: uint16(23704), + 109: uint16(23705), + 110: uint16(23697), + 111: uint16(23706), + 112: uint16(23708), + 113: uint16(23733), + 114: uint16(23714), + 115: uint16(23741), + 116: uint16(23724), + 117: uint16(23723), + 118: uint16(23729), + 119: uint16(23715), + 120: uint16(23745), + 121: uint16(23735), + 122: uint16(23748), + 123: uint16(23762), + 124: uint16(23780), + 125: uint16(23755), + 126: uint16(23781), + 127: uint16(23810), + 128: uint16(23811), + 129: uint16(23847), + 130: uint16(23846), + 131: uint16(23854), + 132: uint16(23844), + 133: uint16(23838), + 134: uint16(23814), + 135: uint16(23835), + 136: uint16(23896), + 137: uint16(23870), + 138: uint16(23860), + 139: uint16(23869), + 140: uint16(23916), + 141: uint16(23899), + 142: uint16(23919), + 143: uint16(23901), + 144: uint16(23915), + 145: uint16(23883), + 146: uint16(23882), + 147: uint16(23913), + 148: uint16(23924), + 149: uint16(23938), + 150: uint16(23961), + 151: uint16(23965), + 152: uint16(35955), + 153: uint16(23991), + 154: uint16(24005), + 155: uint16(24435), + 156: uint16(24439), + 157: uint16(24450), + 158: uint16(24455), + 159: uint16(24457), + 160: uint16(24460), + 161: uint16(24469), + 162: uint16(24473), + 163: uint16(24476), + 164: uint16(24488), + 165: uint16(24493), + 166: uint16(24501), + 167: uint16(24508), + 168: uint16(34914), + 169: uint16(24417), + 170: uint16(29357), + 171: uint16(29360), + 172: uint16(29364), + 173: uint16(29367), + 174: uint16(29368), + 175: uint16(29379), + 176: uint16(29377), + 177: uint16(29390), + 178: uint16(29389), + 179: uint16(29394), + 180: uint16(29416), + 181: uint16(29423), + 182: uint16(29417), + 183: uint16(29426), + 184: uint16(29428), + 185: uint16(29431), + 186: uint16(29441), + 187: uint16(29427), + 188: uint16(29443), + 189: uint16(29434), + }, + 97: { + 0: uint16(37350), + 1: uint16(37351), + 2: uint16(37352), + 3: uint16(37353), + 4: uint16(37354), + 5: uint16(37355), + 6: uint16(37356), + 7: uint16(37357), + 8: uint16(37358), + 9: uint16(37359), + 10: uint16(37360), + 11: uint16(37361), + 12: uint16(37362), + 13: uint16(37363), + 14: uint16(37364), + 15: uint16(37365), + 16: uint16(37366), + 17: uint16(37367), + 18: uint16(37368), + 19: uint16(37369), + 20: uint16(37370), + 21: uint16(37371), + 22: uint16(37372), + 23: uint16(37373), + 24: uint16(37374), + 25: uint16(37375), + 26: uint16(37376), + 27: uint16(37377), + 28: uint16(37378), + 29: uint16(37379), + 30: uint16(37380), + 31: uint16(37381), + 32: uint16(37382), + 33: uint16(37383), + 34: uint16(37384), + 35: uint16(37385), + 36: uint16(37386), + 37: uint16(37387), + 38: uint16(37388), + 39: uint16(37389), + 40: uint16(37390), + 41: uint16(37391), + 42: uint16(37392), + 43: uint16(37393), + 44: uint16(37394), + 45: uint16(37395), + 46: uint16(37396), + 47: uint16(37397), + 48: uint16(37398), + 49: uint16(37399), + 50: uint16(37400), + 51: uint16(37401), + 52: uint16(37402), + 53: uint16(37403), + 54: uint16(37404), + 55: uint16(37405), + 56: uint16(37406), + 57: uint16(37407), + 58: uint16(37408), + 59: uint16(37409), + 60: uint16(37410), + 61: uint16(37411), + 62: uint16(37412), + 63: uint16(37413), + 64: uint16(37414), + 65: uint16(37415), + 66: uint16(37416), + 67: uint16(37417), + 68: uint16(37418), + 69: uint16(37419), + 70: uint16(37420), + 71: uint16(37421), + 72: uint16(37422), + 73: uint16(37423), + 74: uint16(37424), + 75: uint16(37425), + 76: uint16(37426), + 77: uint16(37427), + 78: uint16(37428), + 79: uint16(37429), + 80: uint16(37430), + 81: uint16(37431), + 82: uint16(37432), + 83: uint16(37433), + 84: uint16(37434), + 85: uint16(37435), + 86: uint16(37436), + 87: uint16(37437), + 88: uint16(37438), + 89: uint16(37439), + 90: uint16(37440), + 91: uint16(37441), + 92: uint16(37442), + 93: uint16(37443), + 94: uint16(37444), + 95: uint16(37445), + 96: uint16(29435), + 97: uint16(29463), + 98: uint16(29459), + 99: uint16(29473), + 100: uint16(29450), + 101: uint16(29470), + 102: uint16(29469), + 103: uint16(29461), + 104: uint16(29474), + 105: uint16(29497), + 106: uint16(29477), + 107: uint16(29484), + 108: uint16(29496), + 109: uint16(29489), + 110: uint16(29520), + 111: uint16(29517), + 112: uint16(29527), + 113: uint16(29536), + 114: uint16(29548), + 115: uint16(29551), + 116: uint16(29566), + 117: uint16(33307), + 118: uint16(22821), + 119: uint16(39143), + 120: uint16(22820), + 121: uint16(22786), + 122: uint16(39267), + 123: uint16(39271), + 124: uint16(39272), + 125: uint16(39273), + 126: uint16(39274), + 127: uint16(39275), + 128: uint16(39276), + 129: uint16(39284), + 130: uint16(39287), + 131: uint16(39293), + 132: uint16(39296), + 133: uint16(39300), + 134: uint16(39303), + 135: uint16(39306), + 136: uint16(39309), + 137: uint16(39312), + 138: uint16(39313), + 139: uint16(39315), + 140: uint16(39316), + 141: uint16(39317), + 142: uint16(24192), + 143: uint16(24209), + 144: uint16(24203), + 145: uint16(24214), + 146: uint16(24229), + 147: uint16(24224), + 148: uint16(24249), + 149: uint16(24245), + 150: uint16(24254), + 151: uint16(24243), + 152: uint16(36179), + 153: uint16(24274), + 154: uint16(24273), + 155: uint16(24283), + 156: uint16(24296), + 157: uint16(24298), + 158: uint16(33210), + 159: uint16(24516), + 160: uint16(24521), + 161: uint16(24534), + 162: uint16(24527), + 163: uint16(24579), + 164: uint16(24558), + 165: uint16(24580), + 166: uint16(24545), + 167: uint16(24548), + 168: uint16(24574), + 169: uint16(24581), + 170: uint16(24582), + 171: uint16(24554), + 172: uint16(24557), + 173: uint16(24568), + 174: uint16(24601), + 175: uint16(24629), + 176: uint16(24614), + 177: uint16(24603), + 178: uint16(24591), + 179: uint16(24589), + 180: uint16(24617), + 181: uint16(24619), + 182: uint16(24586), + 183: uint16(24639), + 184: uint16(24609), + 185: uint16(24696), + 186: uint16(24697), + 187: uint16(24699), + 188: uint16(24698), + 189: uint16(24642), + }, + 98: { + 0: uint16(37446), + 1: uint16(37447), + 2: uint16(37448), + 3: uint16(37449), + 4: uint16(37450), + 5: uint16(37451), + 6: uint16(37452), + 7: uint16(37453), + 8: uint16(37454), + 9: uint16(37455), + 10: uint16(37456), + 11: uint16(37457), + 12: uint16(37458), + 13: uint16(37459), + 14: uint16(37460), + 15: uint16(37461), + 16: uint16(37462), + 17: uint16(37463), + 18: uint16(37464), + 19: uint16(37465), + 20: uint16(37466), + 21: uint16(37467), + 22: uint16(37468), + 23: uint16(37469), + 24: uint16(37470), + 25: uint16(37471), + 26: uint16(37472), + 27: uint16(37473), + 28: uint16(37474), + 29: uint16(37475), + 30: uint16(37476), + 31: uint16(37477), + 32: uint16(37478), + 33: uint16(37479), + 34: uint16(37480), + 35: uint16(37481), + 36: uint16(37482), + 37: uint16(37483), + 38: uint16(37484), + 39: uint16(37485), + 40: uint16(37486), + 41: uint16(37487), + 42: uint16(37488), + 43: uint16(37489), + 44: uint16(37490), + 45: uint16(37491), + 46: uint16(37493), + 47: uint16(37494), + 48: uint16(37495), + 49: uint16(37496), + 50: uint16(37497), + 51: uint16(37498), + 52: uint16(37499), + 53: uint16(37500), + 54: uint16(37501), + 55: uint16(37502), + 56: uint16(37503), + 57: uint16(37504), + 58: uint16(37505), + 59: uint16(37506), + 60: uint16(37507), + 61: uint16(37508), + 62: uint16(37509), + 63: uint16(37510), + 64: uint16(37511), + 65: uint16(37512), + 66: uint16(37513), + 67: uint16(37514), + 68: uint16(37515), + 69: uint16(37516), + 70: uint16(37517), + 71: uint16(37519), + 72: uint16(37520), + 73: uint16(37521), + 74: uint16(37522), + 75: uint16(37523), + 76: uint16(37524), + 77: uint16(37525), + 78: uint16(37526), + 79: uint16(37527), + 80: uint16(37528), + 81: uint16(37529), + 82: uint16(37530), + 83: uint16(37531), + 84: uint16(37532), + 85: uint16(37533), + 86: uint16(37534), + 87: uint16(37535), + 88: uint16(37536), + 89: uint16(37537), + 90: uint16(37538), + 91: uint16(37539), + 92: uint16(37540), + 93: uint16(37541), + 94: uint16(37542), + 95: uint16(37543), + 96: uint16(24682), + 97: uint16(24701), + 98: uint16(24726), + 99: uint16(24730), + 100: uint16(24749), + 101: uint16(24733), + 102: uint16(24707), + 103: uint16(24722), + 104: uint16(24716), + 105: uint16(24731), + 106: uint16(24812), + 107: uint16(24763), + 108: uint16(24753), + 109: uint16(24797), + 110: uint16(24792), + 111: uint16(24774), + 112: uint16(24794), + 113: uint16(24756), + 114: uint16(24864), + 115: uint16(24870), + 116: uint16(24853), + 117: uint16(24867), + 118: uint16(24820), + 119: uint16(24832), + 120: uint16(24846), + 121: uint16(24875), + 122: uint16(24906), + 123: uint16(24949), + 124: uint16(25004), + 125: uint16(24980), + 126: uint16(24999), + 127: uint16(25015), + 128: uint16(25044), + 129: uint16(25077), + 130: uint16(24541), + 131: uint16(38579), + 132: uint16(38377), + 133: uint16(38379), + 134: uint16(38385), + 135: uint16(38387), + 136: uint16(38389), + 137: uint16(38390), + 138: uint16(38396), + 139: uint16(38398), + 140: uint16(38403), + 141: uint16(38404), + 142: uint16(38406), + 143: uint16(38408), + 144: uint16(38410), + 145: uint16(38411), + 146: uint16(38412), + 147: uint16(38413), + 148: uint16(38415), + 149: uint16(38418), + 150: uint16(38421), + 151: uint16(38422), + 152: uint16(38423), + 153: uint16(38425), + 154: uint16(38426), + 155: uint16(20012), + 156: uint16(29247), + 157: uint16(25109), + 158: uint16(27701), + 159: uint16(27732), + 160: uint16(27740), + 161: uint16(27722), + 162: uint16(27811), + 163: uint16(27781), + 164: uint16(27792), + 165: uint16(27796), + 166: uint16(27788), + 167: uint16(27752), + 168: uint16(27753), + 169: uint16(27764), + 170: uint16(27766), + 171: uint16(27782), + 172: uint16(27817), + 173: uint16(27856), + 174: uint16(27860), + 175: uint16(27821), + 176: uint16(27895), + 177: uint16(27896), + 178: uint16(27889), + 179: uint16(27863), + 180: uint16(27826), + 181: uint16(27872), + 182: uint16(27862), + 183: uint16(27898), + 184: uint16(27883), + 185: uint16(27886), + 186: uint16(27825), + 187: uint16(27859), + 188: uint16(27887), + 189: uint16(27902), + }, + 99: { + 0: uint16(37544), + 1: uint16(37545), + 2: uint16(37546), + 3: uint16(37547), + 4: uint16(37548), + 5: uint16(37549), + 6: uint16(37551), + 7: uint16(37552), + 8: uint16(37553), + 9: uint16(37554), + 10: uint16(37555), + 11: uint16(37556), + 12: uint16(37557), + 13: uint16(37558), + 14: uint16(37559), + 15: uint16(37560), + 16: uint16(37561), + 17: uint16(37562), + 18: uint16(37563), + 19: uint16(37564), + 20: uint16(37565), + 21: uint16(37566), + 22: uint16(37567), + 23: uint16(37568), + 24: uint16(37569), + 25: uint16(37570), + 26: uint16(37571), + 27: uint16(37572), + 28: uint16(37573), + 29: uint16(37574), + 30: uint16(37575), + 31: uint16(37577), + 32: uint16(37578), + 33: uint16(37579), + 34: uint16(37580), + 35: uint16(37581), + 36: uint16(37582), + 37: uint16(37583), + 38: uint16(37584), + 39: uint16(37585), + 40: uint16(37586), + 41: uint16(37587), + 42: uint16(37588), + 43: uint16(37589), + 44: uint16(37590), + 45: uint16(37591), + 46: uint16(37592), + 47: uint16(37593), + 48: uint16(37594), + 49: uint16(37595), + 50: uint16(37596), + 51: uint16(37597), + 52: uint16(37598), + 53: uint16(37599), + 54: uint16(37600), + 55: uint16(37601), + 56: uint16(37602), + 57: uint16(37603), + 58: uint16(37604), + 59: uint16(37605), + 60: uint16(37606), + 61: uint16(37607), + 62: uint16(37608), + 63: uint16(37609), + 64: uint16(37610), + 65: uint16(37611), + 66: uint16(37612), + 67: uint16(37613), + 68: uint16(37614), + 69: uint16(37615), + 70: uint16(37616), + 71: uint16(37617), + 72: uint16(37618), + 73: uint16(37619), + 74: uint16(37620), + 75: uint16(37621), + 76: uint16(37622), + 77: uint16(37623), + 78: uint16(37624), + 79: uint16(37625), + 80: uint16(37626), + 81: uint16(37627), + 82: uint16(37628), + 83: uint16(37629), + 84: uint16(37630), + 85: uint16(37631), + 86: uint16(37632), + 87: uint16(37633), + 88: uint16(37634), + 89: uint16(37635), + 90: uint16(37636), + 91: uint16(37637), + 92: uint16(37638), + 93: uint16(37639), + 94: uint16(37640), + 95: uint16(37641), + 96: uint16(27961), + 97: uint16(27943), + 98: uint16(27916), + 99: uint16(27971), + 100: uint16(27976), + 101: uint16(27911), + 102: uint16(27908), + 103: uint16(27929), + 104: uint16(27918), + 105: uint16(27947), + 106: uint16(27981), + 107: uint16(27950), + 108: uint16(27957), + 109: uint16(27930), + 110: uint16(27983), + 111: uint16(27986), + 112: uint16(27988), + 113: uint16(27955), + 114: uint16(28049), + 115: uint16(28015), + 116: uint16(28062), + 117: uint16(28064), + 118: uint16(27998), + 119: uint16(28051), + 120: uint16(28052), + 121: uint16(27996), + 122: uint16(28000), + 123: uint16(28028), + 124: uint16(28003), + 125: uint16(28186), + 126: uint16(28103), + 127: uint16(28101), + 128: uint16(28126), + 129: uint16(28174), + 130: uint16(28095), + 131: uint16(28128), + 132: uint16(28177), + 133: uint16(28134), + 134: uint16(28125), + 135: uint16(28121), + 136: uint16(28182), + 137: uint16(28075), + 138: uint16(28172), + 139: uint16(28078), + 140: uint16(28203), + 141: uint16(28270), + 142: uint16(28238), + 143: uint16(28267), + 144: uint16(28338), + 145: uint16(28255), + 146: uint16(28294), + 147: uint16(28243), + 148: uint16(28244), + 149: uint16(28210), + 150: uint16(28197), + 151: uint16(28228), + 152: uint16(28383), + 153: uint16(28337), + 154: uint16(28312), + 155: uint16(28384), + 156: uint16(28461), + 157: uint16(28386), + 158: uint16(28325), + 159: uint16(28327), + 160: uint16(28349), + 161: uint16(28347), + 162: uint16(28343), + 163: uint16(28375), + 164: uint16(28340), + 165: uint16(28367), + 166: uint16(28303), + 167: uint16(28354), + 168: uint16(28319), + 169: uint16(28514), + 170: uint16(28486), + 171: uint16(28487), + 172: uint16(28452), + 173: uint16(28437), + 174: uint16(28409), + 175: uint16(28463), + 176: uint16(28470), + 177: uint16(28491), + 178: uint16(28532), + 179: uint16(28458), + 180: uint16(28425), + 181: uint16(28457), + 182: uint16(28553), + 183: uint16(28557), + 184: uint16(28556), + 185: uint16(28536), + 186: uint16(28530), + 187: uint16(28540), + 188: uint16(28538), + 189: uint16(28625), + }, + 100: { + 0: uint16(37642), + 1: uint16(37643), + 2: uint16(37644), + 3: uint16(37645), + 4: uint16(37646), + 5: uint16(37647), + 6: uint16(37648), + 7: uint16(37649), + 8: uint16(37650), + 9: uint16(37651), + 10: uint16(37652), + 11: uint16(37653), + 12: uint16(37654), + 13: uint16(37655), + 14: uint16(37656), + 15: uint16(37657), + 16: uint16(37658), + 17: uint16(37659), + 18: uint16(37660), + 19: uint16(37661), + 20: uint16(37662), + 21: uint16(37663), + 22: uint16(37664), + 23: uint16(37665), + 24: uint16(37666), + 25: uint16(37667), + 26: uint16(37668), + 27: uint16(37669), + 28: uint16(37670), + 29: uint16(37671), + 30: uint16(37672), + 31: uint16(37673), + 32: uint16(37674), + 33: uint16(37675), + 34: uint16(37676), + 35: uint16(37677), + 36: uint16(37678), + 37: uint16(37679), + 38: uint16(37680), + 39: uint16(37681), + 40: uint16(37682), + 41: uint16(37683), + 42: uint16(37684), + 43: uint16(37685), + 44: uint16(37686), + 45: uint16(37687), + 46: uint16(37688), + 47: uint16(37689), + 48: uint16(37690), + 49: uint16(37691), + 50: uint16(37692), + 51: uint16(37693), + 52: uint16(37695), + 53: uint16(37696), + 54: uint16(37697), + 55: uint16(37698), + 56: uint16(37699), + 57: uint16(37700), + 58: uint16(37701), + 59: uint16(37702), + 60: uint16(37703), + 61: uint16(37704), + 62: uint16(37705), + 63: uint16(37706), + 64: uint16(37707), + 65: uint16(37708), + 66: uint16(37709), + 67: uint16(37710), + 68: uint16(37711), + 69: uint16(37712), + 70: uint16(37713), + 71: uint16(37714), + 72: uint16(37715), + 73: uint16(37716), + 74: uint16(37717), + 75: uint16(37718), + 76: uint16(37719), + 77: uint16(37720), + 78: uint16(37721), + 79: uint16(37722), + 80: uint16(37723), + 81: uint16(37724), + 82: uint16(37725), + 83: uint16(37726), + 84: uint16(37727), + 85: uint16(37728), + 86: uint16(37729), + 87: uint16(37730), + 88: uint16(37731), + 89: uint16(37732), + 90: uint16(37733), + 91: uint16(37734), + 92: uint16(37735), + 93: uint16(37736), + 94: uint16(37737), + 95: uint16(37739), + 96: uint16(28617), + 97: uint16(28583), + 98: uint16(28601), + 99: uint16(28598), + 100: uint16(28610), + 101: uint16(28641), + 102: uint16(28654), + 103: uint16(28638), + 104: uint16(28640), + 105: uint16(28655), + 106: uint16(28698), + 107: uint16(28707), + 108: uint16(28699), + 109: uint16(28729), + 110: uint16(28725), + 111: uint16(28751), + 112: uint16(28766), + 113: uint16(23424), + 114: uint16(23428), + 115: uint16(23445), + 116: uint16(23443), + 117: uint16(23461), + 118: uint16(23480), + 119: uint16(29999), + 120: uint16(39582), + 121: uint16(25652), + 122: uint16(23524), + 123: uint16(23534), + 124: uint16(35120), + 125: uint16(23536), + 126: uint16(36423), + 127: uint16(35591), + 128: uint16(36790), + 129: uint16(36819), + 130: uint16(36821), + 131: uint16(36837), + 132: uint16(36846), + 133: uint16(36836), + 134: uint16(36841), + 135: uint16(36838), + 136: uint16(36851), + 137: uint16(36840), + 138: uint16(36869), + 139: uint16(36868), + 140: uint16(36875), + 141: uint16(36902), + 142: uint16(36881), + 143: uint16(36877), + 144: uint16(36886), + 145: uint16(36897), + 146: uint16(36917), + 147: uint16(36918), + 148: uint16(36909), + 149: uint16(36911), + 150: uint16(36932), + 151: uint16(36945), + 152: uint16(36946), + 153: uint16(36944), + 154: uint16(36968), + 155: uint16(36952), + 156: uint16(36962), + 157: uint16(36955), + 158: uint16(26297), + 159: uint16(36980), + 160: uint16(36989), + 161: uint16(36994), + 162: uint16(37000), + 163: uint16(36995), + 164: uint16(37003), + 165: uint16(24400), + 166: uint16(24407), + 167: uint16(24406), + 168: uint16(24408), + 169: uint16(23611), + 170: uint16(21675), + 171: uint16(23632), + 172: uint16(23641), + 173: uint16(23409), + 174: uint16(23651), + 175: uint16(23654), + 176: uint16(32700), + 177: uint16(24362), + 178: uint16(24361), + 179: uint16(24365), + 180: uint16(33396), + 181: uint16(24380), + 182: uint16(39739), + 183: uint16(23662), + 184: uint16(22913), + 185: uint16(22915), + 186: uint16(22925), + 187: uint16(22953), + 188: uint16(22954), + 189: uint16(22947), + }, + 101: { + 0: uint16(37740), + 1: uint16(37741), + 2: uint16(37742), + 3: uint16(37743), + 4: uint16(37744), + 5: uint16(37745), + 6: uint16(37746), + 7: uint16(37747), + 8: uint16(37748), + 9: uint16(37749), + 10: uint16(37750), + 11: uint16(37751), + 12: uint16(37752), + 13: uint16(37753), + 14: uint16(37754), + 15: uint16(37755), + 16: uint16(37756), + 17: uint16(37757), + 18: uint16(37758), + 19: uint16(37759), + 20: uint16(37760), + 21: uint16(37761), + 22: uint16(37762), + 23: uint16(37763), + 24: uint16(37764), + 25: uint16(37765), + 26: uint16(37766), + 27: uint16(37767), + 28: uint16(37768), + 29: uint16(37769), + 30: uint16(37770), + 31: uint16(37771), + 32: uint16(37772), + 33: uint16(37773), + 34: uint16(37774), + 35: uint16(37776), + 36: uint16(37777), + 37: uint16(37778), + 38: uint16(37779), + 39: uint16(37780), + 40: uint16(37781), + 41: uint16(37782), + 42: uint16(37783), + 43: uint16(37784), + 44: uint16(37785), + 45: uint16(37786), + 46: uint16(37787), + 47: uint16(37788), + 48: uint16(37789), + 49: uint16(37790), + 50: uint16(37791), + 51: uint16(37792), + 52: uint16(37793), + 53: uint16(37794), + 54: uint16(37795), + 55: uint16(37796), + 56: uint16(37797), + 57: uint16(37798), + 58: uint16(37799), + 59: uint16(37800), + 60: uint16(37801), + 61: uint16(37802), + 62: uint16(37803), + 63: uint16(37804), + 64: uint16(37805), + 65: uint16(37806), + 66: uint16(37807), + 67: uint16(37808), + 68: uint16(37809), + 69: uint16(37810), + 70: uint16(37811), + 71: uint16(37812), + 72: uint16(37813), + 73: uint16(37814), + 74: uint16(37815), + 75: uint16(37816), + 76: uint16(37817), + 77: uint16(37818), + 78: uint16(37819), + 79: uint16(37820), + 80: uint16(37821), + 81: uint16(37822), + 82: uint16(37823), + 83: uint16(37824), + 84: uint16(37825), + 85: uint16(37826), + 86: uint16(37827), + 87: uint16(37828), + 88: uint16(37829), + 89: uint16(37830), + 90: uint16(37831), + 91: uint16(37832), + 92: uint16(37833), + 93: uint16(37835), + 94: uint16(37836), + 95: uint16(37837), + 96: uint16(22935), + 97: uint16(22986), + 98: uint16(22955), + 99: uint16(22942), + 100: uint16(22948), + 101: uint16(22994), + 102: uint16(22962), + 103: uint16(22959), + 104: uint16(22999), + 105: uint16(22974), + 106: uint16(23045), + 107: uint16(23046), + 108: uint16(23005), + 109: uint16(23048), + 110: uint16(23011), + 111: uint16(23000), + 112: uint16(23033), + 113: uint16(23052), + 114: uint16(23049), + 115: uint16(23090), + 116: uint16(23092), + 117: uint16(23057), + 118: uint16(23075), + 119: uint16(23059), + 120: uint16(23104), + 121: uint16(23143), + 122: uint16(23114), + 123: uint16(23125), + 124: uint16(23100), + 125: uint16(23138), + 126: uint16(23157), + 127: uint16(33004), + 128: uint16(23210), + 129: uint16(23195), + 130: uint16(23159), + 131: uint16(23162), + 132: uint16(23230), + 133: uint16(23275), + 134: uint16(23218), + 135: uint16(23250), + 136: uint16(23252), + 137: uint16(23224), + 138: uint16(23264), + 139: uint16(23267), + 140: uint16(23281), + 141: uint16(23254), + 142: uint16(23270), + 143: uint16(23256), + 144: uint16(23260), + 145: uint16(23305), + 146: uint16(23319), + 147: uint16(23318), + 148: uint16(23346), + 149: uint16(23351), + 150: uint16(23360), + 151: uint16(23573), + 152: uint16(23580), + 153: uint16(23386), + 154: uint16(23397), + 155: uint16(23411), + 156: uint16(23377), + 157: uint16(23379), + 158: uint16(23394), + 159: uint16(39541), + 160: uint16(39543), + 161: uint16(39544), + 162: uint16(39546), + 163: uint16(39551), + 164: uint16(39549), + 165: uint16(39552), + 166: uint16(39553), + 167: uint16(39557), + 168: uint16(39560), + 169: uint16(39562), + 170: uint16(39568), + 171: uint16(39570), + 172: uint16(39571), + 173: uint16(39574), + 174: uint16(39576), + 175: uint16(39579), + 176: uint16(39580), + 177: uint16(39581), + 178: uint16(39583), + 179: uint16(39584), + 180: uint16(39586), + 181: uint16(39587), + 182: uint16(39589), + 183: uint16(39591), + 184: uint16(32415), + 185: uint16(32417), + 186: uint16(32419), + 187: uint16(32421), + 188: uint16(32424), + 189: uint16(32425), + }, + 102: { + 0: uint16(37838), + 1: uint16(37839), + 2: uint16(37840), + 3: uint16(37841), + 4: uint16(37842), + 5: uint16(37843), + 6: uint16(37844), + 7: uint16(37845), + 8: uint16(37847), + 9: uint16(37848), + 10: uint16(37849), + 11: uint16(37850), + 12: uint16(37851), + 13: uint16(37852), + 14: uint16(37853), + 15: uint16(37854), + 16: uint16(37855), + 17: uint16(37856), + 18: uint16(37857), + 19: uint16(37858), + 20: uint16(37859), + 21: uint16(37860), + 22: uint16(37861), + 23: uint16(37862), + 24: uint16(37863), + 25: uint16(37864), + 26: uint16(37865), + 27: uint16(37866), + 28: uint16(37867), + 29: uint16(37868), + 30: uint16(37869), + 31: uint16(37870), + 32: uint16(37871), + 33: uint16(37872), + 34: uint16(37873), + 35: uint16(37874), + 36: uint16(37875), + 37: uint16(37876), + 38: uint16(37877), + 39: uint16(37878), + 40: uint16(37879), + 41: uint16(37880), + 42: uint16(37881), + 43: uint16(37882), + 44: uint16(37883), + 45: uint16(37884), + 46: uint16(37885), + 47: uint16(37886), + 48: uint16(37887), + 49: uint16(37888), + 50: uint16(37889), + 51: uint16(37890), + 52: uint16(37891), + 53: uint16(37892), + 54: uint16(37893), + 55: uint16(37894), + 56: uint16(37895), + 57: uint16(37896), + 58: uint16(37897), + 59: uint16(37898), + 60: uint16(37899), + 61: uint16(37900), + 62: uint16(37901), + 63: uint16(37902), + 64: uint16(37903), + 65: uint16(37904), + 66: uint16(37905), + 67: uint16(37906), + 68: uint16(37907), + 69: uint16(37908), + 70: uint16(37909), + 71: uint16(37910), + 72: uint16(37911), + 73: uint16(37912), + 74: uint16(37913), + 75: uint16(37914), + 76: uint16(37915), + 77: uint16(37916), + 78: uint16(37917), + 79: uint16(37918), + 80: uint16(37919), + 81: uint16(37920), + 82: uint16(37921), + 83: uint16(37922), + 84: uint16(37923), + 85: uint16(37924), + 86: uint16(37925), + 87: uint16(37926), + 88: uint16(37927), + 89: uint16(37928), + 90: uint16(37929), + 91: uint16(37930), + 92: uint16(37931), + 93: uint16(37932), + 94: uint16(37933), + 95: uint16(37934), + 96: uint16(32429), + 97: uint16(32432), + 98: uint16(32446), + 99: uint16(32448), + 100: uint16(32449), + 101: uint16(32450), + 102: uint16(32457), + 103: uint16(32459), + 104: uint16(32460), + 105: uint16(32464), + 106: uint16(32468), + 107: uint16(32471), + 108: uint16(32475), + 109: uint16(32480), + 110: uint16(32481), + 111: uint16(32488), + 112: uint16(32491), + 113: uint16(32494), + 114: uint16(32495), + 115: uint16(32497), + 116: uint16(32498), + 117: uint16(32525), + 118: uint16(32502), + 119: uint16(32506), + 120: uint16(32507), + 121: uint16(32510), + 122: uint16(32513), + 123: uint16(32514), + 124: uint16(32515), + 125: uint16(32519), + 126: uint16(32520), + 127: uint16(32523), + 128: uint16(32524), + 129: uint16(32527), + 130: uint16(32529), + 131: uint16(32530), + 132: uint16(32535), + 133: uint16(32537), + 134: uint16(32540), + 135: uint16(32539), + 136: uint16(32543), + 137: uint16(32545), + 138: uint16(32546), + 139: uint16(32547), + 140: uint16(32548), + 141: uint16(32549), + 142: uint16(32550), + 143: uint16(32551), + 144: uint16(32554), + 145: uint16(32555), + 146: uint16(32556), + 147: uint16(32557), + 148: uint16(32559), + 149: uint16(32560), + 150: uint16(32561), + 151: uint16(32562), + 152: uint16(32563), + 153: uint16(32565), + 154: uint16(24186), + 155: uint16(30079), + 156: uint16(24027), + 157: uint16(30014), + 158: uint16(37013), + 159: uint16(29582), + 160: uint16(29585), + 161: uint16(29614), + 162: uint16(29602), + 163: uint16(29599), + 164: uint16(29647), + 165: uint16(29634), + 166: uint16(29649), + 167: uint16(29623), + 168: uint16(29619), + 169: uint16(29632), + 170: uint16(29641), + 171: uint16(29640), + 172: uint16(29669), + 173: uint16(29657), + 174: uint16(39036), + 175: uint16(29706), + 176: uint16(29673), + 177: uint16(29671), + 178: uint16(29662), + 179: uint16(29626), + 180: uint16(29682), + 181: uint16(29711), + 182: uint16(29738), + 183: uint16(29787), + 184: uint16(29734), + 185: uint16(29733), + 186: uint16(29736), + 187: uint16(29744), + 188: uint16(29742), + 189: uint16(29740), + }, + 103: { + 0: uint16(37935), + 1: uint16(37936), + 2: uint16(37937), + 3: uint16(37938), + 4: uint16(37939), + 5: uint16(37940), + 6: uint16(37941), + 7: uint16(37942), + 8: uint16(37943), + 9: uint16(37944), + 10: uint16(37945), + 11: uint16(37946), + 12: uint16(37947), + 13: uint16(37948), + 14: uint16(37949), + 15: uint16(37951), + 16: uint16(37952), + 17: uint16(37953), + 18: uint16(37954), + 19: uint16(37955), + 20: uint16(37956), + 21: uint16(37957), + 22: uint16(37958), + 23: uint16(37959), + 24: uint16(37960), + 25: uint16(37961), + 26: uint16(37962), + 27: uint16(37963), + 28: uint16(37964), + 29: uint16(37965), + 30: uint16(37966), + 31: uint16(37967), + 32: uint16(37968), + 33: uint16(37969), + 34: uint16(37970), + 35: uint16(37971), + 36: uint16(37972), + 37: uint16(37973), + 38: uint16(37974), + 39: uint16(37975), + 40: uint16(37976), + 41: uint16(37977), + 42: uint16(37978), + 43: uint16(37979), + 44: uint16(37980), + 45: uint16(37981), + 46: uint16(37982), + 47: uint16(37983), + 48: uint16(37984), + 49: uint16(37985), + 50: uint16(37986), + 51: uint16(37987), + 52: uint16(37988), + 53: uint16(37989), + 54: uint16(37990), + 55: uint16(37991), + 56: uint16(37992), + 57: uint16(37993), + 58: uint16(37994), + 59: uint16(37996), + 60: uint16(37997), + 61: uint16(37998), + 62: uint16(37999), + 63: uint16(38000), + 64: uint16(38001), + 65: uint16(38002), + 66: uint16(38003), + 67: uint16(38004), + 68: uint16(38005), + 69: uint16(38006), + 70: uint16(38007), + 71: uint16(38008), + 72: uint16(38009), + 73: uint16(38010), + 74: uint16(38011), + 75: uint16(38012), + 76: uint16(38013), + 77: uint16(38014), + 78: uint16(38015), + 79: uint16(38016), + 80: uint16(38017), + 81: uint16(38018), + 82: uint16(38019), + 83: uint16(38020), + 84: uint16(38033), + 85: uint16(38038), + 86: uint16(38040), + 87: uint16(38087), + 88: uint16(38095), + 89: uint16(38099), + 90: uint16(38100), + 91: uint16(38106), + 92: uint16(38118), + 93: uint16(38139), + 94: uint16(38172), + 95: uint16(38176), + 96: uint16(29723), + 97: uint16(29722), + 98: uint16(29761), + 99: uint16(29788), + 100: uint16(29783), + 101: uint16(29781), + 102: uint16(29785), + 103: uint16(29815), + 104: uint16(29805), + 105: uint16(29822), + 106: uint16(29852), + 107: uint16(29838), + 108: uint16(29824), + 109: uint16(29825), + 110: uint16(29831), + 111: uint16(29835), + 112: uint16(29854), + 113: uint16(29864), + 114: uint16(29865), + 115: uint16(29840), + 116: uint16(29863), + 117: uint16(29906), + 118: uint16(29882), + 119: uint16(38890), + 120: uint16(38891), + 121: uint16(38892), + 122: uint16(26444), + 123: uint16(26451), + 124: uint16(26462), + 125: uint16(26440), + 126: uint16(26473), + 127: uint16(26533), + 128: uint16(26503), + 129: uint16(26474), + 130: uint16(26483), + 131: uint16(26520), + 132: uint16(26535), + 133: uint16(26485), + 134: uint16(26536), + 135: uint16(26526), + 136: uint16(26541), + 137: uint16(26507), + 138: uint16(26487), + 139: uint16(26492), + 140: uint16(26608), + 141: uint16(26633), + 142: uint16(26584), + 143: uint16(26634), + 144: uint16(26601), + 145: uint16(26544), + 146: uint16(26636), + 147: uint16(26585), + 148: uint16(26549), + 149: uint16(26586), + 150: uint16(26547), + 151: uint16(26589), + 152: uint16(26624), + 153: uint16(26563), + 154: uint16(26552), + 155: uint16(26594), + 156: uint16(26638), + 157: uint16(26561), + 158: uint16(26621), + 159: uint16(26674), + 160: uint16(26675), + 161: uint16(26720), + 162: uint16(26721), + 163: uint16(26702), + 164: uint16(26722), + 165: uint16(26692), + 166: uint16(26724), + 167: uint16(26755), + 168: uint16(26653), + 169: uint16(26709), + 170: uint16(26726), + 171: uint16(26689), + 172: uint16(26727), + 173: uint16(26688), + 174: uint16(26686), + 175: uint16(26698), + 176: uint16(26697), + 177: uint16(26665), + 178: uint16(26805), + 179: uint16(26767), + 180: uint16(26740), + 181: uint16(26743), + 182: uint16(26771), + 183: uint16(26731), + 184: uint16(26818), + 185: uint16(26990), + 186: uint16(26876), + 187: uint16(26911), + 188: uint16(26912), + 189: uint16(26873), + }, + 104: { + 0: uint16(38183), + 1: uint16(38195), + 2: uint16(38205), + 3: uint16(38211), + 4: uint16(38216), + 5: uint16(38219), + 6: uint16(38229), + 7: uint16(38234), + 8: uint16(38240), + 9: uint16(38254), + 10: uint16(38260), + 11: uint16(38261), + 12: uint16(38263), + 13: uint16(38264), + 14: uint16(38265), + 15: uint16(38266), + 16: uint16(38267), + 17: uint16(38268), + 18: uint16(38269), + 19: uint16(38270), + 20: uint16(38272), + 21: uint16(38273), + 22: uint16(38274), + 23: uint16(38275), + 24: uint16(38276), + 25: uint16(38277), + 26: uint16(38278), + 27: uint16(38279), + 28: uint16(38280), + 29: uint16(38281), + 30: uint16(38282), + 31: uint16(38283), + 32: uint16(38284), + 33: uint16(38285), + 34: uint16(38286), + 35: uint16(38287), + 36: uint16(38288), + 37: uint16(38289), + 38: uint16(38290), + 39: uint16(38291), + 40: uint16(38292), + 41: uint16(38293), + 42: uint16(38294), + 43: uint16(38295), + 44: uint16(38296), + 45: uint16(38297), + 46: uint16(38298), + 47: uint16(38299), + 48: uint16(38300), + 49: uint16(38301), + 50: uint16(38302), + 51: uint16(38303), + 52: uint16(38304), + 53: uint16(38305), + 54: uint16(38306), + 55: uint16(38307), + 56: uint16(38308), + 57: uint16(38309), + 58: uint16(38310), + 59: uint16(38311), + 60: uint16(38312), + 61: uint16(38313), + 62: uint16(38314), + 63: uint16(38315), + 64: uint16(38316), + 65: uint16(38317), + 66: uint16(38318), + 67: uint16(38319), + 68: uint16(38320), + 69: uint16(38321), + 70: uint16(38322), + 71: uint16(38323), + 72: uint16(38324), + 73: uint16(38325), + 74: uint16(38326), + 75: uint16(38327), + 76: uint16(38328), + 77: uint16(38329), + 78: uint16(38330), + 79: uint16(38331), + 80: uint16(38332), + 81: uint16(38333), + 82: uint16(38334), + 83: uint16(38335), + 84: uint16(38336), + 85: uint16(38337), + 86: uint16(38338), + 87: uint16(38339), + 88: uint16(38340), + 89: uint16(38341), + 90: uint16(38342), + 91: uint16(38343), + 92: uint16(38344), + 93: uint16(38345), + 94: uint16(38346), + 95: uint16(38347), + 96: uint16(26916), + 97: uint16(26864), + 98: uint16(26891), + 99: uint16(26881), + 100: uint16(26967), + 101: uint16(26851), + 102: uint16(26896), + 103: uint16(26993), + 104: uint16(26937), + 105: uint16(26976), + 106: uint16(26946), + 107: uint16(26973), + 108: uint16(27012), + 109: uint16(26987), + 110: uint16(27008), + 111: uint16(27032), + 112: uint16(27000), + 113: uint16(26932), + 114: uint16(27084), + 115: uint16(27015), + 116: uint16(27016), + 117: uint16(27086), + 118: uint16(27017), + 119: uint16(26982), + 120: uint16(26979), + 121: uint16(27001), + 122: uint16(27035), + 123: uint16(27047), + 124: uint16(27067), + 125: uint16(27051), + 126: uint16(27053), + 127: uint16(27092), + 128: uint16(27057), + 129: uint16(27073), + 130: uint16(27082), + 131: uint16(27103), + 132: uint16(27029), + 133: uint16(27104), + 134: uint16(27021), + 135: uint16(27135), + 136: uint16(27183), + 137: uint16(27117), + 138: uint16(27159), + 139: uint16(27160), + 140: uint16(27237), + 141: uint16(27122), + 142: uint16(27204), + 143: uint16(27198), + 144: uint16(27296), + 145: uint16(27216), + 146: uint16(27227), + 147: uint16(27189), + 148: uint16(27278), + 149: uint16(27257), + 150: uint16(27197), + 151: uint16(27176), + 152: uint16(27224), + 153: uint16(27260), + 154: uint16(27281), + 155: uint16(27280), + 156: uint16(27305), + 157: uint16(27287), + 158: uint16(27307), + 159: uint16(29495), + 160: uint16(29522), + 161: uint16(27521), + 162: uint16(27522), + 163: uint16(27527), + 164: uint16(27524), + 165: uint16(27538), + 166: uint16(27539), + 167: uint16(27533), + 168: uint16(27546), + 169: uint16(27547), + 170: uint16(27553), + 171: uint16(27562), + 172: uint16(36715), + 173: uint16(36717), + 174: uint16(36721), + 175: uint16(36722), + 176: uint16(36723), + 177: uint16(36725), + 178: uint16(36726), + 179: uint16(36728), + 180: uint16(36727), + 181: uint16(36729), + 182: uint16(36730), + 183: uint16(36732), + 184: uint16(36734), + 185: uint16(36737), + 186: uint16(36738), + 187: uint16(36740), + 188: uint16(36743), + 189: uint16(36747), + }, + 105: { + 0: uint16(38348), + 1: uint16(38349), + 2: uint16(38350), + 3: uint16(38351), + 4: uint16(38352), + 5: uint16(38353), + 6: uint16(38354), + 7: uint16(38355), + 8: uint16(38356), + 9: uint16(38357), + 10: uint16(38358), + 11: uint16(38359), + 12: uint16(38360), + 13: uint16(38361), + 14: uint16(38362), + 15: uint16(38363), + 16: uint16(38364), + 17: uint16(38365), + 18: uint16(38366), + 19: uint16(38367), + 20: uint16(38368), + 21: uint16(38369), + 22: uint16(38370), + 23: uint16(38371), + 24: uint16(38372), + 25: uint16(38373), + 26: uint16(38374), + 27: uint16(38375), + 28: uint16(38380), + 29: uint16(38399), + 30: uint16(38407), + 31: uint16(38419), + 32: uint16(38424), + 33: uint16(38427), + 34: uint16(38430), + 35: uint16(38432), + 36: uint16(38435), + 37: uint16(38436), + 38: uint16(38437), + 39: uint16(38438), + 40: uint16(38439), + 41: uint16(38440), + 42: uint16(38441), + 43: uint16(38443), + 44: uint16(38444), + 45: uint16(38445), + 46: uint16(38447), + 47: uint16(38448), + 48: uint16(38455), + 49: uint16(38456), + 50: uint16(38457), + 51: uint16(38458), + 52: uint16(38462), + 53: uint16(38465), + 54: uint16(38467), + 55: uint16(38474), + 56: uint16(38478), + 57: uint16(38479), + 58: uint16(38481), + 59: uint16(38482), + 60: uint16(38483), + 61: uint16(38486), + 62: uint16(38487), + 63: uint16(38488), + 64: uint16(38489), + 65: uint16(38490), + 66: uint16(38492), + 67: uint16(38493), + 68: uint16(38494), + 69: uint16(38496), + 70: uint16(38499), + 71: uint16(38501), + 72: uint16(38502), + 73: uint16(38507), + 74: uint16(38509), + 75: uint16(38510), + 76: uint16(38511), + 77: uint16(38512), + 78: uint16(38513), + 79: uint16(38515), + 80: uint16(38520), + 81: uint16(38521), + 82: uint16(38522), + 83: uint16(38523), + 84: uint16(38524), + 85: uint16(38525), + 86: uint16(38526), + 87: uint16(38527), + 88: uint16(38528), + 89: uint16(38529), + 90: uint16(38530), + 91: uint16(38531), + 92: uint16(38532), + 93: uint16(38535), + 94: uint16(38537), + 95: uint16(38538), + 96: uint16(36749), + 97: uint16(36750), + 98: uint16(36751), + 99: uint16(36760), + 100: uint16(36762), + 101: uint16(36558), + 102: uint16(25099), + 103: uint16(25111), + 104: uint16(25115), + 105: uint16(25119), + 106: uint16(25122), + 107: uint16(25121), + 108: uint16(25125), + 109: uint16(25124), + 110: uint16(25132), + 111: uint16(33255), + 112: uint16(29935), + 113: uint16(29940), + 114: uint16(29951), + 115: uint16(29967), + 116: uint16(29969), + 117: uint16(29971), + 118: uint16(25908), + 119: uint16(26094), + 120: uint16(26095), + 121: uint16(26096), + 122: uint16(26122), + 123: uint16(26137), + 124: uint16(26482), + 125: uint16(26115), + 126: uint16(26133), + 127: uint16(26112), + 128: uint16(28805), + 129: uint16(26359), + 130: uint16(26141), + 131: uint16(26164), + 132: uint16(26161), + 133: uint16(26166), + 134: uint16(26165), + 135: uint16(32774), + 136: uint16(26207), + 137: uint16(26196), + 138: uint16(26177), + 139: uint16(26191), + 140: uint16(26198), + 141: uint16(26209), + 142: uint16(26199), + 143: uint16(26231), + 144: uint16(26244), + 145: uint16(26252), + 146: uint16(26279), + 147: uint16(26269), + 148: uint16(26302), + 149: uint16(26331), + 150: uint16(26332), + 151: uint16(26342), + 152: uint16(26345), + 153: uint16(36146), + 154: uint16(36147), + 155: uint16(36150), + 156: uint16(36155), + 157: uint16(36157), + 158: uint16(36160), + 159: uint16(36165), + 160: uint16(36166), + 161: uint16(36168), + 162: uint16(36169), + 163: uint16(36167), + 164: uint16(36173), + 165: uint16(36181), + 166: uint16(36185), + 167: uint16(35271), + 168: uint16(35274), + 169: uint16(35275), + 170: uint16(35276), + 171: uint16(35278), + 172: uint16(35279), + 173: uint16(35280), + 174: uint16(35281), + 175: uint16(29294), + 176: uint16(29343), + 177: uint16(29277), + 178: uint16(29286), + 179: uint16(29295), + 180: uint16(29310), + 181: uint16(29311), + 182: uint16(29316), + 183: uint16(29323), + 184: uint16(29325), + 185: uint16(29327), + 186: uint16(29330), + 187: uint16(25352), + 188: uint16(25394), + 189: uint16(25520), + }, + 106: { + 0: uint16(38540), + 1: uint16(38542), + 2: uint16(38545), + 3: uint16(38546), + 4: uint16(38547), + 5: uint16(38549), + 6: uint16(38550), + 7: uint16(38554), + 8: uint16(38555), + 9: uint16(38557), + 10: uint16(38558), + 11: uint16(38559), + 12: uint16(38560), + 13: uint16(38561), + 14: uint16(38562), + 15: uint16(38563), + 16: uint16(38564), + 17: uint16(38565), + 18: uint16(38566), + 19: uint16(38568), + 20: uint16(38569), + 21: uint16(38570), + 22: uint16(38571), + 23: uint16(38572), + 24: uint16(38573), + 25: uint16(38574), + 26: uint16(38575), + 27: uint16(38577), + 28: uint16(38578), + 29: uint16(38580), + 30: uint16(38581), + 31: uint16(38583), + 32: uint16(38584), + 33: uint16(38586), + 34: uint16(38587), + 35: uint16(38591), + 36: uint16(38594), + 37: uint16(38595), + 38: uint16(38600), + 39: uint16(38602), + 40: uint16(38603), + 41: uint16(38608), + 42: uint16(38609), + 43: uint16(38611), + 44: uint16(38612), + 45: uint16(38614), + 46: uint16(38615), + 47: uint16(38616), + 48: uint16(38617), + 49: uint16(38618), + 50: uint16(38619), + 51: uint16(38620), + 52: uint16(38621), + 53: uint16(38622), + 54: uint16(38623), + 55: uint16(38625), + 56: uint16(38626), + 57: uint16(38627), + 58: uint16(38628), + 59: uint16(38629), + 60: uint16(38630), + 61: uint16(38631), + 62: uint16(38635), + 63: uint16(38636), + 64: uint16(38637), + 65: uint16(38638), + 66: uint16(38640), + 67: uint16(38641), + 68: uint16(38642), + 69: uint16(38644), + 70: uint16(38645), + 71: uint16(38648), + 72: uint16(38650), + 73: uint16(38651), + 74: uint16(38652), + 75: uint16(38653), + 76: uint16(38655), + 77: uint16(38658), + 78: uint16(38659), + 79: uint16(38661), + 80: uint16(38666), + 81: uint16(38667), + 82: uint16(38668), + 83: uint16(38672), + 84: uint16(38673), + 85: uint16(38674), + 86: uint16(38676), + 87: uint16(38677), + 88: uint16(38679), + 89: uint16(38680), + 90: uint16(38681), + 91: uint16(38682), + 92: uint16(38683), + 93: uint16(38685), + 94: uint16(38687), + 95: uint16(38688), + 96: uint16(25663), + 97: uint16(25816), + 98: uint16(32772), + 99: uint16(27626), + 100: uint16(27635), + 101: uint16(27645), + 102: uint16(27637), + 103: uint16(27641), + 104: uint16(27653), + 105: uint16(27655), + 106: uint16(27654), + 107: uint16(27661), + 108: uint16(27669), + 109: uint16(27672), + 110: uint16(27673), + 111: uint16(27674), + 112: uint16(27681), + 113: uint16(27689), + 114: uint16(27684), + 115: uint16(27690), + 116: uint16(27698), + 117: uint16(25909), + 118: uint16(25941), + 119: uint16(25963), + 120: uint16(29261), + 121: uint16(29266), + 122: uint16(29270), + 123: uint16(29232), + 124: uint16(34402), + 125: uint16(21014), + 126: uint16(32927), + 127: uint16(32924), + 128: uint16(32915), + 129: uint16(32956), + 130: uint16(26378), + 131: uint16(32957), + 132: uint16(32945), + 133: uint16(32939), + 134: uint16(32941), + 135: uint16(32948), + 136: uint16(32951), + 137: uint16(32999), + 138: uint16(33000), + 139: uint16(33001), + 140: uint16(33002), + 141: uint16(32987), + 142: uint16(32962), + 143: uint16(32964), + 144: uint16(32985), + 145: uint16(32973), + 146: uint16(32983), + 147: uint16(26384), + 148: uint16(32989), + 149: uint16(33003), + 150: uint16(33009), + 151: uint16(33012), + 152: uint16(33005), + 153: uint16(33037), + 154: uint16(33038), + 155: uint16(33010), + 156: uint16(33020), + 157: uint16(26389), + 158: uint16(33042), + 159: uint16(35930), + 160: uint16(33078), + 161: uint16(33054), + 162: uint16(33068), + 163: uint16(33048), + 164: uint16(33074), + 165: uint16(33096), + 166: uint16(33100), + 167: uint16(33107), + 168: uint16(33140), + 169: uint16(33113), + 170: uint16(33114), + 171: uint16(33137), + 172: uint16(33120), + 173: uint16(33129), + 174: uint16(33148), + 175: uint16(33149), + 176: uint16(33133), + 177: uint16(33127), + 178: uint16(22605), + 179: uint16(23221), + 180: uint16(33160), + 181: uint16(33154), + 182: uint16(33169), + 183: uint16(28373), + 184: uint16(33187), + 185: uint16(33194), + 186: uint16(33228), + 187: uint16(26406), + 188: uint16(33226), + 189: uint16(33211), + }, + 107: { + 0: uint16(38689), + 1: uint16(38690), + 2: uint16(38691), + 3: uint16(38692), + 4: uint16(38693), + 5: uint16(38694), + 6: uint16(38695), + 7: uint16(38696), + 8: uint16(38697), + 9: uint16(38699), + 10: uint16(38700), + 11: uint16(38702), + 12: uint16(38703), + 13: uint16(38705), + 14: uint16(38707), + 15: uint16(38708), + 16: uint16(38709), + 17: uint16(38710), + 18: uint16(38711), + 19: uint16(38714), + 20: uint16(38715), + 21: uint16(38716), + 22: uint16(38717), + 23: uint16(38719), + 24: uint16(38720), + 25: uint16(38721), + 26: uint16(38722), + 27: uint16(38723), + 28: uint16(38724), + 29: uint16(38725), + 30: uint16(38726), + 31: uint16(38727), + 32: uint16(38728), + 33: uint16(38729), + 34: uint16(38730), + 35: uint16(38731), + 36: uint16(38732), + 37: uint16(38733), + 38: uint16(38734), + 39: uint16(38735), + 40: uint16(38736), + 41: uint16(38737), + 42: uint16(38740), + 43: uint16(38741), + 44: uint16(38743), + 45: uint16(38744), + 46: uint16(38746), + 47: uint16(38748), + 48: uint16(38749), + 49: uint16(38751), + 50: uint16(38755), + 51: uint16(38756), + 52: uint16(38758), + 53: uint16(38759), + 54: uint16(38760), + 55: uint16(38762), + 56: uint16(38763), + 57: uint16(38764), + 58: uint16(38765), + 59: uint16(38766), + 60: uint16(38767), + 61: uint16(38768), + 62: uint16(38769), + 63: uint16(38770), + 64: uint16(38773), + 65: uint16(38775), + 66: uint16(38776), + 67: uint16(38777), + 68: uint16(38778), + 69: uint16(38779), + 70: uint16(38781), + 71: uint16(38782), + 72: uint16(38783), + 73: uint16(38784), + 74: uint16(38785), + 75: uint16(38786), + 76: uint16(38787), + 77: uint16(38788), + 78: uint16(38790), + 79: uint16(38791), + 80: uint16(38792), + 81: uint16(38793), + 82: uint16(38794), + 83: uint16(38796), + 84: uint16(38798), + 85: uint16(38799), + 86: uint16(38800), + 87: uint16(38803), + 88: uint16(38805), + 89: uint16(38806), + 90: uint16(38807), + 91: uint16(38809), + 92: uint16(38810), + 93: uint16(38811), + 94: uint16(38812), + 95: uint16(38813), + 96: uint16(33217), + 97: uint16(33190), + 98: uint16(27428), + 99: uint16(27447), + 100: uint16(27449), + 101: uint16(27459), + 102: uint16(27462), + 103: uint16(27481), + 104: uint16(39121), + 105: uint16(39122), + 106: uint16(39123), + 107: uint16(39125), + 108: uint16(39129), + 109: uint16(39130), + 110: uint16(27571), + 111: uint16(24384), + 112: uint16(27586), + 113: uint16(35315), + 114: uint16(26000), + 115: uint16(40785), + 116: uint16(26003), + 117: uint16(26044), + 118: uint16(26054), + 119: uint16(26052), + 120: uint16(26051), + 121: uint16(26060), + 122: uint16(26062), + 123: uint16(26066), + 124: uint16(26070), + 125: uint16(28800), + 126: uint16(28828), + 127: uint16(28822), + 128: uint16(28829), + 129: uint16(28859), + 130: uint16(28864), + 131: uint16(28855), + 132: uint16(28843), + 133: uint16(28849), + 134: uint16(28904), + 135: uint16(28874), + 136: uint16(28944), + 137: uint16(28947), + 138: uint16(28950), + 139: uint16(28975), + 140: uint16(28977), + 141: uint16(29043), + 142: uint16(29020), + 143: uint16(29032), + 144: uint16(28997), + 145: uint16(29042), + 146: uint16(29002), + 147: uint16(29048), + 148: uint16(29050), + 149: uint16(29080), + 150: uint16(29107), + 151: uint16(29109), + 152: uint16(29096), + 153: uint16(29088), + 154: uint16(29152), + 155: uint16(29140), + 156: uint16(29159), + 157: uint16(29177), + 158: uint16(29213), + 159: uint16(29224), + 160: uint16(28780), + 161: uint16(28952), + 162: uint16(29030), + 163: uint16(29113), + 164: uint16(25150), + 165: uint16(25149), + 166: uint16(25155), + 167: uint16(25160), + 168: uint16(25161), + 169: uint16(31035), + 170: uint16(31040), + 171: uint16(31046), + 172: uint16(31049), + 173: uint16(31067), + 174: uint16(31068), + 175: uint16(31059), + 176: uint16(31066), + 177: uint16(31074), + 178: uint16(31063), + 179: uint16(31072), + 180: uint16(31087), + 181: uint16(31079), + 182: uint16(31098), + 183: uint16(31109), + 184: uint16(31114), + 185: uint16(31130), + 186: uint16(31143), + 187: uint16(31155), + 188: uint16(24529), + 189: uint16(24528), + }, + 108: { + 0: uint16(38814), + 1: uint16(38815), + 2: uint16(38817), + 3: uint16(38818), + 4: uint16(38820), + 5: uint16(38821), + 6: uint16(38822), + 7: uint16(38823), + 8: uint16(38824), + 9: uint16(38825), + 10: uint16(38826), + 11: uint16(38828), + 12: uint16(38830), + 13: uint16(38832), + 14: uint16(38833), + 15: uint16(38835), + 16: uint16(38837), + 17: uint16(38838), + 18: uint16(38839), + 19: uint16(38840), + 20: uint16(38841), + 21: uint16(38842), + 22: uint16(38843), + 23: uint16(38844), + 24: uint16(38845), + 25: uint16(38846), + 26: uint16(38847), + 27: uint16(38848), + 28: uint16(38849), + 29: uint16(38850), + 30: uint16(38851), + 31: uint16(38852), + 32: uint16(38853), + 33: uint16(38854), + 34: uint16(38855), + 35: uint16(38856), + 36: uint16(38857), + 37: uint16(38858), + 38: uint16(38859), + 39: uint16(38860), + 40: uint16(38861), + 41: uint16(38862), + 42: uint16(38863), + 43: uint16(38864), + 44: uint16(38865), + 45: uint16(38866), + 46: uint16(38867), + 47: uint16(38868), + 48: uint16(38869), + 49: uint16(38870), + 50: uint16(38871), + 51: uint16(38872), + 52: uint16(38873), + 53: uint16(38874), + 54: uint16(38875), + 55: uint16(38876), + 56: uint16(38877), + 57: uint16(38878), + 58: uint16(38879), + 59: uint16(38880), + 60: uint16(38881), + 61: uint16(38882), + 62: uint16(38883), + 63: uint16(38884), + 64: uint16(38885), + 65: uint16(38888), + 66: uint16(38894), + 67: uint16(38895), + 68: uint16(38896), + 69: uint16(38897), + 70: uint16(38898), + 71: uint16(38900), + 72: uint16(38903), + 73: uint16(38904), + 74: uint16(38905), + 75: uint16(38906), + 76: uint16(38907), + 77: uint16(38908), + 78: uint16(38909), + 79: uint16(38910), + 80: uint16(38911), + 81: uint16(38912), + 82: uint16(38913), + 83: uint16(38914), + 84: uint16(38915), + 85: uint16(38916), + 86: uint16(38917), + 87: uint16(38918), + 88: uint16(38919), + 89: uint16(38920), + 90: uint16(38921), + 91: uint16(38922), + 92: uint16(38923), + 93: uint16(38924), + 94: uint16(38925), + 95: uint16(38926), + 96: uint16(24636), + 97: uint16(24669), + 98: uint16(24666), + 99: uint16(24679), + 100: uint16(24641), + 101: uint16(24665), + 102: uint16(24675), + 103: uint16(24747), + 104: uint16(24838), + 105: uint16(24845), + 106: uint16(24925), + 107: uint16(25001), + 108: uint16(24989), + 109: uint16(25035), + 110: uint16(25041), + 111: uint16(25094), + 112: uint16(32896), + 113: uint16(32895), + 114: uint16(27795), + 115: uint16(27894), + 116: uint16(28156), + 117: uint16(30710), + 118: uint16(30712), + 119: uint16(30720), + 120: uint16(30729), + 121: uint16(30743), + 122: uint16(30744), + 123: uint16(30737), + 124: uint16(26027), + 125: uint16(30765), + 126: uint16(30748), + 127: uint16(30749), + 128: uint16(30777), + 129: uint16(30778), + 130: uint16(30779), + 131: uint16(30751), + 132: uint16(30780), + 133: uint16(30757), + 134: uint16(30764), + 135: uint16(30755), + 136: uint16(30761), + 137: uint16(30798), + 138: uint16(30829), + 139: uint16(30806), + 140: uint16(30807), + 141: uint16(30758), + 142: uint16(30800), + 143: uint16(30791), + 144: uint16(30796), + 145: uint16(30826), + 146: uint16(30875), + 147: uint16(30867), + 148: uint16(30874), + 149: uint16(30855), + 150: uint16(30876), + 151: uint16(30881), + 152: uint16(30883), + 153: uint16(30898), + 154: uint16(30905), + 155: uint16(30885), + 156: uint16(30932), + 157: uint16(30937), + 158: uint16(30921), + 159: uint16(30956), + 160: uint16(30962), + 161: uint16(30981), + 162: uint16(30964), + 163: uint16(30995), + 164: uint16(31012), + 165: uint16(31006), + 166: uint16(31028), + 167: uint16(40859), + 168: uint16(40697), + 169: uint16(40699), + 170: uint16(40700), + 171: uint16(30449), + 172: uint16(30468), + 173: uint16(30477), + 174: uint16(30457), + 175: uint16(30471), + 176: uint16(30472), + 177: uint16(30490), + 178: uint16(30498), + 179: uint16(30489), + 180: uint16(30509), + 181: uint16(30502), + 182: uint16(30517), + 183: uint16(30520), + 184: uint16(30544), + 185: uint16(30545), + 186: uint16(30535), + 187: uint16(30531), + 188: uint16(30554), + 189: uint16(30568), + }, + 109: { + 0: uint16(38927), + 1: uint16(38928), + 2: uint16(38929), + 3: uint16(38930), + 4: uint16(38931), + 5: uint16(38932), + 6: uint16(38933), + 7: uint16(38934), + 8: uint16(38935), + 9: uint16(38936), + 10: uint16(38937), + 11: uint16(38938), + 12: uint16(38939), + 13: uint16(38940), + 14: uint16(38941), + 15: uint16(38942), + 16: uint16(38943), + 17: uint16(38944), + 18: uint16(38945), + 19: uint16(38946), + 20: uint16(38947), + 21: uint16(38948), + 22: uint16(38949), + 23: uint16(38950), + 24: uint16(38951), + 25: uint16(38952), + 26: uint16(38953), + 27: uint16(38954), + 28: uint16(38955), + 29: uint16(38956), + 30: uint16(38957), + 31: uint16(38958), + 32: uint16(38959), + 33: uint16(38960), + 34: uint16(38961), + 35: uint16(38962), + 36: uint16(38963), + 37: uint16(38964), + 38: uint16(38965), + 39: uint16(38966), + 40: uint16(38967), + 41: uint16(38968), + 42: uint16(38969), + 43: uint16(38970), + 44: uint16(38971), + 45: uint16(38972), + 46: uint16(38973), + 47: uint16(38974), + 48: uint16(38975), + 49: uint16(38976), + 50: uint16(38977), + 51: uint16(38978), + 52: uint16(38979), + 53: uint16(38980), + 54: uint16(38981), + 55: uint16(38982), + 56: uint16(38983), + 57: uint16(38984), + 58: uint16(38985), + 59: uint16(38986), + 60: uint16(38987), + 61: uint16(38988), + 62: uint16(38989), + 63: uint16(38990), + 64: uint16(38991), + 65: uint16(38992), + 66: uint16(38993), + 67: uint16(38994), + 68: uint16(38995), + 69: uint16(38996), + 70: uint16(38997), + 71: uint16(38998), + 72: uint16(38999), + 73: uint16(39000), + 74: uint16(39001), + 75: uint16(39002), + 76: uint16(39003), + 77: uint16(39004), + 78: uint16(39005), + 79: uint16(39006), + 80: uint16(39007), + 81: uint16(39008), + 82: uint16(39009), + 83: uint16(39010), + 84: uint16(39011), + 85: uint16(39012), + 86: uint16(39013), + 87: uint16(39014), + 88: uint16(39015), + 89: uint16(39016), + 90: uint16(39017), + 91: uint16(39018), + 92: uint16(39019), + 93: uint16(39020), + 94: uint16(39021), + 95: uint16(39022), + 96: uint16(30562), + 97: uint16(30565), + 98: uint16(30591), + 99: uint16(30605), + 100: uint16(30589), + 101: uint16(30592), + 102: uint16(30604), + 103: uint16(30609), + 104: uint16(30623), + 105: uint16(30624), + 106: uint16(30640), + 107: uint16(30645), + 108: uint16(30653), + 109: uint16(30010), + 110: uint16(30016), + 111: uint16(30030), + 112: uint16(30027), + 113: uint16(30024), + 114: uint16(30043), + 115: uint16(30066), + 116: uint16(30073), + 117: uint16(30083), + 118: uint16(32600), + 119: uint16(32609), + 120: uint16(32607), + 121: uint16(35400), + 122: uint16(32616), + 123: uint16(32628), + 124: uint16(32625), + 125: uint16(32633), + 126: uint16(32641), + 127: uint16(32638), + 128: uint16(30413), + 129: uint16(30437), + 130: uint16(34866), + 131: uint16(38021), + 132: uint16(38022), + 133: uint16(38023), + 134: uint16(38027), + 135: uint16(38026), + 136: uint16(38028), + 137: uint16(38029), + 138: uint16(38031), + 139: uint16(38032), + 140: uint16(38036), + 141: uint16(38039), + 142: uint16(38037), + 143: uint16(38042), + 144: uint16(38043), + 145: uint16(38044), + 146: uint16(38051), + 147: uint16(38052), + 148: uint16(38059), + 149: uint16(38058), + 150: uint16(38061), + 151: uint16(38060), + 152: uint16(38063), + 153: uint16(38064), + 154: uint16(38066), + 155: uint16(38068), + 156: uint16(38070), + 157: uint16(38071), + 158: uint16(38072), + 159: uint16(38073), + 160: uint16(38074), + 161: uint16(38076), + 162: uint16(38077), + 163: uint16(38079), + 164: uint16(38084), + 165: uint16(38088), + 166: uint16(38089), + 167: uint16(38090), + 168: uint16(38091), + 169: uint16(38092), + 170: uint16(38093), + 171: uint16(38094), + 172: uint16(38096), + 173: uint16(38097), + 174: uint16(38098), + 175: uint16(38101), + 176: uint16(38102), + 177: uint16(38103), + 178: uint16(38105), + 179: uint16(38104), + 180: uint16(38107), + 181: uint16(38110), + 182: uint16(38111), + 183: uint16(38112), + 184: uint16(38114), + 185: uint16(38116), + 186: uint16(38117), + 187: uint16(38119), + 188: uint16(38120), + 189: uint16(38122), + }, + 110: { + 0: uint16(39023), + 1: uint16(39024), + 2: uint16(39025), + 3: uint16(39026), + 4: uint16(39027), + 5: uint16(39028), + 6: uint16(39051), + 7: uint16(39054), + 8: uint16(39058), + 9: uint16(39061), + 10: uint16(39065), + 11: uint16(39075), + 12: uint16(39080), + 13: uint16(39081), + 14: uint16(39082), + 15: uint16(39083), + 16: uint16(39084), + 17: uint16(39085), + 18: uint16(39086), + 19: uint16(39087), + 20: uint16(39088), + 21: uint16(39089), + 22: uint16(39090), + 23: uint16(39091), + 24: uint16(39092), + 25: uint16(39093), + 26: uint16(39094), + 27: uint16(39095), + 28: uint16(39096), + 29: uint16(39097), + 30: uint16(39098), + 31: uint16(39099), + 32: uint16(39100), + 33: uint16(39101), + 34: uint16(39102), + 35: uint16(39103), + 36: uint16(39104), + 37: uint16(39105), + 38: uint16(39106), + 39: uint16(39107), + 40: uint16(39108), + 41: uint16(39109), + 42: uint16(39110), + 43: uint16(39111), + 44: uint16(39112), + 45: uint16(39113), + 46: uint16(39114), + 47: uint16(39115), + 48: uint16(39116), + 49: uint16(39117), + 50: uint16(39119), + 51: uint16(39120), + 52: uint16(39124), + 53: uint16(39126), + 54: uint16(39127), + 55: uint16(39131), + 56: uint16(39132), + 57: uint16(39133), + 58: uint16(39136), + 59: uint16(39137), + 60: uint16(39138), + 61: uint16(39139), + 62: uint16(39140), + 63: uint16(39141), + 64: uint16(39142), + 65: uint16(39145), + 66: uint16(39146), + 67: uint16(39147), + 68: uint16(39148), + 69: uint16(39149), + 70: uint16(39150), + 71: uint16(39151), + 72: uint16(39152), + 73: uint16(39153), + 74: uint16(39154), + 75: uint16(39155), + 76: uint16(39156), + 77: uint16(39157), + 78: uint16(39158), + 79: uint16(39159), + 80: uint16(39160), + 81: uint16(39161), + 82: uint16(39162), + 83: uint16(39163), + 84: uint16(39164), + 85: uint16(39165), + 86: uint16(39166), + 87: uint16(39167), + 88: uint16(39168), + 89: uint16(39169), + 90: uint16(39170), + 91: uint16(39171), + 92: uint16(39172), + 93: uint16(39173), + 94: uint16(39174), + 95: uint16(39175), + 96: uint16(38121), + 97: uint16(38123), + 98: uint16(38126), + 99: uint16(38127), + 100: uint16(38131), + 101: uint16(38132), + 102: uint16(38133), + 103: uint16(38135), + 104: uint16(38137), + 105: uint16(38140), + 106: uint16(38141), + 107: uint16(38143), + 108: uint16(38147), + 109: uint16(38146), + 110: uint16(38150), + 111: uint16(38151), + 112: uint16(38153), + 113: uint16(38154), + 114: uint16(38157), + 115: uint16(38158), + 116: uint16(38159), + 117: uint16(38162), + 118: uint16(38163), + 119: uint16(38164), + 120: uint16(38165), + 121: uint16(38166), + 122: uint16(38168), + 123: uint16(38171), + 124: uint16(38173), + 125: uint16(38174), + 126: uint16(38175), + 127: uint16(38178), + 128: uint16(38186), + 129: uint16(38187), + 130: uint16(38185), + 131: uint16(38188), + 132: uint16(38193), + 133: uint16(38194), + 134: uint16(38196), + 135: uint16(38198), + 136: uint16(38199), + 137: uint16(38200), + 138: uint16(38204), + 139: uint16(38206), + 140: uint16(38207), + 141: uint16(38210), + 142: uint16(38197), + 143: uint16(38212), + 144: uint16(38213), + 145: uint16(38214), + 146: uint16(38217), + 147: uint16(38220), + 148: uint16(38222), + 149: uint16(38223), + 150: uint16(38226), + 151: uint16(38227), + 152: uint16(38228), + 153: uint16(38230), + 154: uint16(38231), + 155: uint16(38232), + 156: uint16(38233), + 157: uint16(38235), + 158: uint16(38238), + 159: uint16(38239), + 160: uint16(38237), + 161: uint16(38241), + 162: uint16(38242), + 163: uint16(38244), + 164: uint16(38245), + 165: uint16(38246), + 166: uint16(38247), + 167: uint16(38248), + 168: uint16(38249), + 169: uint16(38250), + 170: uint16(38251), + 171: uint16(38252), + 172: uint16(38255), + 173: uint16(38257), + 174: uint16(38258), + 175: uint16(38259), + 176: uint16(38202), + 177: uint16(30695), + 178: uint16(30700), + 179: uint16(38601), + 180: uint16(31189), + 181: uint16(31213), + 182: uint16(31203), + 183: uint16(31211), + 184: uint16(31238), + 185: uint16(23879), + 186: uint16(31235), + 187: uint16(31234), + 188: uint16(31262), + 189: uint16(31252), + }, + 111: { + 0: uint16(39176), + 1: uint16(39177), + 2: uint16(39178), + 3: uint16(39179), + 4: uint16(39180), + 5: uint16(39182), + 6: uint16(39183), + 7: uint16(39185), + 8: uint16(39186), + 9: uint16(39187), + 10: uint16(39188), + 11: uint16(39189), + 12: uint16(39190), + 13: uint16(39191), + 14: uint16(39192), + 15: uint16(39193), + 16: uint16(39194), + 17: uint16(39195), + 18: uint16(39196), + 19: uint16(39197), + 20: uint16(39198), + 21: uint16(39199), + 22: uint16(39200), + 23: uint16(39201), + 24: uint16(39202), + 25: uint16(39203), + 26: uint16(39204), + 27: uint16(39205), + 28: uint16(39206), + 29: uint16(39207), + 30: uint16(39208), + 31: uint16(39209), + 32: uint16(39210), + 33: uint16(39211), + 34: uint16(39212), + 35: uint16(39213), + 36: uint16(39215), + 37: uint16(39216), + 38: uint16(39217), + 39: uint16(39218), + 40: uint16(39219), + 41: uint16(39220), + 42: uint16(39221), + 43: uint16(39222), + 44: uint16(39223), + 45: uint16(39224), + 46: uint16(39225), + 47: uint16(39226), + 48: uint16(39227), + 49: uint16(39228), + 50: uint16(39229), + 51: uint16(39230), + 52: uint16(39231), + 53: uint16(39232), + 54: uint16(39233), + 55: uint16(39234), + 56: uint16(39235), + 57: uint16(39236), + 58: uint16(39237), + 59: uint16(39238), + 60: uint16(39239), + 61: uint16(39240), + 62: uint16(39241), + 63: uint16(39242), + 64: uint16(39243), + 65: uint16(39244), + 66: uint16(39245), + 67: uint16(39246), + 68: uint16(39247), + 69: uint16(39248), + 70: uint16(39249), + 71: uint16(39250), + 72: uint16(39251), + 73: uint16(39254), + 74: uint16(39255), + 75: uint16(39256), + 76: uint16(39257), + 77: uint16(39258), + 78: uint16(39259), + 79: uint16(39260), + 80: uint16(39261), + 81: uint16(39262), + 82: uint16(39263), + 83: uint16(39264), + 84: uint16(39265), + 85: uint16(39266), + 86: uint16(39268), + 87: uint16(39270), + 88: uint16(39283), + 89: uint16(39288), + 90: uint16(39289), + 91: uint16(39291), + 92: uint16(39294), + 93: uint16(39298), + 94: uint16(39299), + 95: uint16(39305), + 96: uint16(31289), + 97: uint16(31287), + 98: uint16(31313), + 99: uint16(40655), + 100: uint16(39333), + 101: uint16(31344), + 102: uint16(30344), + 103: uint16(30350), + 104: uint16(30355), + 105: uint16(30361), + 106: uint16(30372), + 107: uint16(29918), + 108: uint16(29920), + 109: uint16(29996), + 110: uint16(40480), + 111: uint16(40482), + 112: uint16(40488), + 113: uint16(40489), + 114: uint16(40490), + 115: uint16(40491), + 116: uint16(40492), + 117: uint16(40498), + 118: uint16(40497), + 119: uint16(40502), + 120: uint16(40504), + 121: uint16(40503), + 122: uint16(40505), + 123: uint16(40506), + 124: uint16(40510), + 125: uint16(40513), + 126: uint16(40514), + 127: uint16(40516), + 128: uint16(40518), + 129: uint16(40519), + 130: uint16(40520), + 131: uint16(40521), + 132: uint16(40523), + 133: uint16(40524), + 134: uint16(40526), + 135: uint16(40529), + 136: uint16(40533), + 137: uint16(40535), + 138: uint16(40538), + 139: uint16(40539), + 140: uint16(40540), + 141: uint16(40542), + 142: uint16(40547), + 143: uint16(40550), + 144: uint16(40551), + 145: uint16(40552), + 146: uint16(40553), + 147: uint16(40554), + 148: uint16(40555), + 149: uint16(40556), + 150: uint16(40561), + 151: uint16(40557), + 152: uint16(40563), + 153: uint16(30098), + 154: uint16(30100), + 155: uint16(30102), + 156: uint16(30112), + 157: uint16(30109), + 158: uint16(30124), + 159: uint16(30115), + 160: uint16(30131), + 161: uint16(30132), + 162: uint16(30136), + 163: uint16(30148), + 164: uint16(30129), + 165: uint16(30128), + 166: uint16(30147), + 167: uint16(30146), + 168: uint16(30166), + 169: uint16(30157), + 170: uint16(30179), + 171: uint16(30184), + 172: uint16(30182), + 173: uint16(30180), + 174: uint16(30187), + 175: uint16(30183), + 176: uint16(30211), + 177: uint16(30193), + 178: uint16(30204), + 179: uint16(30207), + 180: uint16(30224), + 181: uint16(30208), + 182: uint16(30213), + 183: uint16(30220), + 184: uint16(30231), + 185: uint16(30218), + 186: uint16(30245), + 187: uint16(30232), + 188: uint16(30229), + 189: uint16(30233), + }, + 112: { + 0: uint16(39308), + 1: uint16(39310), + 2: uint16(39322), + 3: uint16(39323), + 4: uint16(39324), + 5: uint16(39325), + 6: uint16(39326), + 7: uint16(39327), + 8: uint16(39328), + 9: uint16(39329), + 10: uint16(39330), + 11: uint16(39331), + 12: uint16(39332), + 13: uint16(39334), + 14: uint16(39335), + 15: uint16(39337), + 16: uint16(39338), + 17: uint16(39339), + 18: uint16(39340), + 19: uint16(39341), + 20: uint16(39342), + 21: uint16(39343), + 22: uint16(39344), + 23: uint16(39345), + 24: uint16(39346), + 25: uint16(39347), + 26: uint16(39348), + 27: uint16(39349), + 28: uint16(39350), + 29: uint16(39351), + 30: uint16(39352), + 31: uint16(39353), + 32: uint16(39354), + 33: uint16(39355), + 34: uint16(39356), + 35: uint16(39357), + 36: uint16(39358), + 37: uint16(39359), + 38: uint16(39360), + 39: uint16(39361), + 40: uint16(39362), + 41: uint16(39363), + 42: uint16(39364), + 43: uint16(39365), + 44: uint16(39366), + 45: uint16(39367), + 46: uint16(39368), + 47: uint16(39369), + 48: uint16(39370), + 49: uint16(39371), + 50: uint16(39372), + 51: uint16(39373), + 52: uint16(39374), + 53: uint16(39375), + 54: uint16(39376), + 55: uint16(39377), + 56: uint16(39378), + 57: uint16(39379), + 58: uint16(39380), + 59: uint16(39381), + 60: uint16(39382), + 61: uint16(39383), + 62: uint16(39384), + 63: uint16(39385), + 64: uint16(39386), + 65: uint16(39387), + 66: uint16(39388), + 67: uint16(39389), + 68: uint16(39390), + 69: uint16(39391), + 70: uint16(39392), + 71: uint16(39393), + 72: uint16(39394), + 73: uint16(39395), + 74: uint16(39396), + 75: uint16(39397), + 76: uint16(39398), + 77: uint16(39399), + 78: uint16(39400), + 79: uint16(39401), + 80: uint16(39402), + 81: uint16(39403), + 82: uint16(39404), + 83: uint16(39405), + 84: uint16(39406), + 85: uint16(39407), + 86: uint16(39408), + 87: uint16(39409), + 88: uint16(39410), + 89: uint16(39411), + 90: uint16(39412), + 91: uint16(39413), + 92: uint16(39414), + 93: uint16(39415), + 94: uint16(39416), + 95: uint16(39417), + 96: uint16(30235), + 97: uint16(30268), + 98: uint16(30242), + 99: uint16(30240), + 100: uint16(30272), + 101: uint16(30253), + 102: uint16(30256), + 103: uint16(30271), + 104: uint16(30261), + 105: uint16(30275), + 106: uint16(30270), + 107: uint16(30259), + 108: uint16(30285), + 109: uint16(30302), + 110: uint16(30292), + 111: uint16(30300), + 112: uint16(30294), + 113: uint16(30315), + 114: uint16(30319), + 115: uint16(32714), + 116: uint16(31462), + 117: uint16(31352), + 118: uint16(31353), + 119: uint16(31360), + 120: uint16(31366), + 121: uint16(31368), + 122: uint16(31381), + 123: uint16(31398), + 124: uint16(31392), + 125: uint16(31404), + 126: uint16(31400), + 127: uint16(31405), + 128: uint16(31411), + 129: uint16(34916), + 130: uint16(34921), + 131: uint16(34930), + 132: uint16(34941), + 133: uint16(34943), + 134: uint16(34946), + 135: uint16(34978), + 136: uint16(35014), + 137: uint16(34999), + 138: uint16(35004), + 139: uint16(35017), + 140: uint16(35042), + 141: uint16(35022), + 142: uint16(35043), + 143: uint16(35045), + 144: uint16(35057), + 145: uint16(35098), + 146: uint16(35068), + 147: uint16(35048), + 148: uint16(35070), + 149: uint16(35056), + 150: uint16(35105), + 151: uint16(35097), + 152: uint16(35091), + 153: uint16(35099), + 154: uint16(35082), + 155: uint16(35124), + 156: uint16(35115), + 157: uint16(35126), + 158: uint16(35137), + 159: uint16(35174), + 160: uint16(35195), + 161: uint16(30091), + 162: uint16(32997), + 163: uint16(30386), + 164: uint16(30388), + 165: uint16(30684), + 166: uint16(32786), + 167: uint16(32788), + 168: uint16(32790), + 169: uint16(32796), + 170: uint16(32800), + 171: uint16(32802), + 172: uint16(32805), + 173: uint16(32806), + 174: uint16(32807), + 175: uint16(32809), + 176: uint16(32808), + 177: uint16(32817), + 178: uint16(32779), + 179: uint16(32821), + 180: uint16(32835), + 181: uint16(32838), + 182: uint16(32845), + 183: uint16(32850), + 184: uint16(32873), + 185: uint16(32881), + 186: uint16(35203), + 187: uint16(39032), + 188: uint16(39040), + 189: uint16(39043), + }, + 113: { + 0: uint16(39418), + 1: uint16(39419), + 2: uint16(39420), + 3: uint16(39421), + 4: uint16(39422), + 5: uint16(39423), + 6: uint16(39424), + 7: uint16(39425), + 8: uint16(39426), + 9: uint16(39427), + 10: uint16(39428), + 11: uint16(39429), + 12: uint16(39430), + 13: uint16(39431), + 14: uint16(39432), + 15: uint16(39433), + 16: uint16(39434), + 17: uint16(39435), + 18: uint16(39436), + 19: uint16(39437), + 20: uint16(39438), + 21: uint16(39439), + 22: uint16(39440), + 23: uint16(39441), + 24: uint16(39442), + 25: uint16(39443), + 26: uint16(39444), + 27: uint16(39445), + 28: uint16(39446), + 29: uint16(39447), + 30: uint16(39448), + 31: uint16(39449), + 32: uint16(39450), + 33: uint16(39451), + 34: uint16(39452), + 35: uint16(39453), + 36: uint16(39454), + 37: uint16(39455), + 38: uint16(39456), + 39: uint16(39457), + 40: uint16(39458), + 41: uint16(39459), + 42: uint16(39460), + 43: uint16(39461), + 44: uint16(39462), + 45: uint16(39463), + 46: uint16(39464), + 47: uint16(39465), + 48: uint16(39466), + 49: uint16(39467), + 50: uint16(39468), + 51: uint16(39469), + 52: uint16(39470), + 53: uint16(39471), + 54: uint16(39472), + 55: uint16(39473), + 56: uint16(39474), + 57: uint16(39475), + 58: uint16(39476), + 59: uint16(39477), + 60: uint16(39478), + 61: uint16(39479), + 62: uint16(39480), + 63: uint16(39481), + 64: uint16(39482), + 65: uint16(39483), + 66: uint16(39484), + 67: uint16(39485), + 68: uint16(39486), + 69: uint16(39487), + 70: uint16(39488), + 71: uint16(39489), + 72: uint16(39490), + 73: uint16(39491), + 74: uint16(39492), + 75: uint16(39493), + 76: uint16(39494), + 77: uint16(39495), + 78: uint16(39496), + 79: uint16(39497), + 80: uint16(39498), + 81: uint16(39499), + 82: uint16(39500), + 83: uint16(39501), + 84: uint16(39502), + 85: uint16(39503), + 86: uint16(39504), + 87: uint16(39505), + 88: uint16(39506), + 89: uint16(39507), + 90: uint16(39508), + 91: uint16(39509), + 92: uint16(39510), + 93: uint16(39511), + 94: uint16(39512), + 95: uint16(39513), + 96: uint16(39049), + 97: uint16(39052), + 98: uint16(39053), + 99: uint16(39055), + 100: uint16(39060), + 101: uint16(39066), + 102: uint16(39067), + 103: uint16(39070), + 104: uint16(39071), + 105: uint16(39073), + 106: uint16(39074), + 107: uint16(39077), + 108: uint16(39078), + 109: uint16(34381), + 110: uint16(34388), + 111: uint16(34412), + 112: uint16(34414), + 113: uint16(34431), + 114: uint16(34426), + 115: uint16(34428), + 116: uint16(34427), + 117: uint16(34472), + 118: uint16(34445), + 119: uint16(34443), + 120: uint16(34476), + 121: uint16(34461), + 122: uint16(34471), + 123: uint16(34467), + 124: uint16(34474), + 125: uint16(34451), + 126: uint16(34473), + 127: uint16(34486), + 128: uint16(34500), + 129: uint16(34485), + 130: uint16(34510), + 131: uint16(34480), + 132: uint16(34490), + 133: uint16(34481), + 134: uint16(34479), + 135: uint16(34505), + 136: uint16(34511), + 137: uint16(34484), + 138: uint16(34537), + 139: uint16(34545), + 140: uint16(34546), + 141: uint16(34541), + 142: uint16(34547), + 143: uint16(34512), + 144: uint16(34579), + 145: uint16(34526), + 146: uint16(34548), + 147: uint16(34527), + 148: uint16(34520), + 149: uint16(34513), + 150: uint16(34563), + 151: uint16(34567), + 152: uint16(34552), + 153: uint16(34568), + 154: uint16(34570), + 155: uint16(34573), + 156: uint16(34569), + 157: uint16(34595), + 158: uint16(34619), + 159: uint16(34590), + 160: uint16(34597), + 161: uint16(34606), + 162: uint16(34586), + 163: uint16(34622), + 164: uint16(34632), + 165: uint16(34612), + 166: uint16(34609), + 167: uint16(34601), + 168: uint16(34615), + 169: uint16(34623), + 170: uint16(34690), + 171: uint16(34594), + 172: uint16(34685), + 173: uint16(34686), + 174: uint16(34683), + 175: uint16(34656), + 176: uint16(34672), + 177: uint16(34636), + 178: uint16(34670), + 179: uint16(34699), + 180: uint16(34643), + 181: uint16(34659), + 182: uint16(34684), + 183: uint16(34660), + 184: uint16(34649), + 185: uint16(34661), + 186: uint16(34707), + 187: uint16(34735), + 188: uint16(34728), + 189: uint16(34770), + }, + 114: { + 0: uint16(39514), + 1: uint16(39515), + 2: uint16(39516), + 3: uint16(39517), + 4: uint16(39518), + 5: uint16(39519), + 6: uint16(39520), + 7: uint16(39521), + 8: uint16(39522), + 9: uint16(39523), + 10: uint16(39524), + 11: uint16(39525), + 12: uint16(39526), + 13: uint16(39527), + 14: uint16(39528), + 15: uint16(39529), + 16: uint16(39530), + 17: uint16(39531), + 18: uint16(39538), + 19: uint16(39555), + 20: uint16(39561), + 21: uint16(39565), + 22: uint16(39566), + 23: uint16(39572), + 24: uint16(39573), + 25: uint16(39577), + 26: uint16(39590), + 27: uint16(39593), + 28: uint16(39594), + 29: uint16(39595), + 30: uint16(39596), + 31: uint16(39597), + 32: uint16(39598), + 33: uint16(39599), + 34: uint16(39602), + 35: uint16(39603), + 36: uint16(39604), + 37: uint16(39605), + 38: uint16(39609), + 39: uint16(39611), + 40: uint16(39613), + 41: uint16(39614), + 42: uint16(39615), + 43: uint16(39619), + 44: uint16(39620), + 45: uint16(39622), + 46: uint16(39623), + 47: uint16(39624), + 48: uint16(39625), + 49: uint16(39626), + 50: uint16(39629), + 51: uint16(39630), + 52: uint16(39631), + 53: uint16(39632), + 54: uint16(39634), + 55: uint16(39636), + 56: uint16(39637), + 57: uint16(39638), + 58: uint16(39639), + 59: uint16(39641), + 60: uint16(39642), + 61: uint16(39643), + 62: uint16(39644), + 63: uint16(39645), + 64: uint16(39646), + 65: uint16(39648), + 66: uint16(39650), + 67: uint16(39651), + 68: uint16(39652), + 69: uint16(39653), + 70: uint16(39655), + 71: uint16(39656), + 72: uint16(39657), + 73: uint16(39658), + 74: uint16(39660), + 75: uint16(39662), + 76: uint16(39664), + 77: uint16(39665), + 78: uint16(39666), + 79: uint16(39667), + 80: uint16(39668), + 81: uint16(39669), + 82: uint16(39670), + 83: uint16(39671), + 84: uint16(39672), + 85: uint16(39674), + 86: uint16(39676), + 87: uint16(39677), + 88: uint16(39678), + 89: uint16(39679), + 90: uint16(39680), + 91: uint16(39681), + 92: uint16(39682), + 93: uint16(39684), + 94: uint16(39685), + 95: uint16(39686), + 96: uint16(34758), + 97: uint16(34696), + 98: uint16(34693), + 99: uint16(34733), + 100: uint16(34711), + 101: uint16(34691), + 102: uint16(34731), + 103: uint16(34789), + 104: uint16(34732), + 105: uint16(34741), + 106: uint16(34739), + 107: uint16(34763), + 108: uint16(34771), + 109: uint16(34749), + 110: uint16(34769), + 111: uint16(34752), + 112: uint16(34762), + 113: uint16(34779), + 114: uint16(34794), + 115: uint16(34784), + 116: uint16(34798), + 117: uint16(34838), + 118: uint16(34835), + 119: uint16(34814), + 120: uint16(34826), + 121: uint16(34843), + 122: uint16(34849), + 123: uint16(34873), + 124: uint16(34876), + 125: uint16(32566), + 126: uint16(32578), + 127: uint16(32580), + 128: uint16(32581), + 129: uint16(33296), + 130: uint16(31482), + 131: uint16(31485), + 132: uint16(31496), + 133: uint16(31491), + 134: uint16(31492), + 135: uint16(31509), + 136: uint16(31498), + 137: uint16(31531), + 138: uint16(31503), + 139: uint16(31559), + 140: uint16(31544), + 141: uint16(31530), + 142: uint16(31513), + 143: uint16(31534), + 144: uint16(31537), + 145: uint16(31520), + 146: uint16(31525), + 147: uint16(31524), + 148: uint16(31539), + 149: uint16(31550), + 150: uint16(31518), + 151: uint16(31576), + 152: uint16(31578), + 153: uint16(31557), + 154: uint16(31605), + 155: uint16(31564), + 156: uint16(31581), + 157: uint16(31584), + 158: uint16(31598), + 159: uint16(31611), + 160: uint16(31586), + 161: uint16(31602), + 162: uint16(31601), + 163: uint16(31632), + 164: uint16(31654), + 165: uint16(31655), + 166: uint16(31672), + 167: uint16(31660), + 168: uint16(31645), + 169: uint16(31656), + 170: uint16(31621), + 171: uint16(31658), + 172: uint16(31644), + 173: uint16(31650), + 174: uint16(31659), + 175: uint16(31668), + 176: uint16(31697), + 177: uint16(31681), + 178: uint16(31692), + 179: uint16(31709), + 180: uint16(31706), + 181: uint16(31717), + 182: uint16(31718), + 183: uint16(31722), + 184: uint16(31756), + 185: uint16(31742), + 186: uint16(31740), + 187: uint16(31759), + 188: uint16(31766), + 189: uint16(31755), + }, + 115: { + 0: uint16(39687), + 1: uint16(39689), + 2: uint16(39690), + 3: uint16(39691), + 4: uint16(39692), + 5: uint16(39693), + 6: uint16(39694), + 7: uint16(39696), + 8: uint16(39697), + 9: uint16(39698), + 10: uint16(39700), + 11: uint16(39701), + 12: uint16(39702), + 13: uint16(39703), + 14: uint16(39704), + 15: uint16(39705), + 16: uint16(39706), + 17: uint16(39707), + 18: uint16(39708), + 19: uint16(39709), + 20: uint16(39710), + 21: uint16(39712), + 22: uint16(39713), + 23: uint16(39714), + 24: uint16(39716), + 25: uint16(39717), + 26: uint16(39718), + 27: uint16(39719), + 28: uint16(39720), + 29: uint16(39721), + 30: uint16(39722), + 31: uint16(39723), + 32: uint16(39724), + 33: uint16(39725), + 34: uint16(39726), + 35: uint16(39728), + 36: uint16(39729), + 37: uint16(39731), + 38: uint16(39732), + 39: uint16(39733), + 40: uint16(39734), + 41: uint16(39735), + 42: uint16(39736), + 43: uint16(39737), + 44: uint16(39738), + 45: uint16(39741), + 46: uint16(39742), + 47: uint16(39743), + 48: uint16(39744), + 49: uint16(39750), + 50: uint16(39754), + 51: uint16(39755), + 52: uint16(39756), + 53: uint16(39758), + 54: uint16(39760), + 55: uint16(39762), + 56: uint16(39763), + 57: uint16(39765), + 58: uint16(39766), + 59: uint16(39767), + 60: uint16(39768), + 61: uint16(39769), + 62: uint16(39770), + 63: uint16(39771), + 64: uint16(39772), + 65: uint16(39773), + 66: uint16(39774), + 67: uint16(39775), + 68: uint16(39776), + 69: uint16(39777), + 70: uint16(39778), + 71: uint16(39779), + 72: uint16(39780), + 73: uint16(39781), + 74: uint16(39782), + 75: uint16(39783), + 76: uint16(39784), + 77: uint16(39785), + 78: uint16(39786), + 79: uint16(39787), + 80: uint16(39788), + 81: uint16(39789), + 82: uint16(39790), + 83: uint16(39791), + 84: uint16(39792), + 85: uint16(39793), + 86: uint16(39794), + 87: uint16(39795), + 88: uint16(39796), + 89: uint16(39797), + 90: uint16(39798), + 91: uint16(39799), + 92: uint16(39800), + 93: uint16(39801), + 94: uint16(39802), + 95: uint16(39803), + 96: uint16(31775), + 97: uint16(31786), + 98: uint16(31782), + 99: uint16(31800), + 100: uint16(31809), + 101: uint16(31808), + 102: uint16(33278), + 103: uint16(33281), + 104: uint16(33282), + 105: uint16(33284), + 106: uint16(33260), + 107: uint16(34884), + 108: uint16(33313), + 109: uint16(33314), + 110: uint16(33315), + 111: uint16(33325), + 112: uint16(33327), + 113: uint16(33320), + 114: uint16(33323), + 115: uint16(33336), + 116: uint16(33339), + 117: uint16(33331), + 118: uint16(33332), + 119: uint16(33342), + 120: uint16(33348), + 121: uint16(33353), + 122: uint16(33355), + 123: uint16(33359), + 124: uint16(33370), + 125: uint16(33375), + 126: uint16(33384), + 127: uint16(34942), + 128: uint16(34949), + 129: uint16(34952), + 130: uint16(35032), + 131: uint16(35039), + 132: uint16(35166), + 133: uint16(32669), + 134: uint16(32671), + 135: uint16(32679), + 136: uint16(32687), + 137: uint16(32688), + 138: uint16(32690), + 139: uint16(31868), + 140: uint16(25929), + 141: uint16(31889), + 142: uint16(31901), + 143: uint16(31900), + 144: uint16(31902), + 145: uint16(31906), + 146: uint16(31922), + 147: uint16(31932), + 148: uint16(31933), + 149: uint16(31937), + 150: uint16(31943), + 151: uint16(31948), + 152: uint16(31949), + 153: uint16(31944), + 154: uint16(31941), + 155: uint16(31959), + 156: uint16(31976), + 157: uint16(33390), + 158: uint16(26280), + 159: uint16(32703), + 160: uint16(32718), + 161: uint16(32725), + 162: uint16(32741), + 163: uint16(32737), + 164: uint16(32742), + 165: uint16(32745), + 166: uint16(32750), + 167: uint16(32755), + 168: uint16(31992), + 169: uint16(32119), + 170: uint16(32166), + 171: uint16(32174), + 172: uint16(32327), + 173: uint16(32411), + 174: uint16(40632), + 175: uint16(40628), + 176: uint16(36211), + 177: uint16(36228), + 178: uint16(36244), + 179: uint16(36241), + 180: uint16(36273), + 181: uint16(36199), + 182: uint16(36205), + 183: uint16(35911), + 184: uint16(35913), + 185: uint16(37194), + 186: uint16(37200), + 187: uint16(37198), + 188: uint16(37199), + 189: uint16(37220), + }, + 116: { + 0: uint16(39804), + 1: uint16(39805), + 2: uint16(39806), + 3: uint16(39807), + 4: uint16(39808), + 5: uint16(39809), + 6: uint16(39810), + 7: uint16(39811), + 8: uint16(39812), + 9: uint16(39813), + 10: uint16(39814), + 11: uint16(39815), + 12: uint16(39816), + 13: uint16(39817), + 14: uint16(39818), + 15: uint16(39819), + 16: uint16(39820), + 17: uint16(39821), + 18: uint16(39822), + 19: uint16(39823), + 20: uint16(39824), + 21: uint16(39825), + 22: uint16(39826), + 23: uint16(39827), + 24: uint16(39828), + 25: uint16(39829), + 26: uint16(39830), + 27: uint16(39831), + 28: uint16(39832), + 29: uint16(39833), + 30: uint16(39834), + 31: uint16(39835), + 32: uint16(39836), + 33: uint16(39837), + 34: uint16(39838), + 35: uint16(39839), + 36: uint16(39840), + 37: uint16(39841), + 38: uint16(39842), + 39: uint16(39843), + 40: uint16(39844), + 41: uint16(39845), + 42: uint16(39846), + 43: uint16(39847), + 44: uint16(39848), + 45: uint16(39849), + 46: uint16(39850), + 47: uint16(39851), + 48: uint16(39852), + 49: uint16(39853), + 50: uint16(39854), + 51: uint16(39855), + 52: uint16(39856), + 53: uint16(39857), + 54: uint16(39858), + 55: uint16(39859), + 56: uint16(39860), + 57: uint16(39861), + 58: uint16(39862), + 59: uint16(39863), + 60: uint16(39864), + 61: uint16(39865), + 62: uint16(39866), + 63: uint16(39867), + 64: uint16(39868), + 65: uint16(39869), + 66: uint16(39870), + 67: uint16(39871), + 68: uint16(39872), + 69: uint16(39873), + 70: uint16(39874), + 71: uint16(39875), + 72: uint16(39876), + 73: uint16(39877), + 74: uint16(39878), + 75: uint16(39879), + 76: uint16(39880), + 77: uint16(39881), + 78: uint16(39882), + 79: uint16(39883), + 80: uint16(39884), + 81: uint16(39885), + 82: uint16(39886), + 83: uint16(39887), + 84: uint16(39888), + 85: uint16(39889), + 86: uint16(39890), + 87: uint16(39891), + 88: uint16(39892), + 89: uint16(39893), + 90: uint16(39894), + 91: uint16(39895), + 92: uint16(39896), + 93: uint16(39897), + 94: uint16(39898), + 95: uint16(39899), + 96: uint16(37218), + 97: uint16(37217), + 98: uint16(37232), + 99: uint16(37225), + 100: uint16(37231), + 101: uint16(37245), + 102: uint16(37246), + 103: uint16(37234), + 104: uint16(37236), + 105: uint16(37241), + 106: uint16(37260), + 107: uint16(37253), + 108: uint16(37264), + 109: uint16(37261), + 110: uint16(37265), + 111: uint16(37282), + 112: uint16(37283), + 113: uint16(37290), + 114: uint16(37293), + 115: uint16(37294), + 116: uint16(37295), + 117: uint16(37301), + 118: uint16(37300), + 119: uint16(37306), + 120: uint16(35925), + 121: uint16(40574), + 122: uint16(36280), + 123: uint16(36331), + 124: uint16(36357), + 125: uint16(36441), + 126: uint16(36457), + 127: uint16(36277), + 128: uint16(36287), + 129: uint16(36284), + 130: uint16(36282), + 131: uint16(36292), + 132: uint16(36310), + 133: uint16(36311), + 134: uint16(36314), + 135: uint16(36318), + 136: uint16(36302), + 137: uint16(36303), + 138: uint16(36315), + 139: uint16(36294), + 140: uint16(36332), + 141: uint16(36343), + 142: uint16(36344), + 143: uint16(36323), + 144: uint16(36345), + 145: uint16(36347), + 146: uint16(36324), + 147: uint16(36361), + 148: uint16(36349), + 149: uint16(36372), + 150: uint16(36381), + 151: uint16(36383), + 152: uint16(36396), + 153: uint16(36398), + 154: uint16(36387), + 155: uint16(36399), + 156: uint16(36410), + 157: uint16(36416), + 158: uint16(36409), + 159: uint16(36405), + 160: uint16(36413), + 161: uint16(36401), + 162: uint16(36425), + 163: uint16(36417), + 164: uint16(36418), + 165: uint16(36433), + 166: uint16(36434), + 167: uint16(36426), + 168: uint16(36464), + 169: uint16(36470), + 170: uint16(36476), + 171: uint16(36463), + 172: uint16(36468), + 173: uint16(36485), + 174: uint16(36495), + 175: uint16(36500), + 176: uint16(36496), + 177: uint16(36508), + 178: uint16(36510), + 179: uint16(35960), + 180: uint16(35970), + 181: uint16(35978), + 182: uint16(35973), + 183: uint16(35992), + 184: uint16(35988), + 185: uint16(26011), + 186: uint16(35286), + 187: uint16(35294), + 188: uint16(35290), + 189: uint16(35292), + }, + 117: { + 0: uint16(39900), + 1: uint16(39901), + 2: uint16(39902), + 3: uint16(39903), + 4: uint16(39904), + 5: uint16(39905), + 6: uint16(39906), + 7: uint16(39907), + 8: uint16(39908), + 9: uint16(39909), + 10: uint16(39910), + 11: uint16(39911), + 12: uint16(39912), + 13: uint16(39913), + 14: uint16(39914), + 15: uint16(39915), + 16: uint16(39916), + 17: uint16(39917), + 18: uint16(39918), + 19: uint16(39919), + 20: uint16(39920), + 21: uint16(39921), + 22: uint16(39922), + 23: uint16(39923), + 24: uint16(39924), + 25: uint16(39925), + 26: uint16(39926), + 27: uint16(39927), + 28: uint16(39928), + 29: uint16(39929), + 30: uint16(39930), + 31: uint16(39931), + 32: uint16(39932), + 33: uint16(39933), + 34: uint16(39934), + 35: uint16(39935), + 36: uint16(39936), + 37: uint16(39937), + 38: uint16(39938), + 39: uint16(39939), + 40: uint16(39940), + 41: uint16(39941), + 42: uint16(39942), + 43: uint16(39943), + 44: uint16(39944), + 45: uint16(39945), + 46: uint16(39946), + 47: uint16(39947), + 48: uint16(39948), + 49: uint16(39949), + 50: uint16(39950), + 51: uint16(39951), + 52: uint16(39952), + 53: uint16(39953), + 54: uint16(39954), + 55: uint16(39955), + 56: uint16(39956), + 57: uint16(39957), + 58: uint16(39958), + 59: uint16(39959), + 60: uint16(39960), + 61: uint16(39961), + 62: uint16(39962), + 63: uint16(39963), + 64: uint16(39964), + 65: uint16(39965), + 66: uint16(39966), + 67: uint16(39967), + 68: uint16(39968), + 69: uint16(39969), + 70: uint16(39970), + 71: uint16(39971), + 72: uint16(39972), + 73: uint16(39973), + 74: uint16(39974), + 75: uint16(39975), + 76: uint16(39976), + 77: uint16(39977), + 78: uint16(39978), + 79: uint16(39979), + 80: uint16(39980), + 81: uint16(39981), + 82: uint16(39982), + 83: uint16(39983), + 84: uint16(39984), + 85: uint16(39985), + 86: uint16(39986), + 87: uint16(39987), + 88: uint16(39988), + 89: uint16(39989), + 90: uint16(39990), + 91: uint16(39991), + 92: uint16(39992), + 93: uint16(39993), + 94: uint16(39994), + 95: uint16(39995), + 96: uint16(35301), + 97: uint16(35307), + 98: uint16(35311), + 99: uint16(35390), + 100: uint16(35622), + 101: uint16(38739), + 102: uint16(38633), + 103: uint16(38643), + 104: uint16(38639), + 105: uint16(38662), + 106: uint16(38657), + 107: uint16(38664), + 108: uint16(38671), + 109: uint16(38670), + 110: uint16(38698), + 111: uint16(38701), + 112: uint16(38704), + 113: uint16(38718), + 114: uint16(40832), + 115: uint16(40835), + 116: uint16(40837), + 117: uint16(40838), + 118: uint16(40839), + 119: uint16(40840), + 120: uint16(40841), + 121: uint16(40842), + 122: uint16(40844), + 123: uint16(40702), + 124: uint16(40715), + 125: uint16(40717), + 126: uint16(38585), + 127: uint16(38588), + 128: uint16(38589), + 129: uint16(38606), + 130: uint16(38610), + 131: uint16(30655), + 132: uint16(38624), + 133: uint16(37518), + 134: uint16(37550), + 135: uint16(37576), + 136: uint16(37694), + 137: uint16(37738), + 138: uint16(37834), + 139: uint16(37775), + 140: uint16(37950), + 141: uint16(37995), + 142: uint16(40063), + 143: uint16(40066), + 144: uint16(40069), + 145: uint16(40070), + 146: uint16(40071), + 147: uint16(40072), + 148: uint16(31267), + 149: uint16(40075), + 150: uint16(40078), + 151: uint16(40080), + 152: uint16(40081), + 153: uint16(40082), + 154: uint16(40084), + 155: uint16(40085), + 156: uint16(40090), + 157: uint16(40091), + 158: uint16(40094), + 159: uint16(40095), + 160: uint16(40096), + 161: uint16(40097), + 162: uint16(40098), + 163: uint16(40099), + 164: uint16(40101), + 165: uint16(40102), + 166: uint16(40103), + 167: uint16(40104), + 168: uint16(40105), + 169: uint16(40107), + 170: uint16(40109), + 171: uint16(40110), + 172: uint16(40112), + 173: uint16(40113), + 174: uint16(40114), + 175: uint16(40115), + 176: uint16(40116), + 177: uint16(40117), + 178: uint16(40118), + 179: uint16(40119), + 180: uint16(40122), + 181: uint16(40123), + 182: uint16(40124), + 183: uint16(40125), + 184: uint16(40132), + 185: uint16(40133), + 186: uint16(40134), + 187: uint16(40135), + 188: uint16(40138), + 189: uint16(40139), + }, + 118: { + 0: uint16(39996), + 1: uint16(39997), + 2: uint16(39998), + 3: uint16(39999), + 4: uint16(40000), + 5: uint16(40001), + 6: uint16(40002), + 7: uint16(40003), + 8: uint16(40004), + 9: uint16(40005), + 10: uint16(40006), + 11: uint16(40007), + 12: uint16(40008), + 13: uint16(40009), + 14: uint16(40010), + 15: uint16(40011), + 16: uint16(40012), + 17: uint16(40013), + 18: uint16(40014), + 19: uint16(40015), + 20: uint16(40016), + 21: uint16(40017), + 22: uint16(40018), + 23: uint16(40019), + 24: uint16(40020), + 25: uint16(40021), + 26: uint16(40022), + 27: uint16(40023), + 28: uint16(40024), + 29: uint16(40025), + 30: uint16(40026), + 31: uint16(40027), + 32: uint16(40028), + 33: uint16(40029), + 34: uint16(40030), + 35: uint16(40031), + 36: uint16(40032), + 37: uint16(40033), + 38: uint16(40034), + 39: uint16(40035), + 40: uint16(40036), + 41: uint16(40037), + 42: uint16(40038), + 43: uint16(40039), + 44: uint16(40040), + 45: uint16(40041), + 46: uint16(40042), + 47: uint16(40043), + 48: uint16(40044), + 49: uint16(40045), + 50: uint16(40046), + 51: uint16(40047), + 52: uint16(40048), + 53: uint16(40049), + 54: uint16(40050), + 55: uint16(40051), + 56: uint16(40052), + 57: uint16(40053), + 58: uint16(40054), + 59: uint16(40055), + 60: uint16(40056), + 61: uint16(40057), + 62: uint16(40058), + 63: uint16(40059), + 64: uint16(40061), + 65: uint16(40062), + 66: uint16(40064), + 67: uint16(40067), + 68: uint16(40068), + 69: uint16(40073), + 70: uint16(40074), + 71: uint16(40076), + 72: uint16(40079), + 73: uint16(40083), + 74: uint16(40086), + 75: uint16(40087), + 76: uint16(40088), + 77: uint16(40089), + 78: uint16(40093), + 79: uint16(40106), + 80: uint16(40108), + 81: uint16(40111), + 82: uint16(40121), + 83: uint16(40126), + 84: uint16(40127), + 85: uint16(40128), + 86: uint16(40129), + 87: uint16(40130), + 88: uint16(40136), + 89: uint16(40137), + 90: uint16(40145), + 91: uint16(40146), + 92: uint16(40154), + 93: uint16(40155), + 94: uint16(40160), + 95: uint16(40161), + 96: uint16(40140), + 97: uint16(40141), + 98: uint16(40142), + 99: uint16(40143), + 100: uint16(40144), + 101: uint16(40147), + 102: uint16(40148), + 103: uint16(40149), + 104: uint16(40151), + 105: uint16(40152), + 106: uint16(40153), + 107: uint16(40156), + 108: uint16(40157), + 109: uint16(40159), + 110: uint16(40162), + 111: uint16(38780), + 112: uint16(38789), + 113: uint16(38801), + 114: uint16(38802), + 115: uint16(38804), + 116: uint16(38831), + 117: uint16(38827), + 118: uint16(38819), + 119: uint16(38834), + 120: uint16(38836), + 121: uint16(39601), + 122: uint16(39600), + 123: uint16(39607), + 124: uint16(40536), + 125: uint16(39606), + 126: uint16(39610), + 127: uint16(39612), + 128: uint16(39617), + 129: uint16(39616), + 130: uint16(39621), + 131: uint16(39618), + 132: uint16(39627), + 133: uint16(39628), + 134: uint16(39633), + 135: uint16(39749), + 136: uint16(39747), + 137: uint16(39751), + 138: uint16(39753), + 139: uint16(39752), + 140: uint16(39757), + 141: uint16(39761), + 142: uint16(39144), + 143: uint16(39181), + 144: uint16(39214), + 145: uint16(39253), + 146: uint16(39252), + 147: uint16(39647), + 148: uint16(39649), + 149: uint16(39654), + 150: uint16(39663), + 151: uint16(39659), + 152: uint16(39675), + 153: uint16(39661), + 154: uint16(39673), + 155: uint16(39688), + 156: uint16(39695), + 157: uint16(39699), + 158: uint16(39711), + 159: uint16(39715), + 160: uint16(40637), + 161: uint16(40638), + 162: uint16(32315), + 163: uint16(40578), + 164: uint16(40583), + 165: uint16(40584), + 166: uint16(40587), + 167: uint16(40594), + 168: uint16(37846), + 169: uint16(40605), + 170: uint16(40607), + 171: uint16(40667), + 172: uint16(40668), + 173: uint16(40669), + 174: uint16(40672), + 175: uint16(40671), + 176: uint16(40674), + 177: uint16(40681), + 178: uint16(40679), + 179: uint16(40677), + 180: uint16(40682), + 181: uint16(40687), + 182: uint16(40738), + 183: uint16(40748), + 184: uint16(40751), + 185: uint16(40761), + 186: uint16(40759), + 187: uint16(40765), + 188: uint16(40766), + 189: uint16(40772), + }, + 119: { + 0: uint16(40163), + 1: uint16(40164), + 2: uint16(40165), + 3: uint16(40166), + 4: uint16(40167), + 5: uint16(40168), + 6: uint16(40169), + 7: uint16(40170), + 8: uint16(40171), + 9: uint16(40172), + 10: uint16(40173), + 11: uint16(40174), + 12: uint16(40175), + 13: uint16(40176), + 14: uint16(40177), + 15: uint16(40178), + 16: uint16(40179), + 17: uint16(40180), + 18: uint16(40181), + 19: uint16(40182), + 20: uint16(40183), + 21: uint16(40184), + 22: uint16(40185), + 23: uint16(40186), + 24: uint16(40187), + 25: uint16(40188), + 26: uint16(40189), + 27: uint16(40190), + 28: uint16(40191), + 29: uint16(40192), + 30: uint16(40193), + 31: uint16(40194), + 32: uint16(40195), + 33: uint16(40196), + 34: uint16(40197), + 35: uint16(40198), + 36: uint16(40199), + 37: uint16(40200), + 38: uint16(40201), + 39: uint16(40202), + 40: uint16(40203), + 41: uint16(40204), + 42: uint16(40205), + 43: uint16(40206), + 44: uint16(40207), + 45: uint16(40208), + 46: uint16(40209), + 47: uint16(40210), + 48: uint16(40211), + 49: uint16(40212), + 50: uint16(40213), + 51: uint16(40214), + 52: uint16(40215), + 53: uint16(40216), + 54: uint16(40217), + 55: uint16(40218), + 56: uint16(40219), + 57: uint16(40220), + 58: uint16(40221), + 59: uint16(40222), + 60: uint16(40223), + 61: uint16(40224), + 62: uint16(40225), + 63: uint16(40226), + 64: uint16(40227), + 65: uint16(40228), + 66: uint16(40229), + 67: uint16(40230), + 68: uint16(40231), + 69: uint16(40232), + 70: uint16(40233), + 71: uint16(40234), + 72: uint16(40235), + 73: uint16(40236), + 74: uint16(40237), + 75: uint16(40238), + 76: uint16(40239), + 77: uint16(40240), + 78: uint16(40241), + 79: uint16(40242), + 80: uint16(40243), + 81: uint16(40244), + 82: uint16(40245), + 83: uint16(40246), + 84: uint16(40247), + 85: uint16(40248), + 86: uint16(40249), + 87: uint16(40250), + 88: uint16(40251), + 89: uint16(40252), + 90: uint16(40253), + 91: uint16(40254), + 92: uint16(40255), + 93: uint16(40256), + 94: uint16(40257), + 95: uint16(40258), + 96: uint16(57908), + 97: uint16(57909), + 98: uint16(57910), + 99: uint16(57911), + 100: uint16(57912), + 101: uint16(57913), + 102: uint16(57914), + 103: uint16(57915), + 104: uint16(57916), + 105: uint16(57917), + 106: uint16(57918), + 107: uint16(57919), + 108: uint16(57920), + 109: uint16(57921), + 110: uint16(57922), + 111: uint16(57923), + 112: uint16(57924), + 113: uint16(57925), + 114: uint16(57926), + 115: uint16(57927), + 116: uint16(57928), + 117: uint16(57929), + 118: uint16(57930), + 119: uint16(57931), + 120: uint16(57932), + 121: uint16(57933), + 122: uint16(57934), + 123: uint16(57935), + 124: uint16(57936), + 125: uint16(57937), + 126: uint16(57938), + 127: uint16(57939), + 128: uint16(57940), + 129: uint16(57941), + 130: uint16(57942), + 131: uint16(57943), + 132: uint16(57944), + 133: uint16(57945), + 134: uint16(57946), + 135: uint16(57947), + 136: uint16(57948), + 137: uint16(57949), + 138: uint16(57950), + 139: uint16(57951), + 140: uint16(57952), + 141: uint16(57953), + 142: uint16(57954), + 143: uint16(57955), + 144: uint16(57956), + 145: uint16(57957), + 146: uint16(57958), + 147: uint16(57959), + 148: uint16(57960), + 149: uint16(57961), + 150: uint16(57962), + 151: uint16(57963), + 152: uint16(57964), + 153: uint16(57965), + 154: uint16(57966), + 155: uint16(57967), + 156: uint16(57968), + 157: uint16(57969), + 158: uint16(57970), + 159: uint16(57971), + 160: uint16(57972), + 161: uint16(57973), + 162: uint16(57974), + 163: uint16(57975), + 164: uint16(57976), + 165: uint16(57977), + 166: uint16(57978), + 167: uint16(57979), + 168: uint16(57980), + 169: uint16(57981), + 170: uint16(57982), + 171: uint16(57983), + 172: uint16(57984), + 173: uint16(57985), + 174: uint16(57986), + 175: uint16(57987), + 176: uint16(57988), + 177: uint16(57989), + 178: uint16(57990), + 179: uint16(57991), + 180: uint16(57992), + 181: uint16(57993), + 182: uint16(57994), + 183: uint16(57995), + 184: uint16(57996), + 185: uint16(57997), + 186: uint16(57998), + 187: uint16(57999), + 188: uint16(58000), + 189: uint16(58001), + }, + 120: { + 0: uint16(40259), + 1: uint16(40260), + 2: uint16(40261), + 3: uint16(40262), + 4: uint16(40263), + 5: uint16(40264), + 6: uint16(40265), + 7: uint16(40266), + 8: uint16(40267), + 9: uint16(40268), + 10: uint16(40269), + 11: uint16(40270), + 12: uint16(40271), + 13: uint16(40272), + 14: uint16(40273), + 15: uint16(40274), + 16: uint16(40275), + 17: uint16(40276), + 18: uint16(40277), + 19: uint16(40278), + 20: uint16(40279), + 21: uint16(40280), + 22: uint16(40281), + 23: uint16(40282), + 24: uint16(40283), + 25: uint16(40284), + 26: uint16(40285), + 27: uint16(40286), + 28: uint16(40287), + 29: uint16(40288), + 30: uint16(40289), + 31: uint16(40290), + 32: uint16(40291), + 33: uint16(40292), + 34: uint16(40293), + 35: uint16(40294), + 36: uint16(40295), + 37: uint16(40296), + 38: uint16(40297), + 39: uint16(40298), + 40: uint16(40299), + 41: uint16(40300), + 42: uint16(40301), + 43: uint16(40302), + 44: uint16(40303), + 45: uint16(40304), + 46: uint16(40305), + 47: uint16(40306), + 48: uint16(40307), + 49: uint16(40308), + 50: uint16(40309), + 51: uint16(40310), + 52: uint16(40311), + 53: uint16(40312), + 54: uint16(40313), + 55: uint16(40314), + 56: uint16(40315), + 57: uint16(40316), + 58: uint16(40317), + 59: uint16(40318), + 60: uint16(40319), + 61: uint16(40320), + 62: uint16(40321), + 63: uint16(40322), + 64: uint16(40323), + 65: uint16(40324), + 66: uint16(40325), + 67: uint16(40326), + 68: uint16(40327), + 69: uint16(40328), + 70: uint16(40329), + 71: uint16(40330), + 72: uint16(40331), + 73: uint16(40332), + 74: uint16(40333), + 75: uint16(40334), + 76: uint16(40335), + 77: uint16(40336), + 78: uint16(40337), + 79: uint16(40338), + 80: uint16(40339), + 81: uint16(40340), + 82: uint16(40341), + 83: uint16(40342), + 84: uint16(40343), + 85: uint16(40344), + 86: uint16(40345), + 87: uint16(40346), + 88: uint16(40347), + 89: uint16(40348), + 90: uint16(40349), + 91: uint16(40350), + 92: uint16(40351), + 93: uint16(40352), + 94: uint16(40353), + 95: uint16(40354), + 96: uint16(58002), + 97: uint16(58003), + 98: uint16(58004), + 99: uint16(58005), + 100: uint16(58006), + 101: uint16(58007), + 102: uint16(58008), + 103: uint16(58009), + 104: uint16(58010), + 105: uint16(58011), + 106: uint16(58012), + 107: uint16(58013), + 108: uint16(58014), + 109: uint16(58015), + 110: uint16(58016), + 111: uint16(58017), + 112: uint16(58018), + 113: uint16(58019), + 114: uint16(58020), + 115: uint16(58021), + 116: uint16(58022), + 117: uint16(58023), + 118: uint16(58024), + 119: uint16(58025), + 120: uint16(58026), + 121: uint16(58027), + 122: uint16(58028), + 123: uint16(58029), + 124: uint16(58030), + 125: uint16(58031), + 126: uint16(58032), + 127: uint16(58033), + 128: uint16(58034), + 129: uint16(58035), + 130: uint16(58036), + 131: uint16(58037), + 132: uint16(58038), + 133: uint16(58039), + 134: uint16(58040), + 135: uint16(58041), + 136: uint16(58042), + 137: uint16(58043), + 138: uint16(58044), + 139: uint16(58045), + 140: uint16(58046), + 141: uint16(58047), + 142: uint16(58048), + 143: uint16(58049), + 144: uint16(58050), + 145: uint16(58051), + 146: uint16(58052), + 147: uint16(58053), + 148: uint16(58054), + 149: uint16(58055), + 150: uint16(58056), + 151: uint16(58057), + 152: uint16(58058), + 153: uint16(58059), + 154: uint16(58060), + 155: uint16(58061), + 156: uint16(58062), + 157: uint16(58063), + 158: uint16(58064), + 159: uint16(58065), + 160: uint16(58066), + 161: uint16(58067), + 162: uint16(58068), + 163: uint16(58069), + 164: uint16(58070), + 165: uint16(58071), + 166: uint16(58072), + 167: uint16(58073), + 168: uint16(58074), + 169: uint16(58075), + 170: uint16(58076), + 171: uint16(58077), + 172: uint16(58078), + 173: uint16(58079), + 174: uint16(58080), + 175: uint16(58081), + 176: uint16(58082), + 177: uint16(58083), + 178: uint16(58084), + 179: uint16(58085), + 180: uint16(58086), + 181: uint16(58087), + 182: uint16(58088), + 183: uint16(58089), + 184: uint16(58090), + 185: uint16(58091), + 186: uint16(58092), + 187: uint16(58093), + 188: uint16(58094), + 189: uint16(58095), + }, + 121: { + 0: uint16(40355), + 1: uint16(40356), + 2: uint16(40357), + 3: uint16(40358), + 4: uint16(40359), + 5: uint16(40360), + 6: uint16(40361), + 7: uint16(40362), + 8: uint16(40363), + 9: uint16(40364), + 10: uint16(40365), + 11: uint16(40366), + 12: uint16(40367), + 13: uint16(40368), + 14: uint16(40369), + 15: uint16(40370), + 16: uint16(40371), + 17: uint16(40372), + 18: uint16(40373), + 19: uint16(40374), + 20: uint16(40375), + 21: uint16(40376), + 22: uint16(40377), + 23: uint16(40378), + 24: uint16(40379), + 25: uint16(40380), + 26: uint16(40381), + 27: uint16(40382), + 28: uint16(40383), + 29: uint16(40384), + 30: uint16(40385), + 31: uint16(40386), + 32: uint16(40387), + 33: uint16(40388), + 34: uint16(40389), + 35: uint16(40390), + 36: uint16(40391), + 37: uint16(40392), + 38: uint16(40393), + 39: uint16(40394), + 40: uint16(40395), + 41: uint16(40396), + 42: uint16(40397), + 43: uint16(40398), + 44: uint16(40399), + 45: uint16(40400), + 46: uint16(40401), + 47: uint16(40402), + 48: uint16(40403), + 49: uint16(40404), + 50: uint16(40405), + 51: uint16(40406), + 52: uint16(40407), + 53: uint16(40408), + 54: uint16(40409), + 55: uint16(40410), + 56: uint16(40411), + 57: uint16(40412), + 58: uint16(40413), + 59: uint16(40414), + 60: uint16(40415), + 61: uint16(40416), + 62: uint16(40417), + 63: uint16(40418), + 64: uint16(40419), + 65: uint16(40420), + 66: uint16(40421), + 67: uint16(40422), + 68: uint16(40423), + 69: uint16(40424), + 70: uint16(40425), + 71: uint16(40426), + 72: uint16(40427), + 73: uint16(40428), + 74: uint16(40429), + 75: uint16(40430), + 76: uint16(40431), + 77: uint16(40432), + 78: uint16(40433), + 79: uint16(40434), + 80: uint16(40435), + 81: uint16(40436), + 82: uint16(40437), + 83: uint16(40438), + 84: uint16(40439), + 85: uint16(40440), + 86: uint16(40441), + 87: uint16(40442), + 88: uint16(40443), + 89: uint16(40444), + 90: uint16(40445), + 91: uint16(40446), + 92: uint16(40447), + 93: uint16(40448), + 94: uint16(40449), + 95: uint16(40450), + 96: uint16(58096), + 97: uint16(58097), + 98: uint16(58098), + 99: uint16(58099), + 100: uint16(58100), + 101: uint16(58101), + 102: uint16(58102), + 103: uint16(58103), + 104: uint16(58104), + 105: uint16(58105), + 106: uint16(58106), + 107: uint16(58107), + 108: uint16(58108), + 109: uint16(58109), + 110: uint16(58110), + 111: uint16(58111), + 112: uint16(58112), + 113: uint16(58113), + 114: uint16(58114), + 115: uint16(58115), + 116: uint16(58116), + 117: uint16(58117), + 118: uint16(58118), + 119: uint16(58119), + 120: uint16(58120), + 121: uint16(58121), + 122: uint16(58122), + 123: uint16(58123), + 124: uint16(58124), + 125: uint16(58125), + 126: uint16(58126), + 127: uint16(58127), + 128: uint16(58128), + 129: uint16(58129), + 130: uint16(58130), + 131: uint16(58131), + 132: uint16(58132), + 133: uint16(58133), + 134: uint16(58134), + 135: uint16(58135), + 136: uint16(58136), + 137: uint16(58137), + 138: uint16(58138), + 139: uint16(58139), + 140: uint16(58140), + 141: uint16(58141), + 142: uint16(58142), + 143: uint16(58143), + 144: uint16(58144), + 145: uint16(58145), + 146: uint16(58146), + 147: uint16(58147), + 148: uint16(58148), + 149: uint16(58149), + 150: uint16(58150), + 151: uint16(58151), + 152: uint16(58152), + 153: uint16(58153), + 154: uint16(58154), + 155: uint16(58155), + 156: uint16(58156), + 157: uint16(58157), + 158: uint16(58158), + 159: uint16(58159), + 160: uint16(58160), + 161: uint16(58161), + 162: uint16(58162), + 163: uint16(58163), + 164: uint16(58164), + 165: uint16(58165), + 166: uint16(58166), + 167: uint16(58167), + 168: uint16(58168), + 169: uint16(58169), + 170: uint16(58170), + 171: uint16(58171), + 172: uint16(58172), + 173: uint16(58173), + 174: uint16(58174), + 175: uint16(58175), + 176: uint16(58176), + 177: uint16(58177), + 178: uint16(58178), + 179: uint16(58179), + 180: uint16(58180), + 181: uint16(58181), + 182: uint16(58182), + 183: uint16(58183), + 184: uint16(58184), + 185: uint16(58185), + 186: uint16(58186), + 187: uint16(58187), + 188: uint16(58188), + 189: uint16(58189), + }, + 122: { + 0: uint16(40451), + 1: uint16(40452), + 2: uint16(40453), + 3: uint16(40454), + 4: uint16(40455), + 5: uint16(40456), + 6: uint16(40457), + 7: uint16(40458), + 8: uint16(40459), + 9: uint16(40460), + 10: uint16(40461), + 11: uint16(40462), + 12: uint16(40463), + 13: uint16(40464), + 14: uint16(40465), + 15: uint16(40466), + 16: uint16(40467), + 17: uint16(40468), + 18: uint16(40469), + 19: uint16(40470), + 20: uint16(40471), + 21: uint16(40472), + 22: uint16(40473), + 23: uint16(40474), + 24: uint16(40475), + 25: uint16(40476), + 26: uint16(40477), + 27: uint16(40478), + 28: uint16(40484), + 29: uint16(40487), + 30: uint16(40494), + 31: uint16(40496), + 32: uint16(40500), + 33: uint16(40507), + 34: uint16(40508), + 35: uint16(40512), + 36: uint16(40525), + 37: uint16(40528), + 38: uint16(40530), + 39: uint16(40531), + 40: uint16(40532), + 41: uint16(40534), + 42: uint16(40537), + 43: uint16(40541), + 44: uint16(40543), + 45: uint16(40544), + 46: uint16(40545), + 47: uint16(40546), + 48: uint16(40549), + 49: uint16(40558), + 50: uint16(40559), + 51: uint16(40562), + 52: uint16(40564), + 53: uint16(40565), + 54: uint16(40566), + 55: uint16(40567), + 56: uint16(40568), + 57: uint16(40569), + 58: uint16(40570), + 59: uint16(40571), + 60: uint16(40572), + 61: uint16(40573), + 62: uint16(40576), + 63: uint16(40577), + 64: uint16(40579), + 65: uint16(40580), + 66: uint16(40581), + 67: uint16(40582), + 68: uint16(40585), + 69: uint16(40586), + 70: uint16(40588), + 71: uint16(40589), + 72: uint16(40590), + 73: uint16(40591), + 74: uint16(40592), + 75: uint16(40593), + 76: uint16(40596), + 77: uint16(40597), + 78: uint16(40598), + 79: uint16(40599), + 80: uint16(40600), + 81: uint16(40601), + 82: uint16(40602), + 83: uint16(40603), + 84: uint16(40604), + 85: uint16(40606), + 86: uint16(40608), + 87: uint16(40609), + 88: uint16(40610), + 89: uint16(40611), + 90: uint16(40612), + 91: uint16(40613), + 92: uint16(40615), + 93: uint16(40616), + 94: uint16(40617), + 95: uint16(40618), + 96: uint16(58190), + 97: uint16(58191), + 98: uint16(58192), + 99: uint16(58193), + 100: uint16(58194), + 101: uint16(58195), + 102: uint16(58196), + 103: uint16(58197), + 104: uint16(58198), + 105: uint16(58199), + 106: uint16(58200), + 107: uint16(58201), + 108: uint16(58202), + 109: uint16(58203), + 110: uint16(58204), + 111: uint16(58205), + 112: uint16(58206), + 113: uint16(58207), + 114: uint16(58208), + 115: uint16(58209), + 116: uint16(58210), + 117: uint16(58211), + 118: uint16(58212), + 119: uint16(58213), + 120: uint16(58214), + 121: uint16(58215), + 122: uint16(58216), + 123: uint16(58217), + 124: uint16(58218), + 125: uint16(58219), + 126: uint16(58220), + 127: uint16(58221), + 128: uint16(58222), + 129: uint16(58223), + 130: uint16(58224), + 131: uint16(58225), + 132: uint16(58226), + 133: uint16(58227), + 134: uint16(58228), + 135: uint16(58229), + 136: uint16(58230), + 137: uint16(58231), + 138: uint16(58232), + 139: uint16(58233), + 140: uint16(58234), + 141: uint16(58235), + 142: uint16(58236), + 143: uint16(58237), + 144: uint16(58238), + 145: uint16(58239), + 146: uint16(58240), + 147: uint16(58241), + 148: uint16(58242), + 149: uint16(58243), + 150: uint16(58244), + 151: uint16(58245), + 152: uint16(58246), + 153: uint16(58247), + 154: uint16(58248), + 155: uint16(58249), + 156: uint16(58250), + 157: uint16(58251), + 158: uint16(58252), + 159: uint16(58253), + 160: uint16(58254), + 161: uint16(58255), + 162: uint16(58256), + 163: uint16(58257), + 164: uint16(58258), + 165: uint16(58259), + 166: uint16(58260), + 167: uint16(58261), + 168: uint16(58262), + 169: uint16(58263), + 170: uint16(58264), + 171: uint16(58265), + 172: uint16(58266), + 173: uint16(58267), + 174: uint16(58268), + 175: uint16(58269), + 176: uint16(58270), + 177: uint16(58271), + 178: uint16(58272), + 179: uint16(58273), + 180: uint16(58274), + 181: uint16(58275), + 182: uint16(58276), + 183: uint16(58277), + 184: uint16(58278), + 185: uint16(58279), + 186: uint16(58280), + 187: uint16(58281), + 188: uint16(58282), + 189: uint16(58283), + }, + 123: { + 0: uint16(40619), + 1: uint16(40620), + 2: uint16(40621), + 3: uint16(40622), + 4: uint16(40623), + 5: uint16(40624), + 6: uint16(40625), + 7: uint16(40626), + 8: uint16(40627), + 9: uint16(40629), + 10: uint16(40630), + 11: uint16(40631), + 12: uint16(40633), + 13: uint16(40634), + 14: uint16(40636), + 15: uint16(40639), + 16: uint16(40640), + 17: uint16(40641), + 18: uint16(40642), + 19: uint16(40643), + 20: uint16(40645), + 21: uint16(40646), + 22: uint16(40647), + 23: uint16(40648), + 24: uint16(40650), + 25: uint16(40651), + 26: uint16(40652), + 27: uint16(40656), + 28: uint16(40658), + 29: uint16(40659), + 30: uint16(40661), + 31: uint16(40662), + 32: uint16(40663), + 33: uint16(40665), + 34: uint16(40666), + 35: uint16(40670), + 36: uint16(40673), + 37: uint16(40675), + 38: uint16(40676), + 39: uint16(40678), + 40: uint16(40680), + 41: uint16(40683), + 42: uint16(40684), + 43: uint16(40685), + 44: uint16(40686), + 45: uint16(40688), + 46: uint16(40689), + 47: uint16(40690), + 48: uint16(40691), + 49: uint16(40692), + 50: uint16(40693), + 51: uint16(40694), + 52: uint16(40695), + 53: uint16(40696), + 54: uint16(40698), + 55: uint16(40701), + 56: uint16(40703), + 57: uint16(40704), + 58: uint16(40705), + 59: uint16(40706), + 60: uint16(40707), + 61: uint16(40708), + 62: uint16(40709), + 63: uint16(40710), + 64: uint16(40711), + 65: uint16(40712), + 66: uint16(40713), + 67: uint16(40714), + 68: uint16(40716), + 69: uint16(40719), + 70: uint16(40721), + 71: uint16(40722), + 72: uint16(40724), + 73: uint16(40725), + 74: uint16(40726), + 75: uint16(40728), + 76: uint16(40730), + 77: uint16(40731), + 78: uint16(40732), + 79: uint16(40733), + 80: uint16(40734), + 81: uint16(40735), + 82: uint16(40737), + 83: uint16(40739), + 84: uint16(40740), + 85: uint16(40741), + 86: uint16(40742), + 87: uint16(40743), + 88: uint16(40744), + 89: uint16(40745), + 90: uint16(40746), + 91: uint16(40747), + 92: uint16(40749), + 93: uint16(40750), + 94: uint16(40752), + 95: uint16(40753), + 96: uint16(58284), + 97: uint16(58285), + 98: uint16(58286), + 99: uint16(58287), + 100: uint16(58288), + 101: uint16(58289), + 102: uint16(58290), + 103: uint16(58291), + 104: uint16(58292), + 105: uint16(58293), + 106: uint16(58294), + 107: uint16(58295), + 108: uint16(58296), + 109: uint16(58297), + 110: uint16(58298), + 111: uint16(58299), + 112: uint16(58300), + 113: uint16(58301), + 114: uint16(58302), + 115: uint16(58303), + 116: uint16(58304), + 117: uint16(58305), + 118: uint16(58306), + 119: uint16(58307), + 120: uint16(58308), + 121: uint16(58309), + 122: uint16(58310), + 123: uint16(58311), + 124: uint16(58312), + 125: uint16(58313), + 126: uint16(58314), + 127: uint16(58315), + 128: uint16(58316), + 129: uint16(58317), + 130: uint16(58318), + 131: uint16(58319), + 132: uint16(58320), + 133: uint16(58321), + 134: uint16(58322), + 135: uint16(58323), + 136: uint16(58324), + 137: uint16(58325), + 138: uint16(58326), + 139: uint16(58327), + 140: uint16(58328), + 141: uint16(58329), + 142: uint16(58330), + 143: uint16(58331), + 144: uint16(58332), + 145: uint16(58333), + 146: uint16(58334), + 147: uint16(58335), + 148: uint16(58336), + 149: uint16(58337), + 150: uint16(58338), + 151: uint16(58339), + 152: uint16(58340), + 153: uint16(58341), + 154: uint16(58342), + 155: uint16(58343), + 156: uint16(58344), + 157: uint16(58345), + 158: uint16(58346), + 159: uint16(58347), + 160: uint16(58348), + 161: uint16(58349), + 162: uint16(58350), + 163: uint16(58351), + 164: uint16(58352), + 165: uint16(58353), + 166: uint16(58354), + 167: uint16(58355), + 168: uint16(58356), + 169: uint16(58357), + 170: uint16(58358), + 171: uint16(58359), + 172: uint16(58360), + 173: uint16(58361), + 174: uint16(58362), + 175: uint16(58363), + 176: uint16(58364), + 177: uint16(58365), + 178: uint16(58366), + 179: uint16(58367), + 180: uint16(58368), + 181: uint16(58369), + 182: uint16(58370), + 183: uint16(58371), + 184: uint16(58372), + 185: uint16(58373), + 186: uint16(58374), + 187: uint16(58375), + 188: uint16(58376), + 189: uint16(58377), + }, + 124: { + 0: uint16(40754), + 1: uint16(40755), + 2: uint16(40756), + 3: uint16(40757), + 4: uint16(40758), + 5: uint16(40760), + 6: uint16(40762), + 7: uint16(40764), + 8: uint16(40767), + 9: uint16(40768), + 10: uint16(40769), + 11: uint16(40770), + 12: uint16(40771), + 13: uint16(40773), + 14: uint16(40774), + 15: uint16(40775), + 16: uint16(40776), + 17: uint16(40777), + 18: uint16(40778), + 19: uint16(40779), + 20: uint16(40780), + 21: uint16(40781), + 22: uint16(40782), + 23: uint16(40783), + 24: uint16(40786), + 25: uint16(40787), + 26: uint16(40788), + 27: uint16(40789), + 28: uint16(40790), + 29: uint16(40791), + 30: uint16(40792), + 31: uint16(40793), + 32: uint16(40794), + 33: uint16(40795), + 34: uint16(40796), + 35: uint16(40797), + 36: uint16(40798), + 37: uint16(40799), + 38: uint16(40800), + 39: uint16(40801), + 40: uint16(40802), + 41: uint16(40803), + 42: uint16(40804), + 43: uint16(40805), + 44: uint16(40806), + 45: uint16(40807), + 46: uint16(40808), + 47: uint16(40809), + 48: uint16(40810), + 49: uint16(40811), + 50: uint16(40812), + 51: uint16(40813), + 52: uint16(40814), + 53: uint16(40815), + 54: uint16(40816), + 55: uint16(40817), + 56: uint16(40818), + 57: uint16(40819), + 58: uint16(40820), + 59: uint16(40821), + 60: uint16(40822), + 61: uint16(40823), + 62: uint16(40824), + 63: uint16(40825), + 64: uint16(40826), + 65: uint16(40827), + 66: uint16(40828), + 67: uint16(40829), + 68: uint16(40830), + 69: uint16(40833), + 70: uint16(40834), + 71: uint16(40845), + 72: uint16(40846), + 73: uint16(40847), + 74: uint16(40848), + 75: uint16(40849), + 76: uint16(40850), + 77: uint16(40851), + 78: uint16(40852), + 79: uint16(40853), + 80: uint16(40854), + 81: uint16(40855), + 82: uint16(40856), + 83: uint16(40860), + 84: uint16(40861), + 85: uint16(40862), + 86: uint16(40865), + 87: uint16(40866), + 88: uint16(40867), + 89: uint16(40868), + 90: uint16(40869), + 91: uint16(63788), + 92: uint16(63865), + 93: uint16(63893), + 94: uint16(63975), + 95: uint16(63985), + 96: uint16(58378), + 97: uint16(58379), + 98: uint16(58380), + 99: uint16(58381), + 100: uint16(58382), + 101: uint16(58383), + 102: uint16(58384), + 103: uint16(58385), + 104: uint16(58386), + 105: uint16(58387), + 106: uint16(58388), + 107: uint16(58389), + 108: uint16(58390), + 109: uint16(58391), + 110: uint16(58392), + 111: uint16(58393), + 112: uint16(58394), + 113: uint16(58395), + 114: uint16(58396), + 115: uint16(58397), + 116: uint16(58398), + 117: uint16(58399), + 118: uint16(58400), + 119: uint16(58401), + 120: uint16(58402), + 121: uint16(58403), + 122: uint16(58404), + 123: uint16(58405), + 124: uint16(58406), + 125: uint16(58407), + 126: uint16(58408), + 127: uint16(58409), + 128: uint16(58410), + 129: uint16(58411), + 130: uint16(58412), + 131: uint16(58413), + 132: uint16(58414), + 133: uint16(58415), + 134: uint16(58416), + 135: uint16(58417), + 136: uint16(58418), + 137: uint16(58419), + 138: uint16(58420), + 139: uint16(58421), + 140: uint16(58422), + 141: uint16(58423), + 142: uint16(58424), + 143: uint16(58425), + 144: uint16(58426), + 145: uint16(58427), + 146: uint16(58428), + 147: uint16(58429), + 148: uint16(58430), + 149: uint16(58431), + 150: uint16(58432), + 151: uint16(58433), + 152: uint16(58434), + 153: uint16(58435), + 154: uint16(58436), + 155: uint16(58437), + 156: uint16(58438), + 157: uint16(58439), + 158: uint16(58440), + 159: uint16(58441), + 160: uint16(58442), + 161: uint16(58443), + 162: uint16(58444), + 163: uint16(58445), + 164: uint16(58446), + 165: uint16(58447), + 166: uint16(58448), + 167: uint16(58449), + 168: uint16(58450), + 169: uint16(58451), + 170: uint16(58452), + 171: uint16(58453), + 172: uint16(58454), + 173: uint16(58455), + 174: uint16(58456), + 175: uint16(58457), + 176: uint16(58458), + 177: uint16(58459), + 178: uint16(58460), + 179: uint16(58461), + 180: uint16(58462), + 181: uint16(58463), + 182: uint16(58464), + 183: uint16(58465), + 184: uint16(58466), + 185: uint16(58467), + 186: uint16(58468), + 187: uint16(58469), + 188: uint16(58470), + 189: uint16(58471), + }, + 125: { + 0: uint16(64012), + 1: uint16(64013), + 2: uint16(64014), + 3: uint16(64015), + 4: uint16(64017), + 5: uint16(64019), + 6: uint16(64020), + 7: uint16(64024), + 8: uint16(64031), + 9: uint16(64032), + 10: uint16(64033), + 11: uint16(64035), + 12: uint16(64036), + 13: uint16(64039), + 14: uint16(64040), + 15: uint16(64041), + 16: uint16(11905), + 17: uint16(59414), + 18: uint16(59415), + 19: uint16(59416), + 20: uint16(11908), + 21: uint16(13427), + 22: uint16(13383), + 23: uint16(11912), + 24: uint16(11915), + 25: uint16(59422), + 26: uint16(13726), + 27: uint16(13850), + 28: uint16(13838), + 29: uint16(11916), + 30: uint16(11927), + 31: uint16(14702), + 32: uint16(14616), + 33: uint16(59430), + 34: uint16(14799), + 35: uint16(14815), + 36: uint16(14963), + 37: uint16(14800), + 38: uint16(59435), + 39: uint16(59436), + 40: uint16(15182), + 41: uint16(15470), + 42: uint16(15584), + 43: uint16(11943), + 44: uint16(59441), + 45: uint16(59442), + 46: uint16(11946), + 47: uint16(16470), + 48: uint16(16735), + 49: uint16(11950), + 50: uint16(17207), + 51: uint16(11955), + 52: uint16(11958), + 53: uint16(11959), + 54: uint16(59451), + 55: uint16(17329), + 56: uint16(17324), + 57: uint16(11963), + 58: uint16(17373), + 59: uint16(17622), + 60: uint16(18017), + 61: uint16(17996), + 62: uint16(59459), + 63: uint16(18211), + 64: uint16(18217), + 65: uint16(18300), + 66: uint16(18317), + 67: uint16(11978), + 68: uint16(18759), + 69: uint16(18810), + 70: uint16(18813), + 71: uint16(18818), + 72: uint16(18819), + 73: uint16(18821), + 74: uint16(18822), + 75: uint16(18847), + 76: uint16(18843), + 77: uint16(18871), + 78: uint16(18870), + 79: uint16(59476), + 80: uint16(59477), + 81: uint16(19619), + 82: uint16(19615), + 83: uint16(19616), + 84: uint16(19617), + 85: uint16(19575), + 86: uint16(19618), + 87: uint16(19731), + 88: uint16(19732), + 89: uint16(19733), + 90: uint16(19734), + 91: uint16(19735), + 92: uint16(19736), + 93: uint16(19737), + 94: uint16(19886), + 95: uint16(59492), + 96: uint16(58472), + 97: uint16(58473), + 98: uint16(58474), + 99: uint16(58475), + 100: uint16(58476), + 101: uint16(58477), + 102: uint16(58478), + 103: uint16(58479), + 104: uint16(58480), + 105: uint16(58481), + 106: uint16(58482), + 107: uint16(58483), + 108: uint16(58484), + 109: uint16(58485), + 110: uint16(58486), + 111: uint16(58487), + 112: uint16(58488), + 113: uint16(58489), + 114: uint16(58490), + 115: uint16(58491), + 116: uint16(58492), + 117: uint16(58493), + 118: uint16(58494), + 119: uint16(58495), + 120: uint16(58496), + 121: uint16(58497), + 122: uint16(58498), + 123: uint16(58499), + 124: uint16(58500), + 125: uint16(58501), + 126: uint16(58502), + 127: uint16(58503), + 128: uint16(58504), + 129: uint16(58505), + 130: uint16(58506), + 131: uint16(58507), + 132: uint16(58508), + 133: uint16(58509), + 134: uint16(58510), + 135: uint16(58511), + 136: uint16(58512), + 137: uint16(58513), + 138: uint16(58514), + 139: uint16(58515), + 140: uint16(58516), + 141: uint16(58517), + 142: uint16(58518), + 143: uint16(58519), + 144: uint16(58520), + 145: uint16(58521), + 146: uint16(58522), + 147: uint16(58523), + 148: uint16(58524), + 149: uint16(58525), + 150: uint16(58526), + 151: uint16(58527), + 152: uint16(58528), + 153: uint16(58529), + 154: uint16(58530), + 155: uint16(58531), + 156: uint16(58532), + 157: uint16(58533), + 158: uint16(58534), + 159: uint16(58535), + 160: uint16(58536), + 161: uint16(58537), + 162: uint16(58538), + 163: uint16(58539), + 164: uint16(58540), + 165: uint16(58541), + 166: uint16(58542), + 167: uint16(58543), + 168: uint16(58544), + 169: uint16(58545), + 170: uint16(58546), + 171: uint16(58547), + 172: uint16(58548), + 173: uint16(58549), + 174: uint16(58550), + 175: uint16(58551), + 176: uint16(58552), + 177: uint16(58553), + 178: uint16(58554), + 179: uint16(58555), + 180: uint16(58556), + 181: uint16(58557), + 182: uint16(58558), + 183: uint16(58559), + 184: uint16(58560), + 185: uint16(58561), + 186: uint16(58562), + 187: uint16(58563), + 188: uint16(58564), + 189: uint16(58565), + }, +} + +var _big5 = [89][157]uint16{ + 0: { + 0: uint16(12288), + 1: uint16(65292), + 2: uint16(12289), + 3: uint16(12290), + 4: uint16(65294), + 5: uint16(8231), + 6: uint16(65307), + 7: uint16(65306), + 8: uint16(65311), + 9: uint16(65281), + 10: uint16(65072), + 11: uint16(8230), + 12: uint16(8229), + 13: uint16(65104), + 14: uint16(65105), + 15: uint16(65106), + 16: uint16(183), + 17: uint16(65108), + 18: uint16(65109), + 19: uint16(65110), + 20: uint16(65111), + 21: uint16(65372), + 22: uint16(8211), + 23: uint16(65073), + 24: uint16(8212), + 25: uint16(65075), + 26: uint16(9588), + 27: uint16(65076), + 28: uint16(65103), + 29: uint16(65288), + 30: uint16(65289), + 31: uint16(65077), + 32: uint16(65078), + 33: uint16(65371), + 34: uint16(65373), + 35: uint16(65079), + 36: uint16(65080), + 37: uint16(12308), + 38: uint16(12309), + 39: uint16(65081), + 40: uint16(65082), + 41: uint16(12304), + 42: uint16(12305), + 43: uint16(65083), + 44: uint16(65084), + 45: uint16(12298), + 46: uint16(12299), + 47: uint16(65085), + 48: uint16(65086), + 49: uint16(12296), + 50: uint16(12297), + 51: uint16(65087), + 52: uint16(65088), + 53: uint16(12300), + 54: uint16(12301), + 55: uint16(65089), + 56: uint16(65090), + 57: uint16(12302), + 58: uint16(12303), + 59: uint16(65091), + 60: uint16(65092), + 61: uint16(65113), + 62: uint16(65114), + 63: uint16(65115), + 64: uint16(65116), + 65: uint16(65117), + 66: uint16(65118), + 67: uint16(8216), + 68: uint16(8217), + 69: uint16(8220), + 70: uint16(8221), + 71: uint16(12317), + 72: uint16(12318), + 73: uint16(8245), + 74: uint16(8242), + 75: uint16(65283), + 76: uint16(65286), + 77: uint16(65290), + 78: uint16(8251), + 79: uint16(167), + 80: uint16(12291), + 81: uint16(9675), + 82: uint16(9679), + 83: uint16(9651), + 84: uint16(9650), + 85: uint16(9678), + 86: uint16(9734), + 87: uint16(9733), + 88: uint16(9671), + 89: uint16(9670), + 90: uint16(9633), + 91: uint16(9632), + 92: uint16(9661), + 93: uint16(9660), + 94: uint16(12963), + 95: uint16(8453), + 96: uint16(175), + 97: uint16(65507), + 98: uint16(65343), + 99: uint16(717), + 100: uint16(65097), + 101: uint16(65098), + 102: uint16(65101), + 103: uint16(65102), + 104: uint16(65099), + 105: uint16(65100), + 106: uint16(65119), + 107: uint16(65120), + 108: uint16(65121), + 109: uint16(65291), + 110: uint16(65293), + 111: uint16(215), + 112: uint16(247), + 113: uint16(177), + 114: uint16(8730), + 115: uint16(65308), + 116: uint16(65310), + 117: uint16(65309), + 118: uint16(8806), + 119: uint16(8807), + 120: uint16(8800), + 121: uint16(8734), + 122: uint16(8786), + 123: uint16(8801), + 124: uint16(65122), + 125: uint16(65123), + 126: uint16(65124), + 127: uint16(65125), + 128: uint16(65126), + 129: uint16(65374), + 130: uint16(8745), + 131: uint16(8746), + 132: uint16(8869), + 133: uint16(8736), + 134: uint16(8735), + 135: uint16(8895), + 136: uint16(13266), + 137: uint16(13265), + 138: uint16(8747), + 139: uint16(8750), + 140: uint16(8757), + 141: uint16(8756), + 142: uint16(9792), + 143: uint16(9794), + 144: uint16(8853), + 145: uint16(8857), + 146: uint16(8593), + 147: uint16(8595), + 148: uint16(8592), + 149: uint16(8594), + 150: uint16(8598), + 151: uint16(8599), + 152: uint16(8601), + 153: uint16(8600), + 154: uint16(8741), + 155: uint16(8739), + 156: uint16(65295), + }, + 1: { + 0: uint16(65340), + 1: uint16(8725), + 2: uint16(65128), + 3: uint16(65284), + 4: uint16(65509), + 5: uint16(12306), + 6: uint16(65504), + 7: uint16(65505), + 8: uint16(65285), + 9: uint16(65312), + 10: uint16(8451), + 11: uint16(8457), + 12: uint16(65129), + 13: uint16(65130), + 14: uint16(65131), + 15: uint16(13269), + 16: uint16(13212), + 17: uint16(13213), + 18: uint16(13214), + 19: uint16(13262), + 20: uint16(13217), + 21: uint16(13198), + 22: uint16(13199), + 23: uint16(13252), + 24: uint16(176), + 25: uint16(20825), + 26: uint16(20827), + 27: uint16(20830), + 28: uint16(20829), + 29: uint16(20833), + 30: uint16(20835), + 31: uint16(21991), + 32: uint16(29929), + 33: uint16(31950), + 34: uint16(9601), + 35: uint16(9602), + 36: uint16(9603), + 37: uint16(9604), + 38: uint16(9605), + 39: uint16(9606), + 40: uint16(9607), + 41: uint16(9608), + 42: uint16(9615), + 43: uint16(9614), + 44: uint16(9613), + 45: uint16(9612), + 46: uint16(9611), + 47: uint16(9610), + 48: uint16(9609), + 49: uint16(9532), + 50: uint16(9524), + 51: uint16(9516), + 52: uint16(9508), + 53: uint16(9500), + 54: uint16(9620), + 55: uint16(9472), + 56: uint16(9474), + 57: uint16(9621), + 58: uint16(9484), + 59: uint16(9488), + 60: uint16(9492), + 61: uint16(9496), + 62: uint16(9581), + 63: uint16(9582), + 64: uint16(9584), + 65: uint16(9583), + 66: uint16(9552), + 67: uint16(9566), + 68: uint16(9578), + 69: uint16(9569), + 70: uint16(9698), + 71: uint16(9699), + 72: uint16(9701), + 73: uint16(9700), + 74: uint16(9585), + 75: uint16(9586), + 76: uint16(9587), + 77: uint16(65296), + 78: uint16(65297), + 79: uint16(65298), + 80: uint16(65299), + 81: uint16(65300), + 82: uint16(65301), + 83: uint16(65302), + 84: uint16(65303), + 85: uint16(65304), + 86: uint16(65305), + 87: uint16(8544), + 88: uint16(8545), + 89: uint16(8546), + 90: uint16(8547), + 91: uint16(8548), + 92: uint16(8549), + 93: uint16(8550), + 94: uint16(8551), + 95: uint16(8552), + 96: uint16(8553), + 97: uint16(12321), + 98: uint16(12322), + 99: uint16(12323), + 100: uint16(12324), + 101: uint16(12325), + 102: uint16(12326), + 103: uint16(12327), + 104: uint16(12328), + 105: uint16(12329), + 106: uint16(21313), + 107: uint16(21316), + 108: uint16(21317), + 109: uint16(65313), + 110: uint16(65314), + 111: uint16(65315), + 112: uint16(65316), + 113: uint16(65317), + 114: uint16(65318), + 115: uint16(65319), + 116: uint16(65320), + 117: uint16(65321), + 118: uint16(65322), + 119: uint16(65323), + 120: uint16(65324), + 121: uint16(65325), + 122: uint16(65326), + 123: uint16(65327), + 124: uint16(65328), + 125: uint16(65329), + 126: uint16(65330), + 127: uint16(65331), + 128: uint16(65332), + 129: uint16(65333), + 130: uint16(65334), + 131: uint16(65335), + 132: uint16(65336), + 133: uint16(65337), + 134: uint16(65338), + 135: uint16(65345), + 136: uint16(65346), + 137: uint16(65347), + 138: uint16(65348), + 139: uint16(65349), + 140: uint16(65350), + 141: uint16(65351), + 142: uint16(65352), + 143: uint16(65353), + 144: uint16(65354), + 145: uint16(65355), + 146: uint16(65356), + 147: uint16(65357), + 148: uint16(65358), + 149: uint16(65359), + 150: uint16(65360), + 151: uint16(65361), + 152: uint16(65362), + 153: uint16(65363), + 154: uint16(65364), + 155: uint16(65365), + 156: uint16(65366), + }, + 2: { + 0: uint16(65367), + 1: uint16(65368), + 2: uint16(65369), + 3: uint16(65370), + 4: uint16(913), + 5: uint16(914), + 6: uint16(915), + 7: uint16(916), + 8: uint16(917), + 9: uint16(918), + 10: uint16(919), + 11: uint16(920), + 12: uint16(921), + 13: uint16(922), + 14: uint16(923), + 15: uint16(924), + 16: uint16(925), + 17: uint16(926), + 18: uint16(927), + 19: uint16(928), + 20: uint16(929), + 21: uint16(931), + 22: uint16(932), + 23: uint16(933), + 24: uint16(934), + 25: uint16(935), + 26: uint16(936), + 27: uint16(937), + 28: uint16(945), + 29: uint16(946), + 30: uint16(947), + 31: uint16(948), + 32: uint16(949), + 33: uint16(950), + 34: uint16(951), + 35: uint16(952), + 36: uint16(953), + 37: uint16(954), + 38: uint16(955), + 39: uint16(956), + 40: uint16(957), + 41: uint16(958), + 42: uint16(959), + 43: uint16(960), + 44: uint16(961), + 45: uint16(963), + 46: uint16(964), + 47: uint16(965), + 48: uint16(966), + 49: uint16(967), + 50: uint16(968), + 51: uint16(969), + 52: uint16(12549), + 53: uint16(12550), + 54: uint16(12551), + 55: uint16(12552), + 56: uint16(12553), + 57: uint16(12554), + 58: uint16(12555), + 59: uint16(12556), + 60: uint16(12557), + 61: uint16(12558), + 62: uint16(12559), + 63: uint16(12560), + 64: uint16(12561), + 65: uint16(12562), + 66: uint16(12563), + 67: uint16(12564), + 68: uint16(12565), + 69: uint16(12566), + 70: uint16(12567), + 71: uint16(12568), + 72: uint16(12569), + 73: uint16(12570), + 74: uint16(12571), + 75: uint16(12572), + 76: uint16(12573), + 77: uint16(12574), + 78: uint16(12575), + 79: uint16(12576), + 80: uint16(12577), + 81: uint16(12578), + 82: uint16(12579), + 83: uint16(12580), + 84: uint16(12581), + 85: uint16(12582), + 86: uint16(12583), + 87: uint16(12584), + 88: uint16(12585), + 89: uint16(729), + 90: uint16(713), + 91: uint16(714), + 92: uint16(711), + 93: uint16(715), + 94: uint16(9216), + 95: uint16(9217), + 96: uint16(9218), + 97: uint16(9219), + 98: uint16(9220), + 99: uint16(9221), + 100: uint16(9222), + 101: uint16(9223), + 102: uint16(9224), + 103: uint16(9225), + 104: uint16(9226), + 105: uint16(9227), + 106: uint16(9228), + 107: uint16(9229), + 108: uint16(9230), + 109: uint16(9231), + 110: uint16(9232), + 111: uint16(9233), + 112: uint16(9234), + 113: uint16(9235), + 114: uint16(9236), + 115: uint16(9237), + 116: uint16(9238), + 117: uint16(9239), + 118: uint16(9240), + 119: uint16(9241), + 120: uint16(9242), + 121: uint16(9243), + 122: uint16(9244), + 123: uint16(9245), + 124: uint16(9246), + 125: uint16(9247), + 126: uint16(9249), + 127: uint16(8364), + }, + 3: { + 0: uint16(19968), + 1: uint16(20057), + 2: uint16(19969), + 3: uint16(19971), + 4: uint16(20035), + 5: uint16(20061), + 6: uint16(20102), + 7: uint16(20108), + 8: uint16(20154), + 9: uint16(20799), + 10: uint16(20837), + 11: uint16(20843), + 12: uint16(20960), + 13: uint16(20992), + 14: uint16(20993), + 15: uint16(21147), + 16: uint16(21269), + 17: uint16(21313), + 18: uint16(21340), + 19: uint16(21448), + 20: uint16(19977), + 21: uint16(19979), + 22: uint16(19976), + 23: uint16(19978), + 24: uint16(20011), + 25: uint16(20024), + 26: uint16(20961), + 27: uint16(20037), + 28: uint16(20040), + 29: uint16(20063), + 30: uint16(20062), + 31: uint16(20110), + 32: uint16(20129), + 33: uint16(20800), + 34: uint16(20995), + 35: uint16(21242), + 36: uint16(21315), + 37: uint16(21449), + 38: uint16(21475), + 39: uint16(22303), + 40: uint16(22763), + 41: uint16(22805), + 42: uint16(22823), + 43: uint16(22899), + 44: uint16(23376), + 45: uint16(23377), + 46: uint16(23379), + 47: uint16(23544), + 48: uint16(23567), + 49: uint16(23586), + 50: uint16(23608), + 51: uint16(23665), + 52: uint16(24029), + 53: uint16(24037), + 54: uint16(24049), + 55: uint16(24050), + 56: uint16(24051), + 57: uint16(24062), + 58: uint16(24178), + 59: uint16(24318), + 60: uint16(24331), + 61: uint16(24339), + 62: uint16(25165), + 63: uint16(19985), + 64: uint16(19984), + 65: uint16(19981), + 66: uint16(20013), + 67: uint16(20016), + 68: uint16(20025), + 69: uint16(20043), + 70: uint16(23609), + 71: uint16(20104), + 72: uint16(20113), + 73: uint16(20117), + 74: uint16(20114), + 75: uint16(20116), + 76: uint16(20130), + 77: uint16(20161), + 78: uint16(20160), + 79: uint16(20163), + 80: uint16(20166), + 81: uint16(20167), + 82: uint16(20173), + 83: uint16(20170), + 84: uint16(20171), + 85: uint16(20164), + 86: uint16(20803), + 87: uint16(20801), + 88: uint16(20839), + 89: uint16(20845), + 90: uint16(20846), + 91: uint16(20844), + 92: uint16(20887), + 93: uint16(20982), + 94: uint16(20998), + 95: uint16(20999), + 96: uint16(21000), + 97: uint16(21243), + 98: uint16(21246), + 99: uint16(21247), + 100: uint16(21270), + 101: uint16(21305), + 102: uint16(21320), + 103: uint16(21319), + 104: uint16(21317), + 105: uint16(21342), + 106: uint16(21380), + 107: uint16(21451), + 108: uint16(21450), + 109: uint16(21453), + 110: uint16(22764), + 111: uint16(22825), + 112: uint16(22827), + 113: uint16(22826), + 114: uint16(22829), + 115: uint16(23380), + 116: uint16(23569), + 117: uint16(23588), + 118: uint16(23610), + 119: uint16(23663), + 120: uint16(24052), + 121: uint16(24187), + 122: uint16(24319), + 123: uint16(24340), + 124: uint16(24341), + 125: uint16(24515), + 126: uint16(25096), + 127: uint16(25142), + 128: uint16(25163), + 129: uint16(25166), + 130: uint16(25903), + 131: uint16(25991), + 132: uint16(26007), + 133: uint16(26020), + 134: uint16(26041), + 135: uint16(26085), + 136: uint16(26352), + 137: uint16(26376), + 138: uint16(26408), + 139: uint16(27424), + 140: uint16(27490), + 141: uint16(27513), + 142: uint16(27595), + 143: uint16(27604), + 144: uint16(27611), + 145: uint16(27663), + 146: uint16(27700), + 147: uint16(28779), + 148: uint16(29226), + 149: uint16(29238), + 150: uint16(29243), + 151: uint16(29255), + 152: uint16(29273), + 153: uint16(29275), + 154: uint16(29356), + 155: uint16(29579), + 156: uint16(19993), + }, + 4: { + 0: uint16(19990), + 1: uint16(19989), + 2: uint16(19988), + 3: uint16(19992), + 4: uint16(20027), + 5: uint16(20045), + 6: uint16(20047), + 7: uint16(20046), + 8: uint16(20197), + 9: uint16(20184), + 10: uint16(20180), + 11: uint16(20181), + 12: uint16(20182), + 13: uint16(20183), + 14: uint16(20195), + 15: uint16(20196), + 16: uint16(20185), + 17: uint16(20190), + 18: uint16(20805), + 19: uint16(20804), + 20: uint16(20873), + 21: uint16(20874), + 22: uint16(20908), + 23: uint16(20985), + 24: uint16(20986), + 25: uint16(20984), + 26: uint16(21002), + 27: uint16(21152), + 28: uint16(21151), + 29: uint16(21253), + 30: uint16(21254), + 31: uint16(21271), + 32: uint16(21277), + 33: uint16(20191), + 34: uint16(21322), + 35: uint16(21321), + 36: uint16(21345), + 37: uint16(21344), + 38: uint16(21359), + 39: uint16(21358), + 40: uint16(21435), + 41: uint16(21487), + 42: uint16(21476), + 43: uint16(21491), + 44: uint16(21484), + 45: uint16(21486), + 46: uint16(21481), + 47: uint16(21480), + 48: uint16(21500), + 49: uint16(21496), + 50: uint16(21493), + 51: uint16(21483), + 52: uint16(21478), + 53: uint16(21482), + 54: uint16(21490), + 55: uint16(21489), + 56: uint16(21488), + 57: uint16(21477), + 58: uint16(21485), + 59: uint16(21499), + 60: uint16(22235), + 61: uint16(22234), + 62: uint16(22806), + 63: uint16(22830), + 64: uint16(22833), + 65: uint16(22900), + 66: uint16(22902), + 67: uint16(23381), + 68: uint16(23427), + 69: uint16(23612), + 70: uint16(24040), + 71: uint16(24039), + 72: uint16(24038), + 73: uint16(24066), + 74: uint16(24067), + 75: uint16(24179), + 76: uint16(24188), + 77: uint16(24321), + 78: uint16(24344), + 79: uint16(24343), + 80: uint16(24517), + 81: uint16(25098), + 82: uint16(25171), + 83: uint16(25172), + 84: uint16(25170), + 85: uint16(25169), + 86: uint16(26021), + 87: uint16(26086), + 88: uint16(26414), + 89: uint16(26412), + 90: uint16(26410), + 91: uint16(26411), + 92: uint16(26413), + 93: uint16(27491), + 94: uint16(27597), + 95: uint16(27665), + 96: uint16(27664), + 97: uint16(27704), + 98: uint16(27713), + 99: uint16(27712), + 100: uint16(27710), + 101: uint16(29359), + 102: uint16(29572), + 103: uint16(29577), + 104: uint16(29916), + 105: uint16(29926), + 106: uint16(29976), + 107: uint16(29983), + 108: uint16(29992), + 109: uint16(29993), + 110: uint16(30000), + 111: uint16(30001), + 112: uint16(30002), + 113: uint16(30003), + 114: uint16(30091), + 115: uint16(30333), + 116: uint16(30382), + 117: uint16(30399), + 118: uint16(30446), + 119: uint16(30683), + 120: uint16(30690), + 121: uint16(30707), + 122: uint16(31034), + 123: uint16(31166), + 124: uint16(31348), + 125: uint16(31435), + 126: uint16(19998), + 127: uint16(19999), + 128: uint16(20050), + 129: uint16(20051), + 130: uint16(20073), + 131: uint16(20121), + 132: uint16(20132), + 133: uint16(20134), + 134: uint16(20133), + 135: uint16(20223), + 136: uint16(20233), + 137: uint16(20249), + 138: uint16(20234), + 139: uint16(20245), + 140: uint16(20237), + 141: uint16(20240), + 142: uint16(20241), + 143: uint16(20239), + 144: uint16(20210), + 145: uint16(20214), + 146: uint16(20219), + 147: uint16(20208), + 148: uint16(20211), + 149: uint16(20221), + 150: uint16(20225), + 151: uint16(20235), + 152: uint16(20809), + 153: uint16(20807), + 154: uint16(20806), + 155: uint16(20808), + 156: uint16(20840), + }, + 5: { + 0: uint16(20849), + 1: uint16(20877), + 2: uint16(20912), + 3: uint16(21015), + 4: uint16(21009), + 5: uint16(21010), + 6: uint16(21006), + 7: uint16(21014), + 8: uint16(21155), + 9: uint16(21256), + 10: uint16(21281), + 11: uint16(21280), + 12: uint16(21360), + 13: uint16(21361), + 14: uint16(21513), + 15: uint16(21519), + 16: uint16(21516), + 17: uint16(21514), + 18: uint16(21520), + 19: uint16(21505), + 20: uint16(21515), + 21: uint16(21508), + 22: uint16(21521), + 23: uint16(21517), + 24: uint16(21512), + 25: uint16(21507), + 26: uint16(21518), + 27: uint16(21510), + 28: uint16(21522), + 29: uint16(22240), + 30: uint16(22238), + 31: uint16(22237), + 32: uint16(22323), + 33: uint16(22320), + 34: uint16(22312), + 35: uint16(22317), + 36: uint16(22316), + 37: uint16(22319), + 38: uint16(22313), + 39: uint16(22809), + 40: uint16(22810), + 41: uint16(22839), + 42: uint16(22840), + 43: uint16(22916), + 44: uint16(22904), + 45: uint16(22915), + 46: uint16(22909), + 47: uint16(22905), + 48: uint16(22914), + 49: uint16(22913), + 50: uint16(23383), + 51: uint16(23384), + 52: uint16(23431), + 53: uint16(23432), + 54: uint16(23429), + 55: uint16(23433), + 56: uint16(23546), + 57: uint16(23574), + 58: uint16(23673), + 59: uint16(24030), + 60: uint16(24070), + 61: uint16(24182), + 62: uint16(24180), + 63: uint16(24335), + 64: uint16(24347), + 65: uint16(24537), + 66: uint16(24534), + 67: uint16(25102), + 68: uint16(25100), + 69: uint16(25101), + 70: uint16(25104), + 71: uint16(25187), + 72: uint16(25179), + 73: uint16(25176), + 74: uint16(25910), + 75: uint16(26089), + 76: uint16(26088), + 77: uint16(26092), + 78: uint16(26093), + 79: uint16(26354), + 80: uint16(26355), + 81: uint16(26377), + 82: uint16(26429), + 83: uint16(26420), + 84: uint16(26417), + 85: uint16(26421), + 86: uint16(27425), + 87: uint16(27492), + 88: uint16(27515), + 89: uint16(27670), + 90: uint16(27741), + 91: uint16(27735), + 92: uint16(27737), + 93: uint16(27743), + 94: uint16(27744), + 95: uint16(27728), + 96: uint16(27733), + 97: uint16(27745), + 98: uint16(27739), + 99: uint16(27725), + 100: uint16(27726), + 101: uint16(28784), + 102: uint16(29279), + 103: uint16(29277), + 104: uint16(30334), + 105: uint16(31481), + 106: uint16(31859), + 107: uint16(31992), + 108: uint16(32566), + 109: uint16(32650), + 110: uint16(32701), + 111: uint16(32769), + 112: uint16(32771), + 113: uint16(32780), + 114: uint16(32786), + 115: uint16(32819), + 116: uint16(32895), + 117: uint16(32905), + 118: uint16(32907), + 119: uint16(32908), + 120: uint16(33251), + 121: uint16(33258), + 122: uint16(33267), + 123: uint16(33276), + 124: uint16(33292), + 125: uint16(33307), + 126: uint16(33311), + 127: uint16(33390), + 128: uint16(33394), + 129: uint16(33406), + 130: uint16(34411), + 131: uint16(34880), + 132: uint16(34892), + 133: uint16(34915), + 134: uint16(35199), + 135: uint16(38433), + 136: uint16(20018), + 137: uint16(20136), + 138: uint16(20301), + 139: uint16(20303), + 140: uint16(20295), + 141: uint16(20311), + 142: uint16(20318), + 143: uint16(20276), + 144: uint16(20315), + 145: uint16(20309), + 146: uint16(20272), + 147: uint16(20304), + 148: uint16(20305), + 149: uint16(20285), + 150: uint16(20282), + 151: uint16(20280), + 152: uint16(20291), + 153: uint16(20308), + 154: uint16(20284), + 155: uint16(20294), + 156: uint16(20323), + }, + 6: { + 0: uint16(20316), + 1: uint16(20320), + 2: uint16(20271), + 3: uint16(20302), + 4: uint16(20278), + 5: uint16(20313), + 6: uint16(20317), + 7: uint16(20296), + 8: uint16(20314), + 9: uint16(20812), + 10: uint16(20811), + 11: uint16(20813), + 12: uint16(20853), + 13: uint16(20918), + 14: uint16(20919), + 15: uint16(21029), + 16: uint16(21028), + 17: uint16(21033), + 18: uint16(21034), + 19: uint16(21032), + 20: uint16(21163), + 21: uint16(21161), + 22: uint16(21162), + 23: uint16(21164), + 24: uint16(21283), + 25: uint16(21363), + 26: uint16(21365), + 27: uint16(21533), + 28: uint16(21549), + 29: uint16(21534), + 30: uint16(21566), + 31: uint16(21542), + 32: uint16(21582), + 33: uint16(21543), + 34: uint16(21574), + 35: uint16(21571), + 36: uint16(21555), + 37: uint16(21576), + 38: uint16(21570), + 39: uint16(21531), + 40: uint16(21545), + 41: uint16(21578), + 42: uint16(21561), + 43: uint16(21563), + 44: uint16(21560), + 45: uint16(21550), + 46: uint16(21557), + 47: uint16(21558), + 48: uint16(21536), + 49: uint16(21564), + 50: uint16(21568), + 51: uint16(21553), + 52: uint16(21547), + 53: uint16(21535), + 54: uint16(21548), + 55: uint16(22250), + 56: uint16(22256), + 57: uint16(22244), + 58: uint16(22251), + 59: uint16(22346), + 60: uint16(22353), + 61: uint16(22336), + 62: uint16(22349), + 63: uint16(22343), + 64: uint16(22350), + 65: uint16(22334), + 66: uint16(22352), + 67: uint16(22351), + 68: uint16(22331), + 69: uint16(22767), + 70: uint16(22846), + 71: uint16(22941), + 72: uint16(22930), + 73: uint16(22952), + 74: uint16(22942), + 75: uint16(22947), + 76: uint16(22937), + 77: uint16(22934), + 78: uint16(22925), + 79: uint16(22948), + 80: uint16(22931), + 81: uint16(22922), + 82: uint16(22949), + 83: uint16(23389), + 84: uint16(23388), + 85: uint16(23386), + 86: uint16(23387), + 87: uint16(23436), + 88: uint16(23435), + 89: uint16(23439), + 90: uint16(23596), + 91: uint16(23616), + 92: uint16(23617), + 93: uint16(23615), + 94: uint16(23614), + 95: uint16(23696), + 96: uint16(23697), + 97: uint16(23700), + 98: uint16(23692), + 99: uint16(24043), + 100: uint16(24076), + 101: uint16(24207), + 102: uint16(24199), + 103: uint16(24202), + 104: uint16(24311), + 105: uint16(24324), + 106: uint16(24351), + 107: uint16(24420), + 108: uint16(24418), + 109: uint16(24439), + 110: uint16(24441), + 111: uint16(24536), + 112: uint16(24524), + 113: uint16(24535), + 114: uint16(24525), + 115: uint16(24561), + 116: uint16(24555), + 117: uint16(24568), + 118: uint16(24554), + 119: uint16(25106), + 120: uint16(25105), + 121: uint16(25220), + 122: uint16(25239), + 123: uint16(25238), + 124: uint16(25216), + 125: uint16(25206), + 126: uint16(25225), + 127: uint16(25197), + 128: uint16(25226), + 129: uint16(25212), + 130: uint16(25214), + 131: uint16(25209), + 132: uint16(25203), + 133: uint16(25234), + 134: uint16(25199), + 135: uint16(25240), + 136: uint16(25198), + 137: uint16(25237), + 138: uint16(25235), + 139: uint16(25233), + 140: uint16(25222), + 141: uint16(25913), + 142: uint16(25915), + 143: uint16(25912), + 144: uint16(26097), + 145: uint16(26356), + 146: uint16(26463), + 147: uint16(26446), + 148: uint16(26447), + 149: uint16(26448), + 150: uint16(26449), + 151: uint16(26460), + 152: uint16(26454), + 153: uint16(26462), + 154: uint16(26441), + 155: uint16(26438), + 156: uint16(26464), + }, + 7: { + 0: uint16(26451), + 1: uint16(26455), + 2: uint16(27493), + 3: uint16(27599), + 4: uint16(27714), + 5: uint16(27742), + 6: uint16(27801), + 7: uint16(27777), + 8: uint16(27784), + 9: uint16(27785), + 10: uint16(27781), + 11: uint16(27803), + 12: uint16(27754), + 13: uint16(27770), + 14: uint16(27792), + 15: uint16(27760), + 16: uint16(27788), + 17: uint16(27752), + 18: uint16(27798), + 19: uint16(27794), + 20: uint16(27773), + 21: uint16(27779), + 22: uint16(27762), + 23: uint16(27774), + 24: uint16(27764), + 25: uint16(27782), + 26: uint16(27766), + 27: uint16(27789), + 28: uint16(27796), + 29: uint16(27800), + 30: uint16(27778), + 31: uint16(28790), + 32: uint16(28796), + 33: uint16(28797), + 34: uint16(28792), + 35: uint16(29282), + 36: uint16(29281), + 37: uint16(29280), + 38: uint16(29380), + 39: uint16(29378), + 40: uint16(29590), + 41: uint16(29996), + 42: uint16(29995), + 43: uint16(30007), + 44: uint16(30008), + 45: uint16(30338), + 46: uint16(30447), + 47: uint16(30691), + 48: uint16(31169), + 49: uint16(31168), + 50: uint16(31167), + 51: uint16(31350), + 52: uint16(31995), + 53: uint16(32597), + 54: uint16(32918), + 55: uint16(32915), + 56: uint16(32925), + 57: uint16(32920), + 58: uint16(32923), + 59: uint16(32922), + 60: uint16(32946), + 61: uint16(33391), + 62: uint16(33426), + 63: uint16(33419), + 64: uint16(33421), + 65: uint16(35211), + 66: uint16(35282), + 67: uint16(35328), + 68: uint16(35895), + 69: uint16(35910), + 70: uint16(35925), + 71: uint16(35997), + 72: uint16(36196), + 73: uint16(36208), + 74: uint16(36275), + 75: uint16(36523), + 76: uint16(36554), + 77: uint16(36763), + 78: uint16(36784), + 79: uint16(36802), + 80: uint16(36806), + 81: uint16(36805), + 82: uint16(36804), + 83: uint16(24033), + 84: uint16(37009), + 85: uint16(37026), + 86: uint16(37034), + 87: uint16(37030), + 88: uint16(37027), + 89: uint16(37193), + 90: uint16(37318), + 91: uint16(37324), + 92: uint16(38450), + 93: uint16(38446), + 94: uint16(38449), + 95: uint16(38442), + 96: uint16(38444), + 97: uint16(20006), + 98: uint16(20054), + 99: uint16(20083), + 100: uint16(20107), + 101: uint16(20123), + 102: uint16(20126), + 103: uint16(20139), + 104: uint16(20140), + 105: uint16(20335), + 106: uint16(20381), + 107: uint16(20365), + 108: uint16(20339), + 109: uint16(20351), + 110: uint16(20332), + 111: uint16(20379), + 112: uint16(20363), + 113: uint16(20358), + 114: uint16(20355), + 115: uint16(20336), + 116: uint16(20341), + 117: uint16(20360), + 118: uint16(20329), + 119: uint16(20347), + 120: uint16(20374), + 121: uint16(20350), + 122: uint16(20367), + 123: uint16(20369), + 124: uint16(20346), + 125: uint16(20820), + 126: uint16(20818), + 127: uint16(20821), + 128: uint16(20841), + 129: uint16(20855), + 130: uint16(20854), + 131: uint16(20856), + 132: uint16(20925), + 133: uint16(20989), + 134: uint16(21051), + 135: uint16(21048), + 136: uint16(21047), + 137: uint16(21050), + 138: uint16(21040), + 139: uint16(21038), + 140: uint16(21046), + 141: uint16(21057), + 142: uint16(21182), + 143: uint16(21179), + 144: uint16(21330), + 145: uint16(21332), + 146: uint16(21331), + 147: uint16(21329), + 148: uint16(21350), + 149: uint16(21367), + 150: uint16(21368), + 151: uint16(21369), + 152: uint16(21462), + 153: uint16(21460), + 154: uint16(21463), + 155: uint16(21619), + 156: uint16(21621), + }, + 8: { + 0: uint16(21654), + 1: uint16(21624), + 2: uint16(21653), + 3: uint16(21632), + 4: uint16(21627), + 5: uint16(21623), + 6: uint16(21636), + 7: uint16(21650), + 8: uint16(21638), + 9: uint16(21628), + 10: uint16(21648), + 11: uint16(21617), + 12: uint16(21622), + 13: uint16(21644), + 14: uint16(21658), + 15: uint16(21602), + 16: uint16(21608), + 17: uint16(21643), + 18: uint16(21629), + 19: uint16(21646), + 20: uint16(22266), + 21: uint16(22403), + 22: uint16(22391), + 23: uint16(22378), + 24: uint16(22377), + 25: uint16(22369), + 26: uint16(22374), + 27: uint16(22372), + 28: uint16(22396), + 29: uint16(22812), + 30: uint16(22857), + 31: uint16(22855), + 32: uint16(22856), + 33: uint16(22852), + 34: uint16(22868), + 35: uint16(22974), + 36: uint16(22971), + 37: uint16(22996), + 38: uint16(22969), + 39: uint16(22958), + 40: uint16(22993), + 41: uint16(22982), + 42: uint16(22992), + 43: uint16(22989), + 44: uint16(22987), + 45: uint16(22995), + 46: uint16(22986), + 47: uint16(22959), + 48: uint16(22963), + 49: uint16(22994), + 50: uint16(22981), + 51: uint16(23391), + 52: uint16(23396), + 53: uint16(23395), + 54: uint16(23447), + 55: uint16(23450), + 56: uint16(23448), + 57: uint16(23452), + 58: uint16(23449), + 59: uint16(23451), + 60: uint16(23578), + 61: uint16(23624), + 62: uint16(23621), + 63: uint16(23622), + 64: uint16(23735), + 65: uint16(23713), + 66: uint16(23736), + 67: uint16(23721), + 68: uint16(23723), + 69: uint16(23729), + 70: uint16(23731), + 71: uint16(24088), + 72: uint16(24090), + 73: uint16(24086), + 74: uint16(24085), + 75: uint16(24091), + 76: uint16(24081), + 77: uint16(24184), + 78: uint16(24218), + 79: uint16(24215), + 80: uint16(24220), + 81: uint16(24213), + 82: uint16(24214), + 83: uint16(24310), + 84: uint16(24358), + 85: uint16(24359), + 86: uint16(24361), + 87: uint16(24448), + 88: uint16(24449), + 89: uint16(24447), + 90: uint16(24444), + 91: uint16(24541), + 92: uint16(24544), + 93: uint16(24573), + 94: uint16(24565), + 95: uint16(24575), + 96: uint16(24591), + 97: uint16(24596), + 98: uint16(24623), + 99: uint16(24629), + 100: uint16(24598), + 101: uint16(24618), + 102: uint16(24597), + 103: uint16(24609), + 104: uint16(24615), + 105: uint16(24617), + 106: uint16(24619), + 107: uint16(24603), + 108: uint16(25110), + 109: uint16(25109), + 110: uint16(25151), + 111: uint16(25150), + 112: uint16(25152), + 113: uint16(25215), + 114: uint16(25289), + 115: uint16(25292), + 116: uint16(25284), + 117: uint16(25279), + 118: uint16(25282), + 119: uint16(25273), + 120: uint16(25298), + 121: uint16(25307), + 122: uint16(25259), + 123: uint16(25299), + 124: uint16(25300), + 125: uint16(25291), + 126: uint16(25288), + 127: uint16(25256), + 128: uint16(25277), + 129: uint16(25276), + 130: uint16(25296), + 131: uint16(25305), + 132: uint16(25287), + 133: uint16(25293), + 134: uint16(25269), + 135: uint16(25306), + 136: uint16(25265), + 137: uint16(25304), + 138: uint16(25302), + 139: uint16(25303), + 140: uint16(25286), + 141: uint16(25260), + 142: uint16(25294), + 143: uint16(25918), + 144: uint16(26023), + 145: uint16(26044), + 146: uint16(26106), + 147: uint16(26132), + 148: uint16(26131), + 149: uint16(26124), + 150: uint16(26118), + 151: uint16(26114), + 152: uint16(26126), + 153: uint16(26112), + 154: uint16(26127), + 155: uint16(26133), + 156: uint16(26122), + }, + 9: { + 0: uint16(26119), + 1: uint16(26381), + 2: uint16(26379), + 3: uint16(26477), + 4: uint16(26507), + 5: uint16(26517), + 6: uint16(26481), + 7: uint16(26524), + 8: uint16(26483), + 9: uint16(26487), + 10: uint16(26503), + 11: uint16(26525), + 12: uint16(26519), + 13: uint16(26479), + 14: uint16(26480), + 15: uint16(26495), + 16: uint16(26505), + 17: uint16(26494), + 18: uint16(26512), + 19: uint16(26485), + 20: uint16(26522), + 21: uint16(26515), + 22: uint16(26492), + 23: uint16(26474), + 24: uint16(26482), + 25: uint16(27427), + 26: uint16(27494), + 27: uint16(27495), + 28: uint16(27519), + 29: uint16(27667), + 30: uint16(27675), + 31: uint16(27875), + 32: uint16(27880), + 33: uint16(27891), + 34: uint16(27825), + 35: uint16(27852), + 36: uint16(27877), + 37: uint16(27827), + 38: uint16(27837), + 39: uint16(27838), + 40: uint16(27836), + 41: uint16(27874), + 42: uint16(27819), + 43: uint16(27861), + 44: uint16(27859), + 45: uint16(27832), + 46: uint16(27844), + 47: uint16(27833), + 48: uint16(27841), + 49: uint16(27822), + 50: uint16(27863), + 51: uint16(27845), + 52: uint16(27889), + 53: uint16(27839), + 54: uint16(27835), + 55: uint16(27873), + 56: uint16(27867), + 57: uint16(27850), + 58: uint16(27820), + 59: uint16(27887), + 60: uint16(27868), + 61: uint16(27862), + 62: uint16(27872), + 63: uint16(28821), + 64: uint16(28814), + 65: uint16(28818), + 66: uint16(28810), + 67: uint16(28825), + 68: uint16(29228), + 69: uint16(29229), + 70: uint16(29240), + 71: uint16(29256), + 72: uint16(29287), + 73: uint16(29289), + 74: uint16(29376), + 75: uint16(29390), + 76: uint16(29401), + 77: uint16(29399), + 78: uint16(29392), + 79: uint16(29609), + 80: uint16(29608), + 81: uint16(29599), + 82: uint16(29611), + 83: uint16(29605), + 84: uint16(30013), + 85: uint16(30109), + 86: uint16(30105), + 87: uint16(30106), + 88: uint16(30340), + 89: uint16(30402), + 90: uint16(30450), + 91: uint16(30452), + 92: uint16(30693), + 93: uint16(30717), + 94: uint16(31038), + 95: uint16(31040), + 96: uint16(31041), + 97: uint16(31177), + 98: uint16(31176), + 99: uint16(31354), + 100: uint16(31353), + 101: uint16(31482), + 102: uint16(31998), + 103: uint16(32596), + 104: uint16(32652), + 105: uint16(32651), + 106: uint16(32773), + 107: uint16(32954), + 108: uint16(32933), + 109: uint16(32930), + 110: uint16(32945), + 111: uint16(32929), + 112: uint16(32939), + 113: uint16(32937), + 114: uint16(32948), + 115: uint16(32938), + 116: uint16(32943), + 117: uint16(33253), + 118: uint16(33278), + 119: uint16(33293), + 120: uint16(33459), + 121: uint16(33437), + 122: uint16(33433), + 123: uint16(33453), + 124: uint16(33469), + 125: uint16(33439), + 126: uint16(33465), + 127: uint16(33457), + 128: uint16(33452), + 129: uint16(33445), + 130: uint16(33455), + 131: uint16(33464), + 132: uint16(33443), + 133: uint16(33456), + 134: uint16(33470), + 135: uint16(33463), + 136: uint16(34382), + 137: uint16(34417), + 138: uint16(21021), + 139: uint16(34920), + 140: uint16(36555), + 141: uint16(36814), + 142: uint16(36820), + 143: uint16(36817), + 144: uint16(37045), + 145: uint16(37048), + 146: uint16(37041), + 147: uint16(37046), + 148: uint16(37319), + 149: uint16(37329), + 150: uint16(38263), + 151: uint16(38272), + 152: uint16(38428), + 153: uint16(38464), + 154: uint16(38463), + 155: uint16(38459), + 156: uint16(38468), + }, + 10: { + 0: uint16(38466), + 1: uint16(38585), + 2: uint16(38632), + 3: uint16(38738), + 4: uint16(38750), + 5: uint16(20127), + 6: uint16(20141), + 7: uint16(20142), + 8: uint16(20449), + 9: uint16(20405), + 10: uint16(20399), + 11: uint16(20415), + 12: uint16(20448), + 13: uint16(20433), + 14: uint16(20431), + 15: uint16(20445), + 16: uint16(20419), + 17: uint16(20406), + 18: uint16(20440), + 19: uint16(20447), + 20: uint16(20426), + 21: uint16(20439), + 22: uint16(20398), + 23: uint16(20432), + 24: uint16(20420), + 25: uint16(20418), + 26: uint16(20442), + 27: uint16(20430), + 28: uint16(20446), + 29: uint16(20407), + 30: uint16(20823), + 31: uint16(20882), + 32: uint16(20881), + 33: uint16(20896), + 34: uint16(21070), + 35: uint16(21059), + 36: uint16(21066), + 37: uint16(21069), + 38: uint16(21068), + 39: uint16(21067), + 40: uint16(21063), + 41: uint16(21191), + 42: uint16(21193), + 43: uint16(21187), + 44: uint16(21185), + 45: uint16(21261), + 46: uint16(21335), + 47: uint16(21371), + 48: uint16(21402), + 49: uint16(21467), + 50: uint16(21676), + 51: uint16(21696), + 52: uint16(21672), + 53: uint16(21710), + 54: uint16(21705), + 55: uint16(21688), + 56: uint16(21670), + 57: uint16(21683), + 58: uint16(21703), + 59: uint16(21698), + 60: uint16(21693), + 61: uint16(21674), + 62: uint16(21697), + 63: uint16(21700), + 64: uint16(21704), + 65: uint16(21679), + 66: uint16(21675), + 67: uint16(21681), + 68: uint16(21691), + 69: uint16(21673), + 70: uint16(21671), + 71: uint16(21695), + 72: uint16(22271), + 73: uint16(22402), + 74: uint16(22411), + 75: uint16(22432), + 76: uint16(22435), + 77: uint16(22434), + 78: uint16(22478), + 79: uint16(22446), + 80: uint16(22419), + 81: uint16(22869), + 82: uint16(22865), + 83: uint16(22863), + 84: uint16(22862), + 85: uint16(22864), + 86: uint16(23004), + 87: uint16(23000), + 88: uint16(23039), + 89: uint16(23011), + 90: uint16(23016), + 91: uint16(23043), + 92: uint16(23013), + 93: uint16(23018), + 94: uint16(23002), + 95: uint16(23014), + 96: uint16(23041), + 97: uint16(23035), + 98: uint16(23401), + 99: uint16(23459), + 100: uint16(23462), + 101: uint16(23460), + 102: uint16(23458), + 103: uint16(23461), + 104: uint16(23553), + 105: uint16(23630), + 106: uint16(23631), + 107: uint16(23629), + 108: uint16(23627), + 109: uint16(23769), + 110: uint16(23762), + 111: uint16(24055), + 112: uint16(24093), + 113: uint16(24101), + 114: uint16(24095), + 115: uint16(24189), + 116: uint16(24224), + 117: uint16(24230), + 118: uint16(24314), + 119: uint16(24328), + 120: uint16(24365), + 121: uint16(24421), + 122: uint16(24456), + 123: uint16(24453), + 124: uint16(24458), + 125: uint16(24459), + 126: uint16(24455), + 127: uint16(24460), + 128: uint16(24457), + 129: uint16(24594), + 130: uint16(24605), + 131: uint16(24608), + 132: uint16(24613), + 133: uint16(24590), + 134: uint16(24616), + 135: uint16(24653), + 136: uint16(24688), + 137: uint16(24680), + 138: uint16(24674), + 139: uint16(24646), + 140: uint16(24643), + 141: uint16(24684), + 142: uint16(24683), + 143: uint16(24682), + 144: uint16(24676), + 145: uint16(25153), + 146: uint16(25308), + 147: uint16(25366), + 148: uint16(25353), + 149: uint16(25340), + 150: uint16(25325), + 151: uint16(25345), + 152: uint16(25326), + 153: uint16(25341), + 154: uint16(25351), + 155: uint16(25329), + 156: uint16(25335), + }, + 11: { + 0: uint16(25327), + 1: uint16(25324), + 2: uint16(25342), + 3: uint16(25332), + 4: uint16(25361), + 5: uint16(25346), + 6: uint16(25919), + 7: uint16(25925), + 8: uint16(26027), + 9: uint16(26045), + 10: uint16(26082), + 11: uint16(26149), + 12: uint16(26157), + 13: uint16(26144), + 14: uint16(26151), + 15: uint16(26159), + 16: uint16(26143), + 17: uint16(26152), + 18: uint16(26161), + 19: uint16(26148), + 20: uint16(26359), + 21: uint16(26623), + 22: uint16(26579), + 23: uint16(26609), + 24: uint16(26580), + 25: uint16(26576), + 26: uint16(26604), + 27: uint16(26550), + 28: uint16(26543), + 29: uint16(26613), + 30: uint16(26601), + 31: uint16(26607), + 32: uint16(26564), + 33: uint16(26577), + 34: uint16(26548), + 35: uint16(26586), + 36: uint16(26597), + 37: uint16(26552), + 38: uint16(26575), + 39: uint16(26590), + 40: uint16(26611), + 41: uint16(26544), + 42: uint16(26585), + 43: uint16(26594), + 44: uint16(26589), + 45: uint16(26578), + 46: uint16(27498), + 47: uint16(27523), + 48: uint16(27526), + 49: uint16(27573), + 50: uint16(27602), + 51: uint16(27607), + 52: uint16(27679), + 53: uint16(27849), + 54: uint16(27915), + 55: uint16(27954), + 56: uint16(27946), + 57: uint16(27969), + 58: uint16(27941), + 59: uint16(27916), + 60: uint16(27953), + 61: uint16(27934), + 62: uint16(27927), + 63: uint16(27963), + 64: uint16(27965), + 65: uint16(27966), + 66: uint16(27958), + 67: uint16(27931), + 68: uint16(27893), + 69: uint16(27961), + 70: uint16(27943), + 71: uint16(27960), + 72: uint16(27945), + 73: uint16(27950), + 74: uint16(27957), + 75: uint16(27918), + 76: uint16(27947), + 77: uint16(28843), + 78: uint16(28858), + 79: uint16(28851), + 80: uint16(28844), + 81: uint16(28847), + 82: uint16(28845), + 83: uint16(28856), + 84: uint16(28846), + 85: uint16(28836), + 86: uint16(29232), + 87: uint16(29298), + 88: uint16(29295), + 89: uint16(29300), + 90: uint16(29417), + 91: uint16(29408), + 92: uint16(29409), + 93: uint16(29623), + 94: uint16(29642), + 95: uint16(29627), + 96: uint16(29618), + 97: uint16(29645), + 98: uint16(29632), + 99: uint16(29619), + 100: uint16(29978), + 101: uint16(29997), + 102: uint16(30031), + 103: uint16(30028), + 104: uint16(30030), + 105: uint16(30027), + 106: uint16(30123), + 107: uint16(30116), + 108: uint16(30117), + 109: uint16(30114), + 110: uint16(30115), + 111: uint16(30328), + 112: uint16(30342), + 113: uint16(30343), + 114: uint16(30344), + 115: uint16(30408), + 116: uint16(30406), + 117: uint16(30403), + 118: uint16(30405), + 119: uint16(30465), + 120: uint16(30457), + 121: uint16(30456), + 122: uint16(30473), + 123: uint16(30475), + 124: uint16(30462), + 125: uint16(30460), + 126: uint16(30471), + 127: uint16(30684), + 128: uint16(30722), + 129: uint16(30740), + 130: uint16(30732), + 131: uint16(30733), + 132: uint16(31046), + 133: uint16(31049), + 134: uint16(31048), + 135: uint16(31047), + 136: uint16(31161), + 137: uint16(31162), + 138: uint16(31185), + 139: uint16(31186), + 140: uint16(31179), + 141: uint16(31359), + 142: uint16(31361), + 143: uint16(31487), + 144: uint16(31485), + 145: uint16(31869), + 146: uint16(32002), + 147: uint16(32005), + 148: uint16(32000), + 149: uint16(32009), + 150: uint16(32007), + 151: uint16(32004), + 152: uint16(32006), + 153: uint16(32568), + 154: uint16(32654), + 155: uint16(32703), + 156: uint16(32772), + }, + 12: { + 0: uint16(32784), + 1: uint16(32781), + 2: uint16(32785), + 3: uint16(32822), + 4: uint16(32982), + 5: uint16(32997), + 6: uint16(32986), + 7: uint16(32963), + 8: uint16(32964), + 9: uint16(32972), + 10: uint16(32993), + 11: uint16(32987), + 12: uint16(32974), + 13: uint16(32990), + 14: uint16(32996), + 15: uint16(32989), + 16: uint16(33268), + 17: uint16(33314), + 18: uint16(33511), + 19: uint16(33539), + 20: uint16(33541), + 21: uint16(33507), + 22: uint16(33499), + 23: uint16(33510), + 24: uint16(33540), + 25: uint16(33509), + 26: uint16(33538), + 27: uint16(33545), + 28: uint16(33490), + 29: uint16(33495), + 30: uint16(33521), + 31: uint16(33537), + 32: uint16(33500), + 33: uint16(33492), + 34: uint16(33489), + 35: uint16(33502), + 36: uint16(33491), + 37: uint16(33503), + 38: uint16(33519), + 39: uint16(33542), + 40: uint16(34384), + 41: uint16(34425), + 42: uint16(34427), + 43: uint16(34426), + 44: uint16(34893), + 45: uint16(34923), + 46: uint16(35201), + 47: uint16(35284), + 48: uint16(35336), + 49: uint16(35330), + 50: uint16(35331), + 51: uint16(35998), + 52: uint16(36000), + 53: uint16(36212), + 54: uint16(36211), + 55: uint16(36276), + 56: uint16(36557), + 57: uint16(36556), + 58: uint16(36848), + 59: uint16(36838), + 60: uint16(36834), + 61: uint16(36842), + 62: uint16(36837), + 63: uint16(36845), + 64: uint16(36843), + 65: uint16(36836), + 66: uint16(36840), + 67: uint16(37066), + 68: uint16(37070), + 69: uint16(37057), + 70: uint16(37059), + 71: uint16(37195), + 72: uint16(37194), + 73: uint16(37325), + 74: uint16(38274), + 75: uint16(38480), + 76: uint16(38475), + 77: uint16(38476), + 78: uint16(38477), + 79: uint16(38754), + 80: uint16(38761), + 81: uint16(38859), + 82: uint16(38893), + 83: uint16(38899), + 84: uint16(38913), + 85: uint16(39080), + 86: uint16(39131), + 87: uint16(39135), + 88: uint16(39318), + 89: uint16(39321), + 90: uint16(20056), + 91: uint16(20147), + 92: uint16(20492), + 93: uint16(20493), + 94: uint16(20515), + 95: uint16(20463), + 96: uint16(20518), + 97: uint16(20517), + 98: uint16(20472), + 99: uint16(20521), + 100: uint16(20502), + 101: uint16(20486), + 102: uint16(20540), + 103: uint16(20511), + 104: uint16(20506), + 105: uint16(20498), + 106: uint16(20497), + 107: uint16(20474), + 108: uint16(20480), + 109: uint16(20500), + 110: uint16(20520), + 111: uint16(20465), + 112: uint16(20513), + 113: uint16(20491), + 114: uint16(20505), + 115: uint16(20504), + 116: uint16(20467), + 117: uint16(20462), + 118: uint16(20525), + 119: uint16(20522), + 120: uint16(20478), + 121: uint16(20523), + 122: uint16(20489), + 123: uint16(20860), + 124: uint16(20900), + 125: uint16(20901), + 126: uint16(20898), + 127: uint16(20941), + 128: uint16(20940), + 129: uint16(20934), + 130: uint16(20939), + 131: uint16(21078), + 132: uint16(21084), + 133: uint16(21076), + 134: uint16(21083), + 135: uint16(21085), + 136: uint16(21290), + 137: uint16(21375), + 138: uint16(21407), + 139: uint16(21405), + 140: uint16(21471), + 141: uint16(21736), + 142: uint16(21776), + 143: uint16(21761), + 144: uint16(21815), + 145: uint16(21756), + 146: uint16(21733), + 147: uint16(21746), + 148: uint16(21766), + 149: uint16(21754), + 150: uint16(21780), + 151: uint16(21737), + 152: uint16(21741), + 153: uint16(21729), + 154: uint16(21769), + 155: uint16(21742), + 156: uint16(21738), + }, + 13: { + 0: uint16(21734), + 1: uint16(21799), + 2: uint16(21767), + 3: uint16(21757), + 4: uint16(21775), + 5: uint16(22275), + 6: uint16(22276), + 7: uint16(22466), + 8: uint16(22484), + 9: uint16(22475), + 10: uint16(22467), + 11: uint16(22537), + 12: uint16(22799), + 13: uint16(22871), + 14: uint16(22872), + 15: uint16(22874), + 16: uint16(23057), + 17: uint16(23064), + 18: uint16(23068), + 19: uint16(23071), + 20: uint16(23067), + 21: uint16(23059), + 22: uint16(23020), + 23: uint16(23072), + 24: uint16(23075), + 25: uint16(23081), + 26: uint16(23077), + 27: uint16(23052), + 28: uint16(23049), + 29: uint16(23403), + 30: uint16(23640), + 31: uint16(23472), + 32: uint16(23475), + 33: uint16(23478), + 34: uint16(23476), + 35: uint16(23470), + 36: uint16(23477), + 37: uint16(23481), + 38: uint16(23480), + 39: uint16(23556), + 40: uint16(23633), + 41: uint16(23637), + 42: uint16(23632), + 43: uint16(23789), + 44: uint16(23805), + 45: uint16(23803), + 46: uint16(23786), + 47: uint16(23784), + 48: uint16(23792), + 49: uint16(23798), + 50: uint16(23809), + 51: uint16(23796), + 52: uint16(24046), + 53: uint16(24109), + 54: uint16(24107), + 55: uint16(24235), + 56: uint16(24237), + 57: uint16(24231), + 58: uint16(24369), + 59: uint16(24466), + 60: uint16(24465), + 61: uint16(24464), + 62: uint16(24665), + 63: uint16(24675), + 64: uint16(24677), + 65: uint16(24656), + 66: uint16(24661), + 67: uint16(24685), + 68: uint16(24681), + 69: uint16(24687), + 70: uint16(24708), + 71: uint16(24735), + 72: uint16(24730), + 73: uint16(24717), + 74: uint16(24724), + 75: uint16(24716), + 76: uint16(24709), + 77: uint16(24726), + 78: uint16(25159), + 79: uint16(25331), + 80: uint16(25352), + 81: uint16(25343), + 82: uint16(25422), + 83: uint16(25406), + 84: uint16(25391), + 85: uint16(25429), + 86: uint16(25410), + 87: uint16(25414), + 88: uint16(25423), + 89: uint16(25417), + 90: uint16(25402), + 91: uint16(25424), + 92: uint16(25405), + 93: uint16(25386), + 94: uint16(25387), + 95: uint16(25384), + 96: uint16(25421), + 97: uint16(25420), + 98: uint16(25928), + 99: uint16(25929), + 100: uint16(26009), + 101: uint16(26049), + 102: uint16(26053), + 103: uint16(26178), + 104: uint16(26185), + 105: uint16(26191), + 106: uint16(26179), + 107: uint16(26194), + 108: uint16(26188), + 109: uint16(26181), + 110: uint16(26177), + 111: uint16(26360), + 112: uint16(26388), + 113: uint16(26389), + 114: uint16(26391), + 115: uint16(26657), + 116: uint16(26680), + 117: uint16(26696), + 118: uint16(26694), + 119: uint16(26707), + 120: uint16(26681), + 121: uint16(26690), + 122: uint16(26708), + 123: uint16(26665), + 124: uint16(26803), + 125: uint16(26647), + 126: uint16(26700), + 127: uint16(26705), + 128: uint16(26685), + 129: uint16(26612), + 130: uint16(26704), + 131: uint16(26688), + 132: uint16(26684), + 133: uint16(26691), + 134: uint16(26666), + 135: uint16(26693), + 136: uint16(26643), + 137: uint16(26648), + 138: uint16(26689), + 139: uint16(27530), + 140: uint16(27529), + 141: uint16(27575), + 142: uint16(27683), + 143: uint16(27687), + 144: uint16(27688), + 145: uint16(27686), + 146: uint16(27684), + 147: uint16(27888), + 148: uint16(28010), + 149: uint16(28053), + 150: uint16(28040), + 151: uint16(28039), + 152: uint16(28006), + 153: uint16(28024), + 154: uint16(28023), + 155: uint16(27993), + 156: uint16(28051), + }, + 14: { + 0: uint16(28012), + 1: uint16(28041), + 2: uint16(28014), + 3: uint16(27994), + 4: uint16(28020), + 5: uint16(28009), + 6: uint16(28044), + 7: uint16(28042), + 8: uint16(28025), + 9: uint16(28037), + 10: uint16(28005), + 11: uint16(28052), + 12: uint16(28874), + 13: uint16(28888), + 14: uint16(28900), + 15: uint16(28889), + 16: uint16(28872), + 17: uint16(28879), + 18: uint16(29241), + 19: uint16(29305), + 20: uint16(29436), + 21: uint16(29433), + 22: uint16(29437), + 23: uint16(29432), + 24: uint16(29431), + 25: uint16(29574), + 26: uint16(29677), + 27: uint16(29705), + 28: uint16(29678), + 29: uint16(29664), + 30: uint16(29674), + 31: uint16(29662), + 32: uint16(30036), + 33: uint16(30045), + 34: uint16(30044), + 35: uint16(30042), + 36: uint16(30041), + 37: uint16(30142), + 38: uint16(30149), + 39: uint16(30151), + 40: uint16(30130), + 41: uint16(30131), + 42: uint16(30141), + 43: uint16(30140), + 44: uint16(30137), + 45: uint16(30146), + 46: uint16(30136), + 47: uint16(30347), + 48: uint16(30384), + 49: uint16(30410), + 50: uint16(30413), + 51: uint16(30414), + 52: uint16(30505), + 53: uint16(30495), + 54: uint16(30496), + 55: uint16(30504), + 56: uint16(30697), + 57: uint16(30768), + 58: uint16(30759), + 59: uint16(30776), + 60: uint16(30749), + 61: uint16(30772), + 62: uint16(30775), + 63: uint16(30757), + 64: uint16(30765), + 65: uint16(30752), + 66: uint16(30751), + 67: uint16(30770), + 68: uint16(31061), + 69: uint16(31056), + 70: uint16(31072), + 71: uint16(31071), + 72: uint16(31062), + 73: uint16(31070), + 74: uint16(31069), + 75: uint16(31063), + 76: uint16(31066), + 77: uint16(31204), + 78: uint16(31203), + 79: uint16(31207), + 80: uint16(31199), + 81: uint16(31206), + 82: uint16(31209), + 83: uint16(31192), + 84: uint16(31364), + 85: uint16(31368), + 86: uint16(31449), + 87: uint16(31494), + 88: uint16(31505), + 89: uint16(31881), + 90: uint16(32033), + 91: uint16(32023), + 92: uint16(32011), + 93: uint16(32010), + 94: uint16(32032), + 95: uint16(32034), + 96: uint16(32020), + 97: uint16(32016), + 98: uint16(32021), + 99: uint16(32026), + 100: uint16(32028), + 101: uint16(32013), + 102: uint16(32025), + 103: uint16(32027), + 104: uint16(32570), + 105: uint16(32607), + 106: uint16(32660), + 107: uint16(32709), + 108: uint16(32705), + 109: uint16(32774), + 110: uint16(32792), + 111: uint16(32789), + 112: uint16(32793), + 113: uint16(32791), + 114: uint16(32829), + 115: uint16(32831), + 116: uint16(33009), + 117: uint16(33026), + 118: uint16(33008), + 119: uint16(33029), + 120: uint16(33005), + 121: uint16(33012), + 122: uint16(33030), + 123: uint16(33016), + 124: uint16(33011), + 125: uint16(33032), + 126: uint16(33021), + 127: uint16(33034), + 128: uint16(33020), + 129: uint16(33007), + 130: uint16(33261), + 131: uint16(33260), + 132: uint16(33280), + 133: uint16(33296), + 134: uint16(33322), + 135: uint16(33323), + 136: uint16(33320), + 137: uint16(33324), + 138: uint16(33467), + 139: uint16(33579), + 140: uint16(33618), + 141: uint16(33620), + 142: uint16(33610), + 143: uint16(33592), + 144: uint16(33616), + 145: uint16(33609), + 146: uint16(33589), + 147: uint16(33588), + 148: uint16(33615), + 149: uint16(33586), + 150: uint16(33593), + 151: uint16(33590), + 152: uint16(33559), + 153: uint16(33600), + 154: uint16(33585), + 155: uint16(33576), + 156: uint16(33603), + }, + 15: { + 0: uint16(34388), + 1: uint16(34442), + 2: uint16(34474), + 3: uint16(34451), + 4: uint16(34468), + 5: uint16(34473), + 6: uint16(34444), + 7: uint16(34467), + 8: uint16(34460), + 9: uint16(34928), + 10: uint16(34935), + 11: uint16(34945), + 12: uint16(34946), + 13: uint16(34941), + 14: uint16(34937), + 15: uint16(35352), + 16: uint16(35344), + 17: uint16(35342), + 18: uint16(35340), + 19: uint16(35349), + 20: uint16(35338), + 21: uint16(35351), + 22: uint16(35347), + 23: uint16(35350), + 24: uint16(35343), + 25: uint16(35345), + 26: uint16(35912), + 27: uint16(35962), + 28: uint16(35961), + 29: uint16(36001), + 30: uint16(36002), + 31: uint16(36215), + 32: uint16(36524), + 33: uint16(36562), + 34: uint16(36564), + 35: uint16(36559), + 36: uint16(36785), + 37: uint16(36865), + 38: uint16(36870), + 39: uint16(36855), + 40: uint16(36864), + 41: uint16(36858), + 42: uint16(36852), + 43: uint16(36867), + 44: uint16(36861), + 45: uint16(36869), + 46: uint16(36856), + 47: uint16(37013), + 48: uint16(37089), + 49: uint16(37085), + 50: uint16(37090), + 51: uint16(37202), + 52: uint16(37197), + 53: uint16(37196), + 54: uint16(37336), + 55: uint16(37341), + 56: uint16(37335), + 57: uint16(37340), + 58: uint16(37337), + 59: uint16(38275), + 60: uint16(38498), + 61: uint16(38499), + 62: uint16(38497), + 63: uint16(38491), + 64: uint16(38493), + 65: uint16(38500), + 66: uint16(38488), + 67: uint16(38494), + 68: uint16(38587), + 69: uint16(39138), + 70: uint16(39340), + 71: uint16(39592), + 72: uint16(39640), + 73: uint16(39717), + 74: uint16(39730), + 75: uint16(39740), + 76: uint16(20094), + 77: uint16(20602), + 78: uint16(20605), + 79: uint16(20572), + 80: uint16(20551), + 81: uint16(20547), + 82: uint16(20556), + 83: uint16(20570), + 84: uint16(20553), + 85: uint16(20581), + 86: uint16(20598), + 87: uint16(20558), + 88: uint16(20565), + 89: uint16(20597), + 90: uint16(20596), + 91: uint16(20599), + 92: uint16(20559), + 93: uint16(20495), + 94: uint16(20591), + 95: uint16(20589), + 96: uint16(20828), + 97: uint16(20885), + 98: uint16(20976), + 99: uint16(21098), + 100: uint16(21103), + 101: uint16(21202), + 102: uint16(21209), + 103: uint16(21208), + 104: uint16(21205), + 105: uint16(21264), + 106: uint16(21263), + 107: uint16(21273), + 108: uint16(21311), + 109: uint16(21312), + 110: uint16(21310), + 111: uint16(21443), + 112: uint16(26364), + 113: uint16(21830), + 114: uint16(21866), + 115: uint16(21862), + 116: uint16(21828), + 117: uint16(21854), + 118: uint16(21857), + 119: uint16(21827), + 120: uint16(21834), + 121: uint16(21809), + 122: uint16(21846), + 123: uint16(21839), + 124: uint16(21845), + 125: uint16(21807), + 126: uint16(21860), + 127: uint16(21816), + 128: uint16(21806), + 129: uint16(21852), + 130: uint16(21804), + 131: uint16(21859), + 132: uint16(21811), + 133: uint16(21825), + 134: uint16(21847), + 135: uint16(22280), + 136: uint16(22283), + 137: uint16(22281), + 138: uint16(22495), + 139: uint16(22533), + 140: uint16(22538), + 141: uint16(22534), + 142: uint16(22496), + 143: uint16(22500), + 144: uint16(22522), + 145: uint16(22530), + 146: uint16(22581), + 147: uint16(22519), + 148: uint16(22521), + 149: uint16(22816), + 150: uint16(22882), + 151: uint16(23094), + 152: uint16(23105), + 153: uint16(23113), + 154: uint16(23142), + 155: uint16(23146), + 156: uint16(23104), + }, + 16: { + 0: uint16(23100), + 1: uint16(23138), + 2: uint16(23130), + 3: uint16(23110), + 4: uint16(23114), + 5: uint16(23408), + 6: uint16(23495), + 7: uint16(23493), + 8: uint16(23492), + 9: uint16(23490), + 10: uint16(23487), + 11: uint16(23494), + 12: uint16(23561), + 13: uint16(23560), + 14: uint16(23559), + 15: uint16(23648), + 16: uint16(23644), + 17: uint16(23645), + 18: uint16(23815), + 19: uint16(23814), + 20: uint16(23822), + 21: uint16(23835), + 22: uint16(23830), + 23: uint16(23842), + 24: uint16(23825), + 25: uint16(23849), + 26: uint16(23828), + 27: uint16(23833), + 28: uint16(23844), + 29: uint16(23847), + 30: uint16(23831), + 31: uint16(24034), + 32: uint16(24120), + 33: uint16(24118), + 34: uint16(24115), + 35: uint16(24119), + 36: uint16(24247), + 37: uint16(24248), + 38: uint16(24246), + 39: uint16(24245), + 40: uint16(24254), + 41: uint16(24373), + 42: uint16(24375), + 43: uint16(24407), + 44: uint16(24428), + 45: uint16(24425), + 46: uint16(24427), + 47: uint16(24471), + 48: uint16(24473), + 49: uint16(24478), + 50: uint16(24472), + 51: uint16(24481), + 52: uint16(24480), + 53: uint16(24476), + 54: uint16(24703), + 55: uint16(24739), + 56: uint16(24713), + 57: uint16(24736), + 58: uint16(24744), + 59: uint16(24779), + 60: uint16(24756), + 61: uint16(24806), + 62: uint16(24765), + 63: uint16(24773), + 64: uint16(24763), + 65: uint16(24757), + 66: uint16(24796), + 67: uint16(24764), + 68: uint16(24792), + 69: uint16(24789), + 70: uint16(24774), + 71: uint16(24799), + 72: uint16(24760), + 73: uint16(24794), + 74: uint16(24775), + 75: uint16(25114), + 76: uint16(25115), + 77: uint16(25160), + 78: uint16(25504), + 79: uint16(25511), + 80: uint16(25458), + 81: uint16(25494), + 82: uint16(25506), + 83: uint16(25509), + 84: uint16(25463), + 85: uint16(25447), + 86: uint16(25496), + 87: uint16(25514), + 88: uint16(25457), + 89: uint16(25513), + 90: uint16(25481), + 91: uint16(25475), + 92: uint16(25499), + 93: uint16(25451), + 94: uint16(25512), + 95: uint16(25476), + 96: uint16(25480), + 97: uint16(25497), + 98: uint16(25505), + 99: uint16(25516), + 100: uint16(25490), + 101: uint16(25487), + 102: uint16(25472), + 103: uint16(25467), + 104: uint16(25449), + 105: uint16(25448), + 106: uint16(25466), + 107: uint16(25949), + 108: uint16(25942), + 109: uint16(25937), + 110: uint16(25945), + 111: uint16(25943), + 112: uint16(21855), + 113: uint16(25935), + 114: uint16(25944), + 115: uint16(25941), + 116: uint16(25940), + 117: uint16(26012), + 118: uint16(26011), + 119: uint16(26028), + 120: uint16(26063), + 121: uint16(26059), + 122: uint16(26060), + 123: uint16(26062), + 124: uint16(26205), + 125: uint16(26202), + 126: uint16(26212), + 127: uint16(26216), + 128: uint16(26214), + 129: uint16(26206), + 130: uint16(26361), + 131: uint16(21207), + 132: uint16(26395), + 133: uint16(26753), + 134: uint16(26799), + 135: uint16(26786), + 136: uint16(26771), + 137: uint16(26805), + 138: uint16(26751), + 139: uint16(26742), + 140: uint16(26801), + 141: uint16(26791), + 142: uint16(26775), + 143: uint16(26800), + 144: uint16(26755), + 145: uint16(26820), + 146: uint16(26797), + 147: uint16(26758), + 148: uint16(26757), + 149: uint16(26772), + 150: uint16(26781), + 151: uint16(26792), + 152: uint16(26783), + 153: uint16(26785), + 154: uint16(26754), + 155: uint16(27442), + 156: uint16(27578), + }, + 17: { + 0: uint16(27627), + 1: uint16(27628), + 2: uint16(27691), + 3: uint16(28046), + 4: uint16(28092), + 5: uint16(28147), + 6: uint16(28121), + 7: uint16(28082), + 8: uint16(28129), + 9: uint16(28108), + 10: uint16(28132), + 11: uint16(28155), + 12: uint16(28154), + 13: uint16(28165), + 14: uint16(28103), + 15: uint16(28107), + 16: uint16(28079), + 17: uint16(28113), + 18: uint16(28078), + 19: uint16(28126), + 20: uint16(28153), + 21: uint16(28088), + 22: uint16(28151), + 23: uint16(28149), + 24: uint16(28101), + 25: uint16(28114), + 26: uint16(28186), + 27: uint16(28085), + 28: uint16(28122), + 29: uint16(28139), + 30: uint16(28120), + 31: uint16(28138), + 32: uint16(28145), + 33: uint16(28142), + 34: uint16(28136), + 35: uint16(28102), + 36: uint16(28100), + 37: uint16(28074), + 38: uint16(28140), + 39: uint16(28095), + 40: uint16(28134), + 41: uint16(28921), + 42: uint16(28937), + 43: uint16(28938), + 44: uint16(28925), + 45: uint16(28911), + 46: uint16(29245), + 47: uint16(29309), + 48: uint16(29313), + 49: uint16(29468), + 50: uint16(29467), + 51: uint16(29462), + 52: uint16(29459), + 53: uint16(29465), + 54: uint16(29575), + 55: uint16(29701), + 56: uint16(29706), + 57: uint16(29699), + 58: uint16(29702), + 59: uint16(29694), + 60: uint16(29709), + 61: uint16(29920), + 62: uint16(29942), + 63: uint16(29943), + 64: uint16(29980), + 65: uint16(29986), + 66: uint16(30053), + 67: uint16(30054), + 68: uint16(30050), + 69: uint16(30064), + 70: uint16(30095), + 71: uint16(30164), + 72: uint16(30165), + 73: uint16(30133), + 74: uint16(30154), + 75: uint16(30157), + 76: uint16(30350), + 77: uint16(30420), + 78: uint16(30418), + 79: uint16(30427), + 80: uint16(30519), + 81: uint16(30526), + 82: uint16(30524), + 83: uint16(30518), + 84: uint16(30520), + 85: uint16(30522), + 86: uint16(30827), + 87: uint16(30787), + 88: uint16(30798), + 89: uint16(31077), + 90: uint16(31080), + 91: uint16(31085), + 92: uint16(31227), + 93: uint16(31378), + 94: uint16(31381), + 95: uint16(31520), + 96: uint16(31528), + 97: uint16(31515), + 98: uint16(31532), + 99: uint16(31526), + 100: uint16(31513), + 101: uint16(31518), + 102: uint16(31534), + 103: uint16(31890), + 104: uint16(31895), + 105: uint16(31893), + 106: uint16(32070), + 107: uint16(32067), + 108: uint16(32113), + 109: uint16(32046), + 110: uint16(32057), + 111: uint16(32060), + 112: uint16(32064), + 113: uint16(32048), + 114: uint16(32051), + 115: uint16(32068), + 116: uint16(32047), + 117: uint16(32066), + 118: uint16(32050), + 119: uint16(32049), + 120: uint16(32573), + 121: uint16(32670), + 122: uint16(32666), + 123: uint16(32716), + 124: uint16(32718), + 125: uint16(32722), + 126: uint16(32796), + 127: uint16(32842), + 128: uint16(32838), + 129: uint16(33071), + 130: uint16(33046), + 131: uint16(33059), + 132: uint16(33067), + 133: uint16(33065), + 134: uint16(33072), + 135: uint16(33060), + 136: uint16(33282), + 137: uint16(33333), + 138: uint16(33335), + 139: uint16(33334), + 140: uint16(33337), + 141: uint16(33678), + 142: uint16(33694), + 143: uint16(33688), + 144: uint16(33656), + 145: uint16(33698), + 146: uint16(33686), + 147: uint16(33725), + 148: uint16(33707), + 149: uint16(33682), + 150: uint16(33674), + 151: uint16(33683), + 152: uint16(33673), + 153: uint16(33696), + 154: uint16(33655), + 155: uint16(33659), + 156: uint16(33660), + }, + 18: { + 0: uint16(33670), + 1: uint16(33703), + 2: uint16(34389), + 3: uint16(24426), + 4: uint16(34503), + 5: uint16(34496), + 6: uint16(34486), + 7: uint16(34500), + 8: uint16(34485), + 9: uint16(34502), + 10: uint16(34507), + 11: uint16(34481), + 12: uint16(34479), + 13: uint16(34505), + 14: uint16(34899), + 15: uint16(34974), + 16: uint16(34952), + 17: uint16(34987), + 18: uint16(34962), + 19: uint16(34966), + 20: uint16(34957), + 21: uint16(34955), + 22: uint16(35219), + 23: uint16(35215), + 24: uint16(35370), + 25: uint16(35357), + 26: uint16(35363), + 27: uint16(35365), + 28: uint16(35377), + 29: uint16(35373), + 30: uint16(35359), + 31: uint16(35355), + 32: uint16(35362), + 33: uint16(35913), + 34: uint16(35930), + 35: uint16(36009), + 36: uint16(36012), + 37: uint16(36011), + 38: uint16(36008), + 39: uint16(36010), + 40: uint16(36007), + 41: uint16(36199), + 42: uint16(36198), + 43: uint16(36286), + 44: uint16(36282), + 45: uint16(36571), + 46: uint16(36575), + 47: uint16(36889), + 48: uint16(36877), + 49: uint16(36890), + 50: uint16(36887), + 51: uint16(36899), + 52: uint16(36895), + 53: uint16(36893), + 54: uint16(36880), + 55: uint16(36885), + 56: uint16(36894), + 57: uint16(36896), + 58: uint16(36879), + 59: uint16(36898), + 60: uint16(36886), + 61: uint16(36891), + 62: uint16(36884), + 63: uint16(37096), + 64: uint16(37101), + 65: uint16(37117), + 66: uint16(37207), + 67: uint16(37326), + 68: uint16(37365), + 69: uint16(37350), + 70: uint16(37347), + 71: uint16(37351), + 72: uint16(37357), + 73: uint16(37353), + 74: uint16(38281), + 75: uint16(38506), + 76: uint16(38517), + 77: uint16(38515), + 78: uint16(38520), + 79: uint16(38512), + 80: uint16(38516), + 81: uint16(38518), + 82: uint16(38519), + 83: uint16(38508), + 84: uint16(38592), + 85: uint16(38634), + 86: uint16(38633), + 87: uint16(31456), + 88: uint16(31455), + 89: uint16(38914), + 90: uint16(38915), + 91: uint16(39770), + 92: uint16(40165), + 93: uint16(40565), + 94: uint16(40575), + 95: uint16(40613), + 96: uint16(40635), + 97: uint16(20642), + 98: uint16(20621), + 99: uint16(20613), + 100: uint16(20633), + 101: uint16(20625), + 102: uint16(20608), + 103: uint16(20630), + 104: uint16(20632), + 105: uint16(20634), + 106: uint16(26368), + 107: uint16(20977), + 108: uint16(21106), + 109: uint16(21108), + 110: uint16(21109), + 111: uint16(21097), + 112: uint16(21214), + 113: uint16(21213), + 114: uint16(21211), + 115: uint16(21338), + 116: uint16(21413), + 117: uint16(21883), + 118: uint16(21888), + 119: uint16(21927), + 120: uint16(21884), + 121: uint16(21898), + 122: uint16(21917), + 123: uint16(21912), + 124: uint16(21890), + 125: uint16(21916), + 126: uint16(21930), + 127: uint16(21908), + 128: uint16(21895), + 129: uint16(21899), + 130: uint16(21891), + 131: uint16(21939), + 132: uint16(21934), + 133: uint16(21919), + 134: uint16(21822), + 135: uint16(21938), + 136: uint16(21914), + 137: uint16(21947), + 138: uint16(21932), + 139: uint16(21937), + 140: uint16(21886), + 141: uint16(21897), + 142: uint16(21931), + 143: uint16(21913), + 144: uint16(22285), + 145: uint16(22575), + 146: uint16(22570), + 147: uint16(22580), + 148: uint16(22564), + 149: uint16(22576), + 150: uint16(22577), + 151: uint16(22561), + 152: uint16(22557), + 153: uint16(22560), + 154: uint16(22777), + 155: uint16(22778), + 156: uint16(22880), + }, + 19: { + 0: uint16(23159), + 1: uint16(23194), + 2: uint16(23167), + 3: uint16(23186), + 4: uint16(23195), + 5: uint16(23207), + 6: uint16(23411), + 7: uint16(23409), + 8: uint16(23506), + 9: uint16(23500), + 10: uint16(23507), + 11: uint16(23504), + 12: uint16(23562), + 13: uint16(23563), + 14: uint16(23601), + 15: uint16(23884), + 16: uint16(23888), + 17: uint16(23860), + 18: uint16(23879), + 19: uint16(24061), + 20: uint16(24133), + 21: uint16(24125), + 22: uint16(24128), + 23: uint16(24131), + 24: uint16(24190), + 25: uint16(24266), + 26: uint16(24257), + 27: uint16(24258), + 28: uint16(24260), + 29: uint16(24380), + 30: uint16(24429), + 31: uint16(24489), + 32: uint16(24490), + 33: uint16(24488), + 34: uint16(24785), + 35: uint16(24801), + 36: uint16(24754), + 37: uint16(24758), + 38: uint16(24800), + 39: uint16(24860), + 40: uint16(24867), + 41: uint16(24826), + 42: uint16(24853), + 43: uint16(24816), + 44: uint16(24827), + 45: uint16(24820), + 46: uint16(24936), + 47: uint16(24817), + 48: uint16(24846), + 49: uint16(24822), + 50: uint16(24841), + 51: uint16(24832), + 52: uint16(24850), + 53: uint16(25119), + 54: uint16(25161), + 55: uint16(25507), + 56: uint16(25484), + 57: uint16(25551), + 58: uint16(25536), + 59: uint16(25577), + 60: uint16(25545), + 61: uint16(25542), + 62: uint16(25549), + 63: uint16(25554), + 64: uint16(25571), + 65: uint16(25552), + 66: uint16(25569), + 67: uint16(25558), + 68: uint16(25581), + 69: uint16(25582), + 70: uint16(25462), + 71: uint16(25588), + 72: uint16(25578), + 73: uint16(25563), + 74: uint16(25682), + 75: uint16(25562), + 76: uint16(25593), + 77: uint16(25950), + 78: uint16(25958), + 79: uint16(25954), + 80: uint16(25955), + 81: uint16(26001), + 82: uint16(26000), + 83: uint16(26031), + 84: uint16(26222), + 85: uint16(26224), + 86: uint16(26228), + 87: uint16(26230), + 88: uint16(26223), + 89: uint16(26257), + 90: uint16(26234), + 91: uint16(26238), + 92: uint16(26231), + 93: uint16(26366), + 94: uint16(26367), + 95: uint16(26399), + 96: uint16(26397), + 97: uint16(26874), + 98: uint16(26837), + 99: uint16(26848), + 100: uint16(26840), + 101: uint16(26839), + 102: uint16(26885), + 103: uint16(26847), + 104: uint16(26869), + 105: uint16(26862), + 106: uint16(26855), + 107: uint16(26873), + 108: uint16(26834), + 109: uint16(26866), + 110: uint16(26851), + 111: uint16(26827), + 112: uint16(26829), + 113: uint16(26893), + 114: uint16(26898), + 115: uint16(26894), + 116: uint16(26825), + 117: uint16(26842), + 118: uint16(26990), + 119: uint16(26875), + 120: uint16(27454), + 121: uint16(27450), + 122: uint16(27453), + 123: uint16(27544), + 124: uint16(27542), + 125: uint16(27580), + 126: uint16(27631), + 127: uint16(27694), + 128: uint16(27695), + 129: uint16(27692), + 130: uint16(28207), + 131: uint16(28216), + 132: uint16(28244), + 133: uint16(28193), + 134: uint16(28210), + 135: uint16(28263), + 136: uint16(28234), + 137: uint16(28192), + 138: uint16(28197), + 139: uint16(28195), + 140: uint16(28187), + 141: uint16(28251), + 142: uint16(28248), + 143: uint16(28196), + 144: uint16(28246), + 145: uint16(28270), + 146: uint16(28205), + 147: uint16(28198), + 148: uint16(28271), + 149: uint16(28212), + 150: uint16(28237), + 151: uint16(28218), + 152: uint16(28204), + 153: uint16(28227), + 154: uint16(28189), + 155: uint16(28222), + 156: uint16(28363), + }, + 20: { + 0: uint16(28297), + 1: uint16(28185), + 2: uint16(28238), + 3: uint16(28259), + 4: uint16(28228), + 5: uint16(28274), + 6: uint16(28265), + 7: uint16(28255), + 8: uint16(28953), + 9: uint16(28954), + 10: uint16(28966), + 11: uint16(28976), + 12: uint16(28961), + 13: uint16(28982), + 14: uint16(29038), + 15: uint16(28956), + 16: uint16(29260), + 17: uint16(29316), + 18: uint16(29312), + 19: uint16(29494), + 20: uint16(29477), + 21: uint16(29492), + 22: uint16(29481), + 23: uint16(29754), + 24: uint16(29738), + 25: uint16(29747), + 26: uint16(29730), + 27: uint16(29733), + 28: uint16(29749), + 29: uint16(29750), + 30: uint16(29748), + 31: uint16(29743), + 32: uint16(29723), + 33: uint16(29734), + 34: uint16(29736), + 35: uint16(29989), + 36: uint16(29990), + 37: uint16(30059), + 38: uint16(30058), + 39: uint16(30178), + 40: uint16(30171), + 41: uint16(30179), + 42: uint16(30169), + 43: uint16(30168), + 44: uint16(30174), + 45: uint16(30176), + 46: uint16(30331), + 47: uint16(30332), + 48: uint16(30358), + 49: uint16(30355), + 50: uint16(30388), + 51: uint16(30428), + 52: uint16(30543), + 53: uint16(30701), + 54: uint16(30813), + 55: uint16(30828), + 56: uint16(30831), + 57: uint16(31245), + 58: uint16(31240), + 59: uint16(31243), + 60: uint16(31237), + 61: uint16(31232), + 62: uint16(31384), + 63: uint16(31383), + 64: uint16(31382), + 65: uint16(31461), + 66: uint16(31459), + 67: uint16(31561), + 68: uint16(31574), + 69: uint16(31558), + 70: uint16(31568), + 71: uint16(31570), + 72: uint16(31572), + 73: uint16(31565), + 74: uint16(31563), + 75: uint16(31567), + 76: uint16(31569), + 77: uint16(31903), + 78: uint16(31909), + 79: uint16(32094), + 80: uint16(32080), + 81: uint16(32104), + 82: uint16(32085), + 83: uint16(32043), + 84: uint16(32110), + 85: uint16(32114), + 86: uint16(32097), + 87: uint16(32102), + 88: uint16(32098), + 89: uint16(32112), + 90: uint16(32115), + 91: uint16(21892), + 92: uint16(32724), + 93: uint16(32725), + 94: uint16(32779), + 95: uint16(32850), + 96: uint16(32901), + 97: uint16(33109), + 98: uint16(33108), + 99: uint16(33099), + 100: uint16(33105), + 101: uint16(33102), + 102: uint16(33081), + 103: uint16(33094), + 104: uint16(33086), + 105: uint16(33100), + 106: uint16(33107), + 107: uint16(33140), + 108: uint16(33298), + 109: uint16(33308), + 110: uint16(33769), + 111: uint16(33795), + 112: uint16(33784), + 113: uint16(33805), + 114: uint16(33760), + 115: uint16(33733), + 116: uint16(33803), + 117: uint16(33729), + 118: uint16(33775), + 119: uint16(33777), + 120: uint16(33780), + 121: uint16(33879), + 122: uint16(33802), + 123: uint16(33776), + 124: uint16(33804), + 125: uint16(33740), + 126: uint16(33789), + 127: uint16(33778), + 128: uint16(33738), + 129: uint16(33848), + 130: uint16(33806), + 131: uint16(33796), + 132: uint16(33756), + 133: uint16(33799), + 134: uint16(33748), + 135: uint16(33759), + 136: uint16(34395), + 137: uint16(34527), + 138: uint16(34521), + 139: uint16(34541), + 140: uint16(34516), + 141: uint16(34523), + 142: uint16(34532), + 143: uint16(34512), + 144: uint16(34526), + 145: uint16(34903), + 146: uint16(35009), + 147: uint16(35010), + 148: uint16(34993), + 149: uint16(35203), + 150: uint16(35222), + 151: uint16(35387), + 152: uint16(35424), + 153: uint16(35413), + 154: uint16(35422), + 155: uint16(35388), + 156: uint16(35393), + }, + 21: { + 0: uint16(35412), + 1: uint16(35419), + 2: uint16(35408), + 3: uint16(35398), + 4: uint16(35380), + 5: uint16(35386), + 6: uint16(35382), + 7: uint16(35414), + 8: uint16(35937), + 9: uint16(35970), + 10: uint16(36015), + 11: uint16(36028), + 12: uint16(36019), + 13: uint16(36029), + 14: uint16(36033), + 15: uint16(36027), + 16: uint16(36032), + 17: uint16(36020), + 18: uint16(36023), + 19: uint16(36022), + 20: uint16(36031), + 21: uint16(36024), + 22: uint16(36234), + 23: uint16(36229), + 24: uint16(36225), + 25: uint16(36302), + 26: uint16(36317), + 27: uint16(36299), + 28: uint16(36314), + 29: uint16(36305), + 30: uint16(36300), + 31: uint16(36315), + 32: uint16(36294), + 33: uint16(36603), + 34: uint16(36600), + 35: uint16(36604), + 36: uint16(36764), + 37: uint16(36910), + 38: uint16(36917), + 39: uint16(36913), + 40: uint16(36920), + 41: uint16(36914), + 42: uint16(36918), + 43: uint16(37122), + 44: uint16(37109), + 45: uint16(37129), + 46: uint16(37118), + 47: uint16(37219), + 48: uint16(37221), + 49: uint16(37327), + 50: uint16(37396), + 51: uint16(37397), + 52: uint16(37411), + 53: uint16(37385), + 54: uint16(37406), + 55: uint16(37389), + 56: uint16(37392), + 57: uint16(37383), + 58: uint16(37393), + 59: uint16(38292), + 60: uint16(38287), + 61: uint16(38283), + 62: uint16(38289), + 63: uint16(38291), + 64: uint16(38290), + 65: uint16(38286), + 66: uint16(38538), + 67: uint16(38542), + 68: uint16(38539), + 69: uint16(38525), + 70: uint16(38533), + 71: uint16(38534), + 72: uint16(38541), + 73: uint16(38514), + 74: uint16(38532), + 75: uint16(38593), + 76: uint16(38597), + 77: uint16(38596), + 78: uint16(38598), + 79: uint16(38599), + 80: uint16(38639), + 81: uint16(38642), + 82: uint16(38860), + 83: uint16(38917), + 84: uint16(38918), + 85: uint16(38920), + 86: uint16(39143), + 87: uint16(39146), + 88: uint16(39151), + 89: uint16(39145), + 90: uint16(39154), + 91: uint16(39149), + 92: uint16(39342), + 93: uint16(39341), + 94: uint16(40643), + 95: uint16(40653), + 96: uint16(40657), + 97: uint16(20098), + 98: uint16(20653), + 99: uint16(20661), + 100: uint16(20658), + 101: uint16(20659), + 102: uint16(20677), + 103: uint16(20670), + 104: uint16(20652), + 105: uint16(20663), + 106: uint16(20667), + 107: uint16(20655), + 108: uint16(20679), + 109: uint16(21119), + 110: uint16(21111), + 111: uint16(21117), + 112: uint16(21215), + 113: uint16(21222), + 114: uint16(21220), + 115: uint16(21218), + 116: uint16(21219), + 117: uint16(21295), + 118: uint16(21983), + 119: uint16(21992), + 120: uint16(21971), + 121: uint16(21990), + 122: uint16(21966), + 123: uint16(21980), + 124: uint16(21959), + 125: uint16(21969), + 126: uint16(21987), + 127: uint16(21988), + 128: uint16(21999), + 129: uint16(21978), + 130: uint16(21985), + 131: uint16(21957), + 132: uint16(21958), + 133: uint16(21989), + 134: uint16(21961), + 135: uint16(22290), + 136: uint16(22291), + 137: uint16(22622), + 138: uint16(22609), + 139: uint16(22616), + 140: uint16(22615), + 141: uint16(22618), + 142: uint16(22612), + 143: uint16(22635), + 144: uint16(22604), + 145: uint16(22637), + 146: uint16(22602), + 147: uint16(22626), + 148: uint16(22610), + 149: uint16(22603), + 150: uint16(22887), + 151: uint16(23233), + 152: uint16(23241), + 153: uint16(23244), + 154: uint16(23230), + 155: uint16(23229), + 156: uint16(23228), + }, + 22: { + 0: uint16(23219), + 1: uint16(23234), + 2: uint16(23218), + 3: uint16(23913), + 4: uint16(23919), + 5: uint16(24140), + 6: uint16(24185), + 7: uint16(24265), + 8: uint16(24264), + 9: uint16(24338), + 10: uint16(24409), + 11: uint16(24492), + 12: uint16(24494), + 13: uint16(24858), + 14: uint16(24847), + 15: uint16(24904), + 16: uint16(24863), + 17: uint16(24819), + 18: uint16(24859), + 19: uint16(24825), + 20: uint16(24833), + 21: uint16(24840), + 22: uint16(24910), + 23: uint16(24908), + 24: uint16(24900), + 25: uint16(24909), + 26: uint16(24894), + 27: uint16(24884), + 28: uint16(24871), + 29: uint16(24845), + 30: uint16(24838), + 31: uint16(24887), + 32: uint16(25121), + 33: uint16(25122), + 34: uint16(25619), + 35: uint16(25662), + 36: uint16(25630), + 37: uint16(25642), + 38: uint16(25645), + 39: uint16(25661), + 40: uint16(25644), + 41: uint16(25615), + 42: uint16(25628), + 43: uint16(25620), + 44: uint16(25613), + 45: uint16(25654), + 46: uint16(25622), + 47: uint16(25623), + 48: uint16(25606), + 49: uint16(25964), + 50: uint16(26015), + 51: uint16(26032), + 52: uint16(26263), + 53: uint16(26249), + 54: uint16(26247), + 55: uint16(26248), + 56: uint16(26262), + 57: uint16(26244), + 58: uint16(26264), + 59: uint16(26253), + 60: uint16(26371), + 61: uint16(27028), + 62: uint16(26989), + 63: uint16(26970), + 64: uint16(26999), + 65: uint16(26976), + 66: uint16(26964), + 67: uint16(26997), + 68: uint16(26928), + 69: uint16(27010), + 70: uint16(26954), + 71: uint16(26984), + 72: uint16(26987), + 73: uint16(26974), + 74: uint16(26963), + 75: uint16(27001), + 76: uint16(27014), + 77: uint16(26973), + 78: uint16(26979), + 79: uint16(26971), + 80: uint16(27463), + 81: uint16(27506), + 82: uint16(27584), + 83: uint16(27583), + 84: uint16(27603), + 85: uint16(27645), + 86: uint16(28322), + 87: uint16(28335), + 88: uint16(28371), + 89: uint16(28342), + 90: uint16(28354), + 91: uint16(28304), + 92: uint16(28317), + 93: uint16(28359), + 94: uint16(28357), + 95: uint16(28325), + 96: uint16(28312), + 97: uint16(28348), + 98: uint16(28346), + 99: uint16(28331), + 100: uint16(28369), + 101: uint16(28310), + 102: uint16(28316), + 103: uint16(28356), + 104: uint16(28372), + 105: uint16(28330), + 106: uint16(28327), + 107: uint16(28340), + 108: uint16(29006), + 109: uint16(29017), + 110: uint16(29033), + 111: uint16(29028), + 112: uint16(29001), + 113: uint16(29031), + 114: uint16(29020), + 115: uint16(29036), + 116: uint16(29030), + 117: uint16(29004), + 118: uint16(29029), + 119: uint16(29022), + 120: uint16(28998), + 121: uint16(29032), + 122: uint16(29014), + 123: uint16(29242), + 124: uint16(29266), + 125: uint16(29495), + 126: uint16(29509), + 127: uint16(29503), + 128: uint16(29502), + 129: uint16(29807), + 130: uint16(29786), + 131: uint16(29781), + 132: uint16(29791), + 133: uint16(29790), + 134: uint16(29761), + 135: uint16(29759), + 136: uint16(29785), + 137: uint16(29787), + 138: uint16(29788), + 139: uint16(30070), + 140: uint16(30072), + 141: uint16(30208), + 142: uint16(30192), + 143: uint16(30209), + 144: uint16(30194), + 145: uint16(30193), + 146: uint16(30202), + 147: uint16(30207), + 148: uint16(30196), + 149: uint16(30195), + 150: uint16(30430), + 151: uint16(30431), + 152: uint16(30555), + 153: uint16(30571), + 154: uint16(30566), + 155: uint16(30558), + 156: uint16(30563), + }, + 23: { + 0: uint16(30585), + 1: uint16(30570), + 2: uint16(30572), + 3: uint16(30556), + 4: uint16(30565), + 5: uint16(30568), + 6: uint16(30562), + 7: uint16(30702), + 8: uint16(30862), + 9: uint16(30896), + 10: uint16(30871), + 11: uint16(30872), + 12: uint16(30860), + 13: uint16(30857), + 14: uint16(30844), + 15: uint16(30865), + 16: uint16(30867), + 17: uint16(30847), + 18: uint16(31098), + 19: uint16(31103), + 20: uint16(31105), + 21: uint16(33836), + 22: uint16(31165), + 23: uint16(31260), + 24: uint16(31258), + 25: uint16(31264), + 26: uint16(31252), + 27: uint16(31263), + 28: uint16(31262), + 29: uint16(31391), + 30: uint16(31392), + 31: uint16(31607), + 32: uint16(31680), + 33: uint16(31584), + 34: uint16(31598), + 35: uint16(31591), + 36: uint16(31921), + 37: uint16(31923), + 38: uint16(31925), + 39: uint16(32147), + 40: uint16(32121), + 41: uint16(32145), + 42: uint16(32129), + 43: uint16(32143), + 44: uint16(32091), + 45: uint16(32622), + 46: uint16(32617), + 47: uint16(32618), + 48: uint16(32626), + 49: uint16(32681), + 50: uint16(32680), + 51: uint16(32676), + 52: uint16(32854), + 53: uint16(32856), + 54: uint16(32902), + 55: uint16(32900), + 56: uint16(33137), + 57: uint16(33136), + 58: uint16(33144), + 59: uint16(33125), + 60: uint16(33134), + 61: uint16(33139), + 62: uint16(33131), + 63: uint16(33145), + 64: uint16(33146), + 65: uint16(33126), + 66: uint16(33285), + 67: uint16(33351), + 68: uint16(33922), + 69: uint16(33911), + 70: uint16(33853), + 71: uint16(33841), + 72: uint16(33909), + 73: uint16(33894), + 74: uint16(33899), + 75: uint16(33865), + 76: uint16(33900), + 77: uint16(33883), + 78: uint16(33852), + 79: uint16(33845), + 80: uint16(33889), + 81: uint16(33891), + 82: uint16(33897), + 83: uint16(33901), + 84: uint16(33862), + 85: uint16(34398), + 86: uint16(34396), + 87: uint16(34399), + 88: uint16(34553), + 89: uint16(34579), + 90: uint16(34568), + 91: uint16(34567), + 92: uint16(34560), + 93: uint16(34558), + 94: uint16(34555), + 95: uint16(34562), + 96: uint16(34563), + 97: uint16(34566), + 98: uint16(34570), + 99: uint16(34905), + 100: uint16(35039), + 101: uint16(35028), + 102: uint16(35033), + 103: uint16(35036), + 104: uint16(35032), + 105: uint16(35037), + 106: uint16(35041), + 107: uint16(35018), + 108: uint16(35029), + 109: uint16(35026), + 110: uint16(35228), + 111: uint16(35299), + 112: uint16(35435), + 113: uint16(35442), + 114: uint16(35443), + 115: uint16(35430), + 116: uint16(35433), + 117: uint16(35440), + 118: uint16(35463), + 119: uint16(35452), + 120: uint16(35427), + 121: uint16(35488), + 122: uint16(35441), + 123: uint16(35461), + 124: uint16(35437), + 125: uint16(35426), + 126: uint16(35438), + 127: uint16(35436), + 128: uint16(35449), + 129: uint16(35451), + 130: uint16(35390), + 131: uint16(35432), + 132: uint16(35938), + 133: uint16(35978), + 134: uint16(35977), + 135: uint16(36042), + 136: uint16(36039), + 137: uint16(36040), + 138: uint16(36036), + 139: uint16(36018), + 140: uint16(36035), + 141: uint16(36034), + 142: uint16(36037), + 143: uint16(36321), + 144: uint16(36319), + 145: uint16(36328), + 146: uint16(36335), + 147: uint16(36339), + 148: uint16(36346), + 149: uint16(36330), + 150: uint16(36324), + 151: uint16(36326), + 152: uint16(36530), + 153: uint16(36611), + 154: uint16(36617), + 155: uint16(36606), + 156: uint16(36618), + }, + 24: { + 0: uint16(36767), + 1: uint16(36786), + 2: uint16(36939), + 3: uint16(36938), + 4: uint16(36947), + 5: uint16(36930), + 6: uint16(36948), + 7: uint16(36924), + 8: uint16(36949), + 9: uint16(36944), + 10: uint16(36935), + 11: uint16(36943), + 12: uint16(36942), + 13: uint16(36941), + 14: uint16(36945), + 15: uint16(36926), + 16: uint16(36929), + 17: uint16(37138), + 18: uint16(37143), + 19: uint16(37228), + 20: uint16(37226), + 21: uint16(37225), + 22: uint16(37321), + 23: uint16(37431), + 24: uint16(37463), + 25: uint16(37432), + 26: uint16(37437), + 27: uint16(37440), + 28: uint16(37438), + 29: uint16(37467), + 30: uint16(37451), + 31: uint16(37476), + 32: uint16(37457), + 33: uint16(37428), + 34: uint16(37449), + 35: uint16(37453), + 36: uint16(37445), + 37: uint16(37433), + 38: uint16(37439), + 39: uint16(37466), + 40: uint16(38296), + 41: uint16(38552), + 42: uint16(38548), + 43: uint16(38549), + 44: uint16(38605), + 45: uint16(38603), + 46: uint16(38601), + 47: uint16(38602), + 48: uint16(38647), + 49: uint16(38651), + 50: uint16(38649), + 51: uint16(38646), + 52: uint16(38742), + 53: uint16(38772), + 54: uint16(38774), + 55: uint16(38928), + 56: uint16(38929), + 57: uint16(38931), + 58: uint16(38922), + 59: uint16(38930), + 60: uint16(38924), + 61: uint16(39164), + 62: uint16(39156), + 63: uint16(39165), + 64: uint16(39166), + 65: uint16(39347), + 66: uint16(39345), + 67: uint16(39348), + 68: uint16(39649), + 69: uint16(40169), + 70: uint16(40578), + 71: uint16(40718), + 72: uint16(40723), + 73: uint16(40736), + 74: uint16(20711), + 75: uint16(20718), + 76: uint16(20709), + 77: uint16(20694), + 78: uint16(20717), + 79: uint16(20698), + 80: uint16(20693), + 81: uint16(20687), + 82: uint16(20689), + 83: uint16(20721), + 84: uint16(20686), + 85: uint16(20713), + 86: uint16(20834), + 87: uint16(20979), + 88: uint16(21123), + 89: uint16(21122), + 90: uint16(21297), + 91: uint16(21421), + 92: uint16(22014), + 93: uint16(22016), + 94: uint16(22043), + 95: uint16(22039), + 96: uint16(22013), + 97: uint16(22036), + 98: uint16(22022), + 99: uint16(22025), + 100: uint16(22029), + 101: uint16(22030), + 102: uint16(22007), + 103: uint16(22038), + 104: uint16(22047), + 105: uint16(22024), + 106: uint16(22032), + 107: uint16(22006), + 108: uint16(22296), + 109: uint16(22294), + 110: uint16(22645), + 111: uint16(22654), + 112: uint16(22659), + 113: uint16(22675), + 114: uint16(22666), + 115: uint16(22649), + 116: uint16(22661), + 117: uint16(22653), + 118: uint16(22781), + 119: uint16(22821), + 120: uint16(22818), + 121: uint16(22820), + 122: uint16(22890), + 123: uint16(22889), + 124: uint16(23265), + 125: uint16(23270), + 126: uint16(23273), + 127: uint16(23255), + 128: uint16(23254), + 129: uint16(23256), + 130: uint16(23267), + 131: uint16(23413), + 132: uint16(23518), + 133: uint16(23527), + 134: uint16(23521), + 135: uint16(23525), + 136: uint16(23526), + 137: uint16(23528), + 138: uint16(23522), + 139: uint16(23524), + 140: uint16(23519), + 141: uint16(23565), + 142: uint16(23650), + 143: uint16(23940), + 144: uint16(23943), + 145: uint16(24155), + 146: uint16(24163), + 147: uint16(24149), + 148: uint16(24151), + 149: uint16(24148), + 150: uint16(24275), + 151: uint16(24278), + 152: uint16(24330), + 153: uint16(24390), + 154: uint16(24432), + 155: uint16(24505), + 156: uint16(24903), + }, + 25: { + 0: uint16(24895), + 1: uint16(24907), + 2: uint16(24951), + 3: uint16(24930), + 4: uint16(24931), + 5: uint16(24927), + 6: uint16(24922), + 7: uint16(24920), + 8: uint16(24949), + 9: uint16(25130), + 10: uint16(25735), + 11: uint16(25688), + 12: uint16(25684), + 13: uint16(25764), + 14: uint16(25720), + 15: uint16(25695), + 16: uint16(25722), + 17: uint16(25681), + 18: uint16(25703), + 19: uint16(25652), + 20: uint16(25709), + 21: uint16(25723), + 22: uint16(25970), + 23: uint16(26017), + 24: uint16(26071), + 25: uint16(26070), + 26: uint16(26274), + 27: uint16(26280), + 28: uint16(26269), + 29: uint16(27036), + 30: uint16(27048), + 31: uint16(27029), + 32: uint16(27073), + 33: uint16(27054), + 34: uint16(27091), + 35: uint16(27083), + 36: uint16(27035), + 37: uint16(27063), + 38: uint16(27067), + 39: uint16(27051), + 40: uint16(27060), + 41: uint16(27088), + 42: uint16(27085), + 43: uint16(27053), + 44: uint16(27084), + 45: uint16(27046), + 46: uint16(27075), + 47: uint16(27043), + 48: uint16(27465), + 49: uint16(27468), + 50: uint16(27699), + 51: uint16(28467), + 52: uint16(28436), + 53: uint16(28414), + 54: uint16(28435), + 55: uint16(28404), + 56: uint16(28457), + 57: uint16(28478), + 58: uint16(28448), + 59: uint16(28460), + 60: uint16(28431), + 61: uint16(28418), + 62: uint16(28450), + 63: uint16(28415), + 64: uint16(28399), + 65: uint16(28422), + 66: uint16(28465), + 67: uint16(28472), + 68: uint16(28466), + 69: uint16(28451), + 70: uint16(28437), + 71: uint16(28459), + 72: uint16(28463), + 73: uint16(28552), + 74: uint16(28458), + 75: uint16(28396), + 76: uint16(28417), + 77: uint16(28402), + 78: uint16(28364), + 79: uint16(28407), + 80: uint16(29076), + 81: uint16(29081), + 82: uint16(29053), + 83: uint16(29066), + 84: uint16(29060), + 85: uint16(29074), + 86: uint16(29246), + 87: uint16(29330), + 88: uint16(29334), + 89: uint16(29508), + 90: uint16(29520), + 91: uint16(29796), + 92: uint16(29795), + 93: uint16(29802), + 94: uint16(29808), + 95: uint16(29805), + 96: uint16(29956), + 97: uint16(30097), + 98: uint16(30247), + 99: uint16(30221), + 100: uint16(30219), + 101: uint16(30217), + 102: uint16(30227), + 103: uint16(30433), + 104: uint16(30435), + 105: uint16(30596), + 106: uint16(30589), + 107: uint16(30591), + 108: uint16(30561), + 109: uint16(30913), + 110: uint16(30879), + 111: uint16(30887), + 112: uint16(30899), + 113: uint16(30889), + 114: uint16(30883), + 115: uint16(31118), + 116: uint16(31119), + 117: uint16(31117), + 118: uint16(31278), + 119: uint16(31281), + 120: uint16(31402), + 121: uint16(31401), + 122: uint16(31469), + 123: uint16(31471), + 124: uint16(31649), + 125: uint16(31637), + 126: uint16(31627), + 127: uint16(31605), + 128: uint16(31639), + 129: uint16(31645), + 130: uint16(31636), + 131: uint16(31631), + 132: uint16(31672), + 133: uint16(31623), + 134: uint16(31620), + 135: uint16(31929), + 136: uint16(31933), + 137: uint16(31934), + 138: uint16(32187), + 139: uint16(32176), + 140: uint16(32156), + 141: uint16(32189), + 142: uint16(32190), + 143: uint16(32160), + 144: uint16(32202), + 145: uint16(32180), + 146: uint16(32178), + 147: uint16(32177), + 148: uint16(32186), + 149: uint16(32162), + 150: uint16(32191), + 151: uint16(32181), + 152: uint16(32184), + 153: uint16(32173), + 154: uint16(32210), + 155: uint16(32199), + 156: uint16(32172), + }, + 26: { + 0: uint16(32624), + 1: uint16(32736), + 2: uint16(32737), + 3: uint16(32735), + 4: uint16(32862), + 5: uint16(32858), + 6: uint16(32903), + 7: uint16(33104), + 8: uint16(33152), + 9: uint16(33167), + 10: uint16(33160), + 11: uint16(33162), + 12: uint16(33151), + 13: uint16(33154), + 14: uint16(33255), + 15: uint16(33274), + 16: uint16(33287), + 17: uint16(33300), + 18: uint16(33310), + 19: uint16(33355), + 20: uint16(33993), + 21: uint16(33983), + 22: uint16(33990), + 23: uint16(33988), + 24: uint16(33945), + 25: uint16(33950), + 26: uint16(33970), + 27: uint16(33948), + 28: uint16(33995), + 29: uint16(33976), + 30: uint16(33984), + 31: uint16(34003), + 32: uint16(33936), + 33: uint16(33980), + 34: uint16(34001), + 35: uint16(33994), + 36: uint16(34623), + 37: uint16(34588), + 38: uint16(34619), + 39: uint16(34594), + 40: uint16(34597), + 41: uint16(34612), + 42: uint16(34584), + 43: uint16(34645), + 44: uint16(34615), + 45: uint16(34601), + 46: uint16(35059), + 47: uint16(35074), + 48: uint16(35060), + 49: uint16(35065), + 50: uint16(35064), + 51: uint16(35069), + 52: uint16(35048), + 53: uint16(35098), + 54: uint16(35055), + 55: uint16(35494), + 56: uint16(35468), + 57: uint16(35486), + 58: uint16(35491), + 59: uint16(35469), + 60: uint16(35489), + 61: uint16(35475), + 62: uint16(35492), + 63: uint16(35498), + 64: uint16(35493), + 65: uint16(35496), + 66: uint16(35480), + 67: uint16(35473), + 68: uint16(35482), + 69: uint16(35495), + 70: uint16(35946), + 71: uint16(35981), + 72: uint16(35980), + 73: uint16(36051), + 74: uint16(36049), + 75: uint16(36050), + 76: uint16(36203), + 77: uint16(36249), + 78: uint16(36245), + 79: uint16(36348), + 80: uint16(36628), + 81: uint16(36626), + 82: uint16(36629), + 83: uint16(36627), + 84: uint16(36771), + 85: uint16(36960), + 86: uint16(36952), + 87: uint16(36956), + 88: uint16(36963), + 89: uint16(36953), + 90: uint16(36958), + 91: uint16(36962), + 92: uint16(36957), + 93: uint16(36955), + 94: uint16(37145), + 95: uint16(37144), + 96: uint16(37150), + 97: uint16(37237), + 98: uint16(37240), + 99: uint16(37239), + 100: uint16(37236), + 101: uint16(37496), + 102: uint16(37504), + 103: uint16(37509), + 104: uint16(37528), + 105: uint16(37526), + 106: uint16(37499), + 107: uint16(37523), + 108: uint16(37532), + 109: uint16(37544), + 110: uint16(37500), + 111: uint16(37521), + 112: uint16(38305), + 113: uint16(38312), + 114: uint16(38313), + 115: uint16(38307), + 116: uint16(38309), + 117: uint16(38308), + 118: uint16(38553), + 119: uint16(38556), + 120: uint16(38555), + 121: uint16(38604), + 122: uint16(38610), + 123: uint16(38656), + 124: uint16(38780), + 125: uint16(38789), + 126: uint16(38902), + 127: uint16(38935), + 128: uint16(38936), + 129: uint16(39087), + 130: uint16(39089), + 131: uint16(39171), + 132: uint16(39173), + 133: uint16(39180), + 134: uint16(39177), + 135: uint16(39361), + 136: uint16(39599), + 137: uint16(39600), + 138: uint16(39654), + 139: uint16(39745), + 140: uint16(39746), + 141: uint16(40180), + 142: uint16(40182), + 143: uint16(40179), + 144: uint16(40636), + 145: uint16(40763), + 146: uint16(40778), + 147: uint16(20740), + 148: uint16(20736), + 149: uint16(20731), + 150: uint16(20725), + 151: uint16(20729), + 152: uint16(20738), + 153: uint16(20744), + 154: uint16(20745), + 155: uint16(20741), + 156: uint16(20956), + }, + 27: { + 0: uint16(21127), + 1: uint16(21128), + 2: uint16(21129), + 3: uint16(21133), + 4: uint16(21130), + 5: uint16(21232), + 6: uint16(21426), + 7: uint16(22062), + 8: uint16(22075), + 9: uint16(22073), + 10: uint16(22066), + 11: uint16(22079), + 12: uint16(22068), + 13: uint16(22057), + 14: uint16(22099), + 15: uint16(22094), + 16: uint16(22103), + 17: uint16(22132), + 18: uint16(22070), + 19: uint16(22063), + 20: uint16(22064), + 21: uint16(22656), + 22: uint16(22687), + 23: uint16(22686), + 24: uint16(22707), + 25: uint16(22684), + 26: uint16(22702), + 27: uint16(22697), + 28: uint16(22694), + 29: uint16(22893), + 30: uint16(23305), + 31: uint16(23291), + 32: uint16(23307), + 33: uint16(23285), + 34: uint16(23308), + 35: uint16(23304), + 36: uint16(23534), + 37: uint16(23532), + 38: uint16(23529), + 39: uint16(23531), + 40: uint16(23652), + 41: uint16(23653), + 42: uint16(23965), + 43: uint16(23956), + 44: uint16(24162), + 45: uint16(24159), + 46: uint16(24161), + 47: uint16(24290), + 48: uint16(24282), + 49: uint16(24287), + 50: uint16(24285), + 51: uint16(24291), + 52: uint16(24288), + 53: uint16(24392), + 54: uint16(24433), + 55: uint16(24503), + 56: uint16(24501), + 57: uint16(24950), + 58: uint16(24935), + 59: uint16(24942), + 60: uint16(24925), + 61: uint16(24917), + 62: uint16(24962), + 63: uint16(24956), + 64: uint16(24944), + 65: uint16(24939), + 66: uint16(24958), + 67: uint16(24999), + 68: uint16(24976), + 69: uint16(25003), + 70: uint16(24974), + 71: uint16(25004), + 72: uint16(24986), + 73: uint16(24996), + 74: uint16(24980), + 75: uint16(25006), + 76: uint16(25134), + 77: uint16(25705), + 78: uint16(25711), + 79: uint16(25721), + 80: uint16(25758), + 81: uint16(25778), + 82: uint16(25736), + 83: uint16(25744), + 84: uint16(25776), + 85: uint16(25765), + 86: uint16(25747), + 87: uint16(25749), + 88: uint16(25769), + 89: uint16(25746), + 90: uint16(25774), + 91: uint16(25773), + 92: uint16(25771), + 93: uint16(25754), + 94: uint16(25772), + 95: uint16(25753), + 96: uint16(25762), + 97: uint16(25779), + 98: uint16(25973), + 99: uint16(25975), + 100: uint16(25976), + 101: uint16(26286), + 102: uint16(26283), + 103: uint16(26292), + 104: uint16(26289), + 105: uint16(27171), + 106: uint16(27167), + 107: uint16(27112), + 108: uint16(27137), + 109: uint16(27166), + 110: uint16(27161), + 111: uint16(27133), + 112: uint16(27169), + 113: uint16(27155), + 114: uint16(27146), + 115: uint16(27123), + 116: uint16(27138), + 117: uint16(27141), + 118: uint16(27117), + 119: uint16(27153), + 120: uint16(27472), + 121: uint16(27470), + 122: uint16(27556), + 123: uint16(27589), + 124: uint16(27590), + 125: uint16(28479), + 126: uint16(28540), + 127: uint16(28548), + 128: uint16(28497), + 129: uint16(28518), + 130: uint16(28500), + 131: uint16(28550), + 132: uint16(28525), + 133: uint16(28507), + 134: uint16(28536), + 135: uint16(28526), + 136: uint16(28558), + 137: uint16(28538), + 138: uint16(28528), + 139: uint16(28516), + 140: uint16(28567), + 141: uint16(28504), + 142: uint16(28373), + 143: uint16(28527), + 144: uint16(28512), + 145: uint16(28511), + 146: uint16(29087), + 147: uint16(29100), + 148: uint16(29105), + 149: uint16(29096), + 150: uint16(29270), + 151: uint16(29339), + 152: uint16(29518), + 153: uint16(29527), + 154: uint16(29801), + 155: uint16(29835), + 156: uint16(29827), + }, + 28: { + 0: uint16(29822), + 1: uint16(29824), + 2: uint16(30079), + 3: uint16(30240), + 4: uint16(30249), + 5: uint16(30239), + 6: uint16(30244), + 7: uint16(30246), + 8: uint16(30241), + 9: uint16(30242), + 10: uint16(30362), + 11: uint16(30394), + 12: uint16(30436), + 13: uint16(30606), + 14: uint16(30599), + 15: uint16(30604), + 16: uint16(30609), + 17: uint16(30603), + 18: uint16(30923), + 19: uint16(30917), + 20: uint16(30906), + 21: uint16(30922), + 22: uint16(30910), + 23: uint16(30933), + 24: uint16(30908), + 25: uint16(30928), + 26: uint16(31295), + 27: uint16(31292), + 28: uint16(31296), + 29: uint16(31293), + 30: uint16(31287), + 31: uint16(31291), + 32: uint16(31407), + 33: uint16(31406), + 34: uint16(31661), + 35: uint16(31665), + 36: uint16(31684), + 37: uint16(31668), + 38: uint16(31686), + 39: uint16(31687), + 40: uint16(31681), + 41: uint16(31648), + 42: uint16(31692), + 43: uint16(31946), + 44: uint16(32224), + 45: uint16(32244), + 46: uint16(32239), + 47: uint16(32251), + 48: uint16(32216), + 49: uint16(32236), + 50: uint16(32221), + 51: uint16(32232), + 52: uint16(32227), + 53: uint16(32218), + 54: uint16(32222), + 55: uint16(32233), + 56: uint16(32158), + 57: uint16(32217), + 58: uint16(32242), + 59: uint16(32249), + 60: uint16(32629), + 61: uint16(32631), + 62: uint16(32687), + 63: uint16(32745), + 64: uint16(32806), + 65: uint16(33179), + 66: uint16(33180), + 67: uint16(33181), + 68: uint16(33184), + 69: uint16(33178), + 70: uint16(33176), + 71: uint16(34071), + 72: uint16(34109), + 73: uint16(34074), + 74: uint16(34030), + 75: uint16(34092), + 76: uint16(34093), + 77: uint16(34067), + 78: uint16(34065), + 79: uint16(34083), + 80: uint16(34081), + 81: uint16(34068), + 82: uint16(34028), + 83: uint16(34085), + 84: uint16(34047), + 85: uint16(34054), + 86: uint16(34690), + 87: uint16(34676), + 88: uint16(34678), + 89: uint16(34656), + 90: uint16(34662), + 91: uint16(34680), + 92: uint16(34664), + 93: uint16(34649), + 94: uint16(34647), + 95: uint16(34636), + 96: uint16(34643), + 97: uint16(34907), + 98: uint16(34909), + 99: uint16(35088), + 100: uint16(35079), + 101: uint16(35090), + 102: uint16(35091), + 103: uint16(35093), + 104: uint16(35082), + 105: uint16(35516), + 106: uint16(35538), + 107: uint16(35527), + 108: uint16(35524), + 109: uint16(35477), + 110: uint16(35531), + 111: uint16(35576), + 112: uint16(35506), + 113: uint16(35529), + 114: uint16(35522), + 115: uint16(35519), + 116: uint16(35504), + 117: uint16(35542), + 118: uint16(35533), + 119: uint16(35510), + 120: uint16(35513), + 121: uint16(35547), + 122: uint16(35916), + 123: uint16(35918), + 124: uint16(35948), + 125: uint16(36064), + 126: uint16(36062), + 127: uint16(36070), + 128: uint16(36068), + 129: uint16(36076), + 130: uint16(36077), + 131: uint16(36066), + 132: uint16(36067), + 133: uint16(36060), + 134: uint16(36074), + 135: uint16(36065), + 136: uint16(36205), + 137: uint16(36255), + 138: uint16(36259), + 139: uint16(36395), + 140: uint16(36368), + 141: uint16(36381), + 142: uint16(36386), + 143: uint16(36367), + 144: uint16(36393), + 145: uint16(36383), + 146: uint16(36385), + 147: uint16(36382), + 148: uint16(36538), + 149: uint16(36637), + 150: uint16(36635), + 151: uint16(36639), + 152: uint16(36649), + 153: uint16(36646), + 154: uint16(36650), + 155: uint16(36636), + 156: uint16(36638), + }, + 29: { + 0: uint16(36645), + 1: uint16(36969), + 2: uint16(36974), + 3: uint16(36968), + 4: uint16(36973), + 5: uint16(36983), + 6: uint16(37168), + 7: uint16(37165), + 8: uint16(37159), + 9: uint16(37169), + 10: uint16(37255), + 11: uint16(37257), + 12: uint16(37259), + 13: uint16(37251), + 14: uint16(37573), + 15: uint16(37563), + 16: uint16(37559), + 17: uint16(37610), + 18: uint16(37548), + 19: uint16(37604), + 20: uint16(37569), + 21: uint16(37555), + 22: uint16(37564), + 23: uint16(37586), + 24: uint16(37575), + 25: uint16(37616), + 26: uint16(37554), + 27: uint16(38317), + 28: uint16(38321), + 29: uint16(38660), + 30: uint16(38662), + 31: uint16(38663), + 32: uint16(38665), + 33: uint16(38752), + 34: uint16(38797), + 35: uint16(38795), + 36: uint16(38799), + 37: uint16(38945), + 38: uint16(38955), + 39: uint16(38940), + 40: uint16(39091), + 41: uint16(39178), + 42: uint16(39187), + 43: uint16(39186), + 44: uint16(39192), + 45: uint16(39389), + 46: uint16(39376), + 47: uint16(39391), + 48: uint16(39387), + 49: uint16(39377), + 50: uint16(39381), + 51: uint16(39378), + 52: uint16(39385), + 53: uint16(39607), + 54: uint16(39662), + 55: uint16(39663), + 56: uint16(39719), + 57: uint16(39749), + 58: uint16(39748), + 59: uint16(39799), + 60: uint16(39791), + 61: uint16(40198), + 62: uint16(40201), + 63: uint16(40195), + 64: uint16(40617), + 65: uint16(40638), + 66: uint16(40654), + 67: uint16(22696), + 68: uint16(40786), + 69: uint16(20754), + 70: uint16(20760), + 71: uint16(20756), + 72: uint16(20752), + 73: uint16(20757), + 74: uint16(20864), + 75: uint16(20906), + 76: uint16(20957), + 77: uint16(21137), + 78: uint16(21139), + 79: uint16(21235), + 80: uint16(22105), + 81: uint16(22123), + 82: uint16(22137), + 83: uint16(22121), + 84: uint16(22116), + 85: uint16(22136), + 86: uint16(22122), + 87: uint16(22120), + 88: uint16(22117), + 89: uint16(22129), + 90: uint16(22127), + 91: uint16(22124), + 92: uint16(22114), + 93: uint16(22134), + 94: uint16(22721), + 95: uint16(22718), + 96: uint16(22727), + 97: uint16(22725), + 98: uint16(22894), + 99: uint16(23325), + 100: uint16(23348), + 101: uint16(23416), + 102: uint16(23536), + 103: uint16(23566), + 104: uint16(24394), + 105: uint16(25010), + 106: uint16(24977), + 107: uint16(25001), + 108: uint16(24970), + 109: uint16(25037), + 110: uint16(25014), + 111: uint16(25022), + 112: uint16(25034), + 113: uint16(25032), + 114: uint16(25136), + 115: uint16(25797), + 116: uint16(25793), + 117: uint16(25803), + 118: uint16(25787), + 119: uint16(25788), + 120: uint16(25818), + 121: uint16(25796), + 122: uint16(25799), + 123: uint16(25794), + 124: uint16(25805), + 125: uint16(25791), + 126: uint16(25810), + 127: uint16(25812), + 128: uint16(25790), + 129: uint16(25972), + 130: uint16(26310), + 131: uint16(26313), + 132: uint16(26297), + 133: uint16(26308), + 134: uint16(26311), + 135: uint16(26296), + 136: uint16(27197), + 137: uint16(27192), + 138: uint16(27194), + 139: uint16(27225), + 140: uint16(27243), + 141: uint16(27224), + 142: uint16(27193), + 143: uint16(27204), + 144: uint16(27234), + 145: uint16(27233), + 146: uint16(27211), + 147: uint16(27207), + 148: uint16(27189), + 149: uint16(27231), + 150: uint16(27208), + 151: uint16(27481), + 152: uint16(27511), + 153: uint16(27653), + 154: uint16(28610), + 155: uint16(28593), + 156: uint16(28577), + }, + 30: { + 0: uint16(28611), + 1: uint16(28580), + 2: uint16(28609), + 3: uint16(28583), + 4: uint16(28595), + 5: uint16(28608), + 6: uint16(28601), + 7: uint16(28598), + 8: uint16(28582), + 9: uint16(28576), + 10: uint16(28596), + 11: uint16(29118), + 12: uint16(29129), + 13: uint16(29136), + 14: uint16(29138), + 15: uint16(29128), + 16: uint16(29141), + 17: uint16(29113), + 18: uint16(29134), + 19: uint16(29145), + 20: uint16(29148), + 21: uint16(29123), + 22: uint16(29124), + 23: uint16(29544), + 24: uint16(29852), + 25: uint16(29859), + 26: uint16(29848), + 27: uint16(29855), + 28: uint16(29854), + 29: uint16(29922), + 30: uint16(29964), + 31: uint16(29965), + 32: uint16(30260), + 33: uint16(30264), + 34: uint16(30266), + 35: uint16(30439), + 36: uint16(30437), + 37: uint16(30624), + 38: uint16(30622), + 39: uint16(30623), + 40: uint16(30629), + 41: uint16(30952), + 42: uint16(30938), + 43: uint16(30956), + 44: uint16(30951), + 45: uint16(31142), + 46: uint16(31309), + 47: uint16(31310), + 48: uint16(31302), + 49: uint16(31308), + 50: uint16(31307), + 51: uint16(31418), + 52: uint16(31705), + 53: uint16(31761), + 54: uint16(31689), + 55: uint16(31716), + 56: uint16(31707), + 57: uint16(31713), + 58: uint16(31721), + 59: uint16(31718), + 60: uint16(31957), + 61: uint16(31958), + 62: uint16(32266), + 63: uint16(32273), + 64: uint16(32264), + 65: uint16(32283), + 66: uint16(32291), + 67: uint16(32286), + 68: uint16(32285), + 69: uint16(32265), + 70: uint16(32272), + 71: uint16(32633), + 72: uint16(32690), + 73: uint16(32752), + 74: uint16(32753), + 75: uint16(32750), + 76: uint16(32808), + 77: uint16(33203), + 78: uint16(33193), + 79: uint16(33192), + 80: uint16(33275), + 81: uint16(33288), + 82: uint16(33368), + 83: uint16(33369), + 84: uint16(34122), + 85: uint16(34137), + 86: uint16(34120), + 87: uint16(34152), + 88: uint16(34153), + 89: uint16(34115), + 90: uint16(34121), + 91: uint16(34157), + 92: uint16(34154), + 93: uint16(34142), + 94: uint16(34691), + 95: uint16(34719), + 96: uint16(34718), + 97: uint16(34722), + 98: uint16(34701), + 99: uint16(34913), + 100: uint16(35114), + 101: uint16(35122), + 102: uint16(35109), + 103: uint16(35115), + 104: uint16(35105), + 105: uint16(35242), + 106: uint16(35238), + 107: uint16(35558), + 108: uint16(35578), + 109: uint16(35563), + 110: uint16(35569), + 111: uint16(35584), + 112: uint16(35548), + 113: uint16(35559), + 114: uint16(35566), + 115: uint16(35582), + 116: uint16(35585), + 117: uint16(35586), + 118: uint16(35575), + 119: uint16(35565), + 120: uint16(35571), + 121: uint16(35574), + 122: uint16(35580), + 123: uint16(35947), + 124: uint16(35949), + 125: uint16(35987), + 126: uint16(36084), + 127: uint16(36420), + 128: uint16(36401), + 129: uint16(36404), + 130: uint16(36418), + 131: uint16(36409), + 132: uint16(36405), + 133: uint16(36667), + 134: uint16(36655), + 135: uint16(36664), + 136: uint16(36659), + 137: uint16(36776), + 138: uint16(36774), + 139: uint16(36981), + 140: uint16(36980), + 141: uint16(36984), + 142: uint16(36978), + 143: uint16(36988), + 144: uint16(36986), + 145: uint16(37172), + 146: uint16(37266), + 147: uint16(37664), + 148: uint16(37686), + 149: uint16(37624), + 150: uint16(37683), + 151: uint16(37679), + 152: uint16(37666), + 153: uint16(37628), + 154: uint16(37675), + 155: uint16(37636), + 156: uint16(37658), + }, + 31: { + 0: uint16(37648), + 1: uint16(37670), + 2: uint16(37665), + 3: uint16(37653), + 4: uint16(37678), + 5: uint16(37657), + 6: uint16(38331), + 7: uint16(38567), + 8: uint16(38568), + 9: uint16(38570), + 10: uint16(38613), + 11: uint16(38670), + 12: uint16(38673), + 13: uint16(38678), + 14: uint16(38669), + 15: uint16(38675), + 16: uint16(38671), + 17: uint16(38747), + 18: uint16(38748), + 19: uint16(38758), + 20: uint16(38808), + 21: uint16(38960), + 22: uint16(38968), + 23: uint16(38971), + 24: uint16(38967), + 25: uint16(38957), + 26: uint16(38969), + 27: uint16(38948), + 28: uint16(39184), + 29: uint16(39208), + 30: uint16(39198), + 31: uint16(39195), + 32: uint16(39201), + 33: uint16(39194), + 34: uint16(39405), + 35: uint16(39394), + 36: uint16(39409), + 37: uint16(39608), + 38: uint16(39612), + 39: uint16(39675), + 40: uint16(39661), + 41: uint16(39720), + 42: uint16(39825), + 43: uint16(40213), + 44: uint16(40227), + 45: uint16(40230), + 46: uint16(40232), + 47: uint16(40210), + 48: uint16(40219), + 49: uint16(40664), + 50: uint16(40660), + 51: uint16(40845), + 52: uint16(40860), + 53: uint16(20778), + 54: uint16(20767), + 55: uint16(20769), + 56: uint16(20786), + 57: uint16(21237), + 58: uint16(22158), + 59: uint16(22144), + 60: uint16(22160), + 61: uint16(22149), + 62: uint16(22151), + 63: uint16(22159), + 64: uint16(22741), + 65: uint16(22739), + 66: uint16(22737), + 67: uint16(22734), + 68: uint16(23344), + 69: uint16(23338), + 70: uint16(23332), + 71: uint16(23418), + 72: uint16(23607), + 73: uint16(23656), + 74: uint16(23996), + 75: uint16(23994), + 76: uint16(23997), + 77: uint16(23992), + 78: uint16(24171), + 79: uint16(24396), + 80: uint16(24509), + 81: uint16(25033), + 82: uint16(25026), + 83: uint16(25031), + 84: uint16(25062), + 85: uint16(25035), + 86: uint16(25138), + 87: uint16(25140), + 88: uint16(25806), + 89: uint16(25802), + 90: uint16(25816), + 91: uint16(25824), + 92: uint16(25840), + 93: uint16(25830), + 94: uint16(25836), + 95: uint16(25841), + 96: uint16(25826), + 97: uint16(25837), + 98: uint16(25986), + 99: uint16(25987), + 100: uint16(26329), + 101: uint16(26326), + 102: uint16(27264), + 103: uint16(27284), + 104: uint16(27268), + 105: uint16(27298), + 106: uint16(27292), + 107: uint16(27355), + 108: uint16(27299), + 109: uint16(27262), + 110: uint16(27287), + 111: uint16(27280), + 112: uint16(27296), + 113: uint16(27484), + 114: uint16(27566), + 115: uint16(27610), + 116: uint16(27656), + 117: uint16(28632), + 118: uint16(28657), + 119: uint16(28639), + 120: uint16(28640), + 121: uint16(28635), + 122: uint16(28644), + 123: uint16(28651), + 124: uint16(28655), + 125: uint16(28544), + 126: uint16(28652), + 127: uint16(28641), + 128: uint16(28649), + 129: uint16(28629), + 130: uint16(28654), + 131: uint16(28656), + 132: uint16(29159), + 133: uint16(29151), + 134: uint16(29166), + 135: uint16(29158), + 136: uint16(29157), + 137: uint16(29165), + 138: uint16(29164), + 139: uint16(29172), + 140: uint16(29152), + 141: uint16(29237), + 142: uint16(29254), + 143: uint16(29552), + 144: uint16(29554), + 145: uint16(29865), + 146: uint16(29872), + 147: uint16(29862), + 148: uint16(29864), + 149: uint16(30278), + 150: uint16(30274), + 151: uint16(30284), + 152: uint16(30442), + 153: uint16(30643), + 154: uint16(30634), + 155: uint16(30640), + 156: uint16(30636), + }, + 32: { + 0: uint16(30631), + 1: uint16(30637), + 2: uint16(30703), + 3: uint16(30967), + 4: uint16(30970), + 5: uint16(30964), + 6: uint16(30959), + 7: uint16(30977), + 8: uint16(31143), + 9: uint16(31146), + 10: uint16(31319), + 11: uint16(31423), + 12: uint16(31751), + 13: uint16(31757), + 14: uint16(31742), + 15: uint16(31735), + 16: uint16(31756), + 17: uint16(31712), + 18: uint16(31968), + 19: uint16(31964), + 20: uint16(31966), + 21: uint16(31970), + 22: uint16(31967), + 23: uint16(31961), + 24: uint16(31965), + 25: uint16(32302), + 26: uint16(32318), + 27: uint16(32326), + 28: uint16(32311), + 29: uint16(32306), + 30: uint16(32323), + 31: uint16(32299), + 32: uint16(32317), + 33: uint16(32305), + 34: uint16(32325), + 35: uint16(32321), + 36: uint16(32308), + 37: uint16(32313), + 38: uint16(32328), + 39: uint16(32309), + 40: uint16(32319), + 41: uint16(32303), + 42: uint16(32580), + 43: uint16(32755), + 44: uint16(32764), + 45: uint16(32881), + 46: uint16(32882), + 47: uint16(32880), + 48: uint16(32879), + 49: uint16(32883), + 50: uint16(33222), + 51: uint16(33219), + 52: uint16(33210), + 53: uint16(33218), + 54: uint16(33216), + 55: uint16(33215), + 56: uint16(33213), + 57: uint16(33225), + 58: uint16(33214), + 59: uint16(33256), + 60: uint16(33289), + 61: uint16(33393), + 62: uint16(34218), + 63: uint16(34180), + 64: uint16(34174), + 65: uint16(34204), + 66: uint16(34193), + 67: uint16(34196), + 68: uint16(34223), + 69: uint16(34203), + 70: uint16(34183), + 71: uint16(34216), + 72: uint16(34186), + 73: uint16(34407), + 74: uint16(34752), + 75: uint16(34769), + 76: uint16(34739), + 77: uint16(34770), + 78: uint16(34758), + 79: uint16(34731), + 80: uint16(34747), + 81: uint16(34746), + 82: uint16(34760), + 83: uint16(34763), + 84: uint16(35131), + 85: uint16(35126), + 86: uint16(35140), + 87: uint16(35128), + 88: uint16(35133), + 89: uint16(35244), + 90: uint16(35598), + 91: uint16(35607), + 92: uint16(35609), + 93: uint16(35611), + 94: uint16(35594), + 95: uint16(35616), + 96: uint16(35613), + 97: uint16(35588), + 98: uint16(35600), + 99: uint16(35905), + 100: uint16(35903), + 101: uint16(35955), + 102: uint16(36090), + 103: uint16(36093), + 104: uint16(36092), + 105: uint16(36088), + 106: uint16(36091), + 107: uint16(36264), + 108: uint16(36425), + 109: uint16(36427), + 110: uint16(36424), + 111: uint16(36426), + 112: uint16(36676), + 113: uint16(36670), + 114: uint16(36674), + 115: uint16(36677), + 116: uint16(36671), + 117: uint16(36991), + 118: uint16(36989), + 119: uint16(36996), + 120: uint16(36993), + 121: uint16(36994), + 122: uint16(36992), + 123: uint16(37177), + 124: uint16(37283), + 125: uint16(37278), + 126: uint16(37276), + 127: uint16(37709), + 128: uint16(37762), + 129: uint16(37672), + 130: uint16(37749), + 131: uint16(37706), + 132: uint16(37733), + 133: uint16(37707), + 134: uint16(37656), + 135: uint16(37758), + 136: uint16(37740), + 137: uint16(37723), + 138: uint16(37744), + 139: uint16(37722), + 140: uint16(37716), + 141: uint16(38346), + 142: uint16(38347), + 143: uint16(38348), + 144: uint16(38344), + 145: uint16(38342), + 146: uint16(38577), + 147: uint16(38584), + 148: uint16(38614), + 149: uint16(38684), + 150: uint16(38686), + 151: uint16(38816), + 152: uint16(38867), + 153: uint16(38982), + 154: uint16(39094), + 155: uint16(39221), + 156: uint16(39425), + }, + 33: { + 0: uint16(39423), + 1: uint16(39854), + 2: uint16(39851), + 3: uint16(39850), + 4: uint16(39853), + 5: uint16(40251), + 6: uint16(40255), + 7: uint16(40587), + 8: uint16(40655), + 9: uint16(40670), + 10: uint16(40668), + 11: uint16(40669), + 12: uint16(40667), + 13: uint16(40766), + 14: uint16(40779), + 15: uint16(21474), + 16: uint16(22165), + 17: uint16(22190), + 18: uint16(22745), + 19: uint16(22744), + 20: uint16(23352), + 21: uint16(24413), + 22: uint16(25059), + 23: uint16(25139), + 24: uint16(25844), + 25: uint16(25842), + 26: uint16(25854), + 27: uint16(25862), + 28: uint16(25850), + 29: uint16(25851), + 30: uint16(25847), + 31: uint16(26039), + 32: uint16(26332), + 33: uint16(26406), + 34: uint16(27315), + 35: uint16(27308), + 36: uint16(27331), + 37: uint16(27323), + 38: uint16(27320), + 39: uint16(27330), + 40: uint16(27310), + 41: uint16(27311), + 42: uint16(27487), + 43: uint16(27512), + 44: uint16(27567), + 45: uint16(28681), + 46: uint16(28683), + 47: uint16(28670), + 48: uint16(28678), + 49: uint16(28666), + 50: uint16(28689), + 51: uint16(28687), + 52: uint16(29179), + 53: uint16(29180), + 54: uint16(29182), + 55: uint16(29176), + 56: uint16(29559), + 57: uint16(29557), + 58: uint16(29863), + 59: uint16(29887), + 60: uint16(29973), + 61: uint16(30294), + 62: uint16(30296), + 63: uint16(30290), + 64: uint16(30653), + 65: uint16(30655), + 66: uint16(30651), + 67: uint16(30652), + 68: uint16(30990), + 69: uint16(31150), + 70: uint16(31329), + 71: uint16(31330), + 72: uint16(31328), + 73: uint16(31428), + 74: uint16(31429), + 75: uint16(31787), + 76: uint16(31783), + 77: uint16(31786), + 78: uint16(31774), + 79: uint16(31779), + 80: uint16(31777), + 81: uint16(31975), + 82: uint16(32340), + 83: uint16(32341), + 84: uint16(32350), + 85: uint16(32346), + 86: uint16(32353), + 87: uint16(32338), + 88: uint16(32345), + 89: uint16(32584), + 90: uint16(32761), + 91: uint16(32763), + 92: uint16(32887), + 93: uint16(32886), + 94: uint16(33229), + 95: uint16(33231), + 96: uint16(33290), + 97: uint16(34255), + 98: uint16(34217), + 99: uint16(34253), + 100: uint16(34256), + 101: uint16(34249), + 102: uint16(34224), + 103: uint16(34234), + 104: uint16(34233), + 105: uint16(34214), + 106: uint16(34799), + 107: uint16(34796), + 108: uint16(34802), + 109: uint16(34784), + 110: uint16(35206), + 111: uint16(35250), + 112: uint16(35316), + 113: uint16(35624), + 114: uint16(35641), + 115: uint16(35628), + 116: uint16(35627), + 117: uint16(35920), + 118: uint16(36101), + 119: uint16(36441), + 120: uint16(36451), + 121: uint16(36454), + 122: uint16(36452), + 123: uint16(36447), + 124: uint16(36437), + 125: uint16(36544), + 126: uint16(36681), + 127: uint16(36685), + 128: uint16(36999), + 129: uint16(36995), + 130: uint16(37000), + 131: uint16(37291), + 132: uint16(37292), + 133: uint16(37328), + 134: uint16(37780), + 135: uint16(37770), + 136: uint16(37782), + 137: uint16(37794), + 138: uint16(37811), + 139: uint16(37806), + 140: uint16(37804), + 141: uint16(37808), + 142: uint16(37784), + 143: uint16(37786), + 144: uint16(37783), + 145: uint16(38356), + 146: uint16(38358), + 147: uint16(38352), + 148: uint16(38357), + 149: uint16(38626), + 150: uint16(38620), + 151: uint16(38617), + 152: uint16(38619), + 153: uint16(38622), + 154: uint16(38692), + 155: uint16(38819), + 156: uint16(38822), + }, + 34: { + 0: uint16(38829), + 1: uint16(38905), + 2: uint16(38989), + 3: uint16(38991), + 4: uint16(38988), + 5: uint16(38990), + 6: uint16(38995), + 7: uint16(39098), + 8: uint16(39230), + 9: uint16(39231), + 10: uint16(39229), + 11: uint16(39214), + 12: uint16(39333), + 13: uint16(39438), + 14: uint16(39617), + 15: uint16(39683), + 16: uint16(39686), + 17: uint16(39759), + 18: uint16(39758), + 19: uint16(39757), + 20: uint16(39882), + 21: uint16(39881), + 22: uint16(39933), + 23: uint16(39880), + 24: uint16(39872), + 25: uint16(40273), + 26: uint16(40285), + 27: uint16(40288), + 28: uint16(40672), + 29: uint16(40725), + 30: uint16(40748), + 31: uint16(20787), + 32: uint16(22181), + 33: uint16(22750), + 34: uint16(22751), + 35: uint16(22754), + 36: uint16(23541), + 37: uint16(40848), + 38: uint16(24300), + 39: uint16(25074), + 40: uint16(25079), + 41: uint16(25078), + 42: uint16(25077), + 43: uint16(25856), + 44: uint16(25871), + 45: uint16(26336), + 46: uint16(26333), + 47: uint16(27365), + 48: uint16(27357), + 49: uint16(27354), + 50: uint16(27347), + 51: uint16(28699), + 52: uint16(28703), + 53: uint16(28712), + 54: uint16(28698), + 55: uint16(28701), + 56: uint16(28693), + 57: uint16(28696), + 58: uint16(29190), + 59: uint16(29197), + 60: uint16(29272), + 61: uint16(29346), + 62: uint16(29560), + 63: uint16(29562), + 64: uint16(29885), + 65: uint16(29898), + 66: uint16(29923), + 67: uint16(30087), + 68: uint16(30086), + 69: uint16(30303), + 70: uint16(30305), + 71: uint16(30663), + 72: uint16(31001), + 73: uint16(31153), + 74: uint16(31339), + 75: uint16(31337), + 76: uint16(31806), + 77: uint16(31807), + 78: uint16(31800), + 79: uint16(31805), + 80: uint16(31799), + 81: uint16(31808), + 82: uint16(32363), + 83: uint16(32365), + 84: uint16(32377), + 85: uint16(32361), + 86: uint16(32362), + 87: uint16(32645), + 88: uint16(32371), + 89: uint16(32694), + 90: uint16(32697), + 91: uint16(32696), + 92: uint16(33240), + 93: uint16(34281), + 94: uint16(34269), + 95: uint16(34282), + 96: uint16(34261), + 97: uint16(34276), + 98: uint16(34277), + 99: uint16(34295), + 100: uint16(34811), + 101: uint16(34821), + 102: uint16(34829), + 103: uint16(34809), + 104: uint16(34814), + 105: uint16(35168), + 106: uint16(35167), + 107: uint16(35158), + 108: uint16(35166), + 109: uint16(35649), + 110: uint16(35676), + 111: uint16(35672), + 112: uint16(35657), + 113: uint16(35674), + 114: uint16(35662), + 115: uint16(35663), + 116: uint16(35654), + 117: uint16(35673), + 118: uint16(36104), + 119: uint16(36106), + 120: uint16(36476), + 121: uint16(36466), + 122: uint16(36487), + 123: uint16(36470), + 124: uint16(36460), + 125: uint16(36474), + 126: uint16(36468), + 127: uint16(36692), + 128: uint16(36686), + 129: uint16(36781), + 130: uint16(37002), + 131: uint16(37003), + 132: uint16(37297), + 133: uint16(37294), + 134: uint16(37857), + 135: uint16(37841), + 136: uint16(37855), + 137: uint16(37827), + 138: uint16(37832), + 139: uint16(37852), + 140: uint16(37853), + 141: uint16(37846), + 142: uint16(37858), + 143: uint16(37837), + 144: uint16(37848), + 145: uint16(37860), + 146: uint16(37847), + 147: uint16(37864), + 148: uint16(38364), + 149: uint16(38580), + 150: uint16(38627), + 151: uint16(38698), + 152: uint16(38695), + 153: uint16(38753), + 154: uint16(38876), + 155: uint16(38907), + 156: uint16(39006), + }, + 35: { + 0: uint16(39000), + 1: uint16(39003), + 2: uint16(39100), + 3: uint16(39237), + 4: uint16(39241), + 5: uint16(39446), + 6: uint16(39449), + 7: uint16(39693), + 8: uint16(39912), + 9: uint16(39911), + 10: uint16(39894), + 11: uint16(39899), + 12: uint16(40329), + 13: uint16(40289), + 14: uint16(40306), + 15: uint16(40298), + 16: uint16(40300), + 17: uint16(40594), + 18: uint16(40599), + 19: uint16(40595), + 20: uint16(40628), + 21: uint16(21240), + 22: uint16(22184), + 23: uint16(22199), + 24: uint16(22198), + 25: uint16(22196), + 26: uint16(22204), + 27: uint16(22756), + 28: uint16(23360), + 29: uint16(23363), + 30: uint16(23421), + 31: uint16(23542), + 32: uint16(24009), + 33: uint16(25080), + 34: uint16(25082), + 35: uint16(25880), + 36: uint16(25876), + 37: uint16(25881), + 38: uint16(26342), + 39: uint16(26407), + 40: uint16(27372), + 41: uint16(28734), + 42: uint16(28720), + 43: uint16(28722), + 44: uint16(29200), + 45: uint16(29563), + 46: uint16(29903), + 47: uint16(30306), + 48: uint16(30309), + 49: uint16(31014), + 50: uint16(31018), + 51: uint16(31020), + 52: uint16(31019), + 53: uint16(31431), + 54: uint16(31478), + 55: uint16(31820), + 56: uint16(31811), + 57: uint16(31821), + 58: uint16(31983), + 59: uint16(31984), + 60: uint16(36782), + 61: uint16(32381), + 62: uint16(32380), + 63: uint16(32386), + 64: uint16(32588), + 65: uint16(32768), + 66: uint16(33242), + 67: uint16(33382), + 68: uint16(34299), + 69: uint16(34297), + 70: uint16(34321), + 71: uint16(34298), + 72: uint16(34310), + 73: uint16(34315), + 74: uint16(34311), + 75: uint16(34314), + 76: uint16(34836), + 77: uint16(34837), + 78: uint16(35172), + 79: uint16(35258), + 80: uint16(35320), + 81: uint16(35696), + 82: uint16(35692), + 83: uint16(35686), + 84: uint16(35695), + 85: uint16(35679), + 86: uint16(35691), + 87: uint16(36111), + 88: uint16(36109), + 89: uint16(36489), + 90: uint16(36481), + 91: uint16(36485), + 92: uint16(36482), + 93: uint16(37300), + 94: uint16(37323), + 95: uint16(37912), + 96: uint16(37891), + 97: uint16(37885), + 98: uint16(38369), + 99: uint16(38704), + 100: uint16(39108), + 101: uint16(39250), + 102: uint16(39249), + 103: uint16(39336), + 104: uint16(39467), + 105: uint16(39472), + 106: uint16(39479), + 107: uint16(39477), + 108: uint16(39955), + 109: uint16(39949), + 110: uint16(40569), + 111: uint16(40629), + 112: uint16(40680), + 113: uint16(40751), + 114: uint16(40799), + 115: uint16(40803), + 116: uint16(40801), + 117: uint16(20791), + 118: uint16(20792), + 119: uint16(22209), + 120: uint16(22208), + 121: uint16(22210), + 122: uint16(22804), + 123: uint16(23660), + 124: uint16(24013), + 125: uint16(25084), + 126: uint16(25086), + 127: uint16(25885), + 128: uint16(25884), + 129: uint16(26005), + 130: uint16(26345), + 131: uint16(27387), + 132: uint16(27396), + 133: uint16(27386), + 134: uint16(27570), + 135: uint16(28748), + 136: uint16(29211), + 137: uint16(29351), + 138: uint16(29910), + 139: uint16(29908), + 140: uint16(30313), + 141: uint16(30675), + 142: uint16(31824), + 143: uint16(32399), + 144: uint16(32396), + 145: uint16(32700), + 146: uint16(34327), + 147: uint16(34349), + 148: uint16(34330), + 149: uint16(34851), + 150: uint16(34850), + 151: uint16(34849), + 152: uint16(34847), + 153: uint16(35178), + 154: uint16(35180), + 155: uint16(35261), + 156: uint16(35700), + }, + 36: { + 0: uint16(35703), + 1: uint16(35709), + 2: uint16(36115), + 3: uint16(36490), + 4: uint16(36493), + 5: uint16(36491), + 6: uint16(36703), + 7: uint16(36783), + 8: uint16(37306), + 9: uint16(37934), + 10: uint16(37939), + 11: uint16(37941), + 12: uint16(37946), + 13: uint16(37944), + 14: uint16(37938), + 15: uint16(37931), + 16: uint16(38370), + 17: uint16(38712), + 18: uint16(38713), + 19: uint16(38706), + 20: uint16(38911), + 21: uint16(39015), + 22: uint16(39013), + 23: uint16(39255), + 24: uint16(39493), + 25: uint16(39491), + 26: uint16(39488), + 27: uint16(39486), + 28: uint16(39631), + 29: uint16(39764), + 30: uint16(39761), + 31: uint16(39981), + 32: uint16(39973), + 33: uint16(40367), + 34: uint16(40372), + 35: uint16(40386), + 36: uint16(40376), + 37: uint16(40605), + 38: uint16(40687), + 39: uint16(40729), + 40: uint16(40796), + 41: uint16(40806), + 42: uint16(40807), + 43: uint16(20796), + 44: uint16(20795), + 45: uint16(22216), + 46: uint16(22218), + 47: uint16(22217), + 48: uint16(23423), + 49: uint16(24020), + 50: uint16(24018), + 51: uint16(24398), + 52: uint16(25087), + 53: uint16(25892), + 54: uint16(27402), + 55: uint16(27489), + 56: uint16(28753), + 57: uint16(28760), + 58: uint16(29568), + 59: uint16(29924), + 60: uint16(30090), + 61: uint16(30318), + 62: uint16(30316), + 63: uint16(31155), + 64: uint16(31840), + 65: uint16(31839), + 66: uint16(32894), + 67: uint16(32893), + 68: uint16(33247), + 69: uint16(35186), + 70: uint16(35183), + 71: uint16(35324), + 72: uint16(35712), + 73: uint16(36118), + 74: uint16(36119), + 75: uint16(36497), + 76: uint16(36499), + 77: uint16(36705), + 78: uint16(37192), + 79: uint16(37956), + 80: uint16(37969), + 81: uint16(37970), + 82: uint16(38717), + 83: uint16(38718), + 84: uint16(38851), + 85: uint16(38849), + 86: uint16(39019), + 87: uint16(39253), + 88: uint16(39509), + 89: uint16(39501), + 90: uint16(39634), + 91: uint16(39706), + 92: uint16(40009), + 93: uint16(39985), + 94: uint16(39998), + 95: uint16(39995), + 96: uint16(40403), + 97: uint16(40407), + 98: uint16(40756), + 99: uint16(40812), + 100: uint16(40810), + 101: uint16(40852), + 102: uint16(22220), + 103: uint16(24022), + 104: uint16(25088), + 105: uint16(25891), + 106: uint16(25899), + 107: uint16(25898), + 108: uint16(26348), + 109: uint16(27408), + 110: uint16(29914), + 111: uint16(31434), + 112: uint16(31844), + 113: uint16(31843), + 114: uint16(31845), + 115: uint16(32403), + 116: uint16(32406), + 117: uint16(32404), + 118: uint16(33250), + 119: uint16(34360), + 120: uint16(34367), + 121: uint16(34865), + 122: uint16(35722), + 123: uint16(37008), + 124: uint16(37007), + 125: uint16(37987), + 126: uint16(37984), + 127: uint16(37988), + 128: uint16(38760), + 129: uint16(39023), + 130: uint16(39260), + 131: uint16(39514), + 132: uint16(39515), + 133: uint16(39511), + 134: uint16(39635), + 135: uint16(39636), + 136: uint16(39633), + 137: uint16(40020), + 138: uint16(40023), + 139: uint16(40022), + 140: uint16(40421), + 141: uint16(40607), + 142: uint16(40692), + 143: uint16(22225), + 144: uint16(22761), + 145: uint16(25900), + 146: uint16(28766), + 147: uint16(30321), + 148: uint16(30322), + 149: uint16(30679), + 150: uint16(32592), + 151: uint16(32648), + 152: uint16(34870), + 153: uint16(34873), + 154: uint16(34914), + 155: uint16(35731), + 156: uint16(35730), + }, + 37: { + 0: uint16(35734), + 1: uint16(33399), + 2: uint16(36123), + 3: uint16(37312), + 4: uint16(37994), + 5: uint16(38722), + 6: uint16(38728), + 7: uint16(38724), + 8: uint16(38854), + 9: uint16(39024), + 10: uint16(39519), + 11: uint16(39714), + 12: uint16(39768), + 13: uint16(40031), + 14: uint16(40441), + 15: uint16(40442), + 16: uint16(40572), + 17: uint16(40573), + 18: uint16(40711), + 19: uint16(40823), + 20: uint16(40818), + 21: uint16(24307), + 22: uint16(27414), + 23: uint16(28771), + 24: uint16(31852), + 25: uint16(31854), + 26: uint16(34875), + 27: uint16(35264), + 28: uint16(36513), + 29: uint16(37313), + 30: uint16(38002), + 31: uint16(38000), + 32: uint16(39025), + 33: uint16(39262), + 34: uint16(39638), + 35: uint16(39715), + 36: uint16(40652), + 37: uint16(28772), + 38: uint16(30682), + 39: uint16(35738), + 40: uint16(38007), + 41: uint16(38857), + 42: uint16(39522), + 43: uint16(39525), + 44: uint16(32412), + 45: uint16(35740), + 46: uint16(36522), + 47: uint16(37317), + 48: uint16(38013), + 49: uint16(38014), + 50: uint16(38012), + 51: uint16(40055), + 52: uint16(40056), + 53: uint16(40695), + 54: uint16(35924), + 55: uint16(38015), + 56: uint16(40474), + 57: uint16(29224), + 58: uint16(39530), + 59: uint16(39729), + 60: uint16(40475), + 61: uint16(40478), + 62: uint16(31858), + 63: uint16(9312), + 64: uint16(9313), + 65: uint16(9314), + 66: uint16(9315), + 67: uint16(9316), + 68: uint16(9317), + 69: uint16(9318), + 70: uint16(9319), + 71: uint16(9320), + 72: uint16(9321), + 73: uint16(9332), + 74: uint16(9333), + 75: uint16(9334), + 76: uint16(9335), + 77: uint16(9336), + 78: uint16(9337), + 79: uint16(9338), + 80: uint16(9339), + 81: uint16(9340), + 82: uint16(9341), + 83: uint16(8560), + 84: uint16(8561), + 85: uint16(8562), + 86: uint16(8563), + 87: uint16(8564), + 88: uint16(8565), + 89: uint16(8566), + 90: uint16(8567), + 91: uint16(8568), + 92: uint16(8569), + 93: uint16(20022), + 94: uint16(20031), + 95: uint16(20101), + 96: uint16(20128), + 97: uint16(20866), + 98: uint16(20886), + 99: uint16(20907), + 100: uint16(21241), + 101: uint16(21304), + 102: uint16(21353), + 103: uint16(21430), + 104: uint16(22794), + 105: uint16(23424), + 106: uint16(24027), + 107: uint16(24186), + 108: uint16(24191), + 109: uint16(24308), + 110: uint16(24400), + 111: uint16(24417), + 112: uint16(25908), + 113: uint16(26080), + 114: uint16(30098), + 115: uint16(30326), + 116: uint16(36789), + 117: uint16(38582), + 118: uint16(168), + 119: uint16(710), + 120: uint16(12541), + 121: uint16(12542), + 122: uint16(12445), + 123: uint16(12446), + 126: uint16(12293), + 127: uint16(12294), + 128: uint16(12295), + 129: uint16(12540), + 130: uint16(65339), + 131: uint16(65341), + 132: uint16(10045), + 133: uint16(12353), + 134: uint16(12354), + 135: uint16(12355), + 136: uint16(12356), + 137: uint16(12357), + 138: uint16(12358), + 139: uint16(12359), + 140: uint16(12360), + 141: uint16(12361), + 142: uint16(12362), + 143: uint16(12363), + 144: uint16(12364), + 145: uint16(12365), + 146: uint16(12366), + 147: uint16(12367), + 148: uint16(12368), + 149: uint16(12369), + 150: uint16(12370), + 151: uint16(12371), + 152: uint16(12372), + 153: uint16(12373), + 154: uint16(12374), + 155: uint16(12375), + 156: uint16(12376), + }, + 38: { + 0: uint16(12377), + 1: uint16(12378), + 2: uint16(12379), + 3: uint16(12380), + 4: uint16(12381), + 5: uint16(12382), + 6: uint16(12383), + 7: uint16(12384), + 8: uint16(12385), + 9: uint16(12386), + 10: uint16(12387), + 11: uint16(12388), + 12: uint16(12389), + 13: uint16(12390), + 14: uint16(12391), + 15: uint16(12392), + 16: uint16(12393), + 17: uint16(12394), + 18: uint16(12395), + 19: uint16(12396), + 20: uint16(12397), + 21: uint16(12398), + 22: uint16(12399), + 23: uint16(12400), + 24: uint16(12401), + 25: uint16(12402), + 26: uint16(12403), + 27: uint16(12404), + 28: uint16(12405), + 29: uint16(12406), + 30: uint16(12407), + 31: uint16(12408), + 32: uint16(12409), + 33: uint16(12410), + 34: uint16(12411), + 35: uint16(12412), + 36: uint16(12413), + 37: uint16(12414), + 38: uint16(12415), + 39: uint16(12416), + 40: uint16(12417), + 41: uint16(12418), + 42: uint16(12419), + 43: uint16(12420), + 44: uint16(12421), + 45: uint16(12422), + 46: uint16(12423), + 47: uint16(12424), + 48: uint16(12425), + 49: uint16(12426), + 50: uint16(12427), + 51: uint16(12428), + 52: uint16(12429), + 53: uint16(12430), + 54: uint16(12431), + 55: uint16(12432), + 56: uint16(12433), + 57: uint16(12434), + 58: uint16(12435), + 59: uint16(12449), + 60: uint16(12450), + 61: uint16(12451), + 62: uint16(12452), + 63: uint16(12453), + 64: uint16(12454), + 65: uint16(12455), + 66: uint16(12456), + 67: uint16(12457), + 68: uint16(12458), + 69: uint16(12459), + 70: uint16(12460), + 71: uint16(12461), + 72: uint16(12462), + 73: uint16(12463), + 74: uint16(12464), + 75: uint16(12465), + 76: uint16(12466), + 77: uint16(12467), + 78: uint16(12468), + 79: uint16(12469), + 80: uint16(12470), + 81: uint16(12471), + 82: uint16(12472), + 83: uint16(12473), + 84: uint16(12474), + 85: uint16(12475), + 86: uint16(12476), + 87: uint16(12477), + 88: uint16(12478), + 89: uint16(12479), + 90: uint16(12480), + 91: uint16(12481), + 92: uint16(12482), + 93: uint16(12483), + 94: uint16(12484), + 95: uint16(12485), + 96: uint16(12486), + 97: uint16(12487), + 98: uint16(12488), + 99: uint16(12489), + 100: uint16(12490), + 101: uint16(12491), + 102: uint16(12492), + 103: uint16(12493), + 104: uint16(12494), + 105: uint16(12495), + 106: uint16(12496), + 107: uint16(12497), + 108: uint16(12498), + 109: uint16(12499), + 110: uint16(12500), + 111: uint16(12501), + 112: uint16(12502), + 113: uint16(12503), + 114: uint16(12504), + 115: uint16(12505), + 116: uint16(12506), + 117: uint16(12507), + 118: uint16(12508), + 119: uint16(12509), + 120: uint16(12510), + 121: uint16(12511), + 122: uint16(12512), + 123: uint16(12513), + 124: uint16(12514), + 125: uint16(12515), + 126: uint16(12516), + 127: uint16(12517), + 128: uint16(12518), + 129: uint16(12519), + 130: uint16(12520), + 131: uint16(12521), + 132: uint16(12522), + 133: uint16(12523), + 134: uint16(12524), + 135: uint16(12525), + 136: uint16(12526), + 137: uint16(12527), + 138: uint16(12528), + 139: uint16(12529), + 140: uint16(12530), + 141: uint16(12531), + 142: uint16(12532), + 143: uint16(12533), + 144: uint16(12534), + 145: uint16(1040), + 146: uint16(1041), + 147: uint16(1042), + 148: uint16(1043), + 149: uint16(1044), + 150: uint16(1045), + 151: uint16(1025), + 152: uint16(1046), + 153: uint16(1047), + 154: uint16(1048), + 155: uint16(1049), + 156: uint16(1050), + }, + 39: { + 0: uint16(1051), + 1: uint16(1052), + 2: uint16(1053), + 3: uint16(1054), + 4: uint16(1055), + 5: uint16(1056), + 6: uint16(1057), + 7: uint16(1058), + 8: uint16(1059), + 9: uint16(1060), + 10: uint16(1061), + 11: uint16(1062), + 12: uint16(1063), + 13: uint16(1064), + 14: uint16(1065), + 15: uint16(1066), + 16: uint16(1067), + 17: uint16(1068), + 18: uint16(1069), + 19: uint16(1070), + 20: uint16(1071), + 21: uint16(1072), + 22: uint16(1073), + 23: uint16(1074), + 24: uint16(1075), + 25: uint16(1076), + 26: uint16(1077), + 27: uint16(1105), + 28: uint16(1078), + 29: uint16(1079), + 30: uint16(1080), + 31: uint16(1081), + 32: uint16(1082), + 33: uint16(1083), + 34: uint16(1084), + 35: uint16(1085), + 36: uint16(1086), + 37: uint16(1087), + 38: uint16(1088), + 39: uint16(1089), + 40: uint16(1090), + 41: uint16(1091), + 42: uint16(1092), + 43: uint16(1093), + 44: uint16(1094), + 45: uint16(1095), + 46: uint16(1096), + 47: uint16(1097), + 48: uint16(1098), + 49: uint16(1099), + 50: uint16(1100), + 51: uint16(1101), + 52: uint16(1102), + 53: uint16(1103), + 54: uint16(8679), + 55: uint16(8632), + 56: uint16(8633), + 57: uint16(12751), + 58: uint16(204), + 59: uint16(20058), + 60: uint16(138), + 61: uint16(20994), + 62: uint16(17553), + 63: uint16(40880), + 64: uint16(20872), + 65: uint16(40881), + 66: uint16(30215), + 107: uint16(65506), + 108: uint16(65508), + 109: uint16(65287), + 110: uint16(65282), + 111: uint16(12849), + 112: uint16(8470), + 113: uint16(8481), + 114: uint16(12443), + 115: uint16(12444), + 116: uint16(11904), + 117: uint16(11908), + 118: uint16(11910), + 119: uint16(11911), + 120: uint16(11912), + 121: uint16(11914), + 122: uint16(11916), + 123: uint16(11917), + 124: uint16(11925), + 125: uint16(11932), + 126: uint16(11933), + 127: uint16(11941), + 128: uint16(11943), + 129: uint16(11946), + 130: uint16(11948), + 131: uint16(11950), + 132: uint16(11958), + 133: uint16(11964), + 134: uint16(11966), + 135: uint16(11974), + 136: uint16(11978), + 137: uint16(11980), + 138: uint16(11981), + 139: uint16(11983), + 140: uint16(11990), + 141: uint16(11991), + 142: uint16(11998), + 143: uint16(12003), + 147: uint16(643), + 148: uint16(592), + 149: uint16(603), + 150: uint16(596), + 151: uint16(629), + 152: uint16(339), + 153: uint16(248), + 154: uint16(331), + 155: uint16(650), + 156: uint16(618), + }, + 40: { + 0: uint16(20034), + 1: uint16(20060), + 2: uint16(20981), + 3: uint16(21274), + 4: uint16(21378), + 5: uint16(19975), + 6: uint16(19980), + 7: uint16(20039), + 8: uint16(20109), + 9: uint16(22231), + 10: uint16(64012), + 11: uint16(23662), + 12: uint16(24435), + 13: uint16(19983), + 14: uint16(20871), + 15: uint16(19982), + 16: uint16(20014), + 17: uint16(20115), + 18: uint16(20162), + 19: uint16(20169), + 20: uint16(20168), + 21: uint16(20888), + 22: uint16(21244), + 23: uint16(21356), + 24: uint16(21433), + 25: uint16(22304), + 26: uint16(22787), + 27: uint16(22828), + 28: uint16(23568), + 29: uint16(24063), + 30: uint16(26081), + 31: uint16(27571), + 32: uint16(27596), + 33: uint16(27668), + 34: uint16(29247), + 35: uint16(20017), + 36: uint16(20028), + 37: uint16(20200), + 38: uint16(20188), + 39: uint16(20201), + 40: uint16(20193), + 41: uint16(20189), + 42: uint16(20186), + 43: uint16(21004), + 44: uint16(21276), + 45: uint16(21324), + 46: uint16(22306), + 47: uint16(22307), + 48: uint16(22807), + 49: uint16(22831), + 50: uint16(23425), + 51: uint16(23428), + 52: uint16(23570), + 53: uint16(23611), + 54: uint16(23668), + 55: uint16(23667), + 56: uint16(24068), + 57: uint16(24192), + 58: uint16(24194), + 59: uint16(24521), + 60: uint16(25097), + 61: uint16(25168), + 62: uint16(27669), + 63: uint16(27702), + 64: uint16(27715), + 65: uint16(27711), + 66: uint16(27707), + 67: uint16(29358), + 68: uint16(29360), + 69: uint16(29578), + 70: uint16(31160), + 71: uint16(32906), + 72: uint16(38430), + 73: uint16(20238), + 74: uint16(20248), + 75: uint16(20268), + 76: uint16(20213), + 77: uint16(20244), + 78: uint16(20209), + 79: uint16(20224), + 80: uint16(20215), + 81: uint16(20232), + 82: uint16(20253), + 83: uint16(20226), + 84: uint16(20229), + 85: uint16(20258), + 86: uint16(20243), + 87: uint16(20228), + 88: uint16(20212), + 89: uint16(20242), + 90: uint16(20913), + 91: uint16(21011), + 92: uint16(21001), + 93: uint16(21008), + 94: uint16(21158), + 95: uint16(21282), + 96: uint16(21279), + 97: uint16(21325), + 98: uint16(21386), + 99: uint16(21511), + 100: uint16(22241), + 101: uint16(22239), + 102: uint16(22318), + 103: uint16(22314), + 104: uint16(22324), + 105: uint16(22844), + 106: uint16(22912), + 107: uint16(22908), + 108: uint16(22917), + 109: uint16(22907), + 110: uint16(22910), + 111: uint16(22903), + 112: uint16(22911), + 113: uint16(23382), + 114: uint16(23573), + 115: uint16(23589), + 116: uint16(23676), + 117: uint16(23674), + 118: uint16(23675), + 119: uint16(23678), + 120: uint16(24031), + 121: uint16(24181), + 122: uint16(24196), + 123: uint16(24322), + 124: uint16(24346), + 125: uint16(24436), + 126: uint16(24533), + 127: uint16(24532), + 128: uint16(24527), + 129: uint16(25180), + 130: uint16(25182), + 131: uint16(25188), + 132: uint16(25185), + 133: uint16(25190), + 134: uint16(25186), + 135: uint16(25177), + 136: uint16(25184), + 137: uint16(25178), + 138: uint16(25189), + 139: uint16(26095), + 140: uint16(26094), + 141: uint16(26430), + 142: uint16(26425), + 143: uint16(26424), + 144: uint16(26427), + 145: uint16(26426), + 146: uint16(26431), + 147: uint16(26428), + 148: uint16(26419), + 149: uint16(27672), + 150: uint16(27718), + 151: uint16(27730), + 152: uint16(27740), + 153: uint16(27727), + 154: uint16(27722), + 155: uint16(27732), + 156: uint16(27723), + }, + 41: { + 0: uint16(27724), + 1: uint16(28785), + 2: uint16(29278), + 3: uint16(29364), + 4: uint16(29365), + 5: uint16(29582), + 6: uint16(29994), + 7: uint16(30335), + 8: uint16(31349), + 9: uint16(32593), + 10: uint16(33400), + 11: uint16(33404), + 12: uint16(33408), + 13: uint16(33405), + 14: uint16(33407), + 15: uint16(34381), + 16: uint16(35198), + 17: uint16(37017), + 18: uint16(37015), + 19: uint16(37016), + 20: uint16(37019), + 21: uint16(37012), + 22: uint16(38434), + 23: uint16(38436), + 24: uint16(38432), + 25: uint16(38435), + 26: uint16(20310), + 27: uint16(20283), + 28: uint16(20322), + 29: uint16(20297), + 30: uint16(20307), + 31: uint16(20324), + 32: uint16(20286), + 33: uint16(20327), + 34: uint16(20306), + 35: uint16(20319), + 36: uint16(20289), + 37: uint16(20312), + 38: uint16(20269), + 39: uint16(20275), + 40: uint16(20287), + 41: uint16(20321), + 42: uint16(20879), + 43: uint16(20921), + 44: uint16(21020), + 45: uint16(21022), + 46: uint16(21025), + 47: uint16(21165), + 48: uint16(21166), + 49: uint16(21257), + 50: uint16(21347), + 51: uint16(21362), + 52: uint16(21390), + 53: uint16(21391), + 54: uint16(21552), + 55: uint16(21559), + 56: uint16(21546), + 57: uint16(21588), + 58: uint16(21573), + 59: uint16(21529), + 60: uint16(21532), + 61: uint16(21541), + 62: uint16(21528), + 63: uint16(21565), + 64: uint16(21583), + 65: uint16(21569), + 66: uint16(21544), + 67: uint16(21540), + 68: uint16(21575), + 69: uint16(22254), + 70: uint16(22247), + 71: uint16(22245), + 72: uint16(22337), + 73: uint16(22341), + 74: uint16(22348), + 75: uint16(22345), + 76: uint16(22347), + 77: uint16(22354), + 78: uint16(22790), + 79: uint16(22848), + 80: uint16(22950), + 81: uint16(22936), + 82: uint16(22944), + 83: uint16(22935), + 84: uint16(22926), + 85: uint16(22946), + 86: uint16(22928), + 87: uint16(22927), + 88: uint16(22951), + 89: uint16(22945), + 90: uint16(23438), + 91: uint16(23442), + 92: uint16(23592), + 93: uint16(23594), + 94: uint16(23693), + 95: uint16(23695), + 96: uint16(23688), + 97: uint16(23691), + 98: uint16(23689), + 99: uint16(23698), + 100: uint16(23690), + 101: uint16(23686), + 102: uint16(23699), + 103: uint16(23701), + 104: uint16(24032), + 105: uint16(24074), + 106: uint16(24078), + 107: uint16(24203), + 108: uint16(24201), + 109: uint16(24204), + 110: uint16(24200), + 111: uint16(24205), + 112: uint16(24325), + 113: uint16(24349), + 114: uint16(24440), + 115: uint16(24438), + 116: uint16(24530), + 117: uint16(24529), + 118: uint16(24528), + 119: uint16(24557), + 120: uint16(24552), + 121: uint16(24558), + 122: uint16(24563), + 123: uint16(24545), + 124: uint16(24548), + 125: uint16(24547), + 126: uint16(24570), + 127: uint16(24559), + 128: uint16(24567), + 129: uint16(24571), + 130: uint16(24576), + 131: uint16(24564), + 132: uint16(25146), + 133: uint16(25219), + 134: uint16(25228), + 135: uint16(25230), + 136: uint16(25231), + 137: uint16(25236), + 138: uint16(25223), + 139: uint16(25201), + 140: uint16(25211), + 141: uint16(25210), + 142: uint16(25200), + 143: uint16(25217), + 144: uint16(25224), + 145: uint16(25207), + 146: uint16(25213), + 147: uint16(25202), + 148: uint16(25204), + 149: uint16(25911), + 150: uint16(26096), + 151: uint16(26100), + 152: uint16(26099), + 153: uint16(26098), + 154: uint16(26101), + 155: uint16(26437), + 156: uint16(26439), + }, + 42: { + 0: uint16(26457), + 1: uint16(26453), + 2: uint16(26444), + 3: uint16(26440), + 4: uint16(26461), + 5: uint16(26445), + 6: uint16(26458), + 7: uint16(26443), + 8: uint16(27600), + 9: uint16(27673), + 10: uint16(27674), + 11: uint16(27768), + 12: uint16(27751), + 13: uint16(27755), + 14: uint16(27780), + 15: uint16(27787), + 16: uint16(27791), + 17: uint16(27761), + 18: uint16(27759), + 19: uint16(27753), + 20: uint16(27802), + 21: uint16(27757), + 22: uint16(27783), + 23: uint16(27797), + 24: uint16(27804), + 25: uint16(27750), + 26: uint16(27763), + 27: uint16(27749), + 28: uint16(27771), + 29: uint16(27790), + 30: uint16(28788), + 31: uint16(28794), + 32: uint16(29283), + 33: uint16(29375), + 34: uint16(29373), + 35: uint16(29379), + 36: uint16(29382), + 37: uint16(29377), + 38: uint16(29370), + 39: uint16(29381), + 40: uint16(29589), + 41: uint16(29591), + 42: uint16(29587), + 43: uint16(29588), + 44: uint16(29586), + 45: uint16(30010), + 46: uint16(30009), + 47: uint16(30100), + 48: uint16(30101), + 49: uint16(30337), + 50: uint16(31037), + 51: uint16(32820), + 52: uint16(32917), + 53: uint16(32921), + 54: uint16(32912), + 55: uint16(32914), + 56: uint16(32924), + 57: uint16(33424), + 58: uint16(33423), + 59: uint16(33413), + 60: uint16(33422), + 61: uint16(33425), + 62: uint16(33427), + 63: uint16(33418), + 64: uint16(33411), + 65: uint16(33412), + 66: uint16(35960), + 67: uint16(36809), + 68: uint16(36799), + 69: uint16(37023), + 70: uint16(37025), + 71: uint16(37029), + 72: uint16(37022), + 73: uint16(37031), + 74: uint16(37024), + 75: uint16(38448), + 76: uint16(38440), + 77: uint16(38447), + 78: uint16(38445), + 79: uint16(20019), + 80: uint16(20376), + 81: uint16(20348), + 82: uint16(20357), + 83: uint16(20349), + 84: uint16(20352), + 85: uint16(20359), + 86: uint16(20342), + 87: uint16(20340), + 88: uint16(20361), + 89: uint16(20356), + 90: uint16(20343), + 91: uint16(20300), + 92: uint16(20375), + 93: uint16(20330), + 94: uint16(20378), + 95: uint16(20345), + 96: uint16(20353), + 97: uint16(20344), + 98: uint16(20368), + 99: uint16(20380), + 100: uint16(20372), + 101: uint16(20382), + 102: uint16(20370), + 103: uint16(20354), + 104: uint16(20373), + 105: uint16(20331), + 106: uint16(20334), + 107: uint16(20894), + 108: uint16(20924), + 109: uint16(20926), + 110: uint16(21045), + 111: uint16(21042), + 112: uint16(21043), + 113: uint16(21062), + 114: uint16(21041), + 115: uint16(21180), + 116: uint16(21258), + 117: uint16(21259), + 118: uint16(21308), + 119: uint16(21394), + 120: uint16(21396), + 121: uint16(21639), + 122: uint16(21631), + 123: uint16(21633), + 124: uint16(21649), + 125: uint16(21634), + 126: uint16(21640), + 127: uint16(21611), + 128: uint16(21626), + 129: uint16(21630), + 130: uint16(21605), + 131: uint16(21612), + 132: uint16(21620), + 133: uint16(21606), + 134: uint16(21645), + 135: uint16(21615), + 136: uint16(21601), + 137: uint16(21600), + 138: uint16(21656), + 139: uint16(21603), + 140: uint16(21607), + 141: uint16(21604), + 142: uint16(22263), + 143: uint16(22265), + 144: uint16(22383), + 145: uint16(22386), + 146: uint16(22381), + 147: uint16(22379), + 148: uint16(22385), + 149: uint16(22384), + 150: uint16(22390), + 151: uint16(22400), + 152: uint16(22389), + 153: uint16(22395), + 154: uint16(22387), + 155: uint16(22388), + 156: uint16(22370), + }, + 43: { + 0: uint16(22376), + 1: uint16(22397), + 2: uint16(22796), + 3: uint16(22853), + 4: uint16(22965), + 5: uint16(22970), + 6: uint16(22991), + 7: uint16(22990), + 8: uint16(22962), + 9: uint16(22988), + 10: uint16(22977), + 11: uint16(22966), + 12: uint16(22972), + 13: uint16(22979), + 14: uint16(22998), + 15: uint16(22961), + 16: uint16(22973), + 17: uint16(22976), + 18: uint16(22984), + 19: uint16(22964), + 20: uint16(22983), + 21: uint16(23394), + 22: uint16(23397), + 23: uint16(23443), + 24: uint16(23445), + 25: uint16(23620), + 26: uint16(23623), + 27: uint16(23726), + 28: uint16(23716), + 29: uint16(23712), + 30: uint16(23733), + 31: uint16(23727), + 32: uint16(23720), + 33: uint16(23724), + 34: uint16(23711), + 35: uint16(23715), + 36: uint16(23725), + 37: uint16(23714), + 38: uint16(23722), + 39: uint16(23719), + 40: uint16(23709), + 41: uint16(23717), + 42: uint16(23734), + 43: uint16(23728), + 44: uint16(23718), + 45: uint16(24087), + 46: uint16(24084), + 47: uint16(24089), + 48: uint16(24360), + 49: uint16(24354), + 50: uint16(24355), + 51: uint16(24356), + 52: uint16(24404), + 53: uint16(24450), + 54: uint16(24446), + 55: uint16(24445), + 56: uint16(24542), + 57: uint16(24549), + 58: uint16(24621), + 59: uint16(24614), + 60: uint16(24601), + 61: uint16(24626), + 62: uint16(24587), + 63: uint16(24628), + 64: uint16(24586), + 65: uint16(24599), + 66: uint16(24627), + 67: uint16(24602), + 68: uint16(24606), + 69: uint16(24620), + 70: uint16(24610), + 71: uint16(24589), + 72: uint16(24592), + 73: uint16(24622), + 74: uint16(24595), + 75: uint16(24593), + 76: uint16(24588), + 77: uint16(24585), + 78: uint16(24604), + 79: uint16(25108), + 80: uint16(25149), + 81: uint16(25261), + 82: uint16(25268), + 83: uint16(25297), + 84: uint16(25278), + 85: uint16(25258), + 86: uint16(25270), + 87: uint16(25290), + 88: uint16(25262), + 89: uint16(25267), + 90: uint16(25263), + 91: uint16(25275), + 92: uint16(25257), + 93: uint16(25264), + 94: uint16(25272), + 95: uint16(25917), + 96: uint16(26024), + 97: uint16(26043), + 98: uint16(26121), + 99: uint16(26108), + 100: uint16(26116), + 101: uint16(26130), + 102: uint16(26120), + 103: uint16(26107), + 104: uint16(26115), + 105: uint16(26123), + 106: uint16(26125), + 107: uint16(26117), + 108: uint16(26109), + 109: uint16(26129), + 110: uint16(26128), + 111: uint16(26358), + 112: uint16(26378), + 113: uint16(26501), + 114: uint16(26476), + 115: uint16(26510), + 116: uint16(26514), + 117: uint16(26486), + 118: uint16(26491), + 119: uint16(26520), + 120: uint16(26502), + 121: uint16(26500), + 122: uint16(26484), + 123: uint16(26509), + 124: uint16(26508), + 125: uint16(26490), + 126: uint16(26527), + 127: uint16(26513), + 128: uint16(26521), + 129: uint16(26499), + 130: uint16(26493), + 131: uint16(26497), + 132: uint16(26488), + 133: uint16(26489), + 134: uint16(26516), + 135: uint16(27429), + 136: uint16(27520), + 137: uint16(27518), + 138: uint16(27614), + 139: uint16(27677), + 140: uint16(27795), + 141: uint16(27884), + 142: uint16(27883), + 143: uint16(27886), + 144: uint16(27865), + 145: uint16(27830), + 146: uint16(27860), + 147: uint16(27821), + 148: uint16(27879), + 149: uint16(27831), + 150: uint16(27856), + 151: uint16(27842), + 152: uint16(27834), + 153: uint16(27843), + 154: uint16(27846), + 155: uint16(27885), + 156: uint16(27890), + }, + 44: { + 0: uint16(27858), + 1: uint16(27869), + 2: uint16(27828), + 3: uint16(27786), + 4: uint16(27805), + 5: uint16(27776), + 6: uint16(27870), + 7: uint16(27840), + 8: uint16(27952), + 9: uint16(27853), + 10: uint16(27847), + 11: uint16(27824), + 12: uint16(27897), + 13: uint16(27855), + 14: uint16(27881), + 15: uint16(27857), + 16: uint16(28820), + 17: uint16(28824), + 18: uint16(28805), + 19: uint16(28819), + 20: uint16(28806), + 21: uint16(28804), + 22: uint16(28817), + 23: uint16(28822), + 24: uint16(28802), + 25: uint16(28826), + 26: uint16(28803), + 27: uint16(29290), + 28: uint16(29398), + 29: uint16(29387), + 30: uint16(29400), + 31: uint16(29385), + 32: uint16(29404), + 33: uint16(29394), + 34: uint16(29396), + 35: uint16(29402), + 36: uint16(29388), + 37: uint16(29393), + 38: uint16(29604), + 39: uint16(29601), + 40: uint16(29613), + 41: uint16(29606), + 42: uint16(29602), + 43: uint16(29600), + 44: uint16(29612), + 45: uint16(29597), + 46: uint16(29917), + 47: uint16(29928), + 48: uint16(30015), + 49: uint16(30016), + 50: uint16(30014), + 51: uint16(30092), + 52: uint16(30104), + 53: uint16(30383), + 54: uint16(30451), + 55: uint16(30449), + 56: uint16(30448), + 57: uint16(30453), + 58: uint16(30712), + 59: uint16(30716), + 60: uint16(30713), + 61: uint16(30715), + 62: uint16(30714), + 63: uint16(30711), + 64: uint16(31042), + 65: uint16(31039), + 66: uint16(31173), + 67: uint16(31352), + 68: uint16(31355), + 69: uint16(31483), + 70: uint16(31861), + 71: uint16(31997), + 72: uint16(32821), + 73: uint16(32911), + 74: uint16(32942), + 75: uint16(32931), + 76: uint16(32952), + 77: uint16(32949), + 78: uint16(32941), + 79: uint16(33312), + 80: uint16(33440), + 81: uint16(33472), + 82: uint16(33451), + 83: uint16(33434), + 84: uint16(33432), + 85: uint16(33435), + 86: uint16(33461), + 87: uint16(33447), + 88: uint16(33454), + 89: uint16(33468), + 90: uint16(33438), + 91: uint16(33466), + 92: uint16(33460), + 93: uint16(33448), + 94: uint16(33441), + 95: uint16(33449), + 96: uint16(33474), + 97: uint16(33444), + 98: uint16(33475), + 99: uint16(33462), + 100: uint16(33442), + 101: uint16(34416), + 102: uint16(34415), + 103: uint16(34413), + 104: uint16(34414), + 105: uint16(35926), + 106: uint16(36818), + 107: uint16(36811), + 108: uint16(36819), + 109: uint16(36813), + 110: uint16(36822), + 111: uint16(36821), + 112: uint16(36823), + 113: uint16(37042), + 114: uint16(37044), + 115: uint16(37039), + 116: uint16(37043), + 117: uint16(37040), + 118: uint16(38457), + 119: uint16(38461), + 120: uint16(38460), + 121: uint16(38458), + 122: uint16(38467), + 123: uint16(20429), + 124: uint16(20421), + 125: uint16(20435), + 126: uint16(20402), + 127: uint16(20425), + 128: uint16(20427), + 129: uint16(20417), + 130: uint16(20436), + 131: uint16(20444), + 132: uint16(20441), + 133: uint16(20411), + 134: uint16(20403), + 135: uint16(20443), + 136: uint16(20423), + 137: uint16(20438), + 138: uint16(20410), + 139: uint16(20416), + 140: uint16(20409), + 141: uint16(20460), + 142: uint16(21060), + 143: uint16(21065), + 144: uint16(21184), + 145: uint16(21186), + 146: uint16(21309), + 147: uint16(21372), + 148: uint16(21399), + 149: uint16(21398), + 150: uint16(21401), + 151: uint16(21400), + 152: uint16(21690), + 153: uint16(21665), + 154: uint16(21677), + 155: uint16(21669), + 156: uint16(21711), + }, + 45: { + 0: uint16(21699), + 1: uint16(33549), + 2: uint16(21687), + 3: uint16(21678), + 4: uint16(21718), + 5: uint16(21686), + 6: uint16(21701), + 7: uint16(21702), + 8: uint16(21664), + 9: uint16(21616), + 10: uint16(21692), + 11: uint16(21666), + 12: uint16(21694), + 13: uint16(21618), + 14: uint16(21726), + 15: uint16(21680), + 16: uint16(22453), + 17: uint16(22430), + 18: uint16(22431), + 19: uint16(22436), + 20: uint16(22412), + 21: uint16(22423), + 22: uint16(22429), + 23: uint16(22427), + 24: uint16(22420), + 25: uint16(22424), + 26: uint16(22415), + 27: uint16(22425), + 28: uint16(22437), + 29: uint16(22426), + 30: uint16(22421), + 31: uint16(22772), + 32: uint16(22797), + 33: uint16(22867), + 34: uint16(23009), + 35: uint16(23006), + 36: uint16(23022), + 37: uint16(23040), + 38: uint16(23025), + 39: uint16(23005), + 40: uint16(23034), + 41: uint16(23037), + 42: uint16(23036), + 43: uint16(23030), + 44: uint16(23012), + 45: uint16(23026), + 46: uint16(23031), + 47: uint16(23003), + 48: uint16(23017), + 49: uint16(23027), + 50: uint16(23029), + 51: uint16(23008), + 52: uint16(23038), + 53: uint16(23028), + 54: uint16(23021), + 55: uint16(23464), + 56: uint16(23628), + 57: uint16(23760), + 58: uint16(23768), + 59: uint16(23756), + 60: uint16(23767), + 61: uint16(23755), + 62: uint16(23771), + 63: uint16(23774), + 64: uint16(23770), + 65: uint16(23753), + 66: uint16(23751), + 67: uint16(23754), + 68: uint16(23766), + 69: uint16(23763), + 70: uint16(23764), + 71: uint16(23759), + 72: uint16(23752), + 73: uint16(23750), + 74: uint16(23758), + 75: uint16(23775), + 76: uint16(23800), + 77: uint16(24057), + 78: uint16(24097), + 79: uint16(24098), + 80: uint16(24099), + 81: uint16(24096), + 82: uint16(24100), + 83: uint16(24240), + 84: uint16(24228), + 85: uint16(24226), + 86: uint16(24219), + 87: uint16(24227), + 88: uint16(24229), + 89: uint16(24327), + 90: uint16(24366), + 91: uint16(24406), + 92: uint16(24454), + 93: uint16(24631), + 94: uint16(24633), + 95: uint16(24660), + 96: uint16(24690), + 97: uint16(24670), + 98: uint16(24645), + 99: uint16(24659), + 100: uint16(24647), + 101: uint16(24649), + 102: uint16(24667), + 103: uint16(24652), + 104: uint16(24640), + 105: uint16(24642), + 106: uint16(24671), + 107: uint16(24612), + 108: uint16(24644), + 109: uint16(24664), + 110: uint16(24678), + 111: uint16(24686), + 112: uint16(25154), + 113: uint16(25155), + 114: uint16(25295), + 115: uint16(25357), + 116: uint16(25355), + 117: uint16(25333), + 118: uint16(25358), + 119: uint16(25347), + 120: uint16(25323), + 121: uint16(25337), + 122: uint16(25359), + 123: uint16(25356), + 124: uint16(25336), + 125: uint16(25334), + 126: uint16(25344), + 127: uint16(25363), + 128: uint16(25364), + 129: uint16(25338), + 130: uint16(25365), + 131: uint16(25339), + 132: uint16(25328), + 133: uint16(25921), + 134: uint16(25923), + 135: uint16(26026), + 136: uint16(26047), + 137: uint16(26166), + 138: uint16(26145), + 139: uint16(26162), + 140: uint16(26165), + 141: uint16(26140), + 142: uint16(26150), + 143: uint16(26146), + 144: uint16(26163), + 145: uint16(26155), + 146: uint16(26170), + 147: uint16(26141), + 148: uint16(26164), + 149: uint16(26169), + 150: uint16(26158), + 151: uint16(26383), + 152: uint16(26384), + 153: uint16(26561), + 154: uint16(26610), + 155: uint16(26568), + 156: uint16(26554), + }, + 46: { + 0: uint16(26588), + 1: uint16(26555), + 2: uint16(26616), + 3: uint16(26584), + 4: uint16(26560), + 5: uint16(26551), + 6: uint16(26565), + 7: uint16(26603), + 8: uint16(26596), + 9: uint16(26591), + 10: uint16(26549), + 11: uint16(26573), + 12: uint16(26547), + 13: uint16(26615), + 14: uint16(26614), + 15: uint16(26606), + 16: uint16(26595), + 17: uint16(26562), + 18: uint16(26553), + 19: uint16(26574), + 20: uint16(26599), + 21: uint16(26608), + 22: uint16(26546), + 23: uint16(26620), + 24: uint16(26566), + 25: uint16(26605), + 26: uint16(26572), + 27: uint16(26542), + 28: uint16(26598), + 29: uint16(26587), + 30: uint16(26618), + 31: uint16(26569), + 32: uint16(26570), + 33: uint16(26563), + 34: uint16(26602), + 35: uint16(26571), + 36: uint16(27432), + 37: uint16(27522), + 38: uint16(27524), + 39: uint16(27574), + 40: uint16(27606), + 41: uint16(27608), + 42: uint16(27616), + 43: uint16(27680), + 44: uint16(27681), + 45: uint16(27944), + 46: uint16(27956), + 47: uint16(27949), + 48: uint16(27935), + 49: uint16(27964), + 50: uint16(27967), + 51: uint16(27922), + 52: uint16(27914), + 53: uint16(27866), + 54: uint16(27955), + 55: uint16(27908), + 56: uint16(27929), + 57: uint16(27962), + 58: uint16(27930), + 59: uint16(27921), + 60: uint16(27904), + 61: uint16(27933), + 62: uint16(27970), + 63: uint16(27905), + 64: uint16(27928), + 65: uint16(27959), + 66: uint16(27907), + 67: uint16(27919), + 68: uint16(27968), + 69: uint16(27911), + 70: uint16(27936), + 71: uint16(27948), + 72: uint16(27912), + 73: uint16(27938), + 74: uint16(27913), + 75: uint16(27920), + 76: uint16(28855), + 77: uint16(28831), + 78: uint16(28862), + 79: uint16(28849), + 80: uint16(28848), + 81: uint16(28833), + 82: uint16(28852), + 83: uint16(28853), + 84: uint16(28841), + 85: uint16(29249), + 86: uint16(29257), + 87: uint16(29258), + 88: uint16(29292), + 89: uint16(29296), + 90: uint16(29299), + 91: uint16(29294), + 92: uint16(29386), + 93: uint16(29412), + 94: uint16(29416), + 95: uint16(29419), + 96: uint16(29407), + 97: uint16(29418), + 98: uint16(29414), + 99: uint16(29411), + 100: uint16(29573), + 101: uint16(29644), + 102: uint16(29634), + 103: uint16(29640), + 104: uint16(29637), + 105: uint16(29625), + 106: uint16(29622), + 107: uint16(29621), + 108: uint16(29620), + 109: uint16(29675), + 110: uint16(29631), + 111: uint16(29639), + 112: uint16(29630), + 113: uint16(29635), + 114: uint16(29638), + 115: uint16(29624), + 116: uint16(29643), + 117: uint16(29932), + 118: uint16(29934), + 119: uint16(29998), + 120: uint16(30023), + 121: uint16(30024), + 122: uint16(30119), + 123: uint16(30122), + 124: uint16(30329), + 125: uint16(30404), + 126: uint16(30472), + 127: uint16(30467), + 128: uint16(30468), + 129: uint16(30469), + 130: uint16(30474), + 131: uint16(30455), + 132: uint16(30459), + 133: uint16(30458), + 134: uint16(30695), + 135: uint16(30696), + 136: uint16(30726), + 137: uint16(30737), + 138: uint16(30738), + 139: uint16(30725), + 140: uint16(30736), + 141: uint16(30735), + 142: uint16(30734), + 143: uint16(30729), + 144: uint16(30723), + 145: uint16(30739), + 146: uint16(31050), + 147: uint16(31052), + 148: uint16(31051), + 149: uint16(31045), + 150: uint16(31044), + 151: uint16(31189), + 152: uint16(31181), + 153: uint16(31183), + 154: uint16(31190), + 155: uint16(31182), + 156: uint16(31360), + }, + 47: { + 0: uint16(31358), + 1: uint16(31441), + 2: uint16(31488), + 3: uint16(31489), + 4: uint16(31866), + 5: uint16(31864), + 6: uint16(31865), + 7: uint16(31871), + 8: uint16(31872), + 9: uint16(31873), + 10: uint16(32003), + 11: uint16(32008), + 12: uint16(32001), + 13: uint16(32600), + 14: uint16(32657), + 15: uint16(32653), + 16: uint16(32702), + 17: uint16(32775), + 18: uint16(32782), + 19: uint16(32783), + 20: uint16(32788), + 21: uint16(32823), + 22: uint16(32984), + 23: uint16(32967), + 24: uint16(32992), + 25: uint16(32977), + 26: uint16(32968), + 27: uint16(32962), + 28: uint16(32976), + 29: uint16(32965), + 30: uint16(32995), + 31: uint16(32985), + 32: uint16(32988), + 33: uint16(32970), + 34: uint16(32981), + 35: uint16(32969), + 36: uint16(32975), + 37: uint16(32983), + 38: uint16(32998), + 39: uint16(32973), + 40: uint16(33279), + 41: uint16(33313), + 42: uint16(33428), + 43: uint16(33497), + 44: uint16(33534), + 45: uint16(33529), + 46: uint16(33543), + 47: uint16(33512), + 48: uint16(33536), + 49: uint16(33493), + 50: uint16(33594), + 51: uint16(33515), + 52: uint16(33494), + 53: uint16(33524), + 54: uint16(33516), + 55: uint16(33505), + 56: uint16(33522), + 57: uint16(33525), + 58: uint16(33548), + 59: uint16(33531), + 60: uint16(33526), + 61: uint16(33520), + 62: uint16(33514), + 63: uint16(33508), + 64: uint16(33504), + 65: uint16(33530), + 66: uint16(33523), + 67: uint16(33517), + 68: uint16(34423), + 69: uint16(34420), + 70: uint16(34428), + 71: uint16(34419), + 72: uint16(34881), + 73: uint16(34894), + 74: uint16(34919), + 75: uint16(34922), + 76: uint16(34921), + 77: uint16(35283), + 78: uint16(35332), + 79: uint16(35335), + 80: uint16(36210), + 81: uint16(36835), + 82: uint16(36833), + 83: uint16(36846), + 84: uint16(36832), + 85: uint16(37105), + 86: uint16(37053), + 87: uint16(37055), + 88: uint16(37077), + 89: uint16(37061), + 90: uint16(37054), + 91: uint16(37063), + 92: uint16(37067), + 93: uint16(37064), + 94: uint16(37332), + 95: uint16(37331), + 96: uint16(38484), + 97: uint16(38479), + 98: uint16(38481), + 99: uint16(38483), + 100: uint16(38474), + 101: uint16(38478), + 102: uint16(20510), + 103: uint16(20485), + 104: uint16(20487), + 105: uint16(20499), + 106: uint16(20514), + 107: uint16(20528), + 108: uint16(20507), + 109: uint16(20469), + 110: uint16(20468), + 111: uint16(20531), + 112: uint16(20535), + 113: uint16(20524), + 114: uint16(20470), + 115: uint16(20471), + 116: uint16(20503), + 117: uint16(20508), + 118: uint16(20512), + 119: uint16(20519), + 120: uint16(20533), + 121: uint16(20527), + 122: uint16(20529), + 123: uint16(20494), + 124: uint16(20826), + 125: uint16(20884), + 126: uint16(20883), + 127: uint16(20938), + 128: uint16(20932), + 129: uint16(20933), + 130: uint16(20936), + 131: uint16(20942), + 132: uint16(21089), + 133: uint16(21082), + 134: uint16(21074), + 135: uint16(21086), + 136: uint16(21087), + 137: uint16(21077), + 138: uint16(21090), + 139: uint16(21197), + 140: uint16(21262), + 141: uint16(21406), + 142: uint16(21798), + 143: uint16(21730), + 144: uint16(21783), + 145: uint16(21778), + 146: uint16(21735), + 147: uint16(21747), + 148: uint16(21732), + 149: uint16(21786), + 150: uint16(21759), + 151: uint16(21764), + 152: uint16(21768), + 153: uint16(21739), + 154: uint16(21777), + 155: uint16(21765), + 156: uint16(21745), + }, + 48: { + 0: uint16(21770), + 1: uint16(21755), + 2: uint16(21751), + 3: uint16(21752), + 4: uint16(21728), + 5: uint16(21774), + 6: uint16(21763), + 7: uint16(21771), + 8: uint16(22273), + 9: uint16(22274), + 10: uint16(22476), + 11: uint16(22578), + 12: uint16(22485), + 13: uint16(22482), + 14: uint16(22458), + 15: uint16(22470), + 16: uint16(22461), + 17: uint16(22460), + 18: uint16(22456), + 19: uint16(22454), + 20: uint16(22463), + 21: uint16(22471), + 22: uint16(22480), + 23: uint16(22457), + 24: uint16(22465), + 25: uint16(22798), + 26: uint16(22858), + 27: uint16(23065), + 28: uint16(23062), + 29: uint16(23085), + 30: uint16(23086), + 31: uint16(23061), + 32: uint16(23055), + 33: uint16(23063), + 34: uint16(23050), + 35: uint16(23070), + 36: uint16(23091), + 37: uint16(23404), + 38: uint16(23463), + 39: uint16(23469), + 40: uint16(23468), + 41: uint16(23555), + 42: uint16(23638), + 43: uint16(23636), + 44: uint16(23788), + 45: uint16(23807), + 46: uint16(23790), + 47: uint16(23793), + 48: uint16(23799), + 49: uint16(23808), + 50: uint16(23801), + 51: uint16(24105), + 52: uint16(24104), + 53: uint16(24232), + 54: uint16(24238), + 55: uint16(24234), + 56: uint16(24236), + 57: uint16(24371), + 58: uint16(24368), + 59: uint16(24423), + 60: uint16(24669), + 61: uint16(24666), + 62: uint16(24679), + 63: uint16(24641), + 64: uint16(24738), + 65: uint16(24712), + 66: uint16(24704), + 67: uint16(24722), + 68: uint16(24705), + 69: uint16(24733), + 70: uint16(24707), + 71: uint16(24725), + 72: uint16(24731), + 73: uint16(24727), + 74: uint16(24711), + 75: uint16(24732), + 76: uint16(24718), + 77: uint16(25113), + 78: uint16(25158), + 79: uint16(25330), + 80: uint16(25360), + 81: uint16(25430), + 82: uint16(25388), + 83: uint16(25412), + 84: uint16(25413), + 85: uint16(25398), + 86: uint16(25411), + 87: uint16(25572), + 88: uint16(25401), + 89: uint16(25419), + 90: uint16(25418), + 91: uint16(25404), + 92: uint16(25385), + 93: uint16(25409), + 94: uint16(25396), + 95: uint16(25432), + 96: uint16(25428), + 97: uint16(25433), + 98: uint16(25389), + 99: uint16(25415), + 100: uint16(25395), + 101: uint16(25434), + 102: uint16(25425), + 103: uint16(25400), + 104: uint16(25431), + 105: uint16(25408), + 106: uint16(25416), + 107: uint16(25930), + 108: uint16(25926), + 109: uint16(26054), + 110: uint16(26051), + 111: uint16(26052), + 112: uint16(26050), + 113: uint16(26186), + 114: uint16(26207), + 115: uint16(26183), + 116: uint16(26193), + 117: uint16(26386), + 118: uint16(26387), + 119: uint16(26655), + 120: uint16(26650), + 121: uint16(26697), + 122: uint16(26674), + 123: uint16(26675), + 124: uint16(26683), + 125: uint16(26699), + 126: uint16(26703), + 127: uint16(26646), + 128: uint16(26673), + 129: uint16(26652), + 130: uint16(26677), + 131: uint16(26667), + 132: uint16(26669), + 133: uint16(26671), + 134: uint16(26702), + 135: uint16(26692), + 136: uint16(26676), + 137: uint16(26653), + 138: uint16(26642), + 139: uint16(26644), + 140: uint16(26662), + 141: uint16(26664), + 142: uint16(26670), + 143: uint16(26701), + 144: uint16(26682), + 145: uint16(26661), + 146: uint16(26656), + 147: uint16(27436), + 148: uint16(27439), + 149: uint16(27437), + 150: uint16(27441), + 151: uint16(27444), + 152: uint16(27501), + 153: uint16(32898), + 154: uint16(27528), + 155: uint16(27622), + 156: uint16(27620), + }, + 49: { + 0: uint16(27624), + 1: uint16(27619), + 2: uint16(27618), + 3: uint16(27623), + 4: uint16(27685), + 5: uint16(28026), + 6: uint16(28003), + 7: uint16(28004), + 8: uint16(28022), + 9: uint16(27917), + 10: uint16(28001), + 11: uint16(28050), + 12: uint16(27992), + 13: uint16(28002), + 14: uint16(28013), + 15: uint16(28015), + 16: uint16(28049), + 17: uint16(28045), + 18: uint16(28143), + 19: uint16(28031), + 20: uint16(28038), + 21: uint16(27998), + 22: uint16(28007), + 23: uint16(28000), + 24: uint16(28055), + 25: uint16(28016), + 26: uint16(28028), + 27: uint16(27999), + 28: uint16(28034), + 29: uint16(28056), + 30: uint16(27951), + 31: uint16(28008), + 32: uint16(28043), + 33: uint16(28030), + 34: uint16(28032), + 35: uint16(28036), + 36: uint16(27926), + 37: uint16(28035), + 38: uint16(28027), + 39: uint16(28029), + 40: uint16(28021), + 41: uint16(28048), + 42: uint16(28892), + 43: uint16(28883), + 44: uint16(28881), + 45: uint16(28893), + 46: uint16(28875), + 47: uint16(32569), + 48: uint16(28898), + 49: uint16(28887), + 50: uint16(28882), + 51: uint16(28894), + 52: uint16(28896), + 53: uint16(28884), + 54: uint16(28877), + 55: uint16(28869), + 56: uint16(28870), + 57: uint16(28871), + 58: uint16(28890), + 59: uint16(28878), + 60: uint16(28897), + 61: uint16(29250), + 62: uint16(29304), + 63: uint16(29303), + 64: uint16(29302), + 65: uint16(29440), + 66: uint16(29434), + 67: uint16(29428), + 68: uint16(29438), + 69: uint16(29430), + 70: uint16(29427), + 71: uint16(29435), + 72: uint16(29441), + 73: uint16(29651), + 74: uint16(29657), + 75: uint16(29669), + 76: uint16(29654), + 77: uint16(29628), + 78: uint16(29671), + 79: uint16(29667), + 80: uint16(29673), + 81: uint16(29660), + 82: uint16(29650), + 83: uint16(29659), + 84: uint16(29652), + 85: uint16(29661), + 86: uint16(29658), + 87: uint16(29655), + 88: uint16(29656), + 89: uint16(29672), + 90: uint16(29918), + 91: uint16(29919), + 92: uint16(29940), + 93: uint16(29941), + 94: uint16(29985), + 95: uint16(30043), + 96: uint16(30047), + 97: uint16(30128), + 98: uint16(30145), + 99: uint16(30139), + 100: uint16(30148), + 101: uint16(30144), + 102: uint16(30143), + 103: uint16(30134), + 104: uint16(30138), + 105: uint16(30346), + 106: uint16(30409), + 107: uint16(30493), + 108: uint16(30491), + 109: uint16(30480), + 110: uint16(30483), + 111: uint16(30482), + 112: uint16(30499), + 113: uint16(30481), + 114: uint16(30485), + 115: uint16(30489), + 116: uint16(30490), + 117: uint16(30498), + 118: uint16(30503), + 119: uint16(30755), + 120: uint16(30764), + 121: uint16(30754), + 122: uint16(30773), + 123: uint16(30767), + 124: uint16(30760), + 125: uint16(30766), + 126: uint16(30763), + 127: uint16(30753), + 128: uint16(30761), + 129: uint16(30771), + 130: uint16(30762), + 131: uint16(30769), + 132: uint16(31060), + 133: uint16(31067), + 134: uint16(31055), + 135: uint16(31068), + 136: uint16(31059), + 137: uint16(31058), + 138: uint16(31057), + 139: uint16(31211), + 140: uint16(31212), + 141: uint16(31200), + 142: uint16(31214), + 143: uint16(31213), + 144: uint16(31210), + 145: uint16(31196), + 146: uint16(31198), + 147: uint16(31197), + 148: uint16(31366), + 149: uint16(31369), + 150: uint16(31365), + 151: uint16(31371), + 152: uint16(31372), + 153: uint16(31370), + 154: uint16(31367), + 155: uint16(31448), + 156: uint16(31504), + }, + 50: { + 0: uint16(31492), + 1: uint16(31507), + 2: uint16(31493), + 3: uint16(31503), + 4: uint16(31496), + 5: uint16(31498), + 6: uint16(31502), + 7: uint16(31497), + 8: uint16(31506), + 9: uint16(31876), + 10: uint16(31889), + 11: uint16(31882), + 12: uint16(31884), + 13: uint16(31880), + 14: uint16(31885), + 15: uint16(31877), + 16: uint16(32030), + 17: uint16(32029), + 18: uint16(32017), + 19: uint16(32014), + 20: uint16(32024), + 21: uint16(32022), + 22: uint16(32019), + 23: uint16(32031), + 24: uint16(32018), + 25: uint16(32015), + 26: uint16(32012), + 27: uint16(32604), + 28: uint16(32609), + 29: uint16(32606), + 30: uint16(32608), + 31: uint16(32605), + 32: uint16(32603), + 33: uint16(32662), + 34: uint16(32658), + 35: uint16(32707), + 36: uint16(32706), + 37: uint16(32704), + 38: uint16(32790), + 39: uint16(32830), + 40: uint16(32825), + 41: uint16(33018), + 42: uint16(33010), + 43: uint16(33017), + 44: uint16(33013), + 45: uint16(33025), + 46: uint16(33019), + 47: uint16(33024), + 48: uint16(33281), + 49: uint16(33327), + 50: uint16(33317), + 51: uint16(33587), + 52: uint16(33581), + 53: uint16(33604), + 54: uint16(33561), + 55: uint16(33617), + 56: uint16(33573), + 57: uint16(33622), + 58: uint16(33599), + 59: uint16(33601), + 60: uint16(33574), + 61: uint16(33564), + 62: uint16(33570), + 63: uint16(33602), + 64: uint16(33614), + 65: uint16(33563), + 66: uint16(33578), + 67: uint16(33544), + 68: uint16(33596), + 69: uint16(33613), + 70: uint16(33558), + 71: uint16(33572), + 72: uint16(33568), + 73: uint16(33591), + 74: uint16(33583), + 75: uint16(33577), + 76: uint16(33607), + 77: uint16(33605), + 78: uint16(33612), + 79: uint16(33619), + 80: uint16(33566), + 81: uint16(33580), + 82: uint16(33611), + 83: uint16(33575), + 84: uint16(33608), + 85: uint16(34387), + 86: uint16(34386), + 87: uint16(34466), + 88: uint16(34472), + 89: uint16(34454), + 90: uint16(34445), + 91: uint16(34449), + 92: uint16(34462), + 93: uint16(34439), + 94: uint16(34455), + 95: uint16(34438), + 96: uint16(34443), + 97: uint16(34458), + 98: uint16(34437), + 99: uint16(34469), + 100: uint16(34457), + 101: uint16(34465), + 102: uint16(34471), + 103: uint16(34453), + 104: uint16(34456), + 105: uint16(34446), + 106: uint16(34461), + 107: uint16(34448), + 108: uint16(34452), + 109: uint16(34883), + 110: uint16(34884), + 111: uint16(34925), + 112: uint16(34933), + 113: uint16(34934), + 114: uint16(34930), + 115: uint16(34944), + 116: uint16(34929), + 117: uint16(34943), + 118: uint16(34927), + 119: uint16(34947), + 120: uint16(34942), + 121: uint16(34932), + 122: uint16(34940), + 123: uint16(35346), + 124: uint16(35911), + 125: uint16(35927), + 126: uint16(35963), + 127: uint16(36004), + 128: uint16(36003), + 129: uint16(36214), + 130: uint16(36216), + 131: uint16(36277), + 132: uint16(36279), + 133: uint16(36278), + 134: uint16(36561), + 135: uint16(36563), + 136: uint16(36862), + 137: uint16(36853), + 138: uint16(36866), + 139: uint16(36863), + 140: uint16(36859), + 141: uint16(36868), + 142: uint16(36860), + 143: uint16(36854), + 144: uint16(37078), + 145: uint16(37088), + 146: uint16(37081), + 147: uint16(37082), + 148: uint16(37091), + 149: uint16(37087), + 150: uint16(37093), + 151: uint16(37080), + 152: uint16(37083), + 153: uint16(37079), + 154: uint16(37084), + 155: uint16(37092), + 156: uint16(37200), + }, + 51: { + 0: uint16(37198), + 1: uint16(37199), + 2: uint16(37333), + 3: uint16(37346), + 4: uint16(37338), + 5: uint16(38492), + 6: uint16(38495), + 7: uint16(38588), + 8: uint16(39139), + 9: uint16(39647), + 10: uint16(39727), + 11: uint16(20095), + 12: uint16(20592), + 13: uint16(20586), + 14: uint16(20577), + 15: uint16(20574), + 16: uint16(20576), + 17: uint16(20563), + 18: uint16(20555), + 19: uint16(20573), + 20: uint16(20594), + 21: uint16(20552), + 22: uint16(20557), + 23: uint16(20545), + 24: uint16(20571), + 25: uint16(20554), + 26: uint16(20578), + 27: uint16(20501), + 28: uint16(20549), + 29: uint16(20575), + 30: uint16(20585), + 31: uint16(20587), + 32: uint16(20579), + 33: uint16(20580), + 34: uint16(20550), + 35: uint16(20544), + 36: uint16(20590), + 37: uint16(20595), + 38: uint16(20567), + 39: uint16(20561), + 40: uint16(20944), + 41: uint16(21099), + 42: uint16(21101), + 43: uint16(21100), + 44: uint16(21102), + 45: uint16(21206), + 46: uint16(21203), + 47: uint16(21293), + 48: uint16(21404), + 49: uint16(21877), + 50: uint16(21878), + 51: uint16(21820), + 52: uint16(21837), + 53: uint16(21840), + 54: uint16(21812), + 55: uint16(21802), + 56: uint16(21841), + 57: uint16(21858), + 58: uint16(21814), + 59: uint16(21813), + 60: uint16(21808), + 61: uint16(21842), + 62: uint16(21829), + 63: uint16(21772), + 64: uint16(21810), + 65: uint16(21861), + 66: uint16(21838), + 67: uint16(21817), + 68: uint16(21832), + 69: uint16(21805), + 70: uint16(21819), + 71: uint16(21824), + 72: uint16(21835), + 73: uint16(22282), + 74: uint16(22279), + 75: uint16(22523), + 76: uint16(22548), + 77: uint16(22498), + 78: uint16(22518), + 79: uint16(22492), + 80: uint16(22516), + 81: uint16(22528), + 82: uint16(22509), + 83: uint16(22525), + 84: uint16(22536), + 85: uint16(22520), + 86: uint16(22539), + 87: uint16(22515), + 88: uint16(22479), + 89: uint16(22535), + 90: uint16(22510), + 91: uint16(22499), + 92: uint16(22514), + 93: uint16(22501), + 94: uint16(22508), + 95: uint16(22497), + 96: uint16(22542), + 97: uint16(22524), + 98: uint16(22544), + 99: uint16(22503), + 100: uint16(22529), + 101: uint16(22540), + 102: uint16(22513), + 103: uint16(22505), + 104: uint16(22512), + 105: uint16(22541), + 106: uint16(22532), + 107: uint16(22876), + 108: uint16(23136), + 109: uint16(23128), + 110: uint16(23125), + 111: uint16(23143), + 112: uint16(23134), + 113: uint16(23096), + 114: uint16(23093), + 115: uint16(23149), + 116: uint16(23120), + 117: uint16(23135), + 118: uint16(23141), + 119: uint16(23148), + 120: uint16(23123), + 121: uint16(23140), + 122: uint16(23127), + 123: uint16(23107), + 124: uint16(23133), + 125: uint16(23122), + 126: uint16(23108), + 127: uint16(23131), + 128: uint16(23112), + 129: uint16(23182), + 130: uint16(23102), + 131: uint16(23117), + 132: uint16(23097), + 133: uint16(23116), + 134: uint16(23152), + 135: uint16(23145), + 136: uint16(23111), + 137: uint16(23121), + 138: uint16(23126), + 139: uint16(23106), + 140: uint16(23132), + 141: uint16(23410), + 142: uint16(23406), + 143: uint16(23489), + 144: uint16(23488), + 145: uint16(23641), + 146: uint16(23838), + 147: uint16(23819), + 148: uint16(23837), + 149: uint16(23834), + 150: uint16(23840), + 151: uint16(23820), + 152: uint16(23848), + 153: uint16(23821), + 154: uint16(23846), + 155: uint16(23845), + 156: uint16(23823), + }, + 52: { + 0: uint16(23856), + 1: uint16(23826), + 2: uint16(23843), + 3: uint16(23839), + 4: uint16(23854), + 5: uint16(24126), + 6: uint16(24116), + 7: uint16(24241), + 8: uint16(24244), + 9: uint16(24249), + 10: uint16(24242), + 11: uint16(24243), + 12: uint16(24374), + 13: uint16(24376), + 14: uint16(24475), + 15: uint16(24470), + 16: uint16(24479), + 17: uint16(24714), + 18: uint16(24720), + 19: uint16(24710), + 20: uint16(24766), + 21: uint16(24752), + 22: uint16(24762), + 23: uint16(24787), + 24: uint16(24788), + 25: uint16(24783), + 26: uint16(24804), + 27: uint16(24793), + 28: uint16(24797), + 29: uint16(24776), + 30: uint16(24753), + 31: uint16(24795), + 32: uint16(24759), + 33: uint16(24778), + 34: uint16(24767), + 35: uint16(24771), + 36: uint16(24781), + 37: uint16(24768), + 38: uint16(25394), + 39: uint16(25445), + 40: uint16(25482), + 41: uint16(25474), + 42: uint16(25469), + 43: uint16(25533), + 44: uint16(25502), + 45: uint16(25517), + 46: uint16(25501), + 47: uint16(25495), + 48: uint16(25515), + 49: uint16(25486), + 50: uint16(25455), + 51: uint16(25479), + 52: uint16(25488), + 53: uint16(25454), + 54: uint16(25519), + 55: uint16(25461), + 56: uint16(25500), + 57: uint16(25453), + 58: uint16(25518), + 59: uint16(25468), + 60: uint16(25508), + 61: uint16(25403), + 62: uint16(25503), + 63: uint16(25464), + 64: uint16(25477), + 65: uint16(25473), + 66: uint16(25489), + 67: uint16(25485), + 68: uint16(25456), + 69: uint16(25939), + 70: uint16(26061), + 71: uint16(26213), + 72: uint16(26209), + 73: uint16(26203), + 74: uint16(26201), + 75: uint16(26204), + 76: uint16(26210), + 77: uint16(26392), + 78: uint16(26745), + 79: uint16(26759), + 80: uint16(26768), + 81: uint16(26780), + 82: uint16(26733), + 83: uint16(26734), + 84: uint16(26798), + 85: uint16(26795), + 86: uint16(26966), + 87: uint16(26735), + 88: uint16(26787), + 89: uint16(26796), + 90: uint16(26793), + 91: uint16(26741), + 92: uint16(26740), + 93: uint16(26802), + 94: uint16(26767), + 95: uint16(26743), + 96: uint16(26770), + 97: uint16(26748), + 98: uint16(26731), + 99: uint16(26738), + 100: uint16(26794), + 101: uint16(26752), + 102: uint16(26737), + 103: uint16(26750), + 104: uint16(26779), + 105: uint16(26774), + 106: uint16(26763), + 107: uint16(26784), + 108: uint16(26761), + 109: uint16(26788), + 110: uint16(26744), + 111: uint16(26747), + 112: uint16(26769), + 113: uint16(26764), + 114: uint16(26762), + 115: uint16(26749), + 116: uint16(27446), + 117: uint16(27443), + 118: uint16(27447), + 119: uint16(27448), + 120: uint16(27537), + 121: uint16(27535), + 122: uint16(27533), + 123: uint16(27534), + 124: uint16(27532), + 125: uint16(27690), + 126: uint16(28096), + 127: uint16(28075), + 128: uint16(28084), + 129: uint16(28083), + 130: uint16(28276), + 131: uint16(28076), + 132: uint16(28137), + 133: uint16(28130), + 134: uint16(28087), + 135: uint16(28150), + 136: uint16(28116), + 137: uint16(28160), + 138: uint16(28104), + 139: uint16(28128), + 140: uint16(28127), + 141: uint16(28118), + 142: uint16(28094), + 143: uint16(28133), + 144: uint16(28124), + 145: uint16(28125), + 146: uint16(28123), + 147: uint16(28148), + 148: uint16(28106), + 149: uint16(28093), + 150: uint16(28141), + 151: uint16(28144), + 152: uint16(28090), + 153: uint16(28117), + 154: uint16(28098), + 155: uint16(28111), + 156: uint16(28105), + }, + 53: { + 0: uint16(28112), + 1: uint16(28146), + 2: uint16(28115), + 3: uint16(28157), + 4: uint16(28119), + 5: uint16(28109), + 6: uint16(28131), + 7: uint16(28091), + 8: uint16(28922), + 9: uint16(28941), + 10: uint16(28919), + 11: uint16(28951), + 12: uint16(28916), + 13: uint16(28940), + 14: uint16(28912), + 15: uint16(28932), + 16: uint16(28915), + 17: uint16(28944), + 18: uint16(28924), + 19: uint16(28927), + 20: uint16(28934), + 21: uint16(28947), + 22: uint16(28928), + 23: uint16(28920), + 24: uint16(28918), + 25: uint16(28939), + 26: uint16(28930), + 27: uint16(28942), + 28: uint16(29310), + 29: uint16(29307), + 30: uint16(29308), + 31: uint16(29311), + 32: uint16(29469), + 33: uint16(29463), + 34: uint16(29447), + 35: uint16(29457), + 36: uint16(29464), + 37: uint16(29450), + 38: uint16(29448), + 39: uint16(29439), + 40: uint16(29455), + 41: uint16(29470), + 42: uint16(29576), + 43: uint16(29686), + 44: uint16(29688), + 45: uint16(29685), + 46: uint16(29700), + 47: uint16(29697), + 48: uint16(29693), + 49: uint16(29703), + 50: uint16(29696), + 51: uint16(29690), + 52: uint16(29692), + 53: uint16(29695), + 54: uint16(29708), + 55: uint16(29707), + 56: uint16(29684), + 57: uint16(29704), + 58: uint16(30052), + 59: uint16(30051), + 60: uint16(30158), + 61: uint16(30162), + 62: uint16(30159), + 63: uint16(30155), + 64: uint16(30156), + 65: uint16(30161), + 66: uint16(30160), + 67: uint16(30351), + 68: uint16(30345), + 69: uint16(30419), + 70: uint16(30521), + 71: uint16(30511), + 72: uint16(30509), + 73: uint16(30513), + 74: uint16(30514), + 75: uint16(30516), + 76: uint16(30515), + 77: uint16(30525), + 78: uint16(30501), + 79: uint16(30523), + 80: uint16(30517), + 81: uint16(30792), + 82: uint16(30802), + 83: uint16(30793), + 84: uint16(30797), + 85: uint16(30794), + 86: uint16(30796), + 87: uint16(30758), + 88: uint16(30789), + 89: uint16(30800), + 90: uint16(31076), + 91: uint16(31079), + 92: uint16(31081), + 93: uint16(31082), + 94: uint16(31075), + 95: uint16(31083), + 96: uint16(31073), + 97: uint16(31163), + 98: uint16(31226), + 99: uint16(31224), + 100: uint16(31222), + 101: uint16(31223), + 102: uint16(31375), + 103: uint16(31380), + 104: uint16(31376), + 105: uint16(31541), + 106: uint16(31559), + 107: uint16(31540), + 108: uint16(31525), + 109: uint16(31536), + 110: uint16(31522), + 111: uint16(31524), + 112: uint16(31539), + 113: uint16(31512), + 114: uint16(31530), + 115: uint16(31517), + 116: uint16(31537), + 117: uint16(31531), + 118: uint16(31533), + 119: uint16(31535), + 120: uint16(31538), + 121: uint16(31544), + 122: uint16(31514), + 123: uint16(31523), + 124: uint16(31892), + 125: uint16(31896), + 126: uint16(31894), + 127: uint16(31907), + 128: uint16(32053), + 129: uint16(32061), + 130: uint16(32056), + 131: uint16(32054), + 132: uint16(32058), + 133: uint16(32069), + 134: uint16(32044), + 135: uint16(32041), + 136: uint16(32065), + 137: uint16(32071), + 138: uint16(32062), + 139: uint16(32063), + 140: uint16(32074), + 141: uint16(32059), + 142: uint16(32040), + 143: uint16(32611), + 144: uint16(32661), + 145: uint16(32668), + 146: uint16(32669), + 147: uint16(32667), + 148: uint16(32714), + 149: uint16(32715), + 150: uint16(32717), + 151: uint16(32720), + 152: uint16(32721), + 153: uint16(32711), + 154: uint16(32719), + 155: uint16(32713), + 156: uint16(32799), + }, + 54: { + 0: uint16(32798), + 1: uint16(32795), + 2: uint16(32839), + 3: uint16(32835), + 4: uint16(32840), + 5: uint16(33048), + 6: uint16(33061), + 7: uint16(33049), + 8: uint16(33051), + 9: uint16(33069), + 10: uint16(33055), + 11: uint16(33068), + 12: uint16(33054), + 13: uint16(33057), + 14: uint16(33045), + 15: uint16(33063), + 16: uint16(33053), + 17: uint16(33058), + 18: uint16(33297), + 19: uint16(33336), + 20: uint16(33331), + 21: uint16(33338), + 22: uint16(33332), + 23: uint16(33330), + 24: uint16(33396), + 25: uint16(33680), + 26: uint16(33699), + 27: uint16(33704), + 28: uint16(33677), + 29: uint16(33658), + 30: uint16(33651), + 31: uint16(33700), + 32: uint16(33652), + 33: uint16(33679), + 34: uint16(33665), + 35: uint16(33685), + 36: uint16(33689), + 37: uint16(33653), + 38: uint16(33684), + 39: uint16(33705), + 40: uint16(33661), + 41: uint16(33667), + 42: uint16(33676), + 43: uint16(33693), + 44: uint16(33691), + 45: uint16(33706), + 46: uint16(33675), + 47: uint16(33662), + 48: uint16(33701), + 49: uint16(33711), + 50: uint16(33672), + 51: uint16(33687), + 52: uint16(33712), + 53: uint16(33663), + 54: uint16(33702), + 55: uint16(33671), + 56: uint16(33710), + 57: uint16(33654), + 58: uint16(33690), + 59: uint16(34393), + 60: uint16(34390), + 61: uint16(34495), + 62: uint16(34487), + 63: uint16(34498), + 64: uint16(34497), + 65: uint16(34501), + 66: uint16(34490), + 67: uint16(34480), + 68: uint16(34504), + 69: uint16(34489), + 70: uint16(34483), + 71: uint16(34488), + 72: uint16(34508), + 73: uint16(34484), + 74: uint16(34491), + 75: uint16(34492), + 76: uint16(34499), + 77: uint16(34493), + 78: uint16(34494), + 79: uint16(34898), + 80: uint16(34953), + 81: uint16(34965), + 82: uint16(34984), + 83: uint16(34978), + 84: uint16(34986), + 85: uint16(34970), + 86: uint16(34961), + 87: uint16(34977), + 88: uint16(34975), + 89: uint16(34968), + 90: uint16(34983), + 91: uint16(34969), + 92: uint16(34971), + 93: uint16(34967), + 94: uint16(34980), + 95: uint16(34988), + 96: uint16(34956), + 97: uint16(34963), + 98: uint16(34958), + 99: uint16(35202), + 100: uint16(35286), + 101: uint16(35289), + 102: uint16(35285), + 103: uint16(35376), + 104: uint16(35367), + 105: uint16(35372), + 106: uint16(35358), + 107: uint16(35897), + 108: uint16(35899), + 109: uint16(35932), + 110: uint16(35933), + 111: uint16(35965), + 112: uint16(36005), + 113: uint16(36221), + 114: uint16(36219), + 115: uint16(36217), + 116: uint16(36284), + 117: uint16(36290), + 118: uint16(36281), + 119: uint16(36287), + 120: uint16(36289), + 121: uint16(36568), + 122: uint16(36574), + 123: uint16(36573), + 124: uint16(36572), + 125: uint16(36567), + 126: uint16(36576), + 127: uint16(36577), + 128: uint16(36900), + 129: uint16(36875), + 130: uint16(36881), + 131: uint16(36892), + 132: uint16(36876), + 133: uint16(36897), + 134: uint16(37103), + 135: uint16(37098), + 136: uint16(37104), + 137: uint16(37108), + 138: uint16(37106), + 139: uint16(37107), + 140: uint16(37076), + 141: uint16(37099), + 142: uint16(37100), + 143: uint16(37097), + 144: uint16(37206), + 145: uint16(37208), + 146: uint16(37210), + 147: uint16(37203), + 148: uint16(37205), + 149: uint16(37356), + 150: uint16(37364), + 151: uint16(37361), + 152: uint16(37363), + 153: uint16(37368), + 154: uint16(37348), + 155: uint16(37369), + 156: uint16(37354), + }, + 55: { + 0: uint16(37355), + 1: uint16(37367), + 2: uint16(37352), + 3: uint16(37358), + 4: uint16(38266), + 5: uint16(38278), + 6: uint16(38280), + 7: uint16(38524), + 8: uint16(38509), + 9: uint16(38507), + 10: uint16(38513), + 11: uint16(38511), + 12: uint16(38591), + 13: uint16(38762), + 14: uint16(38916), + 15: uint16(39141), + 16: uint16(39319), + 17: uint16(20635), + 18: uint16(20629), + 19: uint16(20628), + 20: uint16(20638), + 21: uint16(20619), + 22: uint16(20643), + 23: uint16(20611), + 24: uint16(20620), + 25: uint16(20622), + 26: uint16(20637), + 27: uint16(20584), + 28: uint16(20636), + 29: uint16(20626), + 30: uint16(20610), + 31: uint16(20615), + 32: uint16(20831), + 33: uint16(20948), + 34: uint16(21266), + 35: uint16(21265), + 36: uint16(21412), + 37: uint16(21415), + 38: uint16(21905), + 39: uint16(21928), + 40: uint16(21925), + 41: uint16(21933), + 42: uint16(21879), + 43: uint16(22085), + 44: uint16(21922), + 45: uint16(21907), + 46: uint16(21896), + 47: uint16(21903), + 48: uint16(21941), + 49: uint16(21889), + 50: uint16(21923), + 51: uint16(21906), + 52: uint16(21924), + 53: uint16(21885), + 54: uint16(21900), + 55: uint16(21926), + 56: uint16(21887), + 57: uint16(21909), + 58: uint16(21921), + 59: uint16(21902), + 60: uint16(22284), + 61: uint16(22569), + 62: uint16(22583), + 63: uint16(22553), + 64: uint16(22558), + 65: uint16(22567), + 66: uint16(22563), + 67: uint16(22568), + 68: uint16(22517), + 69: uint16(22600), + 70: uint16(22565), + 71: uint16(22556), + 72: uint16(22555), + 73: uint16(22579), + 74: uint16(22591), + 75: uint16(22582), + 76: uint16(22574), + 77: uint16(22585), + 78: uint16(22584), + 79: uint16(22573), + 80: uint16(22572), + 81: uint16(22587), + 82: uint16(22881), + 83: uint16(23215), + 84: uint16(23188), + 85: uint16(23199), + 86: uint16(23162), + 87: uint16(23202), + 88: uint16(23198), + 89: uint16(23160), + 90: uint16(23206), + 91: uint16(23164), + 92: uint16(23205), + 93: uint16(23212), + 94: uint16(23189), + 95: uint16(23214), + 96: uint16(23095), + 97: uint16(23172), + 98: uint16(23178), + 99: uint16(23191), + 100: uint16(23171), + 101: uint16(23179), + 102: uint16(23209), + 103: uint16(23163), + 104: uint16(23165), + 105: uint16(23180), + 106: uint16(23196), + 107: uint16(23183), + 108: uint16(23187), + 109: uint16(23197), + 110: uint16(23530), + 111: uint16(23501), + 112: uint16(23499), + 113: uint16(23508), + 114: uint16(23505), + 115: uint16(23498), + 116: uint16(23502), + 117: uint16(23564), + 118: uint16(23600), + 119: uint16(23863), + 120: uint16(23875), + 121: uint16(23915), + 122: uint16(23873), + 123: uint16(23883), + 124: uint16(23871), + 125: uint16(23861), + 126: uint16(23889), + 127: uint16(23886), + 128: uint16(23893), + 129: uint16(23859), + 130: uint16(23866), + 131: uint16(23890), + 132: uint16(23869), + 133: uint16(23857), + 134: uint16(23897), + 135: uint16(23874), + 136: uint16(23865), + 137: uint16(23881), + 138: uint16(23864), + 139: uint16(23868), + 140: uint16(23858), + 141: uint16(23862), + 142: uint16(23872), + 143: uint16(23877), + 144: uint16(24132), + 145: uint16(24129), + 146: uint16(24408), + 147: uint16(24486), + 148: uint16(24485), + 149: uint16(24491), + 150: uint16(24777), + 151: uint16(24761), + 152: uint16(24780), + 153: uint16(24802), + 154: uint16(24782), + 155: uint16(24772), + 156: uint16(24852), + }, + 56: { + 0: uint16(24818), + 1: uint16(24842), + 2: uint16(24854), + 3: uint16(24837), + 4: uint16(24821), + 5: uint16(24851), + 6: uint16(24824), + 7: uint16(24828), + 8: uint16(24830), + 9: uint16(24769), + 10: uint16(24835), + 11: uint16(24856), + 12: uint16(24861), + 13: uint16(24848), + 14: uint16(24831), + 15: uint16(24836), + 16: uint16(24843), + 17: uint16(25162), + 18: uint16(25492), + 19: uint16(25521), + 20: uint16(25520), + 21: uint16(25550), + 22: uint16(25573), + 23: uint16(25576), + 24: uint16(25583), + 25: uint16(25539), + 26: uint16(25757), + 27: uint16(25587), + 28: uint16(25546), + 29: uint16(25568), + 30: uint16(25590), + 31: uint16(25557), + 32: uint16(25586), + 33: uint16(25589), + 34: uint16(25697), + 35: uint16(25567), + 36: uint16(25534), + 37: uint16(25565), + 38: uint16(25564), + 39: uint16(25540), + 40: uint16(25560), + 41: uint16(25555), + 42: uint16(25538), + 43: uint16(25543), + 44: uint16(25548), + 45: uint16(25547), + 46: uint16(25544), + 47: uint16(25584), + 48: uint16(25559), + 49: uint16(25561), + 50: uint16(25906), + 51: uint16(25959), + 52: uint16(25962), + 53: uint16(25956), + 54: uint16(25948), + 55: uint16(25960), + 56: uint16(25957), + 57: uint16(25996), + 58: uint16(26013), + 59: uint16(26014), + 60: uint16(26030), + 61: uint16(26064), + 62: uint16(26066), + 63: uint16(26236), + 64: uint16(26220), + 65: uint16(26235), + 66: uint16(26240), + 67: uint16(26225), + 68: uint16(26233), + 69: uint16(26218), + 70: uint16(26226), + 71: uint16(26369), + 72: uint16(26892), + 73: uint16(26835), + 74: uint16(26884), + 75: uint16(26844), + 76: uint16(26922), + 77: uint16(26860), + 78: uint16(26858), + 79: uint16(26865), + 80: uint16(26895), + 81: uint16(26838), + 82: uint16(26871), + 83: uint16(26859), + 84: uint16(26852), + 85: uint16(26870), + 86: uint16(26899), + 87: uint16(26896), + 88: uint16(26867), + 89: uint16(26849), + 90: uint16(26887), + 91: uint16(26828), + 92: uint16(26888), + 93: uint16(26992), + 94: uint16(26804), + 95: uint16(26897), + 96: uint16(26863), + 97: uint16(26822), + 98: uint16(26900), + 99: uint16(26872), + 100: uint16(26832), + 101: uint16(26877), + 102: uint16(26876), + 103: uint16(26856), + 104: uint16(26891), + 105: uint16(26890), + 106: uint16(26903), + 107: uint16(26830), + 108: uint16(26824), + 109: uint16(26845), + 110: uint16(26846), + 111: uint16(26854), + 112: uint16(26868), + 113: uint16(26833), + 114: uint16(26886), + 115: uint16(26836), + 116: uint16(26857), + 117: uint16(26901), + 118: uint16(26917), + 119: uint16(26823), + 120: uint16(27449), + 121: uint16(27451), + 122: uint16(27455), + 123: uint16(27452), + 124: uint16(27540), + 125: uint16(27543), + 126: uint16(27545), + 127: uint16(27541), + 128: uint16(27581), + 129: uint16(27632), + 130: uint16(27634), + 131: uint16(27635), + 132: uint16(27696), + 133: uint16(28156), + 134: uint16(28230), + 135: uint16(28231), + 136: uint16(28191), + 137: uint16(28233), + 138: uint16(28296), + 139: uint16(28220), + 140: uint16(28221), + 141: uint16(28229), + 142: uint16(28258), + 143: uint16(28203), + 144: uint16(28223), + 145: uint16(28225), + 146: uint16(28253), + 147: uint16(28275), + 148: uint16(28188), + 149: uint16(28211), + 150: uint16(28235), + 151: uint16(28224), + 152: uint16(28241), + 153: uint16(28219), + 154: uint16(28163), + 155: uint16(28206), + 156: uint16(28254), + }, + 57: { + 0: uint16(28264), + 1: uint16(28252), + 2: uint16(28257), + 3: uint16(28209), + 4: uint16(28200), + 5: uint16(28256), + 6: uint16(28273), + 7: uint16(28267), + 8: uint16(28217), + 9: uint16(28194), + 10: uint16(28208), + 11: uint16(28243), + 12: uint16(28261), + 13: uint16(28199), + 14: uint16(28280), + 15: uint16(28260), + 16: uint16(28279), + 17: uint16(28245), + 18: uint16(28281), + 19: uint16(28242), + 20: uint16(28262), + 21: uint16(28213), + 22: uint16(28214), + 23: uint16(28250), + 24: uint16(28960), + 25: uint16(28958), + 26: uint16(28975), + 27: uint16(28923), + 28: uint16(28974), + 29: uint16(28977), + 30: uint16(28963), + 31: uint16(28965), + 32: uint16(28962), + 33: uint16(28978), + 34: uint16(28959), + 35: uint16(28968), + 36: uint16(28986), + 37: uint16(28955), + 38: uint16(29259), + 39: uint16(29274), + 40: uint16(29320), + 41: uint16(29321), + 42: uint16(29318), + 43: uint16(29317), + 44: uint16(29323), + 45: uint16(29458), + 46: uint16(29451), + 47: uint16(29488), + 48: uint16(29474), + 49: uint16(29489), + 50: uint16(29491), + 51: uint16(29479), + 52: uint16(29490), + 53: uint16(29485), + 54: uint16(29478), + 55: uint16(29475), + 56: uint16(29493), + 57: uint16(29452), + 58: uint16(29742), + 59: uint16(29740), + 60: uint16(29744), + 61: uint16(29739), + 62: uint16(29718), + 63: uint16(29722), + 64: uint16(29729), + 65: uint16(29741), + 66: uint16(29745), + 67: uint16(29732), + 68: uint16(29731), + 69: uint16(29725), + 70: uint16(29737), + 71: uint16(29728), + 72: uint16(29746), + 73: uint16(29947), + 74: uint16(29999), + 75: uint16(30063), + 76: uint16(30060), + 77: uint16(30183), + 78: uint16(30170), + 79: uint16(30177), + 80: uint16(30182), + 81: uint16(30173), + 82: uint16(30175), + 83: uint16(30180), + 84: uint16(30167), + 85: uint16(30357), + 86: uint16(30354), + 87: uint16(30426), + 88: uint16(30534), + 89: uint16(30535), + 90: uint16(30532), + 91: uint16(30541), + 92: uint16(30533), + 93: uint16(30538), + 94: uint16(30542), + 95: uint16(30539), + 96: uint16(30540), + 97: uint16(30686), + 98: uint16(30700), + 99: uint16(30816), + 100: uint16(30820), + 101: uint16(30821), + 102: uint16(30812), + 103: uint16(30829), + 104: uint16(30833), + 105: uint16(30826), + 106: uint16(30830), + 107: uint16(30832), + 108: uint16(30825), + 109: uint16(30824), + 110: uint16(30814), + 111: uint16(30818), + 112: uint16(31092), + 113: uint16(31091), + 114: uint16(31090), + 115: uint16(31088), + 116: uint16(31234), + 117: uint16(31242), + 118: uint16(31235), + 119: uint16(31244), + 120: uint16(31236), + 121: uint16(31385), + 122: uint16(31462), + 123: uint16(31460), + 124: uint16(31562), + 125: uint16(31547), + 126: uint16(31556), + 127: uint16(31560), + 128: uint16(31564), + 129: uint16(31566), + 130: uint16(31552), + 131: uint16(31576), + 132: uint16(31557), + 133: uint16(31906), + 134: uint16(31902), + 135: uint16(31912), + 136: uint16(31905), + 137: uint16(32088), + 138: uint16(32111), + 139: uint16(32099), + 140: uint16(32083), + 141: uint16(32086), + 142: uint16(32103), + 143: uint16(32106), + 144: uint16(32079), + 145: uint16(32109), + 146: uint16(32092), + 147: uint16(32107), + 148: uint16(32082), + 149: uint16(32084), + 150: uint16(32105), + 151: uint16(32081), + 152: uint16(32095), + 153: uint16(32078), + 154: uint16(32574), + 155: uint16(32575), + 156: uint16(32613), + }, + 58: { + 0: uint16(32614), + 1: uint16(32674), + 2: uint16(32672), + 3: uint16(32673), + 4: uint16(32727), + 5: uint16(32849), + 6: uint16(32847), + 7: uint16(32848), + 8: uint16(33022), + 9: uint16(32980), + 10: uint16(33091), + 11: uint16(33098), + 12: uint16(33106), + 13: uint16(33103), + 14: uint16(33095), + 15: uint16(33085), + 16: uint16(33101), + 17: uint16(33082), + 18: uint16(33254), + 19: uint16(33262), + 20: uint16(33271), + 21: uint16(33272), + 22: uint16(33273), + 23: uint16(33284), + 24: uint16(33340), + 25: uint16(33341), + 26: uint16(33343), + 27: uint16(33397), + 28: uint16(33595), + 29: uint16(33743), + 30: uint16(33785), + 31: uint16(33827), + 32: uint16(33728), + 33: uint16(33768), + 34: uint16(33810), + 35: uint16(33767), + 36: uint16(33764), + 37: uint16(33788), + 38: uint16(33782), + 39: uint16(33808), + 40: uint16(33734), + 41: uint16(33736), + 42: uint16(33771), + 43: uint16(33763), + 44: uint16(33727), + 45: uint16(33793), + 46: uint16(33757), + 47: uint16(33765), + 48: uint16(33752), + 49: uint16(33791), + 50: uint16(33761), + 51: uint16(33739), + 52: uint16(33742), + 53: uint16(33750), + 54: uint16(33781), + 55: uint16(33737), + 56: uint16(33801), + 57: uint16(33807), + 58: uint16(33758), + 59: uint16(33809), + 60: uint16(33798), + 61: uint16(33730), + 62: uint16(33779), + 63: uint16(33749), + 64: uint16(33786), + 65: uint16(33735), + 66: uint16(33745), + 67: uint16(33770), + 68: uint16(33811), + 69: uint16(33731), + 70: uint16(33772), + 71: uint16(33774), + 72: uint16(33732), + 73: uint16(33787), + 74: uint16(33751), + 75: uint16(33762), + 76: uint16(33819), + 77: uint16(33755), + 78: uint16(33790), + 79: uint16(34520), + 80: uint16(34530), + 81: uint16(34534), + 82: uint16(34515), + 83: uint16(34531), + 84: uint16(34522), + 85: uint16(34538), + 86: uint16(34525), + 87: uint16(34539), + 88: uint16(34524), + 89: uint16(34540), + 90: uint16(34537), + 91: uint16(34519), + 92: uint16(34536), + 93: uint16(34513), + 94: uint16(34888), + 95: uint16(34902), + 96: uint16(34901), + 97: uint16(35002), + 98: uint16(35031), + 99: uint16(35001), + 100: uint16(35000), + 101: uint16(35008), + 102: uint16(35006), + 103: uint16(34998), + 104: uint16(35004), + 105: uint16(34999), + 106: uint16(35005), + 107: uint16(34994), + 108: uint16(35073), + 109: uint16(35017), + 110: uint16(35221), + 111: uint16(35224), + 112: uint16(35223), + 113: uint16(35293), + 114: uint16(35290), + 115: uint16(35291), + 116: uint16(35406), + 117: uint16(35405), + 118: uint16(35385), + 119: uint16(35417), + 120: uint16(35392), + 121: uint16(35415), + 122: uint16(35416), + 123: uint16(35396), + 124: uint16(35397), + 125: uint16(35410), + 126: uint16(35400), + 127: uint16(35409), + 128: uint16(35402), + 129: uint16(35404), + 130: uint16(35407), + 131: uint16(35935), + 132: uint16(35969), + 133: uint16(35968), + 134: uint16(36026), + 135: uint16(36030), + 136: uint16(36016), + 137: uint16(36025), + 138: uint16(36021), + 139: uint16(36228), + 140: uint16(36224), + 141: uint16(36233), + 142: uint16(36312), + 143: uint16(36307), + 144: uint16(36301), + 145: uint16(36295), + 146: uint16(36310), + 147: uint16(36316), + 148: uint16(36303), + 149: uint16(36309), + 150: uint16(36313), + 151: uint16(36296), + 152: uint16(36311), + 153: uint16(36293), + 154: uint16(36591), + 155: uint16(36599), + 156: uint16(36602), + }, + 59: { + 0: uint16(36601), + 1: uint16(36582), + 2: uint16(36590), + 3: uint16(36581), + 4: uint16(36597), + 5: uint16(36583), + 6: uint16(36584), + 7: uint16(36598), + 8: uint16(36587), + 9: uint16(36593), + 10: uint16(36588), + 11: uint16(36596), + 12: uint16(36585), + 13: uint16(36909), + 14: uint16(36916), + 15: uint16(36911), + 16: uint16(37126), + 17: uint16(37164), + 18: uint16(37124), + 19: uint16(37119), + 20: uint16(37116), + 21: uint16(37128), + 22: uint16(37113), + 23: uint16(37115), + 24: uint16(37121), + 25: uint16(37120), + 26: uint16(37127), + 27: uint16(37125), + 28: uint16(37123), + 29: uint16(37217), + 30: uint16(37220), + 31: uint16(37215), + 32: uint16(37218), + 33: uint16(37216), + 34: uint16(37377), + 35: uint16(37386), + 36: uint16(37413), + 37: uint16(37379), + 38: uint16(37402), + 39: uint16(37414), + 40: uint16(37391), + 41: uint16(37388), + 42: uint16(37376), + 43: uint16(37394), + 44: uint16(37375), + 45: uint16(37373), + 46: uint16(37382), + 47: uint16(37380), + 48: uint16(37415), + 49: uint16(37378), + 50: uint16(37404), + 51: uint16(37412), + 52: uint16(37401), + 53: uint16(37399), + 54: uint16(37381), + 55: uint16(37398), + 56: uint16(38267), + 57: uint16(38285), + 58: uint16(38284), + 59: uint16(38288), + 60: uint16(38535), + 61: uint16(38526), + 62: uint16(38536), + 63: uint16(38537), + 64: uint16(38531), + 65: uint16(38528), + 66: uint16(38594), + 67: uint16(38600), + 68: uint16(38595), + 69: uint16(38641), + 70: uint16(38640), + 71: uint16(38764), + 72: uint16(38768), + 73: uint16(38766), + 74: uint16(38919), + 75: uint16(39081), + 76: uint16(39147), + 77: uint16(40166), + 78: uint16(40697), + 79: uint16(20099), + 80: uint16(20100), + 81: uint16(20150), + 82: uint16(20669), + 83: uint16(20671), + 84: uint16(20678), + 85: uint16(20654), + 86: uint16(20676), + 87: uint16(20682), + 88: uint16(20660), + 89: uint16(20680), + 90: uint16(20674), + 91: uint16(20656), + 92: uint16(20673), + 93: uint16(20666), + 94: uint16(20657), + 95: uint16(20683), + 96: uint16(20681), + 97: uint16(20662), + 98: uint16(20664), + 99: uint16(20951), + 100: uint16(21114), + 101: uint16(21112), + 102: uint16(21115), + 103: uint16(21116), + 104: uint16(21955), + 105: uint16(21979), + 106: uint16(21964), + 107: uint16(21968), + 108: uint16(21963), + 109: uint16(21962), + 110: uint16(21981), + 111: uint16(21952), + 112: uint16(21972), + 113: uint16(21956), + 114: uint16(21993), + 115: uint16(21951), + 116: uint16(21970), + 117: uint16(21901), + 118: uint16(21967), + 119: uint16(21973), + 120: uint16(21986), + 121: uint16(21974), + 122: uint16(21960), + 123: uint16(22002), + 124: uint16(21965), + 125: uint16(21977), + 126: uint16(21954), + 127: uint16(22292), + 128: uint16(22611), + 129: uint16(22632), + 130: uint16(22628), + 131: uint16(22607), + 132: uint16(22605), + 133: uint16(22601), + 134: uint16(22639), + 135: uint16(22613), + 136: uint16(22606), + 137: uint16(22621), + 138: uint16(22617), + 139: uint16(22629), + 140: uint16(22619), + 141: uint16(22589), + 142: uint16(22627), + 143: uint16(22641), + 144: uint16(22780), + 145: uint16(23239), + 146: uint16(23236), + 147: uint16(23243), + 148: uint16(23226), + 149: uint16(23224), + 150: uint16(23217), + 151: uint16(23221), + 152: uint16(23216), + 153: uint16(23231), + 154: uint16(23240), + 155: uint16(23227), + 156: uint16(23238), + }, + 60: { + 0: uint16(23223), + 1: uint16(23232), + 2: uint16(23242), + 3: uint16(23220), + 4: uint16(23222), + 5: uint16(23245), + 6: uint16(23225), + 7: uint16(23184), + 8: uint16(23510), + 9: uint16(23512), + 10: uint16(23513), + 11: uint16(23583), + 12: uint16(23603), + 13: uint16(23921), + 14: uint16(23907), + 15: uint16(23882), + 16: uint16(23909), + 17: uint16(23922), + 18: uint16(23916), + 19: uint16(23902), + 20: uint16(23912), + 21: uint16(23911), + 22: uint16(23906), + 23: uint16(24048), + 24: uint16(24143), + 25: uint16(24142), + 26: uint16(24138), + 27: uint16(24141), + 28: uint16(24139), + 29: uint16(24261), + 30: uint16(24268), + 31: uint16(24262), + 32: uint16(24267), + 33: uint16(24263), + 34: uint16(24384), + 35: uint16(24495), + 36: uint16(24493), + 37: uint16(24823), + 38: uint16(24905), + 39: uint16(24906), + 40: uint16(24875), + 41: uint16(24901), + 42: uint16(24886), + 43: uint16(24882), + 44: uint16(24878), + 45: uint16(24902), + 46: uint16(24879), + 47: uint16(24911), + 48: uint16(24873), + 49: uint16(24896), + 50: uint16(25120), + 51: uint16(37224), + 52: uint16(25123), + 53: uint16(25125), + 54: uint16(25124), + 55: uint16(25541), + 56: uint16(25585), + 57: uint16(25579), + 58: uint16(25616), + 59: uint16(25618), + 60: uint16(25609), + 61: uint16(25632), + 62: uint16(25636), + 63: uint16(25651), + 64: uint16(25667), + 65: uint16(25631), + 66: uint16(25621), + 67: uint16(25624), + 68: uint16(25657), + 69: uint16(25655), + 70: uint16(25634), + 71: uint16(25635), + 72: uint16(25612), + 73: uint16(25638), + 74: uint16(25648), + 75: uint16(25640), + 76: uint16(25665), + 77: uint16(25653), + 78: uint16(25647), + 79: uint16(25610), + 80: uint16(25626), + 81: uint16(25664), + 82: uint16(25637), + 83: uint16(25639), + 84: uint16(25611), + 85: uint16(25575), + 86: uint16(25627), + 87: uint16(25646), + 88: uint16(25633), + 89: uint16(25614), + 90: uint16(25967), + 91: uint16(26002), + 92: uint16(26067), + 93: uint16(26246), + 94: uint16(26252), + 95: uint16(26261), + 96: uint16(26256), + 97: uint16(26251), + 98: uint16(26250), + 99: uint16(26265), + 100: uint16(26260), + 101: uint16(26232), + 102: uint16(26400), + 103: uint16(26982), + 104: uint16(26975), + 105: uint16(26936), + 106: uint16(26958), + 107: uint16(26978), + 108: uint16(26993), + 109: uint16(26943), + 110: uint16(26949), + 111: uint16(26986), + 112: uint16(26937), + 113: uint16(26946), + 114: uint16(26967), + 115: uint16(26969), + 116: uint16(27002), + 117: uint16(26952), + 118: uint16(26953), + 119: uint16(26933), + 120: uint16(26988), + 121: uint16(26931), + 122: uint16(26941), + 123: uint16(26981), + 124: uint16(26864), + 125: uint16(27000), + 126: uint16(26932), + 127: uint16(26985), + 128: uint16(26944), + 129: uint16(26991), + 130: uint16(26948), + 131: uint16(26998), + 132: uint16(26968), + 133: uint16(26945), + 134: uint16(26996), + 135: uint16(26956), + 136: uint16(26939), + 137: uint16(26955), + 138: uint16(26935), + 139: uint16(26972), + 140: uint16(26959), + 141: uint16(26961), + 142: uint16(26930), + 143: uint16(26962), + 144: uint16(26927), + 145: uint16(27003), + 146: uint16(26940), + 147: uint16(27462), + 148: uint16(27461), + 149: uint16(27459), + 150: uint16(27458), + 151: uint16(27464), + 152: uint16(27457), + 153: uint16(27547), + 154: uint16(64013), + 155: uint16(27643), + 156: uint16(27644), + }, + 61: { + 0: uint16(27641), + 1: uint16(27639), + 2: uint16(27640), + 3: uint16(28315), + 4: uint16(28374), + 5: uint16(28360), + 6: uint16(28303), + 7: uint16(28352), + 8: uint16(28319), + 9: uint16(28307), + 10: uint16(28308), + 11: uint16(28320), + 12: uint16(28337), + 13: uint16(28345), + 14: uint16(28358), + 15: uint16(28370), + 16: uint16(28349), + 17: uint16(28353), + 18: uint16(28318), + 19: uint16(28361), + 20: uint16(28343), + 21: uint16(28336), + 22: uint16(28365), + 23: uint16(28326), + 24: uint16(28367), + 25: uint16(28338), + 26: uint16(28350), + 27: uint16(28355), + 28: uint16(28380), + 29: uint16(28376), + 30: uint16(28313), + 31: uint16(28306), + 32: uint16(28302), + 33: uint16(28301), + 34: uint16(28324), + 35: uint16(28321), + 36: uint16(28351), + 37: uint16(28339), + 38: uint16(28368), + 39: uint16(28362), + 40: uint16(28311), + 41: uint16(28334), + 42: uint16(28323), + 43: uint16(28999), + 44: uint16(29012), + 45: uint16(29010), + 46: uint16(29027), + 47: uint16(29024), + 48: uint16(28993), + 49: uint16(29021), + 50: uint16(29026), + 51: uint16(29042), + 52: uint16(29048), + 53: uint16(29034), + 54: uint16(29025), + 55: uint16(28994), + 56: uint16(29016), + 57: uint16(28995), + 58: uint16(29003), + 59: uint16(29040), + 60: uint16(29023), + 61: uint16(29008), + 62: uint16(29011), + 63: uint16(28996), + 64: uint16(29005), + 65: uint16(29018), + 66: uint16(29263), + 67: uint16(29325), + 68: uint16(29324), + 69: uint16(29329), + 70: uint16(29328), + 71: uint16(29326), + 72: uint16(29500), + 73: uint16(29506), + 74: uint16(29499), + 75: uint16(29498), + 76: uint16(29504), + 77: uint16(29514), + 78: uint16(29513), + 79: uint16(29764), + 80: uint16(29770), + 81: uint16(29771), + 82: uint16(29778), + 83: uint16(29777), + 84: uint16(29783), + 85: uint16(29760), + 86: uint16(29775), + 87: uint16(29776), + 88: uint16(29774), + 89: uint16(29762), + 90: uint16(29766), + 91: uint16(29773), + 92: uint16(29780), + 93: uint16(29921), + 94: uint16(29951), + 95: uint16(29950), + 96: uint16(29949), + 97: uint16(29981), + 98: uint16(30073), + 99: uint16(30071), + 100: uint16(27011), + 101: uint16(30191), + 102: uint16(30223), + 103: uint16(30211), + 104: uint16(30199), + 105: uint16(30206), + 106: uint16(30204), + 107: uint16(30201), + 108: uint16(30200), + 109: uint16(30224), + 110: uint16(30203), + 111: uint16(30198), + 112: uint16(30189), + 113: uint16(30197), + 114: uint16(30205), + 115: uint16(30361), + 116: uint16(30389), + 117: uint16(30429), + 118: uint16(30549), + 119: uint16(30559), + 120: uint16(30560), + 121: uint16(30546), + 122: uint16(30550), + 123: uint16(30554), + 124: uint16(30569), + 125: uint16(30567), + 126: uint16(30548), + 127: uint16(30553), + 128: uint16(30573), + 129: uint16(30688), + 130: uint16(30855), + 131: uint16(30874), + 132: uint16(30868), + 133: uint16(30863), + 134: uint16(30852), + 135: uint16(30869), + 136: uint16(30853), + 137: uint16(30854), + 138: uint16(30881), + 139: uint16(30851), + 140: uint16(30841), + 141: uint16(30873), + 142: uint16(30848), + 143: uint16(30870), + 144: uint16(30843), + 145: uint16(31100), + 146: uint16(31106), + 147: uint16(31101), + 148: uint16(31097), + 149: uint16(31249), + 150: uint16(31256), + 151: uint16(31257), + 152: uint16(31250), + 153: uint16(31255), + 154: uint16(31253), + 155: uint16(31266), + 156: uint16(31251), + }, + 62: { + 0: uint16(31259), + 1: uint16(31248), + 2: uint16(31395), + 3: uint16(31394), + 4: uint16(31390), + 5: uint16(31467), + 6: uint16(31590), + 7: uint16(31588), + 8: uint16(31597), + 9: uint16(31604), + 10: uint16(31593), + 11: uint16(31602), + 12: uint16(31589), + 13: uint16(31603), + 14: uint16(31601), + 15: uint16(31600), + 16: uint16(31585), + 17: uint16(31608), + 18: uint16(31606), + 19: uint16(31587), + 20: uint16(31922), + 21: uint16(31924), + 22: uint16(31919), + 23: uint16(32136), + 24: uint16(32134), + 25: uint16(32128), + 26: uint16(32141), + 27: uint16(32127), + 28: uint16(32133), + 29: uint16(32122), + 30: uint16(32142), + 31: uint16(32123), + 32: uint16(32131), + 33: uint16(32124), + 34: uint16(32140), + 35: uint16(32148), + 36: uint16(32132), + 37: uint16(32125), + 38: uint16(32146), + 39: uint16(32621), + 40: uint16(32619), + 41: uint16(32615), + 42: uint16(32616), + 43: uint16(32620), + 44: uint16(32678), + 45: uint16(32677), + 46: uint16(32679), + 47: uint16(32731), + 48: uint16(32732), + 49: uint16(32801), + 50: uint16(33124), + 51: uint16(33120), + 52: uint16(33143), + 53: uint16(33116), + 54: uint16(33129), + 55: uint16(33115), + 56: uint16(33122), + 57: uint16(33138), + 58: uint16(26401), + 59: uint16(33118), + 60: uint16(33142), + 61: uint16(33127), + 62: uint16(33135), + 63: uint16(33092), + 64: uint16(33121), + 65: uint16(33309), + 66: uint16(33353), + 67: uint16(33348), + 68: uint16(33344), + 69: uint16(33346), + 70: uint16(33349), + 71: uint16(34033), + 72: uint16(33855), + 73: uint16(33878), + 74: uint16(33910), + 75: uint16(33913), + 76: uint16(33935), + 77: uint16(33933), + 78: uint16(33893), + 79: uint16(33873), + 80: uint16(33856), + 81: uint16(33926), + 82: uint16(33895), + 83: uint16(33840), + 84: uint16(33869), + 85: uint16(33917), + 86: uint16(33882), + 87: uint16(33881), + 88: uint16(33908), + 89: uint16(33907), + 90: uint16(33885), + 91: uint16(34055), + 92: uint16(33886), + 93: uint16(33847), + 94: uint16(33850), + 95: uint16(33844), + 96: uint16(33914), + 97: uint16(33859), + 98: uint16(33912), + 99: uint16(33842), + 100: uint16(33861), + 101: uint16(33833), + 102: uint16(33753), + 103: uint16(33867), + 104: uint16(33839), + 105: uint16(33858), + 106: uint16(33837), + 107: uint16(33887), + 108: uint16(33904), + 109: uint16(33849), + 110: uint16(33870), + 111: uint16(33868), + 112: uint16(33874), + 113: uint16(33903), + 114: uint16(33989), + 115: uint16(33934), + 116: uint16(33851), + 117: uint16(33863), + 118: uint16(33846), + 119: uint16(33843), + 120: uint16(33896), + 121: uint16(33918), + 122: uint16(33860), + 123: uint16(33835), + 124: uint16(33888), + 125: uint16(33876), + 126: uint16(33902), + 127: uint16(33872), + 128: uint16(34571), + 129: uint16(34564), + 130: uint16(34551), + 131: uint16(34572), + 132: uint16(34554), + 133: uint16(34518), + 134: uint16(34549), + 135: uint16(34637), + 136: uint16(34552), + 137: uint16(34574), + 138: uint16(34569), + 139: uint16(34561), + 140: uint16(34550), + 141: uint16(34573), + 142: uint16(34565), + 143: uint16(35030), + 144: uint16(35019), + 145: uint16(35021), + 146: uint16(35022), + 147: uint16(35038), + 148: uint16(35035), + 149: uint16(35034), + 150: uint16(35020), + 151: uint16(35024), + 152: uint16(35205), + 153: uint16(35227), + 154: uint16(35295), + 155: uint16(35301), + 156: uint16(35300), + }, + 63: { + 0: uint16(35297), + 1: uint16(35296), + 2: uint16(35298), + 3: uint16(35292), + 4: uint16(35302), + 5: uint16(35446), + 6: uint16(35462), + 7: uint16(35455), + 8: uint16(35425), + 9: uint16(35391), + 10: uint16(35447), + 11: uint16(35458), + 12: uint16(35460), + 13: uint16(35445), + 14: uint16(35459), + 15: uint16(35457), + 16: uint16(35444), + 17: uint16(35450), + 18: uint16(35900), + 19: uint16(35915), + 20: uint16(35914), + 21: uint16(35941), + 22: uint16(35940), + 23: uint16(35942), + 24: uint16(35974), + 25: uint16(35972), + 26: uint16(35973), + 27: uint16(36044), + 28: uint16(36200), + 29: uint16(36201), + 30: uint16(36241), + 31: uint16(36236), + 32: uint16(36238), + 33: uint16(36239), + 34: uint16(36237), + 35: uint16(36243), + 36: uint16(36244), + 37: uint16(36240), + 38: uint16(36242), + 39: uint16(36336), + 40: uint16(36320), + 41: uint16(36332), + 42: uint16(36337), + 43: uint16(36334), + 44: uint16(36304), + 45: uint16(36329), + 46: uint16(36323), + 47: uint16(36322), + 48: uint16(36327), + 49: uint16(36338), + 50: uint16(36331), + 51: uint16(36340), + 52: uint16(36614), + 53: uint16(36607), + 54: uint16(36609), + 55: uint16(36608), + 56: uint16(36613), + 57: uint16(36615), + 58: uint16(36616), + 59: uint16(36610), + 60: uint16(36619), + 61: uint16(36946), + 62: uint16(36927), + 63: uint16(36932), + 64: uint16(36937), + 65: uint16(36925), + 66: uint16(37136), + 67: uint16(37133), + 68: uint16(37135), + 69: uint16(37137), + 70: uint16(37142), + 71: uint16(37140), + 72: uint16(37131), + 73: uint16(37134), + 74: uint16(37230), + 75: uint16(37231), + 76: uint16(37448), + 77: uint16(37458), + 78: uint16(37424), + 79: uint16(37434), + 80: uint16(37478), + 81: uint16(37427), + 82: uint16(37477), + 83: uint16(37470), + 84: uint16(37507), + 85: uint16(37422), + 86: uint16(37450), + 87: uint16(37446), + 88: uint16(37485), + 89: uint16(37484), + 90: uint16(37455), + 91: uint16(37472), + 92: uint16(37479), + 93: uint16(37487), + 94: uint16(37430), + 95: uint16(37473), + 96: uint16(37488), + 97: uint16(37425), + 98: uint16(37460), + 99: uint16(37475), + 100: uint16(37456), + 101: uint16(37490), + 102: uint16(37454), + 103: uint16(37459), + 104: uint16(37452), + 105: uint16(37462), + 106: uint16(37426), + 107: uint16(38303), + 108: uint16(38300), + 109: uint16(38302), + 110: uint16(38299), + 111: uint16(38546), + 112: uint16(38547), + 113: uint16(38545), + 114: uint16(38551), + 115: uint16(38606), + 116: uint16(38650), + 117: uint16(38653), + 118: uint16(38648), + 119: uint16(38645), + 120: uint16(38771), + 121: uint16(38775), + 122: uint16(38776), + 123: uint16(38770), + 124: uint16(38927), + 125: uint16(38925), + 126: uint16(38926), + 127: uint16(39084), + 128: uint16(39158), + 129: uint16(39161), + 130: uint16(39343), + 131: uint16(39346), + 132: uint16(39344), + 133: uint16(39349), + 134: uint16(39597), + 135: uint16(39595), + 136: uint16(39771), + 137: uint16(40170), + 138: uint16(40173), + 139: uint16(40167), + 140: uint16(40576), + 141: uint16(40701), + 142: uint16(20710), + 143: uint16(20692), + 144: uint16(20695), + 145: uint16(20712), + 146: uint16(20723), + 147: uint16(20699), + 148: uint16(20714), + 149: uint16(20701), + 150: uint16(20708), + 151: uint16(20691), + 152: uint16(20716), + 153: uint16(20720), + 154: uint16(20719), + 155: uint16(20707), + 156: uint16(20704), + }, + 64: { + 0: uint16(20952), + 1: uint16(21120), + 2: uint16(21121), + 3: uint16(21225), + 4: uint16(21227), + 5: uint16(21296), + 6: uint16(21420), + 7: uint16(22055), + 8: uint16(22037), + 9: uint16(22028), + 10: uint16(22034), + 11: uint16(22012), + 12: uint16(22031), + 13: uint16(22044), + 14: uint16(22017), + 15: uint16(22035), + 16: uint16(22018), + 17: uint16(22010), + 18: uint16(22045), + 19: uint16(22020), + 20: uint16(22015), + 21: uint16(22009), + 22: uint16(22665), + 23: uint16(22652), + 24: uint16(22672), + 25: uint16(22680), + 26: uint16(22662), + 27: uint16(22657), + 28: uint16(22655), + 29: uint16(22644), + 30: uint16(22667), + 31: uint16(22650), + 32: uint16(22663), + 33: uint16(22673), + 34: uint16(22670), + 35: uint16(22646), + 36: uint16(22658), + 37: uint16(22664), + 38: uint16(22651), + 39: uint16(22676), + 40: uint16(22671), + 41: uint16(22782), + 42: uint16(22891), + 43: uint16(23260), + 44: uint16(23278), + 45: uint16(23269), + 46: uint16(23253), + 47: uint16(23274), + 48: uint16(23258), + 49: uint16(23277), + 50: uint16(23275), + 51: uint16(23283), + 52: uint16(23266), + 53: uint16(23264), + 54: uint16(23259), + 55: uint16(23276), + 56: uint16(23262), + 57: uint16(23261), + 58: uint16(23257), + 59: uint16(23272), + 60: uint16(23263), + 61: uint16(23415), + 62: uint16(23520), + 63: uint16(23523), + 64: uint16(23651), + 65: uint16(23938), + 66: uint16(23936), + 67: uint16(23933), + 68: uint16(23942), + 69: uint16(23930), + 70: uint16(23937), + 71: uint16(23927), + 72: uint16(23946), + 73: uint16(23945), + 74: uint16(23944), + 75: uint16(23934), + 76: uint16(23932), + 77: uint16(23949), + 78: uint16(23929), + 79: uint16(23935), + 80: uint16(24152), + 81: uint16(24153), + 82: uint16(24147), + 83: uint16(24280), + 84: uint16(24273), + 85: uint16(24279), + 86: uint16(24270), + 87: uint16(24284), + 88: uint16(24277), + 89: uint16(24281), + 90: uint16(24274), + 91: uint16(24276), + 92: uint16(24388), + 93: uint16(24387), + 94: uint16(24431), + 95: uint16(24502), + 96: uint16(24876), + 97: uint16(24872), + 98: uint16(24897), + 99: uint16(24926), + 100: uint16(24945), + 101: uint16(24947), + 102: uint16(24914), + 103: uint16(24915), + 104: uint16(24946), + 105: uint16(24940), + 106: uint16(24960), + 107: uint16(24948), + 108: uint16(24916), + 109: uint16(24954), + 110: uint16(24923), + 111: uint16(24933), + 112: uint16(24891), + 113: uint16(24938), + 114: uint16(24929), + 115: uint16(24918), + 116: uint16(25129), + 117: uint16(25127), + 118: uint16(25131), + 119: uint16(25643), + 120: uint16(25677), + 121: uint16(25691), + 122: uint16(25693), + 123: uint16(25716), + 124: uint16(25718), + 125: uint16(25714), + 126: uint16(25715), + 127: uint16(25725), + 128: uint16(25717), + 129: uint16(25702), + 130: uint16(25766), + 131: uint16(25678), + 132: uint16(25730), + 133: uint16(25694), + 134: uint16(25692), + 135: uint16(25675), + 136: uint16(25683), + 137: uint16(25696), + 138: uint16(25680), + 139: uint16(25727), + 140: uint16(25663), + 141: uint16(25708), + 142: uint16(25707), + 143: uint16(25689), + 144: uint16(25701), + 145: uint16(25719), + 146: uint16(25971), + 147: uint16(26016), + 148: uint16(26273), + 149: uint16(26272), + 150: uint16(26271), + 151: uint16(26373), + 152: uint16(26372), + 153: uint16(26402), + 154: uint16(27057), + 155: uint16(27062), + 156: uint16(27081), + }, + 65: { + 0: uint16(27040), + 1: uint16(27086), + 2: uint16(27030), + 3: uint16(27056), + 4: uint16(27052), + 5: uint16(27068), + 6: uint16(27025), + 7: uint16(27033), + 8: uint16(27022), + 9: uint16(27047), + 10: uint16(27021), + 11: uint16(27049), + 12: uint16(27070), + 13: uint16(27055), + 14: uint16(27071), + 15: uint16(27076), + 16: uint16(27069), + 17: uint16(27044), + 18: uint16(27092), + 19: uint16(27065), + 20: uint16(27082), + 21: uint16(27034), + 22: uint16(27087), + 23: uint16(27059), + 24: uint16(27027), + 25: uint16(27050), + 26: uint16(27041), + 27: uint16(27038), + 28: uint16(27097), + 29: uint16(27031), + 30: uint16(27024), + 31: uint16(27074), + 32: uint16(27061), + 33: uint16(27045), + 34: uint16(27078), + 35: uint16(27466), + 36: uint16(27469), + 37: uint16(27467), + 38: uint16(27550), + 39: uint16(27551), + 40: uint16(27552), + 41: uint16(27587), + 42: uint16(27588), + 43: uint16(27646), + 44: uint16(28366), + 45: uint16(28405), + 46: uint16(28401), + 47: uint16(28419), + 48: uint16(28453), + 49: uint16(28408), + 50: uint16(28471), + 51: uint16(28411), + 52: uint16(28462), + 53: uint16(28425), + 54: uint16(28494), + 55: uint16(28441), + 56: uint16(28442), + 57: uint16(28455), + 58: uint16(28440), + 59: uint16(28475), + 60: uint16(28434), + 61: uint16(28397), + 62: uint16(28426), + 63: uint16(28470), + 64: uint16(28531), + 65: uint16(28409), + 66: uint16(28398), + 67: uint16(28461), + 68: uint16(28480), + 69: uint16(28464), + 70: uint16(28476), + 71: uint16(28469), + 72: uint16(28395), + 73: uint16(28423), + 74: uint16(28430), + 75: uint16(28483), + 76: uint16(28421), + 77: uint16(28413), + 78: uint16(28406), + 79: uint16(28473), + 80: uint16(28444), + 81: uint16(28412), + 82: uint16(28474), + 83: uint16(28447), + 84: uint16(28429), + 85: uint16(28446), + 86: uint16(28424), + 87: uint16(28449), + 88: uint16(29063), + 89: uint16(29072), + 90: uint16(29065), + 91: uint16(29056), + 92: uint16(29061), + 93: uint16(29058), + 94: uint16(29071), + 95: uint16(29051), + 96: uint16(29062), + 97: uint16(29057), + 98: uint16(29079), + 99: uint16(29252), + 100: uint16(29267), + 101: uint16(29335), + 102: uint16(29333), + 103: uint16(29331), + 104: uint16(29507), + 105: uint16(29517), + 106: uint16(29521), + 107: uint16(29516), + 108: uint16(29794), + 109: uint16(29811), + 110: uint16(29809), + 111: uint16(29813), + 112: uint16(29810), + 113: uint16(29799), + 114: uint16(29806), + 115: uint16(29952), + 116: uint16(29954), + 117: uint16(29955), + 118: uint16(30077), + 119: uint16(30096), + 120: uint16(30230), + 121: uint16(30216), + 122: uint16(30220), + 123: uint16(30229), + 124: uint16(30225), + 125: uint16(30218), + 126: uint16(30228), + 127: uint16(30392), + 128: uint16(30593), + 129: uint16(30588), + 130: uint16(30597), + 131: uint16(30594), + 132: uint16(30574), + 133: uint16(30592), + 134: uint16(30575), + 135: uint16(30590), + 136: uint16(30595), + 137: uint16(30898), + 138: uint16(30890), + 139: uint16(30900), + 140: uint16(30893), + 141: uint16(30888), + 142: uint16(30846), + 143: uint16(30891), + 144: uint16(30878), + 145: uint16(30885), + 146: uint16(30880), + 147: uint16(30892), + 148: uint16(30882), + 149: uint16(30884), + 150: uint16(31128), + 151: uint16(31114), + 152: uint16(31115), + 153: uint16(31126), + 154: uint16(31125), + 155: uint16(31124), + 156: uint16(31123), + }, + 66: { + 0: uint16(31127), + 1: uint16(31112), + 2: uint16(31122), + 3: uint16(31120), + 4: uint16(31275), + 5: uint16(31306), + 6: uint16(31280), + 7: uint16(31279), + 8: uint16(31272), + 9: uint16(31270), + 10: uint16(31400), + 11: uint16(31403), + 12: uint16(31404), + 13: uint16(31470), + 14: uint16(31624), + 15: uint16(31644), + 16: uint16(31626), + 17: uint16(31633), + 18: uint16(31632), + 19: uint16(31638), + 20: uint16(31629), + 21: uint16(31628), + 22: uint16(31643), + 23: uint16(31630), + 24: uint16(31621), + 25: uint16(31640), + 26: uint16(21124), + 27: uint16(31641), + 28: uint16(31652), + 29: uint16(31618), + 30: uint16(31931), + 31: uint16(31935), + 32: uint16(31932), + 33: uint16(31930), + 34: uint16(32167), + 35: uint16(32183), + 36: uint16(32194), + 37: uint16(32163), + 38: uint16(32170), + 39: uint16(32193), + 40: uint16(32192), + 41: uint16(32197), + 42: uint16(32157), + 43: uint16(32206), + 44: uint16(32196), + 45: uint16(32198), + 46: uint16(32203), + 47: uint16(32204), + 48: uint16(32175), + 49: uint16(32185), + 50: uint16(32150), + 51: uint16(32188), + 52: uint16(32159), + 53: uint16(32166), + 54: uint16(32174), + 55: uint16(32169), + 56: uint16(32161), + 57: uint16(32201), + 58: uint16(32627), + 59: uint16(32738), + 60: uint16(32739), + 61: uint16(32741), + 62: uint16(32734), + 63: uint16(32804), + 64: uint16(32861), + 65: uint16(32860), + 66: uint16(33161), + 67: uint16(33158), + 68: uint16(33155), + 69: uint16(33159), + 70: uint16(33165), + 71: uint16(33164), + 72: uint16(33163), + 73: uint16(33301), + 74: uint16(33943), + 75: uint16(33956), + 76: uint16(33953), + 77: uint16(33951), + 78: uint16(33978), + 79: uint16(33998), + 80: uint16(33986), + 81: uint16(33964), + 82: uint16(33966), + 83: uint16(33963), + 84: uint16(33977), + 85: uint16(33972), + 86: uint16(33985), + 87: uint16(33997), + 88: uint16(33962), + 89: uint16(33946), + 90: uint16(33969), + 91: uint16(34000), + 92: uint16(33949), + 93: uint16(33959), + 94: uint16(33979), + 95: uint16(33954), + 96: uint16(33940), + 97: uint16(33991), + 98: uint16(33996), + 99: uint16(33947), + 100: uint16(33961), + 101: uint16(33967), + 102: uint16(33960), + 103: uint16(34006), + 104: uint16(33944), + 105: uint16(33974), + 106: uint16(33999), + 107: uint16(33952), + 108: uint16(34007), + 109: uint16(34004), + 110: uint16(34002), + 111: uint16(34011), + 112: uint16(33968), + 113: uint16(33937), + 114: uint16(34401), + 115: uint16(34611), + 116: uint16(34595), + 117: uint16(34600), + 118: uint16(34667), + 119: uint16(34624), + 120: uint16(34606), + 121: uint16(34590), + 122: uint16(34593), + 123: uint16(34585), + 124: uint16(34587), + 125: uint16(34627), + 126: uint16(34604), + 127: uint16(34625), + 128: uint16(34622), + 129: uint16(34630), + 130: uint16(34592), + 131: uint16(34610), + 132: uint16(34602), + 133: uint16(34605), + 134: uint16(34620), + 135: uint16(34578), + 136: uint16(34618), + 137: uint16(34609), + 138: uint16(34613), + 139: uint16(34626), + 140: uint16(34598), + 141: uint16(34599), + 142: uint16(34616), + 143: uint16(34596), + 144: uint16(34586), + 145: uint16(34608), + 146: uint16(34577), + 147: uint16(35063), + 148: uint16(35047), + 149: uint16(35057), + 150: uint16(35058), + 151: uint16(35066), + 152: uint16(35070), + 153: uint16(35054), + 154: uint16(35068), + 155: uint16(35062), + 156: uint16(35067), + }, + 67: { + 0: uint16(35056), + 1: uint16(35052), + 2: uint16(35051), + 3: uint16(35229), + 4: uint16(35233), + 5: uint16(35231), + 6: uint16(35230), + 7: uint16(35305), + 8: uint16(35307), + 9: uint16(35304), + 10: uint16(35499), + 11: uint16(35481), + 12: uint16(35467), + 13: uint16(35474), + 14: uint16(35471), + 15: uint16(35478), + 16: uint16(35901), + 17: uint16(35944), + 18: uint16(35945), + 19: uint16(36053), + 20: uint16(36047), + 21: uint16(36055), + 22: uint16(36246), + 23: uint16(36361), + 24: uint16(36354), + 25: uint16(36351), + 26: uint16(36365), + 27: uint16(36349), + 28: uint16(36362), + 29: uint16(36355), + 30: uint16(36359), + 31: uint16(36358), + 32: uint16(36357), + 33: uint16(36350), + 34: uint16(36352), + 35: uint16(36356), + 36: uint16(36624), + 37: uint16(36625), + 38: uint16(36622), + 39: uint16(36621), + 40: uint16(37155), + 41: uint16(37148), + 42: uint16(37152), + 43: uint16(37154), + 44: uint16(37151), + 45: uint16(37149), + 46: uint16(37146), + 47: uint16(37156), + 48: uint16(37153), + 49: uint16(37147), + 50: uint16(37242), + 51: uint16(37234), + 52: uint16(37241), + 53: uint16(37235), + 54: uint16(37541), + 55: uint16(37540), + 56: uint16(37494), + 57: uint16(37531), + 58: uint16(37498), + 59: uint16(37536), + 60: uint16(37524), + 61: uint16(37546), + 62: uint16(37517), + 63: uint16(37542), + 64: uint16(37530), + 65: uint16(37547), + 66: uint16(37497), + 67: uint16(37527), + 68: uint16(37503), + 69: uint16(37539), + 70: uint16(37614), + 71: uint16(37518), + 72: uint16(37506), + 73: uint16(37525), + 74: uint16(37538), + 75: uint16(37501), + 76: uint16(37512), + 77: uint16(37537), + 78: uint16(37514), + 79: uint16(37510), + 80: uint16(37516), + 81: uint16(37529), + 82: uint16(37543), + 83: uint16(37502), + 84: uint16(37511), + 85: uint16(37545), + 86: uint16(37533), + 87: uint16(37515), + 88: uint16(37421), + 89: uint16(38558), + 90: uint16(38561), + 91: uint16(38655), + 92: uint16(38744), + 93: uint16(38781), + 94: uint16(38778), + 95: uint16(38782), + 96: uint16(38787), + 97: uint16(38784), + 98: uint16(38786), + 99: uint16(38779), + 100: uint16(38788), + 101: uint16(38785), + 102: uint16(38783), + 103: uint16(38862), + 104: uint16(38861), + 105: uint16(38934), + 106: uint16(39085), + 107: uint16(39086), + 108: uint16(39170), + 109: uint16(39168), + 110: uint16(39175), + 111: uint16(39325), + 112: uint16(39324), + 113: uint16(39363), + 114: uint16(39353), + 115: uint16(39355), + 116: uint16(39354), + 117: uint16(39362), + 118: uint16(39357), + 119: uint16(39367), + 120: uint16(39601), + 121: uint16(39651), + 122: uint16(39655), + 123: uint16(39742), + 124: uint16(39743), + 125: uint16(39776), + 126: uint16(39777), + 127: uint16(39775), + 128: uint16(40177), + 129: uint16(40178), + 130: uint16(40181), + 131: uint16(40615), + 132: uint16(20735), + 133: uint16(20739), + 134: uint16(20784), + 135: uint16(20728), + 136: uint16(20742), + 137: uint16(20743), + 138: uint16(20726), + 139: uint16(20734), + 140: uint16(20747), + 141: uint16(20748), + 142: uint16(20733), + 143: uint16(20746), + 144: uint16(21131), + 145: uint16(21132), + 146: uint16(21233), + 147: uint16(21231), + 148: uint16(22088), + 149: uint16(22082), + 150: uint16(22092), + 151: uint16(22069), + 152: uint16(22081), + 153: uint16(22090), + 154: uint16(22089), + 155: uint16(22086), + 156: uint16(22104), + }, + 68: { + 0: uint16(22106), + 1: uint16(22080), + 2: uint16(22067), + 3: uint16(22077), + 4: uint16(22060), + 5: uint16(22078), + 6: uint16(22072), + 7: uint16(22058), + 8: uint16(22074), + 9: uint16(22298), + 10: uint16(22699), + 11: uint16(22685), + 12: uint16(22705), + 13: uint16(22688), + 14: uint16(22691), + 15: uint16(22703), + 16: uint16(22700), + 17: uint16(22693), + 18: uint16(22689), + 19: uint16(22783), + 20: uint16(23295), + 21: uint16(23284), + 22: uint16(23293), + 23: uint16(23287), + 24: uint16(23286), + 25: uint16(23299), + 26: uint16(23288), + 27: uint16(23298), + 28: uint16(23289), + 29: uint16(23297), + 30: uint16(23303), + 31: uint16(23301), + 32: uint16(23311), + 33: uint16(23655), + 34: uint16(23961), + 35: uint16(23959), + 36: uint16(23967), + 37: uint16(23954), + 38: uint16(23970), + 39: uint16(23955), + 40: uint16(23957), + 41: uint16(23968), + 42: uint16(23964), + 43: uint16(23969), + 44: uint16(23962), + 45: uint16(23966), + 46: uint16(24169), + 47: uint16(24157), + 48: uint16(24160), + 49: uint16(24156), + 50: uint16(32243), + 51: uint16(24283), + 52: uint16(24286), + 53: uint16(24289), + 54: uint16(24393), + 55: uint16(24498), + 56: uint16(24971), + 57: uint16(24963), + 58: uint16(24953), + 59: uint16(25009), + 60: uint16(25008), + 61: uint16(24994), + 62: uint16(24969), + 63: uint16(24987), + 64: uint16(24979), + 65: uint16(25007), + 66: uint16(25005), + 67: uint16(24991), + 68: uint16(24978), + 69: uint16(25002), + 70: uint16(24993), + 71: uint16(24973), + 72: uint16(24934), + 73: uint16(25011), + 74: uint16(25133), + 75: uint16(25710), + 76: uint16(25712), + 77: uint16(25750), + 78: uint16(25760), + 79: uint16(25733), + 80: uint16(25751), + 81: uint16(25756), + 82: uint16(25743), + 83: uint16(25739), + 84: uint16(25738), + 85: uint16(25740), + 86: uint16(25763), + 87: uint16(25759), + 88: uint16(25704), + 89: uint16(25777), + 90: uint16(25752), + 91: uint16(25974), + 92: uint16(25978), + 93: uint16(25977), + 94: uint16(25979), + 95: uint16(26034), + 96: uint16(26035), + 97: uint16(26293), + 98: uint16(26288), + 99: uint16(26281), + 100: uint16(26290), + 101: uint16(26295), + 102: uint16(26282), + 103: uint16(26287), + 104: uint16(27136), + 105: uint16(27142), + 106: uint16(27159), + 107: uint16(27109), + 108: uint16(27128), + 109: uint16(27157), + 110: uint16(27121), + 111: uint16(27108), + 112: uint16(27168), + 113: uint16(27135), + 114: uint16(27116), + 115: uint16(27106), + 116: uint16(27163), + 117: uint16(27165), + 118: uint16(27134), + 119: uint16(27175), + 120: uint16(27122), + 121: uint16(27118), + 122: uint16(27156), + 123: uint16(27127), + 124: uint16(27111), + 125: uint16(27200), + 126: uint16(27144), + 127: uint16(27110), + 128: uint16(27131), + 129: uint16(27149), + 130: uint16(27132), + 131: uint16(27115), + 132: uint16(27145), + 133: uint16(27140), + 134: uint16(27160), + 135: uint16(27173), + 136: uint16(27151), + 137: uint16(27126), + 138: uint16(27174), + 139: uint16(27143), + 140: uint16(27124), + 141: uint16(27158), + 142: uint16(27473), + 143: uint16(27557), + 144: uint16(27555), + 145: uint16(27554), + 146: uint16(27558), + 147: uint16(27649), + 148: uint16(27648), + 149: uint16(27647), + 150: uint16(27650), + 151: uint16(28481), + 152: uint16(28454), + 153: uint16(28542), + 154: uint16(28551), + 155: uint16(28614), + 156: uint16(28562), + }, + 69: { + 0: uint16(28557), + 1: uint16(28553), + 2: uint16(28556), + 3: uint16(28514), + 4: uint16(28495), + 5: uint16(28549), + 6: uint16(28506), + 7: uint16(28566), + 8: uint16(28534), + 9: uint16(28524), + 10: uint16(28546), + 11: uint16(28501), + 12: uint16(28530), + 13: uint16(28498), + 14: uint16(28496), + 15: uint16(28503), + 16: uint16(28564), + 17: uint16(28563), + 18: uint16(28509), + 19: uint16(28416), + 20: uint16(28513), + 21: uint16(28523), + 22: uint16(28541), + 23: uint16(28519), + 24: uint16(28560), + 25: uint16(28499), + 26: uint16(28555), + 27: uint16(28521), + 28: uint16(28543), + 29: uint16(28565), + 30: uint16(28515), + 31: uint16(28535), + 32: uint16(28522), + 33: uint16(28539), + 34: uint16(29106), + 35: uint16(29103), + 36: uint16(29083), + 37: uint16(29104), + 38: uint16(29088), + 39: uint16(29082), + 40: uint16(29097), + 41: uint16(29109), + 42: uint16(29085), + 43: uint16(29093), + 44: uint16(29086), + 45: uint16(29092), + 46: uint16(29089), + 47: uint16(29098), + 48: uint16(29084), + 49: uint16(29095), + 50: uint16(29107), + 51: uint16(29336), + 52: uint16(29338), + 53: uint16(29528), + 54: uint16(29522), + 55: uint16(29534), + 56: uint16(29535), + 57: uint16(29536), + 58: uint16(29533), + 59: uint16(29531), + 60: uint16(29537), + 61: uint16(29530), + 62: uint16(29529), + 63: uint16(29538), + 64: uint16(29831), + 65: uint16(29833), + 66: uint16(29834), + 67: uint16(29830), + 68: uint16(29825), + 69: uint16(29821), + 70: uint16(29829), + 71: uint16(29832), + 72: uint16(29820), + 73: uint16(29817), + 74: uint16(29960), + 75: uint16(29959), + 76: uint16(30078), + 77: uint16(30245), + 78: uint16(30238), + 79: uint16(30233), + 80: uint16(30237), + 81: uint16(30236), + 82: uint16(30243), + 83: uint16(30234), + 84: uint16(30248), + 85: uint16(30235), + 86: uint16(30364), + 87: uint16(30365), + 88: uint16(30366), + 89: uint16(30363), + 90: uint16(30605), + 91: uint16(30607), + 92: uint16(30601), + 93: uint16(30600), + 94: uint16(30925), + 95: uint16(30907), + 96: uint16(30927), + 97: uint16(30924), + 98: uint16(30929), + 99: uint16(30926), + 100: uint16(30932), + 101: uint16(30920), + 102: uint16(30915), + 103: uint16(30916), + 104: uint16(30921), + 105: uint16(31130), + 106: uint16(31137), + 107: uint16(31136), + 108: uint16(31132), + 109: uint16(31138), + 110: uint16(31131), + 111: uint16(27510), + 112: uint16(31289), + 113: uint16(31410), + 114: uint16(31412), + 115: uint16(31411), + 116: uint16(31671), + 117: uint16(31691), + 118: uint16(31678), + 119: uint16(31660), + 120: uint16(31694), + 121: uint16(31663), + 122: uint16(31673), + 123: uint16(31690), + 124: uint16(31669), + 125: uint16(31941), + 126: uint16(31944), + 127: uint16(31948), + 128: uint16(31947), + 129: uint16(32247), + 130: uint16(32219), + 131: uint16(32234), + 132: uint16(32231), + 133: uint16(32215), + 134: uint16(32225), + 135: uint16(32259), + 136: uint16(32250), + 137: uint16(32230), + 138: uint16(32246), + 139: uint16(32241), + 140: uint16(32240), + 141: uint16(32238), + 142: uint16(32223), + 143: uint16(32630), + 144: uint16(32684), + 145: uint16(32688), + 146: uint16(32685), + 147: uint16(32749), + 148: uint16(32747), + 149: uint16(32746), + 150: uint16(32748), + 151: uint16(32742), + 152: uint16(32744), + 153: uint16(32868), + 154: uint16(32871), + 155: uint16(33187), + 156: uint16(33183), + }, + 70: { + 0: uint16(33182), + 1: uint16(33173), + 2: uint16(33186), + 3: uint16(33177), + 4: uint16(33175), + 5: uint16(33302), + 6: uint16(33359), + 7: uint16(33363), + 8: uint16(33362), + 9: uint16(33360), + 10: uint16(33358), + 11: uint16(33361), + 12: uint16(34084), + 13: uint16(34107), + 14: uint16(34063), + 15: uint16(34048), + 16: uint16(34089), + 17: uint16(34062), + 18: uint16(34057), + 19: uint16(34061), + 20: uint16(34079), + 21: uint16(34058), + 22: uint16(34087), + 23: uint16(34076), + 24: uint16(34043), + 25: uint16(34091), + 26: uint16(34042), + 27: uint16(34056), + 28: uint16(34060), + 29: uint16(34036), + 30: uint16(34090), + 31: uint16(34034), + 32: uint16(34069), + 33: uint16(34039), + 34: uint16(34027), + 35: uint16(34035), + 36: uint16(34044), + 37: uint16(34066), + 38: uint16(34026), + 39: uint16(34025), + 40: uint16(34070), + 41: uint16(34046), + 42: uint16(34088), + 43: uint16(34077), + 44: uint16(34094), + 45: uint16(34050), + 46: uint16(34045), + 47: uint16(34078), + 48: uint16(34038), + 49: uint16(34097), + 50: uint16(34086), + 51: uint16(34023), + 52: uint16(34024), + 53: uint16(34032), + 54: uint16(34031), + 55: uint16(34041), + 56: uint16(34072), + 57: uint16(34080), + 58: uint16(34096), + 59: uint16(34059), + 60: uint16(34073), + 61: uint16(34095), + 62: uint16(34402), + 63: uint16(34646), + 64: uint16(34659), + 65: uint16(34660), + 66: uint16(34679), + 67: uint16(34785), + 68: uint16(34675), + 69: uint16(34648), + 70: uint16(34644), + 71: uint16(34651), + 72: uint16(34642), + 73: uint16(34657), + 74: uint16(34650), + 75: uint16(34641), + 76: uint16(34654), + 77: uint16(34669), + 78: uint16(34666), + 79: uint16(34640), + 80: uint16(34638), + 81: uint16(34655), + 82: uint16(34653), + 83: uint16(34671), + 84: uint16(34668), + 85: uint16(34682), + 86: uint16(34670), + 87: uint16(34652), + 88: uint16(34661), + 89: uint16(34639), + 90: uint16(34683), + 91: uint16(34677), + 92: uint16(34658), + 93: uint16(34663), + 94: uint16(34665), + 95: uint16(34906), + 96: uint16(35077), + 97: uint16(35084), + 98: uint16(35092), + 99: uint16(35083), + 100: uint16(35095), + 101: uint16(35096), + 102: uint16(35097), + 103: uint16(35078), + 104: uint16(35094), + 105: uint16(35089), + 106: uint16(35086), + 107: uint16(35081), + 108: uint16(35234), + 109: uint16(35236), + 110: uint16(35235), + 111: uint16(35309), + 112: uint16(35312), + 113: uint16(35308), + 114: uint16(35535), + 115: uint16(35526), + 116: uint16(35512), + 117: uint16(35539), + 118: uint16(35537), + 119: uint16(35540), + 120: uint16(35541), + 121: uint16(35515), + 122: uint16(35543), + 123: uint16(35518), + 124: uint16(35520), + 125: uint16(35525), + 126: uint16(35544), + 127: uint16(35523), + 128: uint16(35514), + 129: uint16(35517), + 130: uint16(35545), + 131: uint16(35902), + 132: uint16(35917), + 133: uint16(35983), + 134: uint16(36069), + 135: uint16(36063), + 136: uint16(36057), + 137: uint16(36072), + 138: uint16(36058), + 139: uint16(36061), + 140: uint16(36071), + 141: uint16(36256), + 142: uint16(36252), + 143: uint16(36257), + 144: uint16(36251), + 145: uint16(36384), + 146: uint16(36387), + 147: uint16(36389), + 148: uint16(36388), + 149: uint16(36398), + 150: uint16(36373), + 151: uint16(36379), + 152: uint16(36374), + 153: uint16(36369), + 154: uint16(36377), + 155: uint16(36390), + 156: uint16(36391), + }, + 71: { + 0: uint16(36372), + 1: uint16(36370), + 2: uint16(36376), + 3: uint16(36371), + 4: uint16(36380), + 5: uint16(36375), + 6: uint16(36378), + 7: uint16(36652), + 8: uint16(36644), + 9: uint16(36632), + 10: uint16(36634), + 11: uint16(36640), + 12: uint16(36643), + 13: uint16(36630), + 14: uint16(36631), + 15: uint16(36979), + 16: uint16(36976), + 17: uint16(36975), + 18: uint16(36967), + 19: uint16(36971), + 20: uint16(37167), + 21: uint16(37163), + 22: uint16(37161), + 23: uint16(37162), + 24: uint16(37170), + 25: uint16(37158), + 26: uint16(37166), + 27: uint16(37253), + 28: uint16(37254), + 29: uint16(37258), + 30: uint16(37249), + 31: uint16(37250), + 32: uint16(37252), + 33: uint16(37248), + 34: uint16(37584), + 35: uint16(37571), + 36: uint16(37572), + 37: uint16(37568), + 38: uint16(37593), + 39: uint16(37558), + 40: uint16(37583), + 41: uint16(37617), + 42: uint16(37599), + 43: uint16(37592), + 44: uint16(37609), + 45: uint16(37591), + 46: uint16(37597), + 47: uint16(37580), + 48: uint16(37615), + 49: uint16(37570), + 50: uint16(37608), + 51: uint16(37578), + 52: uint16(37576), + 53: uint16(37582), + 54: uint16(37606), + 55: uint16(37581), + 56: uint16(37589), + 57: uint16(37577), + 58: uint16(37600), + 59: uint16(37598), + 60: uint16(37607), + 61: uint16(37585), + 62: uint16(37587), + 63: uint16(37557), + 64: uint16(37601), + 65: uint16(37574), + 66: uint16(37556), + 67: uint16(38268), + 68: uint16(38316), + 69: uint16(38315), + 70: uint16(38318), + 71: uint16(38320), + 72: uint16(38564), + 73: uint16(38562), + 74: uint16(38611), + 75: uint16(38661), + 76: uint16(38664), + 77: uint16(38658), + 78: uint16(38746), + 79: uint16(38794), + 80: uint16(38798), + 81: uint16(38792), + 82: uint16(38864), + 83: uint16(38863), + 84: uint16(38942), + 85: uint16(38941), + 86: uint16(38950), + 87: uint16(38953), + 88: uint16(38952), + 89: uint16(38944), + 90: uint16(38939), + 91: uint16(38951), + 92: uint16(39090), + 93: uint16(39176), + 94: uint16(39162), + 95: uint16(39185), + 96: uint16(39188), + 97: uint16(39190), + 98: uint16(39191), + 99: uint16(39189), + 100: uint16(39388), + 101: uint16(39373), + 102: uint16(39375), + 103: uint16(39379), + 104: uint16(39380), + 105: uint16(39374), + 106: uint16(39369), + 107: uint16(39382), + 108: uint16(39384), + 109: uint16(39371), + 110: uint16(39383), + 111: uint16(39372), + 112: uint16(39603), + 113: uint16(39660), + 114: uint16(39659), + 115: uint16(39667), + 116: uint16(39666), + 117: uint16(39665), + 118: uint16(39750), + 119: uint16(39747), + 120: uint16(39783), + 121: uint16(39796), + 122: uint16(39793), + 123: uint16(39782), + 124: uint16(39798), + 125: uint16(39797), + 126: uint16(39792), + 127: uint16(39784), + 128: uint16(39780), + 129: uint16(39788), + 130: uint16(40188), + 131: uint16(40186), + 132: uint16(40189), + 133: uint16(40191), + 134: uint16(40183), + 135: uint16(40199), + 136: uint16(40192), + 137: uint16(40185), + 138: uint16(40187), + 139: uint16(40200), + 140: uint16(40197), + 141: uint16(40196), + 142: uint16(40579), + 143: uint16(40659), + 144: uint16(40719), + 145: uint16(40720), + 146: uint16(20764), + 147: uint16(20755), + 148: uint16(20759), + 149: uint16(20762), + 150: uint16(20753), + 151: uint16(20958), + 152: uint16(21300), + 153: uint16(21473), + 154: uint16(22128), + 155: uint16(22112), + 156: uint16(22126), + }, + 72: { + 0: uint16(22131), + 1: uint16(22118), + 2: uint16(22115), + 3: uint16(22125), + 4: uint16(22130), + 5: uint16(22110), + 6: uint16(22135), + 7: uint16(22300), + 8: uint16(22299), + 9: uint16(22728), + 10: uint16(22717), + 11: uint16(22729), + 12: uint16(22719), + 13: uint16(22714), + 14: uint16(22722), + 15: uint16(22716), + 16: uint16(22726), + 17: uint16(23319), + 18: uint16(23321), + 19: uint16(23323), + 20: uint16(23329), + 21: uint16(23316), + 22: uint16(23315), + 23: uint16(23312), + 24: uint16(23318), + 25: uint16(23336), + 26: uint16(23322), + 27: uint16(23328), + 28: uint16(23326), + 29: uint16(23535), + 30: uint16(23980), + 31: uint16(23985), + 32: uint16(23977), + 33: uint16(23975), + 34: uint16(23989), + 35: uint16(23984), + 36: uint16(23982), + 37: uint16(23978), + 38: uint16(23976), + 39: uint16(23986), + 40: uint16(23981), + 41: uint16(23983), + 42: uint16(23988), + 43: uint16(24167), + 44: uint16(24168), + 45: uint16(24166), + 46: uint16(24175), + 47: uint16(24297), + 48: uint16(24295), + 49: uint16(24294), + 50: uint16(24296), + 51: uint16(24293), + 52: uint16(24395), + 53: uint16(24508), + 54: uint16(24989), + 55: uint16(25000), + 56: uint16(24982), + 57: uint16(25029), + 58: uint16(25012), + 59: uint16(25030), + 60: uint16(25025), + 61: uint16(25036), + 62: uint16(25018), + 63: uint16(25023), + 64: uint16(25016), + 65: uint16(24972), + 66: uint16(25815), + 67: uint16(25814), + 68: uint16(25808), + 69: uint16(25807), + 70: uint16(25801), + 71: uint16(25789), + 72: uint16(25737), + 73: uint16(25795), + 74: uint16(25819), + 75: uint16(25843), + 76: uint16(25817), + 77: uint16(25907), + 78: uint16(25983), + 79: uint16(25980), + 80: uint16(26018), + 81: uint16(26312), + 82: uint16(26302), + 83: uint16(26304), + 84: uint16(26314), + 85: uint16(26315), + 86: uint16(26319), + 87: uint16(26301), + 88: uint16(26299), + 89: uint16(26298), + 90: uint16(26316), + 91: uint16(26403), + 92: uint16(27188), + 93: uint16(27238), + 94: uint16(27209), + 95: uint16(27239), + 96: uint16(27186), + 97: uint16(27240), + 98: uint16(27198), + 99: uint16(27229), + 100: uint16(27245), + 101: uint16(27254), + 102: uint16(27227), + 103: uint16(27217), + 104: uint16(27176), + 105: uint16(27226), + 106: uint16(27195), + 107: uint16(27199), + 108: uint16(27201), + 109: uint16(27242), + 110: uint16(27236), + 111: uint16(27216), + 112: uint16(27215), + 113: uint16(27220), + 114: uint16(27247), + 115: uint16(27241), + 116: uint16(27232), + 117: uint16(27196), + 118: uint16(27230), + 119: uint16(27222), + 120: uint16(27221), + 121: uint16(27213), + 122: uint16(27214), + 123: uint16(27206), + 124: uint16(27477), + 125: uint16(27476), + 126: uint16(27478), + 127: uint16(27559), + 128: uint16(27562), + 129: uint16(27563), + 130: uint16(27592), + 131: uint16(27591), + 132: uint16(27652), + 133: uint16(27651), + 134: uint16(27654), + 135: uint16(28589), + 136: uint16(28619), + 137: uint16(28579), + 138: uint16(28615), + 139: uint16(28604), + 140: uint16(28622), + 141: uint16(28616), + 142: uint16(28510), + 143: uint16(28612), + 144: uint16(28605), + 145: uint16(28574), + 146: uint16(28618), + 147: uint16(28584), + 148: uint16(28676), + 149: uint16(28581), + 150: uint16(28590), + 151: uint16(28602), + 152: uint16(28588), + 153: uint16(28586), + 154: uint16(28623), + 155: uint16(28607), + 156: uint16(28600), + }, + 73: { + 0: uint16(28578), + 1: uint16(28617), + 2: uint16(28587), + 3: uint16(28621), + 4: uint16(28591), + 5: uint16(28594), + 6: uint16(28592), + 7: uint16(29125), + 8: uint16(29122), + 9: uint16(29119), + 10: uint16(29112), + 11: uint16(29142), + 12: uint16(29120), + 13: uint16(29121), + 14: uint16(29131), + 15: uint16(29140), + 16: uint16(29130), + 17: uint16(29127), + 18: uint16(29135), + 19: uint16(29117), + 20: uint16(29144), + 21: uint16(29116), + 22: uint16(29126), + 23: uint16(29146), + 24: uint16(29147), + 25: uint16(29341), + 26: uint16(29342), + 27: uint16(29545), + 28: uint16(29542), + 29: uint16(29543), + 30: uint16(29548), + 31: uint16(29541), + 32: uint16(29547), + 33: uint16(29546), + 34: uint16(29823), + 35: uint16(29850), + 36: uint16(29856), + 37: uint16(29844), + 38: uint16(29842), + 39: uint16(29845), + 40: uint16(29857), + 41: uint16(29963), + 42: uint16(30080), + 43: uint16(30255), + 44: uint16(30253), + 45: uint16(30257), + 46: uint16(30269), + 47: uint16(30259), + 48: uint16(30268), + 49: uint16(30261), + 50: uint16(30258), + 51: uint16(30256), + 52: uint16(30395), + 53: uint16(30438), + 54: uint16(30618), + 55: uint16(30621), + 56: uint16(30625), + 57: uint16(30620), + 58: uint16(30619), + 59: uint16(30626), + 60: uint16(30627), + 61: uint16(30613), + 62: uint16(30617), + 63: uint16(30615), + 64: uint16(30941), + 65: uint16(30953), + 66: uint16(30949), + 67: uint16(30954), + 68: uint16(30942), + 69: uint16(30947), + 70: uint16(30939), + 71: uint16(30945), + 72: uint16(30946), + 73: uint16(30957), + 74: uint16(30943), + 75: uint16(30944), + 76: uint16(31140), + 77: uint16(31300), + 78: uint16(31304), + 79: uint16(31303), + 80: uint16(31414), + 81: uint16(31416), + 82: uint16(31413), + 83: uint16(31409), + 84: uint16(31415), + 85: uint16(31710), + 86: uint16(31715), + 87: uint16(31719), + 88: uint16(31709), + 89: uint16(31701), + 90: uint16(31717), + 91: uint16(31706), + 92: uint16(31720), + 93: uint16(31737), + 94: uint16(31700), + 95: uint16(31722), + 96: uint16(31714), + 97: uint16(31708), + 98: uint16(31723), + 99: uint16(31704), + 100: uint16(31711), + 101: uint16(31954), + 102: uint16(31956), + 103: uint16(31959), + 104: uint16(31952), + 105: uint16(31953), + 106: uint16(32274), + 107: uint16(32289), + 108: uint16(32279), + 109: uint16(32268), + 110: uint16(32287), + 111: uint16(32288), + 112: uint16(32275), + 113: uint16(32270), + 114: uint16(32284), + 115: uint16(32277), + 116: uint16(32282), + 117: uint16(32290), + 118: uint16(32267), + 119: uint16(32271), + 120: uint16(32278), + 121: uint16(32269), + 122: uint16(32276), + 123: uint16(32293), + 124: uint16(32292), + 125: uint16(32579), + 126: uint16(32635), + 127: uint16(32636), + 128: uint16(32634), + 129: uint16(32689), + 130: uint16(32751), + 131: uint16(32810), + 132: uint16(32809), + 133: uint16(32876), + 134: uint16(33201), + 135: uint16(33190), + 136: uint16(33198), + 137: uint16(33209), + 138: uint16(33205), + 139: uint16(33195), + 140: uint16(33200), + 141: uint16(33196), + 142: uint16(33204), + 143: uint16(33202), + 144: uint16(33207), + 145: uint16(33191), + 146: uint16(33266), + 147: uint16(33365), + 148: uint16(33366), + 149: uint16(33367), + 150: uint16(34134), + 151: uint16(34117), + 152: uint16(34155), + 153: uint16(34125), + 154: uint16(34131), + 155: uint16(34145), + 156: uint16(34136), + }, + 74: { + 0: uint16(34112), + 1: uint16(34118), + 2: uint16(34148), + 3: uint16(34113), + 4: uint16(34146), + 5: uint16(34116), + 6: uint16(34129), + 7: uint16(34119), + 8: uint16(34147), + 9: uint16(34110), + 10: uint16(34139), + 11: uint16(34161), + 12: uint16(34126), + 13: uint16(34158), + 14: uint16(34165), + 15: uint16(34133), + 16: uint16(34151), + 17: uint16(34144), + 18: uint16(34188), + 19: uint16(34150), + 20: uint16(34141), + 21: uint16(34132), + 22: uint16(34149), + 23: uint16(34156), + 24: uint16(34403), + 25: uint16(34405), + 26: uint16(34404), + 27: uint16(34715), + 28: uint16(34703), + 29: uint16(34711), + 30: uint16(34707), + 31: uint16(34706), + 32: uint16(34696), + 33: uint16(34689), + 34: uint16(34710), + 35: uint16(34712), + 36: uint16(34681), + 37: uint16(34695), + 38: uint16(34723), + 39: uint16(34693), + 40: uint16(34704), + 41: uint16(34705), + 42: uint16(34717), + 43: uint16(34692), + 44: uint16(34708), + 45: uint16(34716), + 46: uint16(34714), + 47: uint16(34697), + 48: uint16(35102), + 49: uint16(35110), + 50: uint16(35120), + 51: uint16(35117), + 52: uint16(35118), + 53: uint16(35111), + 54: uint16(35121), + 55: uint16(35106), + 56: uint16(35113), + 57: uint16(35107), + 58: uint16(35119), + 59: uint16(35116), + 60: uint16(35103), + 61: uint16(35313), + 62: uint16(35552), + 63: uint16(35554), + 64: uint16(35570), + 65: uint16(35572), + 66: uint16(35573), + 67: uint16(35549), + 68: uint16(35604), + 69: uint16(35556), + 70: uint16(35551), + 71: uint16(35568), + 72: uint16(35528), + 73: uint16(35550), + 74: uint16(35553), + 75: uint16(35560), + 76: uint16(35583), + 77: uint16(35567), + 78: uint16(35579), + 79: uint16(35985), + 80: uint16(35986), + 81: uint16(35984), + 82: uint16(36085), + 83: uint16(36078), + 84: uint16(36081), + 85: uint16(36080), + 86: uint16(36083), + 87: uint16(36204), + 88: uint16(36206), + 89: uint16(36261), + 90: uint16(36263), + 91: uint16(36403), + 92: uint16(36414), + 93: uint16(36408), + 94: uint16(36416), + 95: uint16(36421), + 96: uint16(36406), + 97: uint16(36412), + 98: uint16(36413), + 99: uint16(36417), + 100: uint16(36400), + 101: uint16(36415), + 102: uint16(36541), + 103: uint16(36662), + 104: uint16(36654), + 105: uint16(36661), + 106: uint16(36658), + 107: uint16(36665), + 108: uint16(36663), + 109: uint16(36660), + 110: uint16(36982), + 111: uint16(36985), + 112: uint16(36987), + 113: uint16(36998), + 114: uint16(37114), + 115: uint16(37171), + 116: uint16(37173), + 117: uint16(37174), + 118: uint16(37267), + 119: uint16(37264), + 120: uint16(37265), + 121: uint16(37261), + 122: uint16(37263), + 123: uint16(37671), + 124: uint16(37662), + 125: uint16(37640), + 126: uint16(37663), + 127: uint16(37638), + 128: uint16(37647), + 129: uint16(37754), + 130: uint16(37688), + 131: uint16(37692), + 132: uint16(37659), + 133: uint16(37667), + 134: uint16(37650), + 135: uint16(37633), + 136: uint16(37702), + 137: uint16(37677), + 138: uint16(37646), + 139: uint16(37645), + 140: uint16(37579), + 141: uint16(37661), + 142: uint16(37626), + 143: uint16(37669), + 144: uint16(37651), + 145: uint16(37625), + 146: uint16(37623), + 147: uint16(37684), + 148: uint16(37634), + 149: uint16(37668), + 150: uint16(37631), + 151: uint16(37673), + 152: uint16(37689), + 153: uint16(37685), + 154: uint16(37674), + 155: uint16(37652), + 156: uint16(37644), + }, + 75: { + 0: uint16(37643), + 1: uint16(37630), + 2: uint16(37641), + 3: uint16(37632), + 4: uint16(37627), + 5: uint16(37654), + 6: uint16(38332), + 7: uint16(38349), + 8: uint16(38334), + 9: uint16(38329), + 10: uint16(38330), + 11: uint16(38326), + 12: uint16(38335), + 13: uint16(38325), + 14: uint16(38333), + 15: uint16(38569), + 16: uint16(38612), + 17: uint16(38667), + 18: uint16(38674), + 19: uint16(38672), + 20: uint16(38809), + 21: uint16(38807), + 22: uint16(38804), + 23: uint16(38896), + 24: uint16(38904), + 25: uint16(38965), + 26: uint16(38959), + 27: uint16(38962), + 28: uint16(39204), + 29: uint16(39199), + 30: uint16(39207), + 31: uint16(39209), + 32: uint16(39326), + 33: uint16(39406), + 34: uint16(39404), + 35: uint16(39397), + 36: uint16(39396), + 37: uint16(39408), + 38: uint16(39395), + 39: uint16(39402), + 40: uint16(39401), + 41: uint16(39399), + 42: uint16(39609), + 43: uint16(39615), + 44: uint16(39604), + 45: uint16(39611), + 46: uint16(39670), + 47: uint16(39674), + 48: uint16(39673), + 49: uint16(39671), + 50: uint16(39731), + 51: uint16(39808), + 52: uint16(39813), + 53: uint16(39815), + 54: uint16(39804), + 55: uint16(39806), + 56: uint16(39803), + 57: uint16(39810), + 58: uint16(39827), + 59: uint16(39826), + 60: uint16(39824), + 61: uint16(39802), + 62: uint16(39829), + 63: uint16(39805), + 64: uint16(39816), + 65: uint16(40229), + 66: uint16(40215), + 67: uint16(40224), + 68: uint16(40222), + 69: uint16(40212), + 70: uint16(40233), + 71: uint16(40221), + 72: uint16(40216), + 73: uint16(40226), + 74: uint16(40208), + 75: uint16(40217), + 76: uint16(40223), + 77: uint16(40584), + 78: uint16(40582), + 79: uint16(40583), + 80: uint16(40622), + 81: uint16(40621), + 82: uint16(40661), + 83: uint16(40662), + 84: uint16(40698), + 85: uint16(40722), + 86: uint16(40765), + 87: uint16(20774), + 88: uint16(20773), + 89: uint16(20770), + 90: uint16(20772), + 91: uint16(20768), + 92: uint16(20777), + 93: uint16(21236), + 94: uint16(22163), + 95: uint16(22156), + 96: uint16(22157), + 97: uint16(22150), + 98: uint16(22148), + 99: uint16(22147), + 100: uint16(22142), + 101: uint16(22146), + 102: uint16(22143), + 103: uint16(22145), + 104: uint16(22742), + 105: uint16(22740), + 106: uint16(22735), + 107: uint16(22738), + 108: uint16(23341), + 109: uint16(23333), + 110: uint16(23346), + 111: uint16(23331), + 112: uint16(23340), + 113: uint16(23335), + 114: uint16(23334), + 115: uint16(23343), + 116: uint16(23342), + 117: uint16(23419), + 118: uint16(23537), + 119: uint16(23538), + 120: uint16(23991), + 121: uint16(24172), + 122: uint16(24170), + 123: uint16(24510), + 124: uint16(24507), + 125: uint16(25027), + 126: uint16(25013), + 127: uint16(25020), + 128: uint16(25063), + 129: uint16(25056), + 130: uint16(25061), + 131: uint16(25060), + 132: uint16(25064), + 133: uint16(25054), + 134: uint16(25839), + 135: uint16(25833), + 136: uint16(25827), + 137: uint16(25835), + 138: uint16(25828), + 139: uint16(25832), + 140: uint16(25985), + 141: uint16(25984), + 142: uint16(26038), + 143: uint16(26074), + 144: uint16(26322), + 145: uint16(27277), + 146: uint16(27286), + 147: uint16(27265), + 148: uint16(27301), + 149: uint16(27273), + 150: uint16(27295), + 151: uint16(27291), + 152: uint16(27297), + 153: uint16(27294), + 154: uint16(27271), + 155: uint16(27283), + 156: uint16(27278), + }, + 76: { + 0: uint16(27285), + 1: uint16(27267), + 2: uint16(27304), + 3: uint16(27300), + 4: uint16(27281), + 5: uint16(27263), + 6: uint16(27302), + 7: uint16(27290), + 8: uint16(27269), + 9: uint16(27276), + 10: uint16(27282), + 11: uint16(27483), + 12: uint16(27565), + 13: uint16(27657), + 14: uint16(28620), + 15: uint16(28585), + 16: uint16(28660), + 17: uint16(28628), + 18: uint16(28643), + 19: uint16(28636), + 20: uint16(28653), + 21: uint16(28647), + 22: uint16(28646), + 23: uint16(28638), + 24: uint16(28658), + 25: uint16(28637), + 26: uint16(28642), + 27: uint16(28648), + 28: uint16(29153), + 29: uint16(29169), + 30: uint16(29160), + 31: uint16(29170), + 32: uint16(29156), + 33: uint16(29168), + 34: uint16(29154), + 35: uint16(29555), + 36: uint16(29550), + 37: uint16(29551), + 38: uint16(29847), + 39: uint16(29874), + 40: uint16(29867), + 41: uint16(29840), + 42: uint16(29866), + 43: uint16(29869), + 44: uint16(29873), + 45: uint16(29861), + 46: uint16(29871), + 47: uint16(29968), + 48: uint16(29969), + 49: uint16(29970), + 50: uint16(29967), + 51: uint16(30084), + 52: uint16(30275), + 53: uint16(30280), + 54: uint16(30281), + 55: uint16(30279), + 56: uint16(30372), + 57: uint16(30441), + 58: uint16(30645), + 59: uint16(30635), + 60: uint16(30642), + 61: uint16(30647), + 62: uint16(30646), + 63: uint16(30644), + 64: uint16(30641), + 65: uint16(30632), + 66: uint16(30704), + 67: uint16(30963), + 68: uint16(30973), + 69: uint16(30978), + 70: uint16(30971), + 71: uint16(30972), + 72: uint16(30962), + 73: uint16(30981), + 74: uint16(30969), + 75: uint16(30974), + 76: uint16(30980), + 77: uint16(31147), + 78: uint16(31144), + 79: uint16(31324), + 80: uint16(31323), + 81: uint16(31318), + 82: uint16(31320), + 83: uint16(31316), + 84: uint16(31322), + 85: uint16(31422), + 86: uint16(31424), + 87: uint16(31425), + 88: uint16(31749), + 89: uint16(31759), + 90: uint16(31730), + 91: uint16(31744), + 92: uint16(31743), + 93: uint16(31739), + 94: uint16(31758), + 95: uint16(31732), + 96: uint16(31755), + 97: uint16(31731), + 98: uint16(31746), + 99: uint16(31753), + 100: uint16(31747), + 101: uint16(31745), + 102: uint16(31736), + 103: uint16(31741), + 104: uint16(31750), + 105: uint16(31728), + 106: uint16(31729), + 107: uint16(31760), + 108: uint16(31754), + 109: uint16(31976), + 110: uint16(32301), + 111: uint16(32316), + 112: uint16(32322), + 113: uint16(32307), + 114: uint16(38984), + 115: uint16(32312), + 116: uint16(32298), + 117: uint16(32329), + 118: uint16(32320), + 119: uint16(32327), + 120: uint16(32297), + 121: uint16(32332), + 122: uint16(32304), + 123: uint16(32315), + 124: uint16(32310), + 125: uint16(32324), + 126: uint16(32314), + 127: uint16(32581), + 128: uint16(32639), + 129: uint16(32638), + 130: uint16(32637), + 131: uint16(32756), + 132: uint16(32754), + 133: uint16(32812), + 134: uint16(33211), + 135: uint16(33220), + 136: uint16(33228), + 137: uint16(33226), + 138: uint16(33221), + 139: uint16(33223), + 140: uint16(33212), + 141: uint16(33257), + 142: uint16(33371), + 143: uint16(33370), + 144: uint16(33372), + 145: uint16(34179), + 146: uint16(34176), + 147: uint16(34191), + 148: uint16(34215), + 149: uint16(34197), + 150: uint16(34208), + 151: uint16(34187), + 152: uint16(34211), + 153: uint16(34171), + 154: uint16(34212), + 155: uint16(34202), + 156: uint16(34206), + }, + 77: { + 0: uint16(34167), + 1: uint16(34172), + 2: uint16(34185), + 3: uint16(34209), + 4: uint16(34170), + 5: uint16(34168), + 6: uint16(34135), + 7: uint16(34190), + 8: uint16(34198), + 9: uint16(34182), + 10: uint16(34189), + 11: uint16(34201), + 12: uint16(34205), + 13: uint16(34177), + 14: uint16(34210), + 15: uint16(34178), + 16: uint16(34184), + 17: uint16(34181), + 18: uint16(34169), + 19: uint16(34166), + 20: uint16(34200), + 21: uint16(34192), + 22: uint16(34207), + 23: uint16(34408), + 24: uint16(34750), + 25: uint16(34730), + 26: uint16(34733), + 27: uint16(34757), + 28: uint16(34736), + 29: uint16(34732), + 30: uint16(34745), + 31: uint16(34741), + 32: uint16(34748), + 33: uint16(34734), + 34: uint16(34761), + 35: uint16(34755), + 36: uint16(34754), + 37: uint16(34764), + 38: uint16(34743), + 39: uint16(34735), + 40: uint16(34756), + 41: uint16(34762), + 42: uint16(34740), + 43: uint16(34742), + 44: uint16(34751), + 45: uint16(34744), + 46: uint16(34749), + 47: uint16(34782), + 48: uint16(34738), + 49: uint16(35125), + 50: uint16(35123), + 51: uint16(35132), + 52: uint16(35134), + 53: uint16(35137), + 54: uint16(35154), + 55: uint16(35127), + 56: uint16(35138), + 57: uint16(35245), + 58: uint16(35247), + 59: uint16(35246), + 60: uint16(35314), + 61: uint16(35315), + 62: uint16(35614), + 63: uint16(35608), + 64: uint16(35606), + 65: uint16(35601), + 66: uint16(35589), + 67: uint16(35595), + 68: uint16(35618), + 69: uint16(35599), + 70: uint16(35602), + 71: uint16(35605), + 72: uint16(35591), + 73: uint16(35597), + 74: uint16(35592), + 75: uint16(35590), + 76: uint16(35612), + 77: uint16(35603), + 78: uint16(35610), + 79: uint16(35919), + 80: uint16(35952), + 81: uint16(35954), + 82: uint16(35953), + 83: uint16(35951), + 84: uint16(35989), + 85: uint16(35988), + 86: uint16(36089), + 87: uint16(36207), + 88: uint16(36430), + 89: uint16(36429), + 90: uint16(36435), + 91: uint16(36432), + 92: uint16(36428), + 93: uint16(36423), + 94: uint16(36675), + 95: uint16(36672), + 96: uint16(36997), + 97: uint16(36990), + 98: uint16(37176), + 99: uint16(37274), + 100: uint16(37282), + 101: uint16(37275), + 102: uint16(37273), + 103: uint16(37279), + 104: uint16(37281), + 105: uint16(37277), + 106: uint16(37280), + 107: uint16(37793), + 108: uint16(37763), + 109: uint16(37807), + 110: uint16(37732), + 111: uint16(37718), + 112: uint16(37703), + 113: uint16(37756), + 114: uint16(37720), + 115: uint16(37724), + 116: uint16(37750), + 117: uint16(37705), + 118: uint16(37712), + 119: uint16(37713), + 120: uint16(37728), + 121: uint16(37741), + 122: uint16(37775), + 123: uint16(37708), + 124: uint16(37738), + 125: uint16(37753), + 126: uint16(37719), + 127: uint16(37717), + 128: uint16(37714), + 129: uint16(37711), + 130: uint16(37745), + 131: uint16(37751), + 132: uint16(37755), + 133: uint16(37729), + 134: uint16(37726), + 135: uint16(37731), + 136: uint16(37735), + 137: uint16(37760), + 138: uint16(37710), + 139: uint16(37721), + 140: uint16(38343), + 141: uint16(38336), + 142: uint16(38345), + 143: uint16(38339), + 144: uint16(38341), + 145: uint16(38327), + 146: uint16(38574), + 147: uint16(38576), + 148: uint16(38572), + 149: uint16(38688), + 150: uint16(38687), + 151: uint16(38680), + 152: uint16(38685), + 153: uint16(38681), + 154: uint16(38810), + 155: uint16(38817), + 156: uint16(38812), + }, + 78: { + 0: uint16(38814), + 1: uint16(38813), + 2: uint16(38869), + 3: uint16(38868), + 4: uint16(38897), + 5: uint16(38977), + 6: uint16(38980), + 7: uint16(38986), + 8: uint16(38985), + 9: uint16(38981), + 10: uint16(38979), + 11: uint16(39205), + 12: uint16(39211), + 13: uint16(39212), + 14: uint16(39210), + 15: uint16(39219), + 16: uint16(39218), + 17: uint16(39215), + 18: uint16(39213), + 19: uint16(39217), + 20: uint16(39216), + 21: uint16(39320), + 22: uint16(39331), + 23: uint16(39329), + 24: uint16(39426), + 25: uint16(39418), + 26: uint16(39412), + 27: uint16(39415), + 28: uint16(39417), + 29: uint16(39416), + 30: uint16(39414), + 31: uint16(39419), + 32: uint16(39421), + 33: uint16(39422), + 34: uint16(39420), + 35: uint16(39427), + 36: uint16(39614), + 37: uint16(39678), + 38: uint16(39677), + 39: uint16(39681), + 40: uint16(39676), + 41: uint16(39752), + 42: uint16(39834), + 43: uint16(39848), + 44: uint16(39838), + 45: uint16(39835), + 46: uint16(39846), + 47: uint16(39841), + 48: uint16(39845), + 49: uint16(39844), + 50: uint16(39814), + 51: uint16(39842), + 52: uint16(39840), + 53: uint16(39855), + 54: uint16(40243), + 55: uint16(40257), + 56: uint16(40295), + 57: uint16(40246), + 58: uint16(40238), + 59: uint16(40239), + 60: uint16(40241), + 61: uint16(40248), + 62: uint16(40240), + 63: uint16(40261), + 64: uint16(40258), + 65: uint16(40259), + 66: uint16(40254), + 67: uint16(40247), + 68: uint16(40256), + 69: uint16(40253), + 70: uint16(32757), + 71: uint16(40237), + 72: uint16(40586), + 73: uint16(40585), + 74: uint16(40589), + 75: uint16(40624), + 76: uint16(40648), + 77: uint16(40666), + 78: uint16(40699), + 79: uint16(40703), + 80: uint16(40740), + 81: uint16(40739), + 82: uint16(40738), + 83: uint16(40788), + 84: uint16(40864), + 85: uint16(20785), + 86: uint16(20781), + 87: uint16(20782), + 88: uint16(22168), + 89: uint16(22172), + 90: uint16(22167), + 91: uint16(22170), + 92: uint16(22173), + 93: uint16(22169), + 94: uint16(22896), + 95: uint16(23356), + 96: uint16(23657), + 97: uint16(23658), + 98: uint16(24000), + 99: uint16(24173), + 100: uint16(24174), + 101: uint16(25048), + 102: uint16(25055), + 103: uint16(25069), + 104: uint16(25070), + 105: uint16(25073), + 106: uint16(25066), + 107: uint16(25072), + 108: uint16(25067), + 109: uint16(25046), + 110: uint16(25065), + 111: uint16(25855), + 112: uint16(25860), + 113: uint16(25853), + 114: uint16(25848), + 115: uint16(25857), + 116: uint16(25859), + 117: uint16(25852), + 118: uint16(26004), + 119: uint16(26075), + 120: uint16(26330), + 121: uint16(26331), + 122: uint16(26328), + 123: uint16(27333), + 124: uint16(27321), + 125: uint16(27325), + 126: uint16(27361), + 127: uint16(27334), + 128: uint16(27322), + 129: uint16(27318), + 130: uint16(27319), + 131: uint16(27335), + 132: uint16(27316), + 133: uint16(27309), + 134: uint16(27486), + 135: uint16(27593), + 136: uint16(27659), + 137: uint16(28679), + 138: uint16(28684), + 139: uint16(28685), + 140: uint16(28673), + 141: uint16(28677), + 142: uint16(28692), + 143: uint16(28686), + 144: uint16(28671), + 145: uint16(28672), + 146: uint16(28667), + 147: uint16(28710), + 148: uint16(28668), + 149: uint16(28663), + 150: uint16(28682), + 151: uint16(29185), + 152: uint16(29183), + 153: uint16(29177), + 154: uint16(29187), + 155: uint16(29181), + 156: uint16(29558), + }, + 79: { + 0: uint16(29880), + 1: uint16(29888), + 2: uint16(29877), + 3: uint16(29889), + 4: uint16(29886), + 5: uint16(29878), + 6: uint16(29883), + 7: uint16(29890), + 8: uint16(29972), + 9: uint16(29971), + 10: uint16(30300), + 11: uint16(30308), + 12: uint16(30297), + 13: uint16(30288), + 14: uint16(30291), + 15: uint16(30295), + 16: uint16(30298), + 17: uint16(30374), + 18: uint16(30397), + 19: uint16(30444), + 20: uint16(30658), + 21: uint16(30650), + 22: uint16(30975), + 23: uint16(30988), + 24: uint16(30995), + 25: uint16(30996), + 26: uint16(30985), + 27: uint16(30992), + 28: uint16(30994), + 29: uint16(30993), + 30: uint16(31149), + 31: uint16(31148), + 32: uint16(31327), + 33: uint16(31772), + 34: uint16(31785), + 35: uint16(31769), + 36: uint16(31776), + 37: uint16(31775), + 38: uint16(31789), + 39: uint16(31773), + 40: uint16(31782), + 41: uint16(31784), + 42: uint16(31778), + 43: uint16(31781), + 44: uint16(31792), + 45: uint16(32348), + 46: uint16(32336), + 47: uint16(32342), + 48: uint16(32355), + 49: uint16(32344), + 50: uint16(32354), + 51: uint16(32351), + 52: uint16(32337), + 53: uint16(32352), + 54: uint16(32343), + 55: uint16(32339), + 56: uint16(32693), + 57: uint16(32691), + 58: uint16(32759), + 59: uint16(32760), + 60: uint16(32885), + 61: uint16(33233), + 62: uint16(33234), + 63: uint16(33232), + 64: uint16(33375), + 65: uint16(33374), + 66: uint16(34228), + 67: uint16(34246), + 68: uint16(34240), + 69: uint16(34243), + 70: uint16(34242), + 71: uint16(34227), + 72: uint16(34229), + 73: uint16(34237), + 74: uint16(34247), + 75: uint16(34244), + 76: uint16(34239), + 77: uint16(34251), + 78: uint16(34254), + 79: uint16(34248), + 80: uint16(34245), + 81: uint16(34225), + 82: uint16(34230), + 83: uint16(34258), + 84: uint16(34340), + 85: uint16(34232), + 86: uint16(34231), + 87: uint16(34238), + 88: uint16(34409), + 89: uint16(34791), + 90: uint16(34790), + 91: uint16(34786), + 92: uint16(34779), + 93: uint16(34795), + 94: uint16(34794), + 95: uint16(34789), + 96: uint16(34783), + 97: uint16(34803), + 98: uint16(34788), + 99: uint16(34772), + 100: uint16(34780), + 101: uint16(34771), + 102: uint16(34797), + 103: uint16(34776), + 104: uint16(34787), + 105: uint16(34724), + 106: uint16(34775), + 107: uint16(34777), + 108: uint16(34817), + 109: uint16(34804), + 110: uint16(34792), + 111: uint16(34781), + 112: uint16(35155), + 113: uint16(35147), + 114: uint16(35151), + 115: uint16(35148), + 116: uint16(35142), + 117: uint16(35152), + 118: uint16(35153), + 119: uint16(35145), + 120: uint16(35626), + 121: uint16(35623), + 122: uint16(35619), + 123: uint16(35635), + 124: uint16(35632), + 125: uint16(35637), + 126: uint16(35655), + 127: uint16(35631), + 128: uint16(35644), + 129: uint16(35646), + 130: uint16(35633), + 131: uint16(35621), + 132: uint16(35639), + 133: uint16(35622), + 134: uint16(35638), + 135: uint16(35630), + 136: uint16(35620), + 137: uint16(35643), + 138: uint16(35645), + 139: uint16(35642), + 140: uint16(35906), + 141: uint16(35957), + 142: uint16(35993), + 143: uint16(35992), + 144: uint16(35991), + 145: uint16(36094), + 146: uint16(36100), + 147: uint16(36098), + 148: uint16(36096), + 149: uint16(36444), + 150: uint16(36450), + 151: uint16(36448), + 152: uint16(36439), + 153: uint16(36438), + 154: uint16(36446), + 155: uint16(36453), + 156: uint16(36455), + }, + 80: { + 0: uint16(36443), + 1: uint16(36442), + 2: uint16(36449), + 3: uint16(36445), + 4: uint16(36457), + 5: uint16(36436), + 6: uint16(36678), + 7: uint16(36679), + 8: uint16(36680), + 9: uint16(36683), + 10: uint16(37160), + 11: uint16(37178), + 12: uint16(37179), + 13: uint16(37182), + 14: uint16(37288), + 15: uint16(37285), + 16: uint16(37287), + 17: uint16(37295), + 18: uint16(37290), + 19: uint16(37813), + 20: uint16(37772), + 21: uint16(37778), + 22: uint16(37815), + 23: uint16(37787), + 24: uint16(37789), + 25: uint16(37769), + 26: uint16(37799), + 27: uint16(37774), + 28: uint16(37802), + 29: uint16(37790), + 30: uint16(37798), + 31: uint16(37781), + 32: uint16(37768), + 33: uint16(37785), + 34: uint16(37791), + 35: uint16(37773), + 36: uint16(37809), + 37: uint16(37777), + 38: uint16(37810), + 39: uint16(37796), + 40: uint16(37800), + 41: uint16(37812), + 42: uint16(37795), + 43: uint16(37797), + 44: uint16(38354), + 45: uint16(38355), + 46: uint16(38353), + 47: uint16(38579), + 48: uint16(38615), + 49: uint16(38618), + 50: uint16(24002), + 51: uint16(38623), + 52: uint16(38616), + 53: uint16(38621), + 54: uint16(38691), + 55: uint16(38690), + 56: uint16(38693), + 57: uint16(38828), + 58: uint16(38830), + 59: uint16(38824), + 60: uint16(38827), + 61: uint16(38820), + 62: uint16(38826), + 63: uint16(38818), + 64: uint16(38821), + 65: uint16(38871), + 66: uint16(38873), + 67: uint16(38870), + 68: uint16(38872), + 69: uint16(38906), + 70: uint16(38992), + 71: uint16(38993), + 72: uint16(38994), + 73: uint16(39096), + 74: uint16(39233), + 75: uint16(39228), + 76: uint16(39226), + 77: uint16(39439), + 78: uint16(39435), + 79: uint16(39433), + 80: uint16(39437), + 81: uint16(39428), + 82: uint16(39441), + 83: uint16(39434), + 84: uint16(39429), + 85: uint16(39431), + 86: uint16(39430), + 87: uint16(39616), + 88: uint16(39644), + 89: uint16(39688), + 90: uint16(39684), + 91: uint16(39685), + 92: uint16(39721), + 93: uint16(39733), + 94: uint16(39754), + 95: uint16(39756), + 96: uint16(39755), + 97: uint16(39879), + 98: uint16(39878), + 99: uint16(39875), + 100: uint16(39871), + 101: uint16(39873), + 102: uint16(39861), + 103: uint16(39864), + 104: uint16(39891), + 105: uint16(39862), + 106: uint16(39876), + 107: uint16(39865), + 108: uint16(39869), + 109: uint16(40284), + 110: uint16(40275), + 111: uint16(40271), + 112: uint16(40266), + 113: uint16(40283), + 114: uint16(40267), + 115: uint16(40281), + 116: uint16(40278), + 117: uint16(40268), + 118: uint16(40279), + 119: uint16(40274), + 120: uint16(40276), + 121: uint16(40287), + 122: uint16(40280), + 123: uint16(40282), + 124: uint16(40590), + 125: uint16(40588), + 126: uint16(40671), + 127: uint16(40705), + 128: uint16(40704), + 129: uint16(40726), + 130: uint16(40741), + 131: uint16(40747), + 132: uint16(40746), + 133: uint16(40745), + 134: uint16(40744), + 135: uint16(40780), + 136: uint16(40789), + 137: uint16(20788), + 138: uint16(20789), + 139: uint16(21142), + 140: uint16(21239), + 141: uint16(21428), + 142: uint16(22187), + 143: uint16(22189), + 144: uint16(22182), + 145: uint16(22183), + 146: uint16(22186), + 147: uint16(22188), + 148: uint16(22746), + 149: uint16(22749), + 150: uint16(22747), + 151: uint16(22802), + 152: uint16(23357), + 153: uint16(23358), + 154: uint16(23359), + 155: uint16(24003), + 156: uint16(24176), + }, + 81: { + 0: uint16(24511), + 1: uint16(25083), + 2: uint16(25863), + 3: uint16(25872), + 4: uint16(25869), + 5: uint16(25865), + 6: uint16(25868), + 7: uint16(25870), + 8: uint16(25988), + 9: uint16(26078), + 10: uint16(26077), + 11: uint16(26334), + 12: uint16(27367), + 13: uint16(27360), + 14: uint16(27340), + 15: uint16(27345), + 16: uint16(27353), + 17: uint16(27339), + 18: uint16(27359), + 19: uint16(27356), + 20: uint16(27344), + 21: uint16(27371), + 22: uint16(27343), + 23: uint16(27341), + 24: uint16(27358), + 25: uint16(27488), + 26: uint16(27568), + 27: uint16(27660), + 28: uint16(28697), + 29: uint16(28711), + 30: uint16(28704), + 31: uint16(28694), + 32: uint16(28715), + 33: uint16(28705), + 34: uint16(28706), + 35: uint16(28707), + 36: uint16(28713), + 37: uint16(28695), + 38: uint16(28708), + 39: uint16(28700), + 40: uint16(28714), + 41: uint16(29196), + 42: uint16(29194), + 43: uint16(29191), + 44: uint16(29186), + 45: uint16(29189), + 46: uint16(29349), + 47: uint16(29350), + 48: uint16(29348), + 49: uint16(29347), + 50: uint16(29345), + 51: uint16(29899), + 52: uint16(29893), + 53: uint16(29879), + 54: uint16(29891), + 55: uint16(29974), + 56: uint16(30304), + 57: uint16(30665), + 58: uint16(30666), + 59: uint16(30660), + 60: uint16(30705), + 61: uint16(31005), + 62: uint16(31003), + 63: uint16(31009), + 64: uint16(31004), + 65: uint16(30999), + 66: uint16(31006), + 67: uint16(31152), + 68: uint16(31335), + 69: uint16(31336), + 70: uint16(31795), + 71: uint16(31804), + 72: uint16(31801), + 73: uint16(31788), + 74: uint16(31803), + 75: uint16(31980), + 76: uint16(31978), + 77: uint16(32374), + 78: uint16(32373), + 79: uint16(32376), + 80: uint16(32368), + 81: uint16(32375), + 82: uint16(32367), + 83: uint16(32378), + 84: uint16(32370), + 85: uint16(32372), + 86: uint16(32360), + 87: uint16(32587), + 88: uint16(32586), + 89: uint16(32643), + 90: uint16(32646), + 91: uint16(32695), + 92: uint16(32765), + 93: uint16(32766), + 94: uint16(32888), + 95: uint16(33239), + 96: uint16(33237), + 97: uint16(33380), + 98: uint16(33377), + 99: uint16(33379), + 100: uint16(34283), + 101: uint16(34289), + 102: uint16(34285), + 103: uint16(34265), + 104: uint16(34273), + 105: uint16(34280), + 106: uint16(34266), + 107: uint16(34263), + 108: uint16(34284), + 109: uint16(34290), + 110: uint16(34296), + 111: uint16(34264), + 112: uint16(34271), + 113: uint16(34275), + 114: uint16(34268), + 115: uint16(34257), + 116: uint16(34288), + 117: uint16(34278), + 118: uint16(34287), + 119: uint16(34270), + 120: uint16(34274), + 121: uint16(34816), + 122: uint16(34810), + 123: uint16(34819), + 124: uint16(34806), + 125: uint16(34807), + 126: uint16(34825), + 127: uint16(34828), + 128: uint16(34827), + 129: uint16(34822), + 130: uint16(34812), + 131: uint16(34824), + 132: uint16(34815), + 133: uint16(34826), + 134: uint16(34818), + 135: uint16(35170), + 136: uint16(35162), + 137: uint16(35163), + 138: uint16(35159), + 139: uint16(35169), + 140: uint16(35164), + 141: uint16(35160), + 142: uint16(35165), + 143: uint16(35161), + 144: uint16(35208), + 145: uint16(35255), + 146: uint16(35254), + 147: uint16(35318), + 148: uint16(35664), + 149: uint16(35656), + 150: uint16(35658), + 151: uint16(35648), + 152: uint16(35667), + 153: uint16(35670), + 154: uint16(35668), + 155: uint16(35659), + 156: uint16(35669), + }, + 82: { + 0: uint16(35665), + 1: uint16(35650), + 2: uint16(35666), + 3: uint16(35671), + 4: uint16(35907), + 5: uint16(35959), + 6: uint16(35958), + 7: uint16(35994), + 8: uint16(36102), + 9: uint16(36103), + 10: uint16(36105), + 11: uint16(36268), + 12: uint16(36266), + 13: uint16(36269), + 14: uint16(36267), + 15: uint16(36461), + 16: uint16(36472), + 17: uint16(36467), + 18: uint16(36458), + 19: uint16(36463), + 20: uint16(36475), + 21: uint16(36546), + 22: uint16(36690), + 23: uint16(36689), + 24: uint16(36687), + 25: uint16(36688), + 26: uint16(36691), + 27: uint16(36788), + 28: uint16(37184), + 29: uint16(37183), + 30: uint16(37296), + 31: uint16(37293), + 32: uint16(37854), + 33: uint16(37831), + 34: uint16(37839), + 35: uint16(37826), + 36: uint16(37850), + 37: uint16(37840), + 38: uint16(37881), + 39: uint16(37868), + 40: uint16(37836), + 41: uint16(37849), + 42: uint16(37801), + 43: uint16(37862), + 44: uint16(37834), + 45: uint16(37844), + 46: uint16(37870), + 47: uint16(37859), + 48: uint16(37845), + 49: uint16(37828), + 50: uint16(37838), + 51: uint16(37824), + 52: uint16(37842), + 53: uint16(37863), + 54: uint16(38269), + 55: uint16(38362), + 56: uint16(38363), + 57: uint16(38625), + 58: uint16(38697), + 59: uint16(38699), + 60: uint16(38700), + 61: uint16(38696), + 62: uint16(38694), + 63: uint16(38835), + 64: uint16(38839), + 65: uint16(38838), + 66: uint16(38877), + 67: uint16(38878), + 68: uint16(38879), + 69: uint16(39004), + 70: uint16(39001), + 71: uint16(39005), + 72: uint16(38999), + 73: uint16(39103), + 74: uint16(39101), + 75: uint16(39099), + 76: uint16(39102), + 77: uint16(39240), + 78: uint16(39239), + 79: uint16(39235), + 80: uint16(39334), + 81: uint16(39335), + 82: uint16(39450), + 83: uint16(39445), + 84: uint16(39461), + 85: uint16(39453), + 86: uint16(39460), + 87: uint16(39451), + 88: uint16(39458), + 89: uint16(39456), + 90: uint16(39463), + 91: uint16(39459), + 92: uint16(39454), + 93: uint16(39452), + 94: uint16(39444), + 95: uint16(39618), + 96: uint16(39691), + 97: uint16(39690), + 98: uint16(39694), + 99: uint16(39692), + 100: uint16(39735), + 101: uint16(39914), + 102: uint16(39915), + 103: uint16(39904), + 104: uint16(39902), + 105: uint16(39908), + 106: uint16(39910), + 107: uint16(39906), + 108: uint16(39920), + 109: uint16(39892), + 110: uint16(39895), + 111: uint16(39916), + 112: uint16(39900), + 113: uint16(39897), + 114: uint16(39909), + 115: uint16(39893), + 116: uint16(39905), + 117: uint16(39898), + 118: uint16(40311), + 119: uint16(40321), + 120: uint16(40330), + 121: uint16(40324), + 122: uint16(40328), + 123: uint16(40305), + 124: uint16(40320), + 125: uint16(40312), + 126: uint16(40326), + 127: uint16(40331), + 128: uint16(40332), + 129: uint16(40317), + 130: uint16(40299), + 131: uint16(40308), + 132: uint16(40309), + 133: uint16(40304), + 134: uint16(40297), + 135: uint16(40325), + 136: uint16(40307), + 137: uint16(40315), + 138: uint16(40322), + 139: uint16(40303), + 140: uint16(40313), + 141: uint16(40319), + 142: uint16(40327), + 143: uint16(40296), + 144: uint16(40596), + 145: uint16(40593), + 146: uint16(40640), + 147: uint16(40700), + 148: uint16(40749), + 149: uint16(40768), + 150: uint16(40769), + 151: uint16(40781), + 152: uint16(40790), + 153: uint16(40791), + 154: uint16(40792), + 155: uint16(21303), + 156: uint16(22194), + }, + 83: { + 0: uint16(22197), + 1: uint16(22195), + 2: uint16(22755), + 3: uint16(23365), + 4: uint16(24006), + 5: uint16(24007), + 6: uint16(24302), + 7: uint16(24303), + 8: uint16(24512), + 9: uint16(24513), + 10: uint16(25081), + 11: uint16(25879), + 12: uint16(25878), + 13: uint16(25877), + 14: uint16(25875), + 15: uint16(26079), + 16: uint16(26344), + 17: uint16(26339), + 18: uint16(26340), + 19: uint16(27379), + 20: uint16(27376), + 21: uint16(27370), + 22: uint16(27368), + 23: uint16(27385), + 24: uint16(27377), + 25: uint16(27374), + 26: uint16(27375), + 27: uint16(28732), + 28: uint16(28725), + 29: uint16(28719), + 30: uint16(28727), + 31: uint16(28724), + 32: uint16(28721), + 33: uint16(28738), + 34: uint16(28728), + 35: uint16(28735), + 36: uint16(28730), + 37: uint16(28729), + 38: uint16(28736), + 39: uint16(28731), + 40: uint16(28723), + 41: uint16(28737), + 42: uint16(29203), + 43: uint16(29204), + 44: uint16(29352), + 45: uint16(29565), + 46: uint16(29564), + 47: uint16(29882), + 48: uint16(30379), + 49: uint16(30378), + 50: uint16(30398), + 51: uint16(30445), + 52: uint16(30668), + 53: uint16(30670), + 54: uint16(30671), + 55: uint16(30669), + 56: uint16(30706), + 57: uint16(31013), + 58: uint16(31011), + 59: uint16(31015), + 60: uint16(31016), + 61: uint16(31012), + 62: uint16(31017), + 63: uint16(31154), + 64: uint16(31342), + 65: uint16(31340), + 66: uint16(31341), + 67: uint16(31479), + 68: uint16(31817), + 69: uint16(31816), + 70: uint16(31818), + 71: uint16(31815), + 72: uint16(31813), + 73: uint16(31982), + 74: uint16(32379), + 75: uint16(32382), + 76: uint16(32385), + 77: uint16(32384), + 78: uint16(32698), + 79: uint16(32767), + 80: uint16(32889), + 81: uint16(33243), + 82: uint16(33241), + 83: uint16(33291), + 84: uint16(33384), + 85: uint16(33385), + 86: uint16(34338), + 87: uint16(34303), + 88: uint16(34305), + 89: uint16(34302), + 90: uint16(34331), + 91: uint16(34304), + 92: uint16(34294), + 93: uint16(34308), + 94: uint16(34313), + 95: uint16(34309), + 96: uint16(34316), + 97: uint16(34301), + 98: uint16(34841), + 99: uint16(34832), + 100: uint16(34833), + 101: uint16(34839), + 102: uint16(34835), + 103: uint16(34838), + 104: uint16(35171), + 105: uint16(35174), + 106: uint16(35257), + 107: uint16(35319), + 108: uint16(35680), + 109: uint16(35690), + 110: uint16(35677), + 111: uint16(35688), + 112: uint16(35683), + 113: uint16(35685), + 114: uint16(35687), + 115: uint16(35693), + 116: uint16(36270), + 117: uint16(36486), + 118: uint16(36488), + 119: uint16(36484), + 120: uint16(36697), + 121: uint16(36694), + 122: uint16(36695), + 123: uint16(36693), + 124: uint16(36696), + 125: uint16(36698), + 126: uint16(37005), + 127: uint16(37187), + 128: uint16(37185), + 129: uint16(37303), + 130: uint16(37301), + 131: uint16(37298), + 132: uint16(37299), + 133: uint16(37899), + 134: uint16(37907), + 135: uint16(37883), + 136: uint16(37920), + 137: uint16(37903), + 138: uint16(37908), + 139: uint16(37886), + 140: uint16(37909), + 141: uint16(37904), + 142: uint16(37928), + 143: uint16(37913), + 144: uint16(37901), + 145: uint16(37877), + 146: uint16(37888), + 147: uint16(37879), + 148: uint16(37895), + 149: uint16(37902), + 150: uint16(37910), + 151: uint16(37906), + 152: uint16(37882), + 153: uint16(37897), + 154: uint16(37880), + 155: uint16(37898), + 156: uint16(37887), + }, + 84: { + 0: uint16(37884), + 1: uint16(37900), + 2: uint16(37878), + 3: uint16(37905), + 4: uint16(37894), + 5: uint16(38366), + 6: uint16(38368), + 7: uint16(38367), + 8: uint16(38702), + 9: uint16(38703), + 10: uint16(38841), + 11: uint16(38843), + 12: uint16(38909), + 13: uint16(38910), + 14: uint16(39008), + 15: uint16(39010), + 16: uint16(39011), + 17: uint16(39007), + 18: uint16(39105), + 19: uint16(39106), + 20: uint16(39248), + 21: uint16(39246), + 22: uint16(39257), + 23: uint16(39244), + 24: uint16(39243), + 25: uint16(39251), + 26: uint16(39474), + 27: uint16(39476), + 28: uint16(39473), + 29: uint16(39468), + 30: uint16(39466), + 31: uint16(39478), + 32: uint16(39465), + 33: uint16(39470), + 34: uint16(39480), + 35: uint16(39469), + 36: uint16(39623), + 37: uint16(39626), + 38: uint16(39622), + 39: uint16(39696), + 40: uint16(39698), + 41: uint16(39697), + 42: uint16(39947), + 43: uint16(39944), + 44: uint16(39927), + 45: uint16(39941), + 46: uint16(39954), + 47: uint16(39928), + 48: uint16(40000), + 49: uint16(39943), + 50: uint16(39950), + 51: uint16(39942), + 52: uint16(39959), + 53: uint16(39956), + 54: uint16(39945), + 55: uint16(40351), + 56: uint16(40345), + 57: uint16(40356), + 58: uint16(40349), + 59: uint16(40338), + 60: uint16(40344), + 61: uint16(40336), + 62: uint16(40347), + 63: uint16(40352), + 64: uint16(40340), + 65: uint16(40348), + 66: uint16(40362), + 67: uint16(40343), + 68: uint16(40353), + 69: uint16(40346), + 70: uint16(40354), + 71: uint16(40360), + 72: uint16(40350), + 73: uint16(40355), + 74: uint16(40383), + 75: uint16(40361), + 76: uint16(40342), + 77: uint16(40358), + 78: uint16(40359), + 79: uint16(40601), + 80: uint16(40603), + 81: uint16(40602), + 82: uint16(40677), + 83: uint16(40676), + 84: uint16(40679), + 85: uint16(40678), + 86: uint16(40752), + 87: uint16(40750), + 88: uint16(40795), + 89: uint16(40800), + 90: uint16(40798), + 91: uint16(40797), + 92: uint16(40793), + 93: uint16(40849), + 94: uint16(20794), + 95: uint16(20793), + 96: uint16(21144), + 97: uint16(21143), + 98: uint16(22211), + 99: uint16(22205), + 100: uint16(22206), + 101: uint16(23368), + 102: uint16(23367), + 103: uint16(24011), + 104: uint16(24015), + 105: uint16(24305), + 106: uint16(25085), + 107: uint16(25883), + 108: uint16(27394), + 109: uint16(27388), + 110: uint16(27395), + 111: uint16(27384), + 112: uint16(27392), + 113: uint16(28739), + 114: uint16(28740), + 115: uint16(28746), + 116: uint16(28744), + 117: uint16(28745), + 118: uint16(28741), + 119: uint16(28742), + 120: uint16(29213), + 121: uint16(29210), + 122: uint16(29209), + 123: uint16(29566), + 124: uint16(29975), + 125: uint16(30314), + 126: uint16(30672), + 127: uint16(31021), + 128: uint16(31025), + 129: uint16(31023), + 130: uint16(31828), + 131: uint16(31827), + 132: uint16(31986), + 133: uint16(32394), + 134: uint16(32391), + 135: uint16(32392), + 136: uint16(32395), + 137: uint16(32390), + 138: uint16(32397), + 139: uint16(32589), + 140: uint16(32699), + 141: uint16(32816), + 142: uint16(33245), + 143: uint16(34328), + 144: uint16(34346), + 145: uint16(34342), + 146: uint16(34335), + 147: uint16(34339), + 148: uint16(34332), + 149: uint16(34329), + 150: uint16(34343), + 151: uint16(34350), + 152: uint16(34337), + 153: uint16(34336), + 154: uint16(34345), + 155: uint16(34334), + 156: uint16(34341), + }, + 85: { + 0: uint16(34857), + 1: uint16(34845), + 2: uint16(34843), + 3: uint16(34848), + 4: uint16(34852), + 5: uint16(34844), + 6: uint16(34859), + 7: uint16(34890), + 8: uint16(35181), + 9: uint16(35177), + 10: uint16(35182), + 11: uint16(35179), + 12: uint16(35322), + 13: uint16(35705), + 14: uint16(35704), + 15: uint16(35653), + 16: uint16(35706), + 17: uint16(35707), + 18: uint16(36112), + 19: uint16(36116), + 20: uint16(36271), + 21: uint16(36494), + 22: uint16(36492), + 23: uint16(36702), + 24: uint16(36699), + 25: uint16(36701), + 26: uint16(37190), + 27: uint16(37188), + 28: uint16(37189), + 29: uint16(37305), + 30: uint16(37951), + 31: uint16(37947), + 32: uint16(37942), + 33: uint16(37929), + 34: uint16(37949), + 35: uint16(37948), + 36: uint16(37936), + 37: uint16(37945), + 38: uint16(37930), + 39: uint16(37943), + 40: uint16(37932), + 41: uint16(37952), + 42: uint16(37937), + 43: uint16(38373), + 44: uint16(38372), + 45: uint16(38371), + 46: uint16(38709), + 47: uint16(38714), + 48: uint16(38847), + 49: uint16(38881), + 50: uint16(39012), + 51: uint16(39113), + 52: uint16(39110), + 53: uint16(39104), + 54: uint16(39256), + 55: uint16(39254), + 56: uint16(39481), + 57: uint16(39485), + 58: uint16(39494), + 59: uint16(39492), + 60: uint16(39490), + 61: uint16(39489), + 62: uint16(39482), + 63: uint16(39487), + 64: uint16(39629), + 65: uint16(39701), + 66: uint16(39703), + 67: uint16(39704), + 68: uint16(39702), + 69: uint16(39738), + 70: uint16(39762), + 71: uint16(39979), + 72: uint16(39965), + 73: uint16(39964), + 74: uint16(39980), + 75: uint16(39971), + 76: uint16(39976), + 77: uint16(39977), + 78: uint16(39972), + 79: uint16(39969), + 80: uint16(40375), + 81: uint16(40374), + 82: uint16(40380), + 83: uint16(40385), + 84: uint16(40391), + 85: uint16(40394), + 86: uint16(40399), + 87: uint16(40382), + 88: uint16(40389), + 89: uint16(40387), + 90: uint16(40379), + 91: uint16(40373), + 92: uint16(40398), + 93: uint16(40377), + 94: uint16(40378), + 95: uint16(40364), + 96: uint16(40392), + 97: uint16(40369), + 98: uint16(40365), + 99: uint16(40396), + 100: uint16(40371), + 101: uint16(40397), + 102: uint16(40370), + 103: uint16(40570), + 104: uint16(40604), + 105: uint16(40683), + 106: uint16(40686), + 107: uint16(40685), + 108: uint16(40731), + 109: uint16(40728), + 110: uint16(40730), + 111: uint16(40753), + 112: uint16(40782), + 113: uint16(40805), + 114: uint16(40804), + 115: uint16(40850), + 116: uint16(20153), + 117: uint16(22214), + 118: uint16(22213), + 119: uint16(22219), + 120: uint16(22897), + 121: uint16(23371), + 122: uint16(23372), + 123: uint16(24021), + 124: uint16(24017), + 125: uint16(24306), + 126: uint16(25889), + 127: uint16(25888), + 128: uint16(25894), + 129: uint16(25890), + 130: uint16(27403), + 131: uint16(27400), + 132: uint16(27401), + 133: uint16(27661), + 134: uint16(28757), + 135: uint16(28758), + 136: uint16(28759), + 137: uint16(28754), + 138: uint16(29214), + 139: uint16(29215), + 140: uint16(29353), + 141: uint16(29567), + 142: uint16(29912), + 143: uint16(29909), + 144: uint16(29913), + 145: uint16(29911), + 146: uint16(30317), + 147: uint16(30381), + 148: uint16(31029), + 149: uint16(31156), + 150: uint16(31344), + 151: uint16(31345), + 152: uint16(31831), + 153: uint16(31836), + 154: uint16(31833), + 155: uint16(31835), + 156: uint16(31834), + }, + 86: { + 0: uint16(31988), + 1: uint16(31985), + 2: uint16(32401), + 3: uint16(32591), + 4: uint16(32647), + 5: uint16(33246), + 6: uint16(33387), + 7: uint16(34356), + 8: uint16(34357), + 9: uint16(34355), + 10: uint16(34348), + 11: uint16(34354), + 12: uint16(34358), + 13: uint16(34860), + 14: uint16(34856), + 15: uint16(34854), + 16: uint16(34858), + 17: uint16(34853), + 18: uint16(35185), + 19: uint16(35263), + 20: uint16(35262), + 21: uint16(35323), + 22: uint16(35710), + 23: uint16(35716), + 24: uint16(35714), + 25: uint16(35718), + 26: uint16(35717), + 27: uint16(35711), + 28: uint16(36117), + 29: uint16(36501), + 30: uint16(36500), + 31: uint16(36506), + 32: uint16(36498), + 33: uint16(36496), + 34: uint16(36502), + 35: uint16(36503), + 36: uint16(36704), + 37: uint16(36706), + 38: uint16(37191), + 39: uint16(37964), + 40: uint16(37968), + 41: uint16(37962), + 42: uint16(37963), + 43: uint16(37967), + 44: uint16(37959), + 45: uint16(37957), + 46: uint16(37960), + 47: uint16(37961), + 48: uint16(37958), + 49: uint16(38719), + 50: uint16(38883), + 51: uint16(39018), + 52: uint16(39017), + 53: uint16(39115), + 54: uint16(39252), + 55: uint16(39259), + 56: uint16(39502), + 57: uint16(39507), + 58: uint16(39508), + 59: uint16(39500), + 60: uint16(39503), + 61: uint16(39496), + 62: uint16(39498), + 63: uint16(39497), + 64: uint16(39506), + 65: uint16(39504), + 66: uint16(39632), + 67: uint16(39705), + 68: uint16(39723), + 69: uint16(39739), + 70: uint16(39766), + 71: uint16(39765), + 72: uint16(40006), + 73: uint16(40008), + 74: uint16(39999), + 75: uint16(40004), + 76: uint16(39993), + 77: uint16(39987), + 78: uint16(40001), + 79: uint16(39996), + 80: uint16(39991), + 81: uint16(39988), + 82: uint16(39986), + 83: uint16(39997), + 84: uint16(39990), + 85: uint16(40411), + 86: uint16(40402), + 87: uint16(40414), + 88: uint16(40410), + 89: uint16(40395), + 90: uint16(40400), + 91: uint16(40412), + 92: uint16(40401), + 93: uint16(40415), + 94: uint16(40425), + 95: uint16(40409), + 96: uint16(40408), + 97: uint16(40406), + 98: uint16(40437), + 99: uint16(40405), + 100: uint16(40413), + 101: uint16(40630), + 102: uint16(40688), + 103: uint16(40757), + 104: uint16(40755), + 105: uint16(40754), + 106: uint16(40770), + 107: uint16(40811), + 108: uint16(40853), + 109: uint16(40866), + 110: uint16(20797), + 111: uint16(21145), + 112: uint16(22760), + 113: uint16(22759), + 114: uint16(22898), + 115: uint16(23373), + 116: uint16(24024), + 117: uint16(34863), + 118: uint16(24399), + 119: uint16(25089), + 120: uint16(25091), + 121: uint16(25092), + 122: uint16(25897), + 123: uint16(25893), + 124: uint16(26006), + 125: uint16(26347), + 126: uint16(27409), + 127: uint16(27410), + 128: uint16(27407), + 129: uint16(27594), + 130: uint16(28763), + 131: uint16(28762), + 132: uint16(29218), + 133: uint16(29570), + 134: uint16(29569), + 135: uint16(29571), + 136: uint16(30320), + 137: uint16(30676), + 138: uint16(31847), + 139: uint16(31846), + 140: uint16(32405), + 141: uint16(33388), + 142: uint16(34362), + 143: uint16(34368), + 144: uint16(34361), + 145: uint16(34364), + 146: uint16(34353), + 147: uint16(34363), + 148: uint16(34366), + 149: uint16(34864), + 150: uint16(34866), + 151: uint16(34862), + 152: uint16(34867), + 153: uint16(35190), + 154: uint16(35188), + 155: uint16(35187), + 156: uint16(35326), + }, + 87: { + 0: uint16(35724), + 1: uint16(35726), + 2: uint16(35723), + 3: uint16(35720), + 4: uint16(35909), + 5: uint16(36121), + 6: uint16(36504), + 7: uint16(36708), + 8: uint16(36707), + 9: uint16(37308), + 10: uint16(37986), + 11: uint16(37973), + 12: uint16(37981), + 13: uint16(37975), + 14: uint16(37982), + 15: uint16(38852), + 16: uint16(38853), + 17: uint16(38912), + 18: uint16(39510), + 19: uint16(39513), + 20: uint16(39710), + 21: uint16(39711), + 22: uint16(39712), + 23: uint16(40018), + 24: uint16(40024), + 25: uint16(40016), + 26: uint16(40010), + 27: uint16(40013), + 28: uint16(40011), + 29: uint16(40021), + 30: uint16(40025), + 31: uint16(40012), + 32: uint16(40014), + 33: uint16(40443), + 34: uint16(40439), + 35: uint16(40431), + 36: uint16(40419), + 37: uint16(40427), + 38: uint16(40440), + 39: uint16(40420), + 40: uint16(40438), + 41: uint16(40417), + 42: uint16(40430), + 43: uint16(40422), + 44: uint16(40434), + 45: uint16(40432), + 46: uint16(40418), + 47: uint16(40428), + 48: uint16(40436), + 49: uint16(40435), + 50: uint16(40424), + 51: uint16(40429), + 52: uint16(40642), + 53: uint16(40656), + 54: uint16(40690), + 55: uint16(40691), + 56: uint16(40710), + 57: uint16(40732), + 58: uint16(40760), + 59: uint16(40759), + 60: uint16(40758), + 61: uint16(40771), + 62: uint16(40783), + 63: uint16(40817), + 64: uint16(40816), + 65: uint16(40814), + 66: uint16(40815), + 67: uint16(22227), + 68: uint16(22221), + 69: uint16(23374), + 70: uint16(23661), + 71: uint16(25901), + 72: uint16(26349), + 73: uint16(26350), + 74: uint16(27411), + 75: uint16(28767), + 76: uint16(28769), + 77: uint16(28765), + 78: uint16(28768), + 79: uint16(29219), + 80: uint16(29915), + 81: uint16(29925), + 82: uint16(30677), + 83: uint16(31032), + 84: uint16(31159), + 85: uint16(31158), + 86: uint16(31850), + 87: uint16(32407), + 88: uint16(32649), + 89: uint16(33389), + 90: uint16(34371), + 91: uint16(34872), + 92: uint16(34871), + 93: uint16(34869), + 94: uint16(34891), + 95: uint16(35732), + 96: uint16(35733), + 97: uint16(36510), + 98: uint16(36511), + 99: uint16(36512), + 100: uint16(36509), + 101: uint16(37310), + 102: uint16(37309), + 103: uint16(37314), + 104: uint16(37995), + 105: uint16(37992), + 106: uint16(37993), + 107: uint16(38629), + 108: uint16(38726), + 109: uint16(38723), + 110: uint16(38727), + 111: uint16(38855), + 112: uint16(38885), + 113: uint16(39518), + 114: uint16(39637), + 115: uint16(39769), + 116: uint16(40035), + 117: uint16(40039), + 118: uint16(40038), + 119: uint16(40034), + 120: uint16(40030), + 121: uint16(40032), + 122: uint16(40450), + 123: uint16(40446), + 124: uint16(40455), + 125: uint16(40451), + 126: uint16(40454), + 127: uint16(40453), + 128: uint16(40448), + 129: uint16(40449), + 130: uint16(40457), + 131: uint16(40447), + 132: uint16(40445), + 133: uint16(40452), + 134: uint16(40608), + 135: uint16(40734), + 136: uint16(40774), + 137: uint16(40820), + 138: uint16(40821), + 139: uint16(40822), + 140: uint16(22228), + 141: uint16(25902), + 142: uint16(26040), + 143: uint16(27416), + 144: uint16(27417), + 145: uint16(27415), + 146: uint16(27418), + 147: uint16(28770), + 148: uint16(29222), + 149: uint16(29354), + 150: uint16(30680), + 151: uint16(30681), + 152: uint16(31033), + 153: uint16(31849), + 154: uint16(31851), + 155: uint16(31990), + 156: uint16(32410), + }, + 88: { + 0: uint16(32408), + 1: uint16(32411), + 2: uint16(32409), + 3: uint16(33248), + 4: uint16(33249), + 5: uint16(34374), + 6: uint16(34375), + 7: uint16(34376), + 8: uint16(35193), + 9: uint16(35194), + 10: uint16(35196), + 11: uint16(35195), + 12: uint16(35327), + 13: uint16(35736), + 14: uint16(35737), + 15: uint16(36517), + 16: uint16(36516), + 17: uint16(36515), + 18: uint16(37998), + 19: uint16(37997), + 20: uint16(37999), + 21: uint16(38001), + 22: uint16(38003), + 23: uint16(38729), + 24: uint16(39026), + 25: uint16(39263), + 26: uint16(40040), + 27: uint16(40046), + 28: uint16(40045), + 29: uint16(40459), + 30: uint16(40461), + 31: uint16(40464), + 32: uint16(40463), + 33: uint16(40466), + 34: uint16(40465), + 35: uint16(40609), + 36: uint16(40693), + 37: uint16(40713), + 38: uint16(40775), + 39: uint16(40824), + 40: uint16(40827), + 41: uint16(40826), + 42: uint16(40825), + 43: uint16(22302), + 44: uint16(28774), + 45: uint16(31855), + 46: uint16(34876), + 47: uint16(36274), + 48: uint16(36518), + 49: uint16(37315), + 50: uint16(38004), + 51: uint16(38008), + 52: uint16(38006), + 53: uint16(38005), + 54: uint16(39520), + 55: uint16(40052), + 56: uint16(40051), + 57: uint16(40049), + 58: uint16(40053), + 59: uint16(40468), + 60: uint16(40467), + 61: uint16(40694), + 62: uint16(40714), + 63: uint16(40868), + 64: uint16(28776), + 65: uint16(28773), + 66: uint16(31991), + 67: uint16(34410), + 68: uint16(34878), + 69: uint16(34877), + 70: uint16(34879), + 71: uint16(35742), + 72: uint16(35996), + 73: uint16(36521), + 74: uint16(36553), + 75: uint16(38731), + 76: uint16(39027), + 77: uint16(39028), + 78: uint16(39116), + 79: uint16(39265), + 80: uint16(39339), + 81: uint16(39524), + 82: uint16(39526), + 83: uint16(39527), + 84: uint16(39716), + 85: uint16(40469), + 86: uint16(40471), + 87: uint16(40776), + 88: uint16(25095), + 89: uint16(27422), + 90: uint16(29223), + 91: uint16(34380), + 92: uint16(36520), + 93: uint16(38018), + 94: uint16(38016), + 95: uint16(38017), + 96: uint16(39529), + 97: uint16(39528), + 98: uint16(39726), + 99: uint16(40473), + 100: uint16(29225), + 101: uint16(34379), + 102: uint16(35743), + 103: uint16(38019), + 104: uint16(40057), + 105: uint16(40631), + 106: uint16(30325), + 107: uint16(39531), + 108: uint16(40058), + 109: uint16(40477), + 110: uint16(28777), + 111: uint16(28778), + 112: uint16(40612), + 113: uint16(40830), + 114: uint16(40777), + 115: uint16(40856), + 116: uint16(30849), + 117: uint16(37561), + 118: uint16(35023), + 119: uint16(22715), + 120: uint16(24658), + 121: uint16(31911), + 122: uint16(23290), + 123: uint16(9556), + 124: uint16(9574), + 125: uint16(9559), + 126: uint16(9568), + 127: uint16(9580), + 128: uint16(9571), + 129: uint16(9562), + 130: uint16(9577), + 131: uint16(9565), + 132: uint16(9554), + 133: uint16(9572), + 134: uint16(9557), + 135: uint16(9566), + 136: uint16(9578), + 137: uint16(9569), + 138: uint16(9560), + 139: uint16(9575), + 140: uint16(9563), + 141: uint16(9555), + 142: uint16(9573), + 143: uint16(9558), + 144: uint16(9567), + 145: uint16(9579), + 146: uint16(9570), + 147: uint16(9561), + 148: uint16(9576), + 149: uint16(9564), + 150: uint16(9553), + 151: uint16(9552), + 152: uint16(9581), + 153: uint16(9582), + 154: uint16(9584), + 155: uint16(9583), + 156: uint16(9619), + }, +} + +var _hkscs = [5172]uint16{ + 0: uint16(17392), + 1: uint16(19506), + 2: uint16(17923), + 3: uint16(17830), + 4: uint16(17784), + 5: uint16(29287), + 6: uint16(19831), + 7: uint16(17843), + 8: uint16(31921), + 9: uint16(19682), + 10: uint16(31941), + 11: uint16(15253), + 12: uint16(18230), + 13: uint16(18244), + 14: uint16(19527), + 15: uint16(19520), + 16: uint16(17087), + 17: uint16(13847), + 18: uint16(29522), + 19: uint16(28299), + 20: uint16(28882), + 21: uint16(19543), + 22: uint16(41809), + 23: uint16(18255), + 24: uint16(17882), + 25: uint16(19589), + 26: uint16(31852), + 27: uint16(19719), + 28: uint16(19108), + 29: uint16(18081), + 30: uint16(27427), + 31: uint16(29221), + 32: uint16(23124), + 33: uint16(6755), + 34: uint16(15878), + 35: uint16(16225), + 36: uint16(26189), + 37: uint16(22267), + 39: uint16(32149), + 40: uint16(22813), + 41: uint16(35769), + 42: uint16(15860), + 43: uint16(38708), + 44: uint16(31727), + 45: uint16(23515), + 46: uint16(7518), + 47: uint16(23204), + 48: uint16(13861), + 49: uint16(40624), + 50: uint16(23249), + 51: uint16(23479), + 52: uint16(23804), + 53: uint16(26478), + 54: uint16(34195), + 55: uint16(39237), + 56: uint16(29793), + 57: uint16(29853), + 58: uint16(14453), + 59: uint16(7507), + 60: uint16(13982), + 61: uint16(24609), + 62: uint16(16108), + 63: uint16(22750), + 64: uint16(15093), + 65: uint16(31484), + 66: uint16(40855), + 67: uint16(16737), + 68: uint16(35085), + 69: uint16(12778), + 70: uint16(2698), + 71: uint16(12894), + 72: uint16(17162), + 73: uint16(33924), + 74: uint16(40854), + 75: uint16(37935), + 76: uint16(18736), + 77: uint16(34323), + 78: uint16(22678), + 79: uint16(38730), + 80: uint16(37400), + 81: uint16(31184), + 82: uint16(31282), + 83: uint16(26208), + 84: uint16(27177), + 85: uint16(34973), + 86: uint16(29772), + 87: uint16(31685), + 88: uint16(26498), + 89: uint16(31276), + 90: uint16(21071), + 91: uint16(36934), + 92: uint16(13542), + 93: uint16(29636), + 94: uint16(23993), + 95: uint16(29894), + 96: uint16(40903), + 97: uint16(22451), + 98: uint16(18735), + 99: uint16(21580), + 100: uint16(16689), + 101: uint16(13966), + 102: uint16(22552), + 103: uint16(31346), + 104: uint16(31589), + 105: uint16(35727), + 106: uint16(18094), + 107: uint16(28296), + 108: uint16(16769), + 109: uint16(23961), + 110: uint16(31662), + 111: uint16(9404), + 112: uint16(40904), + 113: uint16(9409), + 114: uint16(9417), + 115: uint16(9420), + 116: uint16(40905), + 117: uint16(34052), + 118: uint16(13755), + 119: uint16(16564), + 120: uint16(40906), + 121: uint16(17633), + 122: uint16(44543), + 123: uint16(25281), + 124: uint16(28782), + 125: uint16(40907), + 157: uint16(12736), + 158: uint16(12737), + 159: uint16(12738), + 160: uint16(12739), + 161: uint16(12740), + 162: uint16(268), + 163: uint16(12741), + 164: uint16(209), + 165: uint16(205), + 166: uint16(12742), + 167: uint16(12743), + 168: uint16(203), + 169: uint16(8168), + 170: uint16(12744), + 171: uint16(202), + 172: uint16(12745), + 173: uint16(12746), + 174: uint16(12747), + 175: uint16(12748), + 176: uint16(270), + 177: uint16(12749), + 178: uint16(12750), + 179: uint16(256), + 180: uint16(193), + 181: uint16(461), + 182: uint16(192), + 183: uint16(274), + 184: uint16(201), + 185: uint16(282), + 186: uint16(200), + 187: uint16(332), + 188: uint16(211), + 189: uint16(465), + 190: uint16(210), + 191: uint16(56320), + 192: uint16(7870), + 193: uint16(56324), + 194: uint16(7872), + 195: uint16(202), + 196: uint16(257), + 197: uint16(225), + 198: uint16(462), + 199: uint16(224), + 200: uint16(593), + 201: uint16(275), + 202: uint16(233), + 203: uint16(283), + 204: uint16(232), + 205: uint16(299), + 206: uint16(237), + 207: uint16(464), + 208: uint16(236), + 209: uint16(333), + 210: uint16(243), + 211: uint16(466), + 212: uint16(242), + 213: uint16(363), + 214: uint16(250), + 215: uint16(468), + 216: uint16(249), + 217: uint16(470), + 218: uint16(472), + 219: uint16(474), + 220: uint16(476), + 221: uint16(252), + 222: uint16(56328), + 223: uint16(7871), + 224: uint16(56332), + 225: uint16(7873), + 226: uint16(234), + 227: uint16(609), + 228: uint16(9178), + 229: uint16(9179), + 314: uint16(41897), + 315: uint16(4421), + 317: uint16(25866), + 320: uint16(20029), + 321: uint16(28381), + 322: uint16(40270), + 323: uint16(37343), + 326: uint16(30517), + 327: uint16(25745), + 328: uint16(20250), + 329: uint16(20264), + 330: uint16(20392), + 331: uint16(20822), + 332: uint16(20852), + 333: uint16(20892), + 334: uint16(20964), + 335: uint16(21153), + 336: uint16(21160), + 337: uint16(21307), + 338: uint16(21326), + 339: uint16(21457), + 340: uint16(21464), + 341: uint16(22242), + 342: uint16(22768), + 343: uint16(22788), + 344: uint16(22791), + 345: uint16(22834), + 346: uint16(22836), + 347: uint16(23398), + 348: uint16(23454), + 349: uint16(23455), + 350: uint16(23706), + 351: uint16(24198), + 352: uint16(24635), + 353: uint16(25993), + 354: uint16(26622), + 355: uint16(26628), + 356: uint16(26725), + 357: uint16(27982), + 358: uint16(28860), + 359: uint16(30005), + 360: uint16(32420), + 361: uint16(32428), + 362: uint16(32442), + 363: uint16(32455), + 364: uint16(32463), + 365: uint16(32479), + 366: uint16(32518), + 367: uint16(32567), + 368: uint16(33402), + 369: uint16(33487), + 370: uint16(33647), + 371: uint16(35270), + 372: uint16(35774), + 373: uint16(35810), + 374: uint16(36710), + 375: uint16(36711), + 376: uint16(36718), + 377: uint16(29713), + 378: uint16(31996), + 379: uint16(32205), + 380: uint16(26950), + 381: uint16(31433), + 382: uint16(21031), + 387: uint16(37260), + 388: uint16(30904), + 389: uint16(37214), + 390: uint16(32956), + 392: uint16(36107), + 393: uint16(33014), + 394: uint16(2535), + 397: uint16(32927), + 398: uint16(40647), + 399: uint16(19661), + 400: uint16(40393), + 401: uint16(40460), + 402: uint16(19518), + 403: uint16(40438), + 404: uint16(28686), + 405: uint16(40458), + 406: uint16(41267), + 407: uint16(13761), + 409: uint16(28314), + 410: uint16(33342), + 411: uint16(29977), + 413: uint16(18705), + 414: uint16(39532), + 415: uint16(39567), + 416: uint16(40857), + 417: uint16(31111), + 418: uint16(33900), + 419: uint16(7626), + 420: uint16(1488), + 421: uint16(10982), + 422: uint16(20004), + 423: uint16(20097), + 424: uint16(20096), + 425: uint16(20103), + 426: uint16(20159), + 427: uint16(20203), + 428: uint16(20279), + 429: uint16(13388), + 430: uint16(20413), + 431: uint16(15944), + 432: uint16(20483), + 433: uint16(20616), + 434: uint16(13437), + 435: uint16(13459), + 436: uint16(13477), + 437: uint16(20870), + 438: uint16(22789), + 439: uint16(20955), + 440: uint16(20988), + 441: uint16(20997), + 442: uint16(20105), + 443: uint16(21113), + 444: uint16(21136), + 445: uint16(21287), + 446: uint16(13767), + 447: uint16(21417), + 448: uint16(13649), + 449: uint16(21424), + 450: uint16(13651), + 451: uint16(21442), + 452: uint16(21539), + 453: uint16(13677), + 454: uint16(13682), + 455: uint16(13953), + 456: uint16(21651), + 457: uint16(21667), + 458: uint16(21684), + 459: uint16(21689), + 460: uint16(21712), + 461: uint16(21743), + 462: uint16(21784), + 463: uint16(21795), + 464: uint16(21800), + 465: uint16(13720), + 466: uint16(21823), + 467: uint16(13733), + 468: uint16(13759), + 469: uint16(21975), + 470: uint16(13765), + 471: uint16(32132), + 472: uint16(21797), + 474: uint16(3138), + 475: uint16(3349), + 476: uint16(20779), + 477: uint16(21904), + 478: uint16(11462), + 479: uint16(14828), + 480: uint16(833), + 481: uint16(36422), + 482: uint16(19896), + 483: uint16(38117), + 484: uint16(16467), + 485: uint16(32958), + 486: uint16(30586), + 487: uint16(11320), + 488: uint16(14900), + 489: uint16(18389), + 490: uint16(33117), + 491: uint16(27122), + 492: uint16(19946), + 493: uint16(25821), + 494: uint16(3452), + 495: uint16(4020), + 496: uint16(3285), + 497: uint16(4340), + 498: uint16(25741), + 499: uint16(36478), + 500: uint16(3734), + 501: uint16(3083), + 502: uint16(3940), + 503: uint16(11433), + 504: uint16(33366), + 505: uint16(17619), + 507: uint16(3398), + 508: uint16(39501), + 509: uint16(33001), + 510: uint16(18420), + 511: uint16(20135), + 512: uint16(11458), + 513: uint16(39602), + 514: uint16(14951), + 515: uint16(38388), + 516: uint16(16365), + 517: uint16(13574), + 518: uint16(21191), + 519: uint16(38868), + 520: uint16(30920), + 521: uint16(11588), + 522: uint16(40302), + 523: uint16(38933), + 525: uint16(17369), + 526: uint16(24741), + 527: uint16(25780), + 528: uint16(21731), + 529: uint16(11596), + 530: uint16(11210), + 531: uint16(4215), + 532: uint16(14843), + 533: uint16(4207), + 534: uint16(26330), + 535: uint16(26390), + 536: uint16(31136), + 537: uint16(25834), + 538: uint16(20562), + 539: uint16(3139), + 540: uint16(36456), + 541: uint16(8609), + 542: uint16(35660), + 543: uint16(1841), + 545: uint16(18443), + 546: uint16(425), + 547: uint16(16378), + 548: uint16(22643), + 549: uint16(11661), + 551: uint16(17864), + 552: uint16(1276), + 553: uint16(24727), + 554: uint16(3916), + 555: uint16(3478), + 556: uint16(21881), + 557: uint16(16571), + 558: uint16(17338), + 560: uint16(19124), + 561: uint16(10854), + 562: uint16(4253), + 563: uint16(33194), + 564: uint16(39157), + 565: uint16(3484), + 566: uint16(25465), + 567: uint16(14846), + 568: uint16(10101), + 569: uint16(36288), + 570: uint16(22177), + 571: uint16(25724), + 572: uint16(15939), + 574: uint16(42497), + 575: uint16(3593), + 576: uint16(10959), + 577: uint16(11465), + 579: uint16(4296), + 580: uint16(14786), + 581: uint16(14738), + 582: uint16(14854), + 583: uint16(33435), + 584: uint16(13688), + 585: uint16(24137), + 586: uint16(8391), + 587: uint16(22098), + 588: uint16(3889), + 589: uint16(11442), + 590: uint16(38688), + 591: uint16(13500), + 592: uint16(27709), + 593: uint16(20027), + 596: uint16(30068), + 597: uint16(11915), + 598: uint16(8712), + 599: uint16(42587), + 600: uint16(36045), + 601: uint16(3706), + 602: uint16(3124), + 603: uint16(26652), + 604: uint16(32659), + 605: uint16(4303), + 606: uint16(10243), + 607: uint16(10553), + 608: uint16(13819), + 609: uint16(20963), + 610: uint16(3724), + 611: uint16(3981), + 612: uint16(3754), + 613: uint16(16275), + 614: uint16(3888), + 615: uint16(3399), + 616: uint16(4431), + 617: uint16(3660), + 619: uint16(3755), + 620: uint16(2985), + 621: uint16(3400), + 622: uint16(4288), + 623: uint16(4413), + 624: uint16(16377), + 625: uint16(9878), + 626: uint16(25650), + 627: uint16(4013), + 628: uint16(13300), + 629: uint16(30265), + 630: uint16(11214), + 631: uint16(3454), + 632: uint16(3455), + 633: uint16(11345), + 634: uint16(11349), + 635: uint16(14872), + 636: uint16(3736), + 637: uint16(4295), + 638: uint16(3886), + 639: uint16(42546), + 640: uint16(27472), + 641: uint16(36050), + 642: uint16(36249), + 643: uint16(36042), + 644: uint16(38314), + 645: uint16(21708), + 646: uint16(33476), + 647: uint16(21945), + 649: uint16(40643), + 650: uint16(39974), + 651: uint16(39606), + 652: uint16(30558), + 653: uint16(11758), + 654: uint16(28992), + 655: uint16(33133), + 656: uint16(33004), + 657: uint16(23580), + 658: uint16(25970), + 659: uint16(33076), + 660: uint16(14231), + 661: uint16(21343), + 662: uint16(32957), + 663: uint16(37302), + 664: uint16(3834), + 665: uint16(3599), + 666: uint16(3703), + 667: uint16(3835), + 668: uint16(13789), + 669: uint16(19947), + 670: uint16(13833), + 671: uint16(3286), + 672: uint16(22191), + 673: uint16(10165), + 674: uint16(4297), + 675: uint16(3600), + 676: uint16(3704), + 677: uint16(4216), + 678: uint16(4424), + 679: uint16(33287), + 680: uint16(5205), + 681: uint16(3705), + 682: uint16(20048), + 683: uint16(11684), + 684: uint16(23124), + 685: uint16(4125), + 686: uint16(4126), + 687: uint16(4341), + 688: uint16(4342), + 689: uint16(22428), + 690: uint16(3601), + 691: uint16(30356), + 692: uint16(33485), + 693: uint16(4021), + 694: uint16(3707), + 695: uint16(20862), + 696: uint16(14083), + 697: uint16(4022), + 698: uint16(4480), + 699: uint16(21208), + 700: uint16(41661), + 701: uint16(18906), + 702: uint16(6202), + 703: uint16(16759), + 704: uint16(33404), + 705: uint16(22681), + 706: uint16(21096), + 707: uint16(13850), + 708: uint16(22333), + 709: uint16(31666), + 710: uint16(23400), + 711: uint16(18432), + 712: uint16(19244), + 713: uint16(40743), + 714: uint16(18919), + 715: uint16(39967), + 716: uint16(39821), + 717: uint16(23412), + 718: uint16(12605), + 719: uint16(22011), + 720: uint16(13810), + 721: uint16(22153), + 722: uint16(20008), + 723: uint16(22786), + 724: uint16(7105), + 725: uint16(63608), + 726: uint16(38737), + 727: uint16(134), + 728: uint16(20059), + 729: uint16(20155), + 730: uint16(13630), + 731: uint16(23587), + 732: uint16(24401), + 733: uint16(24516), + 734: uint16(14586), + 735: uint16(25164), + 736: uint16(25909), + 737: uint16(27514), + 738: uint16(27701), + 739: uint16(27706), + 740: uint16(28780), + 741: uint16(29227), + 742: uint16(20012), + 743: uint16(29357), + 744: uint16(18665), + 745: uint16(32594), + 746: uint16(31035), + 747: uint16(31993), + 748: uint16(32595), + 749: uint16(25194), + 750: uint16(13505), + 752: uint16(25419), + 753: uint16(32770), + 754: uint16(32896), + 755: uint16(26130), + 756: uint16(26961), + 757: uint16(21341), + 758: uint16(34916), + 759: uint16(35265), + 760: uint16(30898), + 761: uint16(35744), + 762: uint16(36125), + 763: uint16(38021), + 764: uint16(38264), + 765: uint16(38271), + 766: uint16(38376), + 767: uint16(36367), + 768: uint16(38886), + 769: uint16(39029), + 770: uint16(39118), + 771: uint16(39134), + 772: uint16(39267), + 773: uint16(38928), + 774: uint16(40060), + 775: uint16(40479), + 776: uint16(40644), + 777: uint16(27503), + 778: uint16(63751), + 779: uint16(20023), + 780: uint16(135), + 781: uint16(38429), + 782: uint16(25143), + 783: uint16(38050), + 785: uint16(20539), + 786: uint16(28158), + 787: uint16(40051), + 788: uint16(40870), + 789: uint16(15817), + 790: uint16(34959), + 791: uint16(16718), + 792: uint16(28791), + 793: uint16(23797), + 794: uint16(19232), + 795: uint16(20941), + 796: uint16(13657), + 797: uint16(23856), + 798: uint16(24866), + 799: uint16(35378), + 800: uint16(36775), + 801: uint16(37366), + 802: uint16(29073), + 803: uint16(26393), + 804: uint16(29626), + 805: uint16(12929), + 806: uint16(41223), + 807: uint16(15499), + 808: uint16(6528), + 809: uint16(19216), + 810: uint16(30948), + 811: uint16(29698), + 812: uint16(20910), + 813: uint16(34575), + 814: uint16(16393), + 815: uint16(27235), + 816: uint16(41658), + 817: uint16(16931), + 818: uint16(34319), + 819: uint16(2671), + 820: uint16(31274), + 821: uint16(39239), + 822: uint16(35562), + 823: uint16(38741), + 824: uint16(28749), + 825: uint16(21284), + 826: uint16(8318), + 827: uint16(37876), + 828: uint16(30425), + 829: uint16(35299), + 830: uint16(40871), + 831: uint16(30685), + 832: uint16(20131), + 833: uint16(20464), + 834: uint16(20668), + 835: uint16(20015), + 836: uint16(20247), + 837: uint16(40872), + 838: uint16(21556), + 839: uint16(32139), + 840: uint16(22674), + 841: uint16(22736), + 842: uint16(7606), + 843: uint16(24210), + 844: uint16(24217), + 845: uint16(24514), + 846: uint16(10002), + 847: uint16(25995), + 848: uint16(13305), + 849: uint16(26905), + 850: uint16(27203), + 851: uint16(15459), + 852: uint16(27903), + 854: uint16(29184), + 855: uint16(17669), + 856: uint16(29580), + 857: uint16(16091), + 858: uint16(18963), + 859: uint16(23317), + 860: uint16(29881), + 861: uint16(35715), + 862: uint16(23716), + 863: uint16(22165), + 864: uint16(31379), + 865: uint16(31724), + 866: uint16(31939), + 867: uint16(32364), + 868: uint16(33528), + 869: uint16(34199), + 870: uint16(40873), + 871: uint16(34960), + 872: uint16(40874), + 873: uint16(36537), + 874: uint16(40875), + 875: uint16(36815), + 876: uint16(34143), + 877: uint16(39392), + 878: uint16(37409), + 879: uint16(40876), + 880: uint16(36281), + 881: uint16(5183), + 882: uint16(16497), + 883: uint16(17058), + 884: uint16(23066), + 888: uint16(39016), + 889: uint16(26475), + 890: uint16(17014), + 891: uint16(22333), + 893: uint16(34262), + 894: uint16(18811), + 895: uint16(33471), + 896: uint16(28941), + 897: uint16(19585), + 898: uint16(28020), + 899: uint16(23931), + 900: uint16(27413), + 901: uint16(28606), + 902: uint16(40877), + 903: uint16(40878), + 904: uint16(23446), + 905: uint16(40879), + 906: uint16(26343), + 907: uint16(32347), + 908: uint16(28247), + 909: uint16(31178), + 910: uint16(15752), + 911: uint16(17603), + 912: uint16(12886), + 913: uint16(10134), + 914: uint16(17306), + 915: uint16(17718), + 917: uint16(23765), + 918: uint16(15130), + 919: uint16(35577), + 920: uint16(23672), + 921: uint16(15634), + 922: uint16(13649), + 923: uint16(23928), + 924: uint16(40882), + 925: uint16(29015), + 926: uint16(17752), + 927: uint16(16620), + 928: uint16(7715), + 929: uint16(19575), + 930: uint16(14712), + 931: uint16(13386), + 932: uint16(420), + 933: uint16(27713), + 934: uint16(35532), + 935: uint16(20404), + 936: uint16(569), + 937: uint16(22975), + 938: uint16(33132), + 939: uint16(38998), + 940: uint16(39162), + 941: uint16(24379), + 942: uint16(2975), + 944: uint16(8641), + 945: uint16(35181), + 946: uint16(16642), + 947: uint16(18107), + 948: uint16(36985), + 949: uint16(16135), + 950: uint16(40883), + 951: uint16(41397), + 952: uint16(16632), + 953: uint16(14294), + 954: uint16(18167), + 955: uint16(27718), + 956: uint16(16764), + 957: uint16(34482), + 958: uint16(29695), + 959: uint16(17773), + 960: uint16(14548), + 961: uint16(21658), + 962: uint16(17761), + 963: uint16(17691), + 964: uint16(19849), + 965: uint16(19579), + 966: uint16(19830), + 967: uint16(17898), + 968: uint16(16328), + 969: uint16(19215), + 970: uint16(13921), + 971: uint16(17630), + 972: uint16(17597), + 973: uint16(16877), + 974: uint16(23870), + 975: uint16(23880), + 976: uint16(23894), + 977: uint16(15868), + 978: uint16(14351), + 979: uint16(23972), + 980: uint16(23993), + 981: uint16(14368), + 982: uint16(14392), + 983: uint16(24130), + 984: uint16(24253), + 985: uint16(24357), + 986: uint16(24451), + 987: uint16(14600), + 988: uint16(14612), + 989: uint16(14655), + 990: uint16(14669), + 991: uint16(24791), + 992: uint16(24893), + 993: uint16(23781), + 994: uint16(14729), + 995: uint16(25015), + 996: uint16(25017), + 997: uint16(25039), + 998: uint16(14776), + 999: uint16(25132), + 1000: uint16(25232), + 1001: uint16(25317), + 1002: uint16(25368), + 1003: uint16(14840), + 1004: uint16(22193), + 1005: uint16(14851), + 1006: uint16(25570), + 1007: uint16(25595), + 1008: uint16(25607), + 1009: uint16(25690), + 1010: uint16(14923), + 1011: uint16(25792), + 1012: uint16(23829), + 1013: uint16(22049), + 1014: uint16(40863), + 1015: uint16(14999), + 1016: uint16(25990), + 1017: uint16(15037), + 1018: uint16(26111), + 1019: uint16(26195), + 1020: uint16(15090), + 1021: uint16(26258), + 1022: uint16(15138), + 1023: uint16(26390), + 1024: uint16(15170), + 1025: uint16(26532), + 1026: uint16(26624), + 1027: uint16(15192), + 1028: uint16(26698), + 1029: uint16(26756), + 1030: uint16(15218), + 1031: uint16(15217), + 1032: uint16(15227), + 1033: uint16(26889), + 1034: uint16(26947), + 1035: uint16(29276), + 1036: uint16(26980), + 1037: uint16(27039), + 1038: uint16(27013), + 1039: uint16(15292), + 1040: uint16(27094), + 1041: uint16(15325), + 1042: uint16(27237), + 1043: uint16(27252), + 1044: uint16(27249), + 1045: uint16(27266), + 1046: uint16(15340), + 1047: uint16(27289), + 1048: uint16(15346), + 1049: uint16(27307), + 1050: uint16(27317), + 1051: uint16(27348), + 1052: uint16(27382), + 1053: uint16(27521), + 1054: uint16(27585), + 1055: uint16(27626), + 1056: uint16(27765), + 1057: uint16(27818), + 1058: uint16(15563), + 1059: uint16(27906), + 1060: uint16(27910), + 1061: uint16(27942), + 1062: uint16(28033), + 1063: uint16(15599), + 1064: uint16(28068), + 1065: uint16(28081), + 1066: uint16(28181), + 1067: uint16(28184), + 1068: uint16(28201), + 1069: uint16(28294), + 1070: uint16(35264), + 1071: uint16(28347), + 1072: uint16(28386), + 1073: uint16(28378), + 1074: uint16(40831), + 1075: uint16(28392), + 1076: uint16(28393), + 1077: uint16(28452), + 1078: uint16(28468), + 1079: uint16(15686), + 1080: uint16(16193), + 1081: uint16(28545), + 1082: uint16(28606), + 1083: uint16(15722), + 1084: uint16(15733), + 1085: uint16(29111), + 1086: uint16(23705), + 1087: uint16(15754), + 1088: uint16(28716), + 1089: uint16(15761), + 1090: uint16(28752), + 1091: uint16(28756), + 1092: uint16(28783), + 1093: uint16(28799), + 1094: uint16(28809), + 1095: uint16(805), + 1096: uint16(17345), + 1097: uint16(13809), + 1098: uint16(3800), + 1099: uint16(16087), + 1100: uint16(22462), + 1101: uint16(28371), + 1102: uint16(28990), + 1103: uint16(22496), + 1104: uint16(13902), + 1105: uint16(27042), + 1106: uint16(35817), + 1107: uint16(23412), + 1108: uint16(31305), + 1109: uint16(22753), + 1110: uint16(38105), + 1111: uint16(31333), + 1112: uint16(31357), + 1113: uint16(22956), + 1114: uint16(31419), + 1115: uint16(31408), + 1116: uint16(31426), + 1117: uint16(31427), + 1118: uint16(29137), + 1119: uint16(25741), + 1120: uint16(16842), + 1121: uint16(31450), + 1122: uint16(31453), + 1123: uint16(31466), + 1124: uint16(16879), + 1125: uint16(21682), + 1126: uint16(23553), + 1127: uint16(31499), + 1128: uint16(31573), + 1129: uint16(31529), + 1130: uint16(21262), + 1131: uint16(23806), + 1132: uint16(31650), + 1133: uint16(31599), + 1134: uint16(33692), + 1135: uint16(23476), + 1136: uint16(27775), + 1137: uint16(31696), + 1138: uint16(33825), + 1139: uint16(31634), + 1141: uint16(23840), + 1142: uint16(15789), + 1143: uint16(23653), + 1144: uint16(33938), + 1145: uint16(31738), + 1147: uint16(31797), + 1148: uint16(23745), + 1149: uint16(31812), + 1150: uint16(31875), + 1151: uint16(18562), + 1152: uint16(31910), + 1153: uint16(26237), + 1154: uint16(17784), + 1155: uint16(31945), + 1156: uint16(31943), + 1157: uint16(31974), + 1158: uint16(31860), + 1159: uint16(31987), + 1160: uint16(31989), + 1162: uint16(32359), + 1163: uint16(17693), + 1164: uint16(28228), + 1165: uint16(32093), + 1166: uint16(28374), + 1167: uint16(29837), + 1168: uint16(32137), + 1169: uint16(32171), + 1170: uint16(28981), + 1171: uint16(32179), + 1173: uint16(16471), + 1174: uint16(24617), + 1175: uint16(32228), + 1176: uint16(15635), + 1177: uint16(32245), + 1178: uint16(6137), + 1179: uint16(32229), + 1180: uint16(33645), + 1182: uint16(24865), + 1183: uint16(24922), + 1184: uint16(32366), + 1185: uint16(32402), + 1186: uint16(17195), + 1187: uint16(37996), + 1188: uint16(32295), + 1189: uint16(32576), + 1190: uint16(32577), + 1191: uint16(32583), + 1192: uint16(31030), + 1193: uint16(25296), + 1194: uint16(39393), + 1195: uint16(32663), + 1196: uint16(25425), + 1197: uint16(32675), + 1198: uint16(5729), + 1199: uint16(104), + 1200: uint16(17756), + 1201: uint16(14182), + 1202: uint16(17667), + 1203: uint16(33594), + 1204: uint16(32762), + 1205: uint16(25737), + 1207: uint16(32776), + 1208: uint16(32797), + 1210: uint16(32815), + 1211: uint16(41095), + 1212: uint16(27843), + 1213: uint16(32827), + 1214: uint16(32828), + 1215: uint16(32865), + 1216: uint16(10004), + 1217: uint16(18825), + 1218: uint16(26150), + 1219: uint16(15843), + 1220: uint16(26344), + 1221: uint16(26405), + 1222: uint16(32935), + 1223: uint16(35400), + 1224: uint16(33031), + 1225: uint16(33050), + 1226: uint16(22704), + 1227: uint16(9974), + 1228: uint16(27775), + 1229: uint16(25752), + 1230: uint16(20408), + 1231: uint16(25831), + 1232: uint16(5258), + 1233: uint16(33304), + 1234: uint16(6238), + 1235: uint16(27219), + 1236: uint16(19045), + 1237: uint16(19093), + 1238: uint16(17530), + 1239: uint16(33321), + 1240: uint16(2829), + 1241: uint16(27218), + 1242: uint16(15742), + 1243: uint16(20473), + 1244: uint16(5373), + 1245: uint16(34018), + 1246: uint16(33634), + 1247: uint16(27402), + 1248: uint16(18855), + 1249: uint16(13616), + 1250: uint16(6003), + 1251: uint16(15864), + 1252: uint16(33450), + 1253: uint16(26907), + 1254: uint16(63892), + 1255: uint16(16859), + 1256: uint16(34123), + 1257: uint16(33488), + 1258: uint16(33562), + 1259: uint16(3606), + 1260: uint16(6068), + 1261: uint16(14017), + 1262: uint16(12669), + 1263: uint16(13658), + 1264: uint16(33403), + 1265: uint16(33506), + 1266: uint16(33560), + 1267: uint16(16011), + 1268: uint16(28067), + 1269: uint16(27397), + 1270: uint16(27543), + 1271: uint16(13774), + 1272: uint16(15807), + 1273: uint16(33565), + 1274: uint16(21996), + 1275: uint16(33669), + 1276: uint16(17675), + 1277: uint16(28069), + 1278: uint16(33708), + 1280: uint16(33747), + 1281: uint16(13438), + 1282: uint16(28372), + 1283: uint16(27223), + 1284: uint16(34138), + 1285: uint16(13462), + 1286: uint16(28226), + 1287: uint16(12015), + 1288: uint16(33880), + 1289: uint16(23524), + 1290: uint16(33905), + 1291: uint16(15827), + 1292: uint16(17636), + 1293: uint16(27303), + 1294: uint16(33866), + 1295: uint16(15541), + 1296: uint16(31064), + 1298: uint16(27542), + 1299: uint16(28279), + 1300: uint16(28227), + 1301: uint16(34014), + 1303: uint16(33681), + 1304: uint16(17568), + 1305: uint16(33939), + 1306: uint16(34020), + 1307: uint16(23697), + 1308: uint16(16960), + 1309: uint16(23744), + 1310: uint16(17731), + 1311: uint16(34100), + 1312: uint16(23282), + 1313: uint16(28313), + 1314: uint16(17703), + 1315: uint16(34163), + 1316: uint16(17686), + 1317: uint16(26559), + 1318: uint16(34326), + 1319: uint16(34341), + 1320: uint16(34363), + 1321: uint16(34241), + 1322: uint16(28808), + 1323: uint16(34306), + 1324: uint16(5506), + 1325: uint16(28877), + 1326: uint16(63922), + 1327: uint16(17770), + 1328: uint16(34344), + 1329: uint16(13896), + 1330: uint16(6306), + 1331: uint16(21495), + 1332: uint16(29594), + 1333: uint16(34430), + 1334: uint16(34673), + 1335: uint16(41208), + 1336: uint16(34798), + 1337: uint16(11303), + 1338: uint16(34737), + 1339: uint16(34778), + 1340: uint16(34831), + 1341: uint16(22113), + 1342: uint16(34412), + 1343: uint16(26710), + 1344: uint16(17935), + 1345: uint16(34885), + 1346: uint16(34886), + 1347: uint16(30176), + 1348: uint16(15801), + 1349: uint16(30180), + 1350: uint16(34910), + 1351: uint16(34972), + 1352: uint16(18011), + 1353: uint16(34996), + 1354: uint16(34997), + 1355: uint16(25537), + 1356: uint16(35013), + 1357: uint16(30583), + 1358: uint16(30479), + 1359: uint16(35207), + 1360: uint16(35210), + 1363: uint16(35239), + 1364: uint16(35260), + 1365: uint16(35365), + 1366: uint16(35303), + 1367: uint16(31012), + 1368: uint16(31421), + 1369: uint16(35484), + 1370: uint16(30611), + 1371: uint16(37374), + 1372: uint16(35472), + 1373: uint16(31321), + 1374: uint16(31465), + 1375: uint16(31546), + 1376: uint16(16271), + 1377: uint16(18195), + 1378: uint16(31544), + 1379: uint16(29052), + 1380: uint16(35596), + 1381: uint16(35615), + 1382: uint16(21552), + 1383: uint16(21861), + 1384: uint16(35647), + 1385: uint16(35660), + 1386: uint16(35661), + 1387: uint16(35497), + 1388: uint16(19066), + 1389: uint16(35728), + 1390: uint16(35739), + 1391: uint16(35503), + 1392: uint16(5855), + 1393: uint16(17941), + 1394: uint16(34895), + 1395: uint16(35995), + 1396: uint16(32084), + 1397: uint16(32143), + 1398: uint16(63956), + 1399: uint16(14117), + 1400: uint16(32083), + 1401: uint16(36054), + 1402: uint16(32152), + 1403: uint16(32189), + 1404: uint16(36114), + 1405: uint16(36099), + 1406: uint16(6416), + 1407: uint16(36059), + 1408: uint16(28764), + 1409: uint16(36113), + 1410: uint16(19657), + 1411: uint16(16080), + 1413: uint16(36265), + 1414: uint16(32770), + 1415: uint16(4116), + 1416: uint16(18826), + 1417: uint16(15228), + 1418: uint16(33212), + 1419: uint16(28940), + 1420: uint16(31463), + 1421: uint16(36525), + 1422: uint16(36534), + 1423: uint16(36547), + 1424: uint16(37588), + 1425: uint16(36633), + 1426: uint16(36653), + 1427: uint16(33637), + 1428: uint16(33810), + 1429: uint16(36773), + 1430: uint16(37635), + 1431: uint16(41631), + 1432: uint16(2640), + 1433: uint16(36787), + 1434: uint16(18730), + 1435: uint16(35294), + 1436: uint16(34109), + 1437: uint16(15803), + 1438: uint16(24312), + 1439: uint16(12898), + 1440: uint16(36857), + 1441: uint16(40980), + 1442: uint16(34492), + 1443: uint16(34049), + 1444: uint16(8997), + 1445: uint16(14720), + 1446: uint16(28375), + 1447: uint16(36919), + 1448: uint16(34108), + 1449: uint16(31422), + 1450: uint16(36961), + 1451: uint16(34156), + 1452: uint16(34315), + 1453: uint16(37032), + 1454: uint16(34579), + 1455: uint16(37060), + 1456: uint16(34534), + 1457: uint16(37038), + 1459: uint16(37223), + 1460: uint16(15088), + 1461: uint16(37289), + 1462: uint16(37316), + 1463: uint16(31916), + 1464: uint16(35123), + 1465: uint16(7817), + 1466: uint16(37390), + 1467: uint16(27807), + 1468: uint16(37441), + 1469: uint16(37474), + 1470: uint16(21945), + 1472: uint16(35526), + 1473: uint16(15515), + 1474: uint16(35596), + 1475: uint16(21979), + 1476: uint16(3377), + 1477: uint16(37676), + 1478: uint16(37739), + 1479: uint16(35553), + 1480: uint16(35819), + 1481: uint16(28815), + 1482: uint16(23235), + 1483: uint16(35554), + 1484: uint16(35557), + 1485: uint16(18789), + 1486: uint16(37444), + 1487: uint16(35820), + 1488: uint16(35897), + 1489: uint16(35839), + 1490: uint16(37747), + 1491: uint16(37979), + 1492: uint16(36540), + 1493: uint16(38277), + 1494: uint16(38310), + 1495: uint16(37926), + 1496: uint16(38304), + 1497: uint16(28662), + 1498: uint16(17081), + 1499: uint16(9850), + 1500: uint16(34520), + 1501: uint16(4732), + 1502: uint16(15918), + 1503: uint16(18911), + 1504: uint16(27676), + 1505: uint16(38523), + 1506: uint16(38550), + 1507: uint16(16748), + 1508: uint16(38563), + 1509: uint16(28373), + 1510: uint16(25050), + 1511: uint16(38582), + 1512: uint16(30965), + 1513: uint16(35552), + 1514: uint16(38589), + 1515: uint16(21452), + 1516: uint16(18849), + 1517: uint16(27832), + 1518: uint16(628), + 1519: uint16(25616), + 1520: uint16(37039), + 1521: uint16(37093), + 1522: uint16(19153), + 1523: uint16(6421), + 1524: uint16(13066), + 1525: uint16(38705), + 1526: uint16(34370), + 1527: uint16(38710), + 1528: uint16(18959), + 1529: uint16(17725), + 1530: uint16(17797), + 1531: uint16(19177), + 1532: uint16(28789), + 1533: uint16(23361), + 1534: uint16(38683), + 1536: uint16(37333), + 1537: uint16(38743), + 1538: uint16(23370), + 1539: uint16(37355), + 1540: uint16(38751), + 1541: uint16(37925), + 1542: uint16(20688), + 1543: uint16(12471), + 1544: uint16(12476), + 1545: uint16(38793), + 1546: uint16(38815), + 1547: uint16(38833), + 1548: uint16(38846), + 1549: uint16(38848), + 1550: uint16(38866), + 1551: uint16(38880), + 1552: uint16(21612), + 1553: uint16(38894), + 1554: uint16(29724), + 1555: uint16(37939), + 1557: uint16(38901), + 1558: uint16(37917), + 1559: uint16(31098), + 1560: uint16(19153), + 1561: uint16(38964), + 1562: uint16(38963), + 1563: uint16(38987), + 1564: uint16(39014), + 1565: uint16(15118), + 1566: uint16(29045), + 1567: uint16(15697), + 1568: uint16(1584), + 1569: uint16(16732), + 1570: uint16(22278), + 1571: uint16(39114), + 1572: uint16(39095), + 1573: uint16(39112), + 1574: uint16(39111), + 1575: uint16(19199), + 1576: uint16(27943), + 1577: uint16(5843), + 1578: uint16(21936), + 1579: uint16(39137), + 1580: uint16(39142), + 1581: uint16(39148), + 1582: uint16(37752), + 1583: uint16(39225), + 1584: uint16(18985), + 1585: uint16(19314), + 1586: uint16(38999), + 1587: uint16(39173), + 1588: uint16(39413), + 1589: uint16(39436), + 1590: uint16(39483), + 1591: uint16(39440), + 1592: uint16(39512), + 1593: uint16(22309), + 1594: uint16(14020), + 1595: uint16(37041), + 1596: uint16(39893), + 1597: uint16(39648), + 1598: uint16(39650), + 1599: uint16(39685), + 1600: uint16(39668), + 1601: uint16(19470), + 1602: uint16(39700), + 1603: uint16(39725), + 1604: uint16(34304), + 1605: uint16(20532), + 1606: uint16(39732), + 1607: uint16(27048), + 1608: uint16(14531), + 1609: uint16(12413), + 1610: uint16(39760), + 1611: uint16(39744), + 1612: uint16(40254), + 1613: uint16(23109), + 1614: uint16(6243), + 1615: uint16(39822), + 1616: uint16(16971), + 1617: uint16(39938), + 1618: uint16(39935), + 1619: uint16(39948), + 1620: uint16(40552), + 1621: uint16(40404), + 1622: uint16(40887), + 1623: uint16(41362), + 1624: uint16(41387), + 1625: uint16(41185), + 1626: uint16(41251), + 1627: uint16(41439), + 1628: uint16(40318), + 1629: uint16(40323), + 1630: uint16(41268), + 1631: uint16(40462), + 1632: uint16(26760), + 1633: uint16(40388), + 1634: uint16(8539), + 1635: uint16(41363), + 1636: uint16(41504), + 1637: uint16(6459), + 1638: uint16(41523), + 1639: uint16(40249), + 1640: uint16(41145), + 1641: uint16(41652), + 1642: uint16(40592), + 1643: uint16(40597), + 1644: uint16(40606), + 1645: uint16(40610), + 1646: uint16(19764), + 1647: uint16(40618), + 1648: uint16(40623), + 1649: uint16(17252), + 1650: uint16(40641), + 1651: uint16(15200), + 1652: uint16(14821), + 1653: uint16(15645), + 1654: uint16(20274), + 1655: uint16(14270), + 1656: uint16(35883), + 1657: uint16(40706), + 1658: uint16(40712), + 1659: uint16(19350), + 1660: uint16(37924), + 1661: uint16(28066), + 1662: uint16(40727), + 1664: uint16(40761), + 1665: uint16(22175), + 1666: uint16(22154), + 1667: uint16(40773), + 1668: uint16(39352), + 1669: uint16(37003), + 1670: uint16(38898), + 1671: uint16(33919), + 1672: uint16(40802), + 1673: uint16(40809), + 1674: uint16(31452), + 1675: uint16(40846), + 1676: uint16(29206), + 1677: uint16(19390), + 1678: uint16(18805), + 1679: uint16(18875), + 1680: uint16(29047), + 1681: uint16(18936), + 1682: uint16(17224), + 1683: uint16(19025), + 1684: uint16(29598), + 1685: uint16(35802), + 1686: uint16(6394), + 1687: uint16(31135), + 1688: uint16(35198), + 1689: uint16(36406), + 1690: uint16(37737), + 1691: uint16(37875), + 1692: uint16(35396), + 1693: uint16(37612), + 1694: uint16(37761), + 1695: uint16(37835), + 1696: uint16(35180), + 1697: uint16(17593), + 1698: uint16(29207), + 1699: uint16(16107), + 1700: uint16(30578), + 1701: uint16(31299), + 1702: uint16(28880), + 1703: uint16(17523), + 1704: uint16(17400), + 1705: uint16(29054), + 1706: uint16(6127), + 1707: uint16(28835), + 1708: uint16(6334), + 1709: uint16(13721), + 1710: uint16(16071), + 1711: uint16(6277), + 1712: uint16(21551), + 1713: uint16(6136), + 1714: uint16(14114), + 1715: uint16(5883), + 1716: uint16(6201), + 1717: uint16(14049), + 1718: uint16(6004), + 1719: uint16(6353), + 1720: uint16(24395), + 1721: uint16(14115), + 1722: uint16(5824), + 1723: uint16(22363), + 1724: uint16(18981), + 1725: uint16(5118), + 1726: uint16(4776), + 1727: uint16(5062), + 1728: uint16(5302), + 1729: uint16(34051), + 1730: uint16(13990), + 1732: uint16(33877), + 1733: uint16(18836), + 1734: uint16(29029), + 1735: uint16(15921), + 1736: uint16(21852), + 1737: uint16(16123), + 1738: uint16(28754), + 1739: uint16(17652), + 1740: uint16(14062), + 1741: uint16(39325), + 1742: uint16(28454), + 1743: uint16(26617), + 1744: uint16(14131), + 1745: uint16(15381), + 1746: uint16(15847), + 1747: uint16(22636), + 1748: uint16(6434), + 1749: uint16(26640), + 1750: uint16(16471), + 1751: uint16(14143), + 1752: uint16(16609), + 1753: uint16(16523), + 1754: uint16(16655), + 1755: uint16(27681), + 1756: uint16(21707), + 1757: uint16(22174), + 1758: uint16(26289), + 1759: uint16(22162), + 1760: uint16(4063), + 1761: uint16(2984), + 1762: uint16(3597), + 1763: uint16(37830), + 1764: uint16(35603), + 1765: uint16(37788), + 1766: uint16(20216), + 1767: uint16(20779), + 1768: uint16(14361), + 1769: uint16(17462), + 1770: uint16(20156), + 1771: uint16(1125), + 1772: uint16(895), + 1773: uint16(20299), + 1774: uint16(20362), + 1775: uint16(22097), + 1776: uint16(23144), + 1777: uint16(427), + 1778: uint16(971), + 1779: uint16(14745), + 1780: uint16(778), + 1781: uint16(1044), + 1782: uint16(13365), + 1783: uint16(20265), + 1784: uint16(704), + 1785: uint16(36531), + 1786: uint16(629), + 1787: uint16(35546), + 1788: uint16(524), + 1789: uint16(20120), + 1790: uint16(20685), + 1791: uint16(20749), + 1792: uint16(20386), + 1793: uint16(20227), + 1794: uint16(18958), + 1795: uint16(16010), + 1796: uint16(20290), + 1797: uint16(20526), + 1798: uint16(20588), + 1799: uint16(20609), + 1800: uint16(20428), + 1801: uint16(20453), + 1802: uint16(20568), + 1803: uint16(20732), + 1808: uint16(28278), + 1809: uint16(13717), + 1810: uint16(15929), + 1811: uint16(16063), + 1812: uint16(28018), + 1813: uint16(6276), + 1814: uint16(16009), + 1815: uint16(20904), + 1816: uint16(20931), + 1817: uint16(1504), + 1818: uint16(17629), + 1819: uint16(1187), + 1820: uint16(1170), + 1821: uint16(1169), + 1822: uint16(36218), + 1823: uint16(35484), + 1824: uint16(1806), + 1825: uint16(21081), + 1826: uint16(21156), + 1827: uint16(2163), + 1828: uint16(21217), + 1830: uint16(18042), + 1831: uint16(29068), + 1832: uint16(17292), + 1833: uint16(3104), + 1834: uint16(18860), + 1835: uint16(4324), + 1836: uint16(27089), + 1837: uint16(3613), + 1839: uint16(16094), + 1840: uint16(29849), + 1841: uint16(29716), + 1842: uint16(29782), + 1843: uint16(29592), + 1844: uint16(19342), + 1845: uint16(19132), + 1846: uint16(16525), + 1847: uint16(21456), + 1848: uint16(13700), + 1849: uint16(29199), + 1850: uint16(16585), + 1851: uint16(21940), + 1852: uint16(837), + 1853: uint16(21709), + 1854: uint16(3014), + 1855: uint16(22301), + 1856: uint16(37469), + 1857: uint16(38644), + 1858: uint16(37734), + 1859: uint16(22493), + 1860: uint16(22413), + 1861: uint16(22399), + 1862: uint16(13886), + 1863: uint16(22731), + 1864: uint16(23193), + 1865: uint16(35398), + 1866: uint16(5882), + 1867: uint16(5999), + 1868: uint16(5904), + 1869: uint16(23084), + 1870: uint16(22968), + 1871: uint16(37519), + 1872: uint16(23166), + 1873: uint16(23247), + 1874: uint16(23058), + 1875: uint16(22854), + 1876: uint16(6643), + 1877: uint16(6241), + 1878: uint16(17045), + 1879: uint16(14069), + 1880: uint16(27909), + 1881: uint16(29763), + 1882: uint16(23073), + 1883: uint16(24195), + 1884: uint16(23169), + 1885: uint16(35799), + 1886: uint16(1043), + 1887: uint16(37856), + 1888: uint16(29836), + 1889: uint16(4867), + 1890: uint16(28933), + 1891: uint16(18802), + 1892: uint16(37896), + 1893: uint16(35323), + 1894: uint16(37821), + 1895: uint16(14240), + 1896: uint16(23582), + 1897: uint16(23710), + 1898: uint16(24158), + 1899: uint16(24136), + 1900: uint16(6550), + 1901: uint16(6524), + 1902: uint16(15086), + 1903: uint16(24269), + 1904: uint16(23375), + 1905: uint16(6403), + 1906: uint16(6404), + 1907: uint16(14081), + 1908: uint16(6304), + 1909: uint16(14045), + 1910: uint16(5886), + 1911: uint16(14035), + 1912: uint16(33066), + 1913: uint16(35399), + 1914: uint16(7610), + 1915: uint16(13426), + 1916: uint16(35240), + 1917: uint16(24332), + 1918: uint16(24334), + 1919: uint16(6439), + 1920: uint16(6059), + 1921: uint16(23147), + 1922: uint16(5947), + 1923: uint16(23364), + 1924: uint16(34324), + 1925: uint16(30205), + 1926: uint16(34912), + 1927: uint16(24702), + 1928: uint16(10336), + 1929: uint16(9771), + 1930: uint16(24539), + 1931: uint16(16056), + 1932: uint16(9647), + 1933: uint16(9662), + 1934: uint16(37000), + 1935: uint16(28531), + 1936: uint16(25024), + 1937: uint16(62), + 1938: uint16(70), + 1939: uint16(9755), + 1940: uint16(24985), + 1941: uint16(24984), + 1942: uint16(24693), + 1943: uint16(11419), + 1944: uint16(11527), + 1945: uint16(18132), + 1946: uint16(37197), + 1947: uint16(25713), + 1948: uint16(18021), + 1949: uint16(11114), + 1950: uint16(14889), + 1951: uint16(11042), + 1952: uint16(13392), + 1953: uint16(39146), + 1954: uint16(11896), + 1955: uint16(25399), + 1956: uint16(42075), + 1957: uint16(25782), + 1958: uint16(25393), + 1959: uint16(25553), + 1960: uint16(18915), + 1961: uint16(11623), + 1962: uint16(25252), + 1963: uint16(11425), + 1964: uint16(25659), + 1965: uint16(25963), + 1966: uint16(26994), + 1967: uint16(15348), + 1968: uint16(12430), + 1969: uint16(12973), + 1970: uint16(18825), + 1971: uint16(12971), + 1972: uint16(21773), + 1973: uint16(13024), + 1974: uint16(6361), + 1975: uint16(37951), + 1976: uint16(26318), + 1977: uint16(12937), + 1978: uint16(12723), + 1979: uint16(15072), + 1980: uint16(16784), + 1981: uint16(21892), + 1982: uint16(35618), + 1983: uint16(21903), + 1984: uint16(5884), + 1985: uint16(21851), + 1986: uint16(21541), + 1987: uint16(30958), + 1988: uint16(12547), + 1989: uint16(6186), + 1990: uint16(12852), + 1991: uint16(13412), + 1992: uint16(12815), + 1993: uint16(12674), + 1994: uint16(17097), + 1995: uint16(26254), + 1996: uint16(27940), + 1997: uint16(26219), + 1998: uint16(19347), + 1999: uint16(26160), + 2000: uint16(30832), + 2001: uint16(7659), + 2002: uint16(26211), + 2003: uint16(13010), + 2004: uint16(13025), + 2005: uint16(26142), + 2006: uint16(22642), + 2007: uint16(14545), + 2008: uint16(14394), + 2009: uint16(14268), + 2010: uint16(15257), + 2011: uint16(14242), + 2012: uint16(13310), + 2013: uint16(29904), + 2014: uint16(15254), + 2015: uint16(26511), + 2016: uint16(17962), + 2017: uint16(26806), + 2018: uint16(26654), + 2019: uint16(15300), + 2020: uint16(27326), + 2021: uint16(14435), + 2022: uint16(14293), + 2023: uint16(17543), + 2024: uint16(27187), + 2025: uint16(27218), + 2026: uint16(27337), + 2027: uint16(27397), + 2028: uint16(6418), + 2029: uint16(25873), + 2030: uint16(26776), + 2031: uint16(27212), + 2032: uint16(15319), + 2033: uint16(27258), + 2034: uint16(27479), + 2035: uint16(16320), + 2036: uint16(15514), + 2037: uint16(37792), + 2038: uint16(37618), + 2039: uint16(35818), + 2040: uint16(35531), + 2041: uint16(37513), + 2042: uint16(32798), + 2043: uint16(35292), + 2044: uint16(37991), + 2045: uint16(28069), + 2046: uint16(28427), + 2047: uint16(18924), + 2049: uint16(16255), + 2050: uint16(15759), + 2051: uint16(28164), + 2052: uint16(16444), + 2053: uint16(23101), + 2054: uint16(28170), + 2055: uint16(22599), + 2056: uint16(27940), + 2057: uint16(30786), + 2058: uint16(28987), + 2059: uint16(17178), + 2060: uint16(17014), + 2061: uint16(28913), + 2062: uint16(29264), + 2063: uint16(29319), + 2064: uint16(29332), + 2065: uint16(18319), + 2066: uint16(18213), + 2067: uint16(20857), + 2068: uint16(19108), + 2069: uint16(1515), + 2070: uint16(29818), + 2071: uint16(16120), + 2072: uint16(13919), + 2073: uint16(19018), + 2074: uint16(18711), + 2075: uint16(24545), + 2076: uint16(16134), + 2077: uint16(16049), + 2078: uint16(19167), + 2079: uint16(35875), + 2080: uint16(16181), + 2081: uint16(24743), + 2082: uint16(16115), + 2083: uint16(29900), + 2084: uint16(29756), + 2085: uint16(37767), + 2086: uint16(29751), + 2087: uint16(17567), + 2088: uint16(28138), + 2089: uint16(17745), + 2090: uint16(30083), + 2091: uint16(16227), + 2092: uint16(19673), + 2093: uint16(19718), + 2094: uint16(16216), + 2095: uint16(30037), + 2096: uint16(30323), + 2097: uint16(42438), + 2098: uint16(15129), + 2099: uint16(29800), + 2100: uint16(35532), + 2101: uint16(18859), + 2102: uint16(18830), + 2103: uint16(15099), + 2104: uint16(15821), + 2105: uint16(19022), + 2106: uint16(16127), + 2107: uint16(18885), + 2108: uint16(18675), + 2109: uint16(37370), + 2110: uint16(22322), + 2111: uint16(37698), + 2112: uint16(35555), + 2113: uint16(6244), + 2114: uint16(20703), + 2115: uint16(21025), + 2116: uint16(20967), + 2117: uint16(30584), + 2118: uint16(12850), + 2119: uint16(30478), + 2120: uint16(30479), + 2121: uint16(30587), + 2122: uint16(18071), + 2123: uint16(14209), + 2124: uint16(14942), + 2125: uint16(18672), + 2126: uint16(29752), + 2127: uint16(29851), + 2128: uint16(16063), + 2129: uint16(19130), + 2130: uint16(19143), + 2131: uint16(16584), + 2132: uint16(19094), + 2133: uint16(25006), + 2134: uint16(37639), + 2135: uint16(21889), + 2136: uint16(30750), + 2137: uint16(30861), + 2138: uint16(30856), + 2139: uint16(30930), + 2140: uint16(29648), + 2141: uint16(31065), + 2142: uint16(30529), + 2143: uint16(22243), + 2144: uint16(16654), + 2146: uint16(33942), + 2147: uint16(31141), + 2148: uint16(27181), + 2149: uint16(16122), + 2150: uint16(31290), + 2151: uint16(31220), + 2152: uint16(16750), + 2153: uint16(5862), + 2154: uint16(16690), + 2155: uint16(37429), + 2156: uint16(31217), + 2157: uint16(3404), + 2158: uint16(18828), + 2159: uint16(665), + 2160: uint16(15802), + 2161: uint16(5998), + 2162: uint16(13719), + 2163: uint16(21867), + 2164: uint16(13680), + 2165: uint16(13994), + 2166: uint16(468), + 2167: uint16(3085), + 2168: uint16(31458), + 2169: uint16(23129), + 2170: uint16(9973), + 2171: uint16(23215), + 2172: uint16(23196), + 2173: uint16(23053), + 2174: uint16(603), + 2175: uint16(30960), + 2176: uint16(23082), + 2177: uint16(23494), + 2178: uint16(31486), + 2179: uint16(16889), + 2180: uint16(31837), + 2181: uint16(31853), + 2182: uint16(16913), + 2183: uint16(23475), + 2184: uint16(24252), + 2185: uint16(24230), + 2186: uint16(31949), + 2187: uint16(18937), + 2188: uint16(6064), + 2189: uint16(31886), + 2190: uint16(31868), + 2191: uint16(31918), + 2192: uint16(27314), + 2193: uint16(32220), + 2194: uint16(32263), + 2195: uint16(32211), + 2196: uint16(32590), + 2197: uint16(25185), + 2198: uint16(24924), + 2199: uint16(31560), + 2200: uint16(32151), + 2201: uint16(24194), + 2202: uint16(17002), + 2203: uint16(27509), + 2204: uint16(2326), + 2205: uint16(26582), + 2206: uint16(78), + 2207: uint16(13775), + 2208: uint16(22468), + 2209: uint16(25618), + 2210: uint16(25592), + 2211: uint16(18786), + 2212: uint16(32733), + 2213: uint16(31527), + 2214: uint16(2092), + 2215: uint16(23273), + 2216: uint16(23875), + 2217: uint16(31500), + 2218: uint16(24078), + 2219: uint16(39398), + 2220: uint16(34373), + 2221: uint16(39523), + 2222: uint16(27164), + 2223: uint16(13375), + 2224: uint16(14818), + 2225: uint16(18935), + 2226: uint16(26029), + 2227: uint16(39455), + 2228: uint16(26016), + 2229: uint16(33920), + 2230: uint16(28967), + 2231: uint16(27857), + 2232: uint16(17642), + 2233: uint16(33079), + 2234: uint16(17410), + 2235: uint16(32966), + 2236: uint16(33033), + 2237: uint16(33090), + 2238: uint16(26548), + 2239: uint16(39107), + 2240: uint16(27202), + 2241: uint16(33378), + 2242: uint16(33381), + 2243: uint16(27217), + 2244: uint16(33875), + 2245: uint16(28071), + 2246: uint16(34320), + 2247: uint16(29211), + 2248: uint16(23174), + 2249: uint16(16767), + 2250: uint16(6208), + 2251: uint16(23339), + 2252: uint16(6305), + 2253: uint16(23268), + 2254: uint16(6360), + 2255: uint16(34464), + 2256: uint16(63932), + 2257: uint16(15759), + 2258: uint16(34861), + 2259: uint16(29730), + 2260: uint16(23042), + 2261: uint16(34926), + 2262: uint16(20293), + 2263: uint16(34951), + 2264: uint16(35007), + 2265: uint16(35046), + 2266: uint16(35173), + 2267: uint16(35149), + 2268: uint16(22147), + 2269: uint16(35156), + 2270: uint16(30597), + 2271: uint16(30596), + 2272: uint16(35829), + 2273: uint16(35801), + 2274: uint16(35740), + 2275: uint16(35321), + 2276: uint16(16045), + 2277: uint16(33955), + 2278: uint16(18165), + 2279: uint16(18127), + 2280: uint16(14322), + 2281: uint16(35389), + 2282: uint16(35356), + 2283: uint16(37960), + 2284: uint16(24397), + 2285: uint16(37419), + 2286: uint16(17028), + 2287: uint16(26068), + 2288: uint16(28969), + 2289: uint16(28868), + 2290: uint16(6213), + 2291: uint16(40301), + 2292: uint16(35999), + 2293: uint16(36073), + 2294: uint16(32220), + 2295: uint16(22938), + 2296: uint16(30659), + 2297: uint16(23024), + 2298: uint16(17262), + 2299: uint16(14036), + 2300: uint16(36394), + 2301: uint16(36519), + 2302: uint16(19465), + 2303: uint16(36656), + 2304: uint16(36682), + 2305: uint16(17140), + 2306: uint16(27736), + 2307: uint16(28603), + 2308: uint16(8993), + 2309: uint16(18587), + 2310: uint16(28537), + 2311: uint16(28299), + 2312: uint16(6106), + 2313: uint16(39913), + 2314: uint16(14005), + 2315: uint16(18735), + 2316: uint16(37051), + 2318: uint16(21873), + 2319: uint16(18694), + 2320: uint16(37307), + 2321: uint16(37892), + 2322: uint16(35403), + 2323: uint16(16482), + 2324: uint16(35580), + 2325: uint16(37927), + 2326: uint16(35869), + 2327: uint16(35899), + 2328: uint16(34021), + 2329: uint16(35371), + 2330: uint16(38297), + 2331: uint16(38311), + 2332: uint16(38295), + 2333: uint16(38294), + 2334: uint16(36148), + 2335: uint16(29765), + 2336: uint16(16066), + 2337: uint16(18687), + 2338: uint16(19010), + 2339: uint16(17386), + 2340: uint16(16103), + 2341: uint16(12837), + 2342: uint16(38543), + 2343: uint16(36583), + 2344: uint16(36454), + 2345: uint16(36453), + 2346: uint16(16076), + 2347: uint16(18925), + 2348: uint16(19064), + 2349: uint16(16366), + 2350: uint16(29714), + 2351: uint16(29803), + 2352: uint16(16124), + 2353: uint16(38721), + 2354: uint16(37040), + 2355: uint16(26695), + 2356: uint16(18973), + 2357: uint16(37011), + 2358: uint16(22495), + 2360: uint16(37736), + 2361: uint16(35209), + 2362: uint16(35878), + 2363: uint16(35631), + 2364: uint16(25534), + 2365: uint16(37562), + 2366: uint16(23313), + 2367: uint16(35689), + 2368: uint16(18748), + 2369: uint16(29689), + 2370: uint16(16923), + 2371: uint16(38811), + 2372: uint16(38769), + 2373: uint16(39224), + 2374: uint16(3878), + 2375: uint16(24001), + 2376: uint16(35781), + 2377: uint16(19122), + 2378: uint16(38943), + 2379: uint16(38106), + 2380: uint16(37622), + 2381: uint16(38359), + 2382: uint16(37349), + 2383: uint16(17600), + 2384: uint16(35664), + 2385: uint16(19047), + 2386: uint16(35684), + 2387: uint16(39132), + 2388: uint16(35397), + 2389: uint16(16128), + 2390: uint16(37418), + 2391: uint16(18725), + 2392: uint16(33812), + 2393: uint16(39227), + 2394: uint16(39245), + 2395: uint16(31494), + 2396: uint16(15869), + 2397: uint16(39323), + 2398: uint16(19311), + 2399: uint16(39338), + 2400: uint16(39516), + 2401: uint16(35685), + 2402: uint16(22728), + 2403: uint16(27279), + 2404: uint16(39457), + 2405: uint16(23294), + 2406: uint16(39471), + 2407: uint16(39153), + 2408: uint16(19344), + 2409: uint16(39240), + 2410: uint16(39356), + 2411: uint16(19389), + 2412: uint16(19351), + 2413: uint16(37757), + 2414: uint16(22642), + 2415: uint16(4866), + 2416: uint16(22562), + 2417: uint16(18872), + 2418: uint16(5352), + 2419: uint16(30788), + 2420: uint16(10015), + 2421: uint16(15800), + 2422: uint16(26821), + 2423: uint16(15741), + 2424: uint16(37976), + 2425: uint16(14631), + 2426: uint16(24912), + 2427: uint16(10113), + 2428: uint16(10603), + 2429: uint16(24839), + 2430: uint16(40015), + 2431: uint16(40019), + 2432: uint16(40059), + 2433: uint16(39989), + 2434: uint16(39952), + 2435: uint16(39807), + 2436: uint16(39887), + 2437: uint16(40493), + 2438: uint16(39839), + 2439: uint16(41461), + 2440: uint16(41214), + 2441: uint16(40225), + 2442: uint16(19630), + 2443: uint16(16644), + 2444: uint16(40472), + 2445: uint16(19632), + 2446: uint16(40204), + 2447: uint16(41396), + 2448: uint16(41197), + 2449: uint16(41203), + 2450: uint16(39215), + 2451: uint16(40357), + 2452: uint16(33981), + 2453: uint16(28178), + 2454: uint16(28639), + 2455: uint16(27522), + 2456: uint16(34300), + 2457: uint16(17715), + 2458: uint16(28068), + 2459: uint16(28292), + 2460: uint16(28144), + 2461: uint16(33824), + 2462: uint16(34286), + 2463: uint16(28160), + 2464: uint16(14295), + 2465: uint16(24676), + 2466: uint16(31202), + 2467: uint16(13724), + 2468: uint16(13888), + 2469: uint16(18733), + 2470: uint16(18910), + 2471: uint16(15714), + 2472: uint16(37851), + 2473: uint16(37566), + 2474: uint16(37704), + 2475: uint16(703), + 2476: uint16(30905), + 2477: uint16(37495), + 2478: uint16(37965), + 2479: uint16(20452), + 2480: uint16(13376), + 2481: uint16(36964), + 2482: uint16(21853), + 2483: uint16(30781), + 2484: uint16(30804), + 2485: uint16(30902), + 2486: uint16(30795), + 2487: uint16(5975), + 2488: uint16(12745), + 2489: uint16(18753), + 2490: uint16(13978), + 2491: uint16(20338), + 2492: uint16(28634), + 2493: uint16(28633), + 2495: uint16(28702), + 2496: uint16(21524), + 2497: uint16(16821), + 2498: uint16(22459), + 2499: uint16(22771), + 2500: uint16(22410), + 2501: uint16(40214), + 2502: uint16(22487), + 2503: uint16(28980), + 2504: uint16(13487), + 2505: uint16(16812), + 2506: uint16(29163), + 2507: uint16(27712), + 2508: uint16(20375), + 2510: uint16(6069), + 2511: uint16(35401), + 2512: uint16(24844), + 2513: uint16(23246), + 2514: uint16(23051), + 2515: uint16(17084), + 2516: uint16(17544), + 2517: uint16(14124), + 2518: uint16(19323), + 2519: uint16(35324), + 2520: uint16(37819), + 2521: uint16(37816), + 2522: uint16(6358), + 2523: uint16(3869), + 2524: uint16(33906), + 2525: uint16(27840), + 2526: uint16(5139), + 2527: uint16(17146), + 2528: uint16(11302), + 2529: uint16(17345), + 2530: uint16(22932), + 2531: uint16(15799), + 2532: uint16(26433), + 2533: uint16(32168), + 2534: uint16(24923), + 2535: uint16(24740), + 2536: uint16(18873), + 2537: uint16(18827), + 2538: uint16(35322), + 2539: uint16(37605), + 2540: uint16(29666), + 2541: uint16(16105), + 2542: uint16(29876), + 2543: uint16(35683), + 2544: uint16(6303), + 2545: uint16(16097), + 2546: uint16(19123), + 2547: uint16(27352), + 2548: uint16(29683), + 2549: uint16(29691), + 2550: uint16(16086), + 2551: uint16(19006), + 2552: uint16(19092), + 2553: uint16(6105), + 2554: uint16(19046), + 2555: uint16(935), + 2556: uint16(5156), + 2557: uint16(18917), + 2558: uint16(29768), + 2559: uint16(18710), + 2560: uint16(28837), + 2561: uint16(18806), + 2562: uint16(37508), + 2563: uint16(29670), + 2564: uint16(37727), + 2565: uint16(1278), + 2566: uint16(37681), + 2567: uint16(35534), + 2568: uint16(35350), + 2569: uint16(37766), + 2570: uint16(35815), + 2571: uint16(21973), + 2572: uint16(18741), + 2573: uint16(35458), + 2574: uint16(29035), + 2575: uint16(18755), + 2576: uint16(3327), + 2577: uint16(22180), + 2578: uint16(1562), + 2579: uint16(3051), + 2580: uint16(3256), + 2581: uint16(21762), + 2582: uint16(31172), + 2583: uint16(6138), + 2584: uint16(32254), + 2585: uint16(5826), + 2586: uint16(19024), + 2587: uint16(6226), + 2588: uint16(17710), + 2589: uint16(37889), + 2590: uint16(14090), + 2591: uint16(35520), + 2592: uint16(18861), + 2593: uint16(22960), + 2594: uint16(6335), + 2595: uint16(6275), + 2596: uint16(29828), + 2597: uint16(23201), + 2598: uint16(14050), + 2599: uint16(15707), + 2600: uint16(14000), + 2601: uint16(37471), + 2602: uint16(23161), + 2603: uint16(35457), + 2604: uint16(6242), + 2605: uint16(37748), + 2606: uint16(15565), + 2607: uint16(2740), + 2608: uint16(19094), + 2609: uint16(14730), + 2610: uint16(20724), + 2611: uint16(15721), + 2612: uint16(15692), + 2613: uint16(5020), + 2614: uint16(29045), + 2615: uint16(17147), + 2616: uint16(33304), + 2617: uint16(28175), + 2618: uint16(37092), + 2619: uint16(17643), + 2620: uint16(27991), + 2621: uint16(32335), + 2622: uint16(28775), + 2623: uint16(27823), + 2624: uint16(15574), + 2625: uint16(16365), + 2626: uint16(15917), + 2627: uint16(28162), + 2628: uint16(28428), + 2629: uint16(15727), + 2630: uint16(1013), + 2631: uint16(30033), + 2632: uint16(14012), + 2633: uint16(13512), + 2634: uint16(18048), + 2635: uint16(16090), + 2636: uint16(18545), + 2637: uint16(22980), + 2638: uint16(37486), + 2639: uint16(18750), + 2640: uint16(36673), + 2641: uint16(35868), + 2642: uint16(27584), + 2643: uint16(22546), + 2644: uint16(22472), + 2645: uint16(14038), + 2646: uint16(5202), + 2647: uint16(28926), + 2648: uint16(17250), + 2649: uint16(19057), + 2650: uint16(12259), + 2651: uint16(4784), + 2652: uint16(9149), + 2653: uint16(26809), + 2654: uint16(26983), + 2655: uint16(5016), + 2656: uint16(13541), + 2657: uint16(31732), + 2658: uint16(14047), + 2659: uint16(35459), + 2660: uint16(14294), + 2661: uint16(13306), + 2662: uint16(19615), + 2663: uint16(27162), + 2664: uint16(13997), + 2665: uint16(27831), + 2666: uint16(33854), + 2667: uint16(17631), + 2668: uint16(17614), + 2669: uint16(27942), + 2670: uint16(27985), + 2671: uint16(27778), + 2672: uint16(28638), + 2673: uint16(28439), + 2674: uint16(28937), + 2675: uint16(33597), + 2676: uint16(5946), + 2677: uint16(33773), + 2678: uint16(27776), + 2679: uint16(28755), + 2680: uint16(6107), + 2681: uint16(22921), + 2682: uint16(23170), + 2683: uint16(6067), + 2684: uint16(23137), + 2685: uint16(23153), + 2686: uint16(6405), + 2687: uint16(16892), + 2688: uint16(14125), + 2689: uint16(23023), + 2690: uint16(5948), + 2691: uint16(14023), + 2692: uint16(29070), + 2693: uint16(37776), + 2694: uint16(26266), + 2695: uint16(17061), + 2696: uint16(23150), + 2697: uint16(23083), + 2698: uint16(17043), + 2699: uint16(27179), + 2700: uint16(16121), + 2701: uint16(30518), + 2702: uint16(17499), + 2703: uint16(17098), + 2704: uint16(28957), + 2705: uint16(16985), + 2706: uint16(35297), + 2707: uint16(20400), + 2708: uint16(27944), + 2709: uint16(23746), + 2710: uint16(17614), + 2711: uint16(32333), + 2712: uint16(17341), + 2713: uint16(27148), + 2714: uint16(16982), + 2715: uint16(4868), + 2716: uint16(28838), + 2717: uint16(28979), + 2718: uint16(17385), + 2719: uint16(15781), + 2720: uint16(27871), + 2721: uint16(63525), + 2722: uint16(19023), + 2723: uint16(32357), + 2724: uint16(23019), + 2725: uint16(23855), + 2726: uint16(15859), + 2727: uint16(24412), + 2728: uint16(19037), + 2729: uint16(6111), + 2730: uint16(32164), + 2731: uint16(33830), + 2732: uint16(21637), + 2733: uint16(15098), + 2734: uint16(13056), + 2735: uint16(532), + 2736: uint16(22398), + 2737: uint16(2261), + 2738: uint16(1561), + 2739: uint16(16357), + 2740: uint16(8094), + 2741: uint16(41654), + 2742: uint16(28675), + 2743: uint16(37211), + 2744: uint16(23920), + 2745: uint16(29583), + 2746: uint16(31955), + 2747: uint16(35417), + 2748: uint16(37920), + 2749: uint16(20424), + 2750: uint16(32743), + 2751: uint16(29389), + 2752: uint16(29456), + 2753: uint16(31476), + 2754: uint16(29496), + 2755: uint16(29497), + 2756: uint16(22262), + 2757: uint16(29505), + 2758: uint16(29512), + 2759: uint16(16041), + 2760: uint16(31512), + 2761: uint16(36972), + 2762: uint16(29173), + 2763: uint16(18674), + 2764: uint16(29665), + 2765: uint16(33270), + 2766: uint16(16074), + 2767: uint16(30476), + 2768: uint16(16081), + 2769: uint16(27810), + 2770: uint16(22269), + 2771: uint16(29721), + 2772: uint16(29726), + 2773: uint16(29727), + 2774: uint16(16098), + 2775: uint16(16112), + 2776: uint16(16116), + 2777: uint16(16122), + 2778: uint16(29907), + 2779: uint16(16142), + 2780: uint16(16211), + 2781: uint16(30018), + 2782: uint16(30061), + 2783: uint16(30066), + 2784: uint16(30093), + 2785: uint16(16252), + 2786: uint16(30152), + 2787: uint16(30172), + 2788: uint16(16320), + 2789: uint16(30285), + 2790: uint16(16343), + 2791: uint16(30324), + 2792: uint16(16348), + 2793: uint16(30330), + 2794: uint16(20316), + 2795: uint16(29064), + 2796: uint16(22051), + 2797: uint16(35200), + 2798: uint16(22633), + 2799: uint16(16413), + 2800: uint16(30531), + 2801: uint16(16441), + 2802: uint16(26465), + 2803: uint16(16453), + 2804: uint16(13787), + 2805: uint16(30616), + 2806: uint16(16490), + 2807: uint16(16495), + 2808: uint16(23646), + 2809: uint16(30654), + 2810: uint16(30667), + 2811: uint16(22770), + 2812: uint16(30744), + 2813: uint16(28857), + 2814: uint16(30748), + 2815: uint16(16552), + 2816: uint16(30777), + 2817: uint16(30791), + 2818: uint16(30801), + 2819: uint16(30822), + 2820: uint16(33864), + 2821: uint16(21813), + 2822: uint16(31027), + 2823: uint16(26627), + 2824: uint16(31026), + 2825: uint16(16643), + 2826: uint16(16649), + 2827: uint16(31121), + 2828: uint16(31129), + 2829: uint16(36795), + 2830: uint16(31238), + 2831: uint16(36796), + 2832: uint16(16743), + 2833: uint16(31377), + 2834: uint16(16818), + 2835: uint16(31420), + 2836: uint16(33401), + 2837: uint16(16836), + 2838: uint16(31439), + 2839: uint16(31451), + 2840: uint16(16847), + 2841: uint16(20001), + 2842: uint16(31586), + 2843: uint16(31596), + 2844: uint16(31611), + 2845: uint16(31762), + 2846: uint16(31771), + 2847: uint16(16992), + 2848: uint16(17018), + 2849: uint16(31867), + 2850: uint16(31900), + 2851: uint16(17036), + 2852: uint16(31928), + 2853: uint16(17044), + 2854: uint16(31981), + 2855: uint16(36755), + 2856: uint16(28864), + 2857: uint16(3279), + 2858: uint16(32207), + 2859: uint16(32212), + 2860: uint16(32208), + 2861: uint16(32253), + 2862: uint16(32686), + 2863: uint16(32692), + 2864: uint16(29343), + 2865: uint16(17303), + 2866: uint16(32800), + 2867: uint16(32805), + 2868: uint16(31545), + 2869: uint16(32814), + 2870: uint16(32817), + 2871: uint16(32852), + 2872: uint16(15820), + 2873: uint16(22452), + 2874: uint16(28832), + 2875: uint16(32951), + 2876: uint16(33001), + 2877: uint16(17389), + 2878: uint16(33036), + 2879: uint16(29482), + 2880: uint16(33038), + 2881: uint16(33042), + 2882: uint16(30048), + 2883: uint16(33044), + 2884: uint16(17409), + 2885: uint16(15161), + 2886: uint16(33110), + 2887: uint16(33113), + 2888: uint16(33114), + 2889: uint16(17427), + 2890: uint16(22586), + 2891: uint16(33148), + 2892: uint16(33156), + 2893: uint16(17445), + 2894: uint16(33171), + 2895: uint16(17453), + 2896: uint16(33189), + 2897: uint16(22511), + 2898: uint16(33217), + 2899: uint16(33252), + 2900: uint16(33364), + 2901: uint16(17551), + 2902: uint16(33446), + 2903: uint16(33398), + 2904: uint16(33482), + 2905: uint16(33496), + 2906: uint16(33535), + 2907: uint16(17584), + 2908: uint16(33623), + 2909: uint16(38505), + 2910: uint16(27018), + 2911: uint16(33797), + 2912: uint16(28917), + 2913: uint16(33892), + 2914: uint16(24803), + 2915: uint16(33928), + 2916: uint16(17668), + 2917: uint16(33982), + 2918: uint16(34017), + 2919: uint16(34040), + 2920: uint16(34064), + 2921: uint16(34104), + 2922: uint16(34130), + 2923: uint16(17723), + 2924: uint16(34159), + 2925: uint16(34160), + 2926: uint16(34272), + 2927: uint16(17783), + 2928: uint16(34418), + 2929: uint16(34450), + 2930: uint16(34482), + 2931: uint16(34543), + 2932: uint16(38469), + 2933: uint16(34699), + 2934: uint16(17926), + 2935: uint16(17943), + 2936: uint16(34990), + 2937: uint16(35071), + 2938: uint16(35108), + 2939: uint16(35143), + 2940: uint16(35217), + 2941: uint16(31079), + 2942: uint16(35369), + 2943: uint16(35384), + 2944: uint16(35476), + 2945: uint16(35508), + 2946: uint16(35921), + 2947: uint16(36052), + 2948: uint16(36082), + 2949: uint16(36124), + 2950: uint16(18328), + 2951: uint16(22623), + 2952: uint16(36291), + 2953: uint16(18413), + 2954: uint16(20206), + 2955: uint16(36410), + 2956: uint16(21976), + 2957: uint16(22356), + 2958: uint16(36465), + 2959: uint16(22005), + 2960: uint16(36528), + 2961: uint16(18487), + 2962: uint16(36558), + 2963: uint16(36578), + 2964: uint16(36580), + 2965: uint16(36589), + 2966: uint16(36594), + 2967: uint16(36791), + 2968: uint16(36801), + 2969: uint16(36810), + 2970: uint16(36812), + 2971: uint16(36915), + 2972: uint16(39364), + 2973: uint16(18605), + 2974: uint16(39136), + 2975: uint16(37395), + 2976: uint16(18718), + 2977: uint16(37416), + 2978: uint16(37464), + 2979: uint16(37483), + 2980: uint16(37553), + 2981: uint16(37550), + 2982: uint16(37567), + 2983: uint16(37603), + 2984: uint16(37611), + 2985: uint16(37619), + 2986: uint16(37620), + 2987: uint16(37629), + 2988: uint16(37699), + 2989: uint16(37764), + 2990: uint16(37805), + 2991: uint16(18757), + 2992: uint16(18769), + 2993: uint16(40639), + 2994: uint16(37911), + 2995: uint16(21249), + 2996: uint16(37917), + 2997: uint16(37933), + 2998: uint16(37950), + 2999: uint16(18794), + 3000: uint16(37972), + 3001: uint16(38009), + 3002: uint16(38189), + 3003: uint16(38306), + 3004: uint16(18855), + 3005: uint16(38388), + 3006: uint16(38451), + 3007: uint16(18917), + 3008: uint16(26528), + 3009: uint16(18980), + 3010: uint16(38720), + 3011: uint16(18997), + 3012: uint16(38834), + 3013: uint16(38850), + 3014: uint16(22100), + 3015: uint16(19172), + 3016: uint16(24808), + 3017: uint16(39097), + 3018: uint16(19225), + 3019: uint16(39153), + 3020: uint16(22596), + 3021: uint16(39182), + 3022: uint16(39193), + 3023: uint16(20916), + 3024: uint16(39196), + 3025: uint16(39223), + 3026: uint16(39234), + 3027: uint16(39261), + 3028: uint16(39266), + 3029: uint16(19312), + 3030: uint16(39365), + 3031: uint16(19357), + 3032: uint16(39484), + 3033: uint16(39695), + 3034: uint16(31363), + 3035: uint16(39785), + 3036: uint16(39809), + 3037: uint16(39901), + 3038: uint16(39921), + 3039: uint16(39924), + 3040: uint16(19565), + 3041: uint16(39968), + 3042: uint16(14191), + 3043: uint16(7106), + 3044: uint16(40265), + 3045: uint16(39994), + 3046: uint16(40702), + 3047: uint16(22096), + 3048: uint16(40339), + 3049: uint16(40381), + 3050: uint16(40384), + 3051: uint16(40444), + 3052: uint16(38134), + 3053: uint16(36790), + 3054: uint16(40571), + 3055: uint16(40620), + 3056: uint16(40625), + 3057: uint16(40637), + 3058: uint16(40646), + 3059: uint16(38108), + 3060: uint16(40674), + 3061: uint16(40689), + 3062: uint16(40696), + 3063: uint16(31432), + 3064: uint16(40772), + 3065: uint16(148), + 3066: uint16(695), + 3067: uint16(928), + 3068: uint16(26906), + 3069: uint16(38083), + 3070: uint16(22956), + 3071: uint16(1239), + 3072: uint16(22592), + 3073: uint16(38081), + 3074: uint16(14265), + 3075: uint16(1493), + 3076: uint16(1557), + 3077: uint16(1654), + 3078: uint16(5818), + 3079: uint16(22359), + 3080: uint16(29043), + 3081: uint16(2754), + 3082: uint16(2765), + 3083: uint16(3007), + 3084: uint16(21610), + 3085: uint16(63547), + 3086: uint16(3019), + 3087: uint16(21662), + 3088: uint16(3067), + 3089: uint16(3131), + 3090: uint16(3155), + 3091: uint16(3173), + 3092: uint16(3196), + 3093: uint16(24807), + 3094: uint16(3213), + 3095: uint16(22138), + 3096: uint16(3253), + 3097: uint16(3293), + 3098: uint16(3309), + 3099: uint16(3439), + 3100: uint16(3506), + 3101: uint16(3528), + 3102: uint16(26965), + 3103: uint16(39983), + 3104: uint16(34725), + 3105: uint16(3588), + 3106: uint16(3598), + 3107: uint16(3799), + 3108: uint16(3984), + 3109: uint16(3885), + 3110: uint16(3699), + 3111: uint16(23584), + 3112: uint16(4028), + 3113: uint16(24075), + 3114: uint16(4188), + 3115: uint16(4175), + 3116: uint16(4214), + 3117: uint16(26398), + 3118: uint16(4219), + 3119: uint16(4232), + 3120: uint16(4246), + 3121: uint16(13895), + 3122: uint16(4287), + 3123: uint16(4307), + 3124: uint16(4399), + 3125: uint16(4411), + 3126: uint16(21348), + 3127: uint16(33965), + 3128: uint16(4835), + 3129: uint16(4981), + 3130: uint16(4918), + 3131: uint16(35713), + 3132: uint16(5495), + 3133: uint16(5657), + 3134: uint16(6083), + 3135: uint16(6087), + 3136: uint16(20088), + 3137: uint16(28859), + 3138: uint16(6189), + 3139: uint16(6506), + 3140: uint16(6701), + 3141: uint16(6725), + 3142: uint16(7210), + 3143: uint16(7280), + 3144: uint16(7340), + 3145: uint16(7880), + 3146: uint16(25283), + 3147: uint16(7893), + 3148: uint16(7957), + 3149: uint16(29080), + 3150: uint16(26709), + 3151: uint16(8261), + 3152: uint16(27113), + 3153: uint16(14024), + 3154: uint16(8828), + 3155: uint16(9175), + 3156: uint16(9210), + 3157: uint16(10026), + 3158: uint16(10353), + 3159: uint16(10575), + 3160: uint16(33533), + 3161: uint16(10599), + 3162: uint16(10643), + 3163: uint16(10965), + 3164: uint16(35237), + 3165: uint16(10984), + 3166: uint16(36768), + 3167: uint16(11022), + 3168: uint16(38840), + 3169: uint16(11071), + 3170: uint16(38983), + 3171: uint16(39613), + 3172: uint16(11340), + 3174: uint16(11400), + 3175: uint16(11447), + 3176: uint16(23528), + 3177: uint16(11528), + 3178: uint16(11538), + 3179: uint16(11703), + 3180: uint16(11669), + 3181: uint16(11842), + 3182: uint16(12148), + 3183: uint16(12236), + 3184: uint16(12339), + 3185: uint16(12390), + 3186: uint16(13087), + 3187: uint16(13278), + 3188: uint16(24497), + 3189: uint16(26184), + 3190: uint16(26303), + 3191: uint16(31353), + 3192: uint16(13671), + 3193: uint16(13811), + 3195: uint16(18874), + 3197: uint16(13850), + 3198: uint16(14102), + 3200: uint16(838), + 3201: uint16(22709), + 3202: uint16(26382), + 3203: uint16(26904), + 3204: uint16(15015), + 3205: uint16(30295), + 3206: uint16(24546), + 3207: uint16(15889), + 3208: uint16(16057), + 3209: uint16(30206), + 3210: uint16(8346), + 3211: uint16(18640), + 3212: uint16(19128), + 3213: uint16(16665), + 3214: uint16(35482), + 3215: uint16(17134), + 3216: uint16(17165), + 3217: uint16(16443), + 3218: uint16(17204), + 3219: uint16(17302), + 3220: uint16(19013), + 3221: uint16(1482), + 3222: uint16(20946), + 3223: uint16(1553), + 3224: uint16(22943), + 3225: uint16(7848), + 3226: uint16(15294), + 3227: uint16(15615), + 3228: uint16(17412), + 3229: uint16(17622), + 3230: uint16(22408), + 3231: uint16(18036), + 3232: uint16(14747), + 3233: uint16(18223), + 3234: uint16(34280), + 3235: uint16(39369), + 3236: uint16(14178), + 3237: uint16(8643), + 3238: uint16(35678), + 3239: uint16(35662), + 3241: uint16(18450), + 3242: uint16(18683), + 3243: uint16(18965), + 3244: uint16(29193), + 3245: uint16(19136), + 3246: uint16(3192), + 3247: uint16(22885), + 3248: uint16(20133), + 3249: uint16(20358), + 3250: uint16(1913), + 3251: uint16(36570), + 3252: uint16(20524), + 3253: uint16(21135), + 3254: uint16(22335), + 3255: uint16(29041), + 3256: uint16(21145), + 3257: uint16(21529), + 3258: uint16(16202), + 3259: uint16(19111), + 3260: uint16(21948), + 3261: uint16(21574), + 3262: uint16(21614), + 3263: uint16(27474), + 3265: uint16(13427), + 3266: uint16(21823), + 3267: uint16(30258), + 3268: uint16(21854), + 3269: uint16(18200), + 3270: uint16(21858), + 3271: uint16(21862), + 3272: uint16(22471), + 3273: uint16(18751), + 3274: uint16(22621), + 3275: uint16(20582), + 3276: uint16(13563), + 3277: uint16(13260), + 3279: uint16(22787), + 3280: uint16(18300), + 3281: uint16(35144), + 3282: uint16(23214), + 3283: uint16(23433), + 3284: uint16(23558), + 3285: uint16(7568), + 3286: uint16(22433), + 3287: uint16(29009), + 3289: uint16(24834), + 3290: uint16(31762), + 3291: uint16(36950), + 3292: uint16(25010), + 3293: uint16(20378), + 3294: uint16(35682), + 3295: uint16(25602), + 3296: uint16(25674), + 3297: uint16(23899), + 3298: uint16(27639), + 3300: uint16(25732), + 3301: uint16(6428), + 3302: uint16(35562), + 3303: uint16(18934), + 3304: uint16(25736), + 3305: uint16(16367), + 3306: uint16(25874), + 3307: uint16(19392), + 3308: uint16(26047), + 3309: uint16(26293), + 3310: uint16(10011), + 3311: uint16(37989), + 3312: uint16(22497), + 3313: uint16(24981), + 3314: uint16(23079), + 3315: uint16(63693), + 3317: uint16(22201), + 3318: uint16(17697), + 3319: uint16(26364), + 3320: uint16(20074), + 3321: uint16(18740), + 3322: uint16(38486), + 3323: uint16(28047), + 3324: uint16(27837), + 3325: uint16(13848), + 3326: uint16(35191), + 3327: uint16(26521), + 3328: uint16(26734), + 3329: uint16(25617), + 3330: uint16(26718), + 3332: uint16(26823), + 3333: uint16(31554), + 3334: uint16(37056), + 3335: uint16(2577), + 3336: uint16(26918), + 3338: uint16(26937), + 3339: uint16(31301), + 3341: uint16(27130), + 3342: uint16(39462), + 3343: uint16(27181), + 3344: uint16(13919), + 3345: uint16(25705), + 3346: uint16(33), + 3347: uint16(31107), + 3348: uint16(27188), + 3349: uint16(27483), + 3350: uint16(23852), + 3351: uint16(13593), + 3353: uint16(27549), + 3354: uint16(18128), + 3355: uint16(27812), + 3356: uint16(30011), + 3357: uint16(34917), + 3358: uint16(28078), + 3359: uint16(22710), + 3360: uint16(14108), + 3361: uint16(9613), + 3362: uint16(28747), + 3363: uint16(29133), + 3364: uint16(15444), + 3365: uint16(29312), + 3366: uint16(29317), + 3367: uint16(37505), + 3368: uint16(8570), + 3369: uint16(29323), + 3370: uint16(37680), + 3371: uint16(29414), + 3372: uint16(18896), + 3373: uint16(27705), + 3374: uint16(38047), + 3375: uint16(29776), + 3376: uint16(3832), + 3377: uint16(34855), + 3378: uint16(35061), + 3379: uint16(10534), + 3380: uint16(33907), + 3381: uint16(6065), + 3382: uint16(28344), + 3383: uint16(18986), + 3384: uint16(6176), + 3385: uint16(14756), + 3386: uint16(14009), + 3389: uint16(17727), + 3390: uint16(26294), + 3391: uint16(40109), + 3392: uint16(39076), + 3393: uint16(35139), + 3394: uint16(30668), + 3395: uint16(30808), + 3396: uint16(22230), + 3397: uint16(16607), + 3398: uint16(5642), + 3399: uint16(14753), + 3400: uint16(14127), + 3401: uint16(33000), + 3402: uint16(5061), + 3403: uint16(29101), + 3404: uint16(33638), + 3405: uint16(31197), + 3406: uint16(37288), + 3408: uint16(19639), + 3409: uint16(28847), + 3410: uint16(35243), + 3411: uint16(31229), + 3412: uint16(31242), + 3413: uint16(31499), + 3414: uint16(32102), + 3415: uint16(16762), + 3416: uint16(31555), + 3417: uint16(31102), + 3418: uint16(32777), + 3419: uint16(28597), + 3420: uint16(41695), + 3421: uint16(27139), + 3422: uint16(33560), + 3423: uint16(21410), + 3424: uint16(28167), + 3425: uint16(37823), + 3426: uint16(26678), + 3427: uint16(38749), + 3428: uint16(33135), + 3429: uint16(32803), + 3430: uint16(27061), + 3431: uint16(5101), + 3432: uint16(12847), + 3433: uint16(32840), + 3434: uint16(23941), + 3435: uint16(35888), + 3436: uint16(32899), + 3437: uint16(22293), + 3438: uint16(38947), + 3439: uint16(35145), + 3440: uint16(23979), + 3441: uint16(18824), + 3442: uint16(26046), + 3443: uint16(27093), + 3444: uint16(21458), + 3445: uint16(19109), + 3446: uint16(16257), + 3447: uint16(15377), + 3448: uint16(26422), + 3449: uint16(32912), + 3450: uint16(33012), + 3451: uint16(33070), + 3452: uint16(8097), + 3453: uint16(33103), + 3454: uint16(33161), + 3455: uint16(33199), + 3456: uint16(33306), + 3457: uint16(33542), + 3458: uint16(33583), + 3459: uint16(33674), + 3460: uint16(13770), + 3461: uint16(33896), + 3462: uint16(34474), + 3463: uint16(18682), + 3464: uint16(25574), + 3465: uint16(35158), + 3466: uint16(30728), + 3467: uint16(37461), + 3468: uint16(35256), + 3469: uint16(17394), + 3470: uint16(35303), + 3471: uint16(17375), + 3472: uint16(35304), + 3473: uint16(35654), + 3474: uint16(35796), + 3475: uint16(23032), + 3476: uint16(35849), + 3478: uint16(36805), + 3479: uint16(37100), + 3481: uint16(37136), + 3482: uint16(37180), + 3483: uint16(15863), + 3484: uint16(37214), + 3485: uint16(19146), + 3486: uint16(36816), + 3487: uint16(29327), + 3488: uint16(22155), + 3489: uint16(38119), + 3490: uint16(38377), + 3491: uint16(38320), + 3492: uint16(38328), + 3493: uint16(38706), + 3494: uint16(39121), + 3495: uint16(39241), + 3496: uint16(39274), + 3497: uint16(39363), + 3498: uint16(39464), + 3499: uint16(39694), + 3500: uint16(40282), + 3501: uint16(40347), + 3502: uint16(32415), + 3503: uint16(40696), + 3504: uint16(40739), + 3505: uint16(19620), + 3506: uint16(38215), + 3507: uint16(41619), + 3508: uint16(29090), + 3509: uint16(41727), + 3510: uint16(19857), + 3511: uint16(36882), + 3512: uint16(42443), + 3513: uint16(19868), + 3514: uint16(3228), + 3515: uint16(36798), + 3516: uint16(21953), + 3517: uint16(36794), + 3518: uint16(9392), + 3519: uint16(36793), + 3520: uint16(19091), + 3521: uint16(17673), + 3522: uint16(32383), + 3523: uint16(28502), + 3524: uint16(27313), + 3525: uint16(20202), + 3526: uint16(13540), + 3527: uint16(35628), + 3528: uint16(30877), + 3529: uint16(14138), + 3530: uint16(36480), + 3531: uint16(6133), + 3532: uint16(32804), + 3533: uint16(35692), + 3534: uint16(35737), + 3535: uint16(31294), + 3536: uint16(26287), + 3537: uint16(15851), + 3538: uint16(30293), + 3539: uint16(15543), + 3540: uint16(22069), + 3541: uint16(22870), + 3542: uint16(20122), + 3543: uint16(24193), + 3544: uint16(25176), + 3545: uint16(22207), + 3546: uint16(3693), + 3547: uint16(36366), + 3548: uint16(23405), + 3549: uint16(16008), + 3550: uint16(19614), + 3551: uint16(25566), + 3553: uint16(6134), + 3554: uint16(6267), + 3555: uint16(25904), + 3556: uint16(22061), + 3557: uint16(23626), + 3558: uint16(21530), + 3559: uint16(21265), + 3560: uint16(15814), + 3561: uint16(40344), + 3562: uint16(19581), + 3563: uint16(22050), + 3564: uint16(22046), + 3565: uint16(32585), + 3566: uint16(24280), + 3567: uint16(22901), + 3568: uint16(15680), + 3569: uint16(34672), + 3570: uint16(19996), + 3571: uint16(4074), + 3572: uint16(3401), + 3573: uint16(14010), + 3574: uint16(33047), + 3575: uint16(40286), + 3576: uint16(36120), + 3577: uint16(30267), + 3578: uint16(40005), + 3579: uint16(30286), + 3580: uint16(30649), + 3581: uint16(37701), + 3582: uint16(21554), + 3583: uint16(33096), + 3584: uint16(33527), + 3585: uint16(22053), + 3586: uint16(33074), + 3587: uint16(33816), + 3588: uint16(32957), + 3589: uint16(21994), + 3590: uint16(31074), + 3591: uint16(22083), + 3592: uint16(21526), + 3593: uint16(3741), + 3594: uint16(13774), + 3595: uint16(22021), + 3596: uint16(22001), + 3597: uint16(26353), + 3598: uint16(33506), + 3599: uint16(13869), + 3600: uint16(30004), + 3601: uint16(22000), + 3602: uint16(21946), + 3603: uint16(21655), + 3604: uint16(21874), + 3605: uint16(3137), + 3606: uint16(3222), + 3607: uint16(24272), + 3608: uint16(20808), + 3609: uint16(3702), + 3610: uint16(11362), + 3611: uint16(3746), + 3612: uint16(40619), + 3613: uint16(32090), + 3614: uint16(21982), + 3615: uint16(4213), + 3616: uint16(25245), + 3617: uint16(38765), + 3618: uint16(21652), + 3619: uint16(36045), + 3620: uint16(29174), + 3621: uint16(37238), + 3622: uint16(25596), + 3623: uint16(25529), + 3624: uint16(25598), + 3625: uint16(21865), + 3626: uint16(11075), + 3627: uint16(40050), + 3628: uint16(11955), + 3629: uint16(20890), + 3630: uint16(13535), + 3631: uint16(3495), + 3632: uint16(20903), + 3633: uint16(21581), + 3634: uint16(21790), + 3635: uint16(21779), + 3636: uint16(30310), + 3637: uint16(36397), + 3638: uint16(26762), + 3639: uint16(30129), + 3640: uint16(32950), + 3641: uint16(34820), + 3642: uint16(34694), + 3643: uint16(35015), + 3644: uint16(33206), + 3645: uint16(33820), + 3646: uint16(4289), + 3647: uint16(17644), + 3648: uint16(29444), + 3649: uint16(18182), + 3650: uint16(23440), + 3651: uint16(33547), + 3652: uint16(26771), + 3653: uint16(22139), + 3654: uint16(9972), + 3655: uint16(32047), + 3656: uint16(16803), + 3657: uint16(32115), + 3658: uint16(28368), + 3659: uint16(29366), + 3660: uint16(37232), + 3661: uint16(4569), + 3662: uint16(37384), + 3663: uint16(15612), + 3664: uint16(42665), + 3665: uint16(3756), + 3666: uint16(3833), + 3667: uint16(29286), + 3668: uint16(7330), + 3669: uint16(18254), + 3670: uint16(20418), + 3671: uint16(32761), + 3672: uint16(4075), + 3673: uint16(16634), + 3674: uint16(40029), + 3675: uint16(25887), + 3676: uint16(11680), + 3677: uint16(18675), + 3678: uint16(18400), + 3679: uint16(40316), + 3680: uint16(4076), + 3681: uint16(3594), + 3683: uint16(30115), + 3684: uint16(4077), + 3686: uint16(24648), + 3687: uint16(4487), + 3688: uint16(29091), + 3689: uint16(32398), + 3690: uint16(40272), + 3691: uint16(19994), + 3692: uint16(19972), + 3693: uint16(13687), + 3694: uint16(23309), + 3695: uint16(27826), + 3696: uint16(21351), + 3697: uint16(13996), + 3698: uint16(14812), + 3699: uint16(21373), + 3700: uint16(13989), + 3701: uint16(17944), + 3702: uint16(22682), + 3703: uint16(19310), + 3704: uint16(33325), + 3705: uint16(21579), + 3706: uint16(22442), + 3707: uint16(23189), + 3708: uint16(2425), + 3710: uint16(14930), + 3711: uint16(9317), + 3712: uint16(29556), + 3713: uint16(40620), + 3714: uint16(19721), + 3715: uint16(39917), + 3716: uint16(15614), + 3717: uint16(40752), + 3718: uint16(19547), + 3719: uint16(20393), + 3720: uint16(38302), + 3721: uint16(40926), + 3722: uint16(33884), + 3723: uint16(15798), + 3724: uint16(29362), + 3725: uint16(26547), + 3726: uint16(14112), + 3727: uint16(25390), + 3728: uint16(32037), + 3729: uint16(16119), + 3730: uint16(15916), + 3731: uint16(14890), + 3732: uint16(36872), + 3733: uint16(21196), + 3734: uint16(15988), + 3735: uint16(13946), + 3736: uint16(17897), + 3737: uint16(1166), + 3738: uint16(30272), + 3739: uint16(23280), + 3740: uint16(3766), + 3741: uint16(30842), + 3742: uint16(32558), + 3743: uint16(22695), + 3744: uint16(16575), + 3745: uint16(22140), + 3746: uint16(39819), + 3747: uint16(23924), + 3748: uint16(30292), + 3749: uint16(42036), + 3750: uint16(40581), + 3751: uint16(19681), + 3753: uint16(14331), + 3754: uint16(24857), + 3755: uint16(12506), + 3756: uint16(17394), + 3758: uint16(22109), + 3759: uint16(4777), + 3760: uint16(22439), + 3761: uint16(18787), + 3762: uint16(40454), + 3763: uint16(21044), + 3764: uint16(28846), + 3765: uint16(13741), + 3767: uint16(40316), + 3768: uint16(31830), + 3769: uint16(39737), + 3770: uint16(22494), + 3771: uint16(5996), + 3772: uint16(23635), + 3773: uint16(25811), + 3774: uint16(38096), + 3775: uint16(25397), + 3776: uint16(29028), + 3777: uint16(34477), + 3778: uint16(3368), + 3779: uint16(27938), + 3780: uint16(19170), + 3781: uint16(3441), + 3783: uint16(20990), + 3784: uint16(7951), + 3785: uint16(23950), + 3786: uint16(38659), + 3787: uint16(7633), + 3788: uint16(40577), + 3789: uint16(36940), + 3790: uint16(31519), + 3791: uint16(39682), + 3792: uint16(23761), + 3793: uint16(31651), + 3794: uint16(25192), + 3795: uint16(25397), + 3796: uint16(39679), + 3797: uint16(31695), + 3798: uint16(39722), + 3799: uint16(31870), + 3801: uint16(31810), + 3802: uint16(31878), + 3803: uint16(39957), + 3804: uint16(31740), + 3805: uint16(39689), + 3807: uint16(39963), + 3808: uint16(18750), + 3809: uint16(40794), + 3810: uint16(21875), + 3811: uint16(23491), + 3812: uint16(20477), + 3813: uint16(40600), + 3814: uint16(20466), + 3815: uint16(21088), + 3816: uint16(15878), + 3817: uint16(21201), + 3818: uint16(22375), + 3819: uint16(20566), + 3820: uint16(22967), + 3821: uint16(24082), + 3822: uint16(38856), + 3823: uint16(40363), + 3824: uint16(36700), + 3825: uint16(21609), + 3826: uint16(38836), + 3827: uint16(39232), + 3828: uint16(38842), + 3829: uint16(21292), + 3830: uint16(24880), + 3831: uint16(26924), + 3832: uint16(21466), + 3833: uint16(39946), + 3834: uint16(40194), + 3835: uint16(19515), + 3836: uint16(38465), + 3837: uint16(27008), + 3838: uint16(20646), + 3839: uint16(30022), + 3840: uint16(5997), + 3841: uint16(39386), + 3842: uint16(21107), + 3844: uint16(37209), + 3845: uint16(38529), + 3846: uint16(37212), + 3848: uint16(37201), + 3849: uint16(36503), + 3850: uint16(25471), + 3851: uint16(27939), + 3852: uint16(27338), + 3853: uint16(22033), + 3854: uint16(37262), + 3855: uint16(30074), + 3856: uint16(25221), + 3857: uint16(1020), + 3858: uint16(29519), + 3859: uint16(31856), + 3860: uint16(23585), + 3861: uint16(15613), + 3863: uint16(18713), + 3864: uint16(30422), + 3865: uint16(39837), + 3866: uint16(20010), + 3867: uint16(3284), + 3868: uint16(33726), + 3869: uint16(34882), + 3871: uint16(23626), + 3872: uint16(27072), + 3874: uint16(22394), + 3875: uint16(21023), + 3876: uint16(24053), + 3877: uint16(20174), + 3878: uint16(27697), + 3879: uint16(498), + 3880: uint16(20281), + 3881: uint16(21660), + 3882: uint16(21722), + 3883: uint16(21146), + 3884: uint16(36226), + 3885: uint16(13822), + 3887: uint16(13811), + 3889: uint16(27474), + 3890: uint16(37244), + 3891: uint16(40869), + 3892: uint16(39831), + 3893: uint16(38958), + 3894: uint16(39092), + 3895: uint16(39610), + 3896: uint16(40616), + 3897: uint16(40580), + 3898: uint16(29050), + 3899: uint16(31508), + 3901: uint16(27642), + 3902: uint16(34840), + 3903: uint16(32632), + 3905: uint16(22048), + 3906: uint16(42570), + 3907: uint16(36471), + 3908: uint16(40787), + 3910: uint16(36308), + 3911: uint16(36431), + 3912: uint16(40476), + 3913: uint16(36353), + 3914: uint16(25218), + 3915: uint16(33661), + 3916: uint16(36392), + 3917: uint16(36469), + 3918: uint16(31443), + 3919: uint16(19063), + 3920: uint16(31294), + 3921: uint16(30936), + 3922: uint16(27882), + 3923: uint16(35431), + 3924: uint16(30215), + 3925: uint16(35418), + 3926: uint16(40742), + 3927: uint16(27854), + 3928: uint16(34774), + 3929: uint16(30147), + 3930: uint16(41650), + 3931: uint16(30803), + 3932: uint16(63552), + 3933: uint16(36108), + 3934: uint16(29410), + 3935: uint16(29553), + 3936: uint16(35629), + 3937: uint16(29442), + 3938: uint16(29937), + 3939: uint16(36075), + 3940: uint16(19131), + 3941: uint16(34351), + 3942: uint16(24506), + 3943: uint16(34976), + 3944: uint16(17591), + 3946: uint16(6203), + 3947: uint16(28165), + 3949: uint16(35454), + 3950: uint16(9499), + 3952: uint16(24829), + 3953: uint16(30311), + 3954: uint16(39639), + 3955: uint16(40260), + 3956: uint16(37742), + 3957: uint16(39823), + 3958: uint16(34805), + 3961: uint16(36087), + 3962: uint16(29484), + 3963: uint16(38689), + 3964: uint16(39856), + 3965: uint16(13782), + 3966: uint16(29362), + 3967: uint16(19463), + 3968: uint16(31825), + 3969: uint16(39242), + 3970: uint16(24921), + 3971: uint16(24921), + 3972: uint16(19460), + 3973: uint16(40598), + 3974: uint16(24957), + 3976: uint16(22367), + 3977: uint16(24943), + 3978: uint16(25254), + 3979: uint16(25145), + 3981: uint16(14940), + 3982: uint16(25058), + 3983: uint16(21418), + 3984: uint16(13301), + 3985: uint16(25444), + 3986: uint16(26626), + 3987: uint16(13778), + 3988: uint16(23895), + 3989: uint16(35778), + 3990: uint16(36826), + 3991: uint16(36409), + 3993: uint16(20697), + 3994: uint16(7494), + 3995: uint16(30982), + 3996: uint16(21298), + 3997: uint16(38456), + 3998: uint16(3899), + 3999: uint16(16485), + 4001: uint16(30718), + 4003: uint16(31938), + 4004: uint16(24346), + 4005: uint16(31962), + 4006: uint16(31277), + 4007: uint16(32870), + 4008: uint16(32867), + 4009: uint16(32077), + 4010: uint16(29957), + 4011: uint16(29938), + 4012: uint16(35220), + 4013: uint16(33306), + 4014: uint16(26380), + 4015: uint16(32866), + 4016: uint16(29830), + 4017: uint16(32859), + 4018: uint16(29936), + 4019: uint16(33027), + 4020: uint16(30500), + 4021: uint16(35209), + 4022: uint16(26572), + 4023: uint16(30035), + 4024: uint16(28369), + 4025: uint16(34729), + 4026: uint16(34766), + 4027: uint16(33224), + 4028: uint16(34700), + 4029: uint16(35401), + 4030: uint16(36013), + 4031: uint16(35651), + 4032: uint16(30507), + 4033: uint16(29944), + 4034: uint16(34010), + 4035: uint16(13877), + 4036: uint16(27058), + 4037: uint16(36262), + 4039: uint16(35241), + 4041: uint16(28089), + 4042: uint16(34753), + 4043: uint16(16401), + 4044: uint16(29927), + 4045: uint16(15835), + 4046: uint16(29046), + 4047: uint16(24740), + 4048: uint16(24988), + 4049: uint16(15569), + 4051: uint16(24695), + 4053: uint16(32625), + 4054: uint16(35629), + 4056: uint16(24809), + 4057: uint16(19326), + 4058: uint16(21024), + 4059: uint16(15384), + 4060: uint16(15559), + 4061: uint16(24279), + 4062: uint16(30294), + 4063: uint16(21809), + 4064: uint16(6468), + 4065: uint16(4862), + 4066: uint16(39171), + 4067: uint16(28124), + 4068: uint16(28845), + 4069: uint16(23745), + 4070: uint16(25005), + 4071: uint16(35343), + 4072: uint16(13943), + 4073: uint16(238), + 4074: uint16(26694), + 4075: uint16(20238), + 4076: uint16(17762), + 4077: uint16(23327), + 4078: uint16(25420), + 4079: uint16(40784), + 4080: uint16(40614), + 4081: uint16(25195), + 4082: uint16(1351), + 4083: uint16(37595), + 4084: uint16(1503), + 4085: uint16(16325), + 4086: uint16(34124), + 4087: uint16(17077), + 4088: uint16(29679), + 4089: uint16(20917), + 4090: uint16(13897), + 4091: uint16(18754), + 4092: uint16(35300), + 4093: uint16(37700), + 4094: uint16(6619), + 4095: uint16(33518), + 4096: uint16(15560), + 4097: uint16(30780), + 4098: uint16(26436), + 4099: uint16(25311), + 4100: uint16(18739), + 4101: uint16(35242), + 4102: uint16(672), + 4103: uint16(27571), + 4104: uint16(4869), + 4105: uint16(20395), + 4106: uint16(9453), + 4107: uint16(20488), + 4108: uint16(27945), + 4109: uint16(31364), + 4110: uint16(13824), + 4111: uint16(19121), + 4112: uint16(9491), + 4114: uint16(894), + 4115: uint16(24484), + 4116: uint16(896), + 4117: uint16(839), + 4118: uint16(28379), + 4119: uint16(1055), + 4121: uint16(20737), + 4122: uint16(13434), + 4123: uint16(20750), + 4124: uint16(39020), + 4125: uint16(14147), + 4126: uint16(33814), + 4127: uint16(18852), + 4128: uint16(1159), + 4129: uint16(20832), + 4130: uint16(13236), + 4131: uint16(20842), + 4132: uint16(3071), + 4133: uint16(8444), + 4134: uint16(741), + 4135: uint16(9520), + 4136: uint16(1422), + 4137: uint16(12851), + 4138: uint16(6531), + 4139: uint16(23426), + 4140: uint16(34685), + 4141: uint16(1459), + 4142: uint16(15513), + 4143: uint16(20914), + 4144: uint16(20920), + 4145: uint16(40244), + 4146: uint16(20937), + 4147: uint16(20943), + 4148: uint16(20945), + 4149: uint16(15580), + 4150: uint16(20947), + 4151: uint16(19110), + 4152: uint16(20915), + 4153: uint16(20962), + 4154: uint16(21314), + 4155: uint16(20973), + 4156: uint16(33741), + 4157: uint16(26942), + 4158: uint16(14125), + 4159: uint16(24443), + 4160: uint16(21003), + 4161: uint16(21030), + 4162: uint16(21052), + 4163: uint16(21173), + 4164: uint16(21079), + 4165: uint16(21140), + 4166: uint16(21177), + 4167: uint16(21189), + 4168: uint16(31765), + 4169: uint16(34114), + 4170: uint16(21216), + 4171: uint16(34317), + 4172: uint16(27411), + 4174: uint16(35550), + 4175: uint16(21833), + 4176: uint16(28377), + 4177: uint16(16256), + 4178: uint16(2388), + 4179: uint16(16364), + 4180: uint16(21299), + 4182: uint16(3042), + 4183: uint16(27851), + 4184: uint16(5926), + 4185: uint16(26651), + 4186: uint16(29653), + 4187: uint16(24650), + 4188: uint16(16042), + 4189: uint16(14540), + 4190: uint16(5864), + 4191: uint16(29149), + 4192: uint16(17570), + 4193: uint16(21357), + 4194: uint16(21364), + 4195: uint16(34475), + 4196: uint16(21374), + 4198: uint16(5526), + 4199: uint16(5651), + 4200: uint16(30694), + 4201: uint16(21395), + 4202: uint16(35483), + 4203: uint16(21408), + 4204: uint16(21419), + 4205: uint16(21422), + 4206: uint16(29607), + 4207: uint16(22386), + 4208: uint16(16217), + 4209: uint16(29596), + 4210: uint16(21441), + 4211: uint16(21445), + 4212: uint16(27721), + 4213: uint16(20041), + 4214: uint16(22526), + 4215: uint16(21465), + 4216: uint16(15019), + 4217: uint16(2959), + 4218: uint16(21472), + 4219: uint16(16363), + 4220: uint16(11683), + 4221: uint16(21494), + 4222: uint16(3191), + 4223: uint16(21523), + 4224: uint16(28793), + 4225: uint16(21803), + 4226: uint16(26199), + 4227: uint16(27995), + 4228: uint16(21613), + 4229: uint16(27475), + 4230: uint16(3444), + 4231: uint16(21853), + 4232: uint16(21647), + 4233: uint16(21668), + 4234: uint16(18342), + 4235: uint16(5901), + 4236: uint16(3805), + 4237: uint16(15796), + 4238: uint16(3405), + 4239: uint16(35260), + 4240: uint16(9880), + 4241: uint16(21831), + 4242: uint16(19693), + 4243: uint16(21551), + 4244: uint16(29719), + 4245: uint16(21894), + 4246: uint16(21929), + 4248: uint16(6359), + 4249: uint16(16442), + 4250: uint16(17746), + 4251: uint16(17461), + 4252: uint16(26291), + 4253: uint16(4276), + 4254: uint16(22071), + 4255: uint16(26317), + 4256: uint16(12938), + 4257: uint16(26276), + 4258: uint16(26285), + 4259: uint16(22093), + 4260: uint16(22095), + 4261: uint16(30961), + 4262: uint16(22257), + 4263: uint16(38791), + 4264: uint16(21502), + 4265: uint16(22272), + 4266: uint16(22255), + 4267: uint16(22253), + 4268: uint16(35686), + 4269: uint16(13859), + 4270: uint16(4687), + 4271: uint16(22342), + 4272: uint16(16805), + 4273: uint16(27758), + 4274: uint16(28811), + 4275: uint16(22338), + 4276: uint16(14001), + 4277: uint16(27774), + 4278: uint16(22502), + 4279: uint16(5142), + 4280: uint16(22531), + 4281: uint16(5204), + 4282: uint16(17251), + 4283: uint16(22566), + 4284: uint16(19445), + 4285: uint16(22620), + 4286: uint16(22698), + 4287: uint16(13665), + 4288: uint16(22752), + 4289: uint16(22748), + 4290: uint16(4668), + 4291: uint16(22779), + 4292: uint16(23551), + 4293: uint16(22339), + 4294: uint16(41296), + 4295: uint16(17016), + 4296: uint16(37843), + 4297: uint16(13729), + 4298: uint16(22815), + 4299: uint16(26790), + 4300: uint16(14019), + 4301: uint16(28249), + 4302: uint16(5694), + 4303: uint16(23076), + 4304: uint16(21843), + 4305: uint16(5778), + 4306: uint16(34053), + 4307: uint16(22985), + 4308: uint16(3406), + 4309: uint16(27777), + 4310: uint16(27946), + 4311: uint16(6108), + 4312: uint16(23001), + 4313: uint16(6139), + 4314: uint16(6066), + 4315: uint16(28070), + 4316: uint16(28017), + 4317: uint16(6184), + 4318: uint16(5845), + 4319: uint16(23033), + 4320: uint16(28229), + 4321: uint16(23211), + 4322: uint16(23139), + 4323: uint16(14054), + 4324: uint16(18857), + 4326: uint16(14088), + 4327: uint16(23190), + 4328: uint16(29797), + 4329: uint16(23251), + 4330: uint16(28577), + 4331: uint16(9556), + 4332: uint16(15749), + 4333: uint16(6417), + 4334: uint16(14130), + 4335: uint16(5816), + 4336: uint16(24195), + 4337: uint16(21200), + 4338: uint16(23414), + 4339: uint16(25992), + 4340: uint16(23420), + 4341: uint16(31246), + 4342: uint16(16388), + 4343: uint16(18525), + 4344: uint16(516), + 4345: uint16(23509), + 4346: uint16(24928), + 4347: uint16(6708), + 4348: uint16(22988), + 4349: uint16(1445), + 4350: uint16(23539), + 4351: uint16(23453), + 4352: uint16(19728), + 4353: uint16(23557), + 4354: uint16(6980), + 4355: uint16(23571), + 4356: uint16(29646), + 4357: uint16(23572), + 4358: uint16(7333), + 4359: uint16(27432), + 4360: uint16(23625), + 4361: uint16(18653), + 4362: uint16(23685), + 4363: uint16(23785), + 4364: uint16(23791), + 4365: uint16(23947), + 4366: uint16(7673), + 4367: uint16(7735), + 4368: uint16(23824), + 4369: uint16(23832), + 4370: uint16(23878), + 4371: uint16(7844), + 4372: uint16(23738), + 4373: uint16(24023), + 4374: uint16(33532), + 4375: uint16(14381), + 4376: uint16(18689), + 4377: uint16(8265), + 4378: uint16(8563), + 4379: uint16(33415), + 4380: uint16(14390), + 4381: uint16(15298), + 4382: uint16(24110), + 4383: uint16(27274), + 4385: uint16(24186), + 4386: uint16(17596), + 4387: uint16(3283), + 4388: uint16(21414), + 4389: uint16(20151), + 4391: uint16(21416), + 4392: uint16(6001), + 4393: uint16(24073), + 4394: uint16(24308), + 4395: uint16(33922), + 4396: uint16(24313), + 4397: uint16(24315), + 4398: uint16(14496), + 4399: uint16(24316), + 4400: uint16(26686), + 4401: uint16(37915), + 4402: uint16(24333), + 4403: uint16(449), + 4404: uint16(63636), + 4405: uint16(15070), + 4406: uint16(18606), + 4407: uint16(4922), + 4408: uint16(24378), + 4409: uint16(26760), + 4410: uint16(9168), + 4412: uint16(9329), + 4413: uint16(24419), + 4414: uint16(38845), + 4415: uint16(28270), + 4416: uint16(24434), + 4417: uint16(37696), + 4418: uint16(35382), + 4419: uint16(24487), + 4420: uint16(23990), + 4421: uint16(15711), + 4422: uint16(21072), + 4423: uint16(8042), + 4424: uint16(28920), + 4425: uint16(9832), + 4426: uint16(37334), + 4427: uint16(670), + 4428: uint16(35369), + 4429: uint16(24625), + 4430: uint16(26245), + 4431: uint16(6263), + 4432: uint16(14691), + 4433: uint16(15815), + 4434: uint16(13881), + 4435: uint16(22416), + 4436: uint16(10164), + 4437: uint16(31089), + 4438: uint16(15936), + 4439: uint16(24734), + 4441: uint16(24755), + 4442: uint16(18818), + 4443: uint16(18831), + 4444: uint16(31315), + 4445: uint16(29860), + 4446: uint16(20705), + 4447: uint16(23200), + 4448: uint16(24932), + 4449: uint16(33828), + 4450: uint16(24898), + 4451: uint16(63654), + 4452: uint16(28370), + 4453: uint16(24961), + 4454: uint16(20980), + 4455: uint16(1622), + 4456: uint16(24967), + 4457: uint16(23466), + 4458: uint16(16311), + 4459: uint16(10335), + 4460: uint16(25043), + 4461: uint16(35741), + 4462: uint16(39261), + 4463: uint16(25040), + 4464: uint16(14642), + 4465: uint16(10624), + 4466: uint16(10433), + 4467: uint16(24611), + 4468: uint16(24924), + 4469: uint16(25886), + 4470: uint16(25483), + 4471: uint16(280), + 4472: uint16(25285), + 4473: uint16(6000), + 4474: uint16(25301), + 4475: uint16(11789), + 4476: uint16(25452), + 4477: uint16(18911), + 4478: uint16(14871), + 4479: uint16(25656), + 4480: uint16(25592), + 4481: uint16(5006), + 4482: uint16(6140), + 4484: uint16(28554), + 4485: uint16(11830), + 4486: uint16(38932), + 4487: uint16(16524), + 4488: uint16(22301), + 4489: uint16(25825), + 4490: uint16(25829), + 4491: uint16(38011), + 4492: uint16(14950), + 4493: uint16(25658), + 4494: uint16(14935), + 4495: uint16(25933), + 4496: uint16(28438), + 4497: uint16(18984), + 4498: uint16(18979), + 4499: uint16(25989), + 4500: uint16(25965), + 4501: uint16(25951), + 4502: uint16(12414), + 4503: uint16(26037), + 4504: uint16(18752), + 4505: uint16(19255), + 4506: uint16(26065), + 4507: uint16(16600), + 4508: uint16(6185), + 4509: uint16(26080), + 4510: uint16(26083), + 4511: uint16(24543), + 4512: uint16(13312), + 4513: uint16(26136), + 4514: uint16(12791), + 4515: uint16(12792), + 4516: uint16(26180), + 4517: uint16(12708), + 4518: uint16(12709), + 4519: uint16(26187), + 4520: uint16(3701), + 4521: uint16(26215), + 4522: uint16(20966), + 4523: uint16(26227), + 4525: uint16(7741), + 4526: uint16(12849), + 4527: uint16(34292), + 4528: uint16(12744), + 4529: uint16(21267), + 4530: uint16(30661), + 4531: uint16(10487), + 4532: uint16(39332), + 4533: uint16(26370), + 4534: uint16(17308), + 4535: uint16(18977), + 4536: uint16(15147), + 4537: uint16(27130), + 4538: uint16(14274), + 4540: uint16(26471), + 4541: uint16(26466), + 4542: uint16(16845), + 4543: uint16(37101), + 4544: uint16(26583), + 4545: uint16(17641), + 4546: uint16(26658), + 4547: uint16(28240), + 4548: uint16(37436), + 4549: uint16(26625), + 4550: uint16(13286), + 4551: uint16(28064), + 4552: uint16(26717), + 4553: uint16(13423), + 4554: uint16(27105), + 4555: uint16(27147), + 4556: uint16(35551), + 4557: uint16(26995), + 4558: uint16(26819), + 4559: uint16(13773), + 4560: uint16(26881), + 4561: uint16(26880), + 4562: uint16(15666), + 4563: uint16(14849), + 4564: uint16(13884), + 4565: uint16(15232), + 4566: uint16(26540), + 4567: uint16(26977), + 4568: uint16(35402), + 4569: uint16(17148), + 4570: uint16(26934), + 4571: uint16(27032), + 4572: uint16(15265), + 4573: uint16(969), + 4574: uint16(33635), + 4575: uint16(20624), + 4576: uint16(27129), + 4577: uint16(13913), + 4578: uint16(8490), + 4579: uint16(27205), + 4580: uint16(14083), + 4581: uint16(27293), + 4582: uint16(15347), + 4583: uint16(26545), + 4584: uint16(27336), + 4585: uint16(37276), + 4586: uint16(15373), + 4587: uint16(27421), + 4588: uint16(2339), + 4589: uint16(24798), + 4590: uint16(27445), + 4591: uint16(27508), + 4592: uint16(10189), + 4593: uint16(28341), + 4594: uint16(15067), + 4595: uint16(949), + 4596: uint16(6488), + 4597: uint16(14144), + 4598: uint16(21537), + 4599: uint16(15194), + 4600: uint16(27617), + 4601: uint16(16124), + 4602: uint16(27612), + 4603: uint16(27703), + 4604: uint16(9355), + 4605: uint16(18673), + 4606: uint16(27473), + 4607: uint16(27738), + 4608: uint16(33318), + 4609: uint16(27769), + 4610: uint16(15804), + 4611: uint16(17605), + 4612: uint16(15805), + 4613: uint16(16804), + 4614: uint16(18700), + 4615: uint16(18688), + 4616: uint16(15561), + 4617: uint16(14053), + 4618: uint16(15595), + 4619: uint16(3378), + 4620: uint16(39811), + 4621: uint16(12793), + 4622: uint16(9361), + 4623: uint16(32655), + 4624: uint16(26679), + 4625: uint16(27941), + 4626: uint16(28065), + 4627: uint16(28139), + 4628: uint16(28054), + 4629: uint16(27996), + 4630: uint16(28284), + 4631: uint16(28420), + 4632: uint16(18815), + 4633: uint16(16517), + 4634: uint16(28274), + 4635: uint16(34099), + 4636: uint16(28532), + 4637: uint16(20935), + 4640: uint16(33838), + 4641: uint16(35617), + 4643: uint16(15919), + 4644: uint16(29779), + 4645: uint16(16258), + 4646: uint16(31180), + 4647: uint16(28239), + 4648: uint16(23185), + 4649: uint16(12363), + 4650: uint16(28664), + 4651: uint16(14093), + 4652: uint16(28573), + 4653: uint16(15920), + 4654: uint16(28410), + 4655: uint16(5271), + 4656: uint16(16445), + 4657: uint16(17749), + 4658: uint16(37872), + 4659: uint16(28484), + 4660: uint16(28508), + 4661: uint16(15694), + 4662: uint16(28532), + 4663: uint16(37232), + 4664: uint16(15675), + 4665: uint16(28575), + 4666: uint16(16708), + 4667: uint16(28627), + 4668: uint16(16529), + 4669: uint16(16725), + 4670: uint16(16441), + 4671: uint16(16368), + 4672: uint16(16308), + 4673: uint16(16703), + 4674: uint16(20959), + 4675: uint16(16726), + 4676: uint16(16727), + 4677: uint16(16704), + 4678: uint16(25053), + 4679: uint16(28747), + 4680: uint16(28798), + 4681: uint16(28839), + 4682: uint16(28801), + 4683: uint16(28876), + 4684: uint16(28885), + 4685: uint16(28886), + 4686: uint16(28895), + 4687: uint16(16644), + 4688: uint16(15848), + 4689: uint16(29108), + 4690: uint16(29078), + 4691: uint16(17015), + 4692: uint16(28971), + 4693: uint16(28997), + 4694: uint16(23176), + 4695: uint16(29002), + 4697: uint16(23708), + 4698: uint16(17253), + 4699: uint16(29007), + 4700: uint16(37730), + 4701: uint16(17089), + 4702: uint16(28972), + 4703: uint16(17498), + 4704: uint16(18983), + 4705: uint16(18978), + 4706: uint16(29114), + 4707: uint16(35816), + 4708: uint16(28861), + 4709: uint16(29198), + 4710: uint16(37954), + 4711: uint16(29205), + 4712: uint16(22801), + 4713: uint16(37955), + 4714: uint16(29220), + 4715: uint16(37697), + 4716: uint16(22021), + 4717: uint16(29230), + 4718: uint16(29248), + 4719: uint16(18804), + 4720: uint16(26813), + 4721: uint16(29269), + 4722: uint16(29271), + 4723: uint16(15957), + 4724: uint16(12356), + 4725: uint16(26637), + 4726: uint16(28477), + 4727: uint16(29314), + 4729: uint16(29483), + 4730: uint16(18467), + 4731: uint16(34859), + 4732: uint16(18669), + 4733: uint16(34820), + 4734: uint16(29480), + 4735: uint16(29486), + 4736: uint16(29647), + 4737: uint16(29610), + 4738: uint16(3130), + 4739: uint16(27182), + 4740: uint16(29641), + 4741: uint16(29769), + 4742: uint16(16866), + 4743: uint16(5863), + 4744: uint16(18980), + 4745: uint16(26147), + 4746: uint16(14021), + 4747: uint16(18871), + 4748: uint16(18829), + 4749: uint16(18939), + 4750: uint16(29687), + 4751: uint16(29717), + 4752: uint16(26883), + 4753: uint16(18982), + 4754: uint16(29753), + 4755: uint16(1475), + 4756: uint16(16087), + 4758: uint16(10413), + 4759: uint16(29792), + 4760: uint16(36530), + 4761: uint16(29767), + 4762: uint16(29668), + 4763: uint16(29814), + 4764: uint16(33721), + 4765: uint16(29804), + 4766: uint16(14128), + 4767: uint16(29812), + 4768: uint16(37873), + 4769: uint16(27180), + 4770: uint16(29826), + 4771: uint16(18771), + 4772: uint16(19084), + 4773: uint16(16735), + 4774: uint16(19065), + 4775: uint16(35727), + 4776: uint16(23366), + 4777: uint16(35843), + 4778: uint16(6302), + 4779: uint16(29896), + 4780: uint16(6536), + 4781: uint16(29966), + 4783: uint16(29982), + 4784: uint16(36569), + 4785: uint16(6731), + 4786: uint16(23511), + 4787: uint16(36524), + 4788: uint16(37765), + 4789: uint16(30029), + 4790: uint16(30026), + 4791: uint16(30055), + 4792: uint16(30062), + 4793: uint16(20354), + 4794: uint16(16132), + 4795: uint16(19731), + 4796: uint16(30094), + 4797: uint16(29789), + 4798: uint16(30110), + 4799: uint16(30132), + 4800: uint16(30210), + 4801: uint16(30252), + 4802: uint16(30289), + 4803: uint16(30287), + 4804: uint16(30319), + 4805: uint16(30326), + 4806: uint16(25589), + 4807: uint16(30352), + 4808: uint16(33263), + 4809: uint16(14328), + 4810: uint16(26897), + 4811: uint16(26894), + 4812: uint16(30369), + 4813: uint16(30373), + 4814: uint16(30391), + 4815: uint16(30412), + 4816: uint16(28575), + 4817: uint16(33890), + 4818: uint16(20637), + 4819: uint16(20861), + 4820: uint16(7708), + 4821: uint16(30494), + 4822: uint16(30502), + 4823: uint16(30528), + 4824: uint16(25775), + 4825: uint16(21024), + 4826: uint16(30552), + 4827: uint16(12972), + 4828: uint16(30639), + 4829: uint16(35172), + 4830: uint16(35176), + 4831: uint16(5825), + 4832: uint16(30708), + 4834: uint16(4982), + 4835: uint16(18962), + 4836: uint16(26826), + 4837: uint16(30895), + 4838: uint16(30919), + 4839: uint16(30931), + 4840: uint16(38565), + 4841: uint16(31022), + 4842: uint16(21984), + 4843: uint16(30935), + 4844: uint16(31028), + 4845: uint16(30897), + 4846: uint16(30220), + 4847: uint16(36792), + 4848: uint16(34948), + 4849: uint16(35627), + 4850: uint16(24707), + 4851: uint16(9756), + 4852: uint16(31110), + 4853: uint16(35072), + 4854: uint16(26882), + 4855: uint16(31104), + 4856: uint16(22615), + 4857: uint16(31133), + 4858: uint16(31545), + 4859: uint16(31036), + 4860: uint16(31145), + 4861: uint16(28202), + 4862: uint16(28966), + 4863: uint16(16040), + 4864: uint16(31174), + 4865: uint16(37133), + 4866: uint16(31188), + 4867: uint16(1312), + 4868: uint16(17503), + 4869: uint16(21007), + 4870: uint16(47234), + 4871: uint16(248), + 4872: uint16(16384), + 4873: uint16(43296), + 4874: uint16(1102), + 4877: uint16(2868), + 4878: uint16(1), + 4886: uint16(3072), + 4887: uint16(64), + 4891: uint16(1024), + 4892: uint16(88), + 4893: uint16(60), + 4896: uint16(23680), + 4897: uint16(56493), + 4898: uint16(48115), + 4899: uint16(17353), + 4900: uint16(60910), + 4901: uint16(4004), + 4902: uint16(49446), + 4903: uint16(30363), + 4904: uint16(61426), + 4905: uint16(64478), + 4906: uint16(63482), + 4907: uint16(12815), + 4908: uint16(44868), + 4909: uint16(61438), + 4910: uint16(65277), + 4911: uint16(24593), + 4912: uint16(176), + 4913: uint16(8448), + 4914: uint16(33049), + 4915: uint16(4128), + 4916: uint16(43144), + 4917: uint16(8544), + 4918: uint16(9321), + 4919: uint16(17408), + 4920: uint16(50313), + 4922: uint16(16387), + 4923: uint16(53), + 4924: uint16(33859), + 4925: uint16(20785), + 4926: uint16(26771), + 4927: uint16(514), + 4933: uint16(16384), + 4934: uint16(256), + 4935: uint16(44160), + 4936: uint16(33380), + 4937: uint16(35904), + 4938: uint16(37025), + 4939: uint16(20484), + 4940: uint16(54368), + 4941: uint16(53760), + 4942: uint16(6186), + 4943: uint16(26781), + 4944: uint16(38709), + 4945: uint16(55375), + 4946: uint16(8440), + 4947: uint16(33476), + 4948: uint16(10268), + 4949: uint16(30082), + 4950: uint16(660), + 4951: uint16(16440), + 4952: uint16(41376), + 4953: uint16(4293), + 4954: uint16(19825), + 4955: uint16(3524), + 4956: uint16(47512), + 4957: uint16(23390), + 4958: uint16(17153), + 4959: uint16(39327), + 4960: uint16(30723), + 4961: uint16(57888), + 4962: uint16(2079), + 4963: uint16(393), + 4964: uint16(16585), + 4965: uint16(775), + 4966: uint16(39437), + 4967: uint16(21136), + 4968: uint16(20433), + 4969: uint16(892), + 4970: uint16(8450), + 4971: uint16(49184), + 4972: uint16(4974), + 4973: uint16(46467), + 4974: uint16(62939), + 4975: uint16(30693), + 4976: uint16(20368), + 4977: uint16(39447), + 4978: uint16(5942), + 4979: uint16(12), + 4980: uint16(47726), + 4981: uint16(12041), + 4982: uint16(21600), + 4983: uint16(7680), + 4984: uint16(26744), + 4985: uint16(28706), + 4986: uint16(40534), + 4987: uint16(62245), + 4988: uint16(46990), + 4989: uint16(2839), + 4990: uint16(59119), + 4991: uint16(6007), + 4992: uint16(7003), + 4993: uint16(4289), + 4994: uint16(36248), + 4995: uint16(6162), + 4996: uint16(53174), + 4997: uint16(12545), + 4998: uint16(6770), + 4999: uint16(11355), + 5000: uint16(49334), + 5001: uint16(57888), + 5002: uint16(23747), + 5003: uint16(7042), + 5004: uint16(56032), + 5005: uint16(34254), + 5006: uint16(16598), + 5007: uint16(21673), + 5008: uint16(53259), + 5009: uint16(18447), + 5010: uint16(16452), + 5011: uint16(2320), + 5012: uint16(16596), + 5013: uint16(15278), + 5014: uint16(7780), + 5015: uint16(11076), + 5016: uint16(2071), + 5017: uint16(33414), + 5018: uint16(6198), + 5019: uint16(35232), + 5020: uint16(40167), + 5021: uint16(2139), + 5022: uint16(900), + 5023: uint16(55810), + 5024: uint16(60560), + 5025: uint16(34779), + 5026: uint16(49029), + 5027: uint16(44450), + 5028: uint16(36509), + 5029: uint16(39069), + 5030: uint16(9504), + 5031: uint16(70), + 5032: uint16(40774), + 5033: uint16(58239), + 5034: uint16(51669), + 5035: uint16(62596), + 5036: uint16(19926), + 5037: uint16(58118), + 5038: uint16(6326), + 5039: uint16(2322), + 5041: uint16(1024), + 5043: uint16(32), + 5045: uint16(512), + 5050: uint16(8192), + 5057: uint16(8), + 5058: uint16(36352), + 5059: uint16(28280), + 5060: uint16(16223), + 5061: uint16(56702), + 5062: uint16(63293), + 5063: uint16(39932), + 5064: uint16(44796), + 5065: uint16(65490), + 5066: uint16(27535), + 5067: uint16(59377), + 5068: uint16(47807), + 5069: uint16(28334), + 5070: uint16(61207), + 5071: uint16(42972), + 5072: uint16(46654), + 5073: uint16(30645), + 5074: uint16(37577), + 5075: uint16(42455), + 5076: uint16(19126), + 5077: uint16(39790), + 5078: uint16(33209), + 5079: uint16(26445), + 5080: uint16(21758), + 5081: uint16(39921), + 5082: uint16(65122), + 5083: uint16(21103), + 5084: uint16(14039), + 5085: uint16(49150), + 5086: uint16(17705), + 5087: uint16(63873), + 5088: uint16(26045), + 5089: uint16(17062), + 5090: uint16(57), + 5091: uint16(16896), + 5092: uint16(36704), + 5093: uint16(37888), + 5094: uint16(16448), + 5095: uint16(45010), + 5096: uint16(53719), + 5097: uint16(219), + 5098: uint16(39072), + 5099: uint16(31666), + 5100: uint16(20998), + 5101: uint16(38944), + 5102: uint16(51222), + 5103: uint16(2365), + 5105: uint16(1), + 5107: uint16(2561), + 5108: uint16(2226), + 5109: uint16(128), + 5111: uint16(34820), + 5112: uint16(5152), + 5113: uint16(19472), + 5115: uint16(4), + 5116: uint16(17569), + 5117: uint16(16), + 5118: uint16(321), + 5119: uint16(2048), + 5120: uint16(61504), + 5121: uint16(20447), + 5122: uint16(22582), + 5123: uint16(62961), + 5124: uint16(32949), + 5125: uint16(26613), + 5126: uint16(16512), + 5127: uint16(20480), + 5128: uint16(16718), + 5129: uint16(33992), + 5130: uint16(23040), + 5131: uint16(55392), + 5132: uint16(11009), + 5133: uint16(20481), + 5134: uint16(5793), + 5135: uint16(16580), + 5136: uint16(28402), + 5137: uint16(44049), + 5138: uint16(14624), + 5139: uint16(49348), + 5140: uint16(1800), + 5141: uint16(2316), + 5142: uint16(38552), + 5143: uint16(39876), + 5144: uint16(7184), + 5145: uint16(27800), + 5146: uint16(10886), + 5147: uint16(422), + 5148: uint16(4422), + 5149: uint16(58733), + 5150: uint16(50379), + 5151: uint16(37568), + 5152: uint16(8464), + 5153: uint16(4630), + 5154: uint16(29341), + 5155: uint16(27124), + 5156: uint16(5902), + 5157: uint16(41514), + 5158: uint16(62593), + 5159: uint16(123), + 5160: uint16(41992), + 5161: uint16(36875), + 5162: uint16(11280), + 5163: uint16(14796), + 5164: uint16(330), + 5165: uint16(5872), + 5166: uint16(2571), + 5167: uint16(3136), + 5168: uint16(59933), + 5169: uint16(17420), + 5170: uint16(17678), + 5171: uint16(2), +} + +var _ksc = [93][94]uint16{ + 0: { + 0: uint16(12288), + 1: uint16(12289), + 2: uint16(12290), + 3: uint16(183), + 4: uint16(8229), + 5: uint16(8230), + 6: uint16(168), + 7: uint16(12291), + 8: uint16(173), + 9: uint16(8213), + 10: uint16(8741), + 11: uint16(65340), + 12: uint16(8764), + 13: uint16(8216), + 14: uint16(8217), + 15: uint16(8220), + 16: uint16(8221), + 17: uint16(12308), + 18: uint16(12309), + 19: uint16(12296), + 20: uint16(12297), + 21: uint16(12298), + 22: uint16(12299), + 23: uint16(12300), + 24: uint16(12301), + 25: uint16(12302), + 26: uint16(12303), + 27: uint16(12304), + 28: uint16(12305), + 29: uint16(177), + 30: uint16(215), + 31: uint16(247), + 32: uint16(8800), + 33: uint16(8804), + 34: uint16(8805), + 35: uint16(8734), + 36: uint16(8756), + 37: uint16(176), + 38: uint16(8242), + 39: uint16(8243), + 40: uint16(8451), + 41: uint16(8491), + 42: uint16(65504), + 43: uint16(65505), + 44: uint16(65509), + 45: uint16(9794), + 46: uint16(9792), + 47: uint16(8736), + 48: uint16(8869), + 49: uint16(8978), + 50: uint16(8706), + 51: uint16(8711), + 52: uint16(8801), + 53: uint16(8786), + 54: uint16(167), + 55: uint16(8251), + 56: uint16(9734), + 57: uint16(9733), + 58: uint16(9675), + 59: uint16(9679), + 60: uint16(9678), + 61: uint16(9671), + 62: uint16(9670), + 63: uint16(9633), + 64: uint16(9632), + 65: uint16(9651), + 66: uint16(9650), + 67: uint16(9661), + 68: uint16(9660), + 69: uint16(8594), + 70: uint16(8592), + 71: uint16(8593), + 72: uint16(8595), + 73: uint16(8596), + 74: uint16(12307), + 75: uint16(8810), + 76: uint16(8811), + 77: uint16(8730), + 78: uint16(8765), + 79: uint16(8733), + 80: uint16(8757), + 81: uint16(8747), + 82: uint16(8748), + 83: uint16(8712), + 84: uint16(8715), + 85: uint16(8838), + 86: uint16(8839), + 87: uint16(8834), + 88: uint16(8835), + 89: uint16(8746), + 90: uint16(8745), + 91: uint16(8743), + 92: uint16(8744), + 93: uint16(65506), + }, + 1: { + 0: uint16(8658), + 1: uint16(8660), + 2: uint16(8704), + 3: uint16(8707), + 4: uint16(180), + 5: uint16(65374), + 6: uint16(711), + 7: uint16(728), + 8: uint16(733), + 9: uint16(730), + 10: uint16(729), + 11: uint16(184), + 12: uint16(731), + 13: uint16(161), + 14: uint16(191), + 15: uint16(720), + 16: uint16(8750), + 17: uint16(8721), + 18: uint16(8719), + 19: uint16(164), + 20: uint16(8457), + 21: uint16(8240), + 22: uint16(9665), + 23: uint16(9664), + 24: uint16(9655), + 25: uint16(9654), + 26: uint16(9828), + 27: uint16(9824), + 28: uint16(9825), + 29: uint16(9829), + 30: uint16(9831), + 31: uint16(9827), + 32: uint16(8857), + 33: uint16(9672), + 34: uint16(9635), + 35: uint16(9680), + 36: uint16(9681), + 37: uint16(9618), + 38: uint16(9636), + 39: uint16(9637), + 40: uint16(9640), + 41: uint16(9639), + 42: uint16(9638), + 43: uint16(9641), + 44: uint16(9832), + 45: uint16(9743), + 46: uint16(9742), + 47: uint16(9756), + 48: uint16(9758), + 49: uint16(182), + 50: uint16(8224), + 51: uint16(8225), + 52: uint16(8597), + 53: uint16(8599), + 54: uint16(8601), + 55: uint16(8598), + 56: uint16(8600), + 57: uint16(9837), + 58: uint16(9833), + 59: uint16(9834), + 60: uint16(9836), + 61: uint16(12927), + 62: uint16(12828), + 63: uint16(8470), + 64: uint16(13255), + 65: uint16(8482), + 66: uint16(13250), + 67: uint16(13272), + 68: uint16(8481), + 69: uint16(8364), + 70: uint16(174), + }, + 2: { + 0: uint16(65281), + 1: uint16(65282), + 2: uint16(65283), + 3: uint16(65284), + 4: uint16(65285), + 5: uint16(65286), + 6: uint16(65287), + 7: uint16(65288), + 8: uint16(65289), + 9: uint16(65290), + 10: uint16(65291), + 11: uint16(65292), + 12: uint16(65293), + 13: uint16(65294), + 14: uint16(65295), + 15: uint16(65296), + 16: uint16(65297), + 17: uint16(65298), + 18: uint16(65299), + 19: uint16(65300), + 20: uint16(65301), + 21: uint16(65302), + 22: uint16(65303), + 23: uint16(65304), + 24: uint16(65305), + 25: uint16(65306), + 26: uint16(65307), + 27: uint16(65308), + 28: uint16(65309), + 29: uint16(65310), + 30: uint16(65311), + 31: uint16(65312), + 32: uint16(65313), + 33: uint16(65314), + 34: uint16(65315), + 35: uint16(65316), + 36: uint16(65317), + 37: uint16(65318), + 38: uint16(65319), + 39: uint16(65320), + 40: uint16(65321), + 41: uint16(65322), + 42: uint16(65323), + 43: uint16(65324), + 44: uint16(65325), + 45: uint16(65326), + 46: uint16(65327), + 47: uint16(65328), + 48: uint16(65329), + 49: uint16(65330), + 50: uint16(65331), + 51: uint16(65332), + 52: uint16(65333), + 53: uint16(65334), + 54: uint16(65335), + 55: uint16(65336), + 56: uint16(65337), + 57: uint16(65338), + 58: uint16(65339), + 59: uint16(65510), + 60: uint16(65341), + 61: uint16(65342), + 62: uint16(65343), + 63: uint16(65344), + 64: uint16(65345), + 65: uint16(65346), + 66: uint16(65347), + 67: uint16(65348), + 68: uint16(65349), + 69: uint16(65350), + 70: uint16(65351), + 71: uint16(65352), + 72: uint16(65353), + 73: uint16(65354), + 74: uint16(65355), + 75: uint16(65356), + 76: uint16(65357), + 77: uint16(65358), + 78: uint16(65359), + 79: uint16(65360), + 80: uint16(65361), + 81: uint16(65362), + 82: uint16(65363), + 83: uint16(65364), + 84: uint16(65365), + 85: uint16(65366), + 86: uint16(65367), + 87: uint16(65368), + 88: uint16(65369), + 89: uint16(65370), + 90: uint16(65371), + 91: uint16(65372), + 92: uint16(65373), + 93: uint16(65507), + }, + 3: { + 0: uint16(12593), + 1: uint16(12594), + 2: uint16(12595), + 3: uint16(12596), + 4: uint16(12597), + 5: uint16(12598), + 6: uint16(12599), + 7: uint16(12600), + 8: uint16(12601), + 9: uint16(12602), + 10: uint16(12603), + 11: uint16(12604), + 12: uint16(12605), + 13: uint16(12606), + 14: uint16(12607), + 15: uint16(12608), + 16: uint16(12609), + 17: uint16(12610), + 18: uint16(12611), + 19: uint16(12612), + 20: uint16(12613), + 21: uint16(12614), + 22: uint16(12615), + 23: uint16(12616), + 24: uint16(12617), + 25: uint16(12618), + 26: uint16(12619), + 27: uint16(12620), + 28: uint16(12621), + 29: uint16(12622), + 30: uint16(12623), + 31: uint16(12624), + 32: uint16(12625), + 33: uint16(12626), + 34: uint16(12627), + 35: uint16(12628), + 36: uint16(12629), + 37: uint16(12630), + 38: uint16(12631), + 39: uint16(12632), + 40: uint16(12633), + 41: uint16(12634), + 42: uint16(12635), + 43: uint16(12636), + 44: uint16(12637), + 45: uint16(12638), + 46: uint16(12639), + 47: uint16(12640), + 48: uint16(12641), + 49: uint16(12642), + 50: uint16(12643), + 51: uint16(12644), + 52: uint16(12645), + 53: uint16(12646), + 54: uint16(12647), + 55: uint16(12648), + 56: uint16(12649), + 57: uint16(12650), + 58: uint16(12651), + 59: uint16(12652), + 60: uint16(12653), + 61: uint16(12654), + 62: uint16(12655), + 63: uint16(12656), + 64: uint16(12657), + 65: uint16(12658), + 66: uint16(12659), + 67: uint16(12660), + 68: uint16(12661), + 69: uint16(12662), + 70: uint16(12663), + 71: uint16(12664), + 72: uint16(12665), + 73: uint16(12666), + 74: uint16(12667), + 75: uint16(12668), + 76: uint16(12669), + 77: uint16(12670), + 78: uint16(12671), + 79: uint16(12672), + 80: uint16(12673), + 81: uint16(12674), + 82: uint16(12675), + 83: uint16(12676), + 84: uint16(12677), + 85: uint16(12678), + 86: uint16(12679), + 87: uint16(12680), + 88: uint16(12681), + 89: uint16(12682), + 90: uint16(12683), + 91: uint16(12684), + 92: uint16(12685), + 93: uint16(12686), + }, + 4: { + 0: uint16(8560), + 1: uint16(8561), + 2: uint16(8562), + 3: uint16(8563), + 4: uint16(8564), + 5: uint16(8565), + 6: uint16(8566), + 7: uint16(8567), + 8: uint16(8568), + 9: uint16(8569), + 15: uint16(8544), + 16: uint16(8545), + 17: uint16(8546), + 18: uint16(8547), + 19: uint16(8548), + 20: uint16(8549), + 21: uint16(8550), + 22: uint16(8551), + 23: uint16(8552), + 24: uint16(8553), + 32: uint16(913), + 33: uint16(914), + 34: uint16(915), + 35: uint16(916), + 36: uint16(917), + 37: uint16(918), + 38: uint16(919), + 39: uint16(920), + 40: uint16(921), + 41: uint16(922), + 42: uint16(923), + 43: uint16(924), + 44: uint16(925), + 45: uint16(926), + 46: uint16(927), + 47: uint16(928), + 48: uint16(929), + 49: uint16(931), + 50: uint16(932), + 51: uint16(933), + 52: uint16(934), + 53: uint16(935), + 54: uint16(936), + 55: uint16(937), + 64: uint16(945), + 65: uint16(946), + 66: uint16(947), + 67: uint16(948), + 68: uint16(949), + 69: uint16(950), + 70: uint16(951), + 71: uint16(952), + 72: uint16(953), + 73: uint16(954), + 74: uint16(955), + 75: uint16(956), + 76: uint16(957), + 77: uint16(958), + 78: uint16(959), + 79: uint16(960), + 80: uint16(961), + 81: uint16(963), + 82: uint16(964), + 83: uint16(965), + 84: uint16(966), + 85: uint16(967), + 86: uint16(968), + 87: uint16(969), + }, + 5: { + 0: uint16(9472), + 1: uint16(9474), + 2: uint16(9484), + 3: uint16(9488), + 4: uint16(9496), + 5: uint16(9492), + 6: uint16(9500), + 7: uint16(9516), + 8: uint16(9508), + 9: uint16(9524), + 10: uint16(9532), + 11: uint16(9473), + 12: uint16(9475), + 13: uint16(9487), + 14: uint16(9491), + 15: uint16(9499), + 16: uint16(9495), + 17: uint16(9507), + 18: uint16(9523), + 19: uint16(9515), + 20: uint16(9531), + 21: uint16(9547), + 22: uint16(9504), + 23: uint16(9519), + 24: uint16(9512), + 25: uint16(9527), + 26: uint16(9535), + 27: uint16(9501), + 28: uint16(9520), + 29: uint16(9509), + 30: uint16(9528), + 31: uint16(9538), + 32: uint16(9490), + 33: uint16(9489), + 34: uint16(9498), + 35: uint16(9497), + 36: uint16(9494), + 37: uint16(9493), + 38: uint16(9486), + 39: uint16(9485), + 40: uint16(9502), + 41: uint16(9503), + 42: uint16(9505), + 43: uint16(9506), + 44: uint16(9510), + 45: uint16(9511), + 46: uint16(9513), + 47: uint16(9514), + 48: uint16(9517), + 49: uint16(9518), + 50: uint16(9521), + 51: uint16(9522), + 52: uint16(9525), + 53: uint16(9526), + 54: uint16(9529), + 55: uint16(9530), + 56: uint16(9533), + 57: uint16(9534), + 58: uint16(9536), + 59: uint16(9537), + 60: uint16(9539), + 61: uint16(9540), + 62: uint16(9541), + 63: uint16(9542), + 64: uint16(9543), + 65: uint16(9544), + 66: uint16(9545), + 67: uint16(9546), + }, + 6: { + 0: uint16(13205), + 1: uint16(13206), + 2: uint16(13207), + 3: uint16(8467), + 4: uint16(13208), + 5: uint16(13252), + 6: uint16(13219), + 7: uint16(13220), + 8: uint16(13221), + 9: uint16(13222), + 10: uint16(13209), + 11: uint16(13210), + 12: uint16(13211), + 13: uint16(13212), + 14: uint16(13213), + 15: uint16(13214), + 16: uint16(13215), + 17: uint16(13216), + 18: uint16(13217), + 19: uint16(13218), + 20: uint16(13258), + 21: uint16(13197), + 22: uint16(13198), + 23: uint16(13199), + 24: uint16(13263), + 25: uint16(13192), + 26: uint16(13193), + 27: uint16(13256), + 28: uint16(13223), + 29: uint16(13224), + 30: uint16(13232), + 31: uint16(13233), + 32: uint16(13234), + 33: uint16(13235), + 34: uint16(13236), + 35: uint16(13237), + 36: uint16(13238), + 37: uint16(13239), + 38: uint16(13240), + 39: uint16(13241), + 40: uint16(13184), + 41: uint16(13185), + 42: uint16(13186), + 43: uint16(13187), + 44: uint16(13188), + 45: uint16(13242), + 46: uint16(13243), + 47: uint16(13244), + 48: uint16(13245), + 49: uint16(13246), + 50: uint16(13247), + 51: uint16(13200), + 52: uint16(13201), + 53: uint16(13202), + 54: uint16(13203), + 55: uint16(13204), + 56: uint16(8486), + 57: uint16(13248), + 58: uint16(13249), + 59: uint16(13194), + 60: uint16(13195), + 61: uint16(13196), + 62: uint16(13270), + 63: uint16(13253), + 64: uint16(13229), + 65: uint16(13230), + 66: uint16(13231), + 67: uint16(13275), + 68: uint16(13225), + 69: uint16(13226), + 70: uint16(13227), + 71: uint16(13228), + 72: uint16(13277), + 73: uint16(13264), + 74: uint16(13267), + 75: uint16(13251), + 76: uint16(13257), + 77: uint16(13276), + 78: uint16(13254), + }, + 7: { + 0: uint16(198), + 1: uint16(208), + 2: uint16(170), + 3: uint16(294), + 5: uint16(306), + 7: uint16(319), + 8: uint16(321), + 9: uint16(216), + 10: uint16(338), + 11: uint16(186), + 12: uint16(222), + 13: uint16(358), + 14: uint16(330), + 16: uint16(12896), + 17: uint16(12897), + 18: uint16(12898), + 19: uint16(12899), + 20: uint16(12900), + 21: uint16(12901), + 22: uint16(12902), + 23: uint16(12903), + 24: uint16(12904), + 25: uint16(12905), + 26: uint16(12906), + 27: uint16(12907), + 28: uint16(12908), + 29: uint16(12909), + 30: uint16(12910), + 31: uint16(12911), + 32: uint16(12912), + 33: uint16(12913), + 34: uint16(12914), + 35: uint16(12915), + 36: uint16(12916), + 37: uint16(12917), + 38: uint16(12918), + 39: uint16(12919), + 40: uint16(12920), + 41: uint16(12921), + 42: uint16(12922), + 43: uint16(12923), + 44: uint16(9424), + 45: uint16(9425), + 46: uint16(9426), + 47: uint16(9427), + 48: uint16(9428), + 49: uint16(9429), + 50: uint16(9430), + 51: uint16(9431), + 52: uint16(9432), + 53: uint16(9433), + 54: uint16(9434), + 55: uint16(9435), + 56: uint16(9436), + 57: uint16(9437), + 58: uint16(9438), + 59: uint16(9439), + 60: uint16(9440), + 61: uint16(9441), + 62: uint16(9442), + 63: uint16(9443), + 64: uint16(9444), + 65: uint16(9445), + 66: uint16(9446), + 67: uint16(9447), + 68: uint16(9448), + 69: uint16(9449), + 70: uint16(9312), + 71: uint16(9313), + 72: uint16(9314), + 73: uint16(9315), + 74: uint16(9316), + 75: uint16(9317), + 76: uint16(9318), + 77: uint16(9319), + 78: uint16(9320), + 79: uint16(9321), + 80: uint16(9322), + 81: uint16(9323), + 82: uint16(9324), + 83: uint16(9325), + 84: uint16(9326), + 85: uint16(189), + 86: uint16(8531), + 87: uint16(8532), + 88: uint16(188), + 89: uint16(190), + 90: uint16(8539), + 91: uint16(8540), + 92: uint16(8541), + 93: uint16(8542), + }, + 8: { + 0: uint16(230), + 1: uint16(273), + 2: uint16(240), + 3: uint16(295), + 4: uint16(305), + 5: uint16(307), + 6: uint16(312), + 7: uint16(320), + 8: uint16(322), + 9: uint16(248), + 10: uint16(339), + 11: uint16(223), + 12: uint16(254), + 13: uint16(359), + 14: uint16(331), + 15: uint16(329), + 16: uint16(12800), + 17: uint16(12801), + 18: uint16(12802), + 19: uint16(12803), + 20: uint16(12804), + 21: uint16(12805), + 22: uint16(12806), + 23: uint16(12807), + 24: uint16(12808), + 25: uint16(12809), + 26: uint16(12810), + 27: uint16(12811), + 28: uint16(12812), + 29: uint16(12813), + 30: uint16(12814), + 31: uint16(12815), + 32: uint16(12816), + 33: uint16(12817), + 34: uint16(12818), + 35: uint16(12819), + 36: uint16(12820), + 37: uint16(12821), + 38: uint16(12822), + 39: uint16(12823), + 40: uint16(12824), + 41: uint16(12825), + 42: uint16(12826), + 43: uint16(12827), + 44: uint16(9372), + 45: uint16(9373), + 46: uint16(9374), + 47: uint16(9375), + 48: uint16(9376), + 49: uint16(9377), + 50: uint16(9378), + 51: uint16(9379), + 52: uint16(9380), + 53: uint16(9381), + 54: uint16(9382), + 55: uint16(9383), + 56: uint16(9384), + 57: uint16(9385), + 58: uint16(9386), + 59: uint16(9387), + 60: uint16(9388), + 61: uint16(9389), + 62: uint16(9390), + 63: uint16(9391), + 64: uint16(9392), + 65: uint16(9393), + 66: uint16(9394), + 67: uint16(9395), + 68: uint16(9396), + 69: uint16(9397), + 70: uint16(9332), + 71: uint16(9333), + 72: uint16(9334), + 73: uint16(9335), + 74: uint16(9336), + 75: uint16(9337), + 76: uint16(9338), + 77: uint16(9339), + 78: uint16(9340), + 79: uint16(9341), + 80: uint16(9342), + 81: uint16(9343), + 82: uint16(9344), + 83: uint16(9345), + 84: uint16(9346), + 85: uint16(185), + 86: uint16(178), + 87: uint16(179), + 88: uint16(8308), + 89: uint16(8319), + 90: uint16(8321), + 91: uint16(8322), + 92: uint16(8323), + 93: uint16(8324), + }, + 9: { + 0: uint16(12353), + 1: uint16(12354), + 2: uint16(12355), + 3: uint16(12356), + 4: uint16(12357), + 5: uint16(12358), + 6: uint16(12359), + 7: uint16(12360), + 8: uint16(12361), + 9: uint16(12362), + 10: uint16(12363), + 11: uint16(12364), + 12: uint16(12365), + 13: uint16(12366), + 14: uint16(12367), + 15: uint16(12368), + 16: uint16(12369), + 17: uint16(12370), + 18: uint16(12371), + 19: uint16(12372), + 20: uint16(12373), + 21: uint16(12374), + 22: uint16(12375), + 23: uint16(12376), + 24: uint16(12377), + 25: uint16(12378), + 26: uint16(12379), + 27: uint16(12380), + 28: uint16(12381), + 29: uint16(12382), + 30: uint16(12383), + 31: uint16(12384), + 32: uint16(12385), + 33: uint16(12386), + 34: uint16(12387), + 35: uint16(12388), + 36: uint16(12389), + 37: uint16(12390), + 38: uint16(12391), + 39: uint16(12392), + 40: uint16(12393), + 41: uint16(12394), + 42: uint16(12395), + 43: uint16(12396), + 44: uint16(12397), + 45: uint16(12398), + 46: uint16(12399), + 47: uint16(12400), + 48: uint16(12401), + 49: uint16(12402), + 50: uint16(12403), + 51: uint16(12404), + 52: uint16(12405), + 53: uint16(12406), + 54: uint16(12407), + 55: uint16(12408), + 56: uint16(12409), + 57: uint16(12410), + 58: uint16(12411), + 59: uint16(12412), + 60: uint16(12413), + 61: uint16(12414), + 62: uint16(12415), + 63: uint16(12416), + 64: uint16(12417), + 65: uint16(12418), + 66: uint16(12419), + 67: uint16(12420), + 68: uint16(12421), + 69: uint16(12422), + 70: uint16(12423), + 71: uint16(12424), + 72: uint16(12425), + 73: uint16(12426), + 74: uint16(12427), + 75: uint16(12428), + 76: uint16(12429), + 77: uint16(12430), + 78: uint16(12431), + 79: uint16(12432), + 80: uint16(12433), + 81: uint16(12434), + 82: uint16(12435), + }, + 10: { + 0: uint16(12449), + 1: uint16(12450), + 2: uint16(12451), + 3: uint16(12452), + 4: uint16(12453), + 5: uint16(12454), + 6: uint16(12455), + 7: uint16(12456), + 8: uint16(12457), + 9: uint16(12458), + 10: uint16(12459), + 11: uint16(12460), + 12: uint16(12461), + 13: uint16(12462), + 14: uint16(12463), + 15: uint16(12464), + 16: uint16(12465), + 17: uint16(12466), + 18: uint16(12467), + 19: uint16(12468), + 20: uint16(12469), + 21: uint16(12470), + 22: uint16(12471), + 23: uint16(12472), + 24: uint16(12473), + 25: uint16(12474), + 26: uint16(12475), + 27: uint16(12476), + 28: uint16(12477), + 29: uint16(12478), + 30: uint16(12479), + 31: uint16(12480), + 32: uint16(12481), + 33: uint16(12482), + 34: uint16(12483), + 35: uint16(12484), + 36: uint16(12485), + 37: uint16(12486), + 38: uint16(12487), + 39: uint16(12488), + 40: uint16(12489), + 41: uint16(12490), + 42: uint16(12491), + 43: uint16(12492), + 44: uint16(12493), + 45: uint16(12494), + 46: uint16(12495), + 47: uint16(12496), + 48: uint16(12497), + 49: uint16(12498), + 50: uint16(12499), + 51: uint16(12500), + 52: uint16(12501), + 53: uint16(12502), + 54: uint16(12503), + 55: uint16(12504), + 56: uint16(12505), + 57: uint16(12506), + 58: uint16(12507), + 59: uint16(12508), + 60: uint16(12509), + 61: uint16(12510), + 62: uint16(12511), + 63: uint16(12512), + 64: uint16(12513), + 65: uint16(12514), + 66: uint16(12515), + 67: uint16(12516), + 68: uint16(12517), + 69: uint16(12518), + 70: uint16(12519), + 71: uint16(12520), + 72: uint16(12521), + 73: uint16(12522), + 74: uint16(12523), + 75: uint16(12524), + 76: uint16(12525), + 77: uint16(12526), + 78: uint16(12527), + 79: uint16(12528), + 80: uint16(12529), + 81: uint16(12530), + 82: uint16(12531), + 83: uint16(12532), + 84: uint16(12533), + 85: uint16(12534), + }, + 11: { + 0: uint16(1040), + 1: uint16(1041), + 2: uint16(1042), + 3: uint16(1043), + 4: uint16(1044), + 5: uint16(1045), + 6: uint16(1025), + 7: uint16(1046), + 8: uint16(1047), + 9: uint16(1048), + 10: uint16(1049), + 11: uint16(1050), + 12: uint16(1051), + 13: uint16(1052), + 14: uint16(1053), + 15: uint16(1054), + 16: uint16(1055), + 17: uint16(1056), + 18: uint16(1057), + 19: uint16(1058), + 20: uint16(1059), + 21: uint16(1060), + 22: uint16(1061), + 23: uint16(1062), + 24: uint16(1063), + 25: uint16(1064), + 26: uint16(1065), + 27: uint16(1066), + 28: uint16(1067), + 29: uint16(1068), + 30: uint16(1069), + 31: uint16(1070), + 32: uint16(1071), + 48: uint16(1072), + 49: uint16(1073), + 50: uint16(1074), + 51: uint16(1075), + 52: uint16(1076), + 53: uint16(1077), + 54: uint16(1105), + 55: uint16(1078), + 56: uint16(1079), + 57: uint16(1080), + 58: uint16(1081), + 59: uint16(1082), + 60: uint16(1083), + 61: uint16(1084), + 62: uint16(1085), + 63: uint16(1086), + 64: uint16(1087), + 65: uint16(1088), + 66: uint16(1089), + 67: uint16(1090), + 68: uint16(1091), + 69: uint16(1092), + 70: uint16(1093), + 71: uint16(1094), + 72: uint16(1095), + 73: uint16(1096), + 74: uint16(1097), + 75: uint16(1098), + 76: uint16(1099), + 77: uint16(1100), + 78: uint16(1101), + 79: uint16(1102), + 80: uint16(1103), + }, + 12: {}, + 13: {}, + 14: {}, + 15: { + 0: uint16(44032), + 1: uint16(44033), + 2: uint16(44036), + 3: uint16(44039), + 4: uint16(44040), + 5: uint16(44041), + 6: uint16(44042), + 7: uint16(44048), + 8: uint16(44049), + 9: uint16(44050), + 10: uint16(44051), + 11: uint16(44052), + 12: uint16(44053), + 13: uint16(44054), + 14: uint16(44055), + 15: uint16(44057), + 16: uint16(44058), + 17: uint16(44059), + 18: uint16(44060), + 19: uint16(44061), + 20: uint16(44064), + 21: uint16(44068), + 22: uint16(44076), + 23: uint16(44077), + 24: uint16(44079), + 25: uint16(44080), + 26: uint16(44081), + 27: uint16(44088), + 28: uint16(44089), + 29: uint16(44092), + 30: uint16(44096), + 31: uint16(44107), + 32: uint16(44109), + 33: uint16(44116), + 34: uint16(44120), + 35: uint16(44124), + 36: uint16(44144), + 37: uint16(44145), + 38: uint16(44148), + 39: uint16(44151), + 40: uint16(44152), + 41: uint16(44154), + 42: uint16(44160), + 43: uint16(44161), + 44: uint16(44163), + 45: uint16(44164), + 46: uint16(44165), + 47: uint16(44166), + 48: uint16(44169), + 49: uint16(44170), + 50: uint16(44171), + 51: uint16(44172), + 52: uint16(44176), + 53: uint16(44180), + 54: uint16(44188), + 55: uint16(44189), + 56: uint16(44191), + 57: uint16(44192), + 58: uint16(44193), + 59: uint16(44200), + 60: uint16(44201), + 61: uint16(44202), + 62: uint16(44204), + 63: uint16(44207), + 64: uint16(44208), + 65: uint16(44216), + 66: uint16(44217), + 67: uint16(44219), + 68: uint16(44220), + 69: uint16(44221), + 70: uint16(44225), + 71: uint16(44228), + 72: uint16(44232), + 73: uint16(44236), + 74: uint16(44245), + 75: uint16(44247), + 76: uint16(44256), + 77: uint16(44257), + 78: uint16(44260), + 79: uint16(44263), + 80: uint16(44264), + 81: uint16(44266), + 82: uint16(44268), + 83: uint16(44271), + 84: uint16(44272), + 85: uint16(44273), + 86: uint16(44275), + 87: uint16(44277), + 88: uint16(44278), + 89: uint16(44284), + 90: uint16(44285), + 91: uint16(44288), + 92: uint16(44292), + 93: uint16(44294), + }, + 16: { + 0: uint16(44300), + 1: uint16(44301), + 2: uint16(44303), + 3: uint16(44305), + 4: uint16(44312), + 5: uint16(44316), + 6: uint16(44320), + 7: uint16(44329), + 8: uint16(44332), + 9: uint16(44333), + 10: uint16(44340), + 11: uint16(44341), + 12: uint16(44344), + 13: uint16(44348), + 14: uint16(44356), + 15: uint16(44357), + 16: uint16(44359), + 17: uint16(44361), + 18: uint16(44368), + 19: uint16(44372), + 20: uint16(44376), + 21: uint16(44385), + 22: uint16(44387), + 23: uint16(44396), + 24: uint16(44397), + 25: uint16(44400), + 26: uint16(44403), + 27: uint16(44404), + 28: uint16(44405), + 29: uint16(44406), + 30: uint16(44411), + 31: uint16(44412), + 32: uint16(44413), + 33: uint16(44415), + 34: uint16(44417), + 35: uint16(44418), + 36: uint16(44424), + 37: uint16(44425), + 38: uint16(44428), + 39: uint16(44432), + 40: uint16(44444), + 41: uint16(44445), + 42: uint16(44452), + 43: uint16(44471), + 44: uint16(44480), + 45: uint16(44481), + 46: uint16(44484), + 47: uint16(44488), + 48: uint16(44496), + 49: uint16(44497), + 50: uint16(44499), + 51: uint16(44508), + 52: uint16(44512), + 53: uint16(44516), + 54: uint16(44536), + 55: uint16(44537), + 56: uint16(44540), + 57: uint16(44543), + 58: uint16(44544), + 59: uint16(44545), + 60: uint16(44552), + 61: uint16(44553), + 62: uint16(44555), + 63: uint16(44557), + 64: uint16(44564), + 65: uint16(44592), + 66: uint16(44593), + 67: uint16(44596), + 68: uint16(44599), + 69: uint16(44600), + 70: uint16(44602), + 71: uint16(44608), + 72: uint16(44609), + 73: uint16(44611), + 74: uint16(44613), + 75: uint16(44614), + 76: uint16(44618), + 77: uint16(44620), + 78: uint16(44621), + 79: uint16(44622), + 80: uint16(44624), + 81: uint16(44628), + 82: uint16(44630), + 83: uint16(44636), + 84: uint16(44637), + 85: uint16(44639), + 86: uint16(44640), + 87: uint16(44641), + 88: uint16(44645), + 89: uint16(44648), + 90: uint16(44649), + 91: uint16(44652), + 92: uint16(44656), + 93: uint16(44664), + }, + 17: { + 0: uint16(44665), + 1: uint16(44667), + 2: uint16(44668), + 3: uint16(44669), + 4: uint16(44676), + 5: uint16(44677), + 6: uint16(44684), + 7: uint16(44732), + 8: uint16(44733), + 9: uint16(44734), + 10: uint16(44736), + 11: uint16(44740), + 12: uint16(44748), + 13: uint16(44749), + 14: uint16(44751), + 15: uint16(44752), + 16: uint16(44753), + 17: uint16(44760), + 18: uint16(44761), + 19: uint16(44764), + 20: uint16(44776), + 21: uint16(44779), + 22: uint16(44781), + 23: uint16(44788), + 24: uint16(44792), + 25: uint16(44796), + 26: uint16(44807), + 27: uint16(44808), + 28: uint16(44813), + 29: uint16(44816), + 30: uint16(44844), + 31: uint16(44845), + 32: uint16(44848), + 33: uint16(44850), + 34: uint16(44852), + 35: uint16(44860), + 36: uint16(44861), + 37: uint16(44863), + 38: uint16(44865), + 39: uint16(44866), + 40: uint16(44867), + 41: uint16(44872), + 42: uint16(44873), + 43: uint16(44880), + 44: uint16(44892), + 45: uint16(44893), + 46: uint16(44900), + 47: uint16(44901), + 48: uint16(44921), + 49: uint16(44928), + 50: uint16(44932), + 51: uint16(44936), + 52: uint16(44944), + 53: uint16(44945), + 54: uint16(44949), + 55: uint16(44956), + 56: uint16(44984), + 57: uint16(44985), + 58: uint16(44988), + 59: uint16(44992), + 60: uint16(44999), + 61: uint16(45000), + 62: uint16(45001), + 63: uint16(45003), + 64: uint16(45005), + 65: uint16(45006), + 66: uint16(45012), + 67: uint16(45020), + 68: uint16(45032), + 69: uint16(45033), + 70: uint16(45040), + 71: uint16(45041), + 72: uint16(45044), + 73: uint16(45048), + 74: uint16(45056), + 75: uint16(45057), + 76: uint16(45060), + 77: uint16(45068), + 78: uint16(45072), + 79: uint16(45076), + 80: uint16(45084), + 81: uint16(45085), + 82: uint16(45096), + 83: uint16(45124), + 84: uint16(45125), + 85: uint16(45128), + 86: uint16(45130), + 87: uint16(45132), + 88: uint16(45134), + 89: uint16(45139), + 90: uint16(45140), + 91: uint16(45141), + 92: uint16(45143), + 93: uint16(45145), + }, + 18: { + 0: uint16(45149), + 1: uint16(45180), + 2: uint16(45181), + 3: uint16(45184), + 4: uint16(45188), + 5: uint16(45196), + 6: uint16(45197), + 7: uint16(45199), + 8: uint16(45201), + 9: uint16(45208), + 10: uint16(45209), + 11: uint16(45210), + 12: uint16(45212), + 13: uint16(45215), + 14: uint16(45216), + 15: uint16(45217), + 16: uint16(45218), + 17: uint16(45224), + 18: uint16(45225), + 19: uint16(45227), + 20: uint16(45228), + 21: uint16(45229), + 22: uint16(45230), + 23: uint16(45231), + 24: uint16(45233), + 25: uint16(45235), + 26: uint16(45236), + 27: uint16(45237), + 28: uint16(45240), + 29: uint16(45244), + 30: uint16(45252), + 31: uint16(45253), + 32: uint16(45255), + 33: uint16(45256), + 34: uint16(45257), + 35: uint16(45264), + 36: uint16(45265), + 37: uint16(45268), + 38: uint16(45272), + 39: uint16(45280), + 40: uint16(45285), + 41: uint16(45320), + 42: uint16(45321), + 43: uint16(45323), + 44: uint16(45324), + 45: uint16(45328), + 46: uint16(45330), + 47: uint16(45331), + 48: uint16(45336), + 49: uint16(45337), + 50: uint16(45339), + 51: uint16(45340), + 52: uint16(45341), + 53: uint16(45347), + 54: uint16(45348), + 55: uint16(45349), + 56: uint16(45352), + 57: uint16(45356), + 58: uint16(45364), + 59: uint16(45365), + 60: uint16(45367), + 61: uint16(45368), + 62: uint16(45369), + 63: uint16(45376), + 64: uint16(45377), + 65: uint16(45380), + 66: uint16(45384), + 67: uint16(45392), + 68: uint16(45393), + 69: uint16(45396), + 70: uint16(45397), + 71: uint16(45400), + 72: uint16(45404), + 73: uint16(45408), + 74: uint16(45432), + 75: uint16(45433), + 76: uint16(45436), + 77: uint16(45440), + 78: uint16(45442), + 79: uint16(45448), + 80: uint16(45449), + 81: uint16(45451), + 82: uint16(45453), + 83: uint16(45458), + 84: uint16(45459), + 85: uint16(45460), + 86: uint16(45464), + 87: uint16(45468), + 88: uint16(45480), + 89: uint16(45516), + 90: uint16(45520), + 91: uint16(45524), + 92: uint16(45532), + 93: uint16(45533), + }, + 19: { + 0: uint16(45535), + 1: uint16(45544), + 2: uint16(45545), + 3: uint16(45548), + 4: uint16(45552), + 5: uint16(45561), + 6: uint16(45563), + 7: uint16(45565), + 8: uint16(45572), + 9: uint16(45573), + 10: uint16(45576), + 11: uint16(45579), + 12: uint16(45580), + 13: uint16(45588), + 14: uint16(45589), + 15: uint16(45591), + 16: uint16(45593), + 17: uint16(45600), + 18: uint16(45620), + 19: uint16(45628), + 20: uint16(45656), + 21: uint16(45660), + 22: uint16(45664), + 23: uint16(45672), + 24: uint16(45673), + 25: uint16(45684), + 26: uint16(45685), + 27: uint16(45692), + 28: uint16(45700), + 29: uint16(45701), + 30: uint16(45705), + 31: uint16(45712), + 32: uint16(45713), + 33: uint16(45716), + 34: uint16(45720), + 35: uint16(45721), + 36: uint16(45722), + 37: uint16(45728), + 38: uint16(45729), + 39: uint16(45731), + 40: uint16(45733), + 41: uint16(45734), + 42: uint16(45738), + 43: uint16(45740), + 44: uint16(45744), + 45: uint16(45748), + 46: uint16(45768), + 47: uint16(45769), + 48: uint16(45772), + 49: uint16(45776), + 50: uint16(45778), + 51: uint16(45784), + 52: uint16(45785), + 53: uint16(45787), + 54: uint16(45789), + 55: uint16(45794), + 56: uint16(45796), + 57: uint16(45797), + 58: uint16(45798), + 59: uint16(45800), + 60: uint16(45803), + 61: uint16(45804), + 62: uint16(45805), + 63: uint16(45806), + 64: uint16(45807), + 65: uint16(45811), + 66: uint16(45812), + 67: uint16(45813), + 68: uint16(45815), + 69: uint16(45816), + 70: uint16(45817), + 71: uint16(45818), + 72: uint16(45819), + 73: uint16(45823), + 74: uint16(45824), + 75: uint16(45825), + 76: uint16(45828), + 77: uint16(45832), + 78: uint16(45840), + 79: uint16(45841), + 80: uint16(45843), + 81: uint16(45844), + 82: uint16(45845), + 83: uint16(45852), + 84: uint16(45908), + 85: uint16(45909), + 86: uint16(45910), + 87: uint16(45912), + 88: uint16(45915), + 89: uint16(45916), + 90: uint16(45918), + 91: uint16(45919), + 92: uint16(45924), + 93: uint16(45925), + }, + 20: { + 0: uint16(45927), + 1: uint16(45929), + 2: uint16(45931), + 3: uint16(45934), + 4: uint16(45936), + 5: uint16(45937), + 6: uint16(45940), + 7: uint16(45944), + 8: uint16(45952), + 9: uint16(45953), + 10: uint16(45955), + 11: uint16(45956), + 12: uint16(45957), + 13: uint16(45964), + 14: uint16(45968), + 15: uint16(45972), + 16: uint16(45984), + 17: uint16(45985), + 18: uint16(45992), + 19: uint16(45996), + 20: uint16(46020), + 21: uint16(46021), + 22: uint16(46024), + 23: uint16(46027), + 24: uint16(46028), + 25: uint16(46030), + 26: uint16(46032), + 27: uint16(46036), + 28: uint16(46037), + 29: uint16(46039), + 30: uint16(46041), + 31: uint16(46043), + 32: uint16(46045), + 33: uint16(46048), + 34: uint16(46052), + 35: uint16(46056), + 36: uint16(46076), + 37: uint16(46096), + 38: uint16(46104), + 39: uint16(46108), + 40: uint16(46112), + 41: uint16(46120), + 42: uint16(46121), + 43: uint16(46123), + 44: uint16(46132), + 45: uint16(46160), + 46: uint16(46161), + 47: uint16(46164), + 48: uint16(46168), + 49: uint16(46176), + 50: uint16(46177), + 51: uint16(46179), + 52: uint16(46181), + 53: uint16(46188), + 54: uint16(46208), + 55: uint16(46216), + 56: uint16(46237), + 57: uint16(46244), + 58: uint16(46248), + 59: uint16(46252), + 60: uint16(46261), + 61: uint16(46263), + 62: uint16(46265), + 63: uint16(46272), + 64: uint16(46276), + 65: uint16(46280), + 66: uint16(46288), + 67: uint16(46293), + 68: uint16(46300), + 69: uint16(46301), + 70: uint16(46304), + 71: uint16(46307), + 72: uint16(46308), + 73: uint16(46310), + 74: uint16(46316), + 75: uint16(46317), + 76: uint16(46319), + 77: uint16(46321), + 78: uint16(46328), + 79: uint16(46356), + 80: uint16(46357), + 81: uint16(46360), + 82: uint16(46363), + 83: uint16(46364), + 84: uint16(46372), + 85: uint16(46373), + 86: uint16(46375), + 87: uint16(46376), + 88: uint16(46377), + 89: uint16(46378), + 90: uint16(46384), + 91: uint16(46385), + 92: uint16(46388), + 93: uint16(46392), + }, + 21: { + 0: uint16(46400), + 1: uint16(46401), + 2: uint16(46403), + 3: uint16(46404), + 4: uint16(46405), + 5: uint16(46411), + 6: uint16(46412), + 7: uint16(46413), + 8: uint16(46416), + 9: uint16(46420), + 10: uint16(46428), + 11: uint16(46429), + 12: uint16(46431), + 13: uint16(46432), + 14: uint16(46433), + 15: uint16(46496), + 16: uint16(46497), + 17: uint16(46500), + 18: uint16(46504), + 19: uint16(46506), + 20: uint16(46507), + 21: uint16(46512), + 22: uint16(46513), + 23: uint16(46515), + 24: uint16(46516), + 25: uint16(46517), + 26: uint16(46523), + 27: uint16(46524), + 28: uint16(46525), + 29: uint16(46528), + 30: uint16(46532), + 31: uint16(46540), + 32: uint16(46541), + 33: uint16(46543), + 34: uint16(46544), + 35: uint16(46545), + 36: uint16(46552), + 37: uint16(46572), + 38: uint16(46608), + 39: uint16(46609), + 40: uint16(46612), + 41: uint16(46616), + 42: uint16(46629), + 43: uint16(46636), + 44: uint16(46644), + 45: uint16(46664), + 46: uint16(46692), + 47: uint16(46696), + 48: uint16(46748), + 49: uint16(46749), + 50: uint16(46752), + 51: uint16(46756), + 52: uint16(46763), + 53: uint16(46764), + 54: uint16(46769), + 55: uint16(46804), + 56: uint16(46832), + 57: uint16(46836), + 58: uint16(46840), + 59: uint16(46848), + 60: uint16(46849), + 61: uint16(46853), + 62: uint16(46888), + 63: uint16(46889), + 64: uint16(46892), + 65: uint16(46895), + 66: uint16(46896), + 67: uint16(46904), + 68: uint16(46905), + 69: uint16(46907), + 70: uint16(46916), + 71: uint16(46920), + 72: uint16(46924), + 73: uint16(46932), + 74: uint16(46933), + 75: uint16(46944), + 76: uint16(46948), + 77: uint16(46952), + 78: uint16(46960), + 79: uint16(46961), + 80: uint16(46963), + 81: uint16(46965), + 82: uint16(46972), + 83: uint16(46973), + 84: uint16(46976), + 85: uint16(46980), + 86: uint16(46988), + 87: uint16(46989), + 88: uint16(46991), + 89: uint16(46992), + 90: uint16(46993), + 91: uint16(46994), + 92: uint16(46998), + 93: uint16(46999), + }, + 22: { + 0: uint16(47000), + 1: uint16(47001), + 2: uint16(47004), + 3: uint16(47008), + 4: uint16(47016), + 5: uint16(47017), + 6: uint16(47019), + 7: uint16(47020), + 8: uint16(47021), + 9: uint16(47028), + 10: uint16(47029), + 11: uint16(47032), + 12: uint16(47047), + 13: uint16(47049), + 14: uint16(47084), + 15: uint16(47085), + 16: uint16(47088), + 17: uint16(47092), + 18: uint16(47100), + 19: uint16(47101), + 20: uint16(47103), + 21: uint16(47104), + 22: uint16(47105), + 23: uint16(47111), + 24: uint16(47112), + 25: uint16(47113), + 26: uint16(47116), + 27: uint16(47120), + 28: uint16(47128), + 29: uint16(47129), + 30: uint16(47131), + 31: uint16(47133), + 32: uint16(47140), + 33: uint16(47141), + 34: uint16(47144), + 35: uint16(47148), + 36: uint16(47156), + 37: uint16(47157), + 38: uint16(47159), + 39: uint16(47160), + 40: uint16(47161), + 41: uint16(47168), + 42: uint16(47172), + 43: uint16(47185), + 44: uint16(47187), + 45: uint16(47196), + 46: uint16(47197), + 47: uint16(47200), + 48: uint16(47204), + 49: uint16(47212), + 50: uint16(47213), + 51: uint16(47215), + 52: uint16(47217), + 53: uint16(47224), + 54: uint16(47228), + 55: uint16(47245), + 56: uint16(47272), + 57: uint16(47280), + 58: uint16(47284), + 59: uint16(47288), + 60: uint16(47296), + 61: uint16(47297), + 62: uint16(47299), + 63: uint16(47301), + 64: uint16(47308), + 65: uint16(47312), + 66: uint16(47316), + 67: uint16(47325), + 68: uint16(47327), + 69: uint16(47329), + 70: uint16(47336), + 71: uint16(47337), + 72: uint16(47340), + 73: uint16(47344), + 74: uint16(47352), + 75: uint16(47353), + 76: uint16(47355), + 77: uint16(47357), + 78: uint16(47364), + 79: uint16(47384), + 80: uint16(47392), + 81: uint16(47420), + 82: uint16(47421), + 83: uint16(47424), + 84: uint16(47428), + 85: uint16(47436), + 86: uint16(47439), + 87: uint16(47441), + 88: uint16(47448), + 89: uint16(47449), + 90: uint16(47452), + 91: uint16(47456), + 92: uint16(47464), + 93: uint16(47465), + }, + 23: { + 0: uint16(47467), + 1: uint16(47469), + 2: uint16(47476), + 3: uint16(47477), + 4: uint16(47480), + 5: uint16(47484), + 6: uint16(47492), + 7: uint16(47493), + 8: uint16(47495), + 9: uint16(47497), + 10: uint16(47498), + 11: uint16(47501), + 12: uint16(47502), + 13: uint16(47532), + 14: uint16(47533), + 15: uint16(47536), + 16: uint16(47540), + 17: uint16(47548), + 18: uint16(47549), + 19: uint16(47551), + 20: uint16(47553), + 21: uint16(47560), + 22: uint16(47561), + 23: uint16(47564), + 24: uint16(47566), + 25: uint16(47567), + 26: uint16(47568), + 27: uint16(47569), + 28: uint16(47570), + 29: uint16(47576), + 30: uint16(47577), + 31: uint16(47579), + 32: uint16(47581), + 33: uint16(47582), + 34: uint16(47585), + 35: uint16(47587), + 36: uint16(47588), + 37: uint16(47589), + 38: uint16(47592), + 39: uint16(47596), + 40: uint16(47604), + 41: uint16(47605), + 42: uint16(47607), + 43: uint16(47608), + 44: uint16(47609), + 45: uint16(47610), + 46: uint16(47616), + 47: uint16(47617), + 48: uint16(47624), + 49: uint16(47637), + 50: uint16(47672), + 51: uint16(47673), + 52: uint16(47676), + 53: uint16(47680), + 54: uint16(47682), + 55: uint16(47688), + 56: uint16(47689), + 57: uint16(47691), + 58: uint16(47693), + 59: uint16(47694), + 60: uint16(47699), + 61: uint16(47700), + 62: uint16(47701), + 63: uint16(47704), + 64: uint16(47708), + 65: uint16(47716), + 66: uint16(47717), + 67: uint16(47719), + 68: uint16(47720), + 69: uint16(47721), + 70: uint16(47728), + 71: uint16(47729), + 72: uint16(47732), + 73: uint16(47736), + 74: uint16(47747), + 75: uint16(47748), + 76: uint16(47749), + 77: uint16(47751), + 78: uint16(47756), + 79: uint16(47784), + 80: uint16(47785), + 81: uint16(47787), + 82: uint16(47788), + 83: uint16(47792), + 84: uint16(47794), + 85: uint16(47800), + 86: uint16(47801), + 87: uint16(47803), + 88: uint16(47805), + 89: uint16(47812), + 90: uint16(47816), + 91: uint16(47832), + 92: uint16(47833), + 93: uint16(47868), + }, + 24: { + 0: uint16(47872), + 1: uint16(47876), + 2: uint16(47885), + 3: uint16(47887), + 4: uint16(47889), + 5: uint16(47896), + 6: uint16(47900), + 7: uint16(47904), + 8: uint16(47913), + 9: uint16(47915), + 10: uint16(47924), + 11: uint16(47925), + 12: uint16(47926), + 13: uint16(47928), + 14: uint16(47931), + 15: uint16(47932), + 16: uint16(47933), + 17: uint16(47934), + 18: uint16(47940), + 19: uint16(47941), + 20: uint16(47943), + 21: uint16(47945), + 22: uint16(47949), + 23: uint16(47951), + 24: uint16(47952), + 25: uint16(47956), + 26: uint16(47960), + 27: uint16(47969), + 28: uint16(47971), + 29: uint16(47980), + 30: uint16(48008), + 31: uint16(48012), + 32: uint16(48016), + 33: uint16(48036), + 34: uint16(48040), + 35: uint16(48044), + 36: uint16(48052), + 37: uint16(48055), + 38: uint16(48064), + 39: uint16(48068), + 40: uint16(48072), + 41: uint16(48080), + 42: uint16(48083), + 43: uint16(48120), + 44: uint16(48121), + 45: uint16(48124), + 46: uint16(48127), + 47: uint16(48128), + 48: uint16(48130), + 49: uint16(48136), + 50: uint16(48137), + 51: uint16(48139), + 52: uint16(48140), + 53: uint16(48141), + 54: uint16(48143), + 55: uint16(48145), + 56: uint16(48148), + 57: uint16(48149), + 58: uint16(48150), + 59: uint16(48151), + 60: uint16(48152), + 61: uint16(48155), + 62: uint16(48156), + 63: uint16(48157), + 64: uint16(48158), + 65: uint16(48159), + 66: uint16(48164), + 67: uint16(48165), + 68: uint16(48167), + 69: uint16(48169), + 70: uint16(48173), + 71: uint16(48176), + 72: uint16(48177), + 73: uint16(48180), + 74: uint16(48184), + 75: uint16(48192), + 76: uint16(48193), + 77: uint16(48195), + 78: uint16(48196), + 79: uint16(48197), + 80: uint16(48201), + 81: uint16(48204), + 82: uint16(48205), + 83: uint16(48208), + 84: uint16(48221), + 85: uint16(48260), + 86: uint16(48261), + 87: uint16(48264), + 88: uint16(48267), + 89: uint16(48268), + 90: uint16(48270), + 91: uint16(48276), + 92: uint16(48277), + 93: uint16(48279), + }, + 25: { + 0: uint16(48281), + 1: uint16(48282), + 2: uint16(48288), + 3: uint16(48289), + 4: uint16(48292), + 5: uint16(48295), + 6: uint16(48296), + 7: uint16(48304), + 8: uint16(48305), + 9: uint16(48307), + 10: uint16(48308), + 11: uint16(48309), + 12: uint16(48316), + 13: uint16(48317), + 14: uint16(48320), + 15: uint16(48324), + 16: uint16(48333), + 17: uint16(48335), + 18: uint16(48336), + 19: uint16(48337), + 20: uint16(48341), + 21: uint16(48344), + 22: uint16(48348), + 23: uint16(48372), + 24: uint16(48373), + 25: uint16(48374), + 26: uint16(48376), + 27: uint16(48380), + 28: uint16(48388), + 29: uint16(48389), + 30: uint16(48391), + 31: uint16(48393), + 32: uint16(48400), + 33: uint16(48404), + 34: uint16(48420), + 35: uint16(48428), + 36: uint16(48448), + 37: uint16(48456), + 38: uint16(48457), + 39: uint16(48460), + 40: uint16(48464), + 41: uint16(48472), + 42: uint16(48473), + 43: uint16(48484), + 44: uint16(48488), + 45: uint16(48512), + 46: uint16(48513), + 47: uint16(48516), + 48: uint16(48519), + 49: uint16(48520), + 50: uint16(48521), + 51: uint16(48522), + 52: uint16(48528), + 53: uint16(48529), + 54: uint16(48531), + 55: uint16(48533), + 56: uint16(48537), + 57: uint16(48538), + 58: uint16(48540), + 59: uint16(48548), + 60: uint16(48560), + 61: uint16(48568), + 62: uint16(48596), + 63: uint16(48597), + 64: uint16(48600), + 65: uint16(48604), + 66: uint16(48617), + 67: uint16(48624), + 68: uint16(48628), + 69: uint16(48632), + 70: uint16(48640), + 71: uint16(48643), + 72: uint16(48645), + 73: uint16(48652), + 74: uint16(48653), + 75: uint16(48656), + 76: uint16(48660), + 77: uint16(48668), + 78: uint16(48669), + 79: uint16(48671), + 80: uint16(48708), + 81: uint16(48709), + 82: uint16(48712), + 83: uint16(48716), + 84: uint16(48718), + 85: uint16(48724), + 86: uint16(48725), + 87: uint16(48727), + 88: uint16(48729), + 89: uint16(48730), + 90: uint16(48731), + 91: uint16(48736), + 92: uint16(48737), + 93: uint16(48740), + }, + 26: { + 0: uint16(48744), + 1: uint16(48746), + 2: uint16(48752), + 3: uint16(48753), + 4: uint16(48755), + 5: uint16(48756), + 6: uint16(48757), + 7: uint16(48763), + 8: uint16(48764), + 9: uint16(48765), + 10: uint16(48768), + 11: uint16(48772), + 12: uint16(48780), + 13: uint16(48781), + 14: uint16(48783), + 15: uint16(48784), + 16: uint16(48785), + 17: uint16(48792), + 18: uint16(48793), + 19: uint16(48808), + 20: uint16(48848), + 21: uint16(48849), + 22: uint16(48852), + 23: uint16(48855), + 24: uint16(48856), + 25: uint16(48864), + 26: uint16(48867), + 27: uint16(48868), + 28: uint16(48869), + 29: uint16(48876), + 30: uint16(48897), + 31: uint16(48904), + 32: uint16(48905), + 33: uint16(48920), + 34: uint16(48921), + 35: uint16(48923), + 36: uint16(48924), + 37: uint16(48925), + 38: uint16(48960), + 39: uint16(48961), + 40: uint16(48964), + 41: uint16(48968), + 42: uint16(48976), + 43: uint16(48977), + 44: uint16(48981), + 45: uint16(49044), + 46: uint16(49072), + 47: uint16(49093), + 48: uint16(49100), + 49: uint16(49101), + 50: uint16(49104), + 51: uint16(49108), + 52: uint16(49116), + 53: uint16(49119), + 54: uint16(49121), + 55: uint16(49212), + 56: uint16(49233), + 57: uint16(49240), + 58: uint16(49244), + 59: uint16(49248), + 60: uint16(49256), + 61: uint16(49257), + 62: uint16(49296), + 63: uint16(49297), + 64: uint16(49300), + 65: uint16(49304), + 66: uint16(49312), + 67: uint16(49313), + 68: uint16(49315), + 69: uint16(49317), + 70: uint16(49324), + 71: uint16(49325), + 72: uint16(49327), + 73: uint16(49328), + 74: uint16(49331), + 75: uint16(49332), + 76: uint16(49333), + 77: uint16(49334), + 78: uint16(49340), + 79: uint16(49341), + 80: uint16(49343), + 81: uint16(49344), + 82: uint16(49345), + 83: uint16(49349), + 84: uint16(49352), + 85: uint16(49353), + 86: uint16(49356), + 87: uint16(49360), + 88: uint16(49368), + 89: uint16(49369), + 90: uint16(49371), + 91: uint16(49372), + 92: uint16(49373), + 93: uint16(49380), + }, + 27: { + 0: uint16(49381), + 1: uint16(49384), + 2: uint16(49388), + 3: uint16(49396), + 4: uint16(49397), + 5: uint16(49399), + 6: uint16(49401), + 7: uint16(49408), + 8: uint16(49412), + 9: uint16(49416), + 10: uint16(49424), + 11: uint16(49429), + 12: uint16(49436), + 13: uint16(49437), + 14: uint16(49438), + 15: uint16(49439), + 16: uint16(49440), + 17: uint16(49443), + 18: uint16(49444), + 19: uint16(49446), + 20: uint16(49447), + 21: uint16(49452), + 22: uint16(49453), + 23: uint16(49455), + 24: uint16(49456), + 25: uint16(49457), + 26: uint16(49462), + 27: uint16(49464), + 28: uint16(49465), + 29: uint16(49468), + 30: uint16(49472), + 31: uint16(49480), + 32: uint16(49481), + 33: uint16(49483), + 34: uint16(49484), + 35: uint16(49485), + 36: uint16(49492), + 37: uint16(49493), + 38: uint16(49496), + 39: uint16(49500), + 40: uint16(49508), + 41: uint16(49509), + 42: uint16(49511), + 43: uint16(49512), + 44: uint16(49513), + 45: uint16(49520), + 46: uint16(49524), + 47: uint16(49528), + 48: uint16(49541), + 49: uint16(49548), + 50: uint16(49549), + 51: uint16(49550), + 52: uint16(49552), + 53: uint16(49556), + 54: uint16(49558), + 55: uint16(49564), + 56: uint16(49565), + 57: uint16(49567), + 58: uint16(49569), + 59: uint16(49573), + 60: uint16(49576), + 61: uint16(49577), + 62: uint16(49580), + 63: uint16(49584), + 64: uint16(49597), + 65: uint16(49604), + 66: uint16(49608), + 67: uint16(49612), + 68: uint16(49620), + 69: uint16(49623), + 70: uint16(49624), + 71: uint16(49632), + 72: uint16(49636), + 73: uint16(49640), + 74: uint16(49648), + 75: uint16(49649), + 76: uint16(49651), + 77: uint16(49660), + 78: uint16(49661), + 79: uint16(49664), + 80: uint16(49668), + 81: uint16(49676), + 82: uint16(49677), + 83: uint16(49679), + 84: uint16(49681), + 85: uint16(49688), + 86: uint16(49689), + 87: uint16(49692), + 88: uint16(49695), + 89: uint16(49696), + 90: uint16(49704), + 91: uint16(49705), + 92: uint16(49707), + 93: uint16(49709), + }, + 28: { + 0: uint16(49711), + 1: uint16(49713), + 2: uint16(49714), + 3: uint16(49716), + 4: uint16(49736), + 5: uint16(49744), + 6: uint16(49745), + 7: uint16(49748), + 8: uint16(49752), + 9: uint16(49760), + 10: uint16(49765), + 11: uint16(49772), + 12: uint16(49773), + 13: uint16(49776), + 14: uint16(49780), + 15: uint16(49788), + 16: uint16(49789), + 17: uint16(49791), + 18: uint16(49793), + 19: uint16(49800), + 20: uint16(49801), + 21: uint16(49808), + 22: uint16(49816), + 23: uint16(49819), + 24: uint16(49821), + 25: uint16(49828), + 26: uint16(49829), + 27: uint16(49832), + 28: uint16(49836), + 29: uint16(49837), + 30: uint16(49844), + 31: uint16(49845), + 32: uint16(49847), + 33: uint16(49849), + 34: uint16(49884), + 35: uint16(49885), + 36: uint16(49888), + 37: uint16(49891), + 38: uint16(49892), + 39: uint16(49899), + 40: uint16(49900), + 41: uint16(49901), + 42: uint16(49903), + 43: uint16(49905), + 44: uint16(49910), + 45: uint16(49912), + 46: uint16(49913), + 47: uint16(49915), + 48: uint16(49916), + 49: uint16(49920), + 50: uint16(49928), + 51: uint16(49929), + 52: uint16(49932), + 53: uint16(49933), + 54: uint16(49939), + 55: uint16(49940), + 56: uint16(49941), + 57: uint16(49944), + 58: uint16(49948), + 59: uint16(49956), + 60: uint16(49957), + 61: uint16(49960), + 62: uint16(49961), + 63: uint16(49989), + 64: uint16(50024), + 65: uint16(50025), + 66: uint16(50028), + 67: uint16(50032), + 68: uint16(50034), + 69: uint16(50040), + 70: uint16(50041), + 71: uint16(50044), + 72: uint16(50045), + 73: uint16(50052), + 74: uint16(50056), + 75: uint16(50060), + 76: uint16(50112), + 77: uint16(50136), + 78: uint16(50137), + 79: uint16(50140), + 80: uint16(50143), + 81: uint16(50144), + 82: uint16(50146), + 83: uint16(50152), + 84: uint16(50153), + 85: uint16(50157), + 86: uint16(50164), + 87: uint16(50165), + 88: uint16(50168), + 89: uint16(50184), + 90: uint16(50192), + 91: uint16(50212), + 92: uint16(50220), + 93: uint16(50224), + }, + 29: { + 0: uint16(50228), + 1: uint16(50236), + 2: uint16(50237), + 3: uint16(50248), + 4: uint16(50276), + 5: uint16(50277), + 6: uint16(50280), + 7: uint16(50284), + 8: uint16(50292), + 9: uint16(50293), + 10: uint16(50297), + 11: uint16(50304), + 12: uint16(50324), + 13: uint16(50332), + 14: uint16(50360), + 15: uint16(50364), + 16: uint16(50409), + 17: uint16(50416), + 18: uint16(50417), + 19: uint16(50420), + 20: uint16(50424), + 21: uint16(50426), + 22: uint16(50431), + 23: uint16(50432), + 24: uint16(50433), + 25: uint16(50444), + 26: uint16(50448), + 27: uint16(50452), + 28: uint16(50460), + 29: uint16(50472), + 30: uint16(50473), + 31: uint16(50476), + 32: uint16(50480), + 33: uint16(50488), + 34: uint16(50489), + 35: uint16(50491), + 36: uint16(50493), + 37: uint16(50500), + 38: uint16(50501), + 39: uint16(50504), + 40: uint16(50505), + 41: uint16(50506), + 42: uint16(50508), + 43: uint16(50509), + 44: uint16(50510), + 45: uint16(50515), + 46: uint16(50516), + 47: uint16(50517), + 48: uint16(50519), + 49: uint16(50520), + 50: uint16(50521), + 51: uint16(50525), + 52: uint16(50526), + 53: uint16(50528), + 54: uint16(50529), + 55: uint16(50532), + 56: uint16(50536), + 57: uint16(50544), + 58: uint16(50545), + 59: uint16(50547), + 60: uint16(50548), + 61: uint16(50549), + 62: uint16(50556), + 63: uint16(50557), + 64: uint16(50560), + 65: uint16(50564), + 66: uint16(50567), + 67: uint16(50572), + 68: uint16(50573), + 69: uint16(50575), + 70: uint16(50577), + 71: uint16(50581), + 72: uint16(50583), + 73: uint16(50584), + 74: uint16(50588), + 75: uint16(50592), + 76: uint16(50601), + 77: uint16(50612), + 78: uint16(50613), + 79: uint16(50616), + 80: uint16(50617), + 81: uint16(50619), + 82: uint16(50620), + 83: uint16(50621), + 84: uint16(50622), + 85: uint16(50628), + 86: uint16(50629), + 87: uint16(50630), + 88: uint16(50631), + 89: uint16(50632), + 90: uint16(50633), + 91: uint16(50634), + 92: uint16(50636), + 93: uint16(50638), + }, + 30: { + 0: uint16(50640), + 1: uint16(50641), + 2: uint16(50644), + 3: uint16(50648), + 4: uint16(50656), + 5: uint16(50657), + 6: uint16(50659), + 7: uint16(50661), + 8: uint16(50668), + 9: uint16(50669), + 10: uint16(50670), + 11: uint16(50672), + 12: uint16(50676), + 13: uint16(50678), + 14: uint16(50679), + 15: uint16(50684), + 16: uint16(50685), + 17: uint16(50686), + 18: uint16(50687), + 19: uint16(50688), + 20: uint16(50689), + 21: uint16(50693), + 22: uint16(50694), + 23: uint16(50695), + 24: uint16(50696), + 25: uint16(50700), + 26: uint16(50704), + 27: uint16(50712), + 28: uint16(50713), + 29: uint16(50715), + 30: uint16(50716), + 31: uint16(50724), + 32: uint16(50725), + 33: uint16(50728), + 34: uint16(50732), + 35: uint16(50733), + 36: uint16(50734), + 37: uint16(50736), + 38: uint16(50739), + 39: uint16(50740), + 40: uint16(50741), + 41: uint16(50743), + 42: uint16(50745), + 43: uint16(50747), + 44: uint16(50752), + 45: uint16(50753), + 46: uint16(50756), + 47: uint16(50760), + 48: uint16(50768), + 49: uint16(50769), + 50: uint16(50771), + 51: uint16(50772), + 52: uint16(50773), + 53: uint16(50780), + 54: uint16(50781), + 55: uint16(50784), + 56: uint16(50796), + 57: uint16(50799), + 58: uint16(50801), + 59: uint16(50808), + 60: uint16(50809), + 61: uint16(50812), + 62: uint16(50816), + 63: uint16(50824), + 64: uint16(50825), + 65: uint16(50827), + 66: uint16(50829), + 67: uint16(50836), + 68: uint16(50837), + 69: uint16(50840), + 70: uint16(50844), + 71: uint16(50852), + 72: uint16(50853), + 73: uint16(50855), + 74: uint16(50857), + 75: uint16(50864), + 76: uint16(50865), + 77: uint16(50868), + 78: uint16(50872), + 79: uint16(50873), + 80: uint16(50874), + 81: uint16(50880), + 82: uint16(50881), + 83: uint16(50883), + 84: uint16(50885), + 85: uint16(50892), + 86: uint16(50893), + 87: uint16(50896), + 88: uint16(50900), + 89: uint16(50908), + 90: uint16(50909), + 91: uint16(50912), + 92: uint16(50913), + 93: uint16(50920), + }, + 31: { + 0: uint16(50921), + 1: uint16(50924), + 2: uint16(50928), + 3: uint16(50936), + 4: uint16(50937), + 5: uint16(50941), + 6: uint16(50948), + 7: uint16(50949), + 8: uint16(50952), + 9: uint16(50956), + 10: uint16(50964), + 11: uint16(50965), + 12: uint16(50967), + 13: uint16(50969), + 14: uint16(50976), + 15: uint16(50977), + 16: uint16(50980), + 17: uint16(50984), + 18: uint16(50992), + 19: uint16(50993), + 20: uint16(50995), + 21: uint16(50997), + 22: uint16(50999), + 23: uint16(51004), + 24: uint16(51005), + 25: uint16(51008), + 26: uint16(51012), + 27: uint16(51018), + 28: uint16(51020), + 29: uint16(51021), + 30: uint16(51023), + 31: uint16(51025), + 32: uint16(51026), + 33: uint16(51027), + 34: uint16(51028), + 35: uint16(51029), + 36: uint16(51030), + 37: uint16(51031), + 38: uint16(51032), + 39: uint16(51036), + 40: uint16(51040), + 41: uint16(51048), + 42: uint16(51051), + 43: uint16(51060), + 44: uint16(51061), + 45: uint16(51064), + 46: uint16(51068), + 47: uint16(51069), + 48: uint16(51070), + 49: uint16(51075), + 50: uint16(51076), + 51: uint16(51077), + 52: uint16(51079), + 53: uint16(51080), + 54: uint16(51081), + 55: uint16(51082), + 56: uint16(51086), + 57: uint16(51088), + 58: uint16(51089), + 59: uint16(51092), + 60: uint16(51094), + 61: uint16(51095), + 62: uint16(51096), + 63: uint16(51098), + 64: uint16(51104), + 65: uint16(51105), + 66: uint16(51107), + 67: uint16(51108), + 68: uint16(51109), + 69: uint16(51110), + 70: uint16(51116), + 71: uint16(51117), + 72: uint16(51120), + 73: uint16(51124), + 74: uint16(51132), + 75: uint16(51133), + 76: uint16(51135), + 77: uint16(51136), + 78: uint16(51137), + 79: uint16(51144), + 80: uint16(51145), + 81: uint16(51148), + 82: uint16(51150), + 83: uint16(51152), + 84: uint16(51160), + 85: uint16(51165), + 86: uint16(51172), + 87: uint16(51176), + 88: uint16(51180), + 89: uint16(51200), + 90: uint16(51201), + 91: uint16(51204), + 92: uint16(51208), + 93: uint16(51210), + }, + 32: { + 0: uint16(51216), + 1: uint16(51217), + 2: uint16(51219), + 3: uint16(51221), + 4: uint16(51222), + 5: uint16(51228), + 6: uint16(51229), + 7: uint16(51232), + 8: uint16(51236), + 9: uint16(51244), + 10: uint16(51245), + 11: uint16(51247), + 12: uint16(51249), + 13: uint16(51256), + 14: uint16(51260), + 15: uint16(51264), + 16: uint16(51272), + 17: uint16(51273), + 18: uint16(51276), + 19: uint16(51277), + 20: uint16(51284), + 21: uint16(51312), + 22: uint16(51313), + 23: uint16(51316), + 24: uint16(51320), + 25: uint16(51322), + 26: uint16(51328), + 27: uint16(51329), + 28: uint16(51331), + 29: uint16(51333), + 30: uint16(51334), + 31: uint16(51335), + 32: uint16(51339), + 33: uint16(51340), + 34: uint16(51341), + 35: uint16(51348), + 36: uint16(51357), + 37: uint16(51359), + 38: uint16(51361), + 39: uint16(51368), + 40: uint16(51388), + 41: uint16(51389), + 42: uint16(51396), + 43: uint16(51400), + 44: uint16(51404), + 45: uint16(51412), + 46: uint16(51413), + 47: uint16(51415), + 48: uint16(51417), + 49: uint16(51424), + 50: uint16(51425), + 51: uint16(51428), + 52: uint16(51445), + 53: uint16(51452), + 54: uint16(51453), + 55: uint16(51456), + 56: uint16(51460), + 57: uint16(51461), + 58: uint16(51462), + 59: uint16(51468), + 60: uint16(51469), + 61: uint16(51471), + 62: uint16(51473), + 63: uint16(51480), + 64: uint16(51500), + 65: uint16(51508), + 66: uint16(51536), + 67: uint16(51537), + 68: uint16(51540), + 69: uint16(51544), + 70: uint16(51552), + 71: uint16(51553), + 72: uint16(51555), + 73: uint16(51564), + 74: uint16(51568), + 75: uint16(51572), + 76: uint16(51580), + 77: uint16(51592), + 78: uint16(51593), + 79: uint16(51596), + 80: uint16(51600), + 81: uint16(51608), + 82: uint16(51609), + 83: uint16(51611), + 84: uint16(51613), + 85: uint16(51648), + 86: uint16(51649), + 87: uint16(51652), + 88: uint16(51655), + 89: uint16(51656), + 90: uint16(51658), + 91: uint16(51664), + 92: uint16(51665), + 93: uint16(51667), + }, + 33: { + 0: uint16(51669), + 1: uint16(51670), + 2: uint16(51673), + 3: uint16(51674), + 4: uint16(51676), + 5: uint16(51677), + 6: uint16(51680), + 7: uint16(51682), + 8: uint16(51684), + 9: uint16(51687), + 10: uint16(51692), + 11: uint16(51693), + 12: uint16(51695), + 13: uint16(51696), + 14: uint16(51697), + 15: uint16(51704), + 16: uint16(51705), + 17: uint16(51708), + 18: uint16(51712), + 19: uint16(51720), + 20: uint16(51721), + 21: uint16(51723), + 22: uint16(51724), + 23: uint16(51725), + 24: uint16(51732), + 25: uint16(51736), + 26: uint16(51753), + 27: uint16(51788), + 28: uint16(51789), + 29: uint16(51792), + 30: uint16(51796), + 31: uint16(51804), + 32: uint16(51805), + 33: uint16(51807), + 34: uint16(51808), + 35: uint16(51809), + 36: uint16(51816), + 37: uint16(51837), + 38: uint16(51844), + 39: uint16(51864), + 40: uint16(51900), + 41: uint16(51901), + 42: uint16(51904), + 43: uint16(51908), + 44: uint16(51916), + 45: uint16(51917), + 46: uint16(51919), + 47: uint16(51921), + 48: uint16(51923), + 49: uint16(51928), + 50: uint16(51929), + 51: uint16(51936), + 52: uint16(51948), + 53: uint16(51956), + 54: uint16(51976), + 55: uint16(51984), + 56: uint16(51988), + 57: uint16(51992), + 58: uint16(52000), + 59: uint16(52001), + 60: uint16(52033), + 61: uint16(52040), + 62: uint16(52041), + 63: uint16(52044), + 64: uint16(52048), + 65: uint16(52056), + 66: uint16(52057), + 67: uint16(52061), + 68: uint16(52068), + 69: uint16(52088), + 70: uint16(52089), + 71: uint16(52124), + 72: uint16(52152), + 73: uint16(52180), + 74: uint16(52196), + 75: uint16(52199), + 76: uint16(52201), + 77: uint16(52236), + 78: uint16(52237), + 79: uint16(52240), + 80: uint16(52244), + 81: uint16(52252), + 82: uint16(52253), + 83: uint16(52257), + 84: uint16(52258), + 85: uint16(52263), + 86: uint16(52264), + 87: uint16(52265), + 88: uint16(52268), + 89: uint16(52270), + 90: uint16(52272), + 91: uint16(52280), + 92: uint16(52281), + 93: uint16(52283), + }, + 34: { + 0: uint16(52284), + 1: uint16(52285), + 2: uint16(52286), + 3: uint16(52292), + 4: uint16(52293), + 5: uint16(52296), + 6: uint16(52300), + 7: uint16(52308), + 8: uint16(52309), + 9: uint16(52311), + 10: uint16(52312), + 11: uint16(52313), + 12: uint16(52320), + 13: uint16(52324), + 14: uint16(52326), + 15: uint16(52328), + 16: uint16(52336), + 17: uint16(52341), + 18: uint16(52376), + 19: uint16(52377), + 20: uint16(52380), + 21: uint16(52384), + 22: uint16(52392), + 23: uint16(52393), + 24: uint16(52395), + 25: uint16(52396), + 26: uint16(52397), + 27: uint16(52404), + 28: uint16(52405), + 29: uint16(52408), + 30: uint16(52412), + 31: uint16(52420), + 32: uint16(52421), + 33: uint16(52423), + 34: uint16(52425), + 35: uint16(52432), + 36: uint16(52436), + 37: uint16(52452), + 38: uint16(52460), + 39: uint16(52464), + 40: uint16(52481), + 41: uint16(52488), + 42: uint16(52489), + 43: uint16(52492), + 44: uint16(52496), + 45: uint16(52504), + 46: uint16(52505), + 47: uint16(52507), + 48: uint16(52509), + 49: uint16(52516), + 50: uint16(52520), + 51: uint16(52524), + 52: uint16(52537), + 53: uint16(52572), + 54: uint16(52576), + 55: uint16(52580), + 56: uint16(52588), + 57: uint16(52589), + 58: uint16(52591), + 59: uint16(52593), + 60: uint16(52600), + 61: uint16(52616), + 62: uint16(52628), + 63: uint16(52629), + 64: uint16(52632), + 65: uint16(52636), + 66: uint16(52644), + 67: uint16(52645), + 68: uint16(52647), + 69: uint16(52649), + 70: uint16(52656), + 71: uint16(52676), + 72: uint16(52684), + 73: uint16(52688), + 74: uint16(52712), + 75: uint16(52716), + 76: uint16(52720), + 77: uint16(52728), + 78: uint16(52729), + 79: uint16(52731), + 80: uint16(52733), + 81: uint16(52740), + 82: uint16(52744), + 83: uint16(52748), + 84: uint16(52756), + 85: uint16(52761), + 86: uint16(52768), + 87: uint16(52769), + 88: uint16(52772), + 89: uint16(52776), + 90: uint16(52784), + 91: uint16(52785), + 92: uint16(52787), + 93: uint16(52789), + }, + 35: { + 0: uint16(52824), + 1: uint16(52825), + 2: uint16(52828), + 3: uint16(52831), + 4: uint16(52832), + 5: uint16(52833), + 6: uint16(52840), + 7: uint16(52841), + 8: uint16(52843), + 9: uint16(52845), + 10: uint16(52852), + 11: uint16(52853), + 12: uint16(52856), + 13: uint16(52860), + 14: uint16(52868), + 15: uint16(52869), + 16: uint16(52871), + 17: uint16(52873), + 18: uint16(52880), + 19: uint16(52881), + 20: uint16(52884), + 21: uint16(52888), + 22: uint16(52896), + 23: uint16(52897), + 24: uint16(52899), + 25: uint16(52900), + 26: uint16(52901), + 27: uint16(52908), + 28: uint16(52909), + 29: uint16(52929), + 30: uint16(52964), + 31: uint16(52965), + 32: uint16(52968), + 33: uint16(52971), + 34: uint16(52972), + 35: uint16(52980), + 36: uint16(52981), + 37: uint16(52983), + 38: uint16(52984), + 39: uint16(52985), + 40: uint16(52992), + 41: uint16(52993), + 42: uint16(52996), + 43: uint16(53000), + 44: uint16(53008), + 45: uint16(53009), + 46: uint16(53011), + 47: uint16(53013), + 48: uint16(53020), + 49: uint16(53024), + 50: uint16(53028), + 51: uint16(53036), + 52: uint16(53037), + 53: uint16(53039), + 54: uint16(53040), + 55: uint16(53041), + 56: uint16(53048), + 57: uint16(53076), + 58: uint16(53077), + 59: uint16(53080), + 60: uint16(53084), + 61: uint16(53092), + 62: uint16(53093), + 63: uint16(53095), + 64: uint16(53097), + 65: uint16(53104), + 66: uint16(53105), + 67: uint16(53108), + 68: uint16(53112), + 69: uint16(53120), + 70: uint16(53125), + 71: uint16(53132), + 72: uint16(53153), + 73: uint16(53160), + 74: uint16(53168), + 75: uint16(53188), + 76: uint16(53216), + 77: uint16(53217), + 78: uint16(53220), + 79: uint16(53224), + 80: uint16(53232), + 81: uint16(53233), + 82: uint16(53235), + 83: uint16(53237), + 84: uint16(53244), + 85: uint16(53248), + 86: uint16(53252), + 87: uint16(53265), + 88: uint16(53272), + 89: uint16(53293), + 90: uint16(53300), + 91: uint16(53301), + 92: uint16(53304), + 93: uint16(53308), + }, + 36: { + 0: uint16(53316), + 1: uint16(53317), + 2: uint16(53319), + 3: uint16(53321), + 4: uint16(53328), + 5: uint16(53332), + 6: uint16(53336), + 7: uint16(53344), + 8: uint16(53356), + 9: uint16(53357), + 10: uint16(53360), + 11: uint16(53364), + 12: uint16(53372), + 13: uint16(53373), + 14: uint16(53377), + 15: uint16(53412), + 16: uint16(53413), + 17: uint16(53416), + 18: uint16(53420), + 19: uint16(53428), + 20: uint16(53429), + 21: uint16(53431), + 22: uint16(53433), + 23: uint16(53440), + 24: uint16(53441), + 25: uint16(53444), + 26: uint16(53448), + 27: uint16(53449), + 28: uint16(53456), + 29: uint16(53457), + 30: uint16(53459), + 31: uint16(53460), + 32: uint16(53461), + 33: uint16(53468), + 34: uint16(53469), + 35: uint16(53472), + 36: uint16(53476), + 37: uint16(53484), + 38: uint16(53485), + 39: uint16(53487), + 40: uint16(53488), + 41: uint16(53489), + 42: uint16(53496), + 43: uint16(53517), + 44: uint16(53552), + 45: uint16(53553), + 46: uint16(53556), + 47: uint16(53560), + 48: uint16(53562), + 49: uint16(53568), + 50: uint16(53569), + 51: uint16(53571), + 52: uint16(53572), + 53: uint16(53573), + 54: uint16(53580), + 55: uint16(53581), + 56: uint16(53584), + 57: uint16(53588), + 58: uint16(53596), + 59: uint16(53597), + 60: uint16(53599), + 61: uint16(53601), + 62: uint16(53608), + 63: uint16(53612), + 64: uint16(53628), + 65: uint16(53636), + 66: uint16(53640), + 67: uint16(53664), + 68: uint16(53665), + 69: uint16(53668), + 70: uint16(53672), + 71: uint16(53680), + 72: uint16(53681), + 73: uint16(53683), + 74: uint16(53685), + 75: uint16(53690), + 76: uint16(53692), + 77: uint16(53696), + 78: uint16(53720), + 79: uint16(53748), + 80: uint16(53752), + 81: uint16(53767), + 82: uint16(53769), + 83: uint16(53776), + 84: uint16(53804), + 85: uint16(53805), + 86: uint16(53808), + 87: uint16(53812), + 88: uint16(53820), + 89: uint16(53821), + 90: uint16(53823), + 91: uint16(53825), + 92: uint16(53832), + 93: uint16(53852), + }, + 37: { + 0: uint16(53860), + 1: uint16(53888), + 2: uint16(53889), + 3: uint16(53892), + 4: uint16(53896), + 5: uint16(53904), + 6: uint16(53905), + 7: uint16(53909), + 8: uint16(53916), + 9: uint16(53920), + 10: uint16(53924), + 11: uint16(53932), + 12: uint16(53937), + 13: uint16(53944), + 14: uint16(53945), + 15: uint16(53948), + 16: uint16(53951), + 17: uint16(53952), + 18: uint16(53954), + 19: uint16(53960), + 20: uint16(53961), + 21: uint16(53963), + 22: uint16(53972), + 23: uint16(53976), + 24: uint16(53980), + 25: uint16(53988), + 26: uint16(53989), + 27: uint16(54000), + 28: uint16(54001), + 29: uint16(54004), + 30: uint16(54008), + 31: uint16(54016), + 32: uint16(54017), + 33: uint16(54019), + 34: uint16(54021), + 35: uint16(54028), + 36: uint16(54029), + 37: uint16(54030), + 38: uint16(54032), + 39: uint16(54036), + 40: uint16(54038), + 41: uint16(54044), + 42: uint16(54045), + 43: uint16(54047), + 44: uint16(54048), + 45: uint16(54049), + 46: uint16(54053), + 47: uint16(54056), + 48: uint16(54057), + 49: uint16(54060), + 50: uint16(54064), + 51: uint16(54072), + 52: uint16(54073), + 53: uint16(54075), + 54: uint16(54076), + 55: uint16(54077), + 56: uint16(54084), + 57: uint16(54085), + 58: uint16(54140), + 59: uint16(54141), + 60: uint16(54144), + 61: uint16(54148), + 62: uint16(54156), + 63: uint16(54157), + 64: uint16(54159), + 65: uint16(54160), + 66: uint16(54161), + 67: uint16(54168), + 68: uint16(54169), + 69: uint16(54172), + 70: uint16(54176), + 71: uint16(54184), + 72: uint16(54185), + 73: uint16(54187), + 74: uint16(54189), + 75: uint16(54196), + 76: uint16(54200), + 77: uint16(54204), + 78: uint16(54212), + 79: uint16(54213), + 80: uint16(54216), + 81: uint16(54217), + 82: uint16(54224), + 83: uint16(54232), + 84: uint16(54241), + 85: uint16(54243), + 86: uint16(54252), + 87: uint16(54253), + 88: uint16(54256), + 89: uint16(54260), + 90: uint16(54268), + 91: uint16(54269), + 92: uint16(54271), + 93: uint16(54273), + }, + 38: { + 0: uint16(54280), + 1: uint16(54301), + 2: uint16(54336), + 3: uint16(54340), + 4: uint16(54364), + 5: uint16(54368), + 6: uint16(54372), + 7: uint16(54381), + 8: uint16(54383), + 9: uint16(54392), + 10: uint16(54393), + 11: uint16(54396), + 12: uint16(54399), + 13: uint16(54400), + 14: uint16(54402), + 15: uint16(54408), + 16: uint16(54409), + 17: uint16(54411), + 18: uint16(54413), + 19: uint16(54420), + 20: uint16(54441), + 21: uint16(54476), + 22: uint16(54480), + 23: uint16(54484), + 24: uint16(54492), + 25: uint16(54495), + 26: uint16(54504), + 27: uint16(54508), + 28: uint16(54512), + 29: uint16(54520), + 30: uint16(54523), + 31: uint16(54525), + 32: uint16(54532), + 33: uint16(54536), + 34: uint16(54540), + 35: uint16(54548), + 36: uint16(54549), + 37: uint16(54551), + 38: uint16(54588), + 39: uint16(54589), + 40: uint16(54592), + 41: uint16(54596), + 42: uint16(54604), + 43: uint16(54605), + 44: uint16(54607), + 45: uint16(54609), + 46: uint16(54616), + 47: uint16(54617), + 48: uint16(54620), + 49: uint16(54624), + 50: uint16(54629), + 51: uint16(54632), + 52: uint16(54633), + 53: uint16(54635), + 54: uint16(54637), + 55: uint16(54644), + 56: uint16(54645), + 57: uint16(54648), + 58: uint16(54652), + 59: uint16(54660), + 60: uint16(54661), + 61: uint16(54663), + 62: uint16(54664), + 63: uint16(54665), + 64: uint16(54672), + 65: uint16(54693), + 66: uint16(54728), + 67: uint16(54729), + 68: uint16(54732), + 69: uint16(54736), + 70: uint16(54738), + 71: uint16(54744), + 72: uint16(54745), + 73: uint16(54747), + 74: uint16(54749), + 75: uint16(54756), + 76: uint16(54757), + 77: uint16(54760), + 78: uint16(54764), + 79: uint16(54772), + 80: uint16(54773), + 81: uint16(54775), + 82: uint16(54777), + 83: uint16(54784), + 84: uint16(54785), + 85: uint16(54788), + 86: uint16(54792), + 87: uint16(54800), + 88: uint16(54801), + 89: uint16(54803), + 90: uint16(54804), + 91: uint16(54805), + 92: uint16(54812), + 93: uint16(54816), + }, + 39: { + 0: uint16(54820), + 1: uint16(54829), + 2: uint16(54840), + 3: uint16(54841), + 4: uint16(54844), + 5: uint16(54848), + 6: uint16(54853), + 7: uint16(54856), + 8: uint16(54857), + 9: uint16(54859), + 10: uint16(54861), + 11: uint16(54865), + 12: uint16(54868), + 13: uint16(54869), + 14: uint16(54872), + 15: uint16(54876), + 16: uint16(54887), + 17: uint16(54889), + 18: uint16(54896), + 19: uint16(54897), + 20: uint16(54900), + 21: uint16(54915), + 22: uint16(54917), + 23: uint16(54924), + 24: uint16(54925), + 25: uint16(54928), + 26: uint16(54932), + 27: uint16(54941), + 28: uint16(54943), + 29: uint16(54945), + 30: uint16(54952), + 31: uint16(54956), + 32: uint16(54960), + 33: uint16(54969), + 34: uint16(54971), + 35: uint16(54980), + 36: uint16(54981), + 37: uint16(54984), + 38: uint16(54988), + 39: uint16(54993), + 40: uint16(54996), + 41: uint16(54999), + 42: uint16(55001), + 43: uint16(55008), + 44: uint16(55012), + 45: uint16(55016), + 46: uint16(55024), + 47: uint16(55029), + 48: uint16(55036), + 49: uint16(55037), + 50: uint16(55040), + 51: uint16(55044), + 52: uint16(55057), + 53: uint16(55064), + 54: uint16(55065), + 55: uint16(55068), + 56: uint16(55072), + 57: uint16(55080), + 58: uint16(55081), + 59: uint16(55083), + 60: uint16(55085), + 61: uint16(55092), + 62: uint16(55093), + 63: uint16(55096), + 64: uint16(55100), + 65: uint16(55108), + 66: uint16(55111), + 67: uint16(55113), + 68: uint16(55120), + 69: uint16(55121), + 70: uint16(55124), + 71: uint16(55126), + 72: uint16(55127), + 73: uint16(55128), + 74: uint16(55129), + 75: uint16(55136), + 76: uint16(55137), + 77: uint16(55139), + 78: uint16(55141), + 79: uint16(55145), + 80: uint16(55148), + 81: uint16(55152), + 82: uint16(55156), + 83: uint16(55164), + 84: uint16(55165), + 85: uint16(55169), + 86: uint16(55176), + 87: uint16(55177), + 88: uint16(55180), + 89: uint16(55184), + 90: uint16(55192), + 91: uint16(55193), + 92: uint16(55195), + 93: uint16(55197), + }, + 40: {}, + 41: { + 0: uint16(20285), + 1: uint16(20339), + 2: uint16(20551), + 3: uint16(20729), + 4: uint16(21152), + 5: uint16(21487), + 6: uint16(21621), + 7: uint16(21733), + 8: uint16(22025), + 9: uint16(23233), + 10: uint16(23478), + 11: uint16(26247), + 12: uint16(26550), + 13: uint16(26551), + 14: uint16(26607), + 15: uint16(27468), + 16: uint16(29634), + 17: uint16(30146), + 18: uint16(31292), + 19: uint16(33499), + 20: uint16(33540), + 21: uint16(34903), + 22: uint16(34952), + 23: uint16(35382), + 24: uint16(36040), + 25: uint16(36303), + 26: uint16(36603), + 27: uint16(36838), + 28: uint16(39381), + 29: uint16(21051), + 30: uint16(21364), + 31: uint16(21508), + 32: uint16(24682), + 33: uint16(24932), + 34: uint16(27580), + 35: uint16(29647), + 36: uint16(33050), + 37: uint16(35258), + 38: uint16(35282), + 39: uint16(38307), + 40: uint16(20355), + 41: uint16(21002), + 42: uint16(22718), + 43: uint16(22904), + 44: uint16(23014), + 45: uint16(24178), + 46: uint16(24185), + 47: uint16(25031), + 48: uint16(25536), + 49: uint16(26438), + 50: uint16(26604), + 51: uint16(26751), + 52: uint16(28567), + 53: uint16(30286), + 54: uint16(30475), + 55: uint16(30965), + 56: uint16(31240), + 57: uint16(31487), + 58: uint16(31777), + 59: uint16(32925), + 60: uint16(33390), + 61: uint16(33393), + 62: uint16(35563), + 63: uint16(38291), + 64: uint16(20075), + 65: uint16(21917), + 66: uint16(26359), + 67: uint16(28212), + 68: uint16(30883), + 69: uint16(31469), + 70: uint16(33883), + 71: uint16(35088), + 72: uint16(34638), + 73: uint16(38824), + 74: uint16(21208), + 75: uint16(22350), + 76: uint16(22570), + 77: uint16(23884), + 78: uint16(24863), + 79: uint16(25022), + 80: uint16(25121), + 81: uint16(25954), + 82: uint16(26577), + 83: uint16(27204), + 84: uint16(28187), + 85: uint16(29976), + 86: uint16(30131), + 87: uint16(30435), + 88: uint16(30640), + 89: uint16(32058), + 90: uint16(37039), + 91: uint16(37969), + 92: uint16(37970), + 93: uint16(40853), + }, + 42: { + 0: uint16(21283), + 1: uint16(23724), + 2: uint16(30002), + 3: uint16(32987), + 4: uint16(37440), + 5: uint16(38296), + 6: uint16(21083), + 7: uint16(22536), + 8: uint16(23004), + 9: uint16(23713), + 10: uint16(23831), + 11: uint16(24247), + 12: uint16(24378), + 13: uint16(24394), + 14: uint16(24951), + 15: uint16(27743), + 16: uint16(30074), + 17: uint16(30086), + 18: uint16(31968), + 19: uint16(32115), + 20: uint16(32177), + 21: uint16(32652), + 22: uint16(33108), + 23: uint16(33313), + 24: uint16(34193), + 25: uint16(35137), + 26: uint16(35611), + 27: uint16(37628), + 28: uint16(38477), + 29: uint16(40007), + 30: uint16(20171), + 31: uint16(20215), + 32: uint16(20491), + 33: uint16(20977), + 34: uint16(22607), + 35: uint16(24887), + 36: uint16(24894), + 37: uint16(24936), + 38: uint16(25913), + 39: uint16(27114), + 40: uint16(28433), + 41: uint16(30117), + 42: uint16(30342), + 43: uint16(30422), + 44: uint16(31623), + 45: uint16(33445), + 46: uint16(33995), + 47: uint16(63744), + 48: uint16(37799), + 49: uint16(38283), + 50: uint16(21888), + 51: uint16(23458), + 52: uint16(22353), + 53: uint16(63745), + 54: uint16(31923), + 55: uint16(32697), + 56: uint16(37301), + 57: uint16(20520), + 58: uint16(21435), + 59: uint16(23621), + 60: uint16(24040), + 61: uint16(25298), + 62: uint16(25454), + 63: uint16(25818), + 64: uint16(25831), + 65: uint16(28192), + 66: uint16(28844), + 67: uint16(31067), + 68: uint16(36317), + 69: uint16(36382), + 70: uint16(63746), + 71: uint16(36989), + 72: uint16(37445), + 73: uint16(37624), + 74: uint16(20094), + 75: uint16(20214), + 76: uint16(20581), + 77: uint16(24062), + 78: uint16(24314), + 79: uint16(24838), + 80: uint16(26967), + 81: uint16(33137), + 82: uint16(34388), + 83: uint16(36423), + 84: uint16(37749), + 85: uint16(39467), + 86: uint16(20062), + 87: uint16(20625), + 88: uint16(26480), + 89: uint16(26688), + 90: uint16(20745), + 91: uint16(21133), + 92: uint16(21138), + 93: uint16(27298), + }, + 43: { + 0: uint16(30652), + 1: uint16(37392), + 2: uint16(40660), + 3: uint16(21163), + 4: uint16(24623), + 5: uint16(36850), + 6: uint16(20552), + 7: uint16(25001), + 8: uint16(25581), + 9: uint16(25802), + 10: uint16(26684), + 11: uint16(27268), + 12: uint16(28608), + 13: uint16(33160), + 14: uint16(35233), + 15: uint16(38548), + 16: uint16(22533), + 17: uint16(29309), + 18: uint16(29356), + 19: uint16(29956), + 20: uint16(32121), + 21: uint16(32365), + 22: uint16(32937), + 23: uint16(35211), + 24: uint16(35700), + 25: uint16(36963), + 26: uint16(40273), + 27: uint16(25225), + 28: uint16(27770), + 29: uint16(28500), + 30: uint16(32080), + 31: uint16(32570), + 32: uint16(35363), + 33: uint16(20860), + 34: uint16(24906), + 35: uint16(31645), + 36: uint16(35609), + 37: uint16(37463), + 38: uint16(37772), + 39: uint16(20140), + 40: uint16(20435), + 41: uint16(20510), + 42: uint16(20670), + 43: uint16(20742), + 44: uint16(21185), + 45: uint16(21197), + 46: uint16(21375), + 47: uint16(22384), + 48: uint16(22659), + 49: uint16(24218), + 50: uint16(24465), + 51: uint16(24950), + 52: uint16(25004), + 53: uint16(25806), + 54: uint16(25964), + 55: uint16(26223), + 56: uint16(26299), + 57: uint16(26356), + 58: uint16(26775), + 59: uint16(28039), + 60: uint16(28805), + 61: uint16(28913), + 62: uint16(29855), + 63: uint16(29861), + 64: uint16(29898), + 65: uint16(30169), + 66: uint16(30828), + 67: uint16(30956), + 68: uint16(31455), + 69: uint16(31478), + 70: uint16(32069), + 71: uint16(32147), + 72: uint16(32789), + 73: uint16(32831), + 74: uint16(33051), + 75: uint16(33686), + 76: uint16(35686), + 77: uint16(36629), + 78: uint16(36885), + 79: uint16(37857), + 80: uint16(38915), + 81: uint16(38968), + 82: uint16(39514), + 83: uint16(39912), + 84: uint16(20418), + 85: uint16(21843), + 86: uint16(22586), + 87: uint16(22865), + 88: uint16(23395), + 89: uint16(23622), + 90: uint16(24760), + 91: uint16(25106), + 92: uint16(26690), + 93: uint16(26800), + }, + 44: { + 0: uint16(26856), + 1: uint16(28330), + 2: uint16(30028), + 3: uint16(30328), + 4: uint16(30926), + 5: uint16(31293), + 6: uint16(31995), + 7: uint16(32363), + 8: uint16(32380), + 9: uint16(35336), + 10: uint16(35489), + 11: uint16(35903), + 12: uint16(38542), + 13: uint16(40388), + 14: uint16(21476), + 15: uint16(21481), + 16: uint16(21578), + 17: uint16(21617), + 18: uint16(22266), + 19: uint16(22993), + 20: uint16(23396), + 21: uint16(23611), + 22: uint16(24235), + 23: uint16(25335), + 24: uint16(25911), + 25: uint16(25925), + 26: uint16(25970), + 27: uint16(26272), + 28: uint16(26543), + 29: uint16(27073), + 30: uint16(27837), + 31: uint16(30204), + 32: uint16(30352), + 33: uint16(30590), + 34: uint16(31295), + 35: uint16(32660), + 36: uint16(32771), + 37: uint16(32929), + 38: uint16(33167), + 39: uint16(33510), + 40: uint16(33533), + 41: uint16(33776), + 42: uint16(34241), + 43: uint16(34865), + 44: uint16(34996), + 45: uint16(35493), + 46: uint16(63747), + 47: uint16(36764), + 48: uint16(37678), + 49: uint16(38599), + 50: uint16(39015), + 51: uint16(39640), + 52: uint16(40723), + 53: uint16(21741), + 54: uint16(26011), + 55: uint16(26354), + 56: uint16(26767), + 57: uint16(31296), + 58: uint16(35895), + 59: uint16(40288), + 60: uint16(22256), + 61: uint16(22372), + 62: uint16(23825), + 63: uint16(26118), + 64: uint16(26801), + 65: uint16(26829), + 66: uint16(28414), + 67: uint16(29736), + 68: uint16(34974), + 69: uint16(39908), + 70: uint16(27752), + 71: uint16(63748), + 72: uint16(39592), + 73: uint16(20379), + 74: uint16(20844), + 75: uint16(20849), + 76: uint16(21151), + 77: uint16(23380), + 78: uint16(24037), + 79: uint16(24656), + 80: uint16(24685), + 81: uint16(25329), + 82: uint16(25511), + 83: uint16(25915), + 84: uint16(29657), + 85: uint16(31354), + 86: uint16(34467), + 87: uint16(36002), + 88: uint16(38799), + 89: uint16(20018), + 90: uint16(23521), + 91: uint16(25096), + 92: uint16(26524), + 93: uint16(29916), + }, + 45: { + 0: uint16(31185), + 1: uint16(33747), + 2: uint16(35463), + 3: uint16(35506), + 4: uint16(36328), + 5: uint16(36942), + 6: uint16(37707), + 7: uint16(38982), + 8: uint16(24275), + 9: uint16(27112), + 10: uint16(34303), + 11: uint16(37101), + 12: uint16(63749), + 13: uint16(20896), + 14: uint16(23448), + 15: uint16(23532), + 16: uint16(24931), + 17: uint16(26874), + 18: uint16(27454), + 19: uint16(28748), + 20: uint16(29743), + 21: uint16(29912), + 22: uint16(31649), + 23: uint16(32592), + 24: uint16(33733), + 25: uint16(35264), + 26: uint16(36011), + 27: uint16(38364), + 28: uint16(39208), + 29: uint16(21038), + 30: uint16(24669), + 31: uint16(25324), + 32: uint16(36866), + 33: uint16(20362), + 34: uint16(20809), + 35: uint16(21281), + 36: uint16(22745), + 37: uint16(24291), + 38: uint16(26336), + 39: uint16(27960), + 40: uint16(28826), + 41: uint16(29378), + 42: uint16(29654), + 43: uint16(31568), + 44: uint16(33009), + 45: uint16(37979), + 46: uint16(21350), + 47: uint16(25499), + 48: uint16(32619), + 49: uint16(20054), + 50: uint16(20608), + 51: uint16(22602), + 52: uint16(22750), + 53: uint16(24618), + 54: uint16(24871), + 55: uint16(25296), + 56: uint16(27088), + 57: uint16(39745), + 58: uint16(23439), + 59: uint16(32024), + 60: uint16(32945), + 61: uint16(36703), + 62: uint16(20132), + 63: uint16(20689), + 64: uint16(21676), + 65: uint16(21932), + 66: uint16(23308), + 67: uint16(23968), + 68: uint16(24039), + 69: uint16(25898), + 70: uint16(25934), + 71: uint16(26657), + 72: uint16(27211), + 73: uint16(29409), + 74: uint16(30350), + 75: uint16(30703), + 76: uint16(32094), + 77: uint16(32761), + 78: uint16(33184), + 79: uint16(34126), + 80: uint16(34527), + 81: uint16(36611), + 82: uint16(36686), + 83: uint16(37066), + 84: uint16(39171), + 85: uint16(39509), + 86: uint16(39851), + 87: uint16(19992), + 88: uint16(20037), + 89: uint16(20061), + 90: uint16(20167), + 91: uint16(20465), + 92: uint16(20855), + 93: uint16(21246), + }, + 46: { + 0: uint16(21312), + 1: uint16(21475), + 2: uint16(21477), + 3: uint16(21646), + 4: uint16(22036), + 5: uint16(22389), + 6: uint16(22434), + 7: uint16(23495), + 8: uint16(23943), + 9: uint16(24272), + 10: uint16(25084), + 11: uint16(25304), + 12: uint16(25937), + 13: uint16(26552), + 14: uint16(26601), + 15: uint16(27083), + 16: uint16(27472), + 17: uint16(27590), + 18: uint16(27628), + 19: uint16(27714), + 20: uint16(28317), + 21: uint16(28792), + 22: uint16(29399), + 23: uint16(29590), + 24: uint16(29699), + 25: uint16(30655), + 26: uint16(30697), + 27: uint16(31350), + 28: uint16(32127), + 29: uint16(32777), + 30: uint16(33276), + 31: uint16(33285), + 32: uint16(33290), + 33: uint16(33503), + 34: uint16(34914), + 35: uint16(35635), + 36: uint16(36092), + 37: uint16(36544), + 38: uint16(36881), + 39: uint16(37041), + 40: uint16(37476), + 41: uint16(37558), + 42: uint16(39378), + 43: uint16(39493), + 44: uint16(40169), + 45: uint16(40407), + 46: uint16(40860), + 47: uint16(22283), + 48: uint16(23616), + 49: uint16(33738), + 50: uint16(38816), + 51: uint16(38827), + 52: uint16(40628), + 53: uint16(21531), + 54: uint16(31384), + 55: uint16(32676), + 56: uint16(35033), + 57: uint16(36557), + 58: uint16(37089), + 59: uint16(22528), + 60: uint16(23624), + 61: uint16(25496), + 62: uint16(31391), + 63: uint16(23470), + 64: uint16(24339), + 65: uint16(31353), + 66: uint16(31406), + 67: uint16(33422), + 68: uint16(36524), + 69: uint16(20518), + 70: uint16(21048), + 71: uint16(21240), + 72: uint16(21367), + 73: uint16(22280), + 74: uint16(25331), + 75: uint16(25458), + 76: uint16(27402), + 77: uint16(28099), + 78: uint16(30519), + 79: uint16(21413), + 80: uint16(29527), + 81: uint16(34152), + 82: uint16(36470), + 83: uint16(38357), + 84: uint16(26426), + 85: uint16(27331), + 86: uint16(28528), + 87: uint16(35437), + 88: uint16(36556), + 89: uint16(39243), + 90: uint16(63750), + 91: uint16(26231), + 92: uint16(27512), + 93: uint16(36020), + }, + 47: { + 0: uint16(39740), + 1: uint16(63751), + 2: uint16(21483), + 3: uint16(22317), + 4: uint16(22862), + 5: uint16(25542), + 6: uint16(27131), + 7: uint16(29674), + 8: uint16(30789), + 9: uint16(31418), + 10: uint16(31429), + 11: uint16(31998), + 12: uint16(33909), + 13: uint16(35215), + 14: uint16(36211), + 15: uint16(36917), + 16: uint16(38312), + 17: uint16(21243), + 18: uint16(22343), + 19: uint16(30023), + 20: uint16(31584), + 21: uint16(33740), + 22: uint16(37406), + 23: uint16(63752), + 24: uint16(27224), + 25: uint16(20811), + 26: uint16(21067), + 27: uint16(21127), + 28: uint16(25119), + 29: uint16(26840), + 30: uint16(26997), + 31: uint16(38553), + 32: uint16(20677), + 33: uint16(21156), + 34: uint16(21220), + 35: uint16(25027), + 36: uint16(26020), + 37: uint16(26681), + 38: uint16(27135), + 39: uint16(29822), + 40: uint16(31563), + 41: uint16(33465), + 42: uint16(33771), + 43: uint16(35250), + 44: uint16(35641), + 45: uint16(36817), + 46: uint16(39241), + 47: uint16(63753), + 48: uint16(20170), + 49: uint16(22935), + 50: uint16(25810), + 51: uint16(26129), + 52: uint16(27278), + 53: uint16(29748), + 54: uint16(31105), + 55: uint16(31165), + 56: uint16(33449), + 57: uint16(34942), + 58: uint16(34943), + 59: uint16(35167), + 60: uint16(63754), + 61: uint16(37670), + 62: uint16(20235), + 63: uint16(21450), + 64: uint16(24613), + 65: uint16(25201), + 66: uint16(27762), + 67: uint16(32026), + 68: uint16(32102), + 69: uint16(20120), + 70: uint16(20834), + 71: uint16(30684), + 72: uint16(32943), + 73: uint16(20225), + 74: uint16(20238), + 75: uint16(20854), + 76: uint16(20864), + 77: uint16(21980), + 78: uint16(22120), + 79: uint16(22331), + 80: uint16(22522), + 81: uint16(22524), + 82: uint16(22804), + 83: uint16(22855), + 84: uint16(22931), + 85: uint16(23492), + 86: uint16(23696), + 87: uint16(23822), + 88: uint16(24049), + 89: uint16(24190), + 90: uint16(24524), + 91: uint16(25216), + 92: uint16(26071), + 93: uint16(26083), + }, + 48: { + 0: uint16(26398), + 1: uint16(26399), + 2: uint16(26462), + 3: uint16(26827), + 4: uint16(26820), + 5: uint16(27231), + 6: uint16(27450), + 7: uint16(27683), + 8: uint16(27773), + 9: uint16(27778), + 10: uint16(28103), + 11: uint16(29592), + 12: uint16(29734), + 13: uint16(29738), + 14: uint16(29826), + 15: uint16(29859), + 16: uint16(30072), + 17: uint16(30079), + 18: uint16(30849), + 19: uint16(30959), + 20: uint16(31041), + 21: uint16(31047), + 22: uint16(31048), + 23: uint16(31098), + 24: uint16(31637), + 25: uint16(32000), + 26: uint16(32186), + 27: uint16(32648), + 28: uint16(32774), + 29: uint16(32813), + 30: uint16(32908), + 31: uint16(35352), + 32: uint16(35663), + 33: uint16(35912), + 34: uint16(36215), + 35: uint16(37665), + 36: uint16(37668), + 37: uint16(39138), + 38: uint16(39249), + 39: uint16(39438), + 40: uint16(39439), + 41: uint16(39525), + 42: uint16(40594), + 43: uint16(32202), + 44: uint16(20342), + 45: uint16(21513), + 46: uint16(25326), + 47: uint16(26708), + 48: uint16(37329), + 49: uint16(21931), + 50: uint16(20794), + 51: uint16(63755), + 52: uint16(63756), + 53: uint16(23068), + 54: uint16(25062), + 55: uint16(63757), + 56: uint16(25295), + 57: uint16(25343), + 58: uint16(63758), + 59: uint16(63759), + 60: uint16(63760), + 61: uint16(63761), + 62: uint16(63762), + 63: uint16(63763), + 64: uint16(37027), + 65: uint16(63764), + 66: uint16(63765), + 67: uint16(63766), + 68: uint16(63767), + 69: uint16(63768), + 70: uint16(35582), + 71: uint16(63769), + 72: uint16(63770), + 73: uint16(63771), + 74: uint16(63772), + 75: uint16(26262), + 76: uint16(63773), + 77: uint16(29014), + 78: uint16(63774), + 79: uint16(63775), + 80: uint16(38627), + 81: uint16(63776), + 82: uint16(25423), + 83: uint16(25466), + 84: uint16(21335), + 85: uint16(63777), + 86: uint16(26511), + 87: uint16(26976), + 88: uint16(28275), + 89: uint16(63778), + 90: uint16(30007), + 91: uint16(63779), + 92: uint16(63780), + 93: uint16(63781), + }, + 49: { + 0: uint16(32013), + 1: uint16(63782), + 2: uint16(63783), + 3: uint16(34930), + 4: uint16(22218), + 5: uint16(23064), + 6: uint16(63784), + 7: uint16(63785), + 8: uint16(63786), + 9: uint16(63787), + 10: uint16(63788), + 11: uint16(20035), + 12: uint16(63789), + 13: uint16(20839), + 14: uint16(22856), + 15: uint16(26608), + 16: uint16(32784), + 17: uint16(63790), + 18: uint16(22899), + 19: uint16(24180), + 20: uint16(25754), + 21: uint16(31178), + 22: uint16(24565), + 23: uint16(24684), + 24: uint16(25288), + 25: uint16(25467), + 26: uint16(23527), + 27: uint16(23511), + 28: uint16(21162), + 29: uint16(63791), + 30: uint16(22900), + 31: uint16(24361), + 32: uint16(24594), + 33: uint16(63792), + 34: uint16(63793), + 35: uint16(63794), + 36: uint16(29785), + 37: uint16(63795), + 38: uint16(63796), + 39: uint16(63797), + 40: uint16(63798), + 41: uint16(63799), + 42: uint16(63800), + 43: uint16(39377), + 44: uint16(63801), + 45: uint16(63802), + 46: uint16(63803), + 47: uint16(63804), + 48: uint16(63805), + 49: uint16(63806), + 50: uint16(63807), + 51: uint16(63808), + 52: uint16(63809), + 53: uint16(63810), + 54: uint16(63811), + 55: uint16(28611), + 56: uint16(63812), + 57: uint16(63813), + 58: uint16(33215), + 59: uint16(36786), + 60: uint16(24817), + 61: uint16(63814), + 62: uint16(63815), + 63: uint16(33126), + 64: uint16(63816), + 65: uint16(63817), + 66: uint16(23615), + 67: uint16(63818), + 68: uint16(63819), + 69: uint16(63820), + 70: uint16(63821), + 71: uint16(63822), + 72: uint16(63823), + 73: uint16(63824), + 74: uint16(63825), + 75: uint16(23273), + 76: uint16(35365), + 77: uint16(26491), + 78: uint16(32016), + 79: uint16(63826), + 80: uint16(63827), + 81: uint16(63828), + 82: uint16(63829), + 83: uint16(63830), + 84: uint16(63831), + 85: uint16(33021), + 86: uint16(63832), + 87: uint16(63833), + 88: uint16(23612), + 89: uint16(27877), + 90: uint16(21311), + 91: uint16(28346), + 92: uint16(22810), + 93: uint16(33590), + }, + 50: { + 0: uint16(20025), + 1: uint16(20150), + 2: uint16(20294), + 3: uint16(21934), + 4: uint16(22296), + 5: uint16(22727), + 6: uint16(24406), + 7: uint16(26039), + 8: uint16(26086), + 9: uint16(27264), + 10: uint16(27573), + 11: uint16(28237), + 12: uint16(30701), + 13: uint16(31471), + 14: uint16(31774), + 15: uint16(32222), + 16: uint16(34507), + 17: uint16(34962), + 18: uint16(37170), + 19: uint16(37723), + 20: uint16(25787), + 21: uint16(28606), + 22: uint16(29562), + 23: uint16(30136), + 24: uint16(36948), + 25: uint16(21846), + 26: uint16(22349), + 27: uint16(25018), + 28: uint16(25812), + 29: uint16(26311), + 30: uint16(28129), + 31: uint16(28251), + 32: uint16(28525), + 33: uint16(28601), + 34: uint16(30192), + 35: uint16(32835), + 36: uint16(33213), + 37: uint16(34113), + 38: uint16(35203), + 39: uint16(35527), + 40: uint16(35674), + 41: uint16(37663), + 42: uint16(27795), + 43: uint16(30035), + 44: uint16(31572), + 45: uint16(36367), + 46: uint16(36957), + 47: uint16(21776), + 48: uint16(22530), + 49: uint16(22616), + 50: uint16(24162), + 51: uint16(25095), + 52: uint16(25758), + 53: uint16(26848), + 54: uint16(30070), + 55: uint16(31958), + 56: uint16(34739), + 57: uint16(40680), + 58: uint16(20195), + 59: uint16(22408), + 60: uint16(22382), + 61: uint16(22823), + 62: uint16(23565), + 63: uint16(23729), + 64: uint16(24118), + 65: uint16(24453), + 66: uint16(25140), + 67: uint16(25825), + 68: uint16(29619), + 69: uint16(33274), + 70: uint16(34955), + 71: uint16(36024), + 72: uint16(38538), + 73: uint16(40667), + 74: uint16(23429), + 75: uint16(24503), + 76: uint16(24755), + 77: uint16(20498), + 78: uint16(20992), + 79: uint16(21040), + 80: uint16(22294), + 81: uint16(22581), + 82: uint16(22615), + 83: uint16(23566), + 84: uint16(23648), + 85: uint16(23798), + 86: uint16(23947), + 87: uint16(24230), + 88: uint16(24466), + 89: uint16(24764), + 90: uint16(25361), + 91: uint16(25481), + 92: uint16(25623), + 93: uint16(26691), + }, + 51: { + 0: uint16(26873), + 1: uint16(27330), + 2: uint16(28120), + 3: uint16(28193), + 4: uint16(28372), + 5: uint16(28644), + 6: uint16(29182), + 7: uint16(30428), + 8: uint16(30585), + 9: uint16(31153), + 10: uint16(31291), + 11: uint16(33796), + 12: uint16(35241), + 13: uint16(36077), + 14: uint16(36339), + 15: uint16(36424), + 16: uint16(36867), + 17: uint16(36884), + 18: uint16(36947), + 19: uint16(37117), + 20: uint16(37709), + 21: uint16(38518), + 22: uint16(38876), + 23: uint16(27602), + 24: uint16(28678), + 25: uint16(29272), + 26: uint16(29346), + 27: uint16(29544), + 28: uint16(30563), + 29: uint16(31167), + 30: uint16(31716), + 31: uint16(32411), + 32: uint16(35712), + 33: uint16(22697), + 34: uint16(24775), + 35: uint16(25958), + 36: uint16(26109), + 37: uint16(26302), + 38: uint16(27788), + 39: uint16(28958), + 40: uint16(29129), + 41: uint16(35930), + 42: uint16(38931), + 43: uint16(20077), + 44: uint16(31361), + 45: uint16(20189), + 46: uint16(20908), + 47: uint16(20941), + 48: uint16(21205), + 49: uint16(21516), + 50: uint16(24999), + 51: uint16(26481), + 52: uint16(26704), + 53: uint16(26847), + 54: uint16(27934), + 55: uint16(28540), + 56: uint16(30140), + 57: uint16(30643), + 58: uint16(31461), + 59: uint16(33012), + 60: uint16(33891), + 61: uint16(37509), + 62: uint16(20828), + 63: uint16(26007), + 64: uint16(26460), + 65: uint16(26515), + 66: uint16(30168), + 67: uint16(31431), + 68: uint16(33651), + 69: uint16(63834), + 70: uint16(35910), + 71: uint16(36887), + 72: uint16(38957), + 73: uint16(23663), + 74: uint16(33216), + 75: uint16(33434), + 76: uint16(36929), + 77: uint16(36975), + 78: uint16(37389), + 79: uint16(24471), + 80: uint16(23965), + 81: uint16(27225), + 82: uint16(29128), + 83: uint16(30331), + 84: uint16(31561), + 85: uint16(34276), + 86: uint16(35588), + 87: uint16(37159), + 88: uint16(39472), + 89: uint16(21895), + 90: uint16(25078), + 91: uint16(63835), + 92: uint16(30313), + 93: uint16(32645), + }, + 52: { + 0: uint16(34367), + 1: uint16(34746), + 2: uint16(35064), + 3: uint16(37007), + 4: uint16(63836), + 5: uint16(27931), + 6: uint16(28889), + 7: uint16(29662), + 8: uint16(32097), + 9: uint16(33853), + 10: uint16(63837), + 11: uint16(37226), + 12: uint16(39409), + 13: uint16(63838), + 14: uint16(20098), + 15: uint16(21365), + 16: uint16(27396), + 17: uint16(27410), + 18: uint16(28734), + 19: uint16(29211), + 20: uint16(34349), + 21: uint16(40478), + 22: uint16(21068), + 23: uint16(36771), + 24: uint16(23888), + 25: uint16(25829), + 26: uint16(25900), + 27: uint16(27414), + 28: uint16(28651), + 29: uint16(31811), + 30: uint16(32412), + 31: uint16(34253), + 32: uint16(35172), + 33: uint16(35261), + 34: uint16(25289), + 35: uint16(33240), + 36: uint16(34847), + 37: uint16(24266), + 38: uint16(26391), + 39: uint16(28010), + 40: uint16(29436), + 41: uint16(29701), + 42: uint16(29807), + 43: uint16(34690), + 44: uint16(37086), + 45: uint16(20358), + 46: uint16(23821), + 47: uint16(24480), + 48: uint16(33802), + 49: uint16(20919), + 50: uint16(25504), + 51: uint16(30053), + 52: uint16(20142), + 53: uint16(20486), + 54: uint16(20841), + 55: uint16(20937), + 56: uint16(26753), + 57: uint16(27153), + 58: uint16(31918), + 59: uint16(31921), + 60: uint16(31975), + 61: uint16(33391), + 62: uint16(35538), + 63: uint16(36635), + 64: uint16(37327), + 65: uint16(20406), + 66: uint16(20791), + 67: uint16(21237), + 68: uint16(21570), + 69: uint16(24300), + 70: uint16(24942), + 71: uint16(25150), + 72: uint16(26053), + 73: uint16(27354), + 74: uint16(28670), + 75: uint16(31018), + 76: uint16(34268), + 77: uint16(34851), + 78: uint16(38317), + 79: uint16(39522), + 80: uint16(39530), + 81: uint16(40599), + 82: uint16(40654), + 83: uint16(21147), + 84: uint16(26310), + 85: uint16(27511), + 86: uint16(28701), + 87: uint16(31019), + 88: uint16(36706), + 89: uint16(38722), + 90: uint16(24976), + 91: uint16(25088), + 92: uint16(25891), + 93: uint16(28451), + }, + 53: { + 0: uint16(29001), + 1: uint16(29833), + 2: uint16(32244), + 3: uint16(32879), + 4: uint16(34030), + 5: uint16(36646), + 6: uint16(36899), + 7: uint16(37706), + 8: uint16(20925), + 9: uint16(21015), + 10: uint16(21155), + 11: uint16(27916), + 12: uint16(28872), + 13: uint16(35010), + 14: uint16(24265), + 15: uint16(25986), + 16: uint16(27566), + 17: uint16(28610), + 18: uint16(31806), + 19: uint16(29557), + 20: uint16(20196), + 21: uint16(20278), + 22: uint16(22265), + 23: uint16(63839), + 24: uint16(23738), + 25: uint16(23994), + 26: uint16(24604), + 27: uint16(29618), + 28: uint16(31533), + 29: uint16(32666), + 30: uint16(32718), + 31: uint16(32838), + 32: uint16(36894), + 33: uint16(37428), + 34: uint16(38646), + 35: uint16(38728), + 36: uint16(38936), + 37: uint16(40801), + 38: uint16(20363), + 39: uint16(28583), + 40: uint16(31150), + 41: uint16(37300), + 42: uint16(38583), + 43: uint16(21214), + 44: uint16(63840), + 45: uint16(25736), + 46: uint16(25796), + 47: uint16(27347), + 48: uint16(28510), + 49: uint16(28696), + 50: uint16(29200), + 51: uint16(30439), + 52: uint16(32769), + 53: uint16(34310), + 54: uint16(34396), + 55: uint16(36335), + 56: uint16(36613), + 57: uint16(38706), + 58: uint16(39791), + 59: uint16(40442), + 60: uint16(40565), + 61: uint16(30860), + 62: uint16(31103), + 63: uint16(32160), + 64: uint16(33737), + 65: uint16(37636), + 66: uint16(40575), + 67: uint16(40595), + 68: uint16(35542), + 69: uint16(22751), + 70: uint16(24324), + 71: uint16(26407), + 72: uint16(28711), + 73: uint16(29903), + 74: uint16(31840), + 75: uint16(32894), + 76: uint16(20769), + 77: uint16(28712), + 78: uint16(29282), + 79: uint16(30922), + 80: uint16(36034), + 81: uint16(36058), + 82: uint16(36084), + 83: uint16(38647), + 84: uint16(20102), + 85: uint16(20698), + 86: uint16(23534), + 87: uint16(24278), + 88: uint16(26009), + 89: uint16(29134), + 90: uint16(30274), + 91: uint16(30637), + 92: uint16(32842), + 93: uint16(34044), + }, + 54: { + 0: uint16(36988), + 1: uint16(39719), + 2: uint16(40845), + 3: uint16(22744), + 4: uint16(23105), + 5: uint16(23650), + 6: uint16(27155), + 7: uint16(28122), + 8: uint16(28431), + 9: uint16(30267), + 10: uint16(32047), + 11: uint16(32311), + 12: uint16(34078), + 13: uint16(35128), + 14: uint16(37860), + 15: uint16(38475), + 16: uint16(21129), + 17: uint16(26066), + 18: uint16(26611), + 19: uint16(27060), + 20: uint16(27969), + 21: uint16(28316), + 22: uint16(28687), + 23: uint16(29705), + 24: uint16(29792), + 25: uint16(30041), + 26: uint16(30244), + 27: uint16(30827), + 28: uint16(35628), + 29: uint16(39006), + 30: uint16(20845), + 31: uint16(25134), + 32: uint16(38520), + 33: uint16(20374), + 34: uint16(20523), + 35: uint16(23833), + 36: uint16(28138), + 37: uint16(32184), + 38: uint16(36650), + 39: uint16(24459), + 40: uint16(24900), + 41: uint16(26647), + 42: uint16(63841), + 43: uint16(38534), + 44: uint16(21202), + 45: uint16(32907), + 46: uint16(20956), + 47: uint16(20940), + 48: uint16(26974), + 49: uint16(31260), + 50: uint16(32190), + 51: uint16(33777), + 52: uint16(38517), + 53: uint16(20442), + 54: uint16(21033), + 55: uint16(21400), + 56: uint16(21519), + 57: uint16(21774), + 58: uint16(23653), + 59: uint16(24743), + 60: uint16(26446), + 61: uint16(26792), + 62: uint16(28012), + 63: uint16(29313), + 64: uint16(29432), + 65: uint16(29702), + 66: uint16(29827), + 67: uint16(63842), + 68: uint16(30178), + 69: uint16(31852), + 70: uint16(32633), + 71: uint16(32696), + 72: uint16(33673), + 73: uint16(35023), + 74: uint16(35041), + 75: uint16(37324), + 76: uint16(37328), + 77: uint16(38626), + 78: uint16(39881), + 79: uint16(21533), + 80: uint16(28542), + 81: uint16(29136), + 82: uint16(29848), + 83: uint16(34298), + 84: uint16(36522), + 85: uint16(38563), + 86: uint16(40023), + 87: uint16(40607), + 88: uint16(26519), + 89: uint16(28107), + 90: uint16(29747), + 91: uint16(33256), + 92: uint16(38678), + 93: uint16(30764), + }, + 55: { + 0: uint16(31435), + 1: uint16(31520), + 2: uint16(31890), + 3: uint16(25705), + 4: uint16(29802), + 5: uint16(30194), + 6: uint16(30908), + 7: uint16(30952), + 8: uint16(39340), + 9: uint16(39764), + 10: uint16(40635), + 11: uint16(23518), + 12: uint16(24149), + 13: uint16(28448), + 14: uint16(33180), + 15: uint16(33707), + 16: uint16(37000), + 17: uint16(19975), + 18: uint16(21325), + 19: uint16(23081), + 20: uint16(24018), + 21: uint16(24398), + 22: uint16(24930), + 23: uint16(25405), + 24: uint16(26217), + 25: uint16(26364), + 26: uint16(28415), + 27: uint16(28459), + 28: uint16(28771), + 29: uint16(30622), + 30: uint16(33836), + 31: uint16(34067), + 32: uint16(34875), + 33: uint16(36627), + 34: uint16(39237), + 35: uint16(39995), + 36: uint16(21788), + 37: uint16(25273), + 38: uint16(26411), + 39: uint16(27819), + 40: uint16(33545), + 41: uint16(35178), + 42: uint16(38778), + 43: uint16(20129), + 44: uint16(22916), + 45: uint16(24536), + 46: uint16(24537), + 47: uint16(26395), + 48: uint16(32178), + 49: uint16(32596), + 50: uint16(33426), + 51: uint16(33579), + 52: uint16(33725), + 53: uint16(36638), + 54: uint16(37017), + 55: uint16(22475), + 56: uint16(22969), + 57: uint16(23186), + 58: uint16(23504), + 59: uint16(26151), + 60: uint16(26522), + 61: uint16(26757), + 62: uint16(27599), + 63: uint16(29028), + 64: uint16(32629), + 65: uint16(36023), + 66: uint16(36067), + 67: uint16(36993), + 68: uint16(39749), + 69: uint16(33032), + 70: uint16(35978), + 71: uint16(38476), + 72: uint16(39488), + 73: uint16(40613), + 74: uint16(23391), + 75: uint16(27667), + 76: uint16(29467), + 77: uint16(30450), + 78: uint16(30431), + 79: uint16(33804), + 80: uint16(20906), + 81: uint16(35219), + 82: uint16(20813), + 83: uint16(20885), + 84: uint16(21193), + 85: uint16(26825), + 86: uint16(27796), + 87: uint16(30468), + 88: uint16(30496), + 89: uint16(32191), + 90: uint16(32236), + 91: uint16(38754), + 92: uint16(40629), + 93: uint16(28357), + }, + 56: { + 0: uint16(34065), + 1: uint16(20901), + 2: uint16(21517), + 3: uint16(21629), + 4: uint16(26126), + 5: uint16(26269), + 6: uint16(26919), + 7: uint16(28319), + 8: uint16(30399), + 9: uint16(30609), + 10: uint16(33559), + 11: uint16(33986), + 12: uint16(34719), + 13: uint16(37225), + 14: uint16(37528), + 15: uint16(40180), + 16: uint16(34946), + 17: uint16(20398), + 18: uint16(20882), + 19: uint16(21215), + 20: uint16(22982), + 21: uint16(24125), + 22: uint16(24917), + 23: uint16(25720), + 24: uint16(25721), + 25: uint16(26286), + 26: uint16(26576), + 27: uint16(27169), + 28: uint16(27597), + 29: uint16(27611), + 30: uint16(29279), + 31: uint16(29281), + 32: uint16(29761), + 33: uint16(30520), + 34: uint16(30683), + 35: uint16(32791), + 36: uint16(33468), + 37: uint16(33541), + 38: uint16(35584), + 39: uint16(35624), + 40: uint16(35980), + 41: uint16(26408), + 42: uint16(27792), + 43: uint16(29287), + 44: uint16(30446), + 45: uint16(30566), + 46: uint16(31302), + 47: uint16(40361), + 48: uint16(27519), + 49: uint16(27794), + 50: uint16(22818), + 51: uint16(26406), + 52: uint16(33945), + 53: uint16(21359), + 54: uint16(22675), + 55: uint16(22937), + 56: uint16(24287), + 57: uint16(25551), + 58: uint16(26164), + 59: uint16(26483), + 60: uint16(28218), + 61: uint16(29483), + 62: uint16(31447), + 63: uint16(33495), + 64: uint16(37672), + 65: uint16(21209), + 66: uint16(24043), + 67: uint16(25006), + 68: uint16(25035), + 69: uint16(25098), + 70: uint16(25287), + 71: uint16(25771), + 72: uint16(26080), + 73: uint16(26969), + 74: uint16(27494), + 75: uint16(27595), + 76: uint16(28961), + 77: uint16(29687), + 78: uint16(30045), + 79: uint16(32326), + 80: uint16(33310), + 81: uint16(33538), + 82: uint16(34154), + 83: uint16(35491), + 84: uint16(36031), + 85: uint16(38695), + 86: uint16(40289), + 87: uint16(22696), + 88: uint16(40664), + 89: uint16(20497), + 90: uint16(21006), + 91: uint16(21563), + 92: uint16(21839), + 93: uint16(25991), + }, + 57: { + 0: uint16(27766), + 1: uint16(32010), + 2: uint16(32011), + 3: uint16(32862), + 4: uint16(34442), + 5: uint16(38272), + 6: uint16(38639), + 7: uint16(21247), + 8: uint16(27797), + 9: uint16(29289), + 10: uint16(21619), + 11: uint16(23194), + 12: uint16(23614), + 13: uint16(23883), + 14: uint16(24396), + 15: uint16(24494), + 16: uint16(26410), + 17: uint16(26806), + 18: uint16(26979), + 19: uint16(28220), + 20: uint16(28228), + 21: uint16(30473), + 22: uint16(31859), + 23: uint16(32654), + 24: uint16(34183), + 25: uint16(35598), + 26: uint16(36855), + 27: uint16(38753), + 28: uint16(40692), + 29: uint16(23735), + 30: uint16(24758), + 31: uint16(24845), + 32: uint16(25003), + 33: uint16(25935), + 34: uint16(26107), + 35: uint16(26108), + 36: uint16(27665), + 37: uint16(27887), + 38: uint16(29599), + 39: uint16(29641), + 40: uint16(32225), + 41: uint16(38292), + 42: uint16(23494), + 43: uint16(34588), + 44: uint16(35600), + 45: uint16(21085), + 46: uint16(21338), + 47: uint16(25293), + 48: uint16(25615), + 49: uint16(25778), + 50: uint16(26420), + 51: uint16(27192), + 52: uint16(27850), + 53: uint16(29632), + 54: uint16(29854), + 55: uint16(31636), + 56: uint16(31893), + 57: uint16(32283), + 58: uint16(33162), + 59: uint16(33334), + 60: uint16(34180), + 61: uint16(36843), + 62: uint16(38649), + 63: uint16(39361), + 64: uint16(20276), + 65: uint16(21322), + 66: uint16(21453), + 67: uint16(21467), + 68: uint16(25292), + 69: uint16(25644), + 70: uint16(25856), + 71: uint16(26001), + 72: uint16(27075), + 73: uint16(27886), + 74: uint16(28504), + 75: uint16(29677), + 76: uint16(30036), + 77: uint16(30242), + 78: uint16(30436), + 79: uint16(30460), + 80: uint16(30928), + 81: uint16(30971), + 82: uint16(31020), + 83: uint16(32070), + 84: uint16(33324), + 85: uint16(34784), + 86: uint16(36820), + 87: uint16(38930), + 88: uint16(39151), + 89: uint16(21187), + 90: uint16(25300), + 91: uint16(25765), + 92: uint16(28196), + 93: uint16(28497), + }, + 58: { + 0: uint16(30332), + 1: uint16(36299), + 2: uint16(37297), + 3: uint16(37474), + 4: uint16(39662), + 5: uint16(39747), + 6: uint16(20515), + 7: uint16(20621), + 8: uint16(22346), + 9: uint16(22952), + 10: uint16(23592), + 11: uint16(24135), + 12: uint16(24439), + 13: uint16(25151), + 14: uint16(25918), + 15: uint16(26041), + 16: uint16(26049), + 17: uint16(26121), + 18: uint16(26507), + 19: uint16(27036), + 20: uint16(28354), + 21: uint16(30917), + 22: uint16(32033), + 23: uint16(32938), + 24: uint16(33152), + 25: uint16(33323), + 26: uint16(33459), + 27: uint16(33953), + 28: uint16(34444), + 29: uint16(35370), + 30: uint16(35607), + 31: uint16(37030), + 32: uint16(38450), + 33: uint16(40848), + 34: uint16(20493), + 35: uint16(20467), + 36: uint16(63843), + 37: uint16(22521), + 38: uint16(24472), + 39: uint16(25308), + 40: uint16(25490), + 41: uint16(26479), + 42: uint16(28227), + 43: uint16(28953), + 44: uint16(30403), + 45: uint16(32972), + 46: uint16(32986), + 47: uint16(35060), + 48: uint16(35061), + 49: uint16(35097), + 50: uint16(36064), + 51: uint16(36649), + 52: uint16(37197), + 53: uint16(38506), + 54: uint16(20271), + 55: uint16(20336), + 56: uint16(24091), + 57: uint16(26575), + 58: uint16(26658), + 59: uint16(30333), + 60: uint16(30334), + 61: uint16(39748), + 62: uint16(24161), + 63: uint16(27146), + 64: uint16(29033), + 65: uint16(29140), + 66: uint16(30058), + 67: uint16(63844), + 68: uint16(32321), + 69: uint16(34115), + 70: uint16(34281), + 71: uint16(39132), + 72: uint16(20240), + 73: uint16(31567), + 74: uint16(32624), + 75: uint16(38309), + 76: uint16(20961), + 77: uint16(24070), + 78: uint16(26805), + 79: uint16(27710), + 80: uint16(27726), + 81: uint16(27867), + 82: uint16(29359), + 83: uint16(31684), + 84: uint16(33539), + 85: uint16(27861), + 86: uint16(29754), + 87: uint16(20731), + 88: uint16(21128), + 89: uint16(22721), + 90: uint16(25816), + 91: uint16(27287), + 92: uint16(29863), + 93: uint16(30294), + }, + 59: { + 0: uint16(30887), + 1: uint16(34327), + 2: uint16(38370), + 3: uint16(38713), + 4: uint16(63845), + 5: uint16(21342), + 6: uint16(24321), + 7: uint16(35722), + 8: uint16(36776), + 9: uint16(36783), + 10: uint16(37002), + 11: uint16(21029), + 12: uint16(30629), + 13: uint16(40009), + 14: uint16(40712), + 15: uint16(19993), + 16: uint16(20482), + 17: uint16(20853), + 18: uint16(23643), + 19: uint16(24183), + 20: uint16(26142), + 21: uint16(26170), + 22: uint16(26564), + 23: uint16(26821), + 24: uint16(28851), + 25: uint16(29953), + 26: uint16(30149), + 27: uint16(31177), + 28: uint16(31453), + 29: uint16(36647), + 30: uint16(39200), + 31: uint16(39432), + 32: uint16(20445), + 33: uint16(22561), + 34: uint16(22577), + 35: uint16(23542), + 36: uint16(26222), + 37: uint16(27493), + 38: uint16(27921), + 39: uint16(28282), + 40: uint16(28541), + 41: uint16(29668), + 42: uint16(29995), + 43: uint16(33769), + 44: uint16(35036), + 45: uint16(35091), + 46: uint16(35676), + 47: uint16(36628), + 48: uint16(20239), + 49: uint16(20693), + 50: uint16(21264), + 51: uint16(21340), + 52: uint16(23443), + 53: uint16(24489), + 54: uint16(26381), + 55: uint16(31119), + 56: uint16(33145), + 57: uint16(33583), + 58: uint16(34068), + 59: uint16(35079), + 60: uint16(35206), + 61: uint16(36665), + 62: uint16(36667), + 63: uint16(39333), + 64: uint16(39954), + 65: uint16(26412), + 66: uint16(20086), + 67: uint16(20472), + 68: uint16(22857), + 69: uint16(23553), + 70: uint16(23791), + 71: uint16(23792), + 72: uint16(25447), + 73: uint16(26834), + 74: uint16(28925), + 75: uint16(29090), + 76: uint16(29739), + 77: uint16(32299), + 78: uint16(34028), + 79: uint16(34562), + 80: uint16(36898), + 81: uint16(37586), + 82: uint16(40179), + 83: uint16(19981), + 84: uint16(20184), + 85: uint16(20463), + 86: uint16(20613), + 87: uint16(21078), + 88: uint16(21103), + 89: uint16(21542), + 90: uint16(21648), + 91: uint16(22496), + 92: uint16(22827), + 93: uint16(23142), + }, + 60: { + 0: uint16(23386), + 1: uint16(23413), + 2: uint16(23500), + 3: uint16(24220), + 4: uint16(63846), + 5: uint16(25206), + 6: uint16(25975), + 7: uint16(26023), + 8: uint16(28014), + 9: uint16(28325), + 10: uint16(29238), + 11: uint16(31526), + 12: uint16(31807), + 13: uint16(32566), + 14: uint16(33104), + 15: uint16(33105), + 16: uint16(33178), + 17: uint16(33344), + 18: uint16(33433), + 19: uint16(33705), + 20: uint16(35331), + 21: uint16(36000), + 22: uint16(36070), + 23: uint16(36091), + 24: uint16(36212), + 25: uint16(36282), + 26: uint16(37096), + 27: uint16(37340), + 28: uint16(38428), + 29: uint16(38468), + 30: uint16(39385), + 31: uint16(40167), + 32: uint16(21271), + 33: uint16(20998), + 34: uint16(21545), + 35: uint16(22132), + 36: uint16(22707), + 37: uint16(22868), + 38: uint16(22894), + 39: uint16(24575), + 40: uint16(24996), + 41: uint16(25198), + 42: uint16(26128), + 43: uint16(27774), + 44: uint16(28954), + 45: uint16(30406), + 46: uint16(31881), + 47: uint16(31966), + 48: uint16(32027), + 49: uint16(33452), + 50: uint16(36033), + 51: uint16(38640), + 52: uint16(63847), + 53: uint16(20315), + 54: uint16(24343), + 55: uint16(24447), + 56: uint16(25282), + 57: uint16(23849), + 58: uint16(26379), + 59: uint16(26842), + 60: uint16(30844), + 61: uint16(32323), + 62: uint16(40300), + 63: uint16(19989), + 64: uint16(20633), + 65: uint16(21269), + 66: uint16(21290), + 67: uint16(21329), + 68: uint16(22915), + 69: uint16(23138), + 70: uint16(24199), + 71: uint16(24754), + 72: uint16(24970), + 73: uint16(25161), + 74: uint16(25209), + 75: uint16(26000), + 76: uint16(26503), + 77: uint16(27047), + 78: uint16(27604), + 79: uint16(27606), + 80: uint16(27607), + 81: uint16(27608), + 82: uint16(27832), + 83: uint16(63848), + 84: uint16(29749), + 85: uint16(30202), + 86: uint16(30738), + 87: uint16(30865), + 88: uint16(31189), + 89: uint16(31192), + 90: uint16(31875), + 91: uint16(32203), + 92: uint16(32737), + 93: uint16(32933), + }, + 61: { + 0: uint16(33086), + 1: uint16(33218), + 2: uint16(33778), + 3: uint16(34586), + 4: uint16(35048), + 5: uint16(35513), + 6: uint16(35692), + 7: uint16(36027), + 8: uint16(37145), + 9: uint16(38750), + 10: uint16(39131), + 11: uint16(40763), + 12: uint16(22188), + 13: uint16(23338), + 14: uint16(24428), + 15: uint16(25996), + 16: uint16(27315), + 17: uint16(27567), + 18: uint16(27996), + 19: uint16(28657), + 20: uint16(28693), + 21: uint16(29277), + 22: uint16(29613), + 23: uint16(36007), + 24: uint16(36051), + 25: uint16(38971), + 26: uint16(24977), + 27: uint16(27703), + 28: uint16(32856), + 29: uint16(39425), + 30: uint16(20045), + 31: uint16(20107), + 32: uint16(20123), + 33: uint16(20181), + 34: uint16(20282), + 35: uint16(20284), + 36: uint16(20351), + 37: uint16(20447), + 38: uint16(20735), + 39: uint16(21490), + 40: uint16(21496), + 41: uint16(21766), + 42: uint16(21987), + 43: uint16(22235), + 44: uint16(22763), + 45: uint16(22882), + 46: uint16(23057), + 47: uint16(23531), + 48: uint16(23546), + 49: uint16(23556), + 50: uint16(24051), + 51: uint16(24107), + 52: uint16(24473), + 53: uint16(24605), + 54: uint16(25448), + 55: uint16(26012), + 56: uint16(26031), + 57: uint16(26614), + 58: uint16(26619), + 59: uint16(26797), + 60: uint16(27515), + 61: uint16(27801), + 62: uint16(27863), + 63: uint16(28195), + 64: uint16(28681), + 65: uint16(29509), + 66: uint16(30722), + 67: uint16(31038), + 68: uint16(31040), + 69: uint16(31072), + 70: uint16(31169), + 71: uint16(31721), + 72: uint16(32023), + 73: uint16(32114), + 74: uint16(32902), + 75: uint16(33293), + 76: uint16(33678), + 77: uint16(34001), + 78: uint16(34503), + 79: uint16(35039), + 80: uint16(35408), + 81: uint16(35422), + 82: uint16(35613), + 83: uint16(36060), + 84: uint16(36198), + 85: uint16(36781), + 86: uint16(37034), + 87: uint16(39164), + 88: uint16(39391), + 89: uint16(40605), + 90: uint16(21066), + 91: uint16(63849), + 92: uint16(26388), + 93: uint16(63850), + }, + 62: { + 0: uint16(20632), + 1: uint16(21034), + 2: uint16(23665), + 3: uint16(25955), + 4: uint16(27733), + 5: uint16(29642), + 6: uint16(29987), + 7: uint16(30109), + 8: uint16(31639), + 9: uint16(33948), + 10: uint16(37240), + 11: uint16(38704), + 12: uint16(20087), + 13: uint16(25746), + 14: uint16(27578), + 15: uint16(29022), + 16: uint16(34217), + 17: uint16(19977), + 18: uint16(63851), + 19: uint16(26441), + 20: uint16(26862), + 21: uint16(28183), + 22: uint16(33439), + 23: uint16(34072), + 24: uint16(34923), + 25: uint16(25591), + 26: uint16(28545), + 27: uint16(37394), + 28: uint16(39087), + 29: uint16(19978), + 30: uint16(20663), + 31: uint16(20687), + 32: uint16(20767), + 33: uint16(21830), + 34: uint16(21930), + 35: uint16(22039), + 36: uint16(23360), + 37: uint16(23577), + 38: uint16(23776), + 39: uint16(24120), + 40: uint16(24202), + 41: uint16(24224), + 42: uint16(24258), + 43: uint16(24819), + 44: uint16(26705), + 45: uint16(27233), + 46: uint16(28248), + 47: uint16(29245), + 48: uint16(29248), + 49: uint16(29376), + 50: uint16(30456), + 51: uint16(31077), + 52: uint16(31665), + 53: uint16(32724), + 54: uint16(35059), + 55: uint16(35316), + 56: uint16(35443), + 57: uint16(35937), + 58: uint16(36062), + 59: uint16(38684), + 60: uint16(22622), + 61: uint16(29885), + 62: uint16(36093), + 63: uint16(21959), + 64: uint16(63852), + 65: uint16(31329), + 66: uint16(32034), + 67: uint16(33394), + 68: uint16(29298), + 69: uint16(29983), + 70: uint16(29989), + 71: uint16(63853), + 72: uint16(31513), + 73: uint16(22661), + 74: uint16(22779), + 75: uint16(23996), + 76: uint16(24207), + 77: uint16(24246), + 78: uint16(24464), + 79: uint16(24661), + 80: uint16(25234), + 81: uint16(25471), + 82: uint16(25933), + 83: uint16(26257), + 84: uint16(26329), + 85: uint16(26360), + 86: uint16(26646), + 87: uint16(26866), + 88: uint16(29312), + 89: uint16(29790), + 90: uint16(31598), + 91: uint16(32110), + 92: uint16(32214), + 93: uint16(32626), + }, + 63: { + 0: uint16(32997), + 1: uint16(33298), + 2: uint16(34223), + 3: uint16(35199), + 4: uint16(35475), + 5: uint16(36893), + 6: uint16(37604), + 7: uint16(40653), + 8: uint16(40736), + 9: uint16(22805), + 10: uint16(22893), + 11: uint16(24109), + 12: uint16(24796), + 13: uint16(26132), + 14: uint16(26227), + 15: uint16(26512), + 16: uint16(27728), + 17: uint16(28101), + 18: uint16(28511), + 19: uint16(30707), + 20: uint16(30889), + 21: uint16(33990), + 22: uint16(37323), + 23: uint16(37675), + 24: uint16(20185), + 25: uint16(20682), + 26: uint16(20808), + 27: uint16(21892), + 28: uint16(23307), + 29: uint16(23459), + 30: uint16(25159), + 31: uint16(25982), + 32: uint16(26059), + 33: uint16(28210), + 34: uint16(29053), + 35: uint16(29697), + 36: uint16(29764), + 37: uint16(29831), + 38: uint16(29887), + 39: uint16(30316), + 40: uint16(31146), + 41: uint16(32218), + 42: uint16(32341), + 43: uint16(32680), + 44: uint16(33146), + 45: uint16(33203), + 46: uint16(33337), + 47: uint16(34330), + 48: uint16(34796), + 49: uint16(35445), + 50: uint16(36323), + 51: uint16(36984), + 52: uint16(37521), + 53: uint16(37925), + 54: uint16(39245), + 55: uint16(39854), + 56: uint16(21352), + 57: uint16(23633), + 58: uint16(26964), + 59: uint16(27844), + 60: uint16(27945), + 61: uint16(28203), + 62: uint16(33292), + 63: uint16(34203), + 64: uint16(35131), + 65: uint16(35373), + 66: uint16(35498), + 67: uint16(38634), + 68: uint16(40807), + 69: uint16(21089), + 70: uint16(26297), + 71: uint16(27570), + 72: uint16(32406), + 73: uint16(34814), + 74: uint16(36109), + 75: uint16(38275), + 76: uint16(38493), + 77: uint16(25885), + 78: uint16(28041), + 79: uint16(29166), + 80: uint16(63854), + 81: uint16(22478), + 82: uint16(22995), + 83: uint16(23468), + 84: uint16(24615), + 85: uint16(24826), + 86: uint16(25104), + 87: uint16(26143), + 88: uint16(26207), + 89: uint16(29481), + 90: uint16(29689), + 91: uint16(30427), + 92: uint16(30465), + 93: uint16(31596), + }, + 64: { + 0: uint16(32854), + 1: uint16(32882), + 2: uint16(33125), + 3: uint16(35488), + 4: uint16(37266), + 5: uint16(19990), + 6: uint16(21218), + 7: uint16(27506), + 8: uint16(27927), + 9: uint16(31237), + 10: uint16(31545), + 11: uint16(32048), + 12: uint16(63855), + 13: uint16(36016), + 14: uint16(21484), + 15: uint16(22063), + 16: uint16(22609), + 17: uint16(23477), + 18: uint16(23567), + 19: uint16(23569), + 20: uint16(24034), + 21: uint16(25152), + 22: uint16(25475), + 23: uint16(25620), + 24: uint16(26157), + 25: uint16(26803), + 26: uint16(27836), + 27: uint16(28040), + 28: uint16(28335), + 29: uint16(28703), + 30: uint16(28836), + 31: uint16(29138), + 32: uint16(29990), + 33: uint16(30095), + 34: uint16(30094), + 35: uint16(30233), + 36: uint16(31505), + 37: uint16(31712), + 38: uint16(31787), + 39: uint16(32032), + 40: uint16(32057), + 41: uint16(34092), + 42: uint16(34157), + 43: uint16(34311), + 44: uint16(35380), + 45: uint16(36877), + 46: uint16(36961), + 47: uint16(37045), + 48: uint16(37559), + 49: uint16(38902), + 50: uint16(39479), + 51: uint16(20439), + 52: uint16(23660), + 53: uint16(26463), + 54: uint16(28049), + 55: uint16(31903), + 56: uint16(32396), + 57: uint16(35606), + 58: uint16(36118), + 59: uint16(36895), + 60: uint16(23403), + 61: uint16(24061), + 62: uint16(25613), + 63: uint16(33984), + 64: uint16(36956), + 65: uint16(39137), + 66: uint16(29575), + 67: uint16(23435), + 68: uint16(24730), + 69: uint16(26494), + 70: uint16(28126), + 71: uint16(35359), + 72: uint16(35494), + 73: uint16(36865), + 74: uint16(38924), + 75: uint16(21047), + 76: uint16(63856), + 77: uint16(28753), + 78: uint16(30862), + 79: uint16(37782), + 80: uint16(34928), + 81: uint16(37335), + 82: uint16(20462), + 83: uint16(21463), + 84: uint16(22013), + 85: uint16(22234), + 86: uint16(22402), + 87: uint16(22781), + 88: uint16(23234), + 89: uint16(23432), + 90: uint16(23723), + 91: uint16(23744), + 92: uint16(24101), + 93: uint16(24833), + }, + 65: { + 0: uint16(25101), + 1: uint16(25163), + 2: uint16(25480), + 3: uint16(25628), + 4: uint16(25910), + 5: uint16(25976), + 6: uint16(27193), + 7: uint16(27530), + 8: uint16(27700), + 9: uint16(27929), + 10: uint16(28465), + 11: uint16(29159), + 12: uint16(29417), + 13: uint16(29560), + 14: uint16(29703), + 15: uint16(29874), + 16: uint16(30246), + 17: uint16(30561), + 18: uint16(31168), + 19: uint16(31319), + 20: uint16(31466), + 21: uint16(31929), + 22: uint16(32143), + 23: uint16(32172), + 24: uint16(32353), + 25: uint16(32670), + 26: uint16(33065), + 27: uint16(33585), + 28: uint16(33936), + 29: uint16(34010), + 30: uint16(34282), + 31: uint16(34966), + 32: uint16(35504), + 33: uint16(35728), + 34: uint16(36664), + 35: uint16(36930), + 36: uint16(36995), + 37: uint16(37228), + 38: uint16(37526), + 39: uint16(37561), + 40: uint16(38539), + 41: uint16(38567), + 42: uint16(38568), + 43: uint16(38614), + 44: uint16(38656), + 45: uint16(38920), + 46: uint16(39318), + 47: uint16(39635), + 48: uint16(39706), + 49: uint16(21460), + 50: uint16(22654), + 51: uint16(22809), + 52: uint16(23408), + 53: uint16(23487), + 54: uint16(28113), + 55: uint16(28506), + 56: uint16(29087), + 57: uint16(29729), + 58: uint16(29881), + 59: uint16(32901), + 60: uint16(33789), + 61: uint16(24033), + 62: uint16(24455), + 63: uint16(24490), + 64: uint16(24642), + 65: uint16(26092), + 66: uint16(26642), + 67: uint16(26991), + 68: uint16(27219), + 69: uint16(27529), + 70: uint16(27957), + 71: uint16(28147), + 72: uint16(29667), + 73: uint16(30462), + 74: uint16(30636), + 75: uint16(31565), + 76: uint16(32020), + 77: uint16(33059), + 78: uint16(33308), + 79: uint16(33600), + 80: uint16(34036), + 81: uint16(34147), + 82: uint16(35426), + 83: uint16(35524), + 84: uint16(37255), + 85: uint16(37662), + 86: uint16(38918), + 87: uint16(39348), + 88: uint16(25100), + 89: uint16(34899), + 90: uint16(36848), + 91: uint16(37477), + 92: uint16(23815), + 93: uint16(23847), + }, + 66: { + 0: uint16(23913), + 1: uint16(29791), + 2: uint16(33181), + 3: uint16(34664), + 4: uint16(28629), + 5: uint16(25342), + 6: uint16(32722), + 7: uint16(35126), + 8: uint16(35186), + 9: uint16(19998), + 10: uint16(20056), + 11: uint16(20711), + 12: uint16(21213), + 13: uint16(21319), + 14: uint16(25215), + 15: uint16(26119), + 16: uint16(32361), + 17: uint16(34821), + 18: uint16(38494), + 19: uint16(20365), + 20: uint16(21273), + 21: uint16(22070), + 22: uint16(22987), + 23: uint16(23204), + 24: uint16(23608), + 25: uint16(23630), + 26: uint16(23629), + 27: uint16(24066), + 28: uint16(24337), + 29: uint16(24643), + 30: uint16(26045), + 31: uint16(26159), + 32: uint16(26178), + 33: uint16(26558), + 34: uint16(26612), + 35: uint16(29468), + 36: uint16(30690), + 37: uint16(31034), + 38: uint16(32709), + 39: uint16(33940), + 40: uint16(33997), + 41: uint16(35222), + 42: uint16(35430), + 43: uint16(35433), + 44: uint16(35553), + 45: uint16(35925), + 46: uint16(35962), + 47: uint16(22516), + 48: uint16(23508), + 49: uint16(24335), + 50: uint16(24687), + 51: uint16(25325), + 52: uint16(26893), + 53: uint16(27542), + 54: uint16(28252), + 55: uint16(29060), + 56: uint16(31698), + 57: uint16(34645), + 58: uint16(35672), + 59: uint16(36606), + 60: uint16(39135), + 61: uint16(39166), + 62: uint16(20280), + 63: uint16(20353), + 64: uint16(20449), + 65: uint16(21627), + 66: uint16(23072), + 67: uint16(23480), + 68: uint16(24892), + 69: uint16(26032), + 70: uint16(26216), + 71: uint16(29180), + 72: uint16(30003), + 73: uint16(31070), + 74: uint16(32051), + 75: uint16(33102), + 76: uint16(33251), + 77: uint16(33688), + 78: uint16(34218), + 79: uint16(34254), + 80: uint16(34563), + 81: uint16(35338), + 82: uint16(36523), + 83: uint16(36763), + 84: uint16(63857), + 85: uint16(36805), + 86: uint16(22833), + 87: uint16(23460), + 88: uint16(23526), + 89: uint16(24713), + 90: uint16(23529), + 91: uint16(23563), + 92: uint16(24515), + 93: uint16(27777), + }, + 67: { + 0: uint16(63858), + 1: uint16(28145), + 2: uint16(28683), + 3: uint16(29978), + 4: uint16(33455), + 5: uint16(35574), + 6: uint16(20160), + 7: uint16(21313), + 8: uint16(63859), + 9: uint16(38617), + 10: uint16(27663), + 11: uint16(20126), + 12: uint16(20420), + 13: uint16(20818), + 14: uint16(21854), + 15: uint16(23077), + 16: uint16(23784), + 17: uint16(25105), + 18: uint16(29273), + 19: uint16(33469), + 20: uint16(33706), + 21: uint16(34558), + 22: uint16(34905), + 23: uint16(35357), + 24: uint16(38463), + 25: uint16(38597), + 26: uint16(39187), + 27: uint16(40201), + 28: uint16(40285), + 29: uint16(22538), + 30: uint16(23731), + 31: uint16(23997), + 32: uint16(24132), + 33: uint16(24801), + 34: uint16(24853), + 35: uint16(25569), + 36: uint16(27138), + 37: uint16(28197), + 38: uint16(37122), + 39: uint16(37716), + 40: uint16(38990), + 41: uint16(39952), + 42: uint16(40823), + 43: uint16(23433), + 44: uint16(23736), + 45: uint16(25353), + 46: uint16(26191), + 47: uint16(26696), + 48: uint16(30524), + 49: uint16(38593), + 50: uint16(38797), + 51: uint16(38996), + 52: uint16(39839), + 53: uint16(26017), + 54: uint16(35585), + 55: uint16(36555), + 56: uint16(38332), + 57: uint16(21813), + 58: uint16(23721), + 59: uint16(24022), + 60: uint16(24245), + 61: uint16(26263), + 62: uint16(30284), + 63: uint16(33780), + 64: uint16(38343), + 65: uint16(22739), + 66: uint16(25276), + 67: uint16(29390), + 68: uint16(40232), + 69: uint16(20208), + 70: uint16(22830), + 71: uint16(24591), + 72: uint16(26171), + 73: uint16(27523), + 74: uint16(31207), + 75: uint16(40230), + 76: uint16(21395), + 77: uint16(21696), + 78: uint16(22467), + 79: uint16(23830), + 80: uint16(24859), + 81: uint16(26326), + 82: uint16(28079), + 83: uint16(30861), + 84: uint16(33406), + 85: uint16(38552), + 86: uint16(38724), + 87: uint16(21380), + 88: uint16(25212), + 89: uint16(25494), + 90: uint16(28082), + 91: uint16(32266), + 92: uint16(33099), + 93: uint16(38989), + }, + 68: { + 0: uint16(27387), + 1: uint16(32588), + 2: uint16(40367), + 3: uint16(40474), + 4: uint16(20063), + 5: uint16(20539), + 6: uint16(20918), + 7: uint16(22812), + 8: uint16(24825), + 9: uint16(25590), + 10: uint16(26928), + 11: uint16(29242), + 12: uint16(32822), + 13: uint16(63860), + 14: uint16(37326), + 15: uint16(24369), + 16: uint16(63861), + 17: uint16(63862), + 18: uint16(32004), + 19: uint16(33509), + 20: uint16(33903), + 21: uint16(33979), + 22: uint16(34277), + 23: uint16(36493), + 24: uint16(63863), + 25: uint16(20335), + 26: uint16(63864), + 27: uint16(63865), + 28: uint16(22756), + 29: uint16(23363), + 30: uint16(24665), + 31: uint16(25562), + 32: uint16(25880), + 33: uint16(25965), + 34: uint16(26264), + 35: uint16(63866), + 36: uint16(26954), + 37: uint16(27171), + 38: uint16(27915), + 39: uint16(28673), + 40: uint16(29036), + 41: uint16(30162), + 42: uint16(30221), + 43: uint16(31155), + 44: uint16(31344), + 45: uint16(63867), + 46: uint16(32650), + 47: uint16(63868), + 48: uint16(35140), + 49: uint16(63869), + 50: uint16(35731), + 51: uint16(37312), + 52: uint16(38525), + 53: uint16(63870), + 54: uint16(39178), + 55: uint16(22276), + 56: uint16(24481), + 57: uint16(26044), + 58: uint16(28417), + 59: uint16(30208), + 60: uint16(31142), + 61: uint16(35486), + 62: uint16(39341), + 63: uint16(39770), + 64: uint16(40812), + 65: uint16(20740), + 66: uint16(25014), + 67: uint16(25233), + 68: uint16(27277), + 69: uint16(33222), + 70: uint16(20547), + 71: uint16(22576), + 72: uint16(24422), + 73: uint16(28937), + 74: uint16(35328), + 75: uint16(35578), + 76: uint16(23420), + 77: uint16(34326), + 78: uint16(20474), + 79: uint16(20796), + 80: uint16(22196), + 81: uint16(22852), + 82: uint16(25513), + 83: uint16(28153), + 84: uint16(23978), + 85: uint16(26989), + 86: uint16(20870), + 87: uint16(20104), + 88: uint16(20313), + 89: uint16(63871), + 90: uint16(63872), + 91: uint16(63873), + 92: uint16(22914), + 93: uint16(63874), + }, + 69: { + 0: uint16(63875), + 1: uint16(27487), + 2: uint16(27741), + 3: uint16(63876), + 4: uint16(29877), + 5: uint16(30998), + 6: uint16(63877), + 7: uint16(33287), + 8: uint16(33349), + 9: uint16(33593), + 10: uint16(36671), + 11: uint16(36701), + 12: uint16(63878), + 13: uint16(39192), + 14: uint16(63879), + 15: uint16(63880), + 16: uint16(63881), + 17: uint16(20134), + 18: uint16(63882), + 19: uint16(22495), + 20: uint16(24441), + 21: uint16(26131), + 22: uint16(63883), + 23: uint16(63884), + 24: uint16(30123), + 25: uint16(32377), + 26: uint16(35695), + 27: uint16(63885), + 28: uint16(36870), + 29: uint16(39515), + 30: uint16(22181), + 31: uint16(22567), + 32: uint16(23032), + 33: uint16(23071), + 34: uint16(23476), + 35: uint16(63886), + 36: uint16(24310), + 37: uint16(63887), + 38: uint16(63888), + 39: uint16(25424), + 40: uint16(25403), + 41: uint16(63889), + 42: uint16(26941), + 43: uint16(27783), + 44: uint16(27839), + 45: uint16(28046), + 46: uint16(28051), + 47: uint16(28149), + 48: uint16(28436), + 49: uint16(63890), + 50: uint16(28895), + 51: uint16(28982), + 52: uint16(29017), + 53: uint16(63891), + 54: uint16(29123), + 55: uint16(29141), + 56: uint16(63892), + 57: uint16(30799), + 58: uint16(30831), + 59: uint16(63893), + 60: uint16(31605), + 61: uint16(32227), + 62: uint16(63894), + 63: uint16(32303), + 64: uint16(63895), + 65: uint16(34893), + 66: uint16(36575), + 67: uint16(63896), + 68: uint16(63897), + 69: uint16(63898), + 70: uint16(37467), + 71: uint16(63899), + 72: uint16(40182), + 73: uint16(63900), + 74: uint16(63901), + 75: uint16(63902), + 76: uint16(24709), + 77: uint16(28037), + 78: uint16(63903), + 79: uint16(29105), + 80: uint16(63904), + 81: uint16(63905), + 82: uint16(38321), + 83: uint16(21421), + 84: uint16(63906), + 85: uint16(63907), + 86: uint16(63908), + 87: uint16(26579), + 88: uint16(63909), + 89: uint16(28814), + 90: uint16(28976), + 91: uint16(29744), + 92: uint16(33398), + 93: uint16(33490), + }, + 70: { + 0: uint16(63910), + 1: uint16(38331), + 2: uint16(39653), + 3: uint16(40573), + 4: uint16(26308), + 5: uint16(63911), + 6: uint16(29121), + 7: uint16(33865), + 8: uint16(63912), + 9: uint16(63913), + 10: uint16(22603), + 11: uint16(63914), + 12: uint16(63915), + 13: uint16(23992), + 14: uint16(24433), + 15: uint16(63916), + 16: uint16(26144), + 17: uint16(26254), + 18: uint16(27001), + 19: uint16(27054), + 20: uint16(27704), + 21: uint16(27891), + 22: uint16(28214), + 23: uint16(28481), + 24: uint16(28634), + 25: uint16(28699), + 26: uint16(28719), + 27: uint16(29008), + 28: uint16(29151), + 29: uint16(29552), + 30: uint16(63917), + 31: uint16(29787), + 32: uint16(63918), + 33: uint16(29908), + 34: uint16(30408), + 35: uint16(31310), + 36: uint16(32403), + 37: uint16(63919), + 38: uint16(63920), + 39: uint16(33521), + 40: uint16(35424), + 41: uint16(36814), + 42: uint16(63921), + 43: uint16(37704), + 44: uint16(63922), + 45: uint16(38681), + 46: uint16(63923), + 47: uint16(63924), + 48: uint16(20034), + 49: uint16(20522), + 50: uint16(63925), + 51: uint16(21000), + 52: uint16(21473), + 53: uint16(26355), + 54: uint16(27757), + 55: uint16(28618), + 56: uint16(29450), + 57: uint16(30591), + 58: uint16(31330), + 59: uint16(33454), + 60: uint16(34269), + 61: uint16(34306), + 62: uint16(63926), + 63: uint16(35028), + 64: uint16(35427), + 65: uint16(35709), + 66: uint16(35947), + 67: uint16(63927), + 68: uint16(37555), + 69: uint16(63928), + 70: uint16(38675), + 71: uint16(38928), + 72: uint16(20116), + 73: uint16(20237), + 74: uint16(20425), + 75: uint16(20658), + 76: uint16(21320), + 77: uint16(21566), + 78: uint16(21555), + 79: uint16(21978), + 80: uint16(22626), + 81: uint16(22714), + 82: uint16(22887), + 83: uint16(23067), + 84: uint16(23524), + 85: uint16(24735), + 86: uint16(63929), + 87: uint16(25034), + 88: uint16(25942), + 89: uint16(26111), + 90: uint16(26212), + 91: uint16(26791), + 92: uint16(27738), + 93: uint16(28595), + }, + 71: { + 0: uint16(28879), + 1: uint16(29100), + 2: uint16(29522), + 3: uint16(31613), + 4: uint16(34568), + 5: uint16(35492), + 6: uint16(39986), + 7: uint16(40711), + 8: uint16(23627), + 9: uint16(27779), + 10: uint16(29508), + 11: uint16(29577), + 12: uint16(37434), + 13: uint16(28331), + 14: uint16(29797), + 15: uint16(30239), + 16: uint16(31337), + 17: uint16(32277), + 18: uint16(34314), + 19: uint16(20800), + 20: uint16(22725), + 21: uint16(25793), + 22: uint16(29934), + 23: uint16(29973), + 24: uint16(30320), + 25: uint16(32705), + 26: uint16(37013), + 27: uint16(38605), + 28: uint16(39252), + 29: uint16(28198), + 30: uint16(29926), + 31: uint16(31401), + 32: uint16(31402), + 33: uint16(33253), + 34: uint16(34521), + 35: uint16(34680), + 36: uint16(35355), + 37: uint16(23113), + 38: uint16(23436), + 39: uint16(23451), + 40: uint16(26785), + 41: uint16(26880), + 42: uint16(28003), + 43: uint16(29609), + 44: uint16(29715), + 45: uint16(29740), + 46: uint16(30871), + 47: uint16(32233), + 48: uint16(32747), + 49: uint16(33048), + 50: uint16(33109), + 51: uint16(33694), + 52: uint16(35916), + 53: uint16(38446), + 54: uint16(38929), + 55: uint16(26352), + 56: uint16(24448), + 57: uint16(26106), + 58: uint16(26505), + 59: uint16(27754), + 60: uint16(29579), + 61: uint16(20525), + 62: uint16(23043), + 63: uint16(27498), + 64: uint16(30702), + 65: uint16(22806), + 66: uint16(23916), + 67: uint16(24013), + 68: uint16(29477), + 69: uint16(30031), + 70: uint16(63930), + 71: uint16(63931), + 72: uint16(20709), + 73: uint16(20985), + 74: uint16(22575), + 75: uint16(22829), + 76: uint16(22934), + 77: uint16(23002), + 78: uint16(23525), + 79: uint16(63932), + 80: uint16(63933), + 81: uint16(23970), + 82: uint16(25303), + 83: uint16(25622), + 84: uint16(25747), + 85: uint16(25854), + 86: uint16(63934), + 87: uint16(26332), + 88: uint16(63935), + 89: uint16(27208), + 90: uint16(63936), + 91: uint16(29183), + 92: uint16(29796), + 93: uint16(63937), + }, + 72: { + 0: uint16(31368), + 1: uint16(31407), + 2: uint16(32327), + 3: uint16(32350), + 4: uint16(32768), + 5: uint16(33136), + 6: uint16(63938), + 7: uint16(34799), + 8: uint16(35201), + 9: uint16(35616), + 10: uint16(36953), + 11: uint16(63939), + 12: uint16(36992), + 13: uint16(39250), + 14: uint16(24958), + 15: uint16(27442), + 16: uint16(28020), + 17: uint16(32287), + 18: uint16(35109), + 19: uint16(36785), + 20: uint16(20433), + 21: uint16(20653), + 22: uint16(20887), + 23: uint16(21191), + 24: uint16(22471), + 25: uint16(22665), + 26: uint16(23481), + 27: uint16(24248), + 28: uint16(24898), + 29: uint16(27029), + 30: uint16(28044), + 31: uint16(28263), + 32: uint16(28342), + 33: uint16(29076), + 34: uint16(29794), + 35: uint16(29992), + 36: uint16(29996), + 37: uint16(32883), + 38: uint16(33592), + 39: uint16(33993), + 40: uint16(36362), + 41: uint16(37780), + 42: uint16(37854), + 43: uint16(63940), + 44: uint16(20110), + 45: uint16(20305), + 46: uint16(20598), + 47: uint16(20778), + 48: uint16(21448), + 49: uint16(21451), + 50: uint16(21491), + 51: uint16(23431), + 52: uint16(23507), + 53: uint16(23588), + 54: uint16(24858), + 55: uint16(24962), + 56: uint16(26100), + 57: uint16(29275), + 58: uint16(29591), + 59: uint16(29760), + 60: uint16(30402), + 61: uint16(31056), + 62: uint16(31121), + 63: uint16(31161), + 64: uint16(32006), + 65: uint16(32701), + 66: uint16(33419), + 67: uint16(34261), + 68: uint16(34398), + 69: uint16(36802), + 70: uint16(36935), + 71: uint16(37109), + 72: uint16(37354), + 73: uint16(38533), + 74: uint16(38632), + 75: uint16(38633), + 76: uint16(21206), + 77: uint16(24423), + 78: uint16(26093), + 79: uint16(26161), + 80: uint16(26671), + 81: uint16(29020), + 82: uint16(31286), + 83: uint16(37057), + 84: uint16(38922), + 85: uint16(20113), + 86: uint16(63941), + 87: uint16(27218), + 88: uint16(27550), + 89: uint16(28560), + 90: uint16(29065), + 91: uint16(32792), + 92: uint16(33464), + 93: uint16(34131), + }, + 73: { + 0: uint16(36939), + 1: uint16(38549), + 2: uint16(38642), + 3: uint16(38907), + 4: uint16(34074), + 5: uint16(39729), + 6: uint16(20112), + 7: uint16(29066), + 8: uint16(38596), + 9: uint16(20803), + 10: uint16(21407), + 11: uint16(21729), + 12: uint16(22291), + 13: uint16(22290), + 14: uint16(22435), + 15: uint16(23195), + 16: uint16(23236), + 17: uint16(23491), + 18: uint16(24616), + 19: uint16(24895), + 20: uint16(25588), + 21: uint16(27781), + 22: uint16(27961), + 23: uint16(28274), + 24: uint16(28304), + 25: uint16(29232), + 26: uint16(29503), + 27: uint16(29783), + 28: uint16(33489), + 29: uint16(34945), + 30: uint16(36677), + 31: uint16(36960), + 32: uint16(63942), + 33: uint16(38498), + 34: uint16(39000), + 35: uint16(40219), + 36: uint16(26376), + 37: uint16(36234), + 38: uint16(37470), + 39: uint16(20301), + 40: uint16(20553), + 41: uint16(20702), + 42: uint16(21361), + 43: uint16(22285), + 44: uint16(22996), + 45: uint16(23041), + 46: uint16(23561), + 47: uint16(24944), + 48: uint16(26256), + 49: uint16(28205), + 50: uint16(29234), + 51: uint16(29771), + 52: uint16(32239), + 53: uint16(32963), + 54: uint16(33806), + 55: uint16(33894), + 56: uint16(34111), + 57: uint16(34655), + 58: uint16(34907), + 59: uint16(35096), + 60: uint16(35586), + 61: uint16(36949), + 62: uint16(38859), + 63: uint16(39759), + 64: uint16(20083), + 65: uint16(20369), + 66: uint16(20754), + 67: uint16(20842), + 68: uint16(63943), + 69: uint16(21807), + 70: uint16(21929), + 71: uint16(23418), + 72: uint16(23461), + 73: uint16(24188), + 74: uint16(24189), + 75: uint16(24254), + 76: uint16(24736), + 77: uint16(24799), + 78: uint16(24840), + 79: uint16(24841), + 80: uint16(25540), + 81: uint16(25912), + 82: uint16(26377), + 83: uint16(63944), + 84: uint16(26580), + 85: uint16(26586), + 86: uint16(63945), + 87: uint16(26977), + 88: uint16(26978), + 89: uint16(27833), + 90: uint16(27943), + 91: uint16(63946), + 92: uint16(28216), + 93: uint16(63947), + }, + 74: { + 0: uint16(28641), + 1: uint16(29494), + 2: uint16(29495), + 3: uint16(63948), + 4: uint16(29788), + 5: uint16(30001), + 6: uint16(63949), + 7: uint16(30290), + 8: uint16(63950), + 9: uint16(63951), + 10: uint16(32173), + 11: uint16(33278), + 12: uint16(33848), + 13: uint16(35029), + 14: uint16(35480), + 15: uint16(35547), + 16: uint16(35565), + 17: uint16(36400), + 18: uint16(36418), + 19: uint16(36938), + 20: uint16(36926), + 21: uint16(36986), + 22: uint16(37193), + 23: uint16(37321), + 24: uint16(37742), + 25: uint16(63952), + 26: uint16(63953), + 27: uint16(22537), + 28: uint16(63954), + 29: uint16(27603), + 30: uint16(32905), + 31: uint16(32946), + 32: uint16(63955), + 33: uint16(63956), + 34: uint16(20801), + 35: uint16(22891), + 36: uint16(23609), + 37: uint16(63957), + 38: uint16(63958), + 39: uint16(28516), + 40: uint16(29607), + 41: uint16(32996), + 42: uint16(36103), + 43: uint16(63959), + 44: uint16(37399), + 45: uint16(38287), + 46: uint16(63960), + 47: uint16(63961), + 48: uint16(63962), + 49: uint16(63963), + 50: uint16(32895), + 51: uint16(25102), + 52: uint16(28700), + 53: uint16(32104), + 54: uint16(34701), + 55: uint16(63964), + 56: uint16(22432), + 57: uint16(24681), + 58: uint16(24903), + 59: uint16(27575), + 60: uint16(35518), + 61: uint16(37504), + 62: uint16(38577), + 63: uint16(20057), + 64: uint16(21535), + 65: uint16(28139), + 66: uint16(34093), + 67: uint16(38512), + 68: uint16(38899), + 69: uint16(39150), + 70: uint16(25558), + 71: uint16(27875), + 72: uint16(37009), + 73: uint16(20957), + 74: uint16(25033), + 75: uint16(33210), + 76: uint16(40441), + 77: uint16(20381), + 78: uint16(20506), + 79: uint16(20736), + 80: uint16(23452), + 81: uint16(24847), + 82: uint16(25087), + 83: uint16(25836), + 84: uint16(26885), + 85: uint16(27589), + 86: uint16(30097), + 87: uint16(30691), + 88: uint16(32681), + 89: uint16(33380), + 90: uint16(34191), + 91: uint16(34811), + 92: uint16(34915), + 93: uint16(35516), + }, + 75: { + 0: uint16(35696), + 1: uint16(37291), + 2: uint16(20108), + 3: uint16(20197), + 4: uint16(20234), + 5: uint16(63965), + 6: uint16(63966), + 7: uint16(22839), + 8: uint16(23016), + 9: uint16(63967), + 10: uint16(24050), + 11: uint16(24347), + 12: uint16(24411), + 13: uint16(24609), + 14: uint16(63968), + 15: uint16(63969), + 16: uint16(63970), + 17: uint16(63971), + 18: uint16(29246), + 19: uint16(29669), + 20: uint16(63972), + 21: uint16(30064), + 22: uint16(30157), + 23: uint16(63973), + 24: uint16(31227), + 25: uint16(63974), + 26: uint16(32780), + 27: uint16(32819), + 28: uint16(32900), + 29: uint16(33505), + 30: uint16(33617), + 31: uint16(63975), + 32: uint16(63976), + 33: uint16(36029), + 34: uint16(36019), + 35: uint16(36999), + 36: uint16(63977), + 37: uint16(63978), + 38: uint16(39156), + 39: uint16(39180), + 40: uint16(63979), + 41: uint16(63980), + 42: uint16(28727), + 43: uint16(30410), + 44: uint16(32714), + 45: uint16(32716), + 46: uint16(32764), + 47: uint16(35610), + 48: uint16(20154), + 49: uint16(20161), + 50: uint16(20995), + 51: uint16(21360), + 52: uint16(63981), + 53: uint16(21693), + 54: uint16(22240), + 55: uint16(23035), + 56: uint16(23493), + 57: uint16(24341), + 58: uint16(24525), + 59: uint16(28270), + 60: uint16(63982), + 61: uint16(63983), + 62: uint16(32106), + 63: uint16(33589), + 64: uint16(63984), + 65: uint16(34451), + 66: uint16(35469), + 67: uint16(63985), + 68: uint16(38765), + 69: uint16(38775), + 70: uint16(63986), + 71: uint16(63987), + 72: uint16(19968), + 73: uint16(20314), + 74: uint16(20350), + 75: uint16(22777), + 76: uint16(26085), + 77: uint16(28322), + 78: uint16(36920), + 79: uint16(37808), + 80: uint16(39353), + 81: uint16(20219), + 82: uint16(22764), + 83: uint16(22922), + 84: uint16(23001), + 85: uint16(24641), + 86: uint16(63988), + 87: uint16(63989), + 88: uint16(31252), + 89: uint16(63990), + 90: uint16(33615), + 91: uint16(36035), + 92: uint16(20837), + 93: uint16(21316), + }, + 76: { + 0: uint16(63991), + 1: uint16(63992), + 2: uint16(63993), + 3: uint16(20173), + 4: uint16(21097), + 5: uint16(23381), + 6: uint16(33471), + 7: uint16(20180), + 8: uint16(21050), + 9: uint16(21672), + 10: uint16(22985), + 11: uint16(23039), + 12: uint16(23376), + 13: uint16(23383), + 14: uint16(23388), + 15: uint16(24675), + 16: uint16(24904), + 17: uint16(28363), + 18: uint16(28825), + 19: uint16(29038), + 20: uint16(29574), + 21: uint16(29943), + 22: uint16(30133), + 23: uint16(30913), + 24: uint16(32043), + 25: uint16(32773), + 26: uint16(33258), + 27: uint16(33576), + 28: uint16(34071), + 29: uint16(34249), + 30: uint16(35566), + 31: uint16(36039), + 32: uint16(38604), + 33: uint16(20316), + 34: uint16(21242), + 35: uint16(22204), + 36: uint16(26027), + 37: uint16(26152), + 38: uint16(28796), + 39: uint16(28856), + 40: uint16(29237), + 41: uint16(32189), + 42: uint16(33421), + 43: uint16(37196), + 44: uint16(38592), + 45: uint16(40306), + 46: uint16(23409), + 47: uint16(26855), + 48: uint16(27544), + 49: uint16(28538), + 50: uint16(30430), + 51: uint16(23697), + 52: uint16(26283), + 53: uint16(28507), + 54: uint16(31668), + 55: uint16(31786), + 56: uint16(34870), + 57: uint16(38620), + 58: uint16(19976), + 59: uint16(20183), + 60: uint16(21280), + 61: uint16(22580), + 62: uint16(22715), + 63: uint16(22767), + 64: uint16(22892), + 65: uint16(23559), + 66: uint16(24115), + 67: uint16(24196), + 68: uint16(24373), + 69: uint16(25484), + 70: uint16(26290), + 71: uint16(26454), + 72: uint16(27167), + 73: uint16(27299), + 74: uint16(27404), + 75: uint16(28479), + 76: uint16(29254), + 77: uint16(63994), + 78: uint16(29520), + 79: uint16(29835), + 80: uint16(31456), + 81: uint16(31911), + 82: uint16(33144), + 83: uint16(33247), + 84: uint16(33255), + 85: uint16(33674), + 86: uint16(33900), + 87: uint16(34083), + 88: uint16(34196), + 89: uint16(34255), + 90: uint16(35037), + 91: uint16(36115), + 92: uint16(37292), + 93: uint16(38263), + }, + 77: { + 0: uint16(38556), + 1: uint16(20877), + 2: uint16(21705), + 3: uint16(22312), + 4: uint16(23472), + 5: uint16(25165), + 6: uint16(26448), + 7: uint16(26685), + 8: uint16(26771), + 9: uint16(28221), + 10: uint16(28371), + 11: uint16(28797), + 12: uint16(32289), + 13: uint16(35009), + 14: uint16(36001), + 15: uint16(36617), + 16: uint16(40779), + 17: uint16(40782), + 18: uint16(29229), + 19: uint16(31631), + 20: uint16(35533), + 21: uint16(37658), + 22: uint16(20295), + 23: uint16(20302), + 24: uint16(20786), + 25: uint16(21632), + 26: uint16(22992), + 27: uint16(24213), + 28: uint16(25269), + 29: uint16(26485), + 30: uint16(26990), + 31: uint16(27159), + 32: uint16(27822), + 33: uint16(28186), + 34: uint16(29401), + 35: uint16(29482), + 36: uint16(30141), + 37: uint16(31672), + 38: uint16(32053), + 39: uint16(33511), + 40: uint16(33785), + 41: uint16(33879), + 42: uint16(34295), + 43: uint16(35419), + 44: uint16(36015), + 45: uint16(36487), + 46: uint16(36889), + 47: uint16(37048), + 48: uint16(38606), + 49: uint16(40799), + 50: uint16(21219), + 51: uint16(21514), + 52: uint16(23265), + 53: uint16(23490), + 54: uint16(25688), + 55: uint16(25973), + 56: uint16(28404), + 57: uint16(29380), + 58: uint16(63995), + 59: uint16(30340), + 60: uint16(31309), + 61: uint16(31515), + 62: uint16(31821), + 63: uint16(32318), + 64: uint16(32735), + 65: uint16(33659), + 66: uint16(35627), + 67: uint16(36042), + 68: uint16(36196), + 69: uint16(36321), + 70: uint16(36447), + 71: uint16(36842), + 72: uint16(36857), + 73: uint16(36969), + 74: uint16(37841), + 75: uint16(20291), + 76: uint16(20346), + 77: uint16(20659), + 78: uint16(20840), + 79: uint16(20856), + 80: uint16(21069), + 81: uint16(21098), + 82: uint16(22625), + 83: uint16(22652), + 84: uint16(22880), + 85: uint16(23560), + 86: uint16(23637), + 87: uint16(24283), + 88: uint16(24731), + 89: uint16(25136), + 90: uint16(26643), + 91: uint16(27583), + 92: uint16(27656), + 93: uint16(28593), + }, + 78: { + 0: uint16(29006), + 1: uint16(29728), + 2: uint16(30000), + 3: uint16(30008), + 4: uint16(30033), + 5: uint16(30322), + 6: uint16(31564), + 7: uint16(31627), + 8: uint16(31661), + 9: uint16(31686), + 10: uint16(32399), + 11: uint16(35438), + 12: uint16(36670), + 13: uint16(36681), + 14: uint16(37439), + 15: uint16(37523), + 16: uint16(37666), + 17: uint16(37931), + 18: uint16(38651), + 19: uint16(39002), + 20: uint16(39019), + 21: uint16(39198), + 22: uint16(20999), + 23: uint16(25130), + 24: uint16(25240), + 25: uint16(27993), + 26: uint16(30308), + 27: uint16(31434), + 28: uint16(31680), + 29: uint16(32118), + 30: uint16(21344), + 31: uint16(23742), + 32: uint16(24215), + 33: uint16(28472), + 34: uint16(28857), + 35: uint16(31896), + 36: uint16(38673), + 37: uint16(39822), + 38: uint16(40670), + 39: uint16(25509), + 40: uint16(25722), + 41: uint16(34678), + 42: uint16(19969), + 43: uint16(20117), + 44: uint16(20141), + 45: uint16(20572), + 46: uint16(20597), + 47: uint16(21576), + 48: uint16(22979), + 49: uint16(23450), + 50: uint16(24128), + 51: uint16(24237), + 52: uint16(24311), + 53: uint16(24449), + 54: uint16(24773), + 55: uint16(25402), + 56: uint16(25919), + 57: uint16(25972), + 58: uint16(26060), + 59: uint16(26230), + 60: uint16(26232), + 61: uint16(26622), + 62: uint16(26984), + 63: uint16(27273), + 64: uint16(27491), + 65: uint16(27712), + 66: uint16(28096), + 67: uint16(28136), + 68: uint16(28191), + 69: uint16(28254), + 70: uint16(28702), + 71: uint16(28833), + 72: uint16(29582), + 73: uint16(29693), + 74: uint16(30010), + 75: uint16(30555), + 76: uint16(30855), + 77: uint16(31118), + 78: uint16(31243), + 79: uint16(31357), + 80: uint16(31934), + 81: uint16(32142), + 82: uint16(33351), + 83: uint16(35330), + 84: uint16(35562), + 85: uint16(35998), + 86: uint16(37165), + 87: uint16(37194), + 88: uint16(37336), + 89: uint16(37478), + 90: uint16(37580), + 91: uint16(37664), + 92: uint16(38662), + 93: uint16(38742), + }, + 79: { + 0: uint16(38748), + 1: uint16(38914), + 2: uint16(40718), + 3: uint16(21046), + 4: uint16(21137), + 5: uint16(21884), + 6: uint16(22564), + 7: uint16(24093), + 8: uint16(24351), + 9: uint16(24716), + 10: uint16(25552), + 11: uint16(26799), + 12: uint16(28639), + 13: uint16(31085), + 14: uint16(31532), + 15: uint16(33229), + 16: uint16(34234), + 17: uint16(35069), + 18: uint16(35576), + 19: uint16(36420), + 20: uint16(37261), + 21: uint16(38500), + 22: uint16(38555), + 23: uint16(38717), + 24: uint16(38988), + 25: uint16(40778), + 26: uint16(20430), + 27: uint16(20806), + 28: uint16(20939), + 29: uint16(21161), + 30: uint16(22066), + 31: uint16(24340), + 32: uint16(24427), + 33: uint16(25514), + 34: uint16(25805), + 35: uint16(26089), + 36: uint16(26177), + 37: uint16(26362), + 38: uint16(26361), + 39: uint16(26397), + 40: uint16(26781), + 41: uint16(26839), + 42: uint16(27133), + 43: uint16(28437), + 44: uint16(28526), + 45: uint16(29031), + 46: uint16(29157), + 47: uint16(29226), + 48: uint16(29866), + 49: uint16(30522), + 50: uint16(31062), + 51: uint16(31066), + 52: uint16(31199), + 53: uint16(31264), + 54: uint16(31381), + 55: uint16(31895), + 56: uint16(31967), + 57: uint16(32068), + 58: uint16(32368), + 59: uint16(32903), + 60: uint16(34299), + 61: uint16(34468), + 62: uint16(35412), + 63: uint16(35519), + 64: uint16(36249), + 65: uint16(36481), + 66: uint16(36896), + 67: uint16(36973), + 68: uint16(37347), + 69: uint16(38459), + 70: uint16(38613), + 71: uint16(40165), + 72: uint16(26063), + 73: uint16(31751), + 74: uint16(36275), + 75: uint16(37827), + 76: uint16(23384), + 77: uint16(23562), + 78: uint16(21330), + 79: uint16(25305), + 80: uint16(29469), + 81: uint16(20519), + 82: uint16(23447), + 83: uint16(24478), + 84: uint16(24752), + 85: uint16(24939), + 86: uint16(26837), + 87: uint16(28121), + 88: uint16(29742), + 89: uint16(31278), + 90: uint16(32066), + 91: uint16(32156), + 92: uint16(32305), + 93: uint16(33131), + }, + 80: { + 0: uint16(36394), + 1: uint16(36405), + 2: uint16(37758), + 3: uint16(37912), + 4: uint16(20304), + 5: uint16(22352), + 6: uint16(24038), + 7: uint16(24231), + 8: uint16(25387), + 9: uint16(32618), + 10: uint16(20027), + 11: uint16(20303), + 12: uint16(20367), + 13: uint16(20570), + 14: uint16(23005), + 15: uint16(32964), + 16: uint16(21610), + 17: uint16(21608), + 18: uint16(22014), + 19: uint16(22863), + 20: uint16(23449), + 21: uint16(24030), + 22: uint16(24282), + 23: uint16(26205), + 24: uint16(26417), + 25: uint16(26609), + 26: uint16(26666), + 27: uint16(27880), + 28: uint16(27954), + 29: uint16(28234), + 30: uint16(28557), + 31: uint16(28855), + 32: uint16(29664), + 33: uint16(30087), + 34: uint16(31820), + 35: uint16(32002), + 36: uint16(32044), + 37: uint16(32162), + 38: uint16(33311), + 39: uint16(34523), + 40: uint16(35387), + 41: uint16(35461), + 42: uint16(36208), + 43: uint16(36490), + 44: uint16(36659), + 45: uint16(36913), + 46: uint16(37198), + 47: uint16(37202), + 48: uint16(37956), + 49: uint16(39376), + 50: uint16(31481), + 51: uint16(31909), + 52: uint16(20426), + 53: uint16(20737), + 54: uint16(20934), + 55: uint16(22472), + 56: uint16(23535), + 57: uint16(23803), + 58: uint16(26201), + 59: uint16(27197), + 60: uint16(27994), + 61: uint16(28310), + 62: uint16(28652), + 63: uint16(28940), + 64: uint16(30063), + 65: uint16(31459), + 66: uint16(34850), + 67: uint16(36897), + 68: uint16(36981), + 69: uint16(38603), + 70: uint16(39423), + 71: uint16(33537), + 72: uint16(20013), + 73: uint16(20210), + 74: uint16(34886), + 75: uint16(37325), + 76: uint16(21373), + 77: uint16(27355), + 78: uint16(26987), + 79: uint16(27713), + 80: uint16(33914), + 81: uint16(22686), + 82: uint16(24974), + 83: uint16(26366), + 84: uint16(25327), + 85: uint16(28893), + 86: uint16(29969), + 87: uint16(30151), + 88: uint16(32338), + 89: uint16(33976), + 90: uint16(35657), + 91: uint16(36104), + 92: uint16(20043), + 93: uint16(21482), + }, + 81: { + 0: uint16(21675), + 1: uint16(22320), + 2: uint16(22336), + 3: uint16(24535), + 4: uint16(25345), + 5: uint16(25351), + 6: uint16(25711), + 7: uint16(25903), + 8: uint16(26088), + 9: uint16(26234), + 10: uint16(26525), + 11: uint16(26547), + 12: uint16(27490), + 13: uint16(27744), + 14: uint16(27802), + 15: uint16(28460), + 16: uint16(30693), + 17: uint16(30757), + 18: uint16(31049), + 19: uint16(31063), + 20: uint16(32025), + 21: uint16(32930), + 22: uint16(33026), + 23: uint16(33267), + 24: uint16(33437), + 25: uint16(33463), + 26: uint16(34584), + 27: uint16(35468), + 28: uint16(63996), + 29: uint16(36100), + 30: uint16(36286), + 31: uint16(36978), + 32: uint16(30452), + 33: uint16(31257), + 34: uint16(31287), + 35: uint16(32340), + 36: uint16(32887), + 37: uint16(21767), + 38: uint16(21972), + 39: uint16(22645), + 40: uint16(25391), + 41: uint16(25634), + 42: uint16(26185), + 43: uint16(26187), + 44: uint16(26733), + 45: uint16(27035), + 46: uint16(27524), + 47: uint16(27941), + 48: uint16(28337), + 49: uint16(29645), + 50: uint16(29800), + 51: uint16(29857), + 52: uint16(30043), + 53: uint16(30137), + 54: uint16(30433), + 55: uint16(30494), + 56: uint16(30603), + 57: uint16(31206), + 58: uint16(32265), + 59: uint16(32285), + 60: uint16(33275), + 61: uint16(34095), + 62: uint16(34967), + 63: uint16(35386), + 64: uint16(36049), + 65: uint16(36587), + 66: uint16(36784), + 67: uint16(36914), + 68: uint16(37805), + 69: uint16(38499), + 70: uint16(38515), + 71: uint16(38663), + 72: uint16(20356), + 73: uint16(21489), + 74: uint16(23018), + 75: uint16(23241), + 76: uint16(24089), + 77: uint16(26702), + 78: uint16(29894), + 79: uint16(30142), + 80: uint16(31209), + 81: uint16(31378), + 82: uint16(33187), + 83: uint16(34541), + 84: uint16(36074), + 85: uint16(36300), + 86: uint16(36845), + 87: uint16(26015), + 88: uint16(26389), + 89: uint16(63997), + 90: uint16(22519), + 91: uint16(28503), + 92: uint16(32221), + 93: uint16(36655), + }, + 82: { + 0: uint16(37878), + 1: uint16(38598), + 2: uint16(24501), + 3: uint16(25074), + 4: uint16(28548), + 5: uint16(19988), + 6: uint16(20376), + 7: uint16(20511), + 8: uint16(21449), + 9: uint16(21983), + 10: uint16(23919), + 11: uint16(24046), + 12: uint16(27425), + 13: uint16(27492), + 14: uint16(30923), + 15: uint16(31642), + 16: uint16(63998), + 17: uint16(36425), + 18: uint16(36554), + 19: uint16(36974), + 20: uint16(25417), + 21: uint16(25662), + 22: uint16(30528), + 23: uint16(31364), + 24: uint16(37679), + 25: uint16(38015), + 26: uint16(40810), + 27: uint16(25776), + 28: uint16(28591), + 29: uint16(29158), + 30: uint16(29864), + 31: uint16(29914), + 32: uint16(31428), + 33: uint16(31762), + 34: uint16(32386), + 35: uint16(31922), + 36: uint16(32408), + 37: uint16(35738), + 38: uint16(36106), + 39: uint16(38013), + 40: uint16(39184), + 41: uint16(39244), + 42: uint16(21049), + 43: uint16(23519), + 44: uint16(25830), + 45: uint16(26413), + 46: uint16(32046), + 47: uint16(20717), + 48: uint16(21443), + 49: uint16(22649), + 50: uint16(24920), + 51: uint16(24921), + 52: uint16(25082), + 53: uint16(26028), + 54: uint16(31449), + 55: uint16(35730), + 56: uint16(35734), + 57: uint16(20489), + 58: uint16(20513), + 59: uint16(21109), + 60: uint16(21809), + 61: uint16(23100), + 62: uint16(24288), + 63: uint16(24432), + 64: uint16(24884), + 65: uint16(25950), + 66: uint16(26124), + 67: uint16(26166), + 68: uint16(26274), + 69: uint16(27085), + 70: uint16(28356), + 71: uint16(28466), + 72: uint16(29462), + 73: uint16(30241), + 74: uint16(31379), + 75: uint16(33081), + 76: uint16(33369), + 77: uint16(33750), + 78: uint16(33980), + 79: uint16(20661), + 80: uint16(22512), + 81: uint16(23488), + 82: uint16(23528), + 83: uint16(24425), + 84: uint16(25505), + 85: uint16(30758), + 86: uint16(32181), + 87: uint16(33756), + 88: uint16(34081), + 89: uint16(37319), + 90: uint16(37365), + 91: uint16(20874), + 92: uint16(26613), + 93: uint16(31574), + }, + 83: { + 0: uint16(36012), + 1: uint16(20932), + 2: uint16(22971), + 3: uint16(24765), + 4: uint16(34389), + 5: uint16(20508), + 6: uint16(63999), + 7: uint16(21076), + 8: uint16(23610), + 9: uint16(24957), + 10: uint16(25114), + 11: uint16(25299), + 12: uint16(25842), + 13: uint16(26021), + 14: uint16(28364), + 15: uint16(30240), + 16: uint16(33034), + 17: uint16(36448), + 18: uint16(38495), + 19: uint16(38587), + 20: uint16(20191), + 21: uint16(21315), + 22: uint16(21912), + 23: uint16(22825), + 24: uint16(24029), + 25: uint16(25797), + 26: uint16(27849), + 27: uint16(28154), + 28: uint16(29588), + 29: uint16(31359), + 30: uint16(33307), + 31: uint16(34214), + 32: uint16(36068), + 33: uint16(36368), + 34: uint16(36983), + 35: uint16(37351), + 36: uint16(38369), + 37: uint16(38433), + 38: uint16(38854), + 39: uint16(20984), + 40: uint16(21746), + 41: uint16(21894), + 42: uint16(24505), + 43: uint16(25764), + 44: uint16(28552), + 45: uint16(32180), + 46: uint16(36639), + 47: uint16(36685), + 48: uint16(37941), + 49: uint16(20681), + 50: uint16(23574), + 51: uint16(27838), + 52: uint16(28155), + 53: uint16(29979), + 54: uint16(30651), + 55: uint16(31805), + 56: uint16(31844), + 57: uint16(35449), + 58: uint16(35522), + 59: uint16(22558), + 60: uint16(22974), + 61: uint16(24086), + 62: uint16(25463), + 63: uint16(29266), + 64: uint16(30090), + 65: uint16(30571), + 66: uint16(35548), + 67: uint16(36028), + 68: uint16(36626), + 69: uint16(24307), + 70: uint16(26228), + 71: uint16(28152), + 72: uint16(32893), + 73: uint16(33729), + 74: uint16(35531), + 75: uint16(38737), + 76: uint16(39894), + 77: uint16(64000), + 78: uint16(21059), + 79: uint16(26367), + 80: uint16(28053), + 81: uint16(28399), + 82: uint16(32224), + 83: uint16(35558), + 84: uint16(36910), + 85: uint16(36958), + 86: uint16(39636), + 87: uint16(21021), + 88: uint16(21119), + 89: uint16(21736), + 90: uint16(24980), + 91: uint16(25220), + 92: uint16(25307), + 93: uint16(26786), + }, + 84: { + 0: uint16(26898), + 1: uint16(26970), + 2: uint16(27189), + 3: uint16(28818), + 4: uint16(28966), + 5: uint16(30813), + 6: uint16(30977), + 7: uint16(30990), + 8: uint16(31186), + 9: uint16(31245), + 10: uint16(32918), + 11: uint16(33400), + 12: uint16(33493), + 13: uint16(33609), + 14: uint16(34121), + 15: uint16(35970), + 16: uint16(36229), + 17: uint16(37218), + 18: uint16(37259), + 19: uint16(37294), + 20: uint16(20419), + 21: uint16(22225), + 22: uint16(29165), + 23: uint16(30679), + 24: uint16(34560), + 25: uint16(35320), + 26: uint16(23544), + 27: uint16(24534), + 28: uint16(26449), + 29: uint16(37032), + 30: uint16(21474), + 31: uint16(22618), + 32: uint16(23541), + 33: uint16(24740), + 34: uint16(24961), + 35: uint16(25696), + 36: uint16(32317), + 37: uint16(32880), + 38: uint16(34085), + 39: uint16(37507), + 40: uint16(25774), + 41: uint16(20652), + 42: uint16(23828), + 43: uint16(26368), + 44: uint16(22684), + 45: uint16(25277), + 46: uint16(25512), + 47: uint16(26894), + 48: uint16(27000), + 49: uint16(27166), + 50: uint16(28267), + 51: uint16(30394), + 52: uint16(31179), + 53: uint16(33467), + 54: uint16(33833), + 55: uint16(35535), + 56: uint16(36264), + 57: uint16(36861), + 58: uint16(37138), + 59: uint16(37195), + 60: uint16(37276), + 61: uint16(37648), + 62: uint16(37656), + 63: uint16(37786), + 64: uint16(38619), + 65: uint16(39478), + 66: uint16(39949), + 67: uint16(19985), + 68: uint16(30044), + 69: uint16(31069), + 70: uint16(31482), + 71: uint16(31569), + 72: uint16(31689), + 73: uint16(32302), + 74: uint16(33988), + 75: uint16(36441), + 76: uint16(36468), + 77: uint16(36600), + 78: uint16(36880), + 79: uint16(26149), + 80: uint16(26943), + 81: uint16(29763), + 82: uint16(20986), + 83: uint16(26414), + 84: uint16(40668), + 85: uint16(20805), + 86: uint16(24544), + 87: uint16(27798), + 88: uint16(34802), + 89: uint16(34909), + 90: uint16(34935), + 91: uint16(24756), + 92: uint16(33205), + 93: uint16(33795), + }, + 85: { + 0: uint16(36101), + 1: uint16(21462), + 2: uint16(21561), + 3: uint16(22068), + 4: uint16(23094), + 5: uint16(23601), + 6: uint16(28810), + 7: uint16(32736), + 8: uint16(32858), + 9: uint16(33030), + 10: uint16(33261), + 11: uint16(36259), + 12: uint16(37257), + 13: uint16(39519), + 14: uint16(40434), + 15: uint16(20596), + 16: uint16(20164), + 17: uint16(21408), + 18: uint16(24827), + 19: uint16(28204), + 20: uint16(23652), + 21: uint16(20360), + 22: uint16(20516), + 23: uint16(21988), + 24: uint16(23769), + 25: uint16(24159), + 26: uint16(24677), + 27: uint16(26772), + 28: uint16(27835), + 29: uint16(28100), + 30: uint16(29118), + 31: uint16(30164), + 32: uint16(30196), + 33: uint16(30305), + 34: uint16(31258), + 35: uint16(31305), + 36: uint16(32199), + 37: uint16(32251), + 38: uint16(32622), + 39: uint16(33268), + 40: uint16(34473), + 41: uint16(36636), + 42: uint16(38601), + 43: uint16(39347), + 44: uint16(40786), + 45: uint16(21063), + 46: uint16(21189), + 47: uint16(39149), + 48: uint16(35242), + 49: uint16(19971), + 50: uint16(26578), + 51: uint16(28422), + 52: uint16(20405), + 53: uint16(23522), + 54: uint16(26517), + 55: uint16(27784), + 56: uint16(28024), + 57: uint16(29723), + 58: uint16(30759), + 59: uint16(37341), + 60: uint16(37756), + 61: uint16(34756), + 62: uint16(31204), + 63: uint16(31281), + 64: uint16(24555), + 65: uint16(20182), + 66: uint16(21668), + 67: uint16(21822), + 68: uint16(22702), + 69: uint16(22949), + 70: uint16(24816), + 71: uint16(25171), + 72: uint16(25302), + 73: uint16(26422), + 74: uint16(26965), + 75: uint16(33333), + 76: uint16(38464), + 77: uint16(39345), + 78: uint16(39389), + 79: uint16(20524), + 80: uint16(21331), + 81: uint16(21828), + 82: uint16(22396), + 83: uint16(64001), + 84: uint16(25176), + 85: uint16(64002), + 86: uint16(25826), + 87: uint16(26219), + 88: uint16(26589), + 89: uint16(28609), + 90: uint16(28655), + 91: uint16(29730), + 92: uint16(29752), + 93: uint16(35351), + }, + 86: { + 0: uint16(37944), + 1: uint16(21585), + 2: uint16(22022), + 3: uint16(22374), + 4: uint16(24392), + 5: uint16(24986), + 6: uint16(27470), + 7: uint16(28760), + 8: uint16(28845), + 9: uint16(32187), + 10: uint16(35477), + 11: uint16(22890), + 12: uint16(33067), + 13: uint16(25506), + 14: uint16(30472), + 15: uint16(32829), + 16: uint16(36010), + 17: uint16(22612), + 18: uint16(25645), + 19: uint16(27067), + 20: uint16(23445), + 21: uint16(24081), + 22: uint16(28271), + 23: uint16(64003), + 24: uint16(34153), + 25: uint16(20812), + 26: uint16(21488), + 27: uint16(22826), + 28: uint16(24608), + 29: uint16(24907), + 30: uint16(27526), + 31: uint16(27760), + 32: uint16(27888), + 33: uint16(31518), + 34: uint16(32974), + 35: uint16(33492), + 36: uint16(36294), + 37: uint16(37040), + 38: uint16(39089), + 39: uint16(64004), + 40: uint16(25799), + 41: uint16(28580), + 42: uint16(25745), + 43: uint16(25860), + 44: uint16(20814), + 45: uint16(21520), + 46: uint16(22303), + 47: uint16(35342), + 48: uint16(24927), + 49: uint16(26742), + 50: uint16(64005), + 51: uint16(30171), + 52: uint16(31570), + 53: uint16(32113), + 54: uint16(36890), + 55: uint16(22534), + 56: uint16(27084), + 57: uint16(33151), + 58: uint16(35114), + 59: uint16(36864), + 60: uint16(38969), + 61: uint16(20600), + 62: uint16(22871), + 63: uint16(22956), + 64: uint16(25237), + 65: uint16(36879), + 66: uint16(39722), + 67: uint16(24925), + 68: uint16(29305), + 69: uint16(38358), + 70: uint16(22369), + 71: uint16(23110), + 72: uint16(24052), + 73: uint16(25226), + 74: uint16(25773), + 75: uint16(25850), + 76: uint16(26487), + 77: uint16(27874), + 78: uint16(27966), + 79: uint16(29228), + 80: uint16(29750), + 81: uint16(30772), + 82: uint16(32631), + 83: uint16(33453), + 84: uint16(36315), + 85: uint16(38935), + 86: uint16(21028), + 87: uint16(22338), + 88: uint16(26495), + 89: uint16(29256), + 90: uint16(29923), + 91: uint16(36009), + 92: uint16(36774), + 93: uint16(37393), + }, + 87: { + 0: uint16(38442), + 1: uint16(20843), + 2: uint16(21485), + 3: uint16(25420), + 4: uint16(20329), + 5: uint16(21764), + 6: uint16(24726), + 7: uint16(25943), + 8: uint16(27803), + 9: uint16(28031), + 10: uint16(29260), + 11: uint16(29437), + 12: uint16(31255), + 13: uint16(35207), + 14: uint16(35997), + 15: uint16(24429), + 16: uint16(28558), + 17: uint16(28921), + 18: uint16(33192), + 19: uint16(24846), + 20: uint16(20415), + 21: uint16(20559), + 22: uint16(25153), + 23: uint16(29255), + 24: uint16(31687), + 25: uint16(32232), + 26: uint16(32745), + 27: uint16(36941), + 28: uint16(38829), + 29: uint16(39449), + 30: uint16(36022), + 31: uint16(22378), + 32: uint16(24179), + 33: uint16(26544), + 34: uint16(33805), + 35: uint16(35413), + 36: uint16(21536), + 37: uint16(23318), + 38: uint16(24163), + 39: uint16(24290), + 40: uint16(24330), + 41: uint16(25987), + 42: uint16(32954), + 43: uint16(34109), + 44: uint16(38281), + 45: uint16(38491), + 46: uint16(20296), + 47: uint16(21253), + 48: uint16(21261), + 49: uint16(21263), + 50: uint16(21638), + 51: uint16(21754), + 52: uint16(22275), + 53: uint16(24067), + 54: uint16(24598), + 55: uint16(25243), + 56: uint16(25265), + 57: uint16(25429), + 58: uint16(64006), + 59: uint16(27873), + 60: uint16(28006), + 61: uint16(30129), + 62: uint16(30770), + 63: uint16(32990), + 64: uint16(33071), + 65: uint16(33502), + 66: uint16(33889), + 67: uint16(33970), + 68: uint16(34957), + 69: uint16(35090), + 70: uint16(36875), + 71: uint16(37610), + 72: uint16(39165), + 73: uint16(39825), + 74: uint16(24133), + 75: uint16(26292), + 76: uint16(26333), + 77: uint16(28689), + 78: uint16(29190), + 79: uint16(64007), + 80: uint16(20469), + 81: uint16(21117), + 82: uint16(24426), + 83: uint16(24915), + 84: uint16(26451), + 85: uint16(27161), + 86: uint16(28418), + 87: uint16(29922), + 88: uint16(31080), + 89: uint16(34920), + 90: uint16(35961), + 91: uint16(39111), + 92: uint16(39108), + 93: uint16(39491), + }, + 88: { + 0: uint16(21697), + 1: uint16(31263), + 2: uint16(26963), + 3: uint16(35575), + 4: uint16(35914), + 5: uint16(39080), + 6: uint16(39342), + 7: uint16(24444), + 8: uint16(25259), + 9: uint16(30130), + 10: uint16(30382), + 11: uint16(34987), + 12: uint16(36991), + 13: uint16(38466), + 14: uint16(21305), + 15: uint16(24380), + 16: uint16(24517), + 17: uint16(27852), + 18: uint16(29644), + 19: uint16(30050), + 20: uint16(30091), + 21: uint16(31558), + 22: uint16(33534), + 23: uint16(39325), + 24: uint16(20047), + 25: uint16(36924), + 26: uint16(19979), + 27: uint16(20309), + 28: uint16(21414), + 29: uint16(22799), + 30: uint16(24264), + 31: uint16(26160), + 32: uint16(27827), + 33: uint16(29781), + 34: uint16(33655), + 35: uint16(34662), + 36: uint16(36032), + 37: uint16(36944), + 38: uint16(38686), + 39: uint16(39957), + 40: uint16(22737), + 41: uint16(23416), + 42: uint16(34384), + 43: uint16(35604), + 44: uint16(40372), + 45: uint16(23506), + 46: uint16(24680), + 47: uint16(24717), + 48: uint16(26097), + 49: uint16(27735), + 50: uint16(28450), + 51: uint16(28579), + 52: uint16(28698), + 53: uint16(32597), + 54: uint16(32752), + 55: uint16(38289), + 56: uint16(38290), + 57: uint16(38480), + 58: uint16(38867), + 59: uint16(21106), + 60: uint16(36676), + 61: uint16(20989), + 62: uint16(21547), + 63: uint16(21688), + 64: uint16(21859), + 65: uint16(21898), + 66: uint16(27323), + 67: uint16(28085), + 68: uint16(32216), + 69: uint16(33382), + 70: uint16(37532), + 71: uint16(38519), + 72: uint16(40569), + 73: uint16(21512), + 74: uint16(21704), + 75: uint16(30418), + 76: uint16(34532), + 77: uint16(38308), + 78: uint16(38356), + 79: uint16(38492), + 80: uint16(20130), + 81: uint16(20233), + 82: uint16(23022), + 83: uint16(23270), + 84: uint16(24055), + 85: uint16(24658), + 86: uint16(25239), + 87: uint16(26477), + 88: uint16(26689), + 89: uint16(27782), + 90: uint16(28207), + 91: uint16(32568), + 92: uint16(32923), + 93: uint16(33322), + }, + 89: { + 0: uint16(64008), + 1: uint16(64009), + 2: uint16(38917), + 3: uint16(20133), + 4: uint16(20565), + 5: uint16(21683), + 6: uint16(22419), + 7: uint16(22874), + 8: uint16(23401), + 9: uint16(23475), + 10: uint16(25032), + 11: uint16(26999), + 12: uint16(28023), + 13: uint16(28707), + 14: uint16(34809), + 15: uint16(35299), + 16: uint16(35442), + 17: uint16(35559), + 18: uint16(36994), + 19: uint16(39405), + 20: uint16(39608), + 21: uint16(21182), + 22: uint16(26680), + 23: uint16(20502), + 24: uint16(24184), + 25: uint16(26447), + 26: uint16(33607), + 27: uint16(34892), + 28: uint16(20139), + 29: uint16(21521), + 30: uint16(22190), + 31: uint16(29670), + 32: uint16(37141), + 33: uint16(38911), + 34: uint16(39177), + 35: uint16(39255), + 36: uint16(39321), + 37: uint16(22099), + 38: uint16(22687), + 39: uint16(34395), + 40: uint16(35377), + 41: uint16(25010), + 42: uint16(27382), + 43: uint16(29563), + 44: uint16(36562), + 45: uint16(27463), + 46: uint16(38570), + 47: uint16(39511), + 48: uint16(22869), + 49: uint16(29184), + 50: uint16(36203), + 51: uint16(38761), + 52: uint16(20436), + 53: uint16(23796), + 54: uint16(24358), + 55: uint16(25080), + 56: uint16(26203), + 57: uint16(27883), + 58: uint16(28843), + 59: uint16(29572), + 60: uint16(29625), + 61: uint16(29694), + 62: uint16(30505), + 63: uint16(30541), + 64: uint16(32067), + 65: uint16(32098), + 66: uint16(32291), + 67: uint16(33335), + 68: uint16(34898), + 69: uint16(64010), + 70: uint16(36066), + 71: uint16(37449), + 72: uint16(39023), + 73: uint16(23377), + 74: uint16(31348), + 75: uint16(34880), + 76: uint16(38913), + 77: uint16(23244), + 78: uint16(20448), + 79: uint16(21332), + 80: uint16(22846), + 81: uint16(23805), + 82: uint16(25406), + 83: uint16(28025), + 84: uint16(29433), + 85: uint16(33029), + 86: uint16(33031), + 87: uint16(33698), + 88: uint16(37583), + 89: uint16(38960), + 90: uint16(20136), + 91: uint16(20804), + 92: uint16(21009), + 93: uint16(22411), + }, + 90: { + 0: uint16(24418), + 1: uint16(27842), + 2: uint16(28366), + 3: uint16(28677), + 4: uint16(28752), + 5: uint16(28847), + 6: uint16(29074), + 7: uint16(29673), + 8: uint16(29801), + 9: uint16(33610), + 10: uint16(34722), + 11: uint16(34913), + 12: uint16(36872), + 13: uint16(37026), + 14: uint16(37795), + 15: uint16(39336), + 16: uint16(20846), + 17: uint16(24407), + 18: uint16(24800), + 19: uint16(24935), + 20: uint16(26291), + 21: uint16(34137), + 22: uint16(36426), + 23: uint16(37295), + 24: uint16(38795), + 25: uint16(20046), + 26: uint16(20114), + 27: uint16(21628), + 28: uint16(22741), + 29: uint16(22778), + 30: uint16(22909), + 31: uint16(23733), + 32: uint16(24359), + 33: uint16(25142), + 34: uint16(25160), + 35: uint16(26122), + 36: uint16(26215), + 37: uint16(27627), + 38: uint16(28009), + 39: uint16(28111), + 40: uint16(28246), + 41: uint16(28408), + 42: uint16(28564), + 43: uint16(28640), + 44: uint16(28649), + 45: uint16(28765), + 46: uint16(29392), + 47: uint16(29733), + 48: uint16(29786), + 49: uint16(29920), + 50: uint16(30355), + 51: uint16(31068), + 52: uint16(31946), + 53: uint16(32286), + 54: uint16(32993), + 55: uint16(33446), + 56: uint16(33899), + 57: uint16(33983), + 58: uint16(34382), + 59: uint16(34399), + 60: uint16(34676), + 61: uint16(35703), + 62: uint16(35946), + 63: uint16(37804), + 64: uint16(38912), + 65: uint16(39013), + 66: uint16(24785), + 67: uint16(25110), + 68: uint16(37239), + 69: uint16(23130), + 70: uint16(26127), + 71: uint16(28151), + 72: uint16(28222), + 73: uint16(29759), + 74: uint16(39746), + 75: uint16(24573), + 76: uint16(24794), + 77: uint16(31503), + 78: uint16(21700), + 79: uint16(24344), + 80: uint16(27742), + 81: uint16(27859), + 82: uint16(27946), + 83: uint16(28888), + 84: uint16(32005), + 85: uint16(34425), + 86: uint16(35340), + 87: uint16(40251), + 88: uint16(21270), + 89: uint16(21644), + 90: uint16(23301), + 91: uint16(27194), + 92: uint16(28779), + 93: uint16(30069), + }, + 91: { + 0: uint16(31117), + 1: uint16(31166), + 2: uint16(33457), + 3: uint16(33775), + 4: uint16(35441), + 5: uint16(35649), + 6: uint16(36008), + 7: uint16(38772), + 8: uint16(64011), + 9: uint16(25844), + 10: uint16(25899), + 11: uint16(30906), + 12: uint16(30907), + 13: uint16(31339), + 14: uint16(20024), + 15: uint16(21914), + 16: uint16(22864), + 17: uint16(23462), + 18: uint16(24187), + 19: uint16(24739), + 20: uint16(25563), + 21: uint16(27489), + 22: uint16(26213), + 23: uint16(26707), + 24: uint16(28185), + 25: uint16(29029), + 26: uint16(29872), + 27: uint16(32008), + 28: uint16(36996), + 29: uint16(39529), + 30: uint16(39973), + 31: uint16(27963), + 32: uint16(28369), + 33: uint16(29502), + 34: uint16(35905), + 35: uint16(38346), + 36: uint16(20976), + 37: uint16(24140), + 38: uint16(24488), + 39: uint16(24653), + 40: uint16(24822), + 41: uint16(24880), + 42: uint16(24908), + 43: uint16(26179), + 44: uint16(26180), + 45: uint16(27045), + 46: uint16(27841), + 47: uint16(28255), + 48: uint16(28361), + 49: uint16(28514), + 50: uint16(29004), + 51: uint16(29852), + 52: uint16(30343), + 53: uint16(31681), + 54: uint16(31783), + 55: uint16(33618), + 56: uint16(34647), + 57: uint16(36945), + 58: uint16(38541), + 59: uint16(40643), + 60: uint16(21295), + 61: uint16(22238), + 62: uint16(24315), + 63: uint16(24458), + 64: uint16(24674), + 65: uint16(24724), + 66: uint16(25079), + 67: uint16(26214), + 68: uint16(26371), + 69: uint16(27292), + 70: uint16(28142), + 71: uint16(28590), + 72: uint16(28784), + 73: uint16(29546), + 74: uint16(32362), + 75: uint16(33214), + 76: uint16(33588), + 77: uint16(34516), + 78: uint16(35496), + 79: uint16(36036), + 80: uint16(21123), + 81: uint16(29554), + 82: uint16(23446), + 83: uint16(27243), + 84: uint16(37892), + 85: uint16(21742), + 86: uint16(22150), + 87: uint16(23389), + 88: uint16(25928), + 89: uint16(25989), + 90: uint16(26313), + 91: uint16(26783), + 92: uint16(28045), + 93: uint16(28102), + }, + 92: { + 0: uint16(29243), + 1: uint16(32948), + 2: uint16(37237), + 3: uint16(39501), + 4: uint16(20399), + 5: uint16(20505), + 6: uint16(21402), + 7: uint16(21518), + 8: uint16(21564), + 9: uint16(21897), + 10: uint16(21957), + 11: uint16(24127), + 12: uint16(24460), + 13: uint16(26429), + 14: uint16(29030), + 15: uint16(29661), + 16: uint16(36869), + 17: uint16(21211), + 18: uint16(21235), + 19: uint16(22628), + 20: uint16(22734), + 21: uint16(28932), + 22: uint16(29071), + 23: uint16(29179), + 24: uint16(34224), + 25: uint16(35347), + 26: uint16(26248), + 27: uint16(34216), + 28: uint16(21927), + 29: uint16(26244), + 30: uint16(29002), + 31: uint16(33841), + 32: uint16(21321), + 33: uint16(21913), + 34: uint16(27585), + 35: uint16(24409), + 36: uint16(24509), + 37: uint16(25582), + 38: uint16(26249), + 39: uint16(28999), + 40: uint16(35569), + 41: uint16(36637), + 42: uint16(40638), + 43: uint16(20241), + 44: uint16(25658), + 45: uint16(28875), + 46: uint16(30054), + 47: uint16(34407), + 48: uint16(24676), + 49: uint16(35662), + 50: uint16(40440), + 51: uint16(20807), + 52: uint16(20982), + 53: uint16(21256), + 54: uint16(27958), + 55: uint16(33016), + 56: uint16(40657), + 57: uint16(26133), + 58: uint16(27427), + 59: uint16(28824), + 60: uint16(30165), + 61: uint16(21507), + 62: uint16(23673), + 63: uint16(32007), + 64: uint16(35350), + 65: uint16(27424), + 66: uint16(27453), + 67: uint16(27462), + 68: uint16(21560), + 69: uint16(24688), + 70: uint16(27965), + 71: uint16(32725), + 72: uint16(33288), + 73: uint16(20694), + 74: uint16(20958), + 75: uint16(21916), + 76: uint16(22123), + 77: uint16(22221), + 78: uint16(23020), + 79: uint16(23305), + 80: uint16(24076), + 81: uint16(24985), + 82: uint16(24984), + 83: uint16(25137), + 84: uint16(26206), + 85: uint16(26342), + 86: uint16(29081), + 87: uint16(29113), + 88: uint16(29114), + 89: uint16(29351), + 90: uint16(31143), + 91: uint16(31232), + 92: uint16(32690), + 93: uint16(35440), + }, +} + +var _rev_jis = [6879]uint16{ + 0: uint16(31), + 1: uint16(80), + 2: uint16(81), + 3: uint16(87), + 4: uint16(14), + 5: uint16(299), + 6: uint16(74), + 7: uint16(61), + 8: uint16(12), + 9: uint16(344), + 10: uint16(62), + 11: uint16(63), + 12: uint16(1280), + 13: uint16(1281), + 14: uint16(1282), + 15: uint16(1283), + 16: uint16(1284), + 17: uint16(1285), + 18: uint16(1286), + 19: uint16(1287), + 20: uint16(1288), + 21: uint16(1289), + 22: uint16(1290), + 23: uint16(1291), + 24: uint16(1292), + 25: uint16(1293), + 26: uint16(1294), + 27: uint16(1295), + 28: uint16(1296), + 29: uint16(1297), + 30: uint16(1298), + 31: uint16(1299), + 32: uint16(1300), + 33: uint16(1301), + 34: uint16(1302), + 35: uint16(1303), + 36: uint16(1312), + 37: uint16(1313), + 38: uint16(1314), + 39: uint16(1315), + 40: uint16(1316), + 41: uint16(1317), + 42: uint16(1318), + 43: uint16(1319), + 44: uint16(1320), + 45: uint16(1321), + 46: uint16(1322), + 47: uint16(1323), + 48: uint16(1324), + 49: uint16(1325), + 50: uint16(1326), + 51: uint16(1327), + 52: uint16(1328), + 53: uint16(1329), + 54: uint16(1330), + 55: uint16(1331), + 56: uint16(1332), + 57: uint16(1333), + 58: uint16(1334), + 59: uint16(1335), + 60: uint16(1542), + 61: uint16(1536), + 62: uint16(1537), + 63: uint16(1538), + 64: uint16(1539), + 65: uint16(1540), + 66: uint16(1541), + 67: uint16(1543), + 68: uint16(1544), + 69: uint16(1545), + 70: uint16(1546), + 71: uint16(1547), + 72: uint16(1548), + 73: uint16(1549), + 74: uint16(1550), + 75: uint16(1551), + 76: uint16(1552), + 77: uint16(1553), + 78: uint16(1554), + 79: uint16(1555), + 80: uint16(1556), + 81: uint16(1557), + 82: uint16(1558), + 83: uint16(1559), + 84: uint16(1560), + 85: uint16(1561), + 86: uint16(1562), + 87: uint16(1563), + 88: uint16(1564), + 89: uint16(1565), + 90: uint16(1566), + 91: uint16(1567), + 92: uint16(1568), + 93: uint16(1584), + 94: uint16(1585), + 95: uint16(1586), + 96: uint16(1587), + 97: uint16(1588), + 98: uint16(1589), + 99: uint16(1591), + 100: uint16(1592), + 101: uint16(1593), + 102: uint16(1594), + 103: uint16(1595), + 104: uint16(1596), + 105: uint16(1597), + 106: uint16(1598), + 107: uint16(1599), + 108: uint16(1600), + 109: uint16(1601), + 110: uint16(1602), + 111: uint16(1603), + 112: uint16(1604), + 113: uint16(1605), + 114: uint16(1606), + 115: uint16(1607), + 116: uint16(1608), + 117: uint16(1609), + 118: uint16(1610), + 119: uint16(1611), + 120: uint16(1612), + 121: uint16(1613), + 122: uint16(1614), + 123: uint16(1615), + 124: uint16(1616), + 125: uint16(1590), + 126: uint16(29), + 127: uint16(28), + 128: uint16(33), + 129: uint16(37), + 130: uint16(38), + 131: uint16(39), + 132: uint16(40), + 133: uint16(342), + 134: uint16(343), + 135: uint16(36), + 136: uint16(35), + 137: uint16(338), + 138: uint16(75), + 139: uint16(76), + 140: uint16(263), + 141: uint16(77), + 142: uint16(337), + 143: uint16(266), + 144: uint16(267), + 145: uint16(265), + 146: uint16(268), + 147: uint16(300), + 148: uint16(301), + 149: uint16(302), + 150: uint16(318), + 151: uint16(303), + 152: uint16(319), + 153: uint16(281), + 154: uint16(282), + 155: uint16(60), + 156: uint16(324), + 157: uint16(326), + 158: uint16(70), + 159: uint16(315), + 160: uint16(297), + 161: uint16(298), + 162: uint16(288), + 163: uint16(287), + 164: uint16(328), + 165: uint16(329), + 166: uint16(71), + 167: uint16(327), + 168: uint16(325), + 169: uint16(321), + 170: uint16(65), + 171: uint16(320), + 172: uint16(68), + 173: uint16(69), + 174: uint16(322), + 175: uint16(323), + 176: uint16(285), + 177: uint16(286), + 178: uint16(283), + 179: uint16(284), + 180: uint16(316), + 181: uint16(317), + 182: uint16(1792), + 183: uint16(1803), + 184: uint16(1793), + 185: uint16(1804), + 186: uint16(1794), + 187: uint16(1805), + 188: uint16(1795), + 189: uint16(1806), + 190: uint16(1797), + 191: uint16(1808), + 192: uint16(1796), + 193: uint16(1807), + 194: uint16(1798), + 195: uint16(1819), + 196: uint16(1814), + 197: uint16(1809), + 198: uint16(1800), + 199: uint16(1821), + 200: uint16(1816), + 201: uint16(1811), + 202: uint16(1799), + 203: uint16(1815), + 204: uint16(1820), + 205: uint16(1810), + 206: uint16(1801), + 207: uint16(1817), + 208: uint16(1822), + 209: uint16(1812), + 210: uint16(1802), + 211: uint16(1818), + 212: uint16(1823), + 213: uint16(1813), + 214: uint16(258), + 215: uint16(257), + 216: uint16(260), + 217: uint16(259), + 218: uint16(262), + 219: uint16(261), + 220: uint16(256), + 221: uint16(93), + 222: uint16(90), + 223: uint16(92), + 224: uint16(91), + 225: uint16(349), + 226: uint16(89), + 227: uint16(88), + 228: uint16(73), + 229: uint16(72), + 230: uint16(341), + 231: uint16(340), + 232: uint16(339), + 234: uint16(1), + 235: uint16(2), + 236: uint16(22), + 237: uint16(24), + 238: uint16(25), + 239: uint16(26), + 240: uint16(49), + 241: uint16(50), + 242: uint16(51), + 243: uint16(52), + 244: uint16(53), + 245: uint16(54), + 246: uint16(55), + 247: uint16(56), + 248: uint16(57), + 249: uint16(58), + 250: uint16(264), + 251: uint16(269), + 252: uint16(43), + 253: uint16(44), + 254: uint16(32), + 255: uint16(768), + 256: uint16(769), + 257: uint16(770), + 258: uint16(771), + 259: uint16(772), + 260: uint16(773), + 261: uint16(774), + 262: uint16(775), + 263: uint16(776), + 264: uint16(777), + 265: uint16(778), + 266: uint16(779), + 267: uint16(780), + 268: uint16(781), + 269: uint16(782), + 270: uint16(783), + 271: uint16(784), + 272: uint16(785), + 273: uint16(786), + 274: uint16(787), + 275: uint16(788), + 276: uint16(789), + 277: uint16(790), + 278: uint16(791), + 279: uint16(792), + 280: uint16(793), + 281: uint16(794), + 282: uint16(795), + 283: uint16(796), + 284: uint16(797), + 285: uint16(798), + 286: uint16(799), + 287: uint16(800), + 288: uint16(801), + 289: uint16(802), + 290: uint16(803), + 291: uint16(804), + 292: uint16(805), + 293: uint16(806), + 294: uint16(807), + 295: uint16(808), + 296: uint16(809), + 297: uint16(810), + 298: uint16(811), + 299: uint16(812), + 300: uint16(813), + 301: uint16(814), + 302: uint16(815), + 303: uint16(816), + 304: uint16(817), + 305: uint16(818), + 306: uint16(819), + 307: uint16(820), + 308: uint16(821), + 309: uint16(822), + 310: uint16(823), + 311: uint16(824), + 312: uint16(825), + 313: uint16(826), + 314: uint16(827), + 315: uint16(828), + 316: uint16(829), + 317: uint16(830), + 318: uint16(831), + 319: uint16(832), + 320: uint16(833), + 321: uint16(834), + 322: uint16(835), + 323: uint16(836), + 324: uint16(837), + 325: uint16(838), + 326: uint16(839), + 327: uint16(840), + 328: uint16(841), + 329: uint16(842), + 330: uint16(843), + 331: uint16(844), + 332: uint16(845), + 333: uint16(846), + 334: uint16(847), + 335: uint16(848), + 336: uint16(849), + 337: uint16(850), + 338: uint16(10), + 339: uint16(11), + 340: uint16(20), + 341: uint16(21), + 342: uint16(1024), + 343: uint16(1025), + 344: uint16(1026), + 345: uint16(1027), + 346: uint16(1028), + 347: uint16(1029), + 348: uint16(1030), + 349: uint16(1031), + 350: uint16(1032), + 351: uint16(1033), + 352: uint16(1034), + 353: uint16(1035), + 354: uint16(1036), + 355: uint16(1037), + 356: uint16(1038), + 357: uint16(1039), + 358: uint16(1040), + 359: uint16(1041), + 360: uint16(1042), + 361: uint16(1043), + 362: uint16(1044), + 363: uint16(1045), + 364: uint16(1046), + 365: uint16(1047), + 366: uint16(1048), + 367: uint16(1049), + 368: uint16(1050), + 369: uint16(1051), + 370: uint16(1052), + 371: uint16(1053), + 372: uint16(1054), + 373: uint16(1055), + 374: uint16(1056), + 375: uint16(1057), + 376: uint16(1058), + 377: uint16(1059), + 378: uint16(1060), + 379: uint16(1061), + 380: uint16(1062), + 381: uint16(1063), + 382: uint16(1064), + 383: uint16(1065), + 384: uint16(1066), + 385: uint16(1067), + 386: uint16(1068), + 387: uint16(1069), + 388: uint16(1070), + 389: uint16(1071), + 390: uint16(1072), + 391: uint16(1073), + 392: uint16(1074), + 393: uint16(1075), + 394: uint16(1076), + 395: uint16(1077), + 396: uint16(1078), + 397: uint16(1079), + 398: uint16(1080), + 399: uint16(1081), + 400: uint16(1082), + 401: uint16(1083), + 402: uint16(1084), + 403: uint16(1085), + 404: uint16(1086), + 405: uint16(1087), + 406: uint16(1088), + 407: uint16(1089), + 408: uint16(1090), + 409: uint16(1091), + 410: uint16(1092), + 411: uint16(1093), + 412: uint16(1094), + 413: uint16(1095), + 414: uint16(1096), + 415: uint16(1097), + 416: uint16(1098), + 417: uint16(1099), + 418: uint16(1100), + 419: uint16(1101), + 420: uint16(1102), + 421: uint16(1103), + 422: uint16(1104), + 423: uint16(1105), + 424: uint16(1106), + 425: uint16(1107), + 426: uint16(1108), + 427: uint16(1109), + 428: uint16(5), + 429: uint16(27), + 430: uint16(18), + 431: uint16(19), + 432: uint16(3915), + 433: uint16(8793), + 434: uint16(6934), + 435: uint16(10843), + 436: uint16(7493), + 437: uint16(6671), + 438: uint16(7492), + 439: uint16(4379), + 440: uint16(10291), + 441: uint16(11294), + 442: uint16(12033), + 443: uint16(4110), + 444: uint16(4685), + 445: uint16(12034), + 446: uint16(7939), + 447: uint16(12577), + 448: uint16(5173), + 449: uint16(10521), + 450: uint16(7494), + 451: uint16(11549), + 452: uint16(10529), + 453: uint16(12035), + 454: uint16(8773), + 455: uint16(12036), + 456: uint16(5465), + 457: uint16(12037), + 458: uint16(4924), + 459: uint16(8719), + 460: uint16(6982), + 461: uint16(12038), + 462: uint16(12039), + 463: uint16(12040), + 464: uint16(9748), + 465: uint16(5174), + 466: uint16(9750), + 467: uint16(9538), + 468: uint16(5922), + 469: uint16(10770), + 470: uint16(18472), + 471: uint16(12041), + 472: uint16(7495), + 473: uint16(12042), + 474: uint16(4372), + 475: uint16(5444), + 476: uint16(5967), + 477: uint16(11080), + 478: uint16(13573), + 479: uint16(11343), + 480: uint16(9564), + 481: uint16(4868), + 482: uint16(5140), + 483: uint16(12043), + 484: uint16(12044), + 485: uint16(11546), + 486: uint16(11292), + 487: uint16(8263), + 488: uint16(12046), + 489: uint16(6741), + 490: uint16(9554), + 491: uint16(12049), + 492: uint16(4125), + 493: uint16(5950), + 494: uint16(5949), + 495: uint16(3909), + 496: uint16(11818), + 497: uint16(11817), + 498: uint16(6418), + 499: uint16(3840), + 500: uint16(12050), + 501: uint16(12051), + 502: uint16(12052), + 503: uint16(10771), + 504: uint16(12053), + 505: uint16(5969), + 506: uint16(3910), + 507: uint16(10833), + 508: uint16(5211), + 509: uint16(5212), + 510: uint16(5213), + 511: uint16(9025), + 512: uint16(11547), + 513: uint16(12054), + 514: uint16(12055), + 515: uint16(12056), + 516: uint16(7724), + 517: uint16(7193), + 518: uint16(7725), + 519: uint16(12061), + 520: uint16(12059), + 521: uint16(12060), + 522: uint16(5175), + 523: uint16(6402), + 524: uint16(4431), + 525: uint16(12058), + 526: uint16(12057), + 527: uint16(10504), + 528: uint16(6693), + 529: uint16(6692), + 530: uint16(8477), + 531: uint16(12062), + 532: uint16(10292), + 533: uint16(8006), + 534: uint16(23), + 535: uint16(12063), + 536: uint16(12065), + 537: uint16(8516), + 538: uint16(11584), + 539: uint16(3881), + 540: uint16(12064), + 541: uint16(4381), + 542: uint16(5411), + 543: uint16(8774), + 544: uint16(5710), + 545: uint16(12066), + 546: uint16(9731), + 547: uint16(4938), + 548: uint16(12067), + 549: uint16(3882), + 550: uint16(5951), + 551: uint16(4939), + 552: uint16(10329), + 553: uint16(10001), + 554: uint16(5176), + 555: uint16(4432), + 556: uint16(12102), + 557: uint16(9248), + 558: uint16(9803), + 559: uint16(12069), + 560: uint16(10011), + 561: uint16(11585), + 562: uint16(7692), + 563: uint16(6694), + 564: uint16(6742), + 565: uint16(4383), + 566: uint16(9008), + 567: uint16(8705), + 568: uint16(12073), + 569: uint16(3883), + 570: uint16(9026), + 571: uint16(7194), + 572: uint16(6419), + 573: uint16(11267), + 574: uint16(8493), + 575: uint16(4382), + 576: uint16(12072), + 577: uint16(11293), + 578: uint16(12068), + 579: uint16(12070), + 580: uint16(6477), + 581: uint16(12071), + 582: uint16(13315), + 583: uint16(12079), + 584: uint16(12082), + 585: uint16(12080), + 586: uint16(4385), + 587: uint16(10522), + 588: uint16(12074), + 589: uint16(12078), + 590: uint16(5970), + 591: uint16(6695), + 592: uint16(4869), + 593: uint16(12083), + 594: uint16(12075), + 595: uint16(11586), + 596: uint16(6743), + 597: uint16(12076), + 598: uint16(12081), + 599: uint16(12084), + 600: uint16(12077), + 601: uint16(5376), + 602: uint16(3884), + 603: uint16(5377), + 604: uint16(4384), + 605: uint16(13316), + 606: uint16(10840), + 607: uint16(10317), + 608: uint16(5971), + 609: uint16(7694), + 610: uint16(11542), + 611: uint16(10551), + 612: uint16(5655), + 613: uint16(8452), + 614: uint16(4419), + 615: uint16(7218), + 616: uint16(12088), + 617: uint16(12093), + 618: uint16(12091), + 619: uint16(12086), + 620: uint16(8462), + 621: uint16(12089), + 622: uint16(12092), + 623: uint16(12090), + 624: uint16(10556), + 625: uint16(12087), + 626: uint16(7693), + 627: uint16(10834), + 628: uint16(12094), + 629: uint16(12095), + 630: uint16(7171), + 631: uint16(12108), + 632: uint16(9775), + 633: uint16(10261), + 634: uint16(12103), + 635: uint16(10575), + 636: uint16(4373), + 637: uint16(12107), + 638: uint16(12101), + 639: uint16(12110), + 640: uint16(8241), + 641: uint16(5923), + 642: uint16(9787), + 643: uint16(16166), + 644: uint16(12109), + 645: uint16(9276), + 646: uint16(12098), + 647: uint16(5973), + 648: uint16(5972), + 649: uint16(12096), + 650: uint16(6969), + 651: uint16(12104), + 652: uint16(10574), + 653: uint16(8748), + 654: uint16(12100), + 655: uint16(5712), + 656: uint16(12097), + 657: uint16(12105), + 658: uint16(12099), + 659: uint16(11568), + 660: uint16(12106), + 661: uint16(11808), + 662: uint16(5445), + 663: uint16(5711), + 664: uint16(12111), + 665: uint16(12112), + 666: uint16(12116), + 667: uint16(3885), + 668: uint16(10543), + 669: uint16(12115), + 670: uint16(12114), + 671: uint16(12118), + 672: uint16(12117), + 673: uint16(9027), + 674: uint16(5713), + 675: uint16(12119), + 676: uint16(6948), + 677: uint16(8453), + 678: uint16(9028), + 679: uint16(5461), + 680: uint16(12120), + 681: uint16(5141), + 682: uint16(12121), + 683: uint16(12123), + 684: uint16(10772), + 685: uint16(5701), + 686: uint16(6672), + 687: uint16(10070), + 688: uint16(12122), + 689: uint16(6436), + 690: uint16(11298), + 691: uint16(12125), + 692: uint16(12290), + 693: uint16(12124), + 694: uint16(6435), + 695: uint16(7260), + 696: uint16(5656), + 697: uint16(12291), + 698: uint16(5422), + 699: uint16(12288), + 700: uint16(12289), + 701: uint16(9486), + 702: uint16(8283), + 703: uint16(5378), + 704: uint16(10796), + 705: uint16(12292), + 706: uint16(11548), + 707: uint16(12293), + 708: uint16(12296), + 709: uint16(12294), + 710: uint16(8237), + 711: uint16(12295), + 712: uint16(12297), + 713: uint16(12299), + 714: uint16(12298), + 715: uint16(10535), + 716: uint16(5142), + 717: uint16(12301), + 718: uint16(12302), + 719: uint16(4366), + 720: uint16(12300), + 721: uint16(6995), + 722: uint16(12305), + 723: uint16(12304), + 724: uint16(12303), + 725: uint16(12085), + 726: uint16(12306), + 727: uint16(7261), + 728: uint16(12307), + 729: uint16(11268), + 730: uint16(11064), + 731: uint16(12309), + 732: uint16(12308), + 733: uint16(12311), + 734: uint16(12310), + 735: uint16(12312), + 736: uint16(12313), + 737: uint16(3923), + 738: uint16(5908), + 739: uint16(5658), + 740: uint16(7195), + 741: uint16(8794), + 742: uint16(5379), + 743: uint16(8007), + 744: uint16(5974), + 745: uint16(6221), + 746: uint16(12315), + 747: uint16(11047), + 748: uint16(9253), + 749: uint16(6744), + 750: uint16(12314), + 751: uint16(12316), + 752: uint16(9277), + 753: uint16(4692), + 754: uint16(12317), + 755: uint16(9565), + 756: uint16(8211), + 757: uint16(12319), + 758: uint16(12320), + 759: uint16(9995), + 760: uint16(5975), + 761: uint16(11802), + 762: uint16(12321), + 763: uint16(5381), + 764: uint16(10523), + 765: uint16(8469), + 766: uint16(5456), + 767: uint16(9236), + 768: uint16(5714), + 769: uint16(12322), + 770: uint16(12323), + 771: uint16(9537), + 772: uint16(4158), + 773: uint16(12326), + 774: uint16(6492), + 775: uint16(12325), + 776: uint16(6437), + 777: uint16(12327), + 778: uint16(17741), + 779: uint16(12328), + 780: uint16(10784), + 781: uint16(12329), + 782: uint16(12330), + 783: uint16(12331), + 784: uint16(7496), + 785: uint16(6955), + 786: uint16(4870), + 787: uint16(12334), + 788: uint16(12332), + 789: uint16(11036), + 790: uint16(12333), + 791: uint16(10297), + 792: uint16(12335), + 793: uint16(12336), + 794: uint16(12337), + 795: uint16(9278), + 796: uint16(12341), + 797: uint16(12339), + 798: uint16(12340), + 799: uint16(12338), + 800: uint16(6466), + 801: uint16(12342), + 802: uint16(11081), + 803: uint16(11587), + 804: uint16(12343), + 805: uint16(7943), + 806: uint16(12344), + 807: uint16(7225), + 808: uint16(12345), + 809: uint16(8795), + 810: uint16(11550), + 811: uint16(9279), + 812: uint16(12580), + 813: uint16(12346), + 814: uint16(21252), + 815: uint16(5412), + 816: uint16(12347), + 817: uint16(10813), + 818: uint16(7239), + 819: uint16(8539), + 820: uint16(12349), + 821: uint16(9539), + 822: uint16(12350), + 823: uint16(12351), + 824: uint16(4621), + 825: uint16(12352), + 826: uint16(5382), + 827: uint16(9515), + 828: uint16(4185), + 829: uint16(7215), + 830: uint16(9984), + 831: uint16(12353), + 832: uint16(9280), + 833: uint16(7726), + 834: uint16(12354), + 835: uint16(10507), + 836: uint16(7993), + 837: uint16(4865), + 838: uint16(4872), + 839: uint16(12355), + 840: uint16(12357), + 841: uint16(5657), + 842: uint16(12356), + 843: uint16(11602), + 844: uint16(7240), + 845: uint16(10012), + 846: uint16(10539), + 847: uint16(12358), + 848: uint16(11351), + 849: uint16(12359), + 850: uint16(12360), + 851: uint16(9309), + 852: uint16(12361), + 853: uint16(7944), + 854: uint16(6493), + 855: uint16(5715), + 856: uint16(12362), + 857: uint16(6696), + 858: uint16(6222), + 859: uint16(9029), + 860: uint16(12364), + 861: uint16(8454), + 862: uint16(6478), + 863: uint16(12365), + 864: uint16(12366), + 865: uint16(8207), + 866: uint16(12363), + 867: uint16(12368), + 868: uint16(10773), + 869: uint16(6211), + 870: uint16(12367), + 871: uint16(5716), + 872: uint16(6461), + 873: uint16(9804), + 874: uint16(12371), + 875: uint16(12369), + 876: uint16(10330), + 877: uint16(7497), + 878: uint16(12378), + 879: uint16(4675), + 880: uint16(12372), + 881: uint16(12370), + 882: uint16(8238), + 883: uint16(12374), + 884: uint16(12373), + 885: uint16(4643), + 886: uint16(5695), + 887: uint16(12379), + 888: uint16(11532), + 889: uint16(12375), + 890: uint16(12380), + 891: uint16(12377), + 892: uint16(12376), + 893: uint16(11566), + 894: uint16(5976), + 895: uint16(4386), + 896: uint16(11603), + 897: uint16(7252), + 898: uint16(9271), + 899: uint16(6212), + 900: uint16(12545), + 901: uint16(12546), + 902: uint16(11588), + 903: uint16(11786), + 904: uint16(12548), + 905: uint16(5977), + 906: uint16(12547), + 907: uint16(4622), + 908: uint16(12549), + 909: uint16(10805), + 910: uint16(8987), + 911: uint16(11269), + 912: uint16(10552), + 913: uint16(12550), + 914: uint16(20276), + 915: uint16(9487), + 916: uint16(12551), + 917: uint16(4873), + 918: uint16(11026), + 919: uint16(7424), + 920: uint16(12552), + 921: uint16(10566), + 922: uint16(12556), + 923: uint16(7945), + 924: uint16(12553), + 925: uint16(5423), + 926: uint16(12554), + 927: uint16(4874), + 928: uint16(5645), + 929: uint16(12557), + 930: uint16(12558), + 931: uint16(12559), + 932: uint16(12560), + 933: uint16(6970), + 934: uint16(5978), + 935: uint16(11069), + 936: uint16(11079), + 937: uint16(9558), + 938: uint16(10576), + 939: uint16(12561), + 940: uint16(12562), + 941: uint16(12564), + 942: uint16(12566), + 943: uint16(12565), + 944: uint16(12567), + 945: uint16(4380), + 946: uint16(10795), + 947: uint16(6491), + 948: uint16(12568), + 949: uint16(8248), + 950: uint16(7425), + 951: uint16(5384), + 952: uint16(12569), + 953: uint16(10042), + 954: uint16(12570), + 955: uint16(12571), + 956: uint16(12572), + 957: uint16(12573), + 958: uint16(10243), + 959: uint16(5447), + 960: uint16(3908), + 961: uint16(9502), + 962: uint16(12574), + 963: uint16(7196), + 964: uint16(8008), + 965: uint16(12576), + 966: uint16(12575), + 967: uint16(7426), + 968: uint16(5952), + 969: uint16(12578), + 970: uint16(10013), + 971: uint16(12579), + 972: uint16(10043), + 973: uint16(8467), + 974: uint16(8525), + 975: uint16(5383), + 976: uint16(9549), + 977: uint16(8720), + 978: uint16(9805), + 979: uint16(10797), + 980: uint16(12581), + 981: uint16(8009), + 982: uint16(5652), + 983: uint16(12582), + 984: uint16(12583), + 985: uint16(4107), + 986: uint16(3924), + 987: uint16(4940), + 988: uint16(8455), + 989: uint16(5168), + 990: uint16(11344), + 991: uint16(12586), + 992: uint16(4374), + 993: uint16(12585), + 994: uint16(5385), + 995: uint16(12587), + 996: uint16(11088), + 997: uint16(12588), + 998: uint16(11569), + 999: uint16(5979), + 1000: uint16(5909), + 1001: uint16(12589), + 1002: uint16(12591), + 1003: uint16(12590), + 1004: uint16(7742), + 1005: uint16(4120), + 1006: uint16(4157), + 1007: uint16(12592), + 1008: uint16(12593), + 1009: uint16(5910), + 1010: uint16(12594), + 1011: uint16(5197), + 1012: uint16(6673), + 1013: uint16(12595), + 1014: uint16(10835), + 1015: uint16(6420), + 1016: uint16(5177), + 1017: uint16(11270), + 1018: uint16(8239), + 1019: uint16(10014), + 1020: uint16(7004), + 1021: uint16(7206), + 1022: uint16(6983), + 1023: uint16(6996), + 1024: uint16(7253), + 1025: uint16(10015), + 1026: uint16(12598), + 1027: uint16(4130), + 1028: uint16(8240), + 1029: uint16(5980), + 1030: uint16(5924), + 1031: uint16(5446), + 1032: uint16(12602), + 1033: uint16(8704), + 1034: uint16(8541), + 1035: uint16(5386), + 1036: uint16(7427), + 1037: uint16(12603), + 1038: uint16(12601), + 1039: uint16(4387), + 1040: uint16(8517), + 1041: uint16(6935), + 1042: uint16(6698), + 1043: uint16(4101), + 1044: uint16(4687), + 1045: uint16(6213), + 1046: uint16(6697), + 1047: uint16(12604), + 1048: uint16(12605), + 1049: uint16(5160), + 1050: uint16(4645), + 1051: uint16(6214), + 1052: uint16(5159), + 1053: uint16(9022), + 1054: uint16(4100), + 1055: uint16(9488), + 1056: uint16(11037), + 1057: uint16(6144), + 1058: uint16(11352), + 1059: uint16(9254), + 1060: uint16(5981), + 1061: uint16(5646), + 1062: uint16(12614), + 1063: uint16(5442), + 1064: uint16(10793), + 1065: uint16(10044), + 1066: uint16(12613), + 1067: uint16(4925), + 1068: uint16(12608), + 1069: uint16(12609), + 1070: uint16(12611), + 1071: uint16(12612), + 1072: uint16(5178), + 1073: uint16(7744), + 1074: uint16(10508), + 1075: uint16(12610), + 1076: uint16(12606), + 1077: uint16(5954), + 1078: uint16(12607), + 1079: uint16(11779), + 1080: uint16(10577), + 1081: uint16(9031), + 1082: uint16(5953), + 1083: uint16(6223), + 1084: uint16(12615), + 1085: uint16(9532), + 1086: uint16(12619), + 1087: uint16(7005), + 1088: uint16(6997), + 1089: uint16(12622), + 1090: uint16(12620), + 1091: uint16(11010), + 1092: uint16(12617), + 1093: uint16(12626), + 1094: uint16(12621), + 1095: uint16(12624), + 1096: uint16(5925), + 1097: uint16(11038), + 1098: uint16(12625), + 1099: uint16(12627), + 1100: uint16(12629), + 1101: uint16(6479), + 1102: uint16(11809), + 1103: uint16(12618), + 1104: uint16(12616), + 1105: uint16(12628), + 1106: uint16(12623), + 1107: uint16(12631), + 1108: uint16(12802), + 1109: uint16(12633), + 1110: uint16(12637), + 1111: uint16(12800), + 1112: uint16(12634), + 1113: uint16(12829), + 1114: uint16(6472), + 1115: uint16(4624), + 1116: uint16(12632), + 1117: uint16(12804), + 1118: uint16(3925), + 1119: uint16(12803), + 1120: uint16(3844), + 1121: uint16(10281), + 1122: uint16(12801), + 1123: uint16(12635), + 1124: uint16(12630), + 1125: uint16(12636), + 1126: uint16(6439), + 1127: uint16(12805), + 1128: uint16(3926), + 1129: uint16(12814), + 1130: uint16(12806), + 1131: uint16(12807), + 1132: uint16(7428), + 1133: uint16(10824), + 1134: uint16(12812), + 1135: uint16(12811), + 1136: uint16(9230), + 1137: uint16(12813), + 1138: uint16(12810), + 1139: uint16(4115), + 1140: uint16(6421), + 1141: uint16(7695), + 1142: uint16(12808), + 1143: uint16(9281), + 1144: uint16(12809), + 1145: uint16(3841), + 1146: uint16(12819), + 1147: uint16(11266), + 1148: uint16(7430), + 1149: uint16(12825), + 1150: uint16(12824), + 1151: uint16(12815), + 1152: uint16(8482), + 1153: uint16(12816), + 1154: uint16(8526), + 1155: uint16(12821), + 1156: uint16(7429), + 1157: uint16(12818), + 1158: uint16(11075), + 1159: uint16(5659), + 1160: uint16(12822), + 1161: uint16(12823), + 1162: uint16(12820), + 1163: uint16(12826), + 1164: uint16(12817), + 1165: uint16(12832), + 1166: uint16(12837), + 1167: uint16(12833), + 1168: uint16(12828), + 1169: uint16(12838), + 1170: uint16(8208), + 1171: uint16(12840), + 1172: uint16(6145), + 1173: uint16(12830), + 1174: uint16(8796), + 1175: uint16(12834), + 1176: uint16(12827), + 1177: uint16(4876), + 1178: uint16(4941), + 1179: uint16(4676), + 1180: uint16(12835), + 1181: uint16(12831), + 1182: uint16(5717), + 1183: uint16(12841), + 1184: uint16(12839), + 1185: uint16(8242), + 1186: uint16(5161), + 1187: uint16(5387), + 1188: uint16(12836), + 1189: uint16(5459), + 1190: uint16(4131), + 1191: uint16(12845), + 1192: uint16(12843), + 1193: uint16(13062), + 1194: uint16(12848), + 1195: uint16(12842), + 1196: uint16(12846), + 1197: uint16(12844), + 1198: uint16(6699), + 1199: uint16(12847), + 1200: uint16(12850), + 1201: uint16(12855), + 1202: uint16(12853), + 1203: uint16(12852), + 1204: uint16(8721), + 1205: uint16(4388), + 1206: uint16(12849), + 1207: uint16(12851), + 1208: uint16(7431), + 1209: uint16(4114), + 1210: uint16(12854), + 1211: uint16(4413), + 1212: uint16(12865), + 1213: uint16(7515), + 1214: uint16(12861), + 1215: uint16(12859), + 1216: uint16(12860), + 1217: uint16(12862), + 1218: uint16(4124), + 1219: uint16(8216), + 1220: uint16(12856), + 1221: uint16(12857), + 1222: uint16(4697), + 1223: uint16(12864), + 1224: uint16(4942), + 1225: uint16(12867), + 1226: uint16(12863), + 1227: uint16(12866), + 1228: uint16(10509), + 1229: uint16(9524), + 1230: uint16(10007), + 1231: uint16(12869), + 1232: uint16(12868), + 1233: uint16(4644), + 1234: uint16(12870), + 1235: uint16(12873), + 1236: uint16(12872), + 1237: uint16(12871), + 1238: uint16(9752), + 1239: uint16(12874), + 1240: uint16(12875), + 1241: uint16(12877), + 1242: uint16(12876), + 1243: uint16(12879), + 1244: uint16(12882), + 1245: uint16(12880), + 1246: uint16(12878), + 1247: uint16(12881), + 1248: uint16(12883), + 1249: uint16(12884), + 1250: uint16(12885), + 1251: uint16(12886), + 1252: uint16(12887), + 1253: uint16(12324), + 1254: uint16(7003), + 1255: uint16(6700), + 1256: uint16(4434), + 1257: uint16(3927), + 1258: uint16(8739), + 1259: uint16(12888), + 1260: uint16(6403), + 1261: uint16(3886), + 1262: uint16(7741), + 1263: uint16(12889), + 1264: uint16(5926), + 1265: uint16(6224), + 1266: uint16(12891), + 1267: uint16(12890), + 1268: uint16(10559), + 1269: uint16(12892), + 1270: uint16(13056), + 1271: uint16(12893), + 1272: uint16(13057), + 1273: uint16(13058), + 1274: uint16(5718), + 1275: uint16(4159), + 1276: uint16(13059), + 1277: uint16(13061), + 1278: uint16(13060), + 1279: uint16(13063), + 1280: uint16(9273), + 1281: uint16(13064), + 1282: uint16(3860), + 1283: uint16(6462), + 1284: uint16(5660), + 1285: uint16(8750), + 1286: uint16(13065), + 1287: uint16(13066), + 1288: uint16(13068), + 1289: uint16(13069), + 1290: uint16(6467), + 1291: uint16(5424), + 1292: uint16(10774), + 1293: uint16(13067), + 1294: uint16(13070), + 1295: uint16(6432), + 1296: uint16(6146), + 1297: uint16(13074), + 1298: uint16(6404), + 1299: uint16(8722), + 1300: uint16(13071), + 1301: uint16(9017), + 1302: uint16(13075), + 1303: uint16(7745), + 1304: uint16(13073), + 1305: uint16(13076), + 1306: uint16(5662), + 1307: uint16(13077), + 1308: uint16(13078), + 1309: uint16(6147), + 1310: uint16(4639), + 1311: uint16(13080), + 1312: uint16(13081), + 1313: uint16(13082), + 1314: uint16(13079), + 1315: uint16(13072), + 1316: uint16(13083), + 1317: uint16(13084), + 1318: uint16(10819), + 1319: uint16(7498), + 1320: uint16(13086), + 1321: uint16(13087), + 1322: uint16(13085), + 1323: uint16(13089), + 1324: uint16(9751), + 1325: uint16(3911), + 1326: uint16(10293), + 1327: uint16(13090), + 1328: uint16(7516), + 1329: uint16(6936), + 1330: uint16(9788), + 1331: uint16(4943), + 1332: uint16(6474), + 1333: uint16(10808), + 1334: uint16(9489), + 1335: uint16(5719), + 1336: uint16(8494), + 1337: uint16(13088), + 1338: uint16(13091), + 1339: uint16(8483), + 1340: uint16(13092), + 1341: uint16(13093), + 1342: uint16(13095), + 1343: uint16(9032), + 1344: uint16(4877), + 1345: uint16(21248), + 1346: uint16(4160), + 1347: uint16(10578), + 1348: uint16(7499), + 1349: uint16(9255), + 1350: uint16(6469), + 1351: uint16(13101), + 1352: uint16(10524), + 1353: uint16(11580), + 1354: uint16(4435), + 1355: uint16(13097), + 1356: uint16(8217), + 1357: uint16(13100), + 1358: uint16(9282), + 1359: uint16(9256), + 1360: uint16(9283), + 1361: uint16(10008), + 1362: uint16(9004), + 1363: uint16(6440), + 1364: uint16(13096), + 1365: uint16(4181), + 1366: uint16(9237), + 1367: uint16(13098), + 1368: uint16(13094), + 1369: uint16(7727), + 1370: uint16(13102), + 1371: uint16(7213), + 1372: uint16(5388), + 1373: uint16(13103), + 1374: uint16(10567), + 1375: uint16(8284), + 1376: uint16(8997), + 1377: uint16(13105), + 1378: uint16(10798), + 1379: uint16(13106), + 1380: uint16(13111), + 1381: uint16(10510), + 1382: uint16(13110), + 1383: uint16(13104), + 1384: uint16(13107), + 1385: uint16(13109), + 1386: uint16(6405), + 1387: uint16(10536), + 1388: uint16(13112), + 1389: uint16(8740), + 1390: uint16(4436), + 1391: uint16(7500), + 1392: uint16(13114), + 1393: uint16(13113), + 1394: uint16(6215), + 1395: uint16(13115), + 1396: uint16(13117), + 1397: uint16(13116), + 1398: uint16(13119), + 1399: uint16(13108), + 1400: uint16(13121), + 1401: uint16(13120), + 1402: uint16(13118), + 1403: uint16(6701), + 1404: uint16(7728), + 1405: uint16(8243), + 1406: uint16(13122), + 1407: uint16(7963), + 1408: uint16(3916), + 1409: uint16(9795), + 1410: uint16(9018), + 1411: uint16(13124), + 1412: uint16(13123), + 1413: uint16(13125), + 1414: uint16(13126), + 1415: uint16(13127), + 1416: uint16(13128), + 1417: uint16(10544), + 1418: uint16(13129), + 1419: uint16(4389), + 1420: uint16(13130), + 1421: uint16(11291), + 1422: uint16(4623), + 1423: uint16(12584), + 1424: uint16(7207), + 1425: uint16(8478), + 1426: uint16(13131), + 1427: uint16(11082), + 1428: uint16(11027), + 1429: uint16(13133), + 1430: uint16(8518), + 1431: uint16(9238), + 1432: uint16(8479), + 1433: uint16(10294), + 1434: uint16(13134), + 1435: uint16(13135), + 1436: uint16(4186), + 1437: uint16(6937), + 1438: uint16(13136), + 1439: uint16(3887), + 1440: uint16(13137), + 1441: uint16(13138), + 1442: uint16(4161), + 1443: uint16(4944), + 1444: uint16(9535), + 1445: uint16(10579), + 1446: uint16(13142), + 1447: uint16(8244), + 1448: uint16(13141), + 1449: uint16(5663), + 1450: uint16(10810), + 1451: uint16(13140), + 1452: uint16(9284), + 1453: uint16(13144), + 1454: uint16(13143), + 1455: uint16(13146), + 1456: uint16(13145), + 1457: uint16(4187), + 1458: uint16(13147), + 1459: uint16(7432), + 1460: uint16(13149), + 1461: uint16(8708), + 1462: uint16(13148), + 1463: uint16(10514), + 1464: uint16(7254), + 1465: uint16(9274), + 1466: uint16(13312), + 1467: uint16(6148), + 1468: uint16(13313), + 1469: uint16(9728), + 1470: uint16(10045), + 1471: uint16(11056), + 1472: uint16(9732), + 1473: uint16(13322), + 1474: uint16(5143), + 1475: uint16(11300), + 1476: uint16(11022), + 1477: uint16(13579), + 1478: uint16(13314), + 1479: uint16(13317), + 1480: uint16(8484), + 1481: uint16(10775), + 1482: uint16(9257), + 1483: uint16(13318), + 1484: uint16(10820), + 1485: uint16(6441), + 1486: uint16(7433), + 1487: uint16(13319), + 1488: uint16(6703), + 1489: uint16(6702), + 1490: uint16(3864), + 1491: uint16(5927), + 1492: uint16(7946), + 1493: uint16(3888), + 1494: uint16(13323), + 1495: uint16(13324), + 1496: uint16(13321), + 1497: uint16(4119), + 1498: uint16(4878), + 1499: uint16(13320), + 1500: uint16(11044), + 1501: uint16(10256), + 1502: uint16(3847), + 1503: uint16(3928), + 1504: uint16(6704), + 1505: uint16(3889), + 1506: uint16(3842), + 1507: uint16(13329), + 1508: uint16(13327), + 1509: uint16(11035), + 1510: uint16(13330), + 1511: uint16(13328), + 1512: uint16(13326), + 1513: uint16(7696), + 1514: uint16(13325), + 1515: uint16(10553), + 1516: uint16(5955), + 1517: uint16(13334), + 1518: uint16(13335), + 1519: uint16(7434), + 1520: uint16(13331), + 1521: uint16(11787), + 1522: uint16(9771), + 1523: uint16(13333), + 1524: uint16(6406), + 1525: uint16(13336), + 1526: uint16(10295), + 1527: uint16(13337), + 1528: uint16(13332), + 1529: uint16(11034), + 1530: uint16(9789), + 1531: uint16(13338), + 1532: uint16(10257), + 1533: uint16(13339), + 1534: uint16(13343), + 1535: uint16(13340), + 1536: uint16(4390), + 1537: uint16(13342), + 1538: uint16(6938), + 1539: uint16(13341), + 1540: uint16(5720), + 1541: uint16(13355), + 1542: uint16(13348), + 1543: uint16(13345), + 1544: uint16(8771), + 1545: uint16(13344), + 1546: uint16(13346), + 1547: uint16(13347), + 1548: uint16(13349), + 1549: uint16(13350), + 1550: uint16(4945), + 1551: uint16(13352), + 1552: uint16(13351), + 1553: uint16(13353), + 1554: uint16(7501), + 1555: uint16(13356), + 1556: uint16(9019), + 1557: uint16(4132), + 1558: uint16(13354), + 1559: uint16(13357), + 1560: uint16(13358), + 1561: uint16(13361), + 1562: uint16(13359), + 1563: uint16(13360), + 1564: uint16(6705), + 1565: uint16(13362), + 1566: uint16(6149), + 1567: uint16(13363), + 1568: uint16(6745), + 1569: uint16(8471), + 1570: uint16(13364), + 1571: uint16(13365), + 1572: uint16(6713), + 1573: uint16(6150), + 1574: uint16(11057), + 1575: uint16(5127), + 1576: uint16(5928), + 1577: uint16(13366), + 1578: uint16(4663), + 1579: uint16(13367), + 1580: uint16(8472), + 1581: uint16(13368), + 1582: uint16(13570), + 1583: uint16(13369), + 1584: uint16(13370), + 1585: uint16(13371), + 1586: uint16(13373), + 1587: uint16(13374), + 1588: uint16(13375), + 1589: uint16(8527), + 1590: uint16(4102), + 1591: uint16(6984), + 1592: uint16(3873), + 1593: uint16(8246), + 1594: uint16(4879), + 1595: uint16(6932), + 1596: uint16(6151), + 1597: uint16(9285), + 1598: uint16(7168), + 1599: uint16(4880), + 1600: uint16(8775), + 1601: uint16(9033), + 1602: uint16(3863), + 1603: uint16(5144), + 1604: uint16(10580), + 1605: uint16(6945), + 1606: uint16(5169), + 1607: uint16(8010), + 1608: uint16(6939), + 1609: uint16(11271), + 1610: uint16(13376), + 1611: uint16(5179), + 1612: uint16(6442), + 1613: uint16(4625), + 1614: uint16(4162), + 1615: uint16(7435), + 1616: uint16(4391), + 1617: uint16(13377), + 1618: uint16(11301), + 1619: uint16(7208), + 1620: uint16(6979), + 1621: uint16(13378), + 1622: uint16(4946), + 1623: uint16(9521), + 1624: uint16(11016), + 1625: uint16(13379), + 1626: uint16(13380), + 1627: uint16(10296), + 1628: uint16(13382), + 1629: uint16(4871), + 1630: uint16(5462), + 1631: uint16(13381), + 1632: uint16(4881), + 1633: uint16(7697), + 1634: uint16(13386), + 1635: uint16(6656), + 1636: uint16(4392), + 1637: uint16(13385), + 1638: uint16(13383), + 1639: uint16(13387), + 1640: uint16(13384), + 1641: uint16(9738), + 1642: uint16(15148), + 1643: uint16(7698), + 1644: uint16(13388), + 1645: uint16(11551), + 1646: uint16(13389), + 1647: uint16(13391), + 1648: uint16(8797), + 1649: uint16(13390), + 1650: uint16(7938), + 1651: uint16(6746), + 1652: uint16(8495), + 1653: uint16(6998), + 1654: uint16(10324), + 1655: uint16(8011), + 1656: uint16(6956), + 1657: uint16(13392), + 1658: uint16(7436), + 1659: uint16(13393), + 1660: uint16(13394), + 1661: uint16(3890), + 1662: uint16(8473), + 1663: uint16(7729), + 1664: uint16(13395), + 1665: uint16(9490), + 1666: uint16(7437), + 1667: uint16(7438), + 1668: uint16(13396), + 1669: uint16(8012), + 1670: uint16(7439), + 1671: uint16(13397), + 1672: uint16(13398), + 1673: uint16(11071), + 1674: uint16(13399), + 1675: uint16(5413), + 1676: uint16(7169), + 1677: uint16(13400), + 1678: uint16(13401), + 1679: uint16(6971), + 1680: uint16(7691), + 1681: uint16(9555), + 1682: uint16(7731), + 1683: uint16(10071), + 1684: uint16(9729), + 1685: uint16(5416), + 1686: uint16(13402), + 1687: uint16(5198), + 1688: uint16(13403), + 1689: uint16(5469), + 1690: uint16(9518), + 1691: uint16(4367), + 1692: uint16(6706), + 1693: uint16(13404), + 1694: uint16(13569), + 1695: uint16(13568), + 1696: uint16(5468), + 1697: uint16(13405), + 1698: uint16(9239), + 1699: uint16(8463), + 1700: uint16(9258), + 1701: uint16(6951), + 1702: uint16(8247), + 1703: uint16(11353), + 1704: uint16(13571), + 1705: uint16(13572), + 1706: uint16(9525), + 1707: uint16(6674), + 1708: uint16(13574), + 1709: uint16(13575), + 1710: uint16(13576), + 1711: uint16(4947), + 1712: uint16(13577), + 1713: uint16(13578), + 1714: uint16(4363), + 1715: uint16(8218), + 1716: uint16(4931), + 1717: uint16(13580), + 1718: uint16(11015), + 1719: uint16(8497), + 1720: uint16(4664), + 1721: uint16(13582), + 1722: uint16(13584), + 1723: uint16(4926), + 1724: uint16(13581), + 1725: uint16(13583), + 1726: uint16(13586), + 1727: uint16(13585), + 1728: uint16(13587), + 1729: uint16(13588), + 1730: uint16(9500), + 1731: uint16(5389), + 1732: uint16(4420), + 1733: uint16(13589), + 1734: uint16(13594), + 1735: uint16(13592), + 1736: uint16(10582), + 1737: uint16(10581), + 1738: uint16(9286), + 1739: uint16(13591), + 1740: uint16(7219), + 1741: uint16(13590), + 1742: uint16(7761), + 1743: uint16(13595), + 1744: uint16(6473), + 1745: uint16(13601), + 1746: uint16(13602), + 1747: uint16(13596), + 1748: uint16(4626), + 1749: uint16(13597), + 1750: uint16(13606), + 1751: uint16(13605), + 1752: uint16(13604), + 1753: uint16(13600), + 1754: uint16(13599), + 1755: uint16(13603), + 1756: uint16(10583), + 1757: uint16(13610), + 1758: uint16(13607), + 1759: uint16(13609), + 1760: uint16(11345), + 1761: uint16(13608), + 1762: uint16(13598), + 1763: uint16(7762), + 1764: uint16(13611), + 1765: uint16(6422), + 1766: uint16(13612), + 1767: uint16(13613), + 1768: uint16(13616), + 1769: uint16(13615), + 1770: uint16(13614), + 1771: uint16(9287), + 1772: uint16(13593), + 1773: uint16(13622), + 1774: uint16(13618), + 1775: uint16(13617), + 1776: uint16(13619), + 1777: uint16(13620), + 1778: uint16(13623), + 1779: uint16(11589), + 1780: uint16(13624), + 1781: uint16(13621), + 1782: uint16(13625), + 1783: uint16(4927), + 1784: uint16(13626), + 1785: uint16(13628), + 1786: uint16(13627), + 1787: uint16(13629), + 1788: uint16(13630), + 1789: uint16(8013), + 1790: uint16(7170), + 1791: uint16(7235), + 1792: uint16(8258), + 1793: uint16(6152), + 1794: uint16(6423), + 1795: uint16(6153), + 1796: uint16(5199), + 1797: uint16(13631), + 1798: uint16(6424), + 1799: uint16(5929), + 1800: uint16(13632), + 1801: uint16(11013), + 1802: uint16(9762), + 1803: uint16(13633), + 1804: uint16(6154), + 1805: uint16(4875), + 1806: uint16(8710), + 1807: uint16(5425), + 1808: uint16(6707), + 1809: uint16(10298), + 1810: uint16(10016), + 1811: uint16(13634), + 1812: uint16(4948), + 1813: uint16(13637), + 1814: uint16(8960), + 1815: uint16(13636), + 1816: uint16(13635), + 1817: uint16(13638), + 1818: uint16(9034), + 1819: uint16(7746), + 1820: uint16(6708), + 1821: uint16(7977), + 1822: uint16(8498), + 1823: uint16(5121), + 1824: uint16(8961), + 1825: uint16(13639), + 1826: uint16(13640), + 1827: uint16(7502), + 1828: uint16(10776), + 1829: uint16(13643), + 1830: uint16(13642), + 1831: uint16(13641), + 1832: uint16(10332), + 1833: uint16(13650), + 1834: uint16(10809), + 1835: uint16(13644), + 1836: uint16(13646), + 1837: uint16(10826), + 1838: uint16(13645), + 1839: uint16(13647), + 1840: uint16(9991), + 1841: uint16(13648), + 1842: uint16(10525), + 1843: uint16(13649), + 1844: uint16(4882), + 1845: uint16(10526), + 1846: uint16(9742), + 1847: uint16(13651), + 1848: uint16(13652), + 1849: uint16(6155), + 1850: uint16(4883), + 1851: uint16(13653), + 1852: uint16(5911), + 1853: uint16(11299), + 1854: uint16(11272), + 1855: uint16(4949), + 1856: uint16(13655), + 1857: uint16(8962), + 1858: uint16(6156), + 1859: uint16(7440), + 1860: uint16(10046), + 1861: uint16(7441), + 1862: uint16(7255), + 1863: uint16(9035), + 1864: uint16(10584), + 1865: uint16(9240), + 1866: uint16(6157), + 1867: uint16(10299), + 1868: uint16(13656), + 1869: uint16(9272), + 1870: uint16(6433), + 1871: uint16(5930), + 1872: uint16(9036), + 1873: uint16(3874), + 1874: uint16(7245), + 1875: uint16(6158), + 1876: uint16(11302), + 1877: uint16(13657), + 1878: uint16(13658), + 1879: uint16(9776), + 1880: uint16(13659), + 1881: uint16(11606), + 1882: uint16(11788), + 1883: uint16(13661), + 1884: uint16(13660), + 1885: uint16(4646), + 1886: uint16(13824), + 1887: uint16(13827), + 1888: uint16(13828), + 1889: uint16(13826), + 1890: uint16(10271), + 1891: uint16(7442), + 1892: uint16(13830), + 1893: uint16(13829), + 1894: uint16(13825), + 1895: uint16(13831), + 1896: uint16(13832), + 1897: uint16(13833), + 1898: uint16(13836), + 1899: uint16(13834), + 1900: uint16(13835), + 1901: uint16(13837), + 1902: uint16(4163), + 1903: uint16(9037), + 1904: uint16(13838), + 1905: uint16(5721), + 1906: uint16(4437), + 1907: uint16(9749), + 1908: uint16(13839), + 1909: uint16(9562), + 1910: uint16(10554), + 1911: uint16(13840), + 1912: uint16(11789), + 1913: uint16(13841), + 1914: uint16(10527), + 1915: uint16(13844), + 1916: uint16(12032), + 1917: uint16(12048), + 1918: uint16(6927), + 1919: uint16(9556), + 1920: uint16(13845), + 1921: uint16(5180), + 1922: uint16(8963), + 1923: uint16(3929), + 1924: uint16(13846), + 1925: uint16(10501), + 1926: uint16(6159), + 1927: uint16(8751), + 1928: uint16(9038), + 1929: uint16(11086), + 1930: uint16(5912), + 1931: uint16(5931), + 1932: uint16(13847), + 1933: uint16(13848), + 1934: uint16(13854), + 1935: uint16(6980), + 1936: uint16(8964), + 1937: uint16(5390), + 1938: uint16(13849), + 1939: uint16(10250), + 1940: uint16(8741), + 1941: uint16(13850), + 1942: uint16(13851), + 1943: uint16(5391), + 1944: uint16(13852), + 1945: uint16(13853), + 1946: uint16(13855), + 1947: uint16(9301), + 1948: uint16(13856), + 1949: uint16(13857), + 1950: uint16(13858), + 1951: uint16(13843), + 1952: uint16(13842), + 1953: uint16(13859), + 1954: uint16(5664), + 1955: uint16(10246), + 1956: uint16(6443), + 1957: uint16(10262), + 1958: uint16(8965), + 1959: uint16(10282), + 1960: uint16(13860), + 1961: uint16(7443), + 1962: uint16(4133), + 1963: uint16(13861), + 1964: uint16(13862), + 1965: uint16(11089), + 1966: uint16(10047), + 1967: uint16(13865), + 1968: uint16(4188), + 1969: uint16(7947), + 1970: uint16(13864), + 1971: uint16(13863), + 1972: uint16(5665), + 1973: uint16(8499), + 1974: uint16(13869), + 1975: uint16(13867), + 1976: uint16(13866), + 1977: uint16(11526), + 1978: uint16(5956), + 1979: uint16(7256), + 1980: uint16(13868), + 1981: uint16(9259), + 1982: uint16(7197), + 1983: uint16(9503), + 1984: uint16(13872), + 1985: uint16(13871), + 1986: uint16(13870), + 1987: uint16(13873), + 1988: uint16(5957), + 1989: uint16(13874), + 1990: uint16(10331), + 1991: uint16(7226), + 1992: uint16(13875), + 1993: uint16(10072), + 1994: uint16(9504), + 1995: uint16(8966), + 1996: uint16(9231), + 1997: uint16(13876), + 1998: uint16(5130), + 1999: uint16(7699), + 2000: uint16(10251), + 2001: uint16(4950), + 2002: uint16(9733), + 2003: uint16(13877), + 2004: uint16(6709), + 2005: uint16(10777), + 2006: uint16(10778), + 2007: uint16(4189), + 2008: uint16(13882), + 2009: uint16(8776), + 2010: uint16(13879), + 2011: uint16(4438), + 2012: uint16(14092), + 2013: uint16(13881), + 2014: uint16(9743), + 2015: uint16(13880), + 2016: uint16(13878), + 2017: uint16(6233), + 2018: uint16(13884), + 2019: uint16(13890), + 2020: uint16(13896), + 2021: uint16(13888), + 2022: uint16(9275), + 2023: uint16(13893), + 2024: uint16(10300), + 2025: uint16(13887), + 2026: uint16(13892), + 2027: uint16(11590), + 2028: uint16(6710), + 2029: uint16(8500), + 2030: uint16(13885), + 2031: uint16(5181), + 2032: uint16(13895), + 2033: uint16(7948), + 2034: uint16(4164), + 2035: uint16(13889), + 2036: uint16(4439), + 2037: uint16(13894), + 2038: uint16(5392), + 2039: uint16(13891), + 2040: uint16(13897), + 2041: uint16(13899), + 2042: uint16(13909), + 2043: uint16(13907), + 2044: uint16(13904), + 2045: uint16(13903), + 2046: uint16(11607), + 2047: uint16(13905), + 2048: uint16(5393), + 2049: uint16(6160), + 2050: uint16(7257), + 2051: uint16(13912), + 2052: uint16(13898), + 2053: uint16(13902), + 2054: uint16(13886), + 2055: uint16(4441), + 2056: uint16(13906), + 2057: uint16(13908), + 2058: uint16(8752), + 2059: uint16(6407), + 2060: uint16(4375), + 2061: uint16(13900), + 2062: uint16(13911), + 2063: uint16(13910), + 2064: uint16(5394), + 2065: uint16(8456), + 2066: uint16(4677), + 2067: uint16(5666), + 2068: uint16(13901), + 2069: uint16(13913), + 2070: uint16(13916), + 2071: uint16(14080), + 2072: uint16(6940), + 2073: uint16(14086), + 2074: uint16(9039), + 2075: uint16(13914), + 2076: uint16(14084), + 2077: uint16(4440), + 2078: uint16(14082), + 2079: uint16(14083), + 2080: uint16(13917), + 2081: uint16(14081), + 2082: uint16(5958), + 2083: uint16(11273), + 2084: uint16(4884), + 2085: uint16(4152), + 2086: uint16(14085), + 2087: uint16(9753), + 2088: uint16(3852), + 2089: uint16(10048), + 2090: uint16(13883), + 2091: uint16(14091), + 2092: uint16(14095), + 2093: uint16(11076), + 2094: uint16(14088), + 2095: uint16(9288), + 2096: uint16(14093), + 2097: uint16(7503), + 2098: uint16(14094), + 2099: uint16(9526), + 2100: uint16(11814), + 2101: uint16(14090), + 2102: uint16(14096), + 2103: uint16(6234), + 2104: uint16(7978), + 2105: uint16(3891), + 2106: uint16(14089), + 2107: uint16(14087), + 2108: uint16(8249), + 2109: uint16(13915), + 2110: uint16(6675), + 2111: uint16(8485), + 2112: uint16(14108), + 2113: uint16(8250), + 2114: uint16(14103), + 2115: uint16(14100), + 2116: uint16(14101), + 2117: uint16(6981), + 2118: uint16(14104), + 2119: uint16(14107), + 2120: uint16(14102), + 2121: uint16(7172), + 2122: uint16(14105), + 2123: uint16(14099), + 2124: uint16(11099), + 2125: uint16(11098), + 2126: uint16(14109), + 2127: uint16(14110), + 2128: uint16(3892), + 2129: uint16(14098), + 2130: uint16(5457), + 2131: uint16(3845), + 2132: uint16(4885), + 2133: uint16(14106), + 2134: uint16(14114), + 2135: uint16(14113), + 2136: uint16(14118), + 2137: uint16(14119), + 2138: uint16(14117), + 2139: uint16(14120), + 2140: uint16(14112), + 2141: uint16(14116), + 2142: uint16(14121), + 2143: uint16(14122), + 2144: uint16(14111), + 2145: uint16(6747), + 2146: uint16(14115), + 2147: uint16(8501), + 2148: uint16(6161), + 2149: uint16(14097), + 2150: uint16(7700), + 2151: uint16(14135), + 2152: uint16(10568), + 2153: uint16(14125), + 2154: uint16(14126), + 2155: uint16(14127), + 2156: uint16(14134), + 2157: uint16(14133), + 2158: uint16(10844), + 2159: uint16(4886), + 2160: uint16(14131), + 2161: uint16(5668), + 2162: uint16(4627), + 2163: uint16(14128), + 2164: uint16(11543), + 2165: uint16(14130), + 2166: uint16(3893), + 2167: uint16(14132), + 2168: uint16(14123), + 2169: uint16(14129), + 2170: uint16(14136), + 2171: uint16(5667), + 2172: uint16(14124), + 2173: uint16(11324), + 2174: uint16(11274), + 2175: uint16(14139), + 2176: uint16(14143), + 2177: uint16(8285), + 2178: uint16(11608), + 2179: uint16(14144), + 2180: uint16(14141), + 2181: uint16(14138), + 2182: uint16(14137), + 2183: uint16(14142), + 2184: uint16(10511), + 2185: uint16(9491), + 2186: uint16(5669), + 2187: uint16(14145), + 2188: uint16(14140), + 2189: uint16(14146), + 2190: uint16(5722), + 2191: uint16(4368), + 2192: uint16(14154), + 2193: uint16(4887), + 2194: uint16(14152), + 2195: uint16(14153), + 2196: uint16(6408), + 2197: uint16(14151), + 2198: uint16(14149), + 2199: uint16(14148), + 2200: uint16(14155), + 2201: uint16(14147), + 2202: uint16(14157), + 2203: uint16(4442), + 2204: uint16(14159), + 2205: uint16(14158), + 2206: uint16(8967), + 2207: uint16(14162), + 2208: uint16(14160), + 2209: uint16(14150), + 2210: uint16(5723), + 2211: uint16(14161), + 2212: uint16(14165), + 2213: uint16(14164), + 2214: uint16(14166), + 2215: uint16(14163), + 2216: uint16(14167), + 2217: uint16(14168), + 2218: uint16(14169), + 2219: uint16(10569), + 2220: uint16(14171), + 2221: uint16(14170), + 2222: uint16(7198), + 2223: uint16(7949), + 2224: uint16(4421), + 2225: uint16(4443), + 2226: uint16(14172), + 2227: uint16(3870), + 2228: uint16(7979), + 2229: uint16(14173), + 2230: uint16(19234), + 2231: uint16(14336), + 2232: uint16(5696), + 2233: uint16(14337), + 2234: uint16(8014), + 2235: uint16(14338), + 2236: uint16(14339), + 2237: uint16(5145), + 2238: uint16(14340), + 2239: uint16(14341), + 2240: uint16(14342), + 2241: uint16(8502), + 2242: uint16(5932), + 2243: uint16(11072), + 2244: uint16(10779), + 2245: uint16(7241), + 2246: uint16(14343), + 2247: uint16(8015), + 2248: uint16(19740), + 2249: uint16(10049), + 2250: uint16(6985), + 2251: uint16(6444), + 2252: uint16(14344), + 2253: uint16(8486), + 2254: uint16(10502), + 2255: uint16(8528), + 2256: uint16(14347), + 2257: uint16(14345), + 2258: uint16(14348), + 2259: uint16(14346), + 2260: uint16(14349), + 2261: uint16(10512), + 2262: uint16(3862), + 2263: uint16(10301), + 2264: uint16(10050), + 2265: uint16(14350), + 2266: uint16(14353), + 2267: uint16(7444), + 2268: uint16(5146), + 2269: uint16(14351), + 2270: uint16(14358), + 2271: uint16(7445), + 2272: uint16(14352), + 2273: uint16(9763), + 2274: uint16(11325), + 2275: uint16(14354), + 2276: uint16(14355), + 2277: uint16(14359), + 2278: uint16(9289), + 2279: uint16(14356), + 2280: uint16(6162), + 2281: uint16(7997), + 2282: uint16(14373), + 2283: uint16(10003), + 2284: uint16(8529), + 2285: uint16(10051), + 2286: uint16(14604), + 2287: uint16(10585), + 2288: uint16(9040), + 2289: uint16(10836), + 2290: uint16(14362), + 2291: uint16(4352), + 2292: uint16(8777), + 2293: uint16(14371), + 2294: uint16(8723), + 2295: uint16(14365), + 2296: uint16(14372), + 2297: uint16(14367), + 2298: uint16(14374), + 2299: uint16(14370), + 2300: uint16(14369), + 2301: uint16(9806), + 2302: uint16(14363), + 2303: uint16(4444), + 2304: uint16(14361), + 2305: uint16(5200), + 2306: uint16(8530), + 2307: uint16(14357), + 2308: uint16(14360), + 2309: uint16(6163), + 2310: uint16(7994), + 2311: uint16(7446), + 2312: uint16(14368), + 2313: uint16(9777), + 2314: uint16(5201), + 2315: uint16(4647), + 2316: uint16(4678), + 2317: uint16(7680), + 2318: uint16(14376), + 2319: uint16(14381), + 2320: uint16(14377), + 2321: uint16(5724), + 2322: uint16(14382), + 2323: uint16(6657), + 2324: uint16(6216), + 2325: uint16(7173), + 2326: uint16(14364), + 2327: uint16(6748), + 2328: uint16(14379), + 2329: uint16(6711), + 2330: uint16(14380), + 2331: uint16(3875), + 2332: uint16(14375), + 2333: uint16(8968), + 2334: uint16(5202), + 2335: uint16(5395), + 2336: uint16(14378), + 2337: uint16(3846), + 2338: uint16(6434), + 2339: uint16(7701), + 2340: uint16(9041), + 2341: uint16(10035), + 2342: uint16(14384), + 2343: uint16(8253), + 2344: uint16(8457), + 2345: uint16(6666), + 2346: uint16(14385), + 2347: uint16(14387), + 2348: uint16(14383), + 2349: uint16(10560), + 2350: uint16(8988), + 2351: uint16(8251), + 2352: uint16(10586), + 2353: uint16(6957), + 2354: uint16(14399), + 2355: uint16(14398), + 2356: uint16(7767), + 2357: uint16(5725), + 2358: uint16(14392), + 2359: uint16(7448), + 2360: uint16(9543), + 2361: uint16(9744), + 2362: uint16(14390), + 2363: uint16(8252), + 2364: uint16(6999), + 2365: uint16(14395), + 2366: uint16(7447), + 2367: uint16(14389), + 2368: uint16(14394), + 2369: uint16(9778), + 2370: uint16(14388), + 2371: uint16(5632), + 2372: uint16(4668), + 2373: uint16(14396), + 2374: uint16(11530), + 2375: uint16(6445), + 2376: uint16(8724), + 2377: uint16(14393), + 2378: uint16(7995), + 2379: uint16(6164), + 2380: uint16(7747), + 2381: uint16(4165), + 2382: uint16(8219), + 2383: uint16(14391), + 2384: uint16(5156), + 2385: uint16(5670), + 2386: uint16(9006), + 2387: uint16(14397), + 2388: uint16(8254), + 2389: uint16(14400), + 2390: uint16(14402), + 2391: uint16(8470), + 2392: uint16(14408), + 2393: uint16(14403), + 2394: uint16(14405), + 2395: uint16(10272), + 2396: uint16(9042), + 2397: uint16(14406), + 2398: uint16(11275), + 2399: uint16(11303), + 2400: uint16(4888), + 2401: uint16(3853), + 2402: uint16(14404), + 2403: uint16(14401), + 2404: uint16(4951), + 2405: uint16(4166), + 2406: uint16(14407), + 2407: uint16(11304), + 2408: uint16(14411), + 2409: uint16(8474), + 2410: uint16(14418), + 2411: uint16(14412), + 2412: uint16(14409), + 2413: uint16(14416), + 2414: uint16(14386), + 2415: uint16(14413), + 2416: uint16(14417), + 2417: uint16(10017), + 2418: uint16(9290), + 2419: uint16(14410), + 2420: uint16(14414), + 2421: uint16(5671), + 2422: uint16(6480), + 2423: uint16(7996), + 2424: uint16(14422), + 2425: uint16(9221), + 2426: uint16(14419), + 2427: uint16(10815), + 2428: uint16(14420), + 2429: uint16(14421), + 2430: uint16(11053), + 2431: uint16(7937), + 2432: uint16(5697), + 2433: uint16(14428), + 2434: uint16(6676), + 2435: uint16(14425), + 2436: uint16(14424), + 2437: uint16(9745), + 2438: uint16(9492), + 2439: uint16(9232), + 2440: uint16(14426), + 2441: uint16(14427), + 2442: uint16(10318), + 2443: uint16(9764), + 2444: uint16(6658), + 2445: uint16(8016), + 2446: uint16(10799), + 2447: uint16(4648), + 2448: uint16(14596), + 2449: uint16(14429), + 2450: uint16(11305), + 2451: uint16(14598), + 2452: uint16(14594), + 2453: uint16(14595), + 2454: uint16(8255), + 2455: uint16(14593), + 2456: uint16(14366), + 2457: uint16(14597), + 2458: uint16(14592), + 2459: uint16(14602), + 2460: uint16(14603), + 2461: uint16(9222), + 2462: uint16(14605), + 2463: uint16(6659), + 2464: uint16(14600), + 2465: uint16(5147), + 2466: uint16(14606), + 2467: uint16(14599), + 2468: uint16(14610), + 2469: uint16(14609), + 2470: uint16(14608), + 2471: uint16(14611), + 2472: uint16(14613), + 2473: uint16(7504), + 2474: uint16(14612), + 2475: uint16(14616), + 2476: uint16(14614), + 2477: uint16(14615), + 2478: uint16(14415), + 2479: uint16(14618), + 2480: uint16(14617), + 2481: uint16(14423), + 2482: uint16(14619), + 2483: uint16(14607), + 2484: uint16(6712), + 2485: uint16(14620), + 2486: uint16(14621), + 2487: uint16(14623), + 2488: uint16(14622), + 2489: uint16(14624), + 2490: uint16(4445), + 2491: uint16(6165), + 2492: uint16(10587), + 2493: uint16(7950), + 2494: uint16(5933), + 2495: uint16(14626), + 2496: uint16(14629), + 2497: uint16(10289), + 2498: uint16(5182), + 2499: uint16(14628), + 2500: uint16(14627), + 2501: uint16(9779), + 2502: uint16(14630), + 2503: uint16(5396), + 2504: uint16(14632), + 2505: uint16(14631), + 2506: uint16(4889), + 2507: uint16(6677), + 2508: uint16(9527), + 2509: uint16(5672), + 2510: uint16(7763), + 2511: uint16(14633), + 2512: uint16(7951), + 2513: uint16(9223), + 2514: uint16(10302), + 2515: uint16(14634), + 2516: uint16(14635), + 2517: uint16(14636), + 2518: uint16(10519), + 2519: uint16(13372), + 2520: uint16(7973), + 2521: uint16(10283), + 2522: uint16(6455), + 2523: uint16(10052), + 2524: uint16(10018), + 2525: uint16(9260), + 2526: uint16(11552), + 2527: uint16(14638), + 2528: uint16(6959), + 2529: uint16(14639), + 2530: uint16(3861), + 2531: uint16(5427), + 2532: uint16(7980), + 2533: uint16(10303), + 2534: uint16(14640), + 2535: uint16(6689), + 2536: uint16(8742), + 2537: uint16(6714), + 2538: uint16(7702), + 2539: uint16(14641), + 2540: uint16(10588), + 2541: uint16(4182), + 2542: uint16(6715), + 2543: uint16(14644), + 2544: uint16(14642), + 2545: uint16(14645), + 2546: uint16(11544), + 2547: uint16(14643), + 2548: uint16(8026), + 2549: uint16(14646), + 2550: uint16(8465), + 2551: uint16(14647), + 2552: uint16(4953), + 2553: uint16(14649), + 2554: uint16(14648), + 2555: uint16(14650), + 2556: uint16(14651), + 2557: uint16(4954), + 2558: uint16(9563), + 2559: uint16(8725), + 2560: uint16(5195), + 2561: uint16(6716), + 2562: uint16(8256), + 2563: uint16(7227), + 2564: uint16(3855), + 2565: uint16(14652), + 2566: uint16(4353), + 2567: uint16(14656), + 2568: uint16(6166), + 2569: uint16(14655), + 2570: uint16(6410), + 2571: uint16(7449), + 2572: uint16(14654), + 2573: uint16(7450), + 2574: uint16(11039), + 2575: uint16(6409), + 2576: uint16(3894), + 2577: uint16(7981), + 2578: uint16(14661), + 2579: uint16(7952), + 2580: uint16(4134), + 2581: uint16(7220), + 2582: uint16(10821), + 2583: uint16(6481), + 2584: uint16(7451), + 2585: uint16(7942), + 2586: uint16(14660), + 2587: uint16(14658), + 2588: uint16(14659), + 2589: uint16(8778), + 2590: uint16(14853), + 2591: uint16(14665), + 2592: uint16(6749), + 2593: uint16(6167), + 2594: uint16(14663), + 2595: uint16(14664), + 2596: uint16(7703), + 2597: uint16(14662), + 2598: uint16(6670), + 2599: uint16(14667), + 2600: uint16(14666), + 2601: uint16(14671), + 2602: uint16(14672), + 2603: uint16(14668), + 2604: uint16(4609), + 2605: uint16(14669), + 2606: uint16(14670), + 2607: uint16(10036), + 2608: uint16(10304), + 2609: uint16(5673), + 2610: uint16(14673), + 2611: uint16(7953), + 2612: uint16(7452), + 2613: uint16(8753), + 2614: uint16(5414), + 2615: uint16(14674), + 2616: uint16(14678), + 2617: uint16(4394), + 2618: uint16(14675), + 2619: uint16(14677), + 2620: uint16(14676), + 2621: uint16(7242), + 2622: uint16(8743), + 2623: uint16(3876), + 2624: uint16(14679), + 2625: uint16(14680), + 2626: uint16(8969), + 2627: uint16(11600), + 2628: uint16(6690), + 2629: uint16(10570), + 2630: uint16(10780), + 2631: uint16(14849), + 2632: uint16(14682), + 2633: uint16(14685), + 2634: uint16(14684), + 2635: uint16(14681), + 2636: uint16(14848), + 2637: uint16(9533), + 2638: uint16(14683), + 2639: uint16(14850), + 2640: uint16(7243), + 2641: uint16(14851), + 2642: uint16(11306), + 2643: uint16(9815), + 2644: uint16(14852), + 2645: uint16(14854), + 2646: uint16(14855), + 2647: uint16(14856), + 2648: uint16(5417), + 2649: uint16(4135), + 2650: uint16(6168), + 2651: uint16(14857), + 2652: uint16(14858), + 2653: uint16(7248), + 2654: uint16(8257), + 2655: uint16(12599), + 2656: uint16(8221), + 2657: uint16(8220), + 2658: uint16(8503), + 2659: uint16(6438), + 2660: uint16(12113), + 2661: uint16(5709), + 2662: uint16(11276), + 2663: uint16(10589), + 2664: uint16(10333), + 2665: uint16(14859), + 2666: uint16(6482), + 2667: uint16(8990), + 2668: uint16(14860), + 2669: uint16(11790), + 2670: uint16(10781), + 2671: uint16(8970), + 2672: uint16(14861), + 2673: uint16(4955), + 2674: uint16(14862), + 2675: uint16(14863), + 2676: uint16(11065), + 2677: uint16(11011), + 2678: uint16(10837), + 2679: uint16(10811), + 2680: uint16(6660), + 2681: uint16(14865), + 2682: uint16(6986), + 2683: uint16(10800), + 2684: uint16(14867), + 2685: uint16(14870), + 2686: uint16(14869), + 2687: uint16(4952), + 2688: uint16(5183), + 2689: uint16(14866), + 2690: uint16(14868), + 2691: uint16(14871), + 2692: uint16(7768), + 2693: uint16(11354), + 2694: uint16(3880), + 2695: uint16(6463), + 2696: uint16(8475), + 2697: uint16(6972), + 2698: uint16(7506), + 2699: uint16(14874), + 2700: uint16(9261), + 2701: uint16(14872), + 2702: uint16(8458), + 2703: uint16(14873), + 2704: uint16(7505), + 2705: uint16(11068), + 2706: uint16(14875), + 2707: uint16(14876), + 2708: uint16(11335), + 2709: uint16(14881), + 2710: uint16(6169), + 2711: uint16(9780), + 2712: uint16(14878), + 2713: uint16(9291), + 2714: uint16(14653), + 2715: uint16(14657), + 2716: uint16(5166), + 2717: uint16(9766), + 2718: uint16(14880), + 2719: uint16(7453), + 2720: uint16(10019), + 2721: uint16(14886), + 2722: uint16(10073), + 2723: uint16(14877), + 2724: uint16(14883), + 2725: uint16(14882), + 2726: uint16(7982), + 2727: uint16(10828), + 2728: uint16(11570), + 2729: uint16(10822), + 2730: uint16(4395), + 2731: uint16(6717), + 2732: uint16(11815), + 2733: uint16(14885), + 2734: uint16(7764), + 2735: uint16(14884), + 2736: uint16(14879), + 2737: uint16(5934), + 2738: uint16(14891), + 2739: uint16(14889), + 2740: uint16(4396), + 2741: uint16(14887), + 2742: uint16(14893), + 2743: uint16(14899), + 2744: uint16(8487), + 2745: uint16(10528), + 2746: uint16(14901), + 2747: uint16(10241), + 2748: uint16(14900), + 2749: uint16(9807), + 2750: uint16(10782), + 2751: uint16(4890), + 2752: uint16(8022), + 2753: uint16(7199), + 2754: uint16(9010), + 2755: uint16(11277), + 2756: uint16(14896), + 2757: uint16(14895), + 2758: uint16(14897), + 2759: uint16(14894), + 2760: uint16(14902), + 2761: uint16(14892), + 2762: uint16(14890), + 2763: uint16(14898), + 2764: uint16(14888), + 2765: uint16(8779), + 2766: uint16(11095), + 2767: uint16(6949), + 2768: uint16(6483), + 2769: uint16(6425), + 2770: uint16(10830), + 2771: uint16(4640), + 2772: uint16(9005), + 2773: uint16(9513), + 2774: uint16(4136), + 2775: uint16(8017), + 2776: uint16(7955), + 2777: uint16(5641), + 2778: uint16(14904), + 2779: uint16(6170), + 2780: uint16(4699), + 2781: uint16(14906), + 2782: uint16(4691), + 2783: uint16(14912), + 2784: uint16(14909), + 2785: uint16(8018), + 2786: uint16(4650), + 2787: uint16(6411), + 2788: uint16(4649), + 2789: uint16(6446), + 2790: uint16(14907), + 2791: uint16(5700), + 2792: uint16(5674), + 2793: uint16(9292), + 2794: uint16(14905), + 2795: uint16(3877), + 2796: uint16(14908), + 2797: uint16(14910), + 2798: uint16(5420), + 2799: uint16(5643), + 2800: uint16(4891), + 2801: uint16(5162), + 2802: uint16(14913), + 2803: uint16(6488), + 2804: uint16(10832), + 2805: uint16(6678), + 2806: uint16(14914), + 2807: uint16(10255), + 2808: uint16(14926), + 2809: uint16(4370), + 2810: uint16(14915), + 2811: uint16(14932), + 2812: uint16(14916), + 2813: uint16(11553), + 2814: uint16(14923), + 2815: uint16(9790), + 2816: uint16(14931), + 2817: uint16(14918), + 2818: uint16(3859), + 2819: uint16(14920), + 2820: uint16(6171), + 2821: uint16(14922), + 2822: uint16(14921), + 2823: uint16(14917), + 2824: uint16(14928), + 2825: uint16(7454), + 2826: uint16(13132), + 2827: uint16(5959), + 2828: uint16(11355), + 2829: uint16(14919), + 2830: uint16(9043), + 2831: uint16(4610), + 2832: uint16(6412), + 2833: uint16(14911), + 2834: uint16(14927), + 2835: uint16(4672), + 2836: uint16(14925), + 2837: uint16(14929), + 2838: uint16(9293), + 2839: uint16(4957), + 2840: uint16(15121), + 2841: uint16(11048), + 2842: uint16(14934), + 2843: uint16(4956), + 2844: uint16(14941), + 2845: uint16(10783), + 2846: uint16(15104), + 2847: uint16(15106), + 2848: uint16(15110), + 2849: uint16(14936), + 2850: uint16(8713), + 2851: uint16(9294), + 2852: uint16(15114), + 2853: uint16(14939), + 2854: uint16(15111), + 2855: uint16(15105), + 2856: uint16(7704), + 2857: uint16(15115), + 2858: uint16(7954), + 2859: uint16(15113), + 2860: uint16(4892), + 2861: uint16(11823), + 2862: uint16(14933), + 2863: uint16(15109), + 2864: uint16(3895), + 2865: uint16(14935), + 2866: uint16(11033), + 2867: uint16(14940), + 2868: uint16(7681), + 2869: uint16(8998), + 2870: uint16(14930), + 2871: uint16(15108), + 2872: uint16(7769), + 2873: uint16(15118), + 2874: uint16(4688), + 2875: uint16(5888), + 2876: uint16(15120), + 2877: uint16(14937), + 2878: uint16(15119), + 2879: uint16(15112), + 2880: uint16(14938), + 2881: uint16(15116), + 2882: uint16(15117), + 2883: uint16(15134), + 2884: uint16(9517), + 2885: uint16(15107), + 2886: uint16(15130), + 2887: uint16(15132), + 2888: uint16(9015), + 2889: uint16(11307), + 2890: uint16(10325), + 2891: uint16(15127), + 2892: uint16(8489), + 2893: uint16(15133), + 2894: uint16(8222), + 2895: uint16(15124), + 2896: uint16(15137), + 2897: uint16(15136), + 2898: uint16(9550), + 2899: uint16(15135), + 2900: uint16(9545), + 2901: uint16(15139), + 2902: uint16(15126), + 2903: uint16(5415), + 2904: uint16(15129), + 2905: uint16(7228), + 2906: uint16(9791), + 2907: uint16(15131), + 2908: uint16(5418), + 2909: uint16(15123), + 2910: uint16(15125), + 2911: uint16(15122), + 2912: uint16(11791), + 2913: uint16(4665), + 2914: uint16(15128), + 2915: uint16(15138), + 2916: uint16(4628), + 2917: uint16(6470), + 2918: uint16(4156), + 2919: uint16(15155), + 2920: uint16(11792), + 2921: uint16(15158), + 2922: uint16(7705), + 2923: uint16(15157), + 2924: uint16(15156), + 2925: uint16(15153), + 2926: uint16(15141), + 2927: uint16(15170), + 2928: uint16(15140), + 2929: uint16(15159), + 2930: uint16(15151), + 2931: uint16(15146), + 2932: uint16(15143), + 2933: uint16(15144), + 2934: uint16(15152), + 2935: uint16(21249), + 2936: uint16(15149), + 2937: uint16(6172), + 2938: uint16(8999), + 2939: uint16(8259), + 2940: uint16(15147), + 2941: uint16(15142), + 2942: uint16(15145), + 2943: uint16(11308), + 2944: uint16(10825), + 2945: uint16(15150), + 2946: uint16(15160), + 2947: uint16(15168), + 2948: uint16(15161), + 2949: uint16(15174), + 2950: uint16(15172), + 2951: uint16(15167), + 2952: uint16(15166), + 2953: uint16(9007), + 2954: uint16(8260), + 2955: uint16(15164), + 2956: uint16(15162), + 2957: uint16(15169), + 2958: uint16(15175), + 2959: uint16(10068), + 2960: uint16(15181), + 2961: uint16(15176), + 2962: uint16(15179), + 2963: uint16(15173), + 2964: uint16(8787), + 2965: uint16(10263), + 2966: uint16(15163), + 2967: uint16(15171), + 2968: uint16(7455), + 2969: uint16(11054), + 2970: uint16(15191), + 2971: uint16(15178), + 2972: uint16(5889), + 2973: uint16(4354), + 2974: uint16(4670), + 2975: uint16(15154), + 2976: uint16(7456), + 2977: uint16(15183), + 2978: uint16(15190), + 2979: uint16(7000), + 2980: uint16(4689), + 2981: uint16(8717), + 2982: uint16(15180), + 2983: uint16(15185), + 2984: uint16(15189), + 2985: uint16(5397), + 2986: uint16(5163), + 2987: uint16(15187), + 2988: uint16(5120), + 2989: uint16(9514), + 2990: uint16(15186), + 2991: uint16(15188), + 2992: uint16(15182), + 2993: uint16(15184), + 2994: uint16(4671), + 2995: uint16(8744), + 2996: uint16(15195), + 2997: uint16(15193), + 2998: uint16(5960), + 2999: uint16(15192), + 3000: uint16(15360), + 3001: uint16(14903), + 3002: uint16(15194), + 3003: uint16(15196), + 3004: uint16(15197), + 3005: uint16(15371), + 3006: uint16(15367), + 3007: uint16(14924), + 3008: uint16(15366), + 3009: uint16(15365), + 3010: uint16(15362), + 3011: uint16(15177), + 3012: uint16(15364), + 3013: uint16(15363), + 3014: uint16(15369), + 3015: uint16(11781), + 3016: uint16(15372), + 3017: uint16(5466), + 3018: uint16(15368), + 3019: uint16(15370), + 3020: uint16(9990), + 3021: uint16(15373), + 3022: uint16(15377), + 3023: uint16(15374), + 3024: uint16(11346), + 3025: uint16(15375), + 3026: uint16(15165), + 3027: uint16(15378), + 3028: uint16(15379), + 3029: uint16(4116), + 3030: uint16(15381), + 3031: uint16(5702), + 3032: uint16(6912), + 3033: uint16(5428), + 3034: uint16(4355), + 3035: uint16(11326), + 3036: uint16(15383), + 3037: uint16(15382), + 3038: uint16(15385), + 3039: uint16(5148), + 3040: uint16(5429), + 3041: uint16(4893), + 3042: uint16(15388), + 3043: uint16(15387), + 3044: uint16(15389), + 3045: uint16(4397), + 3046: uint16(8726), + 3047: uint16(15390), + 3048: uint16(4894), + 3049: uint16(15392), + 3050: uint16(15391), + 3051: uint16(15393), + 3052: uint16(15394), + 3053: uint16(15395), + 3054: uint16(6718), + 3055: uint16(7956), + 3056: uint16(6400), + 3057: uint16(10319), + 3058: uint16(10561), + 3059: uint16(11811), + 3060: uint16(6740), + 3061: uint16(6447), + 3062: uint16(11601), + 3063: uint16(15396), + 3064: uint16(15397), + 3065: uint16(6719), + 3066: uint16(15398), + 3067: uint16(15399), + 3068: uint16(15401), + 3069: uint16(15400), + 3070: uint16(10807), + 3071: uint16(7229), + 3072: uint16(6987), + 3073: uint16(6691), + 3074: uint16(15402), + 3075: uint16(15404), + 3076: uint16(7682), + 3077: uint16(15403), + 3078: uint16(15405), + 3079: uint16(15406), + 3080: uint16(15407), + 3081: uint16(15408), + 3082: uint16(15409), + 3083: uint16(15411), + 3084: uint16(15410), + 3085: uint16(15412), + 3086: uint16(4356), + 3087: uint16(8745), + 3088: uint16(15413), + 3089: uint16(6661), + 3090: uint16(4651), + 3091: uint16(15414), + 3092: uint16(9249), + 3093: uint16(13099), + 3094: uint16(5122), + 3095: uint16(15415), + 3096: uint16(15416), + 3097: uint16(10571), + 3098: uint16(10823), + 3099: uint16(9510), + 3100: uint16(15417), + 3101: uint16(10053), + 3102: uint16(10074), + 3103: uint16(11058), + 3104: uint16(15418), + 3105: uint16(15420), + 3106: uint16(15419), + 3107: uint16(15422), + 3108: uint16(15421), + 3109: uint16(15424), + 3110: uint16(6720), + 3111: uint16(11024), + 3112: uint16(15425), + 3113: uint16(15426), + 3114: uint16(5123), + 3115: uint16(15427), + 3116: uint16(15429), + 3117: uint16(15428), + 3118: uint16(7748), + 3119: uint16(10264), + 3120: uint16(4137), + 3121: uint16(10020), + 3122: uint16(9044), + 3123: uint16(7200), + 3124: uint16(5184), + 3125: uint16(10021), + 3126: uint16(6925), + 3127: uint16(15431), + 3128: uint16(4895), + 3129: uint16(4183), + 3130: uint16(9553), + 3131: uint16(15430), + 3132: uint16(6173), + 3133: uint16(8754), + 3134: uint16(15432), + 3135: uint16(15440), + 3136: uint16(15433), + 3137: uint16(8480), + 3138: uint16(5185), + 3139: uint16(15441), + 3140: uint16(5703), + 3141: uint16(5124), + 3142: uint16(15439), + 3143: uint16(15437), + 3144: uint16(15434), + 3145: uint16(11327), + 3146: uint16(8991), + 3147: uint16(9528), + 3148: uint16(15435), + 3149: uint16(15443), + 3150: uint16(15442), + 3151: uint16(5634), + 3152: uint16(4364), + 3153: uint16(6426), + 3154: uint16(15436), + 3155: uint16(15438), + 3156: uint16(10806), + 3157: uint16(8531), + 3158: uint16(10838), + 3159: uint16(15451), + 3160: uint16(15452), + 3161: uint16(4398), + 3162: uint16(10503), + 3163: uint16(11100), + 3164: uint16(15616), + 3165: uint16(6914), + 3166: uint16(7457), + 3167: uint16(15447), + 3168: uint16(15453), + 3169: uint16(4167), + 3170: uint16(5398), + 3171: uint16(15444), + 3172: uint16(15449), + 3173: uint16(8019), + 3174: uint16(9808), + 3175: uint16(10054), + 3176: uint16(15446), + 3177: uint16(10752), + 3178: uint16(15448), + 3179: uint16(15619), + 3180: uint16(15617), + 3181: uint16(15450), + 3182: uint16(10753), + 3183: uint16(9767), + 3184: uint16(5186), + 3185: uint16(9220), + 3186: uint16(8780), + 3187: uint16(15620), + 3188: uint16(15618), + 3189: uint16(8504), + 3190: uint16(15445), + 3191: uint16(4138), + 3192: uint16(11309), + 3193: uint16(15631), + 3194: uint16(15630), + 3195: uint16(8021), + 3196: uint16(15627), + 3197: uint16(11339), + 3198: uint16(9493), + 3199: uint16(15621), + 3200: uint16(8996), + 3201: uint16(4139), + 3202: uint16(6174), + 3203: uint16(15624), + 3204: uint16(7174), + 3205: uint16(15629), + 3206: uint16(15628), + 3207: uint16(15623), + 3208: uint16(15626), + 3209: uint16(4679), + 3210: uint16(15625), + 3211: uint16(9768), + 3212: uint16(11533), + 3213: uint16(7507), + 3214: uint16(8020), + 3215: uint16(15637), + 3216: uint16(15635), + 3217: uint16(10284), + 3218: uint16(15632), + 3219: uint16(15634), + 3220: uint16(4121), + 3221: uint16(6175), + 3222: uint16(11793), + 3223: uint16(4636), + 3224: uint16(10305), + 3225: uint16(11328), + 3226: uint16(4611), + 3227: uint16(7706), + 3228: uint16(15636), + 3229: uint16(15641), + 3230: uint16(7458), + 3231: uint16(11279), + 3232: uint16(15638), + 3233: uint16(15633), + 3234: uint16(15639), + 3235: uint16(11581), + 3236: uint16(9298), + 3237: uint16(9505), + 3238: uint16(4629), + 3239: uint16(4148), + 3240: uint16(15645), + 3241: uint16(15648), + 3242: uint16(11554), + 3243: uint16(11331), + 3244: uint16(15655), + 3245: uint16(15649), + 3246: uint16(15646), + 3247: uint16(11571), + 3248: uint16(15652), + 3249: uint16(7209), + 3250: uint16(15654), + 3251: uint16(15659), + 3252: uint16(9296), + 3253: uint16(15657), + 3254: uint16(15651), + 3255: uint16(8727), + 3256: uint16(15658), + 3257: uint16(15647), + 3258: uint16(15653), + 3259: uint16(15660), + 3260: uint16(3931), + 3261: uint16(15650), + 3262: uint16(15661), + 3263: uint16(7707), + 3264: uint16(7230), + 3265: uint16(10500), + 3266: uint16(6413), + 3267: uint16(15642), + 3268: uint16(15656), + 3269: uint16(9241), + 3270: uint16(7957), + 3271: uint16(4680), + 3272: uint16(6448), + 3273: uint16(7459), + 3274: uint16(15644), + 3275: uint16(7201), + 3276: uint16(5675), + 3277: uint16(15643), + 3278: uint16(15665), + 3279: uint16(7244), + 3280: uint16(5913), + 3281: uint16(15680), + 3282: uint16(15674), + 3283: uint16(5203), + 3284: uint16(9262), + 3285: uint16(15669), + 3286: uint16(15678), + 3287: uint16(3854), + 3288: uint16(4113), + 3289: uint16(4376), + 3290: uint16(15671), + 3291: uint16(8459), + 3292: uint16(15662), + 3293: uint16(15664), + 3294: uint16(6176), + 3295: uint16(15681), + 3296: uint16(15676), + 3297: uint16(15668), + 3298: uint16(15675), + 3299: uint16(11018), + 3300: uint16(15673), + 3301: uint16(15677), + 3302: uint16(5935), + 3303: uint16(7460), + 3304: uint16(8728), + 3305: uint16(15667), + 3306: uint16(11278), + 3307: uint16(15670), + 3308: uint16(15663), + 3309: uint16(9297), + 3310: uint16(15666), + 3311: uint16(15672), + 3312: uint16(11824), + 3313: uint16(6941), + 3314: uint16(10845), + 3315: uint16(15682), + 3316: uint16(9997), + 3317: uint16(15694), + 3318: uint16(5914), + 3319: uint16(7231), + 3320: uint16(15684), + 3321: uint16(11534), + 3322: uint16(6177), + 3323: uint16(15697), + 3324: uint16(3917), + 3325: uint16(15695), + 3326: uint16(15683), + 3327: uint16(15689), + 3328: uint16(15691), + 3329: uint16(11310), + 3330: uint16(15686), + 3331: uint16(9229), + 3332: uint16(15688), + 3333: uint16(15696), + 3334: uint16(15690), + 3335: uint16(11046), + 3336: uint16(15685), + 3337: uint16(6913), + 3338: uint16(15709), + 3339: uint16(4681), + 3340: uint16(15687), + 3341: uint16(15692), + 3342: uint16(15693), + 3343: uint16(8523), + 3344: uint16(8505), + 3345: uint16(15701), + 3346: uint16(15707), + 3347: uint16(15705), + 3348: uint16(9224), + 3349: uint16(15874), + 3350: uint16(15702), + 3351: uint16(15703), + 3352: uint16(15679), + 3353: uint16(5208), + 3354: uint16(10265), + 3355: uint16(6942), + 3356: uint16(6230), + 3357: uint16(11794), + 3358: uint16(15699), + 3359: uint16(15873), + 3360: uint16(4168), + 3361: uint16(8261), + 3362: uint16(9816), + 3363: uint16(4896), + 3364: uint16(11609), + 3365: uint16(11008), + 3366: uint16(9009), + 3367: uint16(15706), + 3368: uint16(15708), + 3369: uint16(8209), + 3370: uint16(15872), + 3371: uint16(15704), + 3372: uint16(15698), + 3373: uint16(4898), + 3374: uint16(5704), + 3375: uint16(15886), + 3376: uint16(15881), + 3377: uint16(8023), + 3378: uint16(4674), + 3379: uint16(7232), + 3380: uint16(15890), + 3381: uint16(15883), + 3382: uint16(8971), + 3383: uint16(15880), + 3384: uint16(9016), + 3385: uint16(15915), + 3386: uint16(15877), + 3387: uint16(15876), + 3388: uint16(15885), + 3389: uint16(15879), + 3390: uint16(15878), + 3391: uint16(15884), + 3392: uint16(7936), + 3393: uint16(15875), + 3394: uint16(15887), + 3395: uint16(15888), + 3396: uint16(4897), + 3397: uint16(15893), + 3398: uint16(15892), + 3399: uint16(15894), + 3400: uint16(15897), + 3401: uint16(9250), + 3402: uint16(15891), + 3403: uint16(15895), + 3404: uint16(5698), + 3405: uint16(8536), + 3406: uint16(15889), + 3407: uint16(9754), + 3408: uint16(15896), + 3409: uint16(15901), + 3410: uint16(15899), + 3411: uint16(15902), + 3412: uint16(15905), + 3413: uint16(15898), + 3414: uint16(6217), + 3415: uint16(9735), + 3416: uint16(15640), + 3417: uint16(11347), + 3418: uint16(15900), + 3419: uint16(15904), + 3420: uint16(8532), + 3421: uint16(15903), + 3422: uint16(15882), + 3423: uint16(20040), + 3424: uint16(15908), + 3425: uint16(15912), + 3426: uint16(15910), + 3427: uint16(15906), + 3428: uint16(15907), + 3429: uint16(15911), + 3430: uint16(15909), + 3431: uint16(10285), + 3432: uint16(15917), + 3433: uint16(15914), + 3434: uint16(15913), + 3435: uint16(15916), + 3436: uint16(9523), + 3437: uint16(15918), + 3438: uint16(8788), + 3439: uint16(8524), + 3440: uint16(7940), + 3441: uint16(15919), + 3442: uint16(15921), + 3443: uint16(15920), + 3444: uint16(15700), + 3445: uint16(15922), + 3446: uint16(9542), + 3447: uint16(15923), + 3448: uint16(4399), + 3449: uint16(9299), + 3450: uint16(4612), + 3451: uint16(5187), + 3452: uint16(6973), + 3453: uint16(6449), + 3454: uint16(11782), + 3455: uint16(7749), + 3456: uint16(4169), + 3457: uint16(15925), + 3458: uint16(15924), + 3459: uint16(15928), + 3460: uint16(8729), + 3461: uint16(15931), + 3462: uint16(15926), + 3463: uint16(15930), + 3464: uint16(15929), + 3465: uint16(9247), + 3466: uint16(3896), + 3467: uint16(11604), + 3468: uint16(15933), + 3469: uint16(4103), + 3470: uint16(15935), + 3471: uint16(15934), + 3472: uint16(15932), + 3473: uint16(15927), + 3474: uint16(10754), + 3475: uint16(15937), + 3476: uint16(15936), + 3477: uint16(4170), + 3478: uint16(15939), + 3479: uint16(10513), + 3480: uint16(15938), + 3481: uint16(11028), + 3482: uint16(7462), + 3483: uint16(8210), + 3484: uint16(7461), + 3485: uint16(11610), + 3486: uint16(15945), + 3487: uint16(8024), + 3488: uint16(15941), + 3489: uint16(15946), + 3490: uint16(4171), + 3491: uint16(15944), + 3492: uint16(9792), + 3493: uint16(15940), + 3494: uint16(15943), + 3495: uint16(7463), + 3496: uint16(10032), + 3497: uint16(15947), + 3498: uint16(6960), + 3499: uint16(8025), + 3500: uint16(15950), + 3501: uint16(15942), + 3502: uint16(5638), + 3503: uint16(15948), + 3504: uint16(11311), + 3505: uint16(15951), + 3506: uint16(21253), + 3507: uint16(7214), + 3508: uint16(15952), + 3509: uint16(15953), + 3510: uint16(9741), + 3511: uint16(15955), + 3512: uint16(15956), + 3513: uint16(9746), + 3514: uint16(9300), + 3515: uint16(15958), + 3516: uint16(15960), + 3517: uint16(11572), + 3518: uint16(15957), + 3519: uint16(15959), + 3520: uint16(4172), + 3521: uint16(15954), + 3522: uint16(12858), + 3523: uint16(15961), + 3524: uint16(8262), + 3525: uint16(6679), + 3526: uint16(15963), + 3527: uint16(15962), + 3528: uint16(7683), + 3529: uint16(12600), + 3530: uint16(15964), + 3531: uint16(16128), + 3532: uint16(15949), + 3533: uint16(15965), + 3534: uint16(16129), + 3535: uint16(9817), + 3536: uint16(16130), + 3537: uint16(16131), + 3538: uint16(16132), + 3539: uint16(16133), + 3540: uint16(9021), + 3541: uint16(16135), + 3542: uint16(16134), + 3543: uint16(16136), + 3544: uint16(16137), + 3545: uint16(6974), + 3546: uint16(10306), + 3547: uint16(11083), + 3548: uint16(16138), + 3549: uint16(16139), + 3550: uint16(8245), + 3551: uint16(6915), + 3552: uint16(16140), + 3553: uint16(16141), + 3554: uint16(16142), + 3555: uint16(10545), + 3556: uint16(10022), + 3557: uint16(16143), + 3558: uint16(9782), + 3559: uint16(8972), + 3560: uint16(16144), + 3561: uint16(4422), + 3562: uint16(5196), + 3563: uint16(11045), + 3564: uint16(11029), + 3565: uint16(4371), + 3566: uint16(11795), + 3567: uint16(10801), + 3568: uint16(10505), + 3569: uint16(7958), + 3570: uint16(16145), + 3571: uint16(9506), + 3572: uint16(5890), + 3573: uint16(16146), + 3574: uint16(6451), + 3575: uint16(16148), + 3576: uint16(16147), + 3577: uint16(16149), + 3578: uint16(16150), + 3579: uint16(16151), + 3580: uint16(5149), + 3581: uint16(16152), + 3582: uint16(16153), + 3583: uint16(5891), + 3584: uint16(10023), + 3585: uint16(16155), + 3586: uint16(7508), + 3587: uint16(16154), + 3588: uint16(5399), + 3589: uint16(16156), + 3590: uint16(16158), + 3591: uint16(16157), + 3592: uint16(16159), + 3593: uint16(5936), + 3594: uint16(16160), + 3595: uint16(5448), + 3596: uint16(8223), + 3597: uint16(6236), + 3598: uint16(16162), + 3599: uint16(16163), + 3600: uint16(16161), + 3601: uint16(6988), + 3602: uint16(9511), + 3603: uint16(5400), + 3604: uint16(16165), + 3605: uint16(8715), + 3606: uint16(16164), + 3607: uint16(11796), + 3608: uint16(9793), + 3609: uint16(16168), + 3610: uint16(16170), + 3611: uint16(16167), + 3612: uint16(11059), + 3613: uint16(16169), + 3614: uint16(16171), + 3615: uint16(11555), + 3616: uint16(16175), + 3617: uint16(16174), + 3618: uint16(8789), + 3619: uint16(9740), + 3620: uint16(5892), + 3621: uint16(16173), + 3622: uint16(16172), + 3623: uint16(11280), + 3624: uint16(11281), + 3625: uint16(16176), + 3626: uint16(4173), + 3627: uint16(6229), + 3628: uint16(6721), + 3629: uint16(16177), + 3630: uint16(16178), + 3631: uint16(16180), + 3632: uint16(7202), + 3633: uint16(16182), + 3634: uint16(16181), + 3635: uint16(16183), + 3636: uint16(4652), + 3637: uint16(16185), + 3638: uint16(16184), + 3639: uint16(16187), + 3640: uint16(16186), + 3641: uint16(5915), + 3642: uint16(11527), + 3643: uint16(5419), + 3644: uint16(4357), + 3645: uint16(5449), + 3646: uint16(4928), + 3647: uint16(11591), + 3648: uint16(16189), + 3649: uint16(16191), + 3650: uint16(16192), + 3651: uint16(4400), + 3652: uint16(16188), + 3653: uint16(6680), + 3654: uint16(8992), + 3655: uint16(16190), + 3656: uint16(16195), + 3657: uint16(6989), + 3658: uint16(16193), + 3659: uint16(5661), + 3660: uint16(10024), + 3661: uint16(16194), + 3662: uint16(16221), + 3663: uint16(16200), + 3664: uint16(5916), + 3665: uint16(5188), + 3666: uint16(16197), + 3667: uint16(11356), + 3668: uint16(11535), + 3669: uint16(8533), + 3670: uint16(16199), + 3671: uint16(16201), + 3672: uint16(11573), + 3673: uint16(5430), + 3674: uint16(10075), + 3675: uint16(9769), + 3676: uint16(16202), + 3677: uint16(16204), + 3678: uint16(16207), + 3679: uint16(16203), + 3680: uint16(16206), + 3681: uint16(5961), + 3682: uint16(4140), + 3683: uint16(16208), + 3684: uint16(7759), + 3685: uint16(16205), + 3686: uint16(11579), + 3687: uint16(16211), + 3688: uint16(21251), + 3689: uint16(16209), + 3690: uint16(16212), + 3691: uint16(16198), + 3692: uint16(16210), + 3693: uint16(6427), + 3694: uint16(16213), + 3695: uint16(16214), + 3696: uint16(11357), + 3697: uint16(16215), + 3698: uint16(16216), + 3699: uint16(16196), + 3700: uint16(16217), + 3701: uint16(4899), + 3702: uint16(6916), + 3703: uint16(16218), + 3704: uint16(16219), + 3705: uint16(16220), + 3706: uint16(4122), + 3707: uint16(16384), + 3708: uint16(10266), + 3709: uint16(16385), + 3710: uint16(4867), + 3711: uint16(16386), + 3712: uint16(16387), + 3713: uint16(16388), + 3714: uint16(16390), + 3715: uint16(16391), + 3716: uint16(16389), + 3717: uint16(10290), + 3718: uint16(16393), + 3719: uint16(16392), + 3720: uint16(16395), + 3721: uint16(16394), + 3722: uint16(16396), + 3723: uint16(16397), + 3724: uint16(16399), + 3725: uint16(16398), + 3726: uint16(6232), + 3727: uint16(16401), + 3728: uint16(16400), + 3729: uint16(4900), + 3730: uint16(7730), + 3731: uint16(9243), + 3732: uint16(16402), + 3733: uint16(7959), + 3734: uint16(6681), + 3735: uint16(4184), + 3736: uint16(16403), + 3737: uint16(11312), + 3738: uint16(10562), + 3739: uint16(16404), + 3740: uint16(9251), + 3741: uint16(11282), + 3742: uint16(6178), + 3743: uint16(7708), + 3744: uint16(8746), + 3745: uint16(12563), + 3746: uint16(8973), + 3747: uint16(4423), + 3748: uint16(16405), + 3749: uint16(16406), + 3750: uint16(16411), + 3751: uint16(16409), + 3752: uint16(16408), + 3753: uint16(14625), + 3754: uint16(4613), + 3755: uint16(16407), + 3756: uint16(3897), + 3757: uint16(9993), + 3758: uint16(10025), + 3759: uint16(11536), + 3760: uint16(16412), + 3761: uint16(16410), + 3762: uint16(8763), + 3763: uint16(7941), + 3764: uint16(9994), + 3765: uint16(10252), + 3766: uint16(16414), + 3767: uint16(11531), + 3768: uint16(5676), + 3769: uint16(16415), + 3770: uint16(16413), + 3771: uint16(10037), + 3772: uint16(16416), + 3773: uint16(16417), + 3774: uint16(3898), + 3775: uint16(7509), + 3776: uint16(16422), + 3777: uint16(16419), + 3778: uint16(9548), + 3779: uint16(16418), + 3780: uint16(5125), + 3781: uint16(16425), + 3782: uint16(16420), + 3783: uint16(16421), + 3784: uint16(16424), + 3785: uint16(16423), + 3786: uint16(10244), + 3787: uint16(8225), + 3788: uint16(8224), + 3789: uint16(5150), + 3790: uint16(16426), + 3791: uint16(16427), + 3792: uint16(16428), + 3793: uint16(16430), + 3794: uint16(16429), + 3795: uint16(4149), + 3796: uint16(16438), + 3797: uint16(10055), + 3798: uint16(16432), + 3799: uint16(16434), + 3800: uint16(16436), + 3801: uint16(7709), + 3802: uint16(16437), + 3803: uint16(16435), + 3804: uint16(6943), + 3805: uint16(16431), + 3806: uint16(16433), + 3807: uint16(10273), + 3808: uint16(7464), + 3809: uint16(16440), + 3810: uint16(16439), + 3811: uint16(16441), + 3812: uint16(6917), + 3813: uint16(6414), + 3814: uint16(9302), + 3815: uint16(16442), + 3816: uint16(9002), + 3817: uint16(16444), + 3818: uint16(11520), + 3819: uint16(16443), + 3820: uint16(8264), + 3821: uint16(16449), + 3822: uint16(16451), + 3823: uint16(16452), + 3824: uint16(8755), + 3825: uint16(16450), + 3826: uint16(16447), + 3827: uint16(16445), + 3828: uint16(16446), + 3829: uint16(16448), + 3830: uint16(16455), + 3831: uint16(16453), + 3832: uint16(16454), + 3833: uint16(16456), + 3834: uint16(16458), + 3835: uint16(16459), + 3836: uint16(16460), + 3837: uint16(16461), + 3838: uint16(16457), + 3839: uint16(16463), + 3840: uint16(16462), + 3841: uint16(16464), + 3842: uint16(11556), + 3843: uint16(16467), + 3844: uint16(16465), + 3845: uint16(16466), + 3846: uint16(4929), + 3847: uint16(11101), + 3848: uint16(10537), + 3849: uint16(16469), + 3850: uint16(16468), + 3851: uint16(16470), + 3852: uint16(16471), + 3853: uint16(16475), + 3854: uint16(16472), + 3855: uint16(16473), + 3856: uint16(16474), + 3857: uint16(16476), + 3858: uint16(16477), + 3859: uint16(16640), + 3860: uint16(16641), + 3861: uint16(16642), + 3862: uint16(9998), + 3863: uint16(9263), + 3864: uint16(16643), + 3865: uint16(9809), + 3866: uint16(10259), + 3867: uint16(16644), + 3868: uint16(16645), + 3869: uint16(9225), + 3870: uint16(4614), + 3871: uint16(6179), + 3872: uint16(16646), + 3873: uint16(16647), + 3874: uint16(16648), + 3875: uint16(6664), + 3876: uint16(16650), + 3877: uint16(16649), + 3878: uint16(16651), + 3879: uint16(16652), + 3880: uint16(10056), + 3881: uint16(16653), + 3882: uint16(16654), + 3883: uint16(21064), + 3884: uint16(16655), + 3885: uint16(16656), + 3886: uint16(16657), + 3887: uint16(6669), + 3888: uint16(16658), + 3889: uint16(9781), + 3890: uint16(10814), + 3891: uint16(4141), + 3892: uint16(4150), + 3893: uint16(16659), + 3894: uint16(16661), + 3895: uint16(16660), + 3896: uint16(9295), + 3897: uint16(7960), + 3898: uint16(15384), + 3899: uint16(16662), + 3900: uint16(11040), + 3901: uint16(16663), + 3902: uint16(4901), + 3903: uint16(10038), + 3904: uint16(16664), + 3905: uint16(16665), + 3906: uint16(16666), + 3907: uint16(11067), + 3908: uint16(11060), + 3909: uint16(8989), + 3910: uint16(8265), + 3911: uint16(16668), + 3912: uint16(7233), + 3913: uint16(7465), + 3914: uint16(16671), + 3915: uint16(16670), + 3916: uint16(16669), + 3917: uint16(10076), + 3918: uint16(4902), + 3919: uint16(5896), + 3920: uint16(16677), + 3921: uint16(16674), + 3922: uint16(7710), + 3923: uint16(11025), + 3924: uint16(16673), + 3925: uint16(16675), + 3926: uint16(16676), + 3927: uint16(16672), + 3928: uint16(16678), + 3929: uint16(16679), + 3930: uint16(8974), + 3931: uint16(4930), + 3932: uint16(8772), + 3933: uint16(16680), + 3934: uint16(16681), + 3935: uint16(16684), + 3936: uint16(7750), + 3937: uint16(9507), + 3938: uint16(16685), + 3939: uint16(10802), + 3940: uint16(16682), + 3941: uint16(16683), + 3942: uint16(16688), + 3943: uint16(16687), + 3944: uint16(16686), + 3945: uint16(16690), + 3946: uint16(16689), + 3947: uint16(16691), + 3948: uint16(16693), + 3949: uint16(16692), + 3950: uint16(10540), + 3951: uint16(7221), + 3952: uint16(11557), + 3953: uint16(16694), + 3954: uint16(9494), + 3955: uint16(16695), + 3956: uint16(16696), + 3957: uint16(16700), + 3958: uint16(16698), + 3959: uint16(16699), + 3960: uint16(16697), + 3961: uint16(16701), + 3962: uint16(16702), + 3963: uint16(16703), + 3964: uint16(16704), + 3965: uint16(11030), + 3966: uint16(16705), + 3967: uint16(11087), + 3968: uint16(16706), + 3969: uint16(8749), + 3970: uint16(9801), + 3971: uint16(5450), + 3972: uint16(8730), + 3973: uint16(16707), + 3974: uint16(5401), + 3975: uint16(7983), + 3976: uint16(16708), + 3977: uint16(6428), + 3978: uint16(16709), + 3979: uint16(16710), + 3980: uint16(5893), + 3981: uint16(6452), + 3982: uint16(16712), + 3983: uint16(9269), + 3984: uint16(6453), + 3985: uint16(5165), + 3986: uint16(10755), + 3987: uint16(9770), + 3988: uint16(9270), + 3989: uint16(6203), + 3990: uint16(16714), + 3991: uint16(7466), + 3992: uint16(11537), + 3993: uint16(6180), + 3994: uint16(5894), + 3995: uint16(9986), + 3996: uint16(16716), + 3997: uint16(16718), + 3998: uint16(5962), + 3999: uint16(16717), + 4000: uint16(9045), + 4001: uint16(16720), + 4002: uint16(4630), + 4003: uint16(16715), + 4004: uint16(10057), + 4005: uint16(4111), + 4006: uint16(6475), + 4007: uint16(11825), + 4008: uint16(16719), + 4009: uint16(16721), + 4010: uint16(10538), + 4011: uint16(7992), + 4012: uint16(16723), + 4013: uint16(16724), + 4014: uint16(16722), + 4015: uint16(4653), + 4016: uint16(16730), + 4017: uint16(16729), + 4018: uint16(6918), + 4019: uint16(16731), + 4020: uint16(16726), + 4021: uint16(16732), + 4022: uint16(16727), + 4023: uint16(10039), + 4024: uint16(16725), + 4025: uint16(16728), + 4026: uint16(16897), + 4027: uint16(16896), + 4028: uint16(10816), + 4029: uint16(16733), + 4030: uint16(3914), + 4031: uint16(16899), + 4032: uint16(16898), + 4033: uint16(7467), + 4034: uint16(16900), + 4035: uint16(8226), + 4036: uint16(16902), + 4037: uint16(16901), + 4038: uint16(16903), + 4039: uint16(16711), + 4040: uint16(16713), + 4041: uint16(16905), + 4042: uint16(16904), + 4043: uint16(6919), + 4044: uint16(11592), + 4045: uint16(6961), + 4046: uint16(16906), + 4047: uint16(5654), + 4048: uint16(5151), + 4049: uint16(5126), + 4050: uint16(6722), + 4051: uint16(11283), + 4052: uint16(16912), + 4053: uint16(16911), + 4054: uint16(8227), + 4055: uint16(16908), + 4056: uint16(16910), + 4057: uint16(7210), + 4058: uint16(7711), + 4059: uint16(16909), + 4060: uint16(16907), + 4061: uint16(9737), + 4062: uint16(7468), + 4063: uint16(10267), + 4064: uint16(6454), + 4065: uint16(9303), + 4066: uint16(16913), + 4067: uint16(16914), + 4068: uint16(16936), + 4069: uint16(5431), + 4070: uint16(11804), + 4071: uint16(8212), + 4072: uint16(16915), + 4073: uint16(4401), + 4074: uint16(9046), + 4075: uint16(10496), + 4076: uint16(16916), + 4077: uint16(5209), + 4078: uint16(16917), + 4079: uint16(16919), + 4080: uint16(16920), + 4081: uint16(9736), + 4082: uint16(16921), + 4083: uint16(16922), + 4084: uint16(16923), + 4085: uint16(5432), + 4086: uint16(4402), + 4087: uint16(9508), + 4088: uint16(7175), + 4089: uint16(6723), + 4090: uint16(16924), + 4091: uint16(7176), + 4092: uint16(4393), + 4093: uint16(10274), + 4094: uint16(16925), + 4095: uint16(10058), + 4096: uint16(8228), + 4097: uint16(16928), + 4098: uint16(16929), + 4099: uint16(9800), + 4100: uint16(7712), + 4101: uint16(16926), + 4102: uint16(8768), + 4103: uint16(16927), + 4104: uint16(7469), + 4105: uint16(3899), + 4106: uint16(5128), + 4107: uint16(16930), + 4108: uint16(9047), + 4109: uint16(16931), + 4110: uint16(7974), + 4111: uint16(11020), + 4112: uint16(10242), + 4113: uint16(16932), + 4114: uint16(16933), + 4115: uint16(8756), + 4116: uint16(11558), + 4117: uint16(16935), + 4118: uint16(16934), + 4119: uint16(6990), + 4120: uint16(16937), + 4121: uint16(3919), + 4122: uint16(16940), + 4123: uint16(16938), + 4124: uint16(4403), + 4125: uint16(5677), + 4126: uint16(16939), + 4127: uint16(6181), + 4128: uint16(6225), + 4129: uint16(10565), + 4130: uint16(16941), + 4131: uint16(10803), + 4132: uint16(16943), + 4133: uint16(7984), + 4134: uint16(4142), + 4135: uint16(4377), + 4136: uint16(3851), + 4137: uint16(16942), + 4138: uint16(16944), + 4139: uint16(16945), + 4140: uint16(7510), + 4141: uint16(16946), + 4142: uint16(4654), + 4143: uint16(16948), + 4144: uint16(5705), + 4145: uint16(5189), + 4146: uint16(16949), + 4147: uint16(5460), + 4148: uint16(16950), + 4149: uint16(8027), + 4150: uint16(9516), + 4151: uint16(7999), + 4152: uint16(6484), + 4153: uint16(16951), + 4154: uint16(8769), + 4155: uint16(8266), + 4156: uint16(16953), + 4157: uint16(16955), + 4158: uint16(16952), + 4159: uint16(16954), + 4160: uint16(5633), + 4161: uint16(16956), + 4162: uint16(5637), + 4163: uint16(5190), + 4164: uint16(11313), + 4165: uint16(16958), + 4166: uint16(16959), + 4167: uint16(4109), + 4168: uint16(16962), + 4169: uint16(4693), + 4170: uint16(16961), + 4171: uint16(16960), + 4172: uint16(16964), + 4173: uint16(16957), + 4174: uint16(16965), + 4175: uint16(11528), + 4176: uint16(16966), + 4177: uint16(16967), + 4178: uint16(13139), + 4179: uint16(16969), + 4180: uint16(16968), + 4181: uint16(16970), + 4182: uint16(16971), + 4183: uint16(11540), + 4184: uint16(16972), + 4185: uint16(20302), + 4186: uint16(7470), + 4187: uint16(16973), + 4188: uint16(16974), + 4189: uint16(7222), + 4190: uint16(9495), + 4191: uint16(16975), + 4192: uint16(8711), + 4193: uint16(16976), + 4194: uint16(8731), + 4195: uint16(16977), + 4196: uint16(5380), + 4197: uint16(12318), + 4198: uint16(8764), + 4199: uint16(6930), + 4200: uint16(4903), + 4201: uint16(16978), + 4202: uint16(17153), + 4203: uint16(16981), + 4204: uint16(5191), + 4205: uint16(16980), + 4206: uint16(17155), + 4207: uint16(16979), + 4208: uint16(7471), + 4209: uint16(16983), + 4210: uint16(16984), + 4211: uint16(9226), + 4212: uint16(16985), + 4213: uint16(4669), + 4214: uint16(7737), + 4215: uint16(10307), + 4216: uint16(16987), + 4217: uint16(8519), + 4218: uint16(16982), + 4219: uint16(16986), + 4220: uint16(16988), + 4221: uint16(6490), + 4222: uint16(17157), + 4223: uint16(10253), + 4224: uint16(9989), + 4225: uint16(9304), + 4226: uint16(5433), + 4227: uint16(17156), + 4228: uint16(17154), + 4229: uint16(10004), + 4230: uint16(16989), + 4231: uint16(8765), + 4232: uint16(9306), + 4233: uint16(9305), + 4234: uint16(6485), + 4235: uint16(17175), + 4236: uint16(17159), + 4237: uint16(17161), + 4238: uint16(17164), + 4239: uint16(17165), + 4240: uint16(17162), + 4241: uint16(17163), + 4242: uint16(17160), + 4243: uint16(17158), + 4244: uint16(17152), + 4245: uint16(10542), + 4246: uint16(4404), + 4247: uint16(17172), + 4248: uint16(17169), + 4249: uint16(17174), + 4250: uint16(17173), + 4251: uint16(9810), + 4252: uint16(11014), + 4253: uint16(6682), + 4254: uint16(17167), + 4255: uint16(17176), + 4256: uint16(17171), + 4257: uint16(17170), + 4258: uint16(17166), + 4259: uint16(17168), + 4260: uint16(4904), + 4261: uint16(8732), + 4262: uint16(8028), + 4263: uint16(9985), + 4264: uint16(17181), + 4265: uint16(9987), + 4266: uint16(8000), + 4267: uint16(17178), + 4268: uint16(10030), + 4269: uint16(17182), + 4270: uint16(10546), + 4271: uint16(8762), + 4272: uint16(17177), + 4273: uint16(17179), + 4274: uint16(17180), + 4275: uint16(17183), + 4276: uint16(6947), + 4277: uint16(9509), + 4278: uint16(17188), + 4279: uint16(17187), + 4280: uint16(17184), + 4281: uint16(11797), + 4282: uint16(17193), + 4283: uint16(17197), + 4284: uint16(17194), + 4285: uint16(17190), + 4286: uint16(17191), + 4287: uint16(17196), + 4288: uint16(17185), + 4289: uint16(12596), + 4290: uint16(17192), + 4291: uint16(17186), + 4292: uint16(17195), + 4293: uint16(17201), + 4294: uint16(4905), + 4295: uint16(17198), + 4296: uint16(17199), + 4297: uint16(17200), + 4298: uint16(17203), + 4299: uint16(17202), + 4300: uint16(10069), + 4301: uint16(17204), + 4302: uint16(11611), + 4303: uint16(10572), + 4304: uint16(17209), + 4305: uint16(17206), + 4306: uint16(17205), + 4307: uint16(7985), + 4308: uint16(17208), + 4309: uint16(17210), + 4310: uint16(17207), + 4311: uint16(17214), + 4312: uint16(17211), + 4313: uint16(17212), + 4314: uint16(17189), + 4315: uint16(17213), + 4316: uint16(17215), + 4317: uint16(17216), + 4318: uint16(10533), + 4319: uint16(17217), + 4320: uint16(11073), + 4321: uint16(5421), + 4322: uint16(5640), + 4323: uint16(17218), + 4324: uint16(10515), + 4325: uint16(7751), + 4326: uint16(11023), + 4327: uint16(17219), + 4328: uint16(11538), + 4329: uint16(9811), + 4330: uint16(8229), + 4331: uint16(9747), + 4332: uint16(7212), + 4333: uint16(3871), + 4334: uint16(17224), + 4335: uint16(17222), + 4336: uint16(17220), + 4337: uint16(4864), + 4338: uint16(7472), + 4339: uint16(17225), + 4340: uint16(17223), + 4341: uint16(17221), + 4342: uint16(17229), + 4343: uint16(17228), + 4344: uint16(17227), + 4345: uint16(17226), + 4346: uint16(17230), + 4347: uint16(17231), + 4348: uint16(7961), + 4349: uint16(17232), + 4350: uint16(17234), + 4351: uint16(17233), + 4352: uint16(5937), + 4353: uint16(8215), + 4354: uint16(17236), + 4355: uint16(9307), + 4356: uint16(17235), + 4357: uint16(17237), + 4358: uint16(10516), + 4359: uint16(8267), + 4360: uint16(6182), + 4361: uint16(17238), + 4362: uint16(11559), + 4363: uint16(17240), + 4364: uint16(17241), + 4365: uint16(17242), + 4366: uint16(17243), + 4367: uint16(6724), + 4368: uint16(17244), + 4369: uint16(5678), + 4370: uint16(5193), + 4371: uint16(5129), + 4372: uint16(17408), + 4373: uint16(11090), + 4374: uint16(6183), + 4375: uint16(17245), + 4376: uint16(17411), + 4377: uint16(11077), + 4378: uint16(9755), + 4379: uint16(10258), + 4380: uint16(7234), + 4381: uint16(17410), + 4382: uint16(6962), + 4383: uint16(6184), + 4384: uint16(6725), + 4385: uint16(5192), + 4386: uint16(10517), + 4387: uint16(17409), + 4388: uint16(8230), + 4389: uint16(10785), + 4390: uint16(6486), + 4391: uint16(6726), + 4392: uint16(9020), + 4393: uint16(17414), + 4394: uint16(11582), + 4395: uint16(6456), + 4396: uint16(17415), + 4397: uint16(7713), + 4398: uint16(17417), + 4399: uint16(7473), + 4400: uint16(6415), + 4401: uint16(17416), + 4402: uint16(7177), + 4403: uint16(5917), + 4404: uint16(8231), + 4405: uint16(17412), + 4406: uint16(17418), + 4407: uint16(17413), + 4408: uint16(5679), + 4409: uint16(17421), + 4410: uint16(17425), + 4411: uint16(5706), + 4412: uint16(17420), + 4413: uint16(17429), + 4414: uint16(6185), + 4415: uint16(11340), + 4416: uint16(3867), + 4417: uint16(17426), + 4418: uint16(5194), + 4419: uint16(17423), + 4420: uint16(17424), + 4421: uint16(9308), + 4422: uint16(17422), + 4423: uint16(17419), + 4424: uint16(4615), + 4425: uint16(8003), + 4426: uint16(5895), + 4427: uint16(17431), + 4428: uint16(17428), + 4429: uint16(17430), + 4430: uint16(17427), + 4431: uint16(5680), + 4432: uint16(8466), + 4433: uint16(17432), + 4434: uint16(8269), + 4435: uint16(17445), + 4436: uint16(17441), + 4437: uint16(17435), + 4438: uint16(17439), + 4439: uint16(7001), + 4440: uint16(3900), + 4441: uint16(17434), + 4442: uint16(17442), + 4443: uint16(17446), + 4444: uint16(6186), + 4445: uint16(11061), + 4446: uint16(9013), + 4447: uint16(17436), + 4448: uint16(17444), + 4449: uint16(17433), + 4450: uint16(8733), + 4451: uint16(17438), + 4452: uint16(3868), + 4453: uint16(11049), + 4454: uint16(17437), + 4455: uint16(5434), + 4456: uint16(10059), + 4457: uint16(8268), + 4458: uint16(11567), + 4459: uint16(7246), + 4460: uint16(17485), + 4461: uint16(17447), + 4462: uint16(8029), + 4463: uint16(17443), + 4464: uint16(17448), + 4465: uint16(17450), + 4466: uint16(9048), + 4467: uint16(17453), + 4468: uint16(17449), + 4469: uint16(10547), + 4470: uint16(4906), + 4471: uint16(11050), + 4472: uint16(3901), + 4473: uint16(17452), + 4474: uint16(11612), + 4475: uint16(17451), + 4476: uint16(4174), + 4477: uint16(9547), + 4478: uint16(17454), + 4479: uint16(17461), + 4480: uint16(17455), + 4481: uint16(17462), + 4482: uint16(17458), + 4483: uint16(9818), + 4484: uint16(6953), + 4485: uint16(17460), + 4486: uint16(17457), + 4487: uint16(17463), + 4488: uint16(17456), + 4489: uint16(7203), + 4490: uint16(10756), + 4491: uint16(7211), + 4492: uint16(17459), + 4493: uint16(17471), + 4494: uint16(17467), + 4495: uint16(17470), + 4496: uint16(17468), + 4497: uint16(17472), + 4498: uint16(17466), + 4499: uint16(17440), + 4500: uint16(7986), + 4501: uint16(10026), + 4502: uint16(17469), + 4503: uint16(17464), + 4504: uint16(8192), + 4505: uint16(5681), + 4506: uint16(7178), + 4507: uint16(7684), + 4508: uint16(8213), + 4509: uint16(17475), + 4510: uint16(17477), + 4511: uint16(17478), + 4512: uint16(17474), + 4513: uint16(17476), + 4514: uint16(17465), + 4515: uint16(17473), + 4516: uint16(17481), + 4517: uint16(17480), + 4518: uint16(10841), + 4519: uint16(5642), + 4520: uint16(17479), + 4521: uint16(17483), + 4522: uint16(17482), + 4523: uint16(17486), + 4524: uint16(17488), + 4525: uint16(6683), + 4526: uint16(17484), + 4527: uint16(17489), + 4528: uint16(17490), + 4529: uint16(17491), + 4530: uint16(17497), + 4531: uint16(9242), + 4532: uint16(17493), + 4533: uint16(17492), + 4534: uint16(17494), + 4535: uint16(17495), + 4536: uint16(17496), + 4537: uint16(17498), + 4538: uint16(17499), + 4539: uint16(4907), + 4540: uint16(17500), + 4541: uint16(17501), + 4542: uint16(17664), + 4543: uint16(17665), + 4544: uint16(17666), + 4545: uint16(17667), + 4546: uint16(17668), + 4547: uint16(17669), + 4548: uint16(17671), + 4549: uint16(17670), + 4550: uint16(17672), + 4551: uint16(17673), + 4552: uint16(17674), + 4553: uint16(17677), + 4554: uint16(17675), + 4555: uint16(17676), + 4556: uint16(6464), + 4557: uint16(5682), + 4558: uint16(8757), + 4559: uint16(10002), + 4560: uint16(7247), + 4561: uint16(9772), + 4562: uint16(10060), + 4563: uint16(17678), + 4564: uint16(14156), + 4565: uint16(17679), + 4566: uint16(17681), + 4567: uint16(11332), + 4568: uint16(17680), + 4569: uint16(17683), + 4570: uint16(17682), + 4571: uint16(11314), + 4572: uint16(17684), + 4573: uint16(10077), + 4574: uint16(17685), + 4575: uint16(17688), + 4576: uint16(17687), + 4577: uint16(17686), + 4578: uint16(17689), + 4579: uint16(5649), + 4580: uint16(8193), + 4581: uint16(5152), + 4582: uint16(17693), + 4583: uint16(17690), + 4584: uint16(17691), + 4585: uint16(17694), + 4586: uint16(17695), + 4587: uint16(17692), + 4588: uint16(4104), + 4589: uint16(4358), + 4590: uint16(17697), + 4591: uint16(17698), + 4592: uint16(17699), + 4593: uint16(11329), + 4594: uint16(7179), + 4595: uint16(17701), + 4596: uint16(17700), + 4597: uint16(7752), + 4598: uint16(17702), + 4599: uint16(17703), + 4600: uint16(17704), + 4601: uint16(4932), + 4602: uint16(4908), + 4603: uint16(17705), + 4604: uint16(17706), + 4605: uint16(10812), + 4606: uint16(11330), + 4607: uint16(11315), + 4608: uint16(11798), + 4609: uint16(6188), + 4610: uint16(17709), + 4611: uint16(6963), + 4612: uint16(17708), + 4613: uint16(17710), + 4614: uint16(6920), + 4615: uint16(8496), + 4616: uint16(17711), + 4617: uint16(6187), + 4618: uint16(11062), + 4619: uint16(17712), + 4620: uint16(17713), + 4621: uint16(17714), + 4622: uint16(17715), + 4623: uint16(17716), + 4624: uint16(6921), + 4625: uint16(11084), + 4626: uint16(17718), + 4627: uint16(8734), + 4628: uint16(17717), + 4629: uint16(17720), + 4630: uint16(17719), + 4631: uint16(17721), + 4632: uint16(7962), + 4633: uint16(17722), + 4634: uint16(17723), + 4635: uint16(10520), + 4636: uint16(17724), + 4637: uint16(8270), + 4638: uint16(17725), + 4639: uint16(17726), + 4640: uint16(11613), + 4641: uint16(17729), + 4642: uint16(17728), + 4643: uint16(17727), + 4644: uint16(8975), + 4645: uint16(17730), + 4646: uint16(7685), + 4647: uint16(17731), + 4648: uint16(17732), + 4649: uint16(11799), + 4650: uint16(17733), + 4651: uint16(17734), + 4652: uint16(17736), + 4653: uint16(17735), + 4654: uint16(9988), + 4655: uint16(9560), + 4656: uint16(11805), + 4657: uint16(9992), + 4658: uint16(17738), + 4659: uint16(7474), + 4660: uint16(10249), + 4661: uint16(17739), + 4662: uint16(17737), + 4663: uint16(4909), + 4664: uint16(5939), + 4665: uint16(6727), + 4666: uint16(10061), + 4667: uint16(5897), + 4668: uint16(10786), + 4669: uint16(17742), + 4670: uint16(17740), + 4671: uint16(6189), + 4672: uint16(6190), + 4673: uint16(3912), + 4674: uint16(6471), + 4675: uint16(9784), + 4676: uint16(3902), + 4677: uint16(17747), + 4678: uint16(8735), + 4679: uint16(9783), + 4680: uint16(8506), + 4681: uint16(17749), + 4682: uint16(17745), + 4683: uint16(17748), + 4684: uint16(17743), + 4685: uint16(17746), + 4686: uint16(10757), + 4687: uint16(5940), + 4688: uint16(3932), + 4689: uint16(17744), + 4690: uint16(17751), + 4691: uint16(17752), + 4692: uint16(9496), + 4693: uint16(5402), + 4694: uint16(17925), + 4695: uint16(9756), + 4696: uint16(6728), + 4697: uint16(5403), + 4698: uint16(7975), + 4699: uint16(11813), + 4700: uint16(11021), + 4701: uint16(17750), + 4702: uint16(7987), + 4703: uint16(5170), + 4704: uint16(17753), + 4705: uint16(17755), + 4706: uint16(17754), + 4707: uint16(17756), + 4708: uint16(8709), + 4709: uint16(9757), + 4710: uint16(8976), + 4711: uint16(17922), + 4712: uint16(17921), + 4713: uint16(17757), + 4714: uint16(7732), + 4715: uint16(10308), + 4716: uint16(17924), + 4717: uint16(17923), + 4718: uint16(6191), + 4719: uint16(11826), + 4720: uint16(17940), + 4721: uint16(17928), + 4722: uint16(17929), + 4723: uint16(6991), + 4724: uint16(17927), + 4725: uint16(6231), + 4726: uint16(17926), + 4727: uint16(17930), + 4728: uint16(8977), + 4729: uint16(10497), + 4730: uint16(8194), + 4731: uint16(8507), + 4732: uint16(17934), + 4733: uint16(17935), + 4734: uint16(17931), + 4735: uint16(17932), + 4736: uint16(17933), + 4737: uint16(6192), + 4738: uint16(17941), + 4739: uint16(17937), + 4740: uint16(10309), + 4741: uint16(10827), + 4742: uint16(10247), + 4743: uint16(17936), + 4744: uint16(17939), + 4745: uint16(17938), + 4746: uint16(10787), + 4747: uint16(17942), + 4748: uint16(17943), + 4749: uint16(8214), + 4750: uint16(17944), + 4751: uint16(17946), + 4752: uint16(17950), + 4753: uint16(17947), + 4754: uint16(17945), + 4755: uint16(9758), + 4756: uint16(17948), + 4757: uint16(17949), + 4758: uint16(4369), + 4759: uint16(17956), + 4760: uint16(17951), + 4761: uint16(17952), + 4762: uint16(17953), + 4763: uint16(8448), + 4764: uint16(17955), + 4765: uint16(17954), + 4766: uint16(17957), + 4767: uint16(17958), + 4768: uint16(17959), + 4769: uint16(7714), + 4770: uint16(4424), + 4771: uint16(17960), + 4772: uint16(11574), + 4773: uint16(6922), + 4774: uint16(7180), + 4775: uint16(6729), + 4776: uint16(8758), + 4777: uint16(17961), + 4778: uint16(17962), + 4779: uint16(4112), + 4780: uint16(17963), + 4781: uint16(17964), + 4782: uint16(17965), + 4783: uint16(17966), + 4784: uint16(17967), + 4785: uint16(5404), + 4786: uint16(14601), + 4787: uint16(17968), + 4788: uint16(8004), + 4789: uint16(17969), + 4790: uint16(6954), + 4791: uint16(17970), + 4792: uint16(12047), + 4793: uint16(17971), + 4794: uint16(10557), + 4795: uint16(4923), + 4796: uint16(8195), + 4797: uint16(7223), + 4798: uint16(10320), + 4799: uint16(7181), + 4800: uint16(17972), + 4801: uint16(6193), + 4802: uint16(17973), + 4803: uint16(10027), + 4804: uint16(17987), + 4805: uint16(17975), + 4806: uint16(8488), + 4807: uint16(9812), + 4808: uint16(5918), + 4809: uint16(17974), + 4810: uint16(8196), + 4811: uint16(17976), + 4812: uint16(9049), + 4813: uint16(17978), + 4814: uint16(17977), + 4815: uint16(17980), + 4816: uint16(17979), + 4817: uint16(17981), + 4818: uint16(17983), + 4819: uint16(17982), + 4820: uint16(4910), + 4821: uint16(17984), + 4822: uint16(17985), + 4823: uint16(17986), + 4824: uint16(6416), + 4825: uint16(11560), + 4826: uint16(17988), + 4827: uint16(7686), + 4828: uint16(4175), + 4829: uint16(17989), + 4830: uint16(17990), + 4831: uint16(17991), + 4832: uint16(3921), + 4833: uint16(17992), + 4834: uint16(17993), + 4835: uint16(10310), + 4836: uint16(6950), + 4837: uint16(17995), + 4838: uint16(4616), + 4839: uint16(3857), + 4840: uint16(17994), + 4841: uint16(17997), + 4842: uint16(9773), + 4843: uint16(7715), + 4844: uint16(4405), + 4845: uint16(10758), + 4846: uint16(5692), + 4847: uint16(5435), + 4848: uint16(17996), + 4849: uint16(4425), + 4850: uint16(4866), + 4851: uint16(4176), + 4852: uint16(18001), + 4853: uint16(11593), + 4854: uint16(8508), + 4855: uint16(10275), + 4856: uint16(18013), + 4857: uint16(4406), + 4858: uint16(18011), + 4859: uint16(18009), + 4860: uint16(18000), + 4861: uint16(17998), + 4862: uint16(17999), + 4863: uint16(6978), + 4864: uint16(5451), + 4865: uint16(8790), + 4866: uint16(9520), + 4867: uint16(4144), + 4868: uint16(18003), + 4869: uint16(18002), + 4870: uint16(18008), + 4871: uint16(18004), + 4872: uint16(18007), + 4873: uint16(11055), + 4874: uint16(18006), + 4875: uint16(4407), + 4876: uint16(4700), + 4877: uint16(18010), + 4878: uint16(18012), + 4879: uint16(5683), + 4880: uint16(18178), + 4881: uint16(18187), + 4882: uint16(18188), + 4883: uint16(3850), + 4884: uint16(18195), + 4885: uint16(3920), + 4886: uint16(18186), + 4887: uint16(18185), + 4888: uint16(18180), + 4889: uint16(18179), + 4890: uint16(18177), + 4891: uint16(18176), + 4892: uint16(8770), + 4893: uint16(8538), + 4894: uint16(18182), + 4895: uint16(18181), + 4896: uint16(18184), + 4897: uint16(8271), + 4898: uint16(5684), + 4899: uint16(4128), + 4900: uint16(18183), + 4901: uint16(6194), + 4902: uint16(8272), + 4903: uint16(18201), + 4904: uint16(18202), + 4905: uint16(4408), + 4906: uint16(4365), + 4907: uint16(18199), + 4908: uint16(18189), + 4909: uint16(18197), + 4910: uint16(18204), + 4911: uint16(18198), + 4912: uint16(18196), + 4913: uint16(18005), + 4914: uint16(18194), + 4915: uint16(18190), + 4916: uint16(4911), + 4917: uint16(18192), + 4918: uint16(18203), + 4919: uint16(18193), + 4920: uint16(18205), + 4921: uint16(18191), + 4922: uint16(9819), + 4923: uint16(11336), + 4924: uint16(18200), + 4925: uint16(18222), + 4926: uint16(18214), + 4927: uint16(7770), + 4928: uint16(5157), + 4929: uint16(5436), + 4930: uint16(18209), + 4931: uint16(4410), + 4932: uint16(7475), + 4933: uint16(18212), + 4934: uint16(6457), + 4935: uint16(9264), + 4936: uint16(18217), + 4937: uint16(10573), + 4938: uint16(18208), + 4939: uint16(4409), + 4940: uint16(5941), + 4941: uint16(10248), + 4942: uint16(18218), + 4943: uint16(18206), + 4944: uint16(18215), + 4945: uint16(18225), + 4946: uint16(18210), + 4947: uint16(18211), + 4948: uint16(9497), + 4949: uint16(18216), + 4950: uint16(18213), + 4951: uint16(10759), + 4952: uint16(18219), + 4953: uint16(3903), + 4954: uint16(18207), + 4955: uint16(18221), + 4956: uint16(18220), + 4957: uint16(9802), + 4958: uint16(18227), + 4959: uint16(18238), + 4960: uint16(4701), + 4961: uint16(18241), + 4962: uint16(18223), + 4963: uint16(18228), + 4964: uint16(11341), + 4965: uint16(18237), + 4966: uint16(11316), + 4967: uint16(11529), + 4968: uint16(8791), + 4969: uint16(4682), + 4970: uint16(10321), + 4971: uint16(18243), + 4972: uint16(9472), + 4973: uint16(3856), + 4974: uint16(18236), + 4975: uint16(18232), + 4976: uint16(8273), + 4977: uint16(18226), + 4978: uint16(18234), + 4979: uint16(18239), + 4980: uint16(9739), + 4981: uint16(3849), + 4982: uint16(18231), + 4983: uint16(18240), + 4984: uint16(10327), + 4985: uint16(18235), + 4986: uint16(18230), + 4987: uint16(7476), + 4988: uint16(7182), + 4989: uint16(6923), + 4990: uint16(11063), + 4991: uint16(10278), + 4992: uint16(18246), + 4993: uint16(18255), + 4994: uint16(18233), + 4995: uint16(4694), + 4996: uint16(7511), + 4997: uint16(18244), + 4998: uint16(18249), + 4999: uint16(8274), + 5000: uint16(18245), + 5001: uint16(18252), + 5002: uint16(8766), + 5003: uint16(18253), + 5004: uint16(11317), + 5005: uint16(18242), + 5006: uint16(4631), + 5007: uint16(18248), + 5008: uint16(18251), + 5009: uint16(11019), + 5010: uint16(18254), + 5011: uint16(18247), + 5012: uint16(18250), + 5013: uint16(10760), + 5014: uint16(11776), + 5015: uint16(18258), + 5016: uint16(18265), + 5017: uint16(18257), + 5018: uint16(6946), + 5019: uint16(18224), + 5020: uint16(10541), + 5021: uint16(11009), + 5022: uint16(18264), + 5023: uint16(18263), + 5024: uint16(18259), + 5025: uint16(18260), + 5026: uint16(4117), + 5027: uint16(18262), + 5028: uint16(18256), + 5029: uint16(9012), + 5030: uint16(18261), + 5031: uint16(3933), + 5032: uint16(8449), + 5033: uint16(10530), + 5034: uint16(18266), + 5035: uint16(18432), + 5036: uint16(10040), + 5037: uint16(18269), + 5038: uint16(7477), + 5039: uint16(6952), + 5040: uint16(18434), + 5041: uint16(5405), + 5042: uint16(18435), + 5043: uint16(10328), + 5044: uint16(18268), + 5045: uint16(18229), + 5046: uint16(18267), + 5047: uint16(11822), + 5048: uint16(9473), + 5049: uint16(10322), + 5050: uint16(18442), + 5051: uint16(18448), + 5052: uint16(18449), + 5053: uint16(18436), + 5054: uint16(9813), + 5055: uint16(18446), + 5056: uint16(18438), + 5057: uint16(18440), + 5058: uint16(18450), + 5059: uint16(18439), + 5060: uint16(18443), + 5061: uint16(4177), + 5062: uint16(9540), + 5063: uint16(18444), + 5064: uint16(18447), + 5065: uint16(18437), + 5066: uint16(8197), + 5067: uint16(18441), + 5068: uint16(6662), + 5069: uint16(7716), + 5070: uint16(5647), + 5071: uint16(11091), + 5072: uint16(11096), + 5073: uint16(7249), + 5074: uint16(18454), + 5075: uint16(18452), + 5076: uint16(11821), + 5077: uint16(18451), + 5078: uint16(11348), + 5079: uint16(18453), + 5080: uint16(18455), + 5081: uint16(18456), + 5082: uint16(18459), + 5083: uint16(18457), + 5084: uint16(9474), + 5085: uint16(18458), + 5086: uint16(10028), + 5087: uint16(18445), + 5088: uint16(7250), + 5089: uint16(18460), + 5090: uint16(18465), + 5091: uint16(8275), + 5092: uint16(18464), + 5093: uint16(18433), + 5094: uint16(18466), + 5095: uint16(8232), + 5096: uint16(18461), + 5097: uint16(18463), + 5098: uint16(18462), + 5099: uint16(15376), + 5100: uint16(15361), + 5101: uint16(18468), + 5102: uint16(18467), + 5103: uint16(11349), + 5104: uint16(16667), + 5105: uint16(18469), + 5106: uint16(18470), + 5107: uint16(18471), + 5108: uint16(5942), + 5109: uint16(5171), + 5110: uint16(18473), + 5111: uint16(12348), + 5112: uint16(5204), + 5113: uint16(11545), + 5114: uint16(5458), + 5115: uint16(18474), + 5116: uint16(18475), + 5117: uint16(8781), + 5118: uint16(18476), + 5119: uint16(9561), + 5120: uint16(3865), + 5121: uint16(4418), + 5122: uint16(18481), + 5123: uint16(18482), + 5124: uint16(18477), + 5125: uint16(6684), + 5126: uint16(18478), + 5127: uint16(9761), + 5128: uint16(18479), + 5129: uint16(18480), + 5130: uint16(18490), + 5131: uint16(18484), + 5132: uint16(18487), + 5133: uint16(18483), + 5134: uint16(18485), + 5135: uint16(18486), + 5136: uint16(6967), + 5137: uint16(18488), + 5138: uint16(8736), + 5139: uint16(5685), + 5140: uint16(4641), + 5141: uint16(18491), + 5142: uint16(4638), + 5143: uint16(18496), + 5144: uint16(18492), + 5145: uint16(18495), + 5146: uint16(10009), + 5147: uint16(18493), + 5148: uint16(18494), + 5149: uint16(10279), + 5150: uint16(10041), + 5151: uint16(18497), + 5152: uint16(8540), + 5153: uint16(18507), + 5154: uint16(18503), + 5155: uint16(4426), + 5156: uint16(18501), + 5157: uint16(10761), + 5158: uint16(18502), + 5159: uint16(18499), + 5160: uint16(18500), + 5161: uint16(18505), + 5162: uint16(18508), + 5163: uint16(18506), + 5164: uint16(18504), + 5165: uint16(18498), + 5166: uint16(8759), + 5167: uint16(18515), + 5168: uint16(11017), + 5169: uint16(18513), + 5170: uint16(18514), + 5171: uint16(18509), + 5172: uint16(18511), + 5173: uint16(18512), + 5174: uint16(18510), + 5175: uint16(8005), + 5176: uint16(11800), + 5177: uint16(18519), + 5178: uint16(18520), + 5179: uint16(18688), + 5180: uint16(7689), + 5181: uint16(18522), + 5182: uint16(18525), + 5183: uint16(18517), + 5184: uint16(18516), + 5185: uint16(18689), + 5186: uint16(4411), + 5187: uint16(18523), + 5188: uint16(18690), + 5189: uint16(18524), + 5190: uint16(18521), + 5191: uint16(8978), + 5192: uint16(18518), + 5193: uint16(9799), + 5194: uint16(18694), + 5195: uint16(11290), + 5196: uint16(18693), + 5197: uint16(18692), + 5198: uint16(18701), + 5199: uint16(18695), + 5200: uint16(18703), + 5201: uint16(11333), + 5202: uint16(18706), + 5203: uint16(18697), + 5204: uint16(18698), + 5205: uint16(18702), + 5206: uint16(18705), + 5207: uint16(18704), + 5208: uint16(18696), + 5209: uint16(18699), + 5210: uint16(18716), + 5211: uint16(18709), + 5212: uint16(18707), + 5213: uint16(18708), + 5214: uint16(18713), + 5215: uint16(18714), + 5216: uint16(4617), + 5217: uint16(5153), + 5218: uint16(18712), + 5219: uint16(18691), + 5220: uint16(18711), + 5221: uint16(18715), + 5222: uint16(18710), + 5223: uint16(18717), + 5224: uint16(18719), + 5225: uint16(18718), + 5226: uint16(18721), + 5227: uint16(18720), + 5228: uint16(18489), + 5229: uint16(18725), + 5230: uint16(18722), + 5231: uint16(18723), + 5232: uint16(18724), + 5233: uint16(18726), + 5234: uint16(5707), + 5235: uint16(18728), + 5236: uint16(18727), + 5237: uint16(7183), + 5238: uint16(6195), + 5239: uint16(15622), + 5240: uint16(18729), + 5241: uint16(7216), + 5242: uint16(4632), + 5243: uint16(18730), + 5244: uint16(4145), + 5245: uint16(7478), + 5246: uint16(18731), + 5247: uint16(6196), + 5248: uint16(18732), + 5249: uint16(3904), + 5250: uint16(10268), + 5251: uint16(18733), + 5252: uint16(7753), + 5253: uint16(18740), + 5254: uint16(18737), + 5255: uint16(8782), + 5256: uint16(18738), + 5257: uint16(18735), + 5258: uint16(5437), + 5259: uint16(18734), + 5260: uint16(18741), + 5261: uint16(5653), + 5262: uint16(8509), + 5263: uint16(18747), + 5264: uint16(18743), + 5265: uint16(8468), + 5266: uint16(18742), + 5267: uint16(18745), + 5268: uint16(18736), + 5269: uint16(18746), + 5270: uint16(18748), + 5271: uint16(10062), + 5272: uint16(18744), + 5273: uint16(18749), + 5274: uint16(18751), + 5275: uint16(5938), + 5276: uint16(18739), + 5277: uint16(3872), + 5278: uint16(18750), + 5279: uint16(6458), + 5280: uint16(11605), + 5281: uint16(18752), + 5282: uint16(18753), + 5283: uint16(8276), + 5284: uint16(11521), + 5285: uint16(18754), + 5286: uint16(11284), + 5287: uint16(18755), + 5288: uint16(18756), + 5289: uint16(10563), + 5290: uint16(18757), + 5291: uint16(6431), + 5292: uint16(11522), + 5293: uint16(18762), + 5294: uint16(18763), + 5295: uint16(7479), + 5296: uint16(18761), + 5297: uint16(11334), + 5298: uint16(18758), + 5299: uint16(18760), + 5300: uint16(7964), + 5301: uint16(7773), + 5302: uint16(18759), + 5303: uint16(18764), + 5304: uint16(10498), + 5305: uint16(18766), + 5306: uint16(18765), + 5307: uint16(4683), + 5308: uint16(10762), + 5309: uint16(18767), + 5310: uint16(18779), + 5311: uint16(18769), + 5312: uint16(18770), + 5313: uint16(18771), + 5314: uint16(18772), + 5315: uint16(18776), + 5316: uint16(18777), + 5317: uint16(18775), + 5318: uint16(18773), + 5319: uint16(18768), + 5320: uint16(18774), + 5321: uint16(18778), + 5322: uint16(20246), + 5323: uint16(4359), + 5324: uint16(18781), + 5325: uint16(5438), + 5326: uint16(18780), + 5327: uint16(18945), + 5328: uint16(18944), + 5329: uint16(18947), + 5330: uint16(18946), + 5331: uint16(18948), + 5332: uint16(7184), + 5333: uint16(18949), + 5334: uint16(18950), + 5335: uint16(18951), + 5336: uint16(7965), + 5337: uint16(11318), + 5338: uint16(18952), + 5339: uint16(10499), + 5340: uint16(9765), + 5341: uint16(18953), + 5342: uint16(18954), + 5343: uint16(5898), + 5344: uint16(5131), + 5345: uint16(18955), + 5346: uint16(6730), + 5347: uint16(9760), + 5348: uint16(18956), + 5349: uint16(4655), + 5350: uint16(18957), + 5351: uint16(18959), + 5352: uint16(11350), + 5353: uint16(18958), + 5354: uint16(7717), + 5355: uint16(18960), + 5356: uint16(18961), + 5357: uint16(18962), + 5358: uint16(4912), + 5359: uint16(18963), + 5360: uint16(18964), + 5361: uint16(18965), + 5362: uint16(18966), + 5363: uint16(4656), + 5364: uint16(18967), + 5365: uint16(18968), + 5366: uint16(18969), + 5367: uint16(4433), + 5368: uint16(7687), + 5369: uint16(18970), + 5370: uint16(18971), + 5371: uint16(18972), + 5372: uint16(5919), + 5373: uint16(9050), + 5374: uint16(18973), + 5375: uint16(5686), + 5376: uint16(7733), + 5377: uint16(18976), + 5378: uint16(9475), + 5379: uint16(18975), + 5380: uint16(5648), + 5381: uint16(18974), + 5382: uint16(8534), + 5383: uint16(5132), + 5384: uint16(18977), + 5385: uint16(18978), + 5386: uint16(7480), + 5387: uint16(5708), + 5388: uint16(18979), + 5389: uint16(10763), + 5390: uint16(7998), + 5391: uint16(5205), + 5392: uint16(11092), + 5393: uint16(8233), + 5394: uint16(18980), + 5395: uint16(7718), + 5396: uint16(8783), + 5397: uint16(7481), + 5398: uint16(18981), + 5399: uint16(18984), + 5400: uint16(18985), + 5401: uint16(6429), + 5402: uint16(8481), + 5403: uint16(18983), + 5404: uint16(7482), + 5405: uint16(10269), + 5406: uint16(18982), + 5407: uint16(6731), + 5408: uint16(4146), + 5409: uint16(18989), + 5410: uint16(5687), + 5411: uint16(6733), + 5412: uint16(6732), + 5413: uint16(11820), + 5414: uint16(18988), + 5415: uint16(18987), + 5416: uint16(8198), + 5417: uint16(5164), + 5418: uint16(11810), + 5419: uint16(4633), + 5420: uint16(7483), + 5421: uint16(18986), + 5422: uint16(18991), + 5423: uint16(18992), + 5424: uint16(18990), + 5425: uint16(5943), + 5426: uint16(11295), + 5427: uint16(6734), + 5428: uint16(9734), + 5429: uint16(18995), + 5430: uint16(7967), + 5431: uint16(8737), + 5432: uint16(11285), + 5433: uint16(18998), + 5434: uint16(5963), + 5435: uint16(7966), + 5436: uint16(18994), + 5437: uint16(18999), + 5438: uint16(5964), + 5439: uint16(18996), + 5440: uint16(18997), + 5441: uint16(18993), + 5442: uint16(8001), + 5443: uint16(9512), + 5444: uint16(8718), + 5445: uint16(4412), + 5446: uint16(10063), + 5447: uint16(5154), + 5448: uint16(8979), + 5449: uint16(19002), + 5450: uint16(19000), + 5451: uint16(8747), + 5452: uint16(7968), + 5453: uint16(4913), + 5454: uint16(19001), + 5455: uint16(7738), + 5456: uint16(11561), + 5457: uint16(11807), + 5458: uint16(19003), + 5459: uint16(19014), + 5460: uint16(8980), + 5461: uint16(19013), + 5462: uint16(19010), + 5463: uint16(19018), + 5464: uint16(19011), + 5465: uint16(19007), + 5466: uint16(9051), + 5467: uint16(19006), + 5468: uint16(19004), + 5469: uint16(11264), + 5470: uint16(6735), + 5471: uint16(19008), + 5472: uint16(19005), + 5473: uint16(19012), + 5474: uint16(7251), + 5475: uint16(5920), + 5476: uint16(8537), + 5477: uint16(10788), + 5478: uint16(4153), + 5479: uint16(3905), + 5480: uint16(9476), + 5481: uint16(19016), + 5482: uint16(19015), + 5483: uint16(9541), + 5484: uint16(19020), + 5485: uint16(19009), + 5486: uint16(19019), + 5487: uint16(19021), + 5488: uint16(5899), + 5489: uint16(19017), + 5490: uint16(6197), + 5491: uint16(6964), + 5492: uint16(19022), + 5493: uint16(11319), + 5494: uint16(19025), + 5495: uint16(19028), + 5496: uint16(19026), + 5497: uint16(10260), + 5498: uint16(19023), + 5499: uint16(5439), + 5500: uint16(19027), + 5501: uint16(19029), + 5502: uint16(19033), + 5503: uint16(19030), + 5504: uint16(19032), + 5505: uint16(19031), + 5506: uint16(19034), + 5507: uint16(6928), + 5508: uint16(19036), + 5509: uint16(19035), + 5510: uint16(10311), + 5511: uint16(19200), + 5512: uint16(5688), + 5513: uint16(19037), + 5514: uint16(19201), + 5515: uint16(19202), + 5516: uint16(5155), + 5517: uint16(17696), + 5518: uint16(7512), + 5519: uint16(19203), + 5520: uint16(5965), + 5521: uint16(19204), + 5522: uint16(19205), + 5523: uint16(6685), + 5524: uint16(14637), + 5525: uint16(19206), + 5526: uint16(19207), + 5527: uint16(7185), + 5528: uint16(19208), + 5529: uint16(19209), + 5530: uint16(19210), + 5531: uint16(19211), + 5532: uint16(19212), + 5533: uint16(8714), + 5534: uint16(19213), + 5535: uint16(19215), + 5536: uint16(19214), + 5537: uint16(9477), + 5538: uint16(19216), + 5539: uint16(10764), + 5540: uint16(19217), + 5541: uint16(19218), + 5542: uint16(19219), + 5543: uint16(19220), + 5544: uint16(9529), + 5545: uint16(7484), + 5546: uint16(19221), + 5547: uint16(6218), + 5548: uint16(12045), + 5549: uint16(19222), + 5550: uint16(19223), + 5551: uint16(10270), + 5552: uint16(19224), + 5553: uint16(19232), + 5554: uint16(19225), + 5555: uint16(19227), + 5556: uint16(19226), + 5557: uint16(19228), + 5558: uint16(10789), + 5559: uint16(19229), + 5560: uint16(19230), + 5561: uint16(19231), + 5562: uint16(19233), + 5563: uint16(4620), + 5564: uint16(9030), + 5565: uint16(10312), + 5566: uint16(6465), + 5567: uint16(6198), + 5568: uint16(10286), + 5569: uint16(4414), + 5570: uint16(10029), + 5571: uint16(19236), + 5572: uint16(4914), + 5573: uint16(7988), + 5574: uint16(19235), + 5575: uint16(19240), + 5576: uint16(8792), + 5577: uint16(11074), + 5578: uint16(19238), + 5579: uint16(19239), + 5580: uint16(5133), + 5581: uint16(19241), + 5582: uint16(9794), + 5583: uint16(8510), + 5584: uint16(10064), + 5585: uint16(9244), + 5586: uint16(19237), + 5587: uint16(10790), + 5588: uint16(4427), + 5589: uint16(19243), + 5590: uint16(11783), + 5591: uint16(8993), + 5592: uint16(11812), + 5593: uint16(6736), + 5594: uint16(19242), + 5595: uint16(8464), + 5596: uint16(19259), + 5597: uint16(8199), + 5598: uint16(9559), + 5599: uint16(10287), + 5600: uint16(19246), + 5601: uint16(6686), + 5602: uint16(6737), + 5603: uint16(7485), + 5604: uint16(9796), + 5605: uint16(5900), + 5606: uint16(19245), + 5607: uint16(19244), + 5608: uint16(10313), + 5609: uint16(6944), + 5610: uint16(9265), + 5611: uint16(19248), + 5612: uint16(19249), + 5613: uint16(6199), + 5614: uint16(19247), + 5615: uint16(19250), + 5616: uint16(19251), + 5617: uint16(19253), + 5618: uint16(8450), + 5619: uint16(19252), + 5620: uint16(4933), + 5621: uint16(19255), + 5622: uint16(19254), + 5623: uint16(19256), + 5624: uint16(19258), + 5625: uint16(19260), + 5626: uint16(19261), + 5627: uint16(7989), + 5628: uint16(6958), + 5629: uint16(19262), + 5630: uint16(4657), + 5631: uint16(19263), + 5632: uint16(8277), + 5633: uint16(19264), + 5634: uint16(19265), + 5635: uint16(10314), + 5636: uint16(5134), + 5637: uint16(19266), + 5638: uint16(8981), + 5639: uint16(4154), + 5640: uint16(19267), + 5641: uint16(6992), + 5642: uint16(7765), + 5643: uint16(8460), + 5644: uint16(19270), + 5645: uint16(19269), + 5646: uint16(19268), + 5647: uint16(19276), + 5648: uint16(19274), + 5649: uint16(19271), + 5650: uint16(19273), + 5651: uint16(19272), + 5652: uint16(19275), + 5653: uint16(5206), + 5654: uint16(19279), + 5655: uint16(7990), + 5656: uint16(19280), + 5657: uint16(5944), + 5658: uint16(19277), + 5659: uint16(19278), + 5660: uint16(11784), + 5661: uint16(8982), + 5662: uint16(8200), + 5663: uint16(19281), + 5664: uint16(19284), + 5665: uint16(19282), + 5666: uint16(19283), + 5667: uint16(11320), + 5668: uint16(9478), + 5669: uint16(19287), + 5670: uint16(19285), + 5671: uint16(19286), + 5672: uint16(19288), + 5673: uint16(19464), + 5674: uint16(19291), + 5675: uint16(19292), + 5676: uint16(19290), + 5677: uint16(19289), + 5678: uint16(9052), + 5679: uint16(19456), + 5680: uint16(19460), + 5681: uint16(19457), + 5682: uint16(19293), + 5683: uint16(19458), + 5684: uint16(19459), + 5685: uint16(19466), + 5686: uint16(19461), + 5687: uint16(7991), + 5688: uint16(19463), + 5689: uint16(19465), + 5690: uint16(19462), + 5691: uint16(19468), + 5692: uint16(7186), + 5693: uint16(19467), + 5694: uint16(19469), + 5695: uint16(19470), + 5696: uint16(19473), + 5697: uint16(19472), + 5698: uint16(19471), + 5699: uint16(19475), + 5700: uint16(19474), + 5701: uint16(11093), + 5702: uint16(19477), + 5703: uint16(19476), + 5704: uint16(19478), + 5705: uint16(19479), + 5706: uint16(19481), + 5707: uint16(19480), + 5708: uint16(7719), + 5709: uint16(19482), + 5710: uint16(5452), + 5711: uint16(19483), + 5712: uint16(19485), + 5713: uint16(19486), + 5714: uint16(19487), + 5715: uint16(19484), + 5716: uint16(19488), + 5717: uint16(6965), + 5718: uint16(19489), + 5719: uint16(5135), + 5720: uint16(5650), + 5721: uint16(5901), + 5722: uint16(19490), + 5723: uint16(9551), + 5724: uint16(9245), + 5725: uint16(19491), + 5726: uint16(19494), + 5727: uint16(6931), + 5728: uint16(19493), + 5729: uint16(19492), + 5730: uint16(5689), + 5731: uint16(19495), + 5732: uint16(4658), + 5733: uint16(19497), + 5734: uint16(6459), + 5735: uint16(19496), + 5736: uint16(19505), + 5737: uint16(19499), + 5738: uint16(19501), + 5739: uint16(10564), + 5740: uint16(19498), + 5741: uint16(19500), + 5742: uint16(19504), + 5743: uint16(19502), + 5744: uint16(5136), + 5745: uint16(19503), + 5746: uint16(19506), + 5747: uint16(9785), + 5748: uint16(11575), + 5749: uint16(7187), + 5750: uint16(19507), + 5751: uint16(11265), + 5752: uint16(19509), + 5753: uint16(19508), + 5754: uint16(19512), + 5755: uint16(11296), + 5756: uint16(19511), + 5757: uint16(4684), + 5758: uint16(19510), + 5759: uint16(19515), + 5760: uint16(19514), + 5761: uint16(19513), + 5762: uint16(9233), + 5763: uint16(19516), + 5764: uint16(19517), + 5765: uint16(19518), + 5766: uint16(6219), + 5767: uint16(5636), + 5768: uint16(19519), + 5769: uint16(19520), + 5770: uint16(19521), + 5771: uint16(7720), + 5772: uint16(19522), + 5773: uint16(6924), + 5774: uint16(19523), + 5775: uint16(19524), + 5776: uint16(12544), + 5777: uint16(12381), + 5778: uint16(19525), + 5779: uint16(17487), + 5780: uint16(19526), + 5781: uint16(8707), + 5782: uint16(7690), + 5783: uint16(9759), + 5784: uint16(19527), + 5785: uint16(10548), + 5786: uint16(9011), + 5787: uint16(6237), + 5788: uint16(8712), + 5789: uint16(4105), + 5790: uint16(10839), + 5791: uint16(7734), + 5792: uint16(5693), + 5793: uint16(5440), + 5794: uint16(10549), + 5795: uint16(19528), + 5796: uint16(19530), + 5797: uint16(19529), + 5798: uint16(4415), + 5799: uint16(9557), + 5800: uint16(19531), + 5801: uint16(9814), + 5802: uint16(9234), + 5803: uint16(19532), + 5804: uint16(7217), + 5805: uint16(19534), + 5806: uint16(11041), + 5807: uint16(19549), + 5808: uint16(19536), + 5809: uint16(19537), + 5810: uint16(9000), + 5811: uint16(8511), + 5812: uint16(8278), + 5813: uint16(9479), + 5814: uint16(19535), + 5815: uint16(5172), + 5816: uint16(19544), + 5817: uint16(19541), + 5818: uint16(19716), + 5819: uint16(9480), + 5820: uint16(8767), + 5821: uint16(19538), + 5822: uint16(9053), + 5823: uint16(9266), + 5824: uint16(19539), + 5825: uint16(19543), + 5826: uint16(7743), + 5827: uint16(9798), + 5828: uint16(9003), + 5829: uint16(7969), + 5830: uint16(19542), + 5831: uint16(8461), + 5832: uint16(8451), + 5833: uint16(19540), + 5834: uint16(3848), + 5835: uint16(11777), + 5836: uint16(19545), + 5837: uint16(8512), + 5838: uint16(7188), + 5839: uint16(7721), + 5840: uint16(19547), + 5841: uint16(19546), + 5842: uint16(3918), + 5843: uint16(19548), + 5844: uint16(10254), + 5845: uint16(19718), + 5846: uint16(9530), + 5847: uint16(7754), + 5848: uint16(8760), + 5849: uint16(5463), + 5850: uint16(19717), + 5851: uint16(11286), + 5852: uint16(4126), + 5853: uint16(10550), + 5854: uint16(4416), + 5855: uint16(19712), + 5856: uint16(19713), + 5857: uint16(19714), + 5858: uint16(19715), + 5859: uint16(9498), + 5860: uint16(8706), + 5861: uint16(3906), + 5862: uint16(19719), + 5863: uint16(19720), + 5864: uint16(21250), + 5865: uint16(8476), + 5866: uint16(19721), + 5867: uint16(4178), + 5868: uint16(8235), + 5869: uint16(5902), + 5870: uint16(11321), + 5871: uint16(19722), + 5872: uint16(9227), + 5873: uint16(8279), + 5874: uint16(6966), + 5875: uint16(19723), + 5876: uint16(19726), + 5877: uint16(7236), + 5878: uint16(19724), + 5879: uint16(8202), + 5880: uint16(8201), + 5881: uint16(3907), + 5882: uint16(11562), + 5883: uint16(19728), + 5884: uint16(10065), + 5885: uint16(19730), + 5886: uint16(19729), + 5887: uint16(19727), + 5888: uint16(16963), + 5889: uint16(4915), + 5890: uint16(19533), + 5891: uint16(19732), + 5892: uint16(19731), + 5893: uint16(19733), + 5894: uint16(11287), + 5895: uint16(9536), + 5896: uint16(10765), + 5897: uint16(19734), + 5898: uint16(6968), + 5899: uint16(19735), + 5900: uint16(19736), + 5901: uint16(19737), + 5902: uint16(9216), + 5903: uint16(3913), + 5904: uint16(6200), + 5905: uint16(11801), + 5906: uint16(19741), + 5907: uint16(5651), + 5908: uint16(19738), + 5909: uint16(19739), + 5910: uint16(10323), + 5911: uint16(4659), + 5912: uint16(11288), + 5913: uint16(5406), + 5914: uint16(9267), + 5915: uint16(19742), + 5916: uint16(19743), + 5917: uint16(19744), + 5918: uint16(9217), + 5919: uint16(19746), + 5920: uint16(19745), + 5921: uint16(9522), + 5922: uint16(19747), + 5923: uint16(7189), + 5924: uint16(6975), + 5925: uint16(9786), + 5926: uint16(8784), + 5927: uint16(6993), + 5928: uint16(7755), + 5929: uint16(19748), + 5930: uint16(19749), + 5931: uint16(7740), + 5932: uint16(19750), + 5933: uint16(19751), + 5934: uint16(19752), + 5935: uint16(11342), + 5936: uint16(7190), + 5937: uint16(19754), + 5938: uint16(19753), + 5939: uint16(6201), + 5940: uint16(6226), + 5941: uint16(6687), + 5942: uint16(19757), + 5943: uint16(7237), + 5944: uint16(19756), + 5945: uint16(19755), + 5946: uint16(8520), + 5947: uint16(5966), + 5948: uint16(7970), + 5949: uint16(9999), + 5950: uint16(7192), + 5951: uint16(19758), + 5952: uint16(7486), + 5953: uint16(19761), + 5954: uint16(19759), + 5955: uint16(19760), + 5956: uint16(19763), + 5957: uint16(19762), + 5958: uint16(7513), + 5959: uint16(19764), + 5960: uint16(19765), + 5961: uint16(19766), + 5962: uint16(10031), + 5963: uint16(6450), + 5964: uint16(6976), + 5965: uint16(19767), + 5966: uint16(19768), + 5967: uint16(11523), + 5968: uint16(7204), + 5969: uint16(11085), + 5970: uint16(11563), + 5971: uint16(19769), + 5972: uint16(5441), + 5973: uint16(19770), + 5974: uint16(9218), + 5975: uint16(19773), + 5976: uint16(4695), + 5977: uint16(7722), + 5978: uint16(19771), + 5979: uint16(19772), + 5980: uint16(9023), + 5981: uint16(10804), + 5982: uint16(5467), + 5983: uint16(19775), + 5984: uint16(19776), + 5985: uint16(19774), + 5986: uint16(19778), + 5987: uint16(9534), + 5988: uint16(4642), + 5989: uint16(19782), + 5990: uint16(19779), + 5991: uint16(19781), + 5992: uint16(19777), + 5993: uint16(20014), + 5994: uint16(19780), + 5995: uint16(11594), + 5996: uint16(5945), + 5997: uint16(19790), + 5998: uint16(9235), + 5999: uint16(19785), + 6000: uint16(19788), + 6001: uint16(19786), + 6002: uint16(19791), + 6003: uint16(19792), + 6004: uint16(19784), + 6005: uint16(19797), + 6006: uint16(4179), + 6007: uint16(19783), + 6008: uint16(9996), + 6009: uint16(19787), + 6010: uint16(7487), + 6011: uint16(6202), + 6012: uint16(10791), + 6013: uint16(5443), + 6014: uint16(7205), + 6015: uint16(9499), + 6016: uint16(8204), + 6017: uint16(19795), + 6018: uint16(19789), + 6019: uint16(19794), + 6020: uint16(11042), + 6021: uint16(8983), + 6022: uint16(19796), + 6023: uint16(19793), + 6024: uint16(8203), + 6025: uint16(19800), + 6026: uint16(19799), + 6027: uint16(19798), + 6028: uint16(10766), + 6029: uint16(7258), + 6030: uint16(19801), + 6031: uint16(10558), + 6032: uint16(4147), + 6033: uint16(10277), + 6034: uint16(8785), + 6035: uint16(5207), + 6036: uint16(19803), + 6037: uint16(6204), + 6038: uint16(6667), + 6039: uint16(19802), + 6040: uint16(7756), + 6041: uint16(7757), + 6042: uint16(19968), + 6043: uint16(19970), + 6044: uint16(7514), + 6045: uint16(19969), + 6046: uint16(19971), + 6047: uint16(5426), + 6048: uint16(10276), + 6049: uint16(6977), + 6050: uint16(11778), + 6051: uint16(19805), + 6052: uint16(6487), + 6053: uint16(11806), + 6054: uint16(19973), + 6055: uint16(19972), + 6056: uint16(19974), + 6057: uint16(19804), + 6058: uint16(9544), + 6059: uint16(9268), + 6060: uint16(9014), + 6061: uint16(19979), + 6062: uint16(8738), + 6063: uint16(19975), + 6064: uint16(19976), + 6065: uint16(5644), + 6066: uint16(19978), + 6067: uint16(5903), + 6068: uint16(19977), + 6069: uint16(7488), + 6070: uint16(4696), + 6071: uint16(19983), + 6072: uint16(6430), + 6073: uint16(8280), + 6074: uint16(9001), + 6075: uint16(4634), + 6076: uint16(19981), + 6077: uint16(19982), + 6078: uint16(8994), + 6079: uint16(19980), + 6080: uint16(19984), + 6081: uint16(19990), + 6082: uint16(19993), + 6083: uint16(19992), + 6084: uint16(9228), + 6085: uint16(19985), + 6086: uint16(19986), + 6087: uint16(19989), + 6088: uint16(19991), + 6089: uint16(5407), + 6090: uint16(19994), + 6091: uint16(19988), + 6092: uint16(19987), + 6093: uint16(19998), + 6094: uint16(19999), + 6095: uint16(20000), + 6096: uint16(19997), + 6097: uint16(19996), + 6098: uint16(7489), + 6099: uint16(9481), + 6100: uint16(19995), + 6101: uint16(20004), + 6102: uint16(20002), + 6103: uint16(20003), + 6104: uint16(20001), + 6105: uint16(8535), + 6106: uint16(20005), + 6107: uint16(20006), + 6108: uint16(20008), + 6109: uint16(4916), + 6110: uint16(20007), + 6111: uint16(11097), + 6112: uint16(20019), + 6113: uint16(20009), + 6114: uint16(20012), + 6115: uint16(20010), + 6116: uint16(20011), + 6117: uint16(20013), + 6118: uint16(20015), + 6119: uint16(20016), + 6120: uint16(20017), + 6121: uint16(20020), + 6122: uint16(20018), + 6123: uint16(20021), + 6124: uint16(20023), + 6125: uint16(20022), + 6126: uint16(8984), + 6127: uint16(11078), + 6128: uint16(20024), + 6129: uint16(8205), + 6130: uint16(20025), + 6131: uint16(10531), + 6132: uint16(20026), + 6133: uint16(4618), + 6134: uint16(4123), + 6135: uint16(4918), + 6136: uint16(4917), + 6137: uint16(20027), + 6138: uint16(20028), + 6139: uint16(20029), + 6140: uint16(20030), + 6141: uint16(20031), + 6142: uint16(4919), + 6143: uint16(4660), + 6144: uint16(6205), + 6145: uint16(10005), + 6146: uint16(20033), + 6147: uint16(20032), + 6148: uint16(20034), + 6149: uint16(4155), + 6150: uint16(20037), + 6151: uint16(20036), + 6152: uint16(20035), + 6153: uint16(20038), + 6154: uint16(20041), + 6155: uint16(3878), + 6156: uint16(20039), + 6157: uint16(20043), + 6158: uint16(20042), + 6159: uint16(20045), + 6160: uint16(20044), + 6161: uint16(20046), + 6162: uint16(9485), + 6163: uint16(20047), + 6164: uint16(20048), + 6165: uint16(20050), + 6166: uint16(20049), + 6167: uint16(10315), + 6168: uint16(20051), + 6169: uint16(20052), + 6170: uint16(6468), + 6171: uint16(20053), + 6172: uint16(20054), + 6173: uint16(10792), + 6174: uint16(8234), + 6175: uint16(3843), + 6176: uint16(8490), + 6177: uint16(20055), + 6178: uint16(10316), + 6179: uint16(20058), + 6180: uint16(20056), + 6181: uint16(6206), + 6182: uint16(20057), + 6183: uint16(5921), + 6184: uint16(10532), + 6185: uint16(20060), + 6186: uint16(20224), + 6187: uint16(20061), + 6188: uint16(20225), + 6189: uint16(4096), + 6190: uint16(7735), + 6191: uint16(7259), + 6192: uint16(4920), + 6193: uint16(20226), + 6194: uint16(9797), + 6195: uint16(20228), + 6196: uint16(4097), + 6197: uint16(20227), + 6198: uint16(8995), + 6199: uint16(11564), + 6200: uint16(9482), + 6201: uint16(20059), + 6202: uint16(11525), + 6203: uint16(5904), + 6204: uint16(11322), + 6205: uint16(5464), + 6206: uint16(11539), + 6207: uint16(5639), + 6208: uint16(8513), + 6209: uint16(17920), + 6210: uint16(20229), + 6211: uint16(4619), + 6212: uint16(7758), + 6213: uint16(4661), + 6214: uint16(20231), + 6215: uint16(20232), + 6216: uint16(20230), + 6217: uint16(5699), + 6218: uint16(6460), + 6219: uint16(7490), + 6220: uint16(4098), + 6221: uint16(11576), + 6222: uint16(20234), + 6223: uint16(19725), + 6224: uint16(20233), + 6225: uint16(20237), + 6226: uint16(20235), + 6227: uint16(20236), + 6228: uint16(20238), + 6229: uint16(20239), + 6230: uint16(11595), + 6231: uint16(20240), + 6232: uint16(20241), + 6233: uint16(7976), + 6234: uint16(10010), + 6235: uint16(7772), + 6236: uint16(4934), + 6237: uint16(11289), + 6238: uint16(4428), + 6239: uint16(7191), + 6240: uint16(5946), + 6241: uint16(20244), + 6242: uint16(20243), + 6243: uint16(6738), + 6244: uint16(20245), + 6245: uint16(20242), + 6246: uint16(6663), + 6247: uint16(20249), + 6248: uint16(18700), + 6249: uint16(12597), + 6250: uint16(7766), + 6251: uint16(20247), + 6252: uint16(11524), + 6253: uint16(9552), + 6254: uint16(4106), + 6255: uint16(8002), + 6256: uint16(6933), + 6257: uint16(10518), + 6258: uint16(4127), + 6259: uint16(11596), + 6260: uint16(11338), + 6261: uint16(20250), + 6262: uint16(9252), + 6263: uint16(7002), + 6264: uint16(20251), + 6265: uint16(20252), + 6266: uint16(7723), + 6267: uint16(20253), + 6268: uint16(11597), + 6269: uint16(20248), + 6270: uint16(20255), + 6271: uint16(20257), + 6272: uint16(20256), + 6273: uint16(20254), + 6274: uint16(20258), + 6275: uint16(20259), + 6276: uint16(8281), + 6277: uint16(4417), + 6278: uint16(20260), + 6279: uint16(11031), + 6280: uint16(20261), + 6281: uint16(20262), + 6282: uint16(11785), + 6283: uint16(14864), + 6284: uint16(20263), + 6285: uint16(20264), + 6286: uint16(20265), + 6287: uint16(20269), + 6288: uint16(20266), + 6289: uint16(20267), + 6290: uint16(20268), + 6291: uint16(20270), + 6292: uint16(7971), + 6293: uint16(11094), + 6294: uint16(7972), + 6295: uint16(20271), + 6296: uint16(10066), + 6297: uint16(20272), + 6298: uint16(21042), + 6299: uint16(11051), + 6300: uint16(20273), + 6301: uint16(20274), + 6302: uint16(20275), + 6303: uint16(4662), + 6304: uint16(20277), + 6305: uint16(7736), + 6306: uint16(20278), + 6307: uint16(5635), + 6308: uint16(20279), + 6309: uint16(20283), + 6310: uint16(20281), + 6311: uint16(20282), + 6312: uint16(4690), + 6313: uint16(20280), + 6314: uint16(20284), + 6315: uint16(20285), + 6316: uint16(3879), + 6317: uint16(20286), + 6318: uint16(20287), + 6319: uint16(7491), + 6320: uint16(20288), + 6321: uint16(5158), + 6322: uint16(20291), + 6323: uint16(20290), + 6324: uint16(20289), + 6325: uint16(19024), + 6326: uint16(10555), + 6327: uint16(20292), + 6328: uint16(20293), + 6329: uint16(20294), + 6330: uint16(20295), + 6331: uint16(20296), + 6332: uint16(20297), + 6333: uint16(4921), + 6334: uint16(20298), + 6335: uint16(20299), + 6336: uint16(9730), + 6337: uint16(20301), + 6338: uint16(4378), + 6339: uint16(20304), + 6340: uint16(20303), + 6341: uint16(4099), + 6342: uint16(5408), + 6343: uint16(10534), + 6344: uint16(8985), + 6345: uint16(6401), + 6346: uint16(6207), + 6347: uint16(7238), + 6348: uint16(7739), + 6349: uint16(20306), + 6350: uint16(20305), + 6351: uint16(11297), + 6352: uint16(4935), + 6353: uint16(10033), + 6354: uint16(9531), + 6355: uint16(7771), + 6356: uint16(11565), + 6357: uint16(5690), + 6358: uint16(20309), + 6359: uint16(20308), + 6360: uint16(10794), + 6361: uint16(9483), + 6362: uint16(4143), + 6363: uint16(20310), + 6364: uint16(20307), + 6365: uint16(10288), + 6366: uint16(11337), + 6367: uint16(20311), + 6368: uint16(20312), + 6369: uint16(20314), + 6370: uint16(8521), + 6371: uint16(4666), + 6372: uint16(4667), + 6373: uint16(20313), + 6374: uint16(4936), + 6375: uint16(5905), + 6376: uint16(4937), + 6377: uint16(9246), + 6378: uint16(11583), + 6379: uint16(5947), + 6380: uint16(20315), + 6381: uint16(20316), + 6382: uint16(20317), + 6383: uint16(20480), + 6384: uint16(20482), + 6385: uint16(20481), + 6386: uint16(10326), + 6387: uint16(20483), + 6388: uint16(20484), + 6389: uint16(20485), + 6390: uint16(20486), + 6391: uint16(20488), + 6392: uint16(20487), + 6393: uint16(20489), + 6394: uint16(10067), + 6395: uint16(17707), + 6396: uint16(7688), + 6397: uint16(5137), + 6398: uint16(20490), + 6399: uint16(20491), + 6400: uint16(12555), + 6401: uint16(15386), + 6402: uint16(10034), + 6403: uint16(3930), + 6404: uint16(3866), + 6405: uint16(6739), + 6406: uint16(10767), + 6407: uint16(7517), + 6408: uint16(20492), + 6409: uint16(11070), + 6410: uint16(20493), + 6411: uint16(11323), + 6412: uint16(4129), + 6413: uint16(6688), + 6414: uint16(20494), + 6415: uint16(4429), + 6416: uint16(20495), + 6417: uint16(20496), + 6418: uint16(20498), + 6419: uint16(20499), + 6420: uint16(20501), + 6421: uint16(20497), + 6422: uint16(20500), + 6423: uint16(4922), + 6424: uint16(20502), + 6425: uint16(20503), + 6426: uint16(20504), + 6427: uint16(20505), + 6428: uint16(20506), + 6429: uint16(20508), + 6430: uint16(20507), + 6431: uint16(20510), + 6432: uint16(20513), + 6433: uint16(20509), + 6434: uint16(20511), + 6435: uint16(20512), + 6436: uint16(20514), + 6437: uint16(5409), + 6438: uint16(6994), + 6439: uint16(20515), + 6440: uint16(20516), + 6441: uint16(6208), + 6442: uint16(20517), + 6443: uint16(4637), + 6444: uint16(9774), + 6445: uint16(20518), + 6446: uint16(20519), + 6447: uint16(8761), + 6448: uint16(9546), + 6449: uint16(20520), + 6450: uint16(9820), + 6451: uint16(8491), + 6452: uint16(4151), + 6453: uint16(5453), + 6454: uint16(5454), + 6455: uint16(8786), + 6456: uint16(20525), + 6457: uint16(5455), + 6458: uint16(4430), + 6459: uint16(20524), + 6460: uint16(20522), + 6461: uint16(20523), + 6462: uint16(20521), + 6463: uint16(20535), + 6464: uint16(20526), + 6465: uint16(20527), + 6466: uint16(20528), + 6467: uint16(20529), + 6468: uint16(20531), + 6469: uint16(20530), + 6470: uint16(7224), + 6471: uint16(20532), + 6472: uint16(20534), + 6473: uint16(5138), + 6474: uint16(20533), + 6475: uint16(8282), + 6476: uint16(5906), + 6477: uint16(20536), + 6478: uint16(8492), + 6479: uint16(20537), + 6480: uint16(9484), + 6481: uint16(20538), + 6482: uint16(20543), + 6483: uint16(20541), + 6484: uint16(20540), + 6485: uint16(20542), + 6486: uint16(20539), + 6487: uint16(20545), + 6488: uint16(20544), + 6489: uint16(20547), + 6490: uint16(5410), + 6491: uint16(20546), + 6492: uint16(20548), + 6493: uint16(20549), + 6494: uint16(20551), + 6495: uint16(20550), + 6496: uint16(20552), + 6497: uint16(20554), + 6498: uint16(20553), + 6499: uint16(6235), + 6500: uint16(20555), + 6501: uint16(20556), + 6502: uint16(4635), + 6503: uint16(20557), + 6504: uint16(20558), + 6505: uint16(7760), + 6506: uint16(20559), + 6507: uint16(20560), + 6508: uint16(20561), + 6509: uint16(20562), + 6510: uint16(6209), + 6511: uint16(20563), + 6512: uint16(20564), + 6513: uint16(20565), + 6514: uint16(20566), + 6515: uint16(20567), + 6516: uint16(10000), + 6517: uint16(20569), + 6518: uint16(10245), + 6519: uint16(20570), + 6520: uint16(20568), + 6521: uint16(20572), + 6522: uint16(20571), + 6523: uint16(20573), + 6524: uint16(20736), + 6525: uint16(20737), + 6526: uint16(20738), + 6527: uint16(20739), + 6528: uint16(20740), + 6529: uint16(20741), + 6530: uint16(20742), + 6531: uint16(20743), + 6532: uint16(20744), + 6533: uint16(20745), + 6534: uint16(20746), + 6535: uint16(20747), + 6536: uint16(20748), + 6537: uint16(20749), + 6538: uint16(15380), + 6539: uint16(20750), + 6540: uint16(17239), + 6541: uint16(5139), + 6542: uint16(4608), + 6543: uint16(6417), + 6544: uint16(20752), + 6545: uint16(20751), + 6546: uint16(11012), + 6547: uint16(20754), + 6548: uint16(20755), + 6549: uint16(20753), + 6550: uint16(20756), + 6551: uint16(10817), + 6552: uint16(20757), + 6553: uint16(5210), + 6554: uint16(11780), + 6555: uint16(20758), + 6556: uint16(20760), + 6557: uint16(3869), + 6558: uint16(20761), + 6559: uint16(10506), + 6560: uint16(20759), + 6561: uint16(20762), + 6562: uint16(20763), + 6563: uint16(20764), + 6564: uint16(20765), + 6565: uint16(20766), + 6566: uint16(10829), + 6567: uint16(6668), + 6568: uint16(6489), + 6569: uint16(8206), + 6570: uint16(20767), + 6571: uint16(20770), + 6572: uint16(20768), + 6573: uint16(20771), + 6574: uint16(5968), + 6575: uint16(20769), + 6576: uint16(20772), + 6577: uint16(20773), + 6578: uint16(20774), + 6579: uint16(20778), + 6580: uint16(6665), + 6581: uint16(8515), + 6582: uint16(20779), + 6583: uint16(20776), + 6584: uint16(20775), + 6585: uint16(20777), + 6586: uint16(5694), + 6587: uint16(20783), + 6588: uint16(20782), + 6589: uint16(20781), + 6590: uint16(3858), + 6591: uint16(20793), + 6592: uint16(20789), + 6593: uint16(20790), + 6594: uint16(20786), + 6595: uint16(20792), + 6596: uint16(20788), + 6597: uint16(4673), + 6598: uint16(11819), + 6599: uint16(20791), + 6600: uint16(20787), + 6601: uint16(20785), + 6602: uint16(20784), + 6603: uint16(20795), + 6604: uint16(20798), + 6605: uint16(20797), + 6606: uint16(20796), + 6607: uint16(10280), + 6608: uint16(20794), + 6609: uint16(3922), + 6610: uint16(20799), + 6611: uint16(20801), + 6612: uint16(4686), + 6613: uint16(20780), + 6614: uint16(4118), + 6615: uint16(20803), + 6616: uint16(20802), + 6617: uint16(20800), + 6618: uint16(8716), + 6619: uint16(10831), + 6620: uint16(11577), + 6621: uint16(20804), + 6622: uint16(20805), + 6623: uint16(20806), + 6624: uint16(20807), + 6625: uint16(20808), + 6626: uint16(8986), + 6627: uint16(20809), + 6628: uint16(10006), + 6629: uint16(20814), + 6630: uint16(20810), + 6631: uint16(20811), + 6632: uint16(10768), + 6633: uint16(11043), + 6634: uint16(9519), + 6635: uint16(20815), + 6636: uint16(20816), + 6637: uint16(9501), + 6638: uint16(20813), + 6639: uint16(20812), + 6640: uint16(4361), + 6641: uint16(20824), + 6642: uint16(20823), + 6643: uint16(4180), + 6644: uint16(20821), + 6645: uint16(20820), + 6646: uint16(20818), + 6647: uint16(4698), + 6648: uint16(20817), + 6649: uint16(6929), + 6650: uint16(4360), + 6651: uint16(6210), + 6652: uint16(20827), + 6653: uint16(20826), + 6654: uint16(20825), + 6655: uint16(20822), + 6656: uint16(20828), + 6657: uint16(20829), + 6658: uint16(20996), + 6659: uint16(20995), + 6660: uint16(20997), + 6661: uint16(4108), + 6662: uint16(20992), + 6663: uint16(20993), + 6664: uint16(6227), + 6665: uint16(11032), + 6666: uint16(20994), + 6667: uint16(10769), + 6668: uint16(21002), + 6669: uint16(20998), + 6670: uint16(21003), + 6671: uint16(21000), + 6672: uint16(20999), + 6673: uint16(5691), + 6674: uint16(21004), + 6675: uint16(21005), + 6676: uint16(21006), + 6677: uint16(21001), + 6678: uint16(20819), + 6679: uint16(21007), + 6680: uint16(9024), + 6681: uint16(21011), + 6682: uint16(21012), + 6683: uint16(21010), + 6684: uint16(21009), + 6685: uint16(21015), + 6686: uint16(21008), + 6687: uint16(21013), + 6688: uint16(21014), + 6689: uint16(21017), + 6690: uint16(21016), + 6691: uint16(21019), + 6692: uint16(21020), + 6693: uint16(21021), + 6694: uint16(11816), + 6695: uint16(21018), + 6696: uint16(8522), + 6697: uint16(6476), + 6698: uint16(21022), + 6699: uint16(21023), + 6700: uint16(21024), + 6701: uint16(21025), + 6702: uint16(21026), + 6703: uint16(5907), + 6704: uint16(21027), + 6705: uint16(21028), + 6706: uint16(6926), + 6707: uint16(21029), + 6708: uint16(21030), + 6709: uint16(21031), + 6710: uint16(21032), + 6711: uint16(21035), + 6712: uint16(21033), + 6713: uint16(11803), + 6714: uint16(21034), + 6715: uint16(11598), + 6716: uint16(21036), + 6717: uint16(11578), + 6718: uint16(21037), + 6719: uint16(9821), + 6720: uint16(21038), + 6721: uint16(21040), + 6722: uint16(21041), + 6723: uint16(21039), + 6724: uint16(6220), + 6725: uint16(11052), + 6726: uint16(10818), + 6727: uint16(13654), + 6728: uint16(15423), + 6729: uint16(10842), + 6730: uint16(4362), + 6731: uint16(21043), + 6732: uint16(5167), + 6733: uint16(21044), + 6734: uint16(21045), + 6735: uint16(21046), + 6736: uint16(6228), + 6737: uint16(21047), + 6738: uint16(16179), + 6739: uint16(11066), + 6740: uint16(8514), + 6741: uint16(21048), + 6742: uint16(21050), + 6743: uint16(21049), + 6744: uint16(21051), + 6745: uint16(21052), + 6746: uint16(21053), + 6747: uint16(21054), + 6748: uint16(21055), + 6749: uint16(21056), + 6750: uint16(21057), + 6751: uint16(21058), + 6752: uint16(21059), + 6753: uint16(21060), + 6754: uint16(21061), + 6755: uint16(21062), + 6756: uint16(21063), + 6757: uint16(9219), + 6758: uint16(5948), + 6759: uint16(21065), + 6760: uint16(8236), + 6761: uint16(21066), + 6762: uint16(21067), + 6763: uint16(10240), + 6764: uint16(21068), + 6765: uint16(21069), + 6766: uint16(16918), + 6767: uint16(19257), + 6768: uint16(20300), + 6769: uint16(21070), + 6770: uint16(21071), + 6771: uint16(21073), + 6772: uint16(21074), + 6773: uint16(21075), + 6774: uint16(11599), + 6775: uint16(21072), + 6776: uint16(21076), + 6777: uint16(21077), + 6778: uint16(21079), + 6779: uint16(21078), + 6780: uint16(21081), + 6781: uint16(21082), + 6782: uint16(21080), + 6783: uint16(11541), + 6784: uint16(21083), + 6785: uint16(21084), + 6786: uint16(16947), + 6787: uint16(21085), + 6788: uint16(9), + 6789: uint16(83), + 6790: uint16(79), + 6791: uint16(82), + 6792: uint16(84), + 6793: uint16(41), + 6794: uint16(42), + 6795: uint16(85), + 6796: uint16(59), + 6797: uint16(3), + 6798: uint16(4), + 6799: uint16(30), + 6800: uint16(527), + 6801: uint16(528), + 6802: uint16(529), + 6803: uint16(530), + 6804: uint16(531), + 6805: uint16(532), + 6806: uint16(533), + 6807: uint16(534), + 6808: uint16(535), + 6809: uint16(536), + 6810: uint16(6), + 6811: uint16(7), + 6812: uint16(66), + 6813: uint16(64), + 6814: uint16(67), + 6815: uint16(8), + 6816: uint16(86), + 6817: uint16(544), + 6818: uint16(545), + 6819: uint16(546), + 6820: uint16(547), + 6821: uint16(548), + 6822: uint16(549), + 6823: uint16(550), + 6824: uint16(551), + 6825: uint16(552), + 6826: uint16(553), + 6827: uint16(554), + 6828: uint16(555), + 6829: uint16(556), + 6830: uint16(557), + 6831: uint16(558), + 6832: uint16(559), + 6833: uint16(560), + 6834: uint16(561), + 6835: uint16(562), + 6836: uint16(563), + 6837: uint16(564), + 6838: uint16(565), + 6839: uint16(566), + 6840: uint16(567), + 6841: uint16(568), + 6842: uint16(569), + 6843: uint16(45), + 6844: uint16(46), + 6845: uint16(15), + 6846: uint16(17), + 6847: uint16(13), + 6848: uint16(576), + 6849: uint16(577), + 6850: uint16(578), + 6851: uint16(579), + 6852: uint16(580), + 6853: uint16(581), + 6854: uint16(582), + 6855: uint16(583), + 6856: uint16(584), + 6857: uint16(585), + 6858: uint16(586), + 6859: uint16(587), + 6860: uint16(588), + 6861: uint16(589), + 6862: uint16(590), + 6863: uint16(591), + 6864: uint16(592), + 6865: uint16(593), + 6866: uint16(594), + 6867: uint16(595), + 6868: uint16(596), + 6869: uint16(597), + 6870: uint16(598), + 6871: uint16(599), + 6872: uint16(600), + 6873: uint16(601), + 6874: uint16(47), + 6875: uint16(34), + 6876: uint16(48), + 6877: uint16(16), + 6878: uint16(78), +} + +func _fuzzycmp(tls *TLS, a uintptr, b uintptr) (r int32) { + for { + if !(**(**uint8)(__ccgo_up(a)) != 0 && **(**uint8)(__ccgo_up(b)) != 0) { + break + } + for **(**uint8)(__ccgo_up(a)) != 0 && uint32(**(**uint8)(__ccgo_up(a)))|uint32(32)-uint32('a') > uint32(26) && Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(a)))-int32('0')) > uint32(10) { + a = a + 1 + } + if uint32(**(**uint8)(__ccgo_up(a)))|uint32(32) != uint32(**(**uint8)(__ccgo_up(b))) { + return int32(1) + } + goto _1 + _1: + ; + a = a + 1 + b = b + 1 + } + return BoolInt32(Int32FromUint8(**(**uint8)(__ccgo_up(a))) != Int32FromUint8(**(**uint8)(__ccgo_up(b)))) +} + +func _find_charmap(tls *TLS, name uintptr) (r Tsize_t) { + var s uintptr + _ = s + if !(**(**uint8)(__ccgo_up(name)) != 0) { + name = uintptr(unsafe.Pointer(&_charmaps)) + } /* "utf8" */ + s = uintptr(unsafe.Pointer(&_charmaps)) + for { + if !(**(**uint8)(__ccgo_up(s)) != 0) { + break + } + if !(_fuzzycmp(tls, name, s) != 0) { + for { + if !(**(**uint8)(__ccgo_up(s)) != 0) { + break + } + goto _2 + _2: + ; + s = s + uintptr(_strlen(tls, s)+uint32(1)) + } + return Uint32FromInt32(int32(s+uintptr(1)) - t__predefined_ptrdiff_t(uintptr(unsafe.Pointer(&_charmaps)))) + } + s = s + uintptr(_strlen(tls, s)+uint32(1)) + if !(**(**uint8)(__ccgo_up(s)) != 0) { + if Int32FromUint8(**(**uint8)(__ccgo_up(s + 1))) > int32(0200) { + s = s + uintptr(2) + } else { + s = s + uintptr(uint32(2)+(uint32(64)-uint32(**(**uint8)(__ccgo_up(s + 1))))*uint32(5)) + } + } + goto _1 + _1: + } + return Uint32FromInt32(-Int32FromInt32(1)) +} + +type Tstateful_cd = struct { + Fbase_cd Ticonv_t + Fstate uint32 +} + +func _combine_to_from(tls *TLS, t Tsize_t, f Tsize_t) (r Ticonv_t) { + return uintptr(f<> int32(16) +} + +func _extract_to(tls *TLS, cd Ticonv_t) (r Tsize_t) { + return uint32(cd) >> int32(1) & uint32(0x7fff) +} + +func Xiconv_open(tls *TLS, to uintptr, from uintptr) (r Ticonv_t) { + if __ccgo_strace { + trc("tls=%v to=%v from=%v, (%v:)", tls, to, from, origin(2)) + defer func() { trc("-> %v", r) }() + } + var cd Ticonv_t + var f, t, v1, v2 Tsize_t + var scd uintptr + var v3 bool + _, _, _, _, _, _, _ = cd, f, scd, t, v1, v2, v3 + v1 = _find_charmap(tls, to) + t = v1 + if v3 = v1 == Uint32FromInt32(-Int32FromInt32(1)); !v3 { + v2 = _find_charmap(tls, from) + f = v2 + } + if v3 || v2 == Uint32FromInt32(-Int32FromInt32(1)) || Int32FromUint8(_charmaps[t]) >= int32(0330) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(-Int32FromInt32(1)) + } + cd = _combine_to_from(tls, t, f) + switch Int32FromUint8(_charmaps[f]) { + case int32(UTF_16): + fallthrough + case int32(UTF_32): + fallthrough + case int32(UCS2): + fallthrough + case int32(ISO2022_JP): + scd = Xmalloc(tls, uint32(8)) + if !(scd != 0) { + return uintptr(-Int32FromInt32(1)) + } + (*Tstateful_cd)(unsafe.Pointer(scd)).Fbase_cd = cd + (*Tstateful_cd)(unsafe.Pointer(scd)).Fstate = uint32(0) + cd = scd + } + return cd +} + +func _get_16(tls *TLS, s uintptr, e int32) (r uint32) { + e = e & int32(1) + return Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(e))))<> int32(8)) + **(**uint8)(__ccgo_up(s + uintptr(int32(1)-e))) = uint8(c) +} + +func _get_32(tls *TLS, s uintptr, e int32) (r uint32) { + e = e & int32(3) + return (uint32(**(**uint8)(__ccgo_up(s + uintptr(e))))+0)<> int32(24)) + **(**uint8)(__ccgo_up(s + uintptr(e^int32(1)))) = uint8(c >> int32(16)) + **(**uint8)(__ccgo_up(s + uintptr(e^int32(2)))) = uint8(c >> int32(8)) + **(**uint8)(__ccgo_up(s + uintptr(e^int32(3)))) = uint8(c) +} + +/* Adapt as needed */ + +func _legacy_map(tls *TLS, map1 uintptr, c uint32) (r uint32) { + var x, v1 uint32 + _, _ = x, v1 + if c < Uint32FromInt32(int32(4)*Int32FromUint8(**(**uint8)(__ccgo_up(map1 + uintptr(-Int32FromInt32(1)))))) { + return c + } + x = c - Uint32FromInt32(int32(4)*Int32FromUint8(**(**uint8)(__ccgo_up(map1 + uintptr(-Int32FromInt32(1)))))) + x = Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(map1 + uintptr(x*uint32(5)/uint32(4)))))>>(uint32(2)*x%uint32(8)) | Int32FromUint8(**(**uint8)(__ccgo_up(map1 + uintptr(x*uint32(5)/uint32(4)+uint32(1)))))<<(uint32(8)-uint32(2)*x%uint32(8))&int32(1023)) + if x < uint32(256) { + v1 = x + } else { + v1 = uint32(_legacy_chars[x-uint32(256)]) + } + return v1 +} + +func _uni_to_jis(tls *TLS, c uint32) (r uint32) { + var b, d, i, j, nel uint32 + _, _, _, _, _ = b, d, i, j, nel + nel = Uint32FromInt64(13758) / Uint32FromInt64(2) + b = uint32(0) + for { + i = nel / uint32(2) + j = uint32(_rev_jis[b+i]) + d = uint32(**(**uint16)(__ccgo_up(uintptr(unsafe.Pointer(&_jis0208)) + uintptr(j/uint32(256))*188 + uintptr(j%uint32(256))*2))) + if d == c { + return j + uint32(0x2121) + } else { + if nel == uint32(1) { + return uint32(0) + } else { + if c < d { + nel = nel / uint32(2) + } else { + b = b + i + nel = nel - nel/uint32(2) + } + } + } + goto _1 + _1: + } + return r +} + +func Xiconv(tls *TLS, cd Ticonv_t, in uintptr, inb uintptr, out uintptr, outb uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v cd=%v in=%v inb=%v out=%v outb=%v, (%v:)", tls, cd, in, inb, out, outb, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + var c, d, from, to, v62 uint32 + var err, i, i1, j, j1, v25, v26, v27 int32 + var k, l, tmplen, tmpx, x Tsize_t + var loc Tlocale_t + var map1, ploc, scd, tomap, v54, v55 uintptr + var totype, type1 uint8 + var _ /* ptmp at bp+40 */ uintptr + var _ /* st at bp+16 */ Tmbstate_t + var _ /* tmp at bp+32 */ struct { + Fwc [0][2]Twchar_t + Fc [8]uint8 + } + var _ /* tmp at bp+44 */ [4]uint8 + var _ /* wc at bp+24 */ Twchar_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = c, d, err, from, i, i1, j, j1, k, l, loc, map1, ploc, scd, tmplen, tmpx, to, tomap, totype, type1, x, v25, v26, v27, v54, v55, v62 + x = uint32(0) + scd = uintptr(0) + if !(uint32(cd)&Uint32FromInt32(1) != 0) { + scd = cd + cd = (*Tstateful_cd)(unsafe.Pointer(scd)).Fbase_cd + } + to = _extract_to(tls, cd) + from = _extract_from(tls, cd) + map1 = uintptr(unsafe.Pointer(&_charmaps)) + uintptr(from) + uintptr(1) + tomap = uintptr(unsafe.Pointer(&_charmaps)) + uintptr(to) + uintptr(1) + **(**Tmbstate_t)(__ccgo_up(bp + 16)) = Tmbstate_t{} + type1 = **(**uint8)(__ccgo_up(map1 + uintptr(-Int32FromInt32(1)))) + totype = **(**uint8)(__ccgo_up(tomap + uintptr(-Int32FromInt32(1)))) + ploc = uintptr(___get_tp(tls)) + 88 + loc = **(**Tlocale_t)(__ccgo_up(ploc)) + if !(in != 0) || !(**(**uintptr)(__ccgo_up(in)) != 0) || !(**(**Tsize_t)(__ccgo_up(inb)) != 0) { + return uint32(0) + } + **(**Tlocale_t)(__ccgo_up(ploc)) = uintptr(unsafe.Pointer(&X__c_dot_utf8_locale)) + for { + if !(**(**Tsize_t)(__ccgo_up(inb)) != 0) { + break + } + c = uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(in))))) + l = uint32(1) + switch Int32FromUint8(type1) { + case int32(UTF_8): + goto _2 + case int32(US_ASCII): + goto _3 + case int32(WCHAR_T): + goto _4 + case int32(UTF_32LE): + goto _5 + case int32(UTF_32BE): + goto _6 + case int32(UTF_16LE): + goto _7 + case int32(UTF_16BE): + goto _8 + case int32(UCS2LE): + goto _9 + case int32(UCS2BE): + goto _10 + case int32(UTF_16): + goto _11 + case int32(UCS2): + goto _12 + case int32(UTF_32): + goto _13 + case int32(SHIFT_JIS): + goto _14 + case int32(EUC_JP): + goto _15 + case int32(ISO2022_JP): + goto _16 + case int32(GB2312): + goto _17 + case int32(GBK): + goto _18 + case int32(GB18030): + goto _19 + case int32(BIG5): + goto _20 + case int32(EUC_KR): + goto _21 + default: + goto _22 + } + goto _23 + _2: + ; + if c < uint32(128) { + goto _23 + } + l = Xmbrtowc(tls, bp+24, **(**uintptr)(__ccgo_up(in)), **(**Tsize_t)(__ccgo_up(inb)), bp+16) + if l == Uint32FromInt32(-Int32FromInt32(1)) { + goto ilseq + } + if l == Uint32FromInt32(-Int32FromInt32(2)) { + goto starved + } + c = **(**Twchar_t)(__ccgo_up(bp + 24)) + goto _23 + _3: + ; + if c >= uint32(128) { + goto ilseq + } + goto _23 + _4: + ; + l = uint32(4) + if **(**Tsize_t)(__ccgo_up(inb)) < l { + goto starved + } + c = **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(in)))) + if !(0 != 0) { + goto _24 + } + _6: + ; + _5: + ; + l = uint32(4) + if **(**Tsize_t)(__ccgo_up(inb)) < uint32(4) { + goto starved + } + c = _get_32(tls, **(**uintptr)(__ccgo_up(in)), Int32FromUint8(type1)) + _24: + ; + if c-uint32(0xd800) < uint32(0x800) || c >= uint32(0x110000) { + goto ilseq + } + goto _23 + _10: + ; + _9: + ; + _8: + ; + _7: + ; + l = uint32(2) + if **(**Tsize_t)(__ccgo_up(inb)) < uint32(2) { + goto starved + } + c = _get_16(tls, **(**uintptr)(__ccgo_up(in)), Int32FromUint8(type1)) + if c-Uint32FromInt32(0xdc00) < uint32(0x400) { + goto ilseq + } + if c-Uint32FromInt32(0xd800) < uint32(0x400) { + if Uint32FromInt32(Int32FromUint8(type1)-int32(UCS2BE)) < uint32(2) { + goto ilseq + } + l = uint32(4) + if **(**Tsize_t)(__ccgo_up(inb)) < uint32(4) { + goto starved + } + d = _get_16(tls, **(**uintptr)(__ccgo_up(in))+UintptrFromInt32(2), Int32FromUint8(type1)) + if d-Uint32FromInt32(0xdc00) >= uint32(0x400) { + goto ilseq + } + c = (c-uint32(0xd7c0))< uint32(127) { + d = d - 1 + } + d = d - uint32(64) + } else { + if d-uint32(159) <= Uint32FromInt32(Int32FromInt32(252)-Int32FromInt32(159)) { + c = c + 1 + d = d - uint32(159) + } + } + if c >= uint32(84) { + goto ilseq + } + c = uint32(**(**uint16)(__ccgo_up(uintptr(unsafe.Pointer(&_jis0208)) + uintptr(c)*188 + uintptr(d)*2))) + if !(c != 0) { + goto ilseq + } + goto _23 + _15: + ; + if c < uint32(128) { + goto _23 + } + l = uint32(2) + if **(**Tsize_t)(__ccgo_up(inb)) < uint32(2) { + goto starved + } + d = uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(in)) + UintptrFromInt32(1)))) + if c == uint32(0x8e) { + c = d + if c-uint32(0xa1) > Uint32FromInt32(Int32FromInt32(0xdf)-Int32FromInt32(0xa1)) { + goto ilseq + } + c = c + Uint32FromInt32(Int32FromInt32(0xff61)-Int32FromInt32(0xa1)) + goto _23 + } + c = c - uint32(0xa1) + d = d - uint32(0xa1) + if c >= uint32(84) || d >= uint32(94) { + goto ilseq + } + c = uint32(**(**uint16)(__ccgo_up(uintptr(unsafe.Pointer(&_jis0208)) + uintptr(c)*188 + uintptr(d)*2))) + if !(c != 0) { + goto ilseq + } + goto _23 + _16: + ; + if c >= uint32(128) { + goto ilseq + } + if c == uint32('\033') { + l = uint32(3) + if **(**Tsize_t)(__ccgo_up(inb)) < uint32(3) { + goto starved + } + c = uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(in)) + UintptrFromInt32(1)))) + d = uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(in)) + UintptrFromInt32(2)))) + if c != uint32('(') && c != uint32('$') { + goto ilseq + } + switch Uint32FromInt32(Int32FromInt32(128)*BoolInt32(c == Uint32FromUint8('$'))) + d { + case uint32('B'): + (*Tstateful_cd)(unsafe.Pointer(scd)).Fstate = uint32(0) + goto _1 + case uint32('J'): + (*Tstateful_cd)(unsafe.Pointer(scd)).Fstate = uint32(1) + goto _1 + case uint32('I'): + (*Tstateful_cd)(unsafe.Pointer(scd)).Fstate = uint32(4) + goto _1 + case Uint32FromInt32(Int32FromInt32(128) + Int32FromUint8('@')): + (*Tstateful_cd)(unsafe.Pointer(scd)).Fstate = uint32(2) + goto _1 + case Uint32FromInt32(Int32FromInt32(128) + Int32FromUint8('B')): + (*Tstateful_cd)(unsafe.Pointer(scd)).Fstate = uint32(3) + goto _1 + } + goto ilseq + } + switch (*Tstateful_cd)(unsafe.Pointer(scd)).Fstate { + case uint32(1): + if c == uint32('\\') { + c = uint32(0xa5) + } + if c == uint32('~') { + c = uint32(0x203e) + } + case uint32(2): + fallthrough + case uint32(3): + l = uint32(2) + if **(**Tsize_t)(__ccgo_up(inb)) < uint32(2) { + goto starved + } + d = uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(in)) + UintptrFromInt32(1)))) + c = c - uint32(0x21) + d = d - uint32(0x21) + if c >= uint32(84) || d >= uint32(94) { + goto ilseq + } + c = uint32(**(**uint16)(__ccgo_up(uintptr(unsafe.Pointer(&_jis0208)) + uintptr(c)*188 + uintptr(d)*2))) + if !(c != 0) { + goto ilseq + } + case uint32(4): + if c-uint32(0x60) < uint32(0x1f) { + goto ilseq + } + if c-uint32(0x21) < uint32(0x5e) { + c = c + Uint32FromInt32(Int32FromInt32(0xff61)-Int32FromInt32(0x21)) + } + break + } + goto _23 + _17: + ; + if c < uint32(128) { + goto _23 + } + if c < uint32(0xa1) { + goto ilseq + } + _18: + ; + if c == uint32(128) { + c = uint32(0x20ac) + goto _23 + } + _19: + ; + if c < uint32(128) { + goto _23 + } + c = c - uint32(0x81) + if c >= uint32(126) { + goto ilseq + } + l = uint32(2) + if **(**Tsize_t)(__ccgo_up(inb)) < uint32(2) { + goto starved + } + d = uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(in)) + UintptrFromInt32(1)))) + if d < uint32(0xa1) && Int32FromUint8(type1) == int32(GB2312) { + goto ilseq + } + if d-uint32(0x40) >= uint32(191) || d == uint32(127) { + if d-uint32('0') > uint32(9) || Int32FromUint8(type1) != int32(GB18030) { + goto ilseq + } + l = uint32(4) + if **(**Tsize_t)(__ccgo_up(inb)) < uint32(4) { + goto starved + } + c = (uint32(10)*c + d - uint32('0')) * uint32(1260) + d = uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(in)) + UintptrFromInt32(2)))) + if d-uint32(0x81) > uint32(126) { + goto ilseq + } + c = c + uint32(10)*(d-uint32(0x81)) + d = uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(in)) + UintptrFromInt32(3)))) + if d-uint32('0') > uint32(9) { + goto ilseq + } + c = c + (d - uint32('0')) + c = c + uint32(128) + d = uint32(0) + for { + if !(d <= c) { + break + } + k = uint32(0) + i = 0 + for { + if !(i < int32(126)) { + break + } + j = 0 + for { + if !(j < int32(190)) { + break + } + if uint32(**(**uint16)(__ccgo_up(uintptr(unsafe.Pointer(&_gb18030)) + uintptr(i)*380 + uintptr(j)*2)))-d <= c-d { + k = k + 1 + } + goto _31 + _31: + ; + j = j + 1 + } + goto _30 + _30: + ; + i = i + 1 + } + d = c + uint32(1) + c = c + k + goto _29 + _29: + } + goto _23 + } + d = d - uint32(0x40) + if d > uint32(63) { + d = d - 1 + } + c = uint32(**(**uint16)(__ccgo_up(uintptr(unsafe.Pointer(&_gb18030)) + uintptr(c)*380 + uintptr(d)*2))) + goto _23 + _20: + ; + if c < uint32(128) { + goto _23 + } + l = uint32(2) + if **(**Tsize_t)(__ccgo_up(inb)) < uint32(2) { + goto starved + } + d = uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(in)) + UintptrFromInt32(1)))) + if d-uint32(0x40) >= Uint32FromInt32(Int32FromInt32(0xff)-Int32FromInt32(0x40)) || d-uint32(0x7f) < Uint32FromInt32(Int32FromInt32(0xa1)-Int32FromInt32(0x7f)) { + goto ilseq + } + d = d - uint32(0x40) + if d > uint32(0x3e) { + d = d - uint32(0x22) + } + if c-uint32(0xa1) >= Uint32FromInt32(Int32FromInt32(0xfa)-Int32FromInt32(0xa1)) { + if c-uint32(0x87) >= Uint32FromInt32(Int32FromInt32(0xff)-Int32FromInt32(0x87)) { + goto ilseq + } + if c < uint32(0xa1) { + c = c - uint32(0x87) + } else { + c = c - Uint32FromInt32(Int32FromInt32(0x87)+(Int32FromInt32(0xfa)-Int32FromInt32(0xa1))) + } + c = Uint32FromInt32(Int32FromUint16(_hkscs[uint32(4867)+(c*uint32(157)+d)/uint32(16)])>>((c*uint32(157)+d)%uint32(16))%int32(2)< **(**Tsize_t)(__ccgo_up(outb)) { + goto toobig + } + if tmpx != 0 { + x = x + 1 + } + _memcpy(tls, **(**uintptr)(__ccgo_up(out)), bp+32, tmplen) + **(**uintptr)(__ccgo_up(out)) += uintptr(tmplen) + **(**Tsize_t)(__ccgo_up(outb)) -= tmplen + goto _1 + } + if !(c != 0) { + goto ilseq + } + goto _23 + } + c = c - uint32(0xa1) + c = Uint32FromInt32(Int32FromUint16(**(**uint16)(__ccgo_up(uintptr(unsafe.Pointer(&_big5)) + uintptr(c)*314 + uintptr(d)*2))) | BoolInt32(c == uint32(0x27) && (d == uint32(0x3a) || d == uint32(0x3c) || d == uint32(0x42)))<= uint32(93) || d >= uint32(94) { + c = c + Uint32FromInt32(Int32FromInt32(0xa1)-Int32FromInt32(0x81)) + d = d + uint32(0xa1) + if c >= uint32(93) || c >= Uint32FromInt32(Int32FromInt32(0xc6)-Int32FromInt32(0x81)) && d > uint32(0x52) { + goto ilseq + } + if d-uint32('A') < uint32(26) { + d = d - uint32('A') + } else { + if d-uint32('a') < uint32(26) { + d = d - uint32('a') + uint32(26) + } else { + if d-uint32(0x81) < Uint32FromInt32(Int32FromInt32(0xff)-Int32FromInt32(0x81)) { + d = d - uint32(0x81) + uint32(52) + } else { + goto ilseq + } + } + } + if c < uint32(0x20) { + c = uint32(178)*c + d + } else { + c = Uint32FromInt32(Int32FromInt32(178)*Int32FromInt32(0x20)) + uint32(84)*(c-uint32(0x20)) + d + } + c = c + uint32(0xac00) + d = uint32(0xac00) + for { + if !(d <= c) { + break + } + k = uint32(0) + i1 = 0 + for { + if !(i1 < int32(93)) { + break + } + j1 = 0 + for { + if !(j1 < int32(94)) { + break + } + if uint32(**(**uint16)(__ccgo_up(uintptr(unsafe.Pointer(&_ksc)) + uintptr(i1)*188 + uintptr(j1)*2)))-d <= c-d { + k = k + 1 + } + goto _34 + _34: + ; + j1 = j1 + 1 + } + goto _33 + _33: + ; + i1 = i1 + 1 + } + d = c + uint32(1) + c = c + k + goto _32 + _32: + } + goto _23 + } + c = uint32(**(**uint16)(__ccgo_up(uintptr(unsafe.Pointer(&_ksc)) + uintptr(c)*188 + uintptr(d)*2))) + if !(c != 0) { + goto ilseq + } + goto _23 + _22: + ; + if !(c != 0) { + goto _23 + } + c = _legacy_map(tls, map1, c) + if !(c != 0) { + goto ilseq + } + _23: + ; + switch Int32FromUint8(totype) { + case int32(WCHAR_T): + goto _35 + case int32(UTF_8): + goto _36 + case int32(US_ASCII): + goto _37 + default: + goto _38 + case int32(SHIFT_JIS): + goto _39 + case int32(EUC_JP): + goto _40 + case int32(ISO2022_JP): + goto _41 + case int32(UCS2): + goto _42 + case int32(UTF_16LE): + goto _43 + case int32(UTF_16BE): + goto _44 + case int32(UTF_16): + goto _45 + case int32(UCS2LE): + goto _46 + case int32(UCS2BE): + goto _47 + case int32(UTF_32): + goto _48 + case int32(UTF_32LE): + goto _49 + case int32(UTF_32BE): + goto _50 + } + goto _51 + _35: + ; + if **(**Tsize_t)(__ccgo_up(outb)) < uint32(4) { + goto toobig + } + **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(out)))) = c + **(**uintptr)(__ccgo_up(out)) += uintptr(4) + **(**Tsize_t)(__ccgo_up(outb)) -= uint32(4) + goto _51 + _36: + ; + if **(**Tsize_t)(__ccgo_up(outb)) < uint32(4) { + k = Uint32FromInt32(Xwctomb(tls, bp+44, c)) + if **(**Tsize_t)(__ccgo_up(outb)) < k { + goto toobig + } + _memcpy(tls, **(**uintptr)(__ccgo_up(out)), bp+44, k) + } else { + k = Uint32FromInt32(Xwctomb(tls, **(**uintptr)(__ccgo_up(out)), c)) + } + **(**uintptr)(__ccgo_up(out)) += uintptr(k) + **(**Tsize_t)(__ccgo_up(outb)) -= k + goto _51 + _37: + ; + if !(c > uint32(0x7f)) { + goto _52 + } + goto subst + subst: + ; + x = x + 1 + c = Uint32FromUint8('*') + _52: + ; + _38: + ; + if **(**Tsize_t)(__ccgo_up(outb)) < uint32(1) { + goto toobig + } + if !(c < uint32(256) && c == _legacy_map(tls, tomap, c)) { + goto _53 + } + goto revout + revout: + ; + if **(**Tsize_t)(__ccgo_up(outb)) < uint32(1) { + goto toobig + } + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8(c) + **(**Tsize_t)(__ccgo_up(outb)) -= uint32(1) + goto _51 + _53: + ; + d = c + c = Uint32FromInt32(int32(4) * Int32FromUint8(totype)) + for { + if !(c < uint32(256)) { + break + } + if d == _legacy_map(tls, tomap, c) { + goto revout + } + goto _56 + _56: + ; + c = c + 1 + } + goto subst + _39: + ; + if c < uint32(128) { + goto revout + } + if c == uint32(0xa5) { + x = x + 1 + c = uint32('\\') + goto revout + } + if c == uint32(0x203e) { + x = x + 1 + c = uint32('~') + goto revout + } + if c-uint32(0xff61) <= Uint32FromInt32(Int32FromInt32(0xdf)-Int32FromInt32(0xa1)) { + c = c + Uint32FromInt32(Int32FromInt32(0xa1)-Int32FromInt32(0xff61)) + goto revout + } + c = _uni_to_jis(tls, c) + if !(c != 0) { + goto subst + } + if **(**Tsize_t)(__ccgo_up(outb)) < uint32(2) { + goto toobig + } + d = c % uint32(256) + c = c / uint32(256) + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + if c < uint32(95) { + v25 = int32(112) + } else { + v25 = int32(176) + } + **(**uint8)(__ccgo_up(v54)) = uint8((c+uint32(1))/uint32(2) + Uint32FromInt32(v25)) + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + if c%uint32(2) != 0 { + v62 = d + uint32(31) + d/uint32(96) + } else { + v62 = d + uint32(126) + } + **(**uint8)(__ccgo_up(v54)) = uint8(v62) + **(**Tsize_t)(__ccgo_up(outb)) -= uint32(2) + goto _51 + _40: + ; + if c < uint32(128) { + goto revout + } + if c-uint32(0xff61) <= Uint32FromInt32(Int32FromInt32(0xdf)-Int32FromInt32(0xa1)) { + c = c + Uint32FromInt32(Int32FromInt32(0x0e00)+Int32FromInt32(0x21)-Int32FromInt32(0xff61)) + } else { + c = _uni_to_jis(tls, c) + } + if !(c != 0) { + goto subst + } + if **(**Tsize_t)(__ccgo_up(outb)) < uint32(2) { + goto toobig + } + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8(c/uint32(256) + uint32(0x80)) + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8(c%uint32(256) + uint32(0x80)) + **(**Tsize_t)(__ccgo_up(outb)) -= uint32(2) + goto _51 + _41: + ; + if c < uint32(128) { + goto revout + } + if c-uint32(0xff61) <= Uint32FromInt32(Int32FromInt32(0xdf)-Int32FromInt32(0xa1)) || c == uint32(0xa5) || c == uint32(0x203e) { + if **(**Tsize_t)(__ccgo_up(outb)) < uint32(7) { + goto toobig + } + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8('\033') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8('(') + if c == uint32(0xa5) { + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8('J') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8('\\') + } else { + if c == uint32(0x203e) { + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8('J') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8('~') + } else { + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8('I') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8(c - uint32(0xff61) + uint32(0x21)) + } + } + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8('\033') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8('(') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8('B') + **(**Tsize_t)(__ccgo_up(outb)) -= uint32(7) + goto _51 + } + c = _uni_to_jis(tls, c) + if !(c != 0) { + goto subst + } + if **(**Tsize_t)(__ccgo_up(outb)) < uint32(8) { + goto toobig + } + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8('\033') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8('$') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8('B') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8(c / uint32(256)) + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8(c % uint32(256)) + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8('\033') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8('(') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8('B') + **(**Tsize_t)(__ccgo_up(outb)) -= uint32(8) + goto _51 + _42: + ; + totype = uint8(UCS2BE) + _47: + ; + _46: + ; + _45: + ; + _44: + ; + _43: + ; + if c < uint32(0x10000) || Uint32FromInt32(Int32FromUint8(totype)-int32(UCS2BE)) < uint32(2) { + if c >= uint32(0x10000) { + c = uint32(0xFFFD) + } + if **(**Tsize_t)(__ccgo_up(outb)) < uint32(2) { + goto toobig + } + _put_16(tls, **(**uintptr)(__ccgo_up(out)), c, Int32FromUint8(totype)) + **(**uintptr)(__ccgo_up(out)) += uintptr(2) + **(**Tsize_t)(__ccgo_up(outb)) -= uint32(2) + goto _51 + } + if **(**Tsize_t)(__ccgo_up(outb)) < uint32(4) { + goto toobig + } + c = c - uint32(0x10000) + _put_16(tls, **(**uintptr)(__ccgo_up(out)), c>>int32(10)|uint32(0xd800), Int32FromUint8(totype)) + _put_16(tls, **(**uintptr)(__ccgo_up(out))+UintptrFromInt32(2), c&uint32(0x3ff)|uint32(0xdc00), Int32FromUint8(totype)) + **(**uintptr)(__ccgo_up(out)) += uintptr(4) + **(**Tsize_t)(__ccgo_up(outb)) -= uint32(4) + goto _51 + _48: + ; + totype = uint8(UTF_32BE) + _50: + ; + _49: + ; + if **(**Tsize_t)(__ccgo_up(outb)) < uint32(4) { + goto toobig + } + _put_32(tls, **(**uintptr)(__ccgo_up(out)), c, Int32FromUint8(totype)) + **(**uintptr)(__ccgo_up(out)) += uintptr(4) + **(**Tsize_t)(__ccgo_up(outb)) -= uint32(4) + goto _51 + _51: + ; + goto _1 + _1: + ; + **(**uintptr)(__ccgo_up(in)) += uintptr(l) + **(**Tsize_t)(__ccgo_up(inb)) -= l + } + **(**Tlocale_t)(__ccgo_up(ploc)) = loc + return x + goto ilseq +ilseq: + ; + err = int32(EILSEQ) + x = Uint32FromInt32(-Int32FromInt32(1)) + goto end + goto toobig +toobig: + ; + err = int32(E2BIG) + x = Uint32FromInt32(-Int32FromInt32(1)) + goto end + goto starved +starved: + ; + err = int32(EINVAL) + x = Uint32FromInt32(-Int32FromInt32(1)) + goto end +end: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = err + **(**Tlocale_t)(__ccgo_up(ploc)) = loc + return x +} + +func Xiconv_close(tls *TLS, cd Ticonv_t) (r int32) { + if __ccgo_strace { + trc("tls=%v cd=%v, (%v:)", tls, cd, origin(2)) + defer func() { trc("-> %v", r) }() + } + if !(uint32(cd)&Uint32FromInt32(1) != 0) { + Xfree(tls, cd) + } + return 0 +} + +var _c_time = [316]uint8{'S', 'u', 'n', 0, 'M', 'o', 'n', 0, 'T', 'u', 'e', 0, 'W', 'e', 'd', 0, 'T', 'h', 'u', 0, 'F', 'r', 'i', 0, 'S', 'a', 't', 0, 'S', 'u', 'n', 'd', 'a', 'y', 0, 'M', 'o', 'n', 'd', 'a', 'y', 0, 'T', 'u', 'e', 's', 'd', 'a', 'y', 0, 'W', 'e', 'd', 'n', 'e', 's', 'd', 'a', 'y', 0, 'T', 'h', 'u', 'r', 's', 'd', 'a', 'y', 0, 'F', 'r', 'i', 'd', 'a', 'y', 0, 'S', 'a', 't', 'u', 'r', 'd', 'a', 'y', 0, 'J', 'a', 'n', 0, 'F', 'e', 'b', 0, 'M', 'a', 'r', 0, 'A', 'p', 'r', 0, 'M', 'a', 'y', 0, 'J', 'u', 'n', 0, 'J', 'u', 'l', 0, 'A', 'u', 'g', 0, 'S', 'e', 'p', 0, 'O', 'c', 't', 0, 'N', 'o', 'v', 0, 'D', 'e', 'c', 0, 'J', 'a', 'n', 'u', 'a', 'r', 'y', 0, 'F', 'e', 'b', 'r', 'u', 'a', 'r', 'y', 0, 'M', 'a', 'r', 'c', 'h', 0, 'A', 'p', 'r', 'i', 'l', 0, 'M', 'a', 'y', 0, 'J', 'u', 'n', 'e', 0, 'J', 'u', 'l', 'y', 0, 'A', 'u', 'g', 'u', 's', 't', 0, 'S', 'e', 'p', 't', 'e', 'm', 'b', 'e', 'r', 0, 'O', 'c', 't', 'o', 'b', 'e', 'r', 0, 'N', 'o', 'v', 'e', 'm', 'b', 'e', 'r', 0, 'D', 'e', 'c', 'e', 'm', 'b', 'e', 'r', 0, 'A', 'M', 0, 'P', 'M', 0, '%', 'a', ' ', '%', 'b', ' ', '%', 'e', ' ', '%', 'T', ' ', '%', 'Y', 0, '%', 'm', '/', '%', 'd', '/', '%', 'y', 0, '%', 'H', ':', '%', 'M', ':', '%', 'S', 0, '%', 'I', ':', '%', 'M', ':', '%', 'S', ' ', '%', 'p', 0, 0, 0, '%', 'm', '/', '%', 'd', '/', '%', 'y', 0, '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 0, '%', 'a', ' ', '%', 'b', ' ', '%', 'e', ' ', '%', 'T', ' ', '%', 'Y', 0, '%', 'H', ':', '%', 'M', ':', '%', 'S'} + +var _c_messages = [19]uint8{'^', '[', 'y', 'Y', ']', 0, '^', '[', 'n', 'N', ']', 0, 'y', 'e', 's', 0, 'n', 'o'} +var _c_numeric = [3]uint8{'.'} + +func X__nl_langinfo_l(tls *TLS, item Tnl_item, loc Tlocale_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v item=%v loc=%v, (%v:)", tls, item, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + var cat, idx int32 + var str, v1 uintptr + _, _, _, _ = cat, idx, str, v1 + cat = item >> int32(16) + idx = item & int32(65535) + if item == int32(CODESET) { + if **(**uintptr)(__ccgo_up(loc)) != 0 { + v1 = __ccgo_ts + 322 + } else { + v1 = __ccgo_ts + 441 + } + return v1 + } + /* _NL_LOCALE_NAME extension */ + if idx == int32(65535) && cat < int32(LC_ALL) { + if **(**uintptr)(__ccgo_up(loc + uintptr(cat)*4)) != 0 { + v1 = **(**uintptr)(__ccgo_up(loc + uintptr(cat)*4)) + 8 + } else { + v1 = __ccgo_ts + 447 + } + return v1 + } + switch cat { + case int32(LC_NUMERIC): + if idx > int32(1) { + return __ccgo_ts + } + str = uintptr(unsafe.Pointer(&_c_numeric)) + case int32(LC_TIME): + if idx > int32(0x31) { + return __ccgo_ts + } + str = uintptr(unsafe.Pointer(&_c_time)) + case int32(LC_MONETARY): + if idx > 0 { + return __ccgo_ts + } + str = __ccgo_ts + case int32(LC_MESSAGES): + if idx > int32(3) { + return __ccgo_ts + } + str = uintptr(unsafe.Pointer(&_c_messages)) + default: + return __ccgo_ts + } + for { + if !(idx != 0) { + break + } + for { + if !(**(**uint8)(__ccgo_up(str)) != 0) { + break + } + goto _4 + _4: + ; + str = str + 1 + } + goto _3 + _3: + ; + idx = idx - 1 + str = str + 1 + } + if cat != int32(LC_NUMERIC) && **(**uint8)(__ccgo_up(str)) != 0 { + str = X__lctrans(tls, str, **(**uintptr)(__ccgo_up(loc + uintptr(cat)*4))) + } + return str +} + +func X__nl_langinfo(tls *TLS, item Tnl_item) (r uintptr) { + if __ccgo_strace { + trc("tls=%v item=%v, (%v:)", tls, item, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__nl_langinfo_l(tls, item, (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale) +} + +func Xnl_langinfo(tls *TLS, item Tnl_item) (r uintptr) { + if __ccgo_strace { + trc("tls=%v item=%v, (%v:)", tls, item, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__nl_langinfo(tls, item) +} + +func Xnl_langinfo_l(tls *TLS, item Tnl_item, loc Tlocale_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v item=%v loc=%v, (%v:)", tls, item, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__nl_langinfo_l(tls, item, loc) +} + +func X__lctrans_impl(tls *TLS, msg uintptr, lm uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v msg=%v lm=%v, (%v:)", tls, msg, lm, origin(2)) + defer func() { trc("-> %v", r) }() + } + var trans, v1 uintptr + _, _ = trans, v1 + trans = uintptr(0) + if lm != 0 { + trans = X__mo_lookup(tls, (*t__locale_map)(unsafe.Pointer(lm)).Fmap1, (*t__locale_map)(unsafe.Pointer(lm)).Fmap_size, msg) + } + if trans != 0 { + v1 = trans + } else { + v1 = msg + } + return v1 +} + +var _envvars = [6][12]uint8{ + 0: {'L', 'C', '_', 'C', 'T', 'Y', 'P', 'E'}, + 1: {'L', 'C', '_', 'N', 'U', 'M', 'E', 'R', 'I', 'C'}, + 2: {'L', 'C', '_', 'T', 'I', 'M', 'E'}, + 3: {'L', 'C', '_', 'C', 'O', 'L', 'L', 'A', 'T', 'E'}, + 4: {'L', 'C', '_', 'M', 'O', 'N', 'E', 'T', 'A', 'R', 'Y'}, + 5: {'L', 'C', '_', 'M', 'E', 'S', 'S', 'A', 'G', 'E', 'S'}, +} + +func X__get_locale(tls *TLS, cat int32, val uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v cat=%v val=%v, (%v:)", tls, cat, val, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(272) + defer tls.Free(272) + var builtin int32 + var l, n Tsize_t + var map1, new1, p, path, z, v1, v2, v4, v6 uintptr + var v3, v5, v7 bool + var _ /* buf at bp+0 */ [256]uint8 + var _ /* map_size at bp+256 */ Tsize_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = builtin, l, map1, n, new1, p, path, z, v1, v2, v3, v4, v5, v6, v7 + new1 = uintptr(0) + path = uintptr(0) + if !(**(**uint8)(__ccgo_up(val)) != 0) { + v1 = Xgetenv(tls, __ccgo_ts+449) + val = v1 + if v3 = v1 != 0 && **(**uint8)(__ccgo_up(val)) != 0; !v3 { + v2 = Xgetenv(tls, uintptr(unsafe.Pointer(&_envvars))+uintptr(cat)*12) + val = v2 + } + if v5 = v3 || v2 != 0 && **(**uint8)(__ccgo_up(val)) != 0; !v5 { + v4 = Xgetenv(tls, __ccgo_ts+336) + val = v4 + } + if v7 = v5 || v4 != 0 && **(**uint8)(__ccgo_up(val)) != 0; !v7 { + v6 = __ccgo_ts + 456 + val = v6 + } + _ = v7 || v6 != 0 + } + /* Limit name length and forbid leading dot or any slashes. */ + n = uint32(0) + for { + if !(n < uint32(LOCALE_NAME_MAX) && **(**uint8)(__ccgo_up(val + uintptr(n))) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(val + uintptr(n)))) != int32('/')) { + break + } + goto _8 + _8: + ; + n = n + 1 + } + if Int32FromUint8(**(**uint8)(__ccgo_up(val))) == int32('.') || **(**uint8)(__ccgo_up(val + uintptr(n))) != 0 { + val = __ccgo_ts + 456 + } + builtin = BoolInt32(Int32FromUint8(**(**uint8)(__ccgo_up(val))) == int32('C') && !(**(**uint8)(__ccgo_up(val + 1)) != 0) || !(Xstrcmp(tls, val, __ccgo_ts+456) != 0) || !(Xstrcmp(tls, val, __ccgo_ts+464) != 0)) + if builtin != 0 { + if cat == LC_CTYPE && Int32FromUint8(**(**uint8)(__ccgo_up(val + 1))) == int32('.') { + return uintptr(unsafe.Pointer(&X__c_dot_utf8)) + } + return uintptr(0) + } + p = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_loc_head))) + for { + if !(p != 0) { + break + } + if !(Xstrcmp(tls, val, p+8) != 0) { + return p + } + goto _9 + _9: + ; + p = (*t__locale_map)(unsafe.Pointer(p)).Fnext + } + if !(X__libc.Fsecure != 0) { + path = Xgetenv(tls, __ccgo_ts+470) + } + /* FIXME: add a default path? */ + if path != 0 { + for { + if !(**(**uint8)(__ccgo_up(path)) != 0) { + break + } + z = X__strchrnul(tls, path, int32(':')) + l = Uint32FromInt32(int32(z) - int32(path)) + if l >= uint32(256)-n-uint32(2) { + goto _10 + } + _memcpy(tls, bp, path, l) + (**(**[256]uint8)(__ccgo_up(bp)))[l] = uint8('/') + _memcpy(tls, bp+uintptr(l)+uintptr(1), val, n) + (**(**[256]uint8)(__ccgo_up(bp)))[l+uint32(1)+n] = uint8(0) + map1 = X__map_file(tls, bp, bp+256) + if map1 != 0 { + new1 = Xmalloc(tls, uint32(36)) + if !(new1 != 0) { + X__munmap(tls, map1, **(**Tsize_t)(__ccgo_up(bp + 256))) + break + } + (*t__locale_map)(unsafe.Pointer(new1)).Fmap1 = map1 + (*t__locale_map)(unsafe.Pointer(new1)).Fmap_size = **(**Tsize_t)(__ccgo_up(bp + 256)) + _memcpy(tls, new1+8, val, n) + **(**uint8)(__ccgo_up(new1 + 8 + uintptr(n))) = uint8(0) + (*t__locale_map)(unsafe.Pointer(new1)).Fnext = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_loc_head))) + AtomicStorePUintptr(uintptr(unsafe.Pointer(&_loc_head)), new1) + break + } + goto _10 + _10: + ; + path = z + BoolUintptr(!!(**(**uint8)(__ccgo_up(z)) != 0)) + } + } + /* If no locale definition was found, make a locale map + * object anyway to store the name, which is kept for the + * sake of being able to do message translations at the + * application level. */ + if v3 = !(new1 != 0); v3 { + v1 = Xmalloc(tls, uint32(36)) + new1 = v1 + } + if v3 && v1 != 0 { + (*t__locale_map)(unsafe.Pointer(new1)).Fmap1 = X__c_dot_utf8.Fmap1 + (*t__locale_map)(unsafe.Pointer(new1)).Fmap_size = X__c_dot_utf8.Fmap_size + _memcpy(tls, new1+8, val, n) + **(**uint8)(__ccgo_up(new1 + 8 + uintptr(n))) = uint8(0) + (*t__locale_map)(unsafe.Pointer(new1)).Fnext = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_loc_head))) + AtomicStorePUintptr(uintptr(unsafe.Pointer(&_loc_head)), new1) + } + /* For LC_CTYPE, never return a null pointer unless the + * requested name was "C" or "POSIX". */ + if !(new1 != 0) && cat == LC_CTYPE { + new1 = uintptr(unsafe.Pointer(&X__c_dot_utf8)) + } + return new1 +} + +var _loc_head uintptr + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +var _posix_lconv = Tlconv{ + Fdecimal_point: __ccgo_ts + 483, + Fthousands_sep: __ccgo_ts, + Fgrouping: __ccgo_ts, + Fint_curr_symbol: __ccgo_ts, + Fcurrency_symbol: __ccgo_ts, + Fmon_decimal_point: __ccgo_ts, + Fmon_thousands_sep: __ccgo_ts, + Fmon_grouping: __ccgo_ts, + Fpositive_sign: __ccgo_ts, + Fnegative_sign: __ccgo_ts, + Fint_frac_digits: uint8(CHAR_MAX), + Ffrac_digits: uint8(CHAR_MAX), + Fp_cs_precedes: uint8(CHAR_MAX), + Fp_sep_by_space: uint8(CHAR_MAX), + Fn_cs_precedes: uint8(CHAR_MAX), + Fn_sep_by_space: uint8(CHAR_MAX), + Fp_sign_posn: uint8(CHAR_MAX), + Fn_sign_posn: uint8(CHAR_MAX), + Fint_p_cs_precedes: uint8(CHAR_MAX), + Fint_p_sep_by_space: uint8(CHAR_MAX), + Fint_n_cs_precedes: uint8(CHAR_MAX), + Fint_n_sep_by_space: uint8(CHAR_MAX), + Fint_p_sign_posn: uint8(CHAR_MAX), + Fint_n_sign_posn: uint8(CHAR_MAX), +} + +func Xlocaleconv(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(unsafe.Pointer(&_posix_lconv)) +} + +var _default_locale_init_done int32 +var _default_locale t__locale_struct +var _default_ctype_locale t__locale_struct + +func X__loc_is_allocated(tls *TLS, loc Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v loc=%v, (%v:)", tls, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(loc != 0 && loc != uintptr(unsafe.Pointer(&X__c_locale)) && loc != uintptr(unsafe.Pointer(&X__c_dot_utf8_locale)) && loc != uintptr(unsafe.Pointer(&_default_locale)) && loc != uintptr(unsafe.Pointer(&_default_ctype_locale))) +} + +func _do_newlocale(tls *TLS, mask int32, name uintptr, loc Tlocale_t) (r Tlocale_t) { + bp := tls.Alloc(32) + defer tls.Free(32) + var i, i1 int32 + var v2, v3 uintptr + var v5 Tlocale_t + var _ /* tmp at bp+0 */ t__locale_struct + _, _, _, _, _ = i, i1, v2, v3, v5 + i = 0 + for { + if !(i < int32(LC_ALL)) { + break + } + if !(mask&(Int32FromInt32(1)< %v", r) }() + } + ___lock(tls, uintptr(unsafe.Pointer(&X__locale_lock))) + loc = _do_newlocale(tls, mask, name, loc) + ___unlock(tls, uintptr(unsafe.Pointer(&X__locale_lock))) + return loc +} + +func Xnewlocale(tls *TLS, mask int32, name uintptr, loc Tlocale_t) (r Tlocale_t) { + if __ccgo_strace { + trc("tls=%v mask=%v name=%v loc=%v, (%v:)", tls, mask, name, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__newlocale(tls, mask, name, loc) +} + +/* +grammar: + +Start = Expr ';' +Expr = Or | Or '?' Expr ':' Expr +Or = And | Or '||' And +And = Eq | And '&&' Eq +Eq = Rel | Eq '==' Rel | Eq '!=' Rel +Rel = Add | Rel '<=' Add | Rel '>=' Add | Rel '<' Add | Rel '>' Add +Add = Mul | Add '+' Mul | Add '-' Mul +Mul = Prim | Mul '*' Prim | Mul '/' Prim | Mul '%' Prim +Prim = '(' Expr ')' | '!' Prim | decimal | 'n' + +internals: + +recursive descent expression evaluator with stack depth limit. +for binary operators an operator-precedence parser is used. +eval* functions store the result of the parsed subexpression +and return a pointer to the next non-space character. +*/ + +type Tst = struct { + Fr uint32 + Fn uint32 + Fop int32 +} + +func _skipspace(tls *TLS, s uintptr) (r uintptr) { + var v1, v2 int32 + _, _ = v1, v2 + for { + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(s))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _3 + _3: + if !(v2 != 0) { + break + } + s = s + 1 + } + return s +} + +func _evalprim(tls *TLS, st uintptr, s uintptr, d int32) (r uintptr) { + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 int32 + var _ /* e at bp+0 */ uintptr + _ = v1 + d = d - 1 + v1 = d + if v1 < 0 { + return __ccgo_ts + } + s = _skipspace(tls, s) + if BoolInt32(uint32(**(**uint8)(__ccgo_up(s)))-uint32('0') < uint32(10)) != 0 { + (*Tst)(unsafe.Pointer(st)).Fr = Xstrtoul(tls, s, bp, int32(10)) + if **(**uintptr)(__ccgo_up(bp)) == s || (*Tst)(unsafe.Pointer(st)).Fr == Uint32FromInt32(-Int32FromInt32(1)) { + return __ccgo_ts + } + return _skipspace(tls, **(**uintptr)(__ccgo_up(bp))) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('n') { + (*Tst)(unsafe.Pointer(st)).Fr = (*Tst)(unsafe.Pointer(st)).Fn + return _skipspace(tls, s+uintptr(1)) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('(') { + s = _evalexpr(tls, st, s+uintptr(1), d) + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) != int32(')') { + return __ccgo_ts + } + return _skipspace(tls, s+uintptr(1)) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('!') { + s = _evalprim(tls, st, s+uintptr(1), d) + (*Tst)(unsafe.Pointer(st)).Fr = BoolUint32(!((*Tst)(unsafe.Pointer(st)).Fr != 0)) + return s + } + return __ccgo_ts +} + +func _binop(tls *TLS, st uintptr, op int32, left uint32) (r int32) { + var a, b uint32 + _, _ = a, b + a = left + b = (*Tst)(unsafe.Pointer(st)).Fr + switch op { + case 0: + (*Tst)(unsafe.Pointer(st)).Fr = BoolUint32(a != 0 || b != 0) + return 0 + case int32(1): + (*Tst)(unsafe.Pointer(st)).Fr = BoolUint32(a != 0 && b != 0) + return 0 + case int32(2): + (*Tst)(unsafe.Pointer(st)).Fr = BoolUint32(a == b) + return 0 + case int32(3): + (*Tst)(unsafe.Pointer(st)).Fr = BoolUint32(a != b) + return 0 + case int32(4): + (*Tst)(unsafe.Pointer(st)).Fr = BoolUint32(a >= b) + return 0 + case int32(5): + (*Tst)(unsafe.Pointer(st)).Fr = BoolUint32(a <= b) + return 0 + case int32(6): + (*Tst)(unsafe.Pointer(st)).Fr = BoolUint32(a > b) + return 0 + case int32(7): + (*Tst)(unsafe.Pointer(st)).Fr = BoolUint32(a < b) + return 0 + case int32(8): + (*Tst)(unsafe.Pointer(st)).Fr = a + b + return 0 + case int32(9): + (*Tst)(unsafe.Pointer(st)).Fr = a - b + return 0 + case int32(10): + (*Tst)(unsafe.Pointer(st)).Fr = a * b + return 0 + case int32(11): + if b != 0 { + (*Tst)(unsafe.Pointer(st)).Fr = a % b + return 0 + } + return int32(1) + case int32(12): + if b != 0 { + (*Tst)(unsafe.Pointer(st)).Fr = a / b + return 0 + } + return int32(1) + } + return int32(1) +} + +func _parseop(tls *TLS, st uintptr, s uintptr) (r uintptr) { + var i int32 + _ = i + i = 0 + for { + if !(i < int32(11)) { + break + } + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == Int32FromUint8(_opch[i]) { + /* note: >,< are accepted with or without = */ + if i < int32(6) && Int32FromUint8(**(**uint8)(__ccgo_up(s + 1))) == Int32FromUint8(_opch2[i]) { + (*Tst)(unsafe.Pointer(st)).Fop = i + return s + uintptr(2) + } + if i >= int32(4) { + (*Tst)(unsafe.Pointer(st)).Fop = i + int32(2) + return s + uintptr(1) + } + break + } + goto _1 + _1: + ; + i = i + 1 + } + (*Tst)(unsafe.Pointer(st)).Fop = int32(13) + return s +} + +var _opch = [11]uint8{'|', '&', '=', '!', '>', '<', '+', '-', '*', '%', '/'} + +var _opch2 = [6]uint8{'|', '&', '=', '=', '=', '='} + +func _evalbinop(tls *TLS, st uintptr, s uintptr, minprec int32, d int32) (r uintptr) { + var left uint32 + var op int32 + _, _ = left, op + d = d - 1 + s = _evalprim(tls, st, s, d) + s = _parseop(tls, st, s) + for { + /* + st->r (left hand side value) and st->op are now set, + get the right hand side or back out if op has low prec, + if op was missing then prec[op]==0 + */ + op = (*Tst)(unsafe.Pointer(st)).Fop + if Int32FromUint8(_prec[op]) <= minprec { + return s + } + left = (*Tst)(unsafe.Pointer(st)).Fr + s = _evalbinop(tls, st, s, Int32FromUint8(_prec[op]), d) + if _binop(tls, st, op, left) != 0 { + return __ccgo_ts + } + goto _1 + _1: + } + return r +} + +var _prec = [14]uint8{ + 0: uint8(1), + 1: uint8(2), + 2: uint8(3), + 3: uint8(3), + 4: uint8(4), + 5: uint8(4), + 6: uint8(4), + 7: uint8(4), + 8: uint8(5), + 9: uint8(5), + 10: uint8(6), + 11: uint8(6), + 12: uint8(6), +} + +func _evalexpr(tls *TLS, st uintptr, s uintptr, d int32) (r uintptr) { + var a, b, v2 uint32 + var v1 int32 + _, _, _, _ = a, b, v1, v2 + d = d - 1 + v1 = d + if v1 < 0 { + return __ccgo_ts + } + s = _evalbinop(tls, st, s, 0, d) + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) != int32('?') { + return s + } + a = (*Tst)(unsafe.Pointer(st)).Fr + s = _evalexpr(tls, st, s+uintptr(1), d) + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) != int32(':') { + return __ccgo_ts + } + b = (*Tst)(unsafe.Pointer(st)).Fr + s = _evalexpr(tls, st, s+uintptr(1), d) + if a != 0 { + v2 = b + } else { + v2 = (*Tst)(unsafe.Pointer(st)).Fr + } + (*Tst)(unsafe.Pointer(st)).Fr = v2 + return s +} + +func X__pleval(tls *TLS, s uintptr, n uint32) (r uint32) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v, (%v:)", tls, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uint32 + var _ /* st at bp+0 */ Tst + _ = v1 + (**(**Tst)(__ccgo_up(bp))).Fn = n + s = _evalexpr(tls, bp, s, int32(100)) + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32(';') { + v1 = (**(**Tst)(__ccgo_up(bp))).Fr + } else { + v1 = Uint32FromInt32(-Int32FromInt32(1)) + } + return v1 +} + +var _buf1 [144]uint8 + +func Xsetlocale(tls *TLS, cat int32, name uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v cat=%v name=%v, (%v:)", tls, cat, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + var i, same int32 + var l Tsize_t + var lm, lm1, p, part1, ret, s, z, v3 uintptr + var _ /* part at bp+24 */ [24]uint8 + var _ /* tmp_locale at bp+0 */ t__locale_struct + _, _, _, _, _, _, _, _, _, _, _ = i, l, lm, lm1, p, part1, ret, s, same, z, v3 + if Uint32FromInt32(cat) > uint32(LC_ALL) { + return uintptr(0) + } + ___lock(tls, uintptr(unsafe.Pointer(&X__locale_lock))) + /* For LC_ALL, setlocale is required to return a string which + * encodes the current setting for all categories. The format of + * this string is unspecified, and only the following code, which + * performs both the serialization and deserialization, depends + * on the format, so it can easily be changed if needed. */ + if cat == int32(LC_ALL) { + if name != 0 { + **(**[24]uint8)(__ccgo_up(bp + 24)) = [24]uint8{'C', '.', 'U', 'T', 'F', '-', '8'} + p = name + i = 0 + for { + if !(i < int32(LC_ALL)) { + break + } + z = X__strchrnul(tls, p, int32(';')) + if int32(z)-int32(p) <= int32(LOCALE_NAME_MAX) { + _memcpy(tls, bp+24, p, Uint32FromInt32(int32(z)-int32(p))) + (**(**[24]uint8)(__ccgo_up(bp + 24)))[int32(z)-int32(p)] = uint8(0) + if **(**uint8)(__ccgo_up(z)) != 0 { + p = z + uintptr(1) + } + } + lm = X__get_locale(tls, i, bp+24) + if lm == uintptr(-Int32FromInt32(1)) { + ___unlock(tls, uintptr(unsafe.Pointer(&X__locale_lock))) + return uintptr(0) + } + **(**uintptr)(__ccgo_up(bp + uintptr(i)*4)) = lm + goto _1 + _1: + ; + i = i + 1 + } + X__libc.Fglobal_locale = **(**t__locale_struct)(__ccgo_up(bp)) + } + s = uintptr(unsafe.Pointer(&_buf1)) + same = 0 + i = 0 + for { + if !(i < int32(LC_ALL)) { + break + } + lm1 = **(**uintptr)(__ccgo_up(uintptr(unsafe.Pointer(&X__libc)) + 32 + uintptr(i)*4)) + if lm1 == **(**uintptr)(__ccgo_up(uintptr(unsafe.Pointer(&X__libc)) + 32)) { + same = same + 1 + } + if lm1 != 0 { + v3 = lm1 + 8 + } else { + v3 = __ccgo_ts + 447 + } + part1 = v3 + l = _strlen(tls, part1) + _memcpy(tls, s, part1, l) + **(**uint8)(__ccgo_up(s + uintptr(l))) = uint8(';') + s = s + uintptr(l+uint32(1)) + goto _2 + _2: + ; + i = i + 1 + } + s = s - 1 + v3 = s + **(**uint8)(__ccgo_up(v3)) = uint8(0) + ___unlock(tls, uintptr(unsafe.Pointer(&X__locale_lock))) + if same == int32(LC_ALL) { + v3 = part1 + } else { + v3 = uintptr(unsafe.Pointer(&_buf1)) + } + return v3 + } + if name != 0 { + lm = X__get_locale(tls, cat, name) + if lm == uintptr(-Int32FromInt32(1)) { + ___unlock(tls, uintptr(unsafe.Pointer(&X__locale_lock))) + return uintptr(0) + } + **(**uintptr)(__ccgo_up(uintptr(unsafe.Pointer(&X__libc)) + 32 + uintptr(cat)*4)) = lm + } else { + lm = **(**uintptr)(__ccgo_up(uintptr(unsafe.Pointer(&X__libc)) + 32 + uintptr(cat)*4)) + } + if lm != 0 { + v3 = lm + 8 + } else { + v3 = __ccgo_ts + 447 + } + ret = v3 + ___unlock(tls, uintptr(unsafe.Pointer(&X__locale_lock))) + return ret +} + +func X__strcoll_l(tls *TLS, l uintptr, r uintptr, loc Tlocale_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v loc=%v, (%v:)", tls, l, r, loc, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return Xstrcmp(tls, l, r) +} + +func Xstrcoll(tls *TLS, l uintptr, r uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v, (%v:)", tls, l, r, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return X__strcoll_l(tls, l, r, (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale) +} + +func Xstrcoll_l(tls *TLS, l uintptr, r uintptr, loc Tlocale_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v loc=%v, (%v:)", tls, l, r, loc, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return X__strcoll_l(tls, l, r, loc) +} + +func _vstrfmon_l(tls *TLS, s uintptr, n Tsize_t, loc Tlocale_t, fmt uintptr, ap Tva_list) (r Tssize_t) { + bp := tls.Alloc(32) + defer tls.Free(32) + var fill, fw, intl, left, lp, negpar, nogrp, nosym, rp, w int32 + var l Tsize_t + var s0, v5, v6 uintptr + var x float64 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = fill, fw, intl, l, left, lp, negpar, nogrp, nosym, rp, s0, w, x, v5, v6 + s0 = s +_3: + ; + if !(n != 0 && **(**uint8)(__ccgo_up(fmt)) != 0) { + goto _1 + } + if !(Int32FromUint8(**(**uint8)(__ccgo_up(fmt))) != int32('%')) { + goto _4 + } + goto literal +literal: + ; + v5 = s + s = s + 1 + v6 = fmt + fmt = fmt + 1 + **(**uint8)(__ccgo_up(v5)) = **(**uint8)(__ccgo_up(v6)) + n = n - 1 + goto _2 +_4: + ; + fmt = fmt + 1 + if Int32FromUint8(**(**uint8)(__ccgo_up(fmt))) == int32('%') { + goto literal + } + fill = int32(' ') + nogrp = 0 + negpar = 0 + nosym = 0 + left = 0 + for { + switch Int32FromUint8(**(**uint8)(__ccgo_up(fmt))) { + case int32('='): + fmt = fmt + 1 + v5 = fmt + fill = Int32FromUint8(**(**uint8)(__ccgo_up(v5))) + goto _7 + case int32('^'): + nogrp = int32(1) + goto _7 + case int32('('): + negpar = int32(1) + fallthrough + case int32('+'): + goto _7 + case int32('!'): + nosym = int32(1) + goto _7 + case int32('-'): + left = int32(1) + goto _7 + } + break + goto _7 + _7: + ; + fmt = fmt + 1 + } + fw = 0 + for { + if !(BoolInt32(uint32(**(**uint8)(__ccgo_up(fmt)))-uint32('0') < uint32(10)) != 0) { + break + } + fw = int32(10)*fw + (Int32FromUint8(**(**uint8)(__ccgo_up(fmt))) - int32('0')) + goto _9 + _9: + ; + fmt = fmt + 1 + } + lp = 0 + rp = int32(2) + if Int32FromUint8(**(**uint8)(__ccgo_up(fmt))) == int32('#') { + lp = 0 + fmt = fmt + 1 + for { + if !(BoolInt32(uint32(**(**uint8)(__ccgo_up(fmt)))-uint32('0') < uint32(10)) != 0) { + break + } + lp = int32(10)*lp + (Int32FromUint8(**(**uint8)(__ccgo_up(fmt))) - int32('0')) + goto _10 + _10: + ; + fmt = fmt + 1 + } + } + if Int32FromUint8(**(**uint8)(__ccgo_up(fmt))) == int32('.') { + rp = 0 + fmt = fmt + 1 + for { + if !(BoolInt32(uint32(**(**uint8)(__ccgo_up(fmt)))-uint32('0') < uint32(10)) != 0) { + break + } + rp = int32(10)*rp + (Int32FromUint8(**(**uint8)(__ccgo_up(fmt))) - int32('0')) + goto _11 + _11: + ; + fmt = fmt + 1 + } + } + v5 = fmt + fmt = fmt + 1 + intl = BoolInt32(Int32FromUint8(**(**uint8)(__ccgo_up(v5))) == int32('i')) + w = lp + int32(1) + rp + if !(left != 0) && fw > w { + w = fw + } + x = VaFloat64(&ap) + l = Uint32FromInt32(Xsnprintf(tls, s, n, __ccgo_ts+485, VaList(bp+8, w, rp, x))) + if l >= n { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(E2BIG) + return -int32(1) + } + s = s + uintptr(l) + n = n - l + goto _2 +_2: + ; + goto _3 + goto _1 +_1: + ; + return int32(s) - int32(s0) +} + +func Xstrfmon_l(tls *TLS, s uintptr, n Tsize_t, loc Tlocale_t, fmt uintptr, va uintptr) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v loc=%v fmt=%v va=%v, (%v:)", tls, s, n, loc, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret Tssize_t + _, _ = ap, ret + ap = va + ret = _vstrfmon_l(tls, s, n, loc, fmt, ap) + _ = ap + return ret +} + +func Xstrfmon(tls *TLS, s uintptr, n Tsize_t, fmt uintptr, va uintptr) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v fmt=%v va=%v, (%v:)", tls, s, n, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret Tssize_t + _, _ = ap, ret + ap = va + ret = _vstrfmon_l(tls, s, n, (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale, fmt, ap) + _ = ap + return ret +} + +func Xstrtof_l(tls *TLS, s uintptr, p uintptr, l Tlocale_t) (r float32) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v l=%v, (%v:)", tls, s, p, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtof(tls, s, p) +} + +func Xstrtod_l(tls *TLS, s uintptr, p uintptr, l Tlocale_t) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v l=%v, (%v:)", tls, s, p, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtod(tls, s, p) +} + +func Xstrtold_l(tls *TLS, s uintptr, p uintptr, l Tlocale_t) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v l=%v, (%v:)", tls, s, p, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtold(tls, s, p) +} + +func X__strtod_l(tls *TLS, s uintptr, p uintptr, l Tlocale_t) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v l=%v, (%v:)", tls, s, p, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtod_l(tls, s, p, l) +} + +func X__strtof_l(tls *TLS, s uintptr, p uintptr, l Tlocale_t) (r float32) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v l=%v, (%v:)", tls, s, p, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtof_l(tls, s, p, l) +} + +func X__strtold_l(tls *TLS, s uintptr, p uintptr, l Tlocale_t) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v l=%v, (%v:)", tls, s, p, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtold_l(tls, s, p, l) +} + +// C documentation +// +// /* collate only by code points */ +func X__strxfrm_l(tls *TLS, dest uintptr, src uintptr, n Tsize_t, loc Tlocale_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v n=%v loc=%v, (%v:)", tls, dest, src, n, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l Tsize_t + _ = l + l = _strlen(tls, src) + if n > l { + Xstrcpy(tls, dest, src) + } + return l +} + +func Xstrxfrm(tls *TLS, dest uintptr, src uintptr, n Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v n=%v, (%v:)", tls, dest, src, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__strxfrm_l(tls, dest, src, n, (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale) +} + +// C documentation +// +// /* collate only by code points */ +func Xstrxfrm_l(tls *TLS, dest uintptr, src uintptr, n Tsize_t, loc Tlocale_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v n=%v loc=%v, (%v:)", tls, dest, src, n, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__strxfrm_l(tls, dest, src, n, loc) +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +var _current_domain uintptr + +func X__gettextdomain(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 uintptr + _ = v1 + if _current_domain != 0 { + v1 = _current_domain + } else { + v1 = __ccgo_ts + 350 + } + return v1 +} + +func Xtextdomain(tls *TLS, domainname uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v domainname=%v, (%v:)", tls, domainname, origin(2)) + defer func() { trc("-> %v", r) }() + } + var domlen Tsize_t + _ = domlen + if !(domainname != 0) { + return X__gettextdomain(tls) + } + domlen = _strlen(tls, domainname) + if domlen > uint32(NAME_MAX) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(0) + } + if !(_current_domain != 0) { + _current_domain = Xmalloc(tls, Uint32FromInt32(Int32FromInt32(NAME_MAX)+Int32FromInt32(1))) + if !(_current_domain != 0) { + return uintptr(0) + } + } + _memcpy(tls, _current_domain, domainname, domlen+uint32(1)) + return _current_domain +} + +func Xgettext(tls *TLS, msgid uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v msgid=%v, (%v:)", tls, msgid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xdgettext(tls, uintptr(0), msgid) +} + +func Xngettext(tls *TLS, msgid1 uintptr, msgid2 uintptr, n uint32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v msgid1=%v msgid2=%v n=%v, (%v:)", tls, msgid1, msgid2, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xdngettext(tls, uintptr(0), msgid1, msgid2, n) +} + +func X__uselocale(tls *TLS, new1 Tlocale_t) (r Tlocale_t) { + if __ccgo_strace { + trc("tls=%v new1=%v, (%v:)", tls, new1, origin(2)) + defer func() { trc("-> %v", r) }() + } + var global, old, v1 Tlocale_t + var self Tpthread_t + _, _, _, _ = global, old, self, v1 + self = uintptr(___get_tp(tls)) + old = (*t__pthread)(unsafe.Pointer(self)).Flocale + global = uintptr(unsafe.Pointer(&X__libc)) + 32 + if new1 != 0 { + if new1 == uintptr(-Int32FromInt32(1)) { + v1 = global + } else { + v1 = new1 + } + (*t__pthread)(unsafe.Pointer(self)).Flocale = v1 + } + if old == global { + v1 = uintptr(-Int32FromInt32(1)) + } else { + v1 = old + } + return v1 +} + +func Xuselocale(tls *TLS, new1 Tlocale_t) (r Tlocale_t) { + if __ccgo_strace { + trc("tls=%v new1=%v, (%v:)", tls, new1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__uselocale(tls, new1) +} + +// C documentation +// +// /* FIXME: stub */ +func X__wcscoll_l(tls *TLS, l uintptr, r uintptr, locale Tlocale_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v locale=%v, (%v:)", tls, l, r, locale, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return Xwcscmp(tls, l, r) +} + +func Xwcscoll(tls *TLS, l uintptr, r uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v, (%v:)", tls, l, r, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return X__wcscoll_l(tls, l, r, (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale) +} + +// C documentation +// +// /* FIXME: stub */ +func Xwcscoll_l(tls *TLS, l uintptr, r uintptr, locale Tlocale_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v locale=%v, (%v:)", tls, l, r, locale, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return X__wcscoll_l(tls, l, r, locale) +} + +// C documentation +// +// /* collate only by code points */ +func X__wcsxfrm_l(tls *TLS, dest uintptr, src uintptr, n Tsize_t, loc Tlocale_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v n=%v loc=%v, (%v:)", tls, dest, src, n, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l Tsize_t + _ = l + l = Xwcslen(tls, src) + if l < n { + Xwmemcpy(tls, dest, src, l+uint32(1)) + } else { + if n != 0 { + Xwmemcpy(tls, dest, src, n-uint32(1)) + **(**Twchar_t)(__ccgo_up(dest + uintptr(n-uint32(1))*4)) = uint32(0) + } + } + return l +} + +func Xwcsxfrm(tls *TLS, dest uintptr, src uintptr, n Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v n=%v, (%v:)", tls, dest, src, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__wcsxfrm_l(tls, dest, src, n, (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale) +} + +// C documentation +// +// /* collate only by code points */ +func Xwcsxfrm_l(tls *TLS, dest uintptr, src uintptr, n Tsize_t, loc Tlocale_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v n=%v loc=%v, (%v:)", tls, dest, src, n, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__wcsxfrm_l(tls, dest, src, n, loc) +} + +func Xreallocarray(tls *TLS, ptr uintptr, m Tsize_t, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v ptr=%v m=%v n=%v, (%v:)", tls, ptr, m, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + if n != 0 && m > Uint32FromInt32(-Int32FromInt32(1))/n { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOMEM) + return uintptr(0) + } + return Xrealloc(tls, ptr, m*n) +} + +const LDBL_EPSILON2 = 0 +const LDBL_MAX2 = 0 +const LDBL_MIN2 = 0 + +var _C1 = float64(0.0416666666666666) /* 0x3FA55555, 0x5555554C */ +var _C2 = -Float64FromFloat64(0.001388888888887411) /* 0xBF56C16C, 0x16C15177 */ +var _C3 = float64(2.480158728947673e-05) /* 0x3EFA01A0, 0x19CB1590 */ +var _C4 = -Float64FromFloat64(2.7557314351390663e-07) /* 0xBE927E4F, 0x809C52AD */ +var _C5 = float64(2.087572321298175e-09) /* 0x3E21EE9E, 0xBDB4B1C4 */ +var _C6 = -Float64FromFloat64(1.1359647557788195e-11) /* 0xBDA8FAE9, 0xBE8838D4 */ + +func X__cos(tls *TLS, x float64, y float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var hz, r, w, z Tdouble_t + _, _, _, _ = hz, r, w, z + z = Tdouble_t(x * x) + w = Tdouble_t(z * z) + r = Tdouble_t(z*(_C1+float64(z*(_C2+float64(z*_C3))))) + Tdouble_t(Tdouble_t(w*w)*(_C4+float64(z*(_C5+float64(z*_C6))))) + hz = Tdouble_t(float64(0.5) * z) + w = float64(1) - hz + return w + (Float64FromFloat64(1) - w - hz + (Tdouble_t(z*r) - Tdouble_t(x*y))) +} + +// C documentation +// +// /* |cos(x) - c(x)| < 2**-34.1 (~[-5.37e-11, 5.295e-11]). */ + +var _C0 = -Float64FromFloat64(0.499999997251031) /* -0.499999997251031003120 */ +var _C11 = float64(0.04166662332373906) /* 0.0416666233237390631894 */ +var _C21 = -Float64FromFloat64(0.001388676377460993) /* -0.00138867637746099294692 */ +var _C31 = float64(2.439044879627741e-05) /* 0.0000243904487962774090654 */ + +func X__cosdf(tls *TLS, x float64) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, w, z Tdouble_t + _, _, _ = r, w, z + /* Try to optimize for parallel evaluation as in __tandf.c. */ + z = Tdouble_t(x * x) + w = Tdouble_t(z * z) + r = _C21 + float64(z*_C31) + return float32(float64(1) + float64(z*_C0) + float64(w*_C11) + float64(Tdouble_t(w*z)*r)) +} + +// C documentation +// +// /* k is such that k*ln2 has minimal relative error and x - kln2 > log(DBL_MIN) */ +var _k2 = int32(2043) +var _kln22 = float64(1416.0996898839683) + +// C documentation +// +// /* exp(x)/2 for x >= log(DBL_MAX), slightly better than 0.5*exp(x/2)*exp(x/2) */ +func X__expo2(tls *TLS, x float64, sign float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v sign=%v, (%v:)", tls, x, sign, origin(2)) + defer func() { trc("-> %v", r) }() + } + var scale float64 + var v1 Tuint64_t + _, _ = scale, v1 + /* note that k is odd and scale*scale overflows */ + v1 = uint64(Uint32FromInt32(Int32FromInt32(0x3ff)+_k2/Int32FromInt32(2))< log(FLT_MIN) */ +var _k3 = int32(235) +var _kln23 = Float32FromFloat32(162.88958740234375) + +// C documentation +// +// /* expf(x)/2 for x >= log(FLT_MAX), slightly better than 0.5f*expf(x/2)*expf(x/2) */ +func X__expo2f(tls *TLS, x float32, sign float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v sign=%v, (%v:)", tls, x, sign, origin(2)) + defer func() { trc("-> %v", r) }() + } + var scale float32 + var v1 Tuint32_t + _, _ = scale, v1 + /* note that k is odd and scale*scale overflows */ + v1 = Uint32FromInt32(Int32FromInt32(0x7f)+_k3/Int32FromInt32(2)) << int32(23) + scale = *(*float32)(unsafe.Pointer(&v1)) + /* exp(x - k ln2) * 2**(k-1) */ + /* in directed rounding correct sign before rounding or overflow is important */ + return float32(float32(Xexpf(tls, x-_kln23)*float32(sign*scale)) * scale) +} + +func X__fpclassify(tls *TLS, x float64) (r int32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e, v1 int32 + var _ /* u at bp+0 */ struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + } + _, _ = e, v1 + *(*struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + e = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + if !(e != 0) { + if *(*Tuint64_t)(unsafe.Pointer(bp))< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e, v1 int32 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _ = e, v1 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + e = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(23) & uint32(0xff)) + if !(e != 0) { + if *(*Tuint32_t)(unsafe.Pointer(bp))< %v", r) }() + } + return X__fpclassify(tls, x) +} + +const pio2_hi = 0 +const pio2_lo = 0 + +func X__math_divzero(tls *TLS, sign Tuint32_t) (r float64) { + if __ccgo_strace { + trc("tls=%v sign=%v, (%v:)", tls, sign, origin(2)) + defer func() { trc("-> %v", r) }() + } + var y, v1, v2 float64 + _, _, _ = y, v1, v2 + if sign != 0 { + v1 = -Float64FromFloat64(1) + } else { + v1 = float64(1) + } + y = v1 + v2 = y + goto _3 +_3: + return v2 / float64(0) +} + +func X__math_divzerof(tls *TLS, sign Tuint32_t) (r float32) { + if __ccgo_strace { + trc("tls=%v sign=%v, (%v:)", tls, sign, origin(2)) + defer func() { trc("-> %v", r) }() + } + var y, v1, v2 float32 + _, _, _ = y, v1, v2 + if sign != 0 { + v1 = -Float32FromFloat32(1) + } else { + v1 = Float32FromFloat32(1) + } + y = v1 + v2 = y + goto _3 +_3: + return v2 / Float32FromFloat32(0) +} + +func X__math_invalid(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return (x - x) / (x - x) +} + +func X__math_invalidf(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return (x - x) / (x - x) +} + +func X__math_oflow(tls *TLS, sign Tuint32_t) (r float64) { + if __ccgo_strace { + trc("tls=%v sign=%v, (%v:)", tls, sign, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__math_xflow(tls, sign, float64(3.105036184601418e+231)) +} + +func X__math_oflowf(tls *TLS, sign Tuint32_t) (r float32) { + if __ccgo_strace { + trc("tls=%v sign=%v, (%v:)", tls, sign, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__math_xflowf(tls, sign, Float32FromFloat32(1.5845632502852868e+29)) +} + +func X__math_uflow(tls *TLS, sign Tuint32_t) (r float64) { + if __ccgo_strace { + trc("tls=%v sign=%v, (%v:)", tls, sign, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__math_xflow(tls, sign, float64(1.2882297539194267e-231)) +} + +func X__math_uflowf(tls *TLS, sign Tuint32_t) (r float32) { + if __ccgo_strace { + trc("tls=%v sign=%v, (%v:)", tls, sign, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__math_xflowf(tls, sign, Float32FromFloat32(2.524354896707238e-29)) +} + +func X__math_xflow(tls *TLS, sign Tuint32_t, y2 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v sign=%v y2=%v, (%v:)", tls, sign, y2, origin(2)) + defer func() { trc("-> %v", r) }() + } + var y, y1, v1, v2, v4 float64 + _, _, _, _, _ = y, y1, v1, v2, v4 + if sign != 0 { + v1 = -y2 + } else { + v1 = y2 + } + y1 = v1 + v2 = y1 + goto _3 +_3: + y = float64(v2 * y2) + v4 = y + goto _5 +_5: + return v4 +} + +func X__math_xflowf(tls *TLS, sign Tuint32_t, y2 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v sign=%v y2=%v, (%v:)", tls, sign, y2, origin(2)) + defer func() { trc("-> %v", r) }() + } + var y, y1, v1, v2, v4 float32 + _, _, _, _, _ = y, y1, v1, v2, v4 + if sign != 0 { + v1 = -y2 + } else { + v1 = y2 + } + y1 = v1 + v2 = y1 + goto _3 +_3: + y = float32(v2 * y2) + v4 = y + goto _5 +_5: + return v4 +} + +const DBL_EPSILON1 = 2.220446049250313e-16 +const EPS = 0 + +// C documentation +// +// /* +// * invpio2: 53 bits of 2/pi +// * pio2_1: first 33 bit of pi/2 +// * pio2_1t: pi/2 - pio2_1 +// * pio2_2: second 33 bit of pi/2 +// * pio2_2t: pi/2 - (pio2_1+pio2_2) +// * pio2_3: third 33 bit of pi/2 +// * pio2_3t: pi/2 - (pio2_1+pio2_2+pio2_3) +// */ + +var _toint = Float64FromFloat64(1.5) / Float64FromFloat64(2.220446049250313e-16) +var _pio4 = float64(0.7853981633974483) +var _invpio2 = float64(0.6366197723675814) /* 0x3FE45F30, 0x6DC9C883 */ +var _pio2_1 = float64(1.5707963267341256) /* 0x3FF921FB, 0x54400000 */ +var _pio2_1t = float64(6.077100506506192e-11) /* 0x3DD0B461, 0x1A626331 */ +var _pio2_2 = float64(6.077100506303966e-11) /* 0x3DD0B461, 0x1A600000 */ +var _pio2_2t = float64(2.0222662487959506e-21) /* 0x3BA3198A, 0x2E037073 */ +var _pio2_3 = float64(2.0222662487111665e-21) /* 0x3BA3198A, 0x2E000000 */ +var _pio2_3t = float64(8.4784276603689e-32) /* 0x397B839A, 0x252049C1 */ + +// C documentation +// +// /* caller must handle the case when reduction is not needed: |x| ~<= pi/4 */ +func X__rem_pio2(tls *TLS, x float64, y uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + var ex, ey, i, n, sign int32 + var fn, r, t, w, z Tdouble_t + var ix Tuint32_t + var v2 float64 + var _ /* tx at bp+8 */ [3]float64 + var _ /* ty at bp+32 */ [2]float64 + var _ /* u at bp+0 */ struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _, _, _, _, _, _ = ex, ey, fn, i, ix, n, r, sign, t, w, z, v2 + *(*struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + sign = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(63)) + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32) & uint64(0x7fffffff)) + if ix <= uint32(0x400f6a7a) { /* |x| ~<= 5pi/4 */ + if ix&uint32(0xfffff) == uint32(0x921fb) { /* |x| ~= pi/2 or 2pi/2 */ + goto medium + } /* cancellation -- use medium case */ + if ix <= uint32(0x4002d97c) { /* |x| ~<= 3pi/4 */ + if !(sign != 0) { + z = x - _pio2_1 /* one round good to 85 bits */ + **(**float64)(__ccgo_up(y)) = z - _pio2_1t + **(**float64)(__ccgo_up(y + 1*8)) = z - **(**float64)(__ccgo_up(y)) - _pio2_1t + return int32(1) + } else { + z = x + _pio2_1 + **(**float64)(__ccgo_up(y)) = z + _pio2_1t + **(**float64)(__ccgo_up(y + 1*8)) = z - **(**float64)(__ccgo_up(y)) + _pio2_1t + return -int32(1) + } + } else { + if !(sign != 0) { + z = x - float64(Float64FromInt32(2)*_pio2_1) + **(**float64)(__ccgo_up(y)) = z - Tdouble_t(Float64FromInt32(2)*_pio2_1t) + **(**float64)(__ccgo_up(y + 1*8)) = z - **(**float64)(__ccgo_up(y)) - Tdouble_t(Float64FromInt32(2)*_pio2_1t) + return int32(2) + } else { + z = x + float64(Float64FromInt32(2)*_pio2_1) + **(**float64)(__ccgo_up(y)) = z + Tdouble_t(Float64FromInt32(2)*_pio2_1t) + **(**float64)(__ccgo_up(y + 1*8)) = z - **(**float64)(__ccgo_up(y)) + Tdouble_t(Float64FromInt32(2)*_pio2_1t) + return -int32(2) + } + } + } + if ix <= uint32(0x401c463b) { /* |x| ~<= 9pi/4 */ + if ix <= uint32(0x4015fdbc) { /* |x| ~<= 7pi/4 */ + if ix == uint32(0x4012d97c) { /* |x| ~= 3pi/2 */ + goto medium + } + if !(sign != 0) { + z = x - float64(Float64FromInt32(3)*_pio2_1) + **(**float64)(__ccgo_up(y)) = z - Tdouble_t(Float64FromInt32(3)*_pio2_1t) + **(**float64)(__ccgo_up(y + 1*8)) = z - **(**float64)(__ccgo_up(y)) - Tdouble_t(Float64FromInt32(3)*_pio2_1t) + return int32(3) + } else { + z = x + float64(Float64FromInt32(3)*_pio2_1) + **(**float64)(__ccgo_up(y)) = z + Tdouble_t(Float64FromInt32(3)*_pio2_1t) + **(**float64)(__ccgo_up(y + 1*8)) = z - **(**float64)(__ccgo_up(y)) + Tdouble_t(Float64FromInt32(3)*_pio2_1t) + return -int32(3) + } + } else { + if ix == uint32(0x401921fb) { /* |x| ~= 4pi/2 */ + goto medium + } + if !(sign != 0) { + z = x - float64(Float64FromInt32(4)*_pio2_1) + **(**float64)(__ccgo_up(y)) = z - Tdouble_t(Float64FromInt32(4)*_pio2_1t) + **(**float64)(__ccgo_up(y + 1*8)) = z - **(**float64)(__ccgo_up(y)) - Tdouble_t(Float64FromInt32(4)*_pio2_1t) + return int32(4) + } else { + z = x + float64(Float64FromInt32(4)*_pio2_1) + **(**float64)(__ccgo_up(y)) = z + Tdouble_t(Float64FromInt32(4)*_pio2_1t) + **(**float64)(__ccgo_up(y + 1*8)) = z - **(**float64)(__ccgo_up(y)) + Tdouble_t(Float64FromInt32(4)*_pio2_1t) + return -int32(4) + } + } + } + if !(ix < uint32(0x413921fb)) { + goto _1 + } /* |x| ~< 2^20*(pi/2), medium size */ + goto medium +medium: + ; + /* rint(x/(pi/2)) */ + fn = Tdouble_t(x*_invpio2) + _toint - _toint + n = int32(fn) + r = x - float64(fn*_pio2_1) + w = Tdouble_t(fn * _pio2_1t) /* 1st round, good to 85 bits */ + /* Matters with directed rounding. */ + if r-w < -_pio4 { + n = n - 1 + fn = fn - 1 + r = x - float64(fn*_pio2_1) + w = Tdouble_t(fn * _pio2_1t) + } else { + if r-w > _pio4 { + n = n + 1 + fn = fn + 1 + r = x - float64(fn*_pio2_1) + w = Tdouble_t(fn * _pio2_1t) + } + } + **(**float64)(__ccgo_up(y)) = r - w + *(*float64)(unsafe.Pointer(bp)) = **(**float64)(__ccgo_up(y)) + ey = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + ex = Int32FromUint32(ix >> int32(20)) + if ex-ey > int32(16) { /* 2nd round, good to 118 bits */ + t = r + w = Tdouble_t(fn * _pio2_2) + r = t - w + w = Tdouble_t(fn*_pio2_2t) - (t - r - w) + **(**float64)(__ccgo_up(y)) = r - w + *(*float64)(unsafe.Pointer(bp)) = **(**float64)(__ccgo_up(y)) + ey = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + if ex-ey > int32(49) { /* 3rd round, good to 151 bits, covers all cases */ + t = r + w = Tdouble_t(fn * _pio2_3) + r = t - w + w = Tdouble_t(fn*_pio2_3t) - (t - r - w) + **(**float64)(__ccgo_up(y)) = r - w + } + } + **(**float64)(__ccgo_up(y + 1*8)) = r - **(**float64)(__ccgo_up(y)) - w + return n +_1: + ; + /* + * all other (large) arguments + */ + if ix >= uint32(0x7ff00000) { /* x is inf or NaN */ + v2 = x - x + **(**float64)(__ccgo_up(y + 1*8)) = v2 + **(**float64)(__ccgo_up(y)) = v2 + return 0 + } + /* set z = scalbn(|x|,-ilogb(x)+23) */ + *(*float64)(unsafe.Pointer(bp)) = x + *(*Tuint64_t)(unsafe.Pointer(bp)) &= Uint64FromInt32(-Int32FromInt32(1)) >> Int32FromInt32(12) + *(*Tuint64_t)(unsafe.Pointer(bp)) |= Uint64FromInt32(Int32FromInt32(0x3ff)+Int32FromInt32(23)) << Int32FromInt32(52) + z = *(*float64)(unsafe.Pointer(bp)) + i = 0 + for { + if !(i < int32(2)) { + break + } + (**(**[3]float64)(__ccgo_up(bp + 8)))[i] = float64(int32(z)) + z = Tdouble_t((z - (**(**[3]float64)(__ccgo_up(bp + 8)))[i]) * float64(1.6777216e+07)) + goto _3 + _3: + ; + i = i + 1 + } + (**(**[3]float64)(__ccgo_up(bp + 8)))[i] = z + /* skip zero terms, first term is non-zero */ + for (**(**[3]float64)(__ccgo_up(bp + 8)))[i] == float64(0) { + i = i - 1 + } + n = X__rem_pio2_large(tls, bp+8, bp+32, Int32FromUint32(ix>>Int32FromInt32(20))-(Int32FromInt32(0x3ff)+Int32FromInt32(23)), i+int32(1), int32(1)) + if sign != 0 { + **(**float64)(__ccgo_up(y)) = -(**(**[2]float64)(__ccgo_up(bp + 32)))[0] + **(**float64)(__ccgo_up(y + 1*8)) = -(**(**[2]float64)(__ccgo_up(bp + 32)))[int32(1)] + return -n + } + **(**float64)(__ccgo_up(y)) = (**(**[2]float64)(__ccgo_up(bp + 32)))[0] + **(**float64)(__ccgo_up(y + 1*8)) = (**(**[2]float64)(__ccgo_up(bp + 32)))[int32(1)] + return n +} + +const DBL_EPSILON2 = 0 + +var _init_jk = [4]int32{ + 0: int32(3), + 1: int32(4), + 2: int32(4), + 3: int32(6), +} /* initial value for jk */ + +// C documentation +// +// /* +// * Table of constants for 2/pi, 396 Hex digits (476 decimal) of 2/pi +// * +// * integer array, contains the (24*i)-th to (24*i+23)-th +// * bit of 2/pi after binary point. The corresponding +// * floating value is +// * +// * ipio2[i] * 2^(-24(i+1)). +// * +// * NB: This table must have at least (e0-3)/24 + jk terms. +// * For quad precision (e0 <= 16360, jk = 6), this is 686. +// */ +var _ipio2 = [66]Tint32_t{ + 0: int32(0xA2F983), + 1: int32(0x6E4E44), + 2: int32(0x1529FC), + 3: int32(0x2757D1), + 4: int32(0xF534DD), + 5: int32(0xC0DB62), + 6: int32(0x95993C), + 7: int32(0x439041), + 8: int32(0xFE5163), + 9: int32(0xABDEBB), + 10: int32(0xC561B7), + 11: int32(0x246E3A), + 12: int32(0x424DD2), + 13: int32(0xE00649), + 14: int32(0x2EEA09), + 15: int32(0xD1921C), + 16: int32(0xFE1DEB), + 17: int32(0x1CB129), + 18: int32(0xA73EE8), + 19: int32(0x8235F5), + 20: int32(0x2EBB44), + 21: int32(0x84E99C), + 22: int32(0x7026B4), + 23: int32(0x5F7E41), + 24: int32(0x3991D6), + 25: int32(0x398353), + 26: int32(0x39F49C), + 27: int32(0x845F8B), + 28: int32(0xBDF928), + 29: int32(0x3B1FF8), + 30: int32(0x97FFDE), + 31: int32(0x05980F), + 32: int32(0xEF2F11), + 33: int32(0x8B5A0A), + 34: int32(0x6D1F6D), + 35: int32(0x367ECF), + 36: int32(0x27CB09), + 37: int32(0xB74F46), + 38: int32(0x3F669E), + 39: int32(0x5FEA2D), + 40: int32(0x7527BA), + 41: int32(0xC7EBE5), + 42: int32(0xF17B3D), + 43: int32(0x0739F7), + 44: int32(0x8A5292), + 45: int32(0xEA6BFB), + 46: int32(0x5FB11F), + 47: int32(0x8D5D08), + 48: int32(0x560330), + 49: int32(0x46FC7B), + 50: int32(0x6BABF0), + 51: int32(0xCFBC20), + 52: int32(0x9AF436), + 53: int32(0x1DA9E3), + 54: int32(0x91615E), + 55: int32(0xE61B08), + 56: int32(0x659985), + 57: int32(0x5F14A0), + 58: int32(0x68408D), + 59: int32(0xFFD880), + 60: int32(0x4D7327), + 61: int32(0x310606), + 62: int32(0x1556CA), + 63: int32(0x73A8C9), + 64: int32(0x60E27B), + 65: int32(0xC08C6B), +} + +var _PIo2 = [8]float64{ + 0: float64(1.570796251296997), + 1: float64(7.549789415861596e-08), + 2: float64(5.390302529957765e-15), + 3: float64(3.282003415807913e-22), + 4: float64(1.270655753080676e-29), + 5: float64(1.2293330898111133e-36), + 6: float64(2.7337005381646456e-44), + 7: float64(2.1674168387780482e-51), +} + +func X__rem_pio2_large(tls *TLS, x uintptr, y uintptr, e0 int32, nx int32, prec int32) (r int32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v e0=%v nx=%v prec=%v, (%v:)", tls, x, y, e0, nx, prec, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(240) + defer tls.Free(240) + var carry, i, ih, j, jk, jp, jv, jx, jz, k, m, n, q0 Tint32_t + var f, q [20]float64 + var fw, z, v2 float64 + var _ /* fq at bp+80 */ [20]float64 + var _ /* iq at bp+0 */ [20]Tint32_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = carry, f, fw, i, ih, j, jk, jp, jv, jx, jz, k, m, n, q, q0, z, v2 + /* initialize jk*/ + jk = _init_jk[prec] + jp = jk + /* determine jx,jv,q0, note that 3>q0 */ + jx = nx - int32(1) + jv = (e0 - int32(3)) / int32(24) + if jv < 0 { + jv = 0 + } + q0 = e0 - int32(24)*(jv+int32(1)) + /* set up f[0] to f[jx+jk] where f[jx+jk] = ipio2[jv+jk] */ + j = jv - jx + m = jx + jk + i = 0 + for { + if !(i <= m) { + break + } + if j < 0 { + v2 = float64(0) + } else { + v2 = float64(_ipio2[j]) + } + f[i] = v2 + goto _1 + _1: + ; + i = i + 1 + j = j + 1 + } + /* compute q[0],q[1],...q[jk] */ + i = 0 + for { + if !(i <= jk) { + break + } + j = 0 + fw = Float64FromFloat64(0) + for { + if !(j <= jx) { + break + } + fw = fw + float64(**(**float64)(__ccgo_up(x + uintptr(j)*8))*f[jx+i-j]) + goto _4 + _4: + ; + j = j + 1 + } + q[i] = fw + goto _3 + _3: + ; + i = i + 1 + } + jz = jk + goto recompute +recompute: + ; + /* distill q[] into iq[] reversingly */ + i = 0 + j = jz + z = q[jz] + for { + if !(j > 0) { + break + } + fw = float64(int32(float64(Float64FromFloat64(5.960464477539063e-08) * z))) + (**(**[20]Tint32_t)(__ccgo_up(bp)))[i] = int32(z - float64(Float64FromFloat64(1.6777216e+07)*fw)) + z = q[j-int32(1)] + fw + goto _5 + _5: + ; + i = i + 1 + j = j - 1 + } + /* compute n */ + z = Xscalbn(tls, z, q0) /* actual value of z */ + z = z - float64(float64(8)*Xfloor(tls, float64(z*float64(0.125)))) /* trim off integer >= 8 */ + n = int32(z) + z = z - float64(n) + ih = 0 + if q0 > 0 { /* need iq[jz-1] to determine n */ + i = (**(**[20]Tint32_t)(__ccgo_up(bp)))[jz-int32(1)] >> (int32(24) - q0) + n = n + i + **(**Tint32_t)(__ccgo_up(bp + uintptr(jz-int32(1))*4)) -= i << (int32(24) - q0) + ih = (**(**[20]Tint32_t)(__ccgo_up(bp)))[jz-int32(1)] >> (int32(23) - q0) + } else { + if q0 == 0 { + ih = (**(**[20]Tint32_t)(__ccgo_up(bp)))[jz-int32(1)] >> int32(23) + } else { + if z >= float64(0.5) { + ih = int32(2) + } + } + } + if ih > 0 { /* q > 0.5 */ + n = n + int32(1) + carry = 0 + i = 0 + for { + if !(i < jz) { + break + } /* compute 1-q */ + j = (**(**[20]Tint32_t)(__ccgo_up(bp)))[i] + if carry == 0 { + if j != 0 { + carry = int32(1) + (**(**[20]Tint32_t)(__ccgo_up(bp)))[i] = int32(0x1000000) - j + } + } else { + (**(**[20]Tint32_t)(__ccgo_up(bp)))[i] = int32(0xffffff) - j + } + goto _6 + _6: + ; + i = i + 1 + } + if q0 > 0 { /* rare case: chance is 1 in 12 */ + switch q0 { + case int32(1): + **(**Tint32_t)(__ccgo_up(bp + uintptr(jz-int32(1))*4)) &= int32(0x7fffff) + case int32(2): + **(**Tint32_t)(__ccgo_up(bp + uintptr(jz-int32(1))*4)) &= int32(0x3fffff) + break + } + } + if ih == int32(2) { + z = float64(1) - z + if carry != 0 { + z = z - Xscalbn(tls, float64(1), q0) + } + } + } + /* check if recomputation is needed */ + if z == float64(0) { + j = 0 + i = jz - int32(1) + for { + if !(i >= jk) { + break + } + j = j | (**(**[20]Tint32_t)(__ccgo_up(bp)))[i] + goto _7 + _7: + ; + i = i - 1 + } + if j == 0 { /* need recomputation */ + k = int32(1) + for { + if !((**(**[20]Tint32_t)(__ccgo_up(bp)))[jk-k] == 0) { + break + } + goto _8 + _8: + ; + k = k + 1 + } /* k = no. of terms needed */ + i = jz + int32(1) + for { + if !(i <= jz+k) { + break + } /* add q[jz+1] to q[jz+k] */ + f[jx+i] = float64(_ipio2[jv+i]) + j = 0 + fw = Float64FromFloat64(0) + for { + if !(j <= jx) { + break + } + fw = fw + float64(**(**float64)(__ccgo_up(x + uintptr(j)*8))*f[jx+i-j]) + goto _10 + _10: + ; + j = j + 1 + } + q[i] = fw + goto _9 + _9: + ; + i = i + 1 + } + jz = jz + k + goto recompute + } + } + /* chop off zero terms */ + if z == float64(0) { + jz = jz - int32(1) + q0 = q0 - int32(24) + for (**(**[20]Tint32_t)(__ccgo_up(bp)))[jz] == 0 { + jz = jz - 1 + q0 = q0 - int32(24) + } + } else { /* break z into 24-bit if necessary */ + z = Xscalbn(tls, z, -q0) + if z >= float64(1.6777216e+07) { + fw = float64(int32(float64(Float64FromFloat64(5.960464477539063e-08) * z))) + (**(**[20]Tint32_t)(__ccgo_up(bp)))[jz] = int32(z - float64(Float64FromFloat64(1.6777216e+07)*fw)) + jz = jz + int32(1) + q0 = q0 + int32(24) + (**(**[20]Tint32_t)(__ccgo_up(bp)))[jz] = int32(fw) + } else { + (**(**[20]Tint32_t)(__ccgo_up(bp)))[jz] = int32(z) + } + } + /* convert integer "bit" chunk to floating-point value */ + fw = Xscalbn(tls, float64(1), q0) + i = jz + for { + if !(i >= 0) { + break + } + q[i] = float64(fw * float64((**(**[20]Tint32_t)(__ccgo_up(bp)))[i])) + fw = fw * float64(5.960464477539063e-08) + goto _11 + _11: + ; + i = i - 1 + } + /* compute PIo2[0,...,jp]*q[jz,...,0] */ + i = jz + for { + if !(i >= 0) { + break + } + fw = float64(0) + k = Int32FromInt32(0) + for { + if !(k <= jp && k <= jz-i) { + break + } + fw = fw + float64(_PIo2[k]*q[i+k]) + goto _13 + _13: + ; + k = k + 1 + } + (**(**[20]float64)(__ccgo_up(bp + 80)))[jz-i] = fw + goto _12 + _12: + ; + i = i - 1 + } + /* compress fq[] into y[] */ + switch prec { + case 0: + goto _14 + case int32(2): + goto _15 + case int32(1): + goto _16 + case int32(3): + goto _17 + } + goto _18 +_14: + ; + fw = float64(0) + i = jz + for { + if !(i >= 0) { + break + } + fw = fw + (**(**[20]float64)(__ccgo_up(bp + 80)))[i] + goto _19 + _19: + ; + i = i - 1 + } + if ih == 0 { + v2 = fw + } else { + v2 = -fw + } + **(**float64)(__ccgo_up(y)) = v2 + goto _18 +_16: + ; +_15: + ; + fw = float64(0) + i = jz + for { + if !(i >= 0) { + break + } + fw = fw + (**(**[20]float64)(__ccgo_up(bp + 80)))[i] + goto _21 + _21: + ; + i = i - 1 + } + // TODO: drop excess precision here once double_t is used + fw = fw + if ih == 0 { + v2 = fw + } else { + v2 = -fw + } + **(**float64)(__ccgo_up(y)) = v2 + fw = (**(**[20]float64)(__ccgo_up(bp + 80)))[0] - fw + i = int32(1) + for { + if !(i <= jz) { + break + } + fw = fw + (**(**[20]float64)(__ccgo_up(bp + 80)))[i] + goto _23 + _23: + ; + i = i + 1 + } + if ih == 0 { + v2 = fw + } else { + v2 = -fw + } + **(**float64)(__ccgo_up(y + 1*8)) = v2 + goto _18 +_17: + ; /* painful */ + i = jz +_27: + ; + if !(i > 0) { + goto _25 + } + fw = (**(**[20]float64)(__ccgo_up(bp + 80)))[i-int32(1)] + (**(**[20]float64)(__ccgo_up(bp + 80)))[i] + **(**float64)(__ccgo_up(bp + 80 + uintptr(i)*8)) += (**(**[20]float64)(__ccgo_up(bp + 80)))[i-int32(1)] - fw + (**(**[20]float64)(__ccgo_up(bp + 80)))[i-int32(1)] = fw + goto _26 +_26: + ; + i = i - 1 + goto _27 + goto _25 +_25: + ; + i = jz + for { + if !(i > int32(1)) { + break + } + fw = (**(**[20]float64)(__ccgo_up(bp + 80)))[i-int32(1)] + (**(**[20]float64)(__ccgo_up(bp + 80)))[i] + **(**float64)(__ccgo_up(bp + 80 + uintptr(i)*8)) += (**(**[20]float64)(__ccgo_up(bp + 80)))[i-int32(1)] - fw + (**(**[20]float64)(__ccgo_up(bp + 80)))[i-int32(1)] = fw + goto _28 + _28: + ; + i = i - 1 + } + fw = float64(0) + i = jz + for { + if !(i >= int32(2)) { + break + } + fw = fw + (**(**[20]float64)(__ccgo_up(bp + 80)))[i] + goto _29 + _29: + ; + i = i - 1 + } + if ih == 0 { + **(**float64)(__ccgo_up(y)) = (**(**[20]float64)(__ccgo_up(bp + 80)))[0] + **(**float64)(__ccgo_up(y + 1*8)) = (**(**[20]float64)(__ccgo_up(bp + 80)))[int32(1)] + **(**float64)(__ccgo_up(y + 2*8)) = fw + } else { + **(**float64)(__ccgo_up(y)) = -(**(**[20]float64)(__ccgo_up(bp + 80)))[0] + **(**float64)(__ccgo_up(y + 1*8)) = -(**(**[20]float64)(__ccgo_up(bp + 80)))[int32(1)] + **(**float64)(__ccgo_up(y + 2*8)) = -fw + } +_18: + ; + return n & int32(7) +} + +const DBL_EPSILON3 = 2.220446049250313e-16 + +// C documentation +// +// /* +// * invpio2: 53 bits of 2/pi +// * pio2_1: first 25 bits of pi/2 +// * pio2_1t: pi/2 - pio2_1 +// */ + +var _toint1 = Float64FromFloat64(1.5) / Float64FromFloat64(2.220446049250313e-16) +var _pio41 = float64(0.7853981852531433) +var _invpio21 = float64(0.6366197723675814) /* 0x3FE45F30, 0x6DC9C883 */ +var _pio2_11 = float64(1.5707963109016418) /* 0x3FF921FB, 0x50000000 */ +var _pio2_1t1 = float64(1.5893254773528196e-08) /* 0x3E5110b4, 0x611A6263 */ + +func X__rem_pio2f(tls *TLS, x float32, y uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var e0, n, sign int32 + var fn Tdouble_t + var ix Tuint32_t + var _ /* tx at bp+8 */ [1]float64 + var _ /* ty at bp+16 */ [1]float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _ = e0, fn, ix, n, sign + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + ix = *(*Tuint32_t)(unsafe.Pointer(bp)) & uint32(0x7fffffff) + /* 25+53 bit pi is good enough for medium size */ + if ix < uint32(0x4dc90fdb) { /* |x| ~< 2^28*(pi/2), medium size */ + /* Use a specialized rint() to get fn. */ + fn = Tdouble_t(float64(x)*_invpio21) + _toint1 - _toint1 + n = int32(fn) + **(**float64)(__ccgo_up(y)) = float64(x) - Tdouble_t(fn*_pio2_11) - Tdouble_t(fn*_pio2_1t1) + /* Matters with directed rounding. */ + if **(**float64)(__ccgo_up(y)) < -_pio41 { + n = n - 1 + fn = fn - 1 + **(**float64)(__ccgo_up(y)) = float64(x) - Tdouble_t(fn*_pio2_11) - Tdouble_t(fn*_pio2_1t1) + } else { + if **(**float64)(__ccgo_up(y)) > _pio41 { + n = n + 1 + fn = fn + 1 + **(**float64)(__ccgo_up(y)) = float64(x) - Tdouble_t(fn*_pio2_11) - Tdouble_t(fn*_pio2_1t1) + } + } + return n + } + if ix >= uint32(0x7f800000) { /* x is inf or NaN */ + **(**float64)(__ccgo_up(y)) = float64(x - x) + return 0 + } + /* scale x into [2^23, 2^24-1] */ + sign = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(31)) + e0 = Int32FromUint32(ix>>Int32FromInt32(23) - Uint32FromInt32(Int32FromInt32(0x7f)+Int32FromInt32(23))) /* e0 = ilogb(|x|)-23, positive */ + *(*Tuint32_t)(unsafe.Pointer(bp)) = ix - Uint32FromInt32(e0< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* y at bp+0 */ struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Fd float64 + } + *(*struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Fd float64 + })(unsafe.Pointer(bp)) = struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Fd float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + return Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(63)) +} + +// C documentation +// +// // FIXME: macro in math.h +func X__signbitf(tls *TLS, x float32) (r int32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* y at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + return Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(31)) +} + +func X__signbitl(tls *TLS, x float64) (r int32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__signbit(tls, x) +} + +var _S1 = -Float64FromFloat64(0.16666666666666632) /* 0xBFC55555, 0x55555549 */ +var _S2 = float64(0.00833333333332249) /* 0x3F811111, 0x1110F8A6 */ +var _S3 = -Float64FromFloat64(0.0001984126982985795) /* 0xBF2A01A0, 0x19C161D5 */ +var _S4 = float64(2.7557313707070068e-06) /* 0x3EC71DE3, 0x57B1FE7D */ +var _S5 = -Float64FromFloat64(2.5050760253406863e-08) /* 0xBE5AE5E6, 0x8A2B9CEB */ +var _S6 = float64(1.58969099521155e-10) /* 0x3DE5D93A, 0x5ACFD57C */ + +func X__sin(tls *TLS, x float64, y float64, iy int32) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v iy=%v, (%v:)", tls, x, y, iy, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v, w, z Tdouble_t + _, _, _, _ = r, v, w, z + z = Tdouble_t(x * x) + w = Tdouble_t(z * z) + r = _S2 + float64(z*(_S3+float64(z*_S4))) + float64(Tdouble_t(z*w)*(_S5+float64(z*_S6))) + v = Tdouble_t(z * x) + if iy == 0 { + return x + float64(v*(_S1+float64(z*r))) + } else { + return x - (Tdouble_t(z*(float64(Float64FromFloat64(0.5)*y)-float64(v*r))) - y - Tdouble_t(v*_S1)) + } + return r1 +} + +// C documentation +// +// /* |sin(x)/x - s(x)| < 2**-37.5 (~[-4.89e-12, 4.824e-12]). */ + +var _S11 = -Float64FromFloat64(0.16666666641626524) /* -0.166666666416265235595 */ +var _S21 = float64(0.008333329385889463) /* 0.0083333293858894631756 */ +var _S31 = -Float64FromFloat64(0.00019839334836096632) /* -0.000198393348360966317347 */ +var _S41 = float64(2.718311493989822e-06) /* 0.0000027183114939898219064 */ + +func X__sindf(tls *TLS, x float64) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, s, w, z Tdouble_t + _, _, _, _ = r, s, w, z + /* Try to optimize for parallel evaluation as in __tandf.c. */ + z = Tdouble_t(x * x) + w = Tdouble_t(z * z) + r = _S31 + float64(z*_S41) + s = Tdouble_t(z * x) + return float32(x + float64(s*(_S11+float64(z*_S21))) + float64(Tdouble_t(s*w)*r)) +} + +var _T = [13]float64{ + 0: float64(0.3333333333333341), + 1: float64(0.13333333333320124), + 2: float64(0.05396825397622605), + 3: float64(0.021869488294859542), + 4: float64(0.0088632398235993), + 5: float64(0.0035920791075913124), + 6: float64(0.0014562094543252903), + 7: float64(0.0005880412408202641), + 8: float64(0.0002464631348184699), + 9: float64(7.817944429395571e-05), + 10: float64(7.140724913826082e-05), + 11: -Float64FromFloat64(1.8558637485527546e-05), + 12: float64(2.590730518636337e-05), +} +var _pio42 = float64(0.7853981633974483) /* 3FE921FB, 54442D18 */ +var _pio4lo = float64(3.061616997868383e-17) /* 3C81A626, 33145C07 */ + +func X__tan(tls *TLS, x float64, y float64, odd int32) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v odd=%v, (%v:)", tls, x, y, odd, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var a, r, s, v, w, z, v1 Tdouble_t + var a0, w0 float64 + var big, sign int32 + var hx Tuint32_t + var v2 Tuint64_t + _, _, _, _, _, _, _, _, _, _, _, _, _ = a, a0, big, hx, r, s, sign, v, w, w0, z, v1, v2 + hx = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + big = BoolInt32(hx&uint32(0x7fffffff) >= uint32(0x3FE59428)) /* |x| >= 0.6744 */ + if big != 0 { + sign = Int32FromUint32(hx >> int32(31)) + if sign != 0 { + x = -x + y = -y + } + x = _pio42 - x + (_pio4lo - y) + y = float64(0) + } + z = Tdouble_t(x * x) + w = Tdouble_t(z * z) + /* + * Break x^5*(T[1]+x^2*T[2]+...) into + * x^5(T[1]+x^4*T[3]+...+x^20*T[11]) + + * x^5(x^2*(T[2]+x^4*T[4]+...+x^22*[T12])) + */ + r = _T[int32(1)] + float64(w*(_T[int32(3)]+float64(w*(_T[int32(5)]+float64(w*(_T[int32(7)]+float64(w*(_T[int32(9)]+float64(w*_T[int32(11)]))))))))) + v = Tdouble_t(z * (_T[int32(2)] + float64(w*(_T[int32(4)]+float64(w*(_T[int32(6)]+float64(w*(_T[int32(8)]+float64(w*(_T[int32(10)]+float64(w*_T[int32(12)]))))))))))) + s = Tdouble_t(z * x) + r = y + float64(z*(Tdouble_t(s*(r+v))+y)) + float64(s*_T[0]) + w = x + r + if big != 0 { + s = float64(int32(1) - int32(2)*odd) + v = s - Tdouble_t(float64(2)*(x+(r-Tdouble_t(w*w)/(w+s)))) + if sign != 0 { + v1 = -v + } else { + v1 = v + } + return v1 + } + if !(odd != 0) { + return w + } + /* -1.0/(x+r) has up to 2ulp error, so compute it accurately */ + w0 = w + v2 = *(*Tuint64_t)(unsafe.Pointer(&w0))>>Int32FromInt32(32)<>Int32FromInt32(32)< %v", r1) }() + } + var r, s, t, u, w, z Tdouble_t + var v1 float64 + _, _, _, _, _, _, _ = r, s, t, u, w, z, v1 + z = Tdouble_t(x * x) + /* + * Split up the polynomial into small independent terms to give + * opportunities for parallel evaluation. The chosen splitting is + * micro-optimized for Athlons (XP, X64). It costs 2 multiplications + * relative to Horner's method on sequential machines. + * + * We add the small terms from lowest degree up for efficiency on + * non-sequential machines (the lowest degree terms tend to be ready + * earlier). Apart from this, we don't care about order of + * operations, and don't need to to care since we have precision to + * spare. However, the chosen splitting is good for accuracy too, + * and would give results as accurate as Horner's method if the + * small terms were added from highest degree down. + */ + r = _T1[int32(4)] + float64(z*_T1[int32(5)]) + t = _T1[int32(2)] + float64(z*_T1[int32(3)]) + w = Tdouble_t(z * z) + s = Tdouble_t(z * x) + u = _T1[0] + float64(z*_T1[int32(1)]) + r = x + float64(s*u) + float64(Tdouble_t(s*w)*(t+Tdouble_t(w*r))) + if odd != 0 { + v1 = -Float64FromFloat64(1) / r + } else { + v1 = r + } + return float32(v1) +} + +var _pio2_hi = float64(1.5707963267948966) /* 0x3FF921FB, 0x54442D18 */ +var _pio2_lo = float64(6.123233995736766e-17) /* 0x3C91A626, 0x33145C07 */ +var _pS0 = float64(0.16666666666666666) /* 0x3FC55555, 0x55555555 */ +var _pS1 = -Float64FromFloat64(0.3255658186224009) /* 0xBFD4D612, 0x03EB6F7D */ +var _pS2 = float64(0.20121253213486293) /* 0x3FC9C155, 0x0E884455 */ +var _pS3 = -Float64FromFloat64(0.04005553450067941) /* 0xBFA48228, 0xB5688F3B */ +var _pS4 = float64(0.0007915349942898145) /* 0x3F49EFE0, 0x7501B288 */ +var _pS5 = float64(3.479331075960212e-05) /* 0x3F023DE1, 0x0DFDF709 */ +var _qS1 = -Float64FromFloat64(2.403394911734414) /* 0xC0033A27, 0x1C8A2D4B */ +var _qS2 = float64(2.0209457602335057) /* 0x40002AE5, 0x9C598AC8 */ +var _qS3 = -Float64FromFloat64(0.6882839716054533) /* 0xBFE6066C, 0x1B8D0159 */ +var _qS4 = float64(0.07703815055590194) /* 0x3FB3B8C5, 0xB12E9282 */ + +func _R(tls *TLS, z float64) (r float64) { + var p, q Tdouble_t + _, _ = p, q + p = Tdouble_t(z * (_pS0 + float64(z*(_pS1+float64(z*(_pS2+float64(z*(_pS3+float64(z*(_pS4+float64(z*_pS5))))))))))) + q = float64(1) + float64(z*(_qS1+float64(z*(_qS2+float64(z*(_qS3+float64(z*_qS4))))))) + return p / q +} + +func Xacos(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + var c, df, s, w, z float64 + var hx, ix, lx Tuint32_t + var v1 Tuint64_t + _, _, _, _, _, _, _, _, _ = c, df, hx, ix, lx, s, w, z, v1 + hx = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + ix = hx & uint32(0x7fffffff) + /* |x| >= 1 or nan */ + if ix >= uint32(0x3ff00000) { + lx = uint32(*(*Tuint64_t)(unsafe.Pointer(&x))) + if ix-uint32(0x3ff00000)|lx == uint32(0) { + /* acos(1)=0, acos(-1)=pi */ + if hx>>int32(31) != 0 { + return float64(Float64FromInt32(2)*_pio2_hi) + Float64FromFloat32(7.52316384526264e-37) + } + return Float64FromInt32(0) + } + return Float64FromInt32(0) / (x - x) + } + /* |x| < 0.5 */ + if ix < uint32(0x3fe00000) { + if ix <= uint32(0x3c600000) { /* |x| < 2**-57 */ + return _pio2_hi + Float64FromFloat32(7.52316384526264e-37) + } + return _pio2_hi - (x - (_pio2_lo - float64(x*_R(tls, float64(x*x))))) + } + /* x < -0.5 */ + if hx>>int32(31) != 0 { + z = float64((float64(1) + x) * float64(0.5)) + s = Xsqrt(tls, z) + w = float64(_R(tls, z)*s) - _pio2_lo + return float64(Float64FromInt32(2) * (_pio2_hi - (s + w))) + } + /* x > 0.5 */ + z = float64((float64(1) - x) * float64(0.5)) + s = Xsqrt(tls, z) + df = s + v1 = *(*Tuint64_t)(unsafe.Pointer(&df))>>Int32FromInt32(32)< %v", r) }() + } + var c, df, s, w, z float32 + var hx, ix, v1 Tuint32_t + _, _, _, _, _, _, _, _ = c, df, hx, ix, s, w, z, v1 + hx = *(*Tuint32_t)(unsafe.Pointer(&x)) + ix = hx & uint32(0x7fffffff) + /* |x| >= 1 or nan */ + if ix >= uint32(0x3f800000) { + if ix == uint32(0x3f800000) { + if hx>>int32(31) != 0 { + return float32(Float32FromInt32(2)*_pio2_hi1) + Float32FromFloat32(7.52316384526264e-37) + } + return Float32FromInt32(0) + } + return Float32FromInt32(0) / (x - x) + } + /* |x| < 0.5 */ + if ix < uint32(0x3f000000) { + if ix <= uint32(0x32800000) { /* |x| < 2**-26 */ + return _pio2_hi1 + Float32FromFloat32(7.52316384526264e-37) + } + return _pio2_hi1 - (x - (_pio2_lo1 - float32(x*_R1(tls, float32(x*x))))) + } + /* x < -0.5 */ + if hx>>int32(31) != 0 { + z = float32((Float32FromInt32(1) + x) * Float32FromFloat32(0.5)) + s = Xsqrtf(tls, z) + w = float32(_R1(tls, z)*s) - _pio2_lo1 + return float32(Float32FromInt32(2) * (_pio2_hi1 - (s + w))) + } + /* x > 0.5 */ + z = float32((Float32FromInt32(1) - x) * Float32FromFloat32(0.5)) + s = Xsqrtf(tls, z) + hx = *(*Tuint32_t)(unsafe.Pointer(&s)) + v1 = hx & uint32(0xfffff000) + df = *(*float32)(unsafe.Pointer(&v1)) + c = (z - float32(df*df)) / (s + df) + w = float32(_R1(tls, z)*s) + c + return float32(Float32FromInt32(2) * (df + w)) +} + +// C documentation +// +// /* acosh(x) = log(x + sqrt(x*x-1)) */ +func Xacosh(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e uint32 + var _ /* u at bp+0 */ struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + } + _ = e + *(*struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + e = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + /* x < 1 domain error is handled in the called functions */ + if e < Uint32FromInt32(Int32FromInt32(0x3ff)+Int32FromInt32(1)) { + /* |x| < 2, up to 2ulp error in [1,1.125] */ + return Xlog1p(tls, x-Float64FromInt32(1)+Xsqrt(tls, float64((x-Float64FromInt32(1))*(x-Float64FromInt32(1)))+float64(Float64FromInt32(2)*(x-Float64FromInt32(1))))) + } + if e < Uint32FromInt32(Int32FromInt32(0x3ff)+Int32FromInt32(26)) { + /* |x| < 0x1p26 */ + return Xlog(tls, float64(Float64FromInt32(2)*x)-Float64FromInt32(1)/(x+Xsqrt(tls, float64(x*x)-Float64FromInt32(1)))) + } + /* |x| >= 0x1p26 or nan */ + return Xlog(tls, x) + float64(0.6931471805599453) +} + +// C documentation +// +// /* acosh(x) = log(x + sqrt(x*x-1)) */ +func Xacoshf(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var a Tuint32_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _ = a + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + a = *(*Tuint32_t)(unsafe.Pointer(bp)) & uint32(0x7fffffff) + if a < Uint32FromInt32(Int32FromInt32(0x3f800000)+Int32FromInt32(1)<= 0x1p12 or x <= -2 or nan */ + return Xlogf(tls, x) + Float32FromFloat32(0.6931471805599453) +} + +func Xacoshl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xacosh(tls, x) +} + +func Xacosl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xacos(tls, x) +} + +var _pio2_hi2 = float64(1.5707963267948966) /* 0x3FF921FB, 0x54442D18 */ +var _pio2_lo2 = float64(6.123233995736766e-17) /* 0x3C91A626, 0x33145C07 */ +/* coefficients for R(x^2) */ +var _pS02 = float64(0.16666666666666666) /* 0x3FC55555, 0x55555555 */ +var _pS12 = -Float64FromFloat64(0.3255658186224009) /* 0xBFD4D612, 0x03EB6F7D */ +var _pS22 = float64(0.20121253213486293) /* 0x3FC9C155, 0x0E884455 */ +var _pS31 = -Float64FromFloat64(0.04005553450067941) /* 0xBFA48228, 0xB5688F3B */ +var _pS41 = float64(0.0007915349942898145) /* 0x3F49EFE0, 0x7501B288 */ +var _pS51 = float64(3.479331075960212e-05) /* 0x3F023DE1, 0x0DFDF709 */ +var _qS12 = -Float64FromFloat64(2.403394911734414) /* 0xC0033A27, 0x1C8A2D4B */ +var _qS21 = float64(2.0209457602335057) /* 0x40002AE5, 0x9C598AC8 */ +var _qS31 = -Float64FromFloat64(0.6882839716054533) /* 0xBFE6066C, 0x1B8D0159 */ +var _qS41 = float64(0.07703815055590194) /* 0x3FB3B8C5, 0xB12E9282 */ + +func _R2(tls *TLS, z float64) (r float64) { + var p, q Tdouble_t + _, _ = p, q + p = Tdouble_t(z * (_pS02 + float64(z*(_pS12+float64(z*(_pS22+float64(z*(_pS31+float64(z*(_pS41+float64(z*_pS51))))))))))) + q = float64(1) + float64(z*(_qS12+float64(z*(_qS21+float64(z*(_qS31+float64(z*_qS41))))))) + return p / q +} + +func Xasin(tls *TLS, x float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var c, f, r, s, z float64 + var hx, ix, lx Tuint32_t + var v1 Tuint64_t + _, _, _, _, _, _, _, _, _ = c, f, hx, ix, lx, r, s, z, v1 + hx = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + ix = hx & uint32(0x7fffffff) + /* |x| >= 1 or nan */ + if ix >= uint32(0x3ff00000) { + lx = uint32(*(*Tuint64_t)(unsafe.Pointer(&x))) + if ix-uint32(0x3ff00000)|lx == uint32(0) { + /* asin(1) = +-pi/2 with inexact */ + return float64(x*_pio2_hi2) + Float64FromFloat32(7.52316384526264e-37) + } + return Float64FromInt32(0) / (x - x) + } + /* |x| < 0.5 */ + if ix < uint32(0x3fe00000) { + /* if 0x1p-1022 <= |x| < 0x1p-26, avoid raising underflow */ + if ix < uint32(0x3e500000) && ix >= uint32(0x00100000) { + return x + } + return x + float64(x*_R2(tls, float64(x*x))) + } + /* 1 > |x| >= 0.5 */ + z = float64((Float64FromInt32(1) - Xfabs(tls, x)) * float64(0.5)) + s = Xsqrt(tls, z) + r = _R2(tls, z) + if ix >= uint32(0x3fef3333) { /* if |x| > 0.975 */ + x = _pio2_hi2 - (float64(Float64FromInt32(2)*(s+float64(s*r))) - _pio2_lo2) + } else { + /* f+c = sqrt(z) */ + f = s + v1 = *(*Tuint64_t)(unsafe.Pointer(&f))>>Int32FromInt32(32)<>int32(31) != 0 { + return -x + } + return x +} + +var _pio2 = float64(1.5707963267948966) + +/* coefficients for R(x^2) */ +var _pS03 = float32(0.16666586697) +var _pS13 = float32(-Float64FromFloat64(0.042743422091)) +var _pS23 = float32(-Float64FromFloat64(0.008656363003)) +var _qS13 = float32(-Float64FromFloat64(0.7066296339)) + +func _R3(tls *TLS, z float32) (r float32) { + var p, q Tfloat_t + _, _ = p, q + p = Tfloat_t(z * (_pS03 + float32(z*(_pS13+float32(z*_pS23))))) + q = Float32FromFloat32(1) + float32(z*_qS13) + return p / q +} + +func Xasinf(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + var hx, ix Tuint32_t + var s float64 + var z float32 + _, _, _, _ = hx, ix, s, z + hx = *(*Tuint32_t)(unsafe.Pointer(&x)) + ix = hx & uint32(0x7fffffff) + if ix >= uint32(0x3f800000) { /* |x| >= 1 */ + if ix == uint32(0x3f800000) { /* |x| == 1 */ + return float32(float64(float64(x)*_pio2) + Float64FromFloat32(7.52316384526264e-37)) + } /* asin(+-1) = +-pi/2 with inexact */ + return Float32FromInt32(0) / (x - x) /* asin(|x|>1) is NaN */ + } + if ix < uint32(0x3f000000) { /* |x| < 0.5 */ + /* if 0x1p-126 <= |x| < 0x1p-12, avoid raising underflow */ + if ix < uint32(0x39800000) && ix >= uint32(0x00800000) { + return x + } + return x + float32(x*_R3(tls, float32(x*x))) + } + /* 1 > |x| >= 0.5 */ + z = float32((Float32FromInt32(1) - Xfabsf(tls, x)) * Float32FromFloat32(0.5)) + s = Xsqrt(tls, float64(z)) + x = float32(_pio2 - float64(Float64FromInt32(2)*(s+float64(s*float64(_R3(tls, z)))))) + if hx>>int32(31) != 0 { + return -x + } + return x +} + +// C documentation +// +// /* asinh(x) = sign(x)*log(|x|+sqrt(x*x+1)) ~= x - x^3/6 + o(x^5) */ +func Xasinh(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e, s uint32 + var y float32 + var y1, y2, v1 float64 + var _ /* u at bp+0 */ struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _ = e, s, y, y1, y2, v1 + *(*struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + e = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + s = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(63)) + /* |x| */ + *(*Tuint64_t)(unsafe.Pointer(bp)) &= Uint64FromInt32(-Int32FromInt32(1)) / Uint64FromInt32(2) + x3 = *(*float64)(unsafe.Pointer(bp)) + if e >= Uint32FromInt32(Int32FromInt32(0x3ff)+Int32FromInt32(26)) { + /* |x| >= 0x1p26 or inf or nan */ + x3 = Xlog(tls, x3) + float64(0.6931471805599453) + } else { + if e >= Uint32FromInt32(Int32FromInt32(0x3ff)+Int32FromInt32(1)) { + /* |x| >= 2 */ + x3 = Xlog(tls, float64(Float64FromInt32(2)*x3)+Float64FromInt32(1)/(Xsqrt(tls, float64(x3*x3)+Float64FromInt32(1))+x3)) + } else { + if e >= Uint32FromInt32(Int32FromInt32(0x3ff)-Int32FromInt32(26)) { + /* |x| >= 0x1p-26, up to 1.6ulp error in [0.125,0.5] */ + x3 = Xlog1p(tls, x3+float64(x3*x3)/(Xsqrt(tls, float64(x3*x3)+Float64FromInt32(1))+Float64FromInt32(1))) + } else { + /* |x| < 0x1p-26, raise inexact if x != 0 */ + if uint32(8) == uint32(4) { + y = float32(x3 + Float64FromFloat32(1.329227995784916e+36)) + } else { + if uint32(8) == uint32(8) { + y1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } else { + y2 = float64(x3 + Float64FromFloat32(1.329227995784916e+36)) + } + } + } + } + } + if s != 0 { + v1 = -x3 + } else { + v1 = x3 + } + return v1 +} + +// C documentation +// +// /* asinh(x) = sign(x)*log(|x|+sqrt(x*x+1)) ~= x - x^3/6 + o(x^5) */ +func Xasinhf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var i Tuint32_t + var s uint32 + var y, v1 float32 + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _ = i, s, y, y1, y2, v1 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + i = *(*Tuint32_t)(unsafe.Pointer(bp)) & uint32(0x7fffffff) + s = *(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(31) + /* |x| */ + *(*Tuint32_t)(unsafe.Pointer(bp)) = i + x3 = *(*float32)(unsafe.Pointer(bp)) + if i >= Uint32FromInt32(Int32FromInt32(0x3f800000)+Int32FromInt32(12)<= 0x1p12 or inf or nan */ + x3 = Xlogf(tls, x3) + Float32FromFloat32(0.6931471805599453) + } else { + if i >= Uint32FromInt32(Int32FromInt32(0x3f800000)+Int32FromInt32(1)<= 2 */ + x3 = Xlogf(tls, float32(Float32FromInt32(2)*x3)+Float32FromInt32(1)/(Xsqrtf(tls, float32(x3*x3)+Float32FromInt32(1))+x3)) + } else { + if i >= Uint32FromInt32(Int32FromInt32(0x3f800000)-Int32FromInt32(12)<= 0x1p-12, up to 1.6ulp error in [0.125,0.5] */ + x3 = Xlog1pf(tls, x3+float32(x3*x3)/(Xsqrtf(tls, float32(x3*x3)+Float32FromInt32(1))+Float32FromInt32(1))) + } else { + /* |x| < 0x1p-12, raise inexact if x!=0 */ + if uint32(4) == uint32(4) { + y = x3 + Float32FromFloat32(1.329227995784916e+36) + } else { + if uint32(4) == uint32(8) { + y1 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } else { + y2 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } + } + } + } + } + if s != 0 { + v1 = -x3 + } else { + v1 = x3 + } + return v1 +} + +func Xasinhl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xasinh(tls, x) +} + +func Xasinl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xasin(tls, x) +} + +var _atanhi = [4]float64{ + 0: float64(0.4636476090008061), + 1: float64(0.7853981633974483), + 2: float64(0.982793723247329), + 3: float64(1.5707963267948966), +} + +var _atanlo = [4]float64{ + 0: float64(2.2698777452961687e-17), + 1: float64(3.061616997868383e-17), + 2: float64(1.3903311031230998e-17), + 3: float64(6.123233995736766e-17), +} + +var _aT = [11]float64{ + 0: float64(0.3333333333333293), + 1: -Float64FromFloat64(0.19999999999876483), + 2: float64(0.14285714272503466), + 3: -Float64FromFloat64(0.11111110405462356), + 4: float64(0.09090887133436507), + 5: -Float64FromFloat64(0.0769187620504483), + 6: float64(0.06661073137387531), + 7: -Float64FromFloat64(0.058335701337905735), + 8: float64(0.049768779946159324), + 9: -Float64FromFloat64(0.036531572744216916), + 10: float64(0.016285820115365782), +} + +func Xatan(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var id int32 + var ix, sign Tuint32_t + var s1, s2, w, z, v3 Tdouble_t + var y float32 + var y1, y2 float64 + var v1 uint64 + var _ /* __u at bp+0 */ struct { + F__ccgo_align [0]uint32 + F__i [0]uint64 + F__f float64 + } + _, _, _, _, _, _, _, _, _, _, _, _ = id, ix, s1, s2, sign, w, y, y1, y2, z, v1, v3 + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x3)) >> int32(32)) + sign = ix >> int32(31) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x44100000) { /* if |x| >= 2^66 */ + *(*float64)(unsafe.Pointer(bp)) = x3 + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 + _2: + if BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var __u1, __u2 Tuint64_t + var ix, iy, lx, ly, m Tuint32_t + var z, v6 float64 + var v1, v3 uint64 + var v5 bool + var _ /* __u at bp+0 */ struct { + F__ccgo_align [0]uint32 + F__i [0]uint64 + F__f float64 + } + _, _, _, _, _, _, _, _, _, _, _, _ = __u1, __u2, ix, iy, lx, ly, m, z, v1, v3, v5, v6 + *(*float64)(unsafe.Pointer(bp)) = x + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + ; + if v5 = BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<> int32(32)) + lx = uint32(__u1) + __u2 = *(*Tuint64_t)(unsafe.Pointer(&y)) + iy = uint32(__u2 >> int32(32)) + ly = uint32(__u2) + if ix-uint32(0x3ff00000)|lx == uint32(0) { /* x = 1.0 */ + return Xatan(tls, y) + } + m = iy>>Int32FromInt32(31)&uint32(1) | ix>>Int32FromInt32(30)&uint32(2) /* 2*sign(x)+sign(y) */ + ix = ix & uint32(0x7fffffff) + iy = iy & uint32(0x7fffffff) + /* when y = 0 */ + if iy|ly == uint32(0) { + switch m { + case uint32(0): + fallthrough + case uint32(1): + return y /* atan(+-0,+anything)=+-0 */ + case uint32(2): + return _pi /* atan(+0,-anything) = pi */ + case uint32(3): + return -_pi /* atan(-0,-anything) =-pi */ + } + } + /* when x = 0 */ + if ix|lx == uint32(0) { + if m&uint32(1) != 0 { + v6 = -_pi / Float64FromInt32(2) + } else { + v6 = _pi / Float64FromInt32(2) + } + return v6 + } + /* when x is INF */ + if ix == uint32(0x7ff00000) { + if iy == uint32(0x7ff00000) { + switch m { + case uint32(0): + return _pi / Float64FromInt32(4) /* atan(+INF,+INF) */ + case uint32(1): + return -_pi / Float64FromInt32(4) /* atan(-INF,+INF) */ + case uint32(2): + return float64(Float64FromInt32(3)*_pi) / Float64FromInt32(4) /* atan(+INF,-INF) */ + case uint32(3): + return float64(float64(-Int32FromInt32(3))*_pi) / Float64FromInt32(4) /* atan(-INF,-INF) */ + } + } else { + switch m { + case uint32(0): + return float64(0) /* atan(+...,+INF) */ + case uint32(1): + return -Float64FromFloat64(0) /* atan(-...,+INF) */ + case uint32(2): + return _pi /* atan(+...,-INF) */ + case uint32(3): + return -_pi /* atan(-...,-INF) */ + } + } + } + /* |y/x| > 0x1p64 */ + if ix+Uint32FromInt32(Int32FromInt32(64)< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ix, iy, m Tuint32_t + var z, v6 float32 + var v1, v3 uint32 + var v5 bool + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _, _, _, _, _, _, _, _ = ix, iy, m, z, v1, v3, v5, v6 + *(*float32)(unsafe.Pointer(bp)) = x + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + ; + if v5 = BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0; !v5 { + *(*float32)(unsafe.Pointer(bp)) = y + v3 = *(*uint32)(unsafe.Pointer(bp)) + goto _4 + _4: + } + if v5 || BoolInt32(v3&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return x + y + } + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + iy = *(*Tuint32_t)(unsafe.Pointer(&y)) + if ix == uint32(0x3f800000) { /* x=1.0 */ + return Xatanf(tls, y) + } + m = iy>>Int32FromInt32(31)&uint32(1) | ix>>Int32FromInt32(30)&uint32(2) /* 2*sign(x)+sign(y) */ + ix = ix & uint32(0x7fffffff) + iy = iy & uint32(0x7fffffff) + /* when y = 0 */ + if iy == uint32(0) { + switch m { + case uint32(0): + fallthrough + case uint32(1): + return y /* atan(+-0,+anything)=+-0 */ + case uint32(2): + return _pi1 /* atan(+0,-anything) = pi */ + case uint32(3): + return -_pi1 /* atan(-0,-anything) =-pi */ + } + } + /* when x = 0 */ + if ix == uint32(0) { + if m&uint32(1) != 0 { + v6 = -_pi1 / Float32FromInt32(2) + } else { + v6 = _pi1 / Float32FromInt32(2) + } + return v6 + } + /* when x is INF */ + if ix == uint32(0x7f800000) { + if iy == uint32(0x7f800000) { + switch m { + case uint32(0): + return _pi1 / Float32FromInt32(4) /* atan(+INF,+INF) */ + case uint32(1): + return -_pi1 / Float32FromInt32(4) /* atan(-INF,+INF) */ + case uint32(2): + return float32(Float32FromInt32(3)*_pi1) / Float32FromInt32(4) /*atan(+INF,-INF)*/ + case uint32(3): + return float32(float32(-Int32FromInt32(3))*_pi1) / Float32FromInt32(4) /*atan(-INF,-INF)*/ + } + } else { + switch m { + case uint32(0): + return Float32FromFloat32(0) /* atan(+...,+INF) */ + case uint32(1): + return -Float32FromFloat32(0) /* atan(-...,+INF) */ + case uint32(2): + return _pi1 /* atan(+...,-INF) */ + case uint32(3): + return -_pi1 /* atan(-...,-INF) */ + } + } + } + /* |y/x| > 0x1p26 */ + if ix+Uint32FromInt32(Int32FromInt32(26)< %v", r) }() + } + return Xatan2(tls, y, x) +} + +var _atanhi1 = [4]float32{ + 0: float32(0.46364760399), + 1: float32(0.78539812565), + 2: float32(0.98279368877), + 3: float32(1.5707962513), +} + +var _atanlo1 = [4]float32{ + 0: float32(5.012158244e-09), + 1: float32(3.7748947079e-08), + 2: float32(3.447321717e-08), + 3: float32(7.5497894159e-08), +} + +var _aT1 = [5]float32{ + 0: float32(0.33333328366), + 1: float32(-Float64FromFloat64(0.19999158382)), + 2: float32(0.14253635705), + 3: float32(-Float64FromFloat64(0.10648017377)), + 4: float32(0.061687607318), +} + +func Xatanf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var id int32 + var ix, sign Tuint32_t + var s1, s2, w, z, v3 Tfloat_t + var y float32 + var y1, y2 float64 + var v1 uint32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _, _, _, _, _, _, _, _, _, _, _, _ = id, ix, s1, s2, sign, w, y, y1, y2, z, v1, v3 + ix = *(*Tuint32_t)(unsafe.Pointer(&x3)) + sign = ix >> int32(31) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x4c800000) { /* if |x| >= 2**26 */ + *(*float32)(unsafe.Pointer(bp)) = x3 + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 + _2: + if BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return x3 + } + z = _atanhi1[int32(3)] + Float32FromFloat32(7.52316384526264e-37) + if sign != 0 { + v3 = -z + } else { + v3 = z + } + return v3 + } + if ix < uint32(0x3ee00000) { /* |x| < 0.4375 */ + if ix < uint32(0x39800000) { /* |x| < 2**-12 */ + if ix < uint32(0x00800000) { + /* raise underflow for subnormal x */ + if uint32(4) == uint32(4) { + y = float32(x3 * x3) + } else { + if uint32(4) == uint32(8) { + y1 = float64(x3 * x3) + } else { + y2 = float64(x3 * x3) + } + } + } + return x3 + } + id = -int32(1) + } else { + x3 = Xfabsf(tls, x3) + if ix < uint32(0x3f980000) { /* |x| < 1.1875 */ + if ix < uint32(0x3f300000) { /* 7/16 <= |x| < 11/16 */ + id = 0 + x3 = (float32(Float32FromFloat32(2)*x3) - Float32FromFloat32(1)) / (Float32FromFloat32(2) + x3) + } else { /* 11/16 <= |x| < 19/16 */ + id = int32(1) + x3 = (x3 - Float32FromFloat32(1)) / (x3 + Float32FromFloat32(1)) + } + } else { + if ix < uint32(0x401c0000) { /* |x| < 2.4375 */ + id = int32(2) + x3 = (x3 - Float32FromFloat32(1.5)) / (Float32FromFloat32(1) + float32(Float32FromFloat32(1.5)*x3)) + } else { /* 2.4375 <= |x| < 2**26 */ + id = int32(3) + x3 = -Float32FromFloat32(1) / x3 + } + } + } + /* end of argument reduction */ + z = Tfloat_t(x3 * x3) + w = Tfloat_t(z * z) + /* break sum from i=0 to 10 aT[i]z**(i+1) into odd and even poly */ + s1 = Tfloat_t(z * (_aT1[0] + float32(w*(_aT1[int32(2)]+float32(w*_aT1[int32(4)]))))) + s2 = Tfloat_t(w * (_aT1[int32(1)] + float32(w*_aT1[int32(3)]))) + if id < 0 { + return x3 - float32(x3*(s1+s2)) + } + z = _atanhi1[id] - (float32(x3*(s1+s2)) - _atanlo1[id] - x3) + if sign != 0 { + v3 = -z + } else { + v3 = z + } + return v3 +} + +// C documentation +// +// /* atanh(x) = log((1+x)/(1-x))/2 = log1p(2x/(1-x))/2 ~= x + x^3/3 + o(x^5) */ +func Xatanh(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e, s uint32 + var y float32 + var y1, y2 float64 + var y3, v1 Tdouble_t + var _ /* u at bp+0 */ struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _ = e, s, y, y1, y2, y3, v1 + *(*struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + e = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + s = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(63)) + /* |x| */ + *(*Tuint64_t)(unsafe.Pointer(bp)) &= Uint64FromInt32(-Int32FromInt32(1)) / Uint64FromInt32(2) + y3 = *(*float64)(unsafe.Pointer(bp)) + if e < Uint32FromInt32(Int32FromInt32(0x3ff)-Int32FromInt32(1)) { + if e < Uint32FromInt32(Int32FromInt32(0x3ff)-Int32FromInt32(32)) { + /* handle underflow */ + if e == uint32(0) { + if uint32(4) == uint32(4) { + y = float32(y3) + } else { + if uint32(4) == uint32(8) { + y1 = float64(float32(y3)) + } else { + y2 = float64(float32(y3)) + } + } + } + } else { + /* |x| < 0.5, up to 1.7ulp error */ + y3 = Tdouble_t(float64(0.5) * Xlog1p(tls, Tdouble_t(Float64FromInt32(2)*y3)+Tdouble_t(Tdouble_t(Float64FromInt32(2)*y3)*y3)/(Float64FromInt32(1)-y3))) + } + } else { + /* avoid overflow */ + y3 = Tdouble_t(float64(0.5) * Xlog1p(tls, float64(Float64FromInt32(2)*(y3/(Float64FromInt32(1)-y3))))) + } + if s != 0 { + v1 = -y3 + } else { + v1 = y3 + } + return v1 +} + +// C documentation +// +// /* atanh(x) = log((1+x)/(1-x))/2 = log1p(2x/(1-x))/2 ~= x + x^3/3 + o(x^5) */ +func Xatanhf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var s uint32 + var y float32 + var y1, y2 float64 + var y3, v1 Tfloat_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _ = s, y, y1, y2, y3, v1 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + s = *(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(31) + /* |x| */ + *(*Tuint32_t)(unsafe.Pointer(bp)) &= uint32(0x7fffffff) + y3 = *(*float32)(unsafe.Pointer(bp)) + if *(*Tuint32_t)(unsafe.Pointer(bp)) < Uint32FromInt32(Int32FromInt32(0x3f800000)-Int32FromInt32(1)< %v", r) }() + } + return Xatanh(tls, x) +} + +func Xatanl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xatan(tls, x) +} + +var _B1 = uint32(715094163) /* B1 = (1023-1023/3-0.03306235651)*2**20 */ +var _B2 = uint32(696219795) /* B2 = (1023-1023/3-54/3-0.03306235651)*2**20 */ + +// C documentation +// +// /* |1/cbrt(x) - p(x)| < 2**-23.5 (~[-7.93e-8, 7.929e-8]). */ + +var _P0 = float64(1.87595182427177) /* 0x3ffe03e6, 0x0f61e692 */ +var _P1 = -Float64FromFloat64(1.8849797954337717) /* 0xbffe28e0, 0x92f02420 */ +var _P2 = float64(1.6214297201053545) /* 0x3ff9f160, 0x4a49d6c2 */ +var _P3 = -Float64FromFloat64(0.758397934778766) /* 0xbfe844cb, 0xbee751d9 */ +var _P4 = float64(0.14599619288661245) /* 0x3fc2b000, 0xd4e4edd7 */ + +func Xcbrt(tls *TLS, x float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var hx Tuint32_t + var r, s, t, w Tdouble_t + var _ /* u at bp+0 */ struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _ = hx, r, s, t, w + *(*struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + hx = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32) & uint64(0x7fffffff)) + if hx >= uint32(0x7ff00000) { /* cbrt(NaN,INF) is itself */ + return x + x + } + /* + * Rough cbrt to 5 bits: + * cbrt(2**e*(1+m) ~= 2**(e/3)*(1+(e%3+m)/3) + * where e is integral and >= 0, m is real and in [0, 1), and "/" and + * "%" are integer division and modulus with rounding towards minus + * infinity. The RHS is always >= the LHS and has a maximum relative + * error of about 1 in 16. Adding a bias of -0.03306235651 to the + * (e%3+m)/3 term reduces the error to about 1 in 32. With the IEEE + * floating point representation, for finite positive normal values, + * ordinary integer divison of the value in bits magically gives + * almost exactly the RHS of the above provided we first subtract the + * exponent bias (1023 for doubles) and later add it back. We do the + * subtraction virtually to keep e >= 0 so that ordinary integer + * division rounds towards minus infinity; this is also efficient. + */ + if hx < uint32(0x00100000) { /* zero or subnormal? */ + *(*float64)(unsafe.Pointer(bp)) = float64(x * float64(1.8014398509481984e+16)) + hx = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32) & uint64(0x7fffffff)) + if hx == uint32(0) { + return x + } /* cbrt(0) is itself */ + hx = hx/uint32(3) + _B2 + } else { + hx = hx/uint32(3) + _B1 + } + *(*Tuint64_t)(unsafe.Pointer(bp)) &= Uint64FromUint64(1) << Int32FromInt32(63) + *(*Tuint64_t)(unsafe.Pointer(bp)) |= uint64(hx) << int32(32) + t = *(*float64)(unsafe.Pointer(bp)) + /* + * New cbrt to 23 bits: + * cbrt(x) = t*cbrt(x/t**3) ~= t*P(t**3/x) + * where P(r) is a polynomial of degree 4 that approximates 1/cbrt(r) + * to within 2**-23.5 when |r - 1| < 1/10. The rough approximation + * has produced t such than |t/cbrt(x) - 1| ~< 1/32, and cubing this + * gives us bounds for r = t**3/x. + * + * Try to optimize for parallel evaluation as in __tanf.c. + */ + r = Tdouble_t(Tdouble_t(t*t) * (t / x)) + t = Tdouble_t(t * (_P0 + float64(r*(_P1+float64(r*_P2))) + float64(Tdouble_t(Tdouble_t(r*r)*r)*(_P3+float64(r*_P4))))) + /* + * Round t away from zero to 23 bits (sloppily except for ensuring that + * the result is larger in magnitude than cbrt(x) but not much more than + * 2 23-bit ulps larger). With rounding towards zero, the error bound + * would be ~5/6 instead of ~4/6. With a maximum error of 2 23-bit ulps + * in the rounded t, the infinite-precision error in the Newton + * approximation barely affects third digit in the final error + * 0.667; the error in the rounded t can be up to about 3 23-bit ulps + * before the final error is larger than 0.667 ulps. + */ + *(*float64)(unsafe.Pointer(bp)) = t + *(*Tuint64_t)(unsafe.Pointer(bp)) = (*(*Tuint64_t)(unsafe.Pointer(bp)) + uint64(0x80000000)) & uint64(0xffffffffc0000000) + t = *(*float64)(unsafe.Pointer(bp)) + /* one step Newton iteration to 53 bits with error < 0.667 ulps */ + s = Tdouble_t(t * t) /* t*t is exact */ + r = x / s /* error <= 0.5 ulps; |r| < |t| */ + w = t + t /* t+t is exact */ + r = (r - t) / (w + r) /* r-t is exact; w+r ~= 3*t */ + t = t + Tdouble_t(t*r) /* error <= 0.5 + 0.5/3 + epsilon */ + return t +} + +var _B11 = uint32(709958130) /* B1 = (127-127.0/3-0.03306235651)*2**23 */ +var _B21 = uint32(642849266) /* B2 = (127-127.0/3-24/3-0.03306235651)*2**23 */ + +func Xcbrtf(tls *TLS, x float32) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var T, r Tdouble_t + var hx Tuint32_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _ = T, hx, r + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + hx = *(*Tuint32_t)(unsafe.Pointer(bp)) & uint32(0x7fffffff) + if hx >= uint32(0x7f800000) { /* cbrt(NaN,INF) is itself */ + return x + x + } + /* rough cbrt to 5 bits */ + if hx < uint32(0x00800000) { /* zero or subnormal? */ + if hx == uint32(0) { + return x + } /* cbrt(+-0) is itself */ + *(*float32)(unsafe.Pointer(bp)) = float32(x * Float32FromFloat32(1.6777216e+07)) + hx = *(*Tuint32_t)(unsafe.Pointer(bp)) & uint32(0x7fffffff) + hx = hx/uint32(3) + _B21 + } else { + hx = hx/uint32(3) + _B11 + } + *(*Tuint32_t)(unsafe.Pointer(bp)) &= uint32(0x80000000) + *(*Tuint32_t)(unsafe.Pointer(bp)) |= hx + /* + * First step Newton iteration (solving t*t-x/t == 0) to 16 bits. In + * double precision so that its terms can be arranged for efficiency + * without causing overflow or underflow. + */ + T = float64(*(*float32)(unsafe.Pointer(bp))) + r = Tdouble_t(Tdouble_t(T*T) * T) + T = Tdouble_t(T*(float64(x)+float64(x)+r)) / (float64(x) + r + r) + /* + * Second step Newton iteration to 47 bits. In double precision for + * efficiency and accuracy. + */ + r = Tdouble_t(Tdouble_t(T*T) * T) + T = Tdouble_t(T*(float64(x)+float64(x)+r)) / (float64(x) + r + r) + /* rounding to 24 bits is perfect in round-to-nearest mode */ + return float32(T) +} + +func Xcbrtl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xcbrt(tls, x) +} + +const DBL_EPSILON5 = 2.220446049250313e-16 + +var _toint2 = Float64FromInt32(1) / Float64FromFloat64(2.220446049250313e-16) + +func Xceil(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e int32 + var y float32 + var y1, y2, v1 float64 + var y3 Tdouble_t + var _ /* u at bp+0 */ struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _ = e, y, y1, y2, y3, v1 + *(*struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + e = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + if e >= Int32FromInt32(0x3ff)+Int32FromInt32(52) || x3 == Float64FromInt32(0) { + return x3 + } + /* y = int(x) - x, where int(x) is an integer neighbor of x */ + if *(*Tuint64_t)(unsafe.Pointer(bp))>>int32(63) != 0 { + y3 = x3 - _toint2 + _toint2 - x3 + } else { + y3 = x3 + _toint2 - _toint2 - x3 + } + /* special case because of non-nearest rounding modes */ + if e <= Int32FromInt32(0x3ff)-Int32FromInt32(1) { + if uint32(8) == uint32(4) { + y = float32(y3) + } else { + if uint32(8) == uint32(8) { + y1 = y3 + } else { + y2 = y3 + } + } + if *(*Tuint64_t)(unsafe.Pointer(bp))>>int32(63) != 0 { + v1 = -Float64FromFloat64(0) + } else { + v1 = Float64FromInt32(1) + } + return v1 + } + if y3 < Float64FromInt32(0) { + return x3 + y3 + Float64FromInt32(1) + } + return x3 + y3 +} + +const DBL_EPSILON6 = 0 + +func Xceilf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e int32 + var m Tuint32_t + var y float32 + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _ = e, m, y, y1, y2 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + e = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp))>>Int32FromInt32(23)&Uint32FromInt32(0xff)) - int32(0x7f) + if e >= int32(23) { + return x3 + } + if e >= 0 { + m = Uint32FromInt32(int32(0x007fffff) >> e) + if *(*Tuint32_t)(unsafe.Pointer(bp))&m == uint32(0) { + return x3 + } + if uint32(4) == uint32(4) { + y = x3 + Float32FromFloat32(1.329227995784916e+36) + } else { + if uint32(4) == uint32(8) { + y1 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } else { + y2 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } + } + if *(*Tuint32_t)(unsafe.Pointer(bp))>>int32(31) == uint32(0) { + *(*Tuint32_t)(unsafe.Pointer(bp)) += m + } + *(*Tuint32_t)(unsafe.Pointer(bp)) &= ^m + } else { + if uint32(4) == uint32(4) { + y = x3 + Float32FromFloat32(1.329227995784916e+36) + } else { + if uint32(4) == uint32(8) { + y1 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } else { + y2 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } + } + if *(*Tuint32_t)(unsafe.Pointer(bp))>>int32(31) != 0 { + *(*float32)(unsafe.Pointer(bp)) = float32(-Float64FromFloat64(0)) + } else { + if *(*Tuint32_t)(unsafe.Pointer(bp))< %v", r) }() + } + return Xceil(tls, x) +} + +func Xcopysign(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* ux at bp+0 */ struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + } + var _ /* uy at bp+8 */ struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + } + *(*struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + *(*struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp + 8)) = struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp + 8)) = y + *(*Tuint64_t)(unsafe.Pointer(bp)) &= -Uint64FromUint64(1) / Uint64FromInt32(2) + *(*Tuint64_t)(unsafe.Pointer(bp)) |= *(*Tuint64_t)(unsafe.Pointer(bp + 8)) & (Uint64FromUint64(1) << Int32FromInt32(63)) + return *(*float64)(unsafe.Pointer(bp)) +} + +func Xcopysignf(tls *TLS, x float32, y float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* ux at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + var _ /* uy at bp+4 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp + 4)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp + 4)) = y + *(*Tuint32_t)(unsafe.Pointer(bp)) &= uint32(0x7fffffff) + *(*Tuint32_t)(unsafe.Pointer(bp)) |= *(*Tuint32_t)(unsafe.Pointer(bp + 4)) & uint32(0x80000000) + return *(*float32)(unsafe.Pointer(bp)) +} + +func Xcopysignl(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xcopysign(tls, x, y) +} + +func Xcos(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ix Tuint32_t + var n uint32 + var y float32 + var y1, y2 float64 + var _ /* y at bp+0 */ [2]float64 + _, _, _, _, _ = ix, n, y, y1, y2 + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x3)) >> int32(32)) + ix = ix & uint32(0x7fffffff) + /* |x| ~< pi/4 */ + if ix <= uint32(0x3fe921fb) { + if ix < uint32(0x3e46a09e) { /* |x| < 2**-27 * sqrt(2) */ + /* raise inexact if x!=0 */ + if uint32(8) == uint32(4) { + y = float32(x3 + Float64FromFloat32(1.329227995784916e+36)) + } else { + if uint32(8) == uint32(8) { + y1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } else { + y2 = float64(x3 + Float64FromFloat32(1.329227995784916e+36)) + } + } + return float64(1) + } + return X__cos(tls, x3, Float64FromInt32(0)) + } + /* cos(Inf or NaN) is NaN */ + if ix >= uint32(0x7ff00000) { + return x3 - x3 + } + /* argument reduction */ + n = Uint32FromInt32(X__rem_pio2(tls, x3, bp)) + switch n & Uint32FromInt32(3) { + case uint32(0): + return X__cos(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)]) + case uint32(1): + return -X__sin(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)], int32(1)) + case uint32(2): + return -X__cos(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)]) + default: + return X__sin(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)], int32(1)) + } + return r +} + +const M_PI_23 = 1.5707963267948966 + +// C documentation +// +// /* Small multiples of pi/2 rounded to double precision. */ + +var _c1pio2 = float64(Float64FromInt32(1) * Float64FromFloat64(1.5707963267948966)) /* 0x3FF921FB, 0x54442D18 */ +var _c2pio2 = float64(Float64FromInt32(2) * Float64FromFloat64(1.5707963267948966)) /* 0x400921FB, 0x54442D18 */ +var _c3pio2 = float64(Float64FromInt32(3) * Float64FromFloat64(1.5707963267948966)) /* 0x4012D97C, 0x7F3321D2 */ +var _c4pio2 = float64(Float64FromInt32(4) * Float64FromFloat64(1.5707963267948966)) /* 0x401921FB, 0x54442D18 */ + +func Xcosf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ix Tuint32_t + var n, sign uint32 + var y float32 + var y1, y2, v1 float64 + var _ /* y at bp+0 */ float64 + _, _, _, _, _, _, _ = ix, n, sign, y, y1, y2, v1 + ix = *(*Tuint32_t)(unsafe.Pointer(&x3)) + sign = ix >> int32(31) + ix = ix & uint32(0x7fffffff) + if ix <= uint32(0x3f490fda) { /* |x| ~<= pi/4 */ + if ix < uint32(0x39800000) { /* |x| < 2**-12 */ + /* raise inexact if x != 0 */ + if uint32(4) == uint32(4) { + y = x3 + Float32FromFloat32(1.329227995784916e+36) + } else { + if uint32(4) == uint32(8) { + y1 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } else { + y2 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } + } + return Float32FromFloat32(1) + } + return X__cosdf(tls, float64(x3)) + } + if ix <= uint32(0x407b53d1) { /* |x| ~<= 5*pi/4 */ + if ix > uint32(0x4016cbe3) { /* |x| ~> 3*pi/4 */ + if sign != 0 { + v1 = float64(x3) + _c2pio2 + } else { + v1 = float64(x3) - _c2pio2 + } + return -X__cosdf(tls, v1) + } else { + if sign != 0 { + return X__sindf(tls, float64(x3)+_c1pio2) + } else { + return X__sindf(tls, _c1pio2-float64(x3)) + } + } + } + if ix <= uint32(0x40e231d5) { /* |x| ~<= 9*pi/4 */ + if ix > uint32(0x40afeddf) { /* |x| ~> 7*pi/4 */ + if sign != 0 { + v1 = float64(x3) + _c4pio2 + } else { + v1 = float64(x3) - _c4pio2 + } + return X__cosdf(tls, v1) + } else { + if sign != 0 { + return X__sindf(tls, float64(-x3)-_c3pio2) + } else { + return X__sindf(tls, float64(x3)-_c3pio2) + } + } + } + /* cos(Inf or NaN) is NaN */ + if ix >= uint32(0x7f800000) { + return x3 - x3 + } + /* general argument reduction needed */ + n = Uint32FromInt32(X__rem_pio2f(tls, x3, bp)) + switch n & Uint32FromInt32(3) { + case uint32(0): + return X__cosdf(tls, **(**float64)(__ccgo_up(bp))) + case uint32(1): + return X__sindf(tls, -**(**float64)(__ccgo_up(bp))) + case uint32(2): + return -X__cosdf(tls, **(**float64)(__ccgo_up(bp))) + default: + return X__sindf(tls, **(**float64)(__ccgo_up(bp))) + } + return r +} + +const M_PI_24 = 0 + +// C documentation +// +// /* cosh(x) = (exp(x) + 1/exp(x))/2 +// * = 1 + 0.5*(exp(x)-1)*(exp(x)-1)/exp(x) +// * = 1 + x*x/2 + o(x^4) +// */ +func Xcosh(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var t, y1, y2 float64 + var w Tuint32_t + var y float32 + var _ /* u at bp+0 */ struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _ = t, w, y, y1, y2 + *(*struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + /* |x| */ + *(*Tuint64_t)(unsafe.Pointer(bp)) &= Uint64FromInt32(-Int32FromInt32(1)) / Uint64FromInt32(2) + x3 = *(*float64)(unsafe.Pointer(bp)) + w = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32)) + /* |x| < log(2) */ + if w < uint32(0x3fe62e42) { + if w < Uint32FromInt32(Int32FromInt32(0x3ff00000)-Int32FromInt32(26)<log(0x1p26) then the 1/t is not needed */ + return float64(float64(0.5) * (t + Float64FromInt32(1)/t)) + } + /* |x| > log(DBL_MAX) or nan */ + /* note: the result is stored to handle overflow */ + t = X__expo2(tls, x3, float64(1)) + return t +} + +func Xcoshf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var t, y float32 + var w Tuint32_t + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _ = t, w, y, y1, y2 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + /* |x| */ + *(*Tuint32_t)(unsafe.Pointer(bp)) &= uint32(0x7fffffff) + x3 = *(*float32)(unsafe.Pointer(bp)) + w = *(*Tuint32_t)(unsafe.Pointer(bp)) + /* |x| < log(2) */ + if w < uint32(0x3f317217) { + if w < Uint32FromInt32(Int32FromInt32(0x3f800000)-Int32FromInt32(12)< log(FLT_MAX) or nan */ + t = X__expo2f(tls, x3, Float32FromFloat32(1)) + return t +} + +func Xcoshl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xcosh(tls, x) +} + +func Xcosl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xcos(tls, x) +} + +var _erx = float64(0.8450629115104675) /* 0x3FEB0AC1, 0x60000000 */ +/* + * Coefficients for approximation to erf on [0,0.84375] + */ +var _efx8 = float64(1.0270333367641007) /* 0x3FF06EBA, 0x8214DB69 */ +var _pp0 = float64(0.12837916709551256) /* 0x3FC06EBA, 0x8214DB68 */ +var _pp1 = -Float64FromFloat64(0.3250421072470015) /* 0xBFD4CD7D, 0x691CB913 */ +var _pp2 = -Float64FromFloat64(0.02848174957559851) /* 0xBF9D2A51, 0xDBD7194F */ +var _pp3 = -Float64FromFloat64(0.005770270296489442) /* 0xBF77A291, 0x236668E4 */ +var _pp4 = -Float64FromFloat64(2.3763016656650163e-05) /* 0xBEF8EAD6, 0x120016AC */ +var _qq1 = float64(0.39791722395915535) /* 0x3FD97779, 0xCDDADC09 */ +var _qq2 = float64(0.0650222499887673) /* 0x3FB0A54C, 0x5536CEBA */ +var _qq3 = float64(0.005081306281875766) /* 0x3F74D022, 0xC4D36B0F */ +var _qq4 = float64(0.00013249473800432164) /* 0x3F215DC9, 0x221C1A10 */ +var _qq5 = -Float64FromFloat64(3.960228278775368e-06) /* 0xBED09C43, 0x42A26120 */ +/* + * Coefficients for approximation to erf in [0.84375,1.25] + */ +var _pa0 = -Float64FromFloat64(0.0023621185607526594) /* 0xBF6359B8, 0xBEF77538 */ +var _pa1 = float64(0.41485611868374833) /* 0x3FDA8D00, 0xAD92B34D */ +var _pa2 = -Float64FromFloat64(0.3722078760357013) /* 0xBFD7D240, 0xFBB8C3F1 */ +var _pa3 = float64(0.31834661990116175) /* 0x3FD45FCA, 0x805120E4 */ +var _pa4 = -Float64FromFloat64(0.11089469428239668) /* 0xBFBC6398, 0x3D3E28EC */ +var _pa5 = float64(0.035478304325618236) /* 0x3FA22A36, 0x599795EB */ +var _pa6 = -Float64FromFloat64(0.002166375594868791) /* 0xBF61BF38, 0x0A96073F */ +var _qa1 = float64(0.10642088040084423) /* 0x3FBB3E66, 0x18EEE323 */ +var _qa2 = float64(0.540397917702171) /* 0x3FE14AF0, 0x92EB6F33 */ +var _qa3 = float64(0.07182865441419627) /* 0x3FB2635C, 0xD99FE9A7 */ +var _qa4 = float64(0.12617121980876164) /* 0x3FC02660, 0xE763351F */ +var _qa5 = float64(0.01363708391202905) /* 0x3F8BEDC2, 0x6B51DD1C */ +var _qa6 = float64(0.011984499846799107) /* 0x3F888B54, 0x5735151D */ +/* + * Coefficients for approximation to erfc in [1.25,1/0.35] + */ +var _ra0 = -Float64FromFloat64(0.009864944034847148) /* 0xBF843412, 0x600D6435 */ +var _ra1 = -Float64FromFloat64(0.6938585727071818) /* 0xBFE63416, 0xE4BA7360 */ +var _ra2 = -Float64FromFloat64(10.558626225323291) /* 0xC0251E04, 0x41B0E726 */ +var _ra3 = -Float64FromFloat64(62.375332450326006) /* 0xC04F300A, 0xE4CBA38D */ +var _ra4 = -Float64FromFloat64(162.39666946257347) /* 0xC0644CB1, 0x84282266 */ +var _ra5 = -Float64FromFloat64(184.60509290671104) /* 0xC067135C, 0xEBCCABB2 */ +var _ra6 = -Float64FromFloat64(81.2874355063066) /* 0xC0545265, 0x57E4D2F2 */ +var _ra7 = -Float64FromFloat64(9.814329344169145) /* 0xC023A0EF, 0xC69AC25C */ +var _sa1 = float64(19.651271667439257) /* 0x4033A6B9, 0xBD707687 */ +var _sa2 = float64(137.65775414351904) /* 0x4061350C, 0x526AE721 */ +var _sa3 = float64(434.56587747522923) /* 0x407B290D, 0xD58A1A71 */ +var _sa4 = float64(645.3872717332679) /* 0x40842B19, 0x21EC2868 */ +var _sa5 = float64(429.00814002756783) /* 0x407AD021, 0x57700314 */ +var _sa6 = float64(108.63500554177944) /* 0x405B28A3, 0xEE48AE2C */ +var _sa7 = float64(6.570249770319282) /* 0x401A47EF, 0x8E484A93 */ +var _sa8 = -Float64FromFloat64(0.0604244152148581) /* 0xBFAEEFF2, 0xEE749A62 */ +/* + * Coefficients for approximation to erfc in [1/.35,28] + */ +var _rb0 = -Float64FromFloat64(0.0098649429247001) /* 0xBF843412, 0x39E86F4A */ +var _rb1 = -Float64FromFloat64(0.799283237680523) /* 0xBFE993BA, 0x70C285DE */ +var _rb2 = -Float64FromFloat64(17.757954917754752) /* 0xC031C209, 0x555F995A */ +var _rb3 = -Float64FromFloat64(160.63638485582192) /* 0xC064145D, 0x43C5ED98 */ +var _rb4 = -Float64FromFloat64(637.5664433683896) /* 0xC083EC88, 0x1375F228 */ +var _rb5 = -Float64FromFloat64(1025.0951316110772) /* 0xC0900461, 0x6A2E5992 */ +var _rb6 = -Float64FromFloat64(483.5191916086514) /* 0xC07E384E, 0x9BDC383F */ +var _sb1 = float64(30.33806074348246) /* 0x403E568B, 0x261D5190 */ +var _sb2 = float64(325.7925129965739) /* 0x40745CAE, 0x221B9F0A */ +var _sb3 = float64(1536.729586084437) /* 0x409802EB, 0x189D5118 */ +var _sb4 = float64(3199.8582195085955) /* 0x40A8FFB7, 0x688C246A */ +var _sb5 = float64(2553.0504064331644) /* 0x40A3F219, 0xCEDF3BE6 */ +var _sb6 = float64(474.52854120695537) /* 0x407DA874, 0xE79FE763 */ +var _sb7 = -Float64FromFloat64(22.44095244658582) /* 0xC03670E2, 0x42712D62 */ + +func _erfc1(tls *TLS, x float64) (r float64) { + var P, Q, s Tdouble_t + _, _, _ = P, Q, s + s = Xfabs(tls, x) - Float64FromInt32(1) + P = _pa0 + float64(s*(_pa1+float64(s*(_pa2+float64(s*(_pa3+float64(s*(_pa4+float64(s*(_pa5+float64(s*_pa6))))))))))) + Q = Float64FromInt32(1) + Tdouble_t(s*(_qa1+float64(s*(_qa2+float64(s*(_qa3+float64(s*(_qa4+float64(s*(_qa5+float64(s*_qa6))))))))))) + return Float64FromInt32(1) - _erx - P/Q +} + +func _erfc2(tls *TLS, ix Tuint32_t, x float64) (r float64) { + var R, S, s Tdouble_t + var z float64 + var v1 Tuint64_t + _, _, _, _, _ = R, S, s, z, v1 + if ix < uint32(0x3ff40000) { /* |x| < 1.25 */ + return _erfc1(tls, x) + } + x = Xfabs(tls, x) + s = Float64FromInt32(1) / float64(x*x) + if ix < uint32(0x4006db6d) { /* |x| < 1/.35 ~ 2.85714 */ + R = _ra0 + float64(s*(_ra1+float64(s*(_ra2+float64(s*(_ra3+float64(s*(_ra4+float64(s*(_ra5+float64(s*(_ra6+float64(s*_ra7))))))))))))) + S = float64(1) + float64(s*(_sa1+float64(s*(_sa2+float64(s*(_sa3+float64(s*(_sa4+float64(s*(_sa5+float64(s*(_sa6+float64(s*(_sa7+float64(s*_sa8))))))))))))))) + } else { /* |x| > 1/.35 */ + R = _rb0 + float64(s*(_rb1+float64(s*(_rb2+float64(s*(_rb3+float64(s*(_rb4+float64(s*(_rb5+float64(s*_rb6))))))))))) + S = float64(1) + float64(s*(_sb1+float64(s*(_sb2+float64(s*(_sb3+float64(s*(_sb4+float64(s*(_sb5+float64(s*(_sb6+float64(s*_sb7))))))))))))) + } + z = x + v1 = *(*Tuint64_t)(unsafe.Pointer(&z))>>Int32FromInt32(32)< %v", r1) }() + } + var ix Tuint32_t + var r, s, y, z, v1 float64 + var sign int32 + _, _, _, _, _, _, _ = ix, r, s, sign, y, z, v1 + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x7ff00000) { + /* erf(nan)=nan, erf(+-inf)=+-1 */ + return float64(int32(1)-int32(2)*sign) + Float64FromInt32(1)/x + } + if ix < uint32(0x3feb0000) { /* |x| < 0.84375 */ + if ix < uint32(0x3e300000) { /* |x| < 2**-28 */ + /* avoid underflow */ + return float64(float64(0.125) * (float64(Float64FromInt32(8)*x) + float64(_efx8*x))) + } + z = float64(x * x) + r = _pp0 + float64(z*(_pp1+float64(z*(_pp2+float64(z*(_pp3+float64(z*_pp4))))))) + s = float64(1) + float64(z*(_qq1+float64(z*(_qq2+float64(z*(_qq3+float64(z*(_qq4+float64(z*_qq5))))))))) + y = r / s + return x + float64(x*y) + } + if ix < uint32(0x40180000) { /* 0.84375 <= |x| < 6 */ + y = Float64FromInt32(1) - _erfc2(tls, ix, x) + } else { + y = Float64FromInt32(1) - Float64FromFloat64(2.2250738585072014e-308) + } + if sign != 0 { + v1 = -y + } else { + v1 = y + } + return v1 +} + +func Xerfc(tls *TLS, x float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var ix Tuint32_t + var r, s, y, z, v1 float64 + var sign int32 + _, _, _, _, _, _, _ = ix, r, s, sign, y, z, v1 + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x7ff00000) { + /* erfc(nan)=nan, erfc(+-inf)=0,2 */ + return float64(int32(2)*sign) + Float64FromInt32(1)/x + } + if ix < uint32(0x3feb0000) { /* |x| < 0.84375 */ + if ix < uint32(0x3c700000) { /* |x| < 2**-56 */ + return float64(1) - x + } + z = float64(x * x) + r = _pp0 + float64(z*(_pp1+float64(z*(_pp2+float64(z*(_pp3+float64(z*_pp4))))))) + s = float64(1) + float64(z*(_qq1+float64(z*(_qq2+float64(z*(_qq3+float64(z*(_qq4+float64(z*_qq5))))))))) + y = r / s + if sign != 0 || ix < uint32(0x3fd00000) { /* x < 1/4 */ + return float64(1) - (x + float64(x*y)) + } + return float64(0.5) - (x - float64(0.5) + float64(x*y)) + } + if ix < uint32(0x403c0000) { /* 0.84375 <= |x| < 28 */ + if sign != 0 { + v1 = Float64FromInt32(2) - _erfc2(tls, ix, x) + } else { + v1 = _erfc2(tls, ix, x) + } + return v1 + } + if sign != 0 { + v1 = Float64FromInt32(2) - Float64FromFloat64(2.2250738585072014e-308) + } else { + v1 = float64(Float64FromFloat64(2.2250738585072014e-308) * Float64FromFloat64(2.2250738585072014e-308)) + } + return v1 +} + +var _erx1 = float32(0.84506291151) /* 0x3f58560b */ +/* + * Coefficients for approximation to erf on [0,0.84375] + */ +var _efx81 = float32(1.027033329) /* 0x3f8375d4 */ +var _pp01 = float32(0.12837916613) /* 0x3e0375d4 */ +var _pp11 = float32(-Float64FromFloat64(0.32504209876)) /* 0xbea66beb */ +var _pp21 = float32(-Float64FromFloat64(0.028481749818)) /* 0xbce9528f */ +var _pp31 = float32(-Float64FromFloat64(0.005770270247)) /* 0xbbbd1489 */ +var _pp41 = float32(-Float64FromFloat64(2.3763017452e-05)) /* 0xb7c756b1 */ +var _qq11 = float32(0.39791721106) /* 0x3ecbbbce */ +var _qq21 = float32(0.0650222525) /* 0x3d852a63 */ +var _qq31 = float32(0.0050813062117) /* 0x3ba68116 */ +var _qq41 = float32(0.00013249473704) /* 0x390aee49 */ +var _qq51 = float32(-Float64FromFloat64(3.9602282413e-06)) /* 0xb684e21a */ +/* + * Coefficients for approximation to erf in [0.84375,1.25] + */ +var _pa01 = float32(-Float64FromFloat64(0.0023621185683)) /* 0xbb1acdc6 */ +var _pa11 = float32(0.41485610604) /* 0x3ed46805 */ +var _pa21 = float32(-Float64FromFloat64(0.37220788002)) /* 0xbebe9208 */ +var _pa31 = float32(0.31834661961) /* 0x3ea2fe54 */ +var _pa41 = float32(-Float64FromFloat64(0.11089469492)) /* 0xbde31cc2 */ +var _pa51 = float32(0.035478305072) /* 0x3d1151b3 */ +var _pa61 = float32(-Float64FromFloat64(0.0021663755178)) /* 0xbb0df9c0 */ +var _qa11 = float32(0.10642088205) /* 0x3dd9f331 */ +var _qa21 = float32(0.54039794207) /* 0x3f0a5785 */ +var _qa31 = float32(0.071828655899) /* 0x3d931ae7 */ +var _qa41 = float32(0.12617121637) /* 0x3e013307 */ +var _qa51 = float32(0.013637083583) /* 0x3c5f6e13 */ +var _qa61 = float32(0.011984500103) /* 0x3c445aa3 */ +/* + * Coefficients for approximation to erfc in [1.25,1/0.35] + */ +var _ra01 = float32(-Float64FromFloat64(0.0098649440333)) /* 0xbc21a093 */ +var _ra11 = float32(-Float64FromFloat64(0.6938585639)) /* 0xbf31a0b7 */ +var _ra21 = float32(-Float64FromFloat64(10.558626175)) /* 0xc128f022 */ +var _ra31 = float32(-Float64FromFloat64(62.375331879)) /* 0xc2798057 */ +var _ra41 = float32(-Float64FromFloat64(162.39666748)) /* 0xc322658c */ +var _ra51 = float32(-Float64FromFloat64(184.60508728)) /* 0xc3389ae7 */ +var _ra61 = float32(-Float64FromFloat64(81.287437439)) /* 0xc2a2932b */ +var _ra71 = float32(-Float64FromFloat64(9.8143291473)) /* 0xc11d077e */ +var _sa11 = float32(19.65127182) /* 0x419d35ce */ +var _sa21 = float32(137.65776062) /* 0x4309a863 */ +var _sa31 = float32(434.56588745) /* 0x43d9486f */ +var _sa41 = float32(645.38726807) /* 0x442158c9 */ +var _sa51 = float32(429.00814819) /* 0x43d6810b */ +var _sa61 = float32(108.63500214) /* 0x42d9451f */ +var _sa71 = float32(6.5702495575) /* 0x40d23f7c */ +var _sa81 = float32(-Float64FromFloat64(0.060424413532)) /* 0xbd777f97 */ +/* + * Coefficients for approximation to erfc in [1/.35,28] + */ +var _rb01 = float32(-Float64FromFloat64(0.009864943102)) /* 0xbc21a092 */ +var _rb11 = float32(-Float64FromFloat64(0.79928326607)) /* 0xbf4c9dd4 */ +var _rb21 = float32(-Float64FromFloat64(17.757955551)) /* 0xc18e104b */ +var _rb31 = float32(-Float64FromFloat64(160.63638306)) /* 0xc320a2ea */ +var _rb41 = float32(-Float64FromFloat64(637.56646729)) /* 0xc41f6441 */ +var _rb51 = float32(-Float64FromFloat64(1025.0950928)) /* 0xc480230b */ +var _rb61 = float32(-Float64FromFloat64(483.51919556)) /* 0xc3f1c275 */ +var _sb11 = float32(30.338060379) /* 0x41f2b459 */ +var _sb21 = float32(325.79251099) /* 0x43a2e571 */ +var _sb31 = float32(1536.7296143) /* 0x44c01759 */ +var _sb41 = float32(3199.8581543) /* 0x4547fdbb */ +var _sb51 = float32(2553.050293) /* 0x451f90ce */ +var _sb61 = float32(474.52853394) /* 0x43ed43a7 */ +var _sb71 = float32(-Float64FromFloat64(22.440952301)) /* 0xc1b38712 */ + +func _erfc11(tls *TLS, x float32) (r float32) { + var P, Q, s Tfloat_t + _, _, _ = P, Q, s + s = Xfabsf(tls, x) - Float32FromInt32(1) + P = _pa01 + float32(s*(_pa11+float32(s*(_pa21+float32(s*(_pa31+float32(s*(_pa41+float32(s*(_pa51+float32(s*_pa61))))))))))) + Q = Float32FromInt32(1) + Tfloat_t(s*(_qa11+float32(s*(_qa21+float32(s*(_qa31+float32(s*(_qa41+float32(s*(_qa51+float32(s*_qa61))))))))))) + return Float32FromInt32(1) - _erx1 - P/Q +} + +func _erfc21(tls *TLS, ix Tuint32_t, x float32) (r float32) { + var R, S, s Tfloat_t + var z float32 + var v1 Tuint32_t + _, _, _, _, _ = R, S, s, z, v1 + if ix < uint32(0x3fa00000) { /* |x| < 1.25 */ + return _erfc11(tls, x) + } + x = Xfabsf(tls, x) + s = Float32FromInt32(1) / float32(x*x) + if ix < uint32(0x4036db6d) { /* |x| < 1/0.35 */ + R = _ra01 + float32(s*(_ra11+float32(s*(_ra21+float32(s*(_ra31+float32(s*(_ra41+float32(s*(_ra51+float32(s*(_ra61+float32(s*_ra71))))))))))))) + S = Float32FromFloat32(1) + float32(s*(_sa11+float32(s*(_sa21+float32(s*(_sa31+float32(s*(_sa41+float32(s*(_sa51+float32(s*(_sa61+float32(s*(_sa71+float32(s*_sa81))))))))))))))) + } else { /* |x| >= 1/0.35 */ + R = _rb01 + float32(s*(_rb11+float32(s*(_rb21+float32(s*(_rb31+float32(s*(_rb41+float32(s*(_rb51+float32(s*_rb61))))))))))) + S = Float32FromFloat32(1) + float32(s*(_sb11+float32(s*(_sb21+float32(s*(_sb31+float32(s*(_sb41+float32(s*(_sb51+float32(s*(_sb61+float32(s*_sb71))))))))))))) + } + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + v1 = ix & uint32(0xffffe000) + z = *(*float32)(unsafe.Pointer(&v1)) + return float32(Xexpf(tls, float32(-z*z)-Float32FromFloat32(0.5625))*Xexpf(tls, float32((z-x)*(z+x))+R/S)) / x +} + +func Xerff(tls *TLS, x float32) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var ix Tuint32_t + var r, s, y, z, v1 float32 + var sign int32 + _, _, _, _, _, _, _ = ix, r, s, sign, y, z, v1 + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x7f800000) { + /* erf(nan)=nan, erf(+-inf)=+-1 */ + return float32(int32(1)-int32(2)*sign) + Float32FromInt32(1)/x + } + if ix < uint32(0x3f580000) { /* |x| < 0.84375 */ + if ix < uint32(0x31800000) { /* |x| < 2**-28 */ + /*avoid underflow */ + return float32(Float32FromFloat32(0.125) * (float32(Float32FromInt32(8)*x) + float32(_efx81*x))) + } + z = float32(x * x) + r = _pp01 + float32(z*(_pp11+float32(z*(_pp21+float32(z*(_pp31+float32(z*_pp41))))))) + s = Float32FromInt32(1) + float32(z*(_qq11+float32(z*(_qq21+float32(z*(_qq31+float32(z*(_qq41+float32(z*_qq51))))))))) + y = r / s + return x + float32(x*y) + } + if ix < uint32(0x40c00000) { /* |x| < 6 */ + y = Float32FromInt32(1) - _erfc21(tls, ix, x) + } else { + y = Float32FromInt32(1) - Float32FromFloat32(7.52316384526264e-37) + } + if sign != 0 { + v1 = -y + } else { + v1 = y + } + return v1 +} + +func Xerfcf(tls *TLS, x float32) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var ix Tuint32_t + var r, s, y, z, v1 float32 + var sign int32 + _, _, _, _, _, _, _ = ix, r, s, sign, y, z, v1 + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x7f800000) { + /* erfc(nan)=nan, erfc(+-inf)=0,2 */ + return float32(int32(2)*sign) + Float32FromInt32(1)/x + } + if ix < uint32(0x3f580000) { /* |x| < 0.84375 */ + if ix < uint32(0x23800000) { /* |x| < 2**-56 */ + return Float32FromFloat32(1) - x + } + z = float32(x * x) + r = _pp01 + float32(z*(_pp11+float32(z*(_pp21+float32(z*(_pp31+float32(z*_pp41))))))) + s = Float32FromFloat32(1) + float32(z*(_qq11+float32(z*(_qq21+float32(z*(_qq31+float32(z*(_qq41+float32(z*_qq51))))))))) + y = r / s + if sign != 0 || ix < uint32(0x3e800000) { /* x < 1/4 */ + return Float32FromFloat32(1) - (x + float32(x*y)) + } + return Float32FromFloat32(0.5) - (x - Float32FromFloat32(0.5) + float32(x*y)) + } + if ix < uint32(0x41e00000) { /* |x| < 28 */ + if sign != 0 { + v1 = Float32FromInt32(2) - _erfc21(tls, ix, x) + } else { + v1 = _erfc21(tls, ix, x) + } + return v1 + } + if sign != 0 { + v1 = Float32FromInt32(2) - Float32FromFloat32(7.52316384526264e-37) + } else { + v1 = float32(Float32FromFloat32(7.52316384526264e-37) * Float32FromFloat32(7.52316384526264e-37)) + } + return v1 +} + +func Xerfl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xerf(tls, x) +} + +func Xerfcl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xerfc(tls, x) +} + +const EXP2_POLY_ORDER = 5 +const EXP_POLY_ORDER = 5 +const EXP_TABLE_BITS = 7 +const EXP_USE_TOINT_NARROW = 0 +const N = 128 + +// C documentation +// +// /* Handle cases that may overflow or underflow when computing the result that +// is scale*(1+TMP) without intermediate rounding. The bit representation of +// scale is in SBITS, however it has a computed exponent that may have +// overflown into the sign bit so that needs to be adjusted before using it as +// a double. (int32_t)KI is the k used in the argument reduction and exponent +// adjustment of scale, positive k here means the result may overflow and +// negative k means the result may underflow. */ +func _specialcase(tls *TLS, tmp Tdouble_t, sbits Tuint64_t, ki Tuint64_t) (r float64) { + var hi, lo, scale, y3 Tdouble_t + var y, y1, y2, v1 float64 + _, _, _, _, _, _, _, _ = hi, lo, scale, y, y1, y2, y3, v1 + if ki&uint64(0x80000000) == uint64(0) { + /* k > 0, the exponent of scale might have overflowed by <= 460. */ + sbits = sbits - Uint64FromUint64(1009)<> int32(52)) +} + +func Xexp(tls *TLS, x1 float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x1=%v, (%v:)", tls, x1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var abstop Tuint32_t + var idx, ki, sbits, top, v5 Tuint64_t + var kd, r, r2, scale, tail, tmp, z Tdouble_t + var y, v1 float64 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = abstop, idx, kd, ki, r, r2, sbits, scale, tail, tmp, top, y, z, v1, v5 + abstop = _top12(tls, x1) & uint32(0x7ff) + if abstop-_top12(tls, float64(5.551115123125783e-17)) >= _top12(tls, float64(512))-_top12(tls, float64(5.551115123125783e-17)) { + if abstop-_top12(tls, float64(5.551115123125783e-17)) >= uint32(0x80000000) { + /* Avoid spurious underflow for tiny x. */ + /* Note: 0 is common input. */ + return float64(1) + x1 + } + if abstop >= _top12(tls, float64(1024)) { + v1 = float64(-X__builtin_inff(tls)) + if *(*Tuint64_t)(unsafe.Pointer(&x1)) == *(*Tuint64_t)(unsafe.Pointer(&v1)) { + return float64(0) + } + if abstop >= _top12(tls, float64(X__builtin_inff(tls))) { + return float64(1) + x1 + } + if *(*Tuint64_t)(unsafe.Pointer(&x1))>>int32(63) != 0 { + return X__math_uflow(tls, uint32(0)) + } else { + return X__math_oflow(tls, uint32(0)) + } + } + /* Large x is special cased below. */ + abstop = uint32(0) + } + /* exp(x) = 2^(k/N) * exp(r), with exp(r) in [2^(-1/2N),2^(1/2N)]. */ + /* x = ln2/N*k + r, with int k and r in [-ln2/2N, ln2/2N]. */ + z = Tdouble_t(X__exp_data.Finvln2N * x1) + /* z - kd is in [-1, 1] in non-nearest rounding modes. */ + y = z + X__exp_data.Fshift + v1 = y + goto _3 +_3: + kd = v1 + v1 = kd + ki = *(*Tuint64_t)(unsafe.Pointer(&v1)) + kd = kd - X__exp_data.Fshift + r = x1 + float64(kd*X__exp_data.Fnegln2hiN) + float64(kd*X__exp_data.Fnegln2loN) + /* 2^(k/N) ~= scale * (1 + tail). */ + idx = uint64(2) * (ki % Uint64FromInt32(Int32FromInt32(1)< 2^-200 and scale > 2^-739, so there + is no spurious underflow here even without fma. */ + y = scale + Tdouble_t(scale*tmp) + v1 = y + goto _7 +_7: + return v1 +} + +const HUGE = 0 + +func Xexp10(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var y float64 + var _ /* n at bp+0 */ float64 + var _ /* u at bp+8 */ struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + } + _ = y + y = Xmodf(tls, x, bp) + *(*struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp + 8)) = struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp + 8)) = **(**float64)(__ccgo_up(bp)) + /* fabs(n) < 16 without raising invalid on nan */ + if *(*Tuint64_t)(unsafe.Pointer(bp + 8))>>int32(52)&uint64(0x7ff) < Uint64FromInt32(Int32FromInt32(0x3ff)+Int32FromInt32(4)) { + if !(y != 0) { + return _p10[int32(**(**float64)(__ccgo_up(bp)))+int32(15)] + } + y = Xexp2(tls, float64(float64(3.321928094887362)*y)) + return float64(y * _p10[int32(**(**float64)(__ccgo_up(bp)))+int32(15)]) + } + return Xpow(tls, float64(10), x) +} + +var _p10 = [31]float64{ + 0: float64(1e-15), + 1: float64(1e-14), + 2: float64(1e-13), + 3: float64(1e-12), + 4: float64(1e-11), + 5: float64(1e-10), + 6: float64(1e-09), + 7: float64(1e-08), + 8: float64(1e-07), + 9: float64(1e-06), + 10: float64(1e-05), + 11: float64(0.0001), + 12: float64(0.001), + 13: float64(0.01), + 14: float64(0.1), + 15: Float64FromInt32(1), + 16: float64(10), + 17: float64(100), + 18: float64(1000), + 19: float64(10000), + 20: float64(100000), + 21: float64(1e+06), + 22: float64(1e+07), + 23: float64(1e+08), + 24: float64(1e+09), + 25: float64(1e+10), + 26: float64(1e+11), + 27: float64(1e+12), + 28: float64(1e+13), + 29: float64(1e+14), + 30: float64(1e+15), +} + +func Xpow10(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xexp10(tls, x) +} + +func Xexp10f(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var y float32 + var _ /* n at bp+0 */ float32 + var _ /* u at bp+4 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _ = y + y = Xmodff(tls, x, bp) + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp + 4)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp + 4)) = **(**float32)(__ccgo_up(bp)) + /* fabsf(n) < 8 without raising invalid on nan */ + if *(*Tuint32_t)(unsafe.Pointer(bp + 4))>>int32(23)&uint32(0xff) < Uint32FromInt32(Int32FromInt32(0x7f)+Int32FromInt32(3)) { + if !(y != 0) { + return _p101[int32(**(**float32)(__ccgo_up(bp)))+int32(7)] + } + y = Xexp2f(tls, float32(Float32FromFloat32(3.321928094887362)*y)) + return float32(y * _p101[int32(**(**float32)(__ccgo_up(bp)))+int32(7)]) + } + return float32(Xexp2(tls, float64(float64(3.321928094887362)*float64(x)))) +} + +var _p101 = [15]float32{ + 0: Float32FromFloat32(1e-07), + 1: Float32FromFloat32(1e-06), + 2: Float32FromFloat32(1e-05), + 3: Float32FromFloat32(0.0001), + 4: Float32FromFloat32(0.001), + 5: Float32FromFloat32(0.01), + 6: Float32FromFloat32(0.1), + 7: Float32FromInt32(1), + 8: float32(10), + 9: float32(100), + 10: float32(1000), + 11: float32(10000), + 12: float32(100000), + 13: float32(1e+06), + 14: float32(1e+07), +} + +func Xpow10f(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xexp10f(tls, x) +} + +func Xexp10l(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xexp10(tls, x) +} + +func Xpow10l(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xexp10l(tls, x) +} + +// C documentation +// +// /* Handle cases that may overflow or underflow when computing the result that +// is scale*(1+TMP) without intermediate rounding. The bit representation of +// scale is in SBITS, however it has a computed exponent that may have +// overflown into the sign bit so that needs to be adjusted before using it as +// a double. (int32_t)KI is the k used in the argument reduction and exponent +// adjustment of scale, positive k here means the result may overflow and +// negative k means the result may underflow. */ +func _specialcase1(tls *TLS, tmp Tdouble_t, sbits Tuint64_t, ki Tuint64_t) (r float64) { + var hi, lo, scale, y3 Tdouble_t + var y, y1, y2, v1 float64 + _, _, _, _, _, _, _, _ = hi, lo, scale, y, y1, y2, y3, v1 + if ki&uint64(0x80000000) == uint64(0) { + /* k > 0, the exponent of scale might have overflowed by 1. */ + sbits = sbits - Uint64FromUint64(1)<> int32(52)) +} + +func Xexp2(tls *TLS, x1 float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x1=%v, (%v:)", tls, x1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var abstop Tuint32_t + var idx, ki, sbits, top, v7 Tuint64_t + var kd, r, r2, scale, tail, tmp Tdouble_t + var y, v1 float64 + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = abstop, idx, kd, ki, r, r2, sbits, scale, tail, tmp, top, y, v1, v7 + abstop = _top121(tls, x1) & uint32(0x7ff) + if abstop-_top121(tls, float64(5.551115123125783e-17)) >= _top121(tls, float64(512))-_top121(tls, float64(5.551115123125783e-17)) { + if abstop-_top121(tls, float64(5.551115123125783e-17)) >= uint32(0x80000000) { + /* Avoid spurious underflow for tiny x. */ + /* Note: 0 is common input. */ + return float64(1) + x1 + } + if abstop >= _top121(tls, float64(1024)) { + v1 = float64(-X__builtin_inff(tls)) + if *(*Tuint64_t)(unsafe.Pointer(&x1)) == *(*Tuint64_t)(unsafe.Pointer(&v1)) { + return float64(0) + } + if abstop >= _top121(tls, float64(X__builtin_inff(tls))) { + return float64(1) + x1 + } + if !(*(*Tuint64_t)(unsafe.Pointer(&x1))>>Int32FromInt32(63) != 0) { + return X__math_oflow(tls, uint32(0)) + } else { + v1 = -Float64FromFloat64(1075) + if *(*Tuint64_t)(unsafe.Pointer(&x1)) >= *(*Tuint64_t)(unsafe.Pointer(&v1)) { + return X__math_uflow(tls, uint32(0)) + } + } + } + v1 = float64(928) + if uint64(2)**(*Tuint64_t)(unsafe.Pointer(&x1)) > uint64(2)**(*Tuint64_t)(unsafe.Pointer(&v1)) { + /* Large x is special cased below. */ + abstop = uint32(0) + } + } + /* exp2(x) = 2^(k/N) * 2^r, with 2^r in [2^(-1/2N),2^(1/2N)]. */ + /* x = k/N + r, with int k and r in [-1/2N, 1/2N]. */ + y = x1 + X__exp_data.Fexp2_shift + v1 = y + goto _5 +_5: + kd = v1 + v1 = kd + ki = *(*Tuint64_t)(unsafe.Pointer(&v1)) /* k. */ + kd = kd - X__exp_data.Fexp2_shift /* k/N for int k. */ + r = x1 - kd + /* 2^(k/N) ~= scale * (1 + tail). */ + idx = uint64(2) * (ki % Uint64FromInt32(Int32FromInt32(1)< 2^-65 and scale > 2^-928, so there + is no spurious underflow here even without fma. */ + y = scale + Tdouble_t(scale*tmp) + v1 = y + goto _9 +_9: + return v1 +} + +const EXP2F_POLY_ORDER = 3 +const EXP2F_TABLE_BITS = 5 +const N1 = 32 + +/* +EXP2F_TABLE_BITS = 5 +EXP2F_POLY_ORDER = 3 + +ULP error: 0.502 (nearest rounding.) +Relative error: 1.69 * 2^-34 in [-1/64, 1/64] (before rounding.) +Wrong count: 168353 (all nearest rounding wrong results with fma.) +Non-nearest ULP error: 1 (rounded ULP error) +*/ + +func _top122(tls *TLS, x float32) (r Tuint32_t) { + return *(*Tuint32_t)(unsafe.Pointer(&x)) >> int32(20) +} + +func Xexp2f(tls *TLS, x2 float32) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x2=%v, (%v:)", tls, x2, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var abstop Tuint32_t + var kd, r, r2, s, xd, y2, z Tdouble_t + var ki, t Tuint64_t + var y, v1 float32 + var y1, v2 float64 + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = abstop, kd, ki, r, r2, s, t, xd, y, y1, y2, z, v1, v2 + xd = float64(x2) + abstop = _top122(tls, x2) & uint32(0x7ff) + if abstop >= _top122(tls, Float32FromFloat32(128)) { + /* |x| >= 128 or x is nan. */ + v1 = -X__builtin_inff(tls) + if *(*Tuint32_t)(unsafe.Pointer(&x2)) == *(*Tuint32_t)(unsafe.Pointer(&v1)) { + return Float32FromFloat32(0) + } + if abstop >= _top122(tls, X__builtin_inff(tls)) { + return x2 + x2 + } + if x2 > Float32FromFloat32(0) { + return X__math_oflowf(tls, uint32(0)) + } + if x2 <= -Float32FromFloat32(150) { + return X__math_uflowf(tls, uint32(0)) + } + } + /* x = k/N + r with r in [-1/(2N), 1/(2N)] and int k. */ + y1 = xd + X__exp2f_data.Fshift_scaled + v2 = y1 + goto _3 +_3: + kd = v2 + v2 = kd + ki = *(*Tuint64_t)(unsafe.Pointer(&v2)) + kd = kd - X__exp2f_data.Fshift_scaled /* k/N for int k. */ + r = xd - kd + /* exp2(x) = 2^(k/N) * 2^r ~= s * (C0*r^3 + C1*r^2 + C2*r + 1) */ + t = **(**Tuint64_t)(__ccgo_up(uintptr(unsafe.Pointer(&X__exp2f_data)) + uintptr(ki%Uint64FromInt32(Int32FromInt32(1)< %v", r) }() + } + return Xexp2(tls, x) +} + +const N2 = 128 + +type Texp_data = struct { + F__ccgo_align [0]uint32 + Finvln2N float64 + Fshift float64 + Fnegln2hiN float64 + Fnegln2loN float64 + Fpoly [4]float64 + Fexp2_shift float64 + Fexp2_poly [5]float64 + Ftab [256]Tuint64_t +} + +const N3 = 32 + +/* +EXP2F_TABLE_BITS = 5 +EXP2F_POLY_ORDER = 3 + +ULP error: 0.502 (nearest rounding.) +Relative error: 1.69 * 2^-34 in [-ln2/64, ln2/64] (before rounding.) +Wrong count: 170635 (all nearest rounding wrong results with fma.) +Non-nearest ULP error: 1 (rounded ULP error) +*/ + +func _top123(tls *TLS, x float32) (r Tuint32_t) { + return *(*Tuint32_t)(unsafe.Pointer(&x)) >> int32(20) +} + +func Xexpf(tls *TLS, x2 float32) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x2=%v, (%v:)", tls, x2, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var abstop Tuint32_t + var kd, r, r2, s, xd, y2, z Tdouble_t + var ki, t Tuint64_t + var y, v1 float32 + var y1, v2 float64 + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = abstop, kd, ki, r, r2, s, t, xd, y, y1, y2, z, v1, v2 + xd = float64(x2) + abstop = _top123(tls, x2) & uint32(0x7ff) + if abstop >= _top123(tls, Float32FromFloat32(88)) { + /* |x| >= 88 or x is nan. */ + v1 = -X__builtin_inff(tls) + if *(*Tuint32_t)(unsafe.Pointer(&x2)) == *(*Tuint32_t)(unsafe.Pointer(&v1)) { + return Float32FromFloat32(0) + } + if abstop >= _top123(tls, X__builtin_inff(tls)) { + return x2 + x2 + } + if x2 > Float32FromFloat32(88.72283172607422) { /* x > log(0x1p128) ~= 88.72 */ + return X__math_oflowf(tls, uint32(0)) + } + if x2 < -Float32FromFloat32(103.97207641601562) { /* x < log(0x1p-150) ~= -103.97 */ + return X__math_uflowf(tls, uint32(0)) + } + } + /* x*N/Ln2 = k + r with r in [-1/2, 1/2] and int k. */ + z = Tdouble_t(X__exp2f_data.Finvln2_scaled * xd) + /* Round and convert z to int, the result is in [-150*N, 128*N] and + ideally ties-to-even rule is used, otherwise the magnitude of r + can be bigger which gives larger approximation error. */ + y1 = z + X__exp2f_data.Fshift + v2 = y1 + goto _3 +_3: + kd = v2 + v2 = kd + ki = *(*Tuint64_t)(unsafe.Pointer(&v2)) + kd = kd - X__exp2f_data.Fshift + r = z - kd + /* exp(x) = 2^(k/N) * 2^(r/N) ~= s * (C0*r^3 + C1*r^2 + C2*r + 1) */ + t = **(**Tuint64_t)(__ccgo_up(uintptr(unsafe.Pointer(&X__exp2f_data)) + uintptr(ki%Uint64FromInt32(Int32FromInt32(1)< %v", r) }() + } + return Xexp(tls, x) +} + +var _o_threshold = float64(709.782712893384) /* 0x40862E42, 0xFEFA39EF */ +var _ln2_hi = float64(0.6931471803691238) /* 0x3fe62e42, 0xfee00000 */ +var _ln2_lo = float64(1.9082149292705877e-10) /* 0x3dea39ef, 0x35793c76 */ +var _invln2 = float64(1.4426950408889634) /* 0x3ff71547, 0x652b82fe */ +/* Scaled Q's: Qn_here = 2**n * Qn_above, for R(2*z) where z = hxs = x*x/2: */ +var _Q1 = -Float64FromFloat64(0.03333333333333313) /* BFA11111 111110F4 */ +var _Q2 = float64(0.0015873015872548146) /* 3F5A01A0 19FE5585 */ +var _Q3 = -Float64FromFloat64(7.93650757867488e-05) /* BF14CE19 9EAADBB7 */ +var _Q4 = float64(4.008217827329362e-06) /* 3ED0CFCA 86E65239 */ +var _Q5 = -Float64FromFloat64(2.0109921818362437e-07) /* BE8AFDB7 6E09C32D */ + +func Xexpm1(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var c, e, hfx, hi, hxs, lo, r1, t, twopk, y3 Tdouble_t + var hx Tuint32_t + var k, sign int32 + var y float32 + var y1, y2, v3 float64 + var v1 uint64 + var _ /* __u at bp+0 */ struct { + F__ccgo_align [0]uint32 + F__i [0]uint64 + F__f float64 + } + var _ /* u at bp+8 */ struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = c, e, hfx, hi, hx, hxs, k, lo, r1, sign, t, twopk, y, y1, y2, y3, v1, v3 + *(*struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp + 8)) = struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp + 8)) = x3 + hx = uint32(*(*Tuint64_t)(unsafe.Pointer(bp + 8)) >> int32(32) & uint64(0x7fffffff)) + sign = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp + 8)) >> int32(63)) + /* filter out huge and non-finite argument */ + if hx >= uint32(0x4043687A) { /* if |x|>=56*ln2 */ + *(*float64)(unsafe.Pointer(bp)) = x3 + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 + _2: + if BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)< _o_threshold { + x3 = x3 * float64(8.98846567431158e+307) + return x3 + } + } + /* argument reduction */ + if hx > uint32(0x3fd62e42) { /* if |x| > 0.5 ln2 */ + if hx < uint32(0x3FF0A2B2) { /* and |x| < 1.5 ln2 */ + if !(sign != 0) { + hi = x3 - _ln2_hi + lo = _ln2_lo + k = int32(1) + } else { + hi = x3 + _ln2_hi + lo = -_ln2_lo + k = -int32(1) + } + } else { + if sign != 0 { + v3 = -Float64FromFloat64(0.5) + } else { + v3 = float64(0.5) + } + k = int32(float64(_invln2*x3) + v3) + t = float64(k) + hi = x3 - float64(t*_ln2_hi) /* t*ln2_hi is exact here */ + lo = Tdouble_t(t * _ln2_lo) + } + x3 = hi - lo + c = hi - x3 - lo + } else { + if hx < uint32(0x3c900000) { /* |x| < 2**-54, return x */ + if hx < uint32(0x00100000) { + if uint32(4) == uint32(4) { + y = float32(x3) + } else { + if uint32(4) == uint32(8) { + y1 = float64(float32(x3)) + } else { + y2 = float64(float32(x3)) + } + } + } + return x3 + } else { + k = 0 + } + } + /* x is now in primary range */ + hfx = Tdouble_t(float64(0.5) * x3) + hxs = Tdouble_t(x3 * hfx) + r1 = float64(1) + float64(hxs*(_Q1+float64(hxs*(_Q2+float64(hxs*(_Q3+float64(hxs*(_Q4+float64(hxs*_Q5))))))))) + t = float64(3) - float64(r1*hfx) + e = Tdouble_t(hxs * ((r1 - t) / (Float64FromFloat64(6) - float64(x3*t)))) + if k == 0 { /* c is 0 */ + return x3 - (float64(x3*e) - hxs) + } + e = float64(x3*(e-c)) - c + e = e - hxs + /* exp(x) ~ 2^k (Xreduced - e + 1) */ + if k == -int32(1) { + return float64(float64(0.5)*(x3-e)) - float64(0.5) + } + if k == int32(1) { + if x3 < -Float64FromFloat64(0.25) { + return float64(-Float64FromFloat64(2) * (e - (x3 + Float64FromFloat64(0.5)))) + } + return float64(1) + float64(float64(2)*(x3-e)) + } + *(*Tuint64_t)(unsafe.Pointer(bp + 8)) = Uint64FromInt32(Int32FromInt32(0x3ff)+k) << int32(52) /* 2^k */ + twopk = *(*float64)(unsafe.Pointer(bp + 8)) + if k < 0 || k > int32(56) { /* suffice to return exp(x)-1 */ + y3 = x3 - e + float64(1) + if k == int32(1024) { + y3 = Tdouble_t(Tdouble_t(y3*float64(2)) * float64(8.98846567431158e+307)) + } else { + y3 = Tdouble_t(y3 * twopk) + } + return y3 - float64(1) + } + *(*Tuint64_t)(unsafe.Pointer(bp + 8)) = Uint64FromInt32(Int32FromInt32(0x3ff)-k) << int32(52) /* 2^-k */ + if k < int32(20) { + y3 = Tdouble_t((x3 - e + (Float64FromInt32(1) - *(*float64)(unsafe.Pointer(bp + 8)))) * twopk) + } else { + y3 = Tdouble_t((x3 - (e + *(*float64)(unsafe.Pointer(bp + 8))) + Float64FromInt32(1)) * twopk) + } + return y3 +} + +var _ln2_hi1 = float32(0.69313812256) /* 0x3f317180 */ +var _ln2_lo1 = float32(9.0580006145e-06) /* 0x3717f7d1 */ +var _invln21 = float32(1.4426950216) /* 0x3fb8aa3b */ +/* + * Domain [-0.34568, 0.34568], range ~[-6.694e-10, 6.696e-10]: + * |6 / x * (1 + 2 * (1 / (exp(x) - 1) - 1 / x)) - q(x)| < 2**-30.04 + * Scaled coefficients: Qn_here = 2**n * Qn_for_q (see s_expm1.c): + */ +var _Q11 = float32(-Float64FromFloat64(0.033333212137)) /* -0x888868.0p-28 */ +var _Q21 = float32(0.0015807170421) /* 0xcf3010.0p-33 */ + +func Xexpm1f(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var c, e, hfx, hi, hxs, lo, r1, t, twopk, y3 Tfloat_t + var hx Tuint32_t + var k, sign int32 + var y, v1 float32 + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = c, e, hfx, hi, hx, hxs, k, lo, r1, sign, t, twopk, y, y1, y2, y3, v1 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + hx = *(*Tuint32_t)(unsafe.Pointer(bp)) & uint32(0x7fffffff) + sign = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(31)) + /* filter out huge and non-finite argument */ + if hx >= uint32(0x4195b844) { /* if |x|>=27*ln2 */ + if hx > uint32(0x7f800000) { /* NaN */ + return x3 + } + if sign != 0 { + return float32(-Int32FromInt32(1)) + } + if hx > uint32(0x42b17217) { /* x > log(FLT_MAX) */ + x3 = x3 * Float32FromFloat32(1.7014118346046923e+38) + return x3 + } + } + /* argument reduction */ + if hx > uint32(0x3eb17218) { /* if |x| > 0.5 ln2 */ + if hx < uint32(0x3F851592) { /* and |x| < 1.5 ln2 */ + if !(sign != 0) { + hi = x3 - _ln2_hi1 + lo = _ln2_lo1 + k = int32(1) + } else { + hi = x3 + _ln2_hi1 + lo = -_ln2_lo1 + k = -int32(1) + } + } else { + if sign != 0 { + v1 = -Float32FromFloat32(0.5) + } else { + v1 = Float32FromFloat32(0.5) + } + k = int32(float32(_invln21*x3) + v1) + t = float32(k) + hi = x3 - float32(t*_ln2_hi1) /* t*ln2_hi is exact here */ + lo = Tfloat_t(t * _ln2_lo1) + } + x3 = hi - lo + c = hi - x3 - lo + } else { + if hx < uint32(0x33000000) { /* when |x|<2**-25, return x */ + if hx < uint32(0x00800000) { + if uint32(4) == uint32(4) { + y = float32(x3 * x3) + } else { + if uint32(4) == uint32(8) { + y1 = float64(x3 * x3) + } else { + y2 = float64(x3 * x3) + } + } + } + return x3 + } else { + k = 0 + } + } + /* x is now in primary range */ + hfx = Tfloat_t(Float32FromFloat32(0.5) * x3) + hxs = Tfloat_t(x3 * hfx) + r1 = Float32FromFloat32(1) + float32(hxs*(_Q11+float32(hxs*_Q21))) + t = Float32FromFloat32(3) - float32(r1*hfx) + e = Tfloat_t(hxs * ((r1 - t) / (Float32FromFloat32(6) - float32(x3*t)))) + if k == 0 { /* c is 0 */ + return x3 - (float32(x3*e) - hxs) + } + e = float32(x3*(e-c)) - c + e = e - hxs + /* exp(x) ~ 2^k (Xreduced - e + 1) */ + if k == -int32(1) { + return float32(Float32FromFloat32(0.5)*(x3-e)) - Float32FromFloat32(0.5) + } + if k == int32(1) { + if x3 < -Float32FromFloat32(0.25) { + return float32(-Float32FromFloat32(2) * (e - (x3 + Float32FromFloat32(0.5)))) + } + return Float32FromFloat32(1) + float32(Float32FromFloat32(2)*(x3-e)) + } + *(*Tuint32_t)(unsafe.Pointer(bp)) = Uint32FromInt32((int32(0x7f) + k) << int32(23)) /* 2^k */ + twopk = *(*float32)(unsafe.Pointer(bp)) + if k < 0 || k > int32(56) { /* suffice to return exp(x)-1 */ + y3 = x3 - e + Float32FromFloat32(1) + if k == int32(128) { + y3 = Tfloat_t(Tfloat_t(y3*Float32FromFloat32(2)) * Float32FromFloat32(1.7014118346046923e+38)) + } else { + y3 = Tfloat_t(y3 * twopk) + } + return y3 - Float32FromFloat32(1) + } + *(*Tuint32_t)(unsafe.Pointer(bp)) = Uint32FromInt32((int32(0x7f) - k) << int32(23)) /* 2^-k */ + if k < int32(23) { + y3 = Tfloat_t((x3 - e + (Float32FromInt32(1) - *(*float32)(unsafe.Pointer(bp)))) * twopk) + } else { + y3 = Tfloat_t((x3 - (e + *(*float32)(unsafe.Pointer(bp))) + Float32FromInt32(1)) * twopk) + } + return y3 +} + +func Xexpm1l(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xexpm1(tls, x) +} + +func Xfabs(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* u at bp+0 */ struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + } + *(*struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + *(*Tuint64_t)(unsafe.Pointer(bp)) &= -Uint64FromUint64(1) / Uint64FromInt32(2) + return *(*float64)(unsafe.Pointer(bp)) +} + +func Xfabsf(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + *(*Tuint32_t)(unsafe.Pointer(bp)) &= uint32(0x7fffffff) + return *(*float32)(unsafe.Pointer(bp)) +} + +func Xfabsl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfabs(tls, x) +} + +func Xfdim(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uint64 + var v5 float64 + var _ /* __u at bp+0 */ struct { + F__ccgo_align [0]uint32 + F__i [0]uint64 + F__f float64 + } + _, _ = v1, v5 + *(*float64)(unsafe.Pointer(bp)) = x + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + if BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)< y { + v5 = x - y + } else { + v5 = Float64FromInt32(0) + } + return v5 +} + +func Xfdimf(tls *TLS, x float32, y float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uint32 + var v5 float32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _, _ = v1, v5 + *(*float32)(unsafe.Pointer(bp)) = x + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + if BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return x + } + *(*float32)(unsafe.Pointer(bp)) = y + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _4 +_4: + if BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return y + } + if x > y { + v5 = x - y + } else { + v5 = Float32FromInt32(0) + } + return v5 +} + +func Xfdiml(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfdim(tls, x, y) +} + +func Xfinite(tls *TLS, x float64) (r int32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uint64 + var _ /* __u at bp+0 */ struct { + F__ccgo_align [0]uint32 + F__i [0]uint64 + F__f float64 + } + _ = v1 + *(*float64)(unsafe.Pointer(bp)) = x + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + return BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) < Uint64FromUint64(0x7ff)< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uint32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _ = v1 + *(*float32)(unsafe.Pointer(bp)) = x + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + return BoolInt32(v1&uint32(0x7fffffff) < uint32(0x7f800000)) +} + +const DBL_EPSILON7 = 2.220446049250313e-16 + +var _toint3 = Float64FromInt32(1) / Float64FromFloat64(2.220446049250313e-16) + +func Xfloor(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e, v1 int32 + var y float32 + var y1, y2 float64 + var y3 Tdouble_t + var _ /* u at bp+0 */ struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _ = e, y, y1, y2, y3, v1 + *(*struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + e = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + if e >= Int32FromInt32(0x3ff)+Int32FromInt32(52) || x3 == Float64FromInt32(0) { + return x3 + } + /* y = int(x) - x, where int(x) is an integer neighbor of x */ + if *(*Tuint64_t)(unsafe.Pointer(bp))>>int32(63) != 0 { + y3 = x3 - _toint3 + _toint3 - x3 + } else { + y3 = x3 + _toint3 - _toint3 - x3 + } + /* special case because of non-nearest rounding modes */ + if e <= Int32FromInt32(0x3ff)-Int32FromInt32(1) { + if uint32(8) == uint32(4) { + y = float32(y3) + } else { + if uint32(8) == uint32(8) { + y1 = y3 + } else { + y2 = y3 + } + } + if *(*Tuint64_t)(unsafe.Pointer(bp))>>int32(63) != 0 { + v1 = -int32(1) + } else { + v1 = 0 + } + return float64(v1) + } + if y3 > Float64FromInt32(0) { + return x3 + y3 - Float64FromInt32(1) + } + return x3 + y3 +} + +const DBL_EPSILON8 = 0 + +func Xfloorf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e int32 + var m Tuint32_t + var y float32 + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _ = e, m, y, y1, y2 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + e = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp))>>Int32FromInt32(23)&Uint32FromInt32(0xff)) - int32(0x7f) + if e >= int32(23) { + return x3 + } + if e >= 0 { + m = Uint32FromInt32(int32(0x007fffff) >> e) + if *(*Tuint32_t)(unsafe.Pointer(bp))&m == uint32(0) { + return x3 + } + if uint32(4) == uint32(4) { + y = x3 + Float32FromFloat32(1.329227995784916e+36) + } else { + if uint32(4) == uint32(8) { + y1 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } else { + y2 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } + } + if *(*Tuint32_t)(unsafe.Pointer(bp))>>int32(31) != 0 { + *(*Tuint32_t)(unsafe.Pointer(bp)) += m + } + *(*Tuint32_t)(unsafe.Pointer(bp)) &= ^m + } else { + if uint32(4) == uint32(4) { + y = x3 + Float32FromFloat32(1.329227995784916e+36) + } else { + if uint32(4) == uint32(8) { + y1 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } else { + y2 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } + } + if *(*Tuint32_t)(unsafe.Pointer(bp))>>int32(31) == uint32(0) { + *(*Tuint32_t)(unsafe.Pointer(bp)) = uint32(0) + } else { + if *(*Tuint32_t)(unsafe.Pointer(bp))< %v", r) }() + } + return Xfloor(tls, x) +} + +const DBL_MIN1 = 2.2250738585072014e-308 +const FLT_MIN1 = 1.1754943508222875e-38 +const ZEROINFNAN = 971 + +type Tnum = struct { + F__ccgo_align [0]uint32 + Fm Tuint64_t + Fe int32 + Fsign int32 +} + +func _normalize(tls *TLS, x float64) (r Tnum) { + var e, sign, v2 int32 + var ix Tuint64_t + var v1 float64 + _, _, _, _, _ = e, ix, sign, v1, v2 + ix = *(*Tuint64_t)(unsafe.Pointer(&x)) + e = Int32FromUint64(ix >> int32(52)) + sign = e & int32(0x800) + e = e & int32(0x7ff) + if !(e != 0) { + v1 = float64(x * float64(9.223372036854776e+18)) + ix = *(*Tuint64_t)(unsafe.Pointer(&v1)) + e = Int32FromUint64(ix >> int32(52) & uint64(0x7ff)) + if e != 0 { + v2 = e - int32(63) + } else { + v2 = int32(0x800) + } + e = v2 + } + ix = ix & (Uint64FromUint64(1)<> int32(32) + ylo = uint64(uint32(y)) + yhi = y >> int32(32) + t1 = xlo * ylo + t2 = xlo*yhi + xhi*ylo + t3 = xhi * yhi + **(**Tuint64_t)(__ccgo_up(lo)) = t1 + t2<>Int32FromInt32(32) + BoolUint64(t1 > **(**Tuint64_t)(__ccgo_up(lo))) +} + +func Xfma(tls *TLS, x1 float64, y float64, z float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x1=%v y=%v z=%v, (%v:)", tls, x1, y, z, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var c, r float64 + var d, e, nonzero, samesign, sign, v2 int32 + var fltmin float32 + var i Tint64_t + var nx, ny, nz Tnum + var t, zhi, zlo, v1 Tuint64_t + var tiny Tdouble_t + var _ /* rhi at bp+0 */ Tuint64_t + var _ /* rlo at bp+8 */ Tuint64_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = c, d, e, fltmin, i, nonzero, nx, ny, nz, r, samesign, sign, t, tiny, zhi, zlo, v1, v2 + nx = _normalize(tls, x1) + ny = _normalize(tls, y) + nz = _normalize(tls, z) + if nx.Fe >= Int32FromInt32(0x7ff)-Int32FromInt32(0x3ff)-Int32FromInt32(52)-Int32FromInt32(1) || ny.Fe >= Int32FromInt32(0x7ff)-Int32FromInt32(0x3ff)-Int32FromInt32(52)-Int32FromInt32(1) { + return float64(x1*y) + z + } + if nz.Fe >= Int32FromInt32(0x7ff)-Int32FromInt32(0x3ff)-Int32FromInt32(52)-Int32FromInt32(1) { + if nz.Fe > Int32FromInt32(0x7ff)-Int32FromInt32(0x3ff)-Int32FromInt32(52)-Int32FromInt32(1) { /* z==0 */ + return float64(x1*y) + z + } + return z + } + _mul(tls, bp, bp+8, nx.Fm, ny.Fm) + /* either top 20 or 21 bits of rhi and last 2 bits of rlo are 0 */ + /* align exponents */ + e = nx.Fe + ny.Fe + d = nz.Fe - e + /* shift bits z<<=kz, r>>=kr, so kz+kr == d, set e = e+kr (== ez-kz) */ + if d > 0 { + if d < int32(64) { + zlo = nz.Fm << d + zhi = nz.Fm >> (int32(64) - d) + } else { + zlo = uint64(0) + zhi = nz.Fm + e = nz.Fe - int32(64) + d = d - int32(64) + if d == 0 { + } else { + if d < int32(64) { + **(**Tuint64_t)(__ccgo_up(bp + 8)) = **(**Tuint64_t)(__ccgo_up(bp))<<(int32(64)-d) | **(**Tuint64_t)(__ccgo_up(bp + 8))>>d | BoolUint64(!!(**(**Tuint64_t)(__ccgo_up(bp + 8))<<(Int32FromInt32(64)-d) != 0)) + **(**Tuint64_t)(__ccgo_up(bp)) = **(**Tuint64_t)(__ccgo_up(bp)) >> d + } else { + **(**Tuint64_t)(__ccgo_up(bp + 8)) = uint64(1) + **(**Tuint64_t)(__ccgo_up(bp)) = uint64(0) + } + } + } + } else { + zhi = uint64(0) + d = -d + if d == 0 { + zlo = nz.Fm + } else { + if d < int32(64) { + zlo = nz.Fm>>d | BoolUint64(!!(nz.Fm<<(Int32FromInt32(64)-d) != 0)) + } else { + zlo = uint64(1) + } + } + } + /* add */ + sign = nx.Fsign ^ ny.Fsign + samesign = BoolInt32(!(sign^nz.Fsign != 0)) + nonzero = int32(1) + if samesign != 0 { + /* r += z */ + **(**Tuint64_t)(__ccgo_up(bp + 8)) = **(**Tuint64_t)(__ccgo_up(bp + 8)) + zlo + **(**Tuint64_t)(__ccgo_up(bp)) = **(**Tuint64_t)(__ccgo_up(bp)) + (zhi + BoolUint64(**(**Tuint64_t)(__ccgo_up(bp + 8)) < zlo)) + } else { + /* r -= z */ + t = **(**Tuint64_t)(__ccgo_up(bp + 8)) + **(**Tuint64_t)(__ccgo_up(bp + 8)) = **(**Tuint64_t)(__ccgo_up(bp + 8)) - zlo + **(**Tuint64_t)(__ccgo_up(bp)) = **(**Tuint64_t)(__ccgo_up(bp)) - zhi - BoolUint64(t < **(**Tuint64_t)(__ccgo_up(bp + 8))) + if **(**Tuint64_t)(__ccgo_up(bp))>>int32(63) != 0 { + **(**Tuint64_t)(__ccgo_up(bp + 8)) = -**(**Tuint64_t)(__ccgo_up(bp + 8)) + **(**Tuint64_t)(__ccgo_up(bp)) = -**(**Tuint64_t)(__ccgo_up(bp)) - BoolUint64(!!(**(**Tuint64_t)(__ccgo_up(bp + 8)) != 0)) + sign = BoolInt32(!(sign != 0)) + } + nonzero = BoolInt32(!!(**(**Tuint64_t)(__ccgo_up(bp)) != 0)) + } + /* set rhi to top 63bit of the result (last bit is sticky) */ + if nonzero != 0 { + e = e + int32(64) + v1 = **(**Tuint64_t)(__ccgo_up(bp)) + if v1>>Int32FromInt32(32) != 0 { + v2 = _a_clz_32(tls, uint32(v1>>int32(32))) + goto _3 + } + v2 = _a_clz_32(tls, uint32(v1)) + int32(32) + goto _3 + _3: + d = v2 - int32(1) + /* note: d > 0 */ + **(**Tuint64_t)(__ccgo_up(bp)) = **(**Tuint64_t)(__ccgo_up(bp))<>(int32(64)-d) | BoolUint64(!!(**(**Tuint64_t)(__ccgo_up(bp + 8))<>Int32FromInt32(32) != 0 { + v2 = _a_clz_32(tls, uint32(v1>>int32(32))) + goto _6 + } + v2 = _a_clz_32(tls, uint32(v1)) + int32(32) + goto _6 + _6: + d = v2 - int32(1) + if d < 0 { + **(**Tuint64_t)(__ccgo_up(bp)) = **(**Tuint64_t)(__ccgo_up(bp + 8))>>int32(1) | **(**Tuint64_t)(__ccgo_up(bp + 8))&uint64(1) + } else { + **(**Tuint64_t)(__ccgo_up(bp)) = **(**Tuint64_t)(__ccgo_up(bp + 8)) << d + } + } else { + /* exact +-0 */ + return float64(x1*y) + z + } + } + e = e - d + /* convert to double */ + i = Int64FromUint64(**(**Tuint64_t)(__ccgo_up(bp))) /* i is in [1<<62,(1<<63)-1] */ + if sign != 0 { + i = -i + } + r = float64(i) /* |r| is in [0x1p62,0x1p63] */ + if e < -Int32FromInt32(1022)-Int32FromInt32(62) { + /* result is subnormal before rounding */ + if e == -Int32FromInt32(1022)-Int32FromInt32(63) { + c = float64(9.223372036854776e+18) + if sign != 0 { + c = -c + } + if r == c { + /* min normal after rounding, underflow depends + on arch behaviour which can be imitated by + a double to float conversion */ + fltmin = float32(float64(Float64FromFloat64(1.0842021401737618e-19)*Float64FromFloat32(1.1754943508222875e-38)) * r) + return float64(Float64FromFloat64(2.2250738585072014e-308) / Float64FromFloat32(1.1754943508222875e-38) * float64(fltmin)) + } + /* one bit is lost when scaled, add another top bit to + only round once at conversion if it is inexact */ + if **(**Tuint64_t)(__ccgo_up(bp))<>int32(1) | **(**Tuint64_t)(__ccgo_up(bp))&uint64(1) | Uint64FromUint64(1)<>d | BoolUint64(!!(**(**Tuint64_t)(__ccgo_up(bp))<<(Int32FromInt32(64)-d) != 0))) << d) + if sign != 0 { + i = -i + } + r = float64(i) + } + } + return Xscalbn(tls, r, e) +} + +const DBL_MIN2 = 0 +const FLT_MIN2 = 0 + +func Xfmal(tls *TLS, x float64, y float64, z float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v z=%v, (%v:)", tls, x, y, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfma(tls, x, y, z) +} + +func Xfmax(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1, v3, v5 uint64 + var v9 float64 + var _ /* __u at bp+0 */ struct { + F__ccgo_align [0]uint32 + F__i [0]uint64 + F__f float64 + } + _, _, _, _ = v1, v3, v5, v9 + *(*float64)(unsafe.Pointer(bp)) = x + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + if BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(63)) != Int32FromUint64(v3>>Int32FromInt32(63)) { + *(*float64)(unsafe.Pointer(bp)) = x + v5 = *(*uint64)(unsafe.Pointer(bp)) + goto _11 + _11: + if Int32FromUint64(v5>>Int32FromInt32(63)) != 0 { + v9 = y + } else { + v9 = x + } + return v9 + } + if x < y { + v9 = y + } else { + v9 = x + } + return v9 +} + +func Xfmaxf(tls *TLS, x float32, y float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1, v3, v5 uint32 + var v9 float32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _, _, _, _ = v1, v3, v5, v9 + *(*float32)(unsafe.Pointer(bp)) = x + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + if BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return y + } + *(*float32)(unsafe.Pointer(bp)) = y + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _4 +_4: + if BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return x + } + /* handle signed zeroes, see C99 Annex F.9.9.2 */ + *(*float32)(unsafe.Pointer(bp)) = x + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _6 +_6: + *(*float32)(unsafe.Pointer(bp)) = y + v3 = *(*uint32)(unsafe.Pointer(bp)) + goto _8 +_8: + if Int32FromUint32(v1>>Int32FromInt32(31)) != Int32FromUint32(v3>>Int32FromInt32(31)) { + *(*float32)(unsafe.Pointer(bp)) = x + v5 = *(*uint32)(unsafe.Pointer(bp)) + goto _11 + _11: + if Int32FromUint32(v5>>Int32FromInt32(31)) != 0 { + v9 = y + } else { + v9 = x + } + return v9 + } + if x < y { + v9 = y + } else { + v9 = x + } + return v9 +} + +func Xfmaxl(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfmax(tls, x, y) +} + +func Xfmin(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1, v3, v5 uint64 + var v9 float64 + var _ /* __u at bp+0 */ struct { + F__ccgo_align [0]uint32 + F__i [0]uint64 + F__f float64 + } + _, _, _, _ = v1, v3, v5, v9 + *(*float64)(unsafe.Pointer(bp)) = x + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + if BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(63)) != Int32FromUint64(v3>>Int32FromInt32(63)) { + *(*float64)(unsafe.Pointer(bp)) = x + v5 = *(*uint64)(unsafe.Pointer(bp)) + goto _11 + _11: + if Int32FromUint64(v5>>Int32FromInt32(63)) != 0 { + v9 = x + } else { + v9 = y + } + return v9 + } + if x < y { + v9 = x + } else { + v9 = y + } + return v9 +} + +func Xfminf(tls *TLS, x float32, y float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1, v3, v5 uint32 + var v9 float32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _, _, _, _ = v1, v3, v5, v9 + *(*float32)(unsafe.Pointer(bp)) = x + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + if BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return y + } + *(*float32)(unsafe.Pointer(bp)) = y + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _4 +_4: + if BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return x + } + /* handle signed zeros, see C99 Annex F.9.9.2 */ + *(*float32)(unsafe.Pointer(bp)) = x + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _6 +_6: + *(*float32)(unsafe.Pointer(bp)) = y + v3 = *(*uint32)(unsafe.Pointer(bp)) + goto _8 +_8: + if Int32FromUint32(v1>>Int32FromInt32(31)) != Int32FromUint32(v3>>Int32FromInt32(31)) { + *(*float32)(unsafe.Pointer(bp)) = x + v5 = *(*uint32)(unsafe.Pointer(bp)) + goto _11 + _11: + if Int32FromUint32(v5>>Int32FromInt32(31)) != 0 { + v9 = x + } else { + v9 = y + } + return v9 + } + if x < y { + v9 = x + } else { + v9 = y + } + return v9 +} + +func Xfminl(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfmin(tls, x, y) +} + +func Xfmod(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var ex, ey, sx int32 + var i, uxi Tuint64_t + var v1 uint64 + var v3 bool + var _ /* __u at bp+0 */ struct { + F__ccgo_align [0]uint32 + F__i [0]uint64 + F__f float64 + } + var _ /* ux at bp+8 */ struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + } + var _ /* uy at bp+16 */ struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _ = ex, ey, i, sx, uxi, v1, v3 + *(*struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp + 8)) = struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp + 8)) = x + *(*struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp + 16)) = struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp + 16)) = y + ex = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp + 8)) >> int32(52) & uint64(0x7ff)) + ey = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp + 16)) >> int32(52) & uint64(0x7ff)) + sx = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp + 8)) >> int32(63)) + /* in the followings uxi should be ux.i, but then gcc wrongly adds */ + /* float load/store to inner loops ruining performance and code size */ + uxi = *(*Tuint64_t)(unsafe.Pointer(bp + 8)) + if v3 = *(*Tuint64_t)(unsafe.Pointer(bp + 16))<>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>int32(63) == uint64(0)) { + break + } + goto _4 + _4: + ; + ex = ex - 1 + i = i << uint64(1) + } + uxi = uxi << Uint64FromInt32(-ex+int32(1)) + } else { + uxi = uxi & (-Uint64FromUint64(1) >> Int32FromInt32(12)) + uxi = uxi | Uint64FromUint64(1)<>int32(63) == uint64(0)) { + break + } + goto _5 + _5: + ; + ey = ey - 1 + i = i << uint64(1) + } + *(*Tuint64_t)(unsafe.Pointer(bp + 16)) <<= Uint64FromInt32(-ey + int32(1)) + } else { + *(*Tuint64_t)(unsafe.Pointer(bp + 16)) &= -Uint64FromUint64(1) >> Int32FromInt32(12) + *(*Tuint64_t)(unsafe.Pointer(bp + 16)) |= Uint64FromUint64(1) << Int32FromInt32(52) + } + /* x mod y */ + for { + if !(ex > ey) { + break + } + i = uxi - *(*Tuint64_t)(unsafe.Pointer(bp + 16)) + if i>>int32(63) == uint64(0) { + if i == uint64(0) { + return float64(Float64FromInt32(0) * x) + } + uxi = i + } + uxi = uxi << uint64(1) + goto _6 + _6: + ; + ex = ex - 1 + } + i = uxi - *(*Tuint64_t)(unsafe.Pointer(bp + 16)) + if i>>int32(63) == uint64(0) { + if i == uint64(0) { + return float64(Float64FromInt32(0) * x) + } + uxi = i + } + for { + if !(uxi>>int32(52) == uint64(0)) { + break + } + goto _7 + _7: + ; + uxi = uxi << uint64(1) + ex = ex - 1 + } + /* scale result */ + if ex > 0 { + uxi = uxi - Uint64FromUint64(1)<> Uint64FromInt32(-ex+int32(1)) + } + uxi = uxi | Uint64FromInt32(sx)< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ex, ey int32 + var i, sx, uxi Tuint32_t + var v1 uint32 + var v3 bool + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + var _ /* ux at bp+4 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + var _ /* uy at bp+8 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _, _ = ex, ey, i, sx, uxi, v1, v3 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp + 4)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp + 4)) = x + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp + 8)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp + 8)) = y + ex = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp + 4)) >> int32(23) & uint32(0xff)) + ey = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp + 8)) >> int32(23) & uint32(0xff)) + sx = *(*Tuint32_t)(unsafe.Pointer(bp + 4)) & uint32(0x80000000) + uxi = *(*Tuint32_t)(unsafe.Pointer(bp + 4)) + if v3 = *(*Tuint32_t)(unsafe.Pointer(bp + 8))< uint32(0x7f800000)) != 0 || ex == int32(0xff) { + return float32(x*y) / float32(x*y) + } + if uxi<>int32(31) == uint32(0)) { + break + } + goto _4 + _4: + ; + ex = ex - 1 + i = i << uint32(1) + } + uxi = uxi << Uint32FromInt32(-ex+int32(1)) + } else { + uxi = uxi & (-Uint32FromUint32(1) >> Int32FromInt32(9)) + uxi = uxi | Uint32FromUint32(1)<>int32(31) == uint32(0)) { + break + } + goto _5 + _5: + ; + ey = ey - 1 + i = i << uint32(1) + } + *(*Tuint32_t)(unsafe.Pointer(bp + 8)) <<= Uint32FromInt32(-ey + int32(1)) + } else { + *(*Tuint32_t)(unsafe.Pointer(bp + 8)) &= -Uint32FromUint32(1) >> Int32FromInt32(9) + *(*Tuint32_t)(unsafe.Pointer(bp + 8)) |= Uint32FromUint32(1) << Int32FromInt32(23) + } + /* x mod y */ + for { + if !(ex > ey) { + break + } + i = uxi - *(*Tuint32_t)(unsafe.Pointer(bp + 8)) + if i>>int32(31) == uint32(0) { + if i == uint32(0) { + return float32(Float32FromInt32(0) * x) + } + uxi = i + } + uxi = uxi << uint32(1) + goto _6 + _6: + ; + ex = ex - 1 + } + i = uxi - *(*Tuint32_t)(unsafe.Pointer(bp + 8)) + if i>>int32(31) == uint32(0) { + if i == uint32(0) { + return float32(Float32FromInt32(0) * x) + } + uxi = i + } + for { + if !(uxi>>int32(23) == uint32(0)) { + break + } + goto _7 + _7: + ; + uxi = uxi << uint32(1) + ex = ex - 1 + } + /* scale result up */ + if ex > 0 { + uxi = uxi - Uint32FromUint32(1)<> Uint32FromInt32(-ex+int32(1)) + } + uxi = uxi | sx + *(*Tuint32_t)(unsafe.Pointer(bp + 4)) = uxi + return *(*float32)(unsafe.Pointer(bp + 4)) +} + +func Xfmodl(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfmod(tls, x, y) +} + +func Xfrexp(tls *TLS, x float64, e uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v e=%v, (%v:)", tls, x, e, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ee int32 + var _ /* y at bp+0 */ struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Fd float64 + } + _ = ee + *(*struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Fd float64 + })(unsafe.Pointer(bp)) = struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Fd float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + ee = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + if !(ee != 0) { + if x != 0 { + x = Xfrexp(tls, float64(x*float64(1.8446744073709552e+19)), e) + **(**int32)(__ccgo_up(e)) -= int32(64) + } else { + **(**int32)(__ccgo_up(e)) = 0 + } + return x + } else { + if ee == int32(0x7ff) { + return x + } + } + **(**int32)(__ccgo_up(e)) = ee - int32(0x3fe) + *(*Tuint64_t)(unsafe.Pointer(bp)) &= uint64(0x800fffffffffffff) + *(*Tuint64_t)(unsafe.Pointer(bp)) |= uint64(0x3fe0000000000000) + return *(*float64)(unsafe.Pointer(bp)) +} + +func Xfrexpf(tls *TLS, x float32, e uintptr) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v e=%v, (%v:)", tls, x, e, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ee int32 + var v1 uintptr + var _ /* y at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _ = ee, v1 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + ee = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(23) & uint32(0xff)) + if !(ee != 0) { + if x != 0 { + x = Xfrexpf(tls, float32(float64(x)*float64(1.8446744073709552e+19)), e) + **(**int32)(__ccgo_up(e)) -= int32(64) + } else { + **(**int32)(__ccgo_up(e)) = 0 + } + return x + } else { + if ee == int32(0xff) { + return x + } + } + **(**int32)(__ccgo_up(e)) = ee - int32(0x7e) + v1 = bp + *(*Tuint32_t)(unsafe.Pointer(v1)) = Tuint32_t(*(*Tuint32_t)(unsafe.Pointer(v1)) & Uint32FromUint32(0x807fffff)) + v1 = bp + *(*Tuint32_t)(unsafe.Pointer(v1)) = Tuint32_t(*(*Tuint32_t)(unsafe.Pointer(v1)) | Uint32FromUint32(0x3f000000)) + return *(*float32)(unsafe.Pointer(bp)) +} + +func Xfrexpl(tls *TLS, x float64, e uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v e=%v, (%v:)", tls, x, e, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfrexp(tls, x, e) +} + +const SPLIT = 1 + +func _sq(tls *TLS, hi uintptr, lo uintptr, x float64) { + var xc, xh, xl Tdouble_t + _, _, _ = xc, xh, xl + xc = Tdouble_t(x * (Float64FromFloat64(1.34217728e+08) + Float64FromInt32(1))) + xh = x - xc + xc + xl = x - xh + **(**Tdouble_t)(__ccgo_up(hi)) = Tdouble_t(x * x) + **(**Tdouble_t)(__ccgo_up(lo)) = Tdouble_t(xh*xh) - **(**Tdouble_t)(__ccgo_up(hi)) + Tdouble_t(Tdouble_t(Float64FromInt32(2)*xh)*xl) + Tdouble_t(xl*xl) +} + +func Xhypot(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + var ex, ey int32 + var ut struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + } + var z Tdouble_t + var _ /* hx at bp+16 */ Tdouble_t + var _ /* hy at bp+32 */ Tdouble_t + var _ /* lx at bp+24 */ Tdouble_t + var _ /* ly at bp+40 */ Tdouble_t + var _ /* ux at bp+0 */ struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + } + var _ /* uy at bp+8 */ struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _ = ex, ey, ut, z + *(*struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + *(*struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp + 8)) = struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp + 8)) = y + /* arrange |x| >= |y| */ + *(*Tuint64_t)(unsafe.Pointer(bp)) &= -Uint64FromUint64(1) >> Int32FromInt32(1) + *(*Tuint64_t)(unsafe.Pointer(bp + 8)) &= -Uint64FromUint64(1) >> Int32FromInt32(1) + if *(*Tuint64_t)(unsafe.Pointer(bp)) < *(*Tuint64_t)(unsafe.Pointer(bp + 8)) { + ut = **(**struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + })(__ccgo_up(bp)) + **(**struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + })(__ccgo_up(bp)) = **(**struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + })(__ccgo_up(bp + 8)) + **(**struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + })(__ccgo_up(bp + 8)) = ut + } + /* special cases */ + ex = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52)) + ey = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp + 8)) >> int32(52)) + x = *(*float64)(unsafe.Pointer(bp)) + y = *(*float64)(unsafe.Pointer(bp + 8)) + /* note: hypot(inf,nan) == inf */ + if ey == int32(0x7ff) { + return y + } + if ex == int32(0x7ff) || *(*Tuint64_t)(unsafe.Pointer(bp + 8)) == uint64(0) { + return x + } + /* note: hypot(x,y) ~= x + y*y/x/2 with inexact for small y/x */ + /* 64 difference is enough for ld80 double_t */ + if ex-ey > int32(64) { + return x + y + } + /* precise sqrt argument in nearest rounding mode without overflow */ + /* xh*xh must not overflow and xl*xl must not underflow in sq */ + z = Float64FromInt32(1) + if ex > Int32FromInt32(0x3ff)+Int32FromInt32(510) { + z = float64(5.260135901548374e+210) + x = x * float64(1.90109156629516e-211) + y = y * float64(1.90109156629516e-211) + } else { + if ey < Int32FromInt32(0x3ff)-Int32FromInt32(450) { + z = float64(1.90109156629516e-211) + x = x * float64(5.260135901548374e+210) + y = y * float64(5.260135901548374e+210) + } + } + _sq(tls, bp+16, bp+24, x) + _sq(tls, bp+32, bp+40, y) + return float64(z * Xsqrt(tls, **(**Tdouble_t)(__ccgo_up(bp + 40))+**(**Tdouble_t)(__ccgo_up(bp + 24))+**(**Tdouble_t)(__ccgo_up(bp + 32))+**(**Tdouble_t)(__ccgo_up(bp + 16)))) +} + +func Xhypotf(tls *TLS, x float32, y float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ut struct { + Fi [0]Tuint32_t + Ff float32 + } + var z Tfloat_t + var _ /* ux at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + var _ /* uy at bp+4 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _ = ut, z + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp + 4)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp + 4)) = y + *(*Tuint32_t)(unsafe.Pointer(bp)) &= -Uint32FromUint32(1) >> Int32FromInt32(1) + *(*Tuint32_t)(unsafe.Pointer(bp + 4)) &= -Uint32FromUint32(1) >> Int32FromInt32(1) + if *(*Tuint32_t)(unsafe.Pointer(bp)) < *(*Tuint32_t)(unsafe.Pointer(bp + 4)) { + ut = **(**struct { + Fi [0]Tuint32_t + Ff float32 + })(__ccgo_up(bp)) + **(**struct { + Fi [0]Tuint32_t + Ff float32 + })(__ccgo_up(bp)) = **(**struct { + Fi [0]Tuint32_t + Ff float32 + })(__ccgo_up(bp + 4)) + **(**struct { + Fi [0]Tuint32_t + Ff float32 + })(__ccgo_up(bp + 4)) = ut + } + x = *(*float32)(unsafe.Pointer(bp)) + y = *(*float32)(unsafe.Pointer(bp + 4)) + if *(*Tuint32_t)(unsafe.Pointer(bp + 4)) == Uint32FromInt32(Int32FromInt32(0xff)<= Uint32FromInt32(Int32FromInt32(0xff)<= Uint32FromInt32(Int32FromInt32(25)<= Uint32FromInt32((Int32FromInt32(0x7f)+Int32FromInt32(60))< %v", r) }() + } + return Xhypot(tls, x, y) +} + +func Xilogb(tls *TLS, x3 float64) (r int32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e, v2 int32 + var i Tuint64_t + var y float32 + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _ = e, i, y, y1, y2, v2 + *(*struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + i = *(*Tuint64_t)(unsafe.Pointer(bp)) + e = Int32FromUint64(i >> int32(52) & uint64(0x7ff)) + if !(e != 0) { + i = i << uint64(12) + if i == uint64(0) { + if uint32(4) == uint32(4) { + y = Float32FromInt32(0) / Float32FromFloat32(0) + } else { + if uint32(4) == uint32(8) { + y1 = float64(Float32FromInt32(0) / Float32FromFloat32(0)) + } else { + y2 = float64(Float32FromInt32(0) / Float32FromFloat32(0)) + } + } + return -Int32FromInt32(1) - Int32FromInt32(0x7fffffff) + } + /* subnormal x */ + e = -int32(0x3ff) + for { + if !(i>>int32(63) == uint64(0)) { + break + } + goto _1 + _1: + ; + e = e - 1 + i = i << uint64(1) + } + return e + } + if e == int32(0x7ff) { + if uint32(4) == uint32(4) { + y = Float32FromInt32(0) / Float32FromFloat32(0) + } else { + if uint32(4) == uint32(8) { + y1 = float64(Float32FromInt32(0) / Float32FromFloat32(0)) + } else { + y2 = float64(Float32FromInt32(0) / Float32FromFloat32(0)) + } + } + if i< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e, v2 int32 + var i Tuint32_t + var y float32 + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _ = e, i, y, y1, y2, v2 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + i = *(*Tuint32_t)(unsafe.Pointer(bp)) + e = Int32FromUint32(i >> int32(23) & uint32(0xff)) + if !(e != 0) { + i = i << uint32(9) + if i == uint32(0) { + if uint32(4) == uint32(4) { + y = Float32FromInt32(0) / Float32FromFloat32(0) + } else { + if uint32(4) == uint32(8) { + y1 = float64(Float32FromInt32(0) / Float32FromFloat32(0)) + } else { + y2 = float64(Float32FromInt32(0) / Float32FromFloat32(0)) + } + } + return -Int32FromInt32(1) - Int32FromInt32(0x7fffffff) + } + /* subnormal x */ + e = -int32(0x7f) + for { + if !(i>>int32(31) == uint32(0)) { + break + } + goto _1 + _1: + ; + e = e - 1 + i = i << uint32(1) + } + return e + } + if e == int32(0xff) { + if uint32(4) == uint32(4) { + y = Float32FromInt32(0) / Float32FromFloat32(0) + } else { + if uint32(4) == uint32(8) { + y1 = float64(Float32FromInt32(0) / Float32FromFloat32(0)) + } else { + y2 = float64(Float32FromInt32(0) / Float32FromFloat32(0)) + } + } + if i< %v", r) }() + } + return Xilogb(tls, x) +} + +var _invsqrtpi = float64(0.5641895835477563) /* 0x3FE20DD7, 0x50429B6D */ +var _tpi = float64(0.6366197723675814) /* 0x3FE45F30, 0x6DC9C883 */ + +// C documentation +// +// /* common method when |x|>=2 */ +func _common(tls *TLS, ix Tuint32_t, x float64, y0 int32) (r float64) { + var c, cc, s, ss, z float64 + _, _, _, _, _ = c, cc, s, ss, z + /* + * j0(x) = sqrt(2/(pi*x))*(p0(x)*cos(x-pi/4)-q0(x)*sin(x-pi/4)) + * y0(x) = sqrt(2/(pi*x))*(p0(x)*sin(x-pi/4)+q0(x)*cos(x-pi/4)) + * + * sin(x-pi/4) = (sin(x) - cos(x))/sqrt(2) + * cos(x-pi/4) = (sin(x) + cos(x))/sqrt(2) + * sin(x) +- cos(x) = -cos(2x)/(sin(x) -+ cos(x)) + */ + s = Xsin(tls, x) + c = Xcos(tls, x) + if y0 != 0 { + c = -c + } + cc = s + c + /* avoid overflow in 2*x, big ulp error when x>=0x1p1023 */ + if ix < uint32(0x7fe00000) { + ss = s - c + z = -Xcos(tls, float64(Float64FromInt32(2)*x)) + if float64(s*c) < Float64FromInt32(0) { + cc = z / ss + } else { + ss = z / cc + } + if ix < uint32(0x48000000) { + if y0 != 0 { + ss = -ss + } + cc = float64(_pzero(tls, x)*cc) - float64(_qzero(tls, x)*ss) + } + } + return float64(_invsqrtpi*cc) / Xsqrt(tls, x) +} + +// C documentation +// +// /* R0/S0 on [0, 2.00] */ + +var _R02 = float64(0.015624999999999995) /* 0x3F8FFFFF, 0xFFFFFFFD */ +var _R03 = -Float64FromFloat64(0.00018997929423885472) /* 0xBF28E6A5, 0xB61AC6E9 */ +var _R04 = float64(1.8295404953270067e-06) /* 0x3EBEB1D1, 0x0C503919 */ +var _R05 = -Float64FromFloat64(4.618326885321032e-09) /* 0xBE33D5E7, 0x73D63FCE */ +var _S01 = float64(0.015619102946489001) /* 0x3F8FFCE8, 0x82C8C2A4 */ +var _S02 = float64(0.00011692678466333745) /* 0x3F1EA6D2, 0xDD57DBF4 */ +var _S03 = float64(5.135465502073181e-07) /* 0x3EA13B54, 0xCE84D5A9 */ +var _S04 = float64(1.1661400333379e-09) /* 0x3E1408BC, 0xF4745D8F */ + +func Xj0(tls *TLS, x float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var ix Tuint32_t + var r, s, z float64 + _, _, _, _ = ix, r, s, z + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + ix = ix & uint32(0x7fffffff) + /* j0(+-inf)=0, j0(nan)=nan */ + if ix >= uint32(0x7ff00000) { + return Float64FromInt32(1) / float64(x*x) + } + x = Xfabs(tls, x) + if ix >= uint32(0x40000000) { /* |x| >= 2 */ + /* large ulp error near zeros: 2.4, 5.52, 8.6537,.. */ + return _common(tls, ix, x, 0) + } + /* 1 - x*x/4 + x*x*R(x^2)/S(x^2) */ + if ix >= uint32(0x3f200000) { /* |x| >= 2**-13 */ + /* up to 4ulp error close to 2 */ + z = float64(x * x) + r = float64(z * (_R02 + float64(z*(_R03+float64(z*(_R04+float64(z*_R05))))))) + s = Float64FromInt32(1) + float64(z*(_S01+float64(z*(_S02+float64(z*(_S03+float64(z*_S04))))))) + return float64((Float64FromInt32(1)+x/Float64FromInt32(2))*(Float64FromInt32(1)-x/Float64FromInt32(2))) + float64(z*(r/s)) + } + /* 1 - x*x/4 */ + /* prevent underflow */ + /* inexact should be raised when x!=0, this is not done correctly */ + if ix >= uint32(0x38000000) { /* |x| >= 2**-127 */ + x = float64(float64(float64(0.25)*x) * x) + } + return Float64FromInt32(1) - x +} + +var _u00 = -Float64FromFloat64(0.07380429510868723) /* 0xBFB2E4D6, 0x99CBD01F */ +var _u01 = float64(0.17666645250918112) /* 0x3FC69D01, 0x9DE9E3FC */ +var _u02 = -Float64FromFloat64(0.01381856719455969) /* 0xBF8C4CE8, 0xB16CFA97 */ +var _u03 = float64(0.00034745343209368365) /* 0x3F36C54D, 0x20B29B6B */ +var _u04 = -Float64FromFloat64(3.8140705372436416e-06) /* 0xBECFFEA7, 0x73D25CAD */ +var _u05 = float64(1.9559013703502292e-08) /* 0x3E550057, 0x3B4EABD4 */ +var _u06 = -Float64FromFloat64(3.982051941321034e-11) /* 0xBDC5E43D, 0x693FB3C8 */ +var _v01 = float64(0.01273048348341237) /* 0x3F8A1270, 0x91C9C71A */ +var _v02 = float64(7.600686273503533e-05) /* 0x3F13ECBB, 0xF578C6C1 */ +var _v03 = float64(2.591508518404578e-07) /* 0x3E91642D, 0x7FF202FD */ +var _v04 = float64(4.4111031133267547e-10) /* 0x3DFE5018, 0x3BD6D9EF */ + +func Xy0(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __u Tuint64_t + var ix, lx Tuint32_t + var u, v, z float64 + _, _, _, _, _, _ = __u, ix, lx, u, v, z + __u = *(*Tuint64_t)(unsafe.Pointer(&x)) + ix = uint32(__u >> int32(32)) + lx = uint32(__u) + /* y0(nan)=nan, y0(<0)=nan, y0(0)=-inf, y0(inf)=0 */ + if ix<>int32(31) != 0 { + return Float64FromInt32(0) / Float64FromFloat64(0) + } + if ix >= uint32(0x7ff00000) { + return Float64FromInt32(1) / x + } + if ix >= uint32(0x40000000) { /* x >= 2 */ + /* large ulp errors near zeros: 3.958, 7.086,.. */ + return _common(tls, ix, x, int32(1)) + } + /* U(x^2)/V(x^2) + (2/pi)*j0(x)*log(x) */ + if ix >= uint32(0x3e400000) { /* x >= 2**-27 */ + /* large ulp error near the first zero, x ~= 0.89 */ + z = float64(x * x) + u = _u00 + float64(z*(_u01+float64(z*(_u02+float64(z*(_u03+float64(z*(_u04+float64(z*(_u05+float64(z*_u06))))))))))) + v = float64(1) + float64(z*(_v01+float64(z*(_v02+float64(z*(_v03+float64(z*_v04))))))) + return u/v + float64(_tpi*float64(Xj0(tls, x)*Xlog(tls, x))) + } + return _u00 + float64(_tpi*Xlog(tls, x)) +} + +// C documentation +// +// /* The asymptotic expansions of pzero is +// * 1 - 9/128 s^2 + 11025/98304 s^4 - ..., where s = 1/x. +// * For x >= 2, We approximate pzero by +// * pzero(x) = 1 + (R/S) +// * where R = pR0 + pR1*s^2 + pR2*s^4 + ... + pR5*s^10 +// * S = 1 + pS0*s^2 + ... + pS4*s^10 +// * and +// * | pzero(x)-1-R/S | <= 2 ** ( -60.26) +// */ +var _pR8 = [6]float64{ + 1: -Float64FromFloat64(0.07031249999999004), + 2: -Float64FromFloat64(8.081670412753498), + 3: -Float64FromFloat64(257.06310567970485), + 4: -Float64FromFloat64(2485.216410094288), + 5: -Float64FromFloat64(5253.043804907295), +} +var _pS8 = [5]float64{ + 0: float64(116.53436461966818), + 1: float64(3833.7447536412183), + 2: float64(40597.857264847255), + 3: float64(116752.97256437592), + 4: float64(47627.728414673096), +} + +var _pR5 = [6]float64{ + 0: -Float64FromFloat64(1.141254646918945e-11), + 1: -Float64FromFloat64(0.07031249408735993), + 2: -Float64FromFloat64(4.159610644705878), + 3: -Float64FromFloat64(67.67476522651673), + 4: -Float64FromFloat64(331.23129964917297), + 5: -Float64FromFloat64(346.4333883656049), +} +var _pS52 = [5]float64{ + 0: float64(60.753938269230034), + 1: float64(1051.2523059570458), + 2: float64(5978.970943338558), + 3: float64(9625.445143577745), + 4: float64(2406.058159229391), +} + +var _pR3 = [6]float64{ + 0: -Float64FromFloat64(2.547046017719519e-09), + 1: -Float64FromFloat64(0.07031196163814817), + 2: -Float64FromFloat64(2.409032215495296), + 3: -Float64FromFloat64(21.96597747348831), + 4: -Float64FromFloat64(58.07917047017376), + 5: -Float64FromFloat64(31.44794705948885), +} +var _pS32 = [5]float64{ + 0: float64(35.85603380552097), + 1: float64(361.51398305030386), + 2: float64(1193.6078379211153), + 3: float64(1127.9967985690741), + 4: float64(173.58093081333575), +} + +var _pR2 = [6]float64{ + 0: -Float64FromFloat64(8.875343330325264e-08), + 1: -Float64FromFloat64(0.07030309954836247), + 2: -Float64FromFloat64(1.4507384678095299), + 3: -Float64FromFloat64(7.635696138235278), + 4: -Float64FromFloat64(11.193166886035675), + 5: -Float64FromFloat64(3.2336457935133534), +} +var _pS24 = [5]float64{ + 0: float64(22.22029975320888), + 1: float64(136.2067942182152), + 2: float64(270.4702786580835), + 3: float64(153.87539420832033), + 4: float64(14.65761769482562), +} + +func _pzero(tls *TLS, x float64) (r1 float64) { + var ix Tuint32_t + var p, q uintptr + var r, s, z Tdouble_t + _, _, _, _, _, _ = ix, p, q, r, s, z + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x40200000) { + p = uintptr(unsafe.Pointer(&_pR8)) + q = uintptr(unsafe.Pointer(&_pS8)) + } else { + if ix >= uint32(0x40122E8B) { + p = uintptr(unsafe.Pointer(&_pR5)) + q = uintptr(unsafe.Pointer(&_pS52)) + } else { + if ix >= uint32(0x4006DB6D) { + p = uintptr(unsafe.Pointer(&_pR3)) + q = uintptr(unsafe.Pointer(&_pS32)) + } else { /*ix >= 0x40000000*/ + p = uintptr(unsafe.Pointer(&_pR2)) + q = uintptr(unsafe.Pointer(&_pS24)) + } + } + } + z = float64(1) / float64(x*x) + r = **(**float64)(__ccgo_up(p)) + float64(z*(**(**float64)(__ccgo_up(p + 1*8))+float64(z*(**(**float64)(__ccgo_up(p + 2*8))+float64(z*(**(**float64)(__ccgo_up(p + 3*8))+float64(z*(**(**float64)(__ccgo_up(p + 4*8))+float64(z***(**float64)(__ccgo_up(p + 5*8))))))))))) + s = float64(1) + float64(z*(**(**float64)(__ccgo_up(q))+float64(z*(**(**float64)(__ccgo_up(q + 1*8))+float64(z*(**(**float64)(__ccgo_up(q + 2*8))+float64(z*(**(**float64)(__ccgo_up(q + 3*8))+float64(z***(**float64)(__ccgo_up(q + 4*8))))))))))) + return float64(1) + r/s +} + +// C documentation +// +// /* For x >= 8, the asymptotic expansions of qzero is +// * -1/8 s + 75/1024 s^3 - ..., where s = 1/x. +// * We approximate pzero by +// * qzero(x) = s*(-1.25 + (R/S)) +// * where R = qR0 + qR1*s^2 + qR2*s^4 + ... + qR5*s^10 +// * S = 1 + qS0*s^2 + ... + qS5*s^12 +// * and +// * | qzero(x)/s +1.25-R/S | <= 2 ** ( -61.22) +// */ +var _qR8 = [6]float64{ + 1: float64(0.0732421874999935), + 2: float64(11.76820646822527), + 3: float64(557.6733802564019), + 4: float64(8859.197207564686), + 5: float64(37014.62677768878), +} +var _qS8 = [6]float64{ + 0: float64(163.77602689568982), + 1: float64(8098.344946564498), + 2: float64(142538.29141912048), + 3: float64(803309.2571195144), + 4: float64(840501.5798190605), + 5: -Float64FromFloat64(343899.2935378666), +} + +var _qR5 = [6]float64{ + 0: float64(1.8408596359451553e-11), + 1: float64(0.07324217666126848), + 2: float64(5.8356350896205695), + 3: float64(135.11157728644983), + 4: float64(1027.243765961641), + 5: float64(1989.9778586460538), +} +var _qS5 = [6]float64{ + 0: float64(82.77661022365378), + 1: float64(2077.81416421393), + 2: float64(18847.28877857181), + 3: float64(56751.11228949473), + 4: float64(35976.75384251145), + 5: -Float64FromFloat64(5354.342756019448), +} + +var _qR3 = [6]float64{ + 0: float64(4.377410140897386e-09), + 1: float64(0.07324111800429114), + 2: float64(3.344231375161707), + 3: float64(42.621844074541265), + 4: float64(170.8080913405656), + 5: float64(166.73394869665117), +} +var _qS32 = [6]float64{ + 0: float64(48.75887297245872), + 1: float64(709.689221056606), + 2: float64(3704.1482262011136), + 3: float64(6460.425167525689), + 4: float64(2516.3336892036896), + 5: -Float64FromFloat64(149.2474518361564), +} + +var _qR2 = [6]float64{ + 0: float64(1.5044444488698327e-07), + 1: float64(0.07322342659630793), + 2: float64(1.99819174093816), + 3: float64(14.495602934788574), + 4: float64(31.666231750478154), + 5: float64(16.252707571092927), +} +var _qS22 = [6]float64{ + 0: float64(30.36558483552192), + 1: float64(269.34811860804984), + 2: float64(844.7837575953201), + 3: float64(882.9358451124886), + 4: float64(212.66638851179883), + 5: -Float64FromFloat64(5.3109549388266695), +} + +func _qzero(tls *TLS, x float64) (r1 float64) { + var ix Tuint32_t + var p, q uintptr + var r, s, z Tdouble_t + _, _, _, _, _, _ = ix, p, q, r, s, z + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x40200000) { + p = uintptr(unsafe.Pointer(&_qR8)) + q = uintptr(unsafe.Pointer(&_qS8)) + } else { + if ix >= uint32(0x40122E8B) { + p = uintptr(unsafe.Pointer(&_qR5)) + q = uintptr(unsafe.Pointer(&_qS5)) + } else { + if ix >= uint32(0x4006DB6D) { + p = uintptr(unsafe.Pointer(&_qR3)) + q = uintptr(unsafe.Pointer(&_qS32)) + } else { /*ix >= 0x40000000*/ + p = uintptr(unsafe.Pointer(&_qR2)) + q = uintptr(unsafe.Pointer(&_qS22)) + } + } + } + z = float64(1) / float64(x*x) + r = **(**float64)(__ccgo_up(p)) + float64(z*(**(**float64)(__ccgo_up(p + 1*8))+float64(z*(**(**float64)(__ccgo_up(p + 2*8))+float64(z*(**(**float64)(__ccgo_up(p + 3*8))+float64(z*(**(**float64)(__ccgo_up(p + 4*8))+float64(z***(**float64)(__ccgo_up(p + 5*8))))))))))) + s = float64(1) + float64(z*(**(**float64)(__ccgo_up(q))+float64(z*(**(**float64)(__ccgo_up(q + 1*8))+float64(z*(**(**float64)(__ccgo_up(q + 2*8))+float64(z*(**(**float64)(__ccgo_up(q + 3*8))+float64(z*(**(**float64)(__ccgo_up(q + 4*8))+float64(z***(**float64)(__ccgo_up(q + 5*8))))))))))))) + return (-Float64FromFloat64(0.125) + r/s) / x +} + +var _invsqrtpi1 = float32(0.56418961287) /* 0x3f106ebb */ +var _tpi1 = float32(0.63661974669) /* 0x3f22f983 */ + +func _common1(tls *TLS, ix Tuint32_t, x float32, y0 int32) (r float32) { + var c, cc, s, ss, z float32 + _, _, _, _, _ = c, cc, s, ss, z + /* + * j0(x) = 1/sqrt(pi) * (P(0,x)*cc - Q(0,x)*ss) / sqrt(x) + * y0(x) = 1/sqrt(pi) * (P(0,x)*ss + Q(0,x)*cc) / sqrt(x) + */ + s = Xsinf(tls, x) + c = Xcosf(tls, x) + if y0 != 0 { + c = -c + } + cc = s + c + if ix < uint32(0x7f000000) { + ss = s - c + z = -Xcosf(tls, float32(Float32FromInt32(2)*x)) + if float32(s*c) < Float32FromInt32(0) { + cc = z / ss + } else { + ss = z / cc + } + if ix < uint32(0x58800000) { + if y0 != 0 { + ss = -ss + } + cc = float32(_pzerof(tls, x)*cc) - float32(_qzerof(tls, x)*ss) + } + } + return float32(_invsqrtpi1*cc) / Xsqrtf(tls, x) +} + +// C documentation +// +// /* R0/S0 on [0, 2.00] */ + +var _R021 = float32(0.015625) /* 0x3c800000 */ +var _R031 = float32(-Float64FromFloat64(0.00018997929874)) /* 0xb947352e */ +var _R041 = float32(1.8295404516e-06) /* 0x35f58e88 */ +var _R051 = float32(-Float64FromFloat64(4.6183270541e-09)) /* 0xb19eaf3c */ +var _S011 = float32(0.015619102865) /* 0x3c7fe744 */ +var _S021 = float32(0.00011692678527) /* 0x38f53697 */ +var _S031 = float32(5.1354652442e-07) /* 0x3509daa6 */ +var _S041 = float32(1.1661400734e-09) /* 0x30a045e8 */ + +func Xj0f(tls *TLS, x float32) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var ix Tuint32_t + var r, s, z float32 + _, _, _, _ = ix, r, s, z + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x7f800000) { + return Float32FromInt32(1) / float32(x*x) + } + x = Xfabsf(tls, x) + if ix >= uint32(0x40000000) { /* |x| >= 2 */ + /* large ulp error near zeros */ + return _common1(tls, ix, x, 0) + } + if ix >= uint32(0x3a000000) { /* |x| >= 2**-11 */ + /* up to 4ulp error near 2 */ + z = float32(x * x) + r = float32(z * (_R021 + float32(z*(_R031+float32(z*(_R041+float32(z*_R051))))))) + s = Float32FromInt32(1) + float32(z*(_S011+float32(z*(_S021+float32(z*(_S031+float32(z*_S041))))))) + return float32((Float32FromInt32(1)+x/Float32FromInt32(2))*(Float32FromInt32(1)-x/Float32FromInt32(2))) + float32(z*(r/s)) + } + if ix >= uint32(0x21800000) { /* |x| >= 2**-60 */ + x = float32(float32(Float32FromFloat32(0.25)*x) * x) + } + return Float32FromInt32(1) - x +} + +var _u001 = float32(-Float64FromFloat64(0.073804296553)) /* 0xbd9726b5 */ +var _u011 = float32(0.17666645348) /* 0x3e34e80d */ +var _u021 = float32(-Float64FromFloat64(0.013818567619)) /* 0xbc626746 */ +var _u031 = float32(0.00034745343146) /* 0x39b62a69 */ +var _u041 = float32(-Float64FromFloat64(3.8140706238e-06)) /* 0xb67ff53c */ +var _u051 = float32(1.9559013964e-08) /* 0x32a802ba */ +var _u061 = float32(-Float64FromFloat64(3.982051841e-11)) /* 0xae2f21eb */ +var _v011 = float32(0.012730483897) /* 0x3c509385 */ +var _v021 = float32(7.6006865129e-05) /* 0x389f65e0 */ +var _v031 = float32(2.5915085189e-07) /* 0x348b216c */ +var _v041 = float32(4.4111031494e-10) /* 0x2ff280c2 */ + +func Xy0f(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ix Tuint32_t + var u, v, z float32 + _, _, _, _ = ix, u, v, z + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + if ix&uint32(0x7fffffff) == uint32(0) { + return float32(-Int32FromInt32(1)) / Float32FromFloat32(0) + } + if ix>>int32(31) != 0 { + return Float32FromInt32(0) / Float32FromFloat32(0) + } + if ix >= uint32(0x7f800000) { + return Float32FromInt32(1) / x + } + if ix >= uint32(0x40000000) { /* |x| >= 2.0 */ + /* large ulp error near zeros */ + return _common1(tls, ix, x, int32(1)) + } + if ix >= uint32(0x39000000) { /* x >= 2**-13 */ + /* large ulp error at x ~= 0.89 */ + z = float32(x * x) + u = _u001 + float32(z*(_u011+float32(z*(_u021+float32(z*(_u031+float32(z*(_u041+float32(z*(_u051+float32(z*_u061))))))))))) + v = Float32FromInt32(1) + float32(z*(_v011+float32(z*(_v021+float32(z*(_v031+float32(z*_v041))))))) + return u/v + float32(_tpi1*float32(Xj0f(tls, x)*Xlogf(tls, x))) + } + return _u001 + float32(_tpi1*Xlogf(tls, x)) +} + +// C documentation +// +// /* The asymptotic expansions of pzero is +// * 1 - 9/128 s^2 + 11025/98304 s^4 - ..., where s = 1/x. +// * For x >= 2, We approximate pzero by +// * pzero(x) = 1 + (R/S) +// * where R = pR0 + pR1*s^2 + pR2*s^4 + ... + pR5*s^10 +// * S = 1 + pS0*s^2 + ... + pS4*s^10 +// * and +// * | pzero(x)-1-R/S | <= 2 ** ( -60.26) +// */ +var _pR81 = [6]float32{ + 1: float32(-Float64FromFloat64(0.0703125)), + 2: float32(-Float64FromFloat64(8.0816707611)), + 3: float32(-Float64FromFloat64(257.06311035)), + 4: float32(-Float64FromFloat64(2485.2163086)), + 5: float32(-Float64FromFloat64(5253.0439453)), +} +var _pS81 = [5]float32{ + 0: float32(116.53436279), + 1: float32(3833.744873), + 2: float32(40597.855469), + 3: float32(116752.96875), + 4: float32(47627.726562), +} +var _pR51 = [6]float32{ + 0: float32(-Float64FromFloat64(1.1412546255e-11)), + 1: float32(-Float64FromFloat64(0.070312492549)), + 2: float32(-Float64FromFloat64(4.1596107483)), + 3: float32(-Float64FromFloat64(67.674766541)), + 4: float32(-Float64FromFloat64(331.23129272)), + 5: float32(-Float64FromFloat64(346.43338013)), +} +var _pS53 = [5]float32{ + 0: float32(60.753936768), + 1: float32(1051.2523193), + 2: float32(5978.9707031), + 3: float32(9625.4453125), + 4: float32(2406.0581055), +} + +var _pR31 = [6]float32{ + 0: float32(-Float64FromFloat64(2.5470459075e-09)), + 1: float32(-Float64FromFloat64(0.070311963558)), + 2: float32(-Float64FromFloat64(2.4090321064)), + 3: float32(-Float64FromFloat64(21.965976715)), + 4: float32(-Float64FromFloat64(58.079170227)), + 5: float32(-Float64FromFloat64(31.447946548)), +} +var _pS33 = [5]float32{ + 0: float32(35.856033325), + 1: float32(361.51397705), + 2: float32(1193.6077881), + 3: float32(1127.9968262), + 4: float32(173.58093262), +} + +var _pR21 = [6]float32{ + 0: float32(-Float64FromFloat64(8.8753431271e-08)), + 1: float32(-Float64FromFloat64(0.070303097367)), + 2: float32(-Float64FromFloat64(1.45073843)), + 3: float32(-Float64FromFloat64(7.6356959343)), + 4: float32(-Float64FromFloat64(11.193166733)), + 5: float32(-Float64FromFloat64(3.2336456776)), +} +var _pS25 = [5]float32{ + 0: float32(22.220300674), + 1: float32(136.20678711), + 2: float32(270.47027588), + 3: float32(153.87539673), + 4: float32(14.657617569), +} + +func _pzerof(tls *TLS, x float32) (r1 float32) { + var ix Tuint32_t + var p, q uintptr + var r, s, z Tfloat_t + _, _, _, _, _, _ = ix, p, q, r, s, z + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x41000000) { + p = uintptr(unsafe.Pointer(&_pR81)) + q = uintptr(unsafe.Pointer(&_pS81)) + } else { + if ix >= uint32(0x409173eb) { + p = uintptr(unsafe.Pointer(&_pR51)) + q = uintptr(unsafe.Pointer(&_pS53)) + } else { + if ix >= uint32(0x4036d917) { + p = uintptr(unsafe.Pointer(&_pR31)) + q = uintptr(unsafe.Pointer(&_pS33)) + } else { /*ix >= 0x40000000*/ + p = uintptr(unsafe.Pointer(&_pR21)) + q = uintptr(unsafe.Pointer(&_pS25)) + } + } + } + z = Float32FromFloat32(1) / float32(x*x) + r = **(**float32)(__ccgo_up(p)) + float32(z*(**(**float32)(__ccgo_up(p + 1*4))+float32(z*(**(**float32)(__ccgo_up(p + 2*4))+float32(z*(**(**float32)(__ccgo_up(p + 3*4))+float32(z*(**(**float32)(__ccgo_up(p + 4*4))+float32(z***(**float32)(__ccgo_up(p + 5*4))))))))))) + s = Float32FromFloat32(1) + float32(z*(**(**float32)(__ccgo_up(q))+float32(z*(**(**float32)(__ccgo_up(q + 1*4))+float32(z*(**(**float32)(__ccgo_up(q + 2*4))+float32(z*(**(**float32)(__ccgo_up(q + 3*4))+float32(z***(**float32)(__ccgo_up(q + 4*4))))))))))) + return Float32FromFloat32(1) + r/s +} + +// C documentation +// +// /* For x >= 8, the asymptotic expansions of qzero is +// * -1/8 s + 75/1024 s^3 - ..., where s = 1/x. +// * We approximate pzero by +// * qzero(x) = s*(-1.25 + (R/S)) +// * where R = qR0 + qR1*s^2 + qR2*s^4 + ... + qR5*s^10 +// * S = 1 + qS0*s^2 + ... + qS5*s^12 +// * and +// * | qzero(x)/s +1.25-R/S | <= 2 ** ( -61.22) +// */ +var _qR81 = [6]float32{ + 1: float32(0.0732421875), + 2: float32(11.768206596), + 3: float32(557.67340088), + 4: float32(8859.1972656), + 5: float32(37014.625), +} +var _qS81 = [6]float32{ + 0: float32(163.77603149), + 1: float32(8098.3447266), + 2: float32(142538.29688), + 3: float32(803309.25), + 4: float32(840501.5625), + 5: float32(-Float64FromFloat64(343899.28125)), +} + +var _qR51 = [6]float32{ + 0: float32(1.8408595828e-11), + 1: float32(0.073242180049), + 2: float32(5.8356351852), + 3: float32(135.11157227), + 4: float32(1027.2437744), + 5: float32(1989.9779053), +} +var _qS51 = [6]float32{ + 0: float32(82.776611328), + 1: float32(2077.814209), + 2: float32(18847.289062), + 3: float32(56751.113281), + 4: float32(35976.753906), + 5: float32(-Float64FromFloat64(5354.3427734)), +} + +var _qR31 = [6]float32{ + 0: float32(4.37740999e-09), + 1: float32(0.073241114616), + 2: float32(3.3442313671), + 3: float32(42.621845245), + 4: float32(170.80809021), + 5: float32(166.73394775), +} +var _qS33 = [6]float32{ + 0: float32(48.758872986), + 1: float32(709.68920898), + 2: float32(3704.1481934), + 3: float32(6460.425293), + 4: float32(2516.3337402), + 5: float32(-Float64FromFloat64(149.24745178)), +} + +var _qR21 = [6]float32{ + 0: float32(1.5044444979e-07), + 1: float32(0.073223426938), + 2: float32(1.9981917143), + 3: float32(14.495602608), + 4: float32(31.666231155), + 5: float32(16.252708435), +} +var _qS23 = [6]float32{ + 0: float32(30.365585327), + 1: float32(269.34811401), + 2: float32(844.78375244), + 3: float32(882.93585205), + 4: float32(212.66638184), + 5: float32(-Float64FromFloat64(5.3109550476)), +} + +func _qzerof(tls *TLS, x float32) (r1 float32) { + var ix Tuint32_t + var p, q uintptr + var r, s, z Tfloat_t + _, _, _, _, _, _ = ix, p, q, r, s, z + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x41000000) { + p = uintptr(unsafe.Pointer(&_qR81)) + q = uintptr(unsafe.Pointer(&_qS81)) + } else { + if ix >= uint32(0x409173eb) { + p = uintptr(unsafe.Pointer(&_qR51)) + q = uintptr(unsafe.Pointer(&_qS51)) + } else { + if ix >= uint32(0x4036d917) { + p = uintptr(unsafe.Pointer(&_qR31)) + q = uintptr(unsafe.Pointer(&_qS33)) + } else { /*ix >= 0x40000000*/ + p = uintptr(unsafe.Pointer(&_qR21)) + q = uintptr(unsafe.Pointer(&_qS23)) + } + } + } + z = Float32FromFloat32(1) / float32(x*x) + r = **(**float32)(__ccgo_up(p)) + float32(z*(**(**float32)(__ccgo_up(p + 1*4))+float32(z*(**(**float32)(__ccgo_up(p + 2*4))+float32(z*(**(**float32)(__ccgo_up(p + 3*4))+float32(z*(**(**float32)(__ccgo_up(p + 4*4))+float32(z***(**float32)(__ccgo_up(p + 5*4))))))))))) + s = Float32FromFloat32(1) + float32(z*(**(**float32)(__ccgo_up(q))+float32(z*(**(**float32)(__ccgo_up(q + 1*4))+float32(z*(**(**float32)(__ccgo_up(q + 2*4))+float32(z*(**(**float32)(__ccgo_up(q + 3*4))+float32(z*(**(**float32)(__ccgo_up(q + 4*4))+float32(z***(**float32)(__ccgo_up(q + 5*4))))))))))))) + return (-Float32FromFloat32(0.125) + r/s) / x +} + +var _invsqrtpi2 = float64(0.5641895835477563) /* 0x3FE20DD7, 0x50429B6D */ +var _tpi2 = float64(0.6366197723675814) /* 0x3FE45F30, 0x6DC9C883 */ + +func _common2(tls *TLS, ix Tuint32_t, x float64, y1 int32, sign int32) (r float64) { + var c, cc, s, ss, z float64 + _, _, _, _, _ = c, cc, s, ss, z + /* + * j1(x) = sqrt(2/(pi*x))*(p1(x)*cos(x-3pi/4)-q1(x)*sin(x-3pi/4)) + * y1(x) = sqrt(2/(pi*x))*(p1(x)*sin(x-3pi/4)+q1(x)*cos(x-3pi/4)) + * + * sin(x-3pi/4) = -(sin(x) + cos(x))/sqrt(2) + * cos(x-3pi/4) = (sin(x) - cos(x))/sqrt(2) + * sin(x) +- cos(x) = -cos(2x)/(sin(x) -+ cos(x)) + */ + s = Xsin(tls, x) + if y1 != 0 { + s = -s + } + c = Xcos(tls, x) + cc = s - c + if ix < uint32(0x7fe00000) { + /* avoid overflow in 2*x */ + ss = -s - c + z = Xcos(tls, float64(Float64FromInt32(2)*x)) + if float64(s*c) > Float64FromInt32(0) { + cc = z / ss + } else { + ss = z / cc + } + if ix < uint32(0x48000000) { + if y1 != 0 { + ss = -ss + } + cc = float64(_pone(tls, x)*cc) - float64(_qone(tls, x)*ss) + } + } + if sign != 0 { + cc = -cc + } + return float64(_invsqrtpi2*cc) / Xsqrt(tls, x) +} + +// C documentation +// +// /* R0/S0 on [0,2] */ + +var _r00 = -Float64FromFloat64(0.0625) /* 0xBFB00000, 0x00000000 */ +var _r01 = float64(0.001407056669551897) /* 0x3F570D9F, 0x98472C61 */ +var _r02 = -Float64FromFloat64(1.599556310840356e-05) /* 0xBEF0C5C6, 0xBA169668 */ +var _r03 = float64(4.9672799960958445e-08) /* 0x3E6AAAFA, 0x46CA0BD9 */ +var _s01 = float64(0.019153759953836346) /* 0x3F939D0B, 0x12637E53 */ +var _s02 = float64(0.00018594678558863092) /* 0x3F285F56, 0xB9CDF664 */ +var _s03 = float64(1.1771846404262368e-06) /* 0x3EB3BFF8, 0x333F8498 */ +var _s04 = float64(5.0463625707621704e-09) /* 0x3E35AC88, 0xC97DFF2C */ +var _s05 = float64(1.2354227442613791e-11) /* 0x3DAB2ACF, 0xCFB97ED8 */ + +func Xj1(tls *TLS, x float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var ix Tuint32_t + var r, s, z float64 + var sign int32 + _, _, _, _, _ = ix, r, s, sign, z + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x7ff00000) { + return Float64FromInt32(1) / float64(x*x) + } + if ix >= uint32(0x40000000) { /* |x| >= 2 */ + return _common2(tls, ix, Xfabs(tls, x), 0, sign) + } + if ix >= uint32(0x38000000) { /* |x| >= 2**-127 */ + z = float64(x * x) + r = float64(z * (_r00 + float64(z*(_r01+float64(z*(_r02+float64(z*_r03))))))) + s = Float64FromInt32(1) + float64(z*(_s01+float64(z*(_s02+float64(z*(_s03+float64(z*(_s04+float64(z*_s05))))))))) + z = r / s + } else { + /* avoid underflow, raise inexact if x!=0 */ + z = x + } + return float64((float64(0.5) + z) * x) +} + +var _U0 = [5]float64{ + 0: -Float64FromFloat64(0.19605709064623894), + 1: float64(0.05044387166398113), + 2: -Float64FromFloat64(0.0019125689587576355), + 3: float64(2.352526005616105e-05), + 4: -Float64FromFloat64(9.190991580398789e-08), +} +var _V0 = [5]float64{ + 0: float64(0.01991673182366499), + 1: float64(0.00020255258102513517), + 2: float64(1.3560880109751623e-06), + 3: float64(6.227414523646215e-09), + 4: float64(1.6655924620799208e-11), +} + +func Xy1(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __u Tuint64_t + var ix, lx Tuint32_t + var u, v, z float64 + _, _, _, _, _, _ = __u, ix, lx, u, v, z + __u = *(*Tuint64_t)(unsafe.Pointer(&x)) + ix = uint32(__u >> int32(32)) + lx = uint32(__u) + /* y1(nan)=nan, y1(<0)=nan, y1(0)=-inf, y1(inf)=0 */ + if ix<>int32(31) != 0 { + return Float64FromInt32(0) / Float64FromFloat64(0) + } + if ix >= uint32(0x7ff00000) { + return Float64FromInt32(1) / x + } + if ix >= uint32(0x40000000) { /* x >= 2 */ + return _common2(tls, ix, x, int32(1), 0) + } + if ix < uint32(0x3c900000) { /* x < 2**-54 */ + return -_tpi2 / x + } + z = float64(x * x) + u = _U0[0] + float64(z*(_U0[int32(1)]+float64(z*(_U0[int32(2)]+float64(z*(_U0[int32(3)]+float64(z*_U0[int32(4)]))))))) + v = Float64FromInt32(1) + float64(z*(_V0[0]+float64(z*(_V0[int32(1)]+float64(z*(_V0[int32(2)]+float64(z*(_V0[int32(3)]+float64(z*_V0[int32(4)]))))))))) + return float64(x*(u/v)) + float64(_tpi2*(float64(Xj1(tls, x)*Xlog(tls, x))-Float64FromInt32(1)/x)) +} + +/* For x >= 8, the asymptotic expansions of pone is + * 1 + 15/128 s^2 - 4725/2^15 s^4 - ..., where s = 1/x. + * We approximate pone by + * pone(x) = 1 + (R/S) + * where R = pr0 + pr1*s^2 + pr2*s^4 + ... + pr5*s^10 + * S = 1 + ps0*s^2 + ... + ps4*s^10 + * and + * | pone(x)-1-R/S | <= 2 ** ( -60.06) + */ + +var _pr8 = [6]float64{ + 1: float64(0.11718749999998865), + 2: float64(13.239480659307358), + 3: float64(412.05185430737856), + 4: float64(3874.7453891396053), + 5: float64(7914.479540318917), +} +var _ps8 = [5]float64{ + 0: float64(114.20737037567841), + 1: float64(3650.9308342085346), + 2: float64(36956.206026903346), + 3: float64(97602.79359349508), + 4: float64(30804.27206278888), +} + +var _pr5 = [6]float64{ + 0: float64(1.3199051955624352e-11), + 1: float64(0.1171874931906141), + 2: float64(6.802751278684329), + 3: float64(108.30818299018911), + 4: float64(517.6361395331998), + 5: float64(528.7152013633375), +} +var _ps5 = [5]float64{ + 0: float64(59.28059872211313), + 1: float64(991.4014187336144), + 2: float64(5353.26695291488), + 3: float64(7844.690317495512), + 4: float64(1504.0468881036106), +} + +var _pr3 = [6]float64{ + 0: float64(3.025039161373736e-09), + 1: float64(0.11718686556725359), + 2: float64(3.9329775003331564), + 3: float64(35.11940355916369), + 4: float64(91.05501107507813), + 5: float64(48.55906851973649), +} +var _ps3 = [5]float64{ + 0: float64(34.79130950012515), + 1: float64(336.76245874782575), + 2: float64(1046.8713997577513), + 3: float64(890.8113463982564), + 4: float64(103.78793243963928), +} + +var _pr2 = [6]float64{ + 0: float64(1.0771083010687374e-07), + 1: float64(0.11717621946268335), + 2: float64(2.368514966676088), + 3: float64(12.242610914826123), + 4: float64(17.693971127168773), + 5: float64(5.073523125888185), +} +var _ps2 = [5]float64{ + 0: float64(21.43648593638214), + 1: float64(125.29022716840275), + 2: float64(232.2764690571628), + 3: float64(117.6793732871471), + 4: float64(8.364638933716183), +} + +func _pone(tls *TLS, x float64) (r1 float64) { + var ix Tuint32_t + var p, q uintptr + var r, s, z Tdouble_t + _, _, _, _, _, _ = ix, p, q, r, s, z + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x40200000) { + p = uintptr(unsafe.Pointer(&_pr8)) + q = uintptr(unsafe.Pointer(&_ps8)) + } else { + if ix >= uint32(0x40122E8B) { + p = uintptr(unsafe.Pointer(&_pr5)) + q = uintptr(unsafe.Pointer(&_ps5)) + } else { + if ix >= uint32(0x4006DB6D) { + p = uintptr(unsafe.Pointer(&_pr3)) + q = uintptr(unsafe.Pointer(&_ps3)) + } else { /*ix >= 0x40000000*/ + p = uintptr(unsafe.Pointer(&_pr2)) + q = uintptr(unsafe.Pointer(&_ps2)) + } + } + } + z = float64(1) / float64(x*x) + r = **(**float64)(__ccgo_up(p)) + float64(z*(**(**float64)(__ccgo_up(p + 1*8))+float64(z*(**(**float64)(__ccgo_up(p + 2*8))+float64(z*(**(**float64)(__ccgo_up(p + 3*8))+float64(z*(**(**float64)(__ccgo_up(p + 4*8))+float64(z***(**float64)(__ccgo_up(p + 5*8))))))))))) + s = float64(1) + float64(z*(**(**float64)(__ccgo_up(q))+float64(z*(**(**float64)(__ccgo_up(q + 1*8))+float64(z*(**(**float64)(__ccgo_up(q + 2*8))+float64(z*(**(**float64)(__ccgo_up(q + 3*8))+float64(z***(**float64)(__ccgo_up(q + 4*8))))))))))) + return float64(1) + r/s +} + +/* For x >= 8, the asymptotic expansions of qone is + * 3/8 s - 105/1024 s^3 - ..., where s = 1/x. + * We approximate pone by + * qone(x) = s*(0.375 + (R/S)) + * where R = qr1*s^2 + qr2*s^4 + ... + qr5*s^10 + * S = 1 + qs1*s^2 + ... + qs6*s^12 + * and + * | qone(x)/s -0.375-R/S | <= 2 ** ( -61.13) + */ + +var _qr8 = [6]float64{ + 1: -Float64FromFloat64(0.10253906249999271), + 2: -Float64FromFloat64(16.271753454459), + 3: -Float64FromFloat64(759.6017225139501), + 4: -Float64FromFloat64(11849.806670242959), + 5: -Float64FromFloat64(48438.512428575035), +} +var _qs8 = [6]float64{ + 0: float64(161.3953697007229), + 1: float64(7825.385999233485), + 2: float64(133875.33628724958), + 3: float64(719657.7236832409), + 4: float64(666601.2326177764), + 5: -Float64FromFloat64(294490.26430383464), +} + +var _qr5 = [6]float64{ + 0: -Float64FromFloat64(2.089799311417641e-11), + 1: -Float64FromFloat64(0.10253905024137543), + 2: -Float64FromFloat64(8.05644828123936), + 3: -Float64FromFloat64(183.66960747488838), + 4: -Float64FromFloat64(1373.1937606550816), + 5: -Float64FromFloat64(2612.4444045321566), +} +var _qs5 = [6]float64{ + 0: float64(81.27655013843358), + 1: float64(1991.7987346048596), + 2: float64(17468.48519249089), + 3: float64(49851.42709103523), + 4: float64(27948.075163891812), + 5: -Float64FromFloat64(4719.183547951285), +} + +var _qr3 = [6]float64{ + 0: -Float64FromFloat64(5.078312264617666e-09), + 1: -Float64FromFloat64(0.10253782982083709), + 2: -Float64FromFloat64(4.610115811394734), + 3: -Float64FromFloat64(57.847221656278364), + 4: -Float64FromFloat64(228.2445407376317), + 5: -Float64FromFloat64(219.21012847890933), +} +var _qs3 = [6]float64{ + 0: float64(47.66515503237295), + 1: float64(673.8651126766997), + 2: float64(3380.1528667952634), + 3: float64(5547.729097207228), + 4: float64(1903.119193388108), + 5: -Float64FromFloat64(135.20119144430734), +} + +var _qr2 = [6]float64{ + 0: -Float64FromFloat64(1.7838172751095887e-07), + 1: -Float64FromFloat64(0.10251704260798555), + 2: -Float64FromFloat64(2.7522056827818746), + 3: -Float64FromFloat64(19.663616264370372), + 4: -Float64FromFloat64(42.32531333728305), + 5: -Float64FromFloat64(21.371921170370406), +} +var _qs2 = [6]float64{ + 0: float64(29.533362906052385), + 1: float64(252.98154998219053), + 2: float64(757.5028348686454), + 3: float64(739.3932053204672), + 4: float64(155.94900333666612), + 5: -Float64FromFloat64(4.959498988226282), +} + +func _qone(tls *TLS, x float64) (r1 float64) { + var ix Tuint32_t + var p, q uintptr + var r, s, z Tdouble_t + _, _, _, _, _, _ = ix, p, q, r, s, z + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x40200000) { + p = uintptr(unsafe.Pointer(&_qr8)) + q = uintptr(unsafe.Pointer(&_qs8)) + } else { + if ix >= uint32(0x40122E8B) { + p = uintptr(unsafe.Pointer(&_qr5)) + q = uintptr(unsafe.Pointer(&_qs5)) + } else { + if ix >= uint32(0x4006DB6D) { + p = uintptr(unsafe.Pointer(&_qr3)) + q = uintptr(unsafe.Pointer(&_qs3)) + } else { /*ix >= 0x40000000*/ + p = uintptr(unsafe.Pointer(&_qr2)) + q = uintptr(unsafe.Pointer(&_qs2)) + } + } + } + z = float64(1) / float64(x*x) + r = **(**float64)(__ccgo_up(p)) + float64(z*(**(**float64)(__ccgo_up(p + 1*8))+float64(z*(**(**float64)(__ccgo_up(p + 2*8))+float64(z*(**(**float64)(__ccgo_up(p + 3*8))+float64(z*(**(**float64)(__ccgo_up(p + 4*8))+float64(z***(**float64)(__ccgo_up(p + 5*8))))))))))) + s = float64(1) + float64(z*(**(**float64)(__ccgo_up(q))+float64(z*(**(**float64)(__ccgo_up(q + 1*8))+float64(z*(**(**float64)(__ccgo_up(q + 2*8))+float64(z*(**(**float64)(__ccgo_up(q + 3*8))+float64(z*(**(**float64)(__ccgo_up(q + 4*8))+float64(z***(**float64)(__ccgo_up(q + 5*8))))))))))))) + return (float64(0.375) + r/s) / x +} + +var _invsqrtpi3 = float32(0.56418961287) /* 0x3f106ebb */ +var _tpi3 = float32(0.63661974669) /* 0x3f22f983 */ + +func _common3(tls *TLS, ix Tuint32_t, x float32, y1 int32, sign int32) (r float32) { + var c, cc, s, ss, z float64 + _, _, _, _, _ = c, cc, s, ss, z + s = float64(Xsinf(tls, x)) + if y1 != 0 { + s = -s + } + c = float64(Xcosf(tls, x)) + cc = s - c + if ix < uint32(0x7f000000) { + ss = -s - c + z = float64(Xcosf(tls, float32(Float32FromInt32(2)*x))) + if float64(s*c) > Float64FromInt32(0) { + cc = z / ss + } else { + ss = z / cc + } + if ix < uint32(0x58800000) { + if y1 != 0 { + ss = -ss + } + cc = float64(float64(_ponef(tls, x))*cc) - float64(float64(_qonef(tls, x))*ss) + } + } + if sign != 0 { + cc = -cc + } + return float32(float64(float64(_invsqrtpi3)*cc) / float64(Xsqrtf(tls, x))) +} + +// C documentation +// +// /* R0/S0 on [0,2] */ + +var _r001 = float32(-Float64FromFloat64(0.0625)) /* 0xbd800000 */ +var _r011 = float32(0.0014070566976) /* 0x3ab86cfd */ +var _r021 = float32(-Float64FromFloat64(1.5995563444e-05)) /* 0xb7862e36 */ +var _r031 = float32(4.9672799207e-08) /* 0x335557d2 */ +var _s011 = float32(0.019153760746) /* 0x3c9ce859 */ +var _s021 = float32(0.00018594678841) /* 0x3942fab6 */ +var _s031 = float32(1.1771846857e-06) /* 0x359dffc2 */ +var _s041 = float32(5.046362439e-09) /* 0x31ad6446 */ +var _s051 = float32(1.2354227016e-11) /* 0x2d59567e */ + +func Xj1f(tls *TLS, x float32) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var ix Tuint32_t + var r, s, z float32 + var sign int32 + _, _, _, _, _ = ix, r, s, sign, z + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x7f800000) { + return Float32FromInt32(1) / float32(x*x) + } + if ix >= uint32(0x40000000) { /* |x| >= 2 */ + return _common3(tls, ix, Xfabsf(tls, x), 0, sign) + } + if ix >= uint32(0x39000000) { /* |x| >= 2**-13 */ + z = float32(x * x) + r = float32(z * (_r001 + float32(z*(_r011+float32(z*(_r021+float32(z*_r031))))))) + s = Float32FromInt32(1) + float32(z*(_s011+float32(z*(_s021+float32(z*(_s031+float32(z*(_s041+float32(z*_s051))))))))) + z = Float32FromFloat32(0.5) + r/s + } else { + z = Float32FromFloat32(0.5) + } + return float32(z * x) +} + +var _U01 = [5]float32{ + 0: float32(-Float64FromFloat64(0.19605709612)), + 1: float32(0.050443872809), + 2: float32(-Float64FromFloat64(0.0019125689287)), + 3: float32(2.3525259166e-05), + 4: float32(-Float64FromFloat64(9.1909917899e-08)), +} +var _V01 = [5]float32{ + 0: float32(0.019916731864), + 1: float32(0.0002025525755), + 2: float32(1.3560879779e-06), + 3: float32(6.227414584e-09), + 4: float32(1.6655924903e-11), +} + +func Xy1f(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ix Tuint32_t + var u, v, z float32 + _, _, _, _ = ix, u, v, z + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + if ix&uint32(0x7fffffff) == uint32(0) { + return float32(-Int32FromInt32(1)) / Float32FromFloat32(0) + } + if ix>>int32(31) != 0 { + return Float32FromInt32(0) / Float32FromFloat32(0) + } + if ix >= uint32(0x7f800000) { + return Float32FromInt32(1) / x + } + if ix >= uint32(0x40000000) { /* |x| >= 2.0 */ + return _common3(tls, ix, x, int32(1), 0) + } + if ix < uint32(0x33000000) { /* x < 2**-25 */ + return -_tpi3 / x + } + z = float32(x * x) + u = _U01[0] + float32(z*(_U01[int32(1)]+float32(z*(_U01[int32(2)]+float32(z*(_U01[int32(3)]+float32(z*_U01[int32(4)]))))))) + v = Float32FromFloat32(1) + float32(z*(_V01[0]+float32(z*(_V01[int32(1)]+float32(z*(_V01[int32(2)]+float32(z*(_V01[int32(3)]+float32(z*_V01[int32(4)]))))))))) + return float32(x*(u/v)) + float32(_tpi3*(float32(Xj1f(tls, x)*Xlogf(tls, x))-Float32FromFloat32(1)/x)) +} + +/* For x >= 8, the asymptotic expansions of pone is + * 1 + 15/128 s^2 - 4725/2^15 s^4 - ..., where s = 1/x. + * We approximate pone by + * pone(x) = 1 + (R/S) + * where R = pr0 + pr1*s^2 + pr2*s^4 + ... + pr5*s^10 + * S = 1 + ps0*s^2 + ... + ps4*s^10 + * and + * | pone(x)-1-R/S | <= 2 ** ( -60.06) + */ + +var _pr81 = [6]float32{ + 1: float32(0.1171875), + 2: float32(13.239480972), + 3: float32(412.05184937), + 4: float32(3874.7453613), + 5: float32(7914.4794922), +} +var _ps81 = [5]float32{ + 0: float32(114.20736694), + 1: float32(3650.9309082), + 2: float32(36956.207031), + 3: float32(97602.796875), + 4: float32(30804.271484), +} + +var _pr51 = [6]float32{ + 0: float32(1.3199052094e-11), + 1: float32(0.11718749255), + 2: float32(6.8027510643), + 3: float32(108.30818176), + 4: float32(517.63616943), + 5: float32(528.71520996), +} +var _ps51 = [5]float32{ + 0: float32(59.280597687), + 1: float32(991.40142822), + 2: float32(5353.2670898), + 3: float32(7844.6904297), + 4: float32(1504.046875), +} + +var _pr31 = [6]float32{ + 0: float32(3.0250391081e-09), + 1: float32(0.1171868667), + 2: float32(3.932977438), + 3: float32(35.119403839), + 4: float32(91.055007935), + 5: float32(48.559066772), +} +var _ps31 = [5]float32{ + 0: float32(34.791309357), + 1: float32(336.76245117), + 2: float32(1046.87146), + 3: float32(890.81134033), + 4: float32(103.78793335), +} + +var _pr21 = [6]float32{ + 0: float32(1.0771083225e-07), + 1: float32(0.11717621982), + 2: float32(2.3685150146), + 3: float32(12.242610931), + 4: float32(17.693971634), + 5: float32(5.0735230446), +} +var _ps21 = [5]float32{ + 0: float32(21.436485291), + 1: float32(125.2902298), + 2: float32(232.276474), + 3: float32(117.67937469), + 4: float32(8.3646392822), +} + +func _ponef(tls *TLS, x float32) (r1 float32) { + var ix Tuint32_t + var p, q uintptr + var r, s, z Tfloat_t + _, _, _, _, _, _ = ix, p, q, r, s, z + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x41000000) { + p = uintptr(unsafe.Pointer(&_pr81)) + q = uintptr(unsafe.Pointer(&_ps81)) + } else { + if ix >= uint32(0x409173eb) { + p = uintptr(unsafe.Pointer(&_pr51)) + q = uintptr(unsafe.Pointer(&_ps51)) + } else { + if ix >= uint32(0x4036d917) { + p = uintptr(unsafe.Pointer(&_pr31)) + q = uintptr(unsafe.Pointer(&_ps31)) + } else { /*ix >= 0x40000000*/ + p = uintptr(unsafe.Pointer(&_pr21)) + q = uintptr(unsafe.Pointer(&_ps21)) + } + } + } + z = Float32FromFloat32(1) / float32(x*x) + r = **(**float32)(__ccgo_up(p)) + float32(z*(**(**float32)(__ccgo_up(p + 1*4))+float32(z*(**(**float32)(__ccgo_up(p + 2*4))+float32(z*(**(**float32)(__ccgo_up(p + 3*4))+float32(z*(**(**float32)(__ccgo_up(p + 4*4))+float32(z***(**float32)(__ccgo_up(p + 5*4))))))))))) + s = Float32FromFloat32(1) + float32(z*(**(**float32)(__ccgo_up(q))+float32(z*(**(**float32)(__ccgo_up(q + 1*4))+float32(z*(**(**float32)(__ccgo_up(q + 2*4))+float32(z*(**(**float32)(__ccgo_up(q + 3*4))+float32(z***(**float32)(__ccgo_up(q + 4*4))))))))))) + return Float32FromFloat32(1) + r/s +} + +/* For x >= 8, the asymptotic expansions of qone is + * 3/8 s - 105/1024 s^3 - ..., where s = 1/x. + * We approximate pone by + * qone(x) = s*(0.375 + (R/S)) + * where R = qr1*s^2 + qr2*s^4 + ... + qr5*s^10 + * S = 1 + qs1*s^2 + ... + qs6*s^12 + * and + * | qone(x)/s -0.375-R/S | <= 2 ** ( -61.13) + */ + +var _qr81 = [6]float32{ + 1: float32(-Float64FromFloat64(0.1025390625)), + 2: float32(-Float64FromFloat64(16.271753311)), + 3: float32(-Float64FromFloat64(759.60174561)), + 4: float32(-Float64FromFloat64(11849.806641)), + 5: float32(-Float64FromFloat64(48438.511719)), +} +var _qs81 = [6]float32{ + 0: float32(161.39537048), + 1: float32(7825.3862305), + 2: float32(133875.34375), + 3: float32(719657.75), + 4: float32(666601.25), + 5: float32(-Float64FromFloat64(294490.25)), +} + +var _qr51 = [6]float32{ + 0: float32(-Float64FromFloat64(2.0897993405e-11)), + 1: float32(-Float64FromFloat64(0.1025390476)), + 2: float32(-Float64FromFloat64(8.0564479828)), + 3: float32(-Float64FromFloat64(183.66960144)), + 4: float32(-Float64FromFloat64(1373.1937256)), + 5: float32(-Float64FromFloat64(2612.4443359)), +} +var _qs51 = [6]float32{ + 0: float32(81.276550293), + 1: float32(1991.7987061), + 2: float32(17468.484375), + 3: float32(49851.425781), + 4: float32(27948.074219), + 5: float32(-Float64FromFloat64(4719.1835938)), +} + +var _qr31 = [6]float32{ + 0: float32(-Float64FromFloat64(5.0783124372e-09)), + 1: float32(-Float64FromFloat64(0.10253783315)), + 2: float32(-Float64FromFloat64(4.6101160049)), + 3: float32(-Float64FromFloat64(57.847221375)), + 4: float32(-Float64FromFloat64(228.24453735)), + 5: float32(-Float64FromFloat64(219.21012878)), +} +var _qs31 = [6]float32{ + 0: float32(47.665153503), + 1: float32(673.8651123), + 2: float32(3380.152832), + 3: float32(5547.7290039), + 4: float32(1903.1191406), + 5: float32(-Float64FromFloat64(135.20118713)), +} + +var _qr21 = [6]float32{ + 0: float32(-Float64FromFloat64(1.7838172539e-07)), + 1: float32(-Float64FromFloat64(0.10251704603)), + 2: float32(-Float64FromFloat64(2.7522056103)), + 3: float32(-Float64FromFloat64(19.66361618)), + 4: float32(-Float64FromFloat64(42.325313568)), + 5: float32(-Float64FromFloat64(21.371921539)), +} +var _qs21 = [6]float32{ + 0: float32(29.533363342), + 1: float32(252.98155212), + 2: float32(757.50280762), + 3: float32(739.39318848), + 4: float32(155.94900513), + 5: float32(-Float64FromFloat64(4.9594988823)), +} + +func _qonef(tls *TLS, x float32) (r1 float32) { + var ix Tuint32_t + var p, q uintptr + var r, s, z Tfloat_t + _, _, _, _, _, _ = ix, p, q, r, s, z + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x41000000) { + p = uintptr(unsafe.Pointer(&_qr81)) + q = uintptr(unsafe.Pointer(&_qs81)) + } else { + if ix >= uint32(0x409173eb) { + p = uintptr(unsafe.Pointer(&_qr51)) + q = uintptr(unsafe.Pointer(&_qs51)) + } else { + if ix >= uint32(0x4036d917) { + p = uintptr(unsafe.Pointer(&_qr31)) + q = uintptr(unsafe.Pointer(&_qs31)) + } else { /*ix >= 0x40000000*/ + p = uintptr(unsafe.Pointer(&_qr21)) + q = uintptr(unsafe.Pointer(&_qs21)) + } + } + } + z = Float32FromFloat32(1) / float32(x*x) + r = **(**float32)(__ccgo_up(p)) + float32(z*(**(**float32)(__ccgo_up(p + 1*4))+float32(z*(**(**float32)(__ccgo_up(p + 2*4))+float32(z*(**(**float32)(__ccgo_up(p + 3*4))+float32(z*(**(**float32)(__ccgo_up(p + 4*4))+float32(z***(**float32)(__ccgo_up(p + 5*4))))))))))) + s = Float32FromFloat32(1) + float32(z*(**(**float32)(__ccgo_up(q))+float32(z*(**(**float32)(__ccgo_up(q + 1*4))+float32(z*(**(**float32)(__ccgo_up(q + 2*4))+float32(z*(**(**float32)(__ccgo_up(q + 3*4))+float32(z*(**(**float32)(__ccgo_up(q + 4*4))+float32(z***(**float32)(__ccgo_up(q + 5*4))))))))))))) + return (Float32FromFloat32(0.375) + r/s) / x +} + +var _invsqrtpi4 = float64(0.5641895835477563) /* 0x3FE20DD7, 0x50429B6D */ + +func Xjn(tls *TLS, n int32, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v n=%v x=%v, (%v:)", tls, n, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __u Tuint64_t + var a, b, h, nf, q0, q1, t, temp, tmp, w, z, v6 float64 + var i, k, nm1, sign int32 + var ix, lx Tuint32_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = __u, a, b, h, i, ix, k, lx, nf, nm1, q0, q1, sign, t, temp, tmp, w, z, v6 + __u = *(*Tuint64_t)(unsafe.Pointer(&x)) + ix = uint32(__u >> int32(32)) + lx = uint32(__u) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix|(lx|-lx)>>int32(31) > uint32(0x7ff00000) { /* nan */ + return x + } + /* J(-n,x) = (-1)^n * J(n, x), J(n, -x) = (-1)^n * J(n, x) + * Thus, J(-n,x) = J(n,-x) + */ + /* nm1 = |n|-1 is used instead of |n| to handle n==INT_MIN */ + if n == 0 { + return Xj0(tls, x) + } + if n < 0 { + nm1 = -(n + int32(1)) + x = -x + sign = sign ^ int32(1) + } else { + nm1 = n - int32(1) + } + if nm1 == 0 { + return Xj1(tls, x) + } + sign = sign & n /* even n: 0, odd n: signbit(x) */ + x = Xfabs(tls, x) + if ix|lx == uint32(0) || ix == uint32(0x7ff00000) { /* if x is 0 or inf */ + b = float64(0) + } else { + if float64(nm1) < x { + /* Safe to use J(n+1,x)=2n/x *J(n,x)-J(n-1,x) */ + if ix >= uint32(0x52d00000) { /* x > 2**302 */ + /* (x >> n**2) + * Jn(x) = cos(x-(2n+1)*pi/4)*sqrt(2/x*pi) + * Yn(x) = sin(x-(2n+1)*pi/4)*sqrt(2/x*pi) + * Let s=sin(x), c=cos(x), + * xn=x-(2n+1)*pi/4, sqt2 = sqrt(2),then + * + * n sin(xn)*sqt2 cos(xn)*sqt2 + * ---------------------------------- + * 0 s-c c+s + * 1 -s-c -c+s + * 2 -s+c -c-s + * 3 s+c c-s + */ + switch nm1 & Int32FromInt32(3) { + case 0: + temp = -Xcos(tls, x) + Xsin(tls, x) + case int32(1): + temp = -Xcos(tls, x) - Xsin(tls, x) + case int32(2): + temp = Xcos(tls, x) - Xsin(tls, x) + default: + fallthrough + case int32(3): + temp = Xcos(tls, x) + Xsin(tls, x) + break + } + b = float64(_invsqrtpi4*temp) / Xsqrt(tls, x) + } else { + a = Xj0(tls, x) + b = Xj1(tls, x) + i = 0 + for { + if !(i < nm1) { + break + } + i = i + 1 + temp = b + b = float64(b*(float64(float64(2)*float64(i))/x)) - a /* avoid underflow */ + a = temp + goto _1 + _1: + } + } + } else { + if ix < uint32(0x3e100000) { /* x < 2**-29 */ + /* x is tiny, return the first Taylor expansion of J(n,x) + * J(n,x) = 1/n!*(x/2)^n - ... + */ + if nm1 > int32(32) { /* underflow */ + b = float64(0) + } else { + temp = float64(x * float64(0.5)) + b = temp + a = float64(1) + i = int32(2) + for { + if !(i <= nm1+int32(1)) { + break + } + a = a * float64(i) /* a = n! */ + b = b * temp /* b = (x/2)^n */ + goto _2 + _2: + ; + i = i + 1 + } + b = b / a + } + } else { + nf = float64(nm1) + float64(1) + w = float64(Float64FromInt32(2)*nf) / x + h = Float64FromInt32(2) / x + z = w + h + q0 = w + q1 = float64(w*z) - float64(1) + k = int32(1) + for q1 < float64(1e+09) { + k = k + int32(1) + z = z + h + tmp = float64(z*q1) - q0 + q0 = q1 + q1 = tmp + } + t = float64(0) + i = k + for { + if !(i >= 0) { + break + } + t = Float64FromInt32(1) / (float64(Float64FromInt32(2)*(float64(i)+nf))/x - t) + goto _3 + _3: + ; + i = i - 1 + } + a = t + b = float64(1) + /* estimate log((2/x)^n*n!) = n*log(2/x)+n*ln(n) + * Hence, if n*(log(2n/x)) > ... + * single 8.8722839355e+01 + * double 7.09782712893383973096e+02 + * long double 1.1356523406294143949491931077970765006170e+04 + * then recurrent value may overflow and the result is + * likely underflow to zero + */ + tmp = float64(nf * Xlog(tls, Xfabs(tls, w))) + if tmp < float64(709.782712893384) { + i = nm1 + for { + if !(i > 0) { + break + } + temp = b + b = float64(b*float64(float64(2)*float64(i)))/x - a + a = temp + goto _4 + _4: + ; + i = i - 1 + } + } else { + i = nm1 + for { + if !(i > 0) { + break + } + temp = b + b = float64(b*float64(float64(2)*float64(i)))/x - a + a = temp + /* scale b to avoid spurious overflow */ + if b > float64(3.273390607896142e+150) { + a = a / b + t = t / b + b = float64(1) + } + goto _5 + _5: + ; + i = i - 1 + } + } + z = Xj0(tls, x) + w = Xj1(tls, x) + if Xfabs(tls, z) >= Xfabs(tls, w) { + b = float64(t*z) / b + } else { + b = float64(t*w) / a + } + } + } + } + if sign != 0 { + v6 = -b + } else { + v6 = b + } + return v6 +} + +func Xyn(tls *TLS, n int32, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v n=%v x=%v, (%v:)", tls, n, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __u Tuint64_t + var a, b, temp, v1 float64 + var i, nm1, sign int32 + var ib, ix, lx Tuint32_t + _, _, _, _, _, _, _, _, _, _, _ = __u, a, b, i, ib, ix, lx, nm1, sign, temp, v1 + __u = *(*Tuint64_t)(unsafe.Pointer(&x)) + ix = uint32(__u >> int32(32)) + lx = uint32(__u) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix|(lx|-lx)>>int32(31) > uint32(0x7ff00000) { /* nan */ + return x + } + if sign != 0 && ix|lx != uint32(0) { /* x < 0 */ + return Float64FromInt32(0) / Float64FromFloat64(0) + } + if ix == uint32(0x7ff00000) { + return float64(0) + } + if n == 0 { + return Xy0(tls, x) + } + if n < 0 { + nm1 = -(n + int32(1)) + sign = n & int32(1) + } else { + nm1 = n - int32(1) + sign = 0 + } + if nm1 == 0 { + if sign != 0 { + v1 = -Xy1(tls, x) + } else { + v1 = Xy1(tls, x) + } + return v1 + } + if ix >= uint32(0x52d00000) { /* x > 2**302 */ + /* (x >> n**2) + * Jn(x) = cos(x-(2n+1)*pi/4)*sqrt(2/x*pi) + * Yn(x) = sin(x-(2n+1)*pi/4)*sqrt(2/x*pi) + * Let s=sin(x), c=cos(x), + * xn=x-(2n+1)*pi/4, sqt2 = sqrt(2),then + * + * n sin(xn)*sqt2 cos(xn)*sqt2 + * ---------------------------------- + * 0 s-c c+s + * 1 -s-c -c+s + * 2 -s+c -c-s + * 3 s+c c-s + */ + switch nm1 & Int32FromInt32(3) { + case 0: + temp = -Xsin(tls, x) - Xcos(tls, x) + case int32(1): + temp = -Xsin(tls, x) + Xcos(tls, x) + case int32(2): + temp = Xsin(tls, x) + Xcos(tls, x) + default: + fallthrough + case int32(3): + temp = Xsin(tls, x) - Xcos(tls, x) + break + } + b = float64(_invsqrtpi4*temp) / Xsqrt(tls, x) + } else { + a = Xy0(tls, x) + b = Xy1(tls, x) + /* quit if b is -inf */ + ib = uint32(*(*Tuint64_t)(unsafe.Pointer(&b)) >> int32(32)) + i = 0 + for { + if !(i < nm1 && ib != uint32(0xfff00000)) { + break + } + i = i + 1 + temp = b + b = float64(float64(float64(2)*float64(i))/x*b) - a + ib = uint32(*(*Tuint64_t)(unsafe.Pointer(&b)) >> int32(32)) + a = temp + goto _2 + _2: + } + } + if sign != 0 { + v1 = -b + } else { + v1 = b + } + return v1 +} + +func Xjnf(tls *TLS, n int32, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v n=%v x=%v, (%v:)", tls, n, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, b, h, nf, q0, q1, t, temp, tmp, w, z, v6 float32 + var i, k, nm1, sign int32 + var ix Tuint32_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = a, b, h, i, ix, k, nf, nm1, q0, q1, sign, t, temp, tmp, w, z, v6 + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix > uint32(0x7f800000) { /* nan */ + return x + } + /* J(-n,x) = J(n,-x), use |n|-1 to avoid overflow in -n */ + if n == 0 { + return Xj0f(tls, x) + } + if n < 0 { + nm1 = -(n + int32(1)) + x = -x + sign = sign ^ int32(1) + } else { + nm1 = n - int32(1) + } + if nm1 == 0 { + return Xj1f(tls, x) + } + sign = sign & n /* even n: 0, odd n: signbit(x) */ + x = Xfabsf(tls, x) + if ix == uint32(0) || ix == uint32(0x7f800000) { /* if x is 0 or inf */ + b = Float32FromFloat32(0) + } else { + if float32(nm1) < x { + /* Safe to use J(n+1,x)=2n/x *J(n,x)-J(n-1,x) */ + a = Xj0f(tls, x) + b = Xj1f(tls, x) + i = 0 + for { + if !(i < nm1) { + break + } + i = i + 1 + temp = b + b = float32(b*(float32(Float32FromFloat32(2)*float32(i))/x)) - a + a = temp + goto _1 + _1: + } + } else { + if ix < uint32(0x35800000) { /* x < 2**-20 */ + /* x is tiny, return the first Taylor expansion of J(n,x) + * J(n,x) = 1/n!*(x/2)^n - ... + */ + if nm1 > int32(8) { /* underflow */ + nm1 = int32(8) + } + temp = float32(Float32FromFloat32(0.5) * x) + b = temp + a = Float32FromFloat32(1) + i = int32(2) + for { + if !(i <= nm1+int32(1)) { + break + } + a = a * float32(i) /* a = n! */ + b = b * temp /* b = (x/2)^n */ + goto _2 + _2: + ; + i = i + 1 + } + b = b / a + } else { + nf = float32(nm1) + Float32FromFloat32(1) + w = float32(Float32FromInt32(2)*nf) / x + h = Float32FromInt32(2) / x + z = w + h + q0 = w + q1 = float32(w*z) - Float32FromFloat32(1) + k = int32(1) + for q1 < Float32FromFloat32(10000) { + k = k + int32(1) + z = z + h + tmp = float32(z*q1) - q0 + q0 = q1 + q1 = tmp + } + t = Float32FromFloat32(0) + i = k + for { + if !(i >= 0) { + break + } + t = Float32FromFloat32(1) / (float32(Float32FromInt32(2)*(float32(i)+nf))/x - t) + goto _3 + _3: + ; + i = i - 1 + } + a = t + b = Float32FromFloat32(1) + /* estimate log((2/x)^n*n!) = n*log(2/x)+n*ln(n) + * Hence, if n*(log(2n/x)) > ... + * single 8.8722839355e+01 + * double 7.09782712893383973096e+02 + * long double 1.1356523406294143949491931077970765006170e+04 + * then recurrent value may overflow and the result is + * likely underflow to zero + */ + tmp = float32(nf * Xlogf(tls, Xfabsf(tls, w))) + if tmp < Float32FromFloat32(88.721679688) { + i = nm1 + for { + if !(i > 0) { + break + } + temp = b + b = float32(float32(Float32FromFloat32(2)*float32(i))*b)/x - a + a = temp + goto _4 + _4: + ; + i = i - 1 + } + } else { + i = nm1 + for { + if !(i > 0) { + break + } + temp = b + b = float32(float32(Float32FromFloat32(2)*float32(i))*b)/x - a + a = temp + /* scale b to avoid spurious overflow */ + if b > Float32FromFloat32(1.152921504606847e+18) { + a = a / b + t = t / b + b = Float32FromFloat32(1) + } + goto _5 + _5: + ; + i = i - 1 + } + } + z = Xj0f(tls, x) + w = Xj1f(tls, x) + if Xfabsf(tls, z) >= Xfabsf(tls, w) { + b = float32(t*z) / b + } else { + b = float32(t*w) / a + } + } + } + } + if sign != 0 { + v6 = -b + } else { + v6 = b + } + return v6 +} + +func Xynf(tls *TLS, n int32, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v n=%v x=%v, (%v:)", tls, n, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, b, temp, v1 float32 + var i, nm1, sign int32 + var ib, ix Tuint32_t + _, _, _, _, _, _, _, _, _ = a, b, i, ib, ix, nm1, sign, temp, v1 + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix > uint32(0x7f800000) { /* nan */ + return x + } + if sign != 0 && ix != uint32(0) { /* x < 0 */ + return Float32FromInt32(0) / Float32FromFloat32(0) + } + if ix == uint32(0x7f800000) { + return Float32FromFloat32(0) + } + if n == 0 { + return Xy0f(tls, x) + } + if n < 0 { + nm1 = -(n + int32(1)) + sign = n & int32(1) + } else { + nm1 = n - int32(1) + sign = 0 + } + if nm1 == 0 { + if sign != 0 { + v1 = -Xy1f(tls, x) + } else { + v1 = Xy1f(tls, x) + } + return v1 + } + a = Xy0f(tls, x) + b = Xy1f(tls, x) + /* quit if b is -inf */ + ib = *(*Tuint32_t)(unsafe.Pointer(&b)) + i = 0 + for { + if !(i < nm1 && ib != uint32(0xff800000)) { + break + } + i = i + 1 + temp = b + b = float32(float32(Float32FromFloat32(2)*float32(i))/x*b) - a + ib = *(*Tuint32_t)(unsafe.Pointer(&b)) + a = temp + goto _2 + _2: + } + if sign != 0 { + v1 = -b + } else { + v1 = b + } + return v1 +} + +func Xldexp(tls *TLS, x float64, n int32) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xscalbn(tls, x, n) +} + +func Xldexpf(tls *TLS, x float32, n int32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xscalbnf(tls, x, n) +} + +func Xldexpl(tls *TLS, x float64, n int32) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xscalbnl(tls, x, n) +} + +func Xlgamma(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lgamma_r(tls, x, uintptr(unsafe.Pointer(&Xsigngam))) +} + +var _pi2 = float64(3.141592653589793) /* 0x400921FB, 0x54442D18 */ +var _a0 = float64(0.07721566490153287) /* 0x3FB3C467, 0xE37DB0C8 */ +var _a1 = float64(0.3224670334241136) /* 0x3FD4A34C, 0xC4A60FAD */ +var _a2 = float64(0.06735230105312927) /* 0x3FB13E00, 0x1A5562A7 */ +var _a3 = float64(0.020580808432516733) /* 0x3F951322, 0xAC92547B */ +var _a4 = float64(0.007385550860814029) /* 0x3F7E404F, 0xB68FEFE8 */ +var _a5 = float64(0.0028905138367341563) /* 0x3F67ADD8, 0xCCB7926B */ +var _a6 = float64(0.0011927076318336207) /* 0x3F538A94, 0x116F3F5D */ +var _a7 = float64(0.0005100697921535113) /* 0x3F40B6C6, 0x89B99C00 */ +var _a8 = float64(0.00022086279071390839) /* 0x3F2CF2EC, 0xED10E54D */ +var _a9 = float64(0.00010801156724758394) /* 0x3F1C5088, 0x987DFB07 */ +var _a10 = float64(2.5214456545125733e-05) /* 0x3EFA7074, 0x428CFA52 */ +var _a11 = float64(4.4864094961891516e-05) /* 0x3F07858E, 0x90A45837 */ +var _tc = float64(1.4616321449683622) /* 0x3FF762D8, 0x6356BE3F */ +var _tf = -Float64FromFloat64(0.12148629053584961) /* 0xBFBF19B9, 0xBCC38A42 */ +/* tt = -(tail of tf) */ +var _tt = -Float64FromFloat64(3.638676997039505e-18) /* 0xBC50C7CA, 0xA48A971F */ +var _t0 = float64(0.48383612272381005) /* 0x3FDEF72B, 0xC8EE38A2 */ +var _t1 = -Float64FromFloat64(0.1475877229945939) /* 0xBFC2E427, 0x8DC6C509 */ +var _t2 = float64(0.06462494023913339) /* 0x3FB08B42, 0x94D5419B */ +var _t3 = -Float64FromFloat64(0.032788541075985965) /* 0xBFA0C9A8, 0xDF35B713 */ +var _t4 = float64(0.01797067508118204) /* 0x3F9266E7, 0x970AF9EC */ +var _t5 = -Float64FromFloat64(0.010314224129834144) /* 0xBF851F9F, 0xBA91EC6A */ +var _t6 = float64(0.006100538702462913) /* 0x3F78FCE0, 0xE370E344 */ +var _t7 = -Float64FromFloat64(0.0036845201678113826) /* 0xBF6E2EFF, 0xB3E914D7 */ +var _t8 = float64(0.0022596478090061247) /* 0x3F6282D3, 0x2E15C915 */ +var _t9 = -Float64FromFloat64(0.0014034646998923284) /* 0xBF56FE8E, 0xBF2D1AF1 */ +var _t10 = float64(0.000881081882437654) /* 0x3F4CDF0C, 0xEF61A8E9 */ +var _t11 = -Float64FromFloat64(0.0005385953053567405) /* 0xBF41A610, 0x9C73E0EC */ +var _t12 = float64(0.00031563207090362595) /* 0x3F34AF6D, 0x6C0EBBF7 */ +var _t13 = -Float64FromFloat64(0.00031275416837512086) /* 0xBF347F24, 0xECC38C38 */ +var _t14 = float64(0.0003355291926355191) /* 0x3F35FD3E, 0xE8C2D3F4 */ +var _u0 = -Float64FromFloat64(0.07721566490153287) /* 0xBFB3C467, 0xE37DB0C8 */ +var _u1 = float64(0.6328270640250934) /* 0x3FE4401E, 0x8B005DFF */ +var _u2 = float64(1.4549225013723477) /* 0x3FF7475C, 0xD119BD6F */ +var _u3 = float64(0.9777175279633727) /* 0x3FEF4976, 0x44EA8450 */ +var _u4 = float64(0.22896372806469245) /* 0x3FCD4EAE, 0xF6010924 */ +var _u5 = float64(0.013381091853678766) /* 0x3F8B678B, 0xBF2BAB09 */ +var _v1 = float64(2.4559779371304113) /* 0x4003A5D7, 0xC2BD619C */ +var _v2 = float64(2.128489763798934) /* 0x40010725, 0xA42B18F5 */ +var _v3 = float64(0.7692851504566728) /* 0x3FE89DFB, 0xE45050AF */ +var _v4 = float64(0.10422264559336913) /* 0x3FBAAE55, 0xD6537C88 */ +var _v5 = float64(0.003217092422824239) /* 0x3F6A5ABB, 0x57D0CF61 */ +var _s0 = -Float64FromFloat64(0.07721566490153287) /* 0xBFB3C467, 0xE37DB0C8 */ +var _s1 = float64(0.21498241596060885) /* 0x3FCB848B, 0x36E20878 */ +var _s2 = float64(0.325778796408931) /* 0x3FD4D98F, 0x4F139F59 */ +var _s3 = float64(0.14635047265246445) /* 0x3FC2BB9C, 0xBEE5F2F7 */ +var _s4 = float64(0.02664227030336386) /* 0x3F9B481C, 0x7E939961 */ +var _s5 = float64(0.0018402845140733772) /* 0x3F5E26B6, 0x7368F239 */ +var _s6 = float64(3.194753265841009e-05) /* 0x3F00BFEC, 0xDD17E945 */ +var _r1 = float64(1.3920053346762105) /* 0x3FF645A7, 0x62C4AB74 */ +var _r2 = float64(0.7219355475671381) /* 0x3FE71A18, 0x93D3DCDC */ +var _r3 = float64(0.17193386563280308) /* 0x3FC601ED, 0xCCFBDF27 */ +var _r4 = float64(0.01864591917156529) /* 0x3F9317EA, 0x742ED475 */ +var _r5 = float64(0.0007779424963818936) /* 0x3F497DDA, 0xCA41A95B */ +var _r6 = float64(7.326684307446256e-06) /* 0x3EDEBAF7, 0xA5B38140 */ +var _w0 = float64(0.4189385332046727) /* 0x3FDACFE3, 0x90C97D69 */ +var _w1 = float64(0.08333333333333297) /* 0x3FB55555, 0x5555553B */ +var _w2 = -Float64FromFloat64(0.0027777777772877554) /* 0xBF66C16C, 0x16B02E5C */ +var _w3 = float64(0.0007936505586430196) /* 0x3F4A019F, 0x98CF38B6 */ +var _w4 = -Float64FromFloat64(0.00059518755745034) /* 0xBF4380CB, 0x8C0FE741 */ +var _w5 = float64(0.0008363399189962821) /* 0x3F4B67BA, 0x4CDAD5D1 */ +var _w6 = -Float64FromFloat64(0.0016309293409657527) /* 0xBF5AB89D, 0x0B9E43E4 */ + +// C documentation +// +// /* sin(pi*x) assuming x > 2^-100, if sin(pi*x)==0 the sign is arbitrary */ +func _sin_pi(tls *TLS, x float64) (r float64) { + var n int32 + _ = n + /* spurious inexact if odd int */ + x = float64(float64(2) * (float64(x*float64(0.5)) - Xfloor(tls, float64(x*float64(0.5))))) /* x mod 2.0 */ + n = int32(float64(x * Float64FromFloat64(4))) + n = (n + int32(1)) / int32(2) + x = x - float64(float32(n)*Float32FromFloat32(0.5)) + x = x * _pi2 + switch n { + default: /* case 4: */ + fallthrough + case 0: + return X__sin(tls, x, float64(0), 0) + case int32(1): + return X__cos(tls, x, float64(0)) + case int32(2): + return X__sin(tls, -x, float64(0), 0) + case int32(3): + return -X__cos(tls, x, float64(0)) + } + return r +} + +func X__lgamma_r(tls *TLS, x float64, signgamp uintptr) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x=%v signgamp=%v, (%v:)", tls, x, signgamp, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var i, sign int32 + var ix Tuint32_t + var nadj, p, p1, p2, p3, q, r, t, w, y, z Tdouble_t + var _ /* u at bp+0 */ struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = i, ix, nadj, p, p1, p2, p3, q, r, sign, t, w, y, z + *(*struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + /* purge off +-inf, NaN, +-0, tiny and negative arguments */ + **(**int32)(__ccgo_up(signgamp)) = int32(1) + sign = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(63)) + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32) & uint64(0x7fffffff)) + if ix >= uint32(0x7ff00000) { + return float64(x * x) + } + if ix < Uint32FromInt32((Int32FromInt32(0x3ff)-Int32FromInt32(70))< float64(0) { + **(**int32)(__ccgo_up(signgamp)) = -int32(1) + } else { + t = -t + } + nadj = Xlog(tls, _pi2/Tdouble_t(t*x)) + } + /* purge off 1 and 2 */ + if (ix == uint32(0x3ff00000) || ix == uint32(0x40000000)) && uint32(*(*Tuint64_t)(unsafe.Pointer(bp))) == uint32(0) { + r = Float64FromInt32(0) + } else { + if ix < uint32(0x40000000) { + if ix <= uint32(0x3feccccc) { /* lgamma(x) = lgamma(x+1)-log(x) */ + r = -Xlog(tls, x) + if ix >= uint32(0x3FE76944) { + y = float64(1) - x + i = 0 + } else { + if ix >= uint32(0x3FCDA661) { + y = x - (_tc - Float64FromFloat64(1)) + i = int32(1) + } else { + y = x + i = int32(2) + } + } + } else { + r = float64(0) + if ix >= uint32(0x3FFBB4C3) { /* [1.7316,2] */ + y = float64(2) - x + i = 0 + } else { + if ix >= uint32(0x3FF3B4C4) { /* [1.23,1.73] */ + y = x - _tc + i = int32(1) + } else { + y = x - float64(1) + i = int32(2) + } + } + } + switch i { + case 0: + z = Tdouble_t(y * y) + p1 = _a0 + float64(z*(_a2+float64(z*(_a4+float64(z*(_a6+float64(z*(_a8+float64(z*_a10))))))))) + p2 = Tdouble_t(z * (_a1 + float64(z*(_a3+float64(z*(_a5+float64(z*(_a7+float64(z*(_a9+float64(z*_a11))))))))))) + p = Tdouble_t(y*p1) + p2 + r = r + (p - Tdouble_t(float64(0.5)*y)) + case int32(1): + z = Tdouble_t(y * y) + w = Tdouble_t(z * y) + p1 = _t0 + float64(w*(_t3+float64(w*(_t6+float64(w*(_t9+float64(w*_t12))))))) /* parallel comp */ + p2 = _t1 + float64(w*(_t4+float64(w*(_t7+float64(w*(_t10+float64(w*_t13))))))) + p3 = _t2 + float64(w*(_t5+float64(w*(_t8+float64(w*(_t11+float64(w*_t14))))))) + p = Tdouble_t(z*p1) - (_tt - float64(w*(p2+Tdouble_t(y*p3)))) + r = r + (_tf + p) + case int32(2): + p1 = Tdouble_t(y * (_u0 + float64(y*(_u1+float64(y*(_u2+float64(y*(_u3+float64(y*(_u4+float64(y*_u5))))))))))) + p2 = float64(1) + float64(y*(_v1+float64(y*(_v2+float64(y*(_v3+float64(y*(_v4+float64(y*_v5))))))))) + r = r + (float64(-Float64FromFloat64(0.5)*y) + p1/p2) + } + } else { + if ix < uint32(0x40200000) { /* x < 8.0 */ + i = int32(x) + y = x - float64(i) + p = Tdouble_t(y * (_s0 + float64(y*(_s1+float64(y*(_s2+float64(y*(_s3+float64(y*(_s4+float64(y*(_s5+float64(y*_s6))))))))))))) + q = float64(1) + float64(y*(_r1+float64(y*(_r2+float64(y*(_r3+float64(y*(_r4+float64(y*(_r5+float64(y*_r6))))))))))) + r = float64(float64(0.5)*y) + p/q + z = float64(1) /* lgamma(1+s) = log(s) + lgamma(s) */ + switch i { + case int32(7): + z = z * (y + float64(6)) /* FALLTHRU */ + fallthrough + case int32(6): + z = z * (y + float64(5)) /* FALLTHRU */ + fallthrough + case int32(5): + z = z * (y + float64(4)) /* FALLTHRU */ + fallthrough + case int32(4): + z = z * (y + float64(3)) /* FALLTHRU */ + fallthrough + case int32(3): + z = z * (y + float64(2)) /* FALLTHRU */ + r = r + Xlog(tls, z) + break + } + } else { + if ix < uint32(0x43900000) { /* 8.0 <= x < 2**58 */ + t = Xlog(tls, x) + z = float64(1) / x + y = Tdouble_t(z * z) + w = _w0 + float64(z*(_w1+float64(y*(_w2+float64(y*(_w3+float64(y*(_w4+float64(y*(_w5+float64(y*_w6))))))))))) + r = float64((x-float64(0.5))*(t-Float64FromFloat64(1))) + w + } else { /* 2**58 <= x <= inf */ + r = Tdouble_t(x * (Xlog(tls, x) - float64(1))) + } + } + } + } + if sign != 0 { + r = nadj - r + } + return r +} + +func Xlgamma_r(tls *TLS, x float64, signgamp uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v signgamp=%v, (%v:)", tls, x, signgamp, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lgamma_r(tls, x, signgamp) +} + +func Xlgammaf(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lgammaf_r(tls, x, uintptr(unsafe.Pointer(&Xsigngam))) +} + +var _pi3 = float32(3.141592741) /* 0x40490fdb */ +var _a01 = float32(0.077215664089) /* 0x3d9e233f */ +var _a12 = float32(0.32246702909) /* 0x3ea51a66 */ +var _a21 = float32(0.067352302372) /* 0x3d89f001 */ +var _a31 = float32(0.020580807701) /* 0x3ca89915 */ +var _a41 = float32(0.0073855509982) /* 0x3bf2027e */ +var _a51 = float32(0.0028905137442) /* 0x3b3d6ec6 */ +var _a61 = float32(0.0011927076848) /* 0x3a9c54a1 */ +var _a71 = float32(0.00051006977446) /* 0x3a05b634 */ +var _a81 = float32(0.00022086278477) /* 0x39679767 */ +var _a91 = float32(0.00010801156895) /* 0x38e28445 */ +var _a101 = float32(2.52144564e-05) /* 0x37d383a2 */ +var _a111 = float32(4.4864096708e-05) /* 0x383c2c75 */ +var _tc1 = float32(1.4616321325) /* 0x3fbb16c3 */ +var _tf1 = float32(-Float64FromFloat64(0.12148628384)) /* 0xbdf8cdcd */ +/* tt = -(tail of tf) */ +var _tt1 = float32(6.6971006518e-09) /* 0x31e61c52 */ +var _t01 = float32(0.48383611441) /* 0x3ef7b95e */ +var _t15 = float32(-Float64FromFloat64(0.14758771658)) /* 0xbe17213c */ +var _t21 = float32(0.064624942839) /* 0x3d845a15 */ +var _t31 = float32(-Float64FromFloat64(0.032788541168)) /* 0xbd064d47 */ +var _t41 = float32(0.017970675603) /* 0x3c93373d */ +var _t51 = float32(-Float64FromFloat64(0.010314224288)) /* 0xbc28fcfe */ +var _t61 = float32(0.0061005386524) /* 0x3bc7e707 */ +var _t71 = float32(-Float64FromFloat64(0.0036845202558)) /* 0xbb7177fe */ +var _t81 = float32(0.0022596477065) /* 0x3b141699 */ +var _t91 = float32(-Float64FromFloat64(0.0014034647029)) /* 0xbab7f476 */ +var _t101 = float32(0.00088108185446) /* 0x3a66f867 */ +var _t111 = float32(-Float64FromFloat64(0.00053859531181)) /* 0xba0d3085 */ +var _t121 = float32(0.00031563205994) /* 0x39a57b6b */ +var _t131 = float32(-Float64FromFloat64(0.00031275415677)) /* 0xb9a3f927 */ +var _t141 = float32(0.00033552918467) /* 0x39afe9f7 */ +var _u07 = float32(-Float64FromFloat64(0.077215664089)) /* 0xbd9e233f */ +var _u11 = float32(0.63282704353) /* 0x3f2200f4 */ +var _u21 = float32(1.4549225569) /* 0x3fba3ae7 */ +var _u31 = float32(0.97771751881) /* 0x3f7a4bb2 */ +var _u41 = float32(0.22896373272) /* 0x3e6a7578 */ +var _u51 = float32(0.013381091878) /* 0x3c5b3c5e */ +var _v11 = float32(2.4559779167) /* 0x401d2ebe */ +var _v21 = float32(2.1284897327) /* 0x4008392d */ +var _v31 = float32(0.76928514242) /* 0x3f44efdf */ +var _v41 = float32(0.10422264785) /* 0x3dd572af */ +var _v51 = float32(0.0032170924824) /* 0x3b52d5db */ +var _s06 = float32(-Float64FromFloat64(0.077215664089)) /* 0xbd9e233f */ +var _s11 = float32(0.21498242021) /* 0x3e5c245a */ +var _s21 = float32(0.32577878237) /* 0x3ea6cc7a */ +var _s31 = float32(0.14635047317) /* 0x3e15dce6 */ +var _s41 = float32(0.026642270386) /* 0x3cda40e4 */ +var _s51 = float32(0.0018402845599) /* 0x3af135b4 */ +var _s61 = float32(3.1947532989e-05) /* 0x3805ff67 */ +var _r11 = float32(1.3920053244) /* 0x3fb22d3b */ +var _r21 = float32(0.72193557024) /* 0x3f38d0c5 */ +var _r31 = float32(0.17193385959) /* 0x3e300f6e */ +var _r41 = float32(0.018645919859) /* 0x3c98bf54 */ +var _r51 = float32(0.00077794247773) /* 0x3a4beed6 */ +var _r61 = float32(7.3266842264e-06) /* 0x36f5d7bd */ +var _w01 = float32(0.41893854737) /* 0x3ed67f1d */ +var _w11 = float32(0.083333335817) /* 0x3daaaaab */ +var _w21 = float32(-Float64FromFloat64(0.002777777845)) /* 0xbb360b61 */ +var _w31 = float32(0.00079365057172) /* 0x3a500cfd */ +var _w41 = float32(-Float64FromFloat64(0.00059518753551)) /* 0xba1c065c */ +var _w51 = float32(0.00083633989561) /* 0x3a5b3dd2 */ +var _w61 = float32(-Float64FromFloat64(0.0016309292987)) /* 0xbad5c4e8 */ + +// C documentation +// +// /* sin(pi*x) assuming x > 2^-100, if sin(pi*x)==0 the sign is arbitrary */ +func _sin_pi1(tls *TLS, x float32) (r float32) { + var n int32 + var y Tdouble_t + _, _ = n, y + /* spurious inexact if odd int */ + x = float32(Float32FromInt32(2) * (float32(x*Float32FromFloat32(0.5)) - Xfloorf(tls, float32(x*Float32FromFloat32(0.5))))) /* x mod 2.0 */ + n = int32(float32(x * Float32FromInt32(4))) + n = (n + int32(1)) / int32(2) + y = float64(x - float32(float32(n)*Float32FromFloat32(0.5))) + y = y * float64(3.141592653589793) + switch n { + default: /* case 4: */ + fallthrough + case 0: + return X__sindf(tls, y) + case int32(1): + return X__cosdf(tls, y) + case int32(2): + return X__sindf(tls, -y) + case int32(3): + return -X__cosdf(tls, y) + } + return r +} + +func X__lgammaf_r(tls *TLS, x float32, signgamp uintptr) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x=%v signgamp=%v, (%v:)", tls, x, signgamp, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var i, sign int32 + var ix Tuint32_t + var nadj, p, p1, p2, p3, q, r, t, w, y, z float32 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = i, ix, nadj, p, p1, p2, p3, q, r, sign, t, w, y, z + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + /* purge off +-inf, NaN, +-0, tiny and negative arguments */ + **(**int32)(__ccgo_up(signgamp)) = int32(1) + sign = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(31)) + ix = *(*Tuint32_t)(unsafe.Pointer(bp)) & uint32(0x7fffffff) + if ix >= uint32(0x7f800000) { + return float32(x * x) + } + if ix < uint32(0x35000000) { /* |x| < 2**-21, return -log(|x|) */ + if sign != 0 { + **(**int32)(__ccgo_up(signgamp)) = -int32(1) + x = -x + } + return -Xlogf(tls, x) + } + if sign != 0 { + x = -x + t = _sin_pi1(tls, x) + if t == Float32FromFloat32(0) { /* -integer */ + return Float32FromFloat32(1) / (x - x) + } + if t > Float32FromFloat32(0) { + **(**int32)(__ccgo_up(signgamp)) = -int32(1) + } else { + t = -t + } + nadj = Xlogf(tls, _pi3/float32(t*x)) + } + /* purge off 1 and 2 */ + if ix == uint32(0x3f800000) || ix == uint32(0x40000000) { + r = Float32FromInt32(0) + } else { + if ix < uint32(0x40000000) { + if ix <= uint32(0x3f666666) { /* lgamma(x) = lgamma(x+1)-log(x) */ + r = -Xlogf(tls, x) + if ix >= uint32(0x3f3b4a20) { + y = Float32FromFloat32(1) - x + i = 0 + } else { + if ix >= uint32(0x3e6d3308) { + y = x - (_tc1 - Float32FromFloat32(1)) + i = int32(1) + } else { + y = x + i = int32(2) + } + } + } else { + r = Float32FromFloat32(0) + if ix >= uint32(0x3fdda618) { /* [1.7316,2] */ + y = Float32FromFloat32(2) - x + i = 0 + } else { + if ix >= uint32(0x3F9da620) { /* [1.23,1.73] */ + y = x - _tc1 + i = int32(1) + } else { + y = x - Float32FromFloat32(1) + i = int32(2) + } + } + } + switch i { + case 0: + z = float32(y * y) + p1 = _a01 + float32(z*(_a21+float32(z*(_a41+float32(z*(_a61+float32(z*(_a81+float32(z*_a101))))))))) + p2 = float32(z * (_a12 + float32(z*(_a31+float32(z*(_a51+float32(z*(_a71+float32(z*(_a91+float32(z*_a111))))))))))) + p = float32(y*p1) + p2 + r = r + (p - float32(Float32FromFloat32(0.5)*y)) + case int32(1): + z = float32(y * y) + w = float32(z * y) + p1 = _t01 + float32(w*(_t31+float32(w*(_t61+float32(w*(_t91+float32(w*_t121))))))) /* parallel comp */ + p2 = _t15 + float32(w*(_t41+float32(w*(_t71+float32(w*(_t101+float32(w*_t131))))))) + p3 = _t21 + float32(w*(_t51+float32(w*(_t81+float32(w*(_t111+float32(w*_t141))))))) + p = float32(z*p1) - (_tt1 - float32(w*(p2+float32(y*p3)))) + r = r + (_tf1 + p) + case int32(2): + p1 = float32(y * (_u07 + float32(y*(_u11+float32(y*(_u21+float32(y*(_u31+float32(y*(_u41+float32(y*_u51))))))))))) + p2 = Float32FromFloat32(1) + float32(y*(_v11+float32(y*(_v21+float32(y*(_v31+float32(y*(_v41+float32(y*_v51))))))))) + r = r + (float32(-Float32FromFloat32(0.5)*y) + p1/p2) + } + } else { + if ix < uint32(0x41000000) { /* x < 8.0 */ + i = int32(x) + y = x - float32(i) + p = float32(y * (_s06 + float32(y*(_s11+float32(y*(_s21+float32(y*(_s31+float32(y*(_s41+float32(y*(_s51+float32(y*_s61))))))))))))) + q = Float32FromFloat32(1) + float32(y*(_r11+float32(y*(_r21+float32(y*(_r31+float32(y*(_r41+float32(y*(_r51+float32(y*_r61))))))))))) + r = float32(Float32FromFloat32(0.5)*y) + p/q + z = Float32FromFloat32(1) /* lgamma(1+s) = log(s) + lgamma(s) */ + switch i { + case int32(7): + z = z * (y + Float32FromFloat32(6)) /* FALLTHRU */ + fallthrough + case int32(6): + z = z * (y + Float32FromFloat32(5)) /* FALLTHRU */ + fallthrough + case int32(5): + z = z * (y + Float32FromFloat32(4)) /* FALLTHRU */ + fallthrough + case int32(4): + z = z * (y + Float32FromFloat32(3)) /* FALLTHRU */ + fallthrough + case int32(3): + z = z * (y + Float32FromFloat32(2)) /* FALLTHRU */ + r = r + Xlogf(tls, z) + break + } + } else { + if ix < uint32(0x5c800000) { /* 8.0 <= x < 2**58 */ + t = Xlogf(tls, x) + z = Float32FromFloat32(1) / x + y = float32(z * z) + w = _w01 + float32(z*(_w11+float32(y*(_w21+float32(y*(_w31+float32(y*(_w41+float32(y*(_w51+float32(y*_w61))))))))))) + r = float32((x-Float32FromFloat32(0.5))*(t-Float32FromFloat32(1))) + w + } else { /* 2**58 <= x <= inf */ + r = float32(x * (Xlogf(tls, x) - Float32FromFloat32(1))) + } + } + } + } + if sign != 0 { + r = nadj - r + } + return r +} + +func Xlgammaf_r(tls *TLS, x float32, signgamp uintptr) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v signgamp=%v, (%v:)", tls, x, signgamp, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lgammaf_r(tls, x, signgamp) +} + +func X__lgammal_r(tls *TLS, x float64, sg uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v sg=%v, (%v:)", tls, x, sg, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lgamma_r(tls, x, sg) +} + +func Xlgammal(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lgammal_r(tls, x, uintptr(unsafe.Pointer(&Xsigngam))) +} + +func Xlgammal_r(tls *TLS, x float64, sg uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v sg=%v, (%v:)", tls, x, sg, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lgammal_r(tls, x, sg) +} + +/* uses LLONG_MAX > 2^53, see comments in lrint.c */ + +func Xllrint(tls *TLS, x float64) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int64(Xrint(tls, x)) +} + +/* uses LLONG_MAX > 2^24, see comments in lrint.c */ + +func Xllrintf(tls *TLS, x float32) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int64(Xrintf(tls, x)) +} + +const FE_ALL_EXCEPT = 31 +const FE_DIVBYZERO = 2 +const FE_DOWNWARD = 8388608 +const FE_INEXACT = 16 +const FE_INVALID = 1 +const FE_OVERFLOW = 4 +const FE_TONEAREST = 0 +const FE_TOWARDZERO = 12582912 +const FE_UNDERFLOW = 8 +const FE_UPWARD = 4194304 + +type Tfexcept_t = uint32 + +type Tfenv_t = struct { + F__cw uint32 +} + +func Xllrintl(tls *TLS, x float64) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xllrint(tls, x) +} + +func Xllround(tls *TLS, x float64) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int64(Xround(tls, x)) +} + +func Xllroundf(tls *TLS, x float32) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int64(Xroundf(tls, x)) +} + +func Xllroundl(tls *TLS, x float64) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int64(Xroundl(tls, x)) +} + +const LOG_POLY1_ORDER = 12 +const LOG_POLY_ORDER = 6 +const LOG_TABLE_BITS = 7 +const N4 = 128 +const OFF = 4604367669032910848 + +// C documentation +// +// /* Top 16 bits of a double. */ +func _top16(tls *TLS, x float64) (r Tuint32_t) { + return uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(48)) +} + +func Xlog(tls *TLS, x1 float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x1=%v, (%v:)", tls, x1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var hi, invc, kd, lo, logc, r, r2, r3, rhi, rlo, w, y1, z Tdouble_t + var i, k int32 + var ix, iz, tmp Tuint64_t + var top Tuint32_t + var y, v1, v2, v3, v4 float64 + var v5 bool + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = hi, i, invc, ix, iz, k, kd, lo, logc, r, r2, r3, rhi, rlo, tmp, top, w, y, y1, z, v1, v2, v3, v4, v5 + ix = *(*Tuint64_t)(unsafe.Pointer(&x1)) + top = _top16(tls, x1) + v1 = Float64FromFloat64(1) - Float64FromFloat64(0.0625) + v2 = Float64FromFloat64(1) + Float64FromFloat64(0.064697265625) + v3 = Float64FromFloat64(1) - Float64FromFloat64(0.0625) + if ix-*(*Tuint64_t)(unsafe.Pointer(&v1)) < *(*Tuint64_t)(unsafe.Pointer(&v2))-*(*Tuint64_t)(unsafe.Pointer(&v3)) { + /* Handle close to 1.0 inputs separately. */ + /* Fix sign of zero with downward rounding when x==1. */ + if v5 = Bool(int32(WANT_ROUNDING) != 0); v5 { + v4 = float64(1) + } + if v5 && ix == *(*Tuint64_t)(unsafe.Pointer(&v4)) { + return Float64FromInt32(0) + } + r = x1 - float64(1) + r2 = Tdouble_t(r * r) + r3 = Tdouble_t(r * r2) + y1 = Tdouble_t(r3 * (**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56 + 1*8)) + float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56 + 2*8))) + float64(r2***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56 + 3*8))) + float64(r3*(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56 + 4*8))+float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56 + 5*8)))+float64(r2***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56 + 6*8)))+float64(r3*(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56 + 7*8))+float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56 + 8*8)))+float64(r2***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56 + 9*8)))+float64(r3***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56 + 10*8))))))))) + /* Worst-case error is around 0.507 ULP. */ + w = Tdouble_t(r * float64(1.34217728e+08)) + rhi = r + w - w + rlo = r - rhi + w = Tdouble_t(Tdouble_t(rhi*rhi) * **(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56))) /* B[0] == -0.5. */ + hi = r + w + lo = r - hi + w + lo = lo + Tdouble_t(float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56))*rlo)*(rhi+r)) + y1 = y1 + lo + y1 = y1 + hi + y = y1 + v1 = y + goto _7 + _7: + return v1 + } + if top-uint32(0x0010) >= Uint32FromInt32(Int32FromInt32(0x7ff0)-Int32FromInt32(0x0010)) { + /* x < 0x1p-1022 or inf or nan. */ + if ix*uint64(2) == uint64(0) { + return X__math_divzero(tls, uint32(1)) + } + v1 = float64(X__builtin_inff(tls)) + if ix == *(*Tuint64_t)(unsafe.Pointer(&v1)) { /* log(inf) == inf. */ + return x1 + } + if top&uint32(0x8000) != 0 || top&uint32(0x7ff0) == uint32(0x7ff0) { + return X__math_invalid(tls, x1) + } + /* x is subnormal, normalize it. */ + v1 = float64(x1 * float64(4.503599627370496e+15)) + ix = *(*Tuint64_t)(unsafe.Pointer(&v1)) + ix = ix - Uint64FromUint64(52)<> (Int32FromInt32(52) - Int32FromInt32(LOG_TABLE_BITS)) % Uint64FromInt32(Int32FromInt32(1)<> int32(52)) /* arithmetic shift */ + iz = ix - tmp&(Uint64FromUint64(0xfff)< 0x1p-5: + 0.5 + 4.13/N + abs-poly-error*2^57 ULP (+ 0.002 ULP without fma) + Worst case error if |y| > 0x1p-4: + 0.5 + 2.06/N + abs-poly-error*2^56 ULP (+ 0.001 ULP without fma). */ + y1 = lo + Tdouble_t(r2***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 16))) + Tdouble_t(Tdouble_t(r*r2)*(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 16 + 1*8))+float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 16 + 2*8)))+float64(r2*(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 16 + 3*8))+float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 16 + 4*8))))))) + hi + y = y1 + v1 = y + goto _11 +_11: + return v1 +} + +var _ivln10hi = float64(0.4342944818781689) /* 0x3fdbcb7b, 0x15200000 */ +var _ivln10lo = float64(2.5082946711645275e-11) /* 0x3dbb9438, 0xca9aadd5 */ +var _log10_2hi = float64(0.30102999566361177) /* 0x3FD34413, 0x509F6000 */ +var _log10_2lo = float64(3.694239077158931e-13) /* 0x3D59FEF3, 0x11F12B36 */ +var _Lg1 = float64(0.6666666666666735) /* 3FE55555 55555593 */ +var _Lg2 = float64(0.3999999999940942) /* 3FD99999 9997FA04 */ +var _Lg3 = float64(0.2857142874366239) /* 3FD24924 94229359 */ +var _Lg4 = float64(0.22222198432149784) /* 3FCC71C5 1D8E78AF */ +var _Lg5 = float64(0.1818357216161805) /* 3FC74664 96CB03DE */ +var _Lg6 = float64(0.15313837699209373) /* 3FC39A09 D078C69F */ +var _Lg7 = float64(0.14798198605116586) /* 3FC2F112 DF3E5244 */ + +func Xlog10(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var R, dk, f, hfsq, hi, lo, s, t1, t2, val_hi, val_lo, w, y, z Tdouble_t + var hx Tuint32_t + var k int32 + var _ /* u at bp+0 */ struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = R, dk, f, hfsq, hi, hx, k, lo, s, t1, t2, val_hi, val_lo, w, y, z + *(*struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + hx = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32)) + k = 0 + if hx < uint32(0x00100000) || hx>>int32(31) != 0 { + if *(*Tuint64_t)(unsafe.Pointer(bp))<>int32(31) != 0 { + return (x - x) / float64(0) + } /* log(-#) = NaN */ + /* subnormal number, scale x up */ + k = k - int32(54) + x = x * float64(1.8014398509481984e+16) + *(*float64)(unsafe.Pointer(bp)) = x + hx = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32)) + } else { + if hx >= uint32(0x7ff00000) { + return x + } else { + if hx == uint32(0x3ff00000) && *(*Tuint64_t)(unsafe.Pointer(bp))<>Int32FromInt32(20)) - int32(0x3ff)) + hx = hx&uint32(0x000fffff) + uint32(0x3fe6a09e) + *(*Tuint64_t)(unsafe.Pointer(bp)) = uint64(hx)< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var R, dk, f, hfsq, hi, lo, s, t1, t2, w, z Tfloat_t + var ix Tuint32_t + var k int32 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _, _, _, _, _, _, _, _ = R, dk, f, hfsq, hi, ix, k, lo, s, t1, t2, w, z + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + ix = *(*Tuint32_t)(unsafe.Pointer(bp)) + k = 0 + if ix < uint32(0x00800000) || ix>>int32(31) != 0 { /* x < 2**-126 */ + if ix<>int32(31) != 0 { + return (x - x) / Float32FromFloat32(0) + } /* log(-#) = NaN */ + /* subnormal number, scale up x */ + k = k - int32(25) + x = x * Float32FromFloat32(3.3554432e+07) + *(*float32)(unsafe.Pointer(bp)) = x + ix = *(*Tuint32_t)(unsafe.Pointer(bp)) + } else { + if ix >= uint32(0x7f800000) { + return x + } else { + if ix == uint32(0x3f800000) { + return Float32FromInt32(0) + } + } + } + /* reduce x into [sqrt(2)/2, sqrt(2)] */ + ix = ix + Uint32FromInt32(Int32FromInt32(0x3f800000)-Int32FromInt32(0x3f3504f3)) + k = k + (Int32FromUint32(ix>>Int32FromInt32(23)) - int32(0x7f)) + ix = ix&uint32(0x007fffff) + uint32(0x3f3504f3) + *(*Tuint32_t)(unsafe.Pointer(bp)) = ix + x = *(*float32)(unsafe.Pointer(bp)) + f = x - Float32FromFloat32(1) + s = f / (Float32FromFloat32(2) + f) + z = Tfloat_t(s * s) + w = Tfloat_t(z * z) + t1 = Tfloat_t(w * (_Lg21 + float32(w*_Lg41))) + t2 = Tfloat_t(z * (_Lg11 + float32(w*_Lg31))) + R = t2 + t1 + hfsq = Tfloat_t(float32(Float32FromFloat32(0.5)*f) * f) + hi = f - hfsq + *(*float32)(unsafe.Pointer(bp)) = hi + *(*Tuint32_t)(unsafe.Pointer(bp)) &= uint32(0xfffff000) + hi = *(*float32)(unsafe.Pointer(bp)) + lo = f - hi - hfsq + Tfloat_t(s*(hfsq+R)) + dk = float32(k) + return Tfloat_t(dk*_log10_2lo1) + Tfloat_t((lo+hi)*_ivln10lo1) + Tfloat_t(lo*_ivln10hi1) + Tfloat_t(hi*_ivln10hi1) + Tfloat_t(dk*_log10_2hi1) +} + +func Xlog10l(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xlog10(tls, x) +} + +var _ln2_hi2 = float64(0.6931471803691238) /* 3fe62e42 fee00000 */ +var _ln2_lo2 = float64(1.9082149292705877e-10) /* 3dea39ef 35793c76 */ +var _Lg12 = float64(0.6666666666666735) /* 3FE55555 55555593 */ +var _Lg22 = float64(0.3999999999940942) /* 3FD99999 9997FA04 */ +var _Lg32 = float64(0.2857142874366239) /* 3FD24924 94229359 */ +var _Lg42 = float64(0.22222198432149784) /* 3FCC71C5 1D8E78AF */ +var _Lg51 = float64(0.1818357216161805) /* 3FC74664 96CB03DE */ +var _Lg61 = float64(0.15313837699209373) /* 3FC39A09 D078C69F */ +var _Lg71 = float64(0.14798198605116586) /* 3FC2F112 DF3E5244 */ + +func Xlog1p(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var R, c, dk, f, hfsq, s, t1, t2, w, z Tdouble_t + var hu, hx Tuint32_t + var k int32 + var y float32 + var y1, y2, v1 float64 + var _ /* u at bp+0 */ struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = R, c, dk, f, hfsq, hu, hx, k, s, t1, t2, w, y, y1, y2, z, v1 + *(*struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + hx = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32)) + k = int32(1) + if hx < uint32(0x3fda827a) || hx>>int32(31) != 0 { /* 1+x < sqrt(2)+ */ + if hx >= uint32(0xbff00000) { /* x <= -1.0 */ + if x3 == float64(-Int32FromInt32(1)) { + return x3 / float64(0) + } /* log1p(-1) = -inf */ + return (x3 - x3) / float64(0) /* log1p(x<-1) = NaN */ + } + if hx<= uint32(0x7ff00000) { + return x3 + } + } + if k != 0 { + *(*float64)(unsafe.Pointer(bp)) = Float64FromInt32(1) + x3 + hu = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32)) + hu = hu + Uint32FromInt32(Int32FromInt32(0x3ff00000)-Int32FromInt32(0x3fe6a09e)) + k = Int32FromUint32(hu>>Int32FromInt32(20)) - int32(0x3ff) + /* correction term ~ log(1+x)-log(u), avoid underflow in c/u */ + if k < int32(54) { + if k >= int32(2) { + v1 = Float64FromInt32(1) - (*(*float64)(unsafe.Pointer(bp)) - x3) + } else { + v1 = x3 - (*(*float64)(unsafe.Pointer(bp)) - Float64FromInt32(1)) + } + c = v1 + c = c / *(*float64)(unsafe.Pointer(bp)) + } else { + c = Float64FromInt32(0) + } + /* reduce u into [sqrt(2)/2, sqrt(2)] */ + hu = hu&uint32(0x000fffff) + uint32(0x3fe6a09e) + *(*Tuint64_t)(unsafe.Pointer(bp)) = uint64(hu)< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var R, c, dk, f, hfsq, s, t1, t2, w, z Tfloat_t + var iu, ix Tuint32_t + var k int32 + var y, v1 float32 + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = R, c, dk, f, hfsq, iu, ix, k, s, t1, t2, w, y, y1, y2, z, v1 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + ix = *(*Tuint32_t)(unsafe.Pointer(bp)) + k = int32(1) + if ix < uint32(0x3ed413d0) || ix>>int32(31) != 0 { /* 1+x < sqrt(2)+ */ + if ix >= uint32(0xbf800000) { /* x <= -1.0 */ + if x3 == float32(-Int32FromInt32(1)) { + return x3 / Float32FromFloat32(0) + } /* log1p(-1)=+inf */ + return (x3 - x3) / Float32FromFloat32(0) /* log1p(x<-1)=NaN */ + } + if ix<= uint32(0x7f800000) { + return x3 + } + } + if k != 0 { + *(*float32)(unsafe.Pointer(bp)) = Float32FromInt32(1) + x3 + iu = *(*Tuint32_t)(unsafe.Pointer(bp)) + iu = iu + Uint32FromInt32(Int32FromInt32(0x3f800000)-Int32FromInt32(0x3f3504f3)) + k = Int32FromUint32(iu>>Int32FromInt32(23)) - int32(0x7f) + /* correction term ~ log(1+x)-log(u), avoid underflow in c/u */ + if k < int32(25) { + if k >= int32(2) { + v1 = Float32FromInt32(1) - (*(*float32)(unsafe.Pointer(bp)) - x3) + } else { + v1 = x3 - (*(*float32)(unsafe.Pointer(bp)) - Float32FromInt32(1)) + } + c = v1 + c = c / *(*float32)(unsafe.Pointer(bp)) + } else { + c = Float32FromInt32(0) + } + /* reduce u into [sqrt(2)/2, sqrt(2)] */ + iu = iu&uint32(0x007fffff) + uint32(0x3f3504f3) + *(*Tuint32_t)(unsafe.Pointer(bp)) = iu + f = *(*float32)(unsafe.Pointer(bp)) - Float32FromInt32(1) + } + s = f / (Float32FromFloat32(2) + f) + z = Tfloat_t(s * s) + w = Tfloat_t(z * z) + t1 = Tfloat_t(w * (_Lg23 + float32(w*_Lg43))) + t2 = Tfloat_t(z * (_Lg13 + float32(w*_Lg33))) + R = t2 + t1 + hfsq = Tfloat_t(float32(Float32FromFloat32(0.5)*f) * f) + dk = float32(k) + return Tfloat_t(s*(hfsq+R)) + (Tfloat_t(dk*_ln2_lo3) + c) - hfsq + f + Tfloat_t(dk*_ln2_hi3) +} + +func Xlog1pl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xlog1p(tls, x) +} + +const LOG2_POLY1_ORDER = 11 +const LOG2_POLY_ORDER = 7 +const LOG2_TABLE_BITS = 6 +const N5 = 64 + +// C documentation +// +// /* Top 16 bits of a double. */ +func _top161(tls *TLS, x float64) (r Tuint32_t) { + return uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(48)) +} + +func Xlog2(tls *TLS, x1 float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x1=%v, (%v:)", tls, x1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var hi, invc, kd, lo, logc, p, r, r2, r4, rhi, rhi1, rlo, rlo1, t1, t2, t3, y1, z Tdouble_t + var i, k int32 + var ix, iz, tmp, v6 Tuint64_t + var top Tuint32_t + var y, v1, v2, v3, v4 float64 + var v5 bool + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = hi, i, invc, ix, iz, k, kd, lo, logc, p, r, r2, r4, rhi, rhi1, rlo, rlo1, t1, t2, t3, tmp, top, y, y1, z, v1, v2, v3, v4, v5, v6 + ix = *(*Tuint64_t)(unsafe.Pointer(&x1)) + top = _top161(tls, x1) + v1 = Float64FromFloat64(1) - Float64FromFloat64(0.04239702224731445) + v2 = Float64FromFloat64(1) + Float64FromFloat64(0.044274330139160156) + v3 = Float64FromFloat64(1) - Float64FromFloat64(0.04239702224731445) + if ix-*(*Tuint64_t)(unsafe.Pointer(&v1)) < *(*Tuint64_t)(unsafe.Pointer(&v2))-*(*Tuint64_t)(unsafe.Pointer(&v3)) { + /* Handle close to 1.0 inputs separately. */ + /* Fix sign of zero with downward rounding when x==1. */ + if v5 = Bool(int32(WANT_ROUNDING) != 0); v5 { + v4 = float64(1) + } + if v5 && ix == *(*Tuint64_t)(unsafe.Pointer(&v4)) { + return Float64FromInt32(0) + } + r = x1 - float64(1) + v1 = r + v6 = *(*Tuint64_t)(unsafe.Pointer(&v1)) & (-Uint64FromUint64(1) << Int32FromInt32(32)) + rhi = *(*float64)(unsafe.Pointer(&v6)) + rlo = r - rhi + hi = Tdouble_t(rhi * X__log2_data.Finvln2hi) + lo = Tdouble_t(rlo*X__log2_data.Finvln2hi) + Tdouble_t(r*X__log2_data.Finvln2lo) + r2 = Tdouble_t(r * r) /* rounding error: 0x1p-62. */ + r4 = Tdouble_t(r2 * r2) + /* Worst-case error is less than 0.54 ULP (0.55 ULP without fma). */ + p = Tdouble_t(r2 * (**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 64)) + float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 64 + 1*8))))) + y1 = hi + p + lo = lo + (hi - y1 + p) + lo = lo + Tdouble_t(r4*(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 64 + 2*8))+float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 64 + 3*8)))+float64(r2*(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 64 + 4*8))+float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 64 + 5*8)))))+float64(r4*(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 64 + 6*8))+float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 64 + 7*8)))+float64(r2*(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 64 + 8*8))+float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 64 + 9*8))))))))) + y1 = y1 + lo + y = y1 + v1 = y + goto _9 + _9: + return v1 + } + if top-uint32(0x0010) >= Uint32FromInt32(Int32FromInt32(0x7ff0)-Int32FromInt32(0x0010)) { + /* x < 0x1p-1022 or inf or nan. */ + if ix*uint64(2) == uint64(0) { + return X__math_divzero(tls, uint32(1)) + } + v1 = float64(X__builtin_inff(tls)) + if ix == *(*Tuint64_t)(unsafe.Pointer(&v1)) { /* log(inf) == inf. */ + return x1 + } + if top&uint32(0x8000) != 0 || top&uint32(0x7ff0) == uint32(0x7ff0) { + return X__math_invalid(tls, x1) + } + /* x is subnormal, normalize it. */ + v1 = float64(x1 * float64(4.503599627370496e+15)) + ix = *(*Tuint64_t)(unsafe.Pointer(&v1)) + ix = ix - Uint64FromUint64(52)<> (Int32FromInt32(52) - Int32FromInt32(LOG2_TABLE_BITS)) % Uint64FromInt32(Int32FromInt32(1)<> int32(52)) /* arithmetic shift */ + iz = ix - tmp&(Uint64FromUint64(0xfff)< 0x1p-4: 0.547 ULP (0.550 ULP without fma). + ~ 0.5 + 2/N/ln2 + abs-poly-error*0x1p56 ULP (+ 0.003 ULP without fma). */ + p = **(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 16)) + float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 16 + 1*8))) + float64(r2*(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 16 + 2*8))+float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 16 + 3*8))))) + float64(r4*(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 16 + 4*8))+float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 16 + 5*8))))) + y1 = lo + Tdouble_t(r2*p) + hi + y = y1 + v1 = y + goto _15 +_15: + return v1 +} + +type Tlog2_data = struct { + F__ccgo_align [0]uint32 + Finvln2hi float64 + Finvln2lo float64 + Fpoly [6]float64 + Fpoly1 [10]float64 + Ftab [64]struct { + F__ccgo_align [0]uint32 + Finvc float64 + Flogc float64 + } + Ftab2 [64]struct { + F__ccgo_align [0]uint32 + Fchi float64 + Fclo float64 + } +} + +const LOG2F_POLY_ORDER = 4 +const LOG2F_TABLE_BITS = 4 +const N6 = 16 +const OFF1 = 1060306944 + +/* +LOG2F_TABLE_BITS = 4 +LOG2F_POLY_ORDER = 4 + +ULP error: 0.752 (nearest rounding.) +Relative error: 1.9 * 2^-26 (before rounding.) +*/ + +func Xlog2f(tls *TLS, x1 float32) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x1=%v, (%v:)", tls, x1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var i, k int32 + var invc, logc, p, r, r2, y0, y1, z Tdouble_t + var ix, iz, tmp, top Tuint32_t + var y, v1 float32 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = i, invc, ix, iz, k, logc, p, r, r2, tmp, top, y, y0, y1, z, v1 + ix = *(*Tuint32_t)(unsafe.Pointer(&x1)) + /* Fix sign of zero with downward rounding when x==1. */ + if Bool(int32(WANT_ROUNDING) != 0) && ix == uint32(0x3f800000) { + return Float32FromInt32(0) + } + if ix-uint32(0x00800000) >= Uint32FromInt32(Int32FromInt32(0x7f800000)-Int32FromInt32(0x00800000)) { + /* x < 0x1p-126 or inf or nan. */ + if ix*uint32(2) == uint32(0) { + return X__math_divzerof(tls, uint32(1)) + } + if ix == uint32(0x7f800000) { /* log2(inf) == inf. */ + return x1 + } + if ix&uint32(0x80000000) != 0 || ix*uint32(2) >= uint32(0xff000000) { + return X__math_invalidf(tls, x1) + } + /* x is subnormal, normalize it. */ + v1 = float32(x1 * Float32FromFloat32(8.388608e+06)) + ix = *(*Tuint32_t)(unsafe.Pointer(&v1)) + ix = ix - Uint32FromInt32(Int32FromInt32(23)<> (Int32FromInt32(23) - Int32FromInt32(LOG2F_TABLE_BITS)) % Uint32FromInt32(Int32FromInt32(1)<> int32(23) /* arithmetic shift */ + invc = (**(**struct { + F__ccgo_align [0]uint32 + Finvc float64 + Flogc float64 + })(__ccgo_up(uintptr(unsafe.Pointer(&X__log2f_data)) + uintptr(i)*16))).Finvc + logc = (**(**struct { + F__ccgo_align [0]uint32 + Finvc float64 + Flogc float64 + })(__ccgo_up(uintptr(unsafe.Pointer(&X__log2f_data)) + uintptr(i)*16))).Flogc + z = float64(*(*float32)(unsafe.Pointer(&iz))) + /* log2(x) = log1p(z/c-1)/ln2 + log2(c) + k */ + r = Tdouble_t(z*invc) - Float64FromInt32(1) + y0 = logc + float64(k) + /* Pipelined polynomial evaluation to approximate log1p(r)/ln2. */ + r2 = Tdouble_t(r * r) + y1 = float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2f_data)) + 256 + 1*8))*r) + **(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2f_data)) + 256 + 2*8)) + y1 = float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2f_data)) + 256))*r2) + y1 + p = float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2f_data)) + 256 + 3*8))*r) + y0 + y1 = Tdouble_t(y1*r2) + p + y = float32(y1) + v1 = y + goto _3 +_3: + return v1 +} + +type Tlog2f_data = struct { + F__ccgo_align [0]uint32 + Ftab [16]struct { + F__ccgo_align [0]uint32 + Finvc float64 + Flogc float64 + } + Fpoly [4]float64 +} + +func Xlog2l(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xlog2(tls, x) +} + +const N7 = 128 + +type Tlog_data = struct { + F__ccgo_align [0]uint32 + Fln2hi float64 + Fln2lo float64 + Fpoly [5]float64 + Fpoly1 [11]float64 + Ftab [128]struct { + F__ccgo_align [0]uint32 + Finvc float64 + Flogc float64 + } + Ftab2 [128]struct { + F__ccgo_align [0]uint32 + Fchi float64 + Fclo float64 + } +} + +/* +special cases: + logb(+-0) = -inf, and raise divbyzero + logb(+-inf) = +inf + logb(nan) = nan +*/ + +func Xlogb(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uint64 + var _ /* __u at bp+0 */ struct { + F__ccgo_align [0]uint32 + F__i [0]uint64 + F__f float64 + } + _ = v1 + *(*float64)(unsafe.Pointer(bp)) = x + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + if !(BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) < Uint64FromUint64(0x7ff)< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uint32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _ = v1 + *(*float32)(unsafe.Pointer(bp)) = x + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + if !(BoolInt32(v1&Uint32FromInt32(0x7fffffff) < Uint32FromInt32(0x7f800000)) != 0) { + return float32(x * x) + } + if x == Float32FromInt32(0) { + return float32(-Int32FromInt32(1)) / float32(x*x) + } + return float32(Xilogbf(tls, x)) +} + +func Xlogbl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uint64 + var _ /* __u at bp+0 */ struct { + F__ccgo_align [0]uint32 + F__i [0]uint64 + F__f float64 + } + _ = v1 + *(*float64)(unsafe.Pointer(bp)) = x + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + if !(BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) < Uint64FromUint64(0x7ff)< %v", r1) }() + } + var i, k int32 + var invc, logc, r, r2, y0, y1, z Tdouble_t + var ix, iz, tmp Tuint32_t + var y, v1 float32 + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = i, invc, ix, iz, k, logc, r, r2, tmp, y, y0, y1, z, v1 + ix = *(*Tuint32_t)(unsafe.Pointer(&x1)) + /* Fix sign of zero with downward rounding when x==1. */ + if Bool(int32(WANT_ROUNDING) != 0) && ix == uint32(0x3f800000) { + return Float32FromInt32(0) + } + if ix-uint32(0x00800000) >= Uint32FromInt32(Int32FromInt32(0x7f800000)-Int32FromInt32(0x00800000)) { + /* x < 0x1p-126 or inf or nan. */ + if ix*uint32(2) == uint32(0) { + return X__math_divzerof(tls, uint32(1)) + } + if ix == uint32(0x7f800000) { /* log(inf) == inf. */ + return x1 + } + if ix&uint32(0x80000000) != 0 || ix*uint32(2) >= uint32(0xff000000) { + return X__math_invalidf(tls, x1) + } + /* x is subnormal, normalize it. */ + v1 = float32(x1 * Float32FromFloat32(8.388608e+06)) + ix = *(*Tuint32_t)(unsafe.Pointer(&v1)) + ix = ix - Uint32FromInt32(Int32FromInt32(23)<> (Int32FromInt32(23) - Int32FromInt32(LOGF_TABLE_BITS)) % Uint32FromInt32(Int32FromInt32(1)<> int32(23) /* arithmetic shift */ + iz = ix - tmp&uint32(0xff800000) + invc = (**(**struct { + F__ccgo_align [0]uint32 + Finvc float64 + Flogc float64 + })(__ccgo_up(uintptr(unsafe.Pointer(&X__logf_data)) + uintptr(i)*16))).Finvc + logc = (**(**struct { + F__ccgo_align [0]uint32 + Finvc float64 + Flogc float64 + })(__ccgo_up(uintptr(unsafe.Pointer(&X__logf_data)) + uintptr(i)*16))).Flogc + z = float64(*(*float32)(unsafe.Pointer(&iz))) + /* log(x) = log1p(z/c-1) + log(c) + k*Ln2 */ + r = Tdouble_t(z*invc) - Float64FromInt32(1) + y0 = logc + Tdouble_t(float64(k)*X__logf_data.Fln2) + /* Pipelined polynomial evaluation to approximate log1p(r). */ + r2 = Tdouble_t(r * r) + y1 = float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__logf_data)) + 264 + 1*8))*r) + **(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__logf_data)) + 264 + 2*8)) + y1 = float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__logf_data)) + 264))*r2) + y1 + y1 = Tdouble_t(y1*r2) + (y0 + r) + y = float32(y1) + v1 = y + goto _3 +_3: + return v1 +} + +type Tlogf_data = struct { + F__ccgo_align [0]uint32 + Ftab [16]struct { + F__ccgo_align [0]uint32 + Finvc float64 + Flogc float64 + } + Fln2 float64 + Fpoly [3]float64 +} + +func Xlogl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xlog(tls, x) +} + +const DBL_EPSILON9 = 2.220446049250313e-16 + +/* +If the result cannot be represented (overflow, nan), then +lrint raises the invalid exception. + +Otherwise if the input was not an integer then the inexact +exception is raised. + +C99 is a bit vague about whether inexact exception is +allowed to be raised when invalid is raised. +(F.9 explicitly allows spurious inexact exceptions, F.9.6.5 +does not make it clear if that rule applies to lrint, but +IEEE 754r 7.8 seems to forbid spurious inexact exception in +the ineger conversion functions) + +So we try to make sure that no spurious inexact exception is +raised in case of an overflow. + +If the bit size of long > precision of double, then there +cannot be inexact rounding in case the result overflows, +otherwise LONG_MAX and LONG_MIN can be represented exactly +as a double. +*/ + +// C documentation +// +// /* avoid stack frame in lrint */ +func _lrint_slow(tls *TLS, x float64) (r int32) { + var e int32 + _ = e + e = _fetestexcept(tls, int32(FE_INEXACT)) + x = Xrint(tls, x) + if !(e != 0) && (x > Float64FromInt32(0x7fffffff) || x < float64(-Int32FromInt32(0x7fffffff)-Int32FromInt32(1))) { + _feclearexcept(tls, int32(FE_INEXACT)) + } + /* conversion */ + return int32(x) +} + +func Xlrint(tls *TLS, x float64) (r int32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + var abstop Tuint32_t + var sign, v1 Tuint64_t + var toint, y Tdouble_t + var v2 float64 + _, _, _, _, _, _ = abstop, sign, toint, y, v1, v2 + abstop = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32) & uint64(0x7fffffff)) + sign = *(*Tuint64_t)(unsafe.Pointer(&x)) & (Uint64FromUint64(1) << Int32FromInt32(63)) + if abstop < uint32(0x41dfffff) { + v2 = Float64FromInt32(1) / Float64FromFloat64(2.220446049250313e-16) + v1 = *(*Tuint64_t)(unsafe.Pointer(&v2)) | sign + /* |x| < 0x7ffffc00, no overflow */ + toint = *(*float64)(unsafe.Pointer(&v1)) + y = x + toint - toint + return int32(y) + } + return _lrint_slow(tls, x) +} + +/* uses LONG_MAX > 2^24, see comments in lrint.c */ + +func Xlrintf(tls *TLS, x float32) (r int32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(Xrintf(tls, x)) +} + +const DBL_EPSILON10 = 0 + +func Xlrintl(tls *TLS, x float64) (r int32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xlrint(tls, x) +} + +func Xlround(tls *TLS, x float64) (r int32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(Xround(tls, x)) +} + +func Xlroundf(tls *TLS, x float32) (r int32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(Xroundf(tls, x)) +} + +func Xlroundl(tls *TLS, x float64) (r int32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(Xroundl(tls, x)) +} + +func Xmodf(tls *TLS, x float64, iptr uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v iptr=%v, (%v:)", tls, x, iptr, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e int32 + var mask Tuint64_t + var _ /* u at bp+0 */ struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + } + _, _ = e, mask + *(*struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + e = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp))>>Int32FromInt32(52)&Uint64FromInt32(0x7ff)) - int32(0x3ff) + /* no fractional part */ + if e >= int32(52) { + **(**float64)(__ccgo_up(iptr)) = x + if e == int32(0x400) && *(*Tuint64_t)(unsafe.Pointer(bp))<> Int32FromInt32(12) >> e + if *(*Tuint64_t)(unsafe.Pointer(bp))&mask == uint64(0) { + **(**float64)(__ccgo_up(iptr)) = x + *(*Tuint64_t)(unsafe.Pointer(bp)) &= Uint64FromUint64(1) << Int32FromInt32(63) + return *(*float64)(unsafe.Pointer(bp)) + } + *(*Tuint64_t)(unsafe.Pointer(bp)) &= ^mask + **(**float64)(__ccgo_up(iptr)) = *(*float64)(unsafe.Pointer(bp)) + return x - *(*float64)(unsafe.Pointer(bp)) +} + +func Xmodff(tls *TLS, x float32, iptr uintptr) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v iptr=%v, (%v:)", tls, x, iptr, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e int32 + var mask Tuint32_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _ = e, mask + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + e = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp))>>Int32FromInt32(23)&Uint32FromInt32(0xff)) - int32(0x7f) + /* no fractional part */ + if e >= int32(23) { + **(**float32)(__ccgo_up(iptr)) = x + if e == int32(0x80) && *(*Tuint32_t)(unsafe.Pointer(bp))<> e) + if *(*Tuint32_t)(unsafe.Pointer(bp))&mask == uint32(0) { + **(**float32)(__ccgo_up(iptr)) = x + *(*Tuint32_t)(unsafe.Pointer(bp)) &= uint32(0x80000000) + return *(*float32)(unsafe.Pointer(bp)) + } + *(*Tuint32_t)(unsafe.Pointer(bp)) &= ^mask + **(**float32)(__ccgo_up(iptr)) = *(*float32)(unsafe.Pointer(bp)) + return x - *(*float32)(unsafe.Pointer(bp)) +} + +func Xmodfl(tls *TLS, x float64, iptr uintptr) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x=%v iptr=%v, (%v:)", tls, x, iptr, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var r float64 + var _ /* d at bp+0 */ float64 + _ = r + r = Xmodf(tls, x, bp) + **(**float64)(__ccgo_up(iptr)) = float64(**(**float64)(__ccgo_up(bp))) + return r +} + +func Xnan(tls *TLS, s uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + return float64(X__builtin_nanf(tls, __ccgo_ts)) +} + +func Xnanf(tls *TLS, s uintptr) (r float32) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__builtin_nanf(tls, __ccgo_ts) +} + +func Xnanl(tls *TLS, s uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + return float64(X__builtin_nanf(tls, __ccgo_ts)) +} + +func Xnextafter(tls *TLS, x3 float64, y3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v y3=%v, (%v:)", tls, x3, y3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var ax, ay Tuint64_t + var e int32 + var y float32 + var y1, y2 float64 + var v1, v3 uint64 + var v5 bool + var _ /* __u at bp+0 */ struct { + F__ccgo_align [0]uint32 + F__i [0]uint64 + F__f float64 + } + var _ /* ux at bp+8 */ struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + } + var _ /* uy at bp+16 */ struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _, _, _ = ax, ay, e, y, y1, y2, v1, v3, v5 + *(*struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp + 8)) = struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp + 8)) = x3 + *(*struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp + 16)) = struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp + 16)) = y3 + *(*float64)(unsafe.Pointer(bp)) = x3 + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + ; + if v5 = BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)< ay || (*(*Tuint64_t)(unsafe.Pointer(bp + 8))^*(*Tuint64_t)(unsafe.Pointer(bp + 16)))&(Uint64FromUint64(1)<> int32(52) & uint64(0x7ff)) + /* raise overflow if ux.f is infinite and x is finite */ + if e == int32(0x7ff) { + if uint32(8) == uint32(4) { + y = float32(x3 + x3) + } else { + if uint32(8) == uint32(8) { + y1 = x3 + x3 + } else { + y2 = x3 + x3 + } + } + } + /* raise underflow if ux.f is subnormal or zero */ + if e == 0 { + if uint32(8) == uint32(4) { + y = float32(float64(x3*x3) + float64(*(*float64)(unsafe.Pointer(bp + 8))**(*float64)(unsafe.Pointer(bp + 8)))) + } else { + if uint32(8) == uint32(8) { + y1 = float64(x3*x3) + float64(*(*float64)(unsafe.Pointer(bp + 8))**(*float64)(unsafe.Pointer(bp + 8))) + } else { + y2 = float64(x3*x3) + float64(*(*float64)(unsafe.Pointer(bp + 8))**(*float64)(unsafe.Pointer(bp + 8))) + } + } + } + return *(*float64)(unsafe.Pointer(bp + 8)) +} + +func Xnextafterf(tls *TLS, x3 float32, y3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v y3=%v, (%v:)", tls, x3, y3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ax, ay, e Tuint32_t + var y float32 + var y1, y2 float64 + var v1, v3 uint32 + var v5 bool + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + var _ /* ux at bp+4 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + var _ /* uy at bp+8 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _, _, _, _ = ax, ay, e, y, y1, y2, v1, v3, v5 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp + 4)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp + 4)) = x3 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp + 8)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp + 8)) = y3 + *(*float32)(unsafe.Pointer(bp)) = x3 + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + ; + if v5 = BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0; !v5 { + *(*float32)(unsafe.Pointer(bp)) = y3 + v3 = *(*uint32)(unsafe.Pointer(bp)) + goto _4 + _4: + } + if v5 || BoolInt32(v3&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return x3 + y3 + } + if *(*Tuint32_t)(unsafe.Pointer(bp + 4)) == *(*Tuint32_t)(unsafe.Pointer(bp + 8)) { + return y3 + } + ax = *(*Tuint32_t)(unsafe.Pointer(bp + 4)) & uint32(0x7fffffff) + ay = *(*Tuint32_t)(unsafe.Pointer(bp + 8)) & uint32(0x7fffffff) + if ax == uint32(0) { + if ay == uint32(0) { + return y3 + } + *(*Tuint32_t)(unsafe.Pointer(bp + 4)) = *(*Tuint32_t)(unsafe.Pointer(bp + 8))&uint32(0x80000000) | uint32(1) + } else { + if ax > ay || (*(*Tuint32_t)(unsafe.Pointer(bp + 4))^*(*Tuint32_t)(unsafe.Pointer(bp + 8)))&uint32(0x80000000) != 0 { + *(*Tuint32_t)(unsafe.Pointer(bp + 4)) = *(*Tuint32_t)(unsafe.Pointer(bp + 4)) - 1 + } else { + *(*Tuint32_t)(unsafe.Pointer(bp + 4)) = *(*Tuint32_t)(unsafe.Pointer(bp + 4)) + 1 + } + } + e = *(*Tuint32_t)(unsafe.Pointer(bp + 4)) & uint32(0x7f800000) + /* raise overflow if ux.f is infinite and x is finite */ + if e == uint32(0x7f800000) { + if uint32(4) == uint32(4) { + y = x3 + x3 + } else { + if uint32(4) == uint32(8) { + y1 = float64(x3 + x3) + } else { + y2 = float64(x3 + x3) + } + } + } + /* raise underflow if ux.f is subnormal or zero */ + if e == uint32(0) { + if uint32(4) == uint32(4) { + y = float32(x3*x3) + float32(*(*float32)(unsafe.Pointer(bp + 4))**(*float32)(unsafe.Pointer(bp + 4))) + } else { + if uint32(4) == uint32(8) { + y1 = float64(float32(x3*x3) + float32(*(*float32)(unsafe.Pointer(bp + 4))**(*float32)(unsafe.Pointer(bp + 4)))) + } else { + y2 = float64(float32(x3*x3) + float32(*(*float32)(unsafe.Pointer(bp + 4))**(*float32)(unsafe.Pointer(bp + 4)))) + } + } + } + return *(*float32)(unsafe.Pointer(bp + 4)) +} + +func Xnextafterl(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xnextafter(tls, x, y) +} + +func Xnexttoward(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xnextafter(tls, x, y) +} + +func Xnexttowardf(tls *TLS, x3 float32, y3 float64) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v y3=%v, (%v:)", tls, x3, y3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var e Tuint32_t + var y float32 + var y1, y2 float64 + var v1 uint32 + var v3 uint64 + var v5 bool + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + var _ /* __u at bp+8 */ struct { + F__ccgo_align [0]uint32 + F__i [0]uint64 + F__f float64 + } + var _ /* ux at bp+16 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _, _ = e, y, y1, y2, v1, v3, v5 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp + 16)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp + 16)) = x3 + *(*float32)(unsafe.Pointer(bp)) = x3 + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + ; + if v5 = BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0; !v5 { + *(*float64)(unsafe.Pointer(bp + 8)) = y3 + v3 = *(*uint64)(unsafe.Pointer(bp + 8)) + goto _4 + _4: + } + if v5 || BoolInt32(v3&(-Uint64FromUint64(1)>>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(63)) != 0 { + *(*Tuint32_t)(unsafe.Pointer(bp + 16)) |= uint32(0x80000000) + } + } else { + if float64(x3) < y3 { + *(*float32)(unsafe.Pointer(bp)) = x3 + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _9 + _9: + if Int32FromUint32(v1>>Int32FromInt32(31)) != 0 { + *(*Tuint32_t)(unsafe.Pointer(bp + 16)) = *(*Tuint32_t)(unsafe.Pointer(bp + 16)) - 1 + } else { + *(*Tuint32_t)(unsafe.Pointer(bp + 16)) = *(*Tuint32_t)(unsafe.Pointer(bp + 16)) + 1 + } + } else { + *(*float32)(unsafe.Pointer(bp)) = x3 + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _11 + _11: + if Int32FromUint32(v1>>Int32FromInt32(31)) != 0 { + *(*Tuint32_t)(unsafe.Pointer(bp + 16)) = *(*Tuint32_t)(unsafe.Pointer(bp + 16)) + 1 + } else { + *(*Tuint32_t)(unsafe.Pointer(bp + 16)) = *(*Tuint32_t)(unsafe.Pointer(bp + 16)) - 1 + } + } + } + e = *(*Tuint32_t)(unsafe.Pointer(bp + 16)) & uint32(0x7f800000) + /* raise overflow if ux.f is infinite and x is finite */ + if e == uint32(0x7f800000) { + if uint32(4) == uint32(4) { + y = x3 + x3 + } else { + if uint32(4) == uint32(8) { + y1 = float64(x3 + x3) + } else { + y2 = float64(x3 + x3) + } + } + } + /* raise underflow if ux.f is subnormal or zero */ + if e == uint32(0) { + if uint32(4) == uint32(4) { + y = float32(x3*x3) + float32(*(*float32)(unsafe.Pointer(bp + 16))**(*float32)(unsafe.Pointer(bp + 16))) + } else { + if uint32(4) == uint32(8) { + y1 = float64(float32(x3*x3) + float32(*(*float32)(unsafe.Pointer(bp + 16))**(*float32)(unsafe.Pointer(bp + 16)))) + } else { + y2 = float64(float32(x3*x3) + float32(*(*float32)(unsafe.Pointer(bp + 16))**(*float32)(unsafe.Pointer(bp + 16)))) + } + } + } + return *(*float32)(unsafe.Pointer(bp + 16)) +} + +func Xnexttowardl(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xnextafterl(tls, x, y) +} + +const OFF2 = 4604531861337669632 +const POW_LOG_POLY_ORDER = 8 +const POW_LOG_TABLE_BITS = 7 +const SIGN_BIAS = 262144 + +/* +Worst-case error: 0.54 ULP (~= ulperr_exp + 1024*Ln2*relerr_log*2^53) +relerr_log: 1.3 * 2^-68 (Relative error of log, 1.5 * 2^-68 without fma) +ulperr_exp: 0.509 ULP (ULP error of exp, 0.511 ULP without fma) +*/ + +// C documentation +// +// /* Top 12 bits of a double (sign and exponent bits). */ +func _top124(tls *TLS, x float64) (r Tuint32_t) { + return uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(52)) +} + +// C documentation +// +// /* Compute y+TAIL = log(x) where the rounded result is y and TAIL has about +// additional 15 bits precision. IX is the bit representation of x, but +// normalized in the subnormal range using the sign bit for the exponent. */ +func _log_inline(tls *TLS, ix Tuint64_t, tail uintptr) (r1 Tdouble_t) { + var ar, ar2, ar3, arhi, arhi2, hi, invc, kd, lo, lo1, lo2, lo3, lo4, logc, logctail, p, r, rhi, rlo, t1, t2, y, z, zhi, zlo Tdouble_t + var i, k int32 + var iz, tmp, v1 Tuint64_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = ar, ar2, ar3, arhi, arhi2, hi, i, invc, iz, k, kd, lo, lo1, lo2, lo3, lo4, logc, logctail, p, r, rhi, rlo, t1, t2, tmp, y, z, zhi, zlo, v1 + /* x = 2^k z; where z is in range [OFF,2*OFF) and exact. + The range is split into N subintervals. + The ith subinterval contains z and c is near its center. */ + tmp = ix - uint64(OFF2) + i = Int32FromUint64(tmp >> (Int32FromInt32(52) - Int32FromInt32(POW_LOG_TABLE_BITS)) % Uint64FromInt32(Int32FromInt32(1)<> int32(52)) /* arithmetic shift */ + iz = ix - tmp&(Uint64FromUint64(0xfff)< 0, the exponent of scale might have overflowed by <= 460. */ + sbits = sbits - Uint64FromUint64(1009)<= _top124(tls, float64(512))-_top124(tls, float64(5.551115123125783e-17)) { + if abstop-_top124(tls, float64(5.551115123125783e-17)) >= uint32(0x80000000) { + /* Avoid spurious underflow for tiny x. */ + /* Note: 0 is common input. */ + one = float64(1) + x1 + if sign_bias != 0 { + v1 = -one + } else { + v1 = one + } + return v1 + } + if abstop >= _top124(tls, float64(1024)) { + /* Note: inf and nan are already handled. */ + v2 = x1 + if *(*Tuint64_t)(unsafe.Pointer(&v2))>>int32(63) != 0 { + return X__math_uflow(tls, sign_bias) + } else { + return X__math_oflow(tls, sign_bias) + } + } + /* Large x is special cased below. */ + abstop = uint32(0) + } + /* exp(x) = 2^(k/N) * exp(r), with exp(r) in [2^(-1/2N),2^(1/2N)]. */ + /* x = ln2/N*k + r, with int k and r in [-ln2/2N, ln2/2N]. */ + z = Tdouble_t(X__exp_data.Finvln2N * x1) + /* z - kd is in [-1, 1] in non-nearest rounding modes. */ + y = z + X__exp_data.Fshift + v2 = y + goto _4 +_4: + kd = v2 + v2 = kd + ki = *(*Tuint64_t)(unsafe.Pointer(&v2)) + kd = kd - X__exp_data.Fshift + r = x1 + Tdouble_t(kd*X__exp_data.Fnegln2hiN) + Tdouble_t(kd*X__exp_data.Fnegln2loN) + /* The code assumes 2^-200 < |xtail| < 2^-8/N. */ + r = r + xtail + /* 2^(k/N) ~= scale * (1 + tail). */ + idx = uint64(2) * (ki % Uint64FromInt32(Int32FromInt32(1)< 2^-200 and scale > 2^-739, so there + is no spurious underflow here even without fma. */ + y = scale + Tdouble_t(scale*tmp) + v2 = y + goto _8 +_8: + return v2 +} + +// C documentation +// +// /* Returns 0 if not int, 1 if odd int, 2 if even int. The argument is +// the bit representation of a non-zero finite floating-point value. */ +func _checkint(tls *TLS, iy Tuint64_t) (r int32) { + var e int32 + _ = e + e = Int32FromUint64(iy >> int32(52) & uint64(0x7ff)) + if e < int32(0x3ff) { + return 0 + } + if e > Int32FromInt32(0x3ff)+Int32FromInt32(52) { + return int32(2) + } + if iy&(uint64(1)<<(Int32FromInt32(0x3ff)+Int32FromInt32(52)-e)-uint64(1)) != 0 { + return 0 + } + if iy&(uint64(1)<<(Int32FromInt32(0x3ff)+Int32FromInt32(52)-e)) != 0 { + return int32(1) + } + return int32(2) +} + +// C documentation +// +// /* Returns 1 if input is the bit representation of 0, infinity or nan. */ +func _zeroinfnan(tls *TLS, i Tuint64_t) (r int32) { + var v1 float64 + _ = v1 + v1 = float64(X__builtin_inff(tls)) + return BoolInt32(uint64(2)*i-uint64(1) >= uint64(2)**(*Tuint64_t)(unsafe.Pointer(&v1))-uint64(1)) +} + +func Xpow(tls *TLS, x1 float64, y1 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x1=%v y1=%v, (%v:)", tls, x1, y1, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ehi, elo, hi, lhi, llo, x2, yhi, ylo Tdouble_t + var ix, iy, v16, v17 Tuint64_t + var sign_bias, topx, topy Tuint32_t + var y, v1, v2 float64 + var yint int32 + var v4 bool + var _ /* lo at bp+0 */ Tdouble_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = ehi, elo, hi, ix, iy, lhi, llo, sign_bias, topx, topy, x2, y, yhi, yint, ylo, v1, v16, v17, v2, v4 + sign_bias = uint32(0) + ix = *(*Tuint64_t)(unsafe.Pointer(&x1)) + iy = *(*Tuint64_t)(unsafe.Pointer(&y1)) + topx = _top124(tls, x1) + topy = _top124(tls, y1) + if topx-uint32(0x001) >= Uint32FromInt32(Int32FromInt32(0x7ff)-Int32FromInt32(0x001)) || topy&uint32(0x7ff)-uint32(0x3be) >= Uint32FromInt32(Int32FromInt32(0x43e)-Int32FromInt32(0x3be)) { + /* Note: if |y| > 1075 * ln2 * 2^53 ~= 0x1.749p62 then pow(x,y) = inf/0 + and if |y| < 2^-54 / 1075 ~= 0x1.e7b6p-65 then pow(x,y) = +-1. */ + /* Special cases: (x < 0x1p-126 or inf or nan) or + (|y| < 0x1p-65 or |y| >= 0x1p63 or nan). */ + if _zeroinfnan(tls, iy) != 0 { + if uint64(2)*iy == uint64(0) { + return float64(1) + } + v1 = float64(1) + if ix == *(*Tuint64_t)(unsafe.Pointer(&v1)) { + return float64(1) + } + v1 = float64(X__builtin_inff(tls)) + if v4 = uint64(2)*ix > uint64(2)**(*Tuint64_t)(unsafe.Pointer(&v1)); !v4 { + v2 = float64(X__builtin_inff(tls)) + } + if v4 || uint64(2)*iy > uint64(2)**(*Tuint64_t)(unsafe.Pointer(&v2)) { + return x1 + y1 + } + v1 = float64(1) + if uint64(2)*ix == uint64(2)**(*Tuint64_t)(unsafe.Pointer(&v1)) { + return float64(1) + } + v1 = float64(1) + if BoolInt32(uint64(2)*ix < uint64(2)**(*Tuint64_t)(unsafe.Pointer(&v1))) == BoolInt32(!(iy>>Int32FromInt32(63) != 0)) { + return float64(0) + } /* |x|<1 && y==inf or |x|>1 && y==-inf. */ + return float64(y1 * y1) + } + if _zeroinfnan(tls, ix) != 0 { + x2 = Tdouble_t(x1 * x1) + if ix>>int32(63) != 0 && _checkint(tls, iy) == int32(1) { + x2 = -x2 + } + /* Without the barrier some versions of clang hoist the 1/x2 and + thus division by zero exception can be signaled spuriously. */ + if iy>>int32(63) != 0 { + y = Float64FromInt32(1) / x2 + v2 = y + goto _9 + _9: + v1 = v2 + } else { + v1 = x2 + } + return v1 + } + /* Here x and y are non-zero finite. */ + if ix>>int32(63) != 0 { + /* Finite x < 0. */ + yint = _checkint(tls, iy) + if yint == 0 { + return X__math_invalid(tls, x1) + } + if yint == int32(1) { + sign_bias = Uint32FromInt32(Int32FromInt32(0x800) << Int32FromInt32(EXP_TABLE_BITS)) + } + ix = ix & uint64(0x7fffffffffffffff) + topx = topx & uint32(0x7ff) + } + if topy&uint32(0x7ff)-uint32(0x3be) >= Uint32FromInt32(Int32FromInt32(0x43e)-Int32FromInt32(0x3be)) { + /* Note: sign_bias == 0 here because y is not odd. */ + v1 = float64(1) + if ix == *(*Tuint64_t)(unsafe.Pointer(&v1)) { + return float64(1) + } + if topy&uint32(0x7ff) < uint32(0x3be) { + /* |y| < 2^-65, x^y ~= 1 + y*log(x). */ + if int32(WANT_ROUNDING) != 0 { + v2 = float64(1) + if ix > *(*Tuint64_t)(unsafe.Pointer(&v2)) { + v1 = float64(1) + y1 + } else { + v1 = float64(1) - y1 + } + return v1 + } else { + return float64(1) + } + } + v2 = float64(1) + if BoolInt32(ix > *(*Tuint64_t)(unsafe.Pointer(&v2))) == BoolInt32(topy < uint32(0x800)) { + v1 = X__math_oflow(tls, uint32(0)) + } else { + v1 = X__math_uflow(tls, uint32(0)) + } + return v1 + } + if topx == uint32(0) { + /* Normalize subnormal x so exponent becomes negative. */ + v1 = float64(x1 * float64(4.503599627370496e+15)) + ix = *(*Tuint64_t)(unsafe.Pointer(&v1)) + ix = ix & uint64(0x7fffffffffffffff) + ix = ix - Uint64FromUint64(52)<> (Int32FromInt32(23) - Int32FromInt32(POWF_LOG2_TABLE_BITS)) % Uint32FromInt32(Int32FromInt32(1)<> (Int32FromInt32(23) - Int32FromInt32(POWF_SCALE_BITS)) /* arithmetic shift */ + invc = (**(**struct { + F__ccgo_align [0]uint32 + Finvc float64 + Flogc float64 + })(__ccgo_up(uintptr(unsafe.Pointer(&X__powf_log2_data)) + uintptr(i)*16))).Finvc + logc = (**(**struct { + F__ccgo_align [0]uint32 + Finvc float64 + Flogc float64 + })(__ccgo_up(uintptr(unsafe.Pointer(&X__powf_log2_data)) + uintptr(i)*16))).Flogc + z = float64(*(*float32)(unsafe.Pointer(&iz))) + /* log2(x) = log1p(z/c-1)/ln2 + log2(c) + k */ + r = Tdouble_t(z*invc) - Float64FromInt32(1) + y0 = logc + float64(k) + /* Pipelined polynomial evaluation to approximate log1p(r)/ln2. */ + r2 = Tdouble_t(r * r) + y = float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__powf_log2_data)) + 256))*r) + **(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__powf_log2_data)) + 256 + 1*8)) + p = float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__powf_log2_data)) + 256 + 2*8))*r) + **(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__powf_log2_data)) + 256 + 3*8)) + r4 = Tdouble_t(r2 * r2) + q = float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__powf_log2_data)) + 256 + 4*8))*r) + y0 + q = Tdouble_t(p*r2) + q + y = Tdouble_t(y*r4) + q + return y +} + +// C documentation +// +// /* The output of log2 and thus the input of exp2 is either scaled by N +// (in case of fast toint intrinsics) or not. The unscaled xd must be +// in [-1021,1023], sign_bias sets the sign of the result. */ +func _exp2_inline(tls *TLS, xd Tdouble_t, sign_bias Tuint32_t) (r1 float32) { + var kd, r, r2, s, y2, z Tdouble_t + var ki, ski, t Tuint64_t + var y, v4 float32 + var y1, v1 float64 + _, _, _, _, _, _, _, _, _, _, _, _, _ = kd, ki, r, r2, s, ski, t, y, y1, y2, z, v1, v4 + /* x = k/N + r with r in [-1/(2N), 1/(2N)] */ + y1 = xd + X__exp2f_data.Fshift_scaled + v1 = y1 + goto _2 +_2: + kd = v1 + v1 = kd + ki = *(*Tuint64_t)(unsafe.Pointer(&v1)) + kd = kd - X__exp2f_data.Fshift_scaled /* k/N */ + r = xd - kd + /* exp2(x) = 2^(k/N) * 2^r ~= s * (C0*r^3 + C1*r^2 + C2*r + 1) */ + t = **(**Tuint64_t)(__ccgo_up(uintptr(unsafe.Pointer(&X__exp2f_data)) + uintptr(ki%Uint64FromInt32(Int32FromInt32(1)<> int32(23) & uint32(0xff)) + if e < int32(0x7f) { + return 0 + } + if e > Int32FromInt32(0x7f)+Int32FromInt32(23) { + return int32(2) + } + if iy&Uint32FromInt32(Int32FromInt32(1)<<(Int32FromInt32(0x7f)+Int32FromInt32(23)-e)-Int32FromInt32(1)) != 0 { + return 0 + } + if iy&Uint32FromInt32(Int32FromInt32(1)<<(Int32FromInt32(0x7f)+Int32FromInt32(23)-e)) != 0 { + return int32(1) + } + return int32(2) +} + +func _zeroinfnan1(tls *TLS, ix Tuint32_t) (r int32) { + return BoolInt32(uint32(2)*ix-uint32(1) >= Uint32FromUint32(2)*Uint32FromInt32(0x7f800000)-Uint32FromInt32(1)) +} + +func Xpowf(tls *TLS, x1 float32, y1 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x1=%v y1=%v, (%v:)", tls, x1, y1, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ix, iy, sign_bias Tuint32_t + var logx, ylogx Tdouble_t + var x2 Tfloat_t + var y, v1, v2 float32 + var yint int32 + var v5, v6 float64 + _, _, _, _, _, _, _, _, _, _, _, _ = ix, iy, logx, sign_bias, x2, y, yint, ylogx, v1, v2, v5, v6 + sign_bias = uint32(0) + ix = *(*Tuint32_t)(unsafe.Pointer(&x1)) + iy = *(*Tuint32_t)(unsafe.Pointer(&y1)) + if ix-uint32(0x00800000) >= Uint32FromInt32(Int32FromInt32(0x7f800000)-Int32FromInt32(0x00800000)) || _zeroinfnan1(tls, iy) != 0 { + /* Either (x < 0x1p-126 or inf or nan) or (y is 0 or inf or nan). */ + if _zeroinfnan1(tls, iy) != 0 { + if uint32(2)*iy == uint32(0) { + return Float32FromFloat32(1) + } + if ix == uint32(0x3f800000) { + return Float32FromFloat32(1) + } + if uint32(2)*ix > Uint32FromUint32(2)*Uint32FromInt32(0x7f800000) || uint32(2)*iy > Uint32FromUint32(2)*Uint32FromInt32(0x7f800000) { + return x1 + y1 + } + if uint32(2)*ix == Uint32FromInt32(Int32FromInt32(2)*Int32FromInt32(0x3f800000)) { + return Float32FromFloat32(1) + } + if BoolInt32(uint32(2)*ix < Uint32FromInt32(Int32FromInt32(2)*Int32FromInt32(0x3f800000))) == BoolInt32(!(iy&Uint32FromUint32(0x80000000) != 0)) { + return Float32FromFloat32(0) + } /* |x|<1 && y==inf or |x|>1 && y==-inf. */ + return float32(y1 * y1) + } + if _zeroinfnan1(tls, ix) != 0 { + x2 = Tfloat_t(x1 * x1) + if ix&uint32(0x80000000) != 0 && _checkint1(tls, iy) == int32(1) { + x2 = -x2 + } + /* Without the barrier some versions of clang hoist the 1/x2 and + thus division by zero exception can be signaled spuriously. */ + if iy&uint32(0x80000000) != 0 { + y = Float32FromInt32(1) / x2 + v2 = y + goto _3 + _3: + v1 = v2 + } else { + v1 = x2 + } + return v1 + } + /* x and y are non-zero finite. */ + if ix&uint32(0x80000000) != 0 { + /* Finite x < 0. */ + yint = _checkint1(tls, iy) + if yint == 0 { + return X__math_invalidf(tls, x1) + } + if yint == int32(1) { + sign_bias = Uint32FromInt32(Int32FromInt32(1) << (Int32FromInt32(EXP2F_TABLE_BITS) + Int32FromInt32(11))) + } + ix = ix & uint32(0x7fffffff) + } + if ix < uint32(0x00800000) { + /* Normalize subnormal x so exponent becomes negative. */ + v1 = float32(x1 * Float32FromFloat32(8.388608e+06)) + ix = *(*Tuint32_t)(unsafe.Pointer(&v1)) + ix = ix & uint32(0x7fffffff) + ix = ix - Uint32FromInt32(Int32FromInt32(23)<>int32(47)&uint64(0xffff) >= *(*Tuint64_t)(unsafe.Pointer(&v6))>>int32(47) { + /* |y*log(x)| >= 126. */ + if ylogx > Tdouble_t(float64(127.99999995700433)*float64(Int32FromInt32(1)< %v", r) }() + } + return Xpow(tls, x, y) +} + +func Xremainder(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* q at bp+0 */ int32 + return Xremquo(tls, x, y, bp) +} + +func Xdrem(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xremainder(tls, x, y) +} + +func Xremainderf(tls *TLS, x float32, y float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* q at bp+0 */ int32 + return Xremquof(tls, x, y, bp) +} + +func Xdremf(tls *TLS, x float32, y float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xremainderf(tls, x, y) +} + +func Xremainderl(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xremainder(tls, x, y) +} + +func Xremquo(tls *TLS, x float64, y float64, quo uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v quo=%v, (%v:)", tls, x, y, quo, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var ex, ey, sx, sy, v8 int32 + var i, uxi Tuint64_t + var q Tuint32_t + var v1 uint64 + var v3 bool + var v9 float64 + var _ /* __u at bp+0 */ struct { + F__ccgo_align [0]uint32 + F__i [0]uint64 + F__f float64 + } + var _ /* ux at bp+8 */ struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + } + var _ /* uy at bp+16 */ struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _, _, _, _, _ = ex, ey, i, q, sx, sy, uxi, v1, v3, v8, v9 + *(*struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp + 8)) = struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp + 8)) = x + *(*struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp + 16)) = struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp + 16)) = y + ex = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp + 8)) >> int32(52) & uint64(0x7ff)) + ey = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp + 16)) >> int32(52) & uint64(0x7ff)) + sx = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp + 8)) >> int32(63)) + sy = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp + 16)) >> int32(63)) + uxi = *(*Tuint64_t)(unsafe.Pointer(bp + 8)) + **(**int32)(__ccgo_up(quo)) = 0 + if v3 = *(*Tuint64_t)(unsafe.Pointer(bp + 16))<>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>int32(63) == uint64(0)) { + break + } + goto _4 + _4: + ; + ex = ex - 1 + i = i << uint64(1) + } + uxi = uxi << Uint64FromInt32(-ex+int32(1)) + } else { + uxi = uxi & (-Uint64FromUint64(1) >> Int32FromInt32(12)) + uxi = uxi | Uint64FromUint64(1)<>int32(63) == uint64(0)) { + break + } + goto _5 + _5: + ; + ey = ey - 1 + i = i << uint64(1) + } + *(*Tuint64_t)(unsafe.Pointer(bp + 16)) <<= Uint64FromInt32(-ey + int32(1)) + } else { + *(*Tuint64_t)(unsafe.Pointer(bp + 16)) &= -Uint64FromUint64(1) >> Int32FromInt32(12) + *(*Tuint64_t)(unsafe.Pointer(bp + 16)) |= Uint64FromUint64(1) << Int32FromInt32(52) + } + q = uint32(0) + if ex < ey { + if ex+int32(1) == ey { + goto end + } + return x + } + /* x mod y */ + for { + if !(ex > ey) { + break + } + i = uxi - *(*Tuint64_t)(unsafe.Pointer(bp + 16)) + if i>>int32(63) == uint64(0) { + uxi = i + q = q + 1 + } + uxi = uxi << uint64(1) + q = q << uint32(1) + goto _6 + _6: + ; + ex = ex - 1 + } + i = uxi - *(*Tuint64_t)(unsafe.Pointer(bp + 16)) + if i>>int32(63) == uint64(0) { + uxi = i + q = q + 1 + } + if uxi == uint64(0) { + ex = -int32(60) + } else { + for { + if !(uxi>>int32(52) == uint64(0)) { + break + } + goto _7 + _7: + ; + uxi = uxi << uint64(1) + ex = ex - 1 + } + } + goto end +end: + ; + /* scale result and decide between |x| and |x|-|y| */ + if ex > 0 { + uxi = uxi - Uint64FromUint64(1)<> Uint64FromInt32(-ex+int32(1)) + } + *(*Tuint64_t)(unsafe.Pointer(bp + 8)) = uxi + x = *(*float64)(unsafe.Pointer(bp + 8)) + if sy != 0 { + y = -y + } + if ex == ey || ex+int32(1) == ey && (float64(Float64FromInt32(2)*x) > y || float64(Float64FromInt32(2)*x) == y && q%uint32(2) != 0) { + x = x - y + q = q + 1 + } + q = q & uint32(0x7fffffff) + if sx^sy != 0 { + v8 = -Int32FromUint32(q) + } else { + v8 = Int32FromUint32(q) + } + **(**int32)(__ccgo_up(quo)) = v8 + if sx != 0 { + v9 = -x + } else { + v9 = x + } + return v9 +} + +func Xremquof(tls *TLS, x float32, y float32, quo uintptr) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v quo=%v, (%v:)", tls, x, y, quo, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ex, ey, sx, sy, v8 int32 + var i, q, uxi Tuint32_t + var v1 uint32 + var v3 bool + var v9 float32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + var _ /* ux at bp+4 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + var _ /* uy at bp+8 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _, _, _, _, _, _ = ex, ey, i, q, sx, sy, uxi, v1, v3, v8, v9 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp + 4)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp + 4)) = x + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp + 8)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp + 8)) = y + ex = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp + 4)) >> int32(23) & uint32(0xff)) + ey = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp + 8)) >> int32(23) & uint32(0xff)) + sx = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp + 4)) >> int32(31)) + sy = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp + 8)) >> int32(31)) + uxi = *(*Tuint32_t)(unsafe.Pointer(bp + 4)) + **(**int32)(__ccgo_up(quo)) = 0 + if v3 = *(*Tuint32_t)(unsafe.Pointer(bp + 8))< uint32(0x7f800000)) != 0 || ex == int32(0xff) { + return float32(x*y) / float32(x*y) + } + if *(*Tuint32_t)(unsafe.Pointer(bp + 4))<>int32(31) == uint32(0)) { + break + } + goto _4 + _4: + ; + ex = ex - 1 + i = i << uint32(1) + } + uxi = uxi << Uint32FromInt32(-ex+int32(1)) + } else { + uxi = uxi & (-Uint32FromUint32(1) >> Int32FromInt32(9)) + uxi = uxi | Uint32FromUint32(1)<>int32(31) == uint32(0)) { + break + } + goto _5 + _5: + ; + ey = ey - 1 + i = i << uint32(1) + } + *(*Tuint32_t)(unsafe.Pointer(bp + 8)) <<= Uint32FromInt32(-ey + int32(1)) + } else { + *(*Tuint32_t)(unsafe.Pointer(bp + 8)) &= -Uint32FromUint32(1) >> Int32FromInt32(9) + *(*Tuint32_t)(unsafe.Pointer(bp + 8)) |= Uint32FromUint32(1) << Int32FromInt32(23) + } + q = uint32(0) + if ex < ey { + if ex+int32(1) == ey { + goto end + } + return x + } + /* x mod y */ + for { + if !(ex > ey) { + break + } + i = uxi - *(*Tuint32_t)(unsafe.Pointer(bp + 8)) + if i>>int32(31) == uint32(0) { + uxi = i + q = q + 1 + } + uxi = uxi << uint32(1) + q = q << uint32(1) + goto _6 + _6: + ; + ex = ex - 1 + } + i = uxi - *(*Tuint32_t)(unsafe.Pointer(bp + 8)) + if i>>int32(31) == uint32(0) { + uxi = i + q = q + 1 + } + if uxi == uint32(0) { + ex = -int32(30) + } else { + for { + if !(uxi>>int32(23) == uint32(0)) { + break + } + goto _7 + _7: + ; + uxi = uxi << uint32(1) + ex = ex - 1 + } + } + goto end +end: + ; + /* scale result and decide between |x| and |x|-|y| */ + if ex > 0 { + uxi = uxi - Uint32FromUint32(1)<> Uint32FromInt32(-ex+int32(1)) + } + *(*Tuint32_t)(unsafe.Pointer(bp + 4)) = uxi + x = *(*float32)(unsafe.Pointer(bp + 4)) + if sy != 0 { + y = -y + } + if ex == ey || ex+int32(1) == ey && (float32(Float32FromInt32(2)*x) > y || float32(Float32FromInt32(2)*x) == y && q%uint32(2) != 0) { + x = x - y + q = q + 1 + } + q = q & uint32(0x7fffffff) + if sx^sy != 0 { + v8 = -Int32FromUint32(q) + } else { + v8 = Int32FromUint32(q) + } + **(**int32)(__ccgo_up(quo)) = v8 + if sx != 0 { + v9 = -x + } else { + v9 = x + } + return v9 +} + +func Xremquol(tls *TLS, x float64, y float64, quo uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v quo=%v, (%v:)", tls, x, y, quo, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xremquo(tls, x, y, quo) +} + +const DBL_EPSILON11 = 2.220446049250313e-16 + +var _toint4 = Float64FromInt32(1) / Float64FromFloat64(2.220446049250313e-16) + +func Xrint(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e, s int32 + var y Tdouble_t + var v1 float64 + var _ /* u at bp+0 */ struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _ = e, s, y, v1 + *(*struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + e = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + s = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(63)) + if e >= Int32FromInt32(0x3ff)+Int32FromInt32(52) { + return x + } + if s != 0 { + y = x - _toint4 + _toint4 + } else { + y = x + _toint4 - _toint4 + } + if y == Float64FromInt32(0) { + if s != 0 { + v1 = -Float64FromFloat64(0) + } else { + v1 = Float64FromInt32(0) + } + return v1 + } + return y +} + +const DBL_EPSILON12 = 0 +const FLT_EPSILON1 = 1.1920928955078125e-07 + +var _toint5 = Float32FromInt32(1) / Float32FromFloat32(1.1920928955078125e-07) + +func Xrintf(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e, s int32 + var y Tfloat_t + var v1 float32 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _ = e, s, y, v1 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + e = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(23) & uint32(0xff)) + s = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(31)) + if e >= Int32FromInt32(0x7f)+Int32FromInt32(23) { + return x + } + if s != 0 { + y = x - _toint5 + _toint5 + } else { + y = x + _toint5 - _toint5 + } + if y == Float32FromInt32(0) { + if s != 0 { + v1 = -Float32FromFloat32(0) + } else { + v1 = Float32FromFloat32(0) + } + return v1 + } + return y +} + +const FLT_EPSILON2 = 0 + +func Xrintl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xrint(tls, x) +} + +const DBL_EPSILON13 = 2.220446049250313e-16 + +var _toint6 = Float64FromInt32(1) / Float64FromFloat64(2.220446049250313e-16) + +func Xround(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e int32 + var y float32 + var y1, y2 float64 + var y3 Tdouble_t + var _ /* u at bp+0 */ struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _ = e, y, y1, y2, y3 + *(*struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + e = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + if e >= Int32FromInt32(0x3ff)+Int32FromInt32(52) { + return x3 + } + if *(*Tuint64_t)(unsafe.Pointer(bp))>>int32(63) != 0 { + x3 = -x3 + } + if e < Int32FromInt32(0x3ff)-Int32FromInt32(1) { + /* raise inexact if x!=0 */ + if uint32(8) == uint32(4) { + y = float32(x3 + _toint6) + } else { + if uint32(8) == uint32(8) { + y1 = x3 + _toint6 + } else { + y2 = float64(x3 + _toint6) + } + } + return float64(Float64FromInt32(0) * *(*float64)(unsafe.Pointer(bp))) + } + y3 = x3 + _toint6 - _toint6 - x3 + if y3 > float64(0.5) { + y3 = y3 + x3 - Float64FromInt32(1) + } else { + if y3 <= -Float64FromFloat64(0.5) { + y3 = y3 + x3 + Float64FromInt32(1) + } else { + y3 = y3 + x3 + } + } + if *(*Tuint64_t)(unsafe.Pointer(bp))>>int32(63) != 0 { + y3 = -y3 + } + return y3 +} + +const DBL_EPSILON14 = 0 +const FLT_EPSILON3 = 1.1920928955078125e-07 + +var _toint7 = Float32FromInt32(1) / Float32FromFloat32(1.1920928955078125e-07) + +func Xroundf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e int32 + var y float32 + var y1, y2 float64 + var y3 Tfloat_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _ = e, y, y1, y2, y3 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + e = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(23) & uint32(0xff)) + if e >= Int32FromInt32(0x7f)+Int32FromInt32(23) { + return x3 + } + if *(*Tuint32_t)(unsafe.Pointer(bp))>>int32(31) != 0 { + x3 = -x3 + } + if e < Int32FromInt32(0x7f)-Int32FromInt32(1) { + if uint32(4) == uint32(4) { + y = x3 + _toint7 + } else { + if uint32(4) == uint32(8) { + y1 = float64(x3 + _toint7) + } else { + y2 = float64(x3 + _toint7) + } + } + return float32(Float32FromInt32(0) * *(*float32)(unsafe.Pointer(bp))) + } + y3 = x3 + _toint7 - _toint7 - x3 + if y3 > Float32FromFloat32(0.5) { + y3 = y3 + x3 - Float32FromInt32(1) + } else { + if y3 <= -Float32FromFloat32(0.5) { + y3 = y3 + x3 + Float32FromInt32(1) + } else { + y3 = y3 + x3 + } + } + if *(*Tuint32_t)(unsafe.Pointer(bp))>>int32(31) != 0 { + y3 = -y3 + } + return y3 +} + +const FLT_EPSILON4 = 0 + +func Xroundl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xround(tls, x) +} + +func Xscalb(tls *TLS, x float64, fn float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v fn=%v, (%v:)", tls, x, fn, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1, v3 uint64 + var v5 bool + var _ /* __u at bp+0 */ struct { + F__ccgo_align [0]uint32 + F__i [0]uint64 + F__f float64 + } + _, _, _ = v1, v3, v5 + *(*float64)(unsafe.Pointer(bp)) = x + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + ; + if v5 = BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) < Uint64FromUint64(0x7ff)< float64(0) { + return float64(x * fn) + } else { + return x / -fn + } + } + if Xrint(tls, fn) != fn { + return (fn - fn) / (fn - fn) + } + if fn > float64(65000) { + return Xscalbn(tls, x, int32(65000)) + } + if -fn > float64(65000) { + return Xscalbn(tls, x, -int32(65000)) + } + return Xscalbn(tls, x, int32(fn)) +} + +func Xscalbf(tls *TLS, x float32, fn float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v fn=%v, (%v:)", tls, x, fn, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1, v3 uint32 + var v5 bool + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _, _, _ = v1, v3, v5 + *(*float32)(unsafe.Pointer(bp)) = x + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + ; + if v5 = BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0; !v5 { + *(*float32)(unsafe.Pointer(bp)) = fn + v3 = *(*uint32)(unsafe.Pointer(bp)) + goto _4 + _4: + } + if v5 || BoolInt32(v3&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return float32(x * fn) + } + *(*float32)(unsafe.Pointer(bp)) = fn + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _7 +_7: + if !(BoolInt32(v1&Uint32FromInt32(0x7fffffff) < Uint32FromInt32(0x7f800000)) != 0) { + if fn > Float32FromFloat32(0) { + return float32(x * fn) + } else { + return x / -fn + } + } + if Xrintf(tls, fn) != fn { + return (fn - fn) / (fn - fn) + } + if fn > Float32FromFloat32(65000) { + return Xscalbnf(tls, x, int32(65000)) + } + if -fn > Float32FromFloat32(65000) { + return Xscalbnf(tls, x, -int32(65000)) + } + return Xscalbnf(tls, x, int32(fn)) +} + +func Xscalbln(tls *TLS, x float64, n int32) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + if n > int32(INT_MAX) { + n = int32(INT_MAX) + } else { + if n < int32(-Int32FromInt32(1)-Int32FromInt32(0x7fffffff)) { + n = int32(-Int32FromInt32(1) - Int32FromInt32(0x7fffffff)) + } + } + return Xscalbn(tls, x, n) +} + +func Xscalblnf(tls *TLS, x float32, n int32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + if n > int32(INT_MAX) { + n = int32(INT_MAX) + } else { + if n < int32(-Int32FromInt32(1)-Int32FromInt32(0x7fffffff)) { + n = int32(-Int32FromInt32(1) - Int32FromInt32(0x7fffffff)) + } + } + return Xscalbnf(tls, x, n) +} + +func Xscalblnl(tls *TLS, x float64, n int32) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xscalbln(tls, x, n) +} + +func Xscalbn(tls *TLS, x float64, n int32) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var y Tdouble_t + var _ /* u at bp+0 */ struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + } + _ = y + y = x + if n > int32(1023) { + y = y * float64(8.98846567431158e+307) + n = n - int32(1023) + if n > int32(1023) { + y = y * float64(8.98846567431158e+307) + n = n - int32(1023) + if n > int32(1023) { + n = int32(1023) + } + } + } else { + if n < -int32(1022) { + /* make sure final n < -53 to avoid double + rounding in the subnormal range */ + y = y * Tdouble_t(Float64FromFloat64(2.2250738585072014e-308)*Float64FromFloat64(9.007199254740992e+15)) + n = n + (Int32FromInt32(1022) - Int32FromInt32(53)) + if n < -int32(1022) { + y = y * Tdouble_t(Float64FromFloat64(2.2250738585072014e-308)*Float64FromFloat64(9.007199254740992e+15)) + n = n + (Int32FromInt32(1022) - Int32FromInt32(53)) + if n < -int32(1022) { + n = -int32(1022) + } + } + } + } + *(*Tuint64_t)(unsafe.Pointer(bp)) = Uint64FromInt32(Int32FromInt32(0x3ff)+n) << int32(52) + x = float64(y * *(*float64)(unsafe.Pointer(bp))) + return x +} + +func Xscalbnf(tls *TLS, x float32, n int32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var y Tfloat_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _ = y + y = x + if n > int32(127) { + y = y * Float32FromFloat32(1.7014118346046923e+38) + n = n - int32(127) + if n > int32(127) { + y = y * Float32FromFloat32(1.7014118346046923e+38) + n = n - int32(127) + if n > int32(127) { + n = int32(127) + } + } + } else { + if n < -int32(126) { + y = y * Tfloat_t(Float32FromFloat32(1.1754943508222875e-38)*Float32FromFloat32(1.6777216e+07)) + n = n + (Int32FromInt32(126) - Int32FromInt32(24)) + if n < -int32(126) { + y = y * Tfloat_t(Float32FromFloat32(1.1754943508222875e-38)*Float32FromFloat32(1.6777216e+07)) + n = n + (Int32FromInt32(126) - Int32FromInt32(24)) + if n < -int32(126) { + n = -int32(126) + } + } + } + } + *(*Tuint32_t)(unsafe.Pointer(bp)) = Uint32FromInt32(Int32FromInt32(0x7f)+n) << int32(23) + x = float32(y * *(*float32)(unsafe.Pointer(bp))) + return x +} + +func Xscalbnl(tls *TLS, x float64, n int32) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xscalbn(tls, x, n) +} + +func Xsignificand(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xscalbn(tls, x, -Xilogb(tls, x)) +} + +func Xsignificandf(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xscalbnf(tls, x, -Xilogbf(tls, x)) +} + +func Xsin(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ix Tuint32_t + var n uint32 + var y float32 + var y1, y2, v1 float64 + var _ /* y at bp+0 */ [2]float64 + _, _, _, _, _, _ = ix, n, y, y1, y2, v1 + /* High word of x. */ + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x3)) >> int32(32)) + ix = ix & uint32(0x7fffffff) + /* |x| ~< pi/4 */ + if ix <= uint32(0x3fe921fb) { + if ix < uint32(0x3e500000) { /* |x| < 2**-26 */ + /* raise inexact if x != 0 and underflow if subnormal*/ + if uint32(8) == uint32(4) { + if ix < uint32(0x00100000) { + v1 = x3 / Float64FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } + y = float32(v1) + } else { + if uint32(8) == uint32(8) { + if ix < uint32(0x00100000) { + v1 = x3 / Float64FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } + y1 = v1 + } else { + if ix < uint32(0x00100000) { + v1 = x3 / Float64FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } + y2 = v1 + } + } + return x3 + } + return X__sin(tls, x3, float64(0), 0) + } + /* sin(Inf or NaN) is NaN */ + if ix >= uint32(0x7ff00000) { + return x3 - x3 + } + /* argument reduction needed */ + n = Uint32FromInt32(X__rem_pio2(tls, x3, bp)) + switch n & Uint32FromInt32(3) { + case uint32(0): + return X__sin(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)], int32(1)) + case uint32(1): + return X__cos(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)]) + case uint32(2): + return -X__sin(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)], int32(1)) + default: + return -X__cos(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)]) + } + return r +} + +func Xsincos(tls *TLS, x3 float64, sin uintptr, cos uintptr) { + if __ccgo_strace { + trc("tls=%v x3=%v sin=%v cos=%v, (%v:)", tls, x3, sin, cos, origin(2)) + } + bp := tls.Alloc(16) + defer tls.Free(16) + var c, s, y1, y2, v1 float64 + var ix Tuint32_t + var n uint32 + var y float32 + var _ /* y at bp+0 */ [2]float64 + _, _, _, _, _, _, _, _ = c, ix, n, s, y, y1, y2, v1 + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x3)) >> int32(32)) + ix = ix & uint32(0x7fffffff) + /* |x| ~< pi/4 */ + if ix <= uint32(0x3fe921fb) { + /* if |x| < 2**-27 * sqrt(2) */ + if ix < uint32(0x3e46a09e) { + /* raise inexact if x!=0 and underflow if subnormal */ + if uint32(8) == uint32(4) { + if ix < uint32(0x00100000) { + v1 = x3 / Float64FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } + y = float32(v1) + } else { + if uint32(8) == uint32(8) { + if ix < uint32(0x00100000) { + v1 = x3 / Float64FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } + y1 = v1 + } else { + if ix < uint32(0x00100000) { + v1 = x3 / Float64FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } + y2 = v1 + } + } + **(**float64)(__ccgo_up(sin)) = x3 + **(**float64)(__ccgo_up(cos)) = float64(1) + return + } + **(**float64)(__ccgo_up(sin)) = X__sin(tls, x3, float64(0), 0) + **(**float64)(__ccgo_up(cos)) = X__cos(tls, x3, float64(0)) + return + } + /* sincos(Inf or NaN) is NaN */ + if ix >= uint32(0x7ff00000) { + v1 = x3 - x3 + **(**float64)(__ccgo_up(cos)) = v1 + **(**float64)(__ccgo_up(sin)) = v1 + return + } + /* argument reduction needed */ + n = Uint32FromInt32(X__rem_pio2(tls, x3, bp)) + s = X__sin(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)], int32(1)) + c = X__cos(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)]) + switch n & Uint32FromInt32(3) { + case uint32(0): + **(**float64)(__ccgo_up(sin)) = s + **(**float64)(__ccgo_up(cos)) = c + case uint32(1): + **(**float64)(__ccgo_up(sin)) = c + **(**float64)(__ccgo_up(cos)) = -s + case uint32(2): + **(**float64)(__ccgo_up(sin)) = -s + **(**float64)(__ccgo_up(cos)) = -c + case uint32(3): + fallthrough + default: + **(**float64)(__ccgo_up(sin)) = -c + **(**float64)(__ccgo_up(cos)) = s + break + } +} + +const M_PI_25 = 1.5707963267948966 + +// C documentation +// +// /* Small multiples of pi/2 rounded to double precision. */ + +var _s1pio2 = float64(Float64FromInt32(1) * Float64FromFloat64(1.5707963267948966)) /* 0x3FF921FB, 0x54442D18 */ +var _s2pio2 = float64(Float64FromInt32(2) * Float64FromFloat64(1.5707963267948966)) /* 0x400921FB, 0x54442D18 */ +var _s3pio2 = float64(Float64FromInt32(3) * Float64FromFloat64(1.5707963267948966)) /* 0x4012D97C, 0x7F3321D2 */ +var _s4pio2 = float64(Float64FromInt32(4) * Float64FromFloat64(1.5707963267948966)) /* 0x401921FB, 0x54442D18 */ + +func Xsincosf(tls *TLS, x3 float32, sin uintptr, cos uintptr) { + if __ccgo_strace { + trc("tls=%v x3=%v sin=%v cos=%v, (%v:)", tls, x3, sin, cos, origin(2)) + } + bp := tls.Alloc(16) + defer tls.Free(16) + var c, s Tfloat_t + var ix Tuint32_t + var n, sign uint32 + var y, v1 float32 + var y1, y2, v4 float64 + var _ /* y at bp+0 */ float64 + _, _, _, _, _, _, _, _, _, _ = c, ix, n, s, sign, y, y1, y2, v1, v4 + ix = *(*Tuint32_t)(unsafe.Pointer(&x3)) + sign = ix >> int32(31) + ix = ix & uint32(0x7fffffff) + /* |x| ~<= pi/4 */ + if ix <= uint32(0x3f490fda) { + /* |x| < 2**-12 */ + if ix < uint32(0x39800000) { + /* raise inexact if x!=0 and underflow if subnormal */ + if uint32(4) == uint32(4) { + if ix < uint32(0x00100000) { + v1 = x3 / Float32FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float32FromFloat32(1.329227995784916e+36) + } + y = v1 + } else { + if uint32(4) == uint32(8) { + if ix < uint32(0x00100000) { + v1 = x3 / Float32FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float32FromFloat32(1.329227995784916e+36) + } + y1 = float64(v1) + } else { + if ix < uint32(0x00100000) { + v1 = x3 / Float32FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float32FromFloat32(1.329227995784916e+36) + } + y2 = float64(v1) + } + } + **(**float32)(__ccgo_up(sin)) = x3 + **(**float32)(__ccgo_up(cos)) = Float32FromFloat32(1) + return + } + **(**float32)(__ccgo_up(sin)) = X__sindf(tls, float64(x3)) + **(**float32)(__ccgo_up(cos)) = X__cosdf(tls, float64(x3)) + return + } + /* |x| ~<= 5*pi/4 */ + if ix <= uint32(0x407b53d1) { + if ix <= uint32(0x4016cbe3) { /* |x| ~<= 3pi/4 */ + if sign != 0 { + **(**float32)(__ccgo_up(sin)) = -X__cosdf(tls, float64(x3)+_s1pio2) + **(**float32)(__ccgo_up(cos)) = X__sindf(tls, float64(x3)+_s1pio2) + } else { + **(**float32)(__ccgo_up(sin)) = X__cosdf(tls, _s1pio2-float64(x3)) + **(**float32)(__ccgo_up(cos)) = X__sindf(tls, _s1pio2-float64(x3)) + } + return + } + /* -sin(x+c) is not correct if x+c could be 0: -0 vs +0 */ + if sign != 0 { + v4 = float64(x3) + _s2pio2 + } else { + v4 = float64(x3) - _s2pio2 + } + **(**float32)(__ccgo_up(sin)) = -X__sindf(tls, v4) + if sign != 0 { + v4 = float64(x3) + _s2pio2 + } else { + v4 = float64(x3) - _s2pio2 + } + **(**float32)(__ccgo_up(cos)) = -X__cosdf(tls, v4) + return + } + /* |x| ~<= 9*pi/4 */ + if ix <= uint32(0x40e231d5) { + if ix <= uint32(0x40afeddf) { /* |x| ~<= 7*pi/4 */ + if sign != 0 { + **(**float32)(__ccgo_up(sin)) = X__cosdf(tls, float64(x3)+_s3pio2) + **(**float32)(__ccgo_up(cos)) = -X__sindf(tls, float64(x3)+_s3pio2) + } else { + **(**float32)(__ccgo_up(sin)) = -X__cosdf(tls, float64(x3)-_s3pio2) + **(**float32)(__ccgo_up(cos)) = X__sindf(tls, float64(x3)-_s3pio2) + } + return + } + if sign != 0 { + v4 = float64(x3) + _s4pio2 + } else { + v4 = float64(x3) - _s4pio2 + } + **(**float32)(__ccgo_up(sin)) = X__sindf(tls, v4) + if sign != 0 { + v4 = float64(x3) + _s4pio2 + } else { + v4 = float64(x3) - _s4pio2 + } + **(**float32)(__ccgo_up(cos)) = X__cosdf(tls, v4) + return + } + /* sin(Inf or NaN) is NaN */ + if ix >= uint32(0x7f800000) { + v1 = x3 - x3 + **(**float32)(__ccgo_up(cos)) = v1 + **(**float32)(__ccgo_up(sin)) = v1 + return + } + /* general argument reduction needed */ + n = Uint32FromInt32(X__rem_pio2f(tls, x3, bp)) + s = X__sindf(tls, **(**float64)(__ccgo_up(bp))) + c = X__cosdf(tls, **(**float64)(__ccgo_up(bp))) + switch n & Uint32FromInt32(3) { + case uint32(0): + **(**float32)(__ccgo_up(sin)) = s + **(**float32)(__ccgo_up(cos)) = c + case uint32(1): + **(**float32)(__ccgo_up(sin)) = c + **(**float32)(__ccgo_up(cos)) = -s + case uint32(2): + **(**float32)(__ccgo_up(sin)) = -s + **(**float32)(__ccgo_up(cos)) = -c + case uint32(3): + fallthrough + default: + **(**float32)(__ccgo_up(sin)) = -c + **(**float32)(__ccgo_up(cos)) = s + break + } +} + +const M_PI_26 = 0 + +func Xsincosl(tls *TLS, x float64, sin uintptr, cos uintptr) { + if __ccgo_strace { + trc("tls=%v x=%v sin=%v cos=%v, (%v:)", tls, x, sin, cos, origin(2)) + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* cosd at bp+8 */ float64 + var _ /* sind at bp+0 */ float64 + Xsincos(tls, x, bp, bp+8) + **(**float64)(__ccgo_up(sin)) = float64(**(**float64)(__ccgo_up(bp))) + **(**float64)(__ccgo_up(cos)) = float64(**(**float64)(__ccgo_up(bp + 8))) +} + +const M_PI_27 = 1.5707963267948966 + +// C documentation +// +// /* Small multiples of pi/2 rounded to double precision. */ + +var _s1pio21 = float64(Float64FromInt32(1) * Float64FromFloat64(1.5707963267948966)) /* 0x3FF921FB, 0x54442D18 */ +var _s2pio21 = float64(Float64FromInt32(2) * Float64FromFloat64(1.5707963267948966)) /* 0x400921FB, 0x54442D18 */ +var _s3pio21 = float64(Float64FromInt32(3) * Float64FromFloat64(1.5707963267948966)) /* 0x4012D97C, 0x7F3321D2 */ +var _s4pio21 = float64(Float64FromInt32(4) * Float64FromFloat64(1.5707963267948966)) /* 0x401921FB, 0x54442D18 */ + +func Xsinf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ix Tuint32_t + var n, sign int32 + var y, v1 float32 + var y1, y2, v4 float64 + var _ /* y at bp+0 */ float64 + _, _, _, _, _, _, _, _ = ix, n, sign, y, y1, y2, v1, v4 + ix = *(*Tuint32_t)(unsafe.Pointer(&x3)) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix <= uint32(0x3f490fda) { /* |x| ~<= pi/4 */ + if ix < uint32(0x39800000) { /* |x| < 2**-12 */ + /* raise inexact if x!=0 and underflow if subnormal */ + if uint32(4) == uint32(4) { + if ix < uint32(0x00800000) { + v1 = x3 / Float32FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float32FromFloat32(1.329227995784916e+36) + } + y = v1 + } else { + if uint32(4) == uint32(8) { + if ix < uint32(0x00800000) { + v1 = x3 / Float32FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float32FromFloat32(1.329227995784916e+36) + } + y1 = float64(v1) + } else { + if ix < uint32(0x00800000) { + v1 = x3 / Float32FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float32FromFloat32(1.329227995784916e+36) + } + y2 = float64(v1) + } + } + return x3 + } + return X__sindf(tls, float64(x3)) + } + if ix <= uint32(0x407b53d1) { /* |x| ~<= 5*pi/4 */ + if ix <= uint32(0x4016cbe3) { /* |x| ~<= 3pi/4 */ + if sign != 0 { + return -X__cosdf(tls, float64(x3)+_s1pio21) + } else { + return X__cosdf(tls, float64(x3)-_s1pio21) + } + } + if sign != 0 { + v4 = -(float64(x3) + _s2pio21) + } else { + v4 = -(float64(x3) - _s2pio21) + } + return X__sindf(tls, v4) + } + if ix <= uint32(0x40e231d5) { /* |x| ~<= 9*pi/4 */ + if ix <= uint32(0x40afeddf) { /* |x| ~<= 7*pi/4 */ + if sign != 0 { + return X__cosdf(tls, float64(x3)+_s3pio21) + } else { + return -X__cosdf(tls, float64(x3)-_s3pio21) + } + } + if sign != 0 { + v4 = float64(x3) + _s4pio21 + } else { + v4 = float64(x3) - _s4pio21 + } + return X__sindf(tls, v4) + } + /* sin(Inf or NaN) is NaN */ + if ix >= uint32(0x7f800000) { + return x3 - x3 + } + /* general argument reduction needed */ + n = X__rem_pio2f(tls, x3, bp) + switch n & Int32FromInt32(3) { + case 0: + return X__sindf(tls, **(**float64)(__ccgo_up(bp))) + case int32(1): + return X__cosdf(tls, **(**float64)(__ccgo_up(bp))) + case int32(2): + return X__sindf(tls, -**(**float64)(__ccgo_up(bp))) + default: + return -X__cosdf(tls, **(**float64)(__ccgo_up(bp))) + } + return r +} + +const M_PI_28 = 0 + +// C documentation +// +// /* sinh(x) = (exp(x) - 1/exp(x))/2 +// * = (exp(x)-1 + (exp(x)-1)/exp(x))/2 +// * = x + x^3/6 + o(x^5) +// */ +func Xsinh(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var absx, h, t float64 + var w Tuint32_t + var _ /* u at bp+0 */ struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _ = absx, h, t, w + *(*struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + h = float64(0.5) + if *(*Tuint64_t)(unsafe.Pointer(bp))>>int32(63) != 0 { + h = -h + } + /* |x| */ + *(*Tuint64_t)(unsafe.Pointer(bp)) &= Uint64FromInt32(-Int32FromInt32(1)) / Uint64FromInt32(2) + absx = *(*float64)(unsafe.Pointer(bp)) + w = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32)) + /* |x| < log(DBL_MAX) */ + if w < uint32(0x40862e42) { + t = Xexpm1(tls, absx) + if w < uint32(0x3ff00000) { + if w < Uint32FromInt32(Int32FromInt32(0x3ff00000)-Int32FromInt32(26)<log(0x1p26)+eps could be just h*exp(x) */ + return float64(h * (t + t/(t+Float64FromInt32(1)))) + } + /* |x| > log(DBL_MAX) or nan */ + /* note: the result is stored to handle overflow */ + t = X__expo2(tls, absx, float64(Float64FromInt32(2)*h)) + return t +} + +func Xsinhf(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var absx, h, t float32 + var w Tuint32_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _ = absx, h, t, w + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + h = float32(0.5) + if *(*Tuint32_t)(unsafe.Pointer(bp))>>int32(31) != 0 { + h = -h + } + /* |x| */ + *(*Tuint32_t)(unsafe.Pointer(bp)) &= uint32(0x7fffffff) + absx = *(*float32)(unsafe.Pointer(bp)) + w = *(*Tuint32_t)(unsafe.Pointer(bp)) + /* |x| < log(FLT_MAX) */ + if w < uint32(0x42b17217) { + t = Xexpm1f(tls, absx) + if w < uint32(0x3f800000) { + if w < Uint32FromInt32(Int32FromInt32(0x3f800000)-Int32FromInt32(12)< logf(FLT_MAX) or nan */ + t = X__expo2f(tls, absx, float32(Float32FromInt32(2)*h)) + return t +} + +func Xsinhl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xsinh(tls, x) +} + +func Xsinl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xsin(tls, x) +} + +const FENV_SUPPORT = 1 + +// C documentation +// +// /* returns a*b*2^-32 - e, with error 0 <= e < 1. */ +func _mul32(tls *TLS, a Tuint32_t, b Tuint32_t) (r Tuint32_t) { + return uint32(uint64(a) * uint64(b) >> int32(32)) +} + +// C documentation +// +// /* returns a*b*2^-64 - e, with error 0 <= e < 3. */ +func _mul64(tls *TLS, a Tuint64_t, b Tuint64_t) (r Tuint64_t) { + var ahi, alo, bhi, blo Tuint64_t + _, _, _, _ = ahi, alo, bhi, blo + ahi = a >> int32(32) + alo = a & uint64(0xffffffff) + bhi = b >> int32(32) + blo = b & uint64(0xffffffff) + return ahi*bhi + ahi*blo>>int32(32) + alo*bhi>>int32(32) +} + +func Xsqrt(tls *TLS, x1 float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x1=%v, (%v:)", tls, x1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var d, d0, d1, d2, i, ix, m, r, s, tiny, top, u Tuint64_t + var even int32 + var t, y, y1, v1 float64 + var v2 int64 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = d, d0, d1, d2, even, i, ix, m, r, s, t, tiny, top, u, y, y1, v1, v2 + /* special case handling. */ + ix = *(*Tuint64_t)(unsafe.Pointer(&x1)) + top = ix >> int32(52) + if top-uint64(0x001) >= Uint64FromInt32(Int32FromInt32(0x7ff)-Int32FromInt32(0x001)) { + /* x < 0x1p-1022 or inf or nan. */ + if ix*uint64(2) == uint64(0) { + return x1 + } + if ix == uint64(0x7ff0000000000000) { + return x1 + } + if ix > uint64(0x7ff0000000000000) { + return X__math_invalid(tls, x1) + } + /* x is subnormal, normalize it. */ + v1 = float64(x1 * float64(4.503599627370496e+15)) + ix = *(*Tuint64_t)(unsafe.Pointer(&v1)) + top = ix >> int32(52) + top = top - uint64(52) + } + /* argument reduction: + x = 4^e m; with integer e, and m in [1, 4) + m: fixed point representation [2.62] + 2^e is the exponent part of the result. */ + even = Int32FromUint64(top & uint64(1)) + m = ix<> uint64(1) + } + top = (top + uint64(0x3ff)) >> int32(1) + i = ix >> Int32FromInt32(46) % uint64(128) + r = uint64(uint32(X__rsqrt_tab[i]) << int32(16)) + /* |r sqrt(m) - 1| < 0x1.fdp-9 */ + s = uint64(_mul32(tls, uint32(m>>int32(32)), uint32(r))) + /* |s/sqrt(m) - 1| < 0x1.fdp-9 */ + d = uint64(_mul32(tls, uint32(s), uint32(r))) + u = _three - d + r = uint64(_mul32(tls, uint32(r), uint32(u)) << int32(1)) + /* |r sqrt(m) - 1| < 0x1.7bp-16 */ + s = uint64(_mul32(tls, uint32(s), uint32(u)) << int32(1)) + /* |s/sqrt(m) - 1| < 0x1.7bp-16 */ + d = uint64(_mul32(tls, uint32(s), uint32(r))) + u = _three - d + r = uint64(_mul32(tls, uint32(r), uint32(u)) << int32(1)) + /* |r sqrt(m) - 1| < 0x1.3704p-29 (measured worst-case) */ + r = r << int32(32) + s = _mul64(tls, m, r) + d = _mul64(tls, s, r) + u = _three<> int32(9) + d0 = m<>int32(63) + s = s & uint64(0x000fffffffffffff) + s = s | top<=13bit table would be needed (16k). + + a newton-raphson iteration for r is + w = r*r + u = 3 - m*w + r = r*u/2 + can use a goldschmidt iteration for s at the end or + s = m*r + + first goldschmidt iteration is + s = m*r + u = 3 - s*r + r = r*u/2 + s = s*u/2 + next goldschmidt iteration is + u = 3 - s*r + r = r*u/2 + s = s*u/2 + and at the end r is not computed only s. + + they use the same amount of operations and converge at the + same quadratic rate, i.e. if + r1 sqrt(m) - 1 = e, then + r2 sqrt(m) - 1 = -3/2 e^2 - 1/2 e^3 + the advantage of goldschmidt is that the mul for s and r + are independent (computed in parallel), however it is not + "self synchronizing": it only uses the input m in the + first iteration so rounding errors accumulate. at the end + or when switching to larger precision arithmetics rounding + errors dominate so the first iteration should be used. + + the fixed point representations are + m: 2.30 r: 0.32, s: 2.30, d: 2.30, u: 2.30, three: 2.30 + and after switching to 64 bit + m: 2.62 r: 0.64, s: 2.62, d: 2.62, u: 2.62, three: 2.62 */ + +var _three = uint64(0xc0000000) + +func _mul321(tls *TLS, a Tuint32_t, b Tuint32_t) (r Tuint32_t) { + return uint32(uint64(a) * uint64(b) >> int32(32)) +} + +/* see sqrt.c for more detailed comments. */ + +func Xsqrtf(tls *TLS, x1 float32) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x1=%v, (%v:)", tls, x1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var d, d0, d1, d2, even, ey, i, ix, m, m0, m1, r, s, tiny, u Tuint32_t + var t, y, y1, v1 float32 + var v2 uint32 + var v3 int32 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = d, d0, d1, d2, even, ey, i, ix, m, m0, m1, r, s, t, tiny, u, y, y1, v1, v2, v3 + ix = *(*Tuint32_t)(unsafe.Pointer(&x1)) + if ix-uint32(0x00800000) >= Uint32FromInt32(Int32FromInt32(0x7f800000)-Int32FromInt32(0x00800000)) { + /* x < 0x1p-126 or inf or nan. */ + if ix*uint32(2) == uint32(0) { + return x1 + } + if ix == uint32(0x7f800000) { + return x1 + } + if ix > uint32(0x7f800000) { + return X__math_invalidf(tls, x1) + } + /* x is subnormal, normalize it. */ + v1 = float32(x1 * Float32FromFloat32(8.388608e+06)) + ix = *(*Tuint32_t)(unsafe.Pointer(&v1)) + ix = ix - Uint32FromInt32(Int32FromInt32(23)<> int32(1) + ey = ey + Uint32FromInt32(Int32FromInt32(0x3f800000)>>Int32FromInt32(1)) + ey = ey & uint32(0x7f800000) + i = ix >> Int32FromInt32(17) % uint32(128) + r = uint32(X__rsqrt_tab[i]) << int32(16) + /* |r*sqrt(m) - 1| < 0x1p-8 */ + s = _mul321(tls, m, r) + /* |s/sqrt(m) - 1| < 0x1p-8 */ + d = _mul321(tls, s, r) + u = _three1 - d + r = _mul321(tls, r, u) << int32(1) + /* |r*sqrt(m) - 1| < 0x1.7bp-16 */ + s = _mul321(tls, s, u) << int32(1) + /* |s/sqrt(m) - 1| < 0x1.7bp-16 */ + d = _mul321(tls, s, r) + u = _three1 - d + s = _mul321(tls, s, u) + /* -0x1.03p-28 < s/sqrt(m) - 1 < 0x1.fp-31 */ + s = (s - uint32(1)) >> int32(6) + d0 = m<>int32(31) + s = s & uint32(0x007fffff) + s = s | ey + y1 = *(*float32)(unsafe.Pointer(&s)) + if int32(FENV_SUPPORT) != 0 { + if d2 == uint32(0) { + v3 = 0 + } else { + v3 = int32(0x01000000) + } + /* handle rounding and inexact exception. */ + tiny = Uint32FromInt32(v3) + tiny = tiny | (d1^d2)&uint32(0x80000000) + t = *(*float32)(unsafe.Pointer(&tiny)) + y = y1 + t + v1 = y + goto _5 + _5: + y1 = v1 + } + return y1 +} + +/* compute r ~ 1/sqrt(m), s ~ sqrt(m) with 2 goldschmidt iterations. */ +var _three1 = uint32(0xc0000000) + +func Xsqrtl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xsqrt(tls, x) +} + +func Xtan(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ix Tuint32_t + var n uint32 + var y float32 + var y1, y2, v1 float64 + var _ /* y at bp+0 */ [2]float64 + _, _, _, _, _, _ = ix, n, y, y1, y2, v1 + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x3)) >> int32(32)) + ix = ix & uint32(0x7fffffff) + /* |x| ~< pi/4 */ + if ix <= uint32(0x3fe921fb) { + if ix < uint32(0x3e400000) { /* |x| < 2**-27 */ + /* raise inexact if x!=0 and underflow if subnormal */ + if uint32(8) == uint32(4) { + if ix < uint32(0x00100000) { + v1 = x3 / Float64FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } + y = float32(v1) + } else { + if uint32(8) == uint32(8) { + if ix < uint32(0x00100000) { + v1 = x3 / Float64FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } + y1 = v1 + } else { + if ix < uint32(0x00100000) { + v1 = x3 / Float64FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } + y2 = v1 + } + } + return x3 + } + return X__tan(tls, x3, float64(0), 0) + } + /* tan(Inf or NaN) is NaN */ + if ix >= uint32(0x7ff00000) { + return x3 - x3 + } + /* argument reduction */ + n = Uint32FromInt32(X__rem_pio2(tls, x3, bp)) + return X__tan(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)], Int32FromUint32(n&uint32(1))) +} + +const M_PI_29 = 1.5707963267948966 + +// C documentation +// +// /* Small multiples of pi/2 rounded to double precision. */ + +var _t1pio2 = float64(Float64FromInt32(1) * Float64FromFloat64(1.5707963267948966)) /* 0x3FF921FB, 0x54442D18 */ +var _t2pio2 = float64(Float64FromInt32(2) * Float64FromFloat64(1.5707963267948966)) /* 0x400921FB, 0x54442D18 */ +var _t3pio2 = float64(Float64FromInt32(3) * Float64FromFloat64(1.5707963267948966)) /* 0x4012D97C, 0x7F3321D2 */ +var _t4pio2 = float64(Float64FromInt32(4) * Float64FromFloat64(1.5707963267948966)) /* 0x401921FB, 0x54442D18 */ + +func Xtanf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ix Tuint32_t + var n, sign uint32 + var y, v1 float32 + var y1, y2, v4 float64 + var _ /* y at bp+0 */ float64 + _, _, _, _, _, _, _, _ = ix, n, sign, y, y1, y2, v1, v4 + ix = *(*Tuint32_t)(unsafe.Pointer(&x3)) + sign = ix >> int32(31) + ix = ix & uint32(0x7fffffff) + if ix <= uint32(0x3f490fda) { /* |x| ~<= pi/4 */ + if ix < uint32(0x39800000) { /* |x| < 2**-12 */ + /* raise inexact if x!=0 and underflow if subnormal */ + if uint32(4) == uint32(4) { + if ix < uint32(0x00800000) { + v1 = x3 / Float32FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float32FromFloat32(1.329227995784916e+36) + } + y = v1 + } else { + if uint32(4) == uint32(8) { + if ix < uint32(0x00800000) { + v1 = x3 / Float32FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float32FromFloat32(1.329227995784916e+36) + } + y1 = float64(v1) + } else { + if ix < uint32(0x00800000) { + v1 = x3 / Float32FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float32FromFloat32(1.329227995784916e+36) + } + y2 = float64(v1) + } + } + return x3 + } + return X__tandf(tls, float64(x3), 0) + } + if ix <= uint32(0x407b53d1) { /* |x| ~<= 5*pi/4 */ + if ix <= uint32(0x4016cbe3) { /* |x| ~<= 3pi/4 */ + if sign != 0 { + v4 = float64(x3) + _t1pio2 + } else { + v4 = float64(x3) - _t1pio2 + } + return X__tandf(tls, v4, int32(1)) + } else { + if sign != 0 { + v4 = float64(x3) + _t2pio2 + } else { + v4 = float64(x3) - _t2pio2 + } + return X__tandf(tls, v4, 0) + } + } + if ix <= uint32(0x40e231d5) { /* |x| ~<= 9*pi/4 */ + if ix <= uint32(0x40afeddf) { /* |x| ~<= 7*pi/4 */ + if sign != 0 { + v4 = float64(x3) + _t3pio2 + } else { + v4 = float64(x3) - _t3pio2 + } + return X__tandf(tls, v4, int32(1)) + } else { + if sign != 0 { + v4 = float64(x3) + _t4pio2 + } else { + v4 = float64(x3) - _t4pio2 + } + return X__tandf(tls, v4, 0) + } + } + /* tan(Inf or NaN) is NaN */ + if ix >= uint32(0x7f800000) { + return x3 - x3 + } + /* argument reduction */ + n = Uint32FromInt32(X__rem_pio2f(tls, x3, bp)) + return X__tandf(tls, **(**float64)(__ccgo_up(bp)), Int32FromUint32(n&uint32(1))) +} + +const M_PI_210 = 0 + +// C documentation +// +// /* tanh(x) = (exp(x) - exp(-x))/(exp(x) + exp(-x)) +// * = (exp(2*x) - 1)/(exp(2*x) - 1 + 2) +// * = (1 - exp(-2*x))/(exp(-2*x) - 1 + 2) +// */ +func Xtanh(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var sign int32 + var t, v1 Tdouble_t + var w Tuint32_t + var y float32 + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _ = sign, t, w, y, y1, y2, v1 + *(*struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + /* x = |x| */ + sign = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(63)) + *(*Tuint64_t)(unsafe.Pointer(bp)) &= Uint64FromInt32(-Int32FromInt32(1)) / Uint64FromInt32(2) + x3 = *(*float64)(unsafe.Pointer(bp)) + w = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32)) + if w > uint32(0x3fe193ea) { + /* |x| > log(3)/2 ~= 0.5493 or nan */ + if w > uint32(0x40340000) { + /* |x| > 20 or nan */ + /* note: this branch avoids raising overflow */ + t = Float64FromInt32(1) - Float64FromInt32(0)/x3 + } else { + t = Xexpm1(tls, float64(Float64FromInt32(2)*x3)) + t = Float64FromInt32(1) - Float64FromInt32(2)/(t+Float64FromInt32(2)) + } + } else { + if w > uint32(0x3fd058ae) { + /* |x| > log(5/3)/2 ~= 0.2554 */ + t = Xexpm1(tls, float64(Float64FromInt32(2)*x3)) + t = t / (t + Float64FromInt32(2)) + } else { + if w >= uint32(0x00100000) { + /* |x| >= 0x1p-1022, up to 2ulp error in [0.1,0.2554] */ + t = Xexpm1(tls, float64(float64(-Int32FromInt32(2))*x3)) + t = -t / (t + Float64FromInt32(2)) + } else { + /* |x| is subnormal */ + /* note: the branch above would not raise underflow in [0x1p-1023,0x1p-1022) */ + if uint32(4) == uint32(4) { + y = float32(x3) + } else { + if uint32(4) == uint32(8) { + y1 = float64(float32(x3)) + } else { + y2 = float64(float32(x3)) + } + } + t = x3 + } + } + } + if sign != 0 { + v1 = -t + } else { + v1 = t + } + return v1 +} + +func Xtanhf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var sign int32 + var t, y, v1 float32 + var w Tuint32_t + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _, _ = sign, t, w, y, y1, y2, v1 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + /* x = |x| */ + sign = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(31)) + *(*Tuint32_t)(unsafe.Pointer(bp)) &= uint32(0x7fffffff) + x3 = *(*float32)(unsafe.Pointer(bp)) + w = *(*Tuint32_t)(unsafe.Pointer(bp)) + if w > uint32(0x3f0c9f54) { + /* |x| > log(3)/2 ~= 0.5493 or nan */ + if w > uint32(0x41200000) { + /* |x| > 10 */ + t = Float32FromInt32(1) + Float32FromInt32(0)/x3 + } else { + t = Xexpm1f(tls, float32(Float32FromInt32(2)*x3)) + t = Float32FromInt32(1) - Float32FromInt32(2)/(t+Float32FromInt32(2)) + } + } else { + if w > uint32(0x3e82c578) { + /* |x| > log(5/3)/2 ~= 0.2554 */ + t = Xexpm1f(tls, float32(Float32FromInt32(2)*x3)) + t = t / (t + Float32FromInt32(2)) + } else { + if w >= uint32(0x00800000) { + /* |x| >= 0x1p-126 */ + t = Xexpm1f(tls, float32(float32(-Int32FromInt32(2))*x3)) + t = -t / (t + Float32FromInt32(2)) + } else { + /* |x| is subnormal */ + if uint32(4) == uint32(4) { + y = float32(x3 * x3) + } else { + if uint32(4) == uint32(8) { + y1 = float64(x3 * x3) + } else { + y2 = float64(x3 * x3) + } + } + t = x3 + } + } + } + if sign != 0 { + v1 = -t + } else { + v1 = t + } + return v1 +} + +func Xtanhl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xtanh(tls, x) +} + +func Xtanl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xtan(tls, x) +} + +const N10 = 12 + +var _pi4 = float64(3.141592653589793) + +// C documentation +// +// /* sin(pi x) with x > 0x1p-100, if sin(pi*x)==0 the sign is arbitrary */ +func _sinpi(tls *TLS, x float64) (r float64) { + var n int32 + _ = n + /* argument reduction: x = |x| mod 2 */ + /* spurious inexact when x is odd int */ + x = float64(x * float64(0.5)) + x = float64(Float64FromInt32(2) * (x - Xfloor(tls, x))) + /* reduce x into [-.25,.25] */ + n = int32(Float64FromInt32(4) * x) + n = (n + int32(1)) / int32(2) + x = x - float64(float64(n)*float64(0.5)) + x = x * _pi4 + switch n { + default: /* case 4 */ + fallthrough + case 0: + return X__sin(tls, x, Float64FromInt32(0), 0) + case int32(1): + return X__cos(tls, x, Float64FromInt32(0)) + case int32(2): + return X__sin(tls, -x, Float64FromInt32(0), 0) + case int32(3): + return -X__cos(tls, x, Float64FromInt32(0)) + } + return r +} + +// C documentation +// +// //static const double g = 6.024680040776729583740234375; +var _gmhalf = float64(5.52468004077673) +var _Snum = [13]float64{ + 0: float64(2.353137688041076e+10), + 1: float64(4.29198036426491e+10), + 2: float64(3.571195923735567e+10), + 3: float64(1.792103442603721e+10), + 4: float64(6.039542586352028e+09), + 5: float64(1.4397204073117216e+09), + 6: float64(2.4887455786205417e+08), + 7: float64(3.1426415585400194e+07), + 8: float64(2.8763706289353725e+06), + 9: float64(186056.26539522348), + 10: float64(8071.672002365816), + 11: float64(210.82427775157936), + 12: float64(2.5066282746310002), +} +var _Sden = [13]float64{ + 1: Float64FromInt32(39916800), + 2: Float64FromInt32(120543840), + 3: Float64FromInt32(150917976), + 4: Float64FromInt32(105258076), + 5: Float64FromInt32(45995730), + 6: Float64FromInt32(13339535), + 7: Float64FromInt32(2637558), + 8: Float64FromInt32(357423), + 9: Float64FromInt32(32670), + 10: Float64FromInt32(1925), + 11: Float64FromInt32(66), + 12: Float64FromInt32(1), +} + +// C documentation +// +// /* n! for small integer n */ +var _fact = [23]float64{ + 0: Float64FromInt32(1), + 1: Float64FromInt32(1), + 2: Float64FromInt32(2), + 3: Float64FromInt32(6), + 4: Float64FromInt32(24), + 5: Float64FromInt32(120), + 6: Float64FromInt32(720), + 7: float64(5040), + 8: float64(40320), + 9: float64(362880), + 10: float64(3.6288e+06), + 11: float64(3.99168e+07), + 12: float64(4.790016e+08), + 13: float64(6.2270208e+09), + 14: float64(8.71782912e+10), + 15: float64(1.307674368e+12), + 16: float64(2.0922789888e+13), + 17: float64(3.55687428096e+14), + 18: float64(6.402373705728e+15), + 19: float64(1.21645100408832e+17), + 20: float64(2.43290200817664e+18), + 21: float64(5.109094217170944e+19), + 22: float64(1.1240007277776077e+21), +} + +// C documentation +// +// /* S(x) rational function for positive x */ +func _S(tls *TLS, x float64) (r float64) { + var den, num Tdouble_t + var i int32 + _, _, _ = den, i, num + num = Float64FromInt32(0) + den = Float64FromInt32(0) + /* to avoid overflow handle large x differently */ + if x < Float64FromInt32(8) { + i = int32(N10) + for { + if !(i >= 0) { + break + } + num = Tdouble_t(num*x) + _Snum[i] + den = Tdouble_t(den*x) + _Sden[i] + goto _1 + _1: + ; + i = i - 1 + } + } else { + i = 0 + for { + if !(i <= int32(N10)) { + break + } + num = num/x + _Snum[i] + den = den/x + _Sden[i] + goto _2 + _2: + ; + i = i + 1 + } + } + return num / den +} + +func Xtgamma(tls *TLS, x3 float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var absx, y1, y2, y3, v1 float64 + var dy, r, z Tdouble_t + var ix Tuint32_t + var sign int32 + var y float32 + var _ /* u at bp+0 */ struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _, _, _, _, _ = absx, dy, ix, r, sign, y, y1, y2, y3, z, v1 + *(*struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32) & uint64(0x7fffffff)) + sign = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(63)) + /* special cases */ + if ix >= uint32(0x7ff00000) { + /* tgamma(nan)=nan, tgamma(inf)=inf, tgamma(-inf)=nan with invalid */ + return x3 + float64(X__builtin_inff(tls)) + } + if ix < Uint32FromInt32((Int32FromInt32(0x3ff)-Int32FromInt32(54))<= 172: tgamma(x)=inf with overflow */ + /* x =< -184: tgamma(x)=+-0 with underflow */ + if ix >= uint32(0x40670000) { /* |x| >= 184 */ + if sign != 0 { + if uint32(4) == uint32(4) { + y = float32(Float64FromFloat64(1.1754943508222875e-38) / x3) + } else { + if uint32(4) == uint32(8) { + y1 = float64(float32(Float64FromFloat64(1.1754943508222875e-38) / x3)) + } else { + y2 = float64(float32(Float64FromFloat64(1.1754943508222875e-38) / x3)) + } + } + if float64(Xfloor(tls, x3)*float64(0.5)) == Xfloor(tls, float64(x3*float64(0.5))) { + return Float64FromInt32(0) + } + return -Float64FromFloat64(0) + } + x3 = x3 * float64(8.98846567431158e+307) + return x3 + } + if sign != 0 { + v1 = -x3 + } else { + v1 = x3 + } + absx = v1 + /* handle the error of x + g - 0.5 */ + y3 = absx + _gmhalf + if absx > _gmhalf { + dy = y3 - absx + dy = dy - _gmhalf + } else { + dy = y3 - _gmhalf + dy = dy - absx + } + z = absx - float64(0.5) + r = Tdouble_t(_S(tls, absx) * Xexp(tls, -y3)) + if x3 < Float64FromInt32(0) { + /* reflection formula for negative x */ + /* sinpi(absx) is not 0, integers are already handled */ + r = -_pi4 / float64(float64(_sinpi(tls, absx)*absx)*r) + dy = -dy + z = -z + } + r = r + Tdouble_t(Tdouble_t(dy*(_gmhalf+Float64FromFloat64(0.5)))*r)/y3 + z = Xpow(tls, y3, float64(float64(0.5)*z)) + y3 = float64(Tdouble_t(r*z) * z) + return y3 +} + +func Xtgammaf(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return float32(Xtgamma(tls, float64(x))) +} + +func Xtgammal(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xtgamma(tls, x) +} + +func Xtrunc(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e int32 + var m Tuint64_t + var y float32 + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _ = e, m, y, y1, y2 + *(*struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + F__ccgo_align [0]uint32 + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + e = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp))>>Int32FromInt32(52)&Uint64FromInt32(0x7ff)) - int32(0x3ff) + int32(12) + if e >= Int32FromInt32(52)+Int32FromInt32(12) { + return x3 + } + if e < int32(12) { + e = int32(1) + } + m = -Uint64FromUint64(1) >> e + if *(*Tuint64_t)(unsafe.Pointer(bp))&m == uint64(0) { + return x3 + } + if uint32(8) == uint32(4) { + y = float32(x3 + Float64FromFloat32(1.329227995784916e+36)) + } else { + if uint32(8) == uint32(8) { + y1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } else { + y2 = float64(x3 + Float64FromFloat32(1.329227995784916e+36)) + } + } + *(*Tuint64_t)(unsafe.Pointer(bp)) &= ^m + return *(*float64)(unsafe.Pointer(bp)) +} + +func Xtruncf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e int32 + var m Tuint32_t + var y float32 + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _ = e, m, y, y1, y2 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + e = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp))>>Int32FromInt32(23)&Uint32FromInt32(0xff)) - int32(0x7f) + int32(9) + if e >= Int32FromInt32(23)+Int32FromInt32(9) { + return x3 + } + if e < int32(9) { + e = int32(1) + } + m = -Uint32FromUint32(1) >> e + if *(*Tuint32_t)(unsafe.Pointer(bp))&m == uint32(0) { + return x3 + } + if uint32(4) == uint32(4) { + y = x3 + Float32FromFloat32(1.329227995784916e+36) + } else { + if uint32(4) == uint32(8) { + y1 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } else { + y2 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } + } + *(*Tuint32_t)(unsafe.Pointer(bp)) &= ^m + return *(*float32)(unsafe.Pointer(bp)) +} + +func Xtruncl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xtrunc(tls, x) +} + +var _digits = [65]uint8{'.', '/', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'} + +func Xa64l(tls *TLS, s uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var d uintptr + var e int32 + var x Tuint32_t + _, _, _ = d, e, x + x = uint32(0) + e = 0 + for { + if !(e < int32(36) && **(**uint8)(__ccgo_up(s)) != 0) { + break + } + d = Xstrchr(tls, uintptr(unsafe.Pointer(&_digits)), Int32FromUint8(**(**uint8)(__ccgo_up(s)))) + if !(d != 0) { + break + } + x = x | Uint32FromInt32(int32(d)-t__predefined_ptrdiff_t(uintptr(unsafe.Pointer(&_digits))))< %v", r) }() + } + var p uintptr + var x Tuint32_t + _, _ = p, x + x = Uint32FromInt32(x0) + p = uintptr(unsafe.Pointer(&_s)) + for { + if !(x != 0) { + break + } + **(**uint8)(__ccgo_up(p)) = _digits[x&uint32(63)] + goto _1 + _1: + ; + p = p + 1 + x = x >> uint32(6) + } + **(**uint8)(__ccgo_up(p)) = uint8(0) + return uintptr(unsafe.Pointer(&_s)) +} + +var _s [7]uint8 + +func Xbasename(tls *TLS, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var i Tsize_t + _ = i + if !(s != 0) || !(**(**uint8)(__ccgo_up(s)) != 0) { + return __ccgo_ts + 483 + } + i = _strlen(tls, s) - uint32(1) + for { + if !(i != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(i)))) == int32('/')) { + break + } + **(**uint8)(__ccgo_up(s + uintptr(i))) = uint8(0) + goto _1 + _1: + ; + i = i - 1 + } + for { + if !(i != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(i-uint32(1))))) != int32('/')) { + break + } + goto _2 + _2: + ; + i = i - 1 + } + return s + uintptr(i) +} + +func X__xpg_basename(tls *TLS, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xbasename(tls, s) +} + +func Xdirname(tls *TLS, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var i Tsize_t + _ = i + if !(s != 0) || !(**(**uint8)(__ccgo_up(s)) != 0) { + return __ccgo_ts + 483 + } + i = _strlen(tls, s) - uint32(1) + for { + if !(Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(i)))) == int32('/')) { + break + } + if !(i != 0) { + return __ccgo_ts + 491 + } + goto _1 + _1: + ; + i = i - 1 + } + for { + if !(Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(i)))) != int32('/')) { + break + } + if !(i != 0) { + return __ccgo_ts + 483 + } + goto _2 + _2: + ; + i = i - 1 + } + for { + if !(Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(i)))) == int32('/')) { + break + } + if !(i != 0) { + return __ccgo_ts + 491 + } + goto _3 + _3: + ; + i = i - 1 + } + **(**uint8)(__ccgo_up(s + uintptr(i+uint32(1)))) = uint8(0) + return s +} + +func Xffs(tls *TLS, i int32) (r int32) { + if __ccgo_strace { + trc("tls=%v i=%v, (%v:)", tls, i, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1, v3, v6 int32 + var v2 uint32 + var v5 Tuint32_t + _, _, _, _, _ = v1, v2, v3, v5, v6 + if i != 0 { + v2 = Uint32FromInt32(i) + v5 = v2 + v6 = int32(31) - _a_clz_32(tls, v5&-v5) + goto _7 + _7: + v3 = v6 + goto _4 + _4: + v1 = v3 + int32(1) + } else { + v1 = 0 + } + return v1 +} + +func Xffsl(tls *TLS, i int32) (r int32) { + if __ccgo_strace { + trc("tls=%v i=%v, (%v:)", tls, i, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1, v3, v6 int32 + var v2 uint32 + var v5 Tuint32_t + _, _, _, _, _ = v1, v2, v3, v5, v6 + if i != 0 { + v2 = Uint32FromInt32(i) + v5 = v2 + v6 = int32(31) - _a_clz_32(tls, v5&-v5) + goto _7 + _7: + v3 = v6 + goto _4 + _4: + v1 = v3 + int32(1) + } else { + v1 = 0 + } + return v1 +} + +func Xffsll(tls *TLS, i int64) (r int32) { + if __ccgo_strace { + trc("tls=%v i=%v, (%v:)", tls, i, origin(2)) + defer func() { trc("-> %v", r) }() + } + var y, v5, v8 Tuint32_t + var v1, v3, v6, v9 int32 + var v2 Tuint64_t + _, _, _, _, _, _, _, _ = y, v1, v2, v3, v5, v6, v8, v9 + if i != 0 { + v2 = Uint64FromInt64(i) + if Uint32FromInt64(4) < Uint32FromInt32(8) { + y = uint32(v2) + if !(y != 0) { + y = uint32(v2 >> int32(32)) + v5 = y + v6 = int32(31) - _a_clz_32(tls, v5&-v5) + goto _7 + _7: + v3 = int32(32) + v6 + goto _4 + } + v8 = y + v9 = int32(31) - _a_clz_32(tls, v8&-v8) + goto _10 + _10: + v3 = v9 + goto _4 + } + v3 = Int32FromUint8(_debruijn64[v2&-v2*uint64(0x022fdd63cc95386d)>>int32(58)]) + goto _4 + _4: + v1 = v3 + int32(1) + } else { + v1 = 0 + } + return v1 +} + +var _debruijn64 = [64]uint8{ + 1: uint8(1), + 2: uint8(2), + 3: uint8(53), + 4: uint8(3), + 5: uint8(7), + 6: uint8(54), + 7: uint8(27), + 8: uint8(4), + 9: uint8(38), + 10: uint8(41), + 11: uint8(8), + 12: uint8(34), + 13: uint8(55), + 14: uint8(48), + 15: uint8(28), + 16: uint8(62), + 17: uint8(5), + 18: uint8(39), + 19: uint8(46), + 20: uint8(44), + 21: uint8(42), + 22: uint8(22), + 23: uint8(9), + 24: uint8(24), + 25: uint8(35), + 26: uint8(59), + 27: uint8(56), + 28: uint8(49), + 29: uint8(18), + 30: uint8(29), + 31: uint8(11), + 32: uint8(63), + 33: uint8(52), + 34: uint8(6), + 35: uint8(26), + 36: uint8(37), + 37: uint8(40), + 38: uint8(33), + 39: uint8(47), + 40: uint8(61), + 41: uint8(45), + 42: uint8(43), + 43: uint8(21), + 44: uint8(23), + 45: uint8(58), + 46: uint8(17), + 47: uint8(10), + 48: uint8(51), + 49: uint8(25), + 50: uint8(36), + 51: uint8(32), + 52: uint8(60), + 53: uint8(20), + 54: uint8(57), + 55: uint8(16), + 56: uint8(50), + 57: uint8(31), + 58: uint8(19), + 59: uint8(15), + 60: uint8(30), + 61: uint8(14), + 62: uint8(13), + 63: uint8(12), +} + +const MM_APPL = 8 +const MM_CONSOLE = 512 +const MM_ERROR = 2 +const MM_FIRM = 4 +const MM_HALT = 1 +const MM_HARD = 1 +const MM_INFO = 4 +const MM_NOCON = 4 +const MM_NOMSG = 1 +const MM_NOSEV = 0 +const MM_NOTOK = -1 +const MM_NRECOV = 128 +const MM_NULLMC = 0 +const MM_NULLSEV = 0 +const MM_OK = 0 +const MM_OPSYS = 32 +const MM_PRINT = 256 +const MM_RECOVER = 64 +const MM_SOFT = 2 +const MM_UTIL = 16 +const MM_WARNING = 3 + +// C documentation +// +// /* +// * If lstr is the first part of bstr, check that the next char in bstr +// * is either \0 or : +// */ +func __strcolcmp(tls *TLS, lstr uintptr, bstr uintptr) (r int32) { + var i Tsize_t + _ = i + i = uint32(0) + for **(**uint8)(__ccgo_up(lstr + uintptr(i))) != 0 && **(**uint8)(__ccgo_up(bstr + uintptr(i))) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(bstr + uintptr(i)))) == Int32FromUint8(**(**uint8)(__ccgo_up(lstr + uintptr(i)))) { + i = i + 1 + } + if **(**uint8)(__ccgo_up(lstr + uintptr(i))) != 0 || **(**uint8)(__ccgo_up(bstr + uintptr(i))) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(bstr + uintptr(i)))) != int32(':') { + return int32(1) + } + return 0 +} + +func Xfmtmsg(tls *TLS, classification int32, label uintptr, severity int32, text uintptr, action uintptr, tag uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v classification=%v label=%v severity=%v text=%v action=%v tag=%v, (%v:)", tls, classification, label, severity, text, action, tag, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(80) + defer tls.Free(80) + var cmsg, errstring, v1, v2, v3, v4, v5, v6, v7, v8 uintptr + var consolefd, i, ret, verb int32 + var msgs [6]uintptr + var _ /* cs at bp+0 */ int32 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = cmsg, consolefd, errstring, i, msgs, ret, verb, v1, v2, v3, v4, v5, v6, v7, v8 + ret = 0 + verb = 0 + errstring = uintptr(MM_NULLSEV) + cmsg = Xgetenv(tls, __ccgo_ts+493) + msgs = [6]uintptr{ + 0: __ccgo_ts + 501, + 1: __ccgo_ts + 507, + 2: __ccgo_ts + 516, + 3: __ccgo_ts + 521, + 4: __ccgo_ts + 528, + 5: UintptrFromInt32(0), + } + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp) + if severity == int32(MM_HALT) { + errstring = __ccgo_ts + 532 + } else { + if severity == int32(MM_ERROR) { + errstring = __ccgo_ts + 539 + } else { + if severity == int32(MM_WARNING) { + errstring = __ccgo_ts + 547 + } else { + if severity == int32(MM_INFO) { + errstring = __ccgo_ts + 557 + } + } + } + } + if classification&int32(MM_CONSOLE) != 0 { + consolefd = Xopen(tls, __ccgo_ts+564, int32(O_WRONLY), 0) + if consolefd < 0 { + ret = int32(MM_NOCON) + } else { + if label != 0 { + v1 = label + } else { + v1 = __ccgo_ts + } + if label != 0 { + v2 = __ccgo_ts + 289 + } else { + v2 = __ccgo_ts + } + if severity != 0 { + v3 = errstring + } else { + v3 = __ccgo_ts + } + if text != 0 { + v4 = text + } else { + v4 = __ccgo_ts + } + if action != 0 { + v5 = __ccgo_ts + 577 + } else { + v5 = __ccgo_ts + } + if action != 0 { + v6 = action + } else { + v6 = __ccgo_ts + } + if action != 0 { + v7 = __ccgo_ts + 587 + } else { + v7 = __ccgo_ts + } + if tag != 0 { + v8 = tag + } else { + v8 = __ccgo_ts + } + if Xdprintf(tls, consolefd, __ccgo_ts+589, VaList(bp+16, v1, v2, v3, v4, v5, v6, v7, v8)) < int32(1) { + ret = int32(MM_NOCON) + } + Xclose(tls, consolefd) + } + } + if classification&int32(MM_PRINT) != 0 { + for cmsg != 0 && **(**uint8)(__ccgo_up(cmsg)) != 0 { + i = 0 + for { + if !(msgs[i] != 0) { + break + } + if !(__strcolcmp(tls, msgs[i], cmsg) != 0) { + break + } + goto _9 + _9: + ; + i = i + 1 + } + if msgs[i] == UintptrFromInt32(0) { + //ignore MSGVERB-unrecognized component + verb = int32(0xFF) + break + } else { + verb = verb | int32(1)< %v", r) }() + } + bp := tls.Alloc(304) + defer tls.Free(304) + var res uintptr + var _ /* a at bp+0 */ Tstat + var _ /* b at bp+152 */ Tstat + _ = res + res = Xgetenv(tls, __ccgo_ts+607) + if res != 0 && **(**uint8)(__ccgo_up(res)) != 0 && !(Xstat(tls, res, bp) != 0) && !(Xstat(tls, __ccgo_ts+483, bp+152) != 0) && (**(**Tstat)(__ccgo_up(bp))).Fst_dev == (**(**Tstat)(__ccgo_up(bp + 152))).Fst_dev && (**(**Tstat)(__ccgo_up(bp))).Fst_ino == (**(**Tstat)(__ccgo_up(bp + 152))).Fst_ino { + return Xstrdup(tls, res) + } + return Xgetcwd(tls, uintptr(0), uint32(0)) +} + +func X__getauxval(tls *TLS, item uint32) (r uint32) { + if __ccgo_strace { + trc("tls=%v item=%v, (%v:)", tls, item, origin(2)) + defer func() { trc("-> %v", r) }() + } + var auxv uintptr + _ = auxv + auxv = X__libc.Fauxv + if item == uint32(AT_SECURE) { + return uint32(X__libc.Fsecure) + } + for { + if !(**(**Tsize_t)(__ccgo_up(auxv)) != 0) { + break + } + if uint32(**(**Tsize_t)(__ccgo_up(auxv))) == item { + return uint32(**(**Tsize_t)(__ccgo_up(auxv + 1*4))) + } + goto _1 + _1: + ; + auxv = auxv + uintptr(2)*4 + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOENT) + return uint32(0) +} + +func Xgetauxval(tls *TLS, item uint32) (r uint32) { + if __ccgo_strace { + trc("tls=%v item=%v, (%v:)", tls, item, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__getauxval(tls, item) +} + +type Tutsname = struct { + Fsysname [65]uint8 + Fnodename [65]uint8 + Frelease [65]uint8 + Fversion [65]uint8 + Fmachine [65]uint8 + Fdomainname [65]uint8 +} + +func Xgetdomainname(tls *TLS, name uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v len1=%v, (%v:)", tls, name, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(400) + defer tls.Free(400) + var _ /* temp at bp+0 */ Tutsname + Xuname(tls, bp) + if !(len1 != 0) || _strlen(tls, bp+325) >= len1 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + Xstrcpy(tls, name, bp+325) + return 0 +} + +func Xgetentropy(tls *TLS, buffer uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v buffer=%v len1=%v, (%v:)", tls, buffer, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var pos uintptr + var ret int32 + var _ /* cs at bp+0 */ int32 + _, _ = pos, ret + ret = 0 + pos = buffer + if len1 > uint32(256) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EIO) + return -int32(1) + } + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp) + for len1 != 0 { + ret = Xgetrandom(tls, pos, len1, uint32(0)) + if ret < 0 { + if **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EINTR) { + continue + } else { + break + } + } + pos = pos + uintptr(ret) + len1 = len1 - Uint32FromInt32(ret) + ret = 0 + } + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp)), uintptr(0)) + return ret +} + +func Xgethostid(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return 0 +} + +const optpos = 0 + +type t__ucontext1 = Tucontext_t1 + +func X__getopt_msg(tls *TLS, a uintptr, b uintptr, c uintptr, l Tsize_t) { + if __ccgo_strace { + trc("tls=%v a=%v b=%v c=%v l=%v, (%v:)", tls, a, b, c, l, origin(2)) + } + var __need_unlock, v1 int32 + var f uintptr + _, _, _ = __need_unlock, f, v1 + f = uintptr(unsafe.Pointer(&X__stderr_FILE)) + b = X__lctrans_cur(tls, b) + if AtomicLoadPInt32(f+76) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + _ = Xfputs(tls, a, f) >= 0 && Xfwrite(tls, b, _strlen(tls, b), uint32(1), f) != 0 && Xfwrite(tls, c, uint32(1), l, f) == l && Xputc(tls, int32('\n'), f) != 0 + if __need_unlock != 0 { + ___unlockfile(tls, f) + } +} + +func Xgetopt(tls *TLS, argc int32, argv uintptr, optstring uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v argc=%v argv=%v optstring=%v, (%v:)", tls, argc, argv, optstring, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var i, k, l, v1 int32 + var optchar uintptr + var _ /* c at bp+0 */ Twchar_t + var _ /* d at bp+4 */ Twchar_t + _, _, _, _, _ = i, k, l, optchar, v1 + if !(Xoptind != 0) || Xoptreset != 0 { + Xoptreset = 0 + X__optpos = 0 + Xoptind = int32(1) + } + if Xoptind >= argc || !(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*4)) != 0) { + return -int32(1) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*4))))) != int32('-') { + if Int32FromUint8(**(**uint8)(__ccgo_up(optstring))) == int32('-') { + v1 = Xoptind + Xoptind = Xoptind + 1 + Xoptarg = **(**uintptr)(__ccgo_up(argv + uintptr(v1)*4)) + return int32(1) + } + return -int32(1) + } + if !(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*4)) + 1)) != 0) { + return -int32(1) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*4)) + 1))) == int32('-') && !(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*4)) + 2)) != 0) { + Xoptind = Xoptind + 1 + return -Int32FromInt32(1) + } + if !(X__optpos != 0) { + X__optpos = X__optpos + 1 + } + v1 = Xmbtowc(tls, bp, **(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*4))+uintptr(X__optpos), uint32(MB_LEN_MAX)) + k = v1 + if v1 < 0 { + k = int32(1) + **(**Twchar_t)(__ccgo_up(bp)) = uint32(0xfffd) /* replacement char */ + } + optchar = **(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*4)) + uintptr(X__optpos) + X__optpos = X__optpos + k + if !(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*4)) + uintptr(X__optpos))) != 0) { + Xoptind = Xoptind + 1 + X__optpos = 0 + } + if Int32FromUint8(**(**uint8)(__ccgo_up(optstring))) == int32('-') || Int32FromUint8(**(**uint8)(__ccgo_up(optstring))) == int32('+') { + optstring = optstring + 1 + } + i = 0 + **(**Twchar_t)(__ccgo_up(bp + 4)) = uint32(0) + for cond := true; cond; cond = l != 0 && **(**Twchar_t)(__ccgo_up(bp + 4)) != **(**Twchar_t)(__ccgo_up(bp)) { + l = Xmbtowc(tls, bp+4, optstring+uintptr(i), uint32(MB_LEN_MAX)) + if l > 0 { + i = i + l + } else { + i = i + 1 + } + } + if **(**Twchar_t)(__ccgo_up(bp + 4)) != **(**Twchar_t)(__ccgo_up(bp)) || **(**Twchar_t)(__ccgo_up(bp)) == uint32(':') { + Xoptopt = Int32FromUint32(**(**Twchar_t)(__ccgo_up(bp))) + if Int32FromUint8(**(**uint8)(__ccgo_up(optstring))) != int32(':') && Xopterr != 0 { + X__getopt_msg(tls, **(**uintptr)(__ccgo_up(argv)), __ccgo_ts+611, optchar, Uint32FromInt32(k)) + } + return int32('?') + } + if Int32FromUint8(**(**uint8)(__ccgo_up(optstring + uintptr(i)))) == int32(':') { + Xoptarg = uintptr(0) + if Int32FromUint8(**(**uint8)(__ccgo_up(optstring + uintptr(i+int32(1))))) != int32(':') || X__optpos != 0 { + v1 = Xoptind + Xoptind = Xoptind + 1 + Xoptarg = **(**uintptr)(__ccgo_up(argv + uintptr(v1)*4)) + if X__optpos != 0 { + Xoptarg = Xoptarg + uintptr(X__optpos) + } + X__optpos = 0 + } + if Xoptind > argc { + Xoptopt = Int32FromUint32(**(**Twchar_t)(__ccgo_up(bp))) + if Int32FromUint8(**(**uint8)(__ccgo_up(optstring))) == int32(':') { + return int32(':') + } + if Xopterr != 0 { + X__getopt_msg(tls, **(**uintptr)(__ccgo_up(argv)), __ccgo_ts+635, optchar, Uint32FromInt32(k)) + } + return int32('?') + } + } + return Int32FromUint32(**(**Twchar_t)(__ccgo_up(bp))) +} + +func X__posix_getopt(tls *TLS, argc int32, argv uintptr, optstring uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v argc=%v argv=%v optstring=%v, (%v:)", tls, argc, argv, optstring, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetopt(tls, argc, argv, optstring) +} + +const no_argument = 0 +const optional_argument = 2 +const required_argument = 1 + +type Toption = struct { + Fname uintptr + Fhas_arg int32 + Fflag uintptr + Fval int32 +} + +func _permute(tls *TLS, argv uintptr, dest int32, src int32) { + var av, tmp uintptr + var i int32 + _, _, _ = av, i, tmp + av = argv + tmp = **(**uintptr)(__ccgo_up(av + uintptr(src)*4)) + i = src + for { + if !(i > dest) { + break + } + **(**uintptr)(__ccgo_up(av + uintptr(i)*4)) = **(**uintptr)(__ccgo_up(av + uintptr(i-int32(1))*4)) + goto _1 + _1: + ; + i = i - 1 + } + **(**uintptr)(__ccgo_up(av + uintptr(dest)*4)) = tmp +} + +func ___getopt_long(tls *TLS, argc int32, argv uintptr, optstring uintptr, longopts uintptr, idx uintptr, longonly int32) (r int32) { + var cnt, i, i1, resumed, ret, skipped int32 + _, _, _, _, _, _ = cnt, i, i1, resumed, ret, skipped + if !(Xoptind != 0) || Xoptreset != 0 { + Xoptreset = 0 + X__optpos = 0 + Xoptind = int32(1) + } + if Xoptind >= argc || !(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*4)) != 0) { + return -int32(1) + } + skipped = Xoptind + if Int32FromUint8(**(**uint8)(__ccgo_up(optstring))) != int32('+') && Int32FromUint8(**(**uint8)(__ccgo_up(optstring))) != int32('-') { + i = Xoptind + for { + if i >= argc || !(**(**uintptr)(__ccgo_up(argv + uintptr(i)*4)) != 0) { + return -int32(1) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(i)*4))))) == int32('-') && **(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(i)*4)) + 1)) != 0 { + break + } + goto _1 + _1: + ; + i = i + 1 + } + Xoptind = i + } + resumed = Xoptind + ret = ___getopt_long_core(tls, argc, argv, optstring, longopts, idx, longonly) + if resumed > skipped { + cnt = Xoptind - resumed + i1 = 0 + for { + if !(i1 < cnt) { + break + } + _permute(tls, argv, skipped, Xoptind-int32(1)) + goto _2 + _2: + ; + i1 = i1 + 1 + } + Xoptind = skipped + cnt + } + return ret +} + +func ___getopt_long_core(tls *TLS, argc int32, argv uintptr, optstring uintptr, longopts uintptr, idx uintptr, longonly int32) (r int32) { + var arg, name, opt, start, v5 uintptr + var cnt, colon, i, j, l, match, v2 int32 + _, _, _, _, _, _, _, _, _, _, _, _ = arg, cnt, colon, i, j, l, match, name, opt, start, v2, v5 + Xoptarg = uintptr(0) + if longopts != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*4))))) == int32('-') && (longonly != 0 && **(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*4)) + 1)) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*4)) + 1))) != int32('-') || Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*4)) + 1))) == int32('-') && **(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*4)) + 2)) != 0) { + colon = BoolInt32(Int32FromUint8(**(**uint8)(__ccgo_up(optstring + BoolUintptr(Int32FromUint8(**(**uint8)(__ccgo_up(optstring))) == int32('+') || Int32FromUint8(**(**uint8)(__ccgo_up(optstring))) == int32('-'))))) == int32(':')) + start = **(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*4)) + uintptr(1) + v2 = Int32FromInt32(0) + i = v2 + cnt = v2 + for { + if !((**(**Toption)(__ccgo_up(longopts + uintptr(i)*16))).Fname != 0) { + break + } + name = (**(**Toption)(__ccgo_up(longopts + uintptr(i)*16))).Fname + opt = start + if Int32FromUint8(**(**uint8)(__ccgo_up(opt))) == int32('-') { + opt = opt + 1 + } + for **(**uint8)(__ccgo_up(opt)) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(opt))) != int32('=') && Int32FromUint8(**(**uint8)(__ccgo_up(opt))) == Int32FromUint8(**(**uint8)(__ccgo_up(name))) { + name = name + 1 + opt = opt + 1 + } + if **(**uint8)(__ccgo_up(opt)) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(opt))) != int32('=') { + goto _1 + } + arg = opt + match = i + if !(**(**uint8)(__ccgo_up(name)) != 0) { + cnt = int32(1) + break + } + cnt = cnt + 1 + goto _1 + _1: + ; + i = i + 1 + } + if cnt == int32(1) && longonly != 0 && int32(arg)-int32(start) == Xmblen(tls, start, uint32(MB_LEN_MAX)) { + l = int32(arg) - int32(start) + i = 0 + for { + if !(**(**uint8)(__ccgo_up(optstring + uintptr(i))) != 0) { + break + } + j = 0 + for { + if !(j < l && Int32FromUint8(**(**uint8)(__ccgo_up(start + uintptr(j)))) == Int32FromUint8(**(**uint8)(__ccgo_up(optstring + uintptr(i+j))))) { + break + } + goto _4 + _4: + ; + j = j + 1 + } + if j == l { + cnt = cnt + 1 + break + } + goto _3 + _3: + ; + i = i + 1 + } + } + if cnt == int32(1) { + i = match + opt = arg + Xoptind = Xoptind + 1 + if Int32FromUint8(**(**uint8)(__ccgo_up(opt))) == int32('=') { + if !((**(**Toption)(__ccgo_up(longopts + uintptr(i)*16))).Fhas_arg != 0) { + Xoptopt = (**(**Toption)(__ccgo_up(longopts + uintptr(i)*16))).Fval + if colon != 0 || !(Xopterr != 0) { + return int32('?') + } + X__getopt_msg(tls, **(**uintptr)(__ccgo_up(argv)), __ccgo_ts+667, (**(**Toption)(__ccgo_up(longopts + uintptr(i)*16))).Fname, _strlen(tls, (**(**Toption)(__ccgo_up(longopts + uintptr(i)*16))).Fname)) + return int32('?') + } + Xoptarg = opt + uintptr(1) + } else { + if (**(**Toption)(__ccgo_up(longopts + uintptr(i)*16))).Fhas_arg == int32(required_argument) { + v5 = **(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*4)) + Xoptarg = v5 + if !(v5 != 0) { + Xoptopt = (**(**Toption)(__ccgo_up(longopts + uintptr(i)*16))).Fval + if colon != 0 { + return int32(':') + } + if !(Xopterr != 0) { + return int32('?') + } + X__getopt_msg(tls, **(**uintptr)(__ccgo_up(argv)), __ccgo_ts+635, (**(**Toption)(__ccgo_up(longopts + uintptr(i)*16))).Fname, _strlen(tls, (**(**Toption)(__ccgo_up(longopts + uintptr(i)*16))).Fname)) + return int32('?') + } + Xoptind = Xoptind + 1 + } + } + if idx != 0 { + **(**int32)(__ccgo_up(idx)) = i + } + if (**(**Toption)(__ccgo_up(longopts + uintptr(i)*16))).Fflag != 0 { + **(**int32)(__ccgo_up((**(**Toption)(__ccgo_up(longopts + uintptr(i)*16))).Fflag)) = (**(**Toption)(__ccgo_up(longopts + uintptr(i)*16))).Fval + return 0 + } + return (**(**Toption)(__ccgo_up(longopts + uintptr(i)*16))).Fval + } + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*4)) + 1))) == int32('-') { + Xoptopt = 0 + if !(colon != 0) && Xopterr != 0 { + if cnt != 0 { + v5 = __ccgo_ts + 704 + } else { + v5 = __ccgo_ts + 611 + } + X__getopt_msg(tls, **(**uintptr)(__ccgo_up(argv)), v5, **(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*4))+uintptr(2), _strlen(tls, **(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*4))+uintptr(2))) + } + Xoptind = Xoptind + 1 + return int32('?') + } + } + return Xgetopt(tls, argc, argv, optstring) +} + +func Xgetopt_long(tls *TLS, argc int32, argv uintptr, optstring uintptr, longopts uintptr, idx uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v argc=%v argv=%v optstring=%v longopts=%v idx=%v, (%v:)", tls, argc, argv, optstring, longopts, idx, origin(2)) + defer func() { trc("-> %v", r) }() + } + return ___getopt_long(tls, argc, argv, optstring, longopts, idx, 0) +} + +func Xgetopt_long_only(tls *TLS, argc int32, argv uintptr, optstring uintptr, longopts uintptr, idx uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v argc=%v argv=%v optstring=%v longopts=%v idx=%v, (%v:)", tls, argc, argv, optstring, longopts, idx, origin(2)) + defer func() { trc("-> %v", r) }() + } + return ___getopt_long(tls, argc, argv, optstring, longopts, idx, int32(1)) +} + +func Xgetpriority(tls *TLS, which int32, who Tid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v which=%v who=%v, (%v:)", tls, which, who, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret int32 + _ = ret + ret = X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_getpriority), which, Int32FromUint32(who)))) + if ret < 0 { + return ret + } + return int32(20) - ret +} + +func Xgetresgid(tls *TLS, rgid uintptr, egid uintptr, sgid uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v rgid=%v egid=%v sgid=%v, (%v:)", tls, rgid, egid, sgid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_getresgid32), int32(rgid), int32(egid), int32(sgid)))) +} + +func Xgetresuid(tls *TLS, ruid uintptr, euid uintptr, suid uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v ruid=%v euid=%v suid=%v, (%v:)", tls, ruid, euid, suid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_getresuid32), int32(ruid), int32(euid), int32(suid)))) +} + +func Xgetrlimit(tls *TLS, resource int32, rlim uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v resource=%v rlim=%v, (%v:)", tls, resource, rlim, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ret int32 + var v1 uint64 + var _ /* k_rlim at bp+0 */ [2]uint32 + _, _ = ret, v1 + ret = X__syscall_ret(tls, Uint32FromInt32(X__syscall4(tls, int32(SYS_prlimit64), int32(Int32FromInt32(0)), resource, int32(Int32FromInt32(0)), int32(rlim)))) + if !(ret != 0) { + if (*Trlimit)(unsafe.Pointer(rlim)).Frlim_cur >= ^Uint64FromUint64(0) { + (*Trlimit)(unsafe.Pointer(rlim)).Frlim_cur = ^Uint64FromUint64(0) + } + if (*Trlimit)(unsafe.Pointer(rlim)).Frlim_max >= ^Uint64FromUint64(0) { + (*Trlimit)(unsafe.Pointer(rlim)).Frlim_max = ^Uint64FromUint64(0) + } + } + if !(ret != 0) || **(**int32)(__ccgo_up(X__errno_location(tls))) != int32(ENOSYS) { + return ret + } + if X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_ugetrlimit), resource, int32(bp)))) < 0 { + return -int32(1) + } + if (**(**[2]uint32)(__ccgo_up(bp)))[0] == -Uint32FromUint32(1) { + v1 = ^Uint64FromUint64(0) + } else { + v1 = uint64((**(**[2]uint32)(__ccgo_up(bp)))[0]) + } + (*Trlimit)(unsafe.Pointer(rlim)).Frlim_cur = v1 + if (**(**[2]uint32)(__ccgo_up(bp)))[int32(1)] == -Uint32FromUint32(1) { + v1 = ^Uint64FromUint64(0) + } else { + v1 = uint64((**(**[2]uint32)(__ccgo_up(bp)))[int32(1)]) + } + (*Trlimit)(unsafe.Pointer(rlim)).Frlim_max = v1 + if (*Trlimit)(unsafe.Pointer(rlim)).Frlim_cur >= ^Uint64FromUint64(0) { + (*Trlimit)(unsafe.Pointer(rlim)).Frlim_cur = ^Uint64FromUint64(0) + } + if (*Trlimit)(unsafe.Pointer(rlim)).Frlim_max >= ^Uint64FromUint64(0) { + (*Trlimit)(unsafe.Pointer(rlim)).Frlim_max = ^Uint64FromUint64(0) + } + return 0 +} + +func Xgetrusage(tls *TLS, who int32, ru uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v who=%v ru=%v, (%v:)", tls, who, ru, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var dest uintptr + var r int32 + var _ /* kru at bp+0 */ [4]int32 + _, _ = dest, r + dest = ru + 32 - uintptr(Uint32FromInt32(4)*Uint32FromInt64(4)) + r = int32(X__syscall2(tls, int32(SYS_getrusage), who, int32(dest))) + if !(r != 0) && Bool(uint32(8) > uint32(4)) { + _memcpy(tls, bp, dest, Uint32FromInt32(4)*Uint32FromInt64(4)) + (*Trusage)(unsafe.Pointer(ru)).Fru_utime = Ttimeval{ + Ftv_sec: int64((**(**[4]int32)(__ccgo_up(bp)))[0]), + Ftv_usec: int64((**(**[4]int32)(__ccgo_up(bp)))[int32(1)]), + } + (*Trusage)(unsafe.Pointer(ru)).Fru_stime = Ttimeval{ + Ftv_sec: int64((**(**[4]int32)(__ccgo_up(bp)))[int32(2)]), + Ftv_usec: int64((**(**[4]int32)(__ccgo_up(bp)))[int32(3)]), + } + } + return X__syscall_ret(tls, Uint32FromInt32(r)) +} + +func Xgetsubopt(tls *TLS, opt uintptr, keys uintptr, val uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v opt=%v keys=%v val=%v, (%v:)", tls, opt, keys, val, origin(2)) + defer func() { trc("-> %v", r) }() + } + var i int32 + var l Tsize_t + var s, v1, v2 uintptr + _, _, _, _, _ = i, l, s, v1, v2 + s = **(**uintptr)(__ccgo_up(opt)) + **(**uintptr)(__ccgo_up(val)) = UintptrFromInt32(0) + **(**uintptr)(__ccgo_up(opt)) = Xstrchr(tls, s, int32(',')) + if **(**uintptr)(__ccgo_up(opt)) != 0 { + v2 = opt + v1 = *(*uintptr)(unsafe.Pointer(v2)) + *(*uintptr)(unsafe.Pointer(v2)) = *(*uintptr)(unsafe.Pointer(v2)) + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(0) + } else { + **(**uintptr)(__ccgo_up(opt)) = s + uintptr(_strlen(tls, s)) + } + i = 0 + for { + if !(**(**uintptr)(__ccgo_up(keys + uintptr(i)*4)) != 0) { + break + } + l = _strlen(tls, **(**uintptr)(__ccgo_up(keys + uintptr(i)*4))) + if Xstrncmp(tls, **(**uintptr)(__ccgo_up(keys + uintptr(i)*4)), s, l) != 0 { + goto _3 + } + if Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(l)))) == int32('=') { + **(**uintptr)(__ccgo_up(val)) = s + uintptr(l) + uintptr(1) + } else { + if **(**uint8)(__ccgo_up(s + uintptr(l))) != 0 { + goto _3 + } + } + return i + goto _3 + _3: + ; + i = i + 1 + } + return -int32(1) +} + +const R = 2 +const W = 1 +const WR = 3 + +type Tioctl_compat_map = struct { + Fnew_req int32 + Fold_req int32 + Fold_size uint8 + Fdir uint8 + Fforce_align uint8 + Fnoffs uint8 + Foffsets [8]uint8 +} + +/* yields a type for a struct with original size n, with a misaligned + * timeval/timespec expanded from 32- to 64-bit. for use with ioctl + * number producing macros; only size of result is meaningful. */ + +type Tv4l2_event = struct { + F__ccgo_align [0]uint32 + Fa Tuint32_t + F__ccgo_align1 [4]byte + Fb [8]Tuint64_t + Fc [2]Tuint32_t + Fts [2]Tuint32_t + Fd [9]Tuint32_t + F__ccgo_pad5 [4]byte +} + +var _compat_map = [20]Tioctl_compat_map{ + 0: { + Fnew_req: Int32FromUint32(Uint32FromUint32(2)< %v", r1) }() + } + bp := tls.Alloc(256) + defer tls.Free(256) + var ap Tva_list + var arg uintptr + var i, r int32 + var _ /* u at bp+0 */ struct { + F__ccgo_align [0]uint32 + Fbuf [0][256]uint8 + Falign int64 + F__ccgo_pad2 [248]byte + } + _, _, _, _ = ap, arg, i, r + ap = va + arg = VaUintptr(&ap) + _ = ap + r = int32(X__syscall3(tls, int32(SYS_ioctl), fd, req, int32(arg))) + if Bool(Uint32FromUint32(2)< %v", r) }() + } + return Int32FromUint8(X__libc.Fsecure) +} + +func Xlockf(tls *TLS, fd int32, op int32, size Toff_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v op=%v size=%v, (%v:)", tls, fd, op, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + var _ /* l at bp+0 */ Tflock + **(**Tflock)(__ccgo_up(bp)) = Tflock{ + Fl_type: int16(F_WRLCK), + Fl_whence: int16(1), + Fl_len: size, + } + switch op { + case int32(F_TEST): + (**(**Tflock)(__ccgo_up(bp))).Fl_type = F_RDLCK + if Xfcntl(tls, fd, int32(F_GETLK), VaList(bp+40, bp)) < 0 { + return -int32(1) + } + if int32((**(**Tflock)(__ccgo_up(bp))).Fl_type) == int32(F_UNLCK) || (**(**Tflock)(__ccgo_up(bp))).Fl_pid == Xgetpid(tls) { + return 0 + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EACCES) + return -int32(1) + case F_ULOCK: + (**(**Tflock)(__ccgo_up(bp))).Fl_type = int16(F_UNLCK) + fallthrough + case int32(F_TLOCK): + return Xfcntl(tls, fd, int32(F_SETLK), VaList(bp+40, bp)) + case int32(F_LOCK): + return Xfcntl(tls, fd, int32(F_SETLKW), VaList(bp+40, bp)) + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) +} + +const ACCOUNTING = 9 +const UTMP_FILE = "_PATH_UTMP" +const UTMP_FILENAME = "_PATH_UTMP" +const UT_HOSTSIZE = 256 +const UT_LINESIZE = 32 +const UT_NAMESIZE = 32 +const WTMP_FILE = "_PATH_WTMP" +const WTMP_FILENAME = "_PATH_WTMP" +const _PATH_UTMP = "/dev/null/utmp" +const _PATH_WTMP = "/dev/null/wtmp" +const ut_name = 0 +const utmp = 0 + +type Tlastlog = struct { + F__ccgo_align [0]uint32 + Fll_time Ttime_t + Fll_line [32]uint8 + Fll_host [256]uint8 +} + +func Xlogin_tty(tls *TLS, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + Xsetsid(tls) + if Xioctl(tls, fd, int32(TIOCSCTTY), VaList(bp+8, UintptrFromInt32(0))) != 0 { + return -int32(1) + } + Xdup2(tls, fd, 0) + Xdup2(tls, fd, int32(1)) + Xdup2(tls, fd, int32(2)) + if fd > int32(2) { + Xclose(tls, fd) + } + return 0 +} + +const MNTOPT_DEFAULTS = "defaults" +const MNTOPT_NOAUTO = "noauto" +const MNTOPT_NOSUID = "nosuid" +const MNTOPT_RO = "ro" +const MNTOPT_RW = "rw" +const MNTOPT_SUID = "suid" +const MNTTYPE_IGNORE = "ignore" +const MNTTYPE_NFS = "nfs" +const MNTTYPE_SWAP = "swap" +const MOUNTED = "/etc/mtab" +const SENTINEL = 0 + +type Tmntent = struct { + Fmnt_fsname uintptr + Fmnt_dir uintptr + Fmnt_type uintptr + Fmnt_opts uintptr + Fmnt_freq int32 + Fmnt_passno int32 +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +var _internal_buf uintptr +var _internal_bufsize Tsize_t + +func Xsetmntent(tls *TLS, name uintptr, mode uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v mode=%v, (%v:)", tls, name, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfopen(tls, name, mode) +} + +func Xendmntent(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + if f != 0 { + Xfclose(tls, f) + } + return int32(1) +} + +func _unescape_ent(tls *TLS, beg uintptr) (r uintptr) { + var cval uint8 + var dest, src, val, v1, v2 uintptr + var i int32 + _, _, _, _, _, _, _ = cval, dest, i, src, val, v1, v2 + dest = beg + src = beg + for **(**uint8)(__ccgo_up(src)) != 0 { + cval = uint8(0) + if Int32FromUint8(**(**uint8)(__ccgo_up(src))) != int32('\\') { + v1 = dest + dest = dest + 1 + v2 = src + src = src + 1 + **(**uint8)(__ccgo_up(v1)) = **(**uint8)(__ccgo_up(v2)) + continue + } + if Int32FromUint8(**(**uint8)(__ccgo_up(src + 1))) == int32('\\') { + src = src + 1 + v1 = dest + dest = dest + 1 + v2 = src + src = src + 1 + **(**uint8)(__ccgo_up(v1)) = **(**uint8)(__ccgo_up(v2)) + continue + } + val = src + uintptr(1) + i = 0 + for { + if !(i < int32(3)) { + break + } + if Int32FromUint8(**(**uint8)(__ccgo_up(val))) >= int32('0') && Int32FromUint8(**(**uint8)(__ccgo_up(val))) <= int32('7') { + cval = Uint8FromInt32(int32(cval) << Int32FromInt32(3)) + v1 = val + val = val + 1 + cval = Uint8FromInt32(int32(cval) + (Int32FromUint8(**(**uint8)(__ccgo_up(v1))) - Int32FromUint8('0'))) + } else { + break + } + goto _5 + _5: + ; + i = i + 1 + } + if cval != 0 { + v1 = dest + dest = dest + 1 + **(**uint8)(__ccgo_up(v1)) = cval + src = val + } else { + v1 = dest + dest = dest + 1 + v2 = src + src = src + 1 + **(**uint8)(__ccgo_up(v1)) = **(**uint8)(__ccgo_up(v2)) + } + } + **(**uint8)(__ccgo_up(dest)) = uint8(0) + return beg +} + +func Xgetmntent_r(tls *TLS, f uintptr, mnt uintptr, linebuf uintptr, buflen int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v mnt=%v linebuf=%v buflen=%v, (%v:)", tls, f, mnt, linebuf, buflen, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(128) + defer tls.Free(128) + var i, len1 Tsize_t + var use_internal int32 + var _ /* n at bp+0 */ [8]int32 + _, _, _ = i, len1, use_internal + use_internal = BoolInt32(linebuf == uintptr(unsafe.Pointer(&_internal_buf))) + (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_freq = 0 + (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_passno = 0 + for cond := true; cond; cond = Int32FromUint8(**(**uint8)(__ccgo_up(linebuf + uintptr((**(**[8]int32)(__ccgo_up(bp)))[0])))) == int32('#') || Uint32FromInt32((**(**[8]int32)(__ccgo_up(bp)))[int32(1)]) == len1 { + if use_internal != 0 { + Xgetline(tls, uintptr(unsafe.Pointer(&_internal_buf)), uintptr(unsafe.Pointer(&_internal_bufsize)), f) + linebuf = _internal_buf + } else { + Xfgets(tls, linebuf, buflen, f) + } + if Xfeof(tls, f) != 0 || Xferror(tls, f) != 0 { + return uintptr(0) + } + if !(Xstrchr(tls, linebuf, int32('\n')) != 0) { + Xfscanf(tls, f, __ccgo_ts+728, 0) + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ERANGE) + return uintptr(0) + } + len1 = _strlen(tls, linebuf) + if len1 > uint32(INT_MAX) { + continue + } + i = uint32(0) + for { + if !(i < Uint32FromInt64(32)/Uint32FromInt64(4)) { + break + } + (**(**[8]int32)(__ccgo_up(bp)))[i] = Int32FromUint32(len1) + goto _1 + _1: + ; + i = i + 1 + } + Xsscanf(tls, linebuf, __ccgo_ts+740, VaList(bp+40, bp, bp+uintptr(1)*4, bp+uintptr(2)*4, bp+uintptr(3)*4, bp+uintptr(4)*4, bp+uintptr(5)*4, bp+uintptr(6)*4, bp+uintptr(7)*4, mnt+16, mnt+20)) + } + **(**uint8)(__ccgo_up(linebuf + uintptr((**(**[8]int32)(__ccgo_up(bp)))[int32(1)]))) = uint8(0) + **(**uint8)(__ccgo_up(linebuf + uintptr((**(**[8]int32)(__ccgo_up(bp)))[int32(3)]))) = uint8(0) + **(**uint8)(__ccgo_up(linebuf + uintptr((**(**[8]int32)(__ccgo_up(bp)))[int32(5)]))) = uint8(0) + **(**uint8)(__ccgo_up(linebuf + uintptr((**(**[8]int32)(__ccgo_up(bp)))[int32(7)]))) = uint8(0) + (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_fsname = _unescape_ent(tls, linebuf+uintptr((**(**[8]int32)(__ccgo_up(bp)))[0])) + (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_dir = _unescape_ent(tls, linebuf+uintptr((**(**[8]int32)(__ccgo_up(bp)))[int32(2)])) + (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_type = _unescape_ent(tls, linebuf+uintptr((**(**[8]int32)(__ccgo_up(bp)))[int32(4)])) + (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_opts = _unescape_ent(tls, linebuf+uintptr((**(**[8]int32)(__ccgo_up(bp)))[int32(6)])) + return mnt +} + +func Xgetmntent(tls *TLS, f uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetmntent_r(tls, f, uintptr(unsafe.Pointer(&_mnt)), uintptr(unsafe.Pointer(&_internal_buf)), 0) +} + +var _mnt Tmntent + +func Xaddmntent(tls *TLS, f uintptr, mnt uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v mnt=%v, (%v:)", tls, f, mnt, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + if Xfseek(tls, f, 0, int32(2)) != 0 { + return int32(1) + } + return BoolInt32(Xfprintf(tls, f, __ccgo_ts+795, VaList(bp+8, (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_fsname, (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_dir, (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_type, (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_opts, (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_freq, (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_passno)) < 0) +} + +func Xhasmntopt(tls *TLS, mnt uintptr, opt uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v mnt=%v opt=%v, (%v:)", tls, mnt, opt, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrstr(tls, (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_opts, opt) +} + +type Thistory = struct { + F__ccgo_align [0]uint32 + Fchain uintptr + F__ccgo_align1 [4]byte + Fdev Tdev_t + Fino Tino_t + Flevel int32 + Fbase int32 +} + +func _do_nftw(tls *TLS, path uintptr, __ccgo_fp_fn uintptr, fd_limit int32, flags int32, h uintptr) (r1 int32) { + bp := tls.Alloc(192) + defer tls.Free(192) + var d, de, v10 uintptr + var dfd, err, r, type1, v3 int32 + var j, k, l Tsize_t + var v1 uint32 + var v8 bool + var v2 Tino_t + var _ /* lev at bp+184 */ TFTW + var _ /* new at bp+152 */ Thistory + var _ /* st at bp+0 */ Tstat + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = d, de, dfd, err, j, k, l, r, type1, v1, v10, v2, v3, v8 + l = _strlen(tls, path) + if l != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(path + uintptr(l-uint32(1))))) == int32('/') { + v1 = l - uint32(1) + } else { + v1 = l + } + j = v1 + v2 = Uint64FromInt32(0) + (**(**Tstat)(__ccgo_up(bp))).Fst_ino = v2 + (**(**Tstat)(__ccgo_up(bp))).Fst_dev = v2 + if flags&int32(FTW_PHYS) != 0 { + v3 = Xlstat(tls, path, bp) + } else { + v3 = BoolInt32(Xstat(tls, path, bp) < 0) + } + if v3 != 0 { + if !(flags&Int32FromInt32(FTW_PHYS) != 0) && **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(ENOENT) && !(Xlstat(tls, path, bp) != 0) { + type1 = int32(FTW_SLN) + } else { + if **(**int32)(__ccgo_up(X__errno_location(tls))) != int32(EACCES) { + return -int32(1) + } else { + type1 = int32(FTW_NS) + } + } + } else { + if (**(**Tstat)(__ccgo_up(bp))).Fst_mode&uint32(S_IFMT) == uint32(S_IFDIR) { + if flags&int32(FTW_DEPTH) != 0 { + type1 = int32(FTW_DP) + } else { + type1 = int32(FTW_D) + } + } else { + if (**(**Tstat)(__ccgo_up(bp))).Fst_mode&uint32(S_IFMT) == uint32(S_IFLNK) { + if flags&int32(FTW_PHYS) != 0 { + type1 = int32(FTW_SL) + } else { + type1 = int32(FTW_SLN) + } + } else { + type1 = int32(FTW_F) + } + } + } + if flags&int32(FTW_MOUNT) != 0 && h != 0 && type1 != int32(FTW_NS) && (**(**Tstat)(__ccgo_up(bp))).Fst_dev != (*Thistory)(unsafe.Pointer(h)).Fdev { + return 0 + } + (**(**Thistory)(__ccgo_up(bp + 152))).Fchain = h + (**(**Thistory)(__ccgo_up(bp + 152))).Fdev = (**(**Tstat)(__ccgo_up(bp))).Fst_dev + (**(**Thistory)(__ccgo_up(bp + 152))).Fino = (**(**Tstat)(__ccgo_up(bp))).Fst_ino + if h != 0 { + v3 = (*Thistory)(unsafe.Pointer(h)).Flevel + int32(1) + } else { + v3 = 0 + } + (**(**Thistory)(__ccgo_up(bp + 152))).Flevel = v3 + (**(**Thistory)(__ccgo_up(bp + 152))).Fbase = Int32FromUint32(j + uint32(1)) + (**(**TFTW)(__ccgo_up(bp + 184))).Flevel = (**(**Thistory)(__ccgo_up(bp + 152))).Flevel + if h != 0 { + (**(**TFTW)(__ccgo_up(bp + 184))).Fbase = (*Thistory)(unsafe.Pointer(h)).Fbase + } else { + k = j + for { + if !(k != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(path + uintptr(k)))) == int32('/')) { + break + } + goto _5 + _5: + ; + k = k - 1 + } + for { + if !(k != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(path + uintptr(k-uint32(1))))) != int32('/')) { + break + } + goto _6 + _6: + ; + k = k - 1 + } + (**(**TFTW)(__ccgo_up(bp + 184))).Fbase = Int32FromUint32(k) + } + if type1 == int32(FTW_D) || type1 == int32(FTW_DP) { + dfd = Xopen(tls, path, O_RDONLY, 0) + err = **(**int32)(__ccgo_up(X__errno_location(tls))) + if dfd < 0 && err == int32(EACCES) { + type1 = int32(FTW_DNR) + } + if !(fd_limit != 0) { + Xclose(tls, dfd) + } + } + if v8 = !(flags&Int32FromInt32(FTW_DEPTH) != 0); v8 { + v3 = (*(*func(*TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_fn})))(tls, path, bp, type1, bp+184) + r = v3 + } + if v8 && v3 != 0 { + return r + } + for { + if !(h != 0) { + break + } + if (*Thistory)(unsafe.Pointer(h)).Fdev == (**(**Tstat)(__ccgo_up(bp))).Fst_dev && (*Thistory)(unsafe.Pointer(h)).Fino == (**(**Tstat)(__ccgo_up(bp))).Fst_ino { + return 0 + } + goto _9 + _9: + ; + h = (*Thistory)(unsafe.Pointer(h)).Fchain + } + if (type1 == int32(FTW_D) || type1 == int32(FTW_DP)) && fd_limit != 0 { + if dfd < 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = err + return -int32(1) + } + d = Xfdopendir(tls, dfd) + if d != 0 { + for { + v10 = Xreaddir(tls, d) + de = v10 + if !(v10 != 0) { + break + } + if Int32FromUint8(**(**uint8)(__ccgo_up(de + 19))) == int32('.') && (!(**(**uint8)(__ccgo_up(de + 19 + 1)) != 0) || Int32FromUint8(**(**uint8)(__ccgo_up(de + 19 + 1))) == int32('.') && !(**(**uint8)(__ccgo_up(de + 19 + 2)) != 0)) { + continue + } + if _strlen(tls, de+19) >= uint32(PATH_MAX)-l { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENAMETOOLONG) + Xclosedir(tls, d) + return -int32(1) + } + **(**uint8)(__ccgo_up(path + uintptr(j))) = uint8('/') + Xstrcpy(tls, path+uintptr(j)+uintptr(1), de+19) + v3 = _do_nftw(tls, path, __ccgo_fp_fn, fd_limit-int32(1), flags, bp+152) + r = v3 + if v3 != 0 { + Xclosedir(tls, d) + return r + } + } + Xclosedir(tls, d) + } else { + Xclose(tls, dfd) + return -int32(1) + } + } + **(**uint8)(__ccgo_up(path + uintptr(l))) = uint8(0) + if v8 = flags&int32(FTW_DEPTH) != 0; v8 { + v3 = (*(*func(*TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_fn})))(tls, path, bp, type1, bp+184) + r = v3 + } + if v8 && v3 != 0 { + return r + } + return 0 +} + +type t__ccgo_fp__Xnftw_1 = func(*TLS, uintptr, uintptr, int32, uintptr) int32 + +func Xnftw(tls *TLS, path uintptr, __ccgo_fp_fn uintptr, fd_limit int32, flags int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v path=%v __ccgo_fp_fn=%v fd_limit=%v flags=%v, (%v:)", tls, path, __ccgo_fp_fn, fd_limit, flags, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(4112) + defer tls.Free(4112) + var l Tsize_t + var r int32 + var _ /* cs at bp+0 */ int32 + var _ /* pathbuf at bp+4 */ [4097]uint8 + _, _ = l, r + if fd_limit <= 0 { + return 0 + } + l = _strlen(tls, path) + if l > uint32(PATH_MAX) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENAMETOOLONG) + return -int32(1) + } + _memcpy(tls, bp+4, path, l+uint32(1)) + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp) + r = _do_nftw(tls, bp+4, __ccgo_fp_fn, fd_limit, flags, UintptrFromInt32(0)) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp)), uintptr(0)) + return r +} + +/* Nonstandard, but vastly superior to the standard functions */ + +func Xopenpty(tls *TLS, pm uintptr, ps uintptr, name uintptr, tio uintptr, ws uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v pm=%v ps=%v name=%v tio=%v ws=%v, (%v:)", tls, pm, ps, name, tio, ws, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + var m, s, v1 int32 + var _ /* buf at bp+8 */ [20]uint8 + var _ /* cs at bp+4 */ int32 + var _ /* n at bp+0 */ int32 + _, _, _ = m, s, v1 + **(**int32)(__ccgo_up(bp)) = 0 + m = Xopen(tls, __ccgo_ts+814, Int32FromInt32(O_RDWR)|Int32FromInt32(O_NOCTTY), 0) + if m < 0 { + return -int32(1) + } + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp+4) + if Xioctl(tls, m, int32(TIOCSPTLCK), VaList(bp+40, bp)) != 0 || Xioctl(tls, m, Int32FromUint32(TIOCGPTN), VaList(bp+40, bp)) != 0 { + goto fail + } + if !(name != 0) { + name = bp + 8 + } + Xsnprintf(tls, name, uint32(20), __ccgo_ts+824, VaList(bp+40, **(**int32)(__ccgo_up(bp)))) + v1 = Xopen(tls, name, Int32FromInt32(O_RDWR)|Int32FromInt32(O_NOCTTY), 0) + s = v1 + if v1 < 0 { + goto fail + } + if tio != 0 { + Xtcsetattr(tls, s, TCSANOW, tio) + } + if ws != 0 { + Xioctl(tls, s, int32(TIOCSWINSZ), VaList(bp+40, ws)) + } + **(**int32)(__ccgo_up(pm)) = m + **(**int32)(__ccgo_up(ps)) = s + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 4)), uintptr(0)) + return 0 + goto fail +fail: + ; + Xclose(tls, m) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 4)), uintptr(0)) + return -int32(1) +} + +func Xptsname(tls *TLS, fd int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + var err int32 + _ = err + err = X__ptsname_r(tls, fd, uintptr(unsafe.Pointer(&_buf2)), uint32(22)) + if err != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = err + return uintptr(0) + } + return uintptr(unsafe.Pointer(&_buf2)) +} + +var _buf2 [22]uint8 + +func Xposix_openpt(tls *TLS, flags int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v flags=%v, (%v:)", tls, flags, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + r = Xopen(tls, __ccgo_ts+814, flags, 0) + if r < 0 && **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(ENOSPC) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EAGAIN) + } + return r +} + +func Xgrantpt(tls *TLS, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + return 0 +} + +func Xunlockpt(tls *TLS, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var _ /* unlock at bp+0 */ int32 + **(**int32)(__ccgo_up(bp)) = 0 + return Xioctl(tls, fd, int32(TIOCSPTLCK), VaList(bp+16, bp)) +} + +func X__ptsname_r(tls *TLS, fd int32, buf uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v len1=%v, (%v:)", tls, fd, buf, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var err, v1 int32 + var _ /* pty at bp+0 */ int32 + _, _ = err, v1 + if !(buf != 0) { + len1 = uint32(0) + } + v1 = int32(X__syscall3(tls, int32(SYS_ioctl), fd, Int32FromUint32(Uint32FromUint32(TIOCGPTN)), int32(bp))) + err = v1 + if v1 != 0 { + return -err + } + if Uint32FromInt32(Xsnprintf(tls, buf, len1, __ccgo_ts+824, VaList(bp+16, **(**int32)(__ccgo_up(bp))))) >= len1 { + return int32(ERANGE) + } + return 0 +} + +func Xptsname_r(tls *TLS, fd int32, buf uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v len1=%v, (%v:)", tls, fd, buf, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__ptsname_r(tls, fd, buf, len1) +} + +func _slash_len(tls *TLS, s uintptr) (r Tsize_t) { + var s0 uintptr + _ = s0 + s0 = s + for Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('/') { + s = s + 1 + } + return Uint32FromInt32(int32(s) - int32(s0)) +} + +func Xrealpath(tls *TLS, filename uintptr, resolved uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v filename=%v resolved=%v, (%v:)", tls, filename, resolved, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(8208) + defer tls.Free(8208) + var check_dir, up int32 + var cnt, l, l0, nup, p, q, v4 Tsize_t + var k Tssize_t + var z uintptr + var _ /* output at bp+4097 */ [4096]uint8 + var _ /* stack at bp+0 */ [4097]uint8 + _, _, _, _, _, _, _, _, _, _, _ = check_dir, cnt, k, l, l0, nup, p, q, up, z, v4 + cnt = uint32(0) + nup = uint32(0) + check_dir = 0 + if !(filename != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(0) + } + l = Xstrnlen(tls, filename, uint32(4097)) + if !(l != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOENT) + return uintptr(0) + } + if l >= uint32(PATH_MAX) { + goto toolong + } + p = uint32(4097) - l - uint32(1) + q = uint32(0) + _memcpy(tls, bp+uintptr(p), filename, l+uint32(1)) + /* Main loop. Each iteration pops the next part from stack of + * remaining path components and consumes any slashes that follow. + * If not a link, it's moved to output; if a link, contents are + * pushed to the stack. */ + goto restart +restart: + ; +_3: + ; + /* If stack starts with /, the whole component is / or // + * and the output state must be reset. */ + if Int32FromUint8((**(**[4097]uint8)(__ccgo_up(bp)))[p]) == int32('/') { + check_dir = 0 + nup = uint32(0) + q = uint32(0) + v4 = q + q = q + 1 + (**(**[4096]uint8)(__ccgo_up(bp + 4097)))[v4] = uint8('/') + p = p + 1 + /* Initial // is special. */ + if Int32FromUint8((**(**[4097]uint8)(__ccgo_up(bp)))[p]) == int32('/') && Int32FromUint8((**(**[4097]uint8)(__ccgo_up(bp)))[p+uint32(1)]) != int32('/') { + v4 = q + q = q + 1 + (**(**[4096]uint8)(__ccgo_up(bp + 4097)))[v4] = uint8('/') + } + goto _2 + } + z = X__strchrnul(tls, bp+uintptr(p), int32('/')) + v4 = Uint32FromInt32(int32(z) - int32(bp+uintptr(p))) + l = v4 + l0 = v4 + if !(l != 0) && !(check_dir != 0) { + goto _1 + } + /* Skip any . component but preserve check_dir status. */ + if l == uint32(1) && Int32FromUint8((**(**[4097]uint8)(__ccgo_up(bp)))[p]) == int32('.') { + p = p + l + goto _2 + } + /* Copy next component onto output at least temporarily, to + * call readlink, but wait to advance output position until + * determining it's not a link. */ + if q != 0 && Int32FromUint8((**(**[4096]uint8)(__ccgo_up(bp + 4097)))[q-uint32(1)]) != int32('/') { + if !(p != 0) { + goto toolong + } + p = p - 1 + v4 = p + (**(**[4097]uint8)(__ccgo_up(bp)))[v4] = uint8('/') + l = l + 1 + } + if q+l >= uint32(PATH_MAX) { + goto toolong + } + _memcpy(tls, bp+4097+uintptr(q), bp+uintptr(p), l) + (**(**[4096]uint8)(__ccgo_up(bp + 4097)))[q+l] = uint8(0) + p = p + l + up = 0 + if l0 == uint32(2) && Int32FromUint8((**(**[4097]uint8)(__ccgo_up(bp)))[p-uint32(2)]) == int32('.') && Int32FromUint8((**(**[4097]uint8)(__ccgo_up(bp)))[p-uint32(1)]) == int32('.') { + up = int32(1) + /* Any non-.. path components we could cancel start + * after nup repetitions of the 3-byte string "../"; + * if there are none, accumulate .. components to + * later apply to cwd, if needed. */ + if q <= uint32(3)*nup { + nup = nup + 1 + q = q + l + goto _2 + } + /* When previous components are already known to be + * directories, processing .. can skip readlink. */ + if !(check_dir != 0) { + goto skip_readlink + } + } + k = Xreadlink(tls, bp+4097, bp, p) + if Uint32FromInt32(k) == p { + goto toolong + } + if !(k != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOENT) + return uintptr(0) + } + if !(k < 0) { + goto _8 + } + if **(**int32)(__ccgo_up(X__errno_location(tls))) != int32(EINVAL) { + return uintptr(0) + } + goto skip_readlink +skip_readlink: + ; + check_dir = 0 + if up != 0 { + for q != 0 && Int32FromUint8((**(**[4096]uint8)(__ccgo_up(bp + 4097)))[q-uint32(1)]) != int32('/') { + q = q - 1 + } + if q > uint32(1) && (q > uint32(2) || Int32FromUint8((**(**[4096]uint8)(__ccgo_up(bp + 4097)))[0]) != int32('/')) { + q = q - 1 + } + goto _2 + } + if l0 != 0 { + q = q + l + } + check_dir = Int32FromUint8((**(**[4097]uint8)(__ccgo_up(bp)))[p]) + goto _2 +_8: + ; + cnt = cnt + 1 + v4 = cnt + if v4 == uint32(SYMLOOP_MAX) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ELOOP) + return uintptr(0) + } + /* If link contents end in /, strip any slashes already on + * stack to avoid /->// or //->/// or spurious toolong. */ + if Int32FromUint8((**(**[4097]uint8)(__ccgo_up(bp)))[k-int32(1)]) == int32('/') { + for Int32FromUint8((**(**[4097]uint8)(__ccgo_up(bp)))[p]) == int32('/') { + p = p + 1 + } + } + p = p - Uint32FromInt32(k) + Xmemmove(tls, bp+uintptr(p), bp, Uint32FromInt32(k)) + /* Skip the stack advancement in case we have a new + * absolute base path. */ + goto restart + goto _2 +_2: + ; + p = p + _slash_len(tls, bp+uintptr(p)) + goto _3 + goto _1 +_1: + ; + (**(**[4096]uint8)(__ccgo_up(bp + 4097)))[q] = uint8(0) + if Int32FromUint8((**(**[4096]uint8)(__ccgo_up(bp + 4097)))[0]) != int32('/') { + if !(Xgetcwd(tls, bp, uint32(4097)) != 0) { + return uintptr(0) + } + l = _strlen(tls, bp) + /* Cancel any initial .. components. */ + p = uint32(0) + for { + v4 = nup + nup = nup - 1 + if !(v4 != 0) { + break + } + for l > uint32(1) && Int32FromUint8((**(**[4097]uint8)(__ccgo_up(bp)))[l-uint32(1)]) != int32('/') { + l = l - 1 + } + if l > uint32(1) { + l = l - 1 + } + p = p + uint32(2) + if p < q { + p = p + 1 + } + } + if q-p != 0 && Int32FromUint8((**(**[4097]uint8)(__ccgo_up(bp)))[l-uint32(1)]) != int32('/') { + v4 = l + l = l + 1 + (**(**[4097]uint8)(__ccgo_up(bp)))[v4] = uint8('/') + } + if l+(q-p)+uint32(1) >= uint32(PATH_MAX) { + goto toolong + } + Xmemmove(tls, bp+4097+uintptr(l), bp+4097+uintptr(p), q-p+uint32(1)) + _memcpy(tls, bp+4097, bp, l) + q = l + q - p + } + if resolved != 0 { + return _memcpy(tls, resolved, bp+4097, q+uint32(1)) + } else { + return Xstrdup(tls, bp+4097) + } + goto toolong +toolong: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENAMETOOLONG) + return uintptr(0) +} + +func Xsetdomainname(tls *TLS, name uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v len1=%v, (%v:)", tls, name, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_setdomainname), int32(name), Int32FromUint32(len1)))) +} + +func Xsetpriority(tls *TLS, which int32, who Tid_t, prio int32) (r int32) { + if __ccgo_strace { + trc("tls=%v which=%v who=%v prio=%v, (%v:)", tls, which, who, prio, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_setpriority), which, Int32FromUint32(who), prio))) +} + +type Tctx = struct { + Flim [2]uint32 + Fres int32 + Ferr int32 +} + +func _do_setrlimit(tls *TLS, p uintptr) { + var c uintptr + _ = c + c = p + if (*Tctx)(unsafe.Pointer(c)).Ferr > 0 { + return + } + (*Tctx)(unsafe.Pointer(c)).Ferr = int32(-X__syscall2(tls, int32(SYS_setrlimit), (*Tctx)(unsafe.Pointer(c)).Fres, int32(c))) +} + +func Xsetrlimit(tls *TLS, resource int32, rlim uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v resource=%v rlim=%v, (%v:)", tls, resource, rlim, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var ret int32 + var v1, v2 uint64 + var _ /* c at bp+16 */ Tctx + var _ /* tmp at bp+0 */ Trlimit + _, _, _ = ret, v1, v2 + if ^Uint64FromUint64(0) != ^Uint64FromUint64(0) { + **(**Trlimit)(__ccgo_up(bp)) = **(**Trlimit)(__ccgo_up(rlim)) + if (**(**Trlimit)(__ccgo_up(bp))).Frlim_cur >= ^Uint64FromUint64(0) { + (**(**Trlimit)(__ccgo_up(bp))).Frlim_cur = ^Uint64FromUint64(0) + } + if (**(**Trlimit)(__ccgo_up(bp))).Frlim_max >= ^Uint64FromUint64(0) { + (**(**Trlimit)(__ccgo_up(bp))).Frlim_max = ^Uint64FromUint64(0) + } + rlim = bp + } + ret = int32(X__syscall4(tls, int32(SYS_prlimit64), int32(Int32FromInt32(0)), resource, int32(rlim), int32(Int32FromInt32(0)))) + if ret != -int32(ENOSYS) { + return X__syscall_ret(tls, Uint32FromInt32(ret)) + } + if (*Trlimit)(unsafe.Pointer(rlim)).Frlim_cur < uint64(-Uint32FromUint32(1)) { + v1 = (*Trlimit)(unsafe.Pointer(rlim)).Frlim_cur + } else { + v1 = uint64(-Uint32FromUint32(1)) + } + if (*Trlimit)(unsafe.Pointer(rlim)).Frlim_max < uint64(-Uint32FromUint32(1)) { + v2 = (*Trlimit)(unsafe.Pointer(rlim)).Frlim_max + } else { + v2 = uint64(-Uint32FromUint32(1)) + } + **(**Tctx)(__ccgo_up(bp + 16)) = Tctx{ + Flim: [2]uint32{ + 0: uint32(v1), + 1: uint32(v2), + }, + Fres: resource, + Ferr: -int32(1), + } + ___synccall(tls, __ccgo_fp(_do_setrlimit), bp+16) + if (**(**Tctx)(__ccgo_up(bp + 16))).Ferr != 0 { + if (**(**Tctx)(__ccgo_up(bp + 16))).Ferr > 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = (**(**Tctx)(__ccgo_up(bp + 16))).Ferr + } + return -int32(1) + } + return 0 +} + +func Xsyscall(tls *TLS, n int32, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v n=%v va=%v, (%v:)", tls, n, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, b, c, d, e, f Tsyscall_arg_t + var ap Tva_list + _, _, _, _, _, _, _ = a, ap, b, c, d, e, f + ap = va + a = VaInt32(&ap) + b = VaInt32(&ap) + c = VaInt32(&ap) + d = VaInt32(&ap) + e = VaInt32(&ap) + f = VaInt32(&ap) + _ = ap + return X__syscall_ret(tls, Uint32FromInt32(X__syscall6(tls, n, a, b, c, d, e, f))) +} + +const AF_ALG = 38 +const AF_APPLETALK = 5 +const AF_ASH = 18 +const AF_ATMPVC = 8 +const AF_ATMSVC = 20 +const AF_AX25 = 3 +const AF_BLUETOOTH = 31 +const AF_BRIDGE = 7 +const AF_CAIF = 37 +const AF_CAN = 29 +const AF_DECnet = 12 +const AF_ECONET = 19 +const AF_FILE = 1 +const AF_IB = 27 +const AF_IEEE802154 = 36 +const AF_INET = 2 +const AF_INET6 = 10 +const AF_IPX = 4 +const AF_IRDA = 23 +const AF_ISDN = 34 +const AF_IUCV = 32 +const AF_KCM = 41 +const AF_KEY = 15 +const AF_LLC = 26 +const AF_LOCAL = 1 +const AF_MAX = 45 +const AF_MPLS = 28 +const AF_NETBEUI = 13 +const AF_NETLINK = 16 +const AF_NETROM = 6 +const AF_NFC = 39 +const AF_PACKET = 17 +const AF_PHONET = 35 +const AF_PPPOX = 24 +const AF_QIPCRTR = 42 +const AF_RDS = 21 +const AF_ROSE = 11 +const AF_ROUTE = 16 +const AF_RXRPC = 33 +const AF_SECURITY = 14 +const AF_SMC = 43 +const AF_SNA = 22 +const AF_TIPC = 30 +const AF_UNIX = 1 +const AF_UNSPEC = 0 +const AF_VSOCK = 40 +const AF_WANPIPE = 25 +const AF_X25 = 9 +const AF_XDP = 44 +const LOG_ALERT = 1 +const LOG_AUTH = 32 +const LOG_AUTHPRIV = 80 +const LOG_CONS = 2 +const LOG_CRIT = 2 +const LOG_CRON = 72 +const LOG_DAEMON = 24 +const LOG_DEBUG = 7 +const LOG_EMERG = 0 +const LOG_ERR = 3 +const LOG_FACMASK = 1016 +const LOG_FTP = 88 +const LOG_INFO = 6 +const LOG_KERN = 0 +const LOG_LOCAL0 = 128 +const LOG_LOCAL1 = 136 +const LOG_LOCAL2 = 144 +const LOG_LOCAL3 = 152 +const LOG_LOCAL4 = 160 +const LOG_LOCAL5 = 168 +const LOG_LOCAL6 = 176 +const LOG_LOCAL7 = 184 +const LOG_LPR = 48 +const LOG_MAIL = 16 +const LOG_NDELAY = 8 +const LOG_NEWS = 56 +const LOG_NFACILITIES = 24 +const LOG_NOTICE = 5 +const LOG_NOWAIT = 16 +const LOG_ODELAY = 4 +const LOG_PERROR = 32 +const LOG_PID = 1 +const LOG_PRIMASK = 7 +const LOG_SYSLOG = 40 +const LOG_USER = 8 +const LOG_UUCP = 64 +const LOG_WARNING = 4 +const MSG_BATCH = 262144 +const MSG_CMSG_CLOEXEC = 1073741824 +const MSG_CONFIRM = 2048 +const MSG_CTRUNC = 8 +const MSG_DONTROUTE = 4 +const MSG_DONTWAIT = 64 +const MSG_EOR = 128 +const MSG_ERRQUEUE = 8192 +const MSG_FASTOPEN = 536870912 +const MSG_FIN = 512 +const MSG_MORE = 32768 +const MSG_NOSIGNAL = 16384 +const MSG_OOB = 1 +const MSG_PEEK = 2 +const MSG_PROXY = 16 +const MSG_RST = 4096 +const MSG_SYN = 1024 +const MSG_TRUNC = 32 +const MSG_WAITALL = 256 +const MSG_WAITFORONE = 65536 +const MSG_ZEROCOPY = 67108864 +const PF_ALG = 38 +const PF_APPLETALK = 5 +const PF_ASH = 18 +const PF_ATMPVC = 8 +const PF_ATMSVC = 20 +const PF_AX25 = 3 +const PF_BLUETOOTH = 31 +const PF_BRIDGE = 7 +const PF_CAIF = 37 +const PF_CAN = 29 +const PF_DECnet = 12 +const PF_ECONET = 19 +const PF_FILE = 1 +const PF_IB = 27 +const PF_IEEE802154 = 36 +const PF_INET = 2 +const PF_INET6 = 10 +const PF_IPX = 4 +const PF_IRDA = 23 +const PF_ISDN = 34 +const PF_IUCV = 32 +const PF_KCM = 41 +const PF_KEY = 15 +const PF_LLC = 26 +const PF_LOCAL = 1 +const PF_MAX = 45 +const PF_MPLS = 28 +const PF_NETBEUI = 13 +const PF_NETLINK = 16 +const PF_NETROM = 6 +const PF_NFC = 39 +const PF_PACKET = 17 +const PF_PHONET = 35 +const PF_PPPOX = 24 +const PF_QIPCRTR = 42 +const PF_RDS = 21 +const PF_ROSE = 11 +const PF_ROUTE = 16 +const PF_RXRPC = 33 +const PF_SECURITY = 14 +const PF_SMC = 43 +const PF_SNA = 22 +const PF_TIPC = 30 +const PF_UNIX = 1 +const PF_UNSPEC = 0 +const PF_VSOCK = 40 +const PF_WANPIPE = 25 +const PF_X25 = 9 +const PF_XDP = 44 +const SCM_CREDENTIALS = 2 +const SCM_RIGHTS = 1 +const SCM_TIMESTAMP = 63 +const SCM_TIMESTAMPING = 65 +const SCM_TIMESTAMPING_OPT_STATS = 54 +const SCM_TIMESTAMPING_PKTINFO = 58 +const SCM_TIMESTAMPNS = 64 +const SCM_TXTIME = 61 +const SCM_WIFI_STATUS = 41 +const SHUT_RD = 0 +const SHUT_RDWR = 2 +const SHUT_WR = 1 +const SOCK_CLOEXEC = 524288 +const SOCK_DCCP = 6 +const SOCK_DGRAM = 2 +const SOCK_NONBLOCK = 2048 +const SOCK_PACKET = 10 +const SOCK_RAW = 3 +const SOCK_RDM = 4 +const SOCK_SEQPACKET = 5 +const SOCK_STREAM = 1 +const SOL_AAL = 265 +const SOL_ALG = 279 +const SOL_ATM = 264 +const SOL_BLUETOOTH = 274 +const SOL_CAIF = 278 +const SOL_DCCP = 269 +const SOL_DECNET = 261 +const SOL_ICMPV6 = 58 +const SOL_IP = 0 +const SOL_IPV6 = 41 +const SOL_IRDA = 266 +const SOL_IUCV = 277 +const SOL_KCM = 281 +const SOL_LLC = 268 +const SOL_NETBEUI = 267 +const SOL_NETLINK = 270 +const SOL_NFC = 280 +const SOL_PACKET = 263 +const SOL_PNPIPE = 275 +const SOL_PPPOL2TP = 273 +const SOL_RAW = 255 +const SOL_RDS = 276 +const SOL_RXRPC = 272 +const SOL_SOCKET = 1 +const SOL_TIPC = 271 +const SOL_TLS = 282 +const SOL_X25 = 262 +const SOL_XDP = 283 +const SOMAXCONN = 128 +const SO_ACCEPTCONN = 30 +const SO_ATTACH_BPF = 50 +const SO_ATTACH_FILTER = 26 +const SO_ATTACH_REUSEPORT_CBPF = 51 +const SO_ATTACH_REUSEPORT_EBPF = 52 +const SO_BINDTODEVICE = 25 +const SO_BINDTOIFINDEX = 62 +const SO_BPF_EXTENSIONS = 48 +const SO_BROADCAST = 6 +const SO_BSDCOMPAT = 14 +const SO_BUSY_POLL = 46 +const SO_BUSY_POLL_BUDGET = 70 +const SO_CNX_ADVICE = 53 +const SO_COOKIE = 57 +const SO_DEBUG = 1 +const SO_DETACH_BPF = 27 +const SO_DETACH_FILTER = 27 +const SO_DETACH_REUSEPORT_BPF = 68 +const SO_DOMAIN = 39 +const SO_DONTROUTE = 5 +const SO_ERROR = 4 +const SO_GET_FILTER = 26 +const SO_INCOMING_CPU = 49 +const SO_INCOMING_NAPI_ID = 56 +const SO_KEEPALIVE = 9 +const SO_LINGER = 13 +const SO_LOCK_FILTER = 44 +const SO_MARK = 36 +const SO_MAX_PACING_RATE = 47 +const SO_MEMINFO = 55 +const SO_NOFCS = 43 +const SO_NO_CHECK = 11 +const SO_OOBINLINE = 10 +const SO_PASSCRED = 16 +const SO_PASSSEC = 34 +const SO_PEEK_OFF = 42 +const SO_PEERCRED = 17 +const SO_PEERGROUPS = 59 +const SO_PEERNAME = 28 +const SO_PEERSEC = 31 +const SO_PREFER_BUSY_POLL = 69 +const SO_PRIORITY = 12 +const SO_PROTOCOL = 38 +const SO_RCVBUF = 8 +const SO_RCVBUFFORCE = 33 +const SO_RCVLOWAT = 18 +const SO_RCVTIMEO = 66 +const SO_REUSEADDR = 2 +const SO_REUSEPORT = 15 +const SO_RXQ_OVFL = 40 +const SO_SECURITY_AUTHENTICATION = 22 +const SO_SECURITY_ENCRYPTION_NETWORK = 24 +const SO_SECURITY_ENCRYPTION_TRANSPORT = 23 +const SO_SELECT_ERR_QUEUE = 45 +const SO_SNDBUF = 7 +const SO_SNDBUFFORCE = 32 +const SO_SNDLOWAT = 19 +const SO_SNDTIMEO = 67 +const SO_TIMESTAMP = 63 +const SO_TIMESTAMPING = 65 +const SO_TIMESTAMPNS = 64 +const SO_TXTIME = 61 +const SO_TYPE = 3 +const SO_WIFI_STATUS = 41 +const SO_ZEROCOPY = 60 + +type Tsocklen_t = uint32 + +type Tsa_family_t = uint16 + +type Tmsghdr = struct { + Fmsg_name uintptr + Fmsg_namelen Tsocklen_t + Fmsg_iov uintptr + Fmsg_iovlen int32 + Fmsg_control uintptr + Fmsg_controllen Tsocklen_t + Fmsg_flags int32 +} + +type Tcmsghdr = struct { + Fcmsg_len Tsocklen_t + Fcmsg_level int32 + Fcmsg_type int32 +} + +type Tlinger = struct { + Fl_onoff int32 + Fl_linger int32 +} + +type Tsockaddr = struct { + Fsa_family Tsa_family_t + Fsa_data [14]uint8 +} + +type Tsockaddr_storage = struct { + Fss_family Tsa_family_t + F__ss_padding [122]uint8 + F__ss_align uint32 +} + +var _lock2 [1]int32 +var _log_ident [32]uint8 +var _log_opt int32 +var _log_facility = Int32FromInt32(1) << Int32FromInt32(3) +var _log_mask = int32(0xff) +var _log_fd = -int32(1) + +func Xsetlogmask(tls *TLS, maskpri int32) (r int32) { + if __ccgo_strace { + trc("tls=%v maskpri=%v, (%v:)", tls, maskpri, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret int32 + _ = ret + ___lock(tls, uintptr(unsafe.Pointer(&_lock2))) + ret = _log_mask + if maskpri != 0 { + _log_mask = maskpri + } + ___unlock(tls, uintptr(unsafe.Pointer(&_lock2))) + return ret +} + +var _log_addr = struct { + Fsun_family int16 + Fsun_path [9]uint8 +}{ + Fsun_family: int16(PF_LOCAL), + Fsun_path: [9]uint8{'/', 'd', 'e', 'v', '/', 'l', 'o', 'g'}, +} + +func Xcloselog(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* cs at bp+0 */ int32 + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp) + ___lock(tls, uintptr(unsafe.Pointer(&_lock2))) + Xclose(tls, _log_fd) + _log_fd = -int32(1) + ___unlock(tls, uintptr(unsafe.Pointer(&_lock2))) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp)), uintptr(0)) +} + +func ___openlog(tls *TLS) { + _log_fd = Xsocket(tls, int32(PF_LOCAL), Int32FromInt32(SOCK_DGRAM)|Int32FromInt32(SOCK_CLOEXEC), 0) + if _log_fd >= 0 { + Xconnect(tls, _log_fd, uintptr(unsafe.Pointer(&_log_addr)), uint32(12)) + } +} + +func Xopenlog(tls *TLS, ident uintptr, opt int32, facility int32) { + if __ccgo_strace { + trc("tls=%v ident=%v opt=%v facility=%v, (%v:)", tls, ident, opt, facility, origin(2)) + } + bp := tls.Alloc(16) + defer tls.Free(16) + var n Tsize_t + var _ /* cs at bp+0 */ int32 + _ = n + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp) + ___lock(tls, uintptr(unsafe.Pointer(&_lock2))) + if ident != 0 { + n = Xstrnlen(tls, ident, Uint32FromInt64(32)-Uint32FromInt32(1)) + _memcpy(tls, uintptr(unsafe.Pointer(&_log_ident)), ident, n) + _log_ident[n] = uint8(0) + } else { + _log_ident[0] = uint8(0) + } + _log_opt = opt + _log_facility = facility + if opt&int32(LOG_NDELAY) != 0 && _log_fd < 0 { + ___openlog(tls) + } + ___unlock(tls, uintptr(unsafe.Pointer(&_lock2))) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp)), uintptr(0)) +} + +func _is_lost_conn(tls *TLS, e int32) (r int32) { + return BoolInt32(e == int32(ECONNREFUSED) || e == int32(ECONNRESET) || e == int32(ENOTCONN) || e == int32(EPIPE)) +} + +func __vsyslog(tls *TLS, priority int32, message uintptr, ap Tva_list) { + bp := tls.Alloc(1168) + defer tls.Free(1168) + var errno_save, fd, l, l2, pid, v1 int32 + var _ /* buf at bp+68 */ [1024]uint8 + var _ /* hlen at bp+1092 */ int32 + var _ /* now at bp+16 */ Ttime_t + var _ /* timebuf at bp+0 */ [16]uint8 + var _ /* tm at bp+24 */ Ttm + _, _, _, _, _, _ = errno_save, fd, l, l2, pid, v1 + errno_save = **(**int32)(__ccgo_up(X__errno_location(tls))) + if _log_fd < 0 { + ___openlog(tls) + } + if !(priority&Int32FromInt32(LOG_FACMASK) != 0) { + priority = priority | _log_facility + } + **(**Ttime_t)(__ccgo_up(bp + 16)) = Xtime(tls, UintptrFromInt32(0)) + Xgmtime_r(tls, bp+16, bp+24) + Xstrftime_l(tls, bp, uint32(16), __ccgo_ts+836, bp+24, uintptr(unsafe.Pointer(&X__c_locale))) + if _log_opt&int32(LOG_PID) != 0 { + v1 = Xgetpid(tls) + } else { + v1 = 0 + } + pid = v1 + l = Xsnprintf(tls, bp+68, uint32(1024), __ccgo_ts+845, VaList(bp+1104, priority, bp, bp+1092, uintptr(unsafe.Pointer(&_log_ident)), __ccgo_ts+867+BoolUintptr(!(pid != 0)), pid, __ccgo_ts+869+BoolUintptr(!(pid != 0)))) + **(**int32)(__ccgo_up(X__errno_location(tls))) = errno_save + l2 = Xvsnprintf(tls, bp+68+uintptr(l), uint32(1024)-Uint32FromInt32(l), message, ap) + if l2 >= 0 { + if Uint32FromInt32(l2) >= uint32(1024)-Uint32FromInt32(l) { + l = Int32FromUint32(Uint32FromInt64(1024) - Uint32FromInt32(1)) + } else { + l = l + l2 + } + if Int32FromUint8((**(**[1024]uint8)(__ccgo_up(bp + 68)))[l-int32(1)]) != int32('\n') { + v1 = l + l = l + 1 + (**(**[1024]uint8)(__ccgo_up(bp + 68)))[v1] = uint8('\n') + } + if Xsend(tls, _log_fd, bp+68, Uint32FromInt32(l), 0) < 0 && (!(_is_lost_conn(tls, **(**int32)(__ccgo_up(X__errno_location(tls)))) != 0) || Xconnect(tls, _log_fd, uintptr(unsafe.Pointer(&_log_addr)), uint32(12)) < 0 || Xsend(tls, _log_fd, bp+68, Uint32FromInt32(l), 0) < 0) && _log_opt&int32(LOG_CONS) != 0 { + fd = Xopen(tls, __ccgo_ts+564, Int32FromInt32(O_WRONLY)|Int32FromInt32(O_NOCTTY)|Int32FromInt32(O_CLOEXEC), 0) + if fd >= 0 { + Xdprintf(tls, fd, __ccgo_ts+871, VaList(bp+1104, l-**(**int32)(__ccgo_up(bp + 1092)), bp+68+uintptr(**(**int32)(__ccgo_up(bp + 1092))))) + Xclose(tls, fd) + } + } + if _log_opt&int32(LOG_PERROR) != 0 { + Xdprintf(tls, int32(2), __ccgo_ts+871, VaList(bp+1104, l-**(**int32)(__ccgo_up(bp + 1092)), bp+68+uintptr(**(**int32)(__ccgo_up(bp + 1092))))) + } + } +} + +func ___vsyslog(tls *TLS, priority int32, message uintptr, ap Tva_list) { + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* cs at bp+0 */ int32 + if !(_log_mask&(Int32FromInt32(1)<<(priority&Int32FromInt32(7))) != 0) || priority & ^Int32FromInt32(0x3ff) != 0 { + return + } + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp) + ___lock(tls, uintptr(unsafe.Pointer(&_lock2))) + __vsyslog(tls, priority, message, ap) + ___unlock(tls, uintptr(unsafe.Pointer(&_lock2))) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp)), uintptr(0)) +} + +func Xsyslog(tls *TLS, priority int32, message uintptr, va uintptr) { + if __ccgo_strace { + trc("tls=%v priority=%v message=%v va=%v, (%v:)", tls, priority, message, va, origin(2)) + } + var ap Tva_list + _ = ap + ap = va + ___vsyslog(tls, priority, message, ap) + _ = ap +} + +type Tutsname1 = struct { + Fsysname [65]uint8 + Fnodename [65]uint8 + Frelease [65]uint8 + Fversion [65]uint8 + Fmachine [65]uint8 + F__domainname [65]uint8 +} + +func Xuname(tls *TLS, uts uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v uts=%v, (%v:)", tls, uts, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall1(tls, int32(SYS_uname), int32(uts)))) +} + +func X__madvise(tls *TLS, addr uintptr, len1 Tsize_t, advice int32) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v len1=%v advice=%v, (%v:)", tls, addr, len1, advice, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_madvise), int32(addr), Int32FromUint32(len1), advice))) +} + +func Xmadvise(tls *TLS, addr uintptr, len1 Tsize_t, advice int32) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v len1=%v advice=%v, (%v:)", tls, addr, len1, advice, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__madvise(tls, addr, len1, advice) +} + +func Xmincore(tls *TLS, addr uintptr, len1 Tsize_t, vec uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v len1=%v vec=%v, (%v:)", tls, addr, len1, vec, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_mincore), int32(addr), Int32FromUint32(len1), int32(vec)))) +} + +func Xmlock(tls *TLS, addr uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v len1=%v, (%v:)", tls, addr, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_mlock), int32(addr), Int32FromUint32(len1)))) +} + +func Xmlockall(tls *TLS, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v flags=%v, (%v:)", tls, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall1(tls, int32(SYS_mlockall), flags))) +} + +const OFF_MASK = 4095 +const UNIT = 4096 + +func _dummy5(tls *TLS) { +} + +func X__mmap(tls *TLS, start uintptr, len1 Tsize_t, prot int32, flags int32, fd int32, off Toff_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v start=%v len1=%v prot=%v flags=%v fd=%v off=%v, (%v:)", tls, start, len1, prot, flags, fd, off, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret int32 + _ = ret + if Uint64FromInt64(off)&(-Uint64FromUint64(0x2000)<<(Uint32FromInt32(8)*Uint32FromInt64(4)-Uint32FromInt32(1))|(Uint64FromUint64(4096)-Uint64FromInt32(1))) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(-Int32FromInt32(1)) + } + if len1 >= Uint32FromInt32(Int32FromInt32(INT32_MAX)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOMEM) + return uintptr(-Int32FromInt32(1)) + } + if flags&int32(MAP_FIXED) != 0 { + _dummy5(tls) + } + ret = X__syscall6(tls, int32(SYS_mmap2), int32(start), Int32FromUint32(len1), prot, flags, fd, Int32FromUint64(Uint64FromInt64(off)/Uint64FromUint64(4096))) + /* Fixup incorrect EPERM from kernel. */ + if ret == -int32(EPERM) && !(start != 0) && flags&int32(MAP_ANON) != 0 && !(flags&Int32FromInt32(MAP_FIXED) != 0) { + ret = -int32(ENOMEM) + } + return uintptr(X__syscall_ret(tls, Uint32FromInt32(ret))) +} + +func Xmmap(tls *TLS, start uintptr, len1 Tsize_t, prot int32, flags int32, fd int32, off Toff_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v start=%v len1=%v prot=%v flags=%v fd=%v off=%v, (%v:)", tls, start, len1, prot, flags, fd, off, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__mmap(tls, start, len1, prot, flags, fd, off) +} + +func X__mprotect(tls *TLS, addr uintptr, len1 Tsize_t, prot int32) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v len1=%v prot=%v, (%v:)", tls, addr, len1, prot, origin(2)) + defer func() { trc("-> %v", r) }() + } + var end, start Tsize_t + _, _ = end, start + start = uint32(addr) & -X__libc.Fpage_size + end = uint32(addr+uintptr(len1)+uintptr(X__libc.Fpage_size)-UintptrFromInt32(1)) & -X__libc.Fpage_size + return X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_mprotect), Int32FromUint32(start), Int32FromUint32(end-start), prot))) +} + +func Xmprotect(tls *TLS, addr uintptr, len1 Tsize_t, prot int32) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v len1=%v prot=%v, (%v:)", tls, addr, len1, prot, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__mprotect(tls, addr, len1, prot) +} + +func _dummy6(tls *TLS) { +} + +func X__mremap(tls *TLS, old_addr uintptr, old_len Tsize_t, new_len Tsize_t, flags int32, va uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v old_addr=%v old_len=%v new_len=%v flags=%v va=%v, (%v:)", tls, old_addr, old_len, new_len, flags, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var new_addr uintptr + _, _ = ap, new_addr + new_addr = uintptr(0) + if new_len >= Uint32FromInt32(Int32FromInt32(INT32_MAX)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOMEM) + return uintptr(-Int32FromInt32(1)) + } + if flags&int32(MREMAP_FIXED) != 0 { + _dummy6(tls) + ap = va + new_addr = VaUintptr(&ap) + _ = ap + } + return uintptr(X__syscall_ret(tls, Uint32FromInt32(X__syscall5(tls, int32(SYS_mremap), int32(old_addr), Int32FromUint32(old_len), Int32FromUint32(new_len), flags, int32(new_addr))))) +} + +func Xmremap(tls *TLS, old_addr uintptr, old_len Tsize_t, new_len Tsize_t, flags int32, va uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v old_addr=%v old_len=%v new_len=%v flags=%v va=%v, (%v:)", tls, old_addr, old_len, new_len, flags, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__mremap(tls, old_addr, old_len, new_len, flags, va) +} + +func Xmsync(tls *TLS, start uintptr, len1 Tsize_t, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v start=%v len1=%v flags=%v, (%v:)", tls, start, len1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(___syscall_cp(tls, int32(SYS_msync), int32(start), Int32FromUint32(len1), flags, 0, 0, 0))) +} + +func Xmunlock(tls *TLS, addr uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v len1=%v, (%v:)", tls, addr, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_munlock), int32(addr), Int32FromUint32(len1)))) +} + +func Xmunlockall(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall0(tls, int32(SYS_munlockall)))) +} + +func _dummy7(tls *TLS) { +} + +func X__munmap(tls *TLS, start uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v start=%v len1=%v, (%v:)", tls, start, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + _dummy7(tls) + return X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_munmap), int32(start), Int32FromUint32(len1)))) +} + +func Xmunmap(tls *TLS, start uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v start=%v len1=%v, (%v:)", tls, start, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__munmap(tls, start, len1) +} + +func Xposix_madvise(tls *TLS, addr uintptr, len1 Tsize_t, advice int32) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v len1=%v advice=%v, (%v:)", tls, addr, len1, advice, origin(2)) + defer func() { trc("-> %v", r) }() + } + if advice == int32(MADV_DONTNEED) { + return 0 + } + return int32(-X__syscall3(tls, int32(SYS_madvise), int32(addr), Int32FromUint32(len1), advice)) +} + +func X__shm_mapname(tls *TLS, name uintptr, buf uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v buf=%v, (%v:)", tls, name, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + var p, v1 uintptr + _, _ = p, v1 + for Int32FromUint8(**(**uint8)(__ccgo_up(name))) == int32('/') { + name = name + 1 + } + v1 = X__strchrnul(tls, name, int32('/')) + p = v1 + if **(**uint8)(__ccgo_up(v1)) != 0 || p == name || int32(p)-int32(name) <= int32(2) && Int32FromUint8(**(**uint8)(__ccgo_up(name))) == int32('.') && Int32FromUint8(**(**uint8)(__ccgo_up(p + uintptr(-Int32FromInt32(1))))) == int32('.') { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(0) + } + if int32(p)-int32(name) > int32(NAME_MAX) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENAMETOOLONG) + return uintptr(0) + } + _memcpy(tls, buf, __ccgo_ts+876, uint32(9)) + _memcpy(tls, buf+uintptr(9), name, Uint32FromInt32(int32(p)-int32(name)+int32(1))) + return buf +} + +func Xshm_open(tls *TLS, name uintptr, flag int32, mode Tmode_t) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v flag=%v mode=%v, (%v:)", tls, name, flag, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(288) + defer tls.Free(288) + var fd int32 + var v1 uintptr + var _ /* buf at bp+4 */ [265]uint8 + var _ /* cs at bp+0 */ int32 + _, _ = fd, v1 + v1 = X__shm_mapname(tls, name, bp+4) + name = v1 + if !(v1 != 0) { + return -int32(1) + } + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp) + fd = Xopen(tls, name, flag|int32(O_NOFOLLOW)|int32(O_CLOEXEC)|int32(O_NONBLOCK), VaList(bp+280, mode)) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp)), uintptr(0)) + return fd +} + +func Xshm_unlink(tls *TLS, name uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(272) + defer tls.Free(272) + var v1 uintptr + var _ /* buf at bp+0 */ [265]uint8 + _ = v1 + v1 = X__shm_mapname(tls, name, bp) + name = v1 + if !(v1 != 0) { + return -int32(1) + } + return Xunlink(tls, name) +} + +const SA = 194 +const SB = 244 +const bittab = 0 + +func Xbtowc(tls *TLS, c int32) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + var b, v3 int32 + var v1, v2 uint32 + _, _, _, _ = b, v1, v2, v3 + b = Int32FromUint8(Uint8FromInt32(c)) + if Uint32FromInt32(b) < uint32(128) { + v1 = Uint32FromInt32(b) + } else { + if !!(**(**uintptr)(__ccgo_up((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale)) != 0) { + v3 = int32(4) + } else { + v3 = int32(1) + } + if v3 == int32(1) && c != -int32(1) { + v2 = Uint32FromInt32(Int32FromInt32(0xdfff) & int32(int8(c))) + } else { + v2 = uint32(0xffffffff) + } + v1 = v2 + } + return v1 +} + +type Tchar16_t = uint16 + +type Tchar32_t = uint32 + +func Xc16rtomb(tls *TLS, s uintptr, c16 Tchar16_t, ps uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v c16=%v ps=%v, (%v:)", tls, s, c16, ps, origin(2)) + defer func() { trc("-> %v", r) }() + } + var wc Twchar_t + var x uintptr + _, _ = wc, x + if !(ps != 0) { + ps = uintptr(unsafe.Pointer(&_internal_state)) + } + x = ps + if !(s != 0) { + if **(**uint32)(__ccgo_up(x)) != 0 { + goto ilseq + } + return uint32(1) + } + if !(**(**uint32)(__ccgo_up(x)) != 0) && uint32(c16)-uint32(0xd800) < uint32(0x400) { + **(**uint32)(__ccgo_up(x)) = Uint32FromInt32((Int32FromUint16(c16) - int32(0xd7c0)) << int32(10)) + return uint32(0) + } + if **(**uint32)(__ccgo_up(x)) != 0 { + if uint32(c16)-uint32(0xdc00) >= uint32(0x400) { + goto ilseq + } else { + wc = **(**uint32)(__ccgo_up(x)) + uint32(c16) - uint32(0xdc00) + } + **(**uint32)(__ccgo_up(x)) = uint32(0) + } else { + wc = uint32(c16) + } + return Xwcrtomb(tls, s, wc, uintptr(0)) + goto ilseq +ilseq: + ; + **(**uint32)(__ccgo_up(x)) = uint32(0) + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EILSEQ) + return Uint32FromInt32(-Int32FromInt32(1)) +} + +var _internal_state uint32 + +func Xc32rtomb(tls *TLS, s uintptr, c32 Tchar32_t, ps uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v c32=%v ps=%v, (%v:)", tls, s, c32, ps, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwcrtomb(tls, s, c32, ps) +} + +func Xmblen(tls *TLS, s uintptr, n Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v, (%v:)", tls, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xmbtowc(tls, uintptr(0), s, n) +} + +func Xmbrlen(tls *TLS, s uintptr, n Tsize_t, st uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v st=%v, (%v:)", tls, s, n, st, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 uintptr + _ = v1 + if st != 0 { + v1 = st + } else { + v1 = uintptr(unsafe.Pointer(&_internal)) + } + return Xmbrtowc(tls, uintptr(0), s, n, v1) +} + +var _internal uint32 + +func Xmbrtoc16(tls *TLS, pc16 uintptr, s uintptr, n Tsize_t, ps uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v pc16=%v s=%v n=%v ps=%v, (%v:)", tls, pc16, s, n, ps, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var pending uintptr + var ret Tsize_t + var _ /* wc at bp+0 */ Twchar_t + _, _ = pending, ret + if !(ps != 0) { + ps = uintptr(unsafe.Pointer(&_internal_state1)) + } + pending = ps + if !(s != 0) { + return Xmbrtoc16(tls, uintptr(0), __ccgo_ts, uint32(1), ps) + } + /* mbrtowc states for partial UTF-8 characters have the high bit set; + * we use nonzero states without high bit for pending surrogates. */ + if Int32FromUint32(**(**uint32)(__ccgo_up(pending))) > 0 { + if pc16 != 0 { + **(**Tchar16_t)(__ccgo_up(pc16)) = uint16(**(**uint32)(__ccgo_up(pending))) + } + **(**uint32)(__ccgo_up(pending)) = uint32(0) + return Uint32FromInt32(-Int32FromInt32(3)) + } + ret = Xmbrtowc(tls, bp, s, n, ps) + if ret <= uint32(4) { + if **(**Twchar_t)(__ccgo_up(bp)) >= uint32(0x10000) { + **(**uint32)(__ccgo_up(pending)) = **(**Twchar_t)(__ccgo_up(bp))&uint32(0x3ff) + uint32(0xdc00) + **(**Twchar_t)(__ccgo_up(bp)) = uint32(0xd7c0) + **(**Twchar_t)(__ccgo_up(bp))>>Int32FromInt32(10) + } + if pc16 != 0 { + **(**Tchar16_t)(__ccgo_up(pc16)) = uint16(**(**Twchar_t)(__ccgo_up(bp))) + } + } + return ret +} + +var _internal_state1 uint32 + +func Xmbrtoc32(tls *TLS, pc32 uintptr, s uintptr, n Tsize_t, ps uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v pc32=%v s=%v n=%v ps=%v, (%v:)", tls, pc32, s, n, ps, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ret Tsize_t + var _ /* wc at bp+0 */ Twchar_t + _ = ret + if !(ps != 0) { + ps = uintptr(unsafe.Pointer(&_internal_state2)) + } + if !(s != 0) { + return Xmbrtoc32(tls, uintptr(0), __ccgo_ts, uint32(1), ps) + } + ret = Xmbrtowc(tls, bp, s, n, ps) + if ret <= uint32(4) && pc32 != 0 { + **(**Tchar32_t)(__ccgo_up(pc32)) = **(**Twchar_t)(__ccgo_up(bp)) + } + return ret +} + +var _internal_state2 uint32 + +func Xmbrtowc(tls *TLS, wc uintptr, src uintptr, n Tsize_t, st uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v wc=%v src=%v n=%v st=%v, (%v:)", tls, wc, src, n, st, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var N Tsize_t + var c uint32 + var s, v3 uintptr + var v1 Twchar_t + var v2 int32 + var _ /* dummy at bp+0 */ Twchar_t + _, _, _, _, _, _ = N, c, s, v1, v2, v3 + s = src + N = n + if !(st != 0) { + st = uintptr(unsafe.Pointer(&_internal_state3)) + } + c = **(**uint32)(__ccgo_up(st)) + if !(s != 0) { + if c != 0 { + goto ilseq + } + return uint32(0) + } else { + if !(wc != 0) { + wc = bp + } + } + if !(n != 0) { + return Uint32FromInt32(-Int32FromInt32(2)) + } + if !(c != 0) { + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) < int32(0x80) { + v1 = uint32(**(**uint8)(__ccgo_up(s))) + **(**Twchar_t)(__ccgo_up(wc)) = v1 + return BoolUint32(!!(v1 != 0)) + } + if !!(**(**uintptr)(__ccgo_up((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale)) != 0) { + v2 = int32(4) + } else { + v2 = int32(1) + } + if v2 == int32(1) { + **(**Twchar_t)(__ccgo_up(wc)) = Uint32FromInt32(Int32FromInt32(0xdfff) & int32(Int8FromUint8(**(**uint8)(__ccgo_up(s))))) + return Uint32FromInt32(1) + } + if uint32(**(**uint8)(__ccgo_up(s)))-uint32(0xc2) > Uint32FromUint32(0xf4)-Uint32FromUint32(0xc2) { + goto ilseq + } + v3 = s + s = s + 1 + c = X__fsmu8[uint32(**(**uint8)(__ccgo_up(v3)))-uint32(0xc2)] + n = n - 1 + } + if n != 0 { + if (Int32FromUint8(**(**uint8)(__ccgo_up(s)))>>int32(3)-int32(0x10)|(Int32FromUint8(**(**uint8)(__ccgo_up(s)))>>int32(3)+Int32FromUint32(c)>>Int32FromInt32(26))) & ^Int32FromInt32(7) != 0 { + goto ilseq + } + goto loop + loop: + ; + v3 = s + s = s + 1 + c = c<= uint32(0x40) { + goto ilseq + } + goto loop + } + } + **(**uint32)(__ccgo_up(st)) = c + return Uint32FromInt32(-Int32FromInt32(2)) + goto ilseq +ilseq: + ; + **(**uint32)(__ccgo_up(st)) = uint32(0) + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EILSEQ) + return Uint32FromInt32(-Int32FromInt32(1)) +} + +var _internal_state3 uint32 + +func Xmbsinit(tls *TLS, st uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v st=%v, (%v:)", tls, st, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(!(st != 0) || !(**(**uint32)(__ccgo_up(st)) != 0)) +} + +func Xmbsnrtowcs(tls *TLS, wcs uintptr, src uintptr, n Tsize_t, wn Tsize_t, st uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v wcs=%v src=%v n=%v wn=%v st=%v, (%v:)", tls, wcs, src, n, wn, st, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(1040) + defer tls.Free(1040) + var cnt, l, n2, v1 Tsize_t + var tmp_s, ws uintptr + var v2 bool + var v3 uint32 + var _ /* s at bp+1024 */ uintptr + var _ /* wbuf at bp+0 */ [256]Twchar_t + _, _, _, _, _, _, _, _ = cnt, l, n2, tmp_s, ws, v1, v2, v3 + cnt = uint32(0) + **(**uintptr)(__ccgo_up(bp + 1024)) = **(**uintptr)(__ccgo_up(src)) + if !(wcs != 0) { + ws = bp + wn = Uint32FromInt64(1024) / Uint32FromInt64(4) + } else { + ws = wcs + } + /* making sure output buffer size is at most n/4 will ensure + * that mbsrtowcs never reads more than n input bytes. thus + * we can use mbsrtowcs as long as it's practical.. */ + for { + if v2 = **(**uintptr)(__ccgo_up(bp + 1024)) != 0 && wn != 0; v2 { + v1 = n / Uint32FromInt32(4) + n2 = v1 + } + if !(v2 && (v1 >= wn || n2 > uint32(32))) { + break + } + if n2 >= wn { + n2 = wn + } + tmp_s = **(**uintptr)(__ccgo_up(bp + 1024)) + l = Xmbsrtowcs(tls, ws, bp+1024, n2, st) + if !(l+Uint32FromInt32(1) != 0) { + cnt = l + wn = uint32(0) + break + } + if ws != bp { + ws = ws + uintptr(l)*4 + wn = wn - l + } + if **(**uintptr)(__ccgo_up(bp + 1024)) != 0 { + v3 = n - Uint32FromInt32(int32(**(**uintptr)(__ccgo_up(bp + 1024)))-int32(tmp_s)) + } else { + v3 = uint32(0) + } + n = v3 + cnt = cnt + l + } + if **(**uintptr)(__ccgo_up(bp + 1024)) != 0 { + for wn != 0 && n != 0 { + l = Xmbrtowc(tls, ws, **(**uintptr)(__ccgo_up(bp + 1024)), n, st) + if l+uint32(2) <= uint32(2) { + if !(l+Uint32FromInt32(1) != 0) { + cnt = l + break + } + if !(l != 0) { + **(**uintptr)(__ccgo_up(bp + 1024)) = uintptr(0) + break + } + /* have to roll back partial character */ + **(**uint32)(__ccgo_up(st)) = uint32(0) + break + } + **(**uintptr)(__ccgo_up(bp + 1024)) = **(**uintptr)(__ccgo_up(bp + 1024)) + uintptr(l) + n = n - l + /* safe - this loop runs fewer than sizeof(wbuf)/8 times */ + ws += 4 + wn = wn - 1 + cnt = cnt + 1 + } + } + if wcs != 0 { + **(**uintptr)(__ccgo_up(src)) = **(**uintptr)(__ccgo_up(bp + 1024)) + } + return cnt +} + +func Xmbsrtowcs(tls *TLS, ws uintptr, src uintptr, wn Tsize_t, st uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v ws=%v src=%v wn=%v st=%v, (%v:)", tls, ws, src, wn, st, origin(2)) + defer func() { trc("-> %v", r) }() + } + var c, v1 uint32 + var s, v5, v6 uintptr + var wn0 Tsize_t + var v2 bool + var v3 int32 + _, _, _, _, _, _, _, _ = c, s, wn0, v1, v2, v3, v5, v6 + s = **(**uintptr)(__ccgo_up(src)) + wn0 = wn + c = uint32(0) + if v2 = st != 0; v2 { + v1 = **(**uint32)(__ccgo_up(st)) + c = v1 + } + if v2 && v1 != 0 { + if ws != 0 { + **(**uint32)(__ccgo_up(st)) = uint32(0) + goto resume + } else { + goto resume0 + } + } + if !!(**(**uintptr)(__ccgo_up((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale)) != 0) { + v3 = int32(4) + } else { + v3 = int32(1) + } + if v3 == int32(1) { + if !(ws != 0) { + return _strlen(tls, s) + } + for { + if !(wn != 0) { + **(**uintptr)(__ccgo_up(src)) = s + return wn0 + } + if !(**(**uint8)(__ccgo_up(s)) != 0) { + break + } + v5 = s + s = s + 1 + c = uint32(**(**uint8)(__ccgo_up(v5))) + v5 = ws + ws += 4 + **(**Twchar_t)(__ccgo_up(v5)) = Uint32FromInt32(Int32FromInt32(0xdfff) & int32(Int8FromUint32(c))) + wn = wn - 1 + goto _4 + _4: + } + **(**Twchar_t)(__ccgo_up(ws)) = uint32(0) + **(**uintptr)(__ccgo_up(src)) = uintptr(0) + return wn0 - wn + } + if !!(ws != 0) { + goto _7 + } +_11: + ; + if uint32(**(**uint8)(__ccgo_up(s)))-uint32(1) < uint32(0x7f) && uint32(s)%uint32(4) == uint32(0) { + for !((**(**uint32)(__ccgo_up(s))|(**(**uint32)(__ccgo_up(s))-Uint32FromInt32(0x01010101)))&Uint32FromUint32(0x80808080) != 0) { + s = s + uintptr(4) + wn = wn - uint32(4) + } + } + if uint32(**(**uint8)(__ccgo_up(s)))-uint32(1) < uint32(0x7f) { + s = s + 1 + wn = wn - 1 + goto _10 + } + if uint32(**(**uint8)(__ccgo_up(s)))-uint32(0xc2) > Uint32FromUint32(0xf4)-Uint32FromUint32(0xc2) { + goto _9 + } + v5 = s + s = s + 1 + c = X__fsmu8[uint32(**(**uint8)(__ccgo_up(v5)))-uint32(0xc2)] + goto resume0 +resume0: + ; + if (Int32FromUint8(**(**uint8)(__ccgo_up(s)))>>int32(3)-int32(0x10)|(Int32FromUint8(**(**uint8)(__ccgo_up(s)))>>int32(3)+Int32FromUint32(c)>>Int32FromInt32(26))) & ^Int32FromInt32(7) != 0 { + s = s - 1 + goto _9 + } + s = s + 1 + if c&(Uint32FromUint32(1)<= uint32(0x40) { + s = s - uintptr(2) + goto _9 + } + s = s + 1 + if c&(Uint32FromUint32(1)<= uint32(0x40) { + s = s - uintptr(3) + goto _9 + } + s = s + 1 + } + } + wn = wn - 1 + c = uint32(0) + goto _10 +_10: + ; + goto _11 + goto _9 +_9: + ; + goto _8 +_7: + ; +_15: + ; + if !(wn != 0) { + **(**uintptr)(__ccgo_up(src)) = s + return wn0 + } + if uint32(**(**uint8)(__ccgo_up(s)))-uint32(1) < uint32(0x7f) && uint32(s)%uint32(4) == uint32(0) { + for wn >= uint32(5) && !((**(**uint32)(__ccgo_up(s))|(**(**uint32)(__ccgo_up(s))-Uint32FromInt32(0x01010101)))&Uint32FromUint32(0x80808080) != 0) { + v5 = ws + ws += 4 + v6 = s + s = s + 1 + **(**Twchar_t)(__ccgo_up(v5)) = uint32(**(**uint8)(__ccgo_up(v6))) + v5 = ws + ws += 4 + v6 = s + s = s + 1 + **(**Twchar_t)(__ccgo_up(v5)) = uint32(**(**uint8)(__ccgo_up(v6))) + v5 = ws + ws += 4 + v6 = s + s = s + 1 + **(**Twchar_t)(__ccgo_up(v5)) = uint32(**(**uint8)(__ccgo_up(v6))) + v5 = ws + ws += 4 + v6 = s + s = s + 1 + **(**Twchar_t)(__ccgo_up(v5)) = uint32(**(**uint8)(__ccgo_up(v6))) + wn = wn - uint32(4) + } + } + if uint32(**(**uint8)(__ccgo_up(s)))-uint32(1) < uint32(0x7f) { + v5 = ws + ws += 4 + v6 = s + s = s + 1 + **(**Twchar_t)(__ccgo_up(v5)) = uint32(**(**uint8)(__ccgo_up(v6))) + wn = wn - 1 + goto _14 + } + if uint32(**(**uint8)(__ccgo_up(s)))-uint32(0xc2) > Uint32FromUint32(0xf4)-Uint32FromUint32(0xc2) { + goto _13 + } + v5 = s + s = s + 1 + c = X__fsmu8[uint32(**(**uint8)(__ccgo_up(v5)))-uint32(0xc2)] + goto resume +resume: + ; + if (Int32FromUint8(**(**uint8)(__ccgo_up(s)))>>int32(3)-int32(0x10)|(Int32FromUint8(**(**uint8)(__ccgo_up(s)))>>int32(3)+Int32FromUint32(c)>>Int32FromInt32(26))) & ^Int32FromInt32(7) != 0 { + s = s - 1 + goto _13 + } + v5 = s + s = s + 1 + c = c<= uint32(0x40) { + s = s - uintptr(2) + goto _13 + } + v5 = s + s = s + 1 + c = c<= uint32(0x40) { + s = s - uintptr(3) + goto _13 + } + v5 = s + s = s + 1 + c = c< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + *(*uintptr)(unsafe.Pointer(bp)) = _s + return Xmbsrtowcs(tls, ws, bp, wn, uintptr(0)) +} + +func Xmbtowc(tls *TLS, wc uintptr, src uintptr, n Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v src=%v n=%v, (%v:)", tls, wc, src, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var c uint32 + var s, v3 uintptr + var v1 Twchar_t + var v2 int32 + var _ /* dummy at bp+0 */ Twchar_t + _, _, _, _, _ = c, s, v1, v2, v3 + s = src + if !(s != 0) { + return 0 + } + if !(n != 0) { + goto ilseq + } + if !(wc != 0) { + wc = bp + } + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) < int32(0x80) { + v1 = uint32(**(**uint8)(__ccgo_up(s))) + **(**Twchar_t)(__ccgo_up(wc)) = v1 + return BoolInt32(!!(v1 != 0)) + } + if !!(**(**uintptr)(__ccgo_up((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale)) != 0) { + v2 = int32(4) + } else { + v2 = int32(1) + } + if v2 == int32(1) { + **(**Twchar_t)(__ccgo_up(wc)) = Uint32FromInt32(Int32FromInt32(0xdfff) & int32(Int8FromUint8(**(**uint8)(__ccgo_up(s))))) + return Int32FromInt32(1) + } + if uint32(**(**uint8)(__ccgo_up(s)))-uint32(0xc2) > Uint32FromUint32(0xf4)-Uint32FromUint32(0xc2) { + goto ilseq + } + v3 = s + s = s + 1 + c = X__fsmu8[uint32(**(**uint8)(__ccgo_up(v3)))-uint32(0xc2)] + /* Avoid excessive checks against n: If shifting the state n-1 + * times does not clear the high bit, then the value of n is + * insufficient to read a character */ + if n < uint32(4) && c<<(uint32(6)*n-uint32(6))&(Uint32FromUint32(1)<>int32(3)-int32(0x10)|(Int32FromUint8(**(**uint8)(__ccgo_up(s)))>>int32(3)+Int32FromUint32(c)>>Int32FromInt32(26))) & ^Int32FromInt32(7) != 0 { + goto ilseq + } + v3 = s + s = s + 1 + c = c<= uint32(0x40) { + goto ilseq + } + v3 = s + s = s + 1 + c = c<= uint32(0x40) { + goto ilseq + } + v3 = s + s = s + 1 + **(**Twchar_t)(__ccgo_up(wc)) = c< %v", r) }() + } + var v1 int32 + var v2 uintptr + _, _ = v1, v2 + if !(s != 0) { + return uint32(1) + } + if wc < uint32(0x80) { + **(**uint8)(__ccgo_up(s)) = uint8(wc) + return uint32(1) + } else { + if !!(**(**uintptr)(__ccgo_up((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale)) != 0) { + v1 = int32(4) + } else { + v1 = int32(1) + } + if v1 == int32(1) { + if !(wc-Uint32FromInt32(0xdf80) < Uint32FromInt32(0x80)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EILSEQ) + return Uint32FromInt32(-Int32FromInt32(1)) + } + **(**uint8)(__ccgo_up(s)) = uint8(wc) + return uint32(1) + } else { + if wc < uint32(0x800) { + v2 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = uint8(uint32(0xc0) | wc>>Int32FromInt32(6)) + **(**uint8)(__ccgo_up(s)) = uint8(uint32(0x80) | wc&uint32(0x3f)) + return uint32(2) + } else { + if wc < uint32(0xd800) || wc-uint32(0xe000) < uint32(0x2000) { + v2 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = uint8(uint32(0xe0) | wc>>Int32FromInt32(12)) + v2 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = uint8(uint32(0x80) | wc>>Int32FromInt32(6)&uint32(0x3f)) + **(**uint8)(__ccgo_up(s)) = uint8(uint32(0x80) | wc&uint32(0x3f)) + return uint32(3) + } else { + if wc-uint32(0x10000) < uint32(0x100000) { + v2 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = uint8(uint32(0xf0) | wc>>Int32FromInt32(18)) + v2 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = uint8(uint32(0x80) | wc>>Int32FromInt32(12)&uint32(0x3f)) + v2 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = uint8(uint32(0x80) | wc>>Int32FromInt32(6)&uint32(0x3f)) + **(**uint8)(__ccgo_up(s)) = uint8(uint32(0x80) | wc&uint32(0x3f)) + return uint32(4) + } + } + } + } + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EILSEQ) + return Uint32FromInt32(-Int32FromInt32(1)) +} + +func Xwcsnrtombs(tls *TLS, dst uintptr, wcs uintptr, wn Tsize_t, n Tsize_t, st uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v dst=%v wcs=%v wn=%v n=%v st=%v, (%v:)", tls, dst, wcs, wn, n, st, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var cnt, l Tsize_t + var ws, v1 uintptr + var _ /* tmp at bp+0 */ [4]uint8 + _, _, _, _ = cnt, l, ws, v1 + ws = **(**uintptr)(__ccgo_up(wcs)) + cnt = uint32(0) + if !(dst != 0) { + n = uint32(0) + } + for ws != 0 && wn != 0 { + if n < uint32(MB_LEN_MAX) { + v1 = bp + } else { + v1 = dst + } + l = Xwcrtomb(tls, v1, **(**Twchar_t)(__ccgo_up(ws)), uintptr(0)) + if l == Uint32FromInt32(-Int32FromInt32(1)) { + cnt = Uint32FromInt32(-Int32FromInt32(1)) + break + } + if dst != 0 { + if n < uint32(MB_LEN_MAX) { + if l > n { + break + } + _memcpy(tls, dst, bp, l) + } + dst = dst + uintptr(l) + n = n - l + } + if !(**(**Twchar_t)(__ccgo_up(ws)) != 0) { + ws = uintptr(0) + break + } + ws += 4 + wn = wn - 1 + cnt = cnt + l + } + if dst != 0 { + **(**uintptr)(__ccgo_up(wcs)) = ws + } + return cnt +} + +func Xwcsrtombs(tls *TLS, s uintptr, ws uintptr, n Tsize_t, st uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v ws=%v n=%v st=%v, (%v:)", tls, s, ws, n, st, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var N, l Tsize_t + var ws2, v2 uintptr + var _ /* buf at bp+0 */ [4]uint8 + _, _, _, _ = N, l, ws2, v2 + N = n + if !(s != 0) { + n = uint32(0) + ws2 = **(**uintptr)(__ccgo_up(ws)) + for { + if !(**(**Twchar_t)(__ccgo_up(ws2)) != 0) { + break + } + if **(**Twchar_t)(__ccgo_up(ws2)) >= uint32(0x80) { + l = Xwcrtomb(tls, bp, **(**Twchar_t)(__ccgo_up(ws2)), uintptr(0)) + if !(l+Uint32FromInt32(1) != 0) { + return Uint32FromInt32(-Int32FromInt32(1)) + } + n = n + l + } else { + n = n + 1 + } + goto _1 + _1: + ; + ws2 += 4 + } + return n + } + for n >= uint32(4) { + if **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(ws))))-uint32(1) >= uint32(0x7f) { + if !(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(ws)))) != 0) { + **(**uint8)(__ccgo_up(s)) = uint8(0) + **(**uintptr)(__ccgo_up(ws)) = uintptr(0) + return N - n + } + l = Xwcrtomb(tls, s, **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(ws)))), uintptr(0)) + if !(l+Uint32FromInt32(1) != 0) { + return Uint32FromInt32(-Int32FromInt32(1)) + } + s = s + uintptr(l) + n = n - l + } else { + v2 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = uint8(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(ws))))) + n = n - 1 + } + **(**uintptr)(__ccgo_up(ws)) += 4 + } + for n != 0 { + if **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(ws))))-uint32(1) >= uint32(0x7f) { + if !(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(ws)))) != 0) { + **(**uint8)(__ccgo_up(s)) = uint8(0) + **(**uintptr)(__ccgo_up(ws)) = uintptr(0) + return N - n + } + l = Xwcrtomb(tls, bp, **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(ws)))), uintptr(0)) + if !(l+Uint32FromInt32(1) != 0) { + return Uint32FromInt32(-Int32FromInt32(1)) + } + if l > n { + return N - n + } + Xwcrtomb(tls, s, **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(ws)))), uintptr(0)) + s = s + uintptr(l) + n = n - l + } else { + v2 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = uint8(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(ws))))) + n = n - 1 + } + **(**uintptr)(__ccgo_up(ws)) += 4 + } + return N +} + +func Xwcstombs(tls *TLS, s uintptr, ws uintptr, n Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v ws=%v n=%v, (%v:)", tls, s, ws, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + *(*uintptr)(unsafe.Pointer(bp)) = ws + return Xwcsrtombs(tls, s, bp, n, uintptr(0)) +} + +func Xwctob(tls *TLS, c Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + _ = v1 + if c < uint32(128) { + return Int32FromUint32(c) + } + if !!(**(**uintptr)(__ccgo_up((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale)) != 0) { + v1 = int32(4) + } else { + v1 = int32(1) + } + if v1 == int32(1) && c-uint32(0xdf80) < uint32(0x80) { + return Int32FromUint8(uint8(c)) + } + return -int32(1) +} + +func Xwctomb(tls *TLS, s uintptr, wc Twchar_t) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v wc=%v, (%v:)", tls, s, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + if !(s != 0) { + return 0 + } + return Int32FromUint32(Xwcrtomb(tls, s, wc, uintptr(0))) +} + +func Xaccept(tls *TLS, fd int32, addr uintptr, len1 uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v addr=%v len1=%v, (%v:)", tls, fd, addr, len1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v1, v8 int32 + var v2, v3, v4, v5, v6, v7 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _ = r, v1, v2, v3, v4, v5, v6, v7, v8 + v1 = int32(SYS_accept) + _ = int32(__SC_accept) + v2 = fd + v3 = int32(addr) + v4 = int32(len1) + v5 = int32(Int32FromInt32(0)) + v6 = int32(Int32FromInt32(0)) + v7 = int32(Int32FromInt32(0)) + if int32(1) != 0 { + r = ___syscall_cp(tls, v1, v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, v1, v2, v3, v4, v5, v6, v7) + } + if r != int32(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _9 + } + v8 = r + goto _9 +_9: + return X__syscall_ret(tls, Uint32FromInt32(v8)) +} + +type Tucred = struct { + Fpid Tpid_t + Fuid Tuid_t + Fgid Tgid_t +} + +type Tmmsghdr = struct { + Fmsg_hdr Tmsghdr + Fmsg_len uint32 +} + +func Xaccept4(tls *TLS, fd int32, addr uintptr, len1 uintptr, flg int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v addr=%v len1=%v flg=%v, (%v:)", tls, fd, addr, len1, flg, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, ret, v1, v8 int32 + var v2, v3, v4, v5, v6, v7 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _, _ = r, ret, v1, v2, v3, v4, v5, v6, v7, v8 + if !(flg != 0) { + return Xaccept(tls, fd, addr, len1) + } + v1 = int32(SYS_accept4) + _ = int32(__SC_accept4) + v2 = fd + v3 = int32(addr) + v4 = int32(len1) + v5 = flg + v6 = int32(Int32FromInt32(0)) + v7 = int32(Int32FromInt32(0)) + if int32(1) != 0 { + r = ___syscall_cp(tls, v1, v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, v1, v2, v3, v4, v5, v6, v7) + } + if r != int32(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _9 + } + v8 = r + goto _9 +_9: + ret = X__syscall_ret(tls, Uint32FromInt32(v8)) + if ret >= 0 || **(**int32)(__ccgo_up(X__errno_location(tls))) != int32(ENOSYS) && **(**int32)(__ccgo_up(X__errno_location(tls))) != int32(EINVAL) { + return ret + } + if flg & ^(Int32FromInt32(SOCK_CLOEXEC)|Int32FromInt32(SOCK_NONBLOCK)) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + ret = Xaccept(tls, fd, addr, len1) + if ret < 0 { + return ret + } + if flg&int32(SOCK_CLOEXEC) != 0 { + X__syscall3(tls, int32(SYS_fcntl64), ret, int32(Int32FromInt32(F_SETFD)), int32(Int32FromInt32(FD_CLOEXEC))) + } + if flg&int32(SOCK_NONBLOCK) != 0 { + X__syscall3(tls, int32(SYS_fcntl64), ret, int32(Int32FromInt32(F_SETFL)), int32(Int32FromInt32(O_NONBLOCK))) + } + return ret +} + +func Xbind(tls *TLS, fd int32, addr uintptr, len1 Tsocklen_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v addr=%v len1=%v, (%v:)", tls, fd, addr, len1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v1, v8 int32 + var v2, v3, v4, v5, v6, v7 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _ = r, v1, v2, v3, v4, v5, v6, v7, v8 + v1 = int32(SYS_bind) + _ = int32(__SC_bind) + v2 = fd + v3 = int32(addr) + v4 = Int32FromUint32(len1) + v5 = int32(Int32FromInt32(0)) + v6 = int32(Int32FromInt32(0)) + v7 = int32(Int32FromInt32(0)) + if 0 != 0 { + r = ___syscall_cp(tls, v1, v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, v1, v2, v3, v4, v5, v6, v7) + } + if r != int32(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _9 + } + v8 = r + goto _9 +_9: + return X__syscall_ret(tls, Uint32FromInt32(v8)) +} + +func Xconnect(tls *TLS, fd int32, addr uintptr, len1 Tsocklen_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v addr=%v len1=%v, (%v:)", tls, fd, addr, len1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v1, v8 int32 + var v2, v3, v4, v5, v6, v7 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _ = r, v1, v2, v3, v4, v5, v6, v7, v8 + v1 = int32(SYS_connect) + _ = int32(__SC_connect) + v2 = fd + v3 = int32(addr) + v4 = Int32FromUint32(len1) + v5 = int32(Int32FromInt32(0)) + v6 = int32(Int32FromInt32(0)) + v7 = int32(Int32FromInt32(0)) + if int32(1) != 0 { + r = ___syscall_cp(tls, v1, v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, v1, v2, v3, v4, v5, v6, v7) + } + if r != int32(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _9 + } + v8 = r + goto _9 +_9: + return X__syscall_ret(tls, Uint32FromInt32(v8)) +} + +const ADD = 0 +const C_ANY = 0 +const C_CHAOS = 0 +const C_HS = 0 +const C_IN = 0 +const C_NONE = 0 +const DELETE = 0 +const FORMERR = 0 +const GETLONG = 0 +const GETSHORT = 0 +const HFIXEDSZ = 12 +const IN6ADDRSZ = 16 +const INADDRSZ = 4 +const INDIR_MASK = 192 +const INET6_ADDRSTRLEN = 46 +const INET_ADDRSTRLEN = 16 +const INT16SZ = 2 +const INT32SZ = 4 +const INT8SZ = 1 +const IN_CLASSA_HOST = 16777215 +const IN_CLASSA_MAX = 128 +const IN_CLASSA_NET = 4278190080 +const IN_CLASSA_NSHIFT = 24 +const IN_CLASSB_HOST = 65535 +const IN_CLASSB_MAX = 65536 +const IN_CLASSB_NET = 4294901760 +const IN_CLASSB_NSHIFT = 16 +const IN_CLASSC_HOST = 255 +const IN_CLASSC_NET = 4294967040 +const IN_CLASSC_NSHIFT = 8 +const IN_LOOPBACKNET = 127 +const IPPORT_RESERVED = 1024 +const IPPROTO_AH = 51 +const IPPROTO_BEETPH = 94 +const IPPROTO_COMP = 108 +const IPPROTO_DCCP = 33 +const IPPROTO_DSTOPTS = 60 +const IPPROTO_EGP = 8 +const IPPROTO_ENCAP = 98 +const IPPROTO_ESP = 50 +const IPPROTO_ETHERNET = 143 +const IPPROTO_FRAGMENT = 44 +const IPPROTO_GRE = 47 +const IPPROTO_HOPOPTS = 0 +const IPPROTO_ICMP = 1 +const IPPROTO_ICMPV6 = 58 +const IPPROTO_IDP = 22 +const IPPROTO_IGMP = 2 +const IPPROTO_IP = 0 +const IPPROTO_IPIP = 4 +const IPPROTO_IPV6 = 41 +const IPPROTO_MAX = 263 +const IPPROTO_MH = 135 +const IPPROTO_MPLS = 137 +const IPPROTO_MPTCP = 262 +const IPPROTO_MTP = 92 +const IPPROTO_NONE = 59 +const IPPROTO_PIM = 103 +const IPPROTO_PUP = 12 +const IPPROTO_RAW = 255 +const IPPROTO_ROUTING = 43 +const IPPROTO_RSVP = 46 +const IPPROTO_SCTP = 132 +const IPPROTO_TCP = 6 +const IPPROTO_TP = 29 +const IPPROTO_UDP = 17 +const IPPROTO_UDPLITE = 136 +const IPV6_2292DSTOPTS = 4 +const IPV6_2292HOPLIMIT = 8 +const IPV6_2292HOPOPTS = 3 +const IPV6_2292PKTINFO = 2 +const IPV6_2292PKTOPTIONS = 6 +const IPV6_2292RTHDR = 5 +const IPV6_ADDRFORM = 1 +const IPV6_ADDR_PREFERENCES = 72 +const IPV6_ADD_MEMBERSHIP = 20 +const IPV6_AUTHHDR = 10 +const IPV6_AUTOFLOWLABEL = 70 +const IPV6_CHECKSUM = 7 +const IPV6_DONTFRAG = 62 +const IPV6_DROP_MEMBERSHIP = 21 +const IPV6_DSTOPTS = 59 +const IPV6_FREEBIND = 78 +const IPV6_HDRINCL = 36 +const IPV6_HOPLIMIT = 52 +const IPV6_HOPOPTS = 54 +const IPV6_IPSEC_POLICY = 34 +const IPV6_JOIN_ANYCAST = 27 +const IPV6_JOIN_GROUP = 20 +const IPV6_LEAVE_ANYCAST = 28 +const IPV6_LEAVE_GROUP = 21 +const IPV6_MINHOPCOUNT = 73 +const IPV6_MTU = 24 +const IPV6_MTU_DISCOVER = 23 +const IPV6_MULTICAST_ALL = 29 +const IPV6_MULTICAST_HOPS = 18 +const IPV6_MULTICAST_IF = 17 +const IPV6_MULTICAST_LOOP = 19 +const IPV6_NEXTHOP = 9 +const IPV6_ORIGDSTADDR = 74 +const IPV6_PATHMTU = 61 +const IPV6_PKTINFO = 50 +const IPV6_PMTUDISC_DO = 2 +const IPV6_PMTUDISC_DONT = 0 +const IPV6_PMTUDISC_INTERFACE = 4 +const IPV6_PMTUDISC_OMIT = 5 +const IPV6_PMTUDISC_PROBE = 3 +const IPV6_PMTUDISC_WANT = 1 +const IPV6_PREFER_SRC_CGA = 8 +const IPV6_PREFER_SRC_COA = 4 +const IPV6_PREFER_SRC_HOME = 1024 +const IPV6_PREFER_SRC_NONCGA = 2048 +const IPV6_PREFER_SRC_PUBLIC = 2 +const IPV6_PREFER_SRC_PUBTMP_DEFAULT = 256 +const IPV6_PREFER_SRC_TMP = 1 +const IPV6_RECVDSTOPTS = 58 +const IPV6_RECVERR = 25 +const IPV6_RECVFRAGSIZE = 77 +const IPV6_RECVHOPLIMIT = 51 +const IPV6_RECVHOPOPTS = 53 +const IPV6_RECVORIGDSTADDR = 74 +const IPV6_RECVPATHMTU = 60 +const IPV6_RECVPKTINFO = 49 +const IPV6_RECVRTHDR = 56 +const IPV6_RECVTCLASS = 66 +const IPV6_ROUTER_ALERT = 22 +const IPV6_ROUTER_ALERT_ISOLATE = 30 +const IPV6_RTHDR = 57 +const IPV6_RTHDRDSTOPTS = 55 +const IPV6_RTHDR_LOOSE = 0 +const IPV6_RTHDR_STRICT = 1 +const IPV6_RTHDR_TYPE_0 = 0 +const IPV6_RXDSTOPTS = 59 +const IPV6_RXHOPOPTS = 54 +const IPV6_TCLASS = 67 +const IPV6_TRANSPARENT = 75 +const IPV6_UNICAST_HOPS = 16 +const IPV6_UNICAST_IF = 76 +const IPV6_V6ONLY = 26 +const IPV6_XFRM_POLICY = 35 +const IP_ADD_MEMBERSHIP = 35 +const IP_ADD_SOURCE_MEMBERSHIP = 39 +const IP_BIND_ADDRESS_NO_PORT = 24 +const IP_BLOCK_SOURCE = 38 +const IP_CHECKSUM = 23 +const IP_DEFAULT_MULTICAST_LOOP = 1 +const IP_DEFAULT_MULTICAST_TTL = 1 +const IP_DROP_MEMBERSHIP = 36 +const IP_DROP_SOURCE_MEMBERSHIP = 40 +const IP_FREEBIND = 15 +const IP_HDRINCL = 3 +const IP_IPSEC_POLICY = 16 +const IP_MAX_MEMBERSHIPS = 20 +const IP_MINTTL = 21 +const IP_MSFILTER = 41 +const IP_MTU = 14 +const IP_MTU_DISCOVER = 10 +const IP_MULTICAST_ALL = 49 +const IP_MULTICAST_IF = 32 +const IP_MULTICAST_LOOP = 34 +const IP_MULTICAST_TTL = 33 +const IP_NODEFRAG = 22 +const IP_OPTIONS = 4 +const IP_ORIGDSTADDR = 20 +const IP_PASSSEC = 18 +const IP_PKTINFO = 8 +const IP_PKTOPTIONS = 9 +const IP_PMTUDISC = 10 +const IP_PMTUDISC_DO = 2 +const IP_PMTUDISC_DONT = 0 +const IP_PMTUDISC_INTERFACE = 4 +const IP_PMTUDISC_OMIT = 5 +const IP_PMTUDISC_PROBE = 3 +const IP_PMTUDISC_WANT = 1 +const IP_RECVERR = 11 +const IP_RECVERR_RFC4884 = 26 +const IP_RECVFRAGSIZE = 25 +const IP_RECVOPTS = 6 +const IP_RECVORIGDSTADDR = 20 +const IP_RECVRETOPTS = 7 +const IP_RECVTOS = 13 +const IP_RECVTTL = 12 +const IP_RETOPTS = 7 +const IP_ROUTER_ALERT = 5 +const IP_TOS = 1 +const IP_TRANSPARENT = 19 +const IP_TTL = 2 +const IP_UNBLOCK_SOURCE = 37 +const IP_UNICAST_IF = 50 +const IP_XFRM_POLICY = 17 +const IQUERY = 0 +const LOCALDOMAINPARTS = 2 +const MAXCDNAME = 255 +const MAXDFLSRCH = 3 +const MAXDNAME = 1025 +const MAXDNSRCH = 6 +const MAXLABEL = 63 +const MAXNS = 3 +const MAXRESOLVSORT = 10 +const NAMESERVER_PORT = 53 +const NOERROR = 0 +const NOTAUTH = 0 +const NOTIMP = 0 +const NOTZONE = 0 +const NS_ALG_DH = 2 +const NS_ALG_DSA = 3 +const NS_ALG_DSS = 3 +const NS_ALG_EXPIRE_ONLY = 253 +const NS_ALG_MD5RSA = 1 +const NS_ALG_PRIVATE_OID = 254 +const NS_CMPRSFLGS = 192 +const NS_DEFAULTPORT = 53 +const NS_DSA_MAX_BYTES = 405 +const NS_DSA_MIN_SIZE = 213 +const NS_DSA_SIG_SIZE = 41 +const NS_HFIXEDSZ = 12 +const NS_IN6ADDRSZ = 16 +const NS_INADDRSZ = 4 +const NS_INT16SZ = 2 +const NS_INT32SZ = 4 +const NS_INT8SZ = 1 +const NS_KEY_EXTENDED_FLAGS = 4096 +const NS_KEY_NAME_ENTITY = 512 +const NS_KEY_NAME_RESERVED = 768 +const NS_KEY_NAME_TYPE = 768 +const NS_KEY_NAME_USER = 0 +const NS_KEY_NAME_ZONE = 256 +const NS_KEY_NO_AUTH = 32768 +const NS_KEY_NO_CONF = 16384 +const NS_KEY_PROT_ANY = 255 +const NS_KEY_PROT_DNSSEC = 3 +const NS_KEY_PROT_EMAIL = 2 +const NS_KEY_PROT_IPSEC = 4 +const NS_KEY_PROT_TLS = 1 +const NS_KEY_RESERVED10 = 32 +const NS_KEY_RESERVED11 = 16 +const NS_KEY_RESERVED2 = 8192 +const NS_KEY_RESERVED4 = 2048 +const NS_KEY_RESERVED5 = 1024 +const NS_KEY_RESERVED8 = 128 +const NS_KEY_RESERVED9 = 64 +const NS_KEY_RESERVED_BITMASK = 11504 +const NS_KEY_RESERVED_BITMASK2 = 65535 +const NS_KEY_SIGNATORYMASK = 15 +const NS_KEY_TYPEMASK = 49152 +const NS_KEY_TYPE_AUTH_CONF = 0 +const NS_KEY_TYPE_AUTH_ONLY = 16384 +const NS_KEY_TYPE_CONF_ONLY = 32768 +const NS_KEY_TYPE_NO_KEY = 49152 +const NS_MAXCDNAME = 255 +const NS_MAXDNAME = 1025 +const NS_MAXLABEL = 63 +const NS_MAXMSG = 65535 +const NS_MD5RSA_MAX_BASE64 = 10928 +const NS_MD5RSA_MAX_BITS = 4096 +const NS_MD5RSA_MAX_BYTES = 8195 +const NS_MD5RSA_MAX_SIZE = 512 +const NS_MD5RSA_MIN_BITS = 512 +const NS_MD5RSA_MIN_SIZE = 64 +const NS_NOTIFY_OP = 0 +const NS_NXT_BITS = 8 +const NS_NXT_MAX = 127 +const NS_OPT_DNSSEC_OK = 32768 +const NS_OPT_NSID = 3 +const NS_PACKETSZ = 512 +const NS_QFIXEDSZ = 4 +const NS_RRFIXEDSZ = 10 +const NS_SIG_ALG = 2 +const NS_SIG_EXPIR = 8 +const NS_SIG_FOOT = 16 +const NS_SIG_LABELS = 3 +const NS_SIG_OTTL = 4 +const NS_SIG_SIGNED = 12 +const NS_SIG_SIGNER = 18 +const NS_SIG_TYPE = 0 +const NS_TSIG_ALG_HMAC_MD5 = "HMAC-MD5.SIG-ALG.REG.INT" +const NS_TSIG_ERROR_FORMERR = -12 +const NS_TSIG_ERROR_NO_SPACE = -11 +const NS_TSIG_ERROR_NO_TSIG = -10 +const NS_TSIG_FUDGE = 300 +const NS_TSIG_TCP_COUNT = 100 +const NS_UPDATE_OP = 0 +const NXDOMAIN = 0 +const NXRRSET = 0 +const PACKETSZ = 512 +const PRIX16 = "X" +const PRIX32 = "X" +const PRIX8 = "X" +const PRIXFAST16 = "X" +const PRIXFAST32 = "X" +const PRIXFAST8 = "X" +const PRIXLEAST16 = "X" +const PRIXLEAST32 = "X" +const PRIXLEAST8 = "X" +const PRId16 = "d" +const PRId32 = "d" +const PRId8 = "d" +const PRIdFAST16 = "d" +const PRIdFAST32 = "d" +const PRIdFAST8 = "d" +const PRIdLEAST16 = "d" +const PRIdLEAST32 = "d" +const PRIdLEAST8 = "d" +const PRIi16 = "i" +const PRIi32 = "i" +const PRIi8 = "i" +const PRIiFAST16 = "i" +const PRIiFAST32 = "i" +const PRIiFAST8 = "i" +const PRIiLEAST16 = "i" +const PRIiLEAST32 = "i" +const PRIiLEAST8 = "i" +const PRIo16 = "o" +const PRIo32 = "o" +const PRIo8 = "o" +const PRIoFAST16 = "o" +const PRIoFAST32 = "o" +const PRIoFAST8 = "o" +const PRIoLEAST16 = "o" +const PRIoLEAST32 = "o" +const PRIoLEAST8 = "o" +const PRIu16 = "u" +const PRIu32 = "u" +const PRIu8 = "u" +const PRIuFAST16 = "u" +const PRIuFAST32 = "u" +const PRIuFAST8 = "u" +const PRIuLEAST16 = "u" +const PRIuLEAST32 = "u" +const PRIuLEAST8 = "u" +const PRIx16 = "x" +const PRIx32 = "x" +const PRIx8 = "x" +const PRIxFAST16 = "x" +const PRIxFAST32 = "x" +const PRIxFAST8 = "x" +const PRIxLEAST16 = "x" +const PRIxLEAST32 = "x" +const PRIxLEAST8 = "x" +const PUTLONG = 0 +const PUTSHORT = 0 +const QFIXEDSZ = 4 +const QUERY = 0 +const REFUSED = 0 +const RES_AAONLY = 4 +const RES_BLAST = 131072 +const RES_DEBUG = 2 +const RES_DEFAULT = 524992 +const RES_DEFNAMES = 128 +const RES_DFLRETRY = 2 +const RES_DNSRCH = 512 +const RES_EXHAUSTIVE = 1 +const RES_F_CONN = 2 +const RES_F_EDNS0ERR = 4 +const RES_F_VC = 1 +const RES_IGNTC = 32 +const RES_INIT = 1 +const RES_INSECURE1 = 1024 +const RES_INSECURE2 = 2048 +const RES_KEEPTSIG = 65536 +const RES_MAXNDOTS = 15 +const RES_MAXRETRANS = 30 +const RES_MAXRETRY = 5 +const RES_MAXTIME = 65535 +const RES_NOALIASES = 4096 +const RES_NOCHECKNAME = 32768 +const RES_NOIP6DOTINT = 524288 +const RES_PRF_ADD = 128 +const RES_PRF_ANS = 32 +const RES_PRF_AUTH = 64 +const RES_PRF_CLASS = 4 +const RES_PRF_CMD = 8 +const RES_PRF_HEAD1 = 256 +const RES_PRF_HEAD2 = 512 +const RES_PRF_HEADX = 2048 +const RES_PRF_INIT = 16384 +const RES_PRF_QUERY = 4096 +const RES_PRF_QUES = 16 +const RES_PRF_REPLY = 8192 +const RES_PRF_STATS = 1 +const RES_PRF_TTLID = 1024 +const RES_PRF_UPDATE = 2 +const RES_PRIMARY = 16 +const RES_RECURSE = 64 +const RES_ROTATE = 16384 +const RES_SNGLKUP = 2097152 +const RES_SNGLKUPREOP = 4194304 +const RES_STAYOPEN = 256 +const RES_TIMEOUT = 5 +const RES_USEBSTRING = 262144 +const RES_USEVC = 8 +const RES_USE_DNSSEC = 8388608 +const RES_USE_EDNS0 = 1048576 +const RES_USE_INET6 = 8192 +const RRFIXEDSZ = 10 +const SCNd16 = "hd" +const SCNd32 = "d" +const SCNd8 = "hhd" +const SCNdFAST16 = "d" +const SCNdFAST32 = "d" +const SCNdFAST8 = "hhd" +const SCNdLEAST16 = "hd" +const SCNdLEAST32 = "d" +const SCNdLEAST8 = "hhd" +const SCNi16 = "hi" +const SCNi32 = "i" +const SCNi8 = "hhi" +const SCNiFAST16 = "i" +const SCNiFAST32 = "i" +const SCNiFAST8 = "hhi" +const SCNiLEAST16 = "hi" +const SCNiLEAST32 = "i" +const SCNiLEAST8 = "hhi" +const SCNo16 = "ho" +const SCNo32 = "o" +const SCNo8 = "hho" +const SCNoFAST16 = "o" +const SCNoFAST32 = "o" +const SCNoFAST8 = "hho" +const SCNoLEAST16 = "ho" +const SCNoLEAST32 = "o" +const SCNoLEAST8 = "hho" +const SCNu16 = "hu" +const SCNu32 = "u" +const SCNu8 = "hhu" +const SCNuFAST16 = "u" +const SCNuFAST32 = "u" +const SCNuFAST8 = "hhu" +const SCNuLEAST16 = "hu" +const SCNuLEAST32 = "u" +const SCNuLEAST8 = "hhu" +const SCNx16 = "hx" +const SCNx32 = "x" +const SCNx8 = "hhx" +const SCNxFAST16 = "x" +const SCNxFAST32 = "x" +const SCNxFAST8 = "hhx" +const SCNxLEAST16 = "hx" +const SCNxLEAST32 = "x" +const SCNxLEAST8 = "hhx" +const SERVFAIL = 0 +const STATUS = 0 +const S_ADDT = 0 +const S_PREREQ = 0 +const S_UPDATE = 0 +const S_ZONE = 0 +const T_A = 0 +const T_A6 = 0 +const T_AAAA = 0 +const T_AFSDB = 0 +const T_ANY = 0 +const T_ATMA = 0 +const T_AVC = 0 +const T_AXFR = 0 +const T_CAA = 0 +const T_CDNSKEY = 0 +const T_CDS = 0 +const T_CNAME = 0 +const T_CSYNC = 0 +const T_DHCID = 0 +const T_DLV = 0 +const T_DNAME = 0 +const T_DNSKEY = 0 +const T_DS = 0 +const T_EID = 0 +const T_EUI48 = 0 +const T_EUI64 = 0 +const T_GID = 0 +const T_GPOS = 0 +const T_HINFO = 0 +const T_HIP = 0 +const T_IPSECKEY = 0 +const T_ISDN = 0 +const T_IXFR = 0 +const T_KEY = 0 +const T_L32 = 0 +const T_L64 = 0 +const T_LOC = 0 +const T_LP = 0 +const T_MAILA = 0 +const T_MAILB = 0 +const T_MB = 0 +const T_MD = 0 +const T_MF = 0 +const T_MG = 0 +const T_MINFO = 0 +const T_MR = 0 +const T_MX = 0 +const T_NAPTR = 0 +const T_NID = 0 +const T_NIMLOC = 0 +const T_NINFO = 0 +const T_NS = 0 +const T_NSAP = 0 +const T_NSAP_PTR = 0 +const T_NSEC = 0 +const T_NSEC3 = 0 +const T_NSEC3PARAM = 0 +const T_NULL = 0 +const T_NXT = 0 +const T_OPENPGPKEY = 0 +const T_PTR = 0 +const T_PX = 0 +const T_RKEY = 0 +const T_RP = 0 +const T_RRSIG = 0 +const T_RT = 0 +const T_SIG = 0 +const T_SMIMEA = 0 +const T_SOA = 0 +const T_SPF = 0 +const T_SRV = 0 +const T_SSHFP = 0 +const T_TA = 0 +const T_TALINK = 0 +const T_TKEY = 0 +const T_TLSA = 0 +const T_TSIG = 0 +const T_TXT = 0 +const T_UID = 0 +const T_UINFO = 0 +const T_UNSPEC = 0 +const T_URI = 0 +const T_WKS = 0 +const T_X25 = 0 +const YXDOMAIN = 0 +const YXRRSET = 0 +const _PATH_RESCONF = "/etc/resolv.conf" +const __BIND = 19950621 +const __NAMESER = 19991006 +const __PRI64 = "ll" +const __PRIPTR = "" +const __RES = 19960801 +const __UAPI_DEF_IN6_ADDR = 0 +const __UAPI_DEF_IN6_ADDR_ALT = 0 +const __UAPI_DEF_IN6_PKTINFO = 0 +const __UAPI_DEF_IN_ADDR = 0 +const __UAPI_DEF_IN_CLASS = 0 +const __UAPI_DEF_IN_IPPROTO = 0 +const __UAPI_DEF_IN_PKTINFO = 0 +const __UAPI_DEF_IP6_MTUINFO = 0 +const __UAPI_DEF_IPPROTO_V6 = 0 +const __UAPI_DEF_IPV6_MREQ = 0 +const __UAPI_DEF_IPV6_OPTIONS = 0 +const __UAPI_DEF_IP_MREQ = 0 +const __UAPI_DEF_SOCKADDR_IN = 0 +const __UAPI_DEF_SOCKADDR_IN6 = 0 +const _res = 0 + +type Tns_sect = int32 + +type ___ns_sect = int32 + +const _ns_s_qd = 0 +const _ns_s_zn = 0 +const _ns_s_an = 1 +const _ns_s_pr = 1 +const _ns_s_ns = 2 +const _ns_s_ud = 2 +const _ns_s_ar = 3 +const _ns_s_max = 4 + +type Tns_msg = struct { + F_msg uintptr + F_eom uintptr + F_id Tuint16_t + F_flags Tuint16_t + F_counts [4]Tuint16_t + F_sections [4]uintptr + F_sect Tns_sect + F_rrnum int32 + F_msg_ptr uintptr +} + +type t__ns_msg = Tns_msg + +type T_ns_flagdata = struct { + Fmask int32 + Fshift int32 +} + +type Tns_rr = struct { + Fname [1025]uint8 + Ftype1 Tuint16_t + Frr_class Tuint16_t + Fttl Tuint32_t + Frdlength Tuint16_t + Frdata uintptr +} + +type t__ns_rr = Tns_rr + +type Tns_flag = int32 + +type ___ns_flag = int32 + +const _ns_f_qr = 0 +const _ns_f_opcode = 1 +const _ns_f_aa = 2 +const _ns_f_tc = 3 +const _ns_f_rd = 4 +const _ns_f_ra = 5 +const _ns_f_z = 6 +const _ns_f_ad = 7 +const _ns_f_cd = 8 +const _ns_f_rcode = 9 +const _ns_f_max = 10 + +type Tns_opcode = int32 + +type ___ns_opcode = int32 + +const _ns_o_query = 0 +const _ns_o_iquery = 1 +const _ns_o_status = 2 +const _ns_o_notify = 4 +const _ns_o_update = 5 +const _ns_o_max = 6 + +type Tns_rcode = int32 + +type ___ns_rcode = int32 + +const _ns_r_noerror = 0 +const _ns_r_formerr = 1 +const _ns_r_servfail = 2 +const _ns_r_nxdomain = 3 +const _ns_r_notimpl = 4 +const _ns_r_refused = 5 +const _ns_r_yxdomain = 6 +const _ns_r_yxrrset = 7 +const _ns_r_nxrrset = 8 +const _ns_r_notauth = 9 +const _ns_r_notzone = 10 +const _ns_r_max = 11 +const _ns_r_badvers = 16 +const _ns_r_badsig = 16 +const _ns_r_badkey = 17 +const _ns_r_badtime = 18 + +type Tns_update_operation = int32 + +type ___ns_update_operation = int32 + +const _ns_uop_delete = 0 +const _ns_uop_add = 1 +const _ns_uop_max = 2 + +type Tns_tsig_key = struct { + Fname [1025]uint8 + Falg [1025]uint8 + Fdata uintptr + Flen1 int32 +} + +type Tns_tcp_tsig_state = struct { + Fcounter int32 + Fkey uintptr + Fctx uintptr + Fsig [512]uint8 + Fsiglen int32 +} + +type Tns_type = int32 + +type ___ns_type = int32 + +const _ns_t_invalid = 0 +const _ns_t_a = 1 +const _ns_t_ns = 2 +const _ns_t_md = 3 +const _ns_t_mf = 4 +const _ns_t_cname = 5 +const _ns_t_soa = 6 +const _ns_t_mb = 7 +const _ns_t_mg = 8 +const _ns_t_mr = 9 +const _ns_t_null = 10 +const _ns_t_wks = 11 +const _ns_t_ptr = 12 +const _ns_t_hinfo = 13 +const _ns_t_minfo = 14 +const _ns_t_mx = 15 +const _ns_t_txt = 16 +const _ns_t_rp = 17 +const _ns_t_afsdb = 18 +const _ns_t_x25 = 19 +const _ns_t_isdn = 20 +const _ns_t_rt = 21 +const _ns_t_nsap = 22 +const _ns_t_nsap_ptr = 23 +const _ns_t_sig = 24 +const _ns_t_key = 25 +const _ns_t_px = 26 +const _ns_t_gpos = 27 +const _ns_t_aaaa = 28 +const _ns_t_loc = 29 +const _ns_t_nxt = 30 +const _ns_t_eid = 31 +const _ns_t_nimloc = 32 +const _ns_t_srv = 33 +const _ns_t_atma = 34 +const _ns_t_naptr = 35 +const _ns_t_kx = 36 +const _ns_t_cert = 37 +const _ns_t_a6 = 38 +const _ns_t_dname = 39 +const _ns_t_sink = 40 +const _ns_t_opt = 41 +const _ns_t_apl = 42 +const _ns_t_ds = 43 +const _ns_t_sshfp = 44 +const _ns_t_ipseckey = 45 +const _ns_t_rrsig = 46 +const _ns_t_nsec = 47 +const _ns_t_dnskey = 48 +const _ns_t_dhcid = 49 +const _ns_t_nsec3 = 50 +const _ns_t_nsec3param = 51 +const _ns_t_tlsa = 52 +const _ns_t_smimea = 53 +const _ns_t_hip = 55 +const _ns_t_ninfo = 56 +const _ns_t_rkey = 57 +const _ns_t_talink = 58 +const _ns_t_cds = 59 +const _ns_t_cdnskey = 60 +const _ns_t_openpgpkey = 61 +const _ns_t_csync = 62 +const _ns_t_spf = 99 +const _ns_t_uinfo = 100 +const _ns_t_uid = 101 +const _ns_t_gid = 102 +const _ns_t_unspec = 103 +const _ns_t_nid = 104 +const _ns_t_l32 = 105 +const _ns_t_l64 = 106 +const _ns_t_lp = 107 +const _ns_t_eui48 = 108 +const _ns_t_eui64 = 109 +const _ns_t_tkey = 249 +const _ns_t_tsig = 250 +const _ns_t_ixfr = 251 +const _ns_t_axfr = 252 +const _ns_t_mailb = 253 +const _ns_t_maila = 254 +const _ns_t_any = 255 +const _ns_t_zxfr = 256 +const _ns_t_uri = 256 +const _ns_t_caa = 257 +const _ns_t_avc = 258 +const _ns_t_ta = 32768 +const _ns_t_dlv = 32769 +const _ns_t_max = 65536 + +type Tns_class = int32 + +type ___ns_class = int32 + +const _ns_c_invalid = 0 +const _ns_c_in = 1 +const _ns_c_2 = 2 +const _ns_c_chaos = 3 +const _ns_c_hs = 4 +const _ns_c_none = 254 +const _ns_c_any = 255 +const _ns_c_max = 65536 + +type Tns_key_types = int32 + +type ___ns_key_types = int32 + +const _ns_kt_rsa = 1 +const _ns_kt_dh = 2 +const _ns_kt_dsa = 3 +const _ns_kt_private = 254 + +type Tns_cert_types = int32 + +type ___ns_cert_types = int32 + +const _cert_t_pkix = 1 +const _cert_t_spki = 2 +const _cert_t_pgp = 3 +const _cert_t_url = 253 +const _cert_t_oid = 254 + +type THEADER = struct { + F__ccgo0 uint32 + F__ccgo4 uint32 + F__ccgo8 uint32 +} + +type Timaxdiv_t = struct { + F__ccgo_align [0]uint32 + Fquot Tintmax_t + Frem Tintmax_t +} + +type Tin_port_t = uint16 + +type Tin_addr_t = uint32 + +type Tin_addr = struct { + Fs_addr Tin_addr_t +} + +type Tsockaddr_in = struct { + Fsin_family Tsa_family_t + Fsin_port Tin_port_t + Fsin_addr Tin_addr + Fsin_zero [8]Tuint8_t +} + +type Tin6_addr = struct { + F__in6_union struct { + F__s6_addr16 [0][8]Tuint16_t + F__s6_addr32 [0][4]Tuint32_t + F__s6_addr [16]Tuint8_t + } +} + +type Tsockaddr_in6 = struct { + Fsin6_family Tsa_family_t + Fsin6_port Tin_port_t + Fsin6_flowinfo Tuint32_t + Fsin6_addr Tin6_addr + Fsin6_scope_id Tuint32_t +} + +type Tipv6_mreq = struct { + Fipv6mr_multiaddr Tin6_addr + Fipv6mr_interface uint32 +} + +type Tip_opts = struct { + Fip_dst Tin_addr + Fip_opts [40]uint8 +} + +type Tres_state = uintptr + +type t__res_state = struct { + Fretrans int32 + Fretry int32 + Foptions uint32 + Fnscount int32 + Fnsaddr_list [3]Tsockaddr_in + Fid uint16 + Fdnsrch [7]uintptr + Fdefdname [256]uint8 + Fpfcode uint32 + F__ccgo356 uint32 + Fsort_list [10]struct { + Faddr Tin_addr + Fmask Tuint32_t + } + Fqhook uintptr + Frhook uintptr + Fres_h_errno int32 + F_vcsock int32 + F_flags uint32 + F_u struct { + F_ext [0]struct { + Fnscount Tuint16_t + Fnsmap [3]Tuint16_t + Fnssocks [3]int32 + Fnscount6 Tuint16_t + Fnsinit Tuint16_t + Fnsaddrs [3]uintptr + F_initstamp [2]uint32 + } + Fpad [52]uint8 + } +} + +type Tres_sym = struct { + Fnumber int32 + Fname uintptr + Fhumanname uintptr +} + +/* RFC 1035 message compression */ + +// C documentation +// +// /* label start offsets of a compressed domain name s */ +func _getoffs(tls *TLS, offs uintptr, base uintptr, s uintptr) (r int32) { + var i, v2 int32 + _, _ = i, v2 + i = 0 + for { + for Int32FromUint8(**(**uint8)(__ccgo_up(s)))&int32(0xc0) != 0 { + if Int32FromUint8(**(**uint8)(__ccgo_up(s)))&int32(0xc0) != int32(0xc0) { + return 0 + } + s = base + uintptr(Int32FromUint8(**(**uint8)(__ccgo_up(s)))&Int32FromInt32(0x3f)<= int32(0x4000) { + return 0 + } + v2 = i + i = i + 1 + **(**int16)(__ccgo_up(offs + uintptr(v2)*2)) = int16(int32(s) - int32(base)) + s = s + uintptr(Int32FromUint8(**(**uint8)(__ccgo_up(s)))+int32(1)) + goto _1 + _1: + } + return r +} + +// C documentation +// +// /* label lengths of an ascii domain name s */ +func _getlens(tls *TLS, lens uintptr, s uintptr, l int32) (r int32) { + var i, j, k, v3 int32 + _, _, _, _ = i, j, k, v3 + i = 0 + j = 0 + k = 0 + for { + for { + if !(j < l && Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(j)))) != int32('.')) { + break + } + goto _2 + _2: + ; + j = j + 1 + } + if Uint32FromInt32(j-k)-uint32(1) > uint32(62) { + return 0 + } + v3 = i + i = i + 1 + **(**uint8)(__ccgo_up(lens + uintptr(v3))) = Uint8FromInt32(j - k) + if j == l { + return i + } + j = j + 1 + v3 = j + k = v3 + goto _1 + _1: + } + return r +} + +// C documentation +// +// /* longest suffix match of an ascii domain with a compressed domain name dn */ +func _match(tls *TLS, offset uintptr, base uintptr, dn uintptr, end uintptr, lens uintptr, nlen int32) (r int32) { + bp := tls.Alloc(256) + defer tls.Free(256) + var l, m, noff, o, v2 int32 + var _ /* offs at bp+0 */ [128]int16 + _, _, _, _, _ = l, m, noff, o, v2 + m = 0 + noff = _getoffs(tls, bp, base, dn) + if !(noff != 0) { + return 0 + } + for { + nlen = nlen - 1 + v2 = nlen + l = Int32FromUint8(**(**uint8)(__ccgo_up(lens + uintptr(v2)))) + noff = noff - 1 + v2 = noff + o = int32((**(**[128]int16)(__ccgo_up(bp)))[v2]) + end = end - uintptr(l) + if l != Int32FromUint8(**(**uint8)(__ccgo_up(base + uintptr(o)))) || Xmemcmp(tls, base+uintptr(o)+uintptr(1), end, Uint32FromInt32(l)) != 0 { + return m + } + **(**int32)(__ccgo_up(offset)) = o + m = m + l + if nlen != 0 { + m = m + 1 + } + if !(nlen != 0) || !(noff != 0) { + return m + } + end = end - 1 + goto _1 + _1: + } + return r +} + +func Xdn_comp(tls *TLS, src uintptr, dst uintptr, space int32, dnptrs uintptr, lastdnptr uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v src=%v dst=%v space=%v dnptrs=%v lastdnptr=%v, (%v:)", tls, src, dst, space, dnptrs, lastdnptr, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(144) + defer tls.Free(144) + var bestlen, bestoff, i, j, m, n, v3 int32 + var end, p, v8 uintptr + var l Tsize_t + var _ /* lens at bp+4 */ [127]uint8 + var _ /* offset at bp+0 */ int32 + _, _, _, _, _, _, _, _, _, _, _ = bestlen, bestoff, end, i, j, l, m, n, p, v3, v8 + m = 0 + bestlen = 0 + l = Xstrnlen(tls, src, uint32(255)) + if l != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(src + uintptr(l-uint32(1))))) == int32('.') { + l = l - 1 + } + if l > uint32(253) || space <= 0 { + return -int32(1) + } + if !(l != 0) { + **(**uint8)(__ccgo_up(dst)) = uint8(0) + return int32(1) + } + end = src + uintptr(l) + n = _getlens(tls, bp+4, src, Int32FromUint32(l)) + if !(n != 0) { + return -int32(1) + } + p = dnptrs + if p != 0 && **(**uintptr)(__ccgo_up(p)) != 0 { + p += 4 + for { + if !(**(**uintptr)(__ccgo_up(p)) != 0) { + break + } + m = _match(tls, bp, **(**uintptr)(__ccgo_up(dnptrs)), **(**uintptr)(__ccgo_up(p)), end, bp+4, n) + if m > bestlen { + bestlen = m + bestoff = **(**int32)(__ccgo_up(bp)) + if Uint32FromInt32(m) == l { + break + } + } + goto _1 + _1: + ; + p += 4 + } + } + /* encode unmatched part */ + if Uint32FromInt32(space) < l-Uint32FromInt32(bestlen)+uint32(2)+BoolUint32(Uint32FromInt32(bestlen-Int32FromInt32(1)) < l-Uint32FromInt32(1)) { + return -int32(1) + } + _memcpy(tls, dst+uintptr(1), src, l-Uint32FromInt32(bestlen)) + v3 = Int32FromInt32(0) + j = v3 + i = v3 + for { + if !(Uint32FromInt32(i) < l-Uint32FromInt32(bestlen)) { + break + } + **(**uint8)(__ccgo_up(dst + uintptr(i))) = (**(**[127]uint8)(__ccgo_up(bp + 4)))[j] + goto _2 + _2: + ; + v3 = j + j = j + 1 + i = i + (Int32FromUint8((**(**[127]uint8)(__ccgo_up(bp + 4)))[v3]) + int32(1)) + } + /* add tail */ + if bestlen != 0 { + v3 = i + i = i + 1 + **(**uint8)(__ccgo_up(dst + uintptr(v3))) = Uint8FromInt32(int32(0xc0) | bestoff>>int32(8)) + v3 = i + i = i + 1 + **(**uint8)(__ccgo_up(dst + uintptr(v3))) = Uint8FromInt32(bestoff) + } else { + v3 = i + i = i + 1 + **(**uint8)(__ccgo_up(dst + uintptr(v3))) = uint8(0) + } + /* save dst pointer */ + if i > int32(2) && lastdnptr != 0 && dnptrs != 0 && **(**uintptr)(__ccgo_up(dnptrs)) != 0 { + for **(**uintptr)(__ccgo_up(p)) != 0 { + p += 4 + } + if p+uintptr(1)*4 < lastdnptr { + v8 = p + p += 4 + **(**uintptr)(__ccgo_up(v8)) = dst + **(**uintptr)(__ccgo_up(p)) = uintptr(0) + } + } + return i +} + +func X__dn_expand(tls *TLS, base uintptr, end uintptr, src uintptr, dest uintptr, space int32) (r int32) { + if __ccgo_strace { + trc("tls=%v base=%v end=%v src=%v dest=%v space=%v, (%v:)", tls, base, end, src, dest, space, origin(2)) + defer func() { trc("-> %v", r) }() + } + var dbegin, dend, p, v3, v4 uintptr + var i, j, len1, v1 int32 + _, _, _, _, _, _, _, _, _ = dbegin, dend, i, j, len1, p, v1, v3, v4 + p = src + dbegin = dest + len1 = -int32(1) + if p == end || space <= 0 { + return -int32(1) + } + if space > int32(254) { + v1 = int32(254) + } else { + v1 = space + } + dend = dest + uintptr(v1) + /* detect reference loop using an iteration counter */ + i = 0 + for { + if !(i < int32(end)-int32(base)) { + break + } + /* loop invariants: p= int32(end)-int32(base) { + return -int32(1) + } + p = base + uintptr(j) + } else { + if **(**uint8)(__ccgo_up(p)) != 0 { + if dest != dbegin { + v3 = dest + dest = dest + 1 + **(**uint8)(__ccgo_up(v3)) = uint8('.') + } + v3 = p + p = p + 1 + j = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + if j >= int32(end)-int32(p) || j >= int32(dend)-int32(dest) { + return -int32(1) + } + for { + v1 = j + j = j - 1 + if !(v1 != 0) { + break + } + v3 = dest + dest = dest + 1 + v4 = p + p = p + 1 + **(**uint8)(__ccgo_up(v3)) = uint8(**(**uint8)(__ccgo_up(v4))) + } + } else { + **(**uint8)(__ccgo_up(dest)) = uint8(0) + if len1 < 0 { + len1 = int32(p+uintptr(1)) - int32(src) + } + return len1 + } + } + goto _2 + _2: + ; + i = i + int32(2) + } + return -int32(1) +} + +func Xdn_expand(tls *TLS, base uintptr, end uintptr, src uintptr, dest uintptr, space int32) (r int32) { + if __ccgo_strace { + trc("tls=%v base=%v end=%v src=%v dest=%v space=%v, (%v:)", tls, base, end, src, dest, space, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__dn_expand(tls, base, end, src, dest, space) +} + +func Xdn_skipname(tls *TLS, s uintptr, end uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v end=%v, (%v:)", tls, s, end, origin(2)) + defer func() { trc("-> %v", r) }() + } + var p uintptr + _ = p + p = s + for p < end { + if !(**(**uint8)(__ccgo_up(p)) != 0) { + return int32(p) - int32(s) + int32(1) + } else { + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) >= int32(192) { + if p+uintptr(1) < end { + return int32(p) - int32(s) + int32(2) + } else { + break + } + } else { + if int32(end)-int32(p) < Int32FromUint8(**(**uint8)(__ccgo_up(p)))+int32(1) { + break + } else { + p = p + uintptr(Int32FromUint8(**(**uint8)(__ccgo_up(p)))+int32(1)) + } + } + } + } + return -int32(1) +} + +const AI_ADDRCONFIG = 32 +const AI_ALL = 16 +const AI_CANONNAME = 2 +const AI_NUMERICHOST = 4 +const AI_NUMERICSERV = 1024 +const AI_PASSIVE = 1 +const AI_V4MAPPED = 8 +const EAI_AGAIN = -3 +const EAI_BADFLAGS = -1 +const EAI_FAIL = -4 +const EAI_FAMILY = -6 +const EAI_MEMORY = -10 +const EAI_NODATA = -5 +const EAI_NONAME = -2 +const EAI_OVERFLOW = -12 +const EAI_SERVICE = -8 +const EAI_SOCKTYPE = -7 +const EAI_SYSTEM = -11 +const MAXADDRS = 48 +const MAXSERVS = 2 +const NI_DGRAM = 16 +const NI_NAMEREQD = 8 +const NI_NOFQDN = 4 +const NI_NUMERICHOST = 1 +const NI_NUMERICSCOPE = 256 +const NI_NUMERICSERV = 2 + +type Taddrinfo = struct { + Fai_flags int32 + Fai_family int32 + Fai_socktype int32 + Fai_protocol int32 + Fai_addrlen Tsocklen_t + Fai_addr uintptr + Fai_canonname uintptr + Fai_next uintptr +} + +type Tnetent = struct { + Fn_name uintptr + Fn_aliases uintptr + Fn_addrtype int32 + Fn_net Tuint32_t +} + +type Thostent = struct { + Fh_name uintptr + Fh_aliases uintptr + Fh_addrtype int32 + Fh_length int32 + Fh_addr_list uintptr +} + +type Tservent = struct { + Fs_name uintptr + Fs_aliases uintptr + Fs_port int32 + Fs_proto uintptr +} + +type Tprotoent = struct { + Fp_name uintptr + Fp_aliases uintptr + Fp_proto int32 +} + +type Taibuf = struct { + Fai Taddrinfo + Fsa Tsa + Flock [1]int32 + Fslot int16 + Fref int16 +} + +type Taddress = struct { + Ffamily int32 + Fscopeid uint32 + Faddr [16]Tuint8_t + Fsortkey int32 +} + +type Tservice = struct { + Fport Tuint16_t + Fproto uint8 + Fsocktype uint8 +} + +type Tresolvconf = struct { + Fns [3]Taddress + Fnns uint32 + Fattempts uint32 + Fndots uint32 + Ftimeout uint32 +} + +type t__ccgo_fp__X__dns_parse_2 = func(*TLS, uintptr, int32, uintptr, int32, uintptr, int32) int32 + +func X__dns_parse(tls *TLS, r uintptr, rlen int32, __ccgo_fp_callback uintptr, ctx uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v r=%v rlen=%v __ccgo_fp_callback=%v ctx=%v, (%v:)", tls, r, rlen, __ccgo_fp_callback, ctx, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var ancount, len1, qdcount, v1 int32 + var p uintptr + _, _, _, _, _ = ancount, len1, p, qdcount, v1 + if rlen < int32(12) { + return -int32(1) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(r + 3)))&int32(15) != 0 { + return 0 + } + p = r + uintptr(12) + qdcount = Int32FromUint8(**(**uint8)(__ccgo_up(r + 4)))*int32(256) + Int32FromUint8(**(**uint8)(__ccgo_up(r + 5))) + ancount = Int32FromUint8(**(**uint8)(__ccgo_up(r + 6)))*int32(256) + Int32FromUint8(**(**uint8)(__ccgo_up(r + 7))) + for { + v1 = qdcount + qdcount = qdcount - 1 + if !(v1 != 0) { + break + } + for int32(p)-int32(r) < rlen && uint32(**(**uint8)(__ccgo_up(p)))-uint32(1) < uint32(127) { + p = p + 1 + } + if p > r+uintptr(rlen)-uintptr(6) { + return -int32(1) + } + p = p + uintptr(int32(5)+BoolInt32(!!(**(**uint8)(__ccgo_up(p)) != 0))) + } + for { + v1 = ancount + ancount = ancount - 1 + if !(v1 != 0) { + break + } + for int32(p)-int32(r) < rlen && uint32(**(**uint8)(__ccgo_up(p)))-uint32(1) < uint32(127) { + p = p + 1 + } + if p > r+uintptr(rlen)-uintptr(12) { + return -int32(1) + } + p = p + uintptr(int32(1)+BoolInt32(!!(**(**uint8)(__ccgo_up(p)) != 0))) + len1 = Int32FromUint8(**(**uint8)(__ccgo_up(p + 8)))*int32(256) + Int32FromUint8(**(**uint8)(__ccgo_up(p + 9))) + if len1+int32(10) > int32(r+uintptr(rlen))-int32(p) { + return -int32(1) + } + if (*(*func(*TLS, uintptr, int32, uintptr, int32, uintptr, int32) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_callback})))(tls, ctx, Int32FromUint8(**(**uint8)(__ccgo_up(p + 1))), p+uintptr(10), len1, r, rlen) < 0 { + return -int32(1) + } + p = p + uintptr(int32(10)+len1) + } + return 0 +} + +type Tsa = struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte +} + +func Xsethostent(tls *TLS, x int32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + } +} + +func Xgethostent(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(0) +} + +func Xgetnetent(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(0) +} + +func Xendhostent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } +} + +func Xendnetent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + Xendhostent(tls) +} + +func Xsetnetent(tls *TLS, x int32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + } + Xsethostent(tls, x) +} + +const ARPD_FLUSH = 3 +const ARPD_LOOKUP = 2 +const ARPD_UPDATE = 1 +const ARPHRD_6LOWPAN = 825 +const ARPHRD_ADAPT = 264 +const ARPHRD_APPLETLK = 8 +const ARPHRD_ARCNET = 7 +const ARPHRD_ASH = 781 +const ARPHRD_ATM = 19 +const ARPHRD_AX25 = 3 +const ARPHRD_BIF = 775 +const ARPHRD_CAIF = 822 +const ARPHRD_CAN = 280 +const ARPHRD_CHAOS = 5 +const ARPHRD_CISCO = 513 +const ARPHRD_CSLIP = 257 +const ARPHRD_CSLIP6 = 259 +const ARPHRD_DDCMP = 517 +const ARPHRD_DLCI = 15 +const ARPHRD_ECONET = 782 +const ARPHRD_EETHER = 2 +const ARPHRD_ETHER = 1 +const ARPHRD_EUI64 = 27 +const ARPHRD_FCAL = 785 +const ARPHRD_FCFABRIC = 787 +const ARPHRD_FCPL = 786 +const ARPHRD_FCPP = 784 +const ARPHRD_FDDI = 774 +const ARPHRD_FRAD = 770 +const ARPHRD_HDLC = 513 +const ARPHRD_HIPPI = 780 +const ARPHRD_HWX25 = 272 +const ARPHRD_IEEE1394 = 24 +const ARPHRD_IEEE802 = 6 +const ARPHRD_IEEE80211 = 801 +const ARPHRD_IEEE80211_PRISM = 802 +const ARPHRD_IEEE80211_RADIOTAP = 803 +const ARPHRD_IEEE802154 = 804 +const ARPHRD_IEEE802154_MONITOR = 805 +const ARPHRD_IEEE802_TR = 800 +const ARPHRD_INFINIBAND = 32 +const ARPHRD_IP6GRE = 823 +const ARPHRD_IPDDP = 777 +const ARPHRD_IPGRE = 778 +const ARPHRD_IRDA = 783 +const ARPHRD_LAPB = 516 +const ARPHRD_LOCALTLK = 773 +const ARPHRD_LOOPBACK = 772 +const ARPHRD_METRICOM = 23 +const ARPHRD_NETLINK = 824 +const ARPHRD_NETROM = 0 +const ARPHRD_NONE = 65534 +const ARPHRD_PHONET = 820 +const ARPHRD_PHONET_PIPE = 821 +const ARPHRD_PIMREG = 779 +const ARPHRD_PPP = 512 +const ARPHRD_PRONET = 4 +const ARPHRD_RAWHDLC = 518 +const ARPHRD_RAWIP = 519 +const ARPHRD_ROSE = 270 +const ARPHRD_RSRVD = 260 +const ARPHRD_SIT = 776 +const ARPHRD_SKIP = 771 +const ARPHRD_SLIP = 256 +const ARPHRD_SLIP6 = 258 +const ARPHRD_TUNNEL = 768 +const ARPHRD_TUNNEL6 = 769 +const ARPHRD_VOID = 65535 +const ARPHRD_VSOCKMON = 826 +const ARPHRD_X25 = 271 +const ARPOP_InREPLY = 9 +const ARPOP_InREQUEST = 8 +const ARPOP_NAK = 10 +const ARPOP_REPLY = 2 +const ARPOP_REQUEST = 1 +const ARPOP_RREPLY = 4 +const ARPOP_RREQUEST = 3 +const ATF_COM = 2 +const ATF_DONTPUB = 64 +const ATF_MAGIC = 128 +const ATF_NETMASK = 32 +const ATF_PERM = 4 +const ATF_PUBL = 8 +const ATF_USETRAILERS = 16 +const ETHERMIN = 46 +const ETHERMTU = 1500 +const ETHERTYPE_AARP = 33011 +const ETHERTYPE_ARP = 2054 +const ETHERTYPE_AT = 32923 +const ETHERTYPE_IP = 2048 +const ETHERTYPE_IPV6 = 34525 +const ETHERTYPE_IPX = 33079 +const ETHERTYPE_LOOPBACK = 36864 +const ETHERTYPE_NTRAILER = 16 +const ETHERTYPE_PUP = 512 +const ETHERTYPE_REVARP = 32821 +const ETHERTYPE_SPRITE = 1280 +const ETHERTYPE_TRAIL = 4096 +const ETHERTYPE_VLAN = 33024 +const ETHER_ADDR_LEN = 6 +const ETHER_CRC_LEN = 4 +const ETHER_HDR_LEN = 14 +const ETHER_MAX_LEN = 1518 +const ETHER_MIN_LEN = 64 +const ETHER_TYPE_LEN = 2 +const ETH_ALEN = 6 +const ETH_DATA_LEN = 1500 +const ETH_FCS_LEN = 4 +const ETH_FRAME_LEN = 1514 +const ETH_HLEN = 14 +const ETH_MAX_MTU = 65535 +const ETH_MIN_MTU = 68 +const ETH_P_1588 = 35063 +const ETH_P_8021AD = 34984 +const ETH_P_8021AH = 35047 +const ETH_P_8021Q = 33024 +const ETH_P_80221 = 35095 +const ETH_P_802_2 = 4 +const ETH_P_802_3 = 1 +const ETH_P_802_3_MIN = 1536 +const ETH_P_802_EX1 = 34997 +const ETH_P_AARP = 33011 +const ETH_P_AF_IUCV = 64507 +const ETH_P_ALL = 3 +const ETH_P_AOE = 34978 +const ETH_P_ARCNET = 26 +const ETH_P_ARP = 2054 +const ETH_P_ATALK = 32923 +const ETH_P_ATMFATE = 34948 +const ETH_P_ATMMPOA = 34892 +const ETH_P_AX25 = 2 +const ETH_P_BATMAN = 17157 +const ETH_P_BPQ = 2303 +const ETH_P_CAIF = 247 +const ETH_P_CAN = 12 +const ETH_P_CANFD = 13 +const ETH_P_CFM = 35074 +const ETH_P_CONTROL = 22 +const ETH_P_CUST = 24582 +const ETH_P_DDCMP = 6 +const ETH_P_DEC = 24576 +const ETH_P_DIAG = 24581 +const ETH_P_DNA_DL = 24577 +const ETH_P_DNA_RC = 24578 +const ETH_P_DNA_RT = 24579 +const ETH_P_DSA = 27 +const ETH_P_DSA_8021Q = 56027 +const ETH_P_ECONET = 24 +const ETH_P_EDSA = 56026 +const ETH_P_ERSPAN = 35006 +const ETH_P_ERSPAN2 = 8939 +const ETH_P_FCOE = 35078 +const ETH_P_FIP = 35092 +const ETH_P_HDLC = 25 +const ETH_P_HSR = 35119 +const ETH_P_IBOE = 35093 +const ETH_P_IEEE802154 = 246 +const ETH_P_IEEEPUP = 2560 +const ETH_P_IEEEPUPAT = 2561 +const ETH_P_IFE = 60734 +const ETH_P_IP = 2048 +const ETH_P_IPV6 = 34525 +const ETH_P_IPX = 33079 +const ETH_P_IRDA = 23 +const ETH_P_LAT = 24580 +const ETH_P_LINK_CTL = 34924 +const ETH_P_LLDP = 35020 +const ETH_P_LOCALTALK = 9 +const ETH_P_LOOP = 96 +const ETH_P_LOOPBACK = 36864 +const ETH_P_MACSEC = 35045 +const ETH_P_MAP = 249 +const ETH_P_MOBITEX = 21 +const ETH_P_MPLS_MC = 34888 +const ETH_P_MPLS_UC = 34887 +const ETH_P_MRP = 35043 +const ETH_P_MVRP = 35061 +const ETH_P_NCSI = 35064 +const ETH_P_NSH = 35151 +const ETH_P_PAE = 34958 +const ETH_P_PAUSE = 34824 +const ETH_P_PHONET = 245 +const ETH_P_PPPTALK = 16 +const ETH_P_PPP_DISC = 34915 +const ETH_P_PPP_MP = 8 +const ETH_P_PPP_SES = 34916 +const ETH_P_PREAUTH = 35015 +const ETH_P_PRP = 35067 +const ETH_P_PUP = 512 +const ETH_P_PUPAT = 513 +const ETH_P_QINQ1 = 37120 +const ETH_P_QINQ2 = 37376 +const ETH_P_QINQ3 = 37632 +const ETH_P_RARP = 32821 +const ETH_P_SCA = 24583 +const ETH_P_SLOW = 34825 +const ETH_P_SNAP = 5 +const ETH_P_TDLS = 35085 +const ETH_P_TEB = 25944 +const ETH_P_TIPC = 35018 +const ETH_P_TRAILER = 28 +const ETH_P_TR_802_2 = 17 +const ETH_P_TSN = 8944 +const ETH_P_WAN_PPP = 7 +const ETH_P_WCCP = 34878 +const ETH_P_X25 = 2053 +const ETH_P_XDSA = 248 +const ETH_TLEN = 2 +const ETH_ZLEN = 60 +const MAX_ADDR_LEN = 7 +const __UAPI_DEF_ETHHDR = 0 + +type Tethhdr = struct { + Fh_dest [6]Tuint8_t + Fh_source [6]Tuint8_t + Fh_proto Tuint16_t +} + +type Tether_addr = struct { + Fether_addr_octet [6]Tuint8_t +} + +type Tether_header = struct { + Fether_dhost [6]Tuint8_t + Fether_shost [6]Tuint8_t + Fether_type Tuint16_t +} + +type Tarphdr = struct { + Far_hrd Tuint16_t + Far_pro Tuint16_t + Far_hln Tuint8_t + Far_pln Tuint8_t + Far_op Tuint16_t +} + +type Tarpreq = struct { + Farp_pa Tsockaddr + Farp_ha Tsockaddr + Farp_flags int32 + Farp_netmask Tsockaddr + Farp_dev [16]uint8 +} + +type Tarpreq_old = struct { + Farp_pa Tsockaddr + Farp_ha Tsockaddr + Farp_flags int32 + Farp_netmask Tsockaddr +} + +type Tarpd_request = struct { + Freq uint16 + Fip Tuint32_t + Fdev uint32 + Fstamp uint32 + Fupdated uint32 + Fha [7]uint8 +} + +type Tether_arp = struct { + Fea_hdr Tarphdr + Farp_sha [6]Tuint8_t + Farp_spa [4]Tuint8_t + Farp_tha [6]Tuint8_t + Farp_tpa [4]Tuint8_t +} + +func Xether_aton_r(tls *TLS, x uintptr, p_a uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v x=%v p_a=%v, (%v:)", tls, x, p_a, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ii int32 + var n uint32 + var _ /* a at bp+0 */ Tether_addr + var _ /* y at bp+8 */ uintptr + _, _ = ii, n + ii = 0 + for { + if !(ii < int32(6)) { + break + } + if ii != 0 { + if Int32FromUint8(**(**uint8)(__ccgo_up(x))) != int32(':') { + return uintptr(0) + } else { + x = x + 1 + } + } + n = Xstrtoul(tls, x, bp+8, int32(16)) + x = **(**uintptr)(__ccgo_up(bp + 8)) + if n > uint32(0xFF) { + return uintptr(0) + } /* bad byte */ + **(**Tuint8_t)(__ccgo_up(bp + uintptr(ii))) = uint8(n) + goto _1 + _1: + ; + ii = ii + 1 + } + if Int32FromUint8(**(**uint8)(__ccgo_up(x))) != 0 { + return uintptr(0) + } /* bad format */ + **(**Tether_addr)(__ccgo_up(p_a)) = **(**Tether_addr)(__ccgo_up(bp)) + return p_a +} + +func Xether_aton(tls *TLS, x uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xether_aton_r(tls, x, uintptr(unsafe.Pointer(&_a))) +} + +var _a Tether_addr + +func Xether_ntoa_r(tls *TLS, p_a uintptr, x uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v p_a=%v x=%v, (%v:)", tls, p_a, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ii int32 + var y, v2 uintptr + _, _, _ = ii, y, v2 + y = x + ii = 0 + for { + if !(ii < int32(6)) { + break + } + if ii == 0 { + v2 = __ccgo_ts + 886 + } else { + v2 = __ccgo_ts + 891 + } + x = x + uintptr(Xsprintf(tls, x, v2, VaList(bp+8, Int32FromUint8(**(**Tuint8_t)(__ccgo_up(p_a + uintptr(ii))))))) + goto _1 + _1: + ; + ii = ii + 1 + } + return y +} + +func Xether_ntoa(tls *TLS, p_a uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v p_a=%v, (%v:)", tls, p_a, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xether_ntoa_r(tls, p_a, uintptr(unsafe.Pointer(&_x))) +} + +var _x [18]uint8 + +func Xether_line(tls *TLS, l uintptr, e uintptr, hostname uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v l=%v e=%v hostname=%v, (%v:)", tls, l, e, hostname, origin(2)) + defer func() { trc("-> %v", r) }() + } + return -int32(1) +} + +func Xether_ntohost(tls *TLS, hostname uintptr, e uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v hostname=%v e=%v, (%v:)", tls, hostname, e, origin(2)) + defer func() { trc("-> %v", r) }() + } + return -int32(1) +} + +func Xether_hostton(tls *TLS, hostname uintptr, e uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v hostname=%v e=%v, (%v:)", tls, hostname, e, origin(2)) + defer func() { trc("-> %v", r) }() + } + return -int32(1) +} + +func Xfreeaddrinfo(tls *TLS, p uintptr) { + if __ccgo_strace { + trc("tls=%v p=%v, (%v:)", tls, p, origin(2)) + } + var b, v2 uintptr + var cnt Tsize_t + _, _, _ = b, cnt, v2 + cnt = uint32(1) + for { + if !((*Taddrinfo)(unsafe.Pointer(p)).Fai_next != 0) { + break + } + goto _1 + _1: + ; + cnt = cnt + 1 + p = (*Taddrinfo)(unsafe.Pointer(p)).Fai_next + } + b = p - uintptr(uint32(UintptrFromInt32(0))) + b = b - uintptr((*Taibuf)(unsafe.Pointer(b)).Fslot)*68 + ___lock(tls, b+60) + v2 = b + 66 + *(*int16)(unsafe.Pointer(v2)) = int16(uint32(*(*int16)(unsafe.Pointer(v2))) - cnt) + if !(*(*int16)(unsafe.Pointer(v2)) != 0) { + Xfree(tls, b) + } else { + ___unlock(tls, b+60) + } +} + +var _msgs = [252]uint8{'I', 'n', 'v', 'a', 'l', 'i', 'd', ' ', 'f', 'l', 'a', 'g', 's', 0, 'N', 'a', 'm', 'e', ' ', 'd', 'o', 'e', 's', ' ', 'n', 'o', 't', ' ', 'r', 'e', 's', 'o', 'l', 'v', 'e', 0, 'T', 'r', 'y', ' ', 'a', 'g', 'a', 'i', 'n', 0, 'N', 'o', 'n', '-', 'r', 'e', 'c', 'o', 'v', 'e', 'r', 'a', 'b', 'l', 'e', ' ', 'e', 'r', 'r', 'o', 'r', 0, 'N', 'a', 'm', 'e', ' ', 'h', 'a', 's', ' ', 'n', 'o', ' ', 'u', 's', 'a', 'b', 'l', 'e', ' ', 'a', 'd', 'd', 'r', 'e', 's', 's', 0, 'U', 'n', 'r', 'e', 'c', 'o', 'g', 'n', 'i', 'z', 'e', 'd', ' ', 'a', 'd', 'd', 'r', 'e', 's', 's', ' ', 'f', 'a', 'm', 'i', 'l', 'y', ' ', 'o', 'r', ' ', 'i', 'n', 'v', 'a', 'l', 'i', 'd', ' ', 'l', 'e', 'n', 'g', 't', 'h', 0, 'U', 'n', 'r', 'e', 'c', 'o', 'g', 'n', 'i', 'z', 'e', 'd', ' ', 's', 'o', 'c', 'k', 'e', 't', ' ', 't', 'y', 'p', 'e', 0, 'U', 'n', 'r', 'e', 'c', 'o', 'g', 'n', 'i', 'z', 'e', 'd', ' ', 's', 'e', 'r', 'v', 'i', 'c', 'e', 0, 'U', 'n', 'k', 'n', 'o', 'w', 'n', ' ', 'e', 'r', 'r', 'o', 'r', 0, 'O', 'u', 't', ' ', 'o', 'f', ' ', 'm', 'e', 'm', 'o', 'r', 'y', 0, 'S', 'y', 's', 't', 'e', 'm', ' ', 'e', 'r', 'r', 'o', 'r', 0, 'O', 'v', 'e', 'r', 'f', 'l', 'o', 'w', 0, 0, 'U', 'n', 'k', 'n', 'o', 'w', 'n', ' ', 'e', 'r', 'r', 'o', 'r'} + +func Xgai_strerror(tls *TLS, ecode int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v ecode=%v, (%v:)", tls, ecode, origin(2)) + defer func() { trc("-> %v", r) }() + } + var s uintptr + _ = s + s = uintptr(unsafe.Pointer(&_msgs)) + ecode = ecode + 1 + for { + if !(ecode != 0 && **(**uint8)(__ccgo_up(s)) != 0) { + break + } + for { + if !(**(**uint8)(__ccgo_up(s)) != 0) { + break + } + goto _2 + _2: + ; + s = s + 1 + } + goto _1 + _1: + ; + ecode = ecode + 1 + s = s + 1 + } + if !(**(**uint8)(__ccgo_up(s)) != 0) { + s = s + 1 + } + return X__lctrans_cur(tls, s) +} + +func Xgetaddrinfo(tls *TLS, host uintptr, serv uintptr, hint uintptr, res uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v host=%v serv=%v hint=%v res=%v, (%v:)", tls, host, serv, hint, res, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(1616) + defer tls.Free(1616) + var canon_len, family, flags, i, j, k, mask, naddrs, nais, no_family, nservs, proto, r, s, saved_errno, socktype, v3 int32 + var out, outcanon uintptr + var ta [2]uintptr + var tf [2]int32 + var tl [2]Tsocklen_t + var v5 uint32 + var _ /* addrs at bp+8 */ [48]Taddress + var _ /* canon at bp+1352 */ [256]uint8 + var _ /* cs at bp+1608 */ int32 + var _ /* ports at bp+0 */ [2]Tservice + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = canon_len, family, flags, i, j, k, mask, naddrs, nais, no_family, nservs, out, outcanon, proto, r, s, saved_errno, socktype, ta, tf, tl, v3, v5 + family = PF_UNSPEC + flags = 0 + proto = 0 + socktype = 0 + no_family = 0 + if !(host != 0) && !(serv != 0) { + return -int32(2) + } + if hint != 0 { + family = (*Taddrinfo)(unsafe.Pointer(hint)).Fai_family + flags = (*Taddrinfo)(unsafe.Pointer(hint)).Fai_flags + proto = (*Taddrinfo)(unsafe.Pointer(hint)).Fai_protocol + socktype = (*Taddrinfo)(unsafe.Pointer(hint)).Fai_socktype + mask = Int32FromInt32(AI_PASSIVE) | Int32FromInt32(AI_CANONNAME) | Int32FromInt32(AI_NUMERICHOST) | Int32FromInt32(AI_V4MAPPED) | Int32FromInt32(AI_ALL) | Int32FromInt32(AI_ADDRCONFIG) | Int32FromInt32(AI_NUMERICSERV) + if flags&mask != flags { + return -int32(1) + } + switch family { + case int32(PF_INET): + fallthrough + case int32(PF_INET6): + fallthrough + case PF_UNSPEC: + default: + return -int32(6) + } + } + if flags&int32(AI_ADDRCONFIG) != 0 { + tf = [2]int32{ + 0: int32(PF_INET), + 1: int32(PF_INET6), + } + ta = [2]uintptr{ + 0: uintptr(unsafe.Pointer(&_lo4)), + 1: uintptr(unsafe.Pointer(&_lo6)), + } + tl = [2]Tsocklen_t{ + 0: uint32(16), + 1: uint32(28), + } + i = 0 + for { + if !(i < int32(2)) { + break + } + if family == tf[int32(1)-i] { + goto _1 + } + s = Xsocket(tls, tf[i], Int32FromInt32(SOCK_CLOEXEC)|Int32FromInt32(SOCK_DGRAM), int32(IPPROTO_UDP)) + if s >= 0 { + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp+1608) + r = Xconnect(tls, s, ta[i], tl[i]) + saved_errno = **(**int32)(__ccgo_up(X__errno_location(tls))) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 1608)), uintptr(0)) + Xclose(tls, s) + if !(r != 0) { + goto _1 + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = saved_errno + } + switch **(**int32)(__ccgo_up(X__errno_location(tls))) { + case int32(EADDRNOTAVAIL): + fallthrough + case int32(EAFNOSUPPORT): + fallthrough + case int32(EHOSTUNREACH): + fallthrough + case int32(ENETDOWN): + fallthrough + case int32(ENETUNREACH): + default: + return -int32(11) + } + if family == tf[i] { + no_family = int32(1) + } + family = tf[int32(1)-i] + goto _1 + _1: + ; + i = i + 1 + } + } + nservs = X__lookup_serv(tls, bp, serv, proto, socktype, flags) + if nservs < 0 { + return nservs + } + naddrs = X__lookup_name(tls, bp+8, bp+1352, host, family, flags) + if naddrs < 0 { + return naddrs + } + if no_family != 0 { + return -int32(5) + } + nais = nservs * naddrs + canon_len = Int32FromUint32(_strlen(tls, bp+1352)) + out = Xcalloc(tls, uint32(1), Uint32FromInt32(nais)*uint32(68)+Uint32FromInt32(canon_len)+uint32(1)) + if !(out != 0) { + return -int32(10) + } + if canon_len != 0 { + outcanon = out + uintptr(nais)*68 + _memcpy(tls, outcanon, bp+1352, Uint32FromInt32(canon_len+int32(1))) + } else { + outcanon = uintptr(0) + } + v3 = Int32FromInt32(0) + i = v3 + k = v3 + for { + if !(i < naddrs) { + break + } + j = 0 + for { + if !(j < nservs) { + break + } + (**(**Taibuf)(__ccgo_up(out + uintptr(k)*68))).Fslot = int16(k) + if (**(**[48]Taddress)(__ccgo_up(bp + 8)))[i].Ffamily == int32(PF_INET) { + v5 = uint32(16) + } else { + v5 = uint32(28) + } + (**(**Taibuf)(__ccgo_up(out + uintptr(k)*68))).Fai = Taddrinfo{ + Fai_family: (**(**[48]Taddress)(__ccgo_up(bp + 8)))[i].Ffamily, + Fai_socktype: Int32FromUint8((**(**[2]Tservice)(__ccgo_up(bp)))[j].Fsocktype), + Fai_protocol: Int32FromUint8((**(**[2]Tservice)(__ccgo_up(bp)))[j].Fproto), + Fai_addrlen: v5, + Fai_addr: out + uintptr(k)*68 + 32, + Fai_canonname: outcanon, + } + if k != 0 { + (**(**Taibuf)(__ccgo_up(out + uintptr(k-int32(1))*68))).Fai.Fai_next = out + uintptr(k)*68 + } + switch (**(**[48]Taddress)(__ccgo_up(bp + 8)))[i].Ffamily { + case int32(PF_INET): + *(*Tsa_family_t)(unsafe.Pointer(out + uintptr(k)*68 + 32)) = uint16(PF_INET) + *(*Tin_port_t)(unsafe.Pointer(out + uintptr(k)*68 + 32 + 2)) = Xhtons(tls, (**(**[2]Tservice)(__ccgo_up(bp)))[j].Fport) + _memcpy(tls, out+uintptr(k)*68+32+4, bp+8+uintptr(i)*28+8, uint32(4)) + case int32(PF_INET6): + *(*Tsa_family_t)(unsafe.Pointer(out + uintptr(k)*68 + 32)) = uint16(PF_INET6) + *(*Tin_port_t)(unsafe.Pointer(out + uintptr(k)*68 + 32 + 2)) = Xhtons(tls, (**(**[2]Tservice)(__ccgo_up(bp)))[j].Fport) + *(*Tuint32_t)(unsafe.Pointer(out + uintptr(k)*68 + 32 + 24)) = (**(**[48]Taddress)(__ccgo_up(bp + 8)))[i].Fscopeid + _memcpy(tls, out+uintptr(k)*68+32+8, bp+8+uintptr(i)*28+8, uint32(16)) + break + } + goto _4 + _4: + ; + j = j + 1 + k = k + 1 + } + goto _2 + _2: + ; + i = i + 1 + } + (**(**Taibuf)(__ccgo_up(out))).Fref = int16(nais) + **(**uintptr)(__ccgo_up(res)) = out + return 0 +} + +/* Define the "an address is configured" condition for address + * families via ability to create a socket for the family plus + * routability of the loopback address for the family. */ +var _lo4 = Tsockaddr_in{ + Fsin_family: uint16(PF_INET), + Fsin_port: uint16(65535), + Fsin_addr: Tin_addr{ + Fs_addr: uint32(0x0100007f), + }, +} + +var _lo6 = Tsockaddr_in6{ + Fsin6_family: uint16(PF_INET6), + Fsin6_port: uint16(65535), + Fsin6_addr: Tin6_addr{ + F__in6_union: *(*struct { + F__s6_addr16 [0][8]Tuint16_t + F__s6_addr32 [0][4]Tuint32_t + F__s6_addr [16]Tuint8_t + })(unsafe.Pointer(&[16]Tuint8_t{ + 15: uint8(1), + })), + }, +} + +const EAI_ADDRFAMILY = -9 +const EAI_ALLDONE = -103 +const EAI_CANCELED = -101 +const EAI_IDN_ENCODE = -105 +const EAI_INPROGRESS = -100 +const EAI_INTR = -104 +const EAI_NOTCANCELED = -102 +const HOST_NOT_FOUND = 1 +const MCAST_BLOCK_SOURCE = 43 +const MCAST_EXCLUDE = 0 +const MCAST_INCLUDE = 1 +const MCAST_JOIN_GROUP = 42 +const MCAST_JOIN_SOURCE_GROUP = 46 +const MCAST_LEAVE_GROUP = 45 +const MCAST_LEAVE_SOURCE_GROUP = 47 +const MCAST_MSFILTER = 48 +const MCAST_UNBLOCK_SOURCE = 44 +const NI_MAXHOST = 255 +const NI_MAXSERV = 32 +const NO_ADDRESS = 4 +const NO_DATA = 4 +const NO_RECOVERY = 3 +const TRY_AGAIN = 2 +const h_errno = 0 + +type Tip_mreq = struct { + Fimr_multiaddr Tin_addr + Fimr_interface Tin_addr +} + +type Tip_mreqn = struct { + Fimr_multiaddr Tin_addr + Fimr_address Tin_addr + Fimr_ifindex int32 +} + +type Tip_mreq_source = struct { + Fimr_multiaddr Tin_addr + Fimr_interface Tin_addr + Fimr_sourceaddr Tin_addr +} + +type Tip_msfilter = struct { + Fimsf_multiaddr Tin_addr + Fimsf_interface Tin_addr + Fimsf_fmode Tuint32_t + Fimsf_numsrc Tuint32_t + Fimsf_slist [1]Tin_addr +} + +type Tgroup_req = struct { + Fgr_interface Tuint32_t + Fgr_group Tsockaddr_storage +} + +type Tgroup_source_req = struct { + Fgsr_interface Tuint32_t + Fgsr_group Tsockaddr_storage + Fgsr_source Tsockaddr_storage +} + +type Tgroup_filter = struct { + Fgf_interface Tuint32_t + Fgf_group Tsockaddr_storage + Fgf_fmode Tuint32_t + Fgf_numsrc Tuint32_t + Fgf_slist [1]Tsockaddr_storage +} + +type Tin_pktinfo = struct { + Fipi_ifindex int32 + Fipi_spec_dst Tin_addr + Fipi_addr Tin_addr +} + +type Tin6_pktinfo = struct { + Fipi6_addr Tin6_addr + Fipi6_ifindex uint32 +} + +type Tip6_mtuinfo = struct { + Fip6m_addr Tsockaddr_in6 + Fip6m_mtu Tuint32_t +} + +func Xgethostbyaddr(tls *TLS, a uintptr, l Tsocklen_t, af int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v a=%v l=%v af=%v, (%v:)", tls, a, l, af, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var err int32 + var size Tsize_t + var _ /* res at bp+0 */ uintptr + _, _ = err, size + size = uint32(63) + for cond := true; cond; cond = err == int32(ERANGE) { + Xfree(tls, _h) + size = size + (size + uint32(1)) + _h = Xmalloc(tls, size) + if !(_h != 0) { + **(**int32)(__ccgo_up(X__h_errno_location(tls))) = int32(NO_RECOVERY) + return uintptr(0) + } + err = Xgethostbyaddr_r(tls, a, l, af, _h, _h+UintptrFromInt32(1)*20, size-uint32(20), bp, X__h_errno_location(tls)) + } + return **(**uintptr)(__ccgo_up(bp)) +} + +var _h uintptr + +func Xgethostbyaddr_r(tls *TLS, a uintptr, l Tsocklen_t, af int32, h uintptr, buf uintptr, buflen Tsize_t, res uintptr, err uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v a=%v l=%v af=%v h=%v buf=%v buflen=%v res=%v err=%v, (%v:)", tls, a, l, af, h, buf, buflen, res, err, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var i int32 + var sl Tsocklen_t + var v1 uint32 + var _ /* sa at bp+0 */ struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + } + _, _, _ = i, sl, v1 + *(*struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + })(unsafe.Pointer(bp)) = struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + }{} + *(*uint16)(unsafe.Pointer(bp)) = Uint16FromInt32(af) + if af == int32(PF_INET6) { + v1 = uint32(28) + } else { + v1 = uint32(16) + } + sl = v1 + **(**uintptr)(__ccgo_up(res)) = uintptr(0) + /* Load address argument into sockaddr structure */ + if af == int32(PF_INET6) && l == uint32(16) { + _memcpy(tls, bp+8, a, uint32(16)) + } else { + if af == int32(PF_INET) && l == uint32(4) { + _memcpy(tls, bp+4, a, uint32(4)) + } else { + **(**int32)(__ccgo_up(err)) = int32(NO_RECOVERY) + return int32(EINVAL) + } + } + /* Align buffer and check for space for pointers and ip address */ + i = Int32FromUint32(uint32(buf) & (Uint32FromInt64(4) - Uint32FromInt32(1))) + if !(i != 0) { + i = int32(4) + } + if buflen <= Uint32FromInt32(5)*Uint32FromInt64(4)-Uint32FromInt32(i)+l { + return int32(ERANGE) + } + buf = buf + uintptr(uint32(4)-Uint32FromInt32(i)) + buflen = buflen - (Uint32FromInt32(5)*Uint32FromInt64(4) - Uint32FromInt32(i) + l) + (*Thostent)(unsafe.Pointer(h)).Fh_addr_list = buf + buf = buf + uintptr(Uint32FromInt32(2)*Uint32FromInt64(4)) + (*Thostent)(unsafe.Pointer(h)).Fh_aliases = buf + buf = buf + uintptr(Uint32FromInt32(2)*Uint32FromInt64(4)) + **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_addr_list)) = buf + _memcpy(tls, **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_addr_list)), a, l) + buf = buf + uintptr(l) + **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_addr_list + 1*4)) = uintptr(0) + **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_aliases)) = buf + **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_aliases + 1*4)) = uintptr(0) + switch Xgetnameinfo(tls, bp, sl, buf, buflen, uintptr(0), uint32(0), 0) { + case -int32(3): + **(**int32)(__ccgo_up(err)) = int32(TRY_AGAIN) + return int32(EAGAIN) + case -int32(12): + return int32(ERANGE) + default: + fallthrough + case -int32(4): + **(**int32)(__ccgo_up(err)) = int32(NO_RECOVERY) + return int32(EBADMSG) + case -int32(11): + **(**int32)(__ccgo_up(err)) = int32(NO_RECOVERY) + return **(**int32)(__ccgo_up(X__errno_location(tls))) + case 0: + break + } + (*Thostent)(unsafe.Pointer(h)).Fh_addrtype = af + (*Thostent)(unsafe.Pointer(h)).Fh_length = Int32FromUint32(l) + (*Thostent)(unsafe.Pointer(h)).Fh_name = **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_aliases)) + **(**uintptr)(__ccgo_up(res)) = h + return 0 +} + +func Xgethostbyname(tls *TLS, name uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgethostbyname2(tls, name, int32(PF_INET)) +} + +func Xgethostbyname2(tls *TLS, name uintptr, af int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v af=%v, (%v:)", tls, name, af, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var err int32 + var size Tsize_t + var _ /* res at bp+0 */ uintptr + _, _ = err, size + size = uint32(63) + for cond := true; cond; cond = err == int32(ERANGE) { + Xfree(tls, _h1) + size = size + (size + uint32(1)) + _h1 = Xmalloc(tls, size) + if !(_h1 != 0) { + **(**int32)(__ccgo_up(X__h_errno_location(tls))) = int32(NO_RECOVERY) + return uintptr(0) + } + err = Xgethostbyname2_r(tls, name, af, _h1, _h1+UintptrFromInt32(1)*20, size-uint32(20), bp, X__h_errno_location(tls)) + } + return **(**uintptr)(__ccgo_up(bp)) +} + +var _h1 uintptr + +func Xgethostbyname2_r(tls *TLS, name uintptr, af int32, h uintptr, buf uintptr, buflen Tsize_t, res uintptr, err uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v af=%v h=%v buf=%v buflen=%v res=%v err=%v, (%v:)", tls, name, af, h, buf, buflen, res, err, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(1600) + defer tls.Free(1600) + var align, need Tsize_t + var cnt, i, v1 int32 + var v3 uintptr + var _ /* addrs at bp+0 */ [48]Taddress + var _ /* canon at bp+1344 */ [256]uint8 + _, _, _, _, _, _ = align, cnt, i, need, v1, v3 + **(**uintptr)(__ccgo_up(res)) = uintptr(0) + cnt = X__lookup_name(tls, bp, bp+1344, name, af, int32(AI_CANONNAME)) + if cnt < 0 { + switch cnt { + case -int32(2): + **(**int32)(__ccgo_up(err)) = int32(HOST_NOT_FOUND) + return 0 + case -int32(5): + **(**int32)(__ccgo_up(err)) = int32(NO_DATA) + return 0 + case -int32(3): + **(**int32)(__ccgo_up(err)) = int32(TRY_AGAIN) + return int32(EAGAIN) + default: + fallthrough + case -int32(4): + **(**int32)(__ccgo_up(err)) = int32(NO_RECOVERY) + return int32(EBADMSG) + case -int32(11): + **(**int32)(__ccgo_up(err)) = int32(NO_RECOVERY) + return **(**int32)(__ccgo_up(X__errno_location(tls))) + } + } + (*Thostent)(unsafe.Pointer(h)).Fh_addrtype = af + if af == int32(PF_INET6) { + v1 = int32(16) + } else { + v1 = int32(4) + } + (*Thostent)(unsafe.Pointer(h)).Fh_length = v1 + /* Align buffer */ + align = -uint32(buf) & (Uint32FromInt64(4) - Uint32FromInt32(1)) + need = Uint32FromInt32(4) * Uint32FromInt64(4) + need = need + Uint32FromInt32(cnt+Int32FromInt32(1))*(uint32(4)+Uint32FromInt32((*Thostent)(unsafe.Pointer(h)).Fh_length)) + need = need + (_strlen(tls, name) + uint32(1)) + need = need + (_strlen(tls, bp+1344) + uint32(1)) + need = need + align + if need > buflen { + return int32(ERANGE) + } + buf = buf + uintptr(align) + (*Thostent)(unsafe.Pointer(h)).Fh_aliases = buf + buf = buf + uintptr(Uint32FromInt32(3)*Uint32FromInt64(4)) + (*Thostent)(unsafe.Pointer(h)).Fh_addr_list = buf + buf = buf + uintptr(Uint32FromInt32(cnt+Int32FromInt32(1))*uint32(4)) + i = 0 + for { + if !(i < cnt) { + break + } + **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_addr_list + uintptr(i)*4)) = buf + buf = buf + uintptr((*Thostent)(unsafe.Pointer(h)).Fh_length) + _memcpy(tls, **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_addr_list + uintptr(i)*4)), bp+uintptr(i)*28+8, Uint32FromInt32((*Thostent)(unsafe.Pointer(h)).Fh_length)) + goto _2 + _2: + ; + i = i + 1 + } + **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_addr_list + uintptr(i)*4)) = uintptr(0) + v3 = buf + **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_aliases)) = v3 + (*Thostent)(unsafe.Pointer(h)).Fh_name = v3 + Xstrcpy(tls, (*Thostent)(unsafe.Pointer(h)).Fh_name, bp+1344) + buf = buf + uintptr(_strlen(tls, (*Thostent)(unsafe.Pointer(h)).Fh_name)+uint32(1)) + if Xstrcmp(tls, (*Thostent)(unsafe.Pointer(h)).Fh_name, name) != 0 { + **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_aliases + 1*4)) = buf + Xstrcpy(tls, **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_aliases + 1*4)), name) + buf = buf + uintptr(_strlen(tls, **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_aliases + 1*4)))+uint32(1)) + } else { + **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_aliases + 1*4)) = uintptr(0) + } + **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_aliases + 2*4)) = uintptr(0) + **(**uintptr)(__ccgo_up(res)) = h + return 0 +} + +func Xgethostbyname_r(tls *TLS, name uintptr, h uintptr, buf uintptr, buflen Tsize_t, res uintptr, err uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v h=%v buf=%v buflen=%v res=%v err=%v, (%v:)", tls, name, h, buf, buflen, res, err, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgethostbyname2_r(tls, name, int32(PF_INET), h, buf, buflen, res, err) +} + +const IFADDRS_HASH_SIZE = 64 +const IFA_ADDRESS = 1 +const IFA_BROADCAST = 4 +const IFA_LABEL = 3 +const IFA_LOCAL = 2 +const IFF_ALLMULTI = 512 +const IFF_AUTOMEDIA = 16384 +const IFF_BROADCAST = 2 +const IFF_DEBUG = 4 +const IFF_DORMANT = 131072 +const IFF_DYNAMIC = 32768 +const IFF_ECHO = 262144 +const IFF_LOOPBACK = 8 +const IFF_LOWER_UP = 65536 +const IFF_MASTER = 1024 +const IFF_MULTICAST = 4096 +const IFF_NOARP = 128 +const IFF_NOTRAILERS = 32 +const IFF_POINTOPOINT = 16 +const IFF_PORTSEL = 8192 +const IFF_PROMISC = 256 +const IFF_RUNNING = 64 +const IFF_SLAVE = 2048 +const IFF_UP = 1 +const IFF_VOLATILE = 461914 +const IFHWADDRLEN = 6 +const IFLA_ADDRESS = 1 +const IFLA_BROADCAST = 2 +const IFLA_IFNAME = 3 +const IFLA_STATS = 7 +const IFNAMSIZ = 16 +const IF_NAMESIZE = 16 +const NETLINK_ROUTE = 0 +const NLMSG_DONE = 3 +const NLMSG_ERROR = 2 +const NLMSG_NOOP = 1 +const NLMSG_OVERRUN = 4 +const NLM_F_ACK = 4 +const NLM_F_ATOMIC = 1024 +const NLM_F_DUMP = 768 +const NLM_F_MATCH = 512 +const NLM_F_MULTI = 2 +const NLM_F_REQUEST = 1 +const NLM_F_ROOT = 256 +const RTM_GETADDR = 22 +const RTM_GETLINK = 18 +const RTM_NEWADDR = 20 +const RTM_NEWLINK = 16 +const __UAPI_DEF_IF_IFCONF = 0 +const __UAPI_DEF_IF_IFMAP = 0 +const __UAPI_DEF_IF_IFNAMSIZ = 0 +const __UAPI_DEF_IF_IFREQ = 0 +const __UAPI_DEF_IF_NET_DEVICE_FLAGS = 0 +const __UAPI_DEF_IF_NET_DEVICE_FLAGS_LOWER_UP_DORMANT_ECHO = 0 + +type Tifaddrs = struct { + Fifa_next uintptr + Fifa_name uintptr + Fifa_flags uint32 + Fifa_addr uintptr + Fifa_netmask uintptr + Fifa_ifu struct { + Fifu_dstaddr [0]uintptr + Fifu_broadaddr uintptr + } + Fifa_data uintptr +} + +type Tif_nameindex = struct { + Fif_index uint32 + Fif_name uintptr +} + +type Tifaddr = struct { + Fifa_addr Tsockaddr + Fifa_ifu struct { + Fifu_dstaddr [0]Tsockaddr + Fifu_broadaddr Tsockaddr + } + Fifa_ifp uintptr + Fifa_next uintptr +} + +type Tifmap = struct { + Fmem_start uint32 + Fmem_end uint32 + Fbase_addr uint16 + Firq uint8 + Fdma uint8 + Fport uint8 +} + +type Tifreq = struct { + Fifr_ifrn struct { + Fifrn_name [16]uint8 + } + Fifr_ifru struct { + Fifru_dstaddr [0]Tsockaddr + Fifru_broadaddr [0]Tsockaddr + Fifru_netmask [0]Tsockaddr + Fifru_hwaddr [0]Tsockaddr + Fifru_flags [0]int16 + Fifru_ivalue [0]int32 + Fifru_mtu [0]int32 + Fifru_map [0]Tifmap + Fifru_slave [0][16]uint8 + Fifru_newname [0][16]uint8 + Fifru_data [0]uintptr + Fifru_addr Tsockaddr + } +} + +type Tifconf = struct { + Fifc_len int32 + Fifc_ifcu struct { + Fifcu_req [0]uintptr + Fifcu_buf uintptr + } +} + +type Tnlmsghdr = struct { + Fnlmsg_len Tuint32_t + Fnlmsg_type Tuint16_t + Fnlmsg_flags Tuint16_t + Fnlmsg_seq Tuint32_t + Fnlmsg_pid Tuint32_t +} + +type Trtattr = struct { + Frta_len uint16 + Frta_type uint16 +} + +type Trtgenmsg = struct { + Frtgen_family uint8 +} + +type Tifinfomsg = struct { + Fifi_family uint8 + F__ifi_pad uint8 + Fifi_type uint16 + Fifi_index int32 + Fifi_flags uint32 + Fifi_change uint32 +} + +type Tifaddrmsg = struct { + Fifa_family Tuint8_t + Fifa_prefixlen Tuint8_t + Fifa_flags Tuint8_t + Fifa_scope Tuint8_t + Fifa_index Tuint32_t +} + +/* getifaddrs() reports hardware addresses with PF_PACKET that implies + * struct sockaddr_ll. But e.g. Infiniband socket address length is + * longer than sockaddr_ll.ssl_addr[8] can hold. Use this hack struct + * to extend ssl_addr - callers should be able to still use it. */ +type Tsockaddr_ll_hack = struct { + Fsll_family uint16 + Fsll_protocol uint16 + Fsll_ifindex int32 + Fsll_hatype uint16 + Fsll_pkttype uint8 + Fsll_halen uint8 + Fsll_addr [24]uint8 +} + +type Tsockany = struct { + Fll [0]Tsockaddr_ll_hack + Fv4 [0]Tsockaddr_in + Fv6 [0]Tsockaddr_in6 + Fsa Tsockaddr + F__ccgo_pad4 [20]byte +} + +type Tifaddrs_storage = struct { + Fifa Tifaddrs + Fhash_next uintptr + Faddr Tsockany + Fnetmask Tsockany + Fifu Tsockany + Findex uint32 + Fname [17]uint8 +} + +type Tifaddrs_ctx = struct { + Ffirst uintptr + Flast uintptr + Fhash [64]uintptr +} + +func Xfreeifaddrs(tls *TLS, ifp uintptr) { + if __ccgo_strace { + trc("tls=%v ifp=%v, (%v:)", tls, ifp, origin(2)) + } + var n uintptr + _ = n + for ifp != 0 { + n = (*Tifaddrs)(unsafe.Pointer(ifp)).Fifa_next + Xfree(tls, ifp) + ifp = n + } +} + +func _copy_addr(tls *TLS, r uintptr, af int32, sa uintptr, addr uintptr, addrlen Tsize_t, ifindex int32) { + var dst uintptr + var len1 int32 + _, _ = dst, len1 + switch af { + case int32(PF_INET): + dst = sa + 4 + len1 = int32(4) + case int32(PF_INET6): + dst = sa + 8 + len1 = int32(16) + if Int32FromUint8(**(**Tuint8_t)(__ccgo_up(addr))) == int32(0xfe) && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(addr + 1)))&int32(0xc0) == int32(0x80) || Int32FromUint8(**(**Tuint8_t)(__ccgo_up(addr))) == int32(0xff) && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(addr + 1)))&int32(0xf) == int32(0x2) { + (*(*Tsockaddr_in6)(unsafe.Pointer(sa))).Fsin6_scope_id = Uint32FromInt32(ifindex) + } + default: + return + } + if addrlen < Uint32FromInt32(len1) { + return + } + (*Tsockany)(unsafe.Pointer(sa)).Fsa.Fsa_family = Uint16FromInt32(af) + _memcpy(tls, dst, addr, Uint32FromInt32(len1)) + **(**uintptr)(__ccgo_up(r)) = sa +} + +func _gen_netmask(tls *TLS, r uintptr, af int32, sa uintptr, prefixlen int32) { + bp := tls.Alloc(16) + defer tls.Free(16) + var i, v1 int32 + var _ /* addr at bp+0 */ [16]Tuint8_t + _, _ = i, v1 + **(**[16]Tuint8_t)(__ccgo_up(bp)) = [16]Tuint8_t{} + if Uint32FromInt32(prefixlen) > Uint32FromInt32(8)*Uint32FromInt64(16) { + prefixlen = Int32FromUint32(Uint32FromInt32(8) * Uint32FromInt64(16)) + } + i = prefixlen / int32(8) + Xmemset(tls, bp, int32(0xff), Uint32FromInt32(i)) + if Uint32FromInt32(i) < uint32(16) { + v1 = i + i = i + 1 + (**(**[16]Tuint8_t)(__ccgo_up(bp)))[v1] = Uint8FromInt32(int32(0xff) << (int32(8) - prefixlen%int32(8))) + } + _copy_addr(tls, r, af, sa, bp, uint32(16), 0) +} + +func _copy_lladdr(tls *TLS, r uintptr, sa uintptr, addr uintptr, addrlen Tsize_t, ifindex int32, hatype uint16) { + if addrlen > uint32(24) { + return + } + (*(*Tsockaddr_ll_hack)(unsafe.Pointer(sa))).Fsll_family = uint16(PF_PACKET) + (*(*Tsockaddr_ll_hack)(unsafe.Pointer(sa))).Fsll_ifindex = ifindex + (*(*Tsockaddr_ll_hack)(unsafe.Pointer(sa))).Fsll_hatype = hatype + (*(*Tsockaddr_ll_hack)(unsafe.Pointer(sa))).Fsll_halen = uint8(addrlen) + _memcpy(tls, sa+12, addr, addrlen) + **(**uintptr)(__ccgo_up(r)) = sa +} + +func _netlink_msg_to_ifaddr(tls *TLS, pctx uintptr, h uintptr) (r int32) { + var bucket uint32 + var ctx, ifa, ifi, ifs, ifs0, rta uintptr + var stats_len int32 + _, _, _, _, _, _, _, _ = bucket, ctx, ifa, ifi, ifs, ifs0, rta, stats_len + ctx = pctx + ifi = h + UintptrFromInt64(16) + ifa = h + UintptrFromInt64(16) + stats_len = 0 + if Int32FromUint16((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_type) == int32(RTM_NEWLINK) { + rta = h + UintptrFromInt64(16) + uintptr((Uint32FromInt64(16)+Uint32FromInt32(3))&Uint32FromInt32(^Int32FromInt32(3))) + for { + if !(Uint32FromInt32(int32(h+uintptr((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_len))-int32(rta)) >= uint32(4)) { + break + } + if Int32FromUint16((*Trtattr)(unsafe.Pointer(rta)).Frta_type) != int32(IFLA_STATS) { + goto _1 + } + stats_len = Int32FromUint32(uint32((*Trtattr)(unsafe.Pointer(rta)).Frta_len) - Uint32FromInt64(4)) + break + goto _1 + _1: + ; + rta = rta + uintptr((Int32FromUint16((*Trtattr)(unsafe.Pointer(rta)).Frta_len)+Int32FromInt32(3)) & ^Int32FromInt32(3)) + } + } else { + ifs0 = **(**uintptr)(__ccgo_up(ctx + 8 + uintptr((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_index%uint32(IFADDRS_HASH_SIZE))*4)) + for { + if !(ifs0 != 0) { + break + } + if (*Tifaddrs_storage)(unsafe.Pointer(ifs0)).Findex == (*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_index { + break + } + goto _2 + _2: + ; + ifs0 = (*Tifaddrs_storage)(unsafe.Pointer(ifs0)).Fhash_next + } + if !(ifs0 != 0) { + return 0 + } + } + ifs = Xcalloc(tls, uint32(1), uint32(164)+Uint32FromInt32(stats_len)) + if ifs == uintptr(0) { + return -int32(1) + } + if Int32FromUint16((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_type) == int32(RTM_NEWLINK) { + (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Findex = Uint32FromInt32((*Tifinfomsg)(unsafe.Pointer(ifi)).Fifi_index) + (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_flags = (*Tifinfomsg)(unsafe.Pointer(ifi)).Fifi_flags + rta = h + UintptrFromInt64(16) + uintptr((Uint32FromInt64(16)+Uint32FromInt32(3))&Uint32FromInt32(^Int32FromInt32(3))) + for { + if !(Uint32FromInt32(int32(h+uintptr((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_len))-int32(rta)) >= uint32(4)) { + break + } + switch Int32FromUint16((*Trtattr)(unsafe.Pointer(rta)).Frta_type) { + case int32(IFLA_IFNAME): + if uint32((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-uint32(4) < uint32(17) { + _memcpy(tls, ifs+144, rta+UintptrFromInt64(4), uint32((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-Uint32FromInt64(4)) + (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_name = ifs + 144 + } + case int32(IFLA_ADDRESS): + _copy_lladdr(tls, ifs+12, ifs+32, rta+UintptrFromInt64(4), uint32((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-Uint32FromInt64(4), (*Tifinfomsg)(unsafe.Pointer(ifi)).Fifi_index, (*Tifinfomsg)(unsafe.Pointer(ifi)).Fifi_type) + case int32(IFLA_BROADCAST): + _copy_lladdr(tls, ifs+20, ifs+104, rta+UintptrFromInt64(4), uint32((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-Uint32FromInt64(4), (*Tifinfomsg)(unsafe.Pointer(ifi)).Fifi_index, (*Tifinfomsg)(unsafe.Pointer(ifi)).Fifi_type) + case int32(IFLA_STATS): + (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_data = ifs + UintptrFromInt32(1)*164 + _memcpy(tls, (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_data, rta+UintptrFromInt64(4), uint32((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-Uint32FromInt64(4)) + break + } + goto _3 + _3: + ; + rta = rta + uintptr((Int32FromUint16((*Trtattr)(unsafe.Pointer(rta)).Frta_len)+Int32FromInt32(3)) & ^Int32FromInt32(3)) + } + if (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_name != 0 { + bucket = (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Findex % uint32(IFADDRS_HASH_SIZE) + (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fhash_next = **(**uintptr)(__ccgo_up(ctx + 8 + uintptr(bucket)*4)) + **(**uintptr)(__ccgo_up(ctx + 8 + uintptr(bucket)*4)) = ifs + } + } else { + (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_name = (*Tifaddrs_storage)(unsafe.Pointer(ifs0)).Fifa.Fifa_name + (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_flags = (*Tifaddrs_storage)(unsafe.Pointer(ifs0)).Fifa.Fifa_flags + rta = h + UintptrFromInt64(16) + uintptr((Uint32FromInt64(8)+Uint32FromInt32(3))&Uint32FromInt32(^Int32FromInt32(3))) + for { + if !(Uint32FromInt32(int32(h+uintptr((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_len))-int32(rta)) >= uint32(4)) { + break + } + switch Int32FromUint16((*Trtattr)(unsafe.Pointer(rta)).Frta_type) { + case int32(IFA_ADDRESS): + /* If ifa_addr is already set we, received an IFA_LOCAL before + * so treat this as destination address */ + if (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_addr != 0 { + _copy_addr(tls, ifs+20, Int32FromUint8((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_family), ifs+104, rta+UintptrFromInt64(4), uint32((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-Uint32FromInt64(4), Int32FromUint32((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_index)) + } else { + _copy_addr(tls, ifs+12, Int32FromUint8((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_family), ifs+32, rta+UintptrFromInt64(4), uint32((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-Uint32FromInt64(4), Int32FromUint32((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_index)) + } + case int32(IFA_BROADCAST): + _copy_addr(tls, ifs+20, Int32FromUint8((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_family), ifs+104, rta+UintptrFromInt64(4), uint32((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-Uint32FromInt64(4), Int32FromUint32((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_index)) + case int32(IFA_LOCAL): + /* If ifa_addr is set and we get IFA_LOCAL, assume we have + * a point-to-point network. Move address to correct field. */ + if (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_addr != 0 { + (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifu = (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Faddr + *(*uintptr)(unsafe.Pointer(ifs + 20)) = ifs + 104 + Xmemset(tls, ifs+32, 0, uint32(36)) + } + _copy_addr(tls, ifs+12, Int32FromUint8((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_family), ifs+32, rta+UintptrFromInt64(4), uint32((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-Uint32FromInt64(4), Int32FromUint32((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_index)) + case int32(IFA_LABEL): + if uint32((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-uint32(4) < uint32(17) { + _memcpy(tls, ifs+144, rta+UintptrFromInt64(4), uint32((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-Uint32FromInt64(4)) + (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_name = ifs + 144 + } + break + } + goto _4 + _4: + ; + rta = rta + uintptr((Int32FromUint16((*Trtattr)(unsafe.Pointer(rta)).Frta_len)+Int32FromInt32(3)) & ^Int32FromInt32(3)) + } + if (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_addr != 0 { + _gen_netmask(tls, ifs+16, Int32FromUint8((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_family), ifs+68, Int32FromUint8((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_prefixlen)) + } + } + if (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_name != 0 { + if !((*Tifaddrs_ctx)(unsafe.Pointer(ctx)).Ffirst != 0) { + (*Tifaddrs_ctx)(unsafe.Pointer(ctx)).Ffirst = ifs + } + if (*Tifaddrs_ctx)(unsafe.Pointer(ctx)).Flast != 0 { + (*Tifaddrs)(unsafe.Pointer((*Tifaddrs_ctx)(unsafe.Pointer(ctx)).Flast)).Fifa_next = ifs + } + (*Tifaddrs_ctx)(unsafe.Pointer(ctx)).Flast = ifs + } else { + Xfree(tls, ifs) + } + return 0 +} + +func Xgetifaddrs(tls *TLS, ifap uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v ifap=%v, (%v:)", tls, ifap, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(272) + defer tls.Free(272) + var ctx uintptr + var r int32 + var _ /* _ctx at bp+0 */ Tifaddrs_ctx + _, _ = ctx, r + ctx = bp + Xmemset(tls, ctx, 0, uint32(264)) + r = X__rtnetlink_enumerate(tls, PF_UNSPEC, PF_UNSPEC, __ccgo_fp(_netlink_msg_to_ifaddr), ctx) + if r == 0 { + **(**uintptr)(__ccgo_up(ifap)) = (*Tifaddrs_ctx)(unsafe.Pointer(ctx)).Ffirst + } else { + Xfreeifaddrs(tls, (*Tifaddrs_ctx)(unsafe.Pointer(ctx)).Ffirst) + } + return r +} + +const RR_PTR = 12 + +func _itoa(tls *TLS, p uintptr, x uint32) (r uintptr) { + var v1 uintptr + _ = v1 + p = p + uintptr(Uint32FromInt32(3)*Uint32FromInt64(4)) + p = p - 1 + v1 = p + **(**uint8)(__ccgo_up(v1)) = uint8(0) + for cond := true; cond; cond = x != 0 { + p = p - 1 + v1 = p + **(**uint8)(__ccgo_up(v1)) = uint8(uint32('0') + x%uint32(10)) + x = x / uint32(10) + } + return p +} + +func _mkptr4(tls *TLS, s uintptr, ip uintptr) { + bp := tls.Alloc(48) + defer tls.Free(48) + Xsprintf(tls, s, __ccgo_ts+897, VaList(bp+8, Int32FromUint8(**(**uint8)(__ccgo_up(ip + 3))), Int32FromUint8(**(**uint8)(__ccgo_up(ip + 2))), Int32FromUint8(**(**uint8)(__ccgo_up(ip + 1))), Int32FromUint8(**(**uint8)(__ccgo_up(ip))))) +} + +func _mkptr6(tls *TLS, s uintptr, ip uintptr) { + var i int32 + var v2 uintptr + _, _ = i, v2 + i = int32(15) + for { + if !(i >= 0) { + break + } + v2 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = _xdigits[Int32FromUint8(**(**uint8)(__ccgo_up(ip + uintptr(i))))&int32(15)] + v2 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = uint8('.') + v2 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = _xdigits[Int32FromUint8(**(**uint8)(__ccgo_up(ip + uintptr(i))))>>int32(4)] + v2 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = uint8('.') + goto _1 + _1: + ; + i = i - 1 + } + Xstrcpy(tls, s, __ccgo_ts+922) +} + +var _xdigits = [17]uint8{'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'} + +func _reverse_hosts(tls *TLS, buf uintptr, a uintptr, scopeid uint32, family int32) { + bp := tls.Alloc(1744) + defer tls.Free(1744) + var f, p, z, v1, v2 uintptr + var v4, v5 int32 + var v7 bool + var _ /* _buf at bp+512 */ [1032]uint8 + var _ /* _f at bp+1592 */ TFILE + var _ /* atmp at bp+1544 */ [16]uint8 + var _ /* iplit at bp+1560 */ Taddress + var _ /* line at bp+0 */ [512]uint8 + _, _, _, _, _, _, _, _ = f, p, z, v1, v2, v4, v5, v7 + f = X__fopen_rb_ca(tls, __ccgo_ts+931, bp+1592, bp+512, uint32(1032)) + if !(f != 0) { + return + } + if family == int32(PF_INET) { + _memcpy(tls, bp+1544+uintptr(12), a, uint32(4)) + _memcpy(tls, bp+1544, __ccgo_ts+942, uint32(12)) + a = bp + 1544 + } + for Xfgets(tls, bp, int32(512), f) != 0 { + v1 = Xstrchr(tls, bp, int32('#')) + p = v1 + if v1 != 0 { + v2 = p + p = p + 1 + **(**uint8)(__ccgo_up(v2)) = uint8('\n') + **(**uint8)(__ccgo_up(p)) = Uint8FromInt32(0) + } + p = bp + for { + if v7 = **(**uint8)(__ccgo_up(p)) != 0; v7 { + v4 = Int32FromUint8(**(**uint8)(__ccgo_up(p))) + v5 = BoolInt32(v4 == int32(' ') || Uint32FromInt32(v4)-uint32('\t') < uint32(5)) + goto _6 + _6: + } + if !(v7 && !(v5 != 0)) { + break + } + goto _3 + _3: + ; + p = p + 1 + } + if !(**(**uint8)(__ccgo_up(p)) != 0) { + continue + } + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(0) + if X__lookup_ipliteral(tls, bp+1560, bp, PF_UNSPEC) <= 0 { + continue + } + if (**(**Taddress)(__ccgo_up(bp + 1560))).Ffamily == int32(PF_INET) { + _memcpy(tls, bp+1560+8+uintptr(12), bp+1560+8, uint32(4)) + _memcpy(tls, bp+1560+8, __ccgo_ts+942, uint32(12)) + (**(**Taddress)(__ccgo_up(bp + 1560))).Fscopeid = uint32(0) + } + if Xmemcmp(tls, a, bp+1560+8, uint32(16)) != 0 || (**(**Taddress)(__ccgo_up(bp + 1560))).Fscopeid != scopeid { + continue + } + for { + if v7 = **(**uint8)(__ccgo_up(p)) != 0; v7 { + v4 = Int32FromUint8(**(**uint8)(__ccgo_up(p))) + v5 = BoolInt32(v4 == int32(' ') || Uint32FromInt32(v4)-uint32('\t') < uint32(5)) + goto _12 + _12: + } + if !(v7 && v5 != 0) { + break + } + goto _9 + _9: + ; + p = p + 1 + } + z = p + for { + if v7 = **(**uint8)(__ccgo_up(z)) != 0; v7 { + v4 = Int32FromUint8(**(**uint8)(__ccgo_up(z))) + v5 = BoolInt32(v4 == int32(' ') || Uint32FromInt32(v4)-uint32('\t') < uint32(5)) + goto _17 + _17: + } + if !(v7 && !(v5 != 0)) { + break + } + goto _14 + _14: + ; + z = z + 1 + } + **(**uint8)(__ccgo_up(z)) = uint8(0) + if int32(z)-int32(p) < int32(256) { + _memcpy(tls, buf, p, Uint32FromInt32(int32(z)-int32(p)+int32(1))) + break + } + } + X__fclose_ca(tls, f) +} + +func _reverse_services(tls *TLS, buf uintptr, port int32, dgram int32) { + bp := tls.Alloc(1312) + defer tls.Free(1312) + var f, p, v1, v2 uintptr + var svport uint32 + var v4, v5 int32 + var v7 bool + var _ /* _buf at bp+132 */ [1032]uint8 + var _ /* _f at bp+1168 */ TFILE + var _ /* line at bp+0 */ [128]uint8 + var _ /* z at bp+128 */ uintptr + _, _, _, _, _, _, _, _ = f, p, svport, v1, v2, v4, v5, v7 + f = X__fopen_rb_ca(tls, __ccgo_ts+955, bp+1168, bp+132, uint32(1032)) + if !(f != 0) { + return + } + for Xfgets(tls, bp, int32(128), f) != 0 { + v1 = Xstrchr(tls, bp, int32('#')) + p = v1 + if v1 != 0 { + v2 = p + p = p + 1 + **(**uint8)(__ccgo_up(v2)) = uint8('\n') + **(**uint8)(__ccgo_up(p)) = Uint8FromInt32(0) + } + p = bp + for { + if v7 = **(**uint8)(__ccgo_up(p)) != 0; v7 { + v4 = Int32FromUint8(**(**uint8)(__ccgo_up(p))) + v5 = BoolInt32(v4 == int32(' ') || Uint32FromInt32(v4)-uint32('\t') < uint32(5)) + goto _6 + _6: + } + if !(v7 && !(v5 != 0)) { + break + } + goto _3 + _3: + ; + p = p + 1 + } + if !(**(**uint8)(__ccgo_up(p)) != 0) { + continue + } + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(0) + svport = Xstrtoul(tls, p, bp+128, int32(10)) + if svport != Uint32FromInt32(port) || **(**uintptr)(__ccgo_up(bp + 128)) == p { + continue + } + if dgram != 0 && Xstrncmp(tls, **(**uintptr)(__ccgo_up(bp + 128)), __ccgo_ts+969, uint32(4)) != 0 { + continue + } + if !(dgram != 0) && Xstrncmp(tls, **(**uintptr)(__ccgo_up(bp + 128)), __ccgo_ts+974, uint32(4)) != 0 { + continue + } + if int32(p)-t__predefined_ptrdiff_t(bp) > int32(32) { + continue + } + _memcpy(tls, buf, bp, Uint32FromInt32(int32(p)-t__predefined_ptrdiff_t(bp))) + break + } + X__fclose_ca(tls, f) +} + +func _dns_parse_callback(tls *TLS, c uintptr, rr int32, data uintptr, len1 int32, packet uintptr, plen int32) (r int32) { + if rr != int32(RR_PTR) { + return 0 + } + if X__dn_expand(tls, packet, packet+uintptr(plen), data, c, int32(256)) <= 0 { + **(**uint8)(__ccgo_up(c)) = uint8(0) + } + return 0 +} + +func Xgetnameinfo(tls *TLS, sa uintptr, sl Tsocklen_t, node uintptr, nodelen Tsocklen_t, serv uintptr, servlen Tsocklen_t, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v sa=%v sl=%v node=%v nodelen=%v serv=%v servlen=%v flags=%v, (%v:)", tls, sa, sl, node, nodelen, serv, servlen, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(976) + defer tls.Free(976) + var a, p, p1, v1 uintptr + var af, port, qlen, rlen int32 + var scopeid uint32 + var _ /* buf at bp+78 */ [256]uint8 + var _ /* num at bp+334 */ [13]uint8 + var _ /* ptr at bp+0 */ [78]uint8 + var _ /* query at bp+347 */ [96]uint8 + var _ /* reply at bp+443 */ [512]uint8 + var _ /* tmp at bp+955 */ [17]uint8 + _, _, _, _, _, _, _, _, _ = a, af, p, p1, port, qlen, rlen, scopeid, v1 + af = Int32FromUint16((*Tsockaddr)(unsafe.Pointer(sa)).Fsa_family) + switch af { + case int32(PF_INET): + a = sa + 4 + if sl < uint32(16) { + return -int32(6) + } + _mkptr4(tls, bp, a) + scopeid = uint32(0) + case int32(PF_INET6): + a = sa + 8 + if sl < uint32(28) { + return -int32(6) + } + if Xmemcmp(tls, a, __ccgo_ts+942, uint32(12)) != 0 { + _mkptr6(tls, bp, a) + } else { + _mkptr4(tls, bp, a+uintptr(12)) + } + scopeid = (*Tsockaddr_in6)(unsafe.Pointer(sa)).Fsin6_scope_id + default: + return -int32(6) + } + if node != 0 && nodelen != 0 { + (**(**[256]uint8)(__ccgo_up(bp + 78)))[0] = uint8(0) + if !(flags&Int32FromInt32(NI_NUMERICHOST) != 0) { + _reverse_hosts(tls, bp+78, a, scopeid, af) + } + if !(**(**uint8)(__ccgo_up(bp + 78)) != 0) && !(flags&Int32FromInt32(NI_NUMERICHOST) != 0) { + qlen = X__res_mkquery(tls, 0, bp, int32(1), int32(RR_PTR), uintptr(0), 0, uintptr(0), bp+347, int32(96)) + (**(**[96]uint8)(__ccgo_up(bp + 347)))[int32(3)] = uint8(0) /* don't need AD flag */ + rlen = X__res_send(tls, bp+347, qlen, bp+443, int32(512)) + (**(**[256]uint8)(__ccgo_up(bp + 78)))[0] = uint8(0) + if rlen > 0 { + if Uint32FromInt32(rlen) > uint32(512) { + rlen = int32(512) + } + X__dns_parse(tls, bp+443, rlen, __ccgo_fp(_dns_parse_callback), bp+78) + } + } + if !(**(**uint8)(__ccgo_up(bp + 78)) != 0) { + if flags&int32(NI_NAMEREQD) != 0 { + return -int32(2) + } + Xinet_ntop(tls, af, a, bp+78, uint32(256)) + if scopeid != 0 { + p = uintptr(0) + if !(flags&Int32FromInt32(NI_NUMERICSCOPE) != 0) && (Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a))) == int32(0xfe) && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a + 1)))&int32(0xc0) == int32(0x80) || Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a))) == int32(0xff) && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a + 1)))&int32(0xf) == int32(0x2)) { + p = Xif_indextoname(tls, scopeid, bp+955+uintptr(1)) + } + if !(p != 0) { + p = _itoa(tls, bp+334, scopeid) + } + p = p - 1 + v1 = p + **(**uint8)(__ccgo_up(v1)) = uint8('%') + Xstrcat(tls, bp+78, p) + } + } + if _strlen(tls, bp+78) >= nodelen { + return -int32(12) + } + Xstrcpy(tls, node, bp+78) + } + if serv != 0 && servlen != 0 { + p1 = bp + 78 + port = Int32FromUint16(Xntohs(tls, (*Tsockaddr_in)(unsafe.Pointer(sa)).Fsin_port)) + (**(**[256]uint8)(__ccgo_up(bp + 78)))[0] = uint8(0) + if !(flags&Int32FromInt32(NI_NUMERICSERV) != 0) { + _reverse_services(tls, bp+78, port, flags&int32(NI_DGRAM)) + } + if !(**(**uint8)(__ccgo_up(p1)) != 0) { + p1 = _itoa(tls, bp+334, Uint32FromInt32(port)) + } + if _strlen(tls, p1) >= servlen { + return -int32(12) + } + Xstrcpy(tls, serv, p1) + } + return 0 +} + +func Xgetpeername(tls *TLS, fd int32, addr uintptr, len1 uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v addr=%v len1=%v, (%v:)", tls, fd, addr, len1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v1, v8 int32 + var v2, v3, v4, v5, v6, v7 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _ = r, v1, v2, v3, v4, v5, v6, v7, v8 + v1 = int32(SYS_getpeername) + _ = int32(__SC_getpeername) + v2 = fd + v3 = int32(addr) + v4 = int32(len1) + v5 = int32(Int32FromInt32(0)) + v6 = int32(Int32FromInt32(0)) + v7 = int32(Int32FromInt32(0)) + if 0 != 0 { + r = ___syscall_cp(tls, v1, v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, v1, v2, v3, v4, v5, v6, v7) + } + if r != int32(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _9 + } + v8 = r + goto _9 +_9: + return X__syscall_ret(tls, Uint32FromInt32(v8)) +} + +func Xgetservbyname(tls *TLS, name uintptr, prots uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v prots=%v, (%v:)", tls, name, prots, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* res at bp+0 */ uintptr + if Xgetservbyname_r(tls, name, prots, uintptr(unsafe.Pointer(&_se)), uintptr(unsafe.Pointer(&_buf3)), uint32(8), bp) != 0 { + return uintptr(0) + } + return uintptr(unsafe.Pointer(&_se)) +} + +var _se Tservent + +var _buf3 [2]uintptr + +const ALIGN = 0 + +func Xgetservbyname_r(tls *TLS, name uintptr, prots uintptr, se uintptr, buf uintptr, buflen Tsize_t, res uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v prots=%v se=%v buf=%v buflen=%v res=%v, (%v:)", tls, name, prots, se, buf, buflen, res, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var align, cnt, proto int32 + var v1 uintptr + var _ /* end at bp+8 */ uintptr + var _ /* servs at bp+0 */ [2]Tservice + _, _, _, _ = align, cnt, proto, v1 + **(**uintptr)(__ccgo_up(res)) = uintptr(0) + /* Don't treat numeric port number strings as service records. */ + **(**uintptr)(__ccgo_up(bp + 8)) = __ccgo_ts + Xstrtoul(tls, name, bp+8, int32(10)) + if !(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)))) != 0) { + return int32(ENOENT) + } + /* Align buffer */ + align = Int32FromUint32(-uint32(buf) & (Uint32FromInt64(8) - Uint32FromInt64(4) - Uint32FromInt32(1))) + if buflen < Uint32FromInt32(2)*Uint32FromInt64(4)+Uint32FromInt32(align) { + return int32(ERANGE) + } + buf = buf + uintptr(align) + if !(prots != 0) { + proto = 0 + } else { + if !(Xstrcmp(tls, prots, __ccgo_ts+979) != 0) { + proto = int32(IPPROTO_TCP) + } else { + if !(Xstrcmp(tls, prots, __ccgo_ts+983) != 0) { + proto = int32(IPPROTO_UDP) + } else { + return int32(EINVAL) + } + } + } + cnt = X__lookup_serv(tls, bp, name, proto, 0, 0) + if cnt < 0 { + switch cnt { + case -int32(10): + fallthrough + case -int32(11): + return int32(ENOMEM) + default: + return int32(ENOENT) + } + } + (*Tservent)(unsafe.Pointer(se)).Fs_name = name + (*Tservent)(unsafe.Pointer(se)).Fs_aliases = buf + **(**uintptr)(__ccgo_up((*Tservent)(unsafe.Pointer(se)).Fs_aliases)) = (*Tservent)(unsafe.Pointer(se)).Fs_name + **(**uintptr)(__ccgo_up((*Tservent)(unsafe.Pointer(se)).Fs_aliases + 1*4)) = uintptr(0) + (*Tservent)(unsafe.Pointer(se)).Fs_port = Int32FromUint16(Xhtons(tls, (**(**[2]Tservice)(__ccgo_up(bp)))[0].Fport)) + if Int32FromUint8((**(**[2]Tservice)(__ccgo_up(bp)))[0].Fproto) == int32(IPPROTO_TCP) { + v1 = __ccgo_ts + 979 + } else { + v1 = __ccgo_ts + 983 + } + (*Tservent)(unsafe.Pointer(se)).Fs_proto = v1 + **(**uintptr)(__ccgo_up(res)) = se + return 0 +} + +func Xgetsockname(tls *TLS, fd int32, addr uintptr, len1 uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v addr=%v len1=%v, (%v:)", tls, fd, addr, len1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v1, v8 int32 + var v2, v3, v4, v5, v6, v7 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _ = r, v1, v2, v3, v4, v5, v6, v7, v8 + v1 = int32(SYS_getsockname) + _ = int32(__SC_getsockname) + v2 = fd + v3 = int32(addr) + v4 = int32(len1) + v5 = int32(Int32FromInt32(0)) + v6 = int32(Int32FromInt32(0)) + v7 = int32(Int32FromInt32(0)) + if 0 != 0 { + r = ___syscall_cp(tls, v1, v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, v1, v2, v3, v4, v5, v6, v7) + } + if r != int32(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _9 + } + v8 = r + goto _9 +_9: + return X__syscall_ret(tls, Uint32FromInt32(v8)) +} + +func Xgetsockopt(tls *TLS, fd int32, level int32, optname int32, optval uintptr, optlen uintptr) (r2 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v level=%v optname=%v optval=%v optlen=%v, (%v:)", tls, fd, level, optname, optval, optlen, origin(2)) + defer func() { trc("-> %v", r2) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var r, r1, v1, v8 int32 + var tv uintptr + var v2, v3, v4, v5, v6, v7 Tsyscall_arg_t + var _ /* tv32 at bp+8 */ [2]int32 + _, _, _, _, _, _, _, _, _, _, _ = r, r1, tv, v1, v2, v3, v4, v5, v6, v7, v8 + v1 = int32(SYS_getsockopt) + _ = int32(__SC_getsockopt) + v2 = fd + v3 = level + v4 = optname + v5 = int32(optval) + v6 = int32(optlen) + v7 = int32(Int32FromInt32(0)) + if 0 != 0 { + r = ___syscall_cp(tls, v1, v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, v1, v2, v3, v4, v5, v6, v7) + } + if r != int32(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _9 + } + v8 = r + goto _9 +_9: + r1 = v8 + if r1 == -int32(ENOPROTOOPT) { + switch level { + case int32(SOL_SOCKET): + switch optname { + case int32(SO_RCVTIMEO): + fallthrough + case int32(SO_SNDTIMEO): + if false { + break + } + if **(**Tsocklen_t)(__ccgo_up(optlen)) < uint32(16) { + return X__syscall_ret(tls, Uint32FromInt32(-Int32FromInt32(EINVAL))) + } + if optname == int32(SO_RCVTIMEO) { + optname = int32(SO_RCVTIMEO_OLD) + } + if optname == int32(SO_SNDTIMEO) { + optname = int32(SO_SNDTIMEO_OLD) + } + *(*[1]Tsocklen_t)(unsafe.Pointer(bp)) = [1]Tsocklen_t{ + 0: uint32(8), + } + v1 = int32(SYS_getsockopt) + _ = int32(__SC_getsockopt) + v2 = fd + v3 = level + v4 = optname + v5 = int32(bp + 8) + v6 = int32(bp) + v7 = int32(Int32FromInt32(0)) + if 0 != 0 { + r = ___syscall_cp(tls, v1, v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, v1, v2, v3, v4, v5, v6, v7) + } + if r != int32(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _18 + } + v8 = r + goto _18 + _18: + r1 = v8 + if r1 < 0 { + break + } + tv = optval + (*Ttimeval)(unsafe.Pointer(tv)).Ftv_sec = int64((**(**[2]int32)(__ccgo_up(bp + 8)))[0]) + (*Ttimeval)(unsafe.Pointer(tv)).Ftv_usec = int64((**(**[2]int32)(__ccgo_up(bp + 8)))[int32(1)]) + **(**Tsocklen_t)(__ccgo_up(optlen)) = uint32(16) + case int32(SO_TIMESTAMP): + fallthrough + case int32(SO_TIMESTAMPNS): + if false { + break + } + if optname == int32(SO_TIMESTAMP) { + optname = int32(SO_TIMESTAMP_OLD) + } + if optname == int32(SO_TIMESTAMPNS) { + optname = int32(SO_TIMESTAMPNS_OLD) + } + v1 = int32(SYS_getsockopt) + _ = int32(__SC_getsockopt) + v2 = fd + v3 = level + v4 = optname + v5 = int32(optval) + v6 = int32(optlen) + v7 = int32(Int32FromInt32(0)) + if 0 != 0 { + r = ___syscall_cp(tls, v1, v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, v1, v2, v3, v4, v5, v6, v7) + } + if r != int32(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _27 + } + v8 = r + goto _27 + _27: + r1 = v8 + break + } + } + } + return X__syscall_ret(tls, Uint32FromInt32(r1)) +} + +func X__h_errno_location(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + if !((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Fstack != 0) { + return uintptr(unsafe.Pointer(&Xh_errno)) + } + return uintptr(___get_tp(tls)) + 80 +} + +func Xherror(tls *TLS, msg uintptr) { + if __ccgo_strace { + trc("tls=%v msg=%v, (%v:)", tls, msg, origin(2)) + } + bp := tls.Alloc(32) + defer tls.Free(32) + var v1, v2 uintptr + _, _ = v1, v2 + if msg != 0 { + v1 = msg + } else { + v1 = __ccgo_ts + } + if msg != 0 { + v2 = __ccgo_ts + 289 + } else { + v2 = __ccgo_ts + } + Xfprintf(tls, uintptr(unsafe.Pointer(&X__stderr_FILE)), __ccgo_ts+987, VaList(bp+8, v1, v2, Xhstrerror(tls, **(**int32)(__ccgo_up(X__h_errno_location(tls)))))) +} + +var _msgs1 = [84]uint8{'H', 'o', 's', 't', ' ', 'n', 'o', 't', ' ', 'f', 'o', 'u', 'n', 'd', 0, 'T', 'r', 'y', ' ', 'a', 'g', 'a', 'i', 'n', 0, 'N', 'o', 'n', '-', 'r', 'e', 'c', 'o', 'v', 'e', 'r', 'a', 'b', 'l', 'e', ' ', 'e', 'r', 'r', 'o', 'r', 0, 'A', 'd', 'd', 'r', 'e', 's', 's', ' ', 'n', 'o', 't', ' ', 'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e', 0, 0, 'U', 'n', 'k', 'n', 'o', 'w', 'n', ' ', 'e', 'r', 'r', 'o', 'r'} + +func Xhstrerror(tls *TLS, ecode int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v ecode=%v, (%v:)", tls, ecode, origin(2)) + defer func() { trc("-> %v", r) }() + } + var s uintptr + _ = s + s = uintptr(unsafe.Pointer(&_msgs1)) + ecode = ecode - 1 + for { + if !(ecode != 0 && **(**uint8)(__ccgo_up(s)) != 0) { + break + } + for { + if !(**(**uint8)(__ccgo_up(s)) != 0) { + break + } + goto _2 + _2: + ; + s = s + 1 + } + goto _1 + _1: + ; + ecode = ecode - 1 + s = s + 1 + } + if !(**(**uint8)(__ccgo_up(s)) != 0) { + s = s + 1 + } + return X__lctrans_cur(tls, s) +} + +func Xhtonl(tls *TLS, n Tuint32_t) (r Tuint32_t) { + if __ccgo_strace { + trc("tls=%v n=%v, (%v:)", tls, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var u struct { + Fc [0]uint8 + Fi int32 + } + var v1 uint32 + var v2, v3 Tuint32_t + _, _, _, _ = u, v1, v2, v3 + u = *(*struct { + Fc [0]uint8 + Fi int32 + })(unsafe.Pointer(&struct{ f int32 }{f: int32(1)})) + if *(*uint8)(unsafe.Pointer(&u)) != 0 { + v2 = n + v3 = v2>>int32(24) | v2>>int32(8)&uint32(0xff00) | v2< %v", r) }() + } + var u struct { + Fc [0]uint8 + Fi int32 + } + var v1 int32 + var v2, v3 Tuint16_t + _, _, _, _ = u, v1, v2, v3 + u = *(*struct { + Fc [0]uint8 + Fi int32 + })(unsafe.Pointer(&struct{ f int32 }{f: int32(1)})) + if *(*uint8)(unsafe.Pointer(&u)) != 0 { + v2 = n + v3 = Uint16FromInt32(Int32FromUint16(v2)<>int32(8)) + goto _4 + _4: + v1 = Int32FromUint16(v3) + } else { + v1 = Int32FromUint16(n) + } + return Uint16FromInt32(v1) +} + +func Xif_freenameindex(tls *TLS, idx uintptr) { + if __ccgo_strace { + trc("tls=%v idx=%v, (%v:)", tls, idx, origin(2)) + } + Xfree(tls, idx) +} + +func Xif_indextoname(tls *TLS, index uint32, name uintptr) (r1 uintptr) { + if __ccgo_strace { + trc("tls=%v index=%v name=%v, (%v:)", tls, index, name, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + var fd, r, v1 int32 + var _ /* ifr at bp+0 */ Tifreq + _, _, _ = fd, r, v1 + v1 = Xsocket(tls, int32(PF_LOCAL), Int32FromInt32(SOCK_DGRAM)|Int32FromInt32(SOCK_CLOEXEC), 0) + fd = v1 + if v1 < 0 { + return uintptr(0) + } + *(*int32)(unsafe.Pointer(bp + 16)) = Int32FromUint32(index) + r = Xioctl(tls, fd, int32(SIOCGIFNAME), VaList(bp+40, bp)) + X__syscall1(tls, int32(SYS_close), fd) + if r < 0 { + if **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(ENODEV) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENXIO) + } + return uintptr(0) + } + return Xstrncpy(tls, name, bp, uint32(IF_NAMESIZE)) +} + +type Tifnamemap = struct { + Fhash_next uint32 + Findex uint32 + Fnamelen uint8 + Fname [16]uint8 +} + +type Tifnameindexctx = struct { + Fnum uint32 + Fallocated uint32 + Fstr_bytes uint32 + Flist uintptr + Fhash [64]uint32 +} + +func _netlink_msg_to_nameindex(tls *TLS, pctx uintptr, h uintptr) (r int32) { + var a Tsize_t + var bucket, index, namelen, type1 int32 + var ctx, ifa, ifi, map1, rta uintptr + var i, v2 uint32 + _, _, _, _, _, _, _, _, _, _, _, _ = a, bucket, ctx, i, ifa, ifi, index, map1, namelen, rta, type1, v2 + ctx = pctx + if Int32FromUint16((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_type) == int32(RTM_NEWLINK) { + ifi = h + UintptrFromInt64(16) + index = (*Tifinfomsg)(unsafe.Pointer(ifi)).Fifi_index + type1 = int32(IFLA_IFNAME) + rta = h + UintptrFromInt64(16) + uintptr((Uint32FromInt64(16)+Uint32FromInt32(3))&Uint32FromInt32(^Int32FromInt32(3))) + } else { + ifa = h + UintptrFromInt64(16) + index = Int32FromUint32((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_index) + type1 = int32(IFA_LABEL) + rta = h + UintptrFromInt64(16) + uintptr((Uint32FromInt64(8)+Uint32FromInt32(3))&Uint32FromInt32(^Int32FromInt32(3))) + } + for { + if !(Uint32FromInt32(int32(h+uintptr((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_len))-int32(rta)) >= uint32(4)) { + break + } + if Int32FromUint16((*Trtattr)(unsafe.Pointer(rta)).Frta_type) != type1 { + goto _1 + } + namelen = Int32FromUint32(uint32((*Trtattr)(unsafe.Pointer(rta)).Frta_len) - uint32(4) - uint32(1)) + if namelen > int32(IF_NAMESIZE) { + return 0 + } + /* suppress duplicates */ + bucket = index % int32(IFADDRS_HASH_SIZE) + i = **(**uint32)(__ccgo_up(ctx + 16 + uintptr(bucket)*4)) + for i != 0 { + map1 = (*Tifnameindexctx)(unsafe.Pointer(ctx)).Flist + uintptr(i-uint32(1))*28 + if (*Tifnamemap)(unsafe.Pointer(map1)).Findex == Uint32FromInt32(index) && Int32FromUint8((*Tifnamemap)(unsafe.Pointer(map1)).Fnamelen) == namelen && Xmemcmp(tls, map1+9, rta+UintptrFromInt64(4), Uint32FromInt32(namelen)) == 0 { + return 0 + } + i = (*Tifnamemap)(unsafe.Pointer(map1)).Fhash_next + } + if (*Tifnameindexctx)(unsafe.Pointer(ctx)).Fnum >= (*Tifnameindexctx)(unsafe.Pointer(ctx)).Fallocated { + if (*Tifnameindexctx)(unsafe.Pointer(ctx)).Fallocated != 0 { + v2 = (*Tifnameindexctx)(unsafe.Pointer(ctx)).Fallocated*uint32(2) + uint32(1) + } else { + v2 = uint32(8) + } + a = v2 + if a > Uint32FromUint32(0xffffffff)/Uint32FromInt64(28) { + return -int32(1) + } + map1 = Xrealloc(tls, (*Tifnameindexctx)(unsafe.Pointer(ctx)).Flist, a*uint32(28)) + if !(map1 != 0) { + return -int32(1) + } + (*Tifnameindexctx)(unsafe.Pointer(ctx)).Flist = map1 + (*Tifnameindexctx)(unsafe.Pointer(ctx)).Fallocated = a + } + map1 = (*Tifnameindexctx)(unsafe.Pointer(ctx)).Flist + uintptr((*Tifnameindexctx)(unsafe.Pointer(ctx)).Fnum)*28 + (*Tifnamemap)(unsafe.Pointer(map1)).Findex = Uint32FromInt32(index) + (*Tifnamemap)(unsafe.Pointer(map1)).Fnamelen = Uint8FromInt32(namelen) + _memcpy(tls, map1+9, rta+UintptrFromInt64(4), Uint32FromInt32(namelen)) + **(**uint32)(__ccgo_up(ctx + 8)) += Uint32FromInt32(namelen + int32(1)) + (*Tifnameindexctx)(unsafe.Pointer(ctx)).Fnum = (*Tifnameindexctx)(unsafe.Pointer(ctx)).Fnum + 1 + (*Tifnamemap)(unsafe.Pointer(map1)).Fhash_next = **(**uint32)(__ccgo_up(ctx + 16 + uintptr(bucket)*4)) + **(**uint32)(__ccgo_up(ctx + 16 + uintptr(bucket)*4)) = (*Tifnameindexctx)(unsafe.Pointer(ctx)).Fnum + return 0 + goto _1 + _1: + ; + rta = rta + uintptr((Int32FromUint16((*Trtattr)(unsafe.Pointer(rta)).Frta_len)+Int32FromInt32(3)) & ^Int32FromInt32(3)) + } + return 0 +} + +func Xif_nameindex(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(288) + defer tls.Free(288) + var ctx, d, ifs, p, s, v2 uintptr + var i int32 + var _ /* _ctx at bp+0 */ Tifnameindexctx + var _ /* cs at bp+272 */ int32 + _, _, _, _, _, _, _ = ctx, d, i, ifs, p, s, v2 + ctx = bp + ifs = uintptr(0) + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp+272) + Xmemset(tls, ctx, 0, uint32(272)) + if X__rtnetlink_enumerate(tls, PF_UNSPEC, int32(PF_INET), __ccgo_fp(_netlink_msg_to_nameindex), ctx) < 0 { + goto err + } + ifs = Xmalloc(tls, ((*Tifnameindexctx)(unsafe.Pointer(ctx)).Fnum+Uint32FromInt32(1))*8+(*Tifnameindexctx)(unsafe.Pointer(ctx)).Fstr_bytes) + if !(ifs != 0) { + goto err + } + p = ifs + uintptr((*Tifnameindexctx)(unsafe.Pointer(ctx)).Fnum)*8 + UintptrFromInt32(1)*8 + i = Int32FromUint32((*Tifnameindexctx)(unsafe.Pointer(ctx)).Fnum) + d = ifs + s = (*Tifnameindexctx)(unsafe.Pointer(ctx)).Flist + for { + if !(i != 0) { + break + } + (*Tif_nameindex)(unsafe.Pointer(d)).Fif_index = (*Tifnamemap)(unsafe.Pointer(s)).Findex + (*Tif_nameindex)(unsafe.Pointer(d)).Fif_name = p + _memcpy(tls, p, s+9, uint32((*Tifnamemap)(unsafe.Pointer(s)).Fnamelen)) + p = p + uintptr((*Tifnamemap)(unsafe.Pointer(s)).Fnamelen) + v2 = p + p = p + 1 + **(**uint8)(__ccgo_up(v2)) = uint8(0) + goto _1 + _1: + ; + i = i - 1 + s += 28 + d += 8 + } + (*Tif_nameindex)(unsafe.Pointer(d)).Fif_index = uint32(0) + (*Tif_nameindex)(unsafe.Pointer(d)).Fif_name = uintptr(0) + goto err +err: + ; + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 272)), uintptr(0)) + Xfree(tls, (*Tifnameindexctx)(unsafe.Pointer(ctx)).Flist) + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOBUFS) + return ifs +} + +func Xif_nametoindex(tls *TLS, name uintptr) (r1 uint32) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + var fd, r, v1 int32 + var _ /* ifr at bp+0 */ Tifreq + _, _, _ = fd, r, v1 + v1 = Xsocket(tls, int32(PF_LOCAL), Int32FromInt32(SOCK_DGRAM)|Int32FromInt32(SOCK_CLOEXEC), 0) + fd = v1 + if v1 < 0 { + return uint32(0) + } + Xstrncpy(tls, bp, name, uint32(16)) + r = Xioctl(tls, fd, int32(SIOCGIFINDEX), VaList(bp+40, bp)) + X__syscall1(tls, int32(SYS_close), fd) + if r < 0 { + v1 = 0 + } else { + v1 = *(*int32)(unsafe.Pointer(bp + 16)) + } + return Uint32FromInt32(v1) +} + +func Xinet_addr(tls *TLS, p uintptr) (r Tin_addr_t) { + if __ccgo_strace { + trc("tls=%v p=%v, (%v:)", tls, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* a at bp+0 */ Tin_addr + if !(X__inet_aton(tls, p, bp) != 0) { + return Uint32FromInt32(-Int32FromInt32(1)) + } + return (**(**Tin_addr)(__ccgo_up(bp))).Fs_addr +} + +func X__inet_aton(tls *TLS, s0 uintptr, dest uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s0=%v dest=%v, (%v:)", tls, s0, dest, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var d, s uintptr + var i int32 + var _ /* a at bp+0 */ [4]uint32 + var _ /* z at bp+16 */ uintptr + _, _, _ = d, i, s + s = s0 + d = dest + **(**[4]uint32)(__ccgo_up(bp)) = [4]uint32{} + i = 0 + for { + if !(i < int32(4)) { + break + } + (**(**[4]uint32)(__ccgo_up(bp)))[i] = Xstrtoul(tls, s, bp+16, 0) + if **(**uintptr)(__ccgo_up(bp + 16)) == s || **(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 16)))) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 16))))) != int32('.') || !(BoolInt32(uint32(**(**uint8)(__ccgo_up(s)))-Uint32FromUint8('0') < Uint32FromInt32(10)) != 0) { + return 0 + } + if !(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 16)))) != 0) { + break + } + s = **(**uintptr)(__ccgo_up(bp + 16)) + uintptr(1) + goto _1 + _1: + ; + i = i + 1 + } + if i == int32(4) { + return 0 + } + switch i { + case 0: + (**(**[4]uint32)(__ccgo_up(bp)))[int32(1)] = (**(**[4]uint32)(__ccgo_up(bp)))[0] & uint32(0xffffff) + **(**uint32)(__ccgo_up(bp)) >>= uint32(24) + fallthrough + case int32(1): + (**(**[4]uint32)(__ccgo_up(bp)))[int32(2)] = (**(**[4]uint32)(__ccgo_up(bp)))[int32(1)] & uint32(0xffff) + **(**uint32)(__ccgo_up(bp + 1*4)) >>= uint32(16) + fallthrough + case int32(2): + (**(**[4]uint32)(__ccgo_up(bp)))[int32(3)] = (**(**[4]uint32)(__ccgo_up(bp)))[int32(2)] & uint32(0xff) + **(**uint32)(__ccgo_up(bp + 2*4)) >>= uint32(8) + } + i = 0 + for { + if !(i < int32(4)) { + break + } + if (**(**[4]uint32)(__ccgo_up(bp)))[i] > uint32(255) { + return 0 + } + **(**uint8)(__ccgo_up(d + uintptr(i))) = uint8((**(**[4]uint32)(__ccgo_up(bp)))[i]) + goto _2 + _2: + ; + i = i + 1 + } + return int32(1) +} + +func Xinet_aton(tls *TLS, s0 uintptr, dest uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s0=%v dest=%v, (%v:)", tls, s0, dest, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__inet_aton(tls, s0, dest) +} + +func Xinet_network(tls *TLS, p uintptr) (r Tin_addr_t) { + if __ccgo_strace { + trc("tls=%v p=%v, (%v:)", tls, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xntohl(tls, Xinet_addr(tls, p)) +} + +func Xinet_makeaddr(tls *TLS, n Tin_addr_t, h Tin_addr_t) (r Tin_addr) { + if __ccgo_strace { + trc("tls=%v n=%v h=%v, (%v:)", tls, n, h, origin(2)) + defer func() { trc("-> %v", r) }() + } + if n < uint32(256) { + h = h | n< %v", r) }() + } + var h Tuint32_t + _ = h + h = in.Fs_addr + if h>>int32(24) < uint32(128) { + return h & uint32(0xffffff) + } + if h>>int32(24) < uint32(192) { + return h & uint32(0xffff) + } + return h & uint32(0xff) +} + +func Xinet_netof(tls *TLS, in Tin_addr) (r Tin_addr_t) { + if __ccgo_strace { + trc("tls=%v in=%v, (%v:)", tls, in, origin(2)) + defer func() { trc("-> %v", r) }() + } + var h Tuint32_t + _ = h + h = in.Fs_addr + if h>>int32(24) < uint32(128) { + return h >> int32(24) + } + if h>>int32(24) < uint32(192) { + return h >> int32(16) + } + return h >> int32(8) +} + +func Xinet_ntoa(tls *TLS, _in Tin_addr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v _in=%v, (%v:)", tls, _in, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + *(*Tin_addr)(unsafe.Pointer(bp)) = _in + var a uintptr + _ = a + a = bp + Xsnprintf(tls, uintptr(unsafe.Pointer(&_buf4)), uint32(16), __ccgo_ts+995, VaList(bp+16, Int32FromUint8(**(**uint8)(__ccgo_up(a))), Int32FromUint8(**(**uint8)(__ccgo_up(a + 1))), Int32FromUint8(**(**uint8)(__ccgo_up(a + 2))), Int32FromUint8(**(**uint8)(__ccgo_up(a + 3))))) + return uintptr(unsafe.Pointer(&_buf4)) +} + +var _buf4 [16]uint8 + +func Xinet_ntop(tls *TLS, af int32, a0 uintptr, s uintptr, l Tsocklen_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v af=%v a0=%v s=%v l=%v, (%v:)", tls, af, a0, s, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(192) + defer tls.Free(192) + var a uintptr + var best, i, j, max, v2 int32 + var v3 uint8 + var _ /* buf at bp+0 */ [100]uint8 + _, _, _, _, _, _, _ = a, best, i, j, max, v2, v3 + a = a0 + switch af { + case int32(PF_INET): + if Uint32FromInt32(Xsnprintf(tls, s, l, __ccgo_ts+995, VaList(bp+112, Int32FromUint8(**(**uint8)(__ccgo_up(a))), Int32FromUint8(**(**uint8)(__ccgo_up(a + 1))), Int32FromUint8(**(**uint8)(__ccgo_up(a + 2))), Int32FromUint8(**(**uint8)(__ccgo_up(a + 3)))))) < l { + return s + } + case int32(PF_INET6): + if Xmemcmp(tls, a, __ccgo_ts+942, uint32(12)) != 0 { + Xsnprintf(tls, bp, uint32(100), __ccgo_ts+1007, VaList(bp+112, int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 1))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 2)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 3))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 4)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 5))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 6)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 7))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 8)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 9))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 10)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 11))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 12)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 13))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 14)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 15))))) + } else { + Xsnprintf(tls, bp, uint32(100), __ccgo_ts+1031, VaList(bp+112, int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 1))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 2)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 3))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 4)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 5))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 6)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 7))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 8)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 9))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 10)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 11))), Int32FromUint8(**(**uint8)(__ccgo_up(a + 12))), Int32FromUint8(**(**uint8)(__ccgo_up(a + 13))), Int32FromUint8(**(**uint8)(__ccgo_up(a + 14))), Int32FromUint8(**(**uint8)(__ccgo_up(a + 15))))) + } + /* Replace longest /(^0|:)[:0]{2,}/ with "::" */ + v2 = Int32FromInt32(0) + best = v2 + i = v2 + max = Int32FromInt32(2) + for { + if !((**(**[100]uint8)(__ccgo_up(bp)))[i] != 0) { + break + } + if i != 0 && Int32FromUint8((**(**[100]uint8)(__ccgo_up(bp)))[i]) != int32(':') { + goto _1 + } + j = Int32FromUint32(Xstrspn(tls, bp+uintptr(i), __ccgo_ts+1061)) + if j > max { + best = i + max = j + } + goto _1 + _1: + ; + i = i + 1 + } + if max > int32(3) { + v3 = Uint8FromUint8(':') + (**(**[100]uint8)(__ccgo_up(bp)))[best+int32(1)] = v3 + (**(**[100]uint8)(__ccgo_up(bp)))[best] = v3 + Xmemmove(tls, bp+uintptr(best)+uintptr(2), bp+uintptr(best)+uintptr(max), Uint32FromInt32(i-best-max+int32(1))) + } + if _strlen(tls, bp) < l { + Xstrcpy(tls, s, bp) + return s + } + default: + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EAFNOSUPPORT) + return uintptr(0) + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOSPC) + return uintptr(0) +} + +func _hexval(tls *TLS, c uint32) (r int32) { + if c-uint32('0') < uint32(10) { + return Int32FromUint32(c - uint32('0')) + } + c = c | uint32(32) + if c-uint32('a') < uint32(6) { + return Int32FromUint32(c - uint32('a') + uint32(10)) + } + return -int32(1) +} + +func Xinet_pton(tls *TLS, af int32, s uintptr, a0 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v af=%v s=%v a0=%v, (%v:)", tls, af, s, a0, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var a, v4 uintptr + var brk, d, i, j, need_v4, v, v3, v9 int32 + var v5 bool + var _ /* ip at bp+0 */ [8]Tuint16_t + _, _, _, _, _, _, _, _, _, _, _ = a, brk, d, i, j, need_v4, v, v3, v4, v5, v9 + a = a0 + brk = -int32(1) + need_v4 = 0 + if af == int32(PF_INET) { + i = 0 + for { + if !(i < int32(4)) { + break + } + v3 = Int32FromInt32(0) + j = v3 + v = v3 + for { + if !(j < int32(3) && BoolInt32(uint32(**(**uint8)(__ccgo_up(s + uintptr(j))))-uint32('0') < uint32(10)) != 0) { + break + } + v = int32(10)*v + Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(j)))) - int32('0') + goto _2 + _2: + ; + j = j + 1 + } + if j == 0 || j > int32(1) && Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('0') || v > int32(255) { + return 0 + } + **(**uint8)(__ccgo_up(a + uintptr(i))) = Uint8FromInt32(v) + if Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(j)))) == 0 && i == int32(3) { + return int32(1) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(j)))) != int32('.') { + return 0 + } + s = s + uintptr(j+int32(1)) + goto _1 + _1: + ; + i = i + 1 + } + return 0 + } else { + if af != int32(PF_INET6) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EAFNOSUPPORT) + return -int32(1) + } + } + if v5 = Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32(':'); v5 { + s = s + 1 + v4 = s + } + if v5 && Int32FromUint8(**(**uint8)(__ccgo_up(v4))) != int32(':') { + return 0 + } + i = 0 + for { + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32(':') && brk < 0 { + brk = i + (**(**[8]Tuint16_t)(__ccgo_up(bp)))[i&int32(7)] = uint16(0) + s = s + 1 + v4 = s + if !(**(**uint8)(__ccgo_up(v4)) != 0) { + break + } + if i == int32(7) { + return 0 + } + goto _6 + } + v3 = Int32FromInt32(0) + j = v3 + v = v3 + for { + if v5 = j < int32(4); v5 { + v9 = _hexval(tls, uint32(**(**uint8)(__ccgo_up(s + uintptr(j))))) + d = v9 + } + if !(v5 && v9 >= 0) { + break + } + v = int32(16)*v + d + goto _8 + _8: + ; + j = j + 1 + } + if j == 0 { + return 0 + } + (**(**[8]Tuint16_t)(__ccgo_up(bp)))[i&int32(7)] = Uint16FromInt32(v) + if !(**(**uint8)(__ccgo_up(s + uintptr(j))) != 0) && (brk >= 0 || i == int32(7)) { + break + } + if i == int32(7) { + return 0 + } + if Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(j)))) != int32(':') { + if Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(j)))) != int32('.') || i < int32(6) && brk < 0 { + return 0 + } + need_v4 = int32(1) + i = i + 1 + (**(**[8]Tuint16_t)(__ccgo_up(bp)))[i&int32(7)] = uint16(0) + break + } + s = s + uintptr(j+int32(1)) + goto _6 + _6: + ; + i = i + 1 + } + if brk >= 0 { + Xmemmove(tls, bp+uintptr(brk)*2+uintptr(7)*2-uintptr(i)*2, bp+uintptr(brk)*2, Uint32FromInt32(int32(2)*(i+int32(1)-brk))) + j = 0 + for { + if !(j < int32(7)-i) { + break + } + (**(**[8]Tuint16_t)(__ccgo_up(bp)))[brk+j] = uint16(0) + goto _12 + _12: + ; + j = j + 1 + } + } + j = 0 + for { + if !(j < int32(8)) { + break + } + v4 = a + a = a + 1 + **(**uint8)(__ccgo_up(v4)) = Uint8FromInt32(Int32FromUint16((**(**[8]Tuint16_t)(__ccgo_up(bp)))[j]) >> int32(8)) + v4 = a + a = a + 1 + **(**uint8)(__ccgo_up(v4)) = uint8((**(**[8]Tuint16_t)(__ccgo_up(bp)))[j]) + goto _13 + _13: + ; + j = j + 1 + } + if need_v4 != 0 && Xinet_pton(tls, int32(PF_INET), s, a-uintptr(4)) <= 0 { + return 0 + } + return int32(1) +} + +func Xlisten(tls *TLS, fd int32, backlog int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v backlog=%v, (%v:)", tls, fd, backlog, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v1, v8 int32 + var v2, v3, v4, v5, v6, v7 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _ = r, v1, v2, v3, v4, v5, v6, v7, v8 + v1 = int32(SYS_listen) + _ = int32(__SC_listen) + v2 = fd + v3 = backlog + v4 = int32(Int32FromInt32(0)) + v5 = int32(Int32FromInt32(0)) + v6 = int32(Int32FromInt32(0)) + v7 = int32(Int32FromInt32(0)) + if 0 != 0 { + r = ___syscall_cp(tls, v1, v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, v1, v2, v3, v4, v5, v6, v7) + } + if r != int32(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _9 + } + v8 = r + goto _9 +_9: + return X__syscall_ret(tls, Uint32FromInt32(v8)) +} + +func X__lookup_ipliteral(tls *TLS, buf uintptr, name uintptr, family int32) (r int32) { + if __ccgo_strace { + trc("tls=%v buf=%v name=%v family=%v, (%v:)", tls, buf, name, family, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(96) + defer tls.Free(96) + var p, v1 uintptr + var scopeid uint64 + var _ /* a4 at bp+0 */ Tin_addr + var _ /* a6 at bp+4 */ Tin6_addr + var _ /* tmp at bp+20 */ [64]uint8 + var _ /* z at bp+84 */ uintptr + _, _, _ = p, scopeid, v1 + if X__inet_aton(tls, name, bp) > 0 { + if family == int32(PF_INET6) { /* wrong family */ + return -int32(5) + } + _memcpy(tls, buf+8, bp, uint32(4)) + (**(**Taddress)(__ccgo_up(buf))).Ffamily = int32(PF_INET) + (**(**Taddress)(__ccgo_up(buf))).Fscopeid = uint32(0) + return int32(1) + } + p = Xstrchr(tls, name, int32('%')) + scopeid = uint64(0) + if p != 0 && int32(p)-int32(name) < int32(64) { + _memcpy(tls, bp+20, name, Uint32FromInt32(int32(p)-int32(name))) + (**(**[64]uint8)(__ccgo_up(bp + 20)))[int32(p)-int32(name)] = uint8(0) + name = bp + 20 + } + if Xinet_pton(tls, int32(PF_INET6), name, bp+4) <= 0 { + return 0 + } + if family == int32(PF_INET) { /* wrong family */ + return -int32(5) + } + _memcpy(tls, buf+8, bp+4, uint32(16)) + (**(**Taddress)(__ccgo_up(buf))).Ffamily = int32(PF_INET6) + if p != 0 { + p = p + 1 + v1 = p + if BoolInt32(uint32(**(**uint8)(__ccgo_up(v1)))-uint32('0') < uint32(10)) != 0 { + scopeid = Xstrtoull(tls, p, bp+84, int32(10)) + } else { + **(**uintptr)(__ccgo_up(bp + 84)) = p - uintptr(1) + } + if **(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 84)))) != 0 { + if !(Int32FromUint8(**(**Tuint8_t)(__ccgo_up(bp + 4))) == int32(0xfe) && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(bp + 4 + 1)))&int32(0xc0) == int32(0x80)) && !(Int32FromUint8(**(**Tuint8_t)(__ccgo_up(bp + 4))) == int32(0xff) && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(bp + 4 + 1)))&int32(0xf) == int32(0x2)) { + return -int32(2) + } + scopeid = uint64(Xif_nametoindex(tls, p)) + if !(scopeid != 0) { + return -int32(2) + } + } + if scopeid > uint64(0xffffffff) { + return -int32(2) + } + } + (**(**Taddress)(__ccgo_up(buf))).Fscopeid = uint32(scopeid) + return int32(1) +} + +const ABUF_SIZE = 4800 +const DAS_MATCHINGLABEL = 268435456 +const DAS_MATCHINGSCOPE = 536870912 +const DAS_ORDER_SHIFT = 0 +const DAS_PREC_SHIFT = 20 +const DAS_PREFIX_SHIFT = 8 +const DAS_SCOPE_SHIFT = 16 +const DAS_USABLE = 1073741824 +const RR_A = 1 +const RR_AAAA = 28 +const RR_CNAME = 5 + +func _is_valid_hostname(tls *TLS, host uintptr) (r int32) { + var s uintptr + _ = s + if Xstrnlen(tls, host, uint32(255))-uint32(1) >= uint32(254) || Xmbstowcs(tls, uintptr(0), host, uint32(0)) == Uint32FromInt32(-Int32FromInt32(1)) { + return 0 + } + s = host + for { + if !(Int32FromUint8(**(**uint8)(__ccgo_up(s))) >= int32(0x80) || Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('.') || Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('-') || Xisalnum(tls, Int32FromUint8(**(**uint8)(__ccgo_up(s)))) != 0) { + break + } + goto _1 + _1: + ; + s = s + 1 + } + return BoolInt32(!(**(**uint8)(__ccgo_up(s)) != 0)) +} + +func _name_from_null(tls *TLS, buf uintptr, name uintptr, family int32, flags int32) (r int32) { + var cnt, v1 int32 + _, _ = cnt, v1 + cnt = 0 + if name != 0 { + return 0 + } + if flags&int32(AI_PASSIVE) != 0 { + if family != int32(PF_INET6) { + v1 = cnt + cnt = cnt + 1 + **(**Taddress)(__ccgo_up(buf + uintptr(v1)*28)) = Taddress{ + Ffamily: int32(PF_INET), + } + } + if family != int32(PF_INET) { + v1 = cnt + cnt = cnt + 1 + **(**Taddress)(__ccgo_up(buf + uintptr(v1)*28)) = Taddress{ + Ffamily: int32(PF_INET6), + } + } + } else { + if family != int32(PF_INET6) { + v1 = cnt + cnt = cnt + 1 + **(**Taddress)(__ccgo_up(buf + uintptr(v1)*28)) = Taddress{ + Ffamily: int32(PF_INET), + Faddr: [16]Tuint8_t{ + 0: uint8(127), + 3: uint8(1), + }, + } + } + if family != int32(PF_INET) { + v1 = cnt + cnt = cnt + 1 + **(**Taddress)(__ccgo_up(buf + uintptr(v1)*28)) = Taddress{ + Ffamily: int32(PF_INET6), + Faddr: [16]Tuint8_t{ + 15: uint8(1), + }, + } + } + } + return cnt +} + +func _name_from_numeric(tls *TLS, buf uintptr, name uintptr, family int32) (r int32) { + return X__lookup_ipliteral(tls, buf, name, family) +} + +func _name_from_hosts(tls *TLS, buf uintptr, canon uintptr, name uintptr, family int32) (r int32) { + bp := tls.Alloc(1696) + defer tls.Free(1696) + var badfam, cnt, have_canon, v5, v6, v8, v9 int32 + var f, p, z, v1, v2 uintptr + var l Tsize_t + var v11, v12 bool + var _ /* _buf at bp+512 */ [1032]uint8 + var _ /* _f at bp+1544 */ TFILE + var _ /* line at bp+0 */ [512]uint8 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = badfam, cnt, f, have_canon, l, p, z, v1, v11, v12, v2, v5, v6, v8, v9 + l = _strlen(tls, name) + cnt = 0 + badfam = 0 + have_canon = 0 + f = X__fopen_rb_ca(tls, __ccgo_ts+931, bp+1544, bp+512, uint32(1032)) + if !(f != 0) { + switch **(**int32)(__ccgo_up(X__errno_location(tls))) { + case int32(ENOENT): + fallthrough + case int32(ENOTDIR): + fallthrough + case int32(EACCES): + return 0 + default: + return -int32(11) + } + } + for Xfgets(tls, bp, int32(512), f) != 0 && cnt < int32(MAXADDRS) { + v1 = Xstrchr(tls, bp, int32('#')) + p = v1 + if v1 != 0 { + v2 = p + p = p + 1 + **(**uint8)(__ccgo_up(v2)) = uint8('\n') + **(**uint8)(__ccgo_up(p)) = Uint8FromInt32(0) + } + p = bp + uintptr(1) + for { + v1 = Xstrstr(tls, p, name) + p = v1 + if v12 = v1 != 0; v12 { + v5 = Int32FromUint8(**(**uint8)(__ccgo_up(p + uintptr(-Int32FromInt32(1))))) + v6 = BoolInt32(v5 == int32(' ') || Uint32FromInt32(v5)-uint32('\t') < uint32(5)) + goto _7 + _7: + ; + if v11 = !(v6 != 0); !v11 { + v8 = Int32FromUint8(**(**uint8)(__ccgo_up(p + uintptr(l)))) + v9 = BoolInt32(v8 == int32(' ') || Uint32FromInt32(v8)-uint32('\t') < uint32(5)) + goto _10 + _10: + } + } + if !(v12 && (v11 || !(v9 != 0))) { + break + } + goto _3 + _3: + ; + p = p + 1 + } + if !(p != 0) { + continue + } + /* Isolate IP address to parse */ + p = bp + for { + if v11 = **(**uint8)(__ccgo_up(p)) != 0; v11 { + v5 = Int32FromUint8(**(**uint8)(__ccgo_up(p))) + v6 = BoolInt32(v5 == int32(' ') || Uint32FromInt32(v5)-uint32('\t') < uint32(5)) + goto _16 + _16: + } + if !(v11 && !(v6 != 0)) { + break + } + goto _13 + _13: + ; + p = p + 1 + } + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(0) + switch _name_from_numeric(tls, buf+uintptr(cnt)*28, bp, family) { + case int32(1): + cnt = cnt + 1 + case 0: + continue + default: + badfam = -int32(5) + break + } + if have_canon != 0 { + continue + } + /* Extract first name as canonical name */ + for { + if v11 = **(**uint8)(__ccgo_up(p)) != 0; v11 { + v5 = Int32FromUint8(**(**uint8)(__ccgo_up(p))) + v6 = BoolInt32(v5 == int32(' ') || Uint32FromInt32(v5)-uint32('\t') < uint32(5)) + goto _22 + _22: + } + if !(v11 && v6 != 0) { + break + } + goto _19 + _19: + ; + p = p + 1 + } + z = p + for { + if v11 = **(**uint8)(__ccgo_up(z)) != 0; v11 { + v5 = Int32FromUint8(**(**uint8)(__ccgo_up(z))) + v6 = BoolInt32(v5 == int32(' ') || Uint32FromInt32(v5)-uint32('\t') < uint32(5)) + goto _27 + _27: + } + if !(v11 && !(v6 != 0)) { + break + } + goto _24 + _24: + ; + z = z + 1 + } + **(**uint8)(__ccgo_up(z)) = uint8(0) + if _is_valid_hostname(tls, p) != 0 { + have_canon = int32(1) + _memcpy(tls, canon, p, Uint32FromInt32(int32(z)-int32(p)+int32(1))) + } + } + X__fclose_ca(tls, f) + if cnt != 0 { + v5 = cnt + } else { + v5 = badfam + } + return v5 +} + +type Tdpc_ctx = struct { + Faddrs uintptr + Fcanon uintptr + Fcnt int32 + Frrtype int32 +} + +func _dns_parse_callback1(tls *TLS, c uintptr, rr int32, data uintptr, len1 int32, packet uintptr, plen int32) (r int32) { + bp := tls.Alloc(256) + defer tls.Free(256) + var ctx, v2 uintptr + var family, v1 int32 + var _ /* tmp at bp+0 */ [256]uint8 + _, _, _, _ = ctx, family, v1, v2 + ctx = c + if rr == int32(RR_CNAME) { + if X__dn_expand(tls, packet, packet+uintptr(plen), data, bp, int32(256)) > 0 && _is_valid_hostname(tls, bp) != 0 { + Xstrcpy(tls, (*Tdpc_ctx)(unsafe.Pointer(ctx)).Fcanon, bp) + } + return 0 + } + if (*Tdpc_ctx)(unsafe.Pointer(ctx)).Fcnt >= int32(MAXADDRS) { + return 0 + } + if rr != (*Tdpc_ctx)(unsafe.Pointer(ctx)).Frrtype { + return 0 + } + switch rr { + case int32(RR_A): + if len1 != int32(4) { + return -int32(1) + } + family = int32(PF_INET) + case int32(RR_AAAA): + if len1 != int32(16) { + return -int32(1) + } + family = int32(PF_INET6) + break + } + (**(**Taddress)(__ccgo_up((*Tdpc_ctx)(unsafe.Pointer(ctx)).Faddrs + uintptr((*Tdpc_ctx)(unsafe.Pointer(ctx)).Fcnt)*28))).Ffamily = family + (**(**Taddress)(__ccgo_up((*Tdpc_ctx)(unsafe.Pointer(ctx)).Faddrs + uintptr((*Tdpc_ctx)(unsafe.Pointer(ctx)).Fcnt)*28))).Fscopeid = uint32(0) + v2 = ctx + 8 + v1 = *(*int32)(unsafe.Pointer(v2)) + *(*int32)(unsafe.Pointer(v2)) = *(*int32)(unsafe.Pointer(v2)) + 1 + _memcpy(tls, (*Tdpc_ctx)(unsafe.Pointer(ctx)).Faddrs+uintptr(v1)*28+8, data, Uint32FromInt32(len1)) + return 0 +} + +func _name_from_dns(tls *TLS, buf uintptr, canon uintptr, name uintptr, family int32, conf uintptr) (r int32) { + bp := tls.Alloc(10208) + defer tls.Free(10208) + var i, nq int32 + var qtypes [2]int32 + var _ /* abuf at bp+560 */ [2][4800]uint8 + var _ /* alens at bp+10184 */ [2]int32 + var _ /* ap at bp+10168 */ [2]uintptr + var _ /* ctx at bp+10192 */ Tdpc_ctx + var _ /* qbuf at bp+0 */ [2][280]uint8 + var _ /* qlens at bp+10176 */ [2]int32 + var _ /* qp at bp+10160 */ [2]uintptr + _, _, _ = i, nq, qtypes + **(**[2]uintptr)(__ccgo_up(bp + 10160)) = [2]uintptr{ + 0: bp, + 1: bp + 1*280, + } + **(**[2]uintptr)(__ccgo_up(bp + 10168)) = [2]uintptr{ + 0: bp + 560, + 1: bp + 560 + 1*4800, + } + nq = 0 + **(**Tdpc_ctx)(__ccgo_up(bp + 10192)) = Tdpc_ctx{ + Faddrs: buf, + Fcanon: canon, + } + i = 0 + for { + if !(i < int32(2)) { + break + } + if family != _afrr[i].Faf { + (**(**[2]int32)(__ccgo_up(bp + 10176)))[nq] = X__res_mkquery(tls, 0, name, int32(1), _afrr[i].Frr, uintptr(0), 0, uintptr(0), bp+uintptr(nq)*280, int32(280)) + if (**(**[2]int32)(__ccgo_up(bp + 10176)))[nq] == -int32(1) { + return 0 + } + qtypes[nq] = _afrr[i].Frr + **(**uint8)(__ccgo_up(bp + uintptr(nq)*280 + 3)) = uint8(0) /* don't need AD flag */ + /* Ensure query IDs are distinct. */ + if nq != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(bp + uintptr(nq)*280))) == Int32FromUint8(**(**uint8)(__ccgo_up(bp))) { + **(**uint8)(__ccgo_up(bp + uintptr(nq)*280)) = **(**uint8)(__ccgo_up(bp + uintptr(nq)*280)) + 1 + } + nq = nq + 1 + } + goto _1 + _1: + ; + i = i + 1 + } + if X__res_msend_rc(tls, nq, bp+10160, bp+10176, bp+10168, bp+10184, int32(4800), conf) < 0 { + return -int32(11) + } + i = 0 + for { + if !(i < nq) { + break + } + if (**(**[2]int32)(__ccgo_up(bp + 10184)))[i] < int32(4) || Int32FromUint8(**(**uint8)(__ccgo_up(bp + 560 + uintptr(i)*4800 + 3)))&int32(15) == int32(2) { + return -int32(3) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(bp + 560 + uintptr(i)*4800 + 3)))&int32(15) == int32(3) { + return 0 + } + if Int32FromUint8(**(**uint8)(__ccgo_up(bp + 560 + uintptr(i)*4800 + 3)))&int32(15) != 0 { + return -int32(4) + } + goto _2 + _2: + ; + i = i + 1 + } + i = nq - int32(1) + for { + if !(i >= 0) { + break + } + (**(**Tdpc_ctx)(__ccgo_up(bp + 10192))).Frrtype = qtypes[i] + if Uint32FromInt32((**(**[2]int32)(__ccgo_up(bp + 10184)))[i]) > uint32(4800) { + (**(**[2]int32)(__ccgo_up(bp + 10184)))[i] = int32(4800) + } + X__dns_parse(tls, bp+560+uintptr(i)*4800, (**(**[2]int32)(__ccgo_up(bp + 10184)))[i], __ccgo_fp(_dns_parse_callback1), bp+10192) + goto _3 + _3: + ; + i = i - 1 + } + if (**(**Tdpc_ctx)(__ccgo_up(bp + 10192))).Fcnt != 0 { + return (**(**Tdpc_ctx)(__ccgo_up(bp + 10192))).Fcnt + } + return -int32(5) +} + +var _afrr = [2]struct { + Faf int32 + Frr int32 +}{ + 0: { + Faf: int32(PF_INET6), + Frr: int32(RR_A), + }, + 1: { + Faf: int32(PF_INET), + Frr: int32(RR_AAAA), + }, +} + +func _name_from_dns_search(tls *TLS, buf uintptr, canon uintptr, name uintptr, family int32) (r int32) { + bp := tls.Alloc(368) + defer tls.Free(368) + var cnt, v5, v6 int32 + var dots, l, v2 Tsize_t + var p, z uintptr + var v12 bool + var _ /* conf at bp+256 */ Tresolvconf + var _ /* search at bp+0 */ [256]uint8 + _, _, _, _, _, _, _, _, _ = cnt, dots, l, p, z, v12, v2, v5, v6 + if X__get_resolv_conf(tls, bp+256, bp, uint32(256)) < 0 { + return -int32(1) + } + /* Count dots, suppress search when >=ndots or name ends in + * a dot, which is an explicit request for global scope. */ + v2 = Uint32FromInt32(0) + l = v2 + dots = v2 + for { + if !(**(**uint8)(__ccgo_up(name + uintptr(l))) != 0) { + break + } + if Int32FromUint8(**(**uint8)(__ccgo_up(name + uintptr(l)))) == int32('.') { + dots = dots + 1 + } + goto _1 + _1: + ; + l = l + 1 + } + if dots >= (**(**Tresolvconf)(__ccgo_up(bp + 256))).Fndots || Int32FromUint8(**(**uint8)(__ccgo_up(name + uintptr(l-uint32(1))))) == int32('.') { + **(**uint8)(__ccgo_up(bp)) = uint8(0) + } + /* Strip final dot for canon, fail if multiple trailing dots. */ + if Int32FromUint8(**(**uint8)(__ccgo_up(name + uintptr(l-uint32(1))))) == int32('.') { + l = l - 1 + } + if !(l != 0) || Int32FromUint8(**(**uint8)(__ccgo_up(name + uintptr(l-uint32(1))))) == int32('.') { + return -int32(2) + } + /* This can never happen; the caller already checked length. */ + if l >= uint32(256) { + return -int32(2) + } + /* Name with search domain appended is setup in canon[]. This both + * provides the desired default canonical name (if the requested + * name is not a CNAME record) and serves as a buffer for passing + * the full requested name to name_from_dns. */ + _memcpy(tls, canon, name, l) + **(**uint8)(__ccgo_up(canon + uintptr(l))) = uint8('.') + p = bp + for { + if !(**(**uint8)(__ccgo_up(p)) != 0) { + break + } + for { + v5 = Int32FromUint8(**(**uint8)(__ccgo_up(p))) + v6 = BoolInt32(v5 == int32(' ') || Uint32FromInt32(v5)-uint32('\t') < uint32(5)) + goto _7 + _7: + if !(v6 != 0) { + break + } + goto _4 + _4: + ; + p = p + 1 + } + z = p + for { + if v12 = **(**uint8)(__ccgo_up(z)) != 0; v12 { + v5 = Int32FromUint8(**(**uint8)(__ccgo_up(z))) + v6 = BoolInt32(v5 == int32(' ') || Uint32FromInt32(v5)-uint32('\t') < uint32(5)) + goto _11 + _11: + } + if !(v12 && !(v6 != 0)) { + break + } + goto _8 + _8: + ; + z = z + 1 + } + if z == p { + break + } + if Uint32FromInt32(int32(z)-int32(p)) < uint32(256)-l-uint32(1) { + _memcpy(tls, canon+uintptr(l)+uintptr(1), p, Uint32FromInt32(int32(z)-int32(p))) + **(**uint8)(__ccgo_up(canon + uintptr(Uint32FromInt32(int32(z)-int32(p)+int32(1))+l))) = uint8(0) + cnt = _name_from_dns(tls, buf, canon, canon, family, bp+256) + if cnt != 0 { + return cnt + } + } + goto _3 + _3: + ; + p = z + } + **(**uint8)(__ccgo_up(canon + uintptr(l))) = uint8(0) + return _name_from_dns(tls, buf, canon, name, family, bp+256) +} + +type Tpolicy = struct { + Faddr [16]uint8 + Flen1 uint8 + Fmask uint8 + Fprec uint8 + Flabel uint8 +} + +var _defpolicy = [6]Tpolicy{ + 0: { + Faddr: [16]uint8{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1}, + Flen1: uint8(15), + Fmask: uint8(0xff), + Fprec: uint8(50), + }, + 1: { + Faddr: [16]uint8{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255}, + Flen1: uint8(11), + Fmask: uint8(0xff), + Fprec: uint8(35), + Flabel: uint8(4), + }, + 2: { + Faddr: [16]uint8{' ', 2}, + Flen1: uint8(1), + Fmask: uint8(0xff), + Fprec: uint8(30), + Flabel: uint8(2), + }, + 3: { + Faddr: [16]uint8{' ', 1}, + Flen1: uint8(3), + Fmask: uint8(0xff), + Fprec: uint8(5), + Flabel: uint8(5), + }, + 4: { + Faddr: [16]uint8{252}, + Fmask: uint8(0xfe), + Fprec: uint8(3), + Flabel: uint8(13), + }, + 5: { + Faddr: [16]uint8{}, + Fprec: uint8(40), + Flabel: uint8(1), + }, +} + +func _policyof(tls *TLS, a uintptr) (r uintptr) { + var i int32 + _ = i + i = 0 + for { + if Xmemcmp(tls, a, uintptr(unsafe.Pointer(&_defpolicy))+uintptr(i)*20, uint32(_defpolicy[i].Flen1)) != 0 { + goto _1 + } + if Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a + uintptr(_defpolicy[i].Flen1))))&Int32FromUint8(_defpolicy[i].Fmask) != Int32FromUint8(**(**uint8)(__ccgo_up(uintptr(unsafe.Pointer(&_defpolicy)) + uintptr(i)*20 + uintptr(_defpolicy[i].Flen1)))) { + goto _1 + } + return uintptr(unsafe.Pointer(&_defpolicy)) + uintptr(i)*20 + goto _1 + _1: + ; + i = i + 1 + } + return r +} + +func _labelof(tls *TLS, a uintptr) (r int32) { + return Int32FromUint8((*Tpolicy)(unsafe.Pointer(_policyof(tls, a))).Flabel) +} + +func _scopeof(tls *TLS, a uintptr) (r int32) { + if Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a))) == int32(0xff) { + return Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a + 1))) & int32(15) + } + if Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a))) == int32(0xfe) && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a + 1)))&int32(0xc0) == int32(0x80) { + return int32(2) + } + if **(**Tuint32_t)(__ccgo_up(a)) == uint32(0) && **(**Tuint32_t)(__ccgo_up(a + 1*4)) == uint32(0) && **(**Tuint32_t)(__ccgo_up(a + 2*4)) == uint32(0) && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a + 12))) == 0 && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a + 13))) == 0 && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a + 14))) == 0 && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a + 15))) == int32(1) { + return int32(2) + } + if Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a))) == int32(0xfe) && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a + 1)))&int32(0xc0) == int32(0xc0) { + return int32(5) + } + return int32(14) +} + +func _prefixmatch(tls *TLS, s uintptr, d uintptr) (r int32) { + var i uint32 + _ = i + i = uint32(0) + for { + if !(i < uint32(128) && !((Int32FromUint8(**(**Tuint8_t)(__ccgo_up(s + uintptr(i/uint32(8)))))^Int32FromUint8(**(**Tuint8_t)(__ccgo_up(d + uintptr(i/uint32(8))))))&(Int32FromInt32(128)>>(i%Uint32FromInt32(8))) != 0)) { + break + } + goto _1 + _1: + ; + i = i + 1 + } + return Int32FromUint32(i) +} + +func _addrcmp(tls *TLS, _a uintptr, _b uintptr) (r int32) { + var a, b uintptr + _, _ = a, b + a = _a + b = _b + return (*Taddress)(unsafe.Pointer(b)).Fsortkey - (*Taddress)(unsafe.Pointer(a)).Fsortkey +} + +func X__lookup_name(tls *TLS, buf uintptr, canon uintptr, name uintptr, family int32, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v buf=%v canon=%v name=%v family=%v flags=%v, (%v:)", tls, buf, canon, name, family, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(96) + defer tls.Free(96) + var cnt, dlabel, dprec, dscope, family1, fd, i, j, key, prefixlen, v1 int32 + var da, dpolicy, sa uintptr + var dalen Tsocklen_t + var l Tsize_t + var _ /* cs at bp+0 */ int32 + var _ /* da4 at bp+76 */ Tsockaddr_in + var _ /* da6 at bp+32 */ Tsockaddr_in6 + var _ /* sa4 at bp+60 */ Tsockaddr_in + var _ /* sa6 at bp+4 */ Tsockaddr_in6 + var _ /* salen at bp+92 */ Tsocklen_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = cnt, da, dalen, dlabel, dpolicy, dprec, dscope, family1, fd, i, j, key, l, prefixlen, sa, v1 + cnt = 0 + **(**uint8)(__ccgo_up(canon)) = uint8(0) + if name != 0 { + /* reject empty name and check len so it fits into temp bufs */ + l = Xstrnlen(tls, name, uint32(255)) + if l-uint32(1) >= uint32(254) { + return -int32(2) + } + _memcpy(tls, canon, name, l+uint32(1)) + } + /* Procedurally, a request for v6 addresses with the v4-mapped + * flag set is like a request for unspecified family, followed + * by filtering of the results. */ + if flags&int32(AI_V4MAPPED) != 0 { + if family == int32(PF_INET6) { + family = PF_UNSPEC + } else { + flags = flags - int32(AI_V4MAPPED) + } + } + /* Try each backend until there's at least one result. */ + cnt = _name_from_null(tls, buf, name, family, flags) + if !(cnt != 0) { + cnt = _name_from_numeric(tls, buf, name, family) + } + if !(cnt != 0) && !(flags&Int32FromInt32(AI_NUMERICHOST) != 0) { + cnt = _name_from_hosts(tls, buf, canon, name, family) + if !(cnt != 0) { + cnt = _name_from_dns_search(tls, buf, canon, name, family) + } + } + if cnt <= 0 { + if cnt != 0 { + v1 = cnt + } else { + v1 = -int32(2) + } + return v1 + } + /* Filter/transform results for v4-mapped lookup, if requested. */ + if flags&int32(AI_V4MAPPED) != 0 { + if !(flags&Int32FromInt32(AI_ALL) != 0) { + /* If any v6 results exist, remove v4 results. */ + i = 0 + for { + if !(i < cnt && (**(**Taddress)(__ccgo_up(buf + uintptr(i)*28))).Ffamily != int32(PF_INET6)) { + break + } + goto _2 + _2: + ; + i = i + 1 + } + if i < cnt { + j = 0 + for { + if !(i < cnt) { + break + } + if (**(**Taddress)(__ccgo_up(buf + uintptr(i)*28))).Ffamily == int32(PF_INET6) { + v1 = j + j = j + 1 + **(**Taddress)(__ccgo_up(buf + uintptr(v1)*28)) = **(**Taddress)(__ccgo_up(buf + uintptr(i)*28)) + } + goto _3 + _3: + ; + i = i + 1 + } + v1 = j + i = v1 + cnt = v1 + } + } + /* Translate any remaining v4 results to v6 */ + i = 0 + for { + if !(i < cnt) { + break + } + if (**(**Taddress)(__ccgo_up(buf + uintptr(i)*28))).Ffamily != int32(PF_INET) { + goto _6 + } + _memcpy(tls, buf+uintptr(i)*28+8+uintptr(12), buf+uintptr(i)*28+8, uint32(4)) + _memcpy(tls, buf+uintptr(i)*28+8, __ccgo_ts+942, uint32(12)) + (**(**Taddress)(__ccgo_up(buf + uintptr(i)*28))).Ffamily = int32(PF_INET6) + goto _6 + _6: + ; + i = i + 1 + } + } + /* No further processing is needed if there are fewer than 2 + * results or if there are only IPv4 results. */ + if cnt < int32(2) || family == int32(PF_INET) { + return cnt + } + i = 0 + for { + if !(i < cnt) { + break + } + if (**(**Taddress)(__ccgo_up(buf + uintptr(i)*28))).Ffamily != int32(PF_INET) { + break + } + goto _7 + _7: + ; + i = i + 1 + } + if i == cnt { + return cnt + } + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp) + /* The following implements a subset of RFC 3484/6724 destination + * address selection by generating a single 31-bit sort key for + * each address. Rules 3, 4, and 7 are omitted for having + * excessive runtime and code size cost and dubious benefit. + * So far the label/precedence table cannot be customized. */ + i = 0 + for { + if !(i < cnt) { + break + } + family1 = (**(**Taddress)(__ccgo_up(buf + uintptr(i)*28))).Ffamily + key = 0 + **(**Tsockaddr_in6)(__ccgo_up(bp + 4)) = Tsockaddr_in6{} + **(**Tsockaddr_in6)(__ccgo_up(bp + 32)) = Tsockaddr_in6{ + Fsin6_family: uint16(PF_INET6), + Fsin6_port: uint16(65535), + Fsin6_scope_id: (**(**Taddress)(__ccgo_up(buf + uintptr(i)*28))).Fscopeid, + } + **(**Tsockaddr_in)(__ccgo_up(bp + 60)) = Tsockaddr_in{} + **(**Tsockaddr_in)(__ccgo_up(bp + 76)) = Tsockaddr_in{ + Fsin_family: uint16(PF_INET), + Fsin_port: uint16(65535), + } + if family1 == int32(PF_INET6) { + _memcpy(tls, bp+32+8, buf+uintptr(i)*28+8, uint32(16)) + da = bp + 32 + dalen = uint32(28) + sa = bp + 4 + **(**Tsocklen_t)(__ccgo_up(bp + 92)) = uint32(28) + } else { + _memcpy(tls, bp+4+8, __ccgo_ts+942, uint32(12)) + _memcpy(tls, bp+32+8+uintptr(12), buf+uintptr(i)*28+8, uint32(4)) + _memcpy(tls, bp+32+8, __ccgo_ts+942, uint32(12)) + _memcpy(tls, bp+32+8+uintptr(12), buf+uintptr(i)*28+8, uint32(4)) + _memcpy(tls, bp+76+4, buf+uintptr(i)*28+8, uint32(4)) + da = bp + 76 + dalen = uint32(16) + sa = bp + 60 + **(**Tsocklen_t)(__ccgo_up(bp + 92)) = uint32(16) + } + dpolicy = _policyof(tls, bp+32+8) + dscope = _scopeof(tls, bp+32+8) + dlabel = Int32FromUint8((*Tpolicy)(unsafe.Pointer(dpolicy)).Flabel) + dprec = Int32FromUint8((*Tpolicy)(unsafe.Pointer(dpolicy)).Fprec) + prefixlen = 0 + fd = Xsocket(tls, family1, Int32FromInt32(SOCK_DGRAM)|Int32FromInt32(SOCK_CLOEXEC), int32(IPPROTO_UDP)) + if fd >= 0 { + if !(Xconnect(tls, fd, da, dalen) != 0) { + key = key | int32(DAS_USABLE) + if !(Xgetsockname(tls, fd, sa, bp+92) != 0) { + if family1 == int32(PF_INET) { + _memcpy(tls, bp+4+8+uintptr(12), bp+60+4, uint32(4)) + } + if dscope == _scopeof(tls, bp+4+8) { + key = key | int32(DAS_MATCHINGSCOPE) + } + if dlabel == _labelof(tls, bp+4+8) { + key = key | int32(DAS_MATCHINGLABEL) + } + prefixlen = _prefixmatch(tls, bp+4+8, bp+32+8) + } + } + Xclose(tls, fd) + } + key = key | dprec< %v", r) }() + } + bp := tls.Alloc(1312) + defer tls.Free(1312) + var cnt, v1, v2 int32 + var f, p, v3, v4 uintptr + var l Tsize_t + var port uint32 + var v10 bool + var _ /* _buf at bp+132 */ [1032]uint8 + var _ /* _f at bp+1168 */ TFILE + var _ /* line at bp+0 */ [128]uint8 + var _ /* z at bp+128 */ uintptr + _, _, _, _, _, _, _, _, _, _ = cnt, f, l, p, port, v1, v10, v2, v3, v4 + cnt = 0 + **(**uintptr)(__ccgo_up(bp + 128)) = __ccgo_ts + port = uint32(0) + switch socktype { + case int32(SOCK_STREAM): + switch proto { + case 0: + proto = int32(IPPROTO_TCP) + fallthrough + case int32(IPPROTO_TCP): + default: + return -int32(8) + } + case int32(SOCK_DGRAM): + switch proto { + case 0: + proto = int32(IPPROTO_UDP) + fallthrough + case int32(IPPROTO_UDP): + default: + return -int32(8) + } + fallthrough + case 0: + default: + if name != 0 { + return -int32(8) + } + (**(**Tservice)(__ccgo_up(buf))).Fport = uint16(0) + (**(**Tservice)(__ccgo_up(buf))).Fproto = Uint8FromInt32(proto) + (**(**Tservice)(__ccgo_up(buf))).Fsocktype = Uint8FromInt32(socktype) + return int32(1) + } + if name != 0 { + if !(**(**uint8)(__ccgo_up(name)) != 0) { + return -int32(8) + } + port = Xstrtoul(tls, name, bp+128, int32(10)) + } + if !(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 128)))) != 0) { + if port > uint32(65535) { + return -int32(8) + } + if proto != int32(IPPROTO_UDP) { + (**(**Tservice)(__ccgo_up(buf + uintptr(cnt)*4))).Fport = uint16(port) + (**(**Tservice)(__ccgo_up(buf + uintptr(cnt)*4))).Fsocktype = uint8(SOCK_STREAM) + v1 = cnt + cnt = cnt + 1 + (**(**Tservice)(__ccgo_up(buf + uintptr(v1)*4))).Fproto = uint8(IPPROTO_TCP) + } + if proto != int32(IPPROTO_TCP) { + (**(**Tservice)(__ccgo_up(buf + uintptr(cnt)*4))).Fport = uint16(port) + (**(**Tservice)(__ccgo_up(buf + uintptr(cnt)*4))).Fsocktype = uint8(SOCK_DGRAM) + v1 = cnt + cnt = cnt + 1 + (**(**Tservice)(__ccgo_up(buf + uintptr(v1)*4))).Fproto = uint8(IPPROTO_UDP) + } + return cnt + } + if flags&int32(AI_NUMERICSERV) != 0 { + return -int32(2) + } + l = _strlen(tls, name) + f = X__fopen_rb_ca(tls, __ccgo_ts+955, bp+1168, bp+132, uint32(1032)) + if !(f != 0) { + switch **(**int32)(__ccgo_up(X__errno_location(tls))) { + case int32(ENOENT): + fallthrough + case int32(ENOTDIR): + fallthrough + case int32(EACCES): + return -int32(8) + default: + return -int32(11) + } + } + for Xfgets(tls, bp, int32(128), f) != 0 && cnt < int32(MAXSERVS) { + v3 = Xstrchr(tls, bp, int32('#')) + p = v3 + if v3 != 0 { + v4 = p + p = p + 1 + **(**uint8)(__ccgo_up(v4)) = uint8('\n') + **(**uint8)(__ccgo_up(p)) = Uint8FromInt32(0) + } + /* Find service name */ + p = bp + for { + v3 = Xstrstr(tls, p, name) + p = v3 + if !(v3 != 0) { + break + } + if v10 = p > bp; v10 { + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(p + uintptr(-Int32FromInt32(1))))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _9 + _9: + } + if v10 && !(v2 != 0) { + goto _5 + } + if v10 = **(**uint8)(__ccgo_up(p + uintptr(l))) != 0; v10 { + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(p + uintptr(l)))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _13 + _13: + } + if v10 && !(v2 != 0) { + goto _5 + } + break + goto _5 + _5: + ; + p = p + 1 + } + if !(p != 0) { + continue + } + /* Skip past canonical name at beginning of line */ + p = bp + for { + if v10 = **(**uint8)(__ccgo_up(p)) != 0; v10 { + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(p))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _18 + _18: + } + if !(v10 && !(v2 != 0)) { + break + } + goto _15 + _15: + ; + p = p + 1 + } + port = Xstrtoul(tls, p, bp+128, int32(10)) + if port > uint32(65535) || **(**uintptr)(__ccgo_up(bp + 128)) == p { + continue + } + if !(Xstrncmp(tls, **(**uintptr)(__ccgo_up(bp + 128)), __ccgo_ts+969, uint32(4)) != 0) { + if proto == int32(IPPROTO_TCP) { + continue + } + (**(**Tservice)(__ccgo_up(buf + uintptr(cnt)*4))).Fport = uint16(port) + (**(**Tservice)(__ccgo_up(buf + uintptr(cnt)*4))).Fsocktype = uint8(SOCK_DGRAM) + v1 = cnt + cnt = cnt + 1 + (**(**Tservice)(__ccgo_up(buf + uintptr(v1)*4))).Fproto = uint8(IPPROTO_UDP) + } + if !(Xstrncmp(tls, **(**uintptr)(__ccgo_up(bp + 128)), __ccgo_ts+974, uint32(4)) != 0) { + if proto == int32(IPPROTO_UDP) { + continue + } + (**(**Tservice)(__ccgo_up(buf + uintptr(cnt)*4))).Fport = uint16(port) + (**(**Tservice)(__ccgo_up(buf + uintptr(cnt)*4))).Fsocktype = uint8(SOCK_STREAM) + v1 = cnt + cnt = cnt + 1 + (**(**Tservice)(__ccgo_up(buf + uintptr(v1)*4))).Fproto = uint8(IPPROTO_TCP) + } + } + X__fclose_ca(tls, f) + if cnt > 0 { + v1 = cnt + } else { + v1 = -int32(8) + } + return v1 +} + +func ___netlink_enumerate(tls *TLS, fd int32, seq uint32, type1 int32, af int32, __ccgo_fp_cb uintptr, ctx uintptr) (r1 int32) { + bp := tls.Alloc(8192) + defer tls.Free(8192) + var h uintptr + var r, ret int32 + var _ /* u at bp+0 */ struct { + Freq [0]struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + } + Freply [0]Tnlmsghdr + Fbuf [8192]Tuint8_t + } + _, _, _ = h, r, ret + Xmemset(tls, bp, 0, uint32(20)) + (*(*struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + })(unsafe.Pointer(&**(**struct { + Freq [0]struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + } + Freply [0]Tnlmsghdr + Fbuf [8192]Tuint8_t + })(__ccgo_up(bp))))).Fnlh.Fnlmsg_len = uint32(20) + (*(*struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + })(unsafe.Pointer(&**(**struct { + Freq [0]struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + } + Freply [0]Tnlmsghdr + Fbuf [8192]Tuint8_t + })(__ccgo_up(bp))))).Fnlh.Fnlmsg_type = Uint16FromInt32(type1) + (*(*struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + })(unsafe.Pointer(&**(**struct { + Freq [0]struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + } + Freply [0]Tnlmsghdr + Fbuf [8192]Tuint8_t + })(__ccgo_up(bp))))).Fnlh.Fnlmsg_flags = Uint16FromInt32(Int32FromInt32(NLM_F_ROOT) | Int32FromInt32(NLM_F_MATCH) | Int32FromInt32(NLM_F_REQUEST)) + (*(*struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + })(unsafe.Pointer(&**(**struct { + Freq [0]struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + } + Freply [0]Tnlmsghdr + Fbuf [8192]Tuint8_t + })(__ccgo_up(bp))))).Fnlh.Fnlmsg_seq = seq + (*(*struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + })(unsafe.Pointer(&**(**struct { + Freq [0]struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + } + Freply [0]Tnlmsghdr + Fbuf [8192]Tuint8_t + })(__ccgo_up(bp))))).Fg.Frtgen_family = Uint8FromInt32(af) + r = Xsend(tls, fd, bp, uint32(20), 0) + if r < 0 { + return r + } + for int32(1) != 0 { + r = Xrecv(tls, fd, bp, uint32(8192), int32(MSG_DONTWAIT)) + if r <= 0 { + return -int32(1) + } + h = bp + for { + if !(Uint32FromInt32(int32(bp+uintptr(r))-int32(h)) >= uint32(16)) { + break + } + if Int32FromUint16((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_type) == int32(NLMSG_DONE) { + return 0 + } + if Int32FromUint16((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_type) == int32(NLMSG_ERROR) { + return -int32(1) + } + ret = (*(*func(*TLS, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cb})))(tls, ctx, h) + if ret != 0 { + return ret + } + goto _1 + _1: + ; + h = h + uintptr(((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_len+Uint32FromInt32(3))&Uint32FromInt32(^Int32FromInt32(3))) + } + } + return r1 +} + +type t__ccgo_fp__X__rtnetlink_enumerate_2 = func(*TLS, uintptr, uintptr) int32 + +func X__rtnetlink_enumerate(tls *TLS, link_af int32, addr_af int32, __ccgo_fp_cb uintptr, ctx uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v link_af=%v addr_af=%v __ccgo_fp_cb=%v ctx=%v, (%v:)", tls, link_af, addr_af, __ccgo_fp_cb, ctx, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var fd, r int32 + _, _ = fd, r + fd = Xsocket(tls, int32(PF_NETLINK), Int32FromInt32(SOCK_RAW)|Int32FromInt32(SOCK_CLOEXEC), NETLINK_ROUTE) + if fd < 0 { + return -int32(1) + } + r = ___netlink_enumerate(tls, fd, uint32(1), int32(RTM_GETLINK), link_af, __ccgo_fp_cb, ctx) + if !(r != 0) { + r = ___netlink_enumerate(tls, fd, uint32(2), int32(RTM_GETADDR), addr_af, __ccgo_fp_cb, ctx) + } + X__syscall1(tls, int32(SYS_close), fd) + return r +} + +func Xgetnetbyaddr(tls *TLS, net Tuint32_t, type1 int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v net=%v type1=%v, (%v:)", tls, net, type1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(0) +} + +func Xgetnetbyname(tls *TLS, name uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(0) +} + +func Xns_get16(tls *TLS, cp uintptr) (r uint32) { + if __ccgo_strace { + trc("tls=%v cp=%v, (%v:)", tls, cp, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(cp)))< %v", r) }() + } + return uint32(uint32(**(**uint8)(__ccgo_up(cp)))<> int32(8)) + v1 = cp + cp = cp + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(s) +} + +func Xns_put32(tls *TLS, l uint32, cp uintptr) { + if __ccgo_strace { + trc("tls=%v l=%v cp=%v, (%v:)", tls, l, cp, origin(2)) + } + var v1 uintptr + _ = v1 + v1 = cp + cp = cp + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(l >> int32(24)) + v1 = cp + cp = cp + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(l >> int32(16)) + v1 = cp + cp = cp + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(l >> int32(8)) + v1 = cp + cp = cp + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(l) +} + +func Xns_initparse(tls *TLS, msg uintptr, msglen int32, handle uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v msg=%v msglen=%v handle=%v, (%v:)", tls, msg, msglen, handle, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var i, r int32 + _, _ = i, r + (*Tns_msg)(unsafe.Pointer(handle)).F_msg = msg + (*Tns_msg)(unsafe.Pointer(handle)).F_eom = msg + uintptr(msglen) + if msglen < (Int32FromInt32(2)+int32(_ns_s_max))*Int32FromInt32(NS_INT16SZ) { + goto bad + } + msg = msg + uintptr(2) + (*Tns_msg)(unsafe.Pointer(handle)).F_id = uint16(Xns_get16(tls, msg-uintptr(2))) + msg = msg + uintptr(2) + (*Tns_msg)(unsafe.Pointer(handle)).F_flags = uint16(Xns_get16(tls, msg-uintptr(2))) + i = 0 + for { + if !(i < int32(_ns_s_max)) { + break + } + msg = msg + uintptr(2) + **(**Tuint16_t)(__ccgo_up(handle + 12 + uintptr(i)*2)) = uint16(Xns_get16(tls, msg-uintptr(2))) + goto _1 + _1: + ; + i = i + 1 + } + i = 0 + for { + if !(i < int32(_ns_s_max)) { + break + } + if **(**Tuint16_t)(__ccgo_up(handle + 12 + uintptr(i)*2)) != 0 { + **(**uintptr)(__ccgo_up(handle + 20 + uintptr(i)*4)) = msg + r = Xns_skiprr(tls, msg, (*Tns_msg)(unsafe.Pointer(handle)).F_eom, i, Int32FromUint16(**(**Tuint16_t)(__ccgo_up(handle + 12 + uintptr(i)*2)))) + if r < 0 { + return -int32(1) + } + msg = msg + uintptr(r) + } else { + **(**uintptr)(__ccgo_up(handle + 20 + uintptr(i)*4)) = UintptrFromInt32(0) + } + goto _2 + _2: + ; + i = i + 1 + } + if msg != (*Tns_msg)(unsafe.Pointer(handle)).F_eom { + goto bad + } + (*Tns_msg)(unsafe.Pointer(handle)).F_sect = int32(_ns_s_max) + (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum = -int32(1) + (*Tns_msg)(unsafe.Pointer(handle)).F_msg_ptr = UintptrFromInt32(0) + return 0 + goto bad +bad: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EMSGSIZE) + return -int32(1) +} + +func Xns_skiprr(tls *TLS, ptr uintptr, eom uintptr, section Tns_sect, count int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v ptr=%v eom=%v section=%v count=%v, (%v:)", tls, ptr, eom, section, count, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var p uintptr + var r, v1 int32 + _, _, _ = p, r, v1 + p = ptr + for { + v1 = count + count = count - 1 + if !(v1 != 0) { + break + } + r = Xdn_skipname(tls, p, eom) + if r < 0 { + goto bad + } + if r+Int32FromInt32(2)*Int32FromInt32(NS_INT16SZ) > int32(eom)-int32(p) { + goto bad + } + p = p + uintptr(r+Int32FromInt32(2)*Int32FromInt32(NS_INT16SZ)) + if section != int32(_ns_s_qd) { + if Int32FromInt32(NS_INT32SZ)+Int32FromInt32(NS_INT16SZ) > int32(eom)-int32(p) { + goto bad + } + p = p + uintptr(NS_INT32SZ) + p = p + uintptr(2) + r = Int32FromUint32(Xns_get16(tls, p-uintptr(2))) + if r > int32(eom)-int32(p) { + goto bad + } + p = p + uintptr(r) + } + } + return int32(p) - int32(ptr) + goto bad +bad: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EMSGSIZE) + return -int32(1) +} + +func Xns_parserr(tls *TLS, handle uintptr, section Tns_sect, rrnum int32, rr uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v handle=%v section=%v rrnum=%v rr=%v, (%v:)", tls, handle, section, rrnum, rr, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + var v1 uintptr + _, _ = r, v1 + if section < 0 || section >= int32(_ns_s_max) { + goto bad + } + if section != (*Tns_msg)(unsafe.Pointer(handle)).F_sect { + (*Tns_msg)(unsafe.Pointer(handle)).F_sect = section + (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum = 0 + (*Tns_msg)(unsafe.Pointer(handle)).F_msg_ptr = **(**uintptr)(__ccgo_up(handle + 20 + uintptr(section)*4)) + } + if rrnum == -int32(1) { + rrnum = (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum + } + if rrnum < 0 || rrnum >= Int32FromUint16(**(**Tuint16_t)(__ccgo_up(handle + 12 + uintptr(section)*2))) { + goto bad + } + if rrnum < (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum { + (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum = 0 + (*Tns_msg)(unsafe.Pointer(handle)).F_msg_ptr = **(**uintptr)(__ccgo_up(handle + 20 + uintptr(section)*4)) + } + if rrnum > (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum { + r = Xns_skiprr(tls, (*Tns_msg)(unsafe.Pointer(handle)).F_msg_ptr, (*Tns_msg)(unsafe.Pointer(handle)).F_eom, section, rrnum-(*Tns_msg)(unsafe.Pointer(handle)).F_rrnum) + if r < 0 { + return -int32(1) + } + **(**uintptr)(__ccgo_up(handle + 44)) += uintptr(r) + (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum = rrnum + } + r = Xns_name_uncompress(tls, (*Tns_msg)(unsafe.Pointer(handle)).F_msg, (*Tns_msg)(unsafe.Pointer(handle)).F_eom, (*Tns_msg)(unsafe.Pointer(handle)).F_msg_ptr, rr, uint32(NS_MAXDNAME)) + if r < 0 { + return -int32(1) + } + **(**uintptr)(__ccgo_up(handle + 44)) += uintptr(r) + if Int32FromInt32(2)*Int32FromInt32(NS_INT16SZ) > int32((*Tns_msg)(unsafe.Pointer(handle)).F_eom)-int32((*Tns_msg)(unsafe.Pointer(handle)).F_msg_ptr) { + goto size + } + v1 = handle + 44 + *(*uintptr)(unsafe.Pointer(v1)) += uintptr(2) + (*Tns_rr)(unsafe.Pointer(rr)).Ftype1 = uint16(Xns_get16(tls, *(*uintptr)(unsafe.Pointer(v1))-uintptr(2))) + v1 = handle + 44 + *(*uintptr)(unsafe.Pointer(v1)) += uintptr(2) + (*Tns_rr)(unsafe.Pointer(rr)).Frr_class = uint16(Xns_get16(tls, *(*uintptr)(unsafe.Pointer(v1))-uintptr(2))) + if section != int32(_ns_s_qd) { + if Int32FromInt32(NS_INT32SZ)+Int32FromInt32(NS_INT16SZ) > int32((*Tns_msg)(unsafe.Pointer(handle)).F_eom)-int32((*Tns_msg)(unsafe.Pointer(handle)).F_msg_ptr) { + goto size + } + v1 = handle + 44 + *(*uintptr)(unsafe.Pointer(v1)) += uintptr(4) + (*Tns_rr)(unsafe.Pointer(rr)).Fttl = Xns_get32(tls, *(*uintptr)(unsafe.Pointer(v1))-uintptr(4)) + v1 = handle + 44 + *(*uintptr)(unsafe.Pointer(v1)) += uintptr(2) + (*Tns_rr)(unsafe.Pointer(rr)).Frdlength = uint16(Xns_get16(tls, *(*uintptr)(unsafe.Pointer(v1))-uintptr(2))) + if Int32FromUint16((*Tns_rr)(unsafe.Pointer(rr)).Frdlength) > int32((*Tns_msg)(unsafe.Pointer(handle)).F_eom)-int32((*Tns_msg)(unsafe.Pointer(handle)).F_msg_ptr) { + goto size + } + (*Tns_rr)(unsafe.Pointer(rr)).Frdata = (*Tns_msg)(unsafe.Pointer(handle)).F_msg_ptr + **(**uintptr)(__ccgo_up(handle + 44)) += uintptr((*Tns_rr)(unsafe.Pointer(rr)).Frdlength) + } else { + (*Tns_rr)(unsafe.Pointer(rr)).Fttl = uint32(0) + (*Tns_rr)(unsafe.Pointer(rr)).Frdlength = uint16(0) + (*Tns_rr)(unsafe.Pointer(rr)).Frdata = UintptrFromInt32(0) + } + (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum = (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum + 1 + if (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum > Int32FromUint16(**(**Tuint16_t)(__ccgo_up(handle + 12 + uintptr(section)*2))) { + (*Tns_msg)(unsafe.Pointer(handle)).F_sect = section + int32(1) + if (*Tns_msg)(unsafe.Pointer(handle)).F_sect == int32(_ns_s_max) { + (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum = -int32(1) + (*Tns_msg)(unsafe.Pointer(handle)).F_msg_ptr = UintptrFromInt32(0) + } else { + (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum = 0 + } + } + return 0 + goto bad +bad: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENODEV) + return -int32(1) + goto size +size: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EMSGSIZE) + return -int32(1) +} + +func Xns_name_uncompress(tls *TLS, msg uintptr, eom uintptr, src uintptr, dst uintptr, dstsiz Tsize_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v msg=%v eom=%v src=%v dst=%v dstsiz=%v, (%v:)", tls, msg, eom, src, dst, dstsiz, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + r = Xdn_expand(tls, msg, eom, src, dst, Int32FromUint32(dstsiz)) + if r < 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EMSGSIZE) + } + return r +} + +func Xntohl(tls *TLS, n Tuint32_t) (r Tuint32_t) { + if __ccgo_strace { + trc("tls=%v n=%v, (%v:)", tls, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var u struct { + Fc [0]uint8 + Fi int32 + } + var v1 uint32 + var v2, v3 Tuint32_t + _, _, _, _ = u, v1, v2, v3 + u = *(*struct { + Fc [0]uint8 + Fi int32 + })(unsafe.Pointer(&struct{ f int32 }{f: int32(1)})) + if *(*uint8)(unsafe.Pointer(&u)) != 0 { + v2 = n + v3 = v2>>int32(24) | v2>>int32(8)&uint32(0xff00) | v2< %v", r) }() + } + var u struct { + Fc [0]uint8 + Fi int32 + } + var v1 int32 + var v2, v3 Tuint16_t + _, _, _, _ = u, v1, v2, v3 + u = *(*struct { + Fc [0]uint8 + Fi int32 + })(unsafe.Pointer(&struct{ f int32 }{f: int32(1)})) + if *(*uint8)(unsafe.Pointer(&u)) != 0 { + v2 = n + v3 = Uint16FromInt32(Int32FromUint16(v2)<>int32(8)) + goto _4 + _4: + v1 = Int32FromUint16(v3) + } else { + v1 = Int32FromUint16(n) + } + return Uint16FromInt32(v1) +} + +/* do we really need all these?? */ + +var _idx int32 +var _protos = [239]uint8{0, 'i', 'p', 0, 1, 'i', 'c', 'm', 'p', 0, 2, 'i', 'g', 'm', 'p', 0, 3, 'g', 'g', 'p', 0, 4, 'i', 'p', 'e', 'n', 'c', 'a', 'p', 0, 5, 's', 't', 0, 6, 't', 'c', 'p', 0, 8, 'e', 'g', 'p', 0, 12, 'p', 'u', 'p', 0, 17, 'u', 'd', 'p', 0, 20, 'h', 'm', 'p', 0, 22, 'x', 'n', 's', '-', 'i', 'd', 'p', 0, 27, 'r', 'd', 'p', 0, 29, 'i', 's', 'o', '-', 't', 'p', '4', 0, '$', 'x', 't', 'p', 0, '%', 'd', 'd', 'p', 0, '&', 'i', 'd', 'p', 'r', '-', 'c', 'm', 't', 'p', 0, ')', 'i', 'p', 'v', '6', 0, '+', 'i', 'p', 'v', '6', '-', 'r', 'o', 'u', 't', 'e', 0, ',', 'i', 'p', 'v', '6', '-', 'f', 'r', 'a', 'g', 0, '-', 'i', 'd', 'r', 'p', 0, '.', 'r', 's', 'v', 'p', 0, '/', 'g', 'r', 'e', 0, '2', 'e', 's', 'p', 0, '3', 'a', 'h', 0, '9', 's', 'k', 'i', 'p', 0, ':', 'i', 'p', 'v', '6', '-', 'i', 'c', 'm', 'p', 0, ';', 'i', 'p', 'v', '6', '-', 'n', 'o', 'n', 'x', 't', 0, '<', 'i', 'p', 'v', '6', '-', 'o', 'p', 't', 's', 0, 'I', 'r', 's', 'p', 'f', 0, 'Q', 'v', 'm', 't', 'p', 0, 'Y', 'o', 's', 'p', 'f', 0, '^', 'i', 'p', 'i', 'p', 0, 'b', 'e', 'n', 'c', 'a', 'p', 0, 'g', 'p', 'i', 'm', 0, 255, 'r', 'a', 'w'} + +func Xendprotoent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + _idx = 0 +} + +func Xsetprotoent(tls *TLS, stayopen int32) { + if __ccgo_strace { + trc("tls=%v stayopen=%v, (%v:)", tls, stayopen, origin(2)) + } + _idx = 0 +} + +func Xgetprotoent(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + if Uint32FromInt32(_idx) >= uint32(239) { + return UintptrFromInt32(0) + } + _p.Fp_proto = Int32FromUint8(_protos[_idx]) + _p.Fp_name = uintptr(unsafe.Pointer(&_protos)) + uintptr(_idx+int32(1)) + _p.Fp_aliases = uintptr(unsafe.Pointer(&_aliases)) + _idx = Int32FromUint32(uint32(_idx) + (_strlen(tls, _p.Fp_name) + Uint32FromInt32(2))) + return uintptr(unsafe.Pointer(&_p)) +} + +var _p Tprotoent + +var _aliases uintptr + +func Xgetprotobyname(tls *TLS, name uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + var p uintptr + _ = p + Xendprotoent(tls) + for cond := true; cond; cond = p != 0 && Xstrcmp(tls, name, (*Tprotoent)(unsafe.Pointer(p)).Fp_name) != 0 { + p = Xgetprotoent(tls) + } + return p +} + +func Xgetprotobynumber(tls *TLS, num int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v num=%v, (%v:)", tls, num, origin(2)) + defer func() { trc("-> %v", r) }() + } + var p uintptr + _ = p + Xendprotoent(tls) + for cond := true; cond; cond = p != 0 && (*Tprotoent)(unsafe.Pointer(p)).Fp_proto != num { + p = Xgetprotoent(tls) + } + return p +} + +func Xrecv(tls *TLS, fd int32, buf uintptr, len1 Tsize_t, flags int32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v len1=%v flags=%v, (%v:)", tls, fd, buf, len1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xrecvfrom(tls, fd, buf, len1, flags, uintptr(0), uintptr(0)) +} + +func Xrecvfrom(tls *TLS, fd int32, buf uintptr, len1 Tsize_t, flags int32, addr uintptr, alen uintptr) (r1 Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v len1=%v flags=%v addr=%v alen=%v, (%v:)", tls, fd, buf, len1, flags, addr, alen, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v1, v8 int32 + var v2, v3, v4, v5, v6, v7 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _ = r, v1, v2, v3, v4, v5, v6, v7, v8 + v1 = int32(SYS_recvfrom) + _ = int32(__SC_recvfrom) + v2 = fd + v3 = int32(buf) + v4 = Int32FromUint32(len1) + v5 = flags + v6 = int32(addr) + v7 = int32(alen) + if int32(1) != 0 { + r = ___syscall_cp(tls, v1, v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, v1, v2, v3, v4, v5, v6, v7) + } + if r != int32(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _9 + } + v8 = r + goto _9 +_9: + return X__syscall_ret(tls, Uint32FromInt32(v8)) +} + +func Xrecvmmsg(tls *TLS, fd int32, msgvec uintptr, vlen uint32, flags uint32, timeout uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v msgvec=%v vlen=%v flags=%v timeout=%v, (%v:)", tls, fd, msgvec, vlen, flags, timeout, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var csize, v3 uintptr + var i, i1, ns, r, v2 int32 + var s Ttime_t + var v1 int64 + var v4 t__predefined_size_t + var v7 uint64 + _, _, _, _, _, _, _, _, _, _, _ = csize, i, i1, ns, r, s, v1, v2, v3, v4, v7 + defer func() { Xrealloc(tls, csize, 0) }() + if timeout != 0 { + v1 = (*Ttimespec)(unsafe.Pointer(timeout)).Ftv_sec + } else { + v1 = 0 + } + s = v1 + if timeout != 0 { + v2 = (*Ttimespec)(unsafe.Pointer(timeout)).Ftv_nsec + } else { + v2 = 0 + } + ns = v2 + if timeout != 0 { + *(*[2]int64)(unsafe.Pointer(bp)) = [2]int64{ + 0: s, + 1: int64(ns), + } + v3 = bp + } else { + v3 = uintptr(0) + } + r = int32(___syscall_cp(tls, int32(SYS_recvmmsg_time64), fd, int32(msgvec), Int32FromUint32(vlen), Int32FromUint32(flags), int32(v3), 0)) + if Bool(false) || r != -int32(ENOSYS) { + return X__syscall_ret(tls, Uint32FromInt32(r)) + } + if vlen > uint32(IOV_MAX) { + vlen = uint32(IOV_MAX) + } + v4 = vlen * 4 + csize = Xrealloc(tls, csize, v4) + i = 0 + for { + if !(Uint32FromInt32(i) < vlen) { + break + } + *(*Tsocklen_t)(unsafe.Add(unsafe.Pointer(csize), i*4)) = (**(**Tmmsghdr)(__ccgo_up(msgvec + uintptr(i)*32))).Fmsg_hdr.Fmsg_controllen + goto _5 + _5: + ; + i = i + 1 + } + if timeout != 0 { + if !((Uint64FromInt64(s)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) { + v7 = Uint64FromInt64(s) + } else { + v7 = uint64(0x7fffffff) + (0+Uint64FromInt64(s))>>int32(63) + } + *(*[2]int32)(unsafe.Pointer(bp + 16)) = [2]int32{ + 0: int32(Int32FromUint64(v7)), + 1: ns, + } + v3 = bp + 16 + } else { + v3 = uintptr(0) + } + r = int32(___syscall_cp(tls, int32(SYS_recvmmsg), fd, int32(msgvec), Int32FromUint32(vlen), Int32FromUint32(flags), int32(v3), 0)) + i1 = 0 + for { + if !(i1 < r) { + break + } + X__convert_scm_timestamps(tls, msgvec+uintptr(i1)*32, *(*Tsocklen_t)(unsafe.Add(unsafe.Pointer(csize), i1*4))) + goto _8 + _8: + ; + i1 = i1 + 1 + } + return X__syscall_ret(tls, Uint32FromInt32(r)) +} + +func X__convert_scm_timestamps(tls *TLS, msg uintptr, csize Tsocklen_t) { + if __ccgo_strace { + trc("tls=%v msg=%v csize=%v, (%v:)", tls, msg, csize, origin(2)) + } + bp := tls.Alloc(32) + defer tls.Free(32) + var cmsg, last, v2 uintptr + var type1 int32 + var _ /* tmp at bp+0 */ int32 + var _ /* tvts at bp+8 */ [2]int64 + _, _, _, _ = cmsg, last, type1, v2 + if false { + return + } + if !((*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_control != 0) || !((*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_controllen != 0) { + return + } + last = uintptr(0) + type1 = 0 + if (*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_controllen >= uint32(12) { + v2 = (*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_control + } else { + v2 = UintptrFromInt32(0) + } + cmsg = v2 + for { + if !(cmsg != 0) { + break + } + if (*Tcmsghdr)(unsafe.Pointer(cmsg)).Fcmsg_level == int32(SOL_SOCKET) { + switch (*Tcmsghdr)(unsafe.Pointer(cmsg)).Fcmsg_type { + case int32(SO_TIMESTAMP_OLD): + goto _3 + case int32(SO_TIMESTAMPNS_OLD): + goto _4 + } + goto _5 + _3: + ; + if type1 != 0 { + goto _5 + } + type1 = int32(SO_TIMESTAMP) + goto common + _4: + ; + type1 = int32(SO_TIMESTAMPNS) + goto common + common: + ; + _memcpy(tls, bp, cmsg+UintptrFromInt32(1)*12, uint32(4)) + (**(**[2]int64)(__ccgo_up(bp + 8)))[0] = int64(**(**int32)(__ccgo_up(bp))) + _memcpy(tls, bp, cmsg+UintptrFromInt32(1)*12+uintptr(4), uint32(4)) + (**(**[2]int64)(__ccgo_up(bp + 8)))[int32(1)] = int64(**(**int32)(__ccgo_up(bp))) + goto _5 + _5: + } + last = cmsg + goto _1 + _1: + ; + if (*Tcmsghdr)(unsafe.Pointer(cmsg)).Fcmsg_len < uint32(12) || uint32((*Tcmsghdr)(unsafe.Pointer(cmsg)).Fcmsg_len+Uint32FromInt64(4)-Uint32FromInt32(1))&Uint32FromInt32(^Int32FromUint32(Uint32FromInt64(4)-Uint32FromInt32(1)))+uint32(12) >= Uint32FromInt32(int32((*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_control+uintptr((*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_controllen))-int32(cmsg)) { + v2 = uintptr(0) + } else { + v2 = cmsg + uintptr(uint32((*Tcmsghdr)(unsafe.Pointer(cmsg)).Fcmsg_len+Uint32FromInt64(4)-Uint32FromInt32(1))&Uint32FromInt32(^Int32FromUint32(Uint32FromInt64(4)-Uint32FromInt32(1)))) + } + cmsg = v2 + } + if !(last != 0) || !(type1 != 0) { + return + } + if (Uint32FromInt64(16)+Uint32FromInt64(4)-Uint32FromInt32(1)) & ^(Uint32FromInt64(4)-Uint32FromInt32(1)) + (Uint32FromInt64(12)+Uint32FromInt64(4)-Uint32FromInt32(1)) & ^(Uint32FromInt64(4)-Uint32FromInt32(1)) > csize-(*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_controllen { + **(**int32)(__ccgo_up(msg + 24)) |= int32(MSG_CTRUNC) + return + } + **(**Tsocklen_t)(__ccgo_up(msg + 20)) += (Uint32FromInt64(16)+Uint32FromInt64(4)-Uint32FromInt32(1)) & ^(Uint32FromInt64(4)-Uint32FromInt32(1)) + (Uint32FromInt64(12)+Uint32FromInt64(4)-Uint32FromInt32(1)) & ^(Uint32FromInt64(4)-Uint32FromInt32(1)) + if (*Tcmsghdr)(unsafe.Pointer(last)).Fcmsg_len < uint32(12) || uint32((*Tcmsghdr)(unsafe.Pointer(last)).Fcmsg_len+Uint32FromInt64(4)-Uint32FromInt32(1))&Uint32FromInt32(^Int32FromUint32(Uint32FromInt64(4)-Uint32FromInt32(1)))+uint32(12) >= Uint32FromInt32(int32((*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_control+uintptr((*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_controllen))-int32(last)) { + v2 = uintptr(0) + } else { + v2 = last + uintptr(uint32((*Tcmsghdr)(unsafe.Pointer(last)).Fcmsg_len+Uint32FromInt64(4)-Uint32FromInt32(1))&Uint32FromInt32(^Int32FromUint32(Uint32FromInt64(4)-Uint32FromInt32(1)))) + } + cmsg = v2 + (*Tcmsghdr)(unsafe.Pointer(cmsg)).Fcmsg_level = int32(SOL_SOCKET) + (*Tcmsghdr)(unsafe.Pointer(cmsg)).Fcmsg_type = type1 + (*Tcmsghdr)(unsafe.Pointer(cmsg)).Fcmsg_len = (Uint32FromInt64(12)+Uint32FromInt64(4)-Uint32FromInt32(1)) & ^(Uint32FromInt64(4)-Uint32FromInt32(1)) + Uint32FromInt64(16) + _memcpy(tls, cmsg+UintptrFromInt32(1)*12, bp+8, uint32(16)) +} + +func Xrecvmsg(tls *TLS, fd int32, msg uintptr, flags int32) (r2 Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v msg=%v flags=%v, (%v:)", tls, fd, msg, flags, origin(2)) + defer func() { trc("-> %v", r2) }() + } + var orig_controllen Tsocklen_t + var r, v1, v8 int32 + var r1 Tssize_t + var v2, v3, v4, v5, v6, v7 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _, _, _ = orig_controllen, r, r1, v1, v2, v3, v4, v5, v6, v7, v8 + orig_controllen = (*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_controllen + v1 = int32(SYS_recvmsg) + _ = int32(__SC_recvmsg) + v2 = fd + v3 = int32(msg) + v4 = flags + v5 = int32(Int32FromInt32(0)) + v6 = int32(Int32FromInt32(0)) + v7 = int32(Int32FromInt32(0)) + if int32(1) != 0 { + r = ___syscall_cp(tls, v1, v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, v1, v2, v3, v4, v5, v6, v7) + } + if r != int32(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _9 + } + v8 = r + goto _9 +_9: + r1 = X__syscall_ret(tls, Uint32FromInt32(v8)) + if r1 >= 0 { + X__convert_scm_timestamps(tls, msg, orig_controllen) + } + return r1 +} + +func Xres_init(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return 0 +} + +func X__res_mkquery(tls *TLS, op int32, dname uintptr, class int32, type1 int32, data uintptr, datalen int32, newrr uintptr, buf uintptr, buflen int32) (r int32) { + if __ccgo_strace { + trc("tls=%v op=%v dname=%v class=%v type1=%v data=%v datalen=%v newrr=%v buf=%v buflen=%v, (%v:)", tls, op, dname, class, type1, data, datalen, newrr, buf, buflen, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(304) + defer tls.Free(304) + var i, id, j, n int32 + var l Tsize_t + var _ /* q at bp+0 */ [280]uint8 + var _ /* ts at bp+280 */ Ttimespec + _, _, _, _, _ = i, id, j, l, n + l = Xstrnlen(tls, dname, uint32(255)) + if l != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(dname + uintptr(l-uint32(1))))) == int32('.') { + l = l - 1 + } + if l != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(dname + uintptr(l-uint32(1))))) == int32('.') { + return -int32(1) + } + n = Int32FromUint32(uint32(17) + l + BoolUint32(!!(l != 0))) + if l > uint32(253) || buflen < n || Uint32FromInt32(op) > uint32(15) || Uint32FromInt32(class) > uint32(255) || Uint32FromInt32(type1) > uint32(255) { + return -int32(1) + } + /* Construct query template - ID will be filled later */ + Xmemset(tls, bp, 0, Uint32FromInt32(n)) + (**(**[280]uint8)(__ccgo_up(bp)))[int32(2)] = Uint8FromInt32(op*int32(8) + int32(1)) + (**(**[280]uint8)(__ccgo_up(bp)))[int32(3)] = uint8(32) /* AD */ + (**(**[280]uint8)(__ccgo_up(bp)))[int32(5)] = uint8(1) + _memcpy(tls, bp+uintptr(13), dname, l) + i = int32(13) + for { + if !((**(**[280]uint8)(__ccgo_up(bp)))[i] != 0) { + break + } + j = i + for { + if !((**(**[280]uint8)(__ccgo_up(bp)))[j] != 0 && Int32FromUint8((**(**[280]uint8)(__ccgo_up(bp)))[j]) != int32('.')) { + break + } + goto _2 + _2: + ; + j = j + 1 + } + if Uint32FromInt32(j-i)-uint32(1) > uint32(62) { + return -int32(1) + } + (**(**[280]uint8)(__ccgo_up(bp)))[i-int32(1)] = Uint8FromInt32(j - i) + goto _1 + _1: + ; + i = j + int32(1) + } + (**(**[280]uint8)(__ccgo_up(bp)))[i+int32(1)] = Uint8FromInt32(type1) + (**(**[280]uint8)(__ccgo_up(bp)))[i+int32(3)] = Uint8FromInt32(class) + /* Make a reasonably unpredictable id */ + Xclock_gettime(tls, CLOCK_REALTIME, bp+280) + id = Int32FromUint32((Uint32FromInt32((**(**Ttimespec)(__ccgo_up(bp + 280))).Ftv_nsec) + Uint32FromInt32((**(**Ttimespec)(__ccgo_up(bp + 280))).Ftv_nsec)/uint32(65536)) & uint32(0xffff)) + (**(**[280]uint8)(__ccgo_up(bp)))[0] = Uint8FromInt32(id / int32(256)) + (**(**[280]uint8)(__ccgo_up(bp)))[int32(1)] = Uint8FromInt32(id) + _memcpy(tls, buf, bp, Uint32FromInt32(n)) + return n +} + +func Xres_mkquery(tls *TLS, op int32, dname uintptr, class int32, type1 int32, data uintptr, datalen int32, newrr uintptr, buf uintptr, buflen int32) (r int32) { + if __ccgo_strace { + trc("tls=%v op=%v dname=%v class=%v type1=%v data=%v datalen=%v newrr=%v buf=%v buflen=%v, (%v:)", tls, op, dname, class, type1, data, datalen, newrr, buf, buflen, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__res_mkquery(tls, op, dname, class, type1, data, datalen, newrr, buf, buflen) +} + +const POLLERR = 8 +const POLLHUP = 16 +const POLLIN = 1 +const POLLMSG = 1024 +const POLLNVAL = 32 +const POLLOUT = 4 +const POLLPRI = 2 +const POLLRDBAND = 128 +const POLLRDHUP = 8192 +const POLLRDNORM = 64 +const POLLWRBAND = 512 +const POLLWRNORM = 256 +const TCP_CC_INFO = 26 +const TCP_CLOSE = 7 +const TCP_CLOSE_WAIT = 8 +const TCP_CLOSING = 11 +const TCP_CM_INQ = 36 +const TCP_CONGESTION = 13 +const TCP_CORK = 3 +const TCP_DEFER_ACCEPT = 9 +const TCP_ESTABLISHED = 1 +const TCP_FASTOPEN = 23 +const TCP_FASTOPEN_CONNECT = 30 +const TCP_FASTOPEN_KEY = 33 +const TCP_FASTOPEN_NO_COOKIE = 34 +const TCP_FIN_WAIT1 = 4 +const TCP_FIN_WAIT2 = 5 +const TCP_INFO = 11 +const TCP_INQ = 36 +const TCP_KEEPCNT = 6 +const TCP_KEEPIDLE = 4 +const TCP_KEEPINTVL = 5 +const TCP_LAST_ACK = 9 +const TCP_LINGER2 = 8 +const TCP_LISTEN = 10 +const TCP_MAXSEG = 2 +const TCP_MD5SIG = 14 +const TCP_MD5SIG_EXT = 32 +const TCP_NODELAY = 1 +const TCP_NOTSENT_LOWAT = 25 +const TCP_QUEUE_SEQ = 21 +const TCP_QUICKACK = 12 +const TCP_REPAIR = 19 +const TCP_REPAIR_OPTIONS = 22 +const TCP_REPAIR_QUEUE = 20 +const TCP_REPAIR_WINDOW = 29 +const TCP_SAVED_SYN = 28 +const TCP_SAVE_SYN = 27 +const TCP_SYNCNT = 7 +const TCP_SYN_RECV = 3 +const TCP_SYN_SENT = 2 +const TCP_THIN_DUPACK = 17 +const TCP_THIN_LINEAR_TIMEOUTS = 16 +const TCP_TIMESTAMP = 24 +const TCP_TIME_WAIT = 6 +const TCP_TX_DELAY = 37 +const TCP_ULP = 31 +const TCP_USER_TIMEOUT = 18 +const TCP_WINDOW_CLAMP = 10 +const TCP_ZEROCOPY_RECEIVE = 35 + +const _TCP_NLA_PAD = 0 +const _TCP_NLA_BUSY = 1 +const _TCP_NLA_RWND_LIMITED = 2 +const _TCP_NLA_SNDBUF_LIMITED = 3 +const _TCP_NLA_DATA_SEGS_OUT = 4 +const _TCP_NLA_TOTAL_RETRANS = 5 +const _TCP_NLA_PACING_RATE = 6 +const _TCP_NLA_DELIVERY_RATE = 7 +const _TCP_NLA_SND_CWND = 8 +const _TCP_NLA_REORDERING = 9 +const _TCP_NLA_MIN_RTT = 10 +const _TCP_NLA_RECUR_RETRANS = 11 +const _TCP_NLA_DELIVERY_RATE_APP_LMT = 12 +const _TCP_NLA_SNDQ_SIZE = 13 +const _TCP_NLA_CA_STATE = 14 +const _TCP_NLA_SND_SSTHRESH = 15 +const _TCP_NLA_DELIVERED = 16 +const _TCP_NLA_DELIVERED_CE = 17 +const _TCP_NLA_BYTES_SENT = 18 +const _TCP_NLA_BYTES_RETRANS = 19 +const _TCP_NLA_DSACK_DUPS = 20 +const _TCP_NLA_REORD_SEEN = 21 +const _TCP_NLA_SRTT = 22 +const _TCP_NLA_TIMEOUT_REHASH = 23 +const _TCP_NLA_BYTES_NOTSENT = 24 +const _TCP_NLA_EDT = 25 +const _TCP_NLA_TTL = 26 + +type Tnfds_t = uint32 + +type Tpollfd = struct { + Ffd int32 + Fevents int16 + Frevents int16 +} + +func _cleanup(tls *TLS, p uintptr) { + var i int32 + var pfd uintptr + _, _ = i, pfd + pfd = p + i = 0 + for { + if !((**(**Tpollfd)(__ccgo_up(pfd + uintptr(i)*8))).Ffd >= -int32(1)) { + break + } + if (**(**Tpollfd)(__ccgo_up(pfd + uintptr(i)*8))).Ffd >= 0 { + X__syscall1(tls, int32(SYS_close), int32((**(**Tpollfd)(__ccgo_up(pfd + uintptr(i)*8))).Ffd)) + } + goto _1 + _1: + ; + i = i + 1 + } +} + +func _mtime(tls *TLS) (r uint32) { + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* ts at bp+0 */ Ttimespec + if Xclock_gettime(tls, int32(CLOCK_MONOTONIC), bp) < 0 && **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(ENOSYS) { + Xclock_gettime(tls, CLOCK_REALTIME, bp) + } + return Uint32FromInt64((**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec)*uint32(1000) + Uint32FromInt32((**(**Ttimespec)(__ccgo_up(bp))).Ftv_nsec/int32(1000000)) +} + +func _start_tcp(tls *TLS, pfd uintptr, family int32, sa uintptr, sl Tsocklen_t, q uintptr, ql int32) (r1 int32) { + bp := tls.Alloc(64) + defer tls.Free(64) + var fd, r int32 + var _ /* mh at bp+24 */ Tmsghdr + _, _ = fd, r + *(*[2]Tuint8_t)(unsafe.Pointer(bp + 16)) = [2]Tuint8_t{ + 0: Uint8FromInt32(ql >> int32(8)), + 1: Uint8FromInt32(ql), + } + *(*[2]Tiovec)(unsafe.Pointer(bp)) = [2]Tiovec{ + 0: { + Fiov_base: bp + 16, + Fiov_len: uint32(2), + }, + 1: { + Fiov_base: q, + Fiov_len: Uint32FromInt32(ql), + }, + } + **(**Tmsghdr)(__ccgo_up(bp + 24)) = Tmsghdr{ + Fmsg_name: sa, + Fmsg_namelen: sl, + Fmsg_iov: bp, + Fmsg_iovlen: int32(2), + } + fd = Xsocket(tls, family, Int32FromInt32(SOCK_STREAM)|Int32FromInt32(SOCK_CLOEXEC)|Int32FromInt32(SOCK_NONBLOCK), 0) + (*Tpollfd)(unsafe.Pointer(pfd)).Ffd = fd + (*Tpollfd)(unsafe.Pointer(pfd)).Fevents = int16(POLLOUT) + *(*int32)(unsafe.Pointer(bp + 20)) = int32(1) + if !(Xsetsockopt(tls, fd, int32(IPPROTO_TCP), int32(TCP_FASTOPEN_CONNECT), bp+20, uint32(4)) != 0) { + r = Xsendmsg(tls, fd, bp+24, Int32FromInt32(MSG_FASTOPEN)|Int32FromInt32(MSG_NOSIGNAL)) + if r == ql+int32(2) { + (*Tpollfd)(unsafe.Pointer(pfd)).Fevents = int16(POLLIN) + } + if r >= 0 { + return r + } + if **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EINPROGRESS) { + return 0 + } + } + r = Xconnect(tls, fd, sa, sl) + if !(r != 0) || **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EINPROGRESS) { + return 0 + } + Xclose(tls, fd) + (*Tpollfd)(unsafe.Pointer(pfd)).Ffd = -int32(1) + return -int32(1) +} + +func _step_mh(tls *TLS, mh uintptr, n Tsize_t) { + /* Adjust iovec in msghdr to skip first n bytes. */ + for (*Tmsghdr)(unsafe.Pointer(mh)).Fmsg_iovlen != 0 && n >= (*Tiovec)(unsafe.Pointer((*Tmsghdr)(unsafe.Pointer(mh)).Fmsg_iov)).Fiov_len { + n = n - (*Tiovec)(unsafe.Pointer((*Tmsghdr)(unsafe.Pointer(mh)).Fmsg_iov)).Fiov_len + (*Tmsghdr)(unsafe.Pointer(mh)).Fmsg_iov += 8 + (*Tmsghdr)(unsafe.Pointer(mh)).Fmsg_iovlen = (*Tmsghdr)(unsafe.Pointer(mh)).Fmsg_iovlen - 1 + } + if !((*Tmsghdr)(unsafe.Pointer(mh)).Fmsg_iovlen != 0) { + return + } + (*Tiovec)(unsafe.Pointer((*Tmsghdr)(unsafe.Pointer(mh)).Fmsg_iov)).Fiov_base = (*Tiovec)(unsafe.Pointer((*Tmsghdr)(unsafe.Pointer(mh)).Fmsg_iov)).Fiov_base + uintptr(n) + **(**Tsize_t)(__ccgo_up((*Tmsghdr)(unsafe.Pointer(mh)).Fmsg_iov + 4)) -= n +} + +/* Internal contract for __res_msend[_rc]: asize must be >=512, nqueries + * must be sufficiently small to be safe as VLA size. In practice it's + * either 1 or 2, anyway. */ + +func X__res_msend_rc(tls *TLS, nqueries int32, queries uintptr, qlens uintptr, answers uintptr, alens uintptr, asize int32, conf uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v nqueries=%v queries=%v qlens=%v answers=%v alens=%v asize=%v conf=%v, (%v:)", tls, nqueries, queries, qlens, answers, alens, asize, conf, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(272) + defer tls.Free(272) + var alen, attempts, family, fd, i, j, next, nns, r, rcode, retry_interval, rlen, servfail_retry, timeout, v6 int32 + var alen_buf, apos, iplit, pfd, qpos uintptr + var sl Tsocklen_t + var t0, t1, t2, v10 uint32 + var v1, v2, v3, v4 t__predefined_size_t + var v18 bool + var _ /* __cb at bp+164 */ t__ptcb + var _ /* cs at bp+160 */ int32 + var _ /* mh at bp+176 */ Tmsghdr + var _ /* mh at bp+204 */ Tmsghdr + var _ /* mh at bp+232 */ Tmsghdr + var _ /* ns at bp+76 */ [3]struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + } + var _ /* sa at bp+48 */ struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = alen, alen_buf, apos, attempts, family, fd, i, iplit, j, next, nns, pfd, qpos, r, rcode, retry_interval, rlen, servfail_retry, sl, t0, t1, t2, timeout, v1, v10, v18, v2, v3, v4, v6 + defer func() { + Xrealloc(tls, alen_buf, 0) + Xrealloc(tls, apos, 0) + Xrealloc(tls, pfd, 0) + Xrealloc(tls, qpos, 0) + }() + *(*struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + })(unsafe.Pointer(bp + 48)) = struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + }{} + *(*uint16)(unsafe.Pointer(bp + 48)) = uint16(0) + **(**[3]struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + })(__ccgo_up(bp + 76)) = [3]struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + }{} + sl = uint32(16) + nns = 0 + family = int32(PF_INET) + v1 = Uint32FromInt32(nqueries+int32(2)) * 8 + pfd = Xrealloc(tls, pfd, v1) + v2 = Uint32FromInt32(nqueries) * 4 + qpos = Xrealloc(tls, qpos, v2) + v3 = Uint32FromInt32(nqueries) * 4 + apos = Xrealloc(tls, apos, v3) + v4 = Uint32FromInt32(nqueries) * 2 + alen_buf = Xrealloc(tls, alen_buf, v4) + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp+160) + timeout = Int32FromUint32(uint32(1000) * (*Tresolvconf)(unsafe.Pointer(conf)).Ftimeout) + attempts = Int32FromUint32((*Tresolvconf)(unsafe.Pointer(conf)).Fattempts) + nns = 0 + for { + if !(Uint32FromInt32(nns) < (*Tresolvconf)(unsafe.Pointer(conf)).Fnns) { + break + } + iplit = conf + uintptr(nns)*28 + if (*Taddress)(unsafe.Pointer(iplit)).Ffamily == int32(PF_INET) { + _memcpy(tls, bp+76+uintptr(nns)*28+4, iplit+8, uint32(4)) + (**(**[3]struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + })(__ccgo_up(bp + 76)))[nns].Fsin.Fsin_port = Xhtons(tls, uint16(53)) + (**(**[3]struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + })(__ccgo_up(bp + 76)))[nns].Fsin.Fsin_family = uint16(PF_INET) + } else { + sl = uint32(28) + _memcpy(tls, bp+76+uintptr(nns)*28+8, iplit+8, uint32(16)) + (*(*Tsockaddr_in6)(unsafe.Pointer(bp + 76 + uintptr(nns)*28))).Fsin6_port = Xhtons(tls, uint16(53)) + (*(*Tsockaddr_in6)(unsafe.Pointer(bp + 76 + uintptr(nns)*28))).Fsin6_scope_id = (*Taddress)(unsafe.Pointer(iplit)).Fscopeid + v6 = Int32FromInt32(PF_INET6) + family = v6 + (*(*Tsockaddr_in6)(unsafe.Pointer(bp + 76 + uintptr(nns)*28))).Fsin6_family = Uint16FromInt32(v6) + } + goto _5 + _5: + ; + nns = nns + 1 + } + /* Get local address and open/bind a socket */ + fd = Xsocket(tls, family, Int32FromInt32(SOCK_DGRAM)|Int32FromInt32(SOCK_CLOEXEC)|Int32FromInt32(SOCK_NONBLOCK), 0) + /* Handle case where system lacks IPv6 support */ + if fd < 0 && family == int32(PF_INET6) && **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EAFNOSUPPORT) { + i = 0 + for { + if !(i < nns && (**(**Taddress)(__ccgo_up(conf + uintptr(nns)*28))).Ffamily == int32(PF_INET6)) { + break + } + goto _7 + _7: + ; + i = i + 1 + } + if i == nns { + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 160)), uintptr(0)) + return -int32(1) + } + fd = Xsocket(tls, int32(PF_INET), Int32FromInt32(SOCK_DGRAM)|Int32FromInt32(SOCK_CLOEXEC)|Int32FromInt32(SOCK_NONBLOCK), 0) + family = int32(PF_INET) + sl = uint32(16) + } + /* Convert any IPv4 addresses in a mixed environment to v4-mapped */ + if fd >= 0 && family == int32(PF_INET6) { + *(*int32)(unsafe.Pointer(bp)) = 0 + Xsetsockopt(tls, fd, int32(IPPROTO_IPV6), int32(IPV6_V6ONLY), bp, uint32(4)) + i = 0 + for { + if !(i < nns) { + break + } + if Int32FromUint16((**(**[3]struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + })(__ccgo_up(bp + 76)))[i].Fsin.Fsin_family) != int32(PF_INET) { + goto _8 + } + _memcpy(tls, bp+76+uintptr(i)*28+8+uintptr(12), bp+76+uintptr(i)*28+4, uint32(4)) + _memcpy(tls, bp+76+uintptr(i)*28+8, __ccgo_ts+942, uint32(12)) + (*(*Tsockaddr_in6)(unsafe.Pointer(bp + 76 + uintptr(i)*28))).Fsin6_family = uint16(PF_INET6) + (*(*Tsockaddr_in6)(unsafe.Pointer(bp + 76 + uintptr(i)*28))).Fsin6_flowinfo = uint32(0) + (*(*Tsockaddr_in6)(unsafe.Pointer(bp + 76 + uintptr(i)*28))).Fsin6_scope_id = uint32(0) + goto _8 + _8: + ; + i = i + 1 + } + } + (**(**struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + })(__ccgo_up(bp + 48))).Fsin.Fsin_family = Uint16FromInt32(family) + if fd < 0 || Xbind(tls, fd, bp+48, sl) < 0 { + if fd >= 0 { + Xclose(tls, fd) + } + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 160)), uintptr(0)) + return -int32(1) + } + /* Past this point, there are no errors. Each individual query will + * yield either no reply (indicated by zero length) or an answer + * packet which is up to the caller to interpret. */ + i = 0 + for { + if !(i < nqueries) { + break + } + (*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), i*8))).Ffd = -int32(1) + goto _9 + _9: + ; + i = i + 1 + } + (*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), nqueries*8))).Ffd = fd + (*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), nqueries*8))).Fevents = int16(POLLIN) + (*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), (nqueries+int32(1))*8))).Ffd = -int32(2) + __pthread_cleanup_push(tls, bp+164, __ccgo_fp(_cleanup), pfd) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 160)), uintptr(0)) + Xmemset(tls, alens, 0, uint32(4)*Uint32FromInt32(nqueries)) + retry_interval = timeout / attempts + next = 0 + v10 = _mtime(tls) + t2 = v10 + t0 = v10 + t1 = t2 - Uint32FromInt32(retry_interval) + for { + if !(t2-t0 < Uint32FromInt32(timeout)) { + break + } + /* This is the loop exit condition: that all queries + * have an accepted answer. */ + i = 0 + for { + if !(i < nqueries && **(**int32)(__ccgo_up(alens + uintptr(i)*4)) > 0) { + break + } + goto _12 + _12: + ; + i = i + 1 + } + if i == nqueries { + break + } + if t2-t1 >= Uint32FromInt32(retry_interval) { + /* Query all configured namservers in parallel */ + i = 0 + for { + if !(i < nqueries) { + break + } + if !(**(**int32)(__ccgo_up(alens + uintptr(i)*4)) != 0) { + j = 0 + for { + if !(j < nns) { + break + } + Xsendto(tls, fd, **(**uintptr)(__ccgo_up(queries + uintptr(i)*4)), Uint32FromInt32(**(**int32)(__ccgo_up(qlens + uintptr(i)*4))), int32(MSG_NOSIGNAL), bp+76+uintptr(j)*28, sl) + goto _14 + _14: + ; + j = j + 1 + } + } + goto _13 + _13: + ; + i = i + 1 + } + t1 = t2 + servfail_retry = int32(2) * nqueries + } + /* Wait for a response, or until time to retry */ + if Xpoll(tls, pfd, Uint32FromInt32(nqueries+int32(1)), Int32FromUint32(t1+Uint32FromInt32(retry_interval)-t2)) <= 0 { + goto _11 + } + for next < nqueries { + *(*[1]Tiovec)(unsafe.Pointer(bp + 8)) = [1]Tiovec{ + 0: { + Fiov_base: **(**uintptr)(__ccgo_up(answers + uintptr(next)*4)), + Fiov_len: Uint32FromInt32(asize), + }, + } + **(**Tmsghdr)(__ccgo_up(bp + 176)) = Tmsghdr{ + Fmsg_name: bp + 48, + Fmsg_namelen: sl, + Fmsg_iov: bp + 8, + Fmsg_iovlen: int32(1), + } + rlen = Xrecvmsg(tls, fd, bp+176, 0) + if rlen < 0 { + break + } + /* Ignore non-identifiable packets */ + if rlen < int32(4) { + continue + } + /* Ignore replies from addresses we didn't send to */ + j = 0 + for { + if !(j < nns && Xmemcmp(tls, bp+76+uintptr(j)*28, bp+48, sl) != 0) { + break + } + goto _15 + _15: + ; + j = j + 1 + } + if j == nns { + continue + } + /* Find which query this answer goes with, if any */ + i = next + for { + if !(i < nqueries && (Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(answers + uintptr(next)*4))))) != Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(queries + uintptr(i)*4))))) || Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(answers + uintptr(next)*4)) + 1))) != Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(queries + uintptr(i)*4)) + 1))))) { + break + } + goto _16 + _16: + ; + i = i + 1 + } + if i == nqueries { + continue + } + if **(**int32)(__ccgo_up(alens + uintptr(i)*4)) != 0 { + continue + } + /* Only accept positive or negative responses; + * retry immediately on server failure, and ignore + * all other codes such as refusal. */ + switch Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(answers + uintptr(next)*4)) + 3))) & Int32FromInt32(15) { + case 0: + fallthrough + case int32(3): + case int32(2): + if v18 = servfail_retry != 0; v18 { + v6 = servfail_retry + servfail_retry = servfail_retry - 1 + } + if v18 && v6 != 0 { + Xsendto(tls, fd, **(**uintptr)(__ccgo_up(queries + uintptr(i)*4)), Uint32FromInt32(**(**int32)(__ccgo_up(qlens + uintptr(i)*4))), int32(MSG_NOSIGNAL), bp+76+uintptr(j)*28, sl) + } + fallthrough + default: + continue + } + /* Store answer in the right slot, or update next + * available temp slot if it's already in place. */ + **(**int32)(__ccgo_up(alens + uintptr(i)*4)) = rlen + if i == next { + for { + if !(next < nqueries && **(**int32)(__ccgo_up(alens + uintptr(next)*4)) != 0) { + break + } + goto _19 + _19: + ; + next = next + 1 + } + } else { + _memcpy(tls, **(**uintptr)(__ccgo_up(answers + uintptr(i)*4)), **(**uintptr)(__ccgo_up(answers + uintptr(next)*4)), Uint32FromInt32(rlen)) + } + /* Ignore further UDP if all slots full or TCP-mode */ + if next == nqueries { + (*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), nqueries*8))).Fevents = 0 + } + /* If answer is truncated (TC bit), fallback to TCP */ + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(answers + uintptr(i)*4)) + 2)))&int32(2) != 0 || (**(**Tmsghdr)(__ccgo_up(bp + 176))).Fmsg_flags&int32(MSG_TRUNC) != 0 { + **(**int32)(__ccgo_up(alens + uintptr(i)*4)) = -int32(1) + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), uintptr(0)) + r = _start_tcp(tls, pfd+uintptr(i)*8, family, bp+76+uintptr(j)*28, sl, **(**uintptr)(__ccgo_up(queries + uintptr(i)*4)), **(**int32)(__ccgo_up(qlens + uintptr(i)*4))) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 160)), uintptr(0)) + if r >= 0 { + *(*int32)(unsafe.Add(unsafe.Pointer(qpos), i*4)) = r + *(*int32)(unsafe.Add(unsafe.Pointer(apos), i*4)) = 0 + } + continue + } + } + i = 0 + for { + if !(i < nqueries) { + break + } + if int32((*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), i*8))).Frevents)&int32(POLLOUT) != 0 { + *(*[2]Tuint8_t)(unsafe.Pointer(bp + 28)) = [2]Tuint8_t{ + 0: Uint8FromInt32(**(**int32)(__ccgo_up(qlens + uintptr(i)*4)) >> int32(8)), + 1: Uint8FromInt32(**(**int32)(__ccgo_up(qlens + uintptr(i)*4))), + } + *(*[2]Tiovec)(unsafe.Pointer(bp + 12)) = [2]Tiovec{ + 0: { + Fiov_base: bp + 28, + Fiov_len: uint32(2), + }, + 1: { + Fiov_base: **(**uintptr)(__ccgo_up(queries + uintptr(i)*4)), + Fiov_len: Uint32FromInt32(**(**int32)(__ccgo_up(qlens + uintptr(i)*4))), + }, + } + **(**Tmsghdr)(__ccgo_up(bp + 204)) = Tmsghdr{ + Fmsg_iov: bp + 12, + Fmsg_iovlen: int32(2), + } + _step_mh(tls, bp+204, Uint32FromInt32(*(*int32)(unsafe.Add(unsafe.Pointer(qpos), i*4)))) + r = Xsendmsg(tls, (*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), i*8))).Ffd, bp+204, int32(MSG_NOSIGNAL)) + if r < 0 { + goto out + } + **(**int32)(__ccgo_up(qpos + uintptr(i)*4)) += r + if *(*int32)(unsafe.Add(unsafe.Pointer(qpos), i*4)) == **(**int32)(__ccgo_up(qlens + uintptr(i)*4))+int32(2) { + (*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), i*8))).Fevents = int16(POLLIN) + } + } + goto _20 + _20: + ; + i = i + 1 + } + i = 0 + for { + if !(i < nqueries) { + break + } + if int32((*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), i*8))).Frevents)&int32(POLLIN) != 0 { + *(*[2]Tiovec)(unsafe.Pointer(bp + 32)) = [2]Tiovec{ + 0: { + Fiov_base: alen_buf + uintptr(i)*2, + Fiov_len: uint32(2), + }, + 1: { + Fiov_base: **(**uintptr)(__ccgo_up(answers + uintptr(i)*4)), + Fiov_len: Uint32FromInt32(asize), + }, + } + **(**Tmsghdr)(__ccgo_up(bp + 232)) = Tmsghdr{ + Fmsg_iov: bp + 32, + Fmsg_iovlen: int32(2), + } + _step_mh(tls, bp+232, Uint32FromInt32(*(*int32)(unsafe.Add(unsafe.Pointer(apos), i*4)))) + r = Xrecvmsg(tls, (*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), i*8))).Ffd, bp+232, 0) + if r <= 0 { + goto out + } + **(**int32)(__ccgo_up(apos + uintptr(i)*4)) += r + if *(*int32)(unsafe.Add(unsafe.Pointer(apos), i*4)) < int32(2) { + goto _21 + } + alen = Int32FromUint8(**(**uint8)(__ccgo_up(alen_buf + uintptr(i)*2)))*int32(256) + Int32FromUint8(**(**uint8)(__ccgo_up(alen_buf + uintptr(i)*2 + 1))) + if alen < int32(13) { + goto out + } + if *(*int32)(unsafe.Add(unsafe.Pointer(apos), i*4)) < alen+int32(2) && *(*int32)(unsafe.Add(unsafe.Pointer(apos), i*4)) < asize+int32(2) { + goto _21 + } + rcode = Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(answers + uintptr(i)*4)) + 3))) & int32(15) + if rcode != 0 && rcode != int32(3) { + goto out + } + /* Storing the length here commits the accepted answer. + * Immediately close TCP socket so as not to consume + * resources we no longer need. */ + **(**int32)(__ccgo_up(alens + uintptr(i)*4)) = alen + X__syscall1(tls, int32(SYS_close), (*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), i*8))).Ffd) + (*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), i*8))).Ffd = -int32(1) + } + goto _21 + _21: + ; + i = i + 1 + } + goto _11 + _11: + ; + t2 = _mtime(tls) + } + goto out +out: + ; + __pthread_cleanup_pop(tls, bp+164, int32(1)) + /* Disregard any incomplete TCP results */ + i = 0 + for { + if !(i < nqueries) { + break + } + if **(**int32)(__ccgo_up(alens + uintptr(i)*4)) < 0 { + **(**int32)(__ccgo_up(alens + uintptr(i)*4)) = 0 + } + goto _22 + _22: + ; + i = i + 1 + } + return 0 +} + +func X__res_msend(tls *TLS, nqueries int32, queries uintptr, qlens uintptr, answers uintptr, alens uintptr, asize int32) (r int32) { + if __ccgo_strace { + trc("tls=%v nqueries=%v queries=%v qlens=%v answers=%v alens=%v asize=%v, (%v:)", tls, nqueries, queries, qlens, answers, alens, asize, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(112) + defer tls.Free(112) + var _ /* conf at bp+0 */ Tresolvconf + if X__get_resolv_conf(tls, bp, uintptr(0), uint32(0)) < 0 { + return -int32(1) + } + return X__res_msend_rc(tls, nqueries, queries, qlens, answers, alens, asize, bp) +} + +func X__res_send(tls *TLS, _msg uintptr, _msglen int32, _answer uintptr, _anslen int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v _msg=%v _msglen=%v _answer=%v _anslen=%v, (%v:)", tls, _msg, _msglen, _answer, _anslen, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(528) + defer tls.Free(528) + *(*uintptr)(unsafe.Pointer(bp)) = _msg + *(*int32)(unsafe.Pointer(bp + 4)) = _msglen + *(*uintptr)(unsafe.Pointer(bp + 8)) = _answer + *(*int32)(unsafe.Pointer(bp + 12)) = _anslen + var r, v1 int32 + var _ /* buf at bp+16 */ [512]uint8 + _, _ = r, v1 + if **(**int32)(__ccgo_up(bp + 12)) < int32(512) { + r = X__res_send(tls, **(**uintptr)(__ccgo_up(bp)), **(**int32)(__ccgo_up(bp + 4)), bp+16, int32(512)) + if r >= 0 { + if r < **(**int32)(__ccgo_up(bp + 12)) { + v1 = r + } else { + v1 = **(**int32)(__ccgo_up(bp + 12)) + } + _memcpy(tls, **(**uintptr)(__ccgo_up(bp + 8)), bp+16, Uint32FromInt32(v1)) + } + return r + } + r = X__res_msend(tls, int32(1), bp, bp+4, bp+8, bp+12, **(**int32)(__ccgo_up(bp + 12))) + if r < 0 || !(**(**int32)(__ccgo_up(bp + 12)) != 0) { + v1 = -int32(1) + } else { + v1 = **(**int32)(__ccgo_up(bp + 12)) + } + return v1 +} + +func Xres_send(tls *TLS, _msg uintptr, _msglen int32, _answer uintptr, _anslen int32) (r int32) { + if __ccgo_strace { + trc("tls=%v _msg=%v _msglen=%v _answer=%v _anslen=%v, (%v:)", tls, _msg, _msglen, _answer, _anslen, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__res_send(tls, _msg, _msglen, _answer, _anslen) +} + +/* This is completely unused, and exists purely to satisfy broken apps. */ + +func X__res_state(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(unsafe.Pointer(&_res1)) +} + +var _res1 t__res_state + +func X__get_resolv_conf(tls *TLS, conf uintptr, search uintptr, search_sz Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v conf=%v search=%v search_sz=%v, (%v:)", tls, conf, search, search_sz, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(672) + defer tls.Free(672) + var c, nns, v1, v2 int32 + var f, p uintptr + var l Tsize_t + var x, x1, x2, v5 uint32 + var v4 bool + var _ /* _buf at bp+256 */ [256]uint8 + var _ /* _f at bp+512 */ TFILE + var _ /* line at bp+0 */ [256]uint8 + var _ /* z at bp+656 */ uintptr + _, _, _, _, _, _, _, _, _, _, _, _ = c, f, l, nns, p, x, x1, x2, v1, v2, v4, v5 + nns = 0 + (*Tresolvconf)(unsafe.Pointer(conf)).Fndots = uint32(1) + (*Tresolvconf)(unsafe.Pointer(conf)).Ftimeout = uint32(5) + (*Tresolvconf)(unsafe.Pointer(conf)).Fattempts = uint32(2) + if search != 0 { + **(**uint8)(__ccgo_up(search)) = uint8(0) + } + f = X__fopen_rb_ca(tls, __ccgo_ts+1064, bp+512, bp+256, uint32(256)) + if !(f != 0) { + switch **(**int32)(__ccgo_up(X__errno_location(tls))) { + case int32(ENOENT): + fallthrough + case int32(ENOTDIR): + fallthrough + case int32(EACCES): + goto no_resolv_conf + default: + return -int32(1) + } + } + for Xfgets(tls, bp, int32(256), f) != 0 { + if !(Xstrchr(tls, bp, int32('\n')) != 0) && !((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_EOF) != 0) { + for cond := true; cond; cond = c != int32('\n') && c != -int32(1) { + c = Xgetc(tls, f) + } + continue + } + if v4 = !(Xstrncmp(tls, bp, __ccgo_ts+1081, uint32(7)) != 0); v4 { + v1 = Int32FromUint8((**(**[256]uint8)(__ccgo_up(bp)))[int32(7)]) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _3 + _3: + } + if v4 && v2 != 0 { + p = Xstrstr(tls, bp, __ccgo_ts+1089) + if p != 0 && BoolInt32(uint32(**(**uint8)(__ccgo_up(p + 6)))-uint32('0') < uint32(10)) != 0 { + p = p + uintptr(6) + x = Xstrtoul(tls, p, bp+656, int32(10)) + if **(**uintptr)(__ccgo_up(bp + 656)) != p { + if x > uint32(15) { + v5 = uint32(15) + } else { + v5 = x + } + (*Tresolvconf)(unsafe.Pointer(conf)).Fndots = v5 + } + } + p = Xstrstr(tls, bp, __ccgo_ts+1096) + if p != 0 && BoolInt32(uint32(**(**uint8)(__ccgo_up(p + 9)))-uint32('0') < uint32(10)) != 0 { + p = p + uintptr(9) + x1 = Xstrtoul(tls, p, bp+656, int32(10)) + if **(**uintptr)(__ccgo_up(bp + 656)) != p { + if x1 > uint32(10) { + v5 = uint32(10) + } else { + v5 = x1 + } + (*Tresolvconf)(unsafe.Pointer(conf)).Fattempts = v5 + } + } + p = Xstrstr(tls, bp, __ccgo_ts+1106) + if p != 0 && (BoolInt32(uint32(**(**uint8)(__ccgo_up(p + 8)))-uint32('0') < uint32(10)) != 0 || Int32FromUint8(**(**uint8)(__ccgo_up(p + 8))) == int32('.')) { + p = p + uintptr(8) + x2 = Xstrtoul(tls, p, bp+656, int32(10)) + if **(**uintptr)(__ccgo_up(bp + 656)) != p { + if x2 > uint32(60) { + v5 = uint32(60) + } else { + v5 = x2 + } + (*Tresolvconf)(unsafe.Pointer(conf)).Ftimeout = v5 + } + } + continue + } + if v4 = !(Xstrncmp(tls, bp, __ccgo_ts+1115, uint32(10)) != 0); v4 { + v1 = Int32FromUint8((**(**[256]uint8)(__ccgo_up(bp)))[int32(10)]) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _10 + _10: + } + if v4 && v2 != 0 { + if nns >= int32(MAXNS) { + continue + } + p = bp + uintptr(11) + for { + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(p))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _15 + _15: + if !(v2 != 0) { + break + } + goto _12 + _12: + ; + p = p + 1 + } + **(**uintptr)(__ccgo_up(bp + 656)) = p + for { + if v4 = **(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 656)))) != 0; v4 { + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 656))))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _19 + _19: + } + if !(v4 && !(v2 != 0)) { + break + } + goto _16 + _16: + ; + **(**uintptr)(__ccgo_up(bp + 656)) = **(**uintptr)(__ccgo_up(bp + 656)) + 1 + } + **(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 656)))) = uint8(0) + if X__lookup_ipliteral(tls, conf+uintptr(nns)*28, p, PF_UNSPEC) > 0 { + nns = nns + 1 + } + continue + } + if !(search != 0) { + continue + } + if v4 = Xstrncmp(tls, bp, __ccgo_ts+1126, uint32(6)) != 0 && Xstrncmp(tls, bp, __ccgo_ts+1133, uint32(6)) != 0; !v4 { + v1 = Int32FromUint8((**(**[256]uint8)(__ccgo_up(bp)))[int32(6)]) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _23 + _23: + } + if v4 || !(v2 != 0) { + continue + } + p = bp + uintptr(7) + for { + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(p))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _28 + _28: + if !(v2 != 0) { + break + } + goto _25 + _25: + ; + p = p + 1 + } + l = _strlen(tls, p) + /* This can never happen anyway with chosen buffer sizes. */ + if l >= search_sz { + continue + } + _memcpy(tls, search, p, l+uint32(1)) + } + X__fclose_ca(tls, f) + goto no_resolv_conf +no_resolv_conf: + ; + if !(nns != 0) { + X__lookup_ipliteral(tls, conf, __ccgo_ts+1140, PF_UNSPEC) + nns = int32(1) + } + (*Tresolvconf)(unsafe.Pointer(conf)).Fnns = Uint32FromInt32(nns) + return 0 +} + +func Xsend(tls *TLS, fd int32, buf uintptr, len1 Tsize_t, flags int32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v len1=%v flags=%v, (%v:)", tls, fd, buf, len1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xsendto(tls, fd, buf, len1, flags, uintptr(0), uint32(0)) +} + +func Xsendmmsg(tls *TLS, fd int32, msgvec uintptr, vlen uint32, flags uint32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v msgvec=%v vlen=%v flags=%v, (%v:)", tls, fd, msgvec, vlen, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(___syscall_cp(tls, int32(SYS_sendmmsg), fd, int32(msgvec), Int32FromUint32(vlen), Int32FromUint32(flags), 0, 0))) +} + +func Xsendmsg(tls *TLS, fd int32, msg uintptr, flags int32) (r1 Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v msg=%v flags=%v, (%v:)", tls, fd, msg, flags, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v1, v8 int32 + var v2, v3, v4, v5, v6, v7 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _ = r, v1, v2, v3, v4, v5, v6, v7, v8 + v1 = int32(SYS_sendmsg) + _ = int32(__SC_sendmsg) + v2 = fd + v3 = int32(msg) + v4 = flags + v5 = int32(Int32FromInt32(0)) + v6 = int32(Int32FromInt32(0)) + v7 = int32(Int32FromInt32(0)) + if int32(1) != 0 { + r = ___syscall_cp(tls, v1, v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, v1, v2, v3, v4, v5, v6, v7) + } + if r != int32(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _9 + } + v8 = r + goto _9 +_9: + return X__syscall_ret(tls, Uint32FromInt32(v8)) +} + +func Xsendto(tls *TLS, fd int32, buf uintptr, len1 Tsize_t, flags int32, addr uintptr, alen Tsocklen_t) (r1 Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v len1=%v flags=%v addr=%v alen=%v, (%v:)", tls, fd, buf, len1, flags, addr, alen, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v1, v8 int32 + var v2, v3, v4, v5, v6, v7 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _ = r, v1, v2, v3, v4, v5, v6, v7, v8 + v1 = int32(SYS_sendto) + _ = int32(__SC_sendto) + v2 = fd + v3 = int32(buf) + v4 = Int32FromUint32(len1) + v5 = flags + v6 = int32(addr) + v7 = Int32FromUint32(alen) + if int32(1) != 0 { + r = ___syscall_cp(tls, v1, v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, v1, v2, v3, v4, v5, v6, v7) + } + if r != int32(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _9 + } + v8 = r + goto _9 +_9: + return X__syscall_ret(tls, Uint32FromInt32(v8)) +} + +func Xendservent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } +} + +func Xsetservent(tls *TLS, stayopen int32) { + if __ccgo_strace { + trc("tls=%v stayopen=%v, (%v:)", tls, stayopen, origin(2)) + } +} + +func Xgetservent(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(0) +} + +func Xsetsockopt(tls *TLS, fd int32, level int32, optname int32, optval uintptr, optlen Tsocklen_t) (r2 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v level=%v optname=%v optval=%v optlen=%v, (%v:)", tls, fd, level, optname, optval, optlen, origin(2)) + defer func() { trc("-> %v", r2) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var r, r1, v1, v8 int32 + var s Ttime_t + var tv uintptr + var us Tsuseconds_t + var v10 uint64 + var v2, v3, v4, v5, v6, v7 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = r, r1, s, tv, us, v1, v10, v2, v3, v4, v5, v6, v7, v8 + v1 = int32(SYS_setsockopt) + _ = int32(__SC_setsockopt) + v2 = fd + v3 = level + v4 = optname + v5 = int32(optval) + v6 = Int32FromUint32(optlen) + v7 = int32(Int32FromInt32(0)) + if 0 != 0 { + r = ___syscall_cp(tls, v1, v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, v1, v2, v3, v4, v5, v6, v7) + } + if r != int32(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _9 + } + v8 = r + goto _9 +_9: + r1 = v8 + if r1 == -int32(ENOPROTOOPT) { + switch level { + case int32(SOL_SOCKET): + switch optname { + case int32(SO_RCVTIMEO): + fallthrough + case int32(SO_SNDTIMEO): + if false { + break + } + if optlen < uint32(16) { + return X__syscall_ret(tls, Uint32FromInt32(-Int32FromInt32(EINVAL))) + } + tv = optval + s = (*Ttimeval)(unsafe.Pointer(tv)).Ftv_sec + us = (*Ttimeval)(unsafe.Pointer(tv)).Ftv_usec + if !!((Uint64FromInt64(s)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) { + return X__syscall_ret(tls, Uint32FromInt32(-Int32FromInt32(EOPNOTSUPP))) + } + if optname == int32(SO_RCVTIMEO) { + optname = int32(SO_RCVTIMEO_OLD) + } + if optname == int32(SO_SNDTIMEO) { + optname = int32(SO_SNDTIMEO_OLD) + } + if !((Uint64FromInt64(us)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) { + v10 = Uint64FromInt64(us) + } else { + v10 = uint64(0x7fffffff) + (0+Uint64FromInt64(us))>>int32(63) + } + *(*[2]int32)(unsafe.Pointer(bp)) = [2]int32{ + 0: int32(s), + 1: int32(Int32FromUint64(v10)), + } + v1 = int32(SYS_setsockopt) + _ = int32(__SC_setsockopt) + v2 = fd + v3 = level + v4 = optname + v5 = int32(bp) + v6 = Int32FromUint32(Uint32FromInt32(2) * Uint32FromInt64(4)) + v7 = int32(Int32FromInt32(0)) + if 0 != 0 { + r = ___syscall_cp(tls, v1, v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, v1, v2, v3, v4, v5, v6, v7) + } + if r != int32(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _19 + } + v8 = r + goto _19 + _19: + r1 = v8 + case int32(SO_TIMESTAMP): + fallthrough + case int32(SO_TIMESTAMPNS): + if false { + break + } + if optname == int32(SO_TIMESTAMP) { + optname = int32(SO_TIMESTAMP_OLD) + } + if optname == int32(SO_TIMESTAMPNS) { + optname = int32(SO_TIMESTAMPNS_OLD) + } + v1 = int32(SYS_setsockopt) + _ = int32(__SC_setsockopt) + v2 = fd + v3 = level + v4 = optname + v5 = int32(optval) + v6 = Int32FromUint32(optlen) + v7 = int32(Int32FromInt32(0)) + if 0 != 0 { + r = ___syscall_cp(tls, v1, v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, v1, v2, v3, v4, v5, v6, v7) + } + if r != int32(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _28 + } + v8 = r + goto _28 + _28: + r1 = v8 + break + } + } + } + return X__syscall_ret(tls, Uint32FromInt32(r1)) +} + +func Xshutdown(tls *TLS, fd int32, how int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v how=%v, (%v:)", tls, fd, how, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v1, v8 int32 + var v2, v3, v4, v5, v6, v7 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _ = r, v1, v2, v3, v4, v5, v6, v7, v8 + v1 = int32(SYS_shutdown) + _ = int32(__SC_shutdown) + v2 = fd + v3 = how + v4 = int32(Int32FromInt32(0)) + v5 = int32(Int32FromInt32(0)) + v6 = int32(Int32FromInt32(0)) + v7 = int32(Int32FromInt32(0)) + if 0 != 0 { + r = ___syscall_cp(tls, v1, v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, v1, v2, v3, v4, v5, v6, v7) + } + if r != int32(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _9 + } + v8 = r + goto _9 +_9: + return X__syscall_ret(tls, Uint32FromInt32(v8)) +} + +func Xsockatmark(tls *TLS, s int32) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var _ /* ret at bp+0 */ int32 + if Xioctl(tls, s, int32(SIOCATMARK), VaList(bp+16, bp)) < 0 { + return -int32(1) + } + return **(**int32)(__ccgo_up(bp)) +} + +func Xsocket(tls *TLS, domain int32, type1 int32, protocol int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v domain=%v type1=%v protocol=%v, (%v:)", tls, domain, type1, protocol, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, s, v1, v10, v17, v8 int32 + var v11, v12, v13, v14, v15, v16, v2, v3, v4, v5, v6, v7 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = r, s, v1, v10, v11, v12, v13, v14, v15, v16, v17, v2, v3, v4, v5, v6, v7, v8 + v1 = int32(SYS_socket) + _ = int32(__SC_socket) + v2 = domain + v3 = type1 + v4 = protocol + v5 = int32(Int32FromInt32(0)) + v6 = int32(Int32FromInt32(0)) + v7 = int32(Int32FromInt32(0)) + if 0 != 0 { + r = ___syscall_cp(tls, v1, v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, v1, v2, v3, v4, v5, v6, v7) + } + if r != int32(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _9 + } + v8 = r + goto _9 +_9: + s = v8 + if (s == -int32(EINVAL) || s == -int32(EPROTONOSUPPORT)) && type1&(Int32FromInt32(SOCK_CLOEXEC)|Int32FromInt32(SOCK_NONBLOCK)) != 0 { + v10 = int32(SYS_socket) + _ = int32(__SC_socket) + v11 = domain + v12 = int32(type1 & ^(Int32FromInt32(SOCK_CLOEXEC) | Int32FromInt32(SOCK_NONBLOCK))) + v13 = protocol + v14 = int32(Int32FromInt32(0)) + v15 = int32(Int32FromInt32(0)) + v16 = int32(Int32FromInt32(0)) + if 0 != 0 { + r = ___syscall_cp(tls, v10, v11, v12, v13, v14, v15, v16) + } else { + r = X__syscall6(tls, v10, v11, v12, v13, v14, v15, v16) + } + if r != int32(-Int32FromInt32(ENOSYS)) { + v17 = r + goto _18 + } + v17 = r + goto _18 + _18: + s = v17 + if s < 0 { + return X__syscall_ret(tls, Uint32FromInt32(s)) + } + if type1&int32(SOCK_CLOEXEC) != 0 { + X__syscall3(tls, int32(SYS_fcntl64), s, int32(Int32FromInt32(F_SETFD)), int32(Int32FromInt32(FD_CLOEXEC))) + } + if type1&int32(SOCK_NONBLOCK) != 0 { + X__syscall3(tls, int32(SYS_fcntl64), s, int32(Int32FromInt32(F_SETFL)), int32(Int32FromInt32(O_NONBLOCK))) + } + } + return X__syscall_ret(tls, Uint32FromInt32(s)) +} + +func Xsocketpair(tls *TLS, domain int32, type1 int32, protocol int32, fd uintptr) (r2 int32) { + if __ccgo_strace { + trc("tls=%v domain=%v type1=%v protocol=%v fd=%v, (%v:)", tls, domain, type1, protocol, fd, origin(2)) + defer func() { trc("-> %v", r2) }() + } + var r, r1, v1, v10, v17, v8 int32 + var v11, v12, v13, v14, v15, v16, v2, v3, v4, v5, v6, v7 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = r, r1, v1, v10, v11, v12, v13, v14, v15, v16, v17, v2, v3, v4, v5, v6, v7, v8 + v1 = int32(SYS_socketpair) + _ = int32(__SC_socketpair) + v2 = domain + v3 = type1 + v4 = protocol + v5 = int32(fd) + v6 = int32(Int32FromInt32(0)) + v7 = int32(Int32FromInt32(0)) + if 0 != 0 { + r = ___syscall_cp(tls, v1, v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, v1, v2, v3, v4, v5, v6, v7) + } + if r != int32(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _9 + } + v8 = r + goto _9 +_9: + r1 = X__syscall_ret(tls, Uint32FromInt32(v8)) + if r1 < 0 && (**(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EINVAL) || **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EPROTONOSUPPORT)) && type1&(Int32FromInt32(SOCK_CLOEXEC)|Int32FromInt32(SOCK_NONBLOCK)) != 0 { + v10 = int32(SYS_socketpair) + _ = int32(__SC_socketpair) + v11 = domain + v12 = int32(type1 & ^(Int32FromInt32(SOCK_CLOEXEC) | Int32FromInt32(SOCK_NONBLOCK))) + v13 = protocol + v14 = int32(fd) + v15 = int32(Int32FromInt32(0)) + v16 = int32(Int32FromInt32(0)) + if 0 != 0 { + r = ___syscall_cp(tls, v10, v11, v12, v13, v14, v15, v16) + } else { + r = X__syscall6(tls, v10, v11, v12, v13, v14, v15, v16) + } + if r != int32(-Int32FromInt32(ENOSYS)) { + v17 = r + goto _18 + } + v17 = r + goto _18 + _18: + r1 = X__syscall_ret(tls, Uint32FromInt32(v17)) + if r1 < 0 { + return r1 + } + if type1&int32(SOCK_CLOEXEC) != 0 { + X__syscall3(tls, int32(SYS_fcntl64), int32(**(**int32)(__ccgo_up(fd))), int32(Int32FromInt32(F_SETFD)), int32(Int32FromInt32(FD_CLOEXEC))) + X__syscall3(tls, int32(SYS_fcntl64), int32(**(**int32)(__ccgo_up(fd + 1*4))), int32(Int32FromInt32(F_SETFD)), int32(Int32FromInt32(FD_CLOEXEC))) + } + if type1&int32(SOCK_NONBLOCK) != 0 { + X__syscall3(tls, int32(SYS_fcntl64), int32(**(**int32)(__ccgo_up(fd))), int32(Int32FromInt32(F_SETFL)), int32(Int32FromInt32(O_NONBLOCK))) + X__syscall3(tls, int32(SYS_fcntl64), int32(**(**int32)(__ccgo_up(fd + 1*4))), int32(Int32FromInt32(F_SETFL)), int32(Int32FromInt32(O_NONBLOCK))) + } + } + return r1 +} + +const SHADOW = "/etc/shadow" + +type Tgroup = struct { + Fgr_name uintptr + Fgr_passwd uintptr + Fgr_gid Tgid_t + Fgr_mem uintptr +} + +type Tspwd = struct { + Fsp_namp uintptr + Fsp_pwdp uintptr + Fsp_lstchg int32 + Fsp_min int32 + Fsp_max int32 + Fsp_warn int32 + Fsp_inact int32 + Fsp_expire int32 + Fsp_flag uint32 +} + +func Xfgetgrent(tls *TLS, f uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* nmem at bp+8 */ Tsize_t + var _ /* res at bp+0 */ uintptr + var _ /* size at bp+4 */ Tsize_t + **(**Tsize_t)(__ccgo_up(bp + 4)) = uint32(0) + **(**Tsize_t)(__ccgo_up(bp + 8)) = uint32(0) + X__getgrent_a(tls, f, uintptr(unsafe.Pointer(&_gr)), uintptr(unsafe.Pointer(&_line1)), bp+4, uintptr(unsafe.Pointer(&_mem)), bp+8, bp) + return **(**uintptr)(__ccgo_up(bp)) +} + +var _line1 uintptr + +var _mem uintptr + +var _gr Tgroup + +func Xfgetpwent(tls *TLS, f uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* res at bp+4 */ uintptr + var _ /* size at bp+0 */ Tsize_t + **(**Tsize_t)(__ccgo_up(bp)) = uint32(0) + X__getpwent_a(tls, f, uintptr(unsafe.Pointer(&_pw)), uintptr(unsafe.Pointer(&_line2)), bp, bp+4) + return **(**uintptr)(__ccgo_up(bp + 4)) +} + +var _line2 uintptr + +var _pw Tpasswd + +const GETGRBYGID = 3 +const GETGRBYNAME = 2 +const GETINITGR = 15 +const GETPWBYNAME = 0 +const GETPWBYUID = 1 +const GRFOUND = 1 +const GRGID = 4 +const GRMEMCNT = 5 +const GRNAMELEN = 2 +const GRPASSWDLEN = 3 +const GRVERSION = 0 +const GR_LEN = 6 +const INITGRFOUND = 1 +const INITGRNGRPS = 2 +const INITGRVERSION = 0 +const INITGR_LEN = 3 +const NSCDVERSION = 2 +const PWDIRLEN = 7 +const PWFOUND = 1 +const PWGECOSLEN = 6 +const PWGID = 5 +const PWNAMELEN = 2 +const PWPASSWDLEN = 3 +const PWSHELLLEN = 8 +const PWUID = 4 +const PWVERSION = 0 +const PW_LEN = 9 +const REQKEYLEN = 2 +const REQTYPE = 1 +const REQVERSION = 0 +const REQ_LEN = 3 + +func _itoa1(tls *TLS, p uintptr, x Tuint32_t) (r uintptr) { + var v1 uintptr + _ = v1 + // number of digits in a uint32_t + NUL + p = p + uintptr(11) + p = p - 1 + v1 = p + **(**uint8)(__ccgo_up(v1)) = uint8(0) + for cond := true; cond; cond = x != 0 { + p = p - 1 + v1 = p + **(**uint8)(__ccgo_up(v1)) = uint8(uint32('0') + x%uint32(10)) + x = x / uint32(10) + } + return p +} + +func X__getgr_a(tls *TLS, name uintptr, gid Tgid_t, gr uintptr, buf uintptr, size uintptr, mem uintptr, nmem uintptr, res uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v gid=%v gr=%v buf=%v size=%v mem=%v nmem=%v res=%v, (%v:)", tls, name, gid, gr, buf, size, mem, nmem, res, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + var f, key, ptr, tmp, tmp1 uintptr + var grlist_len, len1 Tsize_t + var i, req, v10 Tint32_t + var rv, v1 int32 + var v5, v6 Tuint32_t + var _ /* cs at bp+0 */ int32 + var _ /* gidbuf at bp+28 */ [11]uint8 + var _ /* groupbuf at bp+4 */ [6]Tint32_t + var _ /* name_len at bp+44 */ Tuint32_t + var _ /* swap at bp+40 */ int32 + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = f, grlist_len, i, key, len1, ptr, req, rv, tmp, tmp1, v1, v10, v5, v6 + rv = 0 + **(**uintptr)(__ccgo_up(res)) = uintptr(0) + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp) + f = Xfopen(tls, __ccgo_ts+1150, __ccgo_ts+315) + if !(f != 0) { + rv = **(**int32)(__ccgo_up(X__errno_location(tls))) + goto done + } + for { + v1 = X__getgrent_a(tls, f, gr, buf, size, mem, nmem, res) + rv = v1 + if !(!(v1 != 0) && **(**uintptr)(__ccgo_up(res)) != 0) { + break + } + if name != 0 && !(Xstrcmp(tls, name, (*Tgroup)(unsafe.Pointer(**(**uintptr)(__ccgo_up(res)))).Fgr_name) != 0) || !(name != 0) && (*Tgroup)(unsafe.Pointer(**(**uintptr)(__ccgo_up(res)))).Fgr_gid == gid { + break + } + } + Xfclose(tls, f) + if !(**(**uintptr)(__ccgo_up(res)) != 0) && (rv == 0 || rv == int32(ENOENT) || rv == int32(ENOTDIR)) { + if name != 0 { + v1 = int32(GETGRBYNAME) + } else { + v1 = int32(GETGRBYGID) + } + req = v1 + **(**[6]Tint32_t)(__ccgo_up(bp + 4)) = [6]Tint32_t{} + len1 = uint32(0) + grlist_len = uint32(0) + **(**[11]uint8)(__ccgo_up(bp + 28)) = [11]uint8{} + **(**int32)(__ccgo_up(bp + 40)) = 0 + if name != 0 { + key = name + } else { + if gid < uint32(0) || gid > uint32(0xffffffff) { + rv = 0 + goto done + } + key = _itoa1(tls, bp+28, gid) + } + f = X__nscd_query(tls, req, key, bp+4, uint32(24), bp+40) + if !(f != 0) { + rv = **(**int32)(__ccgo_up(X__errno_location(tls))) + goto done + } + if !((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRFOUND)] != 0) { + rv = 0 + goto cleanup_f + } + if !((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRNAMELEN)] != 0) || !((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRPASSWDLEN)] != 0) { + rv = int32(EIO) + goto cleanup_f + } + if Uint32FromInt32((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRNAMELEN)]) > uint32(0xffffffff)-Uint32FromInt32((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRPASSWDLEN)]) { + rv = int32(ENOMEM) + goto cleanup_f + } + len1 = Uint32FromInt32((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRNAMELEN)] + (**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRPASSWDLEN)]) + i = 0 + for { + if !(i < (**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRMEMCNT)]) { + break + } + if Xfread(tls, bp+44, uint32(4), uint32(1), f) < uint32(1) { + if Xferror(tls, f) != 0 { + v1 = **(**int32)(__ccgo_up(X__errno_location(tls))) + } else { + v1 = int32(EIO) + } + rv = v1 + goto cleanup_f + } + if **(**int32)(__ccgo_up(bp + 40)) != 0 { + v5 = **(**Tuint32_t)(__ccgo_up(bp + 44)) + v6 = v5>>int32(24) | v5>>int32(8)&uint32(0xff00) | v5< uint32(0xffffffff)-grlist_len || **(**Tuint32_t)(__ccgo_up(bp + 44)) > uint32(0xffffffff)-len1 { + rv = int32(ENOMEM) + goto cleanup_f + } + len1 = len1 + **(**Tuint32_t)(__ccgo_up(bp + 44)) + grlist_len = grlist_len + **(**Tuint32_t)(__ccgo_up(bp + 44)) + goto _3 + _3: + ; + i = i + 1 + } + if len1 > **(**Tsize_t)(__ccgo_up(size)) || !(**(**uintptr)(__ccgo_up(buf)) != 0) { + tmp = Xrealloc(tls, **(**uintptr)(__ccgo_up(buf)), len1) + if !(tmp != 0) { + rv = **(**int32)(__ccgo_up(X__errno_location(tls))) + goto cleanup_f + } + **(**uintptr)(__ccgo_up(buf)) = tmp + **(**Tsize_t)(__ccgo_up(size)) = len1 + } + if !(Xfread(tls, **(**uintptr)(__ccgo_up(buf)), len1, uint32(1), f) != 0) { + if Xferror(tls, f) != 0 { + v1 = **(**int32)(__ccgo_up(X__errno_location(tls))) + } else { + v1 = int32(EIO) + } + rv = v1 + goto cleanup_f + } + if Uint32FromInt32((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRMEMCNT)]+int32(1)) > **(**Tsize_t)(__ccgo_up(nmem)) { + if Uint32FromInt32((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRMEMCNT)]+int32(1)) > Uint32FromUint32(0xffffffff)/Uint32FromInt64(4) { + rv = int32(ENOMEM) + goto cleanup_f + } + tmp1 = Xrealloc(tls, **(**uintptr)(__ccgo_up(mem)), Uint32FromInt32((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRMEMCNT)]+Int32FromInt32(1))*uint32(4)) + if !(tmp1 != 0) { + rv = **(**int32)(__ccgo_up(X__errno_location(tls))) + goto cleanup_f + } + **(**uintptr)(__ccgo_up(mem)) = tmp1 + **(**Tsize_t)(__ccgo_up(nmem)) = Uint32FromInt32((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRMEMCNT)] + int32(1)) + } + if (**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRMEMCNT)] != 0 { + **(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(mem)))) = **(**uintptr)(__ccgo_up(buf)) + uintptr((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRNAMELEN)]) + uintptr((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRPASSWDLEN)]) + ptr = **(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(mem)))) + i = Int32FromInt32(0) + for { + if !(ptr != **(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(mem))))+uintptr(grlist_len)) { + break + } + if !(**(**uint8)(__ccgo_up(ptr)) != 0) { + i = i + 1 + v10 = i + **(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(mem)) + uintptr(v10)*4)) = ptr + uintptr(1) + } + goto _9 + _9: + ; + ptr = ptr + 1 + } + **(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(mem)) + uintptr(i)*4)) = uintptr(0) + if i != (**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRMEMCNT)] { + rv = int32(EIO) + goto cleanup_f + } + } else { + **(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(mem)))) = uintptr(0) + } + (*Tgroup)(unsafe.Pointer(gr)).Fgr_name = **(**uintptr)(__ccgo_up(buf)) + (*Tgroup)(unsafe.Pointer(gr)).Fgr_passwd = (*Tgroup)(unsafe.Pointer(gr)).Fgr_name + uintptr((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRNAMELEN)]) + (*Tgroup)(unsafe.Pointer(gr)).Fgr_gid = Uint32FromInt32((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRGID)]) + (*Tgroup)(unsafe.Pointer(gr)).Fgr_mem = **(**uintptr)(__ccgo_up(mem)) + if **(**uint8)(__ccgo_up((*Tgroup)(unsafe.Pointer(gr)).Fgr_passwd + uintptr(-Int32FromInt32(1)))) != 0 || **(**uint8)(__ccgo_up((*Tgroup)(unsafe.Pointer(gr)).Fgr_passwd + uintptr((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRPASSWDLEN)]-int32(1)))) != 0 { + rv = int32(EIO) + goto cleanup_f + } + if name != 0 && Xstrcmp(tls, name, (*Tgroup)(unsafe.Pointer(gr)).Fgr_name) != 0 || !(name != 0) && gid != (*Tgroup)(unsafe.Pointer(gr)).Fgr_gid { + rv = int32(EIO) + goto cleanup_f + } + **(**uintptr)(__ccgo_up(res)) = gr + goto cleanup_f + cleanup_f: + ; + Xfclose(tls, f) + goto done + } + goto done +done: + ; + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp)), uintptr(0)) + if rv != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = rv + } + return rv +} + +func _getgr_r(tls *TLS, name uintptr, gid Tgid_t, gr uintptr, buf uintptr, size Tsize_t, res uintptr) (r int32) { + bp := tls.Alloc(32) + defer tls.Free(32) + var i Tsize_t + var rv int32 + var _ /* cs at bp+16 */ int32 + var _ /* len at bp+4 */ Tsize_t + var _ /* line at bp+0 */ uintptr + var _ /* mem at bp+8 */ uintptr + var _ /* nmem at bp+12 */ Tsize_t + _, _ = i, rv + **(**uintptr)(__ccgo_up(bp)) = uintptr(0) + **(**Tsize_t)(__ccgo_up(bp + 4)) = uint32(0) + **(**uintptr)(__ccgo_up(bp + 8)) = uintptr(0) + **(**Tsize_t)(__ccgo_up(bp + 12)) = uint32(0) + rv = 0 + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp+16) + rv = X__getgr_a(tls, name, gid, gr, bp, bp+4, bp+8, bp+12, res) + if **(**uintptr)(__ccgo_up(res)) != 0 && size < **(**Tsize_t)(__ccgo_up(bp + 4))+(**(**Tsize_t)(__ccgo_up(bp + 12))+uint32(1))*uint32(4)+uint32(32) { + **(**uintptr)(__ccgo_up(res)) = uintptr(0) + rv = int32(ERANGE) + } + if **(**uintptr)(__ccgo_up(res)) != 0 { + buf = buf + uintptr((uint32(16)-uint32(buf))%uint32(16)) + (*Tgroup)(unsafe.Pointer(gr)).Fgr_mem = buf + buf = buf + uintptr((**(**Tsize_t)(__ccgo_up(bp + 12))+uint32(1))*uint32(4)) + _memcpy(tls, buf, **(**uintptr)(__ccgo_up(bp)), **(**Tsize_t)(__ccgo_up(bp + 4))) + (*Tgroup)(unsafe.Pointer(gr)).Fgr_name = uintptr(int32((*Tgroup)(unsafe.Pointer(gr)).Fgr_name)-int32(**(**uintptr)(__ccgo_up(bp)))) + buf + (*Tgroup)(unsafe.Pointer(gr)).Fgr_passwd = uintptr(int32((*Tgroup)(unsafe.Pointer(gr)).Fgr_passwd)-int32(**(**uintptr)(__ccgo_up(bp)))) + buf + i = uint32(0) + for { + if !(**(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + uintptr(i)*4)) != 0) { + break + } + **(**uintptr)(__ccgo_up((*Tgroup)(unsafe.Pointer(gr)).Fgr_mem + uintptr(i)*4)) = uintptr(int32(**(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + uintptr(i)*4)))-int32(**(**uintptr)(__ccgo_up(bp)))) + buf + goto _1 + _1: + ; + i = i + 1 + } + **(**uintptr)(__ccgo_up((*Tgroup)(unsafe.Pointer(gr)).Fgr_mem + uintptr(i)*4)) = uintptr(0) + } + Xfree(tls, **(**uintptr)(__ccgo_up(bp + 8))) + Xfree(tls, **(**uintptr)(__ccgo_up(bp))) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 16)), uintptr(0)) + if rv != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = rv + } + return rv +} + +func Xgetgrnam_r(tls *TLS, name uintptr, gr uintptr, buf uintptr, size Tsize_t, res uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v gr=%v buf=%v size=%v res=%v, (%v:)", tls, name, gr, buf, size, res, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _getgr_r(tls, name, uint32(0), gr, buf, size, res) +} + +func Xgetgrgid_r(tls *TLS, gid Tgid_t, gr uintptr, buf uintptr, size Tsize_t, res uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v gid=%v gr=%v buf=%v size=%v res=%v, (%v:)", tls, gid, gr, buf, size, res, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _getgr_r(tls, uintptr(0), gid, gr, buf, size, res) +} + +var _f1 uintptr +var _line3 uintptr +var _mem1 uintptr +var _gr1 Tgroup + +func Xsetgrent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + if _f1 != 0 { + Xfclose(tls, _f1) + } + _f1 = uintptr(0) +} + +func Xgetgrent(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* nmem at bp+8 */ Tsize_t + var _ /* res at bp+0 */ uintptr + var _ /* size at bp+4 */ Tsize_t + **(**Tsize_t)(__ccgo_up(bp + 4)) = uint32(0) + **(**Tsize_t)(__ccgo_up(bp + 8)) = uint32(0) + if !(_f1 != 0) { + _f1 = Xfopen(tls, __ccgo_ts+1150, __ccgo_ts+315) + } + if !(_f1 != 0) { + return uintptr(0) + } + X__getgrent_a(tls, _f1, uintptr(unsafe.Pointer(&_gr1)), uintptr(unsafe.Pointer(&_line3)), bp+4, uintptr(unsafe.Pointer(&_mem1)), bp+8, bp) + return **(**uintptr)(__ccgo_up(bp)) +} + +func Xgetgrgid(tls *TLS, gid Tgid_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v gid=%v, (%v:)", tls, gid, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* nmem at bp+8 */ Tsize_t + var _ /* res at bp+0 */ uintptr + var _ /* size at bp+4 */ Tsize_t + **(**Tsize_t)(__ccgo_up(bp + 4)) = uint32(0) + **(**Tsize_t)(__ccgo_up(bp + 8)) = uint32(0) + X__getgr_a(tls, uintptr(0), gid, uintptr(unsafe.Pointer(&_gr1)), uintptr(unsafe.Pointer(&_line3)), bp+4, uintptr(unsafe.Pointer(&_mem1)), bp+8, bp) + return **(**uintptr)(__ccgo_up(bp)) +} + +func Xgetgrnam(tls *TLS, name uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* nmem at bp+8 */ Tsize_t + var _ /* res at bp+0 */ uintptr + var _ /* size at bp+4 */ Tsize_t + **(**Tsize_t)(__ccgo_up(bp + 4)) = uint32(0) + **(**Tsize_t)(__ccgo_up(bp + 8)) = uint32(0) + X__getgr_a(tls, name, uint32(0), uintptr(unsafe.Pointer(&_gr1)), uintptr(unsafe.Pointer(&_line3)), bp+4, uintptr(unsafe.Pointer(&_mem1)), bp+8, bp) + return **(**uintptr)(__ccgo_up(bp)) +} + +func Xendgrent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + Xsetgrent(tls) +} + +func _atou(tls *TLS, s uintptr) (r uint32) { + var x uint32 + _ = x + x = uint32(0) + for { + if !(Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(s)))))-int32('0')) < uint32(10)) { + break + } + x = uint32(10)*x + Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(s)))))-Int32FromUint8('0')) + goto _1 + _1: + ; + **(**uintptr)(__ccgo_up(s)) = **(**uintptr)(__ccgo_up(s)) + 1 + } + return x +} + +func X__getgrent_a(tls *TLS, f uintptr, gr uintptr, line uintptr, size uintptr, mem uintptr, nmem uintptr, res uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v gr=%v line=%v size=%v mem=%v nmem=%v res=%v, (%v:)", tls, f, gr, line, size, mem, nmem, res, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var i, v13 Tsize_t + var l, v2 Tssize_t + var mems, v4 uintptr + var rv, v3 int32 + var _ /* cs at bp+4 */ int32 + var _ /* s at bp+0 */ uintptr + _, _, _, _, _, _, _, _ = i, l, mems, rv, v13, v2, v3, v4 + rv = 0 + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp+4) + for { + v2 = Xgetline(tls, line, size, f) + l = v2 + if v2 < 0 { + if Xferror(tls, f) != 0 { + v3 = **(**int32)(__ccgo_up(X__errno_location(tls))) + } else { + v3 = 0 + } + rv = v3 + Xfree(tls, **(**uintptr)(__ccgo_up(line))) + **(**uintptr)(__ccgo_up(line)) = uintptr(0) + gr = uintptr(0) + goto end + } + **(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(line)) + uintptr(l-int32(1)))) = uint8(0) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(line)) + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + (*Tgroup)(unsafe.Pointer(gr)).Fgr_name = v4 + v4 = Xstrchr(tls, **(**uintptr)(__ccgo_up(bp)), int32(':')) + **(**uintptr)(__ccgo_up(bp)) = v4 + if !(v4 != 0) { + goto _1 + } + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + **(**uint8)(__ccgo_up(v4)) = uint8(0) + (*Tgroup)(unsafe.Pointer(gr)).Fgr_passwd = **(**uintptr)(__ccgo_up(bp)) + v4 = Xstrchr(tls, **(**uintptr)(__ccgo_up(bp)), int32(':')) + **(**uintptr)(__ccgo_up(bp)) = v4 + if !(v4 != 0) { + goto _1 + } + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + **(**uint8)(__ccgo_up(v4)) = uint8(0) + (*Tgroup)(unsafe.Pointer(gr)).Fgr_gid = _atou(tls, bp) + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp))))) != int32(':') { + goto _1 + } + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + **(**uint8)(__ccgo_up(v4)) = uint8(0) + mems = **(**uintptr)(__ccgo_up(bp)) + break + goto _1 + _1: + } + **(**Tsize_t)(__ccgo_up(nmem)) = BoolUint32(!!(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)))) != 0)) + for { + if !(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)))) != 0) { + break + } + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp))))) == int32(',') { + **(**Tsize_t)(__ccgo_up(nmem)) = **(**Tsize_t)(__ccgo_up(nmem)) + 1 + } + goto _10 + _10: + ; + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + } + Xfree(tls, **(**uintptr)(__ccgo_up(mem))) + **(**uintptr)(__ccgo_up(mem)) = Xcalloc(tls, uint32(4), **(**Tsize_t)(__ccgo_up(nmem))+uint32(1)) + if !(**(**uintptr)(__ccgo_up(mem)) != 0) { + rv = **(**int32)(__ccgo_up(X__errno_location(tls))) + Xfree(tls, **(**uintptr)(__ccgo_up(line))) + **(**uintptr)(__ccgo_up(line)) = uintptr(0) + gr = uintptr(0) + goto end + } + if **(**uint8)(__ccgo_up(mems)) != 0 { + **(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(mem)))) = mems + **(**uintptr)(__ccgo_up(bp)) = mems + i = Uint32FromInt32(0) + for { + if !(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)))) != 0) { + break + } + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp))))) == int32(',') { + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + **(**uint8)(__ccgo_up(v4)) = uint8(0) + i = i + 1 + v13 = i + **(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(mem)) + uintptr(v13)*4)) = **(**uintptr)(__ccgo_up(bp)) + } + goto _11 + _11: + ; + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + } + i = i + 1 + v13 = i + **(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(mem)) + uintptr(v13)*4)) = uintptr(0) + } else { + **(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(mem)))) = uintptr(0) + } + (*Tgroup)(unsafe.Pointer(gr)).Fgr_mem = **(**uintptr)(__ccgo_up(mem)) + goto end +end: + ; + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 4)), uintptr(0)) + **(**uintptr)(__ccgo_up(res)) = gr + if rv != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = rv + } + return rv +} + +func Xgetgrouplist(tls *TLS, user uintptr, gid Tgid_t, groups uintptr, ngroups uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v user=%v gid=%v groups=%v ngroups=%v, (%v:)", tls, user, gid, groups, ngroups, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var f, nscdbuf, v1 uintptr + var i, n, v9 Tssize_t + var nbytes Tsize_t + var nlim, ret, rv, v6 int32 + var v3, v4 Tuint32_t + var _ /* buf at bp+36 */ uintptr + var _ /* gr at bp+0 */ Tgroup + var _ /* mem at bp+40 */ uintptr + var _ /* nmem at bp+44 */ Tsize_t + var _ /* res at bp+16 */ uintptr + var _ /* resp at bp+24 */ [3]Tint32_t + var _ /* size at bp+48 */ Tsize_t + var _ /* swap at bp+20 */ int32 + _, _, _, _, _, _, _, _, _, _, _, _, _ = f, i, n, nbytes, nlim, nscdbuf, ret, rv, v1, v3, v4, v6, v9 + ret = -int32(1) + n = int32(1) + **(**int32)(__ccgo_up(bp + 20)) = 0 + nscdbuf = uintptr(0) + **(**uintptr)(__ccgo_up(bp + 36)) = uintptr(0) + **(**uintptr)(__ccgo_up(bp + 40)) = uintptr(0) + **(**Tsize_t)(__ccgo_up(bp + 44)) = uint32(0) + nlim = **(**int32)(__ccgo_up(ngroups)) + if nlim >= int32(1) { + v1 = groups + groups += 4 + **(**Tgid_t)(__ccgo_up(v1)) = gid + } + f = X__nscd_query(tls, int32(GETINITGR), user, bp+24, uint32(12), bp+20) + if !(f != 0) { + goto cleanup + } + if (**(**[3]Tint32_t)(__ccgo_up(bp + 24)))[int32(INITGRFOUND)] != 0 { + nscdbuf = Xcalloc(tls, Uint32FromInt32((**(**[3]Tint32_t)(__ccgo_up(bp + 24)))[int32(INITGRNGRPS)]), uint32(4)) + if !(nscdbuf != 0) { + goto cleanup + } + nbytes = uint32(4) * Uint32FromInt32((**(**[3]Tint32_t)(__ccgo_up(bp + 24)))[int32(INITGRNGRPS)]) + if nbytes != 0 && !(Xfread(tls, nscdbuf, nbytes, uint32(1), f) != 0) { + if !(Xferror(tls, f) != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EIO) + } + goto cleanup + } + if **(**int32)(__ccgo_up(bp + 20)) != 0 { + i = 0 + for { + if !(i < (**(**[3]Tint32_t)(__ccgo_up(bp + 24)))[int32(INITGRNGRPS)]) { + break + } + v3 = **(**Tuint32_t)(__ccgo_up(nscdbuf + uintptr(i)*4)) + v4 = v3>>int32(24) | v3>>int32(8)&uint32(0xff00) | v3< nlim { + v6 = -int32(1) + } else { + v6 = n + } + ret = v6 + **(**int32)(__ccgo_up(ngroups)) = n + goto cleanup +cleanup: + ; + if f != 0 { + Xfclose(tls, f) + } + Xfree(tls, nscdbuf) + Xfree(tls, **(**uintptr)(__ccgo_up(bp + 36))) + Xfree(tls, **(**uintptr)(__ccgo_up(bp + 40))) + return ret +} + +func _itoa2(tls *TLS, p uintptr, x Tuint32_t) (r uintptr) { + var v1 uintptr + _ = v1 + // number of digits in a uint32_t + NUL + p = p + uintptr(11) + p = p - 1 + v1 = p + **(**uint8)(__ccgo_up(v1)) = uint8(0) + for cond := true; cond; cond = x != 0 { + p = p - 1 + v1 = p + **(**uint8)(__ccgo_up(v1)) = uint8(uint32('0') + x%uint32(10)) + x = x / uint32(10) + } + return p +} + +func X__getpw_a(tls *TLS, name uintptr, uid Tuid_t, pw uintptr, buf uintptr, size uintptr, res uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v uid=%v pw=%v buf=%v size=%v res=%v, (%v:)", tls, name, uid, pw, buf, size, res, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var f, key, tmp uintptr + var len1 Tsize_t + var req Tint32_t + var rv, v1 int32 + var _ /* cs at bp+4 */ int32 + var _ /* passwdbuf at bp+8 */ [9]Tint32_t + var _ /* uidbuf at bp+44 */ [11]uint8 + _, _, _, _, _, _, _ = f, key, len1, req, rv, tmp, v1 + rv = 0 + **(**uintptr)(__ccgo_up(res)) = uintptr(0) + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp+4) + f = Xfopen(tls, __ccgo_ts+1161, __ccgo_ts+315) + if !(f != 0) { + rv = **(**int32)(__ccgo_up(X__errno_location(tls))) + goto done + } + for { + v1 = X__getpwent_a(tls, f, pw, buf, size, res) + rv = v1 + if !(!(v1 != 0) && **(**uintptr)(__ccgo_up(res)) != 0) { + break + } + if name != 0 && !(Xstrcmp(tls, name, (*Tpasswd)(unsafe.Pointer(**(**uintptr)(__ccgo_up(res)))).Fpw_name) != 0) || !(name != 0) && (*Tpasswd)(unsafe.Pointer(**(**uintptr)(__ccgo_up(res)))).Fpw_uid == uid { + break + } + } + Xfclose(tls, f) + if !(**(**uintptr)(__ccgo_up(res)) != 0) && (rv == 0 || rv == int32(ENOENT) || rv == int32(ENOTDIR)) { + if name != 0 { + v1 = GETPWBYNAME + } else { + v1 = int32(GETPWBYUID) + } + req = v1 + **(**[9]Tint32_t)(__ccgo_up(bp + 8)) = [9]Tint32_t{} + len1 = uint32(0) + **(**[11]uint8)(__ccgo_up(bp + 44)) = [11]uint8{} + if name != 0 { + key = name + } else { + /* uid outside of this range can't be queried with the + * nscd interface, but might happen if uid_t ever + * happens to be a larger type (this is not true as of + * now) + */ + if uid < uint32(0) || uid > uint32(0xffffffff) { + rv = 0 + goto done + } + key = _itoa2(tls, bp+44, uid) + } + *(*[1]int32)(unsafe.Pointer(bp)) = [1]int32{} + f = X__nscd_query(tls, req, key, bp+8, uint32(36), bp) + if !(f != 0) { + rv = **(**int32)(__ccgo_up(X__errno_location(tls))) + goto done + } + if !((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWFOUND)] != 0) { + rv = 0 + goto cleanup_f + } + /* A zero length response from nscd is invalid. We ignore + * invalid responses and just report an error, rather than + * trying to do something with them. + */ + if !((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWNAMELEN)] != 0) || !((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWPASSWDLEN)] != 0) || !((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWGECOSLEN)] != 0) || !((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWDIRLEN)] != 0) || !((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWSHELLLEN)] != 0) { + rv = int32(EIO) + goto cleanup_f + } + if Uint32FromInt32((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWNAMELEN)]|(**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWPASSWDLEN)]|(**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWGECOSLEN)]|(**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWDIRLEN)]|(**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWSHELLLEN)]) >= Uint32FromUint32(0xffffffff)/Uint32FromInt32(8) { + rv = int32(ENOMEM) + goto cleanup_f + } + len1 = Uint32FromInt32((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWNAMELEN)] + (**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWPASSWDLEN)] + (**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWGECOSLEN)] + (**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWDIRLEN)] + (**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWSHELLLEN)]) + if len1 > **(**Tsize_t)(__ccgo_up(size)) || !(**(**uintptr)(__ccgo_up(buf)) != 0) { + tmp = Xrealloc(tls, **(**uintptr)(__ccgo_up(buf)), len1) + if !(tmp != 0) { + rv = **(**int32)(__ccgo_up(X__errno_location(tls))) + goto cleanup_f + } + **(**uintptr)(__ccgo_up(buf)) = tmp + **(**Tsize_t)(__ccgo_up(size)) = len1 + } + if !(Xfread(tls, **(**uintptr)(__ccgo_up(buf)), len1, uint32(1), f) != 0) { + if Xferror(tls, f) != 0 { + v1 = **(**int32)(__ccgo_up(X__errno_location(tls))) + } else { + v1 = int32(EIO) + } + rv = v1 + goto cleanup_f + } + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_name = **(**uintptr)(__ccgo_up(buf)) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_passwd = (*Tpasswd)(unsafe.Pointer(pw)).Fpw_name + uintptr((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWNAMELEN)]) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_gecos = (*Tpasswd)(unsafe.Pointer(pw)).Fpw_passwd + uintptr((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWPASSWDLEN)]) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_dir = (*Tpasswd)(unsafe.Pointer(pw)).Fpw_gecos + uintptr((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWGECOSLEN)]) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_shell = (*Tpasswd)(unsafe.Pointer(pw)).Fpw_dir + uintptr((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWDIRLEN)]) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_uid = Uint32FromInt32((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWUID)]) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_gid = Uint32FromInt32((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWGID)]) + /* Don't assume that nscd made sure to null terminate strings. + * It's supposed to, but malicious nscd should be ignored + * rather than causing a crash. + */ + if **(**uint8)(__ccgo_up((*Tpasswd)(unsafe.Pointer(pw)).Fpw_passwd + uintptr(-Int32FromInt32(1)))) != 0 || **(**uint8)(__ccgo_up((*Tpasswd)(unsafe.Pointer(pw)).Fpw_gecos + uintptr(-Int32FromInt32(1)))) != 0 || **(**uint8)(__ccgo_up((*Tpasswd)(unsafe.Pointer(pw)).Fpw_dir + uintptr(-Int32FromInt32(1)))) != 0 || **(**uint8)(__ccgo_up((*Tpasswd)(unsafe.Pointer(pw)).Fpw_shell + uintptr((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWSHELLLEN)]-int32(1)))) != 0 { + rv = int32(EIO) + goto cleanup_f + } + if name != 0 && Xstrcmp(tls, name, (*Tpasswd)(unsafe.Pointer(pw)).Fpw_name) != 0 || !(name != 0) && uid != (*Tpasswd)(unsafe.Pointer(pw)).Fpw_uid { + rv = int32(EIO) + goto cleanup_f + } + **(**uintptr)(__ccgo_up(res)) = pw + goto cleanup_f + cleanup_f: + ; + Xfclose(tls, f) + goto done + } + goto done +done: + ; + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 4)), uintptr(0)) + if rv != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = rv + } + return rv +} + +func _getpw_r(tls *TLS, name uintptr, uid Tuid_t, pw uintptr, buf uintptr, size Tsize_t, res uintptr) (r int32) { + bp := tls.Alloc(16) + defer tls.Free(16) + var rv int32 + var _ /* cs at bp+8 */ int32 + var _ /* len at bp+4 */ Tsize_t + var _ /* line at bp+0 */ uintptr + _ = rv + **(**uintptr)(__ccgo_up(bp)) = uintptr(0) + **(**Tsize_t)(__ccgo_up(bp + 4)) = uint32(0) + rv = 0 + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp+8) + rv = X__getpw_a(tls, name, uid, pw, bp, bp+4, res) + if **(**uintptr)(__ccgo_up(res)) != 0 && size < **(**Tsize_t)(__ccgo_up(bp + 4)) { + **(**uintptr)(__ccgo_up(res)) = uintptr(0) + rv = int32(ERANGE) + } + if **(**uintptr)(__ccgo_up(res)) != 0 { + _memcpy(tls, buf, **(**uintptr)(__ccgo_up(bp)), **(**Tsize_t)(__ccgo_up(bp + 4))) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_name = uintptr(int32((*Tpasswd)(unsafe.Pointer(pw)).Fpw_name)-int32(**(**uintptr)(__ccgo_up(bp)))) + buf + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_passwd = uintptr(int32((*Tpasswd)(unsafe.Pointer(pw)).Fpw_passwd)-int32(**(**uintptr)(__ccgo_up(bp)))) + buf + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_gecos = uintptr(int32((*Tpasswd)(unsafe.Pointer(pw)).Fpw_gecos)-int32(**(**uintptr)(__ccgo_up(bp)))) + buf + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_dir = uintptr(int32((*Tpasswd)(unsafe.Pointer(pw)).Fpw_dir)-int32(**(**uintptr)(__ccgo_up(bp)))) + buf + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_shell = uintptr(int32((*Tpasswd)(unsafe.Pointer(pw)).Fpw_shell)-int32(**(**uintptr)(__ccgo_up(bp)))) + buf + } + Xfree(tls, **(**uintptr)(__ccgo_up(bp))) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 8)), uintptr(0)) + if rv != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = rv + } + return rv +} + +func Xgetpwnam_r(tls *TLS, name uintptr, pw uintptr, buf uintptr, size Tsize_t, res uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v pw=%v buf=%v size=%v res=%v, (%v:)", tls, name, pw, buf, size, res, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _getpw_r(tls, name, uint32(0), pw, buf, size, res) +} + +func Xgetpwuid_r(tls *TLS, uid Tuid_t, pw uintptr, buf uintptr, size Tsize_t, res uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v uid=%v pw=%v buf=%v size=%v res=%v, (%v:)", tls, uid, pw, buf, size, res, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _getpw_r(tls, uintptr(0), uid, pw, buf, size, res) +} + +var _f2 uintptr +var _line4 uintptr +var _pw1 Tpasswd +var _size Tsize_t + +func Xsetpwent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + if _f2 != 0 { + Xfclose(tls, _f2) + } + _f2 = uintptr(0) +} + +func Xgetpwent(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* res at bp+0 */ uintptr + if !(_f2 != 0) { + _f2 = Xfopen(tls, __ccgo_ts+1161, __ccgo_ts+315) + } + if !(_f2 != 0) { + return uintptr(0) + } + X__getpwent_a(tls, _f2, uintptr(unsafe.Pointer(&_pw1)), uintptr(unsafe.Pointer(&_line4)), uintptr(unsafe.Pointer(&_size)), bp) + return **(**uintptr)(__ccgo_up(bp)) +} + +func Xgetpwuid(tls *TLS, uid Tuid_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v uid=%v, (%v:)", tls, uid, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* res at bp+0 */ uintptr + X__getpw_a(tls, uintptr(0), uid, uintptr(unsafe.Pointer(&_pw1)), uintptr(unsafe.Pointer(&_line4)), uintptr(unsafe.Pointer(&_size)), bp) + return **(**uintptr)(__ccgo_up(bp)) +} + +func Xgetpwnam(tls *TLS, name uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* res at bp+0 */ uintptr + X__getpw_a(tls, name, uint32(0), uintptr(unsafe.Pointer(&_pw1)), uintptr(unsafe.Pointer(&_line4)), uintptr(unsafe.Pointer(&_size)), bp) + return **(**uintptr)(__ccgo_up(bp)) +} + +func Xendpwent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + Xsetpwent(tls) +} + +func _atou1(tls *TLS, s uintptr) (r uint32) { + var x uint32 + _ = x + x = uint32(0) + for { + if !(Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(s)))))-int32('0')) < uint32(10)) { + break + } + x = uint32(10)*x + Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(s)))))-Int32FromUint8('0')) + goto _1 + _1: + ; + **(**uintptr)(__ccgo_up(s)) = **(**uintptr)(__ccgo_up(s)) + 1 + } + return x +} + +func X__getpwent_a(tls *TLS, f uintptr, pw uintptr, line uintptr, size uintptr, res uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v pw=%v line=%v size=%v res=%v, (%v:)", tls, f, pw, line, size, res, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var l, v2 Tssize_t + var rv, v3 int32 + var v4 uintptr + var _ /* cs at bp+4 */ int32 + var _ /* s at bp+0 */ uintptr + _, _, _, _, _ = l, rv, v2, v3, v4 + rv = 0 + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp+4) + for { + v2 = Xgetline(tls, line, size, f) + l = v2 + if v2 < 0 { + if Xferror(tls, f) != 0 { + v3 = **(**int32)(__ccgo_up(X__errno_location(tls))) + } else { + v3 = 0 + } + rv = v3 + Xfree(tls, **(**uintptr)(__ccgo_up(line))) + **(**uintptr)(__ccgo_up(line)) = uintptr(0) + pw = uintptr(0) + break + } + **(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(line)) + uintptr(l-int32(1)))) = uint8(0) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(line)) + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_name = v4 + v4 = Xstrchr(tls, **(**uintptr)(__ccgo_up(bp)), int32(':')) + **(**uintptr)(__ccgo_up(bp)) = v4 + if !(v4 != 0) { + goto _1 + } + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + **(**uint8)(__ccgo_up(v4)) = uint8(0) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_passwd = **(**uintptr)(__ccgo_up(bp)) + v4 = Xstrchr(tls, **(**uintptr)(__ccgo_up(bp)), int32(':')) + **(**uintptr)(__ccgo_up(bp)) = v4 + if !(v4 != 0) { + goto _1 + } + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + **(**uint8)(__ccgo_up(v4)) = uint8(0) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_uid = _atou1(tls, bp) + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp))))) != int32(':') { + goto _1 + } + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + **(**uint8)(__ccgo_up(v4)) = uint8(0) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_gid = _atou1(tls, bp) + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp))))) != int32(':') { + goto _1 + } + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + **(**uint8)(__ccgo_up(v4)) = uint8(0) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_gecos = **(**uintptr)(__ccgo_up(bp)) + v4 = Xstrchr(tls, **(**uintptr)(__ccgo_up(bp)), int32(':')) + **(**uintptr)(__ccgo_up(bp)) = v4 + if !(v4 != 0) { + goto _1 + } + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + **(**uint8)(__ccgo_up(v4)) = uint8(0) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_dir = **(**uintptr)(__ccgo_up(bp)) + v4 = Xstrchr(tls, **(**uintptr)(__ccgo_up(bp)), int32(':')) + **(**uintptr)(__ccgo_up(bp)) = v4 + if !(v4 != 0) { + goto _1 + } + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + **(**uint8)(__ccgo_up(v4)) = uint8(0) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_shell = **(**uintptr)(__ccgo_up(bp)) + break + goto _1 + _1: + } + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 4)), uintptr(0)) + **(**uintptr)(__ccgo_up(res)) = pw + if rv != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = rv + } + return rv +} + +func Xsetspent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } +} + +func Xendspent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } +} + +func Xgetspent(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(0) +} + +func Xlckpwdf(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return 0 +} + +func Xulckpwdf(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return 0 +} + +var _addr = struct { + Fsun_family int16 + Fsun_path [21]uint8 +}{ + Fsun_family: int16(PF_LOCAL), + Fsun_path: [21]uint8{'/', 'v', 'a', 'r', '/', 'r', 'u', 'n', '/', 'n', 's', 'c', 'd', '/', 's', 'o', 'c', 'k', 'e', 't'}, +} + +func X__nscd_query(tls *TLS, req Tint32_t, key uintptr, buf uintptr, len1 Tsize_t, swap uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v req=%v key=%v buf=%v len1=%v swap=%v, (%v:)", tls, req, key, buf, len1, swap, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var errno_save, fd int32 + var f, v1 uintptr + var i Tsize_t + var v3, v4 Tuint32_t + var _ /* msg at bp+28 */ Tmsghdr + var _ /* req_buf at bp+16 */ [3]Tint32_t + _, _, _, _, _, _, _ = errno_save, f, fd, i, v1, v3, v4 + f = uintptr(0) + **(**[3]Tint32_t)(__ccgo_up(bp + 16)) = [3]Tint32_t{ + 0: int32(NSCDVERSION), + 1: req, + 2: Int32FromUint32(Xstrnlen(tls, key, uint32(LOGIN_NAME_MAX)) + uint32(1)), + } + *(*[2]Tiovec)(unsafe.Pointer(bp)) = [2]Tiovec{ + 0: { + Fiov_base: bp + 16, + Fiov_len: uint32(12), + }, + 1: { + Fiov_base: key, + Fiov_len: _strlen(tls, key) + uint32(1), + }, + } + **(**Tmsghdr)(__ccgo_up(bp + 28)) = Tmsghdr{ + Fmsg_iov: bp, + Fmsg_iovlen: int32(2), + } + errno_save = **(**int32)(__ccgo_up(X__errno_location(tls))) + **(**int32)(__ccgo_up(swap)) = 0 + goto retry +retry: + ; + Xmemset(tls, buf, 0, len1) + **(**Tint32_t)(__ccgo_up(buf)) = int32(NSCDVERSION) + fd = Xsocket(tls, int32(PF_LOCAL), Int32FromInt32(SOCK_STREAM)|Int32FromInt32(SOCK_CLOEXEC), 0) + if fd < 0 { + if **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EAFNOSUPPORT) { + f = Xfopen(tls, __ccgo_ts+1173, __ccgo_ts+1183) + if f != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = errno_save + } + return f + } + return uintptr(0) + } + v1 = Xfdopen(tls, fd, __ccgo_ts+1186) + f = v1 + if !(v1 != 0) { + Xclose(tls, fd) + return uintptr(0) + } + if (**(**[3]Tint32_t)(__ccgo_up(bp + 16)))[int32(2)] > int32(LOGIN_NAME_MAX) { + return f + } + if Xconnect(tls, fd, uintptr(unsafe.Pointer(&_addr)), uint32(24)) < 0 { + /* If there isn't a running nscd we simulate a "not found" + * result and the caller is responsible for calling + * fclose on the (unconnected) socket. The value of + * errno must be left unchanged in this case. */ + if **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EACCES) || **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(ECONNREFUSED) || **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(ENOENT) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = errno_save + return f + } + goto error + } + if Xsendmsg(tls, fd, bp+28, int32(MSG_NOSIGNAL)) < 0 { + goto error + } + if !(Xfread(tls, buf, len1, uint32(1), f) != 0) { + /* If the VERSION entry mismatches nscd will disconnect. The + * most likely cause is that the endianness mismatched. So, we + * byteswap and try once more. (if we already swapped, just + * fail out) + */ + if Xferror(tls, f) != 0 { + goto error + } + if !(**(**int32)(__ccgo_up(swap)) != 0) { + Xfclose(tls, f) + i = uint32(0) + for { + if !(i < Uint32FromInt64(12)/Uint32FromInt64(4)) { + break + } + v3 = Uint32FromInt32((**(**[3]Tint32_t)(__ccgo_up(bp + 16)))[i]) + v4 = v3>>int32(24) | v3>>int32(8)&uint32(0xff00) | v3<>int32(24) | v3>>int32(8)&uint32(0xff00) | v3< %v", r1) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var i Tsize_t + var r, v1 int32 + var v4 uintptr + _, _, _, _ = i, r, v1, v4 + Xflockfile(tls, f) + v1 = Xfprintf(tls, f, __ccgo_ts+1188, VaList(bp+8, (*Tgroup)(unsafe.Pointer(gr)).Fgr_name, (*Tgroup)(unsafe.Pointer(gr)).Fgr_passwd, (*Tgroup)(unsafe.Pointer(gr)).Fgr_gid)) + r = v1 + if v1 < 0 { + goto done + } + if (*Tgroup)(unsafe.Pointer(gr)).Fgr_mem != 0 { + i = uint32(0) + for { + if !(**(**uintptr)(__ccgo_up((*Tgroup)(unsafe.Pointer(gr)).Fgr_mem + uintptr(i)*4)) != 0) { + break + } + if i != 0 { + v4 = __ccgo_ts + 1198 + } else { + v4 = __ccgo_ts + } + v1 = Xfprintf(tls, f, __ccgo_ts+1200, VaList(bp+8, v4, **(**uintptr)(__ccgo_up((*Tgroup)(unsafe.Pointer(gr)).Fgr_mem + uintptr(i)*4)))) + r = v1 + if v1 < 0 { + goto done + } + goto _2 + _2: + ; + i = i + 1 + } + } + r = Xfputc(tls, int32('\n'), f) + goto done +done: + ; + Xfunlockfile(tls, f) + if r < 0 { + v1 = -int32(1) + } else { + v1 = 0 + } + return v1 +} + +func Xputpwent(tls *TLS, pw uintptr, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v pw=%v f=%v, (%v:)", tls, pw, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var v1 int32 + _ = v1 + if Xfprintf(tls, f, __ccgo_ts+1205, VaList(bp+8, (*Tpasswd)(unsafe.Pointer(pw)).Fpw_name, (*Tpasswd)(unsafe.Pointer(pw)).Fpw_passwd, (*Tpasswd)(unsafe.Pointer(pw)).Fpw_uid, (*Tpasswd)(unsafe.Pointer(pw)).Fpw_gid, (*Tpasswd)(unsafe.Pointer(pw)).Fpw_gecos, (*Tpasswd)(unsafe.Pointer(pw)).Fpw_dir, (*Tpasswd)(unsafe.Pointer(pw)).Fpw_shell)) < 0 { + v1 = -int32(1) + } else { + v1 = 0 + } + return v1 +} + +func Xputspent(tls *TLS, sp uintptr, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v sp=%v f=%v, (%v:)", tls, sp, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(144) + defer tls.Free(144) + var v1, v10, v11, v12, v13, v14, v15, v16, v4, v5, v6, v7, v8, v9 int32 + var v17 uint32 + var v2, v3 uintptr + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = v1, v10, v11, v12, v13, v14, v15, v16, v17, v2, v3, v4, v5, v6, v7, v8, v9 + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_namp != 0 { + v2 = (*Tspwd)(unsafe.Pointer(sp)).Fsp_namp + } else { + v2 = __ccgo_ts + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_pwdp != 0 { + v3 = (*Tspwd)(unsafe.Pointer(sp)).Fsp_pwdp + } else { + v3 = __ccgo_ts + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_lstchg == -int32(1) { + v4 = 0 + } else { + v4 = -int32(1) + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_lstchg == -int32(1) { + v5 = 0 + } else { + v5 = (*Tspwd)(unsafe.Pointer(sp)).Fsp_lstchg + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_min == -int32(1) { + v6 = 0 + } else { + v6 = -int32(1) + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_min == -int32(1) { + v7 = 0 + } else { + v7 = (*Tspwd)(unsafe.Pointer(sp)).Fsp_min + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_max == -int32(1) { + v8 = 0 + } else { + v8 = -int32(1) + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_max == -int32(1) { + v9 = 0 + } else { + v9 = (*Tspwd)(unsafe.Pointer(sp)).Fsp_max + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_warn == -int32(1) { + v10 = 0 + } else { + v10 = -int32(1) + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_warn == -int32(1) { + v11 = 0 + } else { + v11 = (*Tspwd)(unsafe.Pointer(sp)).Fsp_warn + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_inact == -int32(1) { + v12 = 0 + } else { + v12 = -int32(1) + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_inact == -int32(1) { + v13 = 0 + } else { + v13 = (*Tspwd)(unsafe.Pointer(sp)).Fsp_inact + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_expire == -int32(1) { + v14 = 0 + } else { + v14 = -int32(1) + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_expire == -int32(1) { + v15 = 0 + } else { + v15 = (*Tspwd)(unsafe.Pointer(sp)).Fsp_expire + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_flag == Uint32FromInt32(-Int32FromInt32(1)) { + v16 = 0 + } else { + v16 = -int32(1) + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_flag == Uint32FromInt32(-Int32FromInt32(1)) { + v17 = uint32(0) + } else { + v17 = (*Tspwd)(unsafe.Pointer(sp)).Fsp_flag + } + if Xfprintf(tls, f, __ccgo_ts+1227, VaList(bp+8, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17)) < 0 { + v1 = -int32(1) + } else { + v1 = 0 + } + return v1 +} + +func X__rand48_step(tls *TLS, xi uintptr, lc uintptr) (r Tuint64_t) { + if __ccgo_strace { + trc("tls=%v xi=%v lc=%v, (%v:)", tls, xi, lc, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, x Tuint64_t + _, _ = a, x + x = uint64(uint32(**(**uint16)(__ccgo_up(xi)))|(uint32(**(**uint16)(__ccgo_up(xi + 1*2)))+0)<> int32(16)) + **(**uint16)(__ccgo_up(xi + 2*2)) = uint16(x >> int32(32)) + return x & uint64(0xffffffffffff) +} + +func Xerand48(tls *TLS, s uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* x at bp+0 */ struct { + F__ccgo_align [0]uint32 + Ff [0]float64 + Fu Tuint64_t + } + *(*struct { + F__ccgo_align [0]uint32 + Ff [0]float64 + Fu Tuint64_t + })(unsafe.Pointer(bp)) = struct { + F__ccgo_align [0]uint32 + Ff [0]float64 + Fu Tuint64_t + }{} + *(*uint64)(unsafe.Pointer(bp)) = uint64(0x3ff0000000000000) | X__rand48_step(tls, s, uintptr(unsafe.Pointer(&X__seed48))+uintptr(3)*2)< %v", r) }() + } + return Xerand48(tls, uintptr(unsafe.Pointer(&X__seed48))) +} + +func Xlcong48(tls *TLS, p uintptr) { + if __ccgo_strace { + trc("tls=%v p=%v, (%v:)", tls, p, origin(2)) + } + _memcpy(tls, uintptr(unsafe.Pointer(&X__seed48)), p, uint32(14)) +} + +func Xnrand48(tls *TLS, s uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Int32FromUint64(X__rand48_step(tls, s, uintptr(unsafe.Pointer(&X__seed48))+uintptr(3)*2) >> int32(17)) +} + +func Xlrand48(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xnrand48(tls, uintptr(unsafe.Pointer(&X__seed48))) +} + +func Xjrand48(tls *TLS, s uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(Int32FromUint64(X__rand48_step(tls, s, uintptr(unsafe.Pointer(&X__seed48))+uintptr(3)*2) >> Int32FromInt32(16))) +} + +func Xmrand48(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xjrand48(tls, uintptr(unsafe.Pointer(&X__seed48))) +} + +var _seed Tuint64_t + +func Xsrand(tls *TLS, s uint32) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + } + _seed = uint64(s - uint32(1)) +} + +func Xrand(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + _seed = uint64(6364136223846793005)*_seed + uint64(1) + return Int32FromUint64(_seed >> int32(33)) +} + +func _temper(tls *TLS, x uint32) (r uint32) { + x = x ^ x>>int32(11) + x = x ^ x<>int32(18) + return x +} + +func Xrand_r(tls *TLS, seed uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v seed=%v, (%v:)", tls, seed, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 uint32 + _ = v1 + v1 = **(**uint32)(__ccgo_up(seed))*Uint32FromInt32(1103515245) + Uint32FromInt32(12345) + **(**uint32)(__ccgo_up(seed)) = v1 + return Int32FromUint32(_temper(tls, v1) / uint32(2)) +} + +/* +this code uses the same lagged fibonacci generator as the +original bsd random implementation except for the seeding +which was broken in the original +*/ + +var _init = [32]Tuint32_t{ + 1: uint32(0x5851f42d), + 2: uint32(0xc0b18ccf), + 3: uint32(0xcbb5f646), + 4: uint32(0xc7033129), + 5: uint32(0x30705b04), + 6: uint32(0x20fd5db4), + 7: uint32(0x9a8b7f78), + 8: uint32(0x502959d8), + 9: uint32(0xab894868), + 10: uint32(0x6c0356a7), + 11: uint32(0x88cdb7ff), + 12: uint32(0xb477d43f), + 13: uint32(0x70a3a52b), + 14: uint32(0xa8e4baf1), + 15: uint32(0xfd8341fc), + 16: uint32(0x8ae16fd9), + 17: uint32(0x742d2f7a), + 18: uint32(0x0d1f0796), + 19: uint32(0x76035e09), + 20: uint32(0x40f7702c), + 21: uint32(0x6fa72ca5), + 22: uint32(0xaaa84157), + 23: uint32(0x58a0df74), + 24: uint32(0xc74a0364), + 25: uint32(0xae533cc4), + 26: uint32(0x04185faf), + 27: uint32(0x6de3b115), + 28: uint32(0x0cab8628), + 29: uint32(0xf043bfa4), + 30: uint32(0x398150e9), + 31: uint32(0x37521657), +} + +var _n = int32(31) +var _i = int32(3) +var _j = int32(0) +var _x1 = uintptr(unsafe.Pointer(&_init)) + uintptr(1)*4 +var _lock3 [1]int32 + +func _lcg31(tls *TLS, x Tuint32_t) (r Tuint32_t) { + return (uint32(1103515245)*x + uint32(12345)) & uint32(0x7fffffff) +} + +func _lcg64(tls *TLS, x Tuint64_t) (r Tuint64_t) { + return uint64(6364136223846793005)*x + uint64(1) +} + +func _savestate(tls *TLS) (r uintptr) { + **(**Tuint32_t)(__ccgo_up(_x1 + uintptr(-Int32FromInt32(1))*4)) = Uint32FromInt32(_n<> int32(16)) + _i = Int32FromUint32(**(**Tuint32_t)(__ccgo_up(_x1 + uintptr(-Int32FromInt32(1))*4)) >> Int32FromInt32(8) & uint32(0xff)) + _j = Int32FromUint32(**(**Tuint32_t)(__ccgo_up(_x1 + uintptr(-Int32FromInt32(1))*4)) & uint32(0xff)) +} + +func ___srandom(tls *TLS, seed uint32) { + var k, v1 int32 + var s Tuint64_t + _, _, _ = k, s, v1 + s = uint64(seed) + if _n == 0 { + **(**Tuint32_t)(__ccgo_up(_x1)) = uint32(s) + return + } + if _n == int32(31) || _n == int32(7) { + v1 = int32(3) + } else { + v1 = int32(1) + } + _i = v1 + _j = 0 + k = 0 + for { + if !(k < _n) { + break + } + s = _lcg64(tls, s) + **(**Tuint32_t)(__ccgo_up(_x1 + uintptr(k)*4)) = uint32(s >> int32(32)) + goto _2 + _2: + ; + k = k + 1 + } + /* make sure x contains at least one odd number */ + **(**Tuint32_t)(__ccgo_up(_x1)) |= uint32(1) +} + +func Xsrandom(tls *TLS, seed uint32) { + if __ccgo_strace { + trc("tls=%v seed=%v, (%v:)", tls, seed, origin(2)) + } + ___lock(tls, uintptr(unsafe.Pointer(&_lock3))) + ___srandom(tls, seed) + ___unlock(tls, uintptr(unsafe.Pointer(&_lock3))) +} + +func Xinitstate(tls *TLS, seed uint32, state uintptr, size Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v seed=%v state=%v size=%v, (%v:)", tls, seed, state, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + var old uintptr + _ = old + if size < uint32(8) { + return uintptr(0) + } + ___lock(tls, uintptr(unsafe.Pointer(&_lock3))) + old = _savestate(tls) + if size < uint32(32) { + _n = 0 + } else { + if size < uint32(64) { + _n = int32(7) + } else { + if size < uint32(128) { + _n = int32(15) + } else { + if size < uint32(256) { + _n = int32(31) + } else { + _n = int32(63) + } + } + } + } + _x1 = state + uintptr(1)*4 + ___srandom(tls, seed) + _savestate(tls) + ___unlock(tls, uintptr(unsafe.Pointer(&_lock3))) + return old +} + +func Xsetstate(tls *TLS, state uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v state=%v, (%v:)", tls, state, origin(2)) + defer func() { trc("-> %v", r) }() + } + var old uintptr + _ = old + ___lock(tls, uintptr(unsafe.Pointer(&_lock3))) + old = _savestate(tls) + _loadstate(tls, state) + ___unlock(tls, uintptr(unsafe.Pointer(&_lock3))) + return old +} + +func Xrandom(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + var k, v2 int32 + var v1 Tuint32_t + _, _, _ = k, v1, v2 + ___lock(tls, uintptr(unsafe.Pointer(&_lock3))) + if _n == 0 { + v1 = _lcg31(tls, **(**Tuint32_t)(__ccgo_up(_x1))) + **(**Tuint32_t)(__ccgo_up(_x1)) = v1 + k = Int32FromUint32(v1) + goto end + } + **(**Tuint32_t)(__ccgo_up(_x1 + uintptr(_i)*4)) += **(**Tuint32_t)(__ccgo_up(_x1 + uintptr(_j)*4)) + k = Int32FromUint32(**(**Tuint32_t)(__ccgo_up(_x1 + uintptr(_i)*4)) >> int32(1)) + _i = _i + 1 + v2 = _i + if v2 == _n { + _i = 0 + } + _j = _j + 1 + v2 = _j + if v2 == _n { + _j = 0 + } + goto end +end: + ; + ___unlock(tls, uintptr(unsafe.Pointer(&_lock3))) + return k +} + +func Xseed48(tls *TLS, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + _memcpy(tls, uintptr(unsafe.Pointer(&_p1)), uintptr(unsafe.Pointer(&X__seed48)), uint32(6)) + _memcpy(tls, uintptr(unsafe.Pointer(&X__seed48)), s, uint32(6)) + return uintptr(unsafe.Pointer(&_p1)) +} + +var _p1 [3]uint16 + +func Xsrand48(tls *TLS, seed int32) { + if __ccgo_strace { + trc("tls=%v seed=%v, (%v:)", tls, seed, origin(2)) + } + bp := tls.Alloc(16) + defer tls.Free(16) + *(*[3]uint16)(unsafe.Pointer(bp)) = [3]uint16{ + 0: uint16(0x330e), + 1: Uint16FromInt32(seed), + 2: Uint16FromInt32(seed >> int32(16)), + } + Xseed48(tls, bp) +} + +func Xexecl(tls *TLS, path uintptr, argv0 uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v argv0=%v va=%v, (%v:)", tls, path, argv0, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var argc, i int32 + var argv uintptr + var v2 t__predefined_size_t + _, _, _, _, _ = ap, argc, argv, i, v2 + defer func() { Xrealloc(tls, argv, 0) }() + ap = va + argc = int32(1) + for { + if !(VaUintptr(&ap) != 0) { + break + } + goto _1 + _1: + ; + argc = argc + 1 + } + _ = ap + v2 = Uint32FromInt32(argc+int32(1)) * 4 + argv = Xrealloc(tls, argv, v2) + ap = va + *(*uintptr)(unsafe.Add(unsafe.Pointer(argv), 0*4)) = argv0 + i = int32(1) + for { + if !(i < argc) { + break + } + *(*uintptr)(unsafe.Add(unsafe.Pointer(argv), i*4)) = VaUintptr(&ap) + goto _3 + _3: + ; + i = i + 1 + } + *(*uintptr)(unsafe.Add(unsafe.Pointer(argv), i*4)) = UintptrFromInt32(0) + _ = ap + return Xexecv(tls, path, argv) + return r +} + +func Xexecle(tls *TLS, path uintptr, argv0 uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v argv0=%v va=%v, (%v:)", tls, path, argv0, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var argc, i int32 + var argv, envp uintptr + var v2 t__predefined_size_t + _, _, _, _, _, _ = ap, argc, argv, envp, i, v2 + defer func() { Xrealloc(tls, argv, 0) }() + ap = va + argc = int32(1) + for { + if !(VaUintptr(&ap) != 0) { + break + } + goto _1 + _1: + ; + argc = argc + 1 + } + _ = ap + v2 = Uint32FromInt32(argc+int32(1)) * 4 + argv = Xrealloc(tls, argv, v2) + ap = va + *(*uintptr)(unsafe.Add(unsafe.Pointer(argv), 0*4)) = argv0 + i = int32(1) + for { + if !(i <= argc) { + break + } + *(*uintptr)(unsafe.Add(unsafe.Pointer(argv), i*4)) = VaUintptr(&ap) + goto _3 + _3: + ; + i = i + 1 + } + envp = VaUintptr(&ap) + _ = ap + return Xexecve(tls, path, argv, envp) + return r +} + +func Xexeclp(tls *TLS, file uintptr, argv0 uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v file=%v argv0=%v va=%v, (%v:)", tls, file, argv0, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var argc, i int32 + var argv uintptr + var v2 t__predefined_size_t + _, _, _, _, _ = ap, argc, argv, i, v2 + defer func() { Xrealloc(tls, argv, 0) }() + ap = va + argc = int32(1) + for { + if !(VaUintptr(&ap) != 0) { + break + } + goto _1 + _1: + ; + argc = argc + 1 + } + _ = ap + v2 = Uint32FromInt32(argc+int32(1)) * 4 + argv = Xrealloc(tls, argv, v2) + ap = va + *(*uintptr)(unsafe.Add(unsafe.Pointer(argv), 0*4)) = argv0 + i = int32(1) + for { + if !(i < argc) { + break + } + *(*uintptr)(unsafe.Add(unsafe.Pointer(argv), i*4)) = VaUintptr(&ap) + goto _3 + _3: + ; + i = i + 1 + } + *(*uintptr)(unsafe.Add(unsafe.Pointer(argv), i*4)) = UintptrFromInt32(0) + _ = ap + return Xexecvp(tls, file, argv) + return r +} + +func Xexecv(tls *TLS, path uintptr, argv uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v argv=%v, (%v:)", tls, path, argv, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xexecve(tls, path, argv, Xenviron) +} + +func Xexecve(tls *TLS, path uintptr, argv uintptr, envp uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v argv=%v envp=%v, (%v:)", tls, path, argv, envp, origin(2)) + defer func() { trc("-> %v", r) }() + } + /* do we need to use environ if envp is null? */ + return X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_execve), int32(path), int32(argv), int32(envp)))) +} + +func X__execvpe(tls *TLS, file uintptr, argv uintptr, envp uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v file=%v argv=%v envp=%v, (%v:)", tls, file, argv, envp, origin(2)) + defer func() { trc("-> %v", r) }() + } + var b, p, path, z, v3 uintptr + var k, l Tsize_t + var seen_eacces int32 + var v2 t__predefined_size_t + _, _, _, _, _, _, _, _, _ = b, k, l, p, path, seen_eacces, z, v2, v3 + defer func() { Xrealloc(tls, b, 0) }() + path = Xgetenv(tls, __ccgo_ts+1276) + seen_eacces = 0 + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOENT) + if !(**(**uint8)(__ccgo_up(file)) != 0) { + return -int32(1) + } + if Xstrchr(tls, file, int32('/')) != 0 { + return Xexecve(tls, file, argv, envp) + } + if !(path != 0) { + path = __ccgo_ts + 1281 + } + k = Xstrnlen(tls, file, Uint32FromInt32(Int32FromInt32(NAME_MAX)+Int32FromInt32(1))) + if k > uint32(NAME_MAX) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENAMETOOLONG) + return -int32(1) + } + l = Xstrnlen(tls, path, Uint32FromInt32(Int32FromInt32(PATH_MAX)-Int32FromInt32(1))) + uint32(1) + p = path + for { + v2 = l + k + uint32(1) + b = Xrealloc(tls, b, v2) + z = X__strchrnul(tls, p, int32(':')) + if Uint32FromInt32(int32(z)-int32(p)) >= l { + v3 = z + z = z + 1 + if !(**(**uint8)(__ccgo_up(v3)) != 0) { + break + } + goto _1 + } + _memcpy(tls, b, p, Uint32FromInt32(int32(z)-int32(p))) + *(*uint8)(unsafe.Add(unsafe.Pointer(b), int32(z)-int32(p))) = uint8('/') + _memcpy(tls, b+uintptr(int32(z)-int32(p))+BoolUintptr(z > p), file, k+uint32(1)) + Xexecve(tls, b, argv, envp) + switch **(**int32)(__ccgo_up(X__errno_location(tls))) { + case int32(EACCES): + seen_eacces = int32(1) + fallthrough + case int32(ENOENT): + fallthrough + case int32(ENOTDIR): + default: + return -int32(1) + } + v3 = z + z = z + 1 + if !(**(**uint8)(__ccgo_up(v3)) != 0) { + break + } + goto _1 + _1: + ; + p = z + } + if seen_eacces != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EACCES) + } + return -int32(1) +} + +func Xexecvp(tls *TLS, file uintptr, argv uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v file=%v argv=%v, (%v:)", tls, file, argv, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__execvpe(tls, file, argv, Xenviron) +} + +func Xexecvpe(tls *TLS, file uintptr, argv uintptr, envp uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v file=%v argv=%v envp=%v, (%v:)", tls, file, argv, envp, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__execvpe(tls, file, argv, envp) +} + +func Xfexecve(tls *TLS, fd int32, argv uintptr, envp uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v argv=%v envp=%v, (%v:)", tls, fd, argv, envp, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var r int32 + var _ /* buf at bp+0 */ [27]uint8 + _ = r + r = int32(X__syscall5(tls, int32(SYS_execveat), fd, int32(__ccgo_ts), int32(argv), int32(envp), int32(Int32FromInt32(AT_EMPTY_PATH)))) + if r != -int32(ENOSYS) { + return X__syscall_ret(tls, Uint32FromInt32(r)) + } + X__procfdname(tls, bp, Uint32FromInt32(fd)) + Xexecve(tls, bp, argv, envp) + if **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(ENOENT) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EBADF) + } + return -int32(1) +} + +var _dummy_lockptr = uintptr(0) + +var _atfork_locks = [10]uintptr{ + 0: uintptr(unsafe.Pointer(&X__at_quick_exit_lockptr)), + 1: uintptr(unsafe.Pointer(&_dummy_lockptr)), + 2: uintptr(unsafe.Pointer(&X__gettext_lockptr)), + 3: uintptr(unsafe.Pointer(&X__locale_lockptr)), + 4: uintptr(unsafe.Pointer(&X__random_lockptr)), + 5: uintptr(unsafe.Pointer(&_dummy_lockptr)), + 6: uintptr(unsafe.Pointer(&X__stdio_ofl_lockptr)), + 7: uintptr(unsafe.Pointer(&X__syslog_lockptr)), + 8: uintptr(unsafe.Pointer(&X__timezone_lockptr)), + 9: uintptr(unsafe.Pointer(&_dummy_lockptr)), +} + +func _dummy8(tls *TLS, x int32) { +} + +func _dummy_0(tls *TLS) { +} + +const FDOP_CHDIR = 4 +const FDOP_CLOSE = 1 +const FDOP_DUP2 = 2 +const FDOP_FCHDIR = 5 +const FDOP_OPEN = 3 +const POSIX_SPAWN_RESETIDS = 1 +const POSIX_SPAWN_SETPGROUP = 2 +const POSIX_SPAWN_SETSCHEDPARAM = 16 +const POSIX_SPAWN_SETSCHEDULER = 32 +const POSIX_SPAWN_SETSID = 128 +const POSIX_SPAWN_SETSIGDEF = 4 +const POSIX_SPAWN_SETSIGMASK = 8 +const POSIX_SPAWN_USEVFORK = 64 + +type Tposix_spawnattr_t = struct { + F__flags int32 + F__pgrp Tpid_t + F__def Tsigset_t + F__mask Tsigset_t + F__prio int32 + F__pol int32 + F__fn uintptr + F__pad [60]uint8 +} + +type Tposix_spawn_file_actions_t = struct { + F__pad0 [2]int32 + F__actions uintptr + F__pad [16]int32 +} + +type Tfdop = struct { + Fnext uintptr + Fprev uintptr + Fcmd int32 + Ffd int32 + Fsrcfd int32 + Foflag int32 + Fmode Tmode_t +} + +func Xposix_spawn_file_actions_addchdir_np(tls *TLS, fa uintptr, path uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fa=%v path=%v, (%v:)", tls, fa, path, origin(2)) + defer func() { trc("-> %v", r) }() + } + var op, v1 uintptr + _, _ = op, v1 + op = Xmalloc(tls, uint32(28)+_strlen(tls, path)+uint32(1)) + if !(op != 0) { + return int32(ENOMEM) + } + (*Tfdop)(unsafe.Pointer(op)).Fcmd = int32(FDOP_CHDIR) + (*Tfdop)(unsafe.Pointer(op)).Ffd = -int32(1) + Xstrcpy(tls, op+28, path) + v1 = (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions + (*Tfdop)(unsafe.Pointer(op)).Fnext = v1 + if v1 != 0 { + (*Tfdop)(unsafe.Pointer((*Tfdop)(unsafe.Pointer(op)).Fnext)).Fprev = op + } + (*Tfdop)(unsafe.Pointer(op)).Fprev = uintptr(0) + (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions = op + return 0 +} + +func Xposix_spawn_file_actions_addclose(tls *TLS, fa uintptr, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fa=%v fd=%v, (%v:)", tls, fa, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + var op, v1 uintptr + _, _ = op, v1 + if fd < 0 { + return int32(EBADF) + } + op = Xmalloc(tls, uint32(28)) + if !(op != 0) { + return int32(ENOMEM) + } + (*Tfdop)(unsafe.Pointer(op)).Fcmd = int32(FDOP_CLOSE) + (*Tfdop)(unsafe.Pointer(op)).Ffd = fd + v1 = (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions + (*Tfdop)(unsafe.Pointer(op)).Fnext = v1 + if v1 != 0 { + (*Tfdop)(unsafe.Pointer((*Tfdop)(unsafe.Pointer(op)).Fnext)).Fprev = op + } + (*Tfdop)(unsafe.Pointer(op)).Fprev = uintptr(0) + (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions = op + return 0 +} + +func Xposix_spawn_file_actions_adddup2(tls *TLS, fa uintptr, srcfd int32, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fa=%v srcfd=%v fd=%v, (%v:)", tls, fa, srcfd, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + var op, v1 uintptr + _, _ = op, v1 + if srcfd < 0 || fd < 0 { + return int32(EBADF) + } + op = Xmalloc(tls, uint32(28)) + if !(op != 0) { + return int32(ENOMEM) + } + (*Tfdop)(unsafe.Pointer(op)).Fcmd = int32(FDOP_DUP2) + (*Tfdop)(unsafe.Pointer(op)).Fsrcfd = srcfd + (*Tfdop)(unsafe.Pointer(op)).Ffd = fd + v1 = (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions + (*Tfdop)(unsafe.Pointer(op)).Fnext = v1 + if v1 != 0 { + (*Tfdop)(unsafe.Pointer((*Tfdop)(unsafe.Pointer(op)).Fnext)).Fprev = op + } + (*Tfdop)(unsafe.Pointer(op)).Fprev = uintptr(0) + (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions = op + return 0 +} + +func Xposix_spawn_file_actions_addfchdir_np(tls *TLS, fa uintptr, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fa=%v fd=%v, (%v:)", tls, fa, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + var op, v1 uintptr + _, _ = op, v1 + if fd < 0 { + return int32(EBADF) + } + op = Xmalloc(tls, uint32(28)) + if !(op != 0) { + return int32(ENOMEM) + } + (*Tfdop)(unsafe.Pointer(op)).Fcmd = int32(FDOP_FCHDIR) + (*Tfdop)(unsafe.Pointer(op)).Ffd = fd + v1 = (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions + (*Tfdop)(unsafe.Pointer(op)).Fnext = v1 + if v1 != 0 { + (*Tfdop)(unsafe.Pointer((*Tfdop)(unsafe.Pointer(op)).Fnext)).Fprev = op + } + (*Tfdop)(unsafe.Pointer(op)).Fprev = uintptr(0) + (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions = op + return 0 +} + +func Xposix_spawn_file_actions_addopen(tls *TLS, fa uintptr, fd int32, path uintptr, flags int32, mode Tmode_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fa=%v fd=%v path=%v flags=%v mode=%v, (%v:)", tls, fa, fd, path, flags, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + var op, v1 uintptr + _, _ = op, v1 + if fd < 0 { + return int32(EBADF) + } + op = Xmalloc(tls, uint32(28)+_strlen(tls, path)+uint32(1)) + if !(op != 0) { + return int32(ENOMEM) + } + (*Tfdop)(unsafe.Pointer(op)).Fcmd = int32(FDOP_OPEN) + (*Tfdop)(unsafe.Pointer(op)).Ffd = fd + (*Tfdop)(unsafe.Pointer(op)).Foflag = flags + (*Tfdop)(unsafe.Pointer(op)).Fmode = mode + Xstrcpy(tls, op+28, path) + v1 = (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions + (*Tfdop)(unsafe.Pointer(op)).Fnext = v1 + if v1 != 0 { + (*Tfdop)(unsafe.Pointer((*Tfdop)(unsafe.Pointer(op)).Fnext)).Fprev = op + } + (*Tfdop)(unsafe.Pointer(op)).Fprev = uintptr(0) + (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions = op + return 0 +} + +func Xposix_spawn_file_actions_destroy(tls *TLS, fa uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fa=%v, (%v:)", tls, fa, origin(2)) + defer func() { trc("-> %v", r) }() + } + var next, op uintptr + _, _ = next, op + op = (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions + for op != 0 { + next = (*Tfdop)(unsafe.Pointer(op)).Fnext + Xfree(tls, op) + op = next + } + return 0 +} + +func Xposix_spawn_file_actions_init(tls *TLS, fa uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fa=%v, (%v:)", tls, fa, origin(2)) + defer func() { trc("-> %v", r) }() + } + (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions = uintptr(0) + return 0 +} + +func Xposix_spawnattr_destroy(tls *TLS, attr uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v, (%v:)", tls, attr, origin(2)) + defer func() { trc("-> %v", r) }() + } + return 0 +} + +func Xposix_spawnattr_getflags(tls *TLS, attr uintptr, flags uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v flags=%v, (%v:)", tls, attr, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + **(**int16)(__ccgo_up(flags)) = int16((*Tposix_spawnattr_t)(unsafe.Pointer(attr)).F__flags) + return 0 +} + +func Xposix_spawnattr_getpgroup(tls *TLS, attr uintptr, pgrp uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v pgrp=%v, (%v:)", tls, attr, pgrp, origin(2)) + defer func() { trc("-> %v", r) }() + } + **(**Tpid_t)(__ccgo_up(pgrp)) = (*Tposix_spawnattr_t)(unsafe.Pointer(attr)).F__pgrp + return 0 +} + +func Xposix_spawnattr_getsigdefault(tls *TLS, attr uintptr, def uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v def=%v, (%v:)", tls, attr, def, origin(2)) + defer func() { trc("-> %v", r) }() + } + **(**Tsigset_t)(__ccgo_up(def)) = (*Tposix_spawnattr_t)(unsafe.Pointer(attr)).F__def + return 0 +} + +func Xposix_spawnattr_getsigmask(tls *TLS, attr uintptr, mask uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v mask=%v, (%v:)", tls, attr, mask, origin(2)) + defer func() { trc("-> %v", r) }() + } + **(**Tsigset_t)(__ccgo_up(mask)) = (*Tposix_spawnattr_t)(unsafe.Pointer(attr)).F__mask + return 0 +} + +func Xposix_spawnattr_init(tls *TLS, attr uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v, (%v:)", tls, attr, origin(2)) + defer func() { trc("-> %v", r) }() + } + **(**Tposix_spawnattr_t)(__ccgo_up(attr)) = Tposix_spawnattr_t{} + return 0 +} + +func Xposix_spawnattr_getschedparam(tls *TLS, attr uintptr, schedparam uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v schedparam=%v, (%v:)", tls, attr, schedparam, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(ENOSYS) +} + +func Xposix_spawnattr_setschedparam(tls *TLS, attr uintptr, schedparam uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v schedparam=%v, (%v:)", tls, attr, schedparam, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(ENOSYS) +} + +func Xposix_spawnattr_getschedpolicy(tls *TLS, attr uintptr, policy uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v policy=%v, (%v:)", tls, attr, policy, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(ENOSYS) +} + +func Xposix_spawnattr_setschedpolicy(tls *TLS, attr uintptr, policy int32) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v policy=%v, (%v:)", tls, attr, policy, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(ENOSYS) +} + +func Xposix_spawnattr_setflags(tls *TLS, attr uintptr, flags int16) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v flags=%v, (%v:)", tls, attr, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + var all_flags uint32 + _ = all_flags + all_flags = Uint32FromInt32(Int32FromInt32(POSIX_SPAWN_RESETIDS) | Int32FromInt32(POSIX_SPAWN_SETPGROUP) | Int32FromInt32(POSIX_SPAWN_SETSIGDEF) | Int32FromInt32(POSIX_SPAWN_SETSIGMASK) | Int32FromInt32(POSIX_SPAWN_SETSCHEDPARAM) | Int32FromInt32(POSIX_SPAWN_SETSCHEDULER) | Int32FromInt32(POSIX_SPAWN_USEVFORK) | Int32FromInt32(POSIX_SPAWN_SETSID)) + if Uint32FromInt16(flags) & ^all_flags != 0 { + return int32(EINVAL) + } + (*Tposix_spawnattr_t)(unsafe.Pointer(attr)).F__flags = int32(flags) + return 0 +} + +func Xposix_spawnattr_setpgroup(tls *TLS, attr uintptr, pgrp Tpid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v pgrp=%v, (%v:)", tls, attr, pgrp, origin(2)) + defer func() { trc("-> %v", r) }() + } + (*Tposix_spawnattr_t)(unsafe.Pointer(attr)).F__pgrp = pgrp + return 0 +} + +func Xposix_spawnattr_setsigdefault(tls *TLS, attr uintptr, def uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v def=%v, (%v:)", tls, attr, def, origin(2)) + defer func() { trc("-> %v", r) }() + } + (*Tposix_spawnattr_t)(unsafe.Pointer(attr)).F__def = **(**Tsigset_t)(__ccgo_up(def)) + return 0 +} + +func Xposix_spawnattr_setsigmask(tls *TLS, attr uintptr, mask uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v mask=%v, (%v:)", tls, attr, mask, origin(2)) + defer func() { trc("-> %v", r) }() + } + (*Tposix_spawnattr_t)(unsafe.Pointer(attr)).F__mask = **(**Tsigset_t)(__ccgo_up(mask)) + return 0 +} + +func Xvfork(tls *TLS) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + /* vfork syscall cannot be made from C code */ + return X__syscall_ret(tls, Uint32FromInt32(X__syscall0(tls, int32(SYS_fork)))) +} + +func Xwait(tls *TLS, status uintptr) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v status=%v, (%v:)", tls, status, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwaitpid(tls, -Int32FromInt32(1), status, 0) +} + +func Xwaitid(tls *TLS, type1 Tidtype_t, id Tid_t, info uintptr, options int32) (r int32) { + if __ccgo_strace { + trc("tls=%v type1=%v id=%v info=%v options=%v, (%v:)", tls, type1, id, info, options, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(___syscall_cp(tls, int32(SYS_waitid), type1, Int32FromUint32(id), int32(info), options, int32(Int32FromInt32(0)), 0))) +} + +func Xwaitpid(tls *TLS, pid Tpid_t, status uintptr, options int32) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v pid=%v status=%v options=%v, (%v:)", tls, pid, status, options, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(___syscall_cp(tls, int32(SYS_wait4), pid, int32(status), options, int32(Int32FromInt32(0)), 0, 0))) +} + +const BRACKET = -3 +const END = 0 +const FNM_CASEFOLD = 16 +const FNM_FILE_NAME = 1 +const FNM_LEADING_DIR = 8 +const FNM_NOESCAPE = 2 +const FNM_NOMATCH = 1 +const FNM_NOSYS = -1 +const FNM_PATHNAME = 1 +const FNM_PERIOD = 4 +const QUESTION = -4 +const STAR = -5 +const UNMATCHABLE = -2 + +func _str_next(tls *TLS, str uintptr, n Tsize_t, step uintptr) (r int32) { + bp := tls.Alloc(16) + defer tls.Free(16) + var k int32 + var _ /* wc at bp+0 */ Twchar_t + _ = k + if !(n != 0) { + **(**Tsize_t)(__ccgo_up(step)) = uint32(0) + return 0 + } + if uint32(**(**uint8)(__ccgo_up(str))) >= uint32(128) { + k = Xmbtowc(tls, bp, str, n) + if k < 0 { + **(**Tsize_t)(__ccgo_up(step)) = uint32(1) + return -int32(1) + } + **(**Tsize_t)(__ccgo_up(step)) = Uint32FromInt32(k) + return Int32FromUint32(**(**Twchar_t)(__ccgo_up(bp))) + } + **(**Tsize_t)(__ccgo_up(step)) = uint32(1) + return Int32FromUint8(**(**uint8)(__ccgo_up(str))) +} + +func _pat_next(tls *TLS, pat uintptr, m Tsize_t, step uintptr, flags int32) (r int32) { + bp := tls.Alloc(16) + defer tls.Free(16) + var esc, k1, z int32 + var k Tsize_t + var _ /* wc at bp+0 */ Twchar_t + _, _, _, _ = esc, k, k1, z + esc = 0 + if !(m != 0) || !(**(**uint8)(__ccgo_up(pat)) != 0) { + **(**Tsize_t)(__ccgo_up(step)) = uint32(0) + return END + } + **(**Tsize_t)(__ccgo_up(step)) = uint32(1) + if Int32FromUint8(**(**uint8)(__ccgo_up(pat))) == int32('\\') && **(**uint8)(__ccgo_up(pat + 1)) != 0 && !(flags&Int32FromInt32(FNM_NOESCAPE) != 0) { + **(**Tsize_t)(__ccgo_up(step)) = uint32(2) + pat = pat + 1 + esc = int32(1) + goto escaped + } + if Int32FromUint8(**(**uint8)(__ccgo_up(pat))) == int32('[') { + k = uint32(1) + if k < m { + if Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(k)))) == int32('^') || Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(k)))) == int32('!') { + k = k + 1 + } + } + if k < m { + if Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(k)))) == int32(']') { + k = k + 1 + } + } + for { + if !(k < m && **(**uint8)(__ccgo_up(pat + uintptr(k))) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(k)))) != int32(']')) { + break + } + if k+uint32(1) < m && **(**uint8)(__ccgo_up(pat + uintptr(k+uint32(1)))) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(k)))) == int32('[') && (Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(k+uint32(1))))) == int32(':') || Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(k+uint32(1))))) == int32('.') || Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(k+uint32(1))))) == int32('=')) { + z = Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(k+uint32(1))))) + k = k + uint32(2) + if k < m && **(**uint8)(__ccgo_up(pat + uintptr(k))) != 0 { + k = k + 1 + } + for k < m && **(**uint8)(__ccgo_up(pat + uintptr(k))) != 0 && (Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(k-uint32(1))))) != z || Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(k)))) != int32(']')) { + k = k + 1 + } + if k == m || !(**(**uint8)(__ccgo_up(pat + uintptr(k))) != 0) { + break + } + } + goto _1 + _1: + ; + k = k + 1 + } + if k == m || !(**(**uint8)(__ccgo_up(pat + uintptr(k))) != 0) { + **(**Tsize_t)(__ccgo_up(step)) = uint32(1) + return int32('[') + } + **(**Tsize_t)(__ccgo_up(step)) = k + uint32(1) + return -int32(3) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(pat))) == int32('*') { + return -int32(5) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(pat))) == int32('?') { + return -int32(4) + } + goto escaped +escaped: + ; + if uint32(**(**uint8)(__ccgo_up(pat))) >= uint32(128) { + k1 = Xmbtowc(tls, bp, pat, m) + if k1 < 0 { + **(**Tsize_t)(__ccgo_up(step)) = uint32(0) + return -int32(2) + } + **(**Tsize_t)(__ccgo_up(step)) = Uint32FromInt32(k1 + esc) + return Int32FromUint32(**(**Twchar_t)(__ccgo_up(bp))) + } + return Int32FromUint8(**(**uint8)(__ccgo_up(pat))) +} + +func _casefold(tls *TLS, k int32) (r int32) { + var c int32 + var v1 uint32 + _, _ = c, v1 + c = Int32FromUint32(Xtowupper(tls, Uint32FromInt32(k))) + if c == k { + v1 = Xtowlower(tls, Uint32FromInt32(k)) + } else { + v1 = Uint32FromInt32(c) + } + return Int32FromUint32(v1) +} + +func _match_bracket(tls *TLS, p uintptr, k int32, kfold int32) (r int32) { + bp := tls.Alloc(32) + defer tls.Free(32) + var inv, l, l1, z int32 + var p0 uintptr + var _ /* buf at bp+8 */ [16]uint8 + var _ /* wc at bp+0 */ Twchar_t + var _ /* wc2 at bp+4 */ Twchar_t + _, _, _, _, _ = inv, l, l1, p0, z + inv = 0 + p = p + 1 + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('^') || Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('!') { + inv = int32(1) + p = p + 1 + } + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32(']') { + if k == int32(']') { + return BoolInt32(!(inv != 0)) + } + p = p + 1 + } else { + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('-') { + if k == int32('-') { + return BoolInt32(!(inv != 0)) + } + p = p + 1 + } + } + **(**Twchar_t)(__ccgo_up(bp)) = uint32(**(**uint8)(__ccgo_up(p + uintptr(-Int32FromInt32(1))))) + for { + if !(Int32FromUint8(**(**uint8)(__ccgo_up(p))) != int32(']')) { + break + } + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('-') && Int32FromUint8(**(**uint8)(__ccgo_up(p + 1))) != int32(']') { + l = Xmbtowc(tls, bp+4, p+uintptr(1), uint32(4)) + if l < 0 { + return 0 + } + if **(**Twchar_t)(__ccgo_up(bp)) <= **(**Twchar_t)(__ccgo_up(bp + 4)) { + if Uint32FromInt32(k)-**(**Twchar_t)(__ccgo_up(bp)) <= **(**Twchar_t)(__ccgo_up(bp + 4))-**(**Twchar_t)(__ccgo_up(bp)) || Uint32FromInt32(kfold)-**(**Twchar_t)(__ccgo_up(bp)) <= **(**Twchar_t)(__ccgo_up(bp + 4))-**(**Twchar_t)(__ccgo_up(bp)) { + return BoolInt32(!(inv != 0)) + } + } + p = p + uintptr(l-int32(1)) + goto _1 + } + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('[') && (Int32FromUint8(**(**uint8)(__ccgo_up(p + 1))) == int32(':') || Int32FromUint8(**(**uint8)(__ccgo_up(p + 1))) == int32('.') || Int32FromUint8(**(**uint8)(__ccgo_up(p + 1))) == int32('=')) { + p0 = p + uintptr(2) + z = Int32FromUint8(**(**uint8)(__ccgo_up(p + 1))) + p = p + uintptr(3) + for Int32FromUint8(**(**uint8)(__ccgo_up(p + uintptr(-Int32FromInt32(1))))) != z || Int32FromUint8(**(**uint8)(__ccgo_up(p))) != int32(']') { + p = p + 1 + } + if z == int32(':') && int32(p-uintptr(1))-int32(p0) < int32(16) { + _memcpy(tls, bp+8, p0, Uint32FromInt32(int32(p-uintptr(1))-int32(p0))) + (**(**[16]uint8)(__ccgo_up(bp + 8)))[int32(p-uintptr(1))-int32(p0)] = uint8(0) + if Xiswctype(tls, Uint32FromInt32(k), Xwctype(tls, bp+8)) != 0 || Xiswctype(tls, Uint32FromInt32(kfold), Xwctype(tls, bp+8)) != 0 { + return BoolInt32(!(inv != 0)) + } + } + goto _1 + } + if uint32(**(**uint8)(__ccgo_up(p))) < uint32(128) { + **(**Twchar_t)(__ccgo_up(bp)) = uint32(uint8(**(**uint8)(__ccgo_up(p)))) + } else { + l1 = Xmbtowc(tls, bp, p, uint32(4)) + if l1 < 0 { + return 0 + } + p = p + uintptr(l1-int32(1)) + } + if **(**Twchar_t)(__ccgo_up(bp)) == Uint32FromInt32(k) || **(**Twchar_t)(__ccgo_up(bp)) == Uint32FromInt32(kfold) { + return BoolInt32(!(inv != 0)) + } + goto _1 + _1: + ; + p = p + 1 + } + return inv +} + +func _fnmatch_internal(tls *TLS, pat uintptr, m Tsize_t, str uintptr, n Tsize_t, flags int32) (r int32) { + bp := tls.Alloc(16) + defer tls.Free(16) + var c, k, kfold, v2 int32 + var endpat, endstr, p, ptail, s, stail, v6 uintptr + var tailcnt Tsize_t + var v9 bool + var _ /* pinc at bp+0 */ Tsize_t + var _ /* sinc at bp+4 */ Tsize_t + _, _, _, _, _, _, _, _, _, _, _, _, _ = c, endpat, endstr, k, kfold, p, ptail, s, stail, tailcnt, v2, v6, v9 + tailcnt = uint32(0) + if flags&int32(FNM_PERIOD) != 0 { + if Int32FromUint8(**(**uint8)(__ccgo_up(str))) == int32('.') && Int32FromUint8(**(**uint8)(__ccgo_up(pat))) != int32('.') { + return int32(FNM_NOMATCH) + } + } + for { + v2 = _pat_next(tls, pat, m, bp, flags) + c = v2 + switch v2 { + case -int32(2): + return int32(FNM_NOMATCH) + case -int32(5): + pat = pat + 1 + m = m - 1 + default: + k = _str_next(tls, str, n, bp+4) + if k <= 0 { + if c == END { + v2 = 0 + } else { + v2 = int32(FNM_NOMATCH) + } + return v2 + } + str = str + uintptr(**(**Tsize_t)(__ccgo_up(bp + 4))) + n = n - **(**Tsize_t)(__ccgo_up(bp + 4)) + if flags&int32(FNM_CASEFOLD) != 0 { + v2 = _casefold(tls, k) + } else { + v2 = k + } + kfold = v2 + if c == -int32(3) { + if !(_match_bracket(tls, pat, k, kfold) != 0) { + return int32(FNM_NOMATCH) + } + } else { + if c != -int32(4) && k != c && kfold != c { + return int32(FNM_NOMATCH) + } + } + pat = pat + uintptr(**(**Tsize_t)(__ccgo_up(bp))) + m = m - **(**Tsize_t)(__ccgo_up(bp)) + goto _1 + } + break + goto _1 + _1: + } + /* Compute real pat length if it was initially unknown/-1 */ + m = Xstrnlen(tls, pat, m) + endpat = pat + uintptr(m) + /* Find the last * in pat and count chars needed after it */ + v6 = pat + ptail = v6 + p = v6 + for { + if !(p < endpat) { + break + } + switch _pat_next(tls, p, Uint32FromInt32(int32(endpat)-int32(p)), bp, flags) { + case -int32(2): + return int32(FNM_NOMATCH) + case -int32(5): + tailcnt = uint32(0) + ptail = p + uintptr(1) + default: + tailcnt = tailcnt + 1 + break + } + goto _5 + _5: + ; + p = p + uintptr(**(**Tsize_t)(__ccgo_up(bp))) + } + /* Past this point we need not check for UNMATCHABLE in pat, + * because all of pat has already been parsed once. */ + /* Compute real str length if it was initially unknown/-1 */ + n = Xstrnlen(tls, str, n) + endstr = str + uintptr(n) + if n < tailcnt { + return int32(FNM_NOMATCH) + } + /* Find the final tailcnt chars of str, accounting for UTF-8. + * On illegal sequences we may get it wrong, but in that case + * we necessarily have a matching failure anyway. */ + s = endstr + for { + if !(s > str && tailcnt != 0) { + break + } + if v9 = uint32(**(**uint8)(__ccgo_up(s + uintptr(-Int32FromInt32(1))))) < uint32(128); !v9 { + if !!(**(**uintptr)(__ccgo_up((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale)) != 0) { + v2 = int32(4) + } else { + v2 = int32(1) + } + } + if v9 || v2 == int32(1) { + s = s - 1 + } else { + for { + s = s - 1 + v6 = s + if !(uint32(uint8(**(**uint8)(__ccgo_up(v6))))-uint32(0x80) < uint32(0x40) && s > str) { + break + } + } + } + goto _7 + _7: + ; + tailcnt = tailcnt - 1 + } + if tailcnt != 0 { + return int32(FNM_NOMATCH) + } + stail = s + /* Check that the pat and str tails match */ + p = ptail + for { + c = _pat_next(tls, p, Uint32FromInt32(int32(endpat)-int32(p)), bp, flags) + p = p + uintptr(**(**Tsize_t)(__ccgo_up(bp))) + v2 = _str_next(tls, s, Uint32FromInt32(int32(endstr)-int32(s)), bp+4) + k = v2 + if v2 <= 0 { + if c != END { + return int32(FNM_NOMATCH) + } + break + } + s = s + uintptr(**(**Tsize_t)(__ccgo_up(bp + 4))) + if flags&int32(FNM_CASEFOLD) != 0 { + v2 = _casefold(tls, k) + } else { + v2 = k + } + kfold = v2 + if c == -int32(3) { + if !(_match_bracket(tls, p-uintptr(**(**Tsize_t)(__ccgo_up(bp))), k, kfold) != 0) { + return int32(FNM_NOMATCH) + } + } else { + if c != -int32(4) && k != c && kfold != c { + return int32(FNM_NOMATCH) + } + } + goto _11 + _11: + } + /* We're all done with the tails now, so throw them out */ + endstr = stail + endpat = ptail + /* Match pattern components until there are none left */ + for pat < endpat { + p = pat + s = str + for { + c = _pat_next(tls, p, Uint32FromInt32(int32(endpat)-int32(p)), bp, flags) + p = p + uintptr(**(**Tsize_t)(__ccgo_up(bp))) + /* Encountering * completes/commits a component */ + if c == -int32(5) { + pat = p + str = s + break + } + k = _str_next(tls, s, Uint32FromInt32(int32(endstr)-int32(s)), bp+4) + if !(k != 0) { + return int32(FNM_NOMATCH) + } + if flags&int32(FNM_CASEFOLD) != 0 { + v2 = _casefold(tls, k) + } else { + v2 = k + } + kfold = v2 + if c == -int32(3) { + if !(_match_bracket(tls, p-uintptr(**(**Tsize_t)(__ccgo_up(bp))), k, kfold) != 0) { + break + } + } else { + if c != -int32(4) && k != c && kfold != c { + break + } + } + s = s + uintptr(**(**Tsize_t)(__ccgo_up(bp + 4))) + goto _14 + _14: + } + if c == -int32(5) { + continue + } + /* If we failed, advance str, by 1 char if it's a valid + * char, or past all invalid bytes otherwise. */ + k = _str_next(tls, str, Uint32FromInt32(int32(endstr)-int32(str)), bp+4) + if k > 0 { + str = str + uintptr(**(**Tsize_t)(__ccgo_up(bp + 4))) + } else { + str = str + 1 + for { + if !(_str_next(tls, str, Uint32FromInt32(int32(endstr)-int32(str)), bp+4) < 0) { + break + } + goto _16 + _16: + ; + str = str + 1 + } + } + } + return 0 +} + +func Xfnmatch(tls *TLS, pat uintptr, str uintptr, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v pat=%v str=%v flags=%v, (%v:)", tls, pat, str, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var c, v4 int32 + var p, s uintptr + var _ /* inc at bp+0 */ Tsize_t + _, _, _, _ = c, p, s, v4 + if flags&int32(FNM_PATHNAME) != 0 { + for { + s = str + for { + if !(**(**uint8)(__ccgo_up(s)) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(s))) != int32('/')) { + break + } + goto _2 + _2: + ; + s = s + 1 + } + p = pat + for { + v4 = _pat_next(tls, p, Uint32FromInt32(-Int32FromInt32(1)), bp, flags) + c = v4 + if !(v4 != END && c != int32('/')) { + break + } + goto _3 + _3: + ; + p = p + uintptr(**(**Tsize_t)(__ccgo_up(bp))) + } + if c != Int32FromUint8(**(**uint8)(__ccgo_up(s))) && (!(**(**uint8)(__ccgo_up(s)) != 0) || !(flags&Int32FromInt32(FNM_LEADING_DIR) != 0)) { + return int32(FNM_NOMATCH) + } + if _fnmatch_internal(tls, pat, Uint32FromInt32(int32(p)-int32(pat)), str, Uint32FromInt32(int32(s)-int32(str)), flags) != 0 { + return int32(FNM_NOMATCH) + } + if !(c != 0) { + return 0 + } + str = s + uintptr(1) + pat = p + uintptr(**(**Tsize_t)(__ccgo_up(bp))) + goto _1 + _1: + } + } else { + if flags&int32(FNM_LEADING_DIR) != 0 { + s = str + for { + if !(**(**uint8)(__ccgo_up(s)) != 0) { + break + } + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) != int32('/') { + goto _5 + } + if !(_fnmatch_internal(tls, pat, Uint32FromInt32(-Int32FromInt32(1)), str, Uint32FromInt32(int32(s)-int32(str)), flags) != 0) { + return 0 + } + goto _5 + _5: + ; + s = s + 1 + } + } + } + return _fnmatch_internal(tls, pat, Uint32FromInt32(-Int32FromInt32(1)), str, Uint32FromInt32(-Int32FromInt32(1)), flags) +} + +const GLOB_ABORTED = 2 +const GLOB_APPEND = 32 +const GLOB_DOOFFS = 8 +const GLOB_ERR = 1 +const GLOB_MARK = 2 +const GLOB_NOCHECK = 16 +const GLOB_NOESCAPE = 64 +const GLOB_NOMATCH = 3 +const GLOB_NOSORT = 4 +const GLOB_NOSPACE = 1 +const GLOB_NOSYS = 4 +const GLOB_PERIOD = 128 +const GLOB_TILDE = 4096 +const GLOB_TILDE_CHECK = 16384 + +type Tglob_t = struct { + Fgl_pathc Tsize_t + Fgl_pathv uintptr + Fgl_offs Tsize_t + F__dummy1 int32 + F__dummy2 [5]uintptr +} + +type Tmatch = struct { + Fnext uintptr +} + +func _append(tls *TLS, tail uintptr, name uintptr, len1 Tsize_t, mark int32) (r int32) { + var new1 uintptr + _ = new1 + new1 = Xmalloc(tls, uint32(4)+len1+uint32(2)) + if !(new1 != 0) { + return -int32(1) + } + (*Tmatch)(unsafe.Pointer(**(**uintptr)(__ccgo_up(tail)))).Fnext = new1 + (*Tmatch)(unsafe.Pointer(new1)).Fnext = UintptrFromInt32(0) + _memcpy(tls, new1+4, name, len1+uint32(1)) + if mark != 0 && len1 != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(name + uintptr(len1-uint32(1))))) != int32('/') { + *(*uint8)(unsafe.Pointer(new1 + 4 + uintptr(len1))) = uint8('/') + *(*uint8)(unsafe.Pointer(new1 + 4 + uintptr(len1+uint32(1)))) = uint8(0) + } + **(**uintptr)(__ccgo_up(tail)) = new1 + return 0 +} + +func _do_glob(tls *TLS, buf uintptr, pos Tsize_t, type1 int32, pat uintptr, flags int32, __ccgo_fp_errfunc uintptr, tail uintptr) (r1 int32) { + bp := tls.Alloc(160) + defer tls.Free(160) + var de, dir, p, p2, v2 uintptr + var fnm_flags, in_bracket, old_errno, overflow, r, readerr, v10, v9 int32 + var i, j, v4 Tptrdiff_t + var l, v1 Tsize_t + var saved_sep uint8 + var _ /* st at bp+0 */ Tstat + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = de, dir, fnm_flags, i, in_bracket, j, l, old_errno, overflow, p, p2, r, readerr, saved_sep, v1, v10, v2, v4, v9 + /* If GLOB_MARK is unused, we don't care about type. */ + if !(type1 != 0) && !(flags&Int32FromInt32(GLOB_MARK) != 0) { + type1 = int32(DT_REG) + } + /* Special-case the remaining pattern being all slashes, in + * which case we can use caller-passed type if it's a dir. */ + if **(**uint8)(__ccgo_up(pat)) != 0 && type1 != int32(DT_DIR) { + type1 = 0 + } + for pos+uint32(1) < uint32(PATH_MAX) && Int32FromUint8(**(**uint8)(__ccgo_up(pat))) == int32('/') { + v1 = pos + pos = pos + 1 + v2 = pat + pat = pat + 1 + **(**uint8)(__ccgo_up(buf + uintptr(v1))) = **(**uint8)(__ccgo_up(v2)) + } + /* Consume maximal [escaped-]literal prefix of pattern, copying + * and un-escaping it to the running buffer as we go. */ + i = 0 + j = 0 + in_bracket = 0 + overflow = 0 + for { + if !(Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(i)))) != int32('*') && Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(i)))) != int32('?') && (!(in_bracket != 0) || Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(i)))) != int32(']'))) { + break + } + if !(**(**uint8)(__ccgo_up(pat + uintptr(i))) != 0) { + if overflow != 0 { + return 0 + } + pat = pat + uintptr(i) + pos = pos + Uint32FromInt32(j) + v4 = Int32FromInt32(0) + j = v4 + i = v4 + break + } else { + if Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(i)))) == int32('[') { + in_bracket = int32(1) + } else { + if Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(i)))) == int32('\\') && !(flags&Int32FromInt32(GLOB_NOESCAPE) != 0) { + /* Backslashes inside a bracket are (at least by + * our interpretation) non-special, so if next + * char is ']' we have a complete expression. */ + if in_bracket != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(i+int32(1))))) == int32(']') { + break + } + /* Unpaired final backslash never matches. */ + if !(**(**uint8)(__ccgo_up(pat + uintptr(i+int32(1)))) != 0) { + return 0 + } + i = i + 1 + } + } + } + if Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(i)))) == int32('/') { + if overflow != 0 { + return 0 + } + in_bracket = 0 + pat = pat + uintptr(i+int32(1)) + i = -int32(1) + pos = pos + Uint32FromInt32(j+int32(1)) + j = -int32(1) + } + /* Only store a character if it fits in the buffer, but if + * a potential bracket expression is open, the overflow + * must be remembered and handled later only if the bracket + * is unterminated (and thereby a literal), so as not to + * disallow long bracket expressions with short matches. */ + if pos+Uint32FromInt32(j+Int32FromInt32(1)) < uint32(PATH_MAX) { + v4 = j + j = j + 1 + **(**uint8)(__ccgo_up(buf + uintptr(pos+Uint32FromInt32(v4)))) = **(**uint8)(__ccgo_up(pat + uintptr(i))) + } else { + if in_bracket != 0 { + overflow = int32(1) + } else { + return 0 + } + } + /* If we consume any new components, the caller-passed type + * or dummy type from above is no longer valid. */ + type1 = 0 + goto _3 + _3: + ; + i = i + 1 + } + **(**uint8)(__ccgo_up(buf + uintptr(pos))) = uint8(0) + if !(**(**uint8)(__ccgo_up(pat)) != 0) { + if flags&int32(GLOB_MARK) != 0 && (!(type1 != 0) || type1 == int32(DT_LNK)) && !(Xstat(tls, buf, bp) != 0) { + if (**(**Tstat)(__ccgo_up(bp))).Fst_mode&uint32(S_IFMT) == uint32(S_IFDIR) { + type1 = int32(DT_DIR) + } else { + type1 = int32(DT_REG) + } + } + if !(type1 != 0) && Xlstat(tls, buf, bp) != 0 { + if **(**int32)(__ccgo_up(X__errno_location(tls))) != int32(ENOENT) && ((*(*func(*TLS, uintptr, int32) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_errfunc})))(tls, buf, **(**int32)(__ccgo_up(X__errno_location(tls)))) != 0 || flags&int32(GLOB_ERR) != 0) { + return int32(GLOB_ABORTED) + } + return 0 + } + if _append(tls, tail, buf, pos, BoolInt32(flags&int32(GLOB_MARK) != 0 && type1 == int32(DT_DIR))) != 0 { + return int32(GLOB_NOSPACE) + } + return 0 + } + p2 = Xstrchr(tls, pat, int32('/')) + saved_sep = uint8('/') + /* Check if the '/' was escaped and, if so, remove the escape char + * so that it will not be unpaired when passed to fnmatch. */ + if p2 != 0 && !(flags&Int32FromInt32(GLOB_NOESCAPE) != 0) { + p = p2 + for { + if !(p > pat && Int32FromUint8(**(**uint8)(__ccgo_up(p + uintptr(-Int32FromInt32(1))))) == int32('\\')) { + break + } + goto _6 + _6: + ; + p = p - 1 + } + if (int32(p2)-int32(p))%int32(2) != 0 { + p2 = p2 - 1 + saved_sep = uint8('\\') + } + } + if pos != 0 { + v2 = buf + } else { + v2 = __ccgo_ts + 483 + } + dir = Xopendir(tls, v2) + if !(dir != 0) { + if (*(*func(*TLS, uintptr, int32) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_errfunc})))(tls, buf, **(**int32)(__ccgo_up(X__errno_location(tls)))) != 0 || flags&int32(GLOB_ERR) != 0 { + return int32(GLOB_ABORTED) + } + return 0 + } + old_errno = **(**int32)(__ccgo_up(X__errno_location(tls))) + for { + **(**int32)(__ccgo_up(X__errno_location(tls))) = 0 + v2 = Xreaddir(tls, dir) + de = v2 + if !(v2 != 0) { + break + } + /* Quickly skip non-directories when there's pattern left. */ + if p2 != 0 && (*Tdirent)(unsafe.Pointer(de)).Fd_type != 0 && Int32FromUint8((*Tdirent)(unsafe.Pointer(de)).Fd_type) != int32(DT_DIR) && Int32FromUint8((*Tdirent)(unsafe.Pointer(de)).Fd_type) != int32(DT_LNK) { + continue + } + l = _strlen(tls, de+19) + if l >= uint32(PATH_MAX)-pos { + continue + } + if p2 != 0 { + **(**uint8)(__ccgo_up(p2)) = uint8(0) + } + if flags&int32(GLOB_NOESCAPE) != 0 { + v9 = int32(FNM_NOESCAPE) + } else { + v9 = 0 + } + if !(flags&Int32FromInt32(GLOB_PERIOD) != 0) { + v10 = int32(FNM_PERIOD) + } else { + v10 = 0 + } + fnm_flags = v9 | v10 + if Xfnmatch(tls, pat, de+19, fnm_flags) != 0 { + continue + } + /* With GLOB_PERIOD, don't allow matching . or .. unless + * fnmatch would match them with FNM_PERIOD rules in effect. */ + if p2 != 0 && flags&int32(GLOB_PERIOD) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(de + 19))) == int32('.') && (!(**(**uint8)(__ccgo_up(de + 19 + 1)) != 0) || Int32FromUint8(**(**uint8)(__ccgo_up(de + 19 + 1))) == int32('.') && !(**(**uint8)(__ccgo_up(de + 19 + 2)) != 0)) && Xfnmatch(tls, pat, de+19, fnm_flags|int32(FNM_PERIOD)) != 0 { + continue + } + _memcpy(tls, buf+uintptr(pos), de+19, l+uint32(1)) + if p2 != 0 { + **(**uint8)(__ccgo_up(p2)) = saved_sep + } + if p2 != 0 { + v2 = p2 + } else { + v2 = __ccgo_ts + } + r = _do_glob(tls, buf, pos+l, Int32FromUint8((*Tdirent)(unsafe.Pointer(de)).Fd_type), v2, flags, __ccgo_fp_errfunc, tail) + if r != 0 { + Xclosedir(tls, dir) + return r + } + } + readerr = **(**int32)(__ccgo_up(X__errno_location(tls))) + if p2 != 0 { + **(**uint8)(__ccgo_up(p2)) = saved_sep + } + Xclosedir(tls, dir) + if readerr != 0 && ((*(*func(*TLS, uintptr, int32) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_errfunc})))(tls, buf, **(**int32)(__ccgo_up(X__errno_location(tls)))) != 0 || flags&int32(GLOB_ERR) != 0) { + return int32(GLOB_ABORTED) + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = old_errno + return 0 +} + +func _ignore_err(tls *TLS, path uintptr, err int32) (r int32) { + return 0 +} + +func _freelist(tls *TLS, head uintptr) { + var match, next uintptr + _, _ = match, next + match = (*Tmatch)(unsafe.Pointer(head)).Fnext + for { + if !(match != 0) { + break + } + next = (*Tmatch)(unsafe.Pointer(match)).Fnext + Xfree(tls, match) + goto _1 + _1: + ; + match = next + } +} + +func _sort(tls *TLS, a uintptr, b uintptr) (r int32) { + return Xstrcmp(tls, **(**uintptr)(__ccgo_up(a)), **(**uintptr)(__ccgo_up(b))) +} + +func _expand_tilde(tls *TLS, pat uintptr, buf uintptr, pos uintptr) (r int32) { + bp := tls.Alloc(32) + defer tls.Free(32) + var delim, v1 uint8 + var home, name_end, p, v2 uintptr + var i, v10 Tsize_t + var v4 int32 + var _ /* pw at bp+0 */ Tpasswd + var _ /* res at bp+28 */ uintptr + _, _, _, _, _, _, _, _, _ = delim, home, i, name_end, p, v1, v10, v2, v4 + p = **(**uintptr)(__ccgo_up(pat)) + uintptr(1) + i = uint32(0) + name_end = X__strchrnul(tls, p, int32('/')) + v1 = **(**uint8)(__ccgo_up(name_end)) + delim = v1 + if v1 != 0 { + v2 = name_end + name_end = name_end + 1 + **(**uint8)(__ccgo_up(v2)) = uint8(0) + } + **(**uintptr)(__ccgo_up(pat)) = name_end + if **(**uint8)(__ccgo_up(p)) != 0 { + v2 = UintptrFromInt32(0) + } else { + v2 = Xgetenv(tls, __ccgo_ts+1310) + } + home = v2 + if !(home != 0) { + if **(**uint8)(__ccgo_up(p)) != 0 { + v4 = Xgetpwnam_r(tls, p, bp, buf, uint32(PATH_MAX), bp+28) + } else { + v4 = Xgetpwuid_r(tls, Xgetuid(tls), bp, buf, uint32(PATH_MAX), bp+28) + } + switch v4 { + case int32(ENOMEM): + goto _5 + default: + goto _6 + case 0: + goto _7 + } + goto _8 + _5: + ; + return int32(GLOB_NOSPACE) + _7: + ; + if !!(**(**uintptr)(__ccgo_up(bp + 28)) != 0) { + goto _9 + } + _6: + ; + return int32(GLOB_NOMATCH) + _9: + ; + _8: + ; + home = (**(**Tpasswd)(__ccgo_up(bp))).Fpw_dir + } + for i < Uint32FromInt32(Int32FromInt32(PATH_MAX)-Int32FromInt32(2)) && **(**uint8)(__ccgo_up(home)) != 0 { + v10 = i + i = i + 1 + v2 = home + home = home + 1 + **(**uint8)(__ccgo_up(buf + uintptr(v10))) = **(**uint8)(__ccgo_up(v2)) + } + if **(**uint8)(__ccgo_up(home)) != 0 { + return int32(GLOB_NOMATCH) + } + v1 = delim + **(**uint8)(__ccgo_up(buf + uintptr(i))) = v1 + if v1 != 0 { + i = i + 1 + v10 = i + **(**uint8)(__ccgo_up(buf + uintptr(v10))) = uint8(0) + } + **(**Tsize_t)(__ccgo_up(pos)) = i + return 0 +} + +type t__ccgo_fp__Xglob_2 = func(*TLS, uintptr, int32) int32 + +func Xglob(tls *TLS, pat uintptr, flags int32, __ccgo_fp_errfunc uintptr, g uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v pat=%v flags=%v __ccgo_fp_errfunc=%v g=%v, (%v:)", tls, pat, flags, __ccgo_fp_errfunc, g, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(4112) + defer tls.Free(4112) + var cnt, i, offs Tsize_t + var error1 int32 + var p, pathv uintptr + var v1 uint32 + var _ /* buf at bp+8 */ [4096]uint8 + var _ /* head at bp+0 */ Tmatch + var _ /* pos at bp+4104 */ Tsize_t + var _ /* s at bp+4108 */ uintptr + var _ /* tail at bp+4 */ uintptr + _, _, _, _, _, _, _ = cnt, error1, i, offs, p, pathv, v1 + **(**Tmatch)(__ccgo_up(bp)) = struct { + Fnext uintptr + }{} + **(**uintptr)(__ccgo_up(bp + 4)) = bp + if flags&int32(GLOB_DOOFFS) != 0 { + v1 = (*Tglob_t)(unsafe.Pointer(g)).Fgl_offs + } else { + v1 = uint32(0) + } + offs = v1 + error1 = 0 + if !(__ccgo_fp_errfunc != 0) { + __ccgo_fp_errfunc = __ccgo_fp(_ignore_err) + } + if !(flags&Int32FromInt32(GLOB_APPEND) != 0) { + (*Tglob_t)(unsafe.Pointer(g)).Fgl_offs = offs + (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathc = uint32(0) + (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv = UintptrFromInt32(0) + } + if **(**uint8)(__ccgo_up(pat)) != 0 { + p = Xstrdup(tls, pat) + if !(p != 0) { + return int32(GLOB_NOSPACE) + } + (**(**[4096]uint8)(__ccgo_up(bp + 8)))[0] = uint8(0) + **(**Tsize_t)(__ccgo_up(bp + 4104)) = uint32(0) + **(**uintptr)(__ccgo_up(bp + 4108)) = p + if flags&(Int32FromInt32(GLOB_TILDE)|Int32FromInt32(GLOB_TILDE_CHECK)) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('~') { + error1 = _expand_tilde(tls, bp+4108, bp+8, bp+4104) + } + if !(error1 != 0) { + error1 = _do_glob(tls, bp+8, **(**Tsize_t)(__ccgo_up(bp + 4104)), 0, **(**uintptr)(__ccgo_up(bp + 4108)), flags, __ccgo_fp_errfunc, bp+4) + } + Xfree(tls, p) + } + if error1 == int32(GLOB_NOSPACE) { + _freelist(tls, bp) + return error1 + } + cnt = uint32(0) + **(**uintptr)(__ccgo_up(bp + 4)) = (**(**Tmatch)(__ccgo_up(bp))).Fnext + for { + if !(**(**uintptr)(__ccgo_up(bp + 4)) != 0) { + break + } + goto _2 + _2: + ; + **(**uintptr)(__ccgo_up(bp + 4)) = (*Tmatch)(unsafe.Pointer(**(**uintptr)(__ccgo_up(bp + 4)))).Fnext + cnt = cnt + 1 + } + if !(cnt != 0) { + if flags&int32(GLOB_NOCHECK) != 0 { + **(**uintptr)(__ccgo_up(bp + 4)) = bp + if _append(tls, bp+4, pat, _strlen(tls, pat), 0) != 0 { + return int32(GLOB_NOSPACE) + } + cnt = cnt + 1 + } else { + if !(error1 != 0) { + return int32(GLOB_NOMATCH) + } + } + } + if flags&int32(GLOB_APPEND) != 0 { + pathv = Xrealloc(tls, (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv, (offs+(*Tglob_t)(unsafe.Pointer(g)).Fgl_pathc+cnt+uint32(1))*uint32(4)) + if !(pathv != 0) { + _freelist(tls, bp) + return int32(GLOB_NOSPACE) + } + (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv = pathv + offs = offs + (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathc + } else { + (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv = Xmalloc(tls, (offs+cnt+uint32(1))*uint32(4)) + if !((*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv != 0) { + _freelist(tls, bp) + return int32(GLOB_NOSPACE) + } + i = uint32(0) + for { + if !(i < offs) { + break + } + **(**uintptr)(__ccgo_up((*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv + uintptr(i)*4)) = UintptrFromInt32(0) + goto _3 + _3: + ; + i = i + 1 + } + } + i = uint32(0) + **(**uintptr)(__ccgo_up(bp + 4)) = (**(**Tmatch)(__ccgo_up(bp))).Fnext + for { + if !(i < cnt) { + break + } + **(**uintptr)(__ccgo_up((*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv + uintptr(offs+i)*4)) = **(**uintptr)(__ccgo_up(bp + 4)) + 4 + goto _4 + _4: + ; + **(**uintptr)(__ccgo_up(bp + 4)) = (*Tmatch)(unsafe.Pointer(**(**uintptr)(__ccgo_up(bp + 4)))).Fnext + i = i + 1 + } + **(**uintptr)(__ccgo_up((*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv + uintptr(offs+i)*4)) = UintptrFromInt32(0) + **(**Tsize_t)(__ccgo_up(g)) += cnt + if !(flags&Int32FromInt32(GLOB_NOSORT) != 0) { + Xqsort(tls, (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv+uintptr(offs)*4, cnt, uint32(4), __ccgo_fp(_sort)) + } + return error1 +} + +func Xglobfree(tls *TLS, g uintptr) { + if __ccgo_strace { + trc("tls=%v g=%v, (%v:)", tls, g, origin(2)) + } + var i Tsize_t + _ = i + i = uint32(0) + for { + if !(i < (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathc) { + break + } + Xfree(tls, **(**uintptr)(__ccgo_up((*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv + uintptr((*Tglob_t)(unsafe.Pointer(g)).Fgl_offs+i)*4))-uintptr(uint32(UintptrFromInt32(0)+4))) + goto _1 + _1: + ; + i = i + 1 + } + Xfree(tls, (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv) + (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathc = uint32(0) + (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv = UintptrFromInt32(0) +} + +const ASSERTION = -2 +const ASSERT_AT_BOL = 1 +const ASSERT_AT_BOW = 16 +const ASSERT_AT_EOL = 2 +const ASSERT_AT_EOW = 32 +const ASSERT_AT_WB = 64 +const ASSERT_AT_WB_NEG = 128 +const ASSERT_BACKREF = 256 +const ASSERT_CHAR_CLASS = 4 +const ASSERT_CHAR_CLASS_NEG = 8 +const ASSERT_LAST = 256 +const BACKREF = -4 +const COPY_MAXIMIZE_FIRST_TAG = 2 +const COPY_REMOVE_TAGS = 1 +const EMPTY1 = -1 +const MAX_NEG_CLASSES = 64 +const REG_BADBR = 10 +const REG_BADPAT = 2 +const REG_BADRPT = 13 +const REG_EBRACE = 9 +const REG_EBRACK = 7 +const REG_ECOLLATE = 3 +const REG_ECTYPE = 4 +const REG_EESCAPE = 5 +const REG_ENOSYS = -1 +const REG_EPAREN = 8 +const REG_ERANGE = 11 +const REG_ESPACE = 12 +const REG_ESUBREG = 6 +const REG_EXTENDED = 1 +const REG_ICASE = 2 +const REG_NEWLINE = 4 +const REG_NOMATCH = 1 +const REG_NOSUB = 8 +const REG_NOTBOL = 1 +const REG_NOTEOL = 2 +const REG_OK = 0 +const TAG = -3 +const TRE_CHAR_MAX = 1114111 +const TRE_MEM_BLOCK_SIZE = 1024 +const TRE_REGEX_T_FIELD = 0 +const tre_ctype = 0 +const tre_isalnum = 0 +const tre_isalpha = 0 +const tre_isblank = 0 +const tre_iscntrl = 0 +const tre_isctype = 0 +const tre_isdigit = 0 +const tre_isgraph = 0 +const tre_islower = 0 +const tre_isprint = 0 +const tre_ispunct = 0 +const tre_isspace = 0 +const tre_isupper = 0 +const tre_isxdigit = 0 +const tre_mem_alloc_impl = 0 +const tre_mem_destroy = 0 +const tre_mem_new_impl = 0 +const tre_strlen = 0 +const tre_tolower = 0 +const tre_toupper = 0 +const xcalloc = 0 +const xfree = 0 +const xmalloc = 0 +const xrealloc = 0 + +type Tregoff_t = int32 + +type Tregex_t = struct { + Fre_nsub Tsize_t + F__opaque uintptr + F__padding [4]uintptr + F__nsub2 Tsize_t + F__padding2 uint8 +} + +type Tre_pattern_buffer = Tregex_t + +type Tregmatch_t = struct { + Frm_so Tregoff_t + Frm_eo Tregoff_t +} + +type Treg_errcode_t = int32 + +type Ttre_char_t = uint32 + +type Ttre_cint_t = uint32 + +type Ttre_ctype_t = uint32 + +type Ttre_tnfa_transition_t = struct { + Fcode_min Ttre_cint_t + Fcode_max Ttre_cint_t + Fstate uintptr + Fstate_id int32 + Ftags uintptr + Fassertions int32 + Fu struct { + Fbackref [0]int32 + Fclass Ttre_ctype_t + } + Fneg_classes uintptr +} + +type Ttnfa_transition = Ttre_tnfa_transition_t + +type Ttre_tag_direction_t = int32 + +const _TRE_TAG_MINIMIZE = 0 +const _TRE_TAG_MAXIMIZE = 1 + +type Ttre_submatch_data = struct { + Fso_tag int32 + Feo_tag int32 + Fparents uintptr +} + +type Ttre_submatch_data_t = struct { + Fso_tag int32 + Feo_tag int32 + Fparents uintptr +} + +type Ttre_tnfa_t = struct { + Ftransitions uintptr + Fnum_transitions uint32 + Finitial uintptr + Ffinal uintptr + Fsubmatch_data uintptr + Ffirstpos_chars uintptr + Ffirst_char int32 + Fnum_submatches uint32 + Ftag_directions uintptr + Fminimal_tags uintptr + Fnum_tags int32 + Fnum_minimals int32 + Fend_tag int32 + Fnum_states int32 + Fcflags int32 + Fhave_backrefs int32 + Fhave_approx int32 +} + +type Ttnfa = Ttre_tnfa_t + +type Ttre_list_t = struct { + Fdata uintptr + Fnext uintptr +} + +type Ttre_list = Ttre_list_t + +type Ttre_mem_t = uintptr + +type Ttre_mem_struct = struct { + Fblocks uintptr + Fcurrent uintptr + Fptr uintptr + Fn Tsize_t + Ffailed int32 + Fprovided uintptr +} + +/*********************************************************************** + from tre-compile.h +***********************************************************************/ + +type Ttre_pos_and_tags_t = struct { + Fposition int32 + Fcode_min int32 + Fcode_max int32 + Ftags uintptr + Fassertions int32 + Fclass Ttre_ctype_t + Fneg_classes uintptr + Fbackref int32 +} + +/*********************************************************************** + from tre-ast.c and tre-ast.h +***********************************************************************/ + +// C documentation +// +// /* The different AST node types. */ +type Ttre_ast_type_t = int32 + +const _LITERAL = 0 +const _CATENATION = 1 +const _ITERATION = 2 +const _UNION = 3 + +/* Special subtypes of TRE_LITERAL. */ + +// C documentation +// +// /* A generic AST node. All AST nodes consist of this node on the top +// level with `obj' pointing to the actual content. */ +type Ttre_ast_node_t = struct { + Ftype1 Ttre_ast_type_t + Fobj uintptr + Fnullable int32 + Fsubmatch_id int32 + Fnum_submatches int32 + Fnum_tags int32 + Ffirstpos uintptr + Flastpos uintptr +} + +// C documentation +// +// /* A "literal" node. These are created for assertions, back references, +// tags, matching parameter settings, and all expressions that match one +// character. */ +type Ttre_literal_t = struct { + Fcode_min int32 + Fcode_max int32 + Fposition int32 + Fclass Ttre_ctype_t + Fneg_classes uintptr +} + +// C documentation +// +// /* A "catenation" node. These are created when two regexps are concatenated. +// If there are more than one subexpressions in sequence, the `left' part +// holds all but the last, and `right' part holds the last subexpression +// (catenation is left associative). */ +type Ttre_catenation_t = struct { + Fleft uintptr + Fright uintptr +} + +// C documentation +// +// /* An "iteration" node. These are created for the "*", "+", "?", and "{m,n}" +// operators. */ +type Ttre_iteration_t = struct { + Farg uintptr + Fmin int32 + Fmax int32 + F__ccgo12 uint8 +} + +// C documentation +// +// /* An "union" node. These are created for the "|" operator. */ +type Ttre_union_t = struct { + Fleft uintptr + Fright uintptr +} + +func _tre_ast_new_node(tls *TLS, mem Ttre_mem_t, type1 int32, obj uintptr) (r uintptr) { + var node uintptr + _ = node + node = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), int32(1), uint32(32)) + if !(node != 0) || !(obj != 0) { + return uintptr(0) + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj = obj + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 = type1 + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnullable = -int32(1) + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fsubmatch_id = -int32(1) + return node +} + +func _tre_ast_new_literal(tls *TLS, mem Ttre_mem_t, code_min int32, code_max int32, position int32) (r uintptr) { + var lit, node uintptr + _, _ = lit, node + lit = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), int32(1), uint32(20)) + node = _tre_ast_new_node(tls, mem, int32(_LITERAL), lit) + if !(node != 0) { + return uintptr(0) + } + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min = code_min + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max = code_max + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition = position + return node +} + +func _tre_ast_new_iter(tls *TLS, mem Ttre_mem_t, arg uintptr, min int32, max int32, minimal int32) (r uintptr) { + var iter, node uintptr + _, _ = iter, node + iter = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), int32(1), uint32(16)) + node = _tre_ast_new_node(tls, mem, int32(_ITERATION), iter) + if !(node != 0) { + return uintptr(0) + } + (*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg = arg + (*Ttre_iteration_t)(unsafe.Pointer(iter)).Fmin = min + (*Ttre_iteration_t)(unsafe.Pointer(iter)).Fmax = max + SetBitFieldPtr8Uint32(iter+12, Uint32FromInt32(minimal), 0, 0x1) + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_submatches = (*Ttre_ast_node_t)(unsafe.Pointer(arg)).Fnum_submatches + return node +} + +func _tre_ast_new_union(tls *TLS, mem Ttre_mem_t, left uintptr, right uintptr) (r uintptr) { + var node, un uintptr + _, _ = node, un + if !(left != 0) { + return right + } + un = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), int32(1), uint32(8)) + node = _tre_ast_new_node(tls, mem, int32(_UNION), un) + if !(node != 0) || !(right != 0) { + return uintptr(0) + } + (*Ttre_union_t)(unsafe.Pointer(un)).Fleft = left + (*Ttre_union_t)(unsafe.Pointer(un)).Fright = right + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_submatches = (*Ttre_ast_node_t)(unsafe.Pointer(left)).Fnum_submatches + (*Ttre_ast_node_t)(unsafe.Pointer(right)).Fnum_submatches + return node +} + +func _tre_ast_new_catenation(tls *TLS, mem Ttre_mem_t, left uintptr, right uintptr) (r uintptr) { + var cat, node uintptr + _, _ = cat, node + if !(left != 0) { + return right + } + cat = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), int32(1), uint32(8)) + node = _tre_ast_new_node(tls, mem, int32(_CATENATION), cat) + if !(node != 0) { + return uintptr(0) + } + (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft = left + (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright = right + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_submatches = (*Ttre_ast_node_t)(unsafe.Pointer(left)).Fnum_submatches + (*Ttre_ast_node_t)(unsafe.Pointer(right)).Fnum_submatches + return node +} + +/*********************************************************************** + from tre-stack.c and tre-stack.h +***********************************************************************/ + +type Ttre_stack_t = struct { + Fsize int32 + Fmax_size int32 + Fincrement int32 + Fptr int32 + Fstack uintptr +} + +/*********************************************************************** + from tre-stack.c and tre-stack.h +***********************************************************************/ + +type Ttre_stack_rec = Ttre_stack_t + +/* Just to save some typing. */ + +type Ttre_stack_item = struct { + Fint_value [0]int32 + Fvoidptr_value uintptr +} + +func _tre_stack_new(tls *TLS, size int32, max_size int32, increment int32) (r uintptr) { + var s uintptr + _ = s + s = Xmalloc(tls, uint32(20)) + if s != UintptrFromInt32(0) { + (*Ttre_stack_t)(unsafe.Pointer(s)).Fstack = Xmalloc(tls, uint32(4)*Uint32FromInt32(size)) + if (*Ttre_stack_t)(unsafe.Pointer(s)).Fstack == UintptrFromInt32(0) { + Xfree(tls, s) + return UintptrFromInt32(0) + } + (*Ttre_stack_t)(unsafe.Pointer(s)).Fsize = size + (*Ttre_stack_t)(unsafe.Pointer(s)).Fmax_size = max_size + (*Ttre_stack_t)(unsafe.Pointer(s)).Fincrement = increment + (*Ttre_stack_t)(unsafe.Pointer(s)).Fptr = 0 + } + return s +} + +func _tre_stack_destroy(tls *TLS, s uintptr) { + Xfree(tls, (*Ttre_stack_t)(unsafe.Pointer(s)).Fstack) + Xfree(tls, s) +} + +func _tre_stack_num_objects(tls *TLS, s uintptr) (r int32) { + return (*Ttre_stack_t)(unsafe.Pointer(s)).Fptr +} + +func _tre_stack_push(tls *TLS, s uintptr, value Ttre_stack_item) (r Treg_errcode_t) { + var new_buffer uintptr + var new_size int32 + _, _ = new_buffer, new_size + if (*Ttre_stack_t)(unsafe.Pointer(s)).Fptr < (*Ttre_stack_t)(unsafe.Pointer(s)).Fsize { + **(**Ttre_stack_item)(__ccgo_up((*Ttre_stack_t)(unsafe.Pointer(s)).Fstack + uintptr((*Ttre_stack_t)(unsafe.Pointer(s)).Fptr)*4)) = value + (*Ttre_stack_t)(unsafe.Pointer(s)).Fptr = (*Ttre_stack_t)(unsafe.Pointer(s)).Fptr + 1 + } else { + if (*Ttre_stack_t)(unsafe.Pointer(s)).Fsize >= (*Ttre_stack_t)(unsafe.Pointer(s)).Fmax_size { + return int32(REG_ESPACE) + } else { + new_size = (*Ttre_stack_t)(unsafe.Pointer(s)).Fsize + (*Ttre_stack_t)(unsafe.Pointer(s)).Fincrement + if new_size > (*Ttre_stack_t)(unsafe.Pointer(s)).Fmax_size { + new_size = (*Ttre_stack_t)(unsafe.Pointer(s)).Fmax_size + } + new_buffer = Xrealloc(tls, (*Ttre_stack_t)(unsafe.Pointer(s)).Fstack, uint32(4)*Uint32FromInt32(new_size)) + if new_buffer == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + (*Ttre_stack_t)(unsafe.Pointer(s)).Fsize = new_size + (*Ttre_stack_t)(unsafe.Pointer(s)).Fstack = new_buffer + _tre_stack_push(tls, s, value) + } + } + return REG_OK +} + +func _tre_stack_push_int(tls *TLS, s uintptr, value int32) (r Treg_errcode_t) { + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* item at bp+0 */ Ttre_stack_item + *(*int32)(unsafe.Pointer(bp)) = value + return _tre_stack_push(tls, s, **(**Ttre_stack_item)(__ccgo_up(bp))) +} + +func _tre_stack_push_voidptr(tls *TLS, s uintptr, value uintptr) (r Treg_errcode_t) { + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* item at bp+0 */ Ttre_stack_item + *(*uintptr)(unsafe.Pointer(bp)) = value + return _tre_stack_push(tls, s, **(**Ttre_stack_item)(__ccgo_up(bp))) +} + +func _tre_stack_pop_int(tls *TLS, s uintptr) (r int32) { + var v1 int32 + var v2 uintptr + _, _ = v1, v2 + v2 = s + 12 + *(*int32)(unsafe.Pointer(v2)) = *(*int32)(unsafe.Pointer(v2)) - 1 + v1 = *(*int32)(unsafe.Pointer(v2)) + return *(*int32)(unsafe.Pointer((*Ttre_stack_t)(unsafe.Pointer(s)).Fstack + uintptr(v1)*4)) +} + +func _tre_stack_pop_voidptr(tls *TLS, s uintptr) (r uintptr) { + var v1 int32 + var v2 uintptr + _, _ = v1, v2 + v2 = s + 12 + *(*int32)(unsafe.Pointer(v2)) = *(*int32)(unsafe.Pointer(v2)) - 1 + v1 = *(*int32)(unsafe.Pointer(v2)) + return *(*uintptr)(unsafe.Pointer((*Ttre_stack_t)(unsafe.Pointer(s)).Fstack + uintptr(v1)*4)) +} + +/*********************************************************************** + from tre-parse.c and tre-parse.h +***********************************************************************/ + +// C documentation +// +// /* Parse context. */ +type Ttre_parse_ctx_t = struct { + Fmem Ttre_mem_t + Fstack uintptr + Fn uintptr + Fs uintptr + Fstart uintptr + Fsubmatch_id int32 + Fposition int32 + Fmax_backref int32 + Fcflags int32 +} + +// C documentation +// +// /* Some macros for expanding \w, \s, etc. */ +var _tre_macros = [13]struct { + Fc uint8 + Fexpansion uintptr +}{ + 0: { + Fc: uint8('t'), + Fexpansion: __ccgo_ts + 1315, + }, + 1: { + Fc: uint8('n'), + Fexpansion: __ccgo_ts + 301, + }, + 2: { + Fc: uint8('r'), + Fexpansion: __ccgo_ts + 1317, + }, + 3: { + Fc: uint8('f'), + Fexpansion: __ccgo_ts + 1319, + }, + 4: { + Fc: uint8('a'), + Fexpansion: __ccgo_ts + 1321, + }, + 5: { + Fc: uint8('e'), + Fexpansion: __ccgo_ts + 1323, + }, + 6: { + Fc: uint8('w'), + Fexpansion: __ccgo_ts + 1325, + }, + 7: { + Fc: uint8('W'), + Fexpansion: __ccgo_ts + 1338, + }, + 8: { + Fc: uint8('s'), + Fexpansion: __ccgo_ts + 1352, + }, + 9: { + Fc: uint8('S'), + Fexpansion: __ccgo_ts + 1364, + }, + 10: { + Fc: uint8('d'), + Fexpansion: __ccgo_ts + 1377, + }, + 11: { + Fc: uint8('D'), + Fexpansion: __ccgo_ts + 1389, + }, + 12: {}, +} + +// C documentation +// +// /* Expands a macro delimited by `regex' and `regex_end' to `buf', which +// must have at least `len' items. Sets buf[0] to zero if the there +// is no match in `tre_macros'. */ +func _tre_expand_macro(tls *TLS, s uintptr) (r uintptr) { + var i int32 + _ = i + i = 0 + for { + if !(_tre_macros[i].Fc != 0 && Int32FromUint8(_tre_macros[i].Fc) != Int32FromUint8(**(**uint8)(__ccgo_up(s)))) { + break + } + goto _1 + _1: + ; + i = i + 1 + } + return _tre_macros[i].Fexpansion +} + +func _tre_compare_lit(tls *TLS, a uintptr, b uintptr) (r int32) { + var la, lb uintptr + _, _ = la, lb + la = a + lb = b + /* assumes the range of valid code_min is < INT_MAX */ + return (*Ttre_literal_t)(unsafe.Pointer(**(**uintptr)(__ccgo_up(la)))).Fcode_min - (*Ttre_literal_t)(unsafe.Pointer(**(**uintptr)(__ccgo_up(lb)))).Fcode_min +} + +type Tliterals = struct { + Fmem Ttre_mem_t + Fa uintptr + Flen1 int32 + Fcap1 int32 +} + +func _tre_new_lit(tls *TLS, p uintptr) (r uintptr) { + var a, v2 uintptr + var v1 int32 + _, _, _ = a, v1, v2 + if (*Tliterals)(unsafe.Pointer(p)).Flen1 >= (*Tliterals)(unsafe.Pointer(p)).Fcap1 { + if (*Tliterals)(unsafe.Pointer(p)).Fcap1 >= Int32FromInt32(1)< max { + return int32(REG_ERANGE) + } + s = s + uintptr(len1) + } + } + if class != 0 && (*Tneg)(unsafe.Pointer(neg)).Fnegate != 0 { + if (*Tneg)(unsafe.Pointer(neg)).Flen1 >= int32(MAX_NEG_CLASSES) { + return int32(REG_ESPACE) + } + v6 = neg + 4 + v2 = *(*int32)(unsafe.Pointer(v6)) + *(*int32)(unsafe.Pointer(v6)) = *(*int32)(unsafe.Pointer(v6)) + 1 + **(**Ttre_ctype_t)(__ccgo_up(neg + 8 + uintptr(v2)*4)) = class + } else { + lit = _tre_new_lit(tls, ls) + if !(lit != 0) { + return int32(REG_ESPACE) + } + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min = min + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max = max + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fclass = class + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition = -int32(1) + /* Add opposite-case codepoints if REG_ICASE is present. + It seems that POSIX requires that bracket negation + should happen before case-folding, but most practical + implementations do it the other way around. Changing + the order would need efficient representation of + case-fold ranges and bracket range sets even with + simple patterns so this is ok for now. */ + if (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fcflags&int32(REG_ICASE) != 0 && !(class != 0) { + if _add_icase_literals(tls, ls, min, max) != 0 { + return int32(REG_ESPACE) + } + } + } + goto _1 + _1: + } + return r +} + +func _parse_bracket(tls *TLS, ctx uintptr, s uintptr) (r Treg_errcode_t) { + bp := tls.Alloc(288) + defer tls.Free(288) + var err Treg_errcode_t + var i, max, min, negmax, negmin, v1 int32 + var lit, n, nc, node uintptr + var _ /* ls at bp+0 */ Tliterals + var _ /* neg at bp+16 */ Tneg + _, _, _, _, _, _, _, _, _, _, _ = err, i, lit, max, min, n, nc, negmax, negmin, node, v1 + node = uintptr(0) + nc = uintptr(0) + (**(**Tliterals)(__ccgo_up(bp))).Fmem = (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem + (**(**Tliterals)(__ccgo_up(bp))).Flen1 = 0 + (**(**Tliterals)(__ccgo_up(bp))).Fcap1 = int32(32) + (**(**Tliterals)(__ccgo_up(bp))).Fa = Xmalloc(tls, Uint32FromInt32((**(**Tliterals)(__ccgo_up(bp))).Fcap1)*uint32(4)) + if !((**(**Tliterals)(__ccgo_up(bp))).Fa != 0) { + return int32(REG_ESPACE) + } + (**(**Tneg)(__ccgo_up(bp + 16))).Flen1 = 0 + (**(**Tneg)(__ccgo_up(bp + 16))).Fnegate = BoolInt32(Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('^')) + if (**(**Tneg)(__ccgo_up(bp + 16))).Fnegate != 0 { + s = s + 1 + } + err = _parse_bracket_terms(tls, ctx, s, bp, bp+16) + if err != REG_OK { + goto parse_bracket_done + } + if (**(**Tneg)(__ccgo_up(bp + 16))).Fnegate != 0 { + /* + * With REG_NEWLINE, POSIX requires that newlines are not matched by + * any form of a non-matching list. + */ + if (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fcflags&int32(REG_NEWLINE) != 0 { + lit = _tre_new_lit(tls, bp) + if !(lit != 0) { + err = int32(REG_ESPACE) + goto parse_bracket_done + } + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min = int32('\n') + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max = int32('\n') + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition = -int32(1) + } + /* Sort the array if we need to negate it. */ + Xqsort(tls, (**(**Tliterals)(__ccgo_up(bp))).Fa, Uint32FromInt32((**(**Tliterals)(__ccgo_up(bp))).Flen1), uint32(4), __ccgo_fp(_tre_compare_lit)) + /* extra lit for the last negated range */ + lit = _tre_new_lit(tls, bp) + if !(lit != 0) { + err = int32(REG_ESPACE) + goto parse_bracket_done + } + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min = int32(Int32FromInt32(TRE_CHAR_MAX) + Int32FromInt32(1)) + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max = int32(Int32FromInt32(TRE_CHAR_MAX) + Int32FromInt32(1)) + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition = -int32(1) + /* negated classes */ + if (**(**Tneg)(__ccgo_up(bp + 16))).Flen1 != 0 { + nc = X__tre_mem_alloc_impl(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, 0, UintptrFromInt32(0), 0, Uint32FromInt32((**(**Tneg)(__ccgo_up(bp + 16))).Flen1+Int32FromInt32(1))*uint32(4)) + if !(nc != 0) { + err = int32(REG_ESPACE) + goto parse_bracket_done + } + _memcpy(tls, nc, bp+16+8, Uint32FromInt32((**(**Tneg)(__ccgo_up(bp + 16))).Flen1)*uint32(4)) + **(**Ttre_ctype_t)(__ccgo_up(nc + uintptr((**(**Tneg)(__ccgo_up(bp + 16))).Flen1)*4)) = uint32(0) + } + } + /* Build a union of the items in the array, negated if necessary. */ + v1 = Int32FromInt32(0) + negmin = v1 + negmax = v1 + i = 0 + for { + if !(i < (**(**Tliterals)(__ccgo_up(bp))).Flen1) { + break + } + lit = **(**uintptr)(__ccgo_up((**(**Tliterals)(__ccgo_up(bp))).Fa + uintptr(i)*4)) + min = (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min + max = (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max + if (**(**Tneg)(__ccgo_up(bp + 16))).Fnegate != 0 { + if min <= negmin { + /* Overlap. */ + if max+int32(1) >= negmin { + v1 = max + int32(1) + } else { + v1 = negmin + } + negmin = v1 + goto _2 + } + negmax = min - int32(1) + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min = negmin + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max = negmax + negmin = max + int32(1) + } + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition = (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fposition + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fneg_classes = nc + n = _tre_ast_new_node(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, int32(_LITERAL), lit) + node = _tre_ast_new_union(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, node, n) + if !(node != 0) { + err = int32(REG_ESPACE) + break + } + goto _2 + _2: + ; + i = i + 1 + } + goto parse_bracket_done +parse_bracket_done: + ; + Xfree(tls, (**(**Tliterals)(__ccgo_up(bp))).Fa) + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fposition = (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fposition + 1 + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fn = node + return err +} + +func _parse_dup_count(tls *TLS, s uintptr, n uintptr) (r uintptr) { + **(**int32)(__ccgo_up(n)) = -int32(1) + if !(BoolInt32(uint32(**(**uint8)(__ccgo_up(s)))-Uint32FromUint8('0') < Uint32FromInt32(10)) != 0) { + return s + } + **(**int32)(__ccgo_up(n)) = 0 + for { + **(**int32)(__ccgo_up(n)) = int32(10)***(**int32)(__ccgo_up(n)) + (Int32FromUint8(**(**uint8)(__ccgo_up(s))) - int32('0')) + s = s + 1 + if !(BoolInt32(uint32(**(**uint8)(__ccgo_up(s)))-Uint32FromUint8('0') < Uint32FromInt32(10)) != 0) || **(**int32)(__ccgo_up(n)) > int32(RE_DUP_MAX) { + break + } + goto _1 + _1: + } + return s +} + +func _parse_dup(tls *TLS, s uintptr, ere int32, pmin uintptr, pmax uintptr) (r uintptr) { + bp := tls.Alloc(16) + defer tls.Free(16) + var v1, v4 uintptr + var v2, v3, v5 bool + var _ /* max at bp+4 */ int32 + var _ /* min at bp+0 */ int32 + _, _, _, _, _ = v1, v2, v3, v4, v5 + s = _parse_dup_count(tls, s, bp) + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32(',') { + s = _parse_dup_count(tls, s+uintptr(1), bp+4) + } else { + **(**int32)(__ccgo_up(bp + 4)) = **(**int32)(__ccgo_up(bp)) + } + if v3 = **(**int32)(__ccgo_up(bp + 4)) < **(**int32)(__ccgo_up(bp)) && **(**int32)(__ccgo_up(bp + 4)) >= 0 || **(**int32)(__ccgo_up(bp + 4)) > int32(RE_DUP_MAX) || **(**int32)(__ccgo_up(bp)) > int32(RE_DUP_MAX) || **(**int32)(__ccgo_up(bp)) < 0; !v3 { + if v2 = !(ere != 0); v2 { + v1 = s + s = s + 1 + } + } + if v5 = v3 || v2 && Int32FromUint8(**(**uint8)(__ccgo_up(v1))) != int32('\\'); !v5 { + v4 = s + s = s + 1 + } + if v5 || Int32FromUint8(**(**uint8)(__ccgo_up(v4))) != int32('}') { + return uintptr(0) + } + **(**int32)(__ccgo_up(pmin)) = **(**int32)(__ccgo_up(bp)) + **(**int32)(__ccgo_up(pmax)) = **(**int32)(__ccgo_up(bp + 4)) + return s +} + +func _hexval1(tls *TLS, c uint32) (r int32) { + if c-uint32('0') < uint32(10) { + return Int32FromUint32(c - uint32('0')) + } + c = c | uint32(32) + if c-uint32('a') < uint32(6) { + return Int32FromUint32(c - uint32('a') + uint32(10)) + } + return -int32(1) +} + +func _marksub(tls *TLS, ctx uintptr, node uintptr, subid int32) (r Treg_errcode_t) { + var n uintptr + _ = n + if (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fsubmatch_id >= 0 { + n = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(1), -int32(1), -int32(1)) + if !(n != 0) { + return int32(REG_ESPACE) + } + n = _tre_ast_new_catenation(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, n, node) + if !(n != 0) { + return int32(REG_ESPACE) + } + (*Ttre_ast_node_t)(unsafe.Pointer(n)).Fnum_submatches = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_submatches + node = n + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fsubmatch_id = subid + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_submatches = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_submatches + 1 + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fn = node + return REG_OK +} + +/* +BRE grammar: +Regex = Branch | '^' | '$' | '^$' | '^' Branch | Branch '$' | '^' Branch '$' +Branch = Atom | Branch Atom +Atom = char | quoted_char | '.' | Bracket | Atom Dup | '\(' Branch '\)' | back_ref +Dup = '*' | '\{' Count '\}' | '\{' Count ',\}' | '\{' Count ',' Count '\}' + +(leading ^ and trailing $ in a sub expr may be an anchor or literal as well) + +ERE grammar: +Regex = Branch | Regex '|' Branch +Branch = Atom | Branch Atom +Atom = char | quoted_char | '.' | Bracket | Atom Dup | '(' Regex ')' | '^' | '$' +Dup = '*' | '+' | '?' | '{' Count '}' | '{' Count ',}' | '{' Count ',' Count '}' + +(a*+?, ^*, $+, \X, {, (|a) are unspecified) +*/ + +func _parse_atom(tls *TLS, ctx uintptr, s uintptr) (r Treg_errcode_t) { + bp := tls.Alloc(16) + defer tls.Free(16) + var c, ere, i, len1, v, val, v16 int32 + var err Treg_errcode_t + var node, p, tmp1, tmp11, tmp2, tmp21, v14 uintptr + var _ /* wc at bp+0 */ Twchar_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = c, ere, err, i, len1, node, p, tmp1, tmp11, tmp2, tmp21, v, val, v14, v16 + ere = (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fcflags & int32(REG_EXTENDED) + switch Int32FromUint8(**(**uint8)(__ccgo_up(s))) { + case int32('['): + goto _1 + case int32('\\'): + goto _2 + case int32('.'): + goto _3 + case int32('^'): + goto _4 + case int32('$'): + goto _5 + case int32('?'): + goto _6 + case int32('+'): + goto _7 + case int32('{'): + goto _8 + case int32('*'): + goto _9 + case int32('|'): + goto _10 + case 0: + goto _11 + default: + goto _12 + } + goto _13 +_1: + ; + return _parse_bracket(tls, ctx, s+uintptr(1)) +_2: + ; + p = _tre_expand_macro(tls, s+uintptr(1)) + if p != 0 { + /* assume \X expansion is a single atom */ + err = _parse_atom(tls, ctx, p) + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fs = s + uintptr(2) + return err + } + /* extensions: \b, \B, \<, \>, \xHH \x{HHHH} */ + s = s + 1 + v14 = s + switch Int32FromUint8(**(**uint8)(__ccgo_up(v14))) { + case 0: + return int32(REG_EESCAPE) + case int32('b'): + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(2), int32(ASSERT_AT_WB), -int32(1)) + case int32('B'): + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(2), int32(ASSERT_AT_WB_NEG), -int32(1)) + case int32('<'): + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(2), int32(ASSERT_AT_BOW), -int32(1)) + case int32('>'): + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(2), int32(ASSERT_AT_EOW), -int32(1)) + case int32('x'): + s = s + 1 + v = 0 + len1 = int32(2) + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('{') { + len1 = int32(8) + s = s + 1 + } + i = 0 + for { + if !(i < len1 && v < int32(0x110000)) { + break + } + c = _hexval1(tls, uint32(**(**uint8)(__ccgo_up(s + uintptr(i))))) + if c < 0 { + break + } + v = int32(16)*v + c + goto _15 + _15: + ; + i = i + 1 + } + s = s + uintptr(i) + if len1 == int32(8) { + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) != int32('}') { + return int32(REG_EBRACE) + } + s = s + 1 + } + v14 = ctx + 24 + v16 = *(*int32)(unsafe.Pointer(v14)) + *(*int32)(unsafe.Pointer(v14)) = *(*int32)(unsafe.Pointer(v14)) + 1 + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, v, v, v16) + s = s - 1 + case int32('{'): + fallthrough + case int32('+'): + fallthrough + case int32('?'): + /* extension: treat \+, \? as repetitions in BRE */ + /* reject repetitions after empty expression in BRE */ + if !(ere != 0) { + return int32(REG_BADRPT) + } + fallthrough + case int32('|'): + /* extension: treat \| as alternation in BRE */ + if !(ere != 0) { + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(1), -int32(1), -int32(1)) + s = s - 1 + goto end + } + /* fallthrough */ + fallthrough + default: + if !(ere != 0) && uint32(**(**uint8)(__ccgo_up(s)))-uint32('1') < uint32(9) { + /* back reference */ + val = Int32FromUint8(**(**uint8)(__ccgo_up(s))) - int32('0') + v14 = ctx + 24 + v16 = *(*int32)(unsafe.Pointer(v14)) + *(*int32)(unsafe.Pointer(v14)) = *(*int32)(unsafe.Pointer(v14)) + 1 + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(4), val, v16) + if val >= (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmax_backref { + v16 = val + } else { + v16 = (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmax_backref + } + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmax_backref = v16 + } else { + /* extension: accept unknown escaped char + as a literal */ + goto parse_literal + } + } + s = s + 1 + goto _13 +_3: + ; + if (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fcflags&int32(REG_NEWLINE) != 0 { + v14 = ctx + 24 + v16 = *(*int32)(unsafe.Pointer(v14)) + *(*int32)(unsafe.Pointer(v14)) = *(*int32)(unsafe.Pointer(v14)) + 1 + tmp1 = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, 0, Int32FromUint8('\n')-Int32FromInt32(1), v16) + v14 = ctx + 24 + v16 = *(*int32)(unsafe.Pointer(v14)) + *(*int32)(unsafe.Pointer(v14)) = *(*int32)(unsafe.Pointer(v14)) + 1 + tmp2 = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, Int32FromUint8('\n')+Int32FromInt32(1), int32(TRE_CHAR_MAX), v16) + if tmp1 != 0 && tmp2 != 0 { + node = _tre_ast_new_union(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, tmp1, tmp2) + } else { + node = uintptr(0) + } + } else { + v14 = ctx + 24 + v16 = *(*int32)(unsafe.Pointer(v14)) + *(*int32)(unsafe.Pointer(v14)) = *(*int32)(unsafe.Pointer(v14)) + 1 + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, 0, int32(TRE_CHAR_MAX), v16) + } + s = s + 1 + goto _13 +_4: + ; + /* '^' has a special meaning everywhere in EREs, and at beginning of BRE. */ + if !(ere != 0) && s != (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fstart { + goto parse_literal + } + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(2), int32(ASSERT_AT_BOL), -int32(1)) + s = s + 1 + goto _13 +_5: + ; + /* '$' is special everywhere in EREs, and at the end of a BRE subexpression. */ + if !(ere != 0) && **(**uint8)(__ccgo_up(s + 1)) != 0 && (Int32FromUint8(**(**uint8)(__ccgo_up(s + 1))) != int32('\\') || Int32FromUint8(**(**uint8)(__ccgo_up(s + 2))) != int32(')') && Int32FromUint8(**(**uint8)(__ccgo_up(s + 2))) != int32('|')) { + goto parse_literal + } + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(2), int32(ASSERT_AT_EOL), -int32(1)) + s = s + 1 + goto _13 +_9: + ; +_8: + ; +_7: + ; +_6: + ; + /* reject repetitions after empty expression in ERE */ + if ere != 0 { + return int32(REG_BADRPT) + } +_10: + ; + if !(ere != 0) { + goto parse_literal + } +_11: + ; + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(1), -int32(1), -int32(1)) + goto _13 +_12: + ; + goto parse_literal +parse_literal: + ; + len1 = Xmbtowc(tls, bp, s, Uint32FromInt32(-Int32FromInt32(1))) + if len1 < 0 { + return int32(REG_BADPAT) + } + if (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fcflags&int32(REG_ICASE) != 0 && (Xiswupper(tls, **(**Twchar_t)(__ccgo_up(bp))) != 0 || Xiswlower(tls, **(**Twchar_t)(__ccgo_up(bp))) != 0) { + /* multiple opposite case characters are not supported */ + tmp11 = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, Int32FromUint32(Xtowupper(tls, **(**Twchar_t)(__ccgo_up(bp)))), Int32FromUint32(Xtowupper(tls, **(**Twchar_t)(__ccgo_up(bp)))), (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fposition) + tmp21 = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, Int32FromUint32(Xtowlower(tls, **(**Twchar_t)(__ccgo_up(bp)))), Int32FromUint32(Xtowlower(tls, **(**Twchar_t)(__ccgo_up(bp)))), (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fposition) + if tmp11 != 0 && tmp21 != 0 { + node = _tre_ast_new_union(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, tmp11, tmp21) + } else { + node = uintptr(0) + } + } else { + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, Int32FromUint32(**(**Twchar_t)(__ccgo_up(bp))), Int32FromUint32(**(**Twchar_t)(__ccgo_up(bp))), (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fposition) + } + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fposition = (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fposition + 1 + s = s + uintptr(len1) + goto _13 +_13: + ; + goto end +end: + ; + if !(node != 0) { + return int32(REG_ESPACE) + } + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fn = node + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fs = s + return REG_OK +} + +func _tre_parse(tls *TLS, ctx uintptr) (r Treg_errcode_t) { + bp := tls.Alloc(16) + defer tls.Free(16) + var c, depth, ere, subid, v2 int32 + var err, v1 Treg_errcode_t + var nbranch, nunion, s, stack, v8 uintptr + var _ /* max at bp+4 */ int32 + var _ /* min at bp+0 */ int32 + _, _, _, _, _, _, _, _, _, _, _, _ = c, depth, ere, err, nbranch, nunion, s, stack, subid, v1, v2, v8 + nbranch = uintptr(0) + nunion = uintptr(0) + ere = (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fcflags & int32(REG_EXTENDED) + s = (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fstart + subid = 0 + depth = 0 + stack = (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fstack + v2 = subid + subid = subid + 1 + v1 = _tre_stack_push_int(tls, stack, v2) + err = v1 + if v1 != REG_OK { + return err + } + for { + if !(ere != 0) && Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('\\') && Int32FromUint8(**(**uint8)(__ccgo_up(s + 1))) == int32('(') || ere != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('(') { + v1 = _tre_stack_push_voidptr(tls, stack, nunion) + err = v1 + if v1 != REG_OK { + return err + } + v1 = _tre_stack_push_voidptr(tls, stack, nbranch) + err = v1 + if v1 != REG_OK { + return err + } + v2 = subid + subid = subid + 1 + v1 = _tre_stack_push_int(tls, stack, v2) + err = v1 + if v1 != REG_OK { + return err + } + s = s + 1 + if !(ere != 0) { + s = s + 1 + } + depth = depth + 1 + v8 = UintptrFromInt32(0) + nunion = v8 + nbranch = v8 + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fstart = s + goto _3 + } + if !(ere != 0) && Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('\\') && Int32FromUint8(**(**uint8)(__ccgo_up(s + 1))) == int32(')') || ere != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32(')') && depth != 0 { + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fn = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(1), -int32(1), -int32(1)) + if !((*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fn != 0) { + return int32(REG_ESPACE) + } + } else { + err = _parse_atom(tls, ctx, s) + if err != REG_OK { + return err + } + s = (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fs + } + goto parse_iter + parse_iter: + ; + for { + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) != int32('\\') && Int32FromUint8(**(**uint8)(__ccgo_up(s))) != int32('*') { + if !(ere != 0) { + break + } + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) != int32('+') && Int32FromUint8(**(**uint8)(__ccgo_up(s))) != int32('?') && Int32FromUint8(**(**uint8)(__ccgo_up(s))) != int32('{') { + break + } + } + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('\\') && ere != 0 { + break + } + /* extension: treat \+, \? as repetitions in BRE */ + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('\\') && Int32FromUint8(**(**uint8)(__ccgo_up(s + 1))) != int32('+') && Int32FromUint8(**(**uint8)(__ccgo_up(s + 1))) != int32('?') && Int32FromUint8(**(**uint8)(__ccgo_up(s + 1))) != int32('{') { + break + } + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('\\') { + s = s + 1 + } + /* handle ^* at the start of a BRE. */ + if !(ere != 0) && s == (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fstart+uintptr(1) && Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(-Int32FromInt32(1))))) == int32('^') { + break + } + /* extension: multiple consecutive *+?{,} is unspecified, + but (a+)+ has to be supported so accepting a++ makes + sense, note however that the RE_DUP_MAX limit can be + circumvented: (a{255}){255} uses a lot of memory.. */ + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('{') { + s = _parse_dup(tls, s+uintptr(1), ere, bp, bp+4) + if !(s != 0) { + return int32(REG_BADBR) + } + } else { + **(**int32)(__ccgo_up(bp)) = 0 + **(**int32)(__ccgo_up(bp + 4)) = -int32(1) + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('+') { + **(**int32)(__ccgo_up(bp)) = int32(1) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('?') { + **(**int32)(__ccgo_up(bp + 4)) = int32(1) + } + s = s + 1 + } + if **(**int32)(__ccgo_up(bp + 4)) == 0 { + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fn = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(1), -int32(1), -int32(1)) + } else { + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fn = _tre_ast_new_iter(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fn, **(**int32)(__ccgo_up(bp)), **(**int32)(__ccgo_up(bp + 4)), 0) + } + if !((*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fn != 0) { + return int32(REG_ESPACE) + } + goto _9 + _9: + } + nbranch = _tre_ast_new_catenation(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, nbranch, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fn) + if ere != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('|') || ere != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32(')') && depth != 0 || !(ere != 0) && Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('\\') && Int32FromUint8(**(**uint8)(__ccgo_up(s + 1))) == int32(')') || !(ere != 0) && Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('\\') && Int32FromUint8(**(**uint8)(__ccgo_up(s + 1))) == int32('|') || !(**(**uint8)(__ccgo_up(s)) != 0) { + /* extension: empty branch is unspecified (), (|a), (a|) + here they are not rejected but match on empty string */ + c = Int32FromUint8(**(**uint8)(__ccgo_up(s))) + nunion = _tre_ast_new_union(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, nunion, nbranch) + nbranch = uintptr(0) + if c == int32('\\') && Int32FromUint8(**(**uint8)(__ccgo_up(s + 1))) == int32('|') { + s = s + uintptr(2) + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fstart = s + } else { + if c == int32('|') { + s = s + 1 + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fstart = s + } else { + if c == int32('\\') { + if !(depth != 0) { + return int32(REG_EPAREN) + } + s = s + uintptr(2) + } else { + if c == int32(')') { + s = s + 1 + } + } + depth = depth - 1 + err = _marksub(tls, ctx, nunion, _tre_stack_pop_int(tls, stack)) + if err != REG_OK { + return err + } + if !(c != 0) && depth < 0 { + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fsubmatch_id = subid + return REG_OK + } + if !(c != 0) || depth < 0 { + return int32(REG_EPAREN) + } + nbranch = _tre_stack_pop_voidptr(tls, stack) + nunion = _tre_stack_pop_voidptr(tls, stack) + goto parse_iter + } + } + } + goto _3 + _3: + } + return r +} + +/*********************************************************************** + from tre-compile.c +***********************************************************************/ + +/* + TODO: + - Fix tre_ast_to_tnfa() to recurse using a stack instead of recursive + function calls. +*/ + +/* + Algorithms to setup tags so that submatch addressing can be done. +*/ + +// C documentation +// +// /* Inserts a catenation node to the root of the tree given in `node'. +// As the left child a new tag with number `tag_id' to `node' is added, +// and the right child is the old root. */ +func _tre_add_tag_left(tls *TLS, mem Ttre_mem_t, node uintptr, tag_id int32) (r Treg_errcode_t) { + var c uintptr + _ = c + c = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint32(8)) + if c == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + (*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft = _tre_ast_new_literal(tls, mem, -int32(3), tag_id, -int32(1)) + if (*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + (*Ttre_catenation_t)(unsafe.Pointer(c)).Fright = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint32(32)) + if (*Ttre_catenation_t)(unsafe.Pointer(c)).Fright == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fright)).Fobj = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fright)).Ftype1 = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fright)).Fnullable = -int32(1) + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fright)).Fsubmatch_id = -int32(1) + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fright)).Ffirstpos = UintptrFromInt32(0) + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fright)).Flastpos = UintptrFromInt32(0) + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fright)).Fnum_tags = 0 + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fright)).Fnum_submatches = 0 + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj = c + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 = int32(_CATENATION) + return REG_OK +} + +// C documentation +// +// /* Inserts a catenation node to the root of the tree given in `node'. +// As the right child a new tag with number `tag_id' to `node' is added, +// and the left child is the old root. */ +func _tre_add_tag_right(tls *TLS, mem Ttre_mem_t, node uintptr, tag_id int32) (r Treg_errcode_t) { + var c uintptr + _ = c + c = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint32(8)) + if c == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + (*Ttre_catenation_t)(unsafe.Pointer(c)).Fright = _tre_ast_new_literal(tls, mem, -int32(3), tag_id, -int32(1)) + if (*Ttre_catenation_t)(unsafe.Pointer(c)).Fright == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + (*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint32(32)) + if (*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft)).Fobj = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft)).Ftype1 = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft)).Fnullable = -int32(1) + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft)).Fsubmatch_id = -int32(1) + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft)).Ffirstpos = UintptrFromInt32(0) + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft)).Flastpos = UintptrFromInt32(0) + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft)).Fnum_tags = 0 + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft)).Fnum_submatches = 0 + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj = c + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 = int32(_CATENATION) + return REG_OK +} + +type Ttre_addtags_symbol_t = int32 + +const _ADDTAGS_RECURSE = 0 +const _ADDTAGS_AFTER_ITERATION = 1 +const _ADDTAGS_AFTER_UNION_LEFT = 2 +const _ADDTAGS_AFTER_UNION_RIGHT = 3 +const _ADDTAGS_AFTER_CAT_LEFT = 4 +const _ADDTAGS_AFTER_CAT_RIGHT = 5 +const _ADDTAGS_SET_SUBMATCH_END = 6 + +type Ttre_tag_states_t = struct { + Ftag int32 + Fnext_tag int32 +} + +// C documentation +// +// /* Go through `regset' and set submatch data for submatches that are +// using this tag. */ +func _tre_purge_regset(tls *TLS, regset uintptr, tnfa uintptr, tag int32) { + var i, id, start int32 + _, _, _ = i, id, start + i = 0 + for { + if !(**(**int32)(__ccgo_up(regset + uintptr(i)*4)) >= 0) { + break + } + id = **(**int32)(__ccgo_up(regset + uintptr(i)*4)) / int32(2) + start = BoolInt32(!(**(**int32)(__ccgo_up(regset + uintptr(i)*4))%Int32FromInt32(2) != 0)) + if start != 0 { + (**(**Ttre_submatch_data_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fsubmatch_data + uintptr(id)*12))).Fso_tag = tag + } else { + (**(**Ttre_submatch_data_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fsubmatch_data + uintptr(id)*12))).Feo_tag = tag + } + goto _1 + _1: + ; + i = i + 1 + } + **(**int32)(__ccgo_up(regset)) = -int32(1) +} + +// C documentation +// +// /* Adds tags to appropriate locations in the parse tree in `tree', so that +// subexpressions marked for submatch addressing can be traced. */ +func _tre_add_tags(tls *TLS, mem Ttre_mem_t, stack uintptr, tree uintptr, tnfa uintptr) (r Treg_errcode_t) { + var added_tags, bottom, enter_tag, first_pass, i1, i2, i3, i4, i5, i6, i7, id, id1, left_tag, minimal, minimal_tag, new_tag, next_tag, num_minimals, num_tags, reserved_tag, right_tag, tag, tag_left, tag_right, v22 int32 + var cat, iter, left, left1, left2, lit, node, orig_regset, p, parents, regset, right, right1, right2, saved_states, uni uintptr + var direction Ttre_tag_direction_t + var i uint32 + var status Treg_errcode_t + var symbol Ttre_addtags_symbol_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = added_tags, bottom, cat, direction, enter_tag, first_pass, i, i1, i2, i3, i4, i5, i6, i7, id, id1, iter, left, left1, left2, left_tag, lit, minimal, minimal_tag, new_tag, next_tag, node, num_minimals, num_tags, orig_regset, p, parents, regset, reserved_tag, right, right1, right2, right_tag, saved_states, status, symbol, tag, tag_left, tag_right, uni, v22 + status = REG_OK + node = tree /* Tree node we are currently looking at. */ + bottom = _tre_stack_num_objects(tls, stack) + /* True for first pass (counting number of needed tags) */ + first_pass = BoolInt32(mem == UintptrFromInt32(0) || tnfa == UintptrFromInt32(0)) + num_tags = 0 /* Total number of tags. */ + num_minimals = 0 /* Number of special minimal tags. */ + tag = 0 /* The tag that is to be added next. */ + next_tag = int32(1) /* Stack of submatches the current submatch is + contained in. */ + minimal_tag = -int32(1) + direction = int32(_TRE_TAG_MINIMIZE) + if !(first_pass != 0) { + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fend_tag = 0 + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags)) = -int32(1) + } + regset = Xmalloc(tls, uint32(4)*(((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_submatches+uint32(1))*uint32(2))) + if regset == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + **(**int32)(__ccgo_up(regset)) = -int32(1) + orig_regset = regset + parents = Xmalloc(tls, uint32(4)*((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_submatches+uint32(1))) + if parents == UintptrFromInt32(0) { + Xfree(tls, regset) + return int32(REG_ESPACE) + } + **(**int32)(__ccgo_up(parents)) = -int32(1) + saved_states = Xmalloc(tls, uint32(8)*((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_submatches+uint32(1))) + if saved_states == UintptrFromInt32(0) { + Xfree(tls, regset) + Xfree(tls, parents) + return int32(REG_ESPACE) + } else { + i = uint32(0) + for { + if !(i <= (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_submatches) { + break + } + (**(**Ttre_tag_states_t)(__ccgo_up(saved_states + uintptr(i)*8))).Ftag = -int32(1) + goto _1 + _1: + ; + i = i + 1 + } + } + status = _tre_stack_push_voidptr(tls, stack, node) + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_RECURSE)) + for _tre_stack_num_objects(tls, stack) > bottom { + if status != REG_OK { + break + } + symbol = _tre_stack_pop_int(tls, stack) + switch symbol { + case int32(_ADDTAGS_SET_SUBMATCH_END): + goto _2 + case int32(_ADDTAGS_RECURSE): + goto _3 + case int32(_ADDTAGS_AFTER_ITERATION): + goto _4 + case int32(_ADDTAGS_AFTER_CAT_LEFT): + goto _5 + case int32(_ADDTAGS_AFTER_CAT_RIGHT): + goto _6 + case int32(_ADDTAGS_AFTER_UNION_LEFT): + goto _7 + case int32(_ADDTAGS_AFTER_UNION_RIGHT): + goto _8 + default: + goto _9 + } + goto _10 + _2: + ; + id = _tre_stack_pop_int(tls, stack) + /* Add end of this submatch to regset. */ + i1 = 0 + for { + if !(**(**int32)(__ccgo_up(regset + uintptr(i1)*4)) >= 0) { + break + } + goto _11 + _11: + ; + i1 = i1 + 1 + } + **(**int32)(__ccgo_up(regset + uintptr(i1)*4)) = id*int32(2) + int32(1) + **(**int32)(__ccgo_up(regset + uintptr(i1+int32(1))*4)) = -int32(1) + /* Pop this submatch from the parents stack. */ + i1 = 0 + for { + if !(**(**int32)(__ccgo_up(parents + uintptr(i1)*4)) >= 0) { + break + } + goto _12 + _12: + ; + i1 = i1 + 1 + } + **(**int32)(__ccgo_up(parents + uintptr(i1-int32(1))*4)) = -int32(1) + goto _10 + _3: + ; + node = _tre_stack_pop_voidptr(tls, stack) + if (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fsubmatch_id >= 0 { + id1 = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fsubmatch_id + /* Add start of this submatch to regset. */ + i2 = 0 + for { + if !(**(**int32)(__ccgo_up(regset + uintptr(i2)*4)) >= 0) { + break + } + goto _13 + _13: + ; + i2 = i2 + 1 + } + **(**int32)(__ccgo_up(regset + uintptr(i2)*4)) = id1 * int32(2) + **(**int32)(__ccgo_up(regset + uintptr(i2+int32(1))*4)) = -int32(1) + if !(first_pass != 0) { + i2 = 0 + for { + if !(**(**int32)(__ccgo_up(parents + uintptr(i2)*4)) >= 0) { + break + } + goto _14 + _14: + ; + i2 = i2 + 1 + } + (**(**Ttre_submatch_data_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fsubmatch_data + uintptr(id1)*12))).Fparents = UintptrFromInt32(0) + if i2 > 0 { + p = Xmalloc(tls, uint32(4)*Uint32FromInt32(i2+Int32FromInt32(1))) + if p == UintptrFromInt32(0) { + status = int32(REG_ESPACE) + goto _10 + } + (**(**Ttre_submatch_data_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fsubmatch_data + uintptr(id1)*12))).Fparents = p + i2 = 0 + for { + if !(**(**int32)(__ccgo_up(parents + uintptr(i2)*4)) >= 0) { + break + } + **(**int32)(__ccgo_up(p + uintptr(i2)*4)) = **(**int32)(__ccgo_up(parents + uintptr(i2)*4)) + goto _15 + _15: + ; + i2 = i2 + 1 + } + **(**int32)(__ccgo_up(p + uintptr(i2)*4)) = -int32(1) + } + } + /* Add end of this submatch to regset after processing this + node. */ + status = _tre_stack_push_int(tls, stack, (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fsubmatch_id) + if status != REG_OK { + goto _10 + } + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_SET_SUBMATCH_END)) + if status != REG_OK { + goto _10 + } + } + switch (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 { + case int32(_LITERAL): + lit = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + if !((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min < Int32FromInt32(0)) || (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min == -int32(4) { + if **(**int32)(__ccgo_up(regset)) >= 0 { + /* Regset is not empty, so add a tag before the + literal or backref. */ + if !(first_pass != 0) { + status = _tre_add_tag_left(tls, mem, node, tag) + **(**Ttre_tag_direction_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions + uintptr(tag)*4)) = direction + if minimal_tag >= 0 { + i3 = 0 + for { + if !(**(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i3)*4)) >= 0) { + break + } + goto _16 + _16: + ; + i3 = i3 + 1 + } + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i3)*4)) = tag + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i3+int32(1))*4)) = minimal_tag + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i3+int32(2))*4)) = -int32(1) + minimal_tag = -int32(1) + num_minimals = num_minimals + 1 + } + _tre_purge_regset(tls, regset, tnfa, tag) + } else { + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_tags = int32(1) + } + **(**int32)(__ccgo_up(regset)) = -int32(1) + tag = next_tag + num_tags = num_tags + 1 + next_tag = next_tag + 1 + } + } else { + } + case int32(_CATENATION): + cat = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + left = (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft + right = (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright + reserved_tag = -int32(1) + /* After processing right child. */ + status = _tre_stack_push_voidptr(tls, stack, node) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_AFTER_CAT_RIGHT)) + if status != REG_OK { + break + } + /* Process right child. */ + status = _tre_stack_push_voidptr(tls, stack, right) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_RECURSE)) + if status != REG_OK { + break + } + /* After processing left child. */ + status = _tre_stack_push_int(tls, stack, next_tag+(*Ttre_ast_node_t)(unsafe.Pointer(left)).Fnum_tags) + if status != REG_OK { + break + } + if (*Ttre_ast_node_t)(unsafe.Pointer(left)).Fnum_tags > 0 && (*Ttre_ast_node_t)(unsafe.Pointer(right)).Fnum_tags > 0 { + /* Reserve the next tag to the right child. */ + reserved_tag = next_tag + next_tag = next_tag + 1 + } + status = _tre_stack_push_int(tls, stack, reserved_tag) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_AFTER_CAT_LEFT)) + if status != REG_OK { + break + } + /* Process left child. */ + status = _tre_stack_push_voidptr(tls, stack, left) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_RECURSE)) + if status != REG_OK { + break + } + case int32(_ITERATION): + iter = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + if first_pass != 0 { + status = _tre_stack_push_int(tls, stack, BoolInt32(**(**int32)(__ccgo_up(regset)) >= 0 || int32(uint32(*(*uint8)(unsafe.Pointer(iter + 12))&0x1>>0)) != 0)) + if status != REG_OK { + break + } + } else { + status = _tre_stack_push_int(tls, stack, tag) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(uint32(*(*uint8)(unsafe.Pointer(iter + 12))&0x1>>0))) + if status != REG_OK { + break + } + } + status = _tre_stack_push_voidptr(tls, stack, node) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_AFTER_ITERATION)) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_RECURSE)) + if status != REG_OK { + break + } + /* Regset is not empty, so add a tag here. */ + if **(**int32)(__ccgo_up(regset)) >= 0 || int32(uint32(*(*uint8)(unsafe.Pointer(iter + 12))&0x1>>0)) != 0 { + if !(first_pass != 0) { + status = _tre_add_tag_left(tls, mem, node, tag) + if int32(uint32(*(*uint8)(unsafe.Pointer(iter + 12))&0x1>>0)) != 0 { + **(**Ttre_tag_direction_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions + uintptr(tag)*4)) = int32(_TRE_TAG_MAXIMIZE) + } else { + **(**Ttre_tag_direction_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions + uintptr(tag)*4)) = direction + } + if minimal_tag >= 0 { + i4 = 0 + for { + if !(**(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i4)*4)) >= 0) { + break + } + goto _17 + _17: + ; + i4 = i4 + 1 + } + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i4)*4)) = tag + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i4+int32(1))*4)) = minimal_tag + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i4+int32(2))*4)) = -int32(1) + minimal_tag = -int32(1) + num_minimals = num_minimals + 1 + } + _tre_purge_regset(tls, regset, tnfa, tag) + } + **(**int32)(__ccgo_up(regset)) = -int32(1) + tag = next_tag + num_tags = num_tags + 1 + next_tag = next_tag + 1 + } + direction = int32(_TRE_TAG_MINIMIZE) + case int32(_UNION): + uni = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + left1 = (*Ttre_union_t)(unsafe.Pointer(uni)).Fleft + right1 = (*Ttre_union_t)(unsafe.Pointer(uni)).Fright + if **(**int32)(__ccgo_up(regset)) >= 0 { + left_tag = next_tag + right_tag = next_tag + int32(1) + } else { + left_tag = tag + right_tag = next_tag + } + /* After processing right child. */ + status = _tre_stack_push_int(tls, stack, right_tag) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, left_tag) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, regset) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, BoolInt32(**(**int32)(__ccgo_up(regset)) >= 0)) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, node) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, right1) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, left1) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_AFTER_UNION_RIGHT)) + if status != REG_OK { + break + } + /* Process right child. */ + status = _tre_stack_push_voidptr(tls, stack, right1) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_RECURSE)) + if status != REG_OK { + break + } + /* After processing left child. */ + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_AFTER_UNION_LEFT)) + if status != REG_OK { + break + } + /* Process left child. */ + status = _tre_stack_push_voidptr(tls, stack, left1) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_RECURSE)) + if status != REG_OK { + break + } + /* Regset is not empty, so add a tag here. */ + if **(**int32)(__ccgo_up(regset)) >= 0 { + if !(first_pass != 0) { + status = _tre_add_tag_left(tls, mem, node, tag) + **(**Ttre_tag_direction_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions + uintptr(tag)*4)) = direction + if minimal_tag >= 0 { + i5 = 0 + for { + if !(**(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i5)*4)) >= 0) { + break + } + goto _18 + _18: + ; + i5 = i5 + 1 + } + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i5)*4)) = tag + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i5+int32(1))*4)) = minimal_tag + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i5+int32(2))*4)) = -int32(1) + minimal_tag = -int32(1) + num_minimals = num_minimals + 1 + } + _tre_purge_regset(tls, regset, tnfa, tag) + } + **(**int32)(__ccgo_up(regset)) = -int32(1) + tag = next_tag + num_tags = num_tags + 1 + next_tag = next_tag + 1 + } + if (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_submatches > 0 { + /* The next two tags are reserved for markers. */ + next_tag = next_tag + 1 + tag = next_tag + next_tag = next_tag + 1 + } + break + } + if (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fsubmatch_id >= 0 { + /* Push this submatch on the parents stack. */ + i6 = 0 + for { + if !(**(**int32)(__ccgo_up(parents + uintptr(i6)*4)) >= 0) { + break + } + goto _19 + _19: + ; + i6 = i6 + 1 + } + **(**int32)(__ccgo_up(parents + uintptr(i6)*4)) = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fsubmatch_id + **(**int32)(__ccgo_up(parents + uintptr(i6+int32(1))*4)) = -int32(1) + } + goto _10 /* end case: ADDTAGS_RECURSE */ + _4: + ; + minimal = 0 + node = _tre_stack_pop_voidptr(tls, stack) + if first_pass != 0 { + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_tags = (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_iteration_t)(unsafe.Pointer((*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj)).Farg)).Fnum_tags + _tre_stack_pop_int(tls, stack) + minimal_tag = -int32(1) + } else { + minimal = _tre_stack_pop_int(tls, stack) + enter_tag = _tre_stack_pop_int(tls, stack) + if minimal != 0 { + minimal_tag = enter_tag + } + } + if !(first_pass != 0) { + if minimal != 0 { + direction = int32(_TRE_TAG_MINIMIZE) + } else { + direction = int32(_TRE_TAG_MAXIMIZE) + } + } + goto _10 + _5: + ; + new_tag = _tre_stack_pop_int(tls, stack) + next_tag = _tre_stack_pop_int(tls, stack) + if new_tag >= 0 { + tag = new_tag + } + goto _10 + _6: + ; + node = _tre_stack_pop_voidptr(tls, stack) + if first_pass != 0 { + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_tags = (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer((*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj)).Fleft)).Fnum_tags + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer((*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj)).Fright)).Fnum_tags + } + goto _10 + _7: + ; + /* Lift the bottom of the `regset' array so that when processing + the right operand the items currently in the array are + invisible. The original bottom was saved at ADDTAGS_UNION and + will be restored at ADDTAGS_AFTER_UNION_RIGHT below. */ + _21: + ; + if !(**(**int32)(__ccgo_up(regset)) >= 0) { + goto _20 + } + regset += 4 + goto _21 + _20: + ; + goto _10 + _8: + ; + left2 = _tre_stack_pop_voidptr(tls, stack) + right2 = _tre_stack_pop_voidptr(tls, stack) + node = _tre_stack_pop_voidptr(tls, stack) + added_tags = _tre_stack_pop_int(tls, stack) + if first_pass != 0 { + if (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_submatches > 0 { + v22 = int32(2) + } else { + v22 = 0 + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_tags = (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_union_t)(unsafe.Pointer((*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj)).Fleft)).Fnum_tags + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_union_t)(unsafe.Pointer((*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj)).Fright)).Fnum_tags + added_tags + v22 + } + regset = _tre_stack_pop_voidptr(tls, stack) + tag_left = _tre_stack_pop_int(tls, stack) + tag_right = _tre_stack_pop_int(tls, stack) + /* Add tags after both children, the left child gets a smaller + tag than the right child. This guarantees that we prefer + the left child over the right child. */ + /* XXX - This is not always necessary (if the children have + tags which must be seen for every match of that child). */ + /* XXX - Check if this is the only place where tre_add_tag_right + is used. If so, use tre_add_tag_left (putting the tag before + the child as opposed after the child) and throw away + tre_add_tag_right. */ + if (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_submatches > 0 { + if !(first_pass != 0) { + status = _tre_add_tag_right(tls, mem, left2, tag_left) + **(**Ttre_tag_direction_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions + uintptr(tag_left)*4)) = int32(_TRE_TAG_MAXIMIZE) + if status == REG_OK { + status = _tre_add_tag_right(tls, mem, right2, tag_right) + } + **(**Ttre_tag_direction_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions + uintptr(tag_right)*4)) = int32(_TRE_TAG_MAXIMIZE) + } + num_tags = num_tags + int32(2) + } + direction = int32(_TRE_TAG_MAXIMIZE) + goto _10 + _9: + ; + goto _10 + _10: + /* end switch(symbol) */ + } /* end while(tre_stack_num_objects(stack) > bottom) */ + if !(first_pass != 0) { + _tre_purge_regset(tls, regset, tnfa, tag) + } + if !(first_pass != 0) && minimal_tag >= 0 { + i7 = 0 + for { + if !(**(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i7)*4)) >= 0) { + break + } + goto _23 + _23: + ; + i7 = i7 + 1 + } + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i7)*4)) = tag + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i7+int32(1))*4)) = minimal_tag + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i7+int32(2))*4)) = -int32(1) + minimal_tag = -int32(1) + num_minimals = num_minimals + 1 + } + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fend_tag = num_tags + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags = num_tags + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_minimals = num_minimals + Xfree(tls, orig_regset) + Xfree(tls, parents) + Xfree(tls, saved_states) + return status +} + +/* + AST to TNFA compilation routines. +*/ + +type Ttre_copyast_symbol_t = int32 + +const _COPY_RECURSE = 0 +const _COPY_SET_RESULT_PTR = 1 + +/* Flags for tre_copy_ast(). */ + +func _tre_copy_ast(tls *TLS, mem Ttre_mem_t, stack uintptr, ast uintptr, flags int32, pos_add uintptr, tag_directions uintptr, copy1 uintptr, max_pos uintptr) (r Treg_errcode_t) { + var bottom, first_tag, max, min, num_copied, pos, v1 int32 + var cat, iter, lit, node, p, result, tmp, tmp1, uni uintptr + var status Treg_errcode_t + var symbol Ttre_copyast_symbol_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = bottom, cat, first_tag, iter, lit, max, min, node, num_copied, p, pos, result, status, symbol, tmp, tmp1, uni, v1 + status = REG_OK + bottom = _tre_stack_num_objects(tls, stack) + num_copied = 0 + first_tag = int32(1) + result = copy1 + status = _tre_stack_push_voidptr(tls, stack, ast) + status = _tre_stack_push_int(tls, stack, int32(_COPY_RECURSE)) + for status == REG_OK && _tre_stack_num_objects(tls, stack) > bottom { + if status != REG_OK { + break + } + symbol = _tre_stack_pop_int(tls, stack) + switch symbol { + case int32(_COPY_SET_RESULT_PTR): + result = _tre_stack_pop_voidptr(tls, stack) + case int32(_COPY_RECURSE): + node = _tre_stack_pop_voidptr(tls, stack) + switch (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 { + case int32(_LITERAL): + lit = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + pos = (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition + min = (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min + max = (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max + if !((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min < Int32FromInt32(0)) || (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min == -int32(4) { + /* XXX - e.g. [ab] has only one position but two + nodes, so we are creating holes in the state space + here. Not fatal, just wastes memory. */ + pos = pos + **(**int32)(__ccgo_up(pos_add)) + num_copied = num_copied + 1 + } else { + if (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min == -int32(3) && flags&int32(COPY_REMOVE_TAGS) != 0 { + /* Change this tag to empty. */ + min = -int32(1) + v1 = -Int32FromInt32(1) + pos = v1 + max = v1 + } else { + if (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min == -int32(3) && flags&int32(COPY_MAXIMIZE_FIRST_TAG) != 0 && first_tag != 0 { + /* Maximize the first tag. */ + **(**Ttre_tag_direction_t)(__ccgo_up(tag_directions + uintptr(max)*4)) = int32(_TRE_TAG_MAXIMIZE) + first_tag = 0 + } + } + } + **(**uintptr)(__ccgo_up(result)) = _tre_ast_new_literal(tls, mem, min, max, pos) + if **(**uintptr)(__ccgo_up(result)) == UintptrFromInt32(0) { + status = int32(REG_ESPACE) + } else { + p = (*Ttre_ast_node_t)(unsafe.Pointer(**(**uintptr)(__ccgo_up(result)))).Fobj + (*Ttre_literal_t)(unsafe.Pointer(p)).Fclass = (*Ttre_literal_t)(unsafe.Pointer(lit)).Fclass + (*Ttre_literal_t)(unsafe.Pointer(p)).Fneg_classes = (*Ttre_literal_t)(unsafe.Pointer(lit)).Fneg_classes + } + if pos > **(**int32)(__ccgo_up(max_pos)) { + **(**int32)(__ccgo_up(max_pos)) = pos + } + case int32(_UNION): + uni = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + **(**uintptr)(__ccgo_up(result)) = _tre_ast_new_union(tls, mem, (*Ttre_union_t)(unsafe.Pointer(uni)).Fleft, (*Ttre_union_t)(unsafe.Pointer(uni)).Fright) + if **(**uintptr)(__ccgo_up(result)) == UintptrFromInt32(0) { + status = int32(REG_ESPACE) + break + } + tmp = (*Ttre_ast_node_t)(unsafe.Pointer(**(**uintptr)(__ccgo_up(result)))).Fobj + result = tmp + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_union_t)(unsafe.Pointer(uni)).Fright) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_COPY_RECURSE)) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, tmp+4) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_COPY_SET_RESULT_PTR)) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_union_t)(unsafe.Pointer(uni)).Fleft) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_COPY_RECURSE)) + if status != REG_OK { + break + } + case int32(_CATENATION): + cat = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + **(**uintptr)(__ccgo_up(result)) = _tre_ast_new_catenation(tls, mem, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright) + if **(**uintptr)(__ccgo_up(result)) == UintptrFromInt32(0) { + status = int32(REG_ESPACE) + break + } + tmp1 = (*Ttre_ast_node_t)(unsafe.Pointer(**(**uintptr)(__ccgo_up(result)))).Fobj + (*Ttre_catenation_t)(unsafe.Pointer(tmp1)).Fleft = UintptrFromInt32(0) + (*Ttre_catenation_t)(unsafe.Pointer(tmp1)).Fright = UintptrFromInt32(0) + result = tmp1 + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_COPY_RECURSE)) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, tmp1+4) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_COPY_SET_RESULT_PTR)) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_COPY_RECURSE)) + if status != REG_OK { + break + } + case int32(_ITERATION): + iter = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_COPY_RECURSE)) + if status != REG_OK { + break + } + **(**uintptr)(__ccgo_up(result)) = _tre_ast_new_iter(tls, mem, (*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg, (*Ttre_iteration_t)(unsafe.Pointer(iter)).Fmin, (*Ttre_iteration_t)(unsafe.Pointer(iter)).Fmax, int32(uint32(*(*uint8)(unsafe.Pointer(iter + 12))&0x1>>0))) + if **(**uintptr)(__ccgo_up(result)) == UintptrFromInt32(0) { + status = int32(REG_ESPACE) + break + } + iter = (*Ttre_ast_node_t)(unsafe.Pointer(**(**uintptr)(__ccgo_up(result)))).Fobj + result = iter + default: + break + } + break + } + } + **(**int32)(__ccgo_up(pos_add)) += num_copied + return status +} + +type Ttre_expand_ast_symbol_t = int32 + +const _EXPAND_RECURSE = 0 +const _EXPAND_AFTER_ITER = 1 + +// C documentation +// +// /* Expands each iteration node that has a finite nonzero minimum or maximum +// iteration count to a catenated sequence of copies of the node. */ +func _tre_expand_ast(tls *TLS, mem Ttre_mem_t, stack uintptr, ast uintptr, position uintptr, tag_directions uintptr) (r Treg_errcode_t) { + bp := tls.Alloc(32) + defer tls.Free(32) + var _status, _status1, status Treg_errcode_t + var bottom, flags, iter_depth, j, pos_add_last, pos_add_save, pos_add_total, v2 int32 + var cat, iter, iter1, lit, node, seq1, tmp, uni uintptr + var symbol Ttre_expand_ast_symbol_t + var _ /* copy at bp+12 */ uintptr + var _ /* copy at bp+16 */ uintptr + var _ /* max_pos at bp+4 */ int32 + var _ /* pos_add at bp+0 */ int32 + var _ /* seq2 at bp+8 */ uintptr + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = _status, _status1, bottom, cat, flags, iter, iter1, iter_depth, j, lit, node, pos_add_last, pos_add_save, pos_add_total, seq1, status, symbol, tmp, uni, v2 + status = REG_OK + bottom = _tre_stack_num_objects(tls, stack) + **(**int32)(__ccgo_up(bp)) = 0 + pos_add_total = 0 + **(**int32)(__ccgo_up(bp + 4)) = 0 + iter_depth = 0 + _status = _tre_stack_push_voidptr(tls, stack, ast) + if _status != REG_OK { + return _status + } + _status1 = _tre_stack_push_int(tls, stack, int32(_EXPAND_RECURSE)) + if _status1 != REG_OK { + return _status1 + } + for status == REG_OK && _tre_stack_num_objects(tls, stack) > bottom { + if status != REG_OK { + break + } + symbol = _tre_stack_pop_int(tls, stack) + node = _tre_stack_pop_voidptr(tls, stack) + switch symbol { + case int32(_EXPAND_RECURSE): + switch (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 { + case int32(_LITERAL): + lit = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + if !((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min < Int32FromInt32(0)) || (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min == -int32(4) { + **(**int32)(__ccgo_up(lit + 8)) += **(**int32)(__ccgo_up(bp)) + if (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition > **(**int32)(__ccgo_up(bp + 4)) { + **(**int32)(__ccgo_up(bp + 4)) = (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition + } + } + case int32(_UNION): + uni = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_union_t)(unsafe.Pointer(uni)).Fright) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_EXPAND_RECURSE)) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_union_t)(unsafe.Pointer(uni)).Fleft) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_EXPAND_RECURSE)) + if status != REG_OK { + break + } + case int32(_CATENATION): + cat = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_EXPAND_RECURSE)) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_EXPAND_RECURSE)) + if status != REG_OK { + break + } + case int32(_ITERATION): + iter = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + status = _tre_stack_push_int(tls, stack, **(**int32)(__ccgo_up(bp))) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, node) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_EXPAND_AFTER_ITER)) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_EXPAND_RECURSE)) + if status != REG_OK { + break + } + /* If we are going to expand this node at EXPAND_AFTER_ITER + then don't increase the `pos' fields of the nodes now, it + will get done when expanding. */ + if (*Ttre_iteration_t)(unsafe.Pointer(iter)).Fmin > int32(1) || (*Ttre_iteration_t)(unsafe.Pointer(iter)).Fmax > int32(1) { + **(**int32)(__ccgo_up(bp)) = 0 + } + iter_depth = iter_depth + 1 + default: + break + } + case int32(_EXPAND_AFTER_ITER): + iter1 = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + **(**int32)(__ccgo_up(bp)) = _tre_stack_pop_int(tls, stack) + pos_add_last = **(**int32)(__ccgo_up(bp)) + if (*Ttre_iteration_t)(unsafe.Pointer(iter1)).Fmin > int32(1) || (*Ttre_iteration_t)(unsafe.Pointer(iter1)).Fmax > int32(1) { + seq1 = UintptrFromInt32(0) + **(**uintptr)(__ccgo_up(bp + 8)) = UintptrFromInt32(0) + pos_add_save = **(**int32)(__ccgo_up(bp)) + /* Create a catenated sequence of copies of the node. */ + j = 0 + for { + if !(j < (*Ttre_iteration_t)(unsafe.Pointer(iter1)).Fmin) { + break + } + if j+int32(1) < (*Ttre_iteration_t)(unsafe.Pointer(iter1)).Fmin { + v2 = int32(COPY_REMOVE_TAGS) + } else { + v2 = int32(COPY_MAXIMIZE_FIRST_TAG) + } + /* Remove tags from all but the last copy. */ + flags = v2 + pos_add_save = **(**int32)(__ccgo_up(bp)) + status = _tre_copy_ast(tls, mem, stack, (*Ttre_iteration_t)(unsafe.Pointer(iter1)).Farg, flags, bp, tag_directions, bp+12, bp+4) + if status != REG_OK { + return status + } + if seq1 != UintptrFromInt32(0) { + seq1 = _tre_ast_new_catenation(tls, mem, seq1, **(**uintptr)(__ccgo_up(bp + 12))) + } else { + seq1 = **(**uintptr)(__ccgo_up(bp + 12)) + } + if seq1 == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + goto _1 + _1: + ; + j = j + 1 + } + if (*Ttre_iteration_t)(unsafe.Pointer(iter1)).Fmax == -int32(1) { + /* No upper limit. */ + pos_add_save = **(**int32)(__ccgo_up(bp)) + status = _tre_copy_ast(tls, mem, stack, (*Ttre_iteration_t)(unsafe.Pointer(iter1)).Farg, 0, bp, UintptrFromInt32(0), bp+8, bp+4) + if status != REG_OK { + return status + } + **(**uintptr)(__ccgo_up(bp + 8)) = _tre_ast_new_iter(tls, mem, **(**uintptr)(__ccgo_up(bp + 8)), 0, -int32(1), 0) + if **(**uintptr)(__ccgo_up(bp + 8)) == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + } else { + j = (*Ttre_iteration_t)(unsafe.Pointer(iter1)).Fmin + for { + if !(j < (*Ttre_iteration_t)(unsafe.Pointer(iter1)).Fmax) { + break + } + pos_add_save = **(**int32)(__ccgo_up(bp)) + status = _tre_copy_ast(tls, mem, stack, (*Ttre_iteration_t)(unsafe.Pointer(iter1)).Farg, 0, bp, UintptrFromInt32(0), bp+16, bp+4) + if status != REG_OK { + return status + } + if **(**uintptr)(__ccgo_up(bp + 8)) != UintptrFromInt32(0) { + **(**uintptr)(__ccgo_up(bp + 8)) = _tre_ast_new_catenation(tls, mem, **(**uintptr)(__ccgo_up(bp + 16)), **(**uintptr)(__ccgo_up(bp + 8))) + } else { + **(**uintptr)(__ccgo_up(bp + 8)) = **(**uintptr)(__ccgo_up(bp + 16)) + } + if **(**uintptr)(__ccgo_up(bp + 8)) == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + tmp = _tre_ast_new_literal(tls, mem, -int32(1), -int32(1), -int32(1)) + if tmp == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + **(**uintptr)(__ccgo_up(bp + 8)) = _tre_ast_new_union(tls, mem, tmp, **(**uintptr)(__ccgo_up(bp + 8))) + if **(**uintptr)(__ccgo_up(bp + 8)) == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + goto _3 + _3: + ; + j = j + 1 + } + } + **(**int32)(__ccgo_up(bp)) = pos_add_save + if seq1 == UintptrFromInt32(0) { + seq1 = **(**uintptr)(__ccgo_up(bp + 8)) + } else { + if **(**uintptr)(__ccgo_up(bp + 8)) != UintptrFromInt32(0) { + seq1 = _tre_ast_new_catenation(tls, mem, seq1, **(**uintptr)(__ccgo_up(bp + 8))) + } + } + if seq1 == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj = (*Ttre_ast_node_t)(unsafe.Pointer(seq1)).Fobj + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 = (*Ttre_ast_node_t)(unsafe.Pointer(seq1)).Ftype1 + } + iter_depth = iter_depth - 1 + pos_add_total = pos_add_total + (**(**int32)(__ccgo_up(bp)) - pos_add_last) + if iter_depth == 0 { + **(**int32)(__ccgo_up(bp)) = pos_add_total + } + default: + break + } + } + **(**int32)(__ccgo_up(position)) += pos_add_total + /* `max_pos' should never be larger than `*position' if the above + code works, but just an extra safeguard let's make sure + `*position' is set large enough so enough memory will be + allocated for the transition table. */ + if **(**int32)(__ccgo_up(bp + 4)) > **(**int32)(__ccgo_up(position)) { + **(**int32)(__ccgo_up(position)) = **(**int32)(__ccgo_up(bp + 4)) + } + return status +} + +func _tre_set_empty(tls *TLS, mem Ttre_mem_t) (r uintptr) { + var new_set uintptr + _ = new_set + new_set = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), int32(1), uint32(32)) + if new_set == UintptrFromInt32(0) { + return UintptrFromInt32(0) + } + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set))).Fposition = -int32(1) + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set))).Fcode_min = -int32(1) + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set))).Fcode_max = -int32(1) + return new_set +} + +func _tre_set_one(tls *TLS, mem Ttre_mem_t, position int32, code_min int32, code_max int32, class Ttre_ctype_t, neg_classes uintptr, backref int32) (r uintptr) { + var new_set uintptr + _ = new_set + new_set = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), int32(1), Uint32FromInt64(32)*Uint32FromInt32(2)) + if new_set == UintptrFromInt32(0) { + return UintptrFromInt32(0) + } + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set))).Fposition = position + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set))).Fcode_min = code_min + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set))).Fcode_max = code_max + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set))).Fclass = class + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set))).Fneg_classes = neg_classes + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set))).Fbackref = backref + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + 1*32))).Fposition = -int32(1) + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + 1*32))).Fcode_min = -int32(1) + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + 1*32))).Fcode_max = -int32(1) + return new_set +} + +func _tre_set_union(tls *TLS, mem Ttre_mem_t, set1 uintptr, set2 uintptr, tags uintptr, assertions int32) (r uintptr) { + var i, j, num_tags, s1, s2 int32 + var new_set, new_tags uintptr + _, _, _, _, _, _, _ = i, j, new_set, new_tags, num_tags, s1, s2 + num_tags = 0 + for { + if !(tags != UintptrFromInt32(0) && **(**int32)(__ccgo_up(tags + uintptr(num_tags)*4)) >= 0) { + break + } + goto _1 + _1: + ; + num_tags = num_tags + 1 + } + s1 = 0 + for { + if !((**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*32))).Fposition >= 0) { + break + } + goto _2 + _2: + ; + s1 = s1 + 1 + } + s2 = 0 + for { + if !((**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*32))).Fposition >= 0) { + break + } + goto _3 + _3: + ; + s2 = s2 + 1 + } + new_set = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), int32(1), uint32(32)*Uint32FromInt32(s1+s2+Int32FromInt32(1))) + if !(new_set != 0) { + return UintptrFromInt32(0) + } + s1 = 0 + for { + if !((**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*32))).Fposition >= 0) { + break + } + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1)*32))).Fposition = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*32))).Fposition + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1)*32))).Fcode_min = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*32))).Fcode_min + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1)*32))).Fcode_max = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*32))).Fcode_max + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1)*32))).Fassertions = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*32))).Fassertions | assertions + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1)*32))).Fclass = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*32))).Fclass + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1)*32))).Fneg_classes = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*32))).Fneg_classes + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1)*32))).Fbackref = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*32))).Fbackref + if (**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*32))).Ftags == UintptrFromInt32(0) && tags == UintptrFromInt32(0) { + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1)*32))).Ftags = UintptrFromInt32(0) + } else { + i = 0 + for { + if !((**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*32))).Ftags != UintptrFromInt32(0) && **(**int32)(__ccgo_up((**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*32))).Ftags + uintptr(i)*4)) >= 0) { + break + } + goto _5 + _5: + ; + i = i + 1 + } + new_tags = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, Uint32FromInt64(4)*Uint32FromInt32(i+num_tags+Int32FromInt32(1))) + if new_tags == UintptrFromInt32(0) { + return UintptrFromInt32(0) + } + j = 0 + for { + if !(j < i) { + break + } + **(**int32)(__ccgo_up(new_tags + uintptr(j)*4)) = **(**int32)(__ccgo_up((**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*32))).Ftags + uintptr(j)*4)) + goto _6 + _6: + ; + j = j + 1 + } + i = 0 + for { + if !(i < num_tags) { + break + } + **(**int32)(__ccgo_up(new_tags + uintptr(j+i)*4)) = **(**int32)(__ccgo_up(tags + uintptr(i)*4)) + goto _7 + _7: + ; + i = i + 1 + } + **(**int32)(__ccgo_up(new_tags + uintptr(j+i)*4)) = -int32(1) + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1)*32))).Ftags = new_tags + } + goto _4 + _4: + ; + s1 = s1 + 1 + } + s2 = 0 + for { + if !((**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*32))).Fposition >= 0) { + break + } + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1+s2)*32))).Fposition = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*32))).Fposition + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1+s2)*32))).Fcode_min = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*32))).Fcode_min + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1+s2)*32))).Fcode_max = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*32))).Fcode_max + /* XXX - why not | assertions here as well? */ + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1+s2)*32))).Fassertions = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*32))).Fassertions + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1+s2)*32))).Fclass = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*32))).Fclass + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1+s2)*32))).Fneg_classes = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*32))).Fneg_classes + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1+s2)*32))).Fbackref = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*32))).Fbackref + if (**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*32))).Ftags == UintptrFromInt32(0) { + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1+s2)*32))).Ftags = UintptrFromInt32(0) + } else { + i = 0 + for { + if !(**(**int32)(__ccgo_up((**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*32))).Ftags + uintptr(i)*4)) >= 0) { + break + } + goto _9 + _9: + ; + i = i + 1 + } + new_tags = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint32(4)*Uint32FromInt32(i+Int32FromInt32(1))) + if new_tags == UintptrFromInt32(0) { + return UintptrFromInt32(0) + } + j = 0 + for { + if !(j < i) { + break + } + **(**int32)(__ccgo_up(new_tags + uintptr(j)*4)) = **(**int32)(__ccgo_up((**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*32))).Ftags + uintptr(j)*4)) + goto _10 + _10: + ; + j = j + 1 + } + **(**int32)(__ccgo_up(new_tags + uintptr(j)*4)) = -int32(1) + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1+s2)*32))).Ftags = new_tags + } + goto _8 + _8: + ; + s2 = s2 + 1 + } + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1+s2)*32))).Fposition = -int32(1) + return new_set +} + +// C documentation +// +// /* Finds the empty path through `node' which is the one that should be +// taken according to POSIX.2 rules, and adds the tags on that path to +// `tags'. `tags' may be NULL. If `num_tags_seen' is not NULL, it is +// set to the number of tags seen on the path. */ +func _tre_match_empty(tls *TLS, stack uintptr, node uintptr, tags uintptr, assertions uintptr, num_tags_seen uintptr) (r Treg_errcode_t) { + var bottom, i int32 + var cat, iter, lit, uni, v2 uintptr + var status Treg_errcode_t + _, _, _, _, _, _, _, _ = bottom, cat, i, iter, lit, status, uni, v2 + bottom = _tre_stack_num_objects(tls, stack) + status = REG_OK + if num_tags_seen != 0 { + **(**int32)(__ccgo_up(num_tags_seen)) = 0 + } + status = _tre_stack_push_voidptr(tls, stack, node) + /* Walk through the tree recursively. */ + for status == REG_OK && _tre_stack_num_objects(tls, stack) > bottom { + node = _tre_stack_pop_voidptr(tls, stack) + switch (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 { + case int32(_LITERAL): + lit = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + switch (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min { + case -int32(3): + if (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max >= 0 { + if tags != UintptrFromInt32(0) { + /* Add the tag to `tags'. */ + i = 0 + for { + if !(**(**int32)(__ccgo_up(tags + uintptr(i)*4)) >= 0) { + break + } + if int32(**(**int32)(__ccgo_up(tags + uintptr(i)*4))) == (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max { + break + } + goto _1 + _1: + ; + i = i + 1 + } + if **(**int32)(__ccgo_up(tags + uintptr(i)*4)) < 0 { + **(**int32)(__ccgo_up(tags + uintptr(i)*4)) = (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max + **(**int32)(__ccgo_up(tags + uintptr(i+int32(1))*4)) = -int32(1) + } + } + if num_tags_seen != 0 { + **(**int32)(__ccgo_up(num_tags_seen)) = **(**int32)(__ccgo_up(num_tags_seen)) + 1 + } + } + case -int32(2): + if assertions != UintptrFromInt32(0) { + v2 = assertions + *(*int32)(unsafe.Pointer(v2)) = *(*int32)(unsafe.Pointer(v2)) | (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max + } + case -int32(1): + default: + break + } + case int32(_UNION): + /* Subexpressions starting earlier take priority over ones + starting later, so we prefer the left subexpression over the + right subexpression. */ + uni = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + if (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_union_t)(unsafe.Pointer(uni)).Fleft)).Fnullable != 0 { + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_union_t)(unsafe.Pointer(uni)).Fleft) + if status != REG_OK { + break + } + } else { + if (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_union_t)(unsafe.Pointer(uni)).Fright)).Fnullable != 0 { + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_union_t)(unsafe.Pointer(uni)).Fright) + if status != REG_OK { + break + } + } else { + } + } + case int32(_CATENATION): + /* The path must go through both children. */ + cat = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright) + if status != REG_OK { + break + } + case int32(_ITERATION): + /* A match with an empty string is preferred over no match at + all, so we go through the argument if possible. */ + iter = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + if (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg)).Fnullable != 0 { + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg) + if status != REG_OK { + break + } + } + default: + break + } + } + return status +} + +type Ttre_nfl_stack_symbol_t = int32 + +const _NFL_RECURSE = 0 +const _NFL_POST_UNION = 1 +const _NFL_POST_CATENATION = 2 +const _NFL_POST_ITERATION = 3 + +// C documentation +// +// /* Computes and fills in the fields `nullable', `firstpos', and `lastpos' for +// the nodes of the AST `tree'. */ +func _tre_compute_nfl(tls *TLS, mem Ttre_mem_t, stack uintptr, tree uintptr) (r Treg_errcode_t) { + bp := tls.Alloc(16) + defer tls.Free(16) + var _status, _status1, _status10, _status11, _status12, _status13, _status14, _status15, _status16, _status17, _status2, _status3, _status4, _status5, _status6, _status7, _status8, _status9, status Treg_errcode_t + var bottom int32 + var cat, iter, lit, node, tags, uni uintptr + var symbol Ttre_nfl_stack_symbol_t + var _ /* assertions at bp+4 */ int32 + var _ /* num_tags at bp+0 */ int32 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = _status, _status1, _status10, _status11, _status12, _status13, _status14, _status15, _status16, _status17, _status2, _status3, _status4, _status5, _status6, _status7, _status8, _status9, bottom, cat, iter, lit, node, status, symbol, tags, uni + bottom = _tre_stack_num_objects(tls, stack) + _status = _tre_stack_push_voidptr(tls, stack, tree) + if _status != REG_OK { + return _status + } + _status1 = _tre_stack_push_int(tls, stack, int32(_NFL_RECURSE)) + if _status1 != REG_OK { + return _status1 + } + for _tre_stack_num_objects(tls, stack) > bottom { + symbol = _tre_stack_pop_int(tls, stack) + node = _tre_stack_pop_voidptr(tls, stack) + switch symbol { + case int32(_NFL_RECURSE): + switch (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 { + case int32(_LITERAL): + lit = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + if (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min == -int32(4) { + /* Back references: nullable = false, firstpos = {i}, + lastpos = {i}. */ + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnullable = 0 + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos = _tre_set_one(tls, mem, (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition, 0, int32(TRE_CHAR_MAX), uint32(0), UintptrFromInt32(0), -int32(1)) + if !((*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos != 0) { + return int32(REG_ESPACE) + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos = _tre_set_one(tls, mem, (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition, 0, int32(TRE_CHAR_MAX), uint32(0), UintptrFromInt32(0), (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max) + if !((*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos != 0) { + return int32(REG_ESPACE) + } + } else { + if (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min < 0 { + /* Tags, empty strings, params, and zero width assertions: + nullable = true, firstpos = {}, and lastpos = {}. */ + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnullable = int32(1) + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos = _tre_set_empty(tls, mem) + if !((*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos != 0) { + return int32(REG_ESPACE) + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos = _tre_set_empty(tls, mem) + if !((*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos != 0) { + return int32(REG_ESPACE) + } + } else { + /* Literal at position i: nullable = false, firstpos = {i}, + lastpos = {i}. */ + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnullable = 0 + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos = _tre_set_one(tls, mem, (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition, (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min, (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max, uint32(0), UintptrFromInt32(0), -int32(1)) + if !((*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos != 0) { + return int32(REG_ESPACE) + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos = _tre_set_one(tls, mem, (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition, (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min, (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max, (*Ttre_literal_t)(unsafe.Pointer(lit)).Fclass, (*Ttre_literal_t)(unsafe.Pointer(lit)).Fneg_classes, -int32(1)) + if !((*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos != 0) { + return int32(REG_ESPACE) + } + } + } + case int32(_UNION): + /* Compute the attributes for the two subtrees, and after that + for this node. */ + _status2 = _tre_stack_push_voidptr(tls, stack, node) + if _status2 != REG_OK { + return _status2 + } + _status3 = _tre_stack_push_int(tls, stack, int32(_NFL_POST_UNION)) + if _status3 != REG_OK { + return _status3 + } + _status4 = _tre_stack_push_voidptr(tls, stack, (*Ttre_union_t)(unsafe.Pointer((*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj)).Fright) + if _status4 != REG_OK { + return _status4 + } + _status5 = _tre_stack_push_int(tls, stack, int32(_NFL_RECURSE)) + if _status5 != REG_OK { + return _status5 + } + _status6 = _tre_stack_push_voidptr(tls, stack, (*Ttre_union_t)(unsafe.Pointer((*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj)).Fleft) + if _status6 != REG_OK { + return _status6 + } + _status7 = _tre_stack_push_int(tls, stack, int32(_NFL_RECURSE)) + if _status7 != REG_OK { + return _status7 + } + case int32(_CATENATION): + /* Compute the attributes for the two subtrees, and after that + for this node. */ + _status8 = _tre_stack_push_voidptr(tls, stack, node) + if _status8 != REG_OK { + return _status8 + } + _status9 = _tre_stack_push_int(tls, stack, int32(_NFL_POST_CATENATION)) + if _status9 != REG_OK { + return _status9 + } + _status10 = _tre_stack_push_voidptr(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer((*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj)).Fright) + if _status10 != REG_OK { + return _status10 + } + _status11 = _tre_stack_push_int(tls, stack, int32(_NFL_RECURSE)) + if _status11 != REG_OK { + return _status11 + } + _status12 = _tre_stack_push_voidptr(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer((*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj)).Fleft) + if _status12 != REG_OK { + return _status12 + } + _status13 = _tre_stack_push_int(tls, stack, int32(_NFL_RECURSE)) + if _status13 != REG_OK { + return _status13 + } + case int32(_ITERATION): + /* Compute the attributes for the subtree, and after that for + this node. */ + _status14 = _tre_stack_push_voidptr(tls, stack, node) + if _status14 != REG_OK { + return _status14 + } + _status15 = _tre_stack_push_int(tls, stack, int32(_NFL_POST_ITERATION)) + if _status15 != REG_OK { + return _status15 + } + _status16 = _tre_stack_push_voidptr(tls, stack, (*Ttre_iteration_t)(unsafe.Pointer((*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj)).Farg) + if _status16 != REG_OK { + return _status16 + } + _status17 = _tre_stack_push_int(tls, stack, int32(_NFL_RECURSE)) + if _status17 != REG_OK { + return _status17 + } + break + } + case int32(_NFL_POST_UNION): + uni = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnullable = BoolInt32((*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_union_t)(unsafe.Pointer(uni)).Fleft)).Fnullable != 0 || (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_union_t)(unsafe.Pointer(uni)).Fright)).Fnullable != 0) + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos = _tre_set_union(tls, mem, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_union_t)(unsafe.Pointer(uni)).Fleft)).Ffirstpos, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_union_t)(unsafe.Pointer(uni)).Fright)).Ffirstpos, UintptrFromInt32(0), 0) + if !((*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos != 0) { + return int32(REG_ESPACE) + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos = _tre_set_union(tls, mem, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_union_t)(unsafe.Pointer(uni)).Fleft)).Flastpos, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_union_t)(unsafe.Pointer(uni)).Fright)).Flastpos, UintptrFromInt32(0), 0) + if !((*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos != 0) { + return int32(REG_ESPACE) + } + case int32(_NFL_POST_ITERATION): + iter = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + if (*Ttre_iteration_t)(unsafe.Pointer(iter)).Fmin == 0 || (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg)).Fnullable != 0 { + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnullable = int32(1) + } else { + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnullable = 0 + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos = (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg)).Ffirstpos + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos = (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg)).Flastpos + case int32(_NFL_POST_CATENATION): + cat = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnullable = BoolInt32((*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft)).Fnullable != 0 && (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright)).Fnullable != 0) + /* Compute firstpos. */ + if (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft)).Fnullable != 0 { + /* The left side matches the empty string. Make a first pass + with tre_match_empty() to get the number of tags and + parameters. */ + status = _tre_match_empty(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft, UintptrFromInt32(0), UintptrFromInt32(0), bp) + if status != REG_OK { + return status + } + /* Allocate arrays for the tags and parameters. */ + tags = Xmalloc(tls, uint32(4)*Uint32FromInt32(**(**int32)(__ccgo_up(bp))+Int32FromInt32(1))) + if !(tags != 0) { + return int32(REG_ESPACE) + } + **(**int32)(__ccgo_up(tags)) = -int32(1) + **(**int32)(__ccgo_up(bp + 4)) = 0 + /* Second pass with tre_mach_empty() to get the list of + tags and parameters. */ + status = _tre_match_empty(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft, tags, bp+4, UintptrFromInt32(0)) + if status != REG_OK { + Xfree(tls, tags) + return status + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos = _tre_set_union(tls, mem, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright)).Ffirstpos, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft)).Ffirstpos, tags, **(**int32)(__ccgo_up(bp + 4))) + Xfree(tls, tags) + if !((*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos != 0) { + return int32(REG_ESPACE) + } + } else { + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos = (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft)).Ffirstpos + } + /* Compute lastpos. */ + if (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright)).Fnullable != 0 { + /* The right side matches the empty string. Make a first pass + with tre_match_empty() to get the number of tags and + parameters. */ + status = _tre_match_empty(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright, UintptrFromInt32(0), UintptrFromInt32(0), bp) + if status != REG_OK { + return status + } + /* Allocate arrays for the tags and parameters. */ + tags = Xmalloc(tls, uint32(4)*Uint32FromInt32(**(**int32)(__ccgo_up(bp))+Int32FromInt32(1))) + if !(tags != 0) { + return int32(REG_ESPACE) + } + **(**int32)(__ccgo_up(tags)) = -int32(1) + **(**int32)(__ccgo_up(bp + 4)) = 0 + /* Second pass with tre_mach_empty() to get the list of + tags and parameters. */ + status = _tre_match_empty(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright, tags, bp+4, UintptrFromInt32(0)) + if status != REG_OK { + Xfree(tls, tags) + return status + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos = _tre_set_union(tls, mem, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft)).Flastpos, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright)).Flastpos, tags, **(**int32)(__ccgo_up(bp + 4))) + Xfree(tls, tags) + if !((*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos != 0) { + return int32(REG_ESPACE) + } + } else { + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos = (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright)).Flastpos + } + default: + break + } + } + return REG_OK +} + +// C documentation +// +// /* Adds a transition from each position in `p1' to each position in `p2'. */ +func _tre_make_trans(tls *TLS, p1 uintptr, p2 uintptr, transitions uintptr, counts uintptr, offs uintptr) (r Treg_errcode_t) { + var dup, i, j, k, l, prev_p2_pos, v1, v2 int32 + var orig_p2, trans uintptr + _, _, _, _, _, _, _, _, _, _ = dup, i, j, k, l, orig_p2, prev_p2_pos, trans, v1, v2 + orig_p2 = p2 + if transitions != UintptrFromInt32(0) { + for (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fposition >= 0 { + p2 = orig_p2 + prev_p2_pos = -int32(1) + for (*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Fposition >= 0 { + /* Optimization: if this position was already handled, skip it. */ + if (*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Fposition == prev_p2_pos { + p2 += 32 + continue + } + prev_p2_pos = (*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Fposition + /* Set `trans' to point to the next unused transition from + position `p1->position'. */ + trans = transitions + uintptr(**(**int32)(__ccgo_up(offs + uintptr((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fposition)*4)))*32 + for (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fstate != UintptrFromInt32(0) { + trans += 32 + } + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fstate == UintptrFromInt32(0) { + (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans + UintptrFromInt32(1)*32)).Fstate = UintptrFromInt32(0) + } + /* Use the character ranges, assertions, etc. from `p1' for + the transition from `p1' to `p2'. */ + (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fcode_min = Uint32FromInt32((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fcode_min) + (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fcode_max = Uint32FromInt32((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fcode_max) + (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fstate = transitions + uintptr(**(**int32)(__ccgo_up(offs + uintptr((*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Fposition)*4)))*32 + (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fstate_id = (*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Fposition + if (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fclass != 0 { + v1 = int32(ASSERT_CHAR_CLASS) + } else { + v1 = 0 + } + if (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fneg_classes != UintptrFromInt32(0) { + v2 = int32(ASSERT_CHAR_CLASS_NEG) + } else { + v2 = 0 + } + (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fassertions = (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fassertions | (*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Fassertions | v1 | v2 + if (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fbackref >= 0 { + *(*int32)(unsafe.Pointer(trans + 24)) = (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fbackref + **(**int32)(__ccgo_up(trans + 20)) |= int32(ASSERT_BACKREF) + } else { + *(*Ttre_ctype_t)(unsafe.Pointer(trans + 24)) = (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fclass + } + if (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fneg_classes != UintptrFromInt32(0) { + i = 0 + for { + if !(**(**Ttre_ctype_t)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fneg_classes + uintptr(i)*4)) != Uint32FromInt32(0)) { + break + } + goto _3 + _3: + ; + i = i + 1 + } + (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fneg_classes = Xmalloc(tls, uint32(4)*Uint32FromInt32(i+Int32FromInt32(1))) + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fneg_classes == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + i = 0 + for { + if !(**(**Ttre_ctype_t)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fneg_classes + uintptr(i)*4)) != Uint32FromInt32(0)) { + break + } + **(**Ttre_ctype_t)(__ccgo_up((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fneg_classes + uintptr(i)*4)) = **(**Ttre_ctype_t)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fneg_classes + uintptr(i)*4)) + goto _4 + _4: + ; + i = i + 1 + } + **(**Ttre_ctype_t)(__ccgo_up((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fneg_classes + uintptr(i)*4)) = Uint32FromInt32(0) + } else { + (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fneg_classes = UintptrFromInt32(0) + } + /* Find out how many tags this transition has. */ + i = 0 + if (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Ftags != UintptrFromInt32(0) { + for **(**int32)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Ftags + uintptr(i)*4)) >= 0 { + i = i + 1 + } + } + j = 0 + if (*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Ftags != UintptrFromInt32(0) { + for **(**int32)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Ftags + uintptr(j)*4)) >= 0 { + j = j + 1 + } + } + /* If we are overwriting a transition, free the old tag array. */ + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags != UintptrFromInt32(0) { + Xfree(tls, (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags) + } + (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags = UintptrFromInt32(0) + /* If there were any tags, allocate an array and fill it. */ + if i+j > 0 { + (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags = Xmalloc(tls, uint32(4)*Uint32FromInt32(i+j+Int32FromInt32(1))) + if !((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags != 0) { + return int32(REG_ESPACE) + } + i = 0 + if (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Ftags != UintptrFromInt32(0) { + for **(**int32)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Ftags + uintptr(i)*4)) >= 0 { + **(**int32)(__ccgo_up((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags + uintptr(i)*4)) = **(**int32)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Ftags + uintptr(i)*4)) + i = i + 1 + } + } + l = i + j = 0 + if (*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Ftags != UintptrFromInt32(0) { + for **(**int32)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Ftags + uintptr(j)*4)) >= 0 { + /* Don't add duplicates. */ + dup = 0 + k = 0 + for { + if !(k < i) { + break + } + if **(**int32)(__ccgo_up((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags + uintptr(k)*4)) == **(**int32)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Ftags + uintptr(j)*4)) { + dup = int32(1) + break + } + goto _5 + _5: + ; + k = k + 1 + } + if !(dup != 0) { + v1 = l + l = l + 1 + **(**int32)(__ccgo_up((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags + uintptr(v1)*4)) = **(**int32)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Ftags + uintptr(j)*4)) + } + j = j + 1 + } + } + **(**int32)(__ccgo_up((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags + uintptr(l)*4)) = -int32(1) + } + p2 += 32 + } + p1 += 32 + } + } else { + /* Compute a maximum limit for the number of transitions leaving + from each state. */ + for (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fposition >= 0 { + p2 = orig_p2 + for (*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Fposition >= 0 { + **(**int32)(__ccgo_up(counts + uintptr((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fposition)*4)) = **(**int32)(__ccgo_up(counts + uintptr((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fposition)*4)) + 1 + p2 += 32 + } + p1 += 32 + } + } + return REG_OK +} + +// C documentation +// +// /* Converts the syntax tree to a TNFA. All the transitions in the TNFA are +// labelled with one character range (there are no transitions on empty +// strings). The TNFA takes O(n^2) space in the worst case, `n' is size of +// the regexp. */ +func _tre_ast_to_tnfa(tls *TLS, node uintptr, transitions uintptr, counts uintptr, offs uintptr) (r Treg_errcode_t) { + var cat, iter, uni uintptr + var errcode Treg_errcode_t + _, _, _, _ = cat, errcode, iter, uni + errcode = REG_OK + /* XXX - recurse using a stack!. */ + switch (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 { + case int32(_LITERAL): + case int32(_UNION): + uni = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + errcode = _tre_ast_to_tnfa(tls, (*Ttre_union_t)(unsafe.Pointer(uni)).Fleft, transitions, counts, offs) + if errcode != REG_OK { + return errcode + } + errcode = _tre_ast_to_tnfa(tls, (*Ttre_union_t)(unsafe.Pointer(uni)).Fright, transitions, counts, offs) + case int32(_CATENATION): + cat = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + /* Add a transition from each position in cat->left->lastpos + to each position in cat->right->firstpos. */ + errcode = _tre_make_trans(tls, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft)).Flastpos, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright)).Ffirstpos, transitions, counts, offs) + if errcode != REG_OK { + return errcode + } + errcode = _tre_ast_to_tnfa(tls, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft, transitions, counts, offs) + if errcode != REG_OK { + return errcode + } + errcode = _tre_ast_to_tnfa(tls, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright, transitions, counts, offs) + case int32(_ITERATION): + iter = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + if (*Ttre_iteration_t)(unsafe.Pointer(iter)).Fmax == -int32(1) { + /* Add a transition from each last position in the iterated + expression to each first position. */ + errcode = _tre_make_trans(tls, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg)).Flastpos, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg)).Ffirstpos, transitions, counts, offs) + if errcode != REG_OK { + return errcode + } + } + errcode = _tre_ast_to_tnfa(tls, (*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg, transitions, counts, offs) + break + } + return errcode +} + +func Xregcomp(tls *TLS, preg uintptr, regex uintptr, cflags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v preg=%v regex=%v cflags=%v, (%v:)", tls, preg, regex, cflags, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + var add, i, j, v1 int32 + var counts, initial, offs, p, stack, submatch_data, tag_directions, tmp_ast_l, tmp_ast_r, tnfa, transitions, tree, v2 uintptr + var errcode Treg_errcode_t + var mem Ttre_mem_t + var _ /* parse_ctx at bp+0 */ Ttre_parse_ctx_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = add, counts, errcode, i, initial, j, mem, offs, p, stack, submatch_data, tag_directions, tmp_ast_l, tmp_ast_r, tnfa, transitions, tree, v1, v2 + counts = UintptrFromInt32(0) + offs = UintptrFromInt32(0) + add = 0 + tnfa = UintptrFromInt32(0) + tag_directions = UintptrFromInt32(0) + /* Allocate a stack used throughout the compilation process for various + purposes. */ + stack = _tre_stack_new(tls, int32(512), int32(1024000), int32(128)) + if !(stack != 0) { + return int32(REG_ESPACE) + } + /* Allocate a fast memory allocator. */ + mem = X__tre_mem_new_impl(tls, 0, UintptrFromInt32(0)) + if !(mem != 0) { + _tre_stack_destroy(tls, stack) + return int32(REG_ESPACE) + } + /* Parse the regexp. */ + Xmemset(tls, bp, 0, uint32(36)) + (**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fmem = mem + (**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fstack = stack + (**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fstart = regex + (**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fcflags = cflags + (**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fmax_backref = -int32(1) + errcode = _tre_parse(tls, bp) + if errcode != REG_OK { + errcode = errcode + if int32(1) != 0 { + goto error_exit + } + } + (*Tregex_t)(unsafe.Pointer(preg)).Fre_nsub = Uint32FromInt32((**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fsubmatch_id - int32(1)) + tree = (**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fn + /* Referring to nonexistent subexpressions is illegal. */ + if (**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fmax_backref > Int32FromUint32((*Tregex_t)(unsafe.Pointer(preg)).Fre_nsub) { + errcode = int32(REG_ESUBREG) + if int32(1) != 0 { + goto error_exit + } + } + /* Allocate the TNFA struct. */ + tnfa = Xcalloc(tls, uint32(1), uint32(68)) + if tnfa == UintptrFromInt32(0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fhave_backrefs = BoolInt32((**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fmax_backref >= 0) + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fhave_approx = 0 + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_submatches = Uint32FromInt32((**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fsubmatch_id) + /* Set up tags for submatch addressing. If REG_NOSUB is set and the + regexp does not have back references, this can be skipped. */ + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fhave_backrefs != 0 || !(cflags&Int32FromInt32(REG_NOSUB) != 0) { + /* Figure out how many tags we will need. */ + errcode = _tre_add_tags(tls, UintptrFromInt32(0), stack, tree, tnfa) + if errcode != REG_OK { + errcode = errcode + if int32(1) != 0 { + goto error_exit + } + } + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags > 0 { + tag_directions = Xmalloc(tls, uint32(4)*Uint32FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags+Int32FromInt32(1))) + if tag_directions == UintptrFromInt32(0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions = tag_directions + Xmemset(tls, tag_directions, -int32(1), uint32(4)*Uint32FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags+Int32FromInt32(1))) + } + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags = Xcalloc(tls, Uint32FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags)*uint32(2)+uint32(1), uint32(4)) + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags == UintptrFromInt32(0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + submatch_data = Xcalloc(tls, Uint32FromInt32((**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fsubmatch_id), uint32(12)) + if submatch_data == UintptrFromInt32(0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fsubmatch_data = submatch_data + errcode = _tre_add_tags(tls, mem, stack, tree, tnfa) + if errcode != REG_OK { + errcode = errcode + if int32(1) != 0 { + goto error_exit + } + } + } + /* Expand iteration nodes. */ + errcode = _tre_expand_ast(tls, mem, stack, tree, bp+24, tag_directions) + if errcode != REG_OK { + errcode = errcode + if int32(1) != 0 { + goto error_exit + } + } + /* Add a dummy node for the final state. + XXX - For certain patterns this dummy node can be optimized away, + for example "a*" or "ab*". Figure out a simple way to detect + this possibility. */ + tmp_ast_l = tree + v2 = bp + 24 + v1 = *(*int32)(unsafe.Pointer(v2)) + *(*int32)(unsafe.Pointer(v2)) = *(*int32)(unsafe.Pointer(v2)) + 1 + tmp_ast_r = _tre_ast_new_literal(tls, mem, 0, 0, v1) + if tmp_ast_r == UintptrFromInt32(0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + tree = _tre_ast_new_catenation(tls, mem, tmp_ast_l, tmp_ast_r) + if tree == UintptrFromInt32(0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + errcode = _tre_compute_nfl(tls, mem, stack, tree) + if errcode != REG_OK { + errcode = errcode + if int32(1) != 0 { + goto error_exit + } + } + counts = Xmalloc(tls, uint32(4)*Uint32FromInt32((**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fposition)) + if counts == UintptrFromInt32(0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + offs = Xmalloc(tls, uint32(4)*Uint32FromInt32((**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fposition)) + if offs == UintptrFromInt32(0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + i = 0 + for { + if !(i < (**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fposition) { + break + } + **(**int32)(__ccgo_up(counts + uintptr(i)*4)) = 0 + goto _3 + _3: + ; + i = i + 1 + } + _tre_ast_to_tnfa(tls, tree, UintptrFromInt32(0), counts, UintptrFromInt32(0)) + add = 0 + i = 0 + for { + if !(i < (**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fposition) { + break + } + **(**int32)(__ccgo_up(offs + uintptr(i)*4)) = add + add = add + (**(**int32)(__ccgo_up(counts + uintptr(i)*4)) + int32(1)) + **(**int32)(__ccgo_up(counts + uintptr(i)*4)) = 0 + goto _4 + _4: + ; + i = i + 1 + } + transitions = Xcalloc(tls, Uint32FromInt32(add)+uint32(1), uint32(32)) + if transitions == UintptrFromInt32(0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftransitions = transitions + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_transitions = Uint32FromInt32(add) + errcode = _tre_ast_to_tnfa(tls, tree, transitions, counts, offs) + if errcode != REG_OK { + errcode = errcode + if int32(1) != 0 { + goto error_exit + } + } + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ffirstpos_chars = UintptrFromInt32(0) + p = (*Ttre_ast_node_t)(unsafe.Pointer(tree)).Ffirstpos + i = 0 + for (*Ttre_pos_and_tags_t)(unsafe.Pointer(p)).Fposition >= 0 { + i = i + 1 + p += 32 + } + initial = Xcalloc(tls, Uint32FromInt32(i)+uint32(1), uint32(32)) + if initial == UintptrFromInt32(0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Finitial = initial + i = 0 + p = (*Ttre_ast_node_t)(unsafe.Pointer(tree)).Ffirstpos + for { + if !((*Ttre_pos_and_tags_t)(unsafe.Pointer(p)).Fposition >= 0) { + break + } + (**(**Ttre_tnfa_transition_t)(__ccgo_up(initial + uintptr(i)*32))).Fstate = transitions + uintptr(**(**int32)(__ccgo_up(offs + uintptr((*Ttre_pos_and_tags_t)(unsafe.Pointer(p)).Fposition)*4)))*32 + (**(**Ttre_tnfa_transition_t)(__ccgo_up(initial + uintptr(i)*32))).Fstate_id = (*Ttre_pos_and_tags_t)(unsafe.Pointer(p)).Fposition + (**(**Ttre_tnfa_transition_t)(__ccgo_up(initial + uintptr(i)*32))).Ftags = UintptrFromInt32(0) + /* Copy the arrays p->tags, and p->params, they are allocated + from a tre_mem object. */ + if (*Ttre_pos_and_tags_t)(unsafe.Pointer(p)).Ftags != 0 { + j = 0 + for { + if !(**(**int32)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p)).Ftags + uintptr(j)*4)) >= 0) { + break + } + goto _6 + _6: + ; + j = j + 1 + } + (**(**Ttre_tnfa_transition_t)(__ccgo_up(initial + uintptr(i)*32))).Ftags = Xmalloc(tls, uint32(4)*Uint32FromInt32(j+Int32FromInt32(1))) + if !((**(**Ttre_tnfa_transition_t)(__ccgo_up(initial + uintptr(i)*32))).Ftags != 0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + _memcpy(tls, (**(**Ttre_tnfa_transition_t)(__ccgo_up(initial + uintptr(i)*32))).Ftags, (*Ttre_pos_and_tags_t)(unsafe.Pointer(p)).Ftags, uint32(4)*Uint32FromInt32(j+Int32FromInt32(1))) + } + (**(**Ttre_tnfa_transition_t)(__ccgo_up(initial + uintptr(i)*32))).Fassertions = (*Ttre_pos_and_tags_t)(unsafe.Pointer(p)).Fassertions + i = i + 1 + goto _5 + _5: + ; + p += 32 + } + (**(**Ttre_tnfa_transition_t)(__ccgo_up(initial + uintptr(i)*32))).Fstate = UintptrFromInt32(0) + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_transitions = Uint32FromInt32(add) + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ffinal = transitions + uintptr(**(**int32)(__ccgo_up(offs + uintptr((**(**Ttre_pos_and_tags_t)(__ccgo_up((*Ttre_ast_node_t)(unsafe.Pointer(tree)).Flastpos))).Fposition)*4)))*32 + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states = (**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fposition + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags = cflags + X__tre_mem_destroy(tls, mem) + _tre_stack_destroy(tls, stack) + Xfree(tls, counts) + Xfree(tls, offs) + (*Tregex_t)(unsafe.Pointer(preg)).F__opaque = tnfa + return REG_OK + goto error_exit +error_exit: + ; + /* Free everything that was allocated and return the error code. */ + X__tre_mem_destroy(tls, mem) + if stack != UintptrFromInt32(0) { + _tre_stack_destroy(tls, stack) + } + if counts != UintptrFromInt32(0) { + Xfree(tls, counts) + } + if offs != UintptrFromInt32(0) { + Xfree(tls, offs) + } + (*Tregex_t)(unsafe.Pointer(preg)).F__opaque = tnfa + Xregfree(tls, preg) + return errcode +} + +func Xregfree(tls *TLS, preg uintptr) { + if __ccgo_strace { + trc("tls=%v preg=%v, (%v:)", tls, preg, origin(2)) + } + var i uint32 + var tnfa, trans uintptr + _, _, _ = i, tnfa, trans + tnfa = (*Tregex_t)(unsafe.Pointer(preg)).F__opaque + if !(tnfa != 0) { + return + } + i = uint32(0) + for { + if !(i < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_transitions) { + break + } + if (**(**Ttre_tnfa_transition_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftransitions + uintptr(i)*32))).Fstate != 0 { + if (**(**Ttre_tnfa_transition_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftransitions + uintptr(i)*32))).Ftags != 0 { + Xfree(tls, (**(**Ttre_tnfa_transition_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftransitions + uintptr(i)*32))).Ftags) + } + if (**(**Ttre_tnfa_transition_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftransitions + uintptr(i)*32))).Fneg_classes != 0 { + Xfree(tls, (**(**Ttre_tnfa_transition_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftransitions + uintptr(i)*32))).Fneg_classes) + } + } + goto _1 + _1: + ; + i = i + 1 + } + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftransitions != 0 { + Xfree(tls, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftransitions) + } + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Finitial != 0 { + trans = (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Finitial + for { + if !((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fstate != 0) { + break + } + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags != 0 { + Xfree(tls, (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags) + } + goto _2 + _2: + ; + trans += 32 + } + Xfree(tls, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Finitial) + } + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fsubmatch_data != 0 { + i = uint32(0) + for { + if !(i < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_submatches) { + break + } + if (**(**Ttre_submatch_data_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fsubmatch_data + uintptr(i)*12))).Fparents != 0 { + Xfree(tls, (**(**Ttre_submatch_data_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fsubmatch_data + uintptr(i)*12))).Fparents) + } + goto _3 + _3: + ; + i = i + 1 + } + Xfree(tls, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fsubmatch_data) + } + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions != 0 { + Xfree(tls, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions) + } + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ffirstpos_chars != 0 { + Xfree(tls, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ffirstpos_chars) + } + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags != 0 { + Xfree(tls, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags) + } + Xfree(tls, tnfa) +} + +/* Error message strings for error codes listed in `regex.h'. This list + needs to be in sync with the codes listed there, naturally. */ + +/* Converted to single string by Rich Felker to remove the need for + * data relocations at runtime, 27 Feb 2006. */ + +var _messages = [286]uint8{'N', 'o', ' ', 'e', 'r', 'r', 'o', 'r', 0, 'N', 'o', ' ', 'm', 'a', 't', 'c', 'h', 0, 'I', 'n', 'v', 'a', 'l', 'i', 'd', ' ', 'r', 'e', 'g', 'e', 'x', 'p', 0, 'U', 'n', 'k', 'n', 'o', 'w', 'n', ' ', 'c', 'o', 'l', 'l', 'a', 't', 'i', 'n', 'g', ' ', 'e', 'l', 'e', 'm', 'e', 'n', 't', 0, 'U', 'n', 'k', 'n', 'o', 'w', 'n', ' ', 'c', 'h', 'a', 'r', 'a', 'c', 't', 'e', 'r', ' ', 'c', 'l', 'a', 's', 's', ' ', 'n', 'a', 'm', 'e', 0, 'T', 'r', 'a', 'i', 'l', 'i', 'n', 'g', ' ', 'b', 'a', 'c', 'k', 's', 'l', 'a', 's', 'h', 0, 'I', 'n', 'v', 'a', 'l', 'i', 'd', ' ', 'b', 'a', 'c', 'k', ' ', 'r', 'e', 'f', 'e', 'r', 'e', 'n', 'c', 'e', 0, 'M', 'i', 's', 's', 'i', 'n', 'g', ' ', '\'', ']', '\'', 0, 'M', 'i', 's', 's', 'i', 'n', 'g', ' ', '\'', ')', '\'', 0, 'M', 'i', 's', 's', 'i', 'n', 'g', ' ', '\'', '}', '\'', 0, 'I', 'n', 'v', 'a', 'l', 'i', 'd', ' ', 'c', 'o', 'n', 't', 'e', 'n', 't', 's', ' ', 'o', 'f', ' ', '{', '}', 0, 'I', 'n', 'v', 'a', 'l', 'i', 'd', ' ', 'c', 'h', 'a', 'r', 'a', 'c', 't', 'e', 'r', ' ', 'r', 'a', 'n', 'g', 'e', 0, 'O', 'u', 't', ' ', 'o', 'f', ' ', 'm', 'e', 'm', 'o', 'r', 'y', 0, 'R', 'e', 'p', 'e', 't', 'i', 't', 'i', 'o', 'n', ' ', 'n', 'o', 't', ' ', 'p', 'r', 'e', 'c', 'e', 'd', 'e', 'd', ' ', 'b', 'y', ' ', 'v', 'a', 'l', 'i', 'd', ' ', 'e', 'x', 'p', 'r', 'e', 's', 's', 'i', 'o', 'n', 0, 0, 'U', 'n', 'k', 'n', 'o', 'w', 'n', ' ', 'e', 'r', 'r', 'o', 'r'} + +func Xregerror(tls *TLS, e int32, preg uintptr, buf uintptr, size Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v e=%v preg=%v buf=%v size=%v, (%v:)", tls, e, preg, buf, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var s uintptr + _ = s + s = uintptr(unsafe.Pointer(&_messages)) + for { + if !(e != 0 && **(**uint8)(__ccgo_up(s)) != 0) { + break + } + goto _1 + _1: + ; + e = e - 1 + s = s + uintptr(_strlen(tls, s)+uint32(1)) + } + if !(**(**uint8)(__ccgo_up(s)) != 0) { + s = s + 1 + } + s = X__lctrans_cur(tls, s) + return Uint32FromInt32(int32(1) + Xsnprintf(tls, buf, size, __ccgo_ts+15, VaList(bp+8, s))) +} + +const tre_bt_mem_alloc = 0 +const tre_bt_mem_destroy = 0 +const tre_bt_mem_new = 0 + +/*********************************************************************** + from tre-match-utils.h +***********************************************************************/ + +// C documentation +// +// /* Returns 1 if `t1' wins `t2', 0 otherwise. */ +func _tre_tag_order(tls *TLS, num_tags int32, tag_directions uintptr, t1 uintptr, t2 uintptr) (r int32) { + var i int32 + _ = i + i = 0 + for { + if !(i < num_tags) { + break + } + if **(**Ttre_tag_direction_t)(__ccgo_up(tag_directions + uintptr(i)*4)) == int32(_TRE_TAG_MINIMIZE) { + if **(**Tregoff_t)(__ccgo_up(t1 + uintptr(i)*4)) < **(**Tregoff_t)(__ccgo_up(t2 + uintptr(i)*4)) { + return int32(1) + } + if **(**Tregoff_t)(__ccgo_up(t1 + uintptr(i)*4)) > **(**Tregoff_t)(__ccgo_up(t2 + uintptr(i)*4)) { + return 0 + } + } else { + if **(**Tregoff_t)(__ccgo_up(t1 + uintptr(i)*4)) > **(**Tregoff_t)(__ccgo_up(t2 + uintptr(i)*4)) { + return int32(1) + } + if **(**Tregoff_t)(__ccgo_up(t1 + uintptr(i)*4)) < **(**Tregoff_t)(__ccgo_up(t2 + uintptr(i)*4)) { + return 0 + } + } + goto _1 + _1: + ; + i = i + 1 + } + /* assert(0);*/ + return 0 +} + +func _tre_neg_char_classes_match(tls *TLS, classes uintptr, wc Ttre_cint_t, icase int32) (r int32) { + for **(**Ttre_ctype_t)(__ccgo_up(classes)) != Uint32FromInt32(0) { + if !(icase != 0) && Xiswctype(tls, wc, **(**Ttre_ctype_t)(__ccgo_up(classes))) != 0 || icase != 0 && (Xiswctype(tls, Xtowupper(tls, wc), **(**Ttre_ctype_t)(__ccgo_up(classes))) != 0 || Xiswctype(tls, Xtowlower(tls, wc), **(**Ttre_ctype_t)(__ccgo_up(classes))) != 0) { + return int32(1) + } else { + classes += 4 + } + } + return 0 /* No match. */ +} + +/*********************************************************************** + from tre-match-parallel.c +***********************************************************************/ + +/* + This algorithm searches for matches basically by reading characters + in the searched string one by one, starting at the beginning. All + matching paths in the TNFA are traversed in parallel. When two or + more paths reach the same state, exactly one is chosen according to + tag ordering rules; if returning submatches is not required it does + not matter which path is chosen. + + The worst case time required for finding the leftmost and longest + match, or determining that there is no match, is always linearly + dependent on the length of the text being searched. + + This algorithm cannot handle TNFAs with back referencing nodes. + See `tre-match-backtrack.c'. +*/ + +type Ttre_tnfa_reach_t = struct { + Fstate uintptr + Ftags uintptr +} + +type Ttre_reach_pos_t = struct { + Fpos Tregoff_t + Ftags uintptr +} + +func _tre_tnfa_run_parallel(tls *TLS, tnfa uintptr, string1 uintptr, match_tags uintptr, eflags int32, match_end_ofs uintptr) (r Treg_errcode_t) { + bp := tls.Alloc(16) + defer tls.Free(16) + var buf, reach, reach_i, reach_next, reach_next_i, reach_pos, str_byte, tag_i, tmp_buf, tmp_iptr, tmp_tags, trans_i uintptr + var end, i, new_match, num_tags, reg_newline, reg_notbol, reg_noteol, skip, start, v18 int32 + var match_eo, pos, pos_add_next, v7 Tregoff_t + var pbytes, rbytes, tbytes, total_bytes, xbytes Tsize_t + var prev_c Ttre_char_t + var ret Treg_errcode_t + var v1 uint32 + var _ /* next_c at bp+0 */ Ttre_char_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = buf, end, i, match_eo, new_match, num_tags, pbytes, pos, pos_add_next, prev_c, rbytes, reach, reach_i, reach_next, reach_next_i, reach_pos, reg_newline, reg_notbol, reg_noteol, ret, skip, start, str_byte, tag_i, tbytes, tmp_buf, tmp_iptr, tmp_tags, total_bytes, trans_i, xbytes, v1, v18, v7 + /* State variables required by GET_NEXT_WCHAR. */ + prev_c = uint32(0) + **(**Ttre_char_t)(__ccgo_up(bp)) = uint32(0) + str_byte = string1 + pos = -int32(1) + pos_add_next = int32(1) + reg_notbol = eflags & int32(REG_NOTBOL) + reg_noteol = eflags & int32(REG_NOTEOL) + reg_newline = (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags & int32(REG_NEWLINE) + match_eo = -int32(1) /* end offset of match (-1 if no match found yet) */ + new_match = 0 + tmp_tags = UintptrFromInt32(0) + if !(match_tags != 0) { + num_tags = 0 + } else { + num_tags = (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags + } + /* Allocate memory for temporary data required for matching. This needs to + be done for every matching operation to be thread safe. This allocates + everything in a single large block with calloc(). */ + /* Ensure that tbytes and xbytes*num_states cannot overflow, and that + * they don't contribute more than 1/8 of SIZE_MAX to total_bytes. */ + if Uint32FromInt32(num_tags) > uint32(0xffffffff)/(Uint32FromInt32(8)*Uint32FromInt64(4)*Uint32FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states)) { + return int32(REG_ESPACE) + } + /* Likewise check rbytes. */ + if Uint32FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states+int32(1)) > Uint32FromUint32(0xffffffff)/(Uint32FromInt32(8)*Uint32FromInt64(8)) { + return int32(REG_ESPACE) + } + /* Likewise check pbytes. */ + if Uint32FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states) > Uint32FromUint32(0xffffffff)/(Uint32FromInt32(8)*Uint32FromInt64(8)) { + return int32(REG_ESPACE) + } + /* Compute the length of the block we need. */ + tbytes = uint32(4) * Uint32FromInt32(num_tags) + rbytes = uint32(8) * Uint32FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states+Int32FromInt32(1)) + pbytes = uint32(8) * Uint32FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states) + xbytes = uint32(4) * Uint32FromInt32(num_tags) + total_bytes = (Uint32FromInt64(4)-Uint32FromInt32(1))*Uint32FromInt32(4) + (rbytes+xbytes*Uint32FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states))*uint32(2) + tbytes + pbytes + /* Allocate the memory. */ + buf = Xcalloc(tls, total_bytes, uint32(1)) + if buf == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + /* Get the various pointers within tmp_buf (properly aligned). */ + tmp_tags = buf + tmp_buf = buf + uintptr(tbytes) + if Uint32FromInt32(int32(tmp_buf))%uint32(4) != 0 { + v1 = uint32(4) - Uint32FromInt32(int32(tmp_buf))%uint32(4) + } else { + v1 = uint32(0) + } + tmp_buf = tmp_buf + uintptr(v1) + reach_next = tmp_buf + tmp_buf = tmp_buf + uintptr(rbytes) + if Uint32FromInt32(int32(tmp_buf))%uint32(4) != 0 { + v1 = uint32(4) - Uint32FromInt32(int32(tmp_buf))%uint32(4) + } else { + v1 = uint32(0) + } + tmp_buf = tmp_buf + uintptr(v1) + reach = tmp_buf + tmp_buf = tmp_buf + uintptr(rbytes) + if Uint32FromInt32(int32(tmp_buf))%uint32(4) != 0 { + v1 = uint32(4) - Uint32FromInt32(int32(tmp_buf))%uint32(4) + } else { + v1 = uint32(0) + } + tmp_buf = tmp_buf + uintptr(v1) + reach_pos = tmp_buf + tmp_buf = tmp_buf + uintptr(pbytes) + if Uint32FromInt32(int32(tmp_buf))%uint32(4) != 0 { + v1 = uint32(4) - Uint32FromInt32(int32(tmp_buf))%uint32(4) + } else { + v1 = uint32(0) + } + tmp_buf = tmp_buf + uintptr(v1) + i = 0 + for { + if !(i < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states) { + break + } + (**(**Ttre_tnfa_reach_t)(__ccgo_up(reach + uintptr(i)*8))).Ftags = tmp_buf + tmp_buf = tmp_buf + uintptr(xbytes) + (**(**Ttre_tnfa_reach_t)(__ccgo_up(reach_next + uintptr(i)*8))).Ftags = tmp_buf + tmp_buf = tmp_buf + uintptr(xbytes) + goto _5 + _5: + ; + i = i + 1 + } + i = 0 + for { + if !(i < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states) { + break + } + (**(**Ttre_reach_pos_t)(__ccgo_up(reach_pos + uintptr(i)*8))).Fpos = -int32(1) + goto _6 + _6: + ; + i = i + 1 + } + prev_c = **(**Ttre_char_t)(__ccgo_up(bp)) + pos = pos + pos_add_next + v7 = Xmbtowc(tls, bp, str_byte, uint32(MB_LEN_MAX)) + pos_add_next = v7 + if v7 <= 0 { + if pos_add_next < 0 { + ret = int32(REG_NOMATCH) + goto error_exit + } else { + pos_add_next = pos_add_next + 1 + } + } + str_byte = str_byte + uintptr(pos_add_next) + pos = 0 + reach_next_i = reach_next + for int32(1) != 0 { + /* If no match found yet, add the initial states to `reach_next'. */ + if match_eo < 0 { + trans_i = (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Finitial + for (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate != UintptrFromInt32(0) { + if (**(**Ttre_reach_pos_t)(__ccgo_up(reach_pos + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*8))).Fpos < pos { + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions != 0 && ((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_BOL) != 0 && (pos > 0 || reg_notbol != 0) && (prev_c != uint32('\n') || !(reg_newline != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_EOL) != 0 && (**(**Ttre_char_t)(__ccgo_up(bp)) != uint32('\000') || reg_noteol != 0) && (**(**Ttre_char_t)(__ccgo_up(bp)) != uint32('\n') || !(reg_newline != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_BOW) != 0 && (prev_c == uint32('_') || Xiswalnum(tls, prev_c) != 0 || !(**(**Ttre_char_t)(__ccgo_up(bp)) == uint32('_') || Xiswalnum(tls, **(**Ttre_char_t)(__ccgo_up(bp))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_EOW) != 0 && (!(prev_c == uint32('_') || Xiswalnum(tls, prev_c) != 0) || (**(**Ttre_char_t)(__ccgo_up(bp)) == uint32('_') || Xiswalnum(tls, **(**Ttre_char_t)(__ccgo_up(bp))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_WB) != 0 && (pos != 0 && **(**Ttre_char_t)(__ccgo_up(bp)) != uint32('\000') && BoolInt32(prev_c == uint32('_') || Xiswalnum(tls, prev_c) != 0) == BoolInt32(**(**Ttre_char_t)(__ccgo_up(bp)) == uint32('_') || Xiswalnum(tls, **(**Ttre_char_t)(__ccgo_up(bp))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_WB_NEG) != 0 && (pos == 0 || **(**Ttre_char_t)(__ccgo_up(bp)) == uint32('\000') || BoolInt32(prev_c == uint32('_') || Xiswalnum(tls, prev_c) != 0) != BoolInt32(**(**Ttre_char_t)(__ccgo_up(bp)) == uint32('_') || Xiswalnum(tls, **(**Ttre_char_t)(__ccgo_up(bp))) != 0))) { + trans_i += 32 + continue + } + (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Fstate = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate + i = 0 + for { + if !(i < num_tags) { + break + } + **(**Tregoff_t)(__ccgo_up((*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Ftags + uintptr(i)*4)) = -int32(1) + goto _8 + _8: + ; + i = i + 1 + } + tag_i = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Ftags + if tag_i != 0 { + for **(**int32)(__ccgo_up(tag_i)) >= 0 { + if **(**int32)(__ccgo_up(tag_i)) < num_tags { + **(**Tregoff_t)(__ccgo_up((*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Ftags + uintptr(**(**int32)(__ccgo_up(tag_i)))*4)) = pos + } + tag_i += 4 + } + } + if (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Fstate == (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ffinal { + match_eo = pos + new_match = int32(1) + i = 0 + for { + if !(i < num_tags) { + break + } + **(**Tregoff_t)(__ccgo_up(match_tags + uintptr(i)*4)) = **(**Tregoff_t)(__ccgo_up((*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Ftags + uintptr(i)*4)) + goto _9 + _9: + ; + i = i + 1 + } + } + (**(**Ttre_reach_pos_t)(__ccgo_up(reach_pos + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*8))).Fpos = pos + (**(**Ttre_reach_pos_t)(__ccgo_up(reach_pos + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*8))).Ftags = reach_next_i + 4 + reach_next_i += 8 + } + trans_i += 32 + } + (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Fstate = UintptrFromInt32(0) + } else { + if num_tags == 0 || reach_next_i == reach_next { + /* We have found a match. */ + break + } + } + /* Check for end of string. */ + if !(**(**Ttre_char_t)(__ccgo_up(bp)) != 0) { + break + } + prev_c = **(**Ttre_char_t)(__ccgo_up(bp)) + pos = pos + pos_add_next + v7 = Xmbtowc(tls, bp, str_byte, uint32(MB_LEN_MAX)) + pos_add_next = v7 + if v7 <= 0 { + if pos_add_next < 0 { + ret = int32(REG_NOMATCH) + goto error_exit + } else { + pos_add_next = pos_add_next + 1 + } + } + str_byte = str_byte + uintptr(pos_add_next) + /* Swap `reach' and `reach_next'. */ + reach_i = reach + reach = reach_next + reach_next = reach_i + /* For each state in `reach', weed out states that don't fulfill the + minimal matching conditions. */ + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_minimals != 0 && new_match != 0 { + new_match = 0 + reach_next_i = reach_next + reach_i = reach + for { + if !((*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_i)).Fstate != 0) { + break + } + skip = 0 + i = 0 + for { + if !(**(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i)*4)) >= 0) { + break + } + end = **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i)*4)) + start = **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i+int32(1))*4)) + if end >= num_tags { + skip = int32(1) + break + } else { + if **(**Tregoff_t)(__ccgo_up((*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_i)).Ftags + uintptr(start)*4)) == **(**Tregoff_t)(__ccgo_up(match_tags + uintptr(start)*4)) && **(**Tregoff_t)(__ccgo_up((*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_i)).Ftags + uintptr(end)*4)) < **(**Tregoff_t)(__ccgo_up(match_tags + uintptr(end)*4)) { + skip = int32(1) + break + } + } + goto _12 + _12: + ; + i = i + int32(2) + } + if !(skip != 0) { + (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Fstate = (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_i)).Fstate + tmp_iptr = (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Ftags + (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Ftags = (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_i)).Ftags + (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_i)).Ftags = tmp_iptr + reach_next_i += 8 + } + goto _11 + _11: + ; + reach_i += 8 + } + (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Fstate = UintptrFromInt32(0) + /* Swap `reach' and `reach_next'. */ + reach_i = reach + reach = reach_next + reach_next = reach_i + } + /* For each state in `reach' see if there is a transition leaving with + the current input symbol to a state not yet in `reach_next', and + add the destination states to `reach_next'. */ + reach_next_i = reach_next + reach_i = reach + for { + if !((*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_i)).Fstate != 0) { + break + } + trans_i = (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_i)).Fstate + for { + if !((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate != 0) { + break + } + /* Does this transition match the input symbol? */ + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fcode_min <= prev_c && (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fcode_max >= prev_c { + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions != 0 && ((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_BOL) != 0 && (pos > 0 || reg_notbol != 0) && (prev_c != uint32('\n') || !(reg_newline != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_EOL) != 0 && (**(**Ttre_char_t)(__ccgo_up(bp)) != uint32('\000') || reg_noteol != 0) && (**(**Ttre_char_t)(__ccgo_up(bp)) != uint32('\n') || !(reg_newline != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_BOW) != 0 && (prev_c == uint32('_') || Xiswalnum(tls, prev_c) != 0 || !(**(**Ttre_char_t)(__ccgo_up(bp)) == uint32('_') || Xiswalnum(tls, **(**Ttre_char_t)(__ccgo_up(bp))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_EOW) != 0 && (!(prev_c == uint32('_') || Xiswalnum(tls, prev_c) != 0) || (**(**Ttre_char_t)(__ccgo_up(bp)) == uint32('_') || Xiswalnum(tls, **(**Ttre_char_t)(__ccgo_up(bp))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_WB) != 0 && (pos != 0 && **(**Ttre_char_t)(__ccgo_up(bp)) != uint32('\000') && BoolInt32(prev_c == uint32('_') || Xiswalnum(tls, prev_c) != 0) == BoolInt32(**(**Ttre_char_t)(__ccgo_up(bp)) == uint32('_') || Xiswalnum(tls, **(**Ttre_char_t)(__ccgo_up(bp))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_WB_NEG) != 0 && (pos == 0 || **(**Ttre_char_t)(__ccgo_up(bp)) == uint32('\000') || BoolInt32(prev_c == uint32('_') || Xiswalnum(tls, prev_c) != 0) != BoolInt32(**(**Ttre_char_t)(__ccgo_up(bp)) == uint32('_') || Xiswalnum(tls, **(**Ttre_char_t)(__ccgo_up(bp))) != 0)) || ((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_CHAR_CLASS) != 0 && !((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags&Int32FromInt32(REG_ICASE) != 0) && !(Xiswctype(tls, prev_c, *(*Ttre_ctype_t)(unsafe.Pointer(trans_i + 24))) != 0) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_CHAR_CLASS) != 0 && (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags&int32(REG_ICASE) != 0 && !(Xiswctype(tls, Xtowlower(tls, prev_c), *(*Ttre_ctype_t)(unsafe.Pointer(trans_i + 24))) != 0) && !(Xiswctype(tls, Xtowupper(tls, prev_c), *(*Ttre_ctype_t)(unsafe.Pointer(trans_i + 24))) != 0) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_CHAR_CLASS_NEG) != 0 && _tre_neg_char_classes_match(tls, (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fneg_classes, prev_c, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags&int32(REG_ICASE)) != 0)) { + goto _14 + } + /* Compute the tags after this transition. */ + i = 0 + for { + if !(i < num_tags) { + break + } + **(**Tregoff_t)(__ccgo_up(tmp_tags + uintptr(i)*4)) = **(**Tregoff_t)(__ccgo_up((*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_i)).Ftags + uintptr(i)*4)) + goto _15 + _15: + ; + i = i + 1 + } + tag_i = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Ftags + if tag_i != UintptrFromInt32(0) { + for **(**int32)(__ccgo_up(tag_i)) >= 0 { + if **(**int32)(__ccgo_up(tag_i)) < num_tags { + **(**Tregoff_t)(__ccgo_up(tmp_tags + uintptr(**(**int32)(__ccgo_up(tag_i)))*4)) = pos + } + tag_i += 4 + } + } + if (**(**Ttre_reach_pos_t)(__ccgo_up(reach_pos + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*8))).Fpos < pos { + /* Found an unvisited node. */ + (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Fstate = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate + tmp_iptr = (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Ftags + (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Ftags = tmp_tags + tmp_tags = tmp_iptr + (**(**Ttre_reach_pos_t)(__ccgo_up(reach_pos + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*8))).Fpos = pos + (**(**Ttre_reach_pos_t)(__ccgo_up(reach_pos + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*8))).Ftags = reach_next_i + 4 + if (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Fstate == (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ffinal && (match_eo == -int32(1) || num_tags > 0 && **(**Tregoff_t)(__ccgo_up((*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Ftags)) <= **(**Tregoff_t)(__ccgo_up(match_tags))) { + match_eo = pos + new_match = int32(1) + i = 0 + for { + if !(i < num_tags) { + break + } + **(**Tregoff_t)(__ccgo_up(match_tags + uintptr(i)*4)) = **(**Tregoff_t)(__ccgo_up((*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Ftags + uintptr(i)*4)) + goto _16 + _16: + ; + i = i + 1 + } + } + reach_next_i += 8 + } else { + /* Another path has also reached this state. We choose + the winner by examining the tag values for both + paths. */ + if _tre_tag_order(tls, num_tags, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions, tmp_tags, **(**uintptr)(__ccgo_up((**(**Ttre_reach_pos_t)(__ccgo_up(reach_pos + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*8))).Ftags))) != 0 { + /* The new path wins. */ + tmp_iptr = **(**uintptr)(__ccgo_up((**(**Ttre_reach_pos_t)(__ccgo_up(reach_pos + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*8))).Ftags)) + **(**uintptr)(__ccgo_up((**(**Ttre_reach_pos_t)(__ccgo_up(reach_pos + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*8))).Ftags)) = tmp_tags + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate == (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ffinal { + match_eo = pos + new_match = int32(1) + i = 0 + for { + if !(i < num_tags) { + break + } + **(**Tregoff_t)(__ccgo_up(match_tags + uintptr(i)*4)) = **(**Tregoff_t)(__ccgo_up(tmp_tags + uintptr(i)*4)) + goto _17 + _17: + ; + i = i + 1 + } + } + tmp_tags = tmp_iptr + } + } + } + goto _14 + _14: + ; + trans_i += 32 + } + goto _13 + _13: + ; + reach_i += 8 + } + (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Fstate = UintptrFromInt32(0) + } + **(**Tregoff_t)(__ccgo_up(match_end_ofs)) = match_eo + if match_eo >= 0 { + v18 = REG_OK + } else { + v18 = int32(REG_NOMATCH) + } + ret = v18 + goto error_exit +error_exit: + ; + Xfree(tls, buf) + return ret +} + +/*********************************************************************** + from tre-match-backtrack.c +***********************************************************************/ + +/* + This matcher is for regexps that use back referencing. Regexp matching + with back referencing is an NP-complete problem on the number of back + references. The easiest way to match them is to use a backtracking + routine which basically goes through all possible paths in the TNFA + and chooses the one which results in the best (leftmost and longest) + match. This can be spectacularly expensive and may run out of stack + space, but there really is no better known generic algorithm. Quoting + Henry Spencer from comp.compilers: + + + POSIX.2 REs require longest match, which is really exciting to + implement since the obsolete ("basic") variant also includes + \. I haven't found a better way of tackling this than doing + a preliminary match using a DFA (or simulation) on a modified RE + that just replicates subREs for \, and then doing a + backtracking match to determine whether the subRE matches were + right. This can be rather slow, but I console myself with the + thought that people who use \ deserve very slow execution. + (Pun unintentional but very appropriate.) + +*/ + +type Ttre_backtrack_item_t = struct { + Fpos Tregoff_t + Fstr_byte uintptr + Fstate uintptr + Fstate_id int32 + Fnext_c int32 + Ftags uintptr +} + +type Ttre_backtrack_t = uintptr + +type Ttre_backtrack_struct = struct { + Fitem Ttre_backtrack_item_t + Fprev uintptr + Fnext uintptr +} + +func _tre_tnfa_run_backtrack(tls *TLS, tnfa uintptr, string1 uintptr, match_tags uintptr, eflags int32, match_end_ofs uintptr) (r Treg_errcode_t) { + bp := tls.Alloc(16) + defer tls.Free(16) + var bt, empty_br_match, i, i1, i2, i3, i4, next_c_start, reg_newline, reg_notbol, reg_noteol, result, ret, v20 int32 + var bt_len, eo, match_eo, pos, pos_add_next, pos_start, so, v3 Tregoff_t + var mem Ttre_mem_t + var next_state, next_tags, pmatch, state, states_seen, str_byte, str_byte_start, tags, tmp, tmp1, trans_i, v6 uintptr + var prev_c Ttre_char_t + var s, s1, stack Ttre_backtrack_t + var _ /* next_c at bp+0 */ Ttre_char_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = bt, bt_len, empty_br_match, eo, i, i1, i2, i3, i4, match_eo, mem, next_c_start, next_state, next_tags, pmatch, pos, pos_add_next, pos_start, prev_c, reg_newline, reg_notbol, reg_noteol, result, ret, s, s1, so, stack, state, states_seen, str_byte, str_byte_start, tags, tmp, tmp1, trans_i, v20, v3, v6 + /* State variables required by GET_NEXT_WCHAR. */ + prev_c = uint32(0) + **(**Ttre_char_t)(__ccgo_up(bp)) = uint32(0) + str_byte = string1 + pos = 0 + pos_add_next = int32(1) + reg_notbol = eflags & int32(REG_NOTBOL) + reg_noteol = eflags & int32(REG_NOTEOL) + reg_newline = (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags & int32(REG_NEWLINE) + pos_start = -int32(1) + /* End offset of best match so far, or -1 if no match found yet. */ + match_eo = -int32(1) + tags = UintptrFromInt32(0) + states_seen = UintptrFromInt32(0) + /* Memory allocator to for allocating the backtracking stack. */ + mem = X__tre_mem_new_impl(tls, 0, UintptrFromInt32(0)) + pmatch = UintptrFromInt32(0) + if !(mem != 0) { + return int32(REG_ESPACE) + } + stack = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint32(32)) + if !(stack != 0) { + ret = int32(REG_ESPACE) + goto error_exit + } + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fprev = UintptrFromInt32(0) + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fnext = UintptrFromInt32(0) + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags != 0 { + tags = Xmalloc(tls, uint32(4)*Uint32FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags)) + if !(tags != 0) { + ret = int32(REG_ESPACE) + goto error_exit + } + } + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_submatches != 0 { + pmatch = Xmalloc(tls, uint32(8)*(*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_submatches) + if !(pmatch != 0) { + ret = int32(REG_ESPACE) + goto error_exit + } + } + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states != 0 { + states_seen = Xmalloc(tls, uint32(4)*Uint32FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states)) + if !(states_seen != 0) { + ret = int32(REG_ESPACE) + goto error_exit + } + } + goto retry +retry: + ; + i = 0 + for { + if !(i < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags) { + break + } + **(**Tregoff_t)(__ccgo_up(tags + uintptr(i)*4)) = -int32(1) + if match_tags != 0 { + **(**Tregoff_t)(__ccgo_up(match_tags + uintptr(i)*4)) = -int32(1) + } + goto _1 + _1: + ; + i = i + 1 + } + i = 0 + for { + if !(i < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states) { + break + } + **(**int32)(__ccgo_up(states_seen + uintptr(i)*4)) = 0 + goto _2 + _2: + ; + i = i + 1 + } + state = UintptrFromInt32(0) + pos = pos_start + prev_c = **(**Ttre_char_t)(__ccgo_up(bp)) + pos = pos + pos_add_next + v3 = Xmbtowc(tls, bp, str_byte, uint32(MB_LEN_MAX)) + pos_add_next = v3 + if v3 <= 0 { + if pos_add_next < 0 { + ret = int32(REG_NOMATCH) + goto error_exit + } else { + pos_add_next = pos_add_next + 1 + } + } + str_byte = str_byte + uintptr(pos_add_next) + pos_start = pos + next_c_start = Int32FromUint32(**(**Ttre_char_t)(__ccgo_up(bp))) + str_byte_start = str_byte + /* Handle initial states. */ + next_tags = UintptrFromInt32(0) + trans_i = (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Finitial + for { + if !((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate != 0) { + break + } + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions != 0 && ((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_BOL) != 0 && (pos > 0 || reg_notbol != 0) && (prev_c != uint32('\n') || !(reg_newline != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_EOL) != 0 && (**(**Ttre_char_t)(__ccgo_up(bp)) != uint32('\000') || reg_noteol != 0) && (**(**Ttre_char_t)(__ccgo_up(bp)) != uint32('\n') || !(reg_newline != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_BOW) != 0 && (prev_c == uint32('_') || Xiswalnum(tls, prev_c) != 0 || !(**(**Ttre_char_t)(__ccgo_up(bp)) == uint32('_') || Xiswalnum(tls, **(**Ttre_char_t)(__ccgo_up(bp))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_EOW) != 0 && (!(prev_c == uint32('_') || Xiswalnum(tls, prev_c) != 0) || (**(**Ttre_char_t)(__ccgo_up(bp)) == uint32('_') || Xiswalnum(tls, **(**Ttre_char_t)(__ccgo_up(bp))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_WB) != 0 && (pos != 0 && **(**Ttre_char_t)(__ccgo_up(bp)) != uint32('\000') && BoolInt32(prev_c == uint32('_') || Xiswalnum(tls, prev_c) != 0) == BoolInt32(**(**Ttre_char_t)(__ccgo_up(bp)) == uint32('_') || Xiswalnum(tls, **(**Ttre_char_t)(__ccgo_up(bp))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_WB_NEG) != 0 && (pos == 0 || **(**Ttre_char_t)(__ccgo_up(bp)) == uint32('\000') || BoolInt32(prev_c == uint32('_') || Xiswalnum(tls, prev_c) != 0) != BoolInt32(**(**Ttre_char_t)(__ccgo_up(bp)) == uint32('_') || Xiswalnum(tls, **(**Ttre_char_t)(__ccgo_up(bp))) != 0))) { + goto _4 + } + if state == UintptrFromInt32(0) { + /* Start from this state. */ + state = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate + next_tags = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Ftags + } else { + /* Backtrack to this state. */ + if !((*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fnext != 0) { + s = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint32(32)) + if !(s != 0) { + X__tre_mem_destroy(tls, mem) + if tags != 0 { + Xfree(tls, tags) + } + if pmatch != 0 { + Xfree(tls, pmatch) + } + if states_seen != 0 { + Xfree(tls, states_seen) + } + return int32(REG_ESPACE) + } + (*Ttre_backtrack_struct)(unsafe.Pointer(s)).Fprev = stack + (*Ttre_backtrack_struct)(unsafe.Pointer(s)).Fnext = UintptrFromInt32(0) + (*Ttre_backtrack_struct)(unsafe.Pointer(s)).Fitem.Ftags = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint32(4)*Uint32FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags)) + if !((*Ttre_backtrack_struct)(unsafe.Pointer(s)).Fitem.Ftags != 0) { + X__tre_mem_destroy(tls, mem) + if tags != 0 { + Xfree(tls, tags) + } + if pmatch != 0 { + Xfree(tls, pmatch) + } + if states_seen != 0 { + Xfree(tls, states_seen) + } + return int32(REG_ESPACE) + } + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fnext = s + stack = s + } else { + stack = (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fnext + } + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fpos = pos + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstr_byte = str_byte + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstate = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstate_id = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fnext_c = Int32FromUint32(**(**Ttre_char_t)(__ccgo_up(bp))) + i1 = 0 + for { + if !(i1 < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags) { + break + } + **(**Tregoff_t)(__ccgo_up((*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Ftags + uintptr(i1)*4)) = **(**Tregoff_t)(__ccgo_up(tags + uintptr(i1)*4)) + goto _5 + _5: + ; + i1 = i1 + 1 + } + tmp = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Ftags + if tmp != 0 { + for **(**int32)(__ccgo_up(tmp)) >= 0 { + v6 = tmp + tmp += 4 + **(**Tregoff_t)(__ccgo_up((*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Ftags + uintptr(**(**int32)(__ccgo_up(v6)))*4)) = pos + } + } + } + goto _4 + _4: + ; + trans_i += 32 + } + if next_tags != 0 { + for { + if !(**(**int32)(__ccgo_up(next_tags)) >= 0) { + break + } + **(**Tregoff_t)(__ccgo_up(tags + uintptr(**(**int32)(__ccgo_up(next_tags)))*4)) = pos + goto _7 + _7: + ; + next_tags += 4 + } + } + if state == UintptrFromInt32(0) { + goto backtrack + } +_9: + ; + if !(int32(1) != 0) { + goto _8 + } + if state == (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ffinal { + if match_eo < pos || match_eo == pos && match_tags != 0 && _tre_tag_order(tls, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions, tags, match_tags) != 0 { + /* This match wins the previous match. */ + match_eo = pos + if match_tags != 0 { + i2 = 0 + for { + if !(i2 < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags) { + break + } + **(**Tregoff_t)(__ccgo_up(match_tags + uintptr(i2)*4)) = **(**Tregoff_t)(__ccgo_up(tags + uintptr(i2)*4)) + goto _10 + _10: + ; + i2 = i2 + 1 + } + } + } + /* Our TNFAs never have transitions leaving from the final state, + so we jump right to backtracking. */ + goto backtrack + } + /* Go to the next character in the input string. */ + empty_br_match = 0 + trans_i = state + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate != 0 && (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_BACKREF) != 0 { + bt = *(*int32)(unsafe.Pointer(trans_i + 24)) + /* Get the substring we need to match against. Remember to + turn off REG_NOSUB temporarily. */ + _tre_fill_pmatch(tls, Uint32FromInt32(bt+int32(1)), pmatch, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags & ^Int32FromInt32(REG_NOSUB), tnfa, tags, pos) + so = (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(bt)*8))).Frm_so + eo = (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(bt)*8))).Frm_eo + bt_len = eo - so + result = Xstrncmp(tls, string1+uintptr(so), str_byte-uintptr(1), Uint32FromInt32(bt_len)) + if result == 0 { + /* Back reference matched. Check for infinite loop. */ + if bt_len == 0 { + empty_br_match = int32(1) + } + if empty_br_match != 0 && **(**int32)(__ccgo_up(states_seen + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*4)) != 0 { + goto backtrack + } + **(**int32)(__ccgo_up(states_seen + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*4)) = empty_br_match + /* Advance in input string and resync `prev_c', `next_c' + and pos. */ + str_byte = str_byte + uintptr(bt_len-int32(1)) + pos = pos + (bt_len - int32(1)) + prev_c = **(**Ttre_char_t)(__ccgo_up(bp)) + pos = pos + pos_add_next + v3 = Xmbtowc(tls, bp, str_byte, uint32(MB_LEN_MAX)) + pos_add_next = v3 + if v3 <= 0 { + if pos_add_next < 0 { + ret = int32(REG_NOMATCH) + goto error_exit + } else { + pos_add_next = pos_add_next + 1 + } + } + str_byte = str_byte + uintptr(pos_add_next) + } else { + goto backtrack + } + } else { + /* Check for end of string. */ + if **(**Ttre_char_t)(__ccgo_up(bp)) == uint32('\000') { + goto backtrack + } + /* Read the next character. */ + prev_c = **(**Ttre_char_t)(__ccgo_up(bp)) + pos = pos + pos_add_next + v3 = Xmbtowc(tls, bp, str_byte, uint32(MB_LEN_MAX)) + pos_add_next = v3 + if v3 <= 0 { + if pos_add_next < 0 { + ret = int32(REG_NOMATCH) + goto error_exit + } else { + pos_add_next = pos_add_next + 1 + } + } + str_byte = str_byte + uintptr(pos_add_next) + } + next_state = UintptrFromInt32(0) + trans_i = state + for { + if !((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate != 0) { + break + } + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fcode_min <= prev_c && (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fcode_max >= prev_c { + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions != 0 && ((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_BOL) != 0 && (pos > 0 || reg_notbol != 0) && (prev_c != uint32('\n') || !(reg_newline != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_EOL) != 0 && (**(**Ttre_char_t)(__ccgo_up(bp)) != uint32('\000') || reg_noteol != 0) && (**(**Ttre_char_t)(__ccgo_up(bp)) != uint32('\n') || !(reg_newline != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_BOW) != 0 && (prev_c == uint32('_') || Xiswalnum(tls, prev_c) != 0 || !(**(**Ttre_char_t)(__ccgo_up(bp)) == uint32('_') || Xiswalnum(tls, **(**Ttre_char_t)(__ccgo_up(bp))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_EOW) != 0 && (!(prev_c == uint32('_') || Xiswalnum(tls, prev_c) != 0) || (**(**Ttre_char_t)(__ccgo_up(bp)) == uint32('_') || Xiswalnum(tls, **(**Ttre_char_t)(__ccgo_up(bp))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_WB) != 0 && (pos != 0 && **(**Ttre_char_t)(__ccgo_up(bp)) != uint32('\000') && BoolInt32(prev_c == uint32('_') || Xiswalnum(tls, prev_c) != 0) == BoolInt32(**(**Ttre_char_t)(__ccgo_up(bp)) == uint32('_') || Xiswalnum(tls, **(**Ttre_char_t)(__ccgo_up(bp))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_WB_NEG) != 0 && (pos == 0 || **(**Ttre_char_t)(__ccgo_up(bp)) == uint32('\000') || BoolInt32(prev_c == uint32('_') || Xiswalnum(tls, prev_c) != 0) != BoolInt32(**(**Ttre_char_t)(__ccgo_up(bp)) == uint32('_') || Xiswalnum(tls, **(**Ttre_char_t)(__ccgo_up(bp))) != 0)) || ((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_CHAR_CLASS) != 0 && !((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags&Int32FromInt32(REG_ICASE) != 0) && !(Xiswctype(tls, prev_c, *(*Ttre_ctype_t)(unsafe.Pointer(trans_i + 24))) != 0) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_CHAR_CLASS) != 0 && (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags&int32(REG_ICASE) != 0 && !(Xiswctype(tls, Xtowlower(tls, prev_c), *(*Ttre_ctype_t)(unsafe.Pointer(trans_i + 24))) != 0) && !(Xiswctype(tls, Xtowupper(tls, prev_c), *(*Ttre_ctype_t)(unsafe.Pointer(trans_i + 24))) != 0) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_CHAR_CLASS_NEG) != 0 && _tre_neg_char_classes_match(tls, (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fneg_classes, prev_c, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags&int32(REG_ICASE)) != 0)) { + goto _13 + } + if next_state == UintptrFromInt32(0) { + /* First matching transition. */ + next_state = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate + next_tags = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Ftags + } else { + /* Second matching transition. We may need to backtrack here + to take this transition instead of the first one, so we + push this transition in the backtracking stack so we can + jump back here if needed. */ + if !((*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fnext != 0) { + s1 = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint32(32)) + if !(s1 != 0) { + X__tre_mem_destroy(tls, mem) + if tags != 0 { + Xfree(tls, tags) + } + if pmatch != 0 { + Xfree(tls, pmatch) + } + if states_seen != 0 { + Xfree(tls, states_seen) + } + return int32(REG_ESPACE) + } + (*Ttre_backtrack_struct)(unsafe.Pointer(s1)).Fprev = stack + (*Ttre_backtrack_struct)(unsafe.Pointer(s1)).Fnext = UintptrFromInt32(0) + (*Ttre_backtrack_struct)(unsafe.Pointer(s1)).Fitem.Ftags = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint32(4)*Uint32FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags)) + if !((*Ttre_backtrack_struct)(unsafe.Pointer(s1)).Fitem.Ftags != 0) { + X__tre_mem_destroy(tls, mem) + if tags != 0 { + Xfree(tls, tags) + } + if pmatch != 0 { + Xfree(tls, pmatch) + } + if states_seen != 0 { + Xfree(tls, states_seen) + } + return int32(REG_ESPACE) + } + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fnext = s1 + stack = s1 + } else { + stack = (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fnext + } + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fpos = pos + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstr_byte = str_byte + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstate = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstate_id = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fnext_c = Int32FromUint32(**(**Ttre_char_t)(__ccgo_up(bp))) + i3 = 0 + for { + if !(i3 < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags) { + break + } + **(**Tregoff_t)(__ccgo_up((*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Ftags + uintptr(i3)*4)) = **(**Tregoff_t)(__ccgo_up(tags + uintptr(i3)*4)) + goto _14 + _14: + ; + i3 = i3 + 1 + } + tmp1 = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Ftags + for { + if !(tmp1 != 0 && **(**int32)(__ccgo_up(tmp1)) >= 0) { + break + } + **(**Tregoff_t)(__ccgo_up((*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Ftags + uintptr(**(**int32)(__ccgo_up(tmp1)))*4)) = pos + goto _15 + _15: + ; + tmp1 += 4 + } + } + } + goto _13 + _13: + ; + trans_i += 32 + } + if !(next_state != UintptrFromInt32(0)) { + goto _16 + } + /* Matching transitions were found. Take the first one. */ + state = next_state + /* Update the tag values. */ + if next_tags != 0 { + for **(**int32)(__ccgo_up(next_tags)) >= 0 { + v6 = next_tags + next_tags += 4 + **(**Tregoff_t)(__ccgo_up(tags + uintptr(**(**int32)(__ccgo_up(v6)))*4)) = pos + } + } + goto _17 +_16: + ; + goto backtrack +backtrack: + ; + /* A matching transition was not found. Try to backtrack. */ + if (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fprev != 0 { + if (*Ttre_tnfa_transition_t)(unsafe.Pointer((*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstate)).Fassertions&int32(ASSERT_BACKREF) != 0 { + **(**int32)(__ccgo_up(states_seen + uintptr((*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstate_id)*4)) = 0 + } + pos = (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fpos + str_byte = (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstr_byte + state = (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstate + **(**Ttre_char_t)(__ccgo_up(bp)) = Uint32FromInt32((*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fnext_c) + i4 = 0 + for { + if !(i4 < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags) { + break + } + **(**Tregoff_t)(__ccgo_up(tags + uintptr(i4)*4)) = **(**Tregoff_t)(__ccgo_up((*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Ftags + uintptr(i4)*4)) + goto _19 + _19: + ; + i4 = i4 + 1 + } + stack = (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fprev + } else { + if match_eo < 0 { + /* Try starting from a later position in the input string. */ + /* Check for end of string. */ + if **(**Ttre_char_t)(__ccgo_up(bp)) == uint32('\000') { + goto _8 + } + **(**Ttre_char_t)(__ccgo_up(bp)) = Uint32FromInt32(next_c_start) + str_byte = str_byte_start + goto retry + } else { + goto _8 + } + } +_17: + ; + goto _9 +_8: + ; + if match_eo >= 0 { + v20 = REG_OK + } else { + v20 = int32(REG_NOMATCH) + } + ret = v20 + **(**Tregoff_t)(__ccgo_up(match_end_ofs)) = match_eo + goto error_exit +error_exit: + ; + X__tre_mem_destroy(tls, mem) + if tags != 0 { + Xfree(tls, tags) + } + if pmatch != 0 { + Xfree(tls, pmatch) + } + if states_seen != 0 { + Xfree(tls, states_seen) + } + return ret +} + +/*********************************************************************** + from regexec.c +***********************************************************************/ + +// C documentation +// +// /* Fills the POSIX.2 regmatch_t array according to the TNFA tag and match +// endpoint values. */ +func _tre_fill_pmatch(tls *TLS, nmatch Tsize_t, pmatch uintptr, cflags int32, tnfa uintptr, tags uintptr, match_eo Tregoff_t) { + var i, j uint32 + var parents, submatch_data uintptr + var v1 Tregoff_t + _, _, _, _, _ = i, j, parents, submatch_data, v1 + i = uint32(0) + if match_eo >= 0 && !(cflags&Int32FromInt32(REG_NOSUB) != 0) { + /* Construct submatch offsets from the tags. */ + submatch_data = (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fsubmatch_data + for i < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_submatches && i < nmatch { + if (**(**Ttre_submatch_data_t)(__ccgo_up(submatch_data + uintptr(i)*12))).Fso_tag == (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fend_tag { + (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*8))).Frm_so = match_eo + } else { + (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*8))).Frm_so = **(**Tregoff_t)(__ccgo_up(tags + uintptr((**(**Ttre_submatch_data_t)(__ccgo_up(submatch_data + uintptr(i)*12))).Fso_tag)*4)) + } + if (**(**Ttre_submatch_data_t)(__ccgo_up(submatch_data + uintptr(i)*12))).Feo_tag == (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fend_tag { + (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*8))).Frm_eo = match_eo + } else { + (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*8))).Frm_eo = **(**Tregoff_t)(__ccgo_up(tags + uintptr((**(**Ttre_submatch_data_t)(__ccgo_up(submatch_data + uintptr(i)*12))).Feo_tag)*4)) + } + /* If either of the endpoints were not used, this submatch + was not part of the match. */ + if (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*8))).Frm_so == -int32(1) || (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*8))).Frm_eo == -int32(1) { + v1 = -Int32FromInt32(1) + (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*8))).Frm_eo = v1 + (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*8))).Frm_so = v1 + } + i = i + 1 + } + /* Reset all submatches that are not within all of their parent + submatches. */ + i = uint32(0) + for i < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_submatches && i < nmatch { + if (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*8))).Frm_eo == -int32(1) { + } + parents = (**(**Ttre_submatch_data_t)(__ccgo_up(submatch_data + uintptr(i)*12))).Fparents + if parents != UintptrFromInt32(0) { + j = uint32(0) + for { + if !(**(**int32)(__ccgo_up(parents + uintptr(j)*4)) >= 0) { + break + } + if (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*8))).Frm_so < (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(**(**int32)(__ccgo_up(parents + uintptr(j)*4)))*8))).Frm_so || (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*8))).Frm_eo > (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(**(**int32)(__ccgo_up(parents + uintptr(j)*4)))*8))).Frm_eo { + v1 = -Int32FromInt32(1) + (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*8))).Frm_eo = v1 + (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*8))).Frm_so = v1 + } + goto _2 + _2: + ; + j = j + 1 + } + } + i = i + 1 + } + } + for i < nmatch { + (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*8))).Frm_so = -int32(1) + (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*8))).Frm_eo = -int32(1) + i = i + 1 + } +} + +/* + Wrapper functions for POSIX compatible regexp matching. +*/ + +func Xregexec(tls *TLS, preg uintptr, string1 uintptr, nmatch Tsize_t, pmatch uintptr, eflags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v preg=%v string1=%v nmatch=%v pmatch=%v eflags=%v, (%v:)", tls, preg, string1, nmatch, pmatch, eflags, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var status Treg_errcode_t + var tags, tnfa uintptr + var _ /* eo at bp+0 */ Tregoff_t + _, _, _ = status, tags, tnfa + tnfa = (*Tregex_t)(unsafe.Pointer(preg)).F__opaque + tags = UintptrFromInt32(0) + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags&int32(REG_NOSUB) != 0 { + nmatch = uint32(0) + } + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags > 0 && nmatch > uint32(0) { + tags = Xmalloc(tls, uint32(4)*Uint32FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags)) + if tags == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + } + /* Dispatch to the appropriate matcher. */ + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fhave_backrefs != 0 { + /* The regex has back references, use the backtracking matcher. */ + status = _tre_tnfa_run_backtrack(tls, tnfa, string1, tags, eflags, bp) + } else { + /* Exact matching, no back references, use the parallel matcher. */ + status = _tre_tnfa_run_parallel(tls, tnfa, string1, tags, eflags, bp) + } + if status == REG_OK { + /* A match was found, so fill the submatch registers. */ + _tre_fill_pmatch(tls, nmatch, pmatch, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags, tnfa, tags, **(**Tregoff_t)(__ccgo_up(bp))) + } + if tags != 0 { + Xfree(tls, tags) + } + return status +} + +/* + This memory allocator is for allocating small memory blocks efficiently + in terms of memory overhead and execution speed. The allocated blocks + cannot be freed individually, only all at once. There can be multiple + allocators, though. +*/ + +// C documentation +// +// /* Returns a new memory allocator or NULL if out of memory. */ +func X__tre_mem_new_impl(tls *TLS, provided int32, provided_block uintptr) (r Ttre_mem_t) { + if __ccgo_strace { + trc("tls=%v provided=%v provided_block=%v, (%v:)", tls, provided, provided_block, origin(2)) + defer func() { trc("-> %v", r) }() + } + var mem Ttre_mem_t + _ = mem + if provided != 0 { + mem = provided_block + Xmemset(tls, mem, 0, uint32(24)) + } else { + mem = Xcalloc(tls, uint32(1), uint32(24)) + } + if mem == UintptrFromInt32(0) { + return UintptrFromInt32(0) + } + return mem +} + +// C documentation +// +// /* Frees the memory allocator and all memory allocated with it. */ +func X__tre_mem_destroy(tls *TLS, mem Ttre_mem_t) { + if __ccgo_strace { + trc("tls=%v mem=%v, (%v:)", tls, mem, origin(2)) + } + var l, tmp uintptr + _, _ = l, tmp + l = (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fblocks + for l != UintptrFromInt32(0) { + Xfree(tls, (*Ttre_list_t)(unsafe.Pointer(l)).Fdata) + tmp = (*Ttre_list_t)(unsafe.Pointer(l)).Fnext + Xfree(tls, l) + l = tmp + } + Xfree(tls, mem) +} + +// C documentation +// +// /* Allocates a block of `size' bytes from `mem'. Returns a pointer to the +// allocated block or NULL if an underlying malloc() failed. */ +func X__tre_mem_alloc_impl(tls *TLS, mem Ttre_mem_t, provided int32, provided_block uintptr, zero int32, size Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v mem=%v provided=%v provided_block=%v zero=%v size=%v, (%v:)", tls, mem, provided, provided_block, zero, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + var block_size int32 + var l, ptr uintptr + var v1 uint32 + _, _, _, _ = block_size, l, ptr, v1 + if (*Ttre_mem_struct)(unsafe.Pointer(mem)).Ffailed != 0 { + return UintptrFromInt32(0) + } + if (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fn < size { + if provided != 0 { + if provided_block == UintptrFromInt32(0) { + (*Ttre_mem_struct)(unsafe.Pointer(mem)).Ffailed = int32(1) + return UintptrFromInt32(0) + } + (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fptr = provided_block + (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fn = uint32(TRE_MEM_BLOCK_SIZE) + } else { + if size*uint32(8) > uint32(TRE_MEM_BLOCK_SIZE) { + block_size = Int32FromUint32(size * uint32(8)) + } else { + block_size = int32(TRE_MEM_BLOCK_SIZE) + } + l = Xmalloc(tls, uint32(8)) + if l == UintptrFromInt32(0) { + (*Ttre_mem_struct)(unsafe.Pointer(mem)).Ffailed = int32(1) + return UintptrFromInt32(0) + } + (*Ttre_list_t)(unsafe.Pointer(l)).Fdata = Xmalloc(tls, Uint32FromInt32(block_size)) + if (*Ttre_list_t)(unsafe.Pointer(l)).Fdata == UintptrFromInt32(0) { + Xfree(tls, l) + (*Ttre_mem_struct)(unsafe.Pointer(mem)).Ffailed = int32(1) + return UintptrFromInt32(0) + } + (*Ttre_list_t)(unsafe.Pointer(l)).Fnext = UintptrFromInt32(0) + if (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fcurrent != UintptrFromInt32(0) { + (*Ttre_list_t)(unsafe.Pointer((*Ttre_mem_struct)(unsafe.Pointer(mem)).Fcurrent)).Fnext = l + } + if (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fblocks == UintptrFromInt32(0) { + (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fblocks = l + } + (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fcurrent = l + (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fptr = (*Ttre_list_t)(unsafe.Pointer(l)).Fdata + (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fn = Uint32FromInt32(block_size) + } + } + /* Make sure the next pointer will be aligned. */ + if (Uint32FromInt32(int32((*Ttre_mem_struct)(unsafe.Pointer(mem)).Fptr))+size)%uint32(4) != 0 { + v1 = uint32(4) - (Uint32FromInt32(int32((*Ttre_mem_struct)(unsafe.Pointer(mem)).Fptr))+size)%uint32(4) + } else { + v1 = uint32(0) + } + size = size + v1 + /* Allocate from current block. */ + ptr = (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fptr + **(**uintptr)(__ccgo_up(mem + 8)) += uintptr(size) + **(**Tsize_t)(__ccgo_up(mem + 12)) -= size + /* Set to zero if needed. */ + if zero != 0 { + Xmemset(tls, ptr, 0, size) + } + return ptr +} + +const MAXSIZE = 1 +const MINSIZE = 8 + +type TACTION = int32 + +const _FIND = 0 +const _ENTER = 1 + +type TVISIT = int32 + +const _preorder = 0 +const _postorder = 1 +const _endorder = 2 +const _leaf = 3 + +type TENTRY = struct { + Fkey uintptr + Fdata uintptr +} + +type Tentry = TENTRY + +type Thsearch_data = struct { + F__tab uintptr + F__unused1 uint32 + F__unused2 uint32 +} + +type Tqelem = struct { + Fq_forw uintptr + Fq_back uintptr + Fq_data [1]uint8 +} + +/* +open addressing hash table with 2^n table size +quadratic probing is used in case of hash collision +tab indices and hash are size_t +after resize fails with ENOMEM the state of tab is still usable + +with the posix api items cannot be iterated and length cannot be queried +*/ + +type t__tab = struct { + Fentries uintptr + Fmask Tsize_t + Fused Tsize_t +} + +var _htab Thsearch_data + +func _keyhash(tls *TLS, k uintptr) (r Tsize_t) { + var h Tsize_t + var p, v1 uintptr + _, _, _ = h, p, v1 + p = k + h = uint32(0) + for **(**uint8)(__ccgo_up(p)) != 0 { + v1 = p + p = p + 1 + h = uint32(31)*h + uint32(**(**uint8)(__ccgo_up(v1))) + } + return h +} + +func _resize(tls *TLS, nel Tsize_t, htab uintptr) (r int32) { + var e, newe, oldtab uintptr + var i, j, newsize, oldsize, v4 Tsize_t + _, _, _, _, _, _, _, _ = e, i, j, newe, newsize, oldsize, oldtab, v4 + oldsize = (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fmask + uint32(1) + oldtab = (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fentries + if nel > Uint32FromInt32(-Int32FromInt32(1))/Uint32FromInt32(2)+Uint32FromInt32(1) { + nel = Uint32FromInt32(-Int32FromInt32(1))/Uint32FromInt32(2) + Uint32FromInt32(1) + } + newsize = uint32(MINSIZE) + for { + if !(newsize < nel) { + break + } + goto _1 + _1: + ; + newsize = newsize * uint32(2) + } + (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fentries = Xcalloc(tls, newsize, uint32(8)) + if !((*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fentries != 0) { + (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fentries = oldtab + return 0 + } + (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fmask = newsize - uint32(1) + if !(oldtab != 0) { + return int32(1) + } + e = oldtab + for { + if !(e < oldtab+uintptr(oldsize)*8) { + break + } + if (*TENTRY)(unsafe.Pointer(e)).Fkey != 0 { + i = _keyhash(tls, (*TENTRY)(unsafe.Pointer(e)).Fkey) + j = Uint32FromInt32(1) + for { + newe = (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fentries + uintptr(i&(*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fmask)*8 + if !((*TENTRY)(unsafe.Pointer(newe)).Fkey != 0) { + break + } + goto _3 + _3: + ; + v4 = j + j = j + 1 + i = i + v4 + } + **(**TENTRY)(__ccgo_up(newe)) = **(**TENTRY)(__ccgo_up(e)) + } + goto _2 + _2: + ; + e += 8 + } + Xfree(tls, oldtab) + return int32(1) +} + +func Xhcreate(tls *TLS, nel Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v nel=%v, (%v:)", tls, nel, origin(2)) + defer func() { trc("-> %v", r) }() + } + return ___hcreate_r(tls, nel, uintptr(unsafe.Pointer(&_htab))) +} + +func Xhdestroy(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + ___hdestroy_r(tls, uintptr(unsafe.Pointer(&_htab))) +} + +func _lookup(tls *TLS, key uintptr, hash Tsize_t, htab uintptr) (r uintptr) { + var e uintptr + var i, j, v2 Tsize_t + _, _, _, _ = e, i, j, v2 + i = hash + j = Uint32FromInt32(1) + for { + e = (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fentries + uintptr(i&(*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fmask)*8 + if !((*TENTRY)(unsafe.Pointer(e)).Fkey != 0) || Xstrcmp(tls, (*TENTRY)(unsafe.Pointer(e)).Fkey, key) == 0 { + break + } + goto _1 + _1: + ; + v2 = j + j = j + 1 + i = i + v2 + } + return e +} + +func Xhsearch(tls *TLS, item TENTRY, action TACTION) (r uintptr) { + if __ccgo_strace { + trc("tls=%v item=%v action=%v, (%v:)", tls, item, action, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* e at bp+0 */ uintptr + ___hsearch_r(tls, item, action, bp, uintptr(unsafe.Pointer(&_htab))) + return **(**uintptr)(__ccgo_up(bp)) +} + +func ___hcreate_r(tls *TLS, nel Tsize_t, htab uintptr) (r1 int32) { + var r int32 + _ = r + (*Thsearch_data)(unsafe.Pointer(htab)).F__tab = Xcalloc(tls, uint32(1), uint32(12)) + if !((*Thsearch_data)(unsafe.Pointer(htab)).F__tab != 0) { + return 0 + } + r = _resize(tls, nel, htab) + if r == 0 { + Xfree(tls, (*Thsearch_data)(unsafe.Pointer(htab)).F__tab) + (*Thsearch_data)(unsafe.Pointer(htab)).F__tab = uintptr(0) + } + return r +} + +func ___hdestroy_r(tls *TLS, htab uintptr) { + if (*Thsearch_data)(unsafe.Pointer(htab)).F__tab != 0 { + Xfree(tls, (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fentries) + } + Xfree(tls, (*Thsearch_data)(unsafe.Pointer(htab)).F__tab) + (*Thsearch_data)(unsafe.Pointer(htab)).F__tab = uintptr(0) +} + +func ___hsearch_r(tls *TLS, item TENTRY, action TACTION, retval uintptr, htab uintptr) (r int32) { + var e, v2 uintptr + var hash, v1 Tsize_t + _, _, _, _ = e, hash, v1, v2 + hash = _keyhash(tls, item.Fkey) + e = _lookup(tls, item.Fkey, hash, htab) + if (*TENTRY)(unsafe.Pointer(e)).Fkey != 0 { + **(**uintptr)(__ccgo_up(retval)) = e + return int32(1) + } + if action == int32(_FIND) { + **(**uintptr)(__ccgo_up(retval)) = uintptr(0) + return 0 + } + **(**TENTRY)(__ccgo_up(e)) = item + v2 = (*Thsearch_data)(unsafe.Pointer(htab)).F__tab + 8 + *(*Tsize_t)(unsafe.Pointer(v2)) = *(*Tsize_t)(unsafe.Pointer(v2)) + 1 + v1 = *(*Tsize_t)(unsafe.Pointer(v2)) + if v1 > (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fmask-(*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fmask/uint32(4) { + if !(_resize(tls, uint32(2)*(*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fused, htab) != 0) { + (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fused = (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fused - 1 + (*TENTRY)(unsafe.Pointer(e)).Fkey = uintptr(0) + **(**uintptr)(__ccgo_up(retval)) = uintptr(0) + return 0 + } + e = _lookup(tls, item.Fkey, hash, htab) + } + **(**uintptr)(__ccgo_up(retval)) = e + return int32(1) +} + +type Tnode = struct { + Fnext uintptr + Fprev uintptr +} + +func Xinsque(tls *TLS, element uintptr, pred uintptr) { + if __ccgo_strace { + trc("tls=%v element=%v pred=%v, (%v:)", tls, element, pred, origin(2)) + } + var e, p, v1 uintptr + _, _, _ = e, p, v1 + e = element + p = pred + if !(p != 0) { + v1 = UintptrFromInt32(0) + (*Tnode)(unsafe.Pointer(e)).Fprev = v1 + (*Tnode)(unsafe.Pointer(e)).Fnext = v1 + return + } + (*Tnode)(unsafe.Pointer(e)).Fnext = (*Tnode)(unsafe.Pointer(p)).Fnext + (*Tnode)(unsafe.Pointer(e)).Fprev = p + (*Tnode)(unsafe.Pointer(p)).Fnext = e + if (*Tnode)(unsafe.Pointer(e)).Fnext != 0 { + (*Tnode)(unsafe.Pointer((*Tnode)(unsafe.Pointer(e)).Fnext)).Fprev = e + } +} + +func Xremque(tls *TLS, element uintptr) { + if __ccgo_strace { + trc("tls=%v element=%v, (%v:)", tls, element, origin(2)) + } + var e uintptr + _ = e + e = element + if (*Tnode)(unsafe.Pointer(e)).Fnext != 0 { + (*Tnode)(unsafe.Pointer((*Tnode)(unsafe.Pointer(e)).Fnext)).Fprev = (*Tnode)(unsafe.Pointer(e)).Fprev + } + if (*Tnode)(unsafe.Pointer(e)).Fprev != 0 { + (*Tnode)(unsafe.Pointer((*Tnode)(unsafe.Pointer(e)).Fprev)).Fnext = (*Tnode)(unsafe.Pointer(e)).Fnext + } +} + +type t__ccgo_fp__Xlsearch_4 = func(*TLS, uintptr, uintptr) int32 + +func Xlsearch(tls *TLS, key uintptr, base uintptr, nelp uintptr, width Tsize_t, __ccgo_fp_compar uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v base=%v nelp=%v width=%v __ccgo_fp_compar=%v, (%v:)", tls, key, base, nelp, width, __ccgo_fp_compar, origin(2)) + defer func() { trc("-> %v", r) }() + } + var i, n Tsize_t + var p uintptr + var v1 t__predefined_size_t + _, _, _, _ = i, n, p, v1 + defer func() {}() + v1 = width + p = base + n = **(**Tsize_t)(__ccgo_up(nelp)) + i = uint32(0) + for { + if !(i < n) { + break + } + if (*(*func(*TLS, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_compar})))(tls, key, p+uintptr(i)*uintptr(v1)) == 0 { + return p + uintptr(i)*uintptr(v1) + } + goto _2 + _2: + ; + i = i + 1 + } + **(**Tsize_t)(__ccgo_up(nelp)) = n + uint32(1) + return _memcpy(tls, p+uintptr(n)*uintptr(v1), key, width) +} + +type t__ccgo_fp__Xlfind_4 = func(*TLS, uintptr, uintptr) int32 + +func Xlfind(tls *TLS, key uintptr, base uintptr, nelp uintptr, width Tsize_t, __ccgo_fp_compar uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v base=%v nelp=%v width=%v __ccgo_fp_compar=%v, (%v:)", tls, key, base, nelp, width, __ccgo_fp_compar, origin(2)) + defer func() { trc("-> %v", r) }() + } + var i, n Tsize_t + var p uintptr + var v1 t__predefined_size_t + _, _, _, _ = i, n, p, v1 + defer func() {}() + v1 = width + p = base + n = **(**Tsize_t)(__ccgo_up(nelp)) + i = uint32(0) + for { + if !(i < n) { + break + } + if (*(*func(*TLS, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_compar})))(tls, key, p+uintptr(i)*uintptr(v1)) == 0 { + return p + uintptr(i)*uintptr(v1) + } + goto _2 + _2: + ; + i = i + 1 + } + return uintptr(0) +} + +const MAXH = 0 + +type Tnode1 = struct { + Fkey uintptr + Fa [2]uintptr + Fh int32 +} + +type t__ccgo_fp__Xtdelete_2 = func(*TLS, uintptr, uintptr) int32 + +func Xtdelete(tls *TLS, key uintptr, rootp uintptr, __ccgo_fp_cmp uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v rootp=%v __ccgo_fp_cmp=%v, (%v:)", tls, key, rootp, __ccgo_fp_cmp, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a [49]uintptr + var c, i, v1 int32 + var child, deleted, n, parent uintptr + _, _, _, _, _, _, _, _ = a, c, child, deleted, i, n, parent, v1 + if !(rootp != 0) { + return uintptr(0) + } + n = **(**uintptr)(__ccgo_up(rootp)) + i = 0 + /* *a[0] is an arbitrary non-null pointer that is returned when + the root node is deleted. */ + v1 = i + i = i + 1 + a[v1] = rootp + v1 = i + i = i + 1 + a[v1] = rootp + for { + if !(n != 0) { + return uintptr(0) + } + c = (*(*func(*TLS, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cmp})))(tls, key, (*Tnode1)(unsafe.Pointer(n)).Fkey) + if !(c != 0) { + break + } + v1 = i + i = i + 1 + a[v1] = n + 4 + BoolUintptr(c > 0)*4 + n = **(**uintptr)(__ccgo_up(n + 4 + BoolUintptr(c > 0)*4)) + goto _3 + _3: + } + parent = **(**uintptr)(__ccgo_up(a[i-int32(2)])) + if **(**uintptr)(__ccgo_up(n + 4)) != 0 { + /* free the preceding node instead of the deleted one. */ + deleted = n + v1 = i + i = i + 1 + a[v1] = n + 4 + n = **(**uintptr)(__ccgo_up(n + 4)) + for **(**uintptr)(__ccgo_up(n + 4 + 1*4)) != 0 { + v1 = i + i = i + 1 + a[v1] = n + 4 + 1*4 + n = **(**uintptr)(__ccgo_up(n + 4 + 1*4)) + } + (*Tnode1)(unsafe.Pointer(deleted)).Fkey = (*Tnode1)(unsafe.Pointer(n)).Fkey + child = **(**uintptr)(__ccgo_up(n + 4)) + } else { + child = **(**uintptr)(__ccgo_up(n + 4 + 1*4)) + } + /* freed node has at most one child, move it up and rebalance. */ + Xfree(tls, n) + i = i - 1 + v1 = i + **(**uintptr)(__ccgo_up(a[v1])) = child + for { + i = i - 1 + v1 = i + if !(v1 != 0 && X__tsearch_balance(tls, a[i]) != 0) { + break + } + } + return parent +} + +type t__ccgo_fp__Xtdestroy_1 = func(*TLS, uintptr) + +func Xtdestroy(tls *TLS, root uintptr, __ccgo_fp_freekey uintptr) { + if __ccgo_strace { + trc("tls=%v root=%v __ccgo_fp_freekey=%v, (%v:)", tls, root, __ccgo_fp_freekey, origin(2)) + } + var r uintptr + _ = r + r = root + if r == uintptr(0) { + return + } + Xtdestroy(tls, **(**uintptr)(__ccgo_up(r + 4)), __ccgo_fp_freekey) + Xtdestroy(tls, **(**uintptr)(__ccgo_up(r + 4 + 1*4)), __ccgo_fp_freekey) + if __ccgo_fp_freekey != 0 { + (*(*func(*TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_freekey})))(tls, (*Tnode1)(unsafe.Pointer(r)).Fkey) + } + Xfree(tls, r) +} + +type t__ccgo_fp__Xtfind_2 = func(*TLS, uintptr, uintptr) int32 + +func Xtfind(tls *TLS, key uintptr, rootp uintptr, __ccgo_fp_cmp uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v rootp=%v __ccgo_fp_cmp=%v, (%v:)", tls, key, rootp, __ccgo_fp_cmp, origin(2)) + defer func() { trc("-> %v", r) }() + } + var c int32 + var n uintptr + _, _ = c, n + if !(rootp != 0) { + return uintptr(0) + } + n = **(**uintptr)(__ccgo_up(rootp)) + for { + if !(n != 0) { + break + } + c = (*(*func(*TLS, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cmp})))(tls, key, (*Tnode1)(unsafe.Pointer(n)).Fkey) + if !(c != 0) { + break + } + n = **(**uintptr)(__ccgo_up(n + 4 + BoolUintptr(c > 0)*4)) + goto _1 + _1: + } + return n +} + +func _height(tls *TLS, n uintptr) (r int32) { + var v1 int32 + _ = v1 + if n != 0 { + v1 = (*Tnode1)(unsafe.Pointer(n)).Fh + } else { + v1 = 0 + } + return v1 +} + +func _rot(tls *TLS, p uintptr, x uintptr, dir int32) (r int32) { + var hx, hz int32 + var y, z uintptr + _, _, _, _ = hx, hz, y, z + y = **(**uintptr)(__ccgo_up(x + 4 + uintptr(dir)*4)) + z = **(**uintptr)(__ccgo_up(y + 4 + BoolUintptr(!(dir != 0))*4)) + hx = (*Tnode1)(unsafe.Pointer(x)).Fh + hz = _height(tls, z) + if hz > _height(tls, **(**uintptr)(__ccgo_up(y + 4 + uintptr(dir)*4))) { + /* + * x + * / \ dir z + * A y / * / \ --> x y + * z D /| | * / \ A B C D + * B C + */ + **(**uintptr)(__ccgo_up(x + 4 + uintptr(dir)*4)) = **(**uintptr)(__ccgo_up(z + 4 + BoolUintptr(!(dir != 0))*4)) + **(**uintptr)(__ccgo_up(y + 4 + BoolUintptr(!(dir != 0))*4)) = **(**uintptr)(__ccgo_up(z + 4 + uintptr(dir)*4)) + **(**uintptr)(__ccgo_up(z + 4 + BoolUintptr(!(dir != 0))*4)) = x + **(**uintptr)(__ccgo_up(z + 4 + uintptr(dir)*4)) = y + (*Tnode1)(unsafe.Pointer(x)).Fh = hz + (*Tnode1)(unsafe.Pointer(y)).Fh = hz + (*Tnode1)(unsafe.Pointer(z)).Fh = hz + int32(1) + } else { + /* + * x y + * / \ / * A y --> x D + * / \ / * z D A z + */ + **(**uintptr)(__ccgo_up(x + 4 + uintptr(dir)*4)) = z + **(**uintptr)(__ccgo_up(y + 4 + BoolUintptr(!(dir != 0))*4)) = x + (*Tnode1)(unsafe.Pointer(x)).Fh = hz + int32(1) + (*Tnode1)(unsafe.Pointer(y)).Fh = hz + int32(2) + z = y + } + **(**uintptr)(__ccgo_up(p)) = z + return (*Tnode1)(unsafe.Pointer(z)).Fh - hx +} + +// C documentation +// +// /* balance *p, return 0 if height is unchanged. */ +func X__tsearch_balance(tls *TLS, p uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v p=%v, (%v:)", tls, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + var h0, h1, old, v1 int32 + var n uintptr + _, _, _, _, _ = h0, h1, n, old, v1 + n = **(**uintptr)(__ccgo_up(p)) + h0 = _height(tls, **(**uintptr)(__ccgo_up(n + 4))) + h1 = _height(tls, **(**uintptr)(__ccgo_up(n + 4 + 1*4))) + if Uint32FromInt32(h0-h1)+uint32(1) < uint32(3) { + old = (*Tnode1)(unsafe.Pointer(n)).Fh + if h0 < h1 { + v1 = h1 + int32(1) + } else { + v1 = h0 + int32(1) + } + (*Tnode1)(unsafe.Pointer(n)).Fh = v1 + return (*Tnode1)(unsafe.Pointer(n)).Fh - old + } + return _rot(tls, p, n, BoolInt32(h0 < h1)) +} + +type t__ccgo_fp__Xtsearch_2 = func(*TLS, uintptr, uintptr) int32 + +func Xtsearch(tls *TLS, key uintptr, rootp uintptr, __ccgo_fp_cmp uintptr) (r1 uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v rootp=%v __ccgo_fp_cmp=%v, (%v:)", tls, key, rootp, __ccgo_fp_cmp, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var a [48]uintptr + var c, i, v1 int32 + var n, r, v4 uintptr + var v7 bool + _, _, _, _, _, _, _, _ = a, c, i, n, r, v1, v4, v7 + if !(rootp != 0) { + return uintptr(0) + } + n = **(**uintptr)(__ccgo_up(rootp)) + i = 0 + v1 = i + i = i + 1 + a[v1] = rootp + for { + if !(n != 0) { + break + } + c = (*(*func(*TLS, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cmp})))(tls, key, (*Tnode1)(unsafe.Pointer(n)).Fkey) + if !(c != 0) { + return n + } + v1 = i + i = i + 1 + a[v1] = n + 4 + BoolUintptr(c > 0)*4 + n = **(**uintptr)(__ccgo_up(n + 4 + BoolUintptr(c > 0)*4)) + goto _2 + _2: + } + r = Xmalloc(tls, uint32(16)) + if !(r != 0) { + return uintptr(0) + } + (*Tnode1)(unsafe.Pointer(r)).Fkey = key + v4 = UintptrFromInt32(0) + **(**uintptr)(__ccgo_up(r + 4 + 1*4)) = v4 + **(**uintptr)(__ccgo_up(r + 4)) = v4 + (*Tnode1)(unsafe.Pointer(r)).Fh = int32(1) + /* insert new node, rebalance ancestors. */ + i = i - 1 + v1 = i + **(**uintptr)(__ccgo_up(a[v1])) = r + for { + if v7 = i != 0; v7 { + i = i - 1 + v1 = i + } + if !(v7 && X__tsearch_balance(tls, a[v1]) != 0) { + break + } + } + return r +} + +func _walk(tls *TLS, r uintptr, __ccgo_fp_action uintptr, d int32) { + if !(r != 0) { + return + } + if (*Tnode1)(unsafe.Pointer(r)).Fh == int32(1) { + (*(*func(*TLS, uintptr, TVISIT, int32))(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_action})))(tls, r, int32(_leaf), d) + } else { + (*(*func(*TLS, uintptr, TVISIT, int32))(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_action})))(tls, r, int32(_preorder), d) + _walk(tls, **(**uintptr)(__ccgo_up(r + 4)), __ccgo_fp_action, d+int32(1)) + (*(*func(*TLS, uintptr, TVISIT, int32))(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_action})))(tls, r, int32(_postorder), d) + _walk(tls, **(**uintptr)(__ccgo_up(r + 4 + 1*4)), __ccgo_fp_action, d+int32(1)) + (*(*func(*TLS, uintptr, TVISIT, int32))(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_action})))(tls, r, int32(_endorder), d) + } +} + +type t__ccgo_fp__Xtwalk_1 = func(*TLS, uintptr, int32, int32) + +func Xtwalk(tls *TLS, root uintptr, __ccgo_fp_action uintptr) { + if __ccgo_strace { + trc("tls=%v root=%v __ccgo_fp_action=%v, (%v:)", tls, root, __ccgo_fp_action, origin(2)) + } + _walk(tls, root, __ccgo_fp_action, 0) +} + +func Xpoll(tls *TLS, fds uintptr, n Tnfds_t, timeout int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fds=%v n=%v timeout=%v, (%v:)", tls, fds, n, timeout, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(___syscall_cp(tls, int32(SYS_poll), int32(fds), Int32FromUint32(n), timeout, 0, 0, 0))) +} + +func Xppoll(tls *TLS, fds uintptr, n Tnfds_t, to uintptr, mask uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fds=%v n=%v to=%v mask=%v, (%v:)", tls, fds, n, to, mask, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var ns, r, v2 int32 + var s Ttime_t + var v1 int64 + var v3 uintptr + var v4 uint64 + _, _, _, _, _, _, _ = ns, r, s, v1, v2, v3, v4 + if to != 0 { + v1 = (*Ttimespec)(unsafe.Pointer(to)).Ftv_sec + } else { + v1 = 0 + } + s = v1 + if to != 0 { + v2 = (*Ttimespec)(unsafe.Pointer(to)).Ftv_nsec + } else { + v2 = 0 + } + ns = v2 + r = -int32(ENOSYS) + if Bool(false) || !!((Uint64FromInt64(s)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) { + if to != 0 { + *(*[2]int64)(unsafe.Pointer(bp)) = [2]int64{ + 0: s, + 1: int64(ns), + } + v3 = bp + } else { + v3 = uintptr(0) + } + r = int32(___syscall_cp(tls, int32(SYS_ppoll_time64), int32(fds), Int32FromUint32(n), int32(v3), int32(mask), int32(Int32FromInt32(_NSIG)/Int32FromInt32(8)), 0)) + } + if Bool(false) || r != -int32(ENOSYS) { + return X__syscall_ret(tls, Uint32FromInt32(r)) + } + if !((Uint64FromInt64(s)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) { + v4 = Uint64FromInt64(s) + } else { + v4 = uint64(0x7fffffff) + (0+Uint64FromInt64(s))>>int32(63) + } + s = int64(Int32FromUint64(v4)) + if to != 0 { + *(*[2]int32)(unsafe.Pointer(bp + 16)) = [2]int32{ + 0: int32(s), + 1: ns, + } + v3 = bp + 16 + } else { + v3 = uintptr(0) + } + return X__syscall_ret(tls, Uint32FromInt32(___syscall_cp(tls, int32(SYS_ppoll), int32(fds), Int32FromUint32(n), int32(v3), int32(mask), int32(Int32FromInt32(_NSIG)/Int32FromInt32(8)), 0))) +} + +func Xpselect(tls *TLS, n int32, rfds uintptr, wfds uintptr, efds uintptr, ts uintptr, mask uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v n=%v rfds=%v wfds=%v efds=%v ts=%v mask=%v, (%v:)", tls, n, rfds, wfds, efds, ts, mask, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var ns, r, v2 int32 + var s Ttime_t + var v1 int64 + var v3 uintptr + var v4 uint64 + var _ /* data at bp+24 */ [2]Tsyscall_arg_t + _, _, _, _, _, _, _ = ns, r, s, v1, v2, v3, v4 + **(**[2]Tsyscall_arg_t)(__ccgo_up(bp + 24)) = [2]Tsyscall_arg_t{ + 0: Int32FromUint32(uint32(mask)), + 1: int32(Int32FromInt32(_NSIG) / Int32FromInt32(8)), + } + if ts != 0 { + v1 = (*Ttimespec)(unsafe.Pointer(ts)).Ftv_sec + } else { + v1 = 0 + } + s = v1 + if ts != 0 { + v2 = (*Ttimespec)(unsafe.Pointer(ts)).Ftv_nsec + } else { + v2 = 0 + } + ns = v2 + r = -int32(ENOSYS) + if Bool(false) || !!((Uint64FromInt64(s)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) { + if ts != 0 { + *(*[2]int64)(unsafe.Pointer(bp)) = [2]int64{ + 0: s, + 1: int64(ns), + } + v3 = bp + } else { + v3 = uintptr(0) + } + r = int32(___syscall_cp(tls, int32(SYS_pselect6_time64), n, int32(rfds), int32(wfds), int32(efds), int32(v3), int32(bp+24))) + } + if Bool(false) || r != -int32(ENOSYS) { + return X__syscall_ret(tls, Uint32FromInt32(r)) + } + if !((Uint64FromInt64(s)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) { + v4 = Uint64FromInt64(s) + } else { + v4 = uint64(0x7fffffff) + (0+Uint64FromInt64(s))>>int32(63) + } + s = int64(Int32FromUint64(v4)) + if ts != 0 { + *(*[2]int32)(unsafe.Pointer(bp + 16)) = [2]int32{ + 0: int32(s), + 1: ns, + } + v3 = bp + 16 + } else { + v3 = uintptr(0) + } + return X__syscall_ret(tls, Uint32FromInt32(___syscall_cp(tls, int32(SYS_pselect6), n, int32(rfds), int32(wfds), int32(efds), int32(v3), int32(bp+24)))) +} + +func Xselect(tls *TLS, n int32, rfds uintptr, wfds uintptr, efds uintptr, tv uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v n=%v rfds=%v wfds=%v efds=%v tv=%v, (%v:)", tls, n, rfds, wfds, efds, tv, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var max_time, s Ttime_t + var ns, r int32 + var us Tsuseconds_t + var v1, v2 int64 + var v3 uintptr + var v4 uint64 + _, _, _, _, _, _, _, _, _ = max_time, ns, r, s, us, v1, v2, v3, v4 + if tv != 0 { + v1 = (*Ttimeval)(unsafe.Pointer(tv)).Ftv_sec + } else { + v1 = 0 + } + s = v1 + if tv != 0 { + v2 = (*Ttimeval)(unsafe.Pointer(tv)).Ftv_usec + } else { + v2 = 0 + } + us = v2 + max_time = Int64FromUint64(Uint64FromUint64(1)<<(Uint32FromInt32(8)*Uint32FromInt64(8)-Uint32FromInt32(1)) - Uint64FromInt32(1)) + if s < 0 || us < 0 { + return X__syscall_ret(tls, Uint32FromInt32(-Int32FromInt32(EINVAL))) + } + if us/int64(1000000) > max_time-s { + s = max_time + us = int64(999999) + ns = int32(999999999) + } else { + s = s + us/int64(1000000) + us = us % int64(1000000) + ns = int32(us * int64(1000)) + } + r = -int32(ENOSYS) + if Bool(false) || !!((Uint64FromInt64(s)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) { + if tv != 0 { + *(*[2]int64)(unsafe.Pointer(bp)) = [2]int64{ + 0: s, + 1: int64(ns), + } + v3 = bp + } else { + v3 = uintptr(0) + } + *(*[2]Tsyscall_arg_t)(unsafe.Pointer(bp + 16)) = [2]Tsyscall_arg_t{ + 1: int32(Int32FromInt32(_NSIG) / Int32FromInt32(8)), + } + r = int32(___syscall_cp(tls, int32(SYS_pselect6_time64), n, int32(rfds), int32(wfds), int32(efds), int32(v3), int32(bp+16))) + } + if Bool(false) || r != -int32(ENOSYS) { + return X__syscall_ret(tls, Uint32FromInt32(r)) + } + if !((Uint64FromInt64(s)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) { + v4 = Uint64FromInt64(s) + } else { + v4 = uint64(0x7fffffff) + (0+Uint64FromInt64(s))>>int32(63) + } + s = int64(Int32FromUint64(v4)) + if tv != 0 { + *(*[2]int32)(unsafe.Pointer(bp + 24)) = [2]int32{ + 0: int32(s), + 1: int32(us), + } + v3 = bp + 24 + } else { + v3 = uintptr(0) + } + return X__syscall_ret(tls, Uint32FromInt32(___syscall_cp(tls, int32(SYS__newselect), n, int32(rfds), int32(wfds), int32(efds), int32(v3), 0))) +} + +var _all_mask = [2]uint32{ + 0: -Uint32FromUint32(1), + 1: -Uint32FromUint32(1), +} + +var _app_mask = [2]uint32{ + 0: uint32(0x7fffffff), + 1: uint32(0xfffffffc), +} + +func X__block_all_sigs(tls *TLS, set uintptr) { + if __ccgo_strace { + trc("tls=%v set=%v, (%v:)", tls, set, origin(2)) + } + X__syscall4(tls, int32(SYS_rt_sigprocmask), int32(Int32FromInt32(SIG_BLOCK)), int32(uintptr(unsafe.Pointer(&_all_mask))), int32(set), int32(Int32FromInt32(_NSIG)/Int32FromInt32(8))) +} + +func X__block_app_sigs(tls *TLS, set uintptr) { + if __ccgo_strace { + trc("tls=%v set=%v, (%v:)", tls, set, origin(2)) + } + X__syscall4(tls, int32(SYS_rt_sigprocmask), int32(Int32FromInt32(SIG_BLOCK)), int32(uintptr(unsafe.Pointer(&_app_mask))), int32(set), int32(Int32FromInt32(_NSIG)/Int32FromInt32(8))) +} + +func X__restore_sigs(tls *TLS, set uintptr) { + if __ccgo_strace { + trc("tls=%v set=%v, (%v:)", tls, set, origin(2)) + } + X__syscall4(tls, int32(SYS_rt_sigprocmask), int32(Int32FromInt32(SIG_SETMASK)), int32(set), int32(Int32FromInt32(0)), int32(Int32FromInt32(_NSIG)/Int32FromInt32(8))) +} + +func Xgetitimer(tls *TLS, which int32, old uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v which=%v old=%v, (%v:)", tls, which, old, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var r int32 + var _ /* old32 at bp+0 */ [4]int32 + _ = r + if uint32(8) > uint32(4) { + r = int32(X__syscall2(tls, int32(SYS_getitimer), which, int32(bp))) + if !(r != 0) { + (*Titimerval)(unsafe.Pointer(old)).Fit_interval.Ftv_sec = int64((**(**[4]int32)(__ccgo_up(bp)))[0]) + (*Titimerval)(unsafe.Pointer(old)).Fit_interval.Ftv_usec = int64((**(**[4]int32)(__ccgo_up(bp)))[int32(1)]) + (*Titimerval)(unsafe.Pointer(old)).Fit_value.Ftv_sec = int64((**(**[4]int32)(__ccgo_up(bp)))[int32(2)]) + (*Titimerval)(unsafe.Pointer(old)).Fit_value.Ftv_usec = int64((**(**[4]int32)(__ccgo_up(bp)))[int32(3)]) + } + return X__syscall_ret(tls, Uint32FromInt32(r)) + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_getitimer), which, int32(old)))) +} + +func Xkill(tls *TLS, pid Tpid_t, sig int32) (r int32) { + if __ccgo_strace { + trc("tls=%v pid=%v sig=%v, (%v:)", tls, pid, sig, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_kill), pid, sig))) +} + +func Xkillpg(tls *TLS, pgid Tpid_t, sig int32) (r int32) { + if __ccgo_strace { + trc("tls=%v pgid=%v sig=%v, (%v:)", tls, pgid, sig, origin(2)) + defer func() { trc("-> %v", r) }() + } + if pgid < 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + return Xkill(tls, -pgid, sig) +} + +func Xpsiginfo(tls *TLS, si uintptr, msg uintptr) { + if __ccgo_strace { + trc("tls=%v si=%v msg=%v, (%v:)", tls, si, msg, origin(2)) + } + Xpsignal(tls, (*Tsiginfo_t)(unsafe.Pointer(si)).Fsi_signo, msg) +} + +func Xpsignal(tls *TLS, sig int32, msg uintptr) { + if __ccgo_strace { + trc("tls=%v sig=%v msg=%v, (%v:)", tls, sig, msg, origin(2)) + } + bp := tls.Alloc(32) + defer tls.Free(32) + var __need_unlock, old_errno, old_mode, v1 int32 + var f, old_locale, s, v2, v3 uintptr + _, _, _, _, _, _, _, _, _ = __need_unlock, f, old_errno, old_locale, old_mode, s, v1, v2, v3 + f = uintptr(unsafe.Pointer(&X__stderr_FILE)) + s = Xstrsignal(tls, sig) + if AtomicLoadPInt32(f+76) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + /* Save stderr's orientation and encoding rule, since psignal is not + * permitted to change them. Save errno and restore it if there is no + * error since fprintf might change it even on success but psignal is + * not permitted to do so. */ + old_locale = (*TFILE)(unsafe.Pointer(f)).Flocale + old_mode = (*TFILE)(unsafe.Pointer(f)).Fmode + old_errno = **(**int32)(__ccgo_up(X__errno_location(tls))) + if msg != 0 { + v2 = msg + } else { + v2 = __ccgo_ts + } + if msg != 0 { + v3 = __ccgo_ts + 289 + } else { + v3 = __ccgo_ts + } + if Xfprintf(tls, f, __ccgo_ts+987, VaList(bp+8, v2, v3, s)) >= 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = old_errno + } + (*TFILE)(unsafe.Pointer(f)).Fmode = old_mode + (*TFILE)(unsafe.Pointer(f)).Flocale = old_locale + if __need_unlock != 0 { + ___unlockfile(tls, f) + } +} + +func Xraise(tls *TLS, sig int32) (r int32) { + if __ccgo_strace { + trc("tls=%v sig=%v, (%v:)", tls, sig, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(128) + defer tls.Free(128) + var ret int32 + var _ /* set at bp+0 */ Tsigset_t + _ = ret + X__block_app_sigs(tls, bp) + ret = X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_tkill), (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Ftid, sig))) + X__restore_sigs(tls, bp) + return ret +} + +/* These functions will not work, but suffice for targets where the + * kernel sigaction structure does not actually use sa_restorer. */ +func X__restore(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } +} + +func X__restore_rt(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } +} + +func Xsetitimer(tls *TLS, which int32, new1 uintptr, old uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v which=%v new1=%v old=%v, (%v:)", tls, which, new1, old, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var is, vs Ttime_t + var ius, r, vus int32 + var _ /* old32 at bp+16 */ [4]int32 + _, _, _, _, _ = is, ius, r, vs, vus + if uint32(8) > uint32(4) { + is = (*Titimerval)(unsafe.Pointer(new1)).Fit_interval.Ftv_sec + vs = (*Titimerval)(unsafe.Pointer(new1)).Fit_value.Ftv_sec + ius = int32((*Titimerval)(unsafe.Pointer(new1)).Fit_interval.Ftv_usec) + vus = int32((*Titimerval)(unsafe.Pointer(new1)).Fit_value.Ftv_usec) + if !!((Uint64FromInt64(is)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) || !!((Uint64FromInt64(vs)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) { + return X__syscall_ret(tls, Uint32FromInt32(-Int32FromInt32(EOPNOTSUPP))) + } + *(*[4]int32)(unsafe.Pointer(bp)) = [4]int32{ + 0: int32(is), + 1: ius, + 2: int32(vs), + 3: vus, + } + r = int32(X__syscall3(tls, int32(SYS_setitimer), which, int32(bp), int32(bp+16))) + if !(r != 0) && old != 0 { + (*Titimerval)(unsafe.Pointer(old)).Fit_interval.Ftv_sec = int64((**(**[4]int32)(__ccgo_up(bp + 16)))[0]) + (*Titimerval)(unsafe.Pointer(old)).Fit_interval.Ftv_usec = int64((**(**[4]int32)(__ccgo_up(bp + 16)))[int32(1)]) + (*Titimerval)(unsafe.Pointer(old)).Fit_value.Ftv_sec = int64((**(**[4]int32)(__ccgo_up(bp + 16)))[int32(2)]) + (*Titimerval)(unsafe.Pointer(old)).Fit_value.Ftv_usec = int64((**(**[4]int32)(__ccgo_up(bp + 16)))[int32(3)]) + } + return X__syscall_ret(tls, Uint32FromInt32(r)) + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_setitimer), which, int32(new1), int32(old)))) +} + +type Tk_sigaction = struct { + Fhandler uintptr + Fflags uint32 + Frestorer uintptr + Fmask [2]uint32 +} + +var _unmask_done int32 +var _handler_set [2]uint32 + +func X__get_handler_set(tls *TLS, set uintptr) { + if __ccgo_strace { + trc("tls=%v set=%v, (%v:)", tls, set, origin(2)) + } + _memcpy(tls, set, uintptr(unsafe.Pointer(&_handler_set)), uint32(8)) +} + +func X__libc_sigaction(tls *TLS, sig int32, sa uintptr, old1 uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v sig=%v sa=%v old1=%v, (%v:)", tls, sig, sa, old1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var old, r, v2 int32 + var v1, v3, v5, v6, v8 uintptr + var _ /* ksa at bp+16 */ Tk_sigaction + var _ /* ksa_old at bp+36 */ Tk_sigaction + var _ /* u at bp+8 */ struct { + F__ccgo_align [0]uint32 + Fr [0][2]Tuint32_t + Fv Tuint64_t + } + _, _, _, _, _, _, _, _ = old, r, v1, v2, v3, v5, v6, v8 + if sa != 0 { + if uint32(*(*uintptr)(unsafe.Pointer(sa))) > uint32(1) { + v1 = uintptr(unsafe.Pointer(&_handler_set)) + uintptr(Uint32FromInt32(sig-Int32FromInt32(1))/(Uint32FromInt32(8)*Uint32FromInt64(4)))*4 + v2 = Int32FromUint32(uint32(1) << (Uint32FromInt32(sig-Int32FromInt32(1)) % (Uint32FromInt32(8) * Uint32FromInt64(4)))) + if Uint32FromInt64(4) == Uint32FromInt64(4) { + v3 = v1 + _a_barrier(tls) + for cond := true; cond; cond = !(_a_sc(tls, v3, old|v2) != 0) { + old = _a_ll(tls, v3) + } + _a_barrier(tls) + _ = old + goto _4 + _4: + } else { + v5 = v1 + *(*struct { + F__ccgo_align [0]uint32 + Fr [0][2]Tuint32_t + Fv Tuint64_t + })(unsafe.Pointer(bp + 8)) = struct { + F__ccgo_align [0]uint32 + Fr [0][2]Tuint32_t + Fv Tuint64_t + }{} + *(*uint64)(unsafe.Pointer(bp + 8)) = Uint64FromInt32(v2) + if **(**Tuint32_t)(__ccgo_up(bp + 8)) != 0 { + v6 = v5 + _a_barrier(tls) + for cond := true; cond; cond = !(_a_sc(tls, v6, old|Int32FromUint32(**(**Tuint32_t)(__ccgo_up(bp + 8)))) != 0) { + old = _a_ll(tls, v6) + } + _a_barrier(tls) + _ = old + goto _7 + _7: + } + if **(**Tuint32_t)(__ccgo_up(bp + 8 + 1*4)) != 0 { + v8 = v5 + uintptr(1)*4 + _a_barrier(tls) + for cond := true; cond; cond = !(_a_sc(tls, v8, old|Int32FromUint32(**(**Tuint32_t)(__ccgo_up(bp + 8 + 1*4)))) != 0) { + old = _a_ll(tls, v8) + } + _a_barrier(tls) + _ = old + goto _9 + _9: + } + } + /* If pthread_create has not yet been called, + * implementation-internal signals might not + * yet have been unblocked. They must be + * unblocked before any signal handler is + * installed, so that an application cannot + * receive an illegal sigset_t (with them + * blocked) as part of the ucontext_t passed + * to the signal handler. */ + if !(X__libc.Fthreaded != 0) && !(_unmask_done != 0) { + *(*[2]uint32)(unsafe.Pointer(bp)) = [2]uint32{ + 1: Uint32FromUint32(3) << (Int32FromInt32(32) * BoolInt32(Uint32FromInt64(4) > Uint32FromInt32(4))), + } + X__syscall4(tls, int32(SYS_rt_sigprocmask), int32(Int32FromInt32(SIG_UNBLOCK)), int32(bp), int32(Int32FromInt32(0)), int32(Int32FromInt32(_NSIG)/Int32FromInt32(8))) + _unmask_done = int32(1) + } + if !((*Tsigaction)(unsafe.Pointer(sa)).Fsa_flags&Int32FromInt32(SA_RESTART) != 0) { + _a_barrier(tls) + AtomicStorePInt32(uintptr(unsafe.Pointer(&X__eintr_valid_flag)), int32(1)) + _a_barrier(tls) + } + } + (**(**Tk_sigaction)(__ccgo_up(bp + 16))).Fhandler = *(*uintptr)(unsafe.Pointer(sa)) + (**(**Tk_sigaction)(__ccgo_up(bp + 16))).Fflags = Uint32FromInt32((*Tsigaction)(unsafe.Pointer(sa)).Fsa_flags) + (**(**Tk_sigaction)(__ccgo_up(bp + 16))).Fflags |= uint32(SA_RESTORER) + if (*Tsigaction)(unsafe.Pointer(sa)).Fsa_flags&int32(SA_SIGINFO) != 0 { + v1 = __ccgo_fp(X__restore_rt) + } else { + v1 = __ccgo_fp(X__restore) + } + (**(**Tk_sigaction)(__ccgo_up(bp + 16))).Frestorer = v1 + _memcpy(tls, bp+16+12, sa+4, Uint32FromInt32(Int32FromInt32(_NSIG)/Int32FromInt32(8))) + } + if sa != 0 { + v1 = bp + 16 + } else { + v1 = uintptr(0) + } + if old1 != 0 { + v3 = bp + 36 + } else { + v3 = uintptr(0) + } + r = int32(X__syscall4(tls, int32(SYS_rt_sigaction), sig, int32(v1), int32(v3), int32(Int32FromInt32(_NSIG)/Int32FromInt32(8)))) + if old1 != 0 && !(r != 0) { + *(*uintptr)(unsafe.Pointer(old1)) = (**(**Tk_sigaction)(__ccgo_up(bp + 36))).Fhandler + (*Tsigaction)(unsafe.Pointer(old1)).Fsa_flags = Int32FromUint32((**(**Tk_sigaction)(__ccgo_up(bp + 36))).Fflags) + _memcpy(tls, old1+4, bp+36+12, Uint32FromInt32(Int32FromInt32(_NSIG)/Int32FromInt32(8))) + } + return X__syscall_ret(tls, Uint32FromInt32(r)) +} + +func X__sigaction(tls *TLS, sig int32, sa uintptr, old uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v sig=%v sa=%v old=%v, (%v:)", tls, sig, sa, old, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var r int32 + var _ /* set at bp+0 */ [2]uint32 + _ = r + if Uint32FromInt32(sig)-uint32(32) < uint32(3) || Uint32FromInt32(sig)-uint32(1) >= Uint32FromInt32(Int32FromInt32(_NSIG)-Int32FromInt32(1)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + /* Doing anything with the disposition of SIGABRT requires a lock, + * so that it cannot be changed while abort is terminating the + * process and so any change made by abort can't be observed. */ + if sig == int32(SIGABRT) { + X__block_all_sigs(tls, bp) + ___lock(tls, uintptr(unsafe.Pointer(&X__abort_lock))) + } + r = X__libc_sigaction(tls, sig, sa, old) + if sig == int32(SIGABRT) { + ___unlock(tls, uintptr(unsafe.Pointer(&X__abort_lock))) + X__restore_sigs(tls, bp) + } + return r +} + +func Xsigaction(tls *TLS, sig int32, sa uintptr, old uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v sig=%v sa=%v old=%v, (%v:)", tls, sig, sa, old, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__sigaction(tls, sig, sa, old) +} + +func Xsigaddset(tls *TLS, set uintptr, sig int32) (r int32) { + if __ccgo_strace { + trc("tls=%v set=%v sig=%v, (%v:)", tls, set, sig, origin(2)) + defer func() { trc("-> %v", r) }() + } + var s uint32 + _ = s + s = Uint32FromInt32(sig - int32(1)) + if s >= Uint32FromInt32(Int32FromInt32(_NSIG)-Int32FromInt32(1)) || Uint32FromInt32(sig)-uint32(32) < uint32(3) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + **(**uint32)(__ccgo_up(set + uintptr(s/uint32(8)/uint32(4))*4)) |= uint32(1) << (s & (Uint32FromInt32(8)*Uint32FromInt64(4) - Uint32FromInt32(1))) + return 0 +} + +func Xsigaltstack(tls *TLS, ss uintptr, old uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v ss=%v old=%v, (%v:)", tls, ss, old, origin(2)) + defer func() { trc("-> %v", r) }() + } + if ss != 0 { + if !((*Tstack_t)(unsafe.Pointer(ss)).Fss_flags&Int32FromInt32(SS_DISABLE) != 0) && (*Tstack_t)(unsafe.Pointer(ss)).Fss_size < uint32(MINSIGSTKSZ) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOMEM) + return -int32(1) + } + if (*Tstack_t)(unsafe.Pointer(ss)).Fss_flags&int32(SS_ONSTACK) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_sigaltstack), int32(ss), int32(old)))) +} + +const SST_SIZE = 8 + +func Xsigandset(tls *TLS, dest uintptr, left uintptr, right uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v dest=%v left=%v right=%v, (%v:)", tls, dest, left, right, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var d, l, r uintptr + var i uint32 + _, _, _, _ = d, i, l, r + i = uint32(0) + d = dest + l = left + r = right + for { + if !(i < uint32(Uint32FromInt32(Int32FromInt32(_NSIG)/Int32FromInt32(8))/Uint32FromInt64(4))) { + break + } + **(**uint32)(__ccgo_up(d + uintptr(i)*4)) = **(**uint32)(__ccgo_up(l + uintptr(i)*4)) & **(**uint32)(__ccgo_up(r + uintptr(i)*4)) + goto _1 + _1: + ; + i = i + 1 + } + return 0 +} + +func Xsigdelset(tls *TLS, set uintptr, sig int32) (r int32) { + if __ccgo_strace { + trc("tls=%v set=%v sig=%v, (%v:)", tls, set, sig, origin(2)) + defer func() { trc("-> %v", r) }() + } + var s uint32 + _ = s + s = Uint32FromInt32(sig - int32(1)) + if s >= Uint32FromInt32(Int32FromInt32(_NSIG)-Int32FromInt32(1)) || Uint32FromInt32(sig)-uint32(32) < uint32(3) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + **(**uint32)(__ccgo_up(set + uintptr(s/uint32(8)/uint32(4))*4)) &= ^(Uint32FromUint32(1) << (s & (Uint32FromInt32(8)*Uint32FromInt64(4) - Uint32FromInt32(1)))) + return 0 +} + +func Xsigemptyset(tls *TLS, set uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v set=%v, (%v:)", tls, set, origin(2)) + defer func() { trc("-> %v", r) }() + } + **(**uint32)(__ccgo_up(set)) = uint32(0) + if Bool(uint32(4) == uint32(4)) || Bool(int32(_NSIG) > int32(65)) { + **(**uint32)(__ccgo_up(set + 1*4)) = uint32(0) + } + if Bool(uint32(4) == uint32(4)) && Bool(int32(_NSIG) > int32(65)) { + **(**uint32)(__ccgo_up(set + 2*4)) = uint32(0) + **(**uint32)(__ccgo_up(set + 3*4)) = uint32(0) + } + return 0 +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xsigfillset(tls *TLS, set uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v set=%v, (%v:)", tls, set, origin(2)) + defer func() { trc("-> %v", r) }() + } + **(**uint32)(__ccgo_up(set)) = uint32(0x7fffffff) + **(**uint32)(__ccgo_up(set + 1*4)) = uint32(0xfffffffc) + if int32(_NSIG) > int32(65) { + **(**uint32)(__ccgo_up(set + 2*4)) = uint32(0xffffffff) + **(**uint32)(__ccgo_up(set + 3*4)) = uint32(0xffffffff) + } + return 0 +} + +func Xsigisemptyset(tls *TLS, set uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v set=%v, (%v:)", tls, set, origin(2)) + defer func() { trc("-> %v", r) }() + } + var i Tsize_t + _ = i + i = uint32(0) + for { + if !(i < Uint32FromInt32(Int32FromInt32(_NSIG)/Int32FromInt32(8))/Uint32FromInt64(4)) { + break + } + if **(**uint32)(__ccgo_up(set + uintptr(i)*4)) != 0 { + return 0 + } + goto _1 + _1: + ; + i = i + 1 + } + return int32(1) +} + +func Xsigismember(tls *TLS, set uintptr, sig int32) (r int32) { + if __ccgo_strace { + trc("tls=%v set=%v sig=%v, (%v:)", tls, set, sig, origin(2)) + defer func() { trc("-> %v", r) }() + } + var s uint32 + _ = s + s = Uint32FromInt32(sig - int32(1)) + if s >= Uint32FromInt32(Int32FromInt32(_NSIG)-Int32FromInt32(1)) { + return 0 + } + return BoolInt32(!!(**(**uint32)(__ccgo_up(set + uintptr(s/uint32(8)/uint32(4))*4))&(Uint32FromUint32(1)<<(s&(Uint32FromInt32(8)*Uint32FromInt64(4)-Uint32FromInt32(1)))) != 0)) +} + +func Xsigorset(tls *TLS, dest uintptr, left uintptr, right uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v dest=%v left=%v right=%v, (%v:)", tls, dest, left, right, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var d, l, r uintptr + var i uint32 + _, _, _, _ = d, i, l, r + i = uint32(0) + d = dest + l = left + r = right + for { + if !(i < uint32(Uint32FromInt32(Int32FromInt32(_NSIG)/Int32FromInt32(8))/Uint32FromInt64(4))) { + break + } + **(**uint32)(__ccgo_up(d + uintptr(i)*4)) = **(**uint32)(__ccgo_up(l + uintptr(i)*4)) | **(**uint32)(__ccgo_up(r + uintptr(i)*4)) + goto _1 + _1: + ; + i = i + 1 + } + return 0 +} + +func Xsigpending(tls *TLS, set uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v set=%v, (%v:)", tls, set, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_rt_sigpending), int32(set), int32(Int32FromInt32(_NSIG)/Int32FromInt32(8))))) +} + +func Xsigprocmask(tls *TLS, how int32, set uintptr, old uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v how=%v set=%v old=%v, (%v:)", tls, how, set, old, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + r = _pthread_sigmask(tls, how, set, old) + if !(r != 0) { + return r + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = r + return -int32(1) +} + +func Xsigqueue(tls *TLS, pid Tpid_t, sig int32, value Tsigval) (r1 int32) { + if __ccgo_strace { + trc("tls=%v pid=%v sig=%v value=%v, (%v:)", tls, pid, sig, value, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(256) + defer tls.Free(256) + var r int32 + var _ /* set at bp+128 */ Tsigset_t + var _ /* si at bp+0 */ Tsiginfo_t + _ = r + Xmemset(tls, bp, 0, uint32(128)) + (**(**Tsiginfo_t)(__ccgo_up(bp))).Fsi_signo = sig + (**(**Tsiginfo_t)(__ccgo_up(bp))).Fsi_code = -int32(1) + *(*Tsigval)(unsafe.Pointer(bp + 12 + 8)) = value + *(*Tuid_t)(unsafe.Pointer(bp + 12 + 4)) = Xgetuid(tls) + X__block_app_sigs(tls, bp+128) + *(*Tpid_t)(unsafe.Pointer(bp + 12)) = Xgetpid(tls) + r = X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_rt_sigqueueinfo), pid, sig, int32(bp)))) + X__restore_sigs(tls, bp+128) + return r +} + +func X__libc_current_sigrtmax(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Int32FromInt32(_NSIG) - Int32FromInt32(1) +} + +func X__libc_current_sigrtmin(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(35) +} + +type t__jmp_buf = [32]uint64 + +type Tjmp_buf = [1]t__jmp_buf_tag + +type t__jmp_buf_tag = struct { + F__ccgo_align [0]uint32 + F__jb t__jmp_buf + F__fl uint32 + F__ss [32]uint32 + F__ccgo_pad3 [4]byte +} + +type Tsigjmp_buf = [1]t__jmp_buf_tag + +func X__sigsetjmp_tail(tls *TLS, jb uintptr, ret int32) (r int32) { + if __ccgo_strace { + trc("tls=%v jb=%v ret=%v, (%v:)", tls, jb, ret, origin(2)) + defer func() { trc("-> %v", r) }() + } + var p, v1, v2 uintptr + _, _, _ = p, v1, v2 + p = jb + 260 + if ret != 0 { + v1 = p + } else { + v1 = uintptr(0) + } + if ret != 0 { + v2 = uintptr(0) + } else { + v2 = p + } + X__syscall4(tls, int32(SYS_rt_sigprocmask), int32(Int32FromInt32(SIG_SETMASK)), int32(v1), int32(v2), int32(Int32FromInt32(_NSIG)/Int32FromInt32(8))) + return ret +} + +func Xsigsuspend(tls *TLS, mask uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v mask=%v, (%v:)", tls, mask, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(___syscall_cp(tls, int32(SYS_rt_sigsuspend), int32(mask), int32(Int32FromInt32(_NSIG)/Int32FromInt32(8)), 0, 0, 0, 0))) +} + +func _do_sigtimedwait(tls *TLS, mask uintptr, si uintptr, ts uintptr) (r1 int32) { + bp := tls.Alloc(32) + defer tls.Free(32) + var ns, r, v2 int32 + var s Ttime_t + var v1 int64 + var v3 uintptr + var v5 uint64 + _, _, _, _, _, _, _ = ns, r, s, v1, v2, v3, v5 + if ts != 0 { + v1 = (*Ttimespec)(unsafe.Pointer(ts)).Ftv_sec + } else { + v1 = 0 + } + s = v1 + if ts != 0 { + v2 = (*Ttimespec)(unsafe.Pointer(ts)).Ftv_nsec + } else { + v2 = 0 + } + ns = v2 + r = -int32(ENOSYS) + if Bool(false) || !!((Uint64FromInt64(s)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) { + if ts != 0 { + *(*[2]int64)(unsafe.Pointer(bp)) = [2]int64{ + 0: s, + 1: int64(ns), + } + v3 = bp + } else { + v3 = uintptr(0) + } + r = int32(___syscall_cp(tls, int32(SYS_rt_sigtimedwait_time64), int32(mask), int32(si), int32(v3), int32(Int32FromInt32(_NSIG)/Int32FromInt32(8)), 0, 0)) + } + if Bool(false) || r != -int32(ENOSYS) { + return r + } + if ts != 0 { + if !((Uint64FromInt64(s)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) { + v5 = Uint64FromInt64(s) + } else { + v5 = uint64(0x7fffffff) + (0+Uint64FromInt64(s))>>int32(63) + } + *(*[2]int32)(unsafe.Pointer(bp + 16)) = [2]int32{ + 0: int32(Int32FromUint64(v5)), + 1: ns, + } + v3 = bp + 16 + } else { + v3 = uintptr(0) + } + return int32(___syscall_cp(tls, int32(SYS_rt_sigtimedwait), int32(mask), int32(si), int32(v3), int32(Int32FromInt32(_NSIG)/Int32FromInt32(8)), 0, 0)) + return r1 +} + +func Xsigtimedwait(tls *TLS, mask uintptr, si uintptr, timeout uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v mask=%v si=%v timeout=%v, (%v:)", tls, mask, si, timeout, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret int32 + _ = ret + for cond := true; cond; cond = ret == -int32(EINTR) { + ret = _do_sigtimedwait(tls, mask, si, timeout) + } + return X__syscall_ret(tls, Uint32FromInt32(ret)) +} + +func Xsigwait(tls *TLS, mask uintptr, sig uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v mask=%v sig=%v, (%v:)", tls, mask, sig, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(128) + defer tls.Free(128) + var _ /* si at bp+0 */ Tsiginfo_t + if Xsigtimedwait(tls, mask, bp, uintptr(0)) < 0 { + return -int32(1) + } + **(**int32)(__ccgo_up(sig)) = (**(**Tsiginfo_t)(__ccgo_up(bp))).Fsi_signo + return 0 +} + +func Xsigwaitinfo(tls *TLS, mask uintptr, si uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v mask=%v si=%v, (%v:)", tls, mask, si, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xsigtimedwait(tls, mask, si, uintptr(0)) +} + +func X__xmknod(tls *TLS, ver int32, path uintptr, mode Tmode_t, dev uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v ver=%v path=%v mode=%v dev=%v, (%v:)", tls, ver, path, mode, dev, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xmknod(tls, path, mode, **(**Tdev_t)(__ccgo_up(dev))) +} + +func X__xmknodat(tls *TLS, ver int32, fd int32, path uintptr, mode Tmode_t, dev uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v ver=%v fd=%v path=%v mode=%v dev=%v, (%v:)", tls, ver, fd, path, mode, dev, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xmknodat(tls, fd, path, mode, **(**Tdev_t)(__ccgo_up(dev))) +} + +func Xchmod(tls *TLS, path uintptr, mode Tmode_t) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v mode=%v, (%v:)", tls, path, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_chmod), int32(path), Int32FromUint32(mode)))) +} + +func Xfchmod(tls *TLS, fd int32, mode Tmode_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v mode=%v, (%v:)", tls, fd, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var ret int32 + var _ /* buf at bp+0 */ [27]uint8 + _ = ret + ret = int32(X__syscall2(tls, int32(SYS_fchmod), fd, Int32FromUint32(mode))) + if ret != -int32(EBADF) || X__syscall2(tls, int32(SYS_fcntl64), fd, int32(Int32FromInt32(F_GETFD))) < 0 { + return X__syscall_ret(tls, Uint32FromInt32(ret)) + } + X__procfdname(tls, bp, Uint32FromInt32(fd)) + return X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_chmod), int32(bp), Int32FromUint32(mode)))) +} + +func Xfchmodat(tls *TLS, fd int32, path uintptr, mode Tmode_t, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v path=%v mode=%v flag=%v, (%v:)", tls, fd, path, mode, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(192) + defer tls.Free(192) + var fd2, ret, v1 int32 + var _ /* proc at bp+152 */ [27]uint8 + var _ /* st at bp+0 */ Tstat + _, _, _ = fd2, ret, v1 + if !(flag != 0) { + return X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_fchmodat), fd, int32(path), Int32FromUint32(mode)))) + } + ret = int32(X__syscall4(tls, int32(SYS_fchmodat2), fd, int32(path), Int32FromUint32(mode), flag)) + if ret != -int32(ENOSYS) { + return X__syscall_ret(tls, Uint32FromInt32(ret)) + } + if flag != int32(AT_SYMLINK_NOFOLLOW) { + return X__syscall_ret(tls, Uint32FromInt32(-Int32FromInt32(EINVAL))) + } + if Xfstatat(tls, fd, path, bp, flag) != 0 { + return -int32(1) + } + if (**(**Tstat)(__ccgo_up(bp))).Fst_mode&uint32(S_IFMT) == uint32(S_IFLNK) { + return X__syscall_ret(tls, Uint32FromInt32(-Int32FromInt32(EOPNOTSUPP))) + } + v1 = int32(X__syscall3(tls, int32(SYS_openat), fd, int32(path), int32(Int32FromInt32(O_RDONLY)|Int32FromInt32(O_PATH)|Int32FromInt32(O_NOFOLLOW)|Int32FromInt32(O_NOCTTY)|Int32FromInt32(O_CLOEXEC)))) + fd2 = v1 + if v1 < 0 { + if fd2 == -int32(ELOOP) { + return X__syscall_ret(tls, Uint32FromInt32(-Int32FromInt32(EOPNOTSUPP))) + } + return X__syscall_ret(tls, Uint32FromInt32(fd2)) + } + X__procfdname(tls, bp+152, Uint32FromInt32(fd2)) + ret = Xstat(tls, bp+152, bp) + if !(ret != 0) { + if (**(**Tstat)(__ccgo_up(bp))).Fst_mode&uint32(S_IFMT) == uint32(S_IFLNK) { + ret = X__syscall_ret(tls, Uint32FromInt32(-Int32FromInt32(EOPNOTSUPP))) + } else { + ret = X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_fchmodat), int32(-Int32FromInt32(100)), int32(bp+152), Int32FromUint32(mode)))) + } + } + X__syscall1(tls, int32(SYS_close), fd2) + return ret +} + +func X__fstat(tls *TLS, fd int32, st uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v st=%v, (%v:)", tls, fd, st, origin(2)) + defer func() { trc("-> %v", r) }() + } + if fd < 0 { + return X__syscall_ret(tls, Uint32FromInt32(-Int32FromInt32(EBADF))) + } + return X__fstatat(tls, fd, __ccgo_ts, st, int32(AT_EMPTY_PATH)) +} + +func Xfstat(tls *TLS, fd int32, st uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v st=%v, (%v:)", tls, fd, st, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fstat(tls, fd, st) +} + +type Tstatx1 = struct { + F__ccgo_align [0]uint32 + Fstx_mask Tuint32_t + Fstx_blksize Tuint32_t + Fstx_attributes Tuint64_t + Fstx_nlink Tuint32_t + Fstx_uid Tuint32_t + Fstx_gid Tuint32_t + Fstx_mode Tuint16_t + Fpad1 Tuint16_t + Fstx_ino Tuint64_t + Fstx_size Tuint64_t + Fstx_blocks Tuint64_t + Fstx_attributes_mask Tuint64_t + Fstx_atime struct { + F__ccgo_align [0]uint32 + Ftv_sec Tint64_t + Ftv_nsec Tuint32_t + Fpad Tint32_t + } + Fstx_btime struct { + F__ccgo_align [0]uint32 + Ftv_sec Tint64_t + Ftv_nsec Tuint32_t + Fpad Tint32_t + } + Fstx_ctime struct { + F__ccgo_align [0]uint32 + Ftv_sec Tint64_t + Ftv_nsec Tuint32_t + Fpad Tint32_t + } + Fstx_mtime struct { + F__ccgo_align [0]uint32 + Ftv_sec Tint64_t + Ftv_nsec Tuint32_t + Fpad Tint32_t + } + Fstx_rdev_major Tuint32_t + Fstx_rdev_minor Tuint32_t + Fstx_dev_major Tuint32_t + Fstx_dev_minor Tuint32_t + Fspare [14]Tuint64_t +} + +func _fstatat_statx(tls *TLS, fd int32, path uintptr, st uintptr, flag int32) (r int32) { + bp := tls.Alloc(256) + defer tls.Free(256) + var ret int32 + var _ /* stx at bp+0 */ Tstatx1 + _ = ret + flag = flag | int32(AT_NO_AUTOMOUNT) + ret = int32(X__syscall5(tls, int32(SYS_statx), fd, int32(path), flag, int32(Int32FromInt32(0x7ff)), int32(bp))) + if ret != 0 { + return ret + } + **(**Tstat)(__ccgo_up(st)) = Tstat{ + Fst_dev: uint64((**(**Tstatx1)(__ccgo_up(bp))).Fstx_dev_major)&Uint64FromUint64(0xfffff000)<= 0 && !(**(**uint8)(__ccgo_up(path)) != 0) { + ret = int32(X__syscall2(tls, int32(SYS_fstat64), fd, int32(bp))) + if ret == -int32(EBADF) && X__syscall2(tls, int32(SYS_fcntl64), fd, int32(Int32FromInt32(F_GETFD))) >= 0 { + ret = int32(X__syscall4(tls, int32(SYS_fstatat64), fd, int32(path), int32(bp), flag)) + if ret == -int32(EINVAL) { + X__procfdname(tls, bp+104, Uint32FromInt32(fd)) + ret = int32(X__syscall2(tls, int32(SYS_stat64), int32(bp+104), int32(bp))) + } + } + } else { + if (fd == -int32(100) || Int32FromUint8(**(**uint8)(__ccgo_up(path))) == int32('/')) && flag == int32(AT_SYMLINK_NOFOLLOW) { + ret = int32(X__syscall2(tls, int32(SYS_lstat64), int32(path), int32(bp))) + } else { + if (fd == -int32(100) || Int32FromUint8(**(**uint8)(__ccgo_up(path))) == int32('/')) && !(flag != 0) { + ret = int32(X__syscall2(tls, int32(SYS_stat64), int32(path), int32(bp))) + } else { + ret = int32(X__syscall4(tls, int32(SYS_fstatat64), fd, int32(path), int32(bp), flag)) + } + } + } + if ret != 0 { + return ret + } + **(**Tstat)(__ccgo_up(st)) = Tstat{ + Fst_dev: (**(**Tkstat)(__ccgo_up(bp))).Fst_dev, + Fst_mode: (**(**Tkstat)(__ccgo_up(bp))).Fst_mode, + Fst_nlink: (**(**Tkstat)(__ccgo_up(bp))).Fst_nlink, + Fst_uid: (**(**Tkstat)(__ccgo_up(bp))).Fst_uid, + Fst_gid: (**(**Tkstat)(__ccgo_up(bp))).Fst_gid, + Fst_rdev: (**(**Tkstat)(__ccgo_up(bp))).Fst_rdev, + Fst_size: (**(**Tkstat)(__ccgo_up(bp))).Fst_size, + Fst_blksize: (**(**Tkstat)(__ccgo_up(bp))).Fst_blksize, + Fst_blocks: (**(**Tkstat)(__ccgo_up(bp))).Fst_blocks, + F__st_atim32: struct { + Ftv_sec int32 + Ftv_nsec int32 + }{ + Ftv_sec: (**(**Tkstat)(__ccgo_up(bp))).Fst_atime_sec, + Ftv_nsec: (**(**Tkstat)(__ccgo_up(bp))).Fst_atime_nsec, + }, + F__st_mtim32: struct { + Ftv_sec int32 + Ftv_nsec int32 + }{ + Ftv_sec: (**(**Tkstat)(__ccgo_up(bp))).Fst_mtime_sec, + Ftv_nsec: (**(**Tkstat)(__ccgo_up(bp))).Fst_mtime_nsec, + }, + F__st_ctim32: struct { + Ftv_sec int32 + Ftv_nsec int32 + }{ + Ftv_sec: (**(**Tkstat)(__ccgo_up(bp))).Fst_ctime_sec, + Ftv_nsec: (**(**Tkstat)(__ccgo_up(bp))).Fst_ctime_nsec, + }, + Fst_ino: (**(**Tkstat)(__ccgo_up(bp))).Fst_ino, + Fst_atim: Ttimespec{ + Ftv_sec: int64((**(**Tkstat)(__ccgo_up(bp))).Fst_atime_sec), + Ftv_nsec: (**(**Tkstat)(__ccgo_up(bp))).Fst_atime_nsec, + }, + Fst_mtim: Ttimespec{ + Ftv_sec: int64((**(**Tkstat)(__ccgo_up(bp))).Fst_mtime_sec), + Ftv_nsec: (**(**Tkstat)(__ccgo_up(bp))).Fst_mtime_nsec, + }, + Fst_ctim: Ttimespec{ + Ftv_sec: int64((**(**Tkstat)(__ccgo_up(bp))).Fst_ctime_sec), + Ftv_nsec: (**(**Tkstat)(__ccgo_up(bp))).Fst_ctime_nsec, + }, + } + return 0 +} + +func X__fstatat(tls *TLS, fd int32, path uintptr, st uintptr, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v path=%v st=%v flag=%v, (%v:)", tls, fd, path, st, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret int32 + _ = ret + if uint32(4) < uint32(8) { + ret = _fstatat_statx(tls, fd, path, st, flag) + if ret != -int32(ENOSYS) { + return X__syscall_ret(tls, Uint32FromInt32(ret)) + } + } + ret = _fstatat_kstat(tls, fd, path, st, flag) + return X__syscall_ret(tls, Uint32FromInt32(ret)) +} + +func Xfstatat(tls *TLS, fd int32, path uintptr, st uintptr, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v path=%v st=%v flag=%v, (%v:)", tls, fd, path, st, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fstatat(tls, fd, path, st, flag) +} + +func Xfutimens(tls *TLS, fd int32, times uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v times=%v, (%v:)", tls, fd, times, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xutimensat(tls, fd, uintptr(0), times, 0) +} + +func X__futimesat(tls *TLS, dirfd int32, pathname uintptr, times uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v dirfd=%v pathname=%v times=%v, (%v:)", tls, dirfd, pathname, times, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var i int32 + var v2 uintptr + var _ /* ts at bp+0 */ [2]Ttimespec + _, _ = i, v2 + if times != 0 { + i = 0 + for { + if !(i < int32(2)) { + break + } + if Uint64FromInt64((**(**Ttimeval)(__ccgo_up(times + uintptr(i)*16))).Ftv_usec) >= uint64(1000000) { + return X__syscall_ret(tls, Uint32FromInt32(-Int32FromInt32(EINVAL))) + } + (**(**[2]Ttimespec)(__ccgo_up(bp)))[i].Ftv_sec = (**(**Ttimeval)(__ccgo_up(times + uintptr(i)*16))).Ftv_sec + (**(**[2]Ttimespec)(__ccgo_up(bp)))[i].Ftv_nsec = int32((**(**Ttimeval)(__ccgo_up(times + uintptr(i)*16))).Ftv_usec * int64(1000)) + goto _1 + _1: + ; + i = i + 1 + } + } + if times != 0 { + v2 = bp + } else { + v2 = uintptr(0) + } + return Xutimensat(tls, dirfd, pathname, v2, 0) +} + +func Xfutimesat(tls *TLS, dirfd int32, pathname uintptr, times uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v dirfd=%v pathname=%v times=%v, (%v:)", tls, dirfd, pathname, times, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__futimesat(tls, dirfd, pathname, times) +} + +func Xlchmod(tls *TLS, path uintptr, mode Tmode_t) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v mode=%v, (%v:)", tls, path, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfchmodat(tls, -int32(100), path, mode, int32(AT_SYMLINK_NOFOLLOW)) +} + +func Xlstat(tls *TLS, path uintptr, buf uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v buf=%v, (%v:)", tls, path, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfstatat(tls, -int32(100), path, buf, int32(AT_SYMLINK_NOFOLLOW)) +} + +func Xmkdir(tls *TLS, path uintptr, mode Tmode_t) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v mode=%v, (%v:)", tls, path, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_mkdir), int32(path), Int32FromUint32(mode)))) +} + +func Xmkdirat(tls *TLS, fd int32, path uintptr, mode Tmode_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v path=%v mode=%v, (%v:)", tls, fd, path, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_mkdirat), fd, int32(path), Int32FromUint32(mode)))) +} + +func Xmkfifo(tls *TLS, path uintptr, mode Tmode_t) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v mode=%v, (%v:)", tls, path, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xmknod(tls, path, mode|uint32(S_IFIFO), uint64(0)) +} + +func Xmkfifoat(tls *TLS, fd int32, path uintptr, mode Tmode_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v path=%v mode=%v, (%v:)", tls, fd, path, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xmknodat(tls, fd, path, mode|uint32(S_IFIFO), uint64(0)) +} + +func Xmknod(tls *TLS, path uintptr, mode Tmode_t, dev Tdev_t) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v mode=%v dev=%v, (%v:)", tls, path, mode, dev, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_mknod), int32(path), Int32FromUint32(mode), Int32FromUint64(dev)))) +} + +func Xmknodat(tls *TLS, fd int32, path uintptr, mode Tmode_t, dev Tdev_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v path=%v mode=%v dev=%v, (%v:)", tls, fd, path, mode, dev, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall4(tls, int32(SYS_mknodat), fd, int32(path), Int32FromUint32(mode), Int32FromUint64(dev)))) +} + +func Xstat(tls *TLS, path uintptr, buf uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v buf=%v, (%v:)", tls, path, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfstatat(tls, -int32(100), path, buf, 0) +} + +func ___statfs(tls *TLS, path uintptr, buf uintptr) (r int32) { + **(**Tstatfs)(__ccgo_up(buf)) = Tstatfs{} + return X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_statfs64), int32(path), Int32FromUint32(Uint32FromInt64(88)), int32(buf)))) +} + +func Xfstatfs(tls *TLS, fd int32, buf uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v, (%v:)", tls, fd, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + **(**Tstatfs)(__ccgo_up(buf)) = Tstatfs{} + return X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_fstatfs64), fd, Int32FromUint32(Uint32FromInt64(88)), int32(buf)))) +} + +func _fixup(tls *TLS, out uintptr, in uintptr) { + var v1 uint32 + _ = v1 + **(**Tstatvfs)(__ccgo_up(out)) = Tstatvfs{} + (*Tstatvfs)(unsafe.Pointer(out)).Ff_bsize = (*Tstatfs)(unsafe.Pointer(in)).Ff_bsize + if (*Tstatfs)(unsafe.Pointer(in)).Ff_frsize != 0 { + v1 = (*Tstatfs)(unsafe.Pointer(in)).Ff_frsize + } else { + v1 = (*Tstatfs)(unsafe.Pointer(in)).Ff_bsize + } + (*Tstatvfs)(unsafe.Pointer(out)).Ff_frsize = v1 + (*Tstatvfs)(unsafe.Pointer(out)).Ff_blocks = (*Tstatfs)(unsafe.Pointer(in)).Ff_blocks + (*Tstatvfs)(unsafe.Pointer(out)).Ff_bfree = (*Tstatfs)(unsafe.Pointer(in)).Ff_bfree + (*Tstatvfs)(unsafe.Pointer(out)).Ff_bavail = (*Tstatfs)(unsafe.Pointer(in)).Ff_bavail + (*Tstatvfs)(unsafe.Pointer(out)).Ff_files = (*Tstatfs)(unsafe.Pointer(in)).Ff_files + (*Tstatvfs)(unsafe.Pointer(out)).Ff_ffree = (*Tstatfs)(unsafe.Pointer(in)).Ff_ffree + (*Tstatvfs)(unsafe.Pointer(out)).Ff_favail = (*Tstatfs)(unsafe.Pointer(in)).Ff_ffree + (*Tstatvfs)(unsafe.Pointer(out)).Ff_fsid = Uint32FromInt32(**(**int32)(__ccgo_up(in + 48))) + (*Tstatvfs)(unsafe.Pointer(out)).Ff_flag = (*Tstatfs)(unsafe.Pointer(in)).Ff_flags + (*Tstatvfs)(unsafe.Pointer(out)).Ff_namemax = (*Tstatfs)(unsafe.Pointer(in)).Ff_namelen + (*Tstatvfs)(unsafe.Pointer(out)).Ff_type = (*Tstatfs)(unsafe.Pointer(in)).Ff_type +} + +func Xstatvfs(tls *TLS, path uintptr, buf uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v buf=%v, (%v:)", tls, path, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(96) + defer tls.Free(96) + var _ /* kbuf at bp+0 */ Tstatfs + if ___statfs(tls, path, bp) < 0 { + return -int32(1) + } + _fixup(tls, buf, bp) + return 0 +} + +func Xfstatvfs(tls *TLS, fd int32, buf uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v, (%v:)", tls, fd, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(96) + defer tls.Free(96) + var _ /* kbuf at bp+0 */ Tstatfs + if Xfstatfs(tls, fd, bp) < 0 { + return -int32(1) + } + _fixup(tls, buf, bp) + return 0 +} + +func Xumask(tls *TLS, mode Tmode_t) (r Tmode_t) { + if __ccgo_strace { + trc("tls=%v mode=%v, (%v:)", tls, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Uint32FromInt32(X__syscall_ret(tls, Uint32FromInt32(X__syscall1(tls, int32(SYS_umask), Int32FromUint32(mode))))) +} + +func Xutimensat(tls *TLS, fd int32, path uintptr, times uintptr, flags int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v path=%v times=%v flags=%v, (%v:)", tls, fd, path, times, flags, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var i, ns0, ns1, r int32 + var s0, s1 Ttime_t + var tv, v1 uintptr + var _ /* tmp at bp+48 */ [4]int32 + _, _, _, _, _, _, _, _ = i, ns0, ns1, r, s0, s1, tv, v1 + if times != 0 && (**(**Ttimespec)(__ccgo_up(times))).Ftv_nsec == int32(UTIME_NOW) && (**(**Ttimespec)(__ccgo_up(times + 1*16))).Ftv_nsec == int32(UTIME_NOW) { + times = uintptr(0) + } + r = -int32(ENOSYS) + s0 = 0 + s1 = 0 + ns0 = 0 + ns1 = 0 + if times != 0 { + ns0 = (**(**Ttimespec)(__ccgo_up(times))).Ftv_nsec + ns1 = (**(**Ttimespec)(__ccgo_up(times + 1*16))).Ftv_nsec + if !(ns0 == int32(UTIME_NOW) || ns0 == int32(UTIME_OMIT)) { + s0 = (**(**Ttimespec)(__ccgo_up(times))).Ftv_sec + } + if !(ns1 == int32(UTIME_NOW) || ns1 == int32(UTIME_OMIT)) { + s1 = (**(**Ttimespec)(__ccgo_up(times + 1*16))).Ftv_sec + } + } + if Bool(false) || !!((Uint64FromInt64(s0)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) || !!((Uint64FromInt64(s1)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) { + if times != 0 { + *(*[4]int64)(unsafe.Pointer(bp)) = [4]int64{ + 0: s0, + 1: int64(ns0), + 2: s1, + 3: int64(ns1), + } + v1 = bp + } else { + v1 = uintptr(0) + } + r = int32(X__syscall4(tls, int32(SYS_utimensat_time64), fd, int32(path), int32(v1), flags)) + } + if Bool(false) || r != -int32(ENOSYS) { + return X__syscall_ret(tls, Uint32FromInt32(r)) + } + if !!((Uint64FromInt64(s0)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) || !!((Uint64FromInt64(s1)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) { + return X__syscall_ret(tls, Uint32FromInt32(-Int32FromInt32(EOPNOTSUPP))) + } + if times != 0 { + *(*[4]int32)(unsafe.Pointer(bp + 32)) = [4]int32{ + 0: int32(s0), + 1: ns0, + 2: int32(s1), + 3: ns1, + } + v1 = bp + 32 + } else { + v1 = uintptr(0) + } + r = int32(X__syscall4(tls, int32(SYS_utimensat), fd, int32(path), int32(v1), flags)) + if r != -int32(ENOSYS) || flags != 0 { + return X__syscall_ret(tls, Uint32FromInt32(r)) + } + tv = uintptr(0) + if times != 0 { + tv = bp + 48 + i = 0 + for { + if !(i < int32(2)) { + break + } + if Uint64FromInt32((**(**Ttimespec)(__ccgo_up(times + uintptr(i)*16))).Ftv_nsec) >= uint64(1000000000) { + if (**(**Ttimespec)(__ccgo_up(times + uintptr(i)*16))).Ftv_nsec == int32(UTIME_NOW) || (**(**Ttimespec)(__ccgo_up(times + uintptr(i)*16))).Ftv_nsec == int32(UTIME_OMIT) { + return X__syscall_ret(tls, Uint32FromInt32(-Int32FromInt32(ENOSYS))) + } + return X__syscall_ret(tls, Uint32FromInt32(-Int32FromInt32(EINVAL))) + } + (**(**[4]int32)(__ccgo_up(bp + 48)))[int32(2)*i+0] = int32((**(**Ttimespec)(__ccgo_up(times + uintptr(i)*16))).Ftv_sec) + (**(**[4]int32)(__ccgo_up(bp + 48)))[int32(2)*i+int32(1)] = (**(**Ttimespec)(__ccgo_up(times + uintptr(i)*16))).Ftv_nsec / int32(1000) + goto _3 + _3: + ; + i = i + 1 + } + } + r = int32(X__syscall3(tls, int32(SYS_futimesat), fd, int32(path), int32(tv))) + if r != -int32(ENOSYS) || fd != -int32(100) { + return X__syscall_ret(tls, Uint32FromInt32(r)) + } + r = int32(X__syscall2(tls, int32(SYS_utimes), int32(path), int32(tv))) + return X__syscall_ret(tls, Uint32FromInt32(r)) +} + +func X__fclose_ca(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return (*(*func(*TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fclose1})))(tls, f) +} + +func X__fdopen(tls *TLS, fd int32, mode uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v fd=%v mode=%v, (%v:)", tls, fd, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var f, v1 uintptr + var flags, v2 int32 + var _ /* wsz at bp+0 */ Twinsize + _, _, _, _ = f, flags, v1, v2 + /* Check for valid initial mode character */ + if !(Xstrchr(tls, __ccgo_ts+1402, Int32FromUint8(**(**uint8)(__ccgo_up(mode)))) != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(0) + } + /* Allocate FILE+buffer or fail */ + v1 = Xmalloc(tls, Uint32FromInt64(144)+Uint32FromInt32(UNGET)+Uint32FromInt32(BUFSIZ)) + f = v1 + if !(v1 != 0) { + return uintptr(0) + } + /* Zero-fill only the struct, not the buffer */ + Xmemset(tls, f, 0, uint32(144)) + /* Impose mode restrictions */ + if !(Xstrchr(tls, mode, int32('+')) != 0) { + if Int32FromUint8(**(**uint8)(__ccgo_up(mode))) == int32('r') { + v2 = int32(F_NOWR) + } else { + v2 = int32(F_NORD) + } + (*TFILE)(unsafe.Pointer(f)).Fflags = Uint32FromInt32(v2) + } + /* Apply close-on-exec flag */ + if Xstrchr(tls, mode, int32('e')) != 0 { + X__syscall3(tls, int32(SYS_fcntl64), fd, int32(Int32FromInt32(F_SETFD)), int32(Int32FromInt32(FD_CLOEXEC))) + } + /* Set append mode on fd if opened for append */ + if Int32FromUint8(**(**uint8)(__ccgo_up(mode))) == int32('a') { + flags = int32(X__syscall2(tls, int32(SYS_fcntl64), fd, int32(Int32FromInt32(F_GETFL)))) + if !(flags&Int32FromInt32(O_APPEND) != 0) { + X__syscall3(tls, int32(SYS_fcntl64), fd, int32(Int32FromInt32(F_SETFL)), int32(flags|Int32FromInt32(O_APPEND))) + } + **(**uint32)(__ccgo_up(f)) |= uint32(F_APP) + } + (*TFILE)(unsafe.Pointer(f)).Ffd = fd + (*TFILE)(unsafe.Pointer(f)).Fbuf = f + uintptr(144) + uintptr(UNGET) + (*TFILE)(unsafe.Pointer(f)).Fbuf_size = uint32(BUFSIZ) + /* Activate line buffered mode for terminals */ + (*TFILE)(unsafe.Pointer(f)).Flbf = -int32(1) + if !((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_NOWR) != 0) && !(X__syscall3(tls, int32(SYS_ioctl), fd, int32(Int32FromInt32(TIOCGWINSZ)), int32(bp)) != 0) { + (*TFILE)(unsafe.Pointer(f)).Flbf = int32('\n') + } + /* Initialize op ptrs. No problem if some are unneeded. */ + (*TFILE)(unsafe.Pointer(f)).Fread = __ccgo_fp(X__stdio_read) + (*TFILE)(unsafe.Pointer(f)).Fwrite = __ccgo_fp(X__stdio_write) + (*TFILE)(unsafe.Pointer(f)).Fseek = __ccgo_fp(X__stdio_seek) + (*TFILE)(unsafe.Pointer(f)).Fclose1 = __ccgo_fp(X__stdio_close) + if !(X__libc.Fthreaded != 0) { + AtomicStorePInt32(f+76, -int32(1)) + } + /* Add new FILE to open file list */ + return X__ofl_add(tls, f) +} + +func Xfdopen(tls *TLS, fd int32, mode uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v fd=%v mode=%v, (%v:)", tls, fd, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fdopen(tls, fd, mode) +} + +func X__fmodeflags(tls *TLS, mode uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v mode=%v, (%v:)", tls, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + var flags int32 + _ = flags + if Xstrchr(tls, mode, int32('+')) != 0 { + flags = int32(O_RDWR) + } else { + if Int32FromUint8(**(**uint8)(__ccgo_up(mode))) == int32('r') { + flags = O_RDONLY + } else { + flags = int32(O_WRONLY) + } + } + if Xstrchr(tls, mode, int32('x')) != 0 { + flags = flags | int32(O_EXCL) + } + if Xstrchr(tls, mode, int32('e')) != 0 { + flags = flags | int32(O_CLOEXEC) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(mode))) != int32('r') { + flags = flags | int32(O_CREAT) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(mode))) == int32('w') { + flags = flags | int32(O_TRUNC) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(mode))) == int32('a') { + flags = flags | int32(O_APPEND) + } + return flags +} + +func X__fopen_rb_ca(tls *TLS, filename uintptr, f uintptr, buf uintptr, len1 Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v filename=%v f=%v buf=%v len1=%v, (%v:)", tls, filename, f, buf, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + Xmemset(tls, f, 0, uint32(144)) + (*TFILE)(unsafe.Pointer(f)).Ffd = X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_open), int32(filename), int32(Int32FromInt32(O_RDONLY)|Int32FromInt32(O_CLOEXEC)|Int32FromInt32(O_LARGEFILE))))) + if (*TFILE)(unsafe.Pointer(f)).Ffd < 0 { + return uintptr(0) + } + X__syscall3(tls, int32(SYS_fcntl64), (*TFILE)(unsafe.Pointer(f)).Ffd, int32(Int32FromInt32(F_SETFD)), int32(Int32FromInt32(FD_CLOEXEC))) + (*TFILE)(unsafe.Pointer(f)).Fflags = Uint32FromInt32(Int32FromInt32(F_NOWR) | Int32FromInt32(F_PERM)) + (*TFILE)(unsafe.Pointer(f)).Fbuf = buf + uintptr(UNGET) + (*TFILE)(unsafe.Pointer(f)).Fbuf_size = len1 - uint32(UNGET) + (*TFILE)(unsafe.Pointer(f)).Fread = __ccgo_fp(X__stdio_read) + (*TFILE)(unsafe.Pointer(f)).Fseek = __ccgo_fp(X__stdio_seek) + (*TFILE)(unsafe.Pointer(f)).Fclose1 = __ccgo_fp(X__stdio_close) + AtomicStorePInt32(f+76, -int32(1)) + return f +} + +func X__overflow(tls *TLS, f uintptr, _c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v _c=%v, (%v:)", tls, f, _c, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uint8 + var v2, v3 uintptr + var _ /* c at bp+0 */ uint8 + _, _, _ = v1, v2, v3 + **(**uint8)(__ccgo_up(bp)) = Uint8FromInt32(_c) + if !((*TFILE)(unsafe.Pointer(f)).Fwend != 0) && X__towrite(tls, f) != 0 { + return -int32(1) + } + if (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwend && Int32FromUint8(**(**uint8)(__ccgo_up(bp))) != (*TFILE)(unsafe.Pointer(f)).Flbf { + v1 = **(**uint8)(__ccgo_up(bp)) + v3 = f + 20 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + **(**uint8)(__ccgo_up(v2)) = v1 + return Int32FromUint8(v1) + } + if (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tsize_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fwrite})))(tls, f, bp, uint32(1)) != uint32(1) { + return -int32(1) + } + return Int32FromUint8(**(**uint8)(__ccgo_up(bp))) +} + +func _dummy9(tls *TLS, fd int32) (r int32) { + return fd +} + +func X__stdio_close(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall1(tls, int32(SYS_close), _dummy9(tls, (*TFILE)(unsafe.Pointer(f)).Ffd)))) +} + +var _dummy_file = uintptr(0) + +func _close_file(tls *TLS, f uintptr) { + if !(f != 0) { + return + } + if AtomicLoadPInt32(f+76) >= 0 { + ___lockfile(tls, f) + } + if (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwbase { + (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tsize_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fwrite})))(tls, f, uintptr(0), uint32(0)) + } + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + (*(*func(*TLS, uintptr, Toff_t, int32) Toff_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fseek})))(tls, f, int64(int32((*TFILE)(unsafe.Pointer(f)).Frpos)-int32((*TFILE)(unsafe.Pointer(f)).Frend)), int32(1)) + } +} + +func X__stdio_exit(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + var f uintptr + _ = f + f = **(**uintptr)(__ccgo_up(X__ofl_lock(tls))) + for { + if !(f != 0) { + break + } + _close_file(tls, f) + goto _1 + _1: + ; + f = (*TFILE)(unsafe.Pointer(f)).Fnext + } + _close_file(tls, AtomicLoadPUintptr(uintptr(unsafe.Pointer(&X__stdin_used)))) + _close_file(tls, AtomicLoadPUintptr(uintptr(unsafe.Pointer(&X__stdout_used)))) + _close_file(tls, AtomicLoadPUintptr(uintptr(unsafe.Pointer(&X__stderr_used)))) +} + +func X__stdio_exit_needed(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + X__stdio_exit(tls) +} + +func X__stdio_read(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v f=%v buf=%v len1=%v, (%v:)", tls, f, buf, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var cnt Tssize_t + var v1 int32 + var v3, v4 uintptr + var _ /* iov at bp+0 */ [2]Tiovec + _, _, _, _ = cnt, v1, v3, v4 + **(**[2]Tiovec)(__ccgo_up(bp)) = [2]Tiovec{ + 0: { + Fiov_base: buf, + Fiov_len: len1 - BoolUint32(!!((*TFILE)(unsafe.Pointer(f)).Fbuf_size != 0)), + }, + 1: { + Fiov_base: (*TFILE)(unsafe.Pointer(f)).Fbuf, + Fiov_len: (*TFILE)(unsafe.Pointer(f)).Fbuf_size, + }, + } + if (**(**[2]Tiovec)(__ccgo_up(bp)))[0].Fiov_len != 0 { + v1 = X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_readv), (*TFILE)(unsafe.Pointer(f)).Ffd, int32(bp), int32(Int32FromInt32(2))))) + } else { + v1 = X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_read), (*TFILE)(unsafe.Pointer(f)).Ffd, int32((**(**[2]Tiovec)(__ccgo_up(bp)))[int32(1)].Fiov_base), Int32FromUint32((**(**[2]Tiovec)(__ccgo_up(bp)))[int32(1)].Fiov_len)))) + } + cnt = v1 + if cnt <= 0 { + if cnt != 0 { + v1 = int32(F_ERR) + } else { + v1 = int32(F_EOF) + } + **(**uint32)(__ccgo_up(f)) |= Uint32FromInt32(v1) + return uint32(0) + } + if Uint32FromInt32(cnt) <= (**(**[2]Tiovec)(__ccgo_up(bp)))[0].Fiov_len { + return Uint32FromInt32(cnt) + } + cnt = Int32FromUint32(uint32(cnt) - (**(**[2]Tiovec)(__ccgo_up(bp)))[0].Fiov_len) + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Frend = (*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr(cnt) + if (*TFILE)(unsafe.Pointer(f)).Fbuf_size != 0 { + v4 = f + 4 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + **(**uint8)(__ccgo_up(buf + uintptr(len1-uint32(1)))) = **(**uint8)(__ccgo_up(v3)) + } + return len1 +} + +func X__stdio_seek(tls *TLS, f uintptr, off Toff_t, whence int32) (r Toff_t) { + if __ccgo_strace { + trc("tls=%v f=%v off=%v whence=%v, (%v:)", tls, f, off, whence, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lseek(tls, (*TFILE)(unsafe.Pointer(f)).Ffd, off, whence) +} + +func X__stdio_write(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v f=%v buf=%v len1=%v, (%v:)", tls, f, buf, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var cnt Tssize_t + var iov, v2, v3 uintptr + var iovcnt int32 + var rem Tsize_t + var v5 uint32 + var _ /* iovs at bp+0 */ [2]Tiovec + _, _, _, _, _, _, _ = cnt, iov, iovcnt, rem, v2, v3, v5 + **(**[2]Tiovec)(__ccgo_up(bp)) = [2]Tiovec{ + 0: { + Fiov_base: (*TFILE)(unsafe.Pointer(f)).Fwbase, + Fiov_len: Uint32FromInt32(int32((*TFILE)(unsafe.Pointer(f)).Fwpos) - int32((*TFILE)(unsafe.Pointer(f)).Fwbase)), + }, + 1: { + Fiov_base: buf, + Fiov_len: len1, + }, + } + iov = bp + rem = (**(**Tiovec)(__ccgo_up(iov))).Fiov_len + (**(**Tiovec)(__ccgo_up(iov + 1*8))).Fiov_len + iovcnt = int32(2) + for { + cnt = X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_writev), (*TFILE)(unsafe.Pointer(f)).Ffd, int32(iov), iovcnt))) + if Uint32FromInt32(cnt) == rem { + (*TFILE)(unsafe.Pointer(f)).Fwend = (*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr((*TFILE)(unsafe.Pointer(f)).Fbuf_size) + v2 = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Fwbase = v2 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v2 + return len1 + } + if cnt < 0 { + v3 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Fwend = v3 + v2 = v3 + (*TFILE)(unsafe.Pointer(f)).Fwbase = v2 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v2 + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) + if iovcnt == int32(2) { + v5 = uint32(0) + } else { + v5 = len1 - (**(**Tiovec)(__ccgo_up(iov))).Fiov_len + } + return v5 + } + rem = rem - Uint32FromInt32(cnt) + if Uint32FromInt32(cnt) > (**(**Tiovec)(__ccgo_up(iov))).Fiov_len { + cnt = Int32FromUint32(uint32(cnt) - (**(**Tiovec)(__ccgo_up(iov))).Fiov_len) + iov += 8 + iovcnt = iovcnt - 1 + } + (**(**Tiovec)(__ccgo_up(iov))).Fiov_base = (**(**Tiovec)(__ccgo_up(iov))).Fiov_base + uintptr(cnt) + (**(**Tiovec)(__ccgo_up(iov))).Fiov_len -= Uint32FromInt32(cnt) + goto _1 + _1: + } + return r +} + +func X__stdout_write(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v f=%v buf=%v len1=%v, (%v:)", tls, f, buf, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* wsz at bp+0 */ Twinsize + (*TFILE)(unsafe.Pointer(f)).Fwrite = __ccgo_fp(X__stdio_write) + if !((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_SVB) != 0) && X__syscall3(tls, int32(SYS_ioctl), (*TFILE)(unsafe.Pointer(f)).Ffd, int32(Int32FromInt32(TIOCGWINSZ)), int32(bp)) != 0 { + (*TFILE)(unsafe.Pointer(f)).Flbf = -int32(1) + } + return X__stdio_write(tls, f, buf, len1) +} + +func X__toread(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1, v2 uintptr + var v4 int32 + _, _, _ = v1, v2, v4 + **(**int32)(__ccgo_up(f + 72)) |= (*TFILE)(unsafe.Pointer(f)).Fmode - int32(1) + if (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwbase { + (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tsize_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fwrite})))(tls, f, uintptr(0), uint32(0)) + } + v2 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Fwend = v2 + v1 = v2 + (*TFILE)(unsafe.Pointer(f)).Fwbase = v1 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v1 + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_NORD) != 0 { + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) + return -int32(1) + } + v1 = (*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr((*TFILE)(unsafe.Pointer(f)).Fbuf_size) + (*TFILE)(unsafe.Pointer(f)).Frend = v1 + (*TFILE)(unsafe.Pointer(f)).Frpos = v1 + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_EOF) != 0 { + v4 = -int32(1) + } else { + v4 = 0 + } + return v4 +} + +func X__toread_needs_stdio_exit(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + X__stdio_exit_needed(tls) +} + +func X__towrite(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 uintptr + _ = v1 + **(**int32)(__ccgo_up(f + 72)) |= (*TFILE)(unsafe.Pointer(f)).Fmode - int32(1) + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_NOWR) != 0 { + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) + return -int32(1) + } + /* Clear read buffer (easier than summoning nasal demons) */ + v1 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Frend = v1 + (*TFILE)(unsafe.Pointer(f)).Frpos = v1 + /* Activate write through the buffer. */ + v1 = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Fwbase = v1 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v1 + (*TFILE)(unsafe.Pointer(f)).Fwend = (*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr((*TFILE)(unsafe.Pointer(f)).Fbuf_size) + return 0 +} + +func X__towrite_needs_stdio_exit(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + X__stdio_exit_needed(tls) +} + +/* This function assumes it will never be called if there is already + * data buffered for reading. */ + +func X__uflow(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* c at bp+0 */ uint8 + if !(X__toread(tls, f) != 0) && (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tsize_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fread})))(tls, f, bp, uint32(1)) == uint32(1) { + return Int32FromUint8(**(**uint8)(__ccgo_up(bp))) + } + return -int32(1) +} + +func Xasprintf(tls *TLS, s uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v va=%v, (%v:)", tls, s, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvasprintf(tls, s, fmt, ap) + _ = ap + return ret +} + +func Xclearerr(tls *TLS, f uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } + var __need_unlock, v1 int32 + _, _ = __need_unlock, v1 + if AtomicLoadPInt32(f+76) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + **(**uint32)(__ccgo_up(f)) &= Uint32FromInt32(^(Int32FromInt32(F_EOF) | Int32FromInt32(F_ERR))) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } +} + +func Xclearerr_unlocked(tls *TLS, f uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } + Xclearerr(tls, f) +} + +func Xdprintf(tls *TLS, fd int32, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v fmt=%v va=%v, (%v:)", tls, fd, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvdprintf(tls, fd, fmt, ap) + _ = ap + return ret +} + +const FSETLOCKING_BYCALLER = 2 +const FSETLOCKING_INTERNAL = 1 +const FSETLOCKING_QUERY = 0 + +func X_flushlbf(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + Xfflush(tls, uintptr(0)) +} + +func X__fsetlocking(tls *TLS, f uintptr, type1 int32) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v type1=%v, (%v:)", tls, f, type1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return 0 +} + +func X__fwriting(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32((*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_NORD) != 0 || (*TFILE)(unsafe.Pointer(f)).Fwend != 0) +} + +func X__freading(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32((*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_NOWR) != 0 || (*TFILE)(unsafe.Pointer(f)).Frend != 0) +} + +func X__freadable(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(!((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_NORD) != 0)) +} + +func X__fwritable(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(!((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_NOWR) != 0)) +} + +func X__flbf(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32((*TFILE)(unsafe.Pointer(f)).Flbf >= 0) +} + +func X__fbufsize(tls *TLS, f uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return (*TFILE)(unsafe.Pointer(f)).Fbuf_size +} + +func X__fpending(tls *TLS, f uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + _ = v1 + if (*TFILE)(unsafe.Pointer(f)).Fwend != 0 { + v1 = int32((*TFILE)(unsafe.Pointer(f)).Fwpos) - int32((*TFILE)(unsafe.Pointer(f)).Fwbase) + } else { + v1 = 0 + } + return Uint32FromInt32(v1) +} + +func X__fpurge(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1, v2 uintptr + _, _ = v1, v2 + if !(f != 0) { // libbsd fpurge test fails w/o this. + return int32(1) + } + v2 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Fwend = v2 + v1 = v2 + (*TFILE)(unsafe.Pointer(f)).Fwbase = v1 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v1 + v1 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Frend = v1 + (*TFILE)(unsafe.Pointer(f)).Frpos = v1 + return 0 +} + +func Xfpurge(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fpurge(tls, f) +} + +func X__freadahead(tls *TLS, f uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + _ = v1 + if (*TFILE)(unsafe.Pointer(f)).Frend != 0 { + v1 = int32((*TFILE)(unsafe.Pointer(f)).Frend) - int32((*TFILE)(unsafe.Pointer(f)).Frpos) + } else { + v1 = 0 + } + return Uint32FromInt32(v1) +} + +func X__freadptr(tls *TLS, f uintptr, sizep uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v sizep=%v, (%v:)", tls, f, sizep, origin(2)) + defer func() { trc("-> %v", r) }() + } + if (*TFILE)(unsafe.Pointer(f)).Frpos == (*TFILE)(unsafe.Pointer(f)).Frend { + return uintptr(0) + } + **(**Tsize_t)(__ccgo_up(sizep)) = Uint32FromInt32(int32((*TFILE)(unsafe.Pointer(f)).Frend) - int32((*TFILE)(unsafe.Pointer(f)).Frpos)) + return (*TFILE)(unsafe.Pointer(f)).Frpos +} + +func X__freadptrinc(tls *TLS, f uintptr, inc Tsize_t) { + if __ccgo_strace { + trc("tls=%v f=%v inc=%v, (%v:)", tls, f, inc, origin(2)) + } + **(**uintptr)(__ccgo_up(f + 4)) += uintptr(inc) +} + +func X__fseterr(tls *TLS, f uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) +} + +func _dummy10(tls *TLS, f uintptr) { +} + +func Xfclose(tls *TLS, f uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var __need_unlock, r, v1 int32 + var head uintptr + _, _, _, _ = __need_unlock, head, r, v1 + if AtomicLoadPInt32(f+76) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + r = Xfflush(tls, f) + r = r | (*(*func(*TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fclose1})))(tls, f) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + /* Past this point, f is closed and any further explict access + * to it is undefined. However, it still exists as an entry in + * the open file list and possibly in the thread's locked files + * list, if it was closed while explicitly locked. Functions + * which process these lists must tolerate dead FILE objects + * (which necessarily have inactive buffer pointers) without + * producing any side effects. */ + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_PERM) != 0 { + return r + } + X__unlist_locked_file(tls, f) + head = X__ofl_lock(tls) + if (*TFILE)(unsafe.Pointer(f)).Fprev != 0 { + (*TFILE)(unsafe.Pointer((*TFILE)(unsafe.Pointer(f)).Fprev)).Fnext = (*TFILE)(unsafe.Pointer(f)).Fnext + } + if (*TFILE)(unsafe.Pointer(f)).Fnext != 0 { + (*TFILE)(unsafe.Pointer((*TFILE)(unsafe.Pointer(f)).Fnext)).Fprev = (*TFILE)(unsafe.Pointer(f)).Fprev + } + if **(**uintptr)(__ccgo_up(head)) == f { + **(**uintptr)(__ccgo_up(head)) = (*TFILE)(unsafe.Pointer(f)).Fnext + } + X__ofl_unlock(tls) + Xfree(tls, (*TFILE)(unsafe.Pointer(f)).Fgetln_buf) + Xfree(tls, f) + return r +} + +func Xfeof(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, ret, v1 int32 + _, _, _ = __need_unlock, ret, v1 + if AtomicLoadPInt32(f+76) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + ret = BoolInt32(!!((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_EOF) != 0)) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return ret +} + +func X_IO_feof_unlocked(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfeof(tls, f) +} + +func Xfeof_unlocked(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfeof(tls, f) +} + +func Xferror(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, ret, v1 int32 + _, _, _ = __need_unlock, ret, v1 + if AtomicLoadPInt32(f+76) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + ret = BoolInt32(!!((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_ERR) != 0)) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return ret +} + +func X_IO_ferror_unlocked(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xferror(tls, f) +} + +func Xferror_unlocked(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xferror(tls, f) +} + +// C documentation +// +// /* stdout.c will override this if linked */ +var _dummy11 = uintptr(0) + +func Xfflush(tls *TLS, f uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var __need_unlock, __need_unlock1, r, v2 int32 + var v4, v5 uintptr + _, _, _, _, _, _ = __need_unlock, __need_unlock1, r, v2, v4, v5 + if !(f != 0) { + r = 0 + if AtomicLoadPUintptr(uintptr(unsafe.Pointer(&X__stdout_used))) != 0 { + r = r | Xfflush(tls, AtomicLoadPUintptr(uintptr(unsafe.Pointer(&X__stdout_used)))) + } + if AtomicLoadPUintptr(uintptr(unsafe.Pointer(&X__stderr_used))) != 0 { + r = r | Xfflush(tls, AtomicLoadPUintptr(uintptr(unsafe.Pointer(&X__stderr_used)))) + } + f = **(**uintptr)(__ccgo_up(X__ofl_lock(tls))) + for { + if !(f != 0) { + break + } + if AtomicLoadPInt32(f+76) >= 0 { + v2 = ___lockfile(tls, f) + } else { + v2 = 0 + } + __need_unlock = v2 + if (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwbase { + r = r | Xfflush(tls, f) + } + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + goto _1 + _1: + ; + f = (*TFILE)(unsafe.Pointer(f)).Fnext + } + X__ofl_unlock(tls) + return r + } + if AtomicLoadPInt32(f+76) >= 0 { + v2 = ___lockfile(tls, f) + } else { + v2 = 0 + } + __need_unlock1 = v2 + /* If writing, flush output */ + if (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwbase { + (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tsize_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fwrite})))(tls, f, uintptr(0), uint32(0)) + if !((*TFILE)(unsafe.Pointer(f)).Fwpos != 0) { + if __need_unlock1 != 0 { + ___unlockfile(tls, f) + } + return -int32(1) + } + } + /* If reading, sync position, per POSIX */ + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + (*(*func(*TLS, uintptr, Toff_t, int32) Toff_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fseek})))(tls, f, int64(int32((*TFILE)(unsafe.Pointer(f)).Frpos)-int32((*TFILE)(unsafe.Pointer(f)).Frend)), int32(1)) + } + /* Clear read and write modes */ + v5 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Fwend = v5 + v4 = v5 + (*TFILE)(unsafe.Pointer(f)).Fwbase = v4 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v4 + v4 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Frend = v4 + (*TFILE)(unsafe.Pointer(f)).Frpos = v4 + if __need_unlock1 != 0 { + ___unlockfile(tls, f) + } + return 0 +} + +func Xfflush_unlocked(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfflush(tls, f) +} + +func _locking_getc(tls *TLS, f uintptr) (r int32) { + var c, old, old1, v11, v2, v4, v8 int32 + var v1, v5, v6, v7 uintptr + _, _, _, _, _, _, _, _, _, _, _ = c, old, old1, v1, v11, v2, v4, v5, v6, v7, v8 + v1 = f + 76 + _a_barrier(tls) + for cond := true; cond; cond = old == 0 && !(_a_sc(tls, v1, Int32FromInt32(MAYBE_WAITERS)-Int32FromInt32(1)) != 0) { + old = _a_ll(tls, v1) + } + _a_barrier(tls) + v2 = old + goto _3 +_3: + if v2 != 0 { + ___lockfile(tls, f) + } + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + v5 = f + 4 + v1 = *(*uintptr)(unsafe.Pointer(v5)) + *(*uintptr)(unsafe.Pointer(v5)) = *(*uintptr)(unsafe.Pointer(v5)) + 1 + v2 = Int32FromUint8(**(**uint8)(__ccgo_up(v1))) + } else { + v2 = X__uflow(tls, f) + } + c = v2 + v6 = f + 76 + _a_barrier(tls) + for cond := true; cond; cond = !(_a_sc(tls, v6, 0) != 0) { + old1 = _a_ll(tls, v6) + } + _a_barrier(tls) + v4 = old1 + goto _9 +_9: + if v4&int32(MAYBE_WAITERS) != 0 { + v7 = f + 76 + v8 = int32(1) + v11 = int32(1) + if v11 != 0 { + v11 = int32(FUTEX_PRIVATE) + } + if v8 < Int32FromInt32(0) { + v8 = int32(INT_MAX) + } + _ = X__syscall3(tls, int32(SYS_futex), int32(v7), int32(Int32FromInt32(FUTEX_WAKE)|v11), v8) != -int32(ENOSYS) || X__syscall3(tls, int32(SYS_futex), int32(v7), int32(Int32FromInt32(FUTEX_WAKE)), v8) != 0 + } + return c +} + +func Xfgetc(tls *TLS, f1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f1=%v, (%v:)", tls, f1, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l, v2, v4 int32 + var v1, v5, v6 uintptr + _, _, _, _, _, _ = l, v1, v2, v4, v5, v6 + v1 = f1 + l = AtomicLoadPInt32(v1 + 76) + if l < 0 || l != 0 && l & ^Int32FromInt32(MAYBE_WAITERS) == (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Ftid { + if (*TFILE)(unsafe.Pointer(v1)).Frpos != (*TFILE)(unsafe.Pointer(v1)).Frend { + v6 = v1 + 4 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + v4 = Int32FromUint8(**(**uint8)(__ccgo_up(v5))) + } else { + v4 = X__uflow(tls, v1) + } + v2 = v4 + goto _3 + } + v2 = _locking_getc(tls, v1) + goto _3 +_3: + return v2 +} + +func Xfgetln(tls *TLS, f uintptr, plen uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v plen=%v, (%v:)", tls, f, plen, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var __need_unlock, v1, v2 int32 + var l, v8 Tssize_t + var ret, z, v3, v4 uintptr + var v6 bool + _, _, _, _, _, _, _, _, _, _ = __need_unlock, l, ret, z, v1, v2, v3, v4, v6, v8 + ret = uintptr(0) + if AtomicLoadPInt32(f+76) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + v4 = f + 4 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v2 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v2 = X__uflow(tls, f) + } + Xungetc(tls, v2, f) + if v6 = (*TFILE)(unsafe.Pointer(f)).Frend != 0; v6 { + v3 = Xmemchr(tls, (*TFILE)(unsafe.Pointer(f)).Frpos, int32('\n'), Uint32FromInt32(int32((*TFILE)(unsafe.Pointer(f)).Frend)-int32((*TFILE)(unsafe.Pointer(f)).Frpos))) + z = v3 + } + if v6 && v3 != 0 { + ret = (*TFILE)(unsafe.Pointer(f)).Frpos + z = z + 1 + v3 = z + **(**Tsize_t)(__ccgo_up(plen)) = Uint32FromInt32(int32(v3) - int32(ret)) + (*TFILE)(unsafe.Pointer(f)).Frpos = z + } else { + *(*[1]Tsize_t)(unsafe.Pointer(bp)) = [1]Tsize_t{} + v8 = Xgetline(tls, f+96, bp, f) + l = v8 + if v8 > 0 { + **(**Tsize_t)(__ccgo_up(plen)) = Uint32FromInt32(l) + ret = (*TFILE)(unsafe.Pointer(f)).Fgetln_buf + } + } + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return ret +} + +func Xfgetpos(tls *TLS, f uintptr, pos uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v pos=%v, (%v:)", tls, f, pos, origin(2)) + defer func() { trc("-> %v", r) }() + } + var off Toff_t + _ = off + off = X__ftello(tls, f) + if off < 0 { + return -int32(1) + } + **(**int64)(__ccgo_up(pos)) = off + return 0 +} + +func Xfgets(tls *TLS, s uintptr, n int32, f uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v f=%v, (%v:)", tls, s, n, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, c, v1, v2 int32 + var k Tsize_t + var p, z, v6, v7 uintptr + var v3 uint32 + var v8 uint8 + _, _, _, _, _, _, _, _, _, _, _ = __need_unlock, c, k, p, z, v1, v2, v3, v6, v7, v8 + p = s + if AtomicLoadPInt32(f+76) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + if n <= int32(1) { + **(**int32)(__ccgo_up(f + 72)) |= (*TFILE)(unsafe.Pointer(f)).Fmode - int32(1) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + if n < int32(1) { + return uintptr(0) + } + **(**uint8)(__ccgo_up(s)) = uint8(0) + return s + } + n = n - 1 + for n != 0 { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + z = Xmemchr(tls, (*TFILE)(unsafe.Pointer(f)).Frpos, int32('\n'), Uint32FromInt32(int32((*TFILE)(unsafe.Pointer(f)).Frend)-int32((*TFILE)(unsafe.Pointer(f)).Frpos))) + if z != 0 { + v1 = int32(z) - int32((*TFILE)(unsafe.Pointer(f)).Frpos) + int32(1) + } else { + v1 = int32((*TFILE)(unsafe.Pointer(f)).Frend) - int32((*TFILE)(unsafe.Pointer(f)).Frpos) + } + k = Uint32FromInt32(v1) + if k < Uint32FromInt32(n) { + v3 = k + } else { + v3 = Uint32FromInt32(n) + } + k = v3 + _memcpy(tls, p, (*TFILE)(unsafe.Pointer(f)).Frpos, k) + **(**uintptr)(__ccgo_up(f + 4)) += uintptr(k) + p = p + uintptr(k) + n = Int32FromUint32(uint32(n) - k) + if z != 0 || !(n != 0) { + break + } + } + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + v7 = f + 4 + v6 = *(*uintptr)(unsafe.Pointer(v7)) + *(*uintptr)(unsafe.Pointer(v7)) = *(*uintptr)(unsafe.Pointer(v7)) + 1 + v2 = Int32FromUint8(**(**uint8)(__ccgo_up(v6))) + } else { + v2 = X__uflow(tls, f) + } + v1 = v2 + c = v1 + if v1 < 0 { + if p == s || !((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_EOF) != 0) { + s = uintptr(0) + } + break + } + n = n - 1 + v8 = Uint8FromInt32(c) + v6 = p + p = p + 1 + **(**uint8)(__ccgo_up(v6)) = v8 + if Int32FromUint8(v8) == int32('\n') { + break + } + } + if s != 0 { + **(**uint8)(__ccgo_up(p)) = uint8(0) + } + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return s +} + +func Xfgets_unlocked(tls *TLS, s uintptr, n int32, f uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v f=%v, (%v:)", tls, s, n, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfgets(tls, s, n, f) +} + +func ___fgetwc_unlocked_internal(tls *TLS, f uintptr) (r Twint_t) { + bp := tls.Alloc(32) + defer tls.Free(32) + var c, first, v1, v2 int32 + var l Tsize_t + var v3, v4 uintptr + var _ /* b at bp+16 */ uint8 + var _ /* st at bp+8 */ Tmbstate_t + var _ /* wc at bp+0 */ Twchar_t + _, _, _, _, _, _, _ = c, first, l, v1, v2, v3, v4 + /* Convert character from buffer if possible */ + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + l = Uint32FromInt32(Xmbtowc(tls, bp, (*TFILE)(unsafe.Pointer(f)).Frpos, Uint32FromInt32(int32((*TFILE)(unsafe.Pointer(f)).Frend)-int32((*TFILE)(unsafe.Pointer(f)).Frpos)))) + if l+uint32(1) >= uint32(1) { + **(**uintptr)(__ccgo_up(f + 4)) += uintptr(l + BoolUint32(!(l != 0))) /* l==0 means 1 byte, null */ + return **(**Twchar_t)(__ccgo_up(bp)) + } + } + /* Convert character byte-by-byte */ + **(**Tmbstate_t)(__ccgo_up(bp + 8)) = Tmbstate_t{} + first = int32(1) + for cond := true; cond; cond = l == Uint32FromInt32(-Int32FromInt32(2)) { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + v4 = f + 4 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v2 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v2 = X__uflow(tls, f) + } + v1 = v2 + c = v1 + **(**uint8)(__ccgo_up(bp + 16)) = Uint8FromInt32(v1) + if c < 0 { + if !(first != 0) { + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EILSEQ) + } + return uint32(0xffffffff) + } + l = Xmbrtowc(tls, bp, bp+16, uint32(1), bp+8) + if l == Uint32FromInt32(-Int32FromInt32(1)) { + if !(first != 0) { + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) + Xungetc(tls, Int32FromUint8(**(**uint8)(__ccgo_up(bp + 16))), f) + } + return uint32(0xffffffff) + } + first = 0 + } + return **(**Twchar_t)(__ccgo_up(bp)) +} + +func X__fgetwc_unlocked(tls *TLS, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var loc Tlocale_t + var ploc uintptr + var wc Twchar_t + _, _, _ = loc, ploc, wc + ploc = uintptr(___get_tp(tls)) + 88 + loc = **(**Tlocale_t)(__ccgo_up(ploc)) + if (*TFILE)(unsafe.Pointer(f)).Fmode <= 0 { + Xfwide(tls, f, int32(1)) + } + **(**Tlocale_t)(__ccgo_up(ploc)) = (*TFILE)(unsafe.Pointer(f)).Flocale + wc = ___fgetwc_unlocked_internal(tls, f) + **(**Tlocale_t)(__ccgo_up(ploc)) = loc + return wc +} + +func Xfgetwc(tls *TLS, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, v1 int32 + var c Twint_t + _, _, _ = __need_unlock, c, v1 + if AtomicLoadPInt32(f+76) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + c = X__fgetwc_unlocked(tls, f) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return c +} + +func Xfgetwc_unlocked(tls *TLS, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fgetwc_unlocked(tls, f) +} + +func Xgetwc_unlocked(tls *TLS, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fgetwc_unlocked(tls, f) +} + +func Xfgetws(tls *TLS, s uintptr, n int32, f uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v f=%v, (%v:)", tls, s, n, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, v1 int32 + var c Twint_t + var p, v4 uintptr + _, _, _, _, _ = __need_unlock, c, p, v1, v4 + p = s + v1 = n + n = n - 1 + if !(v1 != 0) { + return s + } + if AtomicLoadPInt32(f+76) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + for { + if !(n != 0) { + break + } + c = X__fgetwc_unlocked(tls, f) + if c == uint32(0xffffffff) { + break + } + v4 = p + p += 4 + **(**Twchar_t)(__ccgo_up(v4)) = c + if c == uint32('\n') { + break + } + goto _3 + _3: + ; + n = n - 1 + } + **(**Twchar_t)(__ccgo_up(p)) = uint32(0) + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_ERR) != 0 { + p = s + } + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + if p == s { + v4 = UintptrFromInt32(0) + } else { + v4 = s + } + return v4 +} + +func Xfgetws_unlocked(tls *TLS, s uintptr, n int32, f uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v f=%v, (%v:)", tls, s, n, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfgetws(tls, s, n, f) +} + +func Xfileno(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, fd, v1 int32 + _, _, _ = __need_unlock, fd, v1 + if AtomicLoadPInt32(f+76) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + fd = (*TFILE)(unsafe.Pointer(f)).Ffd + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + if fd < 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EBADF) + return -int32(1) + } + return fd +} + +func Xfileno_unlocked(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfileno(tls, f) +} + +func Xflockfile(tls *TLS, f uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } + if !(Xftrylockfile(tls, f) != 0) { + return + } + ___lockfile(tls, f) + X__register_locked_file(tls, f, uintptr(___get_tp(tls))) +} + +type Tcookie = struct { + Fpos Tsize_t + Flen1 Tsize_t + Fsize Tsize_t + Fbuf uintptr + Fmode int32 +} + +type Tmem_FILE = struct { + F__ccgo_align [0]uint32 + Ff TFILE + Fc Tcookie + Fbuf [1032]uint8 + F__ccgo_pad4 [4]byte +} + +func _mseek(tls *TLS, f uintptr, off Toff_t, whence int32) (r Toff_t) { + bp := tls.Alloc(16) + defer tls.Free(16) + var base Tssize_t + var c uintptr + var v2 Tsize_t + _, _, _ = base, c, v2 + c = (*TFILE)(unsafe.Pointer(f)).Fcookie + if !(Uint32FromInt32(whence) > uint32(2)) { + goto _1 + } + goto fail +fail: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return int64(-int32(1)) +_1: + ; + *(*[3]Tsize_t)(unsafe.Pointer(bp)) = [3]Tsize_t{ + 1: (*Tcookie)(unsafe.Pointer(c)).Fpos, + 2: (*Tcookie)(unsafe.Pointer(c)).Flen1, + } + base = Int32FromUint32(**(**Tsize_t)(__ccgo_up(bp + uintptr(whence)*4))) + if off < int64(-base) || off > int64(Int32FromUint32((*Tcookie)(unsafe.Pointer(c)).Fsize)-base) { + goto fail + } + v2 = Uint32FromInt64(int64(base) + off) + (*Tcookie)(unsafe.Pointer(c)).Fpos = v2 + return Int64FromUint32(v2) +} + +func _mread(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + var c uintptr + var rem Tsize_t + _, _ = c, rem + c = (*TFILE)(unsafe.Pointer(f)).Fcookie + rem = (*Tcookie)(unsafe.Pointer(c)).Flen1 - (*Tcookie)(unsafe.Pointer(c)).Fpos + if (*Tcookie)(unsafe.Pointer(c)).Fpos > (*Tcookie)(unsafe.Pointer(c)).Flen1 { + rem = uint32(0) + } + if len1 > rem { + len1 = rem + **(**uint32)(__ccgo_up(f)) |= uint32(F_EOF) + } + _memcpy(tls, buf, (*Tcookie)(unsafe.Pointer(c)).Fbuf+uintptr((*Tcookie)(unsafe.Pointer(c)).Fpos), len1) + **(**Tsize_t)(__ccgo_up(c)) += len1 + rem = rem - len1 + if rem > (*TFILE)(unsafe.Pointer(f)).Fbuf_size { + rem = (*TFILE)(unsafe.Pointer(f)).Fbuf_size + } + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Frend = (*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr(rem) + _memcpy(tls, (*TFILE)(unsafe.Pointer(f)).Frpos, (*Tcookie)(unsafe.Pointer(c)).Fbuf+uintptr((*Tcookie)(unsafe.Pointer(c)).Fpos), rem) + **(**Tsize_t)(__ccgo_up(c)) += rem + return len1 +} + +func _mwrite(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + var c uintptr + var len2, rem Tsize_t + _, _, _ = c, len2, rem + c = (*TFILE)(unsafe.Pointer(f)).Fcookie + len2 = Uint32FromInt32(int32((*TFILE)(unsafe.Pointer(f)).Fwpos) - int32((*TFILE)(unsafe.Pointer(f)).Fwbase)) + if len2 != 0 { + (*TFILE)(unsafe.Pointer(f)).Fwpos = (*TFILE)(unsafe.Pointer(f)).Fwbase + if _mwrite(tls, f, (*TFILE)(unsafe.Pointer(f)).Fwpos, len2) < len2 { + return uint32(0) + } + } + if (*Tcookie)(unsafe.Pointer(c)).Fmode == int32('a') { + (*Tcookie)(unsafe.Pointer(c)).Fpos = (*Tcookie)(unsafe.Pointer(c)).Flen1 + } + rem = (*Tcookie)(unsafe.Pointer(c)).Fsize - (*Tcookie)(unsafe.Pointer(c)).Fpos + if len1 > rem { + len1 = rem + } + _memcpy(tls, (*Tcookie)(unsafe.Pointer(c)).Fbuf+uintptr((*Tcookie)(unsafe.Pointer(c)).Fpos), buf, len1) + **(**Tsize_t)(__ccgo_up(c)) += len1 + if (*Tcookie)(unsafe.Pointer(c)).Fpos > (*Tcookie)(unsafe.Pointer(c)).Flen1 { + (*Tcookie)(unsafe.Pointer(c)).Flen1 = (*Tcookie)(unsafe.Pointer(c)).Fpos + if (*Tcookie)(unsafe.Pointer(c)).Flen1 < (*Tcookie)(unsafe.Pointer(c)).Fsize { + **(**uint8)(__ccgo_up((*Tcookie)(unsafe.Pointer(c)).Fbuf + uintptr((*Tcookie)(unsafe.Pointer(c)).Flen1))) = uint8(0) + } else { + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_NORD) != 0 && (*Tcookie)(unsafe.Pointer(c)).Fsize != 0 { + **(**uint8)(__ccgo_up((*Tcookie)(unsafe.Pointer(c)).Fbuf + uintptr((*Tcookie)(unsafe.Pointer(c)).Fsize-uint32(1)))) = uint8(0) + } + } + } + return len1 +} + +func _mclose(tls *TLS, m uintptr) (r int32) { + return 0 +} + +func Xfmemopen(tls *TLS, buf uintptr, size Tsize_t, mode uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v buf=%v size=%v mode=%v, (%v:)", tls, buf, size, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + var f uintptr + var plus, v2 int32 + var v1 uint32 + var v3 Tsize_t + _, _, _, _, _ = f, plus, v1, v2, v3 + plus = BoolInt32(!!(Xstrchr(tls, mode, int32('+')) != 0)) + if !(Xstrchr(tls, __ccgo_ts+1402, Int32FromUint8(**(**uint8)(__ccgo_up(mode)))) != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(0) + } + if !(buf != 0) && size > Uint32FromInt32(Int32FromInt32(INT32_MAX)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOMEM) + return uintptr(0) + } + if buf != 0 { + v1 = uint32(0) + } else { + v1 = size + } + f = Xmalloc(tls, uint32(1200)+v1) + if !(f != 0) { + return uintptr(0) + } + Xmemset(tls, f, 0, uint32(UintptrFromInt32(0)+164)) + (*Tmem_FILE)(unsafe.Pointer(f)).Ff.Fcookie = f + 144 + (*Tmem_FILE)(unsafe.Pointer(f)).Ff.Ffd = -int32(1) + (*Tmem_FILE)(unsafe.Pointer(f)).Ff.Flbf = -int32(1) + (*Tmem_FILE)(unsafe.Pointer(f)).Ff.Fbuf = f + 164 + uintptr(UNGET) + (*Tmem_FILE)(unsafe.Pointer(f)).Ff.Fbuf_size = Uint32FromInt64(1032) - Uint32FromInt32(UNGET) + if !(buf != 0) { + buf = f + 1196 + Xmemset(tls, buf, 0, size) + } + (*Tmem_FILE)(unsafe.Pointer(f)).Fc.Fbuf = buf + (*Tmem_FILE)(unsafe.Pointer(f)).Fc.Fsize = size + (*Tmem_FILE)(unsafe.Pointer(f)).Fc.Fmode = Int32FromUint8(**(**uint8)(__ccgo_up(mode))) + if !(plus != 0) { + if Int32FromUint8(**(**uint8)(__ccgo_up(mode))) == int32('r') { + v2 = int32(F_NOWR) + } else { + v2 = int32(F_NORD) + } + (*Tmem_FILE)(unsafe.Pointer(f)).Ff.Fflags = Uint32FromInt32(v2) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(mode))) == int32('r') { + (*Tmem_FILE)(unsafe.Pointer(f)).Fc.Flen1 = size + } else { + if Int32FromUint8(**(**uint8)(__ccgo_up(mode))) == int32('a') { + v3 = Xstrnlen(tls, buf, size) + (*Tmem_FILE)(unsafe.Pointer(f)).Fc.Fpos = v3 + (*Tmem_FILE)(unsafe.Pointer(f)).Fc.Flen1 = v3 + } else { + if plus != 0 { + **(**uint8)(__ccgo_up((*Tmem_FILE)(unsafe.Pointer(f)).Fc.Fbuf)) = uint8(0) + } + } + } + (*Tmem_FILE)(unsafe.Pointer(f)).Ff.Fread = __ccgo_fp(_mread) + (*Tmem_FILE)(unsafe.Pointer(f)).Ff.Fwrite = __ccgo_fp(_mwrite) + (*Tmem_FILE)(unsafe.Pointer(f)).Ff.Fseek = __ccgo_fp(_mseek) + (*Tmem_FILE)(unsafe.Pointer(f)).Ff.Fclose1 = __ccgo_fp(_mclose) + if !(X__libc.Fthreaded != 0) { + AtomicStorePInt32(f+76, -int32(1)) + } + return X__ofl_add(tls, f) +} + +func Xfopen(tls *TLS, filename uintptr, mode uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v filename=%v mode=%v, (%v:)", tls, filename, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + var f uintptr + var fd, flags int32 + _, _, _ = f, fd, flags + /* Check for valid initial mode character */ + if !(Xstrchr(tls, __ccgo_ts+1402, Int32FromUint8(**(**uint8)(__ccgo_up(mode)))) != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(0) + } + /* Compute the flags to pass to open() */ + flags = X__fmodeflags(tls, mode) + fd = X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_open), int32(filename), int32(flags|Int32FromInt32(O_LARGEFILE)), int32(Int32FromInt32(0666))))) + if fd < 0 { + return uintptr(0) + } + if flags&int32(O_CLOEXEC) != 0 { + X__syscall3(tls, int32(SYS_fcntl64), fd, int32(Int32FromInt32(F_SETFD)), int32(Int32FromInt32(FD_CLOEXEC))) + } + f = X__fdopen(tls, fd, mode) + if f != 0 { + return f + } + X__syscall1(tls, int32(SYS_close), fd) + return uintptr(0) +} + +type Tfcookie = struct { + Fcookie uintptr + Fiofuncs Tcookie_io_functions_t +} + +type Tcookie_FILE = struct { + F__ccgo_align [0]uint32 + Ff TFILE + Ffc Tfcookie + Fbuf [1032]uint8 + F__ccgo_pad3 [4]byte +} + +func _cookieread(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + var fc, v2, v3 uintptr + var len2, readlen, remain, v1 Tsize_t + var ret Tssize_t + var v4 int32 + _, _, _, _, _, _, _, _, _ = fc, len2, readlen, remain, ret, v1, v2, v3, v4 + fc = (*TFILE)(unsafe.Pointer(f)).Fcookie + ret = -int32(1) + remain = len1 + readlen = uint32(0) + len2 = len1 - BoolUint32(!!((*TFILE)(unsafe.Pointer(f)).Fbuf_size != 0)) + if !((*Tfcookie)(unsafe.Pointer(fc)).Fiofuncs.Fread != 0) { + goto bail + } + if len2 != 0 { + ret = (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tssize_t)(unsafe.Pointer(&struct{ uintptr }{(*Tfcookie)(unsafe.Pointer(fc)).Fiofuncs.Fread})))(tls, (*Tfcookie)(unsafe.Pointer(fc)).Fcookie, buf, len2) + if ret <= 0 { + goto bail + } + readlen = readlen + Uint32FromInt32(ret) + remain = remain - Uint32FromInt32(ret) + } + if !((*TFILE)(unsafe.Pointer(f)).Fbuf_size != 0) || remain > BoolUint32(!!((*TFILE)(unsafe.Pointer(f)).Fbuf_size != 0)) { + return readlen + } + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Fbuf + ret = (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tssize_t)(unsafe.Pointer(&struct{ uintptr }{(*Tfcookie)(unsafe.Pointer(fc)).Fiofuncs.Fread})))(tls, (*Tfcookie)(unsafe.Pointer(fc)).Fcookie, (*TFILE)(unsafe.Pointer(f)).Frpos, (*TFILE)(unsafe.Pointer(f)).Fbuf_size) + if ret <= 0 { + goto bail + } + (*TFILE)(unsafe.Pointer(f)).Frend = (*TFILE)(unsafe.Pointer(f)).Frpos + uintptr(ret) + v1 = readlen + readlen = readlen + 1 + v3 = f + 4 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + **(**uint8)(__ccgo_up(buf + uintptr(v1))) = **(**uint8)(__ccgo_up(v2)) + return readlen + goto bail +bail: + ; + if ret == 0 { + v4 = int32(F_EOF) + } else { + v4 = int32(F_ERR) + } + **(**uint32)(__ccgo_up(f)) |= Uint32FromInt32(v4) + v2 = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Frend = v2 + (*TFILE)(unsafe.Pointer(f)).Frpos = v2 + return readlen +} + +func _cookiewrite(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + var fc, v1, v2 uintptr + var len2 Tsize_t + var ret Tssize_t + _, _, _, _, _ = fc, len2, ret, v1, v2 + fc = (*TFILE)(unsafe.Pointer(f)).Fcookie + len2 = Uint32FromInt32(int32((*TFILE)(unsafe.Pointer(f)).Fwpos) - int32((*TFILE)(unsafe.Pointer(f)).Fwbase)) + if !((*Tfcookie)(unsafe.Pointer(fc)).Fiofuncs.Fwrite != 0) { + return len1 + } + if len2 != 0 { + (*TFILE)(unsafe.Pointer(f)).Fwpos = (*TFILE)(unsafe.Pointer(f)).Fwbase + if _cookiewrite(tls, f, (*TFILE)(unsafe.Pointer(f)).Fwpos, len2) < len2 { + return uint32(0) + } + } + ret = (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tssize_t)(unsafe.Pointer(&struct{ uintptr }{(*Tfcookie)(unsafe.Pointer(fc)).Fiofuncs.Fwrite})))(tls, (*Tfcookie)(unsafe.Pointer(fc)).Fcookie, buf, len1) + if ret < 0 { + v2 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Fwend = v2 + v1 = v2 + (*TFILE)(unsafe.Pointer(f)).Fwbase = v1 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v1 + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) + return uint32(0) + } + return Uint32FromInt32(ret) +} + +func _cookieseek(tls *TLS, f uintptr, _off Toff_t, whence int32) (r Toff_t) { + bp := tls.Alloc(16) + defer tls.Free(16) + *(*Toff_t)(unsafe.Pointer(bp)) = _off + var fc uintptr + var res int32 + _, _ = fc, res + fc = (*TFILE)(unsafe.Pointer(f)).Fcookie + if Uint32FromInt32(whence) > uint32(2) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return int64(-int32(1)) + } + if !((*Tfcookie)(unsafe.Pointer(fc)).Fiofuncs.Fseek != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOPNOTSUPP) + return int64(-int32(1)) + } + res = (*(*func(*TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(&struct{ uintptr }{(*Tfcookie)(unsafe.Pointer(fc)).Fiofuncs.Fseek})))(tls, (*Tfcookie)(unsafe.Pointer(fc)).Fcookie, bp, whence) + if res < 0 { + return int64(res) + } + return **(**Toff_t)(__ccgo_up(bp)) +} + +func _cookieclose(tls *TLS, f uintptr) (r int32) { + var fc uintptr + _ = fc + fc = (*TFILE)(unsafe.Pointer(f)).Fcookie + if (*Tfcookie)(unsafe.Pointer(fc)).Fiofuncs.Fclose1 != 0 { + return (*(*func(*TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*Tfcookie)(unsafe.Pointer(fc)).Fiofuncs.Fclose1})))(tls, (*Tfcookie)(unsafe.Pointer(fc)).Fcookie) + } + return 0 +} + +func Xfopencookie(tls *TLS, cookie uintptr, mode uintptr, iofuncs Tcookie_io_functions_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v cookie=%v mode=%v iofuncs=%v, (%v:)", tls, cookie, mode, iofuncs, origin(2)) + defer func() { trc("-> %v", r) }() + } + var f, v1 uintptr + var v2 int32 + _, _, _ = f, v1, v2 + /* Check for valid initial mode character */ + if !(Xstrchr(tls, __ccgo_ts+1402, Int32FromUint8(**(**uint8)(__ccgo_up(mode)))) != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(0) + } + /* Allocate FILE+fcookie+buffer or fail */ + v1 = Xmalloc(tls, uint32(1200)) + f = v1 + if !(v1 != 0) { + return uintptr(0) + } + /* Zero-fill only the struct, not the buffer */ + Xmemset(tls, f, 0, uint32(144)) + /* Impose mode restrictions */ + if !(Xstrchr(tls, mode, int32('+')) != 0) { + if Int32FromUint8(**(**uint8)(__ccgo_up(mode))) == int32('r') { + v2 = int32(F_NOWR) + } else { + v2 = int32(F_NORD) + } + (*Tcookie_FILE)(unsafe.Pointer(f)).Ff.Fflags = Uint32FromInt32(v2) + } + /* Set up our fcookie */ + (*Tcookie_FILE)(unsafe.Pointer(f)).Ffc.Fcookie = cookie + (*Tcookie_FILE)(unsafe.Pointer(f)).Ffc.Fiofuncs = iofuncs + (*Tcookie_FILE)(unsafe.Pointer(f)).Ff.Ffd = -int32(1) + (*Tcookie_FILE)(unsafe.Pointer(f)).Ff.Fcookie = f + 144 + (*Tcookie_FILE)(unsafe.Pointer(f)).Ff.Fbuf = f + 164 + uintptr(UNGET) + (*Tcookie_FILE)(unsafe.Pointer(f)).Ff.Fbuf_size = Uint32FromInt64(1032) - Uint32FromInt32(UNGET) + (*Tcookie_FILE)(unsafe.Pointer(f)).Ff.Flbf = -int32(1) + /* Initialize op ptrs. No problem if some are unneeded. */ + (*Tcookie_FILE)(unsafe.Pointer(f)).Ff.Fread = __ccgo_fp(_cookieread) + (*Tcookie_FILE)(unsafe.Pointer(f)).Ff.Fwrite = __ccgo_fp(_cookiewrite) + (*Tcookie_FILE)(unsafe.Pointer(f)).Ff.Fseek = __ccgo_fp(_cookieseek) + (*Tcookie_FILE)(unsafe.Pointer(f)).Ff.Fclose1 = __ccgo_fp(_cookieclose) + /* Add new FILE to open file list */ + return X__ofl_add(tls, f) +} + +func Xfprintf(tls *TLS, f uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v va=%v, (%v:)", tls, f, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvfprintf(tls, f, fmt, ap) + _ = ap + return ret +} + +func _locking_putc(tls *TLS, c int32, f uintptr) (r int32) { + var old, old1, v2, v4, v9 int32 + var v1, v6 uintptr + var v5 uint8 + _, _, _, _, _, _, _, _ = old, old1, v1, v2, v4, v5, v6, v9 + v1 = f + 76 + _a_barrier(tls) + for cond := true; cond; cond = old == 0 && !(_a_sc(tls, v1, Int32FromInt32(MAYBE_WAITERS)-Int32FromInt32(1)) != 0) { + old = _a_ll(tls, v1) + } + _a_barrier(tls) + v2 = old + goto _3 +_3: + if v2 != 0 { + ___lockfile(tls, f) + } + if Int32FromUint8(Uint8FromInt32(c)) != (*TFILE)(unsafe.Pointer(f)).Flbf && (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwend { + v5 = Uint8FromInt32(c) + v6 = f + 20 + v1 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + **(**uint8)(__ccgo_up(v1)) = v5 + v2 = Int32FromUint8(v5) + } else { + v2 = X__overflow(tls, f, Int32FromUint8(Uint8FromInt32(c))) + } + c = v2 + v1 = f + 76 + _a_barrier(tls) + for cond := true; cond; cond = !(_a_sc(tls, v1, 0) != 0) { + old1 = _a_ll(tls, v1) + } + _a_barrier(tls) + v2 = old1 + goto _10 +_10: + if v2&int32(MAYBE_WAITERS) != 0 { + v6 = f + 76 + v4 = int32(1) + v9 = int32(1) + if v9 != 0 { + v9 = int32(FUTEX_PRIVATE) + } + if v4 < Int32FromInt32(0) { + v4 = int32(INT_MAX) + } + _ = X__syscall3(tls, int32(SYS_futex), int32(v6), int32(Int32FromInt32(FUTEX_WAKE)|v9), v4) != -int32(ENOSYS) || X__syscall3(tls, int32(SYS_futex), int32(v6), int32(Int32FromInt32(FUTEX_WAKE)), v4) != 0 + } + return c +} + +func Xfputc(tls *TLS, c1 int32, f1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v c1=%v f1=%v, (%v:)", tls, c1, f1, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l, v1, v3, v5 int32 + var v2, v7, v8 uintptr + var v6 uint8 + _, _, _, _, _, _, _, _ = l, v1, v2, v3, v5, v6, v7, v8 + v1 = c1 + v2 = f1 + l = AtomicLoadPInt32(v2 + 76) + if l < 0 || l != 0 && l & ^Int32FromInt32(MAYBE_WAITERS) == (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Ftid { + if Int32FromUint8(Uint8FromInt32(v1)) != (*TFILE)(unsafe.Pointer(v2)).Flbf && (*TFILE)(unsafe.Pointer(v2)).Fwpos != (*TFILE)(unsafe.Pointer(v2)).Fwend { + v6 = Uint8FromInt32(v1) + v8 = v2 + 20 + v7 = *(*uintptr)(unsafe.Pointer(v8)) + *(*uintptr)(unsafe.Pointer(v8)) = *(*uintptr)(unsafe.Pointer(v8)) + 1 + **(**uint8)(__ccgo_up(v7)) = v6 + v5 = Int32FromUint8(v6) + } else { + v5 = X__overflow(tls, v2, Int32FromUint8(Uint8FromInt32(v1))) + } + v3 = v5 + goto _4 + } + v3 = _locking_putc(tls, v1, v2) + goto _4 +_4: + return v3 +} + +func Xfputs(tls *TLS, s uintptr, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v f=%v, (%v:)", tls, s, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l Tsize_t + _ = l + l = _strlen(tls, s) + return BoolInt32(Xfwrite(tls, s, uint32(1), l, f) == l) - int32(1) +} + +func Xfputs_unlocked(tls *TLS, s uintptr, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v f=%v, (%v:)", tls, s, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfputs(tls, s, f) +} + +func X__fputwc_unlocked(tls *TLS, c Twchar_t, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v f=%v, (%v:)", tls, c, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var l, v1 int32 + var loc Tlocale_t + var ploc, v3, v4 uintptr + var v2 uint8 + var _ /* mbc at bp+0 */ [4]uint8 + _, _, _, _, _, _, _ = l, loc, ploc, v1, v2, v3, v4 + ploc = uintptr(___get_tp(tls)) + 88 + loc = **(**Tlocale_t)(__ccgo_up(ploc)) + if (*TFILE)(unsafe.Pointer(f)).Fmode <= 0 { + Xfwide(tls, f, int32(1)) + } + **(**Tlocale_t)(__ccgo_up(ploc)) = (*TFILE)(unsafe.Pointer(f)).Flocale + if BoolInt32(c < uint32(128)) != 0 { + if Int32FromUint8(uint8(c)) != (*TFILE)(unsafe.Pointer(f)).Flbf && (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwend { + v2 = uint8(c) + v4 = f + 20 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + **(**uint8)(__ccgo_up(v3)) = v2 + v1 = Int32FromUint8(v2) + } else { + v1 = X__overflow(tls, f, Int32FromUint8(uint8(c))) + } + c = Uint32FromInt32(v1) + } else { + if (*TFILE)(unsafe.Pointer(f)).Fwpos+uintptr(MB_LEN_MAX) < (*TFILE)(unsafe.Pointer(f)).Fwend { + l = Xwctomb(tls, (*TFILE)(unsafe.Pointer(f)).Fwpos, c) + if l < 0 { + c = uint32(0xffffffff) + } else { + **(**uintptr)(__ccgo_up(f + 20)) += uintptr(l) + } + } else { + l = Xwctomb(tls, bp, c) + if l < 0 || X__fwritex(tls, bp, Uint32FromInt32(l), f) < Uint32FromInt32(l) { + c = uint32(0xffffffff) + } + } + } + if c == uint32(0xffffffff) { + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) + } + **(**Tlocale_t)(__ccgo_up(ploc)) = loc + return c +} + +func Xfputwc(tls *TLS, c Twchar_t, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v f=%v, (%v:)", tls, c, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, v1 int32 + _, _ = __need_unlock, v1 + if AtomicLoadPInt32(f+76) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + c = X__fputwc_unlocked(tls, c, f) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return c +} + +func Xfputwc_unlocked(tls *TLS, c Twchar_t, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v f=%v, (%v:)", tls, c, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fputwc_unlocked(tls, c, f) +} + +func Xputwc_unlocked(tls *TLS, c Twchar_t, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v f=%v, (%v:)", tls, c, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fputwc_unlocked(tls, c, f) +} + +func Xfputws(tls *TLS, _ws uintptr, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v _ws=%v f=%v, (%v:)", tls, _ws, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(1040) + defer tls.Free(1040) + *(*uintptr)(unsafe.Pointer(bp)) = _ws + var __need_unlock, v1 int32 + var l, v2 Tsize_t + var loc Tlocale_t + var ploc uintptr + var v3 bool + var _ /* buf at bp+4 */ [1024]uint8 + _, _, _, _, _, _, _ = __need_unlock, l, loc, ploc, v1, v2, v3 + l = uint32(0) + ploc = uintptr(___get_tp(tls)) + 88 + loc = **(**Tlocale_t)(__ccgo_up(ploc)) + if AtomicLoadPInt32(f+76) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + Xfwide(tls, f, int32(1)) + **(**Tlocale_t)(__ccgo_up(ploc)) = (*TFILE)(unsafe.Pointer(f)).Flocale + for { + if v3 = **(**uintptr)(__ccgo_up(bp)) != 0; v3 { + v2 = Xwcsrtombs(tls, bp+4, bp, uint32(1024), uintptr(0)) + l = v2 + } + if !(v3 && v2+uint32(1) > uint32(1)) { + break + } + if X__fwritex(tls, bp+4, l, f) < l { + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + **(**Tlocale_t)(__ccgo_up(ploc)) = loc + return -int32(1) + } + } + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + **(**Tlocale_t)(__ccgo_up(ploc)) = loc + return Int32FromUint32(l) /* 0 or -1 */ +} + +func Xfputws_unlocked(tls *TLS, _ws uintptr, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v _ws=%v f=%v, (%v:)", tls, _ws, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfputws(tls, _ws, f) +} + +func Xfread(tls *TLS, destv uintptr, size Tsize_t, nmemb Tsize_t, f uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v destv=%v size=%v nmemb=%v f=%v, (%v:)", tls, destv, size, nmemb, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, v1 int32 + var dest uintptr + var k, l, len1 Tsize_t + var v2 uint32 + _, _, _, _, _, _, _ = __need_unlock, dest, k, l, len1, v1, v2 + dest = destv + len1 = size * nmemb + l = len1 + if !(size != 0) { + nmemb = uint32(0) + } + if AtomicLoadPInt32(f+76) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + **(**int32)(__ccgo_up(f + 72)) |= (*TFILE)(unsafe.Pointer(f)).Fmode - int32(1) + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + /* First exhaust the buffer. */ + if Uint32FromInt32(int32((*TFILE)(unsafe.Pointer(f)).Frend)-int32((*TFILE)(unsafe.Pointer(f)).Frpos)) < l { + v2 = Uint32FromInt32(int32((*TFILE)(unsafe.Pointer(f)).Frend) - int32((*TFILE)(unsafe.Pointer(f)).Frpos)) + } else { + v2 = l + } + k = v2 + _memcpy(tls, dest, (*TFILE)(unsafe.Pointer(f)).Frpos, k) + **(**uintptr)(__ccgo_up(f + 4)) += uintptr(k) + dest = dest + uintptr(k) + l = l - k + } + /* Read the remainder directly */ + for { + if !(l != 0) { + break + } + if X__toread(tls, f) != 0 { + v2 = uint32(0) + } else { + v2 = (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tsize_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fread})))(tls, f, dest, l) + } + k = v2 + if !(k != 0) { + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return (len1 - l) / size + } + goto _3 + _3: + ; + l = l - k + dest = dest + uintptr(k) + } + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return nmemb +} + +func Xfread_unlocked(tls *TLS, destv uintptr, size Tsize_t, nmemb Tsize_t, f uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v destv=%v size=%v nmemb=%v f=%v, (%v:)", tls, destv, size, nmemb, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfread(tls, destv, size, nmemb, f) +} + +/* The basic idea of this implementation is to open a new FILE, + * hack the necessary parts of the new FILE into the old one, then + * close the new FILE. */ + +/* Locking IS necessary because another thread may provably hold the + * lock, via flockfile or otherwise, when freopen is called, and in that + * case, freopen cannot act until the lock is released. */ + +func Xfreopen(tls *TLS, filename uintptr, mode uintptr, f uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v filename=%v mode=%v f=%v, (%v:)", tls, filename, mode, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, fl, v1 int32 + var f2 uintptr + _, _, _, _ = __need_unlock, f2, fl, v1 + fl = X__fmodeflags(tls, mode) + if AtomicLoadPInt32(f+76) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + Xfflush(tls, f) + if !(filename != 0) { + if fl&int32(O_CLOEXEC) != 0 { + X__syscall3(tls, int32(SYS_fcntl64), (*TFILE)(unsafe.Pointer(f)).Ffd, int32(Int32FromInt32(F_SETFD)), int32(Int32FromInt32(FD_CLOEXEC))) + } + fl = fl & ^(Int32FromInt32(O_CREAT) | Int32FromInt32(O_EXCL) | Int32FromInt32(O_CLOEXEC)) + if X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_fcntl64), (*TFILE)(unsafe.Pointer(f)).Ffd, int32(Int32FromInt32(F_SETFL)), fl))) < 0 { + goto fail + } + } else { + f2 = Xfopen(tls, filename, mode) + if !(f2 != 0) { + goto fail + } + if (*TFILE)(unsafe.Pointer(f2)).Ffd == (*TFILE)(unsafe.Pointer(f)).Ffd { + (*TFILE)(unsafe.Pointer(f2)).Ffd = -int32(1) + } else { + if X__dup3(tls, (*TFILE)(unsafe.Pointer(f2)).Ffd, (*TFILE)(unsafe.Pointer(f)).Ffd, fl&int32(O_CLOEXEC)) < 0 { + goto fail2 + } + } + (*TFILE)(unsafe.Pointer(f)).Fflags = (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_PERM) | (*TFILE)(unsafe.Pointer(f2)).Fflags + (*TFILE)(unsafe.Pointer(f)).Fread = (*TFILE)(unsafe.Pointer(f2)).Fread + (*TFILE)(unsafe.Pointer(f)).Fwrite = (*TFILE)(unsafe.Pointer(f2)).Fwrite + (*TFILE)(unsafe.Pointer(f)).Fseek = (*TFILE)(unsafe.Pointer(f2)).Fseek + (*TFILE)(unsafe.Pointer(f)).Fclose1 = (*TFILE)(unsafe.Pointer(f2)).Fclose1 + Xfclose(tls, f2) + } + (*TFILE)(unsafe.Pointer(f)).Fmode = 0 + (*TFILE)(unsafe.Pointer(f)).Flocale = uintptr(0) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return f + goto fail2 +fail2: + ; + Xfclose(tls, f2) + goto fail +fail: + ; + Xfclose(tls, f) + return UintptrFromInt32(0) +} + +func Xfscanf(tls *TLS, f uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v va=%v, (%v:)", tls, f, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvfscanf(tls, f, fmt, ap) + _ = ap + return ret +} + +func X__isoc99_fscanf(tls *TLS, f uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v va=%v, (%v:)", tls, f, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfscanf(tls, f, fmt, va) +} + +func X__fseeko_unlocked(tls *TLS, f uintptr, off Toff_t, whence int32) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v off=%v whence=%v, (%v:)", tls, f, off, whence, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1, v2 uintptr + _, _ = v1, v2 + /* Fail immediately for invalid whence argument. */ + if whence != int32(1) && whence != 0 && whence != int32(2) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + /* Adjust relative offset for unread data in buffer, if any. */ + if whence == int32(1) && (*TFILE)(unsafe.Pointer(f)).Frend != 0 { + off = off - int64(int32((*TFILE)(unsafe.Pointer(f)).Frend)-int32((*TFILE)(unsafe.Pointer(f)).Frpos)) + } + /* Flush write buffer, and report error on failure. */ + if (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwbase { + (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tsize_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fwrite})))(tls, f, uintptr(0), uint32(0)) + if !((*TFILE)(unsafe.Pointer(f)).Fwpos != 0) { + return -int32(1) + } + } + /* Leave writing mode */ + v2 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Fwend = v2 + v1 = v2 + (*TFILE)(unsafe.Pointer(f)).Fwbase = v1 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v1 + /* Perform the underlying seek. */ + if (*(*func(*TLS, uintptr, Toff_t, int32) Toff_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fseek})))(tls, f, off, whence) < 0 { + return -int32(1) + } + /* If seek succeeded, file is seekable and we discard read buffer. */ + v1 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Frend = v1 + (*TFILE)(unsafe.Pointer(f)).Frpos = v1 + **(**uint32)(__ccgo_up(f)) &= Uint32FromInt32(^Int32FromInt32(F_EOF)) + return 0 +} + +func X__fseeko(tls *TLS, f uintptr, off Toff_t, whence int32) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v off=%v whence=%v, (%v:)", tls, f, off, whence, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, result, v1 int32 + _, _, _ = __need_unlock, result, v1 + if AtomicLoadPInt32(f+76) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + result = X__fseeko_unlocked(tls, f, off, whence) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return result +} + +func Xfseek(tls *TLS, f uintptr, off int32, whence int32) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v off=%v whence=%v, (%v:)", tls, f, off, whence, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fseeko(tls, f, int64(off), whence) +} + +func Xfseeko(tls *TLS, f uintptr, off Toff_t, whence int32) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v off=%v whence=%v, (%v:)", tls, f, off, whence, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fseeko(tls, f, off, whence) +} + +func Xfsetpos(tls *TLS, f uintptr, pos uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v pos=%v, (%v:)", tls, f, pos, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fseeko(tls, f, **(**int64)(__ccgo_up(pos)), 0) +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func X__ftello_unlocked(tls *TLS, f uintptr) (r Toff_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var pos Toff_t + var v1 int32 + _, _ = pos, v1 + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_APP) != 0 && (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwbase { + v1 = int32(2) + } else { + v1 = int32(1) + } + pos = (*(*func(*TLS, uintptr, Toff_t, int32) Toff_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fseek})))(tls, f, 0, v1) + if pos < 0 { + return pos + } + /* Adjust for data in buffer. */ + if (*TFILE)(unsafe.Pointer(f)).Frend != 0 { + pos = pos + int64(int32((*TFILE)(unsafe.Pointer(f)).Frpos)-int32((*TFILE)(unsafe.Pointer(f)).Frend)) + } else { + if (*TFILE)(unsafe.Pointer(f)).Fwbase != 0 { + pos = pos + int64(int32((*TFILE)(unsafe.Pointer(f)).Fwpos)-int32((*TFILE)(unsafe.Pointer(f)).Fwbase)) + } + } + return pos +} + +func X__ftello(tls *TLS, f uintptr) (r Toff_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, v1 int32 + var pos Toff_t + _, _, _ = __need_unlock, pos, v1 + if AtomicLoadPInt32(f+76) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + pos = X__ftello_unlocked(tls, f) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return pos +} + +func Xftell(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var pos Toff_t + _ = pos + pos = X__ftello(tls, f) + if pos > int64(0x7fffffff) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOVERFLOW) + return -int32(1) + } + return int32(pos) +} + +func Xftello(tls *TLS, f uintptr) (r Toff_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__ftello(tls, f) +} + +func X__do_orphaned_stdio_locks(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + var f uintptr + _ = f + f = (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Fstdio_locks + for { + if !(f != 0) { + break + } + _a_barrier(tls) + AtomicStorePInt32(f+76, int32(0x40000000)) + _a_barrier(tls) + goto _1 + _1: + ; + f = (*TFILE)(unsafe.Pointer(f)).Fnext_locked + } +} + +func X__unlist_locked_file(tls *TLS, f uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } + if (*TFILE)(unsafe.Pointer(f)).Flockcount != 0 { + if (*TFILE)(unsafe.Pointer(f)).Fnext_locked != 0 { + (*TFILE)(unsafe.Pointer((*TFILE)(unsafe.Pointer(f)).Fnext_locked)).Fprev_locked = (*TFILE)(unsafe.Pointer(f)).Fprev_locked + } + if (*TFILE)(unsafe.Pointer(f)).Fprev_locked != 0 { + (*TFILE)(unsafe.Pointer((*TFILE)(unsafe.Pointer(f)).Fprev_locked)).Fnext_locked = (*TFILE)(unsafe.Pointer(f)).Fnext_locked + } else { + (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Fstdio_locks = (*TFILE)(unsafe.Pointer(f)).Fnext_locked + } + } +} + +func X__register_locked_file(tls *TLS, f uintptr, self Tpthread_t) { + if __ccgo_strace { + trc("tls=%v f=%v self=%v, (%v:)", tls, f, self, origin(2)) + } + (*TFILE)(unsafe.Pointer(f)).Flockcount = int32(1) + (*TFILE)(unsafe.Pointer(f)).Fprev_locked = uintptr(0) + (*TFILE)(unsafe.Pointer(f)).Fnext_locked = (*t__pthread)(unsafe.Pointer(self)).Fstdio_locks + if (*TFILE)(unsafe.Pointer(f)).Fnext_locked != 0 { + (*TFILE)(unsafe.Pointer((*TFILE)(unsafe.Pointer(f)).Fnext_locked)).Fprev_locked = f + } + (*t__pthread)(unsafe.Pointer(self)).Fstdio_locks = f +} + +func Xftrylockfile(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var old, owner, tid, v1 int32 + var self Tpthread_t + var v2 uintptr + var v5 bool + _, _, _, _, _, _, _ = old, owner, self, tid, v1, v2, v5 + self = uintptr(___get_tp(tls)) + tid = (*t__pthread)(unsafe.Pointer(self)).Ftid + owner = AtomicLoadPInt32(f + 76) + if owner & ^Int32FromInt32(MAYBE_WAITERS) == tid { + if (*TFILE)(unsafe.Pointer(f)).Flockcount == int32(0x7fffffff) { + return -int32(1) + } + (*TFILE)(unsafe.Pointer(f)).Flockcount = (*TFILE)(unsafe.Pointer(f)).Flockcount + 1 + return 0 + } + if owner < 0 { + v1 = Int32FromInt32(0) + owner = v1 + AtomicStorePInt32(f+76, v1) + } + if v5 = owner != 0; !v5 { + v2 = f + 76 + _a_barrier(tls) + for cond := true; cond; cond = old == 0 && !(_a_sc(tls, v2, tid) != 0) { + old = _a_ll(tls, v2) + } + _a_barrier(tls) + v1 = old + goto _4 + _4: + } + if v5 || v1 != 0 { + return -int32(1) + } + X__register_locked_file(tls, f, self) + return 0 +} + +func Xfunlockfile(tls *TLS, f uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } + if (*TFILE)(unsafe.Pointer(f)).Flockcount == int32(1) { + X__unlist_locked_file(tls, f) + (*TFILE)(unsafe.Pointer(f)).Flockcount = 0 + ___unlockfile(tls, f) + } else { + (*TFILE)(unsafe.Pointer(f)).Flockcount = (*TFILE)(unsafe.Pointer(f)).Flockcount - 1 + } +} + +func Xfwide(tls *TLS, f uintptr, mode int32) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v mode=%v, (%v:)", tls, f, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, v1, v3 int32 + var v2 Tlocale_t + _, _, _, _ = __need_unlock, v1, v2, v3 + if AtomicLoadPInt32(f+76) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + if mode != 0 { + if !((*TFILE)(unsafe.Pointer(f)).Flocale != 0) { + if !!(**(**uintptr)(__ccgo_up((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale)) != 0) { + v3 = int32(4) + } else { + v3 = int32(1) + } + if v3 == int32(1) { + v2 = uintptr(unsafe.Pointer(&X__c_locale)) + } else { + v2 = uintptr(unsafe.Pointer(&X__c_dot_utf8_locale)) + } + (*TFILE)(unsafe.Pointer(f)).Flocale = v2 + } + if !((*TFILE)(unsafe.Pointer(f)).Fmode != 0) { + if mode > 0 { + v1 = int32(1) + } else { + v1 = -int32(1) + } + (*TFILE)(unsafe.Pointer(f)).Fmode = v1 + } + } + mode = (*TFILE)(unsafe.Pointer(f)).Fmode + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return mode +} + +func Xfwprintf(tls *TLS, f uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v va=%v, (%v:)", tls, f, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvfwprintf(tls, f, fmt, ap) + _ = ap + return ret +} + +func X__fwritex(tls *TLS, s uintptr, l Tsize_t, f uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v l=%v f=%v, (%v:)", tls, s, l, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var i, n Tsize_t + _, _ = i, n + i = uint32(0) + if !((*TFILE)(unsafe.Pointer(f)).Fwend != 0) && X__towrite(tls, f) != 0 { + return uint32(0) + } + if l > Uint32FromInt32(int32((*TFILE)(unsafe.Pointer(f)).Fwend)-int32((*TFILE)(unsafe.Pointer(f)).Fwpos)) { + return (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tsize_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fwrite})))(tls, f, s, l) + } + if (*TFILE)(unsafe.Pointer(f)).Flbf >= 0 { + /* Match /^(.*\n|)/ */ + i = l + for { + if !(i != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(i-uint32(1))))) != int32('\n')) { + break + } + goto _1 + _1: + ; + i = i - 1 + } + if i != 0 { + n = (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tsize_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fwrite})))(tls, f, s, i) + if n < i { + return n + } + s = s + uintptr(i) + l = l - i + } + } + _memcpy(tls, (*TFILE)(unsafe.Pointer(f)).Fwpos, s, l) + **(**uintptr)(__ccgo_up(f + 20)) += uintptr(l) + return l + i +} + +func Xfwrite(tls *TLS, src uintptr, size Tsize_t, nmemb Tsize_t, f uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v src=%v size=%v nmemb=%v f=%v, (%v:)", tls, src, size, nmemb, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, v1 int32 + var k, l Tsize_t + var v2 uint32 + _, _, _, _, _ = __need_unlock, k, l, v1, v2 + l = size * nmemb + if !(size != 0) { + nmemb = uint32(0) + } + if AtomicLoadPInt32(f+76) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + k = X__fwritex(tls, src, l, f) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + if k == l { + v2 = nmemb + } else { + v2 = k / size + } + return v2 +} + +func Xfwrite_unlocked(tls *TLS, src uintptr, size Tsize_t, nmemb Tsize_t, f uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v src=%v size=%v nmemb=%v f=%v, (%v:)", tls, src, size, nmemb, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfwrite(tls, src, size, nmemb, f) +} + +func Xfwscanf(tls *TLS, f uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v va=%v, (%v:)", tls, f, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvfwscanf(tls, f, fmt, ap) + _ = ap + return ret +} + +func X__isoc99_fwscanf(tls *TLS, f uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v va=%v, (%v:)", tls, f, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfwscanf(tls, f, fmt, va) +} + +func _locking_getc1(tls *TLS, f uintptr) (r int32) { + var c, old, old1, v11, v2, v4, v8 int32 + var v1, v5, v6, v7 uintptr + _, _, _, _, _, _, _, _, _, _, _ = c, old, old1, v1, v11, v2, v4, v5, v6, v7, v8 + v1 = f + 76 + _a_barrier(tls) + for cond := true; cond; cond = old == 0 && !(_a_sc(tls, v1, Int32FromInt32(MAYBE_WAITERS)-Int32FromInt32(1)) != 0) { + old = _a_ll(tls, v1) + } + _a_barrier(tls) + v2 = old + goto _3 +_3: + if v2 != 0 { + ___lockfile(tls, f) + } + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + v5 = f + 4 + v1 = *(*uintptr)(unsafe.Pointer(v5)) + *(*uintptr)(unsafe.Pointer(v5)) = *(*uintptr)(unsafe.Pointer(v5)) + 1 + v2 = Int32FromUint8(**(**uint8)(__ccgo_up(v1))) + } else { + v2 = X__uflow(tls, f) + } + c = v2 + v6 = f + 76 + _a_barrier(tls) + for cond := true; cond; cond = !(_a_sc(tls, v6, 0) != 0) { + old1 = _a_ll(tls, v6) + } + _a_barrier(tls) + v4 = old1 + goto _9 +_9: + if v4&int32(MAYBE_WAITERS) != 0 { + v7 = f + 76 + v8 = int32(1) + v11 = int32(1) + if v11 != 0 { + v11 = int32(FUTEX_PRIVATE) + } + if v8 < Int32FromInt32(0) { + v8 = int32(INT_MAX) + } + _ = X__syscall3(tls, int32(SYS_futex), int32(v7), int32(Int32FromInt32(FUTEX_WAKE)|v11), v8) != -int32(ENOSYS) || X__syscall3(tls, int32(SYS_futex), int32(v7), int32(Int32FromInt32(FUTEX_WAKE)), v8) != 0 + } + return c +} + +func Xgetc(tls *TLS, f1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f1=%v, (%v:)", tls, f1, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l, v2, v4 int32 + var v1, v5, v6 uintptr + _, _, _, _, _, _ = l, v1, v2, v4, v5, v6 + v1 = f1 + l = AtomicLoadPInt32(v1 + 76) + if l < 0 || l != 0 && l & ^Int32FromInt32(MAYBE_WAITERS) == (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Ftid { + if (*TFILE)(unsafe.Pointer(v1)).Frpos != (*TFILE)(unsafe.Pointer(v1)).Frend { + v6 = v1 + 4 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + v4 = Int32FromUint8(**(**uint8)(__ccgo_up(v5))) + } else { + v4 = X__uflow(tls, v1) + } + v2 = v4 + goto _3 + } + v2 = _locking_getc1(tls, v1) + goto _3 +_3: + return v2 +} + +func X_IO_getc(tls *TLS, f1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f1=%v, (%v:)", tls, f1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetc(tls, f1) +} + +func Xgetc_unlocked(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + var v2, v3 uintptr + _, _, _ = v1, v2, v3 + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + v3 = f + 4 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__uflow(tls, f) + } + return v1 +} + +func X_IO_getc_unlocked(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetc_unlocked(tls, f) +} + +func Xfgetc_unlocked(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetc_unlocked(tls, f) +} + +func _locking_getc2(tls *TLS, f uintptr) (r int32) { + var c, old, old1, v11, v2, v4, v8 int32 + var v1, v5, v6, v7 uintptr + _, _, _, _, _, _, _, _, _, _, _ = c, old, old1, v1, v11, v2, v4, v5, v6, v7, v8 + v1 = f + 76 + _a_barrier(tls) + for cond := true; cond; cond = old == 0 && !(_a_sc(tls, v1, Int32FromInt32(MAYBE_WAITERS)-Int32FromInt32(1)) != 0) { + old = _a_ll(tls, v1) + } + _a_barrier(tls) + v2 = old + goto _3 +_3: + if v2 != 0 { + ___lockfile(tls, f) + } + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + v5 = f + 4 + v1 = *(*uintptr)(unsafe.Pointer(v5)) + *(*uintptr)(unsafe.Pointer(v5)) = *(*uintptr)(unsafe.Pointer(v5)) + 1 + v2 = Int32FromUint8(**(**uint8)(__ccgo_up(v1))) + } else { + v2 = X__uflow(tls, f) + } + c = v2 + v6 = f + 76 + _a_barrier(tls) + for cond := true; cond; cond = !(_a_sc(tls, v6, 0) != 0) { + old1 = _a_ll(tls, v6) + } + _a_barrier(tls) + v4 = old1 + goto _9 +_9: + if v4&int32(MAYBE_WAITERS) != 0 { + v7 = f + 76 + v8 = int32(1) + v11 = int32(1) + if v11 != 0 { + v11 = int32(FUTEX_PRIVATE) + } + if v8 < Int32FromInt32(0) { + v8 = int32(INT_MAX) + } + _ = X__syscall3(tls, int32(SYS_futex), int32(v7), int32(Int32FromInt32(FUTEX_WAKE)|v11), v8) != -int32(ENOSYS) || X__syscall3(tls, int32(SYS_futex), int32(v7), int32(Int32FromInt32(FUTEX_WAKE)), v8) != 0 + } + return c +} + +func Xgetchar(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l, v2, v4 int32 + var v1, v5, v6 uintptr + _, _, _, _, _, _ = l, v1, v2, v4, v5, v6 + v1 = uintptr(unsafe.Pointer(&X__stdin_FILE)) + l = AtomicLoadPInt32(v1 + 76) + if l < 0 || l != 0 && l & ^Int32FromInt32(MAYBE_WAITERS) == (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Ftid { + if (*TFILE)(unsafe.Pointer(v1)).Frpos != (*TFILE)(unsafe.Pointer(v1)).Frend { + v6 = v1 + 4 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + v4 = Int32FromUint8(**(**uint8)(__ccgo_up(v5))) + } else { + v4 = X__uflow(tls, v1) + } + v2 = v4 + goto _3 + } + v2 = _locking_getc2(tls, v1) + goto _3 +_3: + return v2 +} + +func Xgetchar_unlocked(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + var v2, v3 uintptr + _, _, _ = v1, v2, v3 + if (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdin_FILE)))).Frpos != (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdin_FILE)))).Frend { + v3 = uintptr(unsafe.Pointer(&X__stdin_FILE)) + 4 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__uflow(tls, uintptr(unsafe.Pointer(&X__stdin_FILE))) + } + return v1 +} + +func Xgetdelim(tls *TLS, s uintptr, n uintptr, delim int32, f uintptr) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v delim=%v f=%v, (%v:)", tls, s, n, delim, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, c, v1, v3 int32 + var i, k, m, v11 Tsize_t + var tmp, z, v6, v7 uintptr + var v10 uint8 + _, _, _, _, _, _, _, _, _, _, _, _, _ = __need_unlock, c, i, k, m, tmp, z, v1, v10, v11, v3, v6, v7 + i = uint32(0) + if AtomicLoadPInt32(f+76) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + if !(n != 0) || !(s != 0) { + **(**int32)(__ccgo_up(f + 72)) |= (*TFILE)(unsafe.Pointer(f)).Fmode - int32(1) + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + if !(**(**uintptr)(__ccgo_up(s)) != 0) { + **(**Tsize_t)(__ccgo_up(n)) = uint32(0) + } + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + z = Xmemchr(tls, (*TFILE)(unsafe.Pointer(f)).Frpos, delim, Uint32FromInt32(int32((*TFILE)(unsafe.Pointer(f)).Frend)-int32((*TFILE)(unsafe.Pointer(f)).Frpos))) + if z != 0 { + v1 = int32(z) - int32((*TFILE)(unsafe.Pointer(f)).Frpos) + int32(1) + } else { + v1 = int32((*TFILE)(unsafe.Pointer(f)).Frend) - int32((*TFILE)(unsafe.Pointer(f)).Frpos) + } + k = Uint32FromInt32(v1) + } else { + z = uintptr(0) + k = uint32(0) + } + if i+k >= **(**Tsize_t)(__ccgo_up(n)) { + m = i + k + uint32(2) + if !(z != 0) && m < Uint32FromUint32(0xffffffff)/Uint32FromInt32(4) { + m = m + m/uint32(2) + } + tmp = Xrealloc(tls, **(**uintptr)(__ccgo_up(s)), m) + if !(tmp != 0) { + m = i + k + uint32(2) + tmp = Xrealloc(tls, **(**uintptr)(__ccgo_up(s)), m) + if !(tmp != 0) { + /* Copy as much as fits and ensure no + * pushback remains in the FILE buf. */ + k = **(**Tsize_t)(__ccgo_up(n)) - i + _memcpy(tls, **(**uintptr)(__ccgo_up(s))+uintptr(i), (*TFILE)(unsafe.Pointer(f)).Frpos, k) + **(**uintptr)(__ccgo_up(f + 4)) += uintptr(k) + **(**int32)(__ccgo_up(f + 72)) |= (*TFILE)(unsafe.Pointer(f)).Fmode - int32(1) + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOMEM) + return -int32(1) + } + } + **(**uintptr)(__ccgo_up(s)) = tmp + **(**Tsize_t)(__ccgo_up(n)) = m + } + if k != 0 { + _memcpy(tls, **(**uintptr)(__ccgo_up(s))+uintptr(i), (*TFILE)(unsafe.Pointer(f)).Frpos, k) + **(**uintptr)(__ccgo_up(f + 4)) += uintptr(k) + i = i + k + } + if z != 0 { + break + } + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + v7 = f + 4 + v6 = *(*uintptr)(unsafe.Pointer(v7)) + *(*uintptr)(unsafe.Pointer(v7)) = *(*uintptr)(unsafe.Pointer(v7)) + 1 + v3 = Int32FromUint8(**(**uint8)(__ccgo_up(v6))) + } else { + v3 = X__uflow(tls, f) + } + v1 = v3 + c = v1 + if v1 == -int32(1) { + if !(i != 0) || !((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_EOF) != 0) { + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return -int32(1) + } + break + } + /* If the byte read by getc won't fit without growing the + * output buffer, push it back for next iteration. */ + if i+uint32(1) >= **(**Tsize_t)(__ccgo_up(n)) { + v7 = f + 4 + *(*uintptr)(unsafe.Pointer(v7)) = *(*uintptr)(unsafe.Pointer(v7)) - 1 + v6 = *(*uintptr)(unsafe.Pointer(v7)) + **(**uint8)(__ccgo_up(v6)) = Uint8FromInt32(c) + } else { + v10 = Uint8FromInt32(c) + v11 = i + i = i + 1 + **(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(s)) + uintptr(v11))) = v10 + if Int32FromUint8(v10) == delim { + break + } + } + goto _2 + _2: + } + **(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(s)) + uintptr(i))) = uint8(0) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return Int32FromUint32(i) +} + +func X__getdelim(tls *TLS, s uintptr, n uintptr, delim int32, f uintptr) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v delim=%v f=%v, (%v:)", tls, s, n, delim, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetdelim(tls, s, n, delim, f) +} + +func Xgetline(tls *TLS, s uintptr, n uintptr, f uintptr) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v f=%v, (%v:)", tls, s, n, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetdelim(tls, s, n, int32('\n'), f) +} + +func Xgets(tls *TLS, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, c, v1, v2, v3 int32 + var i, v6 Tsize_t + var v4, v5 uintptr + _, _, _, _, _, _, _, _, _ = __need_unlock, c, i, v1, v2, v3, v4, v5, v6 + i = uint32(0) + if AtomicLoadPInt32(uintptr(unsafe.Pointer(&X__stdin_FILE))+76) >= 0 { + v1 = ___lockfile(tls, uintptr(unsafe.Pointer(&X__stdin_FILE))) + } else { + v1 = 0 + } + __need_unlock = v1 + for { + if (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdin_FILE)))).Frpos != (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdin_FILE)))).Frend { + v5 = uintptr(unsafe.Pointer(&X__stdin_FILE)) + 4 + v4 = *(*uintptr)(unsafe.Pointer(v5)) + *(*uintptr)(unsafe.Pointer(v5)) = *(*uintptr)(unsafe.Pointer(v5)) + 1 + v3 = Int32FromUint8(**(**uint8)(__ccgo_up(v4))) + } else { + v3 = X__uflow(tls, uintptr(unsafe.Pointer(&X__stdin_FILE))) + } + v2 = v3 + c = v2 + if !(v2 != -int32(1) && c != int32('\n')) { + break + } + v6 = i + i = i + 1 + **(**uint8)(__ccgo_up(s + uintptr(v6))) = Uint8FromInt32(c) + } + **(**uint8)(__ccgo_up(s + uintptr(i))) = uint8(0) + if c != int32('\n') && (!((*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdin_FILE)))).Fflags&Uint32FromInt32(F_EOF) != 0) || !(i != 0)) { + s = uintptr(0) + } + if __need_unlock != 0 { + ___unlockfile(tls, uintptr(unsafe.Pointer(&X__stdin_FILE))) + } + return s +} + +func Xgetw(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 int32 + var _ /* x at bp+0 */ int32 + _ = v1 + if Xfread(tls, bp, uint32(4), uint32(1), f) != 0 { + v1 = **(**int32)(__ccgo_up(bp)) + } else { + v1 = -int32(1) + } + return v1 +} + +func Xgetwc(tls *TLS, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfgetwc(tls, f) +} + +func Xgetwchar(tls *TLS) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfgetwc(tls, uintptr(unsafe.Pointer(&X__stdin_FILE))) +} + +func Xgetwchar_unlocked(tls *TLS) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetwchar(tls) +} + +var _ofl_head uintptr +var _ofl_lock [1]int32 + +func X__ofl_lock(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + ___lock(tls, uintptr(unsafe.Pointer(&_ofl_lock))) + return uintptr(unsafe.Pointer(&_ofl_head)) +} + +func X__ofl_unlock(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + ___unlock(tls, uintptr(unsafe.Pointer(&_ofl_lock))) +} + +func X__ofl_add(tls *TLS, f uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var head uintptr + _ = head + head = X__ofl_lock(tls) + (*TFILE)(unsafe.Pointer(f)).Fnext = **(**uintptr)(__ccgo_up(head)) + if **(**uintptr)(__ccgo_up(head)) != 0 { + (*TFILE)(unsafe.Pointer(**(**uintptr)(__ccgo_up(head)))).Fprev = f + } + **(**uintptr)(__ccgo_up(head)) = f + X__ofl_unlock(tls) + return f +} + +type Tcookie1 = struct { + Fbufp uintptr + Fsizep uintptr + Fpos Tsize_t + Fbuf uintptr + Flen1 Tsize_t + Fspace Tsize_t +} + +type Tms_FILE = struct { + F__ccgo_align [0]uint32 + Ff TFILE + Fc Tcookie1 + Fbuf [1024]uint8 +} + +func _ms_seek(tls *TLS, f uintptr, off Toff_t, whence int32) (r Toff_t) { + bp := tls.Alloc(16) + defer tls.Free(16) + var base Tssize_t + var c uintptr + var v2 Tsize_t + _, _, _ = base, c, v2 + c = (*TFILE)(unsafe.Pointer(f)).Fcookie + if !(Uint32FromInt32(whence) > uint32(2)) { + goto _1 + } + goto fail +fail: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return int64(-int32(1)) +_1: + ; + *(*[3]Tsize_t)(unsafe.Pointer(bp)) = [3]Tsize_t{ + 1: (*Tcookie1)(unsafe.Pointer(c)).Fpos, + 2: (*Tcookie1)(unsafe.Pointer(c)).Flen1, + } + base = Int32FromUint32(**(**Tsize_t)(__ccgo_up(bp + uintptr(whence)*4))) + if off < int64(-base) || off > int64(int32(0x7fffffff)-base) { + goto fail + } + v2 = Uint32FromInt64(int64(base) + off) + (*Tcookie1)(unsafe.Pointer(c)).Fpos = v2 + return Int64FromUint32(v2) +} + +func _ms_write(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + var c, newbuf, v1 uintptr + var len2 Tsize_t + _, _, _, _ = c, len2, newbuf, v1 + c = (*TFILE)(unsafe.Pointer(f)).Fcookie + len2 = Uint32FromInt32(int32((*TFILE)(unsafe.Pointer(f)).Fwpos) - int32((*TFILE)(unsafe.Pointer(f)).Fwbase)) + if len2 != 0 { + (*TFILE)(unsafe.Pointer(f)).Fwpos = (*TFILE)(unsafe.Pointer(f)).Fwbase + if _ms_write(tls, f, (*TFILE)(unsafe.Pointer(f)).Fwbase, len2) < len2 { + return uint32(0) + } + } + if len1+(*Tcookie1)(unsafe.Pointer(c)).Fpos >= (*Tcookie1)(unsafe.Pointer(c)).Fspace { + len2 = uint32(2)*(*Tcookie1)(unsafe.Pointer(c)).Fspace + uint32(1) | ((*Tcookie1)(unsafe.Pointer(c)).Fpos + len1 + uint32(1)) + newbuf = Xrealloc(tls, (*Tcookie1)(unsafe.Pointer(c)).Fbuf, len2) + if !(newbuf != 0) { + return uint32(0) + } + v1 = newbuf + (*Tcookie1)(unsafe.Pointer(c)).Fbuf = v1 + **(**uintptr)(__ccgo_up((*Tcookie1)(unsafe.Pointer(c)).Fbufp)) = v1 + Xmemset(tls, (*Tcookie1)(unsafe.Pointer(c)).Fbuf+uintptr((*Tcookie1)(unsafe.Pointer(c)).Fspace), 0, len2-(*Tcookie1)(unsafe.Pointer(c)).Fspace) + (*Tcookie1)(unsafe.Pointer(c)).Fspace = len2 + } + _memcpy(tls, (*Tcookie1)(unsafe.Pointer(c)).Fbuf+uintptr((*Tcookie1)(unsafe.Pointer(c)).Fpos), buf, len1) + **(**Tsize_t)(__ccgo_up(c + 8)) += len1 + if (*Tcookie1)(unsafe.Pointer(c)).Fpos >= (*Tcookie1)(unsafe.Pointer(c)).Flen1 { + (*Tcookie1)(unsafe.Pointer(c)).Flen1 = (*Tcookie1)(unsafe.Pointer(c)).Fpos + } + **(**Tsize_t)(__ccgo_up((*Tcookie1)(unsafe.Pointer(c)).Fsizep)) = (*Tcookie1)(unsafe.Pointer(c)).Fpos + return len1 +} + +func _ms_close(tls *TLS, f uintptr) (r int32) { + return 0 +} + +func Xopen_memstream(tls *TLS, bufp uintptr, sizep uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v bufp=%v sizep=%v, (%v:)", tls, bufp, sizep, origin(2)) + defer func() { trc("-> %v", r) }() + } + var buf, f, v1 uintptr + var v3, v4, v5 Tsize_t + _, _, _, _, _, _ = buf, f, v1, v3, v4, v5 + v1 = Xmalloc(tls, uint32(1192)) + f = v1 + if !(v1 != 0) { + return uintptr(0) + } + v1 = Xmalloc(tls, uint32(1)) + buf = v1 + if !(v1 != 0) { + Xfree(tls, f) + return uintptr(0) + } + Xmemset(tls, f, 0, uint32(144)) + Xmemset(tls, f+144, 0, uint32(24)) + (*Tms_FILE)(unsafe.Pointer(f)).Ff.Fcookie = f + 144 + (*Tms_FILE)(unsafe.Pointer(f)).Fc.Fbufp = bufp + (*Tms_FILE)(unsafe.Pointer(f)).Fc.Fsizep = sizep + v5 = Uint32FromInt32(0) + **(**Tsize_t)(__ccgo_up(sizep)) = v5 + v4 = v5 + (*Tms_FILE)(unsafe.Pointer(f)).Fc.Fspace = v4 + v3 = v4 + (*Tms_FILE)(unsafe.Pointer(f)).Fc.Flen1 = v3 + (*Tms_FILE)(unsafe.Pointer(f)).Fc.Fpos = v3 + v1 = buf + **(**uintptr)(__ccgo_up(bufp)) = v1 + (*Tms_FILE)(unsafe.Pointer(f)).Fc.Fbuf = v1 + **(**uint8)(__ccgo_up(buf)) = uint8(0) + (*Tms_FILE)(unsafe.Pointer(f)).Ff.Fflags = uint32(F_NORD) + (*Tms_FILE)(unsafe.Pointer(f)).Ff.Ffd = -int32(1) + (*Tms_FILE)(unsafe.Pointer(f)).Ff.Fbuf = f + 168 + (*Tms_FILE)(unsafe.Pointer(f)).Ff.Fbuf_size = uint32(1024) + (*Tms_FILE)(unsafe.Pointer(f)).Ff.Flbf = -int32(1) + (*Tms_FILE)(unsafe.Pointer(f)).Ff.Fwrite = __ccgo_fp(_ms_write) + (*Tms_FILE)(unsafe.Pointer(f)).Ff.Fseek = __ccgo_fp(_ms_seek) + (*Tms_FILE)(unsafe.Pointer(f)).Ff.Fclose1 = __ccgo_fp(_ms_close) + (*Tms_FILE)(unsafe.Pointer(f)).Ff.Fmode = -int32(1) + if !(X__libc.Fthreaded != 0) { + AtomicStorePInt32(f+76, -int32(1)) + } + return X__ofl_add(tls, f) +} + +type Tcookie2 = struct { + Fbufp uintptr + Fsizep uintptr + Fpos Tsize_t + Fbuf uintptr + Flen1 Tsize_t + Fspace Tsize_t + Fmbs Tmbstate_t +} + +type Twms_FILE = struct { + F__ccgo_align [0]uint32 + Ff TFILE + Fc Tcookie2 + Fbuf [1]uint8 + F__ccgo_pad3 [7]byte +} + +func _wms_seek(tls *TLS, f uintptr, off Toff_t, whence int32) (r Toff_t) { + bp := tls.Alloc(16) + defer tls.Free(16) + var base Tssize_t + var c uintptr + var v2 Tsize_t + _, _, _ = base, c, v2 + c = (*TFILE)(unsafe.Pointer(f)).Fcookie + if !(Uint32FromInt32(whence) > uint32(2)) { + goto _1 + } + goto fail +fail: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return int64(-int32(1)) +_1: + ; + *(*[3]Tsize_t)(unsafe.Pointer(bp)) = [3]Tsize_t{ + 1: (*Tcookie2)(unsafe.Pointer(c)).Fpos, + 2: (*Tcookie2)(unsafe.Pointer(c)).Flen1, + } + base = Int32FromUint32(**(**Tsize_t)(__ccgo_up(bp + uintptr(whence)*4))) + if off < int64(-base) || off > int64(Int32FromInt32(0x7fffffff)/Int32FromInt32(4)-base) { + goto fail + } + Xmemset(tls, c+24, 0, uint32(8)) + v2 = Uint32FromInt64(int64(base) + off) + (*Tcookie2)(unsafe.Pointer(c)).Fpos = v2 + return Int64FromUint32(v2) +} + +func _wms_write(tls *TLS, f uintptr, _buf uintptr, len1 Tsize_t) (r Tsize_t) { + bp := tls.Alloc(16) + defer tls.Free(16) + *(*uintptr)(unsafe.Pointer(bp)) = _buf + var c, newbuf, v1 uintptr + var len2 Tsize_t + _, _, _, _ = c, len2, newbuf, v1 + c = (*TFILE)(unsafe.Pointer(f)).Fcookie + len2 = Uint32FromInt32(int32((*TFILE)(unsafe.Pointer(f)).Fwpos) - int32((*TFILE)(unsafe.Pointer(f)).Fwbase)) + if len2 != 0 { + (*TFILE)(unsafe.Pointer(f)).Fwpos = (*TFILE)(unsafe.Pointer(f)).Fwbase + if _wms_write(tls, f, (*TFILE)(unsafe.Pointer(f)).Fwbase, len2) < len2 { + return uint32(0) + } + } + if len1+(*Tcookie2)(unsafe.Pointer(c)).Fpos >= (*Tcookie2)(unsafe.Pointer(c)).Fspace { + len2 = uint32(2)*(*Tcookie2)(unsafe.Pointer(c)).Fspace + uint32(1) | ((*Tcookie2)(unsafe.Pointer(c)).Fpos + len1 + uint32(1)) + if len2 > Uint32FromInt32(Int32FromInt32(0x7fffffff)/Int32FromInt32(4)) { + return uint32(0) + } + newbuf = Xrealloc(tls, (*Tcookie2)(unsafe.Pointer(c)).Fbuf, len2*uint32(4)) + if !(newbuf != 0) { + return uint32(0) + } + v1 = newbuf + (*Tcookie2)(unsafe.Pointer(c)).Fbuf = v1 + **(**uintptr)(__ccgo_up((*Tcookie2)(unsafe.Pointer(c)).Fbufp)) = v1 + Xmemset(tls, (*Tcookie2)(unsafe.Pointer(c)).Fbuf+uintptr((*Tcookie2)(unsafe.Pointer(c)).Fspace)*4, 0, uint32(4)*(len2-(*Tcookie2)(unsafe.Pointer(c)).Fspace)) + (*Tcookie2)(unsafe.Pointer(c)).Fspace = len2 + } + len2 = Xmbsnrtowcs(tls, (*Tcookie2)(unsafe.Pointer(c)).Fbuf+uintptr((*Tcookie2)(unsafe.Pointer(c)).Fpos)*4, bp, len1, (*Tcookie2)(unsafe.Pointer(c)).Fspace-(*Tcookie2)(unsafe.Pointer(c)).Fpos, c+24) + if len2 == Uint32FromInt32(-Int32FromInt32(1)) { + return uint32(0) + } + **(**Tsize_t)(__ccgo_up(c + 8)) += len2 + if (*Tcookie2)(unsafe.Pointer(c)).Fpos >= (*Tcookie2)(unsafe.Pointer(c)).Flen1 { + (*Tcookie2)(unsafe.Pointer(c)).Flen1 = (*Tcookie2)(unsafe.Pointer(c)).Fpos + } + **(**Tsize_t)(__ccgo_up((*Tcookie2)(unsafe.Pointer(c)).Fsizep)) = (*Tcookie2)(unsafe.Pointer(c)).Fpos + return len1 +} + +func _wms_close(tls *TLS, f uintptr) (r int32) { + return 0 +} + +func Xopen_wmemstream(tls *TLS, bufp uintptr, sizep uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v bufp=%v sizep=%v, (%v:)", tls, bufp, sizep, origin(2)) + defer func() { trc("-> %v", r) }() + } + var buf, f, v1 uintptr + var v3, v4, v5 Tsize_t + _, _, _, _, _, _ = buf, f, v1, v3, v4, v5 + v1 = Xmalloc(tls, uint32(184)) + f = v1 + if !(v1 != 0) { + return uintptr(0) + } + v1 = Xmalloc(tls, uint32(4)) + buf = v1 + if !(v1 != 0) { + Xfree(tls, f) + return uintptr(0) + } + Xmemset(tls, f, 0, uint32(144)) + Xmemset(tls, f+144, 0, uint32(32)) + (*Twms_FILE)(unsafe.Pointer(f)).Ff.Fcookie = f + 144 + (*Twms_FILE)(unsafe.Pointer(f)).Fc.Fbufp = bufp + (*Twms_FILE)(unsafe.Pointer(f)).Fc.Fsizep = sizep + v5 = Uint32FromInt32(0) + **(**Tsize_t)(__ccgo_up(sizep)) = v5 + v4 = v5 + (*Twms_FILE)(unsafe.Pointer(f)).Fc.Fspace = v4 + v3 = v4 + (*Twms_FILE)(unsafe.Pointer(f)).Fc.Flen1 = v3 + (*Twms_FILE)(unsafe.Pointer(f)).Fc.Fpos = v3 + v1 = buf + **(**uintptr)(__ccgo_up(bufp)) = v1 + (*Twms_FILE)(unsafe.Pointer(f)).Fc.Fbuf = v1 + **(**Twchar_t)(__ccgo_up(buf)) = uint32(0) + (*Twms_FILE)(unsafe.Pointer(f)).Ff.Fflags = uint32(F_NORD) + (*Twms_FILE)(unsafe.Pointer(f)).Ff.Ffd = -int32(1) + (*Twms_FILE)(unsafe.Pointer(f)).Ff.Fbuf = f + 176 + (*Twms_FILE)(unsafe.Pointer(f)).Ff.Fbuf_size = uint32(0) + (*Twms_FILE)(unsafe.Pointer(f)).Ff.Flbf = -int32(1) + (*Twms_FILE)(unsafe.Pointer(f)).Ff.Fwrite = __ccgo_fp(_wms_write) + (*Twms_FILE)(unsafe.Pointer(f)).Ff.Fseek = __ccgo_fp(_wms_seek) + (*Twms_FILE)(unsafe.Pointer(f)).Ff.Fclose1 = __ccgo_fp(_wms_close) + if !(X__libc.Fthreaded != 0) { + AtomicStorePInt32(f+76, -int32(1)) + } + Xfwide(tls, f, int32(1)) + return X__ofl_add(tls, f) +} + +func Xpclose(tls *TLS, f uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var pid Tpid_t + var r, v1 int32 + var _ /* status at bp+0 */ int32 + _, _, _ = pid, r, v1 + pid = (*TFILE)(unsafe.Pointer(f)).Fpipe_pid + Xfclose(tls, f) + for { + v1 = int32(X__syscall4(tls, int32(SYS_wait4), pid, int32(bp), int32(Int32FromInt32(0)), int32(Int32FromInt32(0)))) + r = v1 + if !(v1 == -int32(EINTR)) { + break + } + } + if r < 0 { + return X__syscall_ret(tls, Uint32FromInt32(r)) + } + return **(**int32)(__ccgo_up(bp)) +} + +func Xperror(tls *TLS, msg uintptr) { + if __ccgo_strace { + trc("tls=%v msg=%v, (%v:)", tls, msg, origin(2)) + } + var __need_unlock, old_mode, v1 int32 + var errstr, f, old_locale uintptr + _, _, _, _, _, _ = __need_unlock, errstr, f, old_locale, old_mode, v1 + f = uintptr(unsafe.Pointer(&X__stderr_FILE)) + errstr = Xstrerror(tls, **(**int32)(__ccgo_up(X__errno_location(tls)))) + if AtomicLoadPInt32(f+76) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + /* Save stderr's orientation and encoding rule, since perror is not + * permitted to change them. */ + old_locale = (*TFILE)(unsafe.Pointer(f)).Flocale + old_mode = (*TFILE)(unsafe.Pointer(f)).Fmode + if msg != 0 && **(**uint8)(__ccgo_up(msg)) != 0 { + Xfwrite(tls, msg, _strlen(tls, msg), uint32(1), f) + Xfputc(tls, int32(':'), f) + Xfputc(tls, int32(' '), f) + } + Xfwrite(tls, errstr, _strlen(tls, errstr), uint32(1), f) + Xfputc(tls, int32('\n'), f) + (*TFILE)(unsafe.Pointer(f)).Fmode = old_mode + (*TFILE)(unsafe.Pointer(f)).Flocale = old_locale + if __need_unlock != 0 { + ___unlockfile(tls, f) + } +} + +func Xprintf(tls *TLS, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v va=%v, (%v:)", tls, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvfprintf(tls, uintptr(unsafe.Pointer(&X__stdout_FILE)), fmt, ap) + _ = ap + return ret +} + +func _locking_putc1(tls *TLS, c int32, f uintptr) (r int32) { + var old, old1, v2, v4, v9 int32 + var v1, v6 uintptr + var v5 uint8 + _, _, _, _, _, _, _, _ = old, old1, v1, v2, v4, v5, v6, v9 + v1 = f + 76 + _a_barrier(tls) + for cond := true; cond; cond = old == 0 && !(_a_sc(tls, v1, Int32FromInt32(MAYBE_WAITERS)-Int32FromInt32(1)) != 0) { + old = _a_ll(tls, v1) + } + _a_barrier(tls) + v2 = old + goto _3 +_3: + if v2 != 0 { + ___lockfile(tls, f) + } + if Int32FromUint8(Uint8FromInt32(c)) != (*TFILE)(unsafe.Pointer(f)).Flbf && (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwend { + v5 = Uint8FromInt32(c) + v6 = f + 20 + v1 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + **(**uint8)(__ccgo_up(v1)) = v5 + v2 = Int32FromUint8(v5) + } else { + v2 = X__overflow(tls, f, Int32FromUint8(Uint8FromInt32(c))) + } + c = v2 + v1 = f + 76 + _a_barrier(tls) + for cond := true; cond; cond = !(_a_sc(tls, v1, 0) != 0) { + old1 = _a_ll(tls, v1) + } + _a_barrier(tls) + v2 = old1 + goto _10 +_10: + if v2&int32(MAYBE_WAITERS) != 0 { + v6 = f + 76 + v4 = int32(1) + v9 = int32(1) + if v9 != 0 { + v9 = int32(FUTEX_PRIVATE) + } + if v4 < Int32FromInt32(0) { + v4 = int32(INT_MAX) + } + _ = X__syscall3(tls, int32(SYS_futex), int32(v6), int32(Int32FromInt32(FUTEX_WAKE)|v9), v4) != -int32(ENOSYS) || X__syscall3(tls, int32(SYS_futex), int32(v6), int32(Int32FromInt32(FUTEX_WAKE)), v4) != 0 + } + return c +} + +func Xputc(tls *TLS, c1 int32, f1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v c1=%v f1=%v, (%v:)", tls, c1, f1, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l, v1, v3, v5 int32 + var v2, v7, v8 uintptr + var v6 uint8 + _, _, _, _, _, _, _, _ = l, v1, v2, v3, v5, v6, v7, v8 + v1 = c1 + v2 = f1 + l = AtomicLoadPInt32(v2 + 76) + if l < 0 || l != 0 && l & ^Int32FromInt32(MAYBE_WAITERS) == (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Ftid { + if Int32FromUint8(Uint8FromInt32(v1)) != (*TFILE)(unsafe.Pointer(v2)).Flbf && (*TFILE)(unsafe.Pointer(v2)).Fwpos != (*TFILE)(unsafe.Pointer(v2)).Fwend { + v6 = Uint8FromInt32(v1) + v8 = v2 + 20 + v7 = *(*uintptr)(unsafe.Pointer(v8)) + *(*uintptr)(unsafe.Pointer(v8)) = *(*uintptr)(unsafe.Pointer(v8)) + 1 + **(**uint8)(__ccgo_up(v7)) = v6 + v5 = Int32FromUint8(v6) + } else { + v5 = X__overflow(tls, v2, Int32FromUint8(Uint8FromInt32(v1))) + } + v3 = v5 + goto _4 + } + v3 = _locking_putc1(tls, v1, v2) + goto _4 +_4: + return v3 +} + +func X_IO_putc(tls *TLS, c1 int32, f1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v c1=%v f1=%v, (%v:)", tls, c1, f1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xputc(tls, c1, f1) +} + +func Xputc_unlocked(tls *TLS, c int32, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v f=%v, (%v:)", tls, c, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + var v2 uint8 + var v3, v4 uintptr + _, _, _, _ = v1, v2, v3, v4 + if Int32FromUint8(Uint8FromInt32(c)) != (*TFILE)(unsafe.Pointer(f)).Flbf && (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwend { + v2 = Uint8FromInt32(c) + v4 = f + 20 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + **(**uint8)(__ccgo_up(v3)) = v2 + v1 = Int32FromUint8(v2) + } else { + v1 = X__overflow(tls, f, Int32FromUint8(Uint8FromInt32(c))) + } + return v1 +} + +func X_IO_putc_unlocked(tls *TLS, c int32, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v f=%v, (%v:)", tls, c, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xputc_unlocked(tls, c, f) +} + +func Xfputc_unlocked(tls *TLS, c int32, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v f=%v, (%v:)", tls, c, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xputc_unlocked(tls, c, f) +} + +func _locking_putc2(tls *TLS, c int32, f uintptr) (r int32) { + var old, old1, v2, v4, v9 int32 + var v1, v6 uintptr + var v5 uint8 + _, _, _, _, _, _, _, _ = old, old1, v1, v2, v4, v5, v6, v9 + v1 = f + 76 + _a_barrier(tls) + for cond := true; cond; cond = old == 0 && !(_a_sc(tls, v1, Int32FromInt32(MAYBE_WAITERS)-Int32FromInt32(1)) != 0) { + old = _a_ll(tls, v1) + } + _a_barrier(tls) + v2 = old + goto _3 +_3: + if v2 != 0 { + ___lockfile(tls, f) + } + if Int32FromUint8(Uint8FromInt32(c)) != (*TFILE)(unsafe.Pointer(f)).Flbf && (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwend { + v5 = Uint8FromInt32(c) + v6 = f + 20 + v1 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + **(**uint8)(__ccgo_up(v1)) = v5 + v2 = Int32FromUint8(v5) + } else { + v2 = X__overflow(tls, f, Int32FromUint8(Uint8FromInt32(c))) + } + c = v2 + v1 = f + 76 + _a_barrier(tls) + for cond := true; cond; cond = !(_a_sc(tls, v1, 0) != 0) { + old1 = _a_ll(tls, v1) + } + _a_barrier(tls) + v2 = old1 + goto _10 +_10: + if v2&int32(MAYBE_WAITERS) != 0 { + v6 = f + 76 + v4 = int32(1) + v9 = int32(1) + if v9 != 0 { + v9 = int32(FUTEX_PRIVATE) + } + if v4 < Int32FromInt32(0) { + v4 = int32(INT_MAX) + } + _ = X__syscall3(tls, int32(SYS_futex), int32(v6), int32(Int32FromInt32(FUTEX_WAKE)|v9), v4) != -int32(ENOSYS) || X__syscall3(tls, int32(SYS_futex), int32(v6), int32(Int32FromInt32(FUTEX_WAKE)), v4) != 0 + } + return c +} + +func Xputchar(tls *TLS, c1 int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c1=%v, (%v:)", tls, c1, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l, v1, v3, v5 int32 + var v2, v7, v8 uintptr + var v6 uint8 + _, _, _, _, _, _, _, _ = l, v1, v2, v3, v5, v6, v7, v8 + v1 = c1 + v2 = uintptr(unsafe.Pointer(&X__stdout_FILE)) + l = AtomicLoadPInt32(v2 + 76) + if l < 0 || l != 0 && l & ^Int32FromInt32(MAYBE_WAITERS) == (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Ftid { + if Int32FromUint8(Uint8FromInt32(v1)) != (*TFILE)(unsafe.Pointer(v2)).Flbf && (*TFILE)(unsafe.Pointer(v2)).Fwpos != (*TFILE)(unsafe.Pointer(v2)).Fwend { + v6 = Uint8FromInt32(v1) + v8 = v2 + 20 + v7 = *(*uintptr)(unsafe.Pointer(v8)) + *(*uintptr)(unsafe.Pointer(v8)) = *(*uintptr)(unsafe.Pointer(v8)) + 1 + **(**uint8)(__ccgo_up(v7)) = v6 + v5 = Int32FromUint8(v6) + } else { + v5 = X__overflow(tls, v2, Int32FromUint8(Uint8FromInt32(v1))) + } + v3 = v5 + goto _4 + } + v3 = _locking_putc2(tls, v1, v2) + goto _4 +_4: + return v3 +} + +func Xputchar_unlocked(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + var v2 uint8 + var v3, v4 uintptr + _, _, _, _ = v1, v2, v3, v4 + if Int32FromUint8(Uint8FromInt32(c)) != (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdout_FILE)))).Flbf && (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdout_FILE)))).Fwpos != (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdout_FILE)))).Fwend { + v2 = Uint8FromInt32(c) + v4 = uintptr(unsafe.Pointer(&X__stdout_FILE)) + 20 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + **(**uint8)(__ccgo_up(v3)) = v2 + v1 = Int32FromUint8(v2) + } else { + v1 = X__overflow(tls, uintptr(unsafe.Pointer(&X__stdout_FILE)), Int32FromUint8(Uint8FromInt32(c))) + } + return v1 +} + +func Xputs(tls *TLS, s uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var __need_unlock, r, v1, v2 int32 + var v3 uint8 + var v4, v5 uintptr + var v6 bool + _, _, _, _, _, _, _, _ = __need_unlock, r, v1, v2, v3, v4, v5, v6 + if AtomicLoadPInt32(uintptr(unsafe.Pointer(&X__stdout_FILE))+76) >= 0 { + v1 = ___lockfile(tls, uintptr(unsafe.Pointer(&X__stdout_FILE))) + } else { + v1 = 0 + } + __need_unlock = v1 + if v6 = Xfputs(tls, s, uintptr(unsafe.Pointer(&X__stdout_FILE))) < 0; !v6 { + if Int32FromUint8(Uint8FromInt32(Int32FromUint8('\n'))) != (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdout_FILE)))).Flbf && (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdout_FILE)))).Fwpos != (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdout_FILE)))).Fwend { + v3 = Uint8FromInt32(Int32FromUint8('\n')) + v5 = uintptr(unsafe.Pointer(&X__stdout_FILE)) + 20 + v4 = *(*uintptr)(unsafe.Pointer(v5)) + *(*uintptr)(unsafe.Pointer(v5)) = *(*uintptr)(unsafe.Pointer(v5)) + 1 + **(**uint8)(__ccgo_up(v4)) = v3 + v2 = Int32FromUint8(v3) + } else { + v2 = X__overflow(tls, uintptr(unsafe.Pointer(&X__stdout_FILE)), Int32FromUint8(Uint8FromInt32(Int32FromUint8('\n')))) + } + } + r = -BoolInt32(v6 || v2 < 0) + if __need_unlock != 0 { + ___unlockfile(tls, uintptr(unsafe.Pointer(&X__stdout_FILE))) + } + return r +} + +func Xputw(tls *TLS, _x int32, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v _x=%v f=%v, (%v:)", tls, _x, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + *(*int32)(unsafe.Pointer(bp)) = _x + return Int32FromUint32(Xfwrite(tls, bp, uint32(4), uint32(1), f)) - int32(1) +} + +func Xputwc(tls *TLS, c Twchar_t, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v f=%v, (%v:)", tls, c, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfputwc(tls, c, f) +} + +func Xputwchar(tls *TLS, c Twchar_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfputwc(tls, c, uintptr(unsafe.Pointer(&X__stdout_FILE))) +} + +func Xputwchar_unlocked(tls *TLS, c Twchar_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xputwchar(tls, c) +} + +func Xremove(tls *TLS, path uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v path=%v, (%v:)", tls, path, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + r = int32(X__syscall1(tls, int32(SYS_unlink), int32(path))) + if r == -int32(EISDIR) { + r = int32(X__syscall1(tls, int32(SYS_rmdir), int32(path))) + } + return X__syscall_ret(tls, Uint32FromInt32(r)) +} + +func Xrename(tls *TLS, old uintptr, new1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v old=%v new1=%v, (%v:)", tls, old, new1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_rename), int32(old), int32(new1)))) +} + +func Xrewind(tls *TLS, f uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } + var __need_unlock, v1 int32 + _, _ = __need_unlock, v1 + if AtomicLoadPInt32(f+76) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + X__fseeko_unlocked(tls, f, 0, 0) + **(**uint32)(__ccgo_up(f)) &= Uint32FromInt32(^Int32FromInt32(F_ERR)) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } +} + +func Xscanf(tls *TLS, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v va=%v, (%v:)", tls, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvscanf(tls, fmt, ap) + _ = ap + return ret +} + +func X__isoc99_scanf(tls *TLS, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v va=%v, (%v:)", tls, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xscanf(tls, fmt, va) +} + +func Xsetbuf(tls *TLS, f uintptr, buf uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v buf=%v, (%v:)", tls, f, buf, origin(2)) + } + var v1 int32 + _ = v1 + if buf != 0 { + v1 = _IOFBF + } else { + v1 = int32(_IONBF) + } + Xsetvbuf(tls, f, buf, v1, uint32(BUFSIZ)) +} + +func Xsetbuffer(tls *TLS, f uintptr, buf uintptr, size Tsize_t) { + if __ccgo_strace { + trc("tls=%v f=%v buf=%v size=%v, (%v:)", tls, f, buf, size, origin(2)) + } + var v1 int32 + _ = v1 + if buf != 0 { + v1 = _IOFBF + } else { + v1 = int32(_IONBF) + } + Xsetvbuf(tls, f, buf, v1, size) +} + +func Xsetlinebuf(tls *TLS, f uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } + Xsetvbuf(tls, f, uintptr(0), int32(_IOLBF), uint32(0)) +} + +/* The behavior of this function is undefined except when it is the first + * operation on the stream, so the presence or absence of locking is not + * observable in a program whose behavior is defined. Thus no locking is + * performed here. No allocation of buffers is performed, but a buffer + * provided by the caller is used as long as it is suitably sized. */ + +func Xsetvbuf(tls *TLS, f uintptr, buf uintptr, type1 int32, size Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v buf=%v type1=%v size=%v, (%v:)", tls, f, buf, type1, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + (*TFILE)(unsafe.Pointer(f)).Flbf = -int32(1) + if type1 == int32(_IONBF) { + (*TFILE)(unsafe.Pointer(f)).Fbuf_size = uint32(0) + } else { + if type1 == int32(_IOLBF) || type1 == _IOFBF { + if buf != 0 && size >= uint32(UNGET) { + (*TFILE)(unsafe.Pointer(f)).Fbuf = buf + UintptrFromInt32(UNGET) + (*TFILE)(unsafe.Pointer(f)).Fbuf_size = size - uint32(UNGET) + } + if type1 == int32(_IOLBF) && (*TFILE)(unsafe.Pointer(f)).Fbuf_size != 0 { + (*TFILE)(unsafe.Pointer(f)).Flbf = int32('\n') + } + } else { + return -int32(1) + } + } + **(**uint32)(__ccgo_up(f)) |= uint32(F_SVB) + return 0 +} + +func Xsnprintf(tls *TLS, s uintptr, n Tsize_t, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v fmt=%v va=%v, (%v:)", tls, s, n, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvsnprintf(tls, s, n, fmt, ap) + _ = ap + return ret +} + +func Xsprintf(tls *TLS, s uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v va=%v, (%v:)", tls, s, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvsprintf(tls, s, fmt, ap) + _ = ap + return ret +} + +func Xsscanf(tls *TLS, s uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v va=%v, (%v:)", tls, s, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvsscanf(tls, s, fmt, ap) + _ = ap + return ret +} + +func X__isoc99_sscanf(tls *TLS, s uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v va=%v, (%v:)", tls, s, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xsscanf(tls, s, fmt, va) +} + +var _buf5 [8]uint8 + +func init() { + p := unsafe.Pointer(&X__stderr_FILE) + *(*uintptr)(unsafe.Add(p, 12)) = __ccgo_fp(X__stdio_close) + *(*uintptr)(unsafe.Add(p, 36)) = __ccgo_fp(X__stdio_write) + *(*uintptr)(unsafe.Add(p, 40)) = __ccgo_fp(X__stdio_seek) +} + +var _buf6 [1032]uint8 + +func init() { + p := unsafe.Pointer(&X__stdin_FILE) + *(*uintptr)(unsafe.Add(p, 12)) = __ccgo_fp(X__stdio_close) + *(*uintptr)(unsafe.Add(p, 32)) = __ccgo_fp(X__stdio_read) + *(*uintptr)(unsafe.Add(p, 40)) = __ccgo_fp(X__stdio_seek) +} + +var _buf7 [1032]uint8 + +func init() { + p := unsafe.Pointer(&X__stdout_FILE) + *(*uintptr)(unsafe.Add(p, 12)) = __ccgo_fp(X__stdio_close) + *(*uintptr)(unsafe.Add(p, 36)) = __ccgo_fp(X__stdout_write) + *(*uintptr)(unsafe.Add(p, 40)) = __ccgo_fp(X__stdio_seek) +} + +func Xswprintf(tls *TLS, s uintptr, n Tsize_t, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v fmt=%v va=%v, (%v:)", tls, s, n, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvswprintf(tls, s, n, fmt, ap) + _ = ap + return ret +} + +func Xswscanf(tls *TLS, s uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v va=%v, (%v:)", tls, s, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvswscanf(tls, s, fmt, ap) + _ = ap + return ret +} + +func X__isoc99_swscanf(tls *TLS, s uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v va=%v, (%v:)", tls, s, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xswscanf(tls, s, fmt, va) +} + +const MAXTRIES = 100 + +func Xtempnam(tls *TLS, dir uintptr, pfx uintptr) (r1 uintptr) { + if __ccgo_strace { + trc("tls=%v dir=%v pfx=%v, (%v:)", tls, dir, pfx, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(4112) + defer tls.Free(4112) + var dl, l, pl Tsize_t + var r, try int32 + var _ /* s at bp+1 */ [4096]uint8 + _, _, _, _, _ = dl, l, pl, r, try + if !(dir != 0) { + dir = __ccgo_ts + 1406 + } + if !(pfx != 0) { + pfx = __ccgo_ts + 1411 + } + dl = _strlen(tls, dir) + pl = _strlen(tls, pfx) + l = dl + uint32(1) + pl + uint32(1) + uint32(6) + if l >= uint32(PATH_MAX) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENAMETOOLONG) + return uintptr(0) + } + _memcpy(tls, bp+1, dir, dl) + (**(**[4096]uint8)(__ccgo_up(bp + 1)))[dl] = uint8('/') + _memcpy(tls, bp+1+uintptr(dl)+uintptr(1), pfx, pl) + (**(**[4096]uint8)(__ccgo_up(bp + 1)))[dl+uint32(1)+pl] = uint8('_') + (**(**[4096]uint8)(__ccgo_up(bp + 1)))[l] = uint8(0) + try = 0 + for { + if !(try < int32(MAXTRIES)) { + break + } + ___randname(tls, bp+1+uintptr(l)-uintptr(6)) + *(*[1]uint8)(unsafe.Pointer(bp)) = [1]uint8{} + r = int32(X__syscall3(tls, int32(SYS_readlink), int32(bp+1), int32(bp), int32(Int32FromInt32(1)))) + if r == -int32(ENOENT) { + return Xstrdup(tls, bp+1) + } + goto _1 + _1: + ; + try = try + 1 + } + return uintptr(0) +} + +func Xtmpfile(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var f uintptr + var fd, try int32 + var _ /* s at bp+0 */ [20]uint8 + _, _, _ = f, fd, try + **(**[20]uint8)(__ccgo_up(bp)) = [20]uint8{'/', 't', 'm', 'p', '/', 't', 'm', 'p', 'f', 'i', 'l', 'e', '_', 'X', 'X', 'X', 'X', 'X', 'X'} + try = 0 + for { + if !(try < int32(MAXTRIES)) { + break + } + ___randname(tls, bp+uintptr(13)) + fd = X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_open), int32(bp), int32(Int32FromInt32(O_RDWR)|Int32FromInt32(O_CREAT)|Int32FromInt32(O_EXCL)|Int32FromInt32(O_LARGEFILE)), int32(Int32FromInt32(0600))))) + if fd >= 0 { + X__syscall1(tls, int32(SYS_unlink), int32(bp)) + f = X__fdopen(tls, fd, __ccgo_ts+1416) + if !(f != 0) { + X__syscall1(tls, int32(SYS_close), fd) + } + return f + } + goto _1 + _1: + ; + try = try + 1 + } + return uintptr(0) +} + +func Xtmpnam(tls *TLS, buf uintptr) (r1 uintptr) { + if __ccgo_strace { + trc("tls=%v buf=%v, (%v:)", tls, buf, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var r, try int32 + var v2 uintptr + var _ /* s at bp+1 */ [19]uint8 + _, _, _ = r, try, v2 + **(**[19]uint8)(__ccgo_up(bp + 1)) = [19]uint8{'/', 't', 'm', 'p', '/', 't', 'm', 'p', 'n', 'a', 'm', '_', 'X', 'X', 'X', 'X', 'X', 'X'} + try = 0 + for { + if !(try < int32(MAXTRIES)) { + break + } + ___randname(tls, bp+1+uintptr(12)) + *(*[1]uint8)(unsafe.Pointer(bp)) = [1]uint8{} + r = int32(X__syscall3(tls, int32(SYS_readlink), int32(bp+1), int32(bp), int32(Int32FromInt32(1)))) + if r == -int32(ENOENT) { + if buf != 0 { + v2 = buf + } else { + v2 = uintptr(unsafe.Pointer(&_internal1)) + } + return Xstrcpy(tls, v2, bp+1) + } + goto _1 + _1: + ; + try = try + 1 + } + return uintptr(0) +} + +var _internal1 [20]uint8 + +func Xungetc(tls *TLS, c int32, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v f=%v, (%v:)", tls, c, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, v1 int32 + var v2, v3 uintptr + _, _, _, _ = __need_unlock, v1, v2, v3 + if c == -int32(1) { + return c + } + if AtomicLoadPInt32(f+76) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + if !((*TFILE)(unsafe.Pointer(f)).Frpos != 0) { + X__toread(tls, f) + } + if !((*TFILE)(unsafe.Pointer(f)).Frpos != 0) || (*TFILE)(unsafe.Pointer(f)).Frpos <= (*TFILE)(unsafe.Pointer(f)).Fbuf-uintptr(UNGET) { + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return -int32(1) + } + v3 = f + 4 + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) - 1 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + **(**uint8)(__ccgo_up(v2)) = Uint8FromInt32(c) + **(**uint32)(__ccgo_up(f)) &= Uint32FromInt32(^Int32FromInt32(F_EOF)) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return Int32FromUint8(Uint8FromInt32(c)) +} + +func Xungetwc(tls *TLS, c Twint_t, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v f=%v, (%v:)", tls, c, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var __need_unlock, l, v1 int32 + var loc Tlocale_t + var ploc, v4, v5 uintptr + var v3 bool + var _ /* mbc at bp+0 */ [4]uint8 + _, _, _, _, _, _, _, _ = __need_unlock, l, loc, ploc, v1, v3, v4, v5 + ploc = uintptr(___get_tp(tls)) + 88 + loc = **(**Tlocale_t)(__ccgo_up(ploc)) + if AtomicLoadPInt32(f+76) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + if (*TFILE)(unsafe.Pointer(f)).Fmode <= 0 { + Xfwide(tls, f, int32(1)) + } + **(**Tlocale_t)(__ccgo_up(ploc)) = (*TFILE)(unsafe.Pointer(f)).Flocale + if !((*TFILE)(unsafe.Pointer(f)).Frpos != 0) { + X__toread(tls, f) + } + if v3 = !((*TFILE)(unsafe.Pointer(f)).Frpos != 0) || c == uint32(0xffffffff); !v3 { + v1 = Int32FromUint32(Xwcrtomb(tls, bp, c, uintptr(0))) + l = v1 + } + if v3 || v1 < 0 || (*TFILE)(unsafe.Pointer(f)).Frpos < (*TFILE)(unsafe.Pointer(f)).Fbuf-uintptr(UNGET)+uintptr(l) { + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + **(**Tlocale_t)(__ccgo_up(ploc)) = loc + return uint32(0xffffffff) + } + if BoolInt32(c < uint32(128)) != 0 { + v5 = f + 4 + *(*uintptr)(unsafe.Pointer(v5)) = *(*uintptr)(unsafe.Pointer(v5)) - 1 + v4 = *(*uintptr)(unsafe.Pointer(v5)) + **(**uint8)(__ccgo_up(v4)) = uint8(c) + } else { + v4 = f + 4 + *(*uintptr)(unsafe.Pointer(v4)) -= uintptr(l) + _memcpy(tls, *(*uintptr)(unsafe.Pointer(v4)), bp, Uint32FromInt32(l)) + } + **(**uint32)(__ccgo_up(f)) &= Uint32FromInt32(^Int32FromInt32(F_EOF)) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + **(**Tlocale_t)(__ccgo_up(ploc)) = loc + return c +} + +func Xvasprintf(tls *TLS, s uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v ap=%v, (%v:)", tls, s, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap2 Tva_list + var l int32 + var v1 uintptr + var v2 bool + _, _, _, _ = ap2, l, v1, v2 + ap2 = ap + l = Xvsnprintf(tls, uintptr(0), uint32(0), fmt, ap2) + _ = ap2 + if v2 = l < 0; !v2 { + v1 = Xmalloc(tls, Uint32FromInt32(l)+uint32(1)) + **(**uintptr)(__ccgo_up(s)) = v1 + } + if v2 || !(v1 != 0) { + return -int32(1) + } + return Xvsnprintf(tls, **(**uintptr)(__ccgo_up(s)), Uint32FromInt32(l)+uint32(1), fmt, ap) +} + +func Xvdprintf(tls *TLS, fd int32, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v fmt=%v ap=%v, (%v:)", tls, fd, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(144) + defer tls.Free(144) + var _ /* f at bp+0 */ TFILE + **(**TFILE)(__ccgo_up(bp)) = TFILE{ + Fwrite: __ccgo_fp(X__stdio_write), + Fbuf: fmt, + Ffd: fd, + Flock: -int32(1), + Flbf: -int32(1), + } + return Xvfprintf(tls, bp, fmt, ap) +} + +const ALT_FORM = 8 +const FLAGMASK = 75913 +const GROUPED = 128 +const LDBL_EPSILON3 = 2.22044604925031308085e-16 +const LEFT_ADJ = 8192 +const MARK_POS = 2048 +const PAD_POS = 1 +const ZERO_PAD = 65536 + +const _BARE = 0 +const _LPRE = 1 +const _LLPRE = 2 +const _HPRE = 3 +const _HHPRE = 4 +const _BIGLPRE = 5 +const _ZTPRE = 6 +const _JPRE = 7 +const _STOP = 8 +const _PTR = 9 +const _INT = 10 +const _UINT = 11 +const _ULLONG = 12 +const _LONG = 13 +const _ULONG = 14 +const _SHORT = 15 +const _USHORT = 16 +const _CHAR = 17 +const _UCHAR = 18 +const _LLONG = 19 +const _SIZET = 20 +const _IMAX = 21 +const _UMAX = 22 +const _PDIFF = 23 +const _UIPTR = 24 +const _DBL = 25 +const _LDBL = 26 +const _NOARG = 27 +const _MAXSTATE = 28 + +var _states = [8][58]uint8{ + 0: { + 0: uint8(_DBL), + 2: uint8(_UINT), + 4: uint8(_DBL), + 5: uint8(_DBL), + 6: uint8(_DBL), + 11: uint8(_BIGLPRE), + 18: uint8(_PTR), + 23: uint8(_UINT), + 32: uint8(_DBL), + 34: uint8(_INT), + 35: uint8(_INT), + 36: uint8(_DBL), + 37: uint8(_DBL), + 38: uint8(_DBL), + 39: uint8(_HPRE), + 40: uint8(_INT), + 41: uint8(_JPRE), + 43: uint8(_LPRE), + 44: uint8(_NOARG), + 45: uint8(_PTR), + 46: uint8(_UINT), + 47: uint8(_UIPTR), + 50: uint8(_PTR), + 51: uint8(_ZTPRE), + 52: uint8(_UINT), + 55: uint8(_UINT), + 57: uint8(_ZTPRE), + }, + 1: { + 0: uint8(_DBL), + 4: uint8(_DBL), + 5: uint8(_DBL), + 6: uint8(_DBL), + 23: uint8(_ULONG), + 32: uint8(_DBL), + 34: uint8(_UINT), + 35: uint8(_LONG), + 36: uint8(_DBL), + 37: uint8(_DBL), + 38: uint8(_DBL), + 40: uint8(_LONG), + 43: uint8(_LLPRE), + 45: uint8(_PTR), + 46: uint8(_ULONG), + 50: uint8(_PTR), + 52: uint8(_ULONG), + 55: uint8(_ULONG), + }, + 2: { + 23: uint8(_ULLONG), + 35: uint8(_LLONG), + 40: uint8(_LLONG), + 45: uint8(_PTR), + 46: uint8(_ULLONG), + 52: uint8(_ULLONG), + 55: uint8(_ULLONG), + }, + 3: { + 23: uint8(_USHORT), + 35: uint8(_SHORT), + 39: uint8(_HHPRE), + 40: uint8(_SHORT), + 45: uint8(_PTR), + 46: uint8(_USHORT), + 52: uint8(_USHORT), + 55: uint8(_USHORT), + }, + 4: { + 23: uint8(_UCHAR), + 35: uint8(_CHAR), + 40: uint8(_CHAR), + 45: uint8(_PTR), + 46: uint8(_UCHAR), + 52: uint8(_UCHAR), + 55: uint8(_UCHAR), + }, + 5: { + 0: uint8(_LDBL), + 4: uint8(_LDBL), + 5: uint8(_LDBL), + 6: uint8(_LDBL), + 32: uint8(_LDBL), + 36: uint8(_LDBL), + 37: uint8(_LDBL), + 38: uint8(_LDBL), + 45: uint8(_PTR), + }, + 6: { + 23: uint8(_SIZET), + 35: uint8(_PDIFF), + 40: uint8(_PDIFF), + 45: uint8(_PTR), + 46: uint8(_SIZET), + 52: uint8(_SIZET), + 55: uint8(_SIZET), + }, + 7: { + 23: uint8(_UMAX), + 35: uint8(_IMAX), + 40: uint8(_IMAX), + 45: uint8(_PTR), + 46: uint8(_UMAX), + 52: uint8(_UMAX), + 55: uint8(_UMAX), + }, +} + +type Targ = struct { + F__ccgo_align [0]uint32 + Ff [0]float64 + Fp [0]uintptr + Fi Tuintmax_t +} + +func _pop_arg(tls *TLS, arg uintptr, type1 int32, ap uintptr) { + switch type1 { + case int32(_PTR): + *(*uintptr)(unsafe.Pointer(arg)) = VaUintptr(&**(**Tva_list)(__ccgo_up(ap))) + case int32(_INT): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt32(VaInt32(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_UINT): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(VaUint32(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_LONG): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt32(VaInt32(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_ULONG): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(VaUint32(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_ULLONG): + (*Targ)(unsafe.Pointer(arg)).Fi = VaUint64(&**(**Tva_list)(__ccgo_up(ap))) + case int32(_SHORT): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt16(int16(VaInt32(&**(**Tva_list)(__ccgo_up(ap))))) + case int32(_USHORT): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(Uint16FromInt32(VaInt32(&**(**Tva_list)(__ccgo_up(ap))))) + case int32(_CHAR): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt8(int8(VaInt32(&**(**Tva_list)(__ccgo_up(ap))))) + case int32(_UCHAR): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(Uint8FromInt32(VaInt32(&**(**Tva_list)(__ccgo_up(ap))))) + case int32(_LLONG): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt64(VaInt64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_SIZET): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(VaUint32(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_IMAX): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt64(VaInt64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_UMAX): + (*Targ)(unsafe.Pointer(arg)).Fi = VaUint64(&**(**Tva_list)(__ccgo_up(ap))) + case int32(_PDIFF): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt32(VaInt32(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_UIPTR): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(uint32(VaUintptr(&**(**Tva_list)(__ccgo_up(ap))))) + case int32(_DBL): + *(*float64)(unsafe.Pointer(arg)) = float64(VaFloat64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_LDBL): + *(*float64)(unsafe.Pointer(arg)) = VaFloat64(&**(**Tva_list)(__ccgo_up(ap))) + } +} + +func _out(tls *TLS, f uintptr, s uintptr, l Tsize_t) { + if !((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_ERR) != 0) { + X__fwritex(tls, s, l, f) + } +} + +func _pad3(tls *TLS, f uintptr, c uint8, w int32, l int32, fl int32) { + bp := tls.Alloc(256) + defer tls.Free(256) + var v1 uint32 + var _ /* pad at bp+0 */ [256]uint8 + _ = v1 + if Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8('0')-Int32FromUint8(' '))) != 0 || l >= w { + return + } + l = w - l + if Uint32FromInt32(l) > uint32(256) { + v1 = uint32(256) + } else { + v1 = Uint32FromInt32(l) + } + Xmemset(tls, bp, Int32FromUint8(c), v1) + for { + if !(Uint32FromInt32(l) >= uint32(256)) { + break + } + _out(tls, f, bp, uint32(256)) + goto _2 + _2: + ; + l = Int32FromUint32(uint32(l) - Uint32FromInt64(256)) + } + _out(tls, f, bp, Uint32FromInt32(l)) +} + +var _xdigits1 = [16]uint8{'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'} + +func _fmt_x(tls *TLS, x Tuintmax_t, s uintptr, lower int32) (r uintptr) { + var v2 uintptr + _ = v2 + for { + if !(x != 0) { + break + } + s = s - 1 + v2 = s + **(**uint8)(__ccgo_up(v2)) = Uint8FromInt32(Int32FromUint8(_xdigits1[x&uint64(15)]) | lower) + goto _1 + _1: + ; + x = x >> uint64(4) + } + return s +} + +func _fmt_o(tls *TLS, x Tuintmax_t, s uintptr) (r uintptr) { + var v2 uintptr + _ = v2 + for { + if !(x != 0) { + break + } + s = s - 1 + v2 = s + **(**uint8)(__ccgo_up(v2)) = uint8(uint64('0') + x&uint64(7)) + goto _1 + _1: + ; + x = x >> uint64(3) + } + return s +} + +func _fmt_u(tls *TLS, x Tuintmax_t, s uintptr) (r uintptr) { + var y uint32 + var v2 uintptr + _, _ = y, v2 + for { + if !(x > uint64(Uint32FromUint32(2)*Uint32FromInt32(0x7fffffff)+Uint32FromInt32(1))) { + break + } + s = s - 1 + v2 = s + **(**uint8)(__ccgo_up(v2)) = uint8(uint64('0') + x%uint64(10)) + goto _1 + _1: + ; + x = x / uint64(10) + } + y = uint32(x) + for { + if !(y != 0) { + break + } + s = s - 1 + v2 = s + **(**uint8)(__ccgo_up(v2)) = uint8(uint32('0') + y%uint32(10)) + goto _3 + _3: + ; + y = y / uint32(10) + } + return s +} + +// C documentation +// +// /* Do not override this check. The floating point printing code below +// * depends on the float.h constants being right. If they are wrong, it +// * may overflow the stack. */ +type Tcompiler_defines_long_double_incorrectly = [1]uint8 + +func _fmt_fp(tls *TLS, f uintptr, y float64, w int32, p int32, fl int32, t int32) (r1 int32) { + bp := tls.Alloc(560) + defer tls.Free(560) + var a, b, d, ebuf, estr, prefix, r, s, s1, s2, s3, s4, z, v5, v6 uintptr + var carry, carry1, rm, x2 Tuint32_t + var e, i, j, l, need, pl, re, sh, sh1, x, v7, v8, v9 int32 + var round, round1, small float64 + var x1 Tuint64_t + var v1 uint64 + var _ /* __u at bp+0 */ struct { + F__ccgo_align [0]uint32 + F__i [0]uint64 + F__f float64 + } + var _ /* big at bp+8 */ [126]Tuint32_t + var _ /* buf at bp+516 */ [22]uint8 + var _ /* e2 at bp+512 */ int32 + var _ /* ebuf0 at bp+538 */ [12]uint8 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = a, b, carry, carry1, d, e, ebuf, estr, i, j, l, need, pl, prefix, r, re, rm, round, round1, s, s1, s2, s3, s4, sh, sh1, small, x, x1, x2, z, v1, v5, v6, v7, v8, v9 + **(**int32)(__ccgo_up(bp + 512)) = 0 + prefix = __ccgo_ts + 1419 + ebuf = bp + 538 + uintptr(Uint32FromInt32(3)*Uint32FromInt64(4)) + pl = int32(1) + *(*float64)(unsafe.Pointer(bp)) = y + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + if Int32FromUint64(v1>>Int32FromInt32(63)) != 0 { + y = -y + } else { + if Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('+')-Int32FromUint8(' '))) != 0 { + prefix = prefix + uintptr(3) + } else { + if Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8(' ')-Int32FromUint8(' '))) != 0 { + prefix = prefix + uintptr(6) + } else { + prefix = prefix + 1 + pl = Int32FromInt32(0) + } + } + } + *(*float64)(unsafe.Pointer(bp)) = y + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _4 +_4: + if !(BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) < Uint64FromUint64(0x7ff)< int32(3)+pl { + v7 = w + } else { + v7 = int32(3) + pl + } + return v7 + } + y = float64(Xfrexpl(tls, y, bp+512) * Float64FromInt32(2)) + if y != 0 { + **(**int32)(__ccgo_up(bp + 512)) = **(**int32)(__ccgo_up(bp + 512)) - 1 + } + if t|int32(32) == int32('a') { + round = Float64FromFloat64(8) + if t&int32(32) != 0 { + prefix = prefix + uintptr(9) + } + pl = pl + int32(2) + if p < 0 || p >= Int32FromInt32(LDBL_MANT_DIG)/Int32FromInt32(4)-Int32FromInt32(1) { + re = 0 + } else { + re = Int32FromInt32(LDBL_MANT_DIG)/Int32FromInt32(4) - Int32FromInt32(1) - p + } + if re != 0 { + round = round * float64(Int32FromInt32(1)<<(Int32FromInt32(LDBL_MANT_DIG)%Int32FromInt32(4))) + for { + v7 = re + re = re - 1 + if !(v7 != 0) { + break + } + round = round * Float64FromInt32(16) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(prefix))) == int32('-') { + y = -y + y = y - round + y = y + round + y = -y + } else { + y = y + round + y = y - round + } + } + if **(**int32)(__ccgo_up(bp + 512)) < 0 { + v7 = -**(**int32)(__ccgo_up(bp + 512)) + } else { + v7 = **(**int32)(__ccgo_up(bp + 512)) + } + estr = _fmt_u(tls, Uint64FromInt32(v7), ebuf) + if estr == ebuf { + estr = estr - 1 + v5 = estr + **(**uint8)(__ccgo_up(v5)) = uint8('0') + } + estr = estr - 1 + v5 = estr + if **(**int32)(__ccgo_up(bp + 512)) < 0 { + v7 = int32('-') + } else { + v7 = int32('+') + } + **(**uint8)(__ccgo_up(v5)) = Uint8FromInt32(v7) + estr = estr - 1 + v5 = estr + **(**uint8)(__ccgo_up(v5)) = Uint8FromInt32(t + (Int32FromUint8('p') - Int32FromUint8('a'))) + s = bp + 516 + for cond := true; cond; cond = y != 0 { + x = int32(y) + v5 = s + s = s + 1 + **(**uint8)(__ccgo_up(v5)) = Uint8FromInt32(Int32FromUint8(_xdigits1[x]) | t&int32(32)) + y = float64(Float64FromInt32(16) * (y - float64(x))) + if int32(s)-t__predefined_ptrdiff_t(bp+516) == int32(1) && (y != 0 || p > 0 || Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0) { + v5 = s + s = s + 1 + **(**uint8)(__ccgo_up(v5)) = uint8('.') + } + } + if p > Int32FromInt32(INT_MAX)-Int32FromInt32(2)-(int32(ebuf)-int32(estr))-pl { + return -int32(1) + } + if p != 0 && int32(s)-t__predefined_ptrdiff_t(bp+516)-int32(2) < p { + l = p + int32(2) + (int32(ebuf) - int32(estr)) + } else { + l = int32(s) - t__predefined_ptrdiff_t(bp+516) + (int32(ebuf) - int32(estr)) + } + _pad3(tls, f, uint8(' '), w, pl+l, fl) + _out(tls, f, prefix, Uint32FromInt32(pl)) + _pad3(tls, f, uint8('0'), w, pl+l, Int32FromUint32(Uint32FromInt32(fl)^Uint32FromUint32(1)<<(Int32FromUint8('0')-Int32FromUint8(' ')))) + _out(tls, f, bp+516, Uint32FromInt32(int32(s)-t__predefined_ptrdiff_t(bp+516))) + _pad3(tls, f, uint8('0'), l-(int32(ebuf)-int32(estr))-(int32(s)-t__predefined_ptrdiff_t(bp+516)), 0, 0) + _out(tls, f, estr, Uint32FromInt32(int32(ebuf)-int32(estr))) + _pad3(tls, f, uint8(' '), w, pl+l, Int32FromUint32(Uint32FromInt32(fl)^Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' ')))) + if w > pl+l { + v7 = w + } else { + v7 = pl + l + } + return v7 + } + if p < 0 { + p = int32(6) + } + if y != 0 { + y = y * Float64FromFloat64(2.68435456e+08) + **(**int32)(__ccgo_up(bp + 512)) = **(**int32)(__ccgo_up(bp + 512)) - int32(28) + } + if **(**int32)(__ccgo_up(bp + 512)) < 0 { + v6 = bp + 8 + z = v6 + v5 = v6 + r = v5 + a = v5 + } else { + v6 = bp + 8 + uintptr(Uint32FromInt64(504)/Uint32FromInt64(4))*4 - UintptrFromInt32(LDBL_MANT_DIG)*4 - UintptrFromInt32(1)*4 + z = v6 + v5 = v6 + r = v5 + a = v5 + } + for cond := true; cond; cond = y != 0 { + **(**Tuint32_t)(__ccgo_up(z)) = uint32(y) + v5 = z + z += 4 + y = float64(Float64FromInt32(1000000000) * (y - float64(**(**Tuint32_t)(__ccgo_up(v5))))) + } + for **(**int32)(__ccgo_up(bp + 512)) > 0 { + carry = uint32(0) + if int32(29) < **(**int32)(__ccgo_up(bp + 512)) { + v7 = int32(29) + } else { + v7 = **(**int32)(__ccgo_up(bp + 512)) + } + sh = v7 + d = z - uintptr(1)*4 + for { + if !(d >= a) { + break + } + x1 = uint64(**(**Tuint32_t)(__ccgo_up(d)))< a && !(**(**Tuint32_t)(__ccgo_up(z + uintptr(-Int32FromInt32(1))*4)) != 0) { + z -= 4 + } + **(**int32)(__ccgo_up(bp + 512)) = **(**int32)(__ccgo_up(bp + 512)) - sh + } + for **(**int32)(__ccgo_up(bp + 512)) < 0 { + carry1 = uint32(0) + if int32(9) < -**(**int32)(__ccgo_up(bp + 512)) { + v7 = int32(9) + } else { + v7 = -**(**int32)(__ccgo_up(bp + 512)) + } + sh1 = v7 + need = Int32FromUint32(uint32(1) + (Uint32FromInt32(p)+Uint32FromInt32(LDBL_MANT_DIG)/Uint32FromUint32(3)+uint32(8))/uint32(9)) + d = a + for { + if !(d < z) { + break + } + rm = **(**Tuint32_t)(__ccgo_up(d)) & Uint32FromInt32(int32(1)<>sh1 + carry1 + carry1 = Uint32FromInt32(Int32FromInt32(1000000000)>>sh1) * rm + goto _26 + _26: + ; + d += 4 + } + if !(**(**Tuint32_t)(__ccgo_up(a)) != 0) { + a += 4 + } + if carry1 != 0 { + v5 = z + z += 4 + **(**Tuint32_t)(__ccgo_up(v5)) = carry1 + } + /* Avoid (slow!) computation past requested precision */ + if t|int32(32) == int32('f') { + v5 = r + } else { + v5 = a + } + b = v5 + if (int32(z)-int32(b))/4 > need { + z = b + uintptr(need)*4 + } + **(**int32)(__ccgo_up(bp + 512)) = **(**int32)(__ccgo_up(bp + 512)) + sh1 + } + if a < z { + i = int32(10) + e = Int32FromInt32(9) * ((int32(r) - int32(a)) / 4) + for { + if !(**(**Tuint32_t)(__ccgo_up(a)) >= Uint32FromInt32(i)) { + break + } + goto _29 + _29: + ; + i = i * int32(10) + e = e + 1 + } + } else { + e = 0 + } + /* Perform rounding: j is precision after the radix (possibly neg) */ + j = p - BoolInt32(t|int32(32) != int32('f'))*e - BoolInt32(t|int32(32) == int32('g') && p != 0) + if j < int32(9)*((int32(z)-int32(r))/4-int32(1)) { + /* We avoid C's broken division of negative numbers */ + d = r + uintptr(1)*4 + uintptr((j+Int32FromInt32(9)*Int32FromInt32(LDBL_MAX_EXP))/Int32FromInt32(9)-Int32FromInt32(LDBL_MAX_EXP))*4 + j = j + Int32FromInt32(9)*Int32FromInt32(LDBL_MAX_EXP) + j = j % int32(9) + i = int32(10) + j = j + 1 + for { + if !(j < int32(9)) { + break + } + goto _30 + _30: + ; + i = i * int32(10) + j = j + 1 + } + x2 = **(**Tuint32_t)(__ccgo_up(d)) % Uint32FromInt32(i) + /* Are there any significant digits past j? */ + if x2 != 0 || d+uintptr(1)*4 != z { + round1 = Float64FromInt32(2) / Float64FromFloat64(2.22044604925031308085e-16) + if **(**Tuint32_t)(__ccgo_up(d))/Uint32FromInt32(i)&uint32(1) != 0 || i == int32(1000000000) && d > a && **(**Tuint32_t)(__ccgo_up(d + uintptr(-Int32FromInt32(1))*4))&uint32(1) != 0 { + round1 = round1 + Float64FromInt32(2) + } + if x2 < Uint32FromInt32(i/int32(2)) { + small = Float64FromFloat64(0.5) + } else { + if x2 == Uint32FromInt32(i/int32(2)) && d+uintptr(1)*4 == z { + small = Float64FromFloat64(1) + } else { + small = Float64FromFloat64(1.5) + } + } + if pl != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(prefix))) == int32('-') { + round1 = round1 * float64(-Int32FromInt32(1)) + small = small * float64(-Int32FromInt32(1)) + } + **(**Tuint32_t)(__ccgo_up(d)) -= x2 + /* Decide whether to round by probing round+small */ + if round1+small != round1 { + **(**Tuint32_t)(__ccgo_up(d)) = **(**Tuint32_t)(__ccgo_up(d)) + Uint32FromInt32(i) + for **(**Tuint32_t)(__ccgo_up(d)) > uint32(999999999) { + v5 = d + d -= 4 + **(**Tuint32_t)(__ccgo_up(v5)) = uint32(0) + if d < a { + a -= 4 + v5 = a + **(**Tuint32_t)(__ccgo_up(v5)) = uint32(0) + } + **(**Tuint32_t)(__ccgo_up(d)) = **(**Tuint32_t)(__ccgo_up(d)) + 1 + } + i = int32(10) + e = Int32FromInt32(9) * ((int32(r) - int32(a)) / 4) + for { + if !(**(**Tuint32_t)(__ccgo_up(a)) >= Uint32FromInt32(i)) { + break + } + goto _33 + _33: + ; + i = i * int32(10) + e = e + 1 + } + } + } + if z > d+uintptr(1)*4 { + z = d + uintptr(1)*4 + } + } + for { + if !(z > a && !(**(**Tuint32_t)(__ccgo_up(z + uintptr(-Int32FromInt32(1))*4)) != 0)) { + break + } + goto _34 + _34: + ; + z -= 4 + } + if t|int32(32) == int32('g') { + if !(p != 0) { + p = p + 1 + } + if p > e && e >= -int32(4) { + t = t - 1 + p = p - (e + int32(1)) + } else { + t = t - int32(2) + p = p - 1 + } + if !(Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0) { + /* Count trailing zeros in last place */ + if z > a && **(**Tuint32_t)(__ccgo_up(z + uintptr(-Int32FromInt32(1))*4)) != 0 { + i = int32(10) + j = Int32FromInt32(0) + for { + if !(**(**Tuint32_t)(__ccgo_up(z + uintptr(-Int32FromInt32(1))*4))%Uint32FromInt32(i) == uint32(0)) { + break + } + goto _35 + _35: + ; + i = i * int32(10) + j = j + 1 + } + } else { + j = int32(9) + } + if t|int32(32) == int32('f') { + if 0 > int32(9)*((int32(z)-int32(r))/4-int32(1))-j { + v8 = 0 + } else { + v8 = int32(9)*((int32(z)-int32(r))/4-int32(1)) - j + } + if p < v8 { + v7 = p + } else { + if 0 > int32(9)*((int32(z)-int32(r))/4-int32(1))-j { + v9 = 0 + } else { + v9 = int32(9)*((int32(z)-int32(r))/4-int32(1)) - j + } + v7 = v9 + } + p = v7 + } else { + if 0 > int32(9)*((int32(z)-int32(r))/4-int32(1))+e-j { + v8 = 0 + } else { + v8 = int32(9)*((int32(z)-int32(r))/4-int32(1)) + e - j + } + if p < v8 { + v7 = p + } else { + if 0 > int32(9)*((int32(z)-int32(r))/4-int32(1))+e-j { + v9 = 0 + } else { + v9 = int32(9)*((int32(z)-int32(r))/4-int32(1)) + e - j + } + v7 = v9 + } + p = v7 + } + } + } + if p > Int32FromInt32(INT_MAX)-Int32FromInt32(1)-BoolInt32(p != 0 || Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0) { + return -int32(1) + } + l = int32(1) + p + BoolInt32(p != 0 || Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0) + if t|int32(32) == int32('f') { + if e > int32(INT_MAX)-l { + return -int32(1) + } + if e > 0 { + l = l + e + } + } else { + if e < 0 { + v7 = -e + } else { + v7 = e + } + estr = _fmt_u(tls, Uint64FromInt32(v7), ebuf) + for int32(ebuf)-int32(estr) < int32(2) { + estr = estr - 1 + v5 = estr + **(**uint8)(__ccgo_up(v5)) = uint8('0') + } + estr = estr - 1 + v5 = estr + if e < 0 { + v7 = int32('-') + } else { + v7 = int32('+') + } + **(**uint8)(__ccgo_up(v5)) = Uint8FromInt32(v7) + estr = estr - 1 + v5 = estr + **(**uint8)(__ccgo_up(v5)) = Uint8FromInt32(t) + if int32(ebuf)-int32(estr) > int32(INT_MAX)-l { + return -int32(1) + } + l = l + (int32(ebuf) - int32(estr)) + } + if l > int32(INT_MAX)-pl { + return -int32(1) + } + _pad3(tls, f, uint8(' '), w, pl+l, fl) + _out(tls, f, prefix, Uint32FromInt32(pl)) + _pad3(tls, f, uint8('0'), w, pl+l, Int32FromUint32(Uint32FromInt32(fl)^Uint32FromUint32(1)<<(Int32FromUint8('0')-Int32FromUint8(' ')))) + if t|int32(32) == int32('f') { + if a > r { + a = r + } + d = a + for { + if !(d <= r) { + break + } + s2 = _fmt_u(tls, uint64(**(**Tuint32_t)(__ccgo_up(d))), bp+516+uintptr(9)) + if d != a { + for s2 > bp+516 { + s2 = s2 - 1 + v5 = s2 + **(**uint8)(__ccgo_up(v5)) = uint8('0') + } + } else { + if s2 == bp+516+uintptr(9) { + s2 = s2 - 1 + v5 = s2 + **(**uint8)(__ccgo_up(v5)) = uint8('0') + } + } + _out(tls, f, s2, Uint32FromInt32(int32(bp+516+uintptr(9))-int32(s2))) + goto _47 + _47: + ; + d += 4 + } + if p != 0 || Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0 { + _out(tls, f, __ccgo_ts+483, uint32(1)) + } + for { + if !(d < z && p > 0) { + break + } + s3 = _fmt_u(tls, uint64(**(**Tuint32_t)(__ccgo_up(d))), bp+516+uintptr(9)) + for s3 > bp+516 { + s3 = s3 - 1 + v5 = s3 + **(**uint8)(__ccgo_up(v5)) = uint8('0') + } + if int32(9) < p { + v7 = int32(9) + } else { + v7 = p + } + _out(tls, f, s3, Uint32FromInt32(v7)) + goto _50 + _50: + ; + d += 4 + p = p - int32(9) + } + _pad3(tls, f, uint8('0'), p+int32(9), int32(9), 0) + } else { + if z <= a { + z = a + uintptr(1)*4 + } + d = a + for { + if !(d < z && p >= 0) { + break + } + s4 = _fmt_u(tls, uint64(**(**Tuint32_t)(__ccgo_up(d))), bp+516+uintptr(9)) + if s4 == bp+516+uintptr(9) { + s4 = s4 - 1 + v5 = s4 + **(**uint8)(__ccgo_up(v5)) = uint8('0') + } + if d != a { + for s4 > bp+516 { + s4 = s4 - 1 + v5 = s4 + **(**uint8)(__ccgo_up(v5)) = uint8('0') + } + } else { + v5 = s4 + s4 = s4 + 1 + _out(tls, f, v5, uint32(1)) + if p > 0 || Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0 { + _out(tls, f, __ccgo_ts+483, uint32(1)) + } + } + if int32(bp+516+UintptrFromInt32(9))-int32(s4) < p { + v7 = int32(bp+516+UintptrFromInt32(9)) - int32(s4) + } else { + v7 = p + } + _out(tls, f, s4, Uint32FromInt32(v7)) + p = p - (int32(bp+516+uintptr(9)) - int32(s4)) + goto _53 + _53: + ; + d += 4 + } + _pad3(tls, f, uint8('0'), p+int32(18), int32(18), 0) + _out(tls, f, estr, Uint32FromInt32(int32(ebuf)-int32(estr))) + } + _pad3(tls, f, uint8(' '), w, pl+l, Int32FromUint32(Uint32FromInt32(fl)^Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' ')))) + if w > pl+l { + v7 = w + } else { + v7 = pl + l + } + return v7 +} + +func _getint(tls *TLS, s uintptr) (r int32) { + var i int32 + _ = i + i = 0 + for { + if !(BoolInt32(uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(s)))))-uint32('0') < uint32(10)) != 0) { + break + } + if Uint32FromInt32(i) > Uint32FromInt32(INT_MAX)/Uint32FromUint32(10) || Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(s)))))-int32('0') > int32(INT_MAX)-int32(10)*i { + i = -int32(1) + } else { + i = int32(10)*i + (Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(s))))) - int32('0')) + } + goto _1 + _1: + ; + **(**uintptr)(__ccgo_up(s)) = **(**uintptr)(__ccgo_up(s)) + 1 + } + return i +} + +func _printf_core(tls *TLS, f uintptr, fmt uintptr, ap uintptr, nl_arg uintptr, nl_type uintptr) (r int32) { + bp := tls.Alloc(64) + defer tls.Free(64) + var a, prefix, ws, z, v8 uintptr + var argpos, cnt, l, p, pl, t, w, xp, v5, v6 int32 + var fl, l10n, ps, st, v31 uint32 + var i Tsize_t + var v45 bool + var _ /* arg at bp+8 */ Targ + var _ /* buf at bp+16 */ [24]uint8 + var _ /* mb at bp+48 */ [4]uint8 + var _ /* s at bp+0 */ uintptr + var _ /* wc at bp+40 */ [2]Twchar_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = a, argpos, cnt, fl, i, l, l10n, p, pl, prefix, ps, st, t, w, ws, xp, z, v31, v45, v5, v6, v8 + **(**uintptr)(__ccgo_up(bp)) = fmt + l10n = uint32(0) + cnt = 0 + l = 0 + for { + /* This error is only specified for snprintf, but since it's + * unspecified for other forms, do the same. Stop immediately + * on overflow; otherwise %n could produce wrong results. */ + if l > int32(INT_MAX)-cnt { + goto overflow + } + /* Update output count, end loop when fmt is exhausted */ + cnt = cnt + l + if !(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)))) != 0) { + break + } + /* Handle literal text and %% format specifiers */ + a = **(**uintptr)(__ccgo_up(bp)) + for { + if !(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)))) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp))))) != int32('%')) { + break + } + goto _2 + _2: + ; + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + } + z = **(**uintptr)(__ccgo_up(bp)) + for { + if !(Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp))))) == int32('%') && Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 1))) == int32('%')) { + break + } + goto _3 + _3: + ; + z = z + 1 + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + uintptr(2) + } + if int32(z)-int32(a) > int32(INT_MAX)-cnt { + goto overflow + } + l = int32(z) - int32(a) + if f != 0 { + _out(tls, f, a, Uint32FromInt32(l)) + } + if l != 0 { + goto _1 + } + if BoolInt32(uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 1)))-uint32('0') < uint32(10)) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 2))) == int32('$') { + l10n = uint32(1) + argpos = Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 1))) - int32('0') + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + uintptr(3) + } else { + argpos = -int32(1) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + } + /* Read modifier flags */ + fl = uint32(0) + for { + if !(uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)))))-uint32(' ') < uint32(32) && (Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8('0')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8(' ')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8('+')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8('\'')-Int32FromUint8(' ')))&(uint32(1)<<(Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)))))-int32(' '))) != 0) { + break + } + fl = fl | uint32(1)<<(Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)))))-int32(' ')) + goto _4 + _4: + ; + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + } + /* Read field width */ + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp))))) == int32('*') { + if BoolInt32(uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 1)))-uint32('0') < uint32(10)) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 2))) == int32('$') { + l10n = uint32(1) + if !(f != 0) { + **(**int32)(__ccgo_up(nl_type + uintptr(Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 1)))-int32('0'))*4)) = int32(_INT) + w = Int32FromInt32(0) + } else { + w = Int32FromUint64(*(*Tuintmax_t)(unsafe.Pointer(nl_arg + uintptr(Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 1)))-int32('0'))*8))) + } + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + uintptr(3) + } else { + if !(l10n != 0) { + if f != 0 { + v5 = VaInt32(&**(**Tva_list)(__ccgo_up(ap))) + } else { + v5 = 0 + } + w = v5 + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + } else { + goto inval + } + } + if w < 0 { + fl = fl | Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' ')) + w = -w + } + } else { + v5 = _getint(tls, bp) + w = v5 + if v5 < 0 { + goto overflow + } + } + /* Read precision */ + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp))))) == int32('.') && Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 1))) == int32('*') { + if BoolInt32(uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 2)))-uint32('0') < uint32(10)) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 3))) == int32('$') { + if !(f != 0) { + **(**int32)(__ccgo_up(nl_type + uintptr(Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 2)))-int32('0'))*4)) = int32(_INT) + p = Int32FromInt32(0) + } else { + p = Int32FromUint64(*(*Tuintmax_t)(unsafe.Pointer(nl_arg + uintptr(Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 2)))-int32('0'))*8))) + } + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + uintptr(4) + } else { + if !(l10n != 0) { + if f != 0 { + v5 = VaInt32(&**(**Tva_list)(__ccgo_up(ap))) + } else { + v5 = 0 + } + p = v5 + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + uintptr(2) + } else { + goto inval + } + } + xp = BoolInt32(p >= 0) + } else { + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp))))) == int32('.') { + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + p = _getint(tls, bp) + xp = int32(1) + } else { + p = -int32(1) + xp = 0 + } + } + /* Format specifier state machine */ + st = uint32(0) + for cond := true; cond; cond = st-uint32(1) < uint32(_STOP) { + if uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)))))-uint32('A') > Uint32FromInt32(Int32FromUint8('z')-Int32FromUint8('A')) { + goto inval + } + ps = st + v8 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + st = uint32(**(**uint8)(__ccgo_up(uintptr(unsafe.Pointer(&_states)) + uintptr(st)*58 + uintptr(Int32FromUint8(**(**uint8)(__ccgo_up(v8)))-int32('A'))))) + } + if !(st != 0) { + goto inval + } + /* Check validity of argument type (nl/normal) */ + if st == uint32(_NOARG) { + if argpos >= 0 { + goto inval + } + } else { + if argpos >= 0 { + if !(f != 0) { + **(**int32)(__ccgo_up(nl_type + uintptr(argpos)*4)) = Int32FromUint32(st) + } else { + **(**Targ)(__ccgo_up(bp + 8)) = **(**Targ)(__ccgo_up(nl_arg + uintptr(argpos)*8)) + } + } else { + if f != 0 { + _pop_arg(tls, bp+8, Int32FromUint32(st), ap) + } else { + return 0 + } + } + } + if !(f != 0) { + goto _1 + } + /* Do not process any new directives once in error state. */ + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_ERR) != 0 { + return -int32(1) + } + z = bp + 16 + uintptr(24) + prefix = __ccgo_ts + 1450 + pl = 0 + t = Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + uintptr(-Int32FromInt32(1))))) + /* Transform ls,lc -> S,C */ + if ps != 0 && t&int32(15) == int32(3) { + t = t & ^Int32FromInt32(32) + } + /* - and 0 flags are mutually exclusive */ + if fl&(Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' '))) != 0 { + fl = fl & ^(Uint32FromUint32(1) << (Int32FromUint8('0') - Int32FromUint8(' '))) + } + switch t { + case int32('n'): + goto _9 + case int32('p'): + goto _10 + case int32('X'): + goto _11 + case int32('x'): + goto _12 + case int32('o'): + goto _13 + case int32('i'): + goto _14 + case int32('d'): + goto _15 + case int32('u'): + goto _16 + case int32('c'): + goto _17 + case int32('s'): + goto _18 + case int32('m'): + goto _19 + case int32('C'): + goto _20 + case int32('S'): + goto _21 + case int32('A'): + goto _22 + case int32('G'): + goto _23 + case int32('F'): + goto _24 + case int32('E'): + goto _25 + case int32('a'): + goto _26 + case int32('g'): + goto _27 + case int32('f'): + goto _28 + case int32('e'): + goto _29 + } + goto _30 + _9: + ; + switch ps { + case uint32(_BARE): + **(**int32)(__ccgo_up(*(*uintptr)(unsafe.Pointer(&**(**Targ)(__ccgo_up(bp + 8)))))) = cnt + case uint32(_LPRE): + **(**int32)(__ccgo_up(*(*uintptr)(unsafe.Pointer(&**(**Targ)(__ccgo_up(bp + 8)))))) = cnt + case uint32(_LLPRE): + **(**int64)(__ccgo_up(*(*uintptr)(unsafe.Pointer(&**(**Targ)(__ccgo_up(bp + 8)))))) = int64(cnt) + case uint32(_HPRE): + **(**uint16)(__ccgo_up(*(*uintptr)(unsafe.Pointer(&**(**Targ)(__ccgo_up(bp + 8)))))) = Uint16FromInt32(cnt) + case uint32(_HHPRE): + **(**uint8)(__ccgo_up(*(*uintptr)(unsafe.Pointer(&**(**Targ)(__ccgo_up(bp + 8)))))) = Uint8FromInt32(cnt) + case uint32(_ZTPRE): + **(**Tsize_t)(__ccgo_up(*(*uintptr)(unsafe.Pointer(&**(**Targ)(__ccgo_up(bp + 8)))))) = Uint32FromInt32(cnt) + case uint32(_JPRE): + **(**Tuintmax_t)(__ccgo_up(*(*uintptr)(unsafe.Pointer(&**(**Targ)(__ccgo_up(bp + 8)))))) = Uint64FromInt32(cnt) + break + } + goto _1 + _10: + ; + if Uint32FromInt32(p) > Uint32FromInt32(2)*Uint32FromInt64(4) { + v31 = Uint32FromInt32(p) + } else { + v31 = Uint32FromInt32(2) * Uint32FromInt64(4) + } + p = Int32FromUint32(v31) + t = int32('x') + fl = fl | Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' ')) + _12: + ; + _11: + ; + a = _fmt_x(tls, *(*Tuintmax_t)(unsafe.Pointer(bp + 8)), z, t&int32(32)) + if *(*Tuintmax_t)(unsafe.Pointer(bp + 8)) != 0 && fl&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0 { + prefix = prefix + uintptr(t>>Int32FromInt32(4)) + pl = Int32FromInt32(2) + } + if !(0 != 0) { + goto _32 + } + _13: + ; + a = _fmt_o(tls, *(*Tuintmax_t)(unsafe.Pointer(bp + 8)), z) + if fl&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0 && p < int32(z)-int32(a)+int32(1) { + p = int32(z) - int32(a) + int32(1) + } + _32: + ; + if !(0 != 0) { + goto _33 + } + _15: + ; + _14: + ; + pl = int32(1) + if *(*Tuintmax_t)(unsafe.Pointer(bp + 8)) > Uint64FromInt64(Int64FromInt64(INT64_MAX)) { + *(*Tuintmax_t)(unsafe.Pointer(bp + 8)) = -*(*Tuintmax_t)(unsafe.Pointer(bp + 8)) + } else { + if fl&(Uint32FromUint32(1)<<(Int32FromUint8('+')-Int32FromUint8(' '))) != 0 { + prefix = prefix + 1 + } else { + if fl&(Uint32FromUint32(1)<<(Int32FromUint8(' ')-Int32FromUint8(' '))) != 0 { + prefix = prefix + uintptr(2) + } else { + pl = 0 + } + } + } + _16: + ; + a = _fmt_u(tls, *(*Tuintmax_t)(unsafe.Pointer(bp + 8)), z) + _33: + ; + if xp != 0 && p < 0 { + goto overflow + } + if xp != 0 { + fl = fl & ^(Uint32FromUint32(1) << (Int32FromUint8('0') - Int32FromUint8(' '))) + } + if !(*(*Tuintmax_t)(unsafe.Pointer(bp + 8)) != 0) && !(p != 0) { + a = z + goto _30 + } + if p > int32(z)-int32(a)+BoolInt32(!(*(*Tuintmax_t)(unsafe.Pointer(bp + 8)) != 0)) { + v5 = p + } else { + v5 = int32(z) - int32(a) + BoolInt32(!(*(*Tuintmax_t)(unsafe.Pointer(bp + 8)) != 0)) + } + p = v5 + goto _30 + goto narrow_c + narrow_c: + ; + _17: + ; + v5 = Int32FromInt32(1) + p = v5 + v8 = z - uintptr(v5) + a = v8 + **(**uint8)(__ccgo_up(v8)) = uint8(*(*Tuintmax_t)(unsafe.Pointer(bp + 8))) + fl = fl & ^(Uint32FromUint32(1) << (Int32FromUint8('0') - Int32FromUint8(' '))) + goto _30 + _19: + ; + if !(int32(1) != 0) { + goto _37 + } + a = Xstrerror(tls, **(**int32)(__ccgo_up(X__errno_location(tls)))) + goto _38 + _37: + ; + _18: + ; + if *(*uintptr)(unsafe.Pointer(&**(**Targ)(__ccgo_up(bp + 8)))) != 0 { + v8 = *(*uintptr)(unsafe.Pointer(&**(**Targ)(__ccgo_up(bp + 8)))) + } else { + v8 = __ccgo_ts + 1460 + } + a = v8 + _38: + ; + if p < 0 { + v5 = int32(INT_MAX) + } else { + v5 = p + } + z = a + uintptr(Xstrnlen(tls, a, Uint32FromInt32(v5))) + if p < 0 && **(**uint8)(__ccgo_up(z)) != 0 { + goto overflow + } + p = int32(z) - int32(a) + fl = fl & ^(Uint32FromUint32(1) << (Int32FromUint8('0') - Int32FromUint8(' '))) + goto _30 + _20: + ; + if !(*(*Tuintmax_t)(unsafe.Pointer(bp + 8)) != 0) { + goto narrow_c + } + (**(**[2]Twchar_t)(__ccgo_up(bp + 40)))[0] = uint32(*(*Tuintmax_t)(unsafe.Pointer(bp + 8))) + (**(**[2]Twchar_t)(__ccgo_up(bp + 40)))[int32(1)] = uint32(0) + *(*uintptr)(unsafe.Pointer(&**(**Targ)(__ccgo_up(bp + 8)))) = bp + 40 + p = -int32(1) + _21: + ; + ws = *(*uintptr)(unsafe.Pointer(&**(**Targ)(__ccgo_up(bp + 8)))) + v5 = Int32FromInt32(0) + l = v5 + i = Uint32FromInt32(v5) + for { + if v45 = i < Uint32FromInt32(p) && **(**Twchar_t)(__ccgo_up(ws)) != 0; v45 { + v8 = ws + ws += 4 + v6 = Xwctomb(tls, bp+48, **(**Twchar_t)(__ccgo_up(v8))) + l = v6 + } + if !(v45 && v6 >= 0 && Uint32FromInt32(l) <= Uint32FromInt32(p)-i) { + break + } + goto _41 + _41: + ; + i = i + Uint32FromInt32(l) + } + if l < 0 { + return -int32(1) + } + if i > uint32(INT_MAX) { + goto overflow + } + p = Int32FromUint32(i) + _pad3(tls, f, uint8(' '), w, p, Int32FromUint32(fl)) + ws = *(*uintptr)(unsafe.Pointer(&**(**Targ)(__ccgo_up(bp + 8)))) + i = uint32(0) + for { + if v45 = i < 0+Uint32FromInt32(p) && **(**Twchar_t)(__ccgo_up(ws)) != 0; v45 { + v8 = ws + ws += 4 + v5 = Xwctomb(tls, bp+48, **(**Twchar_t)(__ccgo_up(v8))) + l = v5 + } + if !(v45 && i+Uint32FromInt32(v5) <= Uint32FromInt32(p)) { + break + } + _out(tls, f, bp+48, Uint32FromInt32(l)) + goto _46 + _46: + ; + i = i + Uint32FromInt32(l) + } + _pad3(tls, f, uint8(' '), w, p, Int32FromUint32(fl^Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' ')))) + if w > p { + v5 = w + } else { + v5 = p + } + l = v5 + goto _1 + _29: + ; + _28: + ; + _27: + ; + _26: + ; + _25: + ; + _24: + ; + _23: + ; + _22: + ; + if xp != 0 && p < 0 { + goto overflow + } + l = _fmt_fp(tls, f, *(*float64)(unsafe.Pointer(bp + 8)), w, p, Int32FromUint32(fl), t) + if l < 0 { + goto overflow + } + goto _1 + _30: + ; + if p < int32(z)-int32(a) { + p = int32(z) - int32(a) + } + if p > int32(INT_MAX)-pl { + goto overflow + } + if w < pl+p { + w = pl + p + } + if w > int32(INT_MAX)-cnt { + goto overflow + } + _pad3(tls, f, uint8(' '), w, pl+p, Int32FromUint32(fl)) + _out(tls, f, prefix, Uint32FromInt32(pl)) + _pad3(tls, f, uint8('0'), w, pl+p, Int32FromUint32(fl^Uint32FromUint32(1)<<(Int32FromUint8('0')-Int32FromUint8(' ')))) + _pad3(tls, f, uint8('0'), p, int32(z)-int32(a), 0) + _out(tls, f, a, Uint32FromInt32(int32(z)-int32(a))) + _pad3(tls, f, uint8(' '), w, pl+p, Int32FromUint32(fl^Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' ')))) + l = w + goto _1 + _1: + } + if f != 0 { + return cnt + } + if !(l10n != 0) { + return 0 + } + i = uint32(1) + for { + if !(i <= uint32(NL_ARGMAX) && **(**int32)(__ccgo_up(nl_type + uintptr(i)*4)) != 0) { + break + } + _pop_arg(tls, nl_arg+uintptr(i)*8, **(**int32)(__ccgo_up(nl_type + uintptr(i)*4)), ap) + goto _51 + _51: + ; + i = i + 1 + } + for { + if !(i <= uint32(NL_ARGMAX) && !(**(**int32)(__ccgo_up(nl_type + uintptr(i)*4)) != 0)) { + break + } + goto _52 + _52: + ; + i = i + 1 + } + if i <= uint32(NL_ARGMAX) { + goto inval + } + return int32(1) + goto inval +inval: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + goto overflow +overflow: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOVERFLOW) + return -int32(1) +} + +func Xvfprintf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v ap=%v, (%v:)", tls, f, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(208) + defer tls.Free(208) + var __need_unlock, olderr, ret, v1 int32 + var saved_buf, v2, v3 uintptr + var _ /* ap2 at bp+0 */ Tva_list + var _ /* internal_buf at bp+128 */ [80]uint8 + var _ /* nl_arg at bp+48 */ [10]Targ + var _ /* nl_type at bp+4 */ [10]int32 + _, _, _, _, _, _, _ = __need_unlock, olderr, ret, saved_buf, v1, v2, v3 + **(**[10]int32)(__ccgo_up(bp + 4)) = [10]int32{} + saved_buf = uintptr(0) + /* the copy allows passing va_list* even if va_list is an array */ + **(**Tva_list)(__ccgo_up(bp)) = ap + if _printf_core(tls, uintptr(0), fmt, bp, bp+48, bp+4) < 0 { + _ = **(**Tva_list)(__ccgo_up(bp)) + return -int32(1) + } + if AtomicLoadPInt32(f+76) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + olderr = Int32FromUint32((*TFILE)(unsafe.Pointer(f)).Fflags & uint32(F_ERR)) + **(**uint32)(__ccgo_up(f)) &= Uint32FromInt32(^Int32FromInt32(F_ERR)) + if !((*TFILE)(unsafe.Pointer(f)).Fbuf_size != 0) { + saved_buf = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Fbuf = bp + 128 + (*TFILE)(unsafe.Pointer(f)).Fbuf_size = uint32(80) + v3 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Fwend = v3 + v2 = v3 + (*TFILE)(unsafe.Pointer(f)).Fwbase = v2 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v2 + } + if !((*TFILE)(unsafe.Pointer(f)).Fwend != 0) && X__towrite(tls, f) != 0 { + ret = -int32(1) + } else { + ret = _printf_core(tls, f, fmt, bp, bp+48, bp+4) + } + if saved_buf != 0 { + (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tsize_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fwrite})))(tls, f, uintptr(0), uint32(0)) + if !((*TFILE)(unsafe.Pointer(f)).Fwpos != 0) { + ret = -int32(1) + } + (*TFILE)(unsafe.Pointer(f)).Fbuf = saved_buf + (*TFILE)(unsafe.Pointer(f)).Fbuf_size = uint32(0) + v3 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Fwend = v3 + v2 = v3 + (*TFILE)(unsafe.Pointer(f)).Fwbase = v2 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v2 + } + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_ERR) != 0 { + ret = -int32(1) + } + **(**uint32)(__ccgo_up(f)) |= Uint32FromInt32(olderr) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + _ = **(**Tva_list)(__ccgo_up(bp)) + return ret +} + +const SIZE_L = 2 +const SIZE_def = 0 +const SIZE_h = -1 +const SIZE_hh = -2 +const SIZE_l = 1 +const SIZE_ll = 3 + +func _store_int(tls *TLS, dest uintptr, size int32, i uint64) { + if !(dest != 0) { + return + } + switch size { + case -int32(2): + **(**uint8)(__ccgo_up(dest)) = uint8(i) + case -int32(1): + **(**int16)(__ccgo_up(dest)) = Int16FromUint64(i) + case SIZE_def: + **(**int32)(__ccgo_up(dest)) = Int32FromUint64(i) + case int32(SIZE_l): + **(**int32)(__ccgo_up(dest)) = Int32FromUint64(i) + case int32(SIZE_ll): + **(**int64)(__ccgo_up(dest)) = Int64FromUint64(i) + break + } +} + +func _arg_n(tls *TLS, ap Tva_list, n uint32) (r uintptr) { + var ap2 Tva_list + var i uint32 + var p uintptr + _, _, _ = ap2, i, p + ap2 = ap + i = n + for { + if !(i > uint32(1)) { + break + } + _ = VaUintptr(&ap2) + goto _1 + _1: + ; + i = i - 1 + } + p = VaUintptr(&ap2) + _ = ap2 + return p +} + +func Xvfscanf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v ap=%v, (%v:)", tls, f, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(288) + defer tls.Free(288) + var __need_unlock, alloc, base, c, invert, matches, size, t, width, v1, v3, v4, v6 int32 + var dest, p, s, tmp, tmp1, wcs, v10, v11, v17 uintptr + var i, k, v64 Tsize_t + var pos Toff_t + var x uint64 + var y float64 + var v59 uint32 + var _ /* scanset at bp+16 */ [257]uint8 + var _ /* st at bp+8 */ Tmbstate_t + var _ /* wc at bp+276 */ Twchar_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = __need_unlock, alloc, base, c, dest, i, invert, k, matches, p, pos, s, size, t, tmp, tmp1, wcs, width, x, y, v1, v10, v11, v17, v3, v4, v59, v6, v64 + alloc = 0 + dest = UintptrFromInt32(0) + matches = 0 + pos = 0 + if AtomicLoadPInt32(f+76) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + if !((*TFILE)(unsafe.Pointer(f)).Frpos != 0) { + X__toread(tls, f) + } + if !((*TFILE)(unsafe.Pointer(f)).Frpos != 0) { + goto input_fail + } + p = fmt + for { + if !(**(**uint8)(__ccgo_up(p)) != 0) { + break + } + alloc = 0 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(p))) + v3 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _5 + _5: + if v3 != 0 { + for { + v4 = Int32FromUint8(**(**uint8)(__ccgo_up(p + 1))) + v6 = BoolInt32(v4 == int32(' ') || Uint32FromInt32(v4)-uint32('\t') < uint32(5)) + goto _8 + _8: + if !(v6 != 0) { + break + } + p = p + 1 + } + X__shlim(tls, f, int64(Int32FromInt32(0))) + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v11 = f + 4 + v10 = *(*uintptr)(unsafe.Pointer(v11)) + *(*uintptr)(unsafe.Pointer(v11)) = *(*uintptr)(unsafe.Pointer(v11)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v10))) + } else { + v1 = X__shgetc(tls, f) + } + v3 = v1 + v4 = BoolInt32(v3 == int32(' ') || Uint32FromInt32(v3)-uint32('\t') < uint32(5)) + goto _14 + _14: + if !(v4 != 0) { + break + } + } + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + pos = pos + ((*TFILE)(unsafe.Pointer(f)).Fshcnt + int64(int32((*TFILE)(unsafe.Pointer(f)).Frpos)-int32((*TFILE)(unsafe.Pointer(f)).Fbuf))) + goto _2 + } + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) != int32('%') || Int32FromUint8(**(**uint8)(__ccgo_up(p + 1))) == int32('%') { + X__shlim(tls, f, int64(Int32FromInt32(0))) + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('%') { + p = p + 1 + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v11 = f + 4 + v10 = *(*uintptr)(unsafe.Pointer(v11)) + *(*uintptr)(unsafe.Pointer(v11)) = *(*uintptr)(unsafe.Pointer(v11)) + 1 + v3 = Int32FromUint8(**(**uint8)(__ccgo_up(v10))) + } else { + v3 = X__shgetc(tls, f) + } + v1 = v3 + c = v1 + v4 = v1 + v6 = BoolInt32(v4 == int32(' ') || Uint32FromInt32(v4)-uint32('\t') < uint32(5)) + goto _21 + _21: + if !(v6 != 0) { + break + } + } + } else { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v11 = f + 4 + v10 = *(*uintptr)(unsafe.Pointer(v11)) + *(*uintptr)(unsafe.Pointer(v11)) = *(*uintptr)(unsafe.Pointer(v11)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v10))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + if c != Int32FromUint8(**(**uint8)(__ccgo_up(p))) { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + if c < 0 { + goto input_fail + } + goto match_fail + } + pos = pos + ((*TFILE)(unsafe.Pointer(f)).Fshcnt + int64(int32((*TFILE)(unsafe.Pointer(f)).Frpos)-int32((*TFILE)(unsafe.Pointer(f)).Fbuf))) + goto _2 + } + p = p + 1 + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('*') { + dest = uintptr(0) + p = p + 1 + } else { + if BoolInt32(uint32(**(**uint8)(__ccgo_up(p)))-uint32('0') < uint32(10)) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(p + 1))) == int32('$') { + dest = _arg_n(tls, ap, Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(p)))-int32('0'))) + p = p + uintptr(2) + } else { + dest = VaUintptr(&ap) + } + } + width = 0 + for { + if !(BoolInt32(uint32(**(**uint8)(__ccgo_up(p)))-uint32('0') < uint32(10)) != 0) { + break + } + width = int32(10)*width + Int32FromUint8(**(**uint8)(__ccgo_up(p))) - int32('0') + goto _25 + _25: + ; + p = p + 1 + } + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('m') { + wcs = uintptr(0) + s = uintptr(0) + alloc = BoolInt32(!!(dest != 0)) + p = p + 1 + } else { + alloc = 0 + } + size = SIZE_def + v10 = p + p = p + 1 + switch Int32FromUint8(**(**uint8)(__ccgo_up(v10))) { + case int32('h'): + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('h') { + p = p + 1 + size = -Int32FromInt32(2) + } else { + size = -int32(1) + } + case int32('l'): + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('l') { + p = p + 1 + size = Int32FromInt32(SIZE_ll) + } else { + size = int32(SIZE_l) + } + case int32('j'): + size = int32(SIZE_ll) + case int32('z'): + fallthrough + case int32('t'): + size = int32(SIZE_l) + case int32('L'): + size = int32(SIZE_L) + case int32('d'): + fallthrough + case int32('i'): + fallthrough + case int32('o'): + fallthrough + case int32('u'): + fallthrough + case int32('x'): + fallthrough + case int32('a'): + fallthrough + case int32('e'): + fallthrough + case int32('f'): + fallthrough + case int32('g'): + fallthrough + case int32('A'): + fallthrough + case int32('E'): + fallthrough + case int32('F'): + fallthrough + case int32('G'): + fallthrough + case int32('X'): + fallthrough + case int32('s'): + fallthrough + case int32('c'): + fallthrough + case int32('['): + fallthrough + case int32('S'): + fallthrough + case int32('C'): + fallthrough + case int32('p'): + fallthrough + case int32('n'): + p = p - 1 + default: + goto fmt_fail + } + t = Int32FromUint8(**(**uint8)(__ccgo_up(p))) + /* C or S */ + if t&int32(0x2f) == int32(3) { + t = t | int32(32) + size = int32(SIZE_l) + } + switch t { + case int32('c'): + if width < int32(1) { + width = int32(1) + } + fallthrough + case int32('['): + case int32('n'): + _store_int(tls, dest, size, Uint64FromInt64(pos)) + /* do not increment match count, etc! */ + goto _2 + default: + X__shlim(tls, f, int64(Int32FromInt32(0))) + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v11 = f + 4 + v10 = *(*uintptr)(unsafe.Pointer(v11)) + *(*uintptr)(unsafe.Pointer(v11)) = *(*uintptr)(unsafe.Pointer(v11)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v10))) + } else { + v1 = X__shgetc(tls, f) + } + v3 = v1 + v4 = BoolInt32(v3 == int32(' ') || Uint32FromInt32(v3)-uint32('\t') < uint32(5)) + goto _32 + _32: + if !(v4 != 0) { + break + } + } + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + pos = pos + ((*TFILE)(unsafe.Pointer(f)).Fshcnt + int64(int32((*TFILE)(unsafe.Pointer(f)).Frpos)-int32((*TFILE)(unsafe.Pointer(f)).Fbuf))) + } + X__shlim(tls, f, int64(width)) + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v11 = f + 4 + v10 = *(*uintptr)(unsafe.Pointer(v11)) + *(*uintptr)(unsafe.Pointer(v11)) = *(*uintptr)(unsafe.Pointer(v11)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v10))) + } else { + v1 = X__shgetc(tls, f) + } + if v1 < 0 { + goto input_fail + } + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + switch t { + case int32('['): + goto _36 + case int32('c'): + goto _37 + case int32('s'): + goto _38 + case int32('x'): + goto _39 + case int32('X'): + goto _40 + case int32('p'): + goto _41 + case int32('o'): + goto _42 + case int32('u'): + goto _43 + case int32('d'): + goto _44 + case int32('i'): + goto _45 + case int32('G'): + goto _46 + case int32('g'): + goto _47 + case int32('F'): + goto _48 + case int32('f'): + goto _49 + case int32('E'): + goto _50 + case int32('e'): + goto _51 + case int32('A'): + goto _52 + case int32('a'): + goto _53 + } + goto _54 + _38: + ; + _37: + ; + _36: + ; + if t == int32('c') || t == int32('s') { + Xmemset(tls, bp+16, -int32(1), uint32(257)) + (**(**[257]uint8)(__ccgo_up(bp + 16)))[0] = uint8(0) + if t == int32('s') { + (**(**[257]uint8)(__ccgo_up(bp + 16)))[Int32FromInt32(1)+Int32FromUint8('\t')] = uint8(0) + (**(**[257]uint8)(__ccgo_up(bp + 16)))[Int32FromInt32(1)+Int32FromUint8('\n')] = uint8(0) + (**(**[257]uint8)(__ccgo_up(bp + 16)))[Int32FromInt32(1)+Int32FromUint8('\v')] = uint8(0) + (**(**[257]uint8)(__ccgo_up(bp + 16)))[Int32FromInt32(1)+Int32FromUint8('\f')] = uint8(0) + (**(**[257]uint8)(__ccgo_up(bp + 16)))[Int32FromInt32(1)+Int32FromUint8('\r')] = uint8(0) + (**(**[257]uint8)(__ccgo_up(bp + 16)))[Int32FromInt32(1)+Int32FromUint8(' ')] = uint8(0) + } + } else { + p = p + 1 + v10 = p + if Int32FromUint8(**(**uint8)(__ccgo_up(v10))) == int32('^') { + p = p + 1 + invert = Int32FromInt32(1) + } else { + invert = 0 + } + Xmemset(tls, bp+16, invert, uint32(257)) + (**(**[257]uint8)(__ccgo_up(bp + 16)))[0] = uint8(0) + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('-') { + p = p + 1 + (**(**[257]uint8)(__ccgo_up(bp + 16)))[Int32FromInt32(1)+Int32FromUint8('-')] = Uint8FromInt32(Int32FromInt32(1) - invert) + } else { + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32(']') { + p = p + 1 + (**(**[257]uint8)(__ccgo_up(bp + 16)))[Int32FromInt32(1)+Int32FromUint8(']')] = Uint8FromInt32(Int32FromInt32(1) - invert) + } + } + for { + if !(Int32FromUint8(**(**uint8)(__ccgo_up(p))) != int32(']')) { + break + } + if !(**(**uint8)(__ccgo_up(p)) != 0) { + goto fmt_fail + } + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('-') && **(**uint8)(__ccgo_up(p + 1)) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(p + 1))) != int32(']') { + v10 = p + p = p + 1 + c = Int32FromUint8(**(**uint8)(__ccgo_up(v10 + uintptr(-Int32FromInt32(1))))) + for { + if !(c < Int32FromUint8(**(**uint8)(__ccgo_up(p)))) { + break + } + (**(**[257]uint8)(__ccgo_up(bp + 16)))[int32(1)+c] = Uint8FromInt32(int32(1) - invert) + goto _57 + _57: + ; + c = c + 1 + } + } + (**(**[257]uint8)(__ccgo_up(bp + 16)))[int32(1)+Int32FromUint8(**(**uint8)(__ccgo_up(p)))] = Uint8FromInt32(int32(1) - invert) + goto _56 + _56: + ; + p = p + 1 + } + } + wcs = uintptr(0) + s = uintptr(0) + i = uint32(0) + if t == int32('c') { + v59 = Uint32FromInt32(width) + uint32(1) + } else { + v59 = uint32(31) + } + k = v59 + if size == int32(SIZE_l) { + if alloc != 0 { + wcs = Xmalloc(tls, k*uint32(4)) + if !(wcs != 0) { + goto alloc_fail + } + } else { + wcs = dest + } + **(**Tmbstate_t)(__ccgo_up(bp + 8)) = Tmbstate_t{} + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v11 = f + 4 + v10 = *(*uintptr)(unsafe.Pointer(v11)) + *(*uintptr)(unsafe.Pointer(v11)) = *(*uintptr)(unsafe.Pointer(v11)) + 1 + v3 = Int32FromUint8(**(**uint8)(__ccgo_up(v10))) + } else { + v3 = X__shgetc(tls, f) + } + v1 = v3 + c = v1 + if !((**(**[257]uint8)(__ccgo_up(bp + 16)))[v1+int32(1)] != 0) { + break + } + *(*uint8)(unsafe.Pointer(bp)) = Uint8FromInt32(c) + switch Xmbrtowc(tls, bp+276, bp, uint32(1), bp+8) { + case Uint32FromInt32(-Int32FromInt32(1)): + goto input_fail + case Uint32FromInt32(-Int32FromInt32(2)): + continue + } + if wcs != 0 { + v64 = i + i = i + 1 + **(**Twchar_t)(__ccgo_up(wcs + uintptr(v64)*4)) = **(**Twchar_t)(__ccgo_up(bp + 276)) + } + if alloc != 0 && i == k { + k = k + (k + uint32(1)) + tmp = Xrealloc(tls, wcs, k*uint32(4)) + if !(tmp != 0) { + goto alloc_fail + } + wcs = tmp + } + } + if !(Xmbsinit(tls, bp+8) != 0) { + goto input_fail + } + } else { + if alloc != 0 { + s = Xmalloc(tls, k) + if !(s != 0) { + goto alloc_fail + } + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v11 = f + 4 + v10 = *(*uintptr)(unsafe.Pointer(v11)) + *(*uintptr)(unsafe.Pointer(v11)) = *(*uintptr)(unsafe.Pointer(v11)) + 1 + v3 = Int32FromUint8(**(**uint8)(__ccgo_up(v10))) + } else { + v3 = X__shgetc(tls, f) + } + v1 = v3 + c = v1 + if !((**(**[257]uint8)(__ccgo_up(bp + 16)))[v1+int32(1)] != 0) { + break + } + v64 = i + i = i + 1 + **(**uint8)(__ccgo_up(s + uintptr(v64))) = Uint8FromInt32(c) + if i == k { + k = k + (k + uint32(1)) + tmp1 = Xrealloc(tls, s, k) + if !(tmp1 != 0) { + goto alloc_fail + } + s = tmp1 + } + } + } else { + v10 = dest + s = v10 + if v10 != 0 { + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v17 = f + 4 + v11 = *(*uintptr)(unsafe.Pointer(v17)) + *(*uintptr)(unsafe.Pointer(v17)) = *(*uintptr)(unsafe.Pointer(v17)) + 1 + v3 = Int32FromUint8(**(**uint8)(__ccgo_up(v11))) + } else { + v3 = X__shgetc(tls, f) + } + v1 = v3 + c = v1 + if !((**(**[257]uint8)(__ccgo_up(bp + 16)))[v1+int32(1)] != 0) { + break + } + v64 = i + i = i + 1 + **(**uint8)(__ccgo_up(s + uintptr(v64))) = Uint8FromInt32(c) + } + } else { + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v11 = f + 4 + v10 = *(*uintptr)(unsafe.Pointer(v11)) + *(*uintptr)(unsafe.Pointer(v11)) = *(*uintptr)(unsafe.Pointer(v11)) + 1 + v3 = Int32FromUint8(**(**uint8)(__ccgo_up(v10))) + } else { + v3 = X__shgetc(tls, f) + } + v1 = v3 + c = v1 + if !((**(**[257]uint8)(__ccgo_up(bp + 16)))[v1+int32(1)] != 0) { + break + } + } + } + } + } + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + if !((*TFILE)(unsafe.Pointer(f)).Fshcnt+int64(int32((*TFILE)(unsafe.Pointer(f)).Frpos)-int32((*TFILE)(unsafe.Pointer(f)).Fbuf)) != 0) { + goto match_fail + } + if t == int32('c') && (*TFILE)(unsafe.Pointer(f)).Fshcnt+int64(int32((*TFILE)(unsafe.Pointer(f)).Frpos)-int32((*TFILE)(unsafe.Pointer(f)).Fbuf)) != int64(width) { + goto match_fail + } + if alloc != 0 { + if size == int32(SIZE_l) { + **(**uintptr)(__ccgo_up(dest)) = wcs + } else { + **(**uintptr)(__ccgo_up(dest)) = s + } + } + if t != int32('c') { + if wcs != 0 { + **(**Twchar_t)(__ccgo_up(wcs + uintptr(i)*4)) = uint32(0) + } + if s != 0 { + **(**uint8)(__ccgo_up(s + uintptr(i))) = uint8(0) + } + } + goto _54 + _41: + ; + _40: + ; + _39: + ; + base = int32(16) + goto int_common + _42: + ; + base = int32(8) + goto int_common + _44: + ; + _43: + ; + base = int32(10) + goto int_common + _45: + ; + base = 0 + goto int_common + int_common: + ; + x = X__intscan(tls, f, Uint32FromInt32(base), 0, Uint64FromUint64(2)*Uint64FromInt64(0x7fffffffffffffff)+Uint64FromInt32(1)) + if !((*TFILE)(unsafe.Pointer(f)).Fshcnt+int64(int32((*TFILE)(unsafe.Pointer(f)).Frpos)-int32((*TFILE)(unsafe.Pointer(f)).Fbuf)) != 0) { + goto match_fail + } + if t == int32('p') && dest != 0 { + **(**uintptr)(__ccgo_up(dest)) = uintptr(uint32(x)) + } else { + _store_int(tls, dest, size, x) + } + goto _54 + _53: + ; + _52: + ; + _51: + ; + _50: + ; + _49: + ; + _48: + ; + _47: + ; + _46: + ; + y = X__floatscan(tls, f, size, 0) + if !((*TFILE)(unsafe.Pointer(f)).Fshcnt+int64(int32((*TFILE)(unsafe.Pointer(f)).Frpos)-int32((*TFILE)(unsafe.Pointer(f)).Fbuf)) != 0) { + goto match_fail + } + if dest != 0 { + switch size { + case SIZE_def: + **(**float32)(__ccgo_up(dest)) = float32(y) + case int32(SIZE_l): + **(**float64)(__ccgo_up(dest)) = y + case int32(SIZE_L): + **(**float64)(__ccgo_up(dest)) = y + break + } + } + goto _54 + _54: + ; + pos = pos + ((*TFILE)(unsafe.Pointer(f)).Fshcnt + int64(int32((*TFILE)(unsafe.Pointer(f)).Frpos)-int32((*TFILE)(unsafe.Pointer(f)).Fbuf))) + if dest != 0 { + matches = matches + 1 + } + goto _2 + _2: + ; + p = p + 1 + } + if !(0 != 0) { + goto _80 + } + goto fmt_fail +fmt_fail: + ; + goto alloc_fail +alloc_fail: + ; + goto input_fail +input_fail: + ; + if !(matches != 0) { + matches = matches - 1 + } + goto match_fail +match_fail: + ; + if alloc != 0 { + Xfree(tls, s) + Xfree(tls, wcs) + } +_80: + ; + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return matches +} + +func X__isoc99_vfscanf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v ap=%v, (%v:)", tls, f, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvfscanf(tls, f, fmt, ap) +} + +var _states1 = [8][58]uint8{ + 0: { + 0: uint8(_DBL), + 2: uint8(_UINT), + 4: uint8(_DBL), + 5: uint8(_DBL), + 6: uint8(_DBL), + 11: uint8(_BIGLPRE), + 18: uint8(_PTR), + 23: uint8(_UINT), + 32: uint8(_DBL), + 34: uint8(_INT), + 35: uint8(_INT), + 36: uint8(_DBL), + 37: uint8(_DBL), + 38: uint8(_DBL), + 39: uint8(_HPRE), + 40: uint8(_INT), + 41: uint8(_JPRE), + 43: uint8(_LPRE), + 44: uint8(_NOARG), + 45: uint8(_PTR), + 46: uint8(_UINT), + 47: uint8(_UIPTR), + 50: uint8(_PTR), + 51: uint8(_ZTPRE), + 52: uint8(_UINT), + 55: uint8(_UINT), + 57: uint8(_ZTPRE), + }, + 1: { + 0: uint8(_DBL), + 4: uint8(_DBL), + 5: uint8(_DBL), + 6: uint8(_DBL), + 23: uint8(_ULONG), + 32: uint8(_DBL), + 34: uint8(_UINT), + 35: uint8(_LONG), + 36: uint8(_DBL), + 37: uint8(_DBL), + 38: uint8(_DBL), + 40: uint8(_LONG), + 43: uint8(_LLPRE), + 45: uint8(_PTR), + 46: uint8(_ULONG), + 50: uint8(_PTR), + 52: uint8(_ULONG), + 55: uint8(_ULONG), + }, + 2: { + 23: uint8(_ULLONG), + 35: uint8(_LLONG), + 40: uint8(_LLONG), + 45: uint8(_PTR), + 46: uint8(_ULLONG), + 52: uint8(_ULLONG), + 55: uint8(_ULLONG), + }, + 3: { + 23: uint8(_USHORT), + 35: uint8(_SHORT), + 39: uint8(_HHPRE), + 40: uint8(_SHORT), + 45: uint8(_PTR), + 46: uint8(_USHORT), + 52: uint8(_USHORT), + 55: uint8(_USHORT), + }, + 4: { + 23: uint8(_UCHAR), + 35: uint8(_CHAR), + 40: uint8(_CHAR), + 45: uint8(_PTR), + 46: uint8(_UCHAR), + 52: uint8(_UCHAR), + 55: uint8(_UCHAR), + }, + 5: { + 0: uint8(_LDBL), + 4: uint8(_LDBL), + 5: uint8(_LDBL), + 6: uint8(_LDBL), + 32: uint8(_LDBL), + 36: uint8(_LDBL), + 37: uint8(_LDBL), + 38: uint8(_LDBL), + 45: uint8(_PTR), + }, + 6: { + 23: uint8(_SIZET), + 35: uint8(_PDIFF), + 40: uint8(_PDIFF), + 45: uint8(_PTR), + 46: uint8(_SIZET), + 52: uint8(_SIZET), + 55: uint8(_SIZET), + }, + 7: { + 23: uint8(_UMAX), + 35: uint8(_IMAX), + 40: uint8(_IMAX), + 45: uint8(_PTR), + 46: uint8(_UMAX), + 52: uint8(_UMAX), + 55: uint8(_UMAX), + }, +} + +func _pop_arg1(tls *TLS, arg uintptr, type1 int32, ap uintptr) { + switch type1 { + case int32(_PTR): + *(*uintptr)(unsafe.Pointer(arg)) = VaUintptr(&**(**Tva_list)(__ccgo_up(ap))) + case int32(_INT): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt32(VaInt32(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_UINT): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(VaUint32(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_LONG): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt32(VaInt32(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_ULONG): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(VaUint32(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_ULLONG): + (*Targ)(unsafe.Pointer(arg)).Fi = VaUint64(&**(**Tva_list)(__ccgo_up(ap))) + case int32(_SHORT): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt16(int16(VaInt32(&**(**Tva_list)(__ccgo_up(ap))))) + case int32(_USHORT): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(Uint16FromInt32(VaInt32(&**(**Tva_list)(__ccgo_up(ap))))) + case int32(_CHAR): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt8(int8(VaInt32(&**(**Tva_list)(__ccgo_up(ap))))) + case int32(_UCHAR): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(Uint8FromInt32(VaInt32(&**(**Tva_list)(__ccgo_up(ap))))) + case int32(_LLONG): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt64(VaInt64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_SIZET): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(VaUint32(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_IMAX): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt64(VaInt64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_UMAX): + (*Targ)(unsafe.Pointer(arg)).Fi = VaUint64(&**(**Tva_list)(__ccgo_up(ap))) + case int32(_PDIFF): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt32(VaInt32(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_UIPTR): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(uint32(VaUintptr(&**(**Tva_list)(__ccgo_up(ap))))) + case int32(_DBL): + *(*float64)(unsafe.Pointer(arg)) = float64(VaFloat64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_LDBL): + *(*float64)(unsafe.Pointer(arg)) = VaFloat64(&**(**Tva_list)(__ccgo_up(ap))) + } +} + +func _out1(tls *TLS, f uintptr, s uintptr, l Tsize_t) { + var v1 Tsize_t + var v2 uintptr + _, _ = v1, v2 + for { + v1 = l + l = l - 1 + if !(v1 != 0 && !((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_ERR) != 0)) { + break + } + v2 = s + s += 4 + Xfputwc(tls, **(**Twchar_t)(__ccgo_up(v2)), f) + } +} + +func _pad4(tls *TLS, f uintptr, n int32, fl int32) { + bp := tls.Alloc(32) + defer tls.Free(32) + if Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' '))) != 0 || !(n != 0) || (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_ERR) != 0 { + return + } + Xfprintf(tls, f, __ccgo_ts+1467, VaList(bp+8, n, __ccgo_ts)) +} + +func _getint1(tls *TLS, s uintptr) (r int32) { + var i int32 + _ = i + i = 0 + for { + if !(BoolInt32(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(s))))-uint32('0') < uint32(10)) != 0) { + break + } + if Uint32FromInt32(i) > Uint32FromInt32(INT_MAX)/Uint32FromUint32(10) || **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(s))))-uint32('0') > Uint32FromInt32(int32(INT_MAX)-int32(10)*i) { + i = -int32(1) + } else { + i = Int32FromUint32(Uint32FromInt32(int32(10)*i) + (**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(s)))) - uint32('0'))) + } + goto _1 + _1: + ; + **(**uintptr)(__ccgo_up(s)) += 4 + } + return i +} + +var _sizeprefix = [24]uint8{ + 0: uint8('L'), + 3: uint8('j'), + 4: uint8('L'), + 5: uint8('L'), + 6: uint8('L'), + 8: uint8('j'), + 14: uint8('j'), + 15: uint8('j'), + 20: uint8('j'), + 23: uint8('j'), +} + +func _wprintf_core(tls *TLS, f uintptr, fmt uintptr, ap uintptr, nl_arg uintptr, nl_type uintptr) (r int32) { + bp := tls.Alloc(112) + defer tls.Free(112) + var a, bs, z, v8 uintptr + var argpos, cnt, i, l, p, t, w, xp, v5, v6, v7 int32 + var fl, l10n, ps, st uint32 + var v15 bool + var v9 uint64 + var _ /* arg at bp+8 */ Targ + var _ /* charfmt at bp+16 */ [16]uint8 + var _ /* s at bp+4 */ uintptr + var _ /* wc at bp+32 */ Twchar_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = a, argpos, bs, cnt, fl, i, l, l10n, p, ps, st, t, w, xp, z, v15, v5, v6, v7, v8, v9 + **(**uintptr)(__ccgo_up(bp + 4)) = fmt + l10n = uint32(0) + cnt = 0 + l = 0 + for { + /* This error is only specified for snprintf, but since it's + * unspecified for other forms, do the same. Stop immediately + * on overflow; otherwise %n could produce wrong results. */ + if l > int32(INT_MAX)-cnt { + goto overflow + } + /* Update output count, end loop when fmt is exhausted */ + cnt = cnt + l + if !(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 4)))) != 0) { + break + } + /* Handle literal text and %% format specifiers */ + a = **(**uintptr)(__ccgo_up(bp + 4)) + for { + if !(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 4)))) != 0 && **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 4)))) != uint32('%')) { + break + } + goto _2 + _2: + ; + **(**uintptr)(__ccgo_up(bp + 4)) += 4 + } + z = **(**uintptr)(__ccgo_up(bp + 4)) + for { + if !(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 4)))) == uint32('%') && **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 4)) + 1*4)) == uint32('%')) { + break + } + goto _3 + _3: + ; + z += 4 + **(**uintptr)(__ccgo_up(bp + 4)) = **(**uintptr)(__ccgo_up(bp + 4)) + uintptr(2)*4 + } + if (int32(z)-int32(a))/4 > int32(INT_MAX)-cnt { + goto overflow + } + l = (int32(z) - int32(a)) / 4 + if f != 0 { + _out1(tls, f, a, Uint32FromInt32(l)) + } + if l != 0 { + goto _1 + } + if BoolInt32(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 4)) + 1*4))-uint32('0') < uint32(10)) != 0 && **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 4)) + 2*4)) == uint32('$') { + l10n = uint32(1) + argpos = Int32FromUint32(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 4)) + 1*4)) - uint32('0')) + **(**uintptr)(__ccgo_up(bp + 4)) = **(**uintptr)(__ccgo_up(bp + 4)) + uintptr(3)*4 + } else { + argpos = -int32(1) + **(**uintptr)(__ccgo_up(bp + 4)) += 4 + } + /* Read modifier flags */ + fl = uint32(0) + for { + if !(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 4))))-uint32(' ') < uint32(32) && (Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8('0')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8(' ')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8('+')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8('\'')-Int32FromUint8(' ')))&(uint32(1)<<(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 4))))-uint32(' '))) != 0) { + break + } + fl = fl | uint32(1)<<(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 4))))-uint32(' ')) + goto _4 + _4: + ; + **(**uintptr)(__ccgo_up(bp + 4)) += 4 + } + /* Read field width */ + if **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 4)))) == uint32('*') { + if BoolInt32(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 4)) + 1*4))-uint32('0') < uint32(10)) != 0 && **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 4)) + 2*4)) == uint32('$') { + l10n = uint32(1) + **(**int32)(__ccgo_up(nl_type + uintptr(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 4)) + 1*4))-uint32('0'))*4)) = int32(_INT) + w = Int32FromUint64(*(*Tuintmax_t)(unsafe.Pointer(nl_arg + uintptr(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 4)) + 1*4))-uint32('0'))*8))) + **(**uintptr)(__ccgo_up(bp + 4)) = **(**uintptr)(__ccgo_up(bp + 4)) + uintptr(3)*4 + } else { + if !(l10n != 0) { + if f != 0 { + v5 = VaInt32(&**(**Tva_list)(__ccgo_up(ap))) + } else { + v5 = 0 + } + w = v5 + **(**uintptr)(__ccgo_up(bp + 4)) += 4 + } else { + goto inval + } + } + if w < 0 { + fl = fl | Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' ')) + w = -w + } + } else { + v5 = _getint1(tls, bp+4) + w = v5 + if v5 < 0 { + goto overflow + } + } + /* Read precision */ + if **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 4)))) == uint32('.') && **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 4)) + 1*4)) == uint32('*') { + if BoolInt32(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 4)) + 2*4))-uint32('0') < uint32(10)) != 0 && **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 4)) + 3*4)) == uint32('$') { + **(**int32)(__ccgo_up(nl_type + uintptr(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 4)) + 2*4))-uint32('0'))*4)) = int32(_INT) + p = Int32FromUint64(*(*Tuintmax_t)(unsafe.Pointer(nl_arg + uintptr(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 4)) + 2*4))-uint32('0'))*8))) + **(**uintptr)(__ccgo_up(bp + 4)) = **(**uintptr)(__ccgo_up(bp + 4)) + uintptr(4)*4 + } else { + if !(l10n != 0) { + if f != 0 { + v5 = VaInt32(&**(**Tva_list)(__ccgo_up(ap))) + } else { + v5 = 0 + } + p = v5 + **(**uintptr)(__ccgo_up(bp + 4)) = **(**uintptr)(__ccgo_up(bp + 4)) + uintptr(2)*4 + } else { + goto inval + } + } + xp = BoolInt32(p >= 0) + } else { + if **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 4)))) == uint32('.') { + **(**uintptr)(__ccgo_up(bp + 4)) += 4 + p = _getint1(tls, bp+4) + xp = int32(1) + } else { + p = -int32(1) + xp = 0 + } + } + /* Format specifier state machine */ + st = uint32(0) + for cond := true; cond; cond = st-uint32(1) < uint32(_STOP) { + if **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 4))))-uint32('A') > Uint32FromInt32(Int32FromUint8('z')-Int32FromUint8('A')) { + goto inval + } + ps = st + v8 = **(**uintptr)(__ccgo_up(bp + 4)) + **(**uintptr)(__ccgo_up(bp + 4)) += 4 + st = uint32(**(**uint8)(__ccgo_up(uintptr(unsafe.Pointer(&_states1)) + uintptr(st)*58 + uintptr(**(**Twchar_t)(__ccgo_up(v8))-uint32('A'))))) + } + if !(st != 0) { + goto inval + } + /* Check validity of argument type (nl/normal) */ + if st == uint32(_NOARG) { + if argpos >= 0 { + goto inval + } + } else { + if argpos >= 0 { + **(**int32)(__ccgo_up(nl_type + uintptr(argpos)*4)) = Int32FromUint32(st) + **(**Targ)(__ccgo_up(bp + 8)) = **(**Targ)(__ccgo_up(nl_arg + uintptr(argpos)*8)) + } else { + if f != 0 { + _pop_arg1(tls, bp+8, Int32FromUint32(st), ap) + } else { + return 0 + } + } + } + if !(f != 0) { + goto _1 + } + /* Do not process any new directives once in error state. */ + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_ERR) != 0 { + return -int32(1) + } + t = Int32FromUint32(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 4)) + uintptr(-Int32FromInt32(1))*4))) + if ps != 0 && t&int32(15) == int32(3) { + t = t & ^Int32FromInt32(32) + } + switch t { + case int32('n'): + switch ps { + case uint32(_BARE): + **(**int32)(__ccgo_up(*(*uintptr)(unsafe.Pointer(&**(**Targ)(__ccgo_up(bp + 8)))))) = cnt + case uint32(_LPRE): + **(**int32)(__ccgo_up(*(*uintptr)(unsafe.Pointer(&**(**Targ)(__ccgo_up(bp + 8)))))) = cnt + case uint32(_LLPRE): + **(**int64)(__ccgo_up(*(*uintptr)(unsafe.Pointer(&**(**Targ)(__ccgo_up(bp + 8)))))) = int64(cnt) + case uint32(_HPRE): + **(**uint16)(__ccgo_up(*(*uintptr)(unsafe.Pointer(&**(**Targ)(__ccgo_up(bp + 8)))))) = Uint16FromInt32(cnt) + case uint32(_HHPRE): + **(**uint8)(__ccgo_up(*(*uintptr)(unsafe.Pointer(&**(**Targ)(__ccgo_up(bp + 8)))))) = Uint8FromInt32(cnt) + case uint32(_ZTPRE): + **(**Tsize_t)(__ccgo_up(*(*uintptr)(unsafe.Pointer(&**(**Targ)(__ccgo_up(bp + 8)))))) = Uint32FromInt32(cnt) + case uint32(_JPRE): + **(**Tuintmax_t)(__ccgo_up(*(*uintptr)(unsafe.Pointer(&**(**Targ)(__ccgo_up(bp + 8)))))) = Uint64FromInt32(cnt) + break + } + goto _1 + case int32('c'): + fallthrough + case int32('C'): + if w < int32(1) { + w = int32(1) + } + _pad4(tls, f, w-int32(1), Int32FromUint32(fl)) + if t == int32('C') { + v9 = *(*Tuintmax_t)(unsafe.Pointer(bp + 8)) + } else { + v9 = uint64(Xbtowc(tls, Int32FromUint64(*(*Tuintmax_t)(unsafe.Pointer(bp + 8))))) + } + *(*Twchar_t)(unsafe.Pointer(bp)) = uint32(v9) + _out1(tls, f, bp, uint32(1)) + _pad4(tls, f, w-int32(1), Int32FromUint32(fl^Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' ')))) + l = w + goto _1 + case int32('S'): + a = *(*uintptr)(unsafe.Pointer(&**(**Targ)(__ccgo_up(bp + 8)))) + if p < 0 { + v5 = int32(INT_MAX) + } else { + v5 = p + } + z = a + uintptr(Xwcsnlen(tls, a, Uint32FromInt32(v5)))*4 + if p < 0 && **(**Twchar_t)(__ccgo_up(z)) != 0 { + goto overflow + } + p = (int32(z) - int32(a)) / 4 + if w < p { + w = p + } + _pad4(tls, f, w-p, Int32FromUint32(fl)) + _out1(tls, f, a, Uint32FromInt32(p)) + _pad4(tls, f, w-p, Int32FromUint32(fl^Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' ')))) + l = w + goto _1 + case int32('m'): + *(*uintptr)(unsafe.Pointer(&**(**Targ)(__ccgo_up(bp + 8)))) = Xstrerror(tls, **(**int32)(__ccgo_up(X__errno_location(tls)))) + fallthrough + case int32('s'): + if !(*(*uintptr)(unsafe.Pointer(&**(**Targ)(__ccgo_up(bp + 8)))) != 0) { + *(*uintptr)(unsafe.Pointer(&**(**Targ)(__ccgo_up(bp + 8)))) = __ccgo_ts + 1460 + } + bs = *(*uintptr)(unsafe.Pointer(&**(**Targ)(__ccgo_up(bp + 8)))) + v5 = Int32FromInt32(0) + l = v5 + i = v5 + for { + if p < 0 { + v6 = int32(INT_MAX) + } else { + v6 = p + } + if v15 = l < v6; v15 { + v7 = Xmbtowc(tls, bp+32, bs, uint32(MB_LEN_MAX)) + i = v7 + } + if !(v15 && v7 > 0) { + break + } + goto _11 + _11: + ; + bs = bs + uintptr(i) + l = l + 1 + } + if i < 0 { + return -int32(1) + } + if p < 0 && **(**uint8)(__ccgo_up(bs)) != 0 { + goto overflow + } + p = l + if w < p { + w = p + } + _pad4(tls, f, w-p, Int32FromUint32(fl)) + bs = *(*uintptr)(unsafe.Pointer(&**(**Targ)(__ccgo_up(bp + 8)))) + for { + v5 = l + l = l - 1 + if !(v5 != 0) { + break + } + i = Xmbtowc(tls, bp+32, bs, uint32(MB_LEN_MAX)) + bs = bs + uintptr(i) + _out1(tls, f, bp+32, uint32(1)) + } + _pad4(tls, f, w-p, Int32FromUint32(fl^Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' ')))) + l = w + goto _1 + } + if xp != 0 && p < 0 { + goto overflow + } + Xsnprintf(tls, bp+16, uint32(16), __ccgo_ts+1471, VaList(bp+48, __ccgo_ts+1491+BoolUintptr(!(fl&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0)), __ccgo_ts+1493+BoolUintptr(!(fl&(Uint32FromUint32(1)<<(Int32FromUint8('+')-Int32FromUint8(' '))) != 0)), __ccgo_ts+1495+BoolUintptr(!(fl&(Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' '))) != 0)), __ccgo_ts+587+BoolUintptr(!(fl&(Uint32FromUint32(1)<<(Int32FromUint8(' ')-Int32FromUint8(' '))) != 0)), __ccgo_ts+1497+BoolUintptr(!(fl&(Uint32FromUint32(1)<<(Int32FromUint8('0')-Int32FromUint8(' '))) != 0)), Int32FromUint8(_sizeprefix[t|int32(32)-int32('a')]), t)) + switch t | Int32FromInt32(32) { + case int32('a'): + fallthrough + case int32('e'): + fallthrough + case int32('f'): + fallthrough + case int32('g'): + l = Xfprintf(tls, f, bp+16, VaList(bp+48, w, p, *(*float64)(unsafe.Pointer(bp + 8)))) + case int32('d'): + fallthrough + case int32('i'): + fallthrough + case int32('o'): + fallthrough + case int32('u'): + fallthrough + case int32('x'): + fallthrough + case int32('p'): + l = Xfprintf(tls, f, bp+16, VaList(bp+48, w, p, *(*Tuintmax_t)(unsafe.Pointer(bp + 8)))) + break + } + goto _1 + _1: + } + if f != 0 { + return cnt + } + if !(l10n != 0) { + return 0 + } + i = int32(1) + for { + if !(i <= int32(NL_ARGMAX) && **(**int32)(__ccgo_up(nl_type + uintptr(i)*4)) != 0) { + break + } + _pop_arg1(tls, nl_arg+uintptr(i)*8, **(**int32)(__ccgo_up(nl_type + uintptr(i)*4)), ap) + goto _17 + _17: + ; + i = i + 1 + } + for { + if !(i <= int32(NL_ARGMAX) && !(**(**int32)(__ccgo_up(nl_type + uintptr(i)*4)) != 0)) { + break + } + goto _18 + _18: + ; + i = i + 1 + } + if i <= int32(NL_ARGMAX) { + return -int32(1) + } + return int32(1) + goto inval +inval: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + goto overflow +overflow: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOVERFLOW) + return -int32(1) +} + +func Xvfwprintf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v ap=%v, (%v:)", tls, f, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(128) + defer tls.Free(128) + var __need_unlock, olderr, ret, v1 int32 + var _ /* ap2 at bp+0 */ Tva_list + var _ /* nl_arg at bp+48 */ [10]Targ + var _ /* nl_type at bp+4 */ [10]int32 + _, _, _, _ = __need_unlock, olderr, ret, v1 + **(**[10]int32)(__ccgo_up(bp + 4)) = [10]int32{} + /* the copy allows passing va_list* even if va_list is an array */ + **(**Tva_list)(__ccgo_up(bp)) = ap + if _wprintf_core(tls, uintptr(0), fmt, bp, bp+48, bp+4) < 0 { + _ = **(**Tva_list)(__ccgo_up(bp)) + return -int32(1) + } + if AtomicLoadPInt32(f+76) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + Xfwide(tls, f, int32(1)) + olderr = Int32FromUint32((*TFILE)(unsafe.Pointer(f)).Fflags & uint32(F_ERR)) + **(**uint32)(__ccgo_up(f)) &= Uint32FromInt32(^Int32FromInt32(F_ERR)) + ret = _wprintf_core(tls, f, fmt, bp, bp+48, bp+4) + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_ERR) != 0 { + ret = -int32(1) + } + **(**uint32)(__ccgo_up(f)) |= Uint32FromInt32(olderr) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + _ = **(**Tva_list)(__ccgo_up(bp)) + return ret +} + +func _store_int1(tls *TLS, dest uintptr, size int32, i uint64) { + if !(dest != 0) { + return + } + switch size { + case -int32(2): + **(**uint8)(__ccgo_up(dest)) = uint8(i) + case -int32(1): + **(**int16)(__ccgo_up(dest)) = Int16FromUint64(i) + case SIZE_def: + **(**int32)(__ccgo_up(dest)) = Int32FromUint64(i) + case int32(SIZE_l): + **(**int32)(__ccgo_up(dest)) = Int32FromUint64(i) + case int32(SIZE_ll): + **(**int64)(__ccgo_up(dest)) = Int64FromUint64(i) + break + } +} + +func _arg_n1(tls *TLS, ap Tva_list, n uint32) (r uintptr) { + var ap2 Tva_list + var i uint32 + var p uintptr + _, _, _ = ap2, i, p + ap2 = ap + i = n + for { + if !(i > uint32(1)) { + break + } + _ = VaUintptr(&ap2) + goto _1 + _1: + ; + i = i - 1 + } + p = VaUintptr(&ap2) + _ = ap2 + return p +} + +func _in_set(tls *TLS, set uintptr, c int32) (r int32) { + var j int32 + var p, v3 uintptr + _, _, _ = j, p, v3 + p = set + if **(**Twchar_t)(__ccgo_up(p)) == uint32('-') { + if c == int32('-') { + return int32(1) + } + p += 4 + } else { + if **(**Twchar_t)(__ccgo_up(p)) == uint32(']') { + if c == int32(']') { + return int32(1) + } + p += 4 + } + } + for { + if !(**(**Twchar_t)(__ccgo_up(p)) != 0 && **(**Twchar_t)(__ccgo_up(p)) != uint32(']')) { + break + } + if **(**Twchar_t)(__ccgo_up(p)) == uint32('-') && **(**Twchar_t)(__ccgo_up(p + 1*4)) != 0 && **(**Twchar_t)(__ccgo_up(p + 1*4)) != uint32(']') { + v3 = p + p += 4 + j = Int32FromUint32(**(**Twchar_t)(__ccgo_up(v3 + uintptr(-Int32FromInt32(1))*4))) + for { + if !(Uint32FromInt32(j) < **(**Twchar_t)(__ccgo_up(p))) { + break + } + if c == j { + return int32(1) + } + goto _2 + _2: + ; + j = j + 1 + } + } + if Uint32FromInt32(c) == **(**Twchar_t)(__ccgo_up(p)) { + return int32(1) + } + goto _1 + _1: + ; + p += 4 + } + return 0 +} + +func Xvfwscanf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v ap=%v, (%v:)", tls, f, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(80) + defer tls.Free(80) + var __need_unlock, alloc, c, gotmatch, invert, l, matches, size, t, width, v1 int32 + var dest, p, s, set, tmp1, tmp2, wcs, v5, v6 uintptr + var i, k, v37 Tsize_t + var pos Toff_t + var v4 uint32 + var _ /* cnt at bp+0 */ Toff_t + var _ /* tmp at bp+8 */ [22]uint8 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = __need_unlock, alloc, c, dest, gotmatch, i, invert, k, l, matches, p, pos, s, set, size, t, tmp1, tmp2, wcs, width, v1, v37, v4, v5, v6 + dest = UintptrFromInt32(0) + matches = 0 + pos = 0 + if AtomicLoadPInt32(f+76) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + Xfwide(tls, f, int32(1)) + p = fmt + for { + if !(**(**Twchar_t)(__ccgo_up(p)) != 0) { + break + } + alloc = 0 + if Xiswspace(tls, **(**Twchar_t)(__ccgo_up(p))) != 0 { + for Xiswspace(tls, **(**Twchar_t)(__ccgo_up(p + 1*4))) != 0 { + p += 4 + } + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend && Int32FromUint8(**(**uint8)(__ccgo_up((*TFILE)(unsafe.Pointer(f)).Frpos))) < int32(128) { + v6 = f + 4 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + v4 = uint32(**(**uint8)(__ccgo_up(v5))) + } else { + v4 = Xgetwc(tls, f) + } + v1 = Int32FromUint32(v4) + c = v1 + if !(Xiswspace(tls, Uint32FromInt32(v1)) != 0) { + break + } + pos = pos + 1 + } + if (*TFILE)(unsafe.Pointer(f)).Frend != 0 && Uint32FromInt32(c) < uint32(128) { + v6 = f + 4 + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) - 1 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + _ = **(**uint8)(__ccgo_up(v5)) + } else { + Xungetwc(tls, Uint32FromInt32(c), f) + } + goto _2 + } + if **(**Twchar_t)(__ccgo_up(p)) != uint32('%') || **(**Twchar_t)(__ccgo_up(p + 1*4)) == uint32('%') { + if **(**Twchar_t)(__ccgo_up(p)) == uint32('%') { + p += 4 + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend && Int32FromUint8(**(**uint8)(__ccgo_up((*TFILE)(unsafe.Pointer(f)).Frpos))) < int32(128) { + v6 = f + 4 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + v4 = uint32(**(**uint8)(__ccgo_up(v5))) + } else { + v4 = Xgetwc(tls, f) + } + v1 = Int32FromUint32(v4) + c = v1 + if !(Xiswspace(tls, Uint32FromInt32(v1)) != 0) { + break + } + pos = pos + 1 + } + } else { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend && Int32FromUint8(**(**uint8)(__ccgo_up((*TFILE)(unsafe.Pointer(f)).Frpos))) < int32(128) { + v6 = f + 4 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + v4 = uint32(**(**uint8)(__ccgo_up(v5))) + } else { + v4 = Xgetwc(tls, f) + } + c = Int32FromUint32(v4) + } + if Uint32FromInt32(c) != **(**Twchar_t)(__ccgo_up(p)) { + if (*TFILE)(unsafe.Pointer(f)).Frend != 0 && Uint32FromInt32(c) < uint32(128) { + v6 = f + 4 + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) - 1 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + _ = **(**uint8)(__ccgo_up(v5)) + } else { + Xungetwc(tls, Uint32FromInt32(c), f) + } + if c < 0 { + goto input_fail + } + goto match_fail + } + pos = pos + 1 + goto _2 + } + p += 4 + if **(**Twchar_t)(__ccgo_up(p)) == uint32('*') { + dest = uintptr(0) + p += 4 + } else { + if BoolInt32(**(**Twchar_t)(__ccgo_up(p))-uint32('0') < uint32(10)) != 0 && **(**Twchar_t)(__ccgo_up(p + 1*4)) == uint32('$') { + dest = _arg_n1(tls, ap, **(**Twchar_t)(__ccgo_up(p))-uint32('0')) + p = p + uintptr(2)*4 + } else { + dest = VaUintptr(&ap) + } + } + width = 0 + for { + if !(BoolInt32(**(**Twchar_t)(__ccgo_up(p))-uint32('0') < uint32(10)) != 0) { + break + } + width = Int32FromUint32(Uint32FromInt32(int32(10)*width) + **(**Twchar_t)(__ccgo_up(p)) - uint32('0')) + goto _18 + _18: + ; + p += 4 + } + if **(**Twchar_t)(__ccgo_up(p)) == uint32('m') { + wcs = uintptr(0) + s = uintptr(0) + alloc = BoolInt32(!!(dest != 0)) + p += 4 + } else { + alloc = 0 + } + size = SIZE_def + v5 = p + p += 4 + switch **(**Twchar_t)(__ccgo_up(v5)) { + case uint32('h'): + if **(**Twchar_t)(__ccgo_up(p)) == uint32('h') { + p += 4 + size = -Int32FromInt32(2) + } else { + size = -int32(1) + } + case uint32('l'): + if **(**Twchar_t)(__ccgo_up(p)) == uint32('l') { + p += 4 + size = Int32FromInt32(SIZE_ll) + } else { + size = int32(SIZE_l) + } + case uint32('j'): + size = int32(SIZE_ll) + case uint32('z'): + fallthrough + case uint32('t'): + size = int32(SIZE_l) + case uint32('L'): + size = int32(SIZE_L) + case uint32('d'): + fallthrough + case uint32('i'): + fallthrough + case uint32('o'): + fallthrough + case uint32('u'): + fallthrough + case uint32('x'): + fallthrough + case uint32('a'): + fallthrough + case uint32('e'): + fallthrough + case uint32('f'): + fallthrough + case uint32('g'): + fallthrough + case uint32('A'): + fallthrough + case uint32('E'): + fallthrough + case uint32('F'): + fallthrough + case uint32('G'): + fallthrough + case uint32('X'): + fallthrough + case uint32('s'): + fallthrough + case uint32('c'): + fallthrough + case uint32('['): + fallthrough + case uint32('S'): + fallthrough + case uint32('C'): + fallthrough + case uint32('p'): + fallthrough + case uint32('n'): + p -= 4 + default: + goto fmt_fail + } + t = Int32FromUint32(**(**Twchar_t)(__ccgo_up(p))) + /* Transform S,C -> ls,lc */ + if t&int32(0x2f) == int32(3) { + size = int32(SIZE_l) + t = t | int32(32) + } + if t != int32('n') { + if t != int32('[') && t|int32(32) != int32('c') { + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend && Int32FromUint8(**(**uint8)(__ccgo_up((*TFILE)(unsafe.Pointer(f)).Frpos))) < int32(128) { + v6 = f + 4 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + v4 = uint32(**(**uint8)(__ccgo_up(v5))) + } else { + v4 = Xgetwc(tls, f) + } + v1 = Int32FromUint32(v4) + c = v1 + if !(Xiswspace(tls, Uint32FromInt32(v1)) != 0) { + break + } + pos = pos + 1 + } + } else { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend && Int32FromUint8(**(**uint8)(__ccgo_up((*TFILE)(unsafe.Pointer(f)).Frpos))) < int32(128) { + v6 = f + 4 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + v4 = uint32(**(**uint8)(__ccgo_up(v5))) + } else { + v4 = Xgetwc(tls, f) + } + c = Int32FromUint32(v4) + } + if c < 0 { + goto input_fail + } + if (*TFILE)(unsafe.Pointer(f)).Frend != 0 && Uint32FromInt32(c) < uint32(128) { + v6 = f + 4 + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) - 1 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + _ = **(**uint8)(__ccgo_up(v5)) + } else { + Xungetwc(tls, Uint32FromInt32(c), f) + } + } + switch t { + case int32('n'): + _store_int1(tls, dest, size, Uint64FromInt64(pos)) + /* do not increment match count, etc! */ + goto _2 + case int32('s'): + fallthrough + case int32('c'): + fallthrough + case int32('['): + if t == int32('c') { + if width < int32(1) { + width = int32(1) + } + invert = int32(1) + set = __ccgo_ts + 1499 + } else { + if t == int32('s') { + invert = int32(1) + set = uintptr(unsafe.Pointer(&_spaces1)) + } else { + p += 4 + v5 = p + if **(**Twchar_t)(__ccgo_up(v5)) == uint32('^') { + p += 4 + invert = Int32FromInt32(1) + } else { + invert = 0 + } + set = p + if **(**Twchar_t)(__ccgo_up(p)) == uint32(']') { + p += 4 + } + for **(**Twchar_t)(__ccgo_up(p)) != uint32(']') { + if !(**(**Twchar_t)(__ccgo_up(p)) != 0) { + goto fmt_fail + } + p += 4 + } + } + } + if size == SIZE_def { + v5 = dest + } else { + v5 = uintptr(0) + } + s = v5 + if size == int32(SIZE_l) { + v5 = dest + } else { + v5 = uintptr(0) + } + wcs = v5 + gotmatch = 0 + if width < int32(1) { + width = -int32(1) + } + i = uint32(0) + if alloc != 0 { + if t == int32('c') { + v4 = Uint32FromInt32(width) + uint32(1) + } else { + v4 = uint32(31) + } + k = v4 + if size == int32(SIZE_l) { + wcs = Xmalloc(tls, k*uint32(4)) + if !(wcs != 0) { + goto alloc_fail + } + } else { + s = Xmalloc(tls, k) + if !(s != 0) { + goto alloc_fail + } + } + } + for width != 0 { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend && Int32FromUint8(**(**uint8)(__ccgo_up((*TFILE)(unsafe.Pointer(f)).Frpos))) < int32(128) { + v6 = f + 4 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + v4 = uint32(**(**uint8)(__ccgo_up(v5))) + } else { + v4 = Xgetwc(tls, f) + } + v1 = Int32FromUint32(v4) + c = v1 + if v1 < 0 { + break + } + if _in_set(tls, set, c) == invert { + break + } + if wcs != 0 { + v37 = i + i = i + 1 + **(**Twchar_t)(__ccgo_up(wcs + uintptr(v37)*4)) = Uint32FromInt32(c) + if alloc != 0 && i == k { + k = k + (k + uint32(1)) + tmp1 = Xrealloc(tls, wcs, k*uint32(4)) + if !(tmp1 != 0) { + goto alloc_fail + } + wcs = tmp1 + } + } else { + if size != int32(SIZE_l) { + if s != 0 { + v5 = s + uintptr(i) + } else { + v5 = bp + 8 + } + l = Xwctomb(tls, v5, Uint32FromInt32(c)) + if l < 0 { + goto input_fail + } + i = i + Uint32FromInt32(l) + if alloc != 0 && i > k-uint32(4) { + k = k + (k + uint32(1)) + tmp2 = Xrealloc(tls, s, k) + if !(tmp2 != 0) { + goto alloc_fail + } + s = tmp2 + } + } + } + pos = pos + 1 + width = width - BoolInt32(width > 0) + gotmatch = int32(1) + } + if width != 0 { + if (*TFILE)(unsafe.Pointer(f)).Frend != 0 && Uint32FromInt32(c) < uint32(128) { + v6 = f + 4 + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) - 1 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + _ = **(**uint8)(__ccgo_up(v5)) + } else { + Xungetwc(tls, Uint32FromInt32(c), f) + } + if t == int32('c') || !(gotmatch != 0) { + goto match_fail + } + } + if alloc != 0 { + if size == int32(SIZE_l) { + **(**uintptr)(__ccgo_up(dest)) = wcs + } else { + **(**uintptr)(__ccgo_up(dest)) = s + } + } + if t != int32('c') { + if wcs != 0 { + **(**Twchar_t)(__ccgo_up(wcs + uintptr(i)*4)) = uint32(0) + } + if s != 0 { + **(**uint8)(__ccgo_up(s + uintptr(i))) = uint8(0) + } + } + case int32('d'): + fallthrough + case int32('i'): + fallthrough + case int32('o'): + fallthrough + case int32('u'): + fallthrough + case int32('x'): + fallthrough + case int32('a'): + fallthrough + case int32('e'): + fallthrough + case int32('f'): + fallthrough + case int32('g'): + fallthrough + case int32('A'): + fallthrough + case int32('E'): + fallthrough + case int32('F'): + fallthrough + case int32('G'): + fallthrough + case int32('X'): + fallthrough + case int32('p'): + if width < int32(1) { + width = 0 + } + Xsnprintf(tls, bp+8, uint32(22), __ccgo_ts+1503, VaList(bp+40, int32(1)+BoolInt32(!(dest != 0)), __ccgo_ts+1521, width, uintptr(unsafe.Pointer(&_size_pfx))+uintptr(size+int32(2))*3, t)) + **(**Toff_t)(__ccgo_up(bp)) = 0 + if dest != 0 { + v5 = dest + } else { + v5 = bp + } + if Xfscanf(tls, f, bp+8, VaList(bp+40, v5, bp)) == -int32(1) { + goto input_fail + } else { + if !(**(**Toff_t)(__ccgo_up(bp)) != 0) { + goto match_fail + } + } + pos = pos + **(**Toff_t)(__ccgo_up(bp)) + default: + goto fmt_fail + } + if dest != 0 { + matches = matches + 1 + } + goto _2 + _2: + ; + p += 4 + } + if !(0 != 0) { + goto _42 + } + goto fmt_fail +fmt_fail: + ; + goto alloc_fail +alloc_fail: + ; + goto input_fail +input_fail: + ; + if !(matches != 0) { + matches = matches - 1 + } + goto match_fail +match_fail: + ; + if alloc != 0 { + Xfree(tls, s) + Xfree(tls, wcs) + } +_42: + ; + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return matches +} + +var _size_pfx = [6][3]uint8{ + 0: {'h', 'h'}, + 1: {'h'}, + 2: {}, + 3: {'l'}, + 4: {'L'}, + 5: {'l', 'l'}, +} + +var _spaces1 = [22]Twchar_t{ + 0: uint32(' '), + 1: uint32('\t'), + 2: uint32('\n'), + 3: uint32('\r'), + 4: uint32(11), + 5: uint32(12), + 6: uint32(0x0085), + 7: uint32(0x2000), + 8: uint32(0x2001), + 9: uint32(0x2002), + 10: uint32(0x2003), + 11: uint32(0x2004), + 12: uint32(0x2005), + 13: uint32(0x2006), + 14: uint32(0x2008), + 15: uint32(0x2009), + 16: uint32(0x200a), + 17: uint32(0x2028), + 18: uint32(0x2029), + 19: uint32(0x205f), + 20: uint32(0x3000), +} + +func X__isoc99_vfwscanf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v ap=%v, (%v:)", tls, f, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvfwscanf(tls, f, fmt, ap) +} + +func Xvprintf(tls *TLS, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v ap=%v, (%v:)", tls, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvfprintf(tls, uintptr(unsafe.Pointer(&X__stdout_FILE)), fmt, ap) +} + +func Xvscanf(tls *TLS, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v ap=%v, (%v:)", tls, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvfscanf(tls, uintptr(unsafe.Pointer(&X__stdin_FILE)), fmt, ap) +} + +func X__isoc99_vscanf(tls *TLS, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v ap=%v, (%v:)", tls, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvscanf(tls, fmt, ap) +} + +type Tcookie3 = struct { + Fs uintptr + Fn Tsize_t +} + +func _sn_write(tls *TLS, f uintptr, s uintptr, l Tsize_t) (r Tsize_t) { + var c, v3 uintptr + var k Tsize_t + var v1 uint32 + _, _, _, _ = c, k, v1, v3 + c = (*TFILE)(unsafe.Pointer(f)).Fcookie + if (*Tcookie3)(unsafe.Pointer(c)).Fn < Uint32FromInt32(int32((*TFILE)(unsafe.Pointer(f)).Fwpos)-int32((*TFILE)(unsafe.Pointer(f)).Fwbase)) { + v1 = (*Tcookie3)(unsafe.Pointer(c)).Fn + } else { + v1 = Uint32FromInt32(int32((*TFILE)(unsafe.Pointer(f)).Fwpos) - int32((*TFILE)(unsafe.Pointer(f)).Fwbase)) + } + k = v1 + if k != 0 { + _memcpy(tls, (*Tcookie3)(unsafe.Pointer(c)).Fs, (*TFILE)(unsafe.Pointer(f)).Fwbase, k) + **(**uintptr)(__ccgo_up(c)) += uintptr(k) + **(**Tsize_t)(__ccgo_up(c + 4)) -= k + } + if (*Tcookie3)(unsafe.Pointer(c)).Fn < l { + v1 = (*Tcookie3)(unsafe.Pointer(c)).Fn + } else { + v1 = l + } + k = v1 + if k != 0 { + _memcpy(tls, (*Tcookie3)(unsafe.Pointer(c)).Fs, s, k) + **(**uintptr)(__ccgo_up(c)) += uintptr(k) + **(**Tsize_t)(__ccgo_up(c + 4)) -= k + } + **(**uint8)(__ccgo_up((*Tcookie3)(unsafe.Pointer(c)).Fs)) = uint8(0) + v3 = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Fwbase = v3 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v3 + /* pretend to succeed, even if we discarded extra data */ + return l +} + +func Xvsnprintf(tls *TLS, s uintptr, n Tsize_t, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v fmt=%v ap=%v, (%v:)", tls, s, n, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(160) + defer tls.Free(160) + var v1 uintptr + var v2 uint32 + var _ /* buf at bp+0 */ [1]uint8 + var _ /* c at bp+8 */ Tcookie3 + var _ /* dummy at bp+1 */ [1]uint8 + var _ /* f at bp+16 */ TFILE + _, _ = v1, v2 + if n != 0 { + v1 = s + } else { + v1 = bp + 1 + } + if n != 0 { + v2 = n - uint32(1) + } else { + v2 = uint32(0) + } + **(**Tcookie3)(__ccgo_up(bp + 8)) = Tcookie3{ + Fs: v1, + Fn: v2, + } + **(**TFILE)(__ccgo_up(bp + 16)) = TFILE{ + Fwrite: __ccgo_fp(_sn_write), + Fbuf: bp, + Flock: -int32(1), + Flbf: -int32(1), + Fcookie: bp + 8, + } + **(**uint8)(__ccgo_up((**(**Tcookie3)(__ccgo_up(bp + 8))).Fs)) = uint8(0) + return Xvfprintf(tls, bp+16, fmt, ap) +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xvsprintf(tls *TLS, s uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v ap=%v, (%v:)", tls, s, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvsnprintf(tls, s, uint32(INT_MAX), fmt, ap) +} + +func _string_read(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + var end, src uintptr + var k Tsize_t + _, _, _ = end, k, src + src = (*TFILE)(unsafe.Pointer(f)).Fcookie + k = len1 + uint32(256) + end = Xmemchr(tls, src, 0, k) + if end != 0 { + k = Uint32FromInt32(int32(end) - int32(src)) + } + if k < len1 { + len1 = k + } + _memcpy(tls, buf, src, len1) + (*TFILE)(unsafe.Pointer(f)).Frpos = src + uintptr(len1) + (*TFILE)(unsafe.Pointer(f)).Frend = src + uintptr(k) + (*TFILE)(unsafe.Pointer(f)).Fcookie = src + uintptr(k) + return len1 +} + +func Xvsscanf(tls *TLS, s uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v ap=%v, (%v:)", tls, s, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(144) + defer tls.Free(144) + var _ /* f at bp+0 */ TFILE + **(**TFILE)(__ccgo_up(bp)) = TFILE{ + Fread: __ccgo_fp(_string_read), + Fbuf: s, + Flock: -int32(1), + Fcookie: s, + } + return Xvfscanf(tls, bp, fmt, ap) +} + +func X__isoc99_vsscanf(tls *TLS, s uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v ap=%v, (%v:)", tls, s, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvsscanf(tls, s, fmt, ap) +} + +type Tcookie4 = struct { + Fws uintptr + Fl Tsize_t +} + +func _sw_write(tls *TLS, f uintptr, s uintptr, l Tsize_t) (r Tsize_t) { + var c, v3, v4 uintptr + var i, v1 int32 + var l0 Tsize_t + var v2 bool + _, _, _, _, _, _, _ = c, i, l0, v1, v2, v3, v4 + l0 = l + i = 0 + c = (*TFILE)(unsafe.Pointer(f)).Fcookie + if s != (*TFILE)(unsafe.Pointer(f)).Fwbase && _sw_write(tls, f, (*TFILE)(unsafe.Pointer(f)).Fwbase, Uint32FromInt32(int32((*TFILE)(unsafe.Pointer(f)).Fwpos)-int32((*TFILE)(unsafe.Pointer(f)).Fwbase))) == Uint32FromInt32(-Int32FromInt32(1)) { + return Uint32FromInt32(-Int32FromInt32(1)) + } + for { + if v2 = (*Tcookie4)(unsafe.Pointer(c)).Fl != 0 && l != 0; v2 { + v1 = Xmbtowc(tls, (*Tcookie4)(unsafe.Pointer(c)).Fws, s, l) + i = v1 + } + if !(v2 && v1 >= 0) { + break + } + if !(i != 0) { + i = int32(1) + } + s = s + uintptr(i) + l = l - Uint32FromInt32(i) + (*Tcookie4)(unsafe.Pointer(c)).Fl = (*Tcookie4)(unsafe.Pointer(c)).Fl - 1 + (*Tcookie4)(unsafe.Pointer(c)).Fws += 4 + } + **(**Twchar_t)(__ccgo_up((*Tcookie4)(unsafe.Pointer(c)).Fws)) = uint32(0) + if i < 0 { + v4 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Fwend = v4 + v3 = v4 + (*TFILE)(unsafe.Pointer(f)).Fwbase = v3 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v3 + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) + return Uint32FromInt32(i) + } + (*TFILE)(unsafe.Pointer(f)).Fwend = (*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr((*TFILE)(unsafe.Pointer(f)).Fbuf_size) + v3 = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Fwbase = v3 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v3 + return l0 +} + +func Xvswprintf(tls *TLS, s uintptr, n Tsize_t, fmt uintptr, ap Tva_list) (r1 int32) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v fmt=%v ap=%v, (%v:)", tls, s, n, fmt, ap, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(416) + defer tls.Free(416) + var r, v1 int32 + var _ /* buf at bp+0 */ [256]uint8 + var _ /* c at bp+256 */ Tcookie4 + var _ /* f at bp+264 */ TFILE + _, _ = r, v1 + **(**Tcookie4)(__ccgo_up(bp + 256)) = Tcookie4{ + Fws: s, + Fl: n - uint32(1), + } + **(**TFILE)(__ccgo_up(bp + 264)) = TFILE{ + Fwrite: __ccgo_fp(_sw_write), + Fbuf: bp, + Fbuf_size: uint32(256), + Flock: -int32(1), + Flbf: -int32(1), + Fcookie: bp + 256, + } + if !(n != 0) { + return -int32(1) + } + r = Xvfwprintf(tls, bp+264, fmt, ap) + _sw_write(tls, bp+264, uintptr(0), uint32(0)) + if Uint32FromInt32(r) >= n { + v1 = -int32(1) + } else { + v1 = r + } + return v1 +} + +func _wstring_read(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + bp := tls.Alloc(16) + defer tls.Free(16) + var k Tsize_t + var v1, v2 uintptr + var _ /* src at bp+0 */ uintptr + _, _, _ = k, v1, v2 + **(**uintptr)(__ccgo_up(bp)) = (*TFILE)(unsafe.Pointer(f)).Fcookie + if !(**(**uintptr)(__ccgo_up(bp)) != 0) { + return uint32(0) + } + k = Xwcsrtombs(tls, (*TFILE)(unsafe.Pointer(f)).Fbuf, bp, (*TFILE)(unsafe.Pointer(f)).Fbuf_size, uintptr(0)) + if k == Uint32FromInt32(-Int32FromInt32(1)) { + v1 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Frend = v1 + (*TFILE)(unsafe.Pointer(f)).Frpos = v1 + return uint32(0) + } + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Frend = (*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr(k) + (*TFILE)(unsafe.Pointer(f)).Fcookie = **(**uintptr)(__ccgo_up(bp)) + if !(len1 != 0) || !(k != 0) { + return uint32(0) + } + v2 = f + 4 + v1 = *(*uintptr)(unsafe.Pointer(v2)) + *(*uintptr)(unsafe.Pointer(v2)) = *(*uintptr)(unsafe.Pointer(v2)) + 1 + **(**uint8)(__ccgo_up(buf)) = **(**uint8)(__ccgo_up(v1)) + return uint32(1) +} + +func Xvswscanf(tls *TLS, s uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v ap=%v, (%v:)", tls, s, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(400) + defer tls.Free(400) + var _ /* buf at bp+0 */ [256]uint8 + var _ /* f at bp+256 */ TFILE + **(**TFILE)(__ccgo_up(bp + 256)) = TFILE{ + Fread: __ccgo_fp(_wstring_read), + Fbuf: bp, + Fbuf_size: uint32(256), + Flock: -int32(1), + Fcookie: s, + } + return Xvfwscanf(tls, bp+256, fmt, ap) +} + +func X__isoc99_vswscanf(tls *TLS, s uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v ap=%v, (%v:)", tls, s, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvswscanf(tls, s, fmt, ap) +} + +func Xvwprintf(tls *TLS, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v ap=%v, (%v:)", tls, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvfwprintf(tls, uintptr(unsafe.Pointer(&X__stdout_FILE)), fmt, ap) +} + +func Xvwscanf(tls *TLS, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v ap=%v, (%v:)", tls, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvfwscanf(tls, uintptr(unsafe.Pointer(&X__stdin_FILE)), fmt, ap) +} + +func X__isoc99_vwscanf(tls *TLS, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v ap=%v, (%v:)", tls, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvwscanf(tls, fmt, ap) +} + +func Xwprintf(tls *TLS, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v va=%v, (%v:)", tls, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvwprintf(tls, fmt, ap) + _ = ap + return ret +} + +func Xwscanf(tls *TLS, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v va=%v, (%v:)", tls, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvwscanf(tls, fmt, ap) + _ = ap + return ret +} + +func X__isoc99_wscanf(tls *TLS, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v va=%v, (%v:)", tls, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwscanf(tls, fmt, va) +} + +func Xabs(tls *TLS, a int32) (r int32) { + if __ccgo_strace { + trc("tls=%v a=%v, (%v:)", tls, a, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + _ = v1 + if a > 0 { + v1 = a + } else { + v1 = -a + } + return v1 +} + +func Xatof(tls *TLS, s uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtod(tls, s, uintptr(0)) +} + +func Xatoi(tls *TLS, s uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var n, neg, v1, v2 int32 + var v4 uintptr + _, _, _, _, _ = n, neg, v1, v2, v4 + n = 0 + neg = 0 + for { + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(s))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _3 + _3: + if !(v2 != 0) { + break + } + s = s + 1 + } + switch Int32FromUint8(**(**uint8)(__ccgo_up(s))) { + case int32('-'): + neg = int32(1) + fallthrough + case int32('+'): + s = s + 1 + } + /* Compute n as a negative number to avoid overflow on INT_MIN */ + for BoolInt32(uint32(**(**uint8)(__ccgo_up(s)))-uint32('0') < uint32(10)) != 0 { + v4 = s + s = s + 1 + n = int32(10)*n - (Int32FromUint8(**(**uint8)(__ccgo_up(v4))) - int32('0')) + } + if neg != 0 { + v1 = n + } else { + v1 = -n + } + return v1 +} + +func Xatol(tls *TLS, s uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var n, neg, v1, v2 int32 + var v4 uintptr + _, _, _, _, _ = n, neg, v1, v2, v4 + n = 0 + neg = 0 + for { + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(s))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _3 + _3: + if !(v2 != 0) { + break + } + s = s + 1 + } + switch Int32FromUint8(**(**uint8)(__ccgo_up(s))) { + case int32('-'): + neg = int32(1) + fallthrough + case int32('+'): + s = s + 1 + } + /* Compute n as a negative number to avoid overflow on LONG_MIN */ + for BoolInt32(uint32(**(**uint8)(__ccgo_up(s)))-uint32('0') < uint32(10)) != 0 { + v4 = s + s = s + 1 + n = int32(10)*n - int32(Int32FromUint8(**(**uint8)(__ccgo_up(v4)))-Int32FromUint8('0')) + } + if neg != 0 { + v1 = n + } else { + v1 = -n + } + return v1 +} + +func Xatoll(tls *TLS, s uintptr) (r int64) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var n, v5 int64 + var neg, v1, v2 int32 + var v4 uintptr + _, _, _, _, _, _ = n, neg, v1, v2, v4, v5 + n = 0 + neg = 0 + for { + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(s))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _3 + _3: + if !(v2 != 0) { + break + } + s = s + 1 + } + switch Int32FromUint8(**(**uint8)(__ccgo_up(s))) { + case int32('-'): + neg = int32(1) + fallthrough + case int32('+'): + s = s + 1 + } + /* Compute n as a negative number to avoid overflow on LLONG_MIN */ + for BoolInt32(uint32(**(**uint8)(__ccgo_up(s)))-uint32('0') < uint32(10)) != 0 { + v4 = s + s = s + 1 + n = int64(10)*n - int64(Int32FromUint8(**(**uint8)(__ccgo_up(v4)))-Int32FromUint8('0')) + } + if neg != 0 { + v5 = n + } else { + v5 = -n + } + return v5 +} + +type t__ccgo_fp__Xbsearch_4 = func(*TLS, uintptr, uintptr) int32 + +func Xbsearch(tls *TLS, key uintptr, base uintptr, nel Tsize_t, width Tsize_t, __ccgo_fp_cmp uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v base=%v nel=%v width=%v __ccgo_fp_cmp=%v, (%v:)", tls, key, base, nel, width, __ccgo_fp_cmp, origin(2)) + defer func() { trc("-> %v", r) }() + } + var sign int32 + var try uintptr + _, _ = sign, try + for nel > uint32(0) { + try = base + uintptr(width*(nel/uint32(2))) + sign = (*(*func(*TLS, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cmp})))(tls, key, try) + if sign < 0 { + nel = nel / uint32(2) + } else { + if sign > 0 { + base = try + uintptr(width) + nel = nel - (nel/uint32(2) + uint32(1)) + } else { + return try + } + } + } + return UintptrFromInt32(0) +} + +func Xdiv(tls *TLS, num int32, den int32) (r Tdiv_t) { + if __ccgo_strace { + trc("tls=%v num=%v den=%v, (%v:)", tls, num, den, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Tdiv_t{ + Fquot: num / den, + Frem: num % den, + } +} + +func Xecvt(tls *TLS, x float64, n int32, dp uintptr, sign uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v dp=%v sign=%v, (%v:)", tls, x, n, dp, sign, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var i, j, v1 int32 + var _ /* tmp at bp+0 */ [32]uint8 + _, _, _ = i, j, v1 + if Uint32FromInt32(n)-uint32(1) > uint32(15) { + n = int32(15) + } + Xsprintf(tls, bp, __ccgo_ts+1524, VaList(bp+40, n-int32(1), x)) + v1 = BoolInt32(Int32FromUint8((**(**[32]uint8)(__ccgo_up(bp)))[0]) == Int32FromUint8('-')) + **(**int32)(__ccgo_up(sign)) = v1 + i = v1 + j = 0 + for { + if !(Int32FromUint8((**(**[32]uint8)(__ccgo_up(bp)))[i]) != int32('e')) { + break + } + _buf8[j] = (**(**[32]uint8)(__ccgo_up(bp)))[i] + goto _2 + _2: + ; + v1 = i + i = i + 1 + j = j + BoolInt32(Int32FromUint8((**(**[32]uint8)(__ccgo_up(bp)))[v1]) != int32('.')) + } + _buf8[j] = uint8(0) + **(**int32)(__ccgo_up(dp)) = Xatoi(tls, bp+uintptr(i)+uintptr(1)) + int32(1) + return uintptr(unsafe.Pointer(&_buf8)) +} + +var _buf8 [16]uint8 + +func Xfcvt(tls *TLS, x float64, n int32, dp uintptr, sign uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v dp=%v sign=%v, (%v:)", tls, x, n, dp, sign, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(1536) + defer tls.Free(1536) + var i, lz int32 + var _ /* tmp at bp+0 */ [1500]uint8 + _, _ = i, lz + if Uint32FromInt32(n) > uint32(1400) { + n = int32(1400) + } + Xsprintf(tls, bp, __ccgo_ts+1529, VaList(bp+1512, n, x)) + i = BoolInt32(Int32FromUint8((**(**[1500]uint8)(__ccgo_up(bp)))[0]) == int32('-')) + if Int32FromUint8((**(**[1500]uint8)(__ccgo_up(bp)))[i]) == int32('0') { + lz = Int32FromUint32(Xstrspn(tls, bp+uintptr(i)+uintptr(2), __ccgo_ts+1497)) + } else { + lz = -Int32FromUint32(Xstrcspn(tls, bp+uintptr(i), __ccgo_ts+483)) + } + if n <= lz { + **(**int32)(__ccgo_up(sign)) = i + **(**int32)(__ccgo_up(dp)) = int32(1) + if Uint32FromInt32(n) > uint32(14) { + n = int32(14) + } + return __ccgo_ts + 1534 + UintptrFromInt32(14) - uintptr(n) + } + return Xecvt(tls, x, n-lz, dp, sign) +} + +func Xgcvt(tls *TLS, x float64, n int32, b uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v b=%v, (%v:)", tls, x, n, b, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + Xsprintf(tls, b, __ccgo_ts+1550, VaList(bp+8, n, x)) + return b +} + +func Ximaxabs(tls *TLS, a Tintmax_t) (r Tintmax_t) { + if __ccgo_strace { + trc("tls=%v a=%v, (%v:)", tls, a, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int64 + _ = v1 + if a > 0 { + v1 = a + } else { + v1 = -a + } + return v1 +} + +func Ximaxdiv(tls *TLS, num Tintmax_t, den Tintmax_t) (r Timaxdiv_t) { + if __ccgo_strace { + trc("tls=%v num=%v den=%v, (%v:)", tls, num, den, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Timaxdiv_t{ + Fquot: num / den, + Frem: num % den, + } +} + +func Xlabs(tls *TLS, a int32) (r int32) { + if __ccgo_strace { + trc("tls=%v a=%v, (%v:)", tls, a, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + _ = v1 + if a > 0 { + v1 = a + } else { + v1 = -a + } + return v1 +} + +func Xldiv(tls *TLS, num int32, den int32) (r Tldiv_t) { + if __ccgo_strace { + trc("tls=%v num=%v den=%v, (%v:)", tls, num, den, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Tldiv_t{ + Fquot: num / den, + Frem: num % den, + } +} + +func Xllabs(tls *TLS, a int64) (r int64) { + if __ccgo_strace { + trc("tls=%v a=%v, (%v:)", tls, a, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int64 + _ = v1 + if a > 0 { + v1 = a + } else { + v1 = -a + } + return v1 +} + +func Xlldiv(tls *TLS, num int64, den int64) (r Tlldiv_t) { + if __ccgo_strace { + trc("tls=%v num=%v den=%v, (%v:)", tls, num, den, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Tlldiv_t{ + Fquot: num / den, + Frem: num % den, + } +} + +type Tcmpfun = uintptr + +func _pntz(tls *TLS, p uintptr) (r1 int32) { + var r, v12, v2, v5, v7, v9 int32 + var v1, v8 uint32 + var v11, v4 Tuint32_t + var v14 bool + _, _, _, _, _, _, _, _, _, _, _ = r, v1, v11, v12, v14, v2, v4, v5, v7, v8, v9 + v1 = uint32(**(**Tsize_t)(__ccgo_up(p)) - Uint32FromInt32(1)) + v4 = v1 + v5 = int32(31) - _a_clz_32(tls, v4&-v4) + goto _6 +_6: + v2 = v5 + goto _3 +_3: + r = v2 + if v14 = r != 0; !v14 { + v8 = uint32(**(**Tsize_t)(__ccgo_up(p + 1*4))) + v11 = v8 + v12 = int32(31) - _a_clz_32(tls, v11&-v11) + goto _13 + _13: + v9 = v12 + goto _10 + _10: + v7 = Int32FromUint32(Uint32FromInt32(8)*Uint32FromInt64(4) + Uint32FromInt32(v9)) + r = v7 + } + if v14 || Uint32FromInt32(v7) != Uint32FromInt32(8)*Uint32FromInt64(4) { + return r + } + return 0 +} + +func _cycle(tls *TLS, width Tsize_t, ar uintptr, n int32) { + bp := tls.Alloc(256) + defer tls.Free(256) + var i int32 + var l Tsize_t + var v1 uint32 + var _ /* tmp at bp+0 */ [256]uint8 + _, _, _ = i, l, v1 + if n < int32(2) { + return + } + **(**uintptr)(__ccgo_up(ar + uintptr(n)*4)) = bp + for width != 0 { + if uint32(256) < width { + v1 = uint32(256) + } else { + v1 = width + } + l = v1 + _memcpy(tls, **(**uintptr)(__ccgo_up(ar + uintptr(n)*4)), **(**uintptr)(__ccgo_up(ar)), l) + i = 0 + for { + if !(i < n) { + break + } + _memcpy(tls, **(**uintptr)(__ccgo_up(ar + uintptr(i)*4)), **(**uintptr)(__ccgo_up(ar + uintptr(i+int32(1))*4)), l) + **(**uintptr)(__ccgo_up(ar + uintptr(i)*4)) += uintptr(l) + goto _2 + _2: + ; + i = i + 1 + } + width = width - l + } +} + +// C documentation +// +// /* shl() and shr() need n > 0 */ +func _shl(tls *TLS, p uintptr, n int32) { + if Uint32FromInt32(n) >= Uint32FromInt32(8)*Uint32FromInt64(4) { + n = Int32FromUint32(uint32(n) - Uint32FromInt32(8)*Uint32FromInt64(4)) + **(**Tsize_t)(__ccgo_up(p + 1*4)) = **(**Tsize_t)(__ccgo_up(p)) + **(**Tsize_t)(__ccgo_up(p)) = uint32(0) + } + **(**Tsize_t)(__ccgo_up(p + 1*4)) <<= Uint32FromInt32(n) + **(**Tsize_t)(__ccgo_up(p + 1*4)) |= **(**Tsize_t)(__ccgo_up(p)) >> (Uint32FromInt64(4)*Uint32FromInt32(8) - Uint32FromInt32(n)) + **(**Tsize_t)(__ccgo_up(p)) <<= Uint32FromInt32(n) +} + +func _shr(tls *TLS, p uintptr, n int32) { + if Uint32FromInt32(n) >= Uint32FromInt32(8)*Uint32FromInt64(4) { + n = Int32FromUint32(uint32(n) - Uint32FromInt32(8)*Uint32FromInt64(4)) + **(**Tsize_t)(__ccgo_up(p)) = **(**Tsize_t)(__ccgo_up(p + 1*4)) + **(**Tsize_t)(__ccgo_up(p + 1*4)) = uint32(0) + } + **(**Tsize_t)(__ccgo_up(p)) >>= Uint32FromInt32(n) + **(**Tsize_t)(__ccgo_up(p)) |= **(**Tsize_t)(__ccgo_up(p + 1*4)) << (Uint32FromInt64(4)*Uint32FromInt32(8) - Uint32FromInt32(n)) + **(**Tsize_t)(__ccgo_up(p + 1*4)) >>= Uint32FromInt32(n) +} + +func _sift(tls *TLS, head uintptr, width Tsize_t, __ccgo_fp_cmp Tcmpfun, arg uintptr, pshift int32, lp uintptr) { + bp := tls.Alloc(240) + defer tls.Free(240) + var i, v1 int32 + var lf, rt uintptr + var _ /* ar at bp+0 */ [57]uintptr + _, _, _, _ = i, lf, rt, v1 + i = int32(1) + (**(**[57]uintptr)(__ccgo_up(bp)))[0] = head + for pshift > int32(1) { + rt = head - uintptr(width) + lf = head - uintptr(width) - uintptr(**(**Tsize_t)(__ccgo_up(lp + uintptr(pshift-int32(2))*4))) + if (*(*func(*TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cmp})))(tls, (**(**[57]uintptr)(__ccgo_up(bp)))[0], lf, arg) >= 0 && (*(*func(*TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cmp})))(tls, (**(**[57]uintptr)(__ccgo_up(bp)))[0], rt, arg) >= 0 { + break + } + if (*(*func(*TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cmp})))(tls, lf, rt, arg) >= 0 { + v1 = i + i = i + 1 + (**(**[57]uintptr)(__ccgo_up(bp)))[v1] = lf + head = lf + pshift = pshift - int32(1) + } else { + v1 = i + i = i + 1 + (**(**[57]uintptr)(__ccgo_up(bp)))[v1] = rt + head = rt + pshift = pshift - int32(2) + } + } + _cycle(tls, width, bp, i) +} + +func _trinkle(tls *TLS, head uintptr, width Tsize_t, __ccgo_fp_cmp Tcmpfun, arg uintptr, pp uintptr, pshift int32, trusty int32, lp uintptr) { + bp := tls.Alloc(240) + defer tls.Free(240) + var i, trail, v1 int32 + var lf, rt, stepson uintptr + var _ /* ar at bp+8 */ [57]uintptr + var _ /* p at bp+0 */ [2]Tsize_t + _, _, _, _, _, _ = i, lf, rt, stepson, trail, v1 + i = int32(1) + (**(**[2]Tsize_t)(__ccgo_up(bp)))[0] = **(**Tsize_t)(__ccgo_up(pp)) + (**(**[2]Tsize_t)(__ccgo_up(bp)))[int32(1)] = **(**Tsize_t)(__ccgo_up(pp + 1*4)) + (**(**[57]uintptr)(__ccgo_up(bp + 8)))[0] = head + for (**(**[2]Tsize_t)(__ccgo_up(bp)))[0] != uint32(1) || (**(**[2]Tsize_t)(__ccgo_up(bp)))[int32(1)] != uint32(0) { + stepson = head - uintptr(**(**Tsize_t)(__ccgo_up(lp + uintptr(pshift)*4))) + if (*(*func(*TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cmp})))(tls, stepson, (**(**[57]uintptr)(__ccgo_up(bp + 8)))[0], arg) <= 0 { + break + } + if !(trusty != 0) && pshift > int32(1) { + rt = head - uintptr(width) + lf = head - uintptr(width) - uintptr(**(**Tsize_t)(__ccgo_up(lp + uintptr(pshift-int32(2))*4))) + if (*(*func(*TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cmp})))(tls, rt, stepson, arg) >= 0 || (*(*func(*TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cmp})))(tls, lf, stepson, arg) >= 0 { + break + } + } + v1 = i + i = i + 1 + (**(**[57]uintptr)(__ccgo_up(bp + 8)))[v1] = stepson + head = stepson + trail = _pntz(tls, bp) + _shr(tls, bp, trail) + pshift = pshift + trail + trusty = 0 + } + if !(trusty != 0) { + _cycle(tls, width, bp+8, i) + _sift(tls, head, width, __ccgo_fp_cmp, arg, pshift, lp) + } +} + +type t__ccgo_fp__X__qsort_r_3 = func(*TLS, uintptr, uintptr, uintptr) int32 + +func X__qsort_r(tls *TLS, base uintptr, nel Tsize_t, width Tsize_t, __ccgo_fp_cmp Tcmpfun, arg uintptr) { + if __ccgo_strace { + trc("tls=%v base=%v nel=%v width=%v __ccgo_fp_cmp=%v arg=%v, (%v:)", tls, base, nel, width, __ccgo_fp_cmp, arg, origin(2)) + } + bp := tls.Alloc(208) + defer tls.Free(208) + var head, high uintptr + var i, size, v2, v3 Tsize_t + var pshift, trail int32 + var _ /* lp at bp+0 */ [48]Tsize_t + var _ /* p at bp+192 */ [2]Tsize_t + _, _, _, _, _, _, _, _ = head, high, i, pshift, size, trail, v2, v3 + size = width * nel + **(**[2]Tsize_t)(__ccgo_up(bp + 192)) = [2]Tsize_t{ + 0: uint32(1), + } + pshift = int32(1) + if !(size != 0) { + return + } + head = base + high = head + uintptr(size) - uintptr(width) + /* Precompute Leonardo numbers, scaled by element width */ + v2 = width + (**(**[48]Tsize_t)(__ccgo_up(bp)))[int32(1)] = v2 + (**(**[48]Tsize_t)(__ccgo_up(bp)))[0] = v2 + i = Uint32FromInt32(2) + for { + v3 = (**(**[48]Tsize_t)(__ccgo_up(bp)))[i-uint32(2)] + (**(**[48]Tsize_t)(__ccgo_up(bp)))[i-uint32(1)] + width + (**(**[48]Tsize_t)(__ccgo_up(bp)))[i] = v3 + if !(v3 < size) { + break + } + goto _1 + _1: + ; + i = i + 1 + } + for head < high { + if (**(**[2]Tsize_t)(__ccgo_up(bp + 192)))[0]&uint32(3) == uint32(3) { + _sift(tls, head, width, __ccgo_fp_cmp, arg, pshift, bp) + _shr(tls, bp+192, int32(2)) + pshift = pshift + int32(2) + } else { + if (**(**[48]Tsize_t)(__ccgo_up(bp)))[pshift-int32(1)] >= Uint32FromInt32(int32(high)-int32(head)) { + _trinkle(tls, head, width, __ccgo_fp_cmp, arg, bp+192, pshift, 0, bp) + } else { + _sift(tls, head, width, __ccgo_fp_cmp, arg, pshift, bp) + } + if pshift == int32(1) { + _shl(tls, bp+192, int32(1)) + pshift = 0 + } else { + _shl(tls, bp+192, pshift-int32(1)) + pshift = int32(1) + } + } + **(**Tsize_t)(__ccgo_up(bp + 192)) |= uint32(1) + head = head + uintptr(width) + } + _trinkle(tls, head, width, __ccgo_fp_cmp, arg, bp+192, pshift, 0, bp) + for pshift != int32(1) || (**(**[2]Tsize_t)(__ccgo_up(bp + 192)))[0] != uint32(1) || (**(**[2]Tsize_t)(__ccgo_up(bp + 192)))[int32(1)] != uint32(0) { + if pshift <= int32(1) { + trail = _pntz(tls, bp+192) + _shr(tls, bp+192, trail) + pshift = pshift + trail + } else { + _shl(tls, bp+192, int32(2)) + pshift = pshift - int32(2) + **(**Tsize_t)(__ccgo_up(bp + 192)) ^= uint32(7) + _shr(tls, bp+192, int32(1)) + _trinkle(tls, head-uintptr((**(**[48]Tsize_t)(__ccgo_up(bp)))[pshift])-uintptr(width), width, __ccgo_fp_cmp, arg, bp+192, pshift+int32(1), int32(1), bp) + _shl(tls, bp+192, int32(1)) + **(**Tsize_t)(__ccgo_up(bp + 192)) |= uint32(1) + _trinkle(tls, head-uintptr(width), width, __ccgo_fp_cmp, arg, bp+192, pshift, int32(1), bp) + } + head = head - uintptr(width) + } +} + +type t__ccgo_fp__Xqsort_r_3 = func(*TLS, uintptr, uintptr, uintptr) int32 + +func Xqsort_r(tls *TLS, base uintptr, nel Tsize_t, width Tsize_t, __ccgo_fp_cmp Tcmpfun, arg uintptr) { + if __ccgo_strace { + trc("tls=%v base=%v nel=%v width=%v __ccgo_fp_cmp=%v arg=%v, (%v:)", tls, base, nel, width, __ccgo_fp_cmp, arg, origin(2)) + } + X__qsort_r(tls, base, nel, width, __ccgo_fp_cmp, arg) +} + +func _wrapper_cmp(tls *TLS, v1 uintptr, v2 uintptr, cmp uintptr) (r int32) { + return (*(*func(*TLS, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{cmp})))(tls, v1, v2) +} + +type t__ccgo_fp__Xqsort_3 = func(*TLS, uintptr, uintptr) int32 + +func Xqsort(tls *TLS, base uintptr, nel Tsize_t, width Tsize_t, __ccgo_fp_cmp Tcmpfun) { + if __ccgo_strace { + trc("tls=%v base=%v nel=%v width=%v __ccgo_fp_cmp=%v, (%v:)", tls, base, nel, width, __ccgo_fp_cmp, origin(2)) + } + X__qsort_r(tls, base, nel, width, __ccgo_fp(_wrapper_cmp), __ccgo_fp_cmp) +} + +func _strtox(tls *TLS, s uintptr, p uintptr, prec int32) (r float64) { + bp := tls.Alloc(144) + defer tls.Free(144) + var cnt Toff_t + var y float64 + var v1 uintptr + var _ /* f at bp+0 */ TFILE + _, _, _ = cnt, y, v1 + v1 = s + (*TFILE)(unsafe.Pointer(bp)).Frpos = v1 + (*TFILE)(unsafe.Pointer(bp)).Fbuf = v1 + (*TFILE)(unsafe.Pointer(bp)).Frend = uintptr(-Int32FromInt32(1)) + X__shlim(tls, bp, int64(Int32FromInt32(0))) + y = X__floatscan(tls, bp, prec, int32(1)) + cnt = (*TFILE)(unsafe.Pointer(bp)).Fshcnt + int64(int32((*TFILE)(unsafe.Pointer(bp)).Frpos)-int32((*TFILE)(unsafe.Pointer(bp)).Fbuf)) + if p != 0 { + if cnt != 0 { + v1 = s + uintptr(cnt) + } else { + v1 = s + } + **(**uintptr)(__ccgo_up(p)) = v1 + } + return y +} + +func Xstrtof(tls *TLS, s uintptr, p uintptr) (r float32) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + return float32(_strtox(tls, s, p, 0)) +} + +func Xstrtod(tls *TLS, s uintptr, p uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _strtox(tls, s, p, int32(1)) +} + +func Xstrtold(tls *TLS, s uintptr, p uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _strtox(tls, s, p, int32(2)) +} + +func _strtox1(tls *TLS, s uintptr, p uintptr, base int32, lim uint64) (r uint64) { + bp := tls.Alloc(144) + defer tls.Free(144) + var cnt Tsize_t + var y uint64 + var v1 uintptr + var _ /* f at bp+0 */ TFILE + _, _, _ = cnt, y, v1 + v1 = s + (*TFILE)(unsafe.Pointer(bp)).Frpos = v1 + (*TFILE)(unsafe.Pointer(bp)).Fbuf = v1 + (*TFILE)(unsafe.Pointer(bp)).Frend = uintptr(-Int32FromInt32(1)) + X__shlim(tls, bp, int64(Int32FromInt32(0))) + y = X__intscan(tls, bp, Uint32FromInt32(base), int32(1), lim) + if p != 0 { + cnt = Uint32FromInt64((*TFILE)(unsafe.Pointer(bp)).Fshcnt + int64(int32((*TFILE)(unsafe.Pointer(bp)).Frpos)-int32((*TFILE)(unsafe.Pointer(bp)).Fbuf))) + **(**uintptr)(__ccgo_up(p)) = s + uintptr(cnt) + } + return y +} + +func Xstrtoull(tls *TLS, s uintptr, p uintptr, base int32) (r uint64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _strtox1(tls, s, p, base, Uint64FromUint64(2)*Uint64FromInt64(0x7fffffffffffffff)+Uint64FromInt32(1)) +} + +func Xstrtoll(tls *TLS, s uintptr, p uintptr, base int32) (r int64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Int64FromUint64(_strtox1(tls, s, p, base, Uint64FromInt64(-Int64FromInt64(0x7fffffffffffffff)-Int64FromInt32(1)))) +} + +func Xstrtoul(tls *TLS, s uintptr, p uintptr, base int32) (r uint32) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uint32(_strtox1(tls, s, p, base, uint64(Uint32FromUint32(2)*Uint32FromInt32(0x7fffffff)+Uint32FromInt32(1)))) +} + +func Xstrtol(tls *TLS, s uintptr, p uintptr, base int32) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Int32FromUint64(_strtox1(tls, s, p, base, uint64(Uint32FromUint32(0)+Uint32FromInt32(-Int32FromInt32(0x7fffffff)-Int32FromInt32(1))))) +} + +func Xstrtoimax(tls *TLS, s uintptr, p uintptr, base int32) (r Tintmax_t) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtoll(tls, s, p, base) +} + +func Xstrtoumax(tls *TLS, s uintptr, p uintptr, base int32) (r Tuintmax_t) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtoull(tls, s, p, base) +} + +func X__strtoimax_internal(tls *TLS, s uintptr, p uintptr, base int32) (r Tintmax_t) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtoimax(tls, s, p, base) +} + +func X__strtol_internal(tls *TLS, s uintptr, p uintptr, base int32) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtol(tls, s, p, base) +} + +func X__strtoll_internal(tls *TLS, s uintptr, p uintptr, base int32) (r int64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtoll(tls, s, p, base) +} + +func X__strtoul_internal(tls *TLS, s uintptr, p uintptr, base int32) (r uint32) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtoul(tls, s, p, base) +} + +func X__strtoull_internal(tls *TLS, s uintptr, p uintptr, base int32) (r uint64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtoull(tls, s, p, base) +} + +func X__strtoumax_internal(tls *TLS, s uintptr, p uintptr, base int32) (r Tuintmax_t) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtoumax(tls, s, p, base) +} + +/* This read function heavily cheats. It knows: + * (1) len will always be 1 + * (2) non-ascii characters don't matter */ + +func _do_read(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + var i Tsize_t + var wcs, v3, v4 uintptr + var v2 uint32 + _, _, _, _, _ = i, wcs, v2, v3, v4 + wcs = (*TFILE)(unsafe.Pointer(f)).Fcookie + if !(**(**Twchar_t)(__ccgo_up(wcs)) != 0) { + wcs = __ccgo_ts + 1555 + } + i = uint32(0) + for { + if !(i < (*TFILE)(unsafe.Pointer(f)).Fbuf_size && **(**Twchar_t)(__ccgo_up(wcs + uintptr(i)*4)) != 0) { + break + } + if **(**Twchar_t)(__ccgo_up(wcs + uintptr(i)*4)) < uint32(128) { + v2 = **(**Twchar_t)(__ccgo_up(wcs + uintptr(i)*4)) + } else { + v2 = uint32('@') + } + **(**uint8)(__ccgo_up((*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr(i))) = uint8(v2) + goto _1 + _1: + ; + i = i + 1 + } + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Frend = (*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr(i) + (*TFILE)(unsafe.Pointer(f)).Fcookie = wcs + uintptr(i)*4 + if i != 0 && len1 != 0 { + v4 = f + 4 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + **(**uint8)(__ccgo_up(buf)) = **(**uint8)(__ccgo_up(v3)) + return uint32(1) + } + return uint32(0) +} + +func _wcstox(tls *TLS, s uintptr, p uintptr, prec int32) (r float64) { + bp := tls.Alloc(208) + defer tls.Free(208) + var cnt Tsize_t + var t, v1, v2 uintptr + var y float64 + var _ /* buf at bp+0 */ [64]uint8 + var _ /* f at bp+64 */ TFILE + _, _, _, _, _ = cnt, t, y, v1, v2 + t = s + **(**TFILE)(__ccgo_up(bp + 64)) = TFILE{} + (**(**TFILE)(__ccgo_up(bp + 64))).Fflags = uint32(0) + v2 = bp + UintptrFromInt32(4) + (**(**TFILE)(__ccgo_up(bp + 64))).Fbuf = v2 + v1 = v2 + (**(**TFILE)(__ccgo_up(bp + 64))).Frend = v1 + (**(**TFILE)(__ccgo_up(bp + 64))).Frpos = v1 + (**(**TFILE)(__ccgo_up(bp + 64))).Fbuf_size = Uint32FromInt64(64) - Uint32FromInt32(4) + AtomicStorePInt32(bp+64+76, -int32(1)) + (**(**TFILE)(__ccgo_up(bp + 64))).Fread = __ccgo_fp(_do_read) + for Xiswspace(tls, **(**Twchar_t)(__ccgo_up(t))) != 0 { + t += 4 + } + (**(**TFILE)(__ccgo_up(bp + 64))).Fcookie = t + X__shlim(tls, bp+64, int64(Int32FromInt32(0))) + y = X__floatscan(tls, bp+64, prec, int32(1)) + if p != 0 { + cnt = Uint32FromInt64((*TFILE)(unsafe.Pointer(bp+64)).Fshcnt + int64(int32((*TFILE)(unsafe.Pointer(bp+64)).Frpos)-int32((*TFILE)(unsafe.Pointer(bp+64)).Fbuf))) + if cnt != 0 { + v1 = t + uintptr(cnt)*4 + } else { + v1 = s + } + **(**uintptr)(__ccgo_up(p)) = v1 + } + return y +} + +func Xwcstof(tls *TLS, s uintptr, p uintptr) (r float32) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + return float32(_wcstox(tls, s, p, 0)) +} + +func Xwcstod(tls *TLS, s uintptr, p uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _wcstox(tls, s, p, int32(1)) +} + +func Xwcstold(tls *TLS, s uintptr, p uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _wcstox(tls, s, p, int32(2)) +} + +/* This read function heavily cheats. It knows: + * (1) len will always be 1 + * (2) non-ascii characters don't matter */ + +func _do_read1(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + var i Tsize_t + var wcs, v3, v4 uintptr + var v2 uint32 + _, _, _, _, _ = i, wcs, v2, v3, v4 + wcs = (*TFILE)(unsafe.Pointer(f)).Fcookie + if !(**(**Twchar_t)(__ccgo_up(wcs)) != 0) { + wcs = __ccgo_ts + 1555 + } + i = uint32(0) + for { + if !(i < (*TFILE)(unsafe.Pointer(f)).Fbuf_size && **(**Twchar_t)(__ccgo_up(wcs + uintptr(i)*4)) != 0) { + break + } + if **(**Twchar_t)(__ccgo_up(wcs + uintptr(i)*4)) < uint32(128) { + v2 = **(**Twchar_t)(__ccgo_up(wcs + uintptr(i)*4)) + } else { + v2 = uint32('@') + } + **(**uint8)(__ccgo_up((*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr(i))) = uint8(v2) + goto _1 + _1: + ; + i = i + 1 + } + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Frend = (*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr(i) + (*TFILE)(unsafe.Pointer(f)).Fcookie = wcs + uintptr(i)*4 + if i != 0 && len1 != 0 { + v4 = f + 4 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + **(**uint8)(__ccgo_up(buf)) = **(**uint8)(__ccgo_up(v3)) + return uint32(1) + } + return uint32(0) +} + +func _wcstox1(tls *TLS, s uintptr, p uintptr, base int32, lim uint64) (r uint64) { + bp := tls.Alloc(208) + defer tls.Free(208) + var cnt Tsize_t + var t, v1, v2 uintptr + var y uint64 + var _ /* buf at bp+0 */ [64]uint8 + var _ /* f at bp+64 */ TFILE + _, _, _, _, _ = cnt, t, y, v1, v2 + t = s + **(**TFILE)(__ccgo_up(bp + 64)) = TFILE{} + (**(**TFILE)(__ccgo_up(bp + 64))).Fflags = uint32(0) + v2 = bp + UintptrFromInt32(4) + (**(**TFILE)(__ccgo_up(bp + 64))).Fbuf = v2 + v1 = v2 + (**(**TFILE)(__ccgo_up(bp + 64))).Frend = v1 + (**(**TFILE)(__ccgo_up(bp + 64))).Frpos = v1 + (**(**TFILE)(__ccgo_up(bp + 64))).Fbuf_size = Uint32FromInt64(64) - Uint32FromInt32(4) + AtomicStorePInt32(bp+64+76, -int32(1)) + (**(**TFILE)(__ccgo_up(bp + 64))).Fread = __ccgo_fp(_do_read1) + for Xiswspace(tls, **(**Twchar_t)(__ccgo_up(t))) != 0 { + t += 4 + } + (**(**TFILE)(__ccgo_up(bp + 64))).Fcookie = t + X__shlim(tls, bp+64, int64(Int32FromInt32(0))) + y = X__intscan(tls, bp+64, Uint32FromInt32(base), int32(1), lim) + if p != 0 { + cnt = Uint32FromInt64((*TFILE)(unsafe.Pointer(bp+64)).Fshcnt + int64(int32((*TFILE)(unsafe.Pointer(bp+64)).Frpos)-int32((*TFILE)(unsafe.Pointer(bp+64)).Fbuf))) + if cnt != 0 { + v1 = t + uintptr(cnt)*4 + } else { + v1 = s + } + **(**uintptr)(__ccgo_up(p)) = v1 + } + return y +} + +func Xwcstoull(tls *TLS, s uintptr, p uintptr, base int32) (r uint64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _wcstox1(tls, s, p, base, Uint64FromUint64(2)*Uint64FromInt64(0x7fffffffffffffff)+Uint64FromInt32(1)) +} + +func Xwcstoll(tls *TLS, s uintptr, p uintptr, base int32) (r int64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Int64FromUint64(_wcstox1(tls, s, p, base, Uint64FromInt64(-Int64FromInt64(0x7fffffffffffffff)-Int64FromInt32(1)))) +} + +func Xwcstoul(tls *TLS, s uintptr, p uintptr, base int32) (r uint32) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uint32(_wcstox1(tls, s, p, base, uint64(Uint32FromUint32(2)*Uint32FromInt32(0x7fffffff)+Uint32FromInt32(1)))) +} + +func Xwcstol(tls *TLS, s uintptr, p uintptr, base int32) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Int32FromUint64(_wcstox1(tls, s, p, base, uint64(Uint32FromUint32(0)+Uint32FromInt32(-Int32FromInt32(0x7fffffff)-Int32FromInt32(1))))) +} + +func Xwcstoimax(tls *TLS, s uintptr, p uintptr, base int32) (r Tintmax_t) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwcstoll(tls, s, p, base) +} + +func Xwcstoumax(tls *TLS, s uintptr, p uintptr, base int32) (r Tuintmax_t) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwcstoull(tls, s, p, base) +} + +func Xbcmp(tls *TLS, s1 uintptr, s2 uintptr, n Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v s1=%v s2=%v n=%v, (%v:)", tls, s1, s2, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xmemcmp(tls, s1, s2, n) +} + +func Xbcopy(tls *TLS, s1 uintptr, s2 uintptr, n Tsize_t) { + if __ccgo_strace { + trc("tls=%v s1=%v s2=%v n=%v, (%v:)", tls, s1, s2, n, origin(2)) + } + Xmemmove(tls, s2, s1, n) +} + +func Xbzero(tls *TLS, s uintptr, n Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v, (%v:)", tls, s, n, origin(2)) + } + Xmemset(tls, s, 0, n) +} + +func Xexplicit_bzero(tls *TLS, d uintptr, n Tsize_t) { + if __ccgo_strace { + trc("tls=%v d=%v n=%v, (%v:)", tls, d, n, origin(2)) + } + d = Xmemset(tls, d, 0, n) +} + +func Xindex(tls *TLS, s uintptr, c int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrchr(tls, s, c) +} + +const ALIGN1 = -1 +const HIGHS = 0 +const ONES = 0 + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xmemccpy(tls *TLS, dest uintptr, src uintptr, c int32, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v c=%v n=%v, (%v:)", tls, dest, src, c, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var d, s, wd, ws uintptr + var k Tsize_t + var v2 uint8 + var v3 bool + _, _, _, _, _, _, _ = d, k, s, wd, ws, v2, v3 + d = dest + s = src + c = Int32FromUint8(Uint8FromInt32(c)) + if uint32(s)&(Uint32FromInt64(4)-Uint32FromInt32(1)) == uint32(d)&(Uint32FromInt64(4)-Uint32FromInt32(1)) { + for { + if v3 = uint32(s)&(Uint32FromInt64(4)-Uint32FromInt32(1)) != 0 && n != 0; v3 { + v2 = **(**uint8)(__ccgo_up(s)) + **(**uint8)(__ccgo_up(d)) = v2 + } + if !(v3 && Int32FromUint8(v2) != c) { + break + } + goto _1 + _1: + ; + n = n - 1 + s = s + 1 + d = d + 1 + } + if uint32(s)&(Uint32FromInt64(4)-Uint32FromInt32(1)) != 0 { + goto tail + } + k = Uint32FromInt32(-Int32FromInt32(1)) / Uint32FromInt32(UCHAR_MAX) * Uint32FromInt32(c) + wd = d + ws = s + for { + if !(n >= uint32(4) && !((**(**uint32)(__ccgo_up(ws))^k-Uint32FromInt32(-Int32FromInt32(1))/Uint32FromInt32(UCHAR_MAX)) & ^(**(**uint32)(__ccgo_up(ws))^k) & (Uint32FromInt32(-Int32FromInt32(1))/Uint32FromInt32(UCHAR_MAX)*Uint32FromInt32(Int32FromInt32(UCHAR_MAX)/Int32FromInt32(2)+Int32FromInt32(1))) != 0)) { + break + } + **(**uint32)(__ccgo_up(wd)) = **(**uint32)(__ccgo_up(ws)) + goto _4 + _4: + ; + n = n - uint32(4) + ws += 4 + wd += 4 + } + d = wd + s = ws + } + for { + if v3 = n != 0; v3 { + v2 = **(**uint8)(__ccgo_up(s)) + **(**uint8)(__ccgo_up(d)) = v2 + } + if !(v3 && Int32FromUint8(v2) != c) { + break + } + goto _5 + _5: + ; + n = n - 1 + s = s + 1 + d = d + 1 + } + goto tail +tail: + ; + if n != 0 { + return d + uintptr(1) + } + return uintptr(0) +} + +const SS = 0 + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xmemchr(tls *TLS, src uintptr, c int32, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v src=%v c=%v n=%v, (%v:)", tls, src, c, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var k Tsize_t + var s, w, v4 uintptr + _, _, _, _ = k, s, w, v4 + s = src + c = Int32FromUint8(Uint8FromInt32(c)) + for { + if !(uint32(s)&(Uint32FromInt64(4)-Uint32FromInt32(1)) != 0 && n != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(s))) != c) { + break + } + goto _1 + _1: + ; + s = s + 1 + n = n - 1 + } + if n != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(s))) != c { + k = Uint32FromInt32(-Int32FromInt32(1)) / Uint32FromInt32(UCHAR_MAX) * Uint32FromInt32(c) + w = s + for { + if !(n >= Uint32FromInt64(4) && !((**(**uint32)(__ccgo_up(w))^k-Uint32FromInt32(-Int32FromInt32(1))/Uint32FromInt32(UCHAR_MAX)) & ^(**(**uint32)(__ccgo_up(w))^k) & (Uint32FromInt32(-Int32FromInt32(1))/Uint32FromInt32(UCHAR_MAX)*Uint32FromInt32(Int32FromInt32(UCHAR_MAX)/Int32FromInt32(2)+Int32FromInt32(1))) != 0)) { + break + } + goto _2 + _2: + ; + w += 4 + n = n - Uint32FromInt64(4) + } + s = w + } + for { + if !(n != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(s))) != c) { + break + } + goto _3 + _3: + ; + s = s + 1 + n = n - 1 + } + if n != 0 { + v4 = s + } else { + v4 = uintptr(0) + } + return v4 +} + +func Xmemcmp(tls *TLS, vl uintptr, vr uintptr, n Tsize_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v vl=%v vr=%v n=%v, (%v:)", tls, vl, vr, n, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var l, r uintptr + var v2 int32 + _, _, _ = l, r, v2 + l = vl + r = vr + for { + if !(n != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(l))) == Int32FromUint8(**(**uint8)(__ccgo_up(r)))) { + break + } + goto _1 + _1: + ; + n = n - 1 + l = l + 1 + r = r + 1 + } + if n != 0 { + v2 = Int32FromUint8(**(**uint8)(__ccgo_up(l))) - Int32FromUint8(**(**uint8)(__ccgo_up(r))) + } else { + v2 = 0 + } + return v2 +} + +func _twobyte_memmem(tls *TLS, h uintptr, k Tsize_t, n uintptr) (r uintptr) { + var hw, nw Tuint16_t + var v2 uintptr + _, _, _ = hw, nw, v2 + nw = Uint16FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(n)))< Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(jp+k)))) { + jp = jp + k + k = uint32(1) + p = jp - ip + } else { + v2 = jp + jp = jp + 1 + ip = v2 + v2 = Uint32FromInt32(1) + p = v2 + k = v2 + } + } + } + ms = ip + p0 = p + /* And with the opposite comparison */ + ip = Uint32FromInt32(-Int32FromInt32(1)) + jp = uint32(0) + v2 = Uint32FromInt32(1) + p = v2 + k = v2 + for jp+k < l { + if Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(ip+k)))) == Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(jp+k)))) { + if k == p { + jp = jp + p + k = uint32(1) + } else { + k = k + 1 + } + } else { + if Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(ip+k)))) < Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(jp+k)))) { + jp = jp + k + k = uint32(1) + p = jp - ip + } else { + v2 = jp + jp = jp + 1 + ip = v2 + v2 = Uint32FromInt32(1) + p = v2 + k = v2 + } + } + } + if ip+uint32(1) > ms+uint32(1) { + ms = ip + } else { + p = p0 + } + /* Periodic needle? */ + if Xmemcmp(tls, n, n+uintptr(p), ms+uint32(1)) != 0 { + mem0 = uint32(0) + if ms > l-ms-uint32(1) { + v8 = ms + } else { + v8 = l - ms - uint32(1) + } + p = v8 + uint32(1) + } else { + mem0 = l - p + } + mem = uint32(0) + /* Search loop */ + for { + /* If remainder of haystack is shorter than needle, done */ + if Uint32FromInt32(int32(z)-int32(h)) < l { + return uintptr(0) + } + /* Check last byte first; advance by shift on mismatch */ + if (**(**[8]Tsize_t)(__ccgo_up(bp)))[uint32(**(**uint8)(__ccgo_up(h + uintptr(l-uint32(1)))))/(Uint32FromInt32(8)*Uint32FromInt64(4))]&(Uint32FromInt32(1)<<(uint32(**(**uint8)(__ccgo_up(h + uintptr(l-uint32(1)))))%(Uint32FromInt32(8)*Uint32FromInt64(4)))) != 0 { + k = l - shift[**(**uint8)(__ccgo_up(h + uintptr(l-uint32(1))))] + if k != 0 { + if k < mem { + k = mem + } + h = h + uintptr(k) + mem = uint32(0) + goto _9 + } + } else { + h = h + uintptr(l) + mem = uint32(0) + goto _9 + } + /* Compare right half */ + if ms+uint32(1) > mem { + v8 = ms + uint32(1) + } else { + v8 = mem + } + k = v8 + for { + if !(k < l && Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(k)))) == Int32FromUint8(**(**uint8)(__ccgo_up(h + uintptr(k))))) { + break + } + goto _10 + _10: + ; + k = k + 1 + } + if k < l { + h = h + uintptr(k-ms) + mem = uint32(0) + goto _9 + } + /* Compare left half */ + k = ms + uint32(1) + for { + if !(k > mem && Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(k-uint32(1))))) == Int32FromUint8(**(**uint8)(__ccgo_up(h + uintptr(k-uint32(1)))))) { + break + } + goto _12 + _12: + ; + k = k - 1 + } + if k <= mem { + return h + } + h = h + uintptr(p) + mem = mem0 + goto _9 + _9: + } + return r +} + +func Xmemmem(tls *TLS, h0 uintptr, k Tsize_t, n0 uintptr, l Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v h0=%v k=%v n0=%v l=%v, (%v:)", tls, h0, k, n0, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + var h, n uintptr + _, _ = h, n + h = h0 + n = n0 + /* Return immediately on empty needle */ + if !(l != 0) { + return h + } + /* Return immediately when needle is longer than haystack */ + if k < l { + return uintptr(0) + } + /* Use faster algorithms for short needles */ + h = Xmemchr(tls, h0, Int32FromUint8(**(**uint8)(__ccgo_up(n))), k) + if !(h != 0) || l == uint32(1) { + return h + } + k = k - Uint32FromInt32(int32(h)-int32(h0)) + if k < l { + return uintptr(0) + } + if l == uint32(2) { + return _twobyte_memmem(tls, h, k, n) + } + if l == uint32(3) { + return _threebyte_memmem(tls, h, k, n) + } + if l == uint32(4) { + return _fourbyte_memmem(tls, h, k, n) + } + return _twoway_memmem(tls, h, h+uintptr(k), n, l) +} + +const WS = 0 + +type TWT = uint32 + +func Xmemmove(tls *TLS, dest uintptr, src uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v n=%v, (%v:)", tls, dest, src, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var d, s, v2, v3 uintptr + var v1 Tsize_t + _, _, _, _, _ = d, s, v1, v2, v3 + d = dest + s = src + if d == s { + return d + } + if uint32(s)-uint32(d)-n <= Uint32FromInt32(-Int32FromInt32(2))*n { + return _memcpy(tls, d, s, n) + } + if d < s { + if uint32(s)%Uint32FromInt64(4) == uint32(d)%Uint32FromInt64(4) { + for uint32(d)%Uint32FromInt64(4) != 0 { + v1 = n + n = n - 1 + if !(v1 != 0) { + return dest + } + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + } + for { + if !(n >= Uint32FromInt64(4)) { + break + } + **(**TWT)(__ccgo_up(d)) = **(**TWT)(__ccgo_up(s)) + goto _4 + _4: + ; + n = n - Uint32FromInt64(4) + d = d + uintptr(Uint32FromInt64(4)) + s = s + uintptr(Uint32FromInt64(4)) + } + } + for { + if !(n != 0) { + break + } + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + goto _5 + _5: + ; + n = n - 1 + } + } else { + if uint32(s)%Uint32FromInt64(4) == uint32(d)%Uint32FromInt64(4) { + for uint32(d+uintptr(n))%Uint32FromInt64(4) != 0 { + v1 = n + n = n - 1 + if !(v1 != 0) { + return dest + } + **(**uint8)(__ccgo_up(d + uintptr(n))) = **(**uint8)(__ccgo_up(s + uintptr(n))) + } + for n >= Uint32FromInt64(4) { + n = n - Uint32FromInt64(4) + **(**TWT)(__ccgo_up(d + uintptr(n))) = **(**TWT)(__ccgo_up(s + uintptr(n))) + } + } + for n != 0 { + n = n - 1 + **(**uint8)(__ccgo_up(d + uintptr(n))) = **(**uint8)(__ccgo_up(s + uintptr(n))) + } + } + return dest +} + +func Xmempcpy(tls *TLS, dest uintptr, src uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v n=%v, (%v:)", tls, dest, src, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _memcpy(tls, dest, src, n) + uintptr(n) +} + +func X__memrchr(tls *TLS, m uintptr, c int32, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v m=%v c=%v n=%v, (%v:)", tls, m, c, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var s uintptr + var v1 Tsize_t + _, _ = s, v1 + s = m + c = Int32FromUint8(Uint8FromInt32(c)) + for { + v1 = n + n = n - 1 + if !(v1 != 0) { + break + } + if Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(n)))) == c { + return s + uintptr(n) + } + } + return uintptr(0) +} + +func Xmemrchr(tls *TLS, m uintptr, c int32, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v m=%v c=%v n=%v, (%v:)", tls, m, c, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__memrchr(tls, m, c, n) +} + +func Xmemset(tls *TLS, dest uintptr, c int32, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v dest=%v c=%v n=%v, (%v:)", tls, dest, c, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var c32 uint32 + var c64 uint64 + var k Tsize_t + var s uintptr + _, _, _, _ = c32, c64, k, s + s = dest + /* Fill head and tail with minimal branching. Each + * conditional ensures that all the subsequently used + * offsets are well-defined and in the dest region. */ + if !(n != 0) { + return dest + } + **(**uint8)(__ccgo_up(s)) = Uint8FromInt32(c) + **(**uint8)(__ccgo_up(s + uintptr(n-uint32(1)))) = Uint8FromInt32(c) + if n <= uint32(2) { + return dest + } + **(**uint8)(__ccgo_up(s + 1)) = Uint8FromInt32(c) + **(**uint8)(__ccgo_up(s + 2)) = Uint8FromInt32(c) + **(**uint8)(__ccgo_up(s + uintptr(n-uint32(2)))) = Uint8FromInt32(c) + **(**uint8)(__ccgo_up(s + uintptr(n-uint32(3)))) = Uint8FromInt32(c) + if n <= uint32(6) { + return dest + } + **(**uint8)(__ccgo_up(s + 3)) = Uint8FromInt32(c) + **(**uint8)(__ccgo_up(s + uintptr(n-uint32(4)))) = Uint8FromInt32(c) + if n <= uint32(8) { + return dest + } + /* Advance pointer to align it at a 4-byte boundary, + * and truncate n to a multiple of 4. The previous code + * already took care of any head/tail that get cut off + * by the alignment. */ + k = -uint32(s) & uint32(3) + s = s + uintptr(k) + n = n - k + n = n & Uint32FromInt32(-Int32FromInt32(4)) + c32 = Uint32FromInt32(-Int32FromInt32(1)) / Uint32FromInt32(255) * uint32(Uint8FromInt32(c)) + /* In preparation to copy 32 bytes at a time, aligned on + * an 8-byte bounary, fill head/tail up to 28 bytes each. + * As in the initial byte-based head/tail fill, each + * conditional below ensures that the subsequent offsets + * are valid (e.g. !(n<=24) implies n>=28). */ + **(**uint32)(__ccgo_up(s + UintptrFromInt32(0))) = c32 + **(**uint32)(__ccgo_up(s + uintptr(n) - UintptrFromInt32(4))) = c32 + if n <= uint32(8) { + return dest + } + **(**uint32)(__ccgo_up(s + UintptrFromInt32(4))) = c32 + **(**uint32)(__ccgo_up(s + UintptrFromInt32(8))) = c32 + **(**uint32)(__ccgo_up(s + uintptr(n) - UintptrFromInt32(12))) = c32 + **(**uint32)(__ccgo_up(s + uintptr(n) - UintptrFromInt32(8))) = c32 + if n <= uint32(24) { + return dest + } + **(**uint32)(__ccgo_up(s + UintptrFromInt32(12))) = c32 + **(**uint32)(__ccgo_up(s + UintptrFromInt32(16))) = c32 + **(**uint32)(__ccgo_up(s + UintptrFromInt32(20))) = c32 + **(**uint32)(__ccgo_up(s + UintptrFromInt32(24))) = c32 + **(**uint32)(__ccgo_up(s + uintptr(n) - UintptrFromInt32(28))) = c32 + **(**uint32)(__ccgo_up(s + uintptr(n) - UintptrFromInt32(24))) = c32 + **(**uint32)(__ccgo_up(s + uintptr(n) - UintptrFromInt32(20))) = c32 + **(**uint32)(__ccgo_up(s + uintptr(n) - UintptrFromInt32(16))) = c32 + /* Align to a multiple of 8 so we can fill 64 bits at a time, + * and avoid writing the same bytes twice as much as is + * practical without introducing additional branching. */ + k = uint32(24) + uint32(s)&uint32(4) + s = s + uintptr(k) + n = n - k + /* If this loop is reached, 28 tail bytes have already been + * filled, so any remainder when n drops below 32 can be + * safely ignored. */ + c64 = uint64(c32) | uint64(c32)<= uint32(32)) { + break + } + **(**uint64)(__ccgo_up(s + UintptrFromInt32(0))) = c64 + **(**uint64)(__ccgo_up(s + UintptrFromInt32(8))) = c64 + **(**uint64)(__ccgo_up(s + UintptrFromInt32(16))) = c64 + **(**uint64)(__ccgo_up(s + UintptrFromInt32(24))) = c64 + goto _1 + _1: + ; + n = n - uint32(32) + s = s + uintptr(32) + } + return dest +} + +func Xrindex(tls *TLS, s uintptr, c int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrrchr(tls, s, c) +} + +const ALIGN2 = 0 + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func X__stpcpy(tls *TLS, d uintptr, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v, (%v:)", tls, d, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var wd, ws, v4, v5 uintptr + var v2 uint8 + _, _, _, _, _ = wd, ws, v2, v4, v5 + if uint32(s)%Uint32FromInt64(4) == uint32(d)%Uint32FromInt64(4) { + for { + if !(uint32(s)%Uint32FromInt64(4) != 0) { + break + } + v2 = **(**uint8)(__ccgo_up(s)) + **(**uint8)(__ccgo_up(d)) = v2 + if !(v2 != 0) { + return d + } + goto _1 + _1: + ; + s = s + 1 + d = d + 1 + } + wd = d + ws = s + for { + if !!((**(**uint32)(__ccgo_up(ws))-Uint32FromInt32(-Int32FromInt32(1))/Uint32FromInt32(UCHAR_MAX)) & ^**(**uint32)(__ccgo_up(ws)) & (Uint32FromInt32(-Int32FromInt32(1))/Uint32FromInt32(UCHAR_MAX)*Uint32FromInt32(Int32FromInt32(UCHAR_MAX)/Int32FromInt32(2)+Int32FromInt32(1))) != 0) { + break + } + goto _3 + _3: + ; + v4 = wd + wd += 4 + v5 = ws + ws += 4 + **(**uint32)(__ccgo_up(v4)) = **(**uint32)(__ccgo_up(v5)) + } + d = wd + s = ws + } + for { + v2 = **(**uint8)(__ccgo_up(s)) + **(**uint8)(__ccgo_up(d)) = v2 + if !(v2 != 0) { + break + } + goto _6 + _6: + ; + s = s + 1 + d = d + 1 + } + return d +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xstpcpy(tls *TLS, d uintptr, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v, (%v:)", tls, d, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__stpcpy(tls, d, s) +} + +const ALIGN3 = -1 + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func X__stpncpy(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var wd, ws uintptr + var v2 uint8 + var v3 bool + _, _, _, _ = wd, ws, v2, v3 + if uint32(s)&(Uint32FromInt64(4)-Uint32FromInt32(1)) == uint32(d)&(Uint32FromInt64(4)-Uint32FromInt32(1)) { + for { + if v3 = uint32(s)&(Uint32FromInt64(4)-Uint32FromInt32(1)) != 0 && n != 0; v3 { + v2 = **(**uint8)(__ccgo_up(s)) + **(**uint8)(__ccgo_up(d)) = v2 + } + if !(v3 && v2 != 0) { + break + } + goto _1 + _1: + ; + n = n - 1 + s = s + 1 + d = d + 1 + } + if !(n != 0) || !(**(**uint8)(__ccgo_up(s)) != 0) { + goto tail + } + wd = d + ws = s + for { + if !(n >= uint32(4) && !((**(**uint32)(__ccgo_up(ws))-Uint32FromInt32(-Int32FromInt32(1))/Uint32FromInt32(UCHAR_MAX)) & ^**(**uint32)(__ccgo_up(ws)) & (Uint32FromInt32(-Int32FromInt32(1))/Uint32FromInt32(UCHAR_MAX)*Uint32FromInt32(Int32FromInt32(UCHAR_MAX)/Int32FromInt32(2)+Int32FromInt32(1))) != 0)) { + break + } + **(**uint32)(__ccgo_up(wd)) = **(**uint32)(__ccgo_up(ws)) + goto _4 + _4: + ; + n = n - uint32(4) + ws += 4 + wd += 4 + } + d = wd + s = ws + } + for { + if v3 = n != 0; v3 { + v2 = **(**uint8)(__ccgo_up(s)) + **(**uint8)(__ccgo_up(d)) = v2 + } + if !(v3 && v2 != 0) { + break + } + goto _5 + _5: + ; + n = n - 1 + s = s + 1 + d = d + 1 + } + goto tail +tail: + ; + Xmemset(tls, d, 0, n) + return d +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xstpncpy(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__stpncpy(tls, d, s, n) +} + +func Xstrcasecmp(tls *TLS, _l uintptr, _r uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v _l=%v _r=%v, (%v:)", tls, _l, _r, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var l, r uintptr + _, _ = l, r + l = _l + r = _r + for { + if !(**(**uint8)(__ccgo_up(l)) != 0 && **(**uint8)(__ccgo_up(r)) != 0 && (Int32FromUint8(**(**uint8)(__ccgo_up(l))) == Int32FromUint8(**(**uint8)(__ccgo_up(r))) || Xtolower(tls, Int32FromUint8(**(**uint8)(__ccgo_up(l)))) == Xtolower(tls, Int32FromUint8(**(**uint8)(__ccgo_up(r)))))) { + break + } + goto _1 + _1: + ; + l = l + 1 + r = r + 1 + } + return Xtolower(tls, Int32FromUint8(**(**uint8)(__ccgo_up(l)))) - Xtolower(tls, Int32FromUint8(**(**uint8)(__ccgo_up(r)))) +} + +func X__strcasecmp_l(tls *TLS, l uintptr, r uintptr, loc Tlocale_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v loc=%v, (%v:)", tls, l, r, loc, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return Xstrcasecmp(tls, l, r) +} + +func Xstrcasecmp_l(tls *TLS, l uintptr, r uintptr, loc Tlocale_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v loc=%v, (%v:)", tls, l, r, loc, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return X__strcasecmp_l(tls, l, r, loc) +} + +func Xstrcasestr(tls *TLS, h uintptr, n uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v h=%v n=%v, (%v:)", tls, h, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l Tsize_t + _ = l + l = _strlen(tls, n) + for { + if !(**(**uint8)(__ccgo_up(h)) != 0) { + break + } + if !(Xstrncasecmp(tls, h, n, l) != 0) { + return h + } + goto _1 + _1: + ; + h = h + 1 + } + return uintptr(0) +} + +func Xstrcat(tls *TLS, dest uintptr, src uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v, (%v:)", tls, dest, src, origin(2)) + defer func() { trc("-> %v", r) }() + } + Xstrcpy(tls, dest+uintptr(_strlen(tls, dest)), src) + return dest +} + +func Xstrchr(tls *TLS, s uintptr, c int32) (r1 uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v1 uintptr + _, _ = r, v1 + r = X__strchrnul(tls, s, c) + if Int32FromUint8(**(**uint8)(__ccgo_up(r))) == Int32FromUint8(Uint8FromInt32(c)) { + v1 = r + } else { + v1 = uintptr(0) + } + return v1 +} + +const ALIGN4 = 0 + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func X__strchrnul(tls *TLS, s uintptr, c int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + var k Tsize_t + var w uintptr + _, _ = k, w + c = Int32FromUint8(Uint8FromInt32(c)) + if !(c != 0) { + return s + uintptr(_strlen(tls, s)) + } + for { + if !(uint32(s)%Uint32FromInt64(4) != 0) { + break + } + if !(**(**uint8)(__ccgo_up(s)) != 0) || Int32FromUint8(**(**uint8)(__ccgo_up(s))) == c { + return s + } + goto _1 + _1: + ; + s = s + 1 + } + k = Uint32FromInt32(-Int32FromInt32(1)) / Uint32FromInt32(UCHAR_MAX) * Uint32FromInt32(c) + w = s + for { + if !(!((**(**uint32)(__ccgo_up(w))-Uint32FromInt32(-Int32FromInt32(1))/Uint32FromInt32(UCHAR_MAX)) & ^**(**uint32)(__ccgo_up(w)) & (Uint32FromInt32(-Int32FromInt32(1))/Uint32FromInt32(UCHAR_MAX)*Uint32FromInt32(Int32FromInt32(UCHAR_MAX)/Int32FromInt32(2)+Int32FromInt32(1))) != 0) && !((**(**uint32)(__ccgo_up(w))^k-Uint32FromInt32(-Int32FromInt32(1))/Uint32FromInt32(UCHAR_MAX)) & ^(**(**uint32)(__ccgo_up(w))^k) & (Uint32FromInt32(-Int32FromInt32(1))/Uint32FromInt32(UCHAR_MAX)*Uint32FromInt32(Int32FromInt32(UCHAR_MAX)/Int32FromInt32(2)+Int32FromInt32(1))) != 0)) { + break + } + goto _2 + _2: + ; + w += 4 + } + s = w + for { + if !(**(**uint8)(__ccgo_up(s)) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(s))) != c) { + break + } + goto _3 + _3: + ; + s = s + 1 + } + return s +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xstrchrnul(tls *TLS, s uintptr, c int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__strchrnul(tls, s, c) +} + +func Xstrcmp(tls *TLS, l uintptr, r uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v, (%v:)", tls, l, r, origin(2)) + defer func() { trc("-> %v", r1) }() + } + for { + if !(Int32FromUint8(**(**uint8)(__ccgo_up(l))) == Int32FromUint8(**(**uint8)(__ccgo_up(r))) && **(**uint8)(__ccgo_up(l)) != 0) { + break + } + goto _1 + _1: + ; + l = l + 1 + r = r + 1 + } + return Int32FromUint8(**(**uint8)(__ccgo_up(l))) - Int32FromUint8(**(**uint8)(__ccgo_up(r))) +} + +func Xstrcpy(tls *TLS, dest uintptr, src uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v, (%v:)", tls, dest, src, origin(2)) + defer func() { trc("-> %v", r) }() + } + X__stpcpy(tls, dest, src) + return dest +} + +func Xstrcspn(tls *TLS, s uintptr, c uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var a, v2 uintptr + var v3 bool + var _ /* byteset at bp+0 */ [8]Tsize_t + _, _, _ = a, v2, v3 + a = s + if !(**(**uint8)(__ccgo_up(c)) != 0) || !(**(**uint8)(__ccgo_up(c + 1)) != 0) { + return Uint32FromInt32(int32(X__strchrnul(tls, s, Int32FromUint8(**(**uint8)(__ccgo_up(c))))) - int32(a)) + } + Xmemset(tls, bp, 0, uint32(32)) + for { + if v3 = **(**uint8)(__ccgo_up(c)) != 0; v3 { + v2 = bp + uintptr(uint32(**(**uint8)(__ccgo_up(c)))/(Uint32FromInt32(8)*Uint32FromInt64(4)))*4 + *(*Tsize_t)(unsafe.Pointer(v2)) |= Uint32FromInt32(1) << (uint32(**(**uint8)(__ccgo_up(c))) % (Uint32FromInt32(8) * Uint32FromInt64(4))) + } + if !(v3 && *(*Tsize_t)(unsafe.Pointer(v2)) != 0) { + break + } + goto _1 + _1: + ; + c = c + 1 + } + for { + if !(**(**uint8)(__ccgo_up(s)) != 0 && !((**(**[8]Tsize_t)(__ccgo_up(bp)))[uint32(**(**uint8)(__ccgo_up(s)))/(Uint32FromInt32(8)*Uint32FromInt64(4))]&(Uint32FromInt32(1)<<(uint32(**(**uint8)(__ccgo_up(s)))%(Uint32FromInt32(8)*Uint32FromInt64(4)))) != 0)) { + break + } + goto _4 + _4: + ; + s = s + 1 + } + return Uint32FromInt32(int32(s) - int32(a)) +} + +func Xstrdup(tls *TLS, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var d uintptr + var l Tsize_t + _, _ = d, l + l = _strlen(tls, s) + d = Xmalloc(tls, l+uint32(1)) + if !(d != 0) { + return UintptrFromInt32(0) + } + return _memcpy(tls, d, s, l+uint32(1)) +} + +func Xstrerror_r(tls *TLS, err int32, buf uintptr, buflen Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v err=%v buf=%v buflen=%v, (%v:)", tls, err, buf, buflen, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l Tsize_t + var msg uintptr + _, _ = l, msg + msg = Xstrerror(tls, err) + l = _strlen(tls, msg) + if l >= buflen { + if buflen != 0 { + _memcpy(tls, buf, msg, buflen-uint32(1)) + **(**uint8)(__ccgo_up(buf + uintptr(buflen-uint32(1)))) = uint8(0) + } + return int32(ERANGE) + } + _memcpy(tls, buf, msg, l+uint32(1)) + return 0 +} + +func X__xpg_strerror_r(tls *TLS, err int32, buf uintptr, buflen Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v err=%v buf=%v buflen=%v, (%v:)", tls, err, buf, buflen, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrerror_r(tls, err, buf, buflen) +} + +func Xstrlcat(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l Tsize_t + _ = l + l = Xstrnlen(tls, d, n) + if l == n { + return l + _strlen(tls, s) + } + return l + Xstrlcpy(tls, d+uintptr(l), s, n-l) +} + +const ALIGN5 = -1 + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xstrlcpy(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var d0, wd, ws uintptr + var v1 Tsize_t + var v3 uint8 + var v4 bool + _, _, _, _, _, _ = d0, wd, ws, v1, v3, v4 + d0 = d + v1 = n + n = n - 1 + if !(v1 != 0) { + goto finish + } + if uint32(s)&(Uint32FromInt64(4)-Uint32FromInt32(1)) == uint32(d)&(Uint32FromInt64(4)-Uint32FromInt32(1)) { + for { + if v4 = uint32(s)&(Uint32FromInt64(4)-Uint32FromInt32(1)) != 0 && n != 0; v4 { + v3 = **(**uint8)(__ccgo_up(s)) + **(**uint8)(__ccgo_up(d)) = v3 + } + if !(v4 && v3 != 0) { + break + } + goto _2 + _2: + ; + n = n - 1 + s = s + 1 + d = d + 1 + } + if n != 0 && **(**uint8)(__ccgo_up(s)) != 0 { + wd = d + ws = s + for { + if !(n >= uint32(4) && !((**(**uint32)(__ccgo_up(ws))-Uint32FromInt32(-Int32FromInt32(1))/Uint32FromInt32(UCHAR_MAX)) & ^**(**uint32)(__ccgo_up(ws)) & (Uint32FromInt32(-Int32FromInt32(1))/Uint32FromInt32(UCHAR_MAX)*Uint32FromInt32(Int32FromInt32(UCHAR_MAX)/Int32FromInt32(2)+Int32FromInt32(1))) != 0)) { + break + } + **(**Tsize_t)(__ccgo_up(wd)) = **(**uint32)(__ccgo_up(ws)) + goto _5 + _5: + ; + n = n - uint32(4) + ws += 4 + wd += 4 + } + d = wd + s = ws + } + } + for { + if v4 = n != 0; v4 { + v3 = **(**uint8)(__ccgo_up(s)) + **(**uint8)(__ccgo_up(d)) = v3 + } + if !(v4 && v3 != 0) { + break + } + goto _6 + _6: + ; + n = n - 1 + s = s + 1 + d = d + 1 + } + **(**uint8)(__ccgo_up(d)) = uint8(0) + goto finish +finish: + ; + return Uint32FromInt32(int32(d)-int32(d0)) + _strlen(tls, s) + return r +} + +const ALIGN6 = 0 + +func Xstrncasecmp(tls *TLS, _l uintptr, _r uintptr, n Tsize_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v _l=%v _r=%v n=%v, (%v:)", tls, _l, _r, n, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var l, r uintptr + var v1 Tsize_t + _, _, _ = l, r, v1 + l = _l + r = _r + v1 = n + n = n - 1 + if !(v1 != 0) { + return 0 + } + for { + if !(**(**uint8)(__ccgo_up(l)) != 0 && **(**uint8)(__ccgo_up(r)) != 0 && n != 0 && (Int32FromUint8(**(**uint8)(__ccgo_up(l))) == Int32FromUint8(**(**uint8)(__ccgo_up(r))) || Xtolower(tls, Int32FromUint8(**(**uint8)(__ccgo_up(l)))) == Xtolower(tls, Int32FromUint8(**(**uint8)(__ccgo_up(r)))))) { + break + } + goto _2 + _2: + ; + l = l + 1 + r = r + 1 + n = n - 1 + } + return Xtolower(tls, Int32FromUint8(**(**uint8)(__ccgo_up(l)))) - Xtolower(tls, Int32FromUint8(**(**uint8)(__ccgo_up(r)))) +} + +func X__strncasecmp_l(tls *TLS, l uintptr, r uintptr, n Tsize_t, loc Tlocale_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v n=%v loc=%v, (%v:)", tls, l, r, n, loc, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return Xstrncasecmp(tls, l, r, n) +} + +func Xstrncasecmp_l(tls *TLS, l uintptr, r uintptr, n Tsize_t, loc Tlocale_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v n=%v loc=%v, (%v:)", tls, l, r, n, loc, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return X__strncasecmp_l(tls, l, r, n, loc) +} + +func Xstrncat(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, v1, v2 uintptr + _, _, _ = a, v1, v2 + a = d + d = d + uintptr(_strlen(tls, d)) + for n != 0 && **(**uint8)(__ccgo_up(s)) != 0 { + n = n - 1 + v1 = d + d = d + 1 + v2 = s + s = s + 1 + **(**uint8)(__ccgo_up(v1)) = **(**uint8)(__ccgo_up(v2)) + } + v1 = d + d = d + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(0) + return a +} + +func Xstrncmp(tls *TLS, _l uintptr, _r uintptr, n Tsize_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v _l=%v _r=%v n=%v, (%v:)", tls, _l, _r, n, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var l, r uintptr + var v1 Tsize_t + _, _, _ = l, r, v1 + l = _l + r = _r + v1 = n + n = n - 1 + if !(v1 != 0) { + return 0 + } + for { + if !(**(**uint8)(__ccgo_up(l)) != 0 && **(**uint8)(__ccgo_up(r)) != 0 && n != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(l))) == Int32FromUint8(**(**uint8)(__ccgo_up(r)))) { + break + } + goto _2 + _2: + ; + l = l + 1 + r = r + 1 + n = n - 1 + } + return Int32FromUint8(**(**uint8)(__ccgo_up(l))) - Int32FromUint8(**(**uint8)(__ccgo_up(r))) +} + +func Xstrncpy(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + X__stpncpy(tls, d, s, n) + return d +} + +func Xstrndup(tls *TLS, s uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v, (%v:)", tls, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var d uintptr + var l Tsize_t + _, _ = d, l + l = Xstrnlen(tls, s, n) + d = Xmalloc(tls, l+uint32(1)) + if !(d != 0) { + return UintptrFromInt32(0) + } + _memcpy(tls, d, s, l) + **(**uint8)(__ccgo_up(d + uintptr(l))) = uint8(0) + return d +} + +func Xstrnlen(tls *TLS, s uintptr, n Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v, (%v:)", tls, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var p uintptr + var v1 uint32 + _, _ = p, v1 + p = Xmemchr(tls, s, 0, n) + if p != 0 { + v1 = Uint32FromInt32(int32(p) - int32(s)) + } else { + v1 = n + } + return v1 +} + +func Xstrpbrk(tls *TLS, s uintptr, b uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v b=%v, (%v:)", tls, s, b, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 uintptr + _ = v1 + s = s + uintptr(Xstrcspn(tls, s, b)) + if **(**uint8)(__ccgo_up(s)) != 0 { + v1 = s + } else { + v1 = uintptr(0) + } + return v1 +} + +func Xstrrchr(tls *TLS, s uintptr, c int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__memrchr(tls, s, c, _strlen(tls, s)+uint32(1)) +} + +func Xstrsep(tls *TLS, str uintptr, sep uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v str=%v sep=%v, (%v:)", tls, str, sep, origin(2)) + defer func() { trc("-> %v", r) }() + } + var end, s, v1 uintptr + _, _, _ = end, s, v1 + s = **(**uintptr)(__ccgo_up(str)) + if !(s != 0) { + return UintptrFromInt32(0) + } + end = s + uintptr(Xstrcspn(tls, s, sep)) + if **(**uint8)(__ccgo_up(end)) != 0 { + v1 = end + end = end + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(0) + } else { + end = uintptr(0) + } + **(**uintptr)(__ccgo_up(str)) = end + return s +} + +var _strings = [671]uint8{'U', 'n', 'k', 'n', 'o', 'w', 'n', ' ', 's', 'i', 'g', 'n', 'a', 'l', 0, 'H', 'a', 'n', 'g', 'u', 'p', 0, 'I', 'n', 't', 'e', 'r', 'r', 'u', 'p', 't', 0, 'Q', 'u', 'i', 't', 0, 'I', 'l', 'l', 'e', 'g', 'a', 'l', ' ', 'i', 'n', 's', 't', 'r', 'u', 'c', 't', 'i', 'o', 'n', 0, 'T', 'r', 'a', 'c', 'e', '/', 'b', 'r', 'e', 'a', 'k', 'p', 'o', 'i', 'n', 't', ' ', 't', 'r', 'a', 'p', 0, 'A', 'b', 'o', 'r', 't', 'e', 'd', 0, 'B', 'u', 's', ' ', 'e', 'r', 'r', 'o', 'r', 0, 'A', 'r', 'i', 't', 'h', 'm', 'e', 't', 'i', 'c', ' ', 'e', 'x', 'c', 'e', 'p', 't', 'i', 'o', 'n', 0, 'K', 'i', 'l', 'l', 'e', 'd', 0, 'U', 's', 'e', 'r', ' ', 'd', 'e', 'f', 'i', 'n', 'e', 'd', ' ', 's', 'i', 'g', 'n', 'a', 'l', ' ', '1', 0, 'S', 'e', 'g', 'm', 'e', 'n', 't', 'a', 't', 'i', 'o', 'n', ' ', 'f', 'a', 'u', 'l', 't', 0, 'U', 's', 'e', 'r', ' ', 'd', 'e', 'f', 'i', 'n', 'e', 'd', ' ', 's', 'i', 'g', 'n', 'a', 'l', ' ', '2', 0, 'B', 'r', 'o', 'k', 'e', 'n', ' ', 'p', 'i', 'p', 'e', 0, 'A', 'l', 'a', 'r', 'm', ' ', 'c', 'l', 'o', 'c', 'k', 0, 'T', 'e', 'r', 'm', 'i', 'n', 'a', 't', 'e', 'd', 0, 'S', 't', 'a', 'c', 'k', ' ', 'f', 'a', 'u', 'l', 't', 0, 'C', 'h', 'i', 'l', 'd', ' ', 'p', 'r', 'o', 'c', 'e', 's', 's', ' ', 's', 't', 'a', 't', 'u', 's', 0, 'C', 'o', 'n', 't', 'i', 'n', 'u', 'e', 'd', 0, 'S', 't', 'o', 'p', 'p', 'e', 'd', ' ', '(', 's', 'i', 'g', 'n', 'a', 'l', ')', 0, 'S', 't', 'o', 'p', 'p', 'e', 'd', 0, 'S', 't', 'o', 'p', 'p', 'e', 'd', ' ', '(', 't', 't', 'y', ' ', 'i', 'n', 'p', 'u', 't', ')', 0, 'S', 't', 'o', 'p', 'p', 'e', 'd', ' ', '(', 't', 't', 'y', ' ', 'o', 'u', 't', 'p', 'u', 't', ')', 0, 'U', 'r', 'g', 'e', 'n', 't', ' ', 'I', '/', 'O', ' ', 'c', 'o', 'n', 'd', 'i', 't', 'i', 'o', 'n', 0, 'C', 'P', 'U', ' ', 't', 'i', 'm', 'e', ' ', 'l', 'i', 'm', 'i', 't', ' ', 'e', 'x', 'c', 'e', 'e', 'd', 'e', 'd', 0, 'F', 'i', 'l', 'e', ' ', 's', 'i', 'z', 'e', ' ', 'l', 'i', 'm', 'i', 't', ' ', 'e', 'x', 'c', 'e', 'e', 'd', 'e', 'd', 0, 'V', 'i', 'r', 't', 'u', 'a', 'l', ' ', 't', 'i', 'm', 'e', 'r', ' ', 'e', 'x', 'p', 'i', 'r', 'e', 'd', 0, 'P', 'r', 'o', 'f', 'i', 'l', 'i', 'n', 'g', ' ', 't', 'i', 'm', 'e', 'r', ' ', 'e', 'x', 'p', 'i', 'r', 'e', 'd', 0, 'W', 'i', 'n', 'd', 'o', 'w', ' ', 'c', 'h', 'a', 'n', 'g', 'e', 'd', 0, 'I', '/', 'O', ' ', 'p', 'o', 's', 's', 'i', 'b', 'l', 'e', 0, 'P', 'o', 'w', 'e', 'r', ' ', 'f', 'a', 'i', 'l', 'u', 'r', 'e', 0, 'B', 'a', 'd', ' ', 's', 'y', 's', 't', 'e', 'm', ' ', 'c', 'a', 'l', 'l', 0, 'R', 'T', '3', '2', 0, 'R', 'T', '3', '3', 0, 'R', 'T', '3', '4', 0, 'R', 'T', '3', '5', 0, 'R', 'T', '3', '6', 0, 'R', 'T', '3', '7', 0, 'R', 'T', '3', '8', 0, 'R', 'T', '3', '9', 0, 'R', 'T', '4', '0', 0, 'R', 'T', '4', '1', 0, 'R', 'T', '4', '2', 0, 'R', 'T', '4', '3', 0, 'R', 'T', '4', '4', 0, 'R', 'T', '4', '5', 0, 'R', 'T', '4', '6', 0, 'R', 'T', '4', '7', 0, 'R', 'T', '4', '8', 0, 'R', 'T', '4', '9', 0, 'R', 'T', '5', '0', 0, 'R', 'T', '5', '1', 0, 'R', 'T', '5', '2', 0, 'R', 'T', '5', '3', 0, 'R', 'T', '5', '4', 0, 'R', 'T', '5', '5', 0, 'R', 'T', '5', '6', 0, 'R', 'T', '5', '7', 0, 'R', 'T', '5', '8', 0, 'R', 'T', '5', '9', 0, 'R', 'T', '6', '0', 0, 'R', 'T', '6', '1', 0, 'R', 'T', '6', '2', 0, 'R', 'T', '6', '3', 0, 'R', 'T', '6', '4'} + +func Xstrsignal(tls *TLS, signum int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v signum=%v, (%v:)", tls, signum, origin(2)) + defer func() { trc("-> %v", r) }() + } + var s uintptr + var v2 int32 + _, _ = s, v2 + s = uintptr(unsafe.Pointer(&_strings)) + signum = signum + if Uint32FromInt32(signum)-uint32(1) >= Uint32FromInt32(Int32FromInt32(_NSIG)-Int32FromInt32(1)) { + signum = 0 + } + for { + v2 = signum + signum = signum - 1 + if !(v2 != 0) { + break + } + for { + if !(**(**uint8)(__ccgo_up(s)) != 0) { + break + } + goto _3 + _3: + ; + s = s + 1 + } + goto _1 + _1: + ; + s = s + 1 + } + return X__lctrans_cur(tls, s) +} + +func Xstrspn(tls *TLS, s uintptr, c uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var a, v3 uintptr + var v4 bool + var _ /* byteset at bp+0 */ [8]Tsize_t + _, _, _ = a, v3, v4 + a = s + **(**[8]Tsize_t)(__ccgo_up(bp)) = [8]Tsize_t{} + if !(**(**uint8)(__ccgo_up(c)) != 0) { + return uint32(0) + } + if !(**(**uint8)(__ccgo_up(c + 1)) != 0) { + for { + if !(Int32FromUint8(**(**uint8)(__ccgo_up(s))) == Int32FromUint8(**(**uint8)(__ccgo_up(c)))) { + break + } + goto _1 + _1: + ; + s = s + 1 + } + return Uint32FromInt32(int32(s) - int32(a)) + } + for { + if v4 = **(**uint8)(__ccgo_up(c)) != 0; v4 { + v3 = bp + uintptr(uint32(**(**uint8)(__ccgo_up(c)))/(Uint32FromInt32(8)*Uint32FromInt64(4)))*4 + *(*Tsize_t)(unsafe.Pointer(v3)) |= Uint32FromInt32(1) << (uint32(**(**uint8)(__ccgo_up(c))) % (Uint32FromInt32(8) * Uint32FromInt64(4))) + } + if !(v4 && *(*Tsize_t)(unsafe.Pointer(v3)) != 0) { + break + } + goto _2 + _2: + ; + c = c + 1 + } + for { + if !(**(**uint8)(__ccgo_up(s)) != 0 && (**(**[8]Tsize_t)(__ccgo_up(bp)))[uint32(**(**uint8)(__ccgo_up(s)))/(Uint32FromInt32(8)*Uint32FromInt64(4))]&(Uint32FromInt32(1)<<(uint32(**(**uint8)(__ccgo_up(s)))%(Uint32FromInt32(8)*Uint32FromInt64(4)))) != 0) { + break + } + goto _5 + _5: + ; + s = s + 1 + } + return Uint32FromInt32(int32(s) - int32(a)) +} + +func _twobyte_strstr(tls *TLS, h uintptr, n uintptr) (r uintptr) { + var hw, nw Tuint16_t + var v2 uintptr + _, _, _ = hw, nw, v2 + nw = Uint16FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(n)))< Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(jp+k)))) { + jp = jp + k + k = uint32(1) + p = jp - ip + } else { + v2 = jp + jp = jp + 1 + ip = v2 + v2 = Uint32FromInt32(1) + p = v2 + k = v2 + } + } + } + ms = ip + p0 = p + /* And with the opposite comparison */ + ip = Uint32FromInt32(-Int32FromInt32(1)) + jp = uint32(0) + v2 = Uint32FromInt32(1) + p = v2 + k = v2 + for jp+k < l { + if Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(ip+k)))) == Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(jp+k)))) { + if k == p { + jp = jp + p + k = uint32(1) + } else { + k = k + 1 + } + } else { + if Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(ip+k)))) < Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(jp+k)))) { + jp = jp + k + k = uint32(1) + p = jp - ip + } else { + v2 = jp + jp = jp + 1 + ip = v2 + v2 = Uint32FromInt32(1) + p = v2 + k = v2 + } + } + } + if ip+uint32(1) > ms+uint32(1) { + ms = ip + } else { + p = p0 + } + /* Periodic needle? */ + if Xmemcmp(tls, n, n+uintptr(p), ms+uint32(1)) != 0 { + mem0 = uint32(0) + if ms > l-ms-uint32(1) { + v8 = ms + } else { + v8 = l - ms - uint32(1) + } + p = v8 + uint32(1) + } else { + mem0 = l - p + } + mem = uint32(0) + /* Initialize incremental end-of-haystack pointer */ + z = h + /* Search loop */ + for { + /* Update incremental end-of-haystack pointer */ + if Uint32FromInt32(int32(z)-int32(h)) < l { + /* Fast estimate for MAX(l,63) */ + grow = l | uint32(63) + z2 = Xmemchr(tls, z, 0, grow) + if z2 != 0 { + z = z2 + if Uint32FromInt32(int32(z)-int32(h)) < l { + return uintptr(0) + } + } else { + z = z + uintptr(grow) + } + } + /* Check last byte first; advance by shift on mismatch */ + if (**(**[8]Tsize_t)(__ccgo_up(bp)))[uint32(**(**uint8)(__ccgo_up(h + uintptr(l-uint32(1)))))/(Uint32FromInt32(8)*Uint32FromInt64(4))]&(Uint32FromInt32(1)<<(uint32(**(**uint8)(__ccgo_up(h + uintptr(l-uint32(1)))))%(Uint32FromInt32(8)*Uint32FromInt64(4)))) != 0 { + k = l - shift[**(**uint8)(__ccgo_up(h + uintptr(l-uint32(1))))] + if k != 0 { + if k < mem { + k = mem + } + h = h + uintptr(k) + mem = uint32(0) + goto _9 + } + } else { + h = h + uintptr(l) + mem = uint32(0) + goto _9 + } + /* Compare right half */ + if ms+uint32(1) > mem { + v8 = ms + uint32(1) + } else { + v8 = mem + } + k = v8 + for { + if !(**(**uint8)(__ccgo_up(n + uintptr(k))) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(k)))) == Int32FromUint8(**(**uint8)(__ccgo_up(h + uintptr(k))))) { + break + } + goto _10 + _10: + ; + k = k + 1 + } + if **(**uint8)(__ccgo_up(n + uintptr(k))) != 0 { + h = h + uintptr(k-ms) + mem = uint32(0) + goto _9 + } + /* Compare left half */ + k = ms + uint32(1) + for { + if !(k > mem && Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(k-uint32(1))))) == Int32FromUint8(**(**uint8)(__ccgo_up(h + uintptr(k-uint32(1)))))) { + break + } + goto _12 + _12: + ; + k = k - 1 + } + if k <= mem { + return h + } + h = h + uintptr(p) + mem = mem0 + goto _9 + _9: + } + return r +} + +func Xstrstr(tls *TLS, h uintptr, n uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v h=%v n=%v, (%v:)", tls, h, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + /* Return immediately on empty needle */ + if !(**(**uint8)(__ccgo_up(n)) != 0) { + return h + } + /* Use faster algorithms for short needles */ + h = Xstrchr(tls, h, Int32FromUint8(**(**uint8)(__ccgo_up(n)))) + if !(h != 0) || !(**(**uint8)(__ccgo_up(n + 1)) != 0) { + return h + } + if !(**(**uint8)(__ccgo_up(h + 1)) != 0) { + return uintptr(0) + } + if !(**(**uint8)(__ccgo_up(n + 2)) != 0) { + return _twobyte_strstr(tls, h, n) + } + if !(**(**uint8)(__ccgo_up(h + 2)) != 0) { + return uintptr(0) + } + if !(**(**uint8)(__ccgo_up(n + 3)) != 0) { + return _threebyte_strstr(tls, h, n) + } + if !(**(**uint8)(__ccgo_up(h + 3)) != 0) { + return uintptr(0) + } + if !(**(**uint8)(__ccgo_up(n + 4)) != 0) { + return _fourbyte_strstr(tls, h, n) + } + return _twoway_strstr(tls, h, n) +} + +func Xstrtok(tls *TLS, s uintptr, sep uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v sep=%v, (%v:)", tls, s, sep, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 uintptr + var v2 bool + _, _ = v1, v2 + if v2 = !(s != 0); v2 { + v1 = _p2 + s = v1 + } + if v2 && !(v1 != 0) { + return UintptrFromInt32(0) + } + s = s + uintptr(Xstrspn(tls, s, sep)) + if !(**(**uint8)(__ccgo_up(s)) != 0) { + v1 = UintptrFromInt32(0) + _p2 = v1 + return v1 + } + _p2 = s + uintptr(Xstrcspn(tls, s, sep)) + if **(**uint8)(__ccgo_up(_p2)) != 0 { + v1 = _p2 + _p2 = _p2 + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(0) + } else { + _p2 = uintptr(0) + } + return s +} + +var _p2 uintptr + +func Xstrtok_r(tls *TLS, s uintptr, sep uintptr, p uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v sep=%v p=%v, (%v:)", tls, s, sep, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1, v3 uintptr + var v2 bool + _, _, _ = v1, v2, v3 + if v2 = !(s != 0); v2 { + v1 = **(**uintptr)(__ccgo_up(p)) + s = v1 + } + if v2 && !(v1 != 0) { + return UintptrFromInt32(0) + } + s = s + uintptr(Xstrspn(tls, s, sep)) + if !(**(**uint8)(__ccgo_up(s)) != 0) { + v1 = UintptrFromInt32(0) + **(**uintptr)(__ccgo_up(p)) = v1 + return v1 + } + **(**uintptr)(__ccgo_up(p)) = s + uintptr(Xstrcspn(tls, s, sep)) + if **(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(p)))) != 0 { + v3 = p + v1 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(0) + } else { + **(**uintptr)(__ccgo_up(p)) = uintptr(0) + } + return s +} + +func Xstrverscmp(tls *TLS, l0 uintptr, r0 uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l0=%v r0=%v, (%v:)", tls, l0, r0, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var c, z int32 + var dp, i, j, v2 Tsize_t + var l, r uintptr + _, _, _, _, _, _, _, _ = c, dp, i, j, l, r, z, v2 + l = l0 + r = r0 + z = int32(1) + /* Find maximal matching prefix and track its maximal digit + * suffix and whether those digits are all zeros. */ + v2 = Uint32FromInt32(0) + i = v2 + dp = v2 + for { + if !(Int32FromUint8(**(**uint8)(__ccgo_up(l + uintptr(i)))) == Int32FromUint8(**(**uint8)(__ccgo_up(r + uintptr(i))))) { + break + } + c = Int32FromUint8(**(**uint8)(__ccgo_up(l + uintptr(i)))) + if !(c != 0) { + return 0 + } + if !(BoolInt32(Uint32FromInt32(c)-Uint32FromUint8('0') < Uint32FromInt32(10)) != 0) { + dp = i + uint32(1) + z = Int32FromInt32(1) + } else { + if c != int32('0') { + z = 0 + } + } + goto _1 + _1: + ; + i = i + 1 + } + if Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(l + uintptr(dp))))-int32('1')) < uint32(9) && Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(r + uintptr(dp))))-int32('1')) < uint32(9) { + /* If we're looking at non-degenerate digit sequences starting + * with nonzero digits, longest digit string is greater. */ + j = i + for { + if !(BoolInt32(uint32(**(**uint8)(__ccgo_up(l + uintptr(j))))-uint32('0') < uint32(10)) != 0) { + break + } + if !(BoolInt32(uint32(**(**uint8)(__ccgo_up(r + uintptr(j))))-Uint32FromUint8('0') < Uint32FromInt32(10)) != 0) { + return int32(1) + } + goto _3 + _3: + ; + j = j + 1 + } + if BoolInt32(uint32(**(**uint8)(__ccgo_up(r + uintptr(j))))-uint32('0') < uint32(10)) != 0 { + return -int32(1) + } + } else { + if z != 0 && dp < i && (BoolInt32(uint32(**(**uint8)(__ccgo_up(l + uintptr(i))))-uint32('0') < uint32(10)) != 0 || BoolInt32(uint32(**(**uint8)(__ccgo_up(r + uintptr(i))))-uint32('0') < uint32(10)) != 0) { + /* Otherwise, if common prefix of digit sequence is + * all zeros, digits order less than non-digits. */ + return Int32FromUint8(Uint8FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(l + uintptr(i))))-Int32FromUint8('0'))) - Int32FromUint8(Uint8FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(r + uintptr(i))))-Int32FromUint8('0'))) + } + } + return Int32FromUint8(**(**uint8)(__ccgo_up(l + uintptr(i)))) - Int32FromUint8(**(**uint8)(__ccgo_up(r + uintptr(i)))) +} + +func Xswab(tls *TLS, _src uintptr, _dest uintptr, n Tssize_t) { + if __ccgo_strace { + trc("tls=%v _src=%v _dest=%v n=%v, (%v:)", tls, _src, _dest, n, origin(2)) + } + var dest, src uintptr + _, _ = dest, src + src = _src + dest = _dest + for { + if !(n > int32(1)) { + break + } + **(**uint8)(__ccgo_up(dest)) = **(**uint8)(__ccgo_up(src + 1)) + **(**uint8)(__ccgo_up(dest + 1)) = **(**uint8)(__ccgo_up(src)) + dest = dest + uintptr(2) + src = src + uintptr(2) + goto _1 + _1: + ; + n = n - int32(2) + } +} + +func Xwcpcpy(tls *TLS, d uintptr, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v, (%v:)", tls, d, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwcscpy(tls, d, s) + uintptr(Xwcslen(tls, s))*4 +} + +func Xwcpncpy(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwcsncpy(tls, d, s, n) + uintptr(Xwcsnlen(tls, s, n))*4 +} + +func Xwcscasecmp(tls *TLS, l uintptr, r uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v, (%v:)", tls, l, r, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return Xwcsncasecmp(tls, l, r, Uint32FromInt32(-Int32FromInt32(1))) +} + +func Xwcscasecmp_l(tls *TLS, l uintptr, r uintptr, locale Tlocale_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v locale=%v, (%v:)", tls, l, r, locale, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return Xwcscasecmp(tls, l, r) +} + +func Xwcscat(tls *TLS, dest uintptr, src uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v, (%v:)", tls, dest, src, origin(2)) + defer func() { trc("-> %v", r) }() + } + Xwcscpy(tls, dest+uintptr(Xwcslen(tls, dest))*4, src) + return dest +} + +func Xwcschr(tls *TLS, s uintptr, c Twchar_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v2 uintptr + _ = v2 + if !(c != 0) { + return s + uintptr(Xwcslen(tls, s))*4 + } + for { + if !(**(**Twchar_t)(__ccgo_up(s)) != 0 && **(**Twchar_t)(__ccgo_up(s)) != c) { + break + } + goto _1 + _1: + ; + s += 4 + } + if **(**Twchar_t)(__ccgo_up(s)) != 0 { + v2 = s + } else { + v2 = uintptr(0) + } + return v2 +} + +func Xwcscmp(tls *TLS, l uintptr, r uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v, (%v:)", tls, l, r, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var v2 int32 + _ = v2 + for { + if !(**(**Twchar_t)(__ccgo_up(l)) == **(**Twchar_t)(__ccgo_up(r)) && **(**Twchar_t)(__ccgo_up(l)) != 0 && **(**Twchar_t)(__ccgo_up(r)) != 0) { + break + } + goto _1 + _1: + ; + l += 4 + r += 4 + } + if **(**Twchar_t)(__ccgo_up(l)) < **(**Twchar_t)(__ccgo_up(r)) { + v2 = -int32(1) + } else { + v2 = BoolInt32(**(**Twchar_t)(__ccgo_up(l)) > **(**Twchar_t)(__ccgo_up(r))) + } + return v2 +} + +func Xwcscpy(tls *TLS, d uintptr, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v, (%v:)", tls, d, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, v2, v3 uintptr + var v1 Twchar_t + _, _, _, _ = a, v1, v2, v3 + a = d + for { + v2 = s + s += 4 + v1 = **(**Twchar_t)(__ccgo_up(v2)) + v3 = d + d += 4 + **(**Twchar_t)(__ccgo_up(v3)) = v1 + if !(v1 != 0) { + break + } + } + return a +} + +func Xwcscspn(tls *TLS, s uintptr, c uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, v2, v3 uintptr + var v1 uint32 + _, _, _, _ = a, v1, v2, v3 + if !(**(**Twchar_t)(__ccgo_up(c)) != 0) { + return Xwcslen(tls, s) + } + if !(**(**Twchar_t)(__ccgo_up(c + 1*4)) != 0) { + v3 = s + a = v3 + v2 = Xwcschr(tls, v3, **(**Twchar_t)(__ccgo_up(c))) + s = v2 + if v2 != 0 { + v1 = Uint32FromInt32((int32(s) - int32(a)) / 4) + } else { + v1 = Xwcslen(tls, a) + } + return v1 + } + a = s + for { + if !(**(**Twchar_t)(__ccgo_up(s)) != 0 && !(Xwcschr(tls, c, **(**Twchar_t)(__ccgo_up(s))) != 0)) { + break + } + goto _4 + _4: + ; + s += 4 + } + return Uint32FromInt32((int32(s) - int32(a)) / 4) +} + +func Xwcsdup(tls *TLS, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var d uintptr + var l Tsize_t + _, _ = d, l + l = Xwcslen(tls, s) + d = Xmalloc(tls, (l+uint32(1))*uint32(4)) + if !(d != 0) { + return UintptrFromInt32(0) + } + return Xwmemcpy(tls, d, s, l+uint32(1)) +} + +func Xwcslen(tls *TLS, s uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a uintptr + _ = a + a = s + for { + if !(**(**Twchar_t)(__ccgo_up(s)) != 0) { + break + } + goto _1 + _1: + ; + s += 4 + } + return Uint32FromInt32((int32(s) - int32(a)) / 4) +} + +func Xwcsncasecmp(tls *TLS, l uintptr, r uintptr, n Tsize_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v n=%v, (%v:)", tls, l, r, n, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var v1 Tsize_t + _ = v1 + v1 = n + n = n - 1 + if !(v1 != 0) { + return 0 + } + for { + if !(**(**Twchar_t)(__ccgo_up(l)) != 0 && **(**Twchar_t)(__ccgo_up(r)) != 0 && n != 0 && (**(**Twchar_t)(__ccgo_up(l)) == **(**Twchar_t)(__ccgo_up(r)) || Xtowlower(tls, **(**Twchar_t)(__ccgo_up(l))) == Xtowlower(tls, **(**Twchar_t)(__ccgo_up(r))))) { + break + } + goto _2 + _2: + ; + l += 4 + r += 4 + n = n - 1 + } + return Int32FromUint32(Xtowlower(tls, **(**Twchar_t)(__ccgo_up(l))) - Xtowlower(tls, **(**Twchar_t)(__ccgo_up(r)))) +} + +func Xwcsncasecmp_l(tls *TLS, l uintptr, r uintptr, n Tsize_t, locale Tlocale_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v n=%v locale=%v, (%v:)", tls, l, r, n, locale, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return Xwcsncasecmp(tls, l, r, n) +} + +func Xwcsncat(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, v1, v2 uintptr + _, _, _ = a, v1, v2 + a = d + d = d + uintptr(Xwcslen(tls, d))*4 + for n != 0 && **(**Twchar_t)(__ccgo_up(s)) != 0 { + n = n - 1 + v1 = d + d += 4 + v2 = s + s += 4 + **(**Twchar_t)(__ccgo_up(v1)) = **(**Twchar_t)(__ccgo_up(v2)) + } + v1 = d + d += 4 + **(**Twchar_t)(__ccgo_up(v1)) = uint32(0) + return a +} + +func Xwcsncmp(tls *TLS, l uintptr, r uintptr, n Tsize_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v n=%v, (%v:)", tls, l, r, n, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var v2, v3 int32 + _, _ = v2, v3 + for { + if !(n != 0 && **(**Twchar_t)(__ccgo_up(l)) == **(**Twchar_t)(__ccgo_up(r)) && **(**Twchar_t)(__ccgo_up(l)) != 0 && **(**Twchar_t)(__ccgo_up(r)) != 0) { + break + } + goto _1 + _1: + ; + n = n - 1 + l += 4 + r += 4 + } + if n != 0 { + if **(**Twchar_t)(__ccgo_up(l)) < **(**Twchar_t)(__ccgo_up(r)) { + v3 = -int32(1) + } else { + v3 = BoolInt32(**(**Twchar_t)(__ccgo_up(l)) > **(**Twchar_t)(__ccgo_up(r))) + } + v2 = v3 + } else { + v2 = 0 + } + return v2 +} + +func Xwcsncpy(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, v1, v2 uintptr + _, _, _ = a, v1, v2 + a = d + for n != 0 && **(**Twchar_t)(__ccgo_up(s)) != 0 { + n = n - 1 + v1 = d + d += 4 + v2 = s + s += 4 + **(**Twchar_t)(__ccgo_up(v1)) = **(**Twchar_t)(__ccgo_up(v2)) + } + Xwmemset(tls, d, uint32(0), n) + return a +} + +func Xwcsnlen(tls *TLS, s uintptr, n Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v, (%v:)", tls, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var z uintptr + _ = z + z = Xwmemchr(tls, s, uint32(0), n) + if z != 0 { + n = Uint32FromInt32((int32(z) - int32(s)) / 4) + } + return n +} + +func Xwcspbrk(tls *TLS, s uintptr, b uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v b=%v, (%v:)", tls, s, b, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 uintptr + _ = v1 + s = s + uintptr(Xwcscspn(tls, s, b))*4 + if **(**Twchar_t)(__ccgo_up(s)) != 0 { + v1 = s + } else { + v1 = UintptrFromInt32(0) + } + return v1 +} + +func Xwcsrchr(tls *TLS, s uintptr, c Twchar_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + var p, v2 uintptr + _, _ = p, v2 + p = s + uintptr(Xwcslen(tls, s))*4 + for { + if !(p >= s && **(**Twchar_t)(__ccgo_up(p)) != c) { + break + } + goto _1 + _1: + ; + p -= 4 + } + if p >= s { + v2 = p + } else { + v2 = uintptr(0) + } + return v2 +} + +func Xwcsspn(tls *TLS, s uintptr, c uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a uintptr + _ = a + a = s + for { + if !(**(**Twchar_t)(__ccgo_up(s)) != 0 && Xwcschr(tls, c, **(**Twchar_t)(__ccgo_up(s))) != 0) { + break + } + goto _1 + _1: + ; + s += 4 + } + return Uint32FromInt32((int32(s) - int32(a)) / 4) +} + +func _twoway_wcsstr(tls *TLS, h uintptr, n uintptr) (r uintptr) { + var grow, ip, jp, k, l, mem, mem0, ms, p, p0, v2 Tsize_t + var z, z2 uintptr + var v8 uint32 + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = grow, ip, jp, k, l, mem, mem0, ms, p, p0, z, z2, v2, v8 + /* Computing length of needle */ + l = uint32(0) + for { + if !(**(**Twchar_t)(__ccgo_up(n + uintptr(l)*4)) != 0 && **(**Twchar_t)(__ccgo_up(h + uintptr(l)*4)) != 0) { + break + } + goto _1 + _1: + ; + l = l + 1 + } + if **(**Twchar_t)(__ccgo_up(n + uintptr(l)*4)) != 0 { + return uintptr(0) + } /* hit the end of h */ + /* Compute maximal suffix */ + ip = Uint32FromInt32(-Int32FromInt32(1)) + jp = uint32(0) + v2 = Uint32FromInt32(1) + p = v2 + k = v2 + for jp+k < l { + if **(**Twchar_t)(__ccgo_up(n + uintptr(ip+k)*4)) == **(**Twchar_t)(__ccgo_up(n + uintptr(jp+k)*4)) { + if k == p { + jp = jp + p + k = uint32(1) + } else { + k = k + 1 + } + } else { + if **(**Twchar_t)(__ccgo_up(n + uintptr(ip+k)*4)) > **(**Twchar_t)(__ccgo_up(n + uintptr(jp+k)*4)) { + jp = jp + k + k = uint32(1) + p = jp - ip + } else { + v2 = jp + jp = jp + 1 + ip = v2 + v2 = Uint32FromInt32(1) + p = v2 + k = v2 + } + } + } + ms = ip + p0 = p + /* And with the opposite comparison */ + ip = Uint32FromInt32(-Int32FromInt32(1)) + jp = uint32(0) + v2 = Uint32FromInt32(1) + p = v2 + k = v2 + for jp+k < l { + if **(**Twchar_t)(__ccgo_up(n + uintptr(ip+k)*4)) == **(**Twchar_t)(__ccgo_up(n + uintptr(jp+k)*4)) { + if k == p { + jp = jp + p + k = uint32(1) + } else { + k = k + 1 + } + } else { + if **(**Twchar_t)(__ccgo_up(n + uintptr(ip+k)*4)) < **(**Twchar_t)(__ccgo_up(n + uintptr(jp+k)*4)) { + jp = jp + k + k = uint32(1) + p = jp - ip + } else { + v2 = jp + jp = jp + 1 + ip = v2 + v2 = Uint32FromInt32(1) + p = v2 + k = v2 + } + } + } + if ip+uint32(1) > ms+uint32(1) { + ms = ip + } else { + p = p0 + } + /* Periodic needle? */ + if Xwmemcmp(tls, n, n+uintptr(p)*4, ms+uint32(1)) != 0 { + mem0 = uint32(0) + if ms > l-ms-uint32(1) { + v8 = ms + } else { + v8 = l - ms - uint32(1) + } + p = v8 + uint32(1) + } else { + mem0 = l - p + } + mem = uint32(0) + /* Initialize incremental end-of-haystack pointer */ + z = h + /* Search loop */ + for { + /* Update incremental end-of-haystack pointer */ + if Uint32FromInt32((int32(z)-int32(h))/4) < l { + /* Fast estimate for MIN(l,63) */ + grow = l | uint32(63) + z2 = Xwmemchr(tls, z, uint32(0), grow) + if z2 != 0 { + z = z2 + if Uint32FromInt32((int32(z)-int32(h))/4) < l { + return uintptr(0) + } + } else { + z = z + uintptr(grow)*4 + } + } + /* Compare right half */ + if ms+uint32(1) > mem { + v8 = ms + uint32(1) + } else { + v8 = mem + } + k = v8 + for { + if !(**(**Twchar_t)(__ccgo_up(n + uintptr(k)*4)) != 0 && **(**Twchar_t)(__ccgo_up(n + uintptr(k)*4)) == **(**Twchar_t)(__ccgo_up(h + uintptr(k)*4))) { + break + } + goto _10 + _10: + ; + k = k + 1 + } + if **(**Twchar_t)(__ccgo_up(n + uintptr(k)*4)) != 0 { + h = h + uintptr(k-ms)*4 + mem = uint32(0) + goto _9 + } + /* Compare left half */ + k = ms + uint32(1) + for { + if !(k > mem && **(**Twchar_t)(__ccgo_up(n + uintptr(k-uint32(1))*4)) == **(**Twchar_t)(__ccgo_up(h + uintptr(k-uint32(1))*4))) { + break + } + goto _12 + _12: + ; + k = k - 1 + } + if k <= mem { + return h + } + h = h + uintptr(p)*4 + mem = mem0 + goto _9 + _9: + } + return r +} + +func Xwcsstr(tls *TLS, h uintptr, n uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v h=%v n=%v, (%v:)", tls, h, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + /* Return immediately on empty needle or haystack */ + if !(**(**Twchar_t)(__ccgo_up(n)) != 0) { + return h + } + if !(**(**Twchar_t)(__ccgo_up(h)) != 0) { + return uintptr(0) + } + /* Use faster algorithms for short needles */ + h = Xwcschr(tls, h, **(**Twchar_t)(__ccgo_up(n))) + if !(h != 0) || !(**(**Twchar_t)(__ccgo_up(n + 1*4)) != 0) { + return h + } + if !(**(**Twchar_t)(__ccgo_up(h + 1*4)) != 0) { + return uintptr(0) + } + return _twoway_wcsstr(tls, h, n) +} + +func Xwcstok(tls *TLS, s uintptr, sep uintptr, p uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v sep=%v p=%v, (%v:)", tls, s, sep, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1, v3 uintptr + var v2 bool + _, _, _ = v1, v2, v3 + if v2 = !(s != 0); v2 { + v1 = **(**uintptr)(__ccgo_up(p)) + s = v1 + } + if v2 && !(v1 != 0) { + return UintptrFromInt32(0) + } + s = s + uintptr(Xwcsspn(tls, s, sep))*4 + if !(**(**Twchar_t)(__ccgo_up(s)) != 0) { + v1 = UintptrFromInt32(0) + **(**uintptr)(__ccgo_up(p)) = v1 + return v1 + } + **(**uintptr)(__ccgo_up(p)) = s + uintptr(Xwcscspn(tls, s, sep))*4 + if **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(p)))) != 0 { + v3 = p + v1 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) += 4 + **(**Twchar_t)(__ccgo_up(v1)) = uint32(0) + } else { + **(**uintptr)(__ccgo_up(p)) = uintptr(0) + } + return s +} + +func Xwcswcs(tls *TLS, haystack uintptr, needle uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v haystack=%v needle=%v, (%v:)", tls, haystack, needle, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwcsstr(tls, haystack, needle) +} + +func Xwmemchr(tls *TLS, s uintptr, c Twchar_t, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v n=%v, (%v:)", tls, s, c, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v2 uintptr + _ = v2 + for { + if !(n != 0 && **(**Twchar_t)(__ccgo_up(s)) != c) { + break + } + goto _1 + _1: + ; + n = n - 1 + s += 4 + } + if n != 0 { + v2 = s + } else { + v2 = uintptr(0) + } + return v2 +} + +func Xwmemcmp(tls *TLS, l uintptr, r uintptr, n Tsize_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v n=%v, (%v:)", tls, l, r, n, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var v2, v3 int32 + _, _ = v2, v3 + for { + if !(n != 0 && **(**Twchar_t)(__ccgo_up(l)) == **(**Twchar_t)(__ccgo_up(r))) { + break + } + goto _1 + _1: + ; + n = n - 1 + l += 4 + r += 4 + } + if n != 0 { + if **(**Twchar_t)(__ccgo_up(l)) < **(**Twchar_t)(__ccgo_up(r)) { + v3 = -int32(1) + } else { + v3 = BoolInt32(**(**Twchar_t)(__ccgo_up(l)) > **(**Twchar_t)(__ccgo_up(r))) + } + v2 = v3 + } else { + v2 = 0 + } + return v2 +} + +func Xwmemcpy(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, v2, v3 uintptr + var v1 Tsize_t + _, _, _, _ = a, v1, v2, v3 + a = d + for { + v1 = n + n = n - 1 + if !(v1 != 0) { + break + } + v2 = d + d += 4 + v3 = s + s += 4 + **(**Twchar_t)(__ccgo_up(v2)) = **(**Twchar_t)(__ccgo_up(v3)) + } + return a +} + +func Xwmemmove(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var d0, v3, v4 uintptr + var v1 Tsize_t + _, _, _, _ = d0, v1, v3, v4 + d0 = d + if d == s { + return d + } + if uint32(d)-uint32(s) < n*uint32(4) { + for { + v1 = n + n = n - 1 + if !(v1 != 0) { + break + } + **(**Twchar_t)(__ccgo_up(d + uintptr(n)*4)) = **(**Twchar_t)(__ccgo_up(s + uintptr(n)*4)) + } + } else { + for { + v1 = n + n = n - 1 + if !(v1 != 0) { + break + } + v3 = d + d += 4 + v4 = s + s += 4 + **(**Twchar_t)(__ccgo_up(v3)) = **(**Twchar_t)(__ccgo_up(v4)) + } + } + return d0 +} + +func Xwmemset(tls *TLS, d uintptr, c Twchar_t, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v c=%v n=%v, (%v:)", tls, d, c, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret, v2 uintptr + var v1 Tsize_t + _, _, _ = ret, v1, v2 + ret = d + for { + v1 = n + n = n - 1 + if !(v1 != 0) { + break + } + v2 = d + d += 4 + **(**Twchar_t)(__ccgo_up(v2)) = c + } + return ret +} + +func Xmkdtemp(tls *TLS, template uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v template=%v, (%v:)", tls, template, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l Tsize_t + var retries, v1 int32 + _, _, _ = l, retries, v1 + l = _strlen(tls, template) + retries = int32(100) + if l < uint32(6) || Xmemcmp(tls, template+uintptr(l)-uintptr(6), __ccgo_ts+1563, uint32(6)) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(0) + } + for { + ___randname(tls, template+uintptr(l)-uintptr(6)) + if !(Xmkdir(tls, template, uint32(0700)) != 0) { + return template + } + goto _2 + _2: + ; + retries = retries - 1 + v1 = retries + if !(v1 != 0 && **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EEXIST)) { + break + } + } + _memcpy(tls, template+uintptr(l)-uintptr(6), __ccgo_ts+1563, uint32(6)) + return uintptr(0) +} + +func Xmkostemp(tls *TLS, template uintptr, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v template=%v flags=%v, (%v:)", tls, template, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__mkostemps(tls, template, 0, flags) +} + +func X__mkostemps(tls *TLS, template uintptr, len1 int32, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v template=%v len1=%v flags=%v, (%v:)", tls, template, len1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var fd, retries, v1 int32 + var l Tsize_t + _, _, _, _ = fd, l, retries, v1 + l = _strlen(tls, template) + if l < uint32(6) || Uint32FromInt32(len1) > l-uint32(6) || Xmemcmp(tls, template+uintptr(l)-uintptr(len1)-uintptr(6), __ccgo_ts+1563, uint32(6)) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + flags = flags - flags&(Int32FromInt32(03)|Int32FromInt32(O_PATH)) + retries = int32(100) + for { + ___randname(tls, template+uintptr(l)-uintptr(len1)-uintptr(6)) + v1 = Xopen(tls, template, flags|int32(O_RDWR)|int32(O_CREAT)|int32(O_EXCL), VaList(bp+8, int32(0600))) + fd = v1 + if v1 >= 0 { + return fd + } + goto _2 + _2: + ; + retries = retries - 1 + v1 = retries + if !(v1 != 0 && **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EEXIST)) { + break + } + } + _memcpy(tls, template+uintptr(l)-uintptr(len1)-uintptr(6), __ccgo_ts+1563, uint32(6)) + return -int32(1) +} + +func Xmkostemps(tls *TLS, template uintptr, len1 int32, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v template=%v len1=%v flags=%v, (%v:)", tls, template, len1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__mkostemps(tls, template, len1, flags) +} + +func Xmkstemp(tls *TLS, template uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v template=%v, (%v:)", tls, template, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__mkostemps(tls, template, 0, 0) +} + +func Xmkstemps(tls *TLS, template uintptr, len1 int32) (r int32) { + if __ccgo_strace { + trc("tls=%v template=%v len1=%v, (%v:)", tls, template, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__mkostemps(tls, template, len1, 0) +} + +func Xmktemp(tls *TLS, template uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v template=%v, (%v:)", tls, template, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(160) + defer tls.Free(160) + var l Tsize_t + var retries, v1 int32 + var _ /* st at bp+0 */ Tstat + _, _, _ = l, retries, v1 + l = _strlen(tls, template) + retries = int32(100) + if l < uint32(6) || Xmemcmp(tls, template+uintptr(l)-uintptr(6), __ccgo_ts+1563, uint32(6)) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + **(**uint8)(__ccgo_up(template)) = uint8(0) + return template + } + for { + ___randname(tls, template+uintptr(l)-uintptr(6)) + if Xstat(tls, template, bp) != 0 { + if **(**int32)(__ccgo_up(X__errno_location(tls))) != int32(ENOENT) { + **(**uint8)(__ccgo_up(template)) = uint8(0) + } + return template + } + goto _2 + _2: + ; + retries = retries - 1 + v1 = retries + if !(v1 != 0) { + break + } + } + **(**uint8)(__ccgo_up(template)) = uint8(0) + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EEXIST) + return template +} + +func Xcfgetospeed(tls *TLS, tio uintptr) (r Tspeed_t) { + if __ccgo_strace { + trc("tls=%v tio=%v, (%v:)", tls, tio, origin(2)) + defer func() { trc("-> %v", r) }() + } + return (*Ttermios)(unsafe.Pointer(tio)).Fc_cflag & uint32(CBAUD) +} + +func Xcfgetispeed(tls *TLS, tio uintptr) (r Tspeed_t) { + if __ccgo_strace { + trc("tls=%v tio=%v, (%v:)", tls, tio, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xcfgetospeed(tls, tio) +} + +func Xcfmakeraw(tls *TLS, t uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v, (%v:)", tls, t, origin(2)) + } + **(**Ttcflag_t)(__ccgo_up(t)) &= Uint32FromInt32(^(Int32FromInt32(IGNBRK) | Int32FromInt32(BRKINT) | Int32FromInt32(PARMRK) | Int32FromInt32(ISTRIP) | Int32FromInt32(INLCR) | Int32FromInt32(IGNCR) | Int32FromInt32(ICRNL) | Int32FromInt32(IXON))) + **(**Ttcflag_t)(__ccgo_up(t + 4)) &= Uint32FromInt32(^Int32FromInt32(OPOST)) + **(**Ttcflag_t)(__ccgo_up(t + 12)) &= Uint32FromInt32(^(Int32FromInt32(ECHO) | Int32FromInt32(ECHONL) | Int32FromInt32(ICANON) | Int32FromInt32(ISIG) | Int32FromInt32(IEXTEN))) + **(**Ttcflag_t)(__ccgo_up(t + 8)) &= Uint32FromInt32(^(Int32FromInt32(CSIZE) | Int32FromInt32(PARENB))) + **(**Ttcflag_t)(__ccgo_up(t + 8)) |= uint32(CS8) + **(**Tcc_t)(__ccgo_up(t + 17 + 6)) = uint8(1) + **(**Tcc_t)(__ccgo_up(t + 17 + 5)) = uint8(0) +} + +func Xcfsetospeed(tls *TLS, tio uintptr, speed Tspeed_t) (r int32) { + if __ccgo_strace { + trc("tls=%v tio=%v speed=%v, (%v:)", tls, tio, speed, origin(2)) + defer func() { trc("-> %v", r) }() + } + if speed&Uint32FromInt32(^Int32FromInt32(CBAUD)) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + **(**Ttcflag_t)(__ccgo_up(tio + 8)) &= Uint32FromInt32(^Int32FromInt32(CBAUD)) + **(**Ttcflag_t)(__ccgo_up(tio + 8)) |= speed + return 0 +} + +func Xcfsetispeed(tls *TLS, tio uintptr, speed Tspeed_t) (r int32) { + if __ccgo_strace { + trc("tls=%v tio=%v speed=%v, (%v:)", tls, tio, speed, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + _ = v1 + if speed != 0 { + v1 = Xcfsetospeed(tls, tio, speed) + } else { + v1 = 0 + } + return v1 +} + +func Xcfsetspeed(tls *TLS, tio uintptr, speed Tspeed_t) (r int32) { + if __ccgo_strace { + trc("tls=%v tio=%v speed=%v, (%v:)", tls, tio, speed, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xcfsetospeed(tls, tio, speed) +} + +func Xtcdrain(tls *TLS, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(___syscall_cp(tls, int32(SYS_ioctl), fd, int32(Int32FromInt32(TCSBRK)), int32(Int32FromInt32(1)), 0, 0, 0))) +} + +func Xtcflow(tls *TLS, fd int32, action int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v action=%v, (%v:)", tls, fd, action, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + return Xioctl(tls, fd, int32(TCXONC), VaList(bp+8, action)) +} + +func Xtcflush(tls *TLS, fd int32, queue int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v queue=%v, (%v:)", tls, fd, queue, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + return Xioctl(tls, fd, int32(TCFLSH), VaList(bp+8, queue)) +} + +func Xtcgetattr(tls *TLS, fd int32, tio uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v tio=%v, (%v:)", tls, fd, tio, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + if Xioctl(tls, fd, int32(TCGETS), VaList(bp+8, tio)) != 0 { + return -int32(1) + } + return 0 +} + +func Xtcgetsid(tls *TLS, fd int32) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var _ /* sid at bp+0 */ int32 + if Xioctl(tls, fd, int32(TIOCGSID), VaList(bp+16, bp)) < 0 { + return -int32(1) + } + return **(**int32)(__ccgo_up(bp)) +} + +func Xtcgetwinsize(tls *TLS, fd int32, wsz uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v wsz=%v, (%v:)", tls, fd, wsz, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_ioctl), fd, int32(Int32FromInt32(TIOCGWINSZ)), int32(wsz)))) +} + +func Xtcsendbreak(tls *TLS, fd int32, dur int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v dur=%v, (%v:)", tls, fd, dur, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + /* nonzero duration is implementation-defined, so ignore it */ + return Xioctl(tls, fd, int32(TCSBRK), VaList(bp+8, 0)) +} + +func Xtcsetattr(tls *TLS, fd int32, act int32, tio uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v act=%v tio=%v, (%v:)", tls, fd, act, tio, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + if act < 0 || act > int32(2) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + return Xioctl(tls, fd, int32(TCSETS)+act, VaList(bp+8, tio)) +} + +func Xtcsetwinsize(tls *TLS, fd int32, wsz uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v wsz=%v, (%v:)", tls, fd, wsz, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_ioctl), fd, int32(Int32FromInt32(TIOCSWINSZ)), int32(wsz)))) +} + +func X__map_file(tls *TLS, pathname uintptr, size uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v pathname=%v size=%v, (%v:)", tls, pathname, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(160) + defer tls.Free(160) + var fd int32 + var map1, v1 uintptr + var _ /* st at bp+0 */ Tstat + _, _, _ = fd, map1, v1 + map1 = uintptr(-Int32FromInt32(1)) + fd = X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_open), int32(pathname), int32(Int32FromInt32(O_RDONLY)|Int32FromInt32(O_CLOEXEC)|Int32FromInt32(O_NONBLOCK)|Int32FromInt32(O_LARGEFILE))))) + if fd < 0 { + return uintptr(0) + } + if !(X__fstat(tls, fd, bp) != 0) { + map1 = X__mmap(tls, uintptr(0), Uint32FromInt64((**(**Tstat)(__ccgo_up(bp))).Fst_size), int32(PROT_READ), int32(MAP_SHARED), fd, 0) + **(**Tsize_t)(__ccgo_up(size)) = Uint32FromInt64((**(**Tstat)(__ccgo_up(bp))).Fst_size) + } + X__syscall1(tls, int32(SYS_close), fd) + if map1 == uintptr(-Int32FromInt32(1)) { + v1 = uintptr(0) + } else { + v1 = map1 + } + return v1 +} + +func X__month_to_secs(tls *TLS, month int32, is_leap int32) (r int32) { + if __ccgo_strace { + trc("tls=%v month=%v is_leap=%v, (%v:)", tls, month, is_leap, origin(2)) + defer func() { trc("-> %v", r) }() + } + var t int32 + _ = t + t = _secs_through_month[month] + if is_leap != 0 && month >= int32(2) { + t = t + int32(86400) + } + return t +} + +var _secs_through_month = [12]int32{ + 1: Int32FromInt32(31) * Int32FromInt32(86400), + 2: Int32FromInt32(59) * Int32FromInt32(86400), + 3: Int32FromInt32(90) * Int32FromInt32(86400), + 4: Int32FromInt32(120) * Int32FromInt32(86400), + 5: Int32FromInt32(151) * Int32FromInt32(86400), + 6: Int32FromInt32(181) * Int32FromInt32(86400), + 7: Int32FromInt32(212) * Int32FromInt32(86400), + 8: Int32FromInt32(243) * Int32FromInt32(86400), + 9: Int32FromInt32(273) * Int32FromInt32(86400), + 10: Int32FromInt32(304) * Int32FromInt32(86400), + 11: Int32FromInt32(334) * Int32FromInt32(86400), +} + +const DAYS_PER_100Y = 36524 +const DAYS_PER_400Y = 146097 +const DAYS_PER_4Y = 1461 +const LEAPOCH = 951868800 + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +/* 2000-03-01 (mod 400 year, immediately after feb29 */ + +func X__secs_to_tm(tls *TLS, t int64, tm uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v t=%v tm=%v, (%v:)", tls, t, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + var c_cycles, leap, months, q_cycles, qc_cycles, remdays, remsecs, remyears, wday, yday int32 + var days, secs, years int64 + _, _, _, _, _, _, _, _, _, _, _, _, _ = c_cycles, days, leap, months, q_cycles, qc_cycles, remdays, remsecs, remyears, secs, wday, yday, years + /* Reject time_t values whose year would overflow int */ + if t < int64(-Int32FromInt32(1)-Int32FromInt32(0x7fffffff))*Int64FromInt64(31622400) || t > Int64FromInt32(INT_MAX)*Int64FromInt64(31622400) { + return -int32(1) + } + secs = t - (Int64FromInt64(946684800) + int64(Int32FromInt32(86400)*(Int32FromInt32(31)+Int32FromInt32(29)))) + days = secs / int64(86400) + remsecs = int32(secs % int64(86400)) + if remsecs < 0 { + remsecs = remsecs + int32(86400) + days = days - 1 + } + wday = int32((int64(3) + days) % int64(7)) + if wday < 0 { + wday = wday + int32(7) + } + qc_cycles = int32(days / int64(Int32FromInt32(365)*Int32FromInt32(400)+Int32FromInt32(97))) + remdays = int32(days % int64(Int32FromInt32(365)*Int32FromInt32(400)+Int32FromInt32(97))) + if remdays < 0 { + remdays = remdays + (Int32FromInt32(365)*Int32FromInt32(400) + Int32FromInt32(97)) + qc_cycles = qc_cycles - 1 + } + c_cycles = remdays / (Int32FromInt32(365)*Int32FromInt32(100) + Int32FromInt32(24)) + if c_cycles == int32(4) { + c_cycles = c_cycles - 1 + } + remdays = remdays - c_cycles*(Int32FromInt32(365)*Int32FromInt32(100)+Int32FromInt32(24)) + q_cycles = remdays / (Int32FromInt32(365)*Int32FromInt32(4) + Int32FromInt32(1)) + if q_cycles == int32(25) { + q_cycles = q_cycles - 1 + } + remdays = remdays - q_cycles*(Int32FromInt32(365)*Int32FromInt32(4)+Int32FromInt32(1)) + remyears = remdays / int32(365) + if remyears == int32(4) { + remyears = remyears - 1 + } + remdays = remdays - remyears*int32(365) + leap = BoolInt32(!(remyears != 0) && (q_cycles != 0 || !(c_cycles != 0))) + yday = remdays + int32(31) + int32(28) + leap + if yday >= int32(365)+leap { + yday = yday - (int32(365) + leap) + } + years = int64(remyears+int32(4)*q_cycles+int32(100)*c_cycles) + int64(400)*int64(qc_cycles) + months = 0 + for { + if !(Int32FromUint8(_days_in_month[months]) <= remdays) { + break + } + remdays = remdays - Int32FromUint8(_days_in_month[months]) + goto _1 + _1: + ; + months = months + 1 + } + if months >= int32(10) { + months = months - int32(12) + years = years + 1 + } + if years+int64(100) > int64(INT_MAX) || years+int64(100) < int64(-Int32FromInt32(1)-Int32FromInt32(0x7fffffff)) { + return -int32(1) + } + (*Ttm)(unsafe.Pointer(tm)).Ftm_year = int32(years + int64(100)) + (*Ttm)(unsafe.Pointer(tm)).Ftm_mon = months + int32(2) + (*Ttm)(unsafe.Pointer(tm)).Ftm_mday = remdays + int32(1) + (*Ttm)(unsafe.Pointer(tm)).Ftm_wday = wday + (*Ttm)(unsafe.Pointer(tm)).Ftm_yday = yday + (*Ttm)(unsafe.Pointer(tm)).Ftm_hour = remsecs / int32(3600) + (*Ttm)(unsafe.Pointer(tm)).Ftm_min = remsecs / int32(60) % int32(60) + (*Ttm)(unsafe.Pointer(tm)).Ftm_sec = remsecs % int32(60) + return 0 +} + +var _days_in_month = [12]uint8{ + 0: uint8(31), + 1: uint8(30), + 2: uint8(31), + 3: uint8(30), + 4: uint8(31), + 5: uint8(31), + 6: uint8(30), + 7: uint8(31), + 8: uint8(30), + 9: uint8(31), + 10: uint8(31), + 11: uint8(29), +} + +func X__tm_to_secs(tls *TLS, tm uintptr) (r int64) { + if __ccgo_strace { + trc("tls=%v tm=%v, (%v:)", tls, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var adj, month int32 + var t, year int64 + var _ /* is_leap at bp+0 */ int32 + _, _, _, _ = adj, month, t, year + year = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_year) + month = (*Ttm)(unsafe.Pointer(tm)).Ftm_mon + if month >= int32(12) || month < 0 { + adj = month / int32(12) + month = month % int32(12) + if month < 0 { + adj = adj - 1 + month = month + int32(12) + } + year = year + int64(adj) + } + t = X__year_to_secs(tls, year, bp) + t = t + int64(X__month_to_secs(tls, month, **(**int32)(__ccgo_up(bp)))) + t = t + int64(86400)*int64((*Ttm)(unsafe.Pointer(tm)).Ftm_mday-Int32FromInt32(1)) + t = t + int64(3600)*int64((*Ttm)(unsafe.Pointer(tm)).Ftm_hour) + t = t + int64(60)*int64((*Ttm)(unsafe.Pointer(tm)).Ftm_min) + t = t + int64((*Ttm)(unsafe.Pointer(tm)).Ftm_sec) + return t +} + +var _std_name [7]uint8 +var _dst_name [7]uint8 + +var _dst_off int32 +var _r0 [5]int32 +var _r12 [5]int32 + +var _zi uintptr +var _trans uintptr +var _index uintptr +var _types uintptr +var _abbrevs uintptr +var _abbrevs_end uintptr +var _map_size Tsize_t + +var _old_tz_buf [32]uint8 +var _old_tz = uintptr(unsafe.Pointer(&_old_tz_buf)) +var _old_tz_size = uint32(32) + +var _lock4 [1]int32 + +func _getint2(tls *TLS, p uintptr) (r int32) { + var x uint32 + _ = x + x = uint32(0) + for { + if !(Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(p)))))-int32('0')) < uint32(10)) { + break + } + x = Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(p)))))-int32('0')) + uint32(10)*x + goto _1 + _1: + ; + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + } + return Int32FromUint32(x) +} + +func _getoff(tls *TLS, p uintptr) (r int32) { + var neg, off, v1 int32 + _, _, _ = neg, off, v1 + neg = 0 + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(p))))) == int32('-') { + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + neg = int32(1) + } else { + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(p))))) == int32('+') { + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + } + } + off = int32(3600) * _getint2(tls, p) + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(p))))) == int32(':') { + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + off = off + int32(60)*_getint2(tls, p) + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(p))))) == int32(':') { + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + off = off + _getint2(tls, p) + } + } + if neg != 0 { + v1 = -off + } else { + v1 = off + } + return v1 +} + +func _getrule(tls *TLS, p uintptr, rule uintptr) { + var r, v1 int32 + _, _ = r, v1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(p))))) + **(**int32)(__ccgo_up(rule)) = v1 + r = v1 + if r != int32('M') { + if r == int32('J') { + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + } else { + **(**int32)(__ccgo_up(rule)) = 0 + } + **(**int32)(__ccgo_up(rule + 1*4)) = _getint2(tls, p) + } else { + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + **(**int32)(__ccgo_up(rule + 1*4)) = _getint2(tls, p) + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + **(**int32)(__ccgo_up(rule + 2*4)) = _getint2(tls, p) + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + **(**int32)(__ccgo_up(rule + 3*4)) = _getint2(tls, p) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(p))))) == int32('/') { + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + **(**int32)(__ccgo_up(rule + 4*4)) = _getoff(tls, p) + } else { + **(**int32)(__ccgo_up(rule + 4*4)) = int32(7200) + } +} + +func _getname(tls *TLS, d uintptr, p uintptr) { + var i, v3 int32 + _, _ = i, v3 + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(p))))) == int32('<') { + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + i = 0 + for { + if !(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(p)) + uintptr(i))) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(p)) + uintptr(i)))) != int32('>')) { + break + } + if i < int32(TZNAME_MAX) { + **(**uint8)(__ccgo_up(d + uintptr(i))) = **(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(p)) + uintptr(i))) + } + goto _1 + _1: + ; + i = i + 1 + } + if **(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(p)) + uintptr(i))) != 0 { + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + } + } else { + i = 0 + for { + if !(Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(p)) + uintptr(i))))|int32(32)-int32('a')) < uint32(26)) { + break + } + if i < int32(TZNAME_MAX) { + **(**uint8)(__ccgo_up(d + uintptr(i))) = **(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(p)) + uintptr(i))) + } + goto _2 + _2: + ; + i = i + 1 + } + } + **(**uintptr)(__ccgo_up(p)) += uintptr(i) + if i < int32(TZNAME_MAX) { + v3 = i + } else { + v3 = int32(TZNAME_MAX) + } + **(**uint8)(__ccgo_up(d + uintptr(v3))) = uint8(0) +} + +func _zi_read32(tls *TLS, z uintptr) (r Tuint32_t) { + return uint32(**(**uint8)(__ccgo_up(z)))< Uint32FromInt32(Int32FromInt32(PATH_MAX)+Int32FromInt32(1)) { + **(**uintptr)(__ccgo_up(bp + 288)) = uintptr(unsafe.Pointer(&X__utc)) + i = Uint32FromInt32(3) + } + if i >= _old_tz_size { + _old_tz_size = _old_tz_size * uint32(2) + if i >= _old_tz_size { + _old_tz_size = i + uint32(1) + } + if _old_tz_size > Uint32FromInt32(Int32FromInt32(PATH_MAX)+Int32FromInt32(2)) { + _old_tz_size = Uint32FromInt32(Int32FromInt32(PATH_MAX) + Int32FromInt32(2)) + } + _old_tz = Xmalloc(tls, _old_tz_size) + } + if _old_tz != 0 { + _memcpy(tls, _old_tz, **(**uintptr)(__ccgo_up(bp + 288)), i+uint32(1)) + } + posix_form = 0 + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 288))))) != int32(':') { + **(**uintptr)(__ccgo_up(bp + 292)) = **(**uintptr)(__ccgo_up(bp + 288)) + _getname(tls, bp+301, bp+292) + if **(**uintptr)(__ccgo_up(bp + 292)) != **(**uintptr)(__ccgo_up(bp + 288)) && (Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 292))))) == int32('+') || Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 292))))) == int32('-') || BoolInt32(uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 292)))))-uint32('0') < uint32(10)) != 0 || !(Xstrcmp(tls, bp+301, __ccgo_ts+1588) != 0) || !(Xstrcmp(tls, bp+301, __ccgo_ts+1592) != 0)) { + posix_form = int32(1) + } + } + /* Non-suid can use an absolute tzfile pathname or a relative + * pathame beginning with "."; in secure mode, only the + * standard path will be searched. */ + if !(posix_form != 0) { + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 288))))) == int32(':') { + **(**uintptr)(__ccgo_up(bp + 288)) = **(**uintptr)(__ccgo_up(bp + 288)) + 1 + } + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 288))))) == int32('/') || Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 288))))) == int32('.') { + if !(X__libc.Fsecure != 0) || !(Xstrcmp(tls, **(**uintptr)(__ccgo_up(bp + 288)), __ccgo_ts+1573) != 0) { + map1 = X__map_file(tls, **(**uintptr)(__ccgo_up(bp + 288)), uintptr(unsafe.Pointer(&_map_size))) + } + } else { + l = _strlen(tls, **(**uintptr)(__ccgo_up(bp + 288))) + if l <= uint32(NAME_MAX) && !(Xstrchr(tls, **(**uintptr)(__ccgo_up(bp + 288)), int32('.')) != 0) { + _memcpy(tls, pathname, **(**uintptr)(__ccgo_up(bp + 288)), l+uint32(1)) + **(**uint8)(__ccgo_up(pathname + uintptr(l))) = uint8(0) + try = uintptr(unsafe.Pointer(&_search)) + for { + if !(!(map1 != 0) && **(**uint8)(__ccgo_up(try)) != 0) { + break + } + l = _strlen(tls, try) + _memcpy(tls, pathname-uintptr(l), try, l) + map1 = X__map_file(tls, pathname-uintptr(l), uintptr(unsafe.Pointer(&_map_size))) + goto _3 + _3: + ; + try = try + uintptr(l+uint32(1)) + } + } + } + if !(map1 != 0) { + **(**uintptr)(__ccgo_up(bp + 288)) = uintptr(unsafe.Pointer(&X__utc)) + } + } + if map1 != 0 && (_map_size < uint32(44) || Xmemcmp(tls, map1, __ccgo_ts+1596, uint32(4)) != 0) { + X__munmap(tls, map1, _map_size) + map1 = uintptr(0) + **(**uintptr)(__ccgo_up(bp + 288)) = uintptr(unsafe.Pointer(&X__utc)) + } + _zi = map1 + if map1 != 0 { + scale = int32(2) + if Int32FromUint8(**(**uint8)(__ccgo_up(map1 + 4))) != int32('1') { + *(*[6]uint8)(unsafe.Pointer(bp)) = [6]uint8{ + 0: uint8(1), + 1: uint8(1), + 2: uint8(8), + 3: uint8(5), + 4: uint8(6), + 5: uint8(1), + } + skip = _zi_dotprod(tls, _zi+uintptr(20), bp, uint32(6)) + _trans = _zi + uintptr(skip) + uintptr(44) + uintptr(44) + scale = scale + 1 + } else { + _trans = _zi + uintptr(44) + } + _index = _trans + uintptr(_zi_read32(tls, _trans-uintptr(12))<> scale) + if !(n != 0) { + if alt != 0 { + **(**Tsize_t)(__ccgo_up(alt)) = uint32(0) + } + return uint32(0) + } + /* Binary search for 'most-recent rule before t'. */ + for n > uint32(1) { + m = a + n/uint32(2) + x = uint64(_zi_read32(tls, _trans+uintptr(m<> scale) + if a == n-uint32(1) { + return Uint32FromInt32(-Int32FromInt32(1)) + } + if a == uint32(0) { + x = uint64(_zi_read32(tls, _trans)) + if scale == int32(3) { + x = x<>(m-int32(1))&int32(1) + } + return r +} + +/* Convert a POSIX DST rule plus year to seconds since epoch. */ + +func _rule_to_secs(tls *TLS, rule uintptr, year int32) (r int64) { + bp := tls.Alloc(16) + defer tls.Free(16) + var d, days, m, n, wday, x int32 + var t int64 + var _ /* is_leap at bp+0 */ int32 + _, _, _, _, _, _, _ = d, days, m, n, t, wday, x + t = X__year_to_secs(tls, int64(year), bp) + if **(**int32)(__ccgo_up(rule)) != int32('M') { + x = **(**int32)(__ccgo_up(rule + 1*4)) + if **(**int32)(__ccgo_up(rule)) == int32('J') && (x < int32(60) || !(**(**int32)(__ccgo_up(bp)) != 0)) { + x = x - 1 + } + t = t + int64(int32(86400)*x) + } else { + m = **(**int32)(__ccgo_up(rule + 1*4)) + n = **(**int32)(__ccgo_up(rule + 2*4)) + d = **(**int32)(__ccgo_up(rule + 3*4)) + t = t + int64(X__month_to_secs(tls, m-int32(1), **(**int32)(__ccgo_up(bp)))) + wday = int32((t+int64(Int32FromInt32(4)*Int32FromInt32(86400)))%int64(Int32FromInt32(7)*Int32FromInt32(86400))) / int32(86400) + days = d - wday + if days < 0 { + days = days + int32(7) + } + if n == int32(5) && days+int32(28) >= _days_in_month1(tls, m, **(**int32)(__ccgo_up(bp))) { + n = int32(4) + } + t = t + int64(int32(86400)*(days+int32(7)*(n-int32(1)))) + } + t = t + int64(**(**int32)(__ccgo_up(rule + 4*4))) + return t +} + +/* Determine the time zone in effect for a given time in seconds since the + * epoch. It can be given in local or universal time. The results will + * indicate whether DST is in effect at the queried time, and will give both + * the GMT offset for the active zone/DST rule and the opposite DST. This + * enables a caller to efficiently adjust for the case where an explicit + * DST specification mismatches what would be in effect at the time. */ + +func X__secs_to_zone(tls *TLS, t int64, local int32, isdst uintptr, offset uintptr, oppoff uintptr, zonename uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v local=%v isdst=%v offset=%v oppoff=%v zonename=%v, (%v:)", tls, t, local, isdst, offset, oppoff, zonename, origin(2)) + } + bp := tls.Alloc(16) + defer tls.Free(16) + var i Tsize_t + var t0, t1, y int64 + var _ /* alt at bp+0 */ Tsize_t + _, _, _, _ = i, t0, t1, y + ___lock(tls, uintptr(unsafe.Pointer(&_lock4))) + _do_tzset(tls) + if _zi != 0 { + i = _scan_trans(tls, t, local, bp) + if i != Uint32FromInt32(-Int32FromInt32(1)) { + **(**int32)(__ccgo_up(isdst)) = Int32FromUint8(**(**uint8)(__ccgo_up(_types + uintptr(uint32(6)*i+uint32(4))))) + **(**int32)(__ccgo_up(offset)) = int32(Int32FromUint32(_zi_read32(tls, _types+uintptr(uint32(6)*i)))) + **(**uintptr)(__ccgo_up(zonename)) = _abbrevs + uintptr(**(**uint8)(__ccgo_up(_types + uintptr(uint32(6)*i+uint32(5))))) + if oppoff != 0 { + **(**int32)(__ccgo_up(oppoff)) = int32(Int32FromUint32(_zi_read32(tls, _types+uintptr(uint32(6)***(**Tsize_t)(__ccgo_up(bp)))))) + } + ___unlock(tls, uintptr(unsafe.Pointer(&_lock4))) + return + } + } + if !(Xdaylight != 0) { + goto std + } + /* FIXME: may be broken if DST changes right at year boundary? + * Also, this could be more efficient.*/ + y = t/int64(31556952) + int64(70) + for X__year_to_secs(tls, y, uintptr(0)) > t { + y = y - 1 + } + for X__year_to_secs(tls, y+int64(1), uintptr(0)) < t { + y = y + 1 + } + t0 = _rule_to_secs(tls, uintptr(unsafe.Pointer(&_r0)), int32(y)) + t1 = _rule_to_secs(tls, uintptr(unsafe.Pointer(&_r12)), int32(y)) + if !(local != 0) { + t0 = t0 + int64(Xtimezone) + t1 = t1 + int64(_dst_off) + } + if t0 < t1 { + if t >= t0 && t < t1 { + goto dst + } + goto std + } else { + if t >= t1 && t < t0 { + goto std + } + goto dst + } + goto std +std: + ; + **(**int32)(__ccgo_up(isdst)) = 0 + **(**int32)(__ccgo_up(offset)) = -Xtimezone + if oppoff != 0 { + **(**int32)(__ccgo_up(oppoff)) = -_dst_off + } + **(**uintptr)(__ccgo_up(zonename)) = Xtzname[0] + ___unlock(tls, uintptr(unsafe.Pointer(&_lock4))) + return + goto dst +dst: + ; + **(**int32)(__ccgo_up(isdst)) = int32(1) + **(**int32)(__ccgo_up(offset)) = -_dst_off + if oppoff != 0 { + **(**int32)(__ccgo_up(oppoff)) = -Xtimezone + } + **(**uintptr)(__ccgo_up(zonename)) = Xtzname[int32(1)] + ___unlock(tls, uintptr(unsafe.Pointer(&_lock4))) +} + +func ___tzset(tls *TLS) { + ___lock(tls, uintptr(unsafe.Pointer(&_lock4))) + _do_tzset(tls) + ___unlock(tls, uintptr(unsafe.Pointer(&_lock4))) +} + +func X__tm_to_tzname(tls *TLS, tm uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v tm=%v, (%v:)", tls, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + var p uintptr + _ = p + p = (*Ttm)(unsafe.Pointer(tm)).F__tm_zone + ___lock(tls, uintptr(unsafe.Pointer(&_lock4))) + _do_tzset(tls) + if p != uintptr(unsafe.Pointer(&X__utc)) && p != Xtzname[0] && p != Xtzname[int32(1)] && (!(_zi != 0) || uint32(p)-uint32(_abbrevs) >= Uint32FromInt32(int32(_abbrevs_end)-int32(_abbrevs))) { + p = __ccgo_ts + } + ___unlock(tls, uintptr(unsafe.Pointer(&_lock4))) + return p +} + +func X__year_to_secs(tls *TLS, year int64, is_leap uintptr) (r int64) { + if __ccgo_strace { + trc("tls=%v year=%v is_leap=%v, (%v:)", tls, year, is_leap, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var centuries, cycles, leaps, leaps1, rem, y int32 + var _ /* dummy at bp+0 */ int32 + _, _, _, _, _, _ = centuries, cycles, leaps, leaps1, rem, y + if Uint64FromInt64(year)-uint64(2) <= uint64(136) { + y = int32(year) + leaps = (y - int32(68)) >> int32(2) + if !((y-Int32FromInt32(68))&Int32FromInt32(3) != 0) { + leaps = leaps - 1 + if is_leap != 0 { + **(**int32)(__ccgo_up(is_leap)) = int32(1) + } + } else { + if is_leap != 0 { + **(**int32)(__ccgo_up(is_leap)) = 0 + } + } + return int64(int32(31536000)*(y-int32(70)) + int32(86400)*leaps) + } + if !(is_leap != 0) { + is_leap = bp + } + cycles = int32((year - int64(100)) / int64(400)) + rem = int32((year - int64(100)) % int64(400)) + if rem < 0 { + cycles = cycles - 1 + rem = rem + int32(400) + } + if !(rem != 0) { + **(**int32)(__ccgo_up(is_leap)) = int32(1) + centuries = 0 + leaps1 = 0 + } else { + if rem >= int32(200) { + if rem >= int32(300) { + centuries = int32(3) + rem = rem - int32(300) + } else { + centuries = int32(2) + rem = rem - int32(200) + } + } else { + if rem >= int32(100) { + centuries = int32(1) + rem = rem - int32(100) + } else { + centuries = 0 + } + } + if !(rem != 0) { + **(**int32)(__ccgo_up(is_leap)) = 0 + leaps1 = 0 + } else { + leaps1 = Int32FromUint32(Uint32FromInt32(rem) / uint32(4)) + rem = Int32FromUint32(uint32(rem) % Uint32FromUint32(4)) + **(**int32)(__ccgo_up(is_leap)) = BoolInt32(!(rem != 0)) + } + } + leaps1 = leaps1 + (int32(97)*cycles + int32(24)*centuries - **(**int32)(__ccgo_up(is_leap))) + return (year-int64(100))*int64(31536000) + int64(leaps1)*int64(86400) + int64(946684800) + int64(86400) +} + +func Xasctime(tls *TLS, tm uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v tm=%v, (%v:)", tls, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__asctime_r(tls, tm, uintptr(unsafe.Pointer(&_buf9))) +} + +var _buf9 [26]uint8 + +func X__asctime_r(tls *TLS, tm uintptr, buf uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v tm=%v buf=%v, (%v:)", tls, tm, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + if Xsnprintf(tls, buf, uint32(26), __ccgo_ts+1601, VaList(bp+8, X__nl_langinfo_l(tls, int32(ABDAY_1)+(*Ttm)(unsafe.Pointer(tm)).Ftm_wday, uintptr(unsafe.Pointer(&X__c_locale))), X__nl_langinfo_l(tls, int32(ABMON_1)+(*Ttm)(unsafe.Pointer(tm)).Ftm_mon, uintptr(unsafe.Pointer(&X__c_locale))), (*Ttm)(unsafe.Pointer(tm)).Ftm_mday, (*Ttm)(unsafe.Pointer(tm)).Ftm_hour, (*Ttm)(unsafe.Pointer(tm)).Ftm_min, (*Ttm)(unsafe.Pointer(tm)).Ftm_sec, int32(1900)+(*Ttm)(unsafe.Pointer(tm)).Ftm_year)) >= int32(26) { + /* ISO C requires us to use the above format string, + * even if it will not fit in the buffer. Thus asctime_r + * is _supposed_ to crash if the fields in tm are too large. + * We follow this behavior and crash "gracefully" to warn + * application developers that they may not be so lucky + * on other implementations (e.g. stack smashing..). + */ + _a_crash(tls) + } + return buf +} + +func Xasctime_r(tls *TLS, tm uintptr, buf uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v tm=%v buf=%v, (%v:)", tls, tm, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__asctime_r(tls, tm, buf) +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xclock(tls *TLS) (r Tclock_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* ts at bp+0 */ Ttimespec + if X__clock_gettime(tls, int32(CLOCK_PROCESS_CPUTIME_ID), bp) != 0 { + return -int32(1) + } + if (**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec > int64(Int32FromInt32(0x7fffffff)/Int32FromInt32(1000000)) || int64((**(**Ttimespec)(__ccgo_up(bp))).Ftv_nsec/int32(1000)) > int64(0x7fffffff)-int64(1000000)*(**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec { + return -int32(1) + } + return int32((**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec*int64(1000000) + int64((**(**Ttimespec)(__ccgo_up(bp))).Ftv_nsec/int32(1000))) +} + +func Xclock_getcpuclockid(tls *TLS, pid Tpid_t, clk uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v pid=%v clk=%v, (%v:)", tls, pid, clk, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var id Tclockid_t + var ret int32 + var _ /* ts at bp+0 */ Ttimespec + _, _ = id, ret + id = Int32FromUint32(Uint32FromInt32(-pid-Int32FromInt32(1))*uint32(8) + uint32(2)) + ret = int32(X__syscall2(tls, int32(SYS_clock_getres_time32), id, int32(bp))) + if ret == -int32(EINVAL) { + ret = -int32(ESRCH) + } + if ret != 0 { + return -ret + } + **(**Tclockid_t)(__ccgo_up(clk)) = id + return 0 +} + +func Xclock_getres(tls *TLS, clk Tclockid_t, ts uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v clk=%v ts=%v, (%v:)", tls, clk, ts, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var r int32 + var _ /* ts32 at bp+0 */ [2]int32 + _ = r + /* On a 32-bit arch, use the old syscall if it exists. */ + if int32(SYS_clock_getres_time32) != int32(SYS_clock_getres_time64) { + r = int32(X__syscall2(tls, int32(SYS_clock_getres_time32), clk, int32(bp))) + if !(r != 0) && ts != 0 { + (*Ttimespec)(unsafe.Pointer(ts)).Ftv_sec = int64((**(**[2]int32)(__ccgo_up(bp)))[0]) + (*Ttimespec)(unsafe.Pointer(ts)).Ftv_nsec = (**(**[2]int32)(__ccgo_up(bp)))[int32(1)] + } + return X__syscall_ret(tls, Uint32FromInt32(r)) + } + /* If reaching this point, it's a 64-bit arch or time64-only + * 32-bit arch and we can get result directly into timespec. */ + return X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_clock_getres_time32), clk, int32(ts)))) +} + +func X__clock_gettime(tls *TLS, clk Tclockid_t, ts uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v clk=%v ts=%v, (%v:)", tls, clk, ts, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var r int32 + var _ /* ts32 at bp+0 */ [2]int32 + _ = r + r = -int32(ENOSYS) + if uint32(8) > uint32(4) { + r = int32(X__syscall2(tls, int32(SYS_clock_gettime64), clk, int32(ts))) + } + if Bool(false) || r != -int32(ENOSYS) { + return X__syscall_ret(tls, Uint32FromInt32(r)) + } + r = int32(X__syscall2(tls, int32(SYS_clock_gettime32), clk, int32(bp))) + if r == -int32(ENOSYS) && clk == CLOCK_REALTIME { + r = int32(X__syscall2(tls, int32(SYS_gettimeofday_time32), int32(bp), int32(Int32FromInt32(0)))) + **(**int32)(__ccgo_up(bp + 1*4)) *= int32(1000) + } + if !(r != 0) { + (*Ttimespec)(unsafe.Pointer(ts)).Ftv_sec = int64((**(**[2]int32)(__ccgo_up(bp)))[0]) + (*Ttimespec)(unsafe.Pointer(ts)).Ftv_nsec = (**(**[2]int32)(__ccgo_up(bp)))[int32(1)] + return r + } + return X__syscall_ret(tls, Uint32FromInt32(r)) +} + +func Xclock_gettime(tls *TLS, clk Tclockid_t, ts uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v clk=%v ts=%v, (%v:)", tls, clk, ts, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__clock_gettime(tls, clk, ts) +} + +func X__clock_nanosleep(tls *TLS, clk Tclockid_t, flags int32, req uintptr, rem uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v clk=%v flags=%v req=%v rem=%v, (%v:)", tls, clk, flags, req, rem, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var extra int64 + var ns, r int32 + var s Ttime_t + var v1, v2 uint64 + var _ /* ts32 at bp+16 */ [2]int32 + _, _, _, _, _, _ = extra, ns, r, s, v1, v2 + if clk == int32(CLOCK_THREAD_CPUTIME_ID) { + return int32(EINVAL) + } + s = (*Ttimespec)(unsafe.Pointer(req)).Ftv_sec + ns = (*Ttimespec)(unsafe.Pointer(req)).Ftv_nsec + r = -int32(ENOSYS) + if Bool(false) || !!((Uint64FromInt64(s)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) { + *(*[2]int64)(unsafe.Pointer(bp)) = [2]int64{ + 0: s, + 1: int64(ns), + } + r = int32(___syscall_cp(tls, int32(SYS_clock_nanosleep_time64), clk, flags, int32(bp), int32(rem), 0, 0)) + } + if Bool(false) || r != -int32(ENOSYS) { + return -r + } + if !((Uint64FromInt64(s)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) { + v1 = Uint64FromInt64(s) + } else { + v1 = uint64(0x7fffffff) + (0+Uint64FromInt64(s))>>int32(63) + } + extra = s - int64(Int32FromUint64(v1)) + if !((Uint64FromInt64(s)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) { + v2 = Uint64FromInt64(s) + } else { + v2 = uint64(0x7fffffff) + (0+Uint64FromInt64(s))>>int32(63) + } + **(**[2]int32)(__ccgo_up(bp + 16)) = [2]int32{ + 0: int32(Int32FromUint64(v2)), + 1: ns, + } + if clk == CLOCK_REALTIME && !(flags != 0) { + r = int32(___syscall_cp(tls, int32(SYS_nanosleep), int32(bp+16), int32(bp+16), 0, 0, 0, 0)) + } else { + r = int32(___syscall_cp(tls, int32(SYS_clock_nanosleep_time32), clk, flags, int32(bp+16), int32(bp+16), 0, 0)) + } + if r == -int32(EINTR) && rem != 0 && !(flags&Int32FromInt32(TIMER_ABSTIME) != 0) { + (*Ttimespec)(unsafe.Pointer(rem)).Ftv_sec = int64((**(**[2]int32)(__ccgo_up(bp + 16)))[0]) + extra + (*Ttimespec)(unsafe.Pointer(rem)).Ftv_nsec = (**(**[2]int32)(__ccgo_up(bp + 16)))[int32(1)] + } + return -r +} + +func Xclock_nanosleep(tls *TLS, clk Tclockid_t, flags int32, req uintptr, rem uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v clk=%v flags=%v req=%v rem=%v, (%v:)", tls, clk, flags, req, rem, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__clock_nanosleep(tls, clk, flags, req, rem) +} + +func Xclock_settime(tls *TLS, clk Tclockid_t, ts uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v clk=%v ts=%v, (%v:)", tls, clk, ts, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var ns, r int32 + var s Ttime_t + _, _, _ = ns, r, s + s = (*Ttimespec)(unsafe.Pointer(ts)).Ftv_sec + ns = (*Ttimespec)(unsafe.Pointer(ts)).Ftv_nsec + r = -int32(ENOSYS) + if Bool(false) || !!((Uint64FromInt64(s)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) { + *(*[2]int64)(unsafe.Pointer(bp)) = [2]int64{ + 0: s, + 1: int64(ns), + } + r = int32(X__syscall2(tls, int32(SYS_clock_settime64), clk, int32(bp))) + } + if Bool(false) || r != -int32(ENOSYS) { + return X__syscall_ret(tls, Uint32FromInt32(r)) + } + if !!((Uint64FromInt64(s)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) { + return X__syscall_ret(tls, Uint32FromInt32(-Int32FromInt32(EOPNOTSUPP))) + } + *(*[2]int32)(unsafe.Pointer(bp + 16)) = [2]int32{ + 0: int32(s), + 1: ns, + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_clock_settime32), clk, int32(bp+16)))) +} + +func Xctime(tls *TLS, t uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v, (%v:)", tls, t, origin(2)) + defer func() { trc("-> %v", r) }() + } + var tm uintptr + _ = tm + tm = Xlocaltime(tls, t) + if !(tm != 0) { + return uintptr(0) + } + return Xasctime(tls, tm) +} + +func Xctime_r(tls *TLS, t uintptr, buf uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v buf=%v, (%v:)", tls, t, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + var tm_p, v1 uintptr + var _ /* tm at bp+0 */ Ttm + _, _ = tm_p, v1 + tm_p = Xlocaltime_r(tls, t, bp) + if tm_p != 0 { + v1 = Xasctime_r(tls, tm_p, buf) + } else { + v1 = uintptr(0) + } + return v1 +} + +func Xdifftime(tls *TLS, t1 Ttime_t, t0 Ttime_t) (r float64) { + if __ccgo_strace { + trc("tls=%v t1=%v t0=%v, (%v:)", tls, t1, t0, origin(2)) + defer func() { trc("-> %v", r) }() + } + return float64(t1 - t0) +} + +type Ttimeb = struct { + F__ccgo_align [0]uint32 + Ftime Ttime_t + Fmillitm uint16 + Ftimezone int16 + Fdstflag int16 + F__ccgo_pad4 [2]byte +} + +func Xftime(tls *TLS, tp uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v tp=%v, (%v:)", tls, tp, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 int16 + var _ /* ts at bp+0 */ Ttimespec + _ = v1 + Xclock_gettime(tls, CLOCK_REALTIME, bp) + (*Ttimeb)(unsafe.Pointer(tp)).Ftime = (**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec + (*Ttimeb)(unsafe.Pointer(tp)).Fmillitm = Uint16FromInt32((**(**Ttimespec)(__ccgo_up(bp))).Ftv_nsec / int32(1000000)) + v1 = Int16FromInt32(0) + (*Ttimeb)(unsafe.Pointer(tp)).Fdstflag = v1 + (*Ttimeb)(unsafe.Pointer(tp)).Ftimezone = v1 + return 0 +} + +func Xgetdate(tls *TLS, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(112) + defer tls.Free(112) + var datemsk, f, p, ret uintptr + var _ /* cs at bp+100 */ int32 + var _ /* fmt at bp+0 */ [100]uint8 + _, _, _, _ = datemsk, f, p, ret + ret = uintptr(0) + datemsk = Xgetenv(tls, __ccgo_ts+1633) + f = uintptr(0) + _pthread_setcancelstate(tls, PTHREAD_CANCEL_DEFERRED, bp+100) + if !(datemsk != 0) { + Xgetdate_err = int32(1) + goto out + } + f = Xfopen(tls, datemsk, __ccgo_ts+315) + if !(f != 0) { + if **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(ENOMEM) { + Xgetdate_err = int32(6) + } else { + Xgetdate_err = int32(2) + } + goto out + } + for Xfgets(tls, bp, int32(100), f) != 0 { + p = Xstrptime(tls, s, bp, uintptr(unsafe.Pointer(&_tmbuf))) + if p != 0 && !(**(**uint8)(__ccgo_up(p)) != 0) { + ret = uintptr(unsafe.Pointer(&_tmbuf)) + goto out + } + } + if Xferror(tls, f) != 0 { + Xgetdate_err = int32(5) + } else { + Xgetdate_err = int32(7) + } + goto out +out: + ; + if f != 0 { + Xfclose(tls, f) + } + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 100)), uintptr(0)) + return ret +} + +var _tmbuf Ttm + +func Xgettimeofday(tls *TLS, tv uintptr, tz uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v tv=%v tz=%v, (%v:)", tls, tv, tz, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* ts at bp+0 */ Ttimespec + if !(tv != 0) { + return 0 + } + Xclock_gettime(tls, CLOCK_REALTIME, bp) + (*Ttimeval)(unsafe.Pointer(tv)).Ftv_sec = (**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec + (*Ttimeval)(unsafe.Pointer(tv)).Ftv_usec = int64(int32((**(**Ttimespec)(__ccgo_up(bp))).Ftv_nsec) / int32(1000)) + return 0 +} + +func Xgmtime(tls *TLS, t uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v, (%v:)", tls, t, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__gmtime_r(tls, t, uintptr(unsafe.Pointer(&_tm))) +} + +var _tm Ttm + +func X__gmtime_r(tls *TLS, t uintptr, tm uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v tm=%v, (%v:)", tls, t, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + if X__secs_to_tm(tls, **(**Ttime_t)(__ccgo_up(t)), tm) < 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOVERFLOW) + return uintptr(0) + } + (*Ttm)(unsafe.Pointer(tm)).Ftm_isdst = 0 + (*Ttm)(unsafe.Pointer(tm)).F__tm_gmtoff = 0 + (*Ttm)(unsafe.Pointer(tm)).F__tm_zone = uintptr(unsafe.Pointer(&X__utc)) + return tm +} + +func Xgmtime_r(tls *TLS, t uintptr, tm uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v tm=%v, (%v:)", tls, t, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__gmtime_r(tls, t, tm) +} + +func Xlocaltime(tls *TLS, t uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v, (%v:)", tls, t, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__localtime_r(tls, t, uintptr(unsafe.Pointer(&_tm1))) +} + +var _tm1 Ttm + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func X__localtime_r(tls *TLS, t uintptr, tm uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v tm=%v, (%v:)", tls, t, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + /* Reject time_t values whose year would overflow int because + * __secs_to_zone cannot safely handle them. */ + if **(**Ttime_t)(__ccgo_up(t)) < int64(-Int32FromInt32(1)-Int32FromInt32(0x7fffffff))*Int64FromInt64(31622400) || **(**Ttime_t)(__ccgo_up(t)) > Int64FromInt32(INT_MAX)*Int64FromInt64(31622400) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOVERFLOW) + return uintptr(0) + } + X__secs_to_zone(tls, **(**Ttime_t)(__ccgo_up(t)), 0, tm+32, tm+36, uintptr(0), tm+40) + if X__secs_to_tm(tls, **(**Ttime_t)(__ccgo_up(t))+int64((*Ttm)(unsafe.Pointer(tm)).F__tm_gmtoff), tm) < 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOVERFLOW) + return uintptr(0) + } + return tm +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xlocaltime_r(tls *TLS, t uintptr, tm uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v tm=%v, (%v:)", tls, t, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__localtime_r(tls, t, tm) +} + +func Xmktime(tls *TLS, tm uintptr) (r Ttime_t) { + if __ccgo_strace { + trc("tls=%v tm=%v, (%v:)", tls, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + var t int64 + var _ /* new at bp+0 */ Ttm + var _ /* opp at bp+44 */ int32 + _ = t + t = X__tm_to_secs(tls, tm) + X__secs_to_zone(tls, t, int32(1), bp+32, bp+36, bp+44, bp+40) + if (*Ttm)(unsafe.Pointer(tm)).Ftm_isdst >= 0 && (**(**Ttm)(__ccgo_up(bp))).Ftm_isdst != (*Ttm)(unsafe.Pointer(tm)).Ftm_isdst { + t = t - int64(**(**int32)(__ccgo_up(bp + 44))-(**(**Ttm)(__ccgo_up(bp))).F__tm_gmtoff) + } + t = t - int64((**(**Ttm)(__ccgo_up(bp))).F__tm_gmtoff) + if t != t { + goto error + } + X__secs_to_zone(tls, t, 0, bp+32, bp+36, bp+44, bp+40) + if X__secs_to_tm(tls, t+int64((**(**Ttm)(__ccgo_up(bp))).F__tm_gmtoff), bp) < 0 { + goto error + } + **(**Ttm)(__ccgo_up(tm)) = **(**Ttm)(__ccgo_up(bp)) + return t + goto error +error: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOVERFLOW) + return int64(-int32(1)) +} + +func Xnanosleep(tls *TLS, req uintptr, rem uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v req=%v rem=%v, (%v:)", tls, req, rem, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(-X__clock_nanosleep(tls, CLOCK_REALTIME, 0, req, rem))) +} + +func _is_leap(tls *TLS, y int32) (r int32) { + /* Avoid overflow */ + if y > Int32FromInt32(INT_MAX)-Int32FromInt32(1900) { + y = y - int32(2000) + } + y = y + int32(1900) + return BoolInt32(!(y%Int32FromInt32(4) != 0) && (y%int32(100) != 0 || !(y%Int32FromInt32(400) != 0))) +} + +func _week_num(tls *TLS, tm uintptr) (r int32) { + var dec31, jan1, val int32 + _, _, _ = dec31, jan1, val + val = Int32FromUint32((Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_yday) + uint32(7) - (Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_wday)+uint32(6))%uint32(7)) / uint32(7)) + /* If 1 Jan is just 1-3 days past Monday, + * the previous week is also in this year. */ + if (Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_wday)+uint32(371)-Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_yday)-uint32(2))%uint32(7) <= uint32(2) { + val = val + 1 + } + if !(val != 0) { + val = int32(52) + /* If 31 December of prev year a Thursday, + * or Friday of a leap year, then the + * prev year has 53 weeks. */ + dec31 = Int32FromUint32((Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_wday) + uint32(7) - Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_yday) - uint32(1)) % uint32(7)) + if dec31 == int32(4) || dec31 == int32(5) && _is_leap(tls, (*Ttm)(unsafe.Pointer(tm)).Ftm_year%int32(400)-int32(1)) != 0 { + val = val + 1 + } + } else { + if val == int32(53) { + /* If 1 January is not a Thursday, and not + * a Wednesday of a leap year, then this + * year has only 52 weeks. */ + jan1 = Int32FromUint32((Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_wday) + uint32(371) - Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_yday)) % uint32(7)) + if jan1 != int32(4) && (jan1 != int32(3) || !(_is_leap(tls, (*Ttm)(unsafe.Pointer(tm)).Ftm_year) != 0)) { + val = int32(1) + } + } + } + return val +} + +func X__strftime_fmt_1(tls *TLS, s uintptr, l uintptr, f int32, tm uintptr, loc Tlocale_t, pad int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v l=%v f=%v tm=%v loc=%v pad=%v, (%v:)", tls, s, l, f, tm, loc, pad, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var d, fmt, v4, v5 uintptr + var def_pad, width, v1 int32 + var item Tnl_item + var val int64 + _, _, _, _, _, _, _, _, _ = d, def_pad, fmt, item, val, width, v1, v4, v5 + fmt = __ccgo_ts + 1495 + width = int32(2) + def_pad = int32('0') + switch f { + case int32('a'): + if Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_wday) > uint32(6) { + goto string + } + item = int32(ABDAY_1) + (*Ttm)(unsafe.Pointer(tm)).Ftm_wday + goto nl_strcat + case int32('A'): + if Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_wday) > uint32(6) { + goto string + } + item = int32(DAY_1) + (*Ttm)(unsafe.Pointer(tm)).Ftm_wday + goto nl_strcat + case int32('h'): + fallthrough + case int32('b'): + if Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_mon) > uint32(11) { + goto string + } + item = int32(ABMON_1) + (*Ttm)(unsafe.Pointer(tm)).Ftm_mon + goto nl_strcat + case int32('B'): + if Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_mon) > uint32(11) { + goto string + } + item = int32(MON_1) + (*Ttm)(unsafe.Pointer(tm)).Ftm_mon + goto nl_strcat + case int32('c'): + item = int32(D_T_FMT) + goto nl_strftime + case int32('C'): + val = (int64(1900) + int64((*Ttm)(unsafe.Pointer(tm)).Ftm_year)) / int64(100) + goto number + case int32('e'): + def_pad = int32('_') + fallthrough + case int32('d'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_mday) + goto number + case int32('D'): + fmt = __ccgo_ts + 1641 + goto recu_strftime + case int32('F'): + fmt = __ccgo_ts + 1650 + goto recu_strftime + case int32('g'): + fallthrough + case int32('G'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_year) + int64(1900) + if (*Ttm)(unsafe.Pointer(tm)).Ftm_yday < int32(3) && _week_num(tls, tm) != int32(1) { + val = val - 1 + } else { + if (*Ttm)(unsafe.Pointer(tm)).Ftm_yday > int32(360) && _week_num(tls, tm) == int32(1) { + val = val + 1 + } + } + if f == int32('g') { + val = val % int64(100) + } else { + width = int32(4) + } + goto number + case int32('H'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_hour) + goto number + case int32('l'): + def_pad = int32('_') + fallthrough + case int32('I'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_hour) + if !(val != 0) { + val = int64(12) + } else { + if val > int64(12) { + val = val - int64(12) + } + } + goto number + case int32('j'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_yday + int32(1)) + width = int32(3) + goto number + case int32('k'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_hour) + def_pad = int32('_') + goto number + case int32('m'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_mon + int32(1)) + goto number + case int32('M'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_min) + goto number + case int32('n'): + **(**Tsize_t)(__ccgo_up(l)) = uint32(1) + return __ccgo_ts + 301 + case int32('p'): + if (*Ttm)(unsafe.Pointer(tm)).Ftm_hour >= int32(12) { + v1 = int32(PM_STR) + } else { + v1 = int32(AM_STR) + } + item = v1 + goto nl_strcat + case int32('P'): + if (*Ttm)(unsafe.Pointer(tm)).Ftm_hour >= int32(12) { + v1 = int32(PM_STR) + } else { + v1 = int32(AM_STR) + } + item = v1 + fmt = X__nl_langinfo_l(tls, item, loc) + d = s + **(**Tsize_t)(__ccgo_up(l)) = uint32(0) + for { + if !(**(**uint8)(__ccgo_up(fmt)) != 0) { + break + } + v4 = d + d = d + 1 + v5 = fmt + fmt = fmt + 1 + **(**uint8)(__ccgo_up(v4)) = Uint8FromInt32(Xtolower(tls, Int32FromUint8(**(**uint8)(__ccgo_up(v5))))) + goto _3 + _3: + ; + **(**Tsize_t)(__ccgo_up(l)) = **(**Tsize_t)(__ccgo_up(l)) + 1 + } + return s + case int32('r'): + item = int32(T_FMT_AMPM) + goto nl_strftime + case int32('R'): + fmt = __ccgo_ts + 1659 + goto recu_strftime + case int32('s'): + val = X__tm_to_secs(tls, tm) - int64((*Ttm)(unsafe.Pointer(tm)).F__tm_gmtoff) + width = int32(1) + goto number + case int32('S'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_sec) + goto number + case int32('t'): + **(**Tsize_t)(__ccgo_up(l)) = uint32(1) + return __ccgo_ts + 1315 + case int32('T'): + fmt = __ccgo_ts + 1665 + goto recu_strftime + case int32('u'): + if (*Ttm)(unsafe.Pointer(tm)).Ftm_wday != 0 { + v1 = (*Ttm)(unsafe.Pointer(tm)).Ftm_wday + } else { + v1 = int32(7) + } + val = int64(v1) + width = int32(1) + goto number + case int32('U'): + val = Int64FromUint32((Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_yday) + uint32(7) - Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_wday)) / uint32(7)) + goto number + case int32('W'): + val = Int64FromUint32((Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_yday) + uint32(7) - (Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_wday)+uint32(6))%uint32(7)) / uint32(7)) + goto number + case int32('V'): + val = int64(_week_num(tls, tm)) + goto number + case int32('w'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_wday) + width = int32(1) + goto number + case int32('x'): + item = int32(D_FMT) + goto nl_strftime + case int32('X'): + item = int32(T_FMT) + goto nl_strftime + case int32('y'): + val = (int64((*Ttm)(unsafe.Pointer(tm)).Ftm_year) + int64(1900)) % int64(100) + if val < 0 { + val = -val + } + goto number + case int32('Y'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_year) + int64(1900) + if val >= int64(10000) { + **(**Tsize_t)(__ccgo_up(l)) = Uint32FromInt32(Xsnprintf(tls, s, uint32(100), __ccgo_ts+1674, VaList(bp+8, val))) + return s + } + width = int32(4) + goto number + case int32('z'): + if (*Ttm)(unsafe.Pointer(tm)).Ftm_isdst < 0 { + **(**Tsize_t)(__ccgo_up(l)) = uint32(0) + return __ccgo_ts + } + **(**Tsize_t)(__ccgo_up(l)) = Uint32FromInt32(Xsnprintf(tls, s, uint32(100), __ccgo_ts+1680, VaList(bp+8, (*Ttm)(unsafe.Pointer(tm)).F__tm_gmtoff/int32(3600)*int32(100)+(*Ttm)(unsafe.Pointer(tm)).F__tm_gmtoff%int32(3600)/int32(60)))) + return s + case int32('Z'): + if (*Ttm)(unsafe.Pointer(tm)).Ftm_isdst < 0 { + **(**Tsize_t)(__ccgo_up(l)) = uint32(0) + return __ccgo_ts + } + fmt = X__tm_to_tzname(tls, tm) + goto string + case int32('%'): + **(**Tsize_t)(__ccgo_up(l)) = uint32(1) + return __ccgo_ts + 348 + default: + return uintptr(0) + } + goto number +number: + ; + if pad != 0 { + v1 = pad + } else { + v1 = def_pad + } + switch v1 { + case int32('-'): + **(**Tsize_t)(__ccgo_up(l)) = Uint32FromInt32(Xsnprintf(tls, s, uint32(100), __ccgo_ts+1687, VaList(bp+8, val))) + case int32('_'): + **(**Tsize_t)(__ccgo_up(l)) = Uint32FromInt32(Xsnprintf(tls, s, uint32(100), __ccgo_ts+1692, VaList(bp+8, width, val))) + case int32('0'): + fallthrough + default: + **(**Tsize_t)(__ccgo_up(l)) = Uint32FromInt32(Xsnprintf(tls, s, uint32(100), __ccgo_ts+1698, VaList(bp+8, width, val))) + break + } + return s + goto nl_strcat +nl_strcat: + ; + fmt = X__nl_langinfo_l(tls, item, loc) + goto string +string: + ; + **(**Tsize_t)(__ccgo_up(l)) = _strlen(tls, fmt) + return fmt + goto nl_strftime +nl_strftime: + ; + fmt = X__nl_langinfo_l(tls, item, loc) + goto recu_strftime +recu_strftime: + ; + **(**Tsize_t)(__ccgo_up(l)) = X__strftime_l(tls, s, uint32(100), fmt, tm, loc) + if !(**(**Tsize_t)(__ccgo_up(l)) != 0) { + return uintptr(0) + } + return s +} + +func X__strftime_l(tls *TLS, s uintptr, n Tsize_t, f uintptr, tm uintptr, loc Tlocale_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v f=%v tm=%v loc=%v, (%v:)", tls, s, n, f, tm, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(112) + defer tls.Free(112) + var d, l, v2 Tsize_t + var pad, plus, v4 int32 + var t, v3 uintptr + var width uint32 + var v9 bool + var _ /* buf at bp+4 */ [100]uint8 + var _ /* k at bp+0 */ Tsize_t + var _ /* p at bp+104 */ uintptr + _, _, _, _, _, _, _, _, _, _ = d, l, pad, plus, t, width, v2, v3, v4, v9 + l = uint32(0) + for { + if !(l < n) { + break + } + if !(**(**uint8)(__ccgo_up(f)) != 0) { + **(**uint8)(__ccgo_up(s + uintptr(l))) = uint8(0) + return l + } + if Int32FromUint8(**(**uint8)(__ccgo_up(f))) != int32('%') { + v2 = l + l = l + 1 + **(**uint8)(__ccgo_up(s + uintptr(v2))) = **(**uint8)(__ccgo_up(f)) + goto _1 + } + f = f + 1 + pad = 0 + if Int32FromUint8(**(**uint8)(__ccgo_up(f))) == int32('-') || Int32FromUint8(**(**uint8)(__ccgo_up(f))) == int32('_') || Int32FromUint8(**(**uint8)(__ccgo_up(f))) == int32('0') { + v3 = f + f = f + 1 + pad = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } + v4 = BoolInt32(Int32FromUint8(**(**uint8)(__ccgo_up(f))) == Int32FromUint8('+')) + plus = v4 + if v4 != 0 { + f = f + 1 + } + if BoolInt32(uint32(**(**uint8)(__ccgo_up(f)))-uint32('0') < uint32(10)) != 0 { + width = Xstrtoul(tls, f, bp+104, int32(10)) + } else { + width = uint32(0) + **(**uintptr)(__ccgo_up(bp + 104)) = f + } + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 104))))) == int32('C') || Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 104))))) == int32('F') || Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 104))))) == int32('G') || Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 104))))) == int32('Y') { + if !(width != 0) && **(**uintptr)(__ccgo_up(bp + 104)) != f { + width = uint32(1) + } + } else { + width = uint32(0) + } + f = **(**uintptr)(__ccgo_up(bp + 104)) + if Int32FromUint8(**(**uint8)(__ccgo_up(f))) == int32('E') || Int32FromUint8(**(**uint8)(__ccgo_up(f))) == int32('O') { + f = f + 1 + } + t = X__strftime_fmt_1(tls, bp+4, bp, Int32FromUint8(**(**uint8)(__ccgo_up(f))), tm, loc, pad) + if !(t != 0) { + break + } + if width != 0 { + /* Trim off any sign and leading zeros, then + * count remaining digits to determine behavior + * for the + flag. */ + if Int32FromUint8(**(**uint8)(__ccgo_up(t))) == int32('+') || Int32FromUint8(**(**uint8)(__ccgo_up(t))) == int32('-') { + t = t + 1 + **(**Tsize_t)(__ccgo_up(bp)) = **(**Tsize_t)(__ccgo_up(bp)) - 1 + } + for { + if !(Int32FromUint8(**(**uint8)(__ccgo_up(t))) == int32('0') && Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(t + 1)))-int32('0')) < uint32(10)) { + break + } + goto _5 + _5: + ; + t = t + 1 + **(**Tsize_t)(__ccgo_up(bp)) = **(**Tsize_t)(__ccgo_up(bp)) - 1 + } + if width < uint32(**(**Tsize_t)(__ccgo_up(bp))) { + width = uint32(**(**Tsize_t)(__ccgo_up(bp))) + } + d = uint32(0) + for { + if !(Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(t + uintptr(d))))-int32('0')) < uint32(10)) { + break + } + goto _6 + _6: + ; + d = d + 1 + } + if (*Ttm)(unsafe.Pointer(tm)).Ftm_year < -int32(1900) { + v2 = l + l = l + 1 + **(**uint8)(__ccgo_up(s + uintptr(v2))) = uint8('-') + width = width - 1 + } else { + if v9 = plus != 0; v9 { + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 104))))) == int32('C') { + v4 = int32(3) + } else { + v4 = int32(5) + } + } + if v9 && d+(width-uint32(**(**Tsize_t)(__ccgo_up(bp)))) >= Uint32FromInt32(v4) { + v2 = l + l = l + 1 + **(**uint8)(__ccgo_up(s + uintptr(v2))) = uint8('+') + width = width - 1 + } + } + for { + if !(width > uint32(**(**Tsize_t)(__ccgo_up(bp))) && l < n) { + break + } + v2 = l + l = l + 1 + **(**uint8)(__ccgo_up(s + uintptr(v2))) = uint8('0') + goto _11 + _11: + ; + width = width - 1 + } + } + if **(**Tsize_t)(__ccgo_up(bp)) > n-l { + **(**Tsize_t)(__ccgo_up(bp)) = n - l + } + _memcpy(tls, s+uintptr(l), t, **(**Tsize_t)(__ccgo_up(bp))) + l = l + **(**Tsize_t)(__ccgo_up(bp)) + goto _1 + _1: + ; + f = f + 1 + } + if n != 0 { + if l == n { + l = n - uint32(1) + } + **(**uint8)(__ccgo_up(s + uintptr(l))) = uint8(0) + } + return uint32(0) +} + +func Xstrftime(tls *TLS, s uintptr, n Tsize_t, f uintptr, tm uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v f=%v tm=%v, (%v:)", tls, s, n, f, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__strftime_l(tls, s, n, f, tm, (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale) +} + +func Xstrftime_l(tls *TLS, s uintptr, n Tsize_t, f uintptr, tm uintptr, loc Tlocale_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v f=%v tm=%v loc=%v, (%v:)", tls, s, n, f, tm, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__strftime_l(tls, s, n, f, tm, loc) +} + +func Xstrptime(tls *TLS, s uintptr, f uintptr, tm uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v f=%v tm=%v, (%v:)", tls, s, f, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var adj, i, min, neg, range1, w, want_century, v1, v2, v5, v6 int32 + var dest, ex, v9 uintptr + var len1 Tsize_t + var v8 bool + var _ /* century at bp+4 */ int32 + var _ /* dummy at bp+0 */ int32 + var _ /* new_f at bp+12 */ uintptr + var _ /* relyear at bp+8 */ int32 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = adj, dest, ex, i, len1, min, neg, range1, w, want_century, v1, v2, v5, v6, v8, v9 + want_century = 0 + **(**int32)(__ccgo_up(bp + 4)) = 0 + **(**int32)(__ccgo_up(bp + 8)) = 0 + for **(**uint8)(__ccgo_up(f)) != 0 { + if Int32FromUint8(**(**uint8)(__ccgo_up(f))) != int32('%') { + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(f))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _3 + _3: + if v2 != 0 { + for { + if v8 = **(**uint8)(__ccgo_up(s)) != 0; v8 { + v5 = Int32FromUint8(**(**uint8)(__ccgo_up(s))) + v6 = BoolInt32(v5 == int32(' ') || Uint32FromInt32(v5)-uint32('\t') < uint32(5)) + goto _7 + _7: + } + if !(v8 && v6 != 0) { + break + } + goto _4 + _4: + ; + s = s + 1 + } + } else { + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) != Int32FromUint8(**(**uint8)(__ccgo_up(f))) { + return uintptr(0) + } else { + s = s + 1 + } + } + f = f + 1 + continue + } + f = f + 1 + if Int32FromUint8(**(**uint8)(__ccgo_up(f))) == int32('+') { + f = f + 1 + } + if BoolInt32(uint32(**(**uint8)(__ccgo_up(f)))-uint32('0') < uint32(10)) != 0 { + w = Int32FromUint32(Xstrtoul(tls, f, bp+12, int32(10))) + f = **(**uintptr)(__ccgo_up(bp + 12)) + } else { + w = -int32(1) + } + adj = 0 + v9 = f + f = f + 1 + switch Int32FromUint8(**(**uint8)(__ccgo_up(v9))) { + case int32('A'): + goto _10 + case int32('a'): + goto _11 + case int32('h'): + goto _12 + case int32('B'): + goto _13 + case int32('b'): + goto _14 + case int32('c'): + goto _15 + case int32('C'): + goto _16 + case int32('e'): + goto _17 + case int32('d'): + goto _18 + case int32('D'): + goto _19 + case int32('H'): + goto _20 + case int32('I'): + goto _21 + case int32('j'): + goto _22 + case int32('m'): + goto _23 + case int32('M'): + goto _24 + case int32('t'): + goto _25 + case int32('n'): + goto _26 + case int32('p'): + goto _27 + case int32('r'): + goto _28 + case int32('R'): + goto _29 + case int32('S'): + goto _30 + case int32('T'): + goto _31 + case int32('W'): + goto _32 + case int32('U'): + goto _33 + case int32('w'): + goto _34 + case int32('x'): + goto _35 + case int32('X'): + goto _36 + case int32('y'): + goto _37 + case int32('Y'): + goto _38 + case int32('%'): + goto _39 + default: + goto _40 + } + goto _41 + _11: + ; + _10: + ; + dest = tm + 24 + min = int32(ABDAY_1) + range1 = int32(7) + goto symbolic_range + _14: + ; + _13: + ; + _12: + ; + dest = tm + 16 + min = int32(ABMON_1) + range1 = int32(12) + goto symbolic_range + _15: + ; + s = Xstrptime(tls, s, Xnl_langinfo(tls, int32(D_T_FMT)), tm) + if !(s != 0) { + return uintptr(0) + } + goto _41 + _16: + ; + dest = bp + 4 + if w < 0 { + w = int32(2) + } + want_century = want_century | int32(2) + goto numeric_digits + _18: + ; + _17: + ; + dest = tm + 12 + min = int32(1) + range1 = int32(31) + goto numeric_range + _19: + ; + s = Xstrptime(tls, s, __ccgo_ts+1641, tm) + if !(s != 0) { + return uintptr(0) + } + goto _41 + _20: + ; + dest = tm + 8 + min = 0 + range1 = int32(24) + goto numeric_range + _21: + ; + dest = tm + 8 + min = int32(1) + range1 = int32(12) + goto numeric_range + _22: + ; + dest = tm + 28 + min = int32(1) + range1 = int32(366) + adj = int32(1) + goto numeric_range + _23: + ; + dest = tm + 16 + min = int32(1) + range1 = int32(12) + adj = int32(1) + goto numeric_range + _24: + ; + dest = tm + 4 + min = 0 + range1 = int32(60) + goto numeric_range + _26: + ; + _25: + ; + _44: + ; + if v8 = **(**uint8)(__ccgo_up(s)) != 0; v8 { + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(s))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _47 + _47: + } + if !(v8 && v2 != 0) { + goto _42 + } + goto _43 + _43: + ; + s = s + 1 + goto _44 + goto _42 + _42: + ; + goto _41 + _27: + ; + ex = Xnl_langinfo(tls, int32(AM_STR)) + len1 = _strlen(tls, ex) + if !(Xstrncasecmp(tls, s, ex, len1) != 0) { + **(**int32)(__ccgo_up(tm + 8)) %= int32(12) + s = s + uintptr(len1) + goto _41 + } + ex = Xnl_langinfo(tls, int32(PM_STR)) + len1 = _strlen(tls, ex) + if !(Xstrncasecmp(tls, s, ex, len1) != 0) { + **(**int32)(__ccgo_up(tm + 8)) %= int32(12) + **(**int32)(__ccgo_up(tm + 8)) += int32(12) + s = s + uintptr(len1) + goto _41 + } + return uintptr(0) + _28: + ; + s = Xstrptime(tls, s, Xnl_langinfo(tls, int32(T_FMT_AMPM)), tm) + if !(s != 0) { + return uintptr(0) + } + goto _41 + _29: + ; + s = Xstrptime(tls, s, __ccgo_ts+1659, tm) + if !(s != 0) { + return uintptr(0) + } + goto _41 + _30: + ; + dest = tm + min = 0 + range1 = int32(61) + goto numeric_range + _31: + ; + s = Xstrptime(tls, s, __ccgo_ts+1665, tm) + if !(s != 0) { + return uintptr(0) + } + goto _41 + _33: + ; + _32: + ; + /* Throw away result, for now. (FIXME?) */ + dest = bp + min = 0 + range1 = int32(54) + goto numeric_range + _34: + ; + dest = tm + 24 + min = 0 + range1 = int32(7) + goto numeric_range + _35: + ; + s = Xstrptime(tls, s, Xnl_langinfo(tls, int32(D_FMT)), tm) + if !(s != 0) { + return uintptr(0) + } + goto _41 + _36: + ; + s = Xstrptime(tls, s, Xnl_langinfo(tls, int32(T_FMT)), tm) + if !(s != 0) { + return uintptr(0) + } + goto _41 + _37: + ; + dest = bp + 8 + w = int32(2) + want_century = want_century | int32(1) + goto numeric_digits + _38: + ; + dest = tm + 20 + if w < 0 { + w = int32(4) + } + adj = int32(1900) + want_century = 0 + goto numeric_digits + _39: + ; + v9 = s + s = s + 1 + if Int32FromUint8(**(**uint8)(__ccgo_up(v9))) != int32('%') { + return uintptr(0) + } + goto _41 + _40: + ; + return uintptr(0) + goto numeric_range + numeric_range: + ; + if !(BoolInt32(uint32(**(**uint8)(__ccgo_up(s)))-Uint32FromUint8('0') < Uint32FromInt32(10)) != 0) { + return uintptr(0) + } + **(**int32)(__ccgo_up(dest)) = 0 + i = int32(1) + for { + if !(i <= min+range1 && BoolInt32(uint32(**(**uint8)(__ccgo_up(s)))-uint32('0') < uint32(10)) != 0) { + break + } + v9 = s + s = s + 1 + **(**int32)(__ccgo_up(dest)) = **(**int32)(__ccgo_up(dest))*int32(10) + Int32FromUint8(**(**uint8)(__ccgo_up(v9))) - int32('0') + goto _50 + _50: + ; + i = i * int32(10) + } + if Uint32FromInt32(**(**int32)(__ccgo_up(dest))-min) >= Uint32FromInt32(range1) { + return uintptr(0) + } + **(**int32)(__ccgo_up(dest)) -= adj + switch int32(dest) - int32(tm) { + case Int32FromUint32(uint32(UintptrFromInt32(0) + 28)): + } + goto update + goto numeric_digits + numeric_digits: + ; + neg = 0 + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('+') { + s = s + 1 + } else { + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('-') { + neg = int32(1) + s = s + 1 + } + } + if !(BoolInt32(uint32(**(**uint8)(__ccgo_up(s)))-Uint32FromUint8('0') < Uint32FromInt32(10)) != 0) { + return uintptr(0) + } + v1 = Int32FromInt32(0) + i = v1 + **(**int32)(__ccgo_up(dest)) = v1 + for { + if !(i < w && BoolInt32(uint32(**(**uint8)(__ccgo_up(s)))-uint32('0') < uint32(10)) != 0) { + break + } + v9 = s + s = s + 1 + **(**int32)(__ccgo_up(dest)) = **(**int32)(__ccgo_up(dest))*int32(10) + Int32FromUint8(**(**uint8)(__ccgo_up(v9))) - int32('0') + goto _52 + _52: + ; + i = i + 1 + } + if neg != 0 { + **(**int32)(__ccgo_up(dest)) = -**(**int32)(__ccgo_up(dest)) + } + **(**int32)(__ccgo_up(dest)) -= adj + goto update + goto symbolic_range + symbolic_range: + ; + i = int32(2)*range1 - int32(1) + for { + if !(i >= 0) { + break + } + ex = Xnl_langinfo(tls, min+i) + len1 = _strlen(tls, ex) + if Xstrncasecmp(tls, s, ex, len1) != 0 { + goto _55 + } + s = s + uintptr(len1) + **(**int32)(__ccgo_up(dest)) = i % range1 + break + goto _55 + _55: + ; + i = i - 1 + } + if i < 0 { + return uintptr(0) + } + goto update + goto update + update: + ; + //FIXME + _41: + } + if want_century != 0 { + (*Ttm)(unsafe.Pointer(tm)).Ftm_year = **(**int32)(__ccgo_up(bp + 8)) + if want_century&int32(2) != 0 { + **(**int32)(__ccgo_up(tm + 20)) += **(**int32)(__ccgo_up(bp + 4))*int32(100) - int32(1900) + } else { + if (*Ttm)(unsafe.Pointer(tm)).Ftm_year <= int32(68) { + **(**int32)(__ccgo_up(tm + 20)) += int32(100) + } + } + } + return s +} + +func Xtime(tls *TLS, t uintptr) (r Ttime_t) { + if __ccgo_strace { + trc("tls=%v t=%v, (%v:)", tls, t, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* ts at bp+0 */ Ttimespec + X__clock_gettime(tls, CLOCK_REALTIME, bp) + if t != 0 { + **(**Ttime_t)(__ccgo_up(t)) = (**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec + } + return (**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec +} + +func Xtimegm(tls *TLS, tm uintptr) (r Ttime_t) { + if __ccgo_strace { + trc("tls=%v tm=%v, (%v:)", tls, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + var t int64 + var _ /* new at bp+0 */ Ttm1 + _ = t + t = X__tm_to_secs(tls, tm) + if X__secs_to_tm(tls, t, bp) < 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOVERFLOW) + return int64(-int32(1)) + } + **(**Ttm1)(__ccgo_up(tm)) = **(**Ttm1)(__ccgo_up(bp)) + (*Ttm1)(unsafe.Pointer(tm)).Ftm_isdst = 0 + (*Ttm1)(unsafe.Pointer(tm)).Ftm_gmtoff = 0 + (*Ttm1)(unsafe.Pointer(tm)).Ftm_zone = uintptr(unsafe.Pointer(&X__utc)) + return t +} + +func Xtimer_delete(tls *TLS, t Ttimer_t) (r int32) { + if __ccgo_strace { + trc("tls=%v t=%v, (%v:)", tls, t, origin(2)) + defer func() { trc("-> %v", r) }() + } + var td Tpthread_t + _ = td + if int32(t) < 0 { + td = uintptr(uint32(t) << Int32FromInt32(1)) + _a_barrier(tls) + AtomicStorePInt32(td+84, AtomicLoadPInt32(td+84)|(-Int32FromInt32(1)-Int32FromInt32(0x7fffffff))) + _a_barrier(tls) + X__syscall2(tls, int32(SYS_tkill), (*t__pthread)(unsafe.Pointer(td)).Ftid, int32(Int32FromInt32(SIGTIMER))) + return 0 + } + return int32(X__syscall1(tls, int32(SYS_timer_delete), int32(t))) +} + +func Xtimer_getoverrun(tls *TLS, t Ttimer_t) (r int32) { + if __ccgo_strace { + trc("tls=%v t=%v, (%v:)", tls, t, origin(2)) + defer func() { trc("-> %v", r) }() + } + var td Tpthread_t + _ = td + if int32(t) < 0 { + td = uintptr(uint32(t) << Int32FromInt32(1)) + t = uintptr(Uint32FromInt32(AtomicLoadPInt32(td+84) & Int32FromInt32(INT_MAX))) + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall1(tls, int32(SYS_timer_getoverrun), int32(t)))) +} + +func Xtimer_gettime(tls *TLS, t Ttimer_t, val uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v t=%v val=%v, (%v:)", tls, t, val, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var r int32 + var td Tpthread_t + var _ /* val32 at bp+0 */ [4]int32 + _, _ = r, td + if int32(t) < 0 { + td = uintptr(uint32(t) << Int32FromInt32(1)) + t = uintptr(Uint32FromInt32(AtomicLoadPInt32(td+84) & Int32FromInt32(INT_MAX))) + } + r = -int32(ENOSYS) + if uint32(8) > uint32(4) { + r = int32(X__syscall2(tls, int32(SYS_timer_gettime64), int32(t), int32(val))) + } + if Bool(false) || r != -int32(ENOSYS) { + return X__syscall_ret(tls, Uint32FromInt32(r)) + } + r = int32(X__syscall2(tls, int32(SYS_timer_gettime32), int32(t), int32(bp))) + if !(r != 0) { + (*Titimerspec)(unsafe.Pointer(val)).Fit_interval.Ftv_sec = int64((**(**[4]int32)(__ccgo_up(bp)))[0]) + (*Titimerspec)(unsafe.Pointer(val)).Fit_interval.Ftv_nsec = (**(**[4]int32)(__ccgo_up(bp)))[int32(1)] + (*Titimerspec)(unsafe.Pointer(val)).Fit_value.Ftv_sec = int64((**(**[4]int32)(__ccgo_up(bp)))[int32(2)]) + (*Titimerspec)(unsafe.Pointer(val)).Fit_value.Ftv_nsec = (**(**[4]int32)(__ccgo_up(bp)))[int32(3)] + } + return X__syscall_ret(tls, Uint32FromInt32(r)) + return X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_timer_gettime32), int32(t), int32(val)))) +} + +func Xtimer_settime(tls *TLS, t Ttimer_t, flags int32, val uintptr, old uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v t=%v flags=%v val=%v old=%v, (%v:)", tls, t, flags, val, old, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var ins, r, vns int32 + var is, vs Ttime_t + var td Tpthread_t + var _ /* old32 at bp+48 */ [4]int32 + _, _, _, _, _, _ = ins, is, r, td, vns, vs + if int32(t) < 0 { + td = uintptr(uint32(t) << Int32FromInt32(1)) + t = uintptr(Uint32FromInt32(AtomicLoadPInt32(td+84) & Int32FromInt32(INT_MAX))) + } + is = (*Titimerspec)(unsafe.Pointer(val)).Fit_interval.Ftv_sec + vs = (*Titimerspec)(unsafe.Pointer(val)).Fit_value.Ftv_sec + ins = (*Titimerspec)(unsafe.Pointer(val)).Fit_interval.Ftv_nsec + vns = (*Titimerspec)(unsafe.Pointer(val)).Fit_value.Ftv_nsec + r = -int32(ENOSYS) + if Bool(false) || !!((Uint64FromInt64(is)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) || !!((Uint64FromInt64(vs)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) || Bool(uint32(8) > uint32(4)) && old != 0 { + *(*[4]int64)(unsafe.Pointer(bp)) = [4]int64{ + 0: is, + 1: int64(ins), + 2: vs, + 3: int64(vns), + } + r = int32(X__syscall4(tls, int32(SYS_timer_settime64), int32(t), flags, int32(bp), int32(old))) + } + if Bool(false) || r != -int32(ENOSYS) { + return X__syscall_ret(tls, Uint32FromInt32(r)) + } + if !!((Uint64FromInt64(is)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) || !!((Uint64FromInt64(vs)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) { + return X__syscall_ret(tls, Uint32FromInt32(-Int32FromInt32(EOPNOTSUPP))) + } + *(*[4]int32)(unsafe.Pointer(bp + 32)) = [4]int32{ + 0: int32(is), + 1: ins, + 2: int32(vs), + 3: vns, + } + r = int32(X__syscall4(tls, int32(SYS_timer_settime32), int32(t), flags, int32(bp+32), int32(bp+48))) + if !(r != 0) && old != 0 { + (*Titimerspec)(unsafe.Pointer(old)).Fit_interval.Ftv_sec = int64((**(**[4]int32)(__ccgo_up(bp + 48)))[0]) + (*Titimerspec)(unsafe.Pointer(old)).Fit_interval.Ftv_nsec = (**(**[4]int32)(__ccgo_up(bp + 48)))[int32(1)] + (*Titimerspec)(unsafe.Pointer(old)).Fit_value.Ftv_sec = int64((**(**[4]int32)(__ccgo_up(bp + 48)))[int32(2)]) + (*Titimerspec)(unsafe.Pointer(old)).Fit_value.Ftv_nsec = (**(**[4]int32)(__ccgo_up(bp + 48)))[int32(3)] + } + return X__syscall_ret(tls, Uint32FromInt32(r)) + return X__syscall_ret(tls, Uint32FromInt32(X__syscall4(tls, int32(SYS_timer_settime32), int32(t), flags, int32(val), int32(old)))) +} + +type Ttms = struct { + Ftms_utime Tclock_t + Ftms_stime Tclock_t + Ftms_cutime Tclock_t + Ftms_cstime Tclock_t +} + +func Xtimes(tls *TLS, tms uintptr) (r Tclock_t) { + if __ccgo_strace { + trc("tls=%v tms=%v, (%v:)", tls, tms, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall1(tls, int32(SYS_times), int32(tms)) +} + +// C documentation +// +// /* There is no other implemented value than TIME_UTC; all other values +// * are considered erroneous. */ +func Xtimespec_get(tls *TLS, ts uintptr, base int32) (r int32) { + if __ccgo_strace { + trc("tls=%v ts=%v base=%v, (%v:)", tls, ts, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret, v1 int32 + _, _ = ret, v1 + if base != int32(TIME_UTC) { + return 0 + } + ret = X__clock_gettime(tls, CLOCK_REALTIME, ts) + if ret < 0 { + v1 = 0 + } else { + v1 = base + } + return v1 +} + +type Tutimbuf = struct { + F__ccgo_align [0]uint32 + Factime Ttime_t + Fmodtime Ttime_t +} + +func Xutime(tls *TLS, path uintptr, times uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v times=%v, (%v:)", tls, path, times, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var v1 uintptr + _ = v1 + if times != 0 { + *(*[2]Ttimespec)(unsafe.Pointer(bp)) = [2]Ttimespec{ + 0: { + Ftv_sec: (*Tutimbuf)(unsafe.Pointer(times)).Factime, + }, + 1: { + Ftv_sec: (*Tutimbuf)(unsafe.Pointer(times)).Fmodtime, + }, + } + v1 = bp + } else { + v1 = uintptr(0) + } + return Xutimensat(tls, -int32(100), path, v1, 0) +} + +func X__wcsftime_l(tls *TLS, s uintptr, n Tsize_t, f uintptr, tm uintptr, loc Tlocale_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v f=%v tm=%v loc=%v, (%v:)", tls, s, n, f, tm, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(512) + defer tls.Free(512) + var l, v2 Tsize_t + var pad, plus, v4 int32 + var t, t_mb, v3 uintptr + var width uint32 + var _ /* buf at bp+4 */ [100]uint8 + var _ /* k at bp+0 */ Tsize_t + var _ /* p at bp+504 */ uintptr + var _ /* wbuf at bp+104 */ [100]Twchar_t + _, _, _, _, _, _, _, _, _ = l, pad, plus, t, t_mb, width, v2, v3, v4 + l = uint32(0) + for { + if !(l < n) { + break + } + if !(**(**Twchar_t)(__ccgo_up(f)) != 0) { + **(**Twchar_t)(__ccgo_up(s + uintptr(l)*4)) = uint32(0) + return l + } + if **(**Twchar_t)(__ccgo_up(f)) != uint32('%') { + v2 = l + l = l + 1 + **(**Twchar_t)(__ccgo_up(s + uintptr(v2)*4)) = **(**Twchar_t)(__ccgo_up(f)) + goto _1 + } + f += 4 + pad = 0 + if **(**Twchar_t)(__ccgo_up(f)) == uint32('-') || **(**Twchar_t)(__ccgo_up(f)) == uint32('_') || **(**Twchar_t)(__ccgo_up(f)) == uint32('0') { + v3 = f + f += 4 + pad = Int32FromUint32(**(**Twchar_t)(__ccgo_up(v3))) + } + v4 = BoolInt32(**(**Twchar_t)(__ccgo_up(f)) == Uint32FromUint8('+')) + plus = v4 + if v4 != 0 { + f += 4 + } + width = Xwcstoul(tls, f, bp+504, int32(10)) + if **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 504)))) == uint32('C') || **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 504)))) == uint32('F') || **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 504)))) == uint32('G') || **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 504)))) == uint32('Y') { + if !(width != 0) && **(**uintptr)(__ccgo_up(bp + 504)) != f { + width = uint32(1) + } + } else { + width = uint32(0) + } + f = **(**uintptr)(__ccgo_up(bp + 504)) + if **(**Twchar_t)(__ccgo_up(f)) == uint32('E') || **(**Twchar_t)(__ccgo_up(f)) == uint32('O') { + f += 4 + } + t_mb = X__strftime_fmt_1(tls, bp+4, bp, Int32FromUint32(**(**Twchar_t)(__ccgo_up(f))), tm, loc, pad) + if !(t_mb != 0) { + break + } + **(**Tsize_t)(__ccgo_up(bp)) = Xmbstowcs(tls, bp+104, t_mb, Uint32FromInt64(400)/Uint32FromInt64(4)) + if **(**Tsize_t)(__ccgo_up(bp)) == Uint32FromInt32(-Int32FromInt32(1)) { + return uint32(0) + } + t = bp + 104 + if width != 0 { + for { + if !(**(**Twchar_t)(__ccgo_up(t)) == uint32('+') || **(**Twchar_t)(__ccgo_up(t)) == uint32('-') || **(**Twchar_t)(__ccgo_up(t)) == uint32('0') && **(**Twchar_t)(__ccgo_up(t + 1*4)) != 0) { + break + } + goto _5 + _5: + ; + t += 4 + **(**Tsize_t)(__ccgo_up(bp)) = **(**Tsize_t)(__ccgo_up(bp)) - 1 + } + width = width - 1 + if plus != 0 && (*Ttm)(unsafe.Pointer(tm)).Ftm_year >= Int32FromInt32(10000)-Int32FromInt32(1900) { + v2 = l + l = l + 1 + **(**Twchar_t)(__ccgo_up(s + uintptr(v2)*4)) = uint32('+') + } else { + if (*Ttm)(unsafe.Pointer(tm)).Ftm_year < -int32(1900) { + v2 = l + l = l + 1 + **(**Twchar_t)(__ccgo_up(s + uintptr(v2)*4)) = uint32('-') + } else { + width = width + 1 + } + } + for { + if !(width > uint32(**(**Tsize_t)(__ccgo_up(bp))) && l < n) { + break + } + v2 = l + l = l + 1 + **(**Twchar_t)(__ccgo_up(s + uintptr(v2)*4)) = uint32('0') + goto _8 + _8: + ; + width = width - 1 + } + } + if **(**Tsize_t)(__ccgo_up(bp)) >= n-l { + **(**Tsize_t)(__ccgo_up(bp)) = n - l + } + Xwmemcpy(tls, s+uintptr(l)*4, t, **(**Tsize_t)(__ccgo_up(bp))) + l = l + **(**Tsize_t)(__ccgo_up(bp)) + goto _1 + _1: + ; + f += 4 + } + if n != 0 { + if l == n { + l = n - uint32(1) + } + **(**Twchar_t)(__ccgo_up(s + uintptr(l)*4)) = uint32(0) + } + return uint32(0) +} + +func Xwcsftime(tls *TLS, wcs uintptr, n Tsize_t, f uintptr, tm uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v wcs=%v n=%v f=%v tm=%v, (%v:)", tls, wcs, n, f, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__wcsftime_l(tls, wcs, n, f, tm, (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale) +} + +func Xwcsftime_l(tls *TLS, s uintptr, n Tsize_t, f uintptr, tm uintptr, loc Tlocale_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v f=%v tm=%v loc=%v, (%v:)", tls, s, n, f, tm, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__wcsftime_l(tls, s, n, f, tm, loc) +} + +func X_exit(tls *TLS, status int32) { + if __ccgo_strace { + trc("tls=%v status=%v, (%v:)", tls, status, origin(2)) + } + X_Exit(tls, status) +} + +func Xaccess(tls *TLS, filename uintptr, amode int32) (r int32) { + if __ccgo_strace { + trc("tls=%v filename=%v amode=%v, (%v:)", tls, filename, amode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_access), int32(filename), amode))) +} + +func Xacct(tls *TLS, filename uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v filename=%v, (%v:)", tls, filename, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall1(tls, int32(SYS_acct), int32(filename)))) +} + +func Xalarm(tls *TLS, seconds uint32) (r uint32) { + if __ccgo_strace { + trc("tls=%v seconds=%v, (%v:)", tls, seconds, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var _ /* it at bp+0 */ Titimerval + var _ /* old at bp+32 */ Titimerval + **(**Titimerval)(__ccgo_up(bp)) = Titimerval{ + Fit_value: Ttimeval{ + Ftv_sec: Int64FromUint32(seconds), + }, + } + **(**Titimerval)(__ccgo_up(bp + 32)) = Titimerval{} + Xsetitimer(tls, ITIMER_REAL, bp, bp+32) + return Uint32FromInt64((**(**Titimerval)(__ccgo_up(bp + 32))).Fit_value.Ftv_sec + BoolInt64(!!((**(**Titimerval)(__ccgo_up(bp + 32))).Fit_value.Ftv_usec != 0))) +} + +func Xchdir(tls *TLS, path uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v, (%v:)", tls, path, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall1(tls, int32(SYS_chdir), int32(path)))) +} + +func Xchown(tls *TLS, path uintptr, uid Tuid_t, gid Tgid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v uid=%v gid=%v, (%v:)", tls, path, uid, gid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_chown32), int32(path), Int32FromUint32(uid), Int32FromUint32(gid)))) +} + +func _dummy12(tls *TLS, fd int32) (r int32) { + return fd +} + +func Xclose(tls *TLS, fd int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + fd = _dummy12(tls, fd) + r = int32(___syscall_cp(tls, int32(SYS_close), fd, 0, 0, 0, 0, 0)) + if r == -int32(EINTR) { + r = 0 + } + return X__syscall_ret(tls, Uint32FromInt32(r)) +} + +func Xctermid(tls *TLS, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 uintptr + _ = v1 + if s != 0 { + v1 = Xstrcpy(tls, s, __ccgo_ts+292) + } else { + v1 = __ccgo_ts + 292 + } + return v1 +} + +func Xdup(tls *TLS, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall1(tls, int32(SYS_dup), fd))) +} + +func Xdup2(tls *TLS, old int32, new1 int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v old=%v new1=%v, (%v:)", tls, old, new1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v1 int32 + _, _ = r, v1 + for { + v1 = int32(X__syscall2(tls, int32(SYS_dup2), old, new1)) + r = v1 + if !(v1 == -int32(EBUSY)) { + break + } + } + return X__syscall_ret(tls, Uint32FromInt32(r)) +} + +func X__dup3(tls *TLS, old int32, new1 int32, flags int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v old=%v new1=%v flags=%v, (%v:)", tls, old, new1, flags, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v1 int32 + _, _ = r, v1 + if old == new1 { + return X__syscall_ret(tls, Uint32FromInt32(-Int32FromInt32(EINVAL))) + } + if flags != 0 { + for { + v1 = int32(X__syscall3(tls, int32(SYS_dup3), old, new1, flags)) + r = v1 + if !(v1 == -int32(EBUSY)) { + break + } + } + if r != -int32(ENOSYS) { + return X__syscall_ret(tls, Uint32FromInt32(r)) + } + if flags & ^Int32FromInt32(O_CLOEXEC) != 0 { + return X__syscall_ret(tls, Uint32FromInt32(-Int32FromInt32(EINVAL))) + } + } + for { + v1 = int32(X__syscall2(tls, int32(SYS_dup2), old, new1)) + r = v1 + if !(v1 == -int32(EBUSY)) { + break + } + } + if r >= 0 && flags&int32(O_CLOEXEC) != 0 { + X__syscall3(tls, int32(SYS_fcntl64), new1, int32(Int32FromInt32(F_SETFD)), int32(Int32FromInt32(FD_CLOEXEC))) + } + return X__syscall_ret(tls, Uint32FromInt32(r)) +} + +func Xdup3(tls *TLS, old int32, new1 int32, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v old=%v new1=%v flags=%v, (%v:)", tls, old, new1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__dup3(tls, old, new1, flags) +} + +type Tctx1 = struct { + Ffd int32 + Ffilename uintptr + Famode int32 + Fp int32 +} + +func _checker(tls *TLS, p uintptr) (r int32) { + bp := tls.Alloc(16) + defer tls.Free(16) + var c uintptr + var _ /* ret at bp+0 */ int32 + _ = c + c = p + if X__syscall2(tls, int32(SYS_setregid32), X__syscall0(tls, int32(SYS_getegid32)), int32(-Int32FromInt32(1))) != 0 || X__syscall2(tls, int32(SYS_setreuid32), X__syscall0(tls, int32(SYS_geteuid32)), int32(-Int32FromInt32(1))) != 0 { + X__syscall1(tls, int32(SYS_exit), int32(Int32FromInt32(1))) + } + **(**int32)(__ccgo_up(bp)) = int32(X__syscall4(tls, int32(SYS_faccessat), (*Tctx1)(unsafe.Pointer(c)).Ffd, int32((*Tctx1)(unsafe.Pointer(c)).Ffilename), (*Tctx1)(unsafe.Pointer(c)).Famode, int32(Int32FromInt32(0)))) + X__syscall3(tls, int32(SYS_write), (*Tctx1)(unsafe.Pointer(c)).Fp, int32(bp), Int32FromUint32(Uint32FromInt64(4))) + return 0 +} + +func Xfaccessat(tls *TLS, fd int32, filename uintptr, amode int32, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v filename=%v amode=%v flag=%v, (%v:)", tls, fd, filename, amode, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret int32 + _ = ret + if flag != 0 { + ret = int32(X__syscall4(tls, int32(SYS_faccessat2), fd, int32(filename), amode, flag)) + if ret != -int32(ENOSYS) { + return X__syscall_ret(tls, Uint32FromInt32(ret)) + } + } + if flag & ^Int32FromInt32(AT_EACCESS) != 0 { + return X__syscall_ret(tls, Uint32FromInt32(-Int32FromInt32(EINVAL))) + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_faccessat), fd, int32(filename), amode))) +} + +func Xfchdir(tls *TLS, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var ret int32 + var _ /* buf at bp+0 */ [27]uint8 + _ = ret + ret = int32(X__syscall1(tls, int32(SYS_fchdir), fd)) + if ret != -int32(EBADF) || X__syscall2(tls, int32(SYS_fcntl64), fd, int32(Int32FromInt32(F_GETFD))) < 0 { + return X__syscall_ret(tls, Uint32FromInt32(ret)) + } + X__procfdname(tls, bp, Uint32FromInt32(fd)) + return X__syscall_ret(tls, Uint32FromInt32(X__syscall1(tls, int32(SYS_chdir), int32(bp)))) +} + +func Xfchown(tls *TLS, fd int32, uid Tuid_t, gid Tgid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v uid=%v gid=%v, (%v:)", tls, fd, uid, gid, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var ret int32 + var _ /* buf at bp+0 */ [27]uint8 + _ = ret + ret = int32(X__syscall3(tls, int32(SYS_fchown32), fd, Int32FromUint32(uid), Int32FromUint32(gid))) + if ret != -int32(EBADF) || X__syscall2(tls, int32(SYS_fcntl64), fd, int32(Int32FromInt32(F_GETFD))) < 0 { + return X__syscall_ret(tls, Uint32FromInt32(ret)) + } + X__procfdname(tls, bp, Uint32FromInt32(fd)) + return X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_chown32), int32(bp), Int32FromUint32(uid), Int32FromUint32(gid)))) +} + +func Xfchownat(tls *TLS, fd int32, path uintptr, uid Tuid_t, gid Tgid_t, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v path=%v uid=%v gid=%v flag=%v, (%v:)", tls, fd, path, uid, gid, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall5(tls, int32(SYS_fchownat), fd, int32(path), Int32FromUint32(uid), Int32FromUint32(gid), flag))) +} + +func Xfdatasync(tls *TLS, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(___syscall_cp(tls, int32(SYS_fdatasync), fd, 0, 0, 0, 0, 0))) +} + +func Xfsync(tls *TLS, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(___syscall_cp(tls, int32(SYS_fsync), fd, 0, 0, 0, 0, 0))) +} + +func Xftruncate(tls *TLS, fd int32, length Toff_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v length=%v, (%v:)", tls, fd, length, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall4(tls, int32(SYS_ftruncate64), fd, int32(Int32FromInt32(0)), int32(length), int32(length>>Int32FromInt32(32))))) +} + +func Xgetcwd(tls *TLS, buf uintptr, size Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v buf=%v size=%v, (%v:)", tls, buf, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret, v2 int32 + var tmp, v3 uintptr + var v1 t__predefined_size_t + _, _, _, _, _ = ret, tmp, v1, v2, v3 + defer func() { Xrealloc(tls, tmp, 0) }() + if buf != 0 { + v2 = int32(1) + } else { + v2 = int32(PATH_MAX) + } + v1 = Uint32FromInt32(v2) + tmp = Xrealloc(tls, tmp, v1) + if !(buf != 0) { + buf = tmp + size = v1 + } else { + if !(size != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(0) + } + } + ret = X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_getcwd), int32(buf), Int32FromUint32(size)))) + if ret < 0 { + return uintptr(0) + } + if ret == 0 || Int32FromUint8(**(**uint8)(__ccgo_up(buf))) != int32('/') { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOENT) + return uintptr(0) + } + if buf == tmp { + v3 = Xstrdup(tls, buf) + } else { + v3 = buf + } + return v3 +} + +func Xgetegid(tls *TLS) (r Tgid_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Uint32FromInt32(X__syscall0(tls, int32(SYS_getegid32))) +} + +func Xgeteuid(tls *TLS) (r Tuid_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Uint32FromInt32(X__syscall0(tls, int32(SYS_geteuid32))) +} + +func Xgetgid(tls *TLS) (r Tgid_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Uint32FromInt32(X__syscall0(tls, int32(SYS_getgid32))) +} + +func Xgetgroups(tls *TLS, count int32, list uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v count=%v list=%v, (%v:)", tls, count, list, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_getgroups32), count, int32(list)))) +} + +func Xgethostname(tls *TLS, name uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v len1=%v, (%v:)", tls, name, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(400) + defer tls.Free(400) + var i Tsize_t + var v2 uint8 + var v3 bool + var _ /* uts at bp+0 */ Tutsname1 + _, _, _ = i, v2, v3 + if Xuname(tls, bp) != 0 { + return -int32(1) + } + if len1 > uint32(65) { + len1 = uint32(65) + } + i = uint32(0) + for { + if v3 = i < len1; v3 { + v2 = **(**uint8)(__ccgo_up(bp + 65 + uintptr(i))) + **(**uint8)(__ccgo_up(name + uintptr(i))) = v2 + } + if !(v3 && v2 != 0) { + break + } + goto _1 + _1: + ; + i = i + 1 + } + if i != 0 && i == len1 { + **(**uint8)(__ccgo_up(name + uintptr(i-uint32(1)))) = uint8(0) + } + return 0 +} + +func Xgetlogin(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetenv(tls, __ccgo_ts+1705) +} + +func Xgetlogin_r(tls *TLS, name uintptr, size Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v size=%v, (%v:)", tls, name, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + var logname uintptr + _ = logname + logname = Xgetlogin(tls) + if !(logname != 0) { + return int32(ENXIO) + } /* or...? */ + if _strlen(tls, logname) >= size { + return int32(ERANGE) + } + Xstrcpy(tls, name, logname) + return 0 +} + +func Xgetpgid(tls *TLS, pid Tpid_t) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v pid=%v, (%v:)", tls, pid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall1(tls, int32(SYS_getpgid), pid))) +} + +func Xgetpgrp(tls *TLS) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall1(tls, int32(SYS_getpgid), int32(Int32FromInt32(0)))) +} + +func Xgetpid(tls *TLS) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall0(tls, int32(SYS_getpid))) +} + +func Xgetppid(tls *TLS) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall0(tls, int32(SYS_getppid))) +} + +func Xgetsid(tls *TLS, pid Tpid_t) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v pid=%v, (%v:)", tls, pid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall1(tls, int32(SYS_getsid), pid))) +} + +func Xgetuid(tls *TLS) (r Tuid_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Uint32FromInt32(X__syscall0(tls, int32(SYS_getuid32))) +} + +func Xisatty(tls *TLS, fd int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var r uint32 + var _ /* wsz at bp+0 */ Twinsize + _ = r + r = Uint32FromInt32(X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_ioctl), fd, int32(Int32FromInt32(TIOCGWINSZ)), int32(bp))))) + if r == uint32(0) { + return int32(1) + } + if **(**int32)(__ccgo_up(X__errno_location(tls))) != int32(EBADF) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOTTY) + } + return 0 +} + +func Xlchown(tls *TLS, path uintptr, uid Tuid_t, gid Tgid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v uid=%v gid=%v, (%v:)", tls, path, uid, gid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_lchown32), int32(path), Int32FromUint32(uid), Int32FromUint32(gid)))) +} + +func Xlink(tls *TLS, existing uintptr, new1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v existing=%v new1=%v, (%v:)", tls, existing, new1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_link), int32(existing), int32(new1)))) +} + +func Xlinkat(tls *TLS, fd1 int32, existing uintptr, fd2 int32, new1 uintptr, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd1=%v existing=%v fd2=%v new1=%v flag=%v, (%v:)", tls, fd1, existing, fd2, new1, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall5(tls, int32(SYS_linkat), fd1, int32(existing), fd2, int32(new1), flag))) +} + +func X__lseek(tls *TLS, fd int32, offset Toff_t, whence int32) (r Toff_t) { + if __ccgo_strace { + trc("tls=%v fd=%v offset=%v whence=%v, (%v:)", tls, fd, offset, whence, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 int64 + var _ /* result at bp+0 */ Toff_t + _ = v1 + if X__syscall_ret(tls, Uint32FromInt32(X__syscall5(tls, int32(SYS__llseek), fd, int32(offset>>Int32FromInt32(32)), int32(offset), int32(bp), whence))) != 0 { + v1 = int64(-int32(1)) + } else { + v1 = **(**Toff_t)(__ccgo_up(bp)) + } + return v1 +} + +func Xlseek(tls *TLS, fd int32, offset Toff_t, whence int32) (r Toff_t) { + if __ccgo_strace { + trc("tls=%v fd=%v offset=%v whence=%v, (%v:)", tls, fd, offset, whence, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lseek(tls, fd, offset, whence) +} + +func Xnice(tls *TLS, inc int32) (r int32) { + if __ccgo_strace { + trc("tls=%v inc=%v, (%v:)", tls, inc, origin(2)) + defer func() { trc("-> %v", r) }() + } + var prio int32 + _ = prio + prio = inc + // Only query old priority if it can affect the result. + // This also avoids issues with integer overflow. + if inc > -Int32FromInt32(2)*Int32FromInt32(NZERO) && inc < Int32FromInt32(2)*Int32FromInt32(NZERO) { + prio = prio + Xgetpriority(tls, PRIO_PROCESS, uint32(0)) + } + if prio > Int32FromInt32(NZERO)-Int32FromInt32(1) { + prio = Int32FromInt32(NZERO) - Int32FromInt32(1) + } + if prio < -int32(NZERO) { + prio = -int32(NZERO) + } + if Xsetpriority(tls, PRIO_PROCESS, uint32(0), prio) != 0 { + if **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EACCES) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EPERM) + } + return -int32(1) + } else { + return prio + } + return r +} + +func Xpause(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(___syscall_cp(tls, int32(SYS_pause), 0, 0, 0, 0, 0, 0))) +} + +func Xpipe(tls *TLS, fd uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall1(tls, int32(SYS_pipe), int32(fd)))) +} + +func Xpipe2(tls *TLS, fd uintptr, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v flag=%v, (%v:)", tls, fd, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret int32 + _ = ret + if !(flag != 0) { + return Xpipe(tls, fd) + } + ret = int32(X__syscall2(tls, int32(SYS_pipe2), int32(fd), flag)) + if ret != -int32(ENOSYS) { + return X__syscall_ret(tls, Uint32FromInt32(ret)) + } + if flag & ^(Int32FromInt32(O_CLOEXEC)|Int32FromInt32(O_NONBLOCK)) != 0 { + return X__syscall_ret(tls, Uint32FromInt32(-Int32FromInt32(EINVAL))) + } + ret = Xpipe(tls, fd) + if ret != 0 { + return ret + } + if flag&int32(O_CLOEXEC) != 0 { + X__syscall3(tls, int32(SYS_fcntl64), int32(**(**int32)(__ccgo_up(fd))), int32(Int32FromInt32(F_SETFD)), int32(Int32FromInt32(FD_CLOEXEC))) + X__syscall3(tls, int32(SYS_fcntl64), int32(**(**int32)(__ccgo_up(fd + 1*4))), int32(Int32FromInt32(F_SETFD)), int32(Int32FromInt32(FD_CLOEXEC))) + } + if flag&int32(O_NONBLOCK) != 0 { + X__syscall3(tls, int32(SYS_fcntl64), int32(**(**int32)(__ccgo_up(fd))), int32(Int32FromInt32(F_SETFL)), int32(Int32FromInt32(O_NONBLOCK))) + X__syscall3(tls, int32(SYS_fcntl64), int32(**(**int32)(__ccgo_up(fd + 1*4))), int32(Int32FromInt32(F_SETFL)), int32(Int32FromInt32(O_NONBLOCK))) + } + return 0 +} + +func Xposix_close(tls *TLS, fd int32, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v flags=%v, (%v:)", tls, fd, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xclose(tls, fd) +} + +func Xpread(tls *TLS, fd int32, buf uintptr, size Tsize_t, ofs Toff_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v size=%v ofs=%v, (%v:)", tls, fd, buf, size, ofs, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(___syscall_cp(tls, int32(SYS_pread64), fd, int32(buf), Int32FromUint32(size), int32(Int32FromInt32(0)), int32(ofs), int32(ofs>>Int32FromInt32(32))))) +} + +func Xpreadv(tls *TLS, fd int32, iov uintptr, count int32, ofs Toff_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v iov=%v count=%v ofs=%v, (%v:)", tls, fd, iov, count, ofs, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(___syscall_cp(tls, int32(SYS_preadv), fd, int32(iov), count, int32(ofs), int32(ofs>>Int32FromInt32(32)), 0))) +} + +func Xpwrite(tls *TLS, fd int32, buf uintptr, size Tsize_t, ofs Toff_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v size=%v ofs=%v, (%v:)", tls, fd, buf, size, ofs, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(___syscall_cp(tls, int32(SYS_pwrite64), fd, int32(buf), Int32FromUint32(size), int32(Int32FromInt32(0)), int32(ofs), int32(ofs>>Int32FromInt32(32))))) +} + +func Xpwritev(tls *TLS, fd int32, iov uintptr, count int32, ofs Toff_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v iov=%v count=%v ofs=%v, (%v:)", tls, fd, iov, count, ofs, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(___syscall_cp(tls, int32(SYS_pwritev), fd, int32(iov), count, int32(ofs), int32(ofs>>Int32FromInt32(32)), 0))) +} + +func Xread(tls *TLS, fd int32, buf uintptr, count Tsize_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v count=%v, (%v:)", tls, fd, buf, count, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(___syscall_cp(tls, int32(SYS_read), fd, int32(buf), Int32FromUint32(count), 0, 0, 0))) +} + +func Xreadlink(tls *TLS, path uintptr, buf uintptr, bufsize Tsize_t) (r1 Tssize_t) { + if __ccgo_strace { + trc("tls=%v path=%v buf=%v bufsize=%v, (%v:)", tls, path, buf, bufsize, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var r int32 + var _ /* dummy at bp+0 */ [1]uint8 + _ = r + if !(bufsize != 0) { + buf = bp + bufsize = uint32(1) + } + r = int32(X__syscall3(tls, int32(SYS_readlink), int32(path), int32(buf), Int32FromUint32(bufsize))) + if buf == bp && r > 0 { + r = 0 + } + return X__syscall_ret(tls, Uint32FromInt32(r)) +} + +func Xreadlinkat(tls *TLS, fd int32, path uintptr, buf uintptr, bufsize Tsize_t) (r1 Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v path=%v buf=%v bufsize=%v, (%v:)", tls, fd, path, buf, bufsize, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var r int32 + var _ /* dummy at bp+0 */ [1]uint8 + _ = r + if !(bufsize != 0) { + buf = bp + bufsize = uint32(1) + } + r = int32(X__syscall4(tls, int32(SYS_readlinkat), fd, int32(path), int32(buf), Int32FromUint32(bufsize))) + if buf == bp && r > 0 { + r = 0 + } + return X__syscall_ret(tls, Uint32FromInt32(r)) +} + +func Xreadv(tls *TLS, fd int32, iov uintptr, count int32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v iov=%v count=%v, (%v:)", tls, fd, iov, count, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(___syscall_cp(tls, int32(SYS_readv), fd, int32(iov), count, 0, 0, 0))) +} + +func Xrenameat(tls *TLS, oldfd int32, old uintptr, newfd int32, new1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v oldfd=%v old=%v newfd=%v new1=%v, (%v:)", tls, oldfd, old, newfd, new1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall4(tls, int32(SYS_renameat), oldfd, int32(old), newfd, int32(new1)))) +} + +func Xrmdir(tls *TLS, path uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v, (%v:)", tls, path, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall1(tls, int32(SYS_rmdir), int32(path)))) +} + +func Xsetgid(tls *TLS, gid Tgid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v gid=%v, (%v:)", tls, gid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__setxid(tls, int32(SYS_setgid32), Int32FromUint32(gid), 0, 0) +} + +func Xsetpgid(tls *TLS, pid Tpid_t, pgid Tpid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v pid=%v pgid=%v, (%v:)", tls, pid, pgid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_setpgid), pid, pgid))) +} + +func Xsetpgrp(tls *TLS) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xsetpgid(tls, 0, 0) +} + +func Xsetsid(tls *TLS) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall0(tls, int32(SYS_setsid)))) +} + +func Xsetuid(tls *TLS, uid Tuid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v uid=%v, (%v:)", tls, uid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__setxid(tls, int32(SYS_setuid32), Int32FromUint32(uid), 0, 0) +} + +type Tctx2 = struct { + Fid int32 + Feid int32 + Fsid int32 + Fnr int32 + Fret int32 +} + +func _do_setxid(tls *TLS, p uintptr) { + var c uintptr + var ret int32 + _, _ = c, ret + c = p + if (*Tctx2)(unsafe.Pointer(c)).Fret < 0 { + return + } + ret = int32(X__syscall3(tls, (*Tctx2)(unsafe.Pointer(c)).Fnr, (*Tctx2)(unsafe.Pointer(c)).Fid, (*Tctx2)(unsafe.Pointer(c)).Feid, (*Tctx2)(unsafe.Pointer(c)).Fsid)) + if ret != 0 && !((*Tctx2)(unsafe.Pointer(c)).Fret != 0) { + /* If one thread fails to set ids after another has already + * succeeded, forcibly killing the process is the only safe + * thing to do. State is inconsistent and dangerous. Use + * SIGKILL because it is uncatchable. */ + X__block_all_sigs(tls, uintptr(0)) + X__syscall2(tls, int32(SYS_kill), X__syscall0(tls, int32(SYS_getpid)), int32(Int32FromInt32(SIGKILL))) + } + (*Tctx2)(unsafe.Pointer(c)).Fret = ret +} + +func X__setxid(tls *TLS, nr int32, id int32, eid int32, sid int32) (r int32) { + if __ccgo_strace { + trc("tls=%v nr=%v id=%v eid=%v sid=%v, (%v:)", tls, nr, id, eid, sid, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var v1 int32 + var _ /* c at bp+0 */ Tctx2 + _ = v1 + /* ret is initially nonzero so that failure of the first thread does not + * trigger the safety kill above. */ + **(**Tctx2)(__ccgo_up(bp)) = Tctx2{ + Fid: id, + Feid: eid, + Fsid: sid, + Fnr: nr, + Fret: int32(1), + } + ___synccall(tls, __ccgo_fp(_do_setxid), bp) + if (**(**Tctx2)(__ccgo_up(bp))).Fret > 0 { + v1 = -int32(EAGAIN) + } else { + v1 = (**(**Tctx2)(__ccgo_up(bp))).Fret + } + return X__syscall_ret(tls, Uint32FromInt32(v1)) +} + +func Xsleep(tls *TLS, seconds uint32) (r uint32) { + if __ccgo_strace { + trc("tls=%v seconds=%v, (%v:)", tls, seconds, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* tv at bp+0 */ Ttimespec + **(**Ttimespec)(__ccgo_up(bp)) = Ttimespec{ + Ftv_sec: Int64FromUint32(seconds), + } + if Xnanosleep(tls, bp, bp) != 0 { + return Uint32FromInt64((**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec) + } + return uint32(0) +} + +func Xsymlink(tls *TLS, existing uintptr, new1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v existing=%v new1=%v, (%v:)", tls, existing, new1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall2(tls, int32(SYS_symlink), int32(existing), int32(new1)))) +} + +func Xsymlinkat(tls *TLS, existing uintptr, fd int32, new1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v existing=%v fd=%v new1=%v, (%v:)", tls, existing, fd, new1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_symlinkat), int32(existing), fd, int32(new1)))) +} + +func Xsync(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + X__syscall0(tls, int32(SYS_sync)) +} + +func Xtcgetpgrp(tls *TLS, fd int32) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var _ /* pgrp at bp+0 */ int32 + if Xioctl(tls, fd, int32(TIOCGPGRP), VaList(bp+16, bp)) < 0 { + return -int32(1) + } + return **(**int32)(__ccgo_up(bp)) +} + +func Xtcsetpgrp(tls *TLS, fd int32, pgrp Tpid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v pgrp=%v, (%v:)", tls, fd, pgrp, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var _ /* pgrp_int at bp+0 */ int32 + **(**int32)(__ccgo_up(bp)) = pgrp + return Xioctl(tls, fd, int32(TIOCSPGRP), VaList(bp+16, bp)) +} + +func Xtruncate(tls *TLS, path uintptr, length Toff_t) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v length=%v, (%v:)", tls, path, length, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall4(tls, int32(SYS_truncate64), int32(path), int32(Int32FromInt32(0)), int32(length), int32(length>>Int32FromInt32(32))))) +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xttyname(tls *TLS, fd int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + var result, v1 int32 + _, _ = result, v1 + v1 = Xttyname_r(tls, fd, uintptr(unsafe.Pointer(&_buf10)), uint32(32)) + result = v1 + if v1 != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = result + return UintptrFromInt32(0) + } + return uintptr(unsafe.Pointer(&_buf10)) +} + +var _buf10 [32]uint8 + +func Xttyname_r(tls *TLS, fd int32, name uintptr, size Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v name=%v size=%v, (%v:)", tls, fd, name, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(336) + defer tls.Free(336) + var l Tssize_t + var _ /* procname at bp+304 */ [29]uint8 + var _ /* st1 at bp+0 */ Tstat + var _ /* st2 at bp+152 */ Tstat + _ = l + if !(Xisatty(tls, fd) != 0) { + return **(**int32)(__ccgo_up(X__errno_location(tls))) + } + X__procfdname(tls, bp+304, Uint32FromInt32(fd)) + l = Xreadlink(tls, bp+304, name, size) + if l < 0 { + return **(**int32)(__ccgo_up(X__errno_location(tls))) + } else { + if Uint32FromInt32(l) == size { + return int32(ERANGE) + } + } + **(**uint8)(__ccgo_up(name + uintptr(l))) = uint8(0) + if Xstat(tls, name, bp) != 0 || Xfstat(tls, fd, bp+152) != 0 { + return **(**int32)(__ccgo_up(X__errno_location(tls))) + } + if (**(**Tstat)(__ccgo_up(bp))).Fst_dev != (**(**Tstat)(__ccgo_up(bp + 152))).Fst_dev || (**(**Tstat)(__ccgo_up(bp))).Fst_ino != (**(**Tstat)(__ccgo_up(bp + 152))).Fst_ino { + return int32(ENODEV) + } + return 0 +} + +func Xualarm(tls *TLS, value uint32, interval uint32) (r uint32) { + if __ccgo_strace { + trc("tls=%v value=%v interval=%v, (%v:)", tls, value, interval, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var _ /* it at bp+0 */ Titimerval + var _ /* it_old at bp+32 */ Titimerval + **(**Titimerval)(__ccgo_up(bp)) = Titimerval{ + Fit_interval: Ttimeval{ + Ftv_usec: Int64FromUint32(interval), + }, + Fit_value: Ttimeval{ + Ftv_usec: Int64FromUint32(value), + }, + } + Xsetitimer(tls, ITIMER_REAL, bp, bp+32) + return Uint32FromInt64((**(**Titimerval)(__ccgo_up(bp + 32))).Fit_value.Ftv_sec*int64(1000000) + (**(**Titimerval)(__ccgo_up(bp + 32))).Fit_value.Ftv_usec) +} + +func Xunlink(tls *TLS, path uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v, (%v:)", tls, path, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall1(tls, int32(SYS_unlink), int32(path)))) +} + +func Xunlinkat(tls *TLS, fd int32, path uintptr, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v path=%v flag=%v, (%v:)", tls, fd, path, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(X__syscall3(tls, int32(SYS_unlinkat), fd, int32(path), flag))) +} + +func Xusleep(tls *TLS, useconds uint32) (r int32) { + if __ccgo_strace { + trc("tls=%v useconds=%v, (%v:)", tls, useconds, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* tv at bp+0 */ Ttimespec + **(**Ttimespec)(__ccgo_up(bp)) = Ttimespec{ + Ftv_sec: Int64FromUint32(useconds / uint32(1000000)), + Ftv_nsec: Int32FromUint32(useconds % uint32(1000000) * uint32(1000)), + } + return Xnanosleep(tls, bp, bp) +} + +func Xwrite(tls *TLS, fd int32, buf uintptr, count Tsize_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v count=%v, (%v:)", tls, fd, buf, count, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(___syscall_cp(tls, int32(SYS_write), fd, int32(buf), Int32FromUint32(count), 0, 0, 0))) +} + +func Xwritev(tls *TLS, fd int32, iov uintptr, count int32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v iov=%v count=%v, (%v:)", tls, fd, iov, count, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint32FromInt32(___syscall_cp(tls, int32(SYS_writev), fd, int32(iov), count, 0, 0, 0))) +} + +type Ttime32_t = int32 + +type Ttimeval32 = struct { + Ftv_sec int32 + Ftv_usec int32 +} + +type Titimerval32 = struct { + Fit_interval Ttimeval32 + Fit_value Ttimeval32 +} + +type Ttimespec32 = struct { + Ftv_sec int32 + Ftv_nsec int32 +} + +type Titimerspec32 = struct { + Fit_interval Ttimespec32 + Fit_value Ttimespec32 +} + +func X__fxstat(tls *TLS, ver int32, fd int32, buf uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v ver=%v fd=%v buf=%v, (%v:)", tls, ver, fd, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fstat_time32(tls, fd, buf) +} + +func X__fxstatat(tls *TLS, ver int32, fd int32, path uintptr, buf uintptr, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v ver=%v fd=%v path=%v buf=%v flag=%v, (%v:)", tls, ver, fd, path, buf, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fstatat_time32(tls, fd, path, buf, flag) +} + +func X__lxstat(tls *TLS, ver int32, path uintptr, buf uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v ver=%v path=%v buf=%v, (%v:)", tls, ver, path, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lstat_time32(tls, path, buf) +} + +func X__xstat(tls *TLS, ver int32, path uintptr, buf uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v ver=%v path=%v buf=%v, (%v:)", tls, ver, path, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__stat_time32(tls, path, buf) +} + +type Tregister_t = int32 + +type Tu_int64_t = uint64 + +type Tu_int8_t = uint8 + +type Tu_int16_t = uint16 + +type Tu_int32_t = uint32 + +type Tcaddr_t = uintptr + +type Tu_char = uint8 + +type Tu_short = uint16 + +type Tushort = uint16 + +type Tu_int = uint32 + +type Tuint = uint32 + +type Tu_long = uint32 + +type Tulong = uint32 + +type Tquad_t = int64 + +type Tu_quad_t = uint64 + +func X__adjtime32(tls *TLS, in32 uintptr, out32 uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v in32=%v out32=%v, (%v:)", tls, in32, out32, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var r int32 + var _ /* out at bp+16 */ Ttimeval + _ = r + *(*Ttimeval)(unsafe.Pointer(bp)) = Ttimeval{ + Ftv_sec: int64((*Ttimeval32)(unsafe.Pointer(in32)).Ftv_sec), + Ftv_usec: int64((*Ttimeval32)(unsafe.Pointer(in32)).Ftv_usec), + } + r = Xadjtime(tls, bp, bp+16) + if r != 0 { + return r + } + /* We can't range-check the result because success was already + * committed by the above call. */ + if out32 != 0 { + (*Ttimeval32)(unsafe.Pointer(out32)).Ftv_sec = int32((**(**Ttimeval)(__ccgo_up(bp + 16))).Ftv_sec) + (*Ttimeval32)(unsafe.Pointer(out32)).Ftv_usec = int32((**(**Ttimeval)(__ccgo_up(bp + 16))).Ftv_usec) + } + return r +} + +func X__adjtimex_time32(tls *TLS, tx32 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v tx32=%v, (%v:)", tls, tx32, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__clock_adjtime32(tls, CLOCK_REALTIME, tx32) +} + +type Ttimex32 = struct { + Fmodes uint32 + Foffset int32 + Ffreq int32 + Fmaxerror int32 + Festerror int32 + Fstatus int32 + Fconstant int32 + Fprecision int32 + Ftolerance int32 + Ftime Ttimeval32 + Ftick int32 + Fppsfreq int32 + Fjitter int32 + Fshift int32 + Fstabil int32 + Fjitcnt int32 + Fcalcnt int32 + Ferrcnt int32 + Fstbcnt int32 + Ftai int32 + F__padding [11]int32 +} + +func X__clock_adjtime32(tls *TLS, clock_id Tclockid_t, tx32 uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v clock_id=%v tx32=%v, (%v:)", tls, clock_id, tx32, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(144) + defer tls.Free(144) + var r int32 + var _ /* utx at bp+0 */ Ttimex + _ = r + **(**Ttimex)(__ccgo_up(bp)) = Ttimex{ + Fmodes: (*Ttimex32)(unsafe.Pointer(tx32)).Fmodes, + Foffset: (*Ttimex32)(unsafe.Pointer(tx32)).Foffset, + Ffreq: (*Ttimex32)(unsafe.Pointer(tx32)).Ffreq, + Fmaxerror: (*Ttimex32)(unsafe.Pointer(tx32)).Fmaxerror, + Festerror: (*Ttimex32)(unsafe.Pointer(tx32)).Festerror, + Fstatus: (*Ttimex32)(unsafe.Pointer(tx32)).Fstatus, + Fconstant: (*Ttimex32)(unsafe.Pointer(tx32)).Fconstant, + Fprecision: (*Ttimex32)(unsafe.Pointer(tx32)).Fprecision, + Ftolerance: (*Ttimex32)(unsafe.Pointer(tx32)).Ftolerance, + Ftime: Ttimeval{ + Ftv_sec: int64((*Ttimex32)(unsafe.Pointer(tx32)).Ftime.Ftv_sec), + Ftv_usec: int64((*Ttimex32)(unsafe.Pointer(tx32)).Ftime.Ftv_usec), + }, + Ftick: (*Ttimex32)(unsafe.Pointer(tx32)).Ftick, + Fppsfreq: (*Ttimex32)(unsafe.Pointer(tx32)).Fppsfreq, + Fjitter: (*Ttimex32)(unsafe.Pointer(tx32)).Fjitter, + Fshift: (*Ttimex32)(unsafe.Pointer(tx32)).Fshift, + Fstabil: (*Ttimex32)(unsafe.Pointer(tx32)).Fstabil, + Fjitcnt: (*Ttimex32)(unsafe.Pointer(tx32)).Fjitcnt, + Fcalcnt: (*Ttimex32)(unsafe.Pointer(tx32)).Fcalcnt, + Ferrcnt: (*Ttimex32)(unsafe.Pointer(tx32)).Ferrcnt, + Fstbcnt: (*Ttimex32)(unsafe.Pointer(tx32)).Fstbcnt, + Ftai: (*Ttimex32)(unsafe.Pointer(tx32)).Ftai, + } + r = Xclock_adjtime(tls, clock_id, bp) + if r < 0 { + return r + } + (*Ttimex32)(unsafe.Pointer(tx32)).Fmodes = (**(**Ttimex)(__ccgo_up(bp))).Fmodes + (*Ttimex32)(unsafe.Pointer(tx32)).Foffset = (**(**Ttimex)(__ccgo_up(bp))).Foffset + (*Ttimex32)(unsafe.Pointer(tx32)).Ffreq = (**(**Ttimex)(__ccgo_up(bp))).Ffreq + (*Ttimex32)(unsafe.Pointer(tx32)).Fmaxerror = (**(**Ttimex)(__ccgo_up(bp))).Fmaxerror + (*Ttimex32)(unsafe.Pointer(tx32)).Festerror = (**(**Ttimex)(__ccgo_up(bp))).Festerror + (*Ttimex32)(unsafe.Pointer(tx32)).Fstatus = (**(**Ttimex)(__ccgo_up(bp))).Fstatus + (*Ttimex32)(unsafe.Pointer(tx32)).Fconstant = (**(**Ttimex)(__ccgo_up(bp))).Fconstant + (*Ttimex32)(unsafe.Pointer(tx32)).Fprecision = (**(**Ttimex)(__ccgo_up(bp))).Fprecision + (*Ttimex32)(unsafe.Pointer(tx32)).Ftolerance = (**(**Ttimex)(__ccgo_up(bp))).Ftolerance + (*Ttimex32)(unsafe.Pointer(tx32)).Ftime.Ftv_sec = int32((**(**Ttimex)(__ccgo_up(bp))).Ftime.Ftv_sec) + (*Ttimex32)(unsafe.Pointer(tx32)).Ftime.Ftv_usec = int32((**(**Ttimex)(__ccgo_up(bp))).Ftime.Ftv_usec) + (*Ttimex32)(unsafe.Pointer(tx32)).Ftick = (**(**Ttimex)(__ccgo_up(bp))).Ftick + (*Ttimex32)(unsafe.Pointer(tx32)).Fppsfreq = (**(**Ttimex)(__ccgo_up(bp))).Fppsfreq + (*Ttimex32)(unsafe.Pointer(tx32)).Fjitter = (**(**Ttimex)(__ccgo_up(bp))).Fjitter + (*Ttimex32)(unsafe.Pointer(tx32)).Fshift = (**(**Ttimex)(__ccgo_up(bp))).Fshift + (*Ttimex32)(unsafe.Pointer(tx32)).Fstabil = (**(**Ttimex)(__ccgo_up(bp))).Fstabil + (*Ttimex32)(unsafe.Pointer(tx32)).Fjitcnt = (**(**Ttimex)(__ccgo_up(bp))).Fjitcnt + (*Ttimex32)(unsafe.Pointer(tx32)).Fcalcnt = (**(**Ttimex)(__ccgo_up(bp))).Fcalcnt + (*Ttimex32)(unsafe.Pointer(tx32)).Ferrcnt = (**(**Ttimex)(__ccgo_up(bp))).Ferrcnt + (*Ttimex32)(unsafe.Pointer(tx32)).Fstbcnt = (**(**Ttimex)(__ccgo_up(bp))).Fstbcnt + (*Ttimex32)(unsafe.Pointer(tx32)).Ftai = (**(**Ttimex)(__ccgo_up(bp))).Ftai + return r +} + +func X__clock_getres_time32(tls *TLS, clk Tclockid_t, ts32 uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v clk=%v ts32=%v, (%v:)", tls, clk, ts32, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var r int32 + var _ /* ts at bp+0 */ Ttimespec + _ = r + r = Xclock_getres(tls, clk, bp) + if !(r != 0) && ts32 != 0 { + (*Ttimespec32)(unsafe.Pointer(ts32)).Ftv_sec = int32((**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec) + (*Ttimespec32)(unsafe.Pointer(ts32)).Ftv_nsec = (**(**Ttimespec)(__ccgo_up(bp))).Ftv_nsec + } + return r +} + +func X__clock_gettime32(tls *TLS, clk Tclockid_t, ts32 uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v clk=%v ts32=%v, (%v:)", tls, clk, ts32, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var r int32 + var _ /* ts at bp+0 */ Ttimespec + _ = r + r = Xclock_gettime(tls, clk, bp) + if r != 0 { + return r + } + if (**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec < int64(-Int32FromInt32(1)-Int32FromInt32(0x7fffffff)) || (**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec > int64(Int32FromInt32(INT32_MAX)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOVERFLOW) + return -int32(1) + } + (*Ttimespec32)(unsafe.Pointer(ts32)).Ftv_sec = int32((**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec) + (*Ttimespec32)(unsafe.Pointer(ts32)).Ftv_nsec = (**(**Ttimespec)(__ccgo_up(bp))).Ftv_nsec + return 0 +} + +func X__clock_nanosleep_time32(tls *TLS, clk Tclockid_t, flags int32, req32 uintptr, rem32 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v clk=%v flags=%v req32=%v rem32=%v, (%v:)", tls, clk, flags, req32, rem32, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var ret int32 + var _ /* rem at bp+16 */ Ttimespec + _ = ret + *(*Ttimespec)(unsafe.Pointer(bp)) = Ttimespec{ + Ftv_sec: int64((*Ttimespec32)(unsafe.Pointer(req32)).Ftv_sec), + Ftv_nsec: (*Ttimespec32)(unsafe.Pointer(req32)).Ftv_nsec, + } + ret = Xclock_nanosleep(tls, clk, flags, bp, bp+16) + if ret == int32(EINTR) && rem32 != 0 && !(flags&Int32FromInt32(TIMER_ABSTIME) != 0) { + (*Ttimespec32)(unsafe.Pointer(rem32)).Ftv_sec = int32((**(**Ttimespec)(__ccgo_up(bp + 16))).Ftv_sec) + (*Ttimespec32)(unsafe.Pointer(rem32)).Ftv_nsec = (**(**Ttimespec)(__ccgo_up(bp + 16))).Ftv_nsec + } + return ret +} + +func X__clock_settime32(tls *TLS, clk Tclockid_t, ts32 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v clk=%v ts32=%v, (%v:)", tls, clk, ts32, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + *(*Ttimespec)(unsafe.Pointer(bp)) = Ttimespec{ + Ftv_sec: int64((*Ttimespec32)(unsafe.Pointer(ts32)).Ftv_sec), + Ftv_nsec: (*Ttimespec32)(unsafe.Pointer(ts32)).Ftv_nsec, + } + return Xclock_settime(tls, clk, bp) +} + +func X__ctime32(tls *TLS, t uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v, (%v:)", tls, t, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + *(*Ttime_t)(unsafe.Pointer(bp)) = int64(**(**Ttime32_t)(__ccgo_up(t))) + return Xctime(tls, bp) +} + +func X__ctime32_r(tls *TLS, t uintptr, buf uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v buf=%v, (%v:)", tls, t, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + *(*Ttime_t)(unsafe.Pointer(bp)) = int64(**(**Ttime32_t)(__ccgo_up(t))) + return Xctime_r(tls, bp, buf) +} + +func X__difftime32(tls *TLS, t1 Ttime32_t, t2 Ttime32_t) (r float64) { + if __ccgo_strace { + trc("tls=%v t1=%v t2=%v, (%v:)", tls, t1, t2, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xdifftime(tls, int64(t1), int64(t2)) +} + +func X__fstat_time32(tls *TLS, fd int32, st32 uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v st32=%v, (%v:)", tls, fd, st32, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(160) + defer tls.Free(160) + var r int32 + var _ /* st at bp+0 */ Tstat + _ = r + r = Xfstat(tls, fd, bp) + if !(r != 0) { + _memcpy(tls, st32, bp, uint32(UintptrFromInt32(0)+104)) + } + return r +} + +func X__fstatat_time32(tls *TLS, fd int32, path uintptr, st32 uintptr, flag int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v path=%v st32=%v flag=%v, (%v:)", tls, fd, path, st32, flag, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(160) + defer tls.Free(160) + var r int32 + var _ /* st at bp+0 */ Tstat + _ = r + r = Xfstatat(tls, fd, path, bp, flag) + if !(r != 0) { + _memcpy(tls, st32, bp, uint32(UintptrFromInt32(0)+104)) + } + return r +} + +type Ttimeb32 = struct { + Ftime Tint32_t + Fmillitm uint16 + Ftimezone int16 + Fdstflag int16 +} + +func X__ftime32(tls *TLS, tp uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v tp=%v, (%v:)", tls, tp, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* tb at bp+0 */ Ttimeb + if Xftime(tls, bp) < 0 { + return -int32(1) + } + if (**(**Ttimeb)(__ccgo_up(bp))).Ftime < int64(-Int32FromInt32(1)-Int32FromInt32(0x7fffffff)) || (**(**Ttimeb)(__ccgo_up(bp))).Ftime > int64(Int32FromInt32(INT32_MAX)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOVERFLOW) + return -int32(1) + } + (*Ttimeb32)(unsafe.Pointer(tp)).Ftime = int32((**(**Ttimeb)(__ccgo_up(bp))).Ftime) + (*Ttimeb32)(unsafe.Pointer(tp)).Fmillitm = (**(**Ttimeb)(__ccgo_up(bp))).Fmillitm + (*Ttimeb32)(unsafe.Pointer(tp)).Ftimezone = (**(**Ttimeb)(__ccgo_up(bp))).Ftimezone + (*Ttimeb32)(unsafe.Pointer(tp)).Fdstflag = (**(**Ttimeb)(__ccgo_up(bp))).Fdstflag + return 0 +} + +func X__futimens_time32(tls *TLS, fd int32, times32 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v times32=%v, (%v:)", tls, fd, times32, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var v1 uintptr + _ = v1 + if !(times32 != 0) { + v1 = uintptr(0) + } else { + *(*[2]Ttimespec)(unsafe.Pointer(bp)) = [2]Ttimespec{ + 0: { + Ftv_sec: int64((**(**Ttimespec32)(__ccgo_up(times32))).Ftv_sec), + Ftv_nsec: (**(**Ttimespec32)(__ccgo_up(times32))).Ftv_nsec, + }, + 1: { + Ftv_sec: int64((**(**Ttimespec32)(__ccgo_up(times32 + 1*8))).Ftv_sec), + Ftv_nsec: (**(**Ttimespec32)(__ccgo_up(times32 + 1*8))).Ftv_nsec, + }, + } + v1 = bp + } + return Xfutimens(tls, fd, v1) +} + +func X__futimes_time32(tls *TLS, fd int32, times32 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v times32=%v, (%v:)", tls, fd, times32, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var v1 uintptr + _ = v1 + if !(times32 != 0) { + v1 = uintptr(0) + } else { + *(*[2]Ttimeval)(unsafe.Pointer(bp)) = [2]Ttimeval{ + 0: { + Ftv_sec: int64((**(**Ttimeval32)(__ccgo_up(times32))).Ftv_sec), + Ftv_usec: int64((**(**Ttimeval32)(__ccgo_up(times32))).Ftv_usec), + }, + 1: { + Ftv_sec: int64((**(**Ttimeval32)(__ccgo_up(times32 + 1*8))).Ftv_sec), + Ftv_usec: int64((**(**Ttimeval32)(__ccgo_up(times32 + 1*8))).Ftv_usec), + }, + } + v1 = bp + } + return Xfutimes(tls, fd, v1) +} + +func X__futimesat_time32(tls *TLS, dirfd int32, pathname uintptr, times32 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v dirfd=%v pathname=%v times32=%v, (%v:)", tls, dirfd, pathname, times32, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var v1 uintptr + _ = v1 + if !(times32 != 0) { + v1 = uintptr(0) + } else { + *(*[2]Ttimeval)(unsafe.Pointer(bp)) = [2]Ttimeval{ + 0: { + Ftv_sec: int64((**(**Ttimeval32)(__ccgo_up(times32))).Ftv_sec), + Ftv_usec: int64((**(**Ttimeval32)(__ccgo_up(times32))).Ftv_usec), + }, + 1: { + Ftv_sec: int64((**(**Ttimeval32)(__ccgo_up(times32 + 1*8))).Ftv_sec), + Ftv_usec: int64((**(**Ttimeval32)(__ccgo_up(times32 + 1*8))).Ftv_usec), + }, + } + v1 = bp + } + return Xfutimesat(tls, dirfd, pathname, v1) +} + +func X__getitimer_time32(tls *TLS, which int32, old32 uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v which=%v old32=%v, (%v:)", tls, which, old32, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var r int32 + var _ /* old at bp+0 */ Titimerval + _ = r + r = Xgetitimer(tls, which, bp) + if r != 0 { + return r + } + (*Titimerval32)(unsafe.Pointer(old32)).Fit_interval.Ftv_sec = int32((**(**Titimerval)(__ccgo_up(bp))).Fit_interval.Ftv_sec) + (*Titimerval32)(unsafe.Pointer(old32)).Fit_interval.Ftv_usec = int32((**(**Titimerval)(__ccgo_up(bp))).Fit_interval.Ftv_usec) + (*Titimerval32)(unsafe.Pointer(old32)).Fit_value.Ftv_sec = int32((**(**Titimerval)(__ccgo_up(bp))).Fit_value.Ftv_sec) + (*Titimerval32)(unsafe.Pointer(old32)).Fit_value.Ftv_usec = int32((**(**Titimerval)(__ccgo_up(bp))).Fit_value.Ftv_usec) + return 0 +} + +type Tcompat_rusage = struct { + Fru_utime Ttimeval32 + Fru_stime Ttimeval32 + Fru_maxrss int32 + Fru_ixrss int32 + Fru_idrss int32 + Fru_isrss int32 + Fru_minflt int32 + Fru_majflt int32 + Fru_nswap int32 + Fru_inblock int32 + Fru_oublock int32 + Fru_msgsnd int32 + Fru_msgrcv int32 + Fru_nsignals int32 + Fru_nvcsw int32 + Fru_nivcsw int32 +} + +func X__getrusage_time32(tls *TLS, who int32, usage uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v who=%v usage=%v, (%v:)", tls, who, usage, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(160) + defer tls.Free(160) + var r int32 + var _ /* ru at bp+0 */ Trusage + _ = r + r = Xgetrusage(tls, who, bp) + if !(r != 0) { + (*Tcompat_rusage)(unsafe.Pointer(usage)).Fru_utime.Ftv_sec = int32((**(**Trusage)(__ccgo_up(bp))).Fru_utime.Ftv_sec) + (*Tcompat_rusage)(unsafe.Pointer(usage)).Fru_utime.Ftv_usec = int32((**(**Trusage)(__ccgo_up(bp))).Fru_utime.Ftv_usec) + (*Tcompat_rusage)(unsafe.Pointer(usage)).Fru_stime.Ftv_sec = int32((**(**Trusage)(__ccgo_up(bp))).Fru_stime.Ftv_sec) + (*Tcompat_rusage)(unsafe.Pointer(usage)).Fru_stime.Ftv_usec = int32((**(**Trusage)(__ccgo_up(bp))).Fru_stime.Ftv_usec) + _memcpy(tls, usage+16, bp+32, Uint32FromInt64(72)-uint32(UintptrFromInt32(0)+16)) + } + return r +} + +func X__gettimeofday_time32(tls *TLS, tv32 uintptr, tz uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v tv32=%v tz=%v, (%v:)", tls, tv32, tz, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var r int32 + var _ /* tv at bp+0 */ Ttimeval + _ = r + if !(tv32 != 0) { + return 0 + } + r = Xgettimeofday(tls, bp, uintptr(0)) + if r != 0 { + return r + } + if (**(**Ttimeval)(__ccgo_up(bp))).Ftv_sec < int64(-Int32FromInt32(1)-Int32FromInt32(0x7fffffff)) || (**(**Ttimeval)(__ccgo_up(bp))).Ftv_sec > int64(Int32FromInt32(INT32_MAX)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOVERFLOW) + return -int32(1) + } + (*Ttimeval32)(unsafe.Pointer(tv32)).Ftv_sec = int32((**(**Ttimeval)(__ccgo_up(bp))).Ftv_sec) + (*Ttimeval32)(unsafe.Pointer(tv32)).Ftv_usec = int32((**(**Ttimeval)(__ccgo_up(bp))).Ftv_usec) + return 0 +} + +func X__gmtime32(tls *TLS, t uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v, (%v:)", tls, t, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + *(*Ttime_t)(unsafe.Pointer(bp)) = int64(**(**Ttime32_t)(__ccgo_up(t))) + return Xgmtime(tls, bp) +} + +func X__gmtime32_r(tls *TLS, t uintptr, tm uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v tm=%v, (%v:)", tls, t, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + *(*Ttime_t)(unsafe.Pointer(bp)) = int64(**(**Ttime32_t)(__ccgo_up(t))) + return Xgmtime_r(tls, bp, tm) +} + +func X__localtime32(tls *TLS, t uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v, (%v:)", tls, t, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + *(*Ttime_t)(unsafe.Pointer(bp)) = int64(**(**Ttime32_t)(__ccgo_up(t))) + return Xlocaltime(tls, bp) +} + +func X__localtime32_r(tls *TLS, t uintptr, tm uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v tm=%v, (%v:)", tls, t, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + *(*Ttime_t)(unsafe.Pointer(bp)) = int64(**(**Ttime32_t)(__ccgo_up(t))) + return Xlocaltime_r(tls, bp, tm) +} + +func X__lstat_time32(tls *TLS, path uintptr, st32 uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v path=%v st32=%v, (%v:)", tls, path, st32, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(160) + defer tls.Free(160) + var r int32 + var _ /* st at bp+0 */ Tstat + _ = r + r = Xlstat(tls, path, bp) + if !(r != 0) { + _memcpy(tls, st32, bp, uint32(UintptrFromInt32(0)+104)) + } + return r +} + +func X__lutimes_time32(tls *TLS, path uintptr, times32 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v times32=%v, (%v:)", tls, path, times32, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var v1 uintptr + _ = v1 + if !(times32 != 0) { + v1 = uintptr(0) + } else { + *(*[2]Ttimeval)(unsafe.Pointer(bp)) = [2]Ttimeval{ + 0: { + Ftv_sec: int64((**(**Ttimeval32)(__ccgo_up(times32))).Ftv_sec), + Ftv_usec: int64((**(**Ttimeval32)(__ccgo_up(times32))).Ftv_usec), + }, + 1: { + Ftv_sec: int64((**(**Ttimeval32)(__ccgo_up(times32 + 1*8))).Ftv_sec), + Ftv_usec: int64((**(**Ttimeval32)(__ccgo_up(times32 + 1*8))).Ftv_usec), + }, + } + v1 = bp + } + return Xlutimes(tls, path, v1) +} + +func X__mktime32(tls *TLS, tm uintptr) (r Ttime32_t) { + if __ccgo_strace { + trc("tls=%v tm=%v, (%v:)", tls, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + var t Ttime_t + var _ /* tmp at bp+0 */ Ttm + _ = t + **(**Ttm)(__ccgo_up(bp)) = **(**Ttm)(__ccgo_up(tm)) + t = Xmktime(tls, bp) + if t < int64(-Int32FromInt32(1)-Int32FromInt32(0x7fffffff)) || t > int64(Int32FromInt32(INT32_MAX)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOVERFLOW) + return -int32(1) + } + **(**Ttm)(__ccgo_up(tm)) = **(**Ttm)(__ccgo_up(bp)) + return int32(t) +} + +func X__nanosleep_time32(tls *TLS, req32 uintptr, rem32 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v req32=%v rem32=%v, (%v:)", tls, req32, rem32, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var ret int32 + var _ /* rem at bp+16 */ Ttimespec + _ = ret + *(*Ttimespec)(unsafe.Pointer(bp)) = Ttimespec{ + Ftv_sec: int64((*Ttimespec32)(unsafe.Pointer(req32)).Ftv_sec), + Ftv_nsec: (*Ttimespec32)(unsafe.Pointer(req32)).Ftv_nsec, + } + ret = Xnanosleep(tls, bp, bp+16) + if ret < 0 && **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EINTR) && rem32 != 0 { + (*Ttimespec32)(unsafe.Pointer(rem32)).Ftv_sec = int32((**(**Ttimespec)(__ccgo_up(bp + 16))).Ftv_sec) + (*Ttimespec32)(unsafe.Pointer(rem32)).Ftv_nsec = (**(**Ttimespec)(__ccgo_up(bp + 16))).Ftv_nsec + } + return ret +} + +func X__ppoll_time32(tls *TLS, fds uintptr, n Tnfds_t, ts32 uintptr, mask uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fds=%v n=%v ts32=%v mask=%v, (%v:)", tls, fds, n, ts32, mask, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uintptr + _ = v1 + if !(ts32 != 0) { + v1 = uintptr(0) + } else { + *(*Ttimespec)(unsafe.Pointer(bp)) = Ttimespec{ + Ftv_sec: int64((*Ttimespec32)(unsafe.Pointer(ts32)).Ftv_sec), + Ftv_nsec: (*Ttimespec32)(unsafe.Pointer(ts32)).Ftv_nsec, + } + v1 = bp + } + return Xppoll(tls, fds, n, v1, mask) +} + +func X__pselect_time32(tls *TLS, n int32, rfds uintptr, wfds uintptr, efds uintptr, ts32 uintptr, mask uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v n=%v rfds=%v wfds=%v efds=%v ts32=%v mask=%v, (%v:)", tls, n, rfds, wfds, efds, ts32, mask, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uintptr + _ = v1 + if !(ts32 != 0) { + v1 = uintptr(0) + } else { + *(*Ttimespec)(unsafe.Pointer(bp)) = Ttimespec{ + Ftv_sec: int64((*Ttimespec32)(unsafe.Pointer(ts32)).Ftv_sec), + Ftv_nsec: (*Ttimespec32)(unsafe.Pointer(ts32)).Ftv_nsec, + } + v1 = bp + } + return Xpselect(tls, n, rfds, wfds, efds, v1, mask) +} + +func X__recvmmsg_time32(tls *TLS, fd int32, msgvec uintptr, vlen uint32, flags uint32, ts32 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v msgvec=%v vlen=%v flags=%v ts32=%v, (%v:)", tls, fd, msgvec, vlen, flags, ts32, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uintptr + _ = v1 + if ts32 != 0 { + *(*Ttimespec)(unsafe.Pointer(bp)) = Ttimespec{ + Ftv_sec: int64((*Ttimespec32)(unsafe.Pointer(ts32)).Ftv_sec), + Ftv_nsec: (*Ttimespec32)(unsafe.Pointer(ts32)).Ftv_nsec, + } + v1 = bp + } else { + v1 = uintptr(0) + } + return Xrecvmmsg(tls, fd, msgvec, vlen, flags, v1) +} + +func X__select_time32(tls *TLS, n int32, rfds uintptr, wfds uintptr, efds uintptr, tv32 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v n=%v rfds=%v wfds=%v efds=%v tv32=%v, (%v:)", tls, n, rfds, wfds, efds, tv32, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uintptr + _ = v1 + if !(tv32 != 0) { + v1 = uintptr(0) + } else { + *(*Ttimeval)(unsafe.Pointer(bp)) = Ttimeval{ + Ftv_sec: int64((*Ttimeval32)(unsafe.Pointer(tv32)).Ftv_sec), + Ftv_usec: int64((*Ttimeval32)(unsafe.Pointer(tv32)).Ftv_usec), + } + v1 = bp + } + return Xselect(tls, n, rfds, wfds, efds, v1) +} + +func X__semtimedop_time32(tls *TLS, id int32, buf uintptr, n Tsize_t, ts32 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v id=%v buf=%v n=%v ts32=%v, (%v:)", tls, id, buf, n, ts32, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uintptr + _ = v1 + if !(ts32 != 0) { + v1 = uintptr(0) + } else { + *(*Ttimespec)(unsafe.Pointer(bp)) = Ttimespec{ + Ftv_sec: int64((*Ttimespec32)(unsafe.Pointer(ts32)).Ftv_sec), + Ftv_nsec: (*Ttimespec32)(unsafe.Pointer(ts32)).Ftv_nsec, + } + v1 = bp + } + return Xsemtimedop(tls, id, buf, n, v1) +} + +func X__setitimer_time32(tls *TLS, which int32, new32 uintptr, old32 uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v which=%v new32=%v old32=%v, (%v:)", tls, which, new32, old32, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var r int32 + var _ /* old at bp+32 */ Titimerval + _ = r + *(*Titimerval)(unsafe.Pointer(bp)) = Titimerval{ + Fit_interval: Ttimeval{ + Ftv_sec: int64((*Titimerval32)(unsafe.Pointer(new32)).Fit_interval.Ftv_sec), + Ftv_usec: int64((*Titimerval32)(unsafe.Pointer(new32)).Fit_interval.Ftv_usec), + }, + Fit_value: Ttimeval{ + Ftv_sec: int64((*Titimerval32)(unsafe.Pointer(new32)).Fit_value.Ftv_sec), + Ftv_usec: int64((*Titimerval32)(unsafe.Pointer(new32)).Fit_value.Ftv_usec), + }, + } + r = Xsetitimer(tls, which, bp, bp+32) + if r != 0 { + return r + } + /* The above call has already committed to success by changing the + * timer setting, so we can't fail on out-of-range old value. + * Since these are relative times, values large enough to overflow + * don't make sense anyway. */ + if old32 != 0 { + (*Titimerval32)(unsafe.Pointer(old32)).Fit_interval.Ftv_sec = int32((**(**Titimerval)(__ccgo_up(bp + 32))).Fit_interval.Ftv_sec) + (*Titimerval32)(unsafe.Pointer(old32)).Fit_interval.Ftv_usec = int32((**(**Titimerval)(__ccgo_up(bp + 32))).Fit_interval.Ftv_usec) + (*Titimerval32)(unsafe.Pointer(old32)).Fit_value.Ftv_sec = int32((**(**Titimerval)(__ccgo_up(bp + 32))).Fit_value.Ftv_sec) + (*Titimerval32)(unsafe.Pointer(old32)).Fit_value.Ftv_usec = int32((**(**Titimerval)(__ccgo_up(bp + 32))).Fit_value.Ftv_usec) + } + return 0 +} + +func X__settimeofday_time32(tls *TLS, tv32 uintptr, tz uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v tv32=%v tz=%v, (%v:)", tls, tv32, tz, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uintptr + _ = v1 + if !(tv32 != 0) { + v1 = uintptr(0) + } else { + *(*Ttimeval)(unsafe.Pointer(bp)) = Ttimeval{ + Ftv_sec: int64((*Ttimeval32)(unsafe.Pointer(tv32)).Ftv_sec), + Ftv_usec: int64((*Ttimeval32)(unsafe.Pointer(tv32)).Ftv_usec), + } + v1 = bp + } + return Xsettimeofday(tls, v1, uintptr(0)) +} + +func X__sigtimedwait_time32(tls *TLS, set uintptr, si uintptr, ts32 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v set=%v si=%v ts32=%v, (%v:)", tls, set, si, ts32, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uintptr + _ = v1 + if !(ts32 != 0) { + v1 = uintptr(0) + } else { + *(*Ttimespec)(unsafe.Pointer(bp)) = Ttimespec{ + Ftv_sec: int64((*Ttimespec32)(unsafe.Pointer(ts32)).Ftv_sec), + Ftv_nsec: (*Ttimespec32)(unsafe.Pointer(ts32)).Ftv_nsec, + } + v1 = bp + } + return Xsigtimedwait(tls, set, si, v1) +} + +func X__stat_time32(tls *TLS, path uintptr, st32 uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v path=%v st32=%v, (%v:)", tls, path, st32, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(160) + defer tls.Free(160) + var r int32 + var _ /* st at bp+0 */ Tstat + _ = r + r = Xstat(tls, path, bp) + if !(r != 0) { + _memcpy(tls, st32, bp, uint32(UintptrFromInt32(0)+104)) + } + return r +} + +func X__stime32(tls *TLS, t uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v t=%v, (%v:)", tls, t, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + *(*Ttime_t)(unsafe.Pointer(bp)) = int64(**(**Ttime32_t)(__ccgo_up(t))) + return Xstime(tls, bp) +} + +func X__time32(tls *TLS, p uintptr) (r Ttime32_t) { + if __ccgo_strace { + trc("tls=%v p=%v, (%v:)", tls, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + var t Ttime_t + _ = t + t = Xtime(tls, uintptr(0)) + if t < int64(-Int32FromInt32(1)-Int32FromInt32(0x7fffffff)) || t > int64(Int32FromInt32(INT32_MAX)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOVERFLOW) + return -int32(1) + } + if p != 0 { + **(**Ttime32_t)(__ccgo_up(p)) = int32(t) + } + return int32(t) +} + +func X__time32gm(tls *TLS, tm uintptr) (r Ttime32_t) { + if __ccgo_strace { + trc("tls=%v tm=%v, (%v:)", tls, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + var t Ttime_t + _ = t + t = Xtimegm(tls, tm) + if t < int64(-Int32FromInt32(1)-Int32FromInt32(0x7fffffff)) || t > int64(Int32FromInt32(INT32_MAX)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOVERFLOW) + return -int32(1) + } + return int32(t) +} + +func X__timer_gettime32(tls *TLS, t Ttimer_t, val32 uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v t=%v val32=%v, (%v:)", tls, t, val32, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var r int32 + var _ /* old at bp+0 */ Titimerspec + _ = r + r = Xtimer_gettime(tls, t, bp) + if r != 0 { + return r + } + /* No range checking for consistency with settime */ + (*Titimerspec32)(unsafe.Pointer(val32)).Fit_interval.Ftv_sec = int32((**(**Titimerspec)(__ccgo_up(bp))).Fit_interval.Ftv_sec) + (*Titimerspec32)(unsafe.Pointer(val32)).Fit_interval.Ftv_nsec = (**(**Titimerspec)(__ccgo_up(bp))).Fit_interval.Ftv_nsec + (*Titimerspec32)(unsafe.Pointer(val32)).Fit_value.Ftv_sec = int32((**(**Titimerspec)(__ccgo_up(bp))).Fit_value.Ftv_sec) + (*Titimerspec32)(unsafe.Pointer(val32)).Fit_value.Ftv_nsec = (**(**Titimerspec)(__ccgo_up(bp))).Fit_value.Ftv_nsec + return 0 +} + +func X__timer_settime32(tls *TLS, t Ttimer_t, flags int32, val32 uintptr, old32 uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v t=%v flags=%v val32=%v old32=%v, (%v:)", tls, t, flags, val32, old32, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var r int32 + var v1 uintptr + var _ /* old at bp+32 */ Titimerspec + _, _ = r, v1 + *(*Titimerspec)(unsafe.Pointer(bp)) = Titimerspec{ + Fit_interval: Ttimespec{ + Ftv_sec: int64((*Titimerspec32)(unsafe.Pointer(val32)).Fit_interval.Ftv_sec), + Ftv_nsec: (*Titimerspec32)(unsafe.Pointer(val32)).Fit_interval.Ftv_nsec, + }, + Fit_value: Ttimespec{ + Ftv_sec: int64((*Titimerspec32)(unsafe.Pointer(val32)).Fit_value.Ftv_sec), + Ftv_nsec: (*Titimerspec32)(unsafe.Pointer(val32)).Fit_value.Ftv_nsec, + }, + } + if old32 != 0 { + v1 = bp + 32 + } else { + v1 = uintptr(0) + } + r = Xtimer_settime(tls, t, flags, bp, v1) + if r != 0 { + return r + } + /* The above call has already committed to success by changing the + * timer setting, so we can't fail on out-of-range old value. + * Since these are relative times, values large enough to overflow + * don't make sense anyway. */ + if old32 != 0 { + (*Titimerspec32)(unsafe.Pointer(old32)).Fit_interval.Ftv_sec = int32((**(**Titimerspec)(__ccgo_up(bp + 32))).Fit_interval.Ftv_sec) + (*Titimerspec32)(unsafe.Pointer(old32)).Fit_interval.Ftv_nsec = (**(**Titimerspec)(__ccgo_up(bp + 32))).Fit_interval.Ftv_nsec + (*Titimerspec32)(unsafe.Pointer(old32)).Fit_value.Ftv_sec = int32((**(**Titimerspec)(__ccgo_up(bp + 32))).Fit_value.Ftv_sec) + (*Titimerspec32)(unsafe.Pointer(old32)).Fit_value.Ftv_nsec = (**(**Titimerspec)(__ccgo_up(bp + 32))).Fit_value.Ftv_nsec + } + return 0 +} + +func X__timerfd_gettime32(tls *TLS, t int32, val32 uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v t=%v val32=%v, (%v:)", tls, t, val32, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var r int32 + var _ /* old at bp+0 */ Titimerspec + _ = r + r = Xtimerfd_gettime(tls, t, bp) + if r != 0 { + return r + } + /* No range checking for consistency with settime */ + (*Titimerspec32)(unsafe.Pointer(val32)).Fit_interval.Ftv_sec = int32((**(**Titimerspec)(__ccgo_up(bp))).Fit_interval.Ftv_sec) + (*Titimerspec32)(unsafe.Pointer(val32)).Fit_interval.Ftv_nsec = (**(**Titimerspec)(__ccgo_up(bp))).Fit_interval.Ftv_nsec + (*Titimerspec32)(unsafe.Pointer(val32)).Fit_value.Ftv_sec = int32((**(**Titimerspec)(__ccgo_up(bp))).Fit_value.Ftv_sec) + (*Titimerspec32)(unsafe.Pointer(val32)).Fit_value.Ftv_nsec = (**(**Titimerspec)(__ccgo_up(bp))).Fit_value.Ftv_nsec + return 0 +} + +func X__timerfd_settime32(tls *TLS, t int32, flags int32, val32 uintptr, old32 uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v t=%v flags=%v val32=%v old32=%v, (%v:)", tls, t, flags, val32, old32, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var r int32 + var v1 uintptr + var _ /* old at bp+32 */ Titimerspec + _, _ = r, v1 + *(*Titimerspec)(unsafe.Pointer(bp)) = Titimerspec{ + Fit_interval: Ttimespec{ + Ftv_sec: int64((*Titimerspec32)(unsafe.Pointer(val32)).Fit_interval.Ftv_sec), + Ftv_nsec: (*Titimerspec32)(unsafe.Pointer(val32)).Fit_interval.Ftv_nsec, + }, + Fit_value: Ttimespec{ + Ftv_sec: int64((*Titimerspec32)(unsafe.Pointer(val32)).Fit_value.Ftv_sec), + Ftv_nsec: (*Titimerspec32)(unsafe.Pointer(val32)).Fit_value.Ftv_nsec, + }, + } + if old32 != 0 { + v1 = bp + 32 + } else { + v1 = uintptr(0) + } + r = Xtimerfd_settime(tls, t, flags, bp, v1) + if r != 0 { + return r + } + /* The above call has already committed to success by changing the + * timer setting, so we can't fail on out-of-range old value. + * Since these are relative times, values large enough to overflow + * don't make sense anyway. */ + if old32 != 0 { + (*Titimerspec32)(unsafe.Pointer(old32)).Fit_interval.Ftv_sec = int32((**(**Titimerspec)(__ccgo_up(bp + 32))).Fit_interval.Ftv_sec) + (*Titimerspec32)(unsafe.Pointer(old32)).Fit_interval.Ftv_nsec = (**(**Titimerspec)(__ccgo_up(bp + 32))).Fit_interval.Ftv_nsec + (*Titimerspec32)(unsafe.Pointer(old32)).Fit_value.Ftv_sec = int32((**(**Titimerspec)(__ccgo_up(bp + 32))).Fit_value.Ftv_sec) + (*Titimerspec32)(unsafe.Pointer(old32)).Fit_value.Ftv_nsec = (**(**Titimerspec)(__ccgo_up(bp + 32))).Fit_value.Ftv_nsec + } + return 0 +} + +func X__timespec_get_time32(tls *TLS, ts32 uintptr, base int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v ts32=%v base=%v, (%v:)", tls, ts32, base, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var r int32 + var _ /* ts at bp+0 */ Ttimespec + _ = r + r = Xtimespec_get(tls, bp, base) + if !(r != 0) { + return r + } + if (**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec < int64(-Int32FromInt32(1)-Int32FromInt32(0x7fffffff)) || (**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec > int64(Int32FromInt32(INT32_MAX)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOVERFLOW) + return 0 + } + (*Ttimespec32)(unsafe.Pointer(ts32)).Ftv_sec = int32((**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec) + (*Ttimespec32)(unsafe.Pointer(ts32)).Ftv_nsec = (**(**Ttimespec)(__ccgo_up(bp))).Ftv_nsec + return r +} + +type Tutimbuf32 = struct { + Factime Ttime32_t + Fmodtime Ttime32_t +} + +func X__utime_time32(tls *TLS, path uintptr, times32 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v times32=%v, (%v:)", tls, path, times32, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uintptr + _ = v1 + if !(times32 != 0) { + v1 = uintptr(0) + } else { + *(*Tutimbuf)(unsafe.Pointer(bp)) = Tutimbuf{ + Factime: int64((*Tutimbuf32)(unsafe.Pointer(times32)).Factime), + Fmodtime: int64((*Tutimbuf32)(unsafe.Pointer(times32)).Fmodtime), + } + v1 = bp + } + return Xutime(tls, path, v1) +} + +func X__utimensat_time32(tls *TLS, fd int32, path uintptr, times32 uintptr, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v path=%v times32=%v flags=%v, (%v:)", tls, fd, path, times32, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var v1 uintptr + _ = v1 + if !(times32 != 0) { + v1 = uintptr(0) + } else { + *(*[2]Ttimespec)(unsafe.Pointer(bp)) = [2]Ttimespec{ + 0: { + Ftv_sec: int64((**(**Ttimespec32)(__ccgo_up(times32))).Ftv_sec), + Ftv_nsec: (**(**Ttimespec32)(__ccgo_up(times32))).Ftv_nsec, + }, + 1: { + Ftv_sec: int64((**(**Ttimespec32)(__ccgo_up(times32 + 1*8))).Ftv_sec), + Ftv_nsec: (**(**Ttimespec32)(__ccgo_up(times32 + 1*8))).Ftv_nsec, + }, + } + v1 = bp + } + return Xutimensat(tls, fd, path, v1, flags) +} + +func X__utimes_time32(tls *TLS, path uintptr, times32 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v times32=%v, (%v:)", tls, path, times32, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var v1 uintptr + _ = v1 + if !(times32 != 0) { + v1 = uintptr(0) + } else { + *(*[2]Ttimeval)(unsafe.Pointer(bp)) = [2]Ttimeval{ + 0: { + Ftv_sec: int64((**(**Ttimeval32)(__ccgo_up(times32))).Ftv_sec), + Ftv_usec: int64((**(**Ttimeval32)(__ccgo_up(times32))).Ftv_usec), + }, + 1: { + Ftv_sec: int64((**(**Ttimeval32)(__ccgo_up(times32 + 1*8))).Ftv_sec), + Ftv_usec: int64((**(**Ttimeval32)(__ccgo_up(times32 + 1*8))).Ftv_usec), + }, + } + v1 = bp + } + return Xutimes(tls, path, v1) +} + +func X__wait3_time32(tls *TLS, status uintptr, options int32, usage uintptr) (r1 Tpid_t) { + if __ccgo_strace { + trc("tls=%v status=%v options=%v usage=%v, (%v:)", tls, status, options, usage, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(160) + defer tls.Free(160) + var r int32 + var v1 uintptr + var _ /* ru at bp+0 */ Trusage + _, _ = r, v1 + if usage != 0 { + v1 = bp + } else { + v1 = uintptr(0) + } + r = Xwait3(tls, status, options, v1) + if !(r != 0) && usage != 0 { + (*Tcompat_rusage)(unsafe.Pointer(usage)).Fru_utime.Ftv_sec = int32((**(**Trusage)(__ccgo_up(bp))).Fru_utime.Ftv_sec) + (*Tcompat_rusage)(unsafe.Pointer(usage)).Fru_utime.Ftv_usec = int32((**(**Trusage)(__ccgo_up(bp))).Fru_utime.Ftv_usec) + (*Tcompat_rusage)(unsafe.Pointer(usage)).Fru_stime.Ftv_sec = int32((**(**Trusage)(__ccgo_up(bp))).Fru_stime.Ftv_sec) + (*Tcompat_rusage)(unsafe.Pointer(usage)).Fru_stime.Ftv_usec = int32((**(**Trusage)(__ccgo_up(bp))).Fru_stime.Ftv_usec) + _memcpy(tls, usage+16, bp+32, Uint32FromInt64(72)-uint32(UintptrFromInt32(0)+16)) + } + return r +} + +func X__wait4_time32(tls *TLS, pid Tpid_t, status uintptr, options int32, usage uintptr) (r1 Tpid_t) { + if __ccgo_strace { + trc("tls=%v pid=%v status=%v options=%v usage=%v, (%v:)", tls, pid, status, options, usage, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(160) + defer tls.Free(160) + var r int32 + var v1 uintptr + var _ /* ru at bp+0 */ Trusage + _, _ = r, v1 + if usage != 0 { + v1 = bp + } else { + v1 = uintptr(0) + } + r = Xwait4(tls, pid, status, options, v1) + if !(r != 0) && usage != 0 { + (*Tcompat_rusage)(unsafe.Pointer(usage)).Fru_utime.Ftv_sec = int32((**(**Trusage)(__ccgo_up(bp))).Fru_utime.Ftv_sec) + (*Tcompat_rusage)(unsafe.Pointer(usage)).Fru_utime.Ftv_usec = int32((**(**Trusage)(__ccgo_up(bp))).Fru_utime.Ftv_usec) + (*Tcompat_rusage)(unsafe.Pointer(usage)).Fru_stime.Ftv_sec = int32((**(**Trusage)(__ccgo_up(bp))).Fru_stime.Ftv_sec) + (*Tcompat_rusage)(unsafe.Pointer(usage)).Fru_stime.Ftv_usec = int32((**(**Trusage)(__ccgo_up(bp))).Fru_stime.Ftv_usec) + _memcpy(tls, usage+16, bp+32, Uint32FromInt64(72)-uint32(UintptrFromInt32(0)+16)) + } + return r +} + +func __ccgo_fp(f interface{}) uintptr { + type iface [2]uintptr + return (*iface)(unsafe.Pointer(&f))[1] +} + +func __ccgo_up(n uintptr) unsafe.Pointer { + return unsafe.Pointer(&n) +} + +var X__abort_lock [1]int32 + +var X__at_quick_exit_lockptr = uintptr(unsafe.Pointer(&_lock)) + +var X__c_dot_utf8 = t__locale_map{ + Fmap1: uintptr(unsafe.Pointer(&_empty_mo)), + Fmap_size: uint32(20), + Fname: [24]uint8{'C', '.', 'U', 'T', 'F', '-', '8'}, +} + +var X__c_dot_utf8_locale = t__locale_struct{ + Fcat: [6]uintptr{ + 0: uintptr(unsafe.Pointer(&X__c_dot_utf8)), + }, +} + +var X__c_locale = t__locale_struct{} + +var Xdaylight int32 + +var X__eintr_valid_flag int32 + +var Xenviron uintptr + +var X__exp2f_data = Texp2f_data{ + Ftab: [32]Tuint64_t{ + 0: uint64(0x3ff0000000000000), + 1: uint64(0x3fefd9b0d3158574), + 2: uint64(0x3fefb5586cf9890f), + 3: uint64(0x3fef9301d0125b51), + 4: uint64(0x3fef72b83c7d517b), + 5: uint64(0x3fef54873168b9aa), + 6: uint64(0x3fef387a6e756238), + 7: uint64(0x3fef1e9df51fdee1), + 8: uint64(0x3fef06fe0a31b715), + 9: uint64(0x3feef1a7373aa9cb), + 10: uint64(0x3feedea64c123422), + 11: uint64(0x3feece086061892d), + 12: uint64(0x3feebfdad5362a27), + 13: uint64(0x3feeb42b569d4f82), + 14: uint64(0x3feeab07dd485429), + 15: uint64(0x3feea47eb03a5585), + 16: uint64(0x3feea09e667f3bcd), + 17: uint64(0x3fee9f75e8ec5f74), + 18: uint64(0x3feea11473eb0187), + 19: uint64(0x3feea589994cce13), + 20: uint64(0x3feeace5422aa0db), + 21: uint64(0x3feeb737b0cdc5e5), + 22: uint64(0x3feec49182a3f090), + 23: uint64(0x3feed503b23e255d), + 24: uint64(0x3feee89f995ad3ad), + 25: uint64(0x3feeff76f2fb5e47), + 26: uint64(0x3fef199bdd85529c), + 27: uint64(0x3fef3720dcef9069), + 28: uint64(0x3fef5818dcfba487), + 29: uint64(0x3fef7c97337b9b5f), + 30: uint64(0x3fefa4afa2a490da), + 31: uint64(0x3fefd0765b6e4540), + }, + Fshift_scaled: Float64FromFloat64(6.755399441055744e+15) / float64(Int32FromInt32(1)<>Int32FromInt32(6) | Uint32FromInt32(0x0), + 31: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0x1), + 32: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0x2), + 33: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0x3), + 34: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0x4), + 35: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0x5), + 36: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0x6), + 37: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0x7), + 38: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0x8), + 39: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0x9), + 40: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0xa), + 41: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0xb), + 42: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0xc), + 43: (Uint32FromUint32(0x40)-Uint32FromInt32(0xa0))<>Int32FromInt32(6) | Uint32FromInt32(0xd), + 44: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0xe), + 45: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0xf), + 46: (Uint32FromUint32(0)-Uint32FromInt32(0x90))<>Int32FromInt32(6) | (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(12) | Uint32FromInt32(0x0), + 47: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(12) | Uint32FromInt32(0x1), + 48: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(12) | Uint32FromInt32(0x2), + 49: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(12) | Uint32FromInt32(0x3), + 50: (Uint32FromUint32(0x40)-Uint32FromInt32(0x90))<>Int32FromInt32(6) | (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(12) | Uint32FromInt32(0x4), +} + +var X__gettext_lockptr = uintptr(unsafe.Pointer(&_lock1)) + +var X__hwcap Tsize_t + +var X__libc t__libc + +var X__libc_version = [6]uint8{'1', '.', '2', '.', '5'} + +var X__locale_lock [1]int32 + +var X__locale_lockptr = uintptr(unsafe.Pointer(&X__locale_lock)) + +var X__log2_data = Tlog2_data{ + Finvln2hi: float64(1.4426950407214463), + Finvln2lo: float64(1.6751713164886512e-10), + Fpoly: [6]float64{ + 0: -Float64FromFloat64(0.7213475204444882), + 1: float64(0.4808983469629985), + 2: -Float64FromFloat64(0.36067375954075914), + 3: float64(0.2885390073180969), + 4: -Float64FromFloat64(0.2404693555628422), + 5: float64(0.2061202382173603), + }, + Fpoly1: [10]float64{ + 0: -Float64FromFloat64(0.7213475204444817), + 1: float64(0.48089834696298744), + 2: -Float64FromFloat64(0.360673760222145), + 3: float64(0.2885390081805197), + 4: -Float64FromFloat64(0.24044917405728863), + 5: float64(0.2060992861022954), + 6: -Float64FromFloat64(0.18033596705327856), + 7: float64(0.1603032746063156), + 8: -Float64FromFloat64(0.14483316576701266), + 9: float64(0.13046826811283835), + }, + Ftab: [64]struct { + F__ccgo_align [0]uint32 + Finvc float64 + Flogc float64 + }{ + 0: { + Finvc: float64(1.4463276106642393), + Flogc: -Float64FromFloat64(0.5323943771486483), + }, + 1: { + Finvc: float64(1.4301675812282968), + Flogc: -Float64FromFloat64(0.516184206053822), + }, + 2: { + Finvc: float64(1.4143648676229383), + Flogc: -Float64FromFloat64(0.5001543441974263), + }, + 3: { + Finvc: float64(1.3989068970611538), + Flogc: -Float64FromFloat64(0.4842999484799293), + }, + 4: { + Finvc: float64(1.3837838957784339), + Flogc: -Float64FromFloat64(0.46861865624623533), + }, + 5: { + Finvc: float64(1.368983882697786), + Flogc: -Float64FromFloat64(0.4531054615783887), + }, + 6: { + Finvc: float64(1.3544972916324536), + Flogc: -Float64FromFloat64(0.43775750882059583), + }, + 7: { + Finvc: float64(1.3403139676437443), + Flogc: -Float64FromFloat64(0.4225709906127122), + }, + 8: { + Finvc: float64(1.3264249304188642), + Flogc: -Float64FromFloat64(0.40754302793970965), + }, + 9: { + Finvc: float64(1.3128203652112156), + Flogc: -Float64FromFloat64(0.3926695240384106), + }, + 10: { + Finvc: float64(1.299492412370217), + Flogc: -Float64FromFloat64(0.3779482100565019), + }, + 11: { + Finvc: float64(1.28643198385998), + Flogc: -Float64FromFloat64(0.36337518101890964), + }, + 12: { + Finvc: float64(1.2736319291846832), + Flogc: -Float64FromFloat64(0.3489484089425332), + }, + 13: { + Finvc: float64(1.2610838968062879), + Flogc: -Float64FromFloat64(0.33466425780738973), + }, + 14: { + Finvc: float64(1.248780314313572), + Flogc: -Float64FromFloat64(0.3205197000629596), + }, + 15: { + Finvc: float64(1.2367150450059063), + Flogc: -Float64FromFloat64(0.3065131231801388), + }, + 16: { + Finvc: float64(1.2248804968401878), + Flogc: -Float64FromFloat64(0.2926410022678283), + }, + 17: { + Finvc: float64(1.2132702353497795), + Flogc: -Float64FromFloat64(0.2789009220805383), + }, + 18: { + Finvc: float64(1.2018780785715362), + Flogc: -Float64FromFloat64(0.2652905529862437), + }, + 19: { + Finvc: float64(1.190697765061355), + Flogc: -Float64FromFloat64(0.2518072602367738), + }, + 20: { + Finvc: float64(1.1797235410550593), + Flogc: -Float64FromFloat64(0.23844881494437686), + }, + 21: { + Finvc: float64(1.1689498986205256), + Flogc: -Float64FromFloat64(0.22521309705462045), + }, + 22: { + Finvc: float64(1.158371137408455), + Flogc: -Float64FromFloat64(0.21209756102439314), + }, + 23: { + Finvc: float64(1.1479820146386086), + Flogc: -Float64FromFloat64(0.1991000395789797), + }, + 24: { + Finvc: float64(1.1377775576851088), + Flogc: -Float64FromFloat64(0.18621852970682085), + }, + 25: { + Finvc: float64(1.127753150630225), + Flogc: -Float64FromFloat64(0.17345131655361), + }, + 26: { + Finvc: float64(1.1179037012282074), + Flogc: -Float64FromFloat64(0.16079591649577196), + }, + 27: { + Finvc: float64(1.1082251967632821), + Flogc: -Float64FromFloat64(0.14825107384353942), + }, + 28: { + Finvc: float64(1.098712461056607), + Flogc: -Float64FromFloat64(0.13581387465410444), + }, + 29: { + Finvc: float64(1.0893619091634283), + Flogc: -Float64FromFloat64(0.12348332762257996), + }, + 30: { + Finvc: float64(1.0801689912316736), + Flogc: -Float64FromFloat64(0.11125703807351783), + }, + 31: { + Finvc: float64(1.071129489697672), + Flogc: -Float64FromFloat64(0.09913289918449664), + }, + 32: { + Finvc: float64(1.0622406576750423), + Flogc: -Float64FromFloat64(0.08711065531497297), + }, + 33: { + Finvc: float64(1.0534977607927976), + Flogc: -Float64FromFloat64(0.07518724771330199), + }, + 34: { + Finvc: float64(1.044897877982342), + Flogc: -Float64FromFloat64(0.06336194888240243), + }, + 35: { + Finvc: float64(1.0364370289499079), + Flogc: -Float64FromFloat64(0.0516324649456692), + }, + 36: { + Finvc: float64(1.0281122132034575), + Flogc: -Float64FromFloat64(0.039997735929773626), + }, + 37: { + Finvc: float64(1.0199202450036955), + Flogc: -Float64FromFloat64(0.028456341769015125), + }, + 38: { + Finvc: float64(1.0118577522306755), + Flogc: -Float64FromFloat64(0.017006489068080555), + }, + 39: { + Finvc: float64(1.003921649236766), + Flogc: -Float64FromFloat64(0.005646678981520381), + }, + 40: { + Finvc: float64(0.9922480467550775), + Flogc: float64(0.011227277611396858), + }, + 41: { + Finvc: float64(0.9770993366178549), + Flogc: float64(0.033422853921138085), + }, + 42: { + Finvc: float64(0.9624059787315814), + Flogc: float64(0.05528248992573026), + }, + 43: { + Finvc: float64(0.9481480598286369), + Flogc: float64(0.07681573143713649), + }, + 44: { + Finvc: float64(0.9343065931261065), + Flogc: float64(0.09803204623631245), + }, + 45: { + Finvc: float64(0.9208633936884979), + Flogc: float64(0.11894094059630334), + }, + 46: { + Finvc: float64(0.9078013641840602), + Flogc: float64(0.13955143862290242), + }, + 47: { + Finvc: float64(0.8951048181512927), + Flogc: float64(0.15987146080919956), + }, + 48: { + Finvc: float64(0.882758574260473), + Flogc: float64(0.17990916589428707), + }, + 49: { + Finvc: float64(0.8707481902241709), + Flogc: float64(0.19967252559081317), + }, + 50: { + Finvc: float64(0.8590602881746972), + Flogc: float64(0.2191687127685782), + }, + 51: { + Finvc: float64(0.8476822044336688), + Flogc: float64(0.23840459427242422), + }, + 52: { + Finvc: float64(0.8366013284053287), + Flogc: float64(0.25738780610663525), + }, + 53: { + Finvc: float64(0.8258064913621258), + Flogc: float64(0.27612433583180973), + }, + 54: { + Finvc: float64(0.8152865101579193), + Flogc: float64(0.2946209507022104), + }, + 55: { + Finvc: float64(0.8050314363208223), + Flogc: float64(0.31288297359969874), + }, + 56: { + Finvc: float64(0.7950310492640542), + Flogc: float64(0.33091689015759584), + }, + 57: { + Finvc: float64(0.7852760432487271), + Flogc: float64(0.3487282100279572), + }, + 58: { + Finvc: float64(0.7757575660314712), + Flogc: float64(0.36632223233368677), + }, + 59: { + Finvc: float64(0.7664670566588946), + Flogc: float64(0.383704309808536), + }, + 60: { + Finvc: float64(0.7573965608078645), + Flogc: float64(0.4008792246509074), + }, + 61: { + Finvc: float64(0.7485380168514022), + Flogc: float64(0.41785250494945103), + }, + 62: { + Finvc: float64(0.7398844213755009), + Flogc: float64(0.4346281724315304), + }, + 63: { + Finvc: float64(0.7314286113178112), + Flogc: float64(0.45121103315341315), + }, + }, + Ftab2: [64]struct { + F__ccgo_align [0]uint32 + Fchi float64 + Fclo float64 + }{ + 0: { + Fchi: float64(0.6914062848739648), + Fclo: float64(4.339971893418182e-17), + }, + 1: { + Fchi: float64(0.6992187580850853), + Fclo: float64(7.805593338712074e-18), + }, + 2: { + Fchi: float64(0.7070311366547563), + Fclo: float64(3.20843320369626e-17), + }, + 3: { + Fchi: float64(0.7148438556567389), + Fclo: float64(4.336491946473985e-17), + }, + 4: { + Fchi: float64(0.7226561915128084), + Fclo: float64(4.681890319761607e-17), + }, + 5: { + Fchi: float64(0.730468789763508), + Fclo: -Float64FromFloat64(1.647126642147294e-17), + }, + 6: { + Fchi: float64(0.7382812842650944), + Fclo: float64(2.0846837208642192e-17), + }, + 7: { + Fchi: float64(0.7460938437864584), + Fclo: -Float64FromFloat64(7.82131795361932e-18), + }, + 8: { + Fchi: float64(0.7539062159244969), + Fclo: -Float64FromFloat64(3.470987810015201e-17), + }, + 9: { + Fchi: float64(0.761718835645205), + Fclo: float64(1.2996798345429576e-17), + }, + 10: { + Fchi: float64(0.7695312342578777), + Fclo: -Float64FromFloat64(5.2071007285622585e-17), + }, + 11: { + Fchi: float64(0.7773438569208053), + Fclo: -Float64FromFloat64(4.513636731226183e-17), + }, + 12: { + Fchi: float64(0.7851561955110148), + Fclo: -Float64FromFloat64(2.0797044446832382e-17), + }, + 13: { + Fchi: float64(0.7929686538163826), + Fclo: -Float64FromFloat64(1.9947626198727574e-17), + }, + 14: { + Fchi: float64(0.8007813612514213), + Fclo: float64(1.472064871061342e-17), + }, + 15: { + Fchi: float64(0.8085937047812207), + Fclo: float64(5.290804109377209e-17), + }, + 16: { + Fchi: float64(0.816406173973453), + Fclo: -Float64FromFloat64(1.129659587857177e-17), + }, + 17: { + Fchi: float64(0.8242186867064328), + Fclo: float64(3.901543738154691e-17), + }, + 18: { + Fchi: float64(0.8320311501051142), + Fclo: -Float64FromFloat64(3.212482853127187e-17), + }, + 19: { + Fchi: float64(0.8398436860662717), + Fclo: float64(5.220081794706035e-18), + }, + 20: { + Fchi: float64(0.8476562221566525), + Fclo: -Float64FromFloat64(5.37416378988278e-17), + }, + 21: { + Fchi: float64(0.8554686571084844), + Fclo: float64(4.291992377471359e-18), + }, + 22: { + Fchi: float64(0.8632811779454657), + Fclo: float64(1.7319616935225806e-17), + }, + 23: { + Fchi: float64(0.8710937865301015), + Fclo: float64(1.8251073579011692e-17), + }, + 24: { + Fchi: float64(0.8789064200163806), + Fclo: float64(1.2113671810693101e-17), + }, + 25: { + Fchi: float64(0.8867188705623812), + Fclo: -Float64FromFloat64(2.431195196496269e-17), + }, + 26: { + Fchi: float64(0.894531433164887), + Fclo: -Float64FromFloat64(2.258952781769403e-17), + }, + 27: { + Fchi: float64(0.9023436779100781), + Fclo: float64(4.3322028821617186e-17), + }, + 28: { + Fchi: float64(0.9101562378188762), + Fclo: -Float64FromFloat64(5.2414676705491076e-18), + }, + 29: { + Fchi: float64(0.9179685755379005), + Fclo: -Float64FromFloat64(2.3432856904274634e-17), + }, + 30: { + Fchi: float64(0.9257810658494647), + Fclo: float64(3.9914341909758727e-17), + }, + 31: { + Fchi: float64(0.9335939394986237), + Fclo: -Float64FromFloat64(1.8218382846902827e-17), + }, + 32: { + Fchi: float64(0.9414062555172099), + Fclo: float64(4.423669374431538e-17), + }, + 33: { + Fchi: float64(0.9492189136192009), + Fclo: -Float64FromFloat64(2.6059674623550364e-17), + }, + 34: { + Fchi: float64(0.9570313243730211), + Fclo: -Float64FromFloat64(4.947019261946595e-17), + }, + 35: { + Fchi: float64(0.9648439529540691), + Fclo: -Float64FromFloat64(5.4644837229582306e-17), + }, + 36: { + Fchi: float64(0.9726564738338594), + Fclo: -Float64FromFloat64(5.4656321533328614e-17), + }, + 37: { + Fchi: float64(0.9804688208697894), + Fclo: -Float64FromFloat64(1.782581090537996e-18), + }, + 38: { + Fchi: float64(0.98828120632121), + Fclo: -Float64FromFloat64(5.2277711573086786e-18), + }, + 39: { + Fchi: float64(0.9960936700192217), + Fclo: float64(4.1586638841164565e-17), + }, + 40: { + Fchi: float64(1.007812515499802), + Fclo: float64(9.540912389137736e-17), + }, + 41: { + Fchi: float64(1.0234373952820537), + Fclo: float64(3.985821704561347e-17), + }, + 42: { + Fchi: float64(1.0390625391978199), + Fclo: -Float64FromFloat64(5.179495640960355e-18), + }, + 43: { + Fchi: float64(1.0546875982436061), + Fclo: -Float64FromFloat64(6.074512782488841e-17), + }, + 44: { + Fchi: float64(1.07031247275489), + Fclo: -Float64FromFloat64(4.853656019321416e-17), + }, + 45: { + Fchi: float64(1.0859374005459401), + Fclo: -Float64FromFloat64(1.0233609026899023e-16), + }, + 46: { + Fchi: float64(1.101562565835984), + Fclo: float64(9.714504510281668e-17), + }, + 47: { + Fchi: float64(1.1171875960464082), + Fclo: -Float64FromFloat64(5.728631491659617e-17), + }, + 48: { + Fchi: float64(1.1328125595809087), + Fclo: -Float64FromFloat64(4.3353271744463366e-17), + }, + 49: { + Fchi: float64(1.1484376438870962), + Fclo: float64(5.029455257812864e-17), + }, + 50: { + Fchi: float64(1.1640626551656426), + Fclo: -Float64FromFloat64(1.3886091944776072e-17), + }, + 51: { + Fchi: float64(1.179687381390876), + Fclo: float64(9.535864385063222e-17), + }, + 52: { + Fchi: float64(1.19531246968748), + Fclo: float64(2.5970710873556995e-17), + }, + 53: { + Fchi: float64(1.2109374417129501), + Fclo: -Float64FromFloat64(1.0412863482435496e-16), + }, + 54: { + Fchi: float64(1.2265626715770166), + Fclo: float64(1.903080930681457e-17), + }, + 55: { + Fchi: float64(1.2421875157698543), + Fclo: float64(9.884933154288451e-17), + }, + 56: { + Fchi: float64(1.2578125104996614), + Fclo: float64(2.605028401046449e-17), + }, + 57: { + Fchi: float64(1.273437549250769), + Fclo: float64(3.128070230699857e-17), + }, + 58: { + Fchi: float64(1.2890625161616944), + Fclo: -Float64FromFloat64(4.506460293510891e-17), + }, + 59: { + Fchi: float64(1.3046875156762752), + Fclo: -Float64FromFloat64(2.0874781900380847e-17), + }, + 60: { + Fchi: float64(1.3203123063212308), + Fclo: float64(8.50535702424751e-17), + }, + 61: { + Fchi: float64(1.3359374907988373), + Fclo: -Float64FromFloat64(3.99657459893118e-17), + }, + 62: { + Fchi: float64(1.351562448282023), + Fclo: float64(4.1576596545784e-17), + }, + 63: { + Fchi: float64(1.3671874254389709), + Fclo: -Float64FromFloat64(6.072295450780066e-17), + }, + }, +} + +var X__log2f_data = Tlog2f_data{ + Ftab: [16]struct { + F__ccgo_align [0]uint32 + Finvc float64 + Flogc float64 + }{ + 0: { + Finvc: float64(1.398907162146528), + Flogc: -Float64FromFloat64(0.48430022186289673), + }, + 1: { + Finvc: float64(1.3403141896637998), + Flogc: -Float64FromFloat64(0.42257122959194704), + }, + 2: { + Finvc: float64(1.286432210124115), + Flogc: -Float64FromFloat64(0.3633754347673556), + }, + 3: { + Finvc: float64(1.2367150214269895), + Flogc: -Float64FromFloat64(0.30651309567405577), + }, + 4: { + Finvc: float64(1.1906977166711752), + Flogc: -Float64FromFloat64(0.25180720160537634), + }, + 5: { + Finvc: float64(1.1479821020556429), + Flogc: -Float64FromFloat64(0.19910014943794563), + }, + 6: { + Finvc: float64(1.1082251448272158), + Flogc: -Float64FromFloat64(0.14825100623281615), + }, + 7: { + Finvc: float64(1.0711297413057381), + Flogc: -Float64FromFloat64(0.09913323807318392), + }, + 8: { + Finvc: float64(1.036437278977283), + Flogc: -Float64FromFloat64(0.051632812977629436), + }, + 9: { + Finvc: float64(1), + }, + 10: { + Finvc: float64(0.9492859795739057), + Flogc: float64(0.07508531937943004), + }, + 11: { + Finvc: float64(0.8951049428609004), + Flogc: float64(0.15987125980713107), + }, + 12: { + Finvc: float64(0.8476821620351103), + Flogc: float64(0.2384046664317681), + }, + 13: { + Finvc: float64(0.8050314851692001), + Flogc: float64(0.31288288605863257), + }, + 14: { + Finvc: float64(0.7664671008843108), + Flogc: float64(0.38370422656453185), + }, + 15: { + Finvc: float64(0.731428603316328), + Flogc: float64(0.451211048935815), + }, + }, + Fpoly: [4]float64{ + 0: -Float64FromFloat64(0.36051725506874704), + 1: float64(0.4811247078767291), + 2: -Float64FromFloat64(0.7213476299867769), + 3: float64(1.4426950186867042), + }, +} + +var X__log_data = Tlog_data{ + Fln2hi: float64(0.6931471805598903), + Fln2lo: float64(5.497923018708371e-14), + Fpoly: [5]float64{ + 0: -Float64FromFloat64(0.5000000000000001), + 1: float64(0.33333333331825593), + 2: -Float64FromFloat64(0.2499999999622955), + 3: float64(0.20000304511814496), + 4: -Float64FromFloat64(0.16667054827627667), + }, + Fpoly1: [11]float64{ + 0: -Float64FromFloat64(0.5), + 1: float64(0.3333333333333352), + 2: -Float64FromFloat64(0.24999999999998432), + 3: float64(0.19999999999320328), + 4: -Float64FromFloat64(0.16666666669929706), + 5: float64(0.14285715076560868), + 6: -Float64FromFloat64(0.12499997863982555), + 7: float64(0.11110712032936046), + 8: -Float64FromFloat64(0.10000486757818193), + 9: float64(0.09181994006195467), + 10: -Float64FromFloat64(0.08328363062289341), + }, + Ftab: [128]struct { + F__ccgo_align [0]uint32 + Finvc float64 + Flogc float64 + }{ + 0: { + Finvc: float64(1.4504249240398293), + Flogc: -Float64FromFloat64(0.3718565645633589), + }, + 1: { + Finvc: float64(1.442253508327276), + Flogc: -Float64FromFloat64(0.36620682668944937), + }, + 2: { + Finvc: float64(1.4341736174350004), + Flogc: -Float64FromFloat64(0.3605888069791945), + }, + 3: { + Finvc: float64(1.426183816329995), + Flogc: -Float64FromFloat64(0.3550022171419869), + }, + 4: { + Finvc: float64(1.4182825527052965), + Flogc: -Float64FromFloat64(0.34944666968829097), + }, + 5: { + Finvc: float64(1.4104682921759335), + Flogc: -Float64FromFloat64(0.3439217713603284), + }, + 6: { + Finvc: float64(1.4027396147468003), + Flogc: -Float64FromFloat64(0.3384271921261188), + }, + 7: { + Finvc: float64(1.3950954438932313), + Flogc: -Float64FromFloat64(0.332962831494342), + }, + 8: { + Finvc: float64(1.3875338232485754), + Flogc: -Float64FromFloat64(0.32752794345742586), + }, + 9: { + Finvc: float64(1.3800539211058593), + Flogc: -Float64FromFloat64(0.32212257167088865), + }, + 10: { + Finvc: float64(1.3726542695419708), + Flogc: -Float64FromFloat64(0.3167462884799761), + }, + 11: { + Finvc: float64(1.3653332798446802), + Flogc: -Float64FromFloat64(0.3113985598928366), + }, + 12: { + Finvc: float64(1.358090204587874), + Flogc: -Float64FromFloat64(0.3060794515165526), + }, + 13: { + Finvc: float64(1.3509234892132138), + Flogc: -Float64FromFloat64(0.300788424667644), + }, + 14: { + Finvc: float64(1.3438320840699889), + Flogc: -Float64FromFloat64(0.2955252968476998), + }, + 15: { + Finvc: float64(1.3368146974742003), + Flogc: -Float64FromFloat64(0.29028969275850613), + }, + 16: { + Finvc: float64(1.329870114677736), + Flogc: -Float64FromFloat64(0.2850812793277555), + }, + 17: { + Finvc: float64(1.322997339161106), + Flogc: -Float64FromFloat64(0.27989987391470095), + }, + 18: { + Finvc: float64(1.316195352741367), + Flogc: -Float64FromFloat64(0.27474526621870154), + }, + 19: { + Finvc: float64(1.3094628125672239), + Flogc: -Float64FromFloat64(0.2696169863701243), + }, + 20: { + Finvc: float64(1.3027990455471041), + Flogc: -Float64FromFloat64(0.26451506180308115), + }, + 21: { + Finvc: float64(1.2962024229438942), + Flogc: -Float64FromFloat64(0.2594387762767383), + }, + 22: { + Finvc: float64(1.2896726275815547), + Flogc: -Float64FromFloat64(0.2543884090981692), + }, + 23: { + Finvc: float64(1.2832080305745537), + Flogc: -Float64FromFloat64(0.24936321635129843), + }, + 24: { + Finvc: float64(1.276807885983376), + Flogc: -Float64FromFloat64(0.24436312405975968), + }, + 25: { + Finvc: float64(1.2704714060687552), + Flogc: -Float64FromFloat64(0.23938801747897287), + }, + 26: { + Finvc: float64(1.2641976054949482), + Flogc: -Float64FromFloat64(0.23443761696705678), + }, + 27: { + Finvc: float64(1.257985357514882), + Flogc: -Float64FromFloat64(0.22951151871518505), + }, + 28: { + Finvc: float64(1.2518337750655457), + Flogc: -Float64FromFloat64(0.2246094963439873), + }, + 29: { + Finvc: float64(1.2457421919097305), + Flogc: -Float64FromFloat64(0.21973149037705753), + }, + 30: { + Finvc: float64(1.2397094966625508), + Flogc: -Float64FromFloat64(0.2148770752847895), + }, + 31: { + Finvc: float64(1.2337348463589233), + Flogc: -Float64FromFloat64(0.210046029103637), + }, + 32: { + Finvc: float64(1.2278176973028803), + Flogc: -Float64FromFloat64(0.20523836373934046), + }, + 33: { + Finvc: float64(1.2219570190618474), + Flogc: -Float64FromFloat64(0.20045368751368642), + }, + 34: { + Finvc: float64(1.2161519732977757), + Flogc: -Float64FromFloat64(0.1956917537758045), + }, + 35: { + Finvc: float64(1.2104018095009725), + Flogc: -Float64FromFloat64(0.19095237845203883), + }, + 36: { + Finvc: float64(1.204705805718973), + Flogc: -Float64FromFloat64(0.18623539250290833), + }, + 37: { + Finvc: float64(1.1990631185441964), + Flogc: -Float64FromFloat64(0.18154051731551135), + }, + 38: { + Finvc: float64(1.1934733004462308), + Flogc: -Float64FromFloat64(0.1768677957431919), + }, + 39: { + Finvc: float64(1.1879350812847385), + Flogc: -Float64FromFloat64(0.17221657406412305), + }, + 40: { + Finvc: float64(1.1824481322833125), + Flogc: -Float64FromFloat64(0.16758697765942543), + }, + 41: { + Finvc: float64(1.1770114976921955), + Flogc: -Float64FromFloat64(0.16297859687290384), + }, + 42: { + Finvc: float64(1.1716248121809465), + Flogc: -Float64FromFloat64(0.15839151377804228), + }, + 43: { + Finvc: float64(1.1662869231674715), + Flogc: -Float64FromFloat64(0.15382513241456763), + }, + 44: { + Finvc: float64(1.1609977486762766), + Flogc: -Float64FromFloat64(0.14927976358922024), + }, + 45: { + Finvc: float64(1.1557563220795803), + Flogc: -Float64FromFloat64(0.14475495398119165), + }, + 46: { + Finvc: float64(1.1505619105480347), + Flogc: -Float64FromFloat64(0.14025044090817573), + }, + 47: { + Finvc: float64(1.1454138888505974), + Flogc: -Float64FromFloat64(0.1357660466685502), + }, + 48: { + Finvc: float64(1.140311877374656), + Flogc: -Float64FromFloat64(0.1313018016355727), + }, + 49: { + Finvc: float64(1.1352550225747513), + Flogc: -Float64FromFloat64(0.12685731518763532), + }, + 50: { + Finvc: float64(1.1302429094831266), + Flogc: -Float64FromFloat64(0.1224325737671279), + }, + 51: { + Finvc: float64(1.1252747693068048), + Flogc: -Float64FromFloat64(0.11802724521862729), + }, + 52: { + Finvc: float64(1.1203501571039876), + Flogc: -Float64FromFloat64(0.11364127671663482), + }, + 53: { + Finvc: float64(1.1154683327680124), + Flogc: -Float64FromFloat64(0.10927434611278386), + }, + 54: { + Finvc: float64(1.1106291463292157), + Flogc: -Float64FromFloat64(0.10492665324943573), + }, + 55: { + Finvc: float64(1.1058315813301596), + Flogc: -Float64FromFloat64(0.10059761422644442), + }, + 56: { + Finvc: float64(1.1010752177696026), + Flogc: -Float64FromFloat64(0.09628717309055901), + }, + 57: { + Finvc: float64(1.0963597137952512), + Flogc: -Float64FromFloat64(0.09199534069557558), + }, + 58: { + Finvc: float64(1.0916844827550398), + Flogc: -Float64FromFloat64(0.08772190036688698), + }, + 59: { + Finvc: float64(1.0870487291277784), + Flogc: -Float64FromFloat64(0.08346643613867855), + }, + 60: { + Finvc: float64(1.082452357388312), + Flogc: -Float64FromFloat64(0.07922916827544668), + }, + 61: { + Finvc: float64(1.0778948225025884), + Flogc: -Float64FromFloat64(0.0750099004750382), + }, + 62: { + Finvc: float64(1.0733751731601076), + Flogc: -Float64FromFloat64(0.07080805133352897), + }, + 63: { + Finvc: float64(1.068893585073351), + Flogc: -Float64FromFloat64(0.06662408085151128), + }, + 64: { + Finvc: float64(1.0644491706655506), + Flogc: -Float64FromFloat64(0.06245745471915143), + }, + 65: { + Finvc: float64(1.0600414846328305), + Flogc: -Float64FromFloat64(0.0583080438042316), + }, + 66: { + Finvc: float64(1.0556701316181605), + Flogc: -Float64FromFloat64(0.05417576112313327), + }, + 67: { + Finvc: float64(1.051334750556926), + Flogc: -Float64FromFloat64(0.050060547896805474), + }, + 68: { + Finvc: float64(1.0470347288442157), + Flogc: -Float64FromFloat64(0.045962101199052086), + }, + 69: { + Finvc: float64(1.0427699229652954), + Flogc: -Float64FromFloat64(0.04188056008865715), + }, + 70: { + Finvc: float64(1.0385395013738175), + Flogc: -Float64FromFloat64(0.03781540056183985), + }, + 71: { + Finvc: float64(1.034343418940345), + Flogc: -Float64FromFloat64(0.03376684757915882), + }, + 72: { + Finvc: float64(1.0301811073173315), + Flogc: -Float64FromFloat64(0.029734619131772888), + }, + 73: { + Finvc: float64(1.026052043621297), + Flogc: -Float64FromFloat64(0.025718470239212365), + }, + 74: { + Finvc: float64(1.0219561082336197), + Flogc: -Float64FromFloat64(0.021718543925430822), + }, + 75: { + Finvc: float64(1.0178926505784922), + Flogc: -Float64FromFloat64(0.01773446126981071), + }, + 76: { + Finvc: float64(1.0138614436244586), + Flogc: -Float64FromFloat64(0.013766252464051831), + }, + 77: { + Finvc: float64(1.0098620186501341), + Flogc: -Float64FromFloat64(0.009813706322574944), + }, + 78: { + Finvc: float64(1.0058938559734134), + Flogc: -Float64FromFloat64(0.005876555150052809), + }, + 79: { + Finvc: float64(1.00195696235014), + Flogc: -Float64FromFloat64(0.0019550499938532084), + }, + 80: { + Finvc: float64(0.9961089923088509), + Flogc: float64(0.0038985973556009412), + }, + 81: { + Finvc: float64(0.9884170338185201), + Flogc: float64(0.011650571286395461), + }, + 82: { + Finvc: float64(0.9808429191005297), + Flogc: float64(0.019342955478919066), + }, + 83: { + Finvc: float64(0.9733840169987446), + Flogc: float64(0.0269766014846482), + }, + 84: { + Finvc: float64(0.9660377568876556), + Flogc: float64(0.034552359728422744), + }, + 85: { + Finvc: float64(0.9588014945307369), + Flogc: float64(0.04207121767183253), + }, + 86: { + Finvc: float64(0.9516728569073111), + Flogc: float64(0.049533940950141186), + }, + 87: { + Finvc: float64(0.9446494635965822), + Flogc: float64(0.056941358295944156), + }, + 88: { + Finvc: float64(0.9377288993026223), + Flogc: float64(0.06429439168346107), + }, + 89: { + Finvc: float64(0.9309091073790681), + Flogc: float64(0.0715936354946507), + }, + 90: { + Finvc: float64(0.924187681612722), + Flogc: float64(0.07884010933776153), + }, + 91: { + Finvc: float64(0.9175626765599192), + Flogc: float64(0.08603438905970506), + }, + 92: { + Finvc: float64(0.9110320403624034), + Flogc: float64(0.09317721180013905), + }, + 93: { + Finvc: float64(0.9045935839762024), + Flogc: float64(0.10026951462748457), + }, + 94: { + Finvc: float64(0.8982456375922825), + Flogc: float64(0.10731170956330516), + }, + 95: { + Finvc: float64(0.8919860966782501), + Flogc: float64(0.11430473320717738), + }, + 96: { + Finvc: float64(0.8858131121185129), + Flogc: float64(0.12124928503033061), + }, + 97: { + Finvc: float64(0.879725075760676), + Flogc: float64(0.12814583422959913), + }, + 98: { + Finvc: float64(0.8737201372634685), + Flogc: float64(0.1349951636851756), + }, + 99: { + Finvc: float64(0.8677966405782273), + Flogc: float64(0.1417978768189414), + }, + 100: { + Finvc: float64(0.8619528050060739), + Flogc: float64(0.14855476039031146), + }, + 101: { + Finvc: float64(0.8561872354420692), + Flogc: float64(0.1552661937658968), + }, + 102: { + Finvc: float64(0.8504983927816893), + Flogc: float64(0.16193275688146969), + }, + 103: { + Finvc: float64(0.8448844572790304), + Flogc: float64(0.16855539792220497), + }, + 104: { + Finvc: float64(0.8393442741575965), + Flogc: float64(0.1751343179947753), + }, + 105: { + Finvc: float64(0.8338762249349438), + Flogc: float64(0.1816702989864325), + }, + 106: { + Finvc: float64(0.8284789320557778), + Flogc: float64(0.18816387146023317), + }, + 107: { + Finvc: float64(0.8231510800065832), + Flogc: float64(0.1946155228479256), + }, + 108: { + Finvc: float64(0.8178913903778707), + Flogc: float64(0.20102572579389744), + }, + 109: { + Finvc: float64(0.8126984007245374), + Flogc: float64(0.2073952090795501), + }, + 110: { + Finvc: float64(0.8075710029460227), + Flogc: float64(0.21372429840596396), + }, + 111: { + Finvc: float64(0.8025078881160415), + Flogc: float64(0.2200135945981856), + }, + 112: { + Finvc: float64(0.7975077379364331), + Flogc: float64(0.22626374162859975), + }, + 113: { + Finvc: float64(0.792569604966373), + Flogc: float64(0.23247494747693054), + }, + 114: { + Finvc: float64(0.7876923641254114), + Flogc: float64(0.23864766620658884), + }, + 115: { + Finvc: float64(0.7828746724940998), + Flogc: float64(0.24478265647405806), + }, + 116: { + Finvc: float64(0.7781155388790811), + Flogc: float64(0.25088025827324145), + }, + 117: { + Finvc: float64(0.7734139557869777), + Flogc: float64(0.2569408552510595), + }, + 118: { + Finvc: float64(0.7687687179914933), + Flogc: float64(0.26296511155101143), + }, + 119: { + Finvc: float64(0.7641790698041854), + Flogc: float64(0.2689531327189343), + }, + 120: { + Finvc: float64(0.7596438763692399), + Flogc: float64(0.27490553924610595), + }, + 121: { + Finvc: float64(0.7551621951078668), + Flogc: float64(0.2808227248478943), + }, + 122: { + Finvc: float64(0.7507331780216866), + Flogc: float64(0.286704979267256), + }, + 123: { + Finvc: float64(0.7463557196361751), + Flogc: float64(0.29255295645509705), + }, + 124: { + Finvc: float64(0.7420289364869653), + Flogc: float64(0.2983670386142876), + }, + 125: { + Finvc: float64(0.7377521537065876), + Flogc: float64(0.30414734587282055), + }, + 126: { + Finvc: float64(0.7335242966002608), + Flogc: float64(0.30989455774829366), + }, + 127: { + Finvc: float64(0.729344777457841), + Flogc: float64(0.31560871301871884), + }, + }, + Ftab2: [128]struct { + F__ccgo_align [0]uint32 + Fchi float64 + Fclo float64 + }{ + 0: { + Fchi: float64(0.6894531274426304), + Fclo: float64(2.60290652810535e-17), + }, + 1: { + Fchi: float64(0.6933593811533166), + Fclo: float64(5.1607448519931415e-17), + }, + 2: { + Fchi: float64(0.6972656502972674), + Fclo: float64(5.290672414887869e-17), + }, + 3: { + Fchi: float64(0.7011718886092148), + Fclo: float64(7.801030634806013e-18), + }, + 4: { + Fchi: float64(0.7050781228976939), + Fclo: -Float64FromFloat64(2.471355337688684e-17), + }, + 5: { + Fchi: float64(0.7089843887644558), + Fclo: -Float64FromFloat64(4.6413389636862956e-17), + }, + 6: { + Fchi: float64(0.7128906815542553), + Fclo: float64(3.3387408065940366e-17), + }, + 7: { + Fchi: float64(0.7167968359278303), + Fclo: -Float64FromFloat64(2.6454587338050098e-17), + }, + 8: { + Fchi: float64(0.7207031520563163), + Fclo: float64(2.4284096334522285e-17), + }, + 9: { + Fchi: float64(0.7246093683054673), + Fclo: float64(4.85782435031982e-17), + }, + 10: { + Fchi: float64(0.7285155644718035), + Fclo: -Float64FromFloat64(1.3014776598894487e-17), + }, + 11: { + Fchi: float64(0.7324219036935506), + Fclo: -Float64FromFloat64(1.0402317671225898e-17), + }, + 12: { + Fchi: float64(0.73632811474659), + Fclo: float64(3.078291427467431e-17), + }, + 13: { + Fchi: float64(0.7402343715130797), + Fclo: -Float64FromFloat64(1.4304998976623033e-17), + }, + 14: { + Fchi: float64(0.7441405900738403), + Fclo: -Float64FromFloat64(2.8625955785571303e-17), + }, + 15: { + Fchi: float64(0.7480468324364), + Fclo: float64(5.1609093535635645e-17), + }, + 16: { + Fchi: float64(0.7519531335902885), + Fclo: float64(4.423423949536319e-17), + }, + 17: { + Fchi: float64(0.7558594189116706), + Fclo: -Float64FromFloat64(4.683016762099508e-17), + }, + 18: { + Fchi: float64(0.7597656365502305), + Fclo: float64(4.466742007514772e-17), + }, + 19: { + Fchi: float64(0.7636719350887737), + Fclo: -Float64FromFloat64(4.8134498775190266e-17), + }, + 20: { + Fchi: float64(0.767578087670501), + Fclo: -Float64FromFloat64(4.3371015350542286e-17), + }, + 21: { + Fchi: float64(0.7714844396979536), + Fclo: -Float64FromFloat64(2.515644472251707e-17), + }, + 22: { + Fchi: float64(0.7753905747966752), + Fclo: -Float64FromFloat64(4.163636184961329e-17), + }, + 23: { + Fchi: float64(0.7792968686084766), + Fclo: float64(3.3837161384165165e-17), + }, + 24: { + Fchi: float64(0.783203182701066), + Fclo: float64(4.379206565056758e-17), + }, + 25: { + Fchi: float64(0.7871094109030913), + Fclo: float64(2.7322930976146396e-17), + }, + 26: { + Fchi: float64(0.7910155783031153), + Fclo: -Float64FromFloat64(5.463661225364046e-17), + }, + 27: { + Fchi: float64(0.7949218121071572), + Fclo: -Float64FromFloat64(1.4320502634189868e-17), + }, + 28: { + Fchi: float64(0.7988281031542229), + Fclo: -Float64FromFloat64(4.0766731402809024e-17), + }, + 29: { + Fchi: float64(0.8027343109146796), + Fclo: -Float64FromFloat64(4.0338264352540086e-17), + }, + 30: { + Fchi: float64(0.8066405901480322), + Fclo: float64(1.7241428071650815e-18), + }, + 31: { + Fchi: float64(0.8105469363625933), + Fclo: -Float64FromFloat64(4.5534218930924523e-17), + }, + 32: { + Fchi: float64(0.8144531571720115), + Fclo: float64(1.821216920589142e-17), + }, + 33: { + Fchi: float64(0.8183593894061396), + Fclo: float64(4.9864288025894273e-17), + }, + 34: { + Fchi: float64(0.8222656559018297), + Fclo: float64(4.335990416726689e-17), + }, + 35: { + Fchi: float64(0.8261719308006343), + Fclo: -Float64FromFloat64(5.422001471661127e-17), + }, + 36: { + Fchi: float64(0.830078177803083), + Fclo: -Float64FromFloat64(5.333603728929035e-17), + }, + 37: { + Fchi: float64(0.8339844538076674), + Fclo: -Float64FromFloat64(1.1270648442682386e-17), + }, + 38: { + Fchi: float64(0.8378905498984414), + Fclo: -Float64FromFloat64(3.165126734800398e-17), + }, + 39: { + Fchi: float64(0.8417968420618669), + Fclo: float64(1.1286283062565865e-17), + }, + 40: { + Fchi: float64(0.8457030568173808), + Fclo: float64(5.643595964448442e-18), + }, + 41: { + Fchi: float64(0.8496093725173733), + Fclo: -Float64FromFloat64(2.1687834632368187e-17), + }, + 42: { + Fchi: float64(0.8535155534462677), + Fclo: -Float64FromFloat64(2.2548234217914977e-17), + }, + 43: { + Fchi: float64(0.8574219432077146), + Fclo: float64(4.683260556353139e-17), + }, + 44: { + Fchi: float64(0.8613281129443706), + Fclo: float64(2.5148296884122795e-17), + }, + 45: { + Fchi: float64(0.8652342893532053), + Fclo: -Float64FromFloat64(8.672187570949467e-18), + }, + 46: { + Fchi: float64(0.8691405397938828), + Fclo: -Float64FromFloat64(1.2576268285559751e-17), + }, + 47: { + Fchi: float64(0.8730468608194392), + Fclo: -Float64FromFloat64(2.9930851265148e-17), + }, + 48: { + Fchi: float64(0.8769530685783117), + Fclo: float64(4.814801507681644e-17), + }, + 49: { + Fchi: float64(0.8808593488818101), + Fclo: -Float64FromFloat64(9.10549533611022e-18), + }, + 50: { + Fchi: float64(0.8847655593409667), + Fclo: -Float64FromFloat64(3.512414651620766e-17), + }, + 51: { + Fchi: float64(0.888671840226208), + Fclo: float64(3.555261815374023e-17), + }, + 52: { + Fchi: float64(0.8925780870017613), + Fclo: float64(1.692380503540994e-17), + }, + 53: { + Fchi: float64(0.8964844367374554), + Fclo: -Float64FromFloat64(1.0837881791715702e-17), + }, + 54: { + Fchi: float64(0.9003905608862683), + Fclo: float64(5.2900545724138363e-17), + }, + 55: { + Fchi: float64(0.9042968358682077), + Fclo: float64(5.3330721088784517e-17), + }, + 56: { + Fchi: float64(0.9082031671057441), + Fclo: float64(1.8640040753232978e-17), + }, + 57: { + Fchi: float64(0.9121093993305497), + Fclo: float64(4.467972832054075e-17), + }, + 58: { + Fchi: float64(0.9160155849026457), + Fclo: -Float64FromFloat64(5.216213419585033e-18), + }, + 59: { + Fchi: float64(0.9199219622862499), + Fclo: -Float64FromFloat64(2.7324731032846873e-17), + }, + 60: { + Fchi: float64(0.9238281880717143), + Fclo: -Float64FromFloat64(1.7769263393434193e-17), + }, + 61: { + Fchi: float64(0.9277343012727929), + Fclo: float64(4.943363080817441e-17), + }, + 62: { + Fchi: float64(0.9316407021562788), + Fclo: float64(4.164434042024055e-17), + }, + 63: { + Fchi: float64(0.935546825207466), + Fclo: float64(1.3011820859795741e-17), + }, + 64: { + Fchi: float64(0.9394530312562943), + Fclo: -Float64FromFloat64(2.7332907838481398e-17), + }, + 65: { + Fchi: float64(0.9433593066844669), + Fclo: float64(2.342133170803292e-17), + }, + 66: { + Fchi: float64(0.9472655994038329), + Fclo: float64(1.6478717480487438e-17), + }, + 67: { + Fchi: float64(0.9511718313032721), + Fclo: -Float64FromFloat64(5.19608290131499e-18), + }, + 68: { + Fchi: float64(0.9550781578218178), + Fclo: -Float64FromFloat64(3.5565573220579e-17), + }, + 69: { + Fchi: float64(0.9589843147339043), + Fclo: float64(2.0816772146458738e-17), + }, + 70: { + Fchi: float64(0.9628906735633685), + Fclo: -Float64FromFloat64(3.471962826146841e-18), + }, + 71: { + Fchi: float64(0.9667968893972092), + Fclo: -Float64FromFloat64(3.68646834472642e-17), + }, + 72: { + Fchi: float64(0.9707031054025779), + Fclo: -Float64FromFloat64(3.4674108076868834e-18), + }, + 73: { + Fchi: float64(0.9746094325494931), + Fclo: float64(4.598152624774392e-17), + }, + 74: { + Fchi: float64(0.9785156054582722), + Fclo: float64(4.553145752392568e-17), + }, + 75: { + Fchi: float64(0.9824218687812282), + Fclo: -Float64FromFloat64(7.811259169418978e-18), + }, + 76: { + Fchi: float64(0.9863280690752917), + Fclo: float64(2.0375615178047467e-17), + }, + 77: { + Fchi: float64(0.9902342909546034), + Fclo: -Float64FromFloat64(1.344597043422914e-17), + }, + 78: { + Fchi: float64(0.9941406780264008), + Fclo: float64(1.51853723695054e-17), + }, + 79: { + Fchi: float64(0.9980468598715558), + Fclo: -Float64FromFloat64(1.301926039598001e-17), + }, + 80: { + Fchi: float64(1.0039062067717412), + Fclo: -Float64FromFloat64(4.596120641744973e-17), + }, + 81: { + Fchi: float64(1.0117187035281372), + Fclo: -Float64FromFloat64(8.152405002665349e-17), + }, + 82: { + Fchi: float64(1.0195312424919558), + Fclo: float64(8.239927014757811e-17), + }, + 83: { + Fchi: float64(1.0273437641634193), + Fclo: float64(3.122851005327045e-17), + }, + 84: { + Fchi: float64(1.0351562274561221), + Fclo: -Float64FromFloat64(1.3010212611128995e-17), + }, + 85: { + Fchi: float64(1.0429687539123276), + Fclo: -Float64FromFloat64(5.984116688633458e-17), + }, + 86: { + Fchi: float64(1.0507812561238108), + Fclo: float64(2.860923854822335e-17), + }, + 87: { + Fchi: float64(1.0585937308350133), + Fclo: -Float64FromFloat64(1.9962944508904598e-17), + }, + 88: { + Fchi: float64(1.0664062936992642), + Fclo: float64(5.291469130309099e-17), + }, + 89: { + Fchi: float64(1.0742187309945372), + Fclo: float64(1.0321575006732523e-16), + }, + 90: { + Fchi: float64(1.082031301537134), + Fclo: float64(9.021194373419119e-17), + }, + 91: { + Fchi: float64(1.0898438063644336), + Fclo: float64(5.202798992357953e-17), + }, + 92: { + Fchi: float64(1.0976562356711468), + Fclo: float64(5.898318482500785e-17), + }, + 93: { + Fchi: float64(1.1054688179463226), + Fclo: float64(8.846377690653252e-17), + }, + 94: { + Fchi: float64(1.113281220803328), + Fclo: -Float64FromFloat64(9.529455965212574e-18), + }, + 95: { + Fchi: float64(1.1210937073167315), + Fclo: float64(6.765080709377787e-17), + }, + 96: { + Fchi: float64(1.1289062967338532), + Fclo: float64(1.0929327370933015e-16), + }, + 97: { + Fchi: float64(1.1367187631150848), + Fclo: float64(6.938570551230516e-17), + }, + 98: { + Fchi: float64(1.1445312490244826), + Fclo: float64(1.908841015045148e-17), + }, + 99: { + Fchi: float64(1.1523437096203593), + Fclo: float64(2.7744504138979832e-17), + }, + 100: { + Fchi: float64(1.1601563266482477), + Fclo: -Float64FromFloat64(1.5621964097491672e-17), + }, + 101: { + Fchi: float64(1.1679688257483505), + Fclo: -Float64FromFloat64(6.4191661495975e-17), + }, + 102: { + Fchi: float64(1.1757811754697645), + Fclo: -Float64FromFloat64(4.336465165059268e-17), + }, + 103: { + Fchi: float64(1.183593793665613), + Fclo: -Float64FromFloat64(3.8159292551356396e-17), + }, + 104: { + Fchi: float64(1.1914062331617676), + Fclo: -Float64FromFloat64(2.94933042768015e-17), + }, + 105: { + Fchi: float64(1.1992187450577771), + Fclo: -Float64FromFloat64(6.244142916351348e-17), + }, + 106: { + Fchi: float64(1.2070312971249755), + Fclo: float64(7.458644622627413e-17), + }, + 107: { + Fchi: float64(1.2148438169965134), + Fclo: float64(2.7760519266147807e-17), + }, + 108: { + Fchi: float64(1.222656225220801), + Fclo: -Float64FromFloat64(7.025106921079665e-17), + }, + 109: { + Fchi: float64(1.2304687681290862), + Fclo: float64(3.7292622364618835e-17), + }, + 110: { + Fchi: float64(1.2382812116234925), + Fclo: float64(2.2558949940652082e-17), + }, + 111: { + Fchi: float64(1.2460936706149877), + Fclo: float64(8.499368944400665e-17), + }, + 112: { + Fchi: float64(1.2539063289686938), + Fclo: float64(1.039515474644361e-17), + }, + 113: { + Fchi: float64(1.2617188367227732), + Fclo: float64(3.297262223275499e-17), + }, + 114: { + Fchi: float64(1.2695311590462317), + Fclo: float64(4.509883253594155e-17), + }, + 115: { + Fchi: float64(1.277343660657941), + Fclo: -Float64FromFloat64(7.546987371769545e-17), + }, + 116: { + Fchi: float64(1.2851561882963496), + Fclo: float64(9.454295598818184e-17), + }, + 117: { + Fchi: float64(1.2929686521915196), + Fclo: -Float64FromFloat64(7.28545609119749e-17), + }, + 118: { + Fchi: float64(1.3007813359167737), + Fclo: -Float64FromFloat64(8.934357651462802e-17), + }, + 119: { + Fchi: float64(1.3085938093753886), + Fclo: float64(8.15257059458102e-17), + }, + 120: { + Fchi: float64(1.3164063202609564), + Fclo: float64(6.946341460765881e-18), + }, + 121: { + Fchi: float64(1.3242188320313901), + Fclo: -Float64FromFloat64(7.892731380721676e-17), + }, + 122: { + Fchi: float64(1.3320311786874468), + Fclo: -Float64FromFloat64(4.3384657500713545e-17), + }, + 123: { + Fchi: float64(1.3398436880573092), + Fclo: float64(9.627577954598792e-17), + }, + 124: { + Fchi: float64(1.3476563390295309), + Fclo: float64(4.2492400590204517e-17), + }, + 125: { + Fchi: float64(1.3554687641043626), + Fclo: -Float64FromFloat64(1.0843419551446047e-16), + }, + 126: { + Fchi: float64(1.3632813590971713), + Fclo: -Float64FromFloat64(8.50172782472025e-17), + }, + 127: { + Fchi: float64(1.3710936595522603), + Fclo: -Float64FromFloat64(7.110627206162922e-17), + }, + }, +} + +var X__logf_data = Tlogf_data{ + Ftab: [16]struct { + F__ccgo_align [0]uint32 + Finvc float64 + Flogc float64 + }{ + 0: { + Finvc: float64(1.398907162146528), + Flogc: -Float64FromFloat64(0.33569133332882284), + }, + 1: { + Finvc: float64(1.3403141896637998), + Flogc: -Float64FromFloat64(0.2929040563774074), + }, + 2: { + Finvc: float64(1.286432210124115), + Flogc: -Float64FromFloat64(0.2518726580937369), + }, + 3: { + Finvc: float64(1.2367150214269895), + Flogc: -Float64FromFloat64(0.21245868807117255), + }, + 4: { + Finvc: float64(1.1906977166711752), + Flogc: -Float64FromFloat64(0.17453945183745634), + }, + 5: { + Finvc: float64(1.1479821020556429), + Flogc: -Float64FromFloat64(0.1380057072319758), + }, + 6: { + Finvc: float64(1.1082251448272158), + Flogc: -Float64FromFloat64(0.10275976698545139), + }, + 7: { + Finvc: float64(1.0711297413057381), + Flogc: -Float64FromFloat64(0.06871392447020525), + }, + 8: { + Finvc: float64(1.036437278977283), + Flogc: -Float64FromFloat64(0.0357891387398228), + }, + 9: { + Finvc: float64(1), + }, + 10: { + Finvc: float64(0.9492859795739057), + Flogc: float64(0.05204517742929496), + }, + 11: { + Finvc: float64(0.8951049428609004), + Flogc: float64(0.11081431298787942), + }, + 12: { + Finvc: float64(0.8476821620351103), + Flogc: float64(0.1652495223695143), + }, + 13: { + Finvc: float64(0.8050314851692001), + Flogc: float64(0.21687389031699977), + }, + 14: { + Finvc: float64(0.7664671008843108), + Flogc: float64(0.2659635028121397), + }, + 15: { + Finvc: float64(0.731428603316328), + Flogc: float64(0.3127556664073557), + }, + }, + Fln2: float64(0.6931471805599453), + Fpoly: [3]float64{ + 0: -Float64FromFloat64(0.25089342214237154), + 1: float64(0.333456765744066), + 2: -Float64FromFloat64(0.4999997485802103), + }, +} + +var X__optpos int32 + +var Xoptreset int32 + +var X__pow_log_data = Tpow_log_data{ + Fln2hi: float64(0.6931471805598903), + Fln2lo: float64(5.497923018708371e-14), + Fpoly: [7]float64{ + 0: -Float64FromFloat64(0.5), + 1: float64(Float64FromFloat64(0.3333333333333339) * float64(-Int32FromInt32(2))), + 2: float64(-Float64FromFloat64(0.25000000000000033) * float64(-Int32FromInt32(2))), + 3: float64(Float64FromFloat64(0.1999999998830994) * Float64FromInt32(4)), + 4: float64(-Float64FromFloat64(0.16666666658719348) * Float64FromInt32(4)), + 5: float64(Float64FromFloat64(0.14286370355743763) * float64(-Int32FromInt32(8))), + 6: float64(-Float64FromFloat64(0.12500519079594427) * float64(-Int32FromInt32(8))), + }, + Ftab: [128]struct { + F__ccgo_align [0]uint32 + Finvc float64 + Fpad float64 + Flogc float64 + Flogctail float64 + }{ + 0: { + Finvc: float64(1.4140625), + Flogc: -Float64FromFloat64(0.3464667673462145), + Flogctail: float64(5.929407345889625e-15), + }, + 1: { + Finvc: float64(1.40625), + Flogc: -Float64FromFloat64(0.34092658697056777), + Flogctail: -Float64FromFloat64(2.544157440035963e-14), + }, + 2: { + Finvc: float64(1.3984375), + Flogc: -Float64FromFloat64(0.3353555419211034), + Flogctail: -Float64FromFloat64(3.443525940775045e-14), + }, + 3: { + Finvc: float64(1.390625), + Flogc: -Float64FromFloat64(0.3297532863724655), + Flogctail: -Float64FromFloat64(2.500123826022799e-15), + }, + 4: { + Finvc: float64(1.3828125), + Flogc: -Float64FromFloat64(0.32411946865420305), + Flogctail: -Float64FromFloat64(8.929337133850617e-15), + }, + 5: { + Finvc: float64(1.375), + Flogc: -Float64FromFloat64(0.31845373111855224), + Flogctail: float64(1.7625431312172662e-14), + }, + 6: { + Finvc: float64(1.3671875), + Flogc: -Float64FromFloat64(0.31275571000389846), + Flogctail: float64(1.5688303180062087e-15), + }, + 7: { + Finvc: float64(1.359375), + Flogc: -Float64FromFloat64(0.3070250352949415), + Flogctail: float64(2.9655274673691784e-14), + }, + 8: { + Finvc: float64(1.3515625), + Flogc: -Float64FromFloat64(0.3012613305781997), + Flogctail: float64(3.7923164802093147e-14), + }, + 9: { + Finvc: float64(1.34375), + Flogc: -Float64FromFloat64(0.2954642128938758), + Flogctail: float64(3.993416384387844e-14), + }, + 10: { + Finvc: float64(1.3359375), + Flogc: -Float64FromFloat64(0.28963329258306203), + Flogctail: float64(1.9352855826489123e-14), + }, + 11: { + Finvc: float64(1.3359375), + Flogc: -Float64FromFloat64(0.28963329258306203), + Flogctail: float64(1.9352855826489123e-14), + }, + 12: { + Finvc: float64(1.328125), + Flogc: -Float64FromFloat64(0.28376817313062475), + Flogctail: -Float64FromFloat64(1.9852665484979036e-14), + }, + 13: { + Finvc: float64(1.3203125), + Flogc: -Float64FromFloat64(0.27786845100342816), + Flogctail: -Float64FromFloat64(2.814323765595281e-14), + }, + 14: { + Finvc: float64(1.3125), + Flogc: -Float64FromFloat64(0.2719337154836694), + Flogctail: float64(2.7643769993528702e-14), + }, + 15: { + Finvc: float64(1.3046875), + Flogc: -Float64FromFloat64(0.2659635484970977), + Flogctail: -Float64FromFloat64(4.025092402293806e-14), + }, + 16: { + Finvc: float64(1.296875), + Flogc: -Float64FromFloat64(0.25995752443691345), + Flogctail: -Float64FromFloat64(1.2621729398885316e-14), + }, + 17: { + Finvc: float64(1.2890625), + Flogc: -Float64FromFloat64(0.25391520998095984), + Flogctail: -Float64FromFloat64(3.600176732637335e-15), + }, + 18: { + Finvc: float64(1.2890625), + Flogc: -Float64FromFloat64(0.25391520998095984), + Flogctail: -Float64FromFloat64(3.600176732637335e-15), + }, + 19: { + Finvc: float64(1.28125), + Flogc: -Float64FromFloat64(0.2478361639045943), + Flogctail: float64(1.3029797173308663e-14), + }, + 20: { + Finvc: float64(1.2734375), + Flogc: -Float64FromFloat64(0.2417199368871934), + Flogctail: float64(4.8230289429940886e-14), + }, + 21: { + Finvc: float64(1.265625), + Flogc: -Float64FromFloat64(0.23556607131274632), + Flogctail: -Float64FromFloat64(2.0592242769647135e-14), + }, + 22: { + Finvc: float64(1.2578125), + Flogc: -Float64FromFloat64(0.22937410106487732), + Flogctail: float64(3.149265065191484e-14), + }, + 23: { + Finvc: float64(1.25), + Flogc: -Float64FromFloat64(0.22314355131425145), + Flogctail: float64(4.169796584527195e-14), + }, + 24: { + Finvc: float64(1.25), + Flogc: -Float64FromFloat64(0.22314355131425145), + Flogctail: float64(4.169796584527195e-14), + }, + 25: { + Finvc: float64(1.2421875), + Flogc: -Float64FromFloat64(0.21687393830063684), + Flogctail: float64(2.2477465222466186e-14), + }, + 26: { + Finvc: float64(1.234375), + Flogc: -Float64FromFloat64(0.21056476910735), + Flogctail: float64(3.6507188831790577e-16), + }, + 27: { + Finvc: float64(1.2265625), + Flogc: -Float64FromFloat64(0.2042155414286526), + Flogctail: -Float64FromFloat64(3.827767260205414e-14), + }, + 28: { + Finvc: float64(1.2265625), + Flogc: -Float64FromFloat64(0.2042155414286526), + Flogctail: -Float64FromFloat64(3.827767260205414e-14), + }, + 29: { + Finvc: float64(1.21875), + Flogc: -Float64FromFloat64(0.19782574332987224), + Flogctail: -Float64FromFloat64(4.7641388950792196e-14), + }, + 30: { + Finvc: float64(1.2109375), + Flogc: -Float64FromFloat64(0.19139485299967873), + Flogctail: float64(4.9278276214647115e-14), + }, + 31: { + Finvc: float64(1.203125), + Flogc: -Float64FromFloat64(0.18492233849406148), + Flogctail: float64(4.9485167661250996e-14), + }, + 32: { + Finvc: float64(1.203125), + Flogc: -Float64FromFloat64(0.18492233849406148), + Flogctail: float64(4.9485167661250996e-14), + }, + 33: { + Finvc: float64(1.1953125), + Flogc: -Float64FromFloat64(0.1784076574728033), + Flogctail: -Float64FromFloat64(1.5003333854266542e-14), + }, + 34: { + Finvc: float64(1.1875), + Flogc: -Float64FromFloat64(0.17185025692663203), + Flogctail: -Float64FromFloat64(2.7194441649495324e-14), + }, + 35: { + Finvc: float64(1.1875), + Flogc: -Float64FromFloat64(0.17185025692663203), + Flogctail: -Float64FromFloat64(2.7194441649495324e-14), + }, + 36: { + Finvc: float64(1.1796875), + Flogc: -Float64FromFloat64(0.1652495728952772), + Flogctail: -Float64FromFloat64(2.99659267292569e-14), + }, + 37: { + Finvc: float64(1.171875), + Flogc: -Float64FromFloat64(0.15860503017665906), + Flogctail: float64(2.0472357800461955e-14), + }, + 38: { + Finvc: float64(1.171875), + Flogc: -Float64FromFloat64(0.15860503017665906), + Flogctail: float64(2.0472357800461955e-14), + }, + 39: { + Finvc: float64(1.1640625), + Flogc: -Float64FromFloat64(0.15191604202584585), + Flogctail: float64(3.879296723063646e-15), + }, + 40: { + Finvc: float64(1.15625), + Flogc: -Float64FromFloat64(0.1451820098444614), + Flogctail: -Float64FromFloat64(3.6506824353335045e-14), + }, + 41: { + Finvc: float64(1.1484375), + Flogc: -Float64FromFloat64(0.13840232285906495), + Flogctail: -Float64FromFloat64(5.4183331379008994e-14), + }, + 42: { + Finvc: float64(1.1484375), + Flogc: -Float64FromFloat64(0.13840232285906495), + Flogctail: -Float64FromFloat64(5.4183331379008994e-14), + }, + 43: { + Finvc: float64(1.140625), + Flogc: -Float64FromFloat64(0.131576357788731), + Flogctail: float64(1.1729485484531301e-14), + }, + 44: { + Finvc: float64(1.140625), + Flogc: -Float64FromFloat64(0.131576357788731), + Flogctail: float64(1.1729485484531301e-14), + }, + 45: { + Finvc: float64(1.1328125), + Flogc: -Float64FromFloat64(0.12470347850091912), + Flogctail: -Float64FromFloat64(3.811763084710266e-14), + }, + 46: { + Finvc: float64(1.125), + Flogc: -Float64FromFloat64(0.11778303565643), + Flogctail: float64(4.654729747598445e-14), + }, + 47: { + Finvc: float64(1.125), + Flogc: -Float64FromFloat64(0.11778303565643), + Flogctail: float64(4.654729747598445e-14), + }, + 48: { + Finvc: float64(1.1171875), + Flogc: -Float64FromFloat64(0.11081436634026431), + Flogctail: -Float64FromFloat64(2.5799991283069902e-14), + }, + 49: { + Finvc: float64(1.109375), + Flogc: -Float64FromFloat64(0.10379679368168127), + Flogctail: float64(3.7700471749674615e-14), + }, + 50: { + Finvc: float64(1.109375), + Flogc: -Float64FromFloat64(0.10379679368168127), + Flogctail: float64(3.7700471749674615e-14), + }, + 51: { + Finvc: float64(1.1015625), + Flogc: -Float64FromFloat64(0.09672962645856842), + Flogctail: float64(1.7306161136093256e-14), + }, + 52: { + Finvc: float64(1.1015625), + Flogc: -Float64FromFloat64(0.09672962645856842), + Flogctail: float64(1.7306161136093256e-14), + }, + 53: { + Finvc: float64(1.09375), + Flogc: -Float64FromFloat64(0.089612158689647), + Flogctail: -Float64FromFloat64(4.012913552726574e-14), + }, + 54: { + Finvc: float64(1.0859375), + Flogc: -Float64FromFloat64(0.08244366921110213), + Flogctail: float64(2.7541708360737882e-14), + }, + 55: { + Finvc: float64(1.0859375), + Flogc: -Float64FromFloat64(0.08244366921110213), + Flogctail: float64(2.7541708360737882e-14), + }, + 56: { + Finvc: float64(1.078125), + Flogc: -Float64FromFloat64(0.07522342123763792), + Flogctail: float64(5.0396178134370583e-14), + }, + 57: { + Finvc: float64(1.078125), + Flogc: -Float64FromFloat64(0.07522342123763792), + Flogctail: float64(5.0396178134370583e-14), + }, + 58: { + Finvc: float64(1.0703125), + Flogc: -Float64FromFloat64(0.06795066190852594), + Flogctail: float64(1.8195060030168815e-14), + }, + 59: { + Finvc: float64(1.0625), + Flogc: -Float64FromFloat64(0.06062462181648698), + Flogctail: float64(5.213620639136504e-14), + }, + 60: { + Finvc: float64(1.0625), + Flogc: -Float64FromFloat64(0.06062462181648698), + Flogctail: float64(5.213620639136504e-14), + }, + 61: { + Finvc: float64(1.0546875), + Flogc: -Float64FromFloat64(0.053244514518837605), + Flogctail: float64(2.532168943117445e-14), + }, + 62: { + Finvc: float64(1.0546875), + Flogc: -Float64FromFloat64(0.053244514518837605), + Flogctail: float64(2.532168943117445e-14), + }, + 63: { + Finvc: float64(1.046875), + Flogc: -Float64FromFloat64(0.045809536031242715), + Flogctail: -Float64FromFloat64(5.148849572685811e-14), + }, + 64: { + Finvc: float64(1.046875), + Flogc: -Float64FromFloat64(0.045809536031242715), + Flogctail: -Float64FromFloat64(5.148849572685811e-14), + }, + 65: { + Finvc: float64(1.0390625), + Flogc: -Float64FromFloat64(0.038318864302141264), + Flogctail: float64(4.6652946995830086e-15), + }, + 66: { + Finvc: float64(1.0390625), + Flogc: -Float64FromFloat64(0.038318864302141264), + Flogctail: float64(4.6652946995830086e-15), + }, + 67: { + Finvc: float64(1.03125), + Flogc: -Float64FromFloat64(0.03077165866670839), + Flogctail: -Float64FromFloat64(4.529814257790929e-14), + }, + 68: { + Finvc: float64(1.03125), + Flogc: -Float64FromFloat64(0.03077165866670839), + Flogctail: -Float64FromFloat64(4.529814257790929e-14), + }, + 69: { + Finvc: float64(1.0234375), + Flogc: -Float64FromFloat64(0.023167059281490765), + Flogctail: -Float64FromFloat64(4.361324067851568e-14), + }, + 70: { + Finvc: float64(1.015625), + Flogc: -Float64FromFloat64(0.015504186535963527), + Flogctail: -Float64FromFloat64(1.7274567499706107e-15), + }, + 71: { + Finvc: float64(1.015625), + Flogc: -Float64FromFloat64(0.015504186535963527), + Flogctail: -Float64FromFloat64(1.7274567499706107e-15), + }, + 72: { + Finvc: float64(1.0078125), + Flogc: -Float64FromFloat64(0.0077821404420319595), + Flogctail: -Float64FromFloat64(2.298941004620351e-14), + }, + 73: { + Finvc: float64(1.0078125), + Flogc: -Float64FromFloat64(0.0077821404420319595), + Flogctail: -Float64FromFloat64(2.298941004620351e-14), + }, + 74: { + Finvc: float64(1), + }, + 75: { + Finvc: float64(1), + }, + 76: { + Finvc: float64(0.9921875), + Flogc: float64(0.007843177461040796), + Flogctail: -Float64FromFloat64(1.4902732911301337e-14), + }, + 77: { + Finvc: float64(0.984375), + Flogc: float64(0.01574835696817445), + Flogctail: -Float64FromFloat64(3.527980389655325e-14), + }, + 78: { + Finvc: float64(0.9765625), + Flogc: float64(0.023716526617363343), + Flogctail: -Float64FromFloat64(4.730054772033249e-14), + }, + 79: { + Finvc: float64(0.96875), + Flogc: float64(0.03174869831457272), + Flogctail: float64(7.580310369375161e-15), + }, + 80: { + Finvc: float64(0.9609375), + Flogc: float64(0.039845908547249564), + Flogctail: -Float64FromFloat64(4.9893776716773285e-14), + }, + 81: { + Finvc: float64(0.953125), + Flogc: float64(0.048009219186383234), + Flogctail: -Float64FromFloat64(2.262629393030674e-14), + }, + 82: { + Finvc: float64(0.9453125), + Flogc: float64(0.056239718322899535), + Flogctail: -Float64FromFloat64(2.345674491018699e-14), + }, + 83: { + Finvc: float64(0.94140625), + Flogc: float64(0.06038051098892083), + Flogctail: -Float64FromFloat64(1.3352588834854848e-14), + }, + 84: { + Finvc: float64(0.93359375), + Flogc: float64(0.06871389254808946), + Flogctail: -Float64FromFloat64(3.765296820388875e-14), + }, + 85: { + Finvc: float64(0.92578125), + Flogc: float64(0.07711730334438016), + Flogctail: float64(5.1128335719851986e-14), + }, + 86: { + Finvc: float64(0.91796875), + Flogc: float64(0.08559193033545398), + Flogctail: -Float64FromFloat64(5.046674438470119e-14), + }, + 87: { + Finvc: float64(0.9140625), + Flogc: float64(0.08985632912185793), + Flogctail: float64(3.1218748807418837e-15), + }, + 88: { + Finvc: float64(0.90625), + Flogc: float64(0.09844007281321865), + Flogctail: float64(3.3871241029241416e-14), + }, + 89: { + Finvc: float64(0.8984375), + Flogc: float64(0.10709813555638448), + Flogctail: -Float64FromFloat64(1.7376727386423858e-14), + }, + 90: { + Finvc: float64(0.89453125), + Flogc: float64(0.11145544092528326), + Flogctail: float64(3.957125899799804e-14), + }, + 91: { + Finvc: float64(0.88671875), + Flogc: float64(0.12022742699821265), + Flogctail: -Float64FromFloat64(5.2849453521890294e-14), + }, + 92: { + Finvc: float64(0.8828125), + Flogc: float64(0.12464244520731427), + Flogctail: -Float64FromFloat64(3.767012502308738e-14), + }, + 93: { + Finvc: float64(0.875), + Flogc: float64(0.13353139262449076), + Flogctail: float64(3.1859736349078334e-14), + }, + 94: { + Finvc: float64(0.87109375), + Flogc: float64(0.13800567301939282), + Flogctail: float64(5.0900642926060466e-14), + }, + 95: { + Finvc: float64(0.86328125), + Flogc: float64(0.14701474296180095), + Flogctail: float64(8.710783796122478e-15), + }, + 96: { + Finvc: float64(0.859375), + Flogc: float64(0.15154989812720032), + Flogctail: float64(6.157896229122976e-16), + }, + 97: { + Finvc: float64(0.8515625), + Flogc: float64(0.16068238169043525), + Flogctail: float64(3.821577743916796e-14), + }, + 98: { + Finvc: float64(0.84765625), + Flogc: float64(0.16528009093906348), + Flogctail: float64(3.9440046718453496e-14), + }, + 99: { + Finvc: float64(0.83984375), + Flogc: float64(0.17453941635187675), + Flogctail: float64(2.2924522154618074e-14), + }, + 100: { + Finvc: float64(0.8359375), + Flogc: float64(0.17920142945774842), + Flogctail: -Float64FromFloat64(3.742530094732263e-14), + }, + 101: { + Finvc: float64(0.83203125), + Flogc: float64(0.18388527877016259), + Flogctail: -Float64FromFloat64(2.5223102140407338e-14), + }, + 102: { + Finvc: float64(0.82421875), + Flogc: float64(0.1933193110035063), + Flogctail: -Float64FromFloat64(1.0320443688698849e-14), + }, + 103: { + Finvc: float64(0.8203125), + Flogc: float64(0.19806991376208316), + Flogctail: float64(1.0634128304268335e-14), + }, + 104: { + Finvc: float64(0.8125), + Flogc: float64(0.20763936477828793), + Flogctail: -Float64FromFloat64(4.3425422595242564e-14), + }, + 105: { + Finvc: float64(0.80859375), + Flogc: float64(0.21245865121420593), + Flogctail: -Float64FromFloat64(1.2527395755711364e-14), + }, + 106: { + Finvc: float64(0.8046875), + Flogc: float64(0.21730127569003344), + Flogctail: -Float64FromFloat64(5.204008743405884e-14), + }, + 107: { + Finvc: float64(0.80078125), + Flogc: float64(0.22216746534115828), + Flogctail: -Float64FromFloat64(3.979844515951702e-15), + }, + 108: { + Finvc: float64(0.79296875), + Flogc: float64(0.2319714654378231), + Flogctail: -Float64FromFloat64(4.7955860343296286e-14), + }, + 109: { + Finvc: float64(0.7890625), + Flogc: float64(0.2369097470783572), + Flogctail: float64(5.015686013791602e-16), + }, + 110: { + Finvc: float64(0.78515625), + Flogc: float64(0.24187253642048745), + Flogctail: -Float64FromFloat64(7.252318953240293e-16), + }, + 111: { + Finvc: float64(0.78125), + Flogc: float64(0.2468600779315011), + Flogctail: float64(2.4688324156011588e-14), + }, + 112: { + Finvc: float64(0.7734375), + Flogc: float64(0.2569104137850218), + Flogctail: float64(5.465121253624792e-15), + }, + 113: { + Finvc: float64(0.76953125), + Flogc: float64(0.26197371574153294), + Flogctail: float64(4.102651071698446e-14), + }, + 114: { + Finvc: float64(0.765625), + Flogc: float64(0.2670627852490952), + Flogctail: -Float64FromFloat64(4.996736502345936e-14), + }, + 115: { + Finvc: float64(0.76171875), + Flogc: float64(0.27217788591576664), + Flogctail: float64(4.903580708156347e-14), + }, + 116: { + Finvc: float64(0.7578125), + Flogc: float64(0.27731928541618345), + Flogctail: float64(5.089628039500759e-14), + }, + 117: { + Finvc: float64(0.75390625), + Flogc: float64(0.28248725557466514), + Flogctail: float64(1.1782016386565151e-14), + }, + 118: { + Finvc: float64(0.74609375), + Flogc: float64(0.29290401643288533), + Flogctail: float64(4.727452940514406e-14), + }, + 119: { + Finvc: float64(0.7421875), + Flogc: float64(0.29815337231912054), + Flogctail: -Float64FromFloat64(4.4204083338755686e-14), + }, + 120: { + Finvc: float64(0.73828125), + Flogc: float64(0.3034304294199046), + Flogctail: float64(1.548345993498083e-14), + }, + 121: { + Finvc: float64(0.734375), + Flogc: float64(0.30873548164959175), + Flogctail: float64(2.1522127491642888e-14), + }, + 122: { + Finvc: float64(0.73046875), + Flogc: float64(0.3140688276249648), + Flogctail: float64(1.1054030169005386e-14), + }, + 123: { + Finvc: float64(0.7265625), + Flogc: float64(0.31943077076641657), + Flogctail: -Float64FromFloat64(5.534326352070679e-14), + }, + 124: { + Finvc: float64(0.72265625), + Flogc: float64(0.3248216194012912), + Flogctail: -Float64FromFloat64(5.351646604259541e-14), + }, + 125: { + Finvc: float64(0.71875), + Flogc: float64(0.33024168687052224), + Flogctail: float64(5.4612144489920215e-14), + }, + 126: { + Finvc: float64(0.71484375), + Flogc: float64(0.3356912916381134), + Flogctail: float64(2.8136969901227338e-14), + }, + 127: { + Finvc: float64(0.7109375), + Flogc: float64(0.3411707574027787), + Flogctail: -Float64FromFloat64(1.156568624616423e-14), + }, + }, +} + +var X__powf_log2_data = Tpowf_log2_data{ + Ftab: [16]struct { + F__ccgo_align [0]uint32 + Finvc float64 + Flogc float64 + }{ + 0: { + Finvc: float64(1.398907162146528), + Flogc: float64(-Float64FromFloat64(0.48430022186289673) * float64(Int32FromInt32(1)<> int32(32)) + **(**int32)(__ccgo_up(expt)) = Int32FromUint32(hx>>Int32FromInt32(20) - Uint32FromInt32(Int32FromInt32(0x3ff)+Int32FromInt32(1023)) + _k) + v1 = uint64(hx&Uint32FromInt32(0xfffff)|Uint32FromInt32((Int32FromInt32(0x3ff)+Int32FromInt32(1023))<= ln(DBL_MAX)) +// * where care is needed to avoid overflow. +// * +// * The present implementation is narrowly tailored for our hyperbolic and +// * exponential functions. We assume expt is small (0 or -1), and the caller +// * has filtered out very large x, for which overflow would be inevitable. +// */ +func X__ldexp_cexp(tls *TLS, z complex128, expt int32) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v expt=%v, (%v:)", tls, z, expt, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var exp_x, scale1, scale2, x, y float64 + var half_expt int32 + var v1 Tuint64_t + var v3 [2]float64 + var _ /* ex_expt at bp+0 */ int32 + _, _, _, _, _, _, _, _ = exp_x, half_expt, scale1, scale2, x, y, v1, v3 + x = Float64FromComplex128(z) + y = +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] + exp_x = ___frexp_exp(tls, x, bp) + expt = expt + **(**int32)(__ccgo_up(bp)) + /* + * Arrange so that scale1 * scale2 == 2**expt. We use this to + * compensate for scalbn being horrendously slow. + */ + half_expt = expt / int32(2) + v1 = Uint64FromInt32((Int32FromInt32(0x3ff)+half_expt)<>Int32FromInt32(23) - Uint32FromInt32(Int32FromInt32(0x7f)+Int32FromInt32(127)) + _k1) + v1 = hx&uint32(0x7fffff) | Uint32FromInt32((Int32FromInt32(0x7f)+Int32FromInt32(127))< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var exp_x, scale1, scale2, x, y float32 + var half_expt int32 + var v1 Tuint32_t + var v3 [2]float32 + var _ /* ex_expt at bp+0 */ int32 + _, _, _, _, _, _, _, _ = exp_x, half_expt, scale1, scale2, x, y, v1, v3 + x = Float32FromComplex64(z) + y = +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] + exp_x = ___frexp_expf(tls, x, bp) + expt = expt + **(**int32)(__ccgo_up(bp)) + half_expt = expt / int32(2) + v1 = Uint32FromInt32((int32(0x7f) + half_expt) << int32(23)) + scale1 = *(*float32)(unsafe.Pointer(&v1)) + half_expt = expt - half_expt + v1 = Uint32FromInt32((int32(0x7f) + half_expt) << int32(23)) + scale2 = *(*float32)(unsafe.Pointer(&v1)) + v3 = [2]float32{ + 0: float32(float32(float32(Xcosf(tls, y)*exp_x)*scale1) * scale2), + 1: float32(float32(float32(Xsinf(tls, y)*exp_x)*scale1) * scale2), + } + return *(*complex64)(unsafe.Pointer(&v3)) +} + +func Xcabs(tls *TLS, z complex128) (r float64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xhypot(tls, Float64FromComplex128(z), +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)]) +} + +func Xcabsf(tls *TLS, z complex64) (r float32) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xhypotf(tls, Float32FromComplex64(z), +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)]) +} + +func Xcabsl(tls *TLS, z complex128) (r float64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xcabs(tls, Complex128FromComplex128(z)) +} + +const M_PI_21 = 1.5707963267948966 + +// FIXME: Hull et al. "Implementing the complex arcsine and arccosine functions using exception handling" 1997 + +/* acos(z) = pi/2 - asin(z) */ + +func Xcacos(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float64 + _ = v1 + z = Xcasin(tls, z) + v1 = [2]float64{ + 0: float64(1.5707963267948966) - Float64FromComplex128(z), + 1: -+(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +// FIXME + +var _float_pi_2 = float32(1.5707963267948966) + +func Xcacosf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float32 + _ = v1 + z = Xcasinf(tls, z) + v1 = [2]float32{ + 0: _float_pi_2 - Float32FromComplex64(z), + 1: -+(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + } + return *(*complex64)(unsafe.Pointer(&v1)) +} + +const M_PI_22 = 0 + +/* acosh(z) = i acos(z) */ + +func Xcacosh(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var zineg int32 + var v1 uint64 + var v3 [2]float64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _, _, _ = zineg, v1, v3 + *(*float64)(unsafe.Pointer(bp)) = +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + zineg = Int32FromUint64(v1 >> Int32FromInt32(63)) + z = Xcacos(tls, z) + if zineg != 0 { + v3 = [2]float64{ + 0: +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: -Float64FromComplex128(z), + } + return *(*complex128)(unsafe.Pointer(&v3)) + } else { + v3 = [2]float64{ + 0: -+(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: Float64FromComplex128(z), + } + return *(*complex128)(unsafe.Pointer(&v3)) + } + return r +} + +func Xcacoshf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var zineg int32 + var v1 uint32 + var v3 [2]float32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _, _, _ = zineg, v1, v3 + *(*float32)(unsafe.Pointer(bp)) = +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + zineg = Int32FromUint32(v1 >> Int32FromInt32(31)) + z = Xcacosf(tls, z) + if zineg != 0 { + v3 = [2]float32{ + 0: +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: -Float32FromComplex64(z), + } + return *(*complex64)(unsafe.Pointer(&v3)) + } else { + v3 = [2]float32{ + 0: -+(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: Float32FromComplex64(z), + } + return *(*complex64)(unsafe.Pointer(&v3)) + } + return r +} + +func Xcacoshl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcacosh(tls, Complex128FromComplex128(z))) +} + +func Xcacosl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcacos(tls, Complex128FromComplex128(z))) +} + +func Xcarg(tls *TLS, z complex128) (r float64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xatan2(tls, +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], Float64FromComplex128(z)) +} + +func Xcargf(tls *TLS, z complex64) (r float32) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xatan2f(tls, +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], Float32FromComplex64(z)) +} + +func Xcargl(tls *TLS, z complex128) (r float64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xcarg(tls, Complex128FromComplex128(z)) +} + +// FIXME + +/* asin(z) = -i log(i z + sqrt(1 - z*z)) */ + +func Xcasin(tls *TLS, z complex128) (r1 complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, w complex128 + var x, y float64 + var v1, v2 [2]float64 + _, _, _, _, _, _ = r, w, x, y, v1, v2 + x = Float64FromComplex128(z) + y = +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] + v1 = [2]float64{ + 0: float64(1) - float64((x-y)*(x+y)), + 1: float64(float64(-Float64FromFloat64(2)*x) * y), + } + w = *(*complex128)(unsafe.Pointer(&v1)) + v1 = [2]float64{ + 0: -y, + 1: x, + } + r = Xclog(tls, *(*complex128)(unsafe.Pointer(&v1))+Xcsqrt(tls, w)) + v2 = [2]float64{ + 0: +(*(*[2]float64)(unsafe.Pointer(&r)))[int32(1)], + 1: -Float64FromComplex128(r), + } + return *(*complex128)(unsafe.Pointer(&v2)) +} + +// FIXME + +func Xcasinf(tls *TLS, z complex64) (r1 complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, w complex64 + var x, y float32 + var v1, v2 [2]float32 + _, _, _, _, _, _ = r, w, x, y, v1, v2 + x = Float32FromComplex64(z) + y = +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] + v1 = [2]float32{ + 0: float32(Float64FromFloat64(1) - float64((x-y)*(x+y))), + 1: float32(float64(float64(-Float64FromFloat64(2)*float64(x)) * float64(y))), + } + w = *(*complex64)(unsafe.Pointer(&v1)) + v1 = [2]float32{ + 0: -y, + 1: x, + } + r = Xclogf(tls, *(*complex64)(unsafe.Pointer(&v1))+Xcsqrtf(tls, w)) + v2 = [2]float32{ + 0: +(*(*[2]float32)(unsafe.Pointer(&r)))[int32(1)], + 1: -Float32FromComplex64(r), + } + return *(*complex64)(unsafe.Pointer(&v2)) +} + +/* asinh(z) = -i asin(i z) */ + +func Xcasinh(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float64 + _ = v1 + v1 = [2]float64{ + 0: -+(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: Float64FromComplex128(z), + } + z = Xcasin(tls, *(*complex128)(unsafe.Pointer(&v1))) + v1 = [2]float64{ + 0: +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: -Float64FromComplex128(z), + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +func Xcasinhf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float32 + _ = v1 + v1 = [2]float32{ + 0: -+(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: Float32FromComplex64(z), + } + z = Xcasinf(tls, *(*complex64)(unsafe.Pointer(&v1))) + v1 = [2]float32{ + 0: +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: -Float32FromComplex64(z), + } + return *(*complex64)(unsafe.Pointer(&v1)) +} + +func Xcasinhl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcasinh(tls, Complex128FromComplex128(z))) +} + +func Xcasinl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcasin(tls, Complex128FromComplex128(z))) +} + +const MAXNUM = 0 +const M_PI1 = 3.141592653589793 + +var _DP1 = float64(3.141592651605606) +var _DP2 = float64(1.9841871479187034e-09) +var _DP3 = float64(1.1442377452219664e-17) + +func __redupi(tls *TLS, x float64) (r float64) { + var i int64 + var t float64 + _, _ = i, t + t = x / float64(3.141592653589793) + if t >= float64(0) { + t = t + float64(0.5) + } else { + t = t - float64(0.5) + } + i = int64(t) /* the multiple */ + t = float64(i) + t = x - float64(t*_DP1) - float64(t*_DP2) - float64(t*_DP3) + return t +} + +func Xcatan(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, t, x, x2, y float64 + var w complex128 + var v1 [2]float64 + _, _, _, _, _, _, _ = a, t, w, x, x2, y, v1 + x = Float64FromComplex128(z) + y = +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] + x2 = float64(x * x) + a = float64(1) - x2 - float64(y*y) + t = float64(float64(0.5) * Xatan2(tls, float64(float64(2)*x), a)) + w = Complex128FromFloat64(__redupi(tls, t)) + t = y - float64(1) + a = x2 + float64(t*t) + t = y + float64(1) + a = (x2 + float64(t*t)) / a + v1 = [2]float64{ + 0: Float64FromComplex128(w), + 1: float64(float64(0.25) * Xlog(tls, a)), + } + w = *(*complex128)(unsafe.Pointer(&v1)) + return w +} + +const MAXNUMF = 0 + +var _DP11 = float64(3.140625) +var _DP21 = float64(0.0009675025939941406) +var _DP31 = float64(1.5099579909783765e-07) + +var _float_pi = float32(3.141592653589793) + +func __redupif(tls *TLS, xx float32) (r float32) { + var i int64 + var t, x float32 + _, _, _ = i, t, x + x = xx + t = x / _float_pi + if t >= Float32FromFloat32(0) { + t = t + Float32FromFloat32(0.5) + } else { + t = t - Float32FromFloat32(0.5) + } + i = int64(t) /* the multiple */ + t = float32(i) + t = float32(float64(x) - float64(float64(t)*_DP11) - float64(float64(t)*_DP21) - float64(float64(t)*_DP31)) + return t +} + +func Xcatanf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, t, x, x2, y float32 + var w complex64 + var v1 [2]float32 + _, _, _, _, _, _, _ = a, t, w, x, x2, y, v1 + x = Float32FromComplex64(z) + y = +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] + x2 = float32(x * x) + a = Float32FromFloat32(1) - x2 - float32(y*y) + t = float32(Float32FromFloat32(0.5) * Xatan2f(tls, float32(Float32FromFloat32(2)*x), a)) + w = Complex64FromFloat32(__redupif(tls, t)) + t = y - Float32FromFloat32(1) + a = x2 + float32(t*t) + t = y + Float32FromFloat32(1) + a = (x2 + float32(t*t)) / a + v1 = [2]float32{ + 0: Float32FromComplex64(w), + 1: float32(Float32FromFloat32(0.25) * Xlogf(tls, a)), + } + w = *(*complex64)(unsafe.Pointer(&v1)) + return w +} + +const M_PI2 = 0 + +/* atanh = -i atan(i z) */ + +func Xcatanh(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float64 + _ = v1 + v1 = [2]float64{ + 0: -+(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: Float64FromComplex128(z), + } + z = Xcatan(tls, *(*complex128)(unsafe.Pointer(&v1))) + v1 = [2]float64{ + 0: +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: -Float64FromComplex128(z), + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +func Xcatanhf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float32 + _ = v1 + v1 = [2]float32{ + 0: -+(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: Float32FromComplex64(z), + } + z = Xcatanf(tls, *(*complex64)(unsafe.Pointer(&v1))) + v1 = [2]float32{ + 0: +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: -Float32FromComplex64(z), + } + return *(*complex64)(unsafe.Pointer(&v1)) +} + +func Xcatanhl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcatanh(tls, Complex128FromComplex128(z))) +} + +func Xcatanl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcatan(tls, Complex128FromComplex128(z))) +} + +/* cos(z) = cosh(i z) */ + +func Xccos(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float64 + _ = v1 + v1 = [2]float64{ + 0: -+(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: Float64FromComplex128(z), + } + return Xccosh(tls, *(*complex128)(unsafe.Pointer(&v1))) +} + +func Xccosf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float32 + _ = v1 + v1 = [2]float32{ + 0: -+(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: Float32FromComplex64(z), + } + return Xccoshf(tls, *(*complex64)(unsafe.Pointer(&v1))) +} + +var _huge = float64(8.98846567431158e+307) + +func Xccosh(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __u, __u1 Tuint64_t + var h, x, y float64 + var hx, hy, ix, iy, lx, ly Tint32_t + var v1 [2]float64 + _, _, _, _, _, _, _, _, _, _, _, _ = __u, __u1, h, hx, hy, ix, iy, lx, ly, x, y, v1 + x = Float64FromComplex128(z) + y = +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] + __u = *(*Tuint64_t)(unsafe.Pointer(&x)) + hx = Int32FromUint64(__u >> int32(32)) + lx = Int32FromUint32(uint32(__u)) + __u1 = *(*Tuint64_t)(unsafe.Pointer(&y)) + hy = Int32FromUint64(__u1 >> int32(32)) + ly = Int32FromUint32(uint32(__u1)) + ix = int32(0x7fffffff) & hx + iy = int32(0x7fffffff) & hy + /* Handle the nearly-non-exceptional cases where x and y are finite. */ + if ix < int32(0x7ff00000) && iy < int32(0x7ff00000) { + if iy|ly == 0 { + v1 = [2]float64{ + 0: Xcosh(tls, x), + 1: float64(x * y), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + if ix < int32(0x40360000) { /* small x: normal case */ + v1 = [2]float64{ + 0: float64(Xcosh(tls, x) * Xcos(tls, y)), + 1: float64(Xsinh(tls, x) * Xsin(tls, y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* |x| >= 22, so cosh(x) ~= exp(|x|) */ + if ix < int32(0x40862e42) { + /* x < 710: exp(|x|) won't overflow */ + h = float64(Xexp(tls, Xfabs(tls, x)) * float64(0.5)) + v1 = [2]float64{ + 0: float64(h * Xcos(tls, y)), + 1: float64(Xcopysign(tls, h, x) * Xsin(tls, y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } else { + if ix < int32(0x4096bbaa) { + /* x < 1455: scale to avoid overflow */ + v1 = [2]float64{ + 0: Xfabs(tls, x), + 1: y, + } + z = X__ldexp_cexp(tls, *(*complex128)(unsafe.Pointer(&v1)), -int32(1)) + v1 = [2]float64{ + 0: Float64FromComplex128(z), + 1: float64(+(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] * Xcopysign(tls, Float64FromInt32(1), x)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } else { + /* x >= 1455: the result always overflows */ + h = float64(_huge * x) + v1 = [2]float64{ + 0: float64(float64(h*h) * Xcos(tls, y)), + 1: float64(h * Xsin(tls, y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + } + } + /* + * cosh(+-0 +- I Inf) = dNaN + I sign(d(+-0, dNaN))0. + * The sign of 0 in the result is unspecified. Choice = normally + * the same as dNaN. Raise the invalid floating-point exception. + * + * cosh(+-0 +- I NaN) = d(NaN) + I sign(d(+-0, NaN))0. + * The sign of 0 in the result is unspecified. Choice = normally + * the same as d(NaN). + */ + if ix|lx == 0 && iy >= int32(0x7ff00000) { + v1 = [2]float64{ + 0: y - y, + 1: Xcopysign(tls, Float64FromInt32(0), float64(x*(y-y))), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* + * cosh(+-Inf +- I 0) = +Inf + I (+-)(+-)0. + * + * cosh(NaN +- I 0) = d(NaN) + I sign(d(NaN, +-0))0. + * The sign of 0 in the result is unspecified. + */ + if iy|ly == 0 && ix >= int32(0x7ff00000) { + if hx&int32(0xfffff)|lx == 0 { + v1 = [2]float64{ + 0: float64(x * x), + 1: float64(Xcopysign(tls, Float64FromInt32(0), x) * y), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + v1 = [2]float64{ + 0: float64(x * x), + 1: Xcopysign(tls, Float64FromInt32(0), float64((x+x)*y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* + * cosh(x +- I Inf) = dNaN + I dNaN. + * Raise the invalid floating-point exception for finite nonzero x. + * + * cosh(x + I NaN) = d(NaN) + I d(NaN). + * Optionally raises the invalid floating-point exception for finite + * nonzero x. Choice = don't raise (except for signaling NaNs). + */ + if ix < int32(0x7ff00000) && iy >= int32(0x7ff00000) { + v1 = [2]float64{ + 0: y - y, + 1: float64(x * (y - y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* + * cosh(+-Inf + I NaN) = +Inf + I d(NaN). + * + * cosh(+-Inf +- I Inf) = +Inf + I dNaN. + * The sign of Inf in the result is unspecified. Choice = always +. + * Raise the invalid floating-point exception. + * + * cosh(+-Inf + I y) = +Inf cos(y) +- I Inf sin(y) + */ + if ix >= int32(0x7ff00000) && hx&int32(0xfffff)|lx == 0 { + if iy >= int32(0x7ff00000) { + v1 = [2]float64{ + 0: float64(x * x), + 1: float64(x * (y - y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + v1 = [2]float64{ + 0: float64(float64(x*x) * Xcos(tls, y)), + 1: float64(x * Xsin(tls, y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* + * cosh(NaN + I NaN) = d(NaN) + I d(NaN). + * + * cosh(NaN +- I Inf) = d(NaN) + I d(NaN). + * Optionally raises the invalid floating-point exception. + * Choice = raise. + * + * cosh(NaN + I y) = d(NaN) + I d(NaN). + * Optionally raises the invalid floating-point exception for finite + * nonzero y. Choice = don't raise (except for signaling NaNs). + */ + v1 = [2]float64{ + 0: float64(float64(x*x) * (y - y)), + 1: float64((x + x) * (y - y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +var _huge1 = float32(1.7014118346046923e+38) + +func Xccoshf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var h, x, y float32 + var hx, hy, ix, iy Tint32_t + var v1 [2]float32 + _, _, _, _, _, _, _, _ = h, hx, hy, ix, iy, x, y, v1 + x = Float32FromComplex64(z) + y = +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] + hx = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(&x))) + hy = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(&y))) + ix = int32(0x7fffffff) & hx + iy = int32(0x7fffffff) & hy + if ix < int32(0x7f800000) && iy < int32(0x7f800000) { + if iy == 0 { + v1 = [2]float32{ + 0: Xcoshf(tls, x), + 1: float32(x * y), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + if ix < int32(0x41100000) { /* small x: normal case */ + v1 = [2]float32{ + 0: float32(Xcoshf(tls, x) * Xcosf(tls, y)), + 1: float32(Xsinhf(tls, x) * Xsinf(tls, y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + /* |x| >= 9, so cosh(x) ~= exp(|x|) */ + if ix < int32(0x42b17218) { + /* x < 88.7: expf(|x|) won't overflow */ + h = float32(Xexpf(tls, Xfabsf(tls, x)) * Float32FromFloat32(0.5)) + v1 = [2]float32{ + 0: float32(h * Xcosf(tls, y)), + 1: float32(Xcopysignf(tls, h, x) * Xsinf(tls, y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } else { + if ix < int32(0x4340b1e7) { + /* x < 192.7: scale to avoid overflow */ + v1 = [2]float32{ + 0: Xfabsf(tls, x), + 1: y, + } + z = X__ldexp_cexpf(tls, *(*complex64)(unsafe.Pointer(&v1)), -int32(1)) + v1 = [2]float32{ + 0: Float32FromComplex64(z), + 1: float32(+(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] * Xcopysignf(tls, Float32FromInt32(1), x)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } else { + /* x >= 192.7: the result always overflows */ + h = float32(_huge1 * x) + v1 = [2]float32{ + 0: float32(float32(h*h) * Xcosf(tls, y)), + 1: float32(h * Xsinf(tls, y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + } + } + if ix == 0 && iy >= int32(0x7f800000) { + v1 = [2]float32{ + 0: y - y, + 1: Xcopysignf(tls, Float32FromInt32(0), float32(x*(y-y))), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + if iy == 0 && ix >= int32(0x7f800000) { + if hx&int32(0x7fffff) == 0 { + v1 = [2]float32{ + 0: float32(x * x), + 1: float32(Xcopysignf(tls, Float32FromInt32(0), x) * y), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + v1 = [2]float32{ + 0: float32(x * x), + 1: Xcopysignf(tls, Float32FromInt32(0), float32((x+x)*y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + if ix < int32(0x7f800000) && iy >= int32(0x7f800000) { + v1 = [2]float32{ + 0: y - y, + 1: float32(x * (y - y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + if ix >= int32(0x7f800000) && hx&int32(0x7fffff) == 0 { + if iy >= int32(0x7f800000) { + v1 = [2]float32{ + 0: float32(x * x), + 1: float32(x * (y - y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + v1 = [2]float32{ + 0: float32(float32(x*x) * Xcosf(tls, y)), + 1: float32(x * Xsinf(tls, y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + v1 = [2]float32{ + 0: float32(float32(x*x) * (y - y)), + 1: float32((x + x) * (y - y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) +} + +// C documentation +// +// //FIXME +func Xccoshl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xccosh(tls, Complex128FromComplex128(z))) +} + +func Xccosl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xccos(tls, Complex128FromComplex128(z))) +} + +var _exp_ovfl = uint32(0x40862e42) /* high bits of MAX_EXP * ln2 ~= 710 */ +var _cexp_ovfl = uint32(0x4096b8e4) /* (MAX_EXP - MIN_DENORM_EXP) * ln2 */ + +func Xcexp(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __u, __u1 Tuint64_t + var exp_x, x, y float64 + var hx, hy, lx, ly Tuint32_t + var v1 [2]float64 + _, _, _, _, _, _, _, _, _, _ = __u, __u1, exp_x, hx, hy, lx, ly, x, y, v1 + x = Float64FromComplex128(z) + y = +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] + __u = *(*Tuint64_t)(unsafe.Pointer(&y)) + hy = uint32(__u >> int32(32)) + ly = uint32(__u) + hy = hy & uint32(0x7fffffff) + /* cexp(x + I 0) = exp(x) + I 0 */ + if hy|ly == uint32(0) { + v1 = [2]float64{ + 0: Xexp(tls, x), + 1: y, + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + __u1 = *(*Tuint64_t)(unsafe.Pointer(&x)) + hx = uint32(__u1 >> int32(32)) + lx = uint32(__u1) + /* cexp(0 + I y) = cos(y) + I sin(y) */ + if hx&uint32(0x7fffffff)|lx == uint32(0) { + v1 = [2]float64{ + 0: Xcos(tls, y), + 1: Xsin(tls, y), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + if hy >= uint32(0x7ff00000) { + if lx != uint32(0) || hx&uint32(0x7fffffff) != uint32(0x7ff00000) { + /* cexp(finite|NaN +- I Inf|NaN) = NaN + I NaN */ + v1 = [2]float64{ + 0: y - y, + 1: y - y, + } + return *(*complex128)(unsafe.Pointer(&v1)) + } else { + if hx&uint32(0x80000000) != 0 { + /* cexp(-Inf +- I Inf|NaN) = 0 + I 0 */ + v1 = [2]float64{} + return *(*complex128)(unsafe.Pointer(&v1)) + } else { + /* cexp(+Inf +- I Inf|NaN) = Inf + I NaN */ + v1 = [2]float64{ + 0: x, + 1: y - y, + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + } + } + if hx >= _exp_ovfl && hx <= _cexp_ovfl { + /* + * x is between 709.7 and 1454.3, so we must scale to avoid + * overflow in exp(x). + */ + return X__ldexp_cexp(tls, z, 0) + } else { + /* + * Cases covered here: + * - x < exp_ovfl and exp(x) won't overflow (common case) + * - x > cexp_ovfl, so exp(x) * s overflows for all s > 0 + * - x = +-Inf (generated by exp()) + * - x = NaN (spurious inexact exception from y) + */ + exp_x = Xexp(tls, x) + v1 = [2]float64{ + 0: float64(exp_x * Xcos(tls, y)), + 1: float64(exp_x * Xsin(tls, y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + return r +} + +var _exp_ovfl1 = uint32(0x42b17218) /* MAX_EXP * ln2 ~= 88.722839355 */ +var _cexp_ovfl1 = uint32(0x43400074) /* (MAX_EXP - MIN_DENORM_EXP) * ln2 */ + +func Xcexpf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var exp_x, x, y float32 + var hx, hy Tuint32_t + var v1 [2]float32 + _, _, _, _, _, _ = exp_x, hx, hy, x, y, v1 + x = Float32FromComplex64(z) + y = +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] + hy = *(*Tuint32_t)(unsafe.Pointer(&y)) + hy = hy & uint32(0x7fffffff) + /* cexp(x + I 0) = exp(x) + I 0 */ + if hy == uint32(0) { + v1 = [2]float32{ + 0: Xexpf(tls, x), + 1: y, + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + hx = *(*Tuint32_t)(unsafe.Pointer(&x)) + /* cexp(0 + I y) = cos(y) + I sin(y) */ + if hx&uint32(0x7fffffff) == uint32(0) { + v1 = [2]float32{ + 0: Xcosf(tls, y), + 1: Xsinf(tls, y), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + if hy >= uint32(0x7f800000) { + if hx&uint32(0x7fffffff) != uint32(0x7f800000) { + /* cexp(finite|NaN +- I Inf|NaN) = NaN + I NaN */ + v1 = [2]float32{ + 0: y - y, + 1: y - y, + } + return *(*complex64)(unsafe.Pointer(&v1)) + } else { + if hx&uint32(0x80000000) != 0 { + /* cexp(-Inf +- I Inf|NaN) = 0 + I 0 */ + v1 = [2]float32{} + return *(*complex64)(unsafe.Pointer(&v1)) + } else { + /* cexp(+Inf +- I Inf|NaN) = Inf + I NaN */ + v1 = [2]float32{ + 0: x, + 1: y - y, + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + } + } + if hx >= _exp_ovfl1 && hx <= _cexp_ovfl1 { + /* + * x is between 88.7 and 192, so we must scale to avoid + * overflow in expf(x). + */ + return X__ldexp_cexpf(tls, z, 0) + } else { + /* + * Cases covered here: + * - x < exp_ovfl and exp(x) won't overflow (common case) + * - x > cexp_ovfl, so exp(x) * s overflows for all s > 0 + * - x = +-Inf (generated by exp()) + * - x = NaN (spurious inexact exception from y) + */ + exp_x = Xexpf(tls, x) + v1 = [2]float32{ + 0: float32(exp_x * Xcosf(tls, y)), + 1: float32(exp_x * Xsinf(tls, y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + return r +} + +// C documentation +// +// //FIXME +func Xcexpl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcexp(tls, Complex128FromComplex128(z))) +} + +func Xcimag(tls *TLS, z complex128) (r float64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] +} + +func Xcimagf(tls *TLS, z complex64) (r float32) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] +} + +func Xcimagl(tls *TLS, z complex128) (r float64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] +} + +// FIXME + +/* log(z) = log(|z|) + i arg(z) */ + +func Xclog(tls *TLS, z complex128) (r1 complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var phi, r float64 + var v1 [2]float64 + _, _, _ = phi, r, v1 + r = Xcabs(tls, z) + phi = Xcarg(tls, z) + v1 = [2]float64{ + 0: Xlog(tls, r), + 1: phi, + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +// FIXME + +func Xclogf(tls *TLS, z complex64) (r1 complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var phi, r float32 + var v1 [2]float32 + _, _, _ = phi, r, v1 + r = Xcabsf(tls, z) + phi = Xcargf(tls, z) + v1 = [2]float32{ + 0: Xlogf(tls, r), + 1: phi, + } + return *(*complex64)(unsafe.Pointer(&v1)) +} + +func Xclogl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xclog(tls, Complex128FromComplex128(z))) +} + +func Xconj(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float64 + _ = v1 + v1 = [2]float64{ + 0: Float64FromComplex128(z), + 1: -+(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +func Xconjf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float32 + _ = v1 + v1 = [2]float32{ + 0: Float32FromComplex64(z), + 1: -+(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + } + return *(*complex64)(unsafe.Pointer(&v1)) +} + +func Xconjl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float64 + _ = v1 + v1 = [2]float64{ + 0: Float64FromComplex128(z), + 1: -+(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +/* pow(z, c) = exp(c log(z)), See C99 G.6.4.1 */ + +func Xcpow(tls *TLS, z complex128, c complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v c=%v, (%v:)", tls, z, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xcexp(tls, c*Xclog(tls, z)) +} + +func Xcpowf(tls *TLS, z complex64, c complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v c=%v, (%v:)", tls, z, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xcexpf(tls, c*Xclogf(tls, z)) +} + +func Xcpowl(tls *TLS, z complex128, c complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v c=%v, (%v:)", tls, z, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcpow(tls, Complex128FromComplex128(z), Complex128FromComplex128(c))) +} + +func Xcproj(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1, v3 uint64 + var v5 bool + var v6 [2]float64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _, _, _, _ = v1, v3, v5, v6 + *(*float64)(unsafe.Pointer(bp)) = Float64FromComplex128(z) + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + ; + if v5 = BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) == Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) == Uint64FromUint64(0x7ff)< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1, v3 uint32 + var v5 bool + var v6 [2]float32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _, _, _, _ = v1, v3, v5, v6 + *(*float32)(unsafe.Pointer(bp)) = Float32FromComplex64(z) + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + ; + if v5 = BoolInt32(v1&uint32(0x7fffffff) == uint32(0x7f800000)) != 0; !v5 { + *(*float32)(unsafe.Pointer(bp)) = +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] + v3 = *(*uint32)(unsafe.Pointer(bp)) + goto _4 + _4: + } + if v5 || BoolInt32(v3&uint32(0x7fffffff) == uint32(0x7f800000)) != 0 { + v6 = [2]float32{ + 0: X__builtin_inff(tls), + 1: Xcopysignf(tls, float32(0), +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)]), + } + return *(*complex64)(unsafe.Pointer(&v6)) + } + return z +} + +func Xcprojl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcproj(tls, Complex128FromComplex128(z))) +} + +func Xcreal(tls *TLS, z complex128) (r float64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Float64FromComplex128(z) +} + +func Xcrealf(tls *TLS, z complex64) (r float32) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Float32FromComplex64(z) +} + +func Xcreall(tls *TLS, z complex128) (r float64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Float64FromComplex128(z) +} + +/* sin(z) = -i sinh(i z) */ + +func Xcsin(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float64 + _ = v1 + v1 = [2]float64{ + 0: -+(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: Float64FromComplex128(z), + } + z = Xcsinh(tls, *(*complex128)(unsafe.Pointer(&v1))) + v1 = [2]float64{ + 0: +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: -Float64FromComplex128(z), + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +func Xcsinf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float32 + _ = v1 + v1 = [2]float32{ + 0: -+(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: Float32FromComplex64(z), + } + z = Xcsinhf(tls, *(*complex64)(unsafe.Pointer(&v1))) + v1 = [2]float32{ + 0: +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: -Float32FromComplex64(z), + } + return *(*complex64)(unsafe.Pointer(&v1)) +} + +var _huge2 = float64(8.98846567431158e+307) + +func Xcsinh(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __u, __u1 Tuint64_t + var h, x, y float64 + var hx, hy, ix, iy, lx, ly Tint32_t + var v1 [2]float64 + _, _, _, _, _, _, _, _, _, _, _, _ = __u, __u1, h, hx, hy, ix, iy, lx, ly, x, y, v1 + x = Float64FromComplex128(z) + y = +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] + __u = *(*Tuint64_t)(unsafe.Pointer(&x)) + hx = Int32FromUint64(__u >> int32(32)) + lx = Int32FromUint32(uint32(__u)) + __u1 = *(*Tuint64_t)(unsafe.Pointer(&y)) + hy = Int32FromUint64(__u1 >> int32(32)) + ly = Int32FromUint32(uint32(__u1)) + ix = int32(0x7fffffff) & hx + iy = int32(0x7fffffff) & hy + /* Handle the nearly-non-exceptional cases where x and y are finite. */ + if ix < int32(0x7ff00000) && iy < int32(0x7ff00000) { + if iy|ly == 0 { + v1 = [2]float64{ + 0: Xsinh(tls, x), + 1: y, + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + if ix < int32(0x40360000) { /* small x: normal case */ + v1 = [2]float64{ + 0: float64(Xsinh(tls, x) * Xcos(tls, y)), + 1: float64(Xcosh(tls, x) * Xsin(tls, y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* |x| >= 22, so cosh(x) ~= exp(|x|) */ + if ix < int32(0x40862e42) { + /* x < 710: exp(|x|) won't overflow */ + h = float64(Xexp(tls, Xfabs(tls, x)) * float64(0.5)) + v1 = [2]float64{ + 0: float64(Xcopysign(tls, h, x) * Xcos(tls, y)), + 1: float64(h * Xsin(tls, y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } else { + if ix < int32(0x4096bbaa) { + /* x < 1455: scale to avoid overflow */ + v1 = [2]float64{ + 0: Xfabs(tls, x), + 1: y, + } + z = X__ldexp_cexp(tls, *(*complex128)(unsafe.Pointer(&v1)), -int32(1)) + v1 = [2]float64{ + 0: float64(Float64FromComplex128(z) * Xcopysign(tls, Float64FromInt32(1), x)), + 1: +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + } + return *(*complex128)(unsafe.Pointer(&v1)) + } else { + /* x >= 1455: the result always overflows */ + h = float64(_huge2 * x) + v1 = [2]float64{ + 0: float64(h * Xcos(tls, y)), + 1: float64(float64(h*h) * Xsin(tls, y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + } + } + /* + * sinh(+-0 +- I Inf) = sign(d(+-0, dNaN))0 + I dNaN. + * The sign of 0 in the result is unspecified. Choice = normally + * the same as dNaN. Raise the invalid floating-point exception. + * + * sinh(+-0 +- I NaN) = sign(d(+-0, NaN))0 + I d(NaN). + * The sign of 0 in the result is unspecified. Choice = normally + * the same as d(NaN). + */ + if ix|lx == 0 && iy >= int32(0x7ff00000) { + v1 = [2]float64{ + 0: Xcopysign(tls, Float64FromInt32(0), float64(x*(y-y))), + 1: y - y, + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* + * sinh(+-Inf +- I 0) = +-Inf + I +-0. + * + * sinh(NaN +- I 0) = d(NaN) + I +-0. + */ + if iy|ly == 0 && ix >= int32(0x7ff00000) { + if hx&int32(0xfffff)|lx == 0 { + v1 = [2]float64{ + 0: x, + 1: y, + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + v1 = [2]float64{ + 0: x, + 1: Xcopysign(tls, Float64FromInt32(0), y), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* + * sinh(x +- I Inf) = dNaN + I dNaN. + * Raise the invalid floating-point exception for finite nonzero x. + * + * sinh(x + I NaN) = d(NaN) + I d(NaN). + * Optionally raises the invalid floating-point exception for finite + * nonzero x. Choice = don't raise (except for signaling NaNs). + */ + if ix < int32(0x7ff00000) && iy >= int32(0x7ff00000) { + v1 = [2]float64{ + 0: y - y, + 1: float64(x * (y - y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* + * sinh(+-Inf + I NaN) = +-Inf + I d(NaN). + * The sign of Inf in the result is unspecified. Choice = normally + * the same as d(NaN). + * + * sinh(+-Inf +- I Inf) = +Inf + I dNaN. + * The sign of Inf in the result is unspecified. Choice = always +. + * Raise the invalid floating-point exception. + * + * sinh(+-Inf + I y) = +-Inf cos(y) + I Inf sin(y) + */ + if ix >= int32(0x7ff00000) && hx&int32(0xfffff)|lx == 0 { + if iy >= int32(0x7ff00000) { + v1 = [2]float64{ + 0: float64(x * x), + 1: float64(x * (y - y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + v1 = [2]float64{ + 0: float64(x * Xcos(tls, y)), + 1: float64(float64(X__builtin_inff(tls)) * Xsin(tls, y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* + * sinh(NaN + I NaN) = d(NaN) + I d(NaN). + * + * sinh(NaN +- I Inf) = d(NaN) + I d(NaN). + * Optionally raises the invalid floating-point exception. + * Choice = raise. + * + * sinh(NaN + I y) = d(NaN) + I d(NaN). + * Optionally raises the invalid floating-point exception for finite + * nonzero y. Choice = don't raise (except for signaling NaNs). + */ + v1 = [2]float64{ + 0: float64(float64(x*x) * (y - y)), + 1: float64((x + x) * (y - y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +var _huge3 = float32(1.7014118346046923e+38) + +func Xcsinhf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var h, x, y float32 + var hx, hy, ix, iy Tint32_t + var v1 [2]float32 + _, _, _, _, _, _, _, _ = h, hx, hy, ix, iy, x, y, v1 + x = Float32FromComplex64(z) + y = +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] + hx = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(&x))) + hy = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(&y))) + ix = int32(0x7fffffff) & hx + iy = int32(0x7fffffff) & hy + if ix < int32(0x7f800000) && iy < int32(0x7f800000) { + if iy == 0 { + v1 = [2]float32{ + 0: Xsinhf(tls, x), + 1: y, + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + if ix < int32(0x41100000) { /* small x: normal case */ + v1 = [2]float32{ + 0: float32(Xsinhf(tls, x) * Xcosf(tls, y)), + 1: float32(Xcoshf(tls, x) * Xsinf(tls, y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + /* |x| >= 9, so cosh(x) ~= exp(|x|) */ + if ix < int32(0x42b17218) { + /* x < 88.7: expf(|x|) won't overflow */ + h = float32(Xexpf(tls, Xfabsf(tls, x)) * Float32FromFloat32(0.5)) + v1 = [2]float32{ + 0: float32(Xcopysignf(tls, h, x) * Xcosf(tls, y)), + 1: float32(h * Xsinf(tls, y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } else { + if ix < int32(0x4340b1e7) { + /* x < 192.7: scale to avoid overflow */ + v1 = [2]float32{ + 0: Xfabsf(tls, x), + 1: y, + } + z = X__ldexp_cexpf(tls, *(*complex64)(unsafe.Pointer(&v1)), -int32(1)) + v1 = [2]float32{ + 0: float32(Float32FromComplex64(z) * Xcopysignf(tls, Float32FromInt32(1), x)), + 1: +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + } + return *(*complex64)(unsafe.Pointer(&v1)) + } else { + /* x >= 192.7: the result always overflows */ + h = float32(_huge3 * x) + v1 = [2]float32{ + 0: float32(h * Xcosf(tls, y)), + 1: float32(float32(h*h) * Xsinf(tls, y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + } + } + if ix == 0 && iy >= int32(0x7f800000) { + v1 = [2]float32{ + 0: Xcopysignf(tls, Float32FromInt32(0), float32(x*(y-y))), + 1: y - y, + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + if iy == 0 && ix >= int32(0x7f800000) { + if hx&int32(0x7fffff) == 0 { + v1 = [2]float32{ + 0: x, + 1: y, + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + v1 = [2]float32{ + 0: x, + 1: Xcopysignf(tls, Float32FromInt32(0), y), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + if ix < int32(0x7f800000) && iy >= int32(0x7f800000) { + v1 = [2]float32{ + 0: y - y, + 1: float32(x * (y - y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + if ix >= int32(0x7f800000) && hx&int32(0x7fffff) == 0 { + if iy >= int32(0x7f800000) { + v1 = [2]float32{ + 0: float32(x * x), + 1: float32(x * (y - y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + v1 = [2]float32{ + 0: float32(x * Xcosf(tls, y)), + 1: float32(X__builtin_inff(tls) * Xsinf(tls, y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + v1 = [2]float32{ + 0: float32(float32(x*x) * (y - y)), + 1: float32((x + x) * (y - y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) +} + +// C documentation +// +// //FIXME +func Xcsinhl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcsinh(tls, Complex128FromComplex128(z))) +} + +func Xcsinl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcsin(tls, Complex128FromComplex128(z))) +} + +const THRESH = 7.446288774449766e+307 + +/* + * gcc doesn't implement complex multiplication or division correctly, + * so we need to handle infinities specially. We turn on this pragma to + * notify conforming c99 compilers that the fast-but-incorrect code that + * gcc generates is acceptable, since the special cases have already been + * handled. + */ + +/* We risk spurious overflow for components >= DBL_MAX / (1 + sqrt(2)). */ + +func Xcsqrt(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var a, b, t float64 + var result complex128 + var scale int32 + var v1 [2]float64 + var v2, v5 uint64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _, _, _, _, _, _, _, _ = a, b, result, scale, t, v1, v2, v5 + a = Float64FromComplex128(z) + b = +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] + /* Handle special cases. */ + if z == Complex128FromInt32(0) { + v1 = [2]float64{ + 1: b, + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + *(*float64)(unsafe.Pointer(bp)) = b + v2 = *(*uint64)(unsafe.Pointer(bp)) + goto _3 +_3: + if BoolInt32(v2&(-Uint64FromUint64(1)>>Int32FromInt32(1)) == Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) == Uint64FromUint64(0x7ff)<>Int32FromInt32(63)) != 0 { + v1 = [2]float64{ + 0: Xfabs(tls, b-b), + 1: Xcopysign(tls, a, b), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } else { + v1 = [2]float64{ + 0: a, + 1: Xcopysign(tls, b-b, b), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + } + /* + * The remaining special case (b is NaN) is handled just fine by + * the normal code path below. + */ + /* Scale to avoid overflow. */ + if Xfabs(tls, a) >= float64(7.446288774449766e+307) || Xfabs(tls, b) >= float64(7.446288774449766e+307) { + a = a * float64(0.25) + b = b * float64(0.25) + scale = int32(1) + } else { + scale = 0 + } + /* Algorithm 312, CACM vol 10, Oct 1967. */ + if a >= Float64FromInt32(0) { + t = Xsqrt(tls, float64((a+Xhypot(tls, a, b))*float64(0.5))) + v1 = [2]float64{ + 0: t, + 1: b / float64(Float64FromInt32(2)*t), + } + result = *(*complex128)(unsafe.Pointer(&v1)) + } else { + t = Xsqrt(tls, float64((-a+Xhypot(tls, a, b))*float64(0.5))) + v1 = [2]float64{ + 0: Xfabs(tls, b) / float64(Float64FromInt32(2)*t), + 1: Xcopysign(tls, t, b), + } + result = *(*complex128)(unsafe.Pointer(&v1)) + } + /* Rescale. */ + if scale != 0 { + result = result * Complex128FromInt32(2) + } + return result +} + +/* + * gcc doesn't implement complex multiplication or division correctly, + * so we need to handle infinities specially. We turn on this pragma to + * notify conforming c99 compilers that the fast-but-incorrect code that + * gcc generates is acceptable, since the special cases have already been + * handled. + */ + +func Xcsqrtf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var a, b float32 + var t float64 + var v1 [2]float32 + var v2, v5 uint32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _, _, _, _, _, _ = a, b, t, v1, v2, v5 + a = Float32FromComplex64(z) + b = +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] + /* Handle special cases. */ + if z == Complex64FromInt32(0) { + v1 = [2]float32{ + 1: b, + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + *(*float32)(unsafe.Pointer(bp)) = b + v2 = *(*uint32)(unsafe.Pointer(bp)) + goto _3 +_3: + if BoolInt32(v2&uint32(0x7fffffff) == uint32(0x7f800000)) != 0 { + v1 = [2]float32{ + 0: X__builtin_inff(tls), + 1: b, + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + *(*float32)(unsafe.Pointer(bp)) = a + v2 = *(*uint32)(unsafe.Pointer(bp)) + goto _6 +_6: + if BoolInt32(v2&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + t = float64((b - b) / (b - b)) /* raise invalid if b is not a NaN */ + v1 = [2]float32{ + 0: a, + 1: float32(t), + } + return *(*complex64)(unsafe.Pointer(&v1)) /* return NaN + NaN i */ + } + *(*float32)(unsafe.Pointer(bp)) = a + v2 = *(*uint32)(unsafe.Pointer(bp)) + goto _9 +_9: + if BoolInt32(v2&uint32(0x7fffffff) == uint32(0x7f800000)) != 0 { + /* + * csqrtf(inf + NaN i) = inf + NaN i + * csqrtf(inf + y i) = inf + 0 i + * csqrtf(-inf + NaN i) = NaN +- inf i + * csqrtf(-inf + y i) = 0 + inf i + */ + *(*float32)(unsafe.Pointer(bp)) = a + v5 = *(*uint32)(unsafe.Pointer(bp)) + goto _11 + _11: + if Int32FromUint32(v5>>Int32FromInt32(31)) != 0 { + v1 = [2]float32{ + 0: Xfabsf(tls, b-b), + 1: Xcopysignf(tls, a, b), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } else { + v1 = [2]float32{ + 0: a, + 1: Xcopysignf(tls, b-b, b), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + } + /* + * The remaining special case (b is NaN) is handled just fine by + * the normal code path below. + */ + /* + * We compute t in double precision to avoid overflow and to + * provide correct rounding in nearly all cases. + * This is Algorithm 312, CACM vol 10, Oct 1967. + */ + if a >= Float32FromInt32(0) { + t = Xsqrt(tls, float64((float64(a)+Xhypot(tls, float64(a), float64(b)))*float64(0.5))) + v1 = [2]float32{ + 0: float32(t), + 1: float32(float64(b) / float64(Float64FromFloat64(2)*t)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } else { + t = Xsqrt(tls, float64((float64(-a)+Xhypot(tls, float64(a), float64(b)))*float64(0.5))) + v1 = [2]float32{ + 0: float32(float64(Xfabsf(tls, b)) / float64(Float64FromFloat64(2)*t)), + 1: Xcopysignf(tls, float32(t), b), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + return r +} + +// C documentation +// +// //FIXME +func Xcsqrtl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcsqrt(tls, Complex128FromComplex128(z))) +} + +/* tan(z) = -i tanh(i z) */ + +func Xctan(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float64 + _ = v1 + v1 = [2]float64{ + 0: -+(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: Float64FromComplex128(z), + } + z = Xctanh(tls, *(*complex128)(unsafe.Pointer(&v1))) + v1 = [2]float64{ + 0: +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: -Float64FromComplex128(z), + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +func Xctanf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float32 + _ = v1 + v1 = [2]float32{ + 0: -+(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: Float32FromComplex64(z), + } + z = Xctanhf(tls, *(*complex64)(unsafe.Pointer(&v1))) + v1 = [2]float32{ + 0: +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: -Float32FromComplex64(z), + } + return *(*complex64)(unsafe.Pointer(&v1)) +} + +func Xctanh(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var __u1, v3 Tuint64_t + var beta, denom, exp_mx, rho, s, t, x, y, v2 float64 + var hx, ix, lx Tuint32_t + var v1 [2]float64 + var v6 uint64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = __u1, beta, denom, exp_mx, hx, ix, lx, rho, s, t, x, y, v1, v2, v3, v6 + x = Float64FromComplex128(z) + y = +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] + __u1 = *(*Tuint64_t)(unsafe.Pointer(&x)) + hx = uint32(__u1 >> int32(32)) + lx = uint32(__u1) + ix = hx & uint32(0x7fffffff) + /* + * ctanh(NaN + i 0) = NaN + i 0 + * + * ctanh(NaN + i y) = NaN + i NaN for y != 0 + * + * The imaginary part has the sign of x*sin(2*y), but there's no + * special effort to get this right. + * + * ctanh(+-Inf +- i Inf) = +-1 +- 0 + * + * ctanh(+-Inf + i y) = +-1 + 0 sin(2y) for y finite + * + * The imaginary part of the sign is unspecified. This special + * case is only needed to avoid a spurious invalid exception when + * y is infinite. + */ + if ix >= uint32(0x7ff00000) { + if ix&uint32(0xfffff)|lx != 0 { /* x is NaN */ + if y == Float64FromInt32(0) { + v2 = y + } else { + v2 = float64(x * y) + } + v1 = [2]float64{ + 0: x, + 1: v2, + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + v3 = uint64(hx-Uint32FromInt32(0x40000000))<>Int32FromInt32(1)) == Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) < Uint64FromUint64(0x7ff)<= uint32(0x40360000) { /* x >= 22 */ + exp_mx = Xexp(tls, -Xfabs(tls, x)) + v1 = [2]float64{ + 0: Xcopysign(tls, Float64FromInt32(1), x), + 1: float64(float64(float64(float64(Float64FromInt32(4)*Xsin(tls, y))*Xcos(tls, y))*exp_mx) * exp_mx), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* Kahan's algorithm */ + t = Xtan(tls, y) + beta = float64(1) + float64(t*t) /* = 1 / cos^2(y) */ + s = Xsinh(tls, x) + rho = Xsqrt(tls, Float64FromInt32(1)+float64(s*s)) /* = cosh(x) */ + denom = Float64FromInt32(1) + float64(float64(beta*s)*s) + v1 = [2]float64{ + 0: float64(float64(beta*rho)*s) / denom, + 1: t / denom, + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +func Xctanhf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var beta, denom, exp_mx, rho, s, t, x, y, v2 float32 + var hx, ix, v3 Tuint32_t + var v1 [2]float32 + var v6 uint32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = beta, denom, exp_mx, hx, ix, rho, s, t, x, y, v1, v2, v3, v6 + x = Float32FromComplex64(z) + y = +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] + hx = *(*Tuint32_t)(unsafe.Pointer(&x)) + ix = hx & uint32(0x7fffffff) + if ix >= uint32(0x7f800000) { + if ix&uint32(0x7fffff) != 0 { + if y == Float32FromInt32(0) { + v2 = y + } else { + v2 = float32(x * y) + } + v1 = [2]float32{ + 0: x, + 1: v2, + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + v3 = hx - uint32(0x40000000) + x = *(*float32)(unsafe.Pointer(&v3)) + *(*float32)(unsafe.Pointer(bp)) = y + v6 = *(*uint32)(unsafe.Pointer(bp)) + goto _7 + _7: + if BoolInt32(v6&uint32(0x7fffffff) == uint32(0x7f800000)) != 0 { + v2 = y + } else { + v2 = float32(Xsinf(tls, y) * Xcosf(tls, y)) + } + v1 = [2]float32{ + 0: x, + 1: Xcopysignf(tls, Float32FromInt32(0), v2), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + *(*float32)(unsafe.Pointer(bp)) = y + v6 = *(*uint32)(unsafe.Pointer(bp)) + goto _9 +_9: + if !(BoolInt32(v6&Uint32FromInt32(0x7fffffff) < Uint32FromInt32(0x7f800000)) != 0) { + if ix != 0 { + v2 = y - y + } else { + v2 = x + } + v1 = [2]float32{ + 0: v2, + 1: y - y, + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + if ix >= uint32(0x41300000) { /* x >= 11 */ + exp_mx = Xexpf(tls, -Xfabsf(tls, x)) + v1 = [2]float32{ + 0: Xcopysignf(tls, Float32FromInt32(1), x), + 1: float32(float32(float32(float32(Float32FromInt32(4)*Xsinf(tls, y))*Xcosf(tls, y))*exp_mx) * exp_mx), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + t = Xtanf(tls, y) + beta = float32(float64(1) + float64(t*t)) + s = Xsinhf(tls, x) + rho = Xsqrtf(tls, Float32FromInt32(1)+float32(s*s)) + denom = Float32FromInt32(1) + float32(float32(beta*s)*s) + v1 = [2]float32{ + 0: float32(float32(beta*rho)*s) / denom, + 1: t / denom, + } + return *(*complex64)(unsafe.Pointer(&v1)) +} + +// C documentation +// +// //FIXME +func Xctanhl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xctanh(tls, Complex128FromComplex128(z))) +} + +func Xctanl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xctan(tls, Complex128FromComplex128(z))) +} + +const BUFSIZ = 1024 +const E2BIG = 7 +const EACCES = 13 +const EADDRINUSE = 98 +const EADDRNOTAVAIL = 99 +const EADV = 68 +const EAFNOSUPPORT = 97 +const EAGAIN = 11 +const EALREADY = 114 +const EBADE = 52 +const EBADF = 9 +const EBADFD = 77 +const EBADMSG = 74 +const EBADR = 53 +const EBADRQC = 56 +const EBADSLT = 57 +const EBFONT = 59 +const EBUSY = 16 +const ECANCELED = 125 +const ECHILD = 10 +const ECHRNG = 44 +const ECOMM = 70 +const ECONNABORTED = 103 +const ECONNREFUSED = 111 +const ECONNRESET = 104 +const EDEADLK = 35 +const EDEADLOCK = 35 +const EDESTADDRREQ = 89 +const EDOM = 33 +const EDOTDOT = 73 +const EDQUOT = 122 +const EEXIST = 17 +const EFAULT = 14 +const EFBIG = 27 +const EHOSTDOWN = 112 +const EHOSTUNREACH = 113 +const EHWPOISON = 133 +const EIDRM = 43 +const EILSEQ = 84 +const EINPROGRESS = 115 +const EINTR = 4 +const EINVAL = 22 +const EIO = 5 +const EISCONN = 106 +const EISDIR = 21 +const EISNAM = 120 +const EKEYEXPIRED = 127 +const EKEYREJECTED = 129 +const EKEYREVOKED = 128 +const EL2HLT = 51 +const EL2NSYNC = 45 +const EL3HLT = 46 +const EL3RST = 47 +const ELIBACC = 79 +const ELIBBAD = 80 +const ELIBEXEC = 83 +const ELIBMAX = 82 +const ELIBSCN = 81 +const ELNRNG = 48 +const ELOOP = 40 +const EMEDIUMTYPE = 124 +const EMFILE = 24 +const EMLINK = 31 +const EMSGSIZE = 90 +const EMULTIHOP = 72 +const ENAMETOOLONG = 36 +const ENAVAIL = 119 +const ENETDOWN = 100 +const ENETRESET = 102 +const ENETUNREACH = 101 +const ENFILE = 23 +const ENOANO = 55 +const ENOBUFS = 105 +const ENOCSI = 50 +const ENODATA = 61 +const ENODEV = 19 +const ENOENT = 2 +const ENOEXEC = 8 +const ENOKEY = 126 +const ENOLCK = 37 +const ENOLINK = 67 +const ENOMEDIUM = 123 +const ENOMEM = 12 +const ENOMSG = 42 +const ENONET = 64 +const ENOPKG = 65 +const ENOPROTOOPT = 92 +const ENOSPC = 28 +const ENOSR = 63 +const ENOSTR = 60 +const ENOSYS = 38 +const ENOTBLK = 15 +const ENOTCONN = 107 +const ENOTDIR = 20 +const ENOTEMPTY = 39 +const ENOTNAM = 118 +const ENOTRECOVERABLE = 131 +const ENOTSOCK = 88 +const ENOTSUP = 95 +const ENOTTY = 25 +const ENOTUNIQ = 76 +const ENXIO = 6 +const EOPNOTSUPP = 95 +const EOVERFLOW = 75 +const EOWNERDEAD = 130 +const EPERM = 1 +const EPFNOSUPPORT = 96 +const EPIPE = 32 +const EPROTO = 71 +const EPROTONOSUPPORT = 93 +const EPROTOTYPE = 91 +const ERANGE = 34 +const EREMCHG = 78 +const EREMOTE = 66 +const EREMOTEIO = 121 +const ERESTART = 85 +const ERFKILL = 132 +const EROFS = 30 +const ESHUTDOWN = 108 +const ESOCKTNOSUPPORT = 94 +const ESPIPE = 29 +const ESRCH = 3 +const ESRMNT = 69 +const ESTALE = 116 +const ESTRPIPE = 86 +const ETIME = 62 +const ETIMEDOUT = 110 +const ETOOMANYREFS = 109 +const ETXTBSY = 26 +const EUCLEAN = 117 +const EUNATCH = 49 +const EUSERS = 87 +const EWOULDBLOCK = 11 +const EXDEV = 18 +const EXFULL = 54 +const FILENAME_MAX = 4096 +const FOPEN_MAX = 1000 +const F_LOCK = 1 +const F_OK = 0 +const F_TEST = 3 +const F_TLOCK = 2 +const F_ULOCK = 0 +const L_ctermid = 20 +const L_tmpnam = 20 +const POSIX_CLOSE_RESTART = 0 +const P_tmpdir = "/tmp" +const R_OK = 4 +const SEEK_DATA = 3 +const SEEK_HOLE = 4 +const STDERR_FILENO = 2 +const STDIN_FILENO = 0 +const STDOUT_FILENO = 1 +const TMP_MAX = 10000 +const W_OK = 2 +const X_OK = 1 +const _CS_GNU_LIBC_VERSION = 2 +const _CS_GNU_LIBPTHREAD_VERSION = 3 +const _CS_PATH = 0 +const _CS_POSIX_V5_WIDTH_RESTRICTED_ENVS = 4 +const _CS_POSIX_V6_ILP32_OFF32_CFLAGS = 1116 +const _CS_POSIX_V6_ILP32_OFF32_LDFLAGS = 1117 +const _CS_POSIX_V6_ILP32_OFF32_LIBS = 1118 +const _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS = 1119 +const _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS = 1120 +const _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS = 1121 +const _CS_POSIX_V6_ILP32_OFFBIG_LIBS = 1122 +const _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS = 1123 +const _CS_POSIX_V6_LP64_OFF64_CFLAGS = 1124 +const _CS_POSIX_V6_LP64_OFF64_LDFLAGS = 1125 +const _CS_POSIX_V6_LP64_OFF64_LIBS = 1126 +const _CS_POSIX_V6_LP64_OFF64_LINTFLAGS = 1127 +const _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS = 1128 +const _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS = 1129 +const _CS_POSIX_V6_LPBIG_OFFBIG_LIBS = 1130 +const _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS = 1131 +const _CS_POSIX_V6_WIDTH_RESTRICTED_ENVS = 1 +const _CS_POSIX_V7_ILP32_OFF32_CFLAGS = 1132 +const _CS_POSIX_V7_ILP32_OFF32_LDFLAGS = 1133 +const _CS_POSIX_V7_ILP32_OFF32_LIBS = 1134 +const _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS = 1135 +const _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS = 1136 +const _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS = 1137 +const _CS_POSIX_V7_ILP32_OFFBIG_LIBS = 1138 +const _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS = 1139 +const _CS_POSIX_V7_LP64_OFF64_CFLAGS = 1140 +const _CS_POSIX_V7_LP64_OFF64_LDFLAGS = 1141 +const _CS_POSIX_V7_LP64_OFF64_LIBS = 1142 +const _CS_POSIX_V7_LP64_OFF64_LINTFLAGS = 1143 +const _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS = 1144 +const _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS = 1145 +const _CS_POSIX_V7_LPBIG_OFFBIG_LIBS = 1146 +const _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS = 1147 +const _CS_POSIX_V7_THREADS_CFLAGS = 1150 +const _CS_POSIX_V7_THREADS_LDFLAGS = 1151 +const _CS_POSIX_V7_WIDTH_RESTRICTED_ENVS = 5 +const _CS_V6_ENV = 1148 +const _CS_V7_ENV = 1149 +const _IOFBF = 0 +const _IOLBF = 1 +const _IONBF = 2 +const _PC_2_SYMLINKS = 20 +const _PC_ALLOC_SIZE_MIN = 18 +const _PC_ASYNC_IO = 10 +const _PC_CHOWN_RESTRICTED = 6 +const _PC_FILESIZEBITS = 13 +const _PC_LINK_MAX = 0 +const _PC_MAX_CANON = 1 +const _PC_MAX_INPUT = 2 +const _PC_NAME_MAX = 3 +const _PC_NO_TRUNC = 7 +const _PC_PATH_MAX = 4 +const _PC_PIPE_BUF = 5 +const _PC_PRIO_IO = 11 +const _PC_REC_INCR_XFER_SIZE = 14 +const _PC_REC_MAX_XFER_SIZE = 15 +const _PC_REC_MIN_XFER_SIZE = 16 +const _PC_REC_XFER_ALIGN = 17 +const _PC_SOCK_MAXBUF = 12 +const _PC_SYMLINK_MAX = 19 +const _PC_SYNC_IO = 9 +const _PC_VDISABLE = 8 +const _POSIX2_C_BIND = 200809 +const _POSIX2_VERSION = 200809 +const _POSIX_ADVISORY_INFO = 200809 +const _POSIX_ASYNCHRONOUS_IO = 200809 +const _POSIX_BARRIERS = 200809 +const _POSIX_CHOWN_RESTRICTED = 1 +const _POSIX_CLOCK_SELECTION = 200809 +const _POSIX_CPUTIME = 200809 +const _POSIX_FSYNC = 200809 +const _POSIX_IPV6 = 200809 +const _POSIX_JOB_CONTROL = 1 +const _POSIX_MAPPED_FILES = 200809 +const _POSIX_MEMLOCK = 200809 +const _POSIX_MEMLOCK_RANGE = 200809 +const _POSIX_MEMORY_PROTECTION = 200809 +const _POSIX_MESSAGE_PASSING = 200809 +const _POSIX_MONOTONIC_CLOCK = 200809 +const _POSIX_NO_TRUNC = 1 +const _POSIX_RAW_SOCKETS = 200809 +const _POSIX_READER_WRITER_LOCKS = 200809 +const _POSIX_REALTIME_SIGNALS = 200809 +const _POSIX_REGEXP = 1 +const _POSIX_SAVED_IDS = 1 +const _POSIX_SEMAPHORES = 200809 +const _POSIX_SHARED_MEMORY_OBJECTS = 200809 +const _POSIX_SHELL = 1 +const _POSIX_SPAWN = 200809 +const _POSIX_SPIN_LOCKS = 200809 +const _POSIX_THREADS = 200809 +const _POSIX_THREAD_ATTR_STACKADDR = 200809 +const _POSIX_THREAD_ATTR_STACKSIZE = 200809 +const _POSIX_THREAD_CPUTIME = 200809 +const _POSIX_THREAD_PRIORITY_SCHEDULING = 200809 +const _POSIX_THREAD_PROCESS_SHARED = 200809 +const _POSIX_THREAD_SAFE_FUNCTIONS = 200809 +const _POSIX_TIMEOUTS = 200809 +const _POSIX_TIMERS = 200809 +const _POSIX_V6_LP64_OFF64 = 1 +const _POSIX_V7_LP64_OFF64 = 1 +const _POSIX_VDISABLE = 0 +const _POSIX_VERSION = 200809 +const _SC_2_CHAR_TERM = 95 +const _SC_2_C_BIND = 47 +const _SC_2_C_DEV = 48 +const _SC_2_FORT_DEV = 49 +const _SC_2_FORT_RUN = 50 +const _SC_2_LOCALEDEF = 52 +const _SC_2_PBS = 168 +const _SC_2_PBS_ACCOUNTING = 169 +const _SC_2_PBS_CHECKPOINT = 175 +const _SC_2_PBS_LOCATE = 170 +const _SC_2_PBS_MESSAGE = 171 +const _SC_2_PBS_TRACK = 172 +const _SC_2_SW_DEV = 51 +const _SC_2_UPE = 97 +const _SC_2_VERSION = 46 +const _SC_ADVISORY_INFO = 132 +const _SC_AIO_LISTIO_MAX = 23 +const _SC_AIO_MAX = 24 +const _SC_AIO_PRIO_DELTA_MAX = 25 +const _SC_ARG_MAX = 0 +const _SC_ASYNCHRONOUS_IO = 12 +const _SC_ATEXIT_MAX = 87 +const _SC_AVPHYS_PAGES = 86 +const _SC_BARRIERS = 133 +const _SC_BC_BASE_MAX = 36 +const _SC_BC_DIM_MAX = 37 +const _SC_BC_SCALE_MAX = 38 +const _SC_BC_STRING_MAX = 39 +const _SC_CHILD_MAX = 1 +const _SC_CLK_TCK = 2 +const _SC_CLOCK_SELECTION = 137 +const _SC_COLL_WEIGHTS_MAX = 40 +const _SC_CPUTIME = 138 +const _SC_DELAYTIMER_MAX = 26 +const _SC_EXPR_NEST_MAX = 42 +const _SC_FSYNC = 15 +const _SC_GETGR_R_SIZE_MAX = 69 +const _SC_GETPW_R_SIZE_MAX = 70 +const _SC_HOST_NAME_MAX = 180 +const _SC_IOV_MAX = 60 +const _SC_IPV6 = 235 +const _SC_JOB_CONTROL = 7 +const _SC_LINE_MAX = 43 +const _SC_LOGIN_NAME_MAX = 71 +const _SC_MAPPED_FILES = 16 +const _SC_MEMLOCK = 17 +const _SC_MEMLOCK_RANGE = 18 +const _SC_MEMORY_PROTECTION = 19 +const _SC_MESSAGE_PASSING = 20 +const _SC_MINSIGSTKSZ = 249 +const _SC_MONOTONIC_CLOCK = 149 +const _SC_MQ_OPEN_MAX = 27 +const _SC_MQ_PRIO_MAX = 28 +const _SC_NGROUPS_MAX = 3 +const _SC_NPROCESSORS_CONF = 83 +const _SC_NPROCESSORS_ONLN = 84 +const _SC_NZERO = 109 +const _SC_OPEN_MAX = 4 +const _SC_PAGESIZE = 30 +const _SC_PAGE_SIZE = 30 +const _SC_PASS_MAX = 88 +const _SC_PHYS_PAGES = 85 +const _SC_PRIORITIZED_IO = 13 +const _SC_PRIORITY_SCHEDULING = 10 +const _SC_RAW_SOCKETS = 236 +const _SC_READER_WRITER_LOCKS = 153 +const _SC_REALTIME_SIGNALS = 9 +const _SC_REGEXP = 155 +const _SC_RE_DUP_MAX = 44 +const _SC_RTSIG_MAX = 31 +const _SC_SAVED_IDS = 8 +const _SC_SEMAPHORES = 21 +const _SC_SEM_NSEMS_MAX = 32 +const _SC_SEM_VALUE_MAX = 33 +const _SC_SHARED_MEMORY_OBJECTS = 22 +const _SC_SHELL = 157 +const _SC_SIGQUEUE_MAX = 34 +const _SC_SIGSTKSZ = 250 +const _SC_SPAWN = 159 +const _SC_SPIN_LOCKS = 154 +const _SC_SPORADIC_SERVER = 160 +const _SC_SS_REPL_MAX = 241 +const _SC_STREAMS = 174 +const _SC_STREAM_MAX = 5 +const _SC_SYMLOOP_MAX = 173 +const _SC_SYNCHRONIZED_IO = 14 +const _SC_THREADS = 67 +const _SC_THREAD_ATTR_STACKADDR = 77 +const _SC_THREAD_ATTR_STACKSIZE = 78 +const _SC_THREAD_CPUTIME = 139 +const _SC_THREAD_DESTRUCTOR_ITERATIONS = 73 +const _SC_THREAD_KEYS_MAX = 74 +const _SC_THREAD_PRIORITY_SCHEDULING = 79 +const _SC_THREAD_PRIO_INHERIT = 80 +const _SC_THREAD_PRIO_PROTECT = 81 +const _SC_THREAD_PROCESS_SHARED = 82 +const _SC_THREAD_ROBUST_PRIO_INHERIT = 247 +const _SC_THREAD_ROBUST_PRIO_PROTECT = 248 +const _SC_THREAD_SAFE_FUNCTIONS = 68 +const _SC_THREAD_SPORADIC_SERVER = 161 +const _SC_THREAD_STACK_MIN = 75 +const _SC_THREAD_THREADS_MAX = 76 +const _SC_TIMEOUTS = 164 +const _SC_TIMERS = 11 +const _SC_TIMER_MAX = 35 +const _SC_TRACE = 181 +const _SC_TRACE_EVENT_FILTER = 182 +const _SC_TRACE_EVENT_NAME_MAX = 242 +const _SC_TRACE_INHERIT = 183 +const _SC_TRACE_LOG = 184 +const _SC_TRACE_NAME_MAX = 243 +const _SC_TRACE_SYS_MAX = 244 +const _SC_TRACE_USER_EVENT_MAX = 245 +const _SC_TTY_NAME_MAX = 72 +const _SC_TYPED_MEMORY_OBJECTS = 165 +const _SC_TZNAME_MAX = 6 +const _SC_UIO_MAXIOV = 60 +const _SC_V6_ILP32_OFF32 = 176 +const _SC_V6_ILP32_OFFBIG = 177 +const _SC_V6_LP64_OFF64 = 178 +const _SC_V6_LPBIG_OFFBIG = 179 +const _SC_V7_ILP32_OFF32 = 237 +const _SC_V7_ILP32_OFFBIG = 238 +const _SC_V7_LP64_OFF64 = 239 +const _SC_V7_LPBIG_OFFBIG = 240 +const _SC_VERSION = 29 +const _SC_XBS5_ILP32_OFF32 = 125 +const _SC_XBS5_ILP32_OFFBIG = 126 +const _SC_XBS5_LP64_OFF64 = 127 +const _SC_XBS5_LPBIG_OFFBIG = 128 +const _SC_XOPEN_CRYPT = 92 +const _SC_XOPEN_ENH_I18N = 93 +const _SC_XOPEN_LEGACY = 129 +const _SC_XOPEN_REALTIME = 130 +const _SC_XOPEN_REALTIME_THREADS = 131 +const _SC_XOPEN_SHM = 94 +const _SC_XOPEN_STREAMS = 246 +const _SC_XOPEN_UNIX = 91 +const _SC_XOPEN_VERSION = 89 +const _SC_XOPEN_XCU_VERSION = 90 +const _SC_XOPEN_XPG2 = 98 +const _SC_XOPEN_XPG3 = 99 +const _SC_XOPEN_XPG4 = 100 +const _XOPEN_ENH_I18N = 1 +const _XOPEN_UNIX = 1 +const _XOPEN_VERSION = 700 + +type Tsize_t = uint64 + +type Tssize_t = int64 + +type Toff_t = int64 + +type Tpid_t = int32 + +type Tuid_t = uint32 + +type Tgid_t = uint32 + +type Tuseconds_t = uint32 + +type Tva_list = uintptr + +type t__isoc_va_list = uintptr + +type Tfpos_t = struct { + F__lldata [0]int64 + F__align [0]float64 + F__opaque [16]uint8 +} + +type T_G_fpos64_t = Tfpos_t + +func Xconfstr(tls *TLS, name int32, buf uintptr, len1 Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v name=%v buf=%v len1=%v, (%v:)", tls, name, buf, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var s uintptr + _ = s + s = __ccgo_ts + if !(name != 0) { + s = __ccgo_ts + 1 + } else { + if Uint32FromInt32(name) & ^Uint32FromUint32(4) != uint32(1) && Uint32FromInt32(name-int32(_CS_POSIX_V6_ILP32_OFF32_CFLAGS)) > uint32(35) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uint64(0) + } + } + // snprintf is overkill but avoid wasting code size to implement + // this completely useless function and its truncation semantics + return Uint64FromInt32(Xsnprintf(tls, buf, len1, __ccgo_ts+15, VaList(bp+8, s)) + int32(1)) +} + +const ARG_MAX = 131072 +const BC_BASE_MAX = 99 +const BC_DIM_MAX = 2048 +const BC_SCALE_MAX = 99 +const BC_STRING_MAX = 1000 +const CHARCLASS_NAME_MAX = 14 +const CHAR_BIT = 8 +const CHAR_MAX = 255 +const CHAR_MIN = 0 +const COLL_WEIGHTS_MAX = 2 +const DELAYTIMER_MAX = 2147483647 +const EXPR_NEST_MAX = 32 +const FILESIZEBITS = 64 +const HOST_NAME_MAX = 255 +const INT_MAX = 2147483647 +const INT_MIN = -2147483648 +const IOV_MAX = 1024 +const LINE_MAX = 4096 +const LLONG_MAX = 9223372036854775807 +const LLONG_MIN = -9223372036854775808 +const LOGIN_NAME_MAX = 256 +const LONG_BIT = 64 +const LONG_MAX = 9223372036854775807 +const LONG_MIN = -9223372036854775808 +const MB_LEN_MAX = 4 +const MQ_PRIO_MAX = 32768 +const NAME_MAX = 255 +const NGROUPS_MAX = 32 +const NL_ARGMAX = 9 +const NL_LANGMAX = 32 +const NL_MSGMAX = 32767 +const NL_SETMAX = 255 +const NL_TEXTMAX = 2048 +const NZERO = 20 +const PATH_MAX = 4096 +const PIPE_BUF = 4096 +const PTHREAD_DESTRUCTOR_ITERATIONS = 4 +const PTHREAD_KEYS_MAX = 128 +const PTHREAD_STACK_MIN = 2048 +const RE_DUP_MAX = 255 +const SCHAR_MAX = 127 +const SCHAR_MIN = -128 +const SEEK_CUR = 1 +const SEEK_END = 2 +const SEEK_SET = 0 +const SEM_NSEMS_MAX = 256 +const SEM_VALUE_MAX = 2147483647 +const SHRT_MAX = 32767 +const SHRT_MIN = -32768 +const SSIZE_MAX = 9223372036854775807 +const SYMLOOP_MAX = 40 +const TTY_NAME_MAX = 32 +const TZNAME_MAX = 6 +const UCHAR_MAX = 255 +const UINT_MAX = 4294967295 +const ULLONG_MAX = 18446744073709551615 +const ULONG_MAX = 18446744073709551615 +const USHRT_MAX = 65535 +const WORD_BIT = 32 +const _POSIX2_BC_BASE_MAX = 99 +const _POSIX2_BC_DIM_MAX = 2048 +const _POSIX2_BC_SCALE_MAX = 99 +const _POSIX2_BC_STRING_MAX = 1000 +const _POSIX2_CHARCLASS_NAME_MAX = 14 +const _POSIX2_COLL_WEIGHTS_MAX = 2 +const _POSIX2_EXPR_NEST_MAX = 32 +const _POSIX2_LINE_MAX = 2048 +const _POSIX2_RE_DUP_MAX = 255 +const _POSIX_AIO_LISTIO_MAX = 2 +const _POSIX_AIO_MAX = 1 +const _POSIX_ARG_MAX = 4096 +const _POSIX_CHILD_MAX = 25 +const _POSIX_CLOCKRES_MIN = 20000000 +const _POSIX_DELAYTIMER_MAX = 32 +const _POSIX_HOST_NAME_MAX = 255 +const _POSIX_LINK_MAX = 8 +const _POSIX_LOGIN_NAME_MAX = 9 +const _POSIX_MAX_CANON = 255 +const _POSIX_MAX_INPUT = 255 +const _POSIX_MQ_OPEN_MAX = 8 +const _POSIX_MQ_PRIO_MAX = 32 +const _POSIX_NAME_MAX = 14 +const _POSIX_NGROUPS_MAX = 8 +const _POSIX_OPEN_MAX = 20 +const _POSIX_PATH_MAX = 256 +const _POSIX_PIPE_BUF = 512 +const _POSIX_RE_DUP_MAX = 255 +const _POSIX_RTSIG_MAX = 8 +const _POSIX_SEM_NSEMS_MAX = 256 +const _POSIX_SEM_VALUE_MAX = 32767 +const _POSIX_SIGQUEUE_MAX = 32 +const _POSIX_SSIZE_MAX = 32767 +const _POSIX_SS_REPL_MAX = 4 +const _POSIX_STREAM_MAX = 8 +const _POSIX_SYMLINK_MAX = 255 +const _POSIX_SYMLOOP_MAX = 8 +const _POSIX_THREAD_DESTRUCTOR_ITERATIONS = 4 +const _POSIX_THREAD_KEYS_MAX = 128 +const _POSIX_THREAD_THREADS_MAX = 64 +const _POSIX_TIMER_MAX = 32 +const _POSIX_TRACE_EVENT_NAME_MAX = 30 +const _POSIX_TRACE_NAME_MAX = 8 +const _POSIX_TRACE_SYS_MAX = 8 +const _POSIX_TRACE_USER_EVENT_MAX = 32 +const _POSIX_TTY_NAME_MAX = 9 +const _POSIX_TZNAME_MAX = 6 +const _XOPEN_IOV_MAX = 16 +const _XOPEN_NAME_MAX = 255 +const _XOPEN_PATH_MAX = 1024 + +func Xfpathconf(tls *TLS, fd int32, name int32) (r int64) { + if __ccgo_strace { + trc("tls=%v fd=%v name=%v, (%v:)", tls, fd, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + if Uint64FromInt32(name) >= Uint64FromInt64(42)/Uint64FromInt64(2) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return int64(-int32(1)) + } + return int64(_values[name]) +} + +var _values = [21]int16{ + 0: int16(_POSIX_LINK_MAX), + 1: int16(_POSIX_MAX_CANON), + 2: int16(_POSIX_MAX_INPUT), + 3: int16(NAME_MAX), + 4: int16(PATH_MAX), + 5: int16(PIPE_BUF), + 6: int16(1), + 7: int16(1), + 9: int16(1), + 10: int16(-int32(1)), + 11: int16(-int32(1)), + 12: int16(-int32(1)), + 13: int16(FILESIZEBITS), + 14: int16(4096), + 15: int16(4096), + 16: int16(4096), + 17: int16(4096), + 18: int16(4096), + 19: int16(-int32(1)), + 20: int16(1), +} + +const SI_LOAD_SHIFT = 16 + +type Tsysinfo = struct { + Fuptime uint64 + Floads [3]uint64 + Ftotalram uint64 + Ffreeram uint64 + Fsharedram uint64 + Fbufferram uint64 + Ftotalswap uint64 + Ffreeswap uint64 + Fprocs uint16 + Fpad uint16 + Ftotalhigh uint64 + Ffreehigh uint64 + Fmem_unit uint32 + F__reserved [256]uint8 +} + +func Xget_nprocs_conf(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(Xsysconf(tls, int32(_SC_NPROCESSORS_CONF))) +} + +func Xget_nprocs(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(Xsysconf(tls, int32(_SC_NPROCESSORS_ONLN))) +} + +func Xget_phys_pages(tls *TLS) (r int64) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xsysconf(tls, int32(_SC_PHYS_PAGES)) +} + +func Xget_avphys_pages(tls *TLS) (r int64) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xsysconf(tls, int32(_SC_AVPHYS_PAGES)) +} + +func Xpathconf(tls *TLS, path uintptr, name int32) (r int64) { + if __ccgo_strace { + trc("tls=%v path=%v name=%v, (%v:)", tls, path, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfpathconf(tls, -int32(1), name) +} + +const AT_BASE = 7 +const AT_BASE_PLATFORM = 24 +const AT_CLKTCK = 17 +const AT_DCACHEBSIZE = 19 +const AT_EGID = 14 +const AT_ENTRY = 9 +const AT_EUID = 12 +const AT_EXECFD = 2 +const AT_EXECFN = 31 +const AT_FLAGS = 8 +const AT_FPUCW = 18 +const AT_GID = 13 +const AT_HWCAP = 16 +const AT_HWCAP2 = 26 +const AT_ICACHEBSIZE = 20 +const AT_IGNORE = 1 +const AT_IGNOREPPC = 22 +const AT_L1D_CACHEGEOMETRY = 43 +const AT_L1D_CACHESHAPE = 35 +const AT_L1D_CACHESIZE = 42 +const AT_L1I_CACHEGEOMETRY = 41 +const AT_L1I_CACHESHAPE = 34 +const AT_L1I_CACHESIZE = 40 +const AT_L2_CACHEGEOMETRY = 45 +const AT_L2_CACHESHAPE = 36 +const AT_L2_CACHESIZE = 44 +const AT_L3_CACHEGEOMETRY = 47 +const AT_L3_CACHESHAPE = 37 +const AT_L3_CACHESIZE = 46 +const AT_MINSIGSTKSZ = 51 +const AT_NOTELF = 10 +const AT_NULL = 0 +const AT_PAGESZ = 6 +const AT_PHDR = 3 +const AT_PHENT = 4 +const AT_PHNUM = 5 +const AT_PLATFORM = 15 +const AT_RANDOM = 25 +const AT_SECURE = 23 +const AT_SYSINFO = 32 +const AT_SYSINFO_EHDR = 33 +const AT_UCACHEBSIZE = 21 +const AT_UID = 11 +const BUS_ADRALN = 1 +const BUS_ADRERR = 2 +const BUS_MCEERR_AO = 5 +const BUS_MCEERR_AR = 4 +const BUS_OBJERR = 3 +const CLD_CONTINUED = 6 +const CLD_DUMPED = 3 +const CLD_EXITED = 1 +const CLD_KILLED = 2 +const CLD_STOPPED = 5 +const CLD_TRAPPED = 4 +const DF_1_CONFALT = 8192 +const DF_1_DIRECT = 256 +const DF_1_DISPRELDNE = 32768 +const DF_1_DISPRELPND = 65536 +const DF_1_EDITED = 2097152 +const DF_1_ENDFILTEE = 16384 +const DF_1_GLOBAL = 2 +const DF_1_GLOBAUDIT = 16777216 +const DF_1_GROUP = 4 +const DF_1_IGNMULDEF = 262144 +const DF_1_INITFIRST = 32 +const DF_1_INTERPOSE = 1024 +const DF_1_LOADFLTR = 16 +const DF_1_NODEFLIB = 2048 +const DF_1_NODELETE = 8 +const DF_1_NODIRECT = 131072 +const DF_1_NODUMP = 4096 +const DF_1_NOHDR = 1048576 +const DF_1_NOKSYMS = 524288 +const DF_1_NOOPEN = 64 +const DF_1_NORELOC = 4194304 +const DF_1_NOW = 1 +const DF_1_ORIGIN = 128 +const DF_1_PIE = 134217728 +const DF_1_SINGLETON = 33554432 +const DF_1_STUB = 67108864 +const DF_1_SYMINTPOSE = 8388608 +const DF_1_TRANS = 512 +const DF_BIND_NOW = 8 +const DF_ORIGIN = 1 +const DF_P1_GROUPPERM = 2 +const DF_P1_LAZYLOAD = 1 +const DF_STATIC_TLS = 16 +const DF_SYMBOLIC = 2 +const DF_TEXTREL = 4 +const DTF_1_CONFEXP = 2 +const DTF_1_PARINIT = 1 +const DT_ADDRNUM = 11 +const DT_ADDRRNGHI = 1879047935 +const DT_ADDRRNGLO = 1879047680 +const DT_ALPHA_NUM = 1 +const DT_ALPHA_PLTRO = 1879048192 +const DT_AUDIT = 1879047932 +const DT_AUXILIARY = 2147483645 +const DT_BIND_NOW = 24 +const DT_CHECKSUM = 1879047672 +const DT_CONFIG = 1879047930 +const DT_DEBUG = 21 +const DT_DEPAUDIT = 1879047931 +const DT_ENCODING = 32 +const DT_EXTRANUM = 3 +const DT_FEATURE_1 = 1879047676 +const DT_FILTER = 2147483647 +const DT_FINI = 13 +const DT_FINI_ARRAY = 26 +const DT_FINI_ARRAYSZ = 28 +const DT_FLAGS = 30 +const DT_FLAGS_1 = 1879048187 +const DT_GNU_CONFLICT = 1879047928 +const DT_GNU_CONFLICTSZ = 1879047670 +const DT_GNU_HASH = 1879047925 +const DT_GNU_LIBLIST = 1879047929 +const DT_GNU_LIBLISTSZ = 1879047671 +const DT_GNU_PRELINKED = 1879047669 +const DT_HASH = 4 +const DT_HIOS = 1879044096 +const DT_HIPROC = 2147483647 +const DT_IA_64_NUM = 1 +const DT_IA_64_PLT_RESERVE = 1879048192 +const DT_INIT = 12 +const DT_INIT_ARRAY = 25 +const DT_INIT_ARRAYSZ = 27 +const DT_JMPREL = 23 +const DT_LOOS = 1610612749 +const DT_LOPROC = 1879048192 +const DT_MIPS_AUX_DYNAMIC = 1879048241 +const DT_MIPS_BASE_ADDRESS = 1879048198 +const DT_MIPS_COMPACT_SIZE = 1879048239 +const DT_MIPS_CONFLICT = 1879048200 +const DT_MIPS_CONFLICTNO = 1879048203 +const DT_MIPS_CXX_FLAGS = 1879048226 +const DT_MIPS_DELTA_CLASS = 1879048215 +const DT_MIPS_DELTA_CLASSSYM = 1879048224 +const DT_MIPS_DELTA_CLASSSYM_NO = 1879048225 +const DT_MIPS_DELTA_CLASS_NO = 1879048216 +const DT_MIPS_DELTA_INSTANCE = 1879048217 +const DT_MIPS_DELTA_INSTANCE_NO = 1879048218 +const DT_MIPS_DELTA_RELOC = 1879048219 +const DT_MIPS_DELTA_RELOC_NO = 1879048220 +const DT_MIPS_DELTA_SYM = 1879048221 +const DT_MIPS_DELTA_SYM_NO = 1879048222 +const DT_MIPS_DYNSTR_ALIGN = 1879048235 +const DT_MIPS_FLAGS = 1879048197 +const DT_MIPS_GOTSYM = 1879048211 +const DT_MIPS_GP_VALUE = 1879048240 +const DT_MIPS_HIDDEN_GOTIDX = 1879048231 +const DT_MIPS_HIPAGENO = 1879048212 +const DT_MIPS_ICHECKSUM = 1879048195 +const DT_MIPS_INTERFACE = 1879048234 +const DT_MIPS_INTERFACE_SIZE = 1879048236 +const DT_MIPS_IVERSION = 1879048196 +const DT_MIPS_LIBLIST = 1879048201 +const DT_MIPS_LIBLISTNO = 1879048208 +const DT_MIPS_LOCALPAGE_GOTIDX = 1879048229 +const DT_MIPS_LOCAL_GOTIDX = 1879048230 +const DT_MIPS_LOCAL_GOTNO = 1879048202 +const DT_MIPS_MSYM = 1879048199 +const DT_MIPS_NUM = 54 +const DT_MIPS_OPTIONS = 1879048233 +const DT_MIPS_PERF_SUFFIX = 1879048238 +const DT_MIPS_PIXIE_INIT = 1879048227 +const DT_MIPS_PLTGOT = 1879048242 +const DT_MIPS_PROTECTED_GOTIDX = 1879048232 +const DT_MIPS_RLD_MAP = 1879048214 +const DT_MIPS_RLD_MAP_REL = 1879048245 +const DT_MIPS_RLD_TEXT_RESOLVE_ADDR = 1879048237 +const DT_MIPS_RLD_VERSION = 1879048193 +const DT_MIPS_RWPLT = 1879048244 +const DT_MIPS_SYMBOL_LIB = 1879048228 +const DT_MIPS_SYMTABNO = 1879048209 +const DT_MIPS_TIME_STAMP = 1879048194 +const DT_MIPS_UNREFEXTNO = 1879048210 +const DT_MOVEENT = 1879047674 +const DT_MOVESZ = 1879047675 +const DT_MOVETAB = 1879047934 +const DT_NEEDED = 1 +const DT_NIOS2_GP = 1879048194 +const DT_NULL = 0 +const DT_NUM = 38 +const DT_PLTGOT = 3 +const DT_PLTPAD = 1879047933 +const DT_PLTPADSZ = 1879047673 +const DT_PLTREL = 20 +const DT_PLTRELSZ = 2 +const DT_POSFLAG_1 = 1879047677 +const DT_PPC64_GLINK = 1879048192 +const DT_PPC64_NUM = 4 +const DT_PPC64_OPD = 1879048193 +const DT_PPC64_OPDSZ = 1879048194 +const DT_PPC64_OPT = 1879048195 +const DT_PPC_GOT = 1879048192 +const DT_PPC_NUM = 2 +const DT_PPC_OPT = 1879048193 +const DT_PREINIT_ARRAY = 32 +const DT_PREINIT_ARRAYSZ = 33 +const DT_PROCNUM = 54 +const DT_REL = 17 +const DT_RELA = 7 +const DT_RELACOUNT = 1879048185 +const DT_RELAENT = 9 +const DT_RELASZ = 8 +const DT_RELCOUNT = 1879048186 +const DT_RELENT = 19 +const DT_RELR = 36 +const DT_RELRENT = 37 +const DT_RELRSZ = 35 +const DT_RELSZ = 18 +const DT_RPATH = 15 +const DT_RUNPATH = 29 +const DT_SONAME = 14 +const DT_SPARC_NUM = 2 +const DT_SPARC_REGISTER = 1879048193 +const DT_STRSZ = 10 +const DT_STRTAB = 5 +const DT_SYMBOLIC = 16 +const DT_SYMENT = 11 +const DT_SYMINENT = 1879047679 +const DT_SYMINFO = 1879047935 +const DT_SYMINSZ = 1879047678 +const DT_SYMTAB = 6 +const DT_SYMTAB_SHNDX = 34 +const DT_TEXTREL = 22 +const DT_TLSDESC_GOT = 1879047927 +const DT_TLSDESC_PLT = 1879047926 +const DT_VALNUM = 12 +const DT_VALRNGHI = 1879047679 +const DT_VALRNGLO = 1879047424 +const DT_VERDEF = 1879048188 +const DT_VERDEFNUM = 1879048189 +const DT_VERNEED = 1879048190 +const DT_VERNEEDNUM = 1879048191 +const DT_VERSIONTAGNUM = 16 +const DT_VERSYM = 1879048176 +const EFA_PARISC_1_0 = 523 +const EFA_PARISC_1_1 = 528 +const EFA_PARISC_2_0 = 532 +const EF_ALPHA_32BIT = 1 +const EF_ALPHA_CANRELAX = 2 +const EF_ARM_ABI_FLOAT_HARD = 1024 +const EF_ARM_ABI_FLOAT_SOFT = 512 +const EF_ARM_ALIGN8 = 64 +const EF_ARM_APCS_26 = 8 +const EF_ARM_APCS_FLOAT = 16 +const EF_ARM_BE8 = 8388608 +const EF_ARM_DYNSYMSUSESEGIDX = 8 +const EF_ARM_EABIMASK = 4278190080 +const EF_ARM_EABI_UNKNOWN = 0 +const EF_ARM_EABI_VER1 = 16777216 +const EF_ARM_EABI_VER2 = 33554432 +const EF_ARM_EABI_VER3 = 50331648 +const EF_ARM_EABI_VER4 = 67108864 +const EF_ARM_EABI_VER5 = 83886080 +const EF_ARM_HASENTRY = 2 +const EF_ARM_INTERWORK = 4 +const EF_ARM_LE8 = 4194304 +const EF_ARM_MAPSYMSFIRST = 16 +const EF_ARM_MAVERICK_FLOAT = 2048 +const EF_ARM_NEW_ABI = 128 +const EF_ARM_OLD_ABI = 256 +const EF_ARM_PIC = 32 +const EF_ARM_RELEXEC = 1 +const EF_ARM_SOFT_FLOAT = 512 +const EF_ARM_SYMSARESORTED = 4 +const EF_ARM_VFP_FLOAT = 1024 +const EF_CPU32 = 8454144 +const EF_IA_64_ABI64 = 16 +const EF_IA_64_ARCH = 4278190080 +const EF_IA_64_MASKOS = 15 +const EF_LARCH_ABI_DOUBLE_FLOAT = 3 +const EF_LARCH_ABI_MODIFIER_MASK = 7 +const EF_LARCH_ABI_SINGLE_FLOAT = 2 +const EF_LARCH_ABI_SOFT_FLOAT = 1 +const EF_LARCH_OBJABI_V1 = 64 +const EF_MIPS_64BIT_WHIRL = 16 +const EF_MIPS_ABI2 = 32 +const EF_MIPS_ABI_ON32 = 64 +const EF_MIPS_ARCH = 4026531840 +const EF_MIPS_ARCH_1 = 0 +const EF_MIPS_ARCH_2 = 268435456 +const EF_MIPS_ARCH_3 = 536870912 +const EF_MIPS_ARCH_32 = 1342177280 +const EF_MIPS_ARCH_32R2 = 1879048192 +const EF_MIPS_ARCH_4 = 805306368 +const EF_MIPS_ARCH_5 = 1073741824 +const EF_MIPS_ARCH_64 = 1610612736 +const EF_MIPS_ARCH_64R2 = 2147483648 +const EF_MIPS_CPIC = 4 +const EF_MIPS_FP64 = 512 +const EF_MIPS_NAN2008 = 1024 +const EF_MIPS_NOREORDER = 1 +const EF_MIPS_PIC = 2 +const EF_MIPS_XGOT = 8 +const EF_PARISC_ARCH = 65535 +const EF_PARISC_EXT = 131072 +const EF_PARISC_LAZYSWAP = 4194304 +const EF_PARISC_LSB = 262144 +const EF_PARISC_NO_KABP = 1048576 +const EF_PARISC_TRAPNIL = 65536 +const EF_PARISC_WIDE = 524288 +const EF_PPC64_ABI = 3 +const EF_PPC_EMB = 2147483648 +const EF_PPC_RELOCATABLE = 65536 +const EF_PPC_RELOCATABLE_LIB = 32768 +const EF_SH1 = 1 +const EF_SH2 = 2 +const EF_SH2A = 13 +const EF_SH2A_NOFPU = 19 +const EF_SH2A_SH3E = 24 +const EF_SH2A_SH3_NOFPU = 22 +const EF_SH2A_SH4 = 23 +const EF_SH2A_SH4_NOFPU = 21 +const EF_SH2E = 11 +const EF_SH3 = 3 +const EF_SH3E = 8 +const EF_SH3_DSP = 5 +const EF_SH3_NOMMU = 20 +const EF_SH4 = 9 +const EF_SH4A = 12 +const EF_SH4AL_DSP = 6 +const EF_SH4A_NOFPU = 17 +const EF_SH4_NOFPU = 16 +const EF_SH4_NOMMU_NOFPU = 18 +const EF_SH_DSP = 4 +const EF_SH_MACH_MASK = 31 +const EF_SH_UNKNOWN = 0 +const EF_SPARCV9_MM = 3 +const EF_SPARCV9_PSO = 1 +const EF_SPARCV9_RMO = 2 +const EF_SPARCV9_TSO = 0 +const EF_SPARC_32PLUS = 256 +const EF_SPARC_EXT_MASK = 16776960 +const EF_SPARC_HAL_R1 = 1024 +const EF_SPARC_LEDATA = 8388608 +const EF_SPARC_SUN_US1 = 512 +const EF_SPARC_SUN_US3 = 2048 +const EI_ABIVERSION = 8 +const EI_CLASS = 4 +const EI_DATA = 5 +const EI_MAG0 = 0 +const EI_MAG1 = 1 +const EI_MAG2 = 2 +const EI_MAG3 = 3 +const EI_NIDENT = 16 +const EI_OSABI = 7 +const EI_PAD = 9 +const EI_VERSION = 6 +const ELFCLASS32 = 1 +const ELFCLASS64 = 2 +const ELFCLASSNONE = 0 +const ELFCLASSNUM = 3 +const ELFCOMPRESS_HIOS = 1879048191 +const ELFCOMPRESS_HIPROC = 2147483647 +const ELFCOMPRESS_LOOS = 1610612736 +const ELFCOMPRESS_LOPROC = 1879048192 +const ELFCOMPRESS_ZLIB = 1 +const ELFCOMPRESS_ZSTD = 2 +const ELFDATA2LSB = 1 +const ELFDATA2MSB = 2 +const ELFDATANONE = 0 +const ELFDATANUM = 3 +const ELFMAG = "\\177ELF" +const ELFMAG0 = 127 +const ELFMAG1 = 69 +const ELFMAG2 = 76 +const ELFMAG3 = 70 +const ELFOSABI_AIX = 7 +const ELFOSABI_ARM = 97 +const ELFOSABI_FREEBSD = 9 +const ELFOSABI_GNU = 3 +const ELFOSABI_HPUX = 1 +const ELFOSABI_IRIX = 8 +const ELFOSABI_LINUX = 3 +const ELFOSABI_MODESTO = 11 +const ELFOSABI_NETBSD = 2 +const ELFOSABI_NONE = 0 +const ELFOSABI_OPENBSD = 12 +const ELFOSABI_SOLARIS = 6 +const ELFOSABI_STANDALONE = 255 +const ELFOSABI_SYSV = 0 +const ELFOSABI_TRU64 = 10 +const ELF_NOTE_ABI = 1 +const ELF_NOTE_GNU = "GNU" +const ELF_NOTE_OS_FREEBSD = 3 +const ELF_NOTE_OS_GNU = 1 +const ELF_NOTE_OS_LINUX = 0 +const ELF_NOTE_OS_SOLARIS2 = 2 +const ELF_NOTE_PAGESIZE_HINT = 1 +const ELF_NOTE_SOLARIS = "SUNW Solaris" +const EM_386 = 3 +const EM_56800EX = 200 +const EM_68HC05 = 72 +const EM_68HC08 = 71 +const EM_68HC11 = 70 +const EM_68HC12 = 53 +const EM_68HC16 = 69 +const EM_68K = 4 +const EM_78KOR = 199 +const EM_8051 = 165 +const EM_860 = 7 +const EM_88K = 5 +const EM_960 = 19 +const EM_AARCH64 = 183 +const EM_ALPHA = 36902 +const EM_ALTERA_NIOS2 = 113 +const EM_AMDGPU = 224 +const EM_ARC = 45 +const EM_ARCA = 109 +const EM_ARC_A5 = 93 +const EM_ARC_COMPACT = 93 +const EM_ARC_COMPACT2 = 195 +const EM_ARM = 40 +const EM_AVR = 83 +const EM_AVR32 = 185 +const EM_BA1 = 201 +const EM_BA2 = 202 +const EM_BLACKFIN = 106 +const EM_BPF = 247 +const EM_C166 = 116 +const EM_CDP = 215 +const EM_CE = 119 +const EM_CLOUDSHIELD = 192 +const EM_COGE = 216 +const EM_COLDFIRE = 52 +const EM_COOL = 217 +const EM_COREA_1ST = 193 +const EM_COREA_2ND = 194 +const EM_CR = 103 +const EM_CR16 = 177 +const EM_CRAYNV2 = 172 +const EM_CRIS = 76 +const EM_CRX = 114 +const EM_CSKY = 252 +const EM_CSR_KALIMBA = 219 +const EM_CUDA = 190 +const EM_CYPRESS_M8C = 161 +const EM_D10V = 85 +const EM_D30V = 86 +const EM_DSP24 = 136 +const EM_DSPIC30F = 118 +const EM_DXP = 112 +const EM_ECOG16 = 176 +const EM_ECOG1X = 168 +const EM_ECOG2 = 134 +const EM_EMX16 = 212 +const EM_EMX8 = 213 +const EM_ETPU = 178 +const EM_EXCESS = 111 +const EM_F2MC16 = 104 +const EM_FAKE_ALPHA = 41 +const EM_FIREPATH = 78 +const EM_FR20 = 37 +const EM_FR30 = 84 +const EM_FT32 = 222 +const EM_FX66 = 66 +const EM_H8S = 48 +const EM_H8_300 = 46 +const EM_H8_300H = 47 +const EM_H8_500 = 49 +const EM_HUANY = 81 +const EM_IA_64 = 50 +const EM_IP2K = 101 +const EM_JAVELIN = 77 +const EM_K10M = 181 +const EM_KM32 = 210 +const EM_KMX32 = 211 +const EM_KVARC = 214 +const EM_L10M = 180 +const EM_LATTICEMICO32 = 138 +const EM_LOONGARCH = 258 +const EM_M16C = 117 +const EM_M32 = 1 +const EM_M32C = 120 +const EM_M32R = 88 +const EM_MANIK = 171 +const EM_MAX = 102 +const EM_MAXQ30 = 169 +const EM_MCHP_PIC = 204 +const EM_MCST_ELBRUS = 175 +const EM_ME16 = 59 +const EM_METAG = 174 +const EM_MICROBLAZE = 189 +const EM_MIPS = 8 +const EM_MIPS_RS3_LE = 10 +const EM_MIPS_X = 51 +const EM_MMA = 54 +const EM_MMDSP_PLUS = 160 +const EM_MMIX = 80 +const EM_MN10200 = 90 +const EM_MN10300 = 89 +const EM_MOXIE = 223 +const EM_MSP430 = 105 +const EM_NCPU = 56 +const EM_NDR1 = 57 +const EM_NDS32 = 167 +const EM_NONE = 0 +const EM_NORC = 218 +const EM_NS32K = 97 +const EM_NUM = 259 +const EM_OPEN8 = 196 +const EM_OPENRISC = 92 +const EM_OR1K = 92 +const EM_PARISC = 15 +const EM_PCP = 55 +const EM_PDSP = 63 +const EM_PJ = 91 +const EM_PPC = 20 +const EM_PPC64 = 21 +const EM_PRISM = 82 +const EM_QDSP6 = 164 +const EM_R32C = 162 +const EM_RCE = 39 +const EM_RH32 = 38 +const EM_RISCV = 243 +const EM_RL78 = 197 +const EM_RS08 = 132 +const EM_RX = 173 +const EM_S370 = 9 +const EM_S390 = 22 +const EM_SCORE7 = 135 +const EM_SEP = 108 +const EM_SE_C17 = 139 +const EM_SE_C33 = 107 +const EM_SH = 42 +const EM_SHARC = 133 +const EM_SLE9X = 179 +const EM_SNP1K = 99 +const EM_SPARC = 2 +const EM_SPARC32PLUS = 18 +const EM_SPARCV9 = 43 +const EM_ST100 = 60 +const EM_ST19 = 74 +const EM_ST200 = 100 +const EM_ST7 = 68 +const EM_ST9PLUS = 67 +const EM_STARCORE = 58 +const EM_STM8 = 186 +const EM_STXP7X = 166 +const EM_SVX = 73 +const EM_TILE64 = 187 +const EM_TILEGX = 191 +const EM_TILEPRO = 188 +const EM_TINYJ = 61 +const EM_TI_ARP32 = 143 +const EM_TI_C2000 = 141 +const EM_TI_C5500 = 142 +const EM_TI_C6000 = 140 +const EM_TI_PRU = 144 +const EM_TMM_GPP = 96 +const EM_TPC = 98 +const EM_TRICORE = 44 +const EM_TRIMEDIA = 163 +const EM_TSK3000 = 131 +const EM_UNICORE = 110 +const EM_V800 = 36 +const EM_V850 = 87 +const EM_VAX = 75 +const EM_VIDEOCORE = 95 +const EM_VIDEOCORE3 = 137 +const EM_VIDEOCORE5 = 198 +const EM_VISIUM = 221 +const EM_VPP500 = 17 +const EM_X86_64 = 62 +const EM_XCORE = 203 +const EM_XGATE = 115 +const EM_XIMO16 = 170 +const EM_XTENSA = 94 +const EM_Z80 = 220 +const EM_ZSP = 79 +const ET_CORE = 4 +const ET_DYN = 3 +const ET_EXEC = 2 +const ET_HIOS = 65279 +const ET_HIPROC = 65535 +const ET_LOOS = 65024 +const ET_LOPROC = 65280 +const ET_NONE = 0 +const ET_NUM = 5 +const ET_REL = 1 +const EV_CURRENT = 1 +const EV_NONE = 0 +const EV_NUM = 2 +const EXIT_FAILURE = 1 +const EXIT_SUCCESS = 0 +const E_MIPS_ARCH_1 = 0 +const E_MIPS_ARCH_2 = 268435456 +const E_MIPS_ARCH_3 = 536870912 +const E_MIPS_ARCH_32 = 1342177280 +const E_MIPS_ARCH_4 = 805306368 +const E_MIPS_ARCH_5 = 1073741824 +const E_MIPS_ARCH_64 = 1610612736 +const FD_SETSIZE = 1024 +const FPE_FLTDIV = 3 +const FPE_FLTINV = 7 +const FPE_FLTOVF = 4 +const FPE_FLTRES = 6 +const FPE_FLTSUB = 8 +const FPE_FLTUND = 5 +const FPE_INTDIV = 1 +const FPE_INTOVF = 2 +const GRP_COMDAT = 1 +const HWCAP2_BF16 = 16384 +const HWCAP2_BTI = 131072 +const HWCAP2_DCPODP = 1 +const HWCAP2_DGH = 32768 +const HWCAP2_FLAGM2 = 128 +const HWCAP2_FRINT = 256 +const HWCAP2_I8MM = 8192 +const HWCAP2_MTE = 262144 +const HWCAP2_RNG = 65536 +const HWCAP2_SVE2 = 2 +const HWCAP2_SVEAES = 4 +const HWCAP2_SVEBF16 = 4096 +const HWCAP2_SVEBITPERM = 16 +const HWCAP2_SVEF32MM = 1024 +const HWCAP2_SVEF64MM = 2048 +const HWCAP2_SVEI8MM = 512 +const HWCAP2_SVEPMULL = 8 +const HWCAP2_SVESHA3 = 32 +const HWCAP2_SVESM4 = 64 +const HWCAP_AES = 8 +const HWCAP_ASIMD = 2 +const HWCAP_ASIMDDP = 1048576 +const HWCAP_ASIMDFHM = 8388608 +const HWCAP_ASIMDHP = 1024 +const HWCAP_ASIMDRDM = 4096 +const HWCAP_ATOMICS = 256 +const HWCAP_CPUID = 2048 +const HWCAP_CRC32 = 128 +const HWCAP_DCPOP = 65536 +const HWCAP_DIT = 16777216 +const HWCAP_EVTSTRM = 4 +const HWCAP_FCMA = 16384 +const HWCAP_FLAGM = 134217728 +const HWCAP_FP = 1 +const HWCAP_FPHP = 512 +const HWCAP_ILRCPC = 67108864 +const HWCAP_JSCVT = 8192 +const HWCAP_LRCPC = 32768 +const HWCAP_PACA = 1073741824 +const HWCAP_PACG = 2147483648 +const HWCAP_PMULL = 16 +const HWCAP_SB = 536870912 +const HWCAP_SHA1 = 32 +const HWCAP_SHA2 = 64 +const HWCAP_SHA3 = 131072 +const HWCAP_SHA512 = 2097152 +const HWCAP_SM3 = 262144 +const HWCAP_SM4 = 524288 +const HWCAP_SSBS = 268435456 +const HWCAP_SVE = 4194304 +const HWCAP_USCAT = 33554432 +const ILL_BADSTK = 8 +const ILL_COPROC = 7 +const ILL_ILLADR = 3 +const ILL_ILLOPC = 1 +const ILL_ILLOPN = 2 +const ILL_ILLTRP = 4 +const ILL_PRVOPC = 5 +const ILL_PRVREG = 6 +const IPC_64 = 0 +const ITIMER_PROF = 2 +const ITIMER_REAL = 0 +const ITIMER_VIRTUAL = 1 +const JT_ARG_MAX = -254 +const JT_AVPHYS_PAGES = -247 +const JT_DELAYTIMER_MAX = -245 +const JT_MINSIGSTKSZ = -244 +const JT_MQ_PRIO_MAX = -253 +const JT_NPROCESSORS_CONF = -250 +const JT_NPROCESSORS_ONLN = -249 +const JT_PAGE_SIZE = -252 +const JT_PHYS_PAGES = -248 +const JT_SEM_VALUE_MAX = -251 +const JT_SIGSTKSZ = -243 +const JT_ZERO = -246 +const LITUSE_ALPHA_ADDR = 0 +const LITUSE_ALPHA_BASE = 1 +const LITUSE_ALPHA_BYTOFF = 2 +const LITUSE_ALPHA_JSR = 3 +const LITUSE_ALPHA_TLS_GD = 4 +const LITUSE_ALPHA_TLS_LDM = 5 +const LL_DELAY_LOAD = 16 +const LL_DELTA = 32 +const LL_EXACT_MATCH = 1 +const LL_EXPORTS = 8 +const LL_IGNORE_INT_VER = 2 +const LL_NONE = 0 +const LL_REQUIRE_MINOR = 4 +const MB_CUR_MAX = 0 +const MINSIGSTKSZ = 6144 +const MIPS_AFL_ASE_DSP = 1 +const MIPS_AFL_ASE_DSPR2 = 2 +const MIPS_AFL_ASE_EVA = 4 +const MIPS_AFL_ASE_MASK = 8191 +const MIPS_AFL_ASE_MCU = 8 +const MIPS_AFL_ASE_MDMX = 16 +const MIPS_AFL_ASE_MICROMIPS = 2048 +const MIPS_AFL_ASE_MIPS16 = 1024 +const MIPS_AFL_ASE_MIPS3D = 32 +const MIPS_AFL_ASE_MSA = 512 +const MIPS_AFL_ASE_MT = 64 +const MIPS_AFL_ASE_SMARTMIPS = 128 +const MIPS_AFL_ASE_VIRT = 256 +const MIPS_AFL_ASE_XPA = 4096 +const MIPS_AFL_EXT_10000 = 11 +const MIPS_AFL_EXT_3900 = 10 +const MIPS_AFL_EXT_4010 = 8 +const MIPS_AFL_EXT_4100 = 9 +const MIPS_AFL_EXT_4111 = 13 +const MIPS_AFL_EXT_4120 = 14 +const MIPS_AFL_EXT_4650 = 7 +const MIPS_AFL_EXT_5400 = 15 +const MIPS_AFL_EXT_5500 = 16 +const MIPS_AFL_EXT_5900 = 6 +const MIPS_AFL_EXT_LOONGSON_2E = 17 +const MIPS_AFL_EXT_LOONGSON_2F = 18 +const MIPS_AFL_EXT_LOONGSON_3A = 4 +const MIPS_AFL_EXT_OCTEON = 5 +const MIPS_AFL_EXT_OCTEON2 = 2 +const MIPS_AFL_EXT_OCTEONP = 3 +const MIPS_AFL_EXT_SB1 = 12 +const MIPS_AFL_EXT_XLR = 1 +const MIPS_AFL_FLAGS1_ODDSPREG = 1 +const MIPS_AFL_REG_128 = 3 +const MIPS_AFL_REG_32 = 1 +const MIPS_AFL_REG_64 = 2 +const MIPS_AFL_REG_NONE = 0 +const NT_386_IOPERM = 513 +const NT_386_TLS = 512 +const NT_ARC_V2 = 1536 +const NT_ARM_HW_BREAK = 1026 +const NT_ARM_HW_WATCH = 1027 +const NT_ARM_PACA_KEYS = 1031 +const NT_ARM_PACG_KEYS = 1032 +const NT_ARM_PAC_ENABLED_KEYS = 1034 +const NT_ARM_PAC_MASK = 1030 +const NT_ARM_SVE = 1029 +const NT_ARM_SYSTEM_CALL = 1028 +const NT_ARM_TAGGED_ADDR_CTRL = 1033 +const NT_ARM_TLS = 1025 +const NT_ARM_VFP = 1024 +const NT_ASRS = 8 +const NT_AUXV = 6 +const NT_FILE = 1179208773 +const NT_FPREGSET = 2 +const NT_GNU_ABI_TAG = 1 +const NT_GNU_BUILD_ID = 3 +const NT_GNU_GOLD_VERSION = 4 +const NT_GNU_PROPERTY_TYPE_0 = 5 +const NT_GWINDOWS = 7 +const NT_LOONGARCH_CPUCFG = 2560 +const NT_LOONGARCH_CSR = 2561 +const NT_LOONGARCH_LASX = 2563 +const NT_LOONGARCH_LBT = 2564 +const NT_LOONGARCH_LSX = 2562 +const NT_LWPSINFO = 17 +const NT_LWPSTATUS = 16 +const NT_METAG_CBUF = 1280 +const NT_METAG_RPIPE = 1281 +const NT_METAG_TLS = 1282 +const NT_MIPS_DSP = 2048 +const NT_MIPS_FP_MODE = 2049 +const NT_MIPS_MSA = 2050 +const NT_PLATFORM = 5 +const NT_PPC_DSCR = 261 +const NT_PPC_EBB = 262 +const NT_PPC_PMU = 263 +const NT_PPC_PPR = 260 +const NT_PPC_SPE = 257 +const NT_PPC_TAR = 259 +const NT_PPC_TM_CDSCR = 271 +const NT_PPC_TM_CFPR = 265 +const NT_PPC_TM_CGPR = 264 +const NT_PPC_TM_CPPR = 270 +const NT_PPC_TM_CTAR = 269 +const NT_PPC_TM_CVMX = 266 +const NT_PPC_TM_CVSX = 267 +const NT_PPC_TM_SPR = 268 +const NT_PPC_VMX = 256 +const NT_PPC_VSX = 258 +const NT_PRCRED = 14 +const NT_PRFPREG = 2 +const NT_PRFPXREG = 20 +const NT_PRPSINFO = 3 +const NT_PRSTATUS = 1 +const NT_PRXFPREG = 1189489535 +const NT_PRXREG = 4 +const NT_PSINFO = 13 +const NT_PSTATUS = 10 +const NT_RISCV_CSR = 2304 +const NT_RISCV_VECTOR = 2305 +const NT_S390_CTRS = 772 +const NT_S390_GS_BC = 780 +const NT_S390_GS_CB = 779 +const NT_S390_HIGH_GPRS = 768 +const NT_S390_LAST_BREAK = 774 +const NT_S390_PREFIX = 773 +const NT_S390_RI_CB = 781 +const NT_S390_SYSTEM_CALL = 775 +const NT_S390_TDB = 776 +const NT_S390_TIMER = 769 +const NT_S390_TODCMP = 770 +const NT_S390_TODPREG = 771 +const NT_S390_VXRS_HIGH = 778 +const NT_S390_VXRS_LOW = 777 +const NT_SIGINFO = 1397311305 +const NT_TASKSTRUCT = 4 +const NT_UTSNAME = 15 +const NT_VERSION = 1 +const NT_VMCOREDD = 1792 +const NT_X86_XSTATE = 514 +const ODK_EXCEPTIONS = 2 +const ODK_FILL = 5 +const ODK_HWAND = 7 +const ODK_HWOR = 8 +const ODK_HWPATCH = 4 +const ODK_NULL = 0 +const ODK_PAD = 3 +const ODK_REGINFO = 1 +const ODK_TAGS = 6 +const OEX_DISMISS = 524288 +const OEX_FPDBUG = 262144 +const OEX_FPU_DIV0 = 8 +const OEX_FPU_INEX = 1 +const OEX_FPU_INVAL = 16 +const OEX_FPU_MAX = 7936 +const OEX_FPU_MIN = 31 +const OEX_FPU_OFLO = 4 +const OEX_FPU_UFLO = 2 +const OEX_PAGE0 = 65536 +const OEX_PRECISEFP = 262144 +const OEX_SMM = 131072 +const OHWA0_R4KEOP_CHECKED = 1 +const OHWA1_R4KEOP_CLEAN = 2 +const OHW_R4KEOP = 1 +const OHW_R5KCVTL = 8 +const OHW_R5KEOP = 4 +const OHW_R8KPFETCH = 2 +const OPAD_POSTFIX = 2 +const OPAD_PREFIX = 1 +const OPAD_SYMBOL = 4 +const PF_ARM_ABS = 1073741824 +const PF_ARM_PI = 536870912 +const PF_ARM_SB = 268435456 +const PF_HP_CODE = 16777216 +const PF_HP_FAR_SHARED = 2097152 +const PF_HP_LAZYSWAP = 67108864 +const PF_HP_MODIFY = 33554432 +const PF_HP_NEAR_SHARED = 4194304 +const PF_HP_PAGE_SIZE = 1048576 +const PF_HP_SBP = 134217728 +const PF_IA_64_NORECOV = 2147483648 +const PF_MASKOS = 267386880 +const PF_MASKPROC = 4026531840 +const PF_MIPS_LOCAL = 268435456 +const PF_PARISC_SBP = 134217728 +const PF_R = 4 +const PF_W = 2 +const PF_X = 1 +const PN_XNUM = 65535 +const POLL_ERR = 4 +const POLL_HUP = 6 +const POLL_IN = 1 +const POLL_MSG = 3 +const POLL_OUT = 2 +const POLL_PRI = 5 +const PPC64_OPT_LOCALENTRY = 4 +const PPC64_OPT_MULTI_TOC = 2 +const PPC64_OPT_TLS = 1 +const PPC_OPT_TLS = 1 +const PRIO_MAX = 20 +const PRIO_MIN = -20 +const PRIO_PGRP = 1 +const PRIO_PROCESS = 0 +const PRIO_USER = 2 +const PT_ARM_EXIDX = 1879048193 +const PT_DYNAMIC = 2 +const PT_GNU_EH_FRAME = 1685382480 +const PT_GNU_PROPERTY = 1685382483 +const PT_GNU_RELRO = 1685382482 +const PT_GNU_STACK = 1685382481 +const PT_HIOS = 1879048191 +const PT_HIPROC = 2147483647 +const PT_HISUNW = 1879048191 +const PT_HP_CORE_COMM = 1610612740 +const PT_HP_CORE_KERNEL = 1610612739 +const PT_HP_CORE_LOADABLE = 1610612742 +const PT_HP_CORE_MMF = 1610612745 +const PT_HP_CORE_NONE = 1610612737 +const PT_HP_CORE_PROC = 1610612741 +const PT_HP_CORE_SHM = 1610612744 +const PT_HP_CORE_STACK = 1610612743 +const PT_HP_CORE_VERSION = 1610612738 +const PT_HP_FASTBIND = 1610612753 +const PT_HP_HSL_ANNOT = 1610612755 +const PT_HP_OPT_ANNOT = 1610612754 +const PT_HP_PARALLEL = 1610612752 +const PT_HP_STACK = 1610612756 +const PT_HP_TLS = 1610612736 +const PT_IA_64_ARCHEXT = 1879048192 +const PT_IA_64_HP_HSL_ANOT = 1610612755 +const PT_IA_64_HP_OPT_ANOT = 1610612754 +const PT_IA_64_HP_STACK = 1610612756 +const PT_IA_64_UNWIND = 1879048193 +const PT_INTERP = 3 +const PT_LOAD = 1 +const PT_LOOS = 1610612736 +const PT_LOPROC = 1879048192 +const PT_LOSUNW = 1879048186 +const PT_MIPS_ABIFLAGS = 1879048195 +const PT_MIPS_OPTIONS = 1879048194 +const PT_MIPS_REGINFO = 1879048192 +const PT_MIPS_RTPROC = 1879048193 +const PT_NOTE = 4 +const PT_NULL = 0 +const PT_NUM = 8 +const PT_PARISC_ARCHEXT = 1879048192 +const PT_PARISC_UNWIND = 1879048193 +const PT_PHDR = 6 +const PT_SHLIB = 5 +const PT_SUNWBSS = 1879048186 +const PT_SUNWSTACK = 1879048187 +const PT_TLS = 7 +const RAND_MAX = 2147483647 +const RHF_CORD = 4096 +const RHF_DEFAULT_DELAY_LOAD = 512 +const RHF_DELTA_C_PLUS_PLUS = 64 +const RHF_GUARANTEE_INIT = 32 +const RHF_GUARANTEE_START_INIT = 128 +const RHF_NONE = 0 +const RHF_NOTPOT = 2 +const RHF_NO_LIBRARY_REPLACEMENT = 4 +const RHF_NO_MOVE = 8 +const RHF_NO_UNRES_UNDEF = 8192 +const RHF_PIXIE = 256 +const RHF_QUICKSTART = 1 +const RHF_REQUICKSTART = 1024 +const RHF_REQUICKSTARTED = 2048 +const RHF_RLD_ORDER_SAFE = 16384 +const RHF_SGI_ONLY = 16 +const RLIMIT_AS = 9 +const RLIMIT_CORE = 4 +const RLIMIT_CPU = 0 +const RLIMIT_DATA = 2 +const RLIMIT_FSIZE = 1 +const RLIMIT_LOCKS = 10 +const RLIMIT_MEMLOCK = 8 +const RLIMIT_MSGQUEUE = 12 +const RLIMIT_NICE = 13 +const RLIMIT_NLIMITS = 16 +const RLIMIT_NOFILE = 7 +const RLIMIT_NPROC = 6 +const RLIMIT_RSS = 5 +const RLIMIT_RTPRIO = 14 +const RLIMIT_RTTIME = 15 +const RLIMIT_SIGPENDING = 11 +const RLIMIT_STACK = 3 +const RLIM_INFINITY = 18446744073709551615 +const RLIM_NLIMITS = 16 +const RLIM_SAVED_CUR = 18446744073709551615 +const RLIM_SAVED_MAX = 18446744073709551615 +const RUSAGE_CHILDREN = -1 +const RUSAGE_SELF = 0 +const RUSAGE_THREAD = 1 +const R_386_16 = 20 +const R_386_32 = 1 +const R_386_32PLT = 11 +const R_386_8 = 22 +const R_386_COPY = 5 +const R_386_GLOB_DAT = 6 +const R_386_GOT32 = 3 +const R_386_GOT32X = 43 +const R_386_GOTOFF = 9 +const R_386_GOTPC = 10 +const R_386_IRELATIVE = 42 +const R_386_JMP_SLOT = 7 +const R_386_NONE = 0 +const R_386_NUM = 44 +const R_386_PC16 = 21 +const R_386_PC32 = 2 +const R_386_PC8 = 23 +const R_386_PLT32 = 4 +const R_386_RELATIVE = 8 +const R_386_SIZE32 = 38 +const R_386_TLS_DESC = 41 +const R_386_TLS_DESC_CALL = 40 +const R_386_TLS_DTPMOD32 = 35 +const R_386_TLS_DTPOFF32 = 36 +const R_386_TLS_GD = 18 +const R_386_TLS_GD_32 = 24 +const R_386_TLS_GD_CALL = 26 +const R_386_TLS_GD_POP = 27 +const R_386_TLS_GD_PUSH = 25 +const R_386_TLS_GOTDESC = 39 +const R_386_TLS_GOTIE = 16 +const R_386_TLS_IE = 15 +const R_386_TLS_IE_32 = 33 +const R_386_TLS_LDM = 19 +const R_386_TLS_LDM_32 = 28 +const R_386_TLS_LDM_CALL = 30 +const R_386_TLS_LDM_POP = 31 +const R_386_TLS_LDM_PUSH = 29 +const R_386_TLS_LDO_32 = 32 +const R_386_TLS_LE = 17 +const R_386_TLS_LE_32 = 34 +const R_386_TLS_TPOFF = 14 +const R_386_TLS_TPOFF32 = 37 +const R_390_12 = 2 +const R_390_16 = 3 +const R_390_20 = 57 +const R_390_32 = 4 +const R_390_64 = 22 +const R_390_8 = 1 +const R_390_COPY = 9 +const R_390_GLOB_DAT = 10 +const R_390_GOT12 = 6 +const R_390_GOT16 = 15 +const R_390_GOT20 = 58 +const R_390_GOT32 = 7 +const R_390_GOT64 = 24 +const R_390_GOTENT = 26 +const R_390_GOTOFF16 = 27 +const R_390_GOTOFF32 = 13 +const R_390_GOTOFF64 = 28 +const R_390_GOTPC = 14 +const R_390_GOTPCDBL = 21 +const R_390_GOTPLT12 = 29 +const R_390_GOTPLT16 = 30 +const R_390_GOTPLT20 = 59 +const R_390_GOTPLT32 = 31 +const R_390_GOTPLT64 = 32 +const R_390_GOTPLTENT = 33 +const R_390_JMP_SLOT = 11 +const R_390_NONE = 0 +const R_390_NUM = 61 +const R_390_PC16 = 16 +const R_390_PC16DBL = 17 +const R_390_PC32 = 5 +const R_390_PC32DBL = 19 +const R_390_PC64 = 23 +const R_390_PLT16DBL = 18 +const R_390_PLT32 = 8 +const R_390_PLT32DBL = 20 +const R_390_PLT64 = 25 +const R_390_PLTOFF16 = 34 +const R_390_PLTOFF32 = 35 +const R_390_PLTOFF64 = 36 +const R_390_RELATIVE = 12 +const R_390_TLS_DTPMOD = 54 +const R_390_TLS_DTPOFF = 55 +const R_390_TLS_GD32 = 40 +const R_390_TLS_GD64 = 41 +const R_390_TLS_GDCALL = 38 +const R_390_TLS_GOTIE12 = 42 +const R_390_TLS_GOTIE20 = 60 +const R_390_TLS_GOTIE32 = 43 +const R_390_TLS_GOTIE64 = 44 +const R_390_TLS_IE32 = 47 +const R_390_TLS_IE64 = 48 +const R_390_TLS_IEENT = 49 +const R_390_TLS_LDCALL = 39 +const R_390_TLS_LDM32 = 45 +const R_390_TLS_LDM64 = 46 +const R_390_TLS_LDO32 = 52 +const R_390_TLS_LDO64 = 53 +const R_390_TLS_LE32 = 50 +const R_390_TLS_LE64 = 51 +const R_390_TLS_LOAD = 37 +const R_390_TLS_TPOFF = 56 +const R_68K_16 = 2 +const R_68K_32 = 1 +const R_68K_8 = 3 +const R_68K_COPY = 19 +const R_68K_GLOB_DAT = 20 +const R_68K_GOT16 = 8 +const R_68K_GOT16O = 11 +const R_68K_GOT32 = 7 +const R_68K_GOT32O = 10 +const R_68K_GOT8 = 9 +const R_68K_GOT8O = 12 +const R_68K_JMP_SLOT = 21 +const R_68K_NONE = 0 +const R_68K_NUM = 43 +const R_68K_PC16 = 5 +const R_68K_PC32 = 4 +const R_68K_PC8 = 6 +const R_68K_PLT16 = 14 +const R_68K_PLT16O = 17 +const R_68K_PLT32 = 13 +const R_68K_PLT32O = 16 +const R_68K_PLT8 = 15 +const R_68K_PLT8O = 18 +const R_68K_RELATIVE = 22 +const R_68K_TLS_DTPMOD32 = 40 +const R_68K_TLS_DTPREL32 = 41 +const R_68K_TLS_GD16 = 26 +const R_68K_TLS_GD32 = 25 +const R_68K_TLS_GD8 = 27 +const R_68K_TLS_IE16 = 35 +const R_68K_TLS_IE32 = 34 +const R_68K_TLS_IE8 = 36 +const R_68K_TLS_LDM16 = 29 +const R_68K_TLS_LDM32 = 28 +const R_68K_TLS_LDM8 = 30 +const R_68K_TLS_LDO16 = 32 +const R_68K_TLS_LDO32 = 31 +const R_68K_TLS_LDO8 = 33 +const R_68K_TLS_LE16 = 38 +const R_68K_TLS_LE32 = 37 +const R_68K_TLS_LE8 = 39 +const R_68K_TLS_TPREL32 = 42 +const R_AARCH64_ABS16 = 259 +const R_AARCH64_ABS32 = 258 +const R_AARCH64_ABS64 = 257 +const R_AARCH64_ADD_ABS_LO12_NC = 277 +const R_AARCH64_ADR_GOT_PAGE = 311 +const R_AARCH64_ADR_PREL_LO21 = 274 +const R_AARCH64_ADR_PREL_PG_HI21 = 275 +const R_AARCH64_ADR_PREL_PG_HI21_NC = 276 +const R_AARCH64_CALL26 = 283 +const R_AARCH64_CONDBR19 = 280 +const R_AARCH64_COPY = 1024 +const R_AARCH64_GLOB_DAT = 1025 +const R_AARCH64_GOTREL32 = 308 +const R_AARCH64_GOTREL64 = 307 +const R_AARCH64_GOT_LD_PREL19 = 309 +const R_AARCH64_JUMP26 = 282 +const R_AARCH64_JUMP_SLOT = 1026 +const R_AARCH64_LD64_GOTOFF_LO15 = 310 +const R_AARCH64_LD64_GOTPAGE_LO15 = 313 +const R_AARCH64_LD64_GOT_LO12_NC = 312 +const R_AARCH64_LDST128_ABS_LO12_NC = 299 +const R_AARCH64_LDST16_ABS_LO12_NC = 284 +const R_AARCH64_LDST32_ABS_LO12_NC = 285 +const R_AARCH64_LDST64_ABS_LO12_NC = 286 +const R_AARCH64_LDST8_ABS_LO12_NC = 278 +const R_AARCH64_LD_PREL_LO19 = 273 +const R_AARCH64_MOVW_GOTOFF_G0 = 300 +const R_AARCH64_MOVW_GOTOFF_G0_NC = 301 +const R_AARCH64_MOVW_GOTOFF_G1 = 302 +const R_AARCH64_MOVW_GOTOFF_G1_NC = 303 +const R_AARCH64_MOVW_GOTOFF_G2 = 304 +const R_AARCH64_MOVW_GOTOFF_G2_NC = 305 +const R_AARCH64_MOVW_GOTOFF_G3 = 306 +const R_AARCH64_MOVW_PREL_G0 = 287 +const R_AARCH64_MOVW_PREL_G0_NC = 288 +const R_AARCH64_MOVW_PREL_G1 = 289 +const R_AARCH64_MOVW_PREL_G1_NC = 290 +const R_AARCH64_MOVW_PREL_G2 = 291 +const R_AARCH64_MOVW_PREL_G2_NC = 292 +const R_AARCH64_MOVW_PREL_G3 = 293 +const R_AARCH64_MOVW_SABS_G0 = 270 +const R_AARCH64_MOVW_SABS_G1 = 271 +const R_AARCH64_MOVW_SABS_G2 = 272 +const R_AARCH64_MOVW_UABS_G0 = 263 +const R_AARCH64_MOVW_UABS_G0_NC = 264 +const R_AARCH64_MOVW_UABS_G1 = 265 +const R_AARCH64_MOVW_UABS_G1_NC = 266 +const R_AARCH64_MOVW_UABS_G2 = 267 +const R_AARCH64_MOVW_UABS_G2_NC = 268 +const R_AARCH64_MOVW_UABS_G3 = 269 +const R_AARCH64_NONE = 0 +const R_AARCH64_P32_ABS32 = 1 +const R_AARCH64_P32_COPY = 180 +const R_AARCH64_P32_GLOB_DAT = 181 +const R_AARCH64_P32_IRELATIVE = 188 +const R_AARCH64_P32_JUMP_SLOT = 182 +const R_AARCH64_P32_RELATIVE = 183 +const R_AARCH64_P32_TLSDESC = 187 +const R_AARCH64_P32_TLS_DTPMOD = 184 +const R_AARCH64_P32_TLS_DTPREL = 185 +const R_AARCH64_P32_TLS_TPREL = 186 +const R_AARCH64_PREL16 = 262 +const R_AARCH64_PREL32 = 261 +const R_AARCH64_PREL64 = 260 +const R_AARCH64_RELATIVE = 1027 +const R_AARCH64_TLSDESC = 1031 +const R_AARCH64_TLSDESC_ADD = 568 +const R_AARCH64_TLSDESC_ADD_LO12 = 564 +const R_AARCH64_TLSDESC_ADR_PAGE21 = 562 +const R_AARCH64_TLSDESC_ADR_PREL21 = 561 +const R_AARCH64_TLSDESC_CALL = 569 +const R_AARCH64_TLSDESC_LD64_LO12 = 563 +const R_AARCH64_TLSDESC_LDR = 567 +const R_AARCH64_TLSDESC_LD_PREL19 = 560 +const R_AARCH64_TLSDESC_OFF_G0_NC = 566 +const R_AARCH64_TLSDESC_OFF_G1 = 565 +const R_AARCH64_TLSGD_ADD_LO12_NC = 514 +const R_AARCH64_TLSGD_ADR_PAGE21 = 513 +const R_AARCH64_TLSGD_ADR_PREL21 = 512 +const R_AARCH64_TLSGD_MOVW_G0_NC = 516 +const R_AARCH64_TLSGD_MOVW_G1 = 515 +const R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21 = 541 +const R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC = 542 +const R_AARCH64_TLSIE_LD_GOTTPREL_PREL19 = 543 +const R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC = 540 +const R_AARCH64_TLSIE_MOVW_GOTTPREL_G1 = 539 +const R_AARCH64_TLSLD_ADD_DTPREL_HI12 = 528 +const R_AARCH64_TLSLD_ADD_DTPREL_LO12 = 529 +const R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC = 530 +const R_AARCH64_TLSLD_ADD_LO12_NC = 519 +const R_AARCH64_TLSLD_ADR_PAGE21 = 518 +const R_AARCH64_TLSLD_ADR_PREL21 = 517 +const R_AARCH64_TLSLD_LDST128_DTPREL_LO12 = 572 +const R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC = 573 +const R_AARCH64_TLSLD_LDST16_DTPREL_LO12 = 533 +const R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC = 534 +const R_AARCH64_TLSLD_LDST32_DTPREL_LO12 = 535 +const R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC = 536 +const R_AARCH64_TLSLD_LDST64_DTPREL_LO12 = 537 +const R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC = 538 +const R_AARCH64_TLSLD_LDST8_DTPREL_LO12 = 531 +const R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC = 532 +const R_AARCH64_TLSLD_LD_PREL19 = 522 +const R_AARCH64_TLSLD_MOVW_DTPREL_G0 = 526 +const R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC = 527 +const R_AARCH64_TLSLD_MOVW_DTPREL_G1 = 524 +const R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC = 525 +const R_AARCH64_TLSLD_MOVW_DTPREL_G2 = 523 +const R_AARCH64_TLSLD_MOVW_G0_NC = 521 +const R_AARCH64_TLSLD_MOVW_G1 = 520 +const R_AARCH64_TLSLE_ADD_TPREL_HI12 = 549 +const R_AARCH64_TLSLE_ADD_TPREL_LO12 = 550 +const R_AARCH64_TLSLE_ADD_TPREL_LO12_NC = 551 +const R_AARCH64_TLSLE_LDST128_TPREL_LO12 = 570 +const R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC = 571 +const R_AARCH64_TLSLE_LDST16_TPREL_LO12 = 554 +const R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC = 555 +const R_AARCH64_TLSLE_LDST32_TPREL_LO12 = 556 +const R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC = 557 +const R_AARCH64_TLSLE_LDST64_TPREL_LO12 = 558 +const R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC = 559 +const R_AARCH64_TLSLE_LDST8_TPREL_LO12 = 552 +const R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC = 553 +const R_AARCH64_TLSLE_MOVW_TPREL_G0 = 547 +const R_AARCH64_TLSLE_MOVW_TPREL_G0_NC = 548 +const R_AARCH64_TLSLE_MOVW_TPREL_G1 = 545 +const R_AARCH64_TLSLE_MOVW_TPREL_G1_NC = 546 +const R_AARCH64_TLSLE_MOVW_TPREL_G2 = 544 +const R_AARCH64_TLS_DTPMOD = 1028 +const R_AARCH64_TLS_DTPMOD64 = 1028 +const R_AARCH64_TLS_DTPREL = 1029 +const R_AARCH64_TLS_DTPREL64 = 1029 +const R_AARCH64_TLS_TPREL = 1030 +const R_AARCH64_TLS_TPREL64 = 1030 +const R_AARCH64_TSTBR14 = 279 +const R_ALPHA_BRADDR = 7 +const R_ALPHA_COPY = 24 +const R_ALPHA_DTPMOD64 = 31 +const R_ALPHA_DTPREL16 = 36 +const R_ALPHA_DTPREL64 = 33 +const R_ALPHA_DTPRELHI = 34 +const R_ALPHA_DTPRELLO = 35 +const R_ALPHA_GLOB_DAT = 25 +const R_ALPHA_GOTDTPREL = 32 +const R_ALPHA_GOTTPREL = 37 +const R_ALPHA_GPDISP = 6 +const R_ALPHA_GPREL16 = 19 +const R_ALPHA_GPREL32 = 3 +const R_ALPHA_GPRELHIGH = 17 +const R_ALPHA_GPRELLOW = 18 +const R_ALPHA_HINT = 8 +const R_ALPHA_JMP_SLOT = 26 +const R_ALPHA_LITERAL = 4 +const R_ALPHA_LITUSE = 5 +const R_ALPHA_NONE = 0 +const R_ALPHA_NUM = 46 +const R_ALPHA_REFLONG = 1 +const R_ALPHA_REFQUAD = 2 +const R_ALPHA_RELATIVE = 27 +const R_ALPHA_SREL16 = 9 +const R_ALPHA_SREL32 = 10 +const R_ALPHA_SREL64 = 11 +const R_ALPHA_TLSGD = 29 +const R_ALPHA_TLS_GD_HI = 28 +const R_ALPHA_TLS_LDM = 30 +const R_ALPHA_TPREL16 = 41 +const R_ALPHA_TPREL64 = 38 +const R_ALPHA_TPRELHI = 39 +const R_ALPHA_TPRELLO = 40 +const R_ARM_ABS12 = 6 +const R_ARM_ABS16 = 5 +const R_ARM_ABS32 = 2 +const R_ARM_ABS32_NOI = 55 +const R_ARM_ABS8 = 8 +const R_ARM_ALU_PCREL_15_8 = 33 +const R_ARM_ALU_PCREL_23_15 = 34 +const R_ARM_ALU_PCREL_7_0 = 32 +const R_ARM_ALU_PC_G0 = 58 +const R_ARM_ALU_PC_G0_NC = 57 +const R_ARM_ALU_PC_G1 = 60 +const R_ARM_ALU_PC_G1_NC = 59 +const R_ARM_ALU_PC_G2 = 61 +const R_ARM_ALU_SBREL_19_12 = 36 +const R_ARM_ALU_SBREL_27_20 = 37 +const R_ARM_ALU_SB_G0 = 71 +const R_ARM_ALU_SB_G0_NC = 70 +const R_ARM_ALU_SB_G1 = 73 +const R_ARM_ALU_SB_G1_NC = 72 +const R_ARM_ALU_SB_G2 = 74 +const R_ARM_AMP_VCALL9 = 12 +const R_ARM_BASE_ABS = 31 +const R_ARM_CALL = 28 +const R_ARM_COPY = 20 +const R_ARM_GLOB_DAT = 21 +const R_ARM_GNU_VTENTRY = 100 +const R_ARM_GNU_VTINHERIT = 101 +const R_ARM_GOT32 = 26 +const R_ARM_GOTOFF = 24 +const R_ARM_GOTOFF12 = 98 +const R_ARM_GOTPC = 25 +const R_ARM_GOTRELAX = 99 +const R_ARM_GOT_ABS = 95 +const R_ARM_GOT_BREL12 = 97 +const R_ARM_GOT_PREL = 96 +const R_ARM_IRELATIVE = 160 +const R_ARM_JUMP24 = 29 +const R_ARM_JUMP_SLOT = 22 +const R_ARM_LDC_PC_G0 = 67 +const R_ARM_LDC_PC_G1 = 68 +const R_ARM_LDC_PC_G2 = 69 +const R_ARM_LDC_SB_G0 = 81 +const R_ARM_LDC_SB_G1 = 82 +const R_ARM_LDC_SB_G2 = 83 +const R_ARM_LDRS_PC_G0 = 64 +const R_ARM_LDRS_PC_G1 = 65 +const R_ARM_LDRS_PC_G2 = 66 +const R_ARM_LDRS_SB_G0 = 78 +const R_ARM_LDRS_SB_G1 = 79 +const R_ARM_LDRS_SB_G2 = 80 +const R_ARM_LDR_PC_G1 = 62 +const R_ARM_LDR_PC_G2 = 63 +const R_ARM_LDR_SBREL_11_0 = 35 +const R_ARM_LDR_SB_G0 = 75 +const R_ARM_LDR_SB_G1 = 76 +const R_ARM_LDR_SB_G2 = 77 +const R_ARM_ME_TOO = 128 +const R_ARM_MOVT_ABS = 44 +const R_ARM_MOVT_BREL = 85 +const R_ARM_MOVT_PREL = 46 +const R_ARM_MOVW_ABS_NC = 43 +const R_ARM_MOVW_BREL = 86 +const R_ARM_MOVW_BREL_NC = 84 +const R_ARM_MOVW_PREL_NC = 45 +const R_ARM_NONE = 0 +const R_ARM_NUM = 256 +const R_ARM_PC13 = 4 +const R_ARM_PC24 = 1 +const R_ARM_PLT32 = 27 +const R_ARM_PLT32_ABS = 94 +const R_ARM_PREL31 = 42 +const R_ARM_RABS22 = 253 +const R_ARM_RBASE = 255 +const R_ARM_REL32 = 3 +const R_ARM_REL32_NOI = 56 +const R_ARM_RELATIVE = 23 +const R_ARM_RPC24 = 254 +const R_ARM_RREL32 = 252 +const R_ARM_RSBREL32 = 250 +const R_ARM_RXPC25 = 249 +const R_ARM_SBREL31 = 39 +const R_ARM_SBREL32 = 9 +const R_ARM_TARGET1 = 38 +const R_ARM_TARGET2 = 41 +const R_ARM_THM_ABS5 = 7 +const R_ARM_THM_ALU_PREL_11_0 = 53 +const R_ARM_THM_GOT_BREL12 = 131 +const R_ARM_THM_JUMP19 = 51 +const R_ARM_THM_JUMP24 = 30 +const R_ARM_THM_JUMP6 = 52 +const R_ARM_THM_MOVT_ABS = 48 +const R_ARM_THM_MOVT_BREL = 88 +const R_ARM_THM_MOVT_PREL = 50 +const R_ARM_THM_MOVW_ABS_NC = 47 +const R_ARM_THM_MOVW_BREL = 89 +const R_ARM_THM_MOVW_BREL_NC = 87 +const R_ARM_THM_MOVW_PREL_NC = 49 +const R_ARM_THM_PC11 = 102 +const R_ARM_THM_PC12 = 54 +const R_ARM_THM_PC22 = 10 +const R_ARM_THM_PC8 = 11 +const R_ARM_THM_PC9 = 103 +const R_ARM_THM_RPC22 = 251 +const R_ARM_THM_SWI8 = 14 +const R_ARM_THM_TLS_CALL = 93 +const R_ARM_THM_TLS_DESCSEQ = 129 +const R_ARM_THM_TLS_DESCSEQ16 = 129 +const R_ARM_THM_TLS_DESCSEQ32 = 130 +const R_ARM_THM_XPC22 = 16 +const R_ARM_TLS_CALL = 91 +const R_ARM_TLS_DESC = 13 +const R_ARM_TLS_DESCSEQ = 92 +const R_ARM_TLS_DTPMOD32 = 17 +const R_ARM_TLS_DTPOFF32 = 18 +const R_ARM_TLS_GD32 = 104 +const R_ARM_TLS_GOTDESC = 90 +const R_ARM_TLS_IE12GP = 111 +const R_ARM_TLS_IE32 = 107 +const R_ARM_TLS_LDM32 = 105 +const R_ARM_TLS_LDO12 = 109 +const R_ARM_TLS_LDO32 = 106 +const R_ARM_TLS_LE12 = 110 +const R_ARM_TLS_LE32 = 108 +const R_ARM_TLS_TPOFF32 = 19 +const R_ARM_V4BX = 40 +const R_ARM_XPC25 = 15 +const R_BPF_MAP_FD = 1 +const R_BPF_NONE = 0 +const R_CKCORE_ADDR32 = 1 +const R_CKCORE_ADDRGOT = 17 +const R_CKCORE_ADDRGOT_HI16 = 36 +const R_CKCORE_ADDRGOT_LO16 = 37 +const R_CKCORE_ADDRPLT = 18 +const R_CKCORE_ADDRPLT_HI16 = 38 +const R_CKCORE_ADDRPLT_LO16 = 39 +const R_CKCORE_ADDR_HI16 = 24 +const R_CKCORE_ADDR_LO16 = 25 +const R_CKCORE_COPY = 10 +const R_CKCORE_DOFFSET_IMM18 = 44 +const R_CKCORE_DOFFSET_IMM18BY2 = 45 +const R_CKCORE_DOFFSET_IMM18BY4 = 46 +const R_CKCORE_DOFFSET_LO16 = 42 +const R_CKCORE_GLOB_DAT = 11 +const R_CKCORE_GOT12 = 30 +const R_CKCORE_GOT32 = 15 +const R_CKCORE_GOTOFF = 13 +const R_CKCORE_GOTOFF_HI16 = 28 +const R_CKCORE_GOTOFF_LO16 = 29 +const R_CKCORE_GOTPC = 14 +const R_CKCORE_GOTPC_HI16 = 26 +const R_CKCORE_GOTPC_LO16 = 27 +const R_CKCORE_GOT_HI16 = 31 +const R_CKCORE_GOT_IMM18BY4 = 48 +const R_CKCORE_GOT_LO16 = 32 +const R_CKCORE_JUMP_SLOT = 12 +const R_CKCORE_NONE = 0 +const R_CKCORE_PCREL32 = 5 +const R_CKCORE_PCRELIMM11BY2 = 3 +const R_CKCORE_PCRELIMM8BY4 = 2 +const R_CKCORE_PCRELJSR_IMM11BY2 = 6 +const R_CKCORE_PCREL_IMM10BY2 = 22 +const R_CKCORE_PCREL_IMM10BY4 = 23 +const R_CKCORE_PCREL_IMM16BY2 = 20 +const R_CKCORE_PCREL_IMM16BY4 = 21 +const R_CKCORE_PCREL_IMM18BY2 = 43 +const R_CKCORE_PCREL_IMM26BY2 = 19 +const R_CKCORE_PCREL_IMM7BY4 = 50 +const R_CKCORE_PCREL_JSR_IMM26BY2 = 40 +const R_CKCORE_PLT12 = 33 +const R_CKCORE_PLT32 = 16 +const R_CKCORE_PLT_HI16 = 34 +const R_CKCORE_PLT_IMM18BY4 = 49 +const R_CKCORE_PLT_LO16 = 35 +const R_CKCORE_RELATIVE = 9 +const R_CKCORE_TLS_DTPMOD32 = 56 +const R_CKCORE_TLS_DTPOFF32 = 57 +const R_CKCORE_TLS_GD32 = 53 +const R_CKCORE_TLS_IE32 = 52 +const R_CKCORE_TLS_LDM32 = 54 +const R_CKCORE_TLS_LDO32 = 55 +const R_CKCORE_TLS_LE32 = 51 +const R_CKCORE_TLS_TPOFF32 = 58 +const R_CKCORE_TOFFSET_LO16 = 41 +const R_CRIS_16 = 2 +const R_CRIS_16_GOT = 13 +const R_CRIS_16_GOTPLT = 15 +const R_CRIS_16_PCREL = 5 +const R_CRIS_32 = 3 +const R_CRIS_32_GOT = 14 +const R_CRIS_32_GOTPLT = 16 +const R_CRIS_32_GOTREL = 17 +const R_CRIS_32_PCREL = 6 +const R_CRIS_32_PLT_GOTREL = 18 +const R_CRIS_32_PLT_PCREL = 19 +const R_CRIS_8 = 1 +const R_CRIS_8_PCREL = 4 +const R_CRIS_COPY = 9 +const R_CRIS_GLOB_DAT = 10 +const R_CRIS_GNU_VTENTRY = 8 +const R_CRIS_GNU_VTINHERIT = 7 +const R_CRIS_JUMP_SLOT = 11 +const R_CRIS_NONE = 0 +const R_CRIS_NUM = 20 +const R_CRIS_RELATIVE = 12 +const R_IA64_COPY = 132 +const R_IA64_DIR32LSB = 37 +const R_IA64_DIR32MSB = 36 +const R_IA64_DIR64LSB = 39 +const R_IA64_DIR64MSB = 38 +const R_IA64_DTPMOD64LSB = 167 +const R_IA64_DTPMOD64MSB = 166 +const R_IA64_DTPREL14 = 177 +const R_IA64_DTPREL22 = 178 +const R_IA64_DTPREL32LSB = 181 +const R_IA64_DTPREL32MSB = 180 +const R_IA64_DTPREL64I = 179 +const R_IA64_DTPREL64LSB = 183 +const R_IA64_DTPREL64MSB = 182 +const R_IA64_FPTR32LSB = 69 +const R_IA64_FPTR32MSB = 68 +const R_IA64_FPTR64I = 67 +const R_IA64_FPTR64LSB = 71 +const R_IA64_FPTR64MSB = 70 +const R_IA64_GPREL22 = 42 +const R_IA64_GPREL32LSB = 45 +const R_IA64_GPREL32MSB = 44 +const R_IA64_GPREL64I = 43 +const R_IA64_GPREL64LSB = 47 +const R_IA64_GPREL64MSB = 46 +const R_IA64_IMM14 = 33 +const R_IA64_IMM22 = 34 +const R_IA64_IMM64 = 35 +const R_IA64_IPLTLSB = 129 +const R_IA64_IPLTMSB = 128 +const R_IA64_LDXMOV = 135 +const R_IA64_LTOFF22 = 50 +const R_IA64_LTOFF22X = 134 +const R_IA64_LTOFF64I = 51 +const R_IA64_LTOFF_DTPMOD22 = 170 +const R_IA64_LTOFF_DTPREL22 = 186 +const R_IA64_LTOFF_FPTR22 = 82 +const R_IA64_LTOFF_FPTR32LSB = 85 +const R_IA64_LTOFF_FPTR32MSB = 84 +const R_IA64_LTOFF_FPTR64I = 83 +const R_IA64_LTOFF_FPTR64LSB = 87 +const R_IA64_LTOFF_FPTR64MSB = 86 +const R_IA64_LTOFF_TPREL22 = 154 +const R_IA64_LTV32LSB = 117 +const R_IA64_LTV32MSB = 116 +const R_IA64_LTV64LSB = 119 +const R_IA64_LTV64MSB = 118 +const R_IA64_NONE = 0 +const R_IA64_PCREL21B = 73 +const R_IA64_PCREL21BI = 121 +const R_IA64_PCREL21F = 75 +const R_IA64_PCREL21M = 74 +const R_IA64_PCREL22 = 122 +const R_IA64_PCREL32LSB = 77 +const R_IA64_PCREL32MSB = 76 +const R_IA64_PCREL60B = 72 +const R_IA64_PCREL64I = 123 +const R_IA64_PCREL64LSB = 79 +const R_IA64_PCREL64MSB = 78 +const R_IA64_PLTOFF22 = 58 +const R_IA64_PLTOFF64I = 59 +const R_IA64_PLTOFF64LSB = 63 +const R_IA64_PLTOFF64MSB = 62 +const R_IA64_REL32LSB = 109 +const R_IA64_REL32MSB = 108 +const R_IA64_REL64LSB = 111 +const R_IA64_REL64MSB = 110 +const R_IA64_SECREL32LSB = 101 +const R_IA64_SECREL32MSB = 100 +const R_IA64_SECREL64LSB = 103 +const R_IA64_SECREL64MSB = 102 +const R_IA64_SEGREL32LSB = 93 +const R_IA64_SEGREL32MSB = 92 +const R_IA64_SEGREL64LSB = 95 +const R_IA64_SEGREL64MSB = 94 +const R_IA64_SUB = 133 +const R_IA64_TPREL14 = 145 +const R_IA64_TPREL22 = 146 +const R_IA64_TPREL64I = 147 +const R_IA64_TPREL64LSB = 151 +const R_IA64_TPREL64MSB = 150 +const R_LARCH_32 = 1 +const R_LARCH_32_PCREL = 99 +const R_LARCH_64 = 2 +const R_LARCH_ABS64_HI12 = 70 +const R_LARCH_ABS64_LO20 = 69 +const R_LARCH_ABS_HI20 = 67 +const R_LARCH_ABS_LO12 = 68 +const R_LARCH_ADD16 = 48 +const R_LARCH_ADD24 = 49 +const R_LARCH_ADD32 = 50 +const R_LARCH_ADD64 = 51 +const R_LARCH_ADD8 = 47 +const R_LARCH_B16 = 64 +const R_LARCH_B21 = 65 +const R_LARCH_B26 = 66 +const R_LARCH_COPY = 4 +const R_LARCH_GNU_VTENTRY = 58 +const R_LARCH_GNU_VTINHERIT = 57 +const R_LARCH_GOT64_HI12 = 82 +const R_LARCH_GOT64_LO20 = 81 +const R_LARCH_GOT64_PC_HI12 = 78 +const R_LARCH_GOT64_PC_LO20 = 77 +const R_LARCH_GOT_HI20 = 79 +const R_LARCH_GOT_LO12 = 80 +const R_LARCH_GOT_PC_HI20 = 75 +const R_LARCH_GOT_PC_LO12 = 76 +const R_LARCH_IRELATIVE = 12 +const R_LARCH_JUMP_SLOT = 5 +const R_LARCH_MARK_LA = 20 +const R_LARCH_MARK_PCREL = 21 +const R_LARCH_NONE = 0 +const R_LARCH_PCALA64_HI12 = 74 +const R_LARCH_PCALA64_LO20 = 73 +const R_LARCH_PCALA_HI20 = 71 +const R_LARCH_PCALA_LO12 = 72 +const R_LARCH_RELATIVE = 3 +const R_LARCH_RELAX = 100 +const R_LARCH_SOP_ADD = 35 +const R_LARCH_SOP_AND = 36 +const R_LARCH_SOP_ASSERT = 30 +const R_LARCH_SOP_IF_ELSE = 37 +const R_LARCH_SOP_NOT = 31 +const R_LARCH_SOP_POP_32_S_0_10_10_16_S2 = 45 +const R_LARCH_SOP_POP_32_S_0_5_10_16_S2 = 44 +const R_LARCH_SOP_POP_32_S_10_12 = 40 +const R_LARCH_SOP_POP_32_S_10_16 = 41 +const R_LARCH_SOP_POP_32_S_10_16_S2 = 42 +const R_LARCH_SOP_POP_32_S_10_5 = 38 +const R_LARCH_SOP_POP_32_S_5_20 = 43 +const R_LARCH_SOP_POP_32_U = 46 +const R_LARCH_SOP_POP_32_U_10_12 = 39 +const R_LARCH_SOP_PUSH_ABSOLUTE = 23 +const R_LARCH_SOP_PUSH_DUP = 24 +const R_LARCH_SOP_PUSH_GPREL = 25 +const R_LARCH_SOP_PUSH_PCREL = 22 +const R_LARCH_SOP_PUSH_PLT_PCREL = 29 +const R_LARCH_SOP_PUSH_TLS_GD = 28 +const R_LARCH_SOP_PUSH_TLS_GOT = 27 +const R_LARCH_SOP_PUSH_TLS_TPREL = 26 +const R_LARCH_SOP_SL = 33 +const R_LARCH_SOP_SR = 34 +const R_LARCH_SOP_SUB = 32 +const R_LARCH_SUB16 = 53 +const R_LARCH_SUB24 = 54 +const R_LARCH_SUB32 = 55 +const R_LARCH_SUB64 = 56 +const R_LARCH_SUB8 = 52 +const R_LARCH_TLS_DTPMOD32 = 6 +const R_LARCH_TLS_DTPMOD64 = 7 +const R_LARCH_TLS_DTPREL32 = 8 +const R_LARCH_TLS_DTPREL64 = 9 +const R_LARCH_TLS_GD_HI20 = 98 +const R_LARCH_TLS_GD_PC_HI20 = 97 +const R_LARCH_TLS_IE64_HI12 = 94 +const R_LARCH_TLS_IE64_LO20 = 93 +const R_LARCH_TLS_IE64_PC_HI12 = 90 +const R_LARCH_TLS_IE64_PC_LO20 = 89 +const R_LARCH_TLS_IE_HI20 = 91 +const R_LARCH_TLS_IE_LO12 = 92 +const R_LARCH_TLS_IE_PC_HI20 = 87 +const R_LARCH_TLS_IE_PC_LO12 = 88 +const R_LARCH_TLS_LD_HI20 = 96 +const R_LARCH_TLS_LD_PC_HI20 = 95 +const R_LARCH_TLS_LE64_HI12 = 86 +const R_LARCH_TLS_LE64_LO20 = 85 +const R_LARCH_TLS_LE_HI20 = 83 +const R_LARCH_TLS_LE_LO12 = 84 +const R_LARCH_TLS_TPREL32 = 10 +const R_LARCH_TLS_TPREL64 = 11 +const R_M32R_10_PCREL = 4 +const R_M32R_10_PCREL_RELA = 36 +const R_M32R_16 = 1 +const R_M32R_16_RELA = 33 +const R_M32R_18_PCREL = 5 +const R_M32R_18_PCREL_RELA = 37 +const R_M32R_24 = 3 +const R_M32R_24_RELA = 35 +const R_M32R_26_PCREL = 6 +const R_M32R_26_PCREL_RELA = 38 +const R_M32R_26_PLTREL = 49 +const R_M32R_32 = 2 +const R_M32R_32_RELA = 34 +const R_M32R_COPY = 50 +const R_M32R_GLOB_DAT = 51 +const R_M32R_GNU_VTENTRY = 12 +const R_M32R_GNU_VTINHERIT = 11 +const R_M32R_GOT16_HI_SLO = 57 +const R_M32R_GOT16_HI_ULO = 56 +const R_M32R_GOT16_LO = 58 +const R_M32R_GOT24 = 48 +const R_M32R_GOTOFF = 54 +const R_M32R_GOTOFF_HI_SLO = 63 +const R_M32R_GOTOFF_HI_ULO = 62 +const R_M32R_GOTOFF_LO = 64 +const R_M32R_GOTPC24 = 55 +const R_M32R_GOTPC_HI_SLO = 60 +const R_M32R_GOTPC_HI_ULO = 59 +const R_M32R_GOTPC_LO = 61 +const R_M32R_HI16_SLO = 8 +const R_M32R_HI16_SLO_RELA = 40 +const R_M32R_HI16_ULO = 7 +const R_M32R_HI16_ULO_RELA = 39 +const R_M32R_JMP_SLOT = 52 +const R_M32R_LO16 = 9 +const R_M32R_LO16_RELA = 41 +const R_M32R_NONE = 0 +const R_M32R_NUM = 256 +const R_M32R_REL32 = 45 +const R_M32R_RELATIVE = 53 +const R_M32R_RELA_GNU_VTENTRY = 44 +const R_M32R_RELA_GNU_VTINHERIT = 43 +const R_M32R_SDA16 = 10 +const R_M32R_SDA16_RELA = 42 +const R_MICROBLAZE_32 = 1 +const R_MICROBLAZE_32_LO = 6 +const R_MICROBLAZE_32_PCREL = 2 +const R_MICROBLAZE_32_PCREL_LO = 4 +const R_MICROBLAZE_32_SYM_OP_SYM = 10 +const R_MICROBLAZE_64 = 5 +const R_MICROBLAZE_64_NONE = 9 +const R_MICROBLAZE_64_PCREL = 3 +const R_MICROBLAZE_COPY = 21 +const R_MICROBLAZE_GLOB_DAT = 18 +const R_MICROBLAZE_GNU_VTENTRY = 12 +const R_MICROBLAZE_GNU_VTINHERIT = 11 +const R_MICROBLAZE_GOTOFF_32 = 20 +const R_MICROBLAZE_GOTOFF_64 = 19 +const R_MICROBLAZE_GOTPC_64 = 13 +const R_MICROBLAZE_GOT_64 = 14 +const R_MICROBLAZE_JUMP_SLOT = 17 +const R_MICROBLAZE_NONE = 0 +const R_MICROBLAZE_PLT_64 = 15 +const R_MICROBLAZE_REL = 16 +const R_MICROBLAZE_SRO32 = 7 +const R_MICROBLAZE_SRW32 = 8 +const R_MICROBLAZE_TLS = 22 +const R_MICROBLAZE_TLSDTPMOD32 = 25 +const R_MICROBLAZE_TLSDTPREL32 = 26 +const R_MICROBLAZE_TLSDTPREL64 = 27 +const R_MICROBLAZE_TLSGD = 23 +const R_MICROBLAZE_TLSGOTTPREL32 = 28 +const R_MICROBLAZE_TLSLD = 24 +const R_MICROBLAZE_TLSTPREL32 = 29 +const R_MIPS_16 = 1 +const R_MIPS_26 = 4 +const R_MIPS_32 = 2 +const R_MIPS_64 = 18 +const R_MIPS_ADD_IMMEDIATE = 34 +const R_MIPS_CALL16 = 11 +const R_MIPS_CALL_HI16 = 30 +const R_MIPS_CALL_LO16 = 31 +const R_MIPS_COPY = 126 +const R_MIPS_DELETE = 27 +const R_MIPS_GLOB_DAT = 51 +const R_MIPS_GOT16 = 9 +const R_MIPS_GOT_DISP = 19 +const R_MIPS_GOT_HI16 = 22 +const R_MIPS_GOT_LO16 = 23 +const R_MIPS_GOT_OFST = 21 +const R_MIPS_GOT_PAGE = 20 +const R_MIPS_GPREL16 = 7 +const R_MIPS_GPREL32 = 12 +const R_MIPS_HI16 = 5 +const R_MIPS_HIGHER = 28 +const R_MIPS_HIGHEST = 29 +const R_MIPS_INSERT_A = 25 +const R_MIPS_INSERT_B = 26 +const R_MIPS_JALR = 37 +const R_MIPS_JUMP_SLOT = 127 +const R_MIPS_LITERAL = 8 +const R_MIPS_LO16 = 6 +const R_MIPS_NONE = 0 +const R_MIPS_NUM = 128 +const R_MIPS_PC16 = 10 +const R_MIPS_PJUMP = 35 +const R_MIPS_REL16 = 33 +const R_MIPS_REL32 = 3 +const R_MIPS_RELGOT = 36 +const R_MIPS_SCN_DISP = 32 +const R_MIPS_SHIFT5 = 16 +const R_MIPS_SHIFT6 = 17 +const R_MIPS_SUB = 24 +const R_MIPS_TLS_DTPMOD32 = 38 +const R_MIPS_TLS_DTPMOD64 = 40 +const R_MIPS_TLS_DTPREL32 = 39 +const R_MIPS_TLS_DTPREL64 = 41 +const R_MIPS_TLS_DTPREL_HI16 = 44 +const R_MIPS_TLS_DTPREL_LO16 = 45 +const R_MIPS_TLS_GD = 42 +const R_MIPS_TLS_GOTTPREL = 46 +const R_MIPS_TLS_LDM = 43 +const R_MIPS_TLS_TPREL32 = 47 +const R_MIPS_TLS_TPREL64 = 48 +const R_MIPS_TLS_TPREL_HI16 = 49 +const R_MIPS_TLS_TPREL_LO16 = 50 +const R_MN10300_16 = 2 +const R_MN10300_24 = 9 +const R_MN10300_32 = 1 +const R_MN10300_8 = 3 +const R_MN10300_COPY = 20 +const R_MN10300_GLOB_DAT = 21 +const R_MN10300_GNU_VTENTRY = 8 +const R_MN10300_GNU_VTINHERIT = 7 +const R_MN10300_GOT16 = 19 +const R_MN10300_GOT24 = 18 +const R_MN10300_GOT32 = 17 +const R_MN10300_GOTOFF16 = 14 +const R_MN10300_GOTOFF24 = 13 +const R_MN10300_GOTOFF32 = 12 +const R_MN10300_GOTPC16 = 11 +const R_MN10300_GOTPC32 = 10 +const R_MN10300_JMP_SLOT = 22 +const R_MN10300_NONE = 0 +const R_MN10300_NUM = 24 +const R_MN10300_PCREL16 = 5 +const R_MN10300_PCREL32 = 4 +const R_MN10300_PCREL8 = 6 +const R_MN10300_PLT16 = 16 +const R_MN10300_PLT32 = 15 +const R_MN10300_RELATIVE = 23 +const R_NIOS2_ALIGN = 21 +const R_NIOS2_BFD_RELOC_16 = 13 +const R_NIOS2_BFD_RELOC_32 = 12 +const R_NIOS2_BFD_RELOC_8 = 14 +const R_NIOS2_CACHE_OPX = 6 +const R_NIOS2_CALL16 = 23 +const R_NIOS2_CALL26 = 4 +const R_NIOS2_CALL26_NOAT = 41 +const R_NIOS2_CALLR = 20 +const R_NIOS2_CALL_HA = 45 +const R_NIOS2_CALL_LO = 44 +const R_NIOS2_CJMP = 19 +const R_NIOS2_COPY = 36 +const R_NIOS2_GLOB_DAT = 37 +const R_NIOS2_GNU_VTENTRY = 17 +const R_NIOS2_GNU_VTINHERIT = 16 +const R_NIOS2_GOT16 = 22 +const R_NIOS2_GOTOFF = 40 +const R_NIOS2_GOTOFF_HA = 25 +const R_NIOS2_GOTOFF_LO = 24 +const R_NIOS2_GOT_HA = 43 +const R_NIOS2_GOT_LO = 42 +const R_NIOS2_GPREL = 15 +const R_NIOS2_HI16 = 9 +const R_NIOS2_HIADJ16 = 11 +const R_NIOS2_IMM5 = 5 +const R_NIOS2_IMM6 = 7 +const R_NIOS2_IMM8 = 8 +const R_NIOS2_JUMP_SLOT = 38 +const R_NIOS2_LO16 = 10 +const R_NIOS2_NONE = 0 +const R_NIOS2_PCREL16 = 3 +const R_NIOS2_PCREL_HA = 27 +const R_NIOS2_PCREL_LO = 26 +const R_NIOS2_RELATIVE = 39 +const R_NIOS2_S16 = 1 +const R_NIOS2_TLS_DTPMOD = 33 +const R_NIOS2_TLS_DTPREL = 34 +const R_NIOS2_TLS_GD16 = 28 +const R_NIOS2_TLS_IE16 = 31 +const R_NIOS2_TLS_LDM16 = 29 +const R_NIOS2_TLS_LDO16 = 30 +const R_NIOS2_TLS_LE16 = 32 +const R_NIOS2_TLS_TPREL = 35 +const R_NIOS2_U16 = 2 +const R_NIOS2_UJMP = 18 +const R_OR1K_16 = 2 +const R_OR1K_16_PCREL = 10 +const R_OR1K_32 = 1 +const R_OR1K_32_PCREL = 9 +const R_OR1K_8 = 3 +const R_OR1K_8_PCREL = 11 +const R_OR1K_COPY = 18 +const R_OR1K_GLOB_DAT = 19 +const R_OR1K_GNU_VTENTRY = 7 +const R_OR1K_GNU_VTINHERIT = 8 +const R_OR1K_GOT16 = 14 +const R_OR1K_GOTOFF_HI16 = 16 +const R_OR1K_GOTOFF_LO16 = 17 +const R_OR1K_GOTPC_HI16 = 12 +const R_OR1K_GOTPC_LO16 = 13 +const R_OR1K_HI_16_IN_INSN = 5 +const R_OR1K_INSN_REL_26 = 6 +const R_OR1K_JMP_SLOT = 20 +const R_OR1K_LO_16_IN_INSN = 4 +const R_OR1K_NONE = 0 +const R_OR1K_PLT26 = 15 +const R_OR1K_RELATIVE = 21 +const R_OR1K_TLS_DTPMOD = 34 +const R_OR1K_TLS_DTPOFF = 33 +const R_OR1K_TLS_GD_HI16 = 22 +const R_OR1K_TLS_GD_LO16 = 23 +const R_OR1K_TLS_IE_HI16 = 28 +const R_OR1K_TLS_IE_LO16 = 29 +const R_OR1K_TLS_LDM_HI16 = 24 +const R_OR1K_TLS_LDM_LO16 = 25 +const R_OR1K_TLS_LDO_HI16 = 26 +const R_OR1K_TLS_LDO_LO16 = 27 +const R_OR1K_TLS_LE_HI16 = 30 +const R_OR1K_TLS_LE_LO16 = 31 +const R_OR1K_TLS_TPOFF = 32 +const R_PARISC_COPY = 128 +const R_PARISC_DIR14DR = 84 +const R_PARISC_DIR14R = 6 +const R_PARISC_DIR14WR = 83 +const R_PARISC_DIR16DF = 87 +const R_PARISC_DIR16F = 85 +const R_PARISC_DIR16WF = 86 +const R_PARISC_DIR17F = 4 +const R_PARISC_DIR17R = 3 +const R_PARISC_DIR21L = 2 +const R_PARISC_DIR32 = 1 +const R_PARISC_DIR64 = 80 +const R_PARISC_DPREL14R = 22 +const R_PARISC_DPREL21L = 18 +const R_PARISC_EPLT = 130 +const R_PARISC_FPTR64 = 64 +const R_PARISC_GNU_VTENTRY = 232 +const R_PARISC_GNU_VTINHERIT = 233 +const R_PARISC_GPREL14DR = 92 +const R_PARISC_GPREL14R = 30 +const R_PARISC_GPREL14WR = 91 +const R_PARISC_GPREL16DF = 95 +const R_PARISC_GPREL16F = 93 +const R_PARISC_GPREL16WF = 94 +const R_PARISC_GPREL21L = 26 +const R_PARISC_GPREL64 = 88 +const R_PARISC_HIRESERVE = 255 +const R_PARISC_IPLT = 129 +const R_PARISC_LORESERVE = 128 +const R_PARISC_LTOFF14DR = 100 +const R_PARISC_LTOFF14R = 38 +const R_PARISC_LTOFF14WR = 99 +const R_PARISC_LTOFF16DF = 103 +const R_PARISC_LTOFF16F = 101 +const R_PARISC_LTOFF16WF = 102 +const R_PARISC_LTOFF21L = 34 +const R_PARISC_LTOFF64 = 96 +const R_PARISC_LTOFF_FPTR14DR = 124 +const R_PARISC_LTOFF_FPTR14R = 62 +const R_PARISC_LTOFF_FPTR14WR = 123 +const R_PARISC_LTOFF_FPTR16DF = 127 +const R_PARISC_LTOFF_FPTR16F = 125 +const R_PARISC_LTOFF_FPTR16WF = 126 +const R_PARISC_LTOFF_FPTR21L = 58 +const R_PARISC_LTOFF_FPTR32 = 57 +const R_PARISC_LTOFF_FPTR64 = 120 +const R_PARISC_LTOFF_TP14DR = 228 +const R_PARISC_LTOFF_TP14F = 167 +const R_PARISC_LTOFF_TP14R = 166 +const R_PARISC_LTOFF_TP14WR = 227 +const R_PARISC_LTOFF_TP16DF = 231 +const R_PARISC_LTOFF_TP16F = 229 +const R_PARISC_LTOFF_TP16WF = 230 +const R_PARISC_LTOFF_TP21L = 162 +const R_PARISC_LTOFF_TP64 = 224 +const R_PARISC_NONE = 0 +const R_PARISC_PCREL14DR = 76 +const R_PARISC_PCREL14R = 14 +const R_PARISC_PCREL14WR = 75 +const R_PARISC_PCREL16DF = 79 +const R_PARISC_PCREL16F = 77 +const R_PARISC_PCREL16WF = 78 +const R_PARISC_PCREL17F = 12 +const R_PARISC_PCREL17R = 11 +const R_PARISC_PCREL21L = 10 +const R_PARISC_PCREL22F = 74 +const R_PARISC_PCREL32 = 9 +const R_PARISC_PCREL64 = 72 +const R_PARISC_PLABEL14R = 70 +const R_PARISC_PLABEL21L = 66 +const R_PARISC_PLABEL32 = 65 +const R_PARISC_PLTOFF14DR = 116 +const R_PARISC_PLTOFF14R = 54 +const R_PARISC_PLTOFF14WR = 115 +const R_PARISC_PLTOFF16DF = 119 +const R_PARISC_PLTOFF16F = 117 +const R_PARISC_PLTOFF16WF = 118 +const R_PARISC_PLTOFF21L = 50 +const R_PARISC_SECREL32 = 41 +const R_PARISC_SECREL64 = 104 +const R_PARISC_SEGBASE = 48 +const R_PARISC_SEGREL32 = 49 +const R_PARISC_SEGREL64 = 112 +const R_PARISC_TLS_DTPMOD32 = 242 +const R_PARISC_TLS_DTPMOD64 = 243 +const R_PARISC_TLS_DTPOFF32 = 244 +const R_PARISC_TLS_DTPOFF64 = 245 +const R_PARISC_TLS_GD14R = 235 +const R_PARISC_TLS_GD21L = 234 +const R_PARISC_TLS_GDCALL = 236 +const R_PARISC_TLS_IE14R = 166 +const R_PARISC_TLS_IE21L = 162 +const R_PARISC_TLS_LDM14R = 238 +const R_PARISC_TLS_LDM21L = 237 +const R_PARISC_TLS_LDMCALL = 239 +const R_PARISC_TLS_LDO14R = 241 +const R_PARISC_TLS_LDO21L = 240 +const R_PARISC_TLS_LE14R = 158 +const R_PARISC_TLS_LE21L = 154 +const R_PARISC_TLS_TPREL32 = 153 +const R_PARISC_TLS_TPREL64 = 216 +const R_PARISC_TPREL14DR = 220 +const R_PARISC_TPREL14R = 158 +const R_PARISC_TPREL14WR = 219 +const R_PARISC_TPREL16DF = 223 +const R_PARISC_TPREL16F = 221 +const R_PARISC_TPREL16WF = 222 +const R_PARISC_TPREL21L = 154 +const R_PARISC_TPREL32 = 153 +const R_PARISC_TPREL64 = 216 +const R_PPC64_ADDR14 = 7 +const R_PPC64_ADDR14_BRNTAKEN = 9 +const R_PPC64_ADDR14_BRTAKEN = 8 +const R_PPC64_ADDR16 = 3 +const R_PPC64_ADDR16_DS = 56 +const R_PPC64_ADDR16_HA = 6 +const R_PPC64_ADDR16_HI = 5 +const R_PPC64_ADDR16_HIGH = 110 +const R_PPC64_ADDR16_HIGHA = 111 +const R_PPC64_ADDR16_HIGHER = 39 +const R_PPC64_ADDR16_HIGHERA = 40 +const R_PPC64_ADDR16_HIGHEST = 41 +const R_PPC64_ADDR16_HIGHESTA = 42 +const R_PPC64_ADDR16_LO = 4 +const R_PPC64_ADDR16_LO_DS = 57 +const R_PPC64_ADDR24 = 2 +const R_PPC64_ADDR30 = 37 +const R_PPC64_ADDR32 = 1 +const R_PPC64_ADDR64 = 38 +const R_PPC64_COPY = 19 +const R_PPC64_DTPMOD64 = 68 +const R_PPC64_DTPREL16 = 74 +const R_PPC64_DTPREL16_DS = 101 +const R_PPC64_DTPREL16_HA = 77 +const R_PPC64_DTPREL16_HI = 76 +const R_PPC64_DTPREL16_HIGH = 114 +const R_PPC64_DTPREL16_HIGHA = 115 +const R_PPC64_DTPREL16_HIGHER = 103 +const R_PPC64_DTPREL16_HIGHERA = 104 +const R_PPC64_DTPREL16_HIGHEST = 105 +const R_PPC64_DTPREL16_HIGHESTA = 106 +const R_PPC64_DTPREL16_LO = 75 +const R_PPC64_DTPREL16_LO_DS = 102 +const R_PPC64_DTPREL64 = 78 +const R_PPC64_GLOB_DAT = 20 +const R_PPC64_GOT16 = 14 +const R_PPC64_GOT16_DS = 58 +const R_PPC64_GOT16_HA = 17 +const R_PPC64_GOT16_HI = 16 +const R_PPC64_GOT16_LO = 15 +const R_PPC64_GOT16_LO_DS = 59 +const R_PPC64_GOT_DTPREL16_DS = 91 +const R_PPC64_GOT_DTPREL16_HA = 94 +const R_PPC64_GOT_DTPREL16_HI = 93 +const R_PPC64_GOT_DTPREL16_LO_DS = 92 +const R_PPC64_GOT_TLSGD16 = 79 +const R_PPC64_GOT_TLSGD16_HA = 82 +const R_PPC64_GOT_TLSGD16_HI = 81 +const R_PPC64_GOT_TLSGD16_LO = 80 +const R_PPC64_GOT_TLSLD16 = 83 +const R_PPC64_GOT_TLSLD16_HA = 86 +const R_PPC64_GOT_TLSLD16_HI = 85 +const R_PPC64_GOT_TLSLD16_LO = 84 +const R_PPC64_GOT_TPREL16_DS = 87 +const R_PPC64_GOT_TPREL16_HA = 90 +const R_PPC64_GOT_TPREL16_HI = 89 +const R_PPC64_GOT_TPREL16_LO_DS = 88 +const R_PPC64_IRELATIVE = 248 +const R_PPC64_JMP_IREL = 247 +const R_PPC64_JMP_SLOT = 21 +const R_PPC64_NONE = 0 +const R_PPC64_PLT16_HA = 31 +const R_PPC64_PLT16_HI = 30 +const R_PPC64_PLT16_LO = 29 +const R_PPC64_PLT16_LO_DS = 60 +const R_PPC64_PLT32 = 27 +const R_PPC64_PLT64 = 45 +const R_PPC64_PLTGOT16 = 52 +const R_PPC64_PLTGOT16_DS = 65 +const R_PPC64_PLTGOT16_HA = 55 +const R_PPC64_PLTGOT16_HI = 54 +const R_PPC64_PLTGOT16_LO = 53 +const R_PPC64_PLTGOT16_LO_DS = 66 +const R_PPC64_PLTREL32 = 28 +const R_PPC64_PLTREL64 = 46 +const R_PPC64_REL14 = 11 +const R_PPC64_REL14_BRNTAKEN = 13 +const R_PPC64_REL14_BRTAKEN = 12 +const R_PPC64_REL16 = 249 +const R_PPC64_REL16_HA = 252 +const R_PPC64_REL16_HI = 251 +const R_PPC64_REL16_LO = 250 +const R_PPC64_REL24 = 10 +const R_PPC64_REL32 = 26 +const R_PPC64_REL64 = 44 +const R_PPC64_RELATIVE = 22 +const R_PPC64_SECTOFF = 33 +const R_PPC64_SECTOFF_DS = 61 +const R_PPC64_SECTOFF_HA = 36 +const R_PPC64_SECTOFF_HI = 35 +const R_PPC64_SECTOFF_LO = 34 +const R_PPC64_SECTOFF_LO_DS = 62 +const R_PPC64_TLS = 67 +const R_PPC64_TLSGD = 107 +const R_PPC64_TLSLD = 108 +const R_PPC64_TOC = 51 +const R_PPC64_TOC16 = 47 +const R_PPC64_TOC16_DS = 63 +const R_PPC64_TOC16_HA = 50 +const R_PPC64_TOC16_HI = 49 +const R_PPC64_TOC16_LO = 48 +const R_PPC64_TOC16_LO_DS = 64 +const R_PPC64_TOCSAVE = 109 +const R_PPC64_TPREL16 = 69 +const R_PPC64_TPREL16_DS = 95 +const R_PPC64_TPREL16_HA = 72 +const R_PPC64_TPREL16_HI = 71 +const R_PPC64_TPREL16_HIGH = 112 +const R_PPC64_TPREL16_HIGHA = 113 +const R_PPC64_TPREL16_HIGHER = 97 +const R_PPC64_TPREL16_HIGHERA = 98 +const R_PPC64_TPREL16_HIGHEST = 99 +const R_PPC64_TPREL16_HIGHESTA = 100 +const R_PPC64_TPREL16_LO = 70 +const R_PPC64_TPREL16_LO_DS = 96 +const R_PPC64_TPREL64 = 73 +const R_PPC64_UADDR16 = 25 +const R_PPC64_UADDR32 = 24 +const R_PPC64_UADDR64 = 43 +const R_PPC_ADDR14 = 7 +const R_PPC_ADDR14_BRNTAKEN = 9 +const R_PPC_ADDR14_BRTAKEN = 8 +const R_PPC_ADDR16 = 3 +const R_PPC_ADDR16_HA = 6 +const R_PPC_ADDR16_HI = 5 +const R_PPC_ADDR16_LO = 4 +const R_PPC_ADDR24 = 2 +const R_PPC_ADDR32 = 1 +const R_PPC_COPY = 19 +const R_PPC_DIAB_RELSDA_HA = 185 +const R_PPC_DIAB_RELSDA_HI = 184 +const R_PPC_DIAB_RELSDA_LO = 183 +const R_PPC_DIAB_SDA21_HA = 182 +const R_PPC_DIAB_SDA21_HI = 181 +const R_PPC_DIAB_SDA21_LO = 180 +const R_PPC_DTPMOD32 = 68 +const R_PPC_DTPREL16 = 74 +const R_PPC_DTPREL16_HA = 77 +const R_PPC_DTPREL16_HI = 76 +const R_PPC_DTPREL16_LO = 75 +const R_PPC_DTPREL32 = 78 +const R_PPC_EMB_BIT_FLD = 115 +const R_PPC_EMB_MRKREF = 110 +const R_PPC_EMB_NADDR16 = 102 +const R_PPC_EMB_NADDR16_HA = 105 +const R_PPC_EMB_NADDR16_HI = 104 +const R_PPC_EMB_NADDR16_LO = 103 +const R_PPC_EMB_NADDR32 = 101 +const R_PPC_EMB_RELSDA = 116 +const R_PPC_EMB_RELSEC16 = 111 +const R_PPC_EMB_RELST_HA = 114 +const R_PPC_EMB_RELST_HI = 113 +const R_PPC_EMB_RELST_LO = 112 +const R_PPC_EMB_SDA21 = 109 +const R_PPC_EMB_SDA2I16 = 107 +const R_PPC_EMB_SDA2REL = 108 +const R_PPC_EMB_SDAI16 = 106 +const R_PPC_GLOB_DAT = 20 +const R_PPC_GOT16 = 14 +const R_PPC_GOT16_HA = 17 +const R_PPC_GOT16_HI = 16 +const R_PPC_GOT16_LO = 15 +const R_PPC_GOT_DTPREL16 = 91 +const R_PPC_GOT_DTPREL16_HA = 94 +const R_PPC_GOT_DTPREL16_HI = 93 +const R_PPC_GOT_DTPREL16_LO = 92 +const R_PPC_GOT_TLSGD16 = 79 +const R_PPC_GOT_TLSGD16_HA = 82 +const R_PPC_GOT_TLSGD16_HI = 81 +const R_PPC_GOT_TLSGD16_LO = 80 +const R_PPC_GOT_TLSLD16 = 83 +const R_PPC_GOT_TLSLD16_HA = 86 +const R_PPC_GOT_TLSLD16_HI = 85 +const R_PPC_GOT_TLSLD16_LO = 84 +const R_PPC_GOT_TPREL16 = 87 +const R_PPC_GOT_TPREL16_HA = 90 +const R_PPC_GOT_TPREL16_HI = 89 +const R_PPC_GOT_TPREL16_LO = 88 +const R_PPC_IRELATIVE = 248 +const R_PPC_JMP_SLOT = 21 +const R_PPC_LOCAL24PC = 23 +const R_PPC_NONE = 0 +const R_PPC_PLT16_HA = 31 +const R_PPC_PLT16_HI = 30 +const R_PPC_PLT16_LO = 29 +const R_PPC_PLT32 = 27 +const R_PPC_PLTREL24 = 18 +const R_PPC_PLTREL32 = 28 +const R_PPC_REL14 = 11 +const R_PPC_REL14_BRNTAKEN = 13 +const R_PPC_REL14_BRTAKEN = 12 +const R_PPC_REL16 = 249 +const R_PPC_REL16_HA = 252 +const R_PPC_REL16_HI = 251 +const R_PPC_REL16_LO = 250 +const R_PPC_REL24 = 10 +const R_PPC_REL32 = 26 +const R_PPC_RELATIVE = 22 +const R_PPC_SDAREL16 = 32 +const R_PPC_SECTOFF = 33 +const R_PPC_SECTOFF_HA = 36 +const R_PPC_SECTOFF_HI = 35 +const R_PPC_SECTOFF_LO = 34 +const R_PPC_TLS = 67 +const R_PPC_TLSGD = 95 +const R_PPC_TLSLD = 96 +const R_PPC_TOC16 = 255 +const R_PPC_TPREL16 = 69 +const R_PPC_TPREL16_HA = 72 +const R_PPC_TPREL16_HI = 71 +const R_PPC_TPREL16_LO = 70 +const R_PPC_TPREL32 = 73 +const R_PPC_UADDR16 = 25 +const R_PPC_UADDR32 = 24 +const R_RISCV_32 = 1 +const R_RISCV_32_PCREL = 57 +const R_RISCV_64 = 2 +const R_RISCV_ADD16 = 34 +const R_RISCV_ADD32 = 35 +const R_RISCV_ADD64 = 36 +const R_RISCV_ADD8 = 33 +const R_RISCV_ALIGN = 43 +const R_RISCV_BRANCH = 16 +const R_RISCV_CALL = 18 +const R_RISCV_CALL_PLT = 19 +const R_RISCV_COPY = 4 +const R_RISCV_GOT32_PCREL = 41 +const R_RISCV_GOT_HI20 = 20 +const R_RISCV_HI20 = 26 +const R_RISCV_IRELATIVE = 58 +const R_RISCV_JAL = 17 +const R_RISCV_JUMP_SLOT = 5 +const R_RISCV_LO12_I = 27 +const R_RISCV_LO12_S = 28 +const R_RISCV_NONE = 0 +const R_RISCV_PCREL_HI20 = 23 +const R_RISCV_PCREL_LO12_I = 24 +const R_RISCV_PCREL_LO12_S = 25 +const R_RISCV_PLT32 = 59 +const R_RISCV_RELATIVE = 3 +const R_RISCV_RELAX = 51 +const R_RISCV_RVC_BRANCH = 44 +const R_RISCV_RVC_JUMP = 45 +const R_RISCV_RVC_LUI = 46 +const R_RISCV_SET16 = 55 +const R_RISCV_SET32 = 56 +const R_RISCV_SET6 = 53 +const R_RISCV_SET8 = 54 +const R_RISCV_SET_ULEB128 = 60 +const R_RISCV_SUB16 = 38 +const R_RISCV_SUB32 = 39 +const R_RISCV_SUB6 = 52 +const R_RISCV_SUB64 = 40 +const R_RISCV_SUB8 = 37 +const R_RISCV_SUB_ULEB128 = 61 +const R_RISCV_TLSDESC = 12 +const R_RISCV_TLSDESC_ADD_LO12 = 64 +const R_RISCV_TLSDESC_CALL = 65 +const R_RISCV_TLSDESC_HI20 = 62 +const R_RISCV_TLSDESC_LOAD_LO12 = 63 +const R_RISCV_TLS_DTPMOD32 = 6 +const R_RISCV_TLS_DTPMOD64 = 7 +const R_RISCV_TLS_DTPREL32 = 8 +const R_RISCV_TLS_DTPREL64 = 9 +const R_RISCV_TLS_GD_HI20 = 22 +const R_RISCV_TLS_GOT_HI20 = 21 +const R_RISCV_TLS_TPREL32 = 10 +const R_RISCV_TLS_TPREL64 = 11 +const R_RISCV_TPREL_ADD = 32 +const R_RISCV_TPREL_HI20 = 29 +const R_RISCV_TPREL_LO12_I = 30 +const R_RISCV_TPREL_LO12_S = 31 +const R_SH_ALIGN = 29 +const R_SH_CODE = 30 +const R_SH_COPY = 162 +const R_SH_COUNT = 28 +const R_SH_DATA = 31 +const R_SH_DIR32 = 1 +const R_SH_DIR8BP = 7 +const R_SH_DIR8L = 9 +const R_SH_DIR8W = 8 +const R_SH_DIR8WPL = 5 +const R_SH_DIR8WPN = 3 +const R_SH_DIR8WPZ = 6 +const R_SH_FUNCDESC = 207 +const R_SH_FUNCDESC_VALUE = 208 +const R_SH_GLOB_DAT = 163 +const R_SH_GNU_VTENTRY = 35 +const R_SH_GNU_VTINHERIT = 34 +const R_SH_GOT20 = 201 +const R_SH_GOT32 = 160 +const R_SH_GOTFUNCDESC = 203 +const R_SH_GOTFUNCDEST20 = 204 +const R_SH_GOTOFF = 166 +const R_SH_GOTOFF20 = 202 +const R_SH_GOTOFFFUNCDESC = 205 +const R_SH_GOTOFFFUNCDEST20 = 206 +const R_SH_GOTPC = 167 +const R_SH_IND12W = 4 +const R_SH_JMP_SLOT = 164 +const R_SH_LABEL = 32 +const R_SH_NONE = 0 +const R_SH_NUM = 256 +const R_SH_PLT32 = 161 +const R_SH_REL32 = 2 +const R_SH_RELATIVE = 165 +const R_SH_SWITCH16 = 25 +const R_SH_SWITCH32 = 26 +const R_SH_SWITCH8 = 33 +const R_SH_TLS_DTPMOD32 = 149 +const R_SH_TLS_DTPOFF32 = 150 +const R_SH_TLS_GD_32 = 144 +const R_SH_TLS_IE_32 = 147 +const R_SH_TLS_LDO_32 = 146 +const R_SH_TLS_LD_32 = 145 +const R_SH_TLS_LE_32 = 148 +const R_SH_TLS_TPOFF32 = 151 +const R_SH_USES = 27 +const R_SPARC_10 = 30 +const R_SPARC_11 = 31 +const R_SPARC_13 = 11 +const R_SPARC_16 = 2 +const R_SPARC_22 = 10 +const R_SPARC_32 = 3 +const R_SPARC_5 = 44 +const R_SPARC_6 = 45 +const R_SPARC_64 = 32 +const R_SPARC_7 = 43 +const R_SPARC_8 = 1 +const R_SPARC_COPY = 19 +const R_SPARC_DISP16 = 5 +const R_SPARC_DISP32 = 6 +const R_SPARC_DISP64 = 46 +const R_SPARC_DISP8 = 4 +const R_SPARC_GLOB_DAT = 20 +const R_SPARC_GLOB_JMP = 42 +const R_SPARC_GNU_VTENTRY = 251 +const R_SPARC_GNU_VTINHERIT = 250 +const R_SPARC_GOT10 = 13 +const R_SPARC_GOT13 = 14 +const R_SPARC_GOT22 = 15 +const R_SPARC_GOTDATA_HIX22 = 80 +const R_SPARC_GOTDATA_LOX10 = 81 +const R_SPARC_GOTDATA_OP = 84 +const R_SPARC_GOTDATA_OP_HIX22 = 82 +const R_SPARC_GOTDATA_OP_LOX10 = 83 +const R_SPARC_H34 = 85 +const R_SPARC_H44 = 50 +const R_SPARC_HH22 = 34 +const R_SPARC_HI22 = 9 +const R_SPARC_HIPLT22 = 25 +const R_SPARC_HIX22 = 48 +const R_SPARC_HM10 = 35 +const R_SPARC_JMP_SLOT = 21 +const R_SPARC_L44 = 52 +const R_SPARC_LM22 = 36 +const R_SPARC_LO10 = 12 +const R_SPARC_LOPLT10 = 26 +const R_SPARC_LOX10 = 49 +const R_SPARC_M44 = 51 +const R_SPARC_NONE = 0 +const R_SPARC_NUM = 253 +const R_SPARC_OLO10 = 33 +const R_SPARC_PC10 = 16 +const R_SPARC_PC22 = 17 +const R_SPARC_PCPLT10 = 29 +const R_SPARC_PCPLT22 = 28 +const R_SPARC_PCPLT32 = 27 +const R_SPARC_PC_HH22 = 37 +const R_SPARC_PC_HM10 = 38 +const R_SPARC_PC_LM22 = 39 +const R_SPARC_PLT32 = 24 +const R_SPARC_PLT64 = 47 +const R_SPARC_REGISTER = 53 +const R_SPARC_RELATIVE = 22 +const R_SPARC_REV32 = 252 +const R_SPARC_SIZE32 = 86 +const R_SPARC_SIZE64 = 87 +const R_SPARC_TLS_DTPMOD32 = 74 +const R_SPARC_TLS_DTPMOD64 = 75 +const R_SPARC_TLS_DTPOFF32 = 76 +const R_SPARC_TLS_DTPOFF64 = 77 +const R_SPARC_TLS_GD_ADD = 58 +const R_SPARC_TLS_GD_CALL = 59 +const R_SPARC_TLS_GD_HI22 = 56 +const R_SPARC_TLS_GD_LO10 = 57 +const R_SPARC_TLS_IE_ADD = 71 +const R_SPARC_TLS_IE_HI22 = 67 +const R_SPARC_TLS_IE_LD = 69 +const R_SPARC_TLS_IE_LDX = 70 +const R_SPARC_TLS_IE_LO10 = 68 +const R_SPARC_TLS_LDM_ADD = 62 +const R_SPARC_TLS_LDM_CALL = 63 +const R_SPARC_TLS_LDM_HI22 = 60 +const R_SPARC_TLS_LDM_LO10 = 61 +const R_SPARC_TLS_LDO_ADD = 66 +const R_SPARC_TLS_LDO_HIX22 = 64 +const R_SPARC_TLS_LDO_LOX10 = 65 +const R_SPARC_TLS_LE_HIX22 = 72 +const R_SPARC_TLS_LE_LOX10 = 73 +const R_SPARC_TLS_TPOFF32 = 78 +const R_SPARC_TLS_TPOFF64 = 79 +const R_SPARC_UA16 = 55 +const R_SPARC_UA32 = 23 +const R_SPARC_UA64 = 54 +const R_SPARC_WDISP16 = 40 +const R_SPARC_WDISP19 = 41 +const R_SPARC_WDISP22 = 8 +const R_SPARC_WDISP30 = 7 +const R_SPARC_WPLT30 = 18 +const R_X86_64_16 = 12 +const R_X86_64_32 = 10 +const R_X86_64_32S = 11 +const R_X86_64_64 = 1 +const R_X86_64_8 = 14 +const R_X86_64_COPY = 5 +const R_X86_64_DTPMOD64 = 16 +const R_X86_64_DTPOFF32 = 21 +const R_X86_64_DTPOFF64 = 17 +const R_X86_64_GLOB_DAT = 6 +const R_X86_64_GOT32 = 3 +const R_X86_64_GOT64 = 27 +const R_X86_64_GOTOFF64 = 25 +const R_X86_64_GOTPC32 = 26 +const R_X86_64_GOTPC32_TLSDESC = 34 +const R_X86_64_GOTPC64 = 29 +const R_X86_64_GOTPCREL = 9 +const R_X86_64_GOTPCREL64 = 28 +const R_X86_64_GOTPCRELX = 41 +const R_X86_64_GOTPLT64 = 30 +const R_X86_64_GOTTPOFF = 22 +const R_X86_64_IRELATIVE = 37 +const R_X86_64_JUMP_SLOT = 7 +const R_X86_64_NONE = 0 +const R_X86_64_NUM = 43 +const R_X86_64_PC16 = 13 +const R_X86_64_PC32 = 2 +const R_X86_64_PC64 = 24 +const R_X86_64_PC8 = 15 +const R_X86_64_PLT32 = 4 +const R_X86_64_PLTOFF64 = 31 +const R_X86_64_RELATIVE = 8 +const R_X86_64_RELATIVE64 = 38 +const R_X86_64_REX_GOTPCRELX = 42 +const R_X86_64_SIZE32 = 32 +const R_X86_64_SIZE64 = 33 +const R_X86_64_TLSDESC = 36 +const R_X86_64_TLSDESC_CALL = 35 +const R_X86_64_TLSGD = 19 +const R_X86_64_TLSLD = 20 +const R_X86_64_TPOFF32 = 23 +const R_X86_64_TPOFF64 = 18 +const SA_EXPOSE_TAGBITS = 2048 +const SA_NOCLDSTOP = 1 +const SA_NOCLDWAIT = 2 +const SA_NODEFER = 1073741824 +const SA_ONSTACK = 134217728 +const SA_RESETHAND = 2147483648 +const SA_RESTART = 268435456 +const SA_RESTORER = 67108864 +const SA_SIGINFO = 4 +const SA_UNSUPPORTED = 1024 +const SCM_TIMESTAMPING_OLD = 37 +const SCM_TIMESTAMPNS_OLD = 35 +const SCM_TIMESTAMP_OLD = 29 +const SEGV_ACCERR = 2 +const SEGV_BNDERR = 3 +const SEGV_MAPERR = 1 +const SEGV_MTEAERR = 8 +const SEGV_MTESERR = 9 +const SEGV_PKUERR = 4 +const SELFMAG = 4 +const SHF_ALLOC = 2 +const SHF_ALPHA_GPREL = 268435456 +const SHF_ARM_COMDEF = 2147483648 +const SHF_ARM_ENTRYSECT = 268435456 +const SHF_COMPRESSED = 2048 +const SHF_EXCLUDE = 2147483648 +const SHF_EXECINSTR = 4 +const SHF_GROUP = 512 +const SHF_IA_64_NORECOV = 536870912 +const SHF_IA_64_SHORT = 268435456 +const SHF_INFO_LINK = 64 +const SHF_LINK_ORDER = 128 +const SHF_MASKOS = 267386880 +const SHF_MASKPROC = 4026531840 +const SHF_MERGE = 16 +const SHF_MIPS_ADDR = 1073741824 +const SHF_MIPS_GPREL = 268435456 +const SHF_MIPS_LOCAL = 67108864 +const SHF_MIPS_MERGE = 536870912 +const SHF_MIPS_NAMES = 33554432 +const SHF_MIPS_NODUPE = 16777216 +const SHF_MIPS_NOSTRIP = 134217728 +const SHF_MIPS_STRINGS = 2147483648 +const SHF_ORDERED = 1073741824 +const SHF_OS_NONCONFORMING = 256 +const SHF_PARISC_HUGE = 1073741824 +const SHF_PARISC_SBP = 2147483648 +const SHF_PARISC_SHORT = 536870912 +const SHF_STRINGS = 32 +const SHF_TLS = 1024 +const SHF_WRITE = 1 +const SHN_ABS = 65521 +const SHN_AFTER = 65281 +const SHN_BEFORE = 65280 +const SHN_COMMON = 65522 +const SHN_HIOS = 65343 +const SHN_HIPROC = 65311 +const SHN_HIRESERVE = 65535 +const SHN_LOOS = 65312 +const SHN_LOPROC = 65280 +const SHN_LORESERVE = 65280 +const SHN_MIPS_ACOMMON = 65280 +const SHN_MIPS_DATA = 65282 +const SHN_MIPS_SCOMMON = 65283 +const SHN_MIPS_SUNDEFINED = 65284 +const SHN_MIPS_TEXT = 65281 +const SHN_PARISC_ANSI_COMMON = 65280 +const SHN_PARISC_HUGE_COMMON = 65281 +const SHN_UNDEF = 0 +const SHN_XINDEX = 65535 +const SHT_ALPHA_DEBUG = 1879048193 +const SHT_ALPHA_REGINFO = 1879048194 +const SHT_ARM_ATTRIBUTES = 1879048195 +const SHT_ARM_EXIDX = 1879048193 +const SHT_ARM_PREEMPTMAP = 1879048194 +const SHT_CHECKSUM = 1879048184 +const SHT_DYNAMIC = 6 +const SHT_DYNSYM = 11 +const SHT_FINI_ARRAY = 15 +const SHT_GNU_ATTRIBUTES = 1879048181 +const SHT_GNU_HASH = 1879048182 +const SHT_GNU_LIBLIST = 1879048183 +const SHT_GNU_verdef = 1879048189 +const SHT_GNU_verneed = 1879048190 +const SHT_GNU_versym = 1879048191 +const SHT_GROUP = 17 +const SHT_HASH = 5 +const SHT_HIOS = 1879048191 +const SHT_HIPROC = 2147483647 +const SHT_HISUNW = 1879048191 +const SHT_HIUSER = 2415919103 +const SHT_IA_64_EXT = 1879048192 +const SHT_IA_64_UNWIND = 1879048193 +const SHT_INIT_ARRAY = 14 +const SHT_LOOS = 1610612736 +const SHT_LOPROC = 1879048192 +const SHT_LOSUNW = 1879048186 +const SHT_LOUSER = 2147483648 +const SHT_MIPS_AUXSYM = 1879048214 +const SHT_MIPS_CONFLICT = 1879048194 +const SHT_MIPS_CONTENT = 1879048204 +const SHT_MIPS_DEBUG = 1879048197 +const SHT_MIPS_DELTACLASS = 1879048221 +const SHT_MIPS_DELTADECL = 1879048223 +const SHT_MIPS_DELTAINST = 1879048220 +const SHT_MIPS_DELTASYM = 1879048219 +const SHT_MIPS_DENSE = 1879048211 +const SHT_MIPS_DWARF = 1879048222 +const SHT_MIPS_EH_REGION = 1879048231 +const SHT_MIPS_EVENTS = 1879048225 +const SHT_MIPS_EXTSYM = 1879048210 +const SHT_MIPS_FDESC = 1879048209 +const SHT_MIPS_GPTAB = 1879048195 +const SHT_MIPS_IFACE = 1879048203 +const SHT_MIPS_LIBLIST = 1879048192 +const SHT_MIPS_LINE = 1879048217 +const SHT_MIPS_LOCSTR = 1879048216 +const SHT_MIPS_LOCSYM = 1879048213 +const SHT_MIPS_MSYM = 1879048193 +const SHT_MIPS_OPTIONS = 1879048205 +const SHT_MIPS_OPTSYM = 1879048215 +const SHT_MIPS_PACKAGE = 1879048199 +const SHT_MIPS_PACKSYM = 1879048200 +const SHT_MIPS_PDESC = 1879048212 +const SHT_MIPS_PDR_EXCEPTION = 1879048233 +const SHT_MIPS_PIXIE = 1879048227 +const SHT_MIPS_REGINFO = 1879048198 +const SHT_MIPS_RELD = 1879048201 +const SHT_MIPS_RFDESC = 1879048218 +const SHT_MIPS_SHDR = 1879048208 +const SHT_MIPS_SYMBOL_LIB = 1879048224 +const SHT_MIPS_TRANSLATE = 1879048226 +const SHT_MIPS_UCODE = 1879048196 +const SHT_MIPS_WHIRL = 1879048230 +const SHT_MIPS_XLATE = 1879048228 +const SHT_MIPS_XLATE_DEBUG = 1879048229 +const SHT_MIPS_XLATE_OLD = 1879048232 +const SHT_NOBITS = 8 +const SHT_NOTE = 7 +const SHT_NULL = 0 +const SHT_NUM = 20 +const SHT_PARISC_DOC = 1879048194 +const SHT_PARISC_EXT = 1879048192 +const SHT_PARISC_UNWIND = 1879048193 +const SHT_PREINIT_ARRAY = 16 +const SHT_PROGBITS = 1 +const SHT_REL = 9 +const SHT_RELA = 4 +const SHT_RELR = 19 +const SHT_SHLIB = 10 +const SHT_STRTAB = 3 +const SHT_SUNW_COMDAT = 1879048187 +const SHT_SUNW_move = 1879048186 +const SHT_SUNW_syminfo = 1879048188 +const SHT_SYMTAB = 2 +const SHT_SYMTAB_SHNDX = 18 +const SIGABRT = 6 +const SIGALRM = 14 +const SIGBUS = 7 +const SIGCHLD = 17 +const SIGCONT = 18 +const SIGEV_NONE = 1 +const SIGEV_SIGNAL = 0 +const SIGEV_THREAD = 2 +const SIGEV_THREAD_ID = 4 +const SIGFPE = 8 +const SIGHUP = 1 +const SIGILL = 4 +const SIGINT = 2 +const SIGIO = 29 +const SIGIOT = 6 +const SIGKILL = 9 +const SIGPIPE = 13 +const SIGPOLL = 29 +const SIGPROF = 27 +const SIGPWR = 30 +const SIGQUIT = 3 +const SIGRTMAX = 0 +const SIGRTMIN = 0 +const SIGSEGV = 11 +const SIGSTKFLT = 16 +const SIGSTKSZ = 12288 +const SIGSTOP = 19 +const SIGSYS = 31 +const SIGTERM = 15 +const SIGTRAP = 5 +const SIGTSTP = 20 +const SIGTTIN = 21 +const SIGTTOU = 22 +const SIGUNUSED = 31 +const SIGURG = 23 +const SIGUSR1 = 10 +const SIGUSR2 = 12 +const SIGVTALRM = 26 +const SIGWINCH = 28 +const SIGXCPU = 24 +const SIGXFSZ = 25 +const SIG_BLOCK = 0 +const SIG_SETMASK = 2 +const SIG_UNBLOCK = 1 +const SIOCGSTAMPNS_OLD = 35079 +const SIOCGSTAMP_OLD = 35078 +const SI_ASYNCIO = -4 +const SI_ASYNCNL = -60 +const SI_KERNEL = 128 +const SI_MESGQ = -3 +const SI_QUEUE = -1 +const SI_SIGIO = -5 +const SI_TIMER = -2 +const SI_TKILL = -6 +const SI_USER = 0 +const SO_RCVTIMEO_OLD = 20 +const SO_SNDTIMEO_OLD = 21 +const SO_TIMESTAMPING_OLD = 37 +const SO_TIMESTAMPNS_OLD = 35 +const SO_TIMESTAMP_OLD = 29 +const SS_AUTODISARM = 2147483648 +const SS_DISABLE = 2 +const SS_FLAG_BITS = 2147483648 +const SS_ONSTACK = 1 +const STB_GLOBAL = 1 +const STB_GNU_UNIQUE = 10 +const STB_HIOS = 12 +const STB_HIPROC = 15 +const STB_LOCAL = 0 +const STB_LOOS = 10 +const STB_LOPROC = 13 +const STB_MIPS_SPLIT_COMMON = 13 +const STB_NUM = 3 +const STB_WEAK = 2 +const STN_UNDEF = 0 +const STO_ALPHA_NOPV = 128 +const STO_ALPHA_STD_GPLOAD = 136 +const STO_MIPS_DEFAULT = 0 +const STO_MIPS_HIDDEN = 2 +const STO_MIPS_INTERNAL = 1 +const STO_MIPS_PLT = 8 +const STO_MIPS_PROTECTED = 3 +const STO_MIPS_SC_ALIGN_UNUSED = 255 +const STO_PPC64_LOCAL_BIT = 5 +const STO_PPC64_LOCAL_MASK = 224 +const STT_ARM_16BIT = 15 +const STT_ARM_TFUNC = 13 +const STT_COMMON = 5 +const STT_FILE = 4 +const STT_FUNC = 2 +const STT_GNU_IFUNC = 10 +const STT_HIOS = 12 +const STT_HIPROC = 15 +const STT_HP_OPAQUE = 11 +const STT_HP_STUB = 12 +const STT_LOOS = 10 +const STT_LOPROC = 13 +const STT_NOTYPE = 0 +const STT_NUM = 7 +const STT_OBJECT = 1 +const STT_PARISC_MILLICODE = 13 +const STT_SECTION = 3 +const STT_SPARC_REGISTER = 13 +const STT_TLS = 6 +const STV_DEFAULT = 0 +const STV_HIDDEN = 2 +const STV_INTERNAL = 1 +const STV_PROTECTED = 3 +const SYMINFO_BT_LOWRESERVE = 65280 +const SYMINFO_BT_PARENT = 65534 +const SYMINFO_BT_SELF = 65535 +const SYMINFO_CURRENT = 1 +const SYMINFO_FLG_COPY = 4 +const SYMINFO_FLG_DIRECT = 1 +const SYMINFO_FLG_LAZYLOAD = 8 +const SYMINFO_FLG_PASSTHRU = 2 +const SYMINFO_NONE = 0 +const SYMINFO_NUM = 2 +const SYSCALL_MMAP2_UNIT = 4096 +const SYSCALL_RLIM_INFINITY = 18446744073709551615 +const SYS_accept = 202 +const SYS_accept4 = 242 +const SYS_acct = 89 +const SYS_add_key = 217 +const SYS_adjtimex = 171 +const SYS_bind = 200 +const SYS_bpf = 280 +const SYS_brk = 214 +const SYS_cachestat = 451 +const SYS_capget = 90 +const SYS_capset = 91 +const SYS_chdir = 49 +const SYS_chroot = 51 +const SYS_clock_adjtime = 266 +const SYS_clock_getres = 114 +const SYS_clock_gettime = 113 +const SYS_clock_nanosleep = 115 +const SYS_clock_settime = 112 +const SYS_clone = 220 +const SYS_clone3 = 435 +const SYS_close = 57 +const SYS_close_range = 436 +const SYS_connect = 203 +const SYS_copy_file_range = 285 +const SYS_delete_module = 106 +const SYS_dup = 23 +const SYS_dup3 = 24 +const SYS_epoll_create1 = 20 +const SYS_epoll_ctl = 21 +const SYS_epoll_pwait = 22 +const SYS_epoll_pwait2 = 441 +const SYS_eventfd2 = 19 +const SYS_execve = 221 +const SYS_execveat = 281 +const SYS_exit = 93 +const SYS_exit_group = 94 +const SYS_faccessat = 48 +const SYS_faccessat2 = 439 +const SYS_fadvise64 = 223 +const SYS_fallocate = 47 +const SYS_fanotify_init = 262 +const SYS_fanotify_mark = 263 +const SYS_fchdir = 50 +const SYS_fchmod = 52 +const SYS_fchmodat = 53 +const SYS_fchmodat2 = 452 +const SYS_fchown = 55 +const SYS_fchownat = 54 +const SYS_fcntl = 25 +const SYS_fdatasync = 83 +const SYS_fgetxattr = 10 +const SYS_finit_module = 273 +const SYS_flistxattr = 13 +const SYS_flock = 32 +const SYS_fremovexattr = 16 +const SYS_fsconfig = 431 +const SYS_fsetxattr = 7 +const SYS_fsmount = 432 +const SYS_fsopen = 430 +const SYS_fspick = 433 +const SYS_fstat = 80 +const SYS_fstatfs = 44 +const SYS_fsync = 82 +const SYS_ftruncate = 46 +const SYS_futex = 98 +const SYS_futex_waitv = 449 +const SYS_get_mempolicy = 236 +const SYS_get_robust_list = 100 +const SYS_getcpu = 168 +const SYS_getcwd = 17 +const SYS_getdents64 = 61 +const SYS_getegid = 177 +const SYS_geteuid = 175 +const SYS_getgid = 176 +const SYS_getgroups = 158 +const SYS_getitimer = 102 +const SYS_getpeername = 205 +const SYS_getpgid = 155 +const SYS_getpid = 172 +const SYS_getppid = 173 +const SYS_getpriority = 141 +const SYS_getrandom = 278 +const SYS_getresgid = 150 +const SYS_getresuid = 148 +const SYS_getrlimit = 163 +const SYS_getrusage = 165 +const SYS_getsid = 156 +const SYS_getsockname = 204 +const SYS_getsockopt = 209 +const SYS_gettid = 178 +const SYS_gettimeofday = 169 +const SYS_getuid = 174 +const SYS_getxattr = 8 +const SYS_init_module = 105 +const SYS_inotify_add_watch = 27 +const SYS_inotify_init1 = 26 +const SYS_inotify_rm_watch = 28 +const SYS_io_cancel = 3 +const SYS_io_destroy = 1 +const SYS_io_getevents = 4 +const SYS_io_pgetevents = 292 +const SYS_io_setup = 0 +const SYS_io_submit = 2 +const SYS_io_uring_enter = 426 +const SYS_io_uring_register = 427 +const SYS_io_uring_setup = 425 +const SYS_ioctl = 29 +const SYS_ioprio_get = 31 +const SYS_ioprio_set = 30 +const SYS_kcmp = 272 +const SYS_kexec_file_load = 294 +const SYS_kexec_load = 104 +const SYS_keyctl = 219 +const SYS_kill = 129 +const SYS_landlock_add_rule = 445 +const SYS_landlock_create_ruleset = 444 +const SYS_landlock_restrict_self = 446 +const SYS_lgetxattr = 9 +const SYS_linkat = 37 +const SYS_listen = 201 +const SYS_listxattr = 11 +const SYS_llistxattr = 12 +const SYS_lookup_dcookie = 18 +const SYS_lremovexattr = 15 +const SYS_lseek = 62 +const SYS_lsetxattr = 6 +const SYS_madvise = 233 +const SYS_mbind = 235 +const SYS_membarrier = 283 +const SYS_memfd_create = 279 +const SYS_migrate_pages = 238 +const SYS_mincore = 232 +const SYS_mkdirat = 34 +const SYS_mknodat = 33 +const SYS_mlock = 228 +const SYS_mlock2 = 284 +const SYS_mlockall = 230 +const SYS_mmap = 222 +const SYS_mount = 40 +const SYS_mount_setattr = 442 +const SYS_move_mount = 429 +const SYS_move_pages = 239 +const SYS_mprotect = 226 +const SYS_mq_getsetattr = 185 +const SYS_mq_notify = 184 +const SYS_mq_open = 180 +const SYS_mq_timedreceive = 183 +const SYS_mq_timedsend = 182 +const SYS_mq_unlink = 181 +const SYS_mremap = 216 +const SYS_msgctl = 187 +const SYS_msgget = 186 +const SYS_msgrcv = 188 +const SYS_msgsnd = 189 +const SYS_msync = 227 +const SYS_munlock = 229 +const SYS_munlockall = 231 +const SYS_munmap = 215 +const SYS_name_to_handle_at = 264 +const SYS_nanosleep = 101 +const SYS_newfstatat = 79 +const SYS_nfsservctl = 42 +const SYS_open_by_handle_at = 265 +const SYS_open_tree = 428 +const SYS_openat = 56 +const SYS_openat2 = 437 +const SYS_perf_event_open = 241 +const SYS_personality = 92 +const SYS_pidfd_getfd = 438 +const SYS_pidfd_open = 434 +const SYS_pidfd_send_signal = 424 +const SYS_pipe2 = 59 +const SYS_pivot_root = 41 +const SYS_pkey_alloc = 289 +const SYS_pkey_free = 290 +const SYS_pkey_mprotect = 288 +const SYS_ppoll = 73 +const SYS_prctl = 167 +const SYS_pread64 = 67 +const SYS_preadv = 69 +const SYS_preadv2 = 286 +const SYS_prlimit64 = 261 +const SYS_process_madvise = 440 +const SYS_process_mrelease = 448 +const SYS_process_vm_readv = 270 +const SYS_process_vm_writev = 271 +const SYS_pselect6 = 72 +const SYS_ptrace = 117 +const SYS_pwrite64 = 68 +const SYS_pwritev = 70 +const SYS_pwritev2 = 287 +const SYS_quotactl = 60 +const SYS_read = 63 +const SYS_readahead = 213 +const SYS_readlinkat = 78 +const SYS_readv = 65 +const SYS_reboot = 142 +const SYS_recvfrom = 207 +const SYS_recvmmsg = 243 +const SYS_recvmsg = 212 +const SYS_remap_file_pages = 234 +const SYS_removexattr = 14 +const SYS_renameat = 38 +const SYS_renameat2 = 276 +const SYS_request_key = 218 +const SYS_restart_syscall = 128 +const SYS_rseq = 293 +const SYS_rt_sigaction = 134 +const SYS_rt_sigpending = 136 +const SYS_rt_sigprocmask = 135 +const SYS_rt_sigqueueinfo = 138 +const SYS_rt_sigreturn = 139 +const SYS_rt_sigsuspend = 133 +const SYS_rt_sigtimedwait = 137 +const SYS_rt_tgsigqueueinfo = 240 +const SYS_sched_get_priority_max = 125 +const SYS_sched_get_priority_min = 126 +const SYS_sched_getaffinity = 123 +const SYS_sched_getattr = 275 +const SYS_sched_getparam = 121 +const SYS_sched_getscheduler = 120 +const SYS_sched_rr_get_interval = 127 +const SYS_sched_setaffinity = 122 +const SYS_sched_setattr = 274 +const SYS_sched_setparam = 118 +const SYS_sched_setscheduler = 119 +const SYS_sched_yield = 124 +const SYS_seccomp = 277 +const SYS_semctl = 191 +const SYS_semget = 190 +const SYS_semop = 193 +const SYS_semtimedop = 192 +const SYS_sendfile = 71 +const SYS_sendmmsg = 269 +const SYS_sendmsg = 211 +const SYS_sendto = 206 +const SYS_set_mempolicy = 237 +const SYS_set_mempolicy_home_node = 450 +const SYS_set_robust_list = 99 +const SYS_set_tid_address = 96 +const SYS_setdomainname = 162 +const SYS_setfsgid = 152 +const SYS_setfsuid = 151 +const SYS_setgid = 144 +const SYS_setgroups = 159 +const SYS_sethostname = 161 +const SYS_setitimer = 103 +const SYS_setns = 268 +const SYS_setpgid = 154 +const SYS_setpriority = 140 +const SYS_setregid = 143 +const SYS_setresgid = 149 +const SYS_setresuid = 147 +const SYS_setreuid = 145 +const SYS_setrlimit = 164 +const SYS_setsid = 157 +const SYS_setsockopt = 208 +const SYS_settimeofday = 170 +const SYS_setuid = 146 +const SYS_setxattr = 5 +const SYS_shmat = 196 +const SYS_shmctl = 195 +const SYS_shmdt = 197 +const SYS_shmget = 194 +const SYS_shutdown = 210 +const SYS_sigaltstack = 132 +const SYS_signalfd4 = 74 +const SYS_socket = 198 +const SYS_socketpair = 199 +const SYS_splice = 76 +const SYS_statfs = 43 +const SYS_statx = 291 +const SYS_swapoff = 225 +const SYS_swapon = 224 +const SYS_symlinkat = 36 +const SYS_sync = 81 +const SYS_sync_file_range = 84 +const SYS_syncfs = 267 +const SYS_sysinfo = 179 +const SYS_syslog = 116 +const SYS_tee = 77 +const SYS_tgkill = 131 +const SYS_timer_create = 107 +const SYS_timer_delete = 111 +const SYS_timer_getoverrun = 109 +const SYS_timer_gettime = 108 +const SYS_timer_settime = 110 +const SYS_timerfd_create = 85 +const SYS_timerfd_gettime = 87 +const SYS_timerfd_settime = 86 +const SYS_times = 153 +const SYS_tkill = 130 +const SYS_truncate = 45 +const SYS_umask = 166 +const SYS_umount2 = 39 +const SYS_uname = 160 +const SYS_unlinkat = 35 +const SYS_unshare = 97 +const SYS_userfaultfd = 282 +const SYS_utimensat = 88 +const SYS_vhangup = 58 +const SYS_vmsplice = 75 +const SYS_wait4 = 260 +const SYS_waitid = 95 +const SYS_write = 64 +const SYS_writev = 66 +const TRAP_BRANCH = 3 +const TRAP_BRKPT = 1 +const TRAP_HWBKPT = 4 +const TRAP_TRACE = 2 +const TRAP_UNK = 5 +const VER = -255 +const VER_DEF_CURRENT = 1 +const VER_DEF_NONE = 0 +const VER_DEF_NUM = 2 +const VER_FLG_BASE = 1 +const VER_FLG_WEAK = 2 +const VER_NDX_ELIMINATE = 65281 +const VER_NDX_GLOBAL = 1 +const VER_NDX_LOCAL = 0 +const VER_NDX_LORESERVE = 65280 +const VER_NEED_CURRENT = 1 +const VER_NEED_NONE = 0 +const VER_NEED_NUM = 2 +const WNOHANG = 1 +const WUNTRACED = 2 +const _NSIG = 65 +const __NR_accept = 202 +const __NR_accept4 = 242 +const __NR_acct = 89 +const __NR_add_key = 217 +const __NR_adjtimex = 171 +const __NR_bind = 200 +const __NR_bpf = 280 +const __NR_brk = 214 +const __NR_cachestat = 451 +const __NR_capget = 90 +const __NR_capset = 91 +const __NR_chdir = 49 +const __NR_chroot = 51 +const __NR_clock_adjtime = 266 +const __NR_clock_getres = 114 +const __NR_clock_gettime = 113 +const __NR_clock_nanosleep = 115 +const __NR_clock_settime = 112 +const __NR_clone = 220 +const __NR_clone3 = 435 +const __NR_close = 57 +const __NR_close_range = 436 +const __NR_connect = 203 +const __NR_copy_file_range = 285 +const __NR_delete_module = 106 +const __NR_dup = 23 +const __NR_dup3 = 24 +const __NR_epoll_create1 = 20 +const __NR_epoll_ctl = 21 +const __NR_epoll_pwait = 22 +const __NR_epoll_pwait2 = 441 +const __NR_eventfd2 = 19 +const __NR_execve = 221 +const __NR_execveat = 281 +const __NR_exit = 93 +const __NR_exit_group = 94 +const __NR_faccessat = 48 +const __NR_faccessat2 = 439 +const __NR_fadvise64 = 223 +const __NR_fallocate = 47 +const __NR_fanotify_init = 262 +const __NR_fanotify_mark = 263 +const __NR_fchdir = 50 +const __NR_fchmod = 52 +const __NR_fchmodat = 53 +const __NR_fchmodat2 = 452 +const __NR_fchown = 55 +const __NR_fchownat = 54 +const __NR_fcntl = 25 +const __NR_fdatasync = 83 +const __NR_fgetxattr = 10 +const __NR_finit_module = 273 +const __NR_flistxattr = 13 +const __NR_flock = 32 +const __NR_fremovexattr = 16 +const __NR_fsconfig = 431 +const __NR_fsetxattr = 7 +const __NR_fsmount = 432 +const __NR_fsopen = 430 +const __NR_fspick = 433 +const __NR_fstat = 80 +const __NR_fstatfs = 44 +const __NR_fsync = 82 +const __NR_ftruncate = 46 +const __NR_futex = 98 +const __NR_futex_waitv = 449 +const __NR_get_mempolicy = 236 +const __NR_get_robust_list = 100 +const __NR_getcpu = 168 +const __NR_getcwd = 17 +const __NR_getdents64 = 61 +const __NR_getegid = 177 +const __NR_geteuid = 175 +const __NR_getgid = 176 +const __NR_getgroups = 158 +const __NR_getitimer = 102 +const __NR_getpeername = 205 +const __NR_getpgid = 155 +const __NR_getpid = 172 +const __NR_getppid = 173 +const __NR_getpriority = 141 +const __NR_getrandom = 278 +const __NR_getresgid = 150 +const __NR_getresuid = 148 +const __NR_getrlimit = 163 +const __NR_getrusage = 165 +const __NR_getsid = 156 +const __NR_getsockname = 204 +const __NR_getsockopt = 209 +const __NR_gettid = 178 +const __NR_gettimeofday = 169 +const __NR_getuid = 174 +const __NR_getxattr = 8 +const __NR_init_module = 105 +const __NR_inotify_add_watch = 27 +const __NR_inotify_init1 = 26 +const __NR_inotify_rm_watch = 28 +const __NR_io_cancel = 3 +const __NR_io_destroy = 1 +const __NR_io_getevents = 4 +const __NR_io_pgetevents = 292 +const __NR_io_setup = 0 +const __NR_io_submit = 2 +const __NR_io_uring_enter = 426 +const __NR_io_uring_register = 427 +const __NR_io_uring_setup = 425 +const __NR_ioctl = 29 +const __NR_ioprio_get = 31 +const __NR_ioprio_set = 30 +const __NR_kcmp = 272 +const __NR_kexec_file_load = 294 +const __NR_kexec_load = 104 +const __NR_keyctl = 219 +const __NR_kill = 129 +const __NR_landlock_add_rule = 445 +const __NR_landlock_create_ruleset = 444 +const __NR_landlock_restrict_self = 446 +const __NR_lgetxattr = 9 +const __NR_linkat = 37 +const __NR_listen = 201 +const __NR_listxattr = 11 +const __NR_llistxattr = 12 +const __NR_lookup_dcookie = 18 +const __NR_lremovexattr = 15 +const __NR_lseek = 62 +const __NR_lsetxattr = 6 +const __NR_madvise = 233 +const __NR_mbind = 235 +const __NR_membarrier = 283 +const __NR_memfd_create = 279 +const __NR_migrate_pages = 238 +const __NR_mincore = 232 +const __NR_mkdirat = 34 +const __NR_mknodat = 33 +const __NR_mlock = 228 +const __NR_mlock2 = 284 +const __NR_mlockall = 230 +const __NR_mmap = 222 +const __NR_mount = 40 +const __NR_mount_setattr = 442 +const __NR_move_mount = 429 +const __NR_move_pages = 239 +const __NR_mprotect = 226 +const __NR_mq_getsetattr = 185 +const __NR_mq_notify = 184 +const __NR_mq_open = 180 +const __NR_mq_timedreceive = 183 +const __NR_mq_timedsend = 182 +const __NR_mq_unlink = 181 +const __NR_mremap = 216 +const __NR_msgctl = 187 +const __NR_msgget = 186 +const __NR_msgrcv = 188 +const __NR_msgsnd = 189 +const __NR_msync = 227 +const __NR_munlock = 229 +const __NR_munlockall = 231 +const __NR_munmap = 215 +const __NR_name_to_handle_at = 264 +const __NR_nanosleep = 101 +const __NR_newfstatat = 79 +const __NR_nfsservctl = 42 +const __NR_open_by_handle_at = 265 +const __NR_open_tree = 428 +const __NR_openat = 56 +const __NR_openat2 = 437 +const __NR_perf_event_open = 241 +const __NR_personality = 92 +const __NR_pidfd_getfd = 438 +const __NR_pidfd_open = 434 +const __NR_pidfd_send_signal = 424 +const __NR_pipe2 = 59 +const __NR_pivot_root = 41 +const __NR_pkey_alloc = 289 +const __NR_pkey_free = 290 +const __NR_pkey_mprotect = 288 +const __NR_ppoll = 73 +const __NR_prctl = 167 +const __NR_pread64 = 67 +const __NR_preadv = 69 +const __NR_preadv2 = 286 +const __NR_prlimit64 = 261 +const __NR_process_madvise = 440 +const __NR_process_mrelease = 448 +const __NR_process_vm_readv = 270 +const __NR_process_vm_writev = 271 +const __NR_pselect6 = 72 +const __NR_ptrace = 117 +const __NR_pwrite64 = 68 +const __NR_pwritev = 70 +const __NR_pwritev2 = 287 +const __NR_quotactl = 60 +const __NR_read = 63 +const __NR_readahead = 213 +const __NR_readlinkat = 78 +const __NR_readv = 65 +const __NR_reboot = 142 +const __NR_recvfrom = 207 +const __NR_recvmmsg = 243 +const __NR_recvmsg = 212 +const __NR_remap_file_pages = 234 +const __NR_removexattr = 14 +const __NR_renameat = 38 +const __NR_renameat2 = 276 +const __NR_request_key = 218 +const __NR_restart_syscall = 128 +const __NR_rseq = 293 +const __NR_rt_sigaction = 134 +const __NR_rt_sigpending = 136 +const __NR_rt_sigprocmask = 135 +const __NR_rt_sigqueueinfo = 138 +const __NR_rt_sigreturn = 139 +const __NR_rt_sigsuspend = 133 +const __NR_rt_sigtimedwait = 137 +const __NR_rt_tgsigqueueinfo = 240 +const __NR_sched_get_priority_max = 125 +const __NR_sched_get_priority_min = 126 +const __NR_sched_getaffinity = 123 +const __NR_sched_getattr = 275 +const __NR_sched_getparam = 121 +const __NR_sched_getscheduler = 120 +const __NR_sched_rr_get_interval = 127 +const __NR_sched_setaffinity = 122 +const __NR_sched_setattr = 274 +const __NR_sched_setparam = 118 +const __NR_sched_setscheduler = 119 +const __NR_sched_yield = 124 +const __NR_seccomp = 277 +const __NR_semctl = 191 +const __NR_semget = 190 +const __NR_semop = 193 +const __NR_semtimedop = 192 +const __NR_sendfile = 71 +const __NR_sendmmsg = 269 +const __NR_sendmsg = 211 +const __NR_sendto = 206 +const __NR_set_mempolicy = 237 +const __NR_set_mempolicy_home_node = 450 +const __NR_set_robust_list = 99 +const __NR_set_tid_address = 96 +const __NR_setdomainname = 162 +const __NR_setfsgid = 152 +const __NR_setfsuid = 151 +const __NR_setgid = 144 +const __NR_setgroups = 159 +const __NR_sethostname = 161 +const __NR_setitimer = 103 +const __NR_setns = 268 +const __NR_setpgid = 154 +const __NR_setpriority = 140 +const __NR_setregid = 143 +const __NR_setresgid = 149 +const __NR_setresuid = 147 +const __NR_setreuid = 145 +const __NR_setrlimit = 164 +const __NR_setsid = 157 +const __NR_setsockopt = 208 +const __NR_settimeofday = 170 +const __NR_setuid = 146 +const __NR_setxattr = 5 +const __NR_shmat = 196 +const __NR_shmctl = 195 +const __NR_shmdt = 197 +const __NR_shmget = 194 +const __NR_shutdown = 210 +const __NR_sigaltstack = 132 +const __NR_signalfd4 = 74 +const __NR_socket = 198 +const __NR_socketpair = 199 +const __NR_splice = 76 +const __NR_statfs = 43 +const __NR_statx = 291 +const __NR_swapoff = 225 +const __NR_swapon = 224 +const __NR_symlinkat = 36 +const __NR_sync = 81 +const __NR_sync_file_range = 84 +const __NR_syncfs = 267 +const __NR_sysinfo = 179 +const __NR_syslog = 116 +const __NR_tee = 77 +const __NR_tgkill = 131 +const __NR_timer_create = 107 +const __NR_timer_delete = 111 +const __NR_timer_getoverrun = 109 +const __NR_timer_gettime = 108 +const __NR_timer_settime = 110 +const __NR_timerfd_create = 85 +const __NR_timerfd_gettime = 87 +const __NR_timerfd_settime = 86 +const __NR_times = 153 +const __NR_tkill = 130 +const __NR_truncate = 45 +const __NR_umask = 166 +const __NR_umount2 = 39 +const __NR_uname = 160 +const __NR_unlinkat = 35 +const __NR_unshare = 97 +const __NR_userfaultfd = 282 +const __NR_utimensat = 88 +const __NR_vhangup = 58 +const __NR_vmsplice = 75 +const __NR_wait4 = 260 +const __NR_waitid = 95 +const __NR_write = 64 +const __NR_writev = 66 +const __SC_accept = 5 +const __SC_accept4 = 18 +const __SC_bind = 2 +const __SC_connect = 3 +const __SC_getpeername = 7 +const __SC_getsockname = 6 +const __SC_getsockopt = 15 +const __SC_listen = 4 +const __SC_recv = 10 +const __SC_recvfrom = 12 +const __SC_recvmmsg = 19 +const __SC_recvmsg = 17 +const __SC_send = 9 +const __SC_sendmmsg = 20 +const __SC_sendmsg = 16 +const __SC_sendto = 11 +const __SC_setsockopt = 14 +const __SC_shutdown = 13 +const __SC_socket = 1 +const __SC_socketpair = 8 +const libc = 0 + +type Ttime_t = int64 + +type Tsuseconds_t = int64 + +type Ttimeval = struct { + Ftv_sec Ttime_t + Ftv_usec Tsuseconds_t +} + +type Ttimespec = struct { + Ftv_sec Ttime_t + Ftv_nsec int64 +} + +type Tsigset_t = struct { + F__bits [16]uint64 +} + +type t__sigset_t = Tsigset_t + +type Tfd_mask = uint64 + +type Tfd_set = struct { + Ffds_bits [16]uint64 +} + +type Titimerval = struct { + Fit_interval Ttimeval + Fit_value Ttimeval +} + +type Tid_t = uint32 + +type Trlim_t = uint64 + +type Trlimit = struct { + Frlim_cur Trlim_t + Frlim_max Trlim_t +} + +type Trusage = struct { + Fru_utime Ttimeval + Fru_stime Ttimeval + Fru_maxrss int64 + Fru_ixrss int64 + Fru_idrss int64 + Fru_isrss int64 + Fru_minflt int64 + Fru_majflt int64 + Fru_nswap int64 + Fru_inblock int64 + Fru_oublock int64 + Fru_msgsnd int64 + Fru_msgrcv int64 + Fru_nsignals int64 + Fru_nvcsw int64 + Fru_nivcsw int64 + F__reserved [16]int64 +} + +type Tclock_t = int64 + +type Tpthread_t = uintptr + +type Tpthread_attr_t = struct { + F__u struct { + F__vi [0][14]int32 + F__s [0][7]uint64 + F__i [14]int32 + } +} + +type Tstack_t = struct { + Fss_sp uintptr + Fss_flags int32 + Fss_size Tsize_t +} + +type Tsigaltstack = Tstack_t + +type Tmcontext_t = struct { + F__regs [274]float64 +} + +type Tucontext_t = struct { + Fuc_flags uint64 + Fuc_link uintptr + Fuc_stack Tstack_t + Fuc_sigmask Tsigset_t + Fuc_mcontext Tmcontext_t +} + +type t__ucontext = Tucontext_t + +type Tsigval = struct { + Fsival_ptr [0]uintptr + Fsival_int int32 + F__ccgo_pad2 [4]byte +} + +type Tsiginfo_t = struct { + Fsi_signo int32 + Fsi_errno int32 + Fsi_code int32 + F__si_fields struct { + F__si_common [0]struct { + F__first struct { + F__timer [0]struct { + Fsi_timerid int32 + Fsi_overrun int32 + } + F__piduid struct { + Fsi_pid Tpid_t + Fsi_uid Tuid_t + } + } + F__second struct { + F__sigchld [0]struct { + Fsi_status int32 + Fsi_utime Tclock_t + Fsi_stime Tclock_t + } + Fsi_value Tsigval + F__ccgo_pad2 [16]byte + } + } + F__sigfault [0]struct { + Fsi_addr uintptr + Fsi_addr_lsb int16 + F__first struct { + Fsi_pkey [0]uint32 + F__addr_bnd struct { + Fsi_lower uintptr + Fsi_upper uintptr + } + } + } + F__sigpoll [0]struct { + Fsi_band int64 + Fsi_fd int32 + } + F__sigsys [0]struct { + Fsi_call_addr uintptr + Fsi_syscall int32 + Fsi_arch uint32 + } + F__pad [112]uint8 + } +} + +type Tsigaction = struct { + F__sa_handler struct { + Fsa_sigaction [0]uintptr + Fsa_handler uintptr + } + Fsa_mask Tsigset_t + Fsa_flags int32 + Fsa_restorer uintptr +} + +type Tsigevent = struct { + Fsigev_value Tsigval + Fsigev_signo int32 + Fsigev_notify int32 + F__sev_fields struct { + Fsigev_notify_thread_id [0]Tpid_t + F__sev_thread [0]struct { + Fsigev_notify_function uintptr + Fsigev_notify_attributes uintptr + } + F__pad [48]uint8 + } +} + +type Tsig_atomic_t = int32 + +type TElf32_Half = uint16 + +type TElf64_Half = uint16 + +type TElf32_Word = uint32 + +type TElf32_Sword = int32 + +type TElf64_Word = uint32 + +type TElf64_Sword = int32 + +type TElf32_Xword = uint64 + +type TElf32_Sxword = int64 + +type TElf64_Xword = uint64 + +type TElf64_Sxword = int64 + +type TElf32_Addr = uint32 + +type TElf64_Addr = uint64 + +type TElf32_Off = uint32 + +type TElf64_Off = uint64 + +type TElf32_Section = uint16 + +type TElf64_Section = uint16 + +type TElf32_Versym = uint16 + +type TElf64_Versym = uint16 + +type TElf32_Ehdr = struct { + Fe_ident [16]uint8 + Fe_type TElf32_Half + Fe_machine TElf32_Half + Fe_version TElf32_Word + Fe_entry TElf32_Addr + Fe_phoff TElf32_Off + Fe_shoff TElf32_Off + Fe_flags TElf32_Word + Fe_ehsize TElf32_Half + Fe_phentsize TElf32_Half + Fe_phnum TElf32_Half + Fe_shentsize TElf32_Half + Fe_shnum TElf32_Half + Fe_shstrndx TElf32_Half +} + +type TElf64_Ehdr = struct { + Fe_ident [16]uint8 + Fe_type TElf64_Half + Fe_machine TElf64_Half + Fe_version TElf64_Word + Fe_entry TElf64_Addr + Fe_phoff TElf64_Off + Fe_shoff TElf64_Off + Fe_flags TElf64_Word + Fe_ehsize TElf64_Half + Fe_phentsize TElf64_Half + Fe_phnum TElf64_Half + Fe_shentsize TElf64_Half + Fe_shnum TElf64_Half + Fe_shstrndx TElf64_Half +} + +type TElf32_Shdr = struct { + Fsh_name TElf32_Word + Fsh_type TElf32_Word + Fsh_flags TElf32_Word + Fsh_addr TElf32_Addr + Fsh_offset TElf32_Off + Fsh_size TElf32_Word + Fsh_link TElf32_Word + Fsh_info TElf32_Word + Fsh_addralign TElf32_Word + Fsh_entsize TElf32_Word +} + +type TElf64_Shdr = struct { + Fsh_name TElf64_Word + Fsh_type TElf64_Word + Fsh_flags TElf64_Xword + Fsh_addr TElf64_Addr + Fsh_offset TElf64_Off + Fsh_size TElf64_Xword + Fsh_link TElf64_Word + Fsh_info TElf64_Word + Fsh_addralign TElf64_Xword + Fsh_entsize TElf64_Xword +} + +type TElf32_Chdr = struct { + Fch_type TElf32_Word + Fch_size TElf32_Word + Fch_addralign TElf32_Word +} + +type TElf64_Chdr = struct { + Fch_type TElf64_Word + Fch_reserved TElf64_Word + Fch_size TElf64_Xword + Fch_addralign TElf64_Xword +} + +type TElf32_Sym = struct { + Fst_name TElf32_Word + Fst_value TElf32_Addr + Fst_size TElf32_Word + Fst_info uint8 + Fst_other uint8 + Fst_shndx TElf32_Section +} + +type TElf64_Sym = struct { + Fst_name TElf64_Word + Fst_info uint8 + Fst_other uint8 + Fst_shndx TElf64_Section + Fst_value TElf64_Addr + Fst_size TElf64_Xword +} + +type TElf32_Syminfo = struct { + Fsi_boundto TElf32_Half + Fsi_flags TElf32_Half +} + +type TElf64_Syminfo = struct { + Fsi_boundto TElf64_Half + Fsi_flags TElf64_Half +} + +type TElf32_Rel = struct { + Fr_offset TElf32_Addr + Fr_info TElf32_Word +} + +type TElf64_Rel = struct { + Fr_offset TElf64_Addr + Fr_info TElf64_Xword +} + +type TElf32_Rela = struct { + Fr_offset TElf32_Addr + Fr_info TElf32_Word + Fr_addend TElf32_Sword +} + +type TElf64_Rela = struct { + Fr_offset TElf64_Addr + Fr_info TElf64_Xword + Fr_addend TElf64_Sxword +} + +type TElf32_Relr = uint32 + +type TElf64_Relr = uint64 + +type TElf32_Phdr = struct { + Fp_type TElf32_Word + Fp_offset TElf32_Off + Fp_vaddr TElf32_Addr + Fp_paddr TElf32_Addr + Fp_filesz TElf32_Word + Fp_memsz TElf32_Word + Fp_flags TElf32_Word + Fp_align TElf32_Word +} + +type TElf64_Phdr = struct { + Fp_type TElf64_Word + Fp_flags TElf64_Word + Fp_offset TElf64_Off + Fp_vaddr TElf64_Addr + Fp_paddr TElf64_Addr + Fp_filesz TElf64_Xword + Fp_memsz TElf64_Xword + Fp_align TElf64_Xword +} + +type TElf32_Dyn = struct { + Fd_tag TElf32_Sword + Fd_un struct { + Fd_ptr [0]TElf32_Addr + Fd_val TElf32_Word + } +} + +type TElf64_Dyn = struct { + Fd_tag TElf64_Sxword + Fd_un struct { + Fd_ptr [0]TElf64_Addr + Fd_val TElf64_Xword + } +} + +type TElf32_Verdef = struct { + Fvd_version TElf32_Half + Fvd_flags TElf32_Half + Fvd_ndx TElf32_Half + Fvd_cnt TElf32_Half + Fvd_hash TElf32_Word + Fvd_aux TElf32_Word + Fvd_next TElf32_Word +} + +type TElf64_Verdef = struct { + Fvd_version TElf64_Half + Fvd_flags TElf64_Half + Fvd_ndx TElf64_Half + Fvd_cnt TElf64_Half + Fvd_hash TElf64_Word + Fvd_aux TElf64_Word + Fvd_next TElf64_Word +} + +type TElf32_Verdaux = struct { + Fvda_name TElf32_Word + Fvda_next TElf32_Word +} + +type TElf64_Verdaux = struct { + Fvda_name TElf64_Word + Fvda_next TElf64_Word +} + +type TElf32_Verneed = struct { + Fvn_version TElf32_Half + Fvn_cnt TElf32_Half + Fvn_file TElf32_Word + Fvn_aux TElf32_Word + Fvn_next TElf32_Word +} + +type TElf64_Verneed = struct { + Fvn_version TElf64_Half + Fvn_cnt TElf64_Half + Fvn_file TElf64_Word + Fvn_aux TElf64_Word + Fvn_next TElf64_Word +} + +type TElf32_Vernaux = struct { + Fvna_hash TElf32_Word + Fvna_flags TElf32_Half + Fvna_other TElf32_Half + Fvna_name TElf32_Word + Fvna_next TElf32_Word +} + +type TElf64_Vernaux = struct { + Fvna_hash TElf64_Word + Fvna_flags TElf64_Half + Fvna_other TElf64_Half + Fvna_name TElf64_Word + Fvna_next TElf64_Word +} + +type TElf32_auxv_t = struct { + Fa_type Tuint32_t + Fa_un struct { + Fa_val Tuint32_t + } +} + +type TElf64_auxv_t = struct { + Fa_type Tuint64_t + Fa_un struct { + Fa_val Tuint64_t + } +} + +type TElf32_Nhdr = struct { + Fn_namesz TElf32_Word + Fn_descsz TElf32_Word + Fn_type TElf32_Word +} + +type TElf64_Nhdr = struct { + Fn_namesz TElf64_Word + Fn_descsz TElf64_Word + Fn_type TElf64_Word +} + +type TElf32_Move = struct { + Fm_value TElf32_Xword + Fm_info TElf32_Word + Fm_poffset TElf32_Word + Fm_repeat TElf32_Half + Fm_stride TElf32_Half +} + +type TElf64_Move = struct { + Fm_value TElf64_Xword + Fm_info TElf64_Xword + Fm_poffset TElf64_Xword + Fm_repeat TElf64_Half + Fm_stride TElf64_Half +} + +type TElf32_gptab = struct { + Fgt_entry [0]struct { + Fgt_g_value TElf32_Word + Fgt_bytes TElf32_Word + } + Fgt_header struct { + Fgt_current_g_value TElf32_Word + Fgt_unused TElf32_Word + } +} + +type TElf32_RegInfo = struct { + Fri_gprmask TElf32_Word + Fri_cprmask [4]TElf32_Word + Fri_gp_value TElf32_Sword +} + +type TElf_Options = struct { + Fkind uint8 + Fsize uint8 + Fsection TElf32_Section + Finfo TElf32_Word +} + +type TElf_Options_Hw = struct { + Fhwp_flags1 TElf32_Word + Fhwp_flags2 TElf32_Word +} + +type TElf32_Lib = struct { + Fl_name TElf32_Word + Fl_time_stamp TElf32_Word + Fl_checksum TElf32_Word + Fl_version TElf32_Word + Fl_flags TElf32_Word +} + +type TElf64_Lib = struct { + Fl_name TElf64_Word + Fl_time_stamp TElf64_Word + Fl_checksum TElf64_Word + Fl_version TElf64_Word + Fl_flags TElf64_Word +} + +type TElf32_Conflict = uint32 + +type TElf_MIPS_ABIFlags_v0 = struct { + Fversion TElf32_Half + Fisa_level uint8 + Fisa_rev uint8 + Fgpr_size uint8 + Fcpr1_size uint8 + Fcpr2_size uint8 + Ffp_abi uint8 + Fisa_ext TElf32_Word + Fases TElf32_Word + Fflags1 TElf32_Word + Fflags2 TElf32_Word +} + +const _Val_GNU_MIPS_ABI_FP_ANY = 0 +const _Val_GNU_MIPS_ABI_FP_DOUBLE = 1 +const _Val_GNU_MIPS_ABI_FP_SINGLE = 2 +const _Val_GNU_MIPS_ABI_FP_SOFT = 3 +const _Val_GNU_MIPS_ABI_FP_OLD_64 = 4 +const _Val_GNU_MIPS_ABI_FP_XX = 5 +const _Val_GNU_MIPS_ABI_FP_64 = 6 +const _Val_GNU_MIPS_ABI_FP_64A = 7 +const _Val_GNU_MIPS_ABI_FP_MAX = 7 + +type Tsyscall_arg_t = int64 + +type Twchar_t = uint32 + +type Tdiv_t = struct { + Fquot int32 + Frem int32 +} + +type Tldiv_t = struct { + Fquot int64 + Frem int64 +} + +type Tlldiv_t = struct { + Fquot int64 + Frem int64 +} + +type t__locale_struct = struct { + Fcat [6]uintptr +} + +type Ttls_module = struct { + Fnext uintptr + Fimage uintptr + Flen1 Tsize_t + Fsize Tsize_t + Falign Tsize_t + Foffset Tsize_t +} + +type t__libc = struct { + Fcan_do_threads uint8 + Fthreaded uint8 + Fsecure uint8 + Fneed_locks int8 + Fthreads_minus_1 int32 + Fauxv uintptr + Ftls_head uintptr + Ftls_size Tsize_t + Ftls_align Tsize_t + Ftls_cnt Tsize_t + Fpage_size Tsize_t + Fglobal_locale t__locale_struct +} + +func Xsysconf(tls *TLS, name int32) (r int64) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(512) + defer tls.Free(512) + var cnt, i, v3 int32 + var mem, v1 uint64 + var val int64 + var v5 uintptr + var _ /* lim at bp+0 */ Trlimit + var _ /* set at bp+16 */ [128]uint8 + var _ /* si at bp+144 */ Tsysinfo + _, _, _, _, _, _, _ = cnt, i, mem, val, v1, v3, v5 + if Uint64FromInt32(name) >= Uint64FromInt64(502)/Uint64FromInt64(2) || !(_values1[name] != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return int64(-int32(1)) + } else { + if int32(_values1[name]) >= -int32(1) { + return int64(_values1[name]) + } else { + if int32(_values1[name]) < -int32(256) { + Xgetrlimit(tls, int32(_values1[name])&int32(16383), bp) + if (**(**Trlimit)(__ccgo_up(bp))).Frlim_cur == ^Uint64FromUint64(0) { + return int64(-int32(1)) + } + if (**(**Trlimit)(__ccgo_up(bp))).Frlim_cur > uint64(0x7fffffffffffffff) { + v1 = uint64(0x7fffffffffffffff) + } else { + v1 = (**(**Trlimit)(__ccgo_up(bp))).Frlim_cur + } + return Int64FromUint64(v1) + } + } + } + switch Int32FromUint8(Uint8FromInt16(_values1[name])) { + case (-Int32FromInt32(256) | Int32FromInt32(1)) & Int32FromInt32(255): + return int64(200809) + case (-Int32FromInt32(256) | Int32FromInt32(2)) & Int32FromInt32(255): + return int64(ARG_MAX) + case (-Int32FromInt32(256) | Int32FromInt32(3)) & Int32FromInt32(255): + return int64(MQ_PRIO_MAX) + case (-Int32FromInt32(256) | Int32FromInt32(4)) & Int32FromInt32(255): + return Int64FromUint64(X__libc.Fpage_size) + case (-Int32FromInt32(256) | Int32FromInt32(5)) & Int32FromInt32(255): + return int64(SEM_VALUE_MAX) + case (-Int32FromInt32(256) | Int32FromInt32(11)) & Int32FromInt32(255): + return int64(DELAYTIMER_MAX) + case (-Int32FromInt32(256) | Int32FromInt32(6)) & Int32FromInt32(255): + fallthrough + case (-Int32FromInt32(256) | Int32FromInt32(7)) & Int32FromInt32(255): + **(**[128]uint8)(__ccgo_up(bp + 16)) = [128]uint8{ + 0: uint8(1), + } + X__syscall3(tls, int64(SYS_sched_getaffinity), int64(Int32FromInt32(0)), Int64FromUint64(Uint64FromInt64(128)), int64(bp+16)) + v3 = Int32FromInt32(0) + cnt = v3 + i = v3 + for { + if !(Uint64FromInt32(i) < uint64(128)) { + break + } + for { + if !((**(**[128]uint8)(__ccgo_up(bp + 16)))[i] != 0) { + break + } + goto _4 + _4: + ; + v5 = bp + 16 + uintptr(i) + *(*uint8)(unsafe.Pointer(v5)) = uint8(int32(*(*uint8)(unsafe.Pointer(v5))) & (Int32FromUint8((**(**[128]uint8)(__ccgo_up(bp + 16)))[i]) - Int32FromInt32(1))) + cnt = cnt + 1 + } + goto _2 + _2: + ; + i = i + 1 + } + return int64(cnt) + case (-Int32FromInt32(256) | Int32FromInt32(8)) & Int32FromInt32(255): + fallthrough + case (-Int32FromInt32(256) | Int32FromInt32(9)) & Int32FromInt32(255): + X__lsysinfo(tls, bp+144) + if !((**(**Tsysinfo)(__ccgo_up(bp + 144))).Fmem_unit != 0) { + (**(**Tsysinfo)(__ccgo_up(bp + 144))).Fmem_unit = uint32(1) + } + if name == int32(_SC_PHYS_PAGES) { + mem = uint64((**(**Tsysinfo)(__ccgo_up(bp + 144))).Ftotalram) + } else { + mem = uint64((**(**Tsysinfo)(__ccgo_up(bp + 144))).Ffreeram + (**(**Tsysinfo)(__ccgo_up(bp + 144))).Fbufferram) + } + mem = mem * uint64((**(**Tsysinfo)(__ccgo_up(bp + 144))).Fmem_unit) + mem = mem / X__libc.Fpage_size + if mem > uint64(0x7fffffffffffffff) { + v1 = uint64(0x7fffffffffffffff) + } else { + v1 = mem + } + return Int64FromUint64(v1) + case (-Int32FromInt32(256) | Int32FromInt32(12)) & Int32FromInt32(255): + fallthrough + case (-Int32FromInt32(256) | Int32FromInt32(13)) & Int32FromInt32(255): + val = Int64FromUint64(X__getauxval(tls, uint64(AT_MINSIGSTKSZ))) + if val < int64(MINSIGSTKSZ) { + val = int64(MINSIGSTKSZ) + } + if int32(_values1[name]) == -Int32FromInt32(256)|Int32FromInt32(13) { + val = val + int64(Int32FromInt32(SIGSTKSZ)-Int32FromInt32(MINSIGSTKSZ)) + } + return val + case (-Int32FromInt32(256) | Int32FromInt32(10)) & Int32FromInt32(255): + return 0 + } + return int64(_values1[name]) +} + +var _values1 = [251]int16{ + 0: int16(-Int32FromInt32(256) | Int32FromInt32(2)), + 1: int16(-Int32FromInt32(32768) | Int32FromInt32(RLIMIT_NPROC)), + 2: int16(100), + 3: int16(32), + 4: int16(-Int32FromInt32(32768) | Int32FromInt32(RLIMIT_NOFILE)), + 5: int16(-int32(1)), + 6: int16(TZNAME_MAX), + 7: int16(1), + 8: int16(1), + 9: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 10: int16(-int32(1)), + 11: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 12: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 13: int16(-int32(1)), + 14: int16(-int32(1)), + 15: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 16: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 17: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 18: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 19: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 20: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 21: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 22: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 23: int16(-int32(1)), + 24: int16(-int32(1)), + 25: int16(-Int32FromInt32(256) | Int32FromInt32(10)), + 26: int16(-Int32FromInt32(256) | Int32FromInt32(11)), + 27: int16(-int32(1)), + 28: int16(-Int32FromInt32(256) | Int32FromInt32(3)), + 29: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 30: int16(-Int32FromInt32(256) | Int32FromInt32(4)), + 31: int16(Int32FromInt32(_NSIG) - Int32FromInt32(1) - Int32FromInt32(31) - Int32FromInt32(3)), + 32: int16(SEM_NSEMS_MAX), + 33: int16(-Int32FromInt32(256) | Int32FromInt32(5)), + 34: int16(-int32(1)), + 35: int16(-int32(1)), + 36: int16(_POSIX2_BC_BASE_MAX), + 37: int16(_POSIX2_BC_DIM_MAX), + 38: int16(_POSIX2_BC_SCALE_MAX), + 39: int16(_POSIX2_BC_STRING_MAX), + 40: int16(COLL_WEIGHTS_MAX), + 42: int16(-int32(1)), + 43: int16(-int32(1)), + 44: int16(RE_DUP_MAX), + 46: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 47: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 48: int16(-int32(1)), + 49: int16(-int32(1)), + 50: int16(-int32(1)), + 51: int16(-int32(1)), + 52: int16(-int32(1)), + 60: int16(IOV_MAX), + 67: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 68: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 69: int16(-int32(1)), + 70: int16(-int32(1)), + 71: int16(256), + 72: int16(TTY_NAME_MAX), + 73: int16(PTHREAD_DESTRUCTOR_ITERATIONS), + 74: int16(PTHREAD_KEYS_MAX), + 75: int16(PTHREAD_STACK_MIN), + 76: int16(-int32(1)), + 77: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 78: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 79: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 80: int16(-int32(1)), + 81: int16(-int32(1)), + 82: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 83: int16(-Int32FromInt32(256) | Int32FromInt32(6)), + 84: int16(-Int32FromInt32(256) | Int32FromInt32(7)), + 85: int16(-Int32FromInt32(256) | Int32FromInt32(8)), + 86: int16(-Int32FromInt32(256) | Int32FromInt32(9)), + 87: int16(-int32(1)), + 88: int16(-int32(1)), + 89: int16(_XOPEN_VERSION), + 90: int16(_XOPEN_VERSION), + 91: int16(1), + 92: int16(-int32(1)), + 93: int16(1), + 94: int16(1), + 95: int16(-int32(1)), + 97: int16(-int32(1)), + 98: int16(-int32(1)), + 99: int16(-int32(1)), + 100: int16(-int32(1)), + 109: int16(NZERO), + 125: int16(-int32(1)), + 126: int16(-int32(1)), + 127: int16(1), + 128: int16(-int32(1)), + 129: int16(-int32(1)), + 130: int16(-int32(1)), + 131: int16(-int32(1)), + 132: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 133: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 137: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 138: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 139: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 149: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 153: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 154: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 155: int16(1), + 157: int16(1), + 159: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 160: int16(-int32(1)), + 161: int16(-int32(1)), + 164: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 165: int16(-int32(1)), + 168: int16(-int32(1)), + 169: int16(-int32(1)), + 170: int16(-int32(1)), + 171: int16(-int32(1)), + 172: int16(-int32(1)), + 173: int16(SYMLOOP_MAX), + 174: int16(-Int32FromInt32(256) | Int32FromInt32(10)), + 175: int16(-int32(1)), + 176: int16(-int32(1)), + 177: int16(-int32(1)), + 178: int16(1), + 179: int16(-int32(1)), + 180: int16(HOST_NAME_MAX), + 181: int16(-int32(1)), + 182: int16(-int32(1)), + 183: int16(-int32(1)), + 184: int16(-int32(1)), + 235: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 236: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 237: int16(-int32(1)), + 238: int16(-int32(1)), + 239: int16(1), + 240: int16(-int32(1)), + 241: int16(-int32(1)), + 242: int16(-int32(1)), + 243: int16(-int32(1)), + 244: int16(-int32(1)), + 245: int16(-int32(1)), + 246: int16(-Int32FromInt32(256) | Int32FromInt32(10)), + 247: int16(-int32(1)), + 248: int16(-int32(1)), + 249: int16(-Int32FromInt32(256) | Int32FromInt32(12)), + 250: int16(-Int32FromInt32(256) | Int32FromInt32(13)), +} + +type Tcrypt_data = struct { + Finitialized int32 + F__buf [256]uint8 +} + +func Xcrypt(tls *TLS, key uintptr, salt uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v salt=%v, (%v:)", tls, key, salt, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__crypt_r(tls, key, salt, uintptr(unsafe.Pointer(&_buf))) +} + +/* This buffer is sufficiently large for all + * currently-supported hash types. It needs to be updated if + * longer hashes are added. The cast to struct crypt_data * is + * purely to meet the public API requirements of the crypt_r + * function; the implementation of crypt_r uses the object + * purely as a char buffer. */ +var _buf [128]uint8 + +const BF_N = 16 + +type Tlocale_t = uintptr + +type TBF_word = uint32 + +type TBF_word_signed = int32 + +/* Number of Blowfish rounds, this is also hardcoded into a few places */ + +type TBF_key = [18]TBF_word + +type TBF_ctx = struct { + FPS [0][1042]TBF_word + Fs struct { + FP TBF_key + FS [4][256]TBF_word + } +} + +// C documentation +// +// /* +// * Magic IV for 64 Blowfish encryptions that we do at the end. +// * The string is "OrpheanBeholderScryDoubt" on big-endian. +// */ +var _BF_magic_w = [6]TBF_word{ + 0: uint32(0x4F727068), + 1: uint32(0x65616E42), + 2: uint32(0x65686F6C), + 3: uint32(0x64657253), + 4: uint32(0x63727944), + 5: uint32(0x6F756274), +} + +// C documentation +// +// /* +// * P-box and S-box tables initialized with digits of Pi. +// */ +var _BF_init_state = *(*TBF_ctx)(unsafe.Pointer(&struct { + FP TBF_key + FS [4][256]TBF_word +}{ + FP: TBF_key{ + 0: uint32(0x243f6a88), + 1: uint32(0x85a308d3), + 2: uint32(0x13198a2e), + 3: uint32(0x03707344), + 4: uint32(0xa4093822), + 5: uint32(0x299f31d0), + 6: uint32(0x082efa98), + 7: uint32(0xec4e6c89), + 8: uint32(0x452821e6), + 9: uint32(0x38d01377), + 10: uint32(0xbe5466cf), + 11: uint32(0x34e90c6c), + 12: uint32(0xc0ac29b7), + 13: uint32(0xc97c50dd), + 14: uint32(0x3f84d5b5), + 15: uint32(0xb5470917), + 16: uint32(0x9216d5d9), + 17: uint32(0x8979fb1b), + }, + FS: [4][256]TBF_word{ + 0: { + 0: uint32(0xd1310ba6), + 1: uint32(0x98dfb5ac), + 2: uint32(0x2ffd72db), + 3: uint32(0xd01adfb7), + 4: uint32(0xb8e1afed), + 5: uint32(0x6a267e96), + 6: uint32(0xba7c9045), + 7: uint32(0xf12c7f99), + 8: uint32(0x24a19947), + 9: uint32(0xb3916cf7), + 10: uint32(0x0801f2e2), + 11: uint32(0x858efc16), + 12: uint32(0x636920d8), + 13: uint32(0x71574e69), + 14: uint32(0xa458fea3), + 15: uint32(0xf4933d7e), + 16: uint32(0x0d95748f), + 17: uint32(0x728eb658), + 18: uint32(0x718bcd58), + 19: uint32(0x82154aee), + 20: uint32(0x7b54a41d), + 21: uint32(0xc25a59b5), + 22: uint32(0x9c30d539), + 23: uint32(0x2af26013), + 24: uint32(0xc5d1b023), + 25: uint32(0x286085f0), + 26: uint32(0xca417918), + 27: uint32(0xb8db38ef), + 28: uint32(0x8e79dcb0), + 29: uint32(0x603a180e), + 30: uint32(0x6c9e0e8b), + 31: uint32(0xb01e8a3e), + 32: uint32(0xd71577c1), + 33: uint32(0xbd314b27), + 34: uint32(0x78af2fda), + 35: uint32(0x55605c60), + 36: uint32(0xe65525f3), + 37: uint32(0xaa55ab94), + 38: uint32(0x57489862), + 39: uint32(0x63e81440), + 40: uint32(0x55ca396a), + 41: uint32(0x2aab10b6), + 42: uint32(0xb4cc5c34), + 43: uint32(0x1141e8ce), + 44: uint32(0xa15486af), + 45: uint32(0x7c72e993), + 46: uint32(0xb3ee1411), + 47: uint32(0x636fbc2a), + 48: uint32(0x2ba9c55d), + 49: uint32(0x741831f6), + 50: uint32(0xce5c3e16), + 51: uint32(0x9b87931e), + 52: uint32(0xafd6ba33), + 53: uint32(0x6c24cf5c), + 54: uint32(0x7a325381), + 55: uint32(0x28958677), + 56: uint32(0x3b8f4898), + 57: uint32(0x6b4bb9af), + 58: uint32(0xc4bfe81b), + 59: uint32(0x66282193), + 60: uint32(0x61d809cc), + 61: uint32(0xfb21a991), + 62: uint32(0x487cac60), + 63: uint32(0x5dec8032), + 64: uint32(0xef845d5d), + 65: uint32(0xe98575b1), + 66: uint32(0xdc262302), + 67: uint32(0xeb651b88), + 68: uint32(0x23893e81), + 69: uint32(0xd396acc5), + 70: uint32(0x0f6d6ff3), + 71: uint32(0x83f44239), + 72: uint32(0x2e0b4482), + 73: uint32(0xa4842004), + 74: uint32(0x69c8f04a), + 75: uint32(0x9e1f9b5e), + 76: uint32(0x21c66842), + 77: uint32(0xf6e96c9a), + 78: uint32(0x670c9c61), + 79: uint32(0xabd388f0), + 80: uint32(0x6a51a0d2), + 81: uint32(0xd8542f68), + 82: uint32(0x960fa728), + 83: uint32(0xab5133a3), + 84: uint32(0x6eef0b6c), + 85: uint32(0x137a3be4), + 86: uint32(0xba3bf050), + 87: uint32(0x7efb2a98), + 88: uint32(0xa1f1651d), + 89: uint32(0x39af0176), + 90: uint32(0x66ca593e), + 91: uint32(0x82430e88), + 92: uint32(0x8cee8619), + 93: uint32(0x456f9fb4), + 94: uint32(0x7d84a5c3), + 95: uint32(0x3b8b5ebe), + 96: uint32(0xe06f75d8), + 97: uint32(0x85c12073), + 98: uint32(0x401a449f), + 99: uint32(0x56c16aa6), + 100: uint32(0x4ed3aa62), + 101: uint32(0x363f7706), + 102: uint32(0x1bfedf72), + 103: uint32(0x429b023d), + 104: uint32(0x37d0d724), + 105: uint32(0xd00a1248), + 106: uint32(0xdb0fead3), + 107: uint32(0x49f1c09b), + 108: uint32(0x075372c9), + 109: uint32(0x80991b7b), + 110: uint32(0x25d479d8), + 111: uint32(0xf6e8def7), + 112: uint32(0xe3fe501a), + 113: uint32(0xb6794c3b), + 114: uint32(0x976ce0bd), + 115: uint32(0x04c006ba), + 116: uint32(0xc1a94fb6), + 117: uint32(0x409f60c4), + 118: uint32(0x5e5c9ec2), + 119: uint32(0x196a2463), + 120: uint32(0x68fb6faf), + 121: uint32(0x3e6c53b5), + 122: uint32(0x1339b2eb), + 123: uint32(0x3b52ec6f), + 124: uint32(0x6dfc511f), + 125: uint32(0x9b30952c), + 126: uint32(0xcc814544), + 127: uint32(0xaf5ebd09), + 128: uint32(0xbee3d004), + 129: uint32(0xde334afd), + 130: uint32(0x660f2807), + 131: uint32(0x192e4bb3), + 132: uint32(0xc0cba857), + 133: uint32(0x45c8740f), + 134: uint32(0xd20b5f39), + 135: uint32(0xb9d3fbdb), + 136: uint32(0x5579c0bd), + 137: uint32(0x1a60320a), + 138: uint32(0xd6a100c6), + 139: uint32(0x402c7279), + 140: uint32(0x679f25fe), + 141: uint32(0xfb1fa3cc), + 142: uint32(0x8ea5e9f8), + 143: uint32(0xdb3222f8), + 144: uint32(0x3c7516df), + 145: uint32(0xfd616b15), + 146: uint32(0x2f501ec8), + 147: uint32(0xad0552ab), + 148: uint32(0x323db5fa), + 149: uint32(0xfd238760), + 150: uint32(0x53317b48), + 151: uint32(0x3e00df82), + 152: uint32(0x9e5c57bb), + 153: uint32(0xca6f8ca0), + 154: uint32(0x1a87562e), + 155: uint32(0xdf1769db), + 156: uint32(0xd542a8f6), + 157: uint32(0x287effc3), + 158: uint32(0xac6732c6), + 159: uint32(0x8c4f5573), + 160: uint32(0x695b27b0), + 161: uint32(0xbbca58c8), + 162: uint32(0xe1ffa35d), + 163: uint32(0xb8f011a0), + 164: uint32(0x10fa3d98), + 165: uint32(0xfd2183b8), + 166: uint32(0x4afcb56c), + 167: uint32(0x2dd1d35b), + 168: uint32(0x9a53e479), + 169: uint32(0xb6f84565), + 170: uint32(0xd28e49bc), + 171: uint32(0x4bfb9790), + 172: uint32(0xe1ddf2da), + 173: uint32(0xa4cb7e33), + 174: uint32(0x62fb1341), + 175: uint32(0xcee4c6e8), + 176: uint32(0xef20cada), + 177: uint32(0x36774c01), + 178: uint32(0xd07e9efe), + 179: uint32(0x2bf11fb4), + 180: uint32(0x95dbda4d), + 181: uint32(0xae909198), + 182: uint32(0xeaad8e71), + 183: uint32(0x6b93d5a0), + 184: uint32(0xd08ed1d0), + 185: uint32(0xafc725e0), + 186: uint32(0x8e3c5b2f), + 187: uint32(0x8e7594b7), + 188: uint32(0x8ff6e2fb), + 189: uint32(0xf2122b64), + 190: uint32(0x8888b812), + 191: uint32(0x900df01c), + 192: uint32(0x4fad5ea0), + 193: uint32(0x688fc31c), + 194: uint32(0xd1cff191), + 195: uint32(0xb3a8c1ad), + 196: uint32(0x2f2f2218), + 197: uint32(0xbe0e1777), + 198: uint32(0xea752dfe), + 199: uint32(0x8b021fa1), + 200: uint32(0xe5a0cc0f), + 201: uint32(0xb56f74e8), + 202: uint32(0x18acf3d6), + 203: uint32(0xce89e299), + 204: uint32(0xb4a84fe0), + 205: uint32(0xfd13e0b7), + 206: uint32(0x7cc43b81), + 207: uint32(0xd2ada8d9), + 208: uint32(0x165fa266), + 209: uint32(0x80957705), + 210: uint32(0x93cc7314), + 211: uint32(0x211a1477), + 212: uint32(0xe6ad2065), + 213: uint32(0x77b5fa86), + 214: uint32(0xc75442f5), + 215: uint32(0xfb9d35cf), + 216: uint32(0xebcdaf0c), + 217: uint32(0x7b3e89a0), + 218: uint32(0xd6411bd3), + 219: uint32(0xae1e7e49), + 220: uint32(0x00250e2d), + 221: uint32(0x2071b35e), + 222: uint32(0x226800bb), + 223: uint32(0x57b8e0af), + 224: uint32(0x2464369b), + 225: uint32(0xf009b91e), + 226: uint32(0x5563911d), + 227: uint32(0x59dfa6aa), + 228: uint32(0x78c14389), + 229: uint32(0xd95a537f), + 230: uint32(0x207d5ba2), + 231: uint32(0x02e5b9c5), + 232: uint32(0x83260376), + 233: uint32(0x6295cfa9), + 234: uint32(0x11c81968), + 235: uint32(0x4e734a41), + 236: uint32(0xb3472dca), + 237: uint32(0x7b14a94a), + 238: uint32(0x1b510052), + 239: uint32(0x9a532915), + 240: uint32(0xd60f573f), + 241: uint32(0xbc9bc6e4), + 242: uint32(0x2b60a476), + 243: uint32(0x81e67400), + 244: uint32(0x08ba6fb5), + 245: uint32(0x571be91f), + 246: uint32(0xf296ec6b), + 247: uint32(0x2a0dd915), + 248: uint32(0xb6636521), + 249: uint32(0xe7b9f9b6), + 250: uint32(0xff34052e), + 251: uint32(0xc5855664), + 252: uint32(0x53b02d5d), + 253: uint32(0xa99f8fa1), + 254: uint32(0x08ba4799), + 255: uint32(0x6e85076a), + }, + 1: { + 0: uint32(0x4b7a70e9), + 1: uint32(0xb5b32944), + 2: uint32(0xdb75092e), + 3: uint32(0xc4192623), + 4: uint32(0xad6ea6b0), + 5: uint32(0x49a7df7d), + 6: uint32(0x9cee60b8), + 7: uint32(0x8fedb266), + 8: uint32(0xecaa8c71), + 9: uint32(0x699a17ff), + 10: uint32(0x5664526c), + 11: uint32(0xc2b19ee1), + 12: uint32(0x193602a5), + 13: uint32(0x75094c29), + 14: uint32(0xa0591340), + 15: uint32(0xe4183a3e), + 16: uint32(0x3f54989a), + 17: uint32(0x5b429d65), + 18: uint32(0x6b8fe4d6), + 19: uint32(0x99f73fd6), + 20: uint32(0xa1d29c07), + 21: uint32(0xefe830f5), + 22: uint32(0x4d2d38e6), + 23: uint32(0xf0255dc1), + 24: uint32(0x4cdd2086), + 25: uint32(0x8470eb26), + 26: uint32(0x6382e9c6), + 27: uint32(0x021ecc5e), + 28: uint32(0x09686b3f), + 29: uint32(0x3ebaefc9), + 30: uint32(0x3c971814), + 31: uint32(0x6b6a70a1), + 32: uint32(0x687f3584), + 33: uint32(0x52a0e286), + 34: uint32(0xb79c5305), + 35: uint32(0xaa500737), + 36: uint32(0x3e07841c), + 37: uint32(0x7fdeae5c), + 38: uint32(0x8e7d44ec), + 39: uint32(0x5716f2b8), + 40: uint32(0xb03ada37), + 41: uint32(0xf0500c0d), + 42: uint32(0xf01c1f04), + 43: uint32(0x0200b3ff), + 44: uint32(0xae0cf51a), + 45: uint32(0x3cb574b2), + 46: uint32(0x25837a58), + 47: uint32(0xdc0921bd), + 48: uint32(0xd19113f9), + 49: uint32(0x7ca92ff6), + 50: uint32(0x94324773), + 51: uint32(0x22f54701), + 52: uint32(0x3ae5e581), + 53: uint32(0x37c2dadc), + 54: uint32(0xc8b57634), + 55: uint32(0x9af3dda7), + 56: uint32(0xa9446146), + 57: uint32(0x0fd0030e), + 58: uint32(0xecc8c73e), + 59: uint32(0xa4751e41), + 60: uint32(0xe238cd99), + 61: uint32(0x3bea0e2f), + 62: uint32(0x3280bba1), + 63: uint32(0x183eb331), + 64: uint32(0x4e548b38), + 65: uint32(0x4f6db908), + 66: uint32(0x6f420d03), + 67: uint32(0xf60a04bf), + 68: uint32(0x2cb81290), + 69: uint32(0x24977c79), + 70: uint32(0x5679b072), + 71: uint32(0xbcaf89af), + 72: uint32(0xde9a771f), + 73: uint32(0xd9930810), + 74: uint32(0xb38bae12), + 75: uint32(0xdccf3f2e), + 76: uint32(0x5512721f), + 77: uint32(0x2e6b7124), + 78: uint32(0x501adde6), + 79: uint32(0x9f84cd87), + 80: uint32(0x7a584718), + 81: uint32(0x7408da17), + 82: uint32(0xbc9f9abc), + 83: uint32(0xe94b7d8c), + 84: uint32(0xec7aec3a), + 85: uint32(0xdb851dfa), + 86: uint32(0x63094366), + 87: uint32(0xc464c3d2), + 88: uint32(0xef1c1847), + 89: uint32(0x3215d908), + 90: uint32(0xdd433b37), + 91: uint32(0x24c2ba16), + 92: uint32(0x12a14d43), + 93: uint32(0x2a65c451), + 94: uint32(0x50940002), + 95: uint32(0x133ae4dd), + 96: uint32(0x71dff89e), + 97: uint32(0x10314e55), + 98: uint32(0x81ac77d6), + 99: uint32(0x5f11199b), + 100: uint32(0x043556f1), + 101: uint32(0xd7a3c76b), + 102: uint32(0x3c11183b), + 103: uint32(0x5924a509), + 104: uint32(0xf28fe6ed), + 105: uint32(0x97f1fbfa), + 106: uint32(0x9ebabf2c), + 107: uint32(0x1e153c6e), + 108: uint32(0x86e34570), + 109: uint32(0xeae96fb1), + 110: uint32(0x860e5e0a), + 111: uint32(0x5a3e2ab3), + 112: uint32(0x771fe71c), + 113: uint32(0x4e3d06fa), + 114: uint32(0x2965dcb9), + 115: uint32(0x99e71d0f), + 116: uint32(0x803e89d6), + 117: uint32(0x5266c825), + 118: uint32(0x2e4cc978), + 119: uint32(0x9c10b36a), + 120: uint32(0xc6150eba), + 121: uint32(0x94e2ea78), + 122: uint32(0xa5fc3c53), + 123: uint32(0x1e0a2df4), + 124: uint32(0xf2f74ea7), + 125: uint32(0x361d2b3d), + 126: uint32(0x1939260f), + 127: uint32(0x19c27960), + 128: uint32(0x5223a708), + 129: uint32(0xf71312b6), + 130: uint32(0xebadfe6e), + 131: uint32(0xeac31f66), + 132: uint32(0xe3bc4595), + 133: uint32(0xa67bc883), + 134: uint32(0xb17f37d1), + 135: uint32(0x018cff28), + 136: uint32(0xc332ddef), + 137: uint32(0xbe6c5aa5), + 138: uint32(0x65582185), + 139: uint32(0x68ab9802), + 140: uint32(0xeecea50f), + 141: uint32(0xdb2f953b), + 142: uint32(0x2aef7dad), + 143: uint32(0x5b6e2f84), + 144: uint32(0x1521b628), + 145: uint32(0x29076170), + 146: uint32(0xecdd4775), + 147: uint32(0x619f1510), + 148: uint32(0x13cca830), + 149: uint32(0xeb61bd96), + 150: uint32(0x0334fe1e), + 151: uint32(0xaa0363cf), + 152: uint32(0xb5735c90), + 153: uint32(0x4c70a239), + 154: uint32(0xd59e9e0b), + 155: uint32(0xcbaade14), + 156: uint32(0xeecc86bc), + 157: uint32(0x60622ca7), + 158: uint32(0x9cab5cab), + 159: uint32(0xb2f3846e), + 160: uint32(0x648b1eaf), + 161: uint32(0x19bdf0ca), + 162: uint32(0xa02369b9), + 163: uint32(0x655abb50), + 164: uint32(0x40685a32), + 165: uint32(0x3c2ab4b3), + 166: uint32(0x319ee9d5), + 167: uint32(0xc021b8f7), + 168: uint32(0x9b540b19), + 169: uint32(0x875fa099), + 170: uint32(0x95f7997e), + 171: uint32(0x623d7da8), + 172: uint32(0xf837889a), + 173: uint32(0x97e32d77), + 174: uint32(0x11ed935f), + 175: uint32(0x16681281), + 176: uint32(0x0e358829), + 177: uint32(0xc7e61fd6), + 178: uint32(0x96dedfa1), + 179: uint32(0x7858ba99), + 180: uint32(0x57f584a5), + 181: uint32(0x1b227263), + 182: uint32(0x9b83c3ff), + 183: uint32(0x1ac24696), + 184: uint32(0xcdb30aeb), + 185: uint32(0x532e3054), + 186: uint32(0x8fd948e4), + 187: uint32(0x6dbc3128), + 188: uint32(0x58ebf2ef), + 189: uint32(0x34c6ffea), + 190: uint32(0xfe28ed61), + 191: uint32(0xee7c3c73), + 192: uint32(0x5d4a14d9), + 193: uint32(0xe864b7e3), + 194: uint32(0x42105d14), + 195: uint32(0x203e13e0), + 196: uint32(0x45eee2b6), + 197: uint32(0xa3aaabea), + 198: uint32(0xdb6c4f15), + 199: uint32(0xfacb4fd0), + 200: uint32(0xc742f442), + 201: uint32(0xef6abbb5), + 202: uint32(0x654f3b1d), + 203: uint32(0x41cd2105), + 204: uint32(0xd81e799e), + 205: uint32(0x86854dc7), + 206: uint32(0xe44b476a), + 207: uint32(0x3d816250), + 208: uint32(0xcf62a1f2), + 209: uint32(0x5b8d2646), + 210: uint32(0xfc8883a0), + 211: uint32(0xc1c7b6a3), + 212: uint32(0x7f1524c3), + 213: uint32(0x69cb7492), + 214: uint32(0x47848a0b), + 215: uint32(0x5692b285), + 216: uint32(0x095bbf00), + 217: uint32(0xad19489d), + 218: uint32(0x1462b174), + 219: uint32(0x23820e00), + 220: uint32(0x58428d2a), + 221: uint32(0x0c55f5ea), + 222: uint32(0x1dadf43e), + 223: uint32(0x233f7061), + 224: uint32(0x3372f092), + 225: uint32(0x8d937e41), + 226: uint32(0xd65fecf1), + 227: uint32(0x6c223bdb), + 228: uint32(0x7cde3759), + 229: uint32(0xcbee7460), + 230: uint32(0x4085f2a7), + 231: uint32(0xce77326e), + 232: uint32(0xa6078084), + 233: uint32(0x19f8509e), + 234: uint32(0xe8efd855), + 235: uint32(0x61d99735), + 236: uint32(0xa969a7aa), + 237: uint32(0xc50c06c2), + 238: uint32(0x5a04abfc), + 239: uint32(0x800bcadc), + 240: uint32(0x9e447a2e), + 241: uint32(0xc3453484), + 242: uint32(0xfdd56705), + 243: uint32(0x0e1e9ec9), + 244: uint32(0xdb73dbd3), + 245: uint32(0x105588cd), + 246: uint32(0x675fda79), + 247: uint32(0xe3674340), + 248: uint32(0xc5c43465), + 249: uint32(0x713e38d8), + 250: uint32(0x3d28f89e), + 251: uint32(0xf16dff20), + 252: uint32(0x153e21e7), + 253: uint32(0x8fb03d4a), + 254: uint32(0xe6e39f2b), + 255: uint32(0xdb83adf7), + }, + 2: { + 0: uint32(0xe93d5a68), + 1: uint32(0x948140f7), + 2: uint32(0xf64c261c), + 3: uint32(0x94692934), + 4: uint32(0x411520f7), + 5: uint32(0x7602d4f7), + 6: uint32(0xbcf46b2e), + 7: uint32(0xd4a20068), + 8: uint32(0xd4082471), + 9: uint32(0x3320f46a), + 10: uint32(0x43b7d4b7), + 11: uint32(0x500061af), + 12: uint32(0x1e39f62e), + 13: uint32(0x97244546), + 14: uint32(0x14214f74), + 15: uint32(0xbf8b8840), + 16: uint32(0x4d95fc1d), + 17: uint32(0x96b591af), + 18: uint32(0x70f4ddd3), + 19: uint32(0x66a02f45), + 20: uint32(0xbfbc09ec), + 21: uint32(0x03bd9785), + 22: uint32(0x7fac6dd0), + 23: uint32(0x31cb8504), + 24: uint32(0x96eb27b3), + 25: uint32(0x55fd3941), + 26: uint32(0xda2547e6), + 27: uint32(0xabca0a9a), + 28: uint32(0x28507825), + 29: uint32(0x530429f4), + 30: uint32(0x0a2c86da), + 31: uint32(0xe9b66dfb), + 32: uint32(0x68dc1462), + 33: uint32(0xd7486900), + 34: uint32(0x680ec0a4), + 35: uint32(0x27a18dee), + 36: uint32(0x4f3ffea2), + 37: uint32(0xe887ad8c), + 38: uint32(0xb58ce006), + 39: uint32(0x7af4d6b6), + 40: uint32(0xaace1e7c), + 41: uint32(0xd3375fec), + 42: uint32(0xce78a399), + 43: uint32(0x406b2a42), + 44: uint32(0x20fe9e35), + 45: uint32(0xd9f385b9), + 46: uint32(0xee39d7ab), + 47: uint32(0x3b124e8b), + 48: uint32(0x1dc9faf7), + 49: uint32(0x4b6d1856), + 50: uint32(0x26a36631), + 51: uint32(0xeae397b2), + 52: uint32(0x3a6efa74), + 53: uint32(0xdd5b4332), + 54: uint32(0x6841e7f7), + 55: uint32(0xca7820fb), + 56: uint32(0xfb0af54e), + 57: uint32(0xd8feb397), + 58: uint32(0x454056ac), + 59: uint32(0xba489527), + 60: uint32(0x55533a3a), + 61: uint32(0x20838d87), + 62: uint32(0xfe6ba9b7), + 63: uint32(0xd096954b), + 64: uint32(0x55a867bc), + 65: uint32(0xa1159a58), + 66: uint32(0xcca92963), + 67: uint32(0x99e1db33), + 68: uint32(0xa62a4a56), + 69: uint32(0x3f3125f9), + 70: uint32(0x5ef47e1c), + 71: uint32(0x9029317c), + 72: uint32(0xfdf8e802), + 73: uint32(0x04272f70), + 74: uint32(0x80bb155c), + 75: uint32(0x05282ce3), + 76: uint32(0x95c11548), + 77: uint32(0xe4c66d22), + 78: uint32(0x48c1133f), + 79: uint32(0xc70f86dc), + 80: uint32(0x07f9c9ee), + 81: uint32(0x41041f0f), + 82: uint32(0x404779a4), + 83: uint32(0x5d886e17), + 84: uint32(0x325f51eb), + 85: uint32(0xd59bc0d1), + 86: uint32(0xf2bcc18f), + 87: uint32(0x41113564), + 88: uint32(0x257b7834), + 89: uint32(0x602a9c60), + 90: uint32(0xdff8e8a3), + 91: uint32(0x1f636c1b), + 92: uint32(0x0e12b4c2), + 93: uint32(0x02e1329e), + 94: uint32(0xaf664fd1), + 95: uint32(0xcad18115), + 96: uint32(0x6b2395e0), + 97: uint32(0x333e92e1), + 98: uint32(0x3b240b62), + 99: uint32(0xeebeb922), + 100: uint32(0x85b2a20e), + 101: uint32(0xe6ba0d99), + 102: uint32(0xde720c8c), + 103: uint32(0x2da2f728), + 104: uint32(0xd0127845), + 105: uint32(0x95b794fd), + 106: uint32(0x647d0862), + 107: uint32(0xe7ccf5f0), + 108: uint32(0x5449a36f), + 109: uint32(0x877d48fa), + 110: uint32(0xc39dfd27), + 111: uint32(0xf33e8d1e), + 112: uint32(0x0a476341), + 113: uint32(0x992eff74), + 114: uint32(0x3a6f6eab), + 115: uint32(0xf4f8fd37), + 116: uint32(0xa812dc60), + 117: uint32(0xa1ebddf8), + 118: uint32(0x991be14c), + 119: uint32(0xdb6e6b0d), + 120: uint32(0xc67b5510), + 121: uint32(0x6d672c37), + 122: uint32(0x2765d43b), + 123: uint32(0xdcd0e804), + 124: uint32(0xf1290dc7), + 125: uint32(0xcc00ffa3), + 126: uint32(0xb5390f92), + 127: uint32(0x690fed0b), + 128: uint32(0x667b9ffb), + 129: uint32(0xcedb7d9c), + 130: uint32(0xa091cf0b), + 131: uint32(0xd9155ea3), + 132: uint32(0xbb132f88), + 133: uint32(0x515bad24), + 134: uint32(0x7b9479bf), + 135: uint32(0x763bd6eb), + 136: uint32(0x37392eb3), + 137: uint32(0xcc115979), + 138: uint32(0x8026e297), + 139: uint32(0xf42e312d), + 140: uint32(0x6842ada7), + 141: uint32(0xc66a2b3b), + 142: uint32(0x12754ccc), + 143: uint32(0x782ef11c), + 144: uint32(0x6a124237), + 145: uint32(0xb79251e7), + 146: uint32(0x06a1bbe6), + 147: uint32(0x4bfb6350), + 148: uint32(0x1a6b1018), + 149: uint32(0x11caedfa), + 150: uint32(0x3d25bdd8), + 151: uint32(0xe2e1c3c9), + 152: uint32(0x44421659), + 153: uint32(0x0a121386), + 154: uint32(0xd90cec6e), + 155: uint32(0xd5abea2a), + 156: uint32(0x64af674e), + 157: uint32(0xda86a85f), + 158: uint32(0xbebfe988), + 159: uint32(0x64e4c3fe), + 160: uint32(0x9dbc8057), + 161: uint32(0xf0f7c086), + 162: uint32(0x60787bf8), + 163: uint32(0x6003604d), + 164: uint32(0xd1fd8346), + 165: uint32(0xf6381fb0), + 166: uint32(0x7745ae04), + 167: uint32(0xd736fccc), + 168: uint32(0x83426b33), + 169: uint32(0xf01eab71), + 170: uint32(0xb0804187), + 171: uint32(0x3c005e5f), + 172: uint32(0x77a057be), + 173: uint32(0xbde8ae24), + 174: uint32(0x55464299), + 175: uint32(0xbf582e61), + 176: uint32(0x4e58f48f), + 177: uint32(0xf2ddfda2), + 178: uint32(0xf474ef38), + 179: uint32(0x8789bdc2), + 180: uint32(0x5366f9c3), + 181: uint32(0xc8b38e74), + 182: uint32(0xb475f255), + 183: uint32(0x46fcd9b9), + 184: uint32(0x7aeb2661), + 185: uint32(0x8b1ddf84), + 186: uint32(0x846a0e79), + 187: uint32(0x915f95e2), + 188: uint32(0x466e598e), + 189: uint32(0x20b45770), + 190: uint32(0x8cd55591), + 191: uint32(0xc902de4c), + 192: uint32(0xb90bace1), + 193: uint32(0xbb8205d0), + 194: uint32(0x11a86248), + 195: uint32(0x7574a99e), + 196: uint32(0xb77f19b6), + 197: uint32(0xe0a9dc09), + 198: uint32(0x662d09a1), + 199: uint32(0xc4324633), + 200: uint32(0xe85a1f02), + 201: uint32(0x09f0be8c), + 202: uint32(0x4a99a025), + 203: uint32(0x1d6efe10), + 204: uint32(0x1ab93d1d), + 205: uint32(0x0ba5a4df), + 206: uint32(0xa186f20f), + 207: uint32(0x2868f169), + 208: uint32(0xdcb7da83), + 209: uint32(0x573906fe), + 210: uint32(0xa1e2ce9b), + 211: uint32(0x4fcd7f52), + 212: uint32(0x50115e01), + 213: uint32(0xa70683fa), + 214: uint32(0xa002b5c4), + 215: uint32(0x0de6d027), + 216: uint32(0x9af88c27), + 217: uint32(0x773f8641), + 218: uint32(0xc3604c06), + 219: uint32(0x61a806b5), + 220: uint32(0xf0177a28), + 221: uint32(0xc0f586e0), + 222: uint32(0x006058aa), + 223: uint32(0x30dc7d62), + 224: uint32(0x11e69ed7), + 225: uint32(0x2338ea63), + 226: uint32(0x53c2dd94), + 227: uint32(0xc2c21634), + 228: uint32(0xbbcbee56), + 229: uint32(0x90bcb6de), + 230: uint32(0xebfc7da1), + 231: uint32(0xce591d76), + 232: uint32(0x6f05e409), + 233: uint32(0x4b7c0188), + 234: uint32(0x39720a3d), + 235: uint32(0x7c927c24), + 236: uint32(0x86e3725f), + 237: uint32(0x724d9db9), + 238: uint32(0x1ac15bb4), + 239: uint32(0xd39eb8fc), + 240: uint32(0xed545578), + 241: uint32(0x08fca5b5), + 242: uint32(0xd83d7cd3), + 243: uint32(0x4dad0fc4), + 244: uint32(0x1e50ef5e), + 245: uint32(0xb161e6f8), + 246: uint32(0xa28514d9), + 247: uint32(0x6c51133c), + 248: uint32(0x6fd5c7e7), + 249: uint32(0x56e14ec4), + 250: uint32(0x362abfce), + 251: uint32(0xddc6c837), + 252: uint32(0xd79a3234), + 253: uint32(0x92638212), + 254: uint32(0x670efa8e), + 255: uint32(0x406000e0), + }, + 3: { + 0: uint32(0x3a39ce37), + 1: uint32(0xd3faf5cf), + 2: uint32(0xabc27737), + 3: uint32(0x5ac52d1b), + 4: uint32(0x5cb0679e), + 5: uint32(0x4fa33742), + 6: uint32(0xd3822740), + 7: uint32(0x99bc9bbe), + 8: uint32(0xd5118e9d), + 9: uint32(0xbf0f7315), + 10: uint32(0xd62d1c7e), + 11: uint32(0xc700c47b), + 12: uint32(0xb78c1b6b), + 13: uint32(0x21a19045), + 14: uint32(0xb26eb1be), + 15: uint32(0x6a366eb4), + 16: uint32(0x5748ab2f), + 17: uint32(0xbc946e79), + 18: uint32(0xc6a376d2), + 19: uint32(0x6549c2c8), + 20: uint32(0x530ff8ee), + 21: uint32(0x468dde7d), + 22: uint32(0xd5730a1d), + 23: uint32(0x4cd04dc6), + 24: uint32(0x2939bbdb), + 25: uint32(0xa9ba4650), + 26: uint32(0xac9526e8), + 27: uint32(0xbe5ee304), + 28: uint32(0xa1fad5f0), + 29: uint32(0x6a2d519a), + 30: uint32(0x63ef8ce2), + 31: uint32(0x9a86ee22), + 32: uint32(0xc089c2b8), + 33: uint32(0x43242ef6), + 34: uint32(0xa51e03aa), + 35: uint32(0x9cf2d0a4), + 36: uint32(0x83c061ba), + 37: uint32(0x9be96a4d), + 38: uint32(0x8fe51550), + 39: uint32(0xba645bd6), + 40: uint32(0x2826a2f9), + 41: uint32(0xa73a3ae1), + 42: uint32(0x4ba99586), + 43: uint32(0xef5562e9), + 44: uint32(0xc72fefd3), + 45: uint32(0xf752f7da), + 46: uint32(0x3f046f69), + 47: uint32(0x77fa0a59), + 48: uint32(0x80e4a915), + 49: uint32(0x87b08601), + 50: uint32(0x9b09e6ad), + 51: uint32(0x3b3ee593), + 52: uint32(0xe990fd5a), + 53: uint32(0x9e34d797), + 54: uint32(0x2cf0b7d9), + 55: uint32(0x022b8b51), + 56: uint32(0x96d5ac3a), + 57: uint32(0x017da67d), + 58: uint32(0xd1cf3ed6), + 59: uint32(0x7c7d2d28), + 60: uint32(0x1f9f25cf), + 61: uint32(0xadf2b89b), + 62: uint32(0x5ad6b472), + 63: uint32(0x5a88f54c), + 64: uint32(0xe029ac71), + 65: uint32(0xe019a5e6), + 66: uint32(0x47b0acfd), + 67: uint32(0xed93fa9b), + 68: uint32(0xe8d3c48d), + 69: uint32(0x283b57cc), + 70: uint32(0xf8d56629), + 71: uint32(0x79132e28), + 72: uint32(0x785f0191), + 73: uint32(0xed756055), + 74: uint32(0xf7960e44), + 75: uint32(0xe3d35e8c), + 76: uint32(0x15056dd4), + 77: uint32(0x88f46dba), + 78: uint32(0x03a16125), + 79: uint32(0x0564f0bd), + 80: uint32(0xc3eb9e15), + 81: uint32(0x3c9057a2), + 82: uint32(0x97271aec), + 83: uint32(0xa93a072a), + 84: uint32(0x1b3f6d9b), + 85: uint32(0x1e6321f5), + 86: uint32(0xf59c66fb), + 87: uint32(0x26dcf319), + 88: uint32(0x7533d928), + 89: uint32(0xb155fdf5), + 90: uint32(0x03563482), + 91: uint32(0x8aba3cbb), + 92: uint32(0x28517711), + 93: uint32(0xc20ad9f8), + 94: uint32(0xabcc5167), + 95: uint32(0xccad925f), + 96: uint32(0x4de81751), + 97: uint32(0x3830dc8e), + 98: uint32(0x379d5862), + 99: uint32(0x9320f991), + 100: uint32(0xea7a90c2), + 101: uint32(0xfb3e7bce), + 102: uint32(0x5121ce64), + 103: uint32(0x774fbe32), + 104: uint32(0xa8b6e37e), + 105: uint32(0xc3293d46), + 106: uint32(0x48de5369), + 107: uint32(0x6413e680), + 108: uint32(0xa2ae0810), + 109: uint32(0xdd6db224), + 110: uint32(0x69852dfd), + 111: uint32(0x09072166), + 112: uint32(0xb39a460a), + 113: uint32(0x6445c0dd), + 114: uint32(0x586cdecf), + 115: uint32(0x1c20c8ae), + 116: uint32(0x5bbef7dd), + 117: uint32(0x1b588d40), + 118: uint32(0xccd2017f), + 119: uint32(0x6bb4e3bb), + 120: uint32(0xdda26a7e), + 121: uint32(0x3a59ff45), + 122: uint32(0x3e350a44), + 123: uint32(0xbcb4cdd5), + 124: uint32(0x72eacea8), + 125: uint32(0xfa6484bb), + 126: uint32(0x8d6612ae), + 127: uint32(0xbf3c6f47), + 128: uint32(0xd29be463), + 129: uint32(0x542f5d9e), + 130: uint32(0xaec2771b), + 131: uint32(0xf64e6370), + 132: uint32(0x740e0d8d), + 133: uint32(0xe75b1357), + 134: uint32(0xf8721671), + 135: uint32(0xaf537d5d), + 136: uint32(0x4040cb08), + 137: uint32(0x4eb4e2cc), + 138: uint32(0x34d2466a), + 139: uint32(0x0115af84), + 140: uint32(0xe1b00428), + 141: uint32(0x95983a1d), + 142: uint32(0x06b89fb4), + 143: uint32(0xce6ea048), + 144: uint32(0x6f3f3b82), + 145: uint32(0x3520ab82), + 146: uint32(0x011a1d4b), + 147: uint32(0x277227f8), + 148: uint32(0x611560b1), + 149: uint32(0xe7933fdc), + 150: uint32(0xbb3a792b), + 151: uint32(0x344525bd), + 152: uint32(0xa08839e1), + 153: uint32(0x51ce794b), + 154: uint32(0x2f32c9b7), + 155: uint32(0xa01fbac9), + 156: uint32(0xe01cc87e), + 157: uint32(0xbcc7d1f6), + 158: uint32(0xcf0111c3), + 159: uint32(0xa1e8aac7), + 160: uint32(0x1a908749), + 161: uint32(0xd44fbd9a), + 162: uint32(0xd0dadecb), + 163: uint32(0xd50ada38), + 164: uint32(0x0339c32a), + 165: uint32(0xc6913667), + 166: uint32(0x8df9317c), + 167: uint32(0xe0b12b4f), + 168: uint32(0xf79e59b7), + 169: uint32(0x43f5bb3a), + 170: uint32(0xf2d519ff), + 171: uint32(0x27d9459c), + 172: uint32(0xbf97222c), + 173: uint32(0x15e6fc2a), + 174: uint32(0x0f91fc71), + 175: uint32(0x9b941525), + 176: uint32(0xfae59361), + 177: uint32(0xceb69ceb), + 178: uint32(0xc2a86459), + 179: uint32(0x12baa8d1), + 180: uint32(0xb6c1075e), + 181: uint32(0xe3056a0c), + 182: uint32(0x10d25065), + 183: uint32(0xcb03a442), + 184: uint32(0xe0ec6e0e), + 185: uint32(0x1698db3b), + 186: uint32(0x4c98a0be), + 187: uint32(0x3278e964), + 188: uint32(0x9f1f9532), + 189: uint32(0xe0d392df), + 190: uint32(0xd3a0342b), + 191: uint32(0x8971f21e), + 192: uint32(0x1b0a7441), + 193: uint32(0x4ba3348c), + 194: uint32(0xc5be7120), + 195: uint32(0xc37632d8), + 196: uint32(0xdf359f8d), + 197: uint32(0x9b992f2e), + 198: uint32(0xe60b6f47), + 199: uint32(0x0fe3f11d), + 200: uint32(0xe54cda54), + 201: uint32(0x1edad891), + 202: uint32(0xce6279cf), + 203: uint32(0xcd3e7e6f), + 204: uint32(0x1618b166), + 205: uint32(0xfd2c1d05), + 206: uint32(0x848fd2c5), + 207: uint32(0xf6fb2299), + 208: uint32(0xf523f357), + 209: uint32(0xa6327623), + 210: uint32(0x93a83531), + 211: uint32(0x56cccd02), + 212: uint32(0xacf08162), + 213: uint32(0x5a75ebb5), + 214: uint32(0x6e163697), + 215: uint32(0x88d273cc), + 216: uint32(0xde966292), + 217: uint32(0x81b949d0), + 218: uint32(0x4c50901b), + 219: uint32(0x71c65614), + 220: uint32(0xe6c6c7bd), + 221: uint32(0x327a140a), + 222: uint32(0x45e1d006), + 223: uint32(0xc3f27b9a), + 224: uint32(0xc9aa53fd), + 225: uint32(0x62a80f00), + 226: uint32(0xbb25bfe2), + 227: uint32(0x35bdd2f6), + 228: uint32(0x71126905), + 229: uint32(0xb2040222), + 230: uint32(0xb6cbcf7c), + 231: uint32(0xcd769c2b), + 232: uint32(0x53113ec0), + 233: uint32(0x1640e3d3), + 234: uint32(0x38abbd60), + 235: uint32(0x2547adf0), + 236: uint32(0xba38209c), + 237: uint32(0xf746ce76), + 238: uint32(0x77afa1c5), + 239: uint32(0x20756060), + 240: uint32(0x85cbfe4e), + 241: uint32(0x8ae88dd8), + 242: uint32(0x7aaaf9b0), + 243: uint32(0x4cf9aa7e), + 244: uint32(0x1948c25c), + 245: uint32(0x02fb8a8c), + 246: uint32(0x01c36ae4), + 247: uint32(0xd6ebe1f9), + 248: uint32(0x90d4f869), + 249: uint32(0xa65cdea0), + 250: uint32(0x3f09252d), + 251: uint32(0xc208e69f), + 252: uint32(0xb74e6132), + 253: uint32(0xce77e25b), + 254: uint32(0x578fdfe3), + 255: uint32(0x3ac372e6), + }, + }, +})) + +var _BF_itoa64 = [65]uint8{'.', '/', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9'} + +var _BF_atoi64 = [96]uint8{ + 0: uint8(64), + 1: uint8(64), + 2: uint8(64), + 3: uint8(64), + 4: uint8(64), + 5: uint8(64), + 6: uint8(64), + 7: uint8(64), + 8: uint8(64), + 9: uint8(64), + 10: uint8(64), + 11: uint8(64), + 12: uint8(64), + 13: uint8(64), + 15: uint8(1), + 16: uint8(54), + 17: uint8(55), + 18: uint8(56), + 19: uint8(57), + 20: uint8(58), + 21: uint8(59), + 22: uint8(60), + 23: uint8(61), + 24: uint8(62), + 25: uint8(63), + 26: uint8(64), + 27: uint8(64), + 28: uint8(64), + 29: uint8(64), + 30: uint8(64), + 31: uint8(64), + 32: uint8(64), + 33: uint8(2), + 34: uint8(3), + 35: uint8(4), + 36: uint8(5), + 37: uint8(6), + 38: uint8(7), + 39: uint8(8), + 40: uint8(9), + 41: uint8(10), + 42: uint8(11), + 43: uint8(12), + 44: uint8(13), + 45: uint8(14), + 46: uint8(15), + 47: uint8(16), + 48: uint8(17), + 49: uint8(18), + 50: uint8(19), + 51: uint8(20), + 52: uint8(21), + 53: uint8(22), + 54: uint8(23), + 55: uint8(24), + 56: uint8(25), + 57: uint8(26), + 58: uint8(27), + 59: uint8(64), + 60: uint8(64), + 61: uint8(64), + 62: uint8(64), + 63: uint8(64), + 64: uint8(64), + 65: uint8(28), + 66: uint8(29), + 67: uint8(30), + 68: uint8(31), + 69: uint8(32), + 70: uint8(33), + 71: uint8(34), + 72: uint8(35), + 73: uint8(36), + 74: uint8(37), + 75: uint8(38), + 76: uint8(39), + 77: uint8(40), + 78: uint8(41), + 79: uint8(42), + 80: uint8(43), + 81: uint8(44), + 82: uint8(45), + 83: uint8(46), + 84: uint8(47), + 85: uint8(48), + 86: uint8(49), + 87: uint8(50), + 88: uint8(51), + 89: uint8(52), + 90: uint8(53), + 91: uint8(64), + 92: uint8(64), + 93: uint8(64), + 94: uint8(64), + 95: uint8(64), +} + +func _BF_decode(tls *TLS, dst uintptr, src uintptr, size int32) (r int32) { + var c1, c2, c3, c4, tmp uint32 + var dptr, end, sptr, v1 uintptr + _, _, _, _, _, _, _, _, _ = c1, c2, c3, c4, dptr, end, sptr, tmp, v1 + dptr = dst + end = dptr + uintptr(size) + sptr = src + for cond := true; cond; cond = dptr < end { + v1 = sptr + sptr = sptr + 1 + tmp = uint32(**(**uint8)(__ccgo_up(v1))) + tmp = tmp - uint32(0x20) + if tmp >= uint32(0x60) { + return -int32(1) + } + tmp = uint32(_BF_atoi64[tmp]) + if tmp > uint32(63) { + return -int32(1) + } + c1 = tmp + v1 = sptr + sptr = sptr + 1 + tmp = uint32(**(**uint8)(__ccgo_up(v1))) + tmp = tmp - uint32(0x20) + if tmp >= uint32(0x60) { + return -int32(1) + } + tmp = uint32(_BF_atoi64[tmp]) + if tmp > uint32(63) { + return -int32(1) + } + c2 = tmp + v1 = dptr + dptr = dptr + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(c1<>int32(4)) + if dptr >= end { + break + } + v1 = sptr + sptr = sptr + 1 + tmp = uint32(**(**uint8)(__ccgo_up(v1))) + tmp = tmp - uint32(0x20) + if tmp >= uint32(0x60) { + return -int32(1) + } + tmp = uint32(_BF_atoi64[tmp]) + if tmp > uint32(63) { + return -int32(1) + } + c3 = tmp + v1 = dptr + dptr = dptr + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(c2&uint32(0x0F)<>int32(2)) + if dptr >= end { + break + } + v1 = sptr + sptr = sptr + 1 + tmp = uint32(**(**uint8)(__ccgo_up(v1))) + tmp = tmp - uint32(0x20) + if tmp >= uint32(0x60) { + return -int32(1) + } + tmp = uint32(_BF_atoi64[tmp]) + if tmp > uint32(63) { + return -int32(1) + } + c4 = tmp + v1 = dptr + dptr = dptr + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(c3&uint32(0x03)<>int32(2)] + c1 = c1 & uint32(0x03) << int32(4) + if sptr >= end { + v1 = dptr + dptr = dptr + 1 + **(**uint8)(__ccgo_up(v1)) = _BF_itoa64[c1] + break + } + v1 = sptr + sptr = sptr + 1 + c2 = uint32(**(**uint8)(__ccgo_up(v1))) + c1 = c1 | c2>>int32(4) + v1 = dptr + dptr = dptr + 1 + **(**uint8)(__ccgo_up(v1)) = _BF_itoa64[c1] + c1 = c2 & uint32(0x0f) << int32(2) + if sptr >= end { + v1 = dptr + dptr = dptr + 1 + **(**uint8)(__ccgo_up(v1)) = _BF_itoa64[c1] + break + } + v1 = sptr + sptr = sptr + 1 + c2 = uint32(**(**uint8)(__ccgo_up(v1))) + c1 = c1 | c2>>int32(6) + v1 = dptr + dptr = dptr + 1 + **(**uint8)(__ccgo_up(v1)) = _BF_itoa64[c1] + v1 = dptr + dptr = dptr + 1 + **(**uint8)(__ccgo_up(v1)) = _BF_itoa64[c2&uint32(0x3f)] + } +} + +func _BF_swap(tls *TLS, x uintptr, count int32) { + var tmp TBF_word + var v1, v2 int32 + var v4 uintptr + _, _, _, _ = tmp, v1, v2, v4 + v1 = int32(1) + if *(*uint8)(unsafe.Pointer(&v1)) != 0 { + for { + tmp = **(**TBF_word)(__ccgo_up(x)) + tmp = tmp<>Int32FromInt32(16) + v4 = x + x += 4 + **(**TBF_word)(__ccgo_up(v4)) = tmp&uint32(0x00FF00FF)<>Int32FromInt32(8)&uint32(0x00FF00FF) + goto _3 + _3: + ; + count = count - 1 + v2 = count + if !(v2 != 0) { + break + } + } + } +} + +func _BF_encrypt(tls *TLS, ctx uintptr, L TBF_word, R TBF_word, start uintptr, end uintptr) (r TBF_word) { + var i int32 + var ptr, v2 uintptr + var tmp1, tmp2, tmp3, tmp4 TBF_word + _, _, _, _, _, _, _ = i, ptr, tmp1, tmp2, tmp3, tmp4, v2 + ptr = start + for cond := true; cond; cond = ptr < end { + L = L ^ **(**TBF_word)(__ccgo_up(ctx)) + i = 0 + for { + if !(i < int32(16)) { + break + } + tmp1 = L & uint32(0xFF) + tmp2 = L >> int32(8) + tmp2 = tmp2 & uint32(0xFF) + tmp3 = L >> int32(16) + tmp3 = tmp3 & uint32(0xFF) + tmp4 = L >> int32(24) + tmp1 = **(**TBF_word)(__ccgo_up(ctx + 72 + 3*1024 + uintptr(tmp1)*4)) + tmp2 = **(**TBF_word)(__ccgo_up(ctx + 72 + 2*1024 + uintptr(tmp2)*4)) + tmp3 = **(**TBF_word)(__ccgo_up(ctx + 72 + 1*1024 + uintptr(tmp3)*4)) + tmp3 = tmp3 + **(**TBF_word)(__ccgo_up(ctx + 72 + uintptr(tmp4)*4)) + tmp3 = tmp3 ^ tmp2 + R = R ^ **(**TBF_word)(__ccgo_up(ctx + uintptr(i+int32(1))*4)) + tmp3 = tmp3 + tmp1 + R = R ^ tmp3 + tmp1 = R & uint32(0xFF) + tmp2 = R >> int32(8) + tmp2 = tmp2 & uint32(0xFF) + tmp3 = R >> int32(16) + tmp3 = tmp3 & uint32(0xFF) + tmp4 = R >> int32(24) + tmp1 = **(**TBF_word)(__ccgo_up(ctx + 72 + 3*1024 + uintptr(tmp1)*4)) + tmp2 = **(**TBF_word)(__ccgo_up(ctx + 72 + 2*1024 + uintptr(tmp2)*4)) + tmp3 = **(**TBF_word)(__ccgo_up(ctx + 72 + 1*1024 + uintptr(tmp3)*4)) + tmp3 = tmp3 + **(**TBF_word)(__ccgo_up(ctx + 72 + uintptr(tmp4)*4)) + tmp3 = tmp3 ^ tmp2 + L = L ^ **(**TBF_word)(__ccgo_up(ctx + uintptr(i+int32(1)+int32(1))*4)) + tmp3 = tmp3 + tmp1 + L = L ^ tmp3 + goto _1 + _1: + ; + i = i + int32(2) + } + tmp4 = R + R = L + L = tmp4 ^ **(**TBF_word)(__ccgo_up(ctx + uintptr(Int32FromInt32(BF_N)+Int32FromInt32(1))*4)) + v2 = ptr + ptr += 4 + **(**TBF_word)(__ccgo_up(v2)) = L + v2 = ptr + ptr += 4 + **(**TBF_word)(__ccgo_up(v2)) = R + } + return L +} + +func _BF_set_key(tls *TLS, key uintptr, expanded uintptr, initial uintptr, flags uint8) { + bp := tls.Alloc(16) + defer tls.Free(16) + var bug, i, j uint32 + var diff, safety, sign, v1 TBF_word + var ptr uintptr + var _ /* tmp at bp+0 */ [2]TBF_word + _, _, _, _, _, _, _, _ = bug, diff, i, j, ptr, safety, sign, v1 + ptr = key + /* + * There was a sign extension bug in older revisions of this function. While + * we would have liked to simply fix the bug and move on, we have to provide + * a backwards compatibility feature (essentially the bug) for some systems and + * a safety measure for some others. The latter is needed because for certain + * multiple inputs to the buggy algorithm there exist easily found inputs to + * the correct algorithm that produce the same hash. Thus, we optionally + * deviate from the correct algorithm just enough to avoid such collisions. + * While the bug itself affected the majority of passwords containing + * characters with the 8th bit set (although only a percentage of those in a + * collision-producing way), the anti-collision safety measure affects + * only a subset of passwords containing the '\xff' character (not even all of + * those passwords, just some of them). This character is not found in valid + * UTF-8 sequences and is rarely used in popular 8-bit character encodings. + * Thus, the safety measure is unlikely to cause much annoyance, and is a + * reasonable tradeoff to use when authenticating against existing hashes that + * are not reliably known to have been computed with the correct algorithm. + * + * We use an approach that tries to minimize side-channel leaks of password + * information - that is, we mostly use fixed-cost bitwise operations instead + * of branches or table lookups. (One conditional branch based on password + * length remains. It is not part of the bug aftermath, though, and is + * difficult and possibly unreasonable to avoid given the use of C strings by + * the caller, which results in similar timing leaks anyway.) + * + * For actual implementation, we set an array index in the variable "bug" + * (0 means no bug, 1 means sign extension bug emulation) and a flag in the + * variable "safety" (bit 16 is set when the safety measure is requested). + * Valid combinations of settings are: + * + * Prefix "$2a$": bug = 0, safety = 0x10000 + * Prefix "$2b$": bug = 0, safety = 0 + * Prefix "$2x$": bug = 1, safety = 0 + * Prefix "$2y$": bug = 0, safety = 0 + */ + bug = Uint32FromInt32(Int32FromUint8(flags) & int32(1)) + safety = uint32(flags) & uint32(2) << int32(15) + v1 = Uint32FromInt32(0) + diff = v1 + sign = v1 + i = uint32(0) + for { + if !(i < Uint32FromInt32(Int32FromInt32(BF_N)+Int32FromInt32(2))) { + break + } + v1 = Uint32FromInt32(0) + (**(**[2]TBF_word)(__ccgo_up(bp)))[int32(1)] = v1 + (**(**[2]TBF_word)(__ccgo_up(bp)))[0] = v1 + j = uint32(0) + for { + if !(j < uint32(4)) { + break + } + **(**TBF_word)(__ccgo_up(bp)) <<= uint32(8) + **(**TBF_word)(__ccgo_up(bp)) |= uint32(uint8(**(**uint8)(__ccgo_up(ptr)))) /* correct */ + **(**TBF_word)(__ccgo_up(bp + 1*4)) <<= uint32(8) + **(**TBF_word)(__ccgo_up(bp + 1*4)) |= Uint32FromInt8(Int8FromUint8(**(**uint8)(__ccgo_up(ptr)))) /* bug */ + /* + * Sign extension in the first char has no effect - nothing to overwrite yet, + * and those extra 24 bits will be fully shifted out of the 32-bit word. For + * chars 2, 3, 4 in each four-char block, we set bit 7 of "sign" if sign + * extension in tmp[1] occurs. Once this flag is set, it remains set. + */ + if j != 0 { + sign = sign | (**(**[2]TBF_word)(__ccgo_up(bp)))[int32(1)]&uint32(0x80) + } + if !(**(**uint8)(__ccgo_up(ptr)) != 0) { + ptr = key + } else { + ptr = ptr + 1 + } + goto _4 + _4: + ; + j = j + 1 + } + diff = diff | ((**(**[2]TBF_word)(__ccgo_up(bp)))[0] ^ (**(**[2]TBF_word)(__ccgo_up(bp)))[int32(1)]) /* Non-zero on any differences */ + **(**TBF_word)(__ccgo_up(expanded + uintptr(i)*4)) = (**(**[2]TBF_word)(__ccgo_up(bp)))[bug] + **(**TBF_word)(__ccgo_up(initial + uintptr(i)*4)) = **(**TBF_word)(__ccgo_up(uintptr(unsafe.Pointer(&_BF_init_state)) + uintptr(i)*4)) ^ (**(**[2]TBF_word)(__ccgo_up(bp)))[bug] + goto _2 + _2: + ; + i = i + 1 + } + /* + * At this point, "diff" is zero iff the correct and buggy algorithms produced + * exactly the same result. If so and if "sign" is non-zero, which indicates + * that there was a non-benign sign extension, this means that we have a + * collision between the correctly computed hash for this password and a set of + * passwords that could be supplied to the buggy algorithm. Our safety measure + * is meant to protect from such many-buggy to one-correct collisions, by + * deviating from the correct algorithm in such cases. Let's check for this. + */ + diff = diff | diff>>int32(16) /* still zero iff exact match */ + diff = diff & uint32(0xffff) /* ditto */ + diff = diff + uint32(0xffff) /* bit 16 set iff "diff" was non-zero (on non-match) */ + sign = sign << uint32(9) /* move the non-benign sign extension flag to bit 16 */ + sign = sign & (^diff & safety) /* action needed? */ + /* + * If we have determined that we need to deviate from the correct algorithm, + * flip bit 16 in initial expanded key. (The choice of 16 is arbitrary, but + * let's stick to it now. It came out of the approach we used above, and it's + * not any worse than any other choice we could make.) + * + * It is crucial that we don't do the same to the expanded key used in the main + * Eksblowfish loop. By doing it to only one of these two, we deviate from a + * state that could be directly specified by a password to the buggy algorithm + * (and to the fully correct one as well, but that's a side-effect). + */ + **(**TBF_word)(__ccgo_up(initial)) ^= sign +} + +var _flags_by_subtype = [26]uint8{ + 0: uint8(2), + 1: uint8(4), + 23: uint8(1), + 24: uint8(4), +} + +func _BF_crypt(tls *TLS, key uintptr, setting uintptr, output uintptr, min TBF_word) (r uintptr) { + bp := tls.Alloc(4272) + defer tls.Free(4272) + var L, L1, R, count, tmp1, tmp2, tmp3, tmp4, v1 TBF_word + var done, i int32 + var ptr uintptr + var _ /* LR at bp+4264 */ [2]TBF_word + var _ /* data at bp+0 */ struct { + Fctx TBF_ctx + Fexpanded_key TBF_key + Fbinary struct { + Foutput [0][6]TBF_word + Fsalt [4]TBF_word + F__ccgo_pad2 [8]byte + } + } + _, _, _, _, _, _, _, _, _, _, _, _ = L, L1, R, count, done, i, ptr, tmp1, tmp2, tmp3, tmp4, v1 + if Int32FromUint8(**(**uint8)(__ccgo_up(setting))) != int32('$') || Int32FromUint8(**(**uint8)(__ccgo_up(setting + 1))) != int32('2') || Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(setting + 2)))-int32('a')) > uint32(25) || !(_flags_by_subtype[Int32FromUint8(**(**uint8)(__ccgo_up(setting + 2)))-int32('a')] != 0) || Int32FromUint8(**(**uint8)(__ccgo_up(setting + 3))) != int32('$') || Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(setting + 4)))-int32('0')) > uint32(1) || Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(setting + 5)))-int32('0')) > uint32(9) || Int32FromUint8(**(**uint8)(__ccgo_up(setting + 6))) != int32('$') { + return UintptrFromInt32(0) + } + count = Uint32FromInt32(1) << ((Int32FromUint8(**(**uint8)(__ccgo_up(setting + 4)))-int32('0'))*int32(10) + (Int32FromUint8(**(**uint8)(__ccgo_up(setting + 5))) - int32('0'))) + if count < min || _BF_decode(tls, bp+4240, setting+7, int32(16)) != 0 { + return UintptrFromInt32(0) + } + _BF_swap(tls, bp+4240, int32(4)) + _BF_set_key(tls, key, bp+4168, bp, _flags_by_subtype[Int32FromUint8(**(**uint8)(__ccgo_up(setting + 2)))-int32('a')]) + Xmemcpy(tls, bp+72, uintptr(unsafe.Pointer(&_BF_init_state))+72, uint64(4096)) + L = uint32(0) + R = uint32(0) + ptr = bp + for cond := true; cond; cond = int32(1) != 0 { + L = _BF_encrypt(tls, bp, L^**(**TBF_word)(__ccgo_up(bp + 4240)), R^**(**TBF_word)(__ccgo_up(bp + 4240 + 1*4)), ptr, ptr) + R = **(**TBF_word)(__ccgo_up(ptr + UintptrFromInt32(1)*4)) + ptr = ptr + uintptr(2)*4 + if ptr >= bp+uintptr(Int32FromInt32(BF_N)+Int32FromInt32(2)+Int32FromInt32(4)*Int32FromInt32(0x100))*4 { + break + } + L = _BF_encrypt(tls, bp, L^**(**TBF_word)(__ccgo_up(bp + 4240 + 2*4)), R^**(**TBF_word)(__ccgo_up(bp + 4240 + 3*4)), ptr, ptr) + R = **(**TBF_word)(__ccgo_up(ptr + UintptrFromInt32(1)*4)) + ptr = ptr + uintptr(2)*4 + } + for { + i = 0 + for { + if !(i < Int32FromInt32(BF_N)+Int32FromInt32(2)) { + break + } + **(**TBF_word)(__ccgo_up(bp + uintptr(i)*4)) ^= **(**TBF_word)(__ccgo_up(bp + 4168 + uintptr(i)*4)) + **(**TBF_word)(__ccgo_up(bp + uintptr(i+int32(1))*4)) ^= **(**TBF_word)(__ccgo_up(bp + 4168 + uintptr(i+int32(1))*4)) + goto _3 + _3: + ; + i = i + int32(2) + } + done = 0 + for cond := true; cond; cond = int32(1) != 0 { + _BF_encrypt(tls, bp, uint32(0), uint32(0), bp, bp+uintptr(Int32FromInt32(BF_N)+Int32FromInt32(2)+Int32FromInt32(4)*Int32FromInt32(0x100))*4) + if done != 0 { + break + } + done = int32(1) + tmp1 = **(**TBF_word)(__ccgo_up(bp + 4240)) + tmp2 = **(**TBF_word)(__ccgo_up(bp + 4240 + 1*4)) + tmp3 = **(**TBF_word)(__ccgo_up(bp + 4240 + 2*4)) + tmp4 = **(**TBF_word)(__ccgo_up(bp + 4240 + 3*4)) + i = 0 + for { + if !(i < int32(BF_N)) { + break + } + **(**TBF_word)(__ccgo_up(bp + uintptr(i)*4)) ^= tmp1 + **(**TBF_word)(__ccgo_up(bp + uintptr(i+int32(1))*4)) ^= tmp2 + **(**TBF_word)(__ccgo_up(bp + uintptr(i+int32(2))*4)) ^= tmp3 + **(**TBF_word)(__ccgo_up(bp + uintptr(i+int32(3))*4)) ^= tmp4 + goto _4 + _4: + ; + i = i + int32(4) + } + **(**TBF_word)(__ccgo_up(bp + 16*4)) ^= tmp1 + **(**TBF_word)(__ccgo_up(bp + 17*4)) ^= tmp2 + } + goto _2 + _2: + ; + count = count - 1 + v1 = count + if !(v1 != 0) { + break + } + } + i = 0 + for { + if !(i < int32(6)) { + break + } + L1 = _BF_magic_w[i] + (**(**[2]TBF_word)(__ccgo_up(bp + 4264)))[int32(1)] = _BF_magic_w[i+int32(1)] + count = uint32(64) + for { + L1 = _BF_encrypt(tls, bp, L1, (**(**[2]TBF_word)(__ccgo_up(bp + 4264)))[int32(1)], bp+4264, bp+4264) + goto _7 + _7: + ; + count = count - 1 + v1 = count + if !(v1 != 0) { + break + } + } + **(**TBF_word)(__ccgo_up(bp + 4240 + uintptr(i)*4)) = L1 + **(**TBF_word)(__ccgo_up(bp + 4240 + uintptr(i+int32(1))*4)) = (**(**[2]TBF_word)(__ccgo_up(bp + 4264)))[int32(1)] + goto _5 + _5: + ; + i = i + int32(2) + } + Xmemcpy(tls, output, setting, Uint64FromInt32(Int32FromInt32(7)+Int32FromInt32(22)-Int32FromInt32(1))) + **(**uint8)(__ccgo_up(output + uintptr(Int32FromInt32(7)+Int32FromInt32(22)-Int32FromInt32(1)))) = _BF_itoa64[Int32FromUint8(_BF_atoi64[Int32FromUint8(**(**uint8)(__ccgo_up(setting + uintptr(Int32FromInt32(7)+Int32FromInt32(22)-Int32FromInt32(1)))))-int32(0x20)])&int32(0x30)] + /* This has to be bug-compatible with the original implementation, so + * only encode 23 of the 24 bytes. :-) */ + _BF_swap(tls, bp+4240, int32(6)) + _BF_encode(tls, output+uintptr(Int32FromInt32(7)+Int32FromInt32(22)), bp+4240, int32(23)) + **(**uint8)(__ccgo_up(output + uintptr(Int32FromInt32(7)+Int32FromInt32(22)+Int32FromInt32(31)))) = uint8('\000') + return output +} + +// C documentation +// +// /* +// * Please preserve the runtime self-test. It serves two purposes at once: +// * +// * 1. We really can't afford the risk of producing incompatible hashes e.g. +// * when there's something like gcc bug 26587 again, whereas an application or +// * library integrating this code might not also integrate our external tests or +// * it might not run them after every build. Even if it does, the miscompile +// * might only occur on the production build, but not on a testing build (such +// * as because of different optimization settings). It is painful to recover +// * from incorrectly-computed hashes - merely fixing whatever broke is not +// * enough. Thus, a proactive measure like this self-test is needed. +// * +// * 2. We don't want to leave sensitive data from our actual password hash +// * computation on the stack or in registers. Previous revisions of the code +// * would do explicit cleanups, but simply running the self-test after hash +// * computation is more reliable. +// * +// * The performance cost of this quick self-test is around 0.6% at the "$2a$08" +// * setting. +// */ +func X__crypt_blowfish(tls *TLS, key uintptr, setting uintptr, output uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v setting=%v output=%v, (%v:)", tls, key, setting, output, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(384) + defer tls.Free(384) + var flags uint32 + var k, p, retval, test_hash, test_key, test_setting uintptr + var ok int32 + var _ /* ae at bp+96 */ TBF_key + var _ /* ai at bp+168 */ TBF_key + var _ /* buf at bp+0 */ struct { + Fs [30]uint8 + Fo [63]uint8 + } + var _ /* ye at bp+240 */ TBF_key + var _ /* yi at bp+312 */ TBF_key + _, _, _, _, _, _, _, _ = flags, k, ok, p, retval, test_hash, test_key, test_setting + test_key = __ccgo_ts + 18 + test_setting = __ccgo_ts + 28 + test_hash = uintptr(unsafe.Pointer(&_test_hashes)) + /* Hash the supplied password */ + retval = _BF_crypt(tls, key, setting, output, uint32(16)) + /* + * Do a quick self-test. It is important that we make both calls to BF_crypt() + * from the same scope such that they likely use the same stack locations, + * which makes the second call overwrite the first call's sensitive data on the + * stack and makes it more likely that any alignment related issues would be + * detected by the self-test. + */ + Xmemcpy(tls, bp, test_setting, uint64(30)) + if retval != 0 { + flags = uint32(_flags_by_subtype[Int32FromUint8(**(**uint8)(__ccgo_up(setting + 2)))-int32('a')]) + test_hash = uintptr(unsafe.Pointer(&_test_hashes)) + uintptr(flags&uint32(1))*34 + **(**uint8)(__ccgo_up(bp + 2)) = **(**uint8)(__ccgo_up(setting + 2)) + } + Xmemset(tls, bp+30, int32(0x55), uint64(63)) + **(**uint8)(__ccgo_up(bp + 30 + uintptr(Uint64FromInt64(63)-Uint64FromInt32(1)))) = uint8(0) + p = _BF_crypt(tls, test_key, bp, bp+30, uint32(1)) + ok = BoolInt32(p == bp+30 && !(Xmemcmp(tls, p, bp, Uint64FromInt32(Int32FromInt32(7)+Int32FromInt32(22))) != 0) && !(Xmemcmp(tls, p+uintptr(Int32FromInt32(7)+Int32FromInt32(22)), test_hash, Uint64FromInt32(Int32FromInt32(31)+Int32FromInt32(1)+Int32FromInt32(1)+Int32FromInt32(1))) != 0)) + k = __ccgo_ts + 58 + _BF_set_key(tls, k, bp+96, bp+168, uint8(2)) /* $2a$ */ + _BF_set_key(tls, k, bp+240, bp+312, uint8(4)) /* $2y$ */ + **(**TBF_word)(__ccgo_up(bp + 168)) ^= uint32(0x10000) /* undo the safety (for comparison) */ + ok = BoolInt32(ok != 0 && (**(**TBF_key)(__ccgo_up(bp + 168)))[0] == uint32(0xdb9c59bc) && (**(**TBF_key)(__ccgo_up(bp + 240)))[int32(17)] == uint32(0x33343500) && !(Xmemcmp(tls, bp+96, bp+240, uint64(72)) != 0) && !(Xmemcmp(tls, bp+168, bp+312, uint64(72)) != 0)) + if ok != 0 && retval != 0 { + return retval + } + return __ccgo_ts + 70 +} + +var _test_hashes = [2][34]uint8{ + 0: {'i', '1', 'D', '7', '0', '9', 'v', 'f', 'a', 'm', 'u', 'l', 'i', 'm', 'l', 'G', 'c', 'q', '0', 'q', 'q', '3', 'U', 'v', 'u', 'U', 'a', 's', 'v', 'E', 'a', 0, 'U'}, + 1: {'V', 'U', 'r', 'P', 'm', 'X', 'D', '6', 'q', '/', 'n', 'V', 'S', 'S', 'p', '7', 'p', 'N', 'D', 'h', 'C', 'R', '9', '0', '7', '1', 'I', 'f', 'I', 'R', 'e', 0, 'U'}, +} + +const _PASSWORD_EFMT1 = 95 + +type Texpanded_key = struct { + Fl [16]Tuint32_t + Fr [16]Tuint32_t +} + +var _key_shifts = [16]uint8{ + 0: uint8(1), + 1: uint8(1), + 2: uint8(2), + 3: uint8(2), + 4: uint8(2), + 5: uint8(2), + 6: uint8(2), + 7: uint8(2), + 8: uint8(1), + 9: uint8(2), + 10: uint8(2), + 11: uint8(2), + 12: uint8(2), + 13: uint8(2), + 14: uint8(2), + 15: uint8(1), +} + +var _psbox = [8][64]Tuint32_t{ + 0: { + 0: uint32(0x00808200), + 2: uint32(0x00008000), + 3: uint32(0x00808202), + 4: uint32(0x00808002), + 5: uint32(0x00008202), + 6: uint32(0x00000002), + 7: uint32(0x00008000), + 8: uint32(0x00000200), + 9: uint32(0x00808200), + 10: uint32(0x00808202), + 11: uint32(0x00000200), + 12: uint32(0x00800202), + 13: uint32(0x00808002), + 14: uint32(0x00800000), + 15: uint32(0x00000002), + 16: uint32(0x00000202), + 17: uint32(0x00800200), + 18: uint32(0x00800200), + 19: uint32(0x00008200), + 20: uint32(0x00008200), + 21: uint32(0x00808000), + 22: uint32(0x00808000), + 23: uint32(0x00800202), + 24: uint32(0x00008002), + 25: uint32(0x00800002), + 26: uint32(0x00800002), + 27: uint32(0x00008002), + 29: uint32(0x00000202), + 30: uint32(0x00008202), + 31: uint32(0x00800000), + 32: uint32(0x00008000), + 33: uint32(0x00808202), + 34: uint32(0x00000002), + 35: uint32(0x00808000), + 36: uint32(0x00808200), + 37: uint32(0x00800000), + 38: uint32(0x00800000), + 39: uint32(0x00000200), + 40: uint32(0x00808002), + 41: uint32(0x00008000), + 42: uint32(0x00008200), + 43: uint32(0x00800002), + 44: uint32(0x00000200), + 45: uint32(0x00000002), + 46: uint32(0x00800202), + 47: uint32(0x00008202), + 48: uint32(0x00808202), + 49: uint32(0x00008002), + 50: uint32(0x00808000), + 51: uint32(0x00800202), + 52: uint32(0x00800002), + 53: uint32(0x00000202), + 54: uint32(0x00008202), + 55: uint32(0x00808200), + 56: uint32(0x00000202), + 57: uint32(0x00800200), + 58: uint32(0x00800200), + 60: uint32(0x00008002), + 61: uint32(0x00008200), + 63: uint32(0x00808002), + }, + 1: { + 0: uint32(0x40084010), + 1: uint32(0x40004000), + 2: uint32(0x00004000), + 3: uint32(0x00084010), + 4: uint32(0x00080000), + 5: uint32(0x00000010), + 6: uint32(0x40080010), + 7: uint32(0x40004010), + 8: uint32(0x40000010), + 9: uint32(0x40084010), + 10: uint32(0x40084000), + 11: uint32(0x40000000), + 12: uint32(0x40004000), + 13: uint32(0x00080000), + 14: uint32(0x00000010), + 15: uint32(0x40080010), + 16: uint32(0x00084000), + 17: uint32(0x00080010), + 18: uint32(0x40004010), + 20: uint32(0x40000000), + 21: uint32(0x00004000), + 22: uint32(0x00084010), + 23: uint32(0x40080000), + 24: uint32(0x00080010), + 25: uint32(0x40000010), + 27: uint32(0x00084000), + 28: uint32(0x00004010), + 29: uint32(0x40084000), + 30: uint32(0x40080000), + 31: uint32(0x00004010), + 33: uint32(0x00084010), + 34: uint32(0x40080010), + 35: uint32(0x00080000), + 36: uint32(0x40004010), + 37: uint32(0x40080000), + 38: uint32(0x40084000), + 39: uint32(0x00004000), + 40: uint32(0x40080000), + 41: uint32(0x40004000), + 42: uint32(0x00000010), + 43: uint32(0x40084010), + 44: uint32(0x00084010), + 45: uint32(0x00000010), + 46: uint32(0x00004000), + 47: uint32(0x40000000), + 48: uint32(0x00004010), + 49: uint32(0x40084000), + 50: uint32(0x00080000), + 51: uint32(0x40000010), + 52: uint32(0x00080010), + 53: uint32(0x40004010), + 54: uint32(0x40000010), + 55: uint32(0x00080010), + 56: uint32(0x00084000), + 58: uint32(0x40004000), + 59: uint32(0x00004010), + 60: uint32(0x40000000), + 61: uint32(0x40080010), + 62: uint32(0x40084010), + 63: uint32(0x00084000), + }, + 2: { + 0: uint32(0x00000104), + 1: uint32(0x04010100), + 3: uint32(0x04010004), + 4: uint32(0x04000100), + 6: uint32(0x00010104), + 7: uint32(0x04000100), + 8: uint32(0x00010004), + 9: uint32(0x04000004), + 10: uint32(0x04000004), + 11: uint32(0x00010000), + 12: uint32(0x04010104), + 13: uint32(0x00010004), + 14: uint32(0x04010000), + 15: uint32(0x00000104), + 16: uint32(0x04000000), + 17: uint32(0x00000004), + 18: uint32(0x04010100), + 19: uint32(0x00000100), + 20: uint32(0x00010100), + 21: uint32(0x04010000), + 22: uint32(0x04010004), + 23: uint32(0x00010104), + 24: uint32(0x04000104), + 25: uint32(0x00010100), + 26: uint32(0x00010000), + 27: uint32(0x04000104), + 28: uint32(0x00000004), + 29: uint32(0x04010104), + 30: uint32(0x00000100), + 31: uint32(0x04000000), + 32: uint32(0x04010100), + 33: uint32(0x04000000), + 34: uint32(0x00010004), + 35: uint32(0x00000104), + 36: uint32(0x00010000), + 37: uint32(0x04010100), + 38: uint32(0x04000100), + 40: uint32(0x00000100), + 41: uint32(0x00010004), + 42: uint32(0x04010104), + 43: uint32(0x04000100), + 44: uint32(0x04000004), + 45: uint32(0x00000100), + 47: uint32(0x04010004), + 48: uint32(0x04000104), + 49: uint32(0x00010000), + 50: uint32(0x04000000), + 51: uint32(0x04010104), + 52: uint32(0x00000004), + 53: uint32(0x00010104), + 54: uint32(0x00010100), + 55: uint32(0x04000004), + 56: uint32(0x04010000), + 57: uint32(0x04000104), + 58: uint32(0x00000104), + 59: uint32(0x04010000), + 60: uint32(0x00010104), + 61: uint32(0x00000004), + 62: uint32(0x04010004), + 63: uint32(0x00010100), + }, + 3: { + 0: uint32(0x80401000), + 1: uint32(0x80001040), + 2: uint32(0x80001040), + 3: uint32(0x00000040), + 4: uint32(0x00401040), + 5: uint32(0x80400040), + 6: uint32(0x80400000), + 7: uint32(0x80001000), + 9: uint32(0x00401000), + 10: uint32(0x00401000), + 11: uint32(0x80401040), + 12: uint32(0x80000040), + 14: uint32(0x00400040), + 15: uint32(0x80400000), + 16: uint32(0x80000000), + 17: uint32(0x00001000), + 18: uint32(0x00400000), + 19: uint32(0x80401000), + 20: uint32(0x00000040), + 21: uint32(0x00400000), + 22: uint32(0x80001000), + 23: uint32(0x00001040), + 24: uint32(0x80400040), + 25: uint32(0x80000000), + 26: uint32(0x00001040), + 27: uint32(0x00400040), + 28: uint32(0x00001000), + 29: uint32(0x00401040), + 30: uint32(0x80401040), + 31: uint32(0x80000040), + 32: uint32(0x00400040), + 33: uint32(0x80400000), + 34: uint32(0x00401000), + 35: uint32(0x80401040), + 36: uint32(0x80000040), + 39: uint32(0x00401000), + 40: uint32(0x00001040), + 41: uint32(0x00400040), + 42: uint32(0x80400040), + 43: uint32(0x80000000), + 44: uint32(0x80401000), + 45: uint32(0x80001040), + 46: uint32(0x80001040), + 47: uint32(0x00000040), + 48: uint32(0x80401040), + 49: uint32(0x80000040), + 50: uint32(0x80000000), + 51: uint32(0x00001000), + 52: uint32(0x80400000), + 53: uint32(0x80001000), + 54: uint32(0x00401040), + 55: uint32(0x80400040), + 56: uint32(0x80001000), + 57: uint32(0x00001040), + 58: uint32(0x00400000), + 59: uint32(0x80401000), + 60: uint32(0x00000040), + 61: uint32(0x00400000), + 62: uint32(0x00001000), + 63: uint32(0x00401040), + }, + 4: { + 0: uint32(0x00000080), + 1: uint32(0x01040080), + 2: uint32(0x01040000), + 3: uint32(0x21000080), + 4: uint32(0x00040000), + 5: uint32(0x00000080), + 6: uint32(0x20000000), + 7: uint32(0x01040000), + 8: uint32(0x20040080), + 9: uint32(0x00040000), + 10: uint32(0x01000080), + 11: uint32(0x20040080), + 12: uint32(0x21000080), + 13: uint32(0x21040000), + 14: uint32(0x00040080), + 15: uint32(0x20000000), + 16: uint32(0x01000000), + 17: uint32(0x20040000), + 18: uint32(0x20040000), + 20: uint32(0x20000080), + 21: uint32(0x21040080), + 22: uint32(0x21040080), + 23: uint32(0x01000080), + 24: uint32(0x21040000), + 25: uint32(0x20000080), + 27: uint32(0x21000000), + 28: uint32(0x01040080), + 29: uint32(0x01000000), + 30: uint32(0x21000000), + 31: uint32(0x00040080), + 32: uint32(0x00040000), + 33: uint32(0x21000080), + 34: uint32(0x00000080), + 35: uint32(0x01000000), + 36: uint32(0x20000000), + 37: uint32(0x01040000), + 38: uint32(0x21000080), + 39: uint32(0x20040080), + 40: uint32(0x01000080), + 41: uint32(0x20000000), + 42: uint32(0x21040000), + 43: uint32(0x01040080), + 44: uint32(0x20040080), + 45: uint32(0x00000080), + 46: uint32(0x01000000), + 47: uint32(0x21040000), + 48: uint32(0x21040080), + 49: uint32(0x00040080), + 50: uint32(0x21000000), + 51: uint32(0x21040080), + 52: uint32(0x01040000), + 54: uint32(0x20040000), + 55: uint32(0x21000000), + 56: uint32(0x00040080), + 57: uint32(0x01000080), + 58: uint32(0x20000080), + 59: uint32(0x00040000), + 61: uint32(0x20040000), + 62: uint32(0x01040080), + 63: uint32(0x20000080), + }, + 5: { + 0: uint32(0x10000008), + 1: uint32(0x10200000), + 2: uint32(0x00002000), + 3: uint32(0x10202008), + 4: uint32(0x10200000), + 5: uint32(0x00000008), + 6: uint32(0x10202008), + 7: uint32(0x00200000), + 8: uint32(0x10002000), + 9: uint32(0x00202008), + 10: uint32(0x00200000), + 11: uint32(0x10000008), + 12: uint32(0x00200008), + 13: uint32(0x10002000), + 14: uint32(0x10000000), + 15: uint32(0x00002008), + 17: uint32(0x00200008), + 18: uint32(0x10002008), + 19: uint32(0x00002000), + 20: uint32(0x00202000), + 21: uint32(0x10002008), + 22: uint32(0x00000008), + 23: uint32(0x10200008), + 24: uint32(0x10200008), + 26: uint32(0x00202008), + 27: uint32(0x10202000), + 28: uint32(0x00002008), + 29: uint32(0x00202000), + 30: uint32(0x10202000), + 31: uint32(0x10000000), + 32: uint32(0x10002000), + 33: uint32(0x00000008), + 34: uint32(0x10200008), + 35: uint32(0x00202000), + 36: uint32(0x10202008), + 37: uint32(0x00200000), + 38: uint32(0x00002008), + 39: uint32(0x10000008), + 40: uint32(0x00200000), + 41: uint32(0x10002000), + 42: uint32(0x10000000), + 43: uint32(0x00002008), + 44: uint32(0x10000008), + 45: uint32(0x10202008), + 46: uint32(0x00202000), + 47: uint32(0x10200000), + 48: uint32(0x00202008), + 49: uint32(0x10202000), + 51: uint32(0x10200008), + 52: uint32(0x00000008), + 53: uint32(0x00002000), + 54: uint32(0x10200000), + 55: uint32(0x00202008), + 56: uint32(0x00002000), + 57: uint32(0x00200008), + 58: uint32(0x10002008), + 60: uint32(0x10202000), + 61: uint32(0x10000000), + 62: uint32(0x00200008), + 63: uint32(0x10002008), + }, + 6: { + 0: uint32(0x00100000), + 1: uint32(0x02100001), + 2: uint32(0x02000401), + 4: uint32(0x00000400), + 5: uint32(0x02000401), + 6: uint32(0x00100401), + 7: uint32(0x02100400), + 8: uint32(0x02100401), + 9: uint32(0x00100000), + 11: uint32(0x02000001), + 12: uint32(0x00000001), + 13: uint32(0x02000000), + 14: uint32(0x02100001), + 15: uint32(0x00000401), + 16: uint32(0x02000400), + 17: uint32(0x00100401), + 18: uint32(0x00100001), + 19: uint32(0x02000400), + 20: uint32(0x02000001), + 21: uint32(0x02100000), + 22: uint32(0x02100400), + 23: uint32(0x00100001), + 24: uint32(0x02100000), + 25: uint32(0x00000400), + 26: uint32(0x00000401), + 27: uint32(0x02100401), + 28: uint32(0x00100400), + 29: uint32(0x00000001), + 30: uint32(0x02000000), + 31: uint32(0x00100400), + 32: uint32(0x02000000), + 33: uint32(0x00100400), + 34: uint32(0x00100000), + 35: uint32(0x02000401), + 36: uint32(0x02000401), + 37: uint32(0x02100001), + 38: uint32(0x02100001), + 39: uint32(0x00000001), + 40: uint32(0x00100001), + 41: uint32(0x02000000), + 42: uint32(0x02000400), + 43: uint32(0x00100000), + 44: uint32(0x02100400), + 45: uint32(0x00000401), + 46: uint32(0x00100401), + 47: uint32(0x02100400), + 48: uint32(0x00000401), + 49: uint32(0x02000001), + 50: uint32(0x02100401), + 51: uint32(0x02100000), + 52: uint32(0x00100400), + 54: uint32(0x00000001), + 55: uint32(0x02100401), + 57: uint32(0x00100401), + 58: uint32(0x02100000), + 59: uint32(0x00000400), + 60: uint32(0x02000001), + 61: uint32(0x02000400), + 62: uint32(0x00000400), + 63: uint32(0x00100001), + }, + 7: { + 0: uint32(0x08000820), + 1: uint32(0x00000800), + 2: uint32(0x00020000), + 3: uint32(0x08020820), + 4: uint32(0x08000000), + 5: uint32(0x08000820), + 6: uint32(0x00000020), + 7: uint32(0x08000000), + 8: uint32(0x00020020), + 9: uint32(0x08020000), + 10: uint32(0x08020820), + 11: uint32(0x00020800), + 12: uint32(0x08020800), + 13: uint32(0x00020820), + 14: uint32(0x00000800), + 15: uint32(0x00000020), + 16: uint32(0x08020000), + 17: uint32(0x08000020), + 18: uint32(0x08000800), + 19: uint32(0x00000820), + 20: uint32(0x00020800), + 21: uint32(0x00020020), + 22: uint32(0x08020020), + 23: uint32(0x08020800), + 24: uint32(0x00000820), + 27: uint32(0x08020020), + 28: uint32(0x08000020), + 29: uint32(0x08000800), + 30: uint32(0x00020820), + 31: uint32(0x00020000), + 32: uint32(0x00020820), + 33: uint32(0x00020000), + 34: uint32(0x08020800), + 35: uint32(0x00000800), + 36: uint32(0x00000020), + 37: uint32(0x08020020), + 38: uint32(0x00000800), + 39: uint32(0x00020820), + 40: uint32(0x08000800), + 41: uint32(0x00000020), + 42: uint32(0x08000020), + 43: uint32(0x08020000), + 44: uint32(0x08020020), + 45: uint32(0x08000000), + 46: uint32(0x00020000), + 47: uint32(0x08000820), + 49: uint32(0x08020820), + 50: uint32(0x00020020), + 51: uint32(0x08000020), + 52: uint32(0x08020000), + 53: uint32(0x08000800), + 54: uint32(0x08000820), + 56: uint32(0x08020820), + 57: uint32(0x00020800), + 58: uint32(0x00020800), + 59: uint32(0x00000820), + 60: uint32(0x00000820), + 61: uint32(0x00020020), + 62: uint32(0x08000000), + 63: uint32(0x08020800), + }, +} +var _ip_maskl = [16][16]Tuint32_t{ + 0: { + 1: uint32(0x00010000), + 3: uint32(0x00010000), + 4: uint32(0x01000000), + 5: uint32(0x01010000), + 6: uint32(0x01000000), + 7: uint32(0x01010000), + 9: uint32(0x00010000), + 11: uint32(0x00010000), + 12: uint32(0x01000000), + 13: uint32(0x01010000), + 14: uint32(0x01000000), + 15: uint32(0x01010000), + }, + 1: { + 1: uint32(0x00000001), + 3: uint32(0x00000001), + 4: uint32(0x00000100), + 5: uint32(0x00000101), + 6: uint32(0x00000100), + 7: uint32(0x00000101), + 9: uint32(0x00000001), + 11: uint32(0x00000001), + 12: uint32(0x00000100), + 13: uint32(0x00000101), + 14: uint32(0x00000100), + 15: uint32(0x00000101), + }, + 2: { + 1: uint32(0x00020000), + 3: uint32(0x00020000), + 4: uint32(0x02000000), + 5: uint32(0x02020000), + 6: uint32(0x02000000), + 7: uint32(0x02020000), + 9: uint32(0x00020000), + 11: uint32(0x00020000), + 12: uint32(0x02000000), + 13: uint32(0x02020000), + 14: uint32(0x02000000), + 15: uint32(0x02020000), + }, + 3: { + 1: uint32(0x00000002), + 3: uint32(0x00000002), + 4: uint32(0x00000200), + 5: uint32(0x00000202), + 6: uint32(0x00000200), + 7: uint32(0x00000202), + 9: uint32(0x00000002), + 11: uint32(0x00000002), + 12: uint32(0x00000200), + 13: uint32(0x00000202), + 14: uint32(0x00000200), + 15: uint32(0x00000202), + }, + 4: { + 1: uint32(0x00040000), + 3: uint32(0x00040000), + 4: uint32(0x04000000), + 5: uint32(0x04040000), + 6: uint32(0x04000000), + 7: uint32(0x04040000), + 9: uint32(0x00040000), + 11: uint32(0x00040000), + 12: uint32(0x04000000), + 13: uint32(0x04040000), + 14: uint32(0x04000000), + 15: uint32(0x04040000), + }, + 5: { + 1: uint32(0x00000004), + 3: uint32(0x00000004), + 4: uint32(0x00000400), + 5: uint32(0x00000404), + 6: uint32(0x00000400), + 7: uint32(0x00000404), + 9: uint32(0x00000004), + 11: uint32(0x00000004), + 12: uint32(0x00000400), + 13: uint32(0x00000404), + 14: uint32(0x00000400), + 15: uint32(0x00000404), + }, + 6: { + 1: uint32(0x00080000), + 3: uint32(0x00080000), + 4: uint32(0x08000000), + 5: uint32(0x08080000), + 6: uint32(0x08000000), + 7: uint32(0x08080000), + 9: uint32(0x00080000), + 11: uint32(0x00080000), + 12: uint32(0x08000000), + 13: uint32(0x08080000), + 14: uint32(0x08000000), + 15: uint32(0x08080000), + }, + 7: { + 1: uint32(0x00000008), + 3: uint32(0x00000008), + 4: uint32(0x00000800), + 5: uint32(0x00000808), + 6: uint32(0x00000800), + 7: uint32(0x00000808), + 9: uint32(0x00000008), + 11: uint32(0x00000008), + 12: uint32(0x00000800), + 13: uint32(0x00000808), + 14: uint32(0x00000800), + 15: uint32(0x00000808), + }, + 8: { + 1: uint32(0x00100000), + 3: uint32(0x00100000), + 4: uint32(0x10000000), + 5: uint32(0x10100000), + 6: uint32(0x10000000), + 7: uint32(0x10100000), + 9: uint32(0x00100000), + 11: uint32(0x00100000), + 12: uint32(0x10000000), + 13: uint32(0x10100000), + 14: uint32(0x10000000), + 15: uint32(0x10100000), + }, + 9: { + 1: uint32(0x00000010), + 3: uint32(0x00000010), + 4: uint32(0x00001000), + 5: uint32(0x00001010), + 6: uint32(0x00001000), + 7: uint32(0x00001010), + 9: uint32(0x00000010), + 11: uint32(0x00000010), + 12: uint32(0x00001000), + 13: uint32(0x00001010), + 14: uint32(0x00001000), + 15: uint32(0x00001010), + }, + 10: { + 1: uint32(0x00200000), + 3: uint32(0x00200000), + 4: uint32(0x20000000), + 5: uint32(0x20200000), + 6: uint32(0x20000000), + 7: uint32(0x20200000), + 9: uint32(0x00200000), + 11: uint32(0x00200000), + 12: uint32(0x20000000), + 13: uint32(0x20200000), + 14: uint32(0x20000000), + 15: uint32(0x20200000), + }, + 11: { + 1: uint32(0x00000020), + 3: uint32(0x00000020), + 4: uint32(0x00002000), + 5: uint32(0x00002020), + 6: uint32(0x00002000), + 7: uint32(0x00002020), + 9: uint32(0x00000020), + 11: uint32(0x00000020), + 12: uint32(0x00002000), + 13: uint32(0x00002020), + 14: uint32(0x00002000), + 15: uint32(0x00002020), + }, + 12: { + 1: uint32(0x00400000), + 3: uint32(0x00400000), + 4: uint32(0x40000000), + 5: uint32(0x40400000), + 6: uint32(0x40000000), + 7: uint32(0x40400000), + 9: uint32(0x00400000), + 11: uint32(0x00400000), + 12: uint32(0x40000000), + 13: uint32(0x40400000), + 14: uint32(0x40000000), + 15: uint32(0x40400000), + }, + 13: { + 1: uint32(0x00000040), + 3: uint32(0x00000040), + 4: uint32(0x00004000), + 5: uint32(0x00004040), + 6: uint32(0x00004000), + 7: uint32(0x00004040), + 9: uint32(0x00000040), + 11: uint32(0x00000040), + 12: uint32(0x00004000), + 13: uint32(0x00004040), + 14: uint32(0x00004000), + 15: uint32(0x00004040), + }, + 14: { + 1: uint32(0x00800000), + 3: uint32(0x00800000), + 4: uint32(0x80000000), + 5: uint32(0x80800000), + 6: uint32(0x80000000), + 7: uint32(0x80800000), + 9: uint32(0x00800000), + 11: uint32(0x00800000), + 12: uint32(0x80000000), + 13: uint32(0x80800000), + 14: uint32(0x80000000), + 15: uint32(0x80800000), + }, + 15: { + 1: uint32(0x00000080), + 3: uint32(0x00000080), + 4: uint32(0x00008000), + 5: uint32(0x00008080), + 6: uint32(0x00008000), + 7: uint32(0x00008080), + 9: uint32(0x00000080), + 11: uint32(0x00000080), + 12: uint32(0x00008000), + 13: uint32(0x00008080), + 14: uint32(0x00008000), + 15: uint32(0x00008080), + }, +} +var _ip_maskr = [16][16]Tuint32_t{ + 0: { + 2: uint32(0x00010000), + 3: uint32(0x00010000), + 6: uint32(0x00010000), + 7: uint32(0x00010000), + 8: uint32(0x01000000), + 9: uint32(0x01000000), + 10: uint32(0x01010000), + 11: uint32(0x01010000), + 12: uint32(0x01000000), + 13: uint32(0x01000000), + 14: uint32(0x01010000), + 15: uint32(0x01010000), + }, + 1: { + 2: uint32(0x00000001), + 3: uint32(0x00000001), + 6: uint32(0x00000001), + 7: uint32(0x00000001), + 8: uint32(0x00000100), + 9: uint32(0x00000100), + 10: uint32(0x00000101), + 11: uint32(0x00000101), + 12: uint32(0x00000100), + 13: uint32(0x00000100), + 14: uint32(0x00000101), + 15: uint32(0x00000101), + }, + 2: { + 2: uint32(0x00020000), + 3: uint32(0x00020000), + 6: uint32(0x00020000), + 7: uint32(0x00020000), + 8: uint32(0x02000000), + 9: uint32(0x02000000), + 10: uint32(0x02020000), + 11: uint32(0x02020000), + 12: uint32(0x02000000), + 13: uint32(0x02000000), + 14: uint32(0x02020000), + 15: uint32(0x02020000), + }, + 3: { + 2: uint32(0x00000002), + 3: uint32(0x00000002), + 6: uint32(0x00000002), + 7: uint32(0x00000002), + 8: uint32(0x00000200), + 9: uint32(0x00000200), + 10: uint32(0x00000202), + 11: uint32(0x00000202), + 12: uint32(0x00000200), + 13: uint32(0x00000200), + 14: uint32(0x00000202), + 15: uint32(0x00000202), + }, + 4: { + 2: uint32(0x00040000), + 3: uint32(0x00040000), + 6: uint32(0x00040000), + 7: uint32(0x00040000), + 8: uint32(0x04000000), + 9: uint32(0x04000000), + 10: uint32(0x04040000), + 11: uint32(0x04040000), + 12: uint32(0x04000000), + 13: uint32(0x04000000), + 14: uint32(0x04040000), + 15: uint32(0x04040000), + }, + 5: { + 2: uint32(0x00000004), + 3: uint32(0x00000004), + 6: uint32(0x00000004), + 7: uint32(0x00000004), + 8: uint32(0x00000400), + 9: uint32(0x00000400), + 10: uint32(0x00000404), + 11: uint32(0x00000404), + 12: uint32(0x00000400), + 13: uint32(0x00000400), + 14: uint32(0x00000404), + 15: uint32(0x00000404), + }, + 6: { + 2: uint32(0x00080000), + 3: uint32(0x00080000), + 6: uint32(0x00080000), + 7: uint32(0x00080000), + 8: uint32(0x08000000), + 9: uint32(0x08000000), + 10: uint32(0x08080000), + 11: uint32(0x08080000), + 12: uint32(0x08000000), + 13: uint32(0x08000000), + 14: uint32(0x08080000), + 15: uint32(0x08080000), + }, + 7: { + 2: uint32(0x00000008), + 3: uint32(0x00000008), + 6: uint32(0x00000008), + 7: uint32(0x00000008), + 8: uint32(0x00000800), + 9: uint32(0x00000800), + 10: uint32(0x00000808), + 11: uint32(0x00000808), + 12: uint32(0x00000800), + 13: uint32(0x00000800), + 14: uint32(0x00000808), + 15: uint32(0x00000808), + }, + 8: { + 2: uint32(0x00100000), + 3: uint32(0x00100000), + 6: uint32(0x00100000), + 7: uint32(0x00100000), + 8: uint32(0x10000000), + 9: uint32(0x10000000), + 10: uint32(0x10100000), + 11: uint32(0x10100000), + 12: uint32(0x10000000), + 13: uint32(0x10000000), + 14: uint32(0x10100000), + 15: uint32(0x10100000), + }, + 9: { + 2: uint32(0x00000010), + 3: uint32(0x00000010), + 6: uint32(0x00000010), + 7: uint32(0x00000010), + 8: uint32(0x00001000), + 9: uint32(0x00001000), + 10: uint32(0x00001010), + 11: uint32(0x00001010), + 12: uint32(0x00001000), + 13: uint32(0x00001000), + 14: uint32(0x00001010), + 15: uint32(0x00001010), + }, + 10: { + 2: uint32(0x00200000), + 3: uint32(0x00200000), + 6: uint32(0x00200000), + 7: uint32(0x00200000), + 8: uint32(0x20000000), + 9: uint32(0x20000000), + 10: uint32(0x20200000), + 11: uint32(0x20200000), + 12: uint32(0x20000000), + 13: uint32(0x20000000), + 14: uint32(0x20200000), + 15: uint32(0x20200000), + }, + 11: { + 2: uint32(0x00000020), + 3: uint32(0x00000020), + 6: uint32(0x00000020), + 7: uint32(0x00000020), + 8: uint32(0x00002000), + 9: uint32(0x00002000), + 10: uint32(0x00002020), + 11: uint32(0x00002020), + 12: uint32(0x00002000), + 13: uint32(0x00002000), + 14: uint32(0x00002020), + 15: uint32(0x00002020), + }, + 12: { + 2: uint32(0x00400000), + 3: uint32(0x00400000), + 6: uint32(0x00400000), + 7: uint32(0x00400000), + 8: uint32(0x40000000), + 9: uint32(0x40000000), + 10: uint32(0x40400000), + 11: uint32(0x40400000), + 12: uint32(0x40000000), + 13: uint32(0x40000000), + 14: uint32(0x40400000), + 15: uint32(0x40400000), + }, + 13: { + 2: uint32(0x00000040), + 3: uint32(0x00000040), + 6: uint32(0x00000040), + 7: uint32(0x00000040), + 8: uint32(0x00004000), + 9: uint32(0x00004000), + 10: uint32(0x00004040), + 11: uint32(0x00004040), + 12: uint32(0x00004000), + 13: uint32(0x00004000), + 14: uint32(0x00004040), + 15: uint32(0x00004040), + }, + 14: { + 2: uint32(0x00800000), + 3: uint32(0x00800000), + 6: uint32(0x00800000), + 7: uint32(0x00800000), + 8: uint32(0x80000000), + 9: uint32(0x80000000), + 10: uint32(0x80800000), + 11: uint32(0x80800000), + 12: uint32(0x80000000), + 13: uint32(0x80000000), + 14: uint32(0x80800000), + 15: uint32(0x80800000), + }, + 15: { + 2: uint32(0x00000080), + 3: uint32(0x00000080), + 6: uint32(0x00000080), + 7: uint32(0x00000080), + 8: uint32(0x00008000), + 9: uint32(0x00008000), + 10: uint32(0x00008080), + 11: uint32(0x00008080), + 12: uint32(0x00008000), + 13: uint32(0x00008000), + 14: uint32(0x00008080), + 15: uint32(0x00008080), + }, +} +var _fp_maskl = [8][16]Tuint32_t{ + 0: { + 1: uint32(0x40000000), + 2: uint32(0x00400000), + 3: uint32(0x40400000), + 4: uint32(0x00004000), + 5: uint32(0x40004000), + 6: uint32(0x00404000), + 7: uint32(0x40404000), + 8: uint32(0x00000040), + 9: uint32(0x40000040), + 10: uint32(0x00400040), + 11: uint32(0x40400040), + 12: uint32(0x00004040), + 13: uint32(0x40004040), + 14: uint32(0x00404040), + 15: uint32(0x40404040), + }, + 1: { + 1: uint32(0x10000000), + 2: uint32(0x00100000), + 3: uint32(0x10100000), + 4: uint32(0x00001000), + 5: uint32(0x10001000), + 6: uint32(0x00101000), + 7: uint32(0x10101000), + 8: uint32(0x00000010), + 9: uint32(0x10000010), + 10: uint32(0x00100010), + 11: uint32(0x10100010), + 12: uint32(0x00001010), + 13: uint32(0x10001010), + 14: uint32(0x00101010), + 15: uint32(0x10101010), + }, + 2: { + 1: uint32(0x04000000), + 2: uint32(0x00040000), + 3: uint32(0x04040000), + 4: uint32(0x00000400), + 5: uint32(0x04000400), + 6: uint32(0x00040400), + 7: uint32(0x04040400), + 8: uint32(0x00000004), + 9: uint32(0x04000004), + 10: uint32(0x00040004), + 11: uint32(0x04040004), + 12: uint32(0x00000404), + 13: uint32(0x04000404), + 14: uint32(0x00040404), + 15: uint32(0x04040404), + }, + 3: { + 1: uint32(0x01000000), + 2: uint32(0x00010000), + 3: uint32(0x01010000), + 4: uint32(0x00000100), + 5: uint32(0x01000100), + 6: uint32(0x00010100), + 7: uint32(0x01010100), + 8: uint32(0x00000001), + 9: uint32(0x01000001), + 10: uint32(0x00010001), + 11: uint32(0x01010001), + 12: uint32(0x00000101), + 13: uint32(0x01000101), + 14: uint32(0x00010101), + 15: uint32(0x01010101), + }, + 4: { + 1: uint32(0x80000000), + 2: uint32(0x00800000), + 3: uint32(0x80800000), + 4: uint32(0x00008000), + 5: uint32(0x80008000), + 6: uint32(0x00808000), + 7: uint32(0x80808000), + 8: uint32(0x00000080), + 9: uint32(0x80000080), + 10: uint32(0x00800080), + 11: uint32(0x80800080), + 12: uint32(0x00008080), + 13: uint32(0x80008080), + 14: uint32(0x00808080), + 15: uint32(0x80808080), + }, + 5: { + 1: uint32(0x20000000), + 2: uint32(0x00200000), + 3: uint32(0x20200000), + 4: uint32(0x00002000), + 5: uint32(0x20002000), + 6: uint32(0x00202000), + 7: uint32(0x20202000), + 8: uint32(0x00000020), + 9: uint32(0x20000020), + 10: uint32(0x00200020), + 11: uint32(0x20200020), + 12: uint32(0x00002020), + 13: uint32(0x20002020), + 14: uint32(0x00202020), + 15: uint32(0x20202020), + }, + 6: { + 1: uint32(0x08000000), + 2: uint32(0x00080000), + 3: uint32(0x08080000), + 4: uint32(0x00000800), + 5: uint32(0x08000800), + 6: uint32(0x00080800), + 7: uint32(0x08080800), + 8: uint32(0x00000008), + 9: uint32(0x08000008), + 10: uint32(0x00080008), + 11: uint32(0x08080008), + 12: uint32(0x00000808), + 13: uint32(0x08000808), + 14: uint32(0x00080808), + 15: uint32(0x08080808), + }, + 7: { + 1: uint32(0x02000000), + 2: uint32(0x00020000), + 3: uint32(0x02020000), + 4: uint32(0x00000200), + 5: uint32(0x02000200), + 6: uint32(0x00020200), + 7: uint32(0x02020200), + 8: uint32(0x00000002), + 9: uint32(0x02000002), + 10: uint32(0x00020002), + 11: uint32(0x02020002), + 12: uint32(0x00000202), + 13: uint32(0x02000202), + 14: uint32(0x00020202), + 15: uint32(0x02020202), + }, +} +var _fp_maskr = [8][16]Tuint32_t{ + 0: { + 1: uint32(0x40000000), + 2: uint32(0x00400000), + 3: uint32(0x40400000), + 4: uint32(0x00004000), + 5: uint32(0x40004000), + 6: uint32(0x00404000), + 7: uint32(0x40404000), + 8: uint32(0x00000040), + 9: uint32(0x40000040), + 10: uint32(0x00400040), + 11: uint32(0x40400040), + 12: uint32(0x00004040), + 13: uint32(0x40004040), + 14: uint32(0x00404040), + 15: uint32(0x40404040), + }, + 1: { + 1: uint32(0x10000000), + 2: uint32(0x00100000), + 3: uint32(0x10100000), + 4: uint32(0x00001000), + 5: uint32(0x10001000), + 6: uint32(0x00101000), + 7: uint32(0x10101000), + 8: uint32(0x00000010), + 9: uint32(0x10000010), + 10: uint32(0x00100010), + 11: uint32(0x10100010), + 12: uint32(0x00001010), + 13: uint32(0x10001010), + 14: uint32(0x00101010), + 15: uint32(0x10101010), + }, + 2: { + 1: uint32(0x04000000), + 2: uint32(0x00040000), + 3: uint32(0x04040000), + 4: uint32(0x00000400), + 5: uint32(0x04000400), + 6: uint32(0x00040400), + 7: uint32(0x04040400), + 8: uint32(0x00000004), + 9: uint32(0x04000004), + 10: uint32(0x00040004), + 11: uint32(0x04040004), + 12: uint32(0x00000404), + 13: uint32(0x04000404), + 14: uint32(0x00040404), + 15: uint32(0x04040404), + }, + 3: { + 1: uint32(0x01000000), + 2: uint32(0x00010000), + 3: uint32(0x01010000), + 4: uint32(0x00000100), + 5: uint32(0x01000100), + 6: uint32(0x00010100), + 7: uint32(0x01010100), + 8: uint32(0x00000001), + 9: uint32(0x01000001), + 10: uint32(0x00010001), + 11: uint32(0x01010001), + 12: uint32(0x00000101), + 13: uint32(0x01000101), + 14: uint32(0x00010101), + 15: uint32(0x01010101), + }, + 4: { + 1: uint32(0x80000000), + 2: uint32(0x00800000), + 3: uint32(0x80800000), + 4: uint32(0x00008000), + 5: uint32(0x80008000), + 6: uint32(0x00808000), + 7: uint32(0x80808000), + 8: uint32(0x00000080), + 9: uint32(0x80000080), + 10: uint32(0x00800080), + 11: uint32(0x80800080), + 12: uint32(0x00008080), + 13: uint32(0x80008080), + 14: uint32(0x00808080), + 15: uint32(0x80808080), + }, + 5: { + 1: uint32(0x20000000), + 2: uint32(0x00200000), + 3: uint32(0x20200000), + 4: uint32(0x00002000), + 5: uint32(0x20002000), + 6: uint32(0x00202000), + 7: uint32(0x20202000), + 8: uint32(0x00000020), + 9: uint32(0x20000020), + 10: uint32(0x00200020), + 11: uint32(0x20200020), + 12: uint32(0x00002020), + 13: uint32(0x20002020), + 14: uint32(0x00202020), + 15: uint32(0x20202020), + }, + 6: { + 1: uint32(0x08000000), + 2: uint32(0x00080000), + 3: uint32(0x08080000), + 4: uint32(0x00000800), + 5: uint32(0x08000800), + 6: uint32(0x00080800), + 7: uint32(0x08080800), + 8: uint32(0x00000008), + 9: uint32(0x08000008), + 10: uint32(0x00080008), + 11: uint32(0x08080008), + 12: uint32(0x00000808), + 13: uint32(0x08000808), + 14: uint32(0x00080808), + 15: uint32(0x08080808), + }, + 7: { + 1: uint32(0x02000000), + 2: uint32(0x00020000), + 3: uint32(0x02020000), + 4: uint32(0x00000200), + 5: uint32(0x02000200), + 6: uint32(0x00020200), + 7: uint32(0x02020200), + 8: uint32(0x00000002), + 9: uint32(0x02000002), + 10: uint32(0x00020002), + 11: uint32(0x02020002), + 12: uint32(0x00000202), + 13: uint32(0x02000202), + 14: uint32(0x00020202), + 15: uint32(0x02020202), + }, +} +var _key_perm_maskl = [8][16]Tuint32_t{ + 0: { + 2: uint32(0x00000010), + 3: uint32(0x00000010), + 4: uint32(0x00001000), + 5: uint32(0x00001000), + 6: uint32(0x00001010), + 7: uint32(0x00001010), + 8: uint32(0x00100000), + 9: uint32(0x00100000), + 10: uint32(0x00100010), + 11: uint32(0x00100010), + 12: uint32(0x00101000), + 13: uint32(0x00101000), + 14: uint32(0x00101010), + 15: uint32(0x00101010), + }, + 1: { + 2: uint32(0x00000020), + 3: uint32(0x00000020), + 4: uint32(0x00002000), + 5: uint32(0x00002000), + 6: uint32(0x00002020), + 7: uint32(0x00002020), + 8: uint32(0x00200000), + 9: uint32(0x00200000), + 10: uint32(0x00200020), + 11: uint32(0x00200020), + 12: uint32(0x00202000), + 13: uint32(0x00202000), + 14: uint32(0x00202020), + 15: uint32(0x00202020), + }, + 2: { + 2: uint32(0x00000040), + 3: uint32(0x00000040), + 4: uint32(0x00004000), + 5: uint32(0x00004000), + 6: uint32(0x00004040), + 7: uint32(0x00004040), + 8: uint32(0x00400000), + 9: uint32(0x00400000), + 10: uint32(0x00400040), + 11: uint32(0x00400040), + 12: uint32(0x00404000), + 13: uint32(0x00404000), + 14: uint32(0x00404040), + 15: uint32(0x00404040), + }, + 3: { + 2: uint32(0x00000080), + 3: uint32(0x00000080), + 4: uint32(0x00008000), + 5: uint32(0x00008000), + 6: uint32(0x00008080), + 7: uint32(0x00008080), + 8: uint32(0x00800000), + 9: uint32(0x00800000), + 10: uint32(0x00800080), + 11: uint32(0x00800080), + 12: uint32(0x00808000), + 13: uint32(0x00808000), + 14: uint32(0x00808080), + 15: uint32(0x00808080), + }, + 4: { + 1: uint32(0x00000001), + 2: uint32(0x00000100), + 3: uint32(0x00000101), + 4: uint32(0x00010000), + 5: uint32(0x00010001), + 6: uint32(0x00010100), + 7: uint32(0x00010101), + 8: uint32(0x01000000), + 9: uint32(0x01000001), + 10: uint32(0x01000100), + 11: uint32(0x01000101), + 12: uint32(0x01010000), + 13: uint32(0x01010001), + 14: uint32(0x01010100), + 15: uint32(0x01010101), + }, + 5: { + 1: uint32(0x00000002), + 2: uint32(0x00000200), + 3: uint32(0x00000202), + 4: uint32(0x00020000), + 5: uint32(0x00020002), + 6: uint32(0x00020200), + 7: uint32(0x00020202), + 8: uint32(0x02000000), + 9: uint32(0x02000002), + 10: uint32(0x02000200), + 11: uint32(0x02000202), + 12: uint32(0x02020000), + 13: uint32(0x02020002), + 14: uint32(0x02020200), + 15: uint32(0x02020202), + }, + 6: { + 1: uint32(0x00000004), + 2: uint32(0x00000400), + 3: uint32(0x00000404), + 4: uint32(0x00040000), + 5: uint32(0x00040004), + 6: uint32(0x00040400), + 7: uint32(0x00040404), + 8: uint32(0x04000000), + 9: uint32(0x04000004), + 10: uint32(0x04000400), + 11: uint32(0x04000404), + 12: uint32(0x04040000), + 13: uint32(0x04040004), + 14: uint32(0x04040400), + 15: uint32(0x04040404), + }, + 7: { + 1: uint32(0x00000008), + 2: uint32(0x00000800), + 3: uint32(0x00000808), + 4: uint32(0x00080000), + 5: uint32(0x00080008), + 6: uint32(0x00080800), + 7: uint32(0x00080808), + 8: uint32(0x08000000), + 9: uint32(0x08000008), + 10: uint32(0x08000800), + 11: uint32(0x08000808), + 12: uint32(0x08080000), + 13: uint32(0x08080008), + 14: uint32(0x08080800), + 15: uint32(0x08080808), + }, +} +var _key_perm_maskr = [12][16]Tuint32_t{ + 0: { + 1: uint32(0x00000001), + 3: uint32(0x00000001), + 5: uint32(0x00000001), + 7: uint32(0x00000001), + 9: uint32(0x00000001), + 11: uint32(0x00000001), + 13: uint32(0x00000001), + 15: uint32(0x00000001), + }, + 1: { + 2: uint32(0x00100000), + 3: uint32(0x00100000), + 4: uint32(0x00001000), + 5: uint32(0x00001000), + 6: uint32(0x00101000), + 7: uint32(0x00101000), + 8: uint32(0x00000010), + 9: uint32(0x00000010), + 10: uint32(0x00100010), + 11: uint32(0x00100010), + 12: uint32(0x00001010), + 13: uint32(0x00001010), + 14: uint32(0x00101010), + 15: uint32(0x00101010), + }, + 2: { + 1: uint32(0x00000002), + 3: uint32(0x00000002), + 5: uint32(0x00000002), + 7: uint32(0x00000002), + 9: uint32(0x00000002), + 11: uint32(0x00000002), + 13: uint32(0x00000002), + 15: uint32(0x00000002), + }, + 3: { + 2: uint32(0x00200000), + 3: uint32(0x00200000), + 4: uint32(0x00002000), + 5: uint32(0x00002000), + 6: uint32(0x00202000), + 7: uint32(0x00202000), + 8: uint32(0x00000020), + 9: uint32(0x00000020), + 10: uint32(0x00200020), + 11: uint32(0x00200020), + 12: uint32(0x00002020), + 13: uint32(0x00002020), + 14: uint32(0x00202020), + 15: uint32(0x00202020), + }, + 4: { + 1: uint32(0x00000004), + 3: uint32(0x00000004), + 5: uint32(0x00000004), + 7: uint32(0x00000004), + 9: uint32(0x00000004), + 11: uint32(0x00000004), + 13: uint32(0x00000004), + 15: uint32(0x00000004), + }, + 5: { + 2: uint32(0x00400000), + 3: uint32(0x00400000), + 4: uint32(0x00004000), + 5: uint32(0x00004000), + 6: uint32(0x00404000), + 7: uint32(0x00404000), + 8: uint32(0x00000040), + 9: uint32(0x00000040), + 10: uint32(0x00400040), + 11: uint32(0x00400040), + 12: uint32(0x00004040), + 13: uint32(0x00004040), + 14: uint32(0x00404040), + 15: uint32(0x00404040), + }, + 6: { + 1: uint32(0x00000008), + 3: uint32(0x00000008), + 5: uint32(0x00000008), + 7: uint32(0x00000008), + 9: uint32(0x00000008), + 11: uint32(0x00000008), + 13: uint32(0x00000008), + 15: uint32(0x00000008), + }, + 7: { + 2: uint32(0x00800000), + 3: uint32(0x00800000), + 4: uint32(0x00008000), + 5: uint32(0x00008000), + 6: uint32(0x00808000), + 7: uint32(0x00808000), + 8: uint32(0x00000080), + 9: uint32(0x00000080), + 10: uint32(0x00800080), + 11: uint32(0x00800080), + 12: uint32(0x00008080), + 13: uint32(0x00008080), + 14: uint32(0x00808080), + 15: uint32(0x00808080), + }, + 8: { + 2: uint32(0x01000000), + 3: uint32(0x01000000), + 4: uint32(0x00010000), + 5: uint32(0x00010000), + 6: uint32(0x01010000), + 7: uint32(0x01010000), + 8: uint32(0x00000100), + 9: uint32(0x00000100), + 10: uint32(0x01000100), + 11: uint32(0x01000100), + 12: uint32(0x00010100), + 13: uint32(0x00010100), + 14: uint32(0x01010100), + 15: uint32(0x01010100), + }, + 9: { + 2: uint32(0x02000000), + 3: uint32(0x02000000), + 4: uint32(0x00020000), + 5: uint32(0x00020000), + 6: uint32(0x02020000), + 7: uint32(0x02020000), + 8: uint32(0x00000200), + 9: uint32(0x00000200), + 10: uint32(0x02000200), + 11: uint32(0x02000200), + 12: uint32(0x00020200), + 13: uint32(0x00020200), + 14: uint32(0x02020200), + 15: uint32(0x02020200), + }, + 10: { + 2: uint32(0x04000000), + 3: uint32(0x04000000), + 4: uint32(0x00040000), + 5: uint32(0x00040000), + 6: uint32(0x04040000), + 7: uint32(0x04040000), + 8: uint32(0x00000400), + 9: uint32(0x00000400), + 10: uint32(0x04000400), + 11: uint32(0x04000400), + 12: uint32(0x00040400), + 13: uint32(0x00040400), + 14: uint32(0x04040400), + 15: uint32(0x04040400), + }, + 11: { + 2: uint32(0x08000000), + 3: uint32(0x08000000), + 4: uint32(0x00080000), + 5: uint32(0x00080000), + 6: uint32(0x08080000), + 7: uint32(0x08080000), + 8: uint32(0x00000800), + 9: uint32(0x00000800), + 10: uint32(0x08000800), + 11: uint32(0x08000800), + 12: uint32(0x00080800), + 13: uint32(0x00080800), + 14: uint32(0x08080800), + 15: uint32(0x08080800), + }, +} +var _comp_maskl0 = [4][8]Tuint32_t{ + 0: { + 1: uint32(0x00020000), + 2: uint32(0x00000001), + 3: uint32(0x00020001), + 4: uint32(0x00080000), + 5: uint32(0x000a0000), + 6: uint32(0x00080001), + 7: uint32(0x000a0001), + }, + 1: { + 1: uint32(0x00001000), + 3: uint32(0x00001000), + 4: uint32(0x00000040), + 5: uint32(0x00001040), + 6: uint32(0x00000040), + 7: uint32(0x00001040), + }, + 2: { + 1: uint32(0x00400000), + 2: uint32(0x00000020), + 3: uint32(0x00400020), + 4: uint32(0x00008000), + 5: uint32(0x00408000), + 6: uint32(0x00008020), + 7: uint32(0x00408020), + }, + 3: { + 1: uint32(0x00100000), + 2: uint32(0x00000800), + 3: uint32(0x00100800), + 5: uint32(0x00100000), + 6: uint32(0x00000800), + 7: uint32(0x00100800), + }, +} +var _comp_maskr0 = [4][8]Tuint32_t{ + 0: { + 1: uint32(0x00200000), + 2: uint32(0x00020000), + 3: uint32(0x00220000), + 4: uint32(0x00000002), + 5: uint32(0x00200002), + 6: uint32(0x00020002), + 7: uint32(0x00220002), + }, + 1: { + 2: uint32(0x00100000), + 3: uint32(0x00100000), + 4: uint32(0x00000004), + 5: uint32(0x00000004), + 6: uint32(0x00100004), + 7: uint32(0x00100004), + }, + 2: { + 1: uint32(0x00004000), + 2: uint32(0x00000800), + 3: uint32(0x00004800), + 5: uint32(0x00004000), + 6: uint32(0x00000800), + 7: uint32(0x00004800), + }, + 3: { + 1: uint32(0x00400000), + 2: uint32(0x00008000), + 3: uint32(0x00408000), + 4: uint32(0x00000008), + 5: uint32(0x00400008), + 6: uint32(0x00008008), + 7: uint32(0x00408008), + }, +} +var _comp_maskl1 = [4][16]Tuint32_t{ + 0: { + 1: uint32(0x00000010), + 2: uint32(0x00004000), + 3: uint32(0x00004010), + 4: uint32(0x00040000), + 5: uint32(0x00040010), + 6: uint32(0x00044000), + 7: uint32(0x00044010), + 8: uint32(0x00000100), + 9: uint32(0x00000110), + 10: uint32(0x00004100), + 11: uint32(0x00004110), + 12: uint32(0x00040100), + 13: uint32(0x00040110), + 14: uint32(0x00044100), + 15: uint32(0x00044110), + }, + 1: { + 1: uint32(0x00800000), + 2: uint32(0x00000002), + 3: uint32(0x00800002), + 4: uint32(0x00000200), + 5: uint32(0x00800200), + 6: uint32(0x00000202), + 7: uint32(0x00800202), + 8: uint32(0x00200000), + 9: uint32(0x00a00000), + 10: uint32(0x00200002), + 11: uint32(0x00a00002), + 12: uint32(0x00200200), + 13: uint32(0x00a00200), + 14: uint32(0x00200202), + 15: uint32(0x00a00202), + }, + 2: { + 1: uint32(0x00002000), + 2: uint32(0x00000004), + 3: uint32(0x00002004), + 4: uint32(0x00000400), + 5: uint32(0x00002400), + 6: uint32(0x00000404), + 7: uint32(0x00002404), + 9: uint32(0x00002000), + 10: uint32(0x00000004), + 11: uint32(0x00002004), + 12: uint32(0x00000400), + 13: uint32(0x00002400), + 14: uint32(0x00000404), + 15: uint32(0x00002404), + }, + 3: { + 1: uint32(0x00010000), + 2: uint32(0x00000008), + 3: uint32(0x00010008), + 4: uint32(0x00000080), + 5: uint32(0x00010080), + 6: uint32(0x00000088), + 7: uint32(0x00010088), + 9: uint32(0x00010000), + 10: uint32(0x00000008), + 11: uint32(0x00010008), + 12: uint32(0x00000080), + 13: uint32(0x00010080), + 14: uint32(0x00000088), + 15: uint32(0x00010088), + }, +} +var _comp_maskr1 = [4][16]Tuint32_t{ + 0: { + 2: uint32(0x00000080), + 3: uint32(0x00000080), + 4: uint32(0x00002000), + 5: uint32(0x00002000), + 6: uint32(0x00002080), + 7: uint32(0x00002080), + 8: uint32(0x00000001), + 9: uint32(0x00000001), + 10: uint32(0x00000081), + 11: uint32(0x00000081), + 12: uint32(0x00002001), + 13: uint32(0x00002001), + 14: uint32(0x00002081), + 15: uint32(0x00002081), + }, + 1: { + 1: uint32(0x00000010), + 2: uint32(0x00800000), + 3: uint32(0x00800010), + 4: uint32(0x00010000), + 5: uint32(0x00010010), + 6: uint32(0x00810000), + 7: uint32(0x00810010), + 8: uint32(0x00000200), + 9: uint32(0x00000210), + 10: uint32(0x00800200), + 11: uint32(0x00800210), + 12: uint32(0x00010200), + 13: uint32(0x00010210), + 14: uint32(0x00810200), + 15: uint32(0x00810210), + }, + 2: { + 1: uint32(0x00000400), + 2: uint32(0x00001000), + 3: uint32(0x00001400), + 4: uint32(0x00080000), + 5: uint32(0x00080400), + 6: uint32(0x00081000), + 7: uint32(0x00081400), + 8: uint32(0x00000020), + 9: uint32(0x00000420), + 10: uint32(0x00001020), + 11: uint32(0x00001420), + 12: uint32(0x00080020), + 13: uint32(0x00080420), + 14: uint32(0x00081020), + 15: uint32(0x00081420), + }, + 3: { + 1: uint32(0x00000100), + 2: uint32(0x00040000), + 3: uint32(0x00040100), + 5: uint32(0x00000100), + 6: uint32(0x00040000), + 7: uint32(0x00040100), + 8: uint32(0x00000040), + 9: uint32(0x00000140), + 10: uint32(0x00040040), + 11: uint32(0x00040140), + 12: uint32(0x00000040), + 13: uint32(0x00000140), + 14: uint32(0x00040040), + 15: uint32(0x00040140), + }, +} + +var _ascii64 = [65]uint8{'.', '/', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'} + +/* 0000000000111111111122222222223333333333444444444455555555556666 */ +/* 0123456789012345678901234567890123456789012345678901234567890123 */ + +// C documentation +// +// /* +// * We match the behavior of UFC-crypt on systems where "char" is signed by +// * default (the majority), regardless of char's signedness on our system. +// */ +func _ascii_to_bin(tls *TLS, ch int32) (r Tuint32_t) { + var retval, sch, v1 int32 + _, _, _ = retval, sch, v1 + if ch < int32(0x80) { + v1 = ch + } else { + v1 = -(int32(0x100) - ch) + } + sch = v1 + retval = sch - int32('.') + if sch >= int32('A') { + retval = sch - (Int32FromUint8('A') - Int32FromInt32(12)) + if sch >= int32('a') { + retval = sch - (Int32FromUint8('a') - Int32FromInt32(38)) + } + } + retval = retval & int32(0x3f) + return Uint32FromInt32(retval) +} + +// C documentation +// +// /* +// * When we choose to "support" invalid salts, nevertheless disallow those +// * containing characters that would violate the passwd file format. +// */ +func _ascii_is_unsafe(tls *TLS, ch uint8) (r int32) { + return BoolInt32(!(ch != 0) || Int32FromUint8(ch) == int32('\n') || Int32FromUint8(ch) == int32(':')) +} + +func _setup_salt(tls *TLS, salt Tuint32_t) (r Tuint32_t) { + var i uint32 + var obit, saltbit, saltbits Tuint32_t + _, _, _, _ = i, obit, saltbit, saltbits + saltbits = uint32(0) + saltbit = uint32(1) + obit = uint32(0x800000) + i = uint32(0) + for { + if !(i < uint32(24)) { + break + } + if salt&saltbit != 0 { + saltbits = saltbits | obit + } + saltbit = saltbit << uint32(1) + obit = obit >> uint32(1) + goto _1 + _1: + ; + i = i + 1 + } + return saltbits +} + +func X__des_setkey(tls *TLS, key uintptr, ekey uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v ekey=%v, (%v:)", tls, key, ekey, origin(2)) + } + var i, ibit, j, round, shifts uint32 + var k0, k1, kl, kr, rawkey0, rawkey1, t0, t1, v1 Tuint32_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = i, ibit, j, k0, k1, kl, kr, rawkey0, rawkey1, round, shifts, t0, t1, v1 + rawkey0 = uint32(**(**uint8)(__ccgo_up(key + 3))) | uint32(**(**uint8)(__ccgo_up(key + 2)))<>ibit&uint32(0xf))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_key_perm_maskl)) + uintptr(i+uint32(4))*64 + uintptr(rawkey1>>ibit&uint32(0xf))*4))) + k1 = k1 | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_key_perm_maskr)) + uintptr(j)*64 + uintptr(rawkey0>>ibit&uint32(0xf))*4)) + ibit = ibit - uint32(4) + k1 = k1 | (**(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_key_perm_maskr)) + uintptr(j+uint32(1))*64 + uintptr(rawkey0>>ibit&uint32(0xf))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_key_perm_maskr)) + uintptr(i+uint32(8))*64 + uintptr(rawkey1>>ibit&uint32(0xf))*4))) + goto _2 + _2: + ; + i = i + 1 + ibit = ibit - uint32(4) + } + /* + * Rotate subkeys and do compression permutation. + */ + shifts = uint32(0) + round = uint32(0) + for { + if !(round < uint32(16)) { + break + } + shifts = shifts + uint32(_key_shifts[round]) + t0 = k0<>(Uint32FromInt32(28)-shifts) + t1 = k1<>(Uint32FromInt32(28)-shifts) + v1 = Uint32FromInt32(0) + kr = v1 + kl = v1 + ibit = uint32(25) + i = uint32(0) + for { + if !(i < uint32(4)) { + break + } + kl = kl | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_comp_maskl0)) + uintptr(i)*32 + uintptr(t0>>ibit&uint32(7))*4)) + kr = kr | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_comp_maskr0)) + uintptr(i)*32 + uintptr(t1>>ibit&uint32(7))*4)) + ibit = ibit - uint32(4) + kl = kl | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_comp_maskl1)) + uintptr(i)*64 + uintptr(t0>>ibit&uint32(0xf))*4)) + kr = kr | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_comp_maskr1)) + uintptr(i)*64 + uintptr(t1>>ibit&uint32(0xf))*4)) + ibit = ibit - uint32(3) + goto _5 + _5: + ; + i = i + 1 + } + **(**Tuint32_t)(__ccgo_up(ekey + uintptr(round)*4)) = kl + **(**Tuint32_t)(__ccgo_up(ekey + 64 + uintptr(round)*4)) = kr + goto _3 + _3: + ; + round = round + 1 + } +} + +// C documentation +// +// /* +// * l_in, r_in, l_out, and r_out are in pseudo-"big-endian" format. +// */ +func X__do_des(tls *TLS, l_in Tuint32_t, r_in Tuint32_t, l_out uintptr, r_out uintptr, count Tuint32_t, saltbits Tuint32_t, ekey uintptr) { + if __ccgo_strace { + trc("tls=%v l_in=%v r_in=%v l_out=%v r_out=%v count=%v saltbits=%v ekey=%v, (%v:)", tls, l_in, r_in, l_out, r_out, count, saltbits, ekey, origin(2)) + } + var f, l, lo, r, r48l, r48r, ro, v1 Tuint32_t + var i, i1, ibit, ibit1, round, v4 uint32 + var kl, kr, v5 uintptr + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = f, i, i1, ibit, ibit1, kl, kr, l, lo, r, r48l, r48r, ro, round, v1, v4, v5 + /* + * Do initial permutation (IP). + */ + v1 = Uint32FromInt32(0) + r = v1 + l = v1 + if l_in|r_in != 0 { + i = uint32(0) + ibit = Uint32FromInt32(28) + for { + if !(i < uint32(8)) { + break + } + l = l | (**(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_ip_maskl)) + uintptr(i)*64 + uintptr(l_in>>ibit&uint32(0xf))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_ip_maskl)) + uintptr(i+uint32(8))*64 + uintptr(r_in>>ibit&uint32(0xf))*4))) + r = r | (**(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_ip_maskr)) + uintptr(i)*64 + uintptr(l_in>>ibit&uint32(0xf))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_ip_maskr)) + uintptr(i+uint32(8))*64 + uintptr(r_in>>ibit&uint32(0xf))*4))) + goto _2 + _2: + ; + i = i + 1 + ibit = ibit - uint32(4) + } + } + for { + v1 = count + count = count - 1 + if !(v1 != 0) { + break + } + /* + * Do each round. + */ + round = uint32(16) + kl = ekey + kr = ekey + 64 + for { + v4 = round + round = round - 1 + if !(v4 != 0) { + break + } + /* + * Expand R to 48 bits (simulate the E-box). + */ + r48l = r&uint32(0x00000001)<>int32(9) | r&uint32(0x1f800000)>>int32(11) | r&uint32(0x01f80000)>>int32(13) | r&uint32(0x001f8000)>>int32(15) + r48r = r&uint32(0x0001f800)<>int32(31) + /* + * Do salting for crypt() and friends, and + * XOR with the permuted key. + */ + f = (r48l ^ r48r) & saltbits + v5 = kl + kl += 4 + r48l = r48l ^ (f ^ **(**Tuint32_t)(__ccgo_up(v5))) + v5 = kr + kr += 4 + r48r = r48r ^ (f ^ **(**Tuint32_t)(__ccgo_up(v5))) + /* + * Do S-box lookups (which shrink it back to 32 bits) + * and do the P-box permutation at the same time. + */ + f = **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_psbox)) + uintptr(r48l>>int32(18))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_psbox)) + 1*256 + uintptr(r48l>>Int32FromInt32(12)&uint32(0x3f))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_psbox)) + 2*256 + uintptr(r48l>>Int32FromInt32(6)&uint32(0x3f))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_psbox)) + 3*256 + uintptr(r48l&uint32(0x3f))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_psbox)) + 4*256 + uintptr(r48r>>int32(18))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_psbox)) + 5*256 + uintptr(r48r>>Int32FromInt32(12)&uint32(0x3f))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_psbox)) + 6*256 + uintptr(r48r>>Int32FromInt32(6)&uint32(0x3f))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_psbox)) + 7*256 + uintptr(r48r&uint32(0x3f))*4)) + /* + * Now that we've permuted things, complete f(). + */ + f = f ^ l + l = r + r = f + } + r = l + l = f + } + /* + * Do final permutation (inverse of IP). + */ + v1 = Uint32FromInt32(0) + ro = v1 + lo = v1 + i1 = uint32(0) + ibit1 = Uint32FromInt32(28) + for { + if !(i1 < uint32(4)) { + break + } + ro = ro | (**(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_fp_maskr)) + uintptr(i1)*64 + uintptr(l>>ibit1&uint32(0xf))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_fp_maskr)) + uintptr(i1+uint32(4))*64 + uintptr(r>>ibit1&uint32(0xf))*4))) + ibit1 = ibit1 - uint32(4) + lo = lo | (**(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_fp_maskl)) + uintptr(i1)*64 + uintptr(l>>ibit1&uint32(0xf))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_fp_maskl)) + uintptr(i1+uint32(4))*64 + uintptr(r>>ibit1&uint32(0xf))*4))) + goto _8 + _8: + ; + i1 = i1 + 1 + ibit1 = ibit1 - uint32(4) + } + **(**Tuint32_t)(__ccgo_up(l_out)) = lo + **(**Tuint32_t)(__ccgo_up(r_out)) = ro +} + +func _des_cipher(tls *TLS, in uintptr, out uintptr, count Tuint32_t, saltbits Tuint32_t, ekey uintptr) { + bp := tls.Alloc(16) + defer tls.Free(16) + var rawl, rawr Tuint32_t + var _ /* l_out at bp+0 */ Tuint32_t + var _ /* r_out at bp+4 */ Tuint32_t + _, _ = rawl, rawr + rawl = uint32(**(**uint8)(__ccgo_up(in + 3))) | uint32(**(**uint8)(__ccgo_up(in + 2)))<> int32(24)) + **(**uint8)(__ccgo_up(out + 1)) = uint8(**(**Tuint32_t)(__ccgo_up(bp)) >> int32(16)) + **(**uint8)(__ccgo_up(out + 2)) = uint8(**(**Tuint32_t)(__ccgo_up(bp)) >> int32(8)) + **(**uint8)(__ccgo_up(out + 3)) = uint8(**(**Tuint32_t)(__ccgo_up(bp))) + **(**uint8)(__ccgo_up(out + 4)) = uint8(**(**Tuint32_t)(__ccgo_up(bp + 4)) >> int32(24)) + **(**uint8)(__ccgo_up(out + 5)) = uint8(**(**Tuint32_t)(__ccgo_up(bp + 4)) >> int32(16)) + **(**uint8)(__ccgo_up(out + 6)) = uint8(**(**Tuint32_t)(__ccgo_up(bp + 4)) >> int32(8)) + **(**uint8)(__ccgo_up(out + 7)) = uint8(**(**Tuint32_t)(__ccgo_up(bp + 4))) +} + +func __crypt_extended_r_uut(tls *TLS, _key uintptr, _setting uintptr, output uintptr) (r uintptr) { + bp := tls.Alloc(144) + defer tls.Free(144) + var count, l, salt, value, value1 Tuint32_t + var i uint32 + var key, p, q, setting, v1, v4, v5 uintptr + var _ /* ekey at bp+0 */ Texpanded_key + var _ /* keybuf at bp+128 */ [8]uint8 + var _ /* r0 at bp+136 */ Tuint32_t + var _ /* r1 at bp+140 */ Tuint32_t + _, _, _, _, _, _, _, _, _, _, _, _, _ = count, i, key, l, p, q, salt, setting, value, value1, v1, v4, v5 + key = _key + setting = _setting + /* + * Copy the key, shifting each character left by one bit and padding + * with zeroes. + */ + q = bp + 128 + for q <= bp+128+uintptr(Uint64FromInt64(8)-Uint64FromInt32(1)) { + v1 = q + q = q + 1 + **(**uint8)(__ccgo_up(v1)) = Uint8FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(key))) << int32(1)) + if **(**uint8)(__ccgo_up(key)) != 0 { + key = key + 1 + } + } + X__des_setkey(tls, bp+128, bp) + if Int32FromUint8(**(**uint8)(__ccgo_up(setting))) == int32('_') { + /* + * "new"-style: + * setting - underscore, 4 chars of count, 4 chars of salt + * key - unlimited characters + */ + i = uint32(1) + count = Uint32FromInt32(0) + for { + if !(i < uint32(5)) { + break + } + value = _ascii_to_bin(tls, Int32FromUint8(**(**uint8)(__ccgo_up(setting + uintptr(i))))) + if Int32FromUint8(_ascii64[value]) != Int32FromUint8(**(**uint8)(__ccgo_up(setting + uintptr(i)))) { + return UintptrFromInt32(0) + } + count = count | value<<((i-uint32(1))*uint32(6)) + goto _2 + _2: + ; + i = i + 1 + } + if !(count != 0) { + return UintptrFromInt32(0) + } + i = uint32(5) + salt = Uint32FromInt32(0) + for { + if !(i < uint32(9)) { + break + } + value1 = _ascii_to_bin(tls, Int32FromUint8(**(**uint8)(__ccgo_up(setting + uintptr(i))))) + if Int32FromUint8(_ascii64[value1]) != Int32FromUint8(**(**uint8)(__ccgo_up(setting + uintptr(i)))) { + return UintptrFromInt32(0) + } + salt = salt | value1<<((i-uint32(5))*uint32(6)) + goto _3 + _3: + ; + i = i + 1 + } + for **(**uint8)(__ccgo_up(key)) != 0 { + /* + * Encrypt the key with itself. + */ + _des_cipher(tls, bp+128, bp+128, uint32(1), uint32(0), bp) + /* + * And XOR with the next 8 characters of the key. + */ + q = bp + 128 + for q <= bp+128+uintptr(Uint64FromInt64(8)-Uint64FromInt32(1)) && **(**uint8)(__ccgo_up(key)) != 0 { + v4 = q + q = q + 1 + v1 = v4 + v5 = key + key = key + 1 + *(*uint8)(unsafe.Pointer(v1)) = uint8(int32(*(*uint8)(unsafe.Pointer(v1))) ^ Int32FromUint8(**(**uint8)(__ccgo_up(v5)))<> int32(8) + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l>>Int32FromInt32(18)&uint32(0x3f)] + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l>>Int32FromInt32(12)&uint32(0x3f)] + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l>>Int32FromInt32(6)&uint32(0x3f)] + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l&uint32(0x3f)] + l = **(**Tuint32_t)(__ccgo_up(bp + 136))<>Int32FromInt32(16)&uint32(0xffff) + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l>>Int32FromInt32(18)&uint32(0x3f)] + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l>>Int32FromInt32(12)&uint32(0x3f)] + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l>>Int32FromInt32(6)&uint32(0x3f)] + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l&uint32(0x3f)] + l = **(**Tuint32_t)(__ccgo_up(bp + 140)) << int32(2) + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l>>Int32FromInt32(12)&uint32(0x3f)] + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l>>Int32FromInt32(6)&uint32(0x3f)] + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l&uint32(0x3f)] + **(**uint8)(__ccgo_up(p)) = uint8(0) + return output +} + +func X__crypt_des(tls *TLS, key uintptr, setting uintptr, output uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v setting=%v output=%v, (%v:)", tls, key, setting, output, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var p, retval, test_hash, test_key, test_setting, v1 uintptr + var _ /* test_buf at bp+0 */ [21]uint8 + _, _, _, _, _, _ = p, retval, test_hash, test_key, test_setting, v1 + test_key = __ccgo_ts + 72 + test_setting = __ccgo_ts + 93 + test_hash = __ccgo_ts + 103 + if Int32FromUint8(**(**uint8)(__ccgo_up(setting))) != int32('_') { + test_setting = __ccgo_ts + 124 + test_hash = __ccgo_ts + 127 + } + /* + * Hash the supplied password. + */ + retval = __crypt_extended_r_uut(tls, key, setting, output) + /* + * Perform a quick self-test. It is important that we make both calls + * to _crypt_extended_r_uut() from the same scope such that they likely + * use the same stack locations, which makes the second call overwrite + * the first call's sensitive data on the stack and makes it more + * likely that any alignment related issues would be detected. + */ + p = __crypt_extended_r_uut(tls, test_key, test_setting, bp) + if p != 0 && !(Xstrcmp(tls, p, test_hash) != 0) && retval != 0 { + return retval + } + if Int32FromUint8(**(**uint8)(__ccgo_up(setting))) == int32('*') { + v1 = __ccgo_ts + 141 + } else { + v1 = __ccgo_ts + 70 + } + return v1 +} + +const KEY_MAX = 30000 +const SALT_MAX = 8 + +/* public domain md5 implementation based on rfc1321 and libtomcrypt */ + +type Tmd5 = struct { + Flen1 Tuint64_t + Fh [4]Tuint32_t + Fbuf [64]Tuint8_t +} + +func _rol(tls *TLS, n Tuint32_t, k int32) (r Tuint32_t) { + return n<>(Int32FromInt32(32)-k) +} + +var _tab = [64]Tuint32_t{ + 0: uint32(0xd76aa478), + 1: uint32(0xe8c7b756), + 2: uint32(0x242070db), + 3: uint32(0xc1bdceee), + 4: uint32(0xf57c0faf), + 5: uint32(0x4787c62a), + 6: uint32(0xa8304613), + 7: uint32(0xfd469501), + 8: uint32(0x698098d8), + 9: uint32(0x8b44f7af), + 10: uint32(0xffff5bb1), + 11: uint32(0x895cd7be), + 12: uint32(0x6b901122), + 13: uint32(0xfd987193), + 14: uint32(0xa679438e), + 15: uint32(0x49b40821), + 16: uint32(0xf61e2562), + 17: uint32(0xc040b340), + 18: uint32(0x265e5a51), + 19: uint32(0xe9b6c7aa), + 20: uint32(0xd62f105d), + 21: uint32(0x02441453), + 22: uint32(0xd8a1e681), + 23: uint32(0xe7d3fbc8), + 24: uint32(0x21e1cde6), + 25: uint32(0xc33707d6), + 26: uint32(0xf4d50d87), + 27: uint32(0x455a14ed), + 28: uint32(0xa9e3e905), + 29: uint32(0xfcefa3f8), + 30: uint32(0x676f02d9), + 31: uint32(0x8d2a4c8a), + 32: uint32(0xfffa3942), + 33: uint32(0x8771f681), + 34: uint32(0x6d9d6122), + 35: uint32(0xfde5380c), + 36: uint32(0xa4beea44), + 37: uint32(0x4bdecfa9), + 38: uint32(0xf6bb4b60), + 39: uint32(0xbebfbc70), + 40: uint32(0x289b7ec6), + 41: uint32(0xeaa127fa), + 42: uint32(0xd4ef3085), + 43: uint32(0x04881d05), + 44: uint32(0xd9d4d039), + 45: uint32(0xe6db99e5), + 46: uint32(0x1fa27cf8), + 47: uint32(0xc4ac5665), + 48: uint32(0xf4292244), + 49: uint32(0x432aff97), + 50: uint32(0xab9423a7), + 51: uint32(0xfc93a039), + 52: uint32(0x655b59c3), + 53: uint32(0x8f0ccc92), + 54: uint32(0xffeff47d), + 55: uint32(0x85845dd1), + 56: uint32(0x6fa87e4f), + 57: uint32(0xfe2ce6e0), + 58: uint32(0xa3014314), + 59: uint32(0x4e0811a1), + 60: uint32(0xf7537e82), + 61: uint32(0xbd3af235), + 62: uint32(0x2ad7d2bb), + 63: uint32(0xeb86d391), +} + +func _processblock(tls *TLS, s uintptr, buf uintptr) { + bp := tls.Alloc(64) + defer tls.Free(64) + var a, b, c, d, i Tuint32_t + var _ /* W at bp+0 */ [16]Tuint32_t + _, _, _, _, _ = a, b, c, d, i + i = uint32(0) + for { + if !(i < uint32(16)) { + break + } + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[i] = uint32(**(**Tuint8_t)(__ccgo_up(buf + uintptr(uint32(4)*i)))) + **(**Tuint32_t)(__ccgo_up(bp + uintptr(i)*4)) |= uint32(**(**Tuint8_t)(__ccgo_up(buf + uintptr(uint32(4)*i+uint32(1))))) << int32(8) + **(**Tuint32_t)(__ccgo_up(bp + uintptr(i)*4)) |= uint32(**(**Tuint8_t)(__ccgo_up(buf + uintptr(uint32(4)*i+uint32(2))))) << int32(16) + **(**Tuint32_t)(__ccgo_up(bp + uintptr(i)*4)) |= uint32(**(**Tuint8_t)(__ccgo_up(buf + uintptr(uint32(4)*i+uint32(3))))) << int32(24) + goto _1 + _1: + ; + i = i + 1 + } + a = **(**Tuint32_t)(__ccgo_up(s + 8)) + b = **(**Tuint32_t)(__ccgo_up(s + 8 + 1*4)) + c = **(**Tuint32_t)(__ccgo_up(s + 8 + 2*4)) + d = **(**Tuint32_t)(__ccgo_up(s + 8 + 3*4)) + i = uint32(0) + for i < uint32(16) { + a = a + (d ^ b&(c^d) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[i] + _tab[i]) + a = _rol(tls, a, int32(7)) + b + i = i + 1 + d = d + (c ^ a&(b^c) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[i] + _tab[i]) + d = _rol(tls, d, int32(12)) + a + i = i + 1 + c = c + (b ^ d&(a^b) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[i] + _tab[i]) + c = _rol(tls, c, int32(17)) + d + i = i + 1 + b = b + (a ^ c&(d^a) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[i] + _tab[i]) + b = _rol(tls, b, int32(22)) + c + i = i + 1 + } + for i < uint32(32) { + a = a + (c ^ d&(c^b) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[(uint32(5)*i+uint32(1))%uint32(16)] + _tab[i]) + a = _rol(tls, a, int32(5)) + b + i = i + 1 + d = d + (b ^ c&(b^a) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[(uint32(5)*i+uint32(1))%uint32(16)] + _tab[i]) + d = _rol(tls, d, int32(9)) + a + i = i + 1 + c = c + (a ^ b&(a^d) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[(uint32(5)*i+uint32(1))%uint32(16)] + _tab[i]) + c = _rol(tls, c, int32(14)) + d + i = i + 1 + b = b + (d ^ a&(d^c) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[(uint32(5)*i+uint32(1))%uint32(16)] + _tab[i]) + b = _rol(tls, b, int32(20)) + c + i = i + 1 + } + for i < uint32(48) { + a = a + (b ^ c ^ d + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[(uint32(3)*i+uint32(5))%uint32(16)] + _tab[i]) + a = _rol(tls, a, int32(4)) + b + i = i + 1 + d = d + (a ^ b ^ c + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[(uint32(3)*i+uint32(5))%uint32(16)] + _tab[i]) + d = _rol(tls, d, int32(11)) + a + i = i + 1 + c = c + (d ^ a ^ b + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[(uint32(3)*i+uint32(5))%uint32(16)] + _tab[i]) + c = _rol(tls, c, int32(16)) + d + i = i + 1 + b = b + (c ^ d ^ a + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[(uint32(3)*i+uint32(5))%uint32(16)] + _tab[i]) + b = _rol(tls, b, int32(23)) + c + i = i + 1 + } + for i < uint32(64) { + a = a + (c ^ (b | ^d) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[uint32(7)*i%uint32(16)] + _tab[i]) + a = _rol(tls, a, int32(6)) + b + i = i + 1 + d = d + (b ^ (a | ^c) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[uint32(7)*i%uint32(16)] + _tab[i]) + d = _rol(tls, d, int32(10)) + a + i = i + 1 + c = c + (a ^ (d | ^b) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[uint32(7)*i%uint32(16)] + _tab[i]) + c = _rol(tls, c, int32(15)) + d + i = i + 1 + b = b + (d ^ (c | ^a) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[uint32(7)*i%uint32(16)] + _tab[i]) + b = _rol(tls, b, int32(21)) + c + i = i + 1 + } + **(**Tuint32_t)(__ccgo_up(s + 8)) += a + **(**Tuint32_t)(__ccgo_up(s + 8 + 1*4)) += b + **(**Tuint32_t)(__ccgo_up(s + 8 + 2*4)) += c + **(**Tuint32_t)(__ccgo_up(s + 8 + 3*4)) += d +} + +func _pad(tls *TLS, s uintptr) { + var r, v1 uint32 + _, _ = r, v1 + r = uint32((*Tmd5)(unsafe.Pointer(s)).Flen1 % uint64(64)) + v1 = r + r = r + 1 + **(**Tuint8_t)(__ccgo_up(s + 24 + uintptr(v1))) = uint8(0x80) + if r > uint32(56) { + Xmemset(tls, s+24+uintptr(r), 0, uint64(uint32(64)-r)) + r = uint32(0) + _processblock(tls, s, s+24) + } + Xmemset(tls, s+24+uintptr(r), 0, uint64(uint32(56)-r)) + **(**Tuint64_t)(__ccgo_up(s)) *= uint64(8) + **(**Tuint8_t)(__ccgo_up(s + 24 + 56)) = uint8((*Tmd5)(unsafe.Pointer(s)).Flen1) + **(**Tuint8_t)(__ccgo_up(s + 24 + 57)) = uint8((*Tmd5)(unsafe.Pointer(s)).Flen1 >> int32(8)) + **(**Tuint8_t)(__ccgo_up(s + 24 + 58)) = uint8((*Tmd5)(unsafe.Pointer(s)).Flen1 >> int32(16)) + **(**Tuint8_t)(__ccgo_up(s + 24 + 59)) = uint8((*Tmd5)(unsafe.Pointer(s)).Flen1 >> int32(24)) + **(**Tuint8_t)(__ccgo_up(s + 24 + 60)) = uint8((*Tmd5)(unsafe.Pointer(s)).Flen1 >> int32(32)) + **(**Tuint8_t)(__ccgo_up(s + 24 + 61)) = uint8((*Tmd5)(unsafe.Pointer(s)).Flen1 >> int32(40)) + **(**Tuint8_t)(__ccgo_up(s + 24 + 62)) = uint8((*Tmd5)(unsafe.Pointer(s)).Flen1 >> int32(48)) + **(**Tuint8_t)(__ccgo_up(s + 24 + 63)) = uint8((*Tmd5)(unsafe.Pointer(s)).Flen1 >> int32(56)) + _processblock(tls, s, s+24) +} + +func _md5_init(tls *TLS, s uintptr) { + (*Tmd5)(unsafe.Pointer(s)).Flen1 = uint64(0) + **(**Tuint32_t)(__ccgo_up(s + 8)) = uint32(0x67452301) + **(**Tuint32_t)(__ccgo_up(s + 8 + 1*4)) = uint32(0xefcdab89) + **(**Tuint32_t)(__ccgo_up(s + 8 + 2*4)) = uint32(0x98badcfe) + **(**Tuint32_t)(__ccgo_up(s + 8 + 3*4)) = uint32(0x10325476) +} + +func _md5_sum(tls *TLS, s uintptr, md uintptr) { + var i int32 + _ = i + _pad(tls, s) + i = 0 + for { + if !(i < int32(4)) { + break + } + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(4)*i))) = uint8(**(**Tuint32_t)(__ccgo_up(s + 8 + uintptr(i)*4))) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(4)*i+int32(1)))) = uint8(**(**Tuint32_t)(__ccgo_up(s + 8 + uintptr(i)*4)) >> int32(8)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(4)*i+int32(2)))) = uint8(**(**Tuint32_t)(__ccgo_up(s + 8 + uintptr(i)*4)) >> int32(16)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(4)*i+int32(3)))) = uint8(**(**Tuint32_t)(__ccgo_up(s + 8 + uintptr(i)*4)) >> int32(24)) + goto _1 + _1: + ; + i = i + 1 + } +} + +func _md5_update(tls *TLS, s uintptr, m uintptr, len1 uint64) { + var p uintptr + var r uint32 + _, _ = p, r + p = m + r = uint32((*Tmd5)(unsafe.Pointer(s)).Flen1 % uint64(64)) + **(**Tuint64_t)(__ccgo_up(s)) += len1 + if r != 0 { + if len1 < uint64(uint32(64)-r) { + Xmemcpy(tls, s+24+uintptr(r), p, len1) + return + } + Xmemcpy(tls, s+24+uintptr(r), p, uint64(uint32(64)-r)) + len1 = len1 - uint64(uint32(64)-r) + p = p + uintptr(uint32(64)-r) + _processblock(tls, s, s+24) + } + for { + if !(len1 >= uint64(64)) { + break + } + _processblock(tls, s, p) + goto _1 + _1: + ; + len1 = len1 - uint64(64) + p = p + uintptr(64) + } + Xmemcpy(tls, s+24, p, len1) +} + +/*- + * Copyright (c) 2003 Poul-Henning Kamp + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + */ + +/* key limit is not part of the original design, added for DoS protection */ + +var _b64 = [65]uint8{'.', '/', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'} + +func _to64(tls *TLS, s uintptr, u uint32, n int32) (r uintptr) { + var v1 int32 + var v2 uintptr + _, _ = v1, v2 + for { + n = n - 1 + v1 = n + if !(v1 >= 0) { + break + } + v2 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = _b64[u%uint32(64)] + u = u / uint32(64) + } + return s +} + +func _md5crypt(tls *TLS, key uintptr, setting uintptr, output uintptr) (r uintptr) { + bp := tls.Alloc(112) + defer tls.Free(112) + var i, klen, slen uint32 + var p, salt, v5 uintptr + var _ /* ctx at bp+0 */ Tmd5 + var _ /* md at bp+88 */ [16]uint8 + _, _, _, _, _, _ = i, klen, p, salt, slen, v5 + /* reject large keys */ + klen = uint32(Xstrnlen(tls, key, Uint64FromInt32(Int32FromInt32(KEY_MAX)+Int32FromInt32(1)))) + if klen > uint32(KEY_MAX) { + return uintptr(0) + } + /* setting: $1$salt$ (closing $ is optional) */ + if Xstrncmp(tls, setting, __ccgo_ts+143, uint64(3)) != 0 { + return uintptr(0) + } + salt = setting + uintptr(3) + i = uint32(0) + for { + if !(i < uint32(SALT_MAX) && **(**uint8)(__ccgo_up(salt + uintptr(i))) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(salt + uintptr(i)))) != int32('$')) { + break + } + goto _1 + _1: + ; + i = i + 1 + } + slen = i + /* md5(key salt key) */ + _md5_init(tls, bp) + _md5_update(tls, bp, key, uint64(klen)) + _md5_update(tls, bp, salt, uint64(slen)) + _md5_update(tls, bp, key, uint64(klen)) + _md5_sum(tls, bp, bp+88) + /* md5(key $1$ salt repeated-md weird-key[0]-0) */ + _md5_init(tls, bp) + _md5_update(tls, bp, key, uint64(klen)) + _md5_update(tls, bp, setting, uint64(uint32(3)+slen)) + i = klen + for { + if !(uint64(i) > uint64(16)) { + break + } + _md5_update(tls, bp, bp+88, uint64(16)) + goto _2 + _2: + ; + i = uint32(uint64(i) - Uint64FromInt64(16)) + } + _md5_update(tls, bp, bp+88, uint64(i)) + (**(**[16]uint8)(__ccgo_up(bp + 88)))[0] = uint8(0) + i = klen + for { + if !(i != 0) { + break + } + if i&uint32(1) != 0 { + _md5_update(tls, bp, bp+88, uint64(1)) + } else { + _md5_update(tls, bp, key, uint64(1)) + } + goto _3 + _3: + ; + i = i >> uint32(1) + } + _md5_sum(tls, bp, bp+88) + /* md = f(md, key, salt) iteration */ + i = uint32(0) + for { + if !(i < uint32(1000)) { + break + } + _md5_init(tls, bp) + if i%uint32(2) != 0 { + _md5_update(tls, bp, key, uint64(klen)) + } else { + _md5_update(tls, bp, bp+88, uint64(16)) + } + if i%uint32(3) != 0 { + _md5_update(tls, bp, salt, uint64(slen)) + } + if i%uint32(7) != 0 { + _md5_update(tls, bp, key, uint64(klen)) + } + if i%uint32(2) != 0 { + _md5_update(tls, bp, bp+88, uint64(16)) + } else { + _md5_update(tls, bp, key, uint64(klen)) + } + _md5_sum(tls, bp, bp+88) + goto _4 + _4: + ; + i = i + 1 + } + /* output is $1$salt$hash */ + Xmemcpy(tls, output, setting, uint64(uint32(3)+slen)) + p = output + uintptr(3) + uintptr(slen) + v5 = p + p = p + 1 + **(**uint8)(__ccgo_up(v5)) = uint8('$') + i = uint32(0) + for { + if !(i < uint32(5)) { + break + } + p = _to64(tls, p, Uint32FromInt32(Int32FromUint8((**(**[16]uint8)(__ccgo_up(bp + 88)))[**(**uint8)(__ccgo_up(uintptr(unsafe.Pointer(&_perm)) + uintptr(i)*3))])< %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var p, q uintptr + var _ /* testbuf at bp+0 */ [64]uint8 + _, _ = p, q + p = _md5crypt(tls, key, setting, output) + /* self test and stack cleanup */ + q = _md5crypt(tls, uintptr(unsafe.Pointer(&_testkey)), uintptr(unsafe.Pointer(&_testsetting)), bp) + if !(p != 0) || q != bp || Xmemcmp(tls, bp, uintptr(unsafe.Pointer(&_testhash)), uint64(35)) != 0 { + return __ccgo_ts + 70 + } + return p +} + +var _testkey = [18]uint8{'X', 'y', '0', '1', '@', '#', 1, 2, 128, 127, 255, 13, 10, 129, 9, ' ', '!'} + +var _testsetting = [13]uint8{'$', '1', '$', 'a', 'b', 'c', 'd', '0', '1', '2', '3', '$'} + +var _testhash = [35]uint8{'$', '1', '$', 'a', 'b', 'c', 'd', '0', '1', '2', '3', '$', '9', 'Q', 'c', 'g', '8', 'D', 'y', 'v', 'i', 'e', 'k', 'V', '3', 't', 'D', 'G', 'M', 'Z', 'y', 'n', 'J', '1'} + +func X__crypt_r(tls *TLS, key uintptr, salt uintptr, data uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v salt=%v data=%v, (%v:)", tls, key, salt, data, origin(2)) + defer func() { trc("-> %v", r) }() + } + var output uintptr + _ = output + /* Per the crypt_r API, the caller has provided a pointer to + * struct crypt_data; however, this implementation does not + * use the structure to store any internal state, and treats + * it purely as a char buffer for storing the result. */ + output = data + if Int32FromUint8(**(**uint8)(__ccgo_up(salt))) == int32('$') && **(**uint8)(__ccgo_up(salt + 1)) != 0 && **(**uint8)(__ccgo_up(salt + 2)) != 0 { + if Int32FromUint8(**(**uint8)(__ccgo_up(salt + 1))) == int32('1') && Int32FromUint8(**(**uint8)(__ccgo_up(salt + 2))) == int32('$') { + return X__crypt_md5(tls, key, salt, output) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(salt + 1))) == int32('2') && Int32FromUint8(**(**uint8)(__ccgo_up(salt + 3))) == int32('$') { + return X__crypt_blowfish(tls, key, salt, output) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(salt + 1))) == int32('5') && Int32FromUint8(**(**uint8)(__ccgo_up(salt + 2))) == int32('$') { + return X__crypt_sha256(tls, key, salt, output) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(salt + 1))) == int32('6') && Int32FromUint8(**(**uint8)(__ccgo_up(salt + 2))) == int32('$') { + return X__crypt_sha512(tls, key, salt, output) + } + } + return X__crypt_des(tls, key, salt, output) +} + +func Xcrypt_r(tls *TLS, key uintptr, salt uintptr, data uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v salt=%v data=%v, (%v:)", tls, key, salt, data, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__crypt_r(tls, key, salt, data) +} + +const KEY_MAX1 = 256 +const ROUNDS_DEFAULT = 5000 +const ROUNDS_MAX = 9999999 +const ROUNDS_MIN = 1000 +const SALT_MAX1 = 16 + +/* public domain sha256 implementation based on fips180-3 */ + +type Tsha256 = struct { + Flen1 Tuint64_t + Fh [8]Tuint32_t + Fbuf [64]Tuint8_t +} + +func _ror(tls *TLS, n Tuint32_t, k int32) (r Tuint32_t) { + return n>>k | n<<(Int32FromInt32(32)-k) +} + +var _K = [64]Tuint32_t{ + 0: uint32(0x428a2f98), + 1: uint32(0x71374491), + 2: uint32(0xb5c0fbcf), + 3: uint32(0xe9b5dba5), + 4: uint32(0x3956c25b), + 5: uint32(0x59f111f1), + 6: uint32(0x923f82a4), + 7: uint32(0xab1c5ed5), + 8: uint32(0xd807aa98), + 9: uint32(0x12835b01), + 10: uint32(0x243185be), + 11: uint32(0x550c7dc3), + 12: uint32(0x72be5d74), + 13: uint32(0x80deb1fe), + 14: uint32(0x9bdc06a7), + 15: uint32(0xc19bf174), + 16: uint32(0xe49b69c1), + 17: uint32(0xefbe4786), + 18: uint32(0x0fc19dc6), + 19: uint32(0x240ca1cc), + 20: uint32(0x2de92c6f), + 21: uint32(0x4a7484aa), + 22: uint32(0x5cb0a9dc), + 23: uint32(0x76f988da), + 24: uint32(0x983e5152), + 25: uint32(0xa831c66d), + 26: uint32(0xb00327c8), + 27: uint32(0xbf597fc7), + 28: uint32(0xc6e00bf3), + 29: uint32(0xd5a79147), + 30: uint32(0x06ca6351), + 31: uint32(0x14292967), + 32: uint32(0x27b70a85), + 33: uint32(0x2e1b2138), + 34: uint32(0x4d2c6dfc), + 35: uint32(0x53380d13), + 36: uint32(0x650a7354), + 37: uint32(0x766a0abb), + 38: uint32(0x81c2c92e), + 39: uint32(0x92722c85), + 40: uint32(0xa2bfe8a1), + 41: uint32(0xa81a664b), + 42: uint32(0xc24b8b70), + 43: uint32(0xc76c51a3), + 44: uint32(0xd192e819), + 45: uint32(0xd6990624), + 46: uint32(0xf40e3585), + 47: uint32(0x106aa070), + 48: uint32(0x19a4c116), + 49: uint32(0x1e376c08), + 50: uint32(0x2748774c), + 51: uint32(0x34b0bcb5), + 52: uint32(0x391c0cb3), + 53: uint32(0x4ed8aa4a), + 54: uint32(0x5b9cca4f), + 55: uint32(0x682e6ff3), + 56: uint32(0x748f82ee), + 57: uint32(0x78a5636f), + 58: uint32(0x84c87814), + 59: uint32(0x8cc70208), + 60: uint32(0x90befffa), + 61: uint32(0xa4506ceb), + 62: uint32(0xbef9a3f7), + 63: uint32(0xc67178f2), +} + +func _processblock1(tls *TLS, s uintptr, buf uintptr) { + bp := tls.Alloc(256) + defer tls.Free(256) + var a, b, c, d, e, f, g, h, t1, t2 Tuint32_t + var i int32 + var _ /* W at bp+0 */ [64]Tuint32_t + _, _, _, _, _, _, _, _, _, _, _ = a, b, c, d, e, f, g, h, i, t1, t2 + i = 0 + for { + if !(i < int32(16)) { + break + } + (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i] = uint32(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(4)*i)))) << int32(24) + **(**Tuint32_t)(__ccgo_up(bp + uintptr(i)*4)) |= uint32(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(4)*i+int32(1))))) << int32(16) + **(**Tuint32_t)(__ccgo_up(bp + uintptr(i)*4)) |= uint32(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(4)*i+int32(2))))) << int32(8) + **(**Tuint32_t)(__ccgo_up(bp + uintptr(i)*4)) |= uint32(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(4)*i+int32(3))))) + goto _1 + _1: + ; + i = i + 1 + } + for { + if !(i < int32(64)) { + break + } + (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i] = _ror(tls, (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i-int32(2)], int32(17)) ^ _ror(tls, (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i-int32(2)], int32(19)) ^ (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i-int32(2)]>>Int32FromInt32(10) + (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i-int32(7)] + (_ror(tls, (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i-int32(15)], int32(7)) ^ _ror(tls, (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i-int32(15)], int32(18)) ^ (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i-int32(15)]>>Int32FromInt32(3)) + (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i-int32(16)] + goto _2 + _2: + ; + i = i + 1 + } + a = **(**Tuint32_t)(__ccgo_up(s + 8)) + b = **(**Tuint32_t)(__ccgo_up(s + 8 + 1*4)) + c = **(**Tuint32_t)(__ccgo_up(s + 8 + 2*4)) + d = **(**Tuint32_t)(__ccgo_up(s + 8 + 3*4)) + e = **(**Tuint32_t)(__ccgo_up(s + 8 + 4*4)) + f = **(**Tuint32_t)(__ccgo_up(s + 8 + 5*4)) + g = **(**Tuint32_t)(__ccgo_up(s + 8 + 6*4)) + h = **(**Tuint32_t)(__ccgo_up(s + 8 + 7*4)) + i = 0 + for { + if !(i < int32(64)) { + break + } + t1 = h + (_ror(tls, e, int32(6)) ^ _ror(tls, e, int32(11)) ^ _ror(tls, e, int32(25))) + (g ^ e&(f^g)) + _K[i] + (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i] + t2 = _ror(tls, a, int32(2)) ^ _ror(tls, a, int32(13)) ^ _ror(tls, a, int32(22)) + (a&b | c&(a|b)) + h = g + g = f + f = e + e = d + t1 + d = c + c = b + b = a + a = t1 + t2 + goto _3 + _3: + ; + i = i + 1 + } + **(**Tuint32_t)(__ccgo_up(s + 8)) += a + **(**Tuint32_t)(__ccgo_up(s + 8 + 1*4)) += b + **(**Tuint32_t)(__ccgo_up(s + 8 + 2*4)) += c + **(**Tuint32_t)(__ccgo_up(s + 8 + 3*4)) += d + **(**Tuint32_t)(__ccgo_up(s + 8 + 4*4)) += e + **(**Tuint32_t)(__ccgo_up(s + 8 + 5*4)) += f + **(**Tuint32_t)(__ccgo_up(s + 8 + 6*4)) += g + **(**Tuint32_t)(__ccgo_up(s + 8 + 7*4)) += h +} + +func _pad1(tls *TLS, s uintptr) { + var r, v1 uint32 + _, _ = r, v1 + r = uint32((*Tsha256)(unsafe.Pointer(s)).Flen1 % uint64(64)) + v1 = r + r = r + 1 + **(**Tuint8_t)(__ccgo_up(s + 40 + uintptr(v1))) = uint8(0x80) + if r > uint32(56) { + Xmemset(tls, s+40+uintptr(r), 0, uint64(uint32(64)-r)) + r = uint32(0) + _processblock1(tls, s, s+40) + } + Xmemset(tls, s+40+uintptr(r), 0, uint64(uint32(56)-r)) + **(**Tuint64_t)(__ccgo_up(s)) *= uint64(8) + **(**Tuint8_t)(__ccgo_up(s + 40 + 56)) = uint8((*Tsha256)(unsafe.Pointer(s)).Flen1 >> int32(56)) + **(**Tuint8_t)(__ccgo_up(s + 40 + 57)) = uint8((*Tsha256)(unsafe.Pointer(s)).Flen1 >> int32(48)) + **(**Tuint8_t)(__ccgo_up(s + 40 + 58)) = uint8((*Tsha256)(unsafe.Pointer(s)).Flen1 >> int32(40)) + **(**Tuint8_t)(__ccgo_up(s + 40 + 59)) = uint8((*Tsha256)(unsafe.Pointer(s)).Flen1 >> int32(32)) + **(**Tuint8_t)(__ccgo_up(s + 40 + 60)) = uint8((*Tsha256)(unsafe.Pointer(s)).Flen1 >> int32(24)) + **(**Tuint8_t)(__ccgo_up(s + 40 + 61)) = uint8((*Tsha256)(unsafe.Pointer(s)).Flen1 >> int32(16)) + **(**Tuint8_t)(__ccgo_up(s + 40 + 62)) = uint8((*Tsha256)(unsafe.Pointer(s)).Flen1 >> int32(8)) + **(**Tuint8_t)(__ccgo_up(s + 40 + 63)) = uint8((*Tsha256)(unsafe.Pointer(s)).Flen1) + _processblock1(tls, s, s+40) +} + +func _sha256_init(tls *TLS, s uintptr) { + (*Tsha256)(unsafe.Pointer(s)).Flen1 = uint64(0) + **(**Tuint32_t)(__ccgo_up(s + 8)) = uint32(0x6a09e667) + **(**Tuint32_t)(__ccgo_up(s + 8 + 1*4)) = uint32(0xbb67ae85) + **(**Tuint32_t)(__ccgo_up(s + 8 + 2*4)) = uint32(0x3c6ef372) + **(**Tuint32_t)(__ccgo_up(s + 8 + 3*4)) = uint32(0xa54ff53a) + **(**Tuint32_t)(__ccgo_up(s + 8 + 4*4)) = uint32(0x510e527f) + **(**Tuint32_t)(__ccgo_up(s + 8 + 5*4)) = uint32(0x9b05688c) + **(**Tuint32_t)(__ccgo_up(s + 8 + 6*4)) = uint32(0x1f83d9ab) + **(**Tuint32_t)(__ccgo_up(s + 8 + 7*4)) = uint32(0x5be0cd19) +} + +func _sha256_sum(tls *TLS, s uintptr, md uintptr) { + var i int32 + _ = i + _pad1(tls, s) + i = 0 + for { + if !(i < int32(8)) { + break + } + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(4)*i))) = uint8(**(**Tuint32_t)(__ccgo_up(s + 8 + uintptr(i)*4)) >> int32(24)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(4)*i+int32(1)))) = uint8(**(**Tuint32_t)(__ccgo_up(s + 8 + uintptr(i)*4)) >> int32(16)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(4)*i+int32(2)))) = uint8(**(**Tuint32_t)(__ccgo_up(s + 8 + uintptr(i)*4)) >> int32(8)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(4)*i+int32(3)))) = uint8(**(**Tuint32_t)(__ccgo_up(s + 8 + uintptr(i)*4))) + goto _1 + _1: + ; + i = i + 1 + } +} + +func _sha256_update(tls *TLS, s uintptr, m uintptr, len1 uint64) { + var p uintptr + var r uint32 + _, _ = p, r + p = m + r = uint32((*Tsha256)(unsafe.Pointer(s)).Flen1 % uint64(64)) + **(**Tuint64_t)(__ccgo_up(s)) += len1 + if r != 0 { + if len1 < uint64(uint32(64)-r) { + Xmemcpy(tls, s+40+uintptr(r), p, len1) + return + } + Xmemcpy(tls, s+40+uintptr(r), p, uint64(uint32(64)-r)) + len1 = len1 - uint64(uint32(64)-r) + p = p + uintptr(uint32(64)-r) + _processblock1(tls, s, s+40) + } + for { + if !(len1 >= uint64(64)) { + break + } + _processblock1(tls, s, p) + goto _1 + _1: + ; + len1 = len1 - uint64(64) + p = p + uintptr(64) + } + Xmemcpy(tls, s+40, p, len1) +} + +var _b641 = [65]uint8{'.', '/', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'} + +func _to641(tls *TLS, s uintptr, u uint32, n int32) (r uintptr) { + var v1 int32 + var v2 uintptr + _, _ = v1, v2 + for { + n = n - 1 + v1 = n + if !(v1 >= 0) { + break + } + v2 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = _b641[u%uint32(64)] + u = u / uint32(64) + } + return s +} + +/* key limit is not part of the original design, added for DoS protection. + * rounds limit has been lowered (versus the reference/spec), also for DoS + * protection. runtime is O(klen^2 + klen*rounds) */ + +// C documentation +// +// /* hash n bytes of the repeated md message digest */ +func _hashmd(tls *TLS, s uintptr, n uint32, md uintptr) { + var i uint32 + _ = i + i = n + for { + if !(i > uint32(32)) { + break + } + _sha256_update(tls, s, md, uint64(32)) + goto _1 + _1: + ; + i = i - uint32(32) + } + _sha256_update(tls, s, md, uint64(i)) +} + +func _sha256crypt(tls *TLS, key uintptr, setting uintptr, output uintptr) (r1 uintptr) { + bp := tls.Alloc(272) + defer tls.Free(272) + var i, klen, r, slen uint32 + var p, salt uintptr + var u uint64 + var _ /* ctx at bp+0 */ Tsha256 + var _ /* end at bp+224 */ uintptr + var _ /* kmd at bp+136 */ [32]uint8 + var _ /* md at bp+104 */ [32]uint8 + var _ /* rounds at bp+200 */ [20]uint8 + var _ /* smd at bp+168 */ [32]uint8 + _, _, _, _, _, _, _ = i, klen, p, r, salt, slen, u + **(**[20]uint8)(__ccgo_up(bp + 200)) = [20]uint8{} + /* reject large keys */ + klen = uint32(Xstrnlen(tls, key, Uint64FromInt32(Int32FromInt32(KEY_MAX1)+Int32FromInt32(1)))) + if klen > uint32(KEY_MAX1) { + return uintptr(0) + } + /* setting: $5$rounds=n$salt$ (rounds=n$ and closing $ are optional) */ + if Xstrncmp(tls, setting, __ccgo_ts+147, uint64(3)) != 0 { + return uintptr(0) + } + salt = setting + uintptr(3) + r = uint32(ROUNDS_DEFAULT) + if Xstrncmp(tls, salt, __ccgo_ts+151, Uint64FromInt64(8)-Uint64FromInt32(1)) == 0 { + /* + * this is a deviation from the reference: + * bad rounds setting is rejected if it is + * - empty + * - unterminated (missing '$') + * - begins with anything but a decimal digit + * the reference implementation treats these bad + * rounds as part of the salt or parse them with + * strtoul semantics which may cause problems + * including non-portable hashes that depend on + * the host's value of ULONG_MAX. + */ + salt = salt + uintptr(Uint64FromInt64(8)-Uint64FromInt32(1)) + if !(BoolInt32(uint32(**(**uint8)(__ccgo_up(salt)))-Uint32FromUint8('0') < Uint32FromInt32(10)) != 0) { + return uintptr(0) + } + u = Xstrtoul(tls, salt, bp+224, int32(10)) + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 224))))) != int32('$') { + return uintptr(0) + } + salt = **(**uintptr)(__ccgo_up(bp + 224)) + uintptr(1) + if u < uint64(ROUNDS_MIN) { + r = uint32(ROUNDS_MIN) + } else { + if u > uint64(ROUNDS_MAX) { + return uintptr(0) + } else { + r = uint32(u) + } + } + /* needed when rounds is zero prefixed or out of bounds */ + Xsprintf(tls, bp+200, __ccgo_ts+159, VaList(bp+240, r)) + } + i = uint32(0) + for { + if !(i < uint32(SALT_MAX1) && **(**uint8)(__ccgo_up(salt + uintptr(i))) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(salt + uintptr(i)))) != int32('$')) { + break + } + /* reject characters that interfere with /etc/shadow parsing */ + if Int32FromUint8(**(**uint8)(__ccgo_up(salt + uintptr(i)))) == int32('\n') || Int32FromUint8(**(**uint8)(__ccgo_up(salt + uintptr(i)))) == int32(':') { + return uintptr(0) + } + goto _1 + _1: + ; + i = i + 1 + } + slen = i + /* B = sha(key salt key) */ + _sha256_init(tls, bp) + _sha256_update(tls, bp, key, uint64(klen)) + _sha256_update(tls, bp, salt, uint64(slen)) + _sha256_update(tls, bp, key, uint64(klen)) + _sha256_sum(tls, bp, bp+104) + /* A = sha(key salt repeat-B alternate-B-key) */ + _sha256_init(tls, bp) + _sha256_update(tls, bp, key, uint64(klen)) + _sha256_update(tls, bp, salt, uint64(slen)) + _hashmd(tls, bp, klen, bp+104) + i = klen + for { + if !(i > uint32(0)) { + break + } + if i&uint32(1) != 0 { + _sha256_update(tls, bp, bp+104, uint64(32)) + } else { + _sha256_update(tls, bp, key, uint64(klen)) + } + goto _2 + _2: + ; + i = i >> uint32(1) + } + _sha256_sum(tls, bp, bp+104) + /* DP = sha(repeat-key), this step takes O(klen^2) time */ + _sha256_init(tls, bp) + i = uint32(0) + for { + if !(i < klen) { + break + } + _sha256_update(tls, bp, key, uint64(klen)) + goto _3 + _3: + ; + i = i + 1 + } + _sha256_sum(tls, bp, bp+136) + /* DS = sha(repeat-salt) */ + _sha256_init(tls, bp) + i = uint32(0) + for { + if !(i < Uint32FromInt32(int32(16)+Int32FromUint8((**(**[32]uint8)(__ccgo_up(bp + 104)))[0]))) { + break + } + _sha256_update(tls, bp, salt, uint64(slen)) + goto _4 + _4: + ; + i = i + 1 + } + _sha256_sum(tls, bp, bp+168) + /* iterate A = f(A,DP,DS), this step takes O(rounds*klen) time */ + i = uint32(0) + for { + if !(i < r) { + break + } + _sha256_init(tls, bp) + if i%uint32(2) != 0 { + _hashmd(tls, bp, klen, bp+136) + } else { + _sha256_update(tls, bp, bp+104, uint64(32)) + } + if i%uint32(3) != 0 { + _sha256_update(tls, bp, bp+168, uint64(slen)) + } + if i%uint32(7) != 0 { + _hashmd(tls, bp, klen, bp+136) + } + if i%uint32(2) != 0 { + _sha256_update(tls, bp, bp+104, uint64(32)) + } else { + _hashmd(tls, bp, klen, bp+136) + } + _sha256_sum(tls, bp, bp+104) + goto _5 + _5: + ; + i = i + 1 + } + /* output is $5$rounds=n$salt$hash */ + p = output + p = p + uintptr(Xsprintf(tls, p, __ccgo_ts+170, VaList(bp+240, bp+200, slen, salt))) + i = uint32(0) + for { + if !(i < uint32(10)) { + break + } + p = _to641(tls, p, Uint32FromInt32(Int32FromUint8((**(**[32]uint8)(__ccgo_up(bp + 104)))[**(**uint8)(__ccgo_up(uintptr(unsafe.Pointer(&_perm1)) + uintptr(i)*3))])< %v", r) }() + } + bp := tls.Alloc(128) + defer tls.Free(128) + var p, q uintptr + var _ /* testbuf at bp+0 */ [128]uint8 + _, _ = p, q + p = _sha256crypt(tls, key, setting, output) + /* self test and stack cleanup */ + q = _sha256crypt(tls, uintptr(unsafe.Pointer(&_testkey1)), uintptr(unsafe.Pointer(&_testsetting1)), bp) + if !(p != 0) || q != bp || Xmemcmp(tls, bp, uintptr(unsafe.Pointer(&_testhash1)), uint64(73)) != 0 { + return __ccgo_ts + 70 + } + return p +} + +var _testkey1 = [18]uint8{'X', 'y', '0', '1', '@', '#', 1, 2, 128, 127, 255, 13, 10, 129, 9, ' ', '!'} + +var _testsetting1 = [30]uint8{'$', '5', '$', 'r', 'o', 'u', 'n', 'd', 's', '=', '1', '2', '3', '4', '$', 'a', 'b', 'c', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '$'} + +var _testhash1 = [73]uint8{'$', '5', '$', 'r', 'o', 'u', 'n', 'd', 's', '=', '1', '2', '3', '4', '$', 'a', 'b', 'c', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '$', '3', 'V', 'f', 'D', 'j', 'P', 't', '0', '5', 'V', 'H', 'F', 'n', '4', '7', 'C', '/', 'o', 'j', 'F', 'Z', '6', 'K', 'R', 'P', 'Y', 'r', 'O', 'j', 'j', '1', 'l', 'L', 'b', 'H', '.', 'd', 'k', 'F', '3', 'b', 'Z', '6'} + +/* public domain sha512 implementation based on fips180-3 */ +/* >=2^64 bits messages are not supported (about 2000 peta bytes) */ + +type Tsha512 = struct { + Flen1 Tuint64_t + Fh [8]Tuint64_t + Fbuf [128]Tuint8_t +} + +func _ror1(tls *TLS, n Tuint64_t, k int32) (r Tuint64_t) { + return n>>k | n<<(Int32FromInt32(64)-k) +} + +var _K1 = [80]Tuint64_t{ + 0: uint64(0x428a2f98d728ae22), + 1: uint64(0x7137449123ef65cd), + 2: uint64(0xb5c0fbcfec4d3b2f), + 3: uint64(0xe9b5dba58189dbbc), + 4: uint64(0x3956c25bf348b538), + 5: uint64(0x59f111f1b605d019), + 6: uint64(0x923f82a4af194f9b), + 7: uint64(0xab1c5ed5da6d8118), + 8: uint64(0xd807aa98a3030242), + 9: uint64(0x12835b0145706fbe), + 10: uint64(0x243185be4ee4b28c), + 11: uint64(0x550c7dc3d5ffb4e2), + 12: uint64(0x72be5d74f27b896f), + 13: uint64(0x80deb1fe3b1696b1), + 14: uint64(0x9bdc06a725c71235), + 15: uint64(0xc19bf174cf692694), + 16: uint64(0xe49b69c19ef14ad2), + 17: uint64(0xefbe4786384f25e3), + 18: uint64(0x0fc19dc68b8cd5b5), + 19: uint64(0x240ca1cc77ac9c65), + 20: uint64(0x2de92c6f592b0275), + 21: uint64(0x4a7484aa6ea6e483), + 22: uint64(0x5cb0a9dcbd41fbd4), + 23: uint64(0x76f988da831153b5), + 24: uint64(0x983e5152ee66dfab), + 25: uint64(0xa831c66d2db43210), + 26: uint64(0xb00327c898fb213f), + 27: uint64(0xbf597fc7beef0ee4), + 28: uint64(0xc6e00bf33da88fc2), + 29: uint64(0xd5a79147930aa725), + 30: uint64(0x06ca6351e003826f), + 31: uint64(0x142929670a0e6e70), + 32: uint64(0x27b70a8546d22ffc), + 33: uint64(0x2e1b21385c26c926), + 34: uint64(0x4d2c6dfc5ac42aed), + 35: uint64(0x53380d139d95b3df), + 36: uint64(0x650a73548baf63de), + 37: uint64(0x766a0abb3c77b2a8), + 38: uint64(0x81c2c92e47edaee6), + 39: uint64(0x92722c851482353b), + 40: uint64(0xa2bfe8a14cf10364), + 41: uint64(0xa81a664bbc423001), + 42: uint64(0xc24b8b70d0f89791), + 43: uint64(0xc76c51a30654be30), + 44: uint64(0xd192e819d6ef5218), + 45: uint64(0xd69906245565a910), + 46: uint64(0xf40e35855771202a), + 47: uint64(0x106aa07032bbd1b8), + 48: uint64(0x19a4c116b8d2d0c8), + 49: uint64(0x1e376c085141ab53), + 50: uint64(0x2748774cdf8eeb99), + 51: uint64(0x34b0bcb5e19b48a8), + 52: uint64(0x391c0cb3c5c95a63), + 53: uint64(0x4ed8aa4ae3418acb), + 54: uint64(0x5b9cca4f7763e373), + 55: uint64(0x682e6ff3d6b2b8a3), + 56: uint64(0x748f82ee5defb2fc), + 57: uint64(0x78a5636f43172f60), + 58: uint64(0x84c87814a1f0ab72), + 59: uint64(0x8cc702081a6439ec), + 60: uint64(0x90befffa23631e28), + 61: uint64(0xa4506cebde82bde9), + 62: uint64(0xbef9a3f7b2c67915), + 63: uint64(0xc67178f2e372532b), + 64: uint64(0xca273eceea26619c), + 65: uint64(0xd186b8c721c0c207), + 66: uint64(0xeada7dd6cde0eb1e), + 67: uint64(0xf57d4f7fee6ed178), + 68: uint64(0x06f067aa72176fba), + 69: uint64(0x0a637dc5a2c898a6), + 70: uint64(0x113f9804bef90dae), + 71: uint64(0x1b710b35131c471b), + 72: uint64(0x28db77f523047d84), + 73: uint64(0x32caab7b40c72493), + 74: uint64(0x3c9ebe0a15c9bebc), + 75: uint64(0x431d67c49c100d4c), + 76: uint64(0x4cc5d4becb3e42b6), + 77: uint64(0x597f299cfc657e2a), + 78: uint64(0x5fcb6fab3ad6faec), + 79: uint64(0x6c44198c4a475817), +} + +func _processblock2(tls *TLS, s uintptr, buf uintptr) { + bp := tls.Alloc(640) + defer tls.Free(640) + var a, b, c, d, e, f, g, h, t1, t2 Tuint64_t + var i int32 + var _ /* W at bp+0 */ [80]Tuint64_t + _, _, _, _, _, _, _, _, _, _, _ = a, b, c, d, e, f, g, h, i, t1, t2 + i = 0 + for { + if !(i < int32(16)) { + break + } + (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i] = uint64(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(8)*i)))) << int32(56) + **(**Tuint64_t)(__ccgo_up(bp + uintptr(i)*8)) |= uint64(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(8)*i+int32(1))))) << int32(48) + **(**Tuint64_t)(__ccgo_up(bp + uintptr(i)*8)) |= uint64(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(8)*i+int32(2))))) << int32(40) + **(**Tuint64_t)(__ccgo_up(bp + uintptr(i)*8)) |= uint64(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(8)*i+int32(3))))) << int32(32) + **(**Tuint64_t)(__ccgo_up(bp + uintptr(i)*8)) |= uint64(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(8)*i+int32(4))))) << int32(24) + **(**Tuint64_t)(__ccgo_up(bp + uintptr(i)*8)) |= uint64(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(8)*i+int32(5))))) << int32(16) + **(**Tuint64_t)(__ccgo_up(bp + uintptr(i)*8)) |= uint64(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(8)*i+int32(6))))) << int32(8) + **(**Tuint64_t)(__ccgo_up(bp + uintptr(i)*8)) |= uint64(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(8)*i+int32(7))))) + goto _1 + _1: + ; + i = i + 1 + } + for { + if !(i < int32(80)) { + break + } + (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i] = _ror1(tls, (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i-int32(2)], int32(19)) ^ _ror1(tls, (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i-int32(2)], int32(61)) ^ (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i-int32(2)]>>Int32FromInt32(6) + (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i-int32(7)] + (_ror1(tls, (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i-int32(15)], int32(1)) ^ _ror1(tls, (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i-int32(15)], int32(8)) ^ (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i-int32(15)]>>Int32FromInt32(7)) + (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i-int32(16)] + goto _2 + _2: + ; + i = i + 1 + } + a = **(**Tuint64_t)(__ccgo_up(s + 8)) + b = **(**Tuint64_t)(__ccgo_up(s + 8 + 1*8)) + c = **(**Tuint64_t)(__ccgo_up(s + 8 + 2*8)) + d = **(**Tuint64_t)(__ccgo_up(s + 8 + 3*8)) + e = **(**Tuint64_t)(__ccgo_up(s + 8 + 4*8)) + f = **(**Tuint64_t)(__ccgo_up(s + 8 + 5*8)) + g = **(**Tuint64_t)(__ccgo_up(s + 8 + 6*8)) + h = **(**Tuint64_t)(__ccgo_up(s + 8 + 7*8)) + i = 0 + for { + if !(i < int32(80)) { + break + } + t1 = h + (_ror1(tls, e, int32(14)) ^ _ror1(tls, e, int32(18)) ^ _ror1(tls, e, int32(41))) + (g ^ e&(f^g)) + _K1[i] + (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i] + t2 = _ror1(tls, a, int32(28)) ^ _ror1(tls, a, int32(34)) ^ _ror1(tls, a, int32(39)) + (a&b | c&(a|b)) + h = g + g = f + f = e + e = d + t1 + d = c + c = b + b = a + a = t1 + t2 + goto _3 + _3: + ; + i = i + 1 + } + **(**Tuint64_t)(__ccgo_up(s + 8)) += a + **(**Tuint64_t)(__ccgo_up(s + 8 + 1*8)) += b + **(**Tuint64_t)(__ccgo_up(s + 8 + 2*8)) += c + **(**Tuint64_t)(__ccgo_up(s + 8 + 3*8)) += d + **(**Tuint64_t)(__ccgo_up(s + 8 + 4*8)) += e + **(**Tuint64_t)(__ccgo_up(s + 8 + 5*8)) += f + **(**Tuint64_t)(__ccgo_up(s + 8 + 6*8)) += g + **(**Tuint64_t)(__ccgo_up(s + 8 + 7*8)) += h +} + +func _pad2(tls *TLS, s uintptr) { + var r, v1 uint32 + _, _ = r, v1 + r = uint32((*Tsha512)(unsafe.Pointer(s)).Flen1 % uint64(128)) + v1 = r + r = r + 1 + **(**Tuint8_t)(__ccgo_up(s + 72 + uintptr(v1))) = uint8(0x80) + if r > uint32(112) { + Xmemset(tls, s+72+uintptr(r), 0, uint64(uint32(128)-r)) + r = uint32(0) + _processblock2(tls, s, s+72) + } + Xmemset(tls, s+72+uintptr(r), 0, uint64(uint32(120)-r)) + **(**Tuint64_t)(__ccgo_up(s)) *= uint64(8) + **(**Tuint8_t)(__ccgo_up(s + 72 + 120)) = uint8((*Tsha512)(unsafe.Pointer(s)).Flen1 >> int32(56)) + **(**Tuint8_t)(__ccgo_up(s + 72 + 121)) = uint8((*Tsha512)(unsafe.Pointer(s)).Flen1 >> int32(48)) + **(**Tuint8_t)(__ccgo_up(s + 72 + 122)) = uint8((*Tsha512)(unsafe.Pointer(s)).Flen1 >> int32(40)) + **(**Tuint8_t)(__ccgo_up(s + 72 + 123)) = uint8((*Tsha512)(unsafe.Pointer(s)).Flen1 >> int32(32)) + **(**Tuint8_t)(__ccgo_up(s + 72 + 124)) = uint8((*Tsha512)(unsafe.Pointer(s)).Flen1 >> int32(24)) + **(**Tuint8_t)(__ccgo_up(s + 72 + 125)) = uint8((*Tsha512)(unsafe.Pointer(s)).Flen1 >> int32(16)) + **(**Tuint8_t)(__ccgo_up(s + 72 + 126)) = uint8((*Tsha512)(unsafe.Pointer(s)).Flen1 >> int32(8)) + **(**Tuint8_t)(__ccgo_up(s + 72 + 127)) = uint8((*Tsha512)(unsafe.Pointer(s)).Flen1) + _processblock2(tls, s, s+72) +} + +func _sha512_init(tls *TLS, s uintptr) { + (*Tsha512)(unsafe.Pointer(s)).Flen1 = uint64(0) + **(**Tuint64_t)(__ccgo_up(s + 8)) = uint64(0x6a09e667f3bcc908) + **(**Tuint64_t)(__ccgo_up(s + 8 + 1*8)) = uint64(0xbb67ae8584caa73b) + **(**Tuint64_t)(__ccgo_up(s + 8 + 2*8)) = uint64(0x3c6ef372fe94f82b) + **(**Tuint64_t)(__ccgo_up(s + 8 + 3*8)) = uint64(0xa54ff53a5f1d36f1) + **(**Tuint64_t)(__ccgo_up(s + 8 + 4*8)) = uint64(0x510e527fade682d1) + **(**Tuint64_t)(__ccgo_up(s + 8 + 5*8)) = uint64(0x9b05688c2b3e6c1f) + **(**Tuint64_t)(__ccgo_up(s + 8 + 6*8)) = uint64(0x1f83d9abfb41bd6b) + **(**Tuint64_t)(__ccgo_up(s + 8 + 7*8)) = uint64(0x5be0cd19137e2179) +} + +func _sha512_sum(tls *TLS, s uintptr, md uintptr) { + var i int32 + _ = i + _pad2(tls, s) + i = 0 + for { + if !(i < int32(8)) { + break + } + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(8)*i))) = uint8(**(**Tuint64_t)(__ccgo_up(s + 8 + uintptr(i)*8)) >> int32(56)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(8)*i+int32(1)))) = uint8(**(**Tuint64_t)(__ccgo_up(s + 8 + uintptr(i)*8)) >> int32(48)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(8)*i+int32(2)))) = uint8(**(**Tuint64_t)(__ccgo_up(s + 8 + uintptr(i)*8)) >> int32(40)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(8)*i+int32(3)))) = uint8(**(**Tuint64_t)(__ccgo_up(s + 8 + uintptr(i)*8)) >> int32(32)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(8)*i+int32(4)))) = uint8(**(**Tuint64_t)(__ccgo_up(s + 8 + uintptr(i)*8)) >> int32(24)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(8)*i+int32(5)))) = uint8(**(**Tuint64_t)(__ccgo_up(s + 8 + uintptr(i)*8)) >> int32(16)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(8)*i+int32(6)))) = uint8(**(**Tuint64_t)(__ccgo_up(s + 8 + uintptr(i)*8)) >> int32(8)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(8)*i+int32(7)))) = uint8(**(**Tuint64_t)(__ccgo_up(s + 8 + uintptr(i)*8))) + goto _1 + _1: + ; + i = i + 1 + } +} + +func _sha512_update(tls *TLS, s uintptr, m uintptr, len1 uint64) { + var p uintptr + var r uint32 + _, _ = p, r + p = m + r = uint32((*Tsha512)(unsafe.Pointer(s)).Flen1 % uint64(128)) + **(**Tuint64_t)(__ccgo_up(s)) += len1 + if r != 0 { + if len1 < uint64(uint32(128)-r) { + Xmemcpy(tls, s+72+uintptr(r), p, len1) + return + } + Xmemcpy(tls, s+72+uintptr(r), p, uint64(uint32(128)-r)) + len1 = len1 - uint64(uint32(128)-r) + p = p + uintptr(uint32(128)-r) + _processblock2(tls, s, s+72) + } + for { + if !(len1 >= uint64(128)) { + break + } + _processblock2(tls, s, p) + goto _1 + _1: + ; + len1 = len1 - uint64(128) + p = p + uintptr(128) + } + Xmemcpy(tls, s+72, p, len1) +} + +var _b642 = [65]uint8{'.', '/', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'} + +func _to642(tls *TLS, s uintptr, u uint32, n int32) (r uintptr) { + var v1 int32 + var v2 uintptr + _, _ = v1, v2 + for { + n = n - 1 + v1 = n + if !(v1 >= 0) { + break + } + v2 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = _b642[u%uint32(64)] + u = u / uint32(64) + } + return s +} + +/* key limit is not part of the original design, added for DoS protection. + * rounds limit has been lowered (versus the reference/spec), also for DoS + * protection. runtime is O(klen^2 + klen*rounds) */ + +// C documentation +// +// /* hash n bytes of the repeated md message digest */ +func _hashmd1(tls *TLS, s uintptr, n uint32, md uintptr) { + var i uint32 + _ = i + i = n + for { + if !(i > uint32(64)) { + break + } + _sha512_update(tls, s, md, uint64(64)) + goto _1 + _1: + ; + i = i - uint32(64) + } + _sha512_update(tls, s, md, uint64(i)) +} + +func _sha512crypt(tls *TLS, key uintptr, setting uintptr, output uintptr) (r1 uintptr) { + bp := tls.Alloc(464) + defer tls.Free(464) + var i, klen, r, slen uint32 + var p, salt uintptr + var u uint64 + var _ /* ctx at bp+0 */ Tsha512 + var _ /* end at bp+416 */ uintptr + var _ /* kmd at bp+264 */ [64]uint8 + var _ /* md at bp+200 */ [64]uint8 + var _ /* rounds at bp+392 */ [20]uint8 + var _ /* smd at bp+328 */ [64]uint8 + _, _, _, _, _, _, _ = i, klen, p, r, salt, slen, u + **(**[20]uint8)(__ccgo_up(bp + 392)) = [20]uint8{} + /* reject large keys */ + i = uint32(0) + for { + if !(i <= uint32(KEY_MAX1) && **(**uint8)(__ccgo_up(key + uintptr(i))) != 0) { + break + } + goto _1 + _1: + ; + i = i + 1 + } + if i > uint32(KEY_MAX1) { + return uintptr(0) + } + klen = i + /* setting: $6$rounds=n$salt$ (rounds=n$ and closing $ are optional) */ + if Xstrncmp(tls, setting, __ccgo_ts+181, uint64(3)) != 0 { + return uintptr(0) + } + salt = setting + uintptr(3) + r = uint32(ROUNDS_DEFAULT) + if Xstrncmp(tls, salt, __ccgo_ts+151, Uint64FromInt64(8)-Uint64FromInt32(1)) == 0 { + /* + * this is a deviation from the reference: + * bad rounds setting is rejected if it is + * - empty + * - unterminated (missing '$') + * - begins with anything but a decimal digit + * the reference implementation treats these bad + * rounds as part of the salt or parse them with + * strtoul semantics which may cause problems + * including non-portable hashes that depend on + * the host's value of ULONG_MAX. + */ + salt = salt + uintptr(Uint64FromInt64(8)-Uint64FromInt32(1)) + if !(BoolInt32(uint32(**(**uint8)(__ccgo_up(salt)))-Uint32FromUint8('0') < Uint32FromInt32(10)) != 0) { + return uintptr(0) + } + u = Xstrtoul(tls, salt, bp+416, int32(10)) + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 416))))) != int32('$') { + return uintptr(0) + } + salt = **(**uintptr)(__ccgo_up(bp + 416)) + uintptr(1) + if u < uint64(ROUNDS_MIN) { + r = uint32(ROUNDS_MIN) + } else { + if u > uint64(ROUNDS_MAX) { + return uintptr(0) + } else { + r = uint32(u) + } + } + /* needed when rounds is zero prefixed or out of bounds */ + Xsprintf(tls, bp+392, __ccgo_ts+159, VaList(bp+432, r)) + } + i = uint32(0) + for { + if !(i < uint32(SALT_MAX1) && **(**uint8)(__ccgo_up(salt + uintptr(i))) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(salt + uintptr(i)))) != int32('$')) { + break + } + /* reject characters that interfere with /etc/shadow parsing */ + if Int32FromUint8(**(**uint8)(__ccgo_up(salt + uintptr(i)))) == int32('\n') || Int32FromUint8(**(**uint8)(__ccgo_up(salt + uintptr(i)))) == int32(':') { + return uintptr(0) + } + goto _2 + _2: + ; + i = i + 1 + } + slen = i + /* B = sha(key salt key) */ + _sha512_init(tls, bp) + _sha512_update(tls, bp, key, uint64(klen)) + _sha512_update(tls, bp, salt, uint64(slen)) + _sha512_update(tls, bp, key, uint64(klen)) + _sha512_sum(tls, bp, bp+200) + /* A = sha(key salt repeat-B alternate-B-key) */ + _sha512_init(tls, bp) + _sha512_update(tls, bp, key, uint64(klen)) + _sha512_update(tls, bp, salt, uint64(slen)) + _hashmd1(tls, bp, klen, bp+200) + i = klen + for { + if !(i > uint32(0)) { + break + } + if i&uint32(1) != 0 { + _sha512_update(tls, bp, bp+200, uint64(64)) + } else { + _sha512_update(tls, bp, key, uint64(klen)) + } + goto _3 + _3: + ; + i = i >> uint32(1) + } + _sha512_sum(tls, bp, bp+200) + /* DP = sha(repeat-key), this step takes O(klen^2) time */ + _sha512_init(tls, bp) + i = uint32(0) + for { + if !(i < klen) { + break + } + _sha512_update(tls, bp, key, uint64(klen)) + goto _4 + _4: + ; + i = i + 1 + } + _sha512_sum(tls, bp, bp+264) + /* DS = sha(repeat-salt) */ + _sha512_init(tls, bp) + i = uint32(0) + for { + if !(i < Uint32FromInt32(int32(16)+Int32FromUint8((**(**[64]uint8)(__ccgo_up(bp + 200)))[0]))) { + break + } + _sha512_update(tls, bp, salt, uint64(slen)) + goto _5 + _5: + ; + i = i + 1 + } + _sha512_sum(tls, bp, bp+328) + /* iterate A = f(A,DP,DS), this step takes O(rounds*klen) time */ + i = uint32(0) + for { + if !(i < r) { + break + } + _sha512_init(tls, bp) + if i%uint32(2) != 0 { + _hashmd1(tls, bp, klen, bp+264) + } else { + _sha512_update(tls, bp, bp+200, uint64(64)) + } + if i%uint32(3) != 0 { + _sha512_update(tls, bp, bp+328, uint64(slen)) + } + if i%uint32(7) != 0 { + _hashmd1(tls, bp, klen, bp+264) + } + if i%uint32(2) != 0 { + _sha512_update(tls, bp, bp+200, uint64(64)) + } else { + _hashmd1(tls, bp, klen, bp+264) + } + _sha512_sum(tls, bp, bp+200) + goto _6 + _6: + ; + i = i + 1 + } + /* output is $6$rounds=n$salt$hash */ + p = output + p = p + uintptr(Xsprintf(tls, p, __ccgo_ts+185, VaList(bp+432, bp+392, slen, salt))) + i = uint32(0) + for { + if !(i < uint32(21)) { + break + } + p = _to642(tls, p, Uint32FromInt32(Int32FromUint8((**(**[64]uint8)(__ccgo_up(bp + 200)))[**(**uint8)(__ccgo_up(uintptr(unsafe.Pointer(&_perm2)) + uintptr(i)*3))])< %v", r) }() + } + bp := tls.Alloc(128) + defer tls.Free(128) + var p, q uintptr + var _ /* testbuf at bp+0 */ [128]uint8 + _, _ = p, q + p = _sha512crypt(tls, key, setting, output) + /* self test and stack cleanup */ + q = _sha512crypt(tls, uintptr(unsafe.Pointer(&_testkey2)), uintptr(unsafe.Pointer(&_testsetting2)), bp) + if !(p != 0) || q != bp || Xmemcmp(tls, bp, uintptr(unsafe.Pointer(&_testhash2)), uint64(116)) != 0 { + return __ccgo_ts + 70 + } + return p +} + +var _testkey2 = [18]uint8{'X', 'y', '0', '1', '@', '#', 1, 2, 128, 127, 255, 13, 10, 129, 9, ' ', '!'} + +var _testsetting2 = [30]uint8{'$', '6', '$', 'r', 'o', 'u', 'n', 'd', 's', '=', '1', '2', '3', '4', '$', 'a', 'b', 'c', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '$'} + +var _testhash2 = [116]uint8{'$', '6', '$', 'r', 'o', 'u', 'n', 'd', 's', '=', '1', '2', '3', '4', '$', 'a', 'b', 'c', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '$', 'B', 'C', 'p', 't', '8', 'z', 'L', 'r', 'c', '/', 'R', 'c', 'y', 'u', 'X', 'm', 'C', 'D', 'O', 'E', '1', 'A', 'L', 'q', 'M', 'X', 'B', '2', 'M', 'H', '6', 'n', '1', 'g', '8', '9', '1', 'H', 'h', 'F', 'j', '8', '.', 'w', '7', 'L', 'x', 'G', 'v', '.', 'F', 'T', 'k', 'q', 'q', '6', 'V', 'x', 'c', '/', 'k', 'm', '3', 'Y', '0', 'j', 'E', '0', 'j', '2', '4', 'j', 'Y', '5', 'P', 'I', 'v', '/', 'o', 'O', 'u', '6', 'r', 'e', 'g', '1'} + +var ___encrypt_key Texpanded_key + +func Xsetkey(tls *TLS, key uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v, (%v:)", tls, key, origin(2)) + } + bp := tls.Alloc(16) + defer tls.Free(16) + var i, j int32 + var v3 uintptr + var _ /* bkey at bp+0 */ [8]uint8 + _, _, _ = i, j, v3 + i = 0 + for { + if !(i < int32(8)) { + break + } + (**(**[8]uint8)(__ccgo_up(bp)))[i] = uint8(0) + j = int32(7) + for { + if !(j >= 0) { + break + } + v3 = bp + uintptr(i) + *(*uint8)(unsafe.Pointer(v3)) = uint8(uint32(*(*uint8)(unsafe.Pointer(v3))) | Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(key)))&Int32FromInt32(1))<= 0) { + break + } + **(**Tuint32_t)(__ccgo_up(bp + 128 + uintptr(i)*4)) |= Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(p)))&Int32FromInt32(1)) << j + goto _2 + _2: + ; + j = j - 1 + p = p + 1 + } + goto _1 + _1: + ; + i = i + 1 + } + key = uintptr(unsafe.Pointer(&___encrypt_key)) + if edflag != 0 { + key = bp + i = 0 + for { + if !(i < int32(16)) { + break + } + **(**Tuint32_t)(__ccgo_up(bp + uintptr(i)*4)) = **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&___encrypt_key)) + uintptr(int32(15)-i)*4)) + **(**Tuint32_t)(__ccgo_up(bp + 64 + uintptr(i)*4)) = **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&___encrypt_key)) + 64 + uintptr(int32(15)-i)*4)) + goto _3 + _3: + ; + i = i + 1 + } + } + X__do_des(tls, (**(**[2]Tuint32_t)(__ccgo_up(bp + 128)))[0], (**(**[2]Tuint32_t)(__ccgo_up(bp + 128)))[int32(1)], bp+128, bp+128+uintptr(1)*4, uint32(1), uint32(0), key) + p = block + i = 0 + for { + if !(i < int32(2)) { + break + } + j = int32(31) + for { + if !(j >= 0) { + break + } + v6 = p + p = p + 1 + **(**uint8)(__ccgo_up(v6)) = uint8((**(**[2]Tuint32_t)(__ccgo_up(bp + 128)))[i] >> j & uint32(1)) + goto _5 + _5: + ; + j = j - 1 + } + goto _4 + _4: + ; + i = i + 1 + } +} + +var _table = [384]uint16{ + 128: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 129: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 130: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 131: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 132: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 133: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 134: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 135: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 136: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 137: Uint16FromInt32((Int32FromInt32(0x320)/Int32FromInt32(256) | Int32FromInt32(0x320)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 138: Uint16FromInt32((Int32FromInt32(0x220)/Int32FromInt32(256) | Int32FromInt32(0x220)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 139: Uint16FromInt32((Int32FromInt32(0x220)/Int32FromInt32(256) | Int32FromInt32(0x220)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 140: Uint16FromInt32((Int32FromInt32(0x220)/Int32FromInt32(256) | Int32FromInt32(0x220)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 141: Uint16FromInt32((Int32FromInt32(0x220)/Int32FromInt32(256) | Int32FromInt32(0x220)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 142: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 143: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 144: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 145: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 146: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 147: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 148: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 149: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 150: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 151: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 152: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 153: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 154: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 155: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 156: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 157: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 158: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 159: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 160: Uint16FromInt32((Int32FromInt32(0x160)/Int32FromInt32(256) | Int32FromInt32(0x160)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 161: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 162: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 163: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 164: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 165: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 166: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 167: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 168: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 169: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 170: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 171: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 172: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 173: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 174: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 175: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 176: Uint16FromInt32((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 177: Uint16FromInt32((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 178: Uint16FromInt32((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 179: Uint16FromInt32((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 180: Uint16FromInt32((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 181: Uint16FromInt32((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 182: Uint16FromInt32((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 183: Uint16FromInt32((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 184: Uint16FromInt32((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 185: Uint16FromInt32((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 186: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 187: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 188: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 189: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 190: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 191: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 192: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 193: Uint16FromInt32((Int32FromInt32(0x8d5)/Int32FromInt32(256) | Int32FromInt32(0x8d5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 194: Uint16FromInt32((Int32FromInt32(0x8d5)/Int32FromInt32(256) | Int32FromInt32(0x8d5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 195: Uint16FromInt32((Int32FromInt32(0x8d5)/Int32FromInt32(256) | Int32FromInt32(0x8d5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 196: Uint16FromInt32((Int32FromInt32(0x8d5)/Int32FromInt32(256) | Int32FromInt32(0x8d5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 197: Uint16FromInt32((Int32FromInt32(0x8d5)/Int32FromInt32(256) | Int32FromInt32(0x8d5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 198: Uint16FromInt32((Int32FromInt32(0x8d5)/Int32FromInt32(256) | Int32FromInt32(0x8d5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 199: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 200: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 201: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 202: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 203: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 204: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 205: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 206: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 207: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 208: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 209: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 210: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 211: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 212: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 213: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 214: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 215: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 216: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 217: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 218: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 219: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 220: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 221: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 222: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 223: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 224: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 225: Uint16FromInt32((Int32FromInt32(0x8d6)/Int32FromInt32(256) | Int32FromInt32(0x8d6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 226: Uint16FromInt32((Int32FromInt32(0x8d6)/Int32FromInt32(256) | Int32FromInt32(0x8d6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 227: Uint16FromInt32((Int32FromInt32(0x8d6)/Int32FromInt32(256) | Int32FromInt32(0x8d6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 228: Uint16FromInt32((Int32FromInt32(0x8d6)/Int32FromInt32(256) | Int32FromInt32(0x8d6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 229: Uint16FromInt32((Int32FromInt32(0x8d6)/Int32FromInt32(256) | Int32FromInt32(0x8d6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 230: Uint16FromInt32((Int32FromInt32(0x8d6)/Int32FromInt32(256) | Int32FromInt32(0x8d6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 231: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 232: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 233: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 234: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 235: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 236: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 237: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 238: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 239: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 240: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 241: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 242: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 243: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 244: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 245: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 246: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 247: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 248: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 249: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 250: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 251: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 252: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 253: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 254: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 255: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), +} + +var _ptable = uintptr(unsafe.Pointer(&_table)) + uintptr(128)*2 + +func X__ctype_b_loc(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(unsafe.Pointer(&_ptable)) +} + +const CLOCKS_PER_SEC = 1000000 +const CLOCK_BOOTTIME = 7 +const CLOCK_BOOTTIME_ALARM = 9 +const CLOCK_MONOTONIC = 1 +const CLOCK_MONOTONIC_COARSE = 6 +const CLOCK_MONOTONIC_RAW = 4 +const CLOCK_PROCESS_CPUTIME_ID = 2 +const CLOCK_REALTIME = 0 +const CLOCK_REALTIME_ALARM = 8 +const CLOCK_REALTIME_COARSE = 5 +const CLOCK_SGI_CYCLE = 10 +const CLOCK_TAI = 11 +const CLOCK_THREAD_CPUTIME_ID = 3 +const C_LOCALE = 0 +const DEFAULT_GUARD_MAX = 1048576 +const DEFAULT_GUARD_SIZE = 8192 +const DEFAULT_STACK_MAX = 8388608 +const DEFAULT_STACK_SIZE = 131072 +const DTP_OFFSET = 0 +const FUTEX_CLOCK_REALTIME = 256 +const FUTEX_CMP_REQUEUE = 4 +const FUTEX_FD = 2 +const FUTEX_LOCK_PI = 6 +const FUTEX_PRIVATE = 128 +const FUTEX_REQUEUE = 3 +const FUTEX_TRYLOCK_PI = 8 +const FUTEX_UNLOCK_PI = 7 +const FUTEX_WAIT = 0 +const FUTEX_WAIT_BITSET = 9 +const FUTEX_WAKE = 1 +const FUTEX_WAKE_OP = 5 +const GAP_ABOVE_TP = 16 +const LC_ALL = 6 +const LC_ALL_MASK = 2147483647 +const LC_COLLATE = 3 +const LC_COLLATE_MASK = 8 +const LC_CTYPE = 0 +const LC_CTYPE_MASK = 1 +const LC_GLOBAL_LOCALE = -1 +const LC_MESSAGES = 5 +const LC_MESSAGES_MASK = 32 +const LC_MONETARY = 4 +const LC_MONETARY_MASK = 16 +const LC_NUMERIC = 1 +const LC_NUMERIC_MASK = 2 +const LC_TIME = 2 +const LC_TIME_MASK = 4 +const LOCALE_NAME_MAX = 23 +const MAP_ANON = 32 +const MAP_ANONYMOUS = 32 +const MAP_DENYWRITE = 2048 +const MAP_EXECUTABLE = 4096 +const MAP_FAILED = -1 +const MAP_FILE = 0 +const MAP_FIXED = 16 +const MAP_FIXED_NOREPLACE = 1048576 +const MAP_GROWSDOWN = 256 +const MAP_HUGETLB = 262144 +const MAP_HUGE_16GB = 2281701376 +const MAP_HUGE_16KB = 939524096 +const MAP_HUGE_16MB = 1610612736 +const MAP_HUGE_1GB = 2013265920 +const MAP_HUGE_1MB = 1342177280 +const MAP_HUGE_256MB = 1879048192 +const MAP_HUGE_2GB = 2080374784 +const MAP_HUGE_2MB = 1409286144 +const MAP_HUGE_32MB = 1677721600 +const MAP_HUGE_512KB = 1275068416 +const MAP_HUGE_512MB = 1946157056 +const MAP_HUGE_64KB = 1073741824 +const MAP_HUGE_8MB = 1543503872 +const MAP_HUGE_MASK = 63 +const MAP_HUGE_SHIFT = 26 +const MAP_LOCKED = 8192 +const MAP_NONBLOCK = 65536 +const MAP_NORESERVE = 16384 +const MAP_POPULATE = 32768 +const MAP_PRIVATE = 2 +const MAP_SHARED = 1 +const MAP_SHARED_VALIDATE = 3 +const MAP_STACK = 131072 +const MAP_SYNC = 524288 +const MAP_TYPE = 15 +const MCL_CURRENT = 1 +const MCL_FUTURE = 2 +const MCL_ONFAULT = 4 +const MC_PC = 0 +const MS_ASYNC = 1 +const MS_INVALIDATE = 2 +const MS_SYNC = 4 +const POSIX_MADV_DONTNEED = 4 +const POSIX_MADV_NORMAL = 0 +const POSIX_MADV_RANDOM = 1 +const POSIX_MADV_SEQUENTIAL = 2 +const POSIX_MADV_WILLNEED = 3 +const PROT_BTI = 16 +const PROT_EXEC = 4 +const PROT_GROWSDOWN = 16777216 +const PROT_GROWSUP = 33554432 +const PROT_MTE = 32 +const PROT_NONE = 0 +const PROT_READ = 1 +const PROT_WRITE = 2 +const PTHREAD_BARRIER_SERIAL_THREAD = -1 +const PTHREAD_CANCELED = -1 +const PTHREAD_CANCEL_ASYNCHRONOUS = 1 +const PTHREAD_CANCEL_DEFERRED = 0 +const PTHREAD_CANCEL_DISABLE = 1 +const PTHREAD_CANCEL_ENABLE = 0 +const PTHREAD_CANCEL_MASKED = 2 +const PTHREAD_CREATE_DETACHED = 1 +const PTHREAD_CREATE_JOINABLE = 0 +const PTHREAD_EXPLICIT_SCHED = 1 +const PTHREAD_INHERIT_SCHED = 0 +const PTHREAD_MUTEX_DEFAULT = 0 +const PTHREAD_MUTEX_ERRORCHECK = 2 +const PTHREAD_MUTEX_NORMAL = 0 +const PTHREAD_MUTEX_RECURSIVE = 1 +const PTHREAD_MUTEX_ROBUST = 1 +const PTHREAD_MUTEX_STALLED = 0 +const PTHREAD_ONCE_INIT = 0 +const PTHREAD_PRIO_INHERIT = 1 +const PTHREAD_PRIO_NONE = 0 +const PTHREAD_PRIO_PROTECT = 2 +const PTHREAD_PROCESS_PRIVATE = 0 +const PTHREAD_PROCESS_SHARED = 1 +const PTHREAD_SCOPE_PROCESS = 1 +const PTHREAD_SCOPE_SYSTEM = 0 +const SCHED_BATCH = 3 +const SCHED_DEADLINE = 6 +const SCHED_FIFO = 1 +const SCHED_IDLE = 5 +const SCHED_OTHER = 0 +const SCHED_RESET_ON_FORK = 1073741824 +const SCHED_RR = 2 +const SIGCANCEL = 33 +const SIGSYNCCALL = 34 +const SIGTIMER = 32 +const TIMER_ABSTIME = 1 +const TIME_UTC = 1 +const TP_OFFSET = 0 +const UTF8_LOCALE = 0 +const __CCGO_SIZEOF_GO_MUTEX = 8 +const __SU = 0 +const a_spin = 0 +const pthread = 0 +const tls_mod_off_t = 0 + +type Tlconv = struct { + Fdecimal_point uintptr + Fthousands_sep uintptr + Fgrouping uintptr + Fint_curr_symbol uintptr + Fcurrency_symbol uintptr + Fmon_decimal_point uintptr + Fmon_thousands_sep uintptr + Fmon_grouping uintptr + Fpositive_sign uintptr + Fnegative_sign uintptr + Fint_frac_digits uint8 + Ffrac_digits uint8 + Fp_cs_precedes uint8 + Fp_sep_by_space uint8 + Fn_cs_precedes uint8 + Fn_sep_by_space uint8 + Fp_sign_posn uint8 + Fn_sign_posn uint8 + Fint_p_cs_precedes uint8 + Fint_p_sep_by_space uint8 + Fint_n_cs_precedes uint8 + Fint_n_sep_by_space uint8 + Fint_p_sign_posn uint8 + Fint_n_sign_posn uint8 +} + +type t__locale_map = struct { + Fmap1 uintptr + Fmap_size Tsize_t + Fname [24]uint8 + Fnext uintptr +} + +type Tclockid_t = int32 + +type t__pthread = struct { + Fself uintptr + Fprev uintptr + Fnext uintptr + Fsysinfo Tuintptr_t + Ftid int32 + Ferrno_val int32 + Fdetach_state int32 + Fcancel int32 + Fcanceldisable uint8 + Fcancelasync uint8 + F__ccgo50 uint8 + Fmap_base uintptr + Fmap_size Tsize_t + Fstack uintptr + Fstack_size Tsize_t + Fguard_size Tsize_t + Fresult uintptr + Fcancelbuf uintptr + Ftsd uintptr + Frobust_list struct { + Fhead uintptr + Foff int64 + Fpending uintptr + } + Fh_errno_val int32 + Ftimer_id int32 + Flocale Tlocale_t + Fkilllock [1]int32 + Fdlerror_buf uintptr + Fstdio_locks uintptr + F__ccgo_join_mutex [1]int64 + Fcanary Tuintptr_t + Fdtv uintptr +} + +type Tpthread_once_t = int32 + +type Tpthread_key_t = uint32 + +type Tpthread_spinlock_t = int32 + +type Tpthread_mutexattr_t = struct { + F__attr uint32 +} + +type Tpthread_condattr_t = struct { + F__attr uint32 +} + +type Tpthread_barrierattr_t = struct { + F__attr uint32 +} + +type Tpthread_rwlockattr_t = struct { + F__attr [2]uint32 +} + +type Tpthread_mutex_t = struct { + F__u struct { + F__vi [0][10]int32 + F__p [0][5]uintptr + F__i [10]int32 + } +} + +type Tpthread_cond_t = struct { + F__u struct { + F__vi [0][12]int32 + F__p [0][6]uintptr + F__i [12]int32 + } +} + +type Tpthread_rwlock_t = struct { + F__u struct { + F__vi [0][14]int32 + F__p [0][7]uintptr + F__i [14]int32 + } +} + +type Tpthread_barrier_t = struct { + F__u struct { + F__vi [0][8]int32 + F__p [0][4]uintptr + F__i [8]int32 + } +} + +type Tsched_param = struct { + Fsched_priority int32 + F__reserved1 int32 + F__reserved2 [2]struct { + F__reserved1 Ttime_t + F__reserved2 int64 + } + F__reserved3 int32 +} + +type Ttimer_t = uintptr + +type Ttm = struct { + Ftm_sec int32 + Ftm_min int32 + Ftm_hour int32 + Ftm_mday int32 + Ftm_mon int32 + Ftm_year int32 + Ftm_wday int32 + Ftm_yday int32 + Ftm_isdst int32 + F__tm_gmtoff int64 + F__tm_zone uintptr +} + +type Titimerspec = struct { + Fit_interval Ttimespec + Fit_value Ttimespec +} + +type t__ptcb = struct { + F__f uintptr + F__x uintptr + F__next uintptr +} + +type Tmode_t = uint32 + +const _DT_EXITED = 0 +const _DT_EXITING = 1 +const _DT_JOINABLE = 2 +const _DT_DETACHED = 3 + +func X__ctype_get_mb_cur_max(tls *TLS) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + _ = v1 + if !!(**(**uintptr)(__ccgo_up((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale)) != 0) { + v1 = int32(4) + } else { + v1 = int32(1) + } + return Uint64FromInt32(v1) +} + +var _table1 = [384]Tint32_t{ + 129: int32(1), + 130: int32(2), + 131: int32(3), + 132: int32(4), + 133: int32(5), + 134: int32(6), + 135: int32(7), + 136: int32(8), + 137: int32(9), + 138: int32(10), + 139: int32(11), + 140: int32(12), + 141: int32(13), + 142: int32(14), + 143: int32(15), + 144: int32(16), + 145: int32(17), + 146: int32(18), + 147: int32(19), + 148: int32(20), + 149: int32(21), + 150: int32(22), + 151: int32(23), + 152: int32(24), + 153: int32(25), + 154: int32(26), + 155: int32(27), + 156: int32(28), + 157: int32(29), + 158: int32(30), + 159: int32(31), + 160: int32(32), + 161: int32(33), + 162: int32(34), + 163: int32(35), + 164: int32(36), + 165: int32(37), + 166: int32(38), + 167: int32(39), + 168: int32(40), + 169: int32(41), + 170: int32(42), + 171: int32(43), + 172: int32(44), + 173: int32(45), + 174: int32(46), + 175: int32(47), + 176: int32(48), + 177: int32(49), + 178: int32(50), + 179: int32(51), + 180: int32(52), + 181: int32(53), + 182: int32(54), + 183: int32(55), + 184: int32(56), + 185: int32(57), + 186: int32(58), + 187: int32(59), + 188: int32(60), + 189: int32(61), + 190: int32(62), + 191: int32(63), + 192: int32(64), + 193: int32('a'), + 194: int32('b'), + 195: int32('c'), + 196: int32('d'), + 197: int32('e'), + 198: int32('f'), + 199: int32('g'), + 200: int32('h'), + 201: int32('i'), + 202: int32('j'), + 203: int32('k'), + 204: int32('l'), + 205: int32('m'), + 206: int32('n'), + 207: int32('o'), + 208: int32('p'), + 209: int32('q'), + 210: int32('r'), + 211: int32('s'), + 212: int32('t'), + 213: int32('u'), + 214: int32('v'), + 215: int32('w'), + 216: int32('x'), + 217: int32('y'), + 218: int32('z'), + 219: int32(91), + 220: int32(92), + 221: int32(93), + 222: int32(94), + 223: int32(95), + 224: int32(96), + 225: int32('a'), + 226: int32('b'), + 227: int32('c'), + 228: int32('d'), + 229: int32('e'), + 230: int32('f'), + 231: int32('g'), + 232: int32('h'), + 233: int32('i'), + 234: int32('j'), + 235: int32('k'), + 236: int32('l'), + 237: int32('m'), + 238: int32('n'), + 239: int32('o'), + 240: int32('p'), + 241: int32('q'), + 242: int32('r'), + 243: int32('s'), + 244: int32('t'), + 245: int32('u'), + 246: int32('v'), + 247: int32('w'), + 248: int32('x'), + 249: int32('y'), + 250: int32('z'), + 251: int32(123), + 252: int32(124), + 253: int32(125), + 254: int32(126), + 255: int32(127), +} + +var _ptable1 = uintptr(unsafe.Pointer(&_table1)) + uintptr(128)*4 + +func X__ctype_tolower_loc(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(unsafe.Pointer(&_ptable1)) +} + +var _table2 = [384]Tint32_t{ + 129: int32(1), + 130: int32(2), + 131: int32(3), + 132: int32(4), + 133: int32(5), + 134: int32(6), + 135: int32(7), + 136: int32(8), + 137: int32(9), + 138: int32(10), + 139: int32(11), + 140: int32(12), + 141: int32(13), + 142: int32(14), + 143: int32(15), + 144: int32(16), + 145: int32(17), + 146: int32(18), + 147: int32(19), + 148: int32(20), + 149: int32(21), + 150: int32(22), + 151: int32(23), + 152: int32(24), + 153: int32(25), + 154: int32(26), + 155: int32(27), + 156: int32(28), + 157: int32(29), + 158: int32(30), + 159: int32(31), + 160: int32(32), + 161: int32(33), + 162: int32(34), + 163: int32(35), + 164: int32(36), + 165: int32(37), + 166: int32(38), + 167: int32(39), + 168: int32(40), + 169: int32(41), + 170: int32(42), + 171: int32(43), + 172: int32(44), + 173: int32(45), + 174: int32(46), + 175: int32(47), + 176: int32(48), + 177: int32(49), + 178: int32(50), + 179: int32(51), + 180: int32(52), + 181: int32(53), + 182: int32(54), + 183: int32(55), + 184: int32(56), + 185: int32(57), + 186: int32(58), + 187: int32(59), + 188: int32(60), + 189: int32(61), + 190: int32(62), + 191: int32(63), + 192: int32(64), + 193: int32('A'), + 194: int32('B'), + 195: int32('C'), + 196: int32('D'), + 197: int32('E'), + 198: int32('F'), + 199: int32('G'), + 200: int32('H'), + 201: int32('I'), + 202: int32('J'), + 203: int32('K'), + 204: int32('L'), + 205: int32('M'), + 206: int32('N'), + 207: int32('O'), + 208: int32('P'), + 209: int32('Q'), + 210: int32('R'), + 211: int32('S'), + 212: int32('T'), + 213: int32('U'), + 214: int32('V'), + 215: int32('W'), + 216: int32('X'), + 217: int32('Y'), + 218: int32('Z'), + 219: int32(91), + 220: int32(92), + 221: int32(93), + 222: int32(94), + 223: int32(95), + 224: int32(96), + 225: int32('A'), + 226: int32('B'), + 227: int32('C'), + 228: int32('D'), + 229: int32('E'), + 230: int32('F'), + 231: int32('G'), + 232: int32('H'), + 233: int32('I'), + 234: int32('J'), + 235: int32('K'), + 236: int32('L'), + 237: int32('M'), + 238: int32('N'), + 239: int32('O'), + 240: int32('P'), + 241: int32('Q'), + 242: int32('R'), + 243: int32('S'), + 244: int32('T'), + 245: int32('U'), + 246: int32('V'), + 247: int32('W'), + 248: int32('X'), + 249: int32('Y'), + 250: int32('Z'), + 251: int32(123), + 252: int32(124), + 253: int32(125), + 254: int32(126), + 255: int32(127), +} + +var _ptable2 = uintptr(unsafe.Pointer(&_table2)) + uintptr(128)*4 + +func X__ctype_toupper_loc(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(unsafe.Pointer(&_ptable2)) +} + +func Xisalnum(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(BoolInt32(Uint32FromInt32(c)|uint32(32)-uint32('a') < uint32(26)) != 0 || BoolInt32(Uint32FromInt32(c)-uint32('0') < uint32(10)) != 0) +} + +func X__isalnum_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xisalnum(tls, c) +} + +func Xisalnum_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__isalnum_l(tls, c, l) +} + +func Xisalpha(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(Uint32FromInt32(c)|uint32(32)-uint32('a') < uint32(26)) +} + +func X__isalpha_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xisalpha(tls, c) +} + +func Xisalpha_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__isalpha_l(tls, c, l) +} + +func Xisascii(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(!(c & ^Int32FromInt32(0x7f) != 0)) +} + +func Xisblank(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(c == int32(' ') || c == int32('\t')) +} + +func X__isblank_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xisblank(tls, c) +} + +func Xisblank_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__isblank_l(tls, c, l) +} + +func Xiscntrl(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(Uint32FromInt32(c) < uint32(0x20) || c == int32(0x7f)) +} + +func X__iscntrl_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiscntrl(tls, c) +} + +func Xiscntrl_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iscntrl_l(tls, c, l) +} + +func Xisdigit(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(Uint32FromInt32(c)-uint32('0') < uint32(10)) +} + +func X__isdigit_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xisdigit(tls, c) +} + +func Xisdigit_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__isdigit_l(tls, c, l) +} + +func Xisgraph(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(Uint32FromInt32(c)-uint32(0x21) < uint32(0x5e)) +} + +func X__isgraph_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xisgraph(tls, c) +} + +func Xisgraph_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__isgraph_l(tls, c, l) +} + +func Xislower(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(Uint32FromInt32(c)-uint32('a') < uint32(26)) +} + +func X__islower_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xislower(tls, c) +} + +func Xislower_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__islower_l(tls, c, l) +} + +func Xisprint(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(Uint32FromInt32(c)-uint32(0x20) < uint32(0x5f)) +} + +func X__isprint_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xisprint(tls, c) +} + +func Xisprint_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__isprint_l(tls, c, l) +} + +func Xispunct(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(BoolInt32(Uint32FromInt32(c)-uint32(0x21) < uint32(0x5e)) != 0 && !(Xisalnum(tls, c) != 0)) +} + +func X__ispunct_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xispunct(tls, c) +} + +func Xispunct_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__ispunct_l(tls, c, l) +} + +func Xisspace(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(c == int32(' ') || Uint32FromInt32(c)-uint32('\t') < uint32(5)) +} + +func X__isspace_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xisspace(tls, c) +} + +func Xisspace_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__isspace_l(tls, c, l) +} + +func Xisupper(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(Uint32FromInt32(c)-uint32('A') < uint32(26)) +} + +func X__isupper_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xisupper(tls, c) +} + +func Xisupper_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__isupper_l(tls, c, l) +} + +type Twint_t = uint32 + +type Twctype_t = uint64 + +type Twctrans_t = uintptr + +func Xiswalnum(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(BoolInt32(wc-uint32('0') < uint32(10)) != 0 || Xiswalpha(tls, wc) != 0) +} + +func X__iswalnum_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswalnum(tls, c) +} + +func Xiswalnum_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswalnum_l(tls, c, l) +} + +var _table3 = [3904]uint8{ + 0: uint8(18), + 1: uint8(17), + 2: uint8(19), + 3: uint8(20), + 4: uint8(21), + 5: uint8(22), + 6: uint8(23), + 7: uint8(24), + 8: uint8(25), + 9: uint8(26), + 10: uint8(27), + 11: uint8(28), + 12: uint8(29), + 13: uint8(30), + 14: uint8(31), + 15: uint8(32), + 16: uint8(33), + 17: uint8(17), + 18: uint8(34), + 19: uint8(35), + 20: uint8(36), + 21: uint8(17), + 22: uint8(37), + 23: uint8(38), + 24: uint8(39), + 25: uint8(40), + 26: uint8(41), + 27: uint8(42), + 28: uint8(43), + 29: uint8(44), + 30: uint8(17), + 31: uint8(45), + 32: uint8(46), + 33: uint8(47), + 34: uint8(16), + 35: uint8(16), + 36: uint8(48), + 37: uint8(16), + 38: uint8(16), + 39: uint8(16), + 40: uint8(16), + 41: uint8(16), + 42: uint8(16), + 43: uint8(16), + 44: uint8(49), + 45: uint8(50), + 46: uint8(51), + 47: uint8(16), + 48: uint8(52), + 49: uint8(53), + 50: uint8(16), + 51: uint8(16), + 52: uint8(17), + 53: uint8(17), + 54: uint8(17), + 55: uint8(17), + 56: uint8(17), + 57: uint8(17), + 58: uint8(17), + 59: uint8(17), + 60: uint8(17), + 61: uint8(17), + 62: uint8(17), + 63: uint8(17), + 64: uint8(17), + 65: uint8(17), + 66: uint8(17), + 67: uint8(17), + 68: uint8(17), + 69: uint8(17), + 70: uint8(17), + 71: uint8(17), + 72: uint8(17), + 73: uint8(17), + 74: uint8(17), + 75: uint8(17), + 76: uint8(17), + 77: uint8(54), + 78: uint8(17), + 79: uint8(17), + 80: uint8(17), + 81: uint8(17), + 82: uint8(17), + 83: uint8(17), + 84: uint8(17), + 85: uint8(17), + 86: uint8(17), + 87: uint8(17), + 88: uint8(17), + 89: uint8(17), + 90: uint8(17), + 91: uint8(17), + 92: uint8(17), + 93: uint8(17), + 94: uint8(17), + 95: uint8(17), + 96: uint8(17), + 97: uint8(17), + 98: uint8(17), + 99: uint8(17), + 100: uint8(17), + 101: uint8(17), + 102: uint8(17), + 103: uint8(17), + 104: uint8(17), + 105: uint8(17), + 106: uint8(17), + 107: uint8(17), + 108: uint8(17), + 109: uint8(17), + 110: uint8(17), + 111: uint8(17), + 112: uint8(17), + 113: uint8(17), + 114: uint8(17), + 115: uint8(17), + 116: uint8(17), + 117: uint8(17), + 118: uint8(17), + 119: uint8(17), + 120: uint8(17), + 121: uint8(17), + 122: uint8(17), + 123: uint8(17), + 124: uint8(17), + 125: uint8(17), + 126: uint8(17), + 127: uint8(17), + 128: uint8(17), + 129: uint8(17), + 130: uint8(17), + 131: uint8(17), + 132: uint8(17), + 133: uint8(17), + 134: uint8(17), + 135: uint8(17), + 136: uint8(17), + 137: uint8(17), + 138: uint8(17), + 139: uint8(17), + 140: uint8(17), + 141: uint8(17), + 142: uint8(17), + 143: uint8(17), + 144: uint8(17), + 145: uint8(17), + 146: uint8(17), + 147: uint8(17), + 148: uint8(17), + 149: uint8(17), + 150: uint8(17), + 151: uint8(17), + 152: uint8(17), + 153: uint8(17), + 154: uint8(17), + 155: uint8(17), + 156: uint8(17), + 157: uint8(17), + 158: uint8(17), + 159: uint8(55), + 160: uint8(17), + 161: uint8(17), + 162: uint8(17), + 163: uint8(17), + 164: uint8(56), + 165: uint8(17), + 166: uint8(57), + 167: uint8(58), + 168: uint8(59), + 169: uint8(60), + 170: uint8(61), + 171: uint8(62), + 172: uint8(17), + 173: uint8(17), + 174: uint8(17), + 175: uint8(17), + 176: uint8(17), + 177: uint8(17), + 178: uint8(17), + 179: uint8(17), + 180: uint8(17), + 181: uint8(17), + 182: uint8(17), + 183: uint8(17), + 184: uint8(17), + 185: uint8(17), + 186: uint8(17), + 187: uint8(17), + 188: uint8(17), + 189: uint8(17), + 190: uint8(17), + 191: uint8(17), + 192: uint8(17), + 193: uint8(17), + 194: uint8(17), + 195: uint8(17), + 196: uint8(17), + 197: uint8(17), + 198: uint8(17), + 199: uint8(17), + 200: uint8(17), + 201: uint8(17), + 202: uint8(17), + 203: uint8(17), + 204: uint8(17), + 205: uint8(17), + 206: uint8(17), + 207: uint8(17), + 208: uint8(17), + 209: uint8(17), + 210: uint8(17), + 211: uint8(17), + 212: uint8(17), + 213: uint8(17), + 214: uint8(17), + 215: uint8(63), + 216: uint8(16), + 217: uint8(16), + 218: uint8(16), + 219: uint8(16), + 220: uint8(16), + 221: uint8(16), + 222: uint8(16), + 223: uint8(16), + 224: uint8(16), + 225: uint8(16), + 226: uint8(16), + 227: uint8(16), + 228: uint8(16), + 229: uint8(16), + 230: uint8(16), + 231: uint8(16), + 232: uint8(16), + 233: uint8(16), + 234: uint8(16), + 235: uint8(16), + 236: uint8(16), + 237: uint8(16), + 238: uint8(16), + 239: uint8(16), + 240: uint8(16), + 241: uint8(16), + 242: uint8(16), + 243: uint8(16), + 244: uint8(16), + 245: uint8(16), + 246: uint8(16), + 247: uint8(16), + 248: uint8(16), + 249: uint8(17), + 250: uint8(64), + 251: uint8(65), + 252: uint8(17), + 253: uint8(66), + 254: uint8(67), + 255: uint8(68), + 256: uint8(69), + 257: uint8(70), + 258: uint8(71), + 259: uint8(72), + 260: uint8(73), + 261: uint8(74), + 262: uint8(17), + 263: uint8(75), + 264: uint8(76), + 265: uint8(77), + 266: uint8(78), + 267: uint8(79), + 268: uint8(80), + 269: uint8(81), + 270: uint8(16), + 271: uint8(82), + 272: uint8(83), + 273: uint8(84), + 274: uint8(85), + 275: uint8(86), + 276: uint8(87), + 277: uint8(88), + 278: uint8(89), + 279: uint8(90), + 280: uint8(91), + 281: uint8(92), + 282: uint8(93), + 283: uint8(16), + 284: uint8(94), + 285: uint8(95), + 286: uint8(96), + 287: uint8(16), + 288: uint8(17), + 289: uint8(17), + 290: uint8(17), + 291: uint8(97), + 292: uint8(98), + 293: uint8(99), + 294: uint8(16), + 295: uint8(16), + 296: uint8(16), + 297: uint8(16), + 298: uint8(16), + 299: uint8(16), + 300: uint8(16), + 301: uint8(16), + 302: uint8(16), + 303: uint8(16), + 304: uint8(17), + 305: uint8(17), + 306: uint8(17), + 307: uint8(17), + 308: uint8(100), + 309: uint8(16), + 310: uint8(16), + 311: uint8(16), + 312: uint8(16), + 313: uint8(16), + 314: uint8(16), + 315: uint8(16), + 316: uint8(16), + 317: uint8(16), + 318: uint8(16), + 319: uint8(16), + 320: uint8(16), + 321: uint8(16), + 322: uint8(16), + 323: uint8(16), + 324: uint8(17), + 325: uint8(17), + 326: uint8(101), + 327: uint8(16), + 328: uint8(16), + 329: uint8(16), + 330: uint8(16), + 331: uint8(16), + 332: uint8(16), + 333: uint8(16), + 334: uint8(16), + 335: uint8(16), + 336: uint8(16), + 337: uint8(16), + 338: uint8(16), + 339: uint8(16), + 340: uint8(16), + 341: uint8(16), + 342: uint8(16), + 343: uint8(16), + 344: uint8(16), + 345: uint8(16), + 346: uint8(16), + 347: uint8(16), + 348: uint8(16), + 349: uint8(16), + 350: uint8(16), + 351: uint8(16), + 352: uint8(16), + 353: uint8(16), + 354: uint8(16), + 355: uint8(16), + 356: uint8(16), + 357: uint8(16), + 358: uint8(16), + 359: uint8(16), + 360: uint8(17), + 361: uint8(17), + 362: uint8(102), + 363: uint8(103), + 364: uint8(16), + 365: uint8(16), + 366: uint8(104), + 367: uint8(105), + 368: uint8(17), + 369: uint8(17), + 370: uint8(17), + 371: uint8(17), + 372: uint8(17), + 373: uint8(17), + 374: uint8(17), + 375: uint8(17), + 376: uint8(17), + 377: uint8(17), + 378: uint8(17), + 379: uint8(17), + 380: uint8(17), + 381: uint8(17), + 382: uint8(17), + 383: uint8(17), + 384: uint8(17), + 385: uint8(17), + 386: uint8(17), + 387: uint8(17), + 388: uint8(17), + 389: uint8(17), + 390: uint8(17), + 391: uint8(106), + 392: uint8(17), + 393: uint8(17), + 394: uint8(107), + 395: uint8(16), + 396: uint8(16), + 397: uint8(16), + 398: uint8(16), + 399: uint8(16), + 400: uint8(16), + 401: uint8(16), + 402: uint8(16), + 403: uint8(16), + 404: uint8(16), + 405: uint8(16), + 406: uint8(16), + 407: uint8(16), + 408: uint8(16), + 409: uint8(16), + 410: uint8(16), + 411: uint8(16), + 412: uint8(16), + 413: uint8(16), + 414: uint8(16), + 415: uint8(16), + 416: uint8(16), + 417: uint8(16), + 418: uint8(16), + 419: uint8(16), + 420: uint8(16), + 421: uint8(16), + 422: uint8(16), + 423: uint8(16), + 424: uint8(16), + 425: uint8(16), + 426: uint8(16), + 427: uint8(16), + 428: uint8(16), + 429: uint8(16), + 430: uint8(16), + 431: uint8(16), + 432: uint8(17), + 433: uint8(108), + 434: uint8(109), + 435: uint8(16), + 436: uint8(16), + 437: uint8(16), + 438: uint8(16), + 439: uint8(16), + 440: uint8(16), + 441: uint8(16), + 442: uint8(16), + 443: uint8(16), + 444: uint8(110), + 445: uint8(16), + 446: uint8(16), + 447: uint8(16), + 448: uint8(16), + 449: uint8(16), + 450: uint8(16), + 451: uint8(16), + 452: uint8(16), + 453: uint8(16), + 454: uint8(16), + 455: uint8(16), + 456: uint8(16), + 457: uint8(16), + 458: uint8(16), + 459: uint8(16), + 460: uint8(16), + 461: uint8(16), + 462: uint8(16), + 463: uint8(16), + 464: uint8(16), + 465: uint8(16), + 466: uint8(16), + 467: uint8(16), + 468: uint8(111), + 469: uint8(112), + 470: uint8(113), + 471: uint8(114), + 472: uint8(16), + 473: uint8(16), + 474: uint8(16), + 475: uint8(16), + 476: uint8(16), + 477: uint8(16), + 478: uint8(16), + 479: uint8(16), + 480: uint8(115), + 481: uint8(116), + 482: uint8(117), + 483: uint8(16), + 484: uint8(16), + 485: uint8(16), + 486: uint8(16), + 487: uint8(16), + 488: uint8(118), + 489: uint8(119), + 490: uint8(16), + 491: uint8(16), + 492: uint8(16), + 493: uint8(16), + 494: uint8(120), + 495: uint8(16), + 496: uint8(16), + 497: uint8(121), + 498: uint8(16), + 499: uint8(16), + 500: uint8(16), + 501: uint8(16), + 502: uint8(16), + 503: uint8(16), + 504: uint8(16), + 505: uint8(16), + 506: uint8(16), + 507: uint8(16), + 508: uint8(16), + 509: uint8(16), + 510: uint8(16), + 511: uint8(16), + 544: uint8(255), + 545: uint8(255), + 546: uint8(255), + 547: uint8(255), + 548: uint8(255), + 549: uint8(255), + 550: uint8(255), + 551: uint8(255), + 552: uint8(255), + 553: uint8(255), + 554: uint8(255), + 555: uint8(255), + 556: uint8(255), + 557: uint8(255), + 558: uint8(255), + 559: uint8(255), + 560: uint8(255), + 561: uint8(255), + 562: uint8(255), + 563: uint8(255), + 564: uint8(255), + 565: uint8(255), + 566: uint8(255), + 567: uint8(255), + 568: uint8(255), + 569: uint8(255), + 570: uint8(255), + 571: uint8(255), + 572: uint8(255), + 573: uint8(255), + 574: uint8(255), + 575: uint8(255), + 584: uint8(254), + 585: uint8(255), + 586: uint8(255), + 587: uint8(7), + 588: uint8(254), + 589: uint8(255), + 590: uint8(255), + 591: uint8(7), + 597: uint8(4), + 598: uint8(32), + 599: uint8(4), + 600: uint8(255), + 601: uint8(255), + 602: uint8(127), + 603: uint8(255), + 604: uint8(255), + 605: uint8(255), + 606: uint8(127), + 607: uint8(255), + 608: uint8(255), + 609: uint8(255), + 610: uint8(255), + 611: uint8(255), + 612: uint8(255), + 613: uint8(255), + 614: uint8(255), + 615: uint8(255), + 616: uint8(255), + 617: uint8(255), + 618: uint8(255), + 619: uint8(255), + 620: uint8(255), + 621: uint8(255), + 622: uint8(255), + 623: uint8(255), + 624: uint8(255), + 625: uint8(255), + 626: uint8(255), + 627: uint8(255), + 628: uint8(255), + 629: uint8(255), + 630: uint8(255), + 631: uint8(255), + 632: uint8(195), + 633: uint8(255), + 634: uint8(3), + 636: uint8(31), + 637: uint8(80), + 648: uint8(32), + 654: uint8(223), + 655: uint8(188), + 656: uint8(64), + 657: uint8(215), + 658: uint8(255), + 659: uint8(255), + 660: uint8(251), + 661: uint8(255), + 662: uint8(255), + 663: uint8(255), + 664: uint8(255), + 665: uint8(255), + 666: uint8(255), + 667: uint8(255), + 668: uint8(255), + 669: uint8(255), + 670: uint8(191), + 671: uint8(255), + 672: uint8(255), + 673: uint8(255), + 674: uint8(255), + 675: uint8(255), + 676: uint8(255), + 677: uint8(255), + 678: uint8(255), + 679: uint8(255), + 680: uint8(255), + 681: uint8(255), + 682: uint8(255), + 683: uint8(255), + 684: uint8(255), + 685: uint8(255), + 686: uint8(255), + 687: uint8(255), + 688: uint8(3), + 689: uint8(252), + 690: uint8(255), + 691: uint8(255), + 692: uint8(255), + 693: uint8(255), + 694: uint8(255), + 695: uint8(255), + 696: uint8(255), + 697: uint8(255), + 698: uint8(255), + 699: uint8(255), + 700: uint8(255), + 701: uint8(255), + 702: uint8(255), + 703: uint8(255), + 704: uint8(255), + 705: uint8(255), + 706: uint8(255), + 707: uint8(255), + 708: uint8(255), + 709: uint8(255), + 710: uint8(254), + 711: uint8(255), + 712: uint8(255), + 713: uint8(255), + 714: uint8(127), + 715: uint8(2), + 716: uint8(255), + 717: uint8(255), + 718: uint8(255), + 719: uint8(255), + 720: uint8(255), + 721: uint8(1), + 726: uint8(255), + 727: uint8(191), + 728: uint8(182), + 730: uint8(255), + 731: uint8(255), + 732: uint8(255), + 733: uint8(135), + 734: uint8(7), + 738: uint8(255), + 739: uint8(7), + 740: uint8(255), + 741: uint8(255), + 742: uint8(255), + 743: uint8(255), + 744: uint8(255), + 745: uint8(255), + 746: uint8(255), + 747: uint8(254), + 748: uint8(255), + 749: uint8(195), + 750: uint8(255), + 751: uint8(255), + 752: uint8(255), + 753: uint8(255), + 754: uint8(255), + 755: uint8(255), + 756: uint8(255), + 757: uint8(255), + 758: uint8(255), + 759: uint8(255), + 760: uint8(255), + 761: uint8(255), + 762: uint8(239), + 763: uint8(31), + 764: uint8(254), + 765: uint8(225), + 766: uint8(255), + 767: uint8(159), + 770: uint8(255), + 771: uint8(255), + 772: uint8(255), + 773: uint8(255), + 774: uint8(255), + 775: uint8(255), + 777: uint8(224), + 778: uint8(255), + 779: uint8(255), + 780: uint8(255), + 781: uint8(255), + 782: uint8(255), + 783: uint8(255), + 784: uint8(255), + 785: uint8(255), + 786: uint8(255), + 787: uint8(255), + 788: uint8(255), + 789: uint8(255), + 790: uint8(3), + 792: uint8(255), + 793: uint8(255), + 794: uint8(255), + 795: uint8(255), + 796: uint8(255), + 797: uint8(7), + 798: uint8(48), + 799: uint8(4), + 800: uint8(255), + 801: uint8(255), + 802: uint8(255), + 803: uint8(252), + 804: uint8(255), + 805: uint8(31), + 808: uint8(255), + 809: uint8(255), + 810: uint8(255), + 811: uint8(1), + 812: uint8(255), + 813: uint8(7), + 820: uint8(255), + 821: uint8(255), + 822: uint8(223), + 823: uint8(63), + 826: uint8(240), + 827: uint8(255), + 828: uint8(248), + 829: uint8(3), + 830: uint8(255), + 831: uint8(255), + 832: uint8(255), + 833: uint8(255), + 834: uint8(255), + 835: uint8(255), + 836: uint8(255), + 837: uint8(255), + 838: uint8(255), + 839: uint8(239), + 840: uint8(255), + 841: uint8(223), + 842: uint8(225), + 843: uint8(255), + 844: uint8(207), + 845: uint8(255), + 846: uint8(254), + 847: uint8(255), + 848: uint8(239), + 849: uint8(159), + 850: uint8(249), + 851: uint8(255), + 852: uint8(255), + 853: uint8(253), + 854: uint8(197), + 855: uint8(227), + 856: uint8(159), + 857: uint8(89), + 858: uint8(128), + 859: uint8(176), + 860: uint8(207), + 861: uint8(255), + 862: uint8(3), + 863: uint8(16), + 864: uint8(238), + 865: uint8(135), + 866: uint8(249), + 867: uint8(255), + 868: uint8(255), + 869: uint8(253), + 870: uint8(109), + 871: uint8(195), + 872: uint8(135), + 873: uint8(25), + 874: uint8(2), + 875: uint8(94), + 876: uint8(192), + 877: uint8(255), + 878: uint8(63), + 880: uint8(238), + 881: uint8(191), + 882: uint8(251), + 883: uint8(255), + 884: uint8(255), + 885: uint8(253), + 886: uint8(237), + 887: uint8(227), + 888: uint8(191), + 889: uint8(27), + 890: uint8(1), + 892: uint8(207), + 893: uint8(255), + 895: uint8(30), + 896: uint8(238), + 897: uint8(159), + 898: uint8(249), + 899: uint8(255), + 900: uint8(255), + 901: uint8(253), + 902: uint8(237), + 903: uint8(227), + 904: uint8(159), + 905: uint8(25), + 906: uint8(192), + 907: uint8(176), + 908: uint8(207), + 909: uint8(255), + 910: uint8(2), + 912: uint8(236), + 913: uint8(199), + 914: uint8(61), + 915: uint8(214), + 916: uint8(24), + 917: uint8(199), + 918: uint8(255), + 919: uint8(195), + 920: uint8(199), + 921: uint8(29), + 922: uint8(129), + 924: uint8(192), + 925: uint8(255), + 928: uint8(239), + 929: uint8(223), + 930: uint8(253), + 931: uint8(255), + 932: uint8(255), + 933: uint8(253), + 934: uint8(255), + 935: uint8(227), + 936: uint8(223), + 937: uint8(29), + 938: uint8(96), + 939: uint8(7), + 940: uint8(207), + 941: uint8(255), + 944: uint8(239), + 945: uint8(223), + 946: uint8(253), + 947: uint8(255), + 948: uint8(255), + 949: uint8(253), + 950: uint8(239), + 951: uint8(227), + 952: uint8(223), + 953: uint8(29), + 954: uint8(96), + 955: uint8(64), + 956: uint8(207), + 957: uint8(255), + 958: uint8(6), + 960: uint8(239), + 961: uint8(223), + 962: uint8(253), + 963: uint8(255), + 964: uint8(255), + 965: uint8(255), + 966: uint8(255), + 967: uint8(231), + 968: uint8(223), + 969: uint8(93), + 970: uint8(240), + 971: uint8(128), + 972: uint8(207), + 973: uint8(255), + 975: uint8(252), + 976: uint8(236), + 977: uint8(255), + 978: uint8(127), + 979: uint8(252), + 980: uint8(255), + 981: uint8(255), + 982: uint8(251), + 983: uint8(47), + 984: uint8(127), + 985: uint8(128), + 986: uint8(95), + 987: uint8(255), + 988: uint8(192), + 989: uint8(255), + 990: uint8(12), + 992: uint8(254), + 993: uint8(255), + 994: uint8(255), + 995: uint8(255), + 996: uint8(255), + 997: uint8(127), + 998: uint8(255), + 999: uint8(7), + 1000: uint8(63), + 1001: uint8(32), + 1002: uint8(255), + 1003: uint8(3), + 1008: uint8(214), + 1009: uint8(247), + 1010: uint8(255), + 1011: uint8(255), + 1012: uint8(175), + 1013: uint8(255), + 1014: uint8(255), + 1015: uint8(59), + 1016: uint8(95), + 1017: uint8(32), + 1018: uint8(255), + 1019: uint8(243), + 1024: uint8(1), + 1028: uint8(255), + 1029: uint8(3), + 1032: uint8(255), + 1033: uint8(254), + 1034: uint8(255), + 1035: uint8(255), + 1036: uint8(255), + 1037: uint8(31), + 1038: uint8(254), + 1039: uint8(255), + 1040: uint8(3), + 1041: uint8(255), + 1042: uint8(255), + 1043: uint8(254), + 1044: uint8(255), + 1045: uint8(255), + 1046: uint8(255), + 1047: uint8(31), + 1056: uint8(255), + 1057: uint8(255), + 1058: uint8(255), + 1059: uint8(255), + 1060: uint8(255), + 1061: uint8(255), + 1062: uint8(127), + 1063: uint8(249), + 1064: uint8(255), + 1065: uint8(3), + 1066: uint8(255), + 1067: uint8(255), + 1068: uint8(255), + 1069: uint8(255), + 1070: uint8(255), + 1071: uint8(255), + 1072: uint8(255), + 1073: uint8(255), + 1074: uint8(255), + 1075: uint8(63), + 1076: uint8(255), + 1077: uint8(255), + 1078: uint8(255), + 1079: uint8(255), + 1080: uint8(191), + 1081: uint8(32), + 1082: uint8(255), + 1083: uint8(255), + 1084: uint8(255), + 1085: uint8(255), + 1086: uint8(255), + 1087: uint8(247), + 1088: uint8(255), + 1089: uint8(255), + 1090: uint8(255), + 1091: uint8(255), + 1092: uint8(255), + 1093: uint8(255), + 1094: uint8(255), + 1095: uint8(255), + 1096: uint8(255), + 1097: uint8(61), + 1098: uint8(127), + 1099: uint8(61), + 1100: uint8(255), + 1101: uint8(255), + 1102: uint8(255), + 1103: uint8(255), + 1104: uint8(255), + 1105: uint8(61), + 1106: uint8(255), + 1107: uint8(255), + 1108: uint8(255), + 1109: uint8(255), + 1110: uint8(61), + 1111: uint8(127), + 1112: uint8(61), + 1113: uint8(255), + 1114: uint8(127), + 1115: uint8(255), + 1116: uint8(255), + 1117: uint8(255), + 1118: uint8(255), + 1119: uint8(255), + 1120: uint8(255), + 1121: uint8(255), + 1122: uint8(61), + 1123: uint8(255), + 1124: uint8(255), + 1125: uint8(255), + 1126: uint8(255), + 1127: uint8(255), + 1128: uint8(255), + 1129: uint8(255), + 1130: uint8(255), + 1131: uint8(7), + 1136: uint8(255), + 1137: uint8(255), + 1140: uint8(255), + 1141: uint8(255), + 1142: uint8(255), + 1143: uint8(255), + 1144: uint8(255), + 1145: uint8(255), + 1146: uint8(255), + 1147: uint8(255), + 1148: uint8(255), + 1149: uint8(255), + 1150: uint8(63), + 1151: uint8(63), + 1152: uint8(254), + 1153: uint8(255), + 1154: uint8(255), + 1155: uint8(255), + 1156: uint8(255), + 1157: uint8(255), + 1158: uint8(255), + 1159: uint8(255), + 1160: uint8(255), + 1161: uint8(255), + 1162: uint8(255), + 1163: uint8(255), + 1164: uint8(255), + 1165: uint8(255), + 1166: uint8(255), + 1167: uint8(255), + 1168: uint8(255), + 1169: uint8(255), + 1170: uint8(255), + 1171: uint8(255), + 1172: uint8(255), + 1173: uint8(255), + 1174: uint8(255), + 1175: uint8(255), + 1176: uint8(255), + 1177: uint8(255), + 1178: uint8(255), + 1179: uint8(255), + 1180: uint8(255), + 1181: uint8(255), + 1182: uint8(255), + 1183: uint8(255), + 1184: uint8(255), + 1185: uint8(255), + 1186: uint8(255), + 1187: uint8(255), + 1188: uint8(255), + 1189: uint8(255), + 1190: uint8(255), + 1191: uint8(255), + 1192: uint8(255), + 1193: uint8(255), + 1194: uint8(255), + 1195: uint8(255), + 1196: uint8(255), + 1197: uint8(159), + 1198: uint8(255), + 1199: uint8(255), + 1200: uint8(254), + 1201: uint8(255), + 1202: uint8(255), + 1203: uint8(7), + 1204: uint8(255), + 1205: uint8(255), + 1206: uint8(255), + 1207: uint8(255), + 1208: uint8(255), + 1209: uint8(255), + 1210: uint8(255), + 1211: uint8(255), + 1212: uint8(255), + 1213: uint8(199), + 1214: uint8(255), + 1215: uint8(1), + 1216: uint8(255), + 1217: uint8(223), + 1218: uint8(15), + 1220: uint8(255), + 1221: uint8(255), + 1222: uint8(15), + 1224: uint8(255), + 1225: uint8(255), + 1226: uint8(15), + 1228: uint8(255), + 1229: uint8(223), + 1230: uint8(13), + 1232: uint8(255), + 1233: uint8(255), + 1234: uint8(255), + 1235: uint8(255), + 1236: uint8(255), + 1237: uint8(255), + 1238: uint8(207), + 1239: uint8(255), + 1240: uint8(255), + 1241: uint8(1), + 1242: uint8(128), + 1243: uint8(16), + 1244: uint8(255), + 1245: uint8(3), + 1250: uint8(255), + 1251: uint8(3), + 1252: uint8(255), + 1253: uint8(255), + 1254: uint8(255), + 1255: uint8(255), + 1256: uint8(255), + 1257: uint8(255), + 1258: uint8(255), + 1259: uint8(255), + 1260: uint8(255), + 1261: uint8(255), + 1262: uint8(255), + 1263: uint8(1), + 1264: uint8(255), + 1265: uint8(255), + 1266: uint8(255), + 1267: uint8(255), + 1268: uint8(255), + 1269: uint8(7), + 1270: uint8(255), + 1271: uint8(255), + 1272: uint8(255), + 1273: uint8(255), + 1274: uint8(255), + 1275: uint8(255), + 1276: uint8(255), + 1277: uint8(255), + 1278: uint8(63), + 1280: uint8(255), + 1281: uint8(255), + 1282: uint8(255), + 1283: uint8(127), + 1284: uint8(255), + 1285: uint8(15), + 1286: uint8(255), + 1287: uint8(1), + 1288: uint8(192), + 1289: uint8(255), + 1290: uint8(255), + 1291: uint8(255), + 1292: uint8(255), + 1293: uint8(63), + 1294: uint8(31), + 1296: uint8(255), + 1297: uint8(255), + 1298: uint8(255), + 1299: uint8(255), + 1300: uint8(255), + 1301: uint8(15), + 1302: uint8(255), + 1303: uint8(255), + 1304: uint8(255), + 1305: uint8(3), + 1306: uint8(255), + 1307: uint8(3), + 1312: uint8(255), + 1313: uint8(255), + 1314: uint8(255), + 1315: uint8(15), + 1316: uint8(255), + 1317: uint8(255), + 1318: uint8(255), + 1319: uint8(255), + 1320: uint8(255), + 1321: uint8(255), + 1322: uint8(255), + 1323: uint8(127), + 1324: uint8(254), + 1325: uint8(255), + 1326: uint8(31), + 1328: uint8(255), + 1329: uint8(3), + 1330: uint8(255), + 1331: uint8(3), + 1332: uint8(128), + 1344: uint8(255), + 1345: uint8(255), + 1346: uint8(255), + 1347: uint8(255), + 1348: uint8(255), + 1349: uint8(255), + 1350: uint8(239), + 1351: uint8(255), + 1352: uint8(239), + 1353: uint8(15), + 1354: uint8(255), + 1355: uint8(3), + 1360: uint8(255), + 1361: uint8(255), + 1362: uint8(255), + 1363: uint8(255), + 1364: uint8(255), + 1365: uint8(243), + 1366: uint8(255), + 1367: uint8(255), + 1368: uint8(255), + 1369: uint8(255), + 1370: uint8(255), + 1371: uint8(255), + 1372: uint8(191), + 1373: uint8(255), + 1374: uint8(3), + 1376: uint8(255), + 1377: uint8(255), + 1378: uint8(255), + 1379: uint8(255), + 1380: uint8(255), + 1381: uint8(255), + 1382: uint8(127), + 1384: uint8(255), + 1385: uint8(227), + 1386: uint8(255), + 1387: uint8(255), + 1388: uint8(255), + 1389: uint8(255), + 1390: uint8(255), + 1391: uint8(63), + 1392: uint8(255), + 1393: uint8(1), + 1394: uint8(255), + 1395: uint8(255), + 1396: uint8(255), + 1397: uint8(255), + 1398: uint8(255), + 1399: uint8(231), + 1405: uint8(222), + 1406: uint8(111), + 1407: uint8(4), + 1408: uint8(255), + 1409: uint8(255), + 1410: uint8(255), + 1411: uint8(255), + 1412: uint8(255), + 1413: uint8(255), + 1414: uint8(255), + 1415: uint8(255), + 1416: uint8(255), + 1417: uint8(255), + 1418: uint8(255), + 1419: uint8(255), + 1420: uint8(255), + 1421: uint8(255), + 1422: uint8(255), + 1423: uint8(255), + 1424: uint8(255), + 1425: uint8(255), + 1426: uint8(255), + 1427: uint8(255), + 1428: uint8(255), + 1429: uint8(255), + 1430: uint8(255), + 1431: uint8(255), + 1436: uint8(128), + 1437: uint8(255), + 1438: uint8(31), + 1440: uint8(255), + 1441: uint8(255), + 1442: uint8(63), + 1443: uint8(63), + 1444: uint8(255), + 1445: uint8(255), + 1446: uint8(255), + 1447: uint8(255), + 1448: uint8(63), + 1449: uint8(63), + 1450: uint8(255), + 1451: uint8(170), + 1452: uint8(255), + 1453: uint8(255), + 1454: uint8(255), + 1455: uint8(63), + 1456: uint8(255), + 1457: uint8(255), + 1458: uint8(255), + 1459: uint8(255), + 1460: uint8(255), + 1461: uint8(255), + 1462: uint8(223), + 1463: uint8(95), + 1464: uint8(220), + 1465: uint8(31), + 1466: uint8(207), + 1467: uint8(15), + 1468: uint8(255), + 1469: uint8(31), + 1470: uint8(220), + 1471: uint8(31), + 1486: uint8(2), + 1487: uint8(128), + 1490: uint8(255), + 1491: uint8(31), + 1504: uint8(132), + 1505: uint8(252), + 1506: uint8(47), + 1507: uint8(62), + 1508: uint8(80), + 1509: uint8(189), + 1510: uint8(255), + 1511: uint8(243), + 1512: uint8(224), + 1513: uint8(67), + 1516: uint8(255), + 1517: uint8(255), + 1518: uint8(255), + 1519: uint8(255), + 1520: uint8(255), + 1521: uint8(1), + 1558: uint8(192), + 1559: uint8(255), + 1560: uint8(255), + 1561: uint8(255), + 1562: uint8(255), + 1563: uint8(255), + 1564: uint8(255), + 1565: uint8(3), + 1568: uint8(255), + 1569: uint8(255), + 1570: uint8(255), + 1571: uint8(255), + 1572: uint8(255), + 1573: uint8(127), + 1574: uint8(255), + 1575: uint8(255), + 1576: uint8(255), + 1577: uint8(255), + 1578: uint8(255), + 1579: uint8(127), + 1580: uint8(255), + 1581: uint8(255), + 1582: uint8(255), + 1583: uint8(255), + 1584: uint8(255), + 1585: uint8(255), + 1586: uint8(255), + 1587: uint8(255), + 1588: uint8(255), + 1589: uint8(255), + 1590: uint8(255), + 1591: uint8(255), + 1592: uint8(255), + 1593: uint8(255), + 1594: uint8(255), + 1595: uint8(255), + 1596: uint8(31), + 1597: uint8(120), + 1598: uint8(12), + 1600: uint8(255), + 1601: uint8(255), + 1602: uint8(255), + 1603: uint8(255), + 1604: uint8(191), + 1605: uint8(32), + 1606: uint8(255), + 1607: uint8(255), + 1608: uint8(255), + 1609: uint8(255), + 1610: uint8(255), + 1611: uint8(255), + 1612: uint8(255), + 1613: uint8(128), + 1616: uint8(255), + 1617: uint8(255), + 1618: uint8(127), + 1620: uint8(127), + 1621: uint8(127), + 1622: uint8(127), + 1623: uint8(127), + 1624: uint8(127), + 1625: uint8(127), + 1626: uint8(127), + 1627: uint8(127), + 1628: uint8(255), + 1629: uint8(255), + 1630: uint8(255), + 1631: uint8(255), + 1637: uint8(128), + 1664: uint8(224), + 1668: uint8(254), + 1669: uint8(3), + 1670: uint8(62), + 1671: uint8(31), + 1672: uint8(254), + 1673: uint8(255), + 1674: uint8(255), + 1675: uint8(255), + 1676: uint8(255), + 1677: uint8(255), + 1678: uint8(255), + 1679: uint8(255), + 1680: uint8(255), + 1681: uint8(255), + 1682: uint8(127), + 1683: uint8(224), + 1684: uint8(254), + 1685: uint8(255), + 1686: uint8(255), + 1687: uint8(255), + 1688: uint8(255), + 1689: uint8(255), + 1690: uint8(255), + 1691: uint8(255), + 1692: uint8(255), + 1693: uint8(255), + 1694: uint8(255), + 1695: uint8(247), + 1696: uint8(224), + 1697: uint8(255), + 1698: uint8(255), + 1699: uint8(255), + 1700: uint8(255), + 1701: uint8(255), + 1702: uint8(254), + 1703: uint8(255), + 1704: uint8(255), + 1705: uint8(255), + 1706: uint8(255), + 1707: uint8(255), + 1708: uint8(255), + 1709: uint8(255), + 1710: uint8(255), + 1711: uint8(255), + 1712: uint8(255), + 1713: uint8(127), + 1716: uint8(255), + 1717: uint8(255), + 1718: uint8(255), + 1719: uint8(7), + 1726: uint8(255), + 1727: uint8(255), + 1728: uint8(255), + 1729: uint8(255), + 1730: uint8(255), + 1731: uint8(255), + 1732: uint8(255), + 1733: uint8(255), + 1734: uint8(255), + 1735: uint8(255), + 1736: uint8(255), + 1737: uint8(255), + 1738: uint8(255), + 1739: uint8(255), + 1740: uint8(255), + 1741: uint8(255), + 1742: uint8(255), + 1743: uint8(255), + 1744: uint8(255), + 1745: uint8(255), + 1746: uint8(255), + 1747: uint8(255), + 1748: uint8(255), + 1749: uint8(255), + 1750: uint8(63), + 1760: uint8(255), + 1761: uint8(255), + 1762: uint8(255), + 1763: uint8(255), + 1764: uint8(255), + 1765: uint8(255), + 1766: uint8(255), + 1767: uint8(255), + 1768: uint8(255), + 1769: uint8(255), + 1770: uint8(255), + 1771: uint8(255), + 1772: uint8(255), + 1773: uint8(255), + 1774: uint8(255), + 1775: uint8(255), + 1776: uint8(255), + 1777: uint8(255), + 1778: uint8(255), + 1779: uint8(255), + 1780: uint8(255), + 1781: uint8(255), + 1782: uint8(255), + 1783: uint8(255), + 1784: uint8(255), + 1785: uint8(255), + 1786: uint8(255), + 1787: uint8(255), + 1788: uint8(255), + 1789: uint8(255), + 1792: uint8(255), + 1793: uint8(255), + 1794: uint8(255), + 1795: uint8(255), + 1796: uint8(255), + 1797: uint8(255), + 1798: uint8(255), + 1799: uint8(255), + 1800: uint8(255), + 1801: uint8(255), + 1802: uint8(255), + 1803: uint8(255), + 1804: uint8(255), + 1805: uint8(255), + 1806: uint8(255), + 1807: uint8(255), + 1808: uint8(255), + 1809: uint8(31), + 1818: uint8(255), + 1819: uint8(255), + 1820: uint8(255), + 1821: uint8(255), + 1822: uint8(255), + 1823: uint8(63), + 1824: uint8(255), + 1825: uint8(31), + 1826: uint8(255), + 1827: uint8(255), + 1828: uint8(255), + 1829: uint8(15), + 1832: uint8(255), + 1833: uint8(255), + 1834: uint8(255), + 1835: uint8(255), + 1836: uint8(255), + 1837: uint8(127), + 1838: uint8(240), + 1839: uint8(143), + 1840: uint8(255), + 1841: uint8(255), + 1842: uint8(255), + 1843: uint8(255), + 1844: uint8(255), + 1845: uint8(255), + 1846: uint8(255), + 1847: uint8(255), + 1848: uint8(255), + 1849: uint8(255), + 1850: uint8(255), + 1851: uint8(255), + 1852: uint8(255), + 1853: uint8(255), + 1858: uint8(128), + 1859: uint8(255), + 1860: uint8(252), + 1861: uint8(255), + 1862: uint8(255), + 1863: uint8(255), + 1864: uint8(255), + 1865: uint8(255), + 1866: uint8(255), + 1867: uint8(255), + 1868: uint8(255), + 1869: uint8(255), + 1870: uint8(255), + 1871: uint8(255), + 1872: uint8(255), + 1873: uint8(249), + 1874: uint8(255), + 1875: uint8(255), + 1876: uint8(255), + 1877: uint8(255), + 1878: uint8(255), + 1879: uint8(255), + 1880: uint8(124), + 1886: uint8(128), + 1887: uint8(255), + 1888: uint8(191), + 1889: uint8(255), + 1890: uint8(255), + 1891: uint8(255), + 1892: uint8(255), + 1896: uint8(255), + 1897: uint8(255), + 1898: uint8(255), + 1899: uint8(255), + 1900: uint8(255), + 1901: uint8(255), + 1902: uint8(15), + 1904: uint8(255), + 1905: uint8(255), + 1906: uint8(255), + 1907: uint8(255), + 1908: uint8(255), + 1909: uint8(255), + 1910: uint8(255), + 1911: uint8(255), + 1912: uint8(47), + 1914: uint8(255), + 1915: uint8(3), + 1918: uint8(252), + 1919: uint8(232), + 1920: uint8(255), + 1921: uint8(255), + 1922: uint8(255), + 1923: uint8(255), + 1924: uint8(255), + 1925: uint8(7), + 1926: uint8(255), + 1927: uint8(255), + 1928: uint8(255), + 1929: uint8(255), + 1930: uint8(7), + 1932: uint8(255), + 1933: uint8(255), + 1934: uint8(255), + 1935: uint8(31), + 1936: uint8(255), + 1937: uint8(255), + 1938: uint8(255), + 1939: uint8(255), + 1940: uint8(255), + 1941: uint8(255), + 1942: uint8(247), + 1943: uint8(255), + 1945: uint8(128), + 1946: uint8(255), + 1947: uint8(3), + 1948: uint8(255), + 1949: uint8(255), + 1950: uint8(255), + 1951: uint8(127), + 1952: uint8(255), + 1953: uint8(255), + 1954: uint8(255), + 1955: uint8(255), + 1956: uint8(255), + 1957: uint8(255), + 1958: uint8(127), + 1960: uint8(255), + 1961: uint8(63), + 1962: uint8(255), + 1963: uint8(3), + 1964: uint8(255), + 1965: uint8(255), + 1966: uint8(127), + 1967: uint8(252), + 1968: uint8(255), + 1969: uint8(255), + 1970: uint8(255), + 1971: uint8(255), + 1972: uint8(255), + 1973: uint8(255), + 1974: uint8(255), + 1975: uint8(127), + 1976: uint8(5), + 1979: uint8(56), + 1980: uint8(255), + 1981: uint8(255), + 1982: uint8(60), + 1984: uint8(126), + 1985: uint8(126), + 1986: uint8(126), + 1988: uint8(127), + 1989: uint8(127), + 1990: uint8(255), + 1991: uint8(255), + 1992: uint8(255), + 1993: uint8(255), + 1994: uint8(255), + 1995: uint8(247), + 1996: uint8(255), + 1998: uint8(255), + 1999: uint8(255), + 2000: uint8(255), + 2001: uint8(255), + 2002: uint8(255), + 2003: uint8(255), + 2004: uint8(255), + 2005: uint8(255), + 2006: uint8(255), + 2007: uint8(255), + 2008: uint8(255), + 2009: uint8(255), + 2010: uint8(255), + 2011: uint8(255), + 2012: uint8(255), + 2013: uint8(7), + 2014: uint8(255), + 2015: uint8(3), + 2016: uint8(255), + 2017: uint8(255), + 2018: uint8(255), + 2019: uint8(255), + 2020: uint8(255), + 2021: uint8(255), + 2022: uint8(255), + 2023: uint8(255), + 2024: uint8(255), + 2025: uint8(255), + 2026: uint8(255), + 2027: uint8(255), + 2028: uint8(255), + 2029: uint8(255), + 2030: uint8(255), + 2031: uint8(255), + 2032: uint8(255), + 2033: uint8(255), + 2034: uint8(255), + 2035: uint8(255), + 2036: uint8(15), + 2038: uint8(255), + 2039: uint8(255), + 2040: uint8(127), + 2041: uint8(248), + 2042: uint8(255), + 2043: uint8(255), + 2044: uint8(255), + 2045: uint8(255), + 2046: uint8(255), + 2047: uint8(15), + 2048: uint8(255), + 2049: uint8(255), + 2050: uint8(255), + 2051: uint8(255), + 2052: uint8(255), + 2053: uint8(255), + 2054: uint8(255), + 2055: uint8(255), + 2056: uint8(255), + 2057: uint8(255), + 2058: uint8(255), + 2059: uint8(255), + 2060: uint8(255), + 2061: uint8(63), + 2062: uint8(255), + 2063: uint8(255), + 2064: uint8(255), + 2065: uint8(255), + 2066: uint8(255), + 2067: uint8(255), + 2068: uint8(255), + 2069: uint8(255), + 2070: uint8(255), + 2071: uint8(255), + 2072: uint8(255), + 2073: uint8(255), + 2074: uint8(255), + 2075: uint8(3), + 2080: uint8(127), + 2082: uint8(248), + 2083: uint8(224), + 2084: uint8(255), + 2085: uint8(253), + 2086: uint8(127), + 2087: uint8(95), + 2088: uint8(219), + 2089: uint8(255), + 2090: uint8(255), + 2091: uint8(255), + 2092: uint8(255), + 2093: uint8(255), + 2094: uint8(255), + 2095: uint8(255), + 2096: uint8(255), + 2097: uint8(255), + 2098: uint8(255), + 2099: uint8(255), + 2100: uint8(255), + 2101: uint8(255), + 2102: uint8(3), + 2106: uint8(248), + 2107: uint8(255), + 2108: uint8(255), + 2109: uint8(255), + 2110: uint8(255), + 2111: uint8(255), + 2112: uint8(255), + 2113: uint8(255), + 2114: uint8(255), + 2115: uint8(255), + 2116: uint8(255), + 2117: uint8(255), + 2118: uint8(255), + 2119: uint8(63), + 2122: uint8(255), + 2123: uint8(255), + 2124: uint8(255), + 2125: uint8(255), + 2126: uint8(255), + 2127: uint8(255), + 2128: uint8(255), + 2129: uint8(255), + 2130: uint8(252), + 2131: uint8(255), + 2132: uint8(255), + 2133: uint8(255), + 2134: uint8(255), + 2135: uint8(255), + 2136: uint8(255), + 2142: uint8(255), + 2143: uint8(15), + 2158: uint8(223), + 2159: uint8(255), + 2160: uint8(255), + 2161: uint8(255), + 2162: uint8(255), + 2163: uint8(255), + 2164: uint8(255), + 2165: uint8(255), + 2166: uint8(255), + 2167: uint8(255), + 2168: uint8(255), + 2169: uint8(255), + 2170: uint8(255), + 2171: uint8(255), + 2172: uint8(255), + 2173: uint8(255), + 2174: uint8(255), + 2175: uint8(31), + 2178: uint8(255), + 2179: uint8(3), + 2180: uint8(254), + 2181: uint8(255), + 2182: uint8(255), + 2183: uint8(7), + 2184: uint8(254), + 2185: uint8(255), + 2186: uint8(255), + 2187: uint8(7), + 2188: uint8(192), + 2189: uint8(255), + 2190: uint8(255), + 2191: uint8(255), + 2192: uint8(255), + 2193: uint8(255), + 2194: uint8(255), + 2195: uint8(255), + 2196: uint8(255), + 2197: uint8(255), + 2198: uint8(255), + 2199: uint8(127), + 2200: uint8(252), + 2201: uint8(252), + 2202: uint8(252), + 2203: uint8(28), + 2208: uint8(255), + 2209: uint8(239), + 2210: uint8(255), + 2211: uint8(255), + 2212: uint8(127), + 2213: uint8(255), + 2214: uint8(255), + 2215: uint8(183), + 2216: uint8(255), + 2217: uint8(63), + 2218: uint8(255), + 2219: uint8(63), + 2224: uint8(255), + 2225: uint8(255), + 2226: uint8(255), + 2227: uint8(255), + 2228: uint8(255), + 2229: uint8(255), + 2230: uint8(255), + 2231: uint8(255), + 2232: uint8(255), + 2233: uint8(255), + 2234: uint8(255), + 2235: uint8(255), + 2236: uint8(255), + 2237: uint8(255), + 2238: uint8(255), + 2239: uint8(7), + 2248: uint8(255), + 2249: uint8(255), + 2250: uint8(255), + 2251: uint8(255), + 2252: uint8(255), + 2253: uint8(255), + 2254: uint8(31), + 2288: uint8(255), + 2289: uint8(255), + 2290: uint8(255), + 2291: uint8(31), + 2292: uint8(255), + 2293: uint8(255), + 2294: uint8(255), + 2295: uint8(255), + 2296: uint8(255), + 2297: uint8(255), + 2298: uint8(1), + 2304: uint8(255), + 2305: uint8(255), + 2306: uint8(255), + 2307: uint8(255), + 2309: uint8(224), + 2310: uint8(255), + 2311: uint8(255), + 2312: uint8(255), + 2313: uint8(7), + 2314: uint8(255), + 2315: uint8(255), + 2316: uint8(255), + 2317: uint8(255), + 2318: uint8(255), + 2319: uint8(7), + 2320: uint8(255), + 2321: uint8(255), + 2322: uint8(255), + 2323: uint8(63), + 2324: uint8(255), + 2325: uint8(255), + 2326: uint8(255), + 2327: uint8(255), + 2328: uint8(15), + 2329: uint8(255), + 2330: uint8(62), + 2336: uint8(255), + 2337: uint8(255), + 2338: uint8(255), + 2339: uint8(255), + 2340: uint8(255), + 2341: uint8(255), + 2342: uint8(255), + 2343: uint8(255), + 2344: uint8(255), + 2345: uint8(255), + 2346: uint8(255), + 2347: uint8(255), + 2348: uint8(255), + 2349: uint8(255), + 2350: uint8(255), + 2351: uint8(255), + 2352: uint8(255), + 2353: uint8(255), + 2354: uint8(255), + 2355: uint8(63), + 2356: uint8(255), + 2357: uint8(3), + 2358: uint8(255), + 2359: uint8(255), + 2360: uint8(255), + 2361: uint8(255), + 2362: uint8(15), + 2363: uint8(255), + 2364: uint8(255), + 2365: uint8(255), + 2366: uint8(255), + 2367: uint8(15), + 2368: uint8(255), + 2369: uint8(255), + 2370: uint8(255), + 2371: uint8(255), + 2372: uint8(255), + 2374: uint8(255), + 2375: uint8(255), + 2376: uint8(255), + 2377: uint8(255), + 2378: uint8(255), + 2379: uint8(255), + 2380: uint8(15), + 2400: uint8(255), + 2401: uint8(255), + 2402: uint8(255), + 2403: uint8(255), + 2404: uint8(255), + 2405: uint8(255), + 2406: uint8(127), + 2408: uint8(255), + 2409: uint8(255), + 2410: uint8(63), + 2412: uint8(255), + 2432: uint8(63), + 2433: uint8(253), + 2434: uint8(255), + 2435: uint8(255), + 2436: uint8(255), + 2437: uint8(255), + 2438: uint8(191), + 2439: uint8(145), + 2440: uint8(255), + 2441: uint8(255), + 2442: uint8(63), + 2444: uint8(255), + 2445: uint8(255), + 2446: uint8(127), + 2448: uint8(255), + 2449: uint8(255), + 2450: uint8(255), + 2451: uint8(127), + 2460: uint8(255), + 2461: uint8(255), + 2462: uint8(55), + 2464: uint8(255), + 2465: uint8(255), + 2466: uint8(63), + 2468: uint8(255), + 2469: uint8(255), + 2470: uint8(255), + 2471: uint8(3), + 2480: uint8(255), + 2481: uint8(255), + 2482: uint8(255), + 2483: uint8(255), + 2484: uint8(255), + 2485: uint8(255), + 2486: uint8(255), + 2487: uint8(192), + 2496: uint8(111), + 2497: uint8(240), + 2498: uint8(239), + 2499: uint8(254), + 2500: uint8(255), + 2501: uint8(255), + 2502: uint8(63), + 2508: uint8(255), + 2509: uint8(255), + 2510: uint8(255), + 2511: uint8(31), + 2512: uint8(255), + 2513: uint8(255), + 2514: uint8(255), + 2515: uint8(31), + 2520: uint8(255), + 2521: uint8(254), + 2522: uint8(255), + 2523: uint8(255), + 2524: uint8(31), + 2528: uint8(255), + 2529: uint8(255), + 2530: uint8(255), + 2531: uint8(255), + 2532: uint8(255), + 2533: uint8(255), + 2534: uint8(63), + 2536: uint8(255), + 2537: uint8(255), + 2538: uint8(63), + 2540: uint8(255), + 2541: uint8(255), + 2542: uint8(7), + 2544: uint8(255), + 2545: uint8(255), + 2546: uint8(3), + 2560: uint8(255), + 2561: uint8(255), + 2562: uint8(255), + 2563: uint8(255), + 2564: uint8(255), + 2565: uint8(255), + 2566: uint8(255), + 2567: uint8(255), + 2568: uint8(255), + 2569: uint8(1), + 2576: uint8(255), + 2577: uint8(255), + 2578: uint8(255), + 2579: uint8(255), + 2580: uint8(255), + 2581: uint8(255), + 2582: uint8(7), + 2584: uint8(255), + 2585: uint8(255), + 2586: uint8(255), + 2587: uint8(255), + 2588: uint8(255), + 2589: uint8(255), + 2590: uint8(7), + 2592: uint8(255), + 2593: uint8(255), + 2594: uint8(255), + 2595: uint8(255), + 2596: uint8(255), + 2598: uint8(255), + 2599: uint8(3), + 2624: uint8(255), + 2625: uint8(255), + 2626: uint8(255), + 2627: uint8(31), + 2628: uint8(128), + 2630: uint8(255), + 2631: uint8(255), + 2632: uint8(63), + 2652: uint8(255), + 2653: uint8(255), + 2654: uint8(127), + 2656: uint8(255), + 2657: uint8(255), + 2658: uint8(255), + 2659: uint8(255), + 2660: uint8(255), + 2661: uint8(255), + 2662: uint8(255), + 2663: uint8(255), + 2664: uint8(63), + 2668: uint8(192), + 2669: uint8(255), + 2672: uint8(252), + 2673: uint8(255), + 2674: uint8(255), + 2675: uint8(255), + 2676: uint8(255), + 2677: uint8(255), + 2678: uint8(255), + 2679: uint8(1), + 2682: uint8(255), + 2683: uint8(255), + 2684: uint8(255), + 2685: uint8(1), + 2686: uint8(255), + 2687: uint8(3), + 2688: uint8(255), + 2689: uint8(255), + 2690: uint8(255), + 2691: uint8(255), + 2692: uint8(255), + 2693: uint8(255), + 2694: uint8(199), + 2695: uint8(255), + 2696: uint8(112), + 2698: uint8(255), + 2699: uint8(255), + 2700: uint8(255), + 2701: uint8(255), + 2702: uint8(71), + 2704: uint8(255), + 2705: uint8(255), + 2706: uint8(255), + 2707: uint8(255), + 2708: uint8(255), + 2709: uint8(255), + 2710: uint8(255), + 2711: uint8(255), + 2712: uint8(30), + 2714: uint8(255), + 2715: uint8(23), + 2720: uint8(255), + 2721: uint8(255), + 2722: uint8(251), + 2723: uint8(255), + 2724: uint8(255), + 2725: uint8(255), + 2726: uint8(159), + 2727: uint8(64), + 2736: uint8(127), + 2737: uint8(189), + 2738: uint8(255), + 2739: uint8(191), + 2740: uint8(255), + 2741: uint8(1), + 2742: uint8(255), + 2743: uint8(255), + 2744: uint8(255), + 2745: uint8(255), + 2746: uint8(255), + 2747: uint8(255), + 2748: uint8(255), + 2749: uint8(1), + 2750: uint8(255), + 2751: uint8(3), + 2752: uint8(239), + 2753: uint8(159), + 2754: uint8(249), + 2755: uint8(255), + 2756: uint8(255), + 2757: uint8(253), + 2758: uint8(237), + 2759: uint8(227), + 2760: uint8(159), + 2761: uint8(25), + 2762: uint8(129), + 2763: uint8(224), + 2764: uint8(15), + 2784: uint8(255), + 2785: uint8(255), + 2786: uint8(255), + 2787: uint8(255), + 2788: uint8(255), + 2789: uint8(255), + 2790: uint8(255), + 2791: uint8(255), + 2792: uint8(187), + 2793: uint8(7), + 2794: uint8(255), + 2795: uint8(131), + 2800: uint8(255), + 2801: uint8(255), + 2802: uint8(255), + 2803: uint8(255), + 2804: uint8(255), + 2805: uint8(255), + 2806: uint8(255), + 2807: uint8(255), + 2808: uint8(179), + 2810: uint8(255), + 2811: uint8(3), + 2832: uint8(255), + 2833: uint8(255), + 2834: uint8(255), + 2835: uint8(255), + 2836: uint8(255), + 2837: uint8(255), + 2838: uint8(63), + 2839: uint8(127), + 2843: uint8(63), + 2848: uint8(255), + 2849: uint8(255), + 2850: uint8(255), + 2851: uint8(255), + 2852: uint8(255), + 2853: uint8(255), + 2854: uint8(255), + 2855: uint8(127), + 2856: uint8(17), + 2858: uint8(255), + 2859: uint8(3), + 2864: uint8(255), + 2865: uint8(255), + 2866: uint8(255), + 2867: uint8(255), + 2868: uint8(255), + 2869: uint8(255), + 2870: uint8(63), + 2871: uint8(1), + 2872: uint8(255), + 2873: uint8(3), + 2880: uint8(255), + 2881: uint8(255), + 2882: uint8(255), + 2883: uint8(231), + 2884: uint8(255), + 2885: uint8(7), + 2886: uint8(255), + 2887: uint8(3), + 2912: uint8(255), + 2913: uint8(255), + 2914: uint8(255), + 2915: uint8(255), + 2916: uint8(255), + 2917: uint8(255), + 2918: uint8(255), + 2919: uint8(1), + 2932: uint8(255), + 2933: uint8(255), + 2934: uint8(255), + 2935: uint8(255), + 2936: uint8(255), + 2937: uint8(255), + 2938: uint8(255), + 2939: uint8(255), + 2940: uint8(255), + 2941: uint8(3), + 2943: uint8(128), + 2964: uint8(255), + 2965: uint8(252), + 2966: uint8(255), + 2967: uint8(255), + 2968: uint8(255), + 2969: uint8(255), + 2970: uint8(255), + 2971: uint8(252), + 2972: uint8(26), + 2976: uint8(255), + 2977: uint8(255), + 2978: uint8(255), + 2979: uint8(255), + 2980: uint8(255), + 2981: uint8(255), + 2982: uint8(231), + 2983: uint8(127), + 2986: uint8(255), + 2987: uint8(255), + 2988: uint8(255), + 2989: uint8(255), + 2990: uint8(255), + 2991: uint8(255), + 2992: uint8(255), + 2993: uint8(255), + 2994: uint8(255), + 2995: uint8(32), + 3000: uint8(255), + 3001: uint8(255), + 3002: uint8(255), + 3003: uint8(255), + 3004: uint8(255), + 3005: uint8(255), + 3006: uint8(255), + 3007: uint8(1), + 3008: uint8(255), + 3009: uint8(253), + 3010: uint8(255), + 3011: uint8(255), + 3012: uint8(255), + 3013: uint8(255), + 3014: uint8(127), + 3015: uint8(127), + 3016: uint8(1), + 3018: uint8(255), + 3019: uint8(3), + 3022: uint8(252), + 3023: uint8(255), + 3024: uint8(255), + 3025: uint8(255), + 3026: uint8(252), + 3027: uint8(255), + 3028: uint8(255), + 3029: uint8(254), + 3030: uint8(127), + 3040: uint8(127), + 3041: uint8(251), + 3042: uint8(255), + 3043: uint8(255), + 3044: uint8(255), + 3045: uint8(255), + 3046: uint8(127), + 3047: uint8(180), + 3048: uint8(203), + 3050: uint8(255), + 3051: uint8(3), + 3052: uint8(191), + 3053: uint8(253), + 3054: uint8(255), + 3055: uint8(255), + 3056: uint8(255), + 3057: uint8(127), + 3058: uint8(123), + 3059: uint8(1), + 3060: uint8(255), + 3061: uint8(3), + 3100: uint8(255), + 3101: uint8(255), + 3102: uint8(127), + 3104: uint8(255), + 3105: uint8(255), + 3106: uint8(255), + 3107: uint8(255), + 3108: uint8(255), + 3109: uint8(255), + 3110: uint8(255), + 3111: uint8(255), + 3112: uint8(255), + 3113: uint8(255), + 3114: uint8(255), + 3115: uint8(255), + 3116: uint8(255), + 3117: uint8(255), + 3118: uint8(255), + 3119: uint8(255), + 3120: uint8(255), + 3121: uint8(255), + 3122: uint8(255), + 3123: uint8(3), + 3136: uint8(255), + 3137: uint8(255), + 3138: uint8(255), + 3139: uint8(255), + 3140: uint8(255), + 3141: uint8(255), + 3142: uint8(255), + 3143: uint8(255), + 3144: uint8(255), + 3145: uint8(255), + 3146: uint8(255), + 3147: uint8(255), + 3148: uint8(255), + 3149: uint8(127), + 3152: uint8(255), + 3153: uint8(255), + 3154: uint8(255), + 3155: uint8(255), + 3156: uint8(255), + 3157: uint8(255), + 3158: uint8(255), + 3159: uint8(255), + 3160: uint8(255), + 3161: uint8(255), + 3162: uint8(255), + 3163: uint8(255), + 3164: uint8(255), + 3165: uint8(255), + 3166: uint8(255), + 3167: uint8(255), + 3168: uint8(255), + 3169: uint8(255), + 3170: uint8(255), + 3171: uint8(255), + 3172: uint8(255), + 3173: uint8(255), + 3174: uint8(255), + 3175: uint8(255), + 3176: uint8(15), + 3200: uint8(255), + 3201: uint8(255), + 3202: uint8(255), + 3203: uint8(255), + 3204: uint8(255), + 3205: uint8(127), + 3232: uint8(255), + 3233: uint8(255), + 3234: uint8(255), + 3235: uint8(255), + 3236: uint8(255), + 3237: uint8(255), + 3238: uint8(255), + 3239: uint8(255), + 3240: uint8(127), + 3264: uint8(255), + 3265: uint8(255), + 3266: uint8(255), + 3267: uint8(255), + 3268: uint8(255), + 3269: uint8(255), + 3270: uint8(255), + 3271: uint8(1), + 3272: uint8(255), + 3273: uint8(255), + 3274: uint8(255), + 3275: uint8(127), + 3276: uint8(255), + 3277: uint8(3), + 3290: uint8(255), + 3291: uint8(255), + 3292: uint8(255), + 3293: uint8(63), + 3296: uint8(255), + 3297: uint8(255), + 3298: uint8(255), + 3299: uint8(255), + 3300: uint8(255), + 3301: uint8(255), + 3304: uint8(15), + 3306: uint8(255), + 3307: uint8(3), + 3308: uint8(248), + 3309: uint8(255), + 3310: uint8(255), + 3311: uint8(224), + 3312: uint8(255), + 3313: uint8(255), + 3336: uint8(255), + 3337: uint8(255), + 3338: uint8(255), + 3339: uint8(255), + 3340: uint8(255), + 3341: uint8(255), + 3342: uint8(255), + 3343: uint8(255), + 3360: uint8(255), + 3361: uint8(255), + 3362: uint8(255), + 3363: uint8(255), + 3364: uint8(255), + 3365: uint8(255), + 3366: uint8(255), + 3367: uint8(255), + 3368: uint8(255), + 3369: uint8(135), + 3370: uint8(255), + 3371: uint8(255), + 3372: uint8(255), + 3373: uint8(255), + 3374: uint8(255), + 3375: uint8(255), + 3376: uint8(255), + 3377: uint8(128), + 3378: uint8(255), + 3379: uint8(255), + 3388: uint8(11), + 3392: uint8(255), + 3393: uint8(255), + 3394: uint8(255), + 3395: uint8(255), + 3396: uint8(255), + 3397: uint8(255), + 3398: uint8(255), + 3399: uint8(255), + 3400: uint8(255), + 3401: uint8(255), + 3402: uint8(255), + 3403: uint8(255), + 3404: uint8(255), + 3405: uint8(255), + 3406: uint8(255), + 3407: uint8(255), + 3408: uint8(255), + 3409: uint8(255), + 3410: uint8(255), + 3411: uint8(255), + 3412: uint8(255), + 3413: uint8(255), + 3414: uint8(255), + 3415: uint8(255), + 3416: uint8(255), + 3417: uint8(255), + 3418: uint8(255), + 3419: uint8(255), + 3420: uint8(255), + 3421: uint8(255), + 3422: uint8(255), + 3424: uint8(255), + 3425: uint8(255), + 3426: uint8(255), + 3427: uint8(255), + 3428: uint8(255), + 3429: uint8(255), + 3430: uint8(255), + 3431: uint8(255), + 3432: uint8(255), + 3433: uint8(255), + 3434: uint8(255), + 3435: uint8(255), + 3436: uint8(255), + 3437: uint8(255), + 3438: uint8(255), + 3439: uint8(255), + 3440: uint8(255), + 3441: uint8(255), + 3442: uint8(255), + 3443: uint8(255), + 3444: uint8(255), + 3445: uint8(255), + 3446: uint8(255), + 3447: uint8(255), + 3448: uint8(255), + 3449: uint8(255), + 3450: uint8(255), + 3451: uint8(255), + 3452: uint8(255), + 3453: uint8(255), + 3454: uint8(7), + 3456: uint8(255), + 3457: uint8(255), + 3458: uint8(255), + 3459: uint8(127), + 3466: uint8(7), + 3468: uint8(240), + 3470: uint8(255), + 3471: uint8(255), + 3472: uint8(255), + 3473: uint8(255), + 3474: uint8(255), + 3475: uint8(255), + 3476: uint8(255), + 3477: uint8(255), + 3478: uint8(255), + 3479: uint8(255), + 3480: uint8(255), + 3481: uint8(255), + 3482: uint8(255), + 3483: uint8(255), + 3484: uint8(255), + 3485: uint8(255), + 3486: uint8(255), + 3487: uint8(255), + 3488: uint8(255), + 3489: uint8(255), + 3490: uint8(255), + 3491: uint8(255), + 3492: uint8(255), + 3493: uint8(255), + 3494: uint8(255), + 3495: uint8(255), + 3496: uint8(255), + 3497: uint8(255), + 3498: uint8(255), + 3499: uint8(255), + 3500: uint8(255), + 3501: uint8(255), + 3502: uint8(255), + 3503: uint8(255), + 3504: uint8(255), + 3505: uint8(255), + 3506: uint8(255), + 3507: uint8(255), + 3508: uint8(255), + 3509: uint8(255), + 3510: uint8(255), + 3511: uint8(255), + 3512: uint8(255), + 3513: uint8(255), + 3514: uint8(255), + 3515: uint8(255), + 3516: uint8(255), + 3517: uint8(255), + 3518: uint8(255), + 3519: uint8(15), + 3520: uint8(255), + 3521: uint8(255), + 3522: uint8(255), + 3523: uint8(255), + 3524: uint8(255), + 3525: uint8(255), + 3526: uint8(255), + 3527: uint8(255), + 3528: uint8(255), + 3529: uint8(255), + 3530: uint8(255), + 3531: uint8(255), + 3532: uint8(255), + 3533: uint8(7), + 3534: uint8(255), + 3535: uint8(31), + 3536: uint8(255), + 3537: uint8(1), + 3538: uint8(255), + 3539: uint8(67), + 3552: uint8(255), + 3553: uint8(255), + 3554: uint8(255), + 3555: uint8(255), + 3556: uint8(255), + 3557: uint8(255), + 3558: uint8(255), + 3559: uint8(255), + 3560: uint8(255), + 3561: uint8(255), + 3562: uint8(223), + 3563: uint8(255), + 3564: uint8(255), + 3565: uint8(255), + 3566: uint8(255), + 3567: uint8(255), + 3568: uint8(255), + 3569: uint8(255), + 3570: uint8(255), + 3571: uint8(223), + 3572: uint8(100), + 3573: uint8(222), + 3574: uint8(255), + 3575: uint8(235), + 3576: uint8(239), + 3577: uint8(255), + 3578: uint8(255), + 3579: uint8(255), + 3580: uint8(255), + 3581: uint8(255), + 3582: uint8(255), + 3583: uint8(255), + 3584: uint8(191), + 3585: uint8(231), + 3586: uint8(223), + 3587: uint8(223), + 3588: uint8(255), + 3589: uint8(255), + 3590: uint8(255), + 3591: uint8(123), + 3592: uint8(95), + 3593: uint8(252), + 3594: uint8(253), + 3595: uint8(255), + 3596: uint8(255), + 3597: uint8(255), + 3598: uint8(255), + 3599: uint8(255), + 3600: uint8(255), + 3601: uint8(255), + 3602: uint8(255), + 3603: uint8(255), + 3604: uint8(255), + 3605: uint8(255), + 3606: uint8(255), + 3607: uint8(255), + 3608: uint8(255), + 3609: uint8(255), + 3610: uint8(255), + 3611: uint8(255), + 3612: uint8(255), + 3613: uint8(255), + 3614: uint8(255), + 3615: uint8(255), + 3616: uint8(255), + 3617: uint8(255), + 3618: uint8(255), + 3619: uint8(255), + 3620: uint8(255), + 3621: uint8(255), + 3622: uint8(255), + 3623: uint8(255), + 3624: uint8(255), + 3625: uint8(255), + 3626: uint8(255), + 3627: uint8(255), + 3628: uint8(255), + 3629: uint8(255), + 3630: uint8(255), + 3631: uint8(255), + 3632: uint8(255), + 3633: uint8(255), + 3634: uint8(255), + 3635: uint8(255), + 3636: uint8(63), + 3637: uint8(255), + 3638: uint8(255), + 3639: uint8(255), + 3640: uint8(253), + 3641: uint8(255), + 3642: uint8(255), + 3643: uint8(247), + 3644: uint8(255), + 3645: uint8(255), + 3646: uint8(255), + 3647: uint8(247), + 3648: uint8(255), + 3649: uint8(255), + 3650: uint8(223), + 3651: uint8(255), + 3652: uint8(255), + 3653: uint8(255), + 3654: uint8(223), + 3655: uint8(255), + 3656: uint8(255), + 3657: uint8(127), + 3658: uint8(255), + 3659: uint8(255), + 3660: uint8(255), + 3661: uint8(127), + 3662: uint8(255), + 3663: uint8(255), + 3664: uint8(255), + 3665: uint8(253), + 3666: uint8(255), + 3667: uint8(255), + 3668: uint8(255), + 3669: uint8(253), + 3670: uint8(255), + 3671: uint8(255), + 3672: uint8(247), + 3673: uint8(207), + 3674: uint8(255), + 3675: uint8(255), + 3676: uint8(255), + 3677: uint8(255), + 3678: uint8(255), + 3679: uint8(255), + 3680: uint8(127), + 3681: uint8(255), + 3682: uint8(255), + 3683: uint8(249), + 3684: uint8(219), + 3685: uint8(7), + 3712: uint8(255), + 3713: uint8(255), + 3714: uint8(255), + 3715: uint8(255), + 3716: uint8(255), + 3717: uint8(31), + 3718: uint8(128), + 3719: uint8(63), + 3720: uint8(255), + 3721: uint8(67), + 3768: uint8(255), + 3769: uint8(255), + 3770: uint8(255), + 3771: uint8(255), + 3772: uint8(255), + 3773: uint8(15), + 3774: uint8(255), + 3775: uint8(3), + 3776: uint8(255), + 3777: uint8(255), + 3778: uint8(255), + 3779: uint8(255), + 3780: uint8(255), + 3781: uint8(255), + 3782: uint8(255), + 3783: uint8(255), + 3784: uint8(255), + 3785: uint8(255), + 3786: uint8(255), + 3787: uint8(255), + 3788: uint8(255), + 3789: uint8(255), + 3790: uint8(255), + 3791: uint8(255), + 3792: uint8(255), + 3793: uint8(255), + 3794: uint8(255), + 3795: uint8(255), + 3796: uint8(255), + 3797: uint8(255), + 3798: uint8(255), + 3799: uint8(255), + 3800: uint8(31), + 3808: uint8(255), + 3809: uint8(255), + 3810: uint8(255), + 3811: uint8(255), + 3812: uint8(255), + 3813: uint8(255), + 3814: uint8(255), + 3815: uint8(255), + 3816: uint8(143), + 3817: uint8(8), + 3818: uint8(255), + 3819: uint8(3), + 3840: uint8(239), + 3841: uint8(255), + 3842: uint8(255), + 3843: uint8(255), + 3844: uint8(150), + 3845: uint8(254), + 3846: uint8(247), + 3847: uint8(10), + 3848: uint8(132), + 3849: uint8(234), + 3850: uint8(150), + 3851: uint8(170), + 3852: uint8(150), + 3853: uint8(247), + 3854: uint8(247), + 3855: uint8(94), + 3856: uint8(255), + 3857: uint8(251), + 3858: uint8(255), + 3859: uint8(15), + 3860: uint8(238), + 3861: uint8(251), + 3862: uint8(255), + 3863: uint8(15), + 3878: uint8(255), + 3879: uint8(255), + 3880: uint8(255), + 3881: uint8(3), + 3882: uint8(255), + 3883: uint8(255), + 3884: uint8(255), + 3885: uint8(3), + 3886: uint8(255), + 3887: uint8(255), + 3888: uint8(255), + 3889: uint8(3), +} + +func Xiswalpha(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + if wc < uint32(0x20000) { + return Int32FromUint8(_table3[Uint32FromInt32(Int32FromUint8(_table3[wc>>int32(8)])*int32(32))+wc&uint32(255)>>int32(3)]) >> (wc & uint32(7)) & int32(1) + } + if wc < uint32(0x2fffe) { + return int32(1) + } + return 0 +} + +func X__iswalpha_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswalpha(tls, c) +} + +func Xiswalpha_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswalpha_l(tls, c, l) +} + +func Xiswblank(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xisblank(tls, Int32FromUint32(wc)) +} + +func X__iswblank_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswblank(tls, c) +} + +func Xiswblank_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswblank_l(tls, c, l) +} + +func Xiswcntrl(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(wc < uint32(32) || wc-Uint32FromInt32(0x7f) < uint32(33) || wc-Uint32FromInt32(0x2028) < uint32(2) || wc-Uint32FromInt32(0xfff9) < uint32(3)) +} + +func X__iswcntrl_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswcntrl(tls, c) +} + +func Xiswcntrl_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswcntrl_l(tls, c, l) +} + +const WCTYPE_ALNUM = 1 +const WCTYPE_ALPHA = 2 +const WCTYPE_BLANK = 3 +const WCTYPE_CNTRL = 4 +const WCTYPE_DIGIT = 5 +const WCTYPE_GRAPH = 6 +const WCTYPE_LOWER = 7 +const WCTYPE_PRINT = 8 +const WCTYPE_PUNCT = 9 +const WCTYPE_SPACE = 10 +const WCTYPE_UPPER = 11 +const WCTYPE_XDIGIT = 12 + +func Xiswctype(tls *TLS, wc Twint_t, type1 Twctype_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v type1=%v, (%v:)", tls, wc, type1, origin(2)) + defer func() { trc("-> %v", r) }() + } + switch type1 { + case uint64(WCTYPE_ALNUM): + return Xiswalnum(tls, wc) + case uint64(WCTYPE_ALPHA): + return Xiswalpha(tls, wc) + case uint64(WCTYPE_BLANK): + return Xiswblank(tls, wc) + case uint64(WCTYPE_CNTRL): + return Xiswcntrl(tls, wc) + case uint64(WCTYPE_DIGIT): + return BoolInt32(wc-uint32('0') < uint32(10)) + case uint64(WCTYPE_GRAPH): + return Xiswgraph(tls, wc) + case uint64(WCTYPE_LOWER): + return Xiswlower(tls, wc) + case uint64(WCTYPE_PRINT): + return Xiswprint(tls, wc) + case uint64(WCTYPE_PUNCT): + return Xiswpunct(tls, wc) + case uint64(WCTYPE_SPACE): + return Xiswspace(tls, wc) + case uint64(WCTYPE_UPPER): + return Xiswupper(tls, wc) + case uint64(WCTYPE_XDIGIT): + return Xiswxdigit(tls, wc) + } + return 0 +} + +func Xwctype(tls *TLS, s uintptr) (r Twctype_t) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var i int32 + var p uintptr + _, _ = i, p + i = int32(1) + p = uintptr(unsafe.Pointer(&_names)) + for { + if !(**(**uint8)(__ccgo_up(p)) != 0) { + break + } + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == Int32FromUint8(**(**uint8)(__ccgo_up(p))) && !(Xstrcmp(tls, s, p) != 0) { + return Uint64FromInt32(i) + } + goto _1 + _1: + ; + i = i + 1 + p = p + uintptr(6) + } + return uint64(0) +} + +/* order must match! */ +var _names = [73]uint8{'a', 'l', 'n', 'u', 'm', 0, 'a', 'l', 'p', 'h', 'a', 0, 'b', 'l', 'a', 'n', 'k', 0, 'c', 'n', 't', 'r', 'l', 0, 'd', 'i', 'g', 'i', 't', 0, 'g', 'r', 'a', 'p', 'h', 0, 'l', 'o', 'w', 'e', 'r', 0, 'p', 'r', 'i', 'n', 't', 0, 'p', 'u', 'n', 'c', 't', 0, 's', 'p', 'a', 'c', 'e', 0, 'u', 'p', 'p', 'e', 'r', 0, 'x', 'd', 'i', 'g', 'i', 't'} + +func X__iswctype_l(tls *TLS, c Twint_t, t Twctype_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v t=%v l=%v, (%v:)", tls, c, t, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswctype(tls, c, t) +} + +func X__wctype_l(tls *TLS, s uintptr, l Tlocale_t) (r Twctype_t) { + if __ccgo_strace { + trc("tls=%v s=%v l=%v, (%v:)", tls, s, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwctype(tls, s) +} + +func Xiswctype_l(tls *TLS, c Twint_t, t Twctype_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v t=%v l=%v, (%v:)", tls, c, t, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswctype_l(tls, c, t, l) +} + +func Xwctype_l(tls *TLS, s uintptr, l Tlocale_t) (r Twctype_t) { + if __ccgo_strace { + trc("tls=%v s=%v l=%v, (%v:)", tls, s, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__wctype_l(tls, s, l) +} + +func Xiswdigit(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(wc-uint32('0') < uint32(10)) +} + +func X__iswdigit_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswdigit(tls, c) +} + +func Xiswdigit_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswdigit_l(tls, c, l) +} + +func Xiswgraph(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + /* ISO C defines this function as: */ + return BoolInt32(!(Xiswspace(tls, wc) != 0) && Xiswprint(tls, wc) != 0) +} + +func X__iswgraph_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswgraph(tls, c) +} + +func Xiswgraph_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswgraph_l(tls, c, l) +} + +func Xiswlower(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(Xtowupper(tls, wc) != wc) +} + +func X__iswlower_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswlower(tls, c) +} + +func Xiswlower_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswlower_l(tls, c, l) +} + +/* Consider all legal codepoints as printable except for: + * - C0 and C1 control characters + * - U+2028 and U+2029 (line/para break) + * - U+FFF9 through U+FFFB (interlinear annotation controls) + * The following code is optimized heavily to make hot paths for the + * expected printable characters. */ + +func Xiswprint(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + if wc < uint32(0xff) { + return BoolInt32((wc+uint32(1))&uint32(0x7f) >= uint32(0x21)) + } + if wc < uint32(0x2028) || wc-uint32(0x202a) < Uint32FromInt32(Int32FromInt32(0xd800)-Int32FromInt32(0x202a)) || wc-uint32(0xe000) < Uint32FromInt32(Int32FromInt32(0xfff9)-Int32FromInt32(0xe000)) { + return int32(1) + } + if wc-uint32(0xfffc) > Uint32FromInt32(Int32FromInt32(0x10ffff)-Int32FromInt32(0xfffc)) || wc&uint32(0xfffe) == uint32(0xfffe) { + return 0 + } + return int32(1) +} + +func X__iswprint_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswprint(tls, c) +} + +func Xiswprint_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswprint_l(tls, c, l) +} + +var _table4 = [4000]uint8{ + 0: uint8(18), + 1: uint8(16), + 2: uint8(19), + 3: uint8(20), + 4: uint8(21), + 5: uint8(22), + 6: uint8(23), + 7: uint8(24), + 8: uint8(25), + 9: uint8(26), + 10: uint8(27), + 11: uint8(28), + 12: uint8(29), + 13: uint8(30), + 14: uint8(31), + 15: uint8(32), + 16: uint8(33), + 17: uint8(16), + 18: uint8(16), + 19: uint8(34), + 20: uint8(35), + 21: uint8(16), + 22: uint8(36), + 23: uint8(37), + 24: uint8(38), + 25: uint8(39), + 26: uint8(40), + 27: uint8(41), + 28: uint8(42), + 29: uint8(43), + 30: uint8(16), + 31: uint8(44), + 32: uint8(45), + 33: uint8(46), + 34: uint8(17), + 35: uint8(17), + 36: uint8(47), + 37: uint8(17), + 38: uint8(17), + 39: uint8(17), + 40: uint8(17), + 41: uint8(17), + 42: uint8(17), + 43: uint8(48), + 44: uint8(49), + 45: uint8(50), + 46: uint8(51), + 47: uint8(52), + 48: uint8(53), + 49: uint8(54), + 50: uint8(55), + 51: uint8(17), + 52: uint8(16), + 53: uint8(16), + 54: uint8(16), + 55: uint8(16), + 56: uint8(16), + 57: uint8(16), + 58: uint8(16), + 59: uint8(16), + 60: uint8(16), + 61: uint8(16), + 62: uint8(16), + 63: uint8(16), + 64: uint8(16), + 65: uint8(16), + 66: uint8(16), + 67: uint8(16), + 68: uint8(16), + 69: uint8(16), + 70: uint8(16), + 71: uint8(16), + 72: uint8(16), + 73: uint8(16), + 74: uint8(16), + 75: uint8(16), + 76: uint8(16), + 77: uint8(56), + 78: uint8(16), + 79: uint8(16), + 80: uint8(16), + 81: uint8(16), + 82: uint8(16), + 83: uint8(16), + 84: uint8(16), + 85: uint8(16), + 86: uint8(16), + 87: uint8(16), + 88: uint8(16), + 89: uint8(16), + 90: uint8(16), + 91: uint8(16), + 92: uint8(16), + 93: uint8(16), + 94: uint8(16), + 95: uint8(16), + 96: uint8(16), + 97: uint8(16), + 98: uint8(16), + 99: uint8(16), + 100: uint8(16), + 101: uint8(16), + 102: uint8(16), + 103: uint8(16), + 104: uint8(16), + 105: uint8(16), + 106: uint8(16), + 107: uint8(16), + 108: uint8(16), + 109: uint8(16), + 110: uint8(16), + 111: uint8(16), + 112: uint8(16), + 113: uint8(16), + 114: uint8(16), + 115: uint8(16), + 116: uint8(16), + 117: uint8(16), + 118: uint8(16), + 119: uint8(16), + 120: uint8(16), + 121: uint8(16), + 122: uint8(16), + 123: uint8(16), + 124: uint8(16), + 125: uint8(16), + 126: uint8(16), + 127: uint8(16), + 128: uint8(16), + 129: uint8(16), + 130: uint8(16), + 131: uint8(16), + 132: uint8(16), + 133: uint8(16), + 134: uint8(16), + 135: uint8(16), + 136: uint8(16), + 137: uint8(16), + 138: uint8(16), + 139: uint8(16), + 140: uint8(16), + 141: uint8(16), + 142: uint8(16), + 143: uint8(16), + 144: uint8(16), + 145: uint8(16), + 146: uint8(16), + 147: uint8(16), + 148: uint8(16), + 149: uint8(16), + 150: uint8(16), + 151: uint8(16), + 152: uint8(16), + 153: uint8(16), + 154: uint8(16), + 155: uint8(16), + 156: uint8(16), + 157: uint8(16), + 158: uint8(16), + 159: uint8(16), + 160: uint8(16), + 161: uint8(16), + 162: uint8(16), + 163: uint8(16), + 164: uint8(57), + 165: uint8(16), + 166: uint8(58), + 167: uint8(59), + 168: uint8(60), + 169: uint8(61), + 170: uint8(62), + 171: uint8(63), + 172: uint8(16), + 173: uint8(16), + 174: uint8(16), + 175: uint8(16), + 176: uint8(16), + 177: uint8(16), + 178: uint8(16), + 179: uint8(16), + 180: uint8(16), + 181: uint8(16), + 182: uint8(16), + 183: uint8(16), + 184: uint8(16), + 185: uint8(16), + 186: uint8(16), + 187: uint8(16), + 188: uint8(16), + 189: uint8(16), + 190: uint8(16), + 191: uint8(16), + 192: uint8(16), + 193: uint8(16), + 194: uint8(16), + 195: uint8(16), + 196: uint8(16), + 197: uint8(16), + 198: uint8(16), + 199: uint8(16), + 200: uint8(16), + 201: uint8(16), + 202: uint8(16), + 203: uint8(16), + 204: uint8(16), + 205: uint8(16), + 206: uint8(16), + 207: uint8(16), + 208: uint8(16), + 209: uint8(16), + 210: uint8(16), + 211: uint8(16), + 212: uint8(16), + 213: uint8(16), + 214: uint8(16), + 215: uint8(16), + 216: uint8(16), + 217: uint8(16), + 218: uint8(16), + 219: uint8(16), + 220: uint8(16), + 221: uint8(16), + 222: uint8(16), + 223: uint8(16), + 224: uint8(64), + 225: uint8(16), + 226: uint8(16), + 227: uint8(16), + 228: uint8(16), + 229: uint8(16), + 230: uint8(16), + 231: uint8(16), + 232: uint8(16), + 233: uint8(16), + 234: uint8(16), + 235: uint8(16), + 236: uint8(16), + 237: uint8(16), + 238: uint8(16), + 239: uint8(16), + 240: uint8(16), + 241: uint8(16), + 242: uint8(16), + 243: uint8(16), + 244: uint8(16), + 245: uint8(16), + 246: uint8(16), + 247: uint8(16), + 248: uint8(65), + 249: uint8(16), + 250: uint8(16), + 251: uint8(66), + 252: uint8(16), + 253: uint8(67), + 254: uint8(68), + 255: uint8(69), + 256: uint8(16), + 257: uint8(70), + 258: uint8(71), + 259: uint8(72), + 260: uint8(16), + 261: uint8(73), + 262: uint8(16), + 263: uint8(16), + 264: uint8(74), + 265: uint8(75), + 266: uint8(76), + 267: uint8(77), + 268: uint8(78), + 269: uint8(16), + 270: uint8(79), + 271: uint8(80), + 272: uint8(81), + 273: uint8(82), + 274: uint8(83), + 275: uint8(84), + 276: uint8(85), + 277: uint8(86), + 278: uint8(87), + 279: uint8(88), + 280: uint8(89), + 281: uint8(90), + 282: uint8(91), + 283: uint8(16), + 284: uint8(92), + 285: uint8(93), + 286: uint8(94), + 287: uint8(95), + 288: uint8(16), + 289: uint8(16), + 290: uint8(16), + 291: uint8(16), + 292: uint8(96), + 293: uint8(16), + 294: uint8(16), + 295: uint8(16), + 296: uint8(16), + 297: uint8(16), + 298: uint8(16), + 299: uint8(16), + 300: uint8(16), + 301: uint8(16), + 302: uint8(16), + 303: uint8(16), + 304: uint8(16), + 305: uint8(16), + 306: uint8(16), + 307: uint8(16), + 308: uint8(97), + 309: uint8(16), + 310: uint8(16), + 311: uint8(16), + 312: uint8(16), + 313: uint8(16), + 314: uint8(16), + 315: uint8(16), + 316: uint8(16), + 317: uint8(16), + 318: uint8(16), + 319: uint8(16), + 320: uint8(16), + 321: uint8(16), + 322: uint8(16), + 323: uint8(16), + 324: uint8(16), + 325: uint8(16), + 326: uint8(16), + 327: uint8(16), + 328: uint8(16), + 329: uint8(16), + 330: uint8(16), + 331: uint8(16), + 332: uint8(16), + 333: uint8(16), + 334: uint8(16), + 335: uint8(16), + 336: uint8(16), + 337: uint8(16), + 338: uint8(16), + 339: uint8(16), + 340: uint8(16), + 341: uint8(16), + 342: uint8(16), + 343: uint8(16), + 344: uint8(16), + 345: uint8(16), + 346: uint8(16), + 347: uint8(16), + 348: uint8(16), + 349: uint8(16), + 350: uint8(16), + 351: uint8(16), + 352: uint8(16), + 353: uint8(16), + 354: uint8(16), + 355: uint8(16), + 356: uint8(16), + 357: uint8(16), + 358: uint8(16), + 359: uint8(16), + 360: uint8(16), + 361: uint8(16), + 362: uint8(98), + 363: uint8(99), + 364: uint8(16), + 365: uint8(16), + 366: uint8(100), + 367: uint8(101), + 368: uint8(16), + 369: uint8(16), + 370: uint8(16), + 371: uint8(16), + 372: uint8(16), + 373: uint8(16), + 374: uint8(16), + 375: uint8(16), + 376: uint8(16), + 377: uint8(16), + 378: uint8(16), + 379: uint8(16), + 380: uint8(16), + 381: uint8(16), + 382: uint8(16), + 383: uint8(16), + 384: uint8(16), + 385: uint8(16), + 386: uint8(16), + 387: uint8(16), + 388: uint8(16), + 389: uint8(16), + 390: uint8(16), + 391: uint8(16), + 392: uint8(16), + 393: uint8(16), + 394: uint8(16), + 395: uint8(16), + 396: uint8(16), + 397: uint8(16), + 398: uint8(16), + 399: uint8(16), + 400: uint8(16), + 401: uint8(16), + 402: uint8(16), + 403: uint8(16), + 404: uint8(16), + 405: uint8(16), + 406: uint8(16), + 407: uint8(16), + 408: uint8(16), + 409: uint8(16), + 410: uint8(16), + 411: uint8(16), + 412: uint8(16), + 413: uint8(16), + 414: uint8(16), + 415: uint8(16), + 416: uint8(16), + 417: uint8(16), + 418: uint8(16), + 419: uint8(16), + 420: uint8(16), + 421: uint8(16), + 422: uint8(16), + 423: uint8(16), + 424: uint8(16), + 425: uint8(16), + 426: uint8(16), + 427: uint8(16), + 428: uint8(16), + 429: uint8(16), + 430: uint8(16), + 431: uint8(16), + 432: uint8(16), + 433: uint8(16), + 434: uint8(16), + 435: uint8(16), + 436: uint8(16), + 437: uint8(16), + 438: uint8(16), + 439: uint8(16), + 440: uint8(16), + 441: uint8(16), + 442: uint8(16), + 443: uint8(16), + 444: uint8(102), + 445: uint8(16), + 446: uint8(16), + 447: uint8(16), + 448: uint8(16), + 449: uint8(16), + 450: uint8(16), + 451: uint8(16), + 452: uint8(16), + 453: uint8(16), + 454: uint8(16), + 455: uint8(16), + 456: uint8(16), + 457: uint8(16), + 458: uint8(16), + 459: uint8(16), + 460: uint8(16), + 461: uint8(16), + 462: uint8(16), + 463: uint8(16), + 464: uint8(103), + 465: uint8(104), + 466: uint8(105), + 467: uint8(106), + 468: uint8(16), + 469: uint8(16), + 470: uint8(107), + 471: uint8(108), + 472: uint8(17), + 473: uint8(17), + 474: uint8(109), + 475: uint8(16), + 476: uint8(16), + 477: uint8(16), + 478: uint8(16), + 479: uint8(16), + 480: uint8(16), + 481: uint8(110), + 482: uint8(111), + 483: uint8(16), + 484: uint8(16), + 485: uint8(16), + 486: uint8(16), + 487: uint8(16), + 488: uint8(112), + 489: uint8(113), + 490: uint8(16), + 491: uint8(16), + 492: uint8(114), + 493: uint8(115), + 494: uint8(116), + 495: uint8(16), + 496: uint8(117), + 497: uint8(118), + 498: uint8(119), + 499: uint8(17), + 500: uint8(17), + 501: uint8(17), + 502: uint8(120), + 503: uint8(121), + 504: uint8(122), + 505: uint8(123), + 506: uint8(124), + 507: uint8(16), + 508: uint8(16), + 509: uint8(16), + 510: uint8(16), + 511: uint8(16), + 544: uint8(255), + 545: uint8(255), + 546: uint8(255), + 547: uint8(255), + 548: uint8(255), + 549: uint8(255), + 550: uint8(255), + 551: uint8(255), + 552: uint8(255), + 553: uint8(255), + 554: uint8(255), + 555: uint8(255), + 556: uint8(255), + 557: uint8(255), + 558: uint8(255), + 559: uint8(255), + 560: uint8(255), + 561: uint8(255), + 562: uint8(255), + 563: uint8(255), + 564: uint8(255), + 565: uint8(255), + 566: uint8(255), + 567: uint8(255), + 568: uint8(255), + 569: uint8(255), + 570: uint8(255), + 571: uint8(255), + 572: uint8(255), + 573: uint8(255), + 574: uint8(255), + 575: uint8(255), + 580: uint8(254), + 581: uint8(255), + 583: uint8(252), + 584: uint8(1), + 587: uint8(248), + 588: uint8(1), + 591: uint8(120), + 596: uint8(255), + 597: uint8(251), + 598: uint8(223), + 599: uint8(251), + 602: uint8(128), + 606: uint8(128), + 632: uint8(60), + 634: uint8(252), + 635: uint8(255), + 636: uint8(224), + 637: uint8(175), + 638: uint8(255), + 639: uint8(255), + 640: uint8(255), + 641: uint8(255), + 642: uint8(255), + 643: uint8(255), + 644: uint8(255), + 645: uint8(255), + 646: uint8(255), + 647: uint8(255), + 648: uint8(223), + 649: uint8(255), + 650: uint8(255), + 651: uint8(255), + 652: uint8(255), + 653: uint8(255), + 654: uint8(32), + 655: uint8(64), + 656: uint8(176), + 670: uint8(64), + 688: uint8(252), + 689: uint8(3), + 715: uint8(252), + 721: uint8(230), + 722: uint8(254), + 723: uint8(255), + 724: uint8(255), + 725: uint8(255), + 727: uint8(64), + 728: uint8(73), + 734: uint8(24), + 736: uint8(255), + 737: uint8(255), + 739: uint8(216), + 747: uint8(1), + 749: uint8(60), + 762: uint8(16), + 763: uint8(224), + 764: uint8(1), + 765: uint8(30), + 767: uint8(96), + 768: uint8(255), + 769: uint8(191), + 776: uint8(255), + 777: uint8(7), + 797: uint8(248), + 798: uint8(207), + 799: uint8(227), + 803: uint8(3), + 805: uint8(32), + 806: uint8(255), + 807: uint8(127), + 811: uint8(78), + 826: uint8(8), + 828: uint8(7), + 829: uint8(252), + 839: uint8(16), + 841: uint8(32), + 842: uint8(30), + 844: uint8(48), + 846: uint8(1), + 855: uint8(16), + 857: uint8(32), + 862: uint8(252), + 863: uint8(111), + 871: uint8(16), + 873: uint8(32), + 878: uint8(64), + 887: uint8(16), + 889: uint8(32), + 894: uint8(3), + 895: uint8(224), + 903: uint8(16), + 905: uint8(32), + 910: uint8(253), + 921: uint8(32), + 926: uint8(255), + 927: uint8(7), + 928: uint8(16), + 937: uint8(32), + 942: uint8(128), + 943: uint8(255), + 944: uint8(16), + 951: uint8(16), + 953: uint8(32), + 967: uint8(24), + 969: uint8(160), + 971: uint8(127), + 974: uint8(255), + 975: uint8(3), + 985: uint8(4), + 990: uint8(16), + 997: uint8(128), + 999: uint8(128), + 1000: uint8(192), + 1001: uint8(223), + 1003: uint8(12), + 1015: uint8(4), + 1017: uint8(31), + 1024: uint8(254), + 1025: uint8(255), + 1026: uint8(255), + 1027: uint8(255), + 1029: uint8(252), + 1030: uint8(255), + 1031: uint8(255), + 1040: uint8(252), + 1047: uint8(192), + 1048: uint8(255), + 1049: uint8(223), + 1050: uint8(255), + 1051: uint8(7), + 1062: uint8(128), + 1063: uint8(6), + 1065: uint8(252), + 1075: uint8(192), + 1087: uint8(8), + 1099: uint8(224), + 1100: uint8(255), + 1101: uint8(255), + 1102: uint8(255), + 1103: uint8(31), + 1106: uint8(255), + 1107: uint8(3), + 1120: uint8(1), + 1165: uint8(96), + 1168: uint8(1), + 1171: uint8(24), + 1181: uint8(56), + 1186: uint8(16), + 1190: uint8(112), + 1206: uint8(48), + 1209: uint8(254), + 1210: uint8(127), + 1211: uint8(47), + 1214: uint8(255), + 1215: uint8(3), + 1216: uint8(255), + 1217: uint8(127), + 1255: uint8(14), + 1256: uint8(49), + 1275: uint8(196), + 1276: uint8(255), + 1277: uint8(255), + 1278: uint8(255), + 1279: uint8(255), + 1283: uint8(192), + 1292: uint8(1), + 1294: uint8(224), + 1295: uint8(159), + 1300: uint8(127), + 1301: uint8(63), + 1302: uint8(255), + 1303: uint8(127), + 1318: uint8(16), + 1320: uint8(16), + 1323: uint8(252), + 1324: uint8(255), + 1325: uint8(255), + 1326: uint8(255), + 1327: uint8(31), + 1333: uint8(12), + 1340: uint8(64), + 1342: uint8(12), + 1343: uint8(240), + 1350: uint8(128), + 1351: uint8(248), + 1359: uint8(192), + 1368: uint8(255), + 1370: uint8(255), + 1371: uint8(255), + 1372: uint8(255), + 1373: uint8(33), + 1374: uint8(144), + 1375: uint8(3), + 1400: uint8(255), + 1401: uint8(255), + 1402: uint8(255), + 1403: uint8(255), + 1404: uint8(127), + 1406: uint8(224), + 1407: uint8(251), + 1431: uint8(160), + 1432: uint8(3), + 1433: uint8(224), + 1435: uint8(224), + 1437: uint8(224), + 1439: uint8(96), + 1440: uint8(128), + 1441: uint8(248), + 1442: uint8(255), + 1443: uint8(255), + 1444: uint8(255), + 1445: uint8(252), + 1446: uint8(255), + 1447: uint8(255), + 1448: uint8(255), + 1449: uint8(255), + 1450: uint8(255), + 1451: uint8(127), + 1452: uint8(223), + 1453: uint8(255), + 1454: uint8(241), + 1455: uint8(127), + 1456: uint8(255), + 1457: uint8(127), + 1460: uint8(255), + 1461: uint8(255), + 1462: uint8(255), + 1463: uint8(255), + 1466: uint8(255), + 1467: uint8(255), + 1468: uint8(255), + 1469: uint8(255), + 1470: uint8(1), + 1472: uint8(123), + 1473: uint8(3), + 1474: uint8(208), + 1475: uint8(193), + 1476: uint8(175), + 1477: uint8(66), + 1479: uint8(12), + 1480: uint8(31), + 1481: uint8(188), + 1482: uint8(255), + 1483: uint8(255), + 1489: uint8(14), + 1490: uint8(255), + 1491: uint8(255), + 1492: uint8(255), + 1493: uint8(255), + 1494: uint8(255), + 1495: uint8(255), + 1496: uint8(255), + 1497: uint8(255), + 1498: uint8(255), + 1499: uint8(255), + 1500: uint8(255), + 1501: uint8(255), + 1502: uint8(255), + 1503: uint8(255), + 1504: uint8(255), + 1505: uint8(255), + 1506: uint8(255), + 1507: uint8(255), + 1508: uint8(127), + 1512: uint8(255), + 1513: uint8(7), + 1516: uint8(255), + 1517: uint8(255), + 1518: uint8(255), + 1519: uint8(255), + 1520: uint8(255), + 1521: uint8(255), + 1522: uint8(255), + 1523: uint8(255), + 1524: uint8(255), + 1525: uint8(255), + 1526: uint8(63), + 1533: uint8(252), + 1534: uint8(255), + 1535: uint8(255), + 1536: uint8(255), + 1537: uint8(255), + 1538: uint8(255), + 1539: uint8(255), + 1540: uint8(255), + 1541: uint8(255), + 1542: uint8(255), + 1543: uint8(255), + 1544: uint8(255), + 1545: uint8(255), + 1546: uint8(255), + 1547: uint8(255), + 1548: uint8(255), + 1549: uint8(255), + 1550: uint8(207), + 1551: uint8(255), + 1552: uint8(255), + 1553: uint8(255), + 1554: uint8(63), + 1555: uint8(255), + 1556: uint8(255), + 1557: uint8(255), + 1558: uint8(255), + 1559: uint8(255), + 1560: uint8(255), + 1561: uint8(255), + 1562: uint8(255), + 1563: uint8(255), + 1564: uint8(255), + 1565: uint8(255), + 1566: uint8(255), + 1567: uint8(255), + 1596: uint8(224), + 1597: uint8(135), + 1598: uint8(3), + 1599: uint8(254), + 1614: uint8(1), + 1615: uint8(128), + 1632: uint8(255), + 1633: uint8(255), + 1634: uint8(255), + 1635: uint8(255), + 1636: uint8(255), + 1637: uint8(127), + 1638: uint8(255), + 1639: uint8(255), + 1640: uint8(255), + 1641: uint8(255), + 1648: uint8(255), + 1649: uint8(255), + 1650: uint8(255), + 1651: uint8(251), + 1652: uint8(255), + 1653: uint8(255), + 1654: uint8(255), + 1655: uint8(255), + 1656: uint8(255), + 1657: uint8(255), + 1658: uint8(255), + 1659: uint8(255), + 1660: uint8(255), + 1661: uint8(255), + 1662: uint8(15), + 1664: uint8(255), + 1665: uint8(255), + 1666: uint8(255), + 1667: uint8(255), + 1668: uint8(255), + 1669: uint8(255), + 1670: uint8(255), + 1671: uint8(255), + 1672: uint8(255), + 1673: uint8(255), + 1674: uint8(255), + 1675: uint8(255), + 1676: uint8(255), + 1677: uint8(255), + 1678: uint8(255), + 1679: uint8(255), + 1680: uint8(255), + 1681: uint8(255), + 1682: uint8(255), + 1683: uint8(255), + 1684: uint8(255), + 1685: uint8(255), + 1686: uint8(255), + 1687: uint8(255), + 1688: uint8(255), + 1689: uint8(255), + 1690: uint8(63), + 1694: uint8(255), + 1695: uint8(15), + 1696: uint8(30), + 1697: uint8(255), + 1698: uint8(255), + 1699: uint8(255), + 1700: uint8(1), + 1701: uint8(252), + 1702: uint8(193), + 1703: uint8(224), + 1715: uint8(30), + 1716: uint8(1), + 1727: uint8(8), + 1746: uint8(255), + 1747: uint8(255), + 1752: uint8(255), + 1753: uint8(255), + 1754: uint8(255), + 1755: uint8(255), + 1756: uint8(15), + 1760: uint8(255), + 1761: uint8(255), + 1762: uint8(255), + 1763: uint8(127), + 1764: uint8(255), + 1765: uint8(255), + 1766: uint8(255), + 1767: uint8(255), + 1768: uint8(255), + 1769: uint8(255), + 1770: uint8(255), + 1771: uint8(255), + 1772: uint8(255), + 1773: uint8(255), + 1774: uint8(255), + 1775: uint8(255), + 1776: uint8(255), + 1777: uint8(255), + 1778: uint8(255), + 1779: uint8(255), + 1780: uint8(255), + 1781: uint8(255), + 1782: uint8(255), + 1783: uint8(255), + 1784: uint8(255), + 1785: uint8(255), + 1786: uint8(255), + 1787: uint8(255), + 1788: uint8(255), + 1789: uint8(255), + 1790: uint8(255), + 1791: uint8(255), + 1816: uint8(255), + 1817: uint8(255), + 1818: uint8(255), + 1819: uint8(255), + 1820: uint8(255), + 1821: uint8(255), + 1822: uint8(255), + 1823: uint8(255), + 1842: uint8(255), + 1843: uint8(255), + 1844: uint8(255), + 1845: uint8(255), + 1846: uint8(255), + 1847: uint8(255), + 1848: uint8(127), + 1855: uint8(192), + 1857: uint8(224), + 1869: uint8(128), + 1870: uint8(15), + 1871: uint8(112), + 1886: uint8(255), + 1888: uint8(255), + 1889: uint8(255), + 1890: uint8(127), + 1892: uint8(3), + 1905: uint8(6), + 1920: uint8(64), + 1925: uint8(15), + 1926: uint8(255), + 1927: uint8(3), + 1934: uint8(240), + 1944: uint8(16), + 1945: uint8(192), + 1948: uint8(255), + 1949: uint8(255), + 1950: uint8(3), + 1951: uint8(23), + 1957: uint8(248), + 1962: uint8(8), + 1963: uint8(128), + 1974: uint8(8), + 1976: uint8(255), + 1977: uint8(63), + 1979: uint8(192), + 1995: uint8(240), + 1998: uint8(128), + 1999: uint8(3), + 2007: uint8(128), + 2008: uint8(2), + 2011: uint8(192), + 2014: uint8(67), + 2027: uint8(8), + 2045: uint8(56), + 2048: uint8(1), + 2111: uint8(128), + 2117: uint8(2), + 2134: uint8(252), + 2135: uint8(255), + 2136: uint8(3), + 2151: uint8(192), + 2175: uint8(48), + 2176: uint8(255), + 2177: uint8(255), + 2178: uint8(255), + 2179: uint8(3), + 2180: uint8(255), + 2181: uint8(255), + 2182: uint8(255), + 2183: uint8(255), + 2184: uint8(255), + 2185: uint8(255), + 2186: uint8(247), + 2187: uint8(255), + 2188: uint8(127), + 2189: uint8(15), + 2207: uint8(128), + 2208: uint8(254), + 2209: uint8(255), + 2211: uint8(252), + 2212: uint8(1), + 2215: uint8(248), + 2216: uint8(1), + 2219: uint8(248), + 2220: uint8(63), + 2236: uint8(127), + 2237: uint8(127), + 2239: uint8(48), + 2240: uint8(135), + 2241: uint8(255), + 2242: uint8(255), + 2243: uint8(255), + 2244: uint8(255), + 2245: uint8(255), + 2246: uint8(143), + 2247: uint8(255), + 2254: uint8(224), + 2255: uint8(255), + 2256: uint8(255), + 2257: uint8(127), + 2258: uint8(255), + 2259: uint8(15), + 2260: uint8(1), + 2266: uint8(255), + 2267: uint8(255), + 2268: uint8(255), + 2269: uint8(255), + 2270: uint8(255), + 2271: uint8(63), + 2300: uint8(255), + 2301: uint8(255), + 2302: uint8(255), + 2303: uint8(15), + 2308: uint8(15), + 2323: uint8(128), + 2330: uint8(1), + 2349: uint8(128), + 2378: uint8(128), + 2379: uint8(255), + 2382: uint8(128), + 2383: uint8(255), + 2388: uint8(128), + 2389: uint8(255), + 2399: uint8(248), + 2402: uint8(192), + 2403: uint8(143), + 2407: uint8(128), + 2423: uint8(48), + 2424: uint8(255), + 2425: uint8(255), + 2426: uint8(252), + 2427: uint8(255), + 2428: uint8(255), + 2429: uint8(255), + 2430: uint8(255), + 2431: uint8(255), + 2439: uint8(135), + 2440: uint8(255), + 2441: uint8(1), + 2442: uint8(255), + 2443: uint8(1), + 2447: uint8(224), + 2451: uint8(224), + 2457: uint8(1), + 2460: uint8(96), + 2461: uint8(248), + 2462: uint8(127), + 2471: uint8(254), + 2475: uint8(255), + 2479: uint8(255), + 2483: uint8(30), + 2485: uint8(254), + 2527: uint8(252), + 2540: uint8(255), + 2541: uint8(255), + 2542: uint8(255), + 2543: uint8(127), + 2563: uint8(224), + 2564: uint8(127), + 2568: uint8(192), + 2569: uint8(255), + 2570: uint8(255), + 2571: uint8(3), + 2600: uint8(192), + 2601: uint8(63), + 2602: uint8(252), + 2603: uint8(255), + 2604: uint8(63), + 2607: uint8(128), + 2608: uint8(3), + 2615: uint8(254), + 2616: uint8(3), + 2617: uint8(32), + 2630: uint8(24), + 2632: uint8(15), + 2638: uint8(56), + 2648: uint8(225), + 2649: uint8(63), + 2651: uint8(232), + 2652: uint8(254), + 2653: uint8(255), + 2654: uint8(31), + 2662: uint8(96), + 2663: uint8(63), + 2677: uint8(2), + 2685: uint8(6), + 2695: uint8(24), + 2697: uint8(32), + 2700: uint8(192), + 2701: uint8(31), + 2702: uint8(31), + 2728: uint8(68), + 2729: uint8(248), + 2731: uint8(104), + 2744: uint8(76), + 2775: uint8(128), + 2776: uint8(255), + 2777: uint8(255), + 2778: uint8(255), + 2791: uint8(128), + 2792: uint8(14), + 2796: uint8(255), + 2797: uint8(31), + 2806: uint8(192), + 2821: uint8(8), + 2823: uint8(252), + 2855: uint8(14), + 2877: uint8(252), + 2878: uint8(7), + 2908: uint8(5), + 2918: uint8(24), + 2919: uint8(128), + 2920: uint8(255), + 2931: uint8(223), + 2932: uint8(7), + 2951: uint8(128), + 2952: uint8(62), + 2955: uint8(252), + 2956: uint8(255), + 2957: uint8(31), + 2958: uint8(3), + 2984: uint8(52), + 2994: uint8(128), + 3038: uint8(128), + 3039: uint8(1), + 3064: uint8(255), + 3065: uint8(255), + 3066: uint8(255), + 3067: uint8(255), + 3068: uint8(255), + 3069: uint8(255), + 3070: uint8(3), + 3071: uint8(128), + 3086: uint8(31), + 3110: uint8(255), + 3111: uint8(1), + 3149: uint8(192), + 3166: uint8(63), + 3174: uint8(255), + 3175: uint8(255), + 3176: uint8(48), + 3179: uint8(248), + 3180: uint8(3), + 3216: uint8(255), + 3217: uint8(255), + 3218: uint8(255), + 3219: uint8(7), + 3260: uint8(4), + 3283: uint8(176), + 3284: uint8(15), + 3296: uint8(255), + 3297: uint8(255), + 3298: uint8(255), + 3299: uint8(255), + 3300: uint8(255), + 3301: uint8(255), + 3302: uint8(255), + 3303: uint8(255), + 3304: uint8(255), + 3305: uint8(255), + 3306: uint8(255), + 3307: uint8(255), + 3308: uint8(255), + 3309: uint8(255), + 3310: uint8(255), + 3311: uint8(255), + 3312: uint8(255), + 3313: uint8(255), + 3314: uint8(255), + 3315: uint8(255), + 3316: uint8(255), + 3317: uint8(255), + 3318: uint8(255), + 3319: uint8(255), + 3320: uint8(255), + 3321: uint8(255), + 3322: uint8(255), + 3323: uint8(255), + 3324: uint8(255), + 3325: uint8(255), + 3326: uint8(63), + 3328: uint8(255), + 3329: uint8(255), + 3330: uint8(255), + 3331: uint8(255), + 3332: uint8(127), + 3333: uint8(254), + 3334: uint8(255), + 3335: uint8(255), + 3336: uint8(255), + 3337: uint8(255), + 3338: uint8(255), + 3339: uint8(255), + 3340: uint8(255), + 3341: uint8(255), + 3342: uint8(255), + 3343: uint8(255), + 3344: uint8(255), + 3345: uint8(255), + 3346: uint8(255), + 3347: uint8(255), + 3348: uint8(255), + 3349: uint8(255), + 3350: uint8(255), + 3351: uint8(255), + 3352: uint8(255), + 3353: uint8(255), + 3354: uint8(255), + 3355: uint8(255), + 3356: uint8(255), + 3357: uint8(1), + 3360: uint8(255), + 3361: uint8(255), + 3362: uint8(255), + 3363: uint8(255), + 3364: uint8(255), + 3365: uint8(255), + 3366: uint8(255), + 3367: uint8(255), + 3368: uint8(63), + 3388: uint8(255), + 3389: uint8(255), + 3390: uint8(15), + 3392: uint8(255), + 3393: uint8(255), + 3394: uint8(255), + 3395: uint8(255), + 3396: uint8(255), + 3397: uint8(255), + 3398: uint8(255), + 3399: uint8(255), + 3400: uint8(255), + 3401: uint8(255), + 3402: uint8(127), + 3404: uint8(255), + 3405: uint8(255), + 3406: uint8(255), + 3407: uint8(1), + 3448: uint8(2), + 3451: uint8(8), + 3455: uint8(8), + 3458: uint8(32), + 3462: uint8(32), + 3465: uint8(128), + 3469: uint8(128), + 3473: uint8(2), + 3477: uint8(2), + 3480: uint8(8), + 3488: uint8(255), + 3489: uint8(255), + 3490: uint8(255), + 3491: uint8(255), + 3492: uint8(255), + 3493: uint8(255), + 3494: uint8(255), + 3495: uint8(255), + 3496: uint8(255), + 3497: uint8(255), + 3498: uint8(255), + 3499: uint8(255), + 3500: uint8(255), + 3501: uint8(255), + 3502: uint8(255), + 3503: uint8(255), + 3504: uint8(255), + 3505: uint8(15), + 3507: uint8(248), + 3508: uint8(254), + 3509: uint8(255), + 3526: uint8(127), + 3529: uint8(128), + 3581: uint8(240), + 3583: uint8(128), + 3608: uint8(128), + 3609: uint8(255), + 3610: uint8(127), + 3624: uint8(112), + 3625: uint8(7), + 3627: uint8(192), + 3662: uint8(254), + 3663: uint8(255), + 3664: uint8(255), + 3665: uint8(255), + 3666: uint8(255), + 3667: uint8(255), + 3668: uint8(255), + 3669: uint8(255), + 3670: uint8(31), + 3680: uint8(254), + 3681: uint8(255), + 3682: uint8(255), + 3683: uint8(255), + 3684: uint8(255), + 3685: uint8(255), + 3686: uint8(255), + 3687: uint8(63), + 3742: uint8(3), + 3744: uint8(255), + 3745: uint8(255), + 3746: uint8(255), + 3747: uint8(255), + 3748: uint8(255), + 3749: uint8(15), + 3750: uint8(255), + 3751: uint8(255), + 3752: uint8(255), + 3753: uint8(255), + 3754: uint8(255), + 3755: uint8(255), + 3756: uint8(255), + 3757: uint8(255), + 3758: uint8(255), + 3759: uint8(255), + 3760: uint8(255), + 3761: uint8(255), + 3762: uint8(15), + 3764: uint8(255), + 3765: uint8(127), + 3766: uint8(254), + 3767: uint8(255), + 3768: uint8(254), + 3769: uint8(255), + 3770: uint8(254), + 3771: uint8(255), + 3772: uint8(255), + 3773: uint8(255), + 3774: uint8(63), + 3776: uint8(255), + 3777: uint8(31), + 3778: uint8(255), + 3779: uint8(255), + 3780: uint8(255), + 3781: uint8(255), + 3785: uint8(252), + 3789: uint8(28), + 3793: uint8(252), + 3794: uint8(255), + 3795: uint8(255), + 3796: uint8(255), + 3797: uint8(31), + 3804: uint8(192), + 3805: uint8(255), + 3806: uint8(255), + 3807: uint8(255), + 3808: uint8(7), + 3810: uint8(255), + 3811: uint8(255), + 3812: uint8(255), + 3813: uint8(255), + 3814: uint8(255), + 3815: uint8(15), + 3816: uint8(255), + 3817: uint8(1), + 3818: uint8(3), + 3820: uint8(63), + 3840: uint8(255), + 3841: uint8(255), + 3842: uint8(255), + 3843: uint8(255), + 3844: uint8(255), + 3845: uint8(255), + 3846: uint8(255), + 3847: uint8(255), + 3848: uint8(255), + 3849: uint8(255), + 3850: uint8(255), + 3851: uint8(255), + 3852: uint8(255), + 3853: uint8(255), + 3854: uint8(255), + 3855: uint8(255), + 3856: uint8(255), + 3857: uint8(255), + 3858: uint8(255), + 3859: uint8(255), + 3860: uint8(255), + 3861: uint8(255), + 3862: uint8(255), + 3863: uint8(255), + 3864: uint8(255), + 3865: uint8(255), + 3866: uint8(63), + 3868: uint8(255), + 3869: uint8(31), + 3870: uint8(255), + 3871: uint8(7), + 3872: uint8(255), + 3873: uint8(255), + 3874: uint8(255), + 3875: uint8(255), + 3876: uint8(255), + 3877: uint8(255), + 3878: uint8(255), + 3879: uint8(255), + 3880: uint8(255), + 3881: uint8(255), + 3882: uint8(255), + 3883: uint8(255), + 3884: uint8(255), + 3885: uint8(255), + 3886: uint8(15), + 3888: uint8(255), + 3889: uint8(255), + 3890: uint8(255), + 3891: uint8(255), + 3892: uint8(255), + 3893: uint8(255), + 3894: uint8(255), + 3895: uint8(255), + 3896: uint8(255), + 3897: uint8(255), + 3898: uint8(255), + 3899: uint8(1), + 3900: uint8(255), + 3901: uint8(15), + 3904: uint8(255), + 3905: uint8(15), + 3906: uint8(255), + 3907: uint8(255), + 3908: uint8(255), + 3909: uint8(255), + 3910: uint8(255), + 3911: uint8(255), + 3912: uint8(255), + 3914: uint8(255), + 3915: uint8(3), + 3916: uint8(255), + 3917: uint8(255), + 3918: uint8(255), + 3919: uint8(255), + 3920: uint8(255), + 3922: uint8(255), + 3923: uint8(255), + 3924: uint8(255), + 3925: uint8(63), + 3936: uint8(255), + 3937: uint8(239), + 3938: uint8(255), + 3939: uint8(255), + 3940: uint8(255), + 3941: uint8(255), + 3942: uint8(255), + 3943: uint8(255), + 3944: uint8(255), + 3945: uint8(255), + 3946: uint8(255), + 3947: uint8(255), + 3948: uint8(255), + 3949: uint8(255), + 3950: uint8(123), + 3951: uint8(252), + 3952: uint8(255), + 3953: uint8(255), + 3954: uint8(255), + 3955: uint8(255), + 3956: uint8(231), + 3957: uint8(199), + 3958: uint8(255), + 3959: uint8(255), + 3960: uint8(255), + 3961: uint8(231), + 3962: uint8(255), + 3963: uint8(255), + 3964: uint8(255), + 3965: uint8(255), + 3966: uint8(255), + 3967: uint8(255), + 3968: uint8(255), + 3969: uint8(255), + 3970: uint8(255), + 3971: uint8(255), + 3972: uint8(255), + 3973: uint8(255), + 3974: uint8(255), + 3975: uint8(255), + 3976: uint8(255), + 3977: uint8(255), + 3978: uint8(15), + 3980: uint8(255), + 3981: uint8(63), + 3982: uint8(15), + 3983: uint8(7), + 3984: uint8(7), + 3986: uint8(63), +} + +func Xiswpunct(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + if wc < uint32(0x20000) { + return Int32FromUint8(_table4[Uint32FromInt32(Int32FromUint8(_table4[wc>>int32(8)])*int32(32))+wc&uint32(255)>>int32(3)]) >> (wc & uint32(7)) & int32(1) + } + return 0 +} + +func X__iswpunct_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswpunct(tls, c) +} + +func Xiswpunct_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswpunct_l(tls, c, l) +} + +type Tmbstate_t = struct { + F__opaque1 uint32 + F__opaque2 uint32 +} + +type t__mbstate_t = Tmbstate_t + +/* Our definition of whitespace is the Unicode White_Space property, + * minus non-breaking spaces (U+00A0, U+2007, and U+202F) and script- + * specific characters with non-blank glyphs (U+1680 and U+180E). */ + +func Xiswspace(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(wc != 0 && Xwcschr(tls, uintptr(unsafe.Pointer(&_spaces)), wc) != 0) +} + +var _spaces = [22]Twchar_t{ + 0: uint32(' '), + 1: uint32('\t'), + 2: uint32('\n'), + 3: uint32('\r'), + 4: uint32(11), + 5: uint32(12), + 6: uint32(0x0085), + 7: uint32(0x2000), + 8: uint32(0x2001), + 9: uint32(0x2002), + 10: uint32(0x2003), + 11: uint32(0x2004), + 12: uint32(0x2005), + 13: uint32(0x2006), + 14: uint32(0x2008), + 15: uint32(0x2009), + 16: uint32(0x200a), + 17: uint32(0x2028), + 18: uint32(0x2029), + 19: uint32(0x205f), + 20: uint32(0x3000), +} + +func X__iswspace_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswspace(tls, c) +} + +func Xiswspace_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswspace_l(tls, c, l) +} + +func Xiswupper(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(Xtowlower(tls, wc) != wc) +} + +func X__iswupper_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswupper(tls, c) +} + +func Xiswupper_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswupper_l(tls, c, l) +} + +func Xiswxdigit(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(wc-Uint32FromUint8('0') < uint32(10) || wc|Uint32FromInt32(32)-Uint32FromUint8('a') < uint32(6)) +} + +func X__iswxdigit_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswxdigit(tls, c) +} + +func Xiswxdigit_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswxdigit_l(tls, c, l) +} + +func Xisxdigit(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(BoolInt32(Uint32FromInt32(c)-uint32('0') < uint32(10)) != 0 || Uint32FromInt32(c)|uint32(32)-uint32('a') < uint32(6)) +} + +func X__isxdigit_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xisxdigit(tls, c) +} + +func Xisxdigit_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__isxdigit_l(tls, c, l) +} + +// C documentation +// +// /* nonsense function that should NEVER be used! */ +func Xtoascii(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return c & int32(0x7f) +} + +func Xtolower(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + if BoolInt32(Uint32FromInt32(c)-uint32('A') < uint32(26)) != 0 { + return c | int32(32) + } + return c +} + +func X__tolower_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xtolower(tls, c) +} + +func Xtolower_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__tolower_l(tls, c, l) +} + +func Xtoupper(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + if BoolInt32(Uint32FromInt32(c)-uint32('a') < uint32(26)) != 0 { + return c & int32(0x5f) + } + return c +} + +func X__toupper_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xtoupper(tls, c) +} + +func Xtoupper_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__toupper_l(tls, c, l) +} + +var _tab1 = [2666]uint8{ + 0: uint8(7), + 1: uint8(8), + 2: uint8(9), + 3: uint8(10), + 4: uint8(11), + 5: uint8(12), + 6: uint8(6), + 7: uint8(6), + 8: uint8(6), + 9: uint8(6), + 10: uint8(6), + 11: uint8(6), + 12: uint8(6), + 13: uint8(6), + 14: uint8(6), + 15: uint8(6), + 16: uint8(13), + 17: uint8(6), + 18: uint8(6), + 19: uint8(14), + 20: uint8(6), + 21: uint8(6), + 22: uint8(6), + 23: uint8(6), + 24: uint8(6), + 25: uint8(6), + 26: uint8(6), + 27: uint8(6), + 28: uint8(15), + 29: uint8(16), + 30: uint8(17), + 31: uint8(18), + 32: uint8(6), + 33: uint8(19), + 34: uint8(6), + 35: uint8(6), + 36: uint8(6), + 37: uint8(6), + 38: uint8(6), + 39: uint8(6), + 40: uint8(6), + 41: uint8(6), + 42: uint8(6), + 43: uint8(6), + 44: uint8(20), + 45: uint8(21), + 46: uint8(6), + 47: uint8(6), + 48: uint8(6), + 49: uint8(6), + 50: uint8(6), + 51: uint8(6), + 52: uint8(6), + 53: uint8(6), + 54: uint8(6), + 55: uint8(6), + 56: uint8(6), + 57: uint8(6), + 58: uint8(6), + 59: uint8(6), + 60: uint8(6), + 61: uint8(6), + 62: uint8(6), + 63: uint8(6), + 64: uint8(6), + 65: uint8(6), + 66: uint8(6), + 67: uint8(6), + 68: uint8(6), + 69: uint8(6), + 70: uint8(6), + 71: uint8(6), + 72: uint8(6), + 73: uint8(6), + 74: uint8(6), + 75: uint8(6), + 76: uint8(6), + 77: uint8(6), + 78: uint8(6), + 79: uint8(6), + 80: uint8(6), + 81: uint8(6), + 82: uint8(6), + 83: uint8(6), + 84: uint8(6), + 85: uint8(6), + 86: uint8(6), + 87: uint8(6), + 88: uint8(6), + 89: uint8(6), + 90: uint8(6), + 91: uint8(6), + 92: uint8(6), + 93: uint8(6), + 94: uint8(6), + 95: uint8(6), + 96: uint8(6), + 97: uint8(6), + 98: uint8(6), + 99: uint8(6), + 100: uint8(6), + 101: uint8(6), + 102: uint8(6), + 103: uint8(6), + 104: uint8(6), + 105: uint8(6), + 106: uint8(6), + 107: uint8(6), + 108: uint8(6), + 109: uint8(6), + 110: uint8(6), + 111: uint8(6), + 112: uint8(6), + 113: uint8(6), + 114: uint8(6), + 115: uint8(6), + 116: uint8(6), + 117: uint8(6), + 118: uint8(6), + 119: uint8(6), + 120: uint8(6), + 121: uint8(6), + 122: uint8(6), + 123: uint8(6), + 124: uint8(6), + 125: uint8(6), + 126: uint8(6), + 127: uint8(6), + 128: uint8(6), + 129: uint8(6), + 130: uint8(6), + 131: uint8(6), + 132: uint8(6), + 133: uint8(6), + 134: uint8(6), + 135: uint8(6), + 136: uint8(6), + 137: uint8(6), + 138: uint8(6), + 139: uint8(6), + 140: uint8(6), + 141: uint8(6), + 142: uint8(6), + 143: uint8(6), + 144: uint8(6), + 145: uint8(6), + 146: uint8(6), + 147: uint8(6), + 148: uint8(6), + 149: uint8(6), + 150: uint8(6), + 151: uint8(6), + 152: uint8(6), + 153: uint8(6), + 154: uint8(6), + 155: uint8(6), + 156: uint8(6), + 157: uint8(6), + 158: uint8(6), + 159: uint8(6), + 160: uint8(6), + 161: uint8(6), + 162: uint8(6), + 163: uint8(6), + 164: uint8(6), + 165: uint8(6), + 166: uint8(22), + 167: uint8(23), + 168: uint8(6), + 169: uint8(6), + 170: uint8(6), + 171: uint8(24), + 172: uint8(6), + 173: uint8(6), + 174: uint8(6), + 175: uint8(6), + 176: uint8(6), + 177: uint8(6), + 178: uint8(6), + 179: uint8(6), + 180: uint8(6), + 181: uint8(6), + 182: uint8(6), + 183: uint8(6), + 184: uint8(6), + 185: uint8(6), + 186: uint8(6), + 187: uint8(6), + 188: uint8(6), + 189: uint8(6), + 190: uint8(6), + 191: uint8(6), + 192: uint8(6), + 193: uint8(6), + 194: uint8(6), + 195: uint8(6), + 196: uint8(6), + 197: uint8(6), + 198: uint8(6), + 199: uint8(6), + 200: uint8(6), + 201: uint8(6), + 202: uint8(6), + 203: uint8(6), + 204: uint8(6), + 205: uint8(6), + 206: uint8(6), + 207: uint8(6), + 208: uint8(6), + 209: uint8(6), + 210: uint8(6), + 211: uint8(6), + 212: uint8(6), + 213: uint8(6), + 214: uint8(6), + 215: uint8(6), + 216: uint8(6), + 217: uint8(6), + 218: uint8(6), + 219: uint8(6), + 220: uint8(6), + 221: uint8(6), + 222: uint8(6), + 223: uint8(6), + 224: uint8(6), + 225: uint8(6), + 226: uint8(6), + 227: uint8(6), + 228: uint8(6), + 229: uint8(6), + 230: uint8(6), + 231: uint8(6), + 232: uint8(6), + 233: uint8(6), + 234: uint8(6), + 235: uint8(6), + 236: uint8(6), + 237: uint8(6), + 238: uint8(6), + 239: uint8(6), + 240: uint8(6), + 241: uint8(6), + 242: uint8(6), + 243: uint8(6), + 244: uint8(6), + 245: uint8(6), + 246: uint8(6), + 247: uint8(6), + 248: uint8(6), + 249: uint8(6), + 250: uint8(6), + 251: uint8(6), + 252: uint8(6), + 253: uint8(6), + 254: uint8(6), + 255: uint8(25), + 256: uint8(6), + 257: uint8(6), + 258: uint8(6), + 259: uint8(6), + 260: uint8(26), + 261: uint8(6), + 262: uint8(6), + 263: uint8(6), + 264: uint8(6), + 265: uint8(6), + 266: uint8(6), + 267: uint8(6), + 268: uint8(27), + 269: uint8(6), + 270: uint8(6), + 271: uint8(6), + 272: uint8(6), + 273: uint8(6), + 274: uint8(6), + 275: uint8(6), + 276: uint8(6), + 277: uint8(6), + 278: uint8(6), + 279: uint8(6), + 280: uint8(28), + 281: uint8(6), + 282: uint8(6), + 283: uint8(6), + 284: uint8(6), + 285: uint8(6), + 286: uint8(6), + 287: uint8(6), + 288: uint8(6), + 289: uint8(6), + 290: uint8(6), + 291: uint8(6), + 292: uint8(6), + 293: uint8(6), + 294: uint8(6), + 295: uint8(6), + 296: uint8(6), + 297: uint8(6), + 298: uint8(6), + 299: uint8(6), + 300: uint8(6), + 301: uint8(6), + 302: uint8(6), + 303: uint8(6), + 304: uint8(6), + 305: uint8(6), + 306: uint8(6), + 307: uint8(6), + 308: uint8(6), + 309: uint8(6), + 310: uint8(6), + 311: uint8(6), + 312: uint8(6), + 313: uint8(6), + 314: uint8(6), + 315: uint8(6), + 316: uint8(6), + 317: uint8(6), + 318: uint8(6), + 319: uint8(6), + 320: uint8(6), + 321: uint8(6), + 322: uint8(6), + 323: uint8(6), + 324: uint8(6), + 325: uint8(6), + 326: uint8(6), + 327: uint8(6), + 328: uint8(6), + 329: uint8(6), + 330: uint8(6), + 331: uint8(6), + 332: uint8(6), + 333: uint8(6), + 334: uint8(6), + 335: uint8(6), + 336: uint8(6), + 337: uint8(6), + 338: uint8(6), + 339: uint8(6), + 340: uint8(6), + 341: uint8(6), + 342: uint8(6), + 343: uint8(6), + 344: uint8(6), + 345: uint8(6), + 346: uint8(6), + 347: uint8(6), + 348: uint8(6), + 349: uint8(6), + 350: uint8(6), + 351: uint8(6), + 352: uint8(6), + 353: uint8(6), + 354: uint8(6), + 355: uint8(6), + 356: uint8(6), + 357: uint8(6), + 358: uint8(6), + 359: uint8(6), + 360: uint8(6), + 361: uint8(6), + 362: uint8(6), + 363: uint8(6), + 364: uint8(6), + 365: uint8(6), + 366: uint8(29), + 367: uint8(6), + 368: uint8(6), + 369: uint8(6), + 370: uint8(6), + 371: uint8(6), + 372: uint8(6), + 373: uint8(6), + 374: uint8(6), + 375: uint8(6), + 376: uint8(6), + 377: uint8(6), + 378: uint8(6), + 379: uint8(6), + 380: uint8(6), + 381: uint8(6), + 382: uint8(6), + 383: uint8(6), + 384: uint8(6), + 385: uint8(6), + 386: uint8(6), + 387: uint8(6), + 388: uint8(6), + 389: uint8(6), + 390: uint8(6), + 391: uint8(6), + 392: uint8(6), + 393: uint8(6), + 394: uint8(6), + 395: uint8(6), + 396: uint8(6), + 397: uint8(6), + 398: uint8(6), + 399: uint8(6), + 400: uint8(6), + 401: uint8(6), + 402: uint8(6), + 403: uint8(6), + 404: uint8(6), + 405: uint8(6), + 406: uint8(6), + 407: uint8(6), + 408: uint8(6), + 409: uint8(6), + 410: uint8(6), + 411: uint8(6), + 412: uint8(6), + 413: uint8(6), + 414: uint8(6), + 415: uint8(6), + 416: uint8(6), + 417: uint8(6), + 418: uint8(6), + 419: uint8(6), + 420: uint8(6), + 421: uint8(6), + 422: uint8(6), + 423: uint8(6), + 424: uint8(6), + 425: uint8(6), + 426: uint8(6), + 427: uint8(6), + 428: uint8(6), + 429: uint8(6), + 430: uint8(6), + 431: uint8(6), + 432: uint8(6), + 433: uint8(6), + 434: uint8(6), + 435: uint8(6), + 436: uint8(6), + 437: uint8(6), + 438: uint8(6), + 439: uint8(6), + 440: uint8(6), + 441: uint8(6), + 442: uint8(6), + 443: uint8(6), + 444: uint8(6), + 445: uint8(6), + 446: uint8(6), + 447: uint8(6), + 448: uint8(6), + 449: uint8(6), + 450: uint8(6), + 451: uint8(6), + 452: uint8(6), + 453: uint8(6), + 454: uint8(6), + 455: uint8(6), + 456: uint8(6), + 457: uint8(6), + 458: uint8(6), + 459: uint8(6), + 460: uint8(6), + 461: uint8(6), + 462: uint8(6), + 463: uint8(6), + 464: uint8(6), + 465: uint8(6), + 466: uint8(6), + 467: uint8(6), + 468: uint8(6), + 469: uint8(6), + 470: uint8(6), + 471: uint8(6), + 472: uint8(6), + 473: uint8(6), + 474: uint8(6), + 475: uint8(6), + 476: uint8(6), + 477: uint8(6), + 478: uint8(6), + 479: uint8(6), + 480: uint8(6), + 481: uint8(6), + 482: uint8(6), + 483: uint8(6), + 484: uint8(6), + 485: uint8(6), + 486: uint8(6), + 487: uint8(6), + 488: uint8(6), + 489: uint8(30), + 490: uint8(6), + 491: uint8(6), + 492: uint8(6), + 493: uint8(6), + 494: uint8(6), + 495: uint8(6), + 496: uint8(6), + 497: uint8(6), + 498: uint8(6), + 499: uint8(6), + 500: uint8(6), + 501: uint8(6), + 502: uint8(6), + 503: uint8(6), + 504: uint8(6), + 505: uint8(6), + 506: uint8(6), + 507: uint8(6), + 508: uint8(6), + 509: uint8(6), + 510: uint8(6), + 511: uint8(6), + 623: uint8(36), + 624: uint8(43), + 625: uint8(43), + 626: uint8(43), + 627: uint8(43), + 628: uint8(43), + 629: uint8(43), + 630: uint8(43), + 631: uint8(43), + 632: uint8(1), + 634: uint8(84), + 635: uint8(86), + 636: uint8(86), + 637: uint8(86), + 638: uint8(86), + 639: uint8(86), + 640: uint8(86), + 641: uint8(86), + 642: uint8(86), + 662: uint8(24), + 666: uint8(43), + 667: uint8(43), + 668: uint8(43), + 669: uint8(43), + 670: uint8(43), + 671: uint8(43), + 672: uint8(43), + 673: uint8(7), + 674: uint8(43), + 675: uint8(43), + 676: uint8(91), + 677: uint8(86), + 678: uint8(86), + 679: uint8(86), + 680: uint8(86), + 681: uint8(86), + 682: uint8(86), + 683: uint8(86), + 684: uint8(74), + 685: uint8(86), + 686: uint8(86), + 687: uint8(5), + 688: uint8(49), + 689: uint8(80), + 690: uint8(49), + 691: uint8(80), + 692: uint8(49), + 693: uint8(80), + 694: uint8(49), + 695: uint8(80), + 696: uint8(49), + 697: uint8(80), + 698: uint8(49), + 699: uint8(80), + 700: uint8(49), + 701: uint8(80), + 702: uint8(49), + 703: uint8(80), + 704: uint8(36), + 705: uint8(80), + 706: uint8(121), + 707: uint8(49), + 708: uint8(80), + 709: uint8(49), + 710: uint8(80), + 711: uint8(49), + 712: uint8(56), + 713: uint8(80), + 714: uint8(49), + 715: uint8(80), + 716: uint8(49), + 717: uint8(80), + 718: uint8(49), + 719: uint8(80), + 720: uint8(49), + 721: uint8(80), + 722: uint8(49), + 723: uint8(80), + 724: uint8(49), + 725: uint8(80), + 726: uint8(49), + 727: uint8(80), + 728: uint8(78), + 729: uint8(49), + 730: uint8(2), + 731: uint8(78), + 732: uint8(13), + 733: uint8(13), + 734: uint8(78), + 735: uint8(3), + 736: uint8(78), + 738: uint8(36), + 739: uint8(110), + 741: uint8(78), + 742: uint8(49), + 743: uint8(38), + 744: uint8(110), + 745: uint8(81), + 746: uint8(78), + 747: uint8(36), + 748: uint8(80), + 749: uint8(78), + 750: uint8(57), + 751: uint8(20), + 752: uint8(129), + 753: uint8(27), + 754: uint8(29), + 755: uint8(29), + 756: uint8(83), + 757: uint8(49), + 758: uint8(80), + 759: uint8(49), + 760: uint8(80), + 761: uint8(13), + 762: uint8(49), + 763: uint8(80), + 764: uint8(49), + 765: uint8(80), + 766: uint8(49), + 767: uint8(80), + 768: uint8(27), + 769: uint8(83), + 770: uint8(36), + 771: uint8(80), + 772: uint8(49), + 773: uint8(2), + 774: uint8(92), + 775: uint8(123), + 776: uint8(92), + 777: uint8(123), + 778: uint8(92), + 779: uint8(123), + 780: uint8(92), + 781: uint8(123), + 782: uint8(92), + 783: uint8(123), + 784: uint8(20), + 785: uint8(121), + 786: uint8(92), + 787: uint8(123), + 788: uint8(92), + 789: uint8(123), + 790: uint8(92), + 791: uint8(45), + 792: uint8(43), + 793: uint8(73), + 794: uint8(3), + 795: uint8(72), + 796: uint8(3), + 797: uint8(120), + 798: uint8(92), + 799: uint8(123), + 800: uint8(20), + 802: uint8(150), + 803: uint8(10), + 804: uint8(1), + 805: uint8(43), + 806: uint8(40), + 807: uint8(6), + 808: uint8(6), + 810: uint8(42), + 811: uint8(6), + 812: uint8(42), + 813: uint8(42), + 814: uint8(43), + 815: uint8(7), + 816: uint8(187), + 817: uint8(181), + 818: uint8(43), + 819: uint8(30), + 821: uint8(43), + 822: uint8(7), + 823: uint8(43), + 824: uint8(43), + 825: uint8(43), + 826: uint8(1), + 827: uint8(43), + 828: uint8(43), + 829: uint8(43), + 830: uint8(43), + 831: uint8(43), + 832: uint8(43), + 833: uint8(43), + 834: uint8(43), + 835: uint8(43), + 836: uint8(43), + 837: uint8(43), + 838: uint8(43), + 839: uint8(43), + 840: uint8(43), + 841: uint8(43), + 842: uint8(43), + 843: uint8(43), + 844: uint8(43), + 845: uint8(43), + 846: uint8(43), + 847: uint8(43), + 848: uint8(43), + 849: uint8(43), + 850: uint8(43), + 851: uint8(43), + 852: uint8(43), + 853: uint8(43), + 854: uint8(43), + 855: uint8(43), + 856: uint8(43), + 857: uint8(43), + 858: uint8(43), + 859: uint8(1), + 860: uint8(43), + 861: uint8(43), + 862: uint8(43), + 863: uint8(43), + 864: uint8(43), + 865: uint8(43), + 866: uint8(43), + 867: uint8(43), + 868: uint8(43), + 869: uint8(43), + 870: uint8(43), + 871: uint8(43), + 872: uint8(43), + 873: uint8(43), + 874: uint8(43), + 875: uint8(43), + 876: uint8(43), + 877: uint8(43), + 878: uint8(43), + 879: uint8(43), + 880: uint8(43), + 881: uint8(43), + 882: uint8(43), + 883: uint8(42), + 884: uint8(43), + 885: uint8(43), + 886: uint8(43), + 887: uint8(43), + 888: uint8(43), + 889: uint8(43), + 890: uint8(43), + 891: uint8(43), + 892: uint8(43), + 893: uint8(43), + 894: uint8(43), + 895: uint8(43), + 896: uint8(43), + 897: uint8(205), + 898: uint8(70), + 899: uint8(205), + 900: uint8(43), + 902: uint8(37), + 903: uint8(43), + 904: uint8(7), + 905: uint8(1), + 906: uint8(6), + 907: uint8(1), + 908: uint8(85), + 909: uint8(86), + 910: uint8(86), + 911: uint8(86), + 912: uint8(86), + 913: uint8(86), + 914: uint8(85), + 915: uint8(86), + 916: uint8(86), + 917: uint8(2), + 918: uint8(36), + 919: uint8(129), + 920: uint8(129), + 921: uint8(129), + 922: uint8(129), + 923: uint8(129), + 924: uint8(21), + 925: uint8(129), + 926: uint8(129), + 927: uint8(129), + 930: uint8(43), + 932: uint8(178), + 933: uint8(209), + 934: uint8(178), + 935: uint8(209), + 936: uint8(178), + 937: uint8(209), + 938: uint8(178), + 939: uint8(209), + 942: uint8(205), + 943: uint8(204), + 944: uint8(1), + 946: uint8(215), + 947: uint8(215), + 948: uint8(215), + 949: uint8(215), + 950: uint8(215), + 951: uint8(131), + 952: uint8(129), + 953: uint8(129), + 954: uint8(129), + 955: uint8(129), + 956: uint8(129), + 957: uint8(129), + 958: uint8(129), + 959: uint8(129), + 960: uint8(129), + 961: uint8(129), + 962: uint8(172), + 963: uint8(172), + 964: uint8(172), + 965: uint8(172), + 966: uint8(172), + 967: uint8(172), + 968: uint8(172), + 969: uint8(172), + 970: uint8(172), + 971: uint8(172), + 972: uint8(28), + 978: uint8(49), + 979: uint8(80), + 980: uint8(49), + 981: uint8(80), + 982: uint8(49), + 983: uint8(80), + 984: uint8(49), + 985: uint8(80), + 986: uint8(49), + 987: uint8(80), + 988: uint8(49), + 989: uint8(2), + 992: uint8(49), + 993: uint8(80), + 994: uint8(49), + 995: uint8(80), + 996: uint8(49), + 997: uint8(80), + 998: uint8(49), + 999: uint8(80), + 1000: uint8(49), + 1001: uint8(80), + 1002: uint8(49), + 1003: uint8(80), + 1004: uint8(49), + 1005: uint8(80), + 1006: uint8(49), + 1007: uint8(80), + 1008: uint8(49), + 1009: uint8(80), + 1010: uint8(78), + 1011: uint8(49), + 1012: uint8(80), + 1013: uint8(49), + 1014: uint8(80), + 1015: uint8(78), + 1016: uint8(49), + 1017: uint8(80), + 1018: uint8(49), + 1019: uint8(80), + 1020: uint8(49), + 1021: uint8(80), + 1022: uint8(49), + 1023: uint8(80), + 1024: uint8(49), + 1025: uint8(80), + 1026: uint8(49), + 1027: uint8(80), + 1028: uint8(49), + 1029: uint8(80), + 1030: uint8(49), + 1031: uint8(2), + 1032: uint8(135), + 1033: uint8(166), + 1034: uint8(135), + 1035: uint8(166), + 1036: uint8(135), + 1037: uint8(166), + 1038: uint8(135), + 1039: uint8(166), + 1040: uint8(135), + 1041: uint8(166), + 1042: uint8(135), + 1043: uint8(166), + 1044: uint8(135), + 1045: uint8(166), + 1046: uint8(135), + 1047: uint8(166), + 1048: uint8(42), + 1049: uint8(43), + 1050: uint8(43), + 1051: uint8(43), + 1052: uint8(43), + 1053: uint8(43), + 1054: uint8(43), + 1055: uint8(43), + 1056: uint8(43), + 1057: uint8(43), + 1058: uint8(43), + 1059: uint8(43), + 1060: uint8(43), + 1064: uint8(84), + 1065: uint8(86), + 1066: uint8(86), + 1067: uint8(86), + 1068: uint8(86), + 1069: uint8(86), + 1070: uint8(86), + 1071: uint8(86), + 1072: uint8(86), + 1073: uint8(86), + 1074: uint8(86), + 1075: uint8(86), + 1076: uint8(86), + 1171: uint8(84), + 1172: uint8(86), + 1173: uint8(86), + 1174: uint8(86), + 1175: uint8(86), + 1176: uint8(86), + 1177: uint8(86), + 1178: uint8(86), + 1179: uint8(86), + 1180: uint8(86), + 1181: uint8(86), + 1182: uint8(86), + 1183: uint8(86), + 1184: uint8(12), + 1186: uint8(12), + 1187: uint8(42), + 1188: uint8(43), + 1189: uint8(43), + 1190: uint8(43), + 1191: uint8(43), + 1192: uint8(43), + 1193: uint8(43), + 1194: uint8(43), + 1195: uint8(43), + 1196: uint8(43), + 1197: uint8(43), + 1198: uint8(43), + 1199: uint8(43), + 1200: uint8(43), + 1201: uint8(7), + 1202: uint8(42), + 1203: uint8(1), + 1257: uint8(42), + 1258: uint8(43), + 1259: uint8(43), + 1260: uint8(43), + 1261: uint8(43), + 1262: uint8(43), + 1263: uint8(43), + 1264: uint8(43), + 1265: uint8(43), + 1266: uint8(43), + 1267: uint8(43), + 1268: uint8(43), + 1269: uint8(43), + 1270: uint8(43), + 1271: uint8(43), + 1272: uint8(43), + 1273: uint8(43), + 1274: uint8(43), + 1275: uint8(43), + 1276: uint8(43), + 1277: uint8(43), + 1278: uint8(43), + 1279: uint8(43), + 1280: uint8(43), + 1281: uint8(43), + 1282: uint8(43), + 1283: uint8(43), + 1284: uint8(86), + 1285: uint8(86), + 1286: uint8(108), + 1287: uint8(129), + 1288: uint8(21), + 1290: uint8(43), + 1291: uint8(43), + 1292: uint8(43), + 1293: uint8(43), + 1294: uint8(43), + 1295: uint8(43), + 1296: uint8(43), + 1297: uint8(43), + 1298: uint8(43), + 1299: uint8(43), + 1300: uint8(43), + 1301: uint8(43), + 1302: uint8(43), + 1303: uint8(43), + 1304: uint8(43), + 1305: uint8(43), + 1306: uint8(43), + 1307: uint8(43), + 1308: uint8(43), + 1309: uint8(43), + 1310: uint8(43), + 1311: uint8(43), + 1312: uint8(43), + 1313: uint8(43), + 1314: uint8(43), + 1315: uint8(43), + 1316: uint8(43), + 1317: uint8(43), + 1318: uint8(43), + 1319: uint8(43), + 1320: uint8(43), + 1321: uint8(43), + 1322: uint8(43), + 1323: uint8(43), + 1324: uint8(43), + 1325: uint8(43), + 1326: uint8(43), + 1327: uint8(43), + 1328: uint8(43), + 1329: uint8(43), + 1330: uint8(43), + 1331: uint8(43), + 1332: uint8(7), + 1333: uint8(108), + 1334: uint8(3), + 1335: uint8(65), + 1336: uint8(43), + 1337: uint8(43), + 1338: uint8(86), + 1339: uint8(86), + 1340: uint8(86), + 1341: uint8(86), + 1342: uint8(86), + 1343: uint8(86), + 1344: uint8(86), + 1345: uint8(86), + 1346: uint8(86), + 1347: uint8(86), + 1348: uint8(86), + 1349: uint8(86), + 1350: uint8(86), + 1351: uint8(86), + 1352: uint8(44), + 1353: uint8(86), + 1354: uint8(43), + 1355: uint8(43), + 1356: uint8(43), + 1357: uint8(43), + 1358: uint8(43), + 1359: uint8(43), + 1360: uint8(43), + 1361: uint8(43), + 1362: uint8(43), + 1363: uint8(43), + 1364: uint8(43), + 1365: uint8(43), + 1366: uint8(43), + 1367: uint8(43), + 1368: uint8(43), + 1369: uint8(43), + 1370: uint8(43), + 1371: uint8(43), + 1372: uint8(43), + 1373: uint8(43), + 1374: uint8(43), + 1375: uint8(1), + 1416: uint8(12), + 1417: uint8(108), + 1423: uint8(6), + 1462: uint8(6), + 1463: uint8(37), + 1464: uint8(6), + 1465: uint8(37), + 1466: uint8(6), + 1467: uint8(37), + 1468: uint8(6), + 1469: uint8(37), + 1470: uint8(6), + 1471: uint8(37), + 1472: uint8(6), + 1473: uint8(37), + 1474: uint8(6), + 1475: uint8(37), + 1476: uint8(6), + 1477: uint8(37), + 1478: uint8(6), + 1479: uint8(37), + 1480: uint8(6), + 1481: uint8(37), + 1482: uint8(6), + 1483: uint8(37), + 1484: uint8(6), + 1485: uint8(37), + 1486: uint8(6), + 1487: uint8(37), + 1488: uint8(6), + 1489: uint8(37), + 1490: uint8(6), + 1491: uint8(37), + 1492: uint8(6), + 1493: uint8(37), + 1494: uint8(6), + 1495: uint8(37), + 1496: uint8(6), + 1497: uint8(37), + 1498: uint8(6), + 1499: uint8(37), + 1500: uint8(6), + 1501: uint8(37), + 1502: uint8(6), + 1503: uint8(37), + 1504: uint8(6), + 1505: uint8(37), + 1506: uint8(6), + 1507: uint8(37), + 1508: uint8(6), + 1509: uint8(37), + 1510: uint8(6), + 1511: uint8(37), + 1512: uint8(86), + 1513: uint8(122), + 1514: uint8(158), + 1515: uint8(38), + 1516: uint8(6), + 1517: uint8(37), + 1518: uint8(6), + 1519: uint8(37), + 1520: uint8(6), + 1521: uint8(37), + 1522: uint8(6), + 1523: uint8(37), + 1524: uint8(6), + 1525: uint8(37), + 1526: uint8(6), + 1527: uint8(37), + 1528: uint8(6), + 1529: uint8(37), + 1530: uint8(6), + 1531: uint8(37), + 1532: uint8(6), + 1533: uint8(37), + 1534: uint8(6), + 1535: uint8(37), + 1536: uint8(6), + 1537: uint8(37), + 1538: uint8(6), + 1539: uint8(37), + 1540: uint8(6), + 1541: uint8(37), + 1542: uint8(6), + 1543: uint8(37), + 1544: uint8(6), + 1545: uint8(37), + 1546: uint8(6), + 1547: uint8(1), + 1548: uint8(43), + 1549: uint8(43), + 1550: uint8(79), + 1551: uint8(86), + 1552: uint8(86), + 1553: uint8(44), + 1554: uint8(43), + 1555: uint8(127), + 1556: uint8(86), + 1557: uint8(86), + 1558: uint8(57), + 1559: uint8(43), + 1560: uint8(43), + 1561: uint8(85), + 1562: uint8(86), + 1563: uint8(86), + 1564: uint8(43), + 1565: uint8(43), + 1566: uint8(79), + 1567: uint8(86), + 1568: uint8(86), + 1569: uint8(44), + 1570: uint8(43), + 1571: uint8(127), + 1572: uint8(86), + 1573: uint8(86), + 1574: uint8(129), + 1575: uint8(55), + 1576: uint8(117), + 1577: uint8(91), + 1578: uint8(123), + 1579: uint8(92), + 1580: uint8(43), + 1581: uint8(43), + 1582: uint8(79), + 1583: uint8(86), + 1584: uint8(86), + 1585: uint8(2), + 1586: uint8(172), + 1587: uint8(4), + 1590: uint8(57), + 1591: uint8(43), + 1592: uint8(43), + 1593: uint8(85), + 1594: uint8(86), + 1595: uint8(86), + 1596: uint8(43), + 1597: uint8(43), + 1598: uint8(79), + 1599: uint8(86), + 1600: uint8(86), + 1601: uint8(44), + 1602: uint8(43), + 1603: uint8(43), + 1604: uint8(86), + 1605: uint8(86), + 1606: uint8(50), + 1607: uint8(19), + 1608: uint8(129), + 1609: uint8(87), + 1611: uint8(111), + 1612: uint8(129), + 1613: uint8(126), + 1614: uint8(201), + 1615: uint8(215), + 1616: uint8(126), + 1617: uint8(45), + 1618: uint8(129), + 1619: uint8(129), + 1620: uint8(14), + 1621: uint8(126), + 1622: uint8(57), + 1623: uint8(127), + 1624: uint8(111), + 1625: uint8(87), + 1627: uint8(129), + 1628: uint8(129), + 1629: uint8(126), + 1630: uint8(21), + 1632: uint8(126), + 1633: uint8(3), + 1634: uint8(43), + 1635: uint8(43), + 1636: uint8(43), + 1637: uint8(43), + 1638: uint8(43), + 1639: uint8(43), + 1640: uint8(43), + 1641: uint8(43), + 1642: uint8(43), + 1643: uint8(43), + 1644: uint8(43), + 1645: uint8(43), + 1646: uint8(7), + 1647: uint8(43), + 1648: uint8(36), + 1649: uint8(43), + 1650: uint8(151), + 1651: uint8(43), + 1652: uint8(43), + 1653: uint8(43), + 1654: uint8(43), + 1655: uint8(43), + 1656: uint8(43), + 1657: uint8(43), + 1658: uint8(43), + 1659: uint8(43), + 1660: uint8(42), + 1661: uint8(43), + 1662: uint8(43), + 1663: uint8(43), + 1664: uint8(43), + 1665: uint8(43), + 1666: uint8(86), + 1667: uint8(86), + 1668: uint8(86), + 1669: uint8(86), + 1670: uint8(86), + 1671: uint8(128), + 1672: uint8(129), + 1673: uint8(129), + 1674: uint8(129), + 1675: uint8(129), + 1676: uint8(57), + 1677: uint8(187), + 1678: uint8(42), + 1679: uint8(43), + 1680: uint8(43), + 1681: uint8(43), + 1682: uint8(43), + 1683: uint8(43), + 1684: uint8(43), + 1685: uint8(43), + 1686: uint8(43), + 1687: uint8(43), + 1688: uint8(43), + 1689: uint8(43), + 1690: uint8(43), + 1691: uint8(43), + 1692: uint8(43), + 1693: uint8(43), + 1694: uint8(43), + 1695: uint8(43), + 1696: uint8(43), + 1697: uint8(43), + 1698: uint8(43), + 1699: uint8(43), + 1700: uint8(43), + 1701: uint8(43), + 1702: uint8(43), + 1703: uint8(43), + 1704: uint8(43), + 1705: uint8(43), + 1706: uint8(43), + 1707: uint8(43), + 1708: uint8(43), + 1709: uint8(43), + 1710: uint8(43), + 1711: uint8(43), + 1712: uint8(43), + 1713: uint8(43), + 1714: uint8(43), + 1715: uint8(43), + 1716: uint8(43), + 1717: uint8(43), + 1718: uint8(43), + 1719: uint8(1), + 1720: uint8(129), + 1721: uint8(129), + 1722: uint8(129), + 1723: uint8(129), + 1724: uint8(129), + 1725: uint8(129), + 1726: uint8(129), + 1727: uint8(129), + 1728: uint8(129), + 1729: uint8(129), + 1730: uint8(129), + 1731: uint8(129), + 1732: uint8(129), + 1733: uint8(129), + 1734: uint8(129), + 1735: uint8(201), + 1736: uint8(172), + 1737: uint8(172), + 1738: uint8(172), + 1739: uint8(172), + 1740: uint8(172), + 1741: uint8(172), + 1742: uint8(172), + 1743: uint8(172), + 1744: uint8(172), + 1745: uint8(172), + 1746: uint8(172), + 1747: uint8(172), + 1748: uint8(172), + 1749: uint8(172), + 1750: uint8(172), + 1751: uint8(208), + 1752: uint8(13), + 1754: uint8(78), + 1755: uint8(49), + 1756: uint8(2), + 1757: uint8(180), + 1758: uint8(193), + 1759: uint8(193), + 1760: uint8(215), + 1761: uint8(215), + 1762: uint8(36), + 1763: uint8(80), + 1764: uint8(49), + 1765: uint8(80), + 1766: uint8(49), + 1767: uint8(80), + 1768: uint8(49), + 1769: uint8(80), + 1770: uint8(49), + 1771: uint8(80), + 1772: uint8(49), + 1773: uint8(80), + 1774: uint8(49), + 1775: uint8(80), + 1776: uint8(49), + 1777: uint8(80), + 1778: uint8(49), + 1779: uint8(80), + 1780: uint8(49), + 1781: uint8(80), + 1782: uint8(49), + 1783: uint8(80), + 1784: uint8(49), + 1785: uint8(80), + 1786: uint8(49), + 1787: uint8(80), + 1788: uint8(49), + 1789: uint8(80), + 1790: uint8(49), + 1791: uint8(80), + 1792: uint8(49), + 1793: uint8(80), + 1794: uint8(49), + 1795: uint8(80), + 1796: uint8(215), + 1797: uint8(215), + 1798: uint8(83), + 1799: uint8(193), + 1800: uint8(71), + 1801: uint8(212), + 1802: uint8(215), + 1803: uint8(215), + 1804: uint8(215), + 1805: uint8(5), + 1806: uint8(43), + 1807: uint8(43), + 1808: uint8(43), + 1809: uint8(43), + 1810: uint8(43), + 1811: uint8(43), + 1812: uint8(43), + 1813: uint8(43), + 1814: uint8(43), + 1815: uint8(43), + 1816: uint8(43), + 1817: uint8(43), + 1818: uint8(7), + 1819: uint8(1), + 1821: uint8(1), + 1913: uint8(78), + 1914: uint8(49), + 1915: uint8(80), + 1916: uint8(49), + 1917: uint8(80), + 1918: uint8(49), + 1919: uint8(80), + 1920: uint8(49), + 1921: uint8(80), + 1922: uint8(49), + 1923: uint8(80), + 1924: uint8(49), + 1925: uint8(80), + 1926: uint8(49), + 1927: uint8(80), + 1928: uint8(13), + 1934: uint8(36), + 1935: uint8(80), + 1936: uint8(49), + 1937: uint8(80), + 1938: uint8(49), + 1939: uint8(80), + 1940: uint8(49), + 1941: uint8(80), + 1942: uint8(49), + 1943: uint8(80), + 1978: uint8(43), + 1979: uint8(43), + 1980: uint8(43), + 1981: uint8(43), + 1982: uint8(43), + 1983: uint8(43), + 1984: uint8(43), + 1985: uint8(43), + 1986: uint8(43), + 1987: uint8(43), + 1988: uint8(43), + 1989: uint8(121), + 1990: uint8(92), + 1991: uint8(123), + 1992: uint8(92), + 1993: uint8(123), + 1994: uint8(79), + 1995: uint8(123), + 1996: uint8(92), + 1997: uint8(123), + 1998: uint8(92), + 1999: uint8(123), + 2000: uint8(92), + 2001: uint8(123), + 2002: uint8(92), + 2003: uint8(123), + 2004: uint8(92), + 2005: uint8(123), + 2006: uint8(92), + 2007: uint8(123), + 2008: uint8(92), + 2009: uint8(123), + 2010: uint8(92), + 2011: uint8(123), + 2012: uint8(92), + 2013: uint8(123), + 2014: uint8(92), + 2015: uint8(45), + 2016: uint8(43), + 2017: uint8(43), + 2018: uint8(121), + 2019: uint8(20), + 2020: uint8(92), + 2021: uint8(123), + 2022: uint8(92), + 2023: uint8(45), + 2024: uint8(121), + 2025: uint8(42), + 2026: uint8(92), + 2027: uint8(39), + 2028: uint8(92), + 2029: uint8(123), + 2030: uint8(92), + 2031: uint8(123), + 2032: uint8(92), + 2033: uint8(123), + 2034: uint8(164), + 2036: uint8(10), + 2037: uint8(180), + 2038: uint8(92), + 2039: uint8(123), + 2040: uint8(92), + 2041: uint8(123), + 2042: uint8(79), + 2043: uint8(3), + 2044: uint8(42), + 2045: uint8(43), + 2046: uint8(43), + 2047: uint8(43), + 2048: uint8(43), + 2049: uint8(43), + 2050: uint8(43), + 2051: uint8(43), + 2052: uint8(43), + 2053: uint8(43), + 2054: uint8(43), + 2055: uint8(43), + 2056: uint8(43), + 2057: uint8(43), + 2058: uint8(43), + 2059: uint8(43), + 2060: uint8(43), + 2061: uint8(43), + 2062: uint8(43), + 2063: uint8(1), + 2091: uint8(72), + 2101: uint8(42), + 2102: uint8(43), + 2103: uint8(43), + 2104: uint8(43), + 2105: uint8(43), + 2106: uint8(43), + 2107: uint8(43), + 2108: uint8(43), + 2109: uint8(43), + 2110: uint8(43), + 2111: uint8(43), + 2112: uint8(43), + 2113: uint8(43), + 2114: uint8(43), + 2115: uint8(43), + 2116: uint8(43), + 2117: uint8(43), + 2118: uint8(43), + 2119: uint8(43), + 2120: uint8(43), + 2121: uint8(43), + 2122: uint8(43), + 2123: uint8(43), + 2124: uint8(43), + 2125: uint8(43), + 2126: uint8(43), + 2127: uint8(43), + 2161: uint8(43), + 2162: uint8(43), + 2163: uint8(43), + 2164: uint8(43), + 2165: uint8(43), + 2166: uint8(43), + 2167: uint8(43), + 2168: uint8(43), + 2169: uint8(7), + 2171: uint8(72), + 2172: uint8(86), + 2173: uint8(86), + 2174: uint8(86), + 2175: uint8(86), + 2176: uint8(86), + 2177: uint8(86), + 2178: uint8(86), + 2179: uint8(86), + 2180: uint8(2), + 2236: uint8(43), + 2237: uint8(43), + 2238: uint8(43), + 2239: uint8(43), + 2240: uint8(43), + 2241: uint8(43), + 2242: uint8(43), + 2243: uint8(43), + 2244: uint8(43), + 2245: uint8(43), + 2246: uint8(43), + 2247: uint8(43), + 2248: uint8(43), + 2249: uint8(85), + 2250: uint8(86), + 2251: uint8(86), + 2252: uint8(86), + 2253: uint8(86), + 2254: uint8(86), + 2255: uint8(86), + 2256: uint8(86), + 2257: uint8(86), + 2258: uint8(86), + 2259: uint8(86), + 2260: uint8(86), + 2261: uint8(86), + 2262: uint8(14), + 2294: uint8(36), + 2295: uint8(43), + 2296: uint8(43), + 2297: uint8(43), + 2298: uint8(43), + 2299: uint8(43), + 2300: uint8(43), + 2301: uint8(43), + 2302: uint8(43), + 2303: uint8(43), + 2304: uint8(43), + 2305: uint8(43), + 2306: uint8(7), + 2308: uint8(86), + 2309: uint8(86), + 2310: uint8(86), + 2311: uint8(86), + 2312: uint8(86), + 2313: uint8(86), + 2314: uint8(86), + 2315: uint8(86), + 2316: uint8(86), + 2317: uint8(86), + 2318: uint8(86), + 2319: uint8(86), + 2364: uint8(36), + 2365: uint8(43), + 2366: uint8(43), + 2367: uint8(43), + 2368: uint8(43), + 2369: uint8(43), + 2370: uint8(43), + 2371: uint8(43), + 2372: uint8(43), + 2373: uint8(43), + 2374: uint8(43), + 2375: uint8(43), + 2376: uint8(43), + 2377: uint8(43), + 2378: uint8(43), + 2379: uint8(43), + 2380: uint8(43), + 2381: uint8(7), + 2386: uint8(86), + 2387: uint8(86), + 2388: uint8(86), + 2389: uint8(86), + 2390: uint8(86), + 2391: uint8(86), + 2392: uint8(86), + 2393: uint8(86), + 2394: uint8(86), + 2395: uint8(86), + 2396: uint8(86), + 2397: uint8(86), + 2398: uint8(86), + 2399: uint8(86), + 2400: uint8(86), + 2401: uint8(86), + 2402: uint8(86), + 2461: uint8(42), + 2462: uint8(43), + 2463: uint8(43), + 2464: uint8(43), + 2465: uint8(43), + 2466: uint8(43), + 2467: uint8(43), + 2468: uint8(43), + 2469: uint8(43), + 2470: uint8(43), + 2471: uint8(43), + 2472: uint8(86), + 2473: uint8(86), + 2474: uint8(86), + 2475: uint8(86), + 2476: uint8(86), + 2477: uint8(86), + 2478: uint8(86), + 2479: uint8(86), + 2480: uint8(86), + 2481: uint8(86), + 2482: uint8(14), + 2515: uint8(42), + 2516: uint8(43), + 2517: uint8(43), + 2518: uint8(43), + 2519: uint8(43), + 2520: uint8(43), + 2521: uint8(43), + 2522: uint8(43), + 2523: uint8(43), + 2524: uint8(43), + 2525: uint8(43), + 2526: uint8(86), + 2527: uint8(86), + 2528: uint8(86), + 2529: uint8(86), + 2530: uint8(86), + 2531: uint8(86), + 2532: uint8(86), + 2533: uint8(86), + 2534: uint8(86), + 2535: uint8(86), + 2536: uint8(14), + 2580: uint8(43), + 2581: uint8(43), + 2582: uint8(43), + 2583: uint8(43), + 2584: uint8(43), + 2585: uint8(43), + 2586: uint8(43), + 2587: uint8(43), + 2588: uint8(43), + 2589: uint8(43), + 2590: uint8(43), + 2591: uint8(85), + 2592: uint8(86), + 2593: uint8(86), + 2594: uint8(86), + 2595: uint8(86), + 2596: uint8(86), + 2597: uint8(86), + 2598: uint8(86), + 2599: uint8(86), + 2600: uint8(86), + 2601: uint8(86), + 2602: uint8(14), +} +var _rules = [240]int32{ + 1: int32(0x2001), + 2: -int32(0x2000), + 3: int32(0x1dbf00), + 4: int32(0x2e700), + 5: int32(0x7900), + 6: int32(0x2402), + 7: int32(0x101), + 8: -int32(0x100), + 10: int32(0x201), + 11: -int32(0x200), + 12: -int32(0xc6ff), + 13: -int32(0xe800), + 14: -int32(0x78ff), + 15: -int32(0x12c00), + 16: int32(0xc300), + 17: int32(0xd201), + 18: int32(0xce01), + 19: int32(0xcd01), + 20: int32(0x4f01), + 21: int32(0xca01), + 22: int32(0xcb01), + 23: int32(0xcf01), + 24: int32(0x6100), + 25: int32(0xd301), + 26: int32(0xd101), + 27: int32(0xa300), + 28: int32(0xd501), + 29: int32(0x8200), + 30: int32(0xd601), + 31: int32(0xda01), + 32: int32(0xd901), + 33: int32(0xdb01), + 34: int32(0x3800), + 35: int32(0x3), + 36: -int32(0x4f00), + 37: -int32(0x60ff), + 38: -int32(0x37ff), + 39: int32(0x242802), + 41: int32(0x101), + 42: -int32(0x100), + 43: -int32(0xcd00), + 44: -int32(0xda00), + 45: -int32(0x81ff), + 46: int32(0x2a2b01), + 47: -int32(0xa2ff), + 48: int32(0x2a2801), + 49: int32(0x2a3f00), + 50: -int32(0xc2ff), + 51: int32(0x4501), + 52: int32(0x4701), + 53: int32(0x2a1f00), + 54: int32(0x2a1c00), + 55: int32(0x2a1e00), + 56: -int32(0xd200), + 57: -int32(0xce00), + 58: -int32(0xca00), + 59: -int32(0xcb00), + 60: int32(0xa54f00), + 61: int32(0xa54b00), + 62: -int32(0xcf00), + 63: int32(0xa52800), + 64: int32(0xa54400), + 65: -int32(0xd100), + 66: -int32(0xd300), + 67: int32(0x29f700), + 68: int32(0xa54100), + 69: int32(0x29fd00), + 70: -int32(0xd500), + 71: -int32(0xd600), + 72: int32(0x29e700), + 73: int32(0xa54300), + 74: int32(0xa52a00), + 75: -int32(0x4500), + 76: -int32(0xd900), + 77: -int32(0x4700), + 78: -int32(0xdb00), + 79: int32(0xa51500), + 80: int32(0xa51200), + 81: int32(0x4c2402), + 83: int32(0x2001), + 84: -int32(0x2000), + 85: int32(0x101), + 86: -int32(0x100), + 87: int32(0x5400), + 88: int32(0x7401), + 89: int32(0x2601), + 90: int32(0x2501), + 91: int32(0x4001), + 92: int32(0x3f01), + 93: -int32(0x2600), + 94: -int32(0x2500), + 95: -int32(0x1f00), + 96: -int32(0x4000), + 97: -int32(0x3f00), + 98: int32(0x801), + 99: -int32(0x3e00), + 100: -int32(0x3900), + 101: -int32(0x2f00), + 102: -int32(0x3600), + 103: -int32(0x800), + 104: -int32(0x5600), + 105: -int32(0x5000), + 106: int32(0x700), + 107: -int32(0x7400), + 108: -int32(0x3bff), + 109: -int32(0x6000), + 110: -int32(0x6ff), + 111: int32(0x701a02), + 112: int32(0x101), + 113: -int32(0x100), + 114: int32(0x2001), + 115: -int32(0x2000), + 116: int32(0x5001), + 117: int32(0xf01), + 118: -int32(0xf00), + 120: int32(0x3001), + 121: -int32(0x3000), + 122: int32(0x101), + 123: -int32(0x100), + 125: int32(0xbc000), + 126: int32(0x1c6001), + 128: int32(0x97d001), + 129: int32(0x801), + 130: -int32(0x800), + 131: int32(0x8a0502), + 133: -int32(0xbbfff), + 134: -int32(0x186200), + 135: int32(0x89c200), + 136: -int32(0x182500), + 137: -int32(0x186e00), + 138: -int32(0x186d00), + 139: -int32(0x186400), + 140: -int32(0x186300), + 141: -int32(0x185c00), + 143: int32(0x8a3800), + 144: int32(0x8a0400), + 145: int32(0xee600), + 146: int32(0x101), + 147: -int32(0x100), + 149: -int32(0x3b00), + 150: -int32(0x1dbeff), + 151: int32(0x8f1d02), + 152: int32(0x800), + 153: -int32(0x7ff), + 155: int32(0x5600), + 156: -int32(0x55ff), + 157: int32(0x4a00), + 158: int32(0x6400), + 159: int32(0x8000), + 160: int32(0x7000), + 161: int32(0x7e00), + 162: int32(0x900), + 163: -int32(0x49ff), + 164: -int32(0x8ff), + 165: -int32(0x1c2500), + 166: -int32(0x63ff), + 167: -int32(0x6fff), + 168: -int32(0x7fff), + 169: -int32(0x7dff), + 170: int32(0xac0502), + 172: int32(0x1001), + 173: -int32(0x1000), + 174: int32(0x1c01), + 175: int32(0x101), + 176: -int32(0x1d5cff), + 177: -int32(0x20beff), + 178: -int32(0x2045ff), + 179: -int32(0x1c00), + 180: int32(0xb10b02), + 181: int32(0x101), + 182: -int32(0x100), + 183: int32(0x3001), + 184: -int32(0x3000), + 186: -int32(0x29f6ff), + 187: -int32(0xee5ff), + 188: -int32(0x29e6ff), + 189: -int32(0x2a2b00), + 190: -int32(0x2a2800), + 191: -int32(0x2a1bff), + 192: -int32(0x29fcff), + 193: -int32(0x2a1eff), + 194: -int32(0x2a1dff), + 195: -int32(0x2a3eff), + 197: -int32(0x1c6000), + 199: int32(0x101), + 200: -int32(0x100), + 201: int32(0xbc0c02), + 203: int32(0x101), + 204: -int32(0x100), + 205: -int32(0xa543ff), + 206: int32(0x3a001), + 207: -int32(0x8a03ff), + 208: -int32(0xa527ff), + 209: int32(0x3000), + 210: -int32(0xa54eff), + 211: -int32(0xa54aff), + 212: -int32(0xa540ff), + 213: -int32(0xa511ff), + 214: -int32(0xa529ff), + 215: -int32(0xa514ff), + 216: -int32(0x2fff), + 217: -int32(0xa542ff), + 218: -int32(0x8a37ff), + 220: -int32(0x97d000), + 221: -int32(0x3a000), + 223: int32(0x2001), + 224: -int32(0x2000), + 226: int32(0x2801), + 227: -int32(0x2800), + 229: int32(0x4001), + 230: -int32(0x4000), + 232: int32(0x2001), + 233: -int32(0x2000), + 235: int32(0x2001), + 236: -int32(0x2000), + 238: int32(0x2201), + 239: -int32(0x2200), +} +var _rulebases = [512]uint8{ + 1: uint8(6), + 2: uint8(39), + 3: uint8(81), + 4: uint8(111), + 5: uint8(119), + 16: uint8(124), + 19: uint8(127), + 28: uint8(131), + 29: uint8(142), + 30: uint8(146), + 31: uint8(151), + 33: uint8(170), + 44: uint8(180), + 45: uint8(196), + 166: uint8(198), + 167: uint8(201), + 171: uint8(219), + 255: uint8(222), + 260: uint8(225), + 268: uint8(228), + 280: uint8(231), + 366: uint8(234), + 489: uint8(237), +} +var _exceptions = [200][2]uint8{ + 0: { + 0: uint8(48), + 1: uint8(12), + }, + 1: { + 0: uint8(49), + 1: uint8(13), + }, + 2: { + 0: uint8(120), + 1: uint8(14), + }, + 3: { + 0: uint8(127), + 1: uint8(15), + }, + 4: { + 0: uint8(128), + 1: uint8(16), + }, + 5: { + 0: uint8(129), + 1: uint8(17), + }, + 6: { + 0: uint8(134), + 1: uint8(18), + }, + 7: { + 0: uint8(137), + 1: uint8(19), + }, + 8: { + 0: uint8(138), + 1: uint8(19), + }, + 9: { + 0: uint8(142), + 1: uint8(20), + }, + 10: { + 0: uint8(143), + 1: uint8(21), + }, + 11: { + 0: uint8(144), + 1: uint8(22), + }, + 12: { + 0: uint8(147), + 1: uint8(19), + }, + 13: { + 0: uint8(148), + 1: uint8(23), + }, + 14: { + 0: uint8(149), + 1: uint8(24), + }, + 15: { + 0: uint8(150), + 1: uint8(25), + }, + 16: { + 0: uint8(151), + 1: uint8(26), + }, + 17: { + 0: uint8(154), + 1: uint8(27), + }, + 18: { + 0: uint8(156), + 1: uint8(25), + }, + 19: { + 0: uint8(157), + 1: uint8(28), + }, + 20: { + 0: uint8(158), + 1: uint8(29), + }, + 21: { + 0: uint8(159), + 1: uint8(30), + }, + 22: { + 0: uint8(166), + 1: uint8(31), + }, + 23: { + 0: uint8(169), + 1: uint8(31), + }, + 24: { + 0: uint8(174), + 1: uint8(31), + }, + 25: { + 0: uint8(177), + 1: uint8(32), + }, + 26: { + 0: uint8(178), + 1: uint8(32), + }, + 27: { + 0: uint8(183), + 1: uint8(33), + }, + 28: { + 0: uint8(191), + 1: uint8(34), + }, + 29: { + 0: uint8(197), + 1: uint8(35), + }, + 30: { + 0: uint8(200), + 1: uint8(35), + }, + 31: { + 0: uint8(203), + 1: uint8(35), + }, + 32: { + 0: uint8(221), + 1: uint8(36), + }, + 33: { + 0: uint8(242), + 1: uint8(35), + }, + 34: { + 0: uint8(246), + 1: uint8(37), + }, + 35: { + 0: uint8(247), + 1: uint8(38), + }, + 36: { + 0: uint8(32), + 1: uint8(45), + }, + 37: { + 0: uint8(58), + 1: uint8(46), + }, + 38: { + 0: uint8(61), + 1: uint8(47), + }, + 39: { + 0: uint8(62), + 1: uint8(48), + }, + 40: { + 0: uint8(63), + 1: uint8(49), + }, + 41: { + 0: uint8(64), + 1: uint8(49), + }, + 42: { + 0: uint8(67), + 1: uint8(50), + }, + 43: { + 0: uint8(68), + 1: uint8(51), + }, + 44: { + 0: uint8(69), + 1: uint8(52), + }, + 45: { + 0: uint8(80), + 1: uint8(53), + }, + 46: { + 0: uint8(81), + 1: uint8(54), + }, + 47: { + 0: uint8(82), + 1: uint8(55), + }, + 48: { + 0: uint8(83), + 1: uint8(56), + }, + 49: { + 0: uint8(84), + 1: uint8(57), + }, + 50: { + 0: uint8(89), + 1: uint8(58), + }, + 51: { + 0: uint8(91), + 1: uint8(59), + }, + 52: { + 0: uint8(92), + 1: uint8(60), + }, + 53: { + 0: uint8(97), + 1: uint8(61), + }, + 54: { + 0: uint8(99), + 1: uint8(62), + }, + 55: { + 0: uint8(101), + 1: uint8(63), + }, + 56: { + 0: uint8(102), + 1: uint8(64), + }, + 57: { + 0: uint8(104), + 1: uint8(65), + }, + 58: { + 0: uint8(105), + 1: uint8(66), + }, + 59: { + 0: uint8(106), + 1: uint8(64), + }, + 60: { + 0: uint8(107), + 1: uint8(67), + }, + 61: { + 0: uint8(108), + 1: uint8(68), + }, + 62: { + 0: uint8(111), + 1: uint8(66), + }, + 63: { + 0: uint8(113), + 1: uint8(69), + }, + 64: { + 0: uint8(114), + 1: uint8(70), + }, + 65: { + 0: uint8(117), + 1: uint8(71), + }, + 66: { + 0: uint8(125), + 1: uint8(72), + }, + 67: { + 0: uint8(130), + 1: uint8(73), + }, + 68: { + 0: uint8(135), + 1: uint8(74), + }, + 69: { + 0: uint8(137), + 1: uint8(75), + }, + 70: { + 0: uint8(138), + 1: uint8(76), + }, + 71: { + 0: uint8(139), + 1: uint8(76), + }, + 72: { + 0: uint8(140), + 1: uint8(77), + }, + 73: { + 0: uint8(146), + 1: uint8(78), + }, + 74: { + 0: uint8(157), + 1: uint8(79), + }, + 75: { + 0: uint8(158), + 1: uint8(80), + }, + 76: { + 0: uint8(69), + 1: uint8(87), + }, + 77: { + 0: uint8(123), + 1: uint8(29), + }, + 78: { + 0: uint8(124), + 1: uint8(29), + }, + 79: { + 0: uint8(125), + 1: uint8(29), + }, + 80: { + 0: uint8(127), + 1: uint8(88), + }, + 81: { + 0: uint8(134), + 1: uint8(89), + }, + 82: { + 0: uint8(136), + 1: uint8(90), + }, + 83: { + 0: uint8(137), + 1: uint8(90), + }, + 84: { + 0: uint8(138), + 1: uint8(90), + }, + 85: { + 0: uint8(140), + 1: uint8(91), + }, + 86: { + 0: uint8(142), + 1: uint8(92), + }, + 87: { + 0: uint8(143), + 1: uint8(92), + }, + 88: { + 0: uint8(172), + 1: uint8(93), + }, + 89: { + 0: uint8(173), + 1: uint8(94), + }, + 90: { + 0: uint8(174), + 1: uint8(94), + }, + 91: { + 0: uint8(175), + 1: uint8(94), + }, + 92: { + 0: uint8(194), + 1: uint8(95), + }, + 93: { + 0: uint8(204), + 1: uint8(96), + }, + 94: { + 0: uint8(205), + 1: uint8(97), + }, + 95: { + 0: uint8(206), + 1: uint8(97), + }, + 96: { + 0: uint8(207), + 1: uint8(98), + }, + 97: { + 0: uint8(208), + 1: uint8(99), + }, + 98: { + 0: uint8(209), + 1: uint8(100), + }, + 99: { + 0: uint8(213), + 1: uint8(101), + }, + 100: { + 0: uint8(214), + 1: uint8(102), + }, + 101: { + 0: uint8(215), + 1: uint8(103), + }, + 102: { + 0: uint8(240), + 1: uint8(104), + }, + 103: { + 0: uint8(241), + 1: uint8(105), + }, + 104: { + 0: uint8(242), + 1: uint8(106), + }, + 105: { + 0: uint8(243), + 1: uint8(107), + }, + 106: { + 0: uint8(244), + 1: uint8(108), + }, + 107: { + 0: uint8(245), + 1: uint8(109), + }, + 108: { + 0: uint8(249), + 1: uint8(110), + }, + 109: { + 0: uint8(253), + 1: uint8(45), + }, + 110: { + 0: uint8(254), + 1: uint8(45), + }, + 111: { + 0: uint8(255), + 1: uint8(45), + }, + 112: { + 0: uint8(80), + 1: uint8(105), + }, + 113: { + 0: uint8(81), + 1: uint8(105), + }, + 114: { + 0: uint8(82), + 1: uint8(105), + }, + 115: { + 0: uint8(83), + 1: uint8(105), + }, + 116: { + 0: uint8(84), + 1: uint8(105), + }, + 117: { + 0: uint8(85), + 1: uint8(105), + }, + 118: { + 0: uint8(86), + 1: uint8(105), + }, + 119: { + 0: uint8(87), + 1: uint8(105), + }, + 120: { + 0: uint8(88), + 1: uint8(105), + }, + 121: { + 0: uint8(89), + 1: uint8(105), + }, + 122: { + 0: uint8(90), + 1: uint8(105), + }, + 123: { + 0: uint8(91), + 1: uint8(105), + }, + 124: { + 0: uint8(92), + 1: uint8(105), + }, + 125: { + 0: uint8(93), + 1: uint8(105), + }, + 126: { + 0: uint8(94), + 1: uint8(105), + }, + 127: { + 0: uint8(95), + 1: uint8(105), + }, + 128: { + 0: uint8(130), + }, + 129: { + 0: uint8(131), + }, + 130: { + 0: uint8(132), + }, + 131: { + 0: uint8(133), + }, + 132: { + 0: uint8(134), + }, + 133: { + 0: uint8(135), + }, + 134: { + 0: uint8(136), + }, + 135: { + 0: uint8(137), + }, + 136: { + 0: uint8(192), + 1: uint8(117), + }, + 137: { + 0: uint8(207), + 1: uint8(118), + }, + 138: { + 0: uint8(128), + 1: uint8(137), + }, + 139: { + 0: uint8(129), + 1: uint8(138), + }, + 140: { + 0: uint8(130), + 1: uint8(139), + }, + 141: { + 0: uint8(133), + 1: uint8(140), + }, + 142: { + 0: uint8(134), + 1: uint8(141), + }, + 143: { + 0: uint8(112), + 1: uint8(157), + }, + 144: { + 0: uint8(113), + 1: uint8(157), + }, + 145: { + 0: uint8(118), + 1: uint8(158), + }, + 146: { + 0: uint8(119), + 1: uint8(158), + }, + 147: { + 0: uint8(120), + 1: uint8(159), + }, + 148: { + 0: uint8(121), + 1: uint8(159), + }, + 149: { + 0: uint8(122), + 1: uint8(160), + }, + 150: { + 0: uint8(123), + 1: uint8(160), + }, + 151: { + 0: uint8(124), + 1: uint8(161), + }, + 152: { + 0: uint8(125), + 1: uint8(161), + }, + 153: { + 0: uint8(179), + 1: uint8(162), + }, + 154: { + 0: uint8(186), + 1: uint8(163), + }, + 155: { + 0: uint8(187), + 1: uint8(163), + }, + 156: { + 0: uint8(188), + 1: uint8(164), + }, + 157: { + 0: uint8(190), + 1: uint8(165), + }, + 158: { + 0: uint8(195), + 1: uint8(162), + }, + 159: { + 0: uint8(204), + 1: uint8(164), + }, + 160: { + 0: uint8(218), + 1: uint8(166), + }, + 161: { + 0: uint8(219), + 1: uint8(166), + }, + 162: { + 0: uint8(229), + 1: uint8(106), + }, + 163: { + 0: uint8(234), + 1: uint8(167), + }, + 164: { + 0: uint8(235), + 1: uint8(167), + }, + 165: { + 0: uint8(236), + 1: uint8(110), + }, + 166: { + 0: uint8(243), + 1: uint8(162), + }, + 167: { + 0: uint8(248), + 1: uint8(168), + }, + 168: { + 0: uint8(249), + 1: uint8(168), + }, + 169: { + 0: uint8(250), + 1: uint8(169), + }, + 170: { + 0: uint8(251), + 1: uint8(169), + }, + 171: { + 0: uint8(252), + 1: uint8(164), + }, + 172: { + 0: uint8(38), + 1: uint8(176), + }, + 173: { + 0: uint8(42), + 1: uint8(177), + }, + 174: { + 0: uint8(43), + 1: uint8(178), + }, + 175: { + 0: uint8(78), + 1: uint8(179), + }, + 176: { + 0: uint8(132), + 1: uint8(8), + }, + 177: { + 0: uint8(98), + 1: uint8(186), + }, + 178: { + 0: uint8(99), + 1: uint8(187), + }, + 179: { + 0: uint8(100), + 1: uint8(188), + }, + 180: { + 0: uint8(101), + 1: uint8(189), + }, + 181: { + 0: uint8(102), + 1: uint8(190), + }, + 182: { + 0: uint8(109), + 1: uint8(191), + }, + 183: { + 0: uint8(110), + 1: uint8(192), + }, + 184: { + 0: uint8(111), + 1: uint8(193), + }, + 185: { + 0: uint8(112), + 1: uint8(194), + }, + 186: { + 0: uint8(126), + 1: uint8(195), + }, + 187: { + 0: uint8(127), + 1: uint8(195), + }, + 188: { + 0: uint8(125), + 1: uint8(207), + }, + 189: { + 0: uint8(141), + 1: uint8(208), + }, + 190: { + 0: uint8(148), + 1: uint8(209), + }, + 191: { + 0: uint8(171), + 1: uint8(210), + }, + 192: { + 0: uint8(172), + 1: uint8(211), + }, + 193: { + 0: uint8(173), + 1: uint8(212), + }, + 194: { + 0: uint8(176), + 1: uint8(213), + }, + 195: { + 0: uint8(177), + 1: uint8(214), + }, + 196: { + 0: uint8(178), + 1: uint8(215), + }, + 197: { + 0: uint8(196), + 1: uint8(216), + }, + 198: { + 0: uint8(197), + 1: uint8(217), + }, + 199: { + 0: uint8(198), + 1: uint8(218), + }, +} + +func _casemap(tls *TLS, c uint32, dir int32) (r1 int32) { + var b, rt, try, v, x, xb, xn, y uint32 + var c0, r, rd, v1 int32 + _, _, _, _, _, _, _, _, _, _, _, _ = b, c0, r, rd, rt, try, v, x, xb, xn, y, v1 + c0 = Int32FromUint32(c) + if c >= uint32(0x20000) { + return Int32FromUint32(c) + } + b = c >> int32(8) + c = c & uint32(255) + x = c / uint32(3) + y = c % uint32(3) + /* lookup entry in two-level base-6 table */ + v = uint32(_tab1[Uint32FromInt32(Int32FromUint8(_tab1[b])*int32(86))+x]) + v = v * Uint32FromInt32(_mt[y]) >> int32(11) % uint32(6) + /* use the bit vector out of the tables as an index into + * a block-specific set of rules and decode the rule into + * a type and a case-mapping delta. */ + r = _rules[uint32(_rulebases[b])+v] + rt = Uint32FromInt32(r & int32(255)) + rd = r >> int32(8) + /* rules 0/1 are simple lower/upper case with a delta. + * apply according to desired mapping direction. */ + if rt < uint32(2) { + return Int32FromUint32(Uint32FromInt32(c0) + Uint32FromInt32(rd)&-(rt^Uint32FromInt32(dir))) + } + /* binary search. endpoints of the binary search for + * this block are stored in the rule delta field. */ + xn = Uint32FromInt32(rd & int32(0xff)) + xb = Uint32FromInt32(rd) >> int32(8) + for xn != 0 { + try = uint32(**(**uint8)(__ccgo_up(uintptr(unsafe.Pointer(&_exceptions)) + uintptr(xb+xn/uint32(2))*2))) + if try == c { + r = _rules[**(**uint8)(__ccgo_up(uintptr(unsafe.Pointer(&_exceptions)) + uintptr(xb+xn/uint32(2))*2 + 1))] + rt = Uint32FromInt32(r & int32(255)) + rd = r >> int32(8) + if rt < uint32(2) { + return Int32FromUint32(Uint32FromInt32(c0) + Uint32FromInt32(rd)&-(rt^Uint32FromInt32(dir))) + } + /* Hard-coded for the four exceptional titlecase */ + if dir != 0 { + v1 = -int32(1) + } else { + v1 = int32(1) + } + return c0 + v1 + } else { + if try > c { + xn = xn / uint32(2) + } else { + xb = xb + xn/uint32(2) + xn = xn - xn/uint32(2) + } + } + } + return c0 +} + +var _mt = [3]int32{ + 0: int32(2048), + 1: int32(342), + 2: int32(57), +} + +func Xtowlower(tls *TLS, wc Twint_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Uint32FromInt32(_casemap(tls, wc, 0)) +} + +func Xtowupper(tls *TLS, wc Twint_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Uint32FromInt32(_casemap(tls, wc, int32(1))) +} + +func X__towupper_l(tls *TLS, c Twint_t, l Tlocale_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xtowupper(tls, c) +} + +func X__towlower_l(tls *TLS, c Twint_t, l Tlocale_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xtowlower(tls, c) +} + +func Xtowlower_l(tls *TLS, c Twint_t, l Tlocale_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__towlower_l(tls, c, l) +} + +func Xtowupper_l(tls *TLS, c Twint_t, l Tlocale_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__towupper_l(tls, c, l) +} + +func Xwcswidth(tls *TLS, wcs uintptr, n Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wcs=%v n=%v, (%v:)", tls, wcs, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var k, l, v3 int32 + var v2 Tsize_t + var v4 bool + _, _, _, _, _ = k, l, v2, v3, v4 + l = 0 + k = 0 + for { + v2 = n + n = n - 1 + if v4 = v2 != 0 && **(**Twchar_t)(__ccgo_up(wcs)) != 0; v4 { + v3 = Xwcwidth(tls, **(**Twchar_t)(__ccgo_up(wcs))) + k = v3 + } + if !(v4 && v3 >= 0) { + break + } + goto _1 + _1: + ; + l = l + k + wcs += 4 + } + if k < 0 { + v3 = k + } else { + v3 = l + } + return v3 +} + +func Xwctrans(tls *TLS, class uintptr) (r Twctrans_t) { + if __ccgo_strace { + trc("tls=%v class=%v, (%v:)", tls, class, origin(2)) + defer func() { trc("-> %v", r) }() + } + if !(Xstrcmp(tls, class, __ccgo_ts+196) != 0) { + return UintptrFromInt32(1) + } + if !(Xstrcmp(tls, class, __ccgo_ts+204) != 0) { + return UintptrFromInt32(2) + } + return uintptr(0) +} + +func Xtowctrans(tls *TLS, wc Twint_t, trans Twctrans_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v wc=%v trans=%v, (%v:)", tls, wc, trans, origin(2)) + defer func() { trc("-> %v", r) }() + } + if trans == UintptrFromInt32(1) { + return Xtowupper(tls, wc) + } + if trans == UintptrFromInt32(2) { + return Xtowlower(tls, wc) + } + return wc +} + +func X__wctrans_l(tls *TLS, s uintptr, l Tlocale_t) (r Twctrans_t) { + if __ccgo_strace { + trc("tls=%v s=%v l=%v, (%v:)", tls, s, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwctrans(tls, s) +} + +func X__towctrans_l(tls *TLS, c Twint_t, t Twctrans_t, l Tlocale_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v t=%v l=%v, (%v:)", tls, c, t, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xtowctrans(tls, c, t) +} + +func Xtowctrans_l(tls *TLS, c Twint_t, t Twctrans_t, l Tlocale_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v t=%v l=%v, (%v:)", tls, c, t, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__towctrans_l(tls, c, t, l) +} + +func Xwctrans_l(tls *TLS, s uintptr, l Tlocale_t) (r Twctrans_t) { + if __ccgo_strace { + trc("tls=%v s=%v l=%v, (%v:)", tls, s, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__wctrans_l(tls, s, l) +} + +var _table5 = [2784]uint8{ + 0: uint8(16), + 1: uint8(16), + 2: uint8(16), + 3: uint8(18), + 4: uint8(19), + 5: uint8(20), + 6: uint8(21), + 7: uint8(22), + 8: uint8(23), + 9: uint8(24), + 10: uint8(25), + 11: uint8(26), + 12: uint8(27), + 13: uint8(28), + 14: uint8(29), + 15: uint8(30), + 16: uint8(31), + 17: uint8(32), + 18: uint8(16), + 19: uint8(33), + 20: uint8(16), + 21: uint8(16), + 22: uint8(16), + 23: uint8(34), + 24: uint8(35), + 25: uint8(36), + 26: uint8(37), + 27: uint8(38), + 28: uint8(39), + 29: uint8(40), + 30: uint8(16), + 31: uint8(16), + 32: uint8(41), + 33: uint8(16), + 34: uint8(16), + 35: uint8(16), + 36: uint8(16), + 37: uint8(16), + 38: uint8(16), + 39: uint8(16), + 40: uint8(16), + 41: uint8(16), + 42: uint8(16), + 43: uint8(16), + 44: uint8(42), + 45: uint8(43), + 46: uint8(16), + 47: uint8(16), + 48: uint8(44), + 49: uint8(16), + 50: uint8(16), + 51: uint8(16), + 52: uint8(16), + 53: uint8(16), + 54: uint8(16), + 55: uint8(16), + 56: uint8(16), + 57: uint8(16), + 58: uint8(16), + 59: uint8(16), + 60: uint8(16), + 61: uint8(16), + 62: uint8(16), + 63: uint8(16), + 64: uint8(16), + 65: uint8(16), + 66: uint8(16), + 67: uint8(16), + 68: uint8(16), + 69: uint8(16), + 70: uint8(16), + 71: uint8(16), + 72: uint8(16), + 73: uint8(16), + 74: uint8(16), + 75: uint8(16), + 76: uint8(16), + 77: uint8(16), + 78: uint8(16), + 79: uint8(16), + 80: uint8(16), + 81: uint8(16), + 82: uint8(16), + 83: uint8(16), + 84: uint8(16), + 85: uint8(16), + 86: uint8(16), + 87: uint8(16), + 88: uint8(16), + 89: uint8(16), + 90: uint8(16), + 91: uint8(16), + 92: uint8(16), + 93: uint8(16), + 94: uint8(16), + 95: uint8(16), + 96: uint8(16), + 97: uint8(16), + 98: uint8(16), + 99: uint8(16), + 100: uint8(16), + 101: uint8(16), + 102: uint8(16), + 103: uint8(16), + 104: uint8(16), + 105: uint8(16), + 106: uint8(16), + 107: uint8(16), + 108: uint8(16), + 109: uint8(16), + 110: uint8(16), + 111: uint8(16), + 112: uint8(16), + 113: uint8(16), + 114: uint8(16), + 115: uint8(16), + 116: uint8(16), + 117: uint8(16), + 118: uint8(16), + 119: uint8(16), + 120: uint8(16), + 121: uint8(16), + 122: uint8(16), + 123: uint8(16), + 124: uint8(16), + 125: uint8(16), + 126: uint8(16), + 127: uint8(16), + 128: uint8(16), + 129: uint8(16), + 130: uint8(16), + 131: uint8(16), + 132: uint8(16), + 133: uint8(16), + 134: uint8(16), + 135: uint8(16), + 136: uint8(16), + 137: uint8(16), + 138: uint8(16), + 139: uint8(16), + 140: uint8(16), + 141: uint8(16), + 142: uint8(16), + 143: uint8(16), + 144: uint8(16), + 145: uint8(16), + 146: uint8(16), + 147: uint8(16), + 148: uint8(16), + 149: uint8(16), + 150: uint8(16), + 151: uint8(16), + 152: uint8(16), + 153: uint8(16), + 154: uint8(16), + 155: uint8(16), + 156: uint8(16), + 157: uint8(16), + 158: uint8(16), + 159: uint8(16), + 160: uint8(16), + 161: uint8(16), + 162: uint8(16), + 163: uint8(16), + 164: uint8(16), + 165: uint8(16), + 166: uint8(45), + 167: uint8(16), + 168: uint8(46), + 169: uint8(47), + 170: uint8(48), + 171: uint8(49), + 172: uint8(16), + 173: uint8(16), + 174: uint8(16), + 175: uint8(16), + 176: uint8(16), + 177: uint8(16), + 178: uint8(16), + 179: uint8(16), + 180: uint8(16), + 181: uint8(16), + 182: uint8(16), + 183: uint8(16), + 184: uint8(16), + 185: uint8(16), + 186: uint8(16), + 187: uint8(16), + 188: uint8(16), + 189: uint8(16), + 190: uint8(16), + 191: uint8(16), + 192: uint8(16), + 193: uint8(16), + 194: uint8(16), + 195: uint8(16), + 196: uint8(16), + 197: uint8(16), + 198: uint8(16), + 199: uint8(16), + 200: uint8(16), + 201: uint8(16), + 202: uint8(16), + 203: uint8(16), + 204: uint8(16), + 205: uint8(16), + 206: uint8(16), + 207: uint8(16), + 208: uint8(16), + 209: uint8(16), + 210: uint8(16), + 211: uint8(16), + 212: uint8(16), + 213: uint8(16), + 214: uint8(16), + 215: uint8(50), + 216: uint8(16), + 217: uint8(16), + 218: uint8(16), + 219: uint8(16), + 220: uint8(16), + 221: uint8(16), + 222: uint8(16), + 223: uint8(16), + 224: uint8(16), + 225: uint8(16), + 226: uint8(16), + 227: uint8(16), + 228: uint8(16), + 229: uint8(16), + 230: uint8(16), + 231: uint8(16), + 232: uint8(16), + 233: uint8(16), + 234: uint8(16), + 235: uint8(16), + 236: uint8(16), + 237: uint8(16), + 238: uint8(16), + 239: uint8(16), + 240: uint8(16), + 241: uint8(16), + 242: uint8(16), + 243: uint8(16), + 244: uint8(16), + 245: uint8(16), + 246: uint8(16), + 247: uint8(16), + 248: uint8(16), + 249: uint8(16), + 250: uint8(16), + 251: uint8(51), + 252: uint8(16), + 253: uint8(16), + 254: uint8(52), + 255: uint8(53), + 256: uint8(16), + 257: uint8(54), + 258: uint8(55), + 259: uint8(56), + 260: uint8(16), + 261: uint8(16), + 262: uint8(16), + 263: uint8(16), + 264: uint8(16), + 265: uint8(16), + 266: uint8(57), + 267: uint8(16), + 268: uint8(16), + 269: uint8(58), + 270: uint8(16), + 271: uint8(59), + 272: uint8(60), + 273: uint8(61), + 274: uint8(62), + 275: uint8(63), + 276: uint8(64), + 277: uint8(65), + 278: uint8(66), + 279: uint8(67), + 280: uint8(68), + 281: uint8(69), + 282: uint8(70), + 283: uint8(16), + 284: uint8(71), + 285: uint8(72), + 286: uint8(73), + 287: uint8(16), + 288: uint8(16), + 289: uint8(16), + 290: uint8(16), + 291: uint8(16), + 292: uint8(16), + 293: uint8(16), + 294: uint8(16), + 295: uint8(16), + 296: uint8(16), + 297: uint8(16), + 298: uint8(16), + 299: uint8(16), + 300: uint8(16), + 301: uint8(16), + 302: uint8(16), + 303: uint8(16), + 304: uint8(16), + 305: uint8(16), + 306: uint8(16), + 307: uint8(16), + 308: uint8(74), + 309: uint8(16), + 310: uint8(16), + 311: uint8(16), + 312: uint8(16), + 313: uint8(16), + 314: uint8(16), + 315: uint8(16), + 316: uint8(16), + 317: uint8(16), + 318: uint8(16), + 319: uint8(16), + 320: uint8(16), + 321: uint8(16), + 322: uint8(16), + 323: uint8(16), + 324: uint8(16), + 325: uint8(16), + 326: uint8(16), + 327: uint8(16), + 328: uint8(16), + 329: uint8(16), + 330: uint8(16), + 331: uint8(16), + 332: uint8(16), + 333: uint8(16), + 334: uint8(16), + 335: uint8(16), + 336: uint8(16), + 337: uint8(16), + 338: uint8(16), + 339: uint8(16), + 340: uint8(16), + 341: uint8(16), + 342: uint8(16), + 343: uint8(16), + 344: uint8(16), + 345: uint8(16), + 346: uint8(16), + 347: uint8(16), + 348: uint8(16), + 349: uint8(16), + 350: uint8(16), + 351: uint8(16), + 352: uint8(16), + 353: uint8(16), + 354: uint8(16), + 355: uint8(16), + 356: uint8(16), + 357: uint8(16), + 358: uint8(16), + 359: uint8(16), + 360: uint8(16), + 361: uint8(16), + 362: uint8(75), + 363: uint8(76), + 364: uint8(16), + 365: uint8(16), + 366: uint8(16), + 367: uint8(77), + 368: uint8(16), + 369: uint8(16), + 370: uint8(16), + 371: uint8(16), + 372: uint8(16), + 373: uint8(16), + 374: uint8(16), + 375: uint8(16), + 376: uint8(16), + 377: uint8(16), + 378: uint8(16), + 379: uint8(16), + 380: uint8(16), + 381: uint8(16), + 382: uint8(16), + 383: uint8(16), + 384: uint8(16), + 385: uint8(16), + 386: uint8(16), + 387: uint8(16), + 388: uint8(16), + 389: uint8(16), + 390: uint8(16), + 391: uint8(16), + 392: uint8(16), + 393: uint8(16), + 394: uint8(16), + 395: uint8(16), + 396: uint8(16), + 397: uint8(16), + 398: uint8(16), + 399: uint8(16), + 400: uint8(16), + 401: uint8(16), + 402: uint8(16), + 403: uint8(16), + 404: uint8(16), + 405: uint8(16), + 406: uint8(16), + 407: uint8(16), + 408: uint8(16), + 409: uint8(16), + 410: uint8(16), + 411: uint8(16), + 412: uint8(16), + 413: uint8(16), + 414: uint8(16), + 415: uint8(16), + 416: uint8(16), + 417: uint8(16), + 418: uint8(16), + 419: uint8(16), + 420: uint8(16), + 421: uint8(16), + 422: uint8(16), + 423: uint8(16), + 424: uint8(16), + 425: uint8(16), + 426: uint8(16), + 427: uint8(16), + 428: uint8(16), + 429: uint8(16), + 430: uint8(16), + 431: uint8(16), + 432: uint8(16), + 433: uint8(16), + 434: uint8(16), + 435: uint8(16), + 436: uint8(16), + 437: uint8(16), + 438: uint8(16), + 439: uint8(16), + 440: uint8(16), + 441: uint8(16), + 442: uint8(16), + 443: uint8(16), + 444: uint8(78), + 445: uint8(16), + 446: uint8(16), + 447: uint8(16), + 448: uint8(16), + 449: uint8(16), + 450: uint8(16), + 451: uint8(16), + 452: uint8(16), + 453: uint8(16), + 454: uint8(16), + 455: uint8(16), + 456: uint8(16), + 457: uint8(16), + 458: uint8(16), + 459: uint8(16), + 460: uint8(16), + 461: uint8(16), + 462: uint8(16), + 463: uint8(16), + 464: uint8(16), + 465: uint8(79), + 466: uint8(80), + 467: uint8(16), + 468: uint8(16), + 469: uint8(16), + 470: uint8(16), + 471: uint8(16), + 472: uint8(16), + 473: uint8(16), + 474: uint8(81), + 475: uint8(16), + 476: uint8(16), + 477: uint8(16), + 478: uint8(16), + 479: uint8(16), + 480: uint8(82), + 481: uint8(83), + 482: uint8(84), + 483: uint8(16), + 484: uint8(16), + 485: uint8(16), + 486: uint8(16), + 487: uint8(16), + 488: uint8(85), + 489: uint8(86), + 490: uint8(16), + 491: uint8(16), + 492: uint8(16), + 493: uint8(16), + 494: uint8(16), + 495: uint8(16), + 496: uint8(16), + 497: uint8(16), + 498: uint8(16), + 499: uint8(16), + 500: uint8(16), + 501: uint8(16), + 502: uint8(16), + 503: uint8(16), + 504: uint8(16), + 505: uint8(16), + 506: uint8(16), + 507: uint8(16), + 508: uint8(16), + 509: uint8(16), + 510: uint8(16), + 511: uint8(16), + 544: uint8(255), + 545: uint8(255), + 546: uint8(255), + 547: uint8(255), + 548: uint8(255), + 549: uint8(255), + 550: uint8(255), + 551: uint8(255), + 552: uint8(255), + 553: uint8(255), + 554: uint8(255), + 555: uint8(255), + 556: uint8(255), + 557: uint8(255), + 558: uint8(255), + 559: uint8(255), + 560: uint8(255), + 561: uint8(255), + 562: uint8(255), + 563: uint8(255), + 564: uint8(255), + 565: uint8(255), + 566: uint8(255), + 567: uint8(255), + 568: uint8(255), + 569: uint8(255), + 570: uint8(255), + 571: uint8(255), + 572: uint8(255), + 573: uint8(255), + 574: uint8(255), + 575: uint8(255), + 576: uint8(255), + 577: uint8(255), + 578: uint8(255), + 579: uint8(255), + 580: uint8(255), + 581: uint8(255), + 582: uint8(255), + 583: uint8(255), + 584: uint8(255), + 585: uint8(255), + 586: uint8(255), + 587: uint8(255), + 588: uint8(255), + 589: uint8(255), + 624: uint8(248), + 625: uint8(3), + 658: uint8(254), + 659: uint8(255), + 660: uint8(255), + 661: uint8(255), + 662: uint8(255), + 663: uint8(191), + 664: uint8(182), + 672: uint8(63), + 674: uint8(255), + 675: uint8(23), + 681: uint8(248), + 682: uint8(255), + 683: uint8(255), + 686: uint8(1), + 698: uint8(192), + 699: uint8(191), + 700: uint8(159), + 701: uint8(61), + 705: uint8(128), + 706: uint8(2), + 710: uint8(255), + 711: uint8(255), + 712: uint8(255), + 713: uint8(7), + 724: uint8(192), + 725: uint8(255), + 726: uint8(1), + 733: uint8(248), + 734: uint8(15), + 735: uint8(32), + 738: uint8(192), + 739: uint8(251), + 740: uint8(239), + 741: uint8(62), + 747: uint8(14), + 762: uint8(248), + 763: uint8(255), + 764: uint8(255), + 765: uint8(255), + 766: uint8(255), + 767: uint8(255), + 768: uint8(7), + 775: uint8(20), + 776: uint8(254), + 777: uint8(33), + 778: uint8(254), + 780: uint8(12), + 784: uint8(2), + 791: uint8(16), + 792: uint8(30), + 793: uint8(32), + 796: uint8(12), + 799: uint8(64), + 800: uint8(6), + 807: uint8(16), + 808: uint8(134), + 809: uint8(57), + 810: uint8(2), + 814: uint8(35), + 816: uint8(6), + 823: uint8(16), + 824: uint8(190), + 825: uint8(33), + 828: uint8(12), + 831: uint8(252), + 832: uint8(2), + 839: uint8(144), + 840: uint8(30), + 841: uint8(32), + 842: uint8(64), + 844: uint8(12), + 848: uint8(4), + 856: uint8(1), + 857: uint8(32), + 864: uint8(17), + 871: uint8(192), + 872: uint8(193), + 873: uint8(61), + 874: uint8(96), + 876: uint8(12), + 880: uint8(2), + 887: uint8(144), + 888: uint8(64), + 889: uint8(48), + 892: uint8(12), + 896: uint8(3), + 903: uint8(24), + 904: uint8(30), + 905: uint8(32), + 908: uint8(12), + 921: uint8(4), + 922: uint8(92), + 934: uint8(242), + 935: uint8(7), + 936: uint8(128), + 937: uint8(127), + 950: uint8(242), + 951: uint8(31), + 953: uint8(63), + 963: uint8(3), + 966: uint8(160), + 967: uint8(2), + 974: uint8(254), + 975: uint8(127), + 976: uint8(223), + 977: uint8(224), + 978: uint8(255), + 979: uint8(254), + 980: uint8(255), + 981: uint8(255), + 982: uint8(255), + 983: uint8(31), + 984: uint8(64), + 997: uint8(224), + 998: uint8(253), + 999: uint8(102), + 1003: uint8(195), + 1004: uint8(1), + 1006: uint8(30), + 1008: uint8(100), + 1009: uint8(32), + 1011: uint8(32), + 1036: uint8(255), + 1037: uint8(255), + 1038: uint8(255), + 1039: uint8(255), + 1040: uint8(255), + 1041: uint8(255), + 1042: uint8(255), + 1043: uint8(255), + 1044: uint8(255), + 1045: uint8(255), + 1046: uint8(255), + 1047: uint8(255), + 1048: uint8(255), + 1049: uint8(255), + 1050: uint8(255), + 1051: uint8(255), + 1052: uint8(255), + 1053: uint8(255), + 1054: uint8(255), + 1055: uint8(255), + 1067: uint8(224), + 1090: uint8(28), + 1094: uint8(28), + 1098: uint8(12), + 1102: uint8(12), + 1110: uint8(176), + 1111: uint8(63), + 1112: uint8(64), + 1113: uint8(254), + 1114: uint8(15), + 1115: uint8(32), + 1121: uint8(120), + 1136: uint8(96), + 1141: uint8(2), + 1156: uint8(135), + 1157: uint8(1), + 1158: uint8(4), + 1159: uint8(14), + 1186: uint8(128), + 1187: uint8(9), + 1194: uint8(64), + 1195: uint8(127), + 1196: uint8(229), + 1197: uint8(31), + 1198: uint8(248), + 1199: uint8(159), + 1206: uint8(255), + 1207: uint8(127), + 1216: uint8(15), + 1222: uint8(208), + 1223: uint8(23), + 1224: uint8(4), + 1229: uint8(248), + 1230: uint8(15), + 1232: uint8(3), + 1236: uint8(60), + 1237: uint8(59), + 1244: uint8(64), + 1245: uint8(163), + 1246: uint8(3), + 1253: uint8(240), + 1254: uint8(207), + 1274: uint8(247), + 1275: uint8(255), + 1276: uint8(253), + 1277: uint8(33), + 1278: uint8(16), + 1279: uint8(3), + 1304: uint8(255), + 1305: uint8(255), + 1306: uint8(255), + 1307: uint8(255), + 1308: uint8(255), + 1309: uint8(255), + 1310: uint8(255), + 1311: uint8(251), + 1313: uint8(248), + 1317: uint8(124), + 1324: uint8(223), + 1325: uint8(255), + 1338: uint8(255), + 1339: uint8(255), + 1340: uint8(255), + 1341: uint8(255), + 1342: uint8(1), + 1373: uint8(128), + 1374: uint8(3), + 1391: uint8(128), + 1404: uint8(255), + 1405: uint8(255), + 1406: uint8(255), + 1407: uint8(255), + 1413: uint8(60), + 1427: uint8(6), + 1453: uint8(128), + 1454: uint8(247), + 1455: uint8(63), + 1459: uint8(192), + 1470: uint8(3), + 1472: uint8(68), + 1473: uint8(8), + 1476: uint8(96), + 1496: uint8(48), + 1500: uint8(255), + 1501: uint8(255), + 1502: uint8(3), + 1503: uint8(128), + 1508: uint8(192), + 1509: uint8(63), + 1512: uint8(128), + 1513: uint8(255), + 1514: uint8(3), + 1520: uint8(7), + 1526: uint8(200), + 1527: uint8(51), + 1532: uint8(32), + 1541: uint8(126), + 1542: uint8(102), + 1544: uint8(8), + 1545: uint8(16), + 1551: uint8(16), + 1558: uint8(157), + 1559: uint8(193), + 1560: uint8(2), + 1565: uint8(48), + 1566: uint8(64), + 1596: uint8(32), + 1597: uint8(33), + 1622: uint8(255), + 1623: uint8(255), + 1624: uint8(255), + 1625: uint8(255), + 1626: uint8(255), + 1627: uint8(255), + 1628: uint8(255), + 1629: uint8(255), + 1630: uint8(255), + 1631: uint8(255), + 1635: uint8(64), + 1664: uint8(255), + 1665: uint8(255), + 1668: uint8(255), + 1669: uint8(255), + 1695: uint8(128), + 1727: uint8(14), + 1759: uint8(32), + 1788: uint8(1), + 1806: uint8(192), + 1807: uint8(7), + 1824: uint8(110), + 1825: uint8(240), + 1831: uint8(135), + 1852: uint8(96), + 1860: uint8(240), + 1896: uint8(192), + 1897: uint8(255), + 1898: uint8(1), + 1920: uint8(2), + 1927: uint8(255), + 1928: uint8(127), + 1935: uint8(128), + 1936: uint8(3), + 1942: uint8(120), + 1943: uint8(38), + 1945: uint8(32), + 1952: uint8(7), + 1956: uint8(128), + 1957: uint8(239), + 1958: uint8(31), + 1966: uint8(8), + 1968: uint8(3), + 1974: uint8(192), + 1975: uint8(127), + 1977: uint8(30), + 1989: uint8(128), + 1990: uint8(211), + 1991: uint8(64), + 2011: uint8(128), + 2012: uint8(248), + 2013: uint8(7), + 2016: uint8(3), + 2023: uint8(24), + 2024: uint8(1), + 2028: uint8(192), + 2029: uint8(31), + 2030: uint8(31), + 2055: uint8(255), + 2056: uint8(92), + 2059: uint8(64), + 2070: uint8(248), + 2071: uint8(133), + 2072: uint8(13), + 2102: uint8(60), + 2103: uint8(176), + 2104: uint8(1), + 2107: uint8(48), + 2118: uint8(248), + 2119: uint8(167), + 2120: uint8(1), + 2133: uint8(40), + 2134: uint8(191), + 2147: uint8(224), + 2148: uint8(188), + 2149: uint8(15), + 2181: uint8(128), + 2182: uint8(255), + 2183: uint8(6), + 2234: uint8(240), + 2235: uint8(12), + 2236: uint8(1), + 2240: uint8(254), + 2241: uint8(7), + 2246: uint8(248), + 2247: uint8(121), + 2248: uint8(128), + 2250: uint8(126), + 2251: uint8(14), + 2257: uint8(252), + 2258: uint8(127), + 2259: uint8(3), + 2278: uint8(127), + 2279: uint8(191), + 2290: uint8(252), + 2291: uint8(255), + 2292: uint8(255), + 2293: uint8(252), + 2294: uint8(109), + 2310: uint8(126), + 2311: uint8(180), + 2312: uint8(191), + 2322: uint8(163), + 2366: uint8(24), + 2374: uint8(255), + 2375: uint8(1), + 2430: uint8(31), + 2438: uint8(127), + 2473: uint8(128), + 2481: uint8(128), + 2482: uint8(7), + 2515: uint8(96), + 2516: uint8(15), + 2540: uint8(128), + 2541: uint8(3), + 2542: uint8(248), + 2543: uint8(255), + 2544: uint8(231), + 2545: uint8(15), + 2549: uint8(60), + 2568: uint8(28), + 2592: uint8(255), + 2593: uint8(255), + 2594: uint8(255), + 2595: uint8(255), + 2596: uint8(255), + 2597: uint8(255), + 2598: uint8(127), + 2599: uint8(248), + 2600: uint8(255), + 2601: uint8(255), + 2602: uint8(255), + 2603: uint8(255), + 2604: uint8(255), + 2605: uint8(31), + 2606: uint8(32), + 2608: uint8(16), + 2611: uint8(248), + 2612: uint8(254), + 2613: uint8(255), + 2624: uint8(127), + 2625: uint8(255), + 2626: uint8(255), + 2627: uint8(249), + 2628: uint8(219), + 2629: uint8(7), + 2662: uint8(127), + 2717: uint8(240), + 2746: uint8(127), + 2760: uint8(240), + 2761: uint8(7), +} + +var _wtable = [1600]uint8{ + 0: uint8(16), + 1: uint8(16), + 2: uint8(16), + 3: uint8(16), + 4: uint8(16), + 5: uint8(16), + 6: uint8(16), + 7: uint8(16), + 8: uint8(16), + 9: uint8(16), + 10: uint8(16), + 11: uint8(16), + 12: uint8(16), + 13: uint8(16), + 14: uint8(16), + 15: uint8(16), + 16: uint8(16), + 17: uint8(18), + 18: uint8(16), + 19: uint8(16), + 20: uint8(16), + 21: uint8(16), + 22: uint8(16), + 23: uint8(16), + 24: uint8(16), + 25: uint8(16), + 26: uint8(16), + 27: uint8(16), + 28: uint8(16), + 29: uint8(16), + 30: uint8(16), + 31: uint8(16), + 32: uint8(16), + 33: uint8(16), + 34: uint8(16), + 35: uint8(19), + 36: uint8(16), + 37: uint8(20), + 38: uint8(21), + 39: uint8(22), + 40: uint8(16), + 41: uint8(16), + 42: uint8(16), + 43: uint8(23), + 44: uint8(16), + 45: uint8(16), + 46: uint8(24), + 47: uint8(25), + 48: uint8(26), + 49: uint8(27), + 50: uint8(28), + 51: uint8(17), + 52: uint8(17), + 53: uint8(17), + 54: uint8(17), + 55: uint8(17), + 56: uint8(17), + 57: uint8(17), + 58: uint8(17), + 59: uint8(17), + 60: uint8(17), + 61: uint8(17), + 62: uint8(17), + 63: uint8(17), + 64: uint8(17), + 65: uint8(17), + 66: uint8(17), + 67: uint8(17), + 68: uint8(17), + 69: uint8(17), + 70: uint8(17), + 71: uint8(17), + 72: uint8(17), + 73: uint8(17), + 74: uint8(17), + 75: uint8(17), + 76: uint8(17), + 77: uint8(29), + 78: uint8(17), + 79: uint8(17), + 80: uint8(17), + 81: uint8(17), + 82: uint8(17), + 83: uint8(17), + 84: uint8(17), + 85: uint8(17), + 86: uint8(17), + 87: uint8(17), + 88: uint8(17), + 89: uint8(17), + 90: uint8(17), + 91: uint8(17), + 92: uint8(17), + 93: uint8(17), + 94: uint8(17), + 95: uint8(17), + 96: uint8(17), + 97: uint8(17), + 98: uint8(17), + 99: uint8(17), + 100: uint8(17), + 101: uint8(17), + 102: uint8(17), + 103: uint8(17), + 104: uint8(17), + 105: uint8(17), + 106: uint8(17), + 107: uint8(17), + 108: uint8(17), + 109: uint8(17), + 110: uint8(17), + 111: uint8(17), + 112: uint8(17), + 113: uint8(17), + 114: uint8(17), + 115: uint8(17), + 116: uint8(17), + 117: uint8(17), + 118: uint8(17), + 119: uint8(17), + 120: uint8(17), + 121: uint8(17), + 122: uint8(17), + 123: uint8(17), + 124: uint8(17), + 125: uint8(17), + 126: uint8(17), + 127: uint8(17), + 128: uint8(17), + 129: uint8(17), + 130: uint8(17), + 131: uint8(17), + 132: uint8(17), + 133: uint8(17), + 134: uint8(17), + 135: uint8(17), + 136: uint8(17), + 137: uint8(17), + 138: uint8(17), + 139: uint8(17), + 140: uint8(17), + 141: uint8(17), + 142: uint8(17), + 143: uint8(17), + 144: uint8(17), + 145: uint8(17), + 146: uint8(17), + 147: uint8(17), + 148: uint8(17), + 149: uint8(17), + 150: uint8(17), + 151: uint8(17), + 152: uint8(17), + 153: uint8(17), + 154: uint8(17), + 155: uint8(17), + 156: uint8(17), + 157: uint8(17), + 158: uint8(17), + 159: uint8(17), + 160: uint8(17), + 161: uint8(17), + 162: uint8(17), + 163: uint8(17), + 164: uint8(30), + 165: uint8(16), + 166: uint8(16), + 167: uint8(16), + 168: uint8(16), + 169: uint8(31), + 170: uint8(16), + 171: uint8(16), + 172: uint8(17), + 173: uint8(17), + 174: uint8(17), + 175: uint8(17), + 176: uint8(17), + 177: uint8(17), + 178: uint8(17), + 179: uint8(17), + 180: uint8(17), + 181: uint8(17), + 182: uint8(17), + 183: uint8(17), + 184: uint8(17), + 185: uint8(17), + 186: uint8(17), + 187: uint8(17), + 188: uint8(17), + 189: uint8(17), + 190: uint8(17), + 191: uint8(17), + 192: uint8(17), + 193: uint8(17), + 194: uint8(17), + 195: uint8(17), + 196: uint8(17), + 197: uint8(17), + 198: uint8(17), + 199: uint8(17), + 200: uint8(17), + 201: uint8(17), + 202: uint8(17), + 203: uint8(17), + 204: uint8(17), + 205: uint8(17), + 206: uint8(17), + 207: uint8(17), + 208: uint8(17), + 209: uint8(17), + 210: uint8(17), + 211: uint8(17), + 212: uint8(17), + 213: uint8(17), + 214: uint8(17), + 215: uint8(32), + 216: uint8(16), + 217: uint8(16), + 218: uint8(16), + 219: uint8(16), + 220: uint8(16), + 221: uint8(16), + 222: uint8(16), + 223: uint8(16), + 224: uint8(16), + 225: uint8(16), + 226: uint8(16), + 227: uint8(16), + 228: uint8(16), + 229: uint8(16), + 230: uint8(16), + 231: uint8(16), + 232: uint8(16), + 233: uint8(16), + 234: uint8(16), + 235: uint8(16), + 236: uint8(16), + 237: uint8(16), + 238: uint8(16), + 239: uint8(16), + 240: uint8(16), + 241: uint8(16), + 242: uint8(16), + 243: uint8(16), + 244: uint8(16), + 245: uint8(16), + 246: uint8(16), + 247: uint8(16), + 248: uint8(16), + 249: uint8(17), + 250: uint8(17), + 251: uint8(16), + 252: uint8(16), + 253: uint8(16), + 254: uint8(33), + 255: uint8(34), + 256: uint8(16), + 257: uint8(16), + 258: uint8(16), + 259: uint8(16), + 260: uint8(16), + 261: uint8(16), + 262: uint8(16), + 263: uint8(16), + 264: uint8(16), + 265: uint8(16), + 266: uint8(16), + 267: uint8(16), + 268: uint8(16), + 269: uint8(16), + 270: uint8(16), + 271: uint8(16), + 272: uint8(16), + 273: uint8(16), + 274: uint8(16), + 275: uint8(16), + 276: uint8(16), + 277: uint8(16), + 278: uint8(16), + 279: uint8(16), + 280: uint8(16), + 281: uint8(16), + 282: uint8(16), + 283: uint8(16), + 284: uint8(16), + 285: uint8(16), + 286: uint8(16), + 287: uint8(16), + 288: uint8(16), + 289: uint8(16), + 290: uint8(16), + 291: uint8(16), + 292: uint8(16), + 293: uint8(16), + 294: uint8(16), + 295: uint8(16), + 296: uint8(16), + 297: uint8(16), + 298: uint8(16), + 299: uint8(16), + 300: uint8(16), + 301: uint8(16), + 302: uint8(16), + 303: uint8(16), + 304: uint8(16), + 305: uint8(16), + 306: uint8(16), + 307: uint8(16), + 308: uint8(16), + 309: uint8(16), + 310: uint8(16), + 311: uint8(16), + 312: uint8(16), + 313: uint8(16), + 314: uint8(16), + 315: uint8(16), + 316: uint8(16), + 317: uint8(16), + 318: uint8(16), + 319: uint8(16), + 320: uint8(16), + 321: uint8(16), + 322: uint8(16), + 323: uint8(16), + 324: uint8(16), + 325: uint8(16), + 326: uint8(16), + 327: uint8(16), + 328: uint8(16), + 329: uint8(16), + 330: uint8(16), + 331: uint8(16), + 332: uint8(16), + 333: uint8(16), + 334: uint8(16), + 335: uint8(16), + 336: uint8(16), + 337: uint8(16), + 338: uint8(16), + 339: uint8(16), + 340: uint8(16), + 341: uint8(16), + 342: uint8(16), + 343: uint8(16), + 344: uint8(16), + 345: uint8(16), + 346: uint8(16), + 347: uint8(16), + 348: uint8(16), + 349: uint8(16), + 350: uint8(16), + 351: uint8(16), + 352: uint8(16), + 353: uint8(16), + 354: uint8(16), + 355: uint8(16), + 356: uint8(16), + 357: uint8(16), + 358: uint8(16), + 359: uint8(16), + 360: uint8(16), + 361: uint8(16), + 362: uint8(16), + 363: uint8(16), + 364: uint8(16), + 365: uint8(16), + 366: uint8(16), + 367: uint8(35), + 368: uint8(17), + 369: uint8(17), + 370: uint8(17), + 371: uint8(17), + 372: uint8(17), + 373: uint8(17), + 374: uint8(17), + 375: uint8(17), + 376: uint8(17), + 377: uint8(17), + 378: uint8(17), + 379: uint8(17), + 380: uint8(17), + 381: uint8(17), + 382: uint8(17), + 383: uint8(17), + 384: uint8(17), + 385: uint8(17), + 386: uint8(17), + 387: uint8(17), + 388: uint8(17), + 389: uint8(17), + 390: uint8(17), + 391: uint8(36), + 392: uint8(17), + 393: uint8(17), + 394: uint8(37), + 395: uint8(16), + 396: uint8(16), + 397: uint8(16), + 398: uint8(16), + 399: uint8(16), + 400: uint8(16), + 401: uint8(16), + 402: uint8(16), + 403: uint8(16), + 404: uint8(16), + 405: uint8(16), + 406: uint8(16), + 407: uint8(16), + 408: uint8(16), + 409: uint8(16), + 410: uint8(16), + 411: uint8(16), + 412: uint8(16), + 413: uint8(16), + 414: uint8(16), + 415: uint8(16), + 416: uint8(16), + 417: uint8(16), + 418: uint8(16), + 419: uint8(16), + 420: uint8(16), + 421: uint8(16), + 422: uint8(16), + 423: uint8(16), + 424: uint8(16), + 425: uint8(16), + 426: uint8(16), + 427: uint8(16), + 428: uint8(16), + 429: uint8(16), + 430: uint8(16), + 431: uint8(16), + 432: uint8(17), + 433: uint8(38), + 434: uint8(39), + 435: uint8(16), + 436: uint8(16), + 437: uint8(16), + 438: uint8(16), + 439: uint8(16), + 440: uint8(16), + 441: uint8(16), + 442: uint8(16), + 443: uint8(16), + 444: uint8(16), + 445: uint8(16), + 446: uint8(16), + 447: uint8(16), + 448: uint8(16), + 449: uint8(16), + 450: uint8(16), + 451: uint8(16), + 452: uint8(16), + 453: uint8(16), + 454: uint8(16), + 455: uint8(16), + 456: uint8(16), + 457: uint8(16), + 458: uint8(16), + 459: uint8(16), + 460: uint8(16), + 461: uint8(16), + 462: uint8(16), + 463: uint8(16), + 464: uint8(16), + 465: uint8(16), + 466: uint8(16), + 467: uint8(16), + 468: uint8(16), + 469: uint8(16), + 470: uint8(16), + 471: uint8(16), + 472: uint8(16), + 473: uint8(16), + 474: uint8(16), + 475: uint8(16), + 476: uint8(16), + 477: uint8(16), + 478: uint8(16), + 479: uint8(16), + 480: uint8(16), + 481: uint8(16), + 482: uint8(16), + 483: uint8(16), + 484: uint8(16), + 485: uint8(16), + 486: uint8(16), + 487: uint8(16), + 488: uint8(16), + 489: uint8(16), + 490: uint8(16), + 491: uint8(16), + 492: uint8(16), + 493: uint8(16), + 494: uint8(16), + 495: uint8(16), + 496: uint8(40), + 497: uint8(41), + 498: uint8(42), + 499: uint8(43), + 500: uint8(44), + 501: uint8(45), + 502: uint8(46), + 503: uint8(47), + 504: uint8(16), + 505: uint8(48), + 506: uint8(49), + 507: uint8(16), + 508: uint8(16), + 509: uint8(16), + 510: uint8(16), + 511: uint8(16), + 544: uint8(255), + 545: uint8(255), + 546: uint8(255), + 547: uint8(255), + 548: uint8(255), + 549: uint8(255), + 550: uint8(255), + 551: uint8(255), + 552: uint8(255), + 553: uint8(255), + 554: uint8(255), + 555: uint8(255), + 556: uint8(255), + 557: uint8(255), + 558: uint8(255), + 559: uint8(255), + 560: uint8(255), + 561: uint8(255), + 562: uint8(255), + 563: uint8(255), + 564: uint8(255), + 565: uint8(255), + 566: uint8(255), + 567: uint8(255), + 568: uint8(255), + 569: uint8(255), + 570: uint8(255), + 571: uint8(255), + 572: uint8(255), + 573: uint8(255), + 574: uint8(255), + 575: uint8(255), + 576: uint8(255), + 577: uint8(255), + 578: uint8(255), + 579: uint8(255), + 580: uint8(255), + 581: uint8(255), + 582: uint8(255), + 583: uint8(255), + 584: uint8(255), + 585: uint8(255), + 586: uint8(255), + 587: uint8(255), + 611: uint8(12), + 613: uint8(6), + 637: uint8(30), + 638: uint8(9), + 671: uint8(96), + 674: uint8(48), + 681: uint8(255), + 682: uint8(15), + 687: uint8(128), + 690: uint8(8), + 692: uint8(2), + 693: uint8(12), + 695: uint8(96), + 696: uint8(48), + 697: uint8(64), + 698: uint8(16), + 701: uint8(4), + 702: uint8(44), + 703: uint8(36), + 704: uint8(32), + 705: uint8(12), + 709: uint8(1), + 713: uint8(80), + 714: uint8(184), + 722: uint8(224), + 726: uint8(1), + 727: uint8(128), + 739: uint8(24), + 746: uint8(33), + 784: uint8(255), + 785: uint8(255), + 786: uint8(255), + 787: uint8(251), + 788: uint8(255), + 789: uint8(255), + 790: uint8(255), + 791: uint8(255), + 792: uint8(255), + 793: uint8(255), + 794: uint8(255), + 795: uint8(255), + 796: uint8(255), + 797: uint8(255), + 798: uint8(15), + 800: uint8(255), + 801: uint8(255), + 802: uint8(255), + 803: uint8(255), + 804: uint8(255), + 805: uint8(255), + 806: uint8(255), + 807: uint8(255), + 808: uint8(255), + 809: uint8(255), + 810: uint8(255), + 811: uint8(255), + 812: uint8(255), + 813: uint8(255), + 814: uint8(255), + 815: uint8(255), + 816: uint8(255), + 817: uint8(255), + 818: uint8(255), + 819: uint8(255), + 820: uint8(255), + 821: uint8(255), + 822: uint8(255), + 823: uint8(255), + 824: uint8(255), + 825: uint8(255), + 826: uint8(63), + 830: uint8(255), + 831: uint8(15), + 832: uint8(255), + 833: uint8(255), + 834: uint8(255), + 835: uint8(255), + 836: uint8(255), + 837: uint8(255), + 838: uint8(255), + 839: uint8(127), + 840: uint8(254), + 841: uint8(255), + 842: uint8(255), + 843: uint8(255), + 844: uint8(255), + 845: uint8(255), + 846: uint8(255), + 847: uint8(255), + 848: uint8(255), + 849: uint8(255), + 850: uint8(127), + 851: uint8(254), + 852: uint8(255), + 853: uint8(255), + 854: uint8(255), + 855: uint8(255), + 856: uint8(255), + 857: uint8(255), + 858: uint8(255), + 859: uint8(255), + 860: uint8(255), + 861: uint8(255), + 862: uint8(255), + 863: uint8(255), + 864: uint8(224), + 865: uint8(255), + 866: uint8(255), + 867: uint8(255), + 868: uint8(255), + 869: uint8(255), + 870: uint8(254), + 871: uint8(255), + 872: uint8(255), + 873: uint8(255), + 874: uint8(255), + 875: uint8(255), + 876: uint8(255), + 877: uint8(255), + 878: uint8(255), + 879: uint8(255), + 880: uint8(255), + 881: uint8(127), + 882: uint8(255), + 883: uint8(255), + 884: uint8(255), + 885: uint8(255), + 886: uint8(255), + 887: uint8(7), + 888: uint8(255), + 889: uint8(255), + 890: uint8(255), + 891: uint8(255), + 892: uint8(15), + 894: uint8(255), + 895: uint8(255), + 896: uint8(255), + 897: uint8(255), + 898: uint8(255), + 899: uint8(127), + 900: uint8(255), + 901: uint8(255), + 902: uint8(255), + 903: uint8(255), + 904: uint8(255), + 906: uint8(255), + 907: uint8(255), + 908: uint8(255), + 909: uint8(255), + 910: uint8(255), + 911: uint8(255), + 912: uint8(255), + 913: uint8(255), + 914: uint8(255), + 915: uint8(255), + 916: uint8(255), + 917: uint8(255), + 918: uint8(255), + 919: uint8(255), + 920: uint8(255), + 921: uint8(255), + 922: uint8(255), + 923: uint8(255), + 924: uint8(255), + 925: uint8(255), + 926: uint8(255), + 927: uint8(255), + 928: uint8(255), + 929: uint8(255), + 930: uint8(255), + 931: uint8(255), + 932: uint8(255), + 933: uint8(255), + 934: uint8(255), + 935: uint8(255), + 936: uint8(255), + 937: uint8(255), + 938: uint8(255), + 939: uint8(255), + 940: uint8(255), + 941: uint8(255), + 942: uint8(255), + 943: uint8(255), + 944: uint8(255), + 945: uint8(255), + 946: uint8(255), + 947: uint8(255), + 948: uint8(255), + 949: uint8(255), + 950: uint8(255), + 951: uint8(255), + 960: uint8(255), + 961: uint8(255), + 962: uint8(255), + 963: uint8(255), + 964: uint8(255), + 965: uint8(255), + 966: uint8(255), + 967: uint8(255), + 968: uint8(255), + 969: uint8(255), + 970: uint8(255), + 971: uint8(255), + 972: uint8(255), + 973: uint8(255), + 974: uint8(255), + 975: uint8(255), + 976: uint8(255), + 977: uint8(31), + 978: uint8(255), + 979: uint8(255), + 980: uint8(255), + 981: uint8(255), + 982: uint8(255), + 983: uint8(255), + 984: uint8(127), + 1004: uint8(255), + 1005: uint8(255), + 1006: uint8(255), + 1007: uint8(31), + 1024: uint8(255), + 1025: uint8(255), + 1026: uint8(255), + 1027: uint8(255), + 1028: uint8(255), + 1029: uint8(255), + 1030: uint8(255), + 1031: uint8(255), + 1032: uint8(255), + 1033: uint8(255), + 1034: uint8(255), + 1035: uint8(255), + 1036: uint8(255), + 1037: uint8(255), + 1038: uint8(255), + 1039: uint8(255), + 1040: uint8(255), + 1041: uint8(255), + 1042: uint8(255), + 1043: uint8(255), + 1044: uint8(15), + 1058: uint8(255), + 1059: uint8(3), + 1062: uint8(255), + 1063: uint8(255), + 1064: uint8(255), + 1065: uint8(255), + 1066: uint8(247), + 1067: uint8(255), + 1068: uint8(127), + 1069: uint8(15), + 1088: uint8(254), + 1089: uint8(255), + 1090: uint8(255), + 1091: uint8(255), + 1092: uint8(255), + 1093: uint8(255), + 1094: uint8(255), + 1095: uint8(255), + 1096: uint8(255), + 1097: uint8(255), + 1098: uint8(255), + 1099: uint8(255), + 1100: uint8(1), + 1116: uint8(127), + 1148: uint8(15), + 1152: uint8(255), + 1153: uint8(255), + 1154: uint8(255), + 1155: uint8(255), + 1156: uint8(255), + 1157: uint8(255), + 1158: uint8(255), + 1159: uint8(255), + 1160: uint8(255), + 1161: uint8(255), + 1162: uint8(255), + 1163: uint8(255), + 1164: uint8(255), + 1165: uint8(255), + 1166: uint8(255), + 1167: uint8(255), + 1168: uint8(255), + 1169: uint8(255), + 1170: uint8(255), + 1171: uint8(255), + 1172: uint8(255), + 1173: uint8(255), + 1174: uint8(255), + 1175: uint8(255), + 1176: uint8(255), + 1177: uint8(255), + 1178: uint8(255), + 1179: uint8(255), + 1180: uint8(255), + 1181: uint8(255), + 1182: uint8(255), + 1184: uint8(255), + 1185: uint8(255), + 1186: uint8(255), + 1187: uint8(255), + 1188: uint8(255), + 1189: uint8(255), + 1190: uint8(255), + 1191: uint8(255), + 1192: uint8(255), + 1193: uint8(255), + 1194: uint8(255), + 1195: uint8(255), + 1196: uint8(255), + 1197: uint8(255), + 1198: uint8(255), + 1199: uint8(255), + 1200: uint8(255), + 1201: uint8(255), + 1202: uint8(255), + 1203: uint8(255), + 1204: uint8(255), + 1205: uint8(255), + 1206: uint8(255), + 1207: uint8(255), + 1208: uint8(255), + 1209: uint8(255), + 1210: uint8(255), + 1211: uint8(255), + 1212: uint8(255), + 1213: uint8(255), + 1214: uint8(7), + 1216: uint8(255), + 1217: uint8(255), + 1218: uint8(255), + 1219: uint8(127), + 1226: uint8(7), + 1228: uint8(240), + 1230: uint8(255), + 1231: uint8(255), + 1232: uint8(255), + 1233: uint8(255), + 1234: uint8(255), + 1235: uint8(255), + 1236: uint8(255), + 1237: uint8(255), + 1238: uint8(255), + 1239: uint8(255), + 1240: uint8(255), + 1241: uint8(255), + 1242: uint8(255), + 1243: uint8(255), + 1244: uint8(255), + 1245: uint8(255), + 1246: uint8(255), + 1247: uint8(255), + 1248: uint8(255), + 1249: uint8(255), + 1250: uint8(255), + 1251: uint8(255), + 1252: uint8(255), + 1253: uint8(255), + 1254: uint8(255), + 1255: uint8(255), + 1256: uint8(255), + 1257: uint8(255), + 1258: uint8(255), + 1259: uint8(255), + 1260: uint8(255), + 1261: uint8(255), + 1262: uint8(255), + 1263: uint8(255), + 1264: uint8(255), + 1265: uint8(255), + 1266: uint8(255), + 1267: uint8(255), + 1268: uint8(255), + 1269: uint8(255), + 1270: uint8(255), + 1271: uint8(255), + 1272: uint8(255), + 1273: uint8(255), + 1274: uint8(255), + 1275: uint8(255), + 1276: uint8(255), + 1277: uint8(255), + 1278: uint8(255), + 1279: uint8(15), + 1280: uint8(16), + 1305: uint8(128), + 1329: uint8(64), + 1330: uint8(254), + 1331: uint8(7), + 1344: uint8(7), + 1346: uint8(255), + 1347: uint8(255), + 1348: uint8(255), + 1349: uint8(255), + 1350: uint8(255), + 1351: uint8(15), + 1352: uint8(255), + 1353: uint8(1), + 1354: uint8(3), + 1356: uint8(63), + 1376: uint8(255), + 1377: uint8(255), + 1378: uint8(255), + 1379: uint8(255), + 1380: uint8(1), + 1381: uint8(224), + 1382: uint8(191), + 1383: uint8(255), + 1384: uint8(255), + 1385: uint8(255), + 1386: uint8(255), + 1387: uint8(255), + 1388: uint8(255), + 1389: uint8(255), + 1390: uint8(255), + 1391: uint8(223), + 1392: uint8(255), + 1393: uint8(255), + 1394: uint8(15), + 1396: uint8(255), + 1397: uint8(255), + 1398: uint8(255), + 1399: uint8(255), + 1400: uint8(255), + 1401: uint8(135), + 1402: uint8(15), + 1404: uint8(255), + 1405: uint8(255), + 1406: uint8(17), + 1407: uint8(255), + 1408: uint8(255), + 1409: uint8(255), + 1410: uint8(255), + 1411: uint8(255), + 1412: uint8(255), + 1413: uint8(255), + 1414: uint8(255), + 1415: uint8(127), + 1416: uint8(253), + 1417: uint8(255), + 1418: uint8(255), + 1419: uint8(255), + 1420: uint8(255), + 1421: uint8(255), + 1422: uint8(255), + 1423: uint8(255), + 1424: uint8(255), + 1425: uint8(255), + 1426: uint8(255), + 1427: uint8(255), + 1428: uint8(255), + 1429: uint8(255), + 1430: uint8(255), + 1431: uint8(255), + 1432: uint8(255), + 1433: uint8(255), + 1434: uint8(255), + 1435: uint8(255), + 1436: uint8(255), + 1437: uint8(255), + 1438: uint8(255), + 1439: uint8(159), + 1440: uint8(255), + 1441: uint8(255), + 1442: uint8(255), + 1443: uint8(255), + 1444: uint8(255), + 1445: uint8(255), + 1446: uint8(255), + 1447: uint8(63), + 1449: uint8(120), + 1450: uint8(255), + 1451: uint8(255), + 1452: uint8(255), + 1455: uint8(4), + 1458: uint8(96), + 1460: uint8(16), + 1471: uint8(248), + 1472: uint8(255), + 1473: uint8(255), + 1474: uint8(255), + 1475: uint8(255), + 1476: uint8(255), + 1477: uint8(255), + 1478: uint8(255), + 1479: uint8(255), + 1480: uint8(255), + 1481: uint8(255), + 1488: uint8(255), + 1489: uint8(255), + 1490: uint8(255), + 1491: uint8(255), + 1492: uint8(255), + 1493: uint8(255), + 1494: uint8(255), + 1495: uint8(255), + 1496: uint8(63), + 1497: uint8(16), + 1498: uint8(39), + 1501: uint8(24), + 1502: uint8(240), + 1503: uint8(7), + 1532: uint8(255), + 1533: uint8(15), + 1537: uint8(224), + 1538: uint8(255), + 1539: uint8(255), + 1540: uint8(255), + 1541: uint8(255), + 1542: uint8(255), + 1543: uint8(255), + 1544: uint8(255), + 1545: uint8(255), + 1546: uint8(255), + 1547: uint8(255), + 1548: uint8(255), + 1549: uint8(255), + 1550: uint8(123), + 1551: uint8(252), + 1552: uint8(255), + 1553: uint8(255), + 1554: uint8(255), + 1555: uint8(255), + 1556: uint8(231), + 1557: uint8(199), + 1558: uint8(255), + 1559: uint8(255), + 1560: uint8(255), + 1561: uint8(231), + 1562: uint8(255), + 1563: uint8(255), + 1564: uint8(255), + 1565: uint8(255), + 1566: uint8(255), + 1567: uint8(255), + 1582: uint8(15), + 1583: uint8(7), + 1584: uint8(7), + 1586: uint8(63), +} + +func Xwcwidth(tls *TLS, wc Twchar_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1, v2 int32 + _, _ = v1, v2 + if wc < uint32(0xff) { + if (wc+uint32(1))&uint32(0x7f) >= uint32(0x21) { + v1 = int32(1) + } else { + if wc != 0 { + v2 = -int32(1) + } else { + v2 = 0 + } + v1 = v2 + } + return v1 + } + if wc&uint32(0xfffeffff) < uint32(0xfffe) { + if Int32FromUint8(_table5[Uint32FromInt32(Int32FromUint8(_table5[wc>>int32(8)])*int32(32))+wc&uint32(255)>>int32(3)])>>(wc&uint32(7))&int32(1) != 0 { + return 0 + } + if Int32FromUint8(_wtable[Uint32FromInt32(Int32FromUint8(_wtable[wc>>int32(8)])*int32(32))+wc&uint32(255)>>int32(3)])>>(wc&uint32(7))&int32(1) != 0 { + return int32(2) + } + return int32(1) + } + if wc&uint32(0xfffe) == uint32(0xfffe) { + return -int32(1) + } + if wc-uint32(0x20000) < uint32(0x20000) { + return int32(2) + } + if wc == uint32(0xe0001) || wc-uint32(0xe0020) < uint32(0x5f) || wc-uint32(0xe0100) < uint32(0xef) { + return 0 + } + return int32(1) +} + +const d_fileno = 0 + +type Tino_t = uint64 + +type Tdirent = struct { + Fd_ino Tino_t + Fd_off Toff_t + Fd_reclen uint16 + Fd_type uint8 + Fd_name [256]uint8 +} + +func Xalphasort(tls *TLS, a uintptr, b uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v a=%v b=%v, (%v:)", tls, a, b, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrcoll(tls, **(**uintptr)(__ccgo_up(a))+19, **(**uintptr)(__ccgo_up(b))+19) +} + +type TDIR = struct { + Ftell Toff_t + Ffd int32 + Fbuf_pos int32 + Fbuf_end int32 + Flock [1]int32 + Fbuf [2048]uint8 +} + +type t__dirstream = TDIR + +func Xclosedir(tls *TLS, dir uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v dir=%v, (%v:)", tls, dir, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret int32 + _ = ret + ret = Xclose(tls, (*TDIR)(unsafe.Pointer(dir)).Ffd) + Xfree(tls, dir) + return ret +} + +func Xdirfd(tls *TLS, d uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v d=%v, (%v:)", tls, d, origin(2)) + defer func() { trc("-> %v", r) }() + } + return (*TDIR)(unsafe.Pointer(d)).Ffd +} + +const AT_EACCESS = 512 +const AT_FDCWD = -100 +const AT_REMOVEDIR = 512 +const AT_SYMLINK_FOLLOW = 1024 +const AT_SYMLINK_NOFOLLOW = 256 +const FD_CLOEXEC = 1 +const F_DUPFD = 0 +const F_DUPFD_CLOEXEC = 1030 +const F_GETFD = 1 +const F_GETFL = 3 +const F_GETLK = 5 +const F_GETOWN = 9 +const F_GETOWNER_UIDS = 17 +const F_GETOWN_EX = 16 +const F_GETSIG = 11 +const F_OFD_GETLK = 36 +const F_OFD_SETLK = 37 +const F_OFD_SETLKW = 38 +const F_RDLCK = 0 +const F_SETFD = 2 +const F_SETFL = 4 +const F_SETLK = 6 +const F_SETLKW = 7 +const F_SETOWN = 8 +const F_SETOWN_EX = 15 +const F_SETSIG = 10 +const F_UNLCK = 2 +const F_WRLCK = 1 +const O_ACCMODE = 2097155 +const O_APPEND = 1024 +const O_ASYNC = 8192 +const O_CLOEXEC = 524288 +const O_CREAT = 64 +const O_DIRECT = 65536 +const O_DIRECTORY = 16384 +const O_DSYNC = 4096 +const O_EXCL = 128 +const O_EXEC = 2097152 +const O_LARGEFILE = 131072 +const O_NDELAY = 2048 +const O_NOATIME = 262144 +const O_NOCTTY = 256 +const O_NOFOLLOW = 32768 +const O_NONBLOCK = 2048 +const O_PATH = 2097152 +const O_RDONLY = 0 +const O_RDWR = 2 +const O_RSYNC = 1052672 +const O_SEARCH = 2097152 +const O_SYNC = 1052672 +const O_TMPFILE = 4210688 +const O_TRUNC = 512 +const O_TTY_INIT = 0 +const O_WRONLY = 1 +const POSIX_FADV_DONTNEED = 4 +const POSIX_FADV_NOREUSE = 5 +const POSIX_FADV_NORMAL = 0 +const POSIX_FADV_RANDOM = 1 +const POSIX_FADV_SEQUENTIAL = 2 +const POSIX_FADV_WILLNEED = 3 +const S_IFBLK = 24576 +const S_IFCHR = 8192 +const S_IFDIR = 16384 +const S_IFIFO = 4096 +const S_IFLNK = 40960 +const S_IFMT = 61440 +const S_IFREG = 32768 +const S_IFSOCK = 49152 +const S_IRGRP = 32 +const S_IROTH = 4 +const S_IRUSR = 256 +const S_IRWXG = 56 +const S_IRWXO = 7 +const S_IRWXU = 448 +const S_ISGID = 1024 +const S_ISUID = 2048 +const S_ISVTX = 512 +const S_IWGRP = 16 +const S_IWOTH = 2 +const S_IWUSR = 128 +const S_IXGRP = 8 +const S_IXOTH = 1 +const S_IXUSR = 64 +const UTIME_NOW = 1073741823 +const UTIME_OMIT = 1073741822 + +type Tflock = struct { + Fl_type int16 + Fl_whence int16 + Fl_start Toff_t + Fl_len Toff_t + Fl_pid Tpid_t +} + +type Tblksize_t = int32 + +type Tnlink_t = uint32 + +type Tdev_t = uint64 + +type Tblkcnt_t = int64 + +type Tstat = struct { + Fst_dev Tdev_t + Fst_ino Tino_t + Fst_mode Tmode_t + Fst_nlink Tnlink_t + Fst_uid Tuid_t + Fst_gid Tgid_t + Fst_rdev Tdev_t + F__pad uint64 + Fst_size Toff_t + Fst_blksize Tblksize_t + F__pad2 int32 + Fst_blocks Tblkcnt_t + Fst_atim Ttimespec + Fst_mtim Ttimespec + Fst_ctim Ttimespec + F__unused [2]uint32 +} + +func Xfdopendir(tls *TLS, fd int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(144) + defer tls.Free(144) + var dir, v1 uintptr + var _ /* st at bp+0 */ Tstat + _, _ = dir, v1 + if Xfstat(tls, fd, bp) < 0 { + return uintptr(0) + } + if Xfcntl(tls, fd, int32(F_GETFL), 0)&int32(O_PATH) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EBADF) + return uintptr(0) + } + if !((**(**Tstat)(__ccgo_up(bp))).Fst_mode&Uint32FromInt32(S_IFMT) == Uint32FromInt32(S_IFDIR)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOTDIR) + return uintptr(0) + } + v1 = Xcalloc(tls, uint64(1), uint64(2072)) + dir = v1 + if !(v1 != 0) { + return uintptr(0) + } + Xfcntl(tls, fd, int32(F_SETFD), VaList(bp+136, int32(FD_CLOEXEC))) + (*TDIR)(unsafe.Pointer(dir)).Ffd = fd + return dir +} + +const AT_EMPTY_PATH = 4096 +const AT_NO_AUTOMOUNT = 2048 +const AT_RECURSIVE = 32768 +const AT_STATX_DONT_SYNC = 16384 +const AT_STATX_FORCE_SYNC = 8192 +const AT_STATX_SYNC_AS_STAT = 0 +const AT_STATX_SYNC_TYPE = 24576 +const DN_ACCESS = 1 +const DN_ATTRIB = 32 +const DN_CREATE = 4 +const DN_DELETE = 8 +const DN_MODIFY = 2 +const DN_MULTISHOT = 2147483648 +const DN_RENAME = 16 +const DT_BLK = 6 +const DT_CHR = 2 +const DT_DIR = 4 +const DT_FIFO = 1 +const DT_LNK = 10 +const DT_REG = 8 +const DT_SOCK = 12 +const DT_UNKNOWN = 0 +const DT_WHT = 14 +const FALLOC_FL_KEEP_SIZE = 1 +const FALLOC_FL_PUNCH_HOLE = 2 +const FAPPEND = 1024 +const FASYNC = 8192 +const FFSYNC = 1052672 +const FNDELAY = 2048 +const FNONBLOCK = 2048 +const F_ADD_SEALS = 1033 +const F_CANCELLK = 1029 +const F_GETLEASE = 1025 +const F_GETPIPE_SZ = 1032 +const F_GET_FILE_RW_HINT = 1037 +const F_GET_RW_HINT = 1035 +const F_GET_SEALS = 1034 +const F_NOTIFY = 1026 +const F_OWNER_GID = 2 +const F_OWNER_PGRP = 2 +const F_OWNER_PID = 1 +const F_OWNER_TID = 0 +const F_SEAL_FUTURE_WRITE = 16 +const F_SEAL_GROW = 4 +const F_SEAL_SEAL = 1 +const F_SEAL_SHRINK = 2 +const F_SEAL_WRITE = 8 +const F_SETLEASE = 1024 +const F_SETPIPE_SZ = 1031 +const F_SET_FILE_RW_HINT = 1038 +const F_SET_RW_HINT = 1036 +const MAX_HANDLE_SZ = 128 +const RWF_WRITE_LIFE_NOT_SET = 0 +const RWH_WRITE_LIFE_EXTREME = 5 +const RWH_WRITE_LIFE_LONG = 4 +const RWH_WRITE_LIFE_MEDIUM = 3 +const RWH_WRITE_LIFE_NONE = 1 +const RWH_WRITE_LIFE_SHORT = 2 +const SPLICE_F_GIFT = 8 +const SPLICE_F_MORE = 4 +const SPLICE_F_MOVE = 1 +const SPLICE_F_NONBLOCK = 2 +const SYNC_FILE_RANGE_WAIT_AFTER = 4 +const SYNC_FILE_RANGE_WAIT_BEFORE = 1 +const SYNC_FILE_RANGE_WRITE = 2 +const alloca = 0 +const loff_t = 0 + +type Tiovec = struct { + Fiov_base uintptr + Fiov_len Tsize_t +} + +type Tfile_handle = struct { + Fhandle_bytes uint32 + Fhandle_type int32 +} + +type Tf_owner_ex = struct { + Ftype1 int32 + Fpid Tpid_t +} + +func Xopendir(tls *TLS, name uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + var dir, v2 uintptr + var fd, v1 int32 + _, _, _, _ = dir, fd, v1, v2 + v1 = Xopen(tls, name, Int32FromInt32(O_RDONLY)|Int32FromInt32(O_DIRECTORY)|Int32FromInt32(O_CLOEXEC), 0) + fd = v1 + if v1 < 0 { + return uintptr(0) + } + v2 = Xcalloc(tls, uint64(1), uint64(2072)) + dir = v2 + if !(v2 != 0) { + X__syscall1(tls, int64(SYS_close), int64(fd)) + return uintptr(0) + } + (*TDIR)(unsafe.Pointer(dir)).Ffd = fd + return dir +} + +type Tptrdiff_t = int64 + +type Tdirstream_buf_alignment_check = [1]uint8 + +func Xreaddir(tls *TLS, dir uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v dir=%v, (%v:)", tls, dir, origin(2)) + defer func() { trc("-> %v", r) }() + } + var de uintptr + var len1 int32 + _, _ = de, len1 + if (*TDIR)(unsafe.Pointer(dir)).Fbuf_pos >= (*TDIR)(unsafe.Pointer(dir)).Fbuf_end { + len1 = int32(X__syscall3(tls, int64(SYS_getdents64), int64((*TDIR)(unsafe.Pointer(dir)).Ffd), int64(dir+24), Int64FromUint64(Uint64FromInt64(2048)))) + if len1 <= 0 { + if len1 < 0 && len1 != -int32(ENOENT) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = -len1 + } + return uintptr(0) + } + (*TDIR)(unsafe.Pointer(dir)).Fbuf_end = len1 + (*TDIR)(unsafe.Pointer(dir)).Fbuf_pos = 0 + } + de = dir + 24 + uintptr((*TDIR)(unsafe.Pointer(dir)).Fbuf_pos) + **(**int32)(__ccgo_up(dir + 12)) += Int32FromUint16((*Tdirent)(unsafe.Pointer(de)).Fd_reclen) + (*TDIR)(unsafe.Pointer(dir)).Ftell = (*Tdirent)(unsafe.Pointer(de)).Fd_off + return de +} + +func Xreaddir_r(tls *TLS, dir uintptr, buf uintptr, result uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v dir=%v buf=%v result=%v, (%v:)", tls, dir, buf, result, origin(2)) + defer func() { trc("-> %v", r) }() + } + var de uintptr + var errno_save, ret, v1 int32 + _, _, _, _ = de, errno_save, ret, v1 + errno_save = **(**int32)(__ccgo_up(X__errno_location(tls))) + ___lock(tls, dir+20) + **(**int32)(__ccgo_up(X__errno_location(tls))) = 0 + de = Xreaddir(tls, dir) + v1 = **(**int32)(__ccgo_up(X__errno_location(tls))) + ret = v1 + if v1 != 0 { + ___unlock(tls, dir+20) + return ret + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = errno_save + if de != 0 { + Xmemcpy(tls, buf, de, uint64((*Tdirent)(unsafe.Pointer(de)).Fd_reclen)) + } else { + buf = UintptrFromInt32(0) + } + ___unlock(tls, dir+20) + **(**uintptr)(__ccgo_up(result)) = buf + return 0 +} + +func Xrewinddir(tls *TLS, dir uintptr) { + if __ccgo_strace { + trc("tls=%v dir=%v, (%v:)", tls, dir, origin(2)) + } + var v1 int32 + _ = v1 + ___lock(tls, dir+20) + Xlseek(tls, (*TDIR)(unsafe.Pointer(dir)).Ffd, 0, SEEK_SET) + v1 = Int32FromInt32(0) + (*TDIR)(unsafe.Pointer(dir)).Fbuf_end = v1 + (*TDIR)(unsafe.Pointer(dir)).Fbuf_pos = v1 + (*TDIR)(unsafe.Pointer(dir)).Ftell = 0 + ___unlock(tls, dir+20) +} + +type t__ccgo_fp__Xscandir_2 = func(*TLS, uintptr) int32 + +type t__ccgo_fp__Xscandir_3 = func(*TLS, uintptr, uintptr) int32 + +func Xscandir(tls *TLS, path uintptr, res uintptr, __ccgo_fp_sel uintptr, __ccgo_fp_cmp uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v res=%v __ccgo_fp_sel=%v __ccgo_fp_cmp=%v, (%v:)", tls, path, res, __ccgo_fp_sel, __ccgo_fp_cmp, origin(2)) + defer func() { trc("-> %v", r) }() + } + var cnt, len1, v2 Tsize_t + var d, de, names, tmp, v1 uintptr + var old_errno int32 + _, _, _, _, _, _, _, _, _ = cnt, d, de, len1, names, old_errno, tmp, v1, v2 + d = Xopendir(tls, path) + names = uintptr(0) + cnt = uint64(0) + len1 = uint64(0) + old_errno = **(**int32)(__ccgo_up(X__errno_location(tls))) + if !(d != 0) { + return -int32(1) + } + for { + **(**int32)(__ccgo_up(X__errno_location(tls))) = 0 + v1 = Xreaddir(tls, d) + de = v1 + if !(v1 != 0) { + break + } + if __ccgo_fp_sel != 0 && !((*(*func(*TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_sel})))(tls, de) != 0) { + continue + } + if cnt >= len1 { + len1 = uint64(2)*len1 + uint64(1) + if len1 > Uint64FromUint64(0xffffffffffffffff)/Uint64FromInt64(8) { + break + } + tmp = Xrealloc(tls, names, len1*uint64(8)) + if !(tmp != 0) { + break + } + names = tmp + } + **(**uintptr)(__ccgo_up(names + uintptr(cnt)*8)) = Xmalloc(tls, uint64((*Tdirent)(unsafe.Pointer(de)).Fd_reclen)) + if !(**(**uintptr)(__ccgo_up(names + uintptr(cnt)*8)) != 0) { + break + } + v2 = cnt + cnt = cnt + 1 + Xmemcpy(tls, **(**uintptr)(__ccgo_up(names + uintptr(v2)*8)), de, uint64((*Tdirent)(unsafe.Pointer(de)).Fd_reclen)) + } + Xclosedir(tls, d) + if **(**int32)(__ccgo_up(X__errno_location(tls))) != 0 { + if names != 0 { + for { + v2 = cnt + cnt = cnt - 1 + if !(v2 > uint64(0)) { + break + } + Xfree(tls, **(**uintptr)(__ccgo_up(names + uintptr(cnt)*8))) + } + } + Xfree(tls, names) + return -int32(1) + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = old_errno + if __ccgo_fp_cmp != 0 { + Xqsort(tls, names, cnt, uint64(8), __ccgo_fp_cmp) + } + **(**uintptr)(__ccgo_up(res)) = names + return Int32FromUint64(cnt) +} + +func Xseekdir(tls *TLS, dir uintptr, off int64) { + if __ccgo_strace { + trc("tls=%v dir=%v off=%v, (%v:)", tls, dir, off, origin(2)) + } + var v1 int32 + _ = v1 + ___lock(tls, dir+20) + (*TDIR)(unsafe.Pointer(dir)).Ftell = Xlseek(tls, (*TDIR)(unsafe.Pointer(dir)).Ffd, off, SEEK_SET) + v1 = Int32FromInt32(0) + (*TDIR)(unsafe.Pointer(dir)).Fbuf_end = v1 + (*TDIR)(unsafe.Pointer(dir)).Fbuf_pos = v1 + ___unlock(tls, dir+20) +} + +func Xtelldir(tls *TLS, dir uintptr) (r int64) { + if __ccgo_strace { + trc("tls=%v dir=%v, (%v:)", tls, dir, origin(2)) + defer func() { trc("-> %v", r) }() + } + return (*TDIR)(unsafe.Pointer(dir)).Ftell +} + +func Xversionsort(tls *TLS, a uintptr, b uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v a=%v b=%v, (%v:)", tls, a, b, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrverscmp(tls, **(**uintptr)(__ccgo_up(a))+19, **(**uintptr)(__ccgo_up(b))+19) +} + +func X__reset_tls(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + var i, n Tsize_t + var mem, p uintptr + var self Tpthread_t + _, _, _, _, _ = i, mem, n, p, self + self = uintptr(___get_tp(tls)) + n = **(**Tuintptr_t)(__ccgo_up((*t__pthread)(unsafe.Pointer(self)).Fdtv)) + if n != 0 { + p = X__libc.Ftls_head + i = Uint64FromInt32(1) + for { + if !(i <= n) { + break + } + mem = uintptr(**(**Tuintptr_t)(__ccgo_up((*t__pthread)(unsafe.Pointer(self)).Fdtv + uintptr(i)*8)) - Uint64FromInt32(DTP_OFFSET)) + Xmemcpy(tls, mem, (*Ttls_module)(unsafe.Pointer(p)).Fimage, (*Ttls_module)(unsafe.Pointer(p)).Flen1) + Xmemset(tls, mem+uintptr((*Ttls_module)(unsafe.Pointer(p)).Flen1), 0, (*Ttls_module)(unsafe.Pointer(p)).Fsize-(*Ttls_module)(unsafe.Pointer(p)).Flen1) + goto _1 + _1: + ; + i = i + 1 + p = (*Ttls_module)(unsafe.Pointer(p)).Fnext + } + } +} + +func X__init_ssp(tls *TLS, entropy uintptr) { + if __ccgo_strace { + trc("tls=%v entropy=%v, (%v:)", tls, entropy, origin(2)) + } + if entropy != 0 { + Xmemcpy(tls, uintptr(unsafe.Pointer(&X__stack_chk_guard)), entropy, uint64(8)) + } else { + X__stack_chk_guard = Tuintptr_t(uintptr(unsafe.Pointer(&X__stack_chk_guard))) * uint64(1103515245) + } + /* Sacrifice 8 bits of entropy on 64bit to prevent leaking/ + * overwriting the canary via string-manipulation functions. + * The NULL byte is on the second byte so that off-by-ones can + * still be detected. Endianness is taken care of + * automatically. */ + **(**uint8)(__ccgo_up(uintptr(unsafe.Pointer(&X__stack_chk_guard)) + 1)) = uint8(0) + (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Fcanary = X__stack_chk_guard +} + +func X__stack_chk_fail(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + **(**uint8)(__ccgo_up(UintptrFromInt32(0))) = uint8(0) +} + +func X__stack_chk_fail_local(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + X__stack_chk_fail(tls) +} + +const L_INCR = 1 +const L_SET = 0 +const L_XTND = 2 + +func _dummy(tls *TLS, old uintptr, new1 uintptr) { +} + +func Xclearenv(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + var e, v1 uintptr + _, _ = e, v1 + e = Xenviron + Xenviron = uintptr(0) + if e != 0 { + for **(**uintptr)(__ccgo_up(e)) != 0 { + v1 = e + e += 8 + X__env_rm_add(tls, **(**uintptr)(__ccgo_up(v1)), uintptr(0)) + } + } + return 0 +} + +func Xgetenv(tls *TLS, name uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + var e uintptr + var l Tsize_t + _, _ = e, l + l = Uint64FromInt64(int64(X__strchrnul(tls, name, int32('='))) - int64(name)) + if l != 0 && !(**(**uint8)(__ccgo_up(name + uintptr(l))) != 0) && Xenviron != 0 { + e = Xenviron + for { + if !(**(**uintptr)(__ccgo_up(e)) != 0) { + break + } + if !(Xstrncmp(tls, name, **(**uintptr)(__ccgo_up(e)), l) != 0) && Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(e)) + uintptr(l)))) == int32('=') { + return **(**uintptr)(__ccgo_up(e)) + uintptr(l) + uintptr(1) + } + goto _1 + _1: + ; + e += 8 + } + } + return uintptr(0) +} + +func _dummy1(tls *TLS, old uintptr, new1 uintptr) { +} + +func X__putenv(tls *TLS, s uintptr, l Tsize_t, r uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v s=%v l=%v r=%v, (%v:)", tls, s, l, r, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var e, newenv, tmp, v2 uintptr + var i Tsize_t + _, _, _, _, _ = e, i, newenv, tmp, v2 + i = uint64(0) + if Xenviron != 0 { + e = Xenviron + for { + if !(**(**uintptr)(__ccgo_up(e)) != 0) { + break + } + if !(Xstrncmp(tls, s, **(**uintptr)(__ccgo_up(e)), l+uint64(1)) != 0) { + tmp = **(**uintptr)(__ccgo_up(e)) + **(**uintptr)(__ccgo_up(e)) = s + X__env_rm_add(tls, tmp, r) + return 0 + } + goto _1 + _1: + ; + e += 8 + i = i + 1 + } + } + if Xenviron == _oldenv { + newenv = Xrealloc(tls, _oldenv, uint64(8)*(i+uint64(2))) + if !(newenv != 0) { + goto oom + } + } else { + newenv = Xmalloc(tls, uint64(8)*(i+uint64(2))) + if !(newenv != 0) { + goto oom + } + if i != 0 { + Xmemcpy(tls, newenv, Xenviron, uint64(8)*i) + } + Xfree(tls, _oldenv) + } + **(**uintptr)(__ccgo_up(newenv + uintptr(i)*8)) = s + **(**uintptr)(__ccgo_up(newenv + uintptr(i+uint64(1))*8)) = uintptr(0) + v2 = newenv + _oldenv = v2 + Xenviron = v2 + if r != 0 { + X__env_rm_add(tls, uintptr(0), r) + } + return 0 + goto oom +oom: + ; + Xfree(tls, r) + return -int32(1) +} + +var _oldenv uintptr + +func Xputenv(tls *TLS, s uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l Tsize_t + _ = l + l = Uint64FromInt64(int64(X__strchrnul(tls, s, int32('='))) - int64(s)) + if !(l != 0) || !(**(**uint8)(__ccgo_up(s + uintptr(l))) != 0) { + return Xunsetenv(tls, s) + } + return X__putenv(tls, s, l, uintptr(0)) +} + +const L_cuserid = 20 +const NL_NMAX = 16 + +type Tcookie_io_functions_t = struct { + Fread uintptr + Fwrite uintptr + Fseek uintptr + Fclose1 uintptr +} + +type T_IO_cookie_io_functions_t = Tcookie_io_functions_t + +func Xsecure_getenv(tls *TLS, name uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 uintptr + _ = v1 + if X__libc.Fsecure != 0 { + v1 = UintptrFromInt32(0) + } else { + v1 = Xgetenv(tls, name) + } + return v1 +} + +func X__env_rm_add(tls *TLS, old uintptr, new1 uintptr) { + if __ccgo_strace { + trc("tls=%v old=%v new1=%v, (%v:)", tls, old, new1, origin(2)) + } + var i, v3 Tsize_t + var t, v2 uintptr + _, _, _, _ = i, t, v2, v3 + i = uint64(0) + for { + if !(i < _env_alloced_n) { + break + } + if **(**uintptr)(__ccgo_up(_env_alloced + uintptr(i)*8)) == old { + **(**uintptr)(__ccgo_up(_env_alloced + uintptr(i)*8)) = new1 + Xfree(tls, old) + return + } else { + if !(**(**uintptr)(__ccgo_up(_env_alloced + uintptr(i)*8)) != 0) && new1 != 0 { + **(**uintptr)(__ccgo_up(_env_alloced + uintptr(i)*8)) = new1 + new1 = uintptr(0) + } + } + goto _1 + _1: + ; + i = i + 1 + } + if !(new1 != 0) { + return + } + t = Xrealloc(tls, _env_alloced, uint64(8)*(_env_alloced_n+uint64(1))) + if !(t != 0) { + return + } + v2 = t + _env_alloced = v2 + v3 = _env_alloced_n + _env_alloced_n = _env_alloced_n + 1 + **(**uintptr)(__ccgo_up(v2 + uintptr(v3)*8)) = new1 +} + +var _env_alloced uintptr + +var _env_alloced_n Tsize_t + +func Xsetenv(tls *TLS, var1 uintptr, value uintptr, overwrite int32) (r int32) { + if __ccgo_strace { + trc("tls=%v var1=%v value=%v overwrite=%v, (%v:)", tls, var1, value, overwrite, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l1, l2, v1 Tsize_t + var s uintptr + var v2 bool + _, _, _, _, _ = l1, l2, s, v1, v2 + if v2 = !(var1 != 0); !v2 { + v1 = Uint64FromInt64(int64(X__strchrnul(tls, var1, int32('='))) - int64(var1)) + l1 = v1 + } + if v2 || !(v1 != 0) || **(**uint8)(__ccgo_up(var1 + uintptr(l1))) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + if !(overwrite != 0) && Xgetenv(tls, var1) != 0 { + return 0 + } + l2 = _strlen(tls, value) + s = Xmalloc(tls, l1+l2+uint64(2)) + if !(s != 0) { + return -int32(1) + } + Xmemcpy(tls, s, var1, l1) + **(**uint8)(__ccgo_up(s + uintptr(l1))) = uint8('=') + Xmemcpy(tls, s+uintptr(l1)+uintptr(1), value, l2+uint64(1)) + return X__putenv(tls, s, l1, s) +} + +func _dummy2(tls *TLS, old uintptr, new1 uintptr) { +} + +func Xunsetenv(tls *TLS, name uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + var e, eo, v2 uintptr + var l Tsize_t + _, _, _, _ = e, eo, l, v2 + l = Uint64FromInt64(int64(X__strchrnul(tls, name, int32('='))) - int64(name)) + if !(l != 0) || **(**uint8)(__ccgo_up(name + uintptr(l))) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + if Xenviron != 0 { + e = Xenviron + eo = e + for { + if !(**(**uintptr)(__ccgo_up(e)) != 0) { + break + } + if !(Xstrncmp(tls, name, **(**uintptr)(__ccgo_up(e)), l) != 0) && Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(e)) + uintptr(l)))) == int32('=') { + X__env_rm_add(tls, **(**uintptr)(__ccgo_up(e)), uintptr(0)) + } else { + if eo != e { + v2 = eo + eo += 8 + **(**uintptr)(__ccgo_up(v2)) = **(**uintptr)(__ccgo_up(e)) + } else { + eo += 8 + } + } + goto _1 + _1: + ; + e += 8 + } + if eo != e { + **(**uintptr)(__ccgo_up(eo)) = uintptr(0) + } + } + return 0 +} + +/* mips has one error code outside of the 8-bit range due to a + * historical typo, so we just remap it. */ + +type Terrmsgstr_t = struct { + Fstr0 [21]uint8 + FstrEILSEQ [22]uint8 + FstrEDOM [13]uint8 + FstrERANGE [25]uint8 + FstrENOTTY [10]uint8 + FstrEACCES [18]uint8 + FstrEPERM [24]uint8 + FstrENOENT [26]uint8 + FstrESRCH [16]uint8 + FstrEEXIST [12]uint8 + FstrEOVERFLOW [30]uint8 + FstrENOSPC [24]uint8 + FstrENOMEM [14]uint8 + FstrEBUSY [14]uint8 + FstrEINTR [24]uint8 + FstrEAGAIN [33]uint8 + FstrESPIPE [13]uint8 + FstrEXDEV [18]uint8 + FstrEROFS [22]uint8 + FstrENOTEMPTY [20]uint8 + FstrECONNRESET [25]uint8 + FstrETIMEDOUT [20]uint8 + FstrECONNREFUSED [19]uint8 + FstrEHOSTDOWN [13]uint8 + FstrEHOSTUNREACH [20]uint8 + FstrEADDRINUSE [15]uint8 + FstrEPIPE [12]uint8 + FstrEIO [10]uint8 + FstrENXIO [26]uint8 + FstrENOTBLK [22]uint8 + FstrENODEV [15]uint8 + FstrENOTDIR [16]uint8 + FstrEISDIR [15]uint8 + FstrETXTBSY [15]uint8 + FstrENOEXEC [18]uint8 + FstrEINVAL [17]uint8 + FstrE2BIG [23]uint8 + FstrELOOP [19]uint8 + FstrENAMETOOLONG [18]uint8 + FstrENFILE [30]uint8 + FstrEMFILE [30]uint8 + FstrEBADF [20]uint8 + FstrECHILD [17]uint8 + FstrEFAULT [12]uint8 + FstrEFBIG [15]uint8 + FstrEMLINK [15]uint8 + FstrENOLCK [19]uint8 + FstrEDEADLK [30]uint8 + FstrENOTRECOVERABLE [22]uint8 + FstrEOWNERDEAD [20]uint8 + FstrECANCELED [19]uint8 + FstrENOSYS [25]uint8 + FstrENOMSG [27]uint8 + FstrEIDRM [19]uint8 + FstrENOSTR [20]uint8 + FstrENODATA [18]uint8 + FstrETIME [15]uint8 + FstrENOSR [25]uint8 + FstrENOLINK [22]uint8 + FstrEPROTO [15]uint8 + FstrEBADMSG [12]uint8 + FstrEBADFD [29]uint8 + FstrENOTSOCK [13]uint8 + FstrEDESTADDRREQ [29]uint8 + FstrEMSGSIZE [18]uint8 + FstrEPROTOTYPE [31]uint8 + FstrENOPROTOOPT [23]uint8 + FstrEPROTONOSUPPORT [23]uint8 + FstrESOCKTNOSUPPORT [26]uint8 + FstrENOTSUP [14]uint8 + FstrEPFNOSUPPORT [30]uint8 + FstrEAFNOSUPPORT [41]uint8 + FstrEADDRNOTAVAIL [22]uint8 + FstrENETDOWN [16]uint8 + FstrENETUNREACH [20]uint8 + FstrENETRESET [28]uint8 + FstrECONNABORTED [19]uint8 + FstrENOBUFS [26]uint8 + FstrEISCONN [20]uint8 + FstrENOTCONN [21]uint8 + FstrESHUTDOWN [34]uint8 + FstrEALREADY [30]uint8 + FstrEINPROGRESS [22]uint8 + FstrESTALE [18]uint8 + FstrEREMOTEIO [17]uint8 + FstrEDQUOT [15]uint8 + FstrENOMEDIUM [16]uint8 + FstrEMEDIUMTYPE [18]uint8 + FstrEMULTIHOP [19]uint8 + FstrENOKEY [27]uint8 + FstrEKEYEXPIRED [16]uint8 + FstrEKEYREVOKED [21]uint8 + FstrEKEYREJECTED [28]uint8 +} + +/* mips has one error code outside of the 8-bit range due to a + * historical typo, so we just remap it. */ + +var _errmsgstr = Terrmsgstr_t{ + Fstr0: [21]uint8{'N', 'o', ' ', 'e', 'r', 'r', 'o', 'r', ' ', 'i', 'n', 'f', 'o', 'r', 'm', 'a', 't', 'i', 'o', 'n'}, + FstrEILSEQ: [22]uint8{'I', 'l', 'l', 'e', 'g', 'a', 'l', ' ', 'b', 'y', 't', 'e', ' ', 's', 'e', 'q', 'u', 'e', 'n', 'c', 'e'}, + FstrEDOM: [13]uint8{'D', 'o', 'm', 'a', 'i', 'n', ' ', 'e', 'r', 'r', 'o', 'r'}, + FstrERANGE: [25]uint8{'R', 'e', 's', 'u', 'l', 't', ' ', 'n', 'o', 't', ' ', 'r', 'e', 'p', 'r', 'e', 's', 'e', 'n', 't', 'a', 'b', 'l', 'e'}, + FstrENOTTY: [10]uint8{'N', 'o', 't', ' ', 'a', ' ', 't', 't', 'y'}, + FstrEACCES: [18]uint8{'P', 'e', 'r', 'm', 'i', 's', 's', 'i', 'o', 'n', ' ', 'd', 'e', 'n', 'i', 'e', 'd'}, + FstrEPERM: [24]uint8{'O', 'p', 'e', 'r', 'a', 't', 'i', 'o', 'n', ' ', 'n', 'o', 't', ' ', 'p', 'e', 'r', 'm', 'i', 't', 't', 'e', 'd'}, + FstrENOENT: [26]uint8{'N', 'o', ' ', 's', 'u', 'c', 'h', ' ', 'f', 'i', 'l', 'e', ' ', 'o', 'r', ' ', 'd', 'i', 'r', 'e', 'c', 't', 'o', 'r', 'y'}, + FstrESRCH: [16]uint8{'N', 'o', ' ', 's', 'u', 'c', 'h', ' ', 'p', 'r', 'o', 'c', 'e', 's', 's'}, + FstrEEXIST: [12]uint8{'F', 'i', 'l', 'e', ' ', 'e', 'x', 'i', 's', 't', 's'}, + FstrEOVERFLOW: [30]uint8{'V', 'a', 'l', 'u', 'e', ' ', 't', 'o', 'o', ' ', 'l', 'a', 'r', 'g', 'e', ' ', 'f', 'o', 'r', ' ', 'd', 'a', 't', 'a', ' ', 't', 'y', 'p', 'e'}, + FstrENOSPC: [24]uint8{'N', 'o', ' ', 's', 'p', 'a', 'c', 'e', ' ', 'l', 'e', 'f', 't', ' ', 'o', 'n', ' ', 'd', 'e', 'v', 'i', 'c', 'e'}, + FstrENOMEM: [14]uint8{'O', 'u', 't', ' ', 'o', 'f', ' ', 'm', 'e', 'm', 'o', 'r', 'y'}, + FstrEBUSY: [14]uint8{'R', 'e', 's', 'o', 'u', 'r', 'c', 'e', ' ', 'b', 'u', 's', 'y'}, + FstrEINTR: [24]uint8{'I', 'n', 't', 'e', 'r', 'r', 'u', 'p', 't', 'e', 'd', ' ', 's', 'y', 's', 't', 'e', 'm', ' ', 'c', 'a', 'l', 'l'}, + FstrEAGAIN: [33]uint8{'R', 'e', 's', 'o', 'u', 'r', 'c', 'e', ' ', 't', 'e', 'm', 'p', 'o', 'r', 'a', 'r', 'i', 'l', 'y', ' ', 'u', 'n', 'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e'}, + FstrESPIPE: [13]uint8{'I', 'n', 'v', 'a', 'l', 'i', 'd', ' ', 's', 'e', 'e', 'k'}, + FstrEXDEV: [18]uint8{'C', 'r', 'o', 's', 's', '-', 'd', 'e', 'v', 'i', 'c', 'e', ' ', 'l', 'i', 'n', 'k'}, + FstrEROFS: [22]uint8{'R', 'e', 'a', 'd', '-', 'o', 'n', 'l', 'y', ' ', 'f', 'i', 'l', 'e', ' ', 's', 'y', 's', 't', 'e', 'm'}, + FstrENOTEMPTY: [20]uint8{'D', 'i', 'r', 'e', 'c', 't', 'o', 'r', 'y', ' ', 'n', 'o', 't', ' ', 'e', 'm', 'p', 't', 'y'}, + FstrECONNRESET: [25]uint8{'C', 'o', 'n', 'n', 'e', 'c', 't', 'i', 'o', 'n', ' ', 'r', 'e', 's', 'e', 't', ' ', 'b', 'y', ' ', 'p', 'e', 'e', 'r'}, + FstrETIMEDOUT: [20]uint8{'O', 'p', 'e', 'r', 'a', 't', 'i', 'o', 'n', ' ', 't', 'i', 'm', 'e', 'd', ' ', 'o', 'u', 't'}, + FstrECONNREFUSED: [19]uint8{'C', 'o', 'n', 'n', 'e', 'c', 't', 'i', 'o', 'n', ' ', 'r', 'e', 'f', 'u', 's', 'e', 'd'}, + FstrEHOSTDOWN: [13]uint8{'H', 'o', 's', 't', ' ', 'i', 's', ' ', 'd', 'o', 'w', 'n'}, + FstrEHOSTUNREACH: [20]uint8{'H', 'o', 's', 't', ' ', 'i', 's', ' ', 'u', 'n', 'r', 'e', 'a', 'c', 'h', 'a', 'b', 'l', 'e'}, + FstrEADDRINUSE: [15]uint8{'A', 'd', 'd', 'r', 'e', 's', 's', ' ', 'i', 'n', ' ', 'u', 's', 'e'}, + FstrEPIPE: [12]uint8{'B', 'r', 'o', 'k', 'e', 'n', ' ', 'p', 'i', 'p', 'e'}, + FstrEIO: [10]uint8{'I', '/', 'O', ' ', 'e', 'r', 'r', 'o', 'r'}, + FstrENXIO: [26]uint8{'N', 'o', ' ', 's', 'u', 'c', 'h', ' ', 'd', 'e', 'v', 'i', 'c', 'e', ' ', 'o', 'r', ' ', 'a', 'd', 'd', 'r', 'e', 's', 's'}, + FstrENOTBLK: [22]uint8{'B', 'l', 'o', 'c', 'k', ' ', 'd', 'e', 'v', 'i', 'c', 'e', ' ', 'r', 'e', 'q', 'u', 'i', 'r', 'e', 'd'}, + FstrENODEV: [15]uint8{'N', 'o', ' ', 's', 'u', 'c', 'h', ' ', 'd', 'e', 'v', 'i', 'c', 'e'}, + FstrENOTDIR: [16]uint8{'N', 'o', 't', ' ', 'a', ' ', 'd', 'i', 'r', 'e', 'c', 't', 'o', 'r', 'y'}, + FstrEISDIR: [15]uint8{'I', 's', ' ', 'a', ' ', 'd', 'i', 'r', 'e', 'c', 't', 'o', 'r', 'y'}, + FstrETXTBSY: [15]uint8{'T', 'e', 'x', 't', ' ', 'f', 'i', 'l', 'e', ' ', 'b', 'u', 's', 'y'}, + FstrENOEXEC: [18]uint8{'E', 'x', 'e', 'c', ' ', 'f', 'o', 'r', 'm', 'a', 't', ' ', 'e', 'r', 'r', 'o', 'r'}, + FstrEINVAL: [17]uint8{'I', 'n', 'v', 'a', 'l', 'i', 'd', ' ', 'a', 'r', 'g', 'u', 'm', 'e', 'n', 't'}, + FstrE2BIG: [23]uint8{'A', 'r', 'g', 'u', 'm', 'e', 'n', 't', ' ', 'l', 'i', 's', 't', ' ', 't', 'o', 'o', ' ', 'l', 'o', 'n', 'g'}, + FstrELOOP: [19]uint8{'S', 'y', 'm', 'b', 'o', 'l', 'i', 'c', ' ', 'l', 'i', 'n', 'k', ' ', 'l', 'o', 'o', 'p'}, + FstrENAMETOOLONG: [18]uint8{'F', 'i', 'l', 'e', 'n', 'a', 'm', 'e', ' ', 't', 'o', 'o', ' ', 'l', 'o', 'n', 'g'}, + FstrENFILE: [30]uint8{'T', 'o', 'o', ' ', 'm', 'a', 'n', 'y', ' ', 'o', 'p', 'e', 'n', ' ', 'f', 'i', 'l', 'e', 's', ' ', 'i', 'n', ' ', 's', 'y', 's', 't', 'e', 'm'}, + FstrEMFILE: [30]uint8{'N', 'o', ' ', 'f', 'i', 'l', 'e', ' ', 'd', 'e', 's', 'c', 'r', 'i', 'p', 't', 'o', 'r', 's', ' ', 'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e'}, + FstrEBADF: [20]uint8{'B', 'a', 'd', ' ', 'f', 'i', 'l', 'e', ' ', 'd', 'e', 's', 'c', 'r', 'i', 'p', 't', 'o', 'r'}, + FstrECHILD: [17]uint8{'N', 'o', ' ', 'c', 'h', 'i', 'l', 'd', ' ', 'p', 'r', 'o', 'c', 'e', 's', 's'}, + FstrEFAULT: [12]uint8{'B', 'a', 'd', ' ', 'a', 'd', 'd', 'r', 'e', 's', 's'}, + FstrEFBIG: [15]uint8{'F', 'i', 'l', 'e', ' ', 't', 'o', 'o', ' ', 'l', 'a', 'r', 'g', 'e'}, + FstrEMLINK: [15]uint8{'T', 'o', 'o', ' ', 'm', 'a', 'n', 'y', ' ', 'l', 'i', 'n', 'k', 's'}, + FstrENOLCK: [19]uint8{'N', 'o', ' ', 'l', 'o', 'c', 'k', 's', ' ', 'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e'}, + FstrEDEADLK: [30]uint8{'R', 'e', 's', 'o', 'u', 'r', 'c', 'e', ' ', 'd', 'e', 'a', 'd', 'l', 'o', 'c', 'k', ' ', 'w', 'o', 'u', 'l', 'd', ' ', 'o', 'c', 'c', 'u', 'r'}, + FstrENOTRECOVERABLE: [22]uint8{'S', 't', 'a', 't', 'e', ' ', 'n', 'o', 't', ' ', 'r', 'e', 'c', 'o', 'v', 'e', 'r', 'a', 'b', 'l', 'e'}, + FstrEOWNERDEAD: [20]uint8{'P', 'r', 'e', 'v', 'i', 'o', 'u', 's', ' ', 'o', 'w', 'n', 'e', 'r', ' ', 'd', 'i', 'e', 'd'}, + FstrECANCELED: [19]uint8{'O', 'p', 'e', 'r', 'a', 't', 'i', 'o', 'n', ' ', 'c', 'a', 'n', 'c', 'e', 'l', 'e', 'd'}, + FstrENOSYS: [25]uint8{'F', 'u', 'n', 'c', 't', 'i', 'o', 'n', ' ', 'n', 'o', 't', ' ', 'i', 'm', 'p', 'l', 'e', 'm', 'e', 'n', 't', 'e', 'd'}, + FstrENOMSG: [27]uint8{'N', 'o', ' ', 'm', 'e', 's', 's', 'a', 'g', 'e', ' ', 'o', 'f', ' ', 'd', 'e', 's', 'i', 'r', 'e', 'd', ' ', 't', 'y', 'p', 'e'}, + FstrEIDRM: [19]uint8{'I', 'd', 'e', 'n', 't', 'i', 'f', 'i', 'e', 'r', ' ', 'r', 'e', 'm', 'o', 'v', 'e', 'd'}, + FstrENOSTR: [20]uint8{'D', 'e', 'v', 'i', 'c', 'e', ' ', 'n', 'o', 't', ' ', 'a', ' ', 's', 't', 'r', 'e', 'a', 'm'}, + FstrENODATA: [18]uint8{'N', 'o', ' ', 'd', 'a', 't', 'a', ' ', 'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e'}, + FstrETIME: [15]uint8{'D', 'e', 'v', 'i', 'c', 'e', ' ', 't', 'i', 'm', 'e', 'o', 'u', 't'}, + FstrENOSR: [25]uint8{'O', 'u', 't', ' ', 'o', 'f', ' ', 's', 't', 'r', 'e', 'a', 'm', 's', ' ', 'r', 'e', 's', 'o', 'u', 'r', 'c', 'e', 's'}, + FstrENOLINK: [22]uint8{'L', 'i', 'n', 'k', ' ', 'h', 'a', 's', ' ', 'b', 'e', 'e', 'n', ' ', 's', 'e', 'v', 'e', 'r', 'e', 'd'}, + FstrEPROTO: [15]uint8{'P', 'r', 'o', 't', 'o', 'c', 'o', 'l', ' ', 'e', 'r', 'r', 'o', 'r'}, + FstrEBADMSG: [12]uint8{'B', 'a', 'd', ' ', 'm', 'e', 's', 's', 'a', 'g', 'e'}, + FstrEBADFD: [29]uint8{'F', 'i', 'l', 'e', ' ', 'd', 'e', 's', 'c', 'r', 'i', 'p', 't', 'o', 'r', ' ', 'i', 'n', ' ', 'b', 'a', 'd', ' ', 's', 't', 'a', 't', 'e'}, + FstrENOTSOCK: [13]uint8{'N', 'o', 't', ' ', 'a', ' ', 's', 'o', 'c', 'k', 'e', 't'}, + FstrEDESTADDRREQ: [29]uint8{'D', 'e', 's', 't', 'i', 'n', 'a', 't', 'i', 'o', 'n', ' ', 'a', 'd', 'd', 'r', 'e', 's', 's', ' ', 'r', 'e', 'q', 'u', 'i', 'r', 'e', 'd'}, + FstrEMSGSIZE: [18]uint8{'M', 'e', 's', 's', 'a', 'g', 'e', ' ', 't', 'o', 'o', ' ', 'l', 'a', 'r', 'g', 'e'}, + FstrEPROTOTYPE: [31]uint8{'P', 'r', 'o', 't', 'o', 'c', 'o', 'l', ' ', 'w', 'r', 'o', 'n', 'g', ' ', 't', 'y', 'p', 'e', ' ', 'f', 'o', 'r', ' ', 's', 'o', 'c', 'k', 'e', 't'}, + FstrENOPROTOOPT: [23]uint8{'P', 'r', 'o', 't', 'o', 'c', 'o', 'l', ' ', 'n', 'o', 't', ' ', 'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e'}, + FstrEPROTONOSUPPORT: [23]uint8{'P', 'r', 'o', 't', 'o', 'c', 'o', 'l', ' ', 'n', 'o', 't', ' ', 's', 'u', 'p', 'p', 'o', 'r', 't', 'e', 'd'}, + FstrESOCKTNOSUPPORT: [26]uint8{'S', 'o', 'c', 'k', 'e', 't', ' ', 't', 'y', 'p', 'e', ' ', 'n', 'o', 't', ' ', 's', 'u', 'p', 'p', 'o', 'r', 't', 'e', 'd'}, + FstrENOTSUP: [14]uint8{'N', 'o', 't', ' ', 's', 'u', 'p', 'p', 'o', 'r', 't', 'e', 'd'}, + FstrEPFNOSUPPORT: [30]uint8{'P', 'r', 'o', 't', 'o', 'c', 'o', 'l', ' ', 'f', 'a', 'm', 'i', 'l', 'y', ' ', 'n', 'o', 't', ' ', 's', 'u', 'p', 'p', 'o', 'r', 't', 'e', 'd'}, + FstrEAFNOSUPPORT: [41]uint8{'A', 'd', 'd', 'r', 'e', 's', 's', ' ', 'f', 'a', 'm', 'i', 'l', 'y', ' ', 'n', 'o', 't', ' ', 's', 'u', 'p', 'p', 'o', 'r', 't', 'e', 'd', ' ', 'b', 'y', ' ', 'p', 'r', 'o', 't', 'o', 'c', 'o', 'l'}, + FstrEADDRNOTAVAIL: [22]uint8{'A', 'd', 'd', 'r', 'e', 's', 's', ' ', 'n', 'o', 't', ' ', 'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e'}, + FstrENETDOWN: [16]uint8{'N', 'e', 't', 'w', 'o', 'r', 'k', ' ', 'i', 's', ' ', 'd', 'o', 'w', 'n'}, + FstrENETUNREACH: [20]uint8{'N', 'e', 't', 'w', 'o', 'r', 'k', ' ', 'u', 'n', 'r', 'e', 'a', 'c', 'h', 'a', 'b', 'l', 'e'}, + FstrENETRESET: [28]uint8{'C', 'o', 'n', 'n', 'e', 'c', 't', 'i', 'o', 'n', ' ', 'r', 'e', 's', 'e', 't', ' ', 'b', 'y', ' ', 'n', 'e', 't', 'w', 'o', 'r', 'k'}, + FstrECONNABORTED: [19]uint8{'C', 'o', 'n', 'n', 'e', 'c', 't', 'i', 'o', 'n', ' ', 'a', 'b', 'o', 'r', 't', 'e', 'd'}, + FstrENOBUFS: [26]uint8{'N', 'o', ' ', 'b', 'u', 'f', 'f', 'e', 'r', ' ', 's', 'p', 'a', 'c', 'e', ' ', 'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e'}, + FstrEISCONN: [20]uint8{'S', 'o', 'c', 'k', 'e', 't', ' ', 'i', 's', ' ', 'c', 'o', 'n', 'n', 'e', 'c', 't', 'e', 'd'}, + FstrENOTCONN: [21]uint8{'S', 'o', 'c', 'k', 'e', 't', ' ', 'n', 'o', 't', ' ', 'c', 'o', 'n', 'n', 'e', 'c', 't', 'e', 'd'}, + FstrESHUTDOWN: [34]uint8{'C', 'a', 'n', 'n', 'o', 't', ' ', 's', 'e', 'n', 'd', ' ', 'a', 'f', 't', 'e', 'r', ' ', 's', 'o', 'c', 'k', 'e', 't', ' ', 's', 'h', 'u', 't', 'd', 'o', 'w', 'n'}, + FstrEALREADY: [30]uint8{'O', 'p', 'e', 'r', 'a', 't', 'i', 'o', 'n', ' ', 'a', 'l', 'r', 'e', 'a', 'd', 'y', ' ', 'i', 'n', ' ', 'p', 'r', 'o', 'g', 'r', 'e', 's', 's'}, + FstrEINPROGRESS: [22]uint8{'O', 'p', 'e', 'r', 'a', 't', 'i', 'o', 'n', ' ', 'i', 'n', ' ', 'p', 'r', 'o', 'g', 'r', 'e', 's', 's'}, + FstrESTALE: [18]uint8{'S', 't', 'a', 'l', 'e', ' ', 'f', 'i', 'l', 'e', ' ', 'h', 'a', 'n', 'd', 'l', 'e'}, + FstrEREMOTEIO: [17]uint8{'R', 'e', 'm', 'o', 't', 'e', ' ', 'I', '/', 'O', ' ', 'e', 'r', 'r', 'o', 'r'}, + FstrEDQUOT: [15]uint8{'Q', 'u', 'o', 't', 'a', ' ', 'e', 'x', 'c', 'e', 'e', 'd', 'e', 'd'}, + FstrENOMEDIUM: [16]uint8{'N', 'o', ' ', 'm', 'e', 'd', 'i', 'u', 'm', ' ', 'f', 'o', 'u', 'n', 'd'}, + FstrEMEDIUMTYPE: [18]uint8{'W', 'r', 'o', 'n', 'g', ' ', 'm', 'e', 'd', 'i', 'u', 'm', ' ', 't', 'y', 'p', 'e'}, + FstrEMULTIHOP: [19]uint8{'M', 'u', 'l', 't', 'i', 'h', 'o', 'p', ' ', 'a', 't', 't', 'e', 'm', 'p', 't', 'e', 'd'}, + FstrENOKEY: [27]uint8{'R', 'e', 'q', 'u', 'i', 'r', 'e', 'd', ' ', 'k', 'e', 'y', ' ', 'n', 'o', 't', ' ', 'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e'}, + FstrEKEYEXPIRED: [16]uint8{'K', 'e', 'y', ' ', 'h', 'a', 's', ' ', 'e', 'x', 'p', 'i', 'r', 'e', 'd'}, + FstrEKEYREVOKED: [21]uint8{'K', 'e', 'y', ' ', 'h', 'a', 's', ' ', 'b', 'e', 'e', 'n', ' ', 'r', 'e', 'v', 'o', 'k', 'e', 'd'}, + FstrEKEYREJECTED: [28]uint8{'K', 'e', 'y', ' ', 'w', 'a', 's', ' ', 'r', 'e', 'j', 'e', 'c', 't', 'e', 'd', ' ', 'b', 'y', ' ', 's', 'e', 'r', 'v', 'i', 'c', 'e'}, +} + +var _errmsgidx = [132]uint16{ + 1: uint16(uint64(UintptrFromInt32(0) + 109)), + 2: uint16(uint64(UintptrFromInt32(0) + 133)), + 3: uint16(uint64(UintptrFromInt32(0) + 159)), + 4: uint16(uint64(UintptrFromInt32(0) + 269)), + 5: uint16(uint64(UintptrFromInt32(0) + 523)), + 6: uint16(uint64(UintptrFromInt32(0) + 533)), + 7: uint16(uint64(UintptrFromInt32(0) + 677)), + 8: uint16(uint64(UintptrFromInt32(0) + 642)), + 9: uint16(uint64(UintptrFromInt32(0) + 797)), + 10: uint16(uint64(UintptrFromInt32(0) + 817)), + 11: uint16(uint64(UintptrFromInt32(0) + 293)), + 12: uint16(uint64(UintptrFromInt32(0) + 241)), + 13: uint16(uint64(UintptrFromInt32(0) + 91)), + 14: uint16(uint64(UintptrFromInt32(0) + 834)), + 15: uint16(uint64(UintptrFromInt32(0) + 559)), + 16: uint16(uint64(UintptrFromInt32(0) + 255)), + 17: uint16(uint64(UintptrFromInt32(0) + 175)), + 18: uint16(uint64(UintptrFromInt32(0) + 339)), + 19: uint16(uint64(UintptrFromInt32(0) + 581)), + 20: uint16(uint64(UintptrFromInt32(0) + 596)), + 21: uint16(uint64(UintptrFromInt32(0) + 612)), + 22: uint16(uint64(UintptrFromInt32(0) + 660)), + 23: uint16(uint64(UintptrFromInt32(0) + 737)), + 24: uint16(uint64(UintptrFromInt32(0) + 767)), + 25: uint16(uint64(UintptrFromInt32(0) + 81)), + 26: uint16(uint64(UintptrFromInt32(0) + 627)), + 27: uint16(uint64(UintptrFromInt32(0) + 846)), + 28: uint16(uint64(UintptrFromInt32(0) + 217)), + 29: uint16(uint64(UintptrFromInt32(0) + 326)), + 30: uint16(uint64(UintptrFromInt32(0) + 357)), + 31: uint16(uint64(UintptrFromInt32(0) + 861)), + 32: uint16(uint64(UintptrFromInt32(0) + 511)), + 33: uint16(uint64(UintptrFromInt32(0) + 43)), + 34: uint16(uint64(UintptrFromInt32(0) + 56)), + 35: uint16(uint64(UintptrFromInt32(0) + 895)), + 36: uint16(uint64(UintptrFromInt32(0) + 719)), + 37: uint16(uint64(UintptrFromInt32(0) + 876)), + 38: uint16(uint64(UintptrFromInt32(0) + 986)), + 39: uint16(uint64(UintptrFromInt32(0) + 379)), + 40: uint16(uint64(UintptrFromInt32(0) + 700)), + 42: uint16(uint64(UintptrFromInt32(0) + 1011)), + 43: uint16(uint64(UintptrFromInt32(0) + 1038)), + 60: uint16(uint64(UintptrFromInt32(0) + 1057)), + 61: uint16(uint64(UintptrFromInt32(0) + 1077)), + 62: uint16(uint64(UintptrFromInt32(0) + 1095)), + 63: uint16(uint64(UintptrFromInt32(0) + 1110)), + 67: uint16(uint64(UintptrFromInt32(0) + 1135)), + 71: uint16(uint64(UintptrFromInt32(0) + 1157)), + 72: uint16(uint64(UintptrFromInt32(0) + 1803)), + 74: uint16(uint64(UintptrFromInt32(0) + 1172)), + 75: uint16(uint64(UintptrFromInt32(0) + 187)), + 77: uint16(uint64(UintptrFromInt32(0) + 1184)), + 84: uint16(uint64(UintptrFromInt32(0) + 21)), + 88: uint16(uint64(UintptrFromInt32(0) + 1213)), + 89: uint16(uint64(UintptrFromInt32(0) + 1226)), + 90: uint16(uint64(UintptrFromInt32(0) + 1255)), + 91: uint16(uint64(UintptrFromInt32(0) + 1273)), + 92: uint16(uint64(UintptrFromInt32(0) + 1304)), + 93: uint16(uint64(UintptrFromInt32(0) + 1327)), + 94: uint16(uint64(UintptrFromInt32(0) + 1350)), + 95: uint16(uint64(UintptrFromInt32(0) + 1376)), + 96: uint16(uint64(UintptrFromInt32(0) + 1390)), + 97: uint16(uint64(UintptrFromInt32(0) + 1420)), + 98: uint16(uint64(UintptrFromInt32(0) + 496)), + 99: uint16(uint64(UintptrFromInt32(0) + 1461)), + 100: uint16(uint64(UintptrFromInt32(0) + 1483)), + 101: uint16(uint64(UintptrFromInt32(0) + 1499)), + 102: uint16(uint64(UintptrFromInt32(0) + 1519)), + 103: uint16(uint64(UintptrFromInt32(0) + 1547)), + 104: uint16(uint64(UintptrFromInt32(0) + 399)), + 105: uint16(uint64(UintptrFromInt32(0) + 1566)), + 106: uint16(uint64(UintptrFromInt32(0) + 1592)), + 107: uint16(uint64(UintptrFromInt32(0) + 1612)), + 108: uint16(uint64(UintptrFromInt32(0) + 1633)), + 110: uint16(uint64(UintptrFromInt32(0) + 424)), + 111: uint16(uint64(UintptrFromInt32(0) + 444)), + 112: uint16(uint64(UintptrFromInt32(0) + 463)), + 113: uint16(uint64(UintptrFromInt32(0) + 476)), + 114: uint16(uint64(UintptrFromInt32(0) + 1667)), + 115: uint16(uint64(UintptrFromInt32(0) + 1697)), + 116: uint16(uint64(UintptrFromInt32(0) + 1719)), + 121: uint16(uint64(UintptrFromInt32(0) + 1737)), + 122: uint16(uint64(UintptrFromInt32(0) + 1754)), + 123: uint16(uint64(UintptrFromInt32(0) + 1769)), + 124: uint16(uint64(UintptrFromInt32(0) + 1785)), + 125: uint16(uint64(UintptrFromInt32(0) + 967)), + 126: uint16(uint64(UintptrFromInt32(0) + 1822)), + 127: uint16(uint64(UintptrFromInt32(0) + 1849)), + 128: uint16(uint64(UintptrFromInt32(0) + 1865)), + 129: uint16(uint64(UintptrFromInt32(0) + 1886)), + 130: uint16(uint64(UintptrFromInt32(0) + 947)), + 131: uint16(uint64(UintptrFromInt32(0) + 925)), +} + +func X__strerror_l(tls *TLS, e int32, loc Tlocale_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v e=%v loc=%v, (%v:)", tls, e, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + var s uintptr + _ = s + if Uint64FromInt32(e) >= Uint64FromInt64(264)/Uint64FromInt64(2) { + e = 0 + } + s = uintptr(unsafe.Pointer(&_errmsgstr)) + uintptr(_errmsgidx[e]) + return X__lctrans(tls, s, **(**uintptr)(__ccgo_up(loc + 5*8))) +} + +func Xstrerror(tls *TLS, e int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v e=%v, (%v:)", tls, e, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__strerror_l(tls, e, (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale) +} + +func Xstrerror_l(tls *TLS, e int32, loc Tlocale_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v e=%v loc=%v, (%v:)", tls, e, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__strerror_l(tls, e, loc) +} + +func X_Exit(tls *TLS, ec int32) { + if __ccgo_strace { + trc("tls=%v ec=%v, (%v:)", tls, ec, origin(2)) + } + X__syscall1(tls, int64(SYS_exit_group), int64(ec)) + for { + X__syscall1(tls, int64(SYS_exit), int64(ec)) + goto _1 + _1: + } +} + +func X__assert_fail(tls *TLS, expr uintptr, file uintptr, line int32, func1 uintptr) { + if __ccgo_strace { + trc("tls=%v expr=%v file=%v line=%v func1=%v, (%v:)", tls, expr, file, line, func1, origin(2)) + } + bp := tls.Alloc(48) + defer tls.Free(48) + Xfprintf(tls, uintptr(unsafe.Pointer(&X__stderr_FILE)), __ccgo_ts+212, VaList(bp+8, expr, file, func1, line)) + Xabort(tls) +} + +const COUNT = 32 + +var _funcs [32]uintptr +var _count int32 +var _lock [1]int32 + +func X__funcs_on_quick_exit(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + var func1 uintptr + var v1 int32 + _, _ = func1, v1 + ___lock(tls, uintptr(unsafe.Pointer(&_lock))) + for _count > 0 { + _count = _count - 1 + v1 = _count + func1 = _funcs[v1] + ___unlock(tls, uintptr(unsafe.Pointer(&_lock))) + (*(*func(*TLS))(unsafe.Pointer(&struct{ uintptr }{func1})))(tls) + ___lock(tls, uintptr(unsafe.Pointer(&_lock))) + } +} + +type t__ccgo_fp__Xat_quick_exit_0 = func(*TLS) + +func Xat_quick_exit(tls *TLS, __ccgo_fp_func uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v __ccgo_fp_func=%v, (%v:)", tls, __ccgo_fp_func, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v1 int32 + _, _ = r, v1 + r = 0 + ___lock(tls, uintptr(unsafe.Pointer(&_lock))) + if _count == int32(32) { + r = -int32(1) + } else { + v1 = _count + _count = _count + 1 + _funcs[v1] = __ccgo_fp_func + } + ___unlock(tls, uintptr(unsafe.Pointer(&_lock))) + return r +} + +func _dummy3(tls *TLS) { +} + +func Xquick_exit(tls *TLS, code int32) { + if __ccgo_strace { + trc("tls=%v code=%v, (%v:)", tls, code, origin(2)) + } + X__funcs_on_quick_exit(tls) + X_Exit(tls, code) +} + +func Xcreat(tls *TLS, filename uintptr, mode Tmode_t) (r int32) { + if __ccgo_strace { + trc("tls=%v filename=%v mode=%v, (%v:)", tls, filename, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + return Xopen(tls, filename, Int32FromInt32(O_CREAT)|Int32FromInt32(O_WRONLY)|Int32FromInt32(O_TRUNC), VaList(bp+8, mode)) +} + +func Xfcntl(tls *TLS, fd int32, cmd int32, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v cmd=%v va=%v, (%v:)", tls, fd, cmd, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ap Tva_list + var arg uint64 + var ret, ret1, v1 int32 + var _ /* ex at bp+0 */ Tf_owner_ex + _, _, _, _, _ = ap, arg, ret, ret1, v1 + ap = va + arg = VaUint64(&ap) + _ = ap + if cmd == int32(F_SETFL) { + arg = arg | uint64(O_LARGEFILE) + } + if cmd == int32(F_SETLKW) { + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_fcntl), int64(fd), int64(cmd), int64(uintptr(arg)), 0, 0, 0)))) + } + if cmd == int32(F_GETOWN) { + ret = int32(X__syscall3(tls, int64(SYS_fcntl), int64(fd), int64(Int32FromInt32(F_GETOWN_EX)), int64(bp))) + if ret == -int32(EINVAL) { + return int32(X__syscall3(tls, int64(SYS_fcntl), int64(fd), int64(cmd), int64(uintptr(arg)))) + } + if ret != 0 { + return int32(X__syscall_ret(tls, Uint64FromInt32(ret))) + } + if (**(**Tf_owner_ex)(__ccgo_up(bp))).Ftype1 == int32(F_OWNER_PGRP) { + v1 = -(**(**Tf_owner_ex)(__ccgo_up(bp))).Fpid + } else { + v1 = (**(**Tf_owner_ex)(__ccgo_up(bp))).Fpid + } + return v1 + } + if cmd == int32(F_DUPFD_CLOEXEC) { + ret1 = int32(X__syscall3(tls, int64(SYS_fcntl), int64(fd), int64(Int32FromInt32(F_DUPFD_CLOEXEC)), Int64FromUint64(arg))) + if ret1 != -int32(EINVAL) { + if ret1 >= 0 { + X__syscall3(tls, int64(SYS_fcntl), int64(ret1), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + } + return int32(X__syscall_ret(tls, Uint64FromInt32(ret1))) + } + ret1 = int32(X__syscall3(tls, int64(SYS_fcntl), int64(fd), int64(Int32FromInt32(F_DUPFD_CLOEXEC)), int64(Int32FromInt32(0)))) + if ret1 != -int32(EINVAL) { + if ret1 >= 0 { + X__syscall1(tls, int64(SYS_close), int64(ret1)) + } + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL)))) + } + ret1 = int32(X__syscall3(tls, int64(SYS_fcntl), int64(fd), int64(Int32FromInt32(F_DUPFD)), Int64FromUint64(arg))) + if ret1 >= 0 { + X__syscall3(tls, int64(SYS_fcntl), int64(ret1), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + } + return int32(X__syscall_ret(tls, Uint64FromInt32(ret1))) + } + switch cmd { + case int32(F_SETLK): + fallthrough + case int32(F_GETLK): + fallthrough + case int32(F_GETOWN_EX): + fallthrough + case int32(F_SETOWN_EX): + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_fcntl), int64(fd), int64(cmd), int64(uintptr(arg)))))) + default: + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_fcntl), int64(fd), int64(cmd), Int64FromUint64(arg))))) + } + return r +} + +func Xopen(tls *TLS, filename uintptr, flags int32, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v filename=%v flags=%v va=%v, (%v:)", tls, filename, flags, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var fd int32 + var mode Tmode_t + _, _, _ = ap, fd, mode + mode = uint32(0) + if flags&int32(O_CREAT) != 0 || flags&int32(O_TMPFILE) == int32(O_TMPFILE) { + ap = va + mode = VaUint32(&ap) + _ = ap + } + fd = int32(___syscall_cp(tls, int64(SYS_openat), int64(-Int32FromInt32(100)), int64(filename), int64(flags|Int32FromInt32(O_LARGEFILE)), Int64FromUint32(mode), 0, 0)) + if fd >= 0 && flags&int32(O_CLOEXEC) != 0 { + X__syscall3(tls, int64(SYS_fcntl), int64(fd), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + } + return int32(X__syscall_ret(tls, Uint64FromInt32(fd))) +} + +func Xopenat(tls *TLS, fd int32, filename uintptr, flags int32, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v filename=%v flags=%v va=%v, (%v:)", tls, fd, filename, flags, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var mode Tmode_t + _, _ = ap, mode + mode = uint32(0) + if flags&int32(O_CREAT) != 0 || flags&int32(O_TMPFILE) == int32(O_TMPFILE) { + ap = va + mode = VaUint32(&ap) + _ = ap + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_openat), int64(fd), int64(filename), int64(flags|Int32FromInt32(O_LARGEFILE)), Int64FromUint32(mode), 0, 0)))) +} + +func Xposix_fadvise(tls *TLS, fd int32, base Toff_t, len1 Toff_t, advice int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v base=%v len1=%v advice=%v, (%v:)", tls, fd, base, len1, advice, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(-X__syscall4(tls, int64(SYS_fadvise64), int64(fd), base, len1, int64(advice))) +} + +func Xposix_fallocate(tls *TLS, fd int32, base Toff_t, len1 Toff_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v base=%v len1=%v, (%v:)", tls, fd, base, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(-X__syscall4(tls, int64(SYS_fallocate), int64(fd), int64(Int32FromInt32(0)), base, len1)) +} + +const FE_ALL_EXCEPT = 31 +const FE_DIVBYZERO = 2 +const FE_DOWNWARD = 8388608 +const FE_INEXACT = 16 +const FE_INVALID = 1 +const FE_OVERFLOW = 4 +const FE_TONEAREST = 0 +const FE_TOWARDZERO = 12582912 +const FE_UNDERFLOW = 8 +const FE_UPWARD = 4194304 + +type Tfexcept_t = uint32 + +type Tfenv_t = struct { + F__fpcr uint32 + F__fpsr uint32 +} + +/* Dummy functions for archs lacking fenv implementation */ + +func Xfeclearexcept(tls *TLS, mask int32) (r int32) { + if __ccgo_strace { + trc("tls=%v mask=%v, (%v:)", tls, mask, origin(2)) + defer func() { trc("-> %v", r) }() + } + return 0 +} + +func Xferaiseexcept(tls *TLS, mask int32) (r int32) { + if __ccgo_strace { + trc("tls=%v mask=%v, (%v:)", tls, mask, origin(2)) + defer func() { trc("-> %v", r) }() + } + return 0 +} + +func Xfetestexcept(tls *TLS, mask int32) (r int32) { + if __ccgo_strace { + trc("tls=%v mask=%v, (%v:)", tls, mask, origin(2)) + defer func() { trc("-> %v", r) }() + } + return 0 +} + +func Xfegetround(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return FE_TONEAREST +} + +func X__fesetround(tls *TLS, r int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v r=%v, (%v:)", tls, r, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return 0 +} + +func Xfegetenv(tls *TLS, envp uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v envp=%v, (%v:)", tls, envp, origin(2)) + defer func() { trc("-> %v", r) }() + } + return 0 +} + +func Xfesetenv(tls *TLS, envp uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v envp=%v, (%v:)", tls, envp, origin(2)) + defer func() { trc("-> %v", r) }() + } + return 0 +} + +const WCONTINUED = 8 +const WEXITED = 4 +const WNOWAIT = 16777216 +const WSTOPPED = 2 +const __WALL = 1073741824 +const __WCLONE = 2147483648 +const __WNOTHREAD = 536870912 + +type Tidtype_t = int32 + +const _P_ALL = 0 +const _P_PID = 1 +const _P_PGID = 2 +const _P_PIDFD = 3 +const F_APP = 128 +const F_EOF = 16 +const F_ERR = 32 +const F_NORD = 4 +const F_NOWR = 8 +const F_PERM = 1 +const F_SVB = 64 +const KMAX = 128 +const LDBL_EPSILON1 = 2.22044604925031308085e-16 +const LDBL_MAX1 = 1.79769313486231570815e+308 +const LDBL_MIN1 = 2.22507385850720138309e-308 +const LD_B1B_DIG = 2 +const LD_B1B_MAX = 254740991 +const MASK = 127 +const MAYBE_WAITERS = 1073741824 +const UNGET = 8 + +type TFILE = struct { + Fflags uint32 + Frpos uintptr + Frend uintptr + Fclose1 uintptr + Fwend uintptr + Fwpos uintptr + Fmustbezero_1 uintptr + Fwbase uintptr + Fread uintptr + Fwrite uintptr + Fseek uintptr + Fbuf uintptr + Fbuf_size Tsize_t + Fprev uintptr + Fnext uintptr + Ffd int32 + Fpipe_pid int32 + Flockcount int64 + Fmode int32 + Flock int32 + Flbf int32 + Fcookie uintptr + Foff Toff_t + Fgetln_buf uintptr + Fmustbezero_2 uintptr + Fshend uintptr + Fshlim Toff_t + Fshcnt Toff_t + Fprev_locked uintptr + Fnext_locked uintptr + Flocale uintptr +} + +type T_IO_FILE = TFILE + +func _scanexp(tls *TLS, f uintptr, pok int32) (r int64) { + var c, neg, x, v1 int32 + var y, v19 int64 + var v2, v3 uintptr + _, _, _, _, _, _, _, _ = c, neg, x, y, v1, v19, v2, v3 + neg = 0 + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v3 = f + 8 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + if c == int32('+') || c == int32('-') { + neg = BoolInt32(c == int32('-')) + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v3 = f + 8 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + if Uint32FromInt32(c-int32('0')) >= uint32(10) && pok != 0 { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + } + } + if Uint32FromInt32(c-int32('0')) >= uint32(10) { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + return -Int64FromInt64(0x7fffffffffffffff) - Int64FromInt32(1) + } + x = 0 + for { + if !(Uint32FromInt32(c-int32('0')) < uint32(10) && x < Int32FromInt32(INT_MAX)/Int32FromInt32(10)) { + break + } + x = int32(10)*x + c - int32('0') + goto _7 + _7: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v3 = f + 8 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + y = int64(x) + for { + if !(Uint32FromInt32(c-int32('0')) < uint32(10) && y < Int64FromInt64(0x7fffffffffffffff)/Int64FromInt32(100)) { + break + } + y = int64(10)*y + int64(c) - int64('0') + goto _11 + _11: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v3 = f + 8 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + for { + if !(Uint32FromInt32(c-int32('0')) < uint32(10)) { + break + } + goto _15 + _15: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v3 = f + 8 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + if neg != 0 { + v19 = -y + } else { + v19 = y + } + return v19 +} + +func _decfloat(tls *TLS, f uintptr, c int32, bits int32, emin int32, sign int32, pok int32) (r float64) { + bp := tls.Alloc(512) + defer tls.Free(512) + var a, bitlim, denormal, e2, emax, gotdig, gotrad, i, j, k, lnz, p10, rp, rpm9, sh, z, v2, v6 int32 + var bias, frac, y float64 + var carry, carry1, carry2, t, tmp, tmp2 Tuint32_t + var dc, e10, lrp int64 + var tmp1 Tuint64_t + var v3, v4 uintptr + var _ /* x at bp+0 */ [128]Tuint32_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = a, bias, bitlim, carry, carry1, carry2, dc, denormal, e10, e2, emax, frac, gotdig, gotrad, i, j, k, lnz, lrp, p10, rp, rpm9, sh, t, tmp, tmp1, tmp2, y, z, v2, v3, v4, v6 + lrp = 0 + dc = 0 + e10 = 0 + lnz = 0 + gotdig = 0 + gotrad = 0 + emax = -emin - bits + int32(3) + denormal = 0 + frac = Float64FromInt32(0) + bias = Float64FromInt32(0) + j = 0 + k = 0 + /* Don't let leading zeros consume buffer space */ + for { + if !(c == int32('0')) { + break + } + gotdig = int32(1) + goto _1 + _1: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v2 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v2 = X__shgetc(tls, f) + } + c = v2 + } + if c == int32('.') { + gotrad = int32(1) + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v2 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v2 = X__shgetc(tls, f) + } + c = v2 + for { + if !(c == int32('0')) { + break + } + gotdig = int32(1) + lrp = lrp - 1 + goto _5 + _5: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v2 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v2 = X__shgetc(tls, f) + } + c = v2 + } + } + (**(**[128]Tuint32_t)(__ccgo_up(bp)))[0] = uint32(0) + for { + if !(Uint32FromInt32(c-int32('0')) < uint32(10) || c == int32('.')) { + break + } + if c == int32('.') { + if gotrad != 0 { + break + } + gotrad = int32(1) + lrp = dc + } else { + if k < Int32FromInt32(KMAX)-Int32FromInt32(3) { + dc = dc + 1 + if c != int32('0') { + lnz = int32(dc) + } + if j != 0 { + (**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] = (**(**[128]Tuint32_t)(__ccgo_up(bp)))[k]*uint32(10) + Uint32FromInt32(c) - uint32('0') + } else { + (**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] = Uint32FromInt32(c - int32('0')) + } + j = j + 1 + v2 = j + if v2 == int32(9) { + k = k + 1 + j = 0 + } + gotdig = int32(1) + } else { + dc = dc + 1 + if c != int32('0') { + lnz = (Int32FromInt32(KMAX) - Int32FromInt32(4)) * Int32FromInt32(9) + **(**Tuint32_t)(__ccgo_up(bp + uintptr(Int32FromInt32(KMAX)-Int32FromInt32(4))*4)) |= uint32(1) + } + } + } + goto _12 + _12: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v2 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v2 = X__shgetc(tls, f) + } + c = v2 + } + if !(gotrad != 0) { + lrp = dc + } + if gotdig != 0 && c|int32(32) == int32('e') { + e10 = _scanexp(tls, f, pok) + if e10 == -Int64FromInt64(0x7fffffffffffffff)-Int64FromInt32(1) { + if pok != 0 { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + } else { + X__shlim(tls, f, int64(Int32FromInt32(0))) + return Float64FromInt32(0) + } + e10 = 0 + } + lrp = lrp + e10 + } else { + if c >= 0 { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + } + } + if !(gotdig != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + X__shlim(tls, f, int64(Int32FromInt32(0))) + return Float64FromInt32(0) + } + /* Handle zero specially to avoid nasty special cases later */ + if !((**(**[128]Tuint32_t)(__ccgo_up(bp)))[0] != 0) { + return float64(float64(sign) * float64(0)) + } + /* Optimize small integers (w/no exponent) and over/under-flow */ + if lrp == dc && dc < int64(10) && (bits > int32(30) || (**(**[128]Tuint32_t)(__ccgo_up(bp)))[0]>>bits == uint32(0)) { + return float64(float64(sign) * float64((**(**[128]Tuint32_t)(__ccgo_up(bp)))[0])) + } + if lrp > int64(-emin/int32(2)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ERANGE) + return float64(float64(float64(sign)*Float64FromFloat64(1.79769313486231570815e+308)) * Float64FromFloat64(1.79769313486231570815e+308)) + } + if lrp < int64(emin-Int32FromInt32(2)*Int32FromInt32(LDBL_MANT_DIG)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ERANGE) + return float64(float64(float64(sign)*Float64FromFloat64(2.22507385850720138309e-308)) * Float64FromFloat64(2.22507385850720138309e-308)) + } + /* Align incomplete final B1B digit */ + if j != 0 { + for { + if !(j < int32(9)) { + break + } + **(**Tuint32_t)(__ccgo_up(bp + uintptr(k)*4)) *= uint32(10) + goto _17 + _17: + ; + j = j + 1 + } + k = k + 1 + j = 0 + } + a = 0 + z = k + e2 = 0 + rp = int32(lrp) + /* Optimize small to mid-size integers (even in exp. notation) */ + if lnz < int32(9) && lnz <= rp && rp < int32(18) { + if rp == int32(9) { + return float64(float64(sign) * float64((**(**[128]Tuint32_t)(__ccgo_up(bp)))[0])) + } + if rp < int32(9) { + return float64(float64(sign)*float64((**(**[128]Tuint32_t)(__ccgo_up(bp)))[0])) / float64(_p10s[int32(8)-rp]) + } + bitlim = bits - int32(3)*(rp-Int32FromInt32(9)) + if bitlim > int32(30) || (**(**[128]Tuint32_t)(__ccgo_up(bp)))[0]>>bitlim == uint32(0) { + return float64(float64(float64(sign)*float64((**(**[128]Tuint32_t)(__ccgo_up(bp)))[0])) * float64(_p10s[rp-int32(10)])) + } + } + /* Drop trailing zeros */ + for { + if !!((**(**[128]Tuint32_t)(__ccgo_up(bp)))[z-int32(1)] != 0) { + break + } + goto _18 + _18: + ; + z = z - 1 + } + /* Align radix point to B1B digit boundary */ + if rp%int32(9) != 0 { + if rp >= 0 { + v2 = rp % int32(9) + } else { + v2 = rp%int32(9) + int32(9) + } + rpm9 = v2 + p10 = _p10s[int32(8)-rpm9] + carry = uint32(0) + k = a + for { + if !(k != z) { + break + } + tmp = (**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] % Uint32FromInt32(p10) + (**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] = (**(**[128]Tuint32_t)(__ccgo_up(bp)))[k]/Uint32FromInt32(p10) + carry + carry = Uint32FromInt32(int32(1000000000)/p10) * tmp + if k == a && !((**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] != 0) { + a = (a + int32(1)) & (Int32FromInt32(KMAX) - Int32FromInt32(1)) + rp = rp - int32(9) + } + goto _20 + _20: + ; + k = k + 1 + } + if carry != 0 { + v2 = z + z = z + 1 + (**(**[128]Tuint32_t)(__ccgo_up(bp)))[v2] = carry + } + rp = rp + (int32(9) - rpm9) + } + /* Upscale until desired number of bits are left of radix point */ + for rp < Int32FromInt32(9)*Int32FromInt32(LD_B1B_DIG) || rp == Int32FromInt32(9)*Int32FromInt32(LD_B1B_DIG) && (**(**[128]Tuint32_t)(__ccgo_up(bp)))[a] < _th[0] { + carry1 = uint32(0) + e2 = e2 - int32(29) + k = (z - int32(1)) & (Int32FromInt32(KMAX) - Int32FromInt32(1)) + for { + tmp1 = uint64((**(**[128]Tuint32_t)(__ccgo_up(bp)))[k])< uint64(1000000000) { + carry1 = uint32(tmp1 / uint64(1000000000)) + (**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] = uint32(tmp1 % uint64(1000000000)) + } else { + carry1 = uint32(0) + (**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] = uint32(tmp1) + } + if k == (z-int32(1))&(Int32FromInt32(KMAX)-Int32FromInt32(1)) && k != a && !((**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] != 0) { + z = k + } + if k == a { + break + } + goto _22 + _22: + ; + k = (k - int32(1)) & (Int32FromInt32(KMAX) - Int32FromInt32(1)) + } + if carry1 != 0 { + rp = rp + int32(9) + a = (a - int32(1)) & (Int32FromInt32(KMAX) - Int32FromInt32(1)) + if a == z { + z = (z - int32(1)) & (Int32FromInt32(KMAX) - Int32FromInt32(1)) + **(**Tuint32_t)(__ccgo_up(bp + uintptr((z-int32(1))&(Int32FromInt32(KMAX)-Int32FromInt32(1)))*4)) |= (**(**[128]Tuint32_t)(__ccgo_up(bp)))[z] + } + (**(**[128]Tuint32_t)(__ccgo_up(bp)))[a] = carry1 + } + } + /* Downscale until exactly number of bits are left of radix point */ + for { + carry2 = uint32(0) + sh = int32(1) + i = 0 + for { + if !(i < int32(LD_B1B_DIG)) { + break + } + k = (a + i) & (Int32FromInt32(KMAX) - Int32FromInt32(1)) + if k == z || (**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] < _th[i] { + i = int32(LD_B1B_DIG) + break + } + if (**(**[128]Tuint32_t)(__ccgo_up(bp)))[(a+i)&(Int32FromInt32(KMAX)-Int32FromInt32(1))] > _th[i] { + break + } + goto _24 + _24: + ; + i = i + 1 + } + if i == int32(LD_B1B_DIG) && rp == Int32FromInt32(9)*Int32FromInt32(LD_B1B_DIG) { + break + } + /* FIXME: find a way to compute optimal sh */ + if rp > Int32FromInt32(9)+Int32FromInt32(9)*Int32FromInt32(LD_B1B_DIG) { + sh = int32(9) + } + e2 = e2 + sh + k = a + for { + if !(k != z) { + break + } + tmp2 = (**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] & Uint32FromInt32(int32(1)<>sh + carry2 + carry2 = Uint32FromInt32(Int32FromInt32(1000000000)>>sh) * tmp2 + if k == a && !((**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] != 0) { + a = (a + int32(1)) & (Int32FromInt32(KMAX) - Int32FromInt32(1)) + i = i - 1 + rp = rp - int32(9) + } + goto _25 + _25: + ; + k = (k + int32(1)) & (Int32FromInt32(KMAX) - Int32FromInt32(1)) + } + if carry2 != 0 { + if (z+int32(1))&(Int32FromInt32(KMAX)-Int32FromInt32(1)) != a { + (**(**[128]Tuint32_t)(__ccgo_up(bp)))[z] = carry2 + z = (z + int32(1)) & (Int32FromInt32(KMAX) - Int32FromInt32(1)) + } else { + **(**Tuint32_t)(__ccgo_up(bp + uintptr((z-int32(1))&(Int32FromInt32(KMAX)-Int32FromInt32(1)))*4)) |= uint32(1) + } + } + goto _23 + _23: + } + /* Assemble desired bits into floating point variable */ + v2 = Int32FromInt32(0) + i = v2 + y = float64(v2) + for { + if !(i < int32(LD_B1B_DIG)) { + break + } + if (a+i)&(Int32FromInt32(KMAX)-Int32FromInt32(1)) == z { + v6 = (z + Int32FromInt32(1)) & (Int32FromInt32(KMAX) - Int32FromInt32(1)) + z = v6 + (**(**[128]Tuint32_t)(__ccgo_up(bp)))[v6-int32(1)] = uint32(0) + } + y = float64(Float64FromFloat64(1e+09)*y) + float64((**(**[128]Tuint32_t)(__ccgo_up(bp)))[(a+i)&(Int32FromInt32(KMAX)-Int32FromInt32(1))]) + goto _26 + _26: + ; + i = i + 1 + } + y = y * float64(sign) + /* Limit precision for denormal results */ + if bits > int32(LDBL_MANT_DIG)+e2-emin { + bits = int32(LDBL_MANT_DIG) + e2 - emin + if bits < 0 { + bits = 0 + } + denormal = int32(1) + } + /* Calculate bias term to force rounding, move out lower bits */ + if bits < int32(LDBL_MANT_DIG) { + bias = Xcopysignl(tls, Xscalbn(tls, Float64FromInt32(1), Int32FromInt32(2)*Int32FromInt32(LDBL_MANT_DIG)-bits-int32(1)), y) + frac = Xfmodl(tls, y, Xscalbn(tls, Float64FromInt32(1), int32(LDBL_MANT_DIG)-bits)) + y = y - frac + y = y + bias + } + /* Process tail of decimal input so it can affect rounding */ + if (a+i)&(Int32FromInt32(KMAX)-Int32FromInt32(1)) != z { + t = (**(**[128]Tuint32_t)(__ccgo_up(bp)))[(a+i)&(Int32FromInt32(KMAX)-Int32FromInt32(1))] + if t < uint32(500000000) && (t != 0 || (a+i+int32(1))&(Int32FromInt32(KMAX)-Int32FromInt32(1)) != z) { + frac = frac + float64(float64(0.25)*float64(sign)) + } else { + if t > uint32(500000000) { + frac = frac + float64(float64(0.75)*float64(sign)) + } else { + if t == uint32(500000000) { + if (a+i+int32(1))&(Int32FromInt32(KMAX)-Int32FromInt32(1)) == z { + frac = frac + float64(float64(0.5)*float64(sign)) + } else { + frac = frac + float64(float64(0.75)*float64(sign)) + } + } + } + } + if int32(LDBL_MANT_DIG)-bits >= int32(2) && !(Xfmodl(tls, frac, Float64FromInt32(1)) != 0) { + frac = frac + 1 + } + } + y = y + frac + y = y - bias + if (e2+int32(LDBL_MANT_DIG))&int32(INT_MAX) > emax-int32(5) { + if Xfabsl(tls, y) >= Float64FromInt32(2)/Float64FromFloat64(2.22044604925031308085e-16) { + if denormal != 0 && bits == int32(LDBL_MANT_DIG)+e2-emin { + denormal = 0 + } + y = y * Float64FromFloat64(0.5) + e2 = e2 + 1 + } + if e2+int32(LDBL_MANT_DIG) > emax || denormal != 0 && frac != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ERANGE) + } + } + return Xscalbnl(tls, y, e2) +} + +var _th = [2]Tuint32_t{ + 0: uint32(9007199), + 1: uint32(254740991), +} + +var _p10s = [8]int32{ + 0: int32(10), + 1: int32(100), + 2: int32(1000), + 3: int32(10000), + 4: int32(100000), + 5: int32(1000000), + 6: int32(10000000), + 7: int32(100000000), +} + +func _hexfloat(tls *TLS, f uintptr, bits int32, emin int32, sign int32, pok int32) (r float64) { + var bias, scale, y float64 + var c, d, gotdig, gotrad, gottail, v1 int32 + var dc, e2, rp int64 + var x Tuint32_t + var v2, v3 uintptr + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = bias, c, d, dc, e2, gotdig, gotrad, gottail, rp, scale, x, y, v1, v2, v3 + x = uint32(0) + y = Float64FromInt32(0) + scale = Float64FromInt32(1) + bias = Float64FromInt32(0) + gottail = 0 + gotrad = 0 + gotdig = 0 + rp = 0 + dc = 0 + e2 = 0 + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v3 = f + 8 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + /* Skip leading zeros */ + for { + if !(c == int32('0')) { + break + } + gotdig = int32(1) + goto _4 + _4: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v3 = f + 8 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + if c == int32('.') { + gotrad = int32(1) + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v3 = f + 8 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + /* Count zeros after the radix point before significand */ + rp = 0 + for { + if !(c == int32('0')) { + break + } + gotdig = int32(1) + goto _11 + _11: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v3 = f + 8 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + rp = rp - 1 + } + } + for { + if !(Uint32FromInt32(c-int32('0')) < uint32(10) || Uint32FromInt32(c|int32(32)-int32('a')) < uint32(6) || c == int32('.')) { + break + } + if c == int32('.') { + if gotrad != 0 { + break + } + rp = dc + gotrad = int32(1) + } else { + gotdig = int32(1) + if c > int32('9') { + d = c | int32(32) + int32(10) - int32('a') + } else { + d = c - int32('0') + } + if dc < int64(8) { + x = x*uint32(16) + Uint32FromInt32(d) + } else { + if dc < int64(Int32FromInt32(LDBL_MANT_DIG)/Int32FromInt32(4)+Int32FromInt32(1)) { + scale = scale / Float64FromInt32(16) + y = y + float64(float64(d)*scale) + } else { + if d != 0 && !(gottail != 0) { + y = y + float64(Float64FromFloat64(0.5)*scale) + gottail = int32(1) + } + } + } + dc = dc + 1 + } + goto _15 + _15: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v3 = f + 8 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + if !(gotdig != 0) { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + if pok != 0 { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + if gotrad != 0 { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + } + } else { + X__shlim(tls, f, int64(Int32FromInt32(0))) + } + return float64(float64(sign) * float64(0)) + } + if !(gotrad != 0) { + rp = dc + } + for dc < int64(8) { + x = x * uint32(16) + dc = dc + 1 + } + if c|int32(32) == int32('p') { + e2 = _scanexp(tls, f, pok) + if e2 == -Int64FromInt64(0x7fffffffffffffff)-Int64FromInt32(1) { + if pok != 0 { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + } else { + X__shlim(tls, f, int64(Int32FromInt32(0))) + return Float64FromInt32(0) + } + e2 = 0 + } + } else { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + } + e2 = e2 + (int64(4)*rp - int64(32)) + if !(x != 0) { + return float64(float64(sign) * float64(0)) + } + if e2 > int64(-emin) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ERANGE) + return float64(float64(float64(sign)*Float64FromFloat64(1.79769313486231570815e+308)) * Float64FromFloat64(1.79769313486231570815e+308)) + } + if e2 < int64(emin-Int32FromInt32(2)*Int32FromInt32(LDBL_MANT_DIG)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ERANGE) + return float64(float64(float64(sign)*Float64FromFloat64(2.22507385850720138309e-308)) * Float64FromFloat64(2.22507385850720138309e-308)) + } + for x < uint32(0x80000000) { + if y >= Float64FromFloat64(0.5) { + x = x + (x + uint32(1)) + y = y + (y - Float64FromInt32(1)) + } else { + x = x + x + y = y + y + } + e2 = e2 - 1 + } + if int64(bits) > int64(32)+e2-int64(emin) { + bits = int32(int64(32) + e2 - int64(emin)) + if bits < 0 { + bits = 0 + } + } + if bits < int32(LDBL_MANT_DIG) { + bias = Xcopysignl(tls, Xscalbn(tls, Float64FromInt32(1), Int32FromInt32(32)+Int32FromInt32(LDBL_MANT_DIG)-bits-int32(1)), float64(sign)) + } + if bits < int32(32) && y != 0 && !(x&Uint32FromInt32(1) != 0) { + x = x + 1 + y = Float64FromInt32(0) + } + y = bias + float64(float64(sign)*float64(x)) + float64(float64(sign)*y) + y = y - bias + if !(y != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ERANGE) + } + return Xscalbnl(tls, y, int32(e2)) +} + +func X__floatscan(tls *TLS, f uintptr, prec int32, pok int32) (r float64) { + if __ccgo_strace { + trc("tls=%v f=%v prec=%v pok=%v, (%v:)", tls, f, prec, pok, origin(2)) + defer func() { trc("-> %v", r) }() + } + var bits, c, emin, sign, v1, v2, v5, v6 int32 + var i, v27 Tsize_t + var v3, v4 uintptr + _, _, _, _, _, _, _, _, _, _, _, _ = bits, c, emin, i, sign, v1, v2, v27, v3, v4, v5, v6 + sign = int32(1) + switch prec { + case 0: + bits = int32(FLT_MANT_DIG) + emin = -int32(125) - bits + case int32(1): + bits = int32(DBL_MANT_DIG) + emin = -int32(1021) - bits + case int32(2): + bits = int32(LDBL_MANT_DIG) + emin = -int32(1021) - bits + default: + return Float64FromInt32(0) + } + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v2 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v2 = X__shgetc(tls, f) + } + v1 = v2 + c = v1 + v5 = v1 + v6 = BoolInt32(v5 == int32(' ') || Uint32FromInt32(v5)-uint32('\t') < uint32(5)) + goto _7 + _7: + if !(v6 != 0) { + break + } + } + if c == int32('+') || c == int32('-') { + sign = sign - int32(2)*BoolInt32(c == int32('-')) + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + i = uint64(0) + for { + if !(i < uint64(8) && c|int32(32) == Int32FromUint8(**(**uint8)(__ccgo_up(__ccgo_ts + 247 + uintptr(i))))) { + break + } + if i < uint64(7) { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + goto _11 + _11: + ; + i = i + 1 + } + if i == uint64(3) || i == uint64(8) || i > uint64(3) && pok != 0 { + if i != uint64(8) { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + if pok != 0 { + for { + if !(i > uint64(3)) { + break + } + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + goto _15 + _15: + ; + i = i - 1 + } + } + } + return float64(float32(sign) * X__builtin_inff(tls)) + } + if !(i != 0) { + i = uint64(0) + for { + if !(i < uint64(3) && c|int32(32) == Int32FromUint8(**(**uint8)(__ccgo_up(__ccgo_ts + 256 + uintptr(i))))) { + break + } + if i < uint64(2) { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + goto _16 + _16: + ; + i = i + 1 + } + } + if i == uint64(3) { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + if v1 != int32('(') { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + return float64(X__builtin_nanf(tls, __ccgo_ts)) + } + i = uint64(1) + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + if Uint32FromInt32(c-int32('0')) < uint32(10) || Uint32FromInt32(c-int32('A')) < uint32(26) || Uint32FromInt32(c-int32('a')) < uint32(26) || c == int32('_') { + goto _23 + } + if c == int32(')') { + return float64(X__builtin_nanf(tls, __ccgo_ts)) + } + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + if !(pok != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + X__shlim(tls, f, int64(Int32FromInt32(0))) + return Float64FromInt32(0) + } + for { + v27 = i + i = i - 1 + if !(v27 != 0) { + break + } + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + } + return float64(X__builtin_nanf(tls, __ccgo_ts)) + goto _23 + _23: + ; + i = i + 1 + } + return float64(X__builtin_nanf(tls, __ccgo_ts)) + } + if i != 0 { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + X__shlim(tls, f, int64(Int32FromInt32(0))) + return Float64FromInt32(0) + } + if c == int32('0') { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + if c|int32(32) == int32('x') { + return _hexfloat(tls, f, bits, emin, sign, pok) + } + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + c = int32('0') + } + return _decfloat(tls, f, c, bits, emin, sign, pok) +} + +// C documentation +// +// /* Lookup table for digit values. -1==255>=36 -> invalid */ +var _table6 = [257]uint8{ + 0: Uint8FromInt32(-Int32FromInt32(1)), + 1: Uint8FromInt32(-Int32FromInt32(1)), + 2: Uint8FromInt32(-Int32FromInt32(1)), + 3: Uint8FromInt32(-Int32FromInt32(1)), + 4: Uint8FromInt32(-Int32FromInt32(1)), + 5: Uint8FromInt32(-Int32FromInt32(1)), + 6: Uint8FromInt32(-Int32FromInt32(1)), + 7: Uint8FromInt32(-Int32FromInt32(1)), + 8: Uint8FromInt32(-Int32FromInt32(1)), + 9: Uint8FromInt32(-Int32FromInt32(1)), + 10: Uint8FromInt32(-Int32FromInt32(1)), + 11: Uint8FromInt32(-Int32FromInt32(1)), + 12: Uint8FromInt32(-Int32FromInt32(1)), + 13: Uint8FromInt32(-Int32FromInt32(1)), + 14: Uint8FromInt32(-Int32FromInt32(1)), + 15: Uint8FromInt32(-Int32FromInt32(1)), + 16: Uint8FromInt32(-Int32FromInt32(1)), + 17: Uint8FromInt32(-Int32FromInt32(1)), + 18: Uint8FromInt32(-Int32FromInt32(1)), + 19: Uint8FromInt32(-Int32FromInt32(1)), + 20: Uint8FromInt32(-Int32FromInt32(1)), + 21: Uint8FromInt32(-Int32FromInt32(1)), + 22: Uint8FromInt32(-Int32FromInt32(1)), + 23: Uint8FromInt32(-Int32FromInt32(1)), + 24: Uint8FromInt32(-Int32FromInt32(1)), + 25: Uint8FromInt32(-Int32FromInt32(1)), + 26: Uint8FromInt32(-Int32FromInt32(1)), + 27: Uint8FromInt32(-Int32FromInt32(1)), + 28: Uint8FromInt32(-Int32FromInt32(1)), + 29: Uint8FromInt32(-Int32FromInt32(1)), + 30: Uint8FromInt32(-Int32FromInt32(1)), + 31: Uint8FromInt32(-Int32FromInt32(1)), + 32: Uint8FromInt32(-Int32FromInt32(1)), + 33: Uint8FromInt32(-Int32FromInt32(1)), + 34: Uint8FromInt32(-Int32FromInt32(1)), + 35: Uint8FromInt32(-Int32FromInt32(1)), + 36: Uint8FromInt32(-Int32FromInt32(1)), + 37: Uint8FromInt32(-Int32FromInt32(1)), + 38: Uint8FromInt32(-Int32FromInt32(1)), + 39: Uint8FromInt32(-Int32FromInt32(1)), + 40: Uint8FromInt32(-Int32FromInt32(1)), + 41: Uint8FromInt32(-Int32FromInt32(1)), + 42: Uint8FromInt32(-Int32FromInt32(1)), + 43: Uint8FromInt32(-Int32FromInt32(1)), + 44: Uint8FromInt32(-Int32FromInt32(1)), + 45: Uint8FromInt32(-Int32FromInt32(1)), + 46: Uint8FromInt32(-Int32FromInt32(1)), + 47: Uint8FromInt32(-Int32FromInt32(1)), + 48: Uint8FromInt32(-Int32FromInt32(1)), + 50: uint8(1), + 51: uint8(2), + 52: uint8(3), + 53: uint8(4), + 54: uint8(5), + 55: uint8(6), + 56: uint8(7), + 57: uint8(8), + 58: uint8(9), + 59: Uint8FromInt32(-Int32FromInt32(1)), + 60: Uint8FromInt32(-Int32FromInt32(1)), + 61: Uint8FromInt32(-Int32FromInt32(1)), + 62: Uint8FromInt32(-Int32FromInt32(1)), + 63: Uint8FromInt32(-Int32FromInt32(1)), + 64: Uint8FromInt32(-Int32FromInt32(1)), + 65: Uint8FromInt32(-Int32FromInt32(1)), + 66: uint8(10), + 67: uint8(11), + 68: uint8(12), + 69: uint8(13), + 70: uint8(14), + 71: uint8(15), + 72: uint8(16), + 73: uint8(17), + 74: uint8(18), + 75: uint8(19), + 76: uint8(20), + 77: uint8(21), + 78: uint8(22), + 79: uint8(23), + 80: uint8(24), + 81: uint8(25), + 82: uint8(26), + 83: uint8(27), + 84: uint8(28), + 85: uint8(29), + 86: uint8(30), + 87: uint8(31), + 88: uint8(32), + 89: uint8(33), + 90: uint8(34), + 91: uint8(35), + 92: Uint8FromInt32(-Int32FromInt32(1)), + 93: Uint8FromInt32(-Int32FromInt32(1)), + 94: Uint8FromInt32(-Int32FromInt32(1)), + 95: Uint8FromInt32(-Int32FromInt32(1)), + 96: Uint8FromInt32(-Int32FromInt32(1)), + 97: Uint8FromInt32(-Int32FromInt32(1)), + 98: uint8(10), + 99: uint8(11), + 100: uint8(12), + 101: uint8(13), + 102: uint8(14), + 103: uint8(15), + 104: uint8(16), + 105: uint8(17), + 106: uint8(18), + 107: uint8(19), + 108: uint8(20), + 109: uint8(21), + 110: uint8(22), + 111: uint8(23), + 112: uint8(24), + 113: uint8(25), + 114: uint8(26), + 115: uint8(27), + 116: uint8(28), + 117: uint8(29), + 118: uint8(30), + 119: uint8(31), + 120: uint8(32), + 121: uint8(33), + 122: uint8(34), + 123: uint8(35), + 124: Uint8FromInt32(-Int32FromInt32(1)), + 125: Uint8FromInt32(-Int32FromInt32(1)), + 126: Uint8FromInt32(-Int32FromInt32(1)), + 127: Uint8FromInt32(-Int32FromInt32(1)), + 128: Uint8FromInt32(-Int32FromInt32(1)), + 129: Uint8FromInt32(-Int32FromInt32(1)), + 130: Uint8FromInt32(-Int32FromInt32(1)), + 131: Uint8FromInt32(-Int32FromInt32(1)), + 132: Uint8FromInt32(-Int32FromInt32(1)), + 133: Uint8FromInt32(-Int32FromInt32(1)), + 134: Uint8FromInt32(-Int32FromInt32(1)), + 135: Uint8FromInt32(-Int32FromInt32(1)), + 136: Uint8FromInt32(-Int32FromInt32(1)), + 137: Uint8FromInt32(-Int32FromInt32(1)), + 138: Uint8FromInt32(-Int32FromInt32(1)), + 139: Uint8FromInt32(-Int32FromInt32(1)), + 140: Uint8FromInt32(-Int32FromInt32(1)), + 141: Uint8FromInt32(-Int32FromInt32(1)), + 142: Uint8FromInt32(-Int32FromInt32(1)), + 143: Uint8FromInt32(-Int32FromInt32(1)), + 144: Uint8FromInt32(-Int32FromInt32(1)), + 145: Uint8FromInt32(-Int32FromInt32(1)), + 146: Uint8FromInt32(-Int32FromInt32(1)), + 147: Uint8FromInt32(-Int32FromInt32(1)), + 148: Uint8FromInt32(-Int32FromInt32(1)), + 149: Uint8FromInt32(-Int32FromInt32(1)), + 150: Uint8FromInt32(-Int32FromInt32(1)), + 151: Uint8FromInt32(-Int32FromInt32(1)), + 152: Uint8FromInt32(-Int32FromInt32(1)), + 153: Uint8FromInt32(-Int32FromInt32(1)), + 154: Uint8FromInt32(-Int32FromInt32(1)), + 155: Uint8FromInt32(-Int32FromInt32(1)), + 156: Uint8FromInt32(-Int32FromInt32(1)), + 157: Uint8FromInt32(-Int32FromInt32(1)), + 158: Uint8FromInt32(-Int32FromInt32(1)), + 159: Uint8FromInt32(-Int32FromInt32(1)), + 160: Uint8FromInt32(-Int32FromInt32(1)), + 161: Uint8FromInt32(-Int32FromInt32(1)), + 162: Uint8FromInt32(-Int32FromInt32(1)), + 163: Uint8FromInt32(-Int32FromInt32(1)), + 164: Uint8FromInt32(-Int32FromInt32(1)), + 165: Uint8FromInt32(-Int32FromInt32(1)), + 166: Uint8FromInt32(-Int32FromInt32(1)), + 167: Uint8FromInt32(-Int32FromInt32(1)), + 168: Uint8FromInt32(-Int32FromInt32(1)), + 169: Uint8FromInt32(-Int32FromInt32(1)), + 170: Uint8FromInt32(-Int32FromInt32(1)), + 171: Uint8FromInt32(-Int32FromInt32(1)), + 172: Uint8FromInt32(-Int32FromInt32(1)), + 173: Uint8FromInt32(-Int32FromInt32(1)), + 174: Uint8FromInt32(-Int32FromInt32(1)), + 175: Uint8FromInt32(-Int32FromInt32(1)), + 176: Uint8FromInt32(-Int32FromInt32(1)), + 177: Uint8FromInt32(-Int32FromInt32(1)), + 178: Uint8FromInt32(-Int32FromInt32(1)), + 179: Uint8FromInt32(-Int32FromInt32(1)), + 180: Uint8FromInt32(-Int32FromInt32(1)), + 181: Uint8FromInt32(-Int32FromInt32(1)), + 182: Uint8FromInt32(-Int32FromInt32(1)), + 183: Uint8FromInt32(-Int32FromInt32(1)), + 184: Uint8FromInt32(-Int32FromInt32(1)), + 185: Uint8FromInt32(-Int32FromInt32(1)), + 186: Uint8FromInt32(-Int32FromInt32(1)), + 187: Uint8FromInt32(-Int32FromInt32(1)), + 188: Uint8FromInt32(-Int32FromInt32(1)), + 189: Uint8FromInt32(-Int32FromInt32(1)), + 190: Uint8FromInt32(-Int32FromInt32(1)), + 191: Uint8FromInt32(-Int32FromInt32(1)), + 192: Uint8FromInt32(-Int32FromInt32(1)), + 193: Uint8FromInt32(-Int32FromInt32(1)), + 194: Uint8FromInt32(-Int32FromInt32(1)), + 195: Uint8FromInt32(-Int32FromInt32(1)), + 196: Uint8FromInt32(-Int32FromInt32(1)), + 197: Uint8FromInt32(-Int32FromInt32(1)), + 198: Uint8FromInt32(-Int32FromInt32(1)), + 199: Uint8FromInt32(-Int32FromInt32(1)), + 200: Uint8FromInt32(-Int32FromInt32(1)), + 201: Uint8FromInt32(-Int32FromInt32(1)), + 202: Uint8FromInt32(-Int32FromInt32(1)), + 203: Uint8FromInt32(-Int32FromInt32(1)), + 204: Uint8FromInt32(-Int32FromInt32(1)), + 205: Uint8FromInt32(-Int32FromInt32(1)), + 206: Uint8FromInt32(-Int32FromInt32(1)), + 207: Uint8FromInt32(-Int32FromInt32(1)), + 208: Uint8FromInt32(-Int32FromInt32(1)), + 209: Uint8FromInt32(-Int32FromInt32(1)), + 210: Uint8FromInt32(-Int32FromInt32(1)), + 211: Uint8FromInt32(-Int32FromInt32(1)), + 212: Uint8FromInt32(-Int32FromInt32(1)), + 213: Uint8FromInt32(-Int32FromInt32(1)), + 214: Uint8FromInt32(-Int32FromInt32(1)), + 215: Uint8FromInt32(-Int32FromInt32(1)), + 216: Uint8FromInt32(-Int32FromInt32(1)), + 217: Uint8FromInt32(-Int32FromInt32(1)), + 218: Uint8FromInt32(-Int32FromInt32(1)), + 219: Uint8FromInt32(-Int32FromInt32(1)), + 220: Uint8FromInt32(-Int32FromInt32(1)), + 221: Uint8FromInt32(-Int32FromInt32(1)), + 222: Uint8FromInt32(-Int32FromInt32(1)), + 223: Uint8FromInt32(-Int32FromInt32(1)), + 224: Uint8FromInt32(-Int32FromInt32(1)), + 225: Uint8FromInt32(-Int32FromInt32(1)), + 226: Uint8FromInt32(-Int32FromInt32(1)), + 227: Uint8FromInt32(-Int32FromInt32(1)), + 228: Uint8FromInt32(-Int32FromInt32(1)), + 229: Uint8FromInt32(-Int32FromInt32(1)), + 230: Uint8FromInt32(-Int32FromInt32(1)), + 231: Uint8FromInt32(-Int32FromInt32(1)), + 232: Uint8FromInt32(-Int32FromInt32(1)), + 233: Uint8FromInt32(-Int32FromInt32(1)), + 234: Uint8FromInt32(-Int32FromInt32(1)), + 235: Uint8FromInt32(-Int32FromInt32(1)), + 236: Uint8FromInt32(-Int32FromInt32(1)), + 237: Uint8FromInt32(-Int32FromInt32(1)), + 238: Uint8FromInt32(-Int32FromInt32(1)), + 239: Uint8FromInt32(-Int32FromInt32(1)), + 240: Uint8FromInt32(-Int32FromInt32(1)), + 241: Uint8FromInt32(-Int32FromInt32(1)), + 242: Uint8FromInt32(-Int32FromInt32(1)), + 243: Uint8FromInt32(-Int32FromInt32(1)), + 244: Uint8FromInt32(-Int32FromInt32(1)), + 245: Uint8FromInt32(-Int32FromInt32(1)), + 246: Uint8FromInt32(-Int32FromInt32(1)), + 247: Uint8FromInt32(-Int32FromInt32(1)), + 248: Uint8FromInt32(-Int32FromInt32(1)), + 249: Uint8FromInt32(-Int32FromInt32(1)), + 250: Uint8FromInt32(-Int32FromInt32(1)), + 251: Uint8FromInt32(-Int32FromInt32(1)), + 252: Uint8FromInt32(-Int32FromInt32(1)), + 253: Uint8FromInt32(-Int32FromInt32(1)), + 254: Uint8FromInt32(-Int32FromInt32(1)), + 255: Uint8FromInt32(-Int32FromInt32(1)), + 256: Uint8FromInt32(-Int32FromInt32(1)), +} + +func X__intscan(tls *TLS, f uintptr, base uint32, pok int32, lim uint64) (r uint64) { + if __ccgo_strace { + trc("tls=%v f=%v base=%v pok=%v lim=%v, (%v:)", tls, f, base, pok, lim, origin(2)) + defer func() { trc("-> %v", r) }() + } + var bs, c, neg, v1, v2, v5, v6 int32 + var val, v3, v4 uintptr + var x uint32 + var y uint64 + _, _, _, _, _, _, _, _, _, _, _, _ = bs, c, neg, val, x, y, v1, v2, v3, v4, v5, v6 + val = uintptr(unsafe.Pointer(&_table6)) + uintptr(1) + neg = 0 + if base > uint32(36) || base == uint32(1) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uint64(0) + } + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v2 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v2 = X__shgetc(tls, f) + } + v1 = v2 + c = v1 + v5 = v1 + v6 = BoolInt32(v5 == int32(' ') || Uint32FromInt32(v5)-uint32('\t') < uint32(5)) + goto _7 + _7: + if !(v6 != 0) { + break + } + } + if c == int32('+') || c == int32('-') { + neg = -BoolInt32(c == int32('-')) + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + if (base == uint32(0) || base == uint32(16)) && c == int32('0') { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + if c|int32(32) == int32('x') { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + if Int32FromUint8(**(**uint8)(__ccgo_up(val + uintptr(c)))) >= int32(16) { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + if pok != 0 { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + } else { + X__shlim(tls, f, int64(Int32FromInt32(0))) + } + return uint64(0) + } + base = uint32(16) + } else { + if base == uint32(0) { + base = uint32(8) + } + } + } else { + if base == uint32(0) { + base = uint32(10) + } + if uint32(**(**uint8)(__ccgo_up(val + uintptr(c)))) >= base { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + X__shlim(tls, f, int64(Int32FromInt32(0))) + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uint64(0) + } + } + if base == uint32(10) { + x = uint32(0) + for { + if !(Uint32FromInt32(c-int32('0')) < uint32(10) && x <= Uint32FromUint32(0xffffffff)/Uint32FromInt32(10)-Uint32FromInt32(1)) { + break + } + x = x*uint32(10) + Uint32FromInt32(c-Int32FromUint8('0')) + goto _17 + _17: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + y = uint64(x) + for { + if !(Uint32FromInt32(c-int32('0')) < uint32(10) && y <= (Uint64FromUint64(2)*Uint64FromInt64(0x7fffffffffffffff)+Uint64FromInt32(1))/Uint64FromInt32(10) && uint64(10)*y <= Uint64FromUint64(2)*Uint64FromInt64(0x7fffffffffffffff)+Uint64FromInt32(1)-Uint64FromInt32(c-Int32FromUint8('0'))) { + break + } + y = y*uint64(10) + Uint64FromInt32(c-Int32FromUint8('0')) + goto _21 + _21: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + if Uint32FromInt32(c-int32('0')) >= uint32(10) { + goto done + } + } else { + if !(base&(base-Uint32FromInt32(1)) != 0) { + bs = Int32FromUint8(**(**uint8)(__ccgo_up(__ccgo_ts + 260 + uintptr(uint32(0x17)*base>>int32(5)&uint32(7))))) + x = uint32(0) + for { + if !(uint32(**(**uint8)(__ccgo_up(val + uintptr(c)))) < base && x <= Uint32FromUint32(0xffffffff)/Uint32FromInt32(32)) { + break + } + x = x<>bs) { + break + } + y = y<= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + if y >= lim { + if !(lim&Uint64FromInt32(1) != 0) && !(neg != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ERANGE) + return lim - uint64(1) + } else { + if y > lim { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ERANGE) + return lim + } + } + } + return y ^ Uint64FromInt32(neg) - Uint64FromInt32(neg) +} + +func X__procfdname(tls *TLS, buf uintptr, fd uint32) { + if __ccgo_strace { + trc("tls=%v buf=%v fd=%v, (%v:)", tls, buf, fd, origin(2)) + } + var i, j, v5 uint32 + var v2 uint8 + _, _, _, _ = i, j, v2, v5 + i = uint32(0) + for { + v2 = **(**uint8)(__ccgo_up(__ccgo_ts + 269 + uintptr(i))) + **(**uint8)(__ccgo_up(buf + uintptr(i))) = v2 + if !(v2 != 0) { + break + } + goto _1 + _1: + ; + i = i + 1 + } + if !(fd != 0) { + **(**uint8)(__ccgo_up(buf + uintptr(i))) = uint8('0') + **(**uint8)(__ccgo_up(buf + uintptr(i+uint32(1)))) = uint8(0) + return + } + j = fd + for { + if !(j != 0) { + break + } + goto _3 + _3: + ; + j = j / uint32(10) + i = i + 1 + } + **(**uint8)(__ccgo_up(buf + uintptr(i))) = uint8(0) + for { + if !(fd != 0) { + break + } + i = i - 1 + v5 = i + **(**uint8)(__ccgo_up(buf + uintptr(v5))) = uint8(uint32('0') + fd%uint32(10)) + goto _4 + _4: + ; + fd = fd / uint32(10) + } +} + +/* The shcnt field stores the number of bytes read so far, offset by + * the value of buf-rpos at the last function call (__shlim or __shgetc), + * so that between calls the inline shcnt macro can add rpos-buf to get + * the actual count. */ + +func X__shlim(tls *TLS, f uintptr, lim Toff_t) { + if __ccgo_strace { + trc("tls=%v f=%v lim=%v, (%v:)", tls, f, lim, origin(2)) + } + (*TFILE)(unsafe.Pointer(f)).Fshlim = lim + (*TFILE)(unsafe.Pointer(f)).Fshcnt = int64((*TFILE)(unsafe.Pointer(f)).Fbuf) - int64((*TFILE)(unsafe.Pointer(f)).Frpos) + /* If lim is nonzero, rend must be a valid pointer. */ + if lim != 0 && int64((*TFILE)(unsafe.Pointer(f)).Frend)-int64((*TFILE)(unsafe.Pointer(f)).Frpos) > lim { + (*TFILE)(unsafe.Pointer(f)).Fshend = (*TFILE)(unsafe.Pointer(f)).Frpos + uintptr(lim) + } else { + (*TFILE)(unsafe.Pointer(f)).Fshend = (*TFILE)(unsafe.Pointer(f)).Frend + } +} + +func X__shgetc(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var c, v1 int32 + var cnt Toff_t + var v2 bool + _, _, _, _ = c, cnt, v1, v2 + cnt = (*TFILE)(unsafe.Pointer(f)).Fshcnt + (int64((*TFILE)(unsafe.Pointer(f)).Frpos) - int64((*TFILE)(unsafe.Pointer(f)).Fbuf)) + if v2 = (*TFILE)(unsafe.Pointer(f)).Fshlim != 0 && cnt >= (*TFILE)(unsafe.Pointer(f)).Fshlim; !v2 { + v1 = X__uflow(tls, f) + c = v1 + } + if v2 || v1 < 0 { + (*TFILE)(unsafe.Pointer(f)).Fshcnt = int64((*TFILE)(unsafe.Pointer(f)).Fbuf) - int64((*TFILE)(unsafe.Pointer(f)).Frpos) + cnt + (*TFILE)(unsafe.Pointer(f)).Fshend = (*TFILE)(unsafe.Pointer(f)).Frpos + (*TFILE)(unsafe.Pointer(f)).Fshlim = int64(-int32(1)) + return -int32(1) + } + cnt = cnt + 1 + if (*TFILE)(unsafe.Pointer(f)).Fshlim != 0 && int64((*TFILE)(unsafe.Pointer(f)).Frend)-int64((*TFILE)(unsafe.Pointer(f)).Frpos) > (*TFILE)(unsafe.Pointer(f)).Fshlim-cnt { + (*TFILE)(unsafe.Pointer(f)).Fshend = (*TFILE)(unsafe.Pointer(f)).Frpos + uintptr((*TFILE)(unsafe.Pointer(f)).Fshlim-cnt) + } else { + (*TFILE)(unsafe.Pointer(f)).Fshend = (*TFILE)(unsafe.Pointer(f)).Frend + } + (*TFILE)(unsafe.Pointer(f)).Fshcnt = int64((*TFILE)(unsafe.Pointer(f)).Fbuf) - int64((*TFILE)(unsafe.Pointer(f)).Frpos) + cnt + if (*TFILE)(unsafe.Pointer(f)).Frpos <= (*TFILE)(unsafe.Pointer(f)).Fbuf { + **(**uint8)(__ccgo_up((*TFILE)(unsafe.Pointer(f)).Frpos + uintptr(-Int32FromInt32(1)))) = Uint8FromInt32(c) + } + return c +} + +func X__syscall_ret(tls *TLS, r uint64) (r1 int64) { + if __ccgo_strace { + trc("tls=%v r=%v, (%v:)", tls, r, origin(2)) + defer func() { trc("-> %v", r1) }() + } + if r > -Uint64FromUint64(4096) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = Int32FromUint64(-r) + return int64(-int32(1)) + } + return Int64FromUint64(r) +} + +type TElf_Symndx = uint32 + +type Tdl_phdr_info = struct { + Fdlpi_addr TElf64_Addr + Fdlpi_name uintptr + Fdlpi_phdr uintptr + Fdlpi_phnum TElf64_Half + Fdlpi_adds uint64 + Fdlpi_subs uint64 + Fdlpi_tls_modid Tsize_t + Fdlpi_tls_data uintptr +} + +type Tlink_map = struct { + Fl_addr TElf64_Addr + Fl_name uintptr + Fl_ld uintptr + Fl_next uintptr + Fl_prev uintptr +} + +type Tr_debug = struct { + Fr_version int32 + Fr_map uintptr + Fr_brk TElf64_Addr + Fr_state int32 + Fr_ldbase TElf64_Addr +} + +const _RT_CONSISTENT = 0 +const _RT_ADD = 1 +const _RT_DELETE = 2 +const VERSION = "1.2.5" + +const IPC_CREAT = 512 +const IPC_EXCL = 1024 +const IPC_INFO = 3 +const IPC_NOWAIT = 2048 +const IPC_RMID = 0 +const IPC_SET = 1 +const IPC_STAT = 2 +const __ipc_perm_key = 0 +const __ipc_perm_seq = 0 + +type Tkey_t = int32 + +type Tipc_perm = struct { + F__key Tkey_t + Fuid Tuid_t + Fgid Tgid_t + Fcuid Tuid_t + Fcgid Tgid_t + Fmode Tmode_t + F__seq int32 + F__pad1 int64 + F__pad2 int64 +} + +func Xftok(tls *TLS, path uintptr, id int32) (r Tkey_t) { + if __ccgo_strace { + trc("tls=%v path=%v id=%v, (%v:)", tls, path, id, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(128) + defer tls.Free(128) + var _ /* st at bp+0 */ Tstat + if Xstat(tls, path, bp) < 0 { + return -int32(1) + } + return Int32FromUint64((**(**Tstat)(__ccgo_up(bp))).Fst_ino&Uint64FromInt32(0xffff) | (**(**Tstat)(__ccgo_up(bp))).Fst_dev&Uint64FromInt32(0xff)< %v", r1) }() + } + var r int32 + _ = r + r = int32(X__syscall3(tls, int64(SYS_msgctl), int64(q), int64(cmd & ^(Int32FromInt32(IPC_STAT)&Int32FromInt32(0x100)) | Int32FromInt32(IPC_64)), int64(buf))) + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func Xmsgget(tls *TLS, k Tkey_t, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v k=%v flag=%v, (%v:)", tls, k, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_msgget), int64(k), int64(flag))))) +} + +func Xmsgrcv(tls *TLS, q int32, m uintptr, len1 Tsize_t, type1 int64, flag int32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v q=%v m=%v len1=%v type1=%v flag=%v, (%v:)", tls, q, m, len1, type1, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_msgrcv), int64(q), int64(m), Int64FromUint64(len1), type1, int64(flag), 0))) +} + +func Xmsgsnd(tls *TLS, q int32, m uintptr, len1 Tsize_t, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v q=%v m=%v len1=%v flag=%v, (%v:)", tls, q, m, len1, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_msgsnd), int64(q), int64(m), Int64FromUint64(len1), int64(flag), 0, 0)))) +} + +const GETALL = 13 +const GETNCNT = 14 +const GETPID = 11 +const GETVAL = 12 +const GETZCNT = 15 +const SEM_INFO = 19 +const SEM_STAT = 18 +const SEM_STAT_ANY = 20 +const SEM_UNDO = 4096 +const SETALL = 17 +const SETVAL = 16 +const _SEM_SEMUN_UNDEFINED = 1 + +type Tsemid_ds = struct { + Fsem_perm Tipc_perm + Fsem_otime Ttime_t + Fsem_ctime Ttime_t + Fsem_nsems uint16 + F__sem_nsems_pad [6]uint8 + F__unused3 int64 + F__unused4 int64 +} + +type Tseminfo = struct { + Fsemmap int32 + Fsemmni int32 + Fsemmns int32 + Fsemmnu int32 + Fsemmsl int32 + Fsemopm int32 + Fsemume int32 + Fsemusz int32 + Fsemvmx int32 + Fsemaem int32 +} + +type Tsembuf = struct { + Fsem_num uint16 + Fsem_op int16 + Fsem_flg int16 +} + +type Tsemun = struct { + Fbuf [0]uintptr + Farray [0]uintptr + Fval int32 + F__ccgo_pad3 [4]byte +} + +func Xsemctl(tls *TLS, id int32, num int32, cmd int32, va uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v id=%v num=%v cmd=%v va=%v, (%v:)", tls, id, num, cmd, va, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ap Tva_list + var r int32 + var _ /* arg at bp+0 */ Tsemun + _, _ = ap, r + *(*Tsemun)(unsafe.Pointer(bp)) = Tsemun{} + *(*int32)(unsafe.Pointer(bp)) = 0 + switch cmd & ^(Int32FromInt32(IPC_STAT) & Int32FromInt32(0x100)) { + case int32(SETVAL): + fallthrough + case int32(GETALL): + fallthrough + case int32(SETALL): + fallthrough + case int32(IPC_SET): + fallthrough + case int32(IPC_INFO): + fallthrough + case int32(SEM_INFO): + fallthrough + case Int32FromInt32(IPC_STAT) & ^(Int32FromInt32(IPC_STAT) & Int32FromInt32(0x100)): + fallthrough + case (Int32FromInt32(18) | Int32FromInt32(IPC_STAT)&Int32FromInt32(0x100)) & ^(Int32FromInt32(IPC_STAT) & Int32FromInt32(0x100)): + fallthrough + case (Int32FromInt32(20) | Int32FromInt32(IPC_STAT)&Int32FromInt32(0x100)) & ^(Int32FromInt32(IPC_STAT) & Int32FromInt32(0x100)): + ap = va + **(**Tsemun)(__ccgo_up(bp)) = *(*Tsemun)(unsafe.Pointer(VaOther(&ap, 8))) + _ = ap + } + r = int32(X__syscall4(tls, int64(SYS_semctl), int64(id), int64(num), int64(cmd & ^(Int32FromInt32(IPC_STAT)&Int32FromInt32(0x100)) | Int32FromInt32(IPC_64)), int64(*(*uintptr)(unsafe.Pointer(bp))))) + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func Xsemget(tls *TLS, key Tkey_t, n int32, fl int32) (r int32) { + if __ccgo_strace { + trc("tls=%v key=%v n=%v fl=%v, (%v:)", tls, key, n, fl, origin(2)) + defer func() { trc("-> %v", r) }() + } + /* The kernel uses the wrong type for the sem_nsems member + * of struct semid_ds, and thus might not check that the + * n fits in the correct (per POSIX) userspace type, so + * we have to check here. */ + if n > int32(USHRT_MAX) { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL)))) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_semget), int64(key), int64(n), int64(fl))))) +} + +func Xsemop(tls *TLS, id int32, buf uintptr, n Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v id=%v buf=%v n=%v, (%v:)", tls, id, buf, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_semop), int64(id), int64(buf), Int64FromUint64(n))))) +} + +const NO_TIME32 = 0 +const __key = 0 +const __seq = 0 + +type Tipc_perm1 = struct { + Fkey Tkey_t + Fuid Tuid_t + Fgid Tgid_t + Fcuid Tuid_t + Fcgid Tgid_t + Fmode Tmode_t + Fseq int32 + F__pad1 int64 + F__pad2 int64 +} + +type Tsemid_ds1 = struct { + Fsem_perm Tipc_perm1 + Fsem_otime Ttime_t + Fsem_ctime Ttime_t + Fsem_nsems uint16 + F__sem_nsems_pad [6]uint8 + F__unused3 int64 + F__unused4 int64 +} + +func Xsemtimedop(tls *TLS, id int32, buf uintptr, n Tsize_t, ts uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v id=%v buf=%v n=%v ts=%v, (%v:)", tls, id, buf, n, ts, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_semtimedop), int64(id), int64(buf), Int64FromUint64(n), int64(ts))))) +} + +const SHMLBA = 4096 +const SHM_DEST = 512 +const SHM_EXEC = 32768 +const SHM_HUGETLB = 2048 +const SHM_HUGE_16GB = 2281701376 +const SHM_HUGE_16MB = 1610612736 +const SHM_HUGE_1GB = 2013265920 +const SHM_HUGE_1MB = 1342177280 +const SHM_HUGE_256MB = 1879048192 +const SHM_HUGE_2GB = 2080374784 +const SHM_HUGE_2MB = 1409286144 +const SHM_HUGE_32MB = 1677721600 +const SHM_HUGE_512KB = 1275068416 +const SHM_HUGE_512MB = 1946157056 +const SHM_HUGE_64KB = 1073741824 +const SHM_HUGE_8MB = 1543503872 +const SHM_HUGE_MASK = 63 +const SHM_HUGE_SHIFT = 26 +const SHM_INFO = 14 +const SHM_LOCK = 11 +const SHM_LOCKED = 1024 +const SHM_NORESERVE = 4096 +const SHM_R = 256 +const SHM_RDONLY = 4096 +const SHM_REMAP = 16384 +const SHM_RND = 8192 +const SHM_STAT = 13 +const SHM_STAT_ANY = 15 +const SHM_UNLOCK = 12 +const SHM_W = 128 + +type Tshmid_ds = struct { + Fshm_perm Tipc_perm + Fshm_segsz Tsize_t + Fshm_atime Ttime_t + Fshm_dtime Ttime_t + Fshm_ctime Ttime_t + Fshm_cpid Tpid_t + Fshm_lpid Tpid_t + Fshm_nattch uint64 + F__pad1 uint64 + F__pad2 uint64 +} + +type Tshminfo = struct { + Fshmmax uint64 + Fshmmin uint64 + Fshmmni uint64 + Fshmseg uint64 + Fshmall uint64 + F__unused [4]uint64 +} + +type Tshm_info = struct { + F__used_ids int32 + Fshm_tot uint64 + Fshm_rss uint64 + Fshm_swp uint64 + F__swap_attempts uint64 + F__swap_successes uint64 +} + +type Tshmatt_t = uint64 + +func Xshmat(tls *TLS, id int32, addr uintptr, flag int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v id=%v addr=%v flag=%v, (%v:)", tls, id, addr, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_shmat), int64(id), int64(addr), int64(flag))))) +} + +func Xshmctl(tls *TLS, id int32, cmd int32, buf uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v id=%v cmd=%v buf=%v, (%v:)", tls, id, cmd, buf, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + r = int32(X__syscall3(tls, int64(SYS_shmctl), int64(id), int64(cmd & ^(Int32FromInt32(IPC_STAT)&Int32FromInt32(0x100)) | Int32FromInt32(IPC_64)), int64(buf))) + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func Xshmdt(tls *TLS, addr uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v, (%v:)", tls, addr, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_shmdt), int64(addr))))) +} + +func Xshmget(tls *TLS, key Tkey_t, size Tsize_t, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v key=%v size=%v flag=%v, (%v:)", tls, key, size, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + if size > Uint64FromInt64(Int64FromInt64(INT64_MAX)) { + size = Uint64FromUint64(0xffffffffffffffff) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_shmget), int64(key), Int64FromUint64(size), int64(flag))))) +} + +type Tpasswd = struct { + Fpw_name uintptr + Fpw_passwd uintptr + Fpw_uid Tuid_t + Fpw_gid Tgid_t + Fpw_gecos uintptr + Fpw_dir uintptr + Fpw_shell uintptr +} + +func Xcuserid(tls *TLS, buf uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v buf=%v, (%v:)", tls, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(2112) + defer tls.Free(2112) + var len1 Tsize_t + var _ /* ppw at bp+48 */ uintptr + var _ /* pw at bp+0 */ Tpasswd + var _ /* pwb at bp+56 */ [256]int64 + _ = len1 + if buf != 0 { + **(**uint8)(__ccgo_up(buf)) = uint8(0) + } + Xgetpwuid_r(tls, Xgeteuid(tls), bp, bp+56, uint64(2048), bp+48) + if !(**(**uintptr)(__ccgo_up(bp + 48)) != 0) { + return buf + } + len1 = Xstrnlen(tls, (**(**Tpasswd)(__ccgo_up(bp))).Fpw_name, uint64(L_cuserid)) + if len1 == uint64(L_cuserid) { + return buf + } + if !(buf != 0) { + buf = uintptr(unsafe.Pointer(&_usridbuf)) + } + Xmemcpy(tls, buf, (**(**Tpasswd)(__ccgo_up(bp))).Fpw_name, len1+uint64(1)) + return buf +} + +var _usridbuf [20]uint8 + +func Xvwarn(tls *TLS, fmt uintptr, ap Tva_list) { + if __ccgo_strace { + trc("tls=%v fmt=%v ap=%v, (%v:)", tls, fmt, ap, origin(2)) + } + bp := tls.Alloc(16) + defer tls.Free(16) + Xfprintf(tls, uintptr(unsafe.Pointer(&X__stderr_FILE)), __ccgo_ts+284, VaList(bp+8, Xprogram_invocation_short_name)) + if fmt != 0 { + Xvfprintf(tls, uintptr(unsafe.Pointer(&X__stderr_FILE)), fmt, ap) + Xfputs(tls, __ccgo_ts+289, uintptr(unsafe.Pointer(&X__stderr_FILE))) + } + Xperror(tls, uintptr(0)) +} + +func Xvwarnx(tls *TLS, fmt uintptr, ap Tva_list) { + if __ccgo_strace { + trc("tls=%v fmt=%v ap=%v, (%v:)", tls, fmt, ap, origin(2)) + } + bp := tls.Alloc(16) + defer tls.Free(16) + Xfprintf(tls, uintptr(unsafe.Pointer(&X__stderr_FILE)), __ccgo_ts+284, VaList(bp+8, Xprogram_invocation_short_name)) + if fmt != 0 { + Xvfprintf(tls, uintptr(unsafe.Pointer(&X__stderr_FILE)), fmt, ap) + } + Xputc(tls, int32('\n'), uintptr(unsafe.Pointer(&X__stderr_FILE))) +} + +func Xverr(tls *TLS, status int32, fmt uintptr, ap Tva_list) { + if __ccgo_strace { + trc("tls=%v status=%v fmt=%v ap=%v, (%v:)", tls, status, fmt, ap, origin(2)) + } + Xvwarn(tls, fmt, ap) + _exit(tls, status) +} + +func Xverrx(tls *TLS, status int32, fmt uintptr, ap Tva_list) { + if __ccgo_strace { + trc("tls=%v status=%v fmt=%v ap=%v, (%v:)", tls, status, fmt, ap, origin(2)) + } + Xvwarnx(tls, fmt, ap) + _exit(tls, status) +} + +func Xwarn(tls *TLS, fmt uintptr, va uintptr) { + if __ccgo_strace { + trc("tls=%v fmt=%v va=%v, (%v:)", tls, fmt, va, origin(2)) + } + var ap Tva_list + _ = ap + ap = va + Xvwarn(tls, fmt, ap) + _ = ap +} + +func Xwarnx(tls *TLS, fmt uintptr, va uintptr) { + if __ccgo_strace { + trc("tls=%v fmt=%v va=%v, (%v:)", tls, fmt, va, origin(2)) + } + var ap Tva_list + _ = ap + ap = va + Xvwarnx(tls, fmt, ap) + _ = ap +} + +func Xerr(tls *TLS, status int32, fmt uintptr, va uintptr) { + if __ccgo_strace { + trc("tls=%v status=%v fmt=%v va=%v, (%v:)", tls, status, fmt, va, origin(2)) + } + var ap Tva_list + _ = ap + ap = va + Xverr(tls, status, fmt, ap) + _ = ap +} + +func Xerrx(tls *TLS, status int32, fmt uintptr, va uintptr) { + if __ccgo_strace { + trc("tls=%v status=%v fmt=%v va=%v, (%v:)", tls, status, fmt, va, origin(2)) + } + var ap Tva_list + _ = ap + ap = va + Xverrx(tls, status, fmt, ap) + _ = ap +} + +func Xeuidaccess(tls *TLS, filename uintptr, amode int32) (r int32) { + if __ccgo_strace { + trc("tls=%v filename=%v amode=%v, (%v:)", tls, filename, amode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfaccessat(tls, -int32(100), filename, amode, int32(AT_EACCESS)) +} + +func Xeaccess(tls *TLS, filename uintptr, amode int32) (r int32) { + if __ccgo_strace { + trc("tls=%v filename=%v amode=%v, (%v:)", tls, filename, amode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xeuidaccess(tls, filename, amode) +} + +const FTW_CHDIR = 4 +const FTW_D = 2 +const FTW_DEPTH = 8 +const FTW_DNR = 3 +const FTW_DP = 6 +const FTW_F = 1 +const FTW_MOUNT = 2 +const FTW_NS = 4 +const FTW_PHYS = 1 +const FTW_SL = 5 +const FTW_SLN = 7 + +type TFTW = struct { + Fbase int32 + Flevel int32 +} + +type t__ccgo_fp__Xftw_1 = func(*TLS, uintptr, uintptr, int32) int32 + +func Xftw(tls *TLS, path uintptr, __ccgo_fp_fn uintptr, fd_limit int32) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v __ccgo_fp_fn=%v fd_limit=%v, (%v:)", tls, path, __ccgo_fp_fn, fd_limit, origin(2)) + defer func() { trc("-> %v", r) }() + } + /* The following cast assumes that calling a function with one + * argument more than it needs behaves as expected. This is + * actually undefined, but works on all real-world machines. */ + return Xnftw(tls, path, __ccgo_fp_fn, fd_limit, int32(FTW_PHYS)) +} + +const STATX_ALL = 4095 +const STATX_ATIME = 32 +const STATX_BASIC_STATS = 2047 +const STATX_BLOCKS = 1024 +const STATX_BTIME = 2048 +const STATX_CTIME = 128 +const STATX_GID = 16 +const STATX_INO = 256 +const STATX_MODE = 2 +const STATX_MTIME = 64 +const STATX_NLINK = 4 +const STATX_SIZE = 512 +const STATX_TYPE = 1 +const STATX_UID = 8 +const S_IEXEC = 64 +const S_IREAD = 256 +const S_IWRITE = 128 + +type Tstatx_timestamp = struct { + Ftv_sec Tint64_t + Ftv_nsec Tuint32_t + F__pad Tuint32_t +} + +type Tstatx = struct { + Fstx_mask Tuint32_t + Fstx_blksize Tuint32_t + Fstx_attributes Tuint64_t + Fstx_nlink Tuint32_t + Fstx_uid Tuint32_t + Fstx_gid Tuint32_t + Fstx_mode Tuint16_t + F__pad0 [1]Tuint16_t + Fstx_ino Tuint64_t + Fstx_size Tuint64_t + Fstx_blocks Tuint64_t + Fstx_attributes_mask Tuint64_t + Fstx_atime Tstatx_timestamp + Fstx_btime Tstatx_timestamp + Fstx_ctime Tstatx_timestamp + Fstx_mtime Tstatx_timestamp + Fstx_rdev_major Tuint32_t + Fstx_rdev_minor Tuint32_t + Fstx_dev_major Tuint32_t + Fstx_dev_minor Tuint32_t + F__pad1 [14]Tuint64_t +} + +type Ttimezone = struct { + Ftz_minuteswest int32 + Ftz_dsttime int32 +} + +func Xfutimes(tls *TLS, fd int32, tv uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v tv=%v, (%v:)", tls, fd, tv, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var _ /* times at bp+0 */ [2]Ttimespec + if !(tv != 0) { + return Xfutimens(tls, fd, uintptr(0)) + } + (**(**[2]Ttimespec)(__ccgo_up(bp)))[0].Ftv_sec = (**(**Ttimeval)(__ccgo_up(tv))).Ftv_sec + (**(**[2]Ttimespec)(__ccgo_up(bp)))[0].Ftv_nsec = (**(**Ttimeval)(__ccgo_up(tv))).Ftv_usec * int64(1000) + (**(**[2]Ttimespec)(__ccgo_up(bp)))[int32(1)].Ftv_sec = (**(**Ttimeval)(__ccgo_up(tv + 1*16))).Ftv_sec + (**(**[2]Ttimespec)(__ccgo_up(bp)))[int32(1)].Ftv_nsec = (**(**Ttimeval)(__ccgo_up(tv + 1*16))).Ftv_usec * int64(1000) + return Xfutimens(tls, fd, bp) +} + +const prlimit64 = 0 + +func Xgetdtablesize(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uint64 + var _ /* rl at bp+0 */ Trlimit + _ = v1 + Xgetrlimit(tls, int32(RLIMIT_NOFILE), bp) + if (**(**Trlimit)(__ccgo_up(bp))).Frlim_cur < uint64(INT_MAX) { + v1 = (**(**Trlimit)(__ccgo_up(bp))).Frlim_cur + } else { + v1 = uint64(INT_MAX) + } + return Int32FromUint64(v1) +} + +func Xgetloadavg(tls *TLS, a uintptr, n int32) (r int32) { + if __ccgo_strace { + trc("tls=%v a=%v n=%v, (%v:)", tls, a, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(368) + defer tls.Free(368) + var i, v1 int32 + var _ /* si at bp+0 */ Tsysinfo + _, _ = i, v1 + if n <= 0 { + if n != 0 { + v1 = -int32(1) + } else { + v1 = 0 + } + return v1 + } + Xsysinfo(tls, bp) + if n > int32(3) { + n = int32(3) + } + i = 0 + for { + if !(i < n) { + break + } + **(**float64)(__ccgo_up(a + uintptr(i)*8)) = float64(Float64FromFloat64(1) / float64(Int32FromInt32(1)< %v", r) }() + } + return Int32FromUint64(X__libc.Fpage_size) +} + +const B0 = 0 +const B1000000 = 4104 +const B110 = 3 +const B115200 = 4098 +const B1152000 = 4105 +const B1200 = 9 +const B134 = 4 +const B150 = 5 +const B1500000 = 4106 +const B1800 = 10 +const B19200 = 14 +const B200 = 6 +const B2000000 = 4107 +const B230400 = 4099 +const B2400 = 11 +const B2500000 = 4108 +const B300 = 7 +const B3000000 = 4109 +const B3500000 = 4110 +const B38400 = 15 +const B4000000 = 4111 +const B460800 = 4100 +const B4800 = 12 +const B50 = 1 +const B500000 = 4101 +const B57600 = 4097 +const B576000 = 4102 +const B600 = 8 +const B75 = 2 +const B921600 = 4103 +const B9600 = 13 +const BRKINT = 2 +const BS0 = 0 +const BS1 = 8192 +const BSDLY = 8192 +const CBAUD = 4111 +const CBAUDEX = 4096 +const CIBAUD = 269418496 +const CLOCAL = 2048 +const CMSPAR = 1073741824 +const CR0 = 0 +const CR1 = 512 +const CR2 = 1024 +const CR3 = 1536 +const CRDLY = 1536 +const CREAD = 128 +const CRTSCTS = 2147483648 +const CS5 = 0 +const CS6 = 16 +const CS7 = 32 +const CS8 = 48 +const CSIZE = 48 +const CSTOPB = 64 +const ECHO = 8 +const ECHOCTL = 512 +const ECHOE = 16 +const ECHOK = 32 +const ECHOKE = 2048 +const ECHONL = 64 +const ECHOPRT = 1024 +const EXTA = 14 +const EXTB = 15 +const EXTPROC = 65536 +const FF0 = 0 +const FF1 = 32768 +const FFDLY = 32768 +const FLUSHO = 4096 +const HUPCL = 1024 +const ICANON = 2 +const ICRNL = 256 +const IEXTEN = 32768 +const IGNBRK = 1 +const IGNCR = 128 +const IGNPAR = 4 +const IMAXBEL = 8192 +const INLCR = 64 +const INPCK = 16 +const ISIG = 1 +const ISTRIP = 32 +const IUCLC = 512 +const IUTF8 = 16384 +const IXANY = 2048 +const IXOFF = 4096 +const IXON = 1024 +const NCCS = 32 +const NL0 = 0 +const NL1 = 256 +const NLDLY = 256 +const NOFLSH = 128 +const OCRNL = 8 +const OFDEL = 128 +const OFILL = 64 +const OLCUC = 2 +const ONLCR = 4 +const ONLRET = 32 +const ONOCR = 16 +const OPOST = 1 +const PARENB = 256 +const PARMRK = 8 +const PARODD = 512 +const PENDIN = 16384 +const TAB0 = 0 +const TAB1 = 2048 +const TAB2 = 4096 +const TAB3 = 6144 +const TABDLY = 6144 +const TCIFLUSH = 0 +const TCIOFF = 2 +const TCIOFLUSH = 2 +const TCION = 3 +const TCOFLUSH = 1 +const TCOOFF = 0 +const TCOON = 1 +const TCSADRAIN = 1 +const TCSAFLUSH = 2 +const TCSANOW = 0 +const TOSTOP = 256 +const VDISCARD = 13 +const VEOF = 4 +const VEOL = 11 +const VEOL2 = 16 +const VERASE = 2 +const VINTR = 0 +const VKILL = 3 +const VLNEXT = 15 +const VMIN = 6 +const VQUIT = 1 +const VREPRINT = 12 +const VSTART = 8 +const VSTOP = 9 +const VSUSP = 10 +const VSWTC = 7 +const VT0 = 0 +const VT1 = 16384 +const VTDLY = 16384 +const VTIME = 5 +const VWERASE = 14 +const XCASE = 4 +const XTABS = 6144 + +type Twinsize = struct { + Fws_row uint16 + Fws_col uint16 + Fws_xpixel uint16 + Fws_ypixel uint16 +} + +type Tcc_t = uint8 + +type Tspeed_t = uint32 + +type Ttcflag_t = uint32 + +type Ttermios = struct { + Fc_iflag Ttcflag_t + Fc_oflag Ttcflag_t + Fc_cflag Ttcflag_t + Fc_lflag Ttcflag_t + Fc_line Tcc_t + Fc_cc [32]Tcc_t + F__c_ispeed Tspeed_t + F__c_ospeed Tspeed_t +} + +func Xgetpass(tls *TLS, prompt uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v prompt=%v, (%v:)", tls, prompt, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(144) + defer tls.Free(144) + var fd, v1 int32 + var l Tssize_t + var v2 uintptr + var _ /* s at bp+0 */ Ttermios + var _ /* t at bp+60 */ Ttermios + _, _, _, _ = fd, l, v1, v2 + v1 = Xopen(tls, __ccgo_ts+292, Int32FromInt32(O_RDWR)|Int32FromInt32(O_NOCTTY)|Int32FromInt32(O_CLOEXEC), 0) + fd = v1 + if v1 < 0 { + return uintptr(0) + } + Xtcgetattr(tls, fd, bp+60) + **(**Ttermios)(__ccgo_up(bp)) = **(**Ttermios)(__ccgo_up(bp + 60)) + (**(**Ttermios)(__ccgo_up(bp + 60))).Fc_lflag &= Uint32FromInt32(^(Int32FromInt32(ECHO) | Int32FromInt32(ISIG))) + (**(**Ttermios)(__ccgo_up(bp + 60))).Fc_lflag |= uint32(ICANON) + (**(**Ttermios)(__ccgo_up(bp + 60))).Fc_iflag &= Uint32FromInt32(^(Int32FromInt32(INLCR) | Int32FromInt32(IGNCR))) + (**(**Ttermios)(__ccgo_up(bp + 60))).Fc_iflag |= uint32(ICRNL) + Xtcsetattr(tls, fd, int32(TCSAFLUSH), bp+60) + Xtcdrain(tls, fd) + Xdprintf(tls, fd, __ccgo_ts+15, VaList(bp+128, prompt)) + l = Xread(tls, fd, uintptr(unsafe.Pointer(&_password)), uint64(128)) + if l >= 0 { + if l > 0 && Int32FromUint8(_password[l-int64(1)]) == int32('\n') || Uint64FromInt64(l) == uint64(128) { + l = l - 1 + } + _password[l] = uint8(0) + } + Xtcsetattr(tls, fd, int32(TCSAFLUSH), bp) + Xdprintf(tls, fd, __ccgo_ts+301, 0) + Xclose(tls, fd) + if l < 0 { + v2 = uintptr(0) + } else { + v2 = uintptr(unsafe.Pointer(&_password)) + } + return v2 +} + +var _password [128]uint8 + +var _defshells = [18]uint8{'/', 'b', 'i', 'n', '/', 's', 'h', 10, '/', 'b', 'i', 'n', '/', 'c', 's', 'h', 10} + +var _line uintptr +var _linesize Tsize_t +var _f uintptr + +func Xendusershell(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + if _f != 0 { + Xfclose(tls, _f) + } + _f = uintptr(0) +} + +func Xsetusershell(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + if !(_f != 0) { + _f = Xfopen(tls, __ccgo_ts+303, __ccgo_ts+315) + } + if !(_f != 0) { + _f = Xfmemopen(tls, uintptr(unsafe.Pointer(&_defshells)), Uint64FromInt64(18)-Uint64FromInt32(1), __ccgo_ts+319) + } +} + +func Xgetusershell(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l Tssize_t + _ = l + if !(_f != 0) { + Xsetusershell(tls) + } + if !(_f != 0) { + return uintptr(0) + } + l = Xgetline(tls, uintptr(unsafe.Pointer(&_line)), uintptr(unsafe.Pointer(&_linesize)), _f) + if l <= 0 { + return uintptr(0) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(_line + uintptr(l-int64(1))))) == int32('\n') { + **(**uint8)(__ccgo_up(_line + uintptr(l-int64(1)))) = uint8(0) + } + return _line +} + +const ANYMARK = 1 +const FLUSHBAND = 4 +const FLUSHR = 1 +const FLUSHRW = 3 +const FLUSHW = 2 +const FMNAMESZ = 8 +const I_ATMARK = 21279 +const I_CANPUT = 21282 +const I_CKBAND = 21277 +const I_FDINSERT = 21264 +const I_FIND = 21259 +const I_FLUSH = 21253 +const I_FLUSHBAND = 21276 +const I_GETBAND = 21278 +const I_GETCLTIME = 21281 +const I_GETSIG = 21258 +const I_GRDOPT = 21255 +const I_GWROPT = 21268 +const I_LINK = 21260 +const I_LIST = 21269 +const I_LOOK = 21252 +const I_NREAD = 21249 +const I_PEEK = 21263 +const I_PLINK = 21270 +const I_POP = 21251 +const I_PUNLINK = 21271 +const I_PUSH = 21250 +const I_RECVFD = 21262 +const I_SENDFD = 21265 +const I_SETCLTIME = 21280 +const I_SETSIG = 21257 +const I_SRDOPT = 21254 +const I_STR = 21256 +const I_SWROPT = 21267 +const I_UNLINK = 21261 +const LASTMARK = 2 +const MORECTL = 1 +const MOREDATA = 2 +const MSG_ANY = 2 +const MSG_BAND = 4 +const MSG_HIPRI = 1 +const MUXID_ALL = -1 +const RMSGD = 1 +const RMSGN = 2 +const RNORM = 0 +const RPROTDAT = 4 +const RPROTDIS = 8 +const RPROTMASK = 28 +const RPROTNORM = 16 +const RS_HIPRI = 1 +const SNDPIPE = 2 +const SNDZERO = 1 +const S_BANDURG = 512 +const S_ERROR = 16 +const S_HANGUP = 32 +const S_HIPRI = 2 +const S_INPUT = 1 +const S_MSG = 8 +const S_OUTPUT = 4 +const S_RDBAND = 128 +const S_RDNORM = 64 +const S_WRBAND = 256 +const S_WRNORM = 4 +const __SID = 21248 + +type Tbandinfo = struct { + Fbi_pri uint8 + Fbi_flag int32 +} + +type Tstrbuf = struct { + Fmaxlen int32 + Flen1 int32 + Fbuf uintptr +} + +type Tstrpeek = struct { + Fctlbuf Tstrbuf + Fdatabuf Tstrbuf + Fflags uint32 +} + +type Tstrfdinsert = struct { + Fctlbuf Tstrbuf + Fdatabuf Tstrbuf + Fflags uint32 + Ffildes int32 + Foffset int32 +} + +type Tstrioctl = struct { + Fic_cmd int32 + Fic_timout int32 + Fic_len int32 + Fic_dp uintptr +} + +type Tstrrecvfd = struct { + Ffd int32 + Fuid int32 + Fgid int32 + F__fill [8]uint8 +} + +type Tstr_mlist = struct { + Fl_name [9]uint8 +} + +type Tstr_list = struct { + Fsl_nmods int32 + Fsl_modlist uintptr +} + +func Xisastream(tls *TLS, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + _ = v1 + if Xfcntl(tls, fd, int32(F_GETFD), 0) < 0 { + v1 = -int32(1) + } else { + v1 = 0 + } + return v1 +} + +func Xlutimes(tls *TLS, filename uintptr, tv uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v filename=%v tv=%v, (%v:)", tls, filename, tv, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var v1 uintptr + var _ /* times at bp+0 */ [2]Ttimespec + _ = v1 + if tv != 0 { + (**(**[2]Ttimespec)(__ccgo_up(bp)))[0].Ftv_sec = (**(**Ttimeval)(__ccgo_up(tv))).Ftv_sec + (**(**[2]Ttimespec)(__ccgo_up(bp)))[0].Ftv_nsec = (**(**Ttimeval)(__ccgo_up(tv))).Ftv_usec * int64(1000) + (**(**[2]Ttimespec)(__ccgo_up(bp)))[int32(1)].Ftv_sec = (**(**Ttimeval)(__ccgo_up(tv + 1*16))).Ftv_sec + (**(**[2]Ttimespec)(__ccgo_up(bp)))[int32(1)].Ftv_nsec = (**(**Ttimeval)(__ccgo_up(tv + 1*16))).Ftv_usec * int64(1000) + } + if tv != 0 { + v1 = bp + } else { + v1 = uintptr(0) + } + return Xutimensat(tls, -int32(100), filename, v1, int32(AT_SYMLINK_NOFOLLOW)) +} + +const UL_GETFSIZE = 1 +const UL_SETFSIZE = 2 + +func Xulimit(tls *TLS, cmd int32, va uintptr) (r int64) { + if __ccgo_strace { + trc("tls=%v cmd=%v va=%v, (%v:)", tls, cmd, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ap Tva_list + var val int64 + var _ /* rl at bp+0 */ Trlimit + _, _ = ap, val + Xgetrlimit(tls, int32(RLIMIT_FSIZE), bp) + if cmd == int32(UL_SETFSIZE) { + ap = va + val = VaInt64(&ap) + _ = ap + (**(**Trlimit)(__ccgo_up(bp))).Frlim_cur = uint64(512) * Uint64FromInt64(val) + if Xsetrlimit(tls, int32(RLIMIT_FSIZE), bp) != 0 { + return int64(-int32(1)) + } + } + return Int64FromUint64((**(**Trlimit)(__ccgo_up(bp))).Frlim_cur / uint64(512)) +} + +const BOOT_TIME = 2 +const DEAD_PROCESS = 8 +const EMPTY = 0 +const INIT_PROCESS = 5 +const LOGIN_PROCESS = 6 +const NEW_TIME = 3 +const OLD_TIME = 4 +const RUN_LVL = 1 +const USER_PROCESS = 7 +const e_exit = 0 +const e_termination = 0 + +type Tutmpx = struct { + Fut_type int16 + F__ut_pad1 int16 + Fut_pid Tpid_t + Fut_line [32]uint8 + Fut_id [4]uint8 + Fut_user [32]uint8 + Fut_host [256]uint8 + Fut_exit struct { + F__e_termination int16 + F__e_exit int16 + } + Fut_session int32 + F__ut_pad2 int32 + Fut_tv Ttimeval + Fut_addr_v6 [4]uint32 + F__unused [20]uint8 +} + +func Xendutxent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } +} + +func Xsetutxent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } +} + +func Xgetutxent(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return UintptrFromInt32(0) +} + +func Xgetutxid(tls *TLS, ut uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v ut=%v, (%v:)", tls, ut, origin(2)) + defer func() { trc("-> %v", r) }() + } + return UintptrFromInt32(0) +} + +func Xgetutxline(tls *TLS, ut uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v ut=%v, (%v:)", tls, ut, origin(2)) + defer func() { trc("-> %v", r) }() + } + return UintptrFromInt32(0) +} + +func Xpututxline(tls *TLS, ut uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v ut=%v, (%v:)", tls, ut, origin(2)) + defer func() { trc("-> %v", r) }() + } + return UintptrFromInt32(0) +} + +func Xupdwtmpx(tls *TLS, f uintptr, u uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v u=%v, (%v:)", tls, f, u, origin(2)) + } +} + +func ___utmpxname(tls *TLS, f uintptr) (r int32) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOPNOTSUPP) + return -int32(1) +} + +func Xendutent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + Xendutxent(tls) +} + +func Xgetutent(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetutxent(tls) +} + +func Xgetutid(tls *TLS, ut uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v ut=%v, (%v:)", tls, ut, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetutxid(tls, ut) +} + +func Xgetutline(tls *TLS, ut uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v ut=%v, (%v:)", tls, ut, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetutxline(tls, ut) +} + +func Xpututline(tls *TLS, ut uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v ut=%v, (%v:)", tls, ut, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xpututxline(tls, ut) +} + +func Xsetutent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + Xsetutxent(tls) +} + +func Xupdwtmp(tls *TLS, f uintptr, u uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v u=%v, (%v:)", tls, f, u, origin(2)) + } + Xupdwtmpx(tls, f, u) +} + +const ADJ_ESTERROR = 8 +const ADJ_FREQUENCY = 2 +const ADJ_MAXERROR = 4 +const ADJ_MICRO = 4096 +const ADJ_NANO = 8192 +const ADJ_OFFSET = 1 +const ADJ_OFFSET_SINGLESHOT = 32769 +const ADJ_OFFSET_SS_READ = 40961 +const ADJ_SETOFFSET = 256 +const ADJ_STATUS = 16 +const ADJ_TAI = 128 +const ADJ_TICK = 16384 +const ADJ_TIMECONST = 32 +const MAXTC = 6 +const MOD_CLKA = 32769 +const MOD_CLKB = 16384 +const MOD_ESTERROR = 8 +const MOD_FREQUENCY = 2 +const MOD_MAXERROR = 4 +const MOD_MICRO = 4096 +const MOD_NANO = 8192 +const MOD_OFFSET = 1 +const MOD_STATUS = 16 +const MOD_TAI = 128 +const MOD_TIMECONST = 32 +const STA_CLK = 32768 +const STA_CLOCKERR = 4096 +const STA_DEL = 32 +const STA_FLL = 8 +const STA_FREQHOLD = 128 +const STA_INS = 16 +const STA_MODE = 16384 +const STA_NANO = 8192 +const STA_PLL = 1 +const STA_PPSERROR = 2048 +const STA_PPSFREQ = 2 +const STA_PPSJITTER = 512 +const STA_PPSSIGNAL = 256 +const STA_PPSTIME = 4 +const STA_PPSWANDER = 1024 +const STA_RONLY = 65280 +const STA_UNSYNC = 64 +const TIME_BAD = 5 +const TIME_DEL = 2 +const TIME_ERROR = 5 +const TIME_INS = 1 +const TIME_OK = 0 +const TIME_OOP = 3 +const TIME_WAIT = 4 + +type Tntptimeval = struct { + Ftime Ttimeval + Fmaxerror int64 + Festerror int64 +} + +type Ttimex = struct { + Fmodes uint32 + Foffset int64 + Ffreq int64 + Fmaxerror int64 + Festerror int64 + Fstatus int32 + Fconstant int64 + Fprecision int64 + Ftolerance int64 + Ftime Ttimeval + Ftick int64 + Fppsfreq int64 + Fjitter int64 + Fshift int32 + Fstabil int64 + Fjitcnt int64 + Fcalcnt int64 + Ferrcnt int64 + Fstbcnt int64 + Ftai int32 + F__padding [11]int32 +} + +func Xadjtime(tls *TLS, in uintptr, out uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v in=%v out=%v, (%v:)", tls, in, out, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(208) + defer tls.Free(208) + var v1 Tsuseconds_t + var _ /* tx at bp+0 */ Ttimex + _ = v1 + **(**Ttimex)(__ccgo_up(bp)) = Ttimex{} + if in != 0 { + if (*Ttimeval)(unsafe.Pointer(in)).Ftv_sec > int64(1000) || (*Ttimeval)(unsafe.Pointer(in)).Ftv_usec > int64(1000000000) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + (**(**Ttimex)(__ccgo_up(bp))).Foffset = (*Ttimeval)(unsafe.Pointer(in)).Ftv_sec*int64(1000000) + (*Ttimeval)(unsafe.Pointer(in)).Ftv_usec + (**(**Ttimex)(__ccgo_up(bp))).Fmodes = uint32(ADJ_OFFSET_SINGLESHOT) + } + if Xadjtimex(tls, bp) < 0 { + return -int32(1) + } + if out != 0 { + (*Ttimeval)(unsafe.Pointer(out)).Ftv_sec = (**(**Ttimex)(__ccgo_up(bp))).Foffset / int64(1000000) + v1 = (**(**Ttimex)(__ccgo_up(bp))).Foffset % Int64FromInt32(1000000) + (*Ttimeval)(unsafe.Pointer(out)).Ftv_usec = v1 + if v1 < 0 { + (*Ttimeval)(unsafe.Pointer(out)).Ftv_sec = (*Ttimeval)(unsafe.Pointer(out)).Ftv_sec - 1 + **(**Tsuseconds_t)(__ccgo_up(out + 8)) += int64(1000000) + } + } + return 0 +} + +func Xadjtimex(tls *TLS, tx uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v tx=%v, (%v:)", tls, tx, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xclock_adjtime(tls, CLOCK_REALTIME, tx) +} + +func Xbrk(tls *TLS, end uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v end=%v, (%v:)", tls, end, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(ENOMEM)))) +} + +func Xcapset(tls *TLS, a uintptr, b uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v a=%v b=%v, (%v:)", tls, a, b, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_capset), int64(a), int64(b))))) +} + +func Xcapget(tls *TLS, a uintptr, b uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v a=%v b=%v, (%v:)", tls, a, b, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_capget), int64(a), int64(b))))) +} + +func Xchroot(tls *TLS, path uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v, (%v:)", tls, path, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_chroot), int64(path))))) +} + +type Tktimex64 = struct { + Fmodes uint32 + F__ccgo4 uint32 + Foffset int64 + Ffreq int64 + Fmaxerror int64 + Festerror int64 + Fstatus int32 + F__ccgo44 uint32 + Fconstant int64 + Fprecision int64 + Ftolerance int64 + Ftime_sec int64 + Ftime_usec int64 + Ftick int64 + Fppsfreq int64 + Fjitter int64 + Fshift int32 + F__ccgo116 uint32 + Fstabil int64 + Fjitcnt int64 + Fcalcnt int64 + Ferrcnt int64 + Fstbcnt int64 + Ftai int32 + F__padding [11]int32 +} + +type Tktimex = struct { + Fmodes uint32 + Foffset int64 + Ffreq int64 + Fmaxerror int64 + Festerror int64 + Fstatus int32 + Fconstant int64 + Fprecision int64 + Ftolerance int64 + Ftime_sec int64 + Ftime_usec int64 + Ftick int64 + Fppsfreq int64 + Fjitter int64 + Fshift int32 + Fstabil int64 + Fjitcnt int64 + Fcalcnt int64 + Ferrcnt int64 + Fstbcnt int64 + Ftai int32 + F__padding [11]int32 +} + +func Xclock_adjtime(tls *TLS, clock_id Tclockid_t, utx uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v clock_id=%v utx=%v, (%v:)", tls, clock_id, utx, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(208) + defer tls.Free(208) + var r int32 + var _ /* ktx at bp+0 */ Tktimex + _ = r + r = -int32(ENOSYS) + if uint64(8) > uint64(8) { + **(**Tktimex)(__ccgo_up(bp)) = Tktimex{ + Fmodes: (*Ttimex)(unsafe.Pointer(utx)).Fmodes, + Foffset: (*Ttimex)(unsafe.Pointer(utx)).Foffset, + Ffreq: (*Ttimex)(unsafe.Pointer(utx)).Ffreq, + Fmaxerror: (*Ttimex)(unsafe.Pointer(utx)).Fmaxerror, + Festerror: (*Ttimex)(unsafe.Pointer(utx)).Festerror, + Fstatus: (*Ttimex)(unsafe.Pointer(utx)).Fstatus, + Fconstant: (*Ttimex)(unsafe.Pointer(utx)).Fconstant, + Fprecision: (*Ttimex)(unsafe.Pointer(utx)).Fprecision, + Ftolerance: (*Ttimex)(unsafe.Pointer(utx)).Ftolerance, + Ftime_sec: (*Ttimex)(unsafe.Pointer(utx)).Ftime.Ftv_sec, + Ftime_usec: (*Ttimex)(unsafe.Pointer(utx)).Ftime.Ftv_usec, + Ftick: (*Ttimex)(unsafe.Pointer(utx)).Ftick, + Fppsfreq: (*Ttimex)(unsafe.Pointer(utx)).Fppsfreq, + Fjitter: (*Ttimex)(unsafe.Pointer(utx)).Fjitter, + Fshift: (*Ttimex)(unsafe.Pointer(utx)).Fshift, + Fstabil: (*Ttimex)(unsafe.Pointer(utx)).Fstabil, + Fjitcnt: (*Ttimex)(unsafe.Pointer(utx)).Fjitcnt, + Fcalcnt: (*Ttimex)(unsafe.Pointer(utx)).Fcalcnt, + Ferrcnt: (*Ttimex)(unsafe.Pointer(utx)).Ferrcnt, + Fstbcnt: (*Ttimex)(unsafe.Pointer(utx)).Fstbcnt, + Ftai: (*Ttimex)(unsafe.Pointer(utx)).Ftai, + } + if clock_id == CLOCK_REALTIME { + r = int32(X__syscall1(tls, int64(SYS_adjtimex), int64(bp))) + } else { + r = int32(X__syscall2(tls, int64(SYS_clock_adjtime), int64(clock_id), int64(bp))) + } + if r >= 0 { + (*Ttimex)(unsafe.Pointer(utx)).Fmodes = (**(**Tktimex)(__ccgo_up(bp))).Fmodes + (*Ttimex)(unsafe.Pointer(utx)).Foffset = (**(**Tktimex)(__ccgo_up(bp))).Foffset + (*Ttimex)(unsafe.Pointer(utx)).Ffreq = (**(**Tktimex)(__ccgo_up(bp))).Ffreq + (*Ttimex)(unsafe.Pointer(utx)).Fmaxerror = (**(**Tktimex)(__ccgo_up(bp))).Fmaxerror + (*Ttimex)(unsafe.Pointer(utx)).Festerror = (**(**Tktimex)(__ccgo_up(bp))).Festerror + (*Ttimex)(unsafe.Pointer(utx)).Fstatus = (**(**Tktimex)(__ccgo_up(bp))).Fstatus + (*Ttimex)(unsafe.Pointer(utx)).Fconstant = (**(**Tktimex)(__ccgo_up(bp))).Fconstant + (*Ttimex)(unsafe.Pointer(utx)).Fprecision = (**(**Tktimex)(__ccgo_up(bp))).Fprecision + (*Ttimex)(unsafe.Pointer(utx)).Ftolerance = (**(**Tktimex)(__ccgo_up(bp))).Ftolerance + (*Ttimex)(unsafe.Pointer(utx)).Ftime.Ftv_sec = (**(**Tktimex)(__ccgo_up(bp))).Ftime_sec + (*Ttimex)(unsafe.Pointer(utx)).Ftime.Ftv_usec = (**(**Tktimex)(__ccgo_up(bp))).Ftime_usec + (*Ttimex)(unsafe.Pointer(utx)).Ftick = (**(**Tktimex)(__ccgo_up(bp))).Ftick + (*Ttimex)(unsafe.Pointer(utx)).Fppsfreq = (**(**Tktimex)(__ccgo_up(bp))).Fppsfreq + (*Ttimex)(unsafe.Pointer(utx)).Fjitter = (**(**Tktimex)(__ccgo_up(bp))).Fjitter + (*Ttimex)(unsafe.Pointer(utx)).Fshift = (**(**Tktimex)(__ccgo_up(bp))).Fshift + (*Ttimex)(unsafe.Pointer(utx)).Fstabil = (**(**Tktimex)(__ccgo_up(bp))).Fstabil + (*Ttimex)(unsafe.Pointer(utx)).Fjitcnt = (**(**Tktimex)(__ccgo_up(bp))).Fjitcnt + (*Ttimex)(unsafe.Pointer(utx)).Fcalcnt = (**(**Tktimex)(__ccgo_up(bp))).Fcalcnt + (*Ttimex)(unsafe.Pointer(utx)).Ferrcnt = (**(**Tktimex)(__ccgo_up(bp))).Ferrcnt + (*Ttimex)(unsafe.Pointer(utx)).Fstbcnt = (**(**Tktimex)(__ccgo_up(bp))).Fstbcnt + (*Ttimex)(unsafe.Pointer(utx)).Ftai = (**(**Tktimex)(__ccgo_up(bp))).Ftai + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) + } + if clock_id == CLOCK_REALTIME { + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_adjtimex), int64(utx))))) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_clock_adjtime), int64(clock_id), int64(utx))))) +} + +func Xcopy_file_range(tls *TLS, fd_in int32, off_in uintptr, fd_out int32, off_out uintptr, len1 Tsize_t, flags uint32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd_in=%v off_in=%v fd_out=%v off_out=%v len1=%v flags=%v, (%v:)", tls, fd_in, off_in, fd_out, off_out, len1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall6(tls, int64(SYS_copy_file_range), int64(fd_in), int64(off_in), int64(fd_out), int64(off_out), Int64FromUint64(len1), Int64FromUint32(flags)))) +} + +const EPOLLERR = 8 +const EPOLLET = 2147483648 +const EPOLLEXCLUSIVE = 268435456 +const EPOLLHUP = 16 +const EPOLLIN = 1 +const EPOLLMSG = 1024 +const EPOLLNVAL = 32 +const EPOLLONESHOT = 1073741824 +const EPOLLOUT = 4 +const EPOLLPRI = 2 +const EPOLLRDBAND = 128 +const EPOLLRDHUP = 8192 +const EPOLLRDNORM = 64 +const EPOLLWAKEUP = 536870912 +const EPOLLWRBAND = 512 +const EPOLLWRNORM = 256 +const EPOLL_CLOEXEC = 524288 +const EPOLL_CTL_ADD = 1 +const EPOLL_CTL_DEL = 2 +const EPOLL_CTL_MOD = 3 +const EPOLL_NONBLOCK = 2048 + +type Tfsblkcnt_t = uint64 + +type Tfsfilcnt_t = uint64 + +type _EPOLL_EVENTS = int32 + +const ___EPOLL_DUMMY = 0 + +type Tepoll_data_t = struct { + Ffd [0]int32 + Fu32 [0]Tuint32_t + Fu64 [0]Tuint64_t + Fptr uintptr +} + +type Tepoll_data = Tepoll_data_t + +type Tepoll_event = struct { + Fevents Tuint32_t + Fdata Tepoll_data_t +} + +func Xepoll_create(tls *TLS, size int32) (r int32) { + if __ccgo_strace { + trc("tls=%v size=%v, (%v:)", tls, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + if size <= 0 { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL)))) + } + return Xepoll_create1(tls, 0) +} + +func Xepoll_create1(tls *TLS, flags int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v flags=%v, (%v:)", tls, flags, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + r = int32(X__syscall1(tls, int64(SYS_epoll_create1), int64(flags))) + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func Xepoll_ctl(tls *TLS, fd int32, op int32, fd2 int32, ev uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v op=%v fd2=%v ev=%v, (%v:)", tls, fd, op, fd2, ev, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_epoll_ctl), int64(fd), int64(op), int64(fd2), int64(ev))))) +} + +func Xepoll_pwait(tls *TLS, fd int32, ev uintptr, cnt int32, to int32, sigs uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v ev=%v cnt=%v to=%v sigs=%v, (%v:)", tls, fd, ev, cnt, to, sigs, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + r = int32(___syscall_cp(tls, int64(SYS_epoll_pwait), int64(fd), int64(ev), int64(cnt), int64(to), int64(sigs), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8)))) + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func Xepoll_wait(tls *TLS, fd int32, ev uintptr, cnt int32, to int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v ev=%v cnt=%v to=%v, (%v:)", tls, fd, ev, cnt, to, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xepoll_pwait(tls, fd, ev, cnt, to, uintptr(0)) +} + +const EFD_CLOEXEC = 524288 +const EFD_NONBLOCK = 2048 +const EFD_SEMAPHORE = 1 + +type Teventfd_t = uint64 + +func Xeventfd(tls *TLS, count uint32, flags int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v count=%v flags=%v, (%v:)", tls, count, flags, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + r = int32(X__syscall2(tls, int64(SYS_eventfd2), Int64FromUint32(count), int64(flags))) + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func Xeventfd_read(tls *TLS, fd int32, value uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v value=%v, (%v:)", tls, fd, value, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + _ = v1 + if uint64(8) == Uint64FromInt64(Xread(tls, fd, value, uint64(8))) { + v1 = 0 + } else { + v1 = -int32(1) + } + return v1 +} + +func Xeventfd_write(tls *TLS, fd int32, _value Teventfd_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v _value=%v, (%v:)", tls, fd, _value, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + *(*Teventfd_t)(unsafe.Pointer(bp)) = _value + var v1 int32 + _ = v1 + if uint64(8) == Uint64FromInt64(Xwrite(tls, fd, bp, uint64(8))) { + v1 = 0 + } else { + v1 = -int32(1) + } + return v1 +} + +func Xfallocate(tls *TLS, fd int32, mode int32, base Toff_t, len1 Toff_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v mode=%v base=%v len1=%v, (%v:)", tls, fd, mode, base, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_fallocate), int64(fd), int64(mode), base, len1)))) +} + +const FANOTIFY_METADATA_VERSION = 3 +const FAN_ACCESS = 1 +const FAN_ACCESS_PERM = 131072 +const FAN_ALLOW = 1 +const FAN_ALL_CLASS_BITS = 12 +const FAN_ALL_EVENTS = 59 +const FAN_ALL_INIT_FLAGS = 63 +const FAN_ALL_MARK_FLAGS = 255 +const FAN_ALL_OUTGOING_EVENTS = 213051 +const FAN_ALL_PERM_EVENTS = 196608 +const FAN_ATTRIB = 4 +const FAN_AUDIT = 16 +const FAN_CLASS_CONTENT = 4 +const FAN_CLASS_NOTIF = 0 +const FAN_CLASS_PRE_CONTENT = 8 +const FAN_CLOEXEC = 1 +const FAN_CLOSE = 24 +const FAN_CLOSE_NOWRITE = 16 +const FAN_CLOSE_WRITE = 8 +const FAN_CREATE = 256 +const FAN_DELETE = 512 +const FAN_DELETE_SELF = 1024 +const FAN_DENY = 2 +const FAN_DIR_MODIFY = 524288 +const FAN_ENABLE_AUDIT = 64 +const FAN_EVENT_INFO_TYPE_DFID = 3 +const FAN_EVENT_INFO_TYPE_DFID_NAME = 2 +const FAN_EVENT_INFO_TYPE_FID = 1 +const FAN_EVENT_METADATA_LEN = 0 +const FAN_EVENT_ON_CHILD = 134217728 +const FAN_MARK_ADD = 1 +const FAN_MARK_DONT_FOLLOW = 4 +const FAN_MARK_FILESYSTEM = 256 +const FAN_MARK_FLUSH = 128 +const FAN_MARK_IGNORED_MASK = 32 +const FAN_MARK_IGNORED_SURV_MODIFY = 64 +const FAN_MARK_INODE = 0 +const FAN_MARK_MOUNT = 16 +const FAN_MARK_ONLYDIR = 8 +const FAN_MARK_REMOVE = 2 +const FAN_MARK_TYPE_MASK = 272 +const FAN_MODIFY = 2 +const FAN_MOVE = 192 +const FAN_MOVED_FROM = 64 +const FAN_MOVED_TO = 128 +const FAN_MOVE_SELF = 2048 +const FAN_NOFD = -1 +const FAN_NONBLOCK = 2 +const FAN_ONDIR = 1073741824 +const FAN_OPEN = 32 +const FAN_OPEN_EXEC = 4096 +const FAN_OPEN_EXEC_PERM = 262144 +const FAN_OPEN_PERM = 65536 +const FAN_Q_OVERFLOW = 16384 +const FAN_REPORT_DFID_NAME = 3072 +const FAN_REPORT_DIR_FID = 1024 +const FAN_REPORT_FID = 512 +const FAN_REPORT_NAME = 2048 +const FAN_REPORT_TID = 256 +const FAN_UNLIMITED_MARKS = 32 +const FAN_UNLIMITED_QUEUE = 16 +const ST_APPEND = 256 +const ST_IMMUTABLE = 512 +const ST_MANDLOCK = 64 +const ST_NOATIME = 1024 +const ST_NODEV = 4 +const ST_NODIRATIME = 2048 +const ST_NOEXEC = 8 +const ST_NOSUID = 2 +const ST_RDONLY = 1 +const ST_RELATIME = 4096 +const ST_SYNCHRONOUS = 16 +const ST_WRITE = 128 + +type Tstatvfs = struct { + Ff_bsize uint64 + Ff_frsize uint64 + Ff_blocks Tfsblkcnt_t + Ff_bfree Tfsblkcnt_t + Ff_bavail Tfsblkcnt_t + Ff_files Tfsfilcnt_t + Ff_ffree Tfsfilcnt_t + Ff_favail Tfsfilcnt_t + Ff_fsid uint64 + Ff_flag uint64 + Ff_namemax uint64 + Ff_type uint32 + F__reserved [5]int32 +} + +type Tfsid_t = struct { + F__val [2]int32 +} + +type t__fsid_t = Tfsid_t + +type Tstatfs = struct { + Ff_type uint64 + Ff_bsize uint64 + Ff_blocks Tfsblkcnt_t + Ff_bfree Tfsblkcnt_t + Ff_bavail Tfsblkcnt_t + Ff_files Tfsfilcnt_t + Ff_ffree Tfsfilcnt_t + Ff_fsid Tfsid_t + Ff_namelen uint64 + Ff_frsize uint64 + Ff_flags uint64 + Ff_spare [4]uint64 +} + +type Tfanotify_event_metadata = struct { + Fevent_len uint32 + Fvers uint8 + Freserved uint8 + Fmetadata_len uint16 + Fmask uint64 + Ffd int32 + Fpid int32 +} + +type Tfanotify_event_info_header = struct { + Finfo_type uint8 + Fpad uint8 + Flen1 uint16 +} + +type Tfanotify_event_info_fid = struct { + Fhdr Tfanotify_event_info_header + Ffsid Tfsid_t +} + +type Tfanotify_response = struct { + Ffd int32 + Fresponse uint32 +} + +func Xfanotify_init(tls *TLS, flags uint32, event_f_flags uint32) (r int32) { + if __ccgo_strace { + trc("tls=%v flags=%v event_f_flags=%v, (%v:)", tls, flags, event_f_flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_fanotify_init), Int64FromUint32(flags), Int64FromUint32(event_f_flags))))) +} + +func Xfanotify_mark(tls *TLS, fanotify_fd int32, flags uint32, mask uint64, dfd int32, pathname uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fanotify_fd=%v flags=%v mask=%v dfd=%v pathname=%v, (%v:)", tls, fanotify_fd, flags, mask, dfd, pathname, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_fanotify_mark), int64(fanotify_fd), Int64FromUint32(flags), Int64FromUint64(mask), int64(dfd), int64(pathname))))) +} + +const LOCK_EX = 2 +const LOCK_NB = 4 +const LOCK_SH = 1 +const LOCK_UN = 8 + +func Xflock(tls *TLS, fd int32, op int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v op=%v, (%v:)", tls, fd, op, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_flock), int64(fd), int64(op))))) +} + +func Xgetdents(tls *TLS, fd int32, buf uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v len1=%v, (%v:)", tls, fd, buf, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + if len1 > uint64(INT_MAX) { + len1 = uint64(INT_MAX) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_getdents64), int64(fd), int64(buf), Int64FromUint64(len1))))) +} + +const GRND_INSECURE = 4 +const GRND_NONBLOCK = 1 +const GRND_RANDOM = 2 + +func Xgetrandom(tls *TLS, buf uintptr, buflen Tsize_t, flags uint32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v buf=%v buflen=%v flags=%v, (%v:)", tls, buf, buflen, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_getrandom), int64(buf), Int64FromUint64(buflen), Int64FromUint32(flags), 0, 0, 0))) +} + +const IN_ACCESS = 1 +const IN_ALL_EVENTS = 4095 +const IN_ATTRIB = 4 +const IN_CLOEXEC = 524288 +const IN_CLOSE = 24 +const IN_CLOSE_NOWRITE = 16 +const IN_CLOSE_WRITE = 8 +const IN_CREATE = 256 +const IN_DELETE = 512 +const IN_DELETE_SELF = 1024 +const IN_DONT_FOLLOW = 33554432 +const IN_EXCL_UNLINK = 67108864 +const IN_IGNORED = 32768 +const IN_ISDIR = 1073741824 +const IN_MASK_ADD = 536870912 +const IN_MASK_CREATE = 268435456 +const IN_MODIFY = 2 +const IN_MOVE = 192 +const IN_MOVED_FROM = 64 +const IN_MOVED_TO = 128 +const IN_MOVE_SELF = 2048 +const IN_NONBLOCK = 2048 +const IN_ONESHOT = 2147483648 +const IN_ONLYDIR = 16777216 +const IN_OPEN = 32 +const IN_Q_OVERFLOW = 16384 +const IN_UNMOUNT = 8192 + +type Tinotify_event = struct { + Fwd int32 + Fmask Tuint32_t + Fcookie Tuint32_t + Flen1 Tuint32_t +} + +func Xinotify_init(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xinotify_init1(tls, 0) +} + +func Xinotify_init1(tls *TLS, flags int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v flags=%v, (%v:)", tls, flags, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + r = int32(X__syscall1(tls, int64(SYS_inotify_init1), int64(flags))) + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func Xinotify_add_watch(tls *TLS, fd int32, pathname uintptr, mask Tuint32_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v pathname=%v mask=%v, (%v:)", tls, fd, pathname, mask, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_inotify_add_watch), int64(fd), int64(pathname), Int64FromUint32(mask))))) +} + +func Xinotify_rm_watch(tls *TLS, fd int32, wd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v wd=%v, (%v:)", tls, fd, wd, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_inotify_rm_watch), int64(fd), int64(wd))))) +} + +func Xklogctl(tls *TLS, type1 int32, buf uintptr, len1 int32) (r int32) { + if __ccgo_strace { + trc("tls=%v type1=%v buf=%v len1=%v, (%v:)", tls, type1, buf, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_syslog), int64(type1), int64(buf), int64(len1))))) +} + +const MADV_COLD = 20 +const MADV_DODUMP = 17 +const MADV_DOFORK = 11 +const MADV_DONTDUMP = 16 +const MADV_DONTFORK = 10 +const MADV_DONTNEED = 4 +const MADV_FREE = 8 +const MADV_HUGEPAGE = 14 +const MADV_HWPOISON = 100 +const MADV_KEEPONFORK = 19 +const MADV_MERGEABLE = 12 +const MADV_NOHUGEPAGE = 15 +const MADV_NORMAL = 0 +const MADV_PAGEOUT = 21 +const MADV_RANDOM = 1 +const MADV_REMOVE = 9 +const MADV_SEQUENTIAL = 2 +const MADV_SOFT_OFFLINE = 101 +const MADV_UNMERGEABLE = 13 +const MADV_WILLNEED = 3 +const MADV_WIPEONFORK = 18 +const MFD_ALLOW_SEALING = 2 +const MFD_CLOEXEC = 1 +const MFD_HUGETLB = 4 +const MLOCK_ONFAULT = 1 +const MREMAP_DONTUNMAP = 4 +const MREMAP_FIXED = 2 +const MREMAP_MAYMOVE = 1 +const _GNU_SOURCE = 1 + +func Xmemfd_create(tls *TLS, name uintptr, flags uint32) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v flags=%v, (%v:)", tls, name, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_memfd_create), int64(name), Int64FromUint32(flags))))) +} + +func Xmlock2(tls *TLS, addr uintptr, len1 Tsize_t, flags uint32) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v len1=%v flags=%v, (%v:)", tls, addr, len1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + if flags == uint32(0) { + return Xmlock(tls, addr, len1) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_mlock2), int64(addr), Int64FromUint64(len1), Int64FromUint32(flags))))) +} + +func Xinit_module(tls *TLS, a uintptr, b uint64, c uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v a=%v b=%v c=%v, (%v:)", tls, a, b, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_init_module), int64(a), Int64FromUint64(b), int64(c))))) +} + +func Xdelete_module(tls *TLS, a uintptr, b uint32) (r int32) { + if __ccgo_strace { + trc("tls=%v a=%v b=%v, (%v:)", tls, a, b, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_delete_module), int64(a), Int64FromUint32(b))))) +} + +const BLKBSZGET = 2147488368 +const BLKBSZSET = 1073746545 +const BLKFLSBUF = 4705 +const BLKFRAGET = 4709 +const BLKFRASET = 4708 +const BLKGETSIZE = 4704 +const BLKGETSIZE64 = 2147488370 +const BLKRAGET = 4707 +const BLKRASET = 4706 +const BLKROGET = 4702 +const BLKROSET = 4701 +const BLKRRPART = 4703 +const BLKSECTGET = 4711 +const BLKSECTSET = 4710 +const BLKSSZGET = 4712 +const FIOASYNC = 21586 +const FIOCLEX = 21585 +const FIOGETOWN = 35075 +const FIONBIO = 21537 +const FIONCLEX = 21584 +const FIONREAD = 21531 +const FIOQSIZE = 21600 +const FIOSETOWN = 35073 +const MNT_DETACH = 2 +const MNT_EXPIRE = 4 +const MNT_FORCE = 1 +const MS_ACTIVE = 1073741824 +const MS_BIND = 4096 +const MS_BORN = 536870912 +const MS_DIRSYNC = 128 +const MS_I_VERSION = 8388608 +const MS_KERNMOUNT = 4194304 +const MS_LAZYTIME = 33554432 +const MS_MANDLOCK = 64 +const MS_MGC_MSK = 4294901760 +const MS_MGC_VAL = 3236757504 +const MS_MOVE = 8192 +const MS_NOATIME = 1024 +const MS_NODEV = 4 +const MS_NODIRATIME = 2048 +const MS_NOEXEC = 8 +const MS_NOREMOTELOCK = 134217728 +const MS_NOSEC = 268435456 +const MS_NOSUID = 2 +const MS_NOSYMFOLLOW = 256 +const MS_NOUSER = 2147483648 +const MS_POSIXACL = 65536 +const MS_PRIVATE = 262144 +const MS_RDONLY = 1 +const MS_REC = 16384 +const MS_RELATIME = 2097152 +const MS_REMOUNT = 32 +const MS_RMT_MASK = 41943121 +const MS_SHARED = 1048576 +const MS_SILENT = 32768 +const MS_SLAVE = 524288 +const MS_STRICTATIME = 16777216 +const MS_SYNCHRONOUS = 16 +const MS_UNBINDABLE = 131072 +const N_6PACK = 7 +const N_AX25 = 5 +const N_CAIF = 20 +const N_GIGASET_M101 = 16 +const N_GSM0710 = 21 +const N_HCI = 15 +const N_HDLC = 13 +const N_IRDA = 11 +const N_MASC = 8 +const N_MOUSE = 2 +const N_NCI = 25 +const N_NULL = 27 +const N_PPP = 3 +const N_PPS = 18 +const N_PROFIBUS_FDL = 10 +const N_R3964 = 9 +const N_SLCAN = 17 +const N_SLIP = 1 +const N_SMSBLOCK = 12 +const N_SPEAKUP = 26 +const N_STRIP = 4 +const N_SYNC_PPP = 14 +const N_TI_WL = 22 +const N_TRACEROUTER = 24 +const N_TRACESINK = 23 +const N_TTY = 0 +const N_V253 = 19 +const N_X25 = 6 +const SIOCADDDLCI = 35200 +const SIOCADDMULTI = 35121 +const SIOCADDRT = 35083 +const SIOCATMARK = 35077 +const SIOCDARP = 35155 +const SIOCDELDLCI = 35201 +const SIOCDELMULTI = 35122 +const SIOCDELRT = 35084 +const SIOCDEVPRIVATE = 35312 +const SIOCDIFADDR = 35126 +const SIOCDRARP = 35168 +const SIOCGARP = 35156 +const SIOCGIFADDR = 35093 +const SIOCGIFBR = 35136 +const SIOCGIFBRDADDR = 35097 +const SIOCGIFCONF = 35090 +const SIOCGIFCOUNT = 35128 +const SIOCGIFDSTADDR = 35095 +const SIOCGIFENCAP = 35109 +const SIOCGIFFLAGS = 35091 +const SIOCGIFHWADDR = 35111 +const SIOCGIFINDEX = 35123 +const SIOCGIFMAP = 35184 +const SIOCGIFMEM = 35103 +const SIOCGIFMETRIC = 35101 +const SIOCGIFMTU = 35105 +const SIOCGIFNAME = 35088 +const SIOCGIFNETMASK = 35099 +const SIOCGIFPFLAGS = 35125 +const SIOCGIFSLAVE = 35113 +const SIOCGIFTXQLEN = 35138 +const SIOCGPGRP = 35076 +const SIOCGRARP = 35169 +const SIOCGSTAMP = 35078 +const SIOCGSTAMPNS = 35079 +const SIOCPROTOPRIVATE = 35296 +const SIOCRTMSG = 35085 +const SIOCSARP = 35157 +const SIOCSIFADDR = 35094 +const SIOCSIFBR = 35137 +const SIOCSIFBRDADDR = 35098 +const SIOCSIFDSTADDR = 35096 +const SIOCSIFENCAP = 35110 +const SIOCSIFFLAGS = 35092 +const SIOCSIFHWADDR = 35108 +const SIOCSIFHWBROADCAST = 35127 +const SIOCSIFLINK = 35089 +const SIOCSIFMAP = 35185 +const SIOCSIFMEM = 35104 +const SIOCSIFMETRIC = 35102 +const SIOCSIFMTU = 35106 +const SIOCSIFNAME = 35107 +const SIOCSIFNETMASK = 35100 +const SIOCSIFPFLAGS = 35124 +const SIOCSIFSLAVE = 35120 +const SIOCSIFTXQLEN = 35139 +const SIOCSPGRP = 35074 +const SIOCSRARP = 35170 +const SIOGIFINDEX = 35123 +const TCFLSH = 21515 +const TCGETA = 21509 +const TCGETS = 21505 +const TCGETX = 21554 +const TCSBRK = 21513 +const TCSBRKP = 21541 +const TCSETA = 21510 +const TCSETAF = 21512 +const TCSETAW = 21511 +const TCSETS = 21506 +const TCSETSF = 21508 +const TCSETSW = 21507 +const TCSETX = 21555 +const TCSETXF = 21556 +const TCSETXW = 21557 +const TCXONC = 21514 +const TIOCCBRK = 21544 +const TIOCCONS = 21533 +const TIOCEXCL = 21516 +const TIOCGDEV = 2147767346 +const TIOCGETD = 21540 +const TIOCGEXCL = 2147767360 +const TIOCGICOUNT = 21597 +const TIOCGISO7816 = 2150126658 +const TIOCGLCKTRMIOS = 21590 +const TIOCGPGRP = 21519 +const TIOCGPKT = 2147767352 +const TIOCGPTLCK = 2147767353 +const TIOCGPTN = 2147767344 +const TIOCGPTPEER = 21569 +const TIOCGRS485 = 21550 +const TIOCGSERIAL = 21534 +const TIOCGSID = 21545 +const TIOCGSOFTCAR = 21529 +const TIOCGWINSZ = 21523 +const TIOCINQ = 21531 +const TIOCLINUX = 21532 +const TIOCMBIC = 21527 +const TIOCMBIS = 21526 +const TIOCMGET = 21525 +const TIOCMIWAIT = 21596 +const TIOCMSET = 21528 +const TIOCM_CAR = 64 +const TIOCM_CD = 64 +const TIOCM_CTS = 32 +const TIOCM_DSR = 256 +const TIOCM_DTR = 2 +const TIOCM_LE = 1 +const TIOCM_LOOP = 32768 +const TIOCM_OUT1 = 8192 +const TIOCM_OUT2 = 16384 +const TIOCM_RI = 128 +const TIOCM_RNG = 128 +const TIOCM_RTS = 4 +const TIOCM_SR = 16 +const TIOCM_ST = 8 +const TIOCNOTTY = 21538 +const TIOCNXCL = 21517 +const TIOCOUTQ = 21521 +const TIOCPKT = 21536 +const TIOCPKT_DATA = 0 +const TIOCPKT_DOSTOP = 32 +const TIOCPKT_FLUSHREAD = 1 +const TIOCPKT_FLUSHWRITE = 2 +const TIOCPKT_IOCTL = 64 +const TIOCPKT_NOSTOP = 16 +const TIOCPKT_START = 8 +const TIOCPKT_STOP = 4 +const TIOCSBRK = 21543 +const TIOCSCTTY = 21518 +const TIOCSERCONFIG = 21587 +const TIOCSERGETLSR = 21593 +const TIOCSERGETMULTI = 21594 +const TIOCSERGSTRUCT = 21592 +const TIOCSERGWILD = 21588 +const TIOCSERSETMULTI = 21595 +const TIOCSERSWILD = 21589 +const TIOCSER_TEMT = 1 +const TIOCSETD = 21539 +const TIOCSIG = 1074025526 +const TIOCSISO7816 = 3223868483 +const TIOCSLCKTRMIOS = 21591 +const TIOCSPGRP = 21520 +const TIOCSPTLCK = 1074025521 +const TIOCSRS485 = 21551 +const TIOCSSERIAL = 21535 +const TIOCSSOFTCAR = 21530 +const TIOCSTI = 21522 +const TIOCSWINSZ = 21524 +const TIOCVHANGUP = 21559 +const UMOUNT_NOFOLLOW = 8 +const _IOC_NONE = 0 +const _IOC_READ = 2 +const _IOC_WRITE = 1 + +func Xmount(tls *TLS, special uintptr, dir uintptr, fstype uintptr, flags uint64, data uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v special=%v dir=%v fstype=%v flags=%v data=%v, (%v:)", tls, special, dir, fstype, flags, data, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_mount), int64(special), int64(dir), int64(fstype), Int64FromUint64(flags), int64(data))))) +} + +func Xumount(tls *TLS, special uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v special=%v, (%v:)", tls, special, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_umount2), int64(special), int64(Int32FromInt32(0)))))) +} + +func Xumount2(tls *TLS, special uintptr, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v special=%v flags=%v, (%v:)", tls, special, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_umount2), int64(special), int64(flags))))) +} + +func Xname_to_handle_at(tls *TLS, dirfd int32, pathname uintptr, handle uintptr, mount_id uintptr, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v dirfd=%v pathname=%v handle=%v mount_id=%v flags=%v, (%v:)", tls, dirfd, pathname, handle, mount_id, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_name_to_handle_at), int64(dirfd), int64(pathname), int64(handle), int64(mount_id), int64(flags))))) +} + +func Xopen_by_handle_at(tls *TLS, mount_fd int32, handle uintptr, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v mount_fd=%v handle=%v flags=%v, (%v:)", tls, mount_fd, handle, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_open_by_handle_at), int64(mount_fd), int64(handle), int64(flags))))) +} + +const ADDR_COMPAT_LAYOUT = 2097152 +const ADDR_LIMIT_32BIT = 8388608 +const ADDR_LIMIT_3GB = 134217728 +const ADDR_NO_RANDOMIZE = 262144 +const FDPIC_FUNCPTRS = 524288 +const MMAP_PAGE_ZERO = 1048576 +const PER_BSD = 6 +const PER_HPUX = 16 +const PER_IRIX32 = 67108873 +const PER_IRIX64 = 67108875 +const PER_IRIXN32 = 67108874 +const PER_ISCR4 = 67108869 +const PER_LINUX = 0 +const PER_LINUX32 = 8 +const PER_LINUX32_3GB = 134217736 +const PER_LINUX_32BIT = 8388608 +const PER_LINUX_FDPIC = 524288 +const PER_MASK = 255 +const PER_OSF4 = 15 +const PER_OSR5 = 100663299 +const PER_RISCOS = 12 +const PER_SCOSVR3 = 117440515 +const PER_SOLARIS = 67108877 +const PER_SUNOS = 67108870 +const PER_SVR3 = 83886082 +const PER_SVR4 = 68157441 +const PER_UW7 = 68157454 +const PER_WYSEV386 = 83886084 +const PER_XENIX = 83886087 +const READ_IMPLIES_EXEC = 4194304 +const SHORT_INODE = 16777216 +const STICKY_TIMEOUTS = 67108864 +const UNAME26 = 131072 +const WHOLE_SECONDS = 33554432 + +func Xpersonality(tls *TLS, persona uint64) (r int32) { + if __ccgo_strace { + trc("tls=%v persona=%v, (%v:)", tls, persona, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_personality), Int64FromUint64(persona))))) +} + +func Xpivot_root(tls *TLS, new1 uintptr, old uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v new1=%v old=%v, (%v:)", tls, new1, old, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_pivot_root), int64(new1), int64(old))))) +} + +const PR_CAPBSET_DROP = 24 +const PR_CAPBSET_READ = 23 +const PR_CAP_AMBIENT = 47 +const PR_CAP_AMBIENT_CLEAR_ALL = 4 +const PR_CAP_AMBIENT_IS_SET = 1 +const PR_CAP_AMBIENT_LOWER = 3 +const PR_CAP_AMBIENT_RAISE = 2 +const PR_ENDIAN_BIG = 0 +const PR_ENDIAN_LITTLE = 1 +const PR_ENDIAN_PPC_LITTLE = 2 +const PR_FPEMU_NOPRINT = 1 +const PR_FPEMU_SIGFPE = 2 +const PR_FP_EXC_ASYNC = 2 +const PR_FP_EXC_DISABLED = 0 +const PR_FP_EXC_DIV = 65536 +const PR_FP_EXC_INV = 1048576 +const PR_FP_EXC_NONRECOV = 1 +const PR_FP_EXC_OVF = 131072 +const PR_FP_EXC_PRECISE = 3 +const PR_FP_EXC_RES = 524288 +const PR_FP_EXC_SW_ENABLE = 128 +const PR_FP_EXC_UND = 262144 +const PR_FP_MODE_FR = 1 +const PR_FP_MODE_FRE = 2 +const PR_GET_CHILD_SUBREAPER = 37 +const PR_GET_DUMPABLE = 3 +const PR_GET_ENDIAN = 19 +const PR_GET_FPEMU = 9 +const PR_GET_FPEXC = 11 +const PR_GET_FP_MODE = 46 +const PR_GET_IO_FLUSHER = 58 +const PR_GET_KEEPCAPS = 7 +const PR_GET_NAME = 16 +const PR_GET_NO_NEW_PRIVS = 39 +const PR_GET_PDEATHSIG = 2 +const PR_GET_SECCOMP = 21 +const PR_GET_SECUREBITS = 27 +const PR_GET_SPECULATION_CTRL = 52 +const PR_GET_TAGGED_ADDR_CTRL = 56 +const PR_GET_THP_DISABLE = 42 +const PR_GET_TID_ADDRESS = 40 +const PR_GET_TIMERSLACK = 30 +const PR_GET_TIMING = 13 +const PR_GET_TSC = 25 +const PR_GET_UNALIGN = 5 +const PR_MCE_KILL = 33 +const PR_MCE_KILL_CLEAR = 0 +const PR_MCE_KILL_DEFAULT = 2 +const PR_MCE_KILL_EARLY = 1 +const PR_MCE_KILL_GET = 34 +const PR_MCE_KILL_LATE = 0 +const PR_MCE_KILL_SET = 1 +const PR_MPX_DISABLE_MANAGEMENT = 44 +const PR_MPX_ENABLE_MANAGEMENT = 43 +const PR_MTE_TAG_MASK = 524280 +const PR_MTE_TAG_SHIFT = 3 +const PR_MTE_TCF_ASYNC = 4 +const PR_MTE_TCF_MASK = 6 +const PR_MTE_TCF_NONE = 0 +const PR_MTE_TCF_SHIFT = 1 +const PR_MTE_TCF_SYNC = 2 +const PR_PAC_APDAKEY = 4 +const PR_PAC_APDBKEY = 8 +const PR_PAC_APGAKEY = 16 +const PR_PAC_APIAKEY = 1 +const PR_PAC_APIBKEY = 2 +const PR_PAC_GET_ENABLED_KEYS = 61 +const PR_PAC_RESET_KEYS = 54 +const PR_PAC_SET_ENABLED_KEYS = 60 +const PR_SET_CHILD_SUBREAPER = 36 +const PR_SET_DUMPABLE = 4 +const PR_SET_ENDIAN = 20 +const PR_SET_FPEMU = 10 +const PR_SET_FPEXC = 12 +const PR_SET_FP_MODE = 45 +const PR_SET_IO_FLUSHER = 57 +const PR_SET_KEEPCAPS = 8 +const PR_SET_MM = 35 +const PR_SET_MM_ARG_END = 9 +const PR_SET_MM_ARG_START = 8 +const PR_SET_MM_AUXV = 12 +const PR_SET_MM_BRK = 7 +const PR_SET_MM_END_CODE = 2 +const PR_SET_MM_END_DATA = 4 +const PR_SET_MM_ENV_END = 11 +const PR_SET_MM_ENV_START = 10 +const PR_SET_MM_EXE_FILE = 13 +const PR_SET_MM_MAP = 14 +const PR_SET_MM_MAP_SIZE = 15 +const PR_SET_MM_START_BRK = 6 +const PR_SET_MM_START_CODE = 1 +const PR_SET_MM_START_DATA = 3 +const PR_SET_MM_START_STACK = 5 +const PR_SET_NAME = 15 +const PR_SET_NO_NEW_PRIVS = 38 +const PR_SET_PDEATHSIG = 1 +const PR_SET_PTRACER = 1499557217 +const PR_SET_PTRACER_ANY = 18446744073709551615 +const PR_SET_SECCOMP = 22 +const PR_SET_SECUREBITS = 28 +const PR_SET_SPECULATION_CTRL = 53 +const PR_SET_SYSCALL_USER_DISPATCH = 59 +const PR_SET_TAGGED_ADDR_CTRL = 55 +const PR_SET_THP_DISABLE = 41 +const PR_SET_TIMERSLACK = 29 +const PR_SET_TIMING = 14 +const PR_SET_TSC = 26 +const PR_SET_UNALIGN = 6 +const PR_SPEC_DISABLE = 4 +const PR_SPEC_DISABLE_NOEXEC = 16 +const PR_SPEC_ENABLE = 2 +const PR_SPEC_FORCE_DISABLE = 8 +const PR_SPEC_INDIRECT_BRANCH = 1 +const PR_SPEC_NOT_AFFECTED = 0 +const PR_SPEC_PRCTL = 1 +const PR_SPEC_STORE_BYPASS = 0 +const PR_SVE_GET_VL = 51 +const PR_SVE_SET_VL = 50 +const PR_SVE_SET_VL_ONEXEC = 262144 +const PR_SVE_VL_INHERIT = 131072 +const PR_SVE_VL_LEN_MASK = 65535 +const PR_SYS_DISPATCH_OFF = 0 +const PR_SYS_DISPATCH_ON = 1 +const PR_TAGGED_ADDR_ENABLE = 1 +const PR_TASK_PERF_EVENTS_DISABLE = 31 +const PR_TASK_PERF_EVENTS_ENABLE = 32 +const PR_TIMING_STATISTICAL = 0 +const PR_TIMING_TIMESTAMP = 1 +const PR_TSC_ENABLE = 1 +const PR_TSC_SIGSEGV = 2 +const PR_UNALIGN_NOPRINT = 1 +const PR_UNALIGN_SIGBUS = 2 +const SYSCALL_DISPATCH_FILTER_ALLOW = 0 +const SYSCALL_DISPATCH_FILTER_BLOCK = 1 + +type Tprctl_mm_map = struct { + Fstart_code Tuint64_t + Fend_code Tuint64_t + Fstart_data Tuint64_t + Fend_data Tuint64_t + Fstart_brk Tuint64_t + Fbrk Tuint64_t + Fstart_stack Tuint64_t + Farg_start Tuint64_t + Farg_end Tuint64_t + Fenv_start Tuint64_t + Fenv_end Tuint64_t + Fauxv uintptr + Fauxv_size Tuint32_t + Fexe_fd Tuint32_t +} + +func Xprctl(tls *TLS, op int32, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v op=%v va=%v, (%v:)", tls, op, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var i int32 + var x [4]uint64 + _, _, _ = ap, i, x + ap = va + i = 0 + for { + if !(i < int32(4)) { + break + } + x[i] = VaUint64(&ap) + goto _1 + _1: + ; + i = i + 1 + } + _ = ap + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_prctl), int64(op), Int64FromUint64(x[0]), Int64FromUint64(x[int32(1)]), Int64FromUint64(x[int32(2)]), Int64FromUint64(x[int32(3)]))))) +} + +const RWF_APPEND = 16 +const RWF_DSYNC = 2 +const RWF_HIPRI = 1 +const RWF_NOWAIT = 8 +const RWF_SYNC = 4 +const UIO_MAXIOV = 1024 + +func Xpreadv2(tls *TLS, fd int32, iov uintptr, count int32, ofs Toff_t, flags int32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v iov=%v count=%v ofs=%v flags=%v, (%v:)", tls, fd, iov, count, ofs, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + if !(flags != 0) { + if ofs == int64(-int32(1)) { + return Xreadv(tls, fd, iov, count) + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_preadv), int64(fd), int64(iov), int64(count), ofs, ofs>>Int32FromInt32(32), 0))) + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_preadv2), int64(fd), int64(iov), int64(count), ofs, ofs>>Int32FromInt32(32), int64(flags)))) +} + +func Xprlimit(tls *TLS, pid Tpid_t, resource int32, new_limit uintptr, old_limit uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v pid=%v resource=%v new_limit=%v old_limit=%v, (%v:)", tls, pid, resource, new_limit, old_limit, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var r int32 + var _ /* tmp at bp+0 */ Trlimit + _ = r + if new_limit != 0 && Bool(^Uint64FromUint64(0) != ^Uint64FromUint64(0)) { + **(**Trlimit)(__ccgo_up(bp)) = **(**Trlimit)(__ccgo_up(new_limit)) + if (**(**Trlimit)(__ccgo_up(bp))).Frlim_cur >= ^Uint64FromUint64(0) { + (**(**Trlimit)(__ccgo_up(bp))).Frlim_cur = ^Uint64FromUint64(0) + } + if (**(**Trlimit)(__ccgo_up(bp))).Frlim_max >= ^Uint64FromUint64(0) { + (**(**Trlimit)(__ccgo_up(bp))).Frlim_max = ^Uint64FromUint64(0) + } + new_limit = bp + } + r = int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_prlimit64), int64(pid), int64(resource), int64(new_limit), int64(old_limit))))) + if !(r != 0) && old_limit != 0 && Bool(^Uint64FromUint64(0) != ^Uint64FromUint64(0)) { + if (*Trlimit)(unsafe.Pointer(old_limit)).Frlim_cur >= ^Uint64FromUint64(0) { + (*Trlimit)(unsafe.Pointer(old_limit)).Frlim_cur = ^Uint64FromUint64(0) + } + if (*Trlimit)(unsafe.Pointer(old_limit)).Frlim_max >= ^Uint64FromUint64(0) { + (*Trlimit)(unsafe.Pointer(old_limit)).Frlim_max = ^Uint64FromUint64(0) + } + } + return r +} + +func Xprocess_vm_writev(tls *TLS, pid Tpid_t, lvec uintptr, liovcnt uint64, rvec uintptr, riovcnt uint64, flags uint64) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v pid=%v lvec=%v liovcnt=%v rvec=%v riovcnt=%v flags=%v, (%v:)", tls, pid, lvec, liovcnt, rvec, riovcnt, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall6(tls, int64(SYS_process_vm_writev), int64(pid), int64(lvec), Int64FromUint64(liovcnt), int64(rvec), Int64FromUint64(riovcnt), Int64FromUint64(flags)))) +} + +func Xprocess_vm_readv(tls *TLS, pid Tpid_t, lvec uintptr, liovcnt uint64, rvec uintptr, riovcnt uint64, flags uint64) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v pid=%v lvec=%v liovcnt=%v rvec=%v riovcnt=%v flags=%v, (%v:)", tls, pid, lvec, liovcnt, rvec, riovcnt, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall6(tls, int64(SYS_process_vm_readv), int64(pid), int64(lvec), Int64FromUint64(liovcnt), int64(rvec), Int64FromUint64(riovcnt), Int64FromUint64(flags)))) +} + +const PTRACE_ATTACH = 16 +const PTRACE_CONT = 7 +const PTRACE_DETACH = 17 +const PTRACE_EVENT_CLONE = 3 +const PTRACE_EVENT_EXEC = 4 +const PTRACE_EVENT_EXIT = 6 +const PTRACE_EVENT_FORK = 1 +const PTRACE_EVENT_SECCOMP = 7 +const PTRACE_EVENT_STOP = 128 +const PTRACE_EVENT_VFORK = 2 +const PTRACE_EVENT_VFORK_DONE = 5 +const PTRACE_GETEVENTMSG = 16897 +const PTRACE_GETFPREGS = 14 +const PTRACE_GETFPXREGS = 18 +const PTRACE_GETREGS = 12 +const PTRACE_GETREGSET = 16900 +const PTRACE_GETSIGINFO = 16898 +const PTRACE_GETSIGMASK = 16906 +const PTRACE_GET_RSEQ_CONFIGURATION = 16911 +const PTRACE_GET_SYSCALL_INFO = 16910 +const PTRACE_INTERRUPT = 16903 +const PTRACE_KILL = 8 +const PTRACE_LISTEN = 16904 +const PTRACE_O_EXITKILL = 1048576 +const PTRACE_O_MASK = 3145983 +const PTRACE_O_SUSPEND_SECCOMP = 2097152 +const PTRACE_O_TRACECLONE = 8 +const PTRACE_O_TRACEEXEC = 16 +const PTRACE_O_TRACEEXIT = 64 +const PTRACE_O_TRACEFORK = 2 +const PTRACE_O_TRACESECCOMP = 128 +const PTRACE_O_TRACESYSGOOD = 1 +const PTRACE_O_TRACEVFORK = 4 +const PTRACE_O_TRACEVFORKDONE = 32 +const PTRACE_PEEKDATA = 2 +const PTRACE_PEEKSIGINFO = 16905 +const PTRACE_PEEKSIGINFO_SHARED = 1 +const PTRACE_PEEKTEXT = 1 +const PTRACE_PEEKUSER = 3 +const PTRACE_POKEDATA = 5 +const PTRACE_POKETEXT = 4 +const PTRACE_POKEUSER = 6 +const PTRACE_SECCOMP_GET_FILTER = 16908 +const PTRACE_SECCOMP_GET_METADATA = 16909 +const PTRACE_SEIZE = 16902 +const PTRACE_SETFPREGS = 15 +const PTRACE_SETFPXREGS = 19 +const PTRACE_SETOPTIONS = 16896 +const PTRACE_SETREGS = 13 +const PTRACE_SETREGSET = 16901 +const PTRACE_SETSIGINFO = 16899 +const PTRACE_SETSIGMASK = 16907 +const PTRACE_SINGLESTEP = 9 +const PTRACE_SYSCALL = 24 +const PTRACE_SYSCALL_INFO_ENTRY = 1 +const PTRACE_SYSCALL_INFO_EXIT = 2 +const PTRACE_SYSCALL_INFO_NONE = 0 +const PTRACE_SYSCALL_INFO_SECCOMP = 3 +const PTRACE_TRACEME = 0 +const PT_ATTACH = 16 +const PT_CONTINUE = 7 +const PT_DETACH = 17 +const PT_GETEVENTMSG = 16897 +const PT_GETFPREGS = 14 +const PT_GETFPXREGS = 18 +const PT_GETREGS = 12 +const PT_GETSIGINFO = 16898 +const PT_KILL = 8 +const PT_READ_D = 2 +const PT_READ_I = 1 +const PT_READ_U = 3 +const PT_SETFPREGS = 15 +const PT_SETFPXREGS = 19 +const PT_SETOPTIONS = 16896 +const PT_SETREGS = 13 +const PT_SETSIGINFO = 16899 +const PT_STEP = 9 +const PT_SYSCALL = 24 +const PT_TRACE_ME = 0 +const PT_WRITE_D = 5 +const PT_WRITE_I = 4 +const PT_WRITE_U = 6 + +type t__ptrace_peeksiginfo_args = struct { + Foff Tuint64_t + Fflags Tuint32_t + Fnr Tint32_t +} + +type t__ptrace_seccomp_metadata = struct { + Ffilter_off Tuint64_t + Fflags Tuint64_t +} + +type t__ptrace_syscall_info = struct { + Fop Tuint8_t + F__pad [3]Tuint8_t + Farch Tuint32_t + Finstruction_pointer Tuint64_t + Fstack_pointer Tuint64_t + F__ccgo5_24 struct { + Fexit [0]struct { + Frval Tint64_t + Fis_error Tuint8_t + } + Fseccomp [0]struct { + Fnr Tuint64_t + Fargs [6]Tuint64_t + Fret_data Tuint32_t + } + Fentry struct { + Fnr Tuint64_t + Fargs [6]Tuint64_t + } + F__ccgo_pad3 [8]byte + } +} + +type t__ptrace_rseq_configuration = struct { + Frseq_abi_pointer Tuint64_t + Frseq_abi_size Tuint32_t + Fsignature Tuint32_t + Fflags Tuint32_t + Fpad Tuint32_t +} + +func Xptrace(tls *TLS, req int32, va uintptr) (r int64) { + if __ccgo_strace { + trc("tls=%v req=%v va=%v, (%v:)", tls, req, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var addr, addr2, data uintptr + var ap Tva_list + var pid Tpid_t + var ret int64 + var _ /* result at bp+0 */ int64 + _, _, _, _, _, _ = addr, addr2, ap, data, pid, ret + addr2 = uintptr(0) + ap = va + pid = VaInt32(&ap) + addr = VaUintptr(&ap) + data = VaUintptr(&ap) + /* PTRACE_{READ,WRITE}{DATA,TEXT} (16...19) are specific to SPARC. */ + _ = ap + if Uint32FromInt32(req)-uint32(1) < uint32(3) { + data = bp + } + ret = X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_ptrace), int64(req), int64(pid), int64(addr), int64(data), int64(addr2)))) + if ret < 0 || Uint32FromInt32(req)-uint32(1) >= uint32(3) { + return ret + } + return **(**int64)(__ccgo_up(bp)) +} + +func Xpwritev2(tls *TLS, fd int32, iov uintptr, count int32, ofs Toff_t, flags int32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v iov=%v count=%v ofs=%v flags=%v, (%v:)", tls, fd, iov, count, ofs, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + if !(flags != 0) { + if ofs == int64(-int32(1)) { + return Xwritev(tls, fd, iov, count) + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_pwritev), int64(fd), int64(iov), int64(count), ofs, ofs>>Int32FromInt32(32), 0))) + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_pwritev2), int64(fd), int64(iov), int64(count), ofs, ofs>>Int32FromInt32(32), int64(flags)))) +} + +const GRPQUOTA = 1 +const IIF_ALL = 7 +const IIF_BGRACE = 1 +const IIF_FLAGS = 4 +const IIF_IGRACE = 2 +const MAXQUOTAS = 2 +const MAX_DQ_TIME = 604800 +const MAX_IQ_TIME = 604800 +const NR_DQHASH = 43 +const NR_DQUOTS = 256 +const QFMT_OCFS2 = 3 +const QFMT_VFS_OLD = 1 +const QFMT_VFS_V0 = 2 +const QFMT_VFS_V1 = 4 +const QIF_ALL = 63 +const QIF_BLIMITS = 1 +const QIF_BTIME = 16 +const QIF_ILIMITS = 4 +const QIF_INODES = 8 +const QIF_ITIME = 32 +const QIF_LIMITS = 5 +const QIF_SPACE = 2 +const QIF_TIMES = 48 +const QIF_USAGE = 10 +const QUOTAFILENAME = "quota" +const QUOTAGROUP = "staff" +const Q_GETFMT = 8388612 +const Q_GETINFO = 8388613 +const Q_GETQUOTA = 8388615 +const Q_QUOTAOFF = 8388611 +const Q_QUOTAON = 8388610 +const Q_SETINFO = 8388614 +const Q_SETQUOTA = 8388616 +const Q_SYNC = 8388609 +const SUBCMDMASK = 255 +const SUBCMDSHIFT = 8 +const USRQUOTA = 0 +const _LINUX_QUOTA_VERSION = 2 + +type Tdqblk = struct { + Fdqb_bhardlimit Tuint64_t + Fdqb_bsoftlimit Tuint64_t + Fdqb_curspace Tuint64_t + Fdqb_ihardlimit Tuint64_t + Fdqb_isoftlimit Tuint64_t + Fdqb_curinodes Tuint64_t + Fdqb_btime Tuint64_t + Fdqb_itime Tuint64_t + Fdqb_valid Tuint32_t +} + +type Tdqinfo = struct { + Fdqi_bgrace Tuint64_t + Fdqi_igrace Tuint64_t + Fdqi_flags Tuint32_t + Fdqi_valid Tuint32_t +} + +func Xquotactl(tls *TLS, cmd int32, special uintptr, id int32, addr uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v cmd=%v special=%v id=%v addr=%v, (%v:)", tls, cmd, special, id, addr, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_quotactl), int64(cmd), int64(special), int64(id), int64(addr))))) +} + +func Xreadahead(tls *TLS, fd int32, pos Toff_t, len1 Tsize_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v pos=%v len1=%v, (%v:)", tls, fd, pos, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_readahead), int64(fd), pos, Int64FromUint64(len1)))) +} + +const RB_AUTOBOOT = 19088743 +const RB_DISABLE_CAD = 0 +const RB_ENABLE_CAD = 2309737967 +const RB_HALT_SYSTEM = 3454992675 +const RB_KEXEC = 1163412803 +const RB_POWER_OFF = 1126301404 +const RB_SW_SUSPEND = 3489725666 + +func Xreboot(tls *TLS, type1 int32) (r int32) { + if __ccgo_strace { + trc("tls=%v type1=%v, (%v:)", tls, type1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_reboot), Int64FromUint32(Uint32FromUint32(0xfee1dead)), int64(Int32FromInt32(672274793)), int64(type1))))) +} + +func Xremap_file_pages(tls *TLS, addr uintptr, size Tsize_t, prot int32, pgoff Tsize_t, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v size=%v prot=%v pgoff=%v flags=%v, (%v:)", tls, addr, size, prot, pgoff, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_remap_file_pages), int64(addr), Int64FromUint64(size), int64(prot), Int64FromUint64(pgoff), int64(flags))))) +} + +func Xsbrk(tls *TLS, inc Tintptr_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v inc=%v, (%v:)", tls, inc, origin(2)) + defer func() { trc("-> %v", r) }() + } + if inc != 0 { + return uintptr(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(ENOMEM)))) + } + return uintptr(X__syscall1(tls, int64(SYS_brk), int64(Int32FromInt32(0)))) +} + +func Xsendfile(tls *TLS, out_fd int32, in_fd int32, ofs uintptr, count Tsize_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v out_fd=%v in_fd=%v ofs=%v count=%v, (%v:)", tls, out_fd, in_fd, ofs, count, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_sendfile), int64(out_fd), int64(in_fd), int64(ofs), Int64FromUint64(count)))) +} + +func Xsetfsgid(tls *TLS, gid Tgid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v gid=%v, (%v:)", tls, gid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_setfsgid), Int64FromUint32(gid))))) +} + +func Xsetfsuid(tls *TLS, uid Tuid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v uid=%v, (%v:)", tls, uid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_setfsuid), Int64FromUint32(uid))))) +} + +func Xsethostname(tls *TLS, name uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v len1=%v, (%v:)", tls, name, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_sethostname), int64(name), Int64FromUint64(len1))))) +} + +const CLONE_CHILD_CLEARTID = 2097152 +const CLONE_CHILD_SETTID = 16777216 +const CLONE_DETACHED = 4194304 +const CLONE_FILES = 1024 +const CLONE_FS = 512 +const CLONE_IO = 2147483648 +const CLONE_NEWCGROUP = 33554432 +const CLONE_NEWIPC = 134217728 +const CLONE_NEWNET = 1073741824 +const CLONE_NEWNS = 131072 +const CLONE_NEWPID = 536870912 +const CLONE_NEWTIME = 128 +const CLONE_NEWUSER = 268435456 +const CLONE_NEWUTS = 67108864 +const CLONE_PARENT = 32768 +const CLONE_PARENT_SETTID = 1048576 +const CLONE_PIDFD = 4096 +const CLONE_PTRACE = 8192 +const CLONE_SETTLS = 524288 +const CLONE_SIGHAND = 2048 +const CLONE_SYSVSEM = 262144 +const CLONE_THREAD = 65536 +const CLONE_UNTRACED = 8388608 +const CLONE_VFORK = 16384 +const CLONE_VM = 256 +const CPU_SETSIZE = 1024 +const CSIGNAL = 255 + +type Tcpu_set_t = struct { + F__bits [16]uint64 +} + +func Xsetns(tls *TLS, fd int32, nstype int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v nstype=%v, (%v:)", tls, fd, nstype, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_setns), int64(fd), int64(nstype))))) +} + +const __tm_gmtoff = 0 +const __tm_zone = 0 + +type Ttm1 = struct { + Ftm_sec int32 + Ftm_min int32 + Ftm_hour int32 + Ftm_mday int32 + Ftm_mon int32 + Ftm_year int32 + Ftm_wday int32 + Ftm_yday int32 + Ftm_isdst int32 + Ftm_gmtoff int64 + Ftm_zone uintptr +} + +func Xsettimeofday(tls *TLS, tv uintptr, tz uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v tv=%v tz=%v, (%v:)", tls, tv, tz, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + if !(tv != 0) { + return 0 + } + if Uint64FromInt64((*Ttimeval)(unsafe.Pointer(tv)).Ftv_usec) >= uint64(1000000) { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL)))) + } + *(*Ttimespec)(unsafe.Pointer(bp)) = Ttimespec{ + Ftv_sec: (*Ttimeval)(unsafe.Pointer(tv)).Ftv_sec, + Ftv_nsec: (*Ttimeval)(unsafe.Pointer(tv)).Ftv_usec * int64(1000), + } + return Xclock_settime(tls, CLOCK_REALTIME, bp) +} + +const SFD_CLOEXEC = 524288 +const SFD_NONBLOCK = 2048 + +type Tsignalfd_siginfo = struct { + Fssi_signo Tuint32_t + Fssi_errno Tint32_t + Fssi_code Tint32_t + Fssi_pid Tuint32_t + Fssi_uid Tuint32_t + Fssi_fd Tint32_t + Fssi_tid Tuint32_t + Fssi_band Tuint32_t + Fssi_overrun Tuint32_t + Fssi_trapno Tuint32_t + Fssi_status Tint32_t + Fssi_int Tint32_t + Fssi_ptr Tuint64_t + Fssi_utime Tuint64_t + Fssi_stime Tuint64_t + Fssi_addr Tuint64_t + Fssi_addr_lsb Tuint16_t + F__pad2 Tuint16_t + Fssi_syscall Tint32_t + Fssi_call_addr Tuint64_t + Fssi_arch Tuint32_t + F__pad [28]Tuint8_t +} + +func Xsignalfd(tls *TLS, fd int32, sigs uintptr, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v sigs=%v flags=%v, (%v:)", tls, fd, sigs, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret int32 + _ = ret + ret = int32(X__syscall4(tls, int64(SYS_signalfd4), int64(fd), int64(sigs), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8)), int64(flags))) + return int32(X__syscall_ret(tls, Uint64FromInt32(ret))) +} + +func Xsplice(tls *TLS, fd_in int32, off_in uintptr, fd_out int32, off_out uintptr, len1 Tsize_t, flags uint32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd_in=%v off_in=%v fd_out=%v off_out=%v len1=%v flags=%v, (%v:)", tls, fd_in, off_in, fd_out, off_out, len1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall6(tls, int64(SYS_splice), int64(fd_in), int64(off_in), int64(fd_out), int64(off_out), Int64FromUint64(len1), Int64FromUint32(flags)))) +} + +func Xstatx(tls *TLS, dirfd int32, path uintptr, flags int32, mask uint32, stx uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v dirfd=%v path=%v flags=%v mask=%v stx=%v, (%v:)", tls, dirfd, path, flags, mask, stx, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(128) + defer tls.Free(128) + var ret int32 + var _ /* st at bp+0 */ Tstat + _ = ret + ret = int32(X__syscall5(tls, int64(SYS_statx), int64(dirfd), int64(path), int64(flags), Int64FromUint32(mask), int64(stx))) + if ret != -int32(ENOSYS) { + return int32(X__syscall_ret(tls, Uint64FromInt32(ret))) + } + ret = Xfstatat(tls, dirfd, path, bp, flags) + if ret != 0 { + return ret + } + (*Tstatx)(unsafe.Pointer(stx)).Fstx_dev_major = uint32((**(**Tstat)(__ccgo_up(bp))).Fst_dev>>Int32FromInt32(31)>>Int32FromInt32(1)&Uint64FromUint32(0xfffff000) | (**(**Tstat)(__ccgo_up(bp))).Fst_dev>>Int32FromInt32(8)&Uint64FromInt32(0x00000fff)) + (*Tstatx)(unsafe.Pointer(stx)).Fstx_dev_minor = uint32((**(**Tstat)(__ccgo_up(bp))).Fst_dev>>Int32FromInt32(12)&Uint64FromUint32(0xffffff00) | (**(**Tstat)(__ccgo_up(bp))).Fst_dev&Uint64FromInt32(0x000000ff)) + (*Tstatx)(unsafe.Pointer(stx)).Fstx_ino = (**(**Tstat)(__ccgo_up(bp))).Fst_ino + (*Tstatx)(unsafe.Pointer(stx)).Fstx_mode = uint16((**(**Tstat)(__ccgo_up(bp))).Fst_mode) + (*Tstatx)(unsafe.Pointer(stx)).Fstx_nlink = (**(**Tstat)(__ccgo_up(bp))).Fst_nlink + (*Tstatx)(unsafe.Pointer(stx)).Fstx_uid = (**(**Tstat)(__ccgo_up(bp))).Fst_uid + (*Tstatx)(unsafe.Pointer(stx)).Fstx_gid = (**(**Tstat)(__ccgo_up(bp))).Fst_gid + (*Tstatx)(unsafe.Pointer(stx)).Fstx_size = Uint64FromInt64((**(**Tstat)(__ccgo_up(bp))).Fst_size) + (*Tstatx)(unsafe.Pointer(stx)).Fstx_blksize = Uint32FromInt32((**(**Tstat)(__ccgo_up(bp))).Fst_blksize) + (*Tstatx)(unsafe.Pointer(stx)).Fstx_blocks = Uint64FromInt64((**(**Tstat)(__ccgo_up(bp))).Fst_blocks) + (*Tstatx)(unsafe.Pointer(stx)).Fstx_atime.Ftv_sec = (**(**Tstat)(__ccgo_up(bp))).Fst_atim.Ftv_sec + (*Tstatx)(unsafe.Pointer(stx)).Fstx_atime.Ftv_nsec = Uint32FromInt64((**(**Tstat)(__ccgo_up(bp))).Fst_atim.Ftv_nsec) + (*Tstatx)(unsafe.Pointer(stx)).Fstx_mtime.Ftv_sec = (**(**Tstat)(__ccgo_up(bp))).Fst_mtim.Ftv_sec + (*Tstatx)(unsafe.Pointer(stx)).Fstx_mtime.Ftv_nsec = Uint32FromInt64((**(**Tstat)(__ccgo_up(bp))).Fst_mtim.Ftv_nsec) + (*Tstatx)(unsafe.Pointer(stx)).Fstx_ctime.Ftv_sec = (**(**Tstat)(__ccgo_up(bp))).Fst_ctim.Ftv_sec + (*Tstatx)(unsafe.Pointer(stx)).Fstx_ctime.Ftv_nsec = Uint32FromInt64((**(**Tstat)(__ccgo_up(bp))).Fst_ctim.Ftv_nsec) + (*Tstatx)(unsafe.Pointer(stx)).Fstx_btime = Tstatx_timestamp{} + (*Tstatx)(unsafe.Pointer(stx)).Fstx_mask = uint32(0x7ff) + return 0 +} + +func Xstime(tls *TLS, t uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v t=%v, (%v:)", tls, t, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* tv at bp+0 */ Ttimeval + **(**Ttimeval)(__ccgo_up(bp)) = Ttimeval{ + Ftv_sec: **(**Ttime_t)(__ccgo_up(t)), + } + return Xsettimeofday(tls, bp, UintptrFromInt32(0)) +} + +const SWAP_FLAG_DISCARD = 65536 +const SWAP_FLAG_PREFER = 32768 +const SWAP_FLAG_PRIO_MASK = 32767 +const SWAP_FLAG_PRIO_SHIFT = 0 + +func Xswapon(tls *TLS, path uintptr, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v flags=%v, (%v:)", tls, path, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_swapon), int64(path), int64(flags))))) +} + +func Xswapoff(tls *TLS, path uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v, (%v:)", tls, path, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_swapoff), int64(path))))) +} + +func Xsync_file_range(tls *TLS, fd int32, pos Toff_t, len1 Toff_t, flags uint32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v pos=%v len1=%v flags=%v, (%v:)", tls, fd, pos, len1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_sync_file_range), int64(fd), pos, len1, Int64FromUint32(flags))))) +} + +func Xsyncfs(tls *TLS, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_syncfs), int64(fd))))) +} + +func X__lsysinfo(tls *TLS, info uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v info=%v, (%v:)", tls, info, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_sysinfo), int64(info))))) +} + +func Xsysinfo(tls *TLS, info uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v info=%v, (%v:)", tls, info, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lsysinfo(tls, info) +} + +func Xtee(tls *TLS, src int32, dest int32, len1 Tsize_t, flags uint32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v src=%v dest=%v len1=%v flags=%v, (%v:)", tls, src, dest, len1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_tee), int64(src), int64(dest), Int64FromUint64(len1), Int64FromUint32(flags)))) +} + +const TFD_CLOEXEC = 524288 +const TFD_NONBLOCK = 2048 +const TFD_TIMER_ABSTIME = 1 +const TFD_TIMER_CANCEL_ON_SET = 2 + +func Xtimerfd_create(tls *TLS, clockid int32, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v clockid=%v flags=%v, (%v:)", tls, clockid, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_timerfd_create), int64(clockid), int64(flags))))) +} + +func Xtimerfd_settime(tls *TLS, fd int32, flags int32, new1 uintptr, old uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v flags=%v new1=%v old=%v, (%v:)", tls, fd, flags, new1, old, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_timerfd_settime), int64(fd), int64(flags), int64(new1), int64(old))))) +} + +func Xtimerfd_gettime(tls *TLS, fd int32, cur uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v cur=%v, (%v:)", tls, fd, cur, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_timerfd_gettime), int64(fd), int64(cur))))) +} + +func Xunshare(tls *TLS, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v flags=%v, (%v:)", tls, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_unshare), int64(flags))))) +} + +func Xutimes(tls *TLS, path uintptr, times uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v times=%v, (%v:)", tls, path, times, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__futimesat(tls, -int32(100), path, times) +} + +func Xvhangup(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall0(tls, int64(SYS_vhangup))))) +} + +func Xvmsplice(tls *TLS, fd int32, iov uintptr, cnt Tsize_t, flags uint32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v iov=%v cnt=%v flags=%v, (%v:)", tls, fd, iov, cnt, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_vmsplice), int64(fd), int64(iov), Int64FromUint64(cnt), Int64FromUint32(flags)))) +} + +const ESR_MAGIC = 1163088385 +const EXTRA_MAGIC = 1163416577 +const FPSIMD_MAGIC = 1179680769 +const NSIG = 65 +const SA_NOMASK = 1073741824 +const SA_ONESHOT = 2147483648 +const SVE_MAGIC = 1398162689 +const SVE_NUM_PREGS = 16 +const SVE_NUM_ZREGS = 32 +const SVE_SIG_REGS_OFFSET = 0 +const SVE_SIG_ZREGS_OFFSET = 0 +const SVE_VL_MAX = 8192 +const SVE_VL_MIN = 16 +const SVE_VQ_BYTES = 16 +const SVE_VQ_MAX = 512 +const SVE_VQ_MIN = 1 +const SYS_SECCOMP = 1 +const SYS_USER_DISPATCH = 2 +const __ucontext = 0 + +type Tgreg_t = uint64 + +type Tgregset_t = [34]uint64 + +type Tfpregset_t = struct { + F__ccgo_align [0]uint64 + Fvregs [32][2]uint64 + Ffpsr uint32 + Ffpcr uint32 + F__ccgo_pad3 [8]byte +} + +type Tmcontext_t1 = struct { + Ffault_address uint64 + Fregs [31]uint64 + Fsp uint64 + Fpc uint64 + Fpstate uint64 + F__reserved [256]float64 +} + +type Tsigcontext = Tmcontext_t1 + +type T_aarch64_ctx = struct { + Fmagic uint32 + Fsize uint32 +} + +type Tfpsimd_context = struct { + F__ccgo_align [0]uint64 + Fhead T_aarch64_ctx + Ffpsr uint32 + Ffpcr uint32 + Fvregs [32][2]uint64 +} + +type Tesr_context = struct { + Fhead T_aarch64_ctx + Fesr uint64 +} + +type Textra_context = struct { + Fhead T_aarch64_ctx + Fdatap uint64 + Fsize uint32 + F__reserved [3]uint32 +} + +type Tsve_context = struct { + Fhead T_aarch64_ctx + Fvl uint16 + F__reserved [3]uint16 +} + +type Tucontext_t1 = struct { + Fuc_flags uint64 + Fuc_link uintptr + Fuc_stack Tstack_t + Fuc_sigmask Tsigset_t + Fuc_mcontext Tmcontext_t1 +} + +type Tucontext = Tucontext_t1 + +type Tsig_t = uintptr + +type Tsighandler_t = uintptr + +func Xwait3(tls *TLS, status uintptr, options int32, usage uintptr) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v status=%v options=%v usage=%v, (%v:)", tls, status, options, usage, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwait4(tls, -int32(1), status, options, usage) +} + +func Xwait4(tls *TLS, pid Tpid_t, status uintptr, options int32, ru uintptr) (r1 Tpid_t) { + if __ccgo_strace { + trc("tls=%v pid=%v status=%v options=%v ru=%v, (%v:)", tls, pid, status, options, ru, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var dest, v1 uintptr + var r int32 + var _ /* kru at bp+0 */ [4]int64 + _, _, _ = dest, r, v1 + if ru != 0 { + v1 = ru + 32 - uintptr(Uint64FromInt32(4)*Uint64FromInt64(8)) + } else { + v1 = uintptr(0) + } + dest = v1 + r = int32(X__syscall4(tls, int64(SYS_wait4), int64(pid), int64(status), int64(options), int64(dest))) + if r > 0 && ru != 0 && Bool(uint64(8) > uint64(8)) { + Xmemcpy(tls, bp, dest, Uint64FromInt32(4)*Uint64FromInt64(8)) + (*Trusage)(unsafe.Pointer(ru)).Fru_utime = Ttimeval{ + Ftv_sec: (**(**[4]int64)(__ccgo_up(bp)))[0], + Ftv_usec: (**(**[4]int64)(__ccgo_up(bp)))[int32(1)], + } + (*Trusage)(unsafe.Pointer(ru)).Fru_stime = Ttimeval{ + Ftv_sec: (**(**[4]int64)(__ccgo_up(bp)))[int32(2)], + Ftv_usec: (**(**[4]int64)(__ccgo_up(bp)))[int32(3)], + } + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +const XATTR_CREATE = 1 +const XATTR_REPLACE = 2 +const __UAPI_DEF_XATTR = 0 + +func Xgetxattr(tls *TLS, path uintptr, name uintptr, value uintptr, size Tsize_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v path=%v name=%v value=%v size=%v, (%v:)", tls, path, name, value, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_getxattr), int64(path), int64(name), int64(value), Int64FromUint64(size)))) +} + +func Xlgetxattr(tls *TLS, path uintptr, name uintptr, value uintptr, size Tsize_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v path=%v name=%v value=%v size=%v, (%v:)", tls, path, name, value, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_lgetxattr), int64(path), int64(name), int64(value), Int64FromUint64(size)))) +} + +func Xfgetxattr(tls *TLS, filedes int32, name uintptr, value uintptr, size Tsize_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v filedes=%v name=%v value=%v size=%v, (%v:)", tls, filedes, name, value, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_fgetxattr), int64(filedes), int64(name), int64(value), Int64FromUint64(size)))) +} + +func Xlistxattr(tls *TLS, path uintptr, list uintptr, size Tsize_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v path=%v list=%v size=%v, (%v:)", tls, path, list, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_listxattr), int64(path), int64(list), Int64FromUint64(size)))) +} + +func Xllistxattr(tls *TLS, path uintptr, list uintptr, size Tsize_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v path=%v list=%v size=%v, (%v:)", tls, path, list, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_llistxattr), int64(path), int64(list), Int64FromUint64(size)))) +} + +func Xflistxattr(tls *TLS, filedes int32, list uintptr, size Tsize_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v filedes=%v list=%v size=%v, (%v:)", tls, filedes, list, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_flistxattr), int64(filedes), int64(list), Int64FromUint64(size)))) +} + +func Xsetxattr(tls *TLS, path uintptr, name uintptr, value uintptr, size Tsize_t, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v name=%v value=%v size=%v flags=%v, (%v:)", tls, path, name, value, size, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_setxattr), int64(path), int64(name), int64(value), Int64FromUint64(size), int64(flags))))) +} + +func Xlsetxattr(tls *TLS, path uintptr, name uintptr, value uintptr, size Tsize_t, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v name=%v value=%v size=%v flags=%v, (%v:)", tls, path, name, value, size, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_lsetxattr), int64(path), int64(name), int64(value), Int64FromUint64(size), int64(flags))))) +} + +func Xfsetxattr(tls *TLS, filedes int32, name uintptr, value uintptr, size Tsize_t, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v filedes=%v name=%v value=%v size=%v flags=%v, (%v:)", tls, filedes, name, value, size, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_fsetxattr), int64(filedes), int64(name), int64(value), Int64FromUint64(size), int64(flags))))) +} + +func Xremovexattr(tls *TLS, path uintptr, name uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v name=%v, (%v:)", tls, path, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_removexattr), int64(path), int64(name))))) +} + +func Xlremovexattr(tls *TLS, path uintptr, name uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v name=%v, (%v:)", tls, path, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_lremovexattr), int64(path), int64(name))))) +} + +func Xfremovexattr(tls *TLS, fd int32, name uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v name=%v, (%v:)", tls, fd, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_fremovexattr), int64(fd), int64(name))))) +} + +func _dummy4(tls *TLS, msg uintptr, lm uintptr) (r uintptr) { + return msg +} + +func X__lctrans(tls *TLS, msg uintptr, lm uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v msg=%v lm=%v, (%v:)", tls, msg, lm, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lctrans_impl(tls, msg, lm) +} + +func X__lctrans_cur(tls *TLS, msg uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v msg=%v, (%v:)", tls, msg, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lctrans_impl(tls, msg, **(**uintptr)(__ccgo_up((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale + 5*8))) +} + +func _swapc(tls *TLS, x Tuint32_t, c int32) (r Tuint32_t) { + var v1 uint32 + _ = v1 + if c != 0 { + v1 = x>>int32(24) | x>>int32(8)&uint32(0xff00) | x< %v", r) }() + } + var b, n, o, ol, os, t, tl, ts Tuint32_t + var mo uintptr + var sign, sw int32 + _, _, _, _, _, _, _, _, _, _, _ = b, mo, n, o, ol, os, sign, sw, t, tl, ts + mo = p + sw = Int32FromUint32(**(**Tuint32_t)(__ccgo_up(mo)) - uint32(0x950412de)) + b = uint32(0) + n = _swapc(tls, **(**Tuint32_t)(__ccgo_up(mo + 2*4)), sw) + o = _swapc(tls, **(**Tuint32_t)(__ccgo_up(mo + 3*4)), sw) + t = _swapc(tls, **(**Tuint32_t)(__ccgo_up(mo + 4*4)), sw) + if uint64(n) >= size/uint64(4) || uint64(o) >= size-uint64(uint32(4)*n) || uint64(t) >= size-uint64(uint32(4)*n) || (o|t)%uint32(4) != 0 { + return uintptr(0) + } + o = o / uint32(4) + t = t / uint32(4) + for { + ol = _swapc(tls, **(**Tuint32_t)(__ccgo_up(mo + uintptr(o+uint32(2)*(b+n/uint32(2)))*4)), sw) + os = _swapc(tls, **(**Tuint32_t)(__ccgo_up(mo + uintptr(o+uint32(2)*(b+n/uint32(2))+uint32(1))*4)), sw) + if uint64(os) >= size || uint64(ol) >= size-uint64(os) || **(**uint8)(__ccgo_up(p + uintptr(os+ol))) != 0 { + return uintptr(0) + } + sign = Xstrcmp(tls, s, p+uintptr(os)) + if !(sign != 0) { + tl = _swapc(tls, **(**Tuint32_t)(__ccgo_up(mo + uintptr(t+uint32(2)*(b+n/uint32(2)))*4)), sw) + ts = _swapc(tls, **(**Tuint32_t)(__ccgo_up(mo + uintptr(t+uint32(2)*(b+n/uint32(2))+uint32(1))*4)), sw) + if uint64(ts) >= size || uint64(tl) >= size-uint64(ts) || **(**uint8)(__ccgo_up(p + uintptr(ts+tl))) != 0 { + return uintptr(0) + } + return p + uintptr(ts) + } else { + if n == uint32(1) { + return uintptr(0) + } else { + if sign < 0 { + n = n / uint32(2) + } else { + b = b + n/uint32(2) + n = n - n/uint32(2) + } + } + } + goto _1 + _1: + } + return uintptr(0) +} + +const __USE_GNU_GETTEXT = 1 + +func Xbind_textdomain_codeset(tls *TLS, domainname uintptr, codeset uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v domainname=%v codeset=%v, (%v:)", tls, domainname, codeset, origin(2)) + defer func() { trc("-> %v", r) }() + } + if codeset != 0 && Xstrcasecmp(tls, codeset, __ccgo_ts+322) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + } + return UintptrFromInt32(0) +} + +var _empty_mo = [5]Tuint32_t{ + 0: uint32(0x950412de), + 2: Uint32FromInt32(-Int32FromInt32(1)), + 3: Uint32FromInt32(-Int32FromInt32(1)), + 4: Uint32FromInt32(-Int32FromInt32(1)), +} + +const NL_CAT_LOCALE = 1 +const NL_SETD = 1 + +type Tnl_item = int32 + +type Tnl_catd = uintptr + +func Xcatclose(tls *TLS, catd Tnl_catd) (r int32) { + if __ccgo_strace { + trc("tls=%v catd=%v, (%v:)", tls, catd, origin(2)) + defer func() { trc("-> %v", r) }() + } + var map1 uintptr + var v1, v2 Tuint32_t + _, _, _ = map1, v1, v2 + map1 = catd + v1 = **(**Tuint32_t)(__ccgo_up(map1 + UintptrFromInt32(8))) + v2 = v1>>int32(24) | v1>>int32(8)&uint32(0xff00) | v1<>int32(24) | v1>>int32(8)&uint32(0xff00) | v1<>int32(24) | v4>>int32(8)&uint32(0xff00) | v4< y { + v8 = int32(1) + } else { + v8 = 0 + } + v7 = v8 + } + return v7 +} + +func Xcatgets(tls *TLS, catd Tnl_catd, set_id int32, msg_id int32, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v catd=%v set_id=%v msg_id=%v s=%v, (%v:)", tls, catd, set_id, msg_id, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var map1, msg, msgs, set, sets, strings uintptr + var nmsgs, nsets, v1, v10, v11, v13, v14, v2, v4, v5, v7, v8 Tuint32_t + var _ /* msg_id_be at bp+4 */ Tuint32_t + var _ /* set_id_be at bp+0 */ Tuint32_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = map1, msg, msgs, nmsgs, nsets, set, sets, strings, v1, v10, v11, v13, v14, v2, v4, v5, v7, v8 + map1 = catd + v1 = **(**Tuint32_t)(__ccgo_up(map1 + UintptrFromInt32(4))) + v2 = v1>>int32(24) | v1>>int32(8)&uint32(0xff00) | v1<>int32(24) | v4>>int32(8)&uint32(0xff00) | v4<>int32(24) | v7>>int32(8)&uint32(0xff00) | v7<>int32(24) | v10>>int32(8)&uint32(0xff00) | v10<>int32(24) | v13>>int32(8)&uint32(0xff00) | v13<>int32(24) | v1>>int32(8)&uint32(0xff00) | v1<>int32(24) | v4>>int32(8)&uint32(0xff00) | v4<>int32(24) | v1>>int32(8)&uint32(0xff00) | v1<>int32(24) | v1>>int32(8)&uint32(0xff00) | v1<>int32(24) | v5>>int32(8)&uint32(0xff00) | v5< %v", r) }() + } + bp := tls.Alloc(4096) + defer tls.Free(4096) + var catd Tnl_catd + var i, l Tsize_t + var lang, p, path, v, z, v1 uintptr + var v2 bool + var _ /* buf at bp+0 */ [4096]uint8 + _, _, _, _, _, _, _, _, _, _ = catd, i, l, lang, p, path, v, z, v1, v2 + if Xstrchr(tls, name, int32('/')) != 0 { + return _do_catopen(tls, name) + } + if v2 = X__libc.Fsecure != 0; !v2 { + v1 = Xgetenv(tls, __ccgo_ts+328) + path = v1 + } + if v2 || !(v1 != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOENT) + return uintptr(-Int32FromInt32(1)) + } + if oflag != 0 { + v1 = Xnl_langinfo(tls, Int32FromInt32(LC_MESSAGES)<= uint64(4096)-i { + break + } + Xmemcpy(tls, bp+uintptr(i), v, l) + i = i + l + goto _5 + _5: + ; + p = p + 1 + } + if !(**(**uint8)(__ccgo_up(z)) != 0) && (p < z || !(i != 0)) { + break + } + if p < z { + goto _4 + } + if **(**uint8)(__ccgo_up(z)) != 0 { + z = z + 1 + } + (**(**[4096]uint8)(__ccgo_up(bp)))[i] = uint8(0) + /* Leading : or :: in NLSPATH is same as %N */ + if i != 0 { + v1 = bp + } else { + v1 = name + } + catd = _do_catopen(tls, v1) + if catd != uintptr(-Int32FromInt32(1)) { + return catd + } + goto _4 + _4: + ; + p = z + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOENT) + return uintptr(-Int32FromInt32(1)) +} + +const calloc = 0 +const free = 0 +const malloc = 0 +const realloc = 0 + +type Tbinding = struct { + Fnext uintptr + Fdirlen int32 + Factive int32 + Fdomainname uintptr + Fdirname uintptr +} + +var _bindings uintptr + +func _gettextdir(tls *TLS, domainname uintptr, dirlen uintptr) (r uintptr) { + var p uintptr + _ = p + p = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_bindings))) + for { + if !(p != 0) { + break + } + if !(Xstrcmp(tls, (*Tbinding)(unsafe.Pointer(p)).Fdomainname, domainname) != 0) && AtomicLoadPInt32(p+12) != 0 { + **(**Tsize_t)(__ccgo_up(dirlen)) = Uint64FromInt32((*Tbinding)(unsafe.Pointer(p)).Fdirlen) + return (*Tbinding)(unsafe.Pointer(p)).Fdirname + } + goto _1 + _1: + ; + p = (*Tbinding)(unsafe.Pointer(p)).Fnext + } + return uintptr(0) +} + +var _lock1 [1]int32 + +func Xbindtextdomain(tls *TLS, domainname uintptr, dirname uintptr) (r1 uintptr) { + if __ccgo_strace { + trc("tls=%v domainname=%v dirname=%v, (%v:)", tls, domainname, dirname, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var dirlen, domlen Tsize_t + var old, p4, q, v, v2, v6 uintptr + var r, v3 int32 + _, _, _, _, _, _, _, _, _, _ = dirlen, domlen, old, p4, q, r, v, v2, v3, v6 + if !(domainname != 0) { + return uintptr(0) + } + if !(dirname != 0) { + *(*Tsize_t)(unsafe.Pointer(bp)) = uint64(0) + return _gettextdir(tls, domainname, bp) + } + domlen = Xstrnlen(tls, domainname, Uint64FromInt32(Int32FromInt32(NAME_MAX)+Int32FromInt32(1))) + dirlen = Xstrnlen(tls, dirname, uint64(PATH_MAX)) + if domlen > uint64(NAME_MAX) || dirlen >= uint64(PATH_MAX) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(0) + } + ___lock(tls, uintptr(unsafe.Pointer(&_lock1))) + p4 = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_bindings))) + for { + if !(p4 != 0) { + break + } + if !(Xstrcmp(tls, (*Tbinding)(unsafe.Pointer(p4)).Fdomainname, domainname) != 0) && !(Xstrcmp(tls, (*Tbinding)(unsafe.Pointer(p4)).Fdirname, dirname) != 0) { + break + } + goto _1 + _1: + ; + p4 = (*Tbinding)(unsafe.Pointer(p4)).Fnext + } + if !(p4 != 0) { + p4 = Xcalloc(tls, uint64(32)+domlen+dirlen+uint64(2), uint64(1)) + if !(p4 != 0) { + ___unlock(tls, uintptr(unsafe.Pointer(&_lock1))) + return uintptr(0) + } + (*Tbinding)(unsafe.Pointer(p4)).Fnext = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_bindings))) + (*Tbinding)(unsafe.Pointer(p4)).Fdirlen = Int32FromUint64(dirlen) + (*Tbinding)(unsafe.Pointer(p4)).Fdomainname = p4 + 32 + (*Tbinding)(unsafe.Pointer(p4)).Fdirname = p4 + 32 + uintptr(domlen) + uintptr(1) + Xmemcpy(tls, (*Tbinding)(unsafe.Pointer(p4)).Fdomainname, domainname, domlen+uint64(1)) + Xmemcpy(tls, (*Tbinding)(unsafe.Pointer(p4)).Fdirname, dirname, dirlen+uint64(1)) + v2 = uintptr(unsafe.Pointer(&_bindings)) + for { + // __asm__ __volatile__ ("ldaxr %0, %1" : "=r"(v) : "Q"(*(void *volatile *)p)); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 41, __ccgo_ts+399) + v6 = v + goto _7 + _7: + old = v6 + if old != AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_bindings))) { + // __asm__ __volatile__ ("dmb ish" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 20, __ccgo_ts+399) + break + } + goto _5 + _5: + ; + // __asm__ __volatile__ ("stlxr %w0,%2,%1" : "=&r"(r), "=Q"(*(void *volatile *)p) : "r"(v) : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 49, __ccgo_ts+399) + v3 = BoolInt32(!(r != 0)) + goto _4 + _4: + ; + if !!(v3 != 0) { + break + } + } + _ = old + goto _8 + _8: + } + // __asm__ __volatile__ ("dmb ish" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 20, __ccgo_ts+399) + AtomicStorePInt32(p4+12, int32(1)) + // __asm__ __volatile__ ("dmb ish" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 20, __ccgo_ts+399) + q = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_bindings))) + for { + if !(q != 0) { + break + } + if !(Xstrcmp(tls, (*Tbinding)(unsafe.Pointer(q)).Fdomainname, domainname) != 0) && q != p4 { + // __asm__ __volatile__ ("dmb ish" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 20, __ccgo_ts+399) + AtomicStorePInt32(q+12, 0) + // __asm__ __volatile__ ("dmb ish" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 20, __ccgo_ts+399) + } + goto _9 + _9: + ; + q = (*Tbinding)(unsafe.Pointer(q)).Fnext + } + ___unlock(tls, uintptr(unsafe.Pointer(&_lock1))) + return (*Tbinding)(unsafe.Pointer(p4)).Fdirname +} + +var _catnames = [6][12]uint8{ + 0: {'L', 'C', '_', 'C', 'T', 'Y', 'P', 'E'}, + 1: {'L', 'C', '_', 'N', 'U', 'M', 'E', 'R', 'I', 'C'}, + 2: {'L', 'C', '_', 'T', 'I', 'M', 'E'}, + 3: {'L', 'C', '_', 'C', 'O', 'L', 'L', 'A', 'T', 'E'}, + 4: {'L', 'C', '_', 'M', 'O', 'N', 'E', 'T', 'A', 'R', 'Y'}, + 5: {'L', 'C', '_', 'M', 'E', 'S', 'S', 'A', 'G', 'E', 'S'}, +} + +var _catlens = [6]uint8{ + 0: uint8(8), + 1: uint8(10), + 2: uint8(7), + 3: uint8(10), + 4: uint8(11), + 5: uint8(11), +} + +type Tmsgcat = struct { + Fnext uintptr + Fmap1 uintptr + Fmap_size Tsize_t + Fplural_rule uintptr + Fnplurals int32 + Fbinding uintptr + Flm uintptr + Fcat int32 +} + +func _dummy_gettextdomain(tls *TLS) (r uintptr) { + return __ccgo_ts + 414 +} + +func Xdcngettext(tls *TLS, domainname uintptr, msgid1 uintptr, msgid2 uintptr, n uint64, category int32) (r2 uintptr) { + if __ccgo_strace { + trc("tls=%v domainname=%v msgid1=%v msgid2=%v n=%v category=%v, (%v:)", tls, domainname, msgid1, msgid2, n, category, origin(2)) + defer func() { trc("-> %v", r2) }() + } + bp := tls.Alloc(80) + defer tls.Free(80) + var alt_modlen, catlen, dirlen, domlen, l, loclen, modlen, rem, v5 Tsize_t + var catname, csp, dirname, lm, loc, locname, locp, map1, modname, name, old, old_cats, p3, q, r1, rule, trans, v, v3, v8, v9 uintptr + var np, plural, v26 uint64 + var old_errno, r, v11, v12 int32 + var v6 t__predefined_size_t + var _ /* map_size at bp+0 */ Tsize_t + var _ /* z at bp+8 */ uintptr + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = alt_modlen, catlen, catname, csp, dirlen, dirname, domlen, l, lm, loc, loclen, locname, locp, map1, modlen, modname, name, np, old, old_cats, old_errno, p3, plural, q, r, r1, rem, rule, trans, v, v11, v12, v26, v3, v5, v6, v8, v9 + defer func() { Xrealloc(tls, name, 0) }() + loc = (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale + old_errno = **(**int32)(__ccgo_up(X__errno_location(tls))) + /* match gnu gettext behaviour */ + if !(msgid1 != 0) { + goto notrans + } + if Uint32FromInt32(category) >= uint32(LC_ALL) { + goto notrans + } + if !(domainname != 0) { + domainname = X__gettextdomain(tls) + } + domlen = Xstrnlen(tls, domainname, Uint64FromInt32(Int32FromInt32(NAME_MAX)+Int32FromInt32(1))) + if domlen > uint64(NAME_MAX) { + goto notrans + } + q = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_bindings))) + for { + if !(q != 0) { + break + } + if !(Xstrcmp(tls, (*Tbinding)(unsafe.Pointer(q)).Fdomainname, domainname) != 0) && AtomicLoadPInt32(q+12) != 0 { + break + } + goto _1 + _1: + ; + q = (*Tbinding)(unsafe.Pointer(q)).Fnext + } + if !(q != 0) { + goto notrans + } + lm = **(**uintptr)(__ccgo_up(loc + uintptr(category)*8)) + if !!(lm != 0) { + goto _2 + } + goto notrans +notrans: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = old_errno + if n == uint64(1) { + v3 = msgid1 + } else { + v3 = msgid2 + } + return v3 +_2: + ; + p3 = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_cats))) + for { + if !(p3 != 0) { + break + } + if (*Tmsgcat)(unsafe.Pointer(p3)).Fbinding == q && (*Tmsgcat)(unsafe.Pointer(p3)).Flm == lm && (*Tmsgcat)(unsafe.Pointer(p3)).Fcat == category { + break + } + goto _4 + _4: + ; + p3 = (*Tmsgcat)(unsafe.Pointer(p3)).Fnext + } + if !(p3 != 0) { + dirname = (*Tbinding)(unsafe.Pointer(q)).Fdirname + locname = lm + 16 + catname = uintptr(unsafe.Pointer(&_catnames)) + uintptr(category)*12 + dirlen = Uint64FromInt32((*Tbinding)(unsafe.Pointer(q)).Fdirlen) + loclen = _strlen(tls, locname) + catlen = uint64(_catlens[category]) + /* Logically split @mod suffix from locale name. */ + modname = Xmemchr(tls, locname, int32('@'), loclen) + if !(modname != 0) { + modname = locname + uintptr(loclen) + } + v5 = loclen - Uint64FromInt64(int64(modname)-int64(locname)) + modlen = v5 + alt_modlen = v5 + loclen = Uint64FromInt64(int64(modname) - int64(locname)) + /* Drop .charset identifier; it is not used. */ + csp = Xmemchr(tls, locname, int32('.'), loclen) + if csp != 0 { + loclen = Uint64FromInt64(int64(csp) - int64(locname)) + } + v6 = dirlen + uint64(1) + loclen + modlen + uint64(1) + catlen + uint64(1) + domlen + uint64(3) + uint64(1) + name = Xrealloc(tls, name, v6) + for { + Xsnprintf(tls, name, v6, __ccgo_ts+423, VaList(bp+24, dirname, Int32FromUint64(loclen), locname, Int32FromUint64(alt_modlen), modname, catname, domainname)) + v3 = X__map_file(tls, name, bp) + map1 = v3 + if v3 != 0 { + break + } + /* Try dropping @mod, _YY, then both. */ + if alt_modlen != 0 { + alt_modlen = uint64(0) + } else { + v3 = Xmemchr(tls, locname, int32('_'), loclen) + locp = v3 + if v3 != 0 { + loclen = Uint64FromInt64(int64(locp) - int64(locname)) + alt_modlen = modlen + } else { + break + } + } + goto _7 + _7: + } + if !(map1 != 0) { + goto notrans + } + p3 = Xcalloc(tls, uint64(64), uint64(1)) + if !(p3 != 0) { + X__munmap(tls, map1, **(**Tsize_t)(__ccgo_up(bp))) + goto notrans + } + (*Tmsgcat)(unsafe.Pointer(p3)).Fcat = category + (*Tmsgcat)(unsafe.Pointer(p3)).Fbinding = q + (*Tmsgcat)(unsafe.Pointer(p3)).Flm = lm + (*Tmsgcat)(unsafe.Pointer(p3)).Fmap1 = map1 + (*Tmsgcat)(unsafe.Pointer(p3)).Fmap_size = **(**Tsize_t)(__ccgo_up(bp)) + rule = __ccgo_ts + 445 + np = uint64(2) + r1 = X__mo_lookup(tls, (*Tmsgcat)(unsafe.Pointer(p3)).Fmap1, (*Tmsgcat)(unsafe.Pointer(p3)).Fmap_size, __ccgo_ts) + for r1 != 0 && Xstrncmp(tls, r1, __ccgo_ts+451, uint64(13)) != 0 { + **(**uintptr)(__ccgo_up(bp + 8)) = Xstrchr(tls, r1, int32('\n')) + if **(**uintptr)(__ccgo_up(bp + 8)) != 0 { + v3 = **(**uintptr)(__ccgo_up(bp + 8)) + uintptr(1) + } else { + v3 = uintptr(0) + } + r1 = v3 + } + if r1 != 0 { + r1 = r1 + uintptr(13) + for { + v11 = Int32FromUint8(**(**uint8)(__ccgo_up(r1))) + v12 = BoolInt32(v11 == int32(' ') || Uint32FromInt32(v11)-uint32('\t') < uint32(5)) + goto _13 + _13: + if !(v12 != 0) { + break + } + r1 = r1 + 1 + } + if !(Xstrncmp(tls, r1, __ccgo_ts+465, uint64(9)) != 0) { + np = Xstrtoul(tls, r1+uintptr(9), bp+8, int32(10)) + r1 = **(**uintptr)(__ccgo_up(bp + 8)) + } + for **(**uint8)(__ccgo_up(r1)) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(r1))) != int32(';') { + r1 = r1 + 1 + } + if **(**uint8)(__ccgo_up(r1)) != 0 { + r1 = r1 + 1 + for { + v11 = Int32FromUint8(**(**uint8)(__ccgo_up(r1))) + v12 = BoolInt32(v11 == int32(' ') || Uint32FromInt32(v11)-uint32('\t') < uint32(5)) + goto _16 + _16: + if !(v12 != 0) { + break + } + r1 = r1 + 1 + } + if !(Xstrncmp(tls, r1, __ccgo_ts+475, uint64(7)) != 0) { + rule = r1 + uintptr(7) + } + } + } + (*Tmsgcat)(unsafe.Pointer(p3)).Fnplurals = Int32FromUint64(np) + (*Tmsgcat)(unsafe.Pointer(p3)).Fplural_rule = rule + for { + old_cats = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_cats))) + (*Tmsgcat)(unsafe.Pointer(p3)).Fnext = old_cats + goto _25 + _25: + ; + v3 = uintptr(unsafe.Pointer(&_cats)) + for { + // __asm__ __volatile__ ("ldaxr %0, %1" : "=r"(v) : "Q"(*(void *volatile *)p)); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 41, __ccgo_ts+483) + v8 = v + goto _22 + _22: + old = v8 + if old != old_cats { + // __asm__ __volatile__ ("dmb ish" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 20, __ccgo_ts+483) + break + } + goto _20 + _20: + ; + // __asm__ __volatile__ ("stlxr %w0,%2,%1" : "=&r"(r), "=Q"(*(void *volatile *)p) : "r"(v) : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 49, __ccgo_ts+483) + v11 = BoolInt32(!(r != 0)) + goto _19 + _19: + ; + if !!(v11 != 0) { + break + } + } + v9 = old + goto _24 + _24: + ; + if !(v9 != old_cats) { + break + } + } + } + trans = X__mo_lookup(tls, (*Tmsgcat)(unsafe.Pointer(p3)).Fmap1, (*Tmsgcat)(unsafe.Pointer(p3)).Fmap_size, msgid1) + if !(trans != 0) { + goto notrans + } + /* Non-plural-processing gettext forms pass a null pointer as + * msgid2 to request that dcngettext suppress plural processing. */ + if msgid2 != 0 && (*Tmsgcat)(unsafe.Pointer(p3)).Fnplurals != 0 { + plural = X__pleval(tls, (*Tmsgcat)(unsafe.Pointer(p3)).Fplural_rule, n) + if plural > Uint64FromInt32((*Tmsgcat)(unsafe.Pointer(p3)).Fnplurals) { + goto notrans + } + for { + v26 = plural + plural = plural - 1 + if !(v26 != 0) { + break + } + rem = (*Tmsgcat)(unsafe.Pointer(p3)).Fmap_size - Uint64FromInt64(int64(trans)-int64((*Tmsgcat)(unsafe.Pointer(p3)).Fmap1)) + l = Xstrnlen(tls, trans, rem) + if l+uint64(1) >= rem { + goto notrans + } + trans = trans + uintptr(l+uint64(1)) + } + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = old_errno + return trans +} + +var _cats uintptr + +func Xdcgettext(tls *TLS, domainname uintptr, msgid uintptr, category int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v domainname=%v msgid=%v category=%v, (%v:)", tls, domainname, msgid, category, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xdcngettext(tls, domainname, msgid, uintptr(0), uint64(1), category) +} + +func Xdngettext(tls *TLS, domainname uintptr, msgid1 uintptr, msgid2 uintptr, n uint64) (r uintptr) { + if __ccgo_strace { + trc("tls=%v domainname=%v msgid1=%v msgid2=%v n=%v, (%v:)", tls, domainname, msgid1, msgid2, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xdcngettext(tls, domainname, msgid1, msgid2, n, int32(LC_MESSAGES)) +} + +func Xdgettext(tls *TLS, domainname uintptr, msgid uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v domainname=%v msgid=%v, (%v:)", tls, domainname, msgid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xdcngettext(tls, domainname, msgid, uintptr(0), uint64(1), int32(LC_MESSAGES)) +} + +func X__duplocale(tls *TLS, old Tlocale_t) (r Tlocale_t) { + if __ccgo_strace { + trc("tls=%v old=%v, (%v:)", tls, old, origin(2)) + defer func() { trc("-> %v", r) }() + } + var new1 Tlocale_t + _ = new1 + new1 = Xmalloc(tls, uint64(48)) + if !(new1 != 0) { + return uintptr(0) + } + if old == uintptr(-Int32FromInt32(1)) { + old = uintptr(unsafe.Pointer(&X__libc)) + 56 + } + **(**t__locale_struct)(__ccgo_up(new1)) = **(**t__locale_struct)(__ccgo_up(old)) + return new1 +} + +func Xduplocale(tls *TLS, old Tlocale_t) (r Tlocale_t) { + if __ccgo_strace { + trc("tls=%v old=%v, (%v:)", tls, old, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__duplocale(tls, old) +} + +func Xfreelocale(tls *TLS, l Tlocale_t) { + if __ccgo_strace { + trc("tls=%v l=%v, (%v:)", tls, l, origin(2)) + } + if X__loc_is_allocated(tls, l) != 0 { + Xfree(tls, l) + } +} + +func X__freelocale(tls *TLS, l Tlocale_t) { + if __ccgo_strace { + trc("tls=%v l=%v, (%v:)", tls, l, origin(2)) + } + Xfreelocale(tls, l) +} + +const BIG5 = 224 +const EUC_JP = 208 +const EUC_KR = 232 +const GB18030 = 216 +const GB2312 = 218 +const GBK = 217 +const ISO2022_JP = 210 +const SHIFT_JIS = 209 +const UCS2 = 204 +const UCS2BE = 196 +const UCS2LE = 197 +const US_ASCII = 199 +const UTF_16 = 202 +const UTF_16BE = 194 +const UTF_16LE = 193 +const UTF_32 = 203 +const UTF_32BE = 192 +const UTF_32LE = 195 +const UTF_8 = 200 +const WCHAR_T = 198 +const mbrtowc_utf8 = 0 +const wctomb_utf8 = 0 + +type Ticonv_t = uintptr + +/* Definitions of charmaps. Each charmap consists of: + * 1. Empty-string-terminated list of null-terminated aliases. + * 2. Special type code or number of elided quads of entries. + * 3. Character table (size determined by field 2), consisting + * of 5 bytes for every 4 characters, interpreted as 10-bit + * indices into the legacy_chars table. */ + +var _charmaps = [4907]uint8{'u', 't', 'f', '8', 0, 'c', 'h', 'a', 'r', 0, 0, 200, 'w', 'c', 'h', 'a', 'r', 't', 0, 0, 198, 'u', 'c', 's', '2', 'b', 'e', 0, 0, 196, 'u', 'c', 's', '2', 'l', 'e', 0, 0, 197, 'u', 't', 'f', '1', '6', 'b', 'e', 0, 0, 194, 'u', 't', 'f', '1', '6', 'l', 'e', 0, 0, 193, 'u', 'c', 's', '4', 'b', 'e', 0, 'u', 't', 'f', '3', '2', 'b', 'e', 0, 0, 192, 'u', 'c', 's', '4', 'l', 'e', 0, 'u', 't', 'f', '3', '2', 'l', 'e', 0, 0, 195, 'a', 's', 'c', 'i', 'i', 0, 'u', 's', 'a', 's', 'c', 'i', 'i', 0, 'i', 's', 'o', '6', '4', '6', 0, 'i', 's', 'o', '6', '4', '6', 'u', 's', 0, 0, 199, 'u', 't', 'f', '1', '6', 0, 0, 202, 'u', 'c', 's', '4', 0, 'u', 't', 'f', '3', '2', 0, 0, 203, 'u', 'c', 's', '2', 0, 0, 204, 'e', 'u', 'c', 'j', 'p', 0, 0, 208, 's', 'h', 'i', 'f', 't', 'j', 'i', 's', 0, 's', 'j', 'i', 's', 0, 'c', 'p', '9', '3', '2', 0, 0, 209, 'i', 's', 'o', '2', '0', '2', '2', 'j', 'p', 0, 0, 210, 'g', 'b', '1', '8', '0', '3', '0', 0, 0, 216, 'g', 'b', 'k', 0, 'c', 'p', '9', '3', '6', 0, 'w', 'i', 'n', 'd', 'o', 'w', 's', '9', '3', '6', 0, 0, 217, 'g', 'b', '2', '3', '1', '2', 0, 0, 218, 'b', 'i', 'g', '5', 0, 'b', 'i', 'g', 'f', 'i', 'v', 'e', 0, 'c', 'p', '9', '5', '0', 0, 'b', 'i', 'g', '5', 'h', 'k', 's', 'c', 's', 0, 0, 224, 'e', 'u', 'c', 'k', 'r', 0, 'k', 's', 'c', '5', '6', '0', '1', 0, 'k', 's', 'x', '1', '0', '0', '1', 0, 'c', 'p', '9', '4', '9', 0, 0, 232, 'i', 's', 'o', '8', '8', '5', '9', '1', 0, 'l', 'a', 't', 'i', 'n', '1', 0, 0, '@', 'i', 's', 'o', '8', '8', '5', '9', '2', 0, 0, '(', 160, 16, 244, 'W', 'N', 164, 220, 244, 212, ')', 168, 'T', '5', 'U', 'V', 'n', 181, '"', 23, '\\', 176, 20, 20, 152, 'N', 180, 224, 4, 149, '_', 184, 'X', 'E', 149, 'V', 'o', 13, '6', 'W', '\\', 'I', 5, '#', 140, '@', 196, 204, 'd', 208, '1', 12, '%', 'c', 209, '2', 24, '5', 227, 140, 'C', 16, 237, 244, 211, '4', 212, 20, 'e', 205, '5', 'M', 141, 165, 'M', 'Y', 220, 't', 's', 213, '7', 'J', 133, '#', 206, '@', 228, 208, 't', 208, '9', 13, 165, 's', 209, ':', 25, 181, 227, 206, 'C', 17, 241, 4, 212, '<', 244, 24, 'e', 207, '=', 'N', 145, 165, 143, 'Y', 252, 244, 131, 21, '`', 'i', 's', 'o', '8', '8', '5', '9', '3', 0, 0, '(', 160, 144, 244, 215, '(', 164, 0, ' ', 210, ')', 168, 176, '4', 21, 'G', '.', 181, 2, 0, '\\', 176, 148, '$', 203, ',', 180, 212, '2', 210, '-', 184, 180, 'D', 'U', 'G', '/', 245, 2, '@', '\\', 192, 4, '#', 12, 0, 196, '(', 132, 208, '1', 200, '$', 163, 204, '2', 204, '4', 227, 204, '3', 0, 'D', '#', 205, '4', 212, 'x', 'd', 205, '5', 26, 'e', 163, 205, '6', 220, 132, 21, 213, '7', 224, 132, '#', 14, 0, 228, ',', 148, 208, '9', 232, 164, 163, 206, ':', 236, 180, 227, 206, ';', 0, 196, '#', 207, '<', 244, '|', 'd', 207, '=', 27, 229, 163, 207, '>', 252, 136, '%', 21, '`', 'i', 's', 'o', '8', '8', '5', '9', '4', 0, 0, '(', 160, 16, '$', 211, 'R', 164, 152, 'T', 211, ')', 168, 'T', '%', 17, 'H', '[', 181, '"', 215, '+', 176, 20, 20, 24, 'S', 180, 156, 'd', 147, '_', 184, 'X', '5', 'Q', 'H', '\\', 5, '5', 151, 'P', 0, 5, '#', 204, '0', 196, 20, 'c', 140, 'J', 12, '%', 'c', 209, '2', 20, '5', 227, 12, 'J', 16, 245, '4', 20, 'L', 212, 'T', 'c', 205, '5', 216, 156, 165, 205, '6', 220, 't', 245, 213, '7', 1, 133, '#', 206, '8', 228, 148, 'c', 206, 'J', 13, 165, 's', 209, ':', 21, 181, 227, 'N', 'J', 17, 249, 'D', 'T', 'L', 244, 212, 'c', 207, '=', 248, 160, 165, 207, '>', 252, 'x', 5, 22, '`', 'i', 's', 'o', '8', '8', '5', '9', '5', 0, 0, '(', 160, 'D', '\'', 221, 't', 212, 'U', 'g', 221, 'u', 216, 'e', 167, 221, 'v', 220, 181, 210, 157, 'w', 223, 129, 23, 158, 'x', 227, 145, 'W', 158, 'y', 231, 161, 151, 158, 'z', 235, 177, 215, 158, '{', 239, 193, 23, 159, '|', 243, 209, 'W', 159, '}', 247, 225, 151, 159, '~', 251, 241, 215, 159, 127, 255, 1, 24, 160, 128, 3, 18, 'X', 160, 129, 7, '"', 152, 160, 130, 11, '2', 216, 160, 131, 15, 'B', 24, 161, 132, 19, 'R', 'X', 161, 133, 23, 'b', 152, 161, 134, 27, 'r', 216, 161, 135, '&', 127, 8, 'b', 136, '"', 142, 'H', 'b', 137, '&', 158, 136, 'b', 138, '*', 158, 178, '"', 139, 'i', 's', 'o', '8', '8', '5', '9', '6', 0, 0, '(', 160, 0, 0, 0, 0, 164, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'b', 182, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 192, 152, 0, 0, 0, 0, 153, 0, 148, 'i', 230, 153, 'h', 166, 169, 230, 154, 'l', 182, 233, 230, 155, 'p', 198, ')', 231, 156, 't', 214, 'i', 231, 157, 'x', 230, 169, 231, 158, '|', 246, 233, '\'', 0, 0, 0, 0, 0, 0, 127, 2, 26, 168, 160, 131, 18, 'Z', 168, 161, 135, '"', 154, 168, 162, 139, '2', 218, 168, 163, 143, 'B', 26, ')', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'i', 's', 'o', '8', '8', '5', '9', '7', 0, 0, '(', 160, 'L', 'L', 241, '(', '$', 151, 'l', 202, ')', 168, 164, 146, 216, '*', 172, 180, 2, '@', 196, 176, 196, '"', 203, ',', 138, '-', 198, 216, '-', 141, '9', 246, 216, '.', 144, 245, 18, 153, 'd', 147, 'Q', 'V', 153, 'e', 151, 'a', 150, 153, 'f', 155, 'q', 214, 153, 'g', 159, 129, 22, 154, 'h', 163, 145, 6, '@', 'i', 166, 157, 134, 'Z', 'j', 170, 173, 198, 'Z', 'k', 174, 189, 6, '[', 'l', 178, 205, 'F', '[', 'm', 182, 221, 134, '[', 'n', 186, 237, 198, '[', 'o', 190, 253, 6, '\\', 'p', 194, 13, 'G', '\\', 'q', 198, 29, 135, '\\', 'r', 202, '-', 199, '\\', 's', 206, '=', 7, 29, 0, 'i', 's', 'o', '8', '8', '5', '9', '8', 0, 0, '(', 160, 0, ' ', 202, '(', 164, 148, 'b', 202, ')', 168, 164, 'r', 205, '*', 172, 180, 226, 202, '+', 176, 196, '"', 203, ',', 180, 212, 'b', 203, '-', 184, 228, 'r', 207, '.', 188, 244, 226, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 128, 196, 'B', 14, 'I', 'd', 145, 'F', 30, 137, 'd', 146, 'J', '.', 201, 'd', 147, 'N', '>', 9, 'e', 148, 'R', 'N', 'I', 'e', 149, 'V', '^', 137, 'e', 150, 'Z', 'n', 201, '%', 0, 0, '4', 236, '0', 0, 'i', 's', 'o', '8', '8', '5', '9', '9', 0, 0, '4', 28, 'E', '#', 205, '4', 212, 'T', 'c', 205, '5', 216, 'd', 163, 205, '6', 220, 176, '4', 213, '7', 224, 132, '#', 206, '8', 228, 148, 'c', 206, '9', 232, 164, 163, 206, ':', 236, 180, 227, 206, ';', 29, 197, '#', 207, '<', 244, 212, 'c', 207, '=', 248, 228, 163, 207, '>', 252, 180, 'D', 213, '?', 'i', 's', 'o', '8', '8', '5', '9', '1', '0', 0, 0, '(', 160, 16, '$', 17, 'H', '(', 153, 4, 211, ')', '5', 'A', 'T', 213, 'V', 'r', 181, 242, 'U', 'P', 176, 20, '4', 'Q', 'H', ')', 157, 20, 211, '-', '6', 'E', 'd', 21, 'W', 's', 'E', 12, 150, 'P', 0, 5, '#', 204, '0', 196, 20, 'c', 140, 'J', 12, '%', 'c', 209, '2', 20, '5', 227, 204, '3', 208, 244, '4', 212, '4', 212, 'T', 'c', 'M', 'W', 216, 156, 165, 205, '6', 220, 't', 227, 205, '7', 1, 133, '#', 206, '8', 228, 148, 'c', 206, 'J', 13, 165, 's', 209, ':', 21, 181, 227, 206, ';', 240, 248, 'D', 212, '<', 244, 212, 'c', 143, 'W', 248, 160, 165, 207, '>', 252, 244, 227, 143, 'L', 'i', 's', 'o', '8', '8', '5', '9', '1', '1', 0, 't', 'i', 's', '6', '2', '0', 0, 0, '(', 160, 'x', 250, ')', 168, 161, 138, ':', '*', 169, 165, 154, 'z', '*', 170, 169, 170, 186, '*', 171, 173, 186, 250, '*', 172, 177, 202, ':', '+', 173, 181, 218, 'z', '+', 174, 185, 234, 186, '+', 175, 189, 250, 250, '+', 176, 193, 10, ';', ',', 177, 197, 26, '{', ',', 178, 201, '*', 187, ',', 179, 205, ':', 251, ',', 180, 209, 'J', ';', '-', 181, 213, 'Z', '{', '-', 0, 0, 0, 0, 0, 182, 217, 'j', 187, '-', 183, 221, 'z', 251, '-', 184, 225, 138, ';', '.', 185, 229, 154, '{', '.', 186, 233, 170, 187, '.', 187, 237, 186, 251, '.', 188, 241, 202, ';', '/', 189, 0, 0, 0, 0, 0, 'i', 's', 'o', '8', '8', '5', '9', '1', '3', 0, 0, '(', 160, '\\', ',', 202, '(', 164, '`', 'l', 202, ')', 216, 164, 178, 212, '*', 172, 180, 226, 138, '1', 176, 196, '"', 203, ',', 22, 215, 'b', 203, '-', 248, 228, 194, 212, '.', 188, 244, 226, 139, '9', 4, 169, 4, 144, 'A', 196, 20, 'c', 145, 'D', 12, '%', 227, 22, 'E', ' ', 193, 132, 'R', 'M', 'U', 237, 212, 211, '4', 'C', 'U', 'c', 205, '5', 'g', 229, 244, 212, 'W', 220, 192, '%', 215, '7', 5, 173, 20, 208, 'A', 228, 148, 's', 209, 'D', 13, 165, 243, 'V', 'E', '!', 197, 148, 146, 'M', 'V', 241, 228, 211, '<', 'D', 213, 'c', 207, '=', 'h', 233, 4, 21, 'X', 252, 196, '5', 23, 197, 'i', 's', 'o', '8', '8', '5', '9', '1', '4', 0, 0, '(', 160, 212, 'k', 239, '(', 10, '-', 't', 239, ')', 3, 167, 'R', '0', 190, 9, 183, 226, 'J', '[', 249, 234, 235, 209, 'G', 251, 242, 'k', 'K', 191, 4, 251, 'k', 240, 191, 10, 31, 140, '0', 192, 192, 4, '#', 204, '0', 196, 20, 'c', 204, '1', 200, '$', 163, 204, '2', 204, '4', 227, 204, '3', 'i', 'E', '#', 205, '4', 212, 'T', 'c', 'M', 192, 216, 'd', 163, 205, '6', 220, 't', 179, 214, '7', 224, 132, '#', 206, '8', 228, 148, 'c', 206, '9', 232, 164, 163, 206, ':', 236, 180, 227, 206, ';', 'j', 197, '#', 207, '<', 244, 212, 'c', 143, 192, 248, 228, 163, 207, '>', 252, 244, 195, 214, '?', 'i', 's', 'o', '8', '8', '5', '9', '1', '5', 0, 'l', 'a', 't', 'i', 'n', '9', 0, 0, ')', '$', 151, 'R', 213, ')', 'V', 165, 162, 202, '*', 172, 180, 226, 202, '+', 176, 196, '"', 203, ',', 'r', 213, 'b', 203, '-', 's', 229, 162, 203, '.', 'G', '!', 213, 214, '/', 192, 4, '#', 204, '0', 196, 20, 'c', 204, '1', 200, '$', 163, 204, '2', 204, '4', 227, 204, '3', 208, 'D', '#', 205, '4', 212, 'T', 'c', 205, '5', 216, 'd', 163, 205, '6', 220, 't', 227, 205, '7', 224, 132, '#', 206, '8', 228, 148, 'c', 206, '9', 232, 164, 163, 206, ':', 236, 180, 227, 206, ';', 240, 196, '#', 207, '<', 244, 212, 'c', 207, '=', 248, 228, 163, 207, '>', 252, 244, 227, 207, '?', 'i', 's', 'o', '8', '8', '5', '9', '1', '6', 0, 0, '(', 160, 16, 'T', 'P', 'N', '$', 'c', '\\', 213, ')', 'V', 165, 146, 215, '*', 'n', 181, 242, 22, '\\', 176, 196, 194, 144, 'N', 'r', ']', 'l', 203, '-', 's', '5', 164, 215, '.', 'G', '!', 213, 'V', '\\', 192, 4, '#', 140, '@', 196, 24, 'd', 204, '1', 200, '$', 163, 204, '2', 204, '4', 227, 204, '3', 16, 237, '$', 205, '4', 212, 20, 'e', 205, 'S', 'e', 'e', 163, 205, '6', 220, 'X', 180, 215, '7', 224, 132, '#', 206, '@', 228, 28, 'd', 206, '9', 232, 164, 163, 206, ':', 236, 180, 227, 206, ';', 17, 241, '$', 207, '<', 244, 24, 'e', 15, 'T', 'f', 229, 163, 207, '>', 252, '\\', 196, 215, '?', 'c', 'p', '1', '2', '5', '0', 0, 'w', 'i', 'n', 'd', 'o', 'w', 's', '1', '2', '5', '0', 0, 0, ' ', '$', 3, 'P', '1', 0, 24, 's', 156, 177, 198, 0, 't', '\\', 149, 199, 'O', 'e', '%', 151, '[', 0, 'L', 'L', 177, 197, 23, 'o', 252, '0', 196, 0, 156, 'l', 213, 199, 'P', 'i', '5', 215, '[', 160, 248, 245, 'W', 'N', 164, 16, 'd', 202, ')', 168, 164, '2', 213, '*', 172, 180, 226, 10, '\\', 176, 196, 18, 152, 'N', 180, 212, 'b', 203, '-', 184, 20, 'D', 213, '.', '7', 13, 134, 'S', '\\', 'I', 5, '#', 140, '@', 196, 204, 'd', 208, '1', 12, '%', 'c', 209, '2', 24, '5', 227, 140, 'C', 16, 237, 244, 211, '4', 212, 20, 'e', 205, '5', 'M', 141, 165, 'M', 'Y', 220, 't', 's', 213, '7', 'J', 133, '#', 206, '@', 228, 208, 't', 208, '9', 13, 165, 's', 209, ':', 25, 181, 227, 206, 'C', 17, 241, 4, 212, '<', 244, 24, 'e', 207, '=', 'N', 145, 165, 143, 'Y', 252, 244, 131, 21, '`', 'c', 'p', '1', '2', '5', '1', 0, 'w', 'i', 'n', 'd', 'o', 'w', 's', '1', '2', '5', '1', 0, 0, ' ', 210, 'M', 'W', 'q', 136, 24, 's', 156, 177, 198, '$', 'w', 156, 157, 199, 218, 'q', 183, 157, 'w', ' ', 'N', 'L', 177, 197, 23, 'o', 252, '0', 196, 0, 156, '|', 226, 199, '(', 170, 152, '"', 139, 160, 't', 183, '"', 'v', 164, 180, 'h', 202, ')', 209, 165, 'B', 221, '*', 172, 180, 226, 202, 'u', 176, 196, 'b', 29, 137, '.', 214, 'b', 203, '-', 31, 154, ',', 226, '.', '&', 'V', '7', 'b', 137, 223, 129, 23, 158, 'x', 227, 145, 'W', 158, 'y', 231, 161, 151, 158, 'z', 235, 177, 215, 158, '{', 239, 193, 23, 159, '|', 243, 209, 'W', 159, '}', 247, 225, 151, 159, '~', 251, 241, 215, 159, 127, 255, 1, 24, 160, 128, 3, 18, 'X', 160, 129, 7, '"', 152, 160, 130, 11, '2', 216, 160, 131, 15, 'B', 24, 161, 132, 19, 'R', 'X', 161, 133, 23, 'b', 152, 161, 134, 27, 'r', 216, 161, 135, 'c', 'p', '1', '2', '5', '2', 0, 'w', 'i', 'n', 'd', 'o', 'w', 's', '1', '2', '5', '2', 0, 0, ' ', '$', 3, 'P', '1', ']', 24, 's', 156, 177, 198, '}', 'u', '\\', 149, 199, 'G', 1, ' ', 23, 0, 0, 'L', 'L', 177, 197, 23, 'o', 252, '0', 196, 130, 157, 'l', 213, 199, 'H', 1, '0', 'W', '[', 160, 132, '"', 202, '(', 164, 148, 'b', 202, ')', 168, 164, 162, 202, '*', 172, 180, 226, 202, '+', 176, 196, '"', 203, ',', 180, 212, 'b', 203, '-', 184, 228, 162, 203, '.', 188, 244, 226, 203, '/', 192, 4, '#', 204, '0', 196, 20, 'c', 204, '1', 200, '$', 163, 204, '2', 204, '4', 227, 204, '3', 208, 'D', '#', 205, '4', 212, 'T', 'c', 205, '5', 216, 'd', 163, 205, '6', 220, 't', 227, 205, '7', 224, 132, '#', 206, '8', 228, 148, 'c', 206, '9', 232, 164, 163, 206, ':', 236, 180, 227, 206, ';', 240, 196, '#', 207, '<', 244, 212, 'c', 207, '=', 248, 228, 163, 207, '>', 252, 244, 227, 207, '?', 'c', 'p', '1', '2', '5', '3', 0, 'w', 'i', 'n', 'd', 'o', 'w', 's', '1', '2', '5', '3', 0, 0, ' ', '$', 3, 'P', '1', ']', 24, 's', 156, 177, 198, 0, 't', 12, 128, 199, 0, 0, 0, 0, 0, 0, 'L', 'L', 177, 197, 23, 'o', 252, '0', 196, 0, 156, 12, 192, 199, 0, 0, 0, 0, 0, 160, ',', 198, 216, '(', 164, 148, 'b', 202, ')', 168, 164, 2, 192, '*', 172, 180, 226, 'J', 196, 176, 196, '"', 203, ',', 138, 213, 'b', 203, '-', 141, '9', 246, 216, '.', 144, 245, 18, 153, 'd', 147, 'Q', 'V', 153, 'e', 151, 'a', 150, 153, 'f', 155, 'q', 214, 153, 'g', 159, 129, 22, 154, 'h', 163, 145, 6, '@', 'i', 166, 157, 134, 'Z', 'j', 170, 173, 198, 'Z', 'k', 174, 189, 6, '[', 'l', 178, 205, 'F', '[', 'm', 182, 221, 134, '[', 'n', 186, 237, 198, '[', 'o', 190, 253, 6, '\\', 'p', 194, 13, 'G', '\\', 'q', 198, 29, 135, '\\', 'r', 202, '-', 199, '\\', 's', 206, '=', 7, 29, 0, 'c', 'p', '1', '2', '5', '4', 0, 'w', 'i', 'n', 'd', 'o', 'w', 's', '1', '2', '5', '4', 0, 0, ' ', '$', 3, 'P', '1', ']', 24, 's', 156, 177, 198, '}', 'u', '\\', 149, 199, 'G', 1, 0, 0, 0, 0, 'L', 'L', 177, 197, 23, 'o', 252, '0', 196, 130, 157, 'l', 213, 199, 'H', 1, 0, '@', '[', 160, 132, '"', 202, '(', 164, 148, 'b', 202, ')', 168, 164, 162, 202, '*', 172, 180, 226, 202, '+', 176, 196, '"', 203, ',', 180, 212, 'b', 203, '-', 184, 228, 162, 203, '.', 188, 244, 226, 203, '/', 192, 4, '#', 204, '0', 196, 20, 'c', 204, '1', 200, '$', 163, 204, '2', 204, '4', 227, 204, '3', 28, 'E', '#', 205, '4', 212, 'T', 'c', 205, '5', 216, 'd', 163, 205, '6', 220, 176, '4', 213, '7', 224, 132, '#', 206, '8', 228, 148, 'c', 206, '9', 232, 164, 163, 206, ':', 236, 180, 227, 206, ';', 29, 197, '#', 207, '<', 244, 212, 'c', 207, '=', 248, 228, 163, 207, '>', 252, 180, 'D', 213, '?', 'c', 'p', '1', '2', '5', '5', 0, 'w', 'i', 'n', 'd', 'o', 'w', 's', '1', '2', '5', '5', 0, 0, ' ', '$', 3, 'P', '1', ']', 24, 's', 156, 177, 198, '}', 'u', 12, 128, 199, 0, 0, 0, 0, 0, 0, 'L', 'L', 177, 197, 23, 'o', 252, '0', 196, 130, 157, 12, 192, 199, 0, 0, 0, 0, 0, 160, 132, '"', 202, '(', '"', 151, 'b', 202, ')', 168, 164, 'r', 205, '*', 172, 180, 226, 202, '+', 176, 196, '"', 203, ',', 180, 212, 'b', 203, '-', 184, 228, 'r', 207, '.', 188, 244, 226, 203, '/', '/', 194, 24, 163, 140, '3', 210, 'X', 163, 141, '7', 226, 8, '@', 142, ':', 238, 200, 'c', 143, '>', 254, 8, 'd', 144, ']', 'z', 249, '%', 152, 'a', 2, 0, 0, 0, 0, 0, 0, 0, 0, 'B', 14, 'I', 'd', 145, 'F', 30, 137, 'd', 146, 'J', '.', 201, 'd', 147, 'N', '>', 9, 'e', 148, 'R', 'N', 'I', 'e', 149, 'V', '^', 137, 'e', 150, 'Z', 'n', 201, '%', 0, 0, '4', 236, '0', 0, 'c', 'p', '1', '2', '5', '6', 0, 'w', 'i', 'n', 'd', 'o', 'w', 's', '1', '2', '5', '6', 0, 0, ' ', '$', 'O', 'Z', '1', ']', 24, 's', 156, 177, 198, '}', 'u', ',', 169, 199, 'G', 'Q', 'z', 'i', 165, 153, 'N', 'L', 177, 197, 23, 'o', 252, '0', 196, 152, 158, 'l', 233, 199, 'H', '-', 204, 176, 166, 160, 136, ')', 202, '(', 164, 148, 'b', 202, ')', 168, 164, 178, 233, '*', 172, 180, 226, 202, '+', 176, 196, '"', 203, ',', 180, 212, 'b', 203, '-', 184, 228, '2', 230, '.', 188, 244, 226, 11, 153, 156, 150, 'i', 230, 153, 'h', 166, 169, 230, 154, 'l', 182, 233, 230, 155, 'p', 198, ')', 231, 156, 't', 214, 'i', 231, 157, 'x', 230, 169, 231, '5', '{', 242, 217, 167, 159, 127, 2, 26, 168, 160, 224, 12, '*', 14, 161, 133, 26, 'z', 232, '9', 232, 164, 163, 206, ':', 136, '&', 234, 206, ';', 138, '.', 202, 'h', 163, 244, '8', 250, 232, '=', 144, 230, 19, 233, '>', 252, '4', 236, 'p', 167, 'c', 'p', '1', '2', '5', '7', 0, 'w', 'i', 'n', 'd', 'o', 'w', 's', '1', '2', '5', '7', 0, 0, ' ', '$', 3, 'P', '1', 0, 24, 's', 156, 177, 198, 0, 't', 12, 128, 199, 0, 160, 226, 23, '.', 0, 'L', 'L', 177, 197, 23, 'o', 252, '0', 196, 0, 156, 12, 192, 199, 0, 188, 18, 24, 0, 160, 0, ' ', 202, '(', 164, 0, '`', 202, ')', 216, 164, 178, 212, '*', 172, 180, 226, 138, '1', 176, 196, '"', 203, ',', 180, 212, 'b', 203, '-', 248, 228, 194, 212, '.', 188, 244, 226, 139, '9', 4, 169, 4, 144, 'A', 196, 20, 'c', 145, 'D', 12, '%', 227, 22, 'E', ' ', 193, 132, 'R', 'M', 'U', 237, 212, 211, '4', 'C', 'U', 'c', 205, '5', 'g', 229, 244, 212, 'W', 220, 192, '%', 215, '7', 5, 173, 20, 208, 'A', 228, 148, 's', 209, 'D', 13, 165, 243, 'V', 'E', '!', 197, 148, 146, 'M', 'V', 241, 228, 211, '<', 'D', 213, 'c', 207, '=', 'h', 233, 4, 21, 'X', 252, 196, '5', 23, '`', 'c', 'p', '1', '2', '5', '8', 0, 'w', 'i', 'n', 'd', 'o', 'w', 's', '1', '2', '5', '8', 0, 0, ' ', '$', 3, 'P', '1', ']', 24, 's', 156, 177, 198, '}', 'u', 12, 128, 199, 'G', 1, 0, 0, 0, 0, 'L', 'L', 177, 197, 23, 'o', 252, '0', 196, 130, 157, 12, 192, 199, 'H', 1, 0, '@', '[', 160, 132, '"', 202, '(', 164, 148, 'b', 202, ')', 168, 164, 162, 202, '*', 172, 180, 226, 202, '+', 176, 196, '"', 203, ',', 180, 212, 'b', 203, '-', 184, 228, 162, 203, '.', 188, 244, 226, 203, '/', 192, 4, '#', 140, '@', 196, 20, 'c', 204, '1', 200, '$', 163, 204, '2', 132, '5', 227, 204, '3', 16, 'E', 's', 216, '4', 212, 212, 'e', 205, '5', 216, 'd', 163, 205, '6', 220, 220, 'e', 216, '7', 224, 132, '#', 206, '@', 228, 148, 'c', 206, '9', 232, 164, 163, 206, ':', 133, 181, 227, 206, ';', 17, 197, 131, 216, '<', 244, 216, 'e', 207, '=', 248, 228, 163, 207, '>', 252, 224, '5', 242, '?', 'k', 'o', 'i', '8', 'r', 0, 0, ' ', '3', 211, '\\', 179, 205, '7', 227, 156, 179, 206, ';', 243, 220, 243, 214, '\\', 'w', 237, 245, 215, '`', 135, '-', 'v', 204, 'c', 163, 156, '2', 203, '.', 191, 12, 138, 204, 176, 200, 'r', 203, '=', '>', 255, 12, 244, 135, 'A', 11, '=', '4', 209, 'E', 27, '}', '4', 210, 'I', '+', 189, '4', 211, 'M', ';', 253, 't', 't', 'P', 'G', '-', 245, 212, 'T', 'W', 'm', 245, 213, 'X', 'g', 173, 'u', '*', 29, 254, 7, '`', 133, 3, 18, '8', 161, 128, 20, 30, 136, '`', 130, 10, '.', 200, '`', 131, 14, 'z', 248, ' ', 132, 17, 'J', 'X', '`', 128, 27, 'j', 'h', 224, 133, 28, 'b', 'h', 'a', 134, 253, '}', 7, '^', '}', 227, 145, '7', 159, 'x', 244, 157, 135, '^', 'z', 234, 173, 199, '^', '{', 238, 249, 247, 30, '|', 241, 201, 'W', '^', 'x', 251, 233, 'g', 222, '}', 252, 225, 'g', '_', '~', 'k', 'o', 'i', '8', 'u', 0, 0, ' ', '3', 211, '\\', 179, 205, '7', 227, 156, 179, 206, ';', 243, 220, 243, 214, '\\', 'w', 237, 245, 215, '`', 135, '-', 'v', 204, 'c', 163, 156, '2', 203, '.', 191, 12, 138, 204, 176, 200, 'r', 203, '=', '>', 255, 12, 244, 135, '"', 10, 'M', 'b', 137, 'E', 27, '}', '4', 210, 'I', 187, 184, '4', 211, 'M', ';', 253, 't', 't', 212, 'E', 'm', 221, 'u', 'T', 'W', 'm', 245, 213, 'X', 183, 168, 'u', '*', 29, 254, 7, '`', 133, 3, 18, '8', 161, 128, 20, 30, 136, '`', 130, 10, '.', 200, '`', 131, 14, 'z', 248, ' ', 132, 17, 'J', 'X', '`', 128, 27, 'j', 'h', 224, 133, 28, 'b', 'h', 'a', 134, 253, '}', 7, '^', '}', 227, 145, '7', 159, 'x', 244, 157, 135, '^', 'z', 234, 173, 199, '^', '{', 238, 249, 247, 30, '|', 241, 201, 'W', '^', 'x', 251, 233, 'g', 222, '}', 252, 225, 'g', '_', '~', 'c', 'p', '4', '3', '7', 0, 0, ' ', 199, 240, 147, 142, '8', 228, 128, 'S', 206, '9', 234, 172, 131, 206, ';', 238, 176, 'C', 'L', '1', 201, 152, 'c', 12, '=', 246, 200, 179, 'O', '>', 255, 'X', 195, 141, '(', 163, 148, 18, '2', ']', 225, 180, '3', 143, '>', 241, 'D', 163, 138, '.', 191, 192, 204, 'J', '/', 188, 132, 178, 202, '.', '`', 135, '-', '6', 205, ':', '?', 13, '5', 209, 'C', 'G', 253, 's', 209, 'K', '+', 157, 180, 205, '7', 243, 188, 's', 206, '3', 247, 204, 't', 211, 'H', 11, '}', '5', 213, 'N', 251, 172, 'u', 213, 'V', 'K', '=', 245, 209, 'F', 3, 29, 't', 214, 'X', 227, '\\', 's', 215, '\\', '{', 253, 245, 214, 179, '}', 'c', 153, 'p', 165, 21, 'W', 139, 'q', 168, 'm', 182, 154, 'm', '*', '#', 'w', 219, 202, '-', 199, 242, 178, 203, '1', 203, '|', 15, 203, 176, 160, '|', 'K', 202, ' ', 203, '2', '6', '(', 'c', 'p', '8', '5', '0', 0, 0, ' ', 199, 240, 147, 142, '8', 228, 128, 'S', 206, '9', 234, 172, 131, 206, ';', 238, 176, 'C', 'L', '1', 201, 152, 'c', 12, '=', 246, 200, 179, 'O', '>', 255, 'X', 195, 13, '>', 163, '`', 's', 13, ']', 225, 180, '3', 143, '>', 241, 'D', 163, 138, '.', 191, 184, 194, 'J', '/', 188, 132, 178, 202, '.', '`', 135, '-', '6', 205, ':', 7, '#', 12, '0', 169, 'D', 253, 's', 209, 'K', 139, 'R', 138, 205, '7', 243, 188, 's', 206, '3', 247, '<', 206, '0', 'H', 11, '}', '5', 213, 'N', 251, 172, '5', ')', 240, '@', 163, 204, '2', 200, 180, 212, 140, '3', 207, 224, '\\', 's', 215, '\\', 155, 194, 204, 214, 211, '|', 'C', 141, '4', 245, 'T', 'S', 139, '?', 222, 'h', 179, 'M', '6', 253, 't', 243, 10, '-', 173, 196, '"', 177, '/', 182, 156, 'r', 15, '.', 176, 160, 'r', 'K', '.', 179, 200, '2', '6', '(', 'c', 'p', '8', '6', '6', 0, 0, ' ', 223, 129, 23, 158, 'x', 227, 145, 'W', 158, 'y', 231, 161, 151, 158, 'z', 235, 177, 215, 158, '{', 239, 193, 23, 159, '|', 243, 209, 'W', 159, '}', 247, 225, 151, 159, '~', 251, 241, 215, 159, 127, 255, 1, 24, 160, 128, 3, 18, 'X', 160, 129, 7, '"', 152, 160, 130, 11, '2', 216, 160, 131, '`', 135, '-', '6', 205, ':', '?', 13, '5', 209, 'C', 'G', 253, 's', 209, 'K', '+', 157, 180, 205, '7', 243, 188, 's', 206, '3', 247, 204, 't', 211, 'H', 11, '}', '5', 213, 'N', 251, 172, 'u', 213, 'V', 'K', '=', 245, 209, 'F', 3, 29, 't', 214, 'X', 227, '\\', 's', 215, '\\', '{', 253, 245, 214, 15, 'B', 24, 161, 132, 19, 'R', 'X', 161, 133, 23, 'b', 152, 161, 134, 27, 'r', 216, 161, 135, 209, '}', 'H', 157, 136, 215, 149, 216, 221, 138, 176, 160, '|', 'K', 202, '&', 147, '2', '6', '(', 'i', 'b', 'm', '1', '0', '4', '7', 0, 'c', 'p', '1', '0', '4', '7', 0, 0, 1, 156, '$', '`', 200, 31, 151, '4', 226, 200, 2, 12, '4', 224, 192, 3, 16, 'D', ' ', 193, 4, 157, 20, 130, 192, '!', 24, 'd', ' ', 201, '#', 28, 't', 224, 193, 7, 128, 4, '"', 200, ' ', 132, '(', 'p', 193, 6, 136, '$', 162, 200, '"', 140, 20, '`', 192, 1, 144, 'D', 'b', 193, '$', 148, 'T', 'b', 9, 1, 152, 'd', 162, 201, '&', 20, 'T', 224, 137, 6, ' ', 128, '"', 14, '9', 224, 132, '3', 'N', '9', 231, 196, '#', 138, 11, '<', 160, 176, 2, 31, '&', 164, 163, 206, ':', 232, 180, 227, 206, ';', 236, '|', 19, 2, 9, '*', 164, 176, 131, 23, '-', 188, ' ', 12, '1', 192, 4, '3', 'L', '1', 199, 'D', 'c', 10, 11, '%', '|', 225, 195, 15, 248, '$', 163, 204, '2', 200, '4', 227, 204, '3', 204, 128, 161, 195, 8, '@', 156, 208, 131, 8, 216, 132, '!', 198, 24, 'd', 148, 'a', 198, 25, 'h', 164, 177, 202, '.', 240, 244, 227, 'O', ',', 176, 168, 177, 6, 27, 'm', 184, 241, 6, 28, 'q', 200, 161, 138, '.', 230, 224, 'b', 12, ')', 181, 248, '1', 7, 29, 'u', 216, 'q', 7, 30, 'y', 232, 17, 202, '/', 208, 'l', 225, 141, '+', 172, 140, 'R', 202, '-', 169, 156, 'b', 11, '/', 189, 248, 210, 13, '*', 175, 't', 'A', 203, '5', '{', 4, '!', 196, 16, 'D', 20, 'a', 196, 17, 'H', '$', 209, 10, '=', 246, 200, '3', 'O', '=', '}', '(', 177, 4, 19, 'M', '8', 241, 4, 20, 'Q', 'H', 145, 203, '>', 252, 228, 163, 207, '?', '\\', 220, '3', 5, 21, 'U', 'X', 'q', 5, 22, 'Y', 'h', '!', 11, '5', 214, 'H', '3', 'M', '5', '0', 196, ' ', 195, 12, '4', 212, '`', 195, 13, '8', 228, '0', 203, '6', 220, 'd', 163, 205, '\''} + +// C documentation +// +// /* Table of characters that appear in legacy 8-bit codepages, +// * limited to 1024 slots (10 bit indices). The first 256 entries +// * are elided since those characters are obviously all included. */ +var _legacy_chars = [612]uint16{ + 0: uint16(256), + 1: uint16(257), + 2: uint16(258), + 3: uint16(259), + 4: uint16(260), + 5: uint16(261), + 6: uint16(262), + 7: uint16(263), + 8: uint16(264), + 9: uint16(265), + 10: uint16(266), + 11: uint16(267), + 12: uint16(268), + 13: uint16(269), + 14: uint16(270), + 15: uint16(271), + 16: uint16(272), + 17: uint16(273), + 18: uint16(274), + 19: uint16(275), + 20: uint16(278), + 21: uint16(279), + 22: uint16(280), + 23: uint16(281), + 24: uint16(282), + 25: uint16(283), + 26: uint16(284), + 27: uint16(285), + 28: uint16(286), + 29: uint16(287), + 30: uint16(288), + 31: uint16(289), + 32: uint16(290), + 33: uint16(291), + 34: uint16(292), + 35: uint16(293), + 36: uint16(294), + 37: uint16(295), + 38: uint16(296), + 39: uint16(297), + 40: uint16(298), + 41: uint16(299), + 42: uint16(302), + 43: uint16(303), + 44: uint16(304), + 45: uint16(305), + 46: uint16(308), + 47: uint16(309), + 48: uint16(310), + 49: uint16(311), + 50: uint16(312), + 51: uint16(313), + 52: uint16(314), + 53: uint16(315), + 54: uint16(316), + 55: uint16(317), + 56: uint16(318), + 57: uint16(321), + 58: uint16(322), + 59: uint16(323), + 60: uint16(324), + 61: uint16(325), + 62: uint16(326), + 63: uint16(327), + 64: uint16(328), + 65: uint16(330), + 66: uint16(331), + 67: uint16(332), + 68: uint16(333), + 69: uint16(336), + 70: uint16(337), + 71: uint16(338), + 72: uint16(339), + 73: uint16(340), + 74: uint16(341), + 75: uint16(342), + 76: uint16(343), + 77: uint16(344), + 78: uint16(345), + 79: uint16(346), + 80: uint16(347), + 81: uint16(348), + 82: uint16(349), + 83: uint16(350), + 84: uint16(351), + 85: uint16(352), + 86: uint16(353), + 87: uint16(354), + 88: uint16(355), + 89: uint16(356), + 90: uint16(357), + 91: uint16(358), + 92: uint16(359), + 93: uint16(360), + 94: uint16(361), + 95: uint16(362), + 96: uint16(363), + 97: uint16(364), + 98: uint16(365), + 99: uint16(366), + 100: uint16(367), + 101: uint16(368), + 102: uint16(369), + 103: uint16(370), + 104: uint16(371), + 105: uint16(372), + 106: uint16(373), + 107: uint16(374), + 108: uint16(375), + 109: uint16(376), + 110: uint16(377), + 111: uint16(378), + 112: uint16(379), + 113: uint16(380), + 114: uint16(381), + 115: uint16(382), + 116: uint16(402), + 117: uint16(416), + 118: uint16(417), + 119: uint16(431), + 120: uint16(432), + 121: uint16(536), + 122: uint16(537), + 123: uint16(538), + 124: uint16(539), + 125: uint16(710), + 126: uint16(711), + 127: uint16(728), + 128: uint16(729), + 129: uint16(731), + 130: uint16(732), + 131: uint16(733), + 132: uint16(768), + 133: uint16(769), + 134: uint16(771), + 135: uint16(777), + 136: uint16(803), + 137: uint16(890), + 138: uint16(900), + 139: uint16(901), + 140: uint16(902), + 141: uint16(904), + 142: uint16(905), + 143: uint16(906), + 144: uint16(908), + 145: uint16(910), + 146: uint16(911), + 147: uint16(912), + 148: uint16(913), + 149: uint16(914), + 150: uint16(915), + 151: uint16(916), + 152: uint16(917), + 153: uint16(918), + 154: uint16(919), + 155: uint16(920), + 156: uint16(921), + 157: uint16(922), + 158: uint16(923), + 159: uint16(924), + 160: uint16(925), + 161: uint16(926), + 162: uint16(927), + 163: uint16(928), + 164: uint16(929), + 165: uint16(931), + 166: uint16(932), + 167: uint16(933), + 168: uint16(934), + 169: uint16(935), + 170: uint16(936), + 171: uint16(937), + 172: uint16(938), + 173: uint16(939), + 174: uint16(940), + 175: uint16(941), + 176: uint16(942), + 177: uint16(943), + 178: uint16(944), + 179: uint16(945), + 180: uint16(946), + 181: uint16(947), + 182: uint16(948), + 183: uint16(949), + 184: uint16(950), + 185: uint16(951), + 186: uint16(952), + 187: uint16(953), + 188: uint16(954), + 189: uint16(955), + 190: uint16(956), + 191: uint16(957), + 192: uint16(958), + 193: uint16(959), + 194: uint16(960), + 195: uint16(961), + 196: uint16(962), + 197: uint16(963), + 198: uint16(964), + 199: uint16(965), + 200: uint16(966), + 201: uint16(967), + 202: uint16(968), + 203: uint16(969), + 204: uint16(970), + 205: uint16(971), + 206: uint16(972), + 207: uint16(973), + 208: uint16(974), + 209: uint16(1025), + 210: uint16(1026), + 211: uint16(1027), + 212: uint16(1028), + 213: uint16(1029), + 214: uint16(1030), + 215: uint16(1031), + 216: uint16(1032), + 217: uint16(1033), + 218: uint16(1034), + 219: uint16(1035), + 220: uint16(1036), + 221: uint16(1038), + 222: uint16(1039), + 223: uint16(1040), + 224: uint16(1041), + 225: uint16(1042), + 226: uint16(1043), + 227: uint16(1044), + 228: uint16(1045), + 229: uint16(1046), + 230: uint16(1047), + 231: uint16(1048), + 232: uint16(1049), + 233: uint16(1050), + 234: uint16(1051), + 235: uint16(1052), + 236: uint16(1053), + 237: uint16(1054), + 238: uint16(1055), + 239: uint16(1056), + 240: uint16(1057), + 241: uint16(1058), + 242: uint16(1059), + 243: uint16(1060), + 244: uint16(1061), + 245: uint16(1062), + 246: uint16(1063), + 247: uint16(1064), + 248: uint16(1065), + 249: uint16(1066), + 250: uint16(1067), + 251: uint16(1068), + 252: uint16(1069), + 253: uint16(1070), + 254: uint16(1071), + 255: uint16(1072), + 256: uint16(1073), + 257: uint16(1074), + 258: uint16(1075), + 259: uint16(1076), + 260: uint16(1077), + 261: uint16(1078), + 262: uint16(1079), + 263: uint16(1080), + 264: uint16(1081), + 265: uint16(1082), + 266: uint16(1083), + 267: uint16(1084), + 268: uint16(1085), + 269: uint16(1086), + 270: uint16(1087), + 271: uint16(1088), + 272: uint16(1089), + 273: uint16(1090), + 274: uint16(1091), + 275: uint16(1092), + 276: uint16(1093), + 277: uint16(1094), + 278: uint16(1095), + 279: uint16(1096), + 280: uint16(1097), + 281: uint16(1098), + 282: uint16(1099), + 283: uint16(1100), + 284: uint16(1101), + 285: uint16(1102), + 286: uint16(1103), + 287: uint16(1105), + 288: uint16(1106), + 289: uint16(1107), + 290: uint16(1108), + 291: uint16(1109), + 292: uint16(1110), + 293: uint16(1111), + 294: uint16(1112), + 295: uint16(1113), + 296: uint16(1114), + 297: uint16(1115), + 298: uint16(1116), + 299: uint16(1118), + 300: uint16(1119), + 301: uint16(1168), + 302: uint16(1169), + 303: uint16(1456), + 304: uint16(1457), + 305: uint16(1458), + 306: uint16(1459), + 307: uint16(1460), + 308: uint16(1461), + 309: uint16(1462), + 310: uint16(1463), + 311: uint16(1464), + 312: uint16(1465), + 313: uint16(1467), + 314: uint16(1468), + 315: uint16(1469), + 316: uint16(1470), + 317: uint16(1471), + 318: uint16(1472), + 319: uint16(1473), + 320: uint16(1474), + 321: uint16(1475), + 322: uint16(1488), + 323: uint16(1489), + 324: uint16(1490), + 325: uint16(1491), + 326: uint16(1492), + 327: uint16(1493), + 328: uint16(1494), + 329: uint16(1495), + 330: uint16(1496), + 331: uint16(1497), + 332: uint16(1498), + 333: uint16(1499), + 334: uint16(1500), + 335: uint16(1501), + 336: uint16(1502), + 337: uint16(1503), + 338: uint16(1504), + 339: uint16(1505), + 340: uint16(1506), + 341: uint16(1507), + 342: uint16(1508), + 343: uint16(1509), + 344: uint16(1510), + 345: uint16(1511), + 346: uint16(1512), + 347: uint16(1513), + 348: uint16(1514), + 349: uint16(1520), + 350: uint16(1521), + 351: uint16(1522), + 352: uint16(1523), + 353: uint16(1524), + 354: uint16(1548), + 355: uint16(1563), + 356: uint16(1567), + 357: uint16(1569), + 358: uint16(1570), + 359: uint16(1571), + 360: uint16(1572), + 361: uint16(1573), + 362: uint16(1574), + 363: uint16(1575), + 364: uint16(1576), + 365: uint16(1577), + 366: uint16(1578), + 367: uint16(1579), + 368: uint16(1580), + 369: uint16(1581), + 370: uint16(1582), + 371: uint16(1583), + 372: uint16(1584), + 373: uint16(1585), + 374: uint16(1586), + 375: uint16(1587), + 376: uint16(1588), + 377: uint16(1589), + 378: uint16(1590), + 379: uint16(1591), + 380: uint16(1592), + 381: uint16(1593), + 382: uint16(1594), + 383: uint16(1600), + 384: uint16(1601), + 385: uint16(1602), + 386: uint16(1603), + 387: uint16(1604), + 388: uint16(1605), + 389: uint16(1606), + 390: uint16(1607), + 391: uint16(1608), + 392: uint16(1609), + 393: uint16(1610), + 394: uint16(1611), + 395: uint16(1612), + 396: uint16(1613), + 397: uint16(1614), + 398: uint16(1615), + 399: uint16(1616), + 400: uint16(1617), + 401: uint16(1618), + 402: uint16(1657), + 403: uint16(1662), + 404: uint16(1670), + 405: uint16(1672), + 406: uint16(1681), + 407: uint16(1688), + 408: uint16(1705), + 409: uint16(1711), + 410: uint16(1722), + 411: uint16(1726), + 412: uint16(1729), + 413: uint16(1746), + 414: uint16(3585), + 415: uint16(3586), + 416: uint16(3587), + 417: uint16(3588), + 418: uint16(3589), + 419: uint16(3590), + 420: uint16(3591), + 421: uint16(3592), + 422: uint16(3593), + 423: uint16(3594), + 424: uint16(3595), + 425: uint16(3596), + 426: uint16(3597), + 427: uint16(3598), + 428: uint16(3599), + 429: uint16(3600), + 430: uint16(3601), + 431: uint16(3602), + 432: uint16(3603), + 433: uint16(3604), + 434: uint16(3605), + 435: uint16(3606), + 436: uint16(3607), + 437: uint16(3608), + 438: uint16(3609), + 439: uint16(3610), + 440: uint16(3611), + 441: uint16(3612), + 442: uint16(3613), + 443: uint16(3614), + 444: uint16(3615), + 445: uint16(3616), + 446: uint16(3617), + 447: uint16(3618), + 448: uint16(3619), + 449: uint16(3620), + 450: uint16(3621), + 451: uint16(3622), + 452: uint16(3623), + 453: uint16(3624), + 454: uint16(3625), + 455: uint16(3626), + 456: uint16(3627), + 457: uint16(3628), + 458: uint16(3629), + 459: uint16(3630), + 460: uint16(3631), + 461: uint16(3632), + 462: uint16(3633), + 463: uint16(3634), + 464: uint16(3635), + 465: uint16(3636), + 466: uint16(3637), + 467: uint16(3638), + 468: uint16(3639), + 469: uint16(3640), + 470: uint16(3641), + 471: uint16(3642), + 472: uint16(3647), + 473: uint16(3648), + 474: uint16(3649), + 475: uint16(3650), + 476: uint16(3651), + 477: uint16(3652), + 478: uint16(3653), + 479: uint16(3654), + 480: uint16(3655), + 481: uint16(3656), + 482: uint16(3657), + 483: uint16(3658), + 484: uint16(3659), + 485: uint16(3660), + 486: uint16(3661), + 487: uint16(3662), + 488: uint16(3663), + 489: uint16(3664), + 490: uint16(3665), + 491: uint16(3666), + 492: uint16(3667), + 493: uint16(3668), + 494: uint16(3669), + 495: uint16(3670), + 496: uint16(3671), + 497: uint16(3672), + 498: uint16(3673), + 499: uint16(3674), + 500: uint16(3675), + 501: uint16(7682), + 502: uint16(7683), + 503: uint16(7690), + 504: uint16(7691), + 505: uint16(7710), + 506: uint16(7711), + 507: uint16(7744), + 508: uint16(7745), + 509: uint16(7766), + 510: uint16(7767), + 511: uint16(7776), + 512: uint16(7777), + 513: uint16(7786), + 514: uint16(7787), + 515: uint16(7808), + 516: uint16(7809), + 517: uint16(7810), + 518: uint16(7811), + 519: uint16(7812), + 520: uint16(7813), + 521: uint16(7922), + 522: uint16(7923), + 523: uint16(8204), + 524: uint16(8205), + 525: uint16(8206), + 526: uint16(8207), + 527: uint16(8211), + 528: uint16(8212), + 529: uint16(8213), + 530: uint16(8215), + 531: uint16(8216), + 532: uint16(8217), + 533: uint16(8218), + 534: uint16(8220), + 535: uint16(8221), + 536: uint16(8222), + 537: uint16(8224), + 538: uint16(8225), + 539: uint16(8226), + 540: uint16(8230), + 541: uint16(8240), + 542: uint16(8249), + 543: uint16(8250), + 544: uint16(8319), + 545: uint16(8359), + 546: uint16(8362), + 547: uint16(8363), + 548: uint16(8364), + 549: uint16(8367), + 550: uint16(8470), + 551: uint16(8482), + 552: uint16(8729), + 553: uint16(8730), + 554: uint16(8734), + 555: uint16(8745), + 556: uint16(8776), + 557: uint16(8801), + 558: uint16(8804), + 559: uint16(8805), + 560: uint16(8976), + 561: uint16(8992), + 562: uint16(8993), + 563: uint16(9472), + 564: uint16(9474), + 565: uint16(9484), + 566: uint16(9488), + 567: uint16(9492), + 568: uint16(9496), + 569: uint16(9500), + 570: uint16(9508), + 571: uint16(9516), + 572: uint16(9524), + 573: uint16(9532), + 574: uint16(9552), + 575: uint16(9553), + 576: uint16(9554), + 577: uint16(9555), + 578: uint16(9556), + 579: uint16(9557), + 580: uint16(9558), + 581: uint16(9559), + 582: uint16(9560), + 583: uint16(9561), + 584: uint16(9562), + 585: uint16(9563), + 586: uint16(9564), + 587: uint16(9565), + 588: uint16(9566), + 589: uint16(9567), + 590: uint16(9568), + 591: uint16(9569), + 592: uint16(9570), + 593: uint16(9571), + 594: uint16(9572), + 595: uint16(9573), + 596: uint16(9574), + 597: uint16(9575), + 598: uint16(9576), + 599: uint16(9577), + 600: uint16(9578), + 601: uint16(9579), + 602: uint16(9580), + 603: uint16(9600), + 604: uint16(9604), + 605: uint16(9608), + 606: uint16(9612), + 607: uint16(9616), + 608: uint16(9617), + 609: uint16(9618), + 610: uint16(9619), + 611: uint16(9632), +} + +var _jis0208 = [84][94]uint16{ + 0: { + 0: uint16(12288), + 1: uint16(12289), + 2: uint16(12290), + 3: uint16(65292), + 4: uint16(65294), + 5: uint16(12539), + 6: uint16(65306), + 7: uint16(65307), + 8: uint16(65311), + 9: uint16(65281), + 10: uint16(12443), + 11: uint16(12444), + 12: uint16(180), + 13: uint16(65344), + 14: uint16(168), + 15: uint16(65342), + 16: uint16(65507), + 17: uint16(65343), + 18: uint16(12541), + 19: uint16(12542), + 20: uint16(12445), + 21: uint16(12446), + 22: uint16(12291), + 23: uint16(20189), + 24: uint16(12293), + 25: uint16(12294), + 26: uint16(12295), + 27: uint16(12540), + 28: uint16(8213), + 29: uint16(8208), + 30: uint16(65295), + 31: uint16(92), + 32: uint16(12316), + 33: uint16(8214), + 34: uint16(65372), + 35: uint16(8230), + 36: uint16(8229), + 37: uint16(8216), + 38: uint16(8217), + 39: uint16(8220), + 40: uint16(8221), + 41: uint16(65288), + 42: uint16(65289), + 43: uint16(12308), + 44: uint16(12309), + 45: uint16(65339), + 46: uint16(65341), + 47: uint16(65371), + 48: uint16(65373), + 49: uint16(12296), + 50: uint16(12297), + 51: uint16(12298), + 52: uint16(12299), + 53: uint16(12300), + 54: uint16(12301), + 55: uint16(12302), + 56: uint16(12303), + 57: uint16(12304), + 58: uint16(12305), + 59: uint16(65291), + 60: uint16(8722), + 61: uint16(177), + 62: uint16(215), + 63: uint16(247), + 64: uint16(65309), + 65: uint16(8800), + 66: uint16(65308), + 67: uint16(65310), + 68: uint16(8806), + 69: uint16(8807), + 70: uint16(8734), + 71: uint16(8756), + 72: uint16(9794), + 73: uint16(9792), + 74: uint16(176), + 75: uint16(8242), + 76: uint16(8243), + 77: uint16(8451), + 78: uint16(65509), + 79: uint16(65284), + 80: uint16(162), + 81: uint16(163), + 82: uint16(65285), + 83: uint16(65283), + 84: uint16(65286), + 85: uint16(65290), + 86: uint16(65312), + 87: uint16(167), + 88: uint16(9734), + 89: uint16(9733), + 90: uint16(9675), + 91: uint16(9679), + 92: uint16(9678), + 93: uint16(9671), + }, + 1: { + 0: uint16(9670), + 1: uint16(9633), + 2: uint16(9632), + 3: uint16(9651), + 4: uint16(9650), + 5: uint16(9661), + 6: uint16(9660), + 7: uint16(8251), + 8: uint16(12306), + 9: uint16(8594), + 10: uint16(8592), + 11: uint16(8593), + 12: uint16(8595), + 13: uint16(12307), + 25: uint16(8712), + 26: uint16(8715), + 27: uint16(8838), + 28: uint16(8839), + 29: uint16(8834), + 30: uint16(8835), + 31: uint16(8746), + 32: uint16(8745), + 41: uint16(8743), + 42: uint16(8744), + 43: uint16(172), + 44: uint16(8658), + 45: uint16(8660), + 46: uint16(8704), + 47: uint16(8707), + 59: uint16(8736), + 60: uint16(8869), + 61: uint16(8978), + 62: uint16(8706), + 63: uint16(8711), + 64: uint16(8801), + 65: uint16(8786), + 66: uint16(8810), + 67: uint16(8811), + 68: uint16(8730), + 69: uint16(8765), + 70: uint16(8733), + 71: uint16(8757), + 72: uint16(8747), + 73: uint16(8748), + 81: uint16(8491), + 82: uint16(8240), + 83: uint16(9839), + 84: uint16(9837), + 85: uint16(9834), + 86: uint16(8224), + 87: uint16(8225), + 88: uint16(182), + 93: uint16(9711), + }, + 2: { + 15: uint16(65296), + 16: uint16(65297), + 17: uint16(65298), + 18: uint16(65299), + 19: uint16(65300), + 20: uint16(65301), + 21: uint16(65302), + 22: uint16(65303), + 23: uint16(65304), + 24: uint16(65305), + 32: uint16(65313), + 33: uint16(65314), + 34: uint16(65315), + 35: uint16(65316), + 36: uint16(65317), + 37: uint16(65318), + 38: uint16(65319), + 39: uint16(65320), + 40: uint16(65321), + 41: uint16(65322), + 42: uint16(65323), + 43: uint16(65324), + 44: uint16(65325), + 45: uint16(65326), + 46: uint16(65327), + 47: uint16(65328), + 48: uint16(65329), + 49: uint16(65330), + 50: uint16(65331), + 51: uint16(65332), + 52: uint16(65333), + 53: uint16(65334), + 54: uint16(65335), + 55: uint16(65336), + 56: uint16(65337), + 57: uint16(65338), + 64: uint16(65345), + 65: uint16(65346), + 66: uint16(65347), + 67: uint16(65348), + 68: uint16(65349), + 69: uint16(65350), + 70: uint16(65351), + 71: uint16(65352), + 72: uint16(65353), + 73: uint16(65354), + 74: uint16(65355), + 75: uint16(65356), + 76: uint16(65357), + 77: uint16(65358), + 78: uint16(65359), + 79: uint16(65360), + 80: uint16(65361), + 81: uint16(65362), + 82: uint16(65363), + 83: uint16(65364), + 84: uint16(65365), + 85: uint16(65366), + 86: uint16(65367), + 87: uint16(65368), + 88: uint16(65369), + 89: uint16(65370), + }, + 3: { + 0: uint16(12353), + 1: uint16(12354), + 2: uint16(12355), + 3: uint16(12356), + 4: uint16(12357), + 5: uint16(12358), + 6: uint16(12359), + 7: uint16(12360), + 8: uint16(12361), + 9: uint16(12362), + 10: uint16(12363), + 11: uint16(12364), + 12: uint16(12365), + 13: uint16(12366), + 14: uint16(12367), + 15: uint16(12368), + 16: uint16(12369), + 17: uint16(12370), + 18: uint16(12371), + 19: uint16(12372), + 20: uint16(12373), + 21: uint16(12374), + 22: uint16(12375), + 23: uint16(12376), + 24: uint16(12377), + 25: uint16(12378), + 26: uint16(12379), + 27: uint16(12380), + 28: uint16(12381), + 29: uint16(12382), + 30: uint16(12383), + 31: uint16(12384), + 32: uint16(12385), + 33: uint16(12386), + 34: uint16(12387), + 35: uint16(12388), + 36: uint16(12389), + 37: uint16(12390), + 38: uint16(12391), + 39: uint16(12392), + 40: uint16(12393), + 41: uint16(12394), + 42: uint16(12395), + 43: uint16(12396), + 44: uint16(12397), + 45: uint16(12398), + 46: uint16(12399), + 47: uint16(12400), + 48: uint16(12401), + 49: uint16(12402), + 50: uint16(12403), + 51: uint16(12404), + 52: uint16(12405), + 53: uint16(12406), + 54: uint16(12407), + 55: uint16(12408), + 56: uint16(12409), + 57: uint16(12410), + 58: uint16(12411), + 59: uint16(12412), + 60: uint16(12413), + 61: uint16(12414), + 62: uint16(12415), + 63: uint16(12416), + 64: uint16(12417), + 65: uint16(12418), + 66: uint16(12419), + 67: uint16(12420), + 68: uint16(12421), + 69: uint16(12422), + 70: uint16(12423), + 71: uint16(12424), + 72: uint16(12425), + 73: uint16(12426), + 74: uint16(12427), + 75: uint16(12428), + 76: uint16(12429), + 77: uint16(12430), + 78: uint16(12431), + 79: uint16(12432), + 80: uint16(12433), + 81: uint16(12434), + 82: uint16(12435), + }, + 4: { + 0: uint16(12449), + 1: uint16(12450), + 2: uint16(12451), + 3: uint16(12452), + 4: uint16(12453), + 5: uint16(12454), + 6: uint16(12455), + 7: uint16(12456), + 8: uint16(12457), + 9: uint16(12458), + 10: uint16(12459), + 11: uint16(12460), + 12: uint16(12461), + 13: uint16(12462), + 14: uint16(12463), + 15: uint16(12464), + 16: uint16(12465), + 17: uint16(12466), + 18: uint16(12467), + 19: uint16(12468), + 20: uint16(12469), + 21: uint16(12470), + 22: uint16(12471), + 23: uint16(12472), + 24: uint16(12473), + 25: uint16(12474), + 26: uint16(12475), + 27: uint16(12476), + 28: uint16(12477), + 29: uint16(12478), + 30: uint16(12479), + 31: uint16(12480), + 32: uint16(12481), + 33: uint16(12482), + 34: uint16(12483), + 35: uint16(12484), + 36: uint16(12485), + 37: uint16(12486), + 38: uint16(12487), + 39: uint16(12488), + 40: uint16(12489), + 41: uint16(12490), + 42: uint16(12491), + 43: uint16(12492), + 44: uint16(12493), + 45: uint16(12494), + 46: uint16(12495), + 47: uint16(12496), + 48: uint16(12497), + 49: uint16(12498), + 50: uint16(12499), + 51: uint16(12500), + 52: uint16(12501), + 53: uint16(12502), + 54: uint16(12503), + 55: uint16(12504), + 56: uint16(12505), + 57: uint16(12506), + 58: uint16(12507), + 59: uint16(12508), + 60: uint16(12509), + 61: uint16(12510), + 62: uint16(12511), + 63: uint16(12512), + 64: uint16(12513), + 65: uint16(12514), + 66: uint16(12515), + 67: uint16(12516), + 68: uint16(12517), + 69: uint16(12518), + 70: uint16(12519), + 71: uint16(12520), + 72: uint16(12521), + 73: uint16(12522), + 74: uint16(12523), + 75: uint16(12524), + 76: uint16(12525), + 77: uint16(12526), + 78: uint16(12527), + 79: uint16(12528), + 80: uint16(12529), + 81: uint16(12530), + 82: uint16(12531), + 83: uint16(12532), + 84: uint16(12533), + 85: uint16(12534), + }, + 5: { + 0: uint16(913), + 1: uint16(914), + 2: uint16(915), + 3: uint16(916), + 4: uint16(917), + 5: uint16(918), + 6: uint16(919), + 7: uint16(920), + 8: uint16(921), + 9: uint16(922), + 10: uint16(923), + 11: uint16(924), + 12: uint16(925), + 13: uint16(926), + 14: uint16(927), + 15: uint16(928), + 16: uint16(929), + 17: uint16(931), + 18: uint16(932), + 19: uint16(933), + 20: uint16(934), + 21: uint16(935), + 22: uint16(936), + 23: uint16(937), + 32: uint16(945), + 33: uint16(946), + 34: uint16(947), + 35: uint16(948), + 36: uint16(949), + 37: uint16(950), + 38: uint16(951), + 39: uint16(952), + 40: uint16(953), + 41: uint16(954), + 42: uint16(955), + 43: uint16(956), + 44: uint16(957), + 45: uint16(958), + 46: uint16(959), + 47: uint16(960), + 48: uint16(961), + 49: uint16(963), + 50: uint16(964), + 51: uint16(965), + 52: uint16(966), + 53: uint16(967), + 54: uint16(968), + 55: uint16(969), + }, + 6: { + 0: uint16(1040), + 1: uint16(1041), + 2: uint16(1042), + 3: uint16(1043), + 4: uint16(1044), + 5: uint16(1045), + 6: uint16(1025), + 7: uint16(1046), + 8: uint16(1047), + 9: uint16(1048), + 10: uint16(1049), + 11: uint16(1050), + 12: uint16(1051), + 13: uint16(1052), + 14: uint16(1053), + 15: uint16(1054), + 16: uint16(1055), + 17: uint16(1056), + 18: uint16(1057), + 19: uint16(1058), + 20: uint16(1059), + 21: uint16(1060), + 22: uint16(1061), + 23: uint16(1062), + 24: uint16(1063), + 25: uint16(1064), + 26: uint16(1065), + 27: uint16(1066), + 28: uint16(1067), + 29: uint16(1068), + 30: uint16(1069), + 31: uint16(1070), + 32: uint16(1071), + 48: uint16(1072), + 49: uint16(1073), + 50: uint16(1074), + 51: uint16(1075), + 52: uint16(1076), + 53: uint16(1077), + 54: uint16(1105), + 55: uint16(1078), + 56: uint16(1079), + 57: uint16(1080), + 58: uint16(1081), + 59: uint16(1082), + 60: uint16(1083), + 61: uint16(1084), + 62: uint16(1085), + 63: uint16(1086), + 64: uint16(1087), + 65: uint16(1088), + 66: uint16(1089), + 67: uint16(1090), + 68: uint16(1091), + 69: uint16(1092), + 70: uint16(1093), + 71: uint16(1094), + 72: uint16(1095), + 73: uint16(1096), + 74: uint16(1097), + 75: uint16(1098), + 76: uint16(1099), + 77: uint16(1100), + 78: uint16(1101), + 79: uint16(1102), + 80: uint16(1103), + }, + 7: { + 0: uint16(9472), + 1: uint16(9474), + 2: uint16(9484), + 3: uint16(9488), + 4: uint16(9496), + 5: uint16(9492), + 6: uint16(9500), + 7: uint16(9516), + 8: uint16(9508), + 9: uint16(9524), + 10: uint16(9532), + 11: uint16(9473), + 12: uint16(9475), + 13: uint16(9487), + 14: uint16(9491), + 15: uint16(9499), + 16: uint16(9495), + 17: uint16(9507), + 18: uint16(9523), + 19: uint16(9515), + 20: uint16(9531), + 21: uint16(9547), + 22: uint16(9504), + 23: uint16(9519), + 24: uint16(9512), + 25: uint16(9527), + 26: uint16(9535), + 27: uint16(9501), + 28: uint16(9520), + 29: uint16(9509), + 30: uint16(9528), + 31: uint16(9538), + }, + 8: {}, + 9: {}, + 10: {}, + 11: {}, + 12: {}, + 13: {}, + 14: {}, + 15: { + 0: uint16(20124), + 1: uint16(21782), + 2: uint16(23043), + 3: uint16(38463), + 4: uint16(21696), + 5: uint16(24859), + 6: uint16(25384), + 7: uint16(23030), + 8: uint16(36898), + 9: uint16(33909), + 10: uint16(33564), + 11: uint16(31312), + 12: uint16(24746), + 13: uint16(25569), + 14: uint16(28197), + 15: uint16(26093), + 16: uint16(33894), + 17: uint16(33446), + 18: uint16(39925), + 19: uint16(26771), + 20: uint16(22311), + 21: uint16(26017), + 22: uint16(25201), + 23: uint16(23451), + 24: uint16(22992), + 25: uint16(34427), + 26: uint16(39156), + 27: uint16(32098), + 28: uint16(32190), + 29: uint16(39822), + 30: uint16(25110), + 31: uint16(31903), + 32: uint16(34999), + 33: uint16(23433), + 34: uint16(24245), + 35: uint16(25353), + 36: uint16(26263), + 37: uint16(26696), + 38: uint16(38343), + 39: uint16(38797), + 40: uint16(26447), + 41: uint16(20197), + 42: uint16(20234), + 43: uint16(20301), + 44: uint16(20381), + 45: uint16(20553), + 46: uint16(22258), + 47: uint16(22839), + 48: uint16(22996), + 49: uint16(23041), + 50: uint16(23561), + 51: uint16(24799), + 52: uint16(24847), + 53: uint16(24944), + 54: uint16(26131), + 55: uint16(26885), + 56: uint16(28858), + 57: uint16(30031), + 58: uint16(30064), + 59: uint16(31227), + 60: uint16(32173), + 61: uint16(32239), + 62: uint16(32963), + 63: uint16(33806), + 64: uint16(34915), + 65: uint16(35586), + 66: uint16(36949), + 67: uint16(36986), + 68: uint16(21307), + 69: uint16(20117), + 70: uint16(20133), + 71: uint16(22495), + 72: uint16(32946), + 73: uint16(37057), + 74: uint16(30959), + 75: uint16(19968), + 76: uint16(22769), + 77: uint16(28322), + 78: uint16(36920), + 79: uint16(31282), + 80: uint16(33576), + 81: uint16(33419), + 82: uint16(39983), + 83: uint16(20801), + 84: uint16(21360), + 85: uint16(21693), + 86: uint16(21729), + 87: uint16(22240), + 88: uint16(23035), + 89: uint16(24341), + 90: uint16(39154), + 91: uint16(28139), + 92: uint16(32996), + 93: uint16(34093), + }, + 16: { + 0: uint16(38498), + 1: uint16(38512), + 2: uint16(38560), + 3: uint16(38907), + 4: uint16(21515), + 5: uint16(21491), + 6: uint16(23431), + 7: uint16(28879), + 8: uint16(32701), + 9: uint16(36802), + 10: uint16(38632), + 11: uint16(21359), + 12: uint16(40284), + 13: uint16(31418), + 14: uint16(19985), + 15: uint16(30867), + 16: uint16(33276), + 17: uint16(28198), + 18: uint16(22040), + 19: uint16(21764), + 20: uint16(27421), + 21: uint16(34074), + 22: uint16(39995), + 23: uint16(23013), + 24: uint16(21417), + 25: uint16(28006), + 26: uint16(29916), + 27: uint16(38287), + 28: uint16(22082), + 29: uint16(20113), + 30: uint16(36939), + 31: uint16(38642), + 32: uint16(33615), + 33: uint16(39180), + 34: uint16(21473), + 35: uint16(21942), + 36: uint16(23344), + 37: uint16(24433), + 38: uint16(26144), + 39: uint16(26355), + 40: uint16(26628), + 41: uint16(27704), + 42: uint16(27891), + 43: uint16(27945), + 44: uint16(29787), + 45: uint16(30408), + 46: uint16(31310), + 47: uint16(38964), + 48: uint16(33521), + 49: uint16(34907), + 50: uint16(35424), + 51: uint16(37613), + 52: uint16(28082), + 53: uint16(30123), + 54: uint16(30410), + 55: uint16(39365), + 56: uint16(24742), + 57: uint16(35585), + 58: uint16(36234), + 59: uint16(38322), + 60: uint16(27022), + 61: uint16(21421), + 62: uint16(20870), + 63: uint16(22290), + 64: uint16(22576), + 65: uint16(22852), + 66: uint16(23476), + 67: uint16(24310), + 68: uint16(24616), + 69: uint16(25513), + 70: uint16(25588), + 71: uint16(27839), + 72: uint16(28436), + 73: uint16(28814), + 74: uint16(28948), + 75: uint16(29017), + 76: uint16(29141), + 77: uint16(29503), + 78: uint16(32257), + 79: uint16(33398), + 80: uint16(33489), + 81: uint16(34199), + 82: uint16(36960), + 83: uint16(37467), + 84: uint16(40219), + 85: uint16(22633), + 86: uint16(26044), + 87: uint16(27738), + 88: uint16(29989), + 89: uint16(20985), + 90: uint16(22830), + 91: uint16(22885), + 92: uint16(24448), + 93: uint16(24540), + }, + 17: { + 0: uint16(25276), + 1: uint16(26106), + 2: uint16(27178), + 3: uint16(27431), + 4: uint16(27572), + 5: uint16(29579), + 6: uint16(32705), + 7: uint16(35158), + 8: uint16(40236), + 9: uint16(40206), + 10: uint16(40644), + 11: uint16(23713), + 12: uint16(27798), + 13: uint16(33659), + 14: uint16(20740), + 15: uint16(23627), + 16: uint16(25014), + 17: uint16(33222), + 18: uint16(26742), + 19: uint16(29281), + 20: uint16(20057), + 21: uint16(20474), + 22: uint16(21368), + 23: uint16(24681), + 24: uint16(28201), + 25: uint16(31311), + 26: uint16(38899), + 27: uint16(19979), + 28: uint16(21270), + 29: uint16(20206), + 30: uint16(20309), + 31: uint16(20285), + 32: uint16(20385), + 33: uint16(20339), + 34: uint16(21152), + 35: uint16(21487), + 36: uint16(22025), + 37: uint16(22799), + 38: uint16(23233), + 39: uint16(23478), + 40: uint16(23521), + 41: uint16(31185), + 42: uint16(26247), + 43: uint16(26524), + 44: uint16(26550), + 45: uint16(27468), + 46: uint16(27827), + 47: uint16(28779), + 48: uint16(29634), + 49: uint16(31117), + 50: uint16(31166), + 51: uint16(31292), + 52: uint16(31623), + 53: uint16(33457), + 54: uint16(33499), + 55: uint16(33540), + 56: uint16(33655), + 57: uint16(33775), + 58: uint16(33747), + 59: uint16(34662), + 60: uint16(35506), + 61: uint16(22057), + 62: uint16(36008), + 63: uint16(36838), + 64: uint16(36942), + 65: uint16(38686), + 66: uint16(34442), + 67: uint16(20420), + 68: uint16(23784), + 69: uint16(25105), + 70: uint16(29273), + 71: uint16(30011), + 72: uint16(33253), + 73: uint16(33469), + 74: uint16(34558), + 75: uint16(36032), + 76: uint16(38597), + 77: uint16(39187), + 78: uint16(39381), + 79: uint16(20171), + 80: uint16(20250), + 81: uint16(35299), + 82: uint16(22238), + 83: uint16(22602), + 84: uint16(22730), + 85: uint16(24315), + 86: uint16(24555), + 87: uint16(24618), + 88: uint16(24724), + 89: uint16(24674), + 90: uint16(25040), + 91: uint16(25106), + 92: uint16(25296), + 93: uint16(25913), + }, + 18: { + 0: uint16(39745), + 1: uint16(26214), + 2: uint16(26800), + 3: uint16(28023), + 4: uint16(28784), + 5: uint16(30028), + 6: uint16(30342), + 7: uint16(32117), + 8: uint16(33445), + 9: uint16(34809), + 10: uint16(38283), + 11: uint16(38542), + 12: uint16(35997), + 13: uint16(20977), + 14: uint16(21182), + 15: uint16(22806), + 16: uint16(21683), + 17: uint16(23475), + 18: uint16(23830), + 19: uint16(24936), + 20: uint16(27010), + 21: uint16(28079), + 22: uint16(30861), + 23: uint16(33995), + 24: uint16(34903), + 25: uint16(35442), + 26: uint16(37799), + 27: uint16(39608), + 28: uint16(28012), + 29: uint16(39336), + 30: uint16(34521), + 31: uint16(22435), + 32: uint16(26623), + 33: uint16(34510), + 34: uint16(37390), + 35: uint16(21123), + 36: uint16(22151), + 37: uint16(21508), + 38: uint16(24275), + 39: uint16(25313), + 40: uint16(25785), + 41: uint16(26684), + 42: uint16(26680), + 43: uint16(27579), + 44: uint16(29554), + 45: uint16(30906), + 46: uint16(31339), + 47: uint16(35226), + 48: uint16(35282), + 49: uint16(36203), + 50: uint16(36611), + 51: uint16(37101), + 52: uint16(38307), + 53: uint16(38548), + 54: uint16(38761), + 55: uint16(23398), + 56: uint16(23731), + 57: uint16(27005), + 58: uint16(38989), + 59: uint16(38990), + 60: uint16(25499), + 61: uint16(31520), + 62: uint16(27179), + 63: uint16(27263), + 64: uint16(26806), + 65: uint16(39949), + 66: uint16(28511), + 67: uint16(21106), + 68: uint16(21917), + 69: uint16(24688), + 70: uint16(25324), + 71: uint16(27963), + 72: uint16(28167), + 73: uint16(28369), + 74: uint16(33883), + 75: uint16(35088), + 76: uint16(36676), + 77: uint16(19988), + 78: uint16(39993), + 79: uint16(21494), + 80: uint16(26907), + 81: uint16(27194), + 82: uint16(38788), + 83: uint16(26666), + 84: uint16(20828), + 85: uint16(31427), + 86: uint16(33970), + 87: uint16(37340), + 88: uint16(37772), + 89: uint16(22107), + 90: uint16(40232), + 91: uint16(26658), + 92: uint16(33541), + 93: uint16(33841), + }, + 19: { + 0: uint16(31909), + 1: uint16(21000), + 2: uint16(33477), + 3: uint16(29926), + 4: uint16(20094), + 5: uint16(20355), + 6: uint16(20896), + 7: uint16(23506), + 8: uint16(21002), + 9: uint16(21208), + 10: uint16(21223), + 11: uint16(24059), + 12: uint16(21914), + 13: uint16(22570), + 14: uint16(23014), + 15: uint16(23436), + 16: uint16(23448), + 17: uint16(23515), + 18: uint16(24178), + 19: uint16(24185), + 20: uint16(24739), + 21: uint16(24863), + 22: uint16(24931), + 23: uint16(25022), + 24: uint16(25563), + 25: uint16(25954), + 26: uint16(26577), + 27: uint16(26707), + 28: uint16(26874), + 29: uint16(27454), + 30: uint16(27475), + 31: uint16(27735), + 32: uint16(28450), + 33: uint16(28567), + 34: uint16(28485), + 35: uint16(29872), + 36: uint16(29976), + 37: uint16(30435), + 38: uint16(30475), + 39: uint16(31487), + 40: uint16(31649), + 41: uint16(31777), + 42: uint16(32233), + 43: uint16(32566), + 44: uint16(32752), + 45: uint16(32925), + 46: uint16(33382), + 47: uint16(33694), + 48: uint16(35251), + 49: uint16(35532), + 50: uint16(36011), + 51: uint16(36996), + 52: uint16(37969), + 53: uint16(38291), + 54: uint16(38289), + 55: uint16(38306), + 56: uint16(38501), + 57: uint16(38867), + 58: uint16(39208), + 59: uint16(33304), + 60: uint16(20024), + 61: uint16(21547), + 62: uint16(23736), + 63: uint16(24012), + 64: uint16(29609), + 65: uint16(30284), + 66: uint16(30524), + 67: uint16(23721), + 68: uint16(32747), + 69: uint16(36107), + 70: uint16(38593), + 71: uint16(38929), + 72: uint16(38996), + 73: uint16(39000), + 74: uint16(20225), + 75: uint16(20238), + 76: uint16(21361), + 77: uint16(21916), + 78: uint16(22120), + 79: uint16(22522), + 80: uint16(22855), + 81: uint16(23305), + 82: uint16(23492), + 83: uint16(23696), + 84: uint16(24076), + 85: uint16(24190), + 86: uint16(24524), + 87: uint16(25582), + 88: uint16(26426), + 89: uint16(26071), + 90: uint16(26082), + 91: uint16(26399), + 92: uint16(26827), + 93: uint16(26820), + }, + 20: { + 0: uint16(27231), + 1: uint16(24112), + 2: uint16(27589), + 3: uint16(27671), + 4: uint16(27773), + 5: uint16(30079), + 6: uint16(31048), + 7: uint16(23395), + 8: uint16(31232), + 9: uint16(32000), + 10: uint16(24509), + 11: uint16(35215), + 12: uint16(35352), + 13: uint16(36020), + 14: uint16(36215), + 15: uint16(36556), + 16: uint16(36637), + 17: uint16(39138), + 18: uint16(39438), + 19: uint16(39740), + 20: uint16(20096), + 21: uint16(20605), + 22: uint16(20736), + 23: uint16(22931), + 24: uint16(23452), + 25: uint16(25135), + 26: uint16(25216), + 27: uint16(25836), + 28: uint16(27450), + 29: uint16(29344), + 30: uint16(30097), + 31: uint16(31047), + 32: uint16(32681), + 33: uint16(34811), + 34: uint16(35516), + 35: uint16(35696), + 36: uint16(25516), + 37: uint16(33738), + 38: uint16(38816), + 39: uint16(21513), + 40: uint16(21507), + 41: uint16(21931), + 42: uint16(26708), + 43: uint16(27224), + 44: uint16(35440), + 45: uint16(30759), + 46: uint16(26485), + 47: uint16(40653), + 48: uint16(21364), + 49: uint16(23458), + 50: uint16(33050), + 51: uint16(34384), + 52: uint16(36870), + 53: uint16(19992), + 54: uint16(20037), + 55: uint16(20167), + 56: uint16(20241), + 57: uint16(21450), + 58: uint16(21560), + 59: uint16(23470), + 60: uint16(24339), + 61: uint16(24613), + 62: uint16(25937), + 63: uint16(26429), + 64: uint16(27714), + 65: uint16(27762), + 66: uint16(27875), + 67: uint16(28792), + 68: uint16(29699), + 69: uint16(31350), + 70: uint16(31406), + 71: uint16(31496), + 72: uint16(32026), + 73: uint16(31998), + 74: uint16(32102), + 75: uint16(26087), + 76: uint16(29275), + 77: uint16(21435), + 78: uint16(23621), + 79: uint16(24040), + 80: uint16(25298), + 81: uint16(25312), + 82: uint16(25369), + 83: uint16(28192), + 84: uint16(34394), + 85: uint16(35377), + 86: uint16(36317), + 87: uint16(37624), + 88: uint16(28417), + 89: uint16(31142), + 90: uint16(39770), + 91: uint16(20136), + 92: uint16(20139), + 93: uint16(20140), + }, + 21: { + 0: uint16(20379), + 1: uint16(20384), + 2: uint16(20689), + 3: uint16(20807), + 4: uint16(31478), + 5: uint16(20849), + 6: uint16(20982), + 7: uint16(21332), + 8: uint16(21281), + 9: uint16(21375), + 10: uint16(21483), + 11: uint16(21932), + 12: uint16(22659), + 13: uint16(23777), + 14: uint16(24375), + 15: uint16(24394), + 16: uint16(24623), + 17: uint16(24656), + 18: uint16(24685), + 19: uint16(25375), + 20: uint16(25945), + 21: uint16(27211), + 22: uint16(27841), + 23: uint16(29378), + 24: uint16(29421), + 25: uint16(30703), + 26: uint16(33016), + 27: uint16(33029), + 28: uint16(33288), + 29: uint16(34126), + 30: uint16(37111), + 31: uint16(37857), + 32: uint16(38911), + 33: uint16(39255), + 34: uint16(39514), + 35: uint16(20208), + 36: uint16(20957), + 37: uint16(23597), + 38: uint16(26241), + 39: uint16(26989), + 40: uint16(23616), + 41: uint16(26354), + 42: uint16(26997), + 43: uint16(29577), + 44: uint16(26704), + 45: uint16(31873), + 46: uint16(20677), + 47: uint16(21220), + 48: uint16(22343), + 49: uint16(24062), + 50: uint16(37670), + 51: uint16(26020), + 52: uint16(27427), + 53: uint16(27453), + 54: uint16(29748), + 55: uint16(31105), + 56: uint16(31165), + 57: uint16(31563), + 58: uint16(32202), + 59: uint16(33465), + 60: uint16(33740), + 61: uint16(34943), + 62: uint16(35167), + 63: uint16(35641), + 64: uint16(36817), + 65: uint16(37329), + 66: uint16(21535), + 67: uint16(37504), + 68: uint16(20061), + 69: uint16(20534), + 70: uint16(21477), + 71: uint16(21306), + 72: uint16(29399), + 73: uint16(29590), + 74: uint16(30697), + 75: uint16(33510), + 76: uint16(36527), + 77: uint16(39366), + 78: uint16(39368), + 79: uint16(39378), + 80: uint16(20855), + 81: uint16(24858), + 82: uint16(34398), + 83: uint16(21936), + 84: uint16(31354), + 85: uint16(20598), + 86: uint16(23507), + 87: uint16(36935), + 88: uint16(38533), + 89: uint16(20018), + 90: uint16(27355), + 91: uint16(37351), + 92: uint16(23633), + 93: uint16(23624), + }, + 22: { + 0: uint16(25496), + 1: uint16(31391), + 2: uint16(27795), + 3: uint16(38772), + 4: uint16(36705), + 5: uint16(31402), + 6: uint16(29066), + 7: uint16(38536), + 8: uint16(31874), + 9: uint16(26647), + 10: uint16(32368), + 11: uint16(26705), + 12: uint16(37740), + 13: uint16(21234), + 14: uint16(21531), + 15: uint16(34219), + 16: uint16(35347), + 17: uint16(32676), + 18: uint16(36557), + 19: uint16(37089), + 20: uint16(21350), + 21: uint16(34952), + 22: uint16(31041), + 23: uint16(20418), + 24: uint16(20670), + 25: uint16(21009), + 26: uint16(20804), + 27: uint16(21843), + 28: uint16(22317), + 29: uint16(29674), + 30: uint16(22411), + 31: uint16(22865), + 32: uint16(24418), + 33: uint16(24452), + 34: uint16(24693), + 35: uint16(24950), + 36: uint16(24935), + 37: uint16(25001), + 38: uint16(25522), + 39: uint16(25658), + 40: uint16(25964), + 41: uint16(26223), + 42: uint16(26690), + 43: uint16(28179), + 44: uint16(30054), + 45: uint16(31293), + 46: uint16(31995), + 47: uint16(32076), + 48: uint16(32153), + 49: uint16(32331), + 50: uint16(32619), + 51: uint16(33550), + 52: uint16(33610), + 53: uint16(34509), + 54: uint16(35336), + 55: uint16(35427), + 56: uint16(35686), + 57: uint16(36605), + 58: uint16(38938), + 59: uint16(40335), + 60: uint16(33464), + 61: uint16(36814), + 62: uint16(39912), + 63: uint16(21127), + 64: uint16(25119), + 65: uint16(25731), + 66: uint16(28608), + 67: uint16(38553), + 68: uint16(26689), + 69: uint16(20625), + 70: uint16(27424), + 71: uint16(27770), + 72: uint16(28500), + 73: uint16(31348), + 74: uint16(32080), + 75: uint16(34880), + 76: uint16(35363), + 77: uint16(26376), + 78: uint16(20214), + 79: uint16(20537), + 80: uint16(20518), + 81: uint16(20581), + 82: uint16(20860), + 83: uint16(21048), + 84: uint16(21091), + 85: uint16(21927), + 86: uint16(22287), + 87: uint16(22533), + 88: uint16(23244), + 89: uint16(24314), + 90: uint16(25010), + 91: uint16(25080), + 92: uint16(25331), + 93: uint16(25458), + }, + 23: { + 0: uint16(26908), + 1: uint16(27177), + 2: uint16(29309), + 3: uint16(29356), + 4: uint16(29486), + 5: uint16(30740), + 6: uint16(30831), + 7: uint16(32121), + 8: uint16(30476), + 9: uint16(32937), + 10: uint16(35211), + 11: uint16(35609), + 12: uint16(36066), + 13: uint16(36562), + 14: uint16(36963), + 15: uint16(37749), + 16: uint16(38522), + 17: uint16(38997), + 18: uint16(39443), + 19: uint16(40568), + 20: uint16(20803), + 21: uint16(21407), + 22: uint16(21427), + 23: uint16(24187), + 24: uint16(24358), + 25: uint16(28187), + 26: uint16(28304), + 27: uint16(29572), + 28: uint16(29694), + 29: uint16(32067), + 30: uint16(33335), + 31: uint16(35328), + 32: uint16(35578), + 33: uint16(38480), + 34: uint16(20046), + 35: uint16(20491), + 36: uint16(21476), + 37: uint16(21628), + 38: uint16(22266), + 39: uint16(22993), + 40: uint16(23396), + 41: uint16(24049), + 42: uint16(24235), + 43: uint16(24359), + 44: uint16(25144), + 45: uint16(25925), + 46: uint16(26543), + 47: uint16(28246), + 48: uint16(29392), + 49: uint16(31946), + 50: uint16(34996), + 51: uint16(32929), + 52: uint16(32993), + 53: uint16(33776), + 54: uint16(34382), + 55: uint16(35463), + 56: uint16(36328), + 57: uint16(37431), + 58: uint16(38599), + 59: uint16(39015), + 60: uint16(40723), + 61: uint16(20116), + 62: uint16(20114), + 63: uint16(20237), + 64: uint16(21320), + 65: uint16(21577), + 66: uint16(21566), + 67: uint16(23087), + 68: uint16(24460), + 69: uint16(24481), + 70: uint16(24735), + 71: uint16(26791), + 72: uint16(27278), + 73: uint16(29786), + 74: uint16(30849), + 75: uint16(35486), + 76: uint16(35492), + 77: uint16(35703), + 78: uint16(37264), + 79: uint16(20062), + 80: uint16(39881), + 81: uint16(20132), + 82: uint16(20348), + 83: uint16(20399), + 84: uint16(20505), + 85: uint16(20502), + 86: uint16(20809), + 87: uint16(20844), + 88: uint16(21151), + 89: uint16(21177), + 90: uint16(21246), + 91: uint16(21402), + 92: uint16(21475), + 93: uint16(21521), + }, + 24: { + 0: uint16(21518), + 1: uint16(21897), + 2: uint16(22353), + 3: uint16(22434), + 4: uint16(22909), + 5: uint16(23380), + 6: uint16(23389), + 7: uint16(23439), + 8: uint16(24037), + 9: uint16(24039), + 10: uint16(24055), + 11: uint16(24184), + 12: uint16(24195), + 13: uint16(24218), + 14: uint16(24247), + 15: uint16(24344), + 16: uint16(24658), + 17: uint16(24908), + 18: uint16(25239), + 19: uint16(25304), + 20: uint16(25511), + 21: uint16(25915), + 22: uint16(26114), + 23: uint16(26179), + 24: uint16(26356), + 25: uint16(26477), + 26: uint16(26657), + 27: uint16(26775), + 28: uint16(27083), + 29: uint16(27743), + 30: uint16(27946), + 31: uint16(28009), + 32: uint16(28207), + 33: uint16(28317), + 34: uint16(30002), + 35: uint16(30343), + 36: uint16(30828), + 37: uint16(31295), + 38: uint16(31968), + 39: uint16(32005), + 40: uint16(32024), + 41: uint16(32094), + 42: uint16(32177), + 43: uint16(32789), + 44: uint16(32771), + 45: uint16(32943), + 46: uint16(32945), + 47: uint16(33108), + 48: uint16(33167), + 49: uint16(33322), + 50: uint16(33618), + 51: uint16(34892), + 52: uint16(34913), + 53: uint16(35611), + 54: uint16(36002), + 55: uint16(36092), + 56: uint16(37066), + 57: uint16(37237), + 58: uint16(37489), + 59: uint16(30783), + 60: uint16(37628), + 61: uint16(38308), + 62: uint16(38477), + 63: uint16(38917), + 64: uint16(39321), + 65: uint16(39640), + 66: uint16(40251), + 67: uint16(21083), + 68: uint16(21163), + 69: uint16(21495), + 70: uint16(21512), + 71: uint16(22741), + 72: uint16(25335), + 73: uint16(28640), + 74: uint16(35946), + 75: uint16(36703), + 76: uint16(40633), + 77: uint16(20811), + 78: uint16(21051), + 79: uint16(21578), + 80: uint16(22269), + 81: uint16(31296), + 82: uint16(37239), + 83: uint16(40288), + 84: uint16(40658), + 85: uint16(29508), + 86: uint16(28425), + 87: uint16(33136), + 88: uint16(29969), + 89: uint16(24573), + 90: uint16(24794), + 91: uint16(39592), + 92: uint16(29403), + 93: uint16(36796), + }, + 25: { + 0: uint16(27492), + 1: uint16(38915), + 2: uint16(20170), + 3: uint16(22256), + 4: uint16(22372), + 5: uint16(22718), + 6: uint16(23130), + 7: uint16(24680), + 8: uint16(25031), + 9: uint16(26127), + 10: uint16(26118), + 11: uint16(26681), + 12: uint16(26801), + 13: uint16(28151), + 14: uint16(30165), + 15: uint16(32058), + 16: uint16(33390), + 17: uint16(39746), + 18: uint16(20123), + 19: uint16(20304), + 20: uint16(21449), + 21: uint16(21766), + 22: uint16(23919), + 23: uint16(24038), + 24: uint16(24046), + 25: uint16(26619), + 26: uint16(27801), + 27: uint16(29811), + 28: uint16(30722), + 29: uint16(35408), + 30: uint16(37782), + 31: uint16(35039), + 32: uint16(22352), + 33: uint16(24231), + 34: uint16(25387), + 35: uint16(20661), + 36: uint16(20652), + 37: uint16(20877), + 38: uint16(26368), + 39: uint16(21705), + 40: uint16(22622), + 41: uint16(22971), + 42: uint16(23472), + 43: uint16(24425), + 44: uint16(25165), + 45: uint16(25505), + 46: uint16(26685), + 47: uint16(27507), + 48: uint16(28168), + 49: uint16(28797), + 50: uint16(37319), + 51: uint16(29312), + 52: uint16(30741), + 53: uint16(30758), + 54: uint16(31085), + 55: uint16(25998), + 56: uint16(32048), + 57: uint16(33756), + 58: uint16(35009), + 59: uint16(36617), + 60: uint16(38555), + 61: uint16(21092), + 62: uint16(22312), + 63: uint16(26448), + 64: uint16(32618), + 65: uint16(36001), + 66: uint16(20916), + 67: uint16(22338), + 68: uint16(38442), + 69: uint16(22586), + 70: uint16(27018), + 71: uint16(32948), + 72: uint16(21682), + 73: uint16(23822), + 74: uint16(22524), + 75: uint16(30869), + 76: uint16(40442), + 77: uint16(20316), + 78: uint16(21066), + 79: uint16(21643), + 80: uint16(25662), + 81: uint16(26152), + 82: uint16(26388), + 83: uint16(26613), + 84: uint16(31364), + 85: uint16(31574), + 86: uint16(32034), + 87: uint16(37679), + 88: uint16(26716), + 89: uint16(39853), + 90: uint16(31545), + 91: uint16(21273), + 92: uint16(20874), + 93: uint16(21047), + }, + 26: { + 0: uint16(23519), + 1: uint16(25334), + 2: uint16(25774), + 3: uint16(25830), + 4: uint16(26413), + 5: uint16(27578), + 6: uint16(34217), + 7: uint16(38609), + 8: uint16(30352), + 9: uint16(39894), + 10: uint16(25420), + 11: uint16(37638), + 12: uint16(39851), + 13: uint16(30399), + 14: uint16(26194), + 15: uint16(19977), + 16: uint16(20632), + 17: uint16(21442), + 18: uint16(23665), + 19: uint16(24808), + 20: uint16(25746), + 21: uint16(25955), + 22: uint16(26719), + 23: uint16(29158), + 24: uint16(29642), + 25: uint16(29987), + 26: uint16(31639), + 27: uint16(32386), + 28: uint16(34453), + 29: uint16(35715), + 30: uint16(36059), + 31: uint16(37240), + 32: uint16(39184), + 33: uint16(26028), + 34: uint16(26283), + 35: uint16(27531), + 36: uint16(20181), + 37: uint16(20180), + 38: uint16(20282), + 39: uint16(20351), + 40: uint16(21050), + 41: uint16(21496), + 42: uint16(21490), + 43: uint16(21987), + 44: uint16(22235), + 45: uint16(22763), + 46: uint16(22987), + 47: uint16(22985), + 48: uint16(23039), + 49: uint16(23376), + 50: uint16(23629), + 51: uint16(24066), + 52: uint16(24107), + 53: uint16(24535), + 54: uint16(24605), + 55: uint16(25351), + 56: uint16(25903), + 57: uint16(23388), + 58: uint16(26031), + 59: uint16(26045), + 60: uint16(26088), + 61: uint16(26525), + 62: uint16(27490), + 63: uint16(27515), + 64: uint16(27663), + 65: uint16(29509), + 66: uint16(31049), + 67: uint16(31169), + 68: uint16(31992), + 69: uint16(32025), + 70: uint16(32043), + 71: uint16(32930), + 72: uint16(33026), + 73: uint16(33267), + 74: uint16(35222), + 75: uint16(35422), + 76: uint16(35433), + 77: uint16(35430), + 78: uint16(35468), + 79: uint16(35566), + 80: uint16(36039), + 81: uint16(36060), + 82: uint16(38604), + 83: uint16(39164), + 84: uint16(27503), + 85: uint16(20107), + 86: uint16(20284), + 87: uint16(20365), + 88: uint16(20816), + 89: uint16(23383), + 90: uint16(23546), + 91: uint16(24904), + 92: uint16(25345), + 93: uint16(26178), + }, + 27: { + 0: uint16(27425), + 1: uint16(28363), + 2: uint16(27835), + 3: uint16(29246), + 4: uint16(29885), + 5: uint16(30164), + 6: uint16(30913), + 7: uint16(31034), + 8: uint16(32780), + 9: uint16(32819), + 10: uint16(33258), + 11: uint16(33940), + 12: uint16(36766), + 13: uint16(27728), + 14: uint16(40575), + 15: uint16(24335), + 16: uint16(35672), + 17: uint16(40235), + 18: uint16(31482), + 19: uint16(36600), + 20: uint16(23437), + 21: uint16(38635), + 22: uint16(19971), + 23: uint16(21489), + 24: uint16(22519), + 25: uint16(22833), + 26: uint16(23241), + 27: uint16(23460), + 28: uint16(24713), + 29: uint16(28287), + 30: uint16(28422), + 31: uint16(30142), + 32: uint16(36074), + 33: uint16(23455), + 34: uint16(34048), + 35: uint16(31712), + 36: uint16(20594), + 37: uint16(26612), + 38: uint16(33437), + 39: uint16(23649), + 40: uint16(34122), + 41: uint16(32286), + 42: uint16(33294), + 43: uint16(20889), + 44: uint16(23556), + 45: uint16(25448), + 46: uint16(36198), + 47: uint16(26012), + 48: uint16(29038), + 49: uint16(31038), + 50: uint16(32023), + 51: uint16(32773), + 52: uint16(35613), + 53: uint16(36554), + 54: uint16(36974), + 55: uint16(34503), + 56: uint16(37034), + 57: uint16(20511), + 58: uint16(21242), + 59: uint16(23610), + 60: uint16(26451), + 61: uint16(28796), + 62: uint16(29237), + 63: uint16(37196), + 64: uint16(37320), + 65: uint16(37675), + 66: uint16(33509), + 67: uint16(23490), + 68: uint16(24369), + 69: uint16(24825), + 70: uint16(20027), + 71: uint16(21462), + 72: uint16(23432), + 73: uint16(25163), + 74: uint16(26417), + 75: uint16(27530), + 76: uint16(29417), + 77: uint16(29664), + 78: uint16(31278), + 79: uint16(33131), + 80: uint16(36259), + 81: uint16(37202), + 82: uint16(39318), + 83: uint16(20754), + 84: uint16(21463), + 85: uint16(21610), + 86: uint16(23551), + 87: uint16(25480), + 88: uint16(27193), + 89: uint16(32172), + 90: uint16(38656), + 91: uint16(22234), + 92: uint16(21454), + 93: uint16(21608), + }, + 28: { + 0: uint16(23447), + 1: uint16(23601), + 2: uint16(24030), + 3: uint16(20462), + 4: uint16(24833), + 5: uint16(25342), + 6: uint16(27954), + 7: uint16(31168), + 8: uint16(31179), + 9: uint16(32066), + 10: uint16(32333), + 11: uint16(32722), + 12: uint16(33261), + 13: uint16(33311), + 14: uint16(33936), + 15: uint16(34886), + 16: uint16(35186), + 17: uint16(35728), + 18: uint16(36468), + 19: uint16(36655), + 20: uint16(36913), + 21: uint16(37195), + 22: uint16(37228), + 23: uint16(38598), + 24: uint16(37276), + 25: uint16(20160), + 26: uint16(20303), + 27: uint16(20805), + 28: uint16(21313), + 29: uint16(24467), + 30: uint16(25102), + 31: uint16(26580), + 32: uint16(27713), + 33: uint16(28171), + 34: uint16(29539), + 35: uint16(32294), + 36: uint16(37325), + 37: uint16(37507), + 38: uint16(21460), + 39: uint16(22809), + 40: uint16(23487), + 41: uint16(28113), + 42: uint16(31069), + 43: uint16(32302), + 44: uint16(31899), + 45: uint16(22654), + 46: uint16(29087), + 47: uint16(20986), + 48: uint16(34899), + 49: uint16(36848), + 50: uint16(20426), + 51: uint16(23803), + 52: uint16(26149), + 53: uint16(30636), + 54: uint16(31459), + 55: uint16(33308), + 56: uint16(39423), + 57: uint16(20934), + 58: uint16(24490), + 59: uint16(26092), + 60: uint16(26991), + 61: uint16(27529), + 62: uint16(28147), + 63: uint16(28310), + 64: uint16(28516), + 65: uint16(30462), + 66: uint16(32020), + 67: uint16(24033), + 68: uint16(36981), + 69: uint16(37255), + 70: uint16(38918), + 71: uint16(20966), + 72: uint16(21021), + 73: uint16(25152), + 74: uint16(26257), + 75: uint16(26329), + 76: uint16(28186), + 77: uint16(24246), + 78: uint16(32210), + 79: uint16(32626), + 80: uint16(26360), + 81: uint16(34223), + 82: uint16(34295), + 83: uint16(35576), + 84: uint16(21161), + 85: uint16(21465), + 86: uint16(22899), + 87: uint16(24207), + 88: uint16(24464), + 89: uint16(24661), + 90: uint16(37604), + 91: uint16(38500), + 92: uint16(20663), + 93: uint16(20767), + }, + 29: { + 0: uint16(21213), + 1: uint16(21280), + 2: uint16(21319), + 3: uint16(21484), + 4: uint16(21736), + 5: uint16(21830), + 6: uint16(21809), + 7: uint16(22039), + 8: uint16(22888), + 9: uint16(22974), + 10: uint16(23100), + 11: uint16(23477), + 12: uint16(23558), + 13: uint16(23567), + 14: uint16(23569), + 15: uint16(23578), + 16: uint16(24196), + 17: uint16(24202), + 18: uint16(24288), + 19: uint16(24432), + 20: uint16(25215), + 21: uint16(25220), + 22: uint16(25307), + 23: uint16(25484), + 24: uint16(25463), + 25: uint16(26119), + 26: uint16(26124), + 27: uint16(26157), + 28: uint16(26230), + 29: uint16(26494), + 30: uint16(26786), + 31: uint16(27167), + 32: uint16(27189), + 33: uint16(27836), + 34: uint16(28040), + 35: uint16(28169), + 36: uint16(28248), + 37: uint16(28988), + 38: uint16(28966), + 39: uint16(29031), + 40: uint16(30151), + 41: uint16(30465), + 42: uint16(30813), + 43: uint16(30977), + 44: uint16(31077), + 45: uint16(31216), + 46: uint16(31456), + 47: uint16(31505), + 48: uint16(31911), + 49: uint16(32057), + 50: uint16(32918), + 51: uint16(33750), + 52: uint16(33931), + 53: uint16(34121), + 54: uint16(34909), + 55: uint16(35059), + 56: uint16(35359), + 57: uint16(35388), + 58: uint16(35412), + 59: uint16(35443), + 60: uint16(35937), + 61: uint16(36062), + 62: uint16(37284), + 63: uint16(37478), + 64: uint16(37758), + 65: uint16(37912), + 66: uint16(38556), + 67: uint16(38808), + 68: uint16(19978), + 69: uint16(19976), + 70: uint16(19998), + 71: uint16(20055), + 72: uint16(20887), + 73: uint16(21104), + 74: uint16(22478), + 75: uint16(22580), + 76: uint16(22732), + 77: uint16(23330), + 78: uint16(24120), + 79: uint16(24773), + 80: uint16(25854), + 81: uint16(26465), + 82: uint16(26454), + 83: uint16(27972), + 84: uint16(29366), + 85: uint16(30067), + 86: uint16(31331), + 87: uint16(33976), + 88: uint16(35698), + 89: uint16(37304), + 90: uint16(37664), + 91: uint16(22065), + 92: uint16(22516), + 93: uint16(39166), + }, + 30: { + 0: uint16(25325), + 1: uint16(26893), + 2: uint16(27542), + 3: uint16(29165), + 4: uint16(32340), + 5: uint16(32887), + 6: uint16(33394), + 7: uint16(35302), + 8: uint16(39135), + 9: uint16(34645), + 10: uint16(36785), + 11: uint16(23611), + 12: uint16(20280), + 13: uint16(20449), + 14: uint16(20405), + 15: uint16(21767), + 16: uint16(23072), + 17: uint16(23517), + 18: uint16(23529), + 19: uint16(24515), + 20: uint16(24910), + 21: uint16(25391), + 22: uint16(26032), + 23: uint16(26187), + 24: uint16(26862), + 25: uint16(27035), + 26: uint16(28024), + 27: uint16(28145), + 28: uint16(30003), + 29: uint16(30137), + 30: uint16(30495), + 31: uint16(31070), + 32: uint16(31206), + 33: uint16(32051), + 34: uint16(33251), + 35: uint16(33455), + 36: uint16(34218), + 37: uint16(35242), + 38: uint16(35386), + 39: uint16(36523), + 40: uint16(36763), + 41: uint16(36914), + 42: uint16(37341), + 43: uint16(38663), + 44: uint16(20154), + 45: uint16(20161), + 46: uint16(20995), + 47: uint16(22645), + 48: uint16(22764), + 49: uint16(23563), + 50: uint16(29978), + 51: uint16(23613), + 52: uint16(33102), + 53: uint16(35338), + 54: uint16(36805), + 55: uint16(38499), + 56: uint16(38765), + 57: uint16(31525), + 58: uint16(35535), + 59: uint16(38920), + 60: uint16(37218), + 61: uint16(22259), + 62: uint16(21416), + 63: uint16(36887), + 64: uint16(21561), + 65: uint16(22402), + 66: uint16(24101), + 67: uint16(25512), + 68: uint16(27700), + 69: uint16(28810), + 70: uint16(30561), + 71: uint16(31883), + 72: uint16(32736), + 73: uint16(34928), + 74: uint16(36930), + 75: uint16(37204), + 76: uint16(37648), + 77: uint16(37656), + 78: uint16(38543), + 79: uint16(29790), + 80: uint16(39620), + 81: uint16(23815), + 82: uint16(23913), + 83: uint16(25968), + 84: uint16(26530), + 85: uint16(36264), + 86: uint16(38619), + 87: uint16(25454), + 88: uint16(26441), + 89: uint16(26905), + 90: uint16(33733), + 91: uint16(38935), + 92: uint16(38592), + 93: uint16(35070), + }, + 31: { + 0: uint16(28548), + 1: uint16(25722), + 2: uint16(23544), + 3: uint16(19990), + 4: uint16(28716), + 5: uint16(30045), + 6: uint16(26159), + 7: uint16(20932), + 8: uint16(21046), + 9: uint16(21218), + 10: uint16(22995), + 11: uint16(24449), + 12: uint16(24615), + 13: uint16(25104), + 14: uint16(25919), + 15: uint16(25972), + 16: uint16(26143), + 17: uint16(26228), + 18: uint16(26866), + 19: uint16(26646), + 20: uint16(27491), + 21: uint16(28165), + 22: uint16(29298), + 23: uint16(29983), + 24: uint16(30427), + 25: uint16(31934), + 26: uint16(32854), + 27: uint16(22768), + 28: uint16(35069), + 29: uint16(35199), + 30: uint16(35488), + 31: uint16(35475), + 32: uint16(35531), + 33: uint16(36893), + 34: uint16(37266), + 35: uint16(38738), + 36: uint16(38745), + 37: uint16(25993), + 38: uint16(31246), + 39: uint16(33030), + 40: uint16(38587), + 41: uint16(24109), + 42: uint16(24796), + 43: uint16(25114), + 44: uint16(26021), + 45: uint16(26132), + 46: uint16(26512), + 47: uint16(30707), + 48: uint16(31309), + 49: uint16(31821), + 50: uint16(32318), + 51: uint16(33034), + 52: uint16(36012), + 53: uint16(36196), + 54: uint16(36321), + 55: uint16(36447), + 56: uint16(30889), + 57: uint16(20999), + 58: uint16(25305), + 59: uint16(25509), + 60: uint16(25666), + 61: uint16(25240), + 62: uint16(35373), + 63: uint16(31363), + 64: uint16(31680), + 65: uint16(35500), + 66: uint16(38634), + 67: uint16(32118), + 68: uint16(33292), + 69: uint16(34633), + 70: uint16(20185), + 71: uint16(20808), + 72: uint16(21315), + 73: uint16(21344), + 74: uint16(23459), + 75: uint16(23554), + 76: uint16(23574), + 77: uint16(24029), + 78: uint16(25126), + 79: uint16(25159), + 80: uint16(25776), + 81: uint16(26643), + 82: uint16(26676), + 83: uint16(27849), + 84: uint16(27973), + 85: uint16(27927), + 86: uint16(26579), + 87: uint16(28508), + 88: uint16(29006), + 89: uint16(29053), + 90: uint16(26059), + 91: uint16(31359), + 92: uint16(31661), + 93: uint16(32218), + }, + 32: { + 0: uint16(32330), + 1: uint16(32680), + 2: uint16(33146), + 3: uint16(33307), + 4: uint16(33337), + 5: uint16(34214), + 6: uint16(35438), + 7: uint16(36046), + 8: uint16(36341), + 9: uint16(36984), + 10: uint16(36983), + 11: uint16(37549), + 12: uint16(37521), + 13: uint16(38275), + 14: uint16(39854), + 15: uint16(21069), + 16: uint16(21892), + 17: uint16(28472), + 18: uint16(28982), + 19: uint16(20840), + 20: uint16(31109), + 21: uint16(32341), + 22: uint16(33203), + 23: uint16(31950), + 24: uint16(22092), + 25: uint16(22609), + 26: uint16(23720), + 27: uint16(25514), + 28: uint16(26366), + 29: uint16(26365), + 30: uint16(26970), + 31: uint16(29401), + 32: uint16(30095), + 33: uint16(30094), + 34: uint16(30990), + 35: uint16(31062), + 36: uint16(31199), + 37: uint16(31895), + 38: uint16(32032), + 39: uint16(32068), + 40: uint16(34311), + 41: uint16(35380), + 42: uint16(38459), + 43: uint16(36961), + 44: uint16(40736), + 45: uint16(20711), + 46: uint16(21109), + 47: uint16(21452), + 48: uint16(21474), + 49: uint16(20489), + 50: uint16(21930), + 51: uint16(22766), + 52: uint16(22863), + 53: uint16(29245), + 54: uint16(23435), + 55: uint16(23652), + 56: uint16(21277), + 57: uint16(24803), + 58: uint16(24819), + 59: uint16(25436), + 60: uint16(25475), + 61: uint16(25407), + 62: uint16(25531), + 63: uint16(25805), + 64: uint16(26089), + 65: uint16(26361), + 66: uint16(24035), + 67: uint16(27085), + 68: uint16(27133), + 69: uint16(28437), + 70: uint16(29157), + 71: uint16(20105), + 72: uint16(30185), + 73: uint16(30456), + 74: uint16(31379), + 75: uint16(31967), + 76: uint16(32207), + 77: uint16(32156), + 78: uint16(32865), + 79: uint16(33609), + 80: uint16(33624), + 81: uint16(33900), + 82: uint16(33980), + 83: uint16(34299), + 84: uint16(35013), + 85: uint16(36208), + 86: uint16(36865), + 87: uint16(36973), + 88: uint16(37783), + 89: uint16(38684), + 90: uint16(39442), + 91: uint16(20687), + 92: uint16(22679), + 93: uint16(24974), + }, + 33: { + 0: uint16(33235), + 1: uint16(34101), + 2: uint16(36104), + 3: uint16(36896), + 4: uint16(20419), + 5: uint16(20596), + 6: uint16(21063), + 7: uint16(21363), + 8: uint16(24687), + 9: uint16(25417), + 10: uint16(26463), + 11: uint16(28204), + 12: uint16(36275), + 13: uint16(36895), + 14: uint16(20439), + 15: uint16(23646), + 16: uint16(36042), + 17: uint16(26063), + 18: uint16(32154), + 19: uint16(21330), + 20: uint16(34966), + 21: uint16(20854), + 22: uint16(25539), + 23: uint16(23384), + 24: uint16(23403), + 25: uint16(23562), + 26: uint16(25613), + 27: uint16(26449), + 28: uint16(36956), + 29: uint16(20182), + 30: uint16(22810), + 31: uint16(22826), + 32: uint16(27760), + 33: uint16(35409), + 34: uint16(21822), + 35: uint16(22549), + 36: uint16(22949), + 37: uint16(24816), + 38: uint16(25171), + 39: uint16(26561), + 40: uint16(33333), + 41: uint16(26965), + 42: uint16(38464), + 43: uint16(39364), + 44: uint16(39464), + 45: uint16(20307), + 46: uint16(22534), + 47: uint16(23550), + 48: uint16(32784), + 49: uint16(23729), + 50: uint16(24111), + 51: uint16(24453), + 52: uint16(24608), + 53: uint16(24907), + 54: uint16(25140), + 55: uint16(26367), + 56: uint16(27888), + 57: uint16(28382), + 58: uint16(32974), + 59: uint16(33151), + 60: uint16(33492), + 61: uint16(34955), + 62: uint16(36024), + 63: uint16(36864), + 64: uint16(36910), + 65: uint16(38538), + 66: uint16(40667), + 67: uint16(39899), + 68: uint16(20195), + 69: uint16(21488), + 70: uint16(22823), + 71: uint16(31532), + 72: uint16(37261), + 73: uint16(38988), + 74: uint16(40441), + 75: uint16(28381), + 76: uint16(28711), + 77: uint16(21331), + 78: uint16(21828), + 79: uint16(23429), + 80: uint16(25176), + 81: uint16(25246), + 82: uint16(25299), + 83: uint16(27810), + 84: uint16(28655), + 85: uint16(29730), + 86: uint16(35351), + 87: uint16(37944), + 88: uint16(28609), + 89: uint16(35582), + 90: uint16(33592), + 91: uint16(20967), + 92: uint16(34552), + 93: uint16(21482), + }, + 34: { + 0: uint16(21481), + 1: uint16(20294), + 2: uint16(36948), + 3: uint16(36784), + 4: uint16(22890), + 5: uint16(33073), + 6: uint16(24061), + 7: uint16(31466), + 8: uint16(36799), + 9: uint16(26842), + 10: uint16(35895), + 11: uint16(29432), + 12: uint16(40008), + 13: uint16(27197), + 14: uint16(35504), + 15: uint16(20025), + 16: uint16(21336), + 17: uint16(22022), + 18: uint16(22374), + 19: uint16(25285), + 20: uint16(25506), + 21: uint16(26086), + 22: uint16(27470), + 23: uint16(28129), + 24: uint16(28251), + 25: uint16(28845), + 26: uint16(30701), + 27: uint16(31471), + 28: uint16(31658), + 29: uint16(32187), + 30: uint16(32829), + 31: uint16(32966), + 32: uint16(34507), + 33: uint16(35477), + 34: uint16(37723), + 35: uint16(22243), + 36: uint16(22727), + 37: uint16(24382), + 38: uint16(26029), + 39: uint16(26262), + 40: uint16(27264), + 41: uint16(27573), + 42: uint16(30007), + 43: uint16(35527), + 44: uint16(20516), + 45: uint16(30693), + 46: uint16(22320), + 47: uint16(24347), + 48: uint16(24677), + 49: uint16(26234), + 50: uint16(27744), + 51: uint16(30196), + 52: uint16(31258), + 53: uint16(32622), + 54: uint16(33268), + 55: uint16(34584), + 56: uint16(36933), + 57: uint16(39347), + 58: uint16(31689), + 59: uint16(30044), + 60: uint16(31481), + 61: uint16(31569), + 62: uint16(33988), + 63: uint16(36880), + 64: uint16(31209), + 65: uint16(31378), + 66: uint16(33590), + 67: uint16(23265), + 68: uint16(30528), + 69: uint16(20013), + 70: uint16(20210), + 71: uint16(23449), + 72: uint16(24544), + 73: uint16(25277), + 74: uint16(26172), + 75: uint16(26609), + 76: uint16(27880), + 77: uint16(34411), + 78: uint16(34935), + 79: uint16(35387), + 80: uint16(37198), + 81: uint16(37619), + 82: uint16(39376), + 83: uint16(27159), + 84: uint16(28710), + 85: uint16(29482), + 86: uint16(33511), + 87: uint16(33879), + 88: uint16(36015), + 89: uint16(19969), + 90: uint16(20806), + 91: uint16(20939), + 92: uint16(21899), + 93: uint16(23541), + }, + 35: { + 0: uint16(24086), + 1: uint16(24115), + 2: uint16(24193), + 3: uint16(24340), + 4: uint16(24373), + 5: uint16(24427), + 6: uint16(24500), + 7: uint16(25074), + 8: uint16(25361), + 9: uint16(26274), + 10: uint16(26397), + 11: uint16(28526), + 12: uint16(29266), + 13: uint16(30010), + 14: uint16(30522), + 15: uint16(32884), + 16: uint16(33081), + 17: uint16(33144), + 18: uint16(34678), + 19: uint16(35519), + 20: uint16(35548), + 21: uint16(36229), + 22: uint16(36339), + 23: uint16(37530), + 24: uint16(38263), + 25: uint16(38914), + 26: uint16(40165), + 27: uint16(21189), + 28: uint16(25431), + 29: uint16(30452), + 30: uint16(26389), + 31: uint16(27784), + 32: uint16(29645), + 33: uint16(36035), + 34: uint16(37806), + 35: uint16(38515), + 36: uint16(27941), + 37: uint16(22684), + 38: uint16(26894), + 39: uint16(27084), + 40: uint16(36861), + 41: uint16(37786), + 42: uint16(30171), + 43: uint16(36890), + 44: uint16(22618), + 45: uint16(26626), + 46: uint16(25524), + 47: uint16(27131), + 48: uint16(20291), + 49: uint16(28460), + 50: uint16(26584), + 51: uint16(36795), + 52: uint16(34086), + 53: uint16(32180), + 54: uint16(37716), + 55: uint16(26943), + 56: uint16(28528), + 57: uint16(22378), + 58: uint16(22775), + 59: uint16(23340), + 60: uint16(32044), + 61: uint16(29226), + 62: uint16(21514), + 63: uint16(37347), + 64: uint16(40372), + 65: uint16(20141), + 66: uint16(20302), + 67: uint16(20572), + 68: uint16(20597), + 69: uint16(21059), + 70: uint16(35998), + 71: uint16(21576), + 72: uint16(22564), + 73: uint16(23450), + 74: uint16(24093), + 75: uint16(24213), + 76: uint16(24237), + 77: uint16(24311), + 78: uint16(24351), + 79: uint16(24716), + 80: uint16(25269), + 81: uint16(25402), + 82: uint16(25552), + 83: uint16(26799), + 84: uint16(27712), + 85: uint16(30855), + 86: uint16(31118), + 87: uint16(31243), + 88: uint16(32224), + 89: uint16(33351), + 90: uint16(35330), + 91: uint16(35558), + 92: uint16(36420), + 93: uint16(36883), + }, + 36: { + 0: uint16(37048), + 1: uint16(37165), + 2: uint16(37336), + 3: uint16(40718), + 4: uint16(27877), + 5: uint16(25688), + 6: uint16(25826), + 7: uint16(25973), + 8: uint16(28404), + 9: uint16(30340), + 10: uint16(31515), + 11: uint16(36969), + 12: uint16(37841), + 13: uint16(28346), + 14: uint16(21746), + 15: uint16(24505), + 16: uint16(25764), + 17: uint16(36685), + 18: uint16(36845), + 19: uint16(37444), + 20: uint16(20856), + 21: uint16(22635), + 22: uint16(22825), + 23: uint16(23637), + 24: uint16(24215), + 25: uint16(28155), + 26: uint16(32399), + 27: uint16(29980), + 28: uint16(36028), + 29: uint16(36578), + 30: uint16(39003), + 31: uint16(28857), + 32: uint16(20253), + 33: uint16(27583), + 34: uint16(28593), + 35: uint16(30000), + 36: uint16(38651), + 37: uint16(20814), + 38: uint16(21520), + 39: uint16(22581), + 40: uint16(22615), + 41: uint16(22956), + 42: uint16(23648), + 43: uint16(24466), + 44: uint16(26007), + 45: uint16(26460), + 46: uint16(28193), + 47: uint16(30331), + 48: uint16(33759), + 49: uint16(36077), + 50: uint16(36884), + 51: uint16(37117), + 52: uint16(37709), + 53: uint16(30757), + 54: uint16(30778), + 55: uint16(21162), + 56: uint16(24230), + 57: uint16(22303), + 58: uint16(22900), + 59: uint16(24594), + 60: uint16(20498), + 61: uint16(20826), + 62: uint16(20908), + 63: uint16(20941), + 64: uint16(20992), + 65: uint16(21776), + 66: uint16(22612), + 67: uint16(22616), + 68: uint16(22871), + 69: uint16(23445), + 70: uint16(23798), + 71: uint16(23947), + 72: uint16(24764), + 73: uint16(25237), + 74: uint16(25645), + 75: uint16(26481), + 76: uint16(26691), + 77: uint16(26812), + 78: uint16(26847), + 79: uint16(30423), + 80: uint16(28120), + 81: uint16(28271), + 82: uint16(28059), + 83: uint16(28783), + 84: uint16(29128), + 85: uint16(24403), + 86: uint16(30168), + 87: uint16(31095), + 88: uint16(31561), + 89: uint16(31572), + 90: uint16(31570), + 91: uint16(31958), + 92: uint16(32113), + 93: uint16(21040), + }, + 37: { + 0: uint16(33891), + 1: uint16(34153), + 2: uint16(34276), + 3: uint16(35342), + 4: uint16(35588), + 5: uint16(35910), + 6: uint16(36367), + 7: uint16(36867), + 8: uint16(36879), + 9: uint16(37913), + 10: uint16(38518), + 11: uint16(38957), + 12: uint16(39472), + 13: uint16(38360), + 14: uint16(20685), + 15: uint16(21205), + 16: uint16(21516), + 17: uint16(22530), + 18: uint16(23566), + 19: uint16(24999), + 20: uint16(25758), + 21: uint16(27934), + 22: uint16(30643), + 23: uint16(31461), + 24: uint16(33012), + 25: uint16(33796), + 26: uint16(36947), + 27: uint16(37509), + 28: uint16(23776), + 29: uint16(40199), + 30: uint16(21311), + 31: uint16(24471), + 32: uint16(24499), + 33: uint16(28060), + 34: uint16(29305), + 35: uint16(30563), + 36: uint16(31167), + 37: uint16(31716), + 38: uint16(27602), + 39: uint16(29420), + 40: uint16(35501), + 41: uint16(26627), + 42: uint16(27233), + 43: uint16(20984), + 44: uint16(31361), + 45: uint16(26932), + 46: uint16(23626), + 47: uint16(40182), + 48: uint16(33515), + 49: uint16(23493), + 50: uint16(37193), + 51: uint16(28702), + 52: uint16(22136), + 53: uint16(23663), + 54: uint16(24775), + 55: uint16(25958), + 56: uint16(27788), + 57: uint16(35930), + 58: uint16(36929), + 59: uint16(38931), + 60: uint16(21585), + 61: uint16(26311), + 62: uint16(37389), + 63: uint16(22856), + 64: uint16(37027), + 65: uint16(20869), + 66: uint16(20045), + 67: uint16(20970), + 68: uint16(34201), + 69: uint16(35598), + 70: uint16(28760), + 71: uint16(25466), + 72: uint16(37707), + 73: uint16(26978), + 74: uint16(39348), + 75: uint16(32260), + 76: uint16(30071), + 77: uint16(21335), + 78: uint16(26976), + 79: uint16(36575), + 80: uint16(38627), + 81: uint16(27741), + 82: uint16(20108), + 83: uint16(23612), + 84: uint16(24336), + 85: uint16(36841), + 86: uint16(21250), + 87: uint16(36049), + 88: uint16(32905), + 89: uint16(34425), + 90: uint16(24319), + 91: uint16(26085), + 92: uint16(20083), + 93: uint16(20837), + }, + 38: { + 0: uint16(22914), + 1: uint16(23615), + 2: uint16(38894), + 3: uint16(20219), + 4: uint16(22922), + 5: uint16(24525), + 6: uint16(35469), + 7: uint16(28641), + 8: uint16(31152), + 9: uint16(31074), + 10: uint16(23527), + 11: uint16(33905), + 12: uint16(29483), + 13: uint16(29105), + 14: uint16(24180), + 15: uint16(24565), + 16: uint16(25467), + 17: uint16(25754), + 18: uint16(29123), + 19: uint16(31896), + 20: uint16(20035), + 21: uint16(24316), + 22: uint16(20043), + 23: uint16(22492), + 24: uint16(22178), + 25: uint16(24745), + 26: uint16(28611), + 27: uint16(32013), + 28: uint16(33021), + 29: uint16(33075), + 30: uint16(33215), + 31: uint16(36786), + 32: uint16(35223), + 33: uint16(34468), + 34: uint16(24052), + 35: uint16(25226), + 36: uint16(25773), + 37: uint16(35207), + 38: uint16(26487), + 39: uint16(27874), + 40: uint16(27966), + 41: uint16(29750), + 42: uint16(30772), + 43: uint16(23110), + 44: uint16(32629), + 45: uint16(33453), + 46: uint16(39340), + 47: uint16(20467), + 48: uint16(24259), + 49: uint16(25309), + 50: uint16(25490), + 51: uint16(25943), + 52: uint16(26479), + 53: uint16(30403), + 54: uint16(29260), + 55: uint16(32972), + 56: uint16(32954), + 57: uint16(36649), + 58: uint16(37197), + 59: uint16(20493), + 60: uint16(22521), + 61: uint16(23186), + 62: uint16(26757), + 63: uint16(26995), + 64: uint16(29028), + 65: uint16(29437), + 66: uint16(36023), + 67: uint16(22770), + 68: uint16(36064), + 69: uint16(38506), + 70: uint16(36889), + 71: uint16(34687), + 72: uint16(31204), + 73: uint16(30695), + 74: uint16(33833), + 75: uint16(20271), + 76: uint16(21093), + 77: uint16(21338), + 78: uint16(25293), + 79: uint16(26575), + 80: uint16(27850), + 81: uint16(30333), + 82: uint16(31636), + 83: uint16(31893), + 84: uint16(33334), + 85: uint16(34180), + 86: uint16(36843), + 87: uint16(26333), + 88: uint16(28448), + 89: uint16(29190), + 90: uint16(32283), + 91: uint16(33707), + 92: uint16(39361), + 93: uint16(40614), + }, + 39: { + 0: uint16(20989), + 1: uint16(31665), + 2: uint16(30834), + 3: uint16(31672), + 4: uint16(32903), + 5: uint16(31560), + 6: uint16(27368), + 7: uint16(24161), + 8: uint16(32908), + 9: uint16(30033), + 10: uint16(30048), + 11: uint16(20843), + 12: uint16(37474), + 13: uint16(28300), + 14: uint16(30330), + 15: uint16(37271), + 16: uint16(39658), + 17: uint16(20240), + 18: uint16(32624), + 19: uint16(25244), + 20: uint16(31567), + 21: uint16(38309), + 22: uint16(40169), + 23: uint16(22138), + 24: uint16(22617), + 25: uint16(34532), + 26: uint16(38588), + 27: uint16(20276), + 28: uint16(21028), + 29: uint16(21322), + 30: uint16(21453), + 31: uint16(21467), + 32: uint16(24070), + 33: uint16(25644), + 34: uint16(26001), + 35: uint16(26495), + 36: uint16(27710), + 37: uint16(27726), + 38: uint16(29256), + 39: uint16(29359), + 40: uint16(29677), + 41: uint16(30036), + 42: uint16(32321), + 43: uint16(33324), + 44: uint16(34281), + 45: uint16(36009), + 46: uint16(31684), + 47: uint16(37318), + 48: uint16(29033), + 49: uint16(38930), + 50: uint16(39151), + 51: uint16(25405), + 52: uint16(26217), + 53: uint16(30058), + 54: uint16(30436), + 55: uint16(30928), + 56: uint16(34115), + 57: uint16(34542), + 58: uint16(21290), + 59: uint16(21329), + 60: uint16(21542), + 61: uint16(22915), + 62: uint16(24199), + 63: uint16(24444), + 64: uint16(24754), + 65: uint16(25161), + 66: uint16(25209), + 67: uint16(25259), + 68: uint16(26000), + 69: uint16(27604), + 70: uint16(27852), + 71: uint16(30130), + 72: uint16(30382), + 73: uint16(30865), + 74: uint16(31192), + 75: uint16(32203), + 76: uint16(32631), + 77: uint16(32933), + 78: uint16(34987), + 79: uint16(35513), + 80: uint16(36027), + 81: uint16(36991), + 82: uint16(38750), + 83: uint16(39131), + 84: uint16(27147), + 85: uint16(31800), + 86: uint16(20633), + 87: uint16(23614), + 88: uint16(24494), + 89: uint16(26503), + 90: uint16(27608), + 91: uint16(29749), + 92: uint16(30473), + 93: uint16(32654), + }, + 40: { + 0: uint16(40763), + 1: uint16(26570), + 2: uint16(31255), + 3: uint16(21305), + 4: uint16(30091), + 5: uint16(39661), + 6: uint16(24422), + 7: uint16(33181), + 8: uint16(33777), + 9: uint16(32920), + 10: uint16(24380), + 11: uint16(24517), + 12: uint16(30050), + 13: uint16(31558), + 14: uint16(36924), + 15: uint16(26727), + 16: uint16(23019), + 17: uint16(23195), + 18: uint16(32016), + 19: uint16(30334), + 20: uint16(35628), + 21: uint16(20469), + 22: uint16(24426), + 23: uint16(27161), + 24: uint16(27703), + 25: uint16(28418), + 26: uint16(29922), + 27: uint16(31080), + 28: uint16(34920), + 29: uint16(35413), + 30: uint16(35961), + 31: uint16(24287), + 32: uint16(25551), + 33: uint16(30149), + 34: uint16(31186), + 35: uint16(33495), + 36: uint16(37672), + 37: uint16(37618), + 38: uint16(33948), + 39: uint16(34541), + 40: uint16(39981), + 41: uint16(21697), + 42: uint16(24428), + 43: uint16(25996), + 44: uint16(27996), + 45: uint16(28693), + 46: uint16(36007), + 47: uint16(36051), + 48: uint16(38971), + 49: uint16(25935), + 50: uint16(29942), + 51: uint16(19981), + 52: uint16(20184), + 53: uint16(22496), + 54: uint16(22827), + 55: uint16(23142), + 56: uint16(23500), + 57: uint16(20904), + 58: uint16(24067), + 59: uint16(24220), + 60: uint16(24598), + 61: uint16(25206), + 62: uint16(25975), + 63: uint16(26023), + 64: uint16(26222), + 65: uint16(28014), + 66: uint16(29238), + 67: uint16(31526), + 68: uint16(33104), + 69: uint16(33178), + 70: uint16(33433), + 71: uint16(35676), + 72: uint16(36000), + 73: uint16(36070), + 74: uint16(36212), + 75: uint16(38428), + 76: uint16(38468), + 77: uint16(20398), + 78: uint16(25771), + 79: uint16(27494), + 80: uint16(33310), + 81: uint16(33889), + 82: uint16(34154), + 83: uint16(37096), + 84: uint16(23553), + 85: uint16(26963), + 86: uint16(39080), + 87: uint16(33914), + 88: uint16(34135), + 89: uint16(20239), + 90: uint16(21103), + 91: uint16(24489), + 92: uint16(24133), + 93: uint16(26381), + }, + 41: { + 0: uint16(31119), + 1: uint16(33145), + 2: uint16(35079), + 3: uint16(35206), + 4: uint16(28149), + 5: uint16(24343), + 6: uint16(25173), + 7: uint16(27832), + 8: uint16(20175), + 9: uint16(29289), + 10: uint16(39826), + 11: uint16(20998), + 12: uint16(21563), + 13: uint16(22132), + 14: uint16(22707), + 15: uint16(24996), + 16: uint16(25198), + 17: uint16(28954), + 18: uint16(22894), + 19: uint16(31881), + 20: uint16(31966), + 21: uint16(32027), + 22: uint16(38640), + 23: uint16(25991), + 24: uint16(32862), + 25: uint16(19993), + 26: uint16(20341), + 27: uint16(20853), + 28: uint16(22592), + 29: uint16(24163), + 30: uint16(24179), + 31: uint16(24330), + 32: uint16(26564), + 33: uint16(20006), + 34: uint16(34109), + 35: uint16(38281), + 36: uint16(38491), + 37: uint16(31859), + 38: uint16(38913), + 39: uint16(20731), + 40: uint16(22721), + 41: uint16(30294), + 42: uint16(30887), + 43: uint16(21029), + 44: uint16(30629), + 45: uint16(34065), + 46: uint16(31622), + 47: uint16(20559), + 48: uint16(22793), + 49: uint16(29255), + 50: uint16(31687), + 51: uint16(32232), + 52: uint16(36794), + 53: uint16(36820), + 54: uint16(36941), + 55: uint16(20415), + 56: uint16(21193), + 57: uint16(23081), + 58: uint16(24321), + 59: uint16(38829), + 60: uint16(20445), + 61: uint16(33303), + 62: uint16(37610), + 63: uint16(22275), + 64: uint16(25429), + 65: uint16(27497), + 66: uint16(29995), + 67: uint16(35036), + 68: uint16(36628), + 69: uint16(31298), + 70: uint16(21215), + 71: uint16(22675), + 72: uint16(24917), + 73: uint16(25098), + 74: uint16(26286), + 75: uint16(27597), + 76: uint16(31807), + 77: uint16(33769), + 78: uint16(20515), + 79: uint16(20472), + 80: uint16(21253), + 81: uint16(21574), + 82: uint16(22577), + 83: uint16(22857), + 84: uint16(23453), + 85: uint16(23792), + 86: uint16(23791), + 87: uint16(23849), + 88: uint16(24214), + 89: uint16(25265), + 90: uint16(25447), + 91: uint16(25918), + 92: uint16(26041), + 93: uint16(26379), + }, + 42: { + 0: uint16(27861), + 1: uint16(27873), + 2: uint16(28921), + 3: uint16(30770), + 4: uint16(32299), + 5: uint16(32990), + 6: uint16(33459), + 7: uint16(33804), + 8: uint16(34028), + 9: uint16(34562), + 10: uint16(35090), + 11: uint16(35370), + 12: uint16(35914), + 13: uint16(37030), + 14: uint16(37586), + 15: uint16(39165), + 16: uint16(40179), + 17: uint16(40300), + 18: uint16(20047), + 19: uint16(20129), + 20: uint16(20621), + 21: uint16(21078), + 22: uint16(22346), + 23: uint16(22952), + 24: uint16(24125), + 25: uint16(24536), + 26: uint16(24537), + 27: uint16(25151), + 28: uint16(26292), + 29: uint16(26395), + 30: uint16(26576), + 31: uint16(26834), + 32: uint16(20882), + 33: uint16(32033), + 34: uint16(32938), + 35: uint16(33192), + 36: uint16(35584), + 37: uint16(35980), + 38: uint16(36031), + 39: uint16(37502), + 40: uint16(38450), + 41: uint16(21536), + 42: uint16(38956), + 43: uint16(21271), + 44: uint16(20693), + 45: uint16(21340), + 46: uint16(22696), + 47: uint16(25778), + 48: uint16(26420), + 49: uint16(29287), + 50: uint16(30566), + 51: uint16(31302), + 52: uint16(37350), + 53: uint16(21187), + 54: uint16(27809), + 55: uint16(27526), + 56: uint16(22528), + 57: uint16(24140), + 58: uint16(22868), + 59: uint16(26412), + 60: uint16(32763), + 61: uint16(20961), + 62: uint16(30406), + 63: uint16(25705), + 64: uint16(30952), + 65: uint16(39764), + 66: uint16(40635), + 67: uint16(22475), + 68: uint16(22969), + 69: uint16(26151), + 70: uint16(26522), + 71: uint16(27598), + 72: uint16(21737), + 73: uint16(27097), + 74: uint16(24149), + 75: uint16(33180), + 76: uint16(26517), + 77: uint16(39850), + 78: uint16(26622), + 79: uint16(40018), + 80: uint16(26717), + 81: uint16(20134), + 82: uint16(20451), + 83: uint16(21448), + 84: uint16(25273), + 85: uint16(26411), + 86: uint16(27819), + 87: uint16(36804), + 88: uint16(20397), + 89: uint16(32365), + 90: uint16(40639), + 91: uint16(19975), + 92: uint16(24930), + 93: uint16(28288), + }, + 43: { + 0: uint16(28459), + 1: uint16(34067), + 2: uint16(21619), + 3: uint16(26410), + 4: uint16(39749), + 5: uint16(24051), + 6: uint16(31637), + 7: uint16(23724), + 8: uint16(23494), + 9: uint16(34588), + 10: uint16(28234), + 11: uint16(34001), + 12: uint16(31252), + 13: uint16(33032), + 14: uint16(22937), + 15: uint16(31885), + 16: uint16(27665), + 17: uint16(30496), + 18: uint16(21209), + 19: uint16(22818), + 20: uint16(28961), + 21: uint16(29279), + 22: uint16(30683), + 23: uint16(38695), + 24: uint16(40289), + 25: uint16(26891), + 26: uint16(23167), + 27: uint16(23064), + 28: uint16(20901), + 29: uint16(21517), + 30: uint16(21629), + 31: uint16(26126), + 32: uint16(30431), + 33: uint16(36855), + 34: uint16(37528), + 35: uint16(40180), + 36: uint16(23018), + 37: uint16(29277), + 38: uint16(28357), + 39: uint16(20813), + 40: uint16(26825), + 41: uint16(32191), + 42: uint16(32236), + 43: uint16(38754), + 44: uint16(40634), + 45: uint16(25720), + 46: uint16(27169), + 47: uint16(33538), + 48: uint16(22916), + 49: uint16(23391), + 50: uint16(27611), + 51: uint16(29467), + 52: uint16(30450), + 53: uint16(32178), + 54: uint16(32791), + 55: uint16(33945), + 56: uint16(20786), + 57: uint16(26408), + 58: uint16(40665), + 59: uint16(30446), + 60: uint16(26466), + 61: uint16(21247), + 62: uint16(39173), + 63: uint16(23588), + 64: uint16(25147), + 65: uint16(31870), + 66: uint16(36016), + 67: uint16(21839), + 68: uint16(24758), + 69: uint16(32011), + 70: uint16(38272), + 71: uint16(21249), + 72: uint16(20063), + 73: uint16(20918), + 74: uint16(22812), + 75: uint16(29242), + 76: uint16(32822), + 77: uint16(37326), + 78: uint16(24357), + 79: uint16(30690), + 80: uint16(21380), + 81: uint16(24441), + 82: uint16(32004), + 83: uint16(34220), + 84: uint16(35379), + 85: uint16(36493), + 86: uint16(38742), + 87: uint16(26611), + 88: uint16(34222), + 89: uint16(37971), + 90: uint16(24841), + 91: uint16(24840), + 92: uint16(27833), + 93: uint16(30290), + }, + 44: { + 0: uint16(35565), + 1: uint16(36664), + 2: uint16(21807), + 3: uint16(20305), + 4: uint16(20778), + 5: uint16(21191), + 6: uint16(21451), + 7: uint16(23461), + 8: uint16(24189), + 9: uint16(24736), + 10: uint16(24962), + 11: uint16(25558), + 12: uint16(26377), + 13: uint16(26586), + 14: uint16(28263), + 15: uint16(28044), + 16: uint16(29494), + 17: uint16(29495), + 18: uint16(30001), + 19: uint16(31056), + 20: uint16(35029), + 21: uint16(35480), + 22: uint16(36938), + 23: uint16(37009), + 24: uint16(37109), + 25: uint16(38596), + 26: uint16(34701), + 27: uint16(22805), + 28: uint16(20104), + 29: uint16(20313), + 30: uint16(19982), + 31: uint16(35465), + 32: uint16(36671), + 33: uint16(38928), + 34: uint16(20653), + 35: uint16(24188), + 36: uint16(22934), + 37: uint16(23481), + 38: uint16(24248), + 39: uint16(25562), + 40: uint16(25594), + 41: uint16(25793), + 42: uint16(26332), + 43: uint16(26954), + 44: uint16(27096), + 45: uint16(27915), + 46: uint16(28342), + 47: uint16(29076), + 48: uint16(29992), + 49: uint16(31407), + 50: uint16(32650), + 51: uint16(32768), + 52: uint16(33865), + 53: uint16(33993), + 54: uint16(35201), + 55: uint16(35617), + 56: uint16(36362), + 57: uint16(36965), + 58: uint16(38525), + 59: uint16(39178), + 60: uint16(24958), + 61: uint16(25233), + 62: uint16(27442), + 63: uint16(27779), + 64: uint16(28020), + 65: uint16(32716), + 66: uint16(32764), + 67: uint16(28096), + 68: uint16(32645), + 69: uint16(34746), + 70: uint16(35064), + 71: uint16(26469), + 72: uint16(33713), + 73: uint16(38972), + 74: uint16(38647), + 75: uint16(27931), + 76: uint16(32097), + 77: uint16(33853), + 78: uint16(37226), + 79: uint16(20081), + 80: uint16(21365), + 81: uint16(23888), + 82: uint16(27396), + 83: uint16(28651), + 84: uint16(34253), + 85: uint16(34349), + 86: uint16(35239), + 87: uint16(21033), + 88: uint16(21519), + 89: uint16(23653), + 90: uint16(26446), + 91: uint16(26792), + 92: uint16(29702), + 93: uint16(29827), + }, + 45: { + 0: uint16(30178), + 1: uint16(35023), + 2: uint16(35041), + 3: uint16(37324), + 4: uint16(38626), + 5: uint16(38520), + 6: uint16(24459), + 7: uint16(29575), + 8: uint16(31435), + 9: uint16(33870), + 10: uint16(25504), + 11: uint16(30053), + 12: uint16(21129), + 13: uint16(27969), + 14: uint16(28316), + 15: uint16(29705), + 16: uint16(30041), + 17: uint16(30827), + 18: uint16(31890), + 19: uint16(38534), + 20: uint16(31452), + 21: uint16(40845), + 22: uint16(20406), + 23: uint16(24942), + 24: uint16(26053), + 25: uint16(34396), + 26: uint16(20102), + 27: uint16(20142), + 28: uint16(20698), + 29: uint16(20001), + 30: uint16(20940), + 31: uint16(23534), + 32: uint16(26009), + 33: uint16(26753), + 34: uint16(28092), + 35: uint16(29471), + 36: uint16(30274), + 37: uint16(30637), + 38: uint16(31260), + 39: uint16(31975), + 40: uint16(33391), + 41: uint16(35538), + 42: uint16(36988), + 43: uint16(37327), + 44: uint16(38517), + 45: uint16(38936), + 46: uint16(21147), + 47: uint16(32209), + 48: uint16(20523), + 49: uint16(21400), + 50: uint16(26519), + 51: uint16(28107), + 52: uint16(29136), + 53: uint16(29747), + 54: uint16(33256), + 55: uint16(36650), + 56: uint16(38563), + 57: uint16(40023), + 58: uint16(40607), + 59: uint16(29792), + 60: uint16(22593), + 61: uint16(28057), + 62: uint16(32047), + 63: uint16(39006), + 64: uint16(20196), + 65: uint16(20278), + 66: uint16(20363), + 67: uint16(20919), + 68: uint16(21169), + 69: uint16(23994), + 70: uint16(24604), + 71: uint16(29618), + 72: uint16(31036), + 73: uint16(33491), + 74: uint16(37428), + 75: uint16(38583), + 76: uint16(38646), + 77: uint16(38666), + 78: uint16(40599), + 79: uint16(40802), + 80: uint16(26278), + 81: uint16(27508), + 82: uint16(21015), + 83: uint16(21155), + 84: uint16(28872), + 85: uint16(35010), + 86: uint16(24265), + 87: uint16(24651), + 88: uint16(24976), + 89: uint16(28451), + 90: uint16(29001), + 91: uint16(31806), + 92: uint16(32244), + 93: uint16(32879), + }, + 46: { + 0: uint16(34030), + 1: uint16(36899), + 2: uint16(37676), + 3: uint16(21570), + 4: uint16(39791), + 5: uint16(27347), + 6: uint16(28809), + 7: uint16(36034), + 8: uint16(36335), + 9: uint16(38706), + 10: uint16(21172), + 11: uint16(23105), + 12: uint16(24266), + 13: uint16(24324), + 14: uint16(26391), + 15: uint16(27004), + 16: uint16(27028), + 17: uint16(28010), + 18: uint16(28431), + 19: uint16(29282), + 20: uint16(29436), + 21: uint16(31725), + 22: uint16(32769), + 23: uint16(32894), + 24: uint16(34635), + 25: uint16(37070), + 26: uint16(20845), + 27: uint16(40595), + 28: uint16(31108), + 29: uint16(32907), + 30: uint16(37682), + 31: uint16(35542), + 32: uint16(20525), + 33: uint16(21644), + 34: uint16(35441), + 35: uint16(27498), + 36: uint16(36036), + 37: uint16(33031), + 38: uint16(24785), + 39: uint16(26528), + 40: uint16(40434), + 41: uint16(20121), + 42: uint16(20120), + 43: uint16(39952), + 44: uint16(35435), + 45: uint16(34241), + 46: uint16(34152), + 47: uint16(26880), + 48: uint16(28286), + 49: uint16(30871), + 50: uint16(33109), + }, + 47: { + 0: uint16(24332), + 1: uint16(19984), + 2: uint16(19989), + 3: uint16(20010), + 4: uint16(20017), + 5: uint16(20022), + 6: uint16(20028), + 7: uint16(20031), + 8: uint16(20034), + 9: uint16(20054), + 10: uint16(20056), + 11: uint16(20098), + 12: uint16(20101), + 13: uint16(35947), + 14: uint16(20106), + 15: uint16(33298), + 16: uint16(24333), + 17: uint16(20110), + 18: uint16(20126), + 19: uint16(20127), + 20: uint16(20128), + 21: uint16(20130), + 22: uint16(20144), + 23: uint16(20147), + 24: uint16(20150), + 25: uint16(20174), + 26: uint16(20173), + 27: uint16(20164), + 28: uint16(20166), + 29: uint16(20162), + 30: uint16(20183), + 31: uint16(20190), + 32: uint16(20205), + 33: uint16(20191), + 34: uint16(20215), + 35: uint16(20233), + 36: uint16(20314), + 37: uint16(20272), + 38: uint16(20315), + 39: uint16(20317), + 40: uint16(20311), + 41: uint16(20295), + 42: uint16(20342), + 43: uint16(20360), + 44: uint16(20367), + 45: uint16(20376), + 46: uint16(20347), + 47: uint16(20329), + 48: uint16(20336), + 49: uint16(20369), + 50: uint16(20335), + 51: uint16(20358), + 52: uint16(20374), + 53: uint16(20760), + 54: uint16(20436), + 55: uint16(20447), + 56: uint16(20430), + 57: uint16(20440), + 58: uint16(20443), + 59: uint16(20433), + 60: uint16(20442), + 61: uint16(20432), + 62: uint16(20452), + 63: uint16(20453), + 64: uint16(20506), + 65: uint16(20520), + 66: uint16(20500), + 67: uint16(20522), + 68: uint16(20517), + 69: uint16(20485), + 70: uint16(20252), + 71: uint16(20470), + 72: uint16(20513), + 73: uint16(20521), + 74: uint16(20524), + 75: uint16(20478), + 76: uint16(20463), + 77: uint16(20497), + 78: uint16(20486), + 79: uint16(20547), + 80: uint16(20551), + 81: uint16(26371), + 82: uint16(20565), + 83: uint16(20560), + 84: uint16(20552), + 85: uint16(20570), + 86: uint16(20566), + 87: uint16(20588), + 88: uint16(20600), + 89: uint16(20608), + 90: uint16(20634), + 91: uint16(20613), + 92: uint16(20660), + 93: uint16(20658), + }, + 48: { + 0: uint16(20681), + 1: uint16(20682), + 2: uint16(20659), + 3: uint16(20674), + 4: uint16(20694), + 5: uint16(20702), + 6: uint16(20709), + 7: uint16(20717), + 8: uint16(20707), + 9: uint16(20718), + 10: uint16(20729), + 11: uint16(20725), + 12: uint16(20745), + 13: uint16(20737), + 14: uint16(20738), + 15: uint16(20758), + 16: uint16(20757), + 17: uint16(20756), + 18: uint16(20762), + 19: uint16(20769), + 20: uint16(20794), + 21: uint16(20791), + 22: uint16(20796), + 23: uint16(20795), + 24: uint16(20799), + 25: uint16(20800), + 26: uint16(20818), + 27: uint16(20812), + 28: uint16(20820), + 29: uint16(20834), + 30: uint16(31480), + 31: uint16(20841), + 32: uint16(20842), + 33: uint16(20846), + 34: uint16(20864), + 35: uint16(20866), + 36: uint16(22232), + 37: uint16(20876), + 38: uint16(20873), + 39: uint16(20879), + 40: uint16(20881), + 41: uint16(20883), + 42: uint16(20885), + 43: uint16(20886), + 44: uint16(20900), + 45: uint16(20902), + 46: uint16(20898), + 47: uint16(20905), + 48: uint16(20906), + 49: uint16(20907), + 50: uint16(20915), + 51: uint16(20913), + 52: uint16(20914), + 53: uint16(20912), + 54: uint16(20917), + 55: uint16(20925), + 56: uint16(20933), + 57: uint16(20937), + 58: uint16(20955), + 59: uint16(20960), + 60: uint16(34389), + 61: uint16(20969), + 62: uint16(20973), + 63: uint16(20976), + 64: uint16(20981), + 65: uint16(20990), + 66: uint16(20996), + 67: uint16(21003), + 68: uint16(21012), + 69: uint16(21006), + 70: uint16(21031), + 71: uint16(21034), + 72: uint16(21038), + 73: uint16(21043), + 74: uint16(21049), + 75: uint16(21071), + 76: uint16(21060), + 77: uint16(21067), + 78: uint16(21068), + 79: uint16(21086), + 80: uint16(21076), + 81: uint16(21098), + 82: uint16(21108), + 83: uint16(21097), + 84: uint16(21107), + 85: uint16(21119), + 86: uint16(21117), + 87: uint16(21133), + 88: uint16(21140), + 89: uint16(21138), + 90: uint16(21105), + 91: uint16(21128), + 92: uint16(21137), + 93: uint16(36776), + }, + 49: { + 0: uint16(36775), + 1: uint16(21164), + 2: uint16(21165), + 3: uint16(21180), + 4: uint16(21173), + 5: uint16(21185), + 6: uint16(21197), + 7: uint16(21207), + 8: uint16(21214), + 9: uint16(21219), + 10: uint16(21222), + 11: uint16(39149), + 12: uint16(21216), + 13: uint16(21235), + 14: uint16(21237), + 15: uint16(21240), + 16: uint16(21241), + 17: uint16(21254), + 18: uint16(21256), + 19: uint16(30008), + 20: uint16(21261), + 21: uint16(21264), + 22: uint16(21263), + 23: uint16(21269), + 24: uint16(21274), + 25: uint16(21283), + 26: uint16(21295), + 27: uint16(21297), + 28: uint16(21299), + 29: uint16(21304), + 30: uint16(21312), + 31: uint16(21318), + 32: uint16(21317), + 33: uint16(19991), + 34: uint16(21321), + 35: uint16(21325), + 36: uint16(20950), + 37: uint16(21342), + 38: uint16(21353), + 39: uint16(21358), + 40: uint16(22808), + 41: uint16(21371), + 42: uint16(21367), + 43: uint16(21378), + 44: uint16(21398), + 45: uint16(21408), + 46: uint16(21414), + 47: uint16(21413), + 48: uint16(21422), + 49: uint16(21424), + 50: uint16(21430), + 51: uint16(21443), + 52: uint16(31762), + 53: uint16(38617), + 54: uint16(21471), + 55: uint16(26364), + 56: uint16(29166), + 57: uint16(21486), + 58: uint16(21480), + 59: uint16(21485), + 60: uint16(21498), + 61: uint16(21505), + 62: uint16(21565), + 63: uint16(21568), + 64: uint16(21548), + 65: uint16(21549), + 66: uint16(21564), + 67: uint16(21550), + 68: uint16(21558), + 69: uint16(21545), + 70: uint16(21533), + 71: uint16(21582), + 72: uint16(21647), + 73: uint16(21621), + 74: uint16(21646), + 75: uint16(21599), + 76: uint16(21617), + 77: uint16(21623), + 78: uint16(21616), + 79: uint16(21650), + 80: uint16(21627), + 81: uint16(21632), + 82: uint16(21622), + 83: uint16(21636), + 84: uint16(21648), + 85: uint16(21638), + 86: uint16(21703), + 87: uint16(21666), + 88: uint16(21688), + 89: uint16(21669), + 90: uint16(21676), + 91: uint16(21700), + 92: uint16(21704), + 93: uint16(21672), + }, + 50: { + 0: uint16(21675), + 1: uint16(21698), + 2: uint16(21668), + 3: uint16(21694), + 4: uint16(21692), + 5: uint16(21720), + 6: uint16(21733), + 7: uint16(21734), + 8: uint16(21775), + 9: uint16(21780), + 10: uint16(21757), + 11: uint16(21742), + 12: uint16(21741), + 13: uint16(21754), + 14: uint16(21730), + 15: uint16(21817), + 16: uint16(21824), + 17: uint16(21859), + 18: uint16(21836), + 19: uint16(21806), + 20: uint16(21852), + 21: uint16(21829), + 22: uint16(21846), + 23: uint16(21847), + 24: uint16(21816), + 25: uint16(21811), + 26: uint16(21853), + 27: uint16(21913), + 28: uint16(21888), + 29: uint16(21679), + 30: uint16(21898), + 31: uint16(21919), + 32: uint16(21883), + 33: uint16(21886), + 34: uint16(21912), + 35: uint16(21918), + 36: uint16(21934), + 37: uint16(21884), + 38: uint16(21891), + 39: uint16(21929), + 40: uint16(21895), + 41: uint16(21928), + 42: uint16(21978), + 43: uint16(21957), + 44: uint16(21983), + 45: uint16(21956), + 46: uint16(21980), + 47: uint16(21988), + 48: uint16(21972), + 49: uint16(22036), + 50: uint16(22007), + 51: uint16(22038), + 52: uint16(22014), + 53: uint16(22013), + 54: uint16(22043), + 55: uint16(22009), + 56: uint16(22094), + 57: uint16(22096), + 58: uint16(29151), + 59: uint16(22068), + 60: uint16(22070), + 61: uint16(22066), + 62: uint16(22072), + 63: uint16(22123), + 64: uint16(22116), + 65: uint16(22063), + 66: uint16(22124), + 67: uint16(22122), + 68: uint16(22150), + 69: uint16(22144), + 70: uint16(22154), + 71: uint16(22176), + 72: uint16(22164), + 73: uint16(22159), + 74: uint16(22181), + 75: uint16(22190), + 76: uint16(22198), + 77: uint16(22196), + 78: uint16(22210), + 79: uint16(22204), + 80: uint16(22209), + 81: uint16(22211), + 82: uint16(22208), + 83: uint16(22216), + 84: uint16(22222), + 85: uint16(22225), + 86: uint16(22227), + 87: uint16(22231), + 88: uint16(22254), + 89: uint16(22265), + 90: uint16(22272), + 91: uint16(22271), + 92: uint16(22276), + 93: uint16(22281), + }, + 51: { + 0: uint16(22280), + 1: uint16(22283), + 2: uint16(22285), + 3: uint16(22291), + 4: uint16(22296), + 5: uint16(22294), + 6: uint16(21959), + 7: uint16(22300), + 8: uint16(22310), + 9: uint16(22327), + 10: uint16(22328), + 11: uint16(22350), + 12: uint16(22331), + 13: uint16(22336), + 14: uint16(22351), + 15: uint16(22377), + 16: uint16(22464), + 17: uint16(22408), + 18: uint16(22369), + 19: uint16(22399), + 20: uint16(22409), + 21: uint16(22419), + 22: uint16(22432), + 23: uint16(22451), + 24: uint16(22436), + 25: uint16(22442), + 26: uint16(22448), + 27: uint16(22467), + 28: uint16(22470), + 29: uint16(22484), + 30: uint16(22482), + 31: uint16(22483), + 32: uint16(22538), + 33: uint16(22486), + 34: uint16(22499), + 35: uint16(22539), + 36: uint16(22553), + 37: uint16(22557), + 38: uint16(22642), + 39: uint16(22561), + 40: uint16(22626), + 41: uint16(22603), + 42: uint16(22640), + 43: uint16(27584), + 44: uint16(22610), + 45: uint16(22589), + 46: uint16(22649), + 47: uint16(22661), + 48: uint16(22713), + 49: uint16(22687), + 50: uint16(22699), + 51: uint16(22714), + 52: uint16(22750), + 53: uint16(22715), + 54: uint16(22712), + 55: uint16(22702), + 56: uint16(22725), + 57: uint16(22739), + 58: uint16(22737), + 59: uint16(22743), + 60: uint16(22745), + 61: uint16(22744), + 62: uint16(22757), + 63: uint16(22748), + 64: uint16(22756), + 65: uint16(22751), + 66: uint16(22767), + 67: uint16(22778), + 68: uint16(22777), + 69: uint16(22779), + 70: uint16(22780), + 71: uint16(22781), + 72: uint16(22786), + 73: uint16(22794), + 74: uint16(22800), + 75: uint16(22811), + 76: uint16(26790), + 77: uint16(22821), + 78: uint16(22828), + 79: uint16(22829), + 80: uint16(22834), + 81: uint16(22840), + 82: uint16(22846), + 83: uint16(31442), + 84: uint16(22869), + 85: uint16(22864), + 86: uint16(22862), + 87: uint16(22874), + 88: uint16(22872), + 89: uint16(22882), + 90: uint16(22880), + 91: uint16(22887), + 92: uint16(22892), + 93: uint16(22889), + }, + 52: { + 0: uint16(22904), + 1: uint16(22913), + 2: uint16(22941), + 3: uint16(20318), + 4: uint16(20395), + 5: uint16(22947), + 6: uint16(22962), + 7: uint16(22982), + 8: uint16(23016), + 9: uint16(23004), + 10: uint16(22925), + 11: uint16(23001), + 12: uint16(23002), + 13: uint16(23077), + 14: uint16(23071), + 15: uint16(23057), + 16: uint16(23068), + 17: uint16(23049), + 18: uint16(23066), + 19: uint16(23104), + 20: uint16(23148), + 21: uint16(23113), + 22: uint16(23093), + 23: uint16(23094), + 24: uint16(23138), + 25: uint16(23146), + 26: uint16(23194), + 27: uint16(23228), + 28: uint16(23230), + 29: uint16(23243), + 30: uint16(23234), + 31: uint16(23229), + 32: uint16(23267), + 33: uint16(23255), + 34: uint16(23270), + 35: uint16(23273), + 36: uint16(23254), + 37: uint16(23290), + 38: uint16(23291), + 39: uint16(23308), + 40: uint16(23307), + 41: uint16(23318), + 42: uint16(23346), + 43: uint16(23248), + 44: uint16(23338), + 45: uint16(23350), + 46: uint16(23358), + 47: uint16(23363), + 48: uint16(23365), + 49: uint16(23360), + 50: uint16(23377), + 51: uint16(23381), + 52: uint16(23386), + 53: uint16(23387), + 54: uint16(23397), + 55: uint16(23401), + 56: uint16(23408), + 57: uint16(23411), + 58: uint16(23413), + 59: uint16(23416), + 60: uint16(25992), + 61: uint16(23418), + 62: uint16(23424), + 63: uint16(23427), + 64: uint16(23462), + 65: uint16(23480), + 66: uint16(23491), + 67: uint16(23495), + 68: uint16(23497), + 69: uint16(23508), + 70: uint16(23504), + 71: uint16(23524), + 72: uint16(23526), + 73: uint16(23522), + 74: uint16(23518), + 75: uint16(23525), + 76: uint16(23531), + 77: uint16(23536), + 78: uint16(23542), + 79: uint16(23539), + 80: uint16(23557), + 81: uint16(23559), + 82: uint16(23560), + 83: uint16(23565), + 84: uint16(23571), + 85: uint16(23584), + 86: uint16(23586), + 87: uint16(23592), + 88: uint16(23608), + 89: uint16(23609), + 90: uint16(23617), + 91: uint16(23622), + 92: uint16(23630), + 93: uint16(23635), + }, + 53: { + 0: uint16(23632), + 1: uint16(23631), + 2: uint16(23409), + 3: uint16(23660), + 4: uint16(23662), + 5: uint16(20066), + 6: uint16(23670), + 7: uint16(23673), + 8: uint16(23692), + 9: uint16(23697), + 10: uint16(23700), + 11: uint16(22939), + 12: uint16(23723), + 13: uint16(23739), + 14: uint16(23734), + 15: uint16(23740), + 16: uint16(23735), + 17: uint16(23749), + 18: uint16(23742), + 19: uint16(23751), + 20: uint16(23769), + 21: uint16(23785), + 22: uint16(23805), + 23: uint16(23802), + 24: uint16(23789), + 25: uint16(23948), + 26: uint16(23786), + 27: uint16(23819), + 28: uint16(23829), + 29: uint16(23831), + 30: uint16(23900), + 31: uint16(23839), + 32: uint16(23835), + 33: uint16(23825), + 34: uint16(23828), + 35: uint16(23842), + 36: uint16(23834), + 37: uint16(23833), + 38: uint16(23832), + 39: uint16(23884), + 40: uint16(23890), + 41: uint16(23886), + 42: uint16(23883), + 43: uint16(23916), + 44: uint16(23923), + 45: uint16(23926), + 46: uint16(23943), + 47: uint16(23940), + 48: uint16(23938), + 49: uint16(23970), + 50: uint16(23965), + 51: uint16(23980), + 52: uint16(23982), + 53: uint16(23997), + 54: uint16(23952), + 55: uint16(23991), + 56: uint16(23996), + 57: uint16(24009), + 58: uint16(24013), + 59: uint16(24019), + 60: uint16(24018), + 61: uint16(24022), + 62: uint16(24027), + 63: uint16(24043), + 64: uint16(24050), + 65: uint16(24053), + 66: uint16(24075), + 67: uint16(24090), + 68: uint16(24089), + 69: uint16(24081), + 70: uint16(24091), + 71: uint16(24118), + 72: uint16(24119), + 73: uint16(24132), + 74: uint16(24131), + 75: uint16(24128), + 76: uint16(24142), + 77: uint16(24151), + 78: uint16(24148), + 79: uint16(24159), + 80: uint16(24162), + 81: uint16(24164), + 82: uint16(24135), + 83: uint16(24181), + 84: uint16(24182), + 85: uint16(24186), + 86: uint16(40636), + 87: uint16(24191), + 88: uint16(24224), + 89: uint16(24257), + 90: uint16(24258), + 91: uint16(24264), + 92: uint16(24272), + 93: uint16(24271), + }, + 54: { + 0: uint16(24278), + 1: uint16(24291), + 2: uint16(24285), + 3: uint16(24282), + 4: uint16(24283), + 5: uint16(24290), + 6: uint16(24289), + 7: uint16(24296), + 8: uint16(24297), + 9: uint16(24300), + 10: uint16(24305), + 11: uint16(24307), + 12: uint16(24304), + 13: uint16(24308), + 14: uint16(24312), + 15: uint16(24318), + 16: uint16(24323), + 17: uint16(24329), + 18: uint16(24413), + 19: uint16(24412), + 20: uint16(24331), + 21: uint16(24337), + 22: uint16(24342), + 23: uint16(24361), + 24: uint16(24365), + 25: uint16(24376), + 26: uint16(24385), + 27: uint16(24392), + 28: uint16(24396), + 29: uint16(24398), + 30: uint16(24367), + 31: uint16(24401), + 32: uint16(24406), + 33: uint16(24407), + 34: uint16(24409), + 35: uint16(24417), + 36: uint16(24429), + 37: uint16(24435), + 38: uint16(24439), + 39: uint16(24451), + 40: uint16(24450), + 41: uint16(24447), + 42: uint16(24458), + 43: uint16(24456), + 44: uint16(24465), + 45: uint16(24455), + 46: uint16(24478), + 47: uint16(24473), + 48: uint16(24472), + 49: uint16(24480), + 50: uint16(24488), + 51: uint16(24493), + 52: uint16(24508), + 53: uint16(24534), + 54: uint16(24571), + 55: uint16(24548), + 56: uint16(24568), + 57: uint16(24561), + 58: uint16(24541), + 59: uint16(24755), + 60: uint16(24575), + 61: uint16(24609), + 62: uint16(24672), + 63: uint16(24601), + 64: uint16(24592), + 65: uint16(24617), + 66: uint16(24590), + 67: uint16(24625), + 68: uint16(24603), + 69: uint16(24597), + 70: uint16(24619), + 71: uint16(24614), + 72: uint16(24591), + 73: uint16(24634), + 74: uint16(24666), + 75: uint16(24641), + 76: uint16(24682), + 77: uint16(24695), + 78: uint16(24671), + 79: uint16(24650), + 80: uint16(24646), + 81: uint16(24653), + 82: uint16(24675), + 83: uint16(24643), + 84: uint16(24676), + 85: uint16(24642), + 86: uint16(24684), + 87: uint16(24683), + 88: uint16(24665), + 89: uint16(24705), + 90: uint16(24717), + 91: uint16(24807), + 92: uint16(24707), + 93: uint16(24730), + }, + 55: { + 0: uint16(24708), + 1: uint16(24731), + 2: uint16(24726), + 3: uint16(24727), + 4: uint16(24722), + 5: uint16(24743), + 6: uint16(24715), + 7: uint16(24801), + 8: uint16(24760), + 9: uint16(24800), + 10: uint16(24787), + 11: uint16(24756), + 12: uint16(24560), + 13: uint16(24765), + 14: uint16(24774), + 15: uint16(24757), + 16: uint16(24792), + 17: uint16(24909), + 18: uint16(24853), + 19: uint16(24838), + 20: uint16(24822), + 21: uint16(24823), + 22: uint16(24832), + 23: uint16(24820), + 24: uint16(24826), + 25: uint16(24835), + 26: uint16(24865), + 27: uint16(24827), + 28: uint16(24817), + 29: uint16(24845), + 30: uint16(24846), + 31: uint16(24903), + 32: uint16(24894), + 33: uint16(24872), + 34: uint16(24871), + 35: uint16(24906), + 36: uint16(24895), + 37: uint16(24892), + 38: uint16(24876), + 39: uint16(24884), + 40: uint16(24893), + 41: uint16(24898), + 42: uint16(24900), + 43: uint16(24947), + 44: uint16(24951), + 45: uint16(24920), + 46: uint16(24921), + 47: uint16(24922), + 48: uint16(24939), + 49: uint16(24948), + 50: uint16(24943), + 51: uint16(24933), + 52: uint16(24945), + 53: uint16(24927), + 54: uint16(24925), + 55: uint16(24915), + 56: uint16(24949), + 57: uint16(24985), + 58: uint16(24982), + 59: uint16(24967), + 60: uint16(25004), + 61: uint16(24980), + 62: uint16(24986), + 63: uint16(24970), + 64: uint16(24977), + 65: uint16(25003), + 66: uint16(25006), + 67: uint16(25036), + 68: uint16(25034), + 69: uint16(25033), + 70: uint16(25079), + 71: uint16(25032), + 72: uint16(25027), + 73: uint16(25030), + 74: uint16(25018), + 75: uint16(25035), + 76: uint16(32633), + 77: uint16(25037), + 78: uint16(25062), + 79: uint16(25059), + 80: uint16(25078), + 81: uint16(25082), + 82: uint16(25076), + 83: uint16(25087), + 84: uint16(25085), + 85: uint16(25084), + 86: uint16(25086), + 87: uint16(25088), + 88: uint16(25096), + 89: uint16(25097), + 90: uint16(25101), + 91: uint16(25100), + 92: uint16(25108), + 93: uint16(25115), + }, + 56: { + 0: uint16(25118), + 1: uint16(25121), + 2: uint16(25130), + 3: uint16(25134), + 4: uint16(25136), + 5: uint16(25138), + 6: uint16(25139), + 7: uint16(25153), + 8: uint16(25166), + 9: uint16(25182), + 10: uint16(25187), + 11: uint16(25179), + 12: uint16(25184), + 13: uint16(25192), + 14: uint16(25212), + 15: uint16(25218), + 16: uint16(25225), + 17: uint16(25214), + 18: uint16(25234), + 19: uint16(25235), + 20: uint16(25238), + 21: uint16(25300), + 22: uint16(25219), + 23: uint16(25236), + 24: uint16(25303), + 25: uint16(25297), + 26: uint16(25275), + 27: uint16(25295), + 28: uint16(25343), + 29: uint16(25286), + 30: uint16(25812), + 31: uint16(25288), + 32: uint16(25308), + 33: uint16(25292), + 34: uint16(25290), + 35: uint16(25282), + 36: uint16(25287), + 37: uint16(25243), + 38: uint16(25289), + 39: uint16(25356), + 40: uint16(25326), + 41: uint16(25329), + 42: uint16(25383), + 43: uint16(25346), + 44: uint16(25352), + 45: uint16(25327), + 46: uint16(25333), + 47: uint16(25424), + 48: uint16(25406), + 49: uint16(25421), + 50: uint16(25628), + 51: uint16(25423), + 52: uint16(25494), + 53: uint16(25486), + 54: uint16(25472), + 55: uint16(25515), + 56: uint16(25462), + 57: uint16(25507), + 58: uint16(25487), + 59: uint16(25481), + 60: uint16(25503), + 61: uint16(25525), + 62: uint16(25451), + 63: uint16(25449), + 64: uint16(25534), + 65: uint16(25577), + 66: uint16(25536), + 67: uint16(25542), + 68: uint16(25571), + 69: uint16(25545), + 70: uint16(25554), + 71: uint16(25590), + 72: uint16(25540), + 73: uint16(25622), + 74: uint16(25652), + 75: uint16(25606), + 76: uint16(25619), + 77: uint16(25638), + 78: uint16(25654), + 79: uint16(25885), + 80: uint16(25623), + 81: uint16(25640), + 82: uint16(25615), + 83: uint16(25703), + 84: uint16(25711), + 85: uint16(25718), + 86: uint16(25678), + 87: uint16(25898), + 88: uint16(25749), + 89: uint16(25747), + 90: uint16(25765), + 91: uint16(25769), + 92: uint16(25736), + 93: uint16(25788), + }, + 57: { + 0: uint16(25818), + 1: uint16(25810), + 2: uint16(25797), + 3: uint16(25799), + 4: uint16(25787), + 5: uint16(25816), + 6: uint16(25794), + 7: uint16(25841), + 8: uint16(25831), + 9: uint16(33289), + 10: uint16(25824), + 11: uint16(25825), + 12: uint16(25260), + 13: uint16(25827), + 14: uint16(25839), + 15: uint16(25900), + 16: uint16(25846), + 17: uint16(25844), + 18: uint16(25842), + 19: uint16(25850), + 20: uint16(25856), + 21: uint16(25853), + 22: uint16(25880), + 23: uint16(25884), + 24: uint16(25861), + 25: uint16(25892), + 26: uint16(25891), + 27: uint16(25899), + 28: uint16(25908), + 29: uint16(25909), + 30: uint16(25911), + 31: uint16(25910), + 32: uint16(25912), + 33: uint16(30027), + 34: uint16(25928), + 35: uint16(25942), + 36: uint16(25941), + 37: uint16(25933), + 38: uint16(25944), + 39: uint16(25950), + 40: uint16(25949), + 41: uint16(25970), + 42: uint16(25976), + 43: uint16(25986), + 44: uint16(25987), + 45: uint16(35722), + 46: uint16(26011), + 47: uint16(26015), + 48: uint16(26027), + 49: uint16(26039), + 50: uint16(26051), + 51: uint16(26054), + 52: uint16(26049), + 53: uint16(26052), + 54: uint16(26060), + 55: uint16(26066), + 56: uint16(26075), + 57: uint16(26073), + 58: uint16(26080), + 59: uint16(26081), + 60: uint16(26097), + 61: uint16(26482), + 62: uint16(26122), + 63: uint16(26115), + 64: uint16(26107), + 65: uint16(26483), + 66: uint16(26165), + 67: uint16(26166), + 68: uint16(26164), + 69: uint16(26140), + 70: uint16(26191), + 71: uint16(26180), + 72: uint16(26185), + 73: uint16(26177), + 74: uint16(26206), + 75: uint16(26205), + 76: uint16(26212), + 77: uint16(26215), + 78: uint16(26216), + 79: uint16(26207), + 80: uint16(26210), + 81: uint16(26224), + 82: uint16(26243), + 83: uint16(26248), + 84: uint16(26254), + 85: uint16(26249), + 86: uint16(26244), + 87: uint16(26264), + 88: uint16(26269), + 89: uint16(26305), + 90: uint16(26297), + 91: uint16(26313), + 92: uint16(26302), + 93: uint16(26300), + }, + 58: { + 0: uint16(26308), + 1: uint16(26296), + 2: uint16(26326), + 3: uint16(26330), + 4: uint16(26336), + 5: uint16(26175), + 6: uint16(26342), + 7: uint16(26345), + 8: uint16(26352), + 9: uint16(26357), + 10: uint16(26359), + 11: uint16(26383), + 12: uint16(26390), + 13: uint16(26398), + 14: uint16(26406), + 15: uint16(26407), + 16: uint16(38712), + 17: uint16(26414), + 18: uint16(26431), + 19: uint16(26422), + 20: uint16(26433), + 21: uint16(26424), + 22: uint16(26423), + 23: uint16(26438), + 24: uint16(26462), + 25: uint16(26464), + 26: uint16(26457), + 27: uint16(26467), + 28: uint16(26468), + 29: uint16(26505), + 30: uint16(26480), + 31: uint16(26537), + 32: uint16(26492), + 33: uint16(26474), + 34: uint16(26508), + 35: uint16(26507), + 36: uint16(26534), + 37: uint16(26529), + 38: uint16(26501), + 39: uint16(26551), + 40: uint16(26607), + 41: uint16(26548), + 42: uint16(26604), + 43: uint16(26547), + 44: uint16(26601), + 45: uint16(26552), + 46: uint16(26596), + 47: uint16(26590), + 48: uint16(26589), + 49: uint16(26594), + 50: uint16(26606), + 51: uint16(26553), + 52: uint16(26574), + 53: uint16(26566), + 54: uint16(26599), + 55: uint16(27292), + 56: uint16(26654), + 57: uint16(26694), + 58: uint16(26665), + 59: uint16(26688), + 60: uint16(26701), + 61: uint16(26674), + 62: uint16(26702), + 63: uint16(26803), + 64: uint16(26667), + 65: uint16(26713), + 66: uint16(26723), + 67: uint16(26743), + 68: uint16(26751), + 69: uint16(26783), + 70: uint16(26767), + 71: uint16(26797), + 72: uint16(26772), + 73: uint16(26781), + 74: uint16(26779), + 75: uint16(26755), + 76: uint16(27310), + 77: uint16(26809), + 78: uint16(26740), + 79: uint16(26805), + 80: uint16(26784), + 81: uint16(26810), + 82: uint16(26895), + 83: uint16(26765), + 84: uint16(26750), + 85: uint16(26881), + 86: uint16(26826), + 87: uint16(26888), + 88: uint16(26840), + 89: uint16(26914), + 90: uint16(26918), + 91: uint16(26849), + 92: uint16(26892), + 93: uint16(26829), + }, + 59: { + 0: uint16(26836), + 1: uint16(26855), + 2: uint16(26837), + 3: uint16(26934), + 4: uint16(26898), + 5: uint16(26884), + 6: uint16(26839), + 7: uint16(26851), + 8: uint16(26917), + 9: uint16(26873), + 10: uint16(26848), + 11: uint16(26863), + 12: uint16(26920), + 13: uint16(26922), + 14: uint16(26906), + 15: uint16(26915), + 16: uint16(26913), + 17: uint16(26822), + 18: uint16(27001), + 19: uint16(26999), + 20: uint16(26972), + 21: uint16(27000), + 22: uint16(26987), + 23: uint16(26964), + 24: uint16(27006), + 25: uint16(26990), + 26: uint16(26937), + 27: uint16(26996), + 28: uint16(26941), + 29: uint16(26969), + 30: uint16(26928), + 31: uint16(26977), + 32: uint16(26974), + 33: uint16(26973), + 34: uint16(27009), + 35: uint16(26986), + 36: uint16(27058), + 37: uint16(27054), + 38: uint16(27088), + 39: uint16(27071), + 40: uint16(27073), + 41: uint16(27091), + 42: uint16(27070), + 43: uint16(27086), + 44: uint16(23528), + 45: uint16(27082), + 46: uint16(27101), + 47: uint16(27067), + 48: uint16(27075), + 49: uint16(27047), + 50: uint16(27182), + 51: uint16(27025), + 52: uint16(27040), + 53: uint16(27036), + 54: uint16(27029), + 55: uint16(27060), + 56: uint16(27102), + 57: uint16(27112), + 58: uint16(27138), + 59: uint16(27163), + 60: uint16(27135), + 61: uint16(27402), + 62: uint16(27129), + 63: uint16(27122), + 64: uint16(27111), + 65: uint16(27141), + 66: uint16(27057), + 67: uint16(27166), + 68: uint16(27117), + 69: uint16(27156), + 70: uint16(27115), + 71: uint16(27146), + 72: uint16(27154), + 73: uint16(27329), + 74: uint16(27171), + 75: uint16(27155), + 76: uint16(27204), + 77: uint16(27148), + 78: uint16(27250), + 79: uint16(27190), + 80: uint16(27256), + 81: uint16(27207), + 82: uint16(27234), + 83: uint16(27225), + 84: uint16(27238), + 85: uint16(27208), + 86: uint16(27192), + 87: uint16(27170), + 88: uint16(27280), + 89: uint16(27277), + 90: uint16(27296), + 91: uint16(27268), + 92: uint16(27298), + 93: uint16(27299), + }, + 60: { + 0: uint16(27287), + 1: uint16(34327), + 2: uint16(27323), + 3: uint16(27331), + 4: uint16(27330), + 5: uint16(27320), + 6: uint16(27315), + 7: uint16(27308), + 8: uint16(27358), + 9: uint16(27345), + 10: uint16(27359), + 11: uint16(27306), + 12: uint16(27354), + 13: uint16(27370), + 14: uint16(27387), + 15: uint16(27397), + 16: uint16(34326), + 17: uint16(27386), + 18: uint16(27410), + 19: uint16(27414), + 20: uint16(39729), + 21: uint16(27423), + 22: uint16(27448), + 23: uint16(27447), + 24: uint16(30428), + 25: uint16(27449), + 26: uint16(39150), + 27: uint16(27463), + 28: uint16(27459), + 29: uint16(27465), + 30: uint16(27472), + 31: uint16(27481), + 32: uint16(27476), + 33: uint16(27483), + 34: uint16(27487), + 35: uint16(27489), + 36: uint16(27512), + 37: uint16(27513), + 38: uint16(27519), + 39: uint16(27520), + 40: uint16(27524), + 41: uint16(27523), + 42: uint16(27533), + 43: uint16(27544), + 44: uint16(27541), + 45: uint16(27550), + 46: uint16(27556), + 47: uint16(27562), + 48: uint16(27563), + 49: uint16(27567), + 50: uint16(27570), + 51: uint16(27569), + 52: uint16(27571), + 53: uint16(27575), + 54: uint16(27580), + 55: uint16(27590), + 56: uint16(27595), + 57: uint16(27603), + 58: uint16(27615), + 59: uint16(27628), + 60: uint16(27627), + 61: uint16(27635), + 62: uint16(27631), + 63: uint16(40638), + 64: uint16(27656), + 65: uint16(27667), + 66: uint16(27668), + 67: uint16(27675), + 68: uint16(27684), + 69: uint16(27683), + 70: uint16(27742), + 71: uint16(27733), + 72: uint16(27746), + 73: uint16(27754), + 74: uint16(27778), + 75: uint16(27789), + 76: uint16(27802), + 77: uint16(27777), + 78: uint16(27803), + 79: uint16(27774), + 80: uint16(27752), + 81: uint16(27763), + 82: uint16(27794), + 83: uint16(27792), + 84: uint16(27844), + 85: uint16(27889), + 86: uint16(27859), + 87: uint16(27837), + 88: uint16(27863), + 89: uint16(27845), + 90: uint16(27869), + 91: uint16(27822), + 92: uint16(27825), + 93: uint16(27838), + }, + 61: { + 0: uint16(27834), + 1: uint16(27867), + 2: uint16(27887), + 3: uint16(27865), + 4: uint16(27882), + 5: uint16(27935), + 6: uint16(34893), + 7: uint16(27958), + 8: uint16(27947), + 9: uint16(27965), + 10: uint16(27960), + 11: uint16(27929), + 12: uint16(27957), + 13: uint16(27955), + 14: uint16(27922), + 15: uint16(27916), + 16: uint16(28003), + 17: uint16(28051), + 18: uint16(28004), + 19: uint16(27994), + 20: uint16(28025), + 21: uint16(27993), + 22: uint16(28046), + 23: uint16(28053), + 24: uint16(28644), + 25: uint16(28037), + 26: uint16(28153), + 27: uint16(28181), + 28: uint16(28170), + 29: uint16(28085), + 30: uint16(28103), + 31: uint16(28134), + 32: uint16(28088), + 33: uint16(28102), + 34: uint16(28140), + 35: uint16(28126), + 36: uint16(28108), + 37: uint16(28136), + 38: uint16(28114), + 39: uint16(28101), + 40: uint16(28154), + 41: uint16(28121), + 42: uint16(28132), + 43: uint16(28117), + 44: uint16(28138), + 45: uint16(28142), + 46: uint16(28205), + 47: uint16(28270), + 48: uint16(28206), + 49: uint16(28185), + 50: uint16(28274), + 51: uint16(28255), + 52: uint16(28222), + 53: uint16(28195), + 54: uint16(28267), + 55: uint16(28203), + 56: uint16(28278), + 57: uint16(28237), + 58: uint16(28191), + 59: uint16(28227), + 60: uint16(28218), + 61: uint16(28238), + 62: uint16(28196), + 63: uint16(28415), + 64: uint16(28189), + 65: uint16(28216), + 66: uint16(28290), + 67: uint16(28330), + 68: uint16(28312), + 69: uint16(28361), + 70: uint16(28343), + 71: uint16(28371), + 72: uint16(28349), + 73: uint16(28335), + 74: uint16(28356), + 75: uint16(28338), + 76: uint16(28372), + 77: uint16(28373), + 78: uint16(28303), + 79: uint16(28325), + 80: uint16(28354), + 81: uint16(28319), + 82: uint16(28481), + 83: uint16(28433), + 84: uint16(28748), + 85: uint16(28396), + 86: uint16(28408), + 87: uint16(28414), + 88: uint16(28479), + 89: uint16(28402), + 90: uint16(28465), + 91: uint16(28399), + 92: uint16(28466), + 93: uint16(28364), + }, + 62: { + 0: uint16(28478), + 1: uint16(28435), + 2: uint16(28407), + 3: uint16(28550), + 4: uint16(28538), + 5: uint16(28536), + 6: uint16(28545), + 7: uint16(28544), + 8: uint16(28527), + 9: uint16(28507), + 10: uint16(28659), + 11: uint16(28525), + 12: uint16(28546), + 13: uint16(28540), + 14: uint16(28504), + 15: uint16(28558), + 16: uint16(28561), + 17: uint16(28610), + 18: uint16(28518), + 19: uint16(28595), + 20: uint16(28579), + 21: uint16(28577), + 22: uint16(28580), + 23: uint16(28601), + 24: uint16(28614), + 25: uint16(28586), + 26: uint16(28639), + 27: uint16(28629), + 28: uint16(28652), + 29: uint16(28628), + 30: uint16(28632), + 31: uint16(28657), + 32: uint16(28654), + 33: uint16(28635), + 34: uint16(28681), + 35: uint16(28683), + 36: uint16(28666), + 37: uint16(28689), + 38: uint16(28673), + 39: uint16(28687), + 40: uint16(28670), + 41: uint16(28699), + 42: uint16(28698), + 43: uint16(28532), + 44: uint16(28701), + 45: uint16(28696), + 46: uint16(28703), + 47: uint16(28720), + 48: uint16(28734), + 49: uint16(28722), + 50: uint16(28753), + 51: uint16(28771), + 52: uint16(28825), + 53: uint16(28818), + 54: uint16(28847), + 55: uint16(28913), + 56: uint16(28844), + 57: uint16(28856), + 58: uint16(28851), + 59: uint16(28846), + 60: uint16(28895), + 61: uint16(28875), + 62: uint16(28893), + 63: uint16(28889), + 64: uint16(28937), + 65: uint16(28925), + 66: uint16(28956), + 67: uint16(28953), + 68: uint16(29029), + 69: uint16(29013), + 70: uint16(29064), + 71: uint16(29030), + 72: uint16(29026), + 73: uint16(29004), + 74: uint16(29014), + 75: uint16(29036), + 76: uint16(29071), + 77: uint16(29179), + 78: uint16(29060), + 79: uint16(29077), + 80: uint16(29096), + 81: uint16(29100), + 82: uint16(29143), + 83: uint16(29113), + 84: uint16(29118), + 85: uint16(29138), + 86: uint16(29129), + 87: uint16(29140), + 88: uint16(29134), + 89: uint16(29152), + 90: uint16(29164), + 91: uint16(29159), + 92: uint16(29173), + 93: uint16(29180), + }, + 63: { + 0: uint16(29177), + 1: uint16(29183), + 2: uint16(29197), + 3: uint16(29200), + 4: uint16(29211), + 5: uint16(29224), + 6: uint16(29229), + 7: uint16(29228), + 8: uint16(29232), + 9: uint16(29234), + 10: uint16(29243), + 11: uint16(29244), + 12: uint16(29247), + 13: uint16(29248), + 14: uint16(29254), + 15: uint16(29259), + 16: uint16(29272), + 17: uint16(29300), + 18: uint16(29310), + 19: uint16(29314), + 20: uint16(29313), + 21: uint16(29319), + 22: uint16(29330), + 23: uint16(29334), + 24: uint16(29346), + 25: uint16(29351), + 26: uint16(29369), + 27: uint16(29362), + 28: uint16(29379), + 29: uint16(29382), + 30: uint16(29380), + 31: uint16(29390), + 32: uint16(29394), + 33: uint16(29410), + 34: uint16(29408), + 35: uint16(29409), + 36: uint16(29433), + 37: uint16(29431), + 38: uint16(20495), + 39: uint16(29463), + 40: uint16(29450), + 41: uint16(29468), + 42: uint16(29462), + 43: uint16(29469), + 44: uint16(29492), + 45: uint16(29487), + 46: uint16(29481), + 47: uint16(29477), + 48: uint16(29502), + 49: uint16(29518), + 50: uint16(29519), + 51: uint16(40664), + 52: uint16(29527), + 53: uint16(29546), + 54: uint16(29544), + 55: uint16(29552), + 56: uint16(29560), + 57: uint16(29557), + 58: uint16(29563), + 59: uint16(29562), + 60: uint16(29640), + 61: uint16(29619), + 62: uint16(29646), + 63: uint16(29627), + 64: uint16(29632), + 65: uint16(29669), + 66: uint16(29678), + 67: uint16(29662), + 68: uint16(29858), + 69: uint16(29701), + 70: uint16(29807), + 71: uint16(29733), + 72: uint16(29688), + 73: uint16(29746), + 74: uint16(29754), + 75: uint16(29781), + 76: uint16(29759), + 77: uint16(29791), + 78: uint16(29785), + 79: uint16(29761), + 80: uint16(29788), + 81: uint16(29801), + 82: uint16(29808), + 83: uint16(29795), + 84: uint16(29802), + 85: uint16(29814), + 86: uint16(29822), + 87: uint16(29835), + 88: uint16(29854), + 89: uint16(29863), + 90: uint16(29898), + 91: uint16(29903), + 92: uint16(29908), + 93: uint16(29681), + }, + 64: { + 0: uint16(29920), + 1: uint16(29923), + 2: uint16(29927), + 3: uint16(29929), + 4: uint16(29934), + 5: uint16(29938), + 6: uint16(29936), + 7: uint16(29937), + 8: uint16(29944), + 9: uint16(29943), + 10: uint16(29956), + 11: uint16(29955), + 12: uint16(29957), + 13: uint16(29964), + 14: uint16(29966), + 15: uint16(29965), + 16: uint16(29973), + 17: uint16(29971), + 18: uint16(29982), + 19: uint16(29990), + 20: uint16(29996), + 21: uint16(30012), + 22: uint16(30020), + 23: uint16(30029), + 24: uint16(30026), + 25: uint16(30025), + 26: uint16(30043), + 27: uint16(30022), + 28: uint16(30042), + 29: uint16(30057), + 30: uint16(30052), + 31: uint16(30055), + 32: uint16(30059), + 33: uint16(30061), + 34: uint16(30072), + 35: uint16(30070), + 36: uint16(30086), + 37: uint16(30087), + 38: uint16(30068), + 39: uint16(30090), + 40: uint16(30089), + 41: uint16(30082), + 42: uint16(30100), + 43: uint16(30106), + 44: uint16(30109), + 45: uint16(30117), + 46: uint16(30115), + 47: uint16(30146), + 48: uint16(30131), + 49: uint16(30147), + 50: uint16(30133), + 51: uint16(30141), + 52: uint16(30136), + 53: uint16(30140), + 54: uint16(30129), + 55: uint16(30157), + 56: uint16(30154), + 57: uint16(30162), + 58: uint16(30169), + 59: uint16(30179), + 60: uint16(30174), + 61: uint16(30206), + 62: uint16(30207), + 63: uint16(30204), + 64: uint16(30209), + 65: uint16(30192), + 66: uint16(30202), + 67: uint16(30194), + 68: uint16(30195), + 69: uint16(30219), + 70: uint16(30221), + 71: uint16(30217), + 72: uint16(30239), + 73: uint16(30247), + 74: uint16(30240), + 75: uint16(30241), + 76: uint16(30242), + 77: uint16(30244), + 78: uint16(30260), + 79: uint16(30256), + 80: uint16(30267), + 81: uint16(30279), + 82: uint16(30280), + 83: uint16(30278), + 84: uint16(30300), + 85: uint16(30296), + 86: uint16(30305), + 87: uint16(30306), + 88: uint16(30312), + 89: uint16(30313), + 90: uint16(30314), + 91: uint16(30311), + 92: uint16(30316), + 93: uint16(30320), + }, + 65: { + 0: uint16(30322), + 1: uint16(30326), + 2: uint16(30328), + 3: uint16(30332), + 4: uint16(30336), + 5: uint16(30339), + 6: uint16(30344), + 7: uint16(30347), + 8: uint16(30350), + 9: uint16(30358), + 10: uint16(30355), + 11: uint16(30361), + 12: uint16(30362), + 13: uint16(30384), + 14: uint16(30388), + 15: uint16(30392), + 16: uint16(30393), + 17: uint16(30394), + 18: uint16(30402), + 19: uint16(30413), + 20: uint16(30422), + 21: uint16(30418), + 22: uint16(30430), + 23: uint16(30433), + 24: uint16(30437), + 25: uint16(30439), + 26: uint16(30442), + 27: uint16(34351), + 28: uint16(30459), + 29: uint16(30472), + 30: uint16(30471), + 31: uint16(30468), + 32: uint16(30505), + 33: uint16(30500), + 34: uint16(30494), + 35: uint16(30501), + 36: uint16(30502), + 37: uint16(30491), + 38: uint16(30519), + 39: uint16(30520), + 40: uint16(30535), + 41: uint16(30554), + 42: uint16(30568), + 43: uint16(30571), + 44: uint16(30555), + 45: uint16(30565), + 46: uint16(30591), + 47: uint16(30590), + 48: uint16(30585), + 49: uint16(30606), + 50: uint16(30603), + 51: uint16(30609), + 52: uint16(30624), + 53: uint16(30622), + 54: uint16(30640), + 55: uint16(30646), + 56: uint16(30649), + 57: uint16(30655), + 58: uint16(30652), + 59: uint16(30653), + 60: uint16(30651), + 61: uint16(30663), + 62: uint16(30669), + 63: uint16(30679), + 64: uint16(30682), + 65: uint16(30684), + 66: uint16(30691), + 67: uint16(30702), + 68: uint16(30716), + 69: uint16(30732), + 70: uint16(30738), + 71: uint16(31014), + 72: uint16(30752), + 73: uint16(31018), + 74: uint16(30789), + 75: uint16(30862), + 76: uint16(30836), + 77: uint16(30854), + 78: uint16(30844), + 79: uint16(30874), + 80: uint16(30860), + 81: uint16(30883), + 82: uint16(30901), + 83: uint16(30890), + 84: uint16(30895), + 85: uint16(30929), + 86: uint16(30918), + 87: uint16(30923), + 88: uint16(30932), + 89: uint16(30910), + 90: uint16(30908), + 91: uint16(30917), + 92: uint16(30922), + 93: uint16(30956), + }, + 66: { + 0: uint16(30951), + 1: uint16(30938), + 2: uint16(30973), + 3: uint16(30964), + 4: uint16(30983), + 5: uint16(30994), + 6: uint16(30993), + 7: uint16(31001), + 8: uint16(31020), + 9: uint16(31019), + 10: uint16(31040), + 11: uint16(31072), + 12: uint16(31063), + 13: uint16(31071), + 14: uint16(31066), + 15: uint16(31061), + 16: uint16(31059), + 17: uint16(31098), + 18: uint16(31103), + 19: uint16(31114), + 20: uint16(31133), + 21: uint16(31143), + 22: uint16(40779), + 23: uint16(31146), + 24: uint16(31150), + 25: uint16(31155), + 26: uint16(31161), + 27: uint16(31162), + 28: uint16(31177), + 29: uint16(31189), + 30: uint16(31207), + 31: uint16(31212), + 32: uint16(31201), + 33: uint16(31203), + 34: uint16(31240), + 35: uint16(31245), + 36: uint16(31256), + 37: uint16(31257), + 38: uint16(31264), + 39: uint16(31263), + 40: uint16(31104), + 41: uint16(31281), + 42: uint16(31291), + 43: uint16(31294), + 44: uint16(31287), + 45: uint16(31299), + 46: uint16(31319), + 47: uint16(31305), + 48: uint16(31329), + 49: uint16(31330), + 50: uint16(31337), + 51: uint16(40861), + 52: uint16(31344), + 53: uint16(31353), + 54: uint16(31357), + 55: uint16(31368), + 56: uint16(31383), + 57: uint16(31381), + 58: uint16(31384), + 59: uint16(31382), + 60: uint16(31401), + 61: uint16(31432), + 62: uint16(31408), + 63: uint16(31414), + 64: uint16(31429), + 65: uint16(31428), + 66: uint16(31423), + 67: uint16(36995), + 68: uint16(31431), + 69: uint16(31434), + 70: uint16(31437), + 71: uint16(31439), + 72: uint16(31445), + 73: uint16(31443), + 74: uint16(31449), + 75: uint16(31450), + 76: uint16(31453), + 77: uint16(31457), + 78: uint16(31458), + 79: uint16(31462), + 80: uint16(31469), + 81: uint16(31472), + 82: uint16(31490), + 83: uint16(31503), + 84: uint16(31498), + 85: uint16(31494), + 86: uint16(31539), + 87: uint16(31512), + 88: uint16(31513), + 89: uint16(31518), + 90: uint16(31541), + 91: uint16(31528), + 92: uint16(31542), + 93: uint16(31568), + }, + 67: { + 0: uint16(31610), + 1: uint16(31492), + 2: uint16(31565), + 3: uint16(31499), + 4: uint16(31564), + 5: uint16(31557), + 6: uint16(31605), + 7: uint16(31589), + 8: uint16(31604), + 9: uint16(31591), + 10: uint16(31600), + 11: uint16(31601), + 12: uint16(31596), + 13: uint16(31598), + 14: uint16(31645), + 15: uint16(31640), + 16: uint16(31647), + 17: uint16(31629), + 18: uint16(31644), + 19: uint16(31642), + 20: uint16(31627), + 21: uint16(31634), + 22: uint16(31631), + 23: uint16(31581), + 24: uint16(31641), + 25: uint16(31691), + 26: uint16(31681), + 27: uint16(31692), + 28: uint16(31695), + 29: uint16(31668), + 30: uint16(31686), + 31: uint16(31709), + 32: uint16(31721), + 33: uint16(31761), + 34: uint16(31764), + 35: uint16(31718), + 36: uint16(31717), + 37: uint16(31840), + 38: uint16(31744), + 39: uint16(31751), + 40: uint16(31763), + 41: uint16(31731), + 42: uint16(31735), + 43: uint16(31767), + 44: uint16(31757), + 45: uint16(31734), + 46: uint16(31779), + 47: uint16(31783), + 48: uint16(31786), + 49: uint16(31775), + 50: uint16(31799), + 51: uint16(31787), + 52: uint16(31805), + 53: uint16(31820), + 54: uint16(31811), + 55: uint16(31828), + 56: uint16(31823), + 57: uint16(31808), + 58: uint16(31824), + 59: uint16(31832), + 60: uint16(31839), + 61: uint16(31844), + 62: uint16(31830), + 63: uint16(31845), + 64: uint16(31852), + 65: uint16(31861), + 66: uint16(31875), + 67: uint16(31888), + 68: uint16(31908), + 69: uint16(31917), + 70: uint16(31906), + 71: uint16(31915), + 72: uint16(31905), + 73: uint16(31912), + 74: uint16(31923), + 75: uint16(31922), + 76: uint16(31921), + 77: uint16(31918), + 78: uint16(31929), + 79: uint16(31933), + 80: uint16(31936), + 81: uint16(31941), + 82: uint16(31938), + 83: uint16(31960), + 84: uint16(31954), + 85: uint16(31964), + 86: uint16(31970), + 87: uint16(39739), + 88: uint16(31983), + 89: uint16(31986), + 90: uint16(31988), + 91: uint16(31990), + 92: uint16(31994), + 93: uint16(32006), + }, + 68: { + 0: uint16(32002), + 1: uint16(32028), + 2: uint16(32021), + 3: uint16(32010), + 4: uint16(32069), + 5: uint16(32075), + 6: uint16(32046), + 7: uint16(32050), + 8: uint16(32063), + 9: uint16(32053), + 10: uint16(32070), + 11: uint16(32115), + 12: uint16(32086), + 13: uint16(32078), + 14: uint16(32114), + 15: uint16(32104), + 16: uint16(32110), + 17: uint16(32079), + 18: uint16(32099), + 19: uint16(32147), + 20: uint16(32137), + 21: uint16(32091), + 22: uint16(32143), + 23: uint16(32125), + 24: uint16(32155), + 25: uint16(32186), + 26: uint16(32174), + 27: uint16(32163), + 28: uint16(32181), + 29: uint16(32199), + 30: uint16(32189), + 31: uint16(32171), + 32: uint16(32317), + 33: uint16(32162), + 34: uint16(32175), + 35: uint16(32220), + 36: uint16(32184), + 37: uint16(32159), + 38: uint16(32176), + 39: uint16(32216), + 40: uint16(32221), + 41: uint16(32228), + 42: uint16(32222), + 43: uint16(32251), + 44: uint16(32242), + 45: uint16(32225), + 46: uint16(32261), + 47: uint16(32266), + 48: uint16(32291), + 49: uint16(32289), + 50: uint16(32274), + 51: uint16(32305), + 52: uint16(32287), + 53: uint16(32265), + 54: uint16(32267), + 55: uint16(32290), + 56: uint16(32326), + 57: uint16(32358), + 58: uint16(32315), + 59: uint16(32309), + 60: uint16(32313), + 61: uint16(32323), + 62: uint16(32311), + 63: uint16(32306), + 64: uint16(32314), + 65: uint16(32359), + 66: uint16(32349), + 67: uint16(32342), + 68: uint16(32350), + 69: uint16(32345), + 70: uint16(32346), + 71: uint16(32377), + 72: uint16(32362), + 73: uint16(32361), + 74: uint16(32380), + 75: uint16(32379), + 76: uint16(32387), + 77: uint16(32213), + 78: uint16(32381), + 79: uint16(36782), + 80: uint16(32383), + 81: uint16(32392), + 82: uint16(32393), + 83: uint16(32396), + 84: uint16(32402), + 85: uint16(32400), + 86: uint16(32403), + 87: uint16(32404), + 88: uint16(32406), + 89: uint16(32398), + 90: uint16(32411), + 91: uint16(32412), + 92: uint16(32568), + 93: uint16(32570), + }, + 69: { + 0: uint16(32581), + 1: uint16(32588), + 2: uint16(32589), + 3: uint16(32590), + 4: uint16(32592), + 5: uint16(32593), + 6: uint16(32597), + 7: uint16(32596), + 8: uint16(32600), + 9: uint16(32607), + 10: uint16(32608), + 11: uint16(32616), + 12: uint16(32617), + 13: uint16(32615), + 14: uint16(32632), + 15: uint16(32642), + 16: uint16(32646), + 17: uint16(32643), + 18: uint16(32648), + 19: uint16(32647), + 20: uint16(32652), + 21: uint16(32660), + 22: uint16(32670), + 23: uint16(32669), + 24: uint16(32666), + 25: uint16(32675), + 26: uint16(32687), + 27: uint16(32690), + 28: uint16(32697), + 29: uint16(32686), + 30: uint16(32694), + 31: uint16(32696), + 32: uint16(35697), + 33: uint16(32709), + 34: uint16(32710), + 35: uint16(32714), + 36: uint16(32725), + 37: uint16(32724), + 38: uint16(32737), + 39: uint16(32742), + 40: uint16(32745), + 41: uint16(32755), + 42: uint16(32761), + 43: uint16(39132), + 44: uint16(32774), + 45: uint16(32772), + 46: uint16(32779), + 47: uint16(32786), + 48: uint16(32792), + 49: uint16(32793), + 50: uint16(32796), + 51: uint16(32801), + 52: uint16(32808), + 53: uint16(32831), + 54: uint16(32827), + 55: uint16(32842), + 56: uint16(32838), + 57: uint16(32850), + 58: uint16(32856), + 59: uint16(32858), + 60: uint16(32863), + 61: uint16(32866), + 62: uint16(32872), + 63: uint16(32883), + 64: uint16(32882), + 65: uint16(32880), + 66: uint16(32886), + 67: uint16(32889), + 68: uint16(32893), + 69: uint16(32895), + 70: uint16(32900), + 71: uint16(32902), + 72: uint16(32901), + 73: uint16(32923), + 74: uint16(32915), + 75: uint16(32922), + 76: uint16(32941), + 77: uint16(20880), + 78: uint16(32940), + 79: uint16(32987), + 80: uint16(32997), + 81: uint16(32985), + 82: uint16(32989), + 83: uint16(32964), + 84: uint16(32986), + 85: uint16(32982), + 86: uint16(33033), + 87: uint16(33007), + 88: uint16(33009), + 89: uint16(33051), + 90: uint16(33065), + 91: uint16(33059), + 92: uint16(33071), + 93: uint16(33099), + }, + 70: { + 0: uint16(38539), + 1: uint16(33094), + 2: uint16(33086), + 3: uint16(33107), + 4: uint16(33105), + 5: uint16(33020), + 6: uint16(33137), + 7: uint16(33134), + 8: uint16(33125), + 9: uint16(33126), + 10: uint16(33140), + 11: uint16(33155), + 12: uint16(33160), + 13: uint16(33162), + 14: uint16(33152), + 15: uint16(33154), + 16: uint16(33184), + 17: uint16(33173), + 18: uint16(33188), + 19: uint16(33187), + 20: uint16(33119), + 21: uint16(33171), + 22: uint16(33193), + 23: uint16(33200), + 24: uint16(33205), + 25: uint16(33214), + 26: uint16(33208), + 27: uint16(33213), + 28: uint16(33216), + 29: uint16(33218), + 30: uint16(33210), + 31: uint16(33225), + 32: uint16(33229), + 33: uint16(33233), + 34: uint16(33241), + 35: uint16(33240), + 36: uint16(33224), + 37: uint16(33242), + 38: uint16(33247), + 39: uint16(33248), + 40: uint16(33255), + 41: uint16(33274), + 42: uint16(33275), + 43: uint16(33278), + 44: uint16(33281), + 45: uint16(33282), + 46: uint16(33285), + 47: uint16(33287), + 48: uint16(33290), + 49: uint16(33293), + 50: uint16(33296), + 51: uint16(33302), + 52: uint16(33321), + 53: uint16(33323), + 54: uint16(33336), + 55: uint16(33331), + 56: uint16(33344), + 57: uint16(33369), + 58: uint16(33368), + 59: uint16(33373), + 60: uint16(33370), + 61: uint16(33375), + 62: uint16(33380), + 63: uint16(33378), + 64: uint16(33384), + 65: uint16(33386), + 66: uint16(33387), + 67: uint16(33326), + 68: uint16(33393), + 69: uint16(33399), + 70: uint16(33400), + 71: uint16(33406), + 72: uint16(33421), + 73: uint16(33426), + 74: uint16(33451), + 75: uint16(33439), + 76: uint16(33467), + 77: uint16(33452), + 78: uint16(33505), + 79: uint16(33507), + 80: uint16(33503), + 81: uint16(33490), + 82: uint16(33524), + 83: uint16(33523), + 84: uint16(33530), + 85: uint16(33683), + 86: uint16(33539), + 87: uint16(33531), + 88: uint16(33529), + 89: uint16(33502), + 90: uint16(33542), + 91: uint16(33500), + 92: uint16(33545), + 93: uint16(33497), + }, + 71: { + 0: uint16(33589), + 1: uint16(33588), + 2: uint16(33558), + 3: uint16(33586), + 4: uint16(33585), + 5: uint16(33600), + 6: uint16(33593), + 7: uint16(33616), + 8: uint16(33605), + 9: uint16(33583), + 10: uint16(33579), + 11: uint16(33559), + 12: uint16(33560), + 13: uint16(33669), + 14: uint16(33690), + 15: uint16(33706), + 16: uint16(33695), + 17: uint16(33698), + 18: uint16(33686), + 19: uint16(33571), + 20: uint16(33678), + 21: uint16(33671), + 22: uint16(33674), + 23: uint16(33660), + 24: uint16(33717), + 25: uint16(33651), + 26: uint16(33653), + 27: uint16(33696), + 28: uint16(33673), + 29: uint16(33704), + 30: uint16(33780), + 31: uint16(33811), + 32: uint16(33771), + 33: uint16(33742), + 34: uint16(33789), + 35: uint16(33795), + 36: uint16(33752), + 37: uint16(33803), + 38: uint16(33729), + 39: uint16(33783), + 40: uint16(33799), + 41: uint16(33760), + 42: uint16(33778), + 43: uint16(33805), + 44: uint16(33826), + 45: uint16(33824), + 46: uint16(33725), + 47: uint16(33848), + 48: uint16(34054), + 49: uint16(33787), + 50: uint16(33901), + 51: uint16(33834), + 52: uint16(33852), + 53: uint16(34138), + 54: uint16(33924), + 55: uint16(33911), + 56: uint16(33899), + 57: uint16(33965), + 58: uint16(33902), + 59: uint16(33922), + 60: uint16(33897), + 61: uint16(33862), + 62: uint16(33836), + 63: uint16(33903), + 64: uint16(33913), + 65: uint16(33845), + 66: uint16(33994), + 67: uint16(33890), + 68: uint16(33977), + 69: uint16(33983), + 70: uint16(33951), + 71: uint16(34009), + 72: uint16(33997), + 73: uint16(33979), + 74: uint16(34010), + 75: uint16(34000), + 76: uint16(33985), + 77: uint16(33990), + 78: uint16(34006), + 79: uint16(33953), + 80: uint16(34081), + 81: uint16(34047), + 82: uint16(34036), + 83: uint16(34071), + 84: uint16(34072), + 85: uint16(34092), + 86: uint16(34079), + 87: uint16(34069), + 88: uint16(34068), + 89: uint16(34044), + 90: uint16(34112), + 91: uint16(34147), + 92: uint16(34136), + 93: uint16(34120), + }, + 72: { + 0: uint16(34113), + 1: uint16(34306), + 2: uint16(34123), + 3: uint16(34133), + 4: uint16(34176), + 5: uint16(34212), + 6: uint16(34184), + 7: uint16(34193), + 8: uint16(34186), + 9: uint16(34216), + 10: uint16(34157), + 11: uint16(34196), + 12: uint16(34203), + 13: uint16(34282), + 14: uint16(34183), + 15: uint16(34204), + 16: uint16(34167), + 17: uint16(34174), + 18: uint16(34192), + 19: uint16(34249), + 20: uint16(34234), + 21: uint16(34255), + 22: uint16(34233), + 23: uint16(34256), + 24: uint16(34261), + 25: uint16(34269), + 26: uint16(34277), + 27: uint16(34268), + 28: uint16(34297), + 29: uint16(34314), + 30: uint16(34323), + 31: uint16(34315), + 32: uint16(34302), + 33: uint16(34298), + 34: uint16(34310), + 35: uint16(34338), + 36: uint16(34330), + 37: uint16(34352), + 38: uint16(34367), + 39: uint16(34381), + 40: uint16(20053), + 41: uint16(34388), + 42: uint16(34399), + 43: uint16(34407), + 44: uint16(34417), + 45: uint16(34451), + 46: uint16(34467), + 47: uint16(34473), + 48: uint16(34474), + 49: uint16(34443), + 50: uint16(34444), + 51: uint16(34486), + 52: uint16(34479), + 53: uint16(34500), + 54: uint16(34502), + 55: uint16(34480), + 56: uint16(34505), + 57: uint16(34851), + 58: uint16(34475), + 59: uint16(34516), + 60: uint16(34526), + 61: uint16(34537), + 62: uint16(34540), + 63: uint16(34527), + 64: uint16(34523), + 65: uint16(34543), + 66: uint16(34578), + 67: uint16(34566), + 68: uint16(34568), + 69: uint16(34560), + 70: uint16(34563), + 71: uint16(34555), + 72: uint16(34577), + 73: uint16(34569), + 74: uint16(34573), + 75: uint16(34553), + 76: uint16(34570), + 77: uint16(34612), + 78: uint16(34623), + 79: uint16(34615), + 80: uint16(34619), + 81: uint16(34597), + 82: uint16(34601), + 83: uint16(34586), + 84: uint16(34656), + 85: uint16(34655), + 86: uint16(34680), + 87: uint16(34636), + 88: uint16(34638), + 89: uint16(34676), + 90: uint16(34647), + 91: uint16(34664), + 92: uint16(34670), + 93: uint16(34649), + }, + 73: { + 0: uint16(34643), + 1: uint16(34659), + 2: uint16(34666), + 3: uint16(34821), + 4: uint16(34722), + 5: uint16(34719), + 6: uint16(34690), + 7: uint16(34735), + 8: uint16(34763), + 9: uint16(34749), + 10: uint16(34752), + 11: uint16(34768), + 12: uint16(38614), + 13: uint16(34731), + 14: uint16(34756), + 15: uint16(34739), + 16: uint16(34759), + 17: uint16(34758), + 18: uint16(34747), + 19: uint16(34799), + 20: uint16(34802), + 21: uint16(34784), + 22: uint16(34831), + 23: uint16(34829), + 24: uint16(34814), + 25: uint16(34806), + 26: uint16(34807), + 27: uint16(34830), + 28: uint16(34770), + 29: uint16(34833), + 30: uint16(34838), + 31: uint16(34837), + 32: uint16(34850), + 33: uint16(34849), + 34: uint16(34865), + 35: uint16(34870), + 36: uint16(34873), + 37: uint16(34855), + 38: uint16(34875), + 39: uint16(34884), + 40: uint16(34882), + 41: uint16(34898), + 42: uint16(34905), + 43: uint16(34910), + 44: uint16(34914), + 45: uint16(34923), + 46: uint16(34945), + 47: uint16(34942), + 48: uint16(34974), + 49: uint16(34933), + 50: uint16(34941), + 51: uint16(34997), + 52: uint16(34930), + 53: uint16(34946), + 54: uint16(34967), + 55: uint16(34962), + 56: uint16(34990), + 57: uint16(34969), + 58: uint16(34978), + 59: uint16(34957), + 60: uint16(34980), + 61: uint16(34992), + 62: uint16(35007), + 63: uint16(34993), + 64: uint16(35011), + 65: uint16(35012), + 66: uint16(35028), + 67: uint16(35032), + 68: uint16(35033), + 69: uint16(35037), + 70: uint16(35065), + 71: uint16(35074), + 72: uint16(35068), + 73: uint16(35060), + 74: uint16(35048), + 75: uint16(35058), + 76: uint16(35076), + 77: uint16(35084), + 78: uint16(35082), + 79: uint16(35091), + 80: uint16(35139), + 81: uint16(35102), + 82: uint16(35109), + 83: uint16(35114), + 84: uint16(35115), + 85: uint16(35137), + 86: uint16(35140), + 87: uint16(35131), + 88: uint16(35126), + 89: uint16(35128), + 90: uint16(35148), + 91: uint16(35101), + 92: uint16(35168), + 93: uint16(35166), + }, + 74: { + 0: uint16(35174), + 1: uint16(35172), + 2: uint16(35181), + 3: uint16(35178), + 4: uint16(35183), + 5: uint16(35188), + 6: uint16(35191), + 7: uint16(35198), + 8: uint16(35203), + 9: uint16(35208), + 10: uint16(35210), + 11: uint16(35219), + 12: uint16(35224), + 13: uint16(35233), + 14: uint16(35241), + 15: uint16(35238), + 16: uint16(35244), + 17: uint16(35247), + 18: uint16(35250), + 19: uint16(35258), + 20: uint16(35261), + 21: uint16(35263), + 22: uint16(35264), + 23: uint16(35290), + 24: uint16(35292), + 25: uint16(35293), + 26: uint16(35303), + 27: uint16(35316), + 28: uint16(35320), + 29: uint16(35331), + 30: uint16(35350), + 31: uint16(35344), + 32: uint16(35340), + 33: uint16(35355), + 34: uint16(35357), + 35: uint16(35365), + 36: uint16(35382), + 37: uint16(35393), + 38: uint16(35419), + 39: uint16(35410), + 40: uint16(35398), + 41: uint16(35400), + 42: uint16(35452), + 43: uint16(35437), + 44: uint16(35436), + 45: uint16(35426), + 46: uint16(35461), + 47: uint16(35458), + 48: uint16(35460), + 49: uint16(35496), + 50: uint16(35489), + 51: uint16(35473), + 52: uint16(35493), + 53: uint16(35494), + 54: uint16(35482), + 55: uint16(35491), + 56: uint16(35524), + 57: uint16(35533), + 58: uint16(35522), + 59: uint16(35546), + 60: uint16(35563), + 61: uint16(35571), + 62: uint16(35559), + 63: uint16(35556), + 64: uint16(35569), + 65: uint16(35604), + 66: uint16(35552), + 67: uint16(35554), + 68: uint16(35575), + 69: uint16(35550), + 70: uint16(35547), + 71: uint16(35596), + 72: uint16(35591), + 73: uint16(35610), + 74: uint16(35553), + 75: uint16(35606), + 76: uint16(35600), + 77: uint16(35607), + 78: uint16(35616), + 79: uint16(35635), + 80: uint16(38827), + 81: uint16(35622), + 82: uint16(35627), + 83: uint16(35646), + 84: uint16(35624), + 85: uint16(35649), + 86: uint16(35660), + 87: uint16(35663), + 88: uint16(35662), + 89: uint16(35657), + 90: uint16(35670), + 91: uint16(35675), + 92: uint16(35674), + 93: uint16(35691), + }, + 75: { + 0: uint16(35679), + 1: uint16(35692), + 2: uint16(35695), + 3: uint16(35700), + 4: uint16(35709), + 5: uint16(35712), + 6: uint16(35724), + 7: uint16(35726), + 8: uint16(35730), + 9: uint16(35731), + 10: uint16(35734), + 11: uint16(35737), + 12: uint16(35738), + 13: uint16(35898), + 14: uint16(35905), + 15: uint16(35903), + 16: uint16(35912), + 17: uint16(35916), + 18: uint16(35918), + 19: uint16(35920), + 20: uint16(35925), + 21: uint16(35938), + 22: uint16(35948), + 23: uint16(35960), + 24: uint16(35962), + 25: uint16(35970), + 26: uint16(35977), + 27: uint16(35973), + 28: uint16(35978), + 29: uint16(35981), + 30: uint16(35982), + 31: uint16(35988), + 32: uint16(35964), + 33: uint16(35992), + 34: uint16(25117), + 35: uint16(36013), + 36: uint16(36010), + 37: uint16(36029), + 38: uint16(36018), + 39: uint16(36019), + 40: uint16(36014), + 41: uint16(36022), + 42: uint16(36040), + 43: uint16(36033), + 44: uint16(36068), + 45: uint16(36067), + 46: uint16(36058), + 47: uint16(36093), + 48: uint16(36090), + 49: uint16(36091), + 50: uint16(36100), + 51: uint16(36101), + 52: uint16(36106), + 53: uint16(36103), + 54: uint16(36111), + 55: uint16(36109), + 56: uint16(36112), + 57: uint16(40782), + 58: uint16(36115), + 59: uint16(36045), + 60: uint16(36116), + 61: uint16(36118), + 62: uint16(36199), + 63: uint16(36205), + 64: uint16(36209), + 65: uint16(36211), + 66: uint16(36225), + 67: uint16(36249), + 68: uint16(36290), + 69: uint16(36286), + 70: uint16(36282), + 71: uint16(36303), + 72: uint16(36314), + 73: uint16(36310), + 74: uint16(36300), + 75: uint16(36315), + 76: uint16(36299), + 77: uint16(36330), + 78: uint16(36331), + 79: uint16(36319), + 80: uint16(36323), + 81: uint16(36348), + 82: uint16(36360), + 83: uint16(36361), + 84: uint16(36351), + 85: uint16(36381), + 86: uint16(36382), + 87: uint16(36368), + 88: uint16(36383), + 89: uint16(36418), + 90: uint16(36405), + 91: uint16(36400), + 92: uint16(36404), + 93: uint16(36426), + }, + 76: { + 0: uint16(36423), + 1: uint16(36425), + 2: uint16(36428), + 3: uint16(36432), + 4: uint16(36424), + 5: uint16(36441), + 6: uint16(36452), + 7: uint16(36448), + 8: uint16(36394), + 9: uint16(36451), + 10: uint16(36437), + 11: uint16(36470), + 12: uint16(36466), + 13: uint16(36476), + 14: uint16(36481), + 15: uint16(36487), + 16: uint16(36485), + 17: uint16(36484), + 18: uint16(36491), + 19: uint16(36490), + 20: uint16(36499), + 21: uint16(36497), + 22: uint16(36500), + 23: uint16(36505), + 24: uint16(36522), + 25: uint16(36513), + 26: uint16(36524), + 27: uint16(36528), + 28: uint16(36550), + 29: uint16(36529), + 30: uint16(36542), + 31: uint16(36549), + 32: uint16(36552), + 33: uint16(36555), + 34: uint16(36571), + 35: uint16(36579), + 36: uint16(36604), + 37: uint16(36603), + 38: uint16(36587), + 39: uint16(36606), + 40: uint16(36618), + 41: uint16(36613), + 42: uint16(36629), + 43: uint16(36626), + 44: uint16(36633), + 45: uint16(36627), + 46: uint16(36636), + 47: uint16(36639), + 48: uint16(36635), + 49: uint16(36620), + 50: uint16(36646), + 51: uint16(36659), + 52: uint16(36667), + 53: uint16(36665), + 54: uint16(36677), + 55: uint16(36674), + 56: uint16(36670), + 57: uint16(36684), + 58: uint16(36681), + 59: uint16(36678), + 60: uint16(36686), + 61: uint16(36695), + 62: uint16(36700), + 63: uint16(36706), + 64: uint16(36707), + 65: uint16(36708), + 66: uint16(36764), + 67: uint16(36767), + 68: uint16(36771), + 69: uint16(36781), + 70: uint16(36783), + 71: uint16(36791), + 72: uint16(36826), + 73: uint16(36837), + 74: uint16(36834), + 75: uint16(36842), + 76: uint16(36847), + 77: uint16(36999), + 78: uint16(36852), + 79: uint16(36869), + 80: uint16(36857), + 81: uint16(36858), + 82: uint16(36881), + 83: uint16(36885), + 84: uint16(36897), + 85: uint16(36877), + 86: uint16(36894), + 87: uint16(36886), + 88: uint16(36875), + 89: uint16(36903), + 90: uint16(36918), + 91: uint16(36917), + 92: uint16(36921), + 93: uint16(36856), + }, + 77: { + 0: uint16(36943), + 1: uint16(36944), + 2: uint16(36945), + 3: uint16(36946), + 4: uint16(36878), + 5: uint16(36937), + 6: uint16(36926), + 7: uint16(36950), + 8: uint16(36952), + 9: uint16(36958), + 10: uint16(36968), + 11: uint16(36975), + 12: uint16(36982), + 13: uint16(38568), + 14: uint16(36978), + 15: uint16(36994), + 16: uint16(36989), + 17: uint16(36993), + 18: uint16(36992), + 19: uint16(37002), + 20: uint16(37001), + 21: uint16(37007), + 22: uint16(37032), + 23: uint16(37039), + 24: uint16(37041), + 25: uint16(37045), + 26: uint16(37090), + 27: uint16(37092), + 28: uint16(25160), + 29: uint16(37083), + 30: uint16(37122), + 31: uint16(37138), + 32: uint16(37145), + 33: uint16(37170), + 34: uint16(37168), + 35: uint16(37194), + 36: uint16(37206), + 37: uint16(37208), + 38: uint16(37219), + 39: uint16(37221), + 40: uint16(37225), + 41: uint16(37235), + 42: uint16(37234), + 43: uint16(37259), + 44: uint16(37257), + 45: uint16(37250), + 46: uint16(37282), + 47: uint16(37291), + 48: uint16(37295), + 49: uint16(37290), + 50: uint16(37301), + 51: uint16(37300), + 52: uint16(37306), + 53: uint16(37312), + 54: uint16(37313), + 55: uint16(37321), + 56: uint16(37323), + 57: uint16(37328), + 58: uint16(37334), + 59: uint16(37343), + 60: uint16(37345), + 61: uint16(37339), + 62: uint16(37372), + 63: uint16(37365), + 64: uint16(37366), + 65: uint16(37406), + 66: uint16(37375), + 67: uint16(37396), + 68: uint16(37420), + 69: uint16(37397), + 70: uint16(37393), + 71: uint16(37470), + 72: uint16(37463), + 73: uint16(37445), + 74: uint16(37449), + 75: uint16(37476), + 76: uint16(37448), + 77: uint16(37525), + 78: uint16(37439), + 79: uint16(37451), + 80: uint16(37456), + 81: uint16(37532), + 82: uint16(37526), + 83: uint16(37523), + 84: uint16(37531), + 85: uint16(37466), + 86: uint16(37583), + 87: uint16(37561), + 88: uint16(37559), + 89: uint16(37609), + 90: uint16(37647), + 91: uint16(37626), + 92: uint16(37700), + 93: uint16(37678), + }, + 78: { + 0: uint16(37657), + 1: uint16(37666), + 2: uint16(37658), + 3: uint16(37667), + 4: uint16(37690), + 5: uint16(37685), + 6: uint16(37691), + 7: uint16(37724), + 8: uint16(37728), + 9: uint16(37756), + 10: uint16(37742), + 11: uint16(37718), + 12: uint16(37808), + 13: uint16(37804), + 14: uint16(37805), + 15: uint16(37780), + 16: uint16(37817), + 17: uint16(37846), + 18: uint16(37847), + 19: uint16(37864), + 20: uint16(37861), + 21: uint16(37848), + 22: uint16(37827), + 23: uint16(37853), + 24: uint16(37840), + 25: uint16(37832), + 26: uint16(37860), + 27: uint16(37914), + 28: uint16(37908), + 29: uint16(37907), + 30: uint16(37891), + 31: uint16(37895), + 32: uint16(37904), + 33: uint16(37942), + 34: uint16(37931), + 35: uint16(37941), + 36: uint16(37921), + 37: uint16(37946), + 38: uint16(37953), + 39: uint16(37970), + 40: uint16(37956), + 41: uint16(37979), + 42: uint16(37984), + 43: uint16(37986), + 44: uint16(37982), + 45: uint16(37994), + 46: uint16(37417), + 47: uint16(38000), + 48: uint16(38005), + 49: uint16(38007), + 50: uint16(38013), + 51: uint16(37978), + 52: uint16(38012), + 53: uint16(38014), + 54: uint16(38017), + 55: uint16(38015), + 56: uint16(38274), + 57: uint16(38279), + 58: uint16(38282), + 59: uint16(38292), + 60: uint16(38294), + 61: uint16(38296), + 62: uint16(38297), + 63: uint16(38304), + 64: uint16(38312), + 65: uint16(38311), + 66: uint16(38317), + 67: uint16(38332), + 68: uint16(38331), + 69: uint16(38329), + 70: uint16(38334), + 71: uint16(38346), + 72: uint16(28662), + 73: uint16(38339), + 74: uint16(38349), + 75: uint16(38348), + 76: uint16(38357), + 77: uint16(38356), + 78: uint16(38358), + 79: uint16(38364), + 80: uint16(38369), + 81: uint16(38373), + 82: uint16(38370), + 83: uint16(38433), + 84: uint16(38440), + 85: uint16(38446), + 86: uint16(38447), + 87: uint16(38466), + 88: uint16(38476), + 89: uint16(38479), + 90: uint16(38475), + 91: uint16(38519), + 92: uint16(38492), + 93: uint16(38494), + }, + 79: { + 0: uint16(38493), + 1: uint16(38495), + 2: uint16(38502), + 3: uint16(38514), + 4: uint16(38508), + 5: uint16(38541), + 6: uint16(38552), + 7: uint16(38549), + 8: uint16(38551), + 9: uint16(38570), + 10: uint16(38567), + 11: uint16(38577), + 12: uint16(38578), + 13: uint16(38576), + 14: uint16(38580), + 15: uint16(38582), + 16: uint16(38584), + 17: uint16(38585), + 18: uint16(38606), + 19: uint16(38603), + 20: uint16(38601), + 21: uint16(38605), + 22: uint16(35149), + 23: uint16(38620), + 24: uint16(38669), + 25: uint16(38613), + 26: uint16(38649), + 27: uint16(38660), + 28: uint16(38662), + 29: uint16(38664), + 30: uint16(38675), + 31: uint16(38670), + 32: uint16(38673), + 33: uint16(38671), + 34: uint16(38678), + 35: uint16(38681), + 36: uint16(38692), + 37: uint16(38698), + 38: uint16(38704), + 39: uint16(38713), + 40: uint16(38717), + 41: uint16(38718), + 42: uint16(38724), + 43: uint16(38726), + 44: uint16(38728), + 45: uint16(38722), + 46: uint16(38729), + 47: uint16(38748), + 48: uint16(38752), + 49: uint16(38756), + 50: uint16(38758), + 51: uint16(38760), + 52: uint16(21202), + 53: uint16(38763), + 54: uint16(38769), + 55: uint16(38777), + 56: uint16(38789), + 57: uint16(38780), + 58: uint16(38785), + 59: uint16(38778), + 60: uint16(38790), + 61: uint16(38795), + 62: uint16(38799), + 63: uint16(38800), + 64: uint16(38812), + 65: uint16(38824), + 66: uint16(38822), + 67: uint16(38819), + 68: uint16(38835), + 69: uint16(38836), + 70: uint16(38851), + 71: uint16(38854), + 72: uint16(38856), + 73: uint16(38859), + 74: uint16(38876), + 75: uint16(38893), + 76: uint16(40783), + 77: uint16(38898), + 78: uint16(31455), + 79: uint16(38902), + 80: uint16(38901), + 81: uint16(38927), + 82: uint16(38924), + 83: uint16(38968), + 84: uint16(38948), + 85: uint16(38945), + 86: uint16(38967), + 87: uint16(38973), + 88: uint16(38982), + 89: uint16(38991), + 90: uint16(38987), + 91: uint16(39019), + 92: uint16(39023), + 93: uint16(39024), + }, + 80: { + 0: uint16(39025), + 1: uint16(39028), + 2: uint16(39027), + 3: uint16(39082), + 4: uint16(39087), + 5: uint16(39089), + 6: uint16(39094), + 7: uint16(39108), + 8: uint16(39107), + 9: uint16(39110), + 10: uint16(39145), + 11: uint16(39147), + 12: uint16(39171), + 13: uint16(39177), + 14: uint16(39186), + 15: uint16(39188), + 16: uint16(39192), + 17: uint16(39201), + 18: uint16(39197), + 19: uint16(39198), + 20: uint16(39204), + 21: uint16(39200), + 22: uint16(39212), + 23: uint16(39214), + 24: uint16(39229), + 25: uint16(39230), + 26: uint16(39234), + 27: uint16(39241), + 28: uint16(39237), + 29: uint16(39248), + 30: uint16(39243), + 31: uint16(39249), + 32: uint16(39250), + 33: uint16(39244), + 34: uint16(39253), + 35: uint16(39319), + 36: uint16(39320), + 37: uint16(39333), + 38: uint16(39341), + 39: uint16(39342), + 40: uint16(39356), + 41: uint16(39391), + 42: uint16(39387), + 43: uint16(39389), + 44: uint16(39384), + 45: uint16(39377), + 46: uint16(39405), + 47: uint16(39406), + 48: uint16(39409), + 49: uint16(39410), + 50: uint16(39419), + 51: uint16(39416), + 52: uint16(39425), + 53: uint16(39439), + 54: uint16(39429), + 55: uint16(39394), + 56: uint16(39449), + 57: uint16(39467), + 58: uint16(39479), + 59: uint16(39493), + 60: uint16(39490), + 61: uint16(39488), + 62: uint16(39491), + 63: uint16(39486), + 64: uint16(39509), + 65: uint16(39501), + 66: uint16(39515), + 67: uint16(39511), + 68: uint16(39519), + 69: uint16(39522), + 70: uint16(39525), + 71: uint16(39524), + 72: uint16(39529), + 73: uint16(39531), + 74: uint16(39530), + 75: uint16(39597), + 76: uint16(39600), + 77: uint16(39612), + 78: uint16(39616), + 79: uint16(39631), + 80: uint16(39633), + 81: uint16(39635), + 82: uint16(39636), + 83: uint16(39646), + 84: uint16(39647), + 85: uint16(39650), + 86: uint16(39651), + 87: uint16(39654), + 88: uint16(39663), + 89: uint16(39659), + 90: uint16(39662), + 91: uint16(39668), + 92: uint16(39665), + 93: uint16(39671), + }, + 81: { + 0: uint16(39675), + 1: uint16(39686), + 2: uint16(39704), + 3: uint16(39706), + 4: uint16(39711), + 5: uint16(39714), + 6: uint16(39715), + 7: uint16(39717), + 8: uint16(39719), + 9: uint16(39720), + 10: uint16(39721), + 11: uint16(39722), + 12: uint16(39726), + 13: uint16(39727), + 14: uint16(39730), + 15: uint16(39748), + 16: uint16(39747), + 17: uint16(39759), + 18: uint16(39757), + 19: uint16(39758), + 20: uint16(39761), + 21: uint16(39768), + 22: uint16(39796), + 23: uint16(39827), + 24: uint16(39811), + 25: uint16(39825), + 26: uint16(39830), + 27: uint16(39831), + 28: uint16(39839), + 29: uint16(39840), + 30: uint16(39848), + 31: uint16(39860), + 32: uint16(39872), + 33: uint16(39882), + 34: uint16(39865), + 35: uint16(39878), + 36: uint16(39887), + 37: uint16(39889), + 38: uint16(39890), + 39: uint16(39907), + 40: uint16(39906), + 41: uint16(39908), + 42: uint16(39892), + 43: uint16(39905), + 44: uint16(39994), + 45: uint16(39922), + 46: uint16(39921), + 47: uint16(39920), + 48: uint16(39957), + 49: uint16(39956), + 50: uint16(39945), + 51: uint16(39955), + 52: uint16(39948), + 53: uint16(39942), + 54: uint16(39944), + 55: uint16(39954), + 56: uint16(39946), + 57: uint16(39940), + 58: uint16(39982), + 59: uint16(39963), + 60: uint16(39973), + 61: uint16(39972), + 62: uint16(39969), + 63: uint16(39984), + 64: uint16(40007), + 65: uint16(39986), + 66: uint16(40006), + 67: uint16(39998), + 68: uint16(40026), + 69: uint16(40032), + 70: uint16(40039), + 71: uint16(40054), + 72: uint16(40056), + 73: uint16(40167), + 74: uint16(40172), + 75: uint16(40176), + 76: uint16(40201), + 77: uint16(40200), + 78: uint16(40171), + 79: uint16(40195), + 80: uint16(40198), + 81: uint16(40234), + 82: uint16(40230), + 83: uint16(40367), + 84: uint16(40227), + 85: uint16(40223), + 86: uint16(40260), + 87: uint16(40213), + 88: uint16(40210), + 89: uint16(40257), + 90: uint16(40255), + 91: uint16(40254), + 92: uint16(40262), + 93: uint16(40264), + }, + 82: { + 0: uint16(40285), + 1: uint16(40286), + 2: uint16(40292), + 3: uint16(40273), + 4: uint16(40272), + 5: uint16(40281), + 6: uint16(40306), + 7: uint16(40329), + 8: uint16(40327), + 9: uint16(40363), + 10: uint16(40303), + 11: uint16(40314), + 12: uint16(40346), + 13: uint16(40356), + 14: uint16(40361), + 15: uint16(40370), + 16: uint16(40388), + 17: uint16(40385), + 18: uint16(40379), + 19: uint16(40376), + 20: uint16(40378), + 21: uint16(40390), + 22: uint16(40399), + 23: uint16(40386), + 24: uint16(40409), + 25: uint16(40403), + 26: uint16(40440), + 27: uint16(40422), + 28: uint16(40429), + 29: uint16(40431), + 30: uint16(40445), + 31: uint16(40474), + 32: uint16(40475), + 33: uint16(40478), + 34: uint16(40565), + 35: uint16(40569), + 36: uint16(40573), + 37: uint16(40577), + 38: uint16(40584), + 39: uint16(40587), + 40: uint16(40588), + 41: uint16(40594), + 42: uint16(40597), + 43: uint16(40593), + 44: uint16(40605), + 45: uint16(40613), + 46: uint16(40617), + 47: uint16(40632), + 48: uint16(40618), + 49: uint16(40621), + 50: uint16(38753), + 51: uint16(40652), + 52: uint16(40654), + 53: uint16(40655), + 54: uint16(40656), + 55: uint16(40660), + 56: uint16(40668), + 57: uint16(40670), + 58: uint16(40669), + 59: uint16(40672), + 60: uint16(40677), + 61: uint16(40680), + 62: uint16(40687), + 63: uint16(40692), + 64: uint16(40694), + 65: uint16(40695), + 66: uint16(40697), + 67: uint16(40699), + 68: uint16(40700), + 69: uint16(40701), + 70: uint16(40711), + 71: uint16(40712), + 72: uint16(30391), + 73: uint16(40725), + 74: uint16(40737), + 75: uint16(40748), + 76: uint16(40766), + 77: uint16(40778), + 78: uint16(40786), + 79: uint16(40788), + 80: uint16(40803), + 81: uint16(40799), + 82: uint16(40800), + 83: uint16(40801), + 84: uint16(40806), + 85: uint16(40807), + 86: uint16(40812), + 87: uint16(40810), + 88: uint16(40823), + 89: uint16(40818), + 90: uint16(40822), + 91: uint16(40853), + 92: uint16(40860), + 93: uint16(40864), + }, + 83: { + 0: uint16(22575), + 1: uint16(27079), + 2: uint16(36953), + 3: uint16(29796), + 4: uint16(20956), + 5: uint16(29081), + }, +} + +var _gb18030 = [126][190]uint16{ + 0: { + 0: uint16(19970), + 1: uint16(19972), + 2: uint16(19973), + 3: uint16(19974), + 4: uint16(19983), + 5: uint16(19986), + 6: uint16(19991), + 7: uint16(19999), + 8: uint16(20000), + 9: uint16(20001), + 10: uint16(20003), + 11: uint16(20006), + 12: uint16(20009), + 13: uint16(20014), + 14: uint16(20015), + 15: uint16(20017), + 16: uint16(20019), + 17: uint16(20021), + 18: uint16(20023), + 19: uint16(20028), + 20: uint16(20032), + 21: uint16(20033), + 22: uint16(20034), + 23: uint16(20036), + 24: uint16(20038), + 25: uint16(20042), + 26: uint16(20049), + 27: uint16(20053), + 28: uint16(20055), + 29: uint16(20058), + 30: uint16(20059), + 31: uint16(20066), + 32: uint16(20067), + 33: uint16(20068), + 34: uint16(20069), + 35: uint16(20071), + 36: uint16(20072), + 37: uint16(20074), + 38: uint16(20075), + 39: uint16(20076), + 40: uint16(20077), + 41: uint16(20078), + 42: uint16(20079), + 43: uint16(20082), + 44: uint16(20084), + 45: uint16(20085), + 46: uint16(20086), + 47: uint16(20087), + 48: uint16(20088), + 49: uint16(20089), + 50: uint16(20090), + 51: uint16(20091), + 52: uint16(20092), + 53: uint16(20093), + 54: uint16(20095), + 55: uint16(20096), + 56: uint16(20097), + 57: uint16(20098), + 58: uint16(20099), + 59: uint16(20100), + 60: uint16(20101), + 61: uint16(20103), + 62: uint16(20106), + 63: uint16(20112), + 64: uint16(20118), + 65: uint16(20119), + 66: uint16(20121), + 67: uint16(20124), + 68: uint16(20125), + 69: uint16(20126), + 70: uint16(20131), + 71: uint16(20138), + 72: uint16(20143), + 73: uint16(20144), + 74: uint16(20145), + 75: uint16(20148), + 76: uint16(20150), + 77: uint16(20151), + 78: uint16(20152), + 79: uint16(20153), + 80: uint16(20156), + 81: uint16(20157), + 82: uint16(20158), + 83: uint16(20168), + 84: uint16(20172), + 85: uint16(20175), + 86: uint16(20176), + 87: uint16(20178), + 88: uint16(20186), + 89: uint16(20187), + 90: uint16(20188), + 91: uint16(20192), + 92: uint16(20194), + 93: uint16(20198), + 94: uint16(20199), + 95: uint16(20201), + 96: uint16(20205), + 97: uint16(20206), + 98: uint16(20207), + 99: uint16(20209), + 100: uint16(20212), + 101: uint16(20216), + 102: uint16(20217), + 103: uint16(20218), + 104: uint16(20220), + 105: uint16(20222), + 106: uint16(20224), + 107: uint16(20226), + 108: uint16(20227), + 109: uint16(20228), + 110: uint16(20229), + 111: uint16(20230), + 112: uint16(20231), + 113: uint16(20232), + 114: uint16(20235), + 115: uint16(20236), + 116: uint16(20242), + 117: uint16(20243), + 118: uint16(20244), + 119: uint16(20245), + 120: uint16(20246), + 121: uint16(20252), + 122: uint16(20253), + 123: uint16(20257), + 124: uint16(20259), + 125: uint16(20264), + 126: uint16(20265), + 127: uint16(20268), + 128: uint16(20269), + 129: uint16(20270), + 130: uint16(20273), + 131: uint16(20275), + 132: uint16(20277), + 133: uint16(20279), + 134: uint16(20281), + 135: uint16(20283), + 136: uint16(20286), + 137: uint16(20287), + 138: uint16(20288), + 139: uint16(20289), + 140: uint16(20290), + 141: uint16(20292), + 142: uint16(20293), + 143: uint16(20295), + 144: uint16(20296), + 145: uint16(20297), + 146: uint16(20298), + 147: uint16(20299), + 148: uint16(20300), + 149: uint16(20306), + 150: uint16(20308), + 151: uint16(20310), + 152: uint16(20321), + 153: uint16(20322), + 154: uint16(20326), + 155: uint16(20328), + 156: uint16(20330), + 157: uint16(20331), + 158: uint16(20333), + 159: uint16(20334), + 160: uint16(20337), + 161: uint16(20338), + 162: uint16(20341), + 163: uint16(20343), + 164: uint16(20344), + 165: uint16(20345), + 166: uint16(20346), + 167: uint16(20349), + 168: uint16(20352), + 169: uint16(20353), + 170: uint16(20354), + 171: uint16(20357), + 172: uint16(20358), + 173: uint16(20359), + 174: uint16(20362), + 175: uint16(20364), + 176: uint16(20366), + 177: uint16(20368), + 178: uint16(20370), + 179: uint16(20371), + 180: uint16(20373), + 181: uint16(20374), + 182: uint16(20376), + 183: uint16(20377), + 184: uint16(20378), + 185: uint16(20380), + 186: uint16(20382), + 187: uint16(20383), + 188: uint16(20385), + 189: uint16(20386), + }, + 1: { + 0: uint16(20388), + 1: uint16(20395), + 2: uint16(20397), + 3: uint16(20400), + 4: uint16(20401), + 5: uint16(20402), + 6: uint16(20403), + 7: uint16(20404), + 8: uint16(20406), + 9: uint16(20407), + 10: uint16(20408), + 11: uint16(20409), + 12: uint16(20410), + 13: uint16(20411), + 14: uint16(20412), + 15: uint16(20413), + 16: uint16(20414), + 17: uint16(20416), + 18: uint16(20417), + 19: uint16(20418), + 20: uint16(20422), + 21: uint16(20423), + 22: uint16(20424), + 23: uint16(20425), + 24: uint16(20427), + 25: uint16(20428), + 26: uint16(20429), + 27: uint16(20434), + 28: uint16(20435), + 29: uint16(20436), + 30: uint16(20437), + 31: uint16(20438), + 32: uint16(20441), + 33: uint16(20443), + 34: uint16(20448), + 35: uint16(20450), + 36: uint16(20452), + 37: uint16(20453), + 38: uint16(20455), + 39: uint16(20459), + 40: uint16(20460), + 41: uint16(20464), + 42: uint16(20466), + 43: uint16(20468), + 44: uint16(20469), + 45: uint16(20470), + 46: uint16(20471), + 47: uint16(20473), + 48: uint16(20475), + 49: uint16(20476), + 50: uint16(20477), + 51: uint16(20479), + 52: uint16(20480), + 53: uint16(20481), + 54: uint16(20482), + 55: uint16(20483), + 56: uint16(20484), + 57: uint16(20485), + 58: uint16(20486), + 59: uint16(20487), + 60: uint16(20488), + 61: uint16(20489), + 62: uint16(20490), + 63: uint16(20491), + 64: uint16(20494), + 65: uint16(20496), + 66: uint16(20497), + 67: uint16(20499), + 68: uint16(20501), + 69: uint16(20502), + 70: uint16(20503), + 71: uint16(20507), + 72: uint16(20509), + 73: uint16(20510), + 74: uint16(20512), + 75: uint16(20514), + 76: uint16(20515), + 77: uint16(20516), + 78: uint16(20519), + 79: uint16(20523), + 80: uint16(20527), + 81: uint16(20528), + 82: uint16(20529), + 83: uint16(20530), + 84: uint16(20531), + 85: uint16(20532), + 86: uint16(20533), + 87: uint16(20534), + 88: uint16(20535), + 89: uint16(20536), + 90: uint16(20537), + 91: uint16(20539), + 92: uint16(20541), + 93: uint16(20543), + 94: uint16(20544), + 95: uint16(20545), + 96: uint16(20546), + 97: uint16(20548), + 98: uint16(20549), + 99: uint16(20550), + 100: uint16(20553), + 101: uint16(20554), + 102: uint16(20555), + 103: uint16(20557), + 104: uint16(20560), + 105: uint16(20561), + 106: uint16(20562), + 107: uint16(20563), + 108: uint16(20564), + 109: uint16(20566), + 110: uint16(20567), + 111: uint16(20568), + 112: uint16(20569), + 113: uint16(20571), + 114: uint16(20573), + 115: uint16(20574), + 116: uint16(20575), + 117: uint16(20576), + 118: uint16(20577), + 119: uint16(20578), + 120: uint16(20579), + 121: uint16(20580), + 122: uint16(20582), + 123: uint16(20583), + 124: uint16(20584), + 125: uint16(20585), + 126: uint16(20586), + 127: uint16(20587), + 128: uint16(20589), + 129: uint16(20590), + 130: uint16(20591), + 131: uint16(20592), + 132: uint16(20593), + 133: uint16(20594), + 134: uint16(20595), + 135: uint16(20596), + 136: uint16(20597), + 137: uint16(20600), + 138: uint16(20601), + 139: uint16(20602), + 140: uint16(20604), + 141: uint16(20605), + 142: uint16(20609), + 143: uint16(20610), + 144: uint16(20611), + 145: uint16(20612), + 146: uint16(20614), + 147: uint16(20615), + 148: uint16(20617), + 149: uint16(20618), + 150: uint16(20619), + 151: uint16(20620), + 152: uint16(20622), + 153: uint16(20623), + 154: uint16(20624), + 155: uint16(20625), + 156: uint16(20626), + 157: uint16(20627), + 158: uint16(20628), + 159: uint16(20629), + 160: uint16(20630), + 161: uint16(20631), + 162: uint16(20632), + 163: uint16(20633), + 164: uint16(20634), + 165: uint16(20635), + 166: uint16(20636), + 167: uint16(20637), + 168: uint16(20638), + 169: uint16(20639), + 170: uint16(20640), + 171: uint16(20641), + 172: uint16(20642), + 173: uint16(20644), + 174: uint16(20646), + 175: uint16(20650), + 176: uint16(20651), + 177: uint16(20653), + 178: uint16(20654), + 179: uint16(20655), + 180: uint16(20656), + 181: uint16(20657), + 182: uint16(20659), + 183: uint16(20660), + 184: uint16(20661), + 185: uint16(20662), + 186: uint16(20663), + 187: uint16(20664), + 188: uint16(20665), + 189: uint16(20668), + }, + 2: { + 0: uint16(20669), + 1: uint16(20670), + 2: uint16(20671), + 3: uint16(20672), + 4: uint16(20673), + 5: uint16(20674), + 6: uint16(20675), + 7: uint16(20676), + 8: uint16(20677), + 9: uint16(20678), + 10: uint16(20679), + 11: uint16(20680), + 12: uint16(20681), + 13: uint16(20682), + 14: uint16(20683), + 15: uint16(20684), + 16: uint16(20685), + 17: uint16(20686), + 18: uint16(20688), + 19: uint16(20689), + 20: uint16(20690), + 21: uint16(20691), + 22: uint16(20692), + 23: uint16(20693), + 24: uint16(20695), + 25: uint16(20696), + 26: uint16(20697), + 27: uint16(20699), + 28: uint16(20700), + 29: uint16(20701), + 30: uint16(20702), + 31: uint16(20703), + 32: uint16(20704), + 33: uint16(20705), + 34: uint16(20706), + 35: uint16(20707), + 36: uint16(20708), + 37: uint16(20709), + 38: uint16(20712), + 39: uint16(20713), + 40: uint16(20714), + 41: uint16(20715), + 42: uint16(20719), + 43: uint16(20720), + 44: uint16(20721), + 45: uint16(20722), + 46: uint16(20724), + 47: uint16(20726), + 48: uint16(20727), + 49: uint16(20728), + 50: uint16(20729), + 51: uint16(20730), + 52: uint16(20732), + 53: uint16(20733), + 54: uint16(20734), + 55: uint16(20735), + 56: uint16(20736), + 57: uint16(20737), + 58: uint16(20738), + 59: uint16(20739), + 60: uint16(20740), + 61: uint16(20741), + 62: uint16(20744), + 63: uint16(20745), + 64: uint16(20746), + 65: uint16(20748), + 66: uint16(20749), + 67: uint16(20750), + 68: uint16(20751), + 69: uint16(20752), + 70: uint16(20753), + 71: uint16(20755), + 72: uint16(20756), + 73: uint16(20757), + 74: uint16(20758), + 75: uint16(20759), + 76: uint16(20760), + 77: uint16(20761), + 78: uint16(20762), + 79: uint16(20763), + 80: uint16(20764), + 81: uint16(20765), + 82: uint16(20766), + 83: uint16(20767), + 84: uint16(20768), + 85: uint16(20770), + 86: uint16(20771), + 87: uint16(20772), + 88: uint16(20773), + 89: uint16(20774), + 90: uint16(20775), + 91: uint16(20776), + 92: uint16(20777), + 93: uint16(20778), + 94: uint16(20779), + 95: uint16(20780), + 96: uint16(20781), + 97: uint16(20782), + 98: uint16(20783), + 99: uint16(20784), + 100: uint16(20785), + 101: uint16(20786), + 102: uint16(20787), + 103: uint16(20788), + 104: uint16(20789), + 105: uint16(20790), + 106: uint16(20791), + 107: uint16(20792), + 108: uint16(20793), + 109: uint16(20794), + 110: uint16(20795), + 111: uint16(20796), + 112: uint16(20797), + 113: uint16(20798), + 114: uint16(20802), + 115: uint16(20807), + 116: uint16(20810), + 117: uint16(20812), + 118: uint16(20814), + 119: uint16(20815), + 120: uint16(20816), + 121: uint16(20818), + 122: uint16(20819), + 123: uint16(20823), + 124: uint16(20824), + 125: uint16(20825), + 126: uint16(20827), + 127: uint16(20829), + 128: uint16(20830), + 129: uint16(20831), + 130: uint16(20832), + 131: uint16(20833), + 132: uint16(20835), + 133: uint16(20836), + 134: uint16(20838), + 135: uint16(20839), + 136: uint16(20841), + 137: uint16(20842), + 138: uint16(20847), + 139: uint16(20850), + 140: uint16(20858), + 141: uint16(20862), + 142: uint16(20863), + 143: uint16(20867), + 144: uint16(20868), + 145: uint16(20870), + 146: uint16(20871), + 147: uint16(20874), + 148: uint16(20875), + 149: uint16(20878), + 150: uint16(20879), + 151: uint16(20880), + 152: uint16(20881), + 153: uint16(20883), + 154: uint16(20884), + 155: uint16(20888), + 156: uint16(20890), + 157: uint16(20893), + 158: uint16(20894), + 159: uint16(20895), + 160: uint16(20897), + 161: uint16(20899), + 162: uint16(20902), + 163: uint16(20903), + 164: uint16(20904), + 165: uint16(20905), + 166: uint16(20906), + 167: uint16(20909), + 168: uint16(20910), + 169: uint16(20916), + 170: uint16(20920), + 171: uint16(20921), + 172: uint16(20922), + 173: uint16(20926), + 174: uint16(20927), + 175: uint16(20929), + 176: uint16(20930), + 177: uint16(20931), + 178: uint16(20933), + 179: uint16(20936), + 180: uint16(20938), + 181: uint16(20941), + 182: uint16(20942), + 183: uint16(20944), + 184: uint16(20946), + 185: uint16(20947), + 186: uint16(20948), + 187: uint16(20949), + 188: uint16(20950), + 189: uint16(20951), + }, + 3: { + 0: uint16(20952), + 1: uint16(20953), + 2: uint16(20954), + 3: uint16(20956), + 4: uint16(20958), + 5: uint16(20959), + 6: uint16(20962), + 7: uint16(20963), + 8: uint16(20965), + 9: uint16(20966), + 10: uint16(20967), + 11: uint16(20968), + 12: uint16(20969), + 13: uint16(20970), + 14: uint16(20972), + 15: uint16(20974), + 16: uint16(20977), + 17: uint16(20978), + 18: uint16(20980), + 19: uint16(20983), + 20: uint16(20990), + 21: uint16(20996), + 22: uint16(20997), + 23: uint16(21001), + 24: uint16(21003), + 25: uint16(21004), + 26: uint16(21007), + 27: uint16(21008), + 28: uint16(21011), + 29: uint16(21012), + 30: uint16(21013), + 31: uint16(21020), + 32: uint16(21022), + 33: uint16(21023), + 34: uint16(21025), + 35: uint16(21026), + 36: uint16(21027), + 37: uint16(21029), + 38: uint16(21030), + 39: uint16(21031), + 40: uint16(21034), + 41: uint16(21036), + 42: uint16(21039), + 43: uint16(21041), + 44: uint16(21042), + 45: uint16(21044), + 46: uint16(21045), + 47: uint16(21052), + 48: uint16(21054), + 49: uint16(21060), + 50: uint16(21061), + 51: uint16(21062), + 52: uint16(21063), + 53: uint16(21064), + 54: uint16(21065), + 55: uint16(21067), + 56: uint16(21070), + 57: uint16(21071), + 58: uint16(21074), + 59: uint16(21075), + 60: uint16(21077), + 61: uint16(21079), + 62: uint16(21080), + 63: uint16(21081), + 64: uint16(21082), + 65: uint16(21083), + 66: uint16(21085), + 67: uint16(21087), + 68: uint16(21088), + 69: uint16(21090), + 70: uint16(21091), + 71: uint16(21092), + 72: uint16(21094), + 73: uint16(21096), + 74: uint16(21099), + 75: uint16(21100), + 76: uint16(21101), + 77: uint16(21102), + 78: uint16(21104), + 79: uint16(21105), + 80: uint16(21107), + 81: uint16(21108), + 82: uint16(21109), + 83: uint16(21110), + 84: uint16(21111), + 85: uint16(21112), + 86: uint16(21113), + 87: uint16(21114), + 88: uint16(21115), + 89: uint16(21116), + 90: uint16(21118), + 91: uint16(21120), + 92: uint16(21123), + 93: uint16(21124), + 94: uint16(21125), + 95: uint16(21126), + 96: uint16(21127), + 97: uint16(21129), + 98: uint16(21130), + 99: uint16(21131), + 100: uint16(21132), + 101: uint16(21133), + 102: uint16(21134), + 103: uint16(21135), + 104: uint16(21137), + 105: uint16(21138), + 106: uint16(21140), + 107: uint16(21141), + 108: uint16(21142), + 109: uint16(21143), + 110: uint16(21144), + 111: uint16(21145), + 112: uint16(21146), + 113: uint16(21148), + 114: uint16(21156), + 115: uint16(21157), + 116: uint16(21158), + 117: uint16(21159), + 118: uint16(21166), + 119: uint16(21167), + 120: uint16(21168), + 121: uint16(21172), + 122: uint16(21173), + 123: uint16(21174), + 124: uint16(21175), + 125: uint16(21176), + 126: uint16(21177), + 127: uint16(21178), + 128: uint16(21179), + 129: uint16(21180), + 130: uint16(21181), + 131: uint16(21184), + 132: uint16(21185), + 133: uint16(21186), + 134: uint16(21188), + 135: uint16(21189), + 136: uint16(21190), + 137: uint16(21192), + 138: uint16(21194), + 139: uint16(21196), + 140: uint16(21197), + 141: uint16(21198), + 142: uint16(21199), + 143: uint16(21201), + 144: uint16(21203), + 145: uint16(21204), + 146: uint16(21205), + 147: uint16(21207), + 148: uint16(21209), + 149: uint16(21210), + 150: uint16(21211), + 151: uint16(21212), + 152: uint16(21213), + 153: uint16(21214), + 154: uint16(21216), + 155: uint16(21217), + 156: uint16(21218), + 157: uint16(21219), + 158: uint16(21221), + 159: uint16(21222), + 160: uint16(21223), + 161: uint16(21224), + 162: uint16(21225), + 163: uint16(21226), + 164: uint16(21227), + 165: uint16(21228), + 166: uint16(21229), + 167: uint16(21230), + 168: uint16(21231), + 169: uint16(21233), + 170: uint16(21234), + 171: uint16(21235), + 172: uint16(21236), + 173: uint16(21237), + 174: uint16(21238), + 175: uint16(21239), + 176: uint16(21240), + 177: uint16(21243), + 178: uint16(21244), + 179: uint16(21245), + 180: uint16(21249), + 181: uint16(21250), + 182: uint16(21251), + 183: uint16(21252), + 184: uint16(21255), + 185: uint16(21257), + 186: uint16(21258), + 187: uint16(21259), + 188: uint16(21260), + 189: uint16(21262), + }, + 4: { + 0: uint16(21265), + 1: uint16(21266), + 2: uint16(21267), + 3: uint16(21268), + 4: uint16(21272), + 5: uint16(21275), + 6: uint16(21276), + 7: uint16(21278), + 8: uint16(21279), + 9: uint16(21282), + 10: uint16(21284), + 11: uint16(21285), + 12: uint16(21287), + 13: uint16(21288), + 14: uint16(21289), + 15: uint16(21291), + 16: uint16(21292), + 17: uint16(21293), + 18: uint16(21295), + 19: uint16(21296), + 20: uint16(21297), + 21: uint16(21298), + 22: uint16(21299), + 23: uint16(21300), + 24: uint16(21301), + 25: uint16(21302), + 26: uint16(21303), + 27: uint16(21304), + 28: uint16(21308), + 29: uint16(21309), + 30: uint16(21312), + 31: uint16(21314), + 32: uint16(21316), + 33: uint16(21318), + 34: uint16(21323), + 35: uint16(21324), + 36: uint16(21325), + 37: uint16(21328), + 38: uint16(21332), + 39: uint16(21336), + 40: uint16(21337), + 41: uint16(21339), + 42: uint16(21341), + 43: uint16(21349), + 44: uint16(21352), + 45: uint16(21354), + 46: uint16(21356), + 47: uint16(21357), + 48: uint16(21362), + 49: uint16(21366), + 50: uint16(21369), + 51: uint16(21371), + 52: uint16(21372), + 53: uint16(21373), + 54: uint16(21374), + 55: uint16(21376), + 56: uint16(21377), + 57: uint16(21379), + 58: uint16(21383), + 59: uint16(21384), + 60: uint16(21386), + 61: uint16(21390), + 62: uint16(21391), + 63: uint16(21392), + 64: uint16(21393), + 65: uint16(21394), + 66: uint16(21395), + 67: uint16(21396), + 68: uint16(21398), + 69: uint16(21399), + 70: uint16(21401), + 71: uint16(21403), + 72: uint16(21404), + 73: uint16(21406), + 74: uint16(21408), + 75: uint16(21409), + 76: uint16(21412), + 77: uint16(21415), + 78: uint16(21418), + 79: uint16(21419), + 80: uint16(21420), + 81: uint16(21421), + 82: uint16(21423), + 83: uint16(21424), + 84: uint16(21425), + 85: uint16(21426), + 86: uint16(21427), + 87: uint16(21428), + 88: uint16(21429), + 89: uint16(21431), + 90: uint16(21432), + 91: uint16(21433), + 92: uint16(21434), + 93: uint16(21436), + 94: uint16(21437), + 95: uint16(21438), + 96: uint16(21440), + 97: uint16(21443), + 98: uint16(21444), + 99: uint16(21445), + 100: uint16(21446), + 101: uint16(21447), + 102: uint16(21454), + 103: uint16(21455), + 104: uint16(21456), + 105: uint16(21458), + 106: uint16(21459), + 107: uint16(21461), + 108: uint16(21466), + 109: uint16(21468), + 110: uint16(21469), + 111: uint16(21470), + 112: uint16(21473), + 113: uint16(21474), + 114: uint16(21479), + 115: uint16(21492), + 116: uint16(21498), + 117: uint16(21502), + 118: uint16(21503), + 119: uint16(21504), + 120: uint16(21506), + 121: uint16(21509), + 122: uint16(21511), + 123: uint16(21515), + 124: uint16(21524), + 125: uint16(21528), + 126: uint16(21529), + 127: uint16(21530), + 128: uint16(21532), + 129: uint16(21538), + 130: uint16(21540), + 131: uint16(21541), + 132: uint16(21546), + 133: uint16(21552), + 134: uint16(21555), + 135: uint16(21558), + 136: uint16(21559), + 137: uint16(21562), + 138: uint16(21565), + 139: uint16(21567), + 140: uint16(21569), + 141: uint16(21570), + 142: uint16(21572), + 143: uint16(21573), + 144: uint16(21575), + 145: uint16(21577), + 146: uint16(21580), + 147: uint16(21581), + 148: uint16(21582), + 149: uint16(21583), + 150: uint16(21585), + 151: uint16(21594), + 152: uint16(21597), + 153: uint16(21598), + 154: uint16(21599), + 155: uint16(21600), + 156: uint16(21601), + 157: uint16(21603), + 158: uint16(21605), + 159: uint16(21607), + 160: uint16(21609), + 161: uint16(21610), + 162: uint16(21611), + 163: uint16(21612), + 164: uint16(21613), + 165: uint16(21614), + 166: uint16(21615), + 167: uint16(21616), + 168: uint16(21620), + 169: uint16(21625), + 170: uint16(21626), + 171: uint16(21630), + 172: uint16(21631), + 173: uint16(21633), + 174: uint16(21635), + 175: uint16(21637), + 176: uint16(21639), + 177: uint16(21640), + 178: uint16(21641), + 179: uint16(21642), + 180: uint16(21645), + 181: uint16(21649), + 182: uint16(21651), + 183: uint16(21655), + 184: uint16(21656), + 185: uint16(21660), + 186: uint16(21662), + 187: uint16(21663), + 188: uint16(21664), + 189: uint16(21665), + }, + 5: { + 0: uint16(21666), + 1: uint16(21669), + 2: uint16(21678), + 3: uint16(21680), + 4: uint16(21682), + 5: uint16(21685), + 6: uint16(21686), + 7: uint16(21687), + 8: uint16(21689), + 9: uint16(21690), + 10: uint16(21692), + 11: uint16(21694), + 12: uint16(21699), + 13: uint16(21701), + 14: uint16(21706), + 15: uint16(21707), + 16: uint16(21718), + 17: uint16(21720), + 18: uint16(21723), + 19: uint16(21728), + 20: uint16(21729), + 21: uint16(21730), + 22: uint16(21731), + 23: uint16(21732), + 24: uint16(21739), + 25: uint16(21740), + 26: uint16(21743), + 27: uint16(21744), + 28: uint16(21745), + 29: uint16(21748), + 30: uint16(21749), + 31: uint16(21750), + 32: uint16(21751), + 33: uint16(21752), + 34: uint16(21753), + 35: uint16(21755), + 36: uint16(21758), + 37: uint16(21760), + 38: uint16(21762), + 39: uint16(21763), + 40: uint16(21764), + 41: uint16(21765), + 42: uint16(21768), + 43: uint16(21770), + 44: uint16(21771), + 45: uint16(21772), + 46: uint16(21773), + 47: uint16(21774), + 48: uint16(21778), + 49: uint16(21779), + 50: uint16(21781), + 51: uint16(21782), + 52: uint16(21783), + 53: uint16(21784), + 54: uint16(21785), + 55: uint16(21786), + 56: uint16(21788), + 57: uint16(21789), + 58: uint16(21790), + 59: uint16(21791), + 60: uint16(21793), + 61: uint16(21797), + 62: uint16(21798), + 63: uint16(21800), + 64: uint16(21801), + 65: uint16(21803), + 66: uint16(21805), + 67: uint16(21810), + 68: uint16(21812), + 69: uint16(21813), + 70: uint16(21814), + 71: uint16(21816), + 72: uint16(21817), + 73: uint16(21818), + 74: uint16(21819), + 75: uint16(21821), + 76: uint16(21824), + 77: uint16(21826), + 78: uint16(21829), + 79: uint16(21831), + 80: uint16(21832), + 81: uint16(21835), + 82: uint16(21836), + 83: uint16(21837), + 84: uint16(21838), + 85: uint16(21839), + 86: uint16(21841), + 87: uint16(21842), + 88: uint16(21843), + 89: uint16(21844), + 90: uint16(21847), + 91: uint16(21848), + 92: uint16(21849), + 93: uint16(21850), + 94: uint16(21851), + 95: uint16(21853), + 96: uint16(21854), + 97: uint16(21855), + 98: uint16(21856), + 99: uint16(21858), + 100: uint16(21859), + 101: uint16(21864), + 102: uint16(21865), + 103: uint16(21867), + 104: uint16(21871), + 105: uint16(21872), + 106: uint16(21873), + 107: uint16(21874), + 108: uint16(21875), + 109: uint16(21876), + 110: uint16(21881), + 111: uint16(21882), + 112: uint16(21885), + 113: uint16(21887), + 114: uint16(21893), + 115: uint16(21894), + 116: uint16(21900), + 117: uint16(21901), + 118: uint16(21902), + 119: uint16(21904), + 120: uint16(21906), + 121: uint16(21907), + 122: uint16(21909), + 123: uint16(21910), + 124: uint16(21911), + 125: uint16(21914), + 126: uint16(21915), + 127: uint16(21918), + 128: uint16(21920), + 129: uint16(21921), + 130: uint16(21922), + 131: uint16(21923), + 132: uint16(21924), + 133: uint16(21925), + 134: uint16(21926), + 135: uint16(21928), + 136: uint16(21929), + 137: uint16(21930), + 138: uint16(21931), + 139: uint16(21932), + 140: uint16(21933), + 141: uint16(21934), + 142: uint16(21935), + 143: uint16(21936), + 144: uint16(21938), + 145: uint16(21940), + 146: uint16(21942), + 147: uint16(21944), + 148: uint16(21946), + 149: uint16(21948), + 150: uint16(21951), + 151: uint16(21952), + 152: uint16(21953), + 153: uint16(21954), + 154: uint16(21955), + 155: uint16(21958), + 156: uint16(21959), + 157: uint16(21960), + 158: uint16(21962), + 159: uint16(21963), + 160: uint16(21966), + 161: uint16(21967), + 162: uint16(21968), + 163: uint16(21973), + 164: uint16(21975), + 165: uint16(21976), + 166: uint16(21977), + 167: uint16(21978), + 168: uint16(21979), + 169: uint16(21982), + 170: uint16(21984), + 171: uint16(21986), + 172: uint16(21991), + 173: uint16(21993), + 174: uint16(21997), + 175: uint16(21998), + 176: uint16(22000), + 177: uint16(22001), + 178: uint16(22004), + 179: uint16(22006), + 180: uint16(22008), + 181: uint16(22009), + 182: uint16(22010), + 183: uint16(22011), + 184: uint16(22012), + 185: uint16(22015), + 186: uint16(22018), + 187: uint16(22019), + 188: uint16(22020), + 189: uint16(22021), + }, + 6: { + 0: uint16(22022), + 1: uint16(22023), + 2: uint16(22026), + 3: uint16(22027), + 4: uint16(22029), + 5: uint16(22032), + 6: uint16(22033), + 7: uint16(22034), + 8: uint16(22035), + 9: uint16(22036), + 10: uint16(22037), + 11: uint16(22038), + 12: uint16(22039), + 13: uint16(22041), + 14: uint16(22042), + 15: uint16(22044), + 16: uint16(22045), + 17: uint16(22048), + 18: uint16(22049), + 19: uint16(22050), + 20: uint16(22053), + 21: uint16(22054), + 22: uint16(22056), + 23: uint16(22057), + 24: uint16(22058), + 25: uint16(22059), + 26: uint16(22062), + 27: uint16(22063), + 28: uint16(22064), + 29: uint16(22067), + 30: uint16(22069), + 31: uint16(22071), + 32: uint16(22072), + 33: uint16(22074), + 34: uint16(22076), + 35: uint16(22077), + 36: uint16(22078), + 37: uint16(22080), + 38: uint16(22081), + 39: uint16(22082), + 40: uint16(22083), + 41: uint16(22084), + 42: uint16(22085), + 43: uint16(22086), + 44: uint16(22087), + 45: uint16(22088), + 46: uint16(22089), + 47: uint16(22090), + 48: uint16(22091), + 49: uint16(22095), + 50: uint16(22096), + 51: uint16(22097), + 52: uint16(22098), + 53: uint16(22099), + 54: uint16(22101), + 55: uint16(22102), + 56: uint16(22106), + 57: uint16(22107), + 58: uint16(22109), + 59: uint16(22110), + 60: uint16(22111), + 61: uint16(22112), + 62: uint16(22113), + 63: uint16(22115), + 64: uint16(22117), + 65: uint16(22118), + 66: uint16(22119), + 67: uint16(22125), + 68: uint16(22126), + 69: uint16(22127), + 70: uint16(22128), + 71: uint16(22130), + 72: uint16(22131), + 73: uint16(22132), + 74: uint16(22133), + 75: uint16(22135), + 76: uint16(22136), + 77: uint16(22137), + 78: uint16(22138), + 79: uint16(22141), + 80: uint16(22142), + 81: uint16(22143), + 82: uint16(22144), + 83: uint16(22145), + 84: uint16(22146), + 85: uint16(22147), + 86: uint16(22148), + 87: uint16(22151), + 88: uint16(22152), + 89: uint16(22153), + 90: uint16(22154), + 91: uint16(22155), + 92: uint16(22156), + 93: uint16(22157), + 94: uint16(22160), + 95: uint16(22161), + 96: uint16(22162), + 97: uint16(22164), + 98: uint16(22165), + 99: uint16(22166), + 100: uint16(22167), + 101: uint16(22168), + 102: uint16(22169), + 103: uint16(22170), + 104: uint16(22171), + 105: uint16(22172), + 106: uint16(22173), + 107: uint16(22174), + 108: uint16(22175), + 109: uint16(22176), + 110: uint16(22177), + 111: uint16(22178), + 112: uint16(22180), + 113: uint16(22181), + 114: uint16(22182), + 115: uint16(22183), + 116: uint16(22184), + 117: uint16(22185), + 118: uint16(22186), + 119: uint16(22187), + 120: uint16(22188), + 121: uint16(22189), + 122: uint16(22190), + 123: uint16(22192), + 124: uint16(22193), + 125: uint16(22194), + 126: uint16(22195), + 127: uint16(22196), + 128: uint16(22197), + 129: uint16(22198), + 130: uint16(22200), + 131: uint16(22201), + 132: uint16(22202), + 133: uint16(22203), + 134: uint16(22205), + 135: uint16(22206), + 136: uint16(22207), + 137: uint16(22208), + 138: uint16(22209), + 139: uint16(22210), + 140: uint16(22211), + 141: uint16(22212), + 142: uint16(22213), + 143: uint16(22214), + 144: uint16(22215), + 145: uint16(22216), + 146: uint16(22217), + 147: uint16(22219), + 148: uint16(22220), + 149: uint16(22221), + 150: uint16(22222), + 151: uint16(22223), + 152: uint16(22224), + 153: uint16(22225), + 154: uint16(22226), + 155: uint16(22227), + 156: uint16(22229), + 157: uint16(22230), + 158: uint16(22232), + 159: uint16(22233), + 160: uint16(22236), + 161: uint16(22243), + 162: uint16(22245), + 163: uint16(22246), + 164: uint16(22247), + 165: uint16(22248), + 166: uint16(22249), + 167: uint16(22250), + 168: uint16(22252), + 169: uint16(22254), + 170: uint16(22255), + 171: uint16(22258), + 172: uint16(22259), + 173: uint16(22262), + 174: uint16(22263), + 175: uint16(22264), + 176: uint16(22267), + 177: uint16(22268), + 178: uint16(22272), + 179: uint16(22273), + 180: uint16(22274), + 181: uint16(22277), + 182: uint16(22279), + 183: uint16(22283), + 184: uint16(22284), + 185: uint16(22285), + 186: uint16(22286), + 187: uint16(22287), + 188: uint16(22288), + 189: uint16(22289), + }, + 7: { + 0: uint16(22290), + 1: uint16(22291), + 2: uint16(22292), + 3: uint16(22293), + 4: uint16(22294), + 5: uint16(22295), + 6: uint16(22296), + 7: uint16(22297), + 8: uint16(22298), + 9: uint16(22299), + 10: uint16(22301), + 11: uint16(22302), + 12: uint16(22304), + 13: uint16(22305), + 14: uint16(22306), + 15: uint16(22308), + 16: uint16(22309), + 17: uint16(22310), + 18: uint16(22311), + 19: uint16(22315), + 20: uint16(22321), + 21: uint16(22322), + 22: uint16(22324), + 23: uint16(22325), + 24: uint16(22326), + 25: uint16(22327), + 26: uint16(22328), + 27: uint16(22332), + 28: uint16(22333), + 29: uint16(22335), + 30: uint16(22337), + 31: uint16(22339), + 32: uint16(22340), + 33: uint16(22341), + 34: uint16(22342), + 35: uint16(22344), + 36: uint16(22345), + 37: uint16(22347), + 38: uint16(22354), + 39: uint16(22355), + 40: uint16(22356), + 41: uint16(22357), + 42: uint16(22358), + 43: uint16(22360), + 44: uint16(22361), + 45: uint16(22370), + 46: uint16(22371), + 47: uint16(22373), + 48: uint16(22375), + 49: uint16(22380), + 50: uint16(22382), + 51: uint16(22384), + 52: uint16(22385), + 53: uint16(22386), + 54: uint16(22388), + 55: uint16(22389), + 56: uint16(22392), + 57: uint16(22393), + 58: uint16(22394), + 59: uint16(22397), + 60: uint16(22398), + 61: uint16(22399), + 62: uint16(22400), + 63: uint16(22401), + 64: uint16(22407), + 65: uint16(22408), + 66: uint16(22409), + 67: uint16(22410), + 68: uint16(22413), + 69: uint16(22414), + 70: uint16(22415), + 71: uint16(22416), + 72: uint16(22417), + 73: uint16(22420), + 74: uint16(22421), + 75: uint16(22422), + 76: uint16(22423), + 77: uint16(22424), + 78: uint16(22425), + 79: uint16(22426), + 80: uint16(22428), + 81: uint16(22429), + 82: uint16(22430), + 83: uint16(22431), + 84: uint16(22437), + 85: uint16(22440), + 86: uint16(22442), + 87: uint16(22444), + 88: uint16(22447), + 89: uint16(22448), + 90: uint16(22449), + 91: uint16(22451), + 92: uint16(22453), + 93: uint16(22454), + 94: uint16(22455), + 95: uint16(22457), + 96: uint16(22458), + 97: uint16(22459), + 98: uint16(22460), + 99: uint16(22461), + 100: uint16(22462), + 101: uint16(22463), + 102: uint16(22464), + 103: uint16(22465), + 104: uint16(22468), + 105: uint16(22469), + 106: uint16(22470), + 107: uint16(22471), + 108: uint16(22472), + 109: uint16(22473), + 110: uint16(22474), + 111: uint16(22476), + 112: uint16(22477), + 113: uint16(22480), + 114: uint16(22481), + 115: uint16(22483), + 116: uint16(22486), + 117: uint16(22487), + 118: uint16(22491), + 119: uint16(22492), + 120: uint16(22494), + 121: uint16(22497), + 122: uint16(22498), + 123: uint16(22499), + 124: uint16(22501), + 125: uint16(22502), + 126: uint16(22503), + 127: uint16(22504), + 128: uint16(22505), + 129: uint16(22506), + 130: uint16(22507), + 131: uint16(22508), + 132: uint16(22510), + 133: uint16(22512), + 134: uint16(22513), + 135: uint16(22514), + 136: uint16(22515), + 137: uint16(22517), + 138: uint16(22518), + 139: uint16(22519), + 140: uint16(22523), + 141: uint16(22524), + 142: uint16(22526), + 143: uint16(22527), + 144: uint16(22529), + 145: uint16(22531), + 146: uint16(22532), + 147: uint16(22533), + 148: uint16(22536), + 149: uint16(22537), + 150: uint16(22538), + 151: uint16(22540), + 152: uint16(22542), + 153: uint16(22543), + 154: uint16(22544), + 155: uint16(22546), + 156: uint16(22547), + 157: uint16(22548), + 158: uint16(22550), + 159: uint16(22551), + 160: uint16(22552), + 161: uint16(22554), + 162: uint16(22555), + 163: uint16(22556), + 164: uint16(22557), + 165: uint16(22559), + 166: uint16(22562), + 167: uint16(22563), + 168: uint16(22565), + 169: uint16(22566), + 170: uint16(22567), + 171: uint16(22568), + 172: uint16(22569), + 173: uint16(22571), + 174: uint16(22572), + 175: uint16(22573), + 176: uint16(22574), + 177: uint16(22575), + 178: uint16(22577), + 179: uint16(22578), + 180: uint16(22579), + 181: uint16(22580), + 182: uint16(22582), + 183: uint16(22583), + 184: uint16(22584), + 185: uint16(22585), + 186: uint16(22586), + 187: uint16(22587), + 188: uint16(22588), + 189: uint16(22589), + }, + 8: { + 0: uint16(22590), + 1: uint16(22591), + 2: uint16(22592), + 3: uint16(22593), + 4: uint16(22594), + 5: uint16(22595), + 6: uint16(22597), + 7: uint16(22598), + 8: uint16(22599), + 9: uint16(22600), + 10: uint16(22601), + 11: uint16(22602), + 12: uint16(22603), + 13: uint16(22606), + 14: uint16(22607), + 15: uint16(22608), + 16: uint16(22610), + 17: uint16(22611), + 18: uint16(22613), + 19: uint16(22614), + 20: uint16(22615), + 21: uint16(22617), + 22: uint16(22618), + 23: uint16(22619), + 24: uint16(22620), + 25: uint16(22621), + 26: uint16(22623), + 27: uint16(22624), + 28: uint16(22625), + 29: uint16(22626), + 30: uint16(22627), + 31: uint16(22628), + 32: uint16(22630), + 33: uint16(22631), + 34: uint16(22632), + 35: uint16(22633), + 36: uint16(22634), + 37: uint16(22637), + 38: uint16(22638), + 39: uint16(22639), + 40: uint16(22640), + 41: uint16(22641), + 42: uint16(22642), + 43: uint16(22643), + 44: uint16(22644), + 45: uint16(22645), + 46: uint16(22646), + 47: uint16(22647), + 48: uint16(22648), + 49: uint16(22649), + 50: uint16(22650), + 51: uint16(22651), + 52: uint16(22652), + 53: uint16(22653), + 54: uint16(22655), + 55: uint16(22658), + 56: uint16(22660), + 57: uint16(22662), + 58: uint16(22663), + 59: uint16(22664), + 60: uint16(22666), + 61: uint16(22667), + 62: uint16(22668), + 63: uint16(22669), + 64: uint16(22670), + 65: uint16(22671), + 66: uint16(22672), + 67: uint16(22673), + 68: uint16(22676), + 69: uint16(22677), + 70: uint16(22678), + 71: uint16(22679), + 72: uint16(22680), + 73: uint16(22683), + 74: uint16(22684), + 75: uint16(22685), + 76: uint16(22688), + 77: uint16(22689), + 78: uint16(22690), + 79: uint16(22691), + 80: uint16(22692), + 81: uint16(22693), + 82: uint16(22694), + 83: uint16(22695), + 84: uint16(22698), + 85: uint16(22699), + 86: uint16(22700), + 87: uint16(22701), + 88: uint16(22702), + 89: uint16(22703), + 90: uint16(22704), + 91: uint16(22705), + 92: uint16(22706), + 93: uint16(22707), + 94: uint16(22708), + 95: uint16(22709), + 96: uint16(22710), + 97: uint16(22711), + 98: uint16(22712), + 99: uint16(22713), + 100: uint16(22714), + 101: uint16(22715), + 102: uint16(22717), + 103: uint16(22718), + 104: uint16(22719), + 105: uint16(22720), + 106: uint16(22722), + 107: uint16(22723), + 108: uint16(22724), + 109: uint16(22726), + 110: uint16(22727), + 111: uint16(22728), + 112: uint16(22729), + 113: uint16(22730), + 114: uint16(22731), + 115: uint16(22732), + 116: uint16(22733), + 117: uint16(22734), + 118: uint16(22735), + 119: uint16(22736), + 120: uint16(22738), + 121: uint16(22739), + 122: uint16(22740), + 123: uint16(22742), + 124: uint16(22743), + 125: uint16(22744), + 126: uint16(22745), + 127: uint16(22746), + 128: uint16(22747), + 129: uint16(22748), + 130: uint16(22749), + 131: uint16(22750), + 132: uint16(22751), + 133: uint16(22752), + 134: uint16(22753), + 135: uint16(22754), + 136: uint16(22755), + 137: uint16(22757), + 138: uint16(22758), + 139: uint16(22759), + 140: uint16(22760), + 141: uint16(22761), + 142: uint16(22762), + 143: uint16(22765), + 144: uint16(22767), + 145: uint16(22769), + 146: uint16(22770), + 147: uint16(22772), + 148: uint16(22773), + 149: uint16(22775), + 150: uint16(22776), + 151: uint16(22778), + 152: uint16(22779), + 153: uint16(22780), + 154: uint16(22781), + 155: uint16(22782), + 156: uint16(22783), + 157: uint16(22784), + 158: uint16(22785), + 159: uint16(22787), + 160: uint16(22789), + 161: uint16(22790), + 162: uint16(22792), + 163: uint16(22793), + 164: uint16(22794), + 165: uint16(22795), + 166: uint16(22796), + 167: uint16(22798), + 168: uint16(22800), + 169: uint16(22801), + 170: uint16(22802), + 171: uint16(22803), + 172: uint16(22807), + 173: uint16(22808), + 174: uint16(22811), + 175: uint16(22813), + 176: uint16(22814), + 177: uint16(22816), + 178: uint16(22817), + 179: uint16(22818), + 180: uint16(22819), + 181: uint16(22822), + 182: uint16(22824), + 183: uint16(22828), + 184: uint16(22832), + 185: uint16(22834), + 186: uint16(22835), + 187: uint16(22837), + 188: uint16(22838), + 189: uint16(22843), + }, + 9: { + 0: uint16(22845), + 1: uint16(22846), + 2: uint16(22847), + 3: uint16(22848), + 4: uint16(22851), + 5: uint16(22853), + 6: uint16(22854), + 7: uint16(22858), + 8: uint16(22860), + 9: uint16(22861), + 10: uint16(22864), + 11: uint16(22866), + 12: uint16(22867), + 13: uint16(22873), + 14: uint16(22875), + 15: uint16(22876), + 16: uint16(22877), + 17: uint16(22878), + 18: uint16(22879), + 19: uint16(22881), + 20: uint16(22883), + 21: uint16(22884), + 22: uint16(22886), + 23: uint16(22887), + 24: uint16(22888), + 25: uint16(22889), + 26: uint16(22890), + 27: uint16(22891), + 28: uint16(22892), + 29: uint16(22893), + 30: uint16(22894), + 31: uint16(22895), + 32: uint16(22896), + 33: uint16(22897), + 34: uint16(22898), + 35: uint16(22901), + 36: uint16(22903), + 37: uint16(22906), + 38: uint16(22907), + 39: uint16(22908), + 40: uint16(22910), + 41: uint16(22911), + 42: uint16(22912), + 43: uint16(22917), + 44: uint16(22921), + 45: uint16(22923), + 46: uint16(22924), + 47: uint16(22926), + 48: uint16(22927), + 49: uint16(22928), + 50: uint16(22929), + 51: uint16(22932), + 52: uint16(22933), + 53: uint16(22936), + 54: uint16(22938), + 55: uint16(22939), + 56: uint16(22940), + 57: uint16(22941), + 58: uint16(22943), + 59: uint16(22944), + 60: uint16(22945), + 61: uint16(22946), + 62: uint16(22950), + 63: uint16(22951), + 64: uint16(22956), + 65: uint16(22957), + 66: uint16(22960), + 67: uint16(22961), + 68: uint16(22963), + 69: uint16(22964), + 70: uint16(22965), + 71: uint16(22966), + 72: uint16(22967), + 73: uint16(22968), + 74: uint16(22970), + 75: uint16(22972), + 76: uint16(22973), + 77: uint16(22975), + 78: uint16(22976), + 79: uint16(22977), + 80: uint16(22978), + 81: uint16(22979), + 82: uint16(22980), + 83: uint16(22981), + 84: uint16(22983), + 85: uint16(22984), + 86: uint16(22985), + 87: uint16(22988), + 88: uint16(22989), + 89: uint16(22990), + 90: uint16(22991), + 91: uint16(22997), + 92: uint16(22998), + 93: uint16(23001), + 94: uint16(23003), + 95: uint16(23006), + 96: uint16(23007), + 97: uint16(23008), + 98: uint16(23009), + 99: uint16(23010), + 100: uint16(23012), + 101: uint16(23014), + 102: uint16(23015), + 103: uint16(23017), + 104: uint16(23018), + 105: uint16(23019), + 106: uint16(23021), + 107: uint16(23022), + 108: uint16(23023), + 109: uint16(23024), + 110: uint16(23025), + 111: uint16(23026), + 112: uint16(23027), + 113: uint16(23028), + 114: uint16(23029), + 115: uint16(23030), + 116: uint16(23031), + 117: uint16(23032), + 118: uint16(23034), + 119: uint16(23036), + 120: uint16(23037), + 121: uint16(23038), + 122: uint16(23040), + 123: uint16(23042), + 124: uint16(23050), + 125: uint16(23051), + 126: uint16(23053), + 127: uint16(23054), + 128: uint16(23055), + 129: uint16(23056), + 130: uint16(23058), + 131: uint16(23060), + 132: uint16(23061), + 133: uint16(23062), + 134: uint16(23063), + 135: uint16(23065), + 136: uint16(23066), + 137: uint16(23067), + 138: uint16(23069), + 139: uint16(23070), + 140: uint16(23073), + 141: uint16(23074), + 142: uint16(23076), + 143: uint16(23078), + 144: uint16(23079), + 145: uint16(23080), + 146: uint16(23082), + 147: uint16(23083), + 148: uint16(23084), + 149: uint16(23085), + 150: uint16(23086), + 151: uint16(23087), + 152: uint16(23088), + 153: uint16(23091), + 154: uint16(23093), + 155: uint16(23095), + 156: uint16(23096), + 157: uint16(23097), + 158: uint16(23098), + 159: uint16(23099), + 160: uint16(23101), + 161: uint16(23102), + 162: uint16(23103), + 163: uint16(23105), + 164: uint16(23106), + 165: uint16(23107), + 166: uint16(23108), + 167: uint16(23109), + 168: uint16(23111), + 169: uint16(23112), + 170: uint16(23115), + 171: uint16(23116), + 172: uint16(23117), + 173: uint16(23118), + 174: uint16(23119), + 175: uint16(23120), + 176: uint16(23121), + 177: uint16(23122), + 178: uint16(23123), + 179: uint16(23124), + 180: uint16(23126), + 181: uint16(23127), + 182: uint16(23128), + 183: uint16(23129), + 184: uint16(23131), + 185: uint16(23132), + 186: uint16(23133), + 187: uint16(23134), + 188: uint16(23135), + 189: uint16(23136), + }, + 10: { + 0: uint16(23137), + 1: uint16(23139), + 2: uint16(23140), + 3: uint16(23141), + 4: uint16(23142), + 5: uint16(23144), + 6: uint16(23145), + 7: uint16(23147), + 8: uint16(23148), + 9: uint16(23149), + 10: uint16(23150), + 11: uint16(23151), + 12: uint16(23152), + 13: uint16(23153), + 14: uint16(23154), + 15: uint16(23155), + 16: uint16(23160), + 17: uint16(23161), + 18: uint16(23163), + 19: uint16(23164), + 20: uint16(23165), + 21: uint16(23166), + 22: uint16(23168), + 23: uint16(23169), + 24: uint16(23170), + 25: uint16(23171), + 26: uint16(23172), + 27: uint16(23173), + 28: uint16(23174), + 29: uint16(23175), + 30: uint16(23176), + 31: uint16(23177), + 32: uint16(23178), + 33: uint16(23179), + 34: uint16(23180), + 35: uint16(23181), + 36: uint16(23182), + 37: uint16(23183), + 38: uint16(23184), + 39: uint16(23185), + 40: uint16(23187), + 41: uint16(23188), + 42: uint16(23189), + 43: uint16(23190), + 44: uint16(23191), + 45: uint16(23192), + 46: uint16(23193), + 47: uint16(23196), + 48: uint16(23197), + 49: uint16(23198), + 50: uint16(23199), + 51: uint16(23200), + 52: uint16(23201), + 53: uint16(23202), + 54: uint16(23203), + 55: uint16(23204), + 56: uint16(23205), + 57: uint16(23206), + 58: uint16(23207), + 59: uint16(23208), + 60: uint16(23209), + 61: uint16(23211), + 62: uint16(23212), + 63: uint16(23213), + 64: uint16(23214), + 65: uint16(23215), + 66: uint16(23216), + 67: uint16(23217), + 68: uint16(23220), + 69: uint16(23222), + 70: uint16(23223), + 71: uint16(23225), + 72: uint16(23226), + 73: uint16(23227), + 74: uint16(23228), + 75: uint16(23229), + 76: uint16(23231), + 77: uint16(23232), + 78: uint16(23235), + 79: uint16(23236), + 80: uint16(23237), + 81: uint16(23238), + 82: uint16(23239), + 83: uint16(23240), + 84: uint16(23242), + 85: uint16(23243), + 86: uint16(23245), + 87: uint16(23246), + 88: uint16(23247), + 89: uint16(23248), + 90: uint16(23249), + 91: uint16(23251), + 92: uint16(23253), + 93: uint16(23255), + 94: uint16(23257), + 95: uint16(23258), + 96: uint16(23259), + 97: uint16(23261), + 98: uint16(23262), + 99: uint16(23263), + 100: uint16(23266), + 101: uint16(23268), + 102: uint16(23269), + 103: uint16(23271), + 104: uint16(23272), + 105: uint16(23274), + 106: uint16(23276), + 107: uint16(23277), + 108: uint16(23278), + 109: uint16(23279), + 110: uint16(23280), + 111: uint16(23282), + 112: uint16(23283), + 113: uint16(23284), + 114: uint16(23285), + 115: uint16(23286), + 116: uint16(23287), + 117: uint16(23288), + 118: uint16(23289), + 119: uint16(23290), + 120: uint16(23291), + 121: uint16(23292), + 122: uint16(23293), + 123: uint16(23294), + 124: uint16(23295), + 125: uint16(23296), + 126: uint16(23297), + 127: uint16(23298), + 128: uint16(23299), + 129: uint16(23300), + 130: uint16(23301), + 131: uint16(23302), + 132: uint16(23303), + 133: uint16(23304), + 134: uint16(23306), + 135: uint16(23307), + 136: uint16(23308), + 137: uint16(23309), + 138: uint16(23310), + 139: uint16(23311), + 140: uint16(23312), + 141: uint16(23313), + 142: uint16(23314), + 143: uint16(23315), + 144: uint16(23316), + 145: uint16(23317), + 146: uint16(23320), + 147: uint16(23321), + 148: uint16(23322), + 149: uint16(23323), + 150: uint16(23324), + 151: uint16(23325), + 152: uint16(23326), + 153: uint16(23327), + 154: uint16(23328), + 155: uint16(23329), + 156: uint16(23330), + 157: uint16(23331), + 158: uint16(23332), + 159: uint16(23333), + 160: uint16(23334), + 161: uint16(23335), + 162: uint16(23336), + 163: uint16(23337), + 164: uint16(23338), + 165: uint16(23339), + 166: uint16(23340), + 167: uint16(23341), + 168: uint16(23342), + 169: uint16(23343), + 170: uint16(23344), + 171: uint16(23345), + 172: uint16(23347), + 173: uint16(23349), + 174: uint16(23350), + 175: uint16(23352), + 176: uint16(23353), + 177: uint16(23354), + 178: uint16(23355), + 179: uint16(23356), + 180: uint16(23357), + 181: uint16(23358), + 182: uint16(23359), + 183: uint16(23361), + 184: uint16(23362), + 185: uint16(23363), + 186: uint16(23364), + 187: uint16(23365), + 188: uint16(23366), + 189: uint16(23367), + }, + 11: { + 0: uint16(23368), + 1: uint16(23369), + 2: uint16(23370), + 3: uint16(23371), + 4: uint16(23372), + 5: uint16(23373), + 6: uint16(23374), + 7: uint16(23375), + 8: uint16(23378), + 9: uint16(23382), + 10: uint16(23390), + 11: uint16(23392), + 12: uint16(23393), + 13: uint16(23399), + 14: uint16(23400), + 15: uint16(23403), + 16: uint16(23405), + 17: uint16(23406), + 18: uint16(23407), + 19: uint16(23410), + 20: uint16(23412), + 21: uint16(23414), + 22: uint16(23415), + 23: uint16(23416), + 24: uint16(23417), + 25: uint16(23419), + 26: uint16(23420), + 27: uint16(23422), + 28: uint16(23423), + 29: uint16(23426), + 30: uint16(23430), + 31: uint16(23434), + 32: uint16(23437), + 33: uint16(23438), + 34: uint16(23440), + 35: uint16(23441), + 36: uint16(23442), + 37: uint16(23444), + 38: uint16(23446), + 39: uint16(23455), + 40: uint16(23463), + 41: uint16(23464), + 42: uint16(23465), + 43: uint16(23468), + 44: uint16(23469), + 45: uint16(23470), + 46: uint16(23471), + 47: uint16(23473), + 48: uint16(23474), + 49: uint16(23479), + 50: uint16(23482), + 51: uint16(23483), + 52: uint16(23484), + 53: uint16(23488), + 54: uint16(23489), + 55: uint16(23491), + 56: uint16(23496), + 57: uint16(23497), + 58: uint16(23498), + 59: uint16(23499), + 60: uint16(23501), + 61: uint16(23502), + 62: uint16(23503), + 63: uint16(23505), + 64: uint16(23508), + 65: uint16(23509), + 66: uint16(23510), + 67: uint16(23511), + 68: uint16(23512), + 69: uint16(23513), + 70: uint16(23514), + 71: uint16(23515), + 72: uint16(23516), + 73: uint16(23520), + 74: uint16(23522), + 75: uint16(23523), + 76: uint16(23526), + 77: uint16(23527), + 78: uint16(23529), + 79: uint16(23530), + 80: uint16(23531), + 81: uint16(23532), + 82: uint16(23533), + 83: uint16(23535), + 84: uint16(23537), + 85: uint16(23538), + 86: uint16(23539), + 87: uint16(23540), + 88: uint16(23541), + 89: uint16(23542), + 90: uint16(23543), + 91: uint16(23549), + 92: uint16(23550), + 93: uint16(23552), + 94: uint16(23554), + 95: uint16(23555), + 96: uint16(23557), + 97: uint16(23559), + 98: uint16(23560), + 99: uint16(23563), + 100: uint16(23564), + 101: uint16(23565), + 102: uint16(23566), + 103: uint16(23568), + 104: uint16(23570), + 105: uint16(23571), + 106: uint16(23575), + 107: uint16(23577), + 108: uint16(23579), + 109: uint16(23582), + 110: uint16(23583), + 111: uint16(23584), + 112: uint16(23585), + 113: uint16(23587), + 114: uint16(23590), + 115: uint16(23592), + 116: uint16(23593), + 117: uint16(23594), + 118: uint16(23595), + 119: uint16(23597), + 120: uint16(23598), + 121: uint16(23599), + 122: uint16(23600), + 123: uint16(23602), + 124: uint16(23603), + 125: uint16(23605), + 126: uint16(23606), + 127: uint16(23607), + 128: uint16(23619), + 129: uint16(23620), + 130: uint16(23622), + 131: uint16(23623), + 132: uint16(23628), + 133: uint16(23629), + 134: uint16(23634), + 135: uint16(23635), + 136: uint16(23636), + 137: uint16(23638), + 138: uint16(23639), + 139: uint16(23640), + 140: uint16(23642), + 141: uint16(23643), + 142: uint16(23644), + 143: uint16(23645), + 144: uint16(23647), + 145: uint16(23650), + 146: uint16(23652), + 147: uint16(23655), + 148: uint16(23656), + 149: uint16(23657), + 150: uint16(23658), + 151: uint16(23659), + 152: uint16(23660), + 153: uint16(23661), + 154: uint16(23664), + 155: uint16(23666), + 156: uint16(23667), + 157: uint16(23668), + 158: uint16(23669), + 159: uint16(23670), + 160: uint16(23671), + 161: uint16(23672), + 162: uint16(23675), + 163: uint16(23676), + 164: uint16(23677), + 165: uint16(23678), + 166: uint16(23680), + 167: uint16(23683), + 168: uint16(23684), + 169: uint16(23685), + 170: uint16(23686), + 171: uint16(23687), + 172: uint16(23689), + 173: uint16(23690), + 174: uint16(23691), + 175: uint16(23694), + 176: uint16(23695), + 177: uint16(23698), + 178: uint16(23699), + 179: uint16(23701), + 180: uint16(23709), + 181: uint16(23710), + 182: uint16(23711), + 183: uint16(23712), + 184: uint16(23713), + 185: uint16(23716), + 186: uint16(23717), + 187: uint16(23718), + 188: uint16(23719), + 189: uint16(23720), + }, + 12: { + 0: uint16(23722), + 1: uint16(23726), + 2: uint16(23727), + 3: uint16(23728), + 4: uint16(23730), + 5: uint16(23732), + 6: uint16(23734), + 7: uint16(23737), + 8: uint16(23738), + 9: uint16(23739), + 10: uint16(23740), + 11: uint16(23742), + 12: uint16(23744), + 13: uint16(23746), + 14: uint16(23747), + 15: uint16(23749), + 16: uint16(23750), + 17: uint16(23751), + 18: uint16(23752), + 19: uint16(23753), + 20: uint16(23754), + 21: uint16(23756), + 22: uint16(23757), + 23: uint16(23758), + 24: uint16(23759), + 25: uint16(23760), + 26: uint16(23761), + 27: uint16(23763), + 28: uint16(23764), + 29: uint16(23765), + 30: uint16(23766), + 31: uint16(23767), + 32: uint16(23768), + 33: uint16(23770), + 34: uint16(23771), + 35: uint16(23772), + 36: uint16(23773), + 37: uint16(23774), + 38: uint16(23775), + 39: uint16(23776), + 40: uint16(23778), + 41: uint16(23779), + 42: uint16(23783), + 43: uint16(23785), + 44: uint16(23787), + 45: uint16(23788), + 46: uint16(23790), + 47: uint16(23791), + 48: uint16(23793), + 49: uint16(23794), + 50: uint16(23795), + 51: uint16(23796), + 52: uint16(23797), + 53: uint16(23798), + 54: uint16(23799), + 55: uint16(23800), + 56: uint16(23801), + 57: uint16(23802), + 58: uint16(23804), + 59: uint16(23805), + 60: uint16(23806), + 61: uint16(23807), + 62: uint16(23808), + 63: uint16(23809), + 64: uint16(23812), + 65: uint16(23813), + 66: uint16(23816), + 67: uint16(23817), + 68: uint16(23818), + 69: uint16(23819), + 70: uint16(23820), + 71: uint16(23821), + 72: uint16(23823), + 73: uint16(23824), + 74: uint16(23825), + 75: uint16(23826), + 76: uint16(23827), + 77: uint16(23829), + 78: uint16(23831), + 79: uint16(23832), + 80: uint16(23833), + 81: uint16(23834), + 82: uint16(23836), + 83: uint16(23837), + 84: uint16(23839), + 85: uint16(23840), + 86: uint16(23841), + 87: uint16(23842), + 88: uint16(23843), + 89: uint16(23845), + 90: uint16(23848), + 91: uint16(23850), + 92: uint16(23851), + 93: uint16(23852), + 94: uint16(23855), + 95: uint16(23856), + 96: uint16(23857), + 97: uint16(23858), + 98: uint16(23859), + 99: uint16(23861), + 100: uint16(23862), + 101: uint16(23863), + 102: uint16(23864), + 103: uint16(23865), + 104: uint16(23866), + 105: uint16(23867), + 106: uint16(23868), + 107: uint16(23871), + 108: uint16(23872), + 109: uint16(23873), + 110: uint16(23874), + 111: uint16(23875), + 112: uint16(23876), + 113: uint16(23877), + 114: uint16(23878), + 115: uint16(23880), + 116: uint16(23881), + 117: uint16(23885), + 118: uint16(23886), + 119: uint16(23887), + 120: uint16(23888), + 121: uint16(23889), + 122: uint16(23890), + 123: uint16(23891), + 124: uint16(23892), + 125: uint16(23893), + 126: uint16(23894), + 127: uint16(23895), + 128: uint16(23897), + 129: uint16(23898), + 130: uint16(23900), + 131: uint16(23902), + 132: uint16(23903), + 133: uint16(23904), + 134: uint16(23905), + 135: uint16(23906), + 136: uint16(23907), + 137: uint16(23908), + 138: uint16(23909), + 139: uint16(23910), + 140: uint16(23911), + 141: uint16(23912), + 142: uint16(23914), + 143: uint16(23917), + 144: uint16(23918), + 145: uint16(23920), + 146: uint16(23921), + 147: uint16(23922), + 148: uint16(23923), + 149: uint16(23925), + 150: uint16(23926), + 151: uint16(23927), + 152: uint16(23928), + 153: uint16(23929), + 154: uint16(23930), + 155: uint16(23931), + 156: uint16(23932), + 157: uint16(23933), + 158: uint16(23934), + 159: uint16(23935), + 160: uint16(23936), + 161: uint16(23937), + 162: uint16(23939), + 163: uint16(23940), + 164: uint16(23941), + 165: uint16(23942), + 166: uint16(23943), + 167: uint16(23944), + 168: uint16(23945), + 169: uint16(23946), + 170: uint16(23947), + 171: uint16(23948), + 172: uint16(23949), + 173: uint16(23950), + 174: uint16(23951), + 175: uint16(23952), + 176: uint16(23953), + 177: uint16(23954), + 178: uint16(23955), + 179: uint16(23956), + 180: uint16(23957), + 181: uint16(23958), + 182: uint16(23959), + 183: uint16(23960), + 184: uint16(23962), + 185: uint16(23963), + 186: uint16(23964), + 187: uint16(23966), + 188: uint16(23967), + 189: uint16(23968), + }, + 13: { + 0: uint16(23969), + 1: uint16(23970), + 2: uint16(23971), + 3: uint16(23972), + 4: uint16(23973), + 5: uint16(23974), + 6: uint16(23975), + 7: uint16(23976), + 8: uint16(23977), + 9: uint16(23978), + 10: uint16(23979), + 11: uint16(23980), + 12: uint16(23981), + 13: uint16(23982), + 14: uint16(23983), + 15: uint16(23984), + 16: uint16(23985), + 17: uint16(23986), + 18: uint16(23987), + 19: uint16(23988), + 20: uint16(23989), + 21: uint16(23990), + 22: uint16(23992), + 23: uint16(23993), + 24: uint16(23994), + 25: uint16(23995), + 26: uint16(23996), + 27: uint16(23997), + 28: uint16(23998), + 29: uint16(23999), + 30: uint16(24000), + 31: uint16(24001), + 32: uint16(24002), + 33: uint16(24003), + 34: uint16(24004), + 35: uint16(24006), + 36: uint16(24007), + 37: uint16(24008), + 38: uint16(24009), + 39: uint16(24010), + 40: uint16(24011), + 41: uint16(24012), + 42: uint16(24014), + 43: uint16(24015), + 44: uint16(24016), + 45: uint16(24017), + 46: uint16(24018), + 47: uint16(24019), + 48: uint16(24020), + 49: uint16(24021), + 50: uint16(24022), + 51: uint16(24023), + 52: uint16(24024), + 53: uint16(24025), + 54: uint16(24026), + 55: uint16(24028), + 56: uint16(24031), + 57: uint16(24032), + 58: uint16(24035), + 59: uint16(24036), + 60: uint16(24042), + 61: uint16(24044), + 62: uint16(24045), + 63: uint16(24048), + 64: uint16(24053), + 65: uint16(24054), + 66: uint16(24056), + 67: uint16(24057), + 68: uint16(24058), + 69: uint16(24059), + 70: uint16(24060), + 71: uint16(24063), + 72: uint16(24064), + 73: uint16(24068), + 74: uint16(24071), + 75: uint16(24073), + 76: uint16(24074), + 77: uint16(24075), + 78: uint16(24077), + 79: uint16(24078), + 80: uint16(24082), + 81: uint16(24083), + 82: uint16(24087), + 83: uint16(24094), + 84: uint16(24095), + 85: uint16(24096), + 86: uint16(24097), + 87: uint16(24098), + 88: uint16(24099), + 89: uint16(24100), + 90: uint16(24101), + 91: uint16(24104), + 92: uint16(24105), + 93: uint16(24106), + 94: uint16(24107), + 95: uint16(24108), + 96: uint16(24111), + 97: uint16(24112), + 98: uint16(24114), + 99: uint16(24115), + 100: uint16(24116), + 101: uint16(24117), + 102: uint16(24118), + 103: uint16(24121), + 104: uint16(24122), + 105: uint16(24126), + 106: uint16(24127), + 107: uint16(24128), + 108: uint16(24129), + 109: uint16(24131), + 110: uint16(24134), + 111: uint16(24135), + 112: uint16(24136), + 113: uint16(24137), + 114: uint16(24138), + 115: uint16(24139), + 116: uint16(24141), + 117: uint16(24142), + 118: uint16(24143), + 119: uint16(24144), + 120: uint16(24145), + 121: uint16(24146), + 122: uint16(24147), + 123: uint16(24150), + 124: uint16(24151), + 125: uint16(24152), + 126: uint16(24153), + 127: uint16(24154), + 128: uint16(24156), + 129: uint16(24157), + 130: uint16(24159), + 131: uint16(24160), + 132: uint16(24163), + 133: uint16(24164), + 134: uint16(24165), + 135: uint16(24166), + 136: uint16(24167), + 137: uint16(24168), + 138: uint16(24169), + 139: uint16(24170), + 140: uint16(24171), + 141: uint16(24172), + 142: uint16(24173), + 143: uint16(24174), + 144: uint16(24175), + 145: uint16(24176), + 146: uint16(24177), + 147: uint16(24181), + 148: uint16(24183), + 149: uint16(24185), + 150: uint16(24190), + 151: uint16(24193), + 152: uint16(24194), + 153: uint16(24195), + 154: uint16(24197), + 155: uint16(24200), + 156: uint16(24201), + 157: uint16(24204), + 158: uint16(24205), + 159: uint16(24206), + 160: uint16(24210), + 161: uint16(24216), + 162: uint16(24219), + 163: uint16(24221), + 164: uint16(24225), + 165: uint16(24226), + 166: uint16(24227), + 167: uint16(24228), + 168: uint16(24232), + 169: uint16(24233), + 170: uint16(24234), + 171: uint16(24235), + 172: uint16(24236), + 173: uint16(24238), + 174: uint16(24239), + 175: uint16(24240), + 176: uint16(24241), + 177: uint16(24242), + 178: uint16(24244), + 179: uint16(24250), + 180: uint16(24251), + 181: uint16(24252), + 182: uint16(24253), + 183: uint16(24255), + 184: uint16(24256), + 185: uint16(24257), + 186: uint16(24258), + 187: uint16(24259), + 188: uint16(24260), + 189: uint16(24261), + }, + 14: { + 0: uint16(24262), + 1: uint16(24263), + 2: uint16(24264), + 3: uint16(24267), + 4: uint16(24268), + 5: uint16(24269), + 6: uint16(24270), + 7: uint16(24271), + 8: uint16(24272), + 9: uint16(24276), + 10: uint16(24277), + 11: uint16(24279), + 12: uint16(24280), + 13: uint16(24281), + 14: uint16(24282), + 15: uint16(24284), + 16: uint16(24285), + 17: uint16(24286), + 18: uint16(24287), + 19: uint16(24288), + 20: uint16(24289), + 21: uint16(24290), + 22: uint16(24291), + 23: uint16(24292), + 24: uint16(24293), + 25: uint16(24294), + 26: uint16(24295), + 27: uint16(24297), + 28: uint16(24299), + 29: uint16(24300), + 30: uint16(24301), + 31: uint16(24302), + 32: uint16(24303), + 33: uint16(24304), + 34: uint16(24305), + 35: uint16(24306), + 36: uint16(24307), + 37: uint16(24309), + 38: uint16(24312), + 39: uint16(24313), + 40: uint16(24315), + 41: uint16(24316), + 42: uint16(24317), + 43: uint16(24325), + 44: uint16(24326), + 45: uint16(24327), + 46: uint16(24329), + 47: uint16(24332), + 48: uint16(24333), + 49: uint16(24334), + 50: uint16(24336), + 51: uint16(24338), + 52: uint16(24340), + 53: uint16(24342), + 54: uint16(24345), + 55: uint16(24346), + 56: uint16(24348), + 57: uint16(24349), + 58: uint16(24350), + 59: uint16(24353), + 60: uint16(24354), + 61: uint16(24355), + 62: uint16(24356), + 63: uint16(24360), + 64: uint16(24363), + 65: uint16(24364), + 66: uint16(24366), + 67: uint16(24368), + 68: uint16(24370), + 69: uint16(24371), + 70: uint16(24372), + 71: uint16(24373), + 72: uint16(24374), + 73: uint16(24375), + 74: uint16(24376), + 75: uint16(24379), + 76: uint16(24381), + 77: uint16(24382), + 78: uint16(24383), + 79: uint16(24385), + 80: uint16(24386), + 81: uint16(24387), + 82: uint16(24388), + 83: uint16(24389), + 84: uint16(24390), + 85: uint16(24391), + 86: uint16(24392), + 87: uint16(24393), + 88: uint16(24394), + 89: uint16(24395), + 90: uint16(24396), + 91: uint16(24397), + 92: uint16(24398), + 93: uint16(24399), + 94: uint16(24401), + 95: uint16(24404), + 96: uint16(24409), + 97: uint16(24410), + 98: uint16(24411), + 99: uint16(24412), + 100: uint16(24414), + 101: uint16(24415), + 102: uint16(24416), + 103: uint16(24419), + 104: uint16(24421), + 105: uint16(24423), + 106: uint16(24424), + 107: uint16(24427), + 108: uint16(24430), + 109: uint16(24431), + 110: uint16(24434), + 111: uint16(24436), + 112: uint16(24437), + 113: uint16(24438), + 114: uint16(24440), + 115: uint16(24442), + 116: uint16(24445), + 117: uint16(24446), + 118: uint16(24447), + 119: uint16(24451), + 120: uint16(24454), + 121: uint16(24461), + 122: uint16(24462), + 123: uint16(24463), + 124: uint16(24465), + 125: uint16(24467), + 126: uint16(24468), + 127: uint16(24470), + 128: uint16(24474), + 129: uint16(24475), + 130: uint16(24477), + 131: uint16(24478), + 132: uint16(24479), + 133: uint16(24480), + 134: uint16(24482), + 135: uint16(24483), + 136: uint16(24484), + 137: uint16(24485), + 138: uint16(24486), + 139: uint16(24487), + 140: uint16(24489), + 141: uint16(24491), + 142: uint16(24492), + 143: uint16(24495), + 144: uint16(24496), + 145: uint16(24497), + 146: uint16(24498), + 147: uint16(24499), + 148: uint16(24500), + 149: uint16(24502), + 150: uint16(24504), + 151: uint16(24505), + 152: uint16(24506), + 153: uint16(24507), + 154: uint16(24510), + 155: uint16(24511), + 156: uint16(24512), + 157: uint16(24513), + 158: uint16(24514), + 159: uint16(24519), + 160: uint16(24520), + 161: uint16(24522), + 162: uint16(24523), + 163: uint16(24526), + 164: uint16(24531), + 165: uint16(24532), + 166: uint16(24533), + 167: uint16(24538), + 168: uint16(24539), + 169: uint16(24540), + 170: uint16(24542), + 171: uint16(24543), + 172: uint16(24546), + 173: uint16(24547), + 174: uint16(24549), + 175: uint16(24550), + 176: uint16(24552), + 177: uint16(24553), + 178: uint16(24556), + 179: uint16(24559), + 180: uint16(24560), + 181: uint16(24562), + 182: uint16(24563), + 183: uint16(24564), + 184: uint16(24566), + 185: uint16(24567), + 186: uint16(24569), + 187: uint16(24570), + 188: uint16(24572), + 189: uint16(24583), + }, + 15: { + 0: uint16(24584), + 1: uint16(24585), + 2: uint16(24587), + 3: uint16(24588), + 4: uint16(24592), + 5: uint16(24593), + 6: uint16(24595), + 7: uint16(24599), + 8: uint16(24600), + 9: uint16(24602), + 10: uint16(24606), + 11: uint16(24607), + 12: uint16(24610), + 13: uint16(24611), + 14: uint16(24612), + 15: uint16(24620), + 16: uint16(24621), + 17: uint16(24622), + 18: uint16(24624), + 19: uint16(24625), + 20: uint16(24626), + 21: uint16(24627), + 22: uint16(24628), + 23: uint16(24630), + 24: uint16(24631), + 25: uint16(24632), + 26: uint16(24633), + 27: uint16(24634), + 28: uint16(24637), + 29: uint16(24638), + 30: uint16(24640), + 31: uint16(24644), + 32: uint16(24645), + 33: uint16(24646), + 34: uint16(24647), + 35: uint16(24648), + 36: uint16(24649), + 37: uint16(24650), + 38: uint16(24652), + 39: uint16(24654), + 40: uint16(24655), + 41: uint16(24657), + 42: uint16(24659), + 43: uint16(24660), + 44: uint16(24662), + 45: uint16(24663), + 46: uint16(24664), + 47: uint16(24667), + 48: uint16(24668), + 49: uint16(24670), + 50: uint16(24671), + 51: uint16(24672), + 52: uint16(24673), + 53: uint16(24677), + 54: uint16(24678), + 55: uint16(24686), + 56: uint16(24689), + 57: uint16(24690), + 58: uint16(24692), + 59: uint16(24693), + 60: uint16(24695), + 61: uint16(24702), + 62: uint16(24704), + 63: uint16(24705), + 64: uint16(24706), + 65: uint16(24709), + 66: uint16(24710), + 67: uint16(24711), + 68: uint16(24712), + 69: uint16(24714), + 70: uint16(24715), + 71: uint16(24718), + 72: uint16(24719), + 73: uint16(24720), + 74: uint16(24721), + 75: uint16(24723), + 76: uint16(24725), + 77: uint16(24727), + 78: uint16(24728), + 79: uint16(24729), + 80: uint16(24732), + 81: uint16(24734), + 82: uint16(24737), + 83: uint16(24738), + 84: uint16(24740), + 85: uint16(24741), + 86: uint16(24743), + 87: uint16(24745), + 88: uint16(24746), + 89: uint16(24750), + 90: uint16(24752), + 91: uint16(24755), + 92: uint16(24757), + 93: uint16(24758), + 94: uint16(24759), + 95: uint16(24761), + 96: uint16(24762), + 97: uint16(24765), + 98: uint16(24766), + 99: uint16(24767), + 100: uint16(24768), + 101: uint16(24769), + 102: uint16(24770), + 103: uint16(24771), + 104: uint16(24772), + 105: uint16(24775), + 106: uint16(24776), + 107: uint16(24777), + 108: uint16(24780), + 109: uint16(24781), + 110: uint16(24782), + 111: uint16(24783), + 112: uint16(24784), + 113: uint16(24786), + 114: uint16(24787), + 115: uint16(24788), + 116: uint16(24790), + 117: uint16(24791), + 118: uint16(24793), + 119: uint16(24795), + 120: uint16(24798), + 121: uint16(24801), + 122: uint16(24802), + 123: uint16(24803), + 124: uint16(24804), + 125: uint16(24805), + 126: uint16(24810), + 127: uint16(24817), + 128: uint16(24818), + 129: uint16(24821), + 130: uint16(24823), + 131: uint16(24824), + 132: uint16(24827), + 133: uint16(24828), + 134: uint16(24829), + 135: uint16(24830), + 136: uint16(24831), + 137: uint16(24834), + 138: uint16(24835), + 139: uint16(24836), + 140: uint16(24837), + 141: uint16(24839), + 142: uint16(24842), + 143: uint16(24843), + 144: uint16(24844), + 145: uint16(24848), + 146: uint16(24849), + 147: uint16(24850), + 148: uint16(24851), + 149: uint16(24852), + 150: uint16(24854), + 151: uint16(24855), + 152: uint16(24856), + 153: uint16(24857), + 154: uint16(24859), + 155: uint16(24860), + 156: uint16(24861), + 157: uint16(24862), + 158: uint16(24865), + 159: uint16(24866), + 160: uint16(24869), + 161: uint16(24872), + 162: uint16(24873), + 163: uint16(24874), + 164: uint16(24876), + 165: uint16(24877), + 166: uint16(24878), + 167: uint16(24879), + 168: uint16(24880), + 169: uint16(24881), + 170: uint16(24882), + 171: uint16(24883), + 172: uint16(24884), + 173: uint16(24885), + 174: uint16(24886), + 175: uint16(24887), + 176: uint16(24888), + 177: uint16(24889), + 178: uint16(24890), + 179: uint16(24891), + 180: uint16(24892), + 181: uint16(24893), + 182: uint16(24894), + 183: uint16(24896), + 184: uint16(24897), + 185: uint16(24898), + 186: uint16(24899), + 187: uint16(24900), + 188: uint16(24901), + 189: uint16(24902), + }, + 16: { + 0: uint16(24903), + 1: uint16(24905), + 2: uint16(24907), + 3: uint16(24909), + 4: uint16(24911), + 5: uint16(24912), + 6: uint16(24914), + 7: uint16(24915), + 8: uint16(24916), + 9: uint16(24918), + 10: uint16(24919), + 11: uint16(24920), + 12: uint16(24921), + 13: uint16(24922), + 14: uint16(24923), + 15: uint16(24924), + 16: uint16(24926), + 17: uint16(24927), + 18: uint16(24928), + 19: uint16(24929), + 20: uint16(24931), + 21: uint16(24932), + 22: uint16(24933), + 23: uint16(24934), + 24: uint16(24937), + 25: uint16(24938), + 26: uint16(24939), + 27: uint16(24940), + 28: uint16(24941), + 29: uint16(24942), + 30: uint16(24943), + 31: uint16(24945), + 32: uint16(24946), + 33: uint16(24947), + 34: uint16(24948), + 35: uint16(24950), + 36: uint16(24952), + 37: uint16(24953), + 38: uint16(24954), + 39: uint16(24955), + 40: uint16(24956), + 41: uint16(24957), + 42: uint16(24958), + 43: uint16(24959), + 44: uint16(24960), + 45: uint16(24961), + 46: uint16(24962), + 47: uint16(24963), + 48: uint16(24964), + 49: uint16(24965), + 50: uint16(24966), + 51: uint16(24967), + 52: uint16(24968), + 53: uint16(24969), + 54: uint16(24970), + 55: uint16(24972), + 56: uint16(24973), + 57: uint16(24975), + 58: uint16(24976), + 59: uint16(24977), + 60: uint16(24978), + 61: uint16(24979), + 62: uint16(24981), + 63: uint16(24982), + 64: uint16(24983), + 65: uint16(24984), + 66: uint16(24985), + 67: uint16(24986), + 68: uint16(24987), + 69: uint16(24988), + 70: uint16(24990), + 71: uint16(24991), + 72: uint16(24992), + 73: uint16(24993), + 74: uint16(24994), + 75: uint16(24995), + 76: uint16(24996), + 77: uint16(24997), + 78: uint16(24998), + 79: uint16(25002), + 80: uint16(25003), + 81: uint16(25005), + 82: uint16(25006), + 83: uint16(25007), + 84: uint16(25008), + 85: uint16(25009), + 86: uint16(25010), + 87: uint16(25011), + 88: uint16(25012), + 89: uint16(25013), + 90: uint16(25014), + 91: uint16(25016), + 92: uint16(25017), + 93: uint16(25018), + 94: uint16(25019), + 95: uint16(25020), + 96: uint16(25021), + 97: uint16(25023), + 98: uint16(25024), + 99: uint16(25025), + 100: uint16(25027), + 101: uint16(25028), + 102: uint16(25029), + 103: uint16(25030), + 104: uint16(25031), + 105: uint16(25033), + 106: uint16(25036), + 107: uint16(25037), + 108: uint16(25038), + 109: uint16(25039), + 110: uint16(25040), + 111: uint16(25043), + 112: uint16(25045), + 113: uint16(25046), + 114: uint16(25047), + 115: uint16(25048), + 116: uint16(25049), + 117: uint16(25050), + 118: uint16(25051), + 119: uint16(25052), + 120: uint16(25053), + 121: uint16(25054), + 122: uint16(25055), + 123: uint16(25056), + 124: uint16(25057), + 125: uint16(25058), + 126: uint16(25059), + 127: uint16(25060), + 128: uint16(25061), + 129: uint16(25063), + 130: uint16(25064), + 131: uint16(25065), + 132: uint16(25066), + 133: uint16(25067), + 134: uint16(25068), + 135: uint16(25069), + 136: uint16(25070), + 137: uint16(25071), + 138: uint16(25072), + 139: uint16(25073), + 140: uint16(25074), + 141: uint16(25075), + 142: uint16(25076), + 143: uint16(25078), + 144: uint16(25079), + 145: uint16(25080), + 146: uint16(25081), + 147: uint16(25082), + 148: uint16(25083), + 149: uint16(25084), + 150: uint16(25085), + 151: uint16(25086), + 152: uint16(25088), + 153: uint16(25089), + 154: uint16(25090), + 155: uint16(25091), + 156: uint16(25092), + 157: uint16(25093), + 158: uint16(25095), + 159: uint16(25097), + 160: uint16(25107), + 161: uint16(25108), + 162: uint16(25113), + 163: uint16(25116), + 164: uint16(25117), + 165: uint16(25118), + 166: uint16(25120), + 167: uint16(25123), + 168: uint16(25126), + 169: uint16(25127), + 170: uint16(25128), + 171: uint16(25129), + 172: uint16(25131), + 173: uint16(25133), + 174: uint16(25135), + 175: uint16(25136), + 176: uint16(25137), + 177: uint16(25138), + 178: uint16(25141), + 179: uint16(25142), + 180: uint16(25144), + 181: uint16(25145), + 182: uint16(25146), + 183: uint16(25147), + 184: uint16(25148), + 185: uint16(25154), + 186: uint16(25156), + 187: uint16(25157), + 188: uint16(25158), + 189: uint16(25162), + }, + 17: { + 0: uint16(25167), + 1: uint16(25168), + 2: uint16(25173), + 3: uint16(25174), + 4: uint16(25175), + 5: uint16(25177), + 6: uint16(25178), + 7: uint16(25180), + 8: uint16(25181), + 9: uint16(25182), + 10: uint16(25183), + 11: uint16(25184), + 12: uint16(25185), + 13: uint16(25186), + 14: uint16(25188), + 15: uint16(25189), + 16: uint16(25192), + 17: uint16(25201), + 18: uint16(25202), + 19: uint16(25204), + 20: uint16(25205), + 21: uint16(25207), + 22: uint16(25208), + 23: uint16(25210), + 24: uint16(25211), + 25: uint16(25213), + 26: uint16(25217), + 27: uint16(25218), + 28: uint16(25219), + 29: uint16(25221), + 30: uint16(25222), + 31: uint16(25223), + 32: uint16(25224), + 33: uint16(25227), + 34: uint16(25228), + 35: uint16(25229), + 36: uint16(25230), + 37: uint16(25231), + 38: uint16(25232), + 39: uint16(25236), + 40: uint16(25241), + 41: uint16(25244), + 42: uint16(25245), + 43: uint16(25246), + 44: uint16(25251), + 45: uint16(25254), + 46: uint16(25255), + 47: uint16(25257), + 48: uint16(25258), + 49: uint16(25261), + 50: uint16(25262), + 51: uint16(25263), + 52: uint16(25264), + 53: uint16(25266), + 54: uint16(25267), + 55: uint16(25268), + 56: uint16(25270), + 57: uint16(25271), + 58: uint16(25272), + 59: uint16(25274), + 60: uint16(25278), + 61: uint16(25280), + 62: uint16(25281), + 63: uint16(25283), + 64: uint16(25291), + 65: uint16(25295), + 66: uint16(25297), + 67: uint16(25301), + 68: uint16(25309), + 69: uint16(25310), + 70: uint16(25312), + 71: uint16(25313), + 72: uint16(25316), + 73: uint16(25322), + 74: uint16(25323), + 75: uint16(25328), + 76: uint16(25330), + 77: uint16(25333), + 78: uint16(25336), + 79: uint16(25337), + 80: uint16(25338), + 81: uint16(25339), + 82: uint16(25344), + 83: uint16(25347), + 84: uint16(25348), + 85: uint16(25349), + 86: uint16(25350), + 87: uint16(25354), + 88: uint16(25355), + 89: uint16(25356), + 90: uint16(25357), + 91: uint16(25359), + 92: uint16(25360), + 93: uint16(25362), + 94: uint16(25363), + 95: uint16(25364), + 96: uint16(25365), + 97: uint16(25367), + 98: uint16(25368), + 99: uint16(25369), + 100: uint16(25372), + 101: uint16(25382), + 102: uint16(25383), + 103: uint16(25385), + 104: uint16(25388), + 105: uint16(25389), + 106: uint16(25390), + 107: uint16(25392), + 108: uint16(25393), + 109: uint16(25395), + 110: uint16(25396), + 111: uint16(25397), + 112: uint16(25398), + 113: uint16(25399), + 114: uint16(25400), + 115: uint16(25403), + 116: uint16(25404), + 117: uint16(25406), + 118: uint16(25407), + 119: uint16(25408), + 120: uint16(25409), + 121: uint16(25412), + 122: uint16(25415), + 123: uint16(25416), + 124: uint16(25418), + 125: uint16(25425), + 126: uint16(25426), + 127: uint16(25427), + 128: uint16(25428), + 129: uint16(25430), + 130: uint16(25431), + 131: uint16(25432), + 132: uint16(25433), + 133: uint16(25434), + 134: uint16(25435), + 135: uint16(25436), + 136: uint16(25437), + 137: uint16(25440), + 138: uint16(25444), + 139: uint16(25445), + 140: uint16(25446), + 141: uint16(25448), + 142: uint16(25450), + 143: uint16(25451), + 144: uint16(25452), + 145: uint16(25455), + 146: uint16(25456), + 147: uint16(25458), + 148: uint16(25459), + 149: uint16(25460), + 150: uint16(25461), + 151: uint16(25464), + 152: uint16(25465), + 153: uint16(25468), + 154: uint16(25469), + 155: uint16(25470), + 156: uint16(25471), + 157: uint16(25473), + 158: uint16(25475), + 159: uint16(25476), + 160: uint16(25477), + 161: uint16(25478), + 162: uint16(25483), + 163: uint16(25485), + 164: uint16(25489), + 165: uint16(25491), + 166: uint16(25492), + 167: uint16(25493), + 168: uint16(25495), + 169: uint16(25497), + 170: uint16(25498), + 171: uint16(25499), + 172: uint16(25500), + 173: uint16(25501), + 174: uint16(25502), + 175: uint16(25503), + 176: uint16(25505), + 177: uint16(25508), + 178: uint16(25510), + 179: uint16(25515), + 180: uint16(25519), + 181: uint16(25521), + 182: uint16(25522), + 183: uint16(25525), + 184: uint16(25526), + 185: uint16(25529), + 186: uint16(25531), + 187: uint16(25533), + 188: uint16(25535), + 189: uint16(25536), + }, + 18: { + 0: uint16(25537), + 1: uint16(25538), + 2: uint16(25539), + 3: uint16(25541), + 4: uint16(25543), + 5: uint16(25544), + 6: uint16(25546), + 7: uint16(25547), + 8: uint16(25548), + 9: uint16(25553), + 10: uint16(25555), + 11: uint16(25556), + 12: uint16(25557), + 13: uint16(25559), + 14: uint16(25560), + 15: uint16(25561), + 16: uint16(25562), + 17: uint16(25563), + 18: uint16(25564), + 19: uint16(25565), + 20: uint16(25567), + 21: uint16(25570), + 22: uint16(25572), + 23: uint16(25573), + 24: uint16(25574), + 25: uint16(25575), + 26: uint16(25576), + 27: uint16(25579), + 28: uint16(25580), + 29: uint16(25582), + 30: uint16(25583), + 31: uint16(25584), + 32: uint16(25585), + 33: uint16(25587), + 34: uint16(25589), + 35: uint16(25591), + 36: uint16(25593), + 37: uint16(25594), + 38: uint16(25595), + 39: uint16(25596), + 40: uint16(25598), + 41: uint16(25603), + 42: uint16(25604), + 43: uint16(25606), + 44: uint16(25607), + 45: uint16(25608), + 46: uint16(25609), + 47: uint16(25610), + 48: uint16(25613), + 49: uint16(25614), + 50: uint16(25617), + 51: uint16(25618), + 52: uint16(25621), + 53: uint16(25622), + 54: uint16(25623), + 55: uint16(25624), + 56: uint16(25625), + 57: uint16(25626), + 58: uint16(25629), + 59: uint16(25631), + 60: uint16(25634), + 61: uint16(25635), + 62: uint16(25636), + 63: uint16(25637), + 64: uint16(25639), + 65: uint16(25640), + 66: uint16(25641), + 67: uint16(25643), + 68: uint16(25646), + 69: uint16(25647), + 70: uint16(25648), + 71: uint16(25649), + 72: uint16(25650), + 73: uint16(25651), + 74: uint16(25653), + 75: uint16(25654), + 76: uint16(25655), + 77: uint16(25656), + 78: uint16(25657), + 79: uint16(25659), + 80: uint16(25660), + 81: uint16(25662), + 82: uint16(25664), + 83: uint16(25666), + 84: uint16(25667), + 85: uint16(25673), + 86: uint16(25675), + 87: uint16(25676), + 88: uint16(25677), + 89: uint16(25678), + 90: uint16(25679), + 91: uint16(25680), + 92: uint16(25681), + 93: uint16(25683), + 94: uint16(25685), + 95: uint16(25686), + 96: uint16(25687), + 97: uint16(25689), + 98: uint16(25690), + 99: uint16(25691), + 100: uint16(25692), + 101: uint16(25693), + 102: uint16(25695), + 103: uint16(25696), + 104: uint16(25697), + 105: uint16(25698), + 106: uint16(25699), + 107: uint16(25700), + 108: uint16(25701), + 109: uint16(25702), + 110: uint16(25704), + 111: uint16(25706), + 112: uint16(25707), + 113: uint16(25708), + 114: uint16(25710), + 115: uint16(25711), + 116: uint16(25712), + 117: uint16(25713), + 118: uint16(25714), + 119: uint16(25715), + 120: uint16(25716), + 121: uint16(25717), + 122: uint16(25718), + 123: uint16(25719), + 124: uint16(25723), + 125: uint16(25724), + 126: uint16(25725), + 127: uint16(25726), + 128: uint16(25727), + 129: uint16(25728), + 130: uint16(25729), + 131: uint16(25731), + 132: uint16(25734), + 133: uint16(25736), + 134: uint16(25737), + 135: uint16(25738), + 136: uint16(25739), + 137: uint16(25740), + 138: uint16(25741), + 139: uint16(25742), + 140: uint16(25743), + 141: uint16(25744), + 142: uint16(25747), + 143: uint16(25748), + 144: uint16(25751), + 145: uint16(25752), + 146: uint16(25754), + 147: uint16(25755), + 148: uint16(25756), + 149: uint16(25757), + 150: uint16(25759), + 151: uint16(25760), + 152: uint16(25761), + 153: uint16(25762), + 154: uint16(25763), + 155: uint16(25765), + 156: uint16(25766), + 157: uint16(25767), + 158: uint16(25768), + 159: uint16(25770), + 160: uint16(25771), + 161: uint16(25775), + 162: uint16(25777), + 163: uint16(25778), + 164: uint16(25779), + 165: uint16(25780), + 166: uint16(25782), + 167: uint16(25785), + 168: uint16(25787), + 169: uint16(25789), + 170: uint16(25790), + 171: uint16(25791), + 172: uint16(25793), + 173: uint16(25795), + 174: uint16(25796), + 175: uint16(25798), + 176: uint16(25799), + 177: uint16(25800), + 178: uint16(25801), + 179: uint16(25802), + 180: uint16(25803), + 181: uint16(25804), + 182: uint16(25807), + 183: uint16(25809), + 184: uint16(25811), + 185: uint16(25812), + 186: uint16(25813), + 187: uint16(25814), + 188: uint16(25817), + 189: uint16(25818), + }, + 19: { + 0: uint16(25819), + 1: uint16(25820), + 2: uint16(25821), + 3: uint16(25823), + 4: uint16(25824), + 5: uint16(25825), + 6: uint16(25827), + 7: uint16(25829), + 8: uint16(25831), + 9: uint16(25832), + 10: uint16(25833), + 11: uint16(25834), + 12: uint16(25835), + 13: uint16(25836), + 14: uint16(25837), + 15: uint16(25838), + 16: uint16(25839), + 17: uint16(25840), + 18: uint16(25841), + 19: uint16(25842), + 20: uint16(25843), + 21: uint16(25844), + 22: uint16(25845), + 23: uint16(25846), + 24: uint16(25847), + 25: uint16(25848), + 26: uint16(25849), + 27: uint16(25850), + 28: uint16(25851), + 29: uint16(25852), + 30: uint16(25853), + 31: uint16(25854), + 32: uint16(25855), + 33: uint16(25857), + 34: uint16(25858), + 35: uint16(25859), + 36: uint16(25860), + 37: uint16(25861), + 38: uint16(25862), + 39: uint16(25863), + 40: uint16(25864), + 41: uint16(25866), + 42: uint16(25867), + 43: uint16(25868), + 44: uint16(25869), + 45: uint16(25870), + 46: uint16(25871), + 47: uint16(25872), + 48: uint16(25873), + 49: uint16(25875), + 50: uint16(25876), + 51: uint16(25877), + 52: uint16(25878), + 53: uint16(25879), + 54: uint16(25881), + 55: uint16(25882), + 56: uint16(25883), + 57: uint16(25884), + 58: uint16(25885), + 59: uint16(25886), + 60: uint16(25887), + 61: uint16(25888), + 62: uint16(25889), + 63: uint16(25890), + 64: uint16(25891), + 65: uint16(25892), + 66: uint16(25894), + 67: uint16(25895), + 68: uint16(25896), + 69: uint16(25897), + 70: uint16(25898), + 71: uint16(25900), + 72: uint16(25901), + 73: uint16(25904), + 74: uint16(25905), + 75: uint16(25906), + 76: uint16(25907), + 77: uint16(25911), + 78: uint16(25914), + 79: uint16(25916), + 80: uint16(25917), + 81: uint16(25920), + 82: uint16(25921), + 83: uint16(25922), + 84: uint16(25923), + 85: uint16(25924), + 86: uint16(25926), + 87: uint16(25927), + 88: uint16(25930), + 89: uint16(25931), + 90: uint16(25933), + 91: uint16(25934), + 92: uint16(25936), + 93: uint16(25938), + 94: uint16(25939), + 95: uint16(25940), + 96: uint16(25943), + 97: uint16(25944), + 98: uint16(25946), + 99: uint16(25948), + 100: uint16(25951), + 101: uint16(25952), + 102: uint16(25953), + 103: uint16(25956), + 104: uint16(25957), + 105: uint16(25959), + 106: uint16(25960), + 107: uint16(25961), + 108: uint16(25962), + 109: uint16(25965), + 110: uint16(25966), + 111: uint16(25967), + 112: uint16(25969), + 113: uint16(25971), + 114: uint16(25973), + 115: uint16(25974), + 116: uint16(25976), + 117: uint16(25977), + 118: uint16(25978), + 119: uint16(25979), + 120: uint16(25980), + 121: uint16(25981), + 122: uint16(25982), + 123: uint16(25983), + 124: uint16(25984), + 125: uint16(25985), + 126: uint16(25986), + 127: uint16(25987), + 128: uint16(25988), + 129: uint16(25989), + 130: uint16(25990), + 131: uint16(25992), + 132: uint16(25993), + 133: uint16(25994), + 134: uint16(25997), + 135: uint16(25998), + 136: uint16(25999), + 137: uint16(26002), + 138: uint16(26004), + 139: uint16(26005), + 140: uint16(26006), + 141: uint16(26008), + 142: uint16(26010), + 143: uint16(26013), + 144: uint16(26014), + 145: uint16(26016), + 146: uint16(26018), + 147: uint16(26019), + 148: uint16(26022), + 149: uint16(26024), + 150: uint16(26026), + 151: uint16(26028), + 152: uint16(26030), + 153: uint16(26033), + 154: uint16(26034), + 155: uint16(26035), + 156: uint16(26036), + 157: uint16(26037), + 158: uint16(26038), + 159: uint16(26039), + 160: uint16(26040), + 161: uint16(26042), + 162: uint16(26043), + 163: uint16(26046), + 164: uint16(26047), + 165: uint16(26048), + 166: uint16(26050), + 167: uint16(26055), + 168: uint16(26056), + 169: uint16(26057), + 170: uint16(26058), + 171: uint16(26061), + 172: uint16(26064), + 173: uint16(26065), + 174: uint16(26067), + 175: uint16(26068), + 176: uint16(26069), + 177: uint16(26072), + 178: uint16(26073), + 179: uint16(26074), + 180: uint16(26075), + 181: uint16(26076), + 182: uint16(26077), + 183: uint16(26078), + 184: uint16(26079), + 185: uint16(26081), + 186: uint16(26083), + 187: uint16(26084), + 188: uint16(26090), + 189: uint16(26091), + }, + 20: { + 0: uint16(26098), + 1: uint16(26099), + 2: uint16(26100), + 3: uint16(26101), + 4: uint16(26104), + 5: uint16(26105), + 6: uint16(26107), + 7: uint16(26108), + 8: uint16(26109), + 9: uint16(26110), + 10: uint16(26111), + 11: uint16(26113), + 12: uint16(26116), + 13: uint16(26117), + 14: uint16(26119), + 15: uint16(26120), + 16: uint16(26121), + 17: uint16(26123), + 18: uint16(26125), + 19: uint16(26128), + 20: uint16(26129), + 21: uint16(26130), + 22: uint16(26134), + 23: uint16(26135), + 24: uint16(26136), + 25: uint16(26138), + 26: uint16(26139), + 27: uint16(26140), + 28: uint16(26142), + 29: uint16(26145), + 30: uint16(26146), + 31: uint16(26147), + 32: uint16(26148), + 33: uint16(26150), + 34: uint16(26153), + 35: uint16(26154), + 36: uint16(26155), + 37: uint16(26156), + 38: uint16(26158), + 39: uint16(26160), + 40: uint16(26162), + 41: uint16(26163), + 42: uint16(26167), + 43: uint16(26168), + 44: uint16(26169), + 45: uint16(26170), + 46: uint16(26171), + 47: uint16(26173), + 48: uint16(26175), + 49: uint16(26176), + 50: uint16(26178), + 51: uint16(26180), + 52: uint16(26181), + 53: uint16(26182), + 54: uint16(26183), + 55: uint16(26184), + 56: uint16(26185), + 57: uint16(26186), + 58: uint16(26189), + 59: uint16(26190), + 60: uint16(26192), + 61: uint16(26193), + 62: uint16(26200), + 63: uint16(26201), + 64: uint16(26203), + 65: uint16(26204), + 66: uint16(26205), + 67: uint16(26206), + 68: uint16(26208), + 69: uint16(26210), + 70: uint16(26211), + 71: uint16(26213), + 72: uint16(26215), + 73: uint16(26217), + 74: uint16(26218), + 75: uint16(26219), + 76: uint16(26220), + 77: uint16(26221), + 78: uint16(26225), + 79: uint16(26226), + 80: uint16(26227), + 81: uint16(26229), + 82: uint16(26232), + 83: uint16(26233), + 84: uint16(26235), + 85: uint16(26236), + 86: uint16(26237), + 87: uint16(26239), + 88: uint16(26240), + 89: uint16(26241), + 90: uint16(26243), + 91: uint16(26245), + 92: uint16(26246), + 93: uint16(26248), + 94: uint16(26249), + 95: uint16(26250), + 96: uint16(26251), + 97: uint16(26253), + 98: uint16(26254), + 99: uint16(26255), + 100: uint16(26256), + 101: uint16(26258), + 102: uint16(26259), + 103: uint16(26260), + 104: uint16(26261), + 105: uint16(26264), + 106: uint16(26265), + 107: uint16(26266), + 108: uint16(26267), + 109: uint16(26268), + 110: uint16(26270), + 111: uint16(26271), + 112: uint16(26272), + 113: uint16(26273), + 114: uint16(26274), + 115: uint16(26275), + 116: uint16(26276), + 117: uint16(26277), + 118: uint16(26278), + 119: uint16(26281), + 120: uint16(26282), + 121: uint16(26283), + 122: uint16(26284), + 123: uint16(26285), + 124: uint16(26287), + 125: uint16(26288), + 126: uint16(26289), + 127: uint16(26290), + 128: uint16(26291), + 129: uint16(26293), + 130: uint16(26294), + 131: uint16(26295), + 132: uint16(26296), + 133: uint16(26298), + 134: uint16(26299), + 135: uint16(26300), + 136: uint16(26301), + 137: uint16(26303), + 138: uint16(26304), + 139: uint16(26305), + 140: uint16(26306), + 141: uint16(26307), + 142: uint16(26308), + 143: uint16(26309), + 144: uint16(26310), + 145: uint16(26311), + 146: uint16(26312), + 147: uint16(26313), + 148: uint16(26314), + 149: uint16(26315), + 150: uint16(26316), + 151: uint16(26317), + 152: uint16(26318), + 153: uint16(26319), + 154: uint16(26320), + 155: uint16(26321), + 156: uint16(26322), + 157: uint16(26323), + 158: uint16(26324), + 159: uint16(26325), + 160: uint16(26326), + 161: uint16(26327), + 162: uint16(26328), + 163: uint16(26330), + 164: uint16(26334), + 165: uint16(26335), + 166: uint16(26336), + 167: uint16(26337), + 168: uint16(26338), + 169: uint16(26339), + 170: uint16(26340), + 171: uint16(26341), + 172: uint16(26343), + 173: uint16(26344), + 174: uint16(26346), + 175: uint16(26347), + 176: uint16(26348), + 177: uint16(26349), + 178: uint16(26350), + 179: uint16(26351), + 180: uint16(26353), + 181: uint16(26357), + 182: uint16(26358), + 183: uint16(26360), + 184: uint16(26362), + 185: uint16(26363), + 186: uint16(26365), + 187: uint16(26369), + 188: uint16(26370), + 189: uint16(26371), + }, + 21: { + 0: uint16(26372), + 1: uint16(26373), + 2: uint16(26374), + 3: uint16(26375), + 4: uint16(26380), + 5: uint16(26382), + 6: uint16(26383), + 7: uint16(26385), + 8: uint16(26386), + 9: uint16(26387), + 10: uint16(26390), + 11: uint16(26392), + 12: uint16(26393), + 13: uint16(26394), + 14: uint16(26396), + 15: uint16(26398), + 16: uint16(26400), + 17: uint16(26401), + 18: uint16(26402), + 19: uint16(26403), + 20: uint16(26404), + 21: uint16(26405), + 22: uint16(26407), + 23: uint16(26409), + 24: uint16(26414), + 25: uint16(26416), + 26: uint16(26418), + 27: uint16(26419), + 28: uint16(26422), + 29: uint16(26423), + 30: uint16(26424), + 31: uint16(26425), + 32: uint16(26427), + 33: uint16(26428), + 34: uint16(26430), + 35: uint16(26431), + 36: uint16(26433), + 37: uint16(26436), + 38: uint16(26437), + 39: uint16(26439), + 40: uint16(26442), + 41: uint16(26443), + 42: uint16(26445), + 43: uint16(26450), + 44: uint16(26452), + 45: uint16(26453), + 46: uint16(26455), + 47: uint16(26456), + 48: uint16(26457), + 49: uint16(26458), + 50: uint16(26459), + 51: uint16(26461), + 52: uint16(26466), + 53: uint16(26467), + 54: uint16(26468), + 55: uint16(26470), + 56: uint16(26471), + 57: uint16(26475), + 58: uint16(26476), + 59: uint16(26478), + 60: uint16(26481), + 61: uint16(26484), + 62: uint16(26486), + 63: uint16(26488), + 64: uint16(26489), + 65: uint16(26490), + 66: uint16(26491), + 67: uint16(26493), + 68: uint16(26496), + 69: uint16(26498), + 70: uint16(26499), + 71: uint16(26501), + 72: uint16(26502), + 73: uint16(26504), + 74: uint16(26506), + 75: uint16(26508), + 76: uint16(26509), + 77: uint16(26510), + 78: uint16(26511), + 79: uint16(26513), + 80: uint16(26514), + 81: uint16(26515), + 82: uint16(26516), + 83: uint16(26518), + 84: uint16(26521), + 85: uint16(26523), + 86: uint16(26527), + 87: uint16(26528), + 88: uint16(26529), + 89: uint16(26532), + 90: uint16(26534), + 91: uint16(26537), + 92: uint16(26540), + 93: uint16(26542), + 94: uint16(26545), + 95: uint16(26546), + 96: uint16(26548), + 97: uint16(26553), + 98: uint16(26554), + 99: uint16(26555), + 100: uint16(26556), + 101: uint16(26557), + 102: uint16(26558), + 103: uint16(26559), + 104: uint16(26560), + 105: uint16(26562), + 106: uint16(26565), + 107: uint16(26566), + 108: uint16(26567), + 109: uint16(26568), + 110: uint16(26569), + 111: uint16(26570), + 112: uint16(26571), + 113: uint16(26572), + 114: uint16(26573), + 115: uint16(26574), + 116: uint16(26581), + 117: uint16(26582), + 118: uint16(26583), + 119: uint16(26587), + 120: uint16(26591), + 121: uint16(26593), + 122: uint16(26595), + 123: uint16(26596), + 124: uint16(26598), + 125: uint16(26599), + 126: uint16(26600), + 127: uint16(26602), + 128: uint16(26603), + 129: uint16(26605), + 130: uint16(26606), + 131: uint16(26610), + 132: uint16(26613), + 133: uint16(26614), + 134: uint16(26615), + 135: uint16(26616), + 136: uint16(26617), + 137: uint16(26618), + 138: uint16(26619), + 139: uint16(26620), + 140: uint16(26622), + 141: uint16(26625), + 142: uint16(26626), + 143: uint16(26627), + 144: uint16(26628), + 145: uint16(26630), + 146: uint16(26637), + 147: uint16(26640), + 148: uint16(26642), + 149: uint16(26644), + 150: uint16(26645), + 151: uint16(26648), + 152: uint16(26649), + 153: uint16(26650), + 154: uint16(26651), + 155: uint16(26652), + 156: uint16(26654), + 157: uint16(26655), + 158: uint16(26656), + 159: uint16(26658), + 160: uint16(26659), + 161: uint16(26660), + 162: uint16(26661), + 163: uint16(26662), + 164: uint16(26663), + 165: uint16(26664), + 166: uint16(26667), + 167: uint16(26668), + 168: uint16(26669), + 169: uint16(26670), + 170: uint16(26671), + 171: uint16(26672), + 172: uint16(26673), + 173: uint16(26676), + 174: uint16(26677), + 175: uint16(26678), + 176: uint16(26682), + 177: uint16(26683), + 178: uint16(26687), + 179: uint16(26695), + 180: uint16(26699), + 181: uint16(26701), + 182: uint16(26703), + 183: uint16(26706), + 184: uint16(26710), + 185: uint16(26711), + 186: uint16(26712), + 187: uint16(26713), + 188: uint16(26714), + 189: uint16(26715), + }, + 22: { + 0: uint16(26716), + 1: uint16(26717), + 2: uint16(26718), + 3: uint16(26719), + 4: uint16(26730), + 5: uint16(26732), + 6: uint16(26733), + 7: uint16(26734), + 8: uint16(26735), + 9: uint16(26736), + 10: uint16(26737), + 11: uint16(26738), + 12: uint16(26739), + 13: uint16(26741), + 14: uint16(26744), + 15: uint16(26745), + 16: uint16(26746), + 17: uint16(26747), + 18: uint16(26748), + 19: uint16(26749), + 20: uint16(26750), + 21: uint16(26751), + 22: uint16(26752), + 23: uint16(26754), + 24: uint16(26756), + 25: uint16(26759), + 26: uint16(26760), + 27: uint16(26761), + 28: uint16(26762), + 29: uint16(26763), + 30: uint16(26764), + 31: uint16(26765), + 32: uint16(26766), + 33: uint16(26768), + 34: uint16(26769), + 35: uint16(26770), + 36: uint16(26772), + 37: uint16(26773), + 38: uint16(26774), + 39: uint16(26776), + 40: uint16(26777), + 41: uint16(26778), + 42: uint16(26779), + 43: uint16(26780), + 44: uint16(26781), + 45: uint16(26782), + 46: uint16(26783), + 47: uint16(26784), + 48: uint16(26785), + 49: uint16(26787), + 50: uint16(26788), + 51: uint16(26789), + 52: uint16(26793), + 53: uint16(26794), + 54: uint16(26795), + 55: uint16(26796), + 56: uint16(26798), + 57: uint16(26801), + 58: uint16(26802), + 59: uint16(26804), + 60: uint16(26806), + 61: uint16(26807), + 62: uint16(26808), + 63: uint16(26809), + 64: uint16(26810), + 65: uint16(26811), + 66: uint16(26812), + 67: uint16(26813), + 68: uint16(26814), + 69: uint16(26815), + 70: uint16(26817), + 71: uint16(26819), + 72: uint16(26820), + 73: uint16(26821), + 74: uint16(26822), + 75: uint16(26823), + 76: uint16(26824), + 77: uint16(26826), + 78: uint16(26828), + 79: uint16(26830), + 80: uint16(26831), + 81: uint16(26832), + 82: uint16(26833), + 83: uint16(26835), + 84: uint16(26836), + 85: uint16(26838), + 86: uint16(26839), + 87: uint16(26841), + 88: uint16(26843), + 89: uint16(26844), + 90: uint16(26845), + 91: uint16(26846), + 92: uint16(26847), + 93: uint16(26849), + 94: uint16(26850), + 95: uint16(26852), + 96: uint16(26853), + 97: uint16(26854), + 98: uint16(26855), + 99: uint16(26856), + 100: uint16(26857), + 101: uint16(26858), + 102: uint16(26859), + 103: uint16(26860), + 104: uint16(26861), + 105: uint16(26863), + 106: uint16(26866), + 107: uint16(26867), + 108: uint16(26868), + 109: uint16(26870), + 110: uint16(26871), + 111: uint16(26872), + 112: uint16(26875), + 113: uint16(26877), + 114: uint16(26878), + 115: uint16(26879), + 116: uint16(26880), + 117: uint16(26882), + 118: uint16(26883), + 119: uint16(26884), + 120: uint16(26886), + 121: uint16(26887), + 122: uint16(26888), + 123: uint16(26889), + 124: uint16(26890), + 125: uint16(26892), + 126: uint16(26895), + 127: uint16(26897), + 128: uint16(26899), + 129: uint16(26900), + 130: uint16(26901), + 131: uint16(26902), + 132: uint16(26903), + 133: uint16(26904), + 134: uint16(26905), + 135: uint16(26906), + 136: uint16(26907), + 137: uint16(26908), + 138: uint16(26909), + 139: uint16(26910), + 140: uint16(26913), + 141: uint16(26914), + 142: uint16(26915), + 143: uint16(26917), + 144: uint16(26918), + 145: uint16(26919), + 146: uint16(26920), + 147: uint16(26921), + 148: uint16(26922), + 149: uint16(26923), + 150: uint16(26924), + 151: uint16(26926), + 152: uint16(26927), + 153: uint16(26929), + 154: uint16(26930), + 155: uint16(26931), + 156: uint16(26933), + 157: uint16(26934), + 158: uint16(26935), + 159: uint16(26936), + 160: uint16(26938), + 161: uint16(26939), + 162: uint16(26940), + 163: uint16(26942), + 164: uint16(26944), + 165: uint16(26945), + 166: uint16(26947), + 167: uint16(26948), + 168: uint16(26949), + 169: uint16(26950), + 170: uint16(26951), + 171: uint16(26952), + 172: uint16(26953), + 173: uint16(26954), + 174: uint16(26955), + 175: uint16(26956), + 176: uint16(26957), + 177: uint16(26958), + 178: uint16(26959), + 179: uint16(26960), + 180: uint16(26961), + 181: uint16(26962), + 182: uint16(26963), + 183: uint16(26965), + 184: uint16(26966), + 185: uint16(26968), + 186: uint16(26969), + 187: uint16(26971), + 188: uint16(26972), + 189: uint16(26975), + }, + 23: { + 0: uint16(26977), + 1: uint16(26978), + 2: uint16(26980), + 3: uint16(26981), + 4: uint16(26983), + 5: uint16(26984), + 6: uint16(26985), + 7: uint16(26986), + 8: uint16(26988), + 9: uint16(26989), + 10: uint16(26991), + 11: uint16(26992), + 12: uint16(26994), + 13: uint16(26995), + 14: uint16(26996), + 15: uint16(26997), + 16: uint16(26998), + 17: uint16(27002), + 18: uint16(27003), + 19: uint16(27005), + 20: uint16(27006), + 21: uint16(27007), + 22: uint16(27009), + 23: uint16(27011), + 24: uint16(27013), + 25: uint16(27018), + 26: uint16(27019), + 27: uint16(27020), + 28: uint16(27022), + 29: uint16(27023), + 30: uint16(27024), + 31: uint16(27025), + 32: uint16(27026), + 33: uint16(27027), + 34: uint16(27030), + 35: uint16(27031), + 36: uint16(27033), + 37: uint16(27034), + 38: uint16(27037), + 39: uint16(27038), + 40: uint16(27039), + 41: uint16(27040), + 42: uint16(27041), + 43: uint16(27042), + 44: uint16(27043), + 45: uint16(27044), + 46: uint16(27045), + 47: uint16(27046), + 48: uint16(27049), + 49: uint16(27050), + 50: uint16(27052), + 51: uint16(27054), + 52: uint16(27055), + 53: uint16(27056), + 54: uint16(27058), + 55: uint16(27059), + 56: uint16(27061), + 57: uint16(27062), + 58: uint16(27064), + 59: uint16(27065), + 60: uint16(27066), + 61: uint16(27068), + 62: uint16(27069), + 63: uint16(27070), + 64: uint16(27071), + 65: uint16(27072), + 66: uint16(27074), + 67: uint16(27075), + 68: uint16(27076), + 69: uint16(27077), + 70: uint16(27078), + 71: uint16(27079), + 72: uint16(27080), + 73: uint16(27081), + 74: uint16(27083), + 75: uint16(27085), + 76: uint16(27087), + 77: uint16(27089), + 78: uint16(27090), + 79: uint16(27091), + 80: uint16(27093), + 81: uint16(27094), + 82: uint16(27095), + 83: uint16(27096), + 84: uint16(27097), + 85: uint16(27098), + 86: uint16(27100), + 87: uint16(27101), + 88: uint16(27102), + 89: uint16(27105), + 90: uint16(27106), + 91: uint16(27107), + 92: uint16(27108), + 93: uint16(27109), + 94: uint16(27110), + 95: uint16(27111), + 96: uint16(27112), + 97: uint16(27113), + 98: uint16(27114), + 99: uint16(27115), + 100: uint16(27116), + 101: uint16(27118), + 102: uint16(27119), + 103: uint16(27120), + 104: uint16(27121), + 105: uint16(27123), + 106: uint16(27124), + 107: uint16(27125), + 108: uint16(27126), + 109: uint16(27127), + 110: uint16(27128), + 111: uint16(27129), + 112: uint16(27130), + 113: uint16(27131), + 114: uint16(27132), + 115: uint16(27134), + 116: uint16(27136), + 117: uint16(27137), + 118: uint16(27138), + 119: uint16(27139), + 120: uint16(27140), + 121: uint16(27141), + 122: uint16(27142), + 123: uint16(27143), + 124: uint16(27144), + 125: uint16(27145), + 126: uint16(27147), + 127: uint16(27148), + 128: uint16(27149), + 129: uint16(27150), + 130: uint16(27151), + 131: uint16(27152), + 132: uint16(27153), + 133: uint16(27154), + 134: uint16(27155), + 135: uint16(27156), + 136: uint16(27157), + 137: uint16(27158), + 138: uint16(27161), + 139: uint16(27162), + 140: uint16(27163), + 141: uint16(27164), + 142: uint16(27165), + 143: uint16(27166), + 144: uint16(27168), + 145: uint16(27170), + 146: uint16(27171), + 147: uint16(27172), + 148: uint16(27173), + 149: uint16(27174), + 150: uint16(27175), + 151: uint16(27177), + 152: uint16(27179), + 153: uint16(27180), + 154: uint16(27181), + 155: uint16(27182), + 156: uint16(27184), + 157: uint16(27186), + 158: uint16(27187), + 159: uint16(27188), + 160: uint16(27190), + 161: uint16(27191), + 162: uint16(27192), + 163: uint16(27193), + 164: uint16(27194), + 165: uint16(27195), + 166: uint16(27196), + 167: uint16(27199), + 168: uint16(27200), + 169: uint16(27201), + 170: uint16(27202), + 171: uint16(27203), + 172: uint16(27205), + 173: uint16(27206), + 174: uint16(27208), + 175: uint16(27209), + 176: uint16(27210), + 177: uint16(27211), + 178: uint16(27212), + 179: uint16(27213), + 180: uint16(27214), + 181: uint16(27215), + 182: uint16(27217), + 183: uint16(27218), + 184: uint16(27219), + 185: uint16(27220), + 186: uint16(27221), + 187: uint16(27222), + 188: uint16(27223), + 189: uint16(27226), + }, + 24: { + 0: uint16(27228), + 1: uint16(27229), + 2: uint16(27230), + 3: uint16(27231), + 4: uint16(27232), + 5: uint16(27234), + 6: uint16(27235), + 7: uint16(27236), + 8: uint16(27238), + 9: uint16(27239), + 10: uint16(27240), + 11: uint16(27241), + 12: uint16(27242), + 13: uint16(27243), + 14: uint16(27244), + 15: uint16(27245), + 16: uint16(27246), + 17: uint16(27247), + 18: uint16(27248), + 19: uint16(27250), + 20: uint16(27251), + 21: uint16(27252), + 22: uint16(27253), + 23: uint16(27254), + 24: uint16(27255), + 25: uint16(27256), + 26: uint16(27258), + 27: uint16(27259), + 28: uint16(27261), + 29: uint16(27262), + 30: uint16(27263), + 31: uint16(27265), + 32: uint16(27266), + 33: uint16(27267), + 34: uint16(27269), + 35: uint16(27270), + 36: uint16(27271), + 37: uint16(27272), + 38: uint16(27273), + 39: uint16(27274), + 40: uint16(27275), + 41: uint16(27276), + 42: uint16(27277), + 43: uint16(27279), + 44: uint16(27282), + 45: uint16(27283), + 46: uint16(27284), + 47: uint16(27285), + 48: uint16(27286), + 49: uint16(27288), + 50: uint16(27289), + 51: uint16(27290), + 52: uint16(27291), + 53: uint16(27292), + 54: uint16(27293), + 55: uint16(27294), + 56: uint16(27295), + 57: uint16(27297), + 58: uint16(27298), + 59: uint16(27299), + 60: uint16(27300), + 61: uint16(27301), + 62: uint16(27302), + 63: uint16(27303), + 64: uint16(27304), + 65: uint16(27306), + 66: uint16(27309), + 67: uint16(27310), + 68: uint16(27311), + 69: uint16(27312), + 70: uint16(27313), + 71: uint16(27314), + 72: uint16(27315), + 73: uint16(27316), + 74: uint16(27317), + 75: uint16(27318), + 76: uint16(27319), + 77: uint16(27320), + 78: uint16(27321), + 79: uint16(27322), + 80: uint16(27323), + 81: uint16(27324), + 82: uint16(27325), + 83: uint16(27326), + 84: uint16(27327), + 85: uint16(27328), + 86: uint16(27329), + 87: uint16(27330), + 88: uint16(27331), + 89: uint16(27332), + 90: uint16(27333), + 91: uint16(27334), + 92: uint16(27335), + 93: uint16(27336), + 94: uint16(27337), + 95: uint16(27338), + 96: uint16(27339), + 97: uint16(27340), + 98: uint16(27341), + 99: uint16(27342), + 100: uint16(27343), + 101: uint16(27344), + 102: uint16(27345), + 103: uint16(27346), + 104: uint16(27347), + 105: uint16(27348), + 106: uint16(27349), + 107: uint16(27350), + 108: uint16(27351), + 109: uint16(27352), + 110: uint16(27353), + 111: uint16(27354), + 112: uint16(27355), + 113: uint16(27356), + 114: uint16(27357), + 115: uint16(27358), + 116: uint16(27359), + 117: uint16(27360), + 118: uint16(27361), + 119: uint16(27362), + 120: uint16(27363), + 121: uint16(27364), + 122: uint16(27365), + 123: uint16(27366), + 124: uint16(27367), + 125: uint16(27368), + 126: uint16(27369), + 127: uint16(27370), + 128: uint16(27371), + 129: uint16(27372), + 130: uint16(27373), + 131: uint16(27374), + 132: uint16(27375), + 133: uint16(27376), + 134: uint16(27377), + 135: uint16(27378), + 136: uint16(27379), + 137: uint16(27380), + 138: uint16(27381), + 139: uint16(27382), + 140: uint16(27383), + 141: uint16(27384), + 142: uint16(27385), + 143: uint16(27386), + 144: uint16(27387), + 145: uint16(27388), + 146: uint16(27389), + 147: uint16(27390), + 148: uint16(27391), + 149: uint16(27392), + 150: uint16(27393), + 151: uint16(27394), + 152: uint16(27395), + 153: uint16(27396), + 154: uint16(27397), + 155: uint16(27398), + 156: uint16(27399), + 157: uint16(27400), + 158: uint16(27401), + 159: uint16(27402), + 160: uint16(27403), + 161: uint16(27404), + 162: uint16(27405), + 163: uint16(27406), + 164: uint16(27407), + 165: uint16(27408), + 166: uint16(27409), + 167: uint16(27410), + 168: uint16(27411), + 169: uint16(27412), + 170: uint16(27413), + 171: uint16(27414), + 172: uint16(27415), + 173: uint16(27416), + 174: uint16(27417), + 175: uint16(27418), + 176: uint16(27419), + 177: uint16(27420), + 178: uint16(27421), + 179: uint16(27422), + 180: uint16(27423), + 181: uint16(27429), + 182: uint16(27430), + 183: uint16(27432), + 184: uint16(27433), + 185: uint16(27434), + 186: uint16(27435), + 187: uint16(27436), + 188: uint16(27437), + 189: uint16(27438), + }, + 25: { + 0: uint16(27439), + 1: uint16(27440), + 2: uint16(27441), + 3: uint16(27443), + 4: uint16(27444), + 5: uint16(27445), + 6: uint16(27446), + 7: uint16(27448), + 8: uint16(27451), + 9: uint16(27452), + 10: uint16(27453), + 11: uint16(27455), + 12: uint16(27456), + 13: uint16(27457), + 14: uint16(27458), + 15: uint16(27460), + 16: uint16(27461), + 17: uint16(27464), + 18: uint16(27466), + 19: uint16(27467), + 20: uint16(27469), + 21: uint16(27470), + 22: uint16(27471), + 23: uint16(27472), + 24: uint16(27473), + 25: uint16(27474), + 26: uint16(27475), + 27: uint16(27476), + 28: uint16(27477), + 29: uint16(27478), + 30: uint16(27479), + 31: uint16(27480), + 32: uint16(27482), + 33: uint16(27483), + 34: uint16(27484), + 35: uint16(27485), + 36: uint16(27486), + 37: uint16(27487), + 38: uint16(27488), + 39: uint16(27489), + 40: uint16(27496), + 41: uint16(27497), + 42: uint16(27499), + 43: uint16(27500), + 44: uint16(27501), + 45: uint16(27502), + 46: uint16(27503), + 47: uint16(27504), + 48: uint16(27505), + 49: uint16(27506), + 50: uint16(27507), + 51: uint16(27508), + 52: uint16(27509), + 53: uint16(27510), + 54: uint16(27511), + 55: uint16(27512), + 56: uint16(27514), + 57: uint16(27517), + 58: uint16(27518), + 59: uint16(27519), + 60: uint16(27520), + 61: uint16(27525), + 62: uint16(27528), + 63: uint16(27532), + 64: uint16(27534), + 65: uint16(27535), + 66: uint16(27536), + 67: uint16(27537), + 68: uint16(27540), + 69: uint16(27541), + 70: uint16(27543), + 71: uint16(27544), + 72: uint16(27545), + 73: uint16(27548), + 74: uint16(27549), + 75: uint16(27550), + 76: uint16(27551), + 77: uint16(27552), + 78: uint16(27554), + 79: uint16(27555), + 80: uint16(27556), + 81: uint16(27557), + 82: uint16(27558), + 83: uint16(27559), + 84: uint16(27560), + 85: uint16(27561), + 86: uint16(27563), + 87: uint16(27564), + 88: uint16(27565), + 89: uint16(27566), + 90: uint16(27567), + 91: uint16(27568), + 92: uint16(27569), + 93: uint16(27570), + 94: uint16(27574), + 95: uint16(27576), + 96: uint16(27577), + 97: uint16(27578), + 98: uint16(27579), + 99: uint16(27580), + 100: uint16(27581), + 101: uint16(27582), + 102: uint16(27584), + 103: uint16(27587), + 104: uint16(27588), + 105: uint16(27590), + 106: uint16(27591), + 107: uint16(27592), + 108: uint16(27593), + 109: uint16(27594), + 110: uint16(27596), + 111: uint16(27598), + 112: uint16(27600), + 113: uint16(27601), + 114: uint16(27608), + 115: uint16(27610), + 116: uint16(27612), + 117: uint16(27613), + 118: uint16(27614), + 119: uint16(27615), + 120: uint16(27616), + 121: uint16(27618), + 122: uint16(27619), + 123: uint16(27620), + 124: uint16(27621), + 125: uint16(27622), + 126: uint16(27623), + 127: uint16(27624), + 128: uint16(27625), + 129: uint16(27628), + 130: uint16(27629), + 131: uint16(27630), + 132: uint16(27632), + 133: uint16(27633), + 134: uint16(27634), + 135: uint16(27636), + 136: uint16(27638), + 137: uint16(27639), + 138: uint16(27640), + 139: uint16(27642), + 140: uint16(27643), + 141: uint16(27644), + 142: uint16(27646), + 143: uint16(27647), + 144: uint16(27648), + 145: uint16(27649), + 146: uint16(27650), + 147: uint16(27651), + 148: uint16(27652), + 149: uint16(27656), + 150: uint16(27657), + 151: uint16(27658), + 152: uint16(27659), + 153: uint16(27660), + 154: uint16(27662), + 155: uint16(27666), + 156: uint16(27671), + 157: uint16(27676), + 158: uint16(27677), + 159: uint16(27678), + 160: uint16(27680), + 161: uint16(27683), + 162: uint16(27685), + 163: uint16(27691), + 164: uint16(27692), + 165: uint16(27693), + 166: uint16(27697), + 167: uint16(27699), + 168: uint16(27702), + 169: uint16(27703), + 170: uint16(27705), + 171: uint16(27706), + 172: uint16(27707), + 173: uint16(27708), + 174: uint16(27710), + 175: uint16(27711), + 176: uint16(27715), + 177: uint16(27716), + 178: uint16(27717), + 179: uint16(27720), + 180: uint16(27723), + 181: uint16(27724), + 182: uint16(27725), + 183: uint16(27726), + 184: uint16(27727), + 185: uint16(27729), + 186: uint16(27730), + 187: uint16(27731), + 188: uint16(27734), + 189: uint16(27736), + }, + 26: { + 0: uint16(27737), + 1: uint16(27738), + 2: uint16(27746), + 3: uint16(27747), + 4: uint16(27749), + 5: uint16(27750), + 6: uint16(27751), + 7: uint16(27755), + 8: uint16(27756), + 9: uint16(27757), + 10: uint16(27758), + 11: uint16(27759), + 12: uint16(27761), + 13: uint16(27763), + 14: uint16(27765), + 15: uint16(27767), + 16: uint16(27768), + 17: uint16(27770), + 18: uint16(27771), + 19: uint16(27772), + 20: uint16(27775), + 21: uint16(27776), + 22: uint16(27780), + 23: uint16(27783), + 24: uint16(27786), + 25: uint16(27787), + 26: uint16(27789), + 27: uint16(27790), + 28: uint16(27793), + 29: uint16(27794), + 30: uint16(27797), + 31: uint16(27798), + 32: uint16(27799), + 33: uint16(27800), + 34: uint16(27802), + 35: uint16(27804), + 36: uint16(27805), + 37: uint16(27806), + 38: uint16(27808), + 39: uint16(27810), + 40: uint16(27816), + 41: uint16(27820), + 42: uint16(27823), + 43: uint16(27824), + 44: uint16(27828), + 45: uint16(27829), + 46: uint16(27830), + 47: uint16(27831), + 48: uint16(27834), + 49: uint16(27840), + 50: uint16(27841), + 51: uint16(27842), + 52: uint16(27843), + 53: uint16(27846), + 54: uint16(27847), + 55: uint16(27848), + 56: uint16(27851), + 57: uint16(27853), + 58: uint16(27854), + 59: uint16(27855), + 60: uint16(27857), + 61: uint16(27858), + 62: uint16(27864), + 63: uint16(27865), + 64: uint16(27866), + 65: uint16(27868), + 66: uint16(27869), + 67: uint16(27871), + 68: uint16(27876), + 69: uint16(27878), + 70: uint16(27879), + 71: uint16(27881), + 72: uint16(27884), + 73: uint16(27885), + 74: uint16(27890), + 75: uint16(27892), + 76: uint16(27897), + 77: uint16(27903), + 78: uint16(27904), + 79: uint16(27906), + 80: uint16(27907), + 81: uint16(27909), + 82: uint16(27910), + 83: uint16(27912), + 84: uint16(27913), + 85: uint16(27914), + 86: uint16(27917), + 87: uint16(27919), + 88: uint16(27920), + 89: uint16(27921), + 90: uint16(27923), + 91: uint16(27924), + 92: uint16(27925), + 93: uint16(27926), + 94: uint16(27928), + 95: uint16(27932), + 96: uint16(27933), + 97: uint16(27935), + 98: uint16(27936), + 99: uint16(27937), + 100: uint16(27938), + 101: uint16(27939), + 102: uint16(27940), + 103: uint16(27942), + 104: uint16(27944), + 105: uint16(27945), + 106: uint16(27948), + 107: uint16(27949), + 108: uint16(27951), + 109: uint16(27952), + 110: uint16(27956), + 111: uint16(27958), + 112: uint16(27959), + 113: uint16(27960), + 114: uint16(27962), + 115: uint16(27967), + 116: uint16(27968), + 117: uint16(27970), + 118: uint16(27972), + 119: uint16(27977), + 120: uint16(27980), + 121: uint16(27984), + 122: uint16(27989), + 123: uint16(27990), + 124: uint16(27991), + 125: uint16(27992), + 126: uint16(27995), + 127: uint16(27997), + 128: uint16(27999), + 129: uint16(28001), + 130: uint16(28002), + 131: uint16(28004), + 132: uint16(28005), + 133: uint16(28007), + 134: uint16(28008), + 135: uint16(28011), + 136: uint16(28012), + 137: uint16(28013), + 138: uint16(28016), + 139: uint16(28017), + 140: uint16(28018), + 141: uint16(28019), + 142: uint16(28021), + 143: uint16(28022), + 144: uint16(28025), + 145: uint16(28026), + 146: uint16(28027), + 147: uint16(28029), + 148: uint16(28030), + 149: uint16(28031), + 150: uint16(28032), + 151: uint16(28033), + 152: uint16(28035), + 153: uint16(28036), + 154: uint16(28038), + 155: uint16(28039), + 156: uint16(28042), + 157: uint16(28043), + 158: uint16(28045), + 159: uint16(28047), + 160: uint16(28048), + 161: uint16(28050), + 162: uint16(28054), + 163: uint16(28055), + 164: uint16(28056), + 165: uint16(28057), + 166: uint16(28058), + 167: uint16(28060), + 168: uint16(28066), + 169: uint16(28069), + 170: uint16(28076), + 171: uint16(28077), + 172: uint16(28080), + 173: uint16(28081), + 174: uint16(28083), + 175: uint16(28084), + 176: uint16(28086), + 177: uint16(28087), + 178: uint16(28089), + 179: uint16(28090), + 180: uint16(28091), + 181: uint16(28092), + 182: uint16(28093), + 183: uint16(28094), + 184: uint16(28097), + 185: uint16(28098), + 186: uint16(28099), + 187: uint16(28104), + 188: uint16(28105), + 189: uint16(28106), + }, + 27: { + 0: uint16(28109), + 1: uint16(28110), + 2: uint16(28111), + 3: uint16(28112), + 4: uint16(28114), + 5: uint16(28115), + 6: uint16(28116), + 7: uint16(28117), + 8: uint16(28119), + 9: uint16(28122), + 10: uint16(28123), + 11: uint16(28124), + 12: uint16(28127), + 13: uint16(28130), + 14: uint16(28131), + 15: uint16(28133), + 16: uint16(28135), + 17: uint16(28136), + 18: uint16(28137), + 19: uint16(28138), + 20: uint16(28141), + 21: uint16(28143), + 22: uint16(28144), + 23: uint16(28146), + 24: uint16(28148), + 25: uint16(28149), + 26: uint16(28150), + 27: uint16(28152), + 28: uint16(28154), + 29: uint16(28157), + 30: uint16(28158), + 31: uint16(28159), + 32: uint16(28160), + 33: uint16(28161), + 34: uint16(28162), + 35: uint16(28163), + 36: uint16(28164), + 37: uint16(28166), + 38: uint16(28167), + 39: uint16(28168), + 40: uint16(28169), + 41: uint16(28171), + 42: uint16(28175), + 43: uint16(28178), + 44: uint16(28179), + 45: uint16(28181), + 46: uint16(28184), + 47: uint16(28185), + 48: uint16(28187), + 49: uint16(28188), + 50: uint16(28190), + 51: uint16(28191), + 52: uint16(28194), + 53: uint16(28198), + 54: uint16(28199), + 55: uint16(28200), + 56: uint16(28202), + 57: uint16(28204), + 58: uint16(28206), + 59: uint16(28208), + 60: uint16(28209), + 61: uint16(28211), + 62: uint16(28213), + 63: uint16(28214), + 64: uint16(28215), + 65: uint16(28217), + 66: uint16(28219), + 67: uint16(28220), + 68: uint16(28221), + 69: uint16(28222), + 70: uint16(28223), + 71: uint16(28224), + 72: uint16(28225), + 73: uint16(28226), + 74: uint16(28229), + 75: uint16(28230), + 76: uint16(28231), + 77: uint16(28232), + 78: uint16(28233), + 79: uint16(28234), + 80: uint16(28235), + 81: uint16(28236), + 82: uint16(28239), + 83: uint16(28240), + 84: uint16(28241), + 85: uint16(28242), + 86: uint16(28245), + 87: uint16(28247), + 88: uint16(28249), + 89: uint16(28250), + 90: uint16(28252), + 91: uint16(28253), + 92: uint16(28254), + 93: uint16(28256), + 94: uint16(28257), + 95: uint16(28258), + 96: uint16(28259), + 97: uint16(28260), + 98: uint16(28261), + 99: uint16(28262), + 100: uint16(28263), + 101: uint16(28264), + 102: uint16(28265), + 103: uint16(28266), + 104: uint16(28268), + 105: uint16(28269), + 106: uint16(28271), + 107: uint16(28272), + 108: uint16(28273), + 109: uint16(28274), + 110: uint16(28275), + 111: uint16(28276), + 112: uint16(28277), + 113: uint16(28278), + 114: uint16(28279), + 115: uint16(28280), + 116: uint16(28281), + 117: uint16(28282), + 118: uint16(28283), + 119: uint16(28284), + 120: uint16(28285), + 121: uint16(28288), + 122: uint16(28289), + 123: uint16(28290), + 124: uint16(28292), + 125: uint16(28295), + 126: uint16(28296), + 127: uint16(28298), + 128: uint16(28299), + 129: uint16(28300), + 130: uint16(28301), + 131: uint16(28302), + 132: uint16(28305), + 133: uint16(28306), + 134: uint16(28307), + 135: uint16(28308), + 136: uint16(28309), + 137: uint16(28310), + 138: uint16(28311), + 139: uint16(28313), + 140: uint16(28314), + 141: uint16(28315), + 142: uint16(28317), + 143: uint16(28318), + 144: uint16(28320), + 145: uint16(28321), + 146: uint16(28323), + 147: uint16(28324), + 148: uint16(28326), + 149: uint16(28328), + 150: uint16(28329), + 151: uint16(28331), + 152: uint16(28332), + 153: uint16(28333), + 154: uint16(28334), + 155: uint16(28336), + 156: uint16(28339), + 157: uint16(28341), + 158: uint16(28344), + 159: uint16(28345), + 160: uint16(28348), + 161: uint16(28350), + 162: uint16(28351), + 163: uint16(28352), + 164: uint16(28355), + 165: uint16(28356), + 166: uint16(28357), + 167: uint16(28358), + 168: uint16(28360), + 169: uint16(28361), + 170: uint16(28362), + 171: uint16(28364), + 172: uint16(28365), + 173: uint16(28366), + 174: uint16(28368), + 175: uint16(28370), + 176: uint16(28374), + 177: uint16(28376), + 178: uint16(28377), + 179: uint16(28379), + 180: uint16(28380), + 181: uint16(28381), + 182: uint16(28387), + 183: uint16(28391), + 184: uint16(28394), + 185: uint16(28395), + 186: uint16(28396), + 187: uint16(28397), + 188: uint16(28398), + 189: uint16(28399), + }, + 28: { + 0: uint16(28400), + 1: uint16(28401), + 2: uint16(28402), + 3: uint16(28403), + 4: uint16(28405), + 5: uint16(28406), + 6: uint16(28407), + 7: uint16(28408), + 8: uint16(28410), + 9: uint16(28411), + 10: uint16(28412), + 11: uint16(28413), + 12: uint16(28414), + 13: uint16(28415), + 14: uint16(28416), + 15: uint16(28417), + 16: uint16(28419), + 17: uint16(28420), + 18: uint16(28421), + 19: uint16(28423), + 20: uint16(28424), + 21: uint16(28426), + 22: uint16(28427), + 23: uint16(28428), + 24: uint16(28429), + 25: uint16(28430), + 26: uint16(28432), + 27: uint16(28433), + 28: uint16(28434), + 29: uint16(28438), + 30: uint16(28439), + 31: uint16(28440), + 32: uint16(28441), + 33: uint16(28442), + 34: uint16(28443), + 35: uint16(28444), + 36: uint16(28445), + 37: uint16(28446), + 38: uint16(28447), + 39: uint16(28449), + 40: uint16(28450), + 41: uint16(28451), + 42: uint16(28453), + 43: uint16(28454), + 44: uint16(28455), + 45: uint16(28456), + 46: uint16(28460), + 47: uint16(28462), + 48: uint16(28464), + 49: uint16(28466), + 50: uint16(28468), + 51: uint16(28469), + 52: uint16(28471), + 53: uint16(28472), + 54: uint16(28473), + 55: uint16(28474), + 56: uint16(28475), + 57: uint16(28476), + 58: uint16(28477), + 59: uint16(28479), + 60: uint16(28480), + 61: uint16(28481), + 62: uint16(28482), + 63: uint16(28483), + 64: uint16(28484), + 65: uint16(28485), + 66: uint16(28488), + 67: uint16(28489), + 68: uint16(28490), + 69: uint16(28492), + 70: uint16(28494), + 71: uint16(28495), + 72: uint16(28496), + 73: uint16(28497), + 74: uint16(28498), + 75: uint16(28499), + 76: uint16(28500), + 77: uint16(28501), + 78: uint16(28502), + 79: uint16(28503), + 80: uint16(28505), + 81: uint16(28506), + 82: uint16(28507), + 83: uint16(28509), + 84: uint16(28511), + 85: uint16(28512), + 86: uint16(28513), + 87: uint16(28515), + 88: uint16(28516), + 89: uint16(28517), + 90: uint16(28519), + 91: uint16(28520), + 92: uint16(28521), + 93: uint16(28522), + 94: uint16(28523), + 95: uint16(28524), + 96: uint16(28527), + 97: uint16(28528), + 98: uint16(28529), + 99: uint16(28531), + 100: uint16(28533), + 101: uint16(28534), + 102: uint16(28535), + 103: uint16(28537), + 104: uint16(28539), + 105: uint16(28541), + 106: uint16(28542), + 107: uint16(28543), + 108: uint16(28544), + 109: uint16(28545), + 110: uint16(28546), + 111: uint16(28547), + 112: uint16(28549), + 113: uint16(28550), + 114: uint16(28551), + 115: uint16(28554), + 116: uint16(28555), + 117: uint16(28559), + 118: uint16(28560), + 119: uint16(28561), + 120: uint16(28562), + 121: uint16(28563), + 122: uint16(28564), + 123: uint16(28565), + 124: uint16(28566), + 125: uint16(28567), + 126: uint16(28568), + 127: uint16(28569), + 128: uint16(28570), + 129: uint16(28571), + 130: uint16(28573), + 131: uint16(28574), + 132: uint16(28575), + 133: uint16(28576), + 134: uint16(28578), + 135: uint16(28579), + 136: uint16(28580), + 137: uint16(28581), + 138: uint16(28582), + 139: uint16(28584), + 140: uint16(28585), + 141: uint16(28586), + 142: uint16(28587), + 143: uint16(28588), + 144: uint16(28589), + 145: uint16(28590), + 146: uint16(28591), + 147: uint16(28592), + 148: uint16(28593), + 149: uint16(28594), + 150: uint16(28596), + 151: uint16(28597), + 152: uint16(28599), + 153: uint16(28600), + 154: uint16(28602), + 155: uint16(28603), + 156: uint16(28604), + 157: uint16(28605), + 158: uint16(28606), + 159: uint16(28607), + 160: uint16(28609), + 161: uint16(28611), + 162: uint16(28612), + 163: uint16(28613), + 164: uint16(28614), + 165: uint16(28615), + 166: uint16(28616), + 167: uint16(28618), + 168: uint16(28619), + 169: uint16(28620), + 170: uint16(28621), + 171: uint16(28622), + 172: uint16(28623), + 173: uint16(28624), + 174: uint16(28627), + 175: uint16(28628), + 176: uint16(28629), + 177: uint16(28630), + 178: uint16(28631), + 179: uint16(28632), + 180: uint16(28633), + 181: uint16(28634), + 182: uint16(28635), + 183: uint16(28636), + 184: uint16(28637), + 185: uint16(28639), + 186: uint16(28642), + 187: uint16(28643), + 188: uint16(28644), + 189: uint16(28645), + }, + 29: { + 0: uint16(28646), + 1: uint16(28647), + 2: uint16(28648), + 3: uint16(28649), + 4: uint16(28650), + 5: uint16(28651), + 6: uint16(28652), + 7: uint16(28653), + 8: uint16(28656), + 9: uint16(28657), + 10: uint16(28658), + 11: uint16(28659), + 12: uint16(28660), + 13: uint16(28661), + 14: uint16(28662), + 15: uint16(28663), + 16: uint16(28664), + 17: uint16(28665), + 18: uint16(28666), + 19: uint16(28667), + 20: uint16(28668), + 21: uint16(28669), + 22: uint16(28670), + 23: uint16(28671), + 24: uint16(28672), + 25: uint16(28673), + 26: uint16(28674), + 27: uint16(28675), + 28: uint16(28676), + 29: uint16(28677), + 30: uint16(28678), + 31: uint16(28679), + 32: uint16(28680), + 33: uint16(28681), + 34: uint16(28682), + 35: uint16(28683), + 36: uint16(28684), + 37: uint16(28685), + 38: uint16(28686), + 39: uint16(28687), + 40: uint16(28688), + 41: uint16(28690), + 42: uint16(28691), + 43: uint16(28692), + 44: uint16(28693), + 45: uint16(28694), + 46: uint16(28695), + 47: uint16(28696), + 48: uint16(28697), + 49: uint16(28700), + 50: uint16(28701), + 51: uint16(28702), + 52: uint16(28703), + 53: uint16(28704), + 54: uint16(28705), + 55: uint16(28706), + 56: uint16(28708), + 57: uint16(28709), + 58: uint16(28710), + 59: uint16(28711), + 60: uint16(28712), + 61: uint16(28713), + 62: uint16(28714), + 63: uint16(28715), + 64: uint16(28716), + 65: uint16(28717), + 66: uint16(28718), + 67: uint16(28719), + 68: uint16(28720), + 69: uint16(28721), + 70: uint16(28722), + 71: uint16(28723), + 72: uint16(28724), + 73: uint16(28726), + 74: uint16(28727), + 75: uint16(28728), + 76: uint16(28730), + 77: uint16(28731), + 78: uint16(28732), + 79: uint16(28733), + 80: uint16(28734), + 81: uint16(28735), + 82: uint16(28736), + 83: uint16(28737), + 84: uint16(28738), + 85: uint16(28739), + 86: uint16(28740), + 87: uint16(28741), + 88: uint16(28742), + 89: uint16(28743), + 90: uint16(28744), + 91: uint16(28745), + 92: uint16(28746), + 93: uint16(28747), + 94: uint16(28749), + 95: uint16(28750), + 96: uint16(28752), + 97: uint16(28753), + 98: uint16(28754), + 99: uint16(28755), + 100: uint16(28756), + 101: uint16(28757), + 102: uint16(28758), + 103: uint16(28759), + 104: uint16(28760), + 105: uint16(28761), + 106: uint16(28762), + 107: uint16(28763), + 108: uint16(28764), + 109: uint16(28765), + 110: uint16(28767), + 111: uint16(28768), + 112: uint16(28769), + 113: uint16(28770), + 114: uint16(28771), + 115: uint16(28772), + 116: uint16(28773), + 117: uint16(28774), + 118: uint16(28775), + 119: uint16(28776), + 120: uint16(28777), + 121: uint16(28778), + 122: uint16(28782), + 123: uint16(28785), + 124: uint16(28786), + 125: uint16(28787), + 126: uint16(28788), + 127: uint16(28791), + 128: uint16(28793), + 129: uint16(28794), + 130: uint16(28795), + 131: uint16(28797), + 132: uint16(28801), + 133: uint16(28802), + 134: uint16(28803), + 135: uint16(28804), + 136: uint16(28806), + 137: uint16(28807), + 138: uint16(28808), + 139: uint16(28811), + 140: uint16(28812), + 141: uint16(28813), + 142: uint16(28815), + 143: uint16(28816), + 144: uint16(28817), + 145: uint16(28819), + 146: uint16(28823), + 147: uint16(28824), + 148: uint16(28826), + 149: uint16(28827), + 150: uint16(28830), + 151: uint16(28831), + 152: uint16(28832), + 153: uint16(28833), + 154: uint16(28834), + 155: uint16(28835), + 156: uint16(28836), + 157: uint16(28837), + 158: uint16(28838), + 159: uint16(28839), + 160: uint16(28840), + 161: uint16(28841), + 162: uint16(28842), + 163: uint16(28848), + 164: uint16(28850), + 165: uint16(28852), + 166: uint16(28853), + 167: uint16(28854), + 168: uint16(28858), + 169: uint16(28862), + 170: uint16(28863), + 171: uint16(28868), + 172: uint16(28869), + 173: uint16(28870), + 174: uint16(28871), + 175: uint16(28873), + 176: uint16(28875), + 177: uint16(28876), + 178: uint16(28877), + 179: uint16(28878), + 180: uint16(28879), + 181: uint16(28880), + 182: uint16(28881), + 183: uint16(28882), + 184: uint16(28883), + 185: uint16(28884), + 186: uint16(28885), + 187: uint16(28886), + 188: uint16(28887), + 189: uint16(28890), + }, + 30: { + 0: uint16(28892), + 1: uint16(28893), + 2: uint16(28894), + 3: uint16(28896), + 4: uint16(28897), + 5: uint16(28898), + 6: uint16(28899), + 7: uint16(28901), + 8: uint16(28906), + 9: uint16(28910), + 10: uint16(28912), + 11: uint16(28913), + 12: uint16(28914), + 13: uint16(28915), + 14: uint16(28916), + 15: uint16(28917), + 16: uint16(28918), + 17: uint16(28920), + 18: uint16(28922), + 19: uint16(28923), + 20: uint16(28924), + 21: uint16(28926), + 22: uint16(28927), + 23: uint16(28928), + 24: uint16(28929), + 25: uint16(28930), + 26: uint16(28931), + 27: uint16(28932), + 28: uint16(28933), + 29: uint16(28934), + 30: uint16(28935), + 31: uint16(28936), + 32: uint16(28939), + 33: uint16(28940), + 34: uint16(28941), + 35: uint16(28942), + 36: uint16(28943), + 37: uint16(28945), + 38: uint16(28946), + 39: uint16(28948), + 40: uint16(28951), + 41: uint16(28955), + 42: uint16(28956), + 43: uint16(28957), + 44: uint16(28958), + 45: uint16(28959), + 46: uint16(28960), + 47: uint16(28961), + 48: uint16(28962), + 49: uint16(28963), + 50: uint16(28964), + 51: uint16(28965), + 52: uint16(28967), + 53: uint16(28968), + 54: uint16(28969), + 55: uint16(28970), + 56: uint16(28971), + 57: uint16(28972), + 58: uint16(28973), + 59: uint16(28974), + 60: uint16(28978), + 61: uint16(28979), + 62: uint16(28980), + 63: uint16(28981), + 64: uint16(28983), + 65: uint16(28984), + 66: uint16(28985), + 67: uint16(28986), + 68: uint16(28987), + 69: uint16(28988), + 70: uint16(28989), + 71: uint16(28990), + 72: uint16(28991), + 73: uint16(28992), + 74: uint16(28993), + 75: uint16(28994), + 76: uint16(28995), + 77: uint16(28996), + 78: uint16(28998), + 79: uint16(28999), + 80: uint16(29000), + 81: uint16(29001), + 82: uint16(29003), + 83: uint16(29005), + 84: uint16(29007), + 85: uint16(29008), + 86: uint16(29009), + 87: uint16(29010), + 88: uint16(29011), + 89: uint16(29012), + 90: uint16(29013), + 91: uint16(29014), + 92: uint16(29015), + 93: uint16(29016), + 94: uint16(29017), + 95: uint16(29018), + 96: uint16(29019), + 97: uint16(29021), + 98: uint16(29023), + 99: uint16(29024), + 100: uint16(29025), + 101: uint16(29026), + 102: uint16(29027), + 103: uint16(29029), + 104: uint16(29033), + 105: uint16(29034), + 106: uint16(29035), + 107: uint16(29036), + 108: uint16(29037), + 109: uint16(29039), + 110: uint16(29040), + 111: uint16(29041), + 112: uint16(29044), + 113: uint16(29045), + 114: uint16(29046), + 115: uint16(29047), + 116: uint16(29049), + 117: uint16(29051), + 118: uint16(29052), + 119: uint16(29054), + 120: uint16(29055), + 121: uint16(29056), + 122: uint16(29057), + 123: uint16(29058), + 124: uint16(29059), + 125: uint16(29061), + 126: uint16(29062), + 127: uint16(29063), + 128: uint16(29064), + 129: uint16(29065), + 130: uint16(29067), + 131: uint16(29068), + 132: uint16(29069), + 133: uint16(29070), + 134: uint16(29072), + 135: uint16(29073), + 136: uint16(29074), + 137: uint16(29075), + 138: uint16(29077), + 139: uint16(29078), + 140: uint16(29079), + 141: uint16(29082), + 142: uint16(29083), + 143: uint16(29084), + 144: uint16(29085), + 145: uint16(29086), + 146: uint16(29089), + 147: uint16(29090), + 148: uint16(29091), + 149: uint16(29092), + 150: uint16(29093), + 151: uint16(29094), + 152: uint16(29095), + 153: uint16(29097), + 154: uint16(29098), + 155: uint16(29099), + 156: uint16(29101), + 157: uint16(29102), + 158: uint16(29103), + 159: uint16(29104), + 160: uint16(29105), + 161: uint16(29106), + 162: uint16(29108), + 163: uint16(29110), + 164: uint16(29111), + 165: uint16(29112), + 166: uint16(29114), + 167: uint16(29115), + 168: uint16(29116), + 169: uint16(29117), + 170: uint16(29118), + 171: uint16(29119), + 172: uint16(29120), + 173: uint16(29121), + 174: uint16(29122), + 175: uint16(29124), + 176: uint16(29125), + 177: uint16(29126), + 178: uint16(29127), + 179: uint16(29128), + 180: uint16(29129), + 181: uint16(29130), + 182: uint16(29131), + 183: uint16(29132), + 184: uint16(29133), + 185: uint16(29135), + 186: uint16(29136), + 187: uint16(29137), + 188: uint16(29138), + 189: uint16(29139), + }, + 31: { + 0: uint16(29142), + 1: uint16(29143), + 2: uint16(29144), + 3: uint16(29145), + 4: uint16(29146), + 5: uint16(29147), + 6: uint16(29148), + 7: uint16(29149), + 8: uint16(29150), + 9: uint16(29151), + 10: uint16(29153), + 11: uint16(29154), + 12: uint16(29155), + 13: uint16(29156), + 14: uint16(29158), + 15: uint16(29160), + 16: uint16(29161), + 17: uint16(29162), + 18: uint16(29163), + 19: uint16(29164), + 20: uint16(29165), + 21: uint16(29167), + 22: uint16(29168), + 23: uint16(29169), + 24: uint16(29170), + 25: uint16(29171), + 26: uint16(29172), + 27: uint16(29173), + 28: uint16(29174), + 29: uint16(29175), + 30: uint16(29176), + 31: uint16(29178), + 32: uint16(29179), + 33: uint16(29180), + 34: uint16(29181), + 35: uint16(29182), + 36: uint16(29183), + 37: uint16(29184), + 38: uint16(29185), + 39: uint16(29186), + 40: uint16(29187), + 41: uint16(29188), + 42: uint16(29189), + 43: uint16(29191), + 44: uint16(29192), + 45: uint16(29193), + 46: uint16(29194), + 47: uint16(29195), + 48: uint16(29196), + 49: uint16(29197), + 50: uint16(29198), + 51: uint16(29199), + 52: uint16(29200), + 53: uint16(29201), + 54: uint16(29202), + 55: uint16(29203), + 56: uint16(29204), + 57: uint16(29205), + 58: uint16(29206), + 59: uint16(29207), + 60: uint16(29208), + 61: uint16(29209), + 62: uint16(29210), + 63: uint16(29211), + 64: uint16(29212), + 65: uint16(29214), + 66: uint16(29215), + 67: uint16(29216), + 68: uint16(29217), + 69: uint16(29218), + 70: uint16(29219), + 71: uint16(29220), + 72: uint16(29221), + 73: uint16(29222), + 74: uint16(29223), + 75: uint16(29225), + 76: uint16(29227), + 77: uint16(29229), + 78: uint16(29230), + 79: uint16(29231), + 80: uint16(29234), + 81: uint16(29235), + 82: uint16(29236), + 83: uint16(29242), + 84: uint16(29244), + 85: uint16(29246), + 86: uint16(29248), + 87: uint16(29249), + 88: uint16(29250), + 89: uint16(29251), + 90: uint16(29252), + 91: uint16(29253), + 92: uint16(29254), + 93: uint16(29257), + 94: uint16(29258), + 95: uint16(29259), + 96: uint16(29262), + 97: uint16(29263), + 98: uint16(29264), + 99: uint16(29265), + 100: uint16(29267), + 101: uint16(29268), + 102: uint16(29269), + 103: uint16(29271), + 104: uint16(29272), + 105: uint16(29274), + 106: uint16(29276), + 107: uint16(29278), + 108: uint16(29280), + 109: uint16(29283), + 110: uint16(29284), + 111: uint16(29285), + 112: uint16(29288), + 113: uint16(29290), + 114: uint16(29291), + 115: uint16(29292), + 116: uint16(29293), + 117: uint16(29296), + 118: uint16(29297), + 119: uint16(29299), + 120: uint16(29300), + 121: uint16(29302), + 122: uint16(29303), + 123: uint16(29304), + 124: uint16(29307), + 125: uint16(29308), + 126: uint16(29309), + 127: uint16(29314), + 128: uint16(29315), + 129: uint16(29317), + 130: uint16(29318), + 131: uint16(29319), + 132: uint16(29320), + 133: uint16(29321), + 134: uint16(29324), + 135: uint16(29326), + 136: uint16(29328), + 137: uint16(29329), + 138: uint16(29331), + 139: uint16(29332), + 140: uint16(29333), + 141: uint16(29334), + 142: uint16(29335), + 143: uint16(29336), + 144: uint16(29337), + 145: uint16(29338), + 146: uint16(29339), + 147: uint16(29340), + 148: uint16(29341), + 149: uint16(29342), + 150: uint16(29344), + 151: uint16(29345), + 152: uint16(29346), + 153: uint16(29347), + 154: uint16(29348), + 155: uint16(29349), + 156: uint16(29350), + 157: uint16(29351), + 158: uint16(29352), + 159: uint16(29353), + 160: uint16(29354), + 161: uint16(29355), + 162: uint16(29358), + 163: uint16(29361), + 164: uint16(29362), + 165: uint16(29363), + 166: uint16(29365), + 167: uint16(29370), + 168: uint16(29371), + 169: uint16(29372), + 170: uint16(29373), + 171: uint16(29374), + 172: uint16(29375), + 173: uint16(29376), + 174: uint16(29381), + 175: uint16(29382), + 176: uint16(29383), + 177: uint16(29385), + 178: uint16(29386), + 179: uint16(29387), + 180: uint16(29388), + 181: uint16(29391), + 182: uint16(29393), + 183: uint16(29395), + 184: uint16(29396), + 185: uint16(29397), + 186: uint16(29398), + 187: uint16(29400), + 188: uint16(29402), + 189: uint16(29403), + }, + 32: { + 0: uint16(58566), + 1: uint16(58567), + 2: uint16(58568), + 3: uint16(58569), + 4: uint16(58570), + 5: uint16(58571), + 6: uint16(58572), + 7: uint16(58573), + 8: uint16(58574), + 9: uint16(58575), + 10: uint16(58576), + 11: uint16(58577), + 12: uint16(58578), + 13: uint16(58579), + 14: uint16(58580), + 15: uint16(58581), + 16: uint16(58582), + 17: uint16(58583), + 18: uint16(58584), + 19: uint16(58585), + 20: uint16(58586), + 21: uint16(58587), + 22: uint16(58588), + 23: uint16(58589), + 24: uint16(58590), + 25: uint16(58591), + 26: uint16(58592), + 27: uint16(58593), + 28: uint16(58594), + 29: uint16(58595), + 30: uint16(58596), + 31: uint16(58597), + 32: uint16(58598), + 33: uint16(58599), + 34: uint16(58600), + 35: uint16(58601), + 36: uint16(58602), + 37: uint16(58603), + 38: uint16(58604), + 39: uint16(58605), + 40: uint16(58606), + 41: uint16(58607), + 42: uint16(58608), + 43: uint16(58609), + 44: uint16(58610), + 45: uint16(58611), + 46: uint16(58612), + 47: uint16(58613), + 48: uint16(58614), + 49: uint16(58615), + 50: uint16(58616), + 51: uint16(58617), + 52: uint16(58618), + 53: uint16(58619), + 54: uint16(58620), + 55: uint16(58621), + 56: uint16(58622), + 57: uint16(58623), + 58: uint16(58624), + 59: uint16(58625), + 60: uint16(58626), + 61: uint16(58627), + 62: uint16(58628), + 63: uint16(58629), + 64: uint16(58630), + 65: uint16(58631), + 66: uint16(58632), + 67: uint16(58633), + 68: uint16(58634), + 69: uint16(58635), + 70: uint16(58636), + 71: uint16(58637), + 72: uint16(58638), + 73: uint16(58639), + 74: uint16(58640), + 75: uint16(58641), + 76: uint16(58642), + 77: uint16(58643), + 78: uint16(58644), + 79: uint16(58645), + 80: uint16(58646), + 81: uint16(58647), + 82: uint16(58648), + 83: uint16(58649), + 84: uint16(58650), + 85: uint16(58651), + 86: uint16(58652), + 87: uint16(58653), + 88: uint16(58654), + 89: uint16(58655), + 90: uint16(58656), + 91: uint16(58657), + 92: uint16(58658), + 93: uint16(58659), + 94: uint16(58660), + 95: uint16(58661), + 96: uint16(12288), + 97: uint16(12289), + 98: uint16(12290), + 99: uint16(183), + 100: uint16(713), + 101: uint16(711), + 102: uint16(168), + 103: uint16(12291), + 104: uint16(12293), + 105: uint16(8212), + 106: uint16(65374), + 107: uint16(8214), + 108: uint16(8230), + 109: uint16(8216), + 110: uint16(8217), + 111: uint16(8220), + 112: uint16(8221), + 113: uint16(12308), + 114: uint16(12309), + 115: uint16(12296), + 116: uint16(12297), + 117: uint16(12298), + 118: uint16(12299), + 119: uint16(12300), + 120: uint16(12301), + 121: uint16(12302), + 122: uint16(12303), + 123: uint16(12310), + 124: uint16(12311), + 125: uint16(12304), + 126: uint16(12305), + 127: uint16(177), + 128: uint16(215), + 129: uint16(247), + 130: uint16(8758), + 131: uint16(8743), + 132: uint16(8744), + 133: uint16(8721), + 134: uint16(8719), + 135: uint16(8746), + 136: uint16(8745), + 137: uint16(8712), + 138: uint16(8759), + 139: uint16(8730), + 140: uint16(8869), + 141: uint16(8741), + 142: uint16(8736), + 143: uint16(8978), + 144: uint16(8857), + 145: uint16(8747), + 146: uint16(8750), + 147: uint16(8801), + 148: uint16(8780), + 149: uint16(8776), + 150: uint16(8765), + 151: uint16(8733), + 152: uint16(8800), + 153: uint16(8814), + 154: uint16(8815), + 155: uint16(8804), + 156: uint16(8805), + 157: uint16(8734), + 158: uint16(8757), + 159: uint16(8756), + 160: uint16(9794), + 161: uint16(9792), + 162: uint16(176), + 163: uint16(8242), + 164: uint16(8243), + 165: uint16(8451), + 166: uint16(65284), + 167: uint16(164), + 168: uint16(65504), + 169: uint16(65505), + 170: uint16(8240), + 171: uint16(167), + 172: uint16(8470), + 173: uint16(9734), + 174: uint16(9733), + 175: uint16(9675), + 176: uint16(9679), + 177: uint16(9678), + 178: uint16(9671), + 179: uint16(9670), + 180: uint16(9633), + 181: uint16(9632), + 182: uint16(9651), + 183: uint16(9650), + 184: uint16(8251), + 185: uint16(8594), + 186: uint16(8592), + 187: uint16(8593), + 188: uint16(8595), + 189: uint16(12307), + }, + 33: { + 0: uint16(58662), + 1: uint16(58663), + 2: uint16(58664), + 3: uint16(58665), + 4: uint16(58666), + 5: uint16(58667), + 6: uint16(58668), + 7: uint16(58669), + 8: uint16(58670), + 9: uint16(58671), + 10: uint16(58672), + 11: uint16(58673), + 12: uint16(58674), + 13: uint16(58675), + 14: uint16(58676), + 15: uint16(58677), + 16: uint16(58678), + 17: uint16(58679), + 18: uint16(58680), + 19: uint16(58681), + 20: uint16(58682), + 21: uint16(58683), + 22: uint16(58684), + 23: uint16(58685), + 24: uint16(58686), + 25: uint16(58687), + 26: uint16(58688), + 27: uint16(58689), + 28: uint16(58690), + 29: uint16(58691), + 30: uint16(58692), + 31: uint16(58693), + 32: uint16(58694), + 33: uint16(58695), + 34: uint16(58696), + 35: uint16(58697), + 36: uint16(58698), + 37: uint16(58699), + 38: uint16(58700), + 39: uint16(58701), + 40: uint16(58702), + 41: uint16(58703), + 42: uint16(58704), + 43: uint16(58705), + 44: uint16(58706), + 45: uint16(58707), + 46: uint16(58708), + 47: uint16(58709), + 48: uint16(58710), + 49: uint16(58711), + 50: uint16(58712), + 51: uint16(58713), + 52: uint16(58714), + 53: uint16(58715), + 54: uint16(58716), + 55: uint16(58717), + 56: uint16(58718), + 57: uint16(58719), + 58: uint16(58720), + 59: uint16(58721), + 60: uint16(58722), + 61: uint16(58723), + 62: uint16(58724), + 63: uint16(58725), + 64: uint16(58726), + 65: uint16(58727), + 66: uint16(58728), + 67: uint16(58729), + 68: uint16(58730), + 69: uint16(58731), + 70: uint16(58732), + 71: uint16(58733), + 72: uint16(58734), + 73: uint16(58735), + 74: uint16(58736), + 75: uint16(58737), + 76: uint16(58738), + 77: uint16(58739), + 78: uint16(58740), + 79: uint16(58741), + 80: uint16(58742), + 81: uint16(58743), + 82: uint16(58744), + 83: uint16(58745), + 84: uint16(58746), + 85: uint16(58747), + 86: uint16(58748), + 87: uint16(58749), + 88: uint16(58750), + 89: uint16(58751), + 90: uint16(58752), + 91: uint16(58753), + 92: uint16(58754), + 93: uint16(58755), + 94: uint16(58756), + 95: uint16(58757), + 96: uint16(8560), + 97: uint16(8561), + 98: uint16(8562), + 99: uint16(8563), + 100: uint16(8564), + 101: uint16(8565), + 102: uint16(8566), + 103: uint16(8567), + 104: uint16(8568), + 105: uint16(8569), + 106: uint16(59238), + 107: uint16(59239), + 108: uint16(59240), + 109: uint16(59241), + 110: uint16(59242), + 111: uint16(59243), + 112: uint16(9352), + 113: uint16(9353), + 114: uint16(9354), + 115: uint16(9355), + 116: uint16(9356), + 117: uint16(9357), + 118: uint16(9358), + 119: uint16(9359), + 120: uint16(9360), + 121: uint16(9361), + 122: uint16(9362), + 123: uint16(9363), + 124: uint16(9364), + 125: uint16(9365), + 126: uint16(9366), + 127: uint16(9367), + 128: uint16(9368), + 129: uint16(9369), + 130: uint16(9370), + 131: uint16(9371), + 132: uint16(9332), + 133: uint16(9333), + 134: uint16(9334), + 135: uint16(9335), + 136: uint16(9336), + 137: uint16(9337), + 138: uint16(9338), + 139: uint16(9339), + 140: uint16(9340), + 141: uint16(9341), + 142: uint16(9342), + 143: uint16(9343), + 144: uint16(9344), + 145: uint16(9345), + 146: uint16(9346), + 147: uint16(9347), + 148: uint16(9348), + 149: uint16(9349), + 150: uint16(9350), + 151: uint16(9351), + 152: uint16(9312), + 153: uint16(9313), + 154: uint16(9314), + 155: uint16(9315), + 156: uint16(9316), + 157: uint16(9317), + 158: uint16(9318), + 159: uint16(9319), + 160: uint16(9320), + 161: uint16(9321), + 162: uint16(8364), + 163: uint16(59245), + 164: uint16(12832), + 165: uint16(12833), + 166: uint16(12834), + 167: uint16(12835), + 168: uint16(12836), + 169: uint16(12837), + 170: uint16(12838), + 171: uint16(12839), + 172: uint16(12840), + 173: uint16(12841), + 174: uint16(59246), + 175: uint16(59247), + 176: uint16(8544), + 177: uint16(8545), + 178: uint16(8546), + 179: uint16(8547), + 180: uint16(8548), + 181: uint16(8549), + 182: uint16(8550), + 183: uint16(8551), + 184: uint16(8552), + 185: uint16(8553), + 186: uint16(8554), + 187: uint16(8555), + 188: uint16(59248), + 189: uint16(59249), + }, + 34: { + 0: uint16(58758), + 1: uint16(58759), + 2: uint16(58760), + 3: uint16(58761), + 4: uint16(58762), + 5: uint16(58763), + 6: uint16(58764), + 7: uint16(58765), + 8: uint16(58766), + 9: uint16(58767), + 10: uint16(58768), + 11: uint16(58769), + 12: uint16(58770), + 13: uint16(58771), + 14: uint16(58772), + 15: uint16(58773), + 16: uint16(58774), + 17: uint16(58775), + 18: uint16(58776), + 19: uint16(58777), + 20: uint16(58778), + 21: uint16(58779), + 22: uint16(58780), + 23: uint16(58781), + 24: uint16(58782), + 25: uint16(58783), + 26: uint16(58784), + 27: uint16(58785), + 28: uint16(58786), + 29: uint16(58787), + 30: uint16(58788), + 31: uint16(58789), + 32: uint16(58790), + 33: uint16(58791), + 34: uint16(58792), + 35: uint16(58793), + 36: uint16(58794), + 37: uint16(58795), + 38: uint16(58796), + 39: uint16(58797), + 40: uint16(58798), + 41: uint16(58799), + 42: uint16(58800), + 43: uint16(58801), + 44: uint16(58802), + 45: uint16(58803), + 46: uint16(58804), + 47: uint16(58805), + 48: uint16(58806), + 49: uint16(58807), + 50: uint16(58808), + 51: uint16(58809), + 52: uint16(58810), + 53: uint16(58811), + 54: uint16(58812), + 55: uint16(58813), + 56: uint16(58814), + 57: uint16(58815), + 58: uint16(58816), + 59: uint16(58817), + 60: uint16(58818), + 61: uint16(58819), + 62: uint16(58820), + 63: uint16(58821), + 64: uint16(58822), + 65: uint16(58823), + 66: uint16(58824), + 67: uint16(58825), + 68: uint16(58826), + 69: uint16(58827), + 70: uint16(58828), + 71: uint16(58829), + 72: uint16(58830), + 73: uint16(58831), + 74: uint16(58832), + 75: uint16(58833), + 76: uint16(58834), + 77: uint16(58835), + 78: uint16(58836), + 79: uint16(58837), + 80: uint16(58838), + 81: uint16(58839), + 82: uint16(58840), + 83: uint16(58841), + 84: uint16(58842), + 85: uint16(58843), + 86: uint16(58844), + 87: uint16(58845), + 88: uint16(58846), + 89: uint16(58847), + 90: uint16(58848), + 91: uint16(58849), + 92: uint16(58850), + 93: uint16(58851), + 94: uint16(58852), + 95: uint16(58853), + 96: uint16(65281), + 97: uint16(65282), + 98: uint16(65283), + 99: uint16(65509), + 100: uint16(65285), + 101: uint16(65286), + 102: uint16(65287), + 103: uint16(65288), + 104: uint16(65289), + 105: uint16(65290), + 106: uint16(65291), + 107: uint16(65292), + 108: uint16(65293), + 109: uint16(65294), + 110: uint16(65295), + 111: uint16(65296), + 112: uint16(65297), + 113: uint16(65298), + 114: uint16(65299), + 115: uint16(65300), + 116: uint16(65301), + 117: uint16(65302), + 118: uint16(65303), + 119: uint16(65304), + 120: uint16(65305), + 121: uint16(65306), + 122: uint16(65307), + 123: uint16(65308), + 124: uint16(65309), + 125: uint16(65310), + 126: uint16(65311), + 127: uint16(65312), + 128: uint16(65313), + 129: uint16(65314), + 130: uint16(65315), + 131: uint16(65316), + 132: uint16(65317), + 133: uint16(65318), + 134: uint16(65319), + 135: uint16(65320), + 136: uint16(65321), + 137: uint16(65322), + 138: uint16(65323), + 139: uint16(65324), + 140: uint16(65325), + 141: uint16(65326), + 142: uint16(65327), + 143: uint16(65328), + 144: uint16(65329), + 145: uint16(65330), + 146: uint16(65331), + 147: uint16(65332), + 148: uint16(65333), + 149: uint16(65334), + 150: uint16(65335), + 151: uint16(65336), + 152: uint16(65337), + 153: uint16(65338), + 154: uint16(65339), + 155: uint16(65340), + 156: uint16(65341), + 157: uint16(65342), + 158: uint16(65343), + 159: uint16(65344), + 160: uint16(65345), + 161: uint16(65346), + 162: uint16(65347), + 163: uint16(65348), + 164: uint16(65349), + 165: uint16(65350), + 166: uint16(65351), + 167: uint16(65352), + 168: uint16(65353), + 169: uint16(65354), + 170: uint16(65355), + 171: uint16(65356), + 172: uint16(65357), + 173: uint16(65358), + 174: uint16(65359), + 175: uint16(65360), + 176: uint16(65361), + 177: uint16(65362), + 178: uint16(65363), + 179: uint16(65364), + 180: uint16(65365), + 181: uint16(65366), + 182: uint16(65367), + 183: uint16(65368), + 184: uint16(65369), + 185: uint16(65370), + 186: uint16(65371), + 187: uint16(65372), + 188: uint16(65373), + 189: uint16(65507), + }, + 35: { + 0: uint16(58854), + 1: uint16(58855), + 2: uint16(58856), + 3: uint16(58857), + 4: uint16(58858), + 5: uint16(58859), + 6: uint16(58860), + 7: uint16(58861), + 8: uint16(58862), + 9: uint16(58863), + 10: uint16(58864), + 11: uint16(58865), + 12: uint16(58866), + 13: uint16(58867), + 14: uint16(58868), + 15: uint16(58869), + 16: uint16(58870), + 17: uint16(58871), + 18: uint16(58872), + 19: uint16(58873), + 20: uint16(58874), + 21: uint16(58875), + 22: uint16(58876), + 23: uint16(58877), + 24: uint16(58878), + 25: uint16(58879), + 26: uint16(58880), + 27: uint16(58881), + 28: uint16(58882), + 29: uint16(58883), + 30: uint16(58884), + 31: uint16(58885), + 32: uint16(58886), + 33: uint16(58887), + 34: uint16(58888), + 35: uint16(58889), + 36: uint16(58890), + 37: uint16(58891), + 38: uint16(58892), + 39: uint16(58893), + 40: uint16(58894), + 41: uint16(58895), + 42: uint16(58896), + 43: uint16(58897), + 44: uint16(58898), + 45: uint16(58899), + 46: uint16(58900), + 47: uint16(58901), + 48: uint16(58902), + 49: uint16(58903), + 50: uint16(58904), + 51: uint16(58905), + 52: uint16(58906), + 53: uint16(58907), + 54: uint16(58908), + 55: uint16(58909), + 56: uint16(58910), + 57: uint16(58911), + 58: uint16(58912), + 59: uint16(58913), + 60: uint16(58914), + 61: uint16(58915), + 62: uint16(58916), + 63: uint16(58917), + 64: uint16(58918), + 65: uint16(58919), + 66: uint16(58920), + 67: uint16(58921), + 68: uint16(58922), + 69: uint16(58923), + 70: uint16(58924), + 71: uint16(58925), + 72: uint16(58926), + 73: uint16(58927), + 74: uint16(58928), + 75: uint16(58929), + 76: uint16(58930), + 77: uint16(58931), + 78: uint16(58932), + 79: uint16(58933), + 80: uint16(58934), + 81: uint16(58935), + 82: uint16(58936), + 83: uint16(58937), + 84: uint16(58938), + 85: uint16(58939), + 86: uint16(58940), + 87: uint16(58941), + 88: uint16(58942), + 89: uint16(58943), + 90: uint16(58944), + 91: uint16(58945), + 92: uint16(58946), + 93: uint16(58947), + 94: uint16(58948), + 95: uint16(58949), + 96: uint16(12353), + 97: uint16(12354), + 98: uint16(12355), + 99: uint16(12356), + 100: uint16(12357), + 101: uint16(12358), + 102: uint16(12359), + 103: uint16(12360), + 104: uint16(12361), + 105: uint16(12362), + 106: uint16(12363), + 107: uint16(12364), + 108: uint16(12365), + 109: uint16(12366), + 110: uint16(12367), + 111: uint16(12368), + 112: uint16(12369), + 113: uint16(12370), + 114: uint16(12371), + 115: uint16(12372), + 116: uint16(12373), + 117: uint16(12374), + 118: uint16(12375), + 119: uint16(12376), + 120: uint16(12377), + 121: uint16(12378), + 122: uint16(12379), + 123: uint16(12380), + 124: uint16(12381), + 125: uint16(12382), + 126: uint16(12383), + 127: uint16(12384), + 128: uint16(12385), + 129: uint16(12386), + 130: uint16(12387), + 131: uint16(12388), + 132: uint16(12389), + 133: uint16(12390), + 134: uint16(12391), + 135: uint16(12392), + 136: uint16(12393), + 137: uint16(12394), + 138: uint16(12395), + 139: uint16(12396), + 140: uint16(12397), + 141: uint16(12398), + 142: uint16(12399), + 143: uint16(12400), + 144: uint16(12401), + 145: uint16(12402), + 146: uint16(12403), + 147: uint16(12404), + 148: uint16(12405), + 149: uint16(12406), + 150: uint16(12407), + 151: uint16(12408), + 152: uint16(12409), + 153: uint16(12410), + 154: uint16(12411), + 155: uint16(12412), + 156: uint16(12413), + 157: uint16(12414), + 158: uint16(12415), + 159: uint16(12416), + 160: uint16(12417), + 161: uint16(12418), + 162: uint16(12419), + 163: uint16(12420), + 164: uint16(12421), + 165: uint16(12422), + 166: uint16(12423), + 167: uint16(12424), + 168: uint16(12425), + 169: uint16(12426), + 170: uint16(12427), + 171: uint16(12428), + 172: uint16(12429), + 173: uint16(12430), + 174: uint16(12431), + 175: uint16(12432), + 176: uint16(12433), + 177: uint16(12434), + 178: uint16(12435), + 179: uint16(59250), + 180: uint16(59251), + 181: uint16(59252), + 182: uint16(59253), + 183: uint16(59254), + 184: uint16(59255), + 185: uint16(59256), + 186: uint16(59257), + 187: uint16(59258), + 188: uint16(59259), + 189: uint16(59260), + }, + 36: { + 0: uint16(58950), + 1: uint16(58951), + 2: uint16(58952), + 3: uint16(58953), + 4: uint16(58954), + 5: uint16(58955), + 6: uint16(58956), + 7: uint16(58957), + 8: uint16(58958), + 9: uint16(58959), + 10: uint16(58960), + 11: uint16(58961), + 12: uint16(58962), + 13: uint16(58963), + 14: uint16(58964), + 15: uint16(58965), + 16: uint16(58966), + 17: uint16(58967), + 18: uint16(58968), + 19: uint16(58969), + 20: uint16(58970), + 21: uint16(58971), + 22: uint16(58972), + 23: uint16(58973), + 24: uint16(58974), + 25: uint16(58975), + 26: uint16(58976), + 27: uint16(58977), + 28: uint16(58978), + 29: uint16(58979), + 30: uint16(58980), + 31: uint16(58981), + 32: uint16(58982), + 33: uint16(58983), + 34: uint16(58984), + 35: uint16(58985), + 36: uint16(58986), + 37: uint16(58987), + 38: uint16(58988), + 39: uint16(58989), + 40: uint16(58990), + 41: uint16(58991), + 42: uint16(58992), + 43: uint16(58993), + 44: uint16(58994), + 45: uint16(58995), + 46: uint16(58996), + 47: uint16(58997), + 48: uint16(58998), + 49: uint16(58999), + 50: uint16(59000), + 51: uint16(59001), + 52: uint16(59002), + 53: uint16(59003), + 54: uint16(59004), + 55: uint16(59005), + 56: uint16(59006), + 57: uint16(59007), + 58: uint16(59008), + 59: uint16(59009), + 60: uint16(59010), + 61: uint16(59011), + 62: uint16(59012), + 63: uint16(59013), + 64: uint16(59014), + 65: uint16(59015), + 66: uint16(59016), + 67: uint16(59017), + 68: uint16(59018), + 69: uint16(59019), + 70: uint16(59020), + 71: uint16(59021), + 72: uint16(59022), + 73: uint16(59023), + 74: uint16(59024), + 75: uint16(59025), + 76: uint16(59026), + 77: uint16(59027), + 78: uint16(59028), + 79: uint16(59029), + 80: uint16(59030), + 81: uint16(59031), + 82: uint16(59032), + 83: uint16(59033), + 84: uint16(59034), + 85: uint16(59035), + 86: uint16(59036), + 87: uint16(59037), + 88: uint16(59038), + 89: uint16(59039), + 90: uint16(59040), + 91: uint16(59041), + 92: uint16(59042), + 93: uint16(59043), + 94: uint16(59044), + 95: uint16(59045), + 96: uint16(12449), + 97: uint16(12450), + 98: uint16(12451), + 99: uint16(12452), + 100: uint16(12453), + 101: uint16(12454), + 102: uint16(12455), + 103: uint16(12456), + 104: uint16(12457), + 105: uint16(12458), + 106: uint16(12459), + 107: uint16(12460), + 108: uint16(12461), + 109: uint16(12462), + 110: uint16(12463), + 111: uint16(12464), + 112: uint16(12465), + 113: uint16(12466), + 114: uint16(12467), + 115: uint16(12468), + 116: uint16(12469), + 117: uint16(12470), + 118: uint16(12471), + 119: uint16(12472), + 120: uint16(12473), + 121: uint16(12474), + 122: uint16(12475), + 123: uint16(12476), + 124: uint16(12477), + 125: uint16(12478), + 126: uint16(12479), + 127: uint16(12480), + 128: uint16(12481), + 129: uint16(12482), + 130: uint16(12483), + 131: uint16(12484), + 132: uint16(12485), + 133: uint16(12486), + 134: uint16(12487), + 135: uint16(12488), + 136: uint16(12489), + 137: uint16(12490), + 138: uint16(12491), + 139: uint16(12492), + 140: uint16(12493), + 141: uint16(12494), + 142: uint16(12495), + 143: uint16(12496), + 144: uint16(12497), + 145: uint16(12498), + 146: uint16(12499), + 147: uint16(12500), + 148: uint16(12501), + 149: uint16(12502), + 150: uint16(12503), + 151: uint16(12504), + 152: uint16(12505), + 153: uint16(12506), + 154: uint16(12507), + 155: uint16(12508), + 156: uint16(12509), + 157: uint16(12510), + 158: uint16(12511), + 159: uint16(12512), + 160: uint16(12513), + 161: uint16(12514), + 162: uint16(12515), + 163: uint16(12516), + 164: uint16(12517), + 165: uint16(12518), + 166: uint16(12519), + 167: uint16(12520), + 168: uint16(12521), + 169: uint16(12522), + 170: uint16(12523), + 171: uint16(12524), + 172: uint16(12525), + 173: uint16(12526), + 174: uint16(12527), + 175: uint16(12528), + 176: uint16(12529), + 177: uint16(12530), + 178: uint16(12531), + 179: uint16(12532), + 180: uint16(12533), + 181: uint16(12534), + 182: uint16(59261), + 183: uint16(59262), + 184: uint16(59263), + 185: uint16(59264), + 186: uint16(59265), + 187: uint16(59266), + 188: uint16(59267), + 189: uint16(59268), + }, + 37: { + 0: uint16(59046), + 1: uint16(59047), + 2: uint16(59048), + 3: uint16(59049), + 4: uint16(59050), + 5: uint16(59051), + 6: uint16(59052), + 7: uint16(59053), + 8: uint16(59054), + 9: uint16(59055), + 10: uint16(59056), + 11: uint16(59057), + 12: uint16(59058), + 13: uint16(59059), + 14: uint16(59060), + 15: uint16(59061), + 16: uint16(59062), + 17: uint16(59063), + 18: uint16(59064), + 19: uint16(59065), + 20: uint16(59066), + 21: uint16(59067), + 22: uint16(59068), + 23: uint16(59069), + 24: uint16(59070), + 25: uint16(59071), + 26: uint16(59072), + 27: uint16(59073), + 28: uint16(59074), + 29: uint16(59075), + 30: uint16(59076), + 31: uint16(59077), + 32: uint16(59078), + 33: uint16(59079), + 34: uint16(59080), + 35: uint16(59081), + 36: uint16(59082), + 37: uint16(59083), + 38: uint16(59084), + 39: uint16(59085), + 40: uint16(59086), + 41: uint16(59087), + 42: uint16(59088), + 43: uint16(59089), + 44: uint16(59090), + 45: uint16(59091), + 46: uint16(59092), + 47: uint16(59093), + 48: uint16(59094), + 49: uint16(59095), + 50: uint16(59096), + 51: uint16(59097), + 52: uint16(59098), + 53: uint16(59099), + 54: uint16(59100), + 55: uint16(59101), + 56: uint16(59102), + 57: uint16(59103), + 58: uint16(59104), + 59: uint16(59105), + 60: uint16(59106), + 61: uint16(59107), + 62: uint16(59108), + 63: uint16(59109), + 64: uint16(59110), + 65: uint16(59111), + 66: uint16(59112), + 67: uint16(59113), + 68: uint16(59114), + 69: uint16(59115), + 70: uint16(59116), + 71: uint16(59117), + 72: uint16(59118), + 73: uint16(59119), + 74: uint16(59120), + 75: uint16(59121), + 76: uint16(59122), + 77: uint16(59123), + 78: uint16(59124), + 79: uint16(59125), + 80: uint16(59126), + 81: uint16(59127), + 82: uint16(59128), + 83: uint16(59129), + 84: uint16(59130), + 85: uint16(59131), + 86: uint16(59132), + 87: uint16(59133), + 88: uint16(59134), + 89: uint16(59135), + 90: uint16(59136), + 91: uint16(59137), + 92: uint16(59138), + 93: uint16(59139), + 94: uint16(59140), + 95: uint16(59141), + 96: uint16(913), + 97: uint16(914), + 98: uint16(915), + 99: uint16(916), + 100: uint16(917), + 101: uint16(918), + 102: uint16(919), + 103: uint16(920), + 104: uint16(921), + 105: uint16(922), + 106: uint16(923), + 107: uint16(924), + 108: uint16(925), + 109: uint16(926), + 110: uint16(927), + 111: uint16(928), + 112: uint16(929), + 113: uint16(931), + 114: uint16(932), + 115: uint16(933), + 116: uint16(934), + 117: uint16(935), + 118: uint16(936), + 119: uint16(937), + 120: uint16(59269), + 121: uint16(59270), + 122: uint16(59271), + 123: uint16(59272), + 124: uint16(59273), + 125: uint16(59274), + 126: uint16(59275), + 127: uint16(59276), + 128: uint16(945), + 129: uint16(946), + 130: uint16(947), + 131: uint16(948), + 132: uint16(949), + 133: uint16(950), + 134: uint16(951), + 135: uint16(952), + 136: uint16(953), + 137: uint16(954), + 138: uint16(955), + 139: uint16(956), + 140: uint16(957), + 141: uint16(958), + 142: uint16(959), + 143: uint16(960), + 144: uint16(961), + 145: uint16(963), + 146: uint16(964), + 147: uint16(965), + 148: uint16(966), + 149: uint16(967), + 150: uint16(968), + 151: uint16(969), + 152: uint16(59277), + 153: uint16(59278), + 154: uint16(59279), + 155: uint16(59280), + 156: uint16(59281), + 157: uint16(59282), + 158: uint16(59283), + 159: uint16(65077), + 160: uint16(65078), + 161: uint16(65081), + 162: uint16(65082), + 163: uint16(65087), + 164: uint16(65088), + 165: uint16(65085), + 166: uint16(65086), + 167: uint16(65089), + 168: uint16(65090), + 169: uint16(65091), + 170: uint16(65092), + 171: uint16(59284), + 172: uint16(59285), + 173: uint16(65083), + 174: uint16(65084), + 175: uint16(65079), + 176: uint16(65080), + 177: uint16(65073), + 178: uint16(59286), + 179: uint16(65075), + 180: uint16(65076), + 181: uint16(59287), + 182: uint16(59288), + 183: uint16(59289), + 184: uint16(59290), + 185: uint16(59291), + 186: uint16(59292), + 187: uint16(59293), + 188: uint16(59294), + 189: uint16(59295), + }, + 38: { + 0: uint16(59142), + 1: uint16(59143), + 2: uint16(59144), + 3: uint16(59145), + 4: uint16(59146), + 5: uint16(59147), + 6: uint16(59148), + 7: uint16(59149), + 8: uint16(59150), + 9: uint16(59151), + 10: uint16(59152), + 11: uint16(59153), + 12: uint16(59154), + 13: uint16(59155), + 14: uint16(59156), + 15: uint16(59157), + 16: uint16(59158), + 17: uint16(59159), + 18: uint16(59160), + 19: uint16(59161), + 20: uint16(59162), + 21: uint16(59163), + 22: uint16(59164), + 23: uint16(59165), + 24: uint16(59166), + 25: uint16(59167), + 26: uint16(59168), + 27: uint16(59169), + 28: uint16(59170), + 29: uint16(59171), + 30: uint16(59172), + 31: uint16(59173), + 32: uint16(59174), + 33: uint16(59175), + 34: uint16(59176), + 35: uint16(59177), + 36: uint16(59178), + 37: uint16(59179), + 38: uint16(59180), + 39: uint16(59181), + 40: uint16(59182), + 41: uint16(59183), + 42: uint16(59184), + 43: uint16(59185), + 44: uint16(59186), + 45: uint16(59187), + 46: uint16(59188), + 47: uint16(59189), + 48: uint16(59190), + 49: uint16(59191), + 50: uint16(59192), + 51: uint16(59193), + 52: uint16(59194), + 53: uint16(59195), + 54: uint16(59196), + 55: uint16(59197), + 56: uint16(59198), + 57: uint16(59199), + 58: uint16(59200), + 59: uint16(59201), + 60: uint16(59202), + 61: uint16(59203), + 62: uint16(59204), + 63: uint16(59205), + 64: uint16(59206), + 65: uint16(59207), + 66: uint16(59208), + 67: uint16(59209), + 68: uint16(59210), + 69: uint16(59211), + 70: uint16(59212), + 71: uint16(59213), + 72: uint16(59214), + 73: uint16(59215), + 74: uint16(59216), + 75: uint16(59217), + 76: uint16(59218), + 77: uint16(59219), + 78: uint16(59220), + 79: uint16(59221), + 80: uint16(59222), + 81: uint16(59223), + 82: uint16(59224), + 83: uint16(59225), + 84: uint16(59226), + 85: uint16(59227), + 86: uint16(59228), + 87: uint16(59229), + 88: uint16(59230), + 89: uint16(59231), + 90: uint16(59232), + 91: uint16(59233), + 92: uint16(59234), + 93: uint16(59235), + 94: uint16(59236), + 95: uint16(59237), + 96: uint16(1040), + 97: uint16(1041), + 98: uint16(1042), + 99: uint16(1043), + 100: uint16(1044), + 101: uint16(1045), + 102: uint16(1025), + 103: uint16(1046), + 104: uint16(1047), + 105: uint16(1048), + 106: uint16(1049), + 107: uint16(1050), + 108: uint16(1051), + 109: uint16(1052), + 110: uint16(1053), + 111: uint16(1054), + 112: uint16(1055), + 113: uint16(1056), + 114: uint16(1057), + 115: uint16(1058), + 116: uint16(1059), + 117: uint16(1060), + 118: uint16(1061), + 119: uint16(1062), + 120: uint16(1063), + 121: uint16(1064), + 122: uint16(1065), + 123: uint16(1066), + 124: uint16(1067), + 125: uint16(1068), + 126: uint16(1069), + 127: uint16(1070), + 128: uint16(1071), + 129: uint16(59296), + 130: uint16(59297), + 131: uint16(59298), + 132: uint16(59299), + 133: uint16(59300), + 134: uint16(59301), + 135: uint16(59302), + 136: uint16(59303), + 137: uint16(59304), + 138: uint16(59305), + 139: uint16(59306), + 140: uint16(59307), + 141: uint16(59308), + 142: uint16(59309), + 143: uint16(59310), + 144: uint16(1072), + 145: uint16(1073), + 146: uint16(1074), + 147: uint16(1075), + 148: uint16(1076), + 149: uint16(1077), + 150: uint16(1105), + 151: uint16(1078), + 152: uint16(1079), + 153: uint16(1080), + 154: uint16(1081), + 155: uint16(1082), + 156: uint16(1083), + 157: uint16(1084), + 158: uint16(1085), + 159: uint16(1086), + 160: uint16(1087), + 161: uint16(1088), + 162: uint16(1089), + 163: uint16(1090), + 164: uint16(1091), + 165: uint16(1092), + 166: uint16(1093), + 167: uint16(1094), + 168: uint16(1095), + 169: uint16(1096), + 170: uint16(1097), + 171: uint16(1098), + 172: uint16(1099), + 173: uint16(1100), + 174: uint16(1101), + 175: uint16(1102), + 176: uint16(1103), + 177: uint16(59311), + 178: uint16(59312), + 179: uint16(59313), + 180: uint16(59314), + 181: uint16(59315), + 182: uint16(59316), + 183: uint16(59317), + 184: uint16(59318), + 185: uint16(59319), + 186: uint16(59320), + 187: uint16(59321), + 188: uint16(59322), + 189: uint16(59323), + }, + 39: { + 0: uint16(714), + 1: uint16(715), + 2: uint16(729), + 3: uint16(8211), + 4: uint16(8213), + 5: uint16(8229), + 6: uint16(8245), + 7: uint16(8453), + 8: uint16(8457), + 9: uint16(8598), + 10: uint16(8599), + 11: uint16(8600), + 12: uint16(8601), + 13: uint16(8725), + 14: uint16(8735), + 15: uint16(8739), + 16: uint16(8786), + 17: uint16(8806), + 18: uint16(8807), + 19: uint16(8895), + 20: uint16(9552), + 21: uint16(9553), + 22: uint16(9554), + 23: uint16(9555), + 24: uint16(9556), + 25: uint16(9557), + 26: uint16(9558), + 27: uint16(9559), + 28: uint16(9560), + 29: uint16(9561), + 30: uint16(9562), + 31: uint16(9563), + 32: uint16(9564), + 33: uint16(9565), + 34: uint16(9566), + 35: uint16(9567), + 36: uint16(9568), + 37: uint16(9569), + 38: uint16(9570), + 39: uint16(9571), + 40: uint16(9572), + 41: uint16(9573), + 42: uint16(9574), + 43: uint16(9575), + 44: uint16(9576), + 45: uint16(9577), + 46: uint16(9578), + 47: uint16(9579), + 48: uint16(9580), + 49: uint16(9581), + 50: uint16(9582), + 51: uint16(9583), + 52: uint16(9584), + 53: uint16(9585), + 54: uint16(9586), + 55: uint16(9587), + 56: uint16(9601), + 57: uint16(9602), + 58: uint16(9603), + 59: uint16(9604), + 60: uint16(9605), + 61: uint16(9606), + 62: uint16(9607), + 63: uint16(9608), + 64: uint16(9609), + 65: uint16(9610), + 66: uint16(9611), + 67: uint16(9612), + 68: uint16(9613), + 69: uint16(9614), + 70: uint16(9615), + 71: uint16(9619), + 72: uint16(9620), + 73: uint16(9621), + 74: uint16(9660), + 75: uint16(9661), + 76: uint16(9698), + 77: uint16(9699), + 78: uint16(9700), + 79: uint16(9701), + 80: uint16(9737), + 81: uint16(8853), + 82: uint16(12306), + 83: uint16(12317), + 84: uint16(12318), + 85: uint16(59324), + 86: uint16(59325), + 87: uint16(59326), + 88: uint16(59327), + 89: uint16(59328), + 90: uint16(59329), + 91: uint16(59330), + 92: uint16(59331), + 93: uint16(59332), + 94: uint16(59333), + 95: uint16(59334), + 96: uint16(257), + 97: uint16(225), + 98: uint16(462), + 99: uint16(224), + 100: uint16(275), + 101: uint16(233), + 102: uint16(283), + 103: uint16(232), + 104: uint16(299), + 105: uint16(237), + 106: uint16(464), + 107: uint16(236), + 108: uint16(333), + 109: uint16(243), + 110: uint16(466), + 111: uint16(242), + 112: uint16(363), + 113: uint16(250), + 114: uint16(468), + 115: uint16(249), + 116: uint16(470), + 117: uint16(472), + 118: uint16(474), + 119: uint16(476), + 120: uint16(252), + 121: uint16(234), + 122: uint16(593), + 123: uint16(59335), + 124: uint16(324), + 125: uint16(328), + 126: uint16(505), + 127: uint16(609), + 128: uint16(59337), + 129: uint16(59338), + 130: uint16(59339), + 131: uint16(59340), + 132: uint16(12549), + 133: uint16(12550), + 134: uint16(12551), + 135: uint16(12552), + 136: uint16(12553), + 137: uint16(12554), + 138: uint16(12555), + 139: uint16(12556), + 140: uint16(12557), + 141: uint16(12558), + 142: uint16(12559), + 143: uint16(12560), + 144: uint16(12561), + 145: uint16(12562), + 146: uint16(12563), + 147: uint16(12564), + 148: uint16(12565), + 149: uint16(12566), + 150: uint16(12567), + 151: uint16(12568), + 152: uint16(12569), + 153: uint16(12570), + 154: uint16(12571), + 155: uint16(12572), + 156: uint16(12573), + 157: uint16(12574), + 158: uint16(12575), + 159: uint16(12576), + 160: uint16(12577), + 161: uint16(12578), + 162: uint16(12579), + 163: uint16(12580), + 164: uint16(12581), + 165: uint16(12582), + 166: uint16(12583), + 167: uint16(12584), + 168: uint16(12585), + 169: uint16(59341), + 170: uint16(59342), + 171: uint16(59343), + 172: uint16(59344), + 173: uint16(59345), + 174: uint16(59346), + 175: uint16(59347), + 176: uint16(59348), + 177: uint16(59349), + 178: uint16(59350), + 179: uint16(59351), + 180: uint16(59352), + 181: uint16(59353), + 182: uint16(59354), + 183: uint16(59355), + 184: uint16(59356), + 185: uint16(59357), + 186: uint16(59358), + 187: uint16(59359), + 188: uint16(59360), + 189: uint16(59361), + }, + 40: { + 0: uint16(12321), + 1: uint16(12322), + 2: uint16(12323), + 3: uint16(12324), + 4: uint16(12325), + 5: uint16(12326), + 6: uint16(12327), + 7: uint16(12328), + 8: uint16(12329), + 9: uint16(12963), + 10: uint16(13198), + 11: uint16(13199), + 12: uint16(13212), + 13: uint16(13213), + 14: uint16(13214), + 15: uint16(13217), + 16: uint16(13252), + 17: uint16(13262), + 18: uint16(13265), + 19: uint16(13266), + 20: uint16(13269), + 21: uint16(65072), + 22: uint16(65506), + 23: uint16(65508), + 24: uint16(59362), + 25: uint16(8481), + 26: uint16(12849), + 27: uint16(59363), + 28: uint16(8208), + 29: uint16(59364), + 30: uint16(59365), + 31: uint16(59366), + 32: uint16(12540), + 33: uint16(12443), + 34: uint16(12444), + 35: uint16(12541), + 36: uint16(12542), + 37: uint16(12294), + 38: uint16(12445), + 39: uint16(12446), + 40: uint16(65097), + 41: uint16(65098), + 42: uint16(65099), + 43: uint16(65100), + 44: uint16(65101), + 45: uint16(65102), + 46: uint16(65103), + 47: uint16(65104), + 48: uint16(65105), + 49: uint16(65106), + 50: uint16(65108), + 51: uint16(65109), + 52: uint16(65110), + 53: uint16(65111), + 54: uint16(65113), + 55: uint16(65114), + 56: uint16(65115), + 57: uint16(65116), + 58: uint16(65117), + 59: uint16(65118), + 60: uint16(65119), + 61: uint16(65120), + 62: uint16(65121), + 63: uint16(65122), + 64: uint16(65123), + 65: uint16(65124), + 66: uint16(65125), + 67: uint16(65126), + 68: uint16(65128), + 69: uint16(65129), + 70: uint16(65130), + 71: uint16(65131), + 72: uint16(12350), + 73: uint16(12272), + 74: uint16(12273), + 75: uint16(12274), + 76: uint16(12275), + 77: uint16(12276), + 78: uint16(12277), + 79: uint16(12278), + 80: uint16(12279), + 81: uint16(12280), + 82: uint16(12281), + 83: uint16(12282), + 84: uint16(12283), + 85: uint16(12295), + 86: uint16(59380), + 87: uint16(59381), + 88: uint16(59382), + 89: uint16(59383), + 90: uint16(59384), + 91: uint16(59385), + 92: uint16(59386), + 93: uint16(59387), + 94: uint16(59388), + 95: uint16(59389), + 96: uint16(59390), + 97: uint16(59391), + 98: uint16(59392), + 99: uint16(9472), + 100: uint16(9473), + 101: uint16(9474), + 102: uint16(9475), + 103: uint16(9476), + 104: uint16(9477), + 105: uint16(9478), + 106: uint16(9479), + 107: uint16(9480), + 108: uint16(9481), + 109: uint16(9482), + 110: uint16(9483), + 111: uint16(9484), + 112: uint16(9485), + 113: uint16(9486), + 114: uint16(9487), + 115: uint16(9488), + 116: uint16(9489), + 117: uint16(9490), + 118: uint16(9491), + 119: uint16(9492), + 120: uint16(9493), + 121: uint16(9494), + 122: uint16(9495), + 123: uint16(9496), + 124: uint16(9497), + 125: uint16(9498), + 126: uint16(9499), + 127: uint16(9500), + 128: uint16(9501), + 129: uint16(9502), + 130: uint16(9503), + 131: uint16(9504), + 132: uint16(9505), + 133: uint16(9506), + 134: uint16(9507), + 135: uint16(9508), + 136: uint16(9509), + 137: uint16(9510), + 138: uint16(9511), + 139: uint16(9512), + 140: uint16(9513), + 141: uint16(9514), + 142: uint16(9515), + 143: uint16(9516), + 144: uint16(9517), + 145: uint16(9518), + 146: uint16(9519), + 147: uint16(9520), + 148: uint16(9521), + 149: uint16(9522), + 150: uint16(9523), + 151: uint16(9524), + 152: uint16(9525), + 153: uint16(9526), + 154: uint16(9527), + 155: uint16(9528), + 156: uint16(9529), + 157: uint16(9530), + 158: uint16(9531), + 159: uint16(9532), + 160: uint16(9533), + 161: uint16(9534), + 162: uint16(9535), + 163: uint16(9536), + 164: uint16(9537), + 165: uint16(9538), + 166: uint16(9539), + 167: uint16(9540), + 168: uint16(9541), + 169: uint16(9542), + 170: uint16(9543), + 171: uint16(9544), + 172: uint16(9545), + 173: uint16(9546), + 174: uint16(9547), + 175: uint16(59393), + 176: uint16(59394), + 177: uint16(59395), + 178: uint16(59396), + 179: uint16(59397), + 180: uint16(59398), + 181: uint16(59399), + 182: uint16(59400), + 183: uint16(59401), + 184: uint16(59402), + 185: uint16(59403), + 186: uint16(59404), + 187: uint16(59405), + 188: uint16(59406), + 189: uint16(59407), + }, + 41: { + 0: uint16(29404), + 1: uint16(29405), + 2: uint16(29407), + 3: uint16(29410), + 4: uint16(29411), + 5: uint16(29412), + 6: uint16(29413), + 7: uint16(29414), + 8: uint16(29415), + 9: uint16(29418), + 10: uint16(29419), + 11: uint16(29429), + 12: uint16(29430), + 13: uint16(29433), + 14: uint16(29437), + 15: uint16(29438), + 16: uint16(29439), + 17: uint16(29440), + 18: uint16(29442), + 19: uint16(29444), + 20: uint16(29445), + 21: uint16(29446), + 22: uint16(29447), + 23: uint16(29448), + 24: uint16(29449), + 25: uint16(29451), + 26: uint16(29452), + 27: uint16(29453), + 28: uint16(29455), + 29: uint16(29456), + 30: uint16(29457), + 31: uint16(29458), + 32: uint16(29460), + 33: uint16(29464), + 34: uint16(29465), + 35: uint16(29466), + 36: uint16(29471), + 37: uint16(29472), + 38: uint16(29475), + 39: uint16(29476), + 40: uint16(29478), + 41: uint16(29479), + 42: uint16(29480), + 43: uint16(29485), + 44: uint16(29487), + 45: uint16(29488), + 46: uint16(29490), + 47: uint16(29491), + 48: uint16(29493), + 49: uint16(29494), + 50: uint16(29498), + 51: uint16(29499), + 52: uint16(29500), + 53: uint16(29501), + 54: uint16(29504), + 55: uint16(29505), + 56: uint16(29506), + 57: uint16(29507), + 58: uint16(29508), + 59: uint16(29509), + 60: uint16(29510), + 61: uint16(29511), + 62: uint16(29512), + 63: uint16(29513), + 64: uint16(29514), + 65: uint16(29515), + 66: uint16(29516), + 67: uint16(29518), + 68: uint16(29519), + 69: uint16(29521), + 70: uint16(29523), + 71: uint16(29524), + 72: uint16(29525), + 73: uint16(29526), + 74: uint16(29528), + 75: uint16(29529), + 76: uint16(29530), + 77: uint16(29531), + 78: uint16(29532), + 79: uint16(29533), + 80: uint16(29534), + 81: uint16(29535), + 82: uint16(29537), + 83: uint16(29538), + 84: uint16(29539), + 85: uint16(29540), + 86: uint16(29541), + 87: uint16(29542), + 88: uint16(29543), + 89: uint16(29544), + 90: uint16(29545), + 91: uint16(29546), + 92: uint16(29547), + 93: uint16(29550), + 94: uint16(29552), + 95: uint16(29553), + 96: uint16(57344), + 97: uint16(57345), + 98: uint16(57346), + 99: uint16(57347), + 100: uint16(57348), + 101: uint16(57349), + 102: uint16(57350), + 103: uint16(57351), + 104: uint16(57352), + 105: uint16(57353), + 106: uint16(57354), + 107: uint16(57355), + 108: uint16(57356), + 109: uint16(57357), + 110: uint16(57358), + 111: uint16(57359), + 112: uint16(57360), + 113: uint16(57361), + 114: uint16(57362), + 115: uint16(57363), + 116: uint16(57364), + 117: uint16(57365), + 118: uint16(57366), + 119: uint16(57367), + 120: uint16(57368), + 121: uint16(57369), + 122: uint16(57370), + 123: uint16(57371), + 124: uint16(57372), + 125: uint16(57373), + 126: uint16(57374), + 127: uint16(57375), + 128: uint16(57376), + 129: uint16(57377), + 130: uint16(57378), + 131: uint16(57379), + 132: uint16(57380), + 133: uint16(57381), + 134: uint16(57382), + 135: uint16(57383), + 136: uint16(57384), + 137: uint16(57385), + 138: uint16(57386), + 139: uint16(57387), + 140: uint16(57388), + 141: uint16(57389), + 142: uint16(57390), + 143: uint16(57391), + 144: uint16(57392), + 145: uint16(57393), + 146: uint16(57394), + 147: uint16(57395), + 148: uint16(57396), + 149: uint16(57397), + 150: uint16(57398), + 151: uint16(57399), + 152: uint16(57400), + 153: uint16(57401), + 154: uint16(57402), + 155: uint16(57403), + 156: uint16(57404), + 157: uint16(57405), + 158: uint16(57406), + 159: uint16(57407), + 160: uint16(57408), + 161: uint16(57409), + 162: uint16(57410), + 163: uint16(57411), + 164: uint16(57412), + 165: uint16(57413), + 166: uint16(57414), + 167: uint16(57415), + 168: uint16(57416), + 169: uint16(57417), + 170: uint16(57418), + 171: uint16(57419), + 172: uint16(57420), + 173: uint16(57421), + 174: uint16(57422), + 175: uint16(57423), + 176: uint16(57424), + 177: uint16(57425), + 178: uint16(57426), + 179: uint16(57427), + 180: uint16(57428), + 181: uint16(57429), + 182: uint16(57430), + 183: uint16(57431), + 184: uint16(57432), + 185: uint16(57433), + 186: uint16(57434), + 187: uint16(57435), + 188: uint16(57436), + 189: uint16(57437), + }, + 42: { + 0: uint16(29554), + 1: uint16(29555), + 2: uint16(29556), + 3: uint16(29557), + 4: uint16(29558), + 5: uint16(29559), + 6: uint16(29560), + 7: uint16(29561), + 8: uint16(29562), + 9: uint16(29563), + 10: uint16(29564), + 11: uint16(29565), + 12: uint16(29567), + 13: uint16(29568), + 14: uint16(29569), + 15: uint16(29570), + 16: uint16(29571), + 17: uint16(29573), + 18: uint16(29574), + 19: uint16(29576), + 20: uint16(29578), + 21: uint16(29580), + 22: uint16(29581), + 23: uint16(29583), + 24: uint16(29584), + 25: uint16(29586), + 26: uint16(29587), + 27: uint16(29588), + 28: uint16(29589), + 29: uint16(29591), + 30: uint16(29592), + 31: uint16(29593), + 32: uint16(29594), + 33: uint16(29596), + 34: uint16(29597), + 35: uint16(29598), + 36: uint16(29600), + 37: uint16(29601), + 38: uint16(29603), + 39: uint16(29604), + 40: uint16(29605), + 41: uint16(29606), + 42: uint16(29607), + 43: uint16(29608), + 44: uint16(29610), + 45: uint16(29612), + 46: uint16(29613), + 47: uint16(29617), + 48: uint16(29620), + 49: uint16(29621), + 50: uint16(29622), + 51: uint16(29624), + 52: uint16(29625), + 53: uint16(29628), + 54: uint16(29629), + 55: uint16(29630), + 56: uint16(29631), + 57: uint16(29633), + 58: uint16(29635), + 59: uint16(29636), + 60: uint16(29637), + 61: uint16(29638), + 62: uint16(29639), + 63: uint16(29643), + 64: uint16(29644), + 65: uint16(29646), + 66: uint16(29650), + 67: uint16(29651), + 68: uint16(29652), + 69: uint16(29653), + 70: uint16(29654), + 71: uint16(29655), + 72: uint16(29656), + 73: uint16(29658), + 74: uint16(29659), + 75: uint16(29660), + 76: uint16(29661), + 77: uint16(29663), + 78: uint16(29665), + 79: uint16(29666), + 80: uint16(29667), + 81: uint16(29668), + 82: uint16(29670), + 83: uint16(29672), + 84: uint16(29674), + 85: uint16(29675), + 86: uint16(29676), + 87: uint16(29678), + 88: uint16(29679), + 89: uint16(29680), + 90: uint16(29681), + 91: uint16(29683), + 92: uint16(29684), + 93: uint16(29685), + 94: uint16(29686), + 95: uint16(29687), + 96: uint16(57438), + 97: uint16(57439), + 98: uint16(57440), + 99: uint16(57441), + 100: uint16(57442), + 101: uint16(57443), + 102: uint16(57444), + 103: uint16(57445), + 104: uint16(57446), + 105: uint16(57447), + 106: uint16(57448), + 107: uint16(57449), + 108: uint16(57450), + 109: uint16(57451), + 110: uint16(57452), + 111: uint16(57453), + 112: uint16(57454), + 113: uint16(57455), + 114: uint16(57456), + 115: uint16(57457), + 116: uint16(57458), + 117: uint16(57459), + 118: uint16(57460), + 119: uint16(57461), + 120: uint16(57462), + 121: uint16(57463), + 122: uint16(57464), + 123: uint16(57465), + 124: uint16(57466), + 125: uint16(57467), + 126: uint16(57468), + 127: uint16(57469), + 128: uint16(57470), + 129: uint16(57471), + 130: uint16(57472), + 131: uint16(57473), + 132: uint16(57474), + 133: uint16(57475), + 134: uint16(57476), + 135: uint16(57477), + 136: uint16(57478), + 137: uint16(57479), + 138: uint16(57480), + 139: uint16(57481), + 140: uint16(57482), + 141: uint16(57483), + 142: uint16(57484), + 143: uint16(57485), + 144: uint16(57486), + 145: uint16(57487), + 146: uint16(57488), + 147: uint16(57489), + 148: uint16(57490), + 149: uint16(57491), + 150: uint16(57492), + 151: uint16(57493), + 152: uint16(57494), + 153: uint16(57495), + 154: uint16(57496), + 155: uint16(57497), + 156: uint16(57498), + 157: uint16(57499), + 158: uint16(57500), + 159: uint16(57501), + 160: uint16(57502), + 161: uint16(57503), + 162: uint16(57504), + 163: uint16(57505), + 164: uint16(57506), + 165: uint16(57507), + 166: uint16(57508), + 167: uint16(57509), + 168: uint16(57510), + 169: uint16(57511), + 170: uint16(57512), + 171: uint16(57513), + 172: uint16(57514), + 173: uint16(57515), + 174: uint16(57516), + 175: uint16(57517), + 176: uint16(57518), + 177: uint16(57519), + 178: uint16(57520), + 179: uint16(57521), + 180: uint16(57522), + 181: uint16(57523), + 182: uint16(57524), + 183: uint16(57525), + 184: uint16(57526), + 185: uint16(57527), + 186: uint16(57528), + 187: uint16(57529), + 188: uint16(57530), + 189: uint16(57531), + }, + 43: { + 0: uint16(29688), + 1: uint16(29689), + 2: uint16(29690), + 3: uint16(29691), + 4: uint16(29692), + 5: uint16(29693), + 6: uint16(29694), + 7: uint16(29695), + 8: uint16(29696), + 9: uint16(29697), + 10: uint16(29698), + 11: uint16(29700), + 12: uint16(29703), + 13: uint16(29704), + 14: uint16(29707), + 15: uint16(29708), + 16: uint16(29709), + 17: uint16(29710), + 18: uint16(29713), + 19: uint16(29714), + 20: uint16(29715), + 21: uint16(29716), + 22: uint16(29717), + 23: uint16(29718), + 24: uint16(29719), + 25: uint16(29720), + 26: uint16(29721), + 27: uint16(29724), + 28: uint16(29725), + 29: uint16(29726), + 30: uint16(29727), + 31: uint16(29728), + 32: uint16(29729), + 33: uint16(29731), + 34: uint16(29732), + 35: uint16(29735), + 36: uint16(29737), + 37: uint16(29739), + 38: uint16(29741), + 39: uint16(29743), + 40: uint16(29745), + 41: uint16(29746), + 42: uint16(29751), + 43: uint16(29752), + 44: uint16(29753), + 45: uint16(29754), + 46: uint16(29755), + 47: uint16(29757), + 48: uint16(29758), + 49: uint16(29759), + 50: uint16(29760), + 51: uint16(29762), + 52: uint16(29763), + 53: uint16(29764), + 54: uint16(29765), + 55: uint16(29766), + 56: uint16(29767), + 57: uint16(29768), + 58: uint16(29769), + 59: uint16(29770), + 60: uint16(29771), + 61: uint16(29772), + 62: uint16(29773), + 63: uint16(29774), + 64: uint16(29775), + 65: uint16(29776), + 66: uint16(29777), + 67: uint16(29778), + 68: uint16(29779), + 69: uint16(29780), + 70: uint16(29782), + 71: uint16(29784), + 72: uint16(29789), + 73: uint16(29792), + 74: uint16(29793), + 75: uint16(29794), + 76: uint16(29795), + 77: uint16(29796), + 78: uint16(29797), + 79: uint16(29798), + 80: uint16(29799), + 81: uint16(29800), + 82: uint16(29801), + 83: uint16(29802), + 84: uint16(29803), + 85: uint16(29804), + 86: uint16(29806), + 87: uint16(29807), + 88: uint16(29809), + 89: uint16(29810), + 90: uint16(29811), + 91: uint16(29812), + 92: uint16(29813), + 93: uint16(29816), + 94: uint16(29817), + 95: uint16(29818), + 96: uint16(57532), + 97: uint16(57533), + 98: uint16(57534), + 99: uint16(57535), + 100: uint16(57536), + 101: uint16(57537), + 102: uint16(57538), + 103: uint16(57539), + 104: uint16(57540), + 105: uint16(57541), + 106: uint16(57542), + 107: uint16(57543), + 108: uint16(57544), + 109: uint16(57545), + 110: uint16(57546), + 111: uint16(57547), + 112: uint16(57548), + 113: uint16(57549), + 114: uint16(57550), + 115: uint16(57551), + 116: uint16(57552), + 117: uint16(57553), + 118: uint16(57554), + 119: uint16(57555), + 120: uint16(57556), + 121: uint16(57557), + 122: uint16(57558), + 123: uint16(57559), + 124: uint16(57560), + 125: uint16(57561), + 126: uint16(57562), + 127: uint16(57563), + 128: uint16(57564), + 129: uint16(57565), + 130: uint16(57566), + 131: uint16(57567), + 132: uint16(57568), + 133: uint16(57569), + 134: uint16(57570), + 135: uint16(57571), + 136: uint16(57572), + 137: uint16(57573), + 138: uint16(57574), + 139: uint16(57575), + 140: uint16(57576), + 141: uint16(57577), + 142: uint16(57578), + 143: uint16(57579), + 144: uint16(57580), + 145: uint16(57581), + 146: uint16(57582), + 147: uint16(57583), + 148: uint16(57584), + 149: uint16(57585), + 150: uint16(57586), + 151: uint16(57587), + 152: uint16(57588), + 153: uint16(57589), + 154: uint16(57590), + 155: uint16(57591), + 156: uint16(57592), + 157: uint16(57593), + 158: uint16(57594), + 159: uint16(57595), + 160: uint16(57596), + 161: uint16(57597), + 162: uint16(57598), + 163: uint16(57599), + 164: uint16(57600), + 165: uint16(57601), + 166: uint16(57602), + 167: uint16(57603), + 168: uint16(57604), + 169: uint16(57605), + 170: uint16(57606), + 171: uint16(57607), + 172: uint16(57608), + 173: uint16(57609), + 174: uint16(57610), + 175: uint16(57611), + 176: uint16(57612), + 177: uint16(57613), + 178: uint16(57614), + 179: uint16(57615), + 180: uint16(57616), + 181: uint16(57617), + 182: uint16(57618), + 183: uint16(57619), + 184: uint16(57620), + 185: uint16(57621), + 186: uint16(57622), + 187: uint16(57623), + 188: uint16(57624), + 189: uint16(57625), + }, + 44: { + 0: uint16(29819), + 1: uint16(29820), + 2: uint16(29821), + 3: uint16(29823), + 4: uint16(29826), + 5: uint16(29828), + 6: uint16(29829), + 7: uint16(29830), + 8: uint16(29832), + 9: uint16(29833), + 10: uint16(29834), + 11: uint16(29836), + 12: uint16(29837), + 13: uint16(29839), + 14: uint16(29841), + 15: uint16(29842), + 16: uint16(29843), + 17: uint16(29844), + 18: uint16(29845), + 19: uint16(29846), + 20: uint16(29847), + 21: uint16(29848), + 22: uint16(29849), + 23: uint16(29850), + 24: uint16(29851), + 25: uint16(29853), + 26: uint16(29855), + 27: uint16(29856), + 28: uint16(29857), + 29: uint16(29858), + 30: uint16(29859), + 31: uint16(29860), + 32: uint16(29861), + 33: uint16(29862), + 34: uint16(29866), + 35: uint16(29867), + 36: uint16(29868), + 37: uint16(29869), + 38: uint16(29870), + 39: uint16(29871), + 40: uint16(29872), + 41: uint16(29873), + 42: uint16(29874), + 43: uint16(29875), + 44: uint16(29876), + 45: uint16(29877), + 46: uint16(29878), + 47: uint16(29879), + 48: uint16(29880), + 49: uint16(29881), + 50: uint16(29883), + 51: uint16(29884), + 52: uint16(29885), + 53: uint16(29886), + 54: uint16(29887), + 55: uint16(29888), + 56: uint16(29889), + 57: uint16(29890), + 58: uint16(29891), + 59: uint16(29892), + 60: uint16(29893), + 61: uint16(29894), + 62: uint16(29895), + 63: uint16(29896), + 64: uint16(29897), + 65: uint16(29898), + 66: uint16(29899), + 67: uint16(29900), + 68: uint16(29901), + 69: uint16(29902), + 70: uint16(29903), + 71: uint16(29904), + 72: uint16(29905), + 73: uint16(29907), + 74: uint16(29908), + 75: uint16(29909), + 76: uint16(29910), + 77: uint16(29911), + 78: uint16(29912), + 79: uint16(29913), + 80: uint16(29914), + 81: uint16(29915), + 82: uint16(29917), + 83: uint16(29919), + 84: uint16(29921), + 85: uint16(29925), + 86: uint16(29927), + 87: uint16(29928), + 88: uint16(29929), + 89: uint16(29930), + 90: uint16(29931), + 91: uint16(29932), + 92: uint16(29933), + 93: uint16(29936), + 94: uint16(29937), + 95: uint16(29938), + 96: uint16(57626), + 97: uint16(57627), + 98: uint16(57628), + 99: uint16(57629), + 100: uint16(57630), + 101: uint16(57631), + 102: uint16(57632), + 103: uint16(57633), + 104: uint16(57634), + 105: uint16(57635), + 106: uint16(57636), + 107: uint16(57637), + 108: uint16(57638), + 109: uint16(57639), + 110: uint16(57640), + 111: uint16(57641), + 112: uint16(57642), + 113: uint16(57643), + 114: uint16(57644), + 115: uint16(57645), + 116: uint16(57646), + 117: uint16(57647), + 118: uint16(57648), + 119: uint16(57649), + 120: uint16(57650), + 121: uint16(57651), + 122: uint16(57652), + 123: uint16(57653), + 124: uint16(57654), + 125: uint16(57655), + 126: uint16(57656), + 127: uint16(57657), + 128: uint16(57658), + 129: uint16(57659), + 130: uint16(57660), + 131: uint16(57661), + 132: uint16(57662), + 133: uint16(57663), + 134: uint16(57664), + 135: uint16(57665), + 136: uint16(57666), + 137: uint16(57667), + 138: uint16(57668), + 139: uint16(57669), + 140: uint16(57670), + 141: uint16(57671), + 142: uint16(57672), + 143: uint16(57673), + 144: uint16(57674), + 145: uint16(57675), + 146: uint16(57676), + 147: uint16(57677), + 148: uint16(57678), + 149: uint16(57679), + 150: uint16(57680), + 151: uint16(57681), + 152: uint16(57682), + 153: uint16(57683), + 154: uint16(57684), + 155: uint16(57685), + 156: uint16(57686), + 157: uint16(57687), + 158: uint16(57688), + 159: uint16(57689), + 160: uint16(57690), + 161: uint16(57691), + 162: uint16(57692), + 163: uint16(57693), + 164: uint16(57694), + 165: uint16(57695), + 166: uint16(57696), + 167: uint16(57697), + 168: uint16(57698), + 169: uint16(57699), + 170: uint16(57700), + 171: uint16(57701), + 172: uint16(57702), + 173: uint16(57703), + 174: uint16(57704), + 175: uint16(57705), + 176: uint16(57706), + 177: uint16(57707), + 178: uint16(57708), + 179: uint16(57709), + 180: uint16(57710), + 181: uint16(57711), + 182: uint16(57712), + 183: uint16(57713), + 184: uint16(57714), + 185: uint16(57715), + 186: uint16(57716), + 187: uint16(57717), + 188: uint16(57718), + 189: uint16(57719), + }, + 45: { + 0: uint16(29939), + 1: uint16(29941), + 2: uint16(29944), + 3: uint16(29945), + 4: uint16(29946), + 5: uint16(29947), + 6: uint16(29948), + 7: uint16(29949), + 8: uint16(29950), + 9: uint16(29952), + 10: uint16(29953), + 11: uint16(29954), + 12: uint16(29955), + 13: uint16(29957), + 14: uint16(29958), + 15: uint16(29959), + 16: uint16(29960), + 17: uint16(29961), + 18: uint16(29962), + 19: uint16(29963), + 20: uint16(29964), + 21: uint16(29966), + 22: uint16(29968), + 23: uint16(29970), + 24: uint16(29972), + 25: uint16(29973), + 26: uint16(29974), + 27: uint16(29975), + 28: uint16(29979), + 29: uint16(29981), + 30: uint16(29982), + 31: uint16(29984), + 32: uint16(29985), + 33: uint16(29986), + 34: uint16(29987), + 35: uint16(29988), + 36: uint16(29990), + 37: uint16(29991), + 38: uint16(29994), + 39: uint16(29998), + 40: uint16(30004), + 41: uint16(30006), + 42: uint16(30009), + 43: uint16(30012), + 44: uint16(30013), + 45: uint16(30015), + 46: uint16(30017), + 47: uint16(30018), + 48: uint16(30019), + 49: uint16(30020), + 50: uint16(30022), + 51: uint16(30023), + 52: uint16(30025), + 53: uint16(30026), + 54: uint16(30029), + 55: uint16(30032), + 56: uint16(30033), + 57: uint16(30034), + 58: uint16(30035), + 59: uint16(30037), + 60: uint16(30038), + 61: uint16(30039), + 62: uint16(30040), + 63: uint16(30045), + 64: uint16(30046), + 65: uint16(30047), + 66: uint16(30048), + 67: uint16(30049), + 68: uint16(30050), + 69: uint16(30051), + 70: uint16(30052), + 71: uint16(30055), + 72: uint16(30056), + 73: uint16(30057), + 74: uint16(30059), + 75: uint16(30060), + 76: uint16(30061), + 77: uint16(30062), + 78: uint16(30063), + 79: uint16(30064), + 80: uint16(30065), + 81: uint16(30067), + 82: uint16(30069), + 83: uint16(30070), + 84: uint16(30071), + 85: uint16(30074), + 86: uint16(30075), + 87: uint16(30076), + 88: uint16(30077), + 89: uint16(30078), + 90: uint16(30080), + 91: uint16(30081), + 92: uint16(30082), + 93: uint16(30084), + 94: uint16(30085), + 95: uint16(30087), + 96: uint16(57720), + 97: uint16(57721), + 98: uint16(57722), + 99: uint16(57723), + 100: uint16(57724), + 101: uint16(57725), + 102: uint16(57726), + 103: uint16(57727), + 104: uint16(57728), + 105: uint16(57729), + 106: uint16(57730), + 107: uint16(57731), + 108: uint16(57732), + 109: uint16(57733), + 110: uint16(57734), + 111: uint16(57735), + 112: uint16(57736), + 113: uint16(57737), + 114: uint16(57738), + 115: uint16(57739), + 116: uint16(57740), + 117: uint16(57741), + 118: uint16(57742), + 119: uint16(57743), + 120: uint16(57744), + 121: uint16(57745), + 122: uint16(57746), + 123: uint16(57747), + 124: uint16(57748), + 125: uint16(57749), + 126: uint16(57750), + 127: uint16(57751), + 128: uint16(57752), + 129: uint16(57753), + 130: uint16(57754), + 131: uint16(57755), + 132: uint16(57756), + 133: uint16(57757), + 134: uint16(57758), + 135: uint16(57759), + 136: uint16(57760), + 137: uint16(57761), + 138: uint16(57762), + 139: uint16(57763), + 140: uint16(57764), + 141: uint16(57765), + 142: uint16(57766), + 143: uint16(57767), + 144: uint16(57768), + 145: uint16(57769), + 146: uint16(57770), + 147: uint16(57771), + 148: uint16(57772), + 149: uint16(57773), + 150: uint16(57774), + 151: uint16(57775), + 152: uint16(57776), + 153: uint16(57777), + 154: uint16(57778), + 155: uint16(57779), + 156: uint16(57780), + 157: uint16(57781), + 158: uint16(57782), + 159: uint16(57783), + 160: uint16(57784), + 161: uint16(57785), + 162: uint16(57786), + 163: uint16(57787), + 164: uint16(57788), + 165: uint16(57789), + 166: uint16(57790), + 167: uint16(57791), + 168: uint16(57792), + 169: uint16(57793), + 170: uint16(57794), + 171: uint16(57795), + 172: uint16(57796), + 173: uint16(57797), + 174: uint16(57798), + 175: uint16(57799), + 176: uint16(57800), + 177: uint16(57801), + 178: uint16(57802), + 179: uint16(57803), + 180: uint16(57804), + 181: uint16(57805), + 182: uint16(57806), + 183: uint16(57807), + 184: uint16(57808), + 185: uint16(57809), + 186: uint16(57810), + 187: uint16(57811), + 188: uint16(57812), + 189: uint16(57813), + }, + 46: { + 0: uint16(30088), + 1: uint16(30089), + 2: uint16(30090), + 3: uint16(30092), + 4: uint16(30093), + 5: uint16(30094), + 6: uint16(30096), + 7: uint16(30099), + 8: uint16(30101), + 9: uint16(30104), + 10: uint16(30107), + 11: uint16(30108), + 12: uint16(30110), + 13: uint16(30114), + 14: uint16(30118), + 15: uint16(30119), + 16: uint16(30120), + 17: uint16(30121), + 18: uint16(30122), + 19: uint16(30125), + 20: uint16(30134), + 21: uint16(30135), + 22: uint16(30138), + 23: uint16(30139), + 24: uint16(30143), + 25: uint16(30144), + 26: uint16(30145), + 27: uint16(30150), + 28: uint16(30155), + 29: uint16(30156), + 30: uint16(30158), + 31: uint16(30159), + 32: uint16(30160), + 33: uint16(30161), + 34: uint16(30163), + 35: uint16(30167), + 36: uint16(30169), + 37: uint16(30170), + 38: uint16(30172), + 39: uint16(30173), + 40: uint16(30175), + 41: uint16(30176), + 42: uint16(30177), + 43: uint16(30181), + 44: uint16(30185), + 45: uint16(30188), + 46: uint16(30189), + 47: uint16(30190), + 48: uint16(30191), + 49: uint16(30194), + 50: uint16(30195), + 51: uint16(30197), + 52: uint16(30198), + 53: uint16(30199), + 54: uint16(30200), + 55: uint16(30202), + 56: uint16(30203), + 57: uint16(30205), + 58: uint16(30206), + 59: uint16(30210), + 60: uint16(30212), + 61: uint16(30214), + 62: uint16(30215), + 63: uint16(30216), + 64: uint16(30217), + 65: uint16(30219), + 66: uint16(30221), + 67: uint16(30222), + 68: uint16(30223), + 69: uint16(30225), + 70: uint16(30226), + 71: uint16(30227), + 72: uint16(30228), + 73: uint16(30230), + 74: uint16(30234), + 75: uint16(30236), + 76: uint16(30237), + 77: uint16(30238), + 78: uint16(30241), + 79: uint16(30243), + 80: uint16(30247), + 81: uint16(30248), + 82: uint16(30252), + 83: uint16(30254), + 84: uint16(30255), + 85: uint16(30257), + 86: uint16(30258), + 87: uint16(30262), + 88: uint16(30263), + 89: uint16(30265), + 90: uint16(30266), + 91: uint16(30267), + 92: uint16(30269), + 93: uint16(30273), + 94: uint16(30274), + 95: uint16(30276), + 96: uint16(57814), + 97: uint16(57815), + 98: uint16(57816), + 99: uint16(57817), + 100: uint16(57818), + 101: uint16(57819), + 102: uint16(57820), + 103: uint16(57821), + 104: uint16(57822), + 105: uint16(57823), + 106: uint16(57824), + 107: uint16(57825), + 108: uint16(57826), + 109: uint16(57827), + 110: uint16(57828), + 111: uint16(57829), + 112: uint16(57830), + 113: uint16(57831), + 114: uint16(57832), + 115: uint16(57833), + 116: uint16(57834), + 117: uint16(57835), + 118: uint16(57836), + 119: uint16(57837), + 120: uint16(57838), + 121: uint16(57839), + 122: uint16(57840), + 123: uint16(57841), + 124: uint16(57842), + 125: uint16(57843), + 126: uint16(57844), + 127: uint16(57845), + 128: uint16(57846), + 129: uint16(57847), + 130: uint16(57848), + 131: uint16(57849), + 132: uint16(57850), + 133: uint16(57851), + 134: uint16(57852), + 135: uint16(57853), + 136: uint16(57854), + 137: uint16(57855), + 138: uint16(57856), + 139: uint16(57857), + 140: uint16(57858), + 141: uint16(57859), + 142: uint16(57860), + 143: uint16(57861), + 144: uint16(57862), + 145: uint16(57863), + 146: uint16(57864), + 147: uint16(57865), + 148: uint16(57866), + 149: uint16(57867), + 150: uint16(57868), + 151: uint16(57869), + 152: uint16(57870), + 153: uint16(57871), + 154: uint16(57872), + 155: uint16(57873), + 156: uint16(57874), + 157: uint16(57875), + 158: uint16(57876), + 159: uint16(57877), + 160: uint16(57878), + 161: uint16(57879), + 162: uint16(57880), + 163: uint16(57881), + 164: uint16(57882), + 165: uint16(57883), + 166: uint16(57884), + 167: uint16(57885), + 168: uint16(57886), + 169: uint16(57887), + 170: uint16(57888), + 171: uint16(57889), + 172: uint16(57890), + 173: uint16(57891), + 174: uint16(57892), + 175: uint16(57893), + 176: uint16(57894), + 177: uint16(57895), + 178: uint16(57896), + 179: uint16(57897), + 180: uint16(57898), + 181: uint16(57899), + 182: uint16(57900), + 183: uint16(57901), + 184: uint16(57902), + 185: uint16(57903), + 186: uint16(57904), + 187: uint16(57905), + 188: uint16(57906), + 189: uint16(57907), + }, + 47: { + 0: uint16(30277), + 1: uint16(30278), + 2: uint16(30279), + 3: uint16(30280), + 4: uint16(30281), + 5: uint16(30282), + 6: uint16(30283), + 7: uint16(30286), + 8: uint16(30287), + 9: uint16(30288), + 10: uint16(30289), + 11: uint16(30290), + 12: uint16(30291), + 13: uint16(30293), + 14: uint16(30295), + 15: uint16(30296), + 16: uint16(30297), + 17: uint16(30298), + 18: uint16(30299), + 19: uint16(30301), + 20: uint16(30303), + 21: uint16(30304), + 22: uint16(30305), + 23: uint16(30306), + 24: uint16(30308), + 25: uint16(30309), + 26: uint16(30310), + 27: uint16(30311), + 28: uint16(30312), + 29: uint16(30313), + 30: uint16(30314), + 31: uint16(30316), + 32: uint16(30317), + 33: uint16(30318), + 34: uint16(30320), + 35: uint16(30321), + 36: uint16(30322), + 37: uint16(30323), + 38: uint16(30324), + 39: uint16(30325), + 40: uint16(30326), + 41: uint16(30327), + 42: uint16(30329), + 43: uint16(30330), + 44: uint16(30332), + 45: uint16(30335), + 46: uint16(30336), + 47: uint16(30337), + 48: uint16(30339), + 49: uint16(30341), + 50: uint16(30345), + 51: uint16(30346), + 52: uint16(30348), + 53: uint16(30349), + 54: uint16(30351), + 55: uint16(30352), + 56: uint16(30354), + 57: uint16(30356), + 58: uint16(30357), + 59: uint16(30359), + 60: uint16(30360), + 61: uint16(30362), + 62: uint16(30363), + 63: uint16(30364), + 64: uint16(30365), + 65: uint16(30366), + 66: uint16(30367), + 67: uint16(30368), + 68: uint16(30369), + 69: uint16(30370), + 70: uint16(30371), + 71: uint16(30373), + 72: uint16(30374), + 73: uint16(30375), + 74: uint16(30376), + 75: uint16(30377), + 76: uint16(30378), + 77: uint16(30379), + 78: uint16(30380), + 79: uint16(30381), + 80: uint16(30383), + 81: uint16(30384), + 82: uint16(30387), + 83: uint16(30389), + 84: uint16(30390), + 85: uint16(30391), + 86: uint16(30392), + 87: uint16(30393), + 88: uint16(30394), + 89: uint16(30395), + 90: uint16(30396), + 91: uint16(30397), + 92: uint16(30398), + 93: uint16(30400), + 94: uint16(30401), + 95: uint16(30403), + 96: uint16(21834), + 97: uint16(38463), + 98: uint16(22467), + 99: uint16(25384), + 100: uint16(21710), + 101: uint16(21769), + 102: uint16(21696), + 103: uint16(30353), + 104: uint16(30284), + 105: uint16(34108), + 106: uint16(30702), + 107: uint16(33406), + 108: uint16(30861), + 109: uint16(29233), + 110: uint16(38552), + 111: uint16(38797), + 112: uint16(27688), + 113: uint16(23433), + 114: uint16(20474), + 115: uint16(25353), + 116: uint16(26263), + 117: uint16(23736), + 118: uint16(33018), + 119: uint16(26696), + 120: uint16(32942), + 121: uint16(26114), + 122: uint16(30414), + 123: uint16(20985), + 124: uint16(25942), + 125: uint16(29100), + 126: uint16(32753), + 127: uint16(34948), + 128: uint16(20658), + 129: uint16(22885), + 130: uint16(25034), + 131: uint16(28595), + 132: uint16(33453), + 133: uint16(25420), + 134: uint16(25170), + 135: uint16(21485), + 136: uint16(21543), + 137: uint16(31494), + 138: uint16(20843), + 139: uint16(30116), + 140: uint16(24052), + 141: uint16(25300), + 142: uint16(36299), + 143: uint16(38774), + 144: uint16(25226), + 145: uint16(32793), + 146: uint16(22365), + 147: uint16(38712), + 148: uint16(32610), + 149: uint16(29240), + 150: uint16(30333), + 151: uint16(26575), + 152: uint16(30334), + 153: uint16(25670), + 154: uint16(20336), + 155: uint16(36133), + 156: uint16(25308), + 157: uint16(31255), + 158: uint16(26001), + 159: uint16(29677), + 160: uint16(25644), + 161: uint16(25203), + 162: uint16(33324), + 163: uint16(39041), + 164: uint16(26495), + 165: uint16(29256), + 166: uint16(25198), + 167: uint16(25292), + 168: uint16(20276), + 169: uint16(29923), + 170: uint16(21322), + 171: uint16(21150), + 172: uint16(32458), + 173: uint16(37030), + 174: uint16(24110), + 175: uint16(26758), + 176: uint16(27036), + 177: uint16(33152), + 178: uint16(32465), + 179: uint16(26834), + 180: uint16(30917), + 181: uint16(34444), + 182: uint16(38225), + 183: uint16(20621), + 184: uint16(35876), + 185: uint16(33502), + 186: uint16(32990), + 187: uint16(21253), + 188: uint16(35090), + 189: uint16(21093), + }, + 48: { + 0: uint16(30404), + 1: uint16(30407), + 2: uint16(30409), + 3: uint16(30411), + 4: uint16(30412), + 5: uint16(30419), + 6: uint16(30421), + 7: uint16(30425), + 8: uint16(30426), + 9: uint16(30428), + 10: uint16(30429), + 11: uint16(30430), + 12: uint16(30432), + 13: uint16(30433), + 14: uint16(30434), + 15: uint16(30435), + 16: uint16(30436), + 17: uint16(30438), + 18: uint16(30439), + 19: uint16(30440), + 20: uint16(30441), + 21: uint16(30442), + 22: uint16(30443), + 23: uint16(30444), + 24: uint16(30445), + 25: uint16(30448), + 26: uint16(30451), + 27: uint16(30453), + 28: uint16(30454), + 29: uint16(30455), + 30: uint16(30458), + 31: uint16(30459), + 32: uint16(30461), + 33: uint16(30463), + 34: uint16(30464), + 35: uint16(30466), + 36: uint16(30467), + 37: uint16(30469), + 38: uint16(30470), + 39: uint16(30474), + 40: uint16(30476), + 41: uint16(30478), + 42: uint16(30479), + 43: uint16(30480), + 44: uint16(30481), + 45: uint16(30482), + 46: uint16(30483), + 47: uint16(30484), + 48: uint16(30485), + 49: uint16(30486), + 50: uint16(30487), + 51: uint16(30488), + 52: uint16(30491), + 53: uint16(30492), + 54: uint16(30493), + 55: uint16(30494), + 56: uint16(30497), + 57: uint16(30499), + 58: uint16(30500), + 59: uint16(30501), + 60: uint16(30503), + 61: uint16(30506), + 62: uint16(30507), + 63: uint16(30508), + 64: uint16(30510), + 65: uint16(30512), + 66: uint16(30513), + 67: uint16(30514), + 68: uint16(30515), + 69: uint16(30516), + 70: uint16(30521), + 71: uint16(30523), + 72: uint16(30525), + 73: uint16(30526), + 74: uint16(30527), + 75: uint16(30530), + 76: uint16(30532), + 77: uint16(30533), + 78: uint16(30534), + 79: uint16(30536), + 80: uint16(30537), + 81: uint16(30538), + 82: uint16(30539), + 83: uint16(30540), + 84: uint16(30541), + 85: uint16(30542), + 86: uint16(30543), + 87: uint16(30546), + 88: uint16(30547), + 89: uint16(30548), + 90: uint16(30549), + 91: uint16(30550), + 92: uint16(30551), + 93: uint16(30552), + 94: uint16(30553), + 95: uint16(30556), + 96: uint16(34180), + 97: uint16(38649), + 98: uint16(20445), + 99: uint16(22561), + 100: uint16(39281), + 101: uint16(23453), + 102: uint16(25265), + 103: uint16(25253), + 104: uint16(26292), + 105: uint16(35961), + 106: uint16(40077), + 107: uint16(29190), + 108: uint16(26479), + 109: uint16(30865), + 110: uint16(24754), + 111: uint16(21329), + 112: uint16(21271), + 113: uint16(36744), + 114: uint16(32972), + 115: uint16(36125), + 116: uint16(38049), + 117: uint16(20493), + 118: uint16(29384), + 119: uint16(22791), + 120: uint16(24811), + 121: uint16(28953), + 122: uint16(34987), + 123: uint16(22868), + 124: uint16(33519), + 125: uint16(26412), + 126: uint16(31528), + 127: uint16(23849), + 128: uint16(32503), + 129: uint16(29997), + 130: uint16(27893), + 131: uint16(36454), + 132: uint16(36856), + 133: uint16(36924), + 134: uint16(40763), + 135: uint16(27604), + 136: uint16(37145), + 137: uint16(31508), + 138: uint16(24444), + 139: uint16(30887), + 140: uint16(34006), + 141: uint16(34109), + 142: uint16(27605), + 143: uint16(27609), + 144: uint16(27606), + 145: uint16(24065), + 146: uint16(24199), + 147: uint16(30201), + 148: uint16(38381), + 149: uint16(25949), + 150: uint16(24330), + 151: uint16(24517), + 152: uint16(36767), + 153: uint16(22721), + 154: uint16(33218), + 155: uint16(36991), + 156: uint16(38491), + 157: uint16(38829), + 158: uint16(36793), + 159: uint16(32534), + 160: uint16(36140), + 161: uint16(25153), + 162: uint16(20415), + 163: uint16(21464), + 164: uint16(21342), + 165: uint16(36776), + 166: uint16(36777), + 167: uint16(36779), + 168: uint16(36941), + 169: uint16(26631), + 170: uint16(24426), + 171: uint16(33176), + 172: uint16(34920), + 173: uint16(40150), + 174: uint16(24971), + 175: uint16(21035), + 176: uint16(30250), + 177: uint16(24428), + 178: uint16(25996), + 179: uint16(28626), + 180: uint16(28392), + 181: uint16(23486), + 182: uint16(25672), + 183: uint16(20853), + 184: uint16(20912), + 185: uint16(26564), + 186: uint16(19993), + 187: uint16(31177), + 188: uint16(39292), + 189: uint16(28851), + }, + 49: { + 0: uint16(30557), + 1: uint16(30558), + 2: uint16(30559), + 3: uint16(30560), + 4: uint16(30564), + 5: uint16(30567), + 6: uint16(30569), + 7: uint16(30570), + 8: uint16(30573), + 9: uint16(30574), + 10: uint16(30575), + 11: uint16(30576), + 12: uint16(30577), + 13: uint16(30578), + 14: uint16(30579), + 15: uint16(30580), + 16: uint16(30581), + 17: uint16(30582), + 18: uint16(30583), + 19: uint16(30584), + 20: uint16(30586), + 21: uint16(30587), + 22: uint16(30588), + 23: uint16(30593), + 24: uint16(30594), + 25: uint16(30595), + 26: uint16(30598), + 27: uint16(30599), + 28: uint16(30600), + 29: uint16(30601), + 30: uint16(30602), + 31: uint16(30603), + 32: uint16(30607), + 33: uint16(30608), + 34: uint16(30611), + 35: uint16(30612), + 36: uint16(30613), + 37: uint16(30614), + 38: uint16(30615), + 39: uint16(30616), + 40: uint16(30617), + 41: uint16(30618), + 42: uint16(30619), + 43: uint16(30620), + 44: uint16(30621), + 45: uint16(30622), + 46: uint16(30625), + 47: uint16(30627), + 48: uint16(30628), + 49: uint16(30630), + 50: uint16(30632), + 51: uint16(30635), + 52: uint16(30637), + 53: uint16(30638), + 54: uint16(30639), + 55: uint16(30641), + 56: uint16(30642), + 57: uint16(30644), + 58: uint16(30646), + 59: uint16(30647), + 60: uint16(30648), + 61: uint16(30649), + 62: uint16(30650), + 63: uint16(30652), + 64: uint16(30654), + 65: uint16(30656), + 66: uint16(30657), + 67: uint16(30658), + 68: uint16(30659), + 69: uint16(30660), + 70: uint16(30661), + 71: uint16(30662), + 72: uint16(30663), + 73: uint16(30664), + 74: uint16(30665), + 75: uint16(30666), + 76: uint16(30667), + 77: uint16(30668), + 78: uint16(30670), + 79: uint16(30671), + 80: uint16(30672), + 81: uint16(30673), + 82: uint16(30674), + 83: uint16(30675), + 84: uint16(30676), + 85: uint16(30677), + 86: uint16(30678), + 87: uint16(30680), + 88: uint16(30681), + 89: uint16(30682), + 90: uint16(30685), + 91: uint16(30686), + 92: uint16(30687), + 93: uint16(30688), + 94: uint16(30689), + 95: uint16(30692), + 96: uint16(30149), + 97: uint16(24182), + 98: uint16(29627), + 99: uint16(33760), + 100: uint16(25773), + 101: uint16(25320), + 102: uint16(38069), + 103: uint16(27874), + 104: uint16(21338), + 105: uint16(21187), + 106: uint16(25615), + 107: uint16(38082), + 108: uint16(31636), + 109: uint16(20271), + 110: uint16(24091), + 111: uint16(33334), + 112: uint16(33046), + 113: uint16(33162), + 114: uint16(28196), + 115: uint16(27850), + 116: uint16(39539), + 117: uint16(25429), + 118: uint16(21340), + 119: uint16(21754), + 120: uint16(34917), + 121: uint16(22496), + 122: uint16(19981), + 123: uint16(24067), + 124: uint16(27493), + 125: uint16(31807), + 126: uint16(37096), + 127: uint16(24598), + 128: uint16(25830), + 129: uint16(29468), + 130: uint16(35009), + 131: uint16(26448), + 132: uint16(25165), + 133: uint16(36130), + 134: uint16(30572), + 135: uint16(36393), + 136: uint16(37319), + 137: uint16(24425), + 138: uint16(33756), + 139: uint16(34081), + 140: uint16(39184), + 141: uint16(21442), + 142: uint16(34453), + 143: uint16(27531), + 144: uint16(24813), + 145: uint16(24808), + 146: uint16(28799), + 147: uint16(33485), + 148: uint16(33329), + 149: uint16(20179), + 150: uint16(27815), + 151: uint16(34255), + 152: uint16(25805), + 153: uint16(31961), + 154: uint16(27133), + 155: uint16(26361), + 156: uint16(33609), + 157: uint16(21397), + 158: uint16(31574), + 159: uint16(20391), + 160: uint16(20876), + 161: uint16(27979), + 162: uint16(23618), + 163: uint16(36461), + 164: uint16(25554), + 165: uint16(21449), + 166: uint16(33580), + 167: uint16(33590), + 168: uint16(26597), + 169: uint16(30900), + 170: uint16(25661), + 171: uint16(23519), + 172: uint16(23700), + 173: uint16(24046), + 174: uint16(35815), + 175: uint16(25286), + 176: uint16(26612), + 177: uint16(35962), + 178: uint16(25600), + 179: uint16(25530), + 180: uint16(34633), + 181: uint16(39307), + 182: uint16(35863), + 183: uint16(32544), + 184: uint16(38130), + 185: uint16(20135), + 186: uint16(38416), + 187: uint16(39076), + 188: uint16(26124), + 189: uint16(29462), + }, + 50: { + 0: uint16(30694), + 1: uint16(30696), + 2: uint16(30698), + 3: uint16(30703), + 4: uint16(30704), + 5: uint16(30705), + 6: uint16(30706), + 7: uint16(30708), + 8: uint16(30709), + 9: uint16(30711), + 10: uint16(30713), + 11: uint16(30714), + 12: uint16(30715), + 13: uint16(30716), + 14: uint16(30723), + 15: uint16(30724), + 16: uint16(30725), + 17: uint16(30726), + 18: uint16(30727), + 19: uint16(30728), + 20: uint16(30730), + 21: uint16(30731), + 22: uint16(30734), + 23: uint16(30735), + 24: uint16(30736), + 25: uint16(30739), + 26: uint16(30741), + 27: uint16(30745), + 28: uint16(30747), + 29: uint16(30750), + 30: uint16(30752), + 31: uint16(30753), + 32: uint16(30754), + 33: uint16(30756), + 34: uint16(30760), + 35: uint16(30762), + 36: uint16(30763), + 37: uint16(30766), + 38: uint16(30767), + 39: uint16(30769), + 40: uint16(30770), + 41: uint16(30771), + 42: uint16(30773), + 43: uint16(30774), + 44: uint16(30781), + 45: uint16(30783), + 46: uint16(30785), + 47: uint16(30786), + 48: uint16(30787), + 49: uint16(30788), + 50: uint16(30790), + 51: uint16(30792), + 52: uint16(30793), + 53: uint16(30794), + 54: uint16(30795), + 55: uint16(30797), + 56: uint16(30799), + 57: uint16(30801), + 58: uint16(30803), + 59: uint16(30804), + 60: uint16(30808), + 61: uint16(30809), + 62: uint16(30810), + 63: uint16(30811), + 64: uint16(30812), + 65: uint16(30814), + 66: uint16(30815), + 67: uint16(30816), + 68: uint16(30817), + 69: uint16(30818), + 70: uint16(30819), + 71: uint16(30820), + 72: uint16(30821), + 73: uint16(30822), + 74: uint16(30823), + 75: uint16(30824), + 76: uint16(30825), + 77: uint16(30831), + 78: uint16(30832), + 79: uint16(30833), + 80: uint16(30834), + 81: uint16(30835), + 82: uint16(30836), + 83: uint16(30837), + 84: uint16(30838), + 85: uint16(30840), + 86: uint16(30841), + 87: uint16(30842), + 88: uint16(30843), + 89: uint16(30845), + 90: uint16(30846), + 91: uint16(30847), + 92: uint16(30848), + 93: uint16(30849), + 94: uint16(30850), + 95: uint16(30851), + 96: uint16(22330), + 97: uint16(23581), + 98: uint16(24120), + 99: uint16(38271), + 100: uint16(20607), + 101: uint16(32928), + 102: uint16(21378), + 103: uint16(25950), + 104: uint16(30021), + 105: uint16(21809), + 106: uint16(20513), + 107: uint16(36229), + 108: uint16(25220), + 109: uint16(38046), + 110: uint16(26397), + 111: uint16(22066), + 112: uint16(28526), + 113: uint16(24034), + 114: uint16(21557), + 115: uint16(28818), + 116: uint16(36710), + 117: uint16(25199), + 118: uint16(25764), + 119: uint16(25507), + 120: uint16(24443), + 121: uint16(28552), + 122: uint16(37108), + 123: uint16(33251), + 124: uint16(36784), + 125: uint16(23576), + 126: uint16(26216), + 127: uint16(24561), + 128: uint16(27785), + 129: uint16(38472), + 130: uint16(36225), + 131: uint16(34924), + 132: uint16(25745), + 133: uint16(31216), + 134: uint16(22478), + 135: uint16(27225), + 136: uint16(25104), + 137: uint16(21576), + 138: uint16(20056), + 139: uint16(31243), + 140: uint16(24809), + 141: uint16(28548), + 142: uint16(35802), + 143: uint16(25215), + 144: uint16(36894), + 145: uint16(39563), + 146: uint16(31204), + 147: uint16(21507), + 148: uint16(30196), + 149: uint16(25345), + 150: uint16(21273), + 151: uint16(27744), + 152: uint16(36831), + 153: uint16(24347), + 154: uint16(39536), + 155: uint16(32827), + 156: uint16(40831), + 157: uint16(20360), + 158: uint16(23610), + 159: uint16(36196), + 160: uint16(32709), + 161: uint16(26021), + 162: uint16(28861), + 163: uint16(20805), + 164: uint16(20914), + 165: uint16(34411), + 166: uint16(23815), + 167: uint16(23456), + 168: uint16(25277), + 169: uint16(37228), + 170: uint16(30068), + 171: uint16(36364), + 172: uint16(31264), + 173: uint16(24833), + 174: uint16(31609), + 175: uint16(20167), + 176: uint16(32504), + 177: uint16(30597), + 178: uint16(19985), + 179: uint16(33261), + 180: uint16(21021), + 181: uint16(20986), + 182: uint16(27249), + 183: uint16(21416), + 184: uint16(36487), + 185: uint16(38148), + 186: uint16(38607), + 187: uint16(28353), + 188: uint16(38500), + 189: uint16(26970), + }, + 51: { + 0: uint16(30852), + 1: uint16(30853), + 2: uint16(30854), + 3: uint16(30856), + 4: uint16(30858), + 5: uint16(30859), + 6: uint16(30863), + 7: uint16(30864), + 8: uint16(30866), + 9: uint16(30868), + 10: uint16(30869), + 11: uint16(30870), + 12: uint16(30873), + 13: uint16(30877), + 14: uint16(30878), + 15: uint16(30880), + 16: uint16(30882), + 17: uint16(30884), + 18: uint16(30886), + 19: uint16(30888), + 20: uint16(30889), + 21: uint16(30890), + 22: uint16(30891), + 23: uint16(30892), + 24: uint16(30893), + 25: uint16(30894), + 26: uint16(30895), + 27: uint16(30901), + 28: uint16(30902), + 29: uint16(30903), + 30: uint16(30904), + 31: uint16(30906), + 32: uint16(30907), + 33: uint16(30908), + 34: uint16(30909), + 35: uint16(30911), + 36: uint16(30912), + 37: uint16(30914), + 38: uint16(30915), + 39: uint16(30916), + 40: uint16(30918), + 41: uint16(30919), + 42: uint16(30920), + 43: uint16(30924), + 44: uint16(30925), + 45: uint16(30926), + 46: uint16(30927), + 47: uint16(30929), + 48: uint16(30930), + 49: uint16(30931), + 50: uint16(30934), + 51: uint16(30935), + 52: uint16(30936), + 53: uint16(30938), + 54: uint16(30939), + 55: uint16(30940), + 56: uint16(30941), + 57: uint16(30942), + 58: uint16(30943), + 59: uint16(30944), + 60: uint16(30945), + 61: uint16(30946), + 62: uint16(30947), + 63: uint16(30948), + 64: uint16(30949), + 65: uint16(30950), + 66: uint16(30951), + 67: uint16(30953), + 68: uint16(30954), + 69: uint16(30955), + 70: uint16(30957), + 71: uint16(30958), + 72: uint16(30959), + 73: uint16(30960), + 74: uint16(30961), + 75: uint16(30963), + 76: uint16(30965), + 77: uint16(30966), + 78: uint16(30968), + 79: uint16(30969), + 80: uint16(30971), + 81: uint16(30972), + 82: uint16(30973), + 83: uint16(30974), + 84: uint16(30975), + 85: uint16(30976), + 86: uint16(30978), + 87: uint16(30979), + 88: uint16(30980), + 89: uint16(30982), + 90: uint16(30983), + 91: uint16(30984), + 92: uint16(30985), + 93: uint16(30986), + 94: uint16(30987), + 95: uint16(30988), + 96: uint16(30784), + 97: uint16(20648), + 98: uint16(30679), + 99: uint16(25616), + 100: uint16(35302), + 101: uint16(22788), + 102: uint16(25571), + 103: uint16(24029), + 104: uint16(31359), + 105: uint16(26941), + 106: uint16(20256), + 107: uint16(33337), + 108: uint16(21912), + 109: uint16(20018), + 110: uint16(30126), + 111: uint16(31383), + 112: uint16(24162), + 113: uint16(24202), + 114: uint16(38383), + 115: uint16(21019), + 116: uint16(21561), + 117: uint16(28810), + 118: uint16(25462), + 119: uint16(38180), + 120: uint16(22402), + 121: uint16(26149), + 122: uint16(26943), + 123: uint16(37255), + 124: uint16(21767), + 125: uint16(28147), + 126: uint16(32431), + 127: uint16(34850), + 128: uint16(25139), + 129: uint16(32496), + 130: uint16(30133), + 131: uint16(33576), + 132: uint16(30913), + 133: uint16(38604), + 134: uint16(36766), + 135: uint16(24904), + 136: uint16(29943), + 137: uint16(35789), + 138: uint16(27492), + 139: uint16(21050), + 140: uint16(36176), + 141: uint16(27425), + 142: uint16(32874), + 143: uint16(33905), + 144: uint16(22257), + 145: uint16(21254), + 146: uint16(20174), + 147: uint16(19995), + 148: uint16(20945), + 149: uint16(31895), + 150: uint16(37259), + 151: uint16(31751), + 152: uint16(20419), + 153: uint16(36479), + 154: uint16(31713), + 155: uint16(31388), + 156: uint16(25703), + 157: uint16(23828), + 158: uint16(20652), + 159: uint16(33030), + 160: uint16(30209), + 161: uint16(31929), + 162: uint16(28140), + 163: uint16(32736), + 164: uint16(26449), + 165: uint16(23384), + 166: uint16(23544), + 167: uint16(30923), + 168: uint16(25774), + 169: uint16(25619), + 170: uint16(25514), + 171: uint16(25387), + 172: uint16(38169), + 173: uint16(25645), + 174: uint16(36798), + 175: uint16(31572), + 176: uint16(30249), + 177: uint16(25171), + 178: uint16(22823), + 179: uint16(21574), + 180: uint16(27513), + 181: uint16(20643), + 182: uint16(25140), + 183: uint16(24102), + 184: uint16(27526), + 185: uint16(20195), + 186: uint16(36151), + 187: uint16(34955), + 188: uint16(24453), + 189: uint16(36910), + }, + 52: { + 0: uint16(30989), + 1: uint16(30990), + 2: uint16(30991), + 3: uint16(30992), + 4: uint16(30993), + 5: uint16(30994), + 6: uint16(30996), + 7: uint16(30997), + 8: uint16(30998), + 9: uint16(30999), + 10: uint16(31000), + 11: uint16(31001), + 12: uint16(31002), + 13: uint16(31003), + 14: uint16(31004), + 15: uint16(31005), + 16: uint16(31007), + 17: uint16(31008), + 18: uint16(31009), + 19: uint16(31010), + 20: uint16(31011), + 21: uint16(31013), + 22: uint16(31014), + 23: uint16(31015), + 24: uint16(31016), + 25: uint16(31017), + 26: uint16(31018), + 27: uint16(31019), + 28: uint16(31020), + 29: uint16(31021), + 30: uint16(31022), + 31: uint16(31023), + 32: uint16(31024), + 33: uint16(31025), + 34: uint16(31026), + 35: uint16(31027), + 36: uint16(31029), + 37: uint16(31030), + 38: uint16(31031), + 39: uint16(31032), + 40: uint16(31033), + 41: uint16(31037), + 42: uint16(31039), + 43: uint16(31042), + 44: uint16(31043), + 45: uint16(31044), + 46: uint16(31045), + 47: uint16(31047), + 48: uint16(31050), + 49: uint16(31051), + 50: uint16(31052), + 51: uint16(31053), + 52: uint16(31054), + 53: uint16(31055), + 54: uint16(31056), + 55: uint16(31057), + 56: uint16(31058), + 57: uint16(31060), + 58: uint16(31061), + 59: uint16(31064), + 60: uint16(31065), + 61: uint16(31073), + 62: uint16(31075), + 63: uint16(31076), + 64: uint16(31078), + 65: uint16(31081), + 66: uint16(31082), + 67: uint16(31083), + 68: uint16(31084), + 69: uint16(31086), + 70: uint16(31088), + 71: uint16(31089), + 72: uint16(31090), + 73: uint16(31091), + 74: uint16(31092), + 75: uint16(31093), + 76: uint16(31094), + 77: uint16(31097), + 78: uint16(31099), + 79: uint16(31100), + 80: uint16(31101), + 81: uint16(31102), + 82: uint16(31103), + 83: uint16(31106), + 84: uint16(31107), + 85: uint16(31110), + 86: uint16(31111), + 87: uint16(31112), + 88: uint16(31113), + 89: uint16(31115), + 90: uint16(31116), + 91: uint16(31117), + 92: uint16(31118), + 93: uint16(31120), + 94: uint16(31121), + 95: uint16(31122), + 96: uint16(24608), + 97: uint16(32829), + 98: uint16(25285), + 99: uint16(20025), + 100: uint16(21333), + 101: uint16(37112), + 102: uint16(25528), + 103: uint16(32966), + 104: uint16(26086), + 105: uint16(27694), + 106: uint16(20294), + 107: uint16(24814), + 108: uint16(28129), + 109: uint16(35806), + 110: uint16(24377), + 111: uint16(34507), + 112: uint16(24403), + 113: uint16(25377), + 114: uint16(20826), + 115: uint16(33633), + 116: uint16(26723), + 117: uint16(20992), + 118: uint16(25443), + 119: uint16(36424), + 120: uint16(20498), + 121: uint16(23707), + 122: uint16(31095), + 123: uint16(23548), + 124: uint16(21040), + 125: uint16(31291), + 126: uint16(24764), + 127: uint16(36947), + 128: uint16(30423), + 129: uint16(24503), + 130: uint16(24471), + 131: uint16(30340), + 132: uint16(36460), + 133: uint16(28783), + 134: uint16(30331), + 135: uint16(31561), + 136: uint16(30634), + 137: uint16(20979), + 138: uint16(37011), + 139: uint16(22564), + 140: uint16(20302), + 141: uint16(28404), + 142: uint16(36842), + 143: uint16(25932), + 144: uint16(31515), + 145: uint16(29380), + 146: uint16(28068), + 147: uint16(32735), + 148: uint16(23265), + 149: uint16(25269), + 150: uint16(24213), + 151: uint16(22320), + 152: uint16(33922), + 153: uint16(31532), + 154: uint16(24093), + 155: uint16(24351), + 156: uint16(36882), + 157: uint16(32532), + 158: uint16(39072), + 159: uint16(25474), + 160: uint16(28359), + 161: uint16(30872), + 162: uint16(28857), + 163: uint16(20856), + 164: uint16(38747), + 165: uint16(22443), + 166: uint16(30005), + 167: uint16(20291), + 168: uint16(30008), + 169: uint16(24215), + 170: uint16(24806), + 171: uint16(22880), + 172: uint16(28096), + 173: uint16(27583), + 174: uint16(30857), + 175: uint16(21500), + 176: uint16(38613), + 177: uint16(20939), + 178: uint16(20993), + 179: uint16(25481), + 180: uint16(21514), + 181: uint16(38035), + 182: uint16(35843), + 183: uint16(36300), + 184: uint16(29241), + 185: uint16(30879), + 186: uint16(34678), + 187: uint16(36845), + 188: uint16(35853), + 189: uint16(21472), + }, + 53: { + 0: uint16(31123), + 1: uint16(31124), + 2: uint16(31125), + 3: uint16(31126), + 4: uint16(31127), + 5: uint16(31128), + 6: uint16(31129), + 7: uint16(31131), + 8: uint16(31132), + 9: uint16(31133), + 10: uint16(31134), + 11: uint16(31135), + 12: uint16(31136), + 13: uint16(31137), + 14: uint16(31138), + 15: uint16(31139), + 16: uint16(31140), + 17: uint16(31141), + 18: uint16(31142), + 19: uint16(31144), + 20: uint16(31145), + 21: uint16(31146), + 22: uint16(31147), + 23: uint16(31148), + 24: uint16(31149), + 25: uint16(31150), + 26: uint16(31151), + 27: uint16(31152), + 28: uint16(31153), + 29: uint16(31154), + 30: uint16(31156), + 31: uint16(31157), + 32: uint16(31158), + 33: uint16(31159), + 34: uint16(31160), + 35: uint16(31164), + 36: uint16(31167), + 37: uint16(31170), + 38: uint16(31172), + 39: uint16(31173), + 40: uint16(31175), + 41: uint16(31176), + 42: uint16(31178), + 43: uint16(31180), + 44: uint16(31182), + 45: uint16(31183), + 46: uint16(31184), + 47: uint16(31187), + 48: uint16(31188), + 49: uint16(31190), + 50: uint16(31191), + 51: uint16(31193), + 52: uint16(31194), + 53: uint16(31195), + 54: uint16(31196), + 55: uint16(31197), + 56: uint16(31198), + 57: uint16(31200), + 58: uint16(31201), + 59: uint16(31202), + 60: uint16(31205), + 61: uint16(31208), + 62: uint16(31210), + 63: uint16(31212), + 64: uint16(31214), + 65: uint16(31217), + 66: uint16(31218), + 67: uint16(31219), + 68: uint16(31220), + 69: uint16(31221), + 70: uint16(31222), + 71: uint16(31223), + 72: uint16(31225), + 73: uint16(31226), + 74: uint16(31228), + 75: uint16(31230), + 76: uint16(31231), + 77: uint16(31233), + 78: uint16(31236), + 79: uint16(31237), + 80: uint16(31239), + 81: uint16(31240), + 82: uint16(31241), + 83: uint16(31242), + 84: uint16(31244), + 85: uint16(31247), + 86: uint16(31248), + 87: uint16(31249), + 88: uint16(31250), + 89: uint16(31251), + 90: uint16(31253), + 91: uint16(31254), + 92: uint16(31256), + 93: uint16(31257), + 94: uint16(31259), + 95: uint16(31260), + 96: uint16(19969), + 97: uint16(30447), + 98: uint16(21486), + 99: uint16(38025), + 100: uint16(39030), + 101: uint16(40718), + 102: uint16(38189), + 103: uint16(23450), + 104: uint16(35746), + 105: uint16(20002), + 106: uint16(19996), + 107: uint16(20908), + 108: uint16(33891), + 109: uint16(25026), + 110: uint16(21160), + 111: uint16(26635), + 112: uint16(20375), + 113: uint16(24683), + 114: uint16(20923), + 115: uint16(27934), + 116: uint16(20828), + 117: uint16(25238), + 118: uint16(26007), + 119: uint16(38497), + 120: uint16(35910), + 121: uint16(36887), + 122: uint16(30168), + 123: uint16(37117), + 124: uint16(30563), + 125: uint16(27602), + 126: uint16(29322), + 127: uint16(29420), + 128: uint16(35835), + 129: uint16(22581), + 130: uint16(30585), + 131: uint16(36172), + 132: uint16(26460), + 133: uint16(38208), + 134: uint16(32922), + 135: uint16(24230), + 136: uint16(28193), + 137: uint16(22930), + 138: uint16(31471), + 139: uint16(30701), + 140: uint16(38203), + 141: uint16(27573), + 142: uint16(26029), + 143: uint16(32526), + 144: uint16(22534), + 145: uint16(20817), + 146: uint16(38431), + 147: uint16(23545), + 148: uint16(22697), + 149: uint16(21544), + 150: uint16(36466), + 151: uint16(25958), + 152: uint16(39039), + 153: uint16(22244), + 154: uint16(38045), + 155: uint16(30462), + 156: uint16(36929), + 157: uint16(25479), + 158: uint16(21702), + 159: uint16(22810), + 160: uint16(22842), + 161: uint16(22427), + 162: uint16(36530), + 163: uint16(26421), + 164: uint16(36346), + 165: uint16(33333), + 166: uint16(21057), + 167: uint16(24816), + 168: uint16(22549), + 169: uint16(34558), + 170: uint16(23784), + 171: uint16(40517), + 172: uint16(20420), + 173: uint16(39069), + 174: uint16(35769), + 175: uint16(23077), + 176: uint16(24694), + 177: uint16(21380), + 178: uint16(25212), + 179: uint16(36943), + 180: uint16(37122), + 181: uint16(39295), + 182: uint16(24681), + 183: uint16(32780), + 184: uint16(20799), + 185: uint16(32819), + 186: uint16(23572), + 187: uint16(39285), + 188: uint16(27953), + 189: uint16(20108), + }, + 54: { + 0: uint16(31261), + 1: uint16(31263), + 2: uint16(31265), + 3: uint16(31266), + 4: uint16(31268), + 5: uint16(31269), + 6: uint16(31270), + 7: uint16(31271), + 8: uint16(31272), + 9: uint16(31273), + 10: uint16(31274), + 11: uint16(31275), + 12: uint16(31276), + 13: uint16(31277), + 14: uint16(31278), + 15: uint16(31279), + 16: uint16(31280), + 17: uint16(31281), + 18: uint16(31282), + 19: uint16(31284), + 20: uint16(31285), + 21: uint16(31286), + 22: uint16(31288), + 23: uint16(31290), + 24: uint16(31294), + 25: uint16(31296), + 26: uint16(31297), + 27: uint16(31298), + 28: uint16(31299), + 29: uint16(31300), + 30: uint16(31301), + 31: uint16(31303), + 32: uint16(31304), + 33: uint16(31305), + 34: uint16(31306), + 35: uint16(31307), + 36: uint16(31308), + 37: uint16(31309), + 38: uint16(31310), + 39: uint16(31311), + 40: uint16(31312), + 41: uint16(31314), + 42: uint16(31315), + 43: uint16(31316), + 44: uint16(31317), + 45: uint16(31318), + 46: uint16(31320), + 47: uint16(31321), + 48: uint16(31322), + 49: uint16(31323), + 50: uint16(31324), + 51: uint16(31325), + 52: uint16(31326), + 53: uint16(31327), + 54: uint16(31328), + 55: uint16(31329), + 56: uint16(31330), + 57: uint16(31331), + 58: uint16(31332), + 59: uint16(31333), + 60: uint16(31334), + 61: uint16(31335), + 62: uint16(31336), + 63: uint16(31337), + 64: uint16(31338), + 65: uint16(31339), + 66: uint16(31340), + 67: uint16(31341), + 68: uint16(31342), + 69: uint16(31343), + 70: uint16(31345), + 71: uint16(31346), + 72: uint16(31347), + 73: uint16(31349), + 74: uint16(31355), + 75: uint16(31356), + 76: uint16(31357), + 77: uint16(31358), + 78: uint16(31362), + 79: uint16(31365), + 80: uint16(31367), + 81: uint16(31369), + 82: uint16(31370), + 83: uint16(31371), + 84: uint16(31372), + 85: uint16(31374), + 86: uint16(31375), + 87: uint16(31376), + 88: uint16(31379), + 89: uint16(31380), + 90: uint16(31385), + 91: uint16(31386), + 92: uint16(31387), + 93: uint16(31390), + 94: uint16(31393), + 95: uint16(31394), + 96: uint16(36144), + 97: uint16(21457), + 98: uint16(32602), + 99: uint16(31567), + 100: uint16(20240), + 101: uint16(20047), + 102: uint16(38400), + 103: uint16(27861), + 104: uint16(29648), + 105: uint16(34281), + 106: uint16(24070), + 107: uint16(30058), + 108: uint16(32763), + 109: uint16(27146), + 110: uint16(30718), + 111: uint16(38034), + 112: uint16(32321), + 113: uint16(20961), + 114: uint16(28902), + 115: uint16(21453), + 116: uint16(36820), + 117: uint16(33539), + 118: uint16(36137), + 119: uint16(29359), + 120: uint16(39277), + 121: uint16(27867), + 122: uint16(22346), + 123: uint16(33459), + 124: uint16(26041), + 125: uint16(32938), + 126: uint16(25151), + 127: uint16(38450), + 128: uint16(22952), + 129: uint16(20223), + 130: uint16(35775), + 131: uint16(32442), + 132: uint16(25918), + 133: uint16(33778), + 134: uint16(38750), + 135: uint16(21857), + 136: uint16(39134), + 137: uint16(32933), + 138: uint16(21290), + 139: uint16(35837), + 140: uint16(21536), + 141: uint16(32954), + 142: uint16(24223), + 143: uint16(27832), + 144: uint16(36153), + 145: uint16(33452), + 146: uint16(37210), + 147: uint16(21545), + 148: uint16(27675), + 149: uint16(20998), + 150: uint16(32439), + 151: uint16(22367), + 152: uint16(28954), + 153: uint16(27774), + 154: uint16(31881), + 155: uint16(22859), + 156: uint16(20221), + 157: uint16(24575), + 158: uint16(24868), + 159: uint16(31914), + 160: uint16(20016), + 161: uint16(23553), + 162: uint16(26539), + 163: uint16(34562), + 164: uint16(23792), + 165: uint16(38155), + 166: uint16(39118), + 167: uint16(30127), + 168: uint16(28925), + 169: uint16(36898), + 170: uint16(20911), + 171: uint16(32541), + 172: uint16(35773), + 173: uint16(22857), + 174: uint16(20964), + 175: uint16(20315), + 176: uint16(21542), + 177: uint16(22827), + 178: uint16(25975), + 179: uint16(32932), + 180: uint16(23413), + 181: uint16(25206), + 182: uint16(25282), + 183: uint16(36752), + 184: uint16(24133), + 185: uint16(27679), + 186: uint16(31526), + 187: uint16(20239), + 188: uint16(20440), + 189: uint16(26381), + }, + 55: { + 0: uint16(31395), + 1: uint16(31396), + 2: uint16(31399), + 3: uint16(31401), + 4: uint16(31402), + 5: uint16(31403), + 6: uint16(31406), + 7: uint16(31407), + 8: uint16(31408), + 9: uint16(31409), + 10: uint16(31410), + 11: uint16(31412), + 12: uint16(31413), + 13: uint16(31414), + 14: uint16(31415), + 15: uint16(31416), + 16: uint16(31417), + 17: uint16(31418), + 18: uint16(31419), + 19: uint16(31420), + 20: uint16(31421), + 21: uint16(31422), + 22: uint16(31424), + 23: uint16(31425), + 24: uint16(31426), + 25: uint16(31427), + 26: uint16(31428), + 27: uint16(31429), + 28: uint16(31430), + 29: uint16(31431), + 30: uint16(31432), + 31: uint16(31433), + 32: uint16(31434), + 33: uint16(31436), + 34: uint16(31437), + 35: uint16(31438), + 36: uint16(31439), + 37: uint16(31440), + 38: uint16(31441), + 39: uint16(31442), + 40: uint16(31443), + 41: uint16(31444), + 42: uint16(31445), + 43: uint16(31447), + 44: uint16(31448), + 45: uint16(31450), + 46: uint16(31451), + 47: uint16(31452), + 48: uint16(31453), + 49: uint16(31457), + 50: uint16(31458), + 51: uint16(31460), + 52: uint16(31463), + 53: uint16(31464), + 54: uint16(31465), + 55: uint16(31466), + 56: uint16(31467), + 57: uint16(31468), + 58: uint16(31470), + 59: uint16(31472), + 60: uint16(31473), + 61: uint16(31474), + 62: uint16(31475), + 63: uint16(31476), + 64: uint16(31477), + 65: uint16(31478), + 66: uint16(31479), + 67: uint16(31480), + 68: uint16(31483), + 69: uint16(31484), + 70: uint16(31486), + 71: uint16(31488), + 72: uint16(31489), + 73: uint16(31490), + 74: uint16(31493), + 75: uint16(31495), + 76: uint16(31497), + 77: uint16(31500), + 78: uint16(31501), + 79: uint16(31502), + 80: uint16(31504), + 81: uint16(31506), + 82: uint16(31507), + 83: uint16(31510), + 84: uint16(31511), + 85: uint16(31512), + 86: uint16(31514), + 87: uint16(31516), + 88: uint16(31517), + 89: uint16(31519), + 90: uint16(31521), + 91: uint16(31522), + 92: uint16(31523), + 93: uint16(31527), + 94: uint16(31529), + 95: uint16(31533), + 96: uint16(28014), + 97: uint16(28074), + 98: uint16(31119), + 99: uint16(34993), + 100: uint16(24343), + 101: uint16(29995), + 102: uint16(25242), + 103: uint16(36741), + 104: uint16(20463), + 105: uint16(37340), + 106: uint16(26023), + 107: uint16(33071), + 108: uint16(33105), + 109: uint16(24220), + 110: uint16(33104), + 111: uint16(36212), + 112: uint16(21103), + 113: uint16(35206), + 114: uint16(36171), + 115: uint16(22797), + 116: uint16(20613), + 117: uint16(20184), + 118: uint16(38428), + 119: uint16(29238), + 120: uint16(33145), + 121: uint16(36127), + 122: uint16(23500), + 123: uint16(35747), + 124: uint16(38468), + 125: uint16(22919), + 126: uint16(32538), + 127: uint16(21648), + 128: uint16(22134), + 129: uint16(22030), + 130: uint16(35813), + 131: uint16(25913), + 132: uint16(27010), + 133: uint16(38041), + 134: uint16(30422), + 135: uint16(28297), + 136: uint16(24178), + 137: uint16(29976), + 138: uint16(26438), + 139: uint16(26577), + 140: uint16(31487), + 141: uint16(32925), + 142: uint16(36214), + 143: uint16(24863), + 144: uint16(31174), + 145: uint16(25954), + 146: uint16(36195), + 147: uint16(20872), + 148: uint16(21018), + 149: uint16(38050), + 150: uint16(32568), + 151: uint16(32923), + 152: uint16(32434), + 153: uint16(23703), + 154: uint16(28207), + 155: uint16(26464), + 156: uint16(31705), + 157: uint16(30347), + 158: uint16(39640), + 159: uint16(33167), + 160: uint16(32660), + 161: uint16(31957), + 162: uint16(25630), + 163: uint16(38224), + 164: uint16(31295), + 165: uint16(21578), + 166: uint16(21733), + 167: uint16(27468), + 168: uint16(25601), + 169: uint16(25096), + 170: uint16(40509), + 171: uint16(33011), + 172: uint16(30105), + 173: uint16(21106), + 174: uint16(38761), + 175: uint16(33883), + 176: uint16(26684), + 177: uint16(34532), + 178: uint16(38401), + 179: uint16(38548), + 180: uint16(38124), + 181: uint16(20010), + 182: uint16(21508), + 183: uint16(32473), + 184: uint16(26681), + 185: uint16(36319), + 186: uint16(32789), + 187: uint16(26356), + 188: uint16(24218), + 189: uint16(32697), + }, + 56: { + 0: uint16(31535), + 1: uint16(31536), + 2: uint16(31538), + 3: uint16(31540), + 4: uint16(31541), + 5: uint16(31542), + 6: uint16(31543), + 7: uint16(31545), + 8: uint16(31547), + 9: uint16(31549), + 10: uint16(31551), + 11: uint16(31552), + 12: uint16(31553), + 13: uint16(31554), + 14: uint16(31555), + 15: uint16(31556), + 16: uint16(31558), + 17: uint16(31560), + 18: uint16(31562), + 19: uint16(31565), + 20: uint16(31566), + 21: uint16(31571), + 22: uint16(31573), + 23: uint16(31575), + 24: uint16(31577), + 25: uint16(31580), + 26: uint16(31582), + 27: uint16(31583), + 28: uint16(31585), + 29: uint16(31587), + 30: uint16(31588), + 31: uint16(31589), + 32: uint16(31590), + 33: uint16(31591), + 34: uint16(31592), + 35: uint16(31593), + 36: uint16(31594), + 37: uint16(31595), + 38: uint16(31596), + 39: uint16(31597), + 40: uint16(31599), + 41: uint16(31600), + 42: uint16(31603), + 43: uint16(31604), + 44: uint16(31606), + 45: uint16(31608), + 46: uint16(31610), + 47: uint16(31612), + 48: uint16(31613), + 49: uint16(31615), + 50: uint16(31617), + 51: uint16(31618), + 52: uint16(31619), + 53: uint16(31620), + 54: uint16(31622), + 55: uint16(31623), + 56: uint16(31624), + 57: uint16(31625), + 58: uint16(31626), + 59: uint16(31627), + 60: uint16(31628), + 61: uint16(31630), + 62: uint16(31631), + 63: uint16(31633), + 64: uint16(31634), + 65: uint16(31635), + 66: uint16(31638), + 67: uint16(31640), + 68: uint16(31641), + 69: uint16(31642), + 70: uint16(31643), + 71: uint16(31646), + 72: uint16(31647), + 73: uint16(31648), + 74: uint16(31651), + 75: uint16(31652), + 76: uint16(31653), + 77: uint16(31662), + 78: uint16(31663), + 79: uint16(31664), + 80: uint16(31666), + 81: uint16(31667), + 82: uint16(31669), + 83: uint16(31670), + 84: uint16(31671), + 85: uint16(31673), + 86: uint16(31674), + 87: uint16(31675), + 88: uint16(31676), + 89: uint16(31677), + 90: uint16(31678), + 91: uint16(31679), + 92: uint16(31680), + 93: uint16(31682), + 94: uint16(31683), + 95: uint16(31684), + 96: uint16(22466), + 97: uint16(32831), + 98: uint16(26775), + 99: uint16(24037), + 100: uint16(25915), + 101: uint16(21151), + 102: uint16(24685), + 103: uint16(40858), + 104: uint16(20379), + 105: uint16(36524), + 106: uint16(20844), + 107: uint16(23467), + 108: uint16(24339), + 109: uint16(24041), + 110: uint16(27742), + 111: uint16(25329), + 112: uint16(36129), + 113: uint16(20849), + 114: uint16(38057), + 115: uint16(21246), + 116: uint16(27807), + 117: uint16(33503), + 118: uint16(29399), + 119: uint16(22434), + 120: uint16(26500), + 121: uint16(36141), + 122: uint16(22815), + 123: uint16(36764), + 124: uint16(33735), + 125: uint16(21653), + 126: uint16(31629), + 127: uint16(20272), + 128: uint16(27837), + 129: uint16(23396), + 130: uint16(22993), + 131: uint16(40723), + 132: uint16(21476), + 133: uint16(34506), + 134: uint16(39592), + 135: uint16(35895), + 136: uint16(32929), + 137: uint16(25925), + 138: uint16(39038), + 139: uint16(22266), + 140: uint16(38599), + 141: uint16(21038), + 142: uint16(29916), + 143: uint16(21072), + 144: uint16(23521), + 145: uint16(25346), + 146: uint16(35074), + 147: uint16(20054), + 148: uint16(25296), + 149: uint16(24618), + 150: uint16(26874), + 151: uint16(20851), + 152: uint16(23448), + 153: uint16(20896), + 154: uint16(35266), + 155: uint16(31649), + 156: uint16(39302), + 157: uint16(32592), + 158: uint16(24815), + 159: uint16(28748), + 160: uint16(36143), + 161: uint16(20809), + 162: uint16(24191), + 163: uint16(36891), + 164: uint16(29808), + 165: uint16(35268), + 166: uint16(22317), + 167: uint16(30789), + 168: uint16(24402), + 169: uint16(40863), + 170: uint16(38394), + 171: uint16(36712), + 172: uint16(39740), + 173: uint16(35809), + 174: uint16(30328), + 175: uint16(26690), + 176: uint16(26588), + 177: uint16(36330), + 178: uint16(36149), + 179: uint16(21053), + 180: uint16(36746), + 181: uint16(28378), + 182: uint16(26829), + 183: uint16(38149), + 184: uint16(37101), + 185: uint16(22269), + 186: uint16(26524), + 187: uint16(35065), + 188: uint16(36807), + 189: uint16(21704), + }, + 57: { + 0: uint16(31685), + 1: uint16(31688), + 2: uint16(31689), + 3: uint16(31690), + 4: uint16(31691), + 5: uint16(31693), + 6: uint16(31694), + 7: uint16(31695), + 8: uint16(31696), + 9: uint16(31698), + 10: uint16(31700), + 11: uint16(31701), + 12: uint16(31702), + 13: uint16(31703), + 14: uint16(31704), + 15: uint16(31707), + 16: uint16(31708), + 17: uint16(31710), + 18: uint16(31711), + 19: uint16(31712), + 20: uint16(31714), + 21: uint16(31715), + 22: uint16(31716), + 23: uint16(31719), + 24: uint16(31720), + 25: uint16(31721), + 26: uint16(31723), + 27: uint16(31724), + 28: uint16(31725), + 29: uint16(31727), + 30: uint16(31728), + 31: uint16(31730), + 32: uint16(31731), + 33: uint16(31732), + 34: uint16(31733), + 35: uint16(31734), + 36: uint16(31736), + 37: uint16(31737), + 38: uint16(31738), + 39: uint16(31739), + 40: uint16(31741), + 41: uint16(31743), + 42: uint16(31744), + 43: uint16(31745), + 44: uint16(31746), + 45: uint16(31747), + 46: uint16(31748), + 47: uint16(31749), + 48: uint16(31750), + 49: uint16(31752), + 50: uint16(31753), + 51: uint16(31754), + 52: uint16(31757), + 53: uint16(31758), + 54: uint16(31760), + 55: uint16(31761), + 56: uint16(31762), + 57: uint16(31763), + 58: uint16(31764), + 59: uint16(31765), + 60: uint16(31767), + 61: uint16(31768), + 62: uint16(31769), + 63: uint16(31770), + 64: uint16(31771), + 65: uint16(31772), + 66: uint16(31773), + 67: uint16(31774), + 68: uint16(31776), + 69: uint16(31777), + 70: uint16(31778), + 71: uint16(31779), + 72: uint16(31780), + 73: uint16(31781), + 74: uint16(31784), + 75: uint16(31785), + 76: uint16(31787), + 77: uint16(31788), + 78: uint16(31789), + 79: uint16(31790), + 80: uint16(31791), + 81: uint16(31792), + 82: uint16(31793), + 83: uint16(31794), + 84: uint16(31795), + 85: uint16(31796), + 86: uint16(31797), + 87: uint16(31798), + 88: uint16(31799), + 89: uint16(31801), + 90: uint16(31802), + 91: uint16(31803), + 92: uint16(31804), + 93: uint16(31805), + 94: uint16(31806), + 95: uint16(31810), + 96: uint16(39608), + 97: uint16(23401), + 98: uint16(28023), + 99: uint16(27686), + 100: uint16(20133), + 101: uint16(23475), + 102: uint16(39559), + 103: uint16(37219), + 104: uint16(25000), + 105: uint16(37039), + 106: uint16(38889), + 107: uint16(21547), + 108: uint16(28085), + 109: uint16(23506), + 110: uint16(20989), + 111: uint16(21898), + 112: uint16(32597), + 113: uint16(32752), + 114: uint16(25788), + 115: uint16(25421), + 116: uint16(26097), + 117: uint16(25022), + 118: uint16(24717), + 119: uint16(28938), + 120: uint16(27735), + 121: uint16(27721), + 122: uint16(22831), + 123: uint16(26477), + 124: uint16(33322), + 125: uint16(22741), + 126: uint16(22158), + 127: uint16(35946), + 128: uint16(27627), + 129: uint16(37085), + 130: uint16(22909), + 131: uint16(32791), + 132: uint16(21495), + 133: uint16(28009), + 134: uint16(21621), + 135: uint16(21917), + 136: uint16(33655), + 137: uint16(33743), + 138: uint16(26680), + 139: uint16(31166), + 140: uint16(21644), + 141: uint16(20309), + 142: uint16(21512), + 143: uint16(30418), + 144: uint16(35977), + 145: uint16(38402), + 146: uint16(27827), + 147: uint16(28088), + 148: uint16(36203), + 149: uint16(35088), + 150: uint16(40548), + 151: uint16(36154), + 152: uint16(22079), + 153: uint16(40657), + 154: uint16(30165), + 155: uint16(24456), + 156: uint16(29408), + 157: uint16(24680), + 158: uint16(21756), + 159: uint16(20136), + 160: uint16(27178), + 161: uint16(34913), + 162: uint16(24658), + 163: uint16(36720), + 164: uint16(21700), + 165: uint16(28888), + 166: uint16(34425), + 167: uint16(40511), + 168: uint16(27946), + 169: uint16(23439), + 170: uint16(24344), + 171: uint16(32418), + 172: uint16(21897), + 173: uint16(20399), + 174: uint16(29492), + 175: uint16(21564), + 176: uint16(21402), + 177: uint16(20505), + 178: uint16(21518), + 179: uint16(21628), + 180: uint16(20046), + 181: uint16(24573), + 182: uint16(29786), + 183: uint16(22774), + 184: uint16(33899), + 185: uint16(32993), + 186: uint16(34676), + 187: uint16(29392), + 188: uint16(31946), + 189: uint16(28246), + }, + 58: { + 0: uint16(31811), + 1: uint16(31812), + 2: uint16(31813), + 3: uint16(31814), + 4: uint16(31815), + 5: uint16(31816), + 6: uint16(31817), + 7: uint16(31818), + 8: uint16(31819), + 9: uint16(31820), + 10: uint16(31822), + 11: uint16(31823), + 12: uint16(31824), + 13: uint16(31825), + 14: uint16(31826), + 15: uint16(31827), + 16: uint16(31828), + 17: uint16(31829), + 18: uint16(31830), + 19: uint16(31831), + 20: uint16(31832), + 21: uint16(31833), + 22: uint16(31834), + 23: uint16(31835), + 24: uint16(31836), + 25: uint16(31837), + 26: uint16(31838), + 27: uint16(31839), + 28: uint16(31840), + 29: uint16(31841), + 30: uint16(31842), + 31: uint16(31843), + 32: uint16(31844), + 33: uint16(31845), + 34: uint16(31846), + 35: uint16(31847), + 36: uint16(31848), + 37: uint16(31849), + 38: uint16(31850), + 39: uint16(31851), + 40: uint16(31852), + 41: uint16(31853), + 42: uint16(31854), + 43: uint16(31855), + 44: uint16(31856), + 45: uint16(31857), + 46: uint16(31858), + 47: uint16(31861), + 48: uint16(31862), + 49: uint16(31863), + 50: uint16(31864), + 51: uint16(31865), + 52: uint16(31866), + 53: uint16(31870), + 54: uint16(31871), + 55: uint16(31872), + 56: uint16(31873), + 57: uint16(31874), + 58: uint16(31875), + 59: uint16(31876), + 60: uint16(31877), + 61: uint16(31878), + 62: uint16(31879), + 63: uint16(31880), + 64: uint16(31882), + 65: uint16(31883), + 66: uint16(31884), + 67: uint16(31885), + 68: uint16(31886), + 69: uint16(31887), + 70: uint16(31888), + 71: uint16(31891), + 72: uint16(31892), + 73: uint16(31894), + 74: uint16(31897), + 75: uint16(31898), + 76: uint16(31899), + 77: uint16(31904), + 78: uint16(31905), + 79: uint16(31907), + 80: uint16(31910), + 81: uint16(31911), + 82: uint16(31912), + 83: uint16(31913), + 84: uint16(31915), + 85: uint16(31916), + 86: uint16(31917), + 87: uint16(31919), + 88: uint16(31920), + 89: uint16(31924), + 90: uint16(31925), + 91: uint16(31926), + 92: uint16(31927), + 93: uint16(31928), + 94: uint16(31930), + 95: uint16(31931), + 96: uint16(24359), + 97: uint16(34382), + 98: uint16(21804), + 99: uint16(25252), + 100: uint16(20114), + 101: uint16(27818), + 102: uint16(25143), + 103: uint16(33457), + 104: uint16(21719), + 105: uint16(21326), + 106: uint16(29502), + 107: uint16(28369), + 108: uint16(30011), + 109: uint16(21010), + 110: uint16(21270), + 111: uint16(35805), + 112: uint16(27088), + 113: uint16(24458), + 114: uint16(24576), + 115: uint16(28142), + 116: uint16(22351), + 117: uint16(27426), + 118: uint16(29615), + 119: uint16(26707), + 120: uint16(36824), + 121: uint16(32531), + 122: uint16(25442), + 123: uint16(24739), + 124: uint16(21796), + 125: uint16(30186), + 126: uint16(35938), + 127: uint16(28949), + 128: uint16(28067), + 129: uint16(23462), + 130: uint16(24187), + 131: uint16(33618), + 132: uint16(24908), + 133: uint16(40644), + 134: uint16(30970), + 135: uint16(34647), + 136: uint16(31783), + 137: uint16(30343), + 138: uint16(20976), + 139: uint16(24822), + 140: uint16(29004), + 141: uint16(26179), + 142: uint16(24140), + 143: uint16(24653), + 144: uint16(35854), + 145: uint16(28784), + 146: uint16(25381), + 147: uint16(36745), + 148: uint16(24509), + 149: uint16(24674), + 150: uint16(34516), + 151: uint16(22238), + 152: uint16(27585), + 153: uint16(24724), + 154: uint16(24935), + 155: uint16(21321), + 156: uint16(24800), + 157: uint16(26214), + 158: uint16(36159), + 159: uint16(31229), + 160: uint16(20250), + 161: uint16(28905), + 162: uint16(27719), + 163: uint16(35763), + 164: uint16(35826), + 165: uint16(32472), + 166: uint16(33636), + 167: uint16(26127), + 168: uint16(23130), + 169: uint16(39746), + 170: uint16(27985), + 171: uint16(28151), + 172: uint16(35905), + 173: uint16(27963), + 174: uint16(20249), + 175: uint16(28779), + 176: uint16(33719), + 177: uint16(25110), + 178: uint16(24785), + 179: uint16(38669), + 180: uint16(36135), + 181: uint16(31096), + 182: uint16(20987), + 183: uint16(22334), + 184: uint16(22522), + 185: uint16(26426), + 186: uint16(30072), + 187: uint16(31293), + 188: uint16(31215), + 189: uint16(31637), + }, + 59: { + 0: uint16(31935), + 1: uint16(31936), + 2: uint16(31938), + 3: uint16(31939), + 4: uint16(31940), + 5: uint16(31942), + 6: uint16(31945), + 7: uint16(31947), + 8: uint16(31950), + 9: uint16(31951), + 10: uint16(31952), + 11: uint16(31953), + 12: uint16(31954), + 13: uint16(31955), + 14: uint16(31956), + 15: uint16(31960), + 16: uint16(31962), + 17: uint16(31963), + 18: uint16(31965), + 19: uint16(31966), + 20: uint16(31969), + 21: uint16(31970), + 22: uint16(31971), + 23: uint16(31972), + 24: uint16(31973), + 25: uint16(31974), + 26: uint16(31975), + 27: uint16(31977), + 28: uint16(31978), + 29: uint16(31979), + 30: uint16(31980), + 31: uint16(31981), + 32: uint16(31982), + 33: uint16(31984), + 34: uint16(31985), + 35: uint16(31986), + 36: uint16(31987), + 37: uint16(31988), + 38: uint16(31989), + 39: uint16(31990), + 40: uint16(31991), + 41: uint16(31993), + 42: uint16(31994), + 43: uint16(31996), + 44: uint16(31997), + 45: uint16(31998), + 46: uint16(31999), + 47: uint16(32000), + 48: uint16(32001), + 49: uint16(32002), + 50: uint16(32003), + 51: uint16(32004), + 52: uint16(32005), + 53: uint16(32006), + 54: uint16(32007), + 55: uint16(32008), + 56: uint16(32009), + 57: uint16(32011), + 58: uint16(32012), + 59: uint16(32013), + 60: uint16(32014), + 61: uint16(32015), + 62: uint16(32016), + 63: uint16(32017), + 64: uint16(32018), + 65: uint16(32019), + 66: uint16(32020), + 67: uint16(32021), + 68: uint16(32022), + 69: uint16(32023), + 70: uint16(32024), + 71: uint16(32025), + 72: uint16(32026), + 73: uint16(32027), + 74: uint16(32028), + 75: uint16(32029), + 76: uint16(32030), + 77: uint16(32031), + 78: uint16(32033), + 79: uint16(32035), + 80: uint16(32036), + 81: uint16(32037), + 82: uint16(32038), + 83: uint16(32040), + 84: uint16(32041), + 85: uint16(32042), + 86: uint16(32044), + 87: uint16(32045), + 88: uint16(32046), + 89: uint16(32048), + 90: uint16(32049), + 91: uint16(32050), + 92: uint16(32051), + 93: uint16(32052), + 94: uint16(32053), + 95: uint16(32054), + 96: uint16(32908), + 97: uint16(39269), + 98: uint16(36857), + 99: uint16(28608), + 100: uint16(35749), + 101: uint16(40481), + 102: uint16(23020), + 103: uint16(32489), + 104: uint16(32521), + 105: uint16(21513), + 106: uint16(26497), + 107: uint16(26840), + 108: uint16(36753), + 109: uint16(31821), + 110: uint16(38598), + 111: uint16(21450), + 112: uint16(24613), + 113: uint16(30142), + 114: uint16(27762), + 115: uint16(21363), + 116: uint16(23241), + 117: uint16(32423), + 118: uint16(25380), + 119: uint16(20960), + 120: uint16(33034), + 121: uint16(24049), + 122: uint16(34015), + 123: uint16(25216), + 124: uint16(20864), + 125: uint16(23395), + 126: uint16(20238), + 127: uint16(31085), + 128: uint16(21058), + 129: uint16(24760), + 130: uint16(27982), + 131: uint16(23492), + 132: uint16(23490), + 133: uint16(35745), + 134: uint16(35760), + 135: uint16(26082), + 136: uint16(24524), + 137: uint16(38469), + 138: uint16(22931), + 139: uint16(32487), + 140: uint16(32426), + 141: uint16(22025), + 142: uint16(26551), + 143: uint16(22841), + 144: uint16(20339), + 145: uint16(23478), + 146: uint16(21152), + 147: uint16(33626), + 148: uint16(39050), + 149: uint16(36158), + 150: uint16(30002), + 151: uint16(38078), + 152: uint16(20551), + 153: uint16(31292), + 154: uint16(20215), + 155: uint16(26550), + 156: uint16(39550), + 157: uint16(23233), + 158: uint16(27516), + 159: uint16(30417), + 160: uint16(22362), + 161: uint16(23574), + 162: uint16(31546), + 163: uint16(38388), + 164: uint16(29006), + 165: uint16(20860), + 166: uint16(32937), + 167: uint16(33392), + 168: uint16(22904), + 169: uint16(32516), + 170: uint16(33575), + 171: uint16(26816), + 172: uint16(26604), + 173: uint16(30897), + 174: uint16(30839), + 175: uint16(25315), + 176: uint16(25441), + 177: uint16(31616), + 178: uint16(20461), + 179: uint16(21098), + 180: uint16(20943), + 181: uint16(33616), + 182: uint16(27099), + 183: uint16(37492), + 184: uint16(36341), + 185: uint16(36145), + 186: uint16(35265), + 187: uint16(38190), + 188: uint16(31661), + 189: uint16(20214), + }, + 60: { + 0: uint16(32055), + 1: uint16(32056), + 2: uint16(32057), + 3: uint16(32058), + 4: uint16(32059), + 5: uint16(32060), + 6: uint16(32061), + 7: uint16(32062), + 8: uint16(32063), + 9: uint16(32064), + 10: uint16(32065), + 11: uint16(32066), + 12: uint16(32067), + 13: uint16(32068), + 14: uint16(32069), + 15: uint16(32070), + 16: uint16(32071), + 17: uint16(32072), + 18: uint16(32073), + 19: uint16(32074), + 20: uint16(32075), + 21: uint16(32076), + 22: uint16(32077), + 23: uint16(32078), + 24: uint16(32079), + 25: uint16(32080), + 26: uint16(32081), + 27: uint16(32082), + 28: uint16(32083), + 29: uint16(32084), + 30: uint16(32085), + 31: uint16(32086), + 32: uint16(32087), + 33: uint16(32088), + 34: uint16(32089), + 35: uint16(32090), + 36: uint16(32091), + 37: uint16(32092), + 38: uint16(32093), + 39: uint16(32094), + 40: uint16(32095), + 41: uint16(32096), + 42: uint16(32097), + 43: uint16(32098), + 44: uint16(32099), + 45: uint16(32100), + 46: uint16(32101), + 47: uint16(32102), + 48: uint16(32103), + 49: uint16(32104), + 50: uint16(32105), + 51: uint16(32106), + 52: uint16(32107), + 53: uint16(32108), + 54: uint16(32109), + 55: uint16(32111), + 56: uint16(32112), + 57: uint16(32113), + 58: uint16(32114), + 59: uint16(32115), + 60: uint16(32116), + 61: uint16(32117), + 62: uint16(32118), + 63: uint16(32120), + 64: uint16(32121), + 65: uint16(32122), + 66: uint16(32123), + 67: uint16(32124), + 68: uint16(32125), + 69: uint16(32126), + 70: uint16(32127), + 71: uint16(32128), + 72: uint16(32129), + 73: uint16(32130), + 74: uint16(32131), + 75: uint16(32132), + 76: uint16(32133), + 77: uint16(32134), + 78: uint16(32135), + 79: uint16(32136), + 80: uint16(32137), + 81: uint16(32138), + 82: uint16(32139), + 83: uint16(32140), + 84: uint16(32141), + 85: uint16(32142), + 86: uint16(32143), + 87: uint16(32144), + 88: uint16(32145), + 89: uint16(32146), + 90: uint16(32147), + 91: uint16(32148), + 92: uint16(32149), + 93: uint16(32150), + 94: uint16(32151), + 95: uint16(32152), + 96: uint16(20581), + 97: uint16(33328), + 98: uint16(21073), + 99: uint16(39279), + 100: uint16(28176), + 101: uint16(28293), + 102: uint16(28071), + 103: uint16(24314), + 104: uint16(20725), + 105: uint16(23004), + 106: uint16(23558), + 107: uint16(27974), + 108: uint16(27743), + 109: uint16(30086), + 110: uint16(33931), + 111: uint16(26728), + 112: uint16(22870), + 113: uint16(35762), + 114: uint16(21280), + 115: uint16(37233), + 116: uint16(38477), + 117: uint16(34121), + 118: uint16(26898), + 119: uint16(30977), + 120: uint16(28966), + 121: uint16(33014), + 122: uint16(20132), + 123: uint16(37066), + 124: uint16(27975), + 125: uint16(39556), + 126: uint16(23047), + 127: uint16(22204), + 128: uint16(25605), + 129: uint16(38128), + 130: uint16(30699), + 131: uint16(20389), + 132: uint16(33050), + 133: uint16(29409), + 134: uint16(35282), + 135: uint16(39290), + 136: uint16(32564), + 137: uint16(32478), + 138: uint16(21119), + 139: uint16(25945), + 140: uint16(37237), + 141: uint16(36735), + 142: uint16(36739), + 143: uint16(21483), + 144: uint16(31382), + 145: uint16(25581), + 146: uint16(25509), + 147: uint16(30342), + 148: uint16(31224), + 149: uint16(34903), + 150: uint16(38454), + 151: uint16(25130), + 152: uint16(21163), + 153: uint16(33410), + 154: uint16(26708), + 155: uint16(26480), + 156: uint16(25463), + 157: uint16(30571), + 158: uint16(31469), + 159: uint16(27905), + 160: uint16(32467), + 161: uint16(35299), + 162: uint16(22992), + 163: uint16(25106), + 164: uint16(34249), + 165: uint16(33445), + 166: uint16(30028), + 167: uint16(20511), + 168: uint16(20171), + 169: uint16(30117), + 170: uint16(35819), + 171: uint16(23626), + 172: uint16(24062), + 173: uint16(31563), + 174: uint16(26020), + 175: uint16(37329), + 176: uint16(20170), + 177: uint16(27941), + 178: uint16(35167), + 179: uint16(32039), + 180: uint16(38182), + 181: uint16(20165), + 182: uint16(35880), + 183: uint16(36827), + 184: uint16(38771), + 185: uint16(26187), + 186: uint16(31105), + 187: uint16(36817), + 188: uint16(28908), + 189: uint16(28024), + }, + 61: { + 0: uint16(32153), + 1: uint16(32154), + 2: uint16(32155), + 3: uint16(32156), + 4: uint16(32157), + 5: uint16(32158), + 6: uint16(32159), + 7: uint16(32160), + 8: uint16(32161), + 9: uint16(32162), + 10: uint16(32163), + 11: uint16(32164), + 12: uint16(32165), + 13: uint16(32167), + 14: uint16(32168), + 15: uint16(32169), + 16: uint16(32170), + 17: uint16(32171), + 18: uint16(32172), + 19: uint16(32173), + 20: uint16(32175), + 21: uint16(32176), + 22: uint16(32177), + 23: uint16(32178), + 24: uint16(32179), + 25: uint16(32180), + 26: uint16(32181), + 27: uint16(32182), + 28: uint16(32183), + 29: uint16(32184), + 30: uint16(32185), + 31: uint16(32186), + 32: uint16(32187), + 33: uint16(32188), + 34: uint16(32189), + 35: uint16(32190), + 36: uint16(32191), + 37: uint16(32192), + 38: uint16(32193), + 39: uint16(32194), + 40: uint16(32195), + 41: uint16(32196), + 42: uint16(32197), + 43: uint16(32198), + 44: uint16(32199), + 45: uint16(32200), + 46: uint16(32201), + 47: uint16(32202), + 48: uint16(32203), + 49: uint16(32204), + 50: uint16(32205), + 51: uint16(32206), + 52: uint16(32207), + 53: uint16(32208), + 54: uint16(32209), + 55: uint16(32210), + 56: uint16(32211), + 57: uint16(32212), + 58: uint16(32213), + 59: uint16(32214), + 60: uint16(32215), + 61: uint16(32216), + 62: uint16(32217), + 63: uint16(32218), + 64: uint16(32219), + 65: uint16(32220), + 66: uint16(32221), + 67: uint16(32222), + 68: uint16(32223), + 69: uint16(32224), + 70: uint16(32225), + 71: uint16(32226), + 72: uint16(32227), + 73: uint16(32228), + 74: uint16(32229), + 75: uint16(32230), + 76: uint16(32231), + 77: uint16(32232), + 78: uint16(32233), + 79: uint16(32234), + 80: uint16(32235), + 81: uint16(32236), + 82: uint16(32237), + 83: uint16(32238), + 84: uint16(32239), + 85: uint16(32240), + 86: uint16(32241), + 87: uint16(32242), + 88: uint16(32243), + 89: uint16(32244), + 90: uint16(32245), + 91: uint16(32246), + 92: uint16(32247), + 93: uint16(32248), + 94: uint16(32249), + 95: uint16(32250), + 96: uint16(23613), + 97: uint16(21170), + 98: uint16(33606), + 99: uint16(20834), + 100: uint16(33550), + 101: uint16(30555), + 102: uint16(26230), + 103: uint16(40120), + 104: uint16(20140), + 105: uint16(24778), + 106: uint16(31934), + 107: uint16(31923), + 108: uint16(32463), + 109: uint16(20117), + 110: uint16(35686), + 111: uint16(26223), + 112: uint16(39048), + 113: uint16(38745), + 114: uint16(22659), + 115: uint16(25964), + 116: uint16(38236), + 117: uint16(24452), + 118: uint16(30153), + 119: uint16(38742), + 120: uint16(31455), + 121: uint16(31454), + 122: uint16(20928), + 123: uint16(28847), + 124: uint16(31384), + 125: uint16(25578), + 126: uint16(31350), + 127: uint16(32416), + 128: uint16(29590), + 129: uint16(38893), + 130: uint16(20037), + 131: uint16(28792), + 132: uint16(20061), + 133: uint16(37202), + 134: uint16(21417), + 135: uint16(25937), + 136: uint16(26087), + 137: uint16(33276), + 138: uint16(33285), + 139: uint16(21646), + 140: uint16(23601), + 141: uint16(30106), + 142: uint16(38816), + 143: uint16(25304), + 144: uint16(29401), + 145: uint16(30141), + 146: uint16(23621), + 147: uint16(39545), + 148: uint16(33738), + 149: uint16(23616), + 150: uint16(21632), + 151: uint16(30697), + 152: uint16(20030), + 153: uint16(27822), + 154: uint16(32858), + 155: uint16(25298), + 156: uint16(25454), + 157: uint16(24040), + 158: uint16(20855), + 159: uint16(36317), + 160: uint16(36382), + 161: uint16(38191), + 162: uint16(20465), + 163: uint16(21477), + 164: uint16(24807), + 165: uint16(28844), + 166: uint16(21095), + 167: uint16(25424), + 168: uint16(40515), + 169: uint16(23071), + 170: uint16(20518), + 171: uint16(30519), + 172: uint16(21367), + 173: uint16(32482), + 174: uint16(25733), + 175: uint16(25899), + 176: uint16(25225), + 177: uint16(25496), + 178: uint16(20500), + 179: uint16(29237), + 180: uint16(35273), + 181: uint16(20915), + 182: uint16(35776), + 183: uint16(32477), + 184: uint16(22343), + 185: uint16(33740), + 186: uint16(38055), + 187: uint16(20891), + 188: uint16(21531), + 189: uint16(23803), + }, + 62: { + 0: uint16(32251), + 1: uint16(32252), + 2: uint16(32253), + 3: uint16(32254), + 4: uint16(32255), + 5: uint16(32256), + 6: uint16(32257), + 7: uint16(32258), + 8: uint16(32259), + 9: uint16(32260), + 10: uint16(32261), + 11: uint16(32262), + 12: uint16(32263), + 13: uint16(32264), + 14: uint16(32265), + 15: uint16(32266), + 16: uint16(32267), + 17: uint16(32268), + 18: uint16(32269), + 19: uint16(32270), + 20: uint16(32271), + 21: uint16(32272), + 22: uint16(32273), + 23: uint16(32274), + 24: uint16(32275), + 25: uint16(32276), + 26: uint16(32277), + 27: uint16(32278), + 28: uint16(32279), + 29: uint16(32280), + 30: uint16(32281), + 31: uint16(32282), + 32: uint16(32283), + 33: uint16(32284), + 34: uint16(32285), + 35: uint16(32286), + 36: uint16(32287), + 37: uint16(32288), + 38: uint16(32289), + 39: uint16(32290), + 40: uint16(32291), + 41: uint16(32292), + 42: uint16(32293), + 43: uint16(32294), + 44: uint16(32295), + 45: uint16(32296), + 46: uint16(32297), + 47: uint16(32298), + 48: uint16(32299), + 49: uint16(32300), + 50: uint16(32301), + 51: uint16(32302), + 52: uint16(32303), + 53: uint16(32304), + 54: uint16(32305), + 55: uint16(32306), + 56: uint16(32307), + 57: uint16(32308), + 58: uint16(32309), + 59: uint16(32310), + 60: uint16(32311), + 61: uint16(32312), + 62: uint16(32313), + 63: uint16(32314), + 64: uint16(32316), + 65: uint16(32317), + 66: uint16(32318), + 67: uint16(32319), + 68: uint16(32320), + 69: uint16(32322), + 70: uint16(32323), + 71: uint16(32324), + 72: uint16(32325), + 73: uint16(32326), + 74: uint16(32328), + 75: uint16(32329), + 76: uint16(32330), + 77: uint16(32331), + 78: uint16(32332), + 79: uint16(32333), + 80: uint16(32334), + 81: uint16(32335), + 82: uint16(32336), + 83: uint16(32337), + 84: uint16(32338), + 85: uint16(32339), + 86: uint16(32340), + 87: uint16(32341), + 88: uint16(32342), + 89: uint16(32343), + 90: uint16(32344), + 91: uint16(32345), + 92: uint16(32346), + 93: uint16(32347), + 94: uint16(32348), + 95: uint16(32349), + 96: uint16(20426), + 97: uint16(31459), + 98: uint16(27994), + 99: uint16(37089), + 100: uint16(39567), + 101: uint16(21888), + 102: uint16(21654), + 103: uint16(21345), + 104: uint16(21679), + 105: uint16(24320), + 106: uint16(25577), + 107: uint16(26999), + 108: uint16(20975), + 109: uint16(24936), + 110: uint16(21002), + 111: uint16(22570), + 112: uint16(21208), + 113: uint16(22350), + 114: uint16(30733), + 115: uint16(30475), + 116: uint16(24247), + 117: uint16(24951), + 118: uint16(31968), + 119: uint16(25179), + 120: uint16(25239), + 121: uint16(20130), + 122: uint16(28821), + 123: uint16(32771), + 124: uint16(25335), + 125: uint16(28900), + 126: uint16(38752), + 127: uint16(22391), + 128: uint16(33499), + 129: uint16(26607), + 130: uint16(26869), + 131: uint16(30933), + 132: uint16(39063), + 133: uint16(31185), + 134: uint16(22771), + 135: uint16(21683), + 136: uint16(21487), + 137: uint16(28212), + 138: uint16(20811), + 139: uint16(21051), + 140: uint16(23458), + 141: uint16(35838), + 142: uint16(32943), + 143: uint16(21827), + 144: uint16(22438), + 145: uint16(24691), + 146: uint16(22353), + 147: uint16(21549), + 148: uint16(31354), + 149: uint16(24656), + 150: uint16(23380), + 151: uint16(25511), + 152: uint16(25248), + 153: uint16(21475), + 154: uint16(25187), + 155: uint16(23495), + 156: uint16(26543), + 157: uint16(21741), + 158: uint16(31391), + 159: uint16(33510), + 160: uint16(37239), + 161: uint16(24211), + 162: uint16(35044), + 163: uint16(22840), + 164: uint16(22446), + 165: uint16(25358), + 166: uint16(36328), + 167: uint16(33007), + 168: uint16(22359), + 169: uint16(31607), + 170: uint16(20393), + 171: uint16(24555), + 172: uint16(23485), + 173: uint16(27454), + 174: uint16(21281), + 175: uint16(31568), + 176: uint16(29378), + 177: uint16(26694), + 178: uint16(30719), + 179: uint16(30518), + 180: uint16(26103), + 181: uint16(20917), + 182: uint16(20111), + 183: uint16(30420), + 184: uint16(23743), + 185: uint16(31397), + 186: uint16(33909), + 187: uint16(22862), + 188: uint16(39745), + 189: uint16(20608), + }, + 63: { + 0: uint16(32350), + 1: uint16(32351), + 2: uint16(32352), + 3: uint16(32353), + 4: uint16(32354), + 5: uint16(32355), + 6: uint16(32356), + 7: uint16(32357), + 8: uint16(32358), + 9: uint16(32359), + 10: uint16(32360), + 11: uint16(32361), + 12: uint16(32362), + 13: uint16(32363), + 14: uint16(32364), + 15: uint16(32365), + 16: uint16(32366), + 17: uint16(32367), + 18: uint16(32368), + 19: uint16(32369), + 20: uint16(32370), + 21: uint16(32371), + 22: uint16(32372), + 23: uint16(32373), + 24: uint16(32374), + 25: uint16(32375), + 26: uint16(32376), + 27: uint16(32377), + 28: uint16(32378), + 29: uint16(32379), + 30: uint16(32380), + 31: uint16(32381), + 32: uint16(32382), + 33: uint16(32383), + 34: uint16(32384), + 35: uint16(32385), + 36: uint16(32387), + 37: uint16(32388), + 38: uint16(32389), + 39: uint16(32390), + 40: uint16(32391), + 41: uint16(32392), + 42: uint16(32393), + 43: uint16(32394), + 44: uint16(32395), + 45: uint16(32396), + 46: uint16(32397), + 47: uint16(32398), + 48: uint16(32399), + 49: uint16(32400), + 50: uint16(32401), + 51: uint16(32402), + 52: uint16(32403), + 53: uint16(32404), + 54: uint16(32405), + 55: uint16(32406), + 56: uint16(32407), + 57: uint16(32408), + 58: uint16(32409), + 59: uint16(32410), + 60: uint16(32412), + 61: uint16(32413), + 62: uint16(32414), + 63: uint16(32430), + 64: uint16(32436), + 65: uint16(32443), + 66: uint16(32444), + 67: uint16(32470), + 68: uint16(32484), + 69: uint16(32492), + 70: uint16(32505), + 71: uint16(32522), + 72: uint16(32528), + 73: uint16(32542), + 74: uint16(32567), + 75: uint16(32569), + 76: uint16(32571), + 77: uint16(32572), + 78: uint16(32573), + 79: uint16(32574), + 80: uint16(32575), + 81: uint16(32576), + 82: uint16(32577), + 83: uint16(32579), + 84: uint16(32582), + 85: uint16(32583), + 86: uint16(32584), + 87: uint16(32585), + 88: uint16(32586), + 89: uint16(32587), + 90: uint16(32588), + 91: uint16(32589), + 92: uint16(32590), + 93: uint16(32591), + 94: uint16(32594), + 95: uint16(32595), + 96: uint16(39304), + 97: uint16(24871), + 98: uint16(28291), + 99: uint16(22372), + 100: uint16(26118), + 101: uint16(25414), + 102: uint16(22256), + 103: uint16(25324), + 104: uint16(25193), + 105: uint16(24275), + 106: uint16(38420), + 107: uint16(22403), + 108: uint16(25289), + 109: uint16(21895), + 110: uint16(34593), + 111: uint16(33098), + 112: uint16(36771), + 113: uint16(21862), + 114: uint16(33713), + 115: uint16(26469), + 116: uint16(36182), + 117: uint16(34013), + 118: uint16(23146), + 119: uint16(26639), + 120: uint16(25318), + 121: uint16(31726), + 122: uint16(38417), + 123: uint16(20848), + 124: uint16(28572), + 125: uint16(35888), + 126: uint16(25597), + 127: uint16(35272), + 128: uint16(25042), + 129: uint16(32518), + 130: uint16(28866), + 131: uint16(28389), + 132: uint16(29701), + 133: uint16(27028), + 134: uint16(29436), + 135: uint16(24266), + 136: uint16(37070), + 137: uint16(26391), + 138: uint16(28010), + 139: uint16(25438), + 140: uint16(21171), + 141: uint16(29282), + 142: uint16(32769), + 143: uint16(20332), + 144: uint16(23013), + 145: uint16(37226), + 146: uint16(28889), + 147: uint16(28061), + 148: uint16(21202), + 149: uint16(20048), + 150: uint16(38647), + 151: uint16(38253), + 152: uint16(34174), + 153: uint16(30922), + 154: uint16(32047), + 155: uint16(20769), + 156: uint16(22418), + 157: uint16(25794), + 158: uint16(32907), + 159: uint16(31867), + 160: uint16(27882), + 161: uint16(26865), + 162: uint16(26974), + 163: uint16(20919), + 164: uint16(21400), + 165: uint16(26792), + 166: uint16(29313), + 167: uint16(40654), + 168: uint16(31729), + 169: uint16(29432), + 170: uint16(31163), + 171: uint16(28435), + 172: uint16(29702), + 173: uint16(26446), + 174: uint16(37324), + 175: uint16(40100), + 176: uint16(31036), + 177: uint16(33673), + 178: uint16(33620), + 179: uint16(21519), + 180: uint16(26647), + 181: uint16(20029), + 182: uint16(21385), + 183: uint16(21169), + 184: uint16(30782), + 185: uint16(21382), + 186: uint16(21033), + 187: uint16(20616), + 188: uint16(20363), + 189: uint16(20432), + }, + 64: { + 0: uint16(32598), + 1: uint16(32601), + 2: uint16(32603), + 3: uint16(32604), + 4: uint16(32605), + 5: uint16(32606), + 6: uint16(32608), + 7: uint16(32611), + 8: uint16(32612), + 9: uint16(32613), + 10: uint16(32614), + 11: uint16(32615), + 12: uint16(32619), + 13: uint16(32620), + 14: uint16(32621), + 15: uint16(32623), + 16: uint16(32624), + 17: uint16(32627), + 18: uint16(32629), + 19: uint16(32630), + 20: uint16(32631), + 21: uint16(32632), + 22: uint16(32634), + 23: uint16(32635), + 24: uint16(32636), + 25: uint16(32637), + 26: uint16(32639), + 27: uint16(32640), + 28: uint16(32642), + 29: uint16(32643), + 30: uint16(32644), + 31: uint16(32645), + 32: uint16(32646), + 33: uint16(32647), + 34: uint16(32648), + 35: uint16(32649), + 36: uint16(32651), + 37: uint16(32653), + 38: uint16(32655), + 39: uint16(32656), + 40: uint16(32657), + 41: uint16(32658), + 42: uint16(32659), + 43: uint16(32661), + 44: uint16(32662), + 45: uint16(32663), + 46: uint16(32664), + 47: uint16(32665), + 48: uint16(32667), + 49: uint16(32668), + 50: uint16(32672), + 51: uint16(32674), + 52: uint16(32675), + 53: uint16(32677), + 54: uint16(32678), + 55: uint16(32680), + 56: uint16(32681), + 57: uint16(32682), + 58: uint16(32683), + 59: uint16(32684), + 60: uint16(32685), + 61: uint16(32686), + 62: uint16(32689), + 63: uint16(32691), + 64: uint16(32692), + 65: uint16(32693), + 66: uint16(32694), + 67: uint16(32695), + 68: uint16(32698), + 69: uint16(32699), + 70: uint16(32702), + 71: uint16(32704), + 72: uint16(32706), + 73: uint16(32707), + 74: uint16(32708), + 75: uint16(32710), + 76: uint16(32711), + 77: uint16(32712), + 78: uint16(32713), + 79: uint16(32715), + 80: uint16(32717), + 81: uint16(32719), + 82: uint16(32720), + 83: uint16(32721), + 84: uint16(32722), + 85: uint16(32723), + 86: uint16(32726), + 87: uint16(32727), + 88: uint16(32729), + 89: uint16(32730), + 90: uint16(32731), + 91: uint16(32732), + 92: uint16(32733), + 93: uint16(32734), + 94: uint16(32738), + 95: uint16(32739), + 96: uint16(30178), + 97: uint16(31435), + 98: uint16(31890), + 99: uint16(27813), + 100: uint16(38582), + 101: uint16(21147), + 102: uint16(29827), + 103: uint16(21737), + 104: uint16(20457), + 105: uint16(32852), + 106: uint16(33714), + 107: uint16(36830), + 108: uint16(38256), + 109: uint16(24265), + 110: uint16(24604), + 111: uint16(28063), + 112: uint16(24088), + 113: uint16(25947), + 114: uint16(33080), + 115: uint16(38142), + 116: uint16(24651), + 117: uint16(28860), + 118: uint16(32451), + 119: uint16(31918), + 120: uint16(20937), + 121: uint16(26753), + 122: uint16(31921), + 123: uint16(33391), + 124: uint16(20004), + 125: uint16(36742), + 126: uint16(37327), + 127: uint16(26238), + 128: uint16(20142), + 129: uint16(35845), + 130: uint16(25769), + 131: uint16(32842), + 132: uint16(20698), + 133: uint16(30103), + 134: uint16(29134), + 135: uint16(23525), + 136: uint16(36797), + 137: uint16(28518), + 138: uint16(20102), + 139: uint16(25730), + 140: uint16(38243), + 141: uint16(24278), + 142: uint16(26009), + 143: uint16(21015), + 144: uint16(35010), + 145: uint16(28872), + 146: uint16(21155), + 147: uint16(29454), + 148: uint16(29747), + 149: uint16(26519), + 150: uint16(30967), + 151: uint16(38678), + 152: uint16(20020), + 153: uint16(37051), + 154: uint16(40158), + 155: uint16(28107), + 156: uint16(20955), + 157: uint16(36161), + 158: uint16(21533), + 159: uint16(25294), + 160: uint16(29618), + 161: uint16(33777), + 162: uint16(38646), + 163: uint16(40836), + 164: uint16(38083), + 165: uint16(20278), + 166: uint16(32666), + 167: uint16(20940), + 168: uint16(28789), + 169: uint16(38517), + 170: uint16(23725), + 171: uint16(39046), + 172: uint16(21478), + 173: uint16(20196), + 174: uint16(28316), + 175: uint16(29705), + 176: uint16(27060), + 177: uint16(30827), + 178: uint16(39311), + 179: uint16(30041), + 180: uint16(21016), + 181: uint16(30244), + 182: uint16(27969), + 183: uint16(26611), + 184: uint16(20845), + 185: uint16(40857), + 186: uint16(32843), + 187: uint16(21657), + 188: uint16(31548), + 189: uint16(31423), + }, + 65: { + 0: uint16(32740), + 1: uint16(32743), + 2: uint16(32744), + 3: uint16(32746), + 4: uint16(32747), + 5: uint16(32748), + 6: uint16(32749), + 7: uint16(32751), + 8: uint16(32754), + 9: uint16(32756), + 10: uint16(32757), + 11: uint16(32758), + 12: uint16(32759), + 13: uint16(32760), + 14: uint16(32761), + 15: uint16(32762), + 16: uint16(32765), + 17: uint16(32766), + 18: uint16(32767), + 19: uint16(32770), + 20: uint16(32775), + 21: uint16(32776), + 22: uint16(32777), + 23: uint16(32778), + 24: uint16(32782), + 25: uint16(32783), + 26: uint16(32785), + 27: uint16(32787), + 28: uint16(32794), + 29: uint16(32795), + 30: uint16(32797), + 31: uint16(32798), + 32: uint16(32799), + 33: uint16(32801), + 34: uint16(32803), + 35: uint16(32804), + 36: uint16(32811), + 37: uint16(32812), + 38: uint16(32813), + 39: uint16(32814), + 40: uint16(32815), + 41: uint16(32816), + 42: uint16(32818), + 43: uint16(32820), + 44: uint16(32825), + 45: uint16(32826), + 46: uint16(32828), + 47: uint16(32830), + 48: uint16(32832), + 49: uint16(32833), + 50: uint16(32836), + 51: uint16(32837), + 52: uint16(32839), + 53: uint16(32840), + 54: uint16(32841), + 55: uint16(32846), + 56: uint16(32847), + 57: uint16(32848), + 58: uint16(32849), + 59: uint16(32851), + 60: uint16(32853), + 61: uint16(32854), + 62: uint16(32855), + 63: uint16(32857), + 64: uint16(32859), + 65: uint16(32860), + 66: uint16(32861), + 67: uint16(32862), + 68: uint16(32863), + 69: uint16(32864), + 70: uint16(32865), + 71: uint16(32866), + 72: uint16(32867), + 73: uint16(32868), + 74: uint16(32869), + 75: uint16(32870), + 76: uint16(32871), + 77: uint16(32872), + 78: uint16(32875), + 79: uint16(32876), + 80: uint16(32877), + 81: uint16(32878), + 82: uint16(32879), + 83: uint16(32880), + 84: uint16(32882), + 85: uint16(32883), + 86: uint16(32884), + 87: uint16(32885), + 88: uint16(32886), + 89: uint16(32887), + 90: uint16(32888), + 91: uint16(32889), + 92: uint16(32890), + 93: uint16(32891), + 94: uint16(32892), + 95: uint16(32893), + 96: uint16(38534), + 97: uint16(22404), + 98: uint16(25314), + 99: uint16(38471), + 100: uint16(27004), + 101: uint16(23044), + 102: uint16(25602), + 103: uint16(31699), + 104: uint16(28431), + 105: uint16(38475), + 106: uint16(33446), + 107: uint16(21346), + 108: uint16(39045), + 109: uint16(24208), + 110: uint16(28809), + 111: uint16(25523), + 112: uint16(21348), + 113: uint16(34383), + 114: uint16(40065), + 115: uint16(40595), + 116: uint16(30860), + 117: uint16(38706), + 118: uint16(36335), + 119: uint16(36162), + 120: uint16(40575), + 121: uint16(28510), + 122: uint16(31108), + 123: uint16(24405), + 124: uint16(38470), + 125: uint16(25134), + 126: uint16(39540), + 127: uint16(21525), + 128: uint16(38109), + 129: uint16(20387), + 130: uint16(26053), + 131: uint16(23653), + 132: uint16(23649), + 133: uint16(32533), + 134: uint16(34385), + 135: uint16(27695), + 136: uint16(24459), + 137: uint16(29575), + 138: uint16(28388), + 139: uint16(32511), + 140: uint16(23782), + 141: uint16(25371), + 142: uint16(23402), + 143: uint16(28390), + 144: uint16(21365), + 145: uint16(20081), + 146: uint16(25504), + 147: uint16(30053), + 148: uint16(25249), + 149: uint16(36718), + 150: uint16(20262), + 151: uint16(20177), + 152: uint16(27814), + 153: uint16(32438), + 154: uint16(35770), + 155: uint16(33821), + 156: uint16(34746), + 157: uint16(32599), + 158: uint16(36923), + 159: uint16(38179), + 160: uint16(31657), + 161: uint16(39585), + 162: uint16(35064), + 163: uint16(33853), + 164: uint16(27931), + 165: uint16(39558), + 166: uint16(32476), + 167: uint16(22920), + 168: uint16(40635), + 169: uint16(29595), + 170: uint16(30721), + 171: uint16(34434), + 172: uint16(39532), + 173: uint16(39554), + 174: uint16(22043), + 175: uint16(21527), + 176: uint16(22475), + 177: uint16(20080), + 178: uint16(40614), + 179: uint16(21334), + 180: uint16(36808), + 181: uint16(33033), + 182: uint16(30610), + 183: uint16(39314), + 184: uint16(34542), + 185: uint16(28385), + 186: uint16(34067), + 187: uint16(26364), + 188: uint16(24930), + 189: uint16(28459), + }, + 66: { + 0: uint16(32894), + 1: uint16(32897), + 2: uint16(32898), + 3: uint16(32901), + 4: uint16(32904), + 5: uint16(32906), + 6: uint16(32909), + 7: uint16(32910), + 8: uint16(32911), + 9: uint16(32912), + 10: uint16(32913), + 11: uint16(32914), + 12: uint16(32916), + 13: uint16(32917), + 14: uint16(32919), + 15: uint16(32921), + 16: uint16(32926), + 17: uint16(32931), + 18: uint16(32934), + 19: uint16(32935), + 20: uint16(32936), + 21: uint16(32940), + 22: uint16(32944), + 23: uint16(32947), + 24: uint16(32949), + 25: uint16(32950), + 26: uint16(32952), + 27: uint16(32953), + 28: uint16(32955), + 29: uint16(32965), + 30: uint16(32967), + 31: uint16(32968), + 32: uint16(32969), + 33: uint16(32970), + 34: uint16(32971), + 35: uint16(32975), + 36: uint16(32976), + 37: uint16(32977), + 38: uint16(32978), + 39: uint16(32979), + 40: uint16(32980), + 41: uint16(32981), + 42: uint16(32984), + 43: uint16(32991), + 44: uint16(32992), + 45: uint16(32994), + 46: uint16(32995), + 47: uint16(32998), + 48: uint16(33006), + 49: uint16(33013), + 50: uint16(33015), + 51: uint16(33017), + 52: uint16(33019), + 53: uint16(33022), + 54: uint16(33023), + 55: uint16(33024), + 56: uint16(33025), + 57: uint16(33027), + 58: uint16(33028), + 59: uint16(33029), + 60: uint16(33031), + 61: uint16(33032), + 62: uint16(33035), + 63: uint16(33036), + 64: uint16(33045), + 65: uint16(33047), + 66: uint16(33049), + 67: uint16(33051), + 68: uint16(33052), + 69: uint16(33053), + 70: uint16(33055), + 71: uint16(33056), + 72: uint16(33057), + 73: uint16(33058), + 74: uint16(33059), + 75: uint16(33060), + 76: uint16(33061), + 77: uint16(33062), + 78: uint16(33063), + 79: uint16(33064), + 80: uint16(33065), + 81: uint16(33066), + 82: uint16(33067), + 83: uint16(33069), + 84: uint16(33070), + 85: uint16(33072), + 86: uint16(33075), + 87: uint16(33076), + 88: uint16(33077), + 89: uint16(33079), + 90: uint16(33081), + 91: uint16(33082), + 92: uint16(33083), + 93: uint16(33084), + 94: uint16(33085), + 95: uint16(33087), + 96: uint16(35881), + 97: uint16(33426), + 98: uint16(33579), + 99: uint16(30450), + 100: uint16(27667), + 101: uint16(24537), + 102: uint16(33725), + 103: uint16(29483), + 104: uint16(33541), + 105: uint16(38170), + 106: uint16(27611), + 107: uint16(30683), + 108: uint16(38086), + 109: uint16(21359), + 110: uint16(33538), + 111: uint16(20882), + 112: uint16(24125), + 113: uint16(35980), + 114: uint16(36152), + 115: uint16(20040), + 116: uint16(29611), + 117: uint16(26522), + 118: uint16(26757), + 119: uint16(37238), + 120: uint16(38665), + 121: uint16(29028), + 122: uint16(27809), + 123: uint16(30473), + 124: uint16(23186), + 125: uint16(38209), + 126: uint16(27599), + 127: uint16(32654), + 128: uint16(26151), + 129: uint16(23504), + 130: uint16(22969), + 131: uint16(23194), + 132: uint16(38376), + 133: uint16(38391), + 134: uint16(20204), + 135: uint16(33804), + 136: uint16(33945), + 137: uint16(27308), + 138: uint16(30431), + 139: uint16(38192), + 140: uint16(29467), + 141: uint16(26790), + 142: uint16(23391), + 143: uint16(30511), + 144: uint16(37274), + 145: uint16(38753), + 146: uint16(31964), + 147: uint16(36855), + 148: uint16(35868), + 149: uint16(24357), + 150: uint16(31859), + 151: uint16(31192), + 152: uint16(35269), + 153: uint16(27852), + 154: uint16(34588), + 155: uint16(23494), + 156: uint16(24130), + 157: uint16(26825), + 158: uint16(30496), + 159: uint16(32501), + 160: uint16(20885), + 161: uint16(20813), + 162: uint16(21193), + 163: uint16(23081), + 164: uint16(32517), + 165: uint16(38754), + 166: uint16(33495), + 167: uint16(25551), + 168: uint16(30596), + 169: uint16(34256), + 170: uint16(31186), + 171: uint16(28218), + 172: uint16(24217), + 173: uint16(22937), + 174: uint16(34065), + 175: uint16(28781), + 176: uint16(27665), + 177: uint16(25279), + 178: uint16(30399), + 179: uint16(25935), + 180: uint16(24751), + 181: uint16(38397), + 182: uint16(26126), + 183: uint16(34719), + 184: uint16(40483), + 185: uint16(38125), + 186: uint16(21517), + 187: uint16(21629), + 188: uint16(35884), + 189: uint16(25720), + }, + 67: { + 0: uint16(33088), + 1: uint16(33089), + 2: uint16(33090), + 3: uint16(33091), + 4: uint16(33092), + 5: uint16(33093), + 6: uint16(33095), + 7: uint16(33097), + 8: uint16(33101), + 9: uint16(33102), + 10: uint16(33103), + 11: uint16(33106), + 12: uint16(33110), + 13: uint16(33111), + 14: uint16(33112), + 15: uint16(33115), + 16: uint16(33116), + 17: uint16(33117), + 18: uint16(33118), + 19: uint16(33119), + 20: uint16(33121), + 21: uint16(33122), + 22: uint16(33123), + 23: uint16(33124), + 24: uint16(33126), + 25: uint16(33128), + 26: uint16(33130), + 27: uint16(33131), + 28: uint16(33132), + 29: uint16(33135), + 30: uint16(33138), + 31: uint16(33139), + 32: uint16(33141), + 33: uint16(33142), + 34: uint16(33143), + 35: uint16(33144), + 36: uint16(33153), + 37: uint16(33155), + 38: uint16(33156), + 39: uint16(33157), + 40: uint16(33158), + 41: uint16(33159), + 42: uint16(33161), + 43: uint16(33163), + 44: uint16(33164), + 45: uint16(33165), + 46: uint16(33166), + 47: uint16(33168), + 48: uint16(33170), + 49: uint16(33171), + 50: uint16(33172), + 51: uint16(33173), + 52: uint16(33174), + 53: uint16(33175), + 54: uint16(33177), + 55: uint16(33178), + 56: uint16(33182), + 57: uint16(33183), + 58: uint16(33184), + 59: uint16(33185), + 60: uint16(33186), + 61: uint16(33188), + 62: uint16(33189), + 63: uint16(33191), + 64: uint16(33193), + 65: uint16(33195), + 66: uint16(33196), + 67: uint16(33197), + 68: uint16(33198), + 69: uint16(33199), + 70: uint16(33200), + 71: uint16(33201), + 72: uint16(33202), + 73: uint16(33204), + 74: uint16(33205), + 75: uint16(33206), + 76: uint16(33207), + 77: uint16(33208), + 78: uint16(33209), + 79: uint16(33212), + 80: uint16(33213), + 81: uint16(33214), + 82: uint16(33215), + 83: uint16(33220), + 84: uint16(33221), + 85: uint16(33223), + 86: uint16(33224), + 87: uint16(33225), + 88: uint16(33227), + 89: uint16(33229), + 90: uint16(33230), + 91: uint16(33231), + 92: uint16(33232), + 93: uint16(33233), + 94: uint16(33234), + 95: uint16(33235), + 96: uint16(25721), + 97: uint16(34321), + 98: uint16(27169), + 99: uint16(33180), + 100: uint16(30952), + 101: uint16(25705), + 102: uint16(39764), + 103: uint16(25273), + 104: uint16(26411), + 105: uint16(33707), + 106: uint16(22696), + 107: uint16(40664), + 108: uint16(27819), + 109: uint16(28448), + 110: uint16(23518), + 111: uint16(38476), + 112: uint16(35851), + 113: uint16(29279), + 114: uint16(26576), + 115: uint16(25287), + 116: uint16(29281), + 117: uint16(20137), + 118: uint16(22982), + 119: uint16(27597), + 120: uint16(22675), + 121: uint16(26286), + 122: uint16(24149), + 123: uint16(21215), + 124: uint16(24917), + 125: uint16(26408), + 126: uint16(30446), + 127: uint16(30566), + 128: uint16(29287), + 129: uint16(31302), + 130: uint16(25343), + 131: uint16(21738), + 132: uint16(21584), + 133: uint16(38048), + 134: uint16(37027), + 135: uint16(23068), + 136: uint16(32435), + 137: uint16(27670), + 138: uint16(20035), + 139: uint16(22902), + 140: uint16(32784), + 141: uint16(22856), + 142: uint16(21335), + 143: uint16(30007), + 144: uint16(38590), + 145: uint16(22218), + 146: uint16(25376), + 147: uint16(33041), + 148: uint16(24700), + 149: uint16(38393), + 150: uint16(28118), + 151: uint16(21602), + 152: uint16(39297), + 153: uint16(20869), + 154: uint16(23273), + 155: uint16(33021), + 156: uint16(22958), + 157: uint16(38675), + 158: uint16(20522), + 159: uint16(27877), + 160: uint16(23612), + 161: uint16(25311), + 162: uint16(20320), + 163: uint16(21311), + 164: uint16(33147), + 165: uint16(36870), + 166: uint16(28346), + 167: uint16(34091), + 168: uint16(25288), + 169: uint16(24180), + 170: uint16(30910), + 171: uint16(25781), + 172: uint16(25467), + 173: uint16(24565), + 174: uint16(23064), + 175: uint16(37247), + 176: uint16(40479), + 177: uint16(23615), + 178: uint16(25423), + 179: uint16(32834), + 180: uint16(23421), + 181: uint16(21870), + 182: uint16(38218), + 183: uint16(38221), + 184: uint16(28037), + 185: uint16(24744), + 186: uint16(26592), + 187: uint16(29406), + 188: uint16(20957), + 189: uint16(23425), + }, + 68: { + 0: uint16(33236), + 1: uint16(33237), + 2: uint16(33238), + 3: uint16(33239), + 4: uint16(33240), + 5: uint16(33241), + 6: uint16(33242), + 7: uint16(33243), + 8: uint16(33244), + 9: uint16(33245), + 10: uint16(33246), + 11: uint16(33247), + 12: uint16(33248), + 13: uint16(33249), + 14: uint16(33250), + 15: uint16(33252), + 16: uint16(33253), + 17: uint16(33254), + 18: uint16(33256), + 19: uint16(33257), + 20: uint16(33259), + 21: uint16(33262), + 22: uint16(33263), + 23: uint16(33264), + 24: uint16(33265), + 25: uint16(33266), + 26: uint16(33269), + 27: uint16(33270), + 28: uint16(33271), + 29: uint16(33272), + 30: uint16(33273), + 31: uint16(33274), + 32: uint16(33277), + 33: uint16(33279), + 34: uint16(33283), + 35: uint16(33287), + 36: uint16(33288), + 37: uint16(33289), + 38: uint16(33290), + 39: uint16(33291), + 40: uint16(33294), + 41: uint16(33295), + 42: uint16(33297), + 43: uint16(33299), + 44: uint16(33301), + 45: uint16(33302), + 46: uint16(33303), + 47: uint16(33304), + 48: uint16(33305), + 49: uint16(33306), + 50: uint16(33309), + 51: uint16(33312), + 52: uint16(33316), + 53: uint16(33317), + 54: uint16(33318), + 55: uint16(33319), + 56: uint16(33321), + 57: uint16(33326), + 58: uint16(33330), + 59: uint16(33338), + 60: uint16(33340), + 61: uint16(33341), + 62: uint16(33343), + 63: uint16(33344), + 64: uint16(33345), + 65: uint16(33346), + 66: uint16(33347), + 67: uint16(33349), + 68: uint16(33350), + 69: uint16(33352), + 70: uint16(33354), + 71: uint16(33356), + 72: uint16(33357), + 73: uint16(33358), + 74: uint16(33360), + 75: uint16(33361), + 76: uint16(33362), + 77: uint16(33363), + 78: uint16(33364), + 79: uint16(33365), + 80: uint16(33366), + 81: uint16(33367), + 82: uint16(33369), + 83: uint16(33371), + 84: uint16(33372), + 85: uint16(33373), + 86: uint16(33374), + 87: uint16(33376), + 88: uint16(33377), + 89: uint16(33378), + 90: uint16(33379), + 91: uint16(33380), + 92: uint16(33381), + 93: uint16(33382), + 94: uint16(33383), + 95: uint16(33385), + 96: uint16(25319), + 97: uint16(27870), + 98: uint16(29275), + 99: uint16(25197), + 100: uint16(38062), + 101: uint16(32445), + 102: uint16(33043), + 103: uint16(27987), + 104: uint16(20892), + 105: uint16(24324), + 106: uint16(22900), + 107: uint16(21162), + 108: uint16(24594), + 109: uint16(22899), + 110: uint16(26262), + 111: uint16(34384), + 112: uint16(30111), + 113: uint16(25386), + 114: uint16(25062), + 115: uint16(31983), + 116: uint16(35834), + 117: uint16(21734), + 118: uint16(27431), + 119: uint16(40485), + 120: uint16(27572), + 121: uint16(34261), + 122: uint16(21589), + 123: uint16(20598), + 124: uint16(27812), + 125: uint16(21866), + 126: uint16(36276), + 127: uint16(29228), + 128: uint16(24085), + 129: uint16(24597), + 130: uint16(29750), + 131: uint16(25293), + 132: uint16(25490), + 133: uint16(29260), + 134: uint16(24472), + 135: uint16(28227), + 136: uint16(27966), + 137: uint16(25856), + 138: uint16(28504), + 139: uint16(30424), + 140: uint16(30928), + 141: uint16(30460), + 142: uint16(30036), + 143: uint16(21028), + 144: uint16(21467), + 145: uint16(20051), + 146: uint16(24222), + 147: uint16(26049), + 148: uint16(32810), + 149: uint16(32982), + 150: uint16(25243), + 151: uint16(21638), + 152: uint16(21032), + 153: uint16(28846), + 154: uint16(34957), + 155: uint16(36305), + 156: uint16(27873), + 157: uint16(21624), + 158: uint16(32986), + 159: uint16(22521), + 160: uint16(35060), + 161: uint16(36180), + 162: uint16(38506), + 163: uint16(37197), + 164: uint16(20329), + 165: uint16(27803), + 166: uint16(21943), + 167: uint16(30406), + 168: uint16(30768), + 169: uint16(25256), + 170: uint16(28921), + 171: uint16(28558), + 172: uint16(24429), + 173: uint16(34028), + 174: uint16(26842), + 175: uint16(30844), + 176: uint16(31735), + 177: uint16(33192), + 178: uint16(26379), + 179: uint16(40527), + 180: uint16(25447), + 181: uint16(30896), + 182: uint16(22383), + 183: uint16(30738), + 184: uint16(38713), + 185: uint16(25209), + 186: uint16(25259), + 187: uint16(21128), + 188: uint16(29749), + 189: uint16(27607), + }, + 69: { + 0: uint16(33386), + 1: uint16(33387), + 2: uint16(33388), + 3: uint16(33389), + 4: uint16(33393), + 5: uint16(33397), + 6: uint16(33398), + 7: uint16(33399), + 8: uint16(33400), + 9: uint16(33403), + 10: uint16(33404), + 11: uint16(33408), + 12: uint16(33409), + 13: uint16(33411), + 14: uint16(33413), + 15: uint16(33414), + 16: uint16(33415), + 17: uint16(33417), + 18: uint16(33420), + 19: uint16(33424), + 20: uint16(33427), + 21: uint16(33428), + 22: uint16(33429), + 23: uint16(33430), + 24: uint16(33434), + 25: uint16(33435), + 26: uint16(33438), + 27: uint16(33440), + 28: uint16(33442), + 29: uint16(33443), + 30: uint16(33447), + 31: uint16(33458), + 32: uint16(33461), + 33: uint16(33462), + 34: uint16(33466), + 35: uint16(33467), + 36: uint16(33468), + 37: uint16(33471), + 38: uint16(33472), + 39: uint16(33474), + 40: uint16(33475), + 41: uint16(33477), + 42: uint16(33478), + 43: uint16(33481), + 44: uint16(33488), + 45: uint16(33494), + 46: uint16(33497), + 47: uint16(33498), + 48: uint16(33501), + 49: uint16(33506), + 50: uint16(33511), + 51: uint16(33512), + 52: uint16(33513), + 53: uint16(33514), + 54: uint16(33516), + 55: uint16(33517), + 56: uint16(33518), + 57: uint16(33520), + 58: uint16(33522), + 59: uint16(33523), + 60: uint16(33525), + 61: uint16(33526), + 62: uint16(33528), + 63: uint16(33530), + 64: uint16(33532), + 65: uint16(33533), + 66: uint16(33534), + 67: uint16(33535), + 68: uint16(33536), + 69: uint16(33546), + 70: uint16(33547), + 71: uint16(33549), + 72: uint16(33552), + 73: uint16(33554), + 74: uint16(33555), + 75: uint16(33558), + 76: uint16(33560), + 77: uint16(33561), + 78: uint16(33565), + 79: uint16(33566), + 80: uint16(33567), + 81: uint16(33568), + 82: uint16(33569), + 83: uint16(33570), + 84: uint16(33571), + 85: uint16(33572), + 86: uint16(33573), + 87: uint16(33574), + 88: uint16(33577), + 89: uint16(33578), + 90: uint16(33582), + 91: uint16(33584), + 92: uint16(33586), + 93: uint16(33591), + 94: uint16(33595), + 95: uint16(33597), + 96: uint16(21860), + 97: uint16(33086), + 98: uint16(30130), + 99: uint16(30382), + 100: uint16(21305), + 101: uint16(30174), + 102: uint16(20731), + 103: uint16(23617), + 104: uint16(35692), + 105: uint16(31687), + 106: uint16(20559), + 107: uint16(29255), + 108: uint16(39575), + 109: uint16(39128), + 110: uint16(28418), + 111: uint16(29922), + 112: uint16(31080), + 113: uint16(25735), + 114: uint16(30629), + 115: uint16(25340), + 116: uint16(39057), + 117: uint16(36139), + 118: uint16(21697), + 119: uint16(32856), + 120: uint16(20050), + 121: uint16(22378), + 122: uint16(33529), + 123: uint16(33805), + 124: uint16(24179), + 125: uint16(20973), + 126: uint16(29942), + 127: uint16(35780), + 128: uint16(23631), + 129: uint16(22369), + 130: uint16(27900), + 131: uint16(39047), + 132: uint16(23110), + 133: uint16(30772), + 134: uint16(39748), + 135: uint16(36843), + 136: uint16(31893), + 137: uint16(21078), + 138: uint16(25169), + 139: uint16(38138), + 140: uint16(20166), + 141: uint16(33670), + 142: uint16(33889), + 143: uint16(33769), + 144: uint16(33970), + 145: uint16(22484), + 146: uint16(26420), + 147: uint16(22275), + 148: uint16(26222), + 149: uint16(28006), + 150: uint16(35889), + 151: uint16(26333), + 152: uint16(28689), + 153: uint16(26399), + 154: uint16(27450), + 155: uint16(26646), + 156: uint16(25114), + 157: uint16(22971), + 158: uint16(19971), + 159: uint16(20932), + 160: uint16(28422), + 161: uint16(26578), + 162: uint16(27791), + 163: uint16(20854), + 164: uint16(26827), + 165: uint16(22855), + 166: uint16(27495), + 167: uint16(30054), + 168: uint16(23822), + 169: uint16(33040), + 170: uint16(40784), + 171: uint16(26071), + 172: uint16(31048), + 173: uint16(31041), + 174: uint16(39569), + 175: uint16(36215), + 176: uint16(23682), + 177: uint16(20062), + 178: uint16(20225), + 179: uint16(21551), + 180: uint16(22865), + 181: uint16(30732), + 182: uint16(22120), + 183: uint16(27668), + 184: uint16(36804), + 185: uint16(24323), + 186: uint16(27773), + 187: uint16(27875), + 188: uint16(35755), + 189: uint16(25488), + }, + 70: { + 0: uint16(33598), + 1: uint16(33599), + 2: uint16(33601), + 3: uint16(33602), + 4: uint16(33604), + 5: uint16(33605), + 6: uint16(33608), + 7: uint16(33610), + 8: uint16(33611), + 9: uint16(33612), + 10: uint16(33613), + 11: uint16(33614), + 12: uint16(33619), + 13: uint16(33621), + 14: uint16(33622), + 15: uint16(33623), + 16: uint16(33624), + 17: uint16(33625), + 18: uint16(33629), + 19: uint16(33634), + 20: uint16(33648), + 21: uint16(33649), + 22: uint16(33650), + 23: uint16(33651), + 24: uint16(33652), + 25: uint16(33653), + 26: uint16(33654), + 27: uint16(33657), + 28: uint16(33658), + 29: uint16(33662), + 30: uint16(33663), + 31: uint16(33664), + 32: uint16(33665), + 33: uint16(33666), + 34: uint16(33667), + 35: uint16(33668), + 36: uint16(33671), + 37: uint16(33672), + 38: uint16(33674), + 39: uint16(33675), + 40: uint16(33676), + 41: uint16(33677), + 42: uint16(33679), + 43: uint16(33680), + 44: uint16(33681), + 45: uint16(33684), + 46: uint16(33685), + 47: uint16(33686), + 48: uint16(33687), + 49: uint16(33689), + 50: uint16(33690), + 51: uint16(33693), + 52: uint16(33695), + 53: uint16(33697), + 54: uint16(33698), + 55: uint16(33699), + 56: uint16(33700), + 57: uint16(33701), + 58: uint16(33702), + 59: uint16(33703), + 60: uint16(33708), + 61: uint16(33709), + 62: uint16(33710), + 63: uint16(33711), + 64: uint16(33717), + 65: uint16(33723), + 66: uint16(33726), + 67: uint16(33727), + 68: uint16(33730), + 69: uint16(33731), + 70: uint16(33732), + 71: uint16(33734), + 72: uint16(33736), + 73: uint16(33737), + 74: uint16(33739), + 75: uint16(33741), + 76: uint16(33742), + 77: uint16(33744), + 78: uint16(33745), + 79: uint16(33746), + 80: uint16(33747), + 81: uint16(33749), + 82: uint16(33751), + 83: uint16(33753), + 84: uint16(33754), + 85: uint16(33755), + 86: uint16(33758), + 87: uint16(33762), + 88: uint16(33763), + 89: uint16(33764), + 90: uint16(33766), + 91: uint16(33767), + 92: uint16(33768), + 93: uint16(33771), + 94: uint16(33772), + 95: uint16(33773), + 96: uint16(24688), + 97: uint16(27965), + 98: uint16(29301), + 99: uint16(25190), + 100: uint16(38030), + 101: uint16(38085), + 102: uint16(21315), + 103: uint16(36801), + 104: uint16(31614), + 105: uint16(20191), + 106: uint16(35878), + 107: uint16(20094), + 108: uint16(40660), + 109: uint16(38065), + 110: uint16(38067), + 111: uint16(21069), + 112: uint16(28508), + 113: uint16(36963), + 114: uint16(27973), + 115: uint16(35892), + 116: uint16(22545), + 117: uint16(23884), + 118: uint16(27424), + 119: uint16(27465), + 120: uint16(26538), + 121: uint16(21595), + 122: uint16(33108), + 123: uint16(32652), + 124: uint16(22681), + 125: uint16(34103), + 126: uint16(24378), + 127: uint16(25250), + 128: uint16(27207), + 129: uint16(38201), + 130: uint16(25970), + 131: uint16(24708), + 132: uint16(26725), + 133: uint16(30631), + 134: uint16(20052), + 135: uint16(20392), + 136: uint16(24039), + 137: uint16(38808), + 138: uint16(25772), + 139: uint16(32728), + 140: uint16(23789), + 141: uint16(20431), + 142: uint16(31373), + 143: uint16(20999), + 144: uint16(33540), + 145: uint16(19988), + 146: uint16(24623), + 147: uint16(31363), + 148: uint16(38054), + 149: uint16(20405), + 150: uint16(20146), + 151: uint16(31206), + 152: uint16(29748), + 153: uint16(21220), + 154: uint16(33465), + 155: uint16(25810), + 156: uint16(31165), + 157: uint16(23517), + 158: uint16(27777), + 159: uint16(38738), + 160: uint16(36731), + 161: uint16(27682), + 162: uint16(20542), + 163: uint16(21375), + 164: uint16(28165), + 165: uint16(25806), + 166: uint16(26228), + 167: uint16(27696), + 168: uint16(24773), + 169: uint16(39031), + 170: uint16(35831), + 171: uint16(24198), + 172: uint16(29756), + 173: uint16(31351), + 174: uint16(31179), + 175: uint16(19992), + 176: uint16(37041), + 177: uint16(29699), + 178: uint16(27714), + 179: uint16(22234), + 180: uint16(37195), + 181: uint16(27845), + 182: uint16(36235), + 183: uint16(21306), + 184: uint16(34502), + 185: uint16(26354), + 186: uint16(36527), + 187: uint16(23624), + 188: uint16(39537), + 189: uint16(28192), + }, + 71: { + 0: uint16(33774), + 1: uint16(33775), + 2: uint16(33779), + 3: uint16(33780), + 4: uint16(33781), + 5: uint16(33782), + 6: uint16(33783), + 7: uint16(33786), + 8: uint16(33787), + 9: uint16(33788), + 10: uint16(33790), + 11: uint16(33791), + 12: uint16(33792), + 13: uint16(33794), + 14: uint16(33797), + 15: uint16(33799), + 16: uint16(33800), + 17: uint16(33801), + 18: uint16(33802), + 19: uint16(33808), + 20: uint16(33810), + 21: uint16(33811), + 22: uint16(33812), + 23: uint16(33813), + 24: uint16(33814), + 25: uint16(33815), + 26: uint16(33817), + 27: uint16(33818), + 28: uint16(33819), + 29: uint16(33822), + 30: uint16(33823), + 31: uint16(33824), + 32: uint16(33825), + 33: uint16(33826), + 34: uint16(33827), + 35: uint16(33833), + 36: uint16(33834), + 37: uint16(33835), + 38: uint16(33836), + 39: uint16(33837), + 40: uint16(33838), + 41: uint16(33839), + 42: uint16(33840), + 43: uint16(33842), + 44: uint16(33843), + 45: uint16(33844), + 46: uint16(33845), + 47: uint16(33846), + 48: uint16(33847), + 49: uint16(33849), + 50: uint16(33850), + 51: uint16(33851), + 52: uint16(33854), + 53: uint16(33855), + 54: uint16(33856), + 55: uint16(33857), + 56: uint16(33858), + 57: uint16(33859), + 58: uint16(33860), + 59: uint16(33861), + 60: uint16(33863), + 61: uint16(33864), + 62: uint16(33865), + 63: uint16(33866), + 64: uint16(33867), + 65: uint16(33868), + 66: uint16(33869), + 67: uint16(33870), + 68: uint16(33871), + 69: uint16(33872), + 70: uint16(33874), + 71: uint16(33875), + 72: uint16(33876), + 73: uint16(33877), + 74: uint16(33878), + 75: uint16(33880), + 76: uint16(33885), + 77: uint16(33886), + 78: uint16(33887), + 79: uint16(33888), + 80: uint16(33890), + 81: uint16(33892), + 82: uint16(33893), + 83: uint16(33894), + 84: uint16(33895), + 85: uint16(33896), + 86: uint16(33898), + 87: uint16(33902), + 88: uint16(33903), + 89: uint16(33904), + 90: uint16(33906), + 91: uint16(33908), + 92: uint16(33911), + 93: uint16(33913), + 94: uint16(33915), + 95: uint16(33916), + 96: uint16(21462), + 97: uint16(23094), + 98: uint16(40843), + 99: uint16(36259), + 100: uint16(21435), + 101: uint16(22280), + 102: uint16(39079), + 103: uint16(26435), + 104: uint16(37275), + 105: uint16(27849), + 106: uint16(20840), + 107: uint16(30154), + 108: uint16(25331), + 109: uint16(29356), + 110: uint16(21048), + 111: uint16(21149), + 112: uint16(32570), + 113: uint16(28820), + 114: uint16(30264), + 115: uint16(21364), + 116: uint16(40522), + 117: uint16(27063), + 118: uint16(30830), + 119: uint16(38592), + 120: uint16(35033), + 121: uint16(32676), + 122: uint16(28982), + 123: uint16(29123), + 124: uint16(20873), + 125: uint16(26579), + 126: uint16(29924), + 127: uint16(22756), + 128: uint16(25880), + 129: uint16(22199), + 130: uint16(35753), + 131: uint16(39286), + 132: uint16(25200), + 133: uint16(32469), + 134: uint16(24825), + 135: uint16(28909), + 136: uint16(22764), + 137: uint16(20161), + 138: uint16(20154), + 139: uint16(24525), + 140: uint16(38887), + 141: uint16(20219), + 142: uint16(35748), + 143: uint16(20995), + 144: uint16(22922), + 145: uint16(32427), + 146: uint16(25172), + 147: uint16(20173), + 148: uint16(26085), + 149: uint16(25102), + 150: uint16(33592), + 151: uint16(33993), + 152: uint16(33635), + 153: uint16(34701), + 154: uint16(29076), + 155: uint16(28342), + 156: uint16(23481), + 157: uint16(32466), + 158: uint16(20887), + 159: uint16(25545), + 160: uint16(26580), + 161: uint16(32905), + 162: uint16(33593), + 163: uint16(34837), + 164: uint16(20754), + 165: uint16(23418), + 166: uint16(22914), + 167: uint16(36785), + 168: uint16(20083), + 169: uint16(27741), + 170: uint16(20837), + 171: uint16(35109), + 172: uint16(36719), + 173: uint16(38446), + 174: uint16(34122), + 175: uint16(29790), + 176: uint16(38160), + 177: uint16(38384), + 178: uint16(28070), + 179: uint16(33509), + 180: uint16(24369), + 181: uint16(25746), + 182: uint16(27922), + 183: uint16(33832), + 184: uint16(33134), + 185: uint16(40131), + 186: uint16(22622), + 187: uint16(36187), + 188: uint16(19977), + 189: uint16(21441), + }, + 72: { + 0: uint16(33917), + 1: uint16(33918), + 2: uint16(33919), + 3: uint16(33920), + 4: uint16(33921), + 5: uint16(33923), + 6: uint16(33924), + 7: uint16(33925), + 8: uint16(33926), + 9: uint16(33930), + 10: uint16(33933), + 11: uint16(33935), + 12: uint16(33936), + 13: uint16(33937), + 14: uint16(33938), + 15: uint16(33939), + 16: uint16(33940), + 17: uint16(33941), + 18: uint16(33942), + 19: uint16(33944), + 20: uint16(33946), + 21: uint16(33947), + 22: uint16(33949), + 23: uint16(33950), + 24: uint16(33951), + 25: uint16(33952), + 26: uint16(33954), + 27: uint16(33955), + 28: uint16(33956), + 29: uint16(33957), + 30: uint16(33958), + 31: uint16(33959), + 32: uint16(33960), + 33: uint16(33961), + 34: uint16(33962), + 35: uint16(33963), + 36: uint16(33964), + 37: uint16(33965), + 38: uint16(33966), + 39: uint16(33968), + 40: uint16(33969), + 41: uint16(33971), + 42: uint16(33973), + 43: uint16(33974), + 44: uint16(33975), + 45: uint16(33979), + 46: uint16(33980), + 47: uint16(33982), + 48: uint16(33984), + 49: uint16(33986), + 50: uint16(33987), + 51: uint16(33989), + 52: uint16(33990), + 53: uint16(33991), + 54: uint16(33992), + 55: uint16(33995), + 56: uint16(33996), + 57: uint16(33998), + 58: uint16(33999), + 59: uint16(34002), + 60: uint16(34004), + 61: uint16(34005), + 62: uint16(34007), + 63: uint16(34008), + 64: uint16(34009), + 65: uint16(34010), + 66: uint16(34011), + 67: uint16(34012), + 68: uint16(34014), + 69: uint16(34017), + 70: uint16(34018), + 71: uint16(34020), + 72: uint16(34023), + 73: uint16(34024), + 74: uint16(34025), + 75: uint16(34026), + 76: uint16(34027), + 77: uint16(34029), + 78: uint16(34030), + 79: uint16(34031), + 80: uint16(34033), + 81: uint16(34034), + 82: uint16(34035), + 83: uint16(34036), + 84: uint16(34037), + 85: uint16(34038), + 86: uint16(34039), + 87: uint16(34040), + 88: uint16(34041), + 89: uint16(34042), + 90: uint16(34043), + 91: uint16(34045), + 92: uint16(34046), + 93: uint16(34048), + 94: uint16(34049), + 95: uint16(34050), + 96: uint16(20254), + 97: uint16(25955), + 98: uint16(26705), + 99: uint16(21971), + 100: uint16(20007), + 101: uint16(25620), + 102: uint16(39578), + 103: uint16(25195), + 104: uint16(23234), + 105: uint16(29791), + 106: uint16(33394), + 107: uint16(28073), + 108: uint16(26862), + 109: uint16(20711), + 110: uint16(33678), + 111: uint16(30722), + 112: uint16(26432), + 113: uint16(21049), + 114: uint16(27801), + 115: uint16(32433), + 116: uint16(20667), + 117: uint16(21861), + 118: uint16(29022), + 119: uint16(31579), + 120: uint16(26194), + 121: uint16(29642), + 122: uint16(33515), + 123: uint16(26441), + 124: uint16(23665), + 125: uint16(21024), + 126: uint16(29053), + 127: uint16(34923), + 128: uint16(38378), + 129: uint16(38485), + 130: uint16(25797), + 131: uint16(36193), + 132: uint16(33203), + 133: uint16(21892), + 134: uint16(27733), + 135: uint16(25159), + 136: uint16(32558), + 137: uint16(22674), + 138: uint16(20260), + 139: uint16(21830), + 140: uint16(36175), + 141: uint16(26188), + 142: uint16(19978), + 143: uint16(23578), + 144: uint16(35059), + 145: uint16(26786), + 146: uint16(25422), + 147: uint16(31245), + 148: uint16(28903), + 149: uint16(33421), + 150: uint16(21242), + 151: uint16(38902), + 152: uint16(23569), + 153: uint16(21736), + 154: uint16(37045), + 155: uint16(32461), + 156: uint16(22882), + 157: uint16(36170), + 158: uint16(34503), + 159: uint16(33292), + 160: uint16(33293), + 161: uint16(36198), + 162: uint16(25668), + 163: uint16(23556), + 164: uint16(24913), + 165: uint16(28041), + 166: uint16(31038), + 167: uint16(35774), + 168: uint16(30775), + 169: uint16(30003), + 170: uint16(21627), + 171: uint16(20280), + 172: uint16(36523), + 173: uint16(28145), + 174: uint16(23072), + 175: uint16(32453), + 176: uint16(31070), + 177: uint16(27784), + 178: uint16(23457), + 179: uint16(23158), + 180: uint16(29978), + 181: uint16(32958), + 182: uint16(24910), + 183: uint16(28183), + 184: uint16(22768), + 185: uint16(29983), + 186: uint16(29989), + 187: uint16(29298), + 188: uint16(21319), + 189: uint16(32499), + }, + 73: { + 0: uint16(34051), + 1: uint16(34052), + 2: uint16(34053), + 3: uint16(34054), + 4: uint16(34055), + 5: uint16(34056), + 6: uint16(34057), + 7: uint16(34058), + 8: uint16(34059), + 9: uint16(34061), + 10: uint16(34062), + 11: uint16(34063), + 12: uint16(34064), + 13: uint16(34066), + 14: uint16(34068), + 15: uint16(34069), + 16: uint16(34070), + 17: uint16(34072), + 18: uint16(34073), + 19: uint16(34075), + 20: uint16(34076), + 21: uint16(34077), + 22: uint16(34078), + 23: uint16(34080), + 24: uint16(34082), + 25: uint16(34083), + 26: uint16(34084), + 27: uint16(34085), + 28: uint16(34086), + 29: uint16(34087), + 30: uint16(34088), + 31: uint16(34089), + 32: uint16(34090), + 33: uint16(34093), + 34: uint16(34094), + 35: uint16(34095), + 36: uint16(34096), + 37: uint16(34097), + 38: uint16(34098), + 39: uint16(34099), + 40: uint16(34100), + 41: uint16(34101), + 42: uint16(34102), + 43: uint16(34110), + 44: uint16(34111), + 45: uint16(34112), + 46: uint16(34113), + 47: uint16(34114), + 48: uint16(34116), + 49: uint16(34117), + 50: uint16(34118), + 51: uint16(34119), + 52: uint16(34123), + 53: uint16(34124), + 54: uint16(34125), + 55: uint16(34126), + 56: uint16(34127), + 57: uint16(34128), + 58: uint16(34129), + 59: uint16(34130), + 60: uint16(34131), + 61: uint16(34132), + 62: uint16(34133), + 63: uint16(34135), + 64: uint16(34136), + 65: uint16(34138), + 66: uint16(34139), + 67: uint16(34140), + 68: uint16(34141), + 69: uint16(34143), + 70: uint16(34144), + 71: uint16(34145), + 72: uint16(34146), + 73: uint16(34147), + 74: uint16(34149), + 75: uint16(34150), + 76: uint16(34151), + 77: uint16(34153), + 78: uint16(34154), + 79: uint16(34155), + 80: uint16(34156), + 81: uint16(34157), + 82: uint16(34158), + 83: uint16(34159), + 84: uint16(34160), + 85: uint16(34161), + 86: uint16(34163), + 87: uint16(34165), + 88: uint16(34166), + 89: uint16(34167), + 90: uint16(34168), + 91: uint16(34172), + 92: uint16(34173), + 93: uint16(34175), + 94: uint16(34176), + 95: uint16(34177), + 96: uint16(30465), + 97: uint16(30427), + 98: uint16(21097), + 99: uint16(32988), + 100: uint16(22307), + 101: uint16(24072), + 102: uint16(22833), + 103: uint16(29422), + 104: uint16(26045), + 105: uint16(28287), + 106: uint16(35799), + 107: uint16(23608), + 108: uint16(34417), + 109: uint16(21313), + 110: uint16(30707), + 111: uint16(25342), + 112: uint16(26102), + 113: uint16(20160), + 114: uint16(39135), + 115: uint16(34432), + 116: uint16(23454), + 117: uint16(35782), + 118: uint16(21490), + 119: uint16(30690), + 120: uint16(20351), + 121: uint16(23630), + 122: uint16(39542), + 123: uint16(22987), + 124: uint16(24335), + 125: uint16(31034), + 126: uint16(22763), + 127: uint16(19990), + 128: uint16(26623), + 129: uint16(20107), + 130: uint16(25325), + 131: uint16(35475), + 132: uint16(36893), + 133: uint16(21183), + 134: uint16(26159), + 135: uint16(21980), + 136: uint16(22124), + 137: uint16(36866), + 138: uint16(20181), + 139: uint16(20365), + 140: uint16(37322), + 141: uint16(39280), + 142: uint16(27663), + 143: uint16(24066), + 144: uint16(24643), + 145: uint16(23460), + 146: uint16(35270), + 147: uint16(35797), + 148: uint16(25910), + 149: uint16(25163), + 150: uint16(39318), + 151: uint16(23432), + 152: uint16(23551), + 153: uint16(25480), + 154: uint16(21806), + 155: uint16(21463), + 156: uint16(30246), + 157: uint16(20861), + 158: uint16(34092), + 159: uint16(26530), + 160: uint16(26803), + 161: uint16(27530), + 162: uint16(25234), + 163: uint16(36755), + 164: uint16(21460), + 165: uint16(33298), + 166: uint16(28113), + 167: uint16(30095), + 168: uint16(20070), + 169: uint16(36174), + 170: uint16(23408), + 171: uint16(29087), + 172: uint16(34223), + 173: uint16(26257), + 174: uint16(26329), + 175: uint16(32626), + 176: uint16(34560), + 177: uint16(40653), + 178: uint16(40736), + 179: uint16(23646), + 180: uint16(26415), + 181: uint16(36848), + 182: uint16(26641), + 183: uint16(26463), + 184: uint16(25101), + 185: uint16(31446), + 186: uint16(22661), + 187: uint16(24246), + 188: uint16(25968), + 189: uint16(28465), + }, + 74: { + 0: uint16(34178), + 1: uint16(34179), + 2: uint16(34182), + 3: uint16(34184), + 4: uint16(34185), + 5: uint16(34186), + 6: uint16(34187), + 7: uint16(34188), + 8: uint16(34189), + 9: uint16(34190), + 10: uint16(34192), + 11: uint16(34193), + 12: uint16(34194), + 13: uint16(34195), + 14: uint16(34196), + 15: uint16(34197), + 16: uint16(34198), + 17: uint16(34199), + 18: uint16(34200), + 19: uint16(34201), + 20: uint16(34202), + 21: uint16(34205), + 22: uint16(34206), + 23: uint16(34207), + 24: uint16(34208), + 25: uint16(34209), + 26: uint16(34210), + 27: uint16(34211), + 28: uint16(34213), + 29: uint16(34214), + 30: uint16(34215), + 31: uint16(34217), + 32: uint16(34219), + 33: uint16(34220), + 34: uint16(34221), + 35: uint16(34225), + 36: uint16(34226), + 37: uint16(34227), + 38: uint16(34228), + 39: uint16(34229), + 40: uint16(34230), + 41: uint16(34232), + 42: uint16(34234), + 43: uint16(34235), + 44: uint16(34236), + 45: uint16(34237), + 46: uint16(34238), + 47: uint16(34239), + 48: uint16(34240), + 49: uint16(34242), + 50: uint16(34243), + 51: uint16(34244), + 52: uint16(34245), + 53: uint16(34246), + 54: uint16(34247), + 55: uint16(34248), + 56: uint16(34250), + 57: uint16(34251), + 58: uint16(34252), + 59: uint16(34253), + 60: uint16(34254), + 61: uint16(34257), + 62: uint16(34258), + 63: uint16(34260), + 64: uint16(34262), + 65: uint16(34263), + 66: uint16(34264), + 67: uint16(34265), + 68: uint16(34266), + 69: uint16(34267), + 70: uint16(34269), + 71: uint16(34270), + 72: uint16(34271), + 73: uint16(34272), + 74: uint16(34273), + 75: uint16(34274), + 76: uint16(34275), + 77: uint16(34277), + 78: uint16(34278), + 79: uint16(34279), + 80: uint16(34280), + 81: uint16(34282), + 82: uint16(34283), + 83: uint16(34284), + 84: uint16(34285), + 85: uint16(34286), + 86: uint16(34287), + 87: uint16(34288), + 88: uint16(34289), + 89: uint16(34290), + 90: uint16(34291), + 91: uint16(34292), + 92: uint16(34293), + 93: uint16(34294), + 94: uint16(34295), + 95: uint16(34296), + 96: uint16(24661), + 97: uint16(21047), + 98: uint16(32781), + 99: uint16(25684), + 100: uint16(34928), + 101: uint16(29993), + 102: uint16(24069), + 103: uint16(26643), + 104: uint16(25332), + 105: uint16(38684), + 106: uint16(21452), + 107: uint16(29245), + 108: uint16(35841), + 109: uint16(27700), + 110: uint16(30561), + 111: uint16(31246), + 112: uint16(21550), + 113: uint16(30636), + 114: uint16(39034), + 115: uint16(33308), + 116: uint16(35828), + 117: uint16(30805), + 118: uint16(26388), + 119: uint16(28865), + 120: uint16(26031), + 121: uint16(25749), + 122: uint16(22070), + 123: uint16(24605), + 124: uint16(31169), + 125: uint16(21496), + 126: uint16(19997), + 127: uint16(27515), + 128: uint16(32902), + 129: uint16(23546), + 130: uint16(21987), + 131: uint16(22235), + 132: uint16(20282), + 133: uint16(20284), + 134: uint16(39282), + 135: uint16(24051), + 136: uint16(26494), + 137: uint16(32824), + 138: uint16(24578), + 139: uint16(39042), + 140: uint16(36865), + 141: uint16(23435), + 142: uint16(35772), + 143: uint16(35829), + 144: uint16(25628), + 145: uint16(33368), + 146: uint16(25822), + 147: uint16(22013), + 148: uint16(33487), + 149: uint16(37221), + 150: uint16(20439), + 151: uint16(32032), + 152: uint16(36895), + 153: uint16(31903), + 154: uint16(20723), + 155: uint16(22609), + 156: uint16(28335), + 157: uint16(23487), + 158: uint16(35785), + 159: uint16(32899), + 160: uint16(37240), + 161: uint16(33948), + 162: uint16(31639), + 163: uint16(34429), + 164: uint16(38539), + 165: uint16(38543), + 166: uint16(32485), + 167: uint16(39635), + 168: uint16(30862), + 169: uint16(23681), + 170: uint16(31319), + 171: uint16(36930), + 172: uint16(38567), + 173: uint16(31071), + 174: uint16(23385), + 175: uint16(25439), + 176: uint16(31499), + 177: uint16(34001), + 178: uint16(26797), + 179: uint16(21766), + 180: uint16(32553), + 181: uint16(29712), + 182: uint16(32034), + 183: uint16(38145), + 184: uint16(25152), + 185: uint16(22604), + 186: uint16(20182), + 187: uint16(23427), + 188: uint16(22905), + 189: uint16(22612), + }, + 75: { + 0: uint16(34297), + 1: uint16(34298), + 2: uint16(34300), + 3: uint16(34301), + 4: uint16(34302), + 5: uint16(34304), + 6: uint16(34305), + 7: uint16(34306), + 8: uint16(34307), + 9: uint16(34308), + 10: uint16(34310), + 11: uint16(34311), + 12: uint16(34312), + 13: uint16(34313), + 14: uint16(34314), + 15: uint16(34315), + 16: uint16(34316), + 17: uint16(34317), + 18: uint16(34318), + 19: uint16(34319), + 20: uint16(34320), + 21: uint16(34322), + 22: uint16(34323), + 23: uint16(34324), + 24: uint16(34325), + 25: uint16(34327), + 26: uint16(34328), + 27: uint16(34329), + 28: uint16(34330), + 29: uint16(34331), + 30: uint16(34332), + 31: uint16(34333), + 32: uint16(34334), + 33: uint16(34335), + 34: uint16(34336), + 35: uint16(34337), + 36: uint16(34338), + 37: uint16(34339), + 38: uint16(34340), + 39: uint16(34341), + 40: uint16(34342), + 41: uint16(34344), + 42: uint16(34346), + 43: uint16(34347), + 44: uint16(34348), + 45: uint16(34349), + 46: uint16(34350), + 47: uint16(34351), + 48: uint16(34352), + 49: uint16(34353), + 50: uint16(34354), + 51: uint16(34355), + 52: uint16(34356), + 53: uint16(34357), + 54: uint16(34358), + 55: uint16(34359), + 56: uint16(34361), + 57: uint16(34362), + 58: uint16(34363), + 59: uint16(34365), + 60: uint16(34366), + 61: uint16(34367), + 62: uint16(34368), + 63: uint16(34369), + 64: uint16(34370), + 65: uint16(34371), + 66: uint16(34372), + 67: uint16(34373), + 68: uint16(34374), + 69: uint16(34375), + 70: uint16(34376), + 71: uint16(34377), + 72: uint16(34378), + 73: uint16(34379), + 74: uint16(34380), + 75: uint16(34386), + 76: uint16(34387), + 77: uint16(34389), + 78: uint16(34390), + 79: uint16(34391), + 80: uint16(34392), + 81: uint16(34393), + 82: uint16(34395), + 83: uint16(34396), + 84: uint16(34397), + 85: uint16(34399), + 86: uint16(34400), + 87: uint16(34401), + 88: uint16(34403), + 89: uint16(34404), + 90: uint16(34405), + 91: uint16(34406), + 92: uint16(34407), + 93: uint16(34408), + 94: uint16(34409), + 95: uint16(34410), + 96: uint16(29549), + 97: uint16(25374), + 98: uint16(36427), + 99: uint16(36367), + 100: uint16(32974), + 101: uint16(33492), + 102: uint16(25260), + 103: uint16(21488), + 104: uint16(27888), + 105: uint16(37214), + 106: uint16(22826), + 107: uint16(24577), + 108: uint16(27760), + 109: uint16(22349), + 110: uint16(25674), + 111: uint16(36138), + 112: uint16(30251), + 113: uint16(28393), + 114: uint16(22363), + 115: uint16(27264), + 116: uint16(30192), + 117: uint16(28525), + 118: uint16(35885), + 119: uint16(35848), + 120: uint16(22374), + 121: uint16(27631), + 122: uint16(34962), + 123: uint16(30899), + 124: uint16(25506), + 125: uint16(21497), + 126: uint16(28845), + 127: uint16(27748), + 128: uint16(22616), + 129: uint16(25642), + 130: uint16(22530), + 131: uint16(26848), + 132: uint16(33179), + 133: uint16(21776), + 134: uint16(31958), + 135: uint16(20504), + 136: uint16(36538), + 137: uint16(28108), + 138: uint16(36255), + 139: uint16(28907), + 140: uint16(25487), + 141: uint16(28059), + 142: uint16(28372), + 143: uint16(32486), + 144: uint16(33796), + 145: uint16(26691), + 146: uint16(36867), + 147: uint16(28120), + 148: uint16(38518), + 149: uint16(35752), + 150: uint16(22871), + 151: uint16(29305), + 152: uint16(34276), + 153: uint16(33150), + 154: uint16(30140), + 155: uint16(35466), + 156: uint16(26799), + 157: uint16(21076), + 158: uint16(36386), + 159: uint16(38161), + 160: uint16(25552), + 161: uint16(39064), + 162: uint16(36420), + 163: uint16(21884), + 164: uint16(20307), + 165: uint16(26367), + 166: uint16(22159), + 167: uint16(24789), + 168: uint16(28053), + 169: uint16(21059), + 170: uint16(23625), + 171: uint16(22825), + 172: uint16(28155), + 173: uint16(22635), + 174: uint16(30000), + 175: uint16(29980), + 176: uint16(24684), + 177: uint16(33300), + 178: uint16(33094), + 179: uint16(25361), + 180: uint16(26465), + 181: uint16(36834), + 182: uint16(30522), + 183: uint16(36339), + 184: uint16(36148), + 185: uint16(38081), + 186: uint16(24086), + 187: uint16(21381), + 188: uint16(21548), + 189: uint16(28867), + }, + 76: { + 0: uint16(34413), + 1: uint16(34415), + 2: uint16(34416), + 3: uint16(34418), + 4: uint16(34419), + 5: uint16(34420), + 6: uint16(34421), + 7: uint16(34422), + 8: uint16(34423), + 9: uint16(34424), + 10: uint16(34435), + 11: uint16(34436), + 12: uint16(34437), + 13: uint16(34438), + 14: uint16(34439), + 15: uint16(34440), + 16: uint16(34441), + 17: uint16(34446), + 18: uint16(34447), + 19: uint16(34448), + 20: uint16(34449), + 21: uint16(34450), + 22: uint16(34452), + 23: uint16(34454), + 24: uint16(34455), + 25: uint16(34456), + 26: uint16(34457), + 27: uint16(34458), + 28: uint16(34459), + 29: uint16(34462), + 30: uint16(34463), + 31: uint16(34464), + 32: uint16(34465), + 33: uint16(34466), + 34: uint16(34469), + 35: uint16(34470), + 36: uint16(34475), + 37: uint16(34477), + 38: uint16(34478), + 39: uint16(34482), + 40: uint16(34483), + 41: uint16(34487), + 42: uint16(34488), + 43: uint16(34489), + 44: uint16(34491), + 45: uint16(34492), + 46: uint16(34493), + 47: uint16(34494), + 48: uint16(34495), + 49: uint16(34497), + 50: uint16(34498), + 51: uint16(34499), + 52: uint16(34501), + 53: uint16(34504), + 54: uint16(34508), + 55: uint16(34509), + 56: uint16(34514), + 57: uint16(34515), + 58: uint16(34517), + 59: uint16(34518), + 60: uint16(34519), + 61: uint16(34522), + 62: uint16(34524), + 63: uint16(34525), + 64: uint16(34528), + 65: uint16(34529), + 66: uint16(34530), + 67: uint16(34531), + 68: uint16(34533), + 69: uint16(34534), + 70: uint16(34535), + 71: uint16(34536), + 72: uint16(34538), + 73: uint16(34539), + 74: uint16(34540), + 75: uint16(34543), + 76: uint16(34549), + 77: uint16(34550), + 78: uint16(34551), + 79: uint16(34554), + 80: uint16(34555), + 81: uint16(34556), + 82: uint16(34557), + 83: uint16(34559), + 84: uint16(34561), + 85: uint16(34564), + 86: uint16(34565), + 87: uint16(34566), + 88: uint16(34571), + 89: uint16(34572), + 90: uint16(34574), + 91: uint16(34575), + 92: uint16(34576), + 93: uint16(34577), + 94: uint16(34580), + 95: uint16(34582), + 96: uint16(27712), + 97: uint16(24311), + 98: uint16(20572), + 99: uint16(20141), + 100: uint16(24237), + 101: uint16(25402), + 102: uint16(33351), + 103: uint16(36890), + 104: uint16(26704), + 105: uint16(37230), + 106: uint16(30643), + 107: uint16(21516), + 108: uint16(38108), + 109: uint16(24420), + 110: uint16(31461), + 111: uint16(26742), + 112: uint16(25413), + 113: uint16(31570), + 114: uint16(32479), + 115: uint16(30171), + 116: uint16(20599), + 117: uint16(25237), + 118: uint16(22836), + 119: uint16(36879), + 120: uint16(20984), + 121: uint16(31171), + 122: uint16(31361), + 123: uint16(22270), + 124: uint16(24466), + 125: uint16(36884), + 126: uint16(28034), + 127: uint16(23648), + 128: uint16(22303), + 129: uint16(21520), + 130: uint16(20820), + 131: uint16(28237), + 132: uint16(22242), + 133: uint16(25512), + 134: uint16(39059), + 135: uint16(33151), + 136: uint16(34581), + 137: uint16(35114), + 138: uint16(36864), + 139: uint16(21534), + 140: uint16(23663), + 141: uint16(33216), + 142: uint16(25302), + 143: uint16(25176), + 144: uint16(33073), + 145: uint16(40501), + 146: uint16(38464), + 147: uint16(39534), + 148: uint16(39548), + 149: uint16(26925), + 150: uint16(22949), + 151: uint16(25299), + 152: uint16(21822), + 153: uint16(25366), + 154: uint16(21703), + 155: uint16(34521), + 156: uint16(27964), + 157: uint16(23043), + 158: uint16(29926), + 159: uint16(34972), + 160: uint16(27498), + 161: uint16(22806), + 162: uint16(35916), + 163: uint16(24367), + 164: uint16(28286), + 165: uint16(29609), + 166: uint16(39037), + 167: uint16(20024), + 168: uint16(28919), + 169: uint16(23436), + 170: uint16(30871), + 171: uint16(25405), + 172: uint16(26202), + 173: uint16(30358), + 174: uint16(24779), + 175: uint16(23451), + 176: uint16(23113), + 177: uint16(19975), + 178: uint16(33109), + 179: uint16(27754), + 180: uint16(29579), + 181: uint16(20129), + 182: uint16(26505), + 183: uint16(32593), + 184: uint16(24448), + 185: uint16(26106), + 186: uint16(26395), + 187: uint16(24536), + 188: uint16(22916), + 189: uint16(23041), + }, + 77: { + 0: uint16(34585), + 1: uint16(34587), + 2: uint16(34589), + 3: uint16(34591), + 4: uint16(34592), + 5: uint16(34596), + 6: uint16(34598), + 7: uint16(34599), + 8: uint16(34600), + 9: uint16(34602), + 10: uint16(34603), + 11: uint16(34604), + 12: uint16(34605), + 13: uint16(34607), + 14: uint16(34608), + 15: uint16(34610), + 16: uint16(34611), + 17: uint16(34613), + 18: uint16(34614), + 19: uint16(34616), + 20: uint16(34617), + 21: uint16(34618), + 22: uint16(34620), + 23: uint16(34621), + 24: uint16(34624), + 25: uint16(34625), + 26: uint16(34626), + 27: uint16(34627), + 28: uint16(34628), + 29: uint16(34629), + 30: uint16(34630), + 31: uint16(34634), + 32: uint16(34635), + 33: uint16(34637), + 34: uint16(34639), + 35: uint16(34640), + 36: uint16(34641), + 37: uint16(34642), + 38: uint16(34644), + 39: uint16(34645), + 40: uint16(34646), + 41: uint16(34648), + 42: uint16(34650), + 43: uint16(34651), + 44: uint16(34652), + 45: uint16(34653), + 46: uint16(34654), + 47: uint16(34655), + 48: uint16(34657), + 49: uint16(34658), + 50: uint16(34662), + 51: uint16(34663), + 52: uint16(34664), + 53: uint16(34665), + 54: uint16(34666), + 55: uint16(34667), + 56: uint16(34668), + 57: uint16(34669), + 58: uint16(34671), + 59: uint16(34673), + 60: uint16(34674), + 61: uint16(34675), + 62: uint16(34677), + 63: uint16(34679), + 64: uint16(34680), + 65: uint16(34681), + 66: uint16(34682), + 67: uint16(34687), + 68: uint16(34688), + 69: uint16(34689), + 70: uint16(34692), + 71: uint16(34694), + 72: uint16(34695), + 73: uint16(34697), + 74: uint16(34698), + 75: uint16(34700), + 76: uint16(34702), + 77: uint16(34703), + 78: uint16(34704), + 79: uint16(34705), + 80: uint16(34706), + 81: uint16(34708), + 82: uint16(34709), + 83: uint16(34710), + 84: uint16(34712), + 85: uint16(34713), + 86: uint16(34714), + 87: uint16(34715), + 88: uint16(34716), + 89: uint16(34717), + 90: uint16(34718), + 91: uint16(34720), + 92: uint16(34721), + 93: uint16(34722), + 94: uint16(34723), + 95: uint16(34724), + 96: uint16(24013), + 97: uint16(24494), + 98: uint16(21361), + 99: uint16(38886), + 100: uint16(36829), + 101: uint16(26693), + 102: uint16(22260), + 103: uint16(21807), + 104: uint16(24799), + 105: uint16(20026), + 106: uint16(28493), + 107: uint16(32500), + 108: uint16(33479), + 109: uint16(33806), + 110: uint16(22996), + 111: uint16(20255), + 112: uint16(20266), + 113: uint16(23614), + 114: uint16(32428), + 115: uint16(26410), + 116: uint16(34074), + 117: uint16(21619), + 118: uint16(30031), + 119: uint16(32963), + 120: uint16(21890), + 121: uint16(39759), + 122: uint16(20301), + 123: uint16(28205), + 124: uint16(35859), + 125: uint16(23561), + 126: uint16(24944), + 127: uint16(21355), + 128: uint16(30239), + 129: uint16(28201), + 130: uint16(34442), + 131: uint16(25991), + 132: uint16(38395), + 133: uint16(32441), + 134: uint16(21563), + 135: uint16(31283), + 136: uint16(32010), + 137: uint16(38382), + 138: uint16(21985), + 139: uint16(32705), + 140: uint16(29934), + 141: uint16(25373), + 142: uint16(34583), + 143: uint16(28065), + 144: uint16(31389), + 145: uint16(25105), + 146: uint16(26017), + 147: uint16(21351), + 148: uint16(25569), + 149: uint16(27779), + 150: uint16(24043), + 151: uint16(21596), + 152: uint16(38056), + 153: uint16(20044), + 154: uint16(27745), + 155: uint16(35820), + 156: uint16(23627), + 157: uint16(26080), + 158: uint16(33436), + 159: uint16(26791), + 160: uint16(21566), + 161: uint16(21556), + 162: uint16(27595), + 163: uint16(27494), + 164: uint16(20116), + 165: uint16(25410), + 166: uint16(21320), + 167: uint16(33310), + 168: uint16(20237), + 169: uint16(20398), + 170: uint16(22366), + 171: uint16(25098), + 172: uint16(38654), + 173: uint16(26212), + 174: uint16(29289), + 175: uint16(21247), + 176: uint16(21153), + 177: uint16(24735), + 178: uint16(35823), + 179: uint16(26132), + 180: uint16(29081), + 181: uint16(26512), + 182: uint16(35199), + 183: uint16(30802), + 184: uint16(30717), + 185: uint16(26224), + 186: uint16(22075), + 187: uint16(21560), + 188: uint16(38177), + 189: uint16(29306), + }, + 78: { + 0: uint16(34725), + 1: uint16(34726), + 2: uint16(34727), + 3: uint16(34729), + 4: uint16(34730), + 5: uint16(34734), + 6: uint16(34736), + 7: uint16(34737), + 8: uint16(34738), + 9: uint16(34740), + 10: uint16(34742), + 11: uint16(34743), + 12: uint16(34744), + 13: uint16(34745), + 14: uint16(34747), + 15: uint16(34748), + 16: uint16(34750), + 17: uint16(34751), + 18: uint16(34753), + 19: uint16(34754), + 20: uint16(34755), + 21: uint16(34756), + 22: uint16(34757), + 23: uint16(34759), + 24: uint16(34760), + 25: uint16(34761), + 26: uint16(34764), + 27: uint16(34765), + 28: uint16(34766), + 29: uint16(34767), + 30: uint16(34768), + 31: uint16(34772), + 32: uint16(34773), + 33: uint16(34774), + 34: uint16(34775), + 35: uint16(34776), + 36: uint16(34777), + 37: uint16(34778), + 38: uint16(34780), + 39: uint16(34781), + 40: uint16(34782), + 41: uint16(34783), + 42: uint16(34785), + 43: uint16(34786), + 44: uint16(34787), + 45: uint16(34788), + 46: uint16(34790), + 47: uint16(34791), + 48: uint16(34792), + 49: uint16(34793), + 50: uint16(34795), + 51: uint16(34796), + 52: uint16(34797), + 53: uint16(34799), + 54: uint16(34800), + 55: uint16(34801), + 56: uint16(34802), + 57: uint16(34803), + 58: uint16(34804), + 59: uint16(34805), + 60: uint16(34806), + 61: uint16(34807), + 62: uint16(34808), + 63: uint16(34810), + 64: uint16(34811), + 65: uint16(34812), + 66: uint16(34813), + 67: uint16(34815), + 68: uint16(34816), + 69: uint16(34817), + 70: uint16(34818), + 71: uint16(34820), + 72: uint16(34821), + 73: uint16(34822), + 74: uint16(34823), + 75: uint16(34824), + 76: uint16(34825), + 77: uint16(34827), + 78: uint16(34828), + 79: uint16(34829), + 80: uint16(34830), + 81: uint16(34831), + 82: uint16(34832), + 83: uint16(34833), + 84: uint16(34834), + 85: uint16(34836), + 86: uint16(34839), + 87: uint16(34840), + 88: uint16(34841), + 89: uint16(34842), + 90: uint16(34844), + 91: uint16(34845), + 92: uint16(34846), + 93: uint16(34847), + 94: uint16(34848), + 95: uint16(34851), + 96: uint16(31232), + 97: uint16(24687), + 98: uint16(24076), + 99: uint16(24713), + 100: uint16(33181), + 101: uint16(22805), + 102: uint16(24796), + 103: uint16(29060), + 104: uint16(28911), + 105: uint16(28330), + 106: uint16(27728), + 107: uint16(29312), + 108: uint16(27268), + 109: uint16(34989), + 110: uint16(24109), + 111: uint16(20064), + 112: uint16(23219), + 113: uint16(21916), + 114: uint16(38115), + 115: uint16(27927), + 116: uint16(31995), + 117: uint16(38553), + 118: uint16(25103), + 119: uint16(32454), + 120: uint16(30606), + 121: uint16(34430), + 122: uint16(21283), + 123: uint16(38686), + 124: uint16(36758), + 125: uint16(26247), + 126: uint16(23777), + 127: uint16(20384), + 128: uint16(29421), + 129: uint16(19979), + 130: uint16(21414), + 131: uint16(22799), + 132: uint16(21523), + 133: uint16(25472), + 134: uint16(38184), + 135: uint16(20808), + 136: uint16(20185), + 137: uint16(40092), + 138: uint16(32420), + 139: uint16(21688), + 140: uint16(36132), + 141: uint16(34900), + 142: uint16(33335), + 143: uint16(38386), + 144: uint16(28046), + 145: uint16(24358), + 146: uint16(23244), + 147: uint16(26174), + 148: uint16(38505), + 149: uint16(29616), + 150: uint16(29486), + 151: uint16(21439), + 152: uint16(33146), + 153: uint16(39301), + 154: uint16(32673), + 155: uint16(23466), + 156: uint16(38519), + 157: uint16(38480), + 158: uint16(32447), + 159: uint16(30456), + 160: uint16(21410), + 161: uint16(38262), + 162: uint16(39321), + 163: uint16(31665), + 164: uint16(35140), + 165: uint16(28248), + 166: uint16(20065), + 167: uint16(32724), + 168: uint16(31077), + 169: uint16(35814), + 170: uint16(24819), + 171: uint16(21709), + 172: uint16(20139), + 173: uint16(39033), + 174: uint16(24055), + 175: uint16(27233), + 176: uint16(20687), + 177: uint16(21521), + 178: uint16(35937), + 179: uint16(33831), + 180: uint16(30813), + 181: uint16(38660), + 182: uint16(21066), + 183: uint16(21742), + 184: uint16(22179), + 185: uint16(38144), + 186: uint16(28040), + 187: uint16(23477), + 188: uint16(28102), + 189: uint16(26195), + }, + 79: { + 0: uint16(34852), + 1: uint16(34853), + 2: uint16(34854), + 3: uint16(34855), + 4: uint16(34856), + 5: uint16(34857), + 6: uint16(34858), + 7: uint16(34859), + 8: uint16(34860), + 9: uint16(34861), + 10: uint16(34862), + 11: uint16(34863), + 12: uint16(34864), + 13: uint16(34865), + 14: uint16(34867), + 15: uint16(34868), + 16: uint16(34869), + 17: uint16(34870), + 18: uint16(34871), + 19: uint16(34872), + 20: uint16(34874), + 21: uint16(34875), + 22: uint16(34877), + 23: uint16(34878), + 24: uint16(34879), + 25: uint16(34881), + 26: uint16(34882), + 27: uint16(34883), + 28: uint16(34886), + 29: uint16(34887), + 30: uint16(34888), + 31: uint16(34889), + 32: uint16(34890), + 33: uint16(34891), + 34: uint16(34894), + 35: uint16(34895), + 36: uint16(34896), + 37: uint16(34897), + 38: uint16(34898), + 39: uint16(34899), + 40: uint16(34901), + 41: uint16(34902), + 42: uint16(34904), + 43: uint16(34906), + 44: uint16(34907), + 45: uint16(34908), + 46: uint16(34909), + 47: uint16(34910), + 48: uint16(34911), + 49: uint16(34912), + 50: uint16(34918), + 51: uint16(34919), + 52: uint16(34922), + 53: uint16(34925), + 54: uint16(34927), + 55: uint16(34929), + 56: uint16(34931), + 57: uint16(34932), + 58: uint16(34933), + 59: uint16(34934), + 60: uint16(34936), + 61: uint16(34937), + 62: uint16(34938), + 63: uint16(34939), + 64: uint16(34940), + 65: uint16(34944), + 66: uint16(34947), + 67: uint16(34950), + 68: uint16(34951), + 69: uint16(34953), + 70: uint16(34954), + 71: uint16(34956), + 72: uint16(34958), + 73: uint16(34959), + 74: uint16(34960), + 75: uint16(34961), + 76: uint16(34963), + 77: uint16(34964), + 78: uint16(34965), + 79: uint16(34967), + 80: uint16(34968), + 81: uint16(34969), + 82: uint16(34970), + 83: uint16(34971), + 84: uint16(34973), + 85: uint16(34974), + 86: uint16(34975), + 87: uint16(34976), + 88: uint16(34977), + 89: uint16(34979), + 90: uint16(34981), + 91: uint16(34982), + 92: uint16(34983), + 93: uint16(34984), + 94: uint16(34985), + 95: uint16(34986), + 96: uint16(23567), + 97: uint16(23389), + 98: uint16(26657), + 99: uint16(32918), + 100: uint16(21880), + 101: uint16(31505), + 102: uint16(25928), + 103: uint16(26964), + 104: uint16(20123), + 105: uint16(27463), + 106: uint16(34638), + 107: uint16(38795), + 108: uint16(21327), + 109: uint16(25375), + 110: uint16(25658), + 111: uint16(37034), + 112: uint16(26012), + 113: uint16(32961), + 114: uint16(35856), + 115: uint16(20889), + 116: uint16(26800), + 117: uint16(21368), + 118: uint16(34809), + 119: uint16(25032), + 120: uint16(27844), + 121: uint16(27899), + 122: uint16(35874), + 123: uint16(23633), + 124: uint16(34218), + 125: uint16(33455), + 126: uint16(38156), + 127: uint16(27427), + 128: uint16(36763), + 129: uint16(26032), + 130: uint16(24571), + 131: uint16(24515), + 132: uint16(20449), + 133: uint16(34885), + 134: uint16(26143), + 135: uint16(33125), + 136: uint16(29481), + 137: uint16(24826), + 138: uint16(20852), + 139: uint16(21009), + 140: uint16(22411), + 141: uint16(24418), + 142: uint16(37026), + 143: uint16(34892), + 144: uint16(37266), + 145: uint16(24184), + 146: uint16(26447), + 147: uint16(24615), + 148: uint16(22995), + 149: uint16(20804), + 150: uint16(20982), + 151: uint16(33016), + 152: uint16(21256), + 153: uint16(27769), + 154: uint16(38596), + 155: uint16(29066), + 156: uint16(20241), + 157: uint16(20462), + 158: uint16(32670), + 159: uint16(26429), + 160: uint16(21957), + 161: uint16(38152), + 162: uint16(31168), + 163: uint16(34966), + 164: uint16(32483), + 165: uint16(22687), + 166: uint16(25100), + 167: uint16(38656), + 168: uint16(34394), + 169: uint16(22040), + 170: uint16(39035), + 171: uint16(24464), + 172: uint16(35768), + 173: uint16(33988), + 174: uint16(37207), + 175: uint16(21465), + 176: uint16(26093), + 177: uint16(24207), + 178: uint16(30044), + 179: uint16(24676), + 180: uint16(32110), + 181: uint16(23167), + 182: uint16(32490), + 183: uint16(32493), + 184: uint16(36713), + 185: uint16(21927), + 186: uint16(23459), + 187: uint16(24748), + 188: uint16(26059), + 189: uint16(29572), + }, + 80: { + 0: uint16(34988), + 1: uint16(34990), + 2: uint16(34991), + 3: uint16(34992), + 4: uint16(34994), + 5: uint16(34995), + 6: uint16(34996), + 7: uint16(34997), + 8: uint16(34998), + 9: uint16(35000), + 10: uint16(35001), + 11: uint16(35002), + 12: uint16(35003), + 13: uint16(35005), + 14: uint16(35006), + 15: uint16(35007), + 16: uint16(35008), + 17: uint16(35011), + 18: uint16(35012), + 19: uint16(35015), + 20: uint16(35016), + 21: uint16(35018), + 22: uint16(35019), + 23: uint16(35020), + 24: uint16(35021), + 25: uint16(35023), + 26: uint16(35024), + 27: uint16(35025), + 28: uint16(35027), + 29: uint16(35030), + 30: uint16(35031), + 31: uint16(35034), + 32: uint16(35035), + 33: uint16(35036), + 34: uint16(35037), + 35: uint16(35038), + 36: uint16(35040), + 37: uint16(35041), + 38: uint16(35046), + 39: uint16(35047), + 40: uint16(35049), + 41: uint16(35050), + 42: uint16(35051), + 43: uint16(35052), + 44: uint16(35053), + 45: uint16(35054), + 46: uint16(35055), + 47: uint16(35058), + 48: uint16(35061), + 49: uint16(35062), + 50: uint16(35063), + 51: uint16(35066), + 52: uint16(35067), + 53: uint16(35069), + 54: uint16(35071), + 55: uint16(35072), + 56: uint16(35073), + 57: uint16(35075), + 58: uint16(35076), + 59: uint16(35077), + 60: uint16(35078), + 61: uint16(35079), + 62: uint16(35080), + 63: uint16(35081), + 64: uint16(35083), + 65: uint16(35084), + 66: uint16(35085), + 67: uint16(35086), + 68: uint16(35087), + 69: uint16(35089), + 70: uint16(35092), + 71: uint16(35093), + 72: uint16(35094), + 73: uint16(35095), + 74: uint16(35096), + 75: uint16(35100), + 76: uint16(35101), + 77: uint16(35102), + 78: uint16(35103), + 79: uint16(35104), + 80: uint16(35106), + 81: uint16(35107), + 82: uint16(35108), + 83: uint16(35110), + 84: uint16(35111), + 85: uint16(35112), + 86: uint16(35113), + 87: uint16(35116), + 88: uint16(35117), + 89: uint16(35118), + 90: uint16(35119), + 91: uint16(35121), + 92: uint16(35122), + 93: uint16(35123), + 94: uint16(35125), + 95: uint16(35127), + 96: uint16(36873), + 97: uint16(30307), + 98: uint16(30505), + 99: uint16(32474), + 100: uint16(38772), + 101: uint16(34203), + 102: uint16(23398), + 103: uint16(31348), + 104: uint16(38634), + 105: uint16(34880), + 106: uint16(21195), + 107: uint16(29071), + 108: uint16(24490), + 109: uint16(26092), + 110: uint16(35810), + 111: uint16(23547), + 112: uint16(39535), + 113: uint16(24033), + 114: uint16(27529), + 115: uint16(27739), + 116: uint16(35757), + 117: uint16(35759), + 118: uint16(36874), + 119: uint16(36805), + 120: uint16(21387), + 121: uint16(25276), + 122: uint16(40486), + 123: uint16(40493), + 124: uint16(21568), + 125: uint16(20011), + 126: uint16(33469), + 127: uint16(29273), + 128: uint16(34460), + 129: uint16(23830), + 130: uint16(34905), + 131: uint16(28079), + 132: uint16(38597), + 133: uint16(21713), + 134: uint16(20122), + 135: uint16(35766), + 136: uint16(28937), + 137: uint16(21693), + 138: uint16(38409), + 139: uint16(28895), + 140: uint16(28153), + 141: uint16(30416), + 142: uint16(20005), + 143: uint16(30740), + 144: uint16(34578), + 145: uint16(23721), + 146: uint16(24310), + 147: uint16(35328), + 148: uint16(39068), + 149: uint16(38414), + 150: uint16(28814), + 151: uint16(27839), + 152: uint16(22852), + 153: uint16(25513), + 154: uint16(30524), + 155: uint16(34893), + 156: uint16(28436), + 157: uint16(33395), + 158: uint16(22576), + 159: uint16(29141), + 160: uint16(21388), + 161: uint16(30746), + 162: uint16(38593), + 163: uint16(21761), + 164: uint16(24422), + 165: uint16(28976), + 166: uint16(23476), + 167: uint16(35866), + 168: uint16(39564), + 169: uint16(27523), + 170: uint16(22830), + 171: uint16(40495), + 172: uint16(31207), + 173: uint16(26472), + 174: uint16(25196), + 175: uint16(20335), + 176: uint16(30113), + 177: uint16(32650), + 178: uint16(27915), + 179: uint16(38451), + 180: uint16(27687), + 181: uint16(20208), + 182: uint16(30162), + 183: uint16(20859), + 184: uint16(26679), + 185: uint16(28478), + 186: uint16(36992), + 187: uint16(33136), + 188: uint16(22934), + 189: uint16(29814), + }, + 81: { + 0: uint16(35128), + 1: uint16(35129), + 2: uint16(35130), + 3: uint16(35131), + 4: uint16(35132), + 5: uint16(35133), + 6: uint16(35134), + 7: uint16(35135), + 8: uint16(35136), + 9: uint16(35138), + 10: uint16(35139), + 11: uint16(35141), + 12: uint16(35142), + 13: uint16(35143), + 14: uint16(35144), + 15: uint16(35145), + 16: uint16(35146), + 17: uint16(35147), + 18: uint16(35148), + 19: uint16(35149), + 20: uint16(35150), + 21: uint16(35151), + 22: uint16(35152), + 23: uint16(35153), + 24: uint16(35154), + 25: uint16(35155), + 26: uint16(35156), + 27: uint16(35157), + 28: uint16(35158), + 29: uint16(35159), + 30: uint16(35160), + 31: uint16(35161), + 32: uint16(35162), + 33: uint16(35163), + 34: uint16(35164), + 35: uint16(35165), + 36: uint16(35168), + 37: uint16(35169), + 38: uint16(35170), + 39: uint16(35171), + 40: uint16(35172), + 41: uint16(35173), + 42: uint16(35175), + 43: uint16(35176), + 44: uint16(35177), + 45: uint16(35178), + 46: uint16(35179), + 47: uint16(35180), + 48: uint16(35181), + 49: uint16(35182), + 50: uint16(35183), + 51: uint16(35184), + 52: uint16(35185), + 53: uint16(35186), + 54: uint16(35187), + 55: uint16(35188), + 56: uint16(35189), + 57: uint16(35190), + 58: uint16(35191), + 59: uint16(35192), + 60: uint16(35193), + 61: uint16(35194), + 62: uint16(35196), + 63: uint16(35197), + 64: uint16(35198), + 65: uint16(35200), + 66: uint16(35202), + 67: uint16(35204), + 68: uint16(35205), + 69: uint16(35207), + 70: uint16(35208), + 71: uint16(35209), + 72: uint16(35210), + 73: uint16(35211), + 74: uint16(35212), + 75: uint16(35213), + 76: uint16(35214), + 77: uint16(35215), + 78: uint16(35216), + 79: uint16(35217), + 80: uint16(35218), + 81: uint16(35219), + 82: uint16(35220), + 83: uint16(35221), + 84: uint16(35222), + 85: uint16(35223), + 86: uint16(35224), + 87: uint16(35225), + 88: uint16(35226), + 89: uint16(35227), + 90: uint16(35228), + 91: uint16(35229), + 92: uint16(35230), + 93: uint16(35231), + 94: uint16(35232), + 95: uint16(35233), + 96: uint16(25671), + 97: uint16(23591), + 98: uint16(36965), + 99: uint16(31377), + 100: uint16(35875), + 101: uint16(23002), + 102: uint16(21676), + 103: uint16(33280), + 104: uint16(33647), + 105: uint16(35201), + 106: uint16(32768), + 107: uint16(26928), + 108: uint16(22094), + 109: uint16(32822), + 110: uint16(29239), + 111: uint16(37326), + 112: uint16(20918), + 113: uint16(20063), + 114: uint16(39029), + 115: uint16(25494), + 116: uint16(19994), + 117: uint16(21494), + 118: uint16(26355), + 119: uint16(33099), + 120: uint16(22812), + 121: uint16(28082), + 122: uint16(19968), + 123: uint16(22777), + 124: uint16(21307), + 125: uint16(25558), + 126: uint16(38129), + 127: uint16(20381), + 128: uint16(20234), + 129: uint16(34915), + 130: uint16(39056), + 131: uint16(22839), + 132: uint16(36951), + 133: uint16(31227), + 134: uint16(20202), + 135: uint16(33008), + 136: uint16(30097), + 137: uint16(27778), + 138: uint16(23452), + 139: uint16(23016), + 140: uint16(24413), + 141: uint16(26885), + 142: uint16(34433), + 143: uint16(20506), + 144: uint16(24050), + 145: uint16(20057), + 146: uint16(30691), + 147: uint16(20197), + 148: uint16(33402), + 149: uint16(25233), + 150: uint16(26131), + 151: uint16(37009), + 152: uint16(23673), + 153: uint16(20159), + 154: uint16(24441), + 155: uint16(33222), + 156: uint16(36920), + 157: uint16(32900), + 158: uint16(30123), + 159: uint16(20134), + 160: uint16(35028), + 161: uint16(24847), + 162: uint16(27589), + 163: uint16(24518), + 164: uint16(20041), + 165: uint16(30410), + 166: uint16(28322), + 167: uint16(35811), + 168: uint16(35758), + 169: uint16(35850), + 170: uint16(35793), + 171: uint16(24322), + 172: uint16(32764), + 173: uint16(32716), + 174: uint16(32462), + 175: uint16(33589), + 176: uint16(33643), + 177: uint16(22240), + 178: uint16(27575), + 179: uint16(38899), + 180: uint16(38452), + 181: uint16(23035), + 182: uint16(21535), + 183: uint16(38134), + 184: uint16(28139), + 185: uint16(23493), + 186: uint16(39278), + 187: uint16(23609), + 188: uint16(24341), + 189: uint16(38544), + }, + 82: { + 0: uint16(35234), + 1: uint16(35235), + 2: uint16(35236), + 3: uint16(35237), + 4: uint16(35238), + 5: uint16(35239), + 6: uint16(35240), + 7: uint16(35241), + 8: uint16(35242), + 9: uint16(35243), + 10: uint16(35244), + 11: uint16(35245), + 12: uint16(35246), + 13: uint16(35247), + 14: uint16(35248), + 15: uint16(35249), + 16: uint16(35250), + 17: uint16(35251), + 18: uint16(35252), + 19: uint16(35253), + 20: uint16(35254), + 21: uint16(35255), + 22: uint16(35256), + 23: uint16(35257), + 24: uint16(35258), + 25: uint16(35259), + 26: uint16(35260), + 27: uint16(35261), + 28: uint16(35262), + 29: uint16(35263), + 30: uint16(35264), + 31: uint16(35267), + 32: uint16(35277), + 33: uint16(35283), + 34: uint16(35284), + 35: uint16(35285), + 36: uint16(35287), + 37: uint16(35288), + 38: uint16(35289), + 39: uint16(35291), + 40: uint16(35293), + 41: uint16(35295), + 42: uint16(35296), + 43: uint16(35297), + 44: uint16(35298), + 45: uint16(35300), + 46: uint16(35303), + 47: uint16(35304), + 48: uint16(35305), + 49: uint16(35306), + 50: uint16(35308), + 51: uint16(35309), + 52: uint16(35310), + 53: uint16(35312), + 54: uint16(35313), + 55: uint16(35314), + 56: uint16(35316), + 57: uint16(35317), + 58: uint16(35318), + 59: uint16(35319), + 60: uint16(35320), + 61: uint16(35321), + 62: uint16(35322), + 63: uint16(35323), + 64: uint16(35324), + 65: uint16(35325), + 66: uint16(35326), + 67: uint16(35327), + 68: uint16(35329), + 69: uint16(35330), + 70: uint16(35331), + 71: uint16(35332), + 72: uint16(35333), + 73: uint16(35334), + 74: uint16(35336), + 75: uint16(35337), + 76: uint16(35338), + 77: uint16(35339), + 78: uint16(35340), + 79: uint16(35341), + 80: uint16(35342), + 81: uint16(35343), + 82: uint16(35344), + 83: uint16(35345), + 84: uint16(35346), + 85: uint16(35347), + 86: uint16(35348), + 87: uint16(35349), + 88: uint16(35350), + 89: uint16(35351), + 90: uint16(35352), + 91: uint16(35353), + 92: uint16(35354), + 93: uint16(35355), + 94: uint16(35356), + 95: uint16(35357), + 96: uint16(21360), + 97: uint16(33521), + 98: uint16(27185), + 99: uint16(23156), + 100: uint16(40560), + 101: uint16(24212), + 102: uint16(32552), + 103: uint16(33721), + 104: uint16(33828), + 105: uint16(33829), + 106: uint16(33639), + 107: uint16(34631), + 108: uint16(36814), + 109: uint16(36194), + 110: uint16(30408), + 111: uint16(24433), + 112: uint16(39062), + 113: uint16(30828), + 114: uint16(26144), + 115: uint16(21727), + 116: uint16(25317), + 117: uint16(20323), + 118: uint16(33219), + 119: uint16(30152), + 120: uint16(24248), + 121: uint16(38605), + 122: uint16(36362), + 123: uint16(34553), + 124: uint16(21647), + 125: uint16(27891), + 126: uint16(28044), + 127: uint16(27704), + 128: uint16(24703), + 129: uint16(21191), + 130: uint16(29992), + 131: uint16(24189), + 132: uint16(20248), + 133: uint16(24736), + 134: uint16(24551), + 135: uint16(23588), + 136: uint16(30001), + 137: uint16(37038), + 138: uint16(38080), + 139: uint16(29369), + 140: uint16(27833), + 141: uint16(28216), + 142: uint16(37193), + 143: uint16(26377), + 144: uint16(21451), + 145: uint16(21491), + 146: uint16(20305), + 147: uint16(37321), + 148: uint16(35825), + 149: uint16(21448), + 150: uint16(24188), + 151: uint16(36802), + 152: uint16(28132), + 153: uint16(20110), + 154: uint16(30402), + 155: uint16(27014), + 156: uint16(34398), + 157: uint16(24858), + 158: uint16(33286), + 159: uint16(20313), + 160: uint16(20446), + 161: uint16(36926), + 162: uint16(40060), + 163: uint16(24841), + 164: uint16(28189), + 165: uint16(28180), + 166: uint16(38533), + 167: uint16(20104), + 168: uint16(23089), + 169: uint16(38632), + 170: uint16(19982), + 171: uint16(23679), + 172: uint16(31161), + 173: uint16(23431), + 174: uint16(35821), + 175: uint16(32701), + 176: uint16(29577), + 177: uint16(22495), + 178: uint16(33419), + 179: uint16(37057), + 180: uint16(21505), + 181: uint16(36935), + 182: uint16(21947), + 183: uint16(23786), + 184: uint16(24481), + 185: uint16(24840), + 186: uint16(27442), + 187: uint16(29425), + 188: uint16(32946), + 189: uint16(35465), + }, + 83: { + 0: uint16(35358), + 1: uint16(35359), + 2: uint16(35360), + 3: uint16(35361), + 4: uint16(35362), + 5: uint16(35363), + 6: uint16(35364), + 7: uint16(35365), + 8: uint16(35366), + 9: uint16(35367), + 10: uint16(35368), + 11: uint16(35369), + 12: uint16(35370), + 13: uint16(35371), + 14: uint16(35372), + 15: uint16(35373), + 16: uint16(35374), + 17: uint16(35375), + 18: uint16(35376), + 19: uint16(35377), + 20: uint16(35378), + 21: uint16(35379), + 22: uint16(35380), + 23: uint16(35381), + 24: uint16(35382), + 25: uint16(35383), + 26: uint16(35384), + 27: uint16(35385), + 28: uint16(35386), + 29: uint16(35387), + 30: uint16(35388), + 31: uint16(35389), + 32: uint16(35391), + 33: uint16(35392), + 34: uint16(35393), + 35: uint16(35394), + 36: uint16(35395), + 37: uint16(35396), + 38: uint16(35397), + 39: uint16(35398), + 40: uint16(35399), + 41: uint16(35401), + 42: uint16(35402), + 43: uint16(35403), + 44: uint16(35404), + 45: uint16(35405), + 46: uint16(35406), + 47: uint16(35407), + 48: uint16(35408), + 49: uint16(35409), + 50: uint16(35410), + 51: uint16(35411), + 52: uint16(35412), + 53: uint16(35413), + 54: uint16(35414), + 55: uint16(35415), + 56: uint16(35416), + 57: uint16(35417), + 58: uint16(35418), + 59: uint16(35419), + 60: uint16(35420), + 61: uint16(35421), + 62: uint16(35422), + 63: uint16(35423), + 64: uint16(35424), + 65: uint16(35425), + 66: uint16(35426), + 67: uint16(35427), + 68: uint16(35428), + 69: uint16(35429), + 70: uint16(35430), + 71: uint16(35431), + 72: uint16(35432), + 73: uint16(35433), + 74: uint16(35434), + 75: uint16(35435), + 76: uint16(35436), + 77: uint16(35437), + 78: uint16(35438), + 79: uint16(35439), + 80: uint16(35440), + 81: uint16(35441), + 82: uint16(35442), + 83: uint16(35443), + 84: uint16(35444), + 85: uint16(35445), + 86: uint16(35446), + 87: uint16(35447), + 88: uint16(35448), + 89: uint16(35450), + 90: uint16(35451), + 91: uint16(35452), + 92: uint16(35453), + 93: uint16(35454), + 94: uint16(35455), + 95: uint16(35456), + 96: uint16(28020), + 97: uint16(23507), + 98: uint16(35029), + 99: uint16(39044), + 100: uint16(35947), + 101: uint16(39533), + 102: uint16(40499), + 103: uint16(28170), + 104: uint16(20900), + 105: uint16(20803), + 106: uint16(22435), + 107: uint16(34945), + 108: uint16(21407), + 109: uint16(25588), + 110: uint16(36757), + 111: uint16(22253), + 112: uint16(21592), + 113: uint16(22278), + 114: uint16(29503), + 115: uint16(28304), + 116: uint16(32536), + 117: uint16(36828), + 118: uint16(33489), + 119: uint16(24895), + 120: uint16(24616), + 121: uint16(38498), + 122: uint16(26352), + 123: uint16(32422), + 124: uint16(36234), + 125: uint16(36291), + 126: uint16(38053), + 127: uint16(23731), + 128: uint16(31908), + 129: uint16(26376), + 130: uint16(24742), + 131: uint16(38405), + 132: uint16(32792), + 133: uint16(20113), + 134: uint16(37095), + 135: uint16(21248), + 136: uint16(38504), + 137: uint16(20801), + 138: uint16(36816), + 139: uint16(34164), + 140: uint16(37213), + 141: uint16(26197), + 142: uint16(38901), + 143: uint16(23381), + 144: uint16(21277), + 145: uint16(30776), + 146: uint16(26434), + 147: uint16(26685), + 148: uint16(21705), + 149: uint16(28798), + 150: uint16(23472), + 151: uint16(36733), + 152: uint16(20877), + 153: uint16(22312), + 154: uint16(21681), + 155: uint16(25874), + 156: uint16(26242), + 157: uint16(36190), + 158: uint16(36163), + 159: uint16(33039), + 160: uint16(33900), + 161: uint16(36973), + 162: uint16(31967), + 163: uint16(20991), + 164: uint16(34299), + 165: uint16(26531), + 166: uint16(26089), + 167: uint16(28577), + 168: uint16(34468), + 169: uint16(36481), + 170: uint16(22122), + 171: uint16(36896), + 172: uint16(30338), + 173: uint16(28790), + 174: uint16(29157), + 175: uint16(36131), + 176: uint16(25321), + 177: uint16(21017), + 178: uint16(27901), + 179: uint16(36156), + 180: uint16(24590), + 181: uint16(22686), + 182: uint16(24974), + 183: uint16(26366), + 184: uint16(36192), + 185: uint16(25166), + 186: uint16(21939), + 187: uint16(28195), + 188: uint16(26413), + 189: uint16(36711), + }, + 84: { + 0: uint16(35457), + 1: uint16(35458), + 2: uint16(35459), + 3: uint16(35460), + 4: uint16(35461), + 5: uint16(35462), + 6: uint16(35463), + 7: uint16(35464), + 8: uint16(35467), + 9: uint16(35468), + 10: uint16(35469), + 11: uint16(35470), + 12: uint16(35471), + 13: uint16(35472), + 14: uint16(35473), + 15: uint16(35474), + 16: uint16(35476), + 17: uint16(35477), + 18: uint16(35478), + 19: uint16(35479), + 20: uint16(35480), + 21: uint16(35481), + 22: uint16(35482), + 23: uint16(35483), + 24: uint16(35484), + 25: uint16(35485), + 26: uint16(35486), + 27: uint16(35487), + 28: uint16(35488), + 29: uint16(35489), + 30: uint16(35490), + 31: uint16(35491), + 32: uint16(35492), + 33: uint16(35493), + 34: uint16(35494), + 35: uint16(35495), + 36: uint16(35496), + 37: uint16(35497), + 38: uint16(35498), + 39: uint16(35499), + 40: uint16(35500), + 41: uint16(35501), + 42: uint16(35502), + 43: uint16(35503), + 44: uint16(35504), + 45: uint16(35505), + 46: uint16(35506), + 47: uint16(35507), + 48: uint16(35508), + 49: uint16(35509), + 50: uint16(35510), + 51: uint16(35511), + 52: uint16(35512), + 53: uint16(35513), + 54: uint16(35514), + 55: uint16(35515), + 56: uint16(35516), + 57: uint16(35517), + 58: uint16(35518), + 59: uint16(35519), + 60: uint16(35520), + 61: uint16(35521), + 62: uint16(35522), + 63: uint16(35523), + 64: uint16(35524), + 65: uint16(35525), + 66: uint16(35526), + 67: uint16(35527), + 68: uint16(35528), + 69: uint16(35529), + 70: uint16(35530), + 71: uint16(35531), + 72: uint16(35532), + 73: uint16(35533), + 74: uint16(35534), + 75: uint16(35535), + 76: uint16(35536), + 77: uint16(35537), + 78: uint16(35538), + 79: uint16(35539), + 80: uint16(35540), + 81: uint16(35541), + 82: uint16(35542), + 83: uint16(35543), + 84: uint16(35544), + 85: uint16(35545), + 86: uint16(35546), + 87: uint16(35547), + 88: uint16(35548), + 89: uint16(35549), + 90: uint16(35550), + 91: uint16(35551), + 92: uint16(35552), + 93: uint16(35553), + 94: uint16(35554), + 95: uint16(35555), + 96: uint16(38113), + 97: uint16(38392), + 98: uint16(30504), + 99: uint16(26629), + 100: uint16(27048), + 101: uint16(21643), + 102: uint16(20045), + 103: uint16(28856), + 104: uint16(35784), + 105: uint16(25688), + 106: uint16(25995), + 107: uint16(23429), + 108: uint16(31364), + 109: uint16(20538), + 110: uint16(23528), + 111: uint16(30651), + 112: uint16(27617), + 113: uint16(35449), + 114: uint16(31896), + 115: uint16(27838), + 116: uint16(30415), + 117: uint16(26025), + 118: uint16(36759), + 119: uint16(23853), + 120: uint16(23637), + 121: uint16(34360), + 122: uint16(26632), + 123: uint16(21344), + 124: uint16(25112), + 125: uint16(31449), + 126: uint16(28251), + 127: uint16(32509), + 128: uint16(27167), + 129: uint16(31456), + 130: uint16(24432), + 131: uint16(28467), + 132: uint16(24352), + 133: uint16(25484), + 134: uint16(28072), + 135: uint16(26454), + 136: uint16(19976), + 137: uint16(24080), + 138: uint16(36134), + 139: uint16(20183), + 140: uint16(32960), + 141: uint16(30260), + 142: uint16(38556), + 143: uint16(25307), + 144: uint16(26157), + 145: uint16(25214), + 146: uint16(27836), + 147: uint16(36213), + 148: uint16(29031), + 149: uint16(32617), + 150: uint16(20806), + 151: uint16(32903), + 152: uint16(21484), + 153: uint16(36974), + 154: uint16(25240), + 155: uint16(21746), + 156: uint16(34544), + 157: uint16(36761), + 158: uint16(32773), + 159: uint16(38167), + 160: uint16(34071), + 161: uint16(36825), + 162: uint16(27993), + 163: uint16(29645), + 164: uint16(26015), + 165: uint16(30495), + 166: uint16(29956), + 167: uint16(30759), + 168: uint16(33275), + 169: uint16(36126), + 170: uint16(38024), + 171: uint16(20390), + 172: uint16(26517), + 173: uint16(30137), + 174: uint16(35786), + 175: uint16(38663), + 176: uint16(25391), + 177: uint16(38215), + 178: uint16(38453), + 179: uint16(33976), + 180: uint16(25379), + 181: uint16(30529), + 182: uint16(24449), + 183: uint16(29424), + 184: uint16(20105), + 185: uint16(24596), + 186: uint16(25972), + 187: uint16(25327), + 188: uint16(27491), + 189: uint16(25919), + }, + 85: { + 0: uint16(35556), + 1: uint16(35557), + 2: uint16(35558), + 3: uint16(35559), + 4: uint16(35560), + 5: uint16(35561), + 6: uint16(35562), + 7: uint16(35563), + 8: uint16(35564), + 9: uint16(35565), + 10: uint16(35566), + 11: uint16(35567), + 12: uint16(35568), + 13: uint16(35569), + 14: uint16(35570), + 15: uint16(35571), + 16: uint16(35572), + 17: uint16(35573), + 18: uint16(35574), + 19: uint16(35575), + 20: uint16(35576), + 21: uint16(35577), + 22: uint16(35578), + 23: uint16(35579), + 24: uint16(35580), + 25: uint16(35581), + 26: uint16(35582), + 27: uint16(35583), + 28: uint16(35584), + 29: uint16(35585), + 30: uint16(35586), + 31: uint16(35587), + 32: uint16(35588), + 33: uint16(35589), + 34: uint16(35590), + 35: uint16(35592), + 36: uint16(35593), + 37: uint16(35594), + 38: uint16(35595), + 39: uint16(35596), + 40: uint16(35597), + 41: uint16(35598), + 42: uint16(35599), + 43: uint16(35600), + 44: uint16(35601), + 45: uint16(35602), + 46: uint16(35603), + 47: uint16(35604), + 48: uint16(35605), + 49: uint16(35606), + 50: uint16(35607), + 51: uint16(35608), + 52: uint16(35609), + 53: uint16(35610), + 54: uint16(35611), + 55: uint16(35612), + 56: uint16(35613), + 57: uint16(35614), + 58: uint16(35615), + 59: uint16(35616), + 60: uint16(35617), + 61: uint16(35618), + 62: uint16(35619), + 63: uint16(35620), + 64: uint16(35621), + 65: uint16(35623), + 66: uint16(35624), + 67: uint16(35625), + 68: uint16(35626), + 69: uint16(35627), + 70: uint16(35628), + 71: uint16(35629), + 72: uint16(35630), + 73: uint16(35631), + 74: uint16(35632), + 75: uint16(35633), + 76: uint16(35634), + 77: uint16(35635), + 78: uint16(35636), + 79: uint16(35637), + 80: uint16(35638), + 81: uint16(35639), + 82: uint16(35640), + 83: uint16(35641), + 84: uint16(35642), + 85: uint16(35643), + 86: uint16(35644), + 87: uint16(35645), + 88: uint16(35646), + 89: uint16(35647), + 90: uint16(35648), + 91: uint16(35649), + 92: uint16(35650), + 93: uint16(35651), + 94: uint16(35652), + 95: uint16(35653), + 96: uint16(24103), + 97: uint16(30151), + 98: uint16(37073), + 99: uint16(35777), + 100: uint16(33437), + 101: uint16(26525), + 102: uint16(25903), + 103: uint16(21553), + 104: uint16(34584), + 105: uint16(30693), + 106: uint16(32930), + 107: uint16(33026), + 108: uint16(27713), + 109: uint16(20043), + 110: uint16(32455), + 111: uint16(32844), + 112: uint16(30452), + 113: uint16(26893), + 114: uint16(27542), + 115: uint16(25191), + 116: uint16(20540), + 117: uint16(20356), + 118: uint16(22336), + 119: uint16(25351), + 120: uint16(27490), + 121: uint16(36286), + 122: uint16(21482), + 123: uint16(26088), + 124: uint16(32440), + 125: uint16(24535), + 126: uint16(25370), + 127: uint16(25527), + 128: uint16(33267), + 129: uint16(33268), + 130: uint16(32622), + 131: uint16(24092), + 132: uint16(23769), + 133: uint16(21046), + 134: uint16(26234), + 135: uint16(31209), + 136: uint16(31258), + 137: uint16(36136), + 138: uint16(28825), + 139: uint16(30164), + 140: uint16(28382), + 141: uint16(27835), + 142: uint16(31378), + 143: uint16(20013), + 144: uint16(30405), + 145: uint16(24544), + 146: uint16(38047), + 147: uint16(34935), + 148: uint16(32456), + 149: uint16(31181), + 150: uint16(32959), + 151: uint16(37325), + 152: uint16(20210), + 153: uint16(20247), + 154: uint16(33311), + 155: uint16(21608), + 156: uint16(24030), + 157: uint16(27954), + 158: uint16(35788), + 159: uint16(31909), + 160: uint16(36724), + 161: uint16(32920), + 162: uint16(24090), + 163: uint16(21650), + 164: uint16(30385), + 165: uint16(23449), + 166: uint16(26172), + 167: uint16(39588), + 168: uint16(29664), + 169: uint16(26666), + 170: uint16(34523), + 171: uint16(26417), + 172: uint16(29482), + 173: uint16(35832), + 174: uint16(35803), + 175: uint16(36880), + 176: uint16(31481), + 177: uint16(28891), + 178: uint16(29038), + 179: uint16(25284), + 180: uint16(30633), + 181: uint16(22065), + 182: uint16(20027), + 183: uint16(33879), + 184: uint16(26609), + 185: uint16(21161), + 186: uint16(34496), + 187: uint16(36142), + 188: uint16(38136), + 189: uint16(31569), + }, + 86: { + 0: uint16(35654), + 1: uint16(35655), + 2: uint16(35656), + 3: uint16(35657), + 4: uint16(35658), + 5: uint16(35659), + 6: uint16(35660), + 7: uint16(35661), + 8: uint16(35662), + 9: uint16(35663), + 10: uint16(35664), + 11: uint16(35665), + 12: uint16(35666), + 13: uint16(35667), + 14: uint16(35668), + 15: uint16(35669), + 16: uint16(35670), + 17: uint16(35671), + 18: uint16(35672), + 19: uint16(35673), + 20: uint16(35674), + 21: uint16(35675), + 22: uint16(35676), + 23: uint16(35677), + 24: uint16(35678), + 25: uint16(35679), + 26: uint16(35680), + 27: uint16(35681), + 28: uint16(35682), + 29: uint16(35683), + 30: uint16(35684), + 31: uint16(35685), + 32: uint16(35687), + 33: uint16(35688), + 34: uint16(35689), + 35: uint16(35690), + 36: uint16(35691), + 37: uint16(35693), + 38: uint16(35694), + 39: uint16(35695), + 40: uint16(35696), + 41: uint16(35697), + 42: uint16(35698), + 43: uint16(35699), + 44: uint16(35700), + 45: uint16(35701), + 46: uint16(35702), + 47: uint16(35703), + 48: uint16(35704), + 49: uint16(35705), + 50: uint16(35706), + 51: uint16(35707), + 52: uint16(35708), + 53: uint16(35709), + 54: uint16(35710), + 55: uint16(35711), + 56: uint16(35712), + 57: uint16(35713), + 58: uint16(35714), + 59: uint16(35715), + 60: uint16(35716), + 61: uint16(35717), + 62: uint16(35718), + 63: uint16(35719), + 64: uint16(35720), + 65: uint16(35721), + 66: uint16(35722), + 67: uint16(35723), + 68: uint16(35724), + 69: uint16(35725), + 70: uint16(35726), + 71: uint16(35727), + 72: uint16(35728), + 73: uint16(35729), + 74: uint16(35730), + 75: uint16(35731), + 76: uint16(35732), + 77: uint16(35733), + 78: uint16(35734), + 79: uint16(35735), + 80: uint16(35736), + 81: uint16(35737), + 82: uint16(35738), + 83: uint16(35739), + 84: uint16(35740), + 85: uint16(35741), + 86: uint16(35742), + 87: uint16(35743), + 88: uint16(35756), + 89: uint16(35761), + 90: uint16(35771), + 91: uint16(35783), + 92: uint16(35792), + 93: uint16(35818), + 94: uint16(35849), + 95: uint16(35870), + 96: uint16(20303), + 97: uint16(27880), + 98: uint16(31069), + 99: uint16(39547), + 100: uint16(25235), + 101: uint16(29226), + 102: uint16(25341), + 103: uint16(19987), + 104: uint16(30742), + 105: uint16(36716), + 106: uint16(25776), + 107: uint16(36186), + 108: uint16(31686), + 109: uint16(26729), + 110: uint16(24196), + 111: uint16(35013), + 112: uint16(22918), + 113: uint16(25758), + 114: uint16(22766), + 115: uint16(29366), + 116: uint16(26894), + 117: uint16(38181), + 118: uint16(36861), + 119: uint16(36184), + 120: uint16(22368), + 121: uint16(32512), + 122: uint16(35846), + 123: uint16(20934), + 124: uint16(25417), + 125: uint16(25305), + 126: uint16(21331), + 127: uint16(26700), + 128: uint16(29730), + 129: uint16(33537), + 130: uint16(37196), + 131: uint16(21828), + 132: uint16(30528), + 133: uint16(28796), + 134: uint16(27978), + 135: uint16(20857), + 136: uint16(21672), + 137: uint16(36164), + 138: uint16(23039), + 139: uint16(28363), + 140: uint16(28100), + 141: uint16(23388), + 142: uint16(32043), + 143: uint16(20180), + 144: uint16(31869), + 145: uint16(28371), + 146: uint16(23376), + 147: uint16(33258), + 148: uint16(28173), + 149: uint16(23383), + 150: uint16(39683), + 151: uint16(26837), + 152: uint16(36394), + 153: uint16(23447), + 154: uint16(32508), + 155: uint16(24635), + 156: uint16(32437), + 157: uint16(37049), + 158: uint16(36208), + 159: uint16(22863), + 160: uint16(25549), + 161: uint16(31199), + 162: uint16(36275), + 163: uint16(21330), + 164: uint16(26063), + 165: uint16(31062), + 166: uint16(35781), + 167: uint16(38459), + 168: uint16(32452), + 169: uint16(38075), + 170: uint16(32386), + 171: uint16(22068), + 172: uint16(37257), + 173: uint16(26368), + 174: uint16(32618), + 175: uint16(23562), + 176: uint16(36981), + 177: uint16(26152), + 178: uint16(24038), + 179: uint16(20304), + 180: uint16(26590), + 181: uint16(20570), + 182: uint16(20316), + 183: uint16(22352), + 184: uint16(24231), + 185: uint16(59408), + 186: uint16(59409), + 187: uint16(59410), + 188: uint16(59411), + 189: uint16(59412), + }, + 87: { + 0: uint16(35896), + 1: uint16(35897), + 2: uint16(35898), + 3: uint16(35899), + 4: uint16(35900), + 5: uint16(35901), + 6: uint16(35902), + 7: uint16(35903), + 8: uint16(35904), + 9: uint16(35906), + 10: uint16(35907), + 11: uint16(35908), + 12: uint16(35909), + 13: uint16(35912), + 14: uint16(35914), + 15: uint16(35915), + 16: uint16(35917), + 17: uint16(35918), + 18: uint16(35919), + 19: uint16(35920), + 20: uint16(35921), + 21: uint16(35922), + 22: uint16(35923), + 23: uint16(35924), + 24: uint16(35926), + 25: uint16(35927), + 26: uint16(35928), + 27: uint16(35929), + 28: uint16(35931), + 29: uint16(35932), + 30: uint16(35933), + 31: uint16(35934), + 32: uint16(35935), + 33: uint16(35936), + 34: uint16(35939), + 35: uint16(35940), + 36: uint16(35941), + 37: uint16(35942), + 38: uint16(35943), + 39: uint16(35944), + 40: uint16(35945), + 41: uint16(35948), + 42: uint16(35949), + 43: uint16(35950), + 44: uint16(35951), + 45: uint16(35952), + 46: uint16(35953), + 47: uint16(35954), + 48: uint16(35956), + 49: uint16(35957), + 50: uint16(35958), + 51: uint16(35959), + 52: uint16(35963), + 53: uint16(35964), + 54: uint16(35965), + 55: uint16(35966), + 56: uint16(35967), + 57: uint16(35968), + 58: uint16(35969), + 59: uint16(35971), + 60: uint16(35972), + 61: uint16(35974), + 62: uint16(35975), + 63: uint16(35976), + 64: uint16(35979), + 65: uint16(35981), + 66: uint16(35982), + 67: uint16(35983), + 68: uint16(35984), + 69: uint16(35985), + 70: uint16(35986), + 71: uint16(35987), + 72: uint16(35989), + 73: uint16(35990), + 74: uint16(35991), + 75: uint16(35993), + 76: uint16(35994), + 77: uint16(35995), + 78: uint16(35996), + 79: uint16(35997), + 80: uint16(35998), + 81: uint16(35999), + 82: uint16(36000), + 83: uint16(36001), + 84: uint16(36002), + 85: uint16(36003), + 86: uint16(36004), + 87: uint16(36005), + 88: uint16(36006), + 89: uint16(36007), + 90: uint16(36008), + 91: uint16(36009), + 92: uint16(36010), + 93: uint16(36011), + 94: uint16(36012), + 95: uint16(36013), + 96: uint16(20109), + 97: uint16(19980), + 98: uint16(20800), + 99: uint16(19984), + 100: uint16(24319), + 101: uint16(21317), + 102: uint16(19989), + 103: uint16(20120), + 104: uint16(19998), + 105: uint16(39730), + 106: uint16(23404), + 107: uint16(22121), + 108: uint16(20008), + 109: uint16(31162), + 110: uint16(20031), + 111: uint16(21269), + 112: uint16(20039), + 113: uint16(22829), + 114: uint16(29243), + 115: uint16(21358), + 116: uint16(27664), + 117: uint16(22239), + 118: uint16(32996), + 119: uint16(39319), + 120: uint16(27603), + 121: uint16(30590), + 122: uint16(40727), + 123: uint16(20022), + 124: uint16(20127), + 125: uint16(40720), + 126: uint16(20060), + 127: uint16(20073), + 128: uint16(20115), + 129: uint16(33416), + 130: uint16(23387), + 131: uint16(21868), + 132: uint16(22031), + 133: uint16(20164), + 134: uint16(21389), + 135: uint16(21405), + 136: uint16(21411), + 137: uint16(21413), + 138: uint16(21422), + 139: uint16(38757), + 140: uint16(36189), + 141: uint16(21274), + 142: uint16(21493), + 143: uint16(21286), + 144: uint16(21294), + 145: uint16(21310), + 146: uint16(36188), + 147: uint16(21350), + 148: uint16(21347), + 149: uint16(20994), + 150: uint16(21000), + 151: uint16(21006), + 152: uint16(21037), + 153: uint16(21043), + 154: uint16(21055), + 155: uint16(21056), + 156: uint16(21068), + 157: uint16(21086), + 158: uint16(21089), + 159: uint16(21084), + 160: uint16(33967), + 161: uint16(21117), + 162: uint16(21122), + 163: uint16(21121), + 164: uint16(21136), + 165: uint16(21139), + 166: uint16(20866), + 167: uint16(32596), + 168: uint16(20155), + 169: uint16(20163), + 170: uint16(20169), + 171: uint16(20162), + 172: uint16(20200), + 173: uint16(20193), + 174: uint16(20203), + 175: uint16(20190), + 176: uint16(20251), + 177: uint16(20211), + 178: uint16(20258), + 179: uint16(20324), + 180: uint16(20213), + 181: uint16(20261), + 182: uint16(20263), + 183: uint16(20233), + 184: uint16(20267), + 185: uint16(20318), + 186: uint16(20327), + 187: uint16(25912), + 188: uint16(20314), + 189: uint16(20317), + }, + 88: { + 0: uint16(36014), + 1: uint16(36015), + 2: uint16(36016), + 3: uint16(36017), + 4: uint16(36018), + 5: uint16(36019), + 6: uint16(36020), + 7: uint16(36021), + 8: uint16(36022), + 9: uint16(36023), + 10: uint16(36024), + 11: uint16(36025), + 12: uint16(36026), + 13: uint16(36027), + 14: uint16(36028), + 15: uint16(36029), + 16: uint16(36030), + 17: uint16(36031), + 18: uint16(36032), + 19: uint16(36033), + 20: uint16(36034), + 21: uint16(36035), + 22: uint16(36036), + 23: uint16(36037), + 24: uint16(36038), + 25: uint16(36039), + 26: uint16(36040), + 27: uint16(36041), + 28: uint16(36042), + 29: uint16(36043), + 30: uint16(36044), + 31: uint16(36045), + 32: uint16(36046), + 33: uint16(36047), + 34: uint16(36048), + 35: uint16(36049), + 36: uint16(36050), + 37: uint16(36051), + 38: uint16(36052), + 39: uint16(36053), + 40: uint16(36054), + 41: uint16(36055), + 42: uint16(36056), + 43: uint16(36057), + 44: uint16(36058), + 45: uint16(36059), + 46: uint16(36060), + 47: uint16(36061), + 48: uint16(36062), + 49: uint16(36063), + 50: uint16(36064), + 51: uint16(36065), + 52: uint16(36066), + 53: uint16(36067), + 54: uint16(36068), + 55: uint16(36069), + 56: uint16(36070), + 57: uint16(36071), + 58: uint16(36072), + 59: uint16(36073), + 60: uint16(36074), + 61: uint16(36075), + 62: uint16(36076), + 63: uint16(36077), + 64: uint16(36078), + 65: uint16(36079), + 66: uint16(36080), + 67: uint16(36081), + 68: uint16(36082), + 69: uint16(36083), + 70: uint16(36084), + 71: uint16(36085), + 72: uint16(36086), + 73: uint16(36087), + 74: uint16(36088), + 75: uint16(36089), + 76: uint16(36090), + 77: uint16(36091), + 78: uint16(36092), + 79: uint16(36093), + 80: uint16(36094), + 81: uint16(36095), + 82: uint16(36096), + 83: uint16(36097), + 84: uint16(36098), + 85: uint16(36099), + 86: uint16(36100), + 87: uint16(36101), + 88: uint16(36102), + 89: uint16(36103), + 90: uint16(36104), + 91: uint16(36105), + 92: uint16(36106), + 93: uint16(36107), + 94: uint16(36108), + 95: uint16(36109), + 96: uint16(20319), + 97: uint16(20311), + 98: uint16(20274), + 99: uint16(20285), + 100: uint16(20342), + 101: uint16(20340), + 102: uint16(20369), + 103: uint16(20361), + 104: uint16(20355), + 105: uint16(20367), + 106: uint16(20350), + 107: uint16(20347), + 108: uint16(20394), + 109: uint16(20348), + 110: uint16(20396), + 111: uint16(20372), + 112: uint16(20454), + 113: uint16(20456), + 114: uint16(20458), + 115: uint16(20421), + 116: uint16(20442), + 117: uint16(20451), + 118: uint16(20444), + 119: uint16(20433), + 120: uint16(20447), + 121: uint16(20472), + 122: uint16(20521), + 123: uint16(20556), + 124: uint16(20467), + 125: uint16(20524), + 126: uint16(20495), + 127: uint16(20526), + 128: uint16(20525), + 129: uint16(20478), + 130: uint16(20508), + 131: uint16(20492), + 132: uint16(20517), + 133: uint16(20520), + 134: uint16(20606), + 135: uint16(20547), + 136: uint16(20565), + 137: uint16(20552), + 138: uint16(20558), + 139: uint16(20588), + 140: uint16(20603), + 141: uint16(20645), + 142: uint16(20647), + 143: uint16(20649), + 144: uint16(20666), + 145: uint16(20694), + 146: uint16(20742), + 147: uint16(20717), + 148: uint16(20716), + 149: uint16(20710), + 150: uint16(20718), + 151: uint16(20743), + 152: uint16(20747), + 153: uint16(20189), + 154: uint16(27709), + 155: uint16(20312), + 156: uint16(20325), + 157: uint16(20430), + 158: uint16(40864), + 159: uint16(27718), + 160: uint16(31860), + 161: uint16(20846), + 162: uint16(24061), + 163: uint16(40649), + 164: uint16(39320), + 165: uint16(20865), + 166: uint16(22804), + 167: uint16(21241), + 168: uint16(21261), + 169: uint16(35335), + 170: uint16(21264), + 171: uint16(20971), + 172: uint16(22809), + 173: uint16(20821), + 174: uint16(20128), + 175: uint16(20822), + 176: uint16(20147), + 177: uint16(34926), + 178: uint16(34980), + 179: uint16(20149), + 180: uint16(33044), + 181: uint16(35026), + 182: uint16(31104), + 183: uint16(23348), + 184: uint16(34819), + 185: uint16(32696), + 186: uint16(20907), + 187: uint16(20913), + 188: uint16(20925), + 189: uint16(20924), + }, + 89: { + 0: uint16(36110), + 1: uint16(36111), + 2: uint16(36112), + 3: uint16(36113), + 4: uint16(36114), + 5: uint16(36115), + 6: uint16(36116), + 7: uint16(36117), + 8: uint16(36118), + 9: uint16(36119), + 10: uint16(36120), + 11: uint16(36121), + 12: uint16(36122), + 13: uint16(36123), + 14: uint16(36124), + 15: uint16(36128), + 16: uint16(36177), + 17: uint16(36178), + 18: uint16(36183), + 19: uint16(36191), + 20: uint16(36197), + 21: uint16(36200), + 22: uint16(36201), + 23: uint16(36202), + 24: uint16(36204), + 25: uint16(36206), + 26: uint16(36207), + 27: uint16(36209), + 28: uint16(36210), + 29: uint16(36216), + 30: uint16(36217), + 31: uint16(36218), + 32: uint16(36219), + 33: uint16(36220), + 34: uint16(36221), + 35: uint16(36222), + 36: uint16(36223), + 37: uint16(36224), + 38: uint16(36226), + 39: uint16(36227), + 40: uint16(36230), + 41: uint16(36231), + 42: uint16(36232), + 43: uint16(36233), + 44: uint16(36236), + 45: uint16(36237), + 46: uint16(36238), + 47: uint16(36239), + 48: uint16(36240), + 49: uint16(36242), + 50: uint16(36243), + 51: uint16(36245), + 52: uint16(36246), + 53: uint16(36247), + 54: uint16(36248), + 55: uint16(36249), + 56: uint16(36250), + 57: uint16(36251), + 58: uint16(36252), + 59: uint16(36253), + 60: uint16(36254), + 61: uint16(36256), + 62: uint16(36257), + 63: uint16(36258), + 64: uint16(36260), + 65: uint16(36261), + 66: uint16(36262), + 67: uint16(36263), + 68: uint16(36264), + 69: uint16(36265), + 70: uint16(36266), + 71: uint16(36267), + 72: uint16(36268), + 73: uint16(36269), + 74: uint16(36270), + 75: uint16(36271), + 76: uint16(36272), + 77: uint16(36274), + 78: uint16(36278), + 79: uint16(36279), + 80: uint16(36281), + 81: uint16(36283), + 82: uint16(36285), + 83: uint16(36288), + 84: uint16(36289), + 85: uint16(36290), + 86: uint16(36293), + 87: uint16(36295), + 88: uint16(36296), + 89: uint16(36297), + 90: uint16(36298), + 91: uint16(36301), + 92: uint16(36304), + 93: uint16(36306), + 94: uint16(36307), + 95: uint16(36308), + 96: uint16(20935), + 97: uint16(20886), + 98: uint16(20898), + 99: uint16(20901), + 100: uint16(35744), + 101: uint16(35750), + 102: uint16(35751), + 103: uint16(35754), + 104: uint16(35764), + 105: uint16(35765), + 106: uint16(35767), + 107: uint16(35778), + 108: uint16(35779), + 109: uint16(35787), + 110: uint16(35791), + 111: uint16(35790), + 112: uint16(35794), + 113: uint16(35795), + 114: uint16(35796), + 115: uint16(35798), + 116: uint16(35800), + 117: uint16(35801), + 118: uint16(35804), + 119: uint16(35807), + 120: uint16(35808), + 121: uint16(35812), + 122: uint16(35816), + 123: uint16(35817), + 124: uint16(35822), + 125: uint16(35824), + 126: uint16(35827), + 127: uint16(35830), + 128: uint16(35833), + 129: uint16(35836), + 130: uint16(35839), + 131: uint16(35840), + 132: uint16(35842), + 133: uint16(35844), + 134: uint16(35847), + 135: uint16(35852), + 136: uint16(35855), + 137: uint16(35857), + 138: uint16(35858), + 139: uint16(35860), + 140: uint16(35861), + 141: uint16(35862), + 142: uint16(35865), + 143: uint16(35867), + 144: uint16(35864), + 145: uint16(35869), + 146: uint16(35871), + 147: uint16(35872), + 148: uint16(35873), + 149: uint16(35877), + 150: uint16(35879), + 151: uint16(35882), + 152: uint16(35883), + 153: uint16(35886), + 154: uint16(35887), + 155: uint16(35890), + 156: uint16(35891), + 157: uint16(35893), + 158: uint16(35894), + 159: uint16(21353), + 160: uint16(21370), + 161: uint16(38429), + 162: uint16(38434), + 163: uint16(38433), + 164: uint16(38449), + 165: uint16(38442), + 166: uint16(38461), + 167: uint16(38460), + 168: uint16(38466), + 169: uint16(38473), + 170: uint16(38484), + 171: uint16(38495), + 172: uint16(38503), + 173: uint16(38508), + 174: uint16(38514), + 175: uint16(38516), + 176: uint16(38536), + 177: uint16(38541), + 178: uint16(38551), + 179: uint16(38576), + 180: uint16(37015), + 181: uint16(37019), + 182: uint16(37021), + 183: uint16(37017), + 184: uint16(37036), + 185: uint16(37025), + 186: uint16(37044), + 187: uint16(37043), + 188: uint16(37046), + 189: uint16(37050), + }, + 90: { + 0: uint16(36309), + 1: uint16(36312), + 2: uint16(36313), + 3: uint16(36316), + 4: uint16(36320), + 5: uint16(36321), + 6: uint16(36322), + 7: uint16(36325), + 8: uint16(36326), + 9: uint16(36327), + 10: uint16(36329), + 11: uint16(36333), + 12: uint16(36334), + 13: uint16(36336), + 14: uint16(36337), + 15: uint16(36338), + 16: uint16(36340), + 17: uint16(36342), + 18: uint16(36348), + 19: uint16(36350), + 20: uint16(36351), + 21: uint16(36352), + 22: uint16(36353), + 23: uint16(36354), + 24: uint16(36355), + 25: uint16(36356), + 26: uint16(36358), + 27: uint16(36359), + 28: uint16(36360), + 29: uint16(36363), + 30: uint16(36365), + 31: uint16(36366), + 32: uint16(36368), + 33: uint16(36369), + 34: uint16(36370), + 35: uint16(36371), + 36: uint16(36373), + 37: uint16(36374), + 38: uint16(36375), + 39: uint16(36376), + 40: uint16(36377), + 41: uint16(36378), + 42: uint16(36379), + 43: uint16(36380), + 44: uint16(36384), + 45: uint16(36385), + 46: uint16(36388), + 47: uint16(36389), + 48: uint16(36390), + 49: uint16(36391), + 50: uint16(36392), + 51: uint16(36395), + 52: uint16(36397), + 53: uint16(36400), + 54: uint16(36402), + 55: uint16(36403), + 56: uint16(36404), + 57: uint16(36406), + 58: uint16(36407), + 59: uint16(36408), + 60: uint16(36411), + 61: uint16(36412), + 62: uint16(36414), + 63: uint16(36415), + 64: uint16(36419), + 65: uint16(36421), + 66: uint16(36422), + 67: uint16(36428), + 68: uint16(36429), + 69: uint16(36430), + 70: uint16(36431), + 71: uint16(36432), + 72: uint16(36435), + 73: uint16(36436), + 74: uint16(36437), + 75: uint16(36438), + 76: uint16(36439), + 77: uint16(36440), + 78: uint16(36442), + 79: uint16(36443), + 80: uint16(36444), + 81: uint16(36445), + 82: uint16(36446), + 83: uint16(36447), + 84: uint16(36448), + 85: uint16(36449), + 86: uint16(36450), + 87: uint16(36451), + 88: uint16(36452), + 89: uint16(36453), + 90: uint16(36455), + 91: uint16(36456), + 92: uint16(36458), + 93: uint16(36459), + 94: uint16(36462), + 95: uint16(36465), + 96: uint16(37048), + 97: uint16(37040), + 98: uint16(37071), + 99: uint16(37061), + 100: uint16(37054), + 101: uint16(37072), + 102: uint16(37060), + 103: uint16(37063), + 104: uint16(37075), + 105: uint16(37094), + 106: uint16(37090), + 107: uint16(37084), + 108: uint16(37079), + 109: uint16(37083), + 110: uint16(37099), + 111: uint16(37103), + 112: uint16(37118), + 113: uint16(37124), + 114: uint16(37154), + 115: uint16(37150), + 116: uint16(37155), + 117: uint16(37169), + 118: uint16(37167), + 119: uint16(37177), + 120: uint16(37187), + 121: uint16(37190), + 122: uint16(21005), + 123: uint16(22850), + 124: uint16(21154), + 125: uint16(21164), + 126: uint16(21165), + 127: uint16(21182), + 128: uint16(21759), + 129: uint16(21200), + 130: uint16(21206), + 131: uint16(21232), + 132: uint16(21471), + 133: uint16(29166), + 134: uint16(30669), + 135: uint16(24308), + 136: uint16(20981), + 137: uint16(20988), + 138: uint16(39727), + 139: uint16(21430), + 140: uint16(24321), + 141: uint16(30042), + 142: uint16(24047), + 143: uint16(22348), + 144: uint16(22441), + 145: uint16(22433), + 146: uint16(22654), + 147: uint16(22716), + 148: uint16(22725), + 149: uint16(22737), + 150: uint16(22313), + 151: uint16(22316), + 152: uint16(22314), + 153: uint16(22323), + 154: uint16(22329), + 155: uint16(22318), + 156: uint16(22319), + 157: uint16(22364), + 158: uint16(22331), + 159: uint16(22338), + 160: uint16(22377), + 161: uint16(22405), + 162: uint16(22379), + 163: uint16(22406), + 164: uint16(22396), + 165: uint16(22395), + 166: uint16(22376), + 167: uint16(22381), + 168: uint16(22390), + 169: uint16(22387), + 170: uint16(22445), + 171: uint16(22436), + 172: uint16(22412), + 173: uint16(22450), + 174: uint16(22479), + 175: uint16(22439), + 176: uint16(22452), + 177: uint16(22419), + 178: uint16(22432), + 179: uint16(22485), + 180: uint16(22488), + 181: uint16(22490), + 182: uint16(22489), + 183: uint16(22482), + 184: uint16(22456), + 185: uint16(22516), + 186: uint16(22511), + 187: uint16(22520), + 188: uint16(22500), + 189: uint16(22493), + }, + 91: { + 0: uint16(36467), + 1: uint16(36469), + 2: uint16(36471), + 3: uint16(36472), + 4: uint16(36473), + 5: uint16(36474), + 6: uint16(36475), + 7: uint16(36477), + 8: uint16(36478), + 9: uint16(36480), + 10: uint16(36482), + 11: uint16(36483), + 12: uint16(36484), + 13: uint16(36486), + 14: uint16(36488), + 15: uint16(36489), + 16: uint16(36490), + 17: uint16(36491), + 18: uint16(36492), + 19: uint16(36493), + 20: uint16(36494), + 21: uint16(36497), + 22: uint16(36498), + 23: uint16(36499), + 24: uint16(36501), + 25: uint16(36502), + 26: uint16(36503), + 27: uint16(36504), + 28: uint16(36505), + 29: uint16(36506), + 30: uint16(36507), + 31: uint16(36509), + 32: uint16(36511), + 33: uint16(36512), + 34: uint16(36513), + 35: uint16(36514), + 36: uint16(36515), + 37: uint16(36516), + 38: uint16(36517), + 39: uint16(36518), + 40: uint16(36519), + 41: uint16(36520), + 42: uint16(36521), + 43: uint16(36522), + 44: uint16(36525), + 45: uint16(36526), + 46: uint16(36528), + 47: uint16(36529), + 48: uint16(36531), + 49: uint16(36532), + 50: uint16(36533), + 51: uint16(36534), + 52: uint16(36535), + 53: uint16(36536), + 54: uint16(36537), + 55: uint16(36539), + 56: uint16(36540), + 57: uint16(36541), + 58: uint16(36542), + 59: uint16(36543), + 60: uint16(36544), + 61: uint16(36545), + 62: uint16(36546), + 63: uint16(36547), + 64: uint16(36548), + 65: uint16(36549), + 66: uint16(36550), + 67: uint16(36551), + 68: uint16(36552), + 69: uint16(36553), + 70: uint16(36554), + 71: uint16(36555), + 72: uint16(36556), + 73: uint16(36557), + 74: uint16(36559), + 75: uint16(36560), + 76: uint16(36561), + 77: uint16(36562), + 78: uint16(36563), + 79: uint16(36564), + 80: uint16(36565), + 81: uint16(36566), + 82: uint16(36567), + 83: uint16(36568), + 84: uint16(36569), + 85: uint16(36570), + 86: uint16(36571), + 87: uint16(36572), + 88: uint16(36573), + 89: uint16(36574), + 90: uint16(36575), + 91: uint16(36576), + 92: uint16(36577), + 93: uint16(36578), + 94: uint16(36579), + 95: uint16(36580), + 96: uint16(22539), + 97: uint16(22541), + 98: uint16(22525), + 99: uint16(22509), + 100: uint16(22528), + 101: uint16(22558), + 102: uint16(22553), + 103: uint16(22596), + 104: uint16(22560), + 105: uint16(22629), + 106: uint16(22636), + 107: uint16(22657), + 108: uint16(22665), + 109: uint16(22682), + 110: uint16(22656), + 111: uint16(39336), + 112: uint16(40729), + 113: uint16(25087), + 114: uint16(33401), + 115: uint16(33405), + 116: uint16(33407), + 117: uint16(33423), + 118: uint16(33418), + 119: uint16(33448), + 120: uint16(33412), + 121: uint16(33422), + 122: uint16(33425), + 123: uint16(33431), + 124: uint16(33433), + 125: uint16(33451), + 126: uint16(33464), + 127: uint16(33470), + 128: uint16(33456), + 129: uint16(33480), + 130: uint16(33482), + 131: uint16(33507), + 132: uint16(33432), + 133: uint16(33463), + 134: uint16(33454), + 135: uint16(33483), + 136: uint16(33484), + 137: uint16(33473), + 138: uint16(33449), + 139: uint16(33460), + 140: uint16(33441), + 141: uint16(33450), + 142: uint16(33439), + 143: uint16(33476), + 144: uint16(33486), + 145: uint16(33444), + 146: uint16(33505), + 147: uint16(33545), + 148: uint16(33527), + 149: uint16(33508), + 150: uint16(33551), + 151: uint16(33543), + 152: uint16(33500), + 153: uint16(33524), + 154: uint16(33490), + 155: uint16(33496), + 156: uint16(33548), + 157: uint16(33531), + 158: uint16(33491), + 159: uint16(33553), + 160: uint16(33562), + 161: uint16(33542), + 162: uint16(33556), + 163: uint16(33557), + 164: uint16(33504), + 165: uint16(33493), + 166: uint16(33564), + 167: uint16(33617), + 168: uint16(33627), + 169: uint16(33628), + 170: uint16(33544), + 171: uint16(33682), + 172: uint16(33596), + 173: uint16(33588), + 174: uint16(33585), + 175: uint16(33691), + 176: uint16(33630), + 177: uint16(33583), + 178: uint16(33615), + 179: uint16(33607), + 180: uint16(33603), + 181: uint16(33631), + 182: uint16(33600), + 183: uint16(33559), + 184: uint16(33632), + 185: uint16(33581), + 186: uint16(33594), + 187: uint16(33587), + 188: uint16(33638), + 189: uint16(33637), + }, + 92: { + 0: uint16(36581), + 1: uint16(36582), + 2: uint16(36583), + 3: uint16(36584), + 4: uint16(36585), + 5: uint16(36586), + 6: uint16(36587), + 7: uint16(36588), + 8: uint16(36589), + 9: uint16(36590), + 10: uint16(36591), + 11: uint16(36592), + 12: uint16(36593), + 13: uint16(36594), + 14: uint16(36595), + 15: uint16(36596), + 16: uint16(36597), + 17: uint16(36598), + 18: uint16(36599), + 19: uint16(36600), + 20: uint16(36601), + 21: uint16(36602), + 22: uint16(36603), + 23: uint16(36604), + 24: uint16(36605), + 25: uint16(36606), + 26: uint16(36607), + 27: uint16(36608), + 28: uint16(36609), + 29: uint16(36610), + 30: uint16(36611), + 31: uint16(36612), + 32: uint16(36613), + 33: uint16(36614), + 34: uint16(36615), + 35: uint16(36616), + 36: uint16(36617), + 37: uint16(36618), + 38: uint16(36619), + 39: uint16(36620), + 40: uint16(36621), + 41: uint16(36622), + 42: uint16(36623), + 43: uint16(36624), + 44: uint16(36625), + 45: uint16(36626), + 46: uint16(36627), + 47: uint16(36628), + 48: uint16(36629), + 49: uint16(36630), + 50: uint16(36631), + 51: uint16(36632), + 52: uint16(36633), + 53: uint16(36634), + 54: uint16(36635), + 55: uint16(36636), + 56: uint16(36637), + 57: uint16(36638), + 58: uint16(36639), + 59: uint16(36640), + 60: uint16(36641), + 61: uint16(36642), + 62: uint16(36643), + 63: uint16(36644), + 64: uint16(36645), + 65: uint16(36646), + 66: uint16(36647), + 67: uint16(36648), + 68: uint16(36649), + 69: uint16(36650), + 70: uint16(36651), + 71: uint16(36652), + 72: uint16(36653), + 73: uint16(36654), + 74: uint16(36655), + 75: uint16(36656), + 76: uint16(36657), + 77: uint16(36658), + 78: uint16(36659), + 79: uint16(36660), + 80: uint16(36661), + 81: uint16(36662), + 82: uint16(36663), + 83: uint16(36664), + 84: uint16(36665), + 85: uint16(36666), + 86: uint16(36667), + 87: uint16(36668), + 88: uint16(36669), + 89: uint16(36670), + 90: uint16(36671), + 91: uint16(36672), + 92: uint16(36673), + 93: uint16(36674), + 94: uint16(36675), + 95: uint16(36676), + 96: uint16(33640), + 97: uint16(33563), + 98: uint16(33641), + 99: uint16(33644), + 100: uint16(33642), + 101: uint16(33645), + 102: uint16(33646), + 103: uint16(33712), + 104: uint16(33656), + 105: uint16(33715), + 106: uint16(33716), + 107: uint16(33696), + 108: uint16(33706), + 109: uint16(33683), + 110: uint16(33692), + 111: uint16(33669), + 112: uint16(33660), + 113: uint16(33718), + 114: uint16(33705), + 115: uint16(33661), + 116: uint16(33720), + 117: uint16(33659), + 118: uint16(33688), + 119: uint16(33694), + 120: uint16(33704), + 121: uint16(33722), + 122: uint16(33724), + 123: uint16(33729), + 124: uint16(33793), + 125: uint16(33765), + 126: uint16(33752), + 127: uint16(22535), + 128: uint16(33816), + 129: uint16(33803), + 130: uint16(33757), + 131: uint16(33789), + 132: uint16(33750), + 133: uint16(33820), + 134: uint16(33848), + 135: uint16(33809), + 136: uint16(33798), + 137: uint16(33748), + 138: uint16(33759), + 139: uint16(33807), + 140: uint16(33795), + 141: uint16(33784), + 142: uint16(33785), + 143: uint16(33770), + 144: uint16(33733), + 145: uint16(33728), + 146: uint16(33830), + 147: uint16(33776), + 148: uint16(33761), + 149: uint16(33884), + 150: uint16(33873), + 151: uint16(33882), + 152: uint16(33881), + 153: uint16(33907), + 154: uint16(33927), + 155: uint16(33928), + 156: uint16(33914), + 157: uint16(33929), + 158: uint16(33912), + 159: uint16(33852), + 160: uint16(33862), + 161: uint16(33897), + 162: uint16(33910), + 163: uint16(33932), + 164: uint16(33934), + 165: uint16(33841), + 166: uint16(33901), + 167: uint16(33985), + 168: uint16(33997), + 169: uint16(34000), + 170: uint16(34022), + 171: uint16(33981), + 172: uint16(34003), + 173: uint16(33994), + 174: uint16(33983), + 175: uint16(33978), + 176: uint16(34016), + 177: uint16(33953), + 178: uint16(33977), + 179: uint16(33972), + 180: uint16(33943), + 181: uint16(34021), + 182: uint16(34019), + 183: uint16(34060), + 184: uint16(29965), + 185: uint16(34104), + 186: uint16(34032), + 187: uint16(34105), + 188: uint16(34079), + 189: uint16(34106), + }, + 93: { + 0: uint16(36677), + 1: uint16(36678), + 2: uint16(36679), + 3: uint16(36680), + 4: uint16(36681), + 5: uint16(36682), + 6: uint16(36683), + 7: uint16(36684), + 8: uint16(36685), + 9: uint16(36686), + 10: uint16(36687), + 11: uint16(36688), + 12: uint16(36689), + 13: uint16(36690), + 14: uint16(36691), + 15: uint16(36692), + 16: uint16(36693), + 17: uint16(36694), + 18: uint16(36695), + 19: uint16(36696), + 20: uint16(36697), + 21: uint16(36698), + 22: uint16(36699), + 23: uint16(36700), + 24: uint16(36701), + 25: uint16(36702), + 26: uint16(36703), + 27: uint16(36704), + 28: uint16(36705), + 29: uint16(36706), + 30: uint16(36707), + 31: uint16(36708), + 32: uint16(36709), + 33: uint16(36714), + 34: uint16(36736), + 35: uint16(36748), + 36: uint16(36754), + 37: uint16(36765), + 38: uint16(36768), + 39: uint16(36769), + 40: uint16(36770), + 41: uint16(36772), + 42: uint16(36773), + 43: uint16(36774), + 44: uint16(36775), + 45: uint16(36778), + 46: uint16(36780), + 47: uint16(36781), + 48: uint16(36782), + 49: uint16(36783), + 50: uint16(36786), + 51: uint16(36787), + 52: uint16(36788), + 53: uint16(36789), + 54: uint16(36791), + 55: uint16(36792), + 56: uint16(36794), + 57: uint16(36795), + 58: uint16(36796), + 59: uint16(36799), + 60: uint16(36800), + 61: uint16(36803), + 62: uint16(36806), + 63: uint16(36809), + 64: uint16(36810), + 65: uint16(36811), + 66: uint16(36812), + 67: uint16(36813), + 68: uint16(36815), + 69: uint16(36818), + 70: uint16(36822), + 71: uint16(36823), + 72: uint16(36826), + 73: uint16(36832), + 74: uint16(36833), + 75: uint16(36835), + 76: uint16(36839), + 77: uint16(36844), + 78: uint16(36847), + 79: uint16(36849), + 80: uint16(36850), + 81: uint16(36852), + 82: uint16(36853), + 83: uint16(36854), + 84: uint16(36858), + 85: uint16(36859), + 86: uint16(36860), + 87: uint16(36862), + 88: uint16(36863), + 89: uint16(36871), + 90: uint16(36872), + 91: uint16(36876), + 92: uint16(36878), + 93: uint16(36883), + 94: uint16(36885), + 95: uint16(36888), + 96: uint16(34134), + 97: uint16(34107), + 98: uint16(34047), + 99: uint16(34044), + 100: uint16(34137), + 101: uint16(34120), + 102: uint16(34152), + 103: uint16(34148), + 104: uint16(34142), + 105: uint16(34170), + 106: uint16(30626), + 107: uint16(34115), + 108: uint16(34162), + 109: uint16(34171), + 110: uint16(34212), + 111: uint16(34216), + 112: uint16(34183), + 113: uint16(34191), + 114: uint16(34169), + 115: uint16(34222), + 116: uint16(34204), + 117: uint16(34181), + 118: uint16(34233), + 119: uint16(34231), + 120: uint16(34224), + 121: uint16(34259), + 122: uint16(34241), + 123: uint16(34268), + 124: uint16(34303), + 125: uint16(34343), + 126: uint16(34309), + 127: uint16(34345), + 128: uint16(34326), + 129: uint16(34364), + 130: uint16(24318), + 131: uint16(24328), + 132: uint16(22844), + 133: uint16(22849), + 134: uint16(32823), + 135: uint16(22869), + 136: uint16(22874), + 137: uint16(22872), + 138: uint16(21263), + 139: uint16(23586), + 140: uint16(23589), + 141: uint16(23596), + 142: uint16(23604), + 143: uint16(25164), + 144: uint16(25194), + 145: uint16(25247), + 146: uint16(25275), + 147: uint16(25290), + 148: uint16(25306), + 149: uint16(25303), + 150: uint16(25326), + 151: uint16(25378), + 152: uint16(25334), + 153: uint16(25401), + 154: uint16(25419), + 155: uint16(25411), + 156: uint16(25517), + 157: uint16(25590), + 158: uint16(25457), + 159: uint16(25466), + 160: uint16(25486), + 161: uint16(25524), + 162: uint16(25453), + 163: uint16(25516), + 164: uint16(25482), + 165: uint16(25449), + 166: uint16(25518), + 167: uint16(25532), + 168: uint16(25586), + 169: uint16(25592), + 170: uint16(25568), + 171: uint16(25599), + 172: uint16(25540), + 173: uint16(25566), + 174: uint16(25550), + 175: uint16(25682), + 176: uint16(25542), + 177: uint16(25534), + 178: uint16(25669), + 179: uint16(25665), + 180: uint16(25611), + 181: uint16(25627), + 182: uint16(25632), + 183: uint16(25612), + 184: uint16(25638), + 185: uint16(25633), + 186: uint16(25694), + 187: uint16(25732), + 188: uint16(25709), + 189: uint16(25750), + }, + 94: { + 0: uint16(36889), + 1: uint16(36892), + 2: uint16(36899), + 3: uint16(36900), + 4: uint16(36901), + 5: uint16(36903), + 6: uint16(36904), + 7: uint16(36905), + 8: uint16(36906), + 9: uint16(36907), + 10: uint16(36908), + 11: uint16(36912), + 12: uint16(36913), + 13: uint16(36914), + 14: uint16(36915), + 15: uint16(36916), + 16: uint16(36919), + 17: uint16(36921), + 18: uint16(36922), + 19: uint16(36925), + 20: uint16(36927), + 21: uint16(36928), + 22: uint16(36931), + 23: uint16(36933), + 24: uint16(36934), + 25: uint16(36936), + 26: uint16(36937), + 27: uint16(36938), + 28: uint16(36939), + 29: uint16(36940), + 30: uint16(36942), + 31: uint16(36948), + 32: uint16(36949), + 33: uint16(36950), + 34: uint16(36953), + 35: uint16(36954), + 36: uint16(36956), + 37: uint16(36957), + 38: uint16(36958), + 39: uint16(36959), + 40: uint16(36960), + 41: uint16(36961), + 42: uint16(36964), + 43: uint16(36966), + 44: uint16(36967), + 45: uint16(36969), + 46: uint16(36970), + 47: uint16(36971), + 48: uint16(36972), + 49: uint16(36975), + 50: uint16(36976), + 51: uint16(36977), + 52: uint16(36978), + 53: uint16(36979), + 54: uint16(36982), + 55: uint16(36983), + 56: uint16(36984), + 57: uint16(36985), + 58: uint16(36986), + 59: uint16(36987), + 60: uint16(36988), + 61: uint16(36990), + 62: uint16(36993), + 63: uint16(36996), + 64: uint16(36997), + 65: uint16(36998), + 66: uint16(36999), + 67: uint16(37001), + 68: uint16(37002), + 69: uint16(37004), + 70: uint16(37005), + 71: uint16(37006), + 72: uint16(37007), + 73: uint16(37008), + 74: uint16(37010), + 75: uint16(37012), + 76: uint16(37014), + 77: uint16(37016), + 78: uint16(37018), + 79: uint16(37020), + 80: uint16(37022), + 81: uint16(37023), + 82: uint16(37024), + 83: uint16(37028), + 84: uint16(37029), + 85: uint16(37031), + 86: uint16(37032), + 87: uint16(37033), + 88: uint16(37035), + 89: uint16(37037), + 90: uint16(37042), + 91: uint16(37047), + 92: uint16(37052), + 93: uint16(37053), + 94: uint16(37055), + 95: uint16(37056), + 96: uint16(25722), + 97: uint16(25783), + 98: uint16(25784), + 99: uint16(25753), + 100: uint16(25786), + 101: uint16(25792), + 102: uint16(25808), + 103: uint16(25815), + 104: uint16(25828), + 105: uint16(25826), + 106: uint16(25865), + 107: uint16(25893), + 108: uint16(25902), + 109: uint16(24331), + 110: uint16(24530), + 111: uint16(29977), + 112: uint16(24337), + 113: uint16(21343), + 114: uint16(21489), + 115: uint16(21501), + 116: uint16(21481), + 117: uint16(21480), + 118: uint16(21499), + 119: uint16(21522), + 120: uint16(21526), + 121: uint16(21510), + 122: uint16(21579), + 123: uint16(21586), + 124: uint16(21587), + 125: uint16(21588), + 126: uint16(21590), + 127: uint16(21571), + 128: uint16(21537), + 129: uint16(21591), + 130: uint16(21593), + 131: uint16(21539), + 132: uint16(21554), + 133: uint16(21634), + 134: uint16(21652), + 135: uint16(21623), + 136: uint16(21617), + 137: uint16(21604), + 138: uint16(21658), + 139: uint16(21659), + 140: uint16(21636), + 141: uint16(21622), + 142: uint16(21606), + 143: uint16(21661), + 144: uint16(21712), + 145: uint16(21677), + 146: uint16(21698), + 147: uint16(21684), + 148: uint16(21714), + 149: uint16(21671), + 150: uint16(21670), + 151: uint16(21715), + 152: uint16(21716), + 153: uint16(21618), + 154: uint16(21667), + 155: uint16(21717), + 156: uint16(21691), + 157: uint16(21695), + 158: uint16(21708), + 159: uint16(21721), + 160: uint16(21722), + 161: uint16(21724), + 162: uint16(21673), + 163: uint16(21674), + 164: uint16(21668), + 165: uint16(21725), + 166: uint16(21711), + 167: uint16(21726), + 168: uint16(21787), + 169: uint16(21735), + 170: uint16(21792), + 171: uint16(21757), + 172: uint16(21780), + 173: uint16(21747), + 174: uint16(21794), + 175: uint16(21795), + 176: uint16(21775), + 177: uint16(21777), + 178: uint16(21799), + 179: uint16(21802), + 180: uint16(21863), + 181: uint16(21903), + 182: uint16(21941), + 183: uint16(21833), + 184: uint16(21869), + 185: uint16(21825), + 186: uint16(21845), + 187: uint16(21823), + 188: uint16(21840), + 189: uint16(21820), + }, + 95: { + 0: uint16(37058), + 1: uint16(37059), + 2: uint16(37062), + 3: uint16(37064), + 4: uint16(37065), + 5: uint16(37067), + 6: uint16(37068), + 7: uint16(37069), + 8: uint16(37074), + 9: uint16(37076), + 10: uint16(37077), + 11: uint16(37078), + 12: uint16(37080), + 13: uint16(37081), + 14: uint16(37082), + 15: uint16(37086), + 16: uint16(37087), + 17: uint16(37088), + 18: uint16(37091), + 19: uint16(37092), + 20: uint16(37093), + 21: uint16(37097), + 22: uint16(37098), + 23: uint16(37100), + 24: uint16(37102), + 25: uint16(37104), + 26: uint16(37105), + 27: uint16(37106), + 28: uint16(37107), + 29: uint16(37109), + 30: uint16(37110), + 31: uint16(37111), + 32: uint16(37113), + 33: uint16(37114), + 34: uint16(37115), + 35: uint16(37116), + 36: uint16(37119), + 37: uint16(37120), + 38: uint16(37121), + 39: uint16(37123), + 40: uint16(37125), + 41: uint16(37126), + 42: uint16(37127), + 43: uint16(37128), + 44: uint16(37129), + 45: uint16(37130), + 46: uint16(37131), + 47: uint16(37132), + 48: uint16(37133), + 49: uint16(37134), + 50: uint16(37135), + 51: uint16(37136), + 52: uint16(37137), + 53: uint16(37138), + 54: uint16(37139), + 55: uint16(37140), + 56: uint16(37141), + 57: uint16(37142), + 58: uint16(37143), + 59: uint16(37144), + 60: uint16(37146), + 61: uint16(37147), + 62: uint16(37148), + 63: uint16(37149), + 64: uint16(37151), + 65: uint16(37152), + 66: uint16(37153), + 67: uint16(37156), + 68: uint16(37157), + 69: uint16(37158), + 70: uint16(37159), + 71: uint16(37160), + 72: uint16(37161), + 73: uint16(37162), + 74: uint16(37163), + 75: uint16(37164), + 76: uint16(37165), + 77: uint16(37166), + 78: uint16(37168), + 79: uint16(37170), + 80: uint16(37171), + 81: uint16(37172), + 82: uint16(37173), + 83: uint16(37174), + 84: uint16(37175), + 85: uint16(37176), + 86: uint16(37178), + 87: uint16(37179), + 88: uint16(37180), + 89: uint16(37181), + 90: uint16(37182), + 91: uint16(37183), + 92: uint16(37184), + 93: uint16(37185), + 94: uint16(37186), + 95: uint16(37188), + 96: uint16(21815), + 97: uint16(21846), + 98: uint16(21877), + 99: uint16(21878), + 100: uint16(21879), + 101: uint16(21811), + 102: uint16(21808), + 103: uint16(21852), + 104: uint16(21899), + 105: uint16(21970), + 106: uint16(21891), + 107: uint16(21937), + 108: uint16(21945), + 109: uint16(21896), + 110: uint16(21889), + 111: uint16(21919), + 112: uint16(21886), + 113: uint16(21974), + 114: uint16(21905), + 115: uint16(21883), + 116: uint16(21983), + 117: uint16(21949), + 118: uint16(21950), + 119: uint16(21908), + 120: uint16(21913), + 121: uint16(21994), + 122: uint16(22007), + 123: uint16(21961), + 124: uint16(22047), + 125: uint16(21969), + 126: uint16(21995), + 127: uint16(21996), + 128: uint16(21972), + 129: uint16(21990), + 130: uint16(21981), + 131: uint16(21956), + 132: uint16(21999), + 133: uint16(21989), + 134: uint16(22002), + 135: uint16(22003), + 136: uint16(21964), + 137: uint16(21965), + 138: uint16(21992), + 139: uint16(22005), + 140: uint16(21988), + 141: uint16(36756), + 142: uint16(22046), + 143: uint16(22024), + 144: uint16(22028), + 145: uint16(22017), + 146: uint16(22052), + 147: uint16(22051), + 148: uint16(22014), + 149: uint16(22016), + 150: uint16(22055), + 151: uint16(22061), + 152: uint16(22104), + 153: uint16(22073), + 154: uint16(22103), + 155: uint16(22060), + 156: uint16(22093), + 157: uint16(22114), + 158: uint16(22105), + 159: uint16(22108), + 160: uint16(22092), + 161: uint16(22100), + 162: uint16(22150), + 163: uint16(22116), + 164: uint16(22129), + 165: uint16(22123), + 166: uint16(22139), + 167: uint16(22140), + 168: uint16(22149), + 169: uint16(22163), + 170: uint16(22191), + 171: uint16(22228), + 172: uint16(22231), + 173: uint16(22237), + 174: uint16(22241), + 175: uint16(22261), + 176: uint16(22251), + 177: uint16(22265), + 178: uint16(22271), + 179: uint16(22276), + 180: uint16(22282), + 181: uint16(22281), + 182: uint16(22300), + 183: uint16(24079), + 184: uint16(24089), + 185: uint16(24084), + 186: uint16(24081), + 187: uint16(24113), + 188: uint16(24123), + 189: uint16(24124), + }, + 96: { + 0: uint16(37189), + 1: uint16(37191), + 2: uint16(37192), + 3: uint16(37201), + 4: uint16(37203), + 5: uint16(37204), + 6: uint16(37205), + 7: uint16(37206), + 8: uint16(37208), + 9: uint16(37209), + 10: uint16(37211), + 11: uint16(37212), + 12: uint16(37215), + 13: uint16(37216), + 14: uint16(37222), + 15: uint16(37223), + 16: uint16(37224), + 17: uint16(37227), + 18: uint16(37229), + 19: uint16(37235), + 20: uint16(37242), + 21: uint16(37243), + 22: uint16(37244), + 23: uint16(37248), + 24: uint16(37249), + 25: uint16(37250), + 26: uint16(37251), + 27: uint16(37252), + 28: uint16(37254), + 29: uint16(37256), + 30: uint16(37258), + 31: uint16(37262), + 32: uint16(37263), + 33: uint16(37267), + 34: uint16(37268), + 35: uint16(37269), + 36: uint16(37270), + 37: uint16(37271), + 38: uint16(37272), + 39: uint16(37273), + 40: uint16(37276), + 41: uint16(37277), + 42: uint16(37278), + 43: uint16(37279), + 44: uint16(37280), + 45: uint16(37281), + 46: uint16(37284), + 47: uint16(37285), + 48: uint16(37286), + 49: uint16(37287), + 50: uint16(37288), + 51: uint16(37289), + 52: uint16(37291), + 53: uint16(37292), + 54: uint16(37296), + 55: uint16(37297), + 56: uint16(37298), + 57: uint16(37299), + 58: uint16(37302), + 59: uint16(37303), + 60: uint16(37304), + 61: uint16(37305), + 62: uint16(37307), + 63: uint16(37308), + 64: uint16(37309), + 65: uint16(37310), + 66: uint16(37311), + 67: uint16(37312), + 68: uint16(37313), + 69: uint16(37314), + 70: uint16(37315), + 71: uint16(37316), + 72: uint16(37317), + 73: uint16(37318), + 74: uint16(37320), + 75: uint16(37323), + 76: uint16(37328), + 77: uint16(37330), + 78: uint16(37331), + 79: uint16(37332), + 80: uint16(37333), + 81: uint16(37334), + 82: uint16(37335), + 83: uint16(37336), + 84: uint16(37337), + 85: uint16(37338), + 86: uint16(37339), + 87: uint16(37341), + 88: uint16(37342), + 89: uint16(37343), + 90: uint16(37344), + 91: uint16(37345), + 92: uint16(37346), + 93: uint16(37347), + 94: uint16(37348), + 95: uint16(37349), + 96: uint16(24119), + 97: uint16(24132), + 98: uint16(24148), + 99: uint16(24155), + 100: uint16(24158), + 101: uint16(24161), + 102: uint16(23692), + 103: uint16(23674), + 104: uint16(23693), + 105: uint16(23696), + 106: uint16(23702), + 107: uint16(23688), + 108: uint16(23704), + 109: uint16(23705), + 110: uint16(23697), + 111: uint16(23706), + 112: uint16(23708), + 113: uint16(23733), + 114: uint16(23714), + 115: uint16(23741), + 116: uint16(23724), + 117: uint16(23723), + 118: uint16(23729), + 119: uint16(23715), + 120: uint16(23745), + 121: uint16(23735), + 122: uint16(23748), + 123: uint16(23762), + 124: uint16(23780), + 125: uint16(23755), + 126: uint16(23781), + 127: uint16(23810), + 128: uint16(23811), + 129: uint16(23847), + 130: uint16(23846), + 131: uint16(23854), + 132: uint16(23844), + 133: uint16(23838), + 134: uint16(23814), + 135: uint16(23835), + 136: uint16(23896), + 137: uint16(23870), + 138: uint16(23860), + 139: uint16(23869), + 140: uint16(23916), + 141: uint16(23899), + 142: uint16(23919), + 143: uint16(23901), + 144: uint16(23915), + 145: uint16(23883), + 146: uint16(23882), + 147: uint16(23913), + 148: uint16(23924), + 149: uint16(23938), + 150: uint16(23961), + 151: uint16(23965), + 152: uint16(35955), + 153: uint16(23991), + 154: uint16(24005), + 155: uint16(24435), + 156: uint16(24439), + 157: uint16(24450), + 158: uint16(24455), + 159: uint16(24457), + 160: uint16(24460), + 161: uint16(24469), + 162: uint16(24473), + 163: uint16(24476), + 164: uint16(24488), + 165: uint16(24493), + 166: uint16(24501), + 167: uint16(24508), + 168: uint16(34914), + 169: uint16(24417), + 170: uint16(29357), + 171: uint16(29360), + 172: uint16(29364), + 173: uint16(29367), + 174: uint16(29368), + 175: uint16(29379), + 176: uint16(29377), + 177: uint16(29390), + 178: uint16(29389), + 179: uint16(29394), + 180: uint16(29416), + 181: uint16(29423), + 182: uint16(29417), + 183: uint16(29426), + 184: uint16(29428), + 185: uint16(29431), + 186: uint16(29441), + 187: uint16(29427), + 188: uint16(29443), + 189: uint16(29434), + }, + 97: { + 0: uint16(37350), + 1: uint16(37351), + 2: uint16(37352), + 3: uint16(37353), + 4: uint16(37354), + 5: uint16(37355), + 6: uint16(37356), + 7: uint16(37357), + 8: uint16(37358), + 9: uint16(37359), + 10: uint16(37360), + 11: uint16(37361), + 12: uint16(37362), + 13: uint16(37363), + 14: uint16(37364), + 15: uint16(37365), + 16: uint16(37366), + 17: uint16(37367), + 18: uint16(37368), + 19: uint16(37369), + 20: uint16(37370), + 21: uint16(37371), + 22: uint16(37372), + 23: uint16(37373), + 24: uint16(37374), + 25: uint16(37375), + 26: uint16(37376), + 27: uint16(37377), + 28: uint16(37378), + 29: uint16(37379), + 30: uint16(37380), + 31: uint16(37381), + 32: uint16(37382), + 33: uint16(37383), + 34: uint16(37384), + 35: uint16(37385), + 36: uint16(37386), + 37: uint16(37387), + 38: uint16(37388), + 39: uint16(37389), + 40: uint16(37390), + 41: uint16(37391), + 42: uint16(37392), + 43: uint16(37393), + 44: uint16(37394), + 45: uint16(37395), + 46: uint16(37396), + 47: uint16(37397), + 48: uint16(37398), + 49: uint16(37399), + 50: uint16(37400), + 51: uint16(37401), + 52: uint16(37402), + 53: uint16(37403), + 54: uint16(37404), + 55: uint16(37405), + 56: uint16(37406), + 57: uint16(37407), + 58: uint16(37408), + 59: uint16(37409), + 60: uint16(37410), + 61: uint16(37411), + 62: uint16(37412), + 63: uint16(37413), + 64: uint16(37414), + 65: uint16(37415), + 66: uint16(37416), + 67: uint16(37417), + 68: uint16(37418), + 69: uint16(37419), + 70: uint16(37420), + 71: uint16(37421), + 72: uint16(37422), + 73: uint16(37423), + 74: uint16(37424), + 75: uint16(37425), + 76: uint16(37426), + 77: uint16(37427), + 78: uint16(37428), + 79: uint16(37429), + 80: uint16(37430), + 81: uint16(37431), + 82: uint16(37432), + 83: uint16(37433), + 84: uint16(37434), + 85: uint16(37435), + 86: uint16(37436), + 87: uint16(37437), + 88: uint16(37438), + 89: uint16(37439), + 90: uint16(37440), + 91: uint16(37441), + 92: uint16(37442), + 93: uint16(37443), + 94: uint16(37444), + 95: uint16(37445), + 96: uint16(29435), + 97: uint16(29463), + 98: uint16(29459), + 99: uint16(29473), + 100: uint16(29450), + 101: uint16(29470), + 102: uint16(29469), + 103: uint16(29461), + 104: uint16(29474), + 105: uint16(29497), + 106: uint16(29477), + 107: uint16(29484), + 108: uint16(29496), + 109: uint16(29489), + 110: uint16(29520), + 111: uint16(29517), + 112: uint16(29527), + 113: uint16(29536), + 114: uint16(29548), + 115: uint16(29551), + 116: uint16(29566), + 117: uint16(33307), + 118: uint16(22821), + 119: uint16(39143), + 120: uint16(22820), + 121: uint16(22786), + 122: uint16(39267), + 123: uint16(39271), + 124: uint16(39272), + 125: uint16(39273), + 126: uint16(39274), + 127: uint16(39275), + 128: uint16(39276), + 129: uint16(39284), + 130: uint16(39287), + 131: uint16(39293), + 132: uint16(39296), + 133: uint16(39300), + 134: uint16(39303), + 135: uint16(39306), + 136: uint16(39309), + 137: uint16(39312), + 138: uint16(39313), + 139: uint16(39315), + 140: uint16(39316), + 141: uint16(39317), + 142: uint16(24192), + 143: uint16(24209), + 144: uint16(24203), + 145: uint16(24214), + 146: uint16(24229), + 147: uint16(24224), + 148: uint16(24249), + 149: uint16(24245), + 150: uint16(24254), + 151: uint16(24243), + 152: uint16(36179), + 153: uint16(24274), + 154: uint16(24273), + 155: uint16(24283), + 156: uint16(24296), + 157: uint16(24298), + 158: uint16(33210), + 159: uint16(24516), + 160: uint16(24521), + 161: uint16(24534), + 162: uint16(24527), + 163: uint16(24579), + 164: uint16(24558), + 165: uint16(24580), + 166: uint16(24545), + 167: uint16(24548), + 168: uint16(24574), + 169: uint16(24581), + 170: uint16(24582), + 171: uint16(24554), + 172: uint16(24557), + 173: uint16(24568), + 174: uint16(24601), + 175: uint16(24629), + 176: uint16(24614), + 177: uint16(24603), + 178: uint16(24591), + 179: uint16(24589), + 180: uint16(24617), + 181: uint16(24619), + 182: uint16(24586), + 183: uint16(24639), + 184: uint16(24609), + 185: uint16(24696), + 186: uint16(24697), + 187: uint16(24699), + 188: uint16(24698), + 189: uint16(24642), + }, + 98: { + 0: uint16(37446), + 1: uint16(37447), + 2: uint16(37448), + 3: uint16(37449), + 4: uint16(37450), + 5: uint16(37451), + 6: uint16(37452), + 7: uint16(37453), + 8: uint16(37454), + 9: uint16(37455), + 10: uint16(37456), + 11: uint16(37457), + 12: uint16(37458), + 13: uint16(37459), + 14: uint16(37460), + 15: uint16(37461), + 16: uint16(37462), + 17: uint16(37463), + 18: uint16(37464), + 19: uint16(37465), + 20: uint16(37466), + 21: uint16(37467), + 22: uint16(37468), + 23: uint16(37469), + 24: uint16(37470), + 25: uint16(37471), + 26: uint16(37472), + 27: uint16(37473), + 28: uint16(37474), + 29: uint16(37475), + 30: uint16(37476), + 31: uint16(37477), + 32: uint16(37478), + 33: uint16(37479), + 34: uint16(37480), + 35: uint16(37481), + 36: uint16(37482), + 37: uint16(37483), + 38: uint16(37484), + 39: uint16(37485), + 40: uint16(37486), + 41: uint16(37487), + 42: uint16(37488), + 43: uint16(37489), + 44: uint16(37490), + 45: uint16(37491), + 46: uint16(37493), + 47: uint16(37494), + 48: uint16(37495), + 49: uint16(37496), + 50: uint16(37497), + 51: uint16(37498), + 52: uint16(37499), + 53: uint16(37500), + 54: uint16(37501), + 55: uint16(37502), + 56: uint16(37503), + 57: uint16(37504), + 58: uint16(37505), + 59: uint16(37506), + 60: uint16(37507), + 61: uint16(37508), + 62: uint16(37509), + 63: uint16(37510), + 64: uint16(37511), + 65: uint16(37512), + 66: uint16(37513), + 67: uint16(37514), + 68: uint16(37515), + 69: uint16(37516), + 70: uint16(37517), + 71: uint16(37519), + 72: uint16(37520), + 73: uint16(37521), + 74: uint16(37522), + 75: uint16(37523), + 76: uint16(37524), + 77: uint16(37525), + 78: uint16(37526), + 79: uint16(37527), + 80: uint16(37528), + 81: uint16(37529), + 82: uint16(37530), + 83: uint16(37531), + 84: uint16(37532), + 85: uint16(37533), + 86: uint16(37534), + 87: uint16(37535), + 88: uint16(37536), + 89: uint16(37537), + 90: uint16(37538), + 91: uint16(37539), + 92: uint16(37540), + 93: uint16(37541), + 94: uint16(37542), + 95: uint16(37543), + 96: uint16(24682), + 97: uint16(24701), + 98: uint16(24726), + 99: uint16(24730), + 100: uint16(24749), + 101: uint16(24733), + 102: uint16(24707), + 103: uint16(24722), + 104: uint16(24716), + 105: uint16(24731), + 106: uint16(24812), + 107: uint16(24763), + 108: uint16(24753), + 109: uint16(24797), + 110: uint16(24792), + 111: uint16(24774), + 112: uint16(24794), + 113: uint16(24756), + 114: uint16(24864), + 115: uint16(24870), + 116: uint16(24853), + 117: uint16(24867), + 118: uint16(24820), + 119: uint16(24832), + 120: uint16(24846), + 121: uint16(24875), + 122: uint16(24906), + 123: uint16(24949), + 124: uint16(25004), + 125: uint16(24980), + 126: uint16(24999), + 127: uint16(25015), + 128: uint16(25044), + 129: uint16(25077), + 130: uint16(24541), + 131: uint16(38579), + 132: uint16(38377), + 133: uint16(38379), + 134: uint16(38385), + 135: uint16(38387), + 136: uint16(38389), + 137: uint16(38390), + 138: uint16(38396), + 139: uint16(38398), + 140: uint16(38403), + 141: uint16(38404), + 142: uint16(38406), + 143: uint16(38408), + 144: uint16(38410), + 145: uint16(38411), + 146: uint16(38412), + 147: uint16(38413), + 148: uint16(38415), + 149: uint16(38418), + 150: uint16(38421), + 151: uint16(38422), + 152: uint16(38423), + 153: uint16(38425), + 154: uint16(38426), + 155: uint16(20012), + 156: uint16(29247), + 157: uint16(25109), + 158: uint16(27701), + 159: uint16(27732), + 160: uint16(27740), + 161: uint16(27722), + 162: uint16(27811), + 163: uint16(27781), + 164: uint16(27792), + 165: uint16(27796), + 166: uint16(27788), + 167: uint16(27752), + 168: uint16(27753), + 169: uint16(27764), + 170: uint16(27766), + 171: uint16(27782), + 172: uint16(27817), + 173: uint16(27856), + 174: uint16(27860), + 175: uint16(27821), + 176: uint16(27895), + 177: uint16(27896), + 178: uint16(27889), + 179: uint16(27863), + 180: uint16(27826), + 181: uint16(27872), + 182: uint16(27862), + 183: uint16(27898), + 184: uint16(27883), + 185: uint16(27886), + 186: uint16(27825), + 187: uint16(27859), + 188: uint16(27887), + 189: uint16(27902), + }, + 99: { + 0: uint16(37544), + 1: uint16(37545), + 2: uint16(37546), + 3: uint16(37547), + 4: uint16(37548), + 5: uint16(37549), + 6: uint16(37551), + 7: uint16(37552), + 8: uint16(37553), + 9: uint16(37554), + 10: uint16(37555), + 11: uint16(37556), + 12: uint16(37557), + 13: uint16(37558), + 14: uint16(37559), + 15: uint16(37560), + 16: uint16(37561), + 17: uint16(37562), + 18: uint16(37563), + 19: uint16(37564), + 20: uint16(37565), + 21: uint16(37566), + 22: uint16(37567), + 23: uint16(37568), + 24: uint16(37569), + 25: uint16(37570), + 26: uint16(37571), + 27: uint16(37572), + 28: uint16(37573), + 29: uint16(37574), + 30: uint16(37575), + 31: uint16(37577), + 32: uint16(37578), + 33: uint16(37579), + 34: uint16(37580), + 35: uint16(37581), + 36: uint16(37582), + 37: uint16(37583), + 38: uint16(37584), + 39: uint16(37585), + 40: uint16(37586), + 41: uint16(37587), + 42: uint16(37588), + 43: uint16(37589), + 44: uint16(37590), + 45: uint16(37591), + 46: uint16(37592), + 47: uint16(37593), + 48: uint16(37594), + 49: uint16(37595), + 50: uint16(37596), + 51: uint16(37597), + 52: uint16(37598), + 53: uint16(37599), + 54: uint16(37600), + 55: uint16(37601), + 56: uint16(37602), + 57: uint16(37603), + 58: uint16(37604), + 59: uint16(37605), + 60: uint16(37606), + 61: uint16(37607), + 62: uint16(37608), + 63: uint16(37609), + 64: uint16(37610), + 65: uint16(37611), + 66: uint16(37612), + 67: uint16(37613), + 68: uint16(37614), + 69: uint16(37615), + 70: uint16(37616), + 71: uint16(37617), + 72: uint16(37618), + 73: uint16(37619), + 74: uint16(37620), + 75: uint16(37621), + 76: uint16(37622), + 77: uint16(37623), + 78: uint16(37624), + 79: uint16(37625), + 80: uint16(37626), + 81: uint16(37627), + 82: uint16(37628), + 83: uint16(37629), + 84: uint16(37630), + 85: uint16(37631), + 86: uint16(37632), + 87: uint16(37633), + 88: uint16(37634), + 89: uint16(37635), + 90: uint16(37636), + 91: uint16(37637), + 92: uint16(37638), + 93: uint16(37639), + 94: uint16(37640), + 95: uint16(37641), + 96: uint16(27961), + 97: uint16(27943), + 98: uint16(27916), + 99: uint16(27971), + 100: uint16(27976), + 101: uint16(27911), + 102: uint16(27908), + 103: uint16(27929), + 104: uint16(27918), + 105: uint16(27947), + 106: uint16(27981), + 107: uint16(27950), + 108: uint16(27957), + 109: uint16(27930), + 110: uint16(27983), + 111: uint16(27986), + 112: uint16(27988), + 113: uint16(27955), + 114: uint16(28049), + 115: uint16(28015), + 116: uint16(28062), + 117: uint16(28064), + 118: uint16(27998), + 119: uint16(28051), + 120: uint16(28052), + 121: uint16(27996), + 122: uint16(28000), + 123: uint16(28028), + 124: uint16(28003), + 125: uint16(28186), + 126: uint16(28103), + 127: uint16(28101), + 128: uint16(28126), + 129: uint16(28174), + 130: uint16(28095), + 131: uint16(28128), + 132: uint16(28177), + 133: uint16(28134), + 134: uint16(28125), + 135: uint16(28121), + 136: uint16(28182), + 137: uint16(28075), + 138: uint16(28172), + 139: uint16(28078), + 140: uint16(28203), + 141: uint16(28270), + 142: uint16(28238), + 143: uint16(28267), + 144: uint16(28338), + 145: uint16(28255), + 146: uint16(28294), + 147: uint16(28243), + 148: uint16(28244), + 149: uint16(28210), + 150: uint16(28197), + 151: uint16(28228), + 152: uint16(28383), + 153: uint16(28337), + 154: uint16(28312), + 155: uint16(28384), + 156: uint16(28461), + 157: uint16(28386), + 158: uint16(28325), + 159: uint16(28327), + 160: uint16(28349), + 161: uint16(28347), + 162: uint16(28343), + 163: uint16(28375), + 164: uint16(28340), + 165: uint16(28367), + 166: uint16(28303), + 167: uint16(28354), + 168: uint16(28319), + 169: uint16(28514), + 170: uint16(28486), + 171: uint16(28487), + 172: uint16(28452), + 173: uint16(28437), + 174: uint16(28409), + 175: uint16(28463), + 176: uint16(28470), + 177: uint16(28491), + 178: uint16(28532), + 179: uint16(28458), + 180: uint16(28425), + 181: uint16(28457), + 182: uint16(28553), + 183: uint16(28557), + 184: uint16(28556), + 185: uint16(28536), + 186: uint16(28530), + 187: uint16(28540), + 188: uint16(28538), + 189: uint16(28625), + }, + 100: { + 0: uint16(37642), + 1: uint16(37643), + 2: uint16(37644), + 3: uint16(37645), + 4: uint16(37646), + 5: uint16(37647), + 6: uint16(37648), + 7: uint16(37649), + 8: uint16(37650), + 9: uint16(37651), + 10: uint16(37652), + 11: uint16(37653), + 12: uint16(37654), + 13: uint16(37655), + 14: uint16(37656), + 15: uint16(37657), + 16: uint16(37658), + 17: uint16(37659), + 18: uint16(37660), + 19: uint16(37661), + 20: uint16(37662), + 21: uint16(37663), + 22: uint16(37664), + 23: uint16(37665), + 24: uint16(37666), + 25: uint16(37667), + 26: uint16(37668), + 27: uint16(37669), + 28: uint16(37670), + 29: uint16(37671), + 30: uint16(37672), + 31: uint16(37673), + 32: uint16(37674), + 33: uint16(37675), + 34: uint16(37676), + 35: uint16(37677), + 36: uint16(37678), + 37: uint16(37679), + 38: uint16(37680), + 39: uint16(37681), + 40: uint16(37682), + 41: uint16(37683), + 42: uint16(37684), + 43: uint16(37685), + 44: uint16(37686), + 45: uint16(37687), + 46: uint16(37688), + 47: uint16(37689), + 48: uint16(37690), + 49: uint16(37691), + 50: uint16(37692), + 51: uint16(37693), + 52: uint16(37695), + 53: uint16(37696), + 54: uint16(37697), + 55: uint16(37698), + 56: uint16(37699), + 57: uint16(37700), + 58: uint16(37701), + 59: uint16(37702), + 60: uint16(37703), + 61: uint16(37704), + 62: uint16(37705), + 63: uint16(37706), + 64: uint16(37707), + 65: uint16(37708), + 66: uint16(37709), + 67: uint16(37710), + 68: uint16(37711), + 69: uint16(37712), + 70: uint16(37713), + 71: uint16(37714), + 72: uint16(37715), + 73: uint16(37716), + 74: uint16(37717), + 75: uint16(37718), + 76: uint16(37719), + 77: uint16(37720), + 78: uint16(37721), + 79: uint16(37722), + 80: uint16(37723), + 81: uint16(37724), + 82: uint16(37725), + 83: uint16(37726), + 84: uint16(37727), + 85: uint16(37728), + 86: uint16(37729), + 87: uint16(37730), + 88: uint16(37731), + 89: uint16(37732), + 90: uint16(37733), + 91: uint16(37734), + 92: uint16(37735), + 93: uint16(37736), + 94: uint16(37737), + 95: uint16(37739), + 96: uint16(28617), + 97: uint16(28583), + 98: uint16(28601), + 99: uint16(28598), + 100: uint16(28610), + 101: uint16(28641), + 102: uint16(28654), + 103: uint16(28638), + 104: uint16(28640), + 105: uint16(28655), + 106: uint16(28698), + 107: uint16(28707), + 108: uint16(28699), + 109: uint16(28729), + 110: uint16(28725), + 111: uint16(28751), + 112: uint16(28766), + 113: uint16(23424), + 114: uint16(23428), + 115: uint16(23445), + 116: uint16(23443), + 117: uint16(23461), + 118: uint16(23480), + 119: uint16(29999), + 120: uint16(39582), + 121: uint16(25652), + 122: uint16(23524), + 123: uint16(23534), + 124: uint16(35120), + 125: uint16(23536), + 126: uint16(36423), + 127: uint16(35591), + 128: uint16(36790), + 129: uint16(36819), + 130: uint16(36821), + 131: uint16(36837), + 132: uint16(36846), + 133: uint16(36836), + 134: uint16(36841), + 135: uint16(36838), + 136: uint16(36851), + 137: uint16(36840), + 138: uint16(36869), + 139: uint16(36868), + 140: uint16(36875), + 141: uint16(36902), + 142: uint16(36881), + 143: uint16(36877), + 144: uint16(36886), + 145: uint16(36897), + 146: uint16(36917), + 147: uint16(36918), + 148: uint16(36909), + 149: uint16(36911), + 150: uint16(36932), + 151: uint16(36945), + 152: uint16(36946), + 153: uint16(36944), + 154: uint16(36968), + 155: uint16(36952), + 156: uint16(36962), + 157: uint16(36955), + 158: uint16(26297), + 159: uint16(36980), + 160: uint16(36989), + 161: uint16(36994), + 162: uint16(37000), + 163: uint16(36995), + 164: uint16(37003), + 165: uint16(24400), + 166: uint16(24407), + 167: uint16(24406), + 168: uint16(24408), + 169: uint16(23611), + 170: uint16(21675), + 171: uint16(23632), + 172: uint16(23641), + 173: uint16(23409), + 174: uint16(23651), + 175: uint16(23654), + 176: uint16(32700), + 177: uint16(24362), + 178: uint16(24361), + 179: uint16(24365), + 180: uint16(33396), + 181: uint16(24380), + 182: uint16(39739), + 183: uint16(23662), + 184: uint16(22913), + 185: uint16(22915), + 186: uint16(22925), + 187: uint16(22953), + 188: uint16(22954), + 189: uint16(22947), + }, + 101: { + 0: uint16(37740), + 1: uint16(37741), + 2: uint16(37742), + 3: uint16(37743), + 4: uint16(37744), + 5: uint16(37745), + 6: uint16(37746), + 7: uint16(37747), + 8: uint16(37748), + 9: uint16(37749), + 10: uint16(37750), + 11: uint16(37751), + 12: uint16(37752), + 13: uint16(37753), + 14: uint16(37754), + 15: uint16(37755), + 16: uint16(37756), + 17: uint16(37757), + 18: uint16(37758), + 19: uint16(37759), + 20: uint16(37760), + 21: uint16(37761), + 22: uint16(37762), + 23: uint16(37763), + 24: uint16(37764), + 25: uint16(37765), + 26: uint16(37766), + 27: uint16(37767), + 28: uint16(37768), + 29: uint16(37769), + 30: uint16(37770), + 31: uint16(37771), + 32: uint16(37772), + 33: uint16(37773), + 34: uint16(37774), + 35: uint16(37776), + 36: uint16(37777), + 37: uint16(37778), + 38: uint16(37779), + 39: uint16(37780), + 40: uint16(37781), + 41: uint16(37782), + 42: uint16(37783), + 43: uint16(37784), + 44: uint16(37785), + 45: uint16(37786), + 46: uint16(37787), + 47: uint16(37788), + 48: uint16(37789), + 49: uint16(37790), + 50: uint16(37791), + 51: uint16(37792), + 52: uint16(37793), + 53: uint16(37794), + 54: uint16(37795), + 55: uint16(37796), + 56: uint16(37797), + 57: uint16(37798), + 58: uint16(37799), + 59: uint16(37800), + 60: uint16(37801), + 61: uint16(37802), + 62: uint16(37803), + 63: uint16(37804), + 64: uint16(37805), + 65: uint16(37806), + 66: uint16(37807), + 67: uint16(37808), + 68: uint16(37809), + 69: uint16(37810), + 70: uint16(37811), + 71: uint16(37812), + 72: uint16(37813), + 73: uint16(37814), + 74: uint16(37815), + 75: uint16(37816), + 76: uint16(37817), + 77: uint16(37818), + 78: uint16(37819), + 79: uint16(37820), + 80: uint16(37821), + 81: uint16(37822), + 82: uint16(37823), + 83: uint16(37824), + 84: uint16(37825), + 85: uint16(37826), + 86: uint16(37827), + 87: uint16(37828), + 88: uint16(37829), + 89: uint16(37830), + 90: uint16(37831), + 91: uint16(37832), + 92: uint16(37833), + 93: uint16(37835), + 94: uint16(37836), + 95: uint16(37837), + 96: uint16(22935), + 97: uint16(22986), + 98: uint16(22955), + 99: uint16(22942), + 100: uint16(22948), + 101: uint16(22994), + 102: uint16(22962), + 103: uint16(22959), + 104: uint16(22999), + 105: uint16(22974), + 106: uint16(23045), + 107: uint16(23046), + 108: uint16(23005), + 109: uint16(23048), + 110: uint16(23011), + 111: uint16(23000), + 112: uint16(23033), + 113: uint16(23052), + 114: uint16(23049), + 115: uint16(23090), + 116: uint16(23092), + 117: uint16(23057), + 118: uint16(23075), + 119: uint16(23059), + 120: uint16(23104), + 121: uint16(23143), + 122: uint16(23114), + 123: uint16(23125), + 124: uint16(23100), + 125: uint16(23138), + 126: uint16(23157), + 127: uint16(33004), + 128: uint16(23210), + 129: uint16(23195), + 130: uint16(23159), + 131: uint16(23162), + 132: uint16(23230), + 133: uint16(23275), + 134: uint16(23218), + 135: uint16(23250), + 136: uint16(23252), + 137: uint16(23224), + 138: uint16(23264), + 139: uint16(23267), + 140: uint16(23281), + 141: uint16(23254), + 142: uint16(23270), + 143: uint16(23256), + 144: uint16(23260), + 145: uint16(23305), + 146: uint16(23319), + 147: uint16(23318), + 148: uint16(23346), + 149: uint16(23351), + 150: uint16(23360), + 151: uint16(23573), + 152: uint16(23580), + 153: uint16(23386), + 154: uint16(23397), + 155: uint16(23411), + 156: uint16(23377), + 157: uint16(23379), + 158: uint16(23394), + 159: uint16(39541), + 160: uint16(39543), + 161: uint16(39544), + 162: uint16(39546), + 163: uint16(39551), + 164: uint16(39549), + 165: uint16(39552), + 166: uint16(39553), + 167: uint16(39557), + 168: uint16(39560), + 169: uint16(39562), + 170: uint16(39568), + 171: uint16(39570), + 172: uint16(39571), + 173: uint16(39574), + 174: uint16(39576), + 175: uint16(39579), + 176: uint16(39580), + 177: uint16(39581), + 178: uint16(39583), + 179: uint16(39584), + 180: uint16(39586), + 181: uint16(39587), + 182: uint16(39589), + 183: uint16(39591), + 184: uint16(32415), + 185: uint16(32417), + 186: uint16(32419), + 187: uint16(32421), + 188: uint16(32424), + 189: uint16(32425), + }, + 102: { + 0: uint16(37838), + 1: uint16(37839), + 2: uint16(37840), + 3: uint16(37841), + 4: uint16(37842), + 5: uint16(37843), + 6: uint16(37844), + 7: uint16(37845), + 8: uint16(37847), + 9: uint16(37848), + 10: uint16(37849), + 11: uint16(37850), + 12: uint16(37851), + 13: uint16(37852), + 14: uint16(37853), + 15: uint16(37854), + 16: uint16(37855), + 17: uint16(37856), + 18: uint16(37857), + 19: uint16(37858), + 20: uint16(37859), + 21: uint16(37860), + 22: uint16(37861), + 23: uint16(37862), + 24: uint16(37863), + 25: uint16(37864), + 26: uint16(37865), + 27: uint16(37866), + 28: uint16(37867), + 29: uint16(37868), + 30: uint16(37869), + 31: uint16(37870), + 32: uint16(37871), + 33: uint16(37872), + 34: uint16(37873), + 35: uint16(37874), + 36: uint16(37875), + 37: uint16(37876), + 38: uint16(37877), + 39: uint16(37878), + 40: uint16(37879), + 41: uint16(37880), + 42: uint16(37881), + 43: uint16(37882), + 44: uint16(37883), + 45: uint16(37884), + 46: uint16(37885), + 47: uint16(37886), + 48: uint16(37887), + 49: uint16(37888), + 50: uint16(37889), + 51: uint16(37890), + 52: uint16(37891), + 53: uint16(37892), + 54: uint16(37893), + 55: uint16(37894), + 56: uint16(37895), + 57: uint16(37896), + 58: uint16(37897), + 59: uint16(37898), + 60: uint16(37899), + 61: uint16(37900), + 62: uint16(37901), + 63: uint16(37902), + 64: uint16(37903), + 65: uint16(37904), + 66: uint16(37905), + 67: uint16(37906), + 68: uint16(37907), + 69: uint16(37908), + 70: uint16(37909), + 71: uint16(37910), + 72: uint16(37911), + 73: uint16(37912), + 74: uint16(37913), + 75: uint16(37914), + 76: uint16(37915), + 77: uint16(37916), + 78: uint16(37917), + 79: uint16(37918), + 80: uint16(37919), + 81: uint16(37920), + 82: uint16(37921), + 83: uint16(37922), + 84: uint16(37923), + 85: uint16(37924), + 86: uint16(37925), + 87: uint16(37926), + 88: uint16(37927), + 89: uint16(37928), + 90: uint16(37929), + 91: uint16(37930), + 92: uint16(37931), + 93: uint16(37932), + 94: uint16(37933), + 95: uint16(37934), + 96: uint16(32429), + 97: uint16(32432), + 98: uint16(32446), + 99: uint16(32448), + 100: uint16(32449), + 101: uint16(32450), + 102: uint16(32457), + 103: uint16(32459), + 104: uint16(32460), + 105: uint16(32464), + 106: uint16(32468), + 107: uint16(32471), + 108: uint16(32475), + 109: uint16(32480), + 110: uint16(32481), + 111: uint16(32488), + 112: uint16(32491), + 113: uint16(32494), + 114: uint16(32495), + 115: uint16(32497), + 116: uint16(32498), + 117: uint16(32525), + 118: uint16(32502), + 119: uint16(32506), + 120: uint16(32507), + 121: uint16(32510), + 122: uint16(32513), + 123: uint16(32514), + 124: uint16(32515), + 125: uint16(32519), + 126: uint16(32520), + 127: uint16(32523), + 128: uint16(32524), + 129: uint16(32527), + 130: uint16(32529), + 131: uint16(32530), + 132: uint16(32535), + 133: uint16(32537), + 134: uint16(32540), + 135: uint16(32539), + 136: uint16(32543), + 137: uint16(32545), + 138: uint16(32546), + 139: uint16(32547), + 140: uint16(32548), + 141: uint16(32549), + 142: uint16(32550), + 143: uint16(32551), + 144: uint16(32554), + 145: uint16(32555), + 146: uint16(32556), + 147: uint16(32557), + 148: uint16(32559), + 149: uint16(32560), + 150: uint16(32561), + 151: uint16(32562), + 152: uint16(32563), + 153: uint16(32565), + 154: uint16(24186), + 155: uint16(30079), + 156: uint16(24027), + 157: uint16(30014), + 158: uint16(37013), + 159: uint16(29582), + 160: uint16(29585), + 161: uint16(29614), + 162: uint16(29602), + 163: uint16(29599), + 164: uint16(29647), + 165: uint16(29634), + 166: uint16(29649), + 167: uint16(29623), + 168: uint16(29619), + 169: uint16(29632), + 170: uint16(29641), + 171: uint16(29640), + 172: uint16(29669), + 173: uint16(29657), + 174: uint16(39036), + 175: uint16(29706), + 176: uint16(29673), + 177: uint16(29671), + 178: uint16(29662), + 179: uint16(29626), + 180: uint16(29682), + 181: uint16(29711), + 182: uint16(29738), + 183: uint16(29787), + 184: uint16(29734), + 185: uint16(29733), + 186: uint16(29736), + 187: uint16(29744), + 188: uint16(29742), + 189: uint16(29740), + }, + 103: { + 0: uint16(37935), + 1: uint16(37936), + 2: uint16(37937), + 3: uint16(37938), + 4: uint16(37939), + 5: uint16(37940), + 6: uint16(37941), + 7: uint16(37942), + 8: uint16(37943), + 9: uint16(37944), + 10: uint16(37945), + 11: uint16(37946), + 12: uint16(37947), + 13: uint16(37948), + 14: uint16(37949), + 15: uint16(37951), + 16: uint16(37952), + 17: uint16(37953), + 18: uint16(37954), + 19: uint16(37955), + 20: uint16(37956), + 21: uint16(37957), + 22: uint16(37958), + 23: uint16(37959), + 24: uint16(37960), + 25: uint16(37961), + 26: uint16(37962), + 27: uint16(37963), + 28: uint16(37964), + 29: uint16(37965), + 30: uint16(37966), + 31: uint16(37967), + 32: uint16(37968), + 33: uint16(37969), + 34: uint16(37970), + 35: uint16(37971), + 36: uint16(37972), + 37: uint16(37973), + 38: uint16(37974), + 39: uint16(37975), + 40: uint16(37976), + 41: uint16(37977), + 42: uint16(37978), + 43: uint16(37979), + 44: uint16(37980), + 45: uint16(37981), + 46: uint16(37982), + 47: uint16(37983), + 48: uint16(37984), + 49: uint16(37985), + 50: uint16(37986), + 51: uint16(37987), + 52: uint16(37988), + 53: uint16(37989), + 54: uint16(37990), + 55: uint16(37991), + 56: uint16(37992), + 57: uint16(37993), + 58: uint16(37994), + 59: uint16(37996), + 60: uint16(37997), + 61: uint16(37998), + 62: uint16(37999), + 63: uint16(38000), + 64: uint16(38001), + 65: uint16(38002), + 66: uint16(38003), + 67: uint16(38004), + 68: uint16(38005), + 69: uint16(38006), + 70: uint16(38007), + 71: uint16(38008), + 72: uint16(38009), + 73: uint16(38010), + 74: uint16(38011), + 75: uint16(38012), + 76: uint16(38013), + 77: uint16(38014), + 78: uint16(38015), + 79: uint16(38016), + 80: uint16(38017), + 81: uint16(38018), + 82: uint16(38019), + 83: uint16(38020), + 84: uint16(38033), + 85: uint16(38038), + 86: uint16(38040), + 87: uint16(38087), + 88: uint16(38095), + 89: uint16(38099), + 90: uint16(38100), + 91: uint16(38106), + 92: uint16(38118), + 93: uint16(38139), + 94: uint16(38172), + 95: uint16(38176), + 96: uint16(29723), + 97: uint16(29722), + 98: uint16(29761), + 99: uint16(29788), + 100: uint16(29783), + 101: uint16(29781), + 102: uint16(29785), + 103: uint16(29815), + 104: uint16(29805), + 105: uint16(29822), + 106: uint16(29852), + 107: uint16(29838), + 108: uint16(29824), + 109: uint16(29825), + 110: uint16(29831), + 111: uint16(29835), + 112: uint16(29854), + 113: uint16(29864), + 114: uint16(29865), + 115: uint16(29840), + 116: uint16(29863), + 117: uint16(29906), + 118: uint16(29882), + 119: uint16(38890), + 120: uint16(38891), + 121: uint16(38892), + 122: uint16(26444), + 123: uint16(26451), + 124: uint16(26462), + 125: uint16(26440), + 126: uint16(26473), + 127: uint16(26533), + 128: uint16(26503), + 129: uint16(26474), + 130: uint16(26483), + 131: uint16(26520), + 132: uint16(26535), + 133: uint16(26485), + 134: uint16(26536), + 135: uint16(26526), + 136: uint16(26541), + 137: uint16(26507), + 138: uint16(26487), + 139: uint16(26492), + 140: uint16(26608), + 141: uint16(26633), + 142: uint16(26584), + 143: uint16(26634), + 144: uint16(26601), + 145: uint16(26544), + 146: uint16(26636), + 147: uint16(26585), + 148: uint16(26549), + 149: uint16(26586), + 150: uint16(26547), + 151: uint16(26589), + 152: uint16(26624), + 153: uint16(26563), + 154: uint16(26552), + 155: uint16(26594), + 156: uint16(26638), + 157: uint16(26561), + 158: uint16(26621), + 159: uint16(26674), + 160: uint16(26675), + 161: uint16(26720), + 162: uint16(26721), + 163: uint16(26702), + 164: uint16(26722), + 165: uint16(26692), + 166: uint16(26724), + 167: uint16(26755), + 168: uint16(26653), + 169: uint16(26709), + 170: uint16(26726), + 171: uint16(26689), + 172: uint16(26727), + 173: uint16(26688), + 174: uint16(26686), + 175: uint16(26698), + 176: uint16(26697), + 177: uint16(26665), + 178: uint16(26805), + 179: uint16(26767), + 180: uint16(26740), + 181: uint16(26743), + 182: uint16(26771), + 183: uint16(26731), + 184: uint16(26818), + 185: uint16(26990), + 186: uint16(26876), + 187: uint16(26911), + 188: uint16(26912), + 189: uint16(26873), + }, + 104: { + 0: uint16(38183), + 1: uint16(38195), + 2: uint16(38205), + 3: uint16(38211), + 4: uint16(38216), + 5: uint16(38219), + 6: uint16(38229), + 7: uint16(38234), + 8: uint16(38240), + 9: uint16(38254), + 10: uint16(38260), + 11: uint16(38261), + 12: uint16(38263), + 13: uint16(38264), + 14: uint16(38265), + 15: uint16(38266), + 16: uint16(38267), + 17: uint16(38268), + 18: uint16(38269), + 19: uint16(38270), + 20: uint16(38272), + 21: uint16(38273), + 22: uint16(38274), + 23: uint16(38275), + 24: uint16(38276), + 25: uint16(38277), + 26: uint16(38278), + 27: uint16(38279), + 28: uint16(38280), + 29: uint16(38281), + 30: uint16(38282), + 31: uint16(38283), + 32: uint16(38284), + 33: uint16(38285), + 34: uint16(38286), + 35: uint16(38287), + 36: uint16(38288), + 37: uint16(38289), + 38: uint16(38290), + 39: uint16(38291), + 40: uint16(38292), + 41: uint16(38293), + 42: uint16(38294), + 43: uint16(38295), + 44: uint16(38296), + 45: uint16(38297), + 46: uint16(38298), + 47: uint16(38299), + 48: uint16(38300), + 49: uint16(38301), + 50: uint16(38302), + 51: uint16(38303), + 52: uint16(38304), + 53: uint16(38305), + 54: uint16(38306), + 55: uint16(38307), + 56: uint16(38308), + 57: uint16(38309), + 58: uint16(38310), + 59: uint16(38311), + 60: uint16(38312), + 61: uint16(38313), + 62: uint16(38314), + 63: uint16(38315), + 64: uint16(38316), + 65: uint16(38317), + 66: uint16(38318), + 67: uint16(38319), + 68: uint16(38320), + 69: uint16(38321), + 70: uint16(38322), + 71: uint16(38323), + 72: uint16(38324), + 73: uint16(38325), + 74: uint16(38326), + 75: uint16(38327), + 76: uint16(38328), + 77: uint16(38329), + 78: uint16(38330), + 79: uint16(38331), + 80: uint16(38332), + 81: uint16(38333), + 82: uint16(38334), + 83: uint16(38335), + 84: uint16(38336), + 85: uint16(38337), + 86: uint16(38338), + 87: uint16(38339), + 88: uint16(38340), + 89: uint16(38341), + 90: uint16(38342), + 91: uint16(38343), + 92: uint16(38344), + 93: uint16(38345), + 94: uint16(38346), + 95: uint16(38347), + 96: uint16(26916), + 97: uint16(26864), + 98: uint16(26891), + 99: uint16(26881), + 100: uint16(26967), + 101: uint16(26851), + 102: uint16(26896), + 103: uint16(26993), + 104: uint16(26937), + 105: uint16(26976), + 106: uint16(26946), + 107: uint16(26973), + 108: uint16(27012), + 109: uint16(26987), + 110: uint16(27008), + 111: uint16(27032), + 112: uint16(27000), + 113: uint16(26932), + 114: uint16(27084), + 115: uint16(27015), + 116: uint16(27016), + 117: uint16(27086), + 118: uint16(27017), + 119: uint16(26982), + 120: uint16(26979), + 121: uint16(27001), + 122: uint16(27035), + 123: uint16(27047), + 124: uint16(27067), + 125: uint16(27051), + 126: uint16(27053), + 127: uint16(27092), + 128: uint16(27057), + 129: uint16(27073), + 130: uint16(27082), + 131: uint16(27103), + 132: uint16(27029), + 133: uint16(27104), + 134: uint16(27021), + 135: uint16(27135), + 136: uint16(27183), + 137: uint16(27117), + 138: uint16(27159), + 139: uint16(27160), + 140: uint16(27237), + 141: uint16(27122), + 142: uint16(27204), + 143: uint16(27198), + 144: uint16(27296), + 145: uint16(27216), + 146: uint16(27227), + 147: uint16(27189), + 148: uint16(27278), + 149: uint16(27257), + 150: uint16(27197), + 151: uint16(27176), + 152: uint16(27224), + 153: uint16(27260), + 154: uint16(27281), + 155: uint16(27280), + 156: uint16(27305), + 157: uint16(27287), + 158: uint16(27307), + 159: uint16(29495), + 160: uint16(29522), + 161: uint16(27521), + 162: uint16(27522), + 163: uint16(27527), + 164: uint16(27524), + 165: uint16(27538), + 166: uint16(27539), + 167: uint16(27533), + 168: uint16(27546), + 169: uint16(27547), + 170: uint16(27553), + 171: uint16(27562), + 172: uint16(36715), + 173: uint16(36717), + 174: uint16(36721), + 175: uint16(36722), + 176: uint16(36723), + 177: uint16(36725), + 178: uint16(36726), + 179: uint16(36728), + 180: uint16(36727), + 181: uint16(36729), + 182: uint16(36730), + 183: uint16(36732), + 184: uint16(36734), + 185: uint16(36737), + 186: uint16(36738), + 187: uint16(36740), + 188: uint16(36743), + 189: uint16(36747), + }, + 105: { + 0: uint16(38348), + 1: uint16(38349), + 2: uint16(38350), + 3: uint16(38351), + 4: uint16(38352), + 5: uint16(38353), + 6: uint16(38354), + 7: uint16(38355), + 8: uint16(38356), + 9: uint16(38357), + 10: uint16(38358), + 11: uint16(38359), + 12: uint16(38360), + 13: uint16(38361), + 14: uint16(38362), + 15: uint16(38363), + 16: uint16(38364), + 17: uint16(38365), + 18: uint16(38366), + 19: uint16(38367), + 20: uint16(38368), + 21: uint16(38369), + 22: uint16(38370), + 23: uint16(38371), + 24: uint16(38372), + 25: uint16(38373), + 26: uint16(38374), + 27: uint16(38375), + 28: uint16(38380), + 29: uint16(38399), + 30: uint16(38407), + 31: uint16(38419), + 32: uint16(38424), + 33: uint16(38427), + 34: uint16(38430), + 35: uint16(38432), + 36: uint16(38435), + 37: uint16(38436), + 38: uint16(38437), + 39: uint16(38438), + 40: uint16(38439), + 41: uint16(38440), + 42: uint16(38441), + 43: uint16(38443), + 44: uint16(38444), + 45: uint16(38445), + 46: uint16(38447), + 47: uint16(38448), + 48: uint16(38455), + 49: uint16(38456), + 50: uint16(38457), + 51: uint16(38458), + 52: uint16(38462), + 53: uint16(38465), + 54: uint16(38467), + 55: uint16(38474), + 56: uint16(38478), + 57: uint16(38479), + 58: uint16(38481), + 59: uint16(38482), + 60: uint16(38483), + 61: uint16(38486), + 62: uint16(38487), + 63: uint16(38488), + 64: uint16(38489), + 65: uint16(38490), + 66: uint16(38492), + 67: uint16(38493), + 68: uint16(38494), + 69: uint16(38496), + 70: uint16(38499), + 71: uint16(38501), + 72: uint16(38502), + 73: uint16(38507), + 74: uint16(38509), + 75: uint16(38510), + 76: uint16(38511), + 77: uint16(38512), + 78: uint16(38513), + 79: uint16(38515), + 80: uint16(38520), + 81: uint16(38521), + 82: uint16(38522), + 83: uint16(38523), + 84: uint16(38524), + 85: uint16(38525), + 86: uint16(38526), + 87: uint16(38527), + 88: uint16(38528), + 89: uint16(38529), + 90: uint16(38530), + 91: uint16(38531), + 92: uint16(38532), + 93: uint16(38535), + 94: uint16(38537), + 95: uint16(38538), + 96: uint16(36749), + 97: uint16(36750), + 98: uint16(36751), + 99: uint16(36760), + 100: uint16(36762), + 101: uint16(36558), + 102: uint16(25099), + 103: uint16(25111), + 104: uint16(25115), + 105: uint16(25119), + 106: uint16(25122), + 107: uint16(25121), + 108: uint16(25125), + 109: uint16(25124), + 110: uint16(25132), + 111: uint16(33255), + 112: uint16(29935), + 113: uint16(29940), + 114: uint16(29951), + 115: uint16(29967), + 116: uint16(29969), + 117: uint16(29971), + 118: uint16(25908), + 119: uint16(26094), + 120: uint16(26095), + 121: uint16(26096), + 122: uint16(26122), + 123: uint16(26137), + 124: uint16(26482), + 125: uint16(26115), + 126: uint16(26133), + 127: uint16(26112), + 128: uint16(28805), + 129: uint16(26359), + 130: uint16(26141), + 131: uint16(26164), + 132: uint16(26161), + 133: uint16(26166), + 134: uint16(26165), + 135: uint16(32774), + 136: uint16(26207), + 137: uint16(26196), + 138: uint16(26177), + 139: uint16(26191), + 140: uint16(26198), + 141: uint16(26209), + 142: uint16(26199), + 143: uint16(26231), + 144: uint16(26244), + 145: uint16(26252), + 146: uint16(26279), + 147: uint16(26269), + 148: uint16(26302), + 149: uint16(26331), + 150: uint16(26332), + 151: uint16(26342), + 152: uint16(26345), + 153: uint16(36146), + 154: uint16(36147), + 155: uint16(36150), + 156: uint16(36155), + 157: uint16(36157), + 158: uint16(36160), + 159: uint16(36165), + 160: uint16(36166), + 161: uint16(36168), + 162: uint16(36169), + 163: uint16(36167), + 164: uint16(36173), + 165: uint16(36181), + 166: uint16(36185), + 167: uint16(35271), + 168: uint16(35274), + 169: uint16(35275), + 170: uint16(35276), + 171: uint16(35278), + 172: uint16(35279), + 173: uint16(35280), + 174: uint16(35281), + 175: uint16(29294), + 176: uint16(29343), + 177: uint16(29277), + 178: uint16(29286), + 179: uint16(29295), + 180: uint16(29310), + 181: uint16(29311), + 182: uint16(29316), + 183: uint16(29323), + 184: uint16(29325), + 185: uint16(29327), + 186: uint16(29330), + 187: uint16(25352), + 188: uint16(25394), + 189: uint16(25520), + }, + 106: { + 0: uint16(38540), + 1: uint16(38542), + 2: uint16(38545), + 3: uint16(38546), + 4: uint16(38547), + 5: uint16(38549), + 6: uint16(38550), + 7: uint16(38554), + 8: uint16(38555), + 9: uint16(38557), + 10: uint16(38558), + 11: uint16(38559), + 12: uint16(38560), + 13: uint16(38561), + 14: uint16(38562), + 15: uint16(38563), + 16: uint16(38564), + 17: uint16(38565), + 18: uint16(38566), + 19: uint16(38568), + 20: uint16(38569), + 21: uint16(38570), + 22: uint16(38571), + 23: uint16(38572), + 24: uint16(38573), + 25: uint16(38574), + 26: uint16(38575), + 27: uint16(38577), + 28: uint16(38578), + 29: uint16(38580), + 30: uint16(38581), + 31: uint16(38583), + 32: uint16(38584), + 33: uint16(38586), + 34: uint16(38587), + 35: uint16(38591), + 36: uint16(38594), + 37: uint16(38595), + 38: uint16(38600), + 39: uint16(38602), + 40: uint16(38603), + 41: uint16(38608), + 42: uint16(38609), + 43: uint16(38611), + 44: uint16(38612), + 45: uint16(38614), + 46: uint16(38615), + 47: uint16(38616), + 48: uint16(38617), + 49: uint16(38618), + 50: uint16(38619), + 51: uint16(38620), + 52: uint16(38621), + 53: uint16(38622), + 54: uint16(38623), + 55: uint16(38625), + 56: uint16(38626), + 57: uint16(38627), + 58: uint16(38628), + 59: uint16(38629), + 60: uint16(38630), + 61: uint16(38631), + 62: uint16(38635), + 63: uint16(38636), + 64: uint16(38637), + 65: uint16(38638), + 66: uint16(38640), + 67: uint16(38641), + 68: uint16(38642), + 69: uint16(38644), + 70: uint16(38645), + 71: uint16(38648), + 72: uint16(38650), + 73: uint16(38651), + 74: uint16(38652), + 75: uint16(38653), + 76: uint16(38655), + 77: uint16(38658), + 78: uint16(38659), + 79: uint16(38661), + 80: uint16(38666), + 81: uint16(38667), + 82: uint16(38668), + 83: uint16(38672), + 84: uint16(38673), + 85: uint16(38674), + 86: uint16(38676), + 87: uint16(38677), + 88: uint16(38679), + 89: uint16(38680), + 90: uint16(38681), + 91: uint16(38682), + 92: uint16(38683), + 93: uint16(38685), + 94: uint16(38687), + 95: uint16(38688), + 96: uint16(25663), + 97: uint16(25816), + 98: uint16(32772), + 99: uint16(27626), + 100: uint16(27635), + 101: uint16(27645), + 102: uint16(27637), + 103: uint16(27641), + 104: uint16(27653), + 105: uint16(27655), + 106: uint16(27654), + 107: uint16(27661), + 108: uint16(27669), + 109: uint16(27672), + 110: uint16(27673), + 111: uint16(27674), + 112: uint16(27681), + 113: uint16(27689), + 114: uint16(27684), + 115: uint16(27690), + 116: uint16(27698), + 117: uint16(25909), + 118: uint16(25941), + 119: uint16(25963), + 120: uint16(29261), + 121: uint16(29266), + 122: uint16(29270), + 123: uint16(29232), + 124: uint16(34402), + 125: uint16(21014), + 126: uint16(32927), + 127: uint16(32924), + 128: uint16(32915), + 129: uint16(32956), + 130: uint16(26378), + 131: uint16(32957), + 132: uint16(32945), + 133: uint16(32939), + 134: uint16(32941), + 135: uint16(32948), + 136: uint16(32951), + 137: uint16(32999), + 138: uint16(33000), + 139: uint16(33001), + 140: uint16(33002), + 141: uint16(32987), + 142: uint16(32962), + 143: uint16(32964), + 144: uint16(32985), + 145: uint16(32973), + 146: uint16(32983), + 147: uint16(26384), + 148: uint16(32989), + 149: uint16(33003), + 150: uint16(33009), + 151: uint16(33012), + 152: uint16(33005), + 153: uint16(33037), + 154: uint16(33038), + 155: uint16(33010), + 156: uint16(33020), + 157: uint16(26389), + 158: uint16(33042), + 159: uint16(35930), + 160: uint16(33078), + 161: uint16(33054), + 162: uint16(33068), + 163: uint16(33048), + 164: uint16(33074), + 165: uint16(33096), + 166: uint16(33100), + 167: uint16(33107), + 168: uint16(33140), + 169: uint16(33113), + 170: uint16(33114), + 171: uint16(33137), + 172: uint16(33120), + 173: uint16(33129), + 174: uint16(33148), + 175: uint16(33149), + 176: uint16(33133), + 177: uint16(33127), + 178: uint16(22605), + 179: uint16(23221), + 180: uint16(33160), + 181: uint16(33154), + 182: uint16(33169), + 183: uint16(28373), + 184: uint16(33187), + 185: uint16(33194), + 186: uint16(33228), + 187: uint16(26406), + 188: uint16(33226), + 189: uint16(33211), + }, + 107: { + 0: uint16(38689), + 1: uint16(38690), + 2: uint16(38691), + 3: uint16(38692), + 4: uint16(38693), + 5: uint16(38694), + 6: uint16(38695), + 7: uint16(38696), + 8: uint16(38697), + 9: uint16(38699), + 10: uint16(38700), + 11: uint16(38702), + 12: uint16(38703), + 13: uint16(38705), + 14: uint16(38707), + 15: uint16(38708), + 16: uint16(38709), + 17: uint16(38710), + 18: uint16(38711), + 19: uint16(38714), + 20: uint16(38715), + 21: uint16(38716), + 22: uint16(38717), + 23: uint16(38719), + 24: uint16(38720), + 25: uint16(38721), + 26: uint16(38722), + 27: uint16(38723), + 28: uint16(38724), + 29: uint16(38725), + 30: uint16(38726), + 31: uint16(38727), + 32: uint16(38728), + 33: uint16(38729), + 34: uint16(38730), + 35: uint16(38731), + 36: uint16(38732), + 37: uint16(38733), + 38: uint16(38734), + 39: uint16(38735), + 40: uint16(38736), + 41: uint16(38737), + 42: uint16(38740), + 43: uint16(38741), + 44: uint16(38743), + 45: uint16(38744), + 46: uint16(38746), + 47: uint16(38748), + 48: uint16(38749), + 49: uint16(38751), + 50: uint16(38755), + 51: uint16(38756), + 52: uint16(38758), + 53: uint16(38759), + 54: uint16(38760), + 55: uint16(38762), + 56: uint16(38763), + 57: uint16(38764), + 58: uint16(38765), + 59: uint16(38766), + 60: uint16(38767), + 61: uint16(38768), + 62: uint16(38769), + 63: uint16(38770), + 64: uint16(38773), + 65: uint16(38775), + 66: uint16(38776), + 67: uint16(38777), + 68: uint16(38778), + 69: uint16(38779), + 70: uint16(38781), + 71: uint16(38782), + 72: uint16(38783), + 73: uint16(38784), + 74: uint16(38785), + 75: uint16(38786), + 76: uint16(38787), + 77: uint16(38788), + 78: uint16(38790), + 79: uint16(38791), + 80: uint16(38792), + 81: uint16(38793), + 82: uint16(38794), + 83: uint16(38796), + 84: uint16(38798), + 85: uint16(38799), + 86: uint16(38800), + 87: uint16(38803), + 88: uint16(38805), + 89: uint16(38806), + 90: uint16(38807), + 91: uint16(38809), + 92: uint16(38810), + 93: uint16(38811), + 94: uint16(38812), + 95: uint16(38813), + 96: uint16(33217), + 97: uint16(33190), + 98: uint16(27428), + 99: uint16(27447), + 100: uint16(27449), + 101: uint16(27459), + 102: uint16(27462), + 103: uint16(27481), + 104: uint16(39121), + 105: uint16(39122), + 106: uint16(39123), + 107: uint16(39125), + 108: uint16(39129), + 109: uint16(39130), + 110: uint16(27571), + 111: uint16(24384), + 112: uint16(27586), + 113: uint16(35315), + 114: uint16(26000), + 115: uint16(40785), + 116: uint16(26003), + 117: uint16(26044), + 118: uint16(26054), + 119: uint16(26052), + 120: uint16(26051), + 121: uint16(26060), + 122: uint16(26062), + 123: uint16(26066), + 124: uint16(26070), + 125: uint16(28800), + 126: uint16(28828), + 127: uint16(28822), + 128: uint16(28829), + 129: uint16(28859), + 130: uint16(28864), + 131: uint16(28855), + 132: uint16(28843), + 133: uint16(28849), + 134: uint16(28904), + 135: uint16(28874), + 136: uint16(28944), + 137: uint16(28947), + 138: uint16(28950), + 139: uint16(28975), + 140: uint16(28977), + 141: uint16(29043), + 142: uint16(29020), + 143: uint16(29032), + 144: uint16(28997), + 145: uint16(29042), + 146: uint16(29002), + 147: uint16(29048), + 148: uint16(29050), + 149: uint16(29080), + 150: uint16(29107), + 151: uint16(29109), + 152: uint16(29096), + 153: uint16(29088), + 154: uint16(29152), + 155: uint16(29140), + 156: uint16(29159), + 157: uint16(29177), + 158: uint16(29213), + 159: uint16(29224), + 160: uint16(28780), + 161: uint16(28952), + 162: uint16(29030), + 163: uint16(29113), + 164: uint16(25150), + 165: uint16(25149), + 166: uint16(25155), + 167: uint16(25160), + 168: uint16(25161), + 169: uint16(31035), + 170: uint16(31040), + 171: uint16(31046), + 172: uint16(31049), + 173: uint16(31067), + 174: uint16(31068), + 175: uint16(31059), + 176: uint16(31066), + 177: uint16(31074), + 178: uint16(31063), + 179: uint16(31072), + 180: uint16(31087), + 181: uint16(31079), + 182: uint16(31098), + 183: uint16(31109), + 184: uint16(31114), + 185: uint16(31130), + 186: uint16(31143), + 187: uint16(31155), + 188: uint16(24529), + 189: uint16(24528), + }, + 108: { + 0: uint16(38814), + 1: uint16(38815), + 2: uint16(38817), + 3: uint16(38818), + 4: uint16(38820), + 5: uint16(38821), + 6: uint16(38822), + 7: uint16(38823), + 8: uint16(38824), + 9: uint16(38825), + 10: uint16(38826), + 11: uint16(38828), + 12: uint16(38830), + 13: uint16(38832), + 14: uint16(38833), + 15: uint16(38835), + 16: uint16(38837), + 17: uint16(38838), + 18: uint16(38839), + 19: uint16(38840), + 20: uint16(38841), + 21: uint16(38842), + 22: uint16(38843), + 23: uint16(38844), + 24: uint16(38845), + 25: uint16(38846), + 26: uint16(38847), + 27: uint16(38848), + 28: uint16(38849), + 29: uint16(38850), + 30: uint16(38851), + 31: uint16(38852), + 32: uint16(38853), + 33: uint16(38854), + 34: uint16(38855), + 35: uint16(38856), + 36: uint16(38857), + 37: uint16(38858), + 38: uint16(38859), + 39: uint16(38860), + 40: uint16(38861), + 41: uint16(38862), + 42: uint16(38863), + 43: uint16(38864), + 44: uint16(38865), + 45: uint16(38866), + 46: uint16(38867), + 47: uint16(38868), + 48: uint16(38869), + 49: uint16(38870), + 50: uint16(38871), + 51: uint16(38872), + 52: uint16(38873), + 53: uint16(38874), + 54: uint16(38875), + 55: uint16(38876), + 56: uint16(38877), + 57: uint16(38878), + 58: uint16(38879), + 59: uint16(38880), + 60: uint16(38881), + 61: uint16(38882), + 62: uint16(38883), + 63: uint16(38884), + 64: uint16(38885), + 65: uint16(38888), + 66: uint16(38894), + 67: uint16(38895), + 68: uint16(38896), + 69: uint16(38897), + 70: uint16(38898), + 71: uint16(38900), + 72: uint16(38903), + 73: uint16(38904), + 74: uint16(38905), + 75: uint16(38906), + 76: uint16(38907), + 77: uint16(38908), + 78: uint16(38909), + 79: uint16(38910), + 80: uint16(38911), + 81: uint16(38912), + 82: uint16(38913), + 83: uint16(38914), + 84: uint16(38915), + 85: uint16(38916), + 86: uint16(38917), + 87: uint16(38918), + 88: uint16(38919), + 89: uint16(38920), + 90: uint16(38921), + 91: uint16(38922), + 92: uint16(38923), + 93: uint16(38924), + 94: uint16(38925), + 95: uint16(38926), + 96: uint16(24636), + 97: uint16(24669), + 98: uint16(24666), + 99: uint16(24679), + 100: uint16(24641), + 101: uint16(24665), + 102: uint16(24675), + 103: uint16(24747), + 104: uint16(24838), + 105: uint16(24845), + 106: uint16(24925), + 107: uint16(25001), + 108: uint16(24989), + 109: uint16(25035), + 110: uint16(25041), + 111: uint16(25094), + 112: uint16(32896), + 113: uint16(32895), + 114: uint16(27795), + 115: uint16(27894), + 116: uint16(28156), + 117: uint16(30710), + 118: uint16(30712), + 119: uint16(30720), + 120: uint16(30729), + 121: uint16(30743), + 122: uint16(30744), + 123: uint16(30737), + 124: uint16(26027), + 125: uint16(30765), + 126: uint16(30748), + 127: uint16(30749), + 128: uint16(30777), + 129: uint16(30778), + 130: uint16(30779), + 131: uint16(30751), + 132: uint16(30780), + 133: uint16(30757), + 134: uint16(30764), + 135: uint16(30755), + 136: uint16(30761), + 137: uint16(30798), + 138: uint16(30829), + 139: uint16(30806), + 140: uint16(30807), + 141: uint16(30758), + 142: uint16(30800), + 143: uint16(30791), + 144: uint16(30796), + 145: uint16(30826), + 146: uint16(30875), + 147: uint16(30867), + 148: uint16(30874), + 149: uint16(30855), + 150: uint16(30876), + 151: uint16(30881), + 152: uint16(30883), + 153: uint16(30898), + 154: uint16(30905), + 155: uint16(30885), + 156: uint16(30932), + 157: uint16(30937), + 158: uint16(30921), + 159: uint16(30956), + 160: uint16(30962), + 161: uint16(30981), + 162: uint16(30964), + 163: uint16(30995), + 164: uint16(31012), + 165: uint16(31006), + 166: uint16(31028), + 167: uint16(40859), + 168: uint16(40697), + 169: uint16(40699), + 170: uint16(40700), + 171: uint16(30449), + 172: uint16(30468), + 173: uint16(30477), + 174: uint16(30457), + 175: uint16(30471), + 176: uint16(30472), + 177: uint16(30490), + 178: uint16(30498), + 179: uint16(30489), + 180: uint16(30509), + 181: uint16(30502), + 182: uint16(30517), + 183: uint16(30520), + 184: uint16(30544), + 185: uint16(30545), + 186: uint16(30535), + 187: uint16(30531), + 188: uint16(30554), + 189: uint16(30568), + }, + 109: { + 0: uint16(38927), + 1: uint16(38928), + 2: uint16(38929), + 3: uint16(38930), + 4: uint16(38931), + 5: uint16(38932), + 6: uint16(38933), + 7: uint16(38934), + 8: uint16(38935), + 9: uint16(38936), + 10: uint16(38937), + 11: uint16(38938), + 12: uint16(38939), + 13: uint16(38940), + 14: uint16(38941), + 15: uint16(38942), + 16: uint16(38943), + 17: uint16(38944), + 18: uint16(38945), + 19: uint16(38946), + 20: uint16(38947), + 21: uint16(38948), + 22: uint16(38949), + 23: uint16(38950), + 24: uint16(38951), + 25: uint16(38952), + 26: uint16(38953), + 27: uint16(38954), + 28: uint16(38955), + 29: uint16(38956), + 30: uint16(38957), + 31: uint16(38958), + 32: uint16(38959), + 33: uint16(38960), + 34: uint16(38961), + 35: uint16(38962), + 36: uint16(38963), + 37: uint16(38964), + 38: uint16(38965), + 39: uint16(38966), + 40: uint16(38967), + 41: uint16(38968), + 42: uint16(38969), + 43: uint16(38970), + 44: uint16(38971), + 45: uint16(38972), + 46: uint16(38973), + 47: uint16(38974), + 48: uint16(38975), + 49: uint16(38976), + 50: uint16(38977), + 51: uint16(38978), + 52: uint16(38979), + 53: uint16(38980), + 54: uint16(38981), + 55: uint16(38982), + 56: uint16(38983), + 57: uint16(38984), + 58: uint16(38985), + 59: uint16(38986), + 60: uint16(38987), + 61: uint16(38988), + 62: uint16(38989), + 63: uint16(38990), + 64: uint16(38991), + 65: uint16(38992), + 66: uint16(38993), + 67: uint16(38994), + 68: uint16(38995), + 69: uint16(38996), + 70: uint16(38997), + 71: uint16(38998), + 72: uint16(38999), + 73: uint16(39000), + 74: uint16(39001), + 75: uint16(39002), + 76: uint16(39003), + 77: uint16(39004), + 78: uint16(39005), + 79: uint16(39006), + 80: uint16(39007), + 81: uint16(39008), + 82: uint16(39009), + 83: uint16(39010), + 84: uint16(39011), + 85: uint16(39012), + 86: uint16(39013), + 87: uint16(39014), + 88: uint16(39015), + 89: uint16(39016), + 90: uint16(39017), + 91: uint16(39018), + 92: uint16(39019), + 93: uint16(39020), + 94: uint16(39021), + 95: uint16(39022), + 96: uint16(30562), + 97: uint16(30565), + 98: uint16(30591), + 99: uint16(30605), + 100: uint16(30589), + 101: uint16(30592), + 102: uint16(30604), + 103: uint16(30609), + 104: uint16(30623), + 105: uint16(30624), + 106: uint16(30640), + 107: uint16(30645), + 108: uint16(30653), + 109: uint16(30010), + 110: uint16(30016), + 111: uint16(30030), + 112: uint16(30027), + 113: uint16(30024), + 114: uint16(30043), + 115: uint16(30066), + 116: uint16(30073), + 117: uint16(30083), + 118: uint16(32600), + 119: uint16(32609), + 120: uint16(32607), + 121: uint16(35400), + 122: uint16(32616), + 123: uint16(32628), + 124: uint16(32625), + 125: uint16(32633), + 126: uint16(32641), + 127: uint16(32638), + 128: uint16(30413), + 129: uint16(30437), + 130: uint16(34866), + 131: uint16(38021), + 132: uint16(38022), + 133: uint16(38023), + 134: uint16(38027), + 135: uint16(38026), + 136: uint16(38028), + 137: uint16(38029), + 138: uint16(38031), + 139: uint16(38032), + 140: uint16(38036), + 141: uint16(38039), + 142: uint16(38037), + 143: uint16(38042), + 144: uint16(38043), + 145: uint16(38044), + 146: uint16(38051), + 147: uint16(38052), + 148: uint16(38059), + 149: uint16(38058), + 150: uint16(38061), + 151: uint16(38060), + 152: uint16(38063), + 153: uint16(38064), + 154: uint16(38066), + 155: uint16(38068), + 156: uint16(38070), + 157: uint16(38071), + 158: uint16(38072), + 159: uint16(38073), + 160: uint16(38074), + 161: uint16(38076), + 162: uint16(38077), + 163: uint16(38079), + 164: uint16(38084), + 165: uint16(38088), + 166: uint16(38089), + 167: uint16(38090), + 168: uint16(38091), + 169: uint16(38092), + 170: uint16(38093), + 171: uint16(38094), + 172: uint16(38096), + 173: uint16(38097), + 174: uint16(38098), + 175: uint16(38101), + 176: uint16(38102), + 177: uint16(38103), + 178: uint16(38105), + 179: uint16(38104), + 180: uint16(38107), + 181: uint16(38110), + 182: uint16(38111), + 183: uint16(38112), + 184: uint16(38114), + 185: uint16(38116), + 186: uint16(38117), + 187: uint16(38119), + 188: uint16(38120), + 189: uint16(38122), + }, + 110: { + 0: uint16(39023), + 1: uint16(39024), + 2: uint16(39025), + 3: uint16(39026), + 4: uint16(39027), + 5: uint16(39028), + 6: uint16(39051), + 7: uint16(39054), + 8: uint16(39058), + 9: uint16(39061), + 10: uint16(39065), + 11: uint16(39075), + 12: uint16(39080), + 13: uint16(39081), + 14: uint16(39082), + 15: uint16(39083), + 16: uint16(39084), + 17: uint16(39085), + 18: uint16(39086), + 19: uint16(39087), + 20: uint16(39088), + 21: uint16(39089), + 22: uint16(39090), + 23: uint16(39091), + 24: uint16(39092), + 25: uint16(39093), + 26: uint16(39094), + 27: uint16(39095), + 28: uint16(39096), + 29: uint16(39097), + 30: uint16(39098), + 31: uint16(39099), + 32: uint16(39100), + 33: uint16(39101), + 34: uint16(39102), + 35: uint16(39103), + 36: uint16(39104), + 37: uint16(39105), + 38: uint16(39106), + 39: uint16(39107), + 40: uint16(39108), + 41: uint16(39109), + 42: uint16(39110), + 43: uint16(39111), + 44: uint16(39112), + 45: uint16(39113), + 46: uint16(39114), + 47: uint16(39115), + 48: uint16(39116), + 49: uint16(39117), + 50: uint16(39119), + 51: uint16(39120), + 52: uint16(39124), + 53: uint16(39126), + 54: uint16(39127), + 55: uint16(39131), + 56: uint16(39132), + 57: uint16(39133), + 58: uint16(39136), + 59: uint16(39137), + 60: uint16(39138), + 61: uint16(39139), + 62: uint16(39140), + 63: uint16(39141), + 64: uint16(39142), + 65: uint16(39145), + 66: uint16(39146), + 67: uint16(39147), + 68: uint16(39148), + 69: uint16(39149), + 70: uint16(39150), + 71: uint16(39151), + 72: uint16(39152), + 73: uint16(39153), + 74: uint16(39154), + 75: uint16(39155), + 76: uint16(39156), + 77: uint16(39157), + 78: uint16(39158), + 79: uint16(39159), + 80: uint16(39160), + 81: uint16(39161), + 82: uint16(39162), + 83: uint16(39163), + 84: uint16(39164), + 85: uint16(39165), + 86: uint16(39166), + 87: uint16(39167), + 88: uint16(39168), + 89: uint16(39169), + 90: uint16(39170), + 91: uint16(39171), + 92: uint16(39172), + 93: uint16(39173), + 94: uint16(39174), + 95: uint16(39175), + 96: uint16(38121), + 97: uint16(38123), + 98: uint16(38126), + 99: uint16(38127), + 100: uint16(38131), + 101: uint16(38132), + 102: uint16(38133), + 103: uint16(38135), + 104: uint16(38137), + 105: uint16(38140), + 106: uint16(38141), + 107: uint16(38143), + 108: uint16(38147), + 109: uint16(38146), + 110: uint16(38150), + 111: uint16(38151), + 112: uint16(38153), + 113: uint16(38154), + 114: uint16(38157), + 115: uint16(38158), + 116: uint16(38159), + 117: uint16(38162), + 118: uint16(38163), + 119: uint16(38164), + 120: uint16(38165), + 121: uint16(38166), + 122: uint16(38168), + 123: uint16(38171), + 124: uint16(38173), + 125: uint16(38174), + 126: uint16(38175), + 127: uint16(38178), + 128: uint16(38186), + 129: uint16(38187), + 130: uint16(38185), + 131: uint16(38188), + 132: uint16(38193), + 133: uint16(38194), + 134: uint16(38196), + 135: uint16(38198), + 136: uint16(38199), + 137: uint16(38200), + 138: uint16(38204), + 139: uint16(38206), + 140: uint16(38207), + 141: uint16(38210), + 142: uint16(38197), + 143: uint16(38212), + 144: uint16(38213), + 145: uint16(38214), + 146: uint16(38217), + 147: uint16(38220), + 148: uint16(38222), + 149: uint16(38223), + 150: uint16(38226), + 151: uint16(38227), + 152: uint16(38228), + 153: uint16(38230), + 154: uint16(38231), + 155: uint16(38232), + 156: uint16(38233), + 157: uint16(38235), + 158: uint16(38238), + 159: uint16(38239), + 160: uint16(38237), + 161: uint16(38241), + 162: uint16(38242), + 163: uint16(38244), + 164: uint16(38245), + 165: uint16(38246), + 166: uint16(38247), + 167: uint16(38248), + 168: uint16(38249), + 169: uint16(38250), + 170: uint16(38251), + 171: uint16(38252), + 172: uint16(38255), + 173: uint16(38257), + 174: uint16(38258), + 175: uint16(38259), + 176: uint16(38202), + 177: uint16(30695), + 178: uint16(30700), + 179: uint16(38601), + 180: uint16(31189), + 181: uint16(31213), + 182: uint16(31203), + 183: uint16(31211), + 184: uint16(31238), + 185: uint16(23879), + 186: uint16(31235), + 187: uint16(31234), + 188: uint16(31262), + 189: uint16(31252), + }, + 111: { + 0: uint16(39176), + 1: uint16(39177), + 2: uint16(39178), + 3: uint16(39179), + 4: uint16(39180), + 5: uint16(39182), + 6: uint16(39183), + 7: uint16(39185), + 8: uint16(39186), + 9: uint16(39187), + 10: uint16(39188), + 11: uint16(39189), + 12: uint16(39190), + 13: uint16(39191), + 14: uint16(39192), + 15: uint16(39193), + 16: uint16(39194), + 17: uint16(39195), + 18: uint16(39196), + 19: uint16(39197), + 20: uint16(39198), + 21: uint16(39199), + 22: uint16(39200), + 23: uint16(39201), + 24: uint16(39202), + 25: uint16(39203), + 26: uint16(39204), + 27: uint16(39205), + 28: uint16(39206), + 29: uint16(39207), + 30: uint16(39208), + 31: uint16(39209), + 32: uint16(39210), + 33: uint16(39211), + 34: uint16(39212), + 35: uint16(39213), + 36: uint16(39215), + 37: uint16(39216), + 38: uint16(39217), + 39: uint16(39218), + 40: uint16(39219), + 41: uint16(39220), + 42: uint16(39221), + 43: uint16(39222), + 44: uint16(39223), + 45: uint16(39224), + 46: uint16(39225), + 47: uint16(39226), + 48: uint16(39227), + 49: uint16(39228), + 50: uint16(39229), + 51: uint16(39230), + 52: uint16(39231), + 53: uint16(39232), + 54: uint16(39233), + 55: uint16(39234), + 56: uint16(39235), + 57: uint16(39236), + 58: uint16(39237), + 59: uint16(39238), + 60: uint16(39239), + 61: uint16(39240), + 62: uint16(39241), + 63: uint16(39242), + 64: uint16(39243), + 65: uint16(39244), + 66: uint16(39245), + 67: uint16(39246), + 68: uint16(39247), + 69: uint16(39248), + 70: uint16(39249), + 71: uint16(39250), + 72: uint16(39251), + 73: uint16(39254), + 74: uint16(39255), + 75: uint16(39256), + 76: uint16(39257), + 77: uint16(39258), + 78: uint16(39259), + 79: uint16(39260), + 80: uint16(39261), + 81: uint16(39262), + 82: uint16(39263), + 83: uint16(39264), + 84: uint16(39265), + 85: uint16(39266), + 86: uint16(39268), + 87: uint16(39270), + 88: uint16(39283), + 89: uint16(39288), + 90: uint16(39289), + 91: uint16(39291), + 92: uint16(39294), + 93: uint16(39298), + 94: uint16(39299), + 95: uint16(39305), + 96: uint16(31289), + 97: uint16(31287), + 98: uint16(31313), + 99: uint16(40655), + 100: uint16(39333), + 101: uint16(31344), + 102: uint16(30344), + 103: uint16(30350), + 104: uint16(30355), + 105: uint16(30361), + 106: uint16(30372), + 107: uint16(29918), + 108: uint16(29920), + 109: uint16(29996), + 110: uint16(40480), + 111: uint16(40482), + 112: uint16(40488), + 113: uint16(40489), + 114: uint16(40490), + 115: uint16(40491), + 116: uint16(40492), + 117: uint16(40498), + 118: uint16(40497), + 119: uint16(40502), + 120: uint16(40504), + 121: uint16(40503), + 122: uint16(40505), + 123: uint16(40506), + 124: uint16(40510), + 125: uint16(40513), + 126: uint16(40514), + 127: uint16(40516), + 128: uint16(40518), + 129: uint16(40519), + 130: uint16(40520), + 131: uint16(40521), + 132: uint16(40523), + 133: uint16(40524), + 134: uint16(40526), + 135: uint16(40529), + 136: uint16(40533), + 137: uint16(40535), + 138: uint16(40538), + 139: uint16(40539), + 140: uint16(40540), + 141: uint16(40542), + 142: uint16(40547), + 143: uint16(40550), + 144: uint16(40551), + 145: uint16(40552), + 146: uint16(40553), + 147: uint16(40554), + 148: uint16(40555), + 149: uint16(40556), + 150: uint16(40561), + 151: uint16(40557), + 152: uint16(40563), + 153: uint16(30098), + 154: uint16(30100), + 155: uint16(30102), + 156: uint16(30112), + 157: uint16(30109), + 158: uint16(30124), + 159: uint16(30115), + 160: uint16(30131), + 161: uint16(30132), + 162: uint16(30136), + 163: uint16(30148), + 164: uint16(30129), + 165: uint16(30128), + 166: uint16(30147), + 167: uint16(30146), + 168: uint16(30166), + 169: uint16(30157), + 170: uint16(30179), + 171: uint16(30184), + 172: uint16(30182), + 173: uint16(30180), + 174: uint16(30187), + 175: uint16(30183), + 176: uint16(30211), + 177: uint16(30193), + 178: uint16(30204), + 179: uint16(30207), + 180: uint16(30224), + 181: uint16(30208), + 182: uint16(30213), + 183: uint16(30220), + 184: uint16(30231), + 185: uint16(30218), + 186: uint16(30245), + 187: uint16(30232), + 188: uint16(30229), + 189: uint16(30233), + }, + 112: { + 0: uint16(39308), + 1: uint16(39310), + 2: uint16(39322), + 3: uint16(39323), + 4: uint16(39324), + 5: uint16(39325), + 6: uint16(39326), + 7: uint16(39327), + 8: uint16(39328), + 9: uint16(39329), + 10: uint16(39330), + 11: uint16(39331), + 12: uint16(39332), + 13: uint16(39334), + 14: uint16(39335), + 15: uint16(39337), + 16: uint16(39338), + 17: uint16(39339), + 18: uint16(39340), + 19: uint16(39341), + 20: uint16(39342), + 21: uint16(39343), + 22: uint16(39344), + 23: uint16(39345), + 24: uint16(39346), + 25: uint16(39347), + 26: uint16(39348), + 27: uint16(39349), + 28: uint16(39350), + 29: uint16(39351), + 30: uint16(39352), + 31: uint16(39353), + 32: uint16(39354), + 33: uint16(39355), + 34: uint16(39356), + 35: uint16(39357), + 36: uint16(39358), + 37: uint16(39359), + 38: uint16(39360), + 39: uint16(39361), + 40: uint16(39362), + 41: uint16(39363), + 42: uint16(39364), + 43: uint16(39365), + 44: uint16(39366), + 45: uint16(39367), + 46: uint16(39368), + 47: uint16(39369), + 48: uint16(39370), + 49: uint16(39371), + 50: uint16(39372), + 51: uint16(39373), + 52: uint16(39374), + 53: uint16(39375), + 54: uint16(39376), + 55: uint16(39377), + 56: uint16(39378), + 57: uint16(39379), + 58: uint16(39380), + 59: uint16(39381), + 60: uint16(39382), + 61: uint16(39383), + 62: uint16(39384), + 63: uint16(39385), + 64: uint16(39386), + 65: uint16(39387), + 66: uint16(39388), + 67: uint16(39389), + 68: uint16(39390), + 69: uint16(39391), + 70: uint16(39392), + 71: uint16(39393), + 72: uint16(39394), + 73: uint16(39395), + 74: uint16(39396), + 75: uint16(39397), + 76: uint16(39398), + 77: uint16(39399), + 78: uint16(39400), + 79: uint16(39401), + 80: uint16(39402), + 81: uint16(39403), + 82: uint16(39404), + 83: uint16(39405), + 84: uint16(39406), + 85: uint16(39407), + 86: uint16(39408), + 87: uint16(39409), + 88: uint16(39410), + 89: uint16(39411), + 90: uint16(39412), + 91: uint16(39413), + 92: uint16(39414), + 93: uint16(39415), + 94: uint16(39416), + 95: uint16(39417), + 96: uint16(30235), + 97: uint16(30268), + 98: uint16(30242), + 99: uint16(30240), + 100: uint16(30272), + 101: uint16(30253), + 102: uint16(30256), + 103: uint16(30271), + 104: uint16(30261), + 105: uint16(30275), + 106: uint16(30270), + 107: uint16(30259), + 108: uint16(30285), + 109: uint16(30302), + 110: uint16(30292), + 111: uint16(30300), + 112: uint16(30294), + 113: uint16(30315), + 114: uint16(30319), + 115: uint16(32714), + 116: uint16(31462), + 117: uint16(31352), + 118: uint16(31353), + 119: uint16(31360), + 120: uint16(31366), + 121: uint16(31368), + 122: uint16(31381), + 123: uint16(31398), + 124: uint16(31392), + 125: uint16(31404), + 126: uint16(31400), + 127: uint16(31405), + 128: uint16(31411), + 129: uint16(34916), + 130: uint16(34921), + 131: uint16(34930), + 132: uint16(34941), + 133: uint16(34943), + 134: uint16(34946), + 135: uint16(34978), + 136: uint16(35014), + 137: uint16(34999), + 138: uint16(35004), + 139: uint16(35017), + 140: uint16(35042), + 141: uint16(35022), + 142: uint16(35043), + 143: uint16(35045), + 144: uint16(35057), + 145: uint16(35098), + 146: uint16(35068), + 147: uint16(35048), + 148: uint16(35070), + 149: uint16(35056), + 150: uint16(35105), + 151: uint16(35097), + 152: uint16(35091), + 153: uint16(35099), + 154: uint16(35082), + 155: uint16(35124), + 156: uint16(35115), + 157: uint16(35126), + 158: uint16(35137), + 159: uint16(35174), + 160: uint16(35195), + 161: uint16(30091), + 162: uint16(32997), + 163: uint16(30386), + 164: uint16(30388), + 165: uint16(30684), + 166: uint16(32786), + 167: uint16(32788), + 168: uint16(32790), + 169: uint16(32796), + 170: uint16(32800), + 171: uint16(32802), + 172: uint16(32805), + 173: uint16(32806), + 174: uint16(32807), + 175: uint16(32809), + 176: uint16(32808), + 177: uint16(32817), + 178: uint16(32779), + 179: uint16(32821), + 180: uint16(32835), + 181: uint16(32838), + 182: uint16(32845), + 183: uint16(32850), + 184: uint16(32873), + 185: uint16(32881), + 186: uint16(35203), + 187: uint16(39032), + 188: uint16(39040), + 189: uint16(39043), + }, + 113: { + 0: uint16(39418), + 1: uint16(39419), + 2: uint16(39420), + 3: uint16(39421), + 4: uint16(39422), + 5: uint16(39423), + 6: uint16(39424), + 7: uint16(39425), + 8: uint16(39426), + 9: uint16(39427), + 10: uint16(39428), + 11: uint16(39429), + 12: uint16(39430), + 13: uint16(39431), + 14: uint16(39432), + 15: uint16(39433), + 16: uint16(39434), + 17: uint16(39435), + 18: uint16(39436), + 19: uint16(39437), + 20: uint16(39438), + 21: uint16(39439), + 22: uint16(39440), + 23: uint16(39441), + 24: uint16(39442), + 25: uint16(39443), + 26: uint16(39444), + 27: uint16(39445), + 28: uint16(39446), + 29: uint16(39447), + 30: uint16(39448), + 31: uint16(39449), + 32: uint16(39450), + 33: uint16(39451), + 34: uint16(39452), + 35: uint16(39453), + 36: uint16(39454), + 37: uint16(39455), + 38: uint16(39456), + 39: uint16(39457), + 40: uint16(39458), + 41: uint16(39459), + 42: uint16(39460), + 43: uint16(39461), + 44: uint16(39462), + 45: uint16(39463), + 46: uint16(39464), + 47: uint16(39465), + 48: uint16(39466), + 49: uint16(39467), + 50: uint16(39468), + 51: uint16(39469), + 52: uint16(39470), + 53: uint16(39471), + 54: uint16(39472), + 55: uint16(39473), + 56: uint16(39474), + 57: uint16(39475), + 58: uint16(39476), + 59: uint16(39477), + 60: uint16(39478), + 61: uint16(39479), + 62: uint16(39480), + 63: uint16(39481), + 64: uint16(39482), + 65: uint16(39483), + 66: uint16(39484), + 67: uint16(39485), + 68: uint16(39486), + 69: uint16(39487), + 70: uint16(39488), + 71: uint16(39489), + 72: uint16(39490), + 73: uint16(39491), + 74: uint16(39492), + 75: uint16(39493), + 76: uint16(39494), + 77: uint16(39495), + 78: uint16(39496), + 79: uint16(39497), + 80: uint16(39498), + 81: uint16(39499), + 82: uint16(39500), + 83: uint16(39501), + 84: uint16(39502), + 85: uint16(39503), + 86: uint16(39504), + 87: uint16(39505), + 88: uint16(39506), + 89: uint16(39507), + 90: uint16(39508), + 91: uint16(39509), + 92: uint16(39510), + 93: uint16(39511), + 94: uint16(39512), + 95: uint16(39513), + 96: uint16(39049), + 97: uint16(39052), + 98: uint16(39053), + 99: uint16(39055), + 100: uint16(39060), + 101: uint16(39066), + 102: uint16(39067), + 103: uint16(39070), + 104: uint16(39071), + 105: uint16(39073), + 106: uint16(39074), + 107: uint16(39077), + 108: uint16(39078), + 109: uint16(34381), + 110: uint16(34388), + 111: uint16(34412), + 112: uint16(34414), + 113: uint16(34431), + 114: uint16(34426), + 115: uint16(34428), + 116: uint16(34427), + 117: uint16(34472), + 118: uint16(34445), + 119: uint16(34443), + 120: uint16(34476), + 121: uint16(34461), + 122: uint16(34471), + 123: uint16(34467), + 124: uint16(34474), + 125: uint16(34451), + 126: uint16(34473), + 127: uint16(34486), + 128: uint16(34500), + 129: uint16(34485), + 130: uint16(34510), + 131: uint16(34480), + 132: uint16(34490), + 133: uint16(34481), + 134: uint16(34479), + 135: uint16(34505), + 136: uint16(34511), + 137: uint16(34484), + 138: uint16(34537), + 139: uint16(34545), + 140: uint16(34546), + 141: uint16(34541), + 142: uint16(34547), + 143: uint16(34512), + 144: uint16(34579), + 145: uint16(34526), + 146: uint16(34548), + 147: uint16(34527), + 148: uint16(34520), + 149: uint16(34513), + 150: uint16(34563), + 151: uint16(34567), + 152: uint16(34552), + 153: uint16(34568), + 154: uint16(34570), + 155: uint16(34573), + 156: uint16(34569), + 157: uint16(34595), + 158: uint16(34619), + 159: uint16(34590), + 160: uint16(34597), + 161: uint16(34606), + 162: uint16(34586), + 163: uint16(34622), + 164: uint16(34632), + 165: uint16(34612), + 166: uint16(34609), + 167: uint16(34601), + 168: uint16(34615), + 169: uint16(34623), + 170: uint16(34690), + 171: uint16(34594), + 172: uint16(34685), + 173: uint16(34686), + 174: uint16(34683), + 175: uint16(34656), + 176: uint16(34672), + 177: uint16(34636), + 178: uint16(34670), + 179: uint16(34699), + 180: uint16(34643), + 181: uint16(34659), + 182: uint16(34684), + 183: uint16(34660), + 184: uint16(34649), + 185: uint16(34661), + 186: uint16(34707), + 187: uint16(34735), + 188: uint16(34728), + 189: uint16(34770), + }, + 114: { + 0: uint16(39514), + 1: uint16(39515), + 2: uint16(39516), + 3: uint16(39517), + 4: uint16(39518), + 5: uint16(39519), + 6: uint16(39520), + 7: uint16(39521), + 8: uint16(39522), + 9: uint16(39523), + 10: uint16(39524), + 11: uint16(39525), + 12: uint16(39526), + 13: uint16(39527), + 14: uint16(39528), + 15: uint16(39529), + 16: uint16(39530), + 17: uint16(39531), + 18: uint16(39538), + 19: uint16(39555), + 20: uint16(39561), + 21: uint16(39565), + 22: uint16(39566), + 23: uint16(39572), + 24: uint16(39573), + 25: uint16(39577), + 26: uint16(39590), + 27: uint16(39593), + 28: uint16(39594), + 29: uint16(39595), + 30: uint16(39596), + 31: uint16(39597), + 32: uint16(39598), + 33: uint16(39599), + 34: uint16(39602), + 35: uint16(39603), + 36: uint16(39604), + 37: uint16(39605), + 38: uint16(39609), + 39: uint16(39611), + 40: uint16(39613), + 41: uint16(39614), + 42: uint16(39615), + 43: uint16(39619), + 44: uint16(39620), + 45: uint16(39622), + 46: uint16(39623), + 47: uint16(39624), + 48: uint16(39625), + 49: uint16(39626), + 50: uint16(39629), + 51: uint16(39630), + 52: uint16(39631), + 53: uint16(39632), + 54: uint16(39634), + 55: uint16(39636), + 56: uint16(39637), + 57: uint16(39638), + 58: uint16(39639), + 59: uint16(39641), + 60: uint16(39642), + 61: uint16(39643), + 62: uint16(39644), + 63: uint16(39645), + 64: uint16(39646), + 65: uint16(39648), + 66: uint16(39650), + 67: uint16(39651), + 68: uint16(39652), + 69: uint16(39653), + 70: uint16(39655), + 71: uint16(39656), + 72: uint16(39657), + 73: uint16(39658), + 74: uint16(39660), + 75: uint16(39662), + 76: uint16(39664), + 77: uint16(39665), + 78: uint16(39666), + 79: uint16(39667), + 80: uint16(39668), + 81: uint16(39669), + 82: uint16(39670), + 83: uint16(39671), + 84: uint16(39672), + 85: uint16(39674), + 86: uint16(39676), + 87: uint16(39677), + 88: uint16(39678), + 89: uint16(39679), + 90: uint16(39680), + 91: uint16(39681), + 92: uint16(39682), + 93: uint16(39684), + 94: uint16(39685), + 95: uint16(39686), + 96: uint16(34758), + 97: uint16(34696), + 98: uint16(34693), + 99: uint16(34733), + 100: uint16(34711), + 101: uint16(34691), + 102: uint16(34731), + 103: uint16(34789), + 104: uint16(34732), + 105: uint16(34741), + 106: uint16(34739), + 107: uint16(34763), + 108: uint16(34771), + 109: uint16(34749), + 110: uint16(34769), + 111: uint16(34752), + 112: uint16(34762), + 113: uint16(34779), + 114: uint16(34794), + 115: uint16(34784), + 116: uint16(34798), + 117: uint16(34838), + 118: uint16(34835), + 119: uint16(34814), + 120: uint16(34826), + 121: uint16(34843), + 122: uint16(34849), + 123: uint16(34873), + 124: uint16(34876), + 125: uint16(32566), + 126: uint16(32578), + 127: uint16(32580), + 128: uint16(32581), + 129: uint16(33296), + 130: uint16(31482), + 131: uint16(31485), + 132: uint16(31496), + 133: uint16(31491), + 134: uint16(31492), + 135: uint16(31509), + 136: uint16(31498), + 137: uint16(31531), + 138: uint16(31503), + 139: uint16(31559), + 140: uint16(31544), + 141: uint16(31530), + 142: uint16(31513), + 143: uint16(31534), + 144: uint16(31537), + 145: uint16(31520), + 146: uint16(31525), + 147: uint16(31524), + 148: uint16(31539), + 149: uint16(31550), + 150: uint16(31518), + 151: uint16(31576), + 152: uint16(31578), + 153: uint16(31557), + 154: uint16(31605), + 155: uint16(31564), + 156: uint16(31581), + 157: uint16(31584), + 158: uint16(31598), + 159: uint16(31611), + 160: uint16(31586), + 161: uint16(31602), + 162: uint16(31601), + 163: uint16(31632), + 164: uint16(31654), + 165: uint16(31655), + 166: uint16(31672), + 167: uint16(31660), + 168: uint16(31645), + 169: uint16(31656), + 170: uint16(31621), + 171: uint16(31658), + 172: uint16(31644), + 173: uint16(31650), + 174: uint16(31659), + 175: uint16(31668), + 176: uint16(31697), + 177: uint16(31681), + 178: uint16(31692), + 179: uint16(31709), + 180: uint16(31706), + 181: uint16(31717), + 182: uint16(31718), + 183: uint16(31722), + 184: uint16(31756), + 185: uint16(31742), + 186: uint16(31740), + 187: uint16(31759), + 188: uint16(31766), + 189: uint16(31755), + }, + 115: { + 0: uint16(39687), + 1: uint16(39689), + 2: uint16(39690), + 3: uint16(39691), + 4: uint16(39692), + 5: uint16(39693), + 6: uint16(39694), + 7: uint16(39696), + 8: uint16(39697), + 9: uint16(39698), + 10: uint16(39700), + 11: uint16(39701), + 12: uint16(39702), + 13: uint16(39703), + 14: uint16(39704), + 15: uint16(39705), + 16: uint16(39706), + 17: uint16(39707), + 18: uint16(39708), + 19: uint16(39709), + 20: uint16(39710), + 21: uint16(39712), + 22: uint16(39713), + 23: uint16(39714), + 24: uint16(39716), + 25: uint16(39717), + 26: uint16(39718), + 27: uint16(39719), + 28: uint16(39720), + 29: uint16(39721), + 30: uint16(39722), + 31: uint16(39723), + 32: uint16(39724), + 33: uint16(39725), + 34: uint16(39726), + 35: uint16(39728), + 36: uint16(39729), + 37: uint16(39731), + 38: uint16(39732), + 39: uint16(39733), + 40: uint16(39734), + 41: uint16(39735), + 42: uint16(39736), + 43: uint16(39737), + 44: uint16(39738), + 45: uint16(39741), + 46: uint16(39742), + 47: uint16(39743), + 48: uint16(39744), + 49: uint16(39750), + 50: uint16(39754), + 51: uint16(39755), + 52: uint16(39756), + 53: uint16(39758), + 54: uint16(39760), + 55: uint16(39762), + 56: uint16(39763), + 57: uint16(39765), + 58: uint16(39766), + 59: uint16(39767), + 60: uint16(39768), + 61: uint16(39769), + 62: uint16(39770), + 63: uint16(39771), + 64: uint16(39772), + 65: uint16(39773), + 66: uint16(39774), + 67: uint16(39775), + 68: uint16(39776), + 69: uint16(39777), + 70: uint16(39778), + 71: uint16(39779), + 72: uint16(39780), + 73: uint16(39781), + 74: uint16(39782), + 75: uint16(39783), + 76: uint16(39784), + 77: uint16(39785), + 78: uint16(39786), + 79: uint16(39787), + 80: uint16(39788), + 81: uint16(39789), + 82: uint16(39790), + 83: uint16(39791), + 84: uint16(39792), + 85: uint16(39793), + 86: uint16(39794), + 87: uint16(39795), + 88: uint16(39796), + 89: uint16(39797), + 90: uint16(39798), + 91: uint16(39799), + 92: uint16(39800), + 93: uint16(39801), + 94: uint16(39802), + 95: uint16(39803), + 96: uint16(31775), + 97: uint16(31786), + 98: uint16(31782), + 99: uint16(31800), + 100: uint16(31809), + 101: uint16(31808), + 102: uint16(33278), + 103: uint16(33281), + 104: uint16(33282), + 105: uint16(33284), + 106: uint16(33260), + 107: uint16(34884), + 108: uint16(33313), + 109: uint16(33314), + 110: uint16(33315), + 111: uint16(33325), + 112: uint16(33327), + 113: uint16(33320), + 114: uint16(33323), + 115: uint16(33336), + 116: uint16(33339), + 117: uint16(33331), + 118: uint16(33332), + 119: uint16(33342), + 120: uint16(33348), + 121: uint16(33353), + 122: uint16(33355), + 123: uint16(33359), + 124: uint16(33370), + 125: uint16(33375), + 126: uint16(33384), + 127: uint16(34942), + 128: uint16(34949), + 129: uint16(34952), + 130: uint16(35032), + 131: uint16(35039), + 132: uint16(35166), + 133: uint16(32669), + 134: uint16(32671), + 135: uint16(32679), + 136: uint16(32687), + 137: uint16(32688), + 138: uint16(32690), + 139: uint16(31868), + 140: uint16(25929), + 141: uint16(31889), + 142: uint16(31901), + 143: uint16(31900), + 144: uint16(31902), + 145: uint16(31906), + 146: uint16(31922), + 147: uint16(31932), + 148: uint16(31933), + 149: uint16(31937), + 150: uint16(31943), + 151: uint16(31948), + 152: uint16(31949), + 153: uint16(31944), + 154: uint16(31941), + 155: uint16(31959), + 156: uint16(31976), + 157: uint16(33390), + 158: uint16(26280), + 159: uint16(32703), + 160: uint16(32718), + 161: uint16(32725), + 162: uint16(32741), + 163: uint16(32737), + 164: uint16(32742), + 165: uint16(32745), + 166: uint16(32750), + 167: uint16(32755), + 168: uint16(31992), + 169: uint16(32119), + 170: uint16(32166), + 171: uint16(32174), + 172: uint16(32327), + 173: uint16(32411), + 174: uint16(40632), + 175: uint16(40628), + 176: uint16(36211), + 177: uint16(36228), + 178: uint16(36244), + 179: uint16(36241), + 180: uint16(36273), + 181: uint16(36199), + 182: uint16(36205), + 183: uint16(35911), + 184: uint16(35913), + 185: uint16(37194), + 186: uint16(37200), + 187: uint16(37198), + 188: uint16(37199), + 189: uint16(37220), + }, + 116: { + 0: uint16(39804), + 1: uint16(39805), + 2: uint16(39806), + 3: uint16(39807), + 4: uint16(39808), + 5: uint16(39809), + 6: uint16(39810), + 7: uint16(39811), + 8: uint16(39812), + 9: uint16(39813), + 10: uint16(39814), + 11: uint16(39815), + 12: uint16(39816), + 13: uint16(39817), + 14: uint16(39818), + 15: uint16(39819), + 16: uint16(39820), + 17: uint16(39821), + 18: uint16(39822), + 19: uint16(39823), + 20: uint16(39824), + 21: uint16(39825), + 22: uint16(39826), + 23: uint16(39827), + 24: uint16(39828), + 25: uint16(39829), + 26: uint16(39830), + 27: uint16(39831), + 28: uint16(39832), + 29: uint16(39833), + 30: uint16(39834), + 31: uint16(39835), + 32: uint16(39836), + 33: uint16(39837), + 34: uint16(39838), + 35: uint16(39839), + 36: uint16(39840), + 37: uint16(39841), + 38: uint16(39842), + 39: uint16(39843), + 40: uint16(39844), + 41: uint16(39845), + 42: uint16(39846), + 43: uint16(39847), + 44: uint16(39848), + 45: uint16(39849), + 46: uint16(39850), + 47: uint16(39851), + 48: uint16(39852), + 49: uint16(39853), + 50: uint16(39854), + 51: uint16(39855), + 52: uint16(39856), + 53: uint16(39857), + 54: uint16(39858), + 55: uint16(39859), + 56: uint16(39860), + 57: uint16(39861), + 58: uint16(39862), + 59: uint16(39863), + 60: uint16(39864), + 61: uint16(39865), + 62: uint16(39866), + 63: uint16(39867), + 64: uint16(39868), + 65: uint16(39869), + 66: uint16(39870), + 67: uint16(39871), + 68: uint16(39872), + 69: uint16(39873), + 70: uint16(39874), + 71: uint16(39875), + 72: uint16(39876), + 73: uint16(39877), + 74: uint16(39878), + 75: uint16(39879), + 76: uint16(39880), + 77: uint16(39881), + 78: uint16(39882), + 79: uint16(39883), + 80: uint16(39884), + 81: uint16(39885), + 82: uint16(39886), + 83: uint16(39887), + 84: uint16(39888), + 85: uint16(39889), + 86: uint16(39890), + 87: uint16(39891), + 88: uint16(39892), + 89: uint16(39893), + 90: uint16(39894), + 91: uint16(39895), + 92: uint16(39896), + 93: uint16(39897), + 94: uint16(39898), + 95: uint16(39899), + 96: uint16(37218), + 97: uint16(37217), + 98: uint16(37232), + 99: uint16(37225), + 100: uint16(37231), + 101: uint16(37245), + 102: uint16(37246), + 103: uint16(37234), + 104: uint16(37236), + 105: uint16(37241), + 106: uint16(37260), + 107: uint16(37253), + 108: uint16(37264), + 109: uint16(37261), + 110: uint16(37265), + 111: uint16(37282), + 112: uint16(37283), + 113: uint16(37290), + 114: uint16(37293), + 115: uint16(37294), + 116: uint16(37295), + 117: uint16(37301), + 118: uint16(37300), + 119: uint16(37306), + 120: uint16(35925), + 121: uint16(40574), + 122: uint16(36280), + 123: uint16(36331), + 124: uint16(36357), + 125: uint16(36441), + 126: uint16(36457), + 127: uint16(36277), + 128: uint16(36287), + 129: uint16(36284), + 130: uint16(36282), + 131: uint16(36292), + 132: uint16(36310), + 133: uint16(36311), + 134: uint16(36314), + 135: uint16(36318), + 136: uint16(36302), + 137: uint16(36303), + 138: uint16(36315), + 139: uint16(36294), + 140: uint16(36332), + 141: uint16(36343), + 142: uint16(36344), + 143: uint16(36323), + 144: uint16(36345), + 145: uint16(36347), + 146: uint16(36324), + 147: uint16(36361), + 148: uint16(36349), + 149: uint16(36372), + 150: uint16(36381), + 151: uint16(36383), + 152: uint16(36396), + 153: uint16(36398), + 154: uint16(36387), + 155: uint16(36399), + 156: uint16(36410), + 157: uint16(36416), + 158: uint16(36409), + 159: uint16(36405), + 160: uint16(36413), + 161: uint16(36401), + 162: uint16(36425), + 163: uint16(36417), + 164: uint16(36418), + 165: uint16(36433), + 166: uint16(36434), + 167: uint16(36426), + 168: uint16(36464), + 169: uint16(36470), + 170: uint16(36476), + 171: uint16(36463), + 172: uint16(36468), + 173: uint16(36485), + 174: uint16(36495), + 175: uint16(36500), + 176: uint16(36496), + 177: uint16(36508), + 178: uint16(36510), + 179: uint16(35960), + 180: uint16(35970), + 181: uint16(35978), + 182: uint16(35973), + 183: uint16(35992), + 184: uint16(35988), + 185: uint16(26011), + 186: uint16(35286), + 187: uint16(35294), + 188: uint16(35290), + 189: uint16(35292), + }, + 117: { + 0: uint16(39900), + 1: uint16(39901), + 2: uint16(39902), + 3: uint16(39903), + 4: uint16(39904), + 5: uint16(39905), + 6: uint16(39906), + 7: uint16(39907), + 8: uint16(39908), + 9: uint16(39909), + 10: uint16(39910), + 11: uint16(39911), + 12: uint16(39912), + 13: uint16(39913), + 14: uint16(39914), + 15: uint16(39915), + 16: uint16(39916), + 17: uint16(39917), + 18: uint16(39918), + 19: uint16(39919), + 20: uint16(39920), + 21: uint16(39921), + 22: uint16(39922), + 23: uint16(39923), + 24: uint16(39924), + 25: uint16(39925), + 26: uint16(39926), + 27: uint16(39927), + 28: uint16(39928), + 29: uint16(39929), + 30: uint16(39930), + 31: uint16(39931), + 32: uint16(39932), + 33: uint16(39933), + 34: uint16(39934), + 35: uint16(39935), + 36: uint16(39936), + 37: uint16(39937), + 38: uint16(39938), + 39: uint16(39939), + 40: uint16(39940), + 41: uint16(39941), + 42: uint16(39942), + 43: uint16(39943), + 44: uint16(39944), + 45: uint16(39945), + 46: uint16(39946), + 47: uint16(39947), + 48: uint16(39948), + 49: uint16(39949), + 50: uint16(39950), + 51: uint16(39951), + 52: uint16(39952), + 53: uint16(39953), + 54: uint16(39954), + 55: uint16(39955), + 56: uint16(39956), + 57: uint16(39957), + 58: uint16(39958), + 59: uint16(39959), + 60: uint16(39960), + 61: uint16(39961), + 62: uint16(39962), + 63: uint16(39963), + 64: uint16(39964), + 65: uint16(39965), + 66: uint16(39966), + 67: uint16(39967), + 68: uint16(39968), + 69: uint16(39969), + 70: uint16(39970), + 71: uint16(39971), + 72: uint16(39972), + 73: uint16(39973), + 74: uint16(39974), + 75: uint16(39975), + 76: uint16(39976), + 77: uint16(39977), + 78: uint16(39978), + 79: uint16(39979), + 80: uint16(39980), + 81: uint16(39981), + 82: uint16(39982), + 83: uint16(39983), + 84: uint16(39984), + 85: uint16(39985), + 86: uint16(39986), + 87: uint16(39987), + 88: uint16(39988), + 89: uint16(39989), + 90: uint16(39990), + 91: uint16(39991), + 92: uint16(39992), + 93: uint16(39993), + 94: uint16(39994), + 95: uint16(39995), + 96: uint16(35301), + 97: uint16(35307), + 98: uint16(35311), + 99: uint16(35390), + 100: uint16(35622), + 101: uint16(38739), + 102: uint16(38633), + 103: uint16(38643), + 104: uint16(38639), + 105: uint16(38662), + 106: uint16(38657), + 107: uint16(38664), + 108: uint16(38671), + 109: uint16(38670), + 110: uint16(38698), + 111: uint16(38701), + 112: uint16(38704), + 113: uint16(38718), + 114: uint16(40832), + 115: uint16(40835), + 116: uint16(40837), + 117: uint16(40838), + 118: uint16(40839), + 119: uint16(40840), + 120: uint16(40841), + 121: uint16(40842), + 122: uint16(40844), + 123: uint16(40702), + 124: uint16(40715), + 125: uint16(40717), + 126: uint16(38585), + 127: uint16(38588), + 128: uint16(38589), + 129: uint16(38606), + 130: uint16(38610), + 131: uint16(30655), + 132: uint16(38624), + 133: uint16(37518), + 134: uint16(37550), + 135: uint16(37576), + 136: uint16(37694), + 137: uint16(37738), + 138: uint16(37834), + 139: uint16(37775), + 140: uint16(37950), + 141: uint16(37995), + 142: uint16(40063), + 143: uint16(40066), + 144: uint16(40069), + 145: uint16(40070), + 146: uint16(40071), + 147: uint16(40072), + 148: uint16(31267), + 149: uint16(40075), + 150: uint16(40078), + 151: uint16(40080), + 152: uint16(40081), + 153: uint16(40082), + 154: uint16(40084), + 155: uint16(40085), + 156: uint16(40090), + 157: uint16(40091), + 158: uint16(40094), + 159: uint16(40095), + 160: uint16(40096), + 161: uint16(40097), + 162: uint16(40098), + 163: uint16(40099), + 164: uint16(40101), + 165: uint16(40102), + 166: uint16(40103), + 167: uint16(40104), + 168: uint16(40105), + 169: uint16(40107), + 170: uint16(40109), + 171: uint16(40110), + 172: uint16(40112), + 173: uint16(40113), + 174: uint16(40114), + 175: uint16(40115), + 176: uint16(40116), + 177: uint16(40117), + 178: uint16(40118), + 179: uint16(40119), + 180: uint16(40122), + 181: uint16(40123), + 182: uint16(40124), + 183: uint16(40125), + 184: uint16(40132), + 185: uint16(40133), + 186: uint16(40134), + 187: uint16(40135), + 188: uint16(40138), + 189: uint16(40139), + }, + 118: { + 0: uint16(39996), + 1: uint16(39997), + 2: uint16(39998), + 3: uint16(39999), + 4: uint16(40000), + 5: uint16(40001), + 6: uint16(40002), + 7: uint16(40003), + 8: uint16(40004), + 9: uint16(40005), + 10: uint16(40006), + 11: uint16(40007), + 12: uint16(40008), + 13: uint16(40009), + 14: uint16(40010), + 15: uint16(40011), + 16: uint16(40012), + 17: uint16(40013), + 18: uint16(40014), + 19: uint16(40015), + 20: uint16(40016), + 21: uint16(40017), + 22: uint16(40018), + 23: uint16(40019), + 24: uint16(40020), + 25: uint16(40021), + 26: uint16(40022), + 27: uint16(40023), + 28: uint16(40024), + 29: uint16(40025), + 30: uint16(40026), + 31: uint16(40027), + 32: uint16(40028), + 33: uint16(40029), + 34: uint16(40030), + 35: uint16(40031), + 36: uint16(40032), + 37: uint16(40033), + 38: uint16(40034), + 39: uint16(40035), + 40: uint16(40036), + 41: uint16(40037), + 42: uint16(40038), + 43: uint16(40039), + 44: uint16(40040), + 45: uint16(40041), + 46: uint16(40042), + 47: uint16(40043), + 48: uint16(40044), + 49: uint16(40045), + 50: uint16(40046), + 51: uint16(40047), + 52: uint16(40048), + 53: uint16(40049), + 54: uint16(40050), + 55: uint16(40051), + 56: uint16(40052), + 57: uint16(40053), + 58: uint16(40054), + 59: uint16(40055), + 60: uint16(40056), + 61: uint16(40057), + 62: uint16(40058), + 63: uint16(40059), + 64: uint16(40061), + 65: uint16(40062), + 66: uint16(40064), + 67: uint16(40067), + 68: uint16(40068), + 69: uint16(40073), + 70: uint16(40074), + 71: uint16(40076), + 72: uint16(40079), + 73: uint16(40083), + 74: uint16(40086), + 75: uint16(40087), + 76: uint16(40088), + 77: uint16(40089), + 78: uint16(40093), + 79: uint16(40106), + 80: uint16(40108), + 81: uint16(40111), + 82: uint16(40121), + 83: uint16(40126), + 84: uint16(40127), + 85: uint16(40128), + 86: uint16(40129), + 87: uint16(40130), + 88: uint16(40136), + 89: uint16(40137), + 90: uint16(40145), + 91: uint16(40146), + 92: uint16(40154), + 93: uint16(40155), + 94: uint16(40160), + 95: uint16(40161), + 96: uint16(40140), + 97: uint16(40141), + 98: uint16(40142), + 99: uint16(40143), + 100: uint16(40144), + 101: uint16(40147), + 102: uint16(40148), + 103: uint16(40149), + 104: uint16(40151), + 105: uint16(40152), + 106: uint16(40153), + 107: uint16(40156), + 108: uint16(40157), + 109: uint16(40159), + 110: uint16(40162), + 111: uint16(38780), + 112: uint16(38789), + 113: uint16(38801), + 114: uint16(38802), + 115: uint16(38804), + 116: uint16(38831), + 117: uint16(38827), + 118: uint16(38819), + 119: uint16(38834), + 120: uint16(38836), + 121: uint16(39601), + 122: uint16(39600), + 123: uint16(39607), + 124: uint16(40536), + 125: uint16(39606), + 126: uint16(39610), + 127: uint16(39612), + 128: uint16(39617), + 129: uint16(39616), + 130: uint16(39621), + 131: uint16(39618), + 132: uint16(39627), + 133: uint16(39628), + 134: uint16(39633), + 135: uint16(39749), + 136: uint16(39747), + 137: uint16(39751), + 138: uint16(39753), + 139: uint16(39752), + 140: uint16(39757), + 141: uint16(39761), + 142: uint16(39144), + 143: uint16(39181), + 144: uint16(39214), + 145: uint16(39253), + 146: uint16(39252), + 147: uint16(39647), + 148: uint16(39649), + 149: uint16(39654), + 150: uint16(39663), + 151: uint16(39659), + 152: uint16(39675), + 153: uint16(39661), + 154: uint16(39673), + 155: uint16(39688), + 156: uint16(39695), + 157: uint16(39699), + 158: uint16(39711), + 159: uint16(39715), + 160: uint16(40637), + 161: uint16(40638), + 162: uint16(32315), + 163: uint16(40578), + 164: uint16(40583), + 165: uint16(40584), + 166: uint16(40587), + 167: uint16(40594), + 168: uint16(37846), + 169: uint16(40605), + 170: uint16(40607), + 171: uint16(40667), + 172: uint16(40668), + 173: uint16(40669), + 174: uint16(40672), + 175: uint16(40671), + 176: uint16(40674), + 177: uint16(40681), + 178: uint16(40679), + 179: uint16(40677), + 180: uint16(40682), + 181: uint16(40687), + 182: uint16(40738), + 183: uint16(40748), + 184: uint16(40751), + 185: uint16(40761), + 186: uint16(40759), + 187: uint16(40765), + 188: uint16(40766), + 189: uint16(40772), + }, + 119: { + 0: uint16(40163), + 1: uint16(40164), + 2: uint16(40165), + 3: uint16(40166), + 4: uint16(40167), + 5: uint16(40168), + 6: uint16(40169), + 7: uint16(40170), + 8: uint16(40171), + 9: uint16(40172), + 10: uint16(40173), + 11: uint16(40174), + 12: uint16(40175), + 13: uint16(40176), + 14: uint16(40177), + 15: uint16(40178), + 16: uint16(40179), + 17: uint16(40180), + 18: uint16(40181), + 19: uint16(40182), + 20: uint16(40183), + 21: uint16(40184), + 22: uint16(40185), + 23: uint16(40186), + 24: uint16(40187), + 25: uint16(40188), + 26: uint16(40189), + 27: uint16(40190), + 28: uint16(40191), + 29: uint16(40192), + 30: uint16(40193), + 31: uint16(40194), + 32: uint16(40195), + 33: uint16(40196), + 34: uint16(40197), + 35: uint16(40198), + 36: uint16(40199), + 37: uint16(40200), + 38: uint16(40201), + 39: uint16(40202), + 40: uint16(40203), + 41: uint16(40204), + 42: uint16(40205), + 43: uint16(40206), + 44: uint16(40207), + 45: uint16(40208), + 46: uint16(40209), + 47: uint16(40210), + 48: uint16(40211), + 49: uint16(40212), + 50: uint16(40213), + 51: uint16(40214), + 52: uint16(40215), + 53: uint16(40216), + 54: uint16(40217), + 55: uint16(40218), + 56: uint16(40219), + 57: uint16(40220), + 58: uint16(40221), + 59: uint16(40222), + 60: uint16(40223), + 61: uint16(40224), + 62: uint16(40225), + 63: uint16(40226), + 64: uint16(40227), + 65: uint16(40228), + 66: uint16(40229), + 67: uint16(40230), + 68: uint16(40231), + 69: uint16(40232), + 70: uint16(40233), + 71: uint16(40234), + 72: uint16(40235), + 73: uint16(40236), + 74: uint16(40237), + 75: uint16(40238), + 76: uint16(40239), + 77: uint16(40240), + 78: uint16(40241), + 79: uint16(40242), + 80: uint16(40243), + 81: uint16(40244), + 82: uint16(40245), + 83: uint16(40246), + 84: uint16(40247), + 85: uint16(40248), + 86: uint16(40249), + 87: uint16(40250), + 88: uint16(40251), + 89: uint16(40252), + 90: uint16(40253), + 91: uint16(40254), + 92: uint16(40255), + 93: uint16(40256), + 94: uint16(40257), + 95: uint16(40258), + 96: uint16(57908), + 97: uint16(57909), + 98: uint16(57910), + 99: uint16(57911), + 100: uint16(57912), + 101: uint16(57913), + 102: uint16(57914), + 103: uint16(57915), + 104: uint16(57916), + 105: uint16(57917), + 106: uint16(57918), + 107: uint16(57919), + 108: uint16(57920), + 109: uint16(57921), + 110: uint16(57922), + 111: uint16(57923), + 112: uint16(57924), + 113: uint16(57925), + 114: uint16(57926), + 115: uint16(57927), + 116: uint16(57928), + 117: uint16(57929), + 118: uint16(57930), + 119: uint16(57931), + 120: uint16(57932), + 121: uint16(57933), + 122: uint16(57934), + 123: uint16(57935), + 124: uint16(57936), + 125: uint16(57937), + 126: uint16(57938), + 127: uint16(57939), + 128: uint16(57940), + 129: uint16(57941), + 130: uint16(57942), + 131: uint16(57943), + 132: uint16(57944), + 133: uint16(57945), + 134: uint16(57946), + 135: uint16(57947), + 136: uint16(57948), + 137: uint16(57949), + 138: uint16(57950), + 139: uint16(57951), + 140: uint16(57952), + 141: uint16(57953), + 142: uint16(57954), + 143: uint16(57955), + 144: uint16(57956), + 145: uint16(57957), + 146: uint16(57958), + 147: uint16(57959), + 148: uint16(57960), + 149: uint16(57961), + 150: uint16(57962), + 151: uint16(57963), + 152: uint16(57964), + 153: uint16(57965), + 154: uint16(57966), + 155: uint16(57967), + 156: uint16(57968), + 157: uint16(57969), + 158: uint16(57970), + 159: uint16(57971), + 160: uint16(57972), + 161: uint16(57973), + 162: uint16(57974), + 163: uint16(57975), + 164: uint16(57976), + 165: uint16(57977), + 166: uint16(57978), + 167: uint16(57979), + 168: uint16(57980), + 169: uint16(57981), + 170: uint16(57982), + 171: uint16(57983), + 172: uint16(57984), + 173: uint16(57985), + 174: uint16(57986), + 175: uint16(57987), + 176: uint16(57988), + 177: uint16(57989), + 178: uint16(57990), + 179: uint16(57991), + 180: uint16(57992), + 181: uint16(57993), + 182: uint16(57994), + 183: uint16(57995), + 184: uint16(57996), + 185: uint16(57997), + 186: uint16(57998), + 187: uint16(57999), + 188: uint16(58000), + 189: uint16(58001), + }, + 120: { + 0: uint16(40259), + 1: uint16(40260), + 2: uint16(40261), + 3: uint16(40262), + 4: uint16(40263), + 5: uint16(40264), + 6: uint16(40265), + 7: uint16(40266), + 8: uint16(40267), + 9: uint16(40268), + 10: uint16(40269), + 11: uint16(40270), + 12: uint16(40271), + 13: uint16(40272), + 14: uint16(40273), + 15: uint16(40274), + 16: uint16(40275), + 17: uint16(40276), + 18: uint16(40277), + 19: uint16(40278), + 20: uint16(40279), + 21: uint16(40280), + 22: uint16(40281), + 23: uint16(40282), + 24: uint16(40283), + 25: uint16(40284), + 26: uint16(40285), + 27: uint16(40286), + 28: uint16(40287), + 29: uint16(40288), + 30: uint16(40289), + 31: uint16(40290), + 32: uint16(40291), + 33: uint16(40292), + 34: uint16(40293), + 35: uint16(40294), + 36: uint16(40295), + 37: uint16(40296), + 38: uint16(40297), + 39: uint16(40298), + 40: uint16(40299), + 41: uint16(40300), + 42: uint16(40301), + 43: uint16(40302), + 44: uint16(40303), + 45: uint16(40304), + 46: uint16(40305), + 47: uint16(40306), + 48: uint16(40307), + 49: uint16(40308), + 50: uint16(40309), + 51: uint16(40310), + 52: uint16(40311), + 53: uint16(40312), + 54: uint16(40313), + 55: uint16(40314), + 56: uint16(40315), + 57: uint16(40316), + 58: uint16(40317), + 59: uint16(40318), + 60: uint16(40319), + 61: uint16(40320), + 62: uint16(40321), + 63: uint16(40322), + 64: uint16(40323), + 65: uint16(40324), + 66: uint16(40325), + 67: uint16(40326), + 68: uint16(40327), + 69: uint16(40328), + 70: uint16(40329), + 71: uint16(40330), + 72: uint16(40331), + 73: uint16(40332), + 74: uint16(40333), + 75: uint16(40334), + 76: uint16(40335), + 77: uint16(40336), + 78: uint16(40337), + 79: uint16(40338), + 80: uint16(40339), + 81: uint16(40340), + 82: uint16(40341), + 83: uint16(40342), + 84: uint16(40343), + 85: uint16(40344), + 86: uint16(40345), + 87: uint16(40346), + 88: uint16(40347), + 89: uint16(40348), + 90: uint16(40349), + 91: uint16(40350), + 92: uint16(40351), + 93: uint16(40352), + 94: uint16(40353), + 95: uint16(40354), + 96: uint16(58002), + 97: uint16(58003), + 98: uint16(58004), + 99: uint16(58005), + 100: uint16(58006), + 101: uint16(58007), + 102: uint16(58008), + 103: uint16(58009), + 104: uint16(58010), + 105: uint16(58011), + 106: uint16(58012), + 107: uint16(58013), + 108: uint16(58014), + 109: uint16(58015), + 110: uint16(58016), + 111: uint16(58017), + 112: uint16(58018), + 113: uint16(58019), + 114: uint16(58020), + 115: uint16(58021), + 116: uint16(58022), + 117: uint16(58023), + 118: uint16(58024), + 119: uint16(58025), + 120: uint16(58026), + 121: uint16(58027), + 122: uint16(58028), + 123: uint16(58029), + 124: uint16(58030), + 125: uint16(58031), + 126: uint16(58032), + 127: uint16(58033), + 128: uint16(58034), + 129: uint16(58035), + 130: uint16(58036), + 131: uint16(58037), + 132: uint16(58038), + 133: uint16(58039), + 134: uint16(58040), + 135: uint16(58041), + 136: uint16(58042), + 137: uint16(58043), + 138: uint16(58044), + 139: uint16(58045), + 140: uint16(58046), + 141: uint16(58047), + 142: uint16(58048), + 143: uint16(58049), + 144: uint16(58050), + 145: uint16(58051), + 146: uint16(58052), + 147: uint16(58053), + 148: uint16(58054), + 149: uint16(58055), + 150: uint16(58056), + 151: uint16(58057), + 152: uint16(58058), + 153: uint16(58059), + 154: uint16(58060), + 155: uint16(58061), + 156: uint16(58062), + 157: uint16(58063), + 158: uint16(58064), + 159: uint16(58065), + 160: uint16(58066), + 161: uint16(58067), + 162: uint16(58068), + 163: uint16(58069), + 164: uint16(58070), + 165: uint16(58071), + 166: uint16(58072), + 167: uint16(58073), + 168: uint16(58074), + 169: uint16(58075), + 170: uint16(58076), + 171: uint16(58077), + 172: uint16(58078), + 173: uint16(58079), + 174: uint16(58080), + 175: uint16(58081), + 176: uint16(58082), + 177: uint16(58083), + 178: uint16(58084), + 179: uint16(58085), + 180: uint16(58086), + 181: uint16(58087), + 182: uint16(58088), + 183: uint16(58089), + 184: uint16(58090), + 185: uint16(58091), + 186: uint16(58092), + 187: uint16(58093), + 188: uint16(58094), + 189: uint16(58095), + }, + 121: { + 0: uint16(40355), + 1: uint16(40356), + 2: uint16(40357), + 3: uint16(40358), + 4: uint16(40359), + 5: uint16(40360), + 6: uint16(40361), + 7: uint16(40362), + 8: uint16(40363), + 9: uint16(40364), + 10: uint16(40365), + 11: uint16(40366), + 12: uint16(40367), + 13: uint16(40368), + 14: uint16(40369), + 15: uint16(40370), + 16: uint16(40371), + 17: uint16(40372), + 18: uint16(40373), + 19: uint16(40374), + 20: uint16(40375), + 21: uint16(40376), + 22: uint16(40377), + 23: uint16(40378), + 24: uint16(40379), + 25: uint16(40380), + 26: uint16(40381), + 27: uint16(40382), + 28: uint16(40383), + 29: uint16(40384), + 30: uint16(40385), + 31: uint16(40386), + 32: uint16(40387), + 33: uint16(40388), + 34: uint16(40389), + 35: uint16(40390), + 36: uint16(40391), + 37: uint16(40392), + 38: uint16(40393), + 39: uint16(40394), + 40: uint16(40395), + 41: uint16(40396), + 42: uint16(40397), + 43: uint16(40398), + 44: uint16(40399), + 45: uint16(40400), + 46: uint16(40401), + 47: uint16(40402), + 48: uint16(40403), + 49: uint16(40404), + 50: uint16(40405), + 51: uint16(40406), + 52: uint16(40407), + 53: uint16(40408), + 54: uint16(40409), + 55: uint16(40410), + 56: uint16(40411), + 57: uint16(40412), + 58: uint16(40413), + 59: uint16(40414), + 60: uint16(40415), + 61: uint16(40416), + 62: uint16(40417), + 63: uint16(40418), + 64: uint16(40419), + 65: uint16(40420), + 66: uint16(40421), + 67: uint16(40422), + 68: uint16(40423), + 69: uint16(40424), + 70: uint16(40425), + 71: uint16(40426), + 72: uint16(40427), + 73: uint16(40428), + 74: uint16(40429), + 75: uint16(40430), + 76: uint16(40431), + 77: uint16(40432), + 78: uint16(40433), + 79: uint16(40434), + 80: uint16(40435), + 81: uint16(40436), + 82: uint16(40437), + 83: uint16(40438), + 84: uint16(40439), + 85: uint16(40440), + 86: uint16(40441), + 87: uint16(40442), + 88: uint16(40443), + 89: uint16(40444), + 90: uint16(40445), + 91: uint16(40446), + 92: uint16(40447), + 93: uint16(40448), + 94: uint16(40449), + 95: uint16(40450), + 96: uint16(58096), + 97: uint16(58097), + 98: uint16(58098), + 99: uint16(58099), + 100: uint16(58100), + 101: uint16(58101), + 102: uint16(58102), + 103: uint16(58103), + 104: uint16(58104), + 105: uint16(58105), + 106: uint16(58106), + 107: uint16(58107), + 108: uint16(58108), + 109: uint16(58109), + 110: uint16(58110), + 111: uint16(58111), + 112: uint16(58112), + 113: uint16(58113), + 114: uint16(58114), + 115: uint16(58115), + 116: uint16(58116), + 117: uint16(58117), + 118: uint16(58118), + 119: uint16(58119), + 120: uint16(58120), + 121: uint16(58121), + 122: uint16(58122), + 123: uint16(58123), + 124: uint16(58124), + 125: uint16(58125), + 126: uint16(58126), + 127: uint16(58127), + 128: uint16(58128), + 129: uint16(58129), + 130: uint16(58130), + 131: uint16(58131), + 132: uint16(58132), + 133: uint16(58133), + 134: uint16(58134), + 135: uint16(58135), + 136: uint16(58136), + 137: uint16(58137), + 138: uint16(58138), + 139: uint16(58139), + 140: uint16(58140), + 141: uint16(58141), + 142: uint16(58142), + 143: uint16(58143), + 144: uint16(58144), + 145: uint16(58145), + 146: uint16(58146), + 147: uint16(58147), + 148: uint16(58148), + 149: uint16(58149), + 150: uint16(58150), + 151: uint16(58151), + 152: uint16(58152), + 153: uint16(58153), + 154: uint16(58154), + 155: uint16(58155), + 156: uint16(58156), + 157: uint16(58157), + 158: uint16(58158), + 159: uint16(58159), + 160: uint16(58160), + 161: uint16(58161), + 162: uint16(58162), + 163: uint16(58163), + 164: uint16(58164), + 165: uint16(58165), + 166: uint16(58166), + 167: uint16(58167), + 168: uint16(58168), + 169: uint16(58169), + 170: uint16(58170), + 171: uint16(58171), + 172: uint16(58172), + 173: uint16(58173), + 174: uint16(58174), + 175: uint16(58175), + 176: uint16(58176), + 177: uint16(58177), + 178: uint16(58178), + 179: uint16(58179), + 180: uint16(58180), + 181: uint16(58181), + 182: uint16(58182), + 183: uint16(58183), + 184: uint16(58184), + 185: uint16(58185), + 186: uint16(58186), + 187: uint16(58187), + 188: uint16(58188), + 189: uint16(58189), + }, + 122: { + 0: uint16(40451), + 1: uint16(40452), + 2: uint16(40453), + 3: uint16(40454), + 4: uint16(40455), + 5: uint16(40456), + 6: uint16(40457), + 7: uint16(40458), + 8: uint16(40459), + 9: uint16(40460), + 10: uint16(40461), + 11: uint16(40462), + 12: uint16(40463), + 13: uint16(40464), + 14: uint16(40465), + 15: uint16(40466), + 16: uint16(40467), + 17: uint16(40468), + 18: uint16(40469), + 19: uint16(40470), + 20: uint16(40471), + 21: uint16(40472), + 22: uint16(40473), + 23: uint16(40474), + 24: uint16(40475), + 25: uint16(40476), + 26: uint16(40477), + 27: uint16(40478), + 28: uint16(40484), + 29: uint16(40487), + 30: uint16(40494), + 31: uint16(40496), + 32: uint16(40500), + 33: uint16(40507), + 34: uint16(40508), + 35: uint16(40512), + 36: uint16(40525), + 37: uint16(40528), + 38: uint16(40530), + 39: uint16(40531), + 40: uint16(40532), + 41: uint16(40534), + 42: uint16(40537), + 43: uint16(40541), + 44: uint16(40543), + 45: uint16(40544), + 46: uint16(40545), + 47: uint16(40546), + 48: uint16(40549), + 49: uint16(40558), + 50: uint16(40559), + 51: uint16(40562), + 52: uint16(40564), + 53: uint16(40565), + 54: uint16(40566), + 55: uint16(40567), + 56: uint16(40568), + 57: uint16(40569), + 58: uint16(40570), + 59: uint16(40571), + 60: uint16(40572), + 61: uint16(40573), + 62: uint16(40576), + 63: uint16(40577), + 64: uint16(40579), + 65: uint16(40580), + 66: uint16(40581), + 67: uint16(40582), + 68: uint16(40585), + 69: uint16(40586), + 70: uint16(40588), + 71: uint16(40589), + 72: uint16(40590), + 73: uint16(40591), + 74: uint16(40592), + 75: uint16(40593), + 76: uint16(40596), + 77: uint16(40597), + 78: uint16(40598), + 79: uint16(40599), + 80: uint16(40600), + 81: uint16(40601), + 82: uint16(40602), + 83: uint16(40603), + 84: uint16(40604), + 85: uint16(40606), + 86: uint16(40608), + 87: uint16(40609), + 88: uint16(40610), + 89: uint16(40611), + 90: uint16(40612), + 91: uint16(40613), + 92: uint16(40615), + 93: uint16(40616), + 94: uint16(40617), + 95: uint16(40618), + 96: uint16(58190), + 97: uint16(58191), + 98: uint16(58192), + 99: uint16(58193), + 100: uint16(58194), + 101: uint16(58195), + 102: uint16(58196), + 103: uint16(58197), + 104: uint16(58198), + 105: uint16(58199), + 106: uint16(58200), + 107: uint16(58201), + 108: uint16(58202), + 109: uint16(58203), + 110: uint16(58204), + 111: uint16(58205), + 112: uint16(58206), + 113: uint16(58207), + 114: uint16(58208), + 115: uint16(58209), + 116: uint16(58210), + 117: uint16(58211), + 118: uint16(58212), + 119: uint16(58213), + 120: uint16(58214), + 121: uint16(58215), + 122: uint16(58216), + 123: uint16(58217), + 124: uint16(58218), + 125: uint16(58219), + 126: uint16(58220), + 127: uint16(58221), + 128: uint16(58222), + 129: uint16(58223), + 130: uint16(58224), + 131: uint16(58225), + 132: uint16(58226), + 133: uint16(58227), + 134: uint16(58228), + 135: uint16(58229), + 136: uint16(58230), + 137: uint16(58231), + 138: uint16(58232), + 139: uint16(58233), + 140: uint16(58234), + 141: uint16(58235), + 142: uint16(58236), + 143: uint16(58237), + 144: uint16(58238), + 145: uint16(58239), + 146: uint16(58240), + 147: uint16(58241), + 148: uint16(58242), + 149: uint16(58243), + 150: uint16(58244), + 151: uint16(58245), + 152: uint16(58246), + 153: uint16(58247), + 154: uint16(58248), + 155: uint16(58249), + 156: uint16(58250), + 157: uint16(58251), + 158: uint16(58252), + 159: uint16(58253), + 160: uint16(58254), + 161: uint16(58255), + 162: uint16(58256), + 163: uint16(58257), + 164: uint16(58258), + 165: uint16(58259), + 166: uint16(58260), + 167: uint16(58261), + 168: uint16(58262), + 169: uint16(58263), + 170: uint16(58264), + 171: uint16(58265), + 172: uint16(58266), + 173: uint16(58267), + 174: uint16(58268), + 175: uint16(58269), + 176: uint16(58270), + 177: uint16(58271), + 178: uint16(58272), + 179: uint16(58273), + 180: uint16(58274), + 181: uint16(58275), + 182: uint16(58276), + 183: uint16(58277), + 184: uint16(58278), + 185: uint16(58279), + 186: uint16(58280), + 187: uint16(58281), + 188: uint16(58282), + 189: uint16(58283), + }, + 123: { + 0: uint16(40619), + 1: uint16(40620), + 2: uint16(40621), + 3: uint16(40622), + 4: uint16(40623), + 5: uint16(40624), + 6: uint16(40625), + 7: uint16(40626), + 8: uint16(40627), + 9: uint16(40629), + 10: uint16(40630), + 11: uint16(40631), + 12: uint16(40633), + 13: uint16(40634), + 14: uint16(40636), + 15: uint16(40639), + 16: uint16(40640), + 17: uint16(40641), + 18: uint16(40642), + 19: uint16(40643), + 20: uint16(40645), + 21: uint16(40646), + 22: uint16(40647), + 23: uint16(40648), + 24: uint16(40650), + 25: uint16(40651), + 26: uint16(40652), + 27: uint16(40656), + 28: uint16(40658), + 29: uint16(40659), + 30: uint16(40661), + 31: uint16(40662), + 32: uint16(40663), + 33: uint16(40665), + 34: uint16(40666), + 35: uint16(40670), + 36: uint16(40673), + 37: uint16(40675), + 38: uint16(40676), + 39: uint16(40678), + 40: uint16(40680), + 41: uint16(40683), + 42: uint16(40684), + 43: uint16(40685), + 44: uint16(40686), + 45: uint16(40688), + 46: uint16(40689), + 47: uint16(40690), + 48: uint16(40691), + 49: uint16(40692), + 50: uint16(40693), + 51: uint16(40694), + 52: uint16(40695), + 53: uint16(40696), + 54: uint16(40698), + 55: uint16(40701), + 56: uint16(40703), + 57: uint16(40704), + 58: uint16(40705), + 59: uint16(40706), + 60: uint16(40707), + 61: uint16(40708), + 62: uint16(40709), + 63: uint16(40710), + 64: uint16(40711), + 65: uint16(40712), + 66: uint16(40713), + 67: uint16(40714), + 68: uint16(40716), + 69: uint16(40719), + 70: uint16(40721), + 71: uint16(40722), + 72: uint16(40724), + 73: uint16(40725), + 74: uint16(40726), + 75: uint16(40728), + 76: uint16(40730), + 77: uint16(40731), + 78: uint16(40732), + 79: uint16(40733), + 80: uint16(40734), + 81: uint16(40735), + 82: uint16(40737), + 83: uint16(40739), + 84: uint16(40740), + 85: uint16(40741), + 86: uint16(40742), + 87: uint16(40743), + 88: uint16(40744), + 89: uint16(40745), + 90: uint16(40746), + 91: uint16(40747), + 92: uint16(40749), + 93: uint16(40750), + 94: uint16(40752), + 95: uint16(40753), + 96: uint16(58284), + 97: uint16(58285), + 98: uint16(58286), + 99: uint16(58287), + 100: uint16(58288), + 101: uint16(58289), + 102: uint16(58290), + 103: uint16(58291), + 104: uint16(58292), + 105: uint16(58293), + 106: uint16(58294), + 107: uint16(58295), + 108: uint16(58296), + 109: uint16(58297), + 110: uint16(58298), + 111: uint16(58299), + 112: uint16(58300), + 113: uint16(58301), + 114: uint16(58302), + 115: uint16(58303), + 116: uint16(58304), + 117: uint16(58305), + 118: uint16(58306), + 119: uint16(58307), + 120: uint16(58308), + 121: uint16(58309), + 122: uint16(58310), + 123: uint16(58311), + 124: uint16(58312), + 125: uint16(58313), + 126: uint16(58314), + 127: uint16(58315), + 128: uint16(58316), + 129: uint16(58317), + 130: uint16(58318), + 131: uint16(58319), + 132: uint16(58320), + 133: uint16(58321), + 134: uint16(58322), + 135: uint16(58323), + 136: uint16(58324), + 137: uint16(58325), + 138: uint16(58326), + 139: uint16(58327), + 140: uint16(58328), + 141: uint16(58329), + 142: uint16(58330), + 143: uint16(58331), + 144: uint16(58332), + 145: uint16(58333), + 146: uint16(58334), + 147: uint16(58335), + 148: uint16(58336), + 149: uint16(58337), + 150: uint16(58338), + 151: uint16(58339), + 152: uint16(58340), + 153: uint16(58341), + 154: uint16(58342), + 155: uint16(58343), + 156: uint16(58344), + 157: uint16(58345), + 158: uint16(58346), + 159: uint16(58347), + 160: uint16(58348), + 161: uint16(58349), + 162: uint16(58350), + 163: uint16(58351), + 164: uint16(58352), + 165: uint16(58353), + 166: uint16(58354), + 167: uint16(58355), + 168: uint16(58356), + 169: uint16(58357), + 170: uint16(58358), + 171: uint16(58359), + 172: uint16(58360), + 173: uint16(58361), + 174: uint16(58362), + 175: uint16(58363), + 176: uint16(58364), + 177: uint16(58365), + 178: uint16(58366), + 179: uint16(58367), + 180: uint16(58368), + 181: uint16(58369), + 182: uint16(58370), + 183: uint16(58371), + 184: uint16(58372), + 185: uint16(58373), + 186: uint16(58374), + 187: uint16(58375), + 188: uint16(58376), + 189: uint16(58377), + }, + 124: { + 0: uint16(40754), + 1: uint16(40755), + 2: uint16(40756), + 3: uint16(40757), + 4: uint16(40758), + 5: uint16(40760), + 6: uint16(40762), + 7: uint16(40764), + 8: uint16(40767), + 9: uint16(40768), + 10: uint16(40769), + 11: uint16(40770), + 12: uint16(40771), + 13: uint16(40773), + 14: uint16(40774), + 15: uint16(40775), + 16: uint16(40776), + 17: uint16(40777), + 18: uint16(40778), + 19: uint16(40779), + 20: uint16(40780), + 21: uint16(40781), + 22: uint16(40782), + 23: uint16(40783), + 24: uint16(40786), + 25: uint16(40787), + 26: uint16(40788), + 27: uint16(40789), + 28: uint16(40790), + 29: uint16(40791), + 30: uint16(40792), + 31: uint16(40793), + 32: uint16(40794), + 33: uint16(40795), + 34: uint16(40796), + 35: uint16(40797), + 36: uint16(40798), + 37: uint16(40799), + 38: uint16(40800), + 39: uint16(40801), + 40: uint16(40802), + 41: uint16(40803), + 42: uint16(40804), + 43: uint16(40805), + 44: uint16(40806), + 45: uint16(40807), + 46: uint16(40808), + 47: uint16(40809), + 48: uint16(40810), + 49: uint16(40811), + 50: uint16(40812), + 51: uint16(40813), + 52: uint16(40814), + 53: uint16(40815), + 54: uint16(40816), + 55: uint16(40817), + 56: uint16(40818), + 57: uint16(40819), + 58: uint16(40820), + 59: uint16(40821), + 60: uint16(40822), + 61: uint16(40823), + 62: uint16(40824), + 63: uint16(40825), + 64: uint16(40826), + 65: uint16(40827), + 66: uint16(40828), + 67: uint16(40829), + 68: uint16(40830), + 69: uint16(40833), + 70: uint16(40834), + 71: uint16(40845), + 72: uint16(40846), + 73: uint16(40847), + 74: uint16(40848), + 75: uint16(40849), + 76: uint16(40850), + 77: uint16(40851), + 78: uint16(40852), + 79: uint16(40853), + 80: uint16(40854), + 81: uint16(40855), + 82: uint16(40856), + 83: uint16(40860), + 84: uint16(40861), + 85: uint16(40862), + 86: uint16(40865), + 87: uint16(40866), + 88: uint16(40867), + 89: uint16(40868), + 90: uint16(40869), + 91: uint16(63788), + 92: uint16(63865), + 93: uint16(63893), + 94: uint16(63975), + 95: uint16(63985), + 96: uint16(58378), + 97: uint16(58379), + 98: uint16(58380), + 99: uint16(58381), + 100: uint16(58382), + 101: uint16(58383), + 102: uint16(58384), + 103: uint16(58385), + 104: uint16(58386), + 105: uint16(58387), + 106: uint16(58388), + 107: uint16(58389), + 108: uint16(58390), + 109: uint16(58391), + 110: uint16(58392), + 111: uint16(58393), + 112: uint16(58394), + 113: uint16(58395), + 114: uint16(58396), + 115: uint16(58397), + 116: uint16(58398), + 117: uint16(58399), + 118: uint16(58400), + 119: uint16(58401), + 120: uint16(58402), + 121: uint16(58403), + 122: uint16(58404), + 123: uint16(58405), + 124: uint16(58406), + 125: uint16(58407), + 126: uint16(58408), + 127: uint16(58409), + 128: uint16(58410), + 129: uint16(58411), + 130: uint16(58412), + 131: uint16(58413), + 132: uint16(58414), + 133: uint16(58415), + 134: uint16(58416), + 135: uint16(58417), + 136: uint16(58418), + 137: uint16(58419), + 138: uint16(58420), + 139: uint16(58421), + 140: uint16(58422), + 141: uint16(58423), + 142: uint16(58424), + 143: uint16(58425), + 144: uint16(58426), + 145: uint16(58427), + 146: uint16(58428), + 147: uint16(58429), + 148: uint16(58430), + 149: uint16(58431), + 150: uint16(58432), + 151: uint16(58433), + 152: uint16(58434), + 153: uint16(58435), + 154: uint16(58436), + 155: uint16(58437), + 156: uint16(58438), + 157: uint16(58439), + 158: uint16(58440), + 159: uint16(58441), + 160: uint16(58442), + 161: uint16(58443), + 162: uint16(58444), + 163: uint16(58445), + 164: uint16(58446), + 165: uint16(58447), + 166: uint16(58448), + 167: uint16(58449), + 168: uint16(58450), + 169: uint16(58451), + 170: uint16(58452), + 171: uint16(58453), + 172: uint16(58454), + 173: uint16(58455), + 174: uint16(58456), + 175: uint16(58457), + 176: uint16(58458), + 177: uint16(58459), + 178: uint16(58460), + 179: uint16(58461), + 180: uint16(58462), + 181: uint16(58463), + 182: uint16(58464), + 183: uint16(58465), + 184: uint16(58466), + 185: uint16(58467), + 186: uint16(58468), + 187: uint16(58469), + 188: uint16(58470), + 189: uint16(58471), + }, + 125: { + 0: uint16(64012), + 1: uint16(64013), + 2: uint16(64014), + 3: uint16(64015), + 4: uint16(64017), + 5: uint16(64019), + 6: uint16(64020), + 7: uint16(64024), + 8: uint16(64031), + 9: uint16(64032), + 10: uint16(64033), + 11: uint16(64035), + 12: uint16(64036), + 13: uint16(64039), + 14: uint16(64040), + 15: uint16(64041), + 16: uint16(11905), + 17: uint16(59414), + 18: uint16(59415), + 19: uint16(59416), + 20: uint16(11908), + 21: uint16(13427), + 22: uint16(13383), + 23: uint16(11912), + 24: uint16(11915), + 25: uint16(59422), + 26: uint16(13726), + 27: uint16(13850), + 28: uint16(13838), + 29: uint16(11916), + 30: uint16(11927), + 31: uint16(14702), + 32: uint16(14616), + 33: uint16(59430), + 34: uint16(14799), + 35: uint16(14815), + 36: uint16(14963), + 37: uint16(14800), + 38: uint16(59435), + 39: uint16(59436), + 40: uint16(15182), + 41: uint16(15470), + 42: uint16(15584), + 43: uint16(11943), + 44: uint16(59441), + 45: uint16(59442), + 46: uint16(11946), + 47: uint16(16470), + 48: uint16(16735), + 49: uint16(11950), + 50: uint16(17207), + 51: uint16(11955), + 52: uint16(11958), + 53: uint16(11959), + 54: uint16(59451), + 55: uint16(17329), + 56: uint16(17324), + 57: uint16(11963), + 58: uint16(17373), + 59: uint16(17622), + 60: uint16(18017), + 61: uint16(17996), + 62: uint16(59459), + 63: uint16(18211), + 64: uint16(18217), + 65: uint16(18300), + 66: uint16(18317), + 67: uint16(11978), + 68: uint16(18759), + 69: uint16(18810), + 70: uint16(18813), + 71: uint16(18818), + 72: uint16(18819), + 73: uint16(18821), + 74: uint16(18822), + 75: uint16(18847), + 76: uint16(18843), + 77: uint16(18871), + 78: uint16(18870), + 79: uint16(59476), + 80: uint16(59477), + 81: uint16(19619), + 82: uint16(19615), + 83: uint16(19616), + 84: uint16(19617), + 85: uint16(19575), + 86: uint16(19618), + 87: uint16(19731), + 88: uint16(19732), + 89: uint16(19733), + 90: uint16(19734), + 91: uint16(19735), + 92: uint16(19736), + 93: uint16(19737), + 94: uint16(19886), + 95: uint16(59492), + 96: uint16(58472), + 97: uint16(58473), + 98: uint16(58474), + 99: uint16(58475), + 100: uint16(58476), + 101: uint16(58477), + 102: uint16(58478), + 103: uint16(58479), + 104: uint16(58480), + 105: uint16(58481), + 106: uint16(58482), + 107: uint16(58483), + 108: uint16(58484), + 109: uint16(58485), + 110: uint16(58486), + 111: uint16(58487), + 112: uint16(58488), + 113: uint16(58489), + 114: uint16(58490), + 115: uint16(58491), + 116: uint16(58492), + 117: uint16(58493), + 118: uint16(58494), + 119: uint16(58495), + 120: uint16(58496), + 121: uint16(58497), + 122: uint16(58498), + 123: uint16(58499), + 124: uint16(58500), + 125: uint16(58501), + 126: uint16(58502), + 127: uint16(58503), + 128: uint16(58504), + 129: uint16(58505), + 130: uint16(58506), + 131: uint16(58507), + 132: uint16(58508), + 133: uint16(58509), + 134: uint16(58510), + 135: uint16(58511), + 136: uint16(58512), + 137: uint16(58513), + 138: uint16(58514), + 139: uint16(58515), + 140: uint16(58516), + 141: uint16(58517), + 142: uint16(58518), + 143: uint16(58519), + 144: uint16(58520), + 145: uint16(58521), + 146: uint16(58522), + 147: uint16(58523), + 148: uint16(58524), + 149: uint16(58525), + 150: uint16(58526), + 151: uint16(58527), + 152: uint16(58528), + 153: uint16(58529), + 154: uint16(58530), + 155: uint16(58531), + 156: uint16(58532), + 157: uint16(58533), + 158: uint16(58534), + 159: uint16(58535), + 160: uint16(58536), + 161: uint16(58537), + 162: uint16(58538), + 163: uint16(58539), + 164: uint16(58540), + 165: uint16(58541), + 166: uint16(58542), + 167: uint16(58543), + 168: uint16(58544), + 169: uint16(58545), + 170: uint16(58546), + 171: uint16(58547), + 172: uint16(58548), + 173: uint16(58549), + 174: uint16(58550), + 175: uint16(58551), + 176: uint16(58552), + 177: uint16(58553), + 178: uint16(58554), + 179: uint16(58555), + 180: uint16(58556), + 181: uint16(58557), + 182: uint16(58558), + 183: uint16(58559), + 184: uint16(58560), + 185: uint16(58561), + 186: uint16(58562), + 187: uint16(58563), + 188: uint16(58564), + 189: uint16(58565), + }, +} + +var _big5 = [89][157]uint16{ + 0: { + 0: uint16(12288), + 1: uint16(65292), + 2: uint16(12289), + 3: uint16(12290), + 4: uint16(65294), + 5: uint16(8231), + 6: uint16(65307), + 7: uint16(65306), + 8: uint16(65311), + 9: uint16(65281), + 10: uint16(65072), + 11: uint16(8230), + 12: uint16(8229), + 13: uint16(65104), + 14: uint16(65105), + 15: uint16(65106), + 16: uint16(183), + 17: uint16(65108), + 18: uint16(65109), + 19: uint16(65110), + 20: uint16(65111), + 21: uint16(65372), + 22: uint16(8211), + 23: uint16(65073), + 24: uint16(8212), + 25: uint16(65075), + 26: uint16(9588), + 27: uint16(65076), + 28: uint16(65103), + 29: uint16(65288), + 30: uint16(65289), + 31: uint16(65077), + 32: uint16(65078), + 33: uint16(65371), + 34: uint16(65373), + 35: uint16(65079), + 36: uint16(65080), + 37: uint16(12308), + 38: uint16(12309), + 39: uint16(65081), + 40: uint16(65082), + 41: uint16(12304), + 42: uint16(12305), + 43: uint16(65083), + 44: uint16(65084), + 45: uint16(12298), + 46: uint16(12299), + 47: uint16(65085), + 48: uint16(65086), + 49: uint16(12296), + 50: uint16(12297), + 51: uint16(65087), + 52: uint16(65088), + 53: uint16(12300), + 54: uint16(12301), + 55: uint16(65089), + 56: uint16(65090), + 57: uint16(12302), + 58: uint16(12303), + 59: uint16(65091), + 60: uint16(65092), + 61: uint16(65113), + 62: uint16(65114), + 63: uint16(65115), + 64: uint16(65116), + 65: uint16(65117), + 66: uint16(65118), + 67: uint16(8216), + 68: uint16(8217), + 69: uint16(8220), + 70: uint16(8221), + 71: uint16(12317), + 72: uint16(12318), + 73: uint16(8245), + 74: uint16(8242), + 75: uint16(65283), + 76: uint16(65286), + 77: uint16(65290), + 78: uint16(8251), + 79: uint16(167), + 80: uint16(12291), + 81: uint16(9675), + 82: uint16(9679), + 83: uint16(9651), + 84: uint16(9650), + 85: uint16(9678), + 86: uint16(9734), + 87: uint16(9733), + 88: uint16(9671), + 89: uint16(9670), + 90: uint16(9633), + 91: uint16(9632), + 92: uint16(9661), + 93: uint16(9660), + 94: uint16(12963), + 95: uint16(8453), + 96: uint16(175), + 97: uint16(65507), + 98: uint16(65343), + 99: uint16(717), + 100: uint16(65097), + 101: uint16(65098), + 102: uint16(65101), + 103: uint16(65102), + 104: uint16(65099), + 105: uint16(65100), + 106: uint16(65119), + 107: uint16(65120), + 108: uint16(65121), + 109: uint16(65291), + 110: uint16(65293), + 111: uint16(215), + 112: uint16(247), + 113: uint16(177), + 114: uint16(8730), + 115: uint16(65308), + 116: uint16(65310), + 117: uint16(65309), + 118: uint16(8806), + 119: uint16(8807), + 120: uint16(8800), + 121: uint16(8734), + 122: uint16(8786), + 123: uint16(8801), + 124: uint16(65122), + 125: uint16(65123), + 126: uint16(65124), + 127: uint16(65125), + 128: uint16(65126), + 129: uint16(65374), + 130: uint16(8745), + 131: uint16(8746), + 132: uint16(8869), + 133: uint16(8736), + 134: uint16(8735), + 135: uint16(8895), + 136: uint16(13266), + 137: uint16(13265), + 138: uint16(8747), + 139: uint16(8750), + 140: uint16(8757), + 141: uint16(8756), + 142: uint16(9792), + 143: uint16(9794), + 144: uint16(8853), + 145: uint16(8857), + 146: uint16(8593), + 147: uint16(8595), + 148: uint16(8592), + 149: uint16(8594), + 150: uint16(8598), + 151: uint16(8599), + 152: uint16(8601), + 153: uint16(8600), + 154: uint16(8741), + 155: uint16(8739), + 156: uint16(65295), + }, + 1: { + 0: uint16(65340), + 1: uint16(8725), + 2: uint16(65128), + 3: uint16(65284), + 4: uint16(65509), + 5: uint16(12306), + 6: uint16(65504), + 7: uint16(65505), + 8: uint16(65285), + 9: uint16(65312), + 10: uint16(8451), + 11: uint16(8457), + 12: uint16(65129), + 13: uint16(65130), + 14: uint16(65131), + 15: uint16(13269), + 16: uint16(13212), + 17: uint16(13213), + 18: uint16(13214), + 19: uint16(13262), + 20: uint16(13217), + 21: uint16(13198), + 22: uint16(13199), + 23: uint16(13252), + 24: uint16(176), + 25: uint16(20825), + 26: uint16(20827), + 27: uint16(20830), + 28: uint16(20829), + 29: uint16(20833), + 30: uint16(20835), + 31: uint16(21991), + 32: uint16(29929), + 33: uint16(31950), + 34: uint16(9601), + 35: uint16(9602), + 36: uint16(9603), + 37: uint16(9604), + 38: uint16(9605), + 39: uint16(9606), + 40: uint16(9607), + 41: uint16(9608), + 42: uint16(9615), + 43: uint16(9614), + 44: uint16(9613), + 45: uint16(9612), + 46: uint16(9611), + 47: uint16(9610), + 48: uint16(9609), + 49: uint16(9532), + 50: uint16(9524), + 51: uint16(9516), + 52: uint16(9508), + 53: uint16(9500), + 54: uint16(9620), + 55: uint16(9472), + 56: uint16(9474), + 57: uint16(9621), + 58: uint16(9484), + 59: uint16(9488), + 60: uint16(9492), + 61: uint16(9496), + 62: uint16(9581), + 63: uint16(9582), + 64: uint16(9584), + 65: uint16(9583), + 66: uint16(9552), + 67: uint16(9566), + 68: uint16(9578), + 69: uint16(9569), + 70: uint16(9698), + 71: uint16(9699), + 72: uint16(9701), + 73: uint16(9700), + 74: uint16(9585), + 75: uint16(9586), + 76: uint16(9587), + 77: uint16(65296), + 78: uint16(65297), + 79: uint16(65298), + 80: uint16(65299), + 81: uint16(65300), + 82: uint16(65301), + 83: uint16(65302), + 84: uint16(65303), + 85: uint16(65304), + 86: uint16(65305), + 87: uint16(8544), + 88: uint16(8545), + 89: uint16(8546), + 90: uint16(8547), + 91: uint16(8548), + 92: uint16(8549), + 93: uint16(8550), + 94: uint16(8551), + 95: uint16(8552), + 96: uint16(8553), + 97: uint16(12321), + 98: uint16(12322), + 99: uint16(12323), + 100: uint16(12324), + 101: uint16(12325), + 102: uint16(12326), + 103: uint16(12327), + 104: uint16(12328), + 105: uint16(12329), + 106: uint16(21313), + 107: uint16(21316), + 108: uint16(21317), + 109: uint16(65313), + 110: uint16(65314), + 111: uint16(65315), + 112: uint16(65316), + 113: uint16(65317), + 114: uint16(65318), + 115: uint16(65319), + 116: uint16(65320), + 117: uint16(65321), + 118: uint16(65322), + 119: uint16(65323), + 120: uint16(65324), + 121: uint16(65325), + 122: uint16(65326), + 123: uint16(65327), + 124: uint16(65328), + 125: uint16(65329), + 126: uint16(65330), + 127: uint16(65331), + 128: uint16(65332), + 129: uint16(65333), + 130: uint16(65334), + 131: uint16(65335), + 132: uint16(65336), + 133: uint16(65337), + 134: uint16(65338), + 135: uint16(65345), + 136: uint16(65346), + 137: uint16(65347), + 138: uint16(65348), + 139: uint16(65349), + 140: uint16(65350), + 141: uint16(65351), + 142: uint16(65352), + 143: uint16(65353), + 144: uint16(65354), + 145: uint16(65355), + 146: uint16(65356), + 147: uint16(65357), + 148: uint16(65358), + 149: uint16(65359), + 150: uint16(65360), + 151: uint16(65361), + 152: uint16(65362), + 153: uint16(65363), + 154: uint16(65364), + 155: uint16(65365), + 156: uint16(65366), + }, + 2: { + 0: uint16(65367), + 1: uint16(65368), + 2: uint16(65369), + 3: uint16(65370), + 4: uint16(913), + 5: uint16(914), + 6: uint16(915), + 7: uint16(916), + 8: uint16(917), + 9: uint16(918), + 10: uint16(919), + 11: uint16(920), + 12: uint16(921), + 13: uint16(922), + 14: uint16(923), + 15: uint16(924), + 16: uint16(925), + 17: uint16(926), + 18: uint16(927), + 19: uint16(928), + 20: uint16(929), + 21: uint16(931), + 22: uint16(932), + 23: uint16(933), + 24: uint16(934), + 25: uint16(935), + 26: uint16(936), + 27: uint16(937), + 28: uint16(945), + 29: uint16(946), + 30: uint16(947), + 31: uint16(948), + 32: uint16(949), + 33: uint16(950), + 34: uint16(951), + 35: uint16(952), + 36: uint16(953), + 37: uint16(954), + 38: uint16(955), + 39: uint16(956), + 40: uint16(957), + 41: uint16(958), + 42: uint16(959), + 43: uint16(960), + 44: uint16(961), + 45: uint16(963), + 46: uint16(964), + 47: uint16(965), + 48: uint16(966), + 49: uint16(967), + 50: uint16(968), + 51: uint16(969), + 52: uint16(12549), + 53: uint16(12550), + 54: uint16(12551), + 55: uint16(12552), + 56: uint16(12553), + 57: uint16(12554), + 58: uint16(12555), + 59: uint16(12556), + 60: uint16(12557), + 61: uint16(12558), + 62: uint16(12559), + 63: uint16(12560), + 64: uint16(12561), + 65: uint16(12562), + 66: uint16(12563), + 67: uint16(12564), + 68: uint16(12565), + 69: uint16(12566), + 70: uint16(12567), + 71: uint16(12568), + 72: uint16(12569), + 73: uint16(12570), + 74: uint16(12571), + 75: uint16(12572), + 76: uint16(12573), + 77: uint16(12574), + 78: uint16(12575), + 79: uint16(12576), + 80: uint16(12577), + 81: uint16(12578), + 82: uint16(12579), + 83: uint16(12580), + 84: uint16(12581), + 85: uint16(12582), + 86: uint16(12583), + 87: uint16(12584), + 88: uint16(12585), + 89: uint16(729), + 90: uint16(713), + 91: uint16(714), + 92: uint16(711), + 93: uint16(715), + 94: uint16(9216), + 95: uint16(9217), + 96: uint16(9218), + 97: uint16(9219), + 98: uint16(9220), + 99: uint16(9221), + 100: uint16(9222), + 101: uint16(9223), + 102: uint16(9224), + 103: uint16(9225), + 104: uint16(9226), + 105: uint16(9227), + 106: uint16(9228), + 107: uint16(9229), + 108: uint16(9230), + 109: uint16(9231), + 110: uint16(9232), + 111: uint16(9233), + 112: uint16(9234), + 113: uint16(9235), + 114: uint16(9236), + 115: uint16(9237), + 116: uint16(9238), + 117: uint16(9239), + 118: uint16(9240), + 119: uint16(9241), + 120: uint16(9242), + 121: uint16(9243), + 122: uint16(9244), + 123: uint16(9245), + 124: uint16(9246), + 125: uint16(9247), + 126: uint16(9249), + 127: uint16(8364), + }, + 3: { + 0: uint16(19968), + 1: uint16(20057), + 2: uint16(19969), + 3: uint16(19971), + 4: uint16(20035), + 5: uint16(20061), + 6: uint16(20102), + 7: uint16(20108), + 8: uint16(20154), + 9: uint16(20799), + 10: uint16(20837), + 11: uint16(20843), + 12: uint16(20960), + 13: uint16(20992), + 14: uint16(20993), + 15: uint16(21147), + 16: uint16(21269), + 17: uint16(21313), + 18: uint16(21340), + 19: uint16(21448), + 20: uint16(19977), + 21: uint16(19979), + 22: uint16(19976), + 23: uint16(19978), + 24: uint16(20011), + 25: uint16(20024), + 26: uint16(20961), + 27: uint16(20037), + 28: uint16(20040), + 29: uint16(20063), + 30: uint16(20062), + 31: uint16(20110), + 32: uint16(20129), + 33: uint16(20800), + 34: uint16(20995), + 35: uint16(21242), + 36: uint16(21315), + 37: uint16(21449), + 38: uint16(21475), + 39: uint16(22303), + 40: uint16(22763), + 41: uint16(22805), + 42: uint16(22823), + 43: uint16(22899), + 44: uint16(23376), + 45: uint16(23377), + 46: uint16(23379), + 47: uint16(23544), + 48: uint16(23567), + 49: uint16(23586), + 50: uint16(23608), + 51: uint16(23665), + 52: uint16(24029), + 53: uint16(24037), + 54: uint16(24049), + 55: uint16(24050), + 56: uint16(24051), + 57: uint16(24062), + 58: uint16(24178), + 59: uint16(24318), + 60: uint16(24331), + 61: uint16(24339), + 62: uint16(25165), + 63: uint16(19985), + 64: uint16(19984), + 65: uint16(19981), + 66: uint16(20013), + 67: uint16(20016), + 68: uint16(20025), + 69: uint16(20043), + 70: uint16(23609), + 71: uint16(20104), + 72: uint16(20113), + 73: uint16(20117), + 74: uint16(20114), + 75: uint16(20116), + 76: uint16(20130), + 77: uint16(20161), + 78: uint16(20160), + 79: uint16(20163), + 80: uint16(20166), + 81: uint16(20167), + 82: uint16(20173), + 83: uint16(20170), + 84: uint16(20171), + 85: uint16(20164), + 86: uint16(20803), + 87: uint16(20801), + 88: uint16(20839), + 89: uint16(20845), + 90: uint16(20846), + 91: uint16(20844), + 92: uint16(20887), + 93: uint16(20982), + 94: uint16(20998), + 95: uint16(20999), + 96: uint16(21000), + 97: uint16(21243), + 98: uint16(21246), + 99: uint16(21247), + 100: uint16(21270), + 101: uint16(21305), + 102: uint16(21320), + 103: uint16(21319), + 104: uint16(21317), + 105: uint16(21342), + 106: uint16(21380), + 107: uint16(21451), + 108: uint16(21450), + 109: uint16(21453), + 110: uint16(22764), + 111: uint16(22825), + 112: uint16(22827), + 113: uint16(22826), + 114: uint16(22829), + 115: uint16(23380), + 116: uint16(23569), + 117: uint16(23588), + 118: uint16(23610), + 119: uint16(23663), + 120: uint16(24052), + 121: uint16(24187), + 122: uint16(24319), + 123: uint16(24340), + 124: uint16(24341), + 125: uint16(24515), + 126: uint16(25096), + 127: uint16(25142), + 128: uint16(25163), + 129: uint16(25166), + 130: uint16(25903), + 131: uint16(25991), + 132: uint16(26007), + 133: uint16(26020), + 134: uint16(26041), + 135: uint16(26085), + 136: uint16(26352), + 137: uint16(26376), + 138: uint16(26408), + 139: uint16(27424), + 140: uint16(27490), + 141: uint16(27513), + 142: uint16(27595), + 143: uint16(27604), + 144: uint16(27611), + 145: uint16(27663), + 146: uint16(27700), + 147: uint16(28779), + 148: uint16(29226), + 149: uint16(29238), + 150: uint16(29243), + 151: uint16(29255), + 152: uint16(29273), + 153: uint16(29275), + 154: uint16(29356), + 155: uint16(29579), + 156: uint16(19993), + }, + 4: { + 0: uint16(19990), + 1: uint16(19989), + 2: uint16(19988), + 3: uint16(19992), + 4: uint16(20027), + 5: uint16(20045), + 6: uint16(20047), + 7: uint16(20046), + 8: uint16(20197), + 9: uint16(20184), + 10: uint16(20180), + 11: uint16(20181), + 12: uint16(20182), + 13: uint16(20183), + 14: uint16(20195), + 15: uint16(20196), + 16: uint16(20185), + 17: uint16(20190), + 18: uint16(20805), + 19: uint16(20804), + 20: uint16(20873), + 21: uint16(20874), + 22: uint16(20908), + 23: uint16(20985), + 24: uint16(20986), + 25: uint16(20984), + 26: uint16(21002), + 27: uint16(21152), + 28: uint16(21151), + 29: uint16(21253), + 30: uint16(21254), + 31: uint16(21271), + 32: uint16(21277), + 33: uint16(20191), + 34: uint16(21322), + 35: uint16(21321), + 36: uint16(21345), + 37: uint16(21344), + 38: uint16(21359), + 39: uint16(21358), + 40: uint16(21435), + 41: uint16(21487), + 42: uint16(21476), + 43: uint16(21491), + 44: uint16(21484), + 45: uint16(21486), + 46: uint16(21481), + 47: uint16(21480), + 48: uint16(21500), + 49: uint16(21496), + 50: uint16(21493), + 51: uint16(21483), + 52: uint16(21478), + 53: uint16(21482), + 54: uint16(21490), + 55: uint16(21489), + 56: uint16(21488), + 57: uint16(21477), + 58: uint16(21485), + 59: uint16(21499), + 60: uint16(22235), + 61: uint16(22234), + 62: uint16(22806), + 63: uint16(22830), + 64: uint16(22833), + 65: uint16(22900), + 66: uint16(22902), + 67: uint16(23381), + 68: uint16(23427), + 69: uint16(23612), + 70: uint16(24040), + 71: uint16(24039), + 72: uint16(24038), + 73: uint16(24066), + 74: uint16(24067), + 75: uint16(24179), + 76: uint16(24188), + 77: uint16(24321), + 78: uint16(24344), + 79: uint16(24343), + 80: uint16(24517), + 81: uint16(25098), + 82: uint16(25171), + 83: uint16(25172), + 84: uint16(25170), + 85: uint16(25169), + 86: uint16(26021), + 87: uint16(26086), + 88: uint16(26414), + 89: uint16(26412), + 90: uint16(26410), + 91: uint16(26411), + 92: uint16(26413), + 93: uint16(27491), + 94: uint16(27597), + 95: uint16(27665), + 96: uint16(27664), + 97: uint16(27704), + 98: uint16(27713), + 99: uint16(27712), + 100: uint16(27710), + 101: uint16(29359), + 102: uint16(29572), + 103: uint16(29577), + 104: uint16(29916), + 105: uint16(29926), + 106: uint16(29976), + 107: uint16(29983), + 108: uint16(29992), + 109: uint16(29993), + 110: uint16(30000), + 111: uint16(30001), + 112: uint16(30002), + 113: uint16(30003), + 114: uint16(30091), + 115: uint16(30333), + 116: uint16(30382), + 117: uint16(30399), + 118: uint16(30446), + 119: uint16(30683), + 120: uint16(30690), + 121: uint16(30707), + 122: uint16(31034), + 123: uint16(31166), + 124: uint16(31348), + 125: uint16(31435), + 126: uint16(19998), + 127: uint16(19999), + 128: uint16(20050), + 129: uint16(20051), + 130: uint16(20073), + 131: uint16(20121), + 132: uint16(20132), + 133: uint16(20134), + 134: uint16(20133), + 135: uint16(20223), + 136: uint16(20233), + 137: uint16(20249), + 138: uint16(20234), + 139: uint16(20245), + 140: uint16(20237), + 141: uint16(20240), + 142: uint16(20241), + 143: uint16(20239), + 144: uint16(20210), + 145: uint16(20214), + 146: uint16(20219), + 147: uint16(20208), + 148: uint16(20211), + 149: uint16(20221), + 150: uint16(20225), + 151: uint16(20235), + 152: uint16(20809), + 153: uint16(20807), + 154: uint16(20806), + 155: uint16(20808), + 156: uint16(20840), + }, + 5: { + 0: uint16(20849), + 1: uint16(20877), + 2: uint16(20912), + 3: uint16(21015), + 4: uint16(21009), + 5: uint16(21010), + 6: uint16(21006), + 7: uint16(21014), + 8: uint16(21155), + 9: uint16(21256), + 10: uint16(21281), + 11: uint16(21280), + 12: uint16(21360), + 13: uint16(21361), + 14: uint16(21513), + 15: uint16(21519), + 16: uint16(21516), + 17: uint16(21514), + 18: uint16(21520), + 19: uint16(21505), + 20: uint16(21515), + 21: uint16(21508), + 22: uint16(21521), + 23: uint16(21517), + 24: uint16(21512), + 25: uint16(21507), + 26: uint16(21518), + 27: uint16(21510), + 28: uint16(21522), + 29: uint16(22240), + 30: uint16(22238), + 31: uint16(22237), + 32: uint16(22323), + 33: uint16(22320), + 34: uint16(22312), + 35: uint16(22317), + 36: uint16(22316), + 37: uint16(22319), + 38: uint16(22313), + 39: uint16(22809), + 40: uint16(22810), + 41: uint16(22839), + 42: uint16(22840), + 43: uint16(22916), + 44: uint16(22904), + 45: uint16(22915), + 46: uint16(22909), + 47: uint16(22905), + 48: uint16(22914), + 49: uint16(22913), + 50: uint16(23383), + 51: uint16(23384), + 52: uint16(23431), + 53: uint16(23432), + 54: uint16(23429), + 55: uint16(23433), + 56: uint16(23546), + 57: uint16(23574), + 58: uint16(23673), + 59: uint16(24030), + 60: uint16(24070), + 61: uint16(24182), + 62: uint16(24180), + 63: uint16(24335), + 64: uint16(24347), + 65: uint16(24537), + 66: uint16(24534), + 67: uint16(25102), + 68: uint16(25100), + 69: uint16(25101), + 70: uint16(25104), + 71: uint16(25187), + 72: uint16(25179), + 73: uint16(25176), + 74: uint16(25910), + 75: uint16(26089), + 76: uint16(26088), + 77: uint16(26092), + 78: uint16(26093), + 79: uint16(26354), + 80: uint16(26355), + 81: uint16(26377), + 82: uint16(26429), + 83: uint16(26420), + 84: uint16(26417), + 85: uint16(26421), + 86: uint16(27425), + 87: uint16(27492), + 88: uint16(27515), + 89: uint16(27670), + 90: uint16(27741), + 91: uint16(27735), + 92: uint16(27737), + 93: uint16(27743), + 94: uint16(27744), + 95: uint16(27728), + 96: uint16(27733), + 97: uint16(27745), + 98: uint16(27739), + 99: uint16(27725), + 100: uint16(27726), + 101: uint16(28784), + 102: uint16(29279), + 103: uint16(29277), + 104: uint16(30334), + 105: uint16(31481), + 106: uint16(31859), + 107: uint16(31992), + 108: uint16(32566), + 109: uint16(32650), + 110: uint16(32701), + 111: uint16(32769), + 112: uint16(32771), + 113: uint16(32780), + 114: uint16(32786), + 115: uint16(32819), + 116: uint16(32895), + 117: uint16(32905), + 118: uint16(32907), + 119: uint16(32908), + 120: uint16(33251), + 121: uint16(33258), + 122: uint16(33267), + 123: uint16(33276), + 124: uint16(33292), + 125: uint16(33307), + 126: uint16(33311), + 127: uint16(33390), + 128: uint16(33394), + 129: uint16(33406), + 130: uint16(34411), + 131: uint16(34880), + 132: uint16(34892), + 133: uint16(34915), + 134: uint16(35199), + 135: uint16(38433), + 136: uint16(20018), + 137: uint16(20136), + 138: uint16(20301), + 139: uint16(20303), + 140: uint16(20295), + 141: uint16(20311), + 142: uint16(20318), + 143: uint16(20276), + 144: uint16(20315), + 145: uint16(20309), + 146: uint16(20272), + 147: uint16(20304), + 148: uint16(20305), + 149: uint16(20285), + 150: uint16(20282), + 151: uint16(20280), + 152: uint16(20291), + 153: uint16(20308), + 154: uint16(20284), + 155: uint16(20294), + 156: uint16(20323), + }, + 6: { + 0: uint16(20316), + 1: uint16(20320), + 2: uint16(20271), + 3: uint16(20302), + 4: uint16(20278), + 5: uint16(20313), + 6: uint16(20317), + 7: uint16(20296), + 8: uint16(20314), + 9: uint16(20812), + 10: uint16(20811), + 11: uint16(20813), + 12: uint16(20853), + 13: uint16(20918), + 14: uint16(20919), + 15: uint16(21029), + 16: uint16(21028), + 17: uint16(21033), + 18: uint16(21034), + 19: uint16(21032), + 20: uint16(21163), + 21: uint16(21161), + 22: uint16(21162), + 23: uint16(21164), + 24: uint16(21283), + 25: uint16(21363), + 26: uint16(21365), + 27: uint16(21533), + 28: uint16(21549), + 29: uint16(21534), + 30: uint16(21566), + 31: uint16(21542), + 32: uint16(21582), + 33: uint16(21543), + 34: uint16(21574), + 35: uint16(21571), + 36: uint16(21555), + 37: uint16(21576), + 38: uint16(21570), + 39: uint16(21531), + 40: uint16(21545), + 41: uint16(21578), + 42: uint16(21561), + 43: uint16(21563), + 44: uint16(21560), + 45: uint16(21550), + 46: uint16(21557), + 47: uint16(21558), + 48: uint16(21536), + 49: uint16(21564), + 50: uint16(21568), + 51: uint16(21553), + 52: uint16(21547), + 53: uint16(21535), + 54: uint16(21548), + 55: uint16(22250), + 56: uint16(22256), + 57: uint16(22244), + 58: uint16(22251), + 59: uint16(22346), + 60: uint16(22353), + 61: uint16(22336), + 62: uint16(22349), + 63: uint16(22343), + 64: uint16(22350), + 65: uint16(22334), + 66: uint16(22352), + 67: uint16(22351), + 68: uint16(22331), + 69: uint16(22767), + 70: uint16(22846), + 71: uint16(22941), + 72: uint16(22930), + 73: uint16(22952), + 74: uint16(22942), + 75: uint16(22947), + 76: uint16(22937), + 77: uint16(22934), + 78: uint16(22925), + 79: uint16(22948), + 80: uint16(22931), + 81: uint16(22922), + 82: uint16(22949), + 83: uint16(23389), + 84: uint16(23388), + 85: uint16(23386), + 86: uint16(23387), + 87: uint16(23436), + 88: uint16(23435), + 89: uint16(23439), + 90: uint16(23596), + 91: uint16(23616), + 92: uint16(23617), + 93: uint16(23615), + 94: uint16(23614), + 95: uint16(23696), + 96: uint16(23697), + 97: uint16(23700), + 98: uint16(23692), + 99: uint16(24043), + 100: uint16(24076), + 101: uint16(24207), + 102: uint16(24199), + 103: uint16(24202), + 104: uint16(24311), + 105: uint16(24324), + 106: uint16(24351), + 107: uint16(24420), + 108: uint16(24418), + 109: uint16(24439), + 110: uint16(24441), + 111: uint16(24536), + 112: uint16(24524), + 113: uint16(24535), + 114: uint16(24525), + 115: uint16(24561), + 116: uint16(24555), + 117: uint16(24568), + 118: uint16(24554), + 119: uint16(25106), + 120: uint16(25105), + 121: uint16(25220), + 122: uint16(25239), + 123: uint16(25238), + 124: uint16(25216), + 125: uint16(25206), + 126: uint16(25225), + 127: uint16(25197), + 128: uint16(25226), + 129: uint16(25212), + 130: uint16(25214), + 131: uint16(25209), + 132: uint16(25203), + 133: uint16(25234), + 134: uint16(25199), + 135: uint16(25240), + 136: uint16(25198), + 137: uint16(25237), + 138: uint16(25235), + 139: uint16(25233), + 140: uint16(25222), + 141: uint16(25913), + 142: uint16(25915), + 143: uint16(25912), + 144: uint16(26097), + 145: uint16(26356), + 146: uint16(26463), + 147: uint16(26446), + 148: uint16(26447), + 149: uint16(26448), + 150: uint16(26449), + 151: uint16(26460), + 152: uint16(26454), + 153: uint16(26462), + 154: uint16(26441), + 155: uint16(26438), + 156: uint16(26464), + }, + 7: { + 0: uint16(26451), + 1: uint16(26455), + 2: uint16(27493), + 3: uint16(27599), + 4: uint16(27714), + 5: uint16(27742), + 6: uint16(27801), + 7: uint16(27777), + 8: uint16(27784), + 9: uint16(27785), + 10: uint16(27781), + 11: uint16(27803), + 12: uint16(27754), + 13: uint16(27770), + 14: uint16(27792), + 15: uint16(27760), + 16: uint16(27788), + 17: uint16(27752), + 18: uint16(27798), + 19: uint16(27794), + 20: uint16(27773), + 21: uint16(27779), + 22: uint16(27762), + 23: uint16(27774), + 24: uint16(27764), + 25: uint16(27782), + 26: uint16(27766), + 27: uint16(27789), + 28: uint16(27796), + 29: uint16(27800), + 30: uint16(27778), + 31: uint16(28790), + 32: uint16(28796), + 33: uint16(28797), + 34: uint16(28792), + 35: uint16(29282), + 36: uint16(29281), + 37: uint16(29280), + 38: uint16(29380), + 39: uint16(29378), + 40: uint16(29590), + 41: uint16(29996), + 42: uint16(29995), + 43: uint16(30007), + 44: uint16(30008), + 45: uint16(30338), + 46: uint16(30447), + 47: uint16(30691), + 48: uint16(31169), + 49: uint16(31168), + 50: uint16(31167), + 51: uint16(31350), + 52: uint16(31995), + 53: uint16(32597), + 54: uint16(32918), + 55: uint16(32915), + 56: uint16(32925), + 57: uint16(32920), + 58: uint16(32923), + 59: uint16(32922), + 60: uint16(32946), + 61: uint16(33391), + 62: uint16(33426), + 63: uint16(33419), + 64: uint16(33421), + 65: uint16(35211), + 66: uint16(35282), + 67: uint16(35328), + 68: uint16(35895), + 69: uint16(35910), + 70: uint16(35925), + 71: uint16(35997), + 72: uint16(36196), + 73: uint16(36208), + 74: uint16(36275), + 75: uint16(36523), + 76: uint16(36554), + 77: uint16(36763), + 78: uint16(36784), + 79: uint16(36802), + 80: uint16(36806), + 81: uint16(36805), + 82: uint16(36804), + 83: uint16(24033), + 84: uint16(37009), + 85: uint16(37026), + 86: uint16(37034), + 87: uint16(37030), + 88: uint16(37027), + 89: uint16(37193), + 90: uint16(37318), + 91: uint16(37324), + 92: uint16(38450), + 93: uint16(38446), + 94: uint16(38449), + 95: uint16(38442), + 96: uint16(38444), + 97: uint16(20006), + 98: uint16(20054), + 99: uint16(20083), + 100: uint16(20107), + 101: uint16(20123), + 102: uint16(20126), + 103: uint16(20139), + 104: uint16(20140), + 105: uint16(20335), + 106: uint16(20381), + 107: uint16(20365), + 108: uint16(20339), + 109: uint16(20351), + 110: uint16(20332), + 111: uint16(20379), + 112: uint16(20363), + 113: uint16(20358), + 114: uint16(20355), + 115: uint16(20336), + 116: uint16(20341), + 117: uint16(20360), + 118: uint16(20329), + 119: uint16(20347), + 120: uint16(20374), + 121: uint16(20350), + 122: uint16(20367), + 123: uint16(20369), + 124: uint16(20346), + 125: uint16(20820), + 126: uint16(20818), + 127: uint16(20821), + 128: uint16(20841), + 129: uint16(20855), + 130: uint16(20854), + 131: uint16(20856), + 132: uint16(20925), + 133: uint16(20989), + 134: uint16(21051), + 135: uint16(21048), + 136: uint16(21047), + 137: uint16(21050), + 138: uint16(21040), + 139: uint16(21038), + 140: uint16(21046), + 141: uint16(21057), + 142: uint16(21182), + 143: uint16(21179), + 144: uint16(21330), + 145: uint16(21332), + 146: uint16(21331), + 147: uint16(21329), + 148: uint16(21350), + 149: uint16(21367), + 150: uint16(21368), + 151: uint16(21369), + 152: uint16(21462), + 153: uint16(21460), + 154: uint16(21463), + 155: uint16(21619), + 156: uint16(21621), + }, + 8: { + 0: uint16(21654), + 1: uint16(21624), + 2: uint16(21653), + 3: uint16(21632), + 4: uint16(21627), + 5: uint16(21623), + 6: uint16(21636), + 7: uint16(21650), + 8: uint16(21638), + 9: uint16(21628), + 10: uint16(21648), + 11: uint16(21617), + 12: uint16(21622), + 13: uint16(21644), + 14: uint16(21658), + 15: uint16(21602), + 16: uint16(21608), + 17: uint16(21643), + 18: uint16(21629), + 19: uint16(21646), + 20: uint16(22266), + 21: uint16(22403), + 22: uint16(22391), + 23: uint16(22378), + 24: uint16(22377), + 25: uint16(22369), + 26: uint16(22374), + 27: uint16(22372), + 28: uint16(22396), + 29: uint16(22812), + 30: uint16(22857), + 31: uint16(22855), + 32: uint16(22856), + 33: uint16(22852), + 34: uint16(22868), + 35: uint16(22974), + 36: uint16(22971), + 37: uint16(22996), + 38: uint16(22969), + 39: uint16(22958), + 40: uint16(22993), + 41: uint16(22982), + 42: uint16(22992), + 43: uint16(22989), + 44: uint16(22987), + 45: uint16(22995), + 46: uint16(22986), + 47: uint16(22959), + 48: uint16(22963), + 49: uint16(22994), + 50: uint16(22981), + 51: uint16(23391), + 52: uint16(23396), + 53: uint16(23395), + 54: uint16(23447), + 55: uint16(23450), + 56: uint16(23448), + 57: uint16(23452), + 58: uint16(23449), + 59: uint16(23451), + 60: uint16(23578), + 61: uint16(23624), + 62: uint16(23621), + 63: uint16(23622), + 64: uint16(23735), + 65: uint16(23713), + 66: uint16(23736), + 67: uint16(23721), + 68: uint16(23723), + 69: uint16(23729), + 70: uint16(23731), + 71: uint16(24088), + 72: uint16(24090), + 73: uint16(24086), + 74: uint16(24085), + 75: uint16(24091), + 76: uint16(24081), + 77: uint16(24184), + 78: uint16(24218), + 79: uint16(24215), + 80: uint16(24220), + 81: uint16(24213), + 82: uint16(24214), + 83: uint16(24310), + 84: uint16(24358), + 85: uint16(24359), + 86: uint16(24361), + 87: uint16(24448), + 88: uint16(24449), + 89: uint16(24447), + 90: uint16(24444), + 91: uint16(24541), + 92: uint16(24544), + 93: uint16(24573), + 94: uint16(24565), + 95: uint16(24575), + 96: uint16(24591), + 97: uint16(24596), + 98: uint16(24623), + 99: uint16(24629), + 100: uint16(24598), + 101: uint16(24618), + 102: uint16(24597), + 103: uint16(24609), + 104: uint16(24615), + 105: uint16(24617), + 106: uint16(24619), + 107: uint16(24603), + 108: uint16(25110), + 109: uint16(25109), + 110: uint16(25151), + 111: uint16(25150), + 112: uint16(25152), + 113: uint16(25215), + 114: uint16(25289), + 115: uint16(25292), + 116: uint16(25284), + 117: uint16(25279), + 118: uint16(25282), + 119: uint16(25273), + 120: uint16(25298), + 121: uint16(25307), + 122: uint16(25259), + 123: uint16(25299), + 124: uint16(25300), + 125: uint16(25291), + 126: uint16(25288), + 127: uint16(25256), + 128: uint16(25277), + 129: uint16(25276), + 130: uint16(25296), + 131: uint16(25305), + 132: uint16(25287), + 133: uint16(25293), + 134: uint16(25269), + 135: uint16(25306), + 136: uint16(25265), + 137: uint16(25304), + 138: uint16(25302), + 139: uint16(25303), + 140: uint16(25286), + 141: uint16(25260), + 142: uint16(25294), + 143: uint16(25918), + 144: uint16(26023), + 145: uint16(26044), + 146: uint16(26106), + 147: uint16(26132), + 148: uint16(26131), + 149: uint16(26124), + 150: uint16(26118), + 151: uint16(26114), + 152: uint16(26126), + 153: uint16(26112), + 154: uint16(26127), + 155: uint16(26133), + 156: uint16(26122), + }, + 9: { + 0: uint16(26119), + 1: uint16(26381), + 2: uint16(26379), + 3: uint16(26477), + 4: uint16(26507), + 5: uint16(26517), + 6: uint16(26481), + 7: uint16(26524), + 8: uint16(26483), + 9: uint16(26487), + 10: uint16(26503), + 11: uint16(26525), + 12: uint16(26519), + 13: uint16(26479), + 14: uint16(26480), + 15: uint16(26495), + 16: uint16(26505), + 17: uint16(26494), + 18: uint16(26512), + 19: uint16(26485), + 20: uint16(26522), + 21: uint16(26515), + 22: uint16(26492), + 23: uint16(26474), + 24: uint16(26482), + 25: uint16(27427), + 26: uint16(27494), + 27: uint16(27495), + 28: uint16(27519), + 29: uint16(27667), + 30: uint16(27675), + 31: uint16(27875), + 32: uint16(27880), + 33: uint16(27891), + 34: uint16(27825), + 35: uint16(27852), + 36: uint16(27877), + 37: uint16(27827), + 38: uint16(27837), + 39: uint16(27838), + 40: uint16(27836), + 41: uint16(27874), + 42: uint16(27819), + 43: uint16(27861), + 44: uint16(27859), + 45: uint16(27832), + 46: uint16(27844), + 47: uint16(27833), + 48: uint16(27841), + 49: uint16(27822), + 50: uint16(27863), + 51: uint16(27845), + 52: uint16(27889), + 53: uint16(27839), + 54: uint16(27835), + 55: uint16(27873), + 56: uint16(27867), + 57: uint16(27850), + 58: uint16(27820), + 59: uint16(27887), + 60: uint16(27868), + 61: uint16(27862), + 62: uint16(27872), + 63: uint16(28821), + 64: uint16(28814), + 65: uint16(28818), + 66: uint16(28810), + 67: uint16(28825), + 68: uint16(29228), + 69: uint16(29229), + 70: uint16(29240), + 71: uint16(29256), + 72: uint16(29287), + 73: uint16(29289), + 74: uint16(29376), + 75: uint16(29390), + 76: uint16(29401), + 77: uint16(29399), + 78: uint16(29392), + 79: uint16(29609), + 80: uint16(29608), + 81: uint16(29599), + 82: uint16(29611), + 83: uint16(29605), + 84: uint16(30013), + 85: uint16(30109), + 86: uint16(30105), + 87: uint16(30106), + 88: uint16(30340), + 89: uint16(30402), + 90: uint16(30450), + 91: uint16(30452), + 92: uint16(30693), + 93: uint16(30717), + 94: uint16(31038), + 95: uint16(31040), + 96: uint16(31041), + 97: uint16(31177), + 98: uint16(31176), + 99: uint16(31354), + 100: uint16(31353), + 101: uint16(31482), + 102: uint16(31998), + 103: uint16(32596), + 104: uint16(32652), + 105: uint16(32651), + 106: uint16(32773), + 107: uint16(32954), + 108: uint16(32933), + 109: uint16(32930), + 110: uint16(32945), + 111: uint16(32929), + 112: uint16(32939), + 113: uint16(32937), + 114: uint16(32948), + 115: uint16(32938), + 116: uint16(32943), + 117: uint16(33253), + 118: uint16(33278), + 119: uint16(33293), + 120: uint16(33459), + 121: uint16(33437), + 122: uint16(33433), + 123: uint16(33453), + 124: uint16(33469), + 125: uint16(33439), + 126: uint16(33465), + 127: uint16(33457), + 128: uint16(33452), + 129: uint16(33445), + 130: uint16(33455), + 131: uint16(33464), + 132: uint16(33443), + 133: uint16(33456), + 134: uint16(33470), + 135: uint16(33463), + 136: uint16(34382), + 137: uint16(34417), + 138: uint16(21021), + 139: uint16(34920), + 140: uint16(36555), + 141: uint16(36814), + 142: uint16(36820), + 143: uint16(36817), + 144: uint16(37045), + 145: uint16(37048), + 146: uint16(37041), + 147: uint16(37046), + 148: uint16(37319), + 149: uint16(37329), + 150: uint16(38263), + 151: uint16(38272), + 152: uint16(38428), + 153: uint16(38464), + 154: uint16(38463), + 155: uint16(38459), + 156: uint16(38468), + }, + 10: { + 0: uint16(38466), + 1: uint16(38585), + 2: uint16(38632), + 3: uint16(38738), + 4: uint16(38750), + 5: uint16(20127), + 6: uint16(20141), + 7: uint16(20142), + 8: uint16(20449), + 9: uint16(20405), + 10: uint16(20399), + 11: uint16(20415), + 12: uint16(20448), + 13: uint16(20433), + 14: uint16(20431), + 15: uint16(20445), + 16: uint16(20419), + 17: uint16(20406), + 18: uint16(20440), + 19: uint16(20447), + 20: uint16(20426), + 21: uint16(20439), + 22: uint16(20398), + 23: uint16(20432), + 24: uint16(20420), + 25: uint16(20418), + 26: uint16(20442), + 27: uint16(20430), + 28: uint16(20446), + 29: uint16(20407), + 30: uint16(20823), + 31: uint16(20882), + 32: uint16(20881), + 33: uint16(20896), + 34: uint16(21070), + 35: uint16(21059), + 36: uint16(21066), + 37: uint16(21069), + 38: uint16(21068), + 39: uint16(21067), + 40: uint16(21063), + 41: uint16(21191), + 42: uint16(21193), + 43: uint16(21187), + 44: uint16(21185), + 45: uint16(21261), + 46: uint16(21335), + 47: uint16(21371), + 48: uint16(21402), + 49: uint16(21467), + 50: uint16(21676), + 51: uint16(21696), + 52: uint16(21672), + 53: uint16(21710), + 54: uint16(21705), + 55: uint16(21688), + 56: uint16(21670), + 57: uint16(21683), + 58: uint16(21703), + 59: uint16(21698), + 60: uint16(21693), + 61: uint16(21674), + 62: uint16(21697), + 63: uint16(21700), + 64: uint16(21704), + 65: uint16(21679), + 66: uint16(21675), + 67: uint16(21681), + 68: uint16(21691), + 69: uint16(21673), + 70: uint16(21671), + 71: uint16(21695), + 72: uint16(22271), + 73: uint16(22402), + 74: uint16(22411), + 75: uint16(22432), + 76: uint16(22435), + 77: uint16(22434), + 78: uint16(22478), + 79: uint16(22446), + 80: uint16(22419), + 81: uint16(22869), + 82: uint16(22865), + 83: uint16(22863), + 84: uint16(22862), + 85: uint16(22864), + 86: uint16(23004), + 87: uint16(23000), + 88: uint16(23039), + 89: uint16(23011), + 90: uint16(23016), + 91: uint16(23043), + 92: uint16(23013), + 93: uint16(23018), + 94: uint16(23002), + 95: uint16(23014), + 96: uint16(23041), + 97: uint16(23035), + 98: uint16(23401), + 99: uint16(23459), + 100: uint16(23462), + 101: uint16(23460), + 102: uint16(23458), + 103: uint16(23461), + 104: uint16(23553), + 105: uint16(23630), + 106: uint16(23631), + 107: uint16(23629), + 108: uint16(23627), + 109: uint16(23769), + 110: uint16(23762), + 111: uint16(24055), + 112: uint16(24093), + 113: uint16(24101), + 114: uint16(24095), + 115: uint16(24189), + 116: uint16(24224), + 117: uint16(24230), + 118: uint16(24314), + 119: uint16(24328), + 120: uint16(24365), + 121: uint16(24421), + 122: uint16(24456), + 123: uint16(24453), + 124: uint16(24458), + 125: uint16(24459), + 126: uint16(24455), + 127: uint16(24460), + 128: uint16(24457), + 129: uint16(24594), + 130: uint16(24605), + 131: uint16(24608), + 132: uint16(24613), + 133: uint16(24590), + 134: uint16(24616), + 135: uint16(24653), + 136: uint16(24688), + 137: uint16(24680), + 138: uint16(24674), + 139: uint16(24646), + 140: uint16(24643), + 141: uint16(24684), + 142: uint16(24683), + 143: uint16(24682), + 144: uint16(24676), + 145: uint16(25153), + 146: uint16(25308), + 147: uint16(25366), + 148: uint16(25353), + 149: uint16(25340), + 150: uint16(25325), + 151: uint16(25345), + 152: uint16(25326), + 153: uint16(25341), + 154: uint16(25351), + 155: uint16(25329), + 156: uint16(25335), + }, + 11: { + 0: uint16(25327), + 1: uint16(25324), + 2: uint16(25342), + 3: uint16(25332), + 4: uint16(25361), + 5: uint16(25346), + 6: uint16(25919), + 7: uint16(25925), + 8: uint16(26027), + 9: uint16(26045), + 10: uint16(26082), + 11: uint16(26149), + 12: uint16(26157), + 13: uint16(26144), + 14: uint16(26151), + 15: uint16(26159), + 16: uint16(26143), + 17: uint16(26152), + 18: uint16(26161), + 19: uint16(26148), + 20: uint16(26359), + 21: uint16(26623), + 22: uint16(26579), + 23: uint16(26609), + 24: uint16(26580), + 25: uint16(26576), + 26: uint16(26604), + 27: uint16(26550), + 28: uint16(26543), + 29: uint16(26613), + 30: uint16(26601), + 31: uint16(26607), + 32: uint16(26564), + 33: uint16(26577), + 34: uint16(26548), + 35: uint16(26586), + 36: uint16(26597), + 37: uint16(26552), + 38: uint16(26575), + 39: uint16(26590), + 40: uint16(26611), + 41: uint16(26544), + 42: uint16(26585), + 43: uint16(26594), + 44: uint16(26589), + 45: uint16(26578), + 46: uint16(27498), + 47: uint16(27523), + 48: uint16(27526), + 49: uint16(27573), + 50: uint16(27602), + 51: uint16(27607), + 52: uint16(27679), + 53: uint16(27849), + 54: uint16(27915), + 55: uint16(27954), + 56: uint16(27946), + 57: uint16(27969), + 58: uint16(27941), + 59: uint16(27916), + 60: uint16(27953), + 61: uint16(27934), + 62: uint16(27927), + 63: uint16(27963), + 64: uint16(27965), + 65: uint16(27966), + 66: uint16(27958), + 67: uint16(27931), + 68: uint16(27893), + 69: uint16(27961), + 70: uint16(27943), + 71: uint16(27960), + 72: uint16(27945), + 73: uint16(27950), + 74: uint16(27957), + 75: uint16(27918), + 76: uint16(27947), + 77: uint16(28843), + 78: uint16(28858), + 79: uint16(28851), + 80: uint16(28844), + 81: uint16(28847), + 82: uint16(28845), + 83: uint16(28856), + 84: uint16(28846), + 85: uint16(28836), + 86: uint16(29232), + 87: uint16(29298), + 88: uint16(29295), + 89: uint16(29300), + 90: uint16(29417), + 91: uint16(29408), + 92: uint16(29409), + 93: uint16(29623), + 94: uint16(29642), + 95: uint16(29627), + 96: uint16(29618), + 97: uint16(29645), + 98: uint16(29632), + 99: uint16(29619), + 100: uint16(29978), + 101: uint16(29997), + 102: uint16(30031), + 103: uint16(30028), + 104: uint16(30030), + 105: uint16(30027), + 106: uint16(30123), + 107: uint16(30116), + 108: uint16(30117), + 109: uint16(30114), + 110: uint16(30115), + 111: uint16(30328), + 112: uint16(30342), + 113: uint16(30343), + 114: uint16(30344), + 115: uint16(30408), + 116: uint16(30406), + 117: uint16(30403), + 118: uint16(30405), + 119: uint16(30465), + 120: uint16(30457), + 121: uint16(30456), + 122: uint16(30473), + 123: uint16(30475), + 124: uint16(30462), + 125: uint16(30460), + 126: uint16(30471), + 127: uint16(30684), + 128: uint16(30722), + 129: uint16(30740), + 130: uint16(30732), + 131: uint16(30733), + 132: uint16(31046), + 133: uint16(31049), + 134: uint16(31048), + 135: uint16(31047), + 136: uint16(31161), + 137: uint16(31162), + 138: uint16(31185), + 139: uint16(31186), + 140: uint16(31179), + 141: uint16(31359), + 142: uint16(31361), + 143: uint16(31487), + 144: uint16(31485), + 145: uint16(31869), + 146: uint16(32002), + 147: uint16(32005), + 148: uint16(32000), + 149: uint16(32009), + 150: uint16(32007), + 151: uint16(32004), + 152: uint16(32006), + 153: uint16(32568), + 154: uint16(32654), + 155: uint16(32703), + 156: uint16(32772), + }, + 12: { + 0: uint16(32784), + 1: uint16(32781), + 2: uint16(32785), + 3: uint16(32822), + 4: uint16(32982), + 5: uint16(32997), + 6: uint16(32986), + 7: uint16(32963), + 8: uint16(32964), + 9: uint16(32972), + 10: uint16(32993), + 11: uint16(32987), + 12: uint16(32974), + 13: uint16(32990), + 14: uint16(32996), + 15: uint16(32989), + 16: uint16(33268), + 17: uint16(33314), + 18: uint16(33511), + 19: uint16(33539), + 20: uint16(33541), + 21: uint16(33507), + 22: uint16(33499), + 23: uint16(33510), + 24: uint16(33540), + 25: uint16(33509), + 26: uint16(33538), + 27: uint16(33545), + 28: uint16(33490), + 29: uint16(33495), + 30: uint16(33521), + 31: uint16(33537), + 32: uint16(33500), + 33: uint16(33492), + 34: uint16(33489), + 35: uint16(33502), + 36: uint16(33491), + 37: uint16(33503), + 38: uint16(33519), + 39: uint16(33542), + 40: uint16(34384), + 41: uint16(34425), + 42: uint16(34427), + 43: uint16(34426), + 44: uint16(34893), + 45: uint16(34923), + 46: uint16(35201), + 47: uint16(35284), + 48: uint16(35336), + 49: uint16(35330), + 50: uint16(35331), + 51: uint16(35998), + 52: uint16(36000), + 53: uint16(36212), + 54: uint16(36211), + 55: uint16(36276), + 56: uint16(36557), + 57: uint16(36556), + 58: uint16(36848), + 59: uint16(36838), + 60: uint16(36834), + 61: uint16(36842), + 62: uint16(36837), + 63: uint16(36845), + 64: uint16(36843), + 65: uint16(36836), + 66: uint16(36840), + 67: uint16(37066), + 68: uint16(37070), + 69: uint16(37057), + 70: uint16(37059), + 71: uint16(37195), + 72: uint16(37194), + 73: uint16(37325), + 74: uint16(38274), + 75: uint16(38480), + 76: uint16(38475), + 77: uint16(38476), + 78: uint16(38477), + 79: uint16(38754), + 80: uint16(38761), + 81: uint16(38859), + 82: uint16(38893), + 83: uint16(38899), + 84: uint16(38913), + 85: uint16(39080), + 86: uint16(39131), + 87: uint16(39135), + 88: uint16(39318), + 89: uint16(39321), + 90: uint16(20056), + 91: uint16(20147), + 92: uint16(20492), + 93: uint16(20493), + 94: uint16(20515), + 95: uint16(20463), + 96: uint16(20518), + 97: uint16(20517), + 98: uint16(20472), + 99: uint16(20521), + 100: uint16(20502), + 101: uint16(20486), + 102: uint16(20540), + 103: uint16(20511), + 104: uint16(20506), + 105: uint16(20498), + 106: uint16(20497), + 107: uint16(20474), + 108: uint16(20480), + 109: uint16(20500), + 110: uint16(20520), + 111: uint16(20465), + 112: uint16(20513), + 113: uint16(20491), + 114: uint16(20505), + 115: uint16(20504), + 116: uint16(20467), + 117: uint16(20462), + 118: uint16(20525), + 119: uint16(20522), + 120: uint16(20478), + 121: uint16(20523), + 122: uint16(20489), + 123: uint16(20860), + 124: uint16(20900), + 125: uint16(20901), + 126: uint16(20898), + 127: uint16(20941), + 128: uint16(20940), + 129: uint16(20934), + 130: uint16(20939), + 131: uint16(21078), + 132: uint16(21084), + 133: uint16(21076), + 134: uint16(21083), + 135: uint16(21085), + 136: uint16(21290), + 137: uint16(21375), + 138: uint16(21407), + 139: uint16(21405), + 140: uint16(21471), + 141: uint16(21736), + 142: uint16(21776), + 143: uint16(21761), + 144: uint16(21815), + 145: uint16(21756), + 146: uint16(21733), + 147: uint16(21746), + 148: uint16(21766), + 149: uint16(21754), + 150: uint16(21780), + 151: uint16(21737), + 152: uint16(21741), + 153: uint16(21729), + 154: uint16(21769), + 155: uint16(21742), + 156: uint16(21738), + }, + 13: { + 0: uint16(21734), + 1: uint16(21799), + 2: uint16(21767), + 3: uint16(21757), + 4: uint16(21775), + 5: uint16(22275), + 6: uint16(22276), + 7: uint16(22466), + 8: uint16(22484), + 9: uint16(22475), + 10: uint16(22467), + 11: uint16(22537), + 12: uint16(22799), + 13: uint16(22871), + 14: uint16(22872), + 15: uint16(22874), + 16: uint16(23057), + 17: uint16(23064), + 18: uint16(23068), + 19: uint16(23071), + 20: uint16(23067), + 21: uint16(23059), + 22: uint16(23020), + 23: uint16(23072), + 24: uint16(23075), + 25: uint16(23081), + 26: uint16(23077), + 27: uint16(23052), + 28: uint16(23049), + 29: uint16(23403), + 30: uint16(23640), + 31: uint16(23472), + 32: uint16(23475), + 33: uint16(23478), + 34: uint16(23476), + 35: uint16(23470), + 36: uint16(23477), + 37: uint16(23481), + 38: uint16(23480), + 39: uint16(23556), + 40: uint16(23633), + 41: uint16(23637), + 42: uint16(23632), + 43: uint16(23789), + 44: uint16(23805), + 45: uint16(23803), + 46: uint16(23786), + 47: uint16(23784), + 48: uint16(23792), + 49: uint16(23798), + 50: uint16(23809), + 51: uint16(23796), + 52: uint16(24046), + 53: uint16(24109), + 54: uint16(24107), + 55: uint16(24235), + 56: uint16(24237), + 57: uint16(24231), + 58: uint16(24369), + 59: uint16(24466), + 60: uint16(24465), + 61: uint16(24464), + 62: uint16(24665), + 63: uint16(24675), + 64: uint16(24677), + 65: uint16(24656), + 66: uint16(24661), + 67: uint16(24685), + 68: uint16(24681), + 69: uint16(24687), + 70: uint16(24708), + 71: uint16(24735), + 72: uint16(24730), + 73: uint16(24717), + 74: uint16(24724), + 75: uint16(24716), + 76: uint16(24709), + 77: uint16(24726), + 78: uint16(25159), + 79: uint16(25331), + 80: uint16(25352), + 81: uint16(25343), + 82: uint16(25422), + 83: uint16(25406), + 84: uint16(25391), + 85: uint16(25429), + 86: uint16(25410), + 87: uint16(25414), + 88: uint16(25423), + 89: uint16(25417), + 90: uint16(25402), + 91: uint16(25424), + 92: uint16(25405), + 93: uint16(25386), + 94: uint16(25387), + 95: uint16(25384), + 96: uint16(25421), + 97: uint16(25420), + 98: uint16(25928), + 99: uint16(25929), + 100: uint16(26009), + 101: uint16(26049), + 102: uint16(26053), + 103: uint16(26178), + 104: uint16(26185), + 105: uint16(26191), + 106: uint16(26179), + 107: uint16(26194), + 108: uint16(26188), + 109: uint16(26181), + 110: uint16(26177), + 111: uint16(26360), + 112: uint16(26388), + 113: uint16(26389), + 114: uint16(26391), + 115: uint16(26657), + 116: uint16(26680), + 117: uint16(26696), + 118: uint16(26694), + 119: uint16(26707), + 120: uint16(26681), + 121: uint16(26690), + 122: uint16(26708), + 123: uint16(26665), + 124: uint16(26803), + 125: uint16(26647), + 126: uint16(26700), + 127: uint16(26705), + 128: uint16(26685), + 129: uint16(26612), + 130: uint16(26704), + 131: uint16(26688), + 132: uint16(26684), + 133: uint16(26691), + 134: uint16(26666), + 135: uint16(26693), + 136: uint16(26643), + 137: uint16(26648), + 138: uint16(26689), + 139: uint16(27530), + 140: uint16(27529), + 141: uint16(27575), + 142: uint16(27683), + 143: uint16(27687), + 144: uint16(27688), + 145: uint16(27686), + 146: uint16(27684), + 147: uint16(27888), + 148: uint16(28010), + 149: uint16(28053), + 150: uint16(28040), + 151: uint16(28039), + 152: uint16(28006), + 153: uint16(28024), + 154: uint16(28023), + 155: uint16(27993), + 156: uint16(28051), + }, + 14: { + 0: uint16(28012), + 1: uint16(28041), + 2: uint16(28014), + 3: uint16(27994), + 4: uint16(28020), + 5: uint16(28009), + 6: uint16(28044), + 7: uint16(28042), + 8: uint16(28025), + 9: uint16(28037), + 10: uint16(28005), + 11: uint16(28052), + 12: uint16(28874), + 13: uint16(28888), + 14: uint16(28900), + 15: uint16(28889), + 16: uint16(28872), + 17: uint16(28879), + 18: uint16(29241), + 19: uint16(29305), + 20: uint16(29436), + 21: uint16(29433), + 22: uint16(29437), + 23: uint16(29432), + 24: uint16(29431), + 25: uint16(29574), + 26: uint16(29677), + 27: uint16(29705), + 28: uint16(29678), + 29: uint16(29664), + 30: uint16(29674), + 31: uint16(29662), + 32: uint16(30036), + 33: uint16(30045), + 34: uint16(30044), + 35: uint16(30042), + 36: uint16(30041), + 37: uint16(30142), + 38: uint16(30149), + 39: uint16(30151), + 40: uint16(30130), + 41: uint16(30131), + 42: uint16(30141), + 43: uint16(30140), + 44: uint16(30137), + 45: uint16(30146), + 46: uint16(30136), + 47: uint16(30347), + 48: uint16(30384), + 49: uint16(30410), + 50: uint16(30413), + 51: uint16(30414), + 52: uint16(30505), + 53: uint16(30495), + 54: uint16(30496), + 55: uint16(30504), + 56: uint16(30697), + 57: uint16(30768), + 58: uint16(30759), + 59: uint16(30776), + 60: uint16(30749), + 61: uint16(30772), + 62: uint16(30775), + 63: uint16(30757), + 64: uint16(30765), + 65: uint16(30752), + 66: uint16(30751), + 67: uint16(30770), + 68: uint16(31061), + 69: uint16(31056), + 70: uint16(31072), + 71: uint16(31071), + 72: uint16(31062), + 73: uint16(31070), + 74: uint16(31069), + 75: uint16(31063), + 76: uint16(31066), + 77: uint16(31204), + 78: uint16(31203), + 79: uint16(31207), + 80: uint16(31199), + 81: uint16(31206), + 82: uint16(31209), + 83: uint16(31192), + 84: uint16(31364), + 85: uint16(31368), + 86: uint16(31449), + 87: uint16(31494), + 88: uint16(31505), + 89: uint16(31881), + 90: uint16(32033), + 91: uint16(32023), + 92: uint16(32011), + 93: uint16(32010), + 94: uint16(32032), + 95: uint16(32034), + 96: uint16(32020), + 97: uint16(32016), + 98: uint16(32021), + 99: uint16(32026), + 100: uint16(32028), + 101: uint16(32013), + 102: uint16(32025), + 103: uint16(32027), + 104: uint16(32570), + 105: uint16(32607), + 106: uint16(32660), + 107: uint16(32709), + 108: uint16(32705), + 109: uint16(32774), + 110: uint16(32792), + 111: uint16(32789), + 112: uint16(32793), + 113: uint16(32791), + 114: uint16(32829), + 115: uint16(32831), + 116: uint16(33009), + 117: uint16(33026), + 118: uint16(33008), + 119: uint16(33029), + 120: uint16(33005), + 121: uint16(33012), + 122: uint16(33030), + 123: uint16(33016), + 124: uint16(33011), + 125: uint16(33032), + 126: uint16(33021), + 127: uint16(33034), + 128: uint16(33020), + 129: uint16(33007), + 130: uint16(33261), + 131: uint16(33260), + 132: uint16(33280), + 133: uint16(33296), + 134: uint16(33322), + 135: uint16(33323), + 136: uint16(33320), + 137: uint16(33324), + 138: uint16(33467), + 139: uint16(33579), + 140: uint16(33618), + 141: uint16(33620), + 142: uint16(33610), + 143: uint16(33592), + 144: uint16(33616), + 145: uint16(33609), + 146: uint16(33589), + 147: uint16(33588), + 148: uint16(33615), + 149: uint16(33586), + 150: uint16(33593), + 151: uint16(33590), + 152: uint16(33559), + 153: uint16(33600), + 154: uint16(33585), + 155: uint16(33576), + 156: uint16(33603), + }, + 15: { + 0: uint16(34388), + 1: uint16(34442), + 2: uint16(34474), + 3: uint16(34451), + 4: uint16(34468), + 5: uint16(34473), + 6: uint16(34444), + 7: uint16(34467), + 8: uint16(34460), + 9: uint16(34928), + 10: uint16(34935), + 11: uint16(34945), + 12: uint16(34946), + 13: uint16(34941), + 14: uint16(34937), + 15: uint16(35352), + 16: uint16(35344), + 17: uint16(35342), + 18: uint16(35340), + 19: uint16(35349), + 20: uint16(35338), + 21: uint16(35351), + 22: uint16(35347), + 23: uint16(35350), + 24: uint16(35343), + 25: uint16(35345), + 26: uint16(35912), + 27: uint16(35962), + 28: uint16(35961), + 29: uint16(36001), + 30: uint16(36002), + 31: uint16(36215), + 32: uint16(36524), + 33: uint16(36562), + 34: uint16(36564), + 35: uint16(36559), + 36: uint16(36785), + 37: uint16(36865), + 38: uint16(36870), + 39: uint16(36855), + 40: uint16(36864), + 41: uint16(36858), + 42: uint16(36852), + 43: uint16(36867), + 44: uint16(36861), + 45: uint16(36869), + 46: uint16(36856), + 47: uint16(37013), + 48: uint16(37089), + 49: uint16(37085), + 50: uint16(37090), + 51: uint16(37202), + 52: uint16(37197), + 53: uint16(37196), + 54: uint16(37336), + 55: uint16(37341), + 56: uint16(37335), + 57: uint16(37340), + 58: uint16(37337), + 59: uint16(38275), + 60: uint16(38498), + 61: uint16(38499), + 62: uint16(38497), + 63: uint16(38491), + 64: uint16(38493), + 65: uint16(38500), + 66: uint16(38488), + 67: uint16(38494), + 68: uint16(38587), + 69: uint16(39138), + 70: uint16(39340), + 71: uint16(39592), + 72: uint16(39640), + 73: uint16(39717), + 74: uint16(39730), + 75: uint16(39740), + 76: uint16(20094), + 77: uint16(20602), + 78: uint16(20605), + 79: uint16(20572), + 80: uint16(20551), + 81: uint16(20547), + 82: uint16(20556), + 83: uint16(20570), + 84: uint16(20553), + 85: uint16(20581), + 86: uint16(20598), + 87: uint16(20558), + 88: uint16(20565), + 89: uint16(20597), + 90: uint16(20596), + 91: uint16(20599), + 92: uint16(20559), + 93: uint16(20495), + 94: uint16(20591), + 95: uint16(20589), + 96: uint16(20828), + 97: uint16(20885), + 98: uint16(20976), + 99: uint16(21098), + 100: uint16(21103), + 101: uint16(21202), + 102: uint16(21209), + 103: uint16(21208), + 104: uint16(21205), + 105: uint16(21264), + 106: uint16(21263), + 107: uint16(21273), + 108: uint16(21311), + 109: uint16(21312), + 110: uint16(21310), + 111: uint16(21443), + 112: uint16(26364), + 113: uint16(21830), + 114: uint16(21866), + 115: uint16(21862), + 116: uint16(21828), + 117: uint16(21854), + 118: uint16(21857), + 119: uint16(21827), + 120: uint16(21834), + 121: uint16(21809), + 122: uint16(21846), + 123: uint16(21839), + 124: uint16(21845), + 125: uint16(21807), + 126: uint16(21860), + 127: uint16(21816), + 128: uint16(21806), + 129: uint16(21852), + 130: uint16(21804), + 131: uint16(21859), + 132: uint16(21811), + 133: uint16(21825), + 134: uint16(21847), + 135: uint16(22280), + 136: uint16(22283), + 137: uint16(22281), + 138: uint16(22495), + 139: uint16(22533), + 140: uint16(22538), + 141: uint16(22534), + 142: uint16(22496), + 143: uint16(22500), + 144: uint16(22522), + 145: uint16(22530), + 146: uint16(22581), + 147: uint16(22519), + 148: uint16(22521), + 149: uint16(22816), + 150: uint16(22882), + 151: uint16(23094), + 152: uint16(23105), + 153: uint16(23113), + 154: uint16(23142), + 155: uint16(23146), + 156: uint16(23104), + }, + 16: { + 0: uint16(23100), + 1: uint16(23138), + 2: uint16(23130), + 3: uint16(23110), + 4: uint16(23114), + 5: uint16(23408), + 6: uint16(23495), + 7: uint16(23493), + 8: uint16(23492), + 9: uint16(23490), + 10: uint16(23487), + 11: uint16(23494), + 12: uint16(23561), + 13: uint16(23560), + 14: uint16(23559), + 15: uint16(23648), + 16: uint16(23644), + 17: uint16(23645), + 18: uint16(23815), + 19: uint16(23814), + 20: uint16(23822), + 21: uint16(23835), + 22: uint16(23830), + 23: uint16(23842), + 24: uint16(23825), + 25: uint16(23849), + 26: uint16(23828), + 27: uint16(23833), + 28: uint16(23844), + 29: uint16(23847), + 30: uint16(23831), + 31: uint16(24034), + 32: uint16(24120), + 33: uint16(24118), + 34: uint16(24115), + 35: uint16(24119), + 36: uint16(24247), + 37: uint16(24248), + 38: uint16(24246), + 39: uint16(24245), + 40: uint16(24254), + 41: uint16(24373), + 42: uint16(24375), + 43: uint16(24407), + 44: uint16(24428), + 45: uint16(24425), + 46: uint16(24427), + 47: uint16(24471), + 48: uint16(24473), + 49: uint16(24478), + 50: uint16(24472), + 51: uint16(24481), + 52: uint16(24480), + 53: uint16(24476), + 54: uint16(24703), + 55: uint16(24739), + 56: uint16(24713), + 57: uint16(24736), + 58: uint16(24744), + 59: uint16(24779), + 60: uint16(24756), + 61: uint16(24806), + 62: uint16(24765), + 63: uint16(24773), + 64: uint16(24763), + 65: uint16(24757), + 66: uint16(24796), + 67: uint16(24764), + 68: uint16(24792), + 69: uint16(24789), + 70: uint16(24774), + 71: uint16(24799), + 72: uint16(24760), + 73: uint16(24794), + 74: uint16(24775), + 75: uint16(25114), + 76: uint16(25115), + 77: uint16(25160), + 78: uint16(25504), + 79: uint16(25511), + 80: uint16(25458), + 81: uint16(25494), + 82: uint16(25506), + 83: uint16(25509), + 84: uint16(25463), + 85: uint16(25447), + 86: uint16(25496), + 87: uint16(25514), + 88: uint16(25457), + 89: uint16(25513), + 90: uint16(25481), + 91: uint16(25475), + 92: uint16(25499), + 93: uint16(25451), + 94: uint16(25512), + 95: uint16(25476), + 96: uint16(25480), + 97: uint16(25497), + 98: uint16(25505), + 99: uint16(25516), + 100: uint16(25490), + 101: uint16(25487), + 102: uint16(25472), + 103: uint16(25467), + 104: uint16(25449), + 105: uint16(25448), + 106: uint16(25466), + 107: uint16(25949), + 108: uint16(25942), + 109: uint16(25937), + 110: uint16(25945), + 111: uint16(25943), + 112: uint16(21855), + 113: uint16(25935), + 114: uint16(25944), + 115: uint16(25941), + 116: uint16(25940), + 117: uint16(26012), + 118: uint16(26011), + 119: uint16(26028), + 120: uint16(26063), + 121: uint16(26059), + 122: uint16(26060), + 123: uint16(26062), + 124: uint16(26205), + 125: uint16(26202), + 126: uint16(26212), + 127: uint16(26216), + 128: uint16(26214), + 129: uint16(26206), + 130: uint16(26361), + 131: uint16(21207), + 132: uint16(26395), + 133: uint16(26753), + 134: uint16(26799), + 135: uint16(26786), + 136: uint16(26771), + 137: uint16(26805), + 138: uint16(26751), + 139: uint16(26742), + 140: uint16(26801), + 141: uint16(26791), + 142: uint16(26775), + 143: uint16(26800), + 144: uint16(26755), + 145: uint16(26820), + 146: uint16(26797), + 147: uint16(26758), + 148: uint16(26757), + 149: uint16(26772), + 150: uint16(26781), + 151: uint16(26792), + 152: uint16(26783), + 153: uint16(26785), + 154: uint16(26754), + 155: uint16(27442), + 156: uint16(27578), + }, + 17: { + 0: uint16(27627), + 1: uint16(27628), + 2: uint16(27691), + 3: uint16(28046), + 4: uint16(28092), + 5: uint16(28147), + 6: uint16(28121), + 7: uint16(28082), + 8: uint16(28129), + 9: uint16(28108), + 10: uint16(28132), + 11: uint16(28155), + 12: uint16(28154), + 13: uint16(28165), + 14: uint16(28103), + 15: uint16(28107), + 16: uint16(28079), + 17: uint16(28113), + 18: uint16(28078), + 19: uint16(28126), + 20: uint16(28153), + 21: uint16(28088), + 22: uint16(28151), + 23: uint16(28149), + 24: uint16(28101), + 25: uint16(28114), + 26: uint16(28186), + 27: uint16(28085), + 28: uint16(28122), + 29: uint16(28139), + 30: uint16(28120), + 31: uint16(28138), + 32: uint16(28145), + 33: uint16(28142), + 34: uint16(28136), + 35: uint16(28102), + 36: uint16(28100), + 37: uint16(28074), + 38: uint16(28140), + 39: uint16(28095), + 40: uint16(28134), + 41: uint16(28921), + 42: uint16(28937), + 43: uint16(28938), + 44: uint16(28925), + 45: uint16(28911), + 46: uint16(29245), + 47: uint16(29309), + 48: uint16(29313), + 49: uint16(29468), + 50: uint16(29467), + 51: uint16(29462), + 52: uint16(29459), + 53: uint16(29465), + 54: uint16(29575), + 55: uint16(29701), + 56: uint16(29706), + 57: uint16(29699), + 58: uint16(29702), + 59: uint16(29694), + 60: uint16(29709), + 61: uint16(29920), + 62: uint16(29942), + 63: uint16(29943), + 64: uint16(29980), + 65: uint16(29986), + 66: uint16(30053), + 67: uint16(30054), + 68: uint16(30050), + 69: uint16(30064), + 70: uint16(30095), + 71: uint16(30164), + 72: uint16(30165), + 73: uint16(30133), + 74: uint16(30154), + 75: uint16(30157), + 76: uint16(30350), + 77: uint16(30420), + 78: uint16(30418), + 79: uint16(30427), + 80: uint16(30519), + 81: uint16(30526), + 82: uint16(30524), + 83: uint16(30518), + 84: uint16(30520), + 85: uint16(30522), + 86: uint16(30827), + 87: uint16(30787), + 88: uint16(30798), + 89: uint16(31077), + 90: uint16(31080), + 91: uint16(31085), + 92: uint16(31227), + 93: uint16(31378), + 94: uint16(31381), + 95: uint16(31520), + 96: uint16(31528), + 97: uint16(31515), + 98: uint16(31532), + 99: uint16(31526), + 100: uint16(31513), + 101: uint16(31518), + 102: uint16(31534), + 103: uint16(31890), + 104: uint16(31895), + 105: uint16(31893), + 106: uint16(32070), + 107: uint16(32067), + 108: uint16(32113), + 109: uint16(32046), + 110: uint16(32057), + 111: uint16(32060), + 112: uint16(32064), + 113: uint16(32048), + 114: uint16(32051), + 115: uint16(32068), + 116: uint16(32047), + 117: uint16(32066), + 118: uint16(32050), + 119: uint16(32049), + 120: uint16(32573), + 121: uint16(32670), + 122: uint16(32666), + 123: uint16(32716), + 124: uint16(32718), + 125: uint16(32722), + 126: uint16(32796), + 127: uint16(32842), + 128: uint16(32838), + 129: uint16(33071), + 130: uint16(33046), + 131: uint16(33059), + 132: uint16(33067), + 133: uint16(33065), + 134: uint16(33072), + 135: uint16(33060), + 136: uint16(33282), + 137: uint16(33333), + 138: uint16(33335), + 139: uint16(33334), + 140: uint16(33337), + 141: uint16(33678), + 142: uint16(33694), + 143: uint16(33688), + 144: uint16(33656), + 145: uint16(33698), + 146: uint16(33686), + 147: uint16(33725), + 148: uint16(33707), + 149: uint16(33682), + 150: uint16(33674), + 151: uint16(33683), + 152: uint16(33673), + 153: uint16(33696), + 154: uint16(33655), + 155: uint16(33659), + 156: uint16(33660), + }, + 18: { + 0: uint16(33670), + 1: uint16(33703), + 2: uint16(34389), + 3: uint16(24426), + 4: uint16(34503), + 5: uint16(34496), + 6: uint16(34486), + 7: uint16(34500), + 8: uint16(34485), + 9: uint16(34502), + 10: uint16(34507), + 11: uint16(34481), + 12: uint16(34479), + 13: uint16(34505), + 14: uint16(34899), + 15: uint16(34974), + 16: uint16(34952), + 17: uint16(34987), + 18: uint16(34962), + 19: uint16(34966), + 20: uint16(34957), + 21: uint16(34955), + 22: uint16(35219), + 23: uint16(35215), + 24: uint16(35370), + 25: uint16(35357), + 26: uint16(35363), + 27: uint16(35365), + 28: uint16(35377), + 29: uint16(35373), + 30: uint16(35359), + 31: uint16(35355), + 32: uint16(35362), + 33: uint16(35913), + 34: uint16(35930), + 35: uint16(36009), + 36: uint16(36012), + 37: uint16(36011), + 38: uint16(36008), + 39: uint16(36010), + 40: uint16(36007), + 41: uint16(36199), + 42: uint16(36198), + 43: uint16(36286), + 44: uint16(36282), + 45: uint16(36571), + 46: uint16(36575), + 47: uint16(36889), + 48: uint16(36877), + 49: uint16(36890), + 50: uint16(36887), + 51: uint16(36899), + 52: uint16(36895), + 53: uint16(36893), + 54: uint16(36880), + 55: uint16(36885), + 56: uint16(36894), + 57: uint16(36896), + 58: uint16(36879), + 59: uint16(36898), + 60: uint16(36886), + 61: uint16(36891), + 62: uint16(36884), + 63: uint16(37096), + 64: uint16(37101), + 65: uint16(37117), + 66: uint16(37207), + 67: uint16(37326), + 68: uint16(37365), + 69: uint16(37350), + 70: uint16(37347), + 71: uint16(37351), + 72: uint16(37357), + 73: uint16(37353), + 74: uint16(38281), + 75: uint16(38506), + 76: uint16(38517), + 77: uint16(38515), + 78: uint16(38520), + 79: uint16(38512), + 80: uint16(38516), + 81: uint16(38518), + 82: uint16(38519), + 83: uint16(38508), + 84: uint16(38592), + 85: uint16(38634), + 86: uint16(38633), + 87: uint16(31456), + 88: uint16(31455), + 89: uint16(38914), + 90: uint16(38915), + 91: uint16(39770), + 92: uint16(40165), + 93: uint16(40565), + 94: uint16(40575), + 95: uint16(40613), + 96: uint16(40635), + 97: uint16(20642), + 98: uint16(20621), + 99: uint16(20613), + 100: uint16(20633), + 101: uint16(20625), + 102: uint16(20608), + 103: uint16(20630), + 104: uint16(20632), + 105: uint16(20634), + 106: uint16(26368), + 107: uint16(20977), + 108: uint16(21106), + 109: uint16(21108), + 110: uint16(21109), + 111: uint16(21097), + 112: uint16(21214), + 113: uint16(21213), + 114: uint16(21211), + 115: uint16(21338), + 116: uint16(21413), + 117: uint16(21883), + 118: uint16(21888), + 119: uint16(21927), + 120: uint16(21884), + 121: uint16(21898), + 122: uint16(21917), + 123: uint16(21912), + 124: uint16(21890), + 125: uint16(21916), + 126: uint16(21930), + 127: uint16(21908), + 128: uint16(21895), + 129: uint16(21899), + 130: uint16(21891), + 131: uint16(21939), + 132: uint16(21934), + 133: uint16(21919), + 134: uint16(21822), + 135: uint16(21938), + 136: uint16(21914), + 137: uint16(21947), + 138: uint16(21932), + 139: uint16(21937), + 140: uint16(21886), + 141: uint16(21897), + 142: uint16(21931), + 143: uint16(21913), + 144: uint16(22285), + 145: uint16(22575), + 146: uint16(22570), + 147: uint16(22580), + 148: uint16(22564), + 149: uint16(22576), + 150: uint16(22577), + 151: uint16(22561), + 152: uint16(22557), + 153: uint16(22560), + 154: uint16(22777), + 155: uint16(22778), + 156: uint16(22880), + }, + 19: { + 0: uint16(23159), + 1: uint16(23194), + 2: uint16(23167), + 3: uint16(23186), + 4: uint16(23195), + 5: uint16(23207), + 6: uint16(23411), + 7: uint16(23409), + 8: uint16(23506), + 9: uint16(23500), + 10: uint16(23507), + 11: uint16(23504), + 12: uint16(23562), + 13: uint16(23563), + 14: uint16(23601), + 15: uint16(23884), + 16: uint16(23888), + 17: uint16(23860), + 18: uint16(23879), + 19: uint16(24061), + 20: uint16(24133), + 21: uint16(24125), + 22: uint16(24128), + 23: uint16(24131), + 24: uint16(24190), + 25: uint16(24266), + 26: uint16(24257), + 27: uint16(24258), + 28: uint16(24260), + 29: uint16(24380), + 30: uint16(24429), + 31: uint16(24489), + 32: uint16(24490), + 33: uint16(24488), + 34: uint16(24785), + 35: uint16(24801), + 36: uint16(24754), + 37: uint16(24758), + 38: uint16(24800), + 39: uint16(24860), + 40: uint16(24867), + 41: uint16(24826), + 42: uint16(24853), + 43: uint16(24816), + 44: uint16(24827), + 45: uint16(24820), + 46: uint16(24936), + 47: uint16(24817), + 48: uint16(24846), + 49: uint16(24822), + 50: uint16(24841), + 51: uint16(24832), + 52: uint16(24850), + 53: uint16(25119), + 54: uint16(25161), + 55: uint16(25507), + 56: uint16(25484), + 57: uint16(25551), + 58: uint16(25536), + 59: uint16(25577), + 60: uint16(25545), + 61: uint16(25542), + 62: uint16(25549), + 63: uint16(25554), + 64: uint16(25571), + 65: uint16(25552), + 66: uint16(25569), + 67: uint16(25558), + 68: uint16(25581), + 69: uint16(25582), + 70: uint16(25462), + 71: uint16(25588), + 72: uint16(25578), + 73: uint16(25563), + 74: uint16(25682), + 75: uint16(25562), + 76: uint16(25593), + 77: uint16(25950), + 78: uint16(25958), + 79: uint16(25954), + 80: uint16(25955), + 81: uint16(26001), + 82: uint16(26000), + 83: uint16(26031), + 84: uint16(26222), + 85: uint16(26224), + 86: uint16(26228), + 87: uint16(26230), + 88: uint16(26223), + 89: uint16(26257), + 90: uint16(26234), + 91: uint16(26238), + 92: uint16(26231), + 93: uint16(26366), + 94: uint16(26367), + 95: uint16(26399), + 96: uint16(26397), + 97: uint16(26874), + 98: uint16(26837), + 99: uint16(26848), + 100: uint16(26840), + 101: uint16(26839), + 102: uint16(26885), + 103: uint16(26847), + 104: uint16(26869), + 105: uint16(26862), + 106: uint16(26855), + 107: uint16(26873), + 108: uint16(26834), + 109: uint16(26866), + 110: uint16(26851), + 111: uint16(26827), + 112: uint16(26829), + 113: uint16(26893), + 114: uint16(26898), + 115: uint16(26894), + 116: uint16(26825), + 117: uint16(26842), + 118: uint16(26990), + 119: uint16(26875), + 120: uint16(27454), + 121: uint16(27450), + 122: uint16(27453), + 123: uint16(27544), + 124: uint16(27542), + 125: uint16(27580), + 126: uint16(27631), + 127: uint16(27694), + 128: uint16(27695), + 129: uint16(27692), + 130: uint16(28207), + 131: uint16(28216), + 132: uint16(28244), + 133: uint16(28193), + 134: uint16(28210), + 135: uint16(28263), + 136: uint16(28234), + 137: uint16(28192), + 138: uint16(28197), + 139: uint16(28195), + 140: uint16(28187), + 141: uint16(28251), + 142: uint16(28248), + 143: uint16(28196), + 144: uint16(28246), + 145: uint16(28270), + 146: uint16(28205), + 147: uint16(28198), + 148: uint16(28271), + 149: uint16(28212), + 150: uint16(28237), + 151: uint16(28218), + 152: uint16(28204), + 153: uint16(28227), + 154: uint16(28189), + 155: uint16(28222), + 156: uint16(28363), + }, + 20: { + 0: uint16(28297), + 1: uint16(28185), + 2: uint16(28238), + 3: uint16(28259), + 4: uint16(28228), + 5: uint16(28274), + 6: uint16(28265), + 7: uint16(28255), + 8: uint16(28953), + 9: uint16(28954), + 10: uint16(28966), + 11: uint16(28976), + 12: uint16(28961), + 13: uint16(28982), + 14: uint16(29038), + 15: uint16(28956), + 16: uint16(29260), + 17: uint16(29316), + 18: uint16(29312), + 19: uint16(29494), + 20: uint16(29477), + 21: uint16(29492), + 22: uint16(29481), + 23: uint16(29754), + 24: uint16(29738), + 25: uint16(29747), + 26: uint16(29730), + 27: uint16(29733), + 28: uint16(29749), + 29: uint16(29750), + 30: uint16(29748), + 31: uint16(29743), + 32: uint16(29723), + 33: uint16(29734), + 34: uint16(29736), + 35: uint16(29989), + 36: uint16(29990), + 37: uint16(30059), + 38: uint16(30058), + 39: uint16(30178), + 40: uint16(30171), + 41: uint16(30179), + 42: uint16(30169), + 43: uint16(30168), + 44: uint16(30174), + 45: uint16(30176), + 46: uint16(30331), + 47: uint16(30332), + 48: uint16(30358), + 49: uint16(30355), + 50: uint16(30388), + 51: uint16(30428), + 52: uint16(30543), + 53: uint16(30701), + 54: uint16(30813), + 55: uint16(30828), + 56: uint16(30831), + 57: uint16(31245), + 58: uint16(31240), + 59: uint16(31243), + 60: uint16(31237), + 61: uint16(31232), + 62: uint16(31384), + 63: uint16(31383), + 64: uint16(31382), + 65: uint16(31461), + 66: uint16(31459), + 67: uint16(31561), + 68: uint16(31574), + 69: uint16(31558), + 70: uint16(31568), + 71: uint16(31570), + 72: uint16(31572), + 73: uint16(31565), + 74: uint16(31563), + 75: uint16(31567), + 76: uint16(31569), + 77: uint16(31903), + 78: uint16(31909), + 79: uint16(32094), + 80: uint16(32080), + 81: uint16(32104), + 82: uint16(32085), + 83: uint16(32043), + 84: uint16(32110), + 85: uint16(32114), + 86: uint16(32097), + 87: uint16(32102), + 88: uint16(32098), + 89: uint16(32112), + 90: uint16(32115), + 91: uint16(21892), + 92: uint16(32724), + 93: uint16(32725), + 94: uint16(32779), + 95: uint16(32850), + 96: uint16(32901), + 97: uint16(33109), + 98: uint16(33108), + 99: uint16(33099), + 100: uint16(33105), + 101: uint16(33102), + 102: uint16(33081), + 103: uint16(33094), + 104: uint16(33086), + 105: uint16(33100), + 106: uint16(33107), + 107: uint16(33140), + 108: uint16(33298), + 109: uint16(33308), + 110: uint16(33769), + 111: uint16(33795), + 112: uint16(33784), + 113: uint16(33805), + 114: uint16(33760), + 115: uint16(33733), + 116: uint16(33803), + 117: uint16(33729), + 118: uint16(33775), + 119: uint16(33777), + 120: uint16(33780), + 121: uint16(33879), + 122: uint16(33802), + 123: uint16(33776), + 124: uint16(33804), + 125: uint16(33740), + 126: uint16(33789), + 127: uint16(33778), + 128: uint16(33738), + 129: uint16(33848), + 130: uint16(33806), + 131: uint16(33796), + 132: uint16(33756), + 133: uint16(33799), + 134: uint16(33748), + 135: uint16(33759), + 136: uint16(34395), + 137: uint16(34527), + 138: uint16(34521), + 139: uint16(34541), + 140: uint16(34516), + 141: uint16(34523), + 142: uint16(34532), + 143: uint16(34512), + 144: uint16(34526), + 145: uint16(34903), + 146: uint16(35009), + 147: uint16(35010), + 148: uint16(34993), + 149: uint16(35203), + 150: uint16(35222), + 151: uint16(35387), + 152: uint16(35424), + 153: uint16(35413), + 154: uint16(35422), + 155: uint16(35388), + 156: uint16(35393), + }, + 21: { + 0: uint16(35412), + 1: uint16(35419), + 2: uint16(35408), + 3: uint16(35398), + 4: uint16(35380), + 5: uint16(35386), + 6: uint16(35382), + 7: uint16(35414), + 8: uint16(35937), + 9: uint16(35970), + 10: uint16(36015), + 11: uint16(36028), + 12: uint16(36019), + 13: uint16(36029), + 14: uint16(36033), + 15: uint16(36027), + 16: uint16(36032), + 17: uint16(36020), + 18: uint16(36023), + 19: uint16(36022), + 20: uint16(36031), + 21: uint16(36024), + 22: uint16(36234), + 23: uint16(36229), + 24: uint16(36225), + 25: uint16(36302), + 26: uint16(36317), + 27: uint16(36299), + 28: uint16(36314), + 29: uint16(36305), + 30: uint16(36300), + 31: uint16(36315), + 32: uint16(36294), + 33: uint16(36603), + 34: uint16(36600), + 35: uint16(36604), + 36: uint16(36764), + 37: uint16(36910), + 38: uint16(36917), + 39: uint16(36913), + 40: uint16(36920), + 41: uint16(36914), + 42: uint16(36918), + 43: uint16(37122), + 44: uint16(37109), + 45: uint16(37129), + 46: uint16(37118), + 47: uint16(37219), + 48: uint16(37221), + 49: uint16(37327), + 50: uint16(37396), + 51: uint16(37397), + 52: uint16(37411), + 53: uint16(37385), + 54: uint16(37406), + 55: uint16(37389), + 56: uint16(37392), + 57: uint16(37383), + 58: uint16(37393), + 59: uint16(38292), + 60: uint16(38287), + 61: uint16(38283), + 62: uint16(38289), + 63: uint16(38291), + 64: uint16(38290), + 65: uint16(38286), + 66: uint16(38538), + 67: uint16(38542), + 68: uint16(38539), + 69: uint16(38525), + 70: uint16(38533), + 71: uint16(38534), + 72: uint16(38541), + 73: uint16(38514), + 74: uint16(38532), + 75: uint16(38593), + 76: uint16(38597), + 77: uint16(38596), + 78: uint16(38598), + 79: uint16(38599), + 80: uint16(38639), + 81: uint16(38642), + 82: uint16(38860), + 83: uint16(38917), + 84: uint16(38918), + 85: uint16(38920), + 86: uint16(39143), + 87: uint16(39146), + 88: uint16(39151), + 89: uint16(39145), + 90: uint16(39154), + 91: uint16(39149), + 92: uint16(39342), + 93: uint16(39341), + 94: uint16(40643), + 95: uint16(40653), + 96: uint16(40657), + 97: uint16(20098), + 98: uint16(20653), + 99: uint16(20661), + 100: uint16(20658), + 101: uint16(20659), + 102: uint16(20677), + 103: uint16(20670), + 104: uint16(20652), + 105: uint16(20663), + 106: uint16(20667), + 107: uint16(20655), + 108: uint16(20679), + 109: uint16(21119), + 110: uint16(21111), + 111: uint16(21117), + 112: uint16(21215), + 113: uint16(21222), + 114: uint16(21220), + 115: uint16(21218), + 116: uint16(21219), + 117: uint16(21295), + 118: uint16(21983), + 119: uint16(21992), + 120: uint16(21971), + 121: uint16(21990), + 122: uint16(21966), + 123: uint16(21980), + 124: uint16(21959), + 125: uint16(21969), + 126: uint16(21987), + 127: uint16(21988), + 128: uint16(21999), + 129: uint16(21978), + 130: uint16(21985), + 131: uint16(21957), + 132: uint16(21958), + 133: uint16(21989), + 134: uint16(21961), + 135: uint16(22290), + 136: uint16(22291), + 137: uint16(22622), + 138: uint16(22609), + 139: uint16(22616), + 140: uint16(22615), + 141: uint16(22618), + 142: uint16(22612), + 143: uint16(22635), + 144: uint16(22604), + 145: uint16(22637), + 146: uint16(22602), + 147: uint16(22626), + 148: uint16(22610), + 149: uint16(22603), + 150: uint16(22887), + 151: uint16(23233), + 152: uint16(23241), + 153: uint16(23244), + 154: uint16(23230), + 155: uint16(23229), + 156: uint16(23228), + }, + 22: { + 0: uint16(23219), + 1: uint16(23234), + 2: uint16(23218), + 3: uint16(23913), + 4: uint16(23919), + 5: uint16(24140), + 6: uint16(24185), + 7: uint16(24265), + 8: uint16(24264), + 9: uint16(24338), + 10: uint16(24409), + 11: uint16(24492), + 12: uint16(24494), + 13: uint16(24858), + 14: uint16(24847), + 15: uint16(24904), + 16: uint16(24863), + 17: uint16(24819), + 18: uint16(24859), + 19: uint16(24825), + 20: uint16(24833), + 21: uint16(24840), + 22: uint16(24910), + 23: uint16(24908), + 24: uint16(24900), + 25: uint16(24909), + 26: uint16(24894), + 27: uint16(24884), + 28: uint16(24871), + 29: uint16(24845), + 30: uint16(24838), + 31: uint16(24887), + 32: uint16(25121), + 33: uint16(25122), + 34: uint16(25619), + 35: uint16(25662), + 36: uint16(25630), + 37: uint16(25642), + 38: uint16(25645), + 39: uint16(25661), + 40: uint16(25644), + 41: uint16(25615), + 42: uint16(25628), + 43: uint16(25620), + 44: uint16(25613), + 45: uint16(25654), + 46: uint16(25622), + 47: uint16(25623), + 48: uint16(25606), + 49: uint16(25964), + 50: uint16(26015), + 51: uint16(26032), + 52: uint16(26263), + 53: uint16(26249), + 54: uint16(26247), + 55: uint16(26248), + 56: uint16(26262), + 57: uint16(26244), + 58: uint16(26264), + 59: uint16(26253), + 60: uint16(26371), + 61: uint16(27028), + 62: uint16(26989), + 63: uint16(26970), + 64: uint16(26999), + 65: uint16(26976), + 66: uint16(26964), + 67: uint16(26997), + 68: uint16(26928), + 69: uint16(27010), + 70: uint16(26954), + 71: uint16(26984), + 72: uint16(26987), + 73: uint16(26974), + 74: uint16(26963), + 75: uint16(27001), + 76: uint16(27014), + 77: uint16(26973), + 78: uint16(26979), + 79: uint16(26971), + 80: uint16(27463), + 81: uint16(27506), + 82: uint16(27584), + 83: uint16(27583), + 84: uint16(27603), + 85: uint16(27645), + 86: uint16(28322), + 87: uint16(28335), + 88: uint16(28371), + 89: uint16(28342), + 90: uint16(28354), + 91: uint16(28304), + 92: uint16(28317), + 93: uint16(28359), + 94: uint16(28357), + 95: uint16(28325), + 96: uint16(28312), + 97: uint16(28348), + 98: uint16(28346), + 99: uint16(28331), + 100: uint16(28369), + 101: uint16(28310), + 102: uint16(28316), + 103: uint16(28356), + 104: uint16(28372), + 105: uint16(28330), + 106: uint16(28327), + 107: uint16(28340), + 108: uint16(29006), + 109: uint16(29017), + 110: uint16(29033), + 111: uint16(29028), + 112: uint16(29001), + 113: uint16(29031), + 114: uint16(29020), + 115: uint16(29036), + 116: uint16(29030), + 117: uint16(29004), + 118: uint16(29029), + 119: uint16(29022), + 120: uint16(28998), + 121: uint16(29032), + 122: uint16(29014), + 123: uint16(29242), + 124: uint16(29266), + 125: uint16(29495), + 126: uint16(29509), + 127: uint16(29503), + 128: uint16(29502), + 129: uint16(29807), + 130: uint16(29786), + 131: uint16(29781), + 132: uint16(29791), + 133: uint16(29790), + 134: uint16(29761), + 135: uint16(29759), + 136: uint16(29785), + 137: uint16(29787), + 138: uint16(29788), + 139: uint16(30070), + 140: uint16(30072), + 141: uint16(30208), + 142: uint16(30192), + 143: uint16(30209), + 144: uint16(30194), + 145: uint16(30193), + 146: uint16(30202), + 147: uint16(30207), + 148: uint16(30196), + 149: uint16(30195), + 150: uint16(30430), + 151: uint16(30431), + 152: uint16(30555), + 153: uint16(30571), + 154: uint16(30566), + 155: uint16(30558), + 156: uint16(30563), + }, + 23: { + 0: uint16(30585), + 1: uint16(30570), + 2: uint16(30572), + 3: uint16(30556), + 4: uint16(30565), + 5: uint16(30568), + 6: uint16(30562), + 7: uint16(30702), + 8: uint16(30862), + 9: uint16(30896), + 10: uint16(30871), + 11: uint16(30872), + 12: uint16(30860), + 13: uint16(30857), + 14: uint16(30844), + 15: uint16(30865), + 16: uint16(30867), + 17: uint16(30847), + 18: uint16(31098), + 19: uint16(31103), + 20: uint16(31105), + 21: uint16(33836), + 22: uint16(31165), + 23: uint16(31260), + 24: uint16(31258), + 25: uint16(31264), + 26: uint16(31252), + 27: uint16(31263), + 28: uint16(31262), + 29: uint16(31391), + 30: uint16(31392), + 31: uint16(31607), + 32: uint16(31680), + 33: uint16(31584), + 34: uint16(31598), + 35: uint16(31591), + 36: uint16(31921), + 37: uint16(31923), + 38: uint16(31925), + 39: uint16(32147), + 40: uint16(32121), + 41: uint16(32145), + 42: uint16(32129), + 43: uint16(32143), + 44: uint16(32091), + 45: uint16(32622), + 46: uint16(32617), + 47: uint16(32618), + 48: uint16(32626), + 49: uint16(32681), + 50: uint16(32680), + 51: uint16(32676), + 52: uint16(32854), + 53: uint16(32856), + 54: uint16(32902), + 55: uint16(32900), + 56: uint16(33137), + 57: uint16(33136), + 58: uint16(33144), + 59: uint16(33125), + 60: uint16(33134), + 61: uint16(33139), + 62: uint16(33131), + 63: uint16(33145), + 64: uint16(33146), + 65: uint16(33126), + 66: uint16(33285), + 67: uint16(33351), + 68: uint16(33922), + 69: uint16(33911), + 70: uint16(33853), + 71: uint16(33841), + 72: uint16(33909), + 73: uint16(33894), + 74: uint16(33899), + 75: uint16(33865), + 76: uint16(33900), + 77: uint16(33883), + 78: uint16(33852), + 79: uint16(33845), + 80: uint16(33889), + 81: uint16(33891), + 82: uint16(33897), + 83: uint16(33901), + 84: uint16(33862), + 85: uint16(34398), + 86: uint16(34396), + 87: uint16(34399), + 88: uint16(34553), + 89: uint16(34579), + 90: uint16(34568), + 91: uint16(34567), + 92: uint16(34560), + 93: uint16(34558), + 94: uint16(34555), + 95: uint16(34562), + 96: uint16(34563), + 97: uint16(34566), + 98: uint16(34570), + 99: uint16(34905), + 100: uint16(35039), + 101: uint16(35028), + 102: uint16(35033), + 103: uint16(35036), + 104: uint16(35032), + 105: uint16(35037), + 106: uint16(35041), + 107: uint16(35018), + 108: uint16(35029), + 109: uint16(35026), + 110: uint16(35228), + 111: uint16(35299), + 112: uint16(35435), + 113: uint16(35442), + 114: uint16(35443), + 115: uint16(35430), + 116: uint16(35433), + 117: uint16(35440), + 118: uint16(35463), + 119: uint16(35452), + 120: uint16(35427), + 121: uint16(35488), + 122: uint16(35441), + 123: uint16(35461), + 124: uint16(35437), + 125: uint16(35426), + 126: uint16(35438), + 127: uint16(35436), + 128: uint16(35449), + 129: uint16(35451), + 130: uint16(35390), + 131: uint16(35432), + 132: uint16(35938), + 133: uint16(35978), + 134: uint16(35977), + 135: uint16(36042), + 136: uint16(36039), + 137: uint16(36040), + 138: uint16(36036), + 139: uint16(36018), + 140: uint16(36035), + 141: uint16(36034), + 142: uint16(36037), + 143: uint16(36321), + 144: uint16(36319), + 145: uint16(36328), + 146: uint16(36335), + 147: uint16(36339), + 148: uint16(36346), + 149: uint16(36330), + 150: uint16(36324), + 151: uint16(36326), + 152: uint16(36530), + 153: uint16(36611), + 154: uint16(36617), + 155: uint16(36606), + 156: uint16(36618), + }, + 24: { + 0: uint16(36767), + 1: uint16(36786), + 2: uint16(36939), + 3: uint16(36938), + 4: uint16(36947), + 5: uint16(36930), + 6: uint16(36948), + 7: uint16(36924), + 8: uint16(36949), + 9: uint16(36944), + 10: uint16(36935), + 11: uint16(36943), + 12: uint16(36942), + 13: uint16(36941), + 14: uint16(36945), + 15: uint16(36926), + 16: uint16(36929), + 17: uint16(37138), + 18: uint16(37143), + 19: uint16(37228), + 20: uint16(37226), + 21: uint16(37225), + 22: uint16(37321), + 23: uint16(37431), + 24: uint16(37463), + 25: uint16(37432), + 26: uint16(37437), + 27: uint16(37440), + 28: uint16(37438), + 29: uint16(37467), + 30: uint16(37451), + 31: uint16(37476), + 32: uint16(37457), + 33: uint16(37428), + 34: uint16(37449), + 35: uint16(37453), + 36: uint16(37445), + 37: uint16(37433), + 38: uint16(37439), + 39: uint16(37466), + 40: uint16(38296), + 41: uint16(38552), + 42: uint16(38548), + 43: uint16(38549), + 44: uint16(38605), + 45: uint16(38603), + 46: uint16(38601), + 47: uint16(38602), + 48: uint16(38647), + 49: uint16(38651), + 50: uint16(38649), + 51: uint16(38646), + 52: uint16(38742), + 53: uint16(38772), + 54: uint16(38774), + 55: uint16(38928), + 56: uint16(38929), + 57: uint16(38931), + 58: uint16(38922), + 59: uint16(38930), + 60: uint16(38924), + 61: uint16(39164), + 62: uint16(39156), + 63: uint16(39165), + 64: uint16(39166), + 65: uint16(39347), + 66: uint16(39345), + 67: uint16(39348), + 68: uint16(39649), + 69: uint16(40169), + 70: uint16(40578), + 71: uint16(40718), + 72: uint16(40723), + 73: uint16(40736), + 74: uint16(20711), + 75: uint16(20718), + 76: uint16(20709), + 77: uint16(20694), + 78: uint16(20717), + 79: uint16(20698), + 80: uint16(20693), + 81: uint16(20687), + 82: uint16(20689), + 83: uint16(20721), + 84: uint16(20686), + 85: uint16(20713), + 86: uint16(20834), + 87: uint16(20979), + 88: uint16(21123), + 89: uint16(21122), + 90: uint16(21297), + 91: uint16(21421), + 92: uint16(22014), + 93: uint16(22016), + 94: uint16(22043), + 95: uint16(22039), + 96: uint16(22013), + 97: uint16(22036), + 98: uint16(22022), + 99: uint16(22025), + 100: uint16(22029), + 101: uint16(22030), + 102: uint16(22007), + 103: uint16(22038), + 104: uint16(22047), + 105: uint16(22024), + 106: uint16(22032), + 107: uint16(22006), + 108: uint16(22296), + 109: uint16(22294), + 110: uint16(22645), + 111: uint16(22654), + 112: uint16(22659), + 113: uint16(22675), + 114: uint16(22666), + 115: uint16(22649), + 116: uint16(22661), + 117: uint16(22653), + 118: uint16(22781), + 119: uint16(22821), + 120: uint16(22818), + 121: uint16(22820), + 122: uint16(22890), + 123: uint16(22889), + 124: uint16(23265), + 125: uint16(23270), + 126: uint16(23273), + 127: uint16(23255), + 128: uint16(23254), + 129: uint16(23256), + 130: uint16(23267), + 131: uint16(23413), + 132: uint16(23518), + 133: uint16(23527), + 134: uint16(23521), + 135: uint16(23525), + 136: uint16(23526), + 137: uint16(23528), + 138: uint16(23522), + 139: uint16(23524), + 140: uint16(23519), + 141: uint16(23565), + 142: uint16(23650), + 143: uint16(23940), + 144: uint16(23943), + 145: uint16(24155), + 146: uint16(24163), + 147: uint16(24149), + 148: uint16(24151), + 149: uint16(24148), + 150: uint16(24275), + 151: uint16(24278), + 152: uint16(24330), + 153: uint16(24390), + 154: uint16(24432), + 155: uint16(24505), + 156: uint16(24903), + }, + 25: { + 0: uint16(24895), + 1: uint16(24907), + 2: uint16(24951), + 3: uint16(24930), + 4: uint16(24931), + 5: uint16(24927), + 6: uint16(24922), + 7: uint16(24920), + 8: uint16(24949), + 9: uint16(25130), + 10: uint16(25735), + 11: uint16(25688), + 12: uint16(25684), + 13: uint16(25764), + 14: uint16(25720), + 15: uint16(25695), + 16: uint16(25722), + 17: uint16(25681), + 18: uint16(25703), + 19: uint16(25652), + 20: uint16(25709), + 21: uint16(25723), + 22: uint16(25970), + 23: uint16(26017), + 24: uint16(26071), + 25: uint16(26070), + 26: uint16(26274), + 27: uint16(26280), + 28: uint16(26269), + 29: uint16(27036), + 30: uint16(27048), + 31: uint16(27029), + 32: uint16(27073), + 33: uint16(27054), + 34: uint16(27091), + 35: uint16(27083), + 36: uint16(27035), + 37: uint16(27063), + 38: uint16(27067), + 39: uint16(27051), + 40: uint16(27060), + 41: uint16(27088), + 42: uint16(27085), + 43: uint16(27053), + 44: uint16(27084), + 45: uint16(27046), + 46: uint16(27075), + 47: uint16(27043), + 48: uint16(27465), + 49: uint16(27468), + 50: uint16(27699), + 51: uint16(28467), + 52: uint16(28436), + 53: uint16(28414), + 54: uint16(28435), + 55: uint16(28404), + 56: uint16(28457), + 57: uint16(28478), + 58: uint16(28448), + 59: uint16(28460), + 60: uint16(28431), + 61: uint16(28418), + 62: uint16(28450), + 63: uint16(28415), + 64: uint16(28399), + 65: uint16(28422), + 66: uint16(28465), + 67: uint16(28472), + 68: uint16(28466), + 69: uint16(28451), + 70: uint16(28437), + 71: uint16(28459), + 72: uint16(28463), + 73: uint16(28552), + 74: uint16(28458), + 75: uint16(28396), + 76: uint16(28417), + 77: uint16(28402), + 78: uint16(28364), + 79: uint16(28407), + 80: uint16(29076), + 81: uint16(29081), + 82: uint16(29053), + 83: uint16(29066), + 84: uint16(29060), + 85: uint16(29074), + 86: uint16(29246), + 87: uint16(29330), + 88: uint16(29334), + 89: uint16(29508), + 90: uint16(29520), + 91: uint16(29796), + 92: uint16(29795), + 93: uint16(29802), + 94: uint16(29808), + 95: uint16(29805), + 96: uint16(29956), + 97: uint16(30097), + 98: uint16(30247), + 99: uint16(30221), + 100: uint16(30219), + 101: uint16(30217), + 102: uint16(30227), + 103: uint16(30433), + 104: uint16(30435), + 105: uint16(30596), + 106: uint16(30589), + 107: uint16(30591), + 108: uint16(30561), + 109: uint16(30913), + 110: uint16(30879), + 111: uint16(30887), + 112: uint16(30899), + 113: uint16(30889), + 114: uint16(30883), + 115: uint16(31118), + 116: uint16(31119), + 117: uint16(31117), + 118: uint16(31278), + 119: uint16(31281), + 120: uint16(31402), + 121: uint16(31401), + 122: uint16(31469), + 123: uint16(31471), + 124: uint16(31649), + 125: uint16(31637), + 126: uint16(31627), + 127: uint16(31605), + 128: uint16(31639), + 129: uint16(31645), + 130: uint16(31636), + 131: uint16(31631), + 132: uint16(31672), + 133: uint16(31623), + 134: uint16(31620), + 135: uint16(31929), + 136: uint16(31933), + 137: uint16(31934), + 138: uint16(32187), + 139: uint16(32176), + 140: uint16(32156), + 141: uint16(32189), + 142: uint16(32190), + 143: uint16(32160), + 144: uint16(32202), + 145: uint16(32180), + 146: uint16(32178), + 147: uint16(32177), + 148: uint16(32186), + 149: uint16(32162), + 150: uint16(32191), + 151: uint16(32181), + 152: uint16(32184), + 153: uint16(32173), + 154: uint16(32210), + 155: uint16(32199), + 156: uint16(32172), + }, + 26: { + 0: uint16(32624), + 1: uint16(32736), + 2: uint16(32737), + 3: uint16(32735), + 4: uint16(32862), + 5: uint16(32858), + 6: uint16(32903), + 7: uint16(33104), + 8: uint16(33152), + 9: uint16(33167), + 10: uint16(33160), + 11: uint16(33162), + 12: uint16(33151), + 13: uint16(33154), + 14: uint16(33255), + 15: uint16(33274), + 16: uint16(33287), + 17: uint16(33300), + 18: uint16(33310), + 19: uint16(33355), + 20: uint16(33993), + 21: uint16(33983), + 22: uint16(33990), + 23: uint16(33988), + 24: uint16(33945), + 25: uint16(33950), + 26: uint16(33970), + 27: uint16(33948), + 28: uint16(33995), + 29: uint16(33976), + 30: uint16(33984), + 31: uint16(34003), + 32: uint16(33936), + 33: uint16(33980), + 34: uint16(34001), + 35: uint16(33994), + 36: uint16(34623), + 37: uint16(34588), + 38: uint16(34619), + 39: uint16(34594), + 40: uint16(34597), + 41: uint16(34612), + 42: uint16(34584), + 43: uint16(34645), + 44: uint16(34615), + 45: uint16(34601), + 46: uint16(35059), + 47: uint16(35074), + 48: uint16(35060), + 49: uint16(35065), + 50: uint16(35064), + 51: uint16(35069), + 52: uint16(35048), + 53: uint16(35098), + 54: uint16(35055), + 55: uint16(35494), + 56: uint16(35468), + 57: uint16(35486), + 58: uint16(35491), + 59: uint16(35469), + 60: uint16(35489), + 61: uint16(35475), + 62: uint16(35492), + 63: uint16(35498), + 64: uint16(35493), + 65: uint16(35496), + 66: uint16(35480), + 67: uint16(35473), + 68: uint16(35482), + 69: uint16(35495), + 70: uint16(35946), + 71: uint16(35981), + 72: uint16(35980), + 73: uint16(36051), + 74: uint16(36049), + 75: uint16(36050), + 76: uint16(36203), + 77: uint16(36249), + 78: uint16(36245), + 79: uint16(36348), + 80: uint16(36628), + 81: uint16(36626), + 82: uint16(36629), + 83: uint16(36627), + 84: uint16(36771), + 85: uint16(36960), + 86: uint16(36952), + 87: uint16(36956), + 88: uint16(36963), + 89: uint16(36953), + 90: uint16(36958), + 91: uint16(36962), + 92: uint16(36957), + 93: uint16(36955), + 94: uint16(37145), + 95: uint16(37144), + 96: uint16(37150), + 97: uint16(37237), + 98: uint16(37240), + 99: uint16(37239), + 100: uint16(37236), + 101: uint16(37496), + 102: uint16(37504), + 103: uint16(37509), + 104: uint16(37528), + 105: uint16(37526), + 106: uint16(37499), + 107: uint16(37523), + 108: uint16(37532), + 109: uint16(37544), + 110: uint16(37500), + 111: uint16(37521), + 112: uint16(38305), + 113: uint16(38312), + 114: uint16(38313), + 115: uint16(38307), + 116: uint16(38309), + 117: uint16(38308), + 118: uint16(38553), + 119: uint16(38556), + 120: uint16(38555), + 121: uint16(38604), + 122: uint16(38610), + 123: uint16(38656), + 124: uint16(38780), + 125: uint16(38789), + 126: uint16(38902), + 127: uint16(38935), + 128: uint16(38936), + 129: uint16(39087), + 130: uint16(39089), + 131: uint16(39171), + 132: uint16(39173), + 133: uint16(39180), + 134: uint16(39177), + 135: uint16(39361), + 136: uint16(39599), + 137: uint16(39600), + 138: uint16(39654), + 139: uint16(39745), + 140: uint16(39746), + 141: uint16(40180), + 142: uint16(40182), + 143: uint16(40179), + 144: uint16(40636), + 145: uint16(40763), + 146: uint16(40778), + 147: uint16(20740), + 148: uint16(20736), + 149: uint16(20731), + 150: uint16(20725), + 151: uint16(20729), + 152: uint16(20738), + 153: uint16(20744), + 154: uint16(20745), + 155: uint16(20741), + 156: uint16(20956), + }, + 27: { + 0: uint16(21127), + 1: uint16(21128), + 2: uint16(21129), + 3: uint16(21133), + 4: uint16(21130), + 5: uint16(21232), + 6: uint16(21426), + 7: uint16(22062), + 8: uint16(22075), + 9: uint16(22073), + 10: uint16(22066), + 11: uint16(22079), + 12: uint16(22068), + 13: uint16(22057), + 14: uint16(22099), + 15: uint16(22094), + 16: uint16(22103), + 17: uint16(22132), + 18: uint16(22070), + 19: uint16(22063), + 20: uint16(22064), + 21: uint16(22656), + 22: uint16(22687), + 23: uint16(22686), + 24: uint16(22707), + 25: uint16(22684), + 26: uint16(22702), + 27: uint16(22697), + 28: uint16(22694), + 29: uint16(22893), + 30: uint16(23305), + 31: uint16(23291), + 32: uint16(23307), + 33: uint16(23285), + 34: uint16(23308), + 35: uint16(23304), + 36: uint16(23534), + 37: uint16(23532), + 38: uint16(23529), + 39: uint16(23531), + 40: uint16(23652), + 41: uint16(23653), + 42: uint16(23965), + 43: uint16(23956), + 44: uint16(24162), + 45: uint16(24159), + 46: uint16(24161), + 47: uint16(24290), + 48: uint16(24282), + 49: uint16(24287), + 50: uint16(24285), + 51: uint16(24291), + 52: uint16(24288), + 53: uint16(24392), + 54: uint16(24433), + 55: uint16(24503), + 56: uint16(24501), + 57: uint16(24950), + 58: uint16(24935), + 59: uint16(24942), + 60: uint16(24925), + 61: uint16(24917), + 62: uint16(24962), + 63: uint16(24956), + 64: uint16(24944), + 65: uint16(24939), + 66: uint16(24958), + 67: uint16(24999), + 68: uint16(24976), + 69: uint16(25003), + 70: uint16(24974), + 71: uint16(25004), + 72: uint16(24986), + 73: uint16(24996), + 74: uint16(24980), + 75: uint16(25006), + 76: uint16(25134), + 77: uint16(25705), + 78: uint16(25711), + 79: uint16(25721), + 80: uint16(25758), + 81: uint16(25778), + 82: uint16(25736), + 83: uint16(25744), + 84: uint16(25776), + 85: uint16(25765), + 86: uint16(25747), + 87: uint16(25749), + 88: uint16(25769), + 89: uint16(25746), + 90: uint16(25774), + 91: uint16(25773), + 92: uint16(25771), + 93: uint16(25754), + 94: uint16(25772), + 95: uint16(25753), + 96: uint16(25762), + 97: uint16(25779), + 98: uint16(25973), + 99: uint16(25975), + 100: uint16(25976), + 101: uint16(26286), + 102: uint16(26283), + 103: uint16(26292), + 104: uint16(26289), + 105: uint16(27171), + 106: uint16(27167), + 107: uint16(27112), + 108: uint16(27137), + 109: uint16(27166), + 110: uint16(27161), + 111: uint16(27133), + 112: uint16(27169), + 113: uint16(27155), + 114: uint16(27146), + 115: uint16(27123), + 116: uint16(27138), + 117: uint16(27141), + 118: uint16(27117), + 119: uint16(27153), + 120: uint16(27472), + 121: uint16(27470), + 122: uint16(27556), + 123: uint16(27589), + 124: uint16(27590), + 125: uint16(28479), + 126: uint16(28540), + 127: uint16(28548), + 128: uint16(28497), + 129: uint16(28518), + 130: uint16(28500), + 131: uint16(28550), + 132: uint16(28525), + 133: uint16(28507), + 134: uint16(28536), + 135: uint16(28526), + 136: uint16(28558), + 137: uint16(28538), + 138: uint16(28528), + 139: uint16(28516), + 140: uint16(28567), + 141: uint16(28504), + 142: uint16(28373), + 143: uint16(28527), + 144: uint16(28512), + 145: uint16(28511), + 146: uint16(29087), + 147: uint16(29100), + 148: uint16(29105), + 149: uint16(29096), + 150: uint16(29270), + 151: uint16(29339), + 152: uint16(29518), + 153: uint16(29527), + 154: uint16(29801), + 155: uint16(29835), + 156: uint16(29827), + }, + 28: { + 0: uint16(29822), + 1: uint16(29824), + 2: uint16(30079), + 3: uint16(30240), + 4: uint16(30249), + 5: uint16(30239), + 6: uint16(30244), + 7: uint16(30246), + 8: uint16(30241), + 9: uint16(30242), + 10: uint16(30362), + 11: uint16(30394), + 12: uint16(30436), + 13: uint16(30606), + 14: uint16(30599), + 15: uint16(30604), + 16: uint16(30609), + 17: uint16(30603), + 18: uint16(30923), + 19: uint16(30917), + 20: uint16(30906), + 21: uint16(30922), + 22: uint16(30910), + 23: uint16(30933), + 24: uint16(30908), + 25: uint16(30928), + 26: uint16(31295), + 27: uint16(31292), + 28: uint16(31296), + 29: uint16(31293), + 30: uint16(31287), + 31: uint16(31291), + 32: uint16(31407), + 33: uint16(31406), + 34: uint16(31661), + 35: uint16(31665), + 36: uint16(31684), + 37: uint16(31668), + 38: uint16(31686), + 39: uint16(31687), + 40: uint16(31681), + 41: uint16(31648), + 42: uint16(31692), + 43: uint16(31946), + 44: uint16(32224), + 45: uint16(32244), + 46: uint16(32239), + 47: uint16(32251), + 48: uint16(32216), + 49: uint16(32236), + 50: uint16(32221), + 51: uint16(32232), + 52: uint16(32227), + 53: uint16(32218), + 54: uint16(32222), + 55: uint16(32233), + 56: uint16(32158), + 57: uint16(32217), + 58: uint16(32242), + 59: uint16(32249), + 60: uint16(32629), + 61: uint16(32631), + 62: uint16(32687), + 63: uint16(32745), + 64: uint16(32806), + 65: uint16(33179), + 66: uint16(33180), + 67: uint16(33181), + 68: uint16(33184), + 69: uint16(33178), + 70: uint16(33176), + 71: uint16(34071), + 72: uint16(34109), + 73: uint16(34074), + 74: uint16(34030), + 75: uint16(34092), + 76: uint16(34093), + 77: uint16(34067), + 78: uint16(34065), + 79: uint16(34083), + 80: uint16(34081), + 81: uint16(34068), + 82: uint16(34028), + 83: uint16(34085), + 84: uint16(34047), + 85: uint16(34054), + 86: uint16(34690), + 87: uint16(34676), + 88: uint16(34678), + 89: uint16(34656), + 90: uint16(34662), + 91: uint16(34680), + 92: uint16(34664), + 93: uint16(34649), + 94: uint16(34647), + 95: uint16(34636), + 96: uint16(34643), + 97: uint16(34907), + 98: uint16(34909), + 99: uint16(35088), + 100: uint16(35079), + 101: uint16(35090), + 102: uint16(35091), + 103: uint16(35093), + 104: uint16(35082), + 105: uint16(35516), + 106: uint16(35538), + 107: uint16(35527), + 108: uint16(35524), + 109: uint16(35477), + 110: uint16(35531), + 111: uint16(35576), + 112: uint16(35506), + 113: uint16(35529), + 114: uint16(35522), + 115: uint16(35519), + 116: uint16(35504), + 117: uint16(35542), + 118: uint16(35533), + 119: uint16(35510), + 120: uint16(35513), + 121: uint16(35547), + 122: uint16(35916), + 123: uint16(35918), + 124: uint16(35948), + 125: uint16(36064), + 126: uint16(36062), + 127: uint16(36070), + 128: uint16(36068), + 129: uint16(36076), + 130: uint16(36077), + 131: uint16(36066), + 132: uint16(36067), + 133: uint16(36060), + 134: uint16(36074), + 135: uint16(36065), + 136: uint16(36205), + 137: uint16(36255), + 138: uint16(36259), + 139: uint16(36395), + 140: uint16(36368), + 141: uint16(36381), + 142: uint16(36386), + 143: uint16(36367), + 144: uint16(36393), + 145: uint16(36383), + 146: uint16(36385), + 147: uint16(36382), + 148: uint16(36538), + 149: uint16(36637), + 150: uint16(36635), + 151: uint16(36639), + 152: uint16(36649), + 153: uint16(36646), + 154: uint16(36650), + 155: uint16(36636), + 156: uint16(36638), + }, + 29: { + 0: uint16(36645), + 1: uint16(36969), + 2: uint16(36974), + 3: uint16(36968), + 4: uint16(36973), + 5: uint16(36983), + 6: uint16(37168), + 7: uint16(37165), + 8: uint16(37159), + 9: uint16(37169), + 10: uint16(37255), + 11: uint16(37257), + 12: uint16(37259), + 13: uint16(37251), + 14: uint16(37573), + 15: uint16(37563), + 16: uint16(37559), + 17: uint16(37610), + 18: uint16(37548), + 19: uint16(37604), + 20: uint16(37569), + 21: uint16(37555), + 22: uint16(37564), + 23: uint16(37586), + 24: uint16(37575), + 25: uint16(37616), + 26: uint16(37554), + 27: uint16(38317), + 28: uint16(38321), + 29: uint16(38660), + 30: uint16(38662), + 31: uint16(38663), + 32: uint16(38665), + 33: uint16(38752), + 34: uint16(38797), + 35: uint16(38795), + 36: uint16(38799), + 37: uint16(38945), + 38: uint16(38955), + 39: uint16(38940), + 40: uint16(39091), + 41: uint16(39178), + 42: uint16(39187), + 43: uint16(39186), + 44: uint16(39192), + 45: uint16(39389), + 46: uint16(39376), + 47: uint16(39391), + 48: uint16(39387), + 49: uint16(39377), + 50: uint16(39381), + 51: uint16(39378), + 52: uint16(39385), + 53: uint16(39607), + 54: uint16(39662), + 55: uint16(39663), + 56: uint16(39719), + 57: uint16(39749), + 58: uint16(39748), + 59: uint16(39799), + 60: uint16(39791), + 61: uint16(40198), + 62: uint16(40201), + 63: uint16(40195), + 64: uint16(40617), + 65: uint16(40638), + 66: uint16(40654), + 67: uint16(22696), + 68: uint16(40786), + 69: uint16(20754), + 70: uint16(20760), + 71: uint16(20756), + 72: uint16(20752), + 73: uint16(20757), + 74: uint16(20864), + 75: uint16(20906), + 76: uint16(20957), + 77: uint16(21137), + 78: uint16(21139), + 79: uint16(21235), + 80: uint16(22105), + 81: uint16(22123), + 82: uint16(22137), + 83: uint16(22121), + 84: uint16(22116), + 85: uint16(22136), + 86: uint16(22122), + 87: uint16(22120), + 88: uint16(22117), + 89: uint16(22129), + 90: uint16(22127), + 91: uint16(22124), + 92: uint16(22114), + 93: uint16(22134), + 94: uint16(22721), + 95: uint16(22718), + 96: uint16(22727), + 97: uint16(22725), + 98: uint16(22894), + 99: uint16(23325), + 100: uint16(23348), + 101: uint16(23416), + 102: uint16(23536), + 103: uint16(23566), + 104: uint16(24394), + 105: uint16(25010), + 106: uint16(24977), + 107: uint16(25001), + 108: uint16(24970), + 109: uint16(25037), + 110: uint16(25014), + 111: uint16(25022), + 112: uint16(25034), + 113: uint16(25032), + 114: uint16(25136), + 115: uint16(25797), + 116: uint16(25793), + 117: uint16(25803), + 118: uint16(25787), + 119: uint16(25788), + 120: uint16(25818), + 121: uint16(25796), + 122: uint16(25799), + 123: uint16(25794), + 124: uint16(25805), + 125: uint16(25791), + 126: uint16(25810), + 127: uint16(25812), + 128: uint16(25790), + 129: uint16(25972), + 130: uint16(26310), + 131: uint16(26313), + 132: uint16(26297), + 133: uint16(26308), + 134: uint16(26311), + 135: uint16(26296), + 136: uint16(27197), + 137: uint16(27192), + 138: uint16(27194), + 139: uint16(27225), + 140: uint16(27243), + 141: uint16(27224), + 142: uint16(27193), + 143: uint16(27204), + 144: uint16(27234), + 145: uint16(27233), + 146: uint16(27211), + 147: uint16(27207), + 148: uint16(27189), + 149: uint16(27231), + 150: uint16(27208), + 151: uint16(27481), + 152: uint16(27511), + 153: uint16(27653), + 154: uint16(28610), + 155: uint16(28593), + 156: uint16(28577), + }, + 30: { + 0: uint16(28611), + 1: uint16(28580), + 2: uint16(28609), + 3: uint16(28583), + 4: uint16(28595), + 5: uint16(28608), + 6: uint16(28601), + 7: uint16(28598), + 8: uint16(28582), + 9: uint16(28576), + 10: uint16(28596), + 11: uint16(29118), + 12: uint16(29129), + 13: uint16(29136), + 14: uint16(29138), + 15: uint16(29128), + 16: uint16(29141), + 17: uint16(29113), + 18: uint16(29134), + 19: uint16(29145), + 20: uint16(29148), + 21: uint16(29123), + 22: uint16(29124), + 23: uint16(29544), + 24: uint16(29852), + 25: uint16(29859), + 26: uint16(29848), + 27: uint16(29855), + 28: uint16(29854), + 29: uint16(29922), + 30: uint16(29964), + 31: uint16(29965), + 32: uint16(30260), + 33: uint16(30264), + 34: uint16(30266), + 35: uint16(30439), + 36: uint16(30437), + 37: uint16(30624), + 38: uint16(30622), + 39: uint16(30623), + 40: uint16(30629), + 41: uint16(30952), + 42: uint16(30938), + 43: uint16(30956), + 44: uint16(30951), + 45: uint16(31142), + 46: uint16(31309), + 47: uint16(31310), + 48: uint16(31302), + 49: uint16(31308), + 50: uint16(31307), + 51: uint16(31418), + 52: uint16(31705), + 53: uint16(31761), + 54: uint16(31689), + 55: uint16(31716), + 56: uint16(31707), + 57: uint16(31713), + 58: uint16(31721), + 59: uint16(31718), + 60: uint16(31957), + 61: uint16(31958), + 62: uint16(32266), + 63: uint16(32273), + 64: uint16(32264), + 65: uint16(32283), + 66: uint16(32291), + 67: uint16(32286), + 68: uint16(32285), + 69: uint16(32265), + 70: uint16(32272), + 71: uint16(32633), + 72: uint16(32690), + 73: uint16(32752), + 74: uint16(32753), + 75: uint16(32750), + 76: uint16(32808), + 77: uint16(33203), + 78: uint16(33193), + 79: uint16(33192), + 80: uint16(33275), + 81: uint16(33288), + 82: uint16(33368), + 83: uint16(33369), + 84: uint16(34122), + 85: uint16(34137), + 86: uint16(34120), + 87: uint16(34152), + 88: uint16(34153), + 89: uint16(34115), + 90: uint16(34121), + 91: uint16(34157), + 92: uint16(34154), + 93: uint16(34142), + 94: uint16(34691), + 95: uint16(34719), + 96: uint16(34718), + 97: uint16(34722), + 98: uint16(34701), + 99: uint16(34913), + 100: uint16(35114), + 101: uint16(35122), + 102: uint16(35109), + 103: uint16(35115), + 104: uint16(35105), + 105: uint16(35242), + 106: uint16(35238), + 107: uint16(35558), + 108: uint16(35578), + 109: uint16(35563), + 110: uint16(35569), + 111: uint16(35584), + 112: uint16(35548), + 113: uint16(35559), + 114: uint16(35566), + 115: uint16(35582), + 116: uint16(35585), + 117: uint16(35586), + 118: uint16(35575), + 119: uint16(35565), + 120: uint16(35571), + 121: uint16(35574), + 122: uint16(35580), + 123: uint16(35947), + 124: uint16(35949), + 125: uint16(35987), + 126: uint16(36084), + 127: uint16(36420), + 128: uint16(36401), + 129: uint16(36404), + 130: uint16(36418), + 131: uint16(36409), + 132: uint16(36405), + 133: uint16(36667), + 134: uint16(36655), + 135: uint16(36664), + 136: uint16(36659), + 137: uint16(36776), + 138: uint16(36774), + 139: uint16(36981), + 140: uint16(36980), + 141: uint16(36984), + 142: uint16(36978), + 143: uint16(36988), + 144: uint16(36986), + 145: uint16(37172), + 146: uint16(37266), + 147: uint16(37664), + 148: uint16(37686), + 149: uint16(37624), + 150: uint16(37683), + 151: uint16(37679), + 152: uint16(37666), + 153: uint16(37628), + 154: uint16(37675), + 155: uint16(37636), + 156: uint16(37658), + }, + 31: { + 0: uint16(37648), + 1: uint16(37670), + 2: uint16(37665), + 3: uint16(37653), + 4: uint16(37678), + 5: uint16(37657), + 6: uint16(38331), + 7: uint16(38567), + 8: uint16(38568), + 9: uint16(38570), + 10: uint16(38613), + 11: uint16(38670), + 12: uint16(38673), + 13: uint16(38678), + 14: uint16(38669), + 15: uint16(38675), + 16: uint16(38671), + 17: uint16(38747), + 18: uint16(38748), + 19: uint16(38758), + 20: uint16(38808), + 21: uint16(38960), + 22: uint16(38968), + 23: uint16(38971), + 24: uint16(38967), + 25: uint16(38957), + 26: uint16(38969), + 27: uint16(38948), + 28: uint16(39184), + 29: uint16(39208), + 30: uint16(39198), + 31: uint16(39195), + 32: uint16(39201), + 33: uint16(39194), + 34: uint16(39405), + 35: uint16(39394), + 36: uint16(39409), + 37: uint16(39608), + 38: uint16(39612), + 39: uint16(39675), + 40: uint16(39661), + 41: uint16(39720), + 42: uint16(39825), + 43: uint16(40213), + 44: uint16(40227), + 45: uint16(40230), + 46: uint16(40232), + 47: uint16(40210), + 48: uint16(40219), + 49: uint16(40664), + 50: uint16(40660), + 51: uint16(40845), + 52: uint16(40860), + 53: uint16(20778), + 54: uint16(20767), + 55: uint16(20769), + 56: uint16(20786), + 57: uint16(21237), + 58: uint16(22158), + 59: uint16(22144), + 60: uint16(22160), + 61: uint16(22149), + 62: uint16(22151), + 63: uint16(22159), + 64: uint16(22741), + 65: uint16(22739), + 66: uint16(22737), + 67: uint16(22734), + 68: uint16(23344), + 69: uint16(23338), + 70: uint16(23332), + 71: uint16(23418), + 72: uint16(23607), + 73: uint16(23656), + 74: uint16(23996), + 75: uint16(23994), + 76: uint16(23997), + 77: uint16(23992), + 78: uint16(24171), + 79: uint16(24396), + 80: uint16(24509), + 81: uint16(25033), + 82: uint16(25026), + 83: uint16(25031), + 84: uint16(25062), + 85: uint16(25035), + 86: uint16(25138), + 87: uint16(25140), + 88: uint16(25806), + 89: uint16(25802), + 90: uint16(25816), + 91: uint16(25824), + 92: uint16(25840), + 93: uint16(25830), + 94: uint16(25836), + 95: uint16(25841), + 96: uint16(25826), + 97: uint16(25837), + 98: uint16(25986), + 99: uint16(25987), + 100: uint16(26329), + 101: uint16(26326), + 102: uint16(27264), + 103: uint16(27284), + 104: uint16(27268), + 105: uint16(27298), + 106: uint16(27292), + 107: uint16(27355), + 108: uint16(27299), + 109: uint16(27262), + 110: uint16(27287), + 111: uint16(27280), + 112: uint16(27296), + 113: uint16(27484), + 114: uint16(27566), + 115: uint16(27610), + 116: uint16(27656), + 117: uint16(28632), + 118: uint16(28657), + 119: uint16(28639), + 120: uint16(28640), + 121: uint16(28635), + 122: uint16(28644), + 123: uint16(28651), + 124: uint16(28655), + 125: uint16(28544), + 126: uint16(28652), + 127: uint16(28641), + 128: uint16(28649), + 129: uint16(28629), + 130: uint16(28654), + 131: uint16(28656), + 132: uint16(29159), + 133: uint16(29151), + 134: uint16(29166), + 135: uint16(29158), + 136: uint16(29157), + 137: uint16(29165), + 138: uint16(29164), + 139: uint16(29172), + 140: uint16(29152), + 141: uint16(29237), + 142: uint16(29254), + 143: uint16(29552), + 144: uint16(29554), + 145: uint16(29865), + 146: uint16(29872), + 147: uint16(29862), + 148: uint16(29864), + 149: uint16(30278), + 150: uint16(30274), + 151: uint16(30284), + 152: uint16(30442), + 153: uint16(30643), + 154: uint16(30634), + 155: uint16(30640), + 156: uint16(30636), + }, + 32: { + 0: uint16(30631), + 1: uint16(30637), + 2: uint16(30703), + 3: uint16(30967), + 4: uint16(30970), + 5: uint16(30964), + 6: uint16(30959), + 7: uint16(30977), + 8: uint16(31143), + 9: uint16(31146), + 10: uint16(31319), + 11: uint16(31423), + 12: uint16(31751), + 13: uint16(31757), + 14: uint16(31742), + 15: uint16(31735), + 16: uint16(31756), + 17: uint16(31712), + 18: uint16(31968), + 19: uint16(31964), + 20: uint16(31966), + 21: uint16(31970), + 22: uint16(31967), + 23: uint16(31961), + 24: uint16(31965), + 25: uint16(32302), + 26: uint16(32318), + 27: uint16(32326), + 28: uint16(32311), + 29: uint16(32306), + 30: uint16(32323), + 31: uint16(32299), + 32: uint16(32317), + 33: uint16(32305), + 34: uint16(32325), + 35: uint16(32321), + 36: uint16(32308), + 37: uint16(32313), + 38: uint16(32328), + 39: uint16(32309), + 40: uint16(32319), + 41: uint16(32303), + 42: uint16(32580), + 43: uint16(32755), + 44: uint16(32764), + 45: uint16(32881), + 46: uint16(32882), + 47: uint16(32880), + 48: uint16(32879), + 49: uint16(32883), + 50: uint16(33222), + 51: uint16(33219), + 52: uint16(33210), + 53: uint16(33218), + 54: uint16(33216), + 55: uint16(33215), + 56: uint16(33213), + 57: uint16(33225), + 58: uint16(33214), + 59: uint16(33256), + 60: uint16(33289), + 61: uint16(33393), + 62: uint16(34218), + 63: uint16(34180), + 64: uint16(34174), + 65: uint16(34204), + 66: uint16(34193), + 67: uint16(34196), + 68: uint16(34223), + 69: uint16(34203), + 70: uint16(34183), + 71: uint16(34216), + 72: uint16(34186), + 73: uint16(34407), + 74: uint16(34752), + 75: uint16(34769), + 76: uint16(34739), + 77: uint16(34770), + 78: uint16(34758), + 79: uint16(34731), + 80: uint16(34747), + 81: uint16(34746), + 82: uint16(34760), + 83: uint16(34763), + 84: uint16(35131), + 85: uint16(35126), + 86: uint16(35140), + 87: uint16(35128), + 88: uint16(35133), + 89: uint16(35244), + 90: uint16(35598), + 91: uint16(35607), + 92: uint16(35609), + 93: uint16(35611), + 94: uint16(35594), + 95: uint16(35616), + 96: uint16(35613), + 97: uint16(35588), + 98: uint16(35600), + 99: uint16(35905), + 100: uint16(35903), + 101: uint16(35955), + 102: uint16(36090), + 103: uint16(36093), + 104: uint16(36092), + 105: uint16(36088), + 106: uint16(36091), + 107: uint16(36264), + 108: uint16(36425), + 109: uint16(36427), + 110: uint16(36424), + 111: uint16(36426), + 112: uint16(36676), + 113: uint16(36670), + 114: uint16(36674), + 115: uint16(36677), + 116: uint16(36671), + 117: uint16(36991), + 118: uint16(36989), + 119: uint16(36996), + 120: uint16(36993), + 121: uint16(36994), + 122: uint16(36992), + 123: uint16(37177), + 124: uint16(37283), + 125: uint16(37278), + 126: uint16(37276), + 127: uint16(37709), + 128: uint16(37762), + 129: uint16(37672), + 130: uint16(37749), + 131: uint16(37706), + 132: uint16(37733), + 133: uint16(37707), + 134: uint16(37656), + 135: uint16(37758), + 136: uint16(37740), + 137: uint16(37723), + 138: uint16(37744), + 139: uint16(37722), + 140: uint16(37716), + 141: uint16(38346), + 142: uint16(38347), + 143: uint16(38348), + 144: uint16(38344), + 145: uint16(38342), + 146: uint16(38577), + 147: uint16(38584), + 148: uint16(38614), + 149: uint16(38684), + 150: uint16(38686), + 151: uint16(38816), + 152: uint16(38867), + 153: uint16(38982), + 154: uint16(39094), + 155: uint16(39221), + 156: uint16(39425), + }, + 33: { + 0: uint16(39423), + 1: uint16(39854), + 2: uint16(39851), + 3: uint16(39850), + 4: uint16(39853), + 5: uint16(40251), + 6: uint16(40255), + 7: uint16(40587), + 8: uint16(40655), + 9: uint16(40670), + 10: uint16(40668), + 11: uint16(40669), + 12: uint16(40667), + 13: uint16(40766), + 14: uint16(40779), + 15: uint16(21474), + 16: uint16(22165), + 17: uint16(22190), + 18: uint16(22745), + 19: uint16(22744), + 20: uint16(23352), + 21: uint16(24413), + 22: uint16(25059), + 23: uint16(25139), + 24: uint16(25844), + 25: uint16(25842), + 26: uint16(25854), + 27: uint16(25862), + 28: uint16(25850), + 29: uint16(25851), + 30: uint16(25847), + 31: uint16(26039), + 32: uint16(26332), + 33: uint16(26406), + 34: uint16(27315), + 35: uint16(27308), + 36: uint16(27331), + 37: uint16(27323), + 38: uint16(27320), + 39: uint16(27330), + 40: uint16(27310), + 41: uint16(27311), + 42: uint16(27487), + 43: uint16(27512), + 44: uint16(27567), + 45: uint16(28681), + 46: uint16(28683), + 47: uint16(28670), + 48: uint16(28678), + 49: uint16(28666), + 50: uint16(28689), + 51: uint16(28687), + 52: uint16(29179), + 53: uint16(29180), + 54: uint16(29182), + 55: uint16(29176), + 56: uint16(29559), + 57: uint16(29557), + 58: uint16(29863), + 59: uint16(29887), + 60: uint16(29973), + 61: uint16(30294), + 62: uint16(30296), + 63: uint16(30290), + 64: uint16(30653), + 65: uint16(30655), + 66: uint16(30651), + 67: uint16(30652), + 68: uint16(30990), + 69: uint16(31150), + 70: uint16(31329), + 71: uint16(31330), + 72: uint16(31328), + 73: uint16(31428), + 74: uint16(31429), + 75: uint16(31787), + 76: uint16(31783), + 77: uint16(31786), + 78: uint16(31774), + 79: uint16(31779), + 80: uint16(31777), + 81: uint16(31975), + 82: uint16(32340), + 83: uint16(32341), + 84: uint16(32350), + 85: uint16(32346), + 86: uint16(32353), + 87: uint16(32338), + 88: uint16(32345), + 89: uint16(32584), + 90: uint16(32761), + 91: uint16(32763), + 92: uint16(32887), + 93: uint16(32886), + 94: uint16(33229), + 95: uint16(33231), + 96: uint16(33290), + 97: uint16(34255), + 98: uint16(34217), + 99: uint16(34253), + 100: uint16(34256), + 101: uint16(34249), + 102: uint16(34224), + 103: uint16(34234), + 104: uint16(34233), + 105: uint16(34214), + 106: uint16(34799), + 107: uint16(34796), + 108: uint16(34802), + 109: uint16(34784), + 110: uint16(35206), + 111: uint16(35250), + 112: uint16(35316), + 113: uint16(35624), + 114: uint16(35641), + 115: uint16(35628), + 116: uint16(35627), + 117: uint16(35920), + 118: uint16(36101), + 119: uint16(36441), + 120: uint16(36451), + 121: uint16(36454), + 122: uint16(36452), + 123: uint16(36447), + 124: uint16(36437), + 125: uint16(36544), + 126: uint16(36681), + 127: uint16(36685), + 128: uint16(36999), + 129: uint16(36995), + 130: uint16(37000), + 131: uint16(37291), + 132: uint16(37292), + 133: uint16(37328), + 134: uint16(37780), + 135: uint16(37770), + 136: uint16(37782), + 137: uint16(37794), + 138: uint16(37811), + 139: uint16(37806), + 140: uint16(37804), + 141: uint16(37808), + 142: uint16(37784), + 143: uint16(37786), + 144: uint16(37783), + 145: uint16(38356), + 146: uint16(38358), + 147: uint16(38352), + 148: uint16(38357), + 149: uint16(38626), + 150: uint16(38620), + 151: uint16(38617), + 152: uint16(38619), + 153: uint16(38622), + 154: uint16(38692), + 155: uint16(38819), + 156: uint16(38822), + }, + 34: { + 0: uint16(38829), + 1: uint16(38905), + 2: uint16(38989), + 3: uint16(38991), + 4: uint16(38988), + 5: uint16(38990), + 6: uint16(38995), + 7: uint16(39098), + 8: uint16(39230), + 9: uint16(39231), + 10: uint16(39229), + 11: uint16(39214), + 12: uint16(39333), + 13: uint16(39438), + 14: uint16(39617), + 15: uint16(39683), + 16: uint16(39686), + 17: uint16(39759), + 18: uint16(39758), + 19: uint16(39757), + 20: uint16(39882), + 21: uint16(39881), + 22: uint16(39933), + 23: uint16(39880), + 24: uint16(39872), + 25: uint16(40273), + 26: uint16(40285), + 27: uint16(40288), + 28: uint16(40672), + 29: uint16(40725), + 30: uint16(40748), + 31: uint16(20787), + 32: uint16(22181), + 33: uint16(22750), + 34: uint16(22751), + 35: uint16(22754), + 36: uint16(23541), + 37: uint16(40848), + 38: uint16(24300), + 39: uint16(25074), + 40: uint16(25079), + 41: uint16(25078), + 42: uint16(25077), + 43: uint16(25856), + 44: uint16(25871), + 45: uint16(26336), + 46: uint16(26333), + 47: uint16(27365), + 48: uint16(27357), + 49: uint16(27354), + 50: uint16(27347), + 51: uint16(28699), + 52: uint16(28703), + 53: uint16(28712), + 54: uint16(28698), + 55: uint16(28701), + 56: uint16(28693), + 57: uint16(28696), + 58: uint16(29190), + 59: uint16(29197), + 60: uint16(29272), + 61: uint16(29346), + 62: uint16(29560), + 63: uint16(29562), + 64: uint16(29885), + 65: uint16(29898), + 66: uint16(29923), + 67: uint16(30087), + 68: uint16(30086), + 69: uint16(30303), + 70: uint16(30305), + 71: uint16(30663), + 72: uint16(31001), + 73: uint16(31153), + 74: uint16(31339), + 75: uint16(31337), + 76: uint16(31806), + 77: uint16(31807), + 78: uint16(31800), + 79: uint16(31805), + 80: uint16(31799), + 81: uint16(31808), + 82: uint16(32363), + 83: uint16(32365), + 84: uint16(32377), + 85: uint16(32361), + 86: uint16(32362), + 87: uint16(32645), + 88: uint16(32371), + 89: uint16(32694), + 90: uint16(32697), + 91: uint16(32696), + 92: uint16(33240), + 93: uint16(34281), + 94: uint16(34269), + 95: uint16(34282), + 96: uint16(34261), + 97: uint16(34276), + 98: uint16(34277), + 99: uint16(34295), + 100: uint16(34811), + 101: uint16(34821), + 102: uint16(34829), + 103: uint16(34809), + 104: uint16(34814), + 105: uint16(35168), + 106: uint16(35167), + 107: uint16(35158), + 108: uint16(35166), + 109: uint16(35649), + 110: uint16(35676), + 111: uint16(35672), + 112: uint16(35657), + 113: uint16(35674), + 114: uint16(35662), + 115: uint16(35663), + 116: uint16(35654), + 117: uint16(35673), + 118: uint16(36104), + 119: uint16(36106), + 120: uint16(36476), + 121: uint16(36466), + 122: uint16(36487), + 123: uint16(36470), + 124: uint16(36460), + 125: uint16(36474), + 126: uint16(36468), + 127: uint16(36692), + 128: uint16(36686), + 129: uint16(36781), + 130: uint16(37002), + 131: uint16(37003), + 132: uint16(37297), + 133: uint16(37294), + 134: uint16(37857), + 135: uint16(37841), + 136: uint16(37855), + 137: uint16(37827), + 138: uint16(37832), + 139: uint16(37852), + 140: uint16(37853), + 141: uint16(37846), + 142: uint16(37858), + 143: uint16(37837), + 144: uint16(37848), + 145: uint16(37860), + 146: uint16(37847), + 147: uint16(37864), + 148: uint16(38364), + 149: uint16(38580), + 150: uint16(38627), + 151: uint16(38698), + 152: uint16(38695), + 153: uint16(38753), + 154: uint16(38876), + 155: uint16(38907), + 156: uint16(39006), + }, + 35: { + 0: uint16(39000), + 1: uint16(39003), + 2: uint16(39100), + 3: uint16(39237), + 4: uint16(39241), + 5: uint16(39446), + 6: uint16(39449), + 7: uint16(39693), + 8: uint16(39912), + 9: uint16(39911), + 10: uint16(39894), + 11: uint16(39899), + 12: uint16(40329), + 13: uint16(40289), + 14: uint16(40306), + 15: uint16(40298), + 16: uint16(40300), + 17: uint16(40594), + 18: uint16(40599), + 19: uint16(40595), + 20: uint16(40628), + 21: uint16(21240), + 22: uint16(22184), + 23: uint16(22199), + 24: uint16(22198), + 25: uint16(22196), + 26: uint16(22204), + 27: uint16(22756), + 28: uint16(23360), + 29: uint16(23363), + 30: uint16(23421), + 31: uint16(23542), + 32: uint16(24009), + 33: uint16(25080), + 34: uint16(25082), + 35: uint16(25880), + 36: uint16(25876), + 37: uint16(25881), + 38: uint16(26342), + 39: uint16(26407), + 40: uint16(27372), + 41: uint16(28734), + 42: uint16(28720), + 43: uint16(28722), + 44: uint16(29200), + 45: uint16(29563), + 46: uint16(29903), + 47: uint16(30306), + 48: uint16(30309), + 49: uint16(31014), + 50: uint16(31018), + 51: uint16(31020), + 52: uint16(31019), + 53: uint16(31431), + 54: uint16(31478), + 55: uint16(31820), + 56: uint16(31811), + 57: uint16(31821), + 58: uint16(31983), + 59: uint16(31984), + 60: uint16(36782), + 61: uint16(32381), + 62: uint16(32380), + 63: uint16(32386), + 64: uint16(32588), + 65: uint16(32768), + 66: uint16(33242), + 67: uint16(33382), + 68: uint16(34299), + 69: uint16(34297), + 70: uint16(34321), + 71: uint16(34298), + 72: uint16(34310), + 73: uint16(34315), + 74: uint16(34311), + 75: uint16(34314), + 76: uint16(34836), + 77: uint16(34837), + 78: uint16(35172), + 79: uint16(35258), + 80: uint16(35320), + 81: uint16(35696), + 82: uint16(35692), + 83: uint16(35686), + 84: uint16(35695), + 85: uint16(35679), + 86: uint16(35691), + 87: uint16(36111), + 88: uint16(36109), + 89: uint16(36489), + 90: uint16(36481), + 91: uint16(36485), + 92: uint16(36482), + 93: uint16(37300), + 94: uint16(37323), + 95: uint16(37912), + 96: uint16(37891), + 97: uint16(37885), + 98: uint16(38369), + 99: uint16(38704), + 100: uint16(39108), + 101: uint16(39250), + 102: uint16(39249), + 103: uint16(39336), + 104: uint16(39467), + 105: uint16(39472), + 106: uint16(39479), + 107: uint16(39477), + 108: uint16(39955), + 109: uint16(39949), + 110: uint16(40569), + 111: uint16(40629), + 112: uint16(40680), + 113: uint16(40751), + 114: uint16(40799), + 115: uint16(40803), + 116: uint16(40801), + 117: uint16(20791), + 118: uint16(20792), + 119: uint16(22209), + 120: uint16(22208), + 121: uint16(22210), + 122: uint16(22804), + 123: uint16(23660), + 124: uint16(24013), + 125: uint16(25084), + 126: uint16(25086), + 127: uint16(25885), + 128: uint16(25884), + 129: uint16(26005), + 130: uint16(26345), + 131: uint16(27387), + 132: uint16(27396), + 133: uint16(27386), + 134: uint16(27570), + 135: uint16(28748), + 136: uint16(29211), + 137: uint16(29351), + 138: uint16(29910), + 139: uint16(29908), + 140: uint16(30313), + 141: uint16(30675), + 142: uint16(31824), + 143: uint16(32399), + 144: uint16(32396), + 145: uint16(32700), + 146: uint16(34327), + 147: uint16(34349), + 148: uint16(34330), + 149: uint16(34851), + 150: uint16(34850), + 151: uint16(34849), + 152: uint16(34847), + 153: uint16(35178), + 154: uint16(35180), + 155: uint16(35261), + 156: uint16(35700), + }, + 36: { + 0: uint16(35703), + 1: uint16(35709), + 2: uint16(36115), + 3: uint16(36490), + 4: uint16(36493), + 5: uint16(36491), + 6: uint16(36703), + 7: uint16(36783), + 8: uint16(37306), + 9: uint16(37934), + 10: uint16(37939), + 11: uint16(37941), + 12: uint16(37946), + 13: uint16(37944), + 14: uint16(37938), + 15: uint16(37931), + 16: uint16(38370), + 17: uint16(38712), + 18: uint16(38713), + 19: uint16(38706), + 20: uint16(38911), + 21: uint16(39015), + 22: uint16(39013), + 23: uint16(39255), + 24: uint16(39493), + 25: uint16(39491), + 26: uint16(39488), + 27: uint16(39486), + 28: uint16(39631), + 29: uint16(39764), + 30: uint16(39761), + 31: uint16(39981), + 32: uint16(39973), + 33: uint16(40367), + 34: uint16(40372), + 35: uint16(40386), + 36: uint16(40376), + 37: uint16(40605), + 38: uint16(40687), + 39: uint16(40729), + 40: uint16(40796), + 41: uint16(40806), + 42: uint16(40807), + 43: uint16(20796), + 44: uint16(20795), + 45: uint16(22216), + 46: uint16(22218), + 47: uint16(22217), + 48: uint16(23423), + 49: uint16(24020), + 50: uint16(24018), + 51: uint16(24398), + 52: uint16(25087), + 53: uint16(25892), + 54: uint16(27402), + 55: uint16(27489), + 56: uint16(28753), + 57: uint16(28760), + 58: uint16(29568), + 59: uint16(29924), + 60: uint16(30090), + 61: uint16(30318), + 62: uint16(30316), + 63: uint16(31155), + 64: uint16(31840), + 65: uint16(31839), + 66: uint16(32894), + 67: uint16(32893), + 68: uint16(33247), + 69: uint16(35186), + 70: uint16(35183), + 71: uint16(35324), + 72: uint16(35712), + 73: uint16(36118), + 74: uint16(36119), + 75: uint16(36497), + 76: uint16(36499), + 77: uint16(36705), + 78: uint16(37192), + 79: uint16(37956), + 80: uint16(37969), + 81: uint16(37970), + 82: uint16(38717), + 83: uint16(38718), + 84: uint16(38851), + 85: uint16(38849), + 86: uint16(39019), + 87: uint16(39253), + 88: uint16(39509), + 89: uint16(39501), + 90: uint16(39634), + 91: uint16(39706), + 92: uint16(40009), + 93: uint16(39985), + 94: uint16(39998), + 95: uint16(39995), + 96: uint16(40403), + 97: uint16(40407), + 98: uint16(40756), + 99: uint16(40812), + 100: uint16(40810), + 101: uint16(40852), + 102: uint16(22220), + 103: uint16(24022), + 104: uint16(25088), + 105: uint16(25891), + 106: uint16(25899), + 107: uint16(25898), + 108: uint16(26348), + 109: uint16(27408), + 110: uint16(29914), + 111: uint16(31434), + 112: uint16(31844), + 113: uint16(31843), + 114: uint16(31845), + 115: uint16(32403), + 116: uint16(32406), + 117: uint16(32404), + 118: uint16(33250), + 119: uint16(34360), + 120: uint16(34367), + 121: uint16(34865), + 122: uint16(35722), + 123: uint16(37008), + 124: uint16(37007), + 125: uint16(37987), + 126: uint16(37984), + 127: uint16(37988), + 128: uint16(38760), + 129: uint16(39023), + 130: uint16(39260), + 131: uint16(39514), + 132: uint16(39515), + 133: uint16(39511), + 134: uint16(39635), + 135: uint16(39636), + 136: uint16(39633), + 137: uint16(40020), + 138: uint16(40023), + 139: uint16(40022), + 140: uint16(40421), + 141: uint16(40607), + 142: uint16(40692), + 143: uint16(22225), + 144: uint16(22761), + 145: uint16(25900), + 146: uint16(28766), + 147: uint16(30321), + 148: uint16(30322), + 149: uint16(30679), + 150: uint16(32592), + 151: uint16(32648), + 152: uint16(34870), + 153: uint16(34873), + 154: uint16(34914), + 155: uint16(35731), + 156: uint16(35730), + }, + 37: { + 0: uint16(35734), + 1: uint16(33399), + 2: uint16(36123), + 3: uint16(37312), + 4: uint16(37994), + 5: uint16(38722), + 6: uint16(38728), + 7: uint16(38724), + 8: uint16(38854), + 9: uint16(39024), + 10: uint16(39519), + 11: uint16(39714), + 12: uint16(39768), + 13: uint16(40031), + 14: uint16(40441), + 15: uint16(40442), + 16: uint16(40572), + 17: uint16(40573), + 18: uint16(40711), + 19: uint16(40823), + 20: uint16(40818), + 21: uint16(24307), + 22: uint16(27414), + 23: uint16(28771), + 24: uint16(31852), + 25: uint16(31854), + 26: uint16(34875), + 27: uint16(35264), + 28: uint16(36513), + 29: uint16(37313), + 30: uint16(38002), + 31: uint16(38000), + 32: uint16(39025), + 33: uint16(39262), + 34: uint16(39638), + 35: uint16(39715), + 36: uint16(40652), + 37: uint16(28772), + 38: uint16(30682), + 39: uint16(35738), + 40: uint16(38007), + 41: uint16(38857), + 42: uint16(39522), + 43: uint16(39525), + 44: uint16(32412), + 45: uint16(35740), + 46: uint16(36522), + 47: uint16(37317), + 48: uint16(38013), + 49: uint16(38014), + 50: uint16(38012), + 51: uint16(40055), + 52: uint16(40056), + 53: uint16(40695), + 54: uint16(35924), + 55: uint16(38015), + 56: uint16(40474), + 57: uint16(29224), + 58: uint16(39530), + 59: uint16(39729), + 60: uint16(40475), + 61: uint16(40478), + 62: uint16(31858), + 63: uint16(9312), + 64: uint16(9313), + 65: uint16(9314), + 66: uint16(9315), + 67: uint16(9316), + 68: uint16(9317), + 69: uint16(9318), + 70: uint16(9319), + 71: uint16(9320), + 72: uint16(9321), + 73: uint16(9332), + 74: uint16(9333), + 75: uint16(9334), + 76: uint16(9335), + 77: uint16(9336), + 78: uint16(9337), + 79: uint16(9338), + 80: uint16(9339), + 81: uint16(9340), + 82: uint16(9341), + 83: uint16(8560), + 84: uint16(8561), + 85: uint16(8562), + 86: uint16(8563), + 87: uint16(8564), + 88: uint16(8565), + 89: uint16(8566), + 90: uint16(8567), + 91: uint16(8568), + 92: uint16(8569), + 93: uint16(20022), + 94: uint16(20031), + 95: uint16(20101), + 96: uint16(20128), + 97: uint16(20866), + 98: uint16(20886), + 99: uint16(20907), + 100: uint16(21241), + 101: uint16(21304), + 102: uint16(21353), + 103: uint16(21430), + 104: uint16(22794), + 105: uint16(23424), + 106: uint16(24027), + 107: uint16(24186), + 108: uint16(24191), + 109: uint16(24308), + 110: uint16(24400), + 111: uint16(24417), + 112: uint16(25908), + 113: uint16(26080), + 114: uint16(30098), + 115: uint16(30326), + 116: uint16(36789), + 117: uint16(38582), + 118: uint16(168), + 119: uint16(710), + 120: uint16(12541), + 121: uint16(12542), + 122: uint16(12445), + 123: uint16(12446), + 126: uint16(12293), + 127: uint16(12294), + 128: uint16(12295), + 129: uint16(12540), + 130: uint16(65339), + 131: uint16(65341), + 132: uint16(10045), + 133: uint16(12353), + 134: uint16(12354), + 135: uint16(12355), + 136: uint16(12356), + 137: uint16(12357), + 138: uint16(12358), + 139: uint16(12359), + 140: uint16(12360), + 141: uint16(12361), + 142: uint16(12362), + 143: uint16(12363), + 144: uint16(12364), + 145: uint16(12365), + 146: uint16(12366), + 147: uint16(12367), + 148: uint16(12368), + 149: uint16(12369), + 150: uint16(12370), + 151: uint16(12371), + 152: uint16(12372), + 153: uint16(12373), + 154: uint16(12374), + 155: uint16(12375), + 156: uint16(12376), + }, + 38: { + 0: uint16(12377), + 1: uint16(12378), + 2: uint16(12379), + 3: uint16(12380), + 4: uint16(12381), + 5: uint16(12382), + 6: uint16(12383), + 7: uint16(12384), + 8: uint16(12385), + 9: uint16(12386), + 10: uint16(12387), + 11: uint16(12388), + 12: uint16(12389), + 13: uint16(12390), + 14: uint16(12391), + 15: uint16(12392), + 16: uint16(12393), + 17: uint16(12394), + 18: uint16(12395), + 19: uint16(12396), + 20: uint16(12397), + 21: uint16(12398), + 22: uint16(12399), + 23: uint16(12400), + 24: uint16(12401), + 25: uint16(12402), + 26: uint16(12403), + 27: uint16(12404), + 28: uint16(12405), + 29: uint16(12406), + 30: uint16(12407), + 31: uint16(12408), + 32: uint16(12409), + 33: uint16(12410), + 34: uint16(12411), + 35: uint16(12412), + 36: uint16(12413), + 37: uint16(12414), + 38: uint16(12415), + 39: uint16(12416), + 40: uint16(12417), + 41: uint16(12418), + 42: uint16(12419), + 43: uint16(12420), + 44: uint16(12421), + 45: uint16(12422), + 46: uint16(12423), + 47: uint16(12424), + 48: uint16(12425), + 49: uint16(12426), + 50: uint16(12427), + 51: uint16(12428), + 52: uint16(12429), + 53: uint16(12430), + 54: uint16(12431), + 55: uint16(12432), + 56: uint16(12433), + 57: uint16(12434), + 58: uint16(12435), + 59: uint16(12449), + 60: uint16(12450), + 61: uint16(12451), + 62: uint16(12452), + 63: uint16(12453), + 64: uint16(12454), + 65: uint16(12455), + 66: uint16(12456), + 67: uint16(12457), + 68: uint16(12458), + 69: uint16(12459), + 70: uint16(12460), + 71: uint16(12461), + 72: uint16(12462), + 73: uint16(12463), + 74: uint16(12464), + 75: uint16(12465), + 76: uint16(12466), + 77: uint16(12467), + 78: uint16(12468), + 79: uint16(12469), + 80: uint16(12470), + 81: uint16(12471), + 82: uint16(12472), + 83: uint16(12473), + 84: uint16(12474), + 85: uint16(12475), + 86: uint16(12476), + 87: uint16(12477), + 88: uint16(12478), + 89: uint16(12479), + 90: uint16(12480), + 91: uint16(12481), + 92: uint16(12482), + 93: uint16(12483), + 94: uint16(12484), + 95: uint16(12485), + 96: uint16(12486), + 97: uint16(12487), + 98: uint16(12488), + 99: uint16(12489), + 100: uint16(12490), + 101: uint16(12491), + 102: uint16(12492), + 103: uint16(12493), + 104: uint16(12494), + 105: uint16(12495), + 106: uint16(12496), + 107: uint16(12497), + 108: uint16(12498), + 109: uint16(12499), + 110: uint16(12500), + 111: uint16(12501), + 112: uint16(12502), + 113: uint16(12503), + 114: uint16(12504), + 115: uint16(12505), + 116: uint16(12506), + 117: uint16(12507), + 118: uint16(12508), + 119: uint16(12509), + 120: uint16(12510), + 121: uint16(12511), + 122: uint16(12512), + 123: uint16(12513), + 124: uint16(12514), + 125: uint16(12515), + 126: uint16(12516), + 127: uint16(12517), + 128: uint16(12518), + 129: uint16(12519), + 130: uint16(12520), + 131: uint16(12521), + 132: uint16(12522), + 133: uint16(12523), + 134: uint16(12524), + 135: uint16(12525), + 136: uint16(12526), + 137: uint16(12527), + 138: uint16(12528), + 139: uint16(12529), + 140: uint16(12530), + 141: uint16(12531), + 142: uint16(12532), + 143: uint16(12533), + 144: uint16(12534), + 145: uint16(1040), + 146: uint16(1041), + 147: uint16(1042), + 148: uint16(1043), + 149: uint16(1044), + 150: uint16(1045), + 151: uint16(1025), + 152: uint16(1046), + 153: uint16(1047), + 154: uint16(1048), + 155: uint16(1049), + 156: uint16(1050), + }, + 39: { + 0: uint16(1051), + 1: uint16(1052), + 2: uint16(1053), + 3: uint16(1054), + 4: uint16(1055), + 5: uint16(1056), + 6: uint16(1057), + 7: uint16(1058), + 8: uint16(1059), + 9: uint16(1060), + 10: uint16(1061), + 11: uint16(1062), + 12: uint16(1063), + 13: uint16(1064), + 14: uint16(1065), + 15: uint16(1066), + 16: uint16(1067), + 17: uint16(1068), + 18: uint16(1069), + 19: uint16(1070), + 20: uint16(1071), + 21: uint16(1072), + 22: uint16(1073), + 23: uint16(1074), + 24: uint16(1075), + 25: uint16(1076), + 26: uint16(1077), + 27: uint16(1105), + 28: uint16(1078), + 29: uint16(1079), + 30: uint16(1080), + 31: uint16(1081), + 32: uint16(1082), + 33: uint16(1083), + 34: uint16(1084), + 35: uint16(1085), + 36: uint16(1086), + 37: uint16(1087), + 38: uint16(1088), + 39: uint16(1089), + 40: uint16(1090), + 41: uint16(1091), + 42: uint16(1092), + 43: uint16(1093), + 44: uint16(1094), + 45: uint16(1095), + 46: uint16(1096), + 47: uint16(1097), + 48: uint16(1098), + 49: uint16(1099), + 50: uint16(1100), + 51: uint16(1101), + 52: uint16(1102), + 53: uint16(1103), + 54: uint16(8679), + 55: uint16(8632), + 56: uint16(8633), + 57: uint16(12751), + 58: uint16(204), + 59: uint16(20058), + 60: uint16(138), + 61: uint16(20994), + 62: uint16(17553), + 63: uint16(40880), + 64: uint16(20872), + 65: uint16(40881), + 66: uint16(30215), + 107: uint16(65506), + 108: uint16(65508), + 109: uint16(65287), + 110: uint16(65282), + 111: uint16(12849), + 112: uint16(8470), + 113: uint16(8481), + 114: uint16(12443), + 115: uint16(12444), + 116: uint16(11904), + 117: uint16(11908), + 118: uint16(11910), + 119: uint16(11911), + 120: uint16(11912), + 121: uint16(11914), + 122: uint16(11916), + 123: uint16(11917), + 124: uint16(11925), + 125: uint16(11932), + 126: uint16(11933), + 127: uint16(11941), + 128: uint16(11943), + 129: uint16(11946), + 130: uint16(11948), + 131: uint16(11950), + 132: uint16(11958), + 133: uint16(11964), + 134: uint16(11966), + 135: uint16(11974), + 136: uint16(11978), + 137: uint16(11980), + 138: uint16(11981), + 139: uint16(11983), + 140: uint16(11990), + 141: uint16(11991), + 142: uint16(11998), + 143: uint16(12003), + 147: uint16(643), + 148: uint16(592), + 149: uint16(603), + 150: uint16(596), + 151: uint16(629), + 152: uint16(339), + 153: uint16(248), + 154: uint16(331), + 155: uint16(650), + 156: uint16(618), + }, + 40: { + 0: uint16(20034), + 1: uint16(20060), + 2: uint16(20981), + 3: uint16(21274), + 4: uint16(21378), + 5: uint16(19975), + 6: uint16(19980), + 7: uint16(20039), + 8: uint16(20109), + 9: uint16(22231), + 10: uint16(64012), + 11: uint16(23662), + 12: uint16(24435), + 13: uint16(19983), + 14: uint16(20871), + 15: uint16(19982), + 16: uint16(20014), + 17: uint16(20115), + 18: uint16(20162), + 19: uint16(20169), + 20: uint16(20168), + 21: uint16(20888), + 22: uint16(21244), + 23: uint16(21356), + 24: uint16(21433), + 25: uint16(22304), + 26: uint16(22787), + 27: uint16(22828), + 28: uint16(23568), + 29: uint16(24063), + 30: uint16(26081), + 31: uint16(27571), + 32: uint16(27596), + 33: uint16(27668), + 34: uint16(29247), + 35: uint16(20017), + 36: uint16(20028), + 37: uint16(20200), + 38: uint16(20188), + 39: uint16(20201), + 40: uint16(20193), + 41: uint16(20189), + 42: uint16(20186), + 43: uint16(21004), + 44: uint16(21276), + 45: uint16(21324), + 46: uint16(22306), + 47: uint16(22307), + 48: uint16(22807), + 49: uint16(22831), + 50: uint16(23425), + 51: uint16(23428), + 52: uint16(23570), + 53: uint16(23611), + 54: uint16(23668), + 55: uint16(23667), + 56: uint16(24068), + 57: uint16(24192), + 58: uint16(24194), + 59: uint16(24521), + 60: uint16(25097), + 61: uint16(25168), + 62: uint16(27669), + 63: uint16(27702), + 64: uint16(27715), + 65: uint16(27711), + 66: uint16(27707), + 67: uint16(29358), + 68: uint16(29360), + 69: uint16(29578), + 70: uint16(31160), + 71: uint16(32906), + 72: uint16(38430), + 73: uint16(20238), + 74: uint16(20248), + 75: uint16(20268), + 76: uint16(20213), + 77: uint16(20244), + 78: uint16(20209), + 79: uint16(20224), + 80: uint16(20215), + 81: uint16(20232), + 82: uint16(20253), + 83: uint16(20226), + 84: uint16(20229), + 85: uint16(20258), + 86: uint16(20243), + 87: uint16(20228), + 88: uint16(20212), + 89: uint16(20242), + 90: uint16(20913), + 91: uint16(21011), + 92: uint16(21001), + 93: uint16(21008), + 94: uint16(21158), + 95: uint16(21282), + 96: uint16(21279), + 97: uint16(21325), + 98: uint16(21386), + 99: uint16(21511), + 100: uint16(22241), + 101: uint16(22239), + 102: uint16(22318), + 103: uint16(22314), + 104: uint16(22324), + 105: uint16(22844), + 106: uint16(22912), + 107: uint16(22908), + 108: uint16(22917), + 109: uint16(22907), + 110: uint16(22910), + 111: uint16(22903), + 112: uint16(22911), + 113: uint16(23382), + 114: uint16(23573), + 115: uint16(23589), + 116: uint16(23676), + 117: uint16(23674), + 118: uint16(23675), + 119: uint16(23678), + 120: uint16(24031), + 121: uint16(24181), + 122: uint16(24196), + 123: uint16(24322), + 124: uint16(24346), + 125: uint16(24436), + 126: uint16(24533), + 127: uint16(24532), + 128: uint16(24527), + 129: uint16(25180), + 130: uint16(25182), + 131: uint16(25188), + 132: uint16(25185), + 133: uint16(25190), + 134: uint16(25186), + 135: uint16(25177), + 136: uint16(25184), + 137: uint16(25178), + 138: uint16(25189), + 139: uint16(26095), + 140: uint16(26094), + 141: uint16(26430), + 142: uint16(26425), + 143: uint16(26424), + 144: uint16(26427), + 145: uint16(26426), + 146: uint16(26431), + 147: uint16(26428), + 148: uint16(26419), + 149: uint16(27672), + 150: uint16(27718), + 151: uint16(27730), + 152: uint16(27740), + 153: uint16(27727), + 154: uint16(27722), + 155: uint16(27732), + 156: uint16(27723), + }, + 41: { + 0: uint16(27724), + 1: uint16(28785), + 2: uint16(29278), + 3: uint16(29364), + 4: uint16(29365), + 5: uint16(29582), + 6: uint16(29994), + 7: uint16(30335), + 8: uint16(31349), + 9: uint16(32593), + 10: uint16(33400), + 11: uint16(33404), + 12: uint16(33408), + 13: uint16(33405), + 14: uint16(33407), + 15: uint16(34381), + 16: uint16(35198), + 17: uint16(37017), + 18: uint16(37015), + 19: uint16(37016), + 20: uint16(37019), + 21: uint16(37012), + 22: uint16(38434), + 23: uint16(38436), + 24: uint16(38432), + 25: uint16(38435), + 26: uint16(20310), + 27: uint16(20283), + 28: uint16(20322), + 29: uint16(20297), + 30: uint16(20307), + 31: uint16(20324), + 32: uint16(20286), + 33: uint16(20327), + 34: uint16(20306), + 35: uint16(20319), + 36: uint16(20289), + 37: uint16(20312), + 38: uint16(20269), + 39: uint16(20275), + 40: uint16(20287), + 41: uint16(20321), + 42: uint16(20879), + 43: uint16(20921), + 44: uint16(21020), + 45: uint16(21022), + 46: uint16(21025), + 47: uint16(21165), + 48: uint16(21166), + 49: uint16(21257), + 50: uint16(21347), + 51: uint16(21362), + 52: uint16(21390), + 53: uint16(21391), + 54: uint16(21552), + 55: uint16(21559), + 56: uint16(21546), + 57: uint16(21588), + 58: uint16(21573), + 59: uint16(21529), + 60: uint16(21532), + 61: uint16(21541), + 62: uint16(21528), + 63: uint16(21565), + 64: uint16(21583), + 65: uint16(21569), + 66: uint16(21544), + 67: uint16(21540), + 68: uint16(21575), + 69: uint16(22254), + 70: uint16(22247), + 71: uint16(22245), + 72: uint16(22337), + 73: uint16(22341), + 74: uint16(22348), + 75: uint16(22345), + 76: uint16(22347), + 77: uint16(22354), + 78: uint16(22790), + 79: uint16(22848), + 80: uint16(22950), + 81: uint16(22936), + 82: uint16(22944), + 83: uint16(22935), + 84: uint16(22926), + 85: uint16(22946), + 86: uint16(22928), + 87: uint16(22927), + 88: uint16(22951), + 89: uint16(22945), + 90: uint16(23438), + 91: uint16(23442), + 92: uint16(23592), + 93: uint16(23594), + 94: uint16(23693), + 95: uint16(23695), + 96: uint16(23688), + 97: uint16(23691), + 98: uint16(23689), + 99: uint16(23698), + 100: uint16(23690), + 101: uint16(23686), + 102: uint16(23699), + 103: uint16(23701), + 104: uint16(24032), + 105: uint16(24074), + 106: uint16(24078), + 107: uint16(24203), + 108: uint16(24201), + 109: uint16(24204), + 110: uint16(24200), + 111: uint16(24205), + 112: uint16(24325), + 113: uint16(24349), + 114: uint16(24440), + 115: uint16(24438), + 116: uint16(24530), + 117: uint16(24529), + 118: uint16(24528), + 119: uint16(24557), + 120: uint16(24552), + 121: uint16(24558), + 122: uint16(24563), + 123: uint16(24545), + 124: uint16(24548), + 125: uint16(24547), + 126: uint16(24570), + 127: uint16(24559), + 128: uint16(24567), + 129: uint16(24571), + 130: uint16(24576), + 131: uint16(24564), + 132: uint16(25146), + 133: uint16(25219), + 134: uint16(25228), + 135: uint16(25230), + 136: uint16(25231), + 137: uint16(25236), + 138: uint16(25223), + 139: uint16(25201), + 140: uint16(25211), + 141: uint16(25210), + 142: uint16(25200), + 143: uint16(25217), + 144: uint16(25224), + 145: uint16(25207), + 146: uint16(25213), + 147: uint16(25202), + 148: uint16(25204), + 149: uint16(25911), + 150: uint16(26096), + 151: uint16(26100), + 152: uint16(26099), + 153: uint16(26098), + 154: uint16(26101), + 155: uint16(26437), + 156: uint16(26439), + }, + 42: { + 0: uint16(26457), + 1: uint16(26453), + 2: uint16(26444), + 3: uint16(26440), + 4: uint16(26461), + 5: uint16(26445), + 6: uint16(26458), + 7: uint16(26443), + 8: uint16(27600), + 9: uint16(27673), + 10: uint16(27674), + 11: uint16(27768), + 12: uint16(27751), + 13: uint16(27755), + 14: uint16(27780), + 15: uint16(27787), + 16: uint16(27791), + 17: uint16(27761), + 18: uint16(27759), + 19: uint16(27753), + 20: uint16(27802), + 21: uint16(27757), + 22: uint16(27783), + 23: uint16(27797), + 24: uint16(27804), + 25: uint16(27750), + 26: uint16(27763), + 27: uint16(27749), + 28: uint16(27771), + 29: uint16(27790), + 30: uint16(28788), + 31: uint16(28794), + 32: uint16(29283), + 33: uint16(29375), + 34: uint16(29373), + 35: uint16(29379), + 36: uint16(29382), + 37: uint16(29377), + 38: uint16(29370), + 39: uint16(29381), + 40: uint16(29589), + 41: uint16(29591), + 42: uint16(29587), + 43: uint16(29588), + 44: uint16(29586), + 45: uint16(30010), + 46: uint16(30009), + 47: uint16(30100), + 48: uint16(30101), + 49: uint16(30337), + 50: uint16(31037), + 51: uint16(32820), + 52: uint16(32917), + 53: uint16(32921), + 54: uint16(32912), + 55: uint16(32914), + 56: uint16(32924), + 57: uint16(33424), + 58: uint16(33423), + 59: uint16(33413), + 60: uint16(33422), + 61: uint16(33425), + 62: uint16(33427), + 63: uint16(33418), + 64: uint16(33411), + 65: uint16(33412), + 66: uint16(35960), + 67: uint16(36809), + 68: uint16(36799), + 69: uint16(37023), + 70: uint16(37025), + 71: uint16(37029), + 72: uint16(37022), + 73: uint16(37031), + 74: uint16(37024), + 75: uint16(38448), + 76: uint16(38440), + 77: uint16(38447), + 78: uint16(38445), + 79: uint16(20019), + 80: uint16(20376), + 81: uint16(20348), + 82: uint16(20357), + 83: uint16(20349), + 84: uint16(20352), + 85: uint16(20359), + 86: uint16(20342), + 87: uint16(20340), + 88: uint16(20361), + 89: uint16(20356), + 90: uint16(20343), + 91: uint16(20300), + 92: uint16(20375), + 93: uint16(20330), + 94: uint16(20378), + 95: uint16(20345), + 96: uint16(20353), + 97: uint16(20344), + 98: uint16(20368), + 99: uint16(20380), + 100: uint16(20372), + 101: uint16(20382), + 102: uint16(20370), + 103: uint16(20354), + 104: uint16(20373), + 105: uint16(20331), + 106: uint16(20334), + 107: uint16(20894), + 108: uint16(20924), + 109: uint16(20926), + 110: uint16(21045), + 111: uint16(21042), + 112: uint16(21043), + 113: uint16(21062), + 114: uint16(21041), + 115: uint16(21180), + 116: uint16(21258), + 117: uint16(21259), + 118: uint16(21308), + 119: uint16(21394), + 120: uint16(21396), + 121: uint16(21639), + 122: uint16(21631), + 123: uint16(21633), + 124: uint16(21649), + 125: uint16(21634), + 126: uint16(21640), + 127: uint16(21611), + 128: uint16(21626), + 129: uint16(21630), + 130: uint16(21605), + 131: uint16(21612), + 132: uint16(21620), + 133: uint16(21606), + 134: uint16(21645), + 135: uint16(21615), + 136: uint16(21601), + 137: uint16(21600), + 138: uint16(21656), + 139: uint16(21603), + 140: uint16(21607), + 141: uint16(21604), + 142: uint16(22263), + 143: uint16(22265), + 144: uint16(22383), + 145: uint16(22386), + 146: uint16(22381), + 147: uint16(22379), + 148: uint16(22385), + 149: uint16(22384), + 150: uint16(22390), + 151: uint16(22400), + 152: uint16(22389), + 153: uint16(22395), + 154: uint16(22387), + 155: uint16(22388), + 156: uint16(22370), + }, + 43: { + 0: uint16(22376), + 1: uint16(22397), + 2: uint16(22796), + 3: uint16(22853), + 4: uint16(22965), + 5: uint16(22970), + 6: uint16(22991), + 7: uint16(22990), + 8: uint16(22962), + 9: uint16(22988), + 10: uint16(22977), + 11: uint16(22966), + 12: uint16(22972), + 13: uint16(22979), + 14: uint16(22998), + 15: uint16(22961), + 16: uint16(22973), + 17: uint16(22976), + 18: uint16(22984), + 19: uint16(22964), + 20: uint16(22983), + 21: uint16(23394), + 22: uint16(23397), + 23: uint16(23443), + 24: uint16(23445), + 25: uint16(23620), + 26: uint16(23623), + 27: uint16(23726), + 28: uint16(23716), + 29: uint16(23712), + 30: uint16(23733), + 31: uint16(23727), + 32: uint16(23720), + 33: uint16(23724), + 34: uint16(23711), + 35: uint16(23715), + 36: uint16(23725), + 37: uint16(23714), + 38: uint16(23722), + 39: uint16(23719), + 40: uint16(23709), + 41: uint16(23717), + 42: uint16(23734), + 43: uint16(23728), + 44: uint16(23718), + 45: uint16(24087), + 46: uint16(24084), + 47: uint16(24089), + 48: uint16(24360), + 49: uint16(24354), + 50: uint16(24355), + 51: uint16(24356), + 52: uint16(24404), + 53: uint16(24450), + 54: uint16(24446), + 55: uint16(24445), + 56: uint16(24542), + 57: uint16(24549), + 58: uint16(24621), + 59: uint16(24614), + 60: uint16(24601), + 61: uint16(24626), + 62: uint16(24587), + 63: uint16(24628), + 64: uint16(24586), + 65: uint16(24599), + 66: uint16(24627), + 67: uint16(24602), + 68: uint16(24606), + 69: uint16(24620), + 70: uint16(24610), + 71: uint16(24589), + 72: uint16(24592), + 73: uint16(24622), + 74: uint16(24595), + 75: uint16(24593), + 76: uint16(24588), + 77: uint16(24585), + 78: uint16(24604), + 79: uint16(25108), + 80: uint16(25149), + 81: uint16(25261), + 82: uint16(25268), + 83: uint16(25297), + 84: uint16(25278), + 85: uint16(25258), + 86: uint16(25270), + 87: uint16(25290), + 88: uint16(25262), + 89: uint16(25267), + 90: uint16(25263), + 91: uint16(25275), + 92: uint16(25257), + 93: uint16(25264), + 94: uint16(25272), + 95: uint16(25917), + 96: uint16(26024), + 97: uint16(26043), + 98: uint16(26121), + 99: uint16(26108), + 100: uint16(26116), + 101: uint16(26130), + 102: uint16(26120), + 103: uint16(26107), + 104: uint16(26115), + 105: uint16(26123), + 106: uint16(26125), + 107: uint16(26117), + 108: uint16(26109), + 109: uint16(26129), + 110: uint16(26128), + 111: uint16(26358), + 112: uint16(26378), + 113: uint16(26501), + 114: uint16(26476), + 115: uint16(26510), + 116: uint16(26514), + 117: uint16(26486), + 118: uint16(26491), + 119: uint16(26520), + 120: uint16(26502), + 121: uint16(26500), + 122: uint16(26484), + 123: uint16(26509), + 124: uint16(26508), + 125: uint16(26490), + 126: uint16(26527), + 127: uint16(26513), + 128: uint16(26521), + 129: uint16(26499), + 130: uint16(26493), + 131: uint16(26497), + 132: uint16(26488), + 133: uint16(26489), + 134: uint16(26516), + 135: uint16(27429), + 136: uint16(27520), + 137: uint16(27518), + 138: uint16(27614), + 139: uint16(27677), + 140: uint16(27795), + 141: uint16(27884), + 142: uint16(27883), + 143: uint16(27886), + 144: uint16(27865), + 145: uint16(27830), + 146: uint16(27860), + 147: uint16(27821), + 148: uint16(27879), + 149: uint16(27831), + 150: uint16(27856), + 151: uint16(27842), + 152: uint16(27834), + 153: uint16(27843), + 154: uint16(27846), + 155: uint16(27885), + 156: uint16(27890), + }, + 44: { + 0: uint16(27858), + 1: uint16(27869), + 2: uint16(27828), + 3: uint16(27786), + 4: uint16(27805), + 5: uint16(27776), + 6: uint16(27870), + 7: uint16(27840), + 8: uint16(27952), + 9: uint16(27853), + 10: uint16(27847), + 11: uint16(27824), + 12: uint16(27897), + 13: uint16(27855), + 14: uint16(27881), + 15: uint16(27857), + 16: uint16(28820), + 17: uint16(28824), + 18: uint16(28805), + 19: uint16(28819), + 20: uint16(28806), + 21: uint16(28804), + 22: uint16(28817), + 23: uint16(28822), + 24: uint16(28802), + 25: uint16(28826), + 26: uint16(28803), + 27: uint16(29290), + 28: uint16(29398), + 29: uint16(29387), + 30: uint16(29400), + 31: uint16(29385), + 32: uint16(29404), + 33: uint16(29394), + 34: uint16(29396), + 35: uint16(29402), + 36: uint16(29388), + 37: uint16(29393), + 38: uint16(29604), + 39: uint16(29601), + 40: uint16(29613), + 41: uint16(29606), + 42: uint16(29602), + 43: uint16(29600), + 44: uint16(29612), + 45: uint16(29597), + 46: uint16(29917), + 47: uint16(29928), + 48: uint16(30015), + 49: uint16(30016), + 50: uint16(30014), + 51: uint16(30092), + 52: uint16(30104), + 53: uint16(30383), + 54: uint16(30451), + 55: uint16(30449), + 56: uint16(30448), + 57: uint16(30453), + 58: uint16(30712), + 59: uint16(30716), + 60: uint16(30713), + 61: uint16(30715), + 62: uint16(30714), + 63: uint16(30711), + 64: uint16(31042), + 65: uint16(31039), + 66: uint16(31173), + 67: uint16(31352), + 68: uint16(31355), + 69: uint16(31483), + 70: uint16(31861), + 71: uint16(31997), + 72: uint16(32821), + 73: uint16(32911), + 74: uint16(32942), + 75: uint16(32931), + 76: uint16(32952), + 77: uint16(32949), + 78: uint16(32941), + 79: uint16(33312), + 80: uint16(33440), + 81: uint16(33472), + 82: uint16(33451), + 83: uint16(33434), + 84: uint16(33432), + 85: uint16(33435), + 86: uint16(33461), + 87: uint16(33447), + 88: uint16(33454), + 89: uint16(33468), + 90: uint16(33438), + 91: uint16(33466), + 92: uint16(33460), + 93: uint16(33448), + 94: uint16(33441), + 95: uint16(33449), + 96: uint16(33474), + 97: uint16(33444), + 98: uint16(33475), + 99: uint16(33462), + 100: uint16(33442), + 101: uint16(34416), + 102: uint16(34415), + 103: uint16(34413), + 104: uint16(34414), + 105: uint16(35926), + 106: uint16(36818), + 107: uint16(36811), + 108: uint16(36819), + 109: uint16(36813), + 110: uint16(36822), + 111: uint16(36821), + 112: uint16(36823), + 113: uint16(37042), + 114: uint16(37044), + 115: uint16(37039), + 116: uint16(37043), + 117: uint16(37040), + 118: uint16(38457), + 119: uint16(38461), + 120: uint16(38460), + 121: uint16(38458), + 122: uint16(38467), + 123: uint16(20429), + 124: uint16(20421), + 125: uint16(20435), + 126: uint16(20402), + 127: uint16(20425), + 128: uint16(20427), + 129: uint16(20417), + 130: uint16(20436), + 131: uint16(20444), + 132: uint16(20441), + 133: uint16(20411), + 134: uint16(20403), + 135: uint16(20443), + 136: uint16(20423), + 137: uint16(20438), + 138: uint16(20410), + 139: uint16(20416), + 140: uint16(20409), + 141: uint16(20460), + 142: uint16(21060), + 143: uint16(21065), + 144: uint16(21184), + 145: uint16(21186), + 146: uint16(21309), + 147: uint16(21372), + 148: uint16(21399), + 149: uint16(21398), + 150: uint16(21401), + 151: uint16(21400), + 152: uint16(21690), + 153: uint16(21665), + 154: uint16(21677), + 155: uint16(21669), + 156: uint16(21711), + }, + 45: { + 0: uint16(21699), + 1: uint16(33549), + 2: uint16(21687), + 3: uint16(21678), + 4: uint16(21718), + 5: uint16(21686), + 6: uint16(21701), + 7: uint16(21702), + 8: uint16(21664), + 9: uint16(21616), + 10: uint16(21692), + 11: uint16(21666), + 12: uint16(21694), + 13: uint16(21618), + 14: uint16(21726), + 15: uint16(21680), + 16: uint16(22453), + 17: uint16(22430), + 18: uint16(22431), + 19: uint16(22436), + 20: uint16(22412), + 21: uint16(22423), + 22: uint16(22429), + 23: uint16(22427), + 24: uint16(22420), + 25: uint16(22424), + 26: uint16(22415), + 27: uint16(22425), + 28: uint16(22437), + 29: uint16(22426), + 30: uint16(22421), + 31: uint16(22772), + 32: uint16(22797), + 33: uint16(22867), + 34: uint16(23009), + 35: uint16(23006), + 36: uint16(23022), + 37: uint16(23040), + 38: uint16(23025), + 39: uint16(23005), + 40: uint16(23034), + 41: uint16(23037), + 42: uint16(23036), + 43: uint16(23030), + 44: uint16(23012), + 45: uint16(23026), + 46: uint16(23031), + 47: uint16(23003), + 48: uint16(23017), + 49: uint16(23027), + 50: uint16(23029), + 51: uint16(23008), + 52: uint16(23038), + 53: uint16(23028), + 54: uint16(23021), + 55: uint16(23464), + 56: uint16(23628), + 57: uint16(23760), + 58: uint16(23768), + 59: uint16(23756), + 60: uint16(23767), + 61: uint16(23755), + 62: uint16(23771), + 63: uint16(23774), + 64: uint16(23770), + 65: uint16(23753), + 66: uint16(23751), + 67: uint16(23754), + 68: uint16(23766), + 69: uint16(23763), + 70: uint16(23764), + 71: uint16(23759), + 72: uint16(23752), + 73: uint16(23750), + 74: uint16(23758), + 75: uint16(23775), + 76: uint16(23800), + 77: uint16(24057), + 78: uint16(24097), + 79: uint16(24098), + 80: uint16(24099), + 81: uint16(24096), + 82: uint16(24100), + 83: uint16(24240), + 84: uint16(24228), + 85: uint16(24226), + 86: uint16(24219), + 87: uint16(24227), + 88: uint16(24229), + 89: uint16(24327), + 90: uint16(24366), + 91: uint16(24406), + 92: uint16(24454), + 93: uint16(24631), + 94: uint16(24633), + 95: uint16(24660), + 96: uint16(24690), + 97: uint16(24670), + 98: uint16(24645), + 99: uint16(24659), + 100: uint16(24647), + 101: uint16(24649), + 102: uint16(24667), + 103: uint16(24652), + 104: uint16(24640), + 105: uint16(24642), + 106: uint16(24671), + 107: uint16(24612), + 108: uint16(24644), + 109: uint16(24664), + 110: uint16(24678), + 111: uint16(24686), + 112: uint16(25154), + 113: uint16(25155), + 114: uint16(25295), + 115: uint16(25357), + 116: uint16(25355), + 117: uint16(25333), + 118: uint16(25358), + 119: uint16(25347), + 120: uint16(25323), + 121: uint16(25337), + 122: uint16(25359), + 123: uint16(25356), + 124: uint16(25336), + 125: uint16(25334), + 126: uint16(25344), + 127: uint16(25363), + 128: uint16(25364), + 129: uint16(25338), + 130: uint16(25365), + 131: uint16(25339), + 132: uint16(25328), + 133: uint16(25921), + 134: uint16(25923), + 135: uint16(26026), + 136: uint16(26047), + 137: uint16(26166), + 138: uint16(26145), + 139: uint16(26162), + 140: uint16(26165), + 141: uint16(26140), + 142: uint16(26150), + 143: uint16(26146), + 144: uint16(26163), + 145: uint16(26155), + 146: uint16(26170), + 147: uint16(26141), + 148: uint16(26164), + 149: uint16(26169), + 150: uint16(26158), + 151: uint16(26383), + 152: uint16(26384), + 153: uint16(26561), + 154: uint16(26610), + 155: uint16(26568), + 156: uint16(26554), + }, + 46: { + 0: uint16(26588), + 1: uint16(26555), + 2: uint16(26616), + 3: uint16(26584), + 4: uint16(26560), + 5: uint16(26551), + 6: uint16(26565), + 7: uint16(26603), + 8: uint16(26596), + 9: uint16(26591), + 10: uint16(26549), + 11: uint16(26573), + 12: uint16(26547), + 13: uint16(26615), + 14: uint16(26614), + 15: uint16(26606), + 16: uint16(26595), + 17: uint16(26562), + 18: uint16(26553), + 19: uint16(26574), + 20: uint16(26599), + 21: uint16(26608), + 22: uint16(26546), + 23: uint16(26620), + 24: uint16(26566), + 25: uint16(26605), + 26: uint16(26572), + 27: uint16(26542), + 28: uint16(26598), + 29: uint16(26587), + 30: uint16(26618), + 31: uint16(26569), + 32: uint16(26570), + 33: uint16(26563), + 34: uint16(26602), + 35: uint16(26571), + 36: uint16(27432), + 37: uint16(27522), + 38: uint16(27524), + 39: uint16(27574), + 40: uint16(27606), + 41: uint16(27608), + 42: uint16(27616), + 43: uint16(27680), + 44: uint16(27681), + 45: uint16(27944), + 46: uint16(27956), + 47: uint16(27949), + 48: uint16(27935), + 49: uint16(27964), + 50: uint16(27967), + 51: uint16(27922), + 52: uint16(27914), + 53: uint16(27866), + 54: uint16(27955), + 55: uint16(27908), + 56: uint16(27929), + 57: uint16(27962), + 58: uint16(27930), + 59: uint16(27921), + 60: uint16(27904), + 61: uint16(27933), + 62: uint16(27970), + 63: uint16(27905), + 64: uint16(27928), + 65: uint16(27959), + 66: uint16(27907), + 67: uint16(27919), + 68: uint16(27968), + 69: uint16(27911), + 70: uint16(27936), + 71: uint16(27948), + 72: uint16(27912), + 73: uint16(27938), + 74: uint16(27913), + 75: uint16(27920), + 76: uint16(28855), + 77: uint16(28831), + 78: uint16(28862), + 79: uint16(28849), + 80: uint16(28848), + 81: uint16(28833), + 82: uint16(28852), + 83: uint16(28853), + 84: uint16(28841), + 85: uint16(29249), + 86: uint16(29257), + 87: uint16(29258), + 88: uint16(29292), + 89: uint16(29296), + 90: uint16(29299), + 91: uint16(29294), + 92: uint16(29386), + 93: uint16(29412), + 94: uint16(29416), + 95: uint16(29419), + 96: uint16(29407), + 97: uint16(29418), + 98: uint16(29414), + 99: uint16(29411), + 100: uint16(29573), + 101: uint16(29644), + 102: uint16(29634), + 103: uint16(29640), + 104: uint16(29637), + 105: uint16(29625), + 106: uint16(29622), + 107: uint16(29621), + 108: uint16(29620), + 109: uint16(29675), + 110: uint16(29631), + 111: uint16(29639), + 112: uint16(29630), + 113: uint16(29635), + 114: uint16(29638), + 115: uint16(29624), + 116: uint16(29643), + 117: uint16(29932), + 118: uint16(29934), + 119: uint16(29998), + 120: uint16(30023), + 121: uint16(30024), + 122: uint16(30119), + 123: uint16(30122), + 124: uint16(30329), + 125: uint16(30404), + 126: uint16(30472), + 127: uint16(30467), + 128: uint16(30468), + 129: uint16(30469), + 130: uint16(30474), + 131: uint16(30455), + 132: uint16(30459), + 133: uint16(30458), + 134: uint16(30695), + 135: uint16(30696), + 136: uint16(30726), + 137: uint16(30737), + 138: uint16(30738), + 139: uint16(30725), + 140: uint16(30736), + 141: uint16(30735), + 142: uint16(30734), + 143: uint16(30729), + 144: uint16(30723), + 145: uint16(30739), + 146: uint16(31050), + 147: uint16(31052), + 148: uint16(31051), + 149: uint16(31045), + 150: uint16(31044), + 151: uint16(31189), + 152: uint16(31181), + 153: uint16(31183), + 154: uint16(31190), + 155: uint16(31182), + 156: uint16(31360), + }, + 47: { + 0: uint16(31358), + 1: uint16(31441), + 2: uint16(31488), + 3: uint16(31489), + 4: uint16(31866), + 5: uint16(31864), + 6: uint16(31865), + 7: uint16(31871), + 8: uint16(31872), + 9: uint16(31873), + 10: uint16(32003), + 11: uint16(32008), + 12: uint16(32001), + 13: uint16(32600), + 14: uint16(32657), + 15: uint16(32653), + 16: uint16(32702), + 17: uint16(32775), + 18: uint16(32782), + 19: uint16(32783), + 20: uint16(32788), + 21: uint16(32823), + 22: uint16(32984), + 23: uint16(32967), + 24: uint16(32992), + 25: uint16(32977), + 26: uint16(32968), + 27: uint16(32962), + 28: uint16(32976), + 29: uint16(32965), + 30: uint16(32995), + 31: uint16(32985), + 32: uint16(32988), + 33: uint16(32970), + 34: uint16(32981), + 35: uint16(32969), + 36: uint16(32975), + 37: uint16(32983), + 38: uint16(32998), + 39: uint16(32973), + 40: uint16(33279), + 41: uint16(33313), + 42: uint16(33428), + 43: uint16(33497), + 44: uint16(33534), + 45: uint16(33529), + 46: uint16(33543), + 47: uint16(33512), + 48: uint16(33536), + 49: uint16(33493), + 50: uint16(33594), + 51: uint16(33515), + 52: uint16(33494), + 53: uint16(33524), + 54: uint16(33516), + 55: uint16(33505), + 56: uint16(33522), + 57: uint16(33525), + 58: uint16(33548), + 59: uint16(33531), + 60: uint16(33526), + 61: uint16(33520), + 62: uint16(33514), + 63: uint16(33508), + 64: uint16(33504), + 65: uint16(33530), + 66: uint16(33523), + 67: uint16(33517), + 68: uint16(34423), + 69: uint16(34420), + 70: uint16(34428), + 71: uint16(34419), + 72: uint16(34881), + 73: uint16(34894), + 74: uint16(34919), + 75: uint16(34922), + 76: uint16(34921), + 77: uint16(35283), + 78: uint16(35332), + 79: uint16(35335), + 80: uint16(36210), + 81: uint16(36835), + 82: uint16(36833), + 83: uint16(36846), + 84: uint16(36832), + 85: uint16(37105), + 86: uint16(37053), + 87: uint16(37055), + 88: uint16(37077), + 89: uint16(37061), + 90: uint16(37054), + 91: uint16(37063), + 92: uint16(37067), + 93: uint16(37064), + 94: uint16(37332), + 95: uint16(37331), + 96: uint16(38484), + 97: uint16(38479), + 98: uint16(38481), + 99: uint16(38483), + 100: uint16(38474), + 101: uint16(38478), + 102: uint16(20510), + 103: uint16(20485), + 104: uint16(20487), + 105: uint16(20499), + 106: uint16(20514), + 107: uint16(20528), + 108: uint16(20507), + 109: uint16(20469), + 110: uint16(20468), + 111: uint16(20531), + 112: uint16(20535), + 113: uint16(20524), + 114: uint16(20470), + 115: uint16(20471), + 116: uint16(20503), + 117: uint16(20508), + 118: uint16(20512), + 119: uint16(20519), + 120: uint16(20533), + 121: uint16(20527), + 122: uint16(20529), + 123: uint16(20494), + 124: uint16(20826), + 125: uint16(20884), + 126: uint16(20883), + 127: uint16(20938), + 128: uint16(20932), + 129: uint16(20933), + 130: uint16(20936), + 131: uint16(20942), + 132: uint16(21089), + 133: uint16(21082), + 134: uint16(21074), + 135: uint16(21086), + 136: uint16(21087), + 137: uint16(21077), + 138: uint16(21090), + 139: uint16(21197), + 140: uint16(21262), + 141: uint16(21406), + 142: uint16(21798), + 143: uint16(21730), + 144: uint16(21783), + 145: uint16(21778), + 146: uint16(21735), + 147: uint16(21747), + 148: uint16(21732), + 149: uint16(21786), + 150: uint16(21759), + 151: uint16(21764), + 152: uint16(21768), + 153: uint16(21739), + 154: uint16(21777), + 155: uint16(21765), + 156: uint16(21745), + }, + 48: { + 0: uint16(21770), + 1: uint16(21755), + 2: uint16(21751), + 3: uint16(21752), + 4: uint16(21728), + 5: uint16(21774), + 6: uint16(21763), + 7: uint16(21771), + 8: uint16(22273), + 9: uint16(22274), + 10: uint16(22476), + 11: uint16(22578), + 12: uint16(22485), + 13: uint16(22482), + 14: uint16(22458), + 15: uint16(22470), + 16: uint16(22461), + 17: uint16(22460), + 18: uint16(22456), + 19: uint16(22454), + 20: uint16(22463), + 21: uint16(22471), + 22: uint16(22480), + 23: uint16(22457), + 24: uint16(22465), + 25: uint16(22798), + 26: uint16(22858), + 27: uint16(23065), + 28: uint16(23062), + 29: uint16(23085), + 30: uint16(23086), + 31: uint16(23061), + 32: uint16(23055), + 33: uint16(23063), + 34: uint16(23050), + 35: uint16(23070), + 36: uint16(23091), + 37: uint16(23404), + 38: uint16(23463), + 39: uint16(23469), + 40: uint16(23468), + 41: uint16(23555), + 42: uint16(23638), + 43: uint16(23636), + 44: uint16(23788), + 45: uint16(23807), + 46: uint16(23790), + 47: uint16(23793), + 48: uint16(23799), + 49: uint16(23808), + 50: uint16(23801), + 51: uint16(24105), + 52: uint16(24104), + 53: uint16(24232), + 54: uint16(24238), + 55: uint16(24234), + 56: uint16(24236), + 57: uint16(24371), + 58: uint16(24368), + 59: uint16(24423), + 60: uint16(24669), + 61: uint16(24666), + 62: uint16(24679), + 63: uint16(24641), + 64: uint16(24738), + 65: uint16(24712), + 66: uint16(24704), + 67: uint16(24722), + 68: uint16(24705), + 69: uint16(24733), + 70: uint16(24707), + 71: uint16(24725), + 72: uint16(24731), + 73: uint16(24727), + 74: uint16(24711), + 75: uint16(24732), + 76: uint16(24718), + 77: uint16(25113), + 78: uint16(25158), + 79: uint16(25330), + 80: uint16(25360), + 81: uint16(25430), + 82: uint16(25388), + 83: uint16(25412), + 84: uint16(25413), + 85: uint16(25398), + 86: uint16(25411), + 87: uint16(25572), + 88: uint16(25401), + 89: uint16(25419), + 90: uint16(25418), + 91: uint16(25404), + 92: uint16(25385), + 93: uint16(25409), + 94: uint16(25396), + 95: uint16(25432), + 96: uint16(25428), + 97: uint16(25433), + 98: uint16(25389), + 99: uint16(25415), + 100: uint16(25395), + 101: uint16(25434), + 102: uint16(25425), + 103: uint16(25400), + 104: uint16(25431), + 105: uint16(25408), + 106: uint16(25416), + 107: uint16(25930), + 108: uint16(25926), + 109: uint16(26054), + 110: uint16(26051), + 111: uint16(26052), + 112: uint16(26050), + 113: uint16(26186), + 114: uint16(26207), + 115: uint16(26183), + 116: uint16(26193), + 117: uint16(26386), + 118: uint16(26387), + 119: uint16(26655), + 120: uint16(26650), + 121: uint16(26697), + 122: uint16(26674), + 123: uint16(26675), + 124: uint16(26683), + 125: uint16(26699), + 126: uint16(26703), + 127: uint16(26646), + 128: uint16(26673), + 129: uint16(26652), + 130: uint16(26677), + 131: uint16(26667), + 132: uint16(26669), + 133: uint16(26671), + 134: uint16(26702), + 135: uint16(26692), + 136: uint16(26676), + 137: uint16(26653), + 138: uint16(26642), + 139: uint16(26644), + 140: uint16(26662), + 141: uint16(26664), + 142: uint16(26670), + 143: uint16(26701), + 144: uint16(26682), + 145: uint16(26661), + 146: uint16(26656), + 147: uint16(27436), + 148: uint16(27439), + 149: uint16(27437), + 150: uint16(27441), + 151: uint16(27444), + 152: uint16(27501), + 153: uint16(32898), + 154: uint16(27528), + 155: uint16(27622), + 156: uint16(27620), + }, + 49: { + 0: uint16(27624), + 1: uint16(27619), + 2: uint16(27618), + 3: uint16(27623), + 4: uint16(27685), + 5: uint16(28026), + 6: uint16(28003), + 7: uint16(28004), + 8: uint16(28022), + 9: uint16(27917), + 10: uint16(28001), + 11: uint16(28050), + 12: uint16(27992), + 13: uint16(28002), + 14: uint16(28013), + 15: uint16(28015), + 16: uint16(28049), + 17: uint16(28045), + 18: uint16(28143), + 19: uint16(28031), + 20: uint16(28038), + 21: uint16(27998), + 22: uint16(28007), + 23: uint16(28000), + 24: uint16(28055), + 25: uint16(28016), + 26: uint16(28028), + 27: uint16(27999), + 28: uint16(28034), + 29: uint16(28056), + 30: uint16(27951), + 31: uint16(28008), + 32: uint16(28043), + 33: uint16(28030), + 34: uint16(28032), + 35: uint16(28036), + 36: uint16(27926), + 37: uint16(28035), + 38: uint16(28027), + 39: uint16(28029), + 40: uint16(28021), + 41: uint16(28048), + 42: uint16(28892), + 43: uint16(28883), + 44: uint16(28881), + 45: uint16(28893), + 46: uint16(28875), + 47: uint16(32569), + 48: uint16(28898), + 49: uint16(28887), + 50: uint16(28882), + 51: uint16(28894), + 52: uint16(28896), + 53: uint16(28884), + 54: uint16(28877), + 55: uint16(28869), + 56: uint16(28870), + 57: uint16(28871), + 58: uint16(28890), + 59: uint16(28878), + 60: uint16(28897), + 61: uint16(29250), + 62: uint16(29304), + 63: uint16(29303), + 64: uint16(29302), + 65: uint16(29440), + 66: uint16(29434), + 67: uint16(29428), + 68: uint16(29438), + 69: uint16(29430), + 70: uint16(29427), + 71: uint16(29435), + 72: uint16(29441), + 73: uint16(29651), + 74: uint16(29657), + 75: uint16(29669), + 76: uint16(29654), + 77: uint16(29628), + 78: uint16(29671), + 79: uint16(29667), + 80: uint16(29673), + 81: uint16(29660), + 82: uint16(29650), + 83: uint16(29659), + 84: uint16(29652), + 85: uint16(29661), + 86: uint16(29658), + 87: uint16(29655), + 88: uint16(29656), + 89: uint16(29672), + 90: uint16(29918), + 91: uint16(29919), + 92: uint16(29940), + 93: uint16(29941), + 94: uint16(29985), + 95: uint16(30043), + 96: uint16(30047), + 97: uint16(30128), + 98: uint16(30145), + 99: uint16(30139), + 100: uint16(30148), + 101: uint16(30144), + 102: uint16(30143), + 103: uint16(30134), + 104: uint16(30138), + 105: uint16(30346), + 106: uint16(30409), + 107: uint16(30493), + 108: uint16(30491), + 109: uint16(30480), + 110: uint16(30483), + 111: uint16(30482), + 112: uint16(30499), + 113: uint16(30481), + 114: uint16(30485), + 115: uint16(30489), + 116: uint16(30490), + 117: uint16(30498), + 118: uint16(30503), + 119: uint16(30755), + 120: uint16(30764), + 121: uint16(30754), + 122: uint16(30773), + 123: uint16(30767), + 124: uint16(30760), + 125: uint16(30766), + 126: uint16(30763), + 127: uint16(30753), + 128: uint16(30761), + 129: uint16(30771), + 130: uint16(30762), + 131: uint16(30769), + 132: uint16(31060), + 133: uint16(31067), + 134: uint16(31055), + 135: uint16(31068), + 136: uint16(31059), + 137: uint16(31058), + 138: uint16(31057), + 139: uint16(31211), + 140: uint16(31212), + 141: uint16(31200), + 142: uint16(31214), + 143: uint16(31213), + 144: uint16(31210), + 145: uint16(31196), + 146: uint16(31198), + 147: uint16(31197), + 148: uint16(31366), + 149: uint16(31369), + 150: uint16(31365), + 151: uint16(31371), + 152: uint16(31372), + 153: uint16(31370), + 154: uint16(31367), + 155: uint16(31448), + 156: uint16(31504), + }, + 50: { + 0: uint16(31492), + 1: uint16(31507), + 2: uint16(31493), + 3: uint16(31503), + 4: uint16(31496), + 5: uint16(31498), + 6: uint16(31502), + 7: uint16(31497), + 8: uint16(31506), + 9: uint16(31876), + 10: uint16(31889), + 11: uint16(31882), + 12: uint16(31884), + 13: uint16(31880), + 14: uint16(31885), + 15: uint16(31877), + 16: uint16(32030), + 17: uint16(32029), + 18: uint16(32017), + 19: uint16(32014), + 20: uint16(32024), + 21: uint16(32022), + 22: uint16(32019), + 23: uint16(32031), + 24: uint16(32018), + 25: uint16(32015), + 26: uint16(32012), + 27: uint16(32604), + 28: uint16(32609), + 29: uint16(32606), + 30: uint16(32608), + 31: uint16(32605), + 32: uint16(32603), + 33: uint16(32662), + 34: uint16(32658), + 35: uint16(32707), + 36: uint16(32706), + 37: uint16(32704), + 38: uint16(32790), + 39: uint16(32830), + 40: uint16(32825), + 41: uint16(33018), + 42: uint16(33010), + 43: uint16(33017), + 44: uint16(33013), + 45: uint16(33025), + 46: uint16(33019), + 47: uint16(33024), + 48: uint16(33281), + 49: uint16(33327), + 50: uint16(33317), + 51: uint16(33587), + 52: uint16(33581), + 53: uint16(33604), + 54: uint16(33561), + 55: uint16(33617), + 56: uint16(33573), + 57: uint16(33622), + 58: uint16(33599), + 59: uint16(33601), + 60: uint16(33574), + 61: uint16(33564), + 62: uint16(33570), + 63: uint16(33602), + 64: uint16(33614), + 65: uint16(33563), + 66: uint16(33578), + 67: uint16(33544), + 68: uint16(33596), + 69: uint16(33613), + 70: uint16(33558), + 71: uint16(33572), + 72: uint16(33568), + 73: uint16(33591), + 74: uint16(33583), + 75: uint16(33577), + 76: uint16(33607), + 77: uint16(33605), + 78: uint16(33612), + 79: uint16(33619), + 80: uint16(33566), + 81: uint16(33580), + 82: uint16(33611), + 83: uint16(33575), + 84: uint16(33608), + 85: uint16(34387), + 86: uint16(34386), + 87: uint16(34466), + 88: uint16(34472), + 89: uint16(34454), + 90: uint16(34445), + 91: uint16(34449), + 92: uint16(34462), + 93: uint16(34439), + 94: uint16(34455), + 95: uint16(34438), + 96: uint16(34443), + 97: uint16(34458), + 98: uint16(34437), + 99: uint16(34469), + 100: uint16(34457), + 101: uint16(34465), + 102: uint16(34471), + 103: uint16(34453), + 104: uint16(34456), + 105: uint16(34446), + 106: uint16(34461), + 107: uint16(34448), + 108: uint16(34452), + 109: uint16(34883), + 110: uint16(34884), + 111: uint16(34925), + 112: uint16(34933), + 113: uint16(34934), + 114: uint16(34930), + 115: uint16(34944), + 116: uint16(34929), + 117: uint16(34943), + 118: uint16(34927), + 119: uint16(34947), + 120: uint16(34942), + 121: uint16(34932), + 122: uint16(34940), + 123: uint16(35346), + 124: uint16(35911), + 125: uint16(35927), + 126: uint16(35963), + 127: uint16(36004), + 128: uint16(36003), + 129: uint16(36214), + 130: uint16(36216), + 131: uint16(36277), + 132: uint16(36279), + 133: uint16(36278), + 134: uint16(36561), + 135: uint16(36563), + 136: uint16(36862), + 137: uint16(36853), + 138: uint16(36866), + 139: uint16(36863), + 140: uint16(36859), + 141: uint16(36868), + 142: uint16(36860), + 143: uint16(36854), + 144: uint16(37078), + 145: uint16(37088), + 146: uint16(37081), + 147: uint16(37082), + 148: uint16(37091), + 149: uint16(37087), + 150: uint16(37093), + 151: uint16(37080), + 152: uint16(37083), + 153: uint16(37079), + 154: uint16(37084), + 155: uint16(37092), + 156: uint16(37200), + }, + 51: { + 0: uint16(37198), + 1: uint16(37199), + 2: uint16(37333), + 3: uint16(37346), + 4: uint16(37338), + 5: uint16(38492), + 6: uint16(38495), + 7: uint16(38588), + 8: uint16(39139), + 9: uint16(39647), + 10: uint16(39727), + 11: uint16(20095), + 12: uint16(20592), + 13: uint16(20586), + 14: uint16(20577), + 15: uint16(20574), + 16: uint16(20576), + 17: uint16(20563), + 18: uint16(20555), + 19: uint16(20573), + 20: uint16(20594), + 21: uint16(20552), + 22: uint16(20557), + 23: uint16(20545), + 24: uint16(20571), + 25: uint16(20554), + 26: uint16(20578), + 27: uint16(20501), + 28: uint16(20549), + 29: uint16(20575), + 30: uint16(20585), + 31: uint16(20587), + 32: uint16(20579), + 33: uint16(20580), + 34: uint16(20550), + 35: uint16(20544), + 36: uint16(20590), + 37: uint16(20595), + 38: uint16(20567), + 39: uint16(20561), + 40: uint16(20944), + 41: uint16(21099), + 42: uint16(21101), + 43: uint16(21100), + 44: uint16(21102), + 45: uint16(21206), + 46: uint16(21203), + 47: uint16(21293), + 48: uint16(21404), + 49: uint16(21877), + 50: uint16(21878), + 51: uint16(21820), + 52: uint16(21837), + 53: uint16(21840), + 54: uint16(21812), + 55: uint16(21802), + 56: uint16(21841), + 57: uint16(21858), + 58: uint16(21814), + 59: uint16(21813), + 60: uint16(21808), + 61: uint16(21842), + 62: uint16(21829), + 63: uint16(21772), + 64: uint16(21810), + 65: uint16(21861), + 66: uint16(21838), + 67: uint16(21817), + 68: uint16(21832), + 69: uint16(21805), + 70: uint16(21819), + 71: uint16(21824), + 72: uint16(21835), + 73: uint16(22282), + 74: uint16(22279), + 75: uint16(22523), + 76: uint16(22548), + 77: uint16(22498), + 78: uint16(22518), + 79: uint16(22492), + 80: uint16(22516), + 81: uint16(22528), + 82: uint16(22509), + 83: uint16(22525), + 84: uint16(22536), + 85: uint16(22520), + 86: uint16(22539), + 87: uint16(22515), + 88: uint16(22479), + 89: uint16(22535), + 90: uint16(22510), + 91: uint16(22499), + 92: uint16(22514), + 93: uint16(22501), + 94: uint16(22508), + 95: uint16(22497), + 96: uint16(22542), + 97: uint16(22524), + 98: uint16(22544), + 99: uint16(22503), + 100: uint16(22529), + 101: uint16(22540), + 102: uint16(22513), + 103: uint16(22505), + 104: uint16(22512), + 105: uint16(22541), + 106: uint16(22532), + 107: uint16(22876), + 108: uint16(23136), + 109: uint16(23128), + 110: uint16(23125), + 111: uint16(23143), + 112: uint16(23134), + 113: uint16(23096), + 114: uint16(23093), + 115: uint16(23149), + 116: uint16(23120), + 117: uint16(23135), + 118: uint16(23141), + 119: uint16(23148), + 120: uint16(23123), + 121: uint16(23140), + 122: uint16(23127), + 123: uint16(23107), + 124: uint16(23133), + 125: uint16(23122), + 126: uint16(23108), + 127: uint16(23131), + 128: uint16(23112), + 129: uint16(23182), + 130: uint16(23102), + 131: uint16(23117), + 132: uint16(23097), + 133: uint16(23116), + 134: uint16(23152), + 135: uint16(23145), + 136: uint16(23111), + 137: uint16(23121), + 138: uint16(23126), + 139: uint16(23106), + 140: uint16(23132), + 141: uint16(23410), + 142: uint16(23406), + 143: uint16(23489), + 144: uint16(23488), + 145: uint16(23641), + 146: uint16(23838), + 147: uint16(23819), + 148: uint16(23837), + 149: uint16(23834), + 150: uint16(23840), + 151: uint16(23820), + 152: uint16(23848), + 153: uint16(23821), + 154: uint16(23846), + 155: uint16(23845), + 156: uint16(23823), + }, + 52: { + 0: uint16(23856), + 1: uint16(23826), + 2: uint16(23843), + 3: uint16(23839), + 4: uint16(23854), + 5: uint16(24126), + 6: uint16(24116), + 7: uint16(24241), + 8: uint16(24244), + 9: uint16(24249), + 10: uint16(24242), + 11: uint16(24243), + 12: uint16(24374), + 13: uint16(24376), + 14: uint16(24475), + 15: uint16(24470), + 16: uint16(24479), + 17: uint16(24714), + 18: uint16(24720), + 19: uint16(24710), + 20: uint16(24766), + 21: uint16(24752), + 22: uint16(24762), + 23: uint16(24787), + 24: uint16(24788), + 25: uint16(24783), + 26: uint16(24804), + 27: uint16(24793), + 28: uint16(24797), + 29: uint16(24776), + 30: uint16(24753), + 31: uint16(24795), + 32: uint16(24759), + 33: uint16(24778), + 34: uint16(24767), + 35: uint16(24771), + 36: uint16(24781), + 37: uint16(24768), + 38: uint16(25394), + 39: uint16(25445), + 40: uint16(25482), + 41: uint16(25474), + 42: uint16(25469), + 43: uint16(25533), + 44: uint16(25502), + 45: uint16(25517), + 46: uint16(25501), + 47: uint16(25495), + 48: uint16(25515), + 49: uint16(25486), + 50: uint16(25455), + 51: uint16(25479), + 52: uint16(25488), + 53: uint16(25454), + 54: uint16(25519), + 55: uint16(25461), + 56: uint16(25500), + 57: uint16(25453), + 58: uint16(25518), + 59: uint16(25468), + 60: uint16(25508), + 61: uint16(25403), + 62: uint16(25503), + 63: uint16(25464), + 64: uint16(25477), + 65: uint16(25473), + 66: uint16(25489), + 67: uint16(25485), + 68: uint16(25456), + 69: uint16(25939), + 70: uint16(26061), + 71: uint16(26213), + 72: uint16(26209), + 73: uint16(26203), + 74: uint16(26201), + 75: uint16(26204), + 76: uint16(26210), + 77: uint16(26392), + 78: uint16(26745), + 79: uint16(26759), + 80: uint16(26768), + 81: uint16(26780), + 82: uint16(26733), + 83: uint16(26734), + 84: uint16(26798), + 85: uint16(26795), + 86: uint16(26966), + 87: uint16(26735), + 88: uint16(26787), + 89: uint16(26796), + 90: uint16(26793), + 91: uint16(26741), + 92: uint16(26740), + 93: uint16(26802), + 94: uint16(26767), + 95: uint16(26743), + 96: uint16(26770), + 97: uint16(26748), + 98: uint16(26731), + 99: uint16(26738), + 100: uint16(26794), + 101: uint16(26752), + 102: uint16(26737), + 103: uint16(26750), + 104: uint16(26779), + 105: uint16(26774), + 106: uint16(26763), + 107: uint16(26784), + 108: uint16(26761), + 109: uint16(26788), + 110: uint16(26744), + 111: uint16(26747), + 112: uint16(26769), + 113: uint16(26764), + 114: uint16(26762), + 115: uint16(26749), + 116: uint16(27446), + 117: uint16(27443), + 118: uint16(27447), + 119: uint16(27448), + 120: uint16(27537), + 121: uint16(27535), + 122: uint16(27533), + 123: uint16(27534), + 124: uint16(27532), + 125: uint16(27690), + 126: uint16(28096), + 127: uint16(28075), + 128: uint16(28084), + 129: uint16(28083), + 130: uint16(28276), + 131: uint16(28076), + 132: uint16(28137), + 133: uint16(28130), + 134: uint16(28087), + 135: uint16(28150), + 136: uint16(28116), + 137: uint16(28160), + 138: uint16(28104), + 139: uint16(28128), + 140: uint16(28127), + 141: uint16(28118), + 142: uint16(28094), + 143: uint16(28133), + 144: uint16(28124), + 145: uint16(28125), + 146: uint16(28123), + 147: uint16(28148), + 148: uint16(28106), + 149: uint16(28093), + 150: uint16(28141), + 151: uint16(28144), + 152: uint16(28090), + 153: uint16(28117), + 154: uint16(28098), + 155: uint16(28111), + 156: uint16(28105), + }, + 53: { + 0: uint16(28112), + 1: uint16(28146), + 2: uint16(28115), + 3: uint16(28157), + 4: uint16(28119), + 5: uint16(28109), + 6: uint16(28131), + 7: uint16(28091), + 8: uint16(28922), + 9: uint16(28941), + 10: uint16(28919), + 11: uint16(28951), + 12: uint16(28916), + 13: uint16(28940), + 14: uint16(28912), + 15: uint16(28932), + 16: uint16(28915), + 17: uint16(28944), + 18: uint16(28924), + 19: uint16(28927), + 20: uint16(28934), + 21: uint16(28947), + 22: uint16(28928), + 23: uint16(28920), + 24: uint16(28918), + 25: uint16(28939), + 26: uint16(28930), + 27: uint16(28942), + 28: uint16(29310), + 29: uint16(29307), + 30: uint16(29308), + 31: uint16(29311), + 32: uint16(29469), + 33: uint16(29463), + 34: uint16(29447), + 35: uint16(29457), + 36: uint16(29464), + 37: uint16(29450), + 38: uint16(29448), + 39: uint16(29439), + 40: uint16(29455), + 41: uint16(29470), + 42: uint16(29576), + 43: uint16(29686), + 44: uint16(29688), + 45: uint16(29685), + 46: uint16(29700), + 47: uint16(29697), + 48: uint16(29693), + 49: uint16(29703), + 50: uint16(29696), + 51: uint16(29690), + 52: uint16(29692), + 53: uint16(29695), + 54: uint16(29708), + 55: uint16(29707), + 56: uint16(29684), + 57: uint16(29704), + 58: uint16(30052), + 59: uint16(30051), + 60: uint16(30158), + 61: uint16(30162), + 62: uint16(30159), + 63: uint16(30155), + 64: uint16(30156), + 65: uint16(30161), + 66: uint16(30160), + 67: uint16(30351), + 68: uint16(30345), + 69: uint16(30419), + 70: uint16(30521), + 71: uint16(30511), + 72: uint16(30509), + 73: uint16(30513), + 74: uint16(30514), + 75: uint16(30516), + 76: uint16(30515), + 77: uint16(30525), + 78: uint16(30501), + 79: uint16(30523), + 80: uint16(30517), + 81: uint16(30792), + 82: uint16(30802), + 83: uint16(30793), + 84: uint16(30797), + 85: uint16(30794), + 86: uint16(30796), + 87: uint16(30758), + 88: uint16(30789), + 89: uint16(30800), + 90: uint16(31076), + 91: uint16(31079), + 92: uint16(31081), + 93: uint16(31082), + 94: uint16(31075), + 95: uint16(31083), + 96: uint16(31073), + 97: uint16(31163), + 98: uint16(31226), + 99: uint16(31224), + 100: uint16(31222), + 101: uint16(31223), + 102: uint16(31375), + 103: uint16(31380), + 104: uint16(31376), + 105: uint16(31541), + 106: uint16(31559), + 107: uint16(31540), + 108: uint16(31525), + 109: uint16(31536), + 110: uint16(31522), + 111: uint16(31524), + 112: uint16(31539), + 113: uint16(31512), + 114: uint16(31530), + 115: uint16(31517), + 116: uint16(31537), + 117: uint16(31531), + 118: uint16(31533), + 119: uint16(31535), + 120: uint16(31538), + 121: uint16(31544), + 122: uint16(31514), + 123: uint16(31523), + 124: uint16(31892), + 125: uint16(31896), + 126: uint16(31894), + 127: uint16(31907), + 128: uint16(32053), + 129: uint16(32061), + 130: uint16(32056), + 131: uint16(32054), + 132: uint16(32058), + 133: uint16(32069), + 134: uint16(32044), + 135: uint16(32041), + 136: uint16(32065), + 137: uint16(32071), + 138: uint16(32062), + 139: uint16(32063), + 140: uint16(32074), + 141: uint16(32059), + 142: uint16(32040), + 143: uint16(32611), + 144: uint16(32661), + 145: uint16(32668), + 146: uint16(32669), + 147: uint16(32667), + 148: uint16(32714), + 149: uint16(32715), + 150: uint16(32717), + 151: uint16(32720), + 152: uint16(32721), + 153: uint16(32711), + 154: uint16(32719), + 155: uint16(32713), + 156: uint16(32799), + }, + 54: { + 0: uint16(32798), + 1: uint16(32795), + 2: uint16(32839), + 3: uint16(32835), + 4: uint16(32840), + 5: uint16(33048), + 6: uint16(33061), + 7: uint16(33049), + 8: uint16(33051), + 9: uint16(33069), + 10: uint16(33055), + 11: uint16(33068), + 12: uint16(33054), + 13: uint16(33057), + 14: uint16(33045), + 15: uint16(33063), + 16: uint16(33053), + 17: uint16(33058), + 18: uint16(33297), + 19: uint16(33336), + 20: uint16(33331), + 21: uint16(33338), + 22: uint16(33332), + 23: uint16(33330), + 24: uint16(33396), + 25: uint16(33680), + 26: uint16(33699), + 27: uint16(33704), + 28: uint16(33677), + 29: uint16(33658), + 30: uint16(33651), + 31: uint16(33700), + 32: uint16(33652), + 33: uint16(33679), + 34: uint16(33665), + 35: uint16(33685), + 36: uint16(33689), + 37: uint16(33653), + 38: uint16(33684), + 39: uint16(33705), + 40: uint16(33661), + 41: uint16(33667), + 42: uint16(33676), + 43: uint16(33693), + 44: uint16(33691), + 45: uint16(33706), + 46: uint16(33675), + 47: uint16(33662), + 48: uint16(33701), + 49: uint16(33711), + 50: uint16(33672), + 51: uint16(33687), + 52: uint16(33712), + 53: uint16(33663), + 54: uint16(33702), + 55: uint16(33671), + 56: uint16(33710), + 57: uint16(33654), + 58: uint16(33690), + 59: uint16(34393), + 60: uint16(34390), + 61: uint16(34495), + 62: uint16(34487), + 63: uint16(34498), + 64: uint16(34497), + 65: uint16(34501), + 66: uint16(34490), + 67: uint16(34480), + 68: uint16(34504), + 69: uint16(34489), + 70: uint16(34483), + 71: uint16(34488), + 72: uint16(34508), + 73: uint16(34484), + 74: uint16(34491), + 75: uint16(34492), + 76: uint16(34499), + 77: uint16(34493), + 78: uint16(34494), + 79: uint16(34898), + 80: uint16(34953), + 81: uint16(34965), + 82: uint16(34984), + 83: uint16(34978), + 84: uint16(34986), + 85: uint16(34970), + 86: uint16(34961), + 87: uint16(34977), + 88: uint16(34975), + 89: uint16(34968), + 90: uint16(34983), + 91: uint16(34969), + 92: uint16(34971), + 93: uint16(34967), + 94: uint16(34980), + 95: uint16(34988), + 96: uint16(34956), + 97: uint16(34963), + 98: uint16(34958), + 99: uint16(35202), + 100: uint16(35286), + 101: uint16(35289), + 102: uint16(35285), + 103: uint16(35376), + 104: uint16(35367), + 105: uint16(35372), + 106: uint16(35358), + 107: uint16(35897), + 108: uint16(35899), + 109: uint16(35932), + 110: uint16(35933), + 111: uint16(35965), + 112: uint16(36005), + 113: uint16(36221), + 114: uint16(36219), + 115: uint16(36217), + 116: uint16(36284), + 117: uint16(36290), + 118: uint16(36281), + 119: uint16(36287), + 120: uint16(36289), + 121: uint16(36568), + 122: uint16(36574), + 123: uint16(36573), + 124: uint16(36572), + 125: uint16(36567), + 126: uint16(36576), + 127: uint16(36577), + 128: uint16(36900), + 129: uint16(36875), + 130: uint16(36881), + 131: uint16(36892), + 132: uint16(36876), + 133: uint16(36897), + 134: uint16(37103), + 135: uint16(37098), + 136: uint16(37104), + 137: uint16(37108), + 138: uint16(37106), + 139: uint16(37107), + 140: uint16(37076), + 141: uint16(37099), + 142: uint16(37100), + 143: uint16(37097), + 144: uint16(37206), + 145: uint16(37208), + 146: uint16(37210), + 147: uint16(37203), + 148: uint16(37205), + 149: uint16(37356), + 150: uint16(37364), + 151: uint16(37361), + 152: uint16(37363), + 153: uint16(37368), + 154: uint16(37348), + 155: uint16(37369), + 156: uint16(37354), + }, + 55: { + 0: uint16(37355), + 1: uint16(37367), + 2: uint16(37352), + 3: uint16(37358), + 4: uint16(38266), + 5: uint16(38278), + 6: uint16(38280), + 7: uint16(38524), + 8: uint16(38509), + 9: uint16(38507), + 10: uint16(38513), + 11: uint16(38511), + 12: uint16(38591), + 13: uint16(38762), + 14: uint16(38916), + 15: uint16(39141), + 16: uint16(39319), + 17: uint16(20635), + 18: uint16(20629), + 19: uint16(20628), + 20: uint16(20638), + 21: uint16(20619), + 22: uint16(20643), + 23: uint16(20611), + 24: uint16(20620), + 25: uint16(20622), + 26: uint16(20637), + 27: uint16(20584), + 28: uint16(20636), + 29: uint16(20626), + 30: uint16(20610), + 31: uint16(20615), + 32: uint16(20831), + 33: uint16(20948), + 34: uint16(21266), + 35: uint16(21265), + 36: uint16(21412), + 37: uint16(21415), + 38: uint16(21905), + 39: uint16(21928), + 40: uint16(21925), + 41: uint16(21933), + 42: uint16(21879), + 43: uint16(22085), + 44: uint16(21922), + 45: uint16(21907), + 46: uint16(21896), + 47: uint16(21903), + 48: uint16(21941), + 49: uint16(21889), + 50: uint16(21923), + 51: uint16(21906), + 52: uint16(21924), + 53: uint16(21885), + 54: uint16(21900), + 55: uint16(21926), + 56: uint16(21887), + 57: uint16(21909), + 58: uint16(21921), + 59: uint16(21902), + 60: uint16(22284), + 61: uint16(22569), + 62: uint16(22583), + 63: uint16(22553), + 64: uint16(22558), + 65: uint16(22567), + 66: uint16(22563), + 67: uint16(22568), + 68: uint16(22517), + 69: uint16(22600), + 70: uint16(22565), + 71: uint16(22556), + 72: uint16(22555), + 73: uint16(22579), + 74: uint16(22591), + 75: uint16(22582), + 76: uint16(22574), + 77: uint16(22585), + 78: uint16(22584), + 79: uint16(22573), + 80: uint16(22572), + 81: uint16(22587), + 82: uint16(22881), + 83: uint16(23215), + 84: uint16(23188), + 85: uint16(23199), + 86: uint16(23162), + 87: uint16(23202), + 88: uint16(23198), + 89: uint16(23160), + 90: uint16(23206), + 91: uint16(23164), + 92: uint16(23205), + 93: uint16(23212), + 94: uint16(23189), + 95: uint16(23214), + 96: uint16(23095), + 97: uint16(23172), + 98: uint16(23178), + 99: uint16(23191), + 100: uint16(23171), + 101: uint16(23179), + 102: uint16(23209), + 103: uint16(23163), + 104: uint16(23165), + 105: uint16(23180), + 106: uint16(23196), + 107: uint16(23183), + 108: uint16(23187), + 109: uint16(23197), + 110: uint16(23530), + 111: uint16(23501), + 112: uint16(23499), + 113: uint16(23508), + 114: uint16(23505), + 115: uint16(23498), + 116: uint16(23502), + 117: uint16(23564), + 118: uint16(23600), + 119: uint16(23863), + 120: uint16(23875), + 121: uint16(23915), + 122: uint16(23873), + 123: uint16(23883), + 124: uint16(23871), + 125: uint16(23861), + 126: uint16(23889), + 127: uint16(23886), + 128: uint16(23893), + 129: uint16(23859), + 130: uint16(23866), + 131: uint16(23890), + 132: uint16(23869), + 133: uint16(23857), + 134: uint16(23897), + 135: uint16(23874), + 136: uint16(23865), + 137: uint16(23881), + 138: uint16(23864), + 139: uint16(23868), + 140: uint16(23858), + 141: uint16(23862), + 142: uint16(23872), + 143: uint16(23877), + 144: uint16(24132), + 145: uint16(24129), + 146: uint16(24408), + 147: uint16(24486), + 148: uint16(24485), + 149: uint16(24491), + 150: uint16(24777), + 151: uint16(24761), + 152: uint16(24780), + 153: uint16(24802), + 154: uint16(24782), + 155: uint16(24772), + 156: uint16(24852), + }, + 56: { + 0: uint16(24818), + 1: uint16(24842), + 2: uint16(24854), + 3: uint16(24837), + 4: uint16(24821), + 5: uint16(24851), + 6: uint16(24824), + 7: uint16(24828), + 8: uint16(24830), + 9: uint16(24769), + 10: uint16(24835), + 11: uint16(24856), + 12: uint16(24861), + 13: uint16(24848), + 14: uint16(24831), + 15: uint16(24836), + 16: uint16(24843), + 17: uint16(25162), + 18: uint16(25492), + 19: uint16(25521), + 20: uint16(25520), + 21: uint16(25550), + 22: uint16(25573), + 23: uint16(25576), + 24: uint16(25583), + 25: uint16(25539), + 26: uint16(25757), + 27: uint16(25587), + 28: uint16(25546), + 29: uint16(25568), + 30: uint16(25590), + 31: uint16(25557), + 32: uint16(25586), + 33: uint16(25589), + 34: uint16(25697), + 35: uint16(25567), + 36: uint16(25534), + 37: uint16(25565), + 38: uint16(25564), + 39: uint16(25540), + 40: uint16(25560), + 41: uint16(25555), + 42: uint16(25538), + 43: uint16(25543), + 44: uint16(25548), + 45: uint16(25547), + 46: uint16(25544), + 47: uint16(25584), + 48: uint16(25559), + 49: uint16(25561), + 50: uint16(25906), + 51: uint16(25959), + 52: uint16(25962), + 53: uint16(25956), + 54: uint16(25948), + 55: uint16(25960), + 56: uint16(25957), + 57: uint16(25996), + 58: uint16(26013), + 59: uint16(26014), + 60: uint16(26030), + 61: uint16(26064), + 62: uint16(26066), + 63: uint16(26236), + 64: uint16(26220), + 65: uint16(26235), + 66: uint16(26240), + 67: uint16(26225), + 68: uint16(26233), + 69: uint16(26218), + 70: uint16(26226), + 71: uint16(26369), + 72: uint16(26892), + 73: uint16(26835), + 74: uint16(26884), + 75: uint16(26844), + 76: uint16(26922), + 77: uint16(26860), + 78: uint16(26858), + 79: uint16(26865), + 80: uint16(26895), + 81: uint16(26838), + 82: uint16(26871), + 83: uint16(26859), + 84: uint16(26852), + 85: uint16(26870), + 86: uint16(26899), + 87: uint16(26896), + 88: uint16(26867), + 89: uint16(26849), + 90: uint16(26887), + 91: uint16(26828), + 92: uint16(26888), + 93: uint16(26992), + 94: uint16(26804), + 95: uint16(26897), + 96: uint16(26863), + 97: uint16(26822), + 98: uint16(26900), + 99: uint16(26872), + 100: uint16(26832), + 101: uint16(26877), + 102: uint16(26876), + 103: uint16(26856), + 104: uint16(26891), + 105: uint16(26890), + 106: uint16(26903), + 107: uint16(26830), + 108: uint16(26824), + 109: uint16(26845), + 110: uint16(26846), + 111: uint16(26854), + 112: uint16(26868), + 113: uint16(26833), + 114: uint16(26886), + 115: uint16(26836), + 116: uint16(26857), + 117: uint16(26901), + 118: uint16(26917), + 119: uint16(26823), + 120: uint16(27449), + 121: uint16(27451), + 122: uint16(27455), + 123: uint16(27452), + 124: uint16(27540), + 125: uint16(27543), + 126: uint16(27545), + 127: uint16(27541), + 128: uint16(27581), + 129: uint16(27632), + 130: uint16(27634), + 131: uint16(27635), + 132: uint16(27696), + 133: uint16(28156), + 134: uint16(28230), + 135: uint16(28231), + 136: uint16(28191), + 137: uint16(28233), + 138: uint16(28296), + 139: uint16(28220), + 140: uint16(28221), + 141: uint16(28229), + 142: uint16(28258), + 143: uint16(28203), + 144: uint16(28223), + 145: uint16(28225), + 146: uint16(28253), + 147: uint16(28275), + 148: uint16(28188), + 149: uint16(28211), + 150: uint16(28235), + 151: uint16(28224), + 152: uint16(28241), + 153: uint16(28219), + 154: uint16(28163), + 155: uint16(28206), + 156: uint16(28254), + }, + 57: { + 0: uint16(28264), + 1: uint16(28252), + 2: uint16(28257), + 3: uint16(28209), + 4: uint16(28200), + 5: uint16(28256), + 6: uint16(28273), + 7: uint16(28267), + 8: uint16(28217), + 9: uint16(28194), + 10: uint16(28208), + 11: uint16(28243), + 12: uint16(28261), + 13: uint16(28199), + 14: uint16(28280), + 15: uint16(28260), + 16: uint16(28279), + 17: uint16(28245), + 18: uint16(28281), + 19: uint16(28242), + 20: uint16(28262), + 21: uint16(28213), + 22: uint16(28214), + 23: uint16(28250), + 24: uint16(28960), + 25: uint16(28958), + 26: uint16(28975), + 27: uint16(28923), + 28: uint16(28974), + 29: uint16(28977), + 30: uint16(28963), + 31: uint16(28965), + 32: uint16(28962), + 33: uint16(28978), + 34: uint16(28959), + 35: uint16(28968), + 36: uint16(28986), + 37: uint16(28955), + 38: uint16(29259), + 39: uint16(29274), + 40: uint16(29320), + 41: uint16(29321), + 42: uint16(29318), + 43: uint16(29317), + 44: uint16(29323), + 45: uint16(29458), + 46: uint16(29451), + 47: uint16(29488), + 48: uint16(29474), + 49: uint16(29489), + 50: uint16(29491), + 51: uint16(29479), + 52: uint16(29490), + 53: uint16(29485), + 54: uint16(29478), + 55: uint16(29475), + 56: uint16(29493), + 57: uint16(29452), + 58: uint16(29742), + 59: uint16(29740), + 60: uint16(29744), + 61: uint16(29739), + 62: uint16(29718), + 63: uint16(29722), + 64: uint16(29729), + 65: uint16(29741), + 66: uint16(29745), + 67: uint16(29732), + 68: uint16(29731), + 69: uint16(29725), + 70: uint16(29737), + 71: uint16(29728), + 72: uint16(29746), + 73: uint16(29947), + 74: uint16(29999), + 75: uint16(30063), + 76: uint16(30060), + 77: uint16(30183), + 78: uint16(30170), + 79: uint16(30177), + 80: uint16(30182), + 81: uint16(30173), + 82: uint16(30175), + 83: uint16(30180), + 84: uint16(30167), + 85: uint16(30357), + 86: uint16(30354), + 87: uint16(30426), + 88: uint16(30534), + 89: uint16(30535), + 90: uint16(30532), + 91: uint16(30541), + 92: uint16(30533), + 93: uint16(30538), + 94: uint16(30542), + 95: uint16(30539), + 96: uint16(30540), + 97: uint16(30686), + 98: uint16(30700), + 99: uint16(30816), + 100: uint16(30820), + 101: uint16(30821), + 102: uint16(30812), + 103: uint16(30829), + 104: uint16(30833), + 105: uint16(30826), + 106: uint16(30830), + 107: uint16(30832), + 108: uint16(30825), + 109: uint16(30824), + 110: uint16(30814), + 111: uint16(30818), + 112: uint16(31092), + 113: uint16(31091), + 114: uint16(31090), + 115: uint16(31088), + 116: uint16(31234), + 117: uint16(31242), + 118: uint16(31235), + 119: uint16(31244), + 120: uint16(31236), + 121: uint16(31385), + 122: uint16(31462), + 123: uint16(31460), + 124: uint16(31562), + 125: uint16(31547), + 126: uint16(31556), + 127: uint16(31560), + 128: uint16(31564), + 129: uint16(31566), + 130: uint16(31552), + 131: uint16(31576), + 132: uint16(31557), + 133: uint16(31906), + 134: uint16(31902), + 135: uint16(31912), + 136: uint16(31905), + 137: uint16(32088), + 138: uint16(32111), + 139: uint16(32099), + 140: uint16(32083), + 141: uint16(32086), + 142: uint16(32103), + 143: uint16(32106), + 144: uint16(32079), + 145: uint16(32109), + 146: uint16(32092), + 147: uint16(32107), + 148: uint16(32082), + 149: uint16(32084), + 150: uint16(32105), + 151: uint16(32081), + 152: uint16(32095), + 153: uint16(32078), + 154: uint16(32574), + 155: uint16(32575), + 156: uint16(32613), + }, + 58: { + 0: uint16(32614), + 1: uint16(32674), + 2: uint16(32672), + 3: uint16(32673), + 4: uint16(32727), + 5: uint16(32849), + 6: uint16(32847), + 7: uint16(32848), + 8: uint16(33022), + 9: uint16(32980), + 10: uint16(33091), + 11: uint16(33098), + 12: uint16(33106), + 13: uint16(33103), + 14: uint16(33095), + 15: uint16(33085), + 16: uint16(33101), + 17: uint16(33082), + 18: uint16(33254), + 19: uint16(33262), + 20: uint16(33271), + 21: uint16(33272), + 22: uint16(33273), + 23: uint16(33284), + 24: uint16(33340), + 25: uint16(33341), + 26: uint16(33343), + 27: uint16(33397), + 28: uint16(33595), + 29: uint16(33743), + 30: uint16(33785), + 31: uint16(33827), + 32: uint16(33728), + 33: uint16(33768), + 34: uint16(33810), + 35: uint16(33767), + 36: uint16(33764), + 37: uint16(33788), + 38: uint16(33782), + 39: uint16(33808), + 40: uint16(33734), + 41: uint16(33736), + 42: uint16(33771), + 43: uint16(33763), + 44: uint16(33727), + 45: uint16(33793), + 46: uint16(33757), + 47: uint16(33765), + 48: uint16(33752), + 49: uint16(33791), + 50: uint16(33761), + 51: uint16(33739), + 52: uint16(33742), + 53: uint16(33750), + 54: uint16(33781), + 55: uint16(33737), + 56: uint16(33801), + 57: uint16(33807), + 58: uint16(33758), + 59: uint16(33809), + 60: uint16(33798), + 61: uint16(33730), + 62: uint16(33779), + 63: uint16(33749), + 64: uint16(33786), + 65: uint16(33735), + 66: uint16(33745), + 67: uint16(33770), + 68: uint16(33811), + 69: uint16(33731), + 70: uint16(33772), + 71: uint16(33774), + 72: uint16(33732), + 73: uint16(33787), + 74: uint16(33751), + 75: uint16(33762), + 76: uint16(33819), + 77: uint16(33755), + 78: uint16(33790), + 79: uint16(34520), + 80: uint16(34530), + 81: uint16(34534), + 82: uint16(34515), + 83: uint16(34531), + 84: uint16(34522), + 85: uint16(34538), + 86: uint16(34525), + 87: uint16(34539), + 88: uint16(34524), + 89: uint16(34540), + 90: uint16(34537), + 91: uint16(34519), + 92: uint16(34536), + 93: uint16(34513), + 94: uint16(34888), + 95: uint16(34902), + 96: uint16(34901), + 97: uint16(35002), + 98: uint16(35031), + 99: uint16(35001), + 100: uint16(35000), + 101: uint16(35008), + 102: uint16(35006), + 103: uint16(34998), + 104: uint16(35004), + 105: uint16(34999), + 106: uint16(35005), + 107: uint16(34994), + 108: uint16(35073), + 109: uint16(35017), + 110: uint16(35221), + 111: uint16(35224), + 112: uint16(35223), + 113: uint16(35293), + 114: uint16(35290), + 115: uint16(35291), + 116: uint16(35406), + 117: uint16(35405), + 118: uint16(35385), + 119: uint16(35417), + 120: uint16(35392), + 121: uint16(35415), + 122: uint16(35416), + 123: uint16(35396), + 124: uint16(35397), + 125: uint16(35410), + 126: uint16(35400), + 127: uint16(35409), + 128: uint16(35402), + 129: uint16(35404), + 130: uint16(35407), + 131: uint16(35935), + 132: uint16(35969), + 133: uint16(35968), + 134: uint16(36026), + 135: uint16(36030), + 136: uint16(36016), + 137: uint16(36025), + 138: uint16(36021), + 139: uint16(36228), + 140: uint16(36224), + 141: uint16(36233), + 142: uint16(36312), + 143: uint16(36307), + 144: uint16(36301), + 145: uint16(36295), + 146: uint16(36310), + 147: uint16(36316), + 148: uint16(36303), + 149: uint16(36309), + 150: uint16(36313), + 151: uint16(36296), + 152: uint16(36311), + 153: uint16(36293), + 154: uint16(36591), + 155: uint16(36599), + 156: uint16(36602), + }, + 59: { + 0: uint16(36601), + 1: uint16(36582), + 2: uint16(36590), + 3: uint16(36581), + 4: uint16(36597), + 5: uint16(36583), + 6: uint16(36584), + 7: uint16(36598), + 8: uint16(36587), + 9: uint16(36593), + 10: uint16(36588), + 11: uint16(36596), + 12: uint16(36585), + 13: uint16(36909), + 14: uint16(36916), + 15: uint16(36911), + 16: uint16(37126), + 17: uint16(37164), + 18: uint16(37124), + 19: uint16(37119), + 20: uint16(37116), + 21: uint16(37128), + 22: uint16(37113), + 23: uint16(37115), + 24: uint16(37121), + 25: uint16(37120), + 26: uint16(37127), + 27: uint16(37125), + 28: uint16(37123), + 29: uint16(37217), + 30: uint16(37220), + 31: uint16(37215), + 32: uint16(37218), + 33: uint16(37216), + 34: uint16(37377), + 35: uint16(37386), + 36: uint16(37413), + 37: uint16(37379), + 38: uint16(37402), + 39: uint16(37414), + 40: uint16(37391), + 41: uint16(37388), + 42: uint16(37376), + 43: uint16(37394), + 44: uint16(37375), + 45: uint16(37373), + 46: uint16(37382), + 47: uint16(37380), + 48: uint16(37415), + 49: uint16(37378), + 50: uint16(37404), + 51: uint16(37412), + 52: uint16(37401), + 53: uint16(37399), + 54: uint16(37381), + 55: uint16(37398), + 56: uint16(38267), + 57: uint16(38285), + 58: uint16(38284), + 59: uint16(38288), + 60: uint16(38535), + 61: uint16(38526), + 62: uint16(38536), + 63: uint16(38537), + 64: uint16(38531), + 65: uint16(38528), + 66: uint16(38594), + 67: uint16(38600), + 68: uint16(38595), + 69: uint16(38641), + 70: uint16(38640), + 71: uint16(38764), + 72: uint16(38768), + 73: uint16(38766), + 74: uint16(38919), + 75: uint16(39081), + 76: uint16(39147), + 77: uint16(40166), + 78: uint16(40697), + 79: uint16(20099), + 80: uint16(20100), + 81: uint16(20150), + 82: uint16(20669), + 83: uint16(20671), + 84: uint16(20678), + 85: uint16(20654), + 86: uint16(20676), + 87: uint16(20682), + 88: uint16(20660), + 89: uint16(20680), + 90: uint16(20674), + 91: uint16(20656), + 92: uint16(20673), + 93: uint16(20666), + 94: uint16(20657), + 95: uint16(20683), + 96: uint16(20681), + 97: uint16(20662), + 98: uint16(20664), + 99: uint16(20951), + 100: uint16(21114), + 101: uint16(21112), + 102: uint16(21115), + 103: uint16(21116), + 104: uint16(21955), + 105: uint16(21979), + 106: uint16(21964), + 107: uint16(21968), + 108: uint16(21963), + 109: uint16(21962), + 110: uint16(21981), + 111: uint16(21952), + 112: uint16(21972), + 113: uint16(21956), + 114: uint16(21993), + 115: uint16(21951), + 116: uint16(21970), + 117: uint16(21901), + 118: uint16(21967), + 119: uint16(21973), + 120: uint16(21986), + 121: uint16(21974), + 122: uint16(21960), + 123: uint16(22002), + 124: uint16(21965), + 125: uint16(21977), + 126: uint16(21954), + 127: uint16(22292), + 128: uint16(22611), + 129: uint16(22632), + 130: uint16(22628), + 131: uint16(22607), + 132: uint16(22605), + 133: uint16(22601), + 134: uint16(22639), + 135: uint16(22613), + 136: uint16(22606), + 137: uint16(22621), + 138: uint16(22617), + 139: uint16(22629), + 140: uint16(22619), + 141: uint16(22589), + 142: uint16(22627), + 143: uint16(22641), + 144: uint16(22780), + 145: uint16(23239), + 146: uint16(23236), + 147: uint16(23243), + 148: uint16(23226), + 149: uint16(23224), + 150: uint16(23217), + 151: uint16(23221), + 152: uint16(23216), + 153: uint16(23231), + 154: uint16(23240), + 155: uint16(23227), + 156: uint16(23238), + }, + 60: { + 0: uint16(23223), + 1: uint16(23232), + 2: uint16(23242), + 3: uint16(23220), + 4: uint16(23222), + 5: uint16(23245), + 6: uint16(23225), + 7: uint16(23184), + 8: uint16(23510), + 9: uint16(23512), + 10: uint16(23513), + 11: uint16(23583), + 12: uint16(23603), + 13: uint16(23921), + 14: uint16(23907), + 15: uint16(23882), + 16: uint16(23909), + 17: uint16(23922), + 18: uint16(23916), + 19: uint16(23902), + 20: uint16(23912), + 21: uint16(23911), + 22: uint16(23906), + 23: uint16(24048), + 24: uint16(24143), + 25: uint16(24142), + 26: uint16(24138), + 27: uint16(24141), + 28: uint16(24139), + 29: uint16(24261), + 30: uint16(24268), + 31: uint16(24262), + 32: uint16(24267), + 33: uint16(24263), + 34: uint16(24384), + 35: uint16(24495), + 36: uint16(24493), + 37: uint16(24823), + 38: uint16(24905), + 39: uint16(24906), + 40: uint16(24875), + 41: uint16(24901), + 42: uint16(24886), + 43: uint16(24882), + 44: uint16(24878), + 45: uint16(24902), + 46: uint16(24879), + 47: uint16(24911), + 48: uint16(24873), + 49: uint16(24896), + 50: uint16(25120), + 51: uint16(37224), + 52: uint16(25123), + 53: uint16(25125), + 54: uint16(25124), + 55: uint16(25541), + 56: uint16(25585), + 57: uint16(25579), + 58: uint16(25616), + 59: uint16(25618), + 60: uint16(25609), + 61: uint16(25632), + 62: uint16(25636), + 63: uint16(25651), + 64: uint16(25667), + 65: uint16(25631), + 66: uint16(25621), + 67: uint16(25624), + 68: uint16(25657), + 69: uint16(25655), + 70: uint16(25634), + 71: uint16(25635), + 72: uint16(25612), + 73: uint16(25638), + 74: uint16(25648), + 75: uint16(25640), + 76: uint16(25665), + 77: uint16(25653), + 78: uint16(25647), + 79: uint16(25610), + 80: uint16(25626), + 81: uint16(25664), + 82: uint16(25637), + 83: uint16(25639), + 84: uint16(25611), + 85: uint16(25575), + 86: uint16(25627), + 87: uint16(25646), + 88: uint16(25633), + 89: uint16(25614), + 90: uint16(25967), + 91: uint16(26002), + 92: uint16(26067), + 93: uint16(26246), + 94: uint16(26252), + 95: uint16(26261), + 96: uint16(26256), + 97: uint16(26251), + 98: uint16(26250), + 99: uint16(26265), + 100: uint16(26260), + 101: uint16(26232), + 102: uint16(26400), + 103: uint16(26982), + 104: uint16(26975), + 105: uint16(26936), + 106: uint16(26958), + 107: uint16(26978), + 108: uint16(26993), + 109: uint16(26943), + 110: uint16(26949), + 111: uint16(26986), + 112: uint16(26937), + 113: uint16(26946), + 114: uint16(26967), + 115: uint16(26969), + 116: uint16(27002), + 117: uint16(26952), + 118: uint16(26953), + 119: uint16(26933), + 120: uint16(26988), + 121: uint16(26931), + 122: uint16(26941), + 123: uint16(26981), + 124: uint16(26864), + 125: uint16(27000), + 126: uint16(26932), + 127: uint16(26985), + 128: uint16(26944), + 129: uint16(26991), + 130: uint16(26948), + 131: uint16(26998), + 132: uint16(26968), + 133: uint16(26945), + 134: uint16(26996), + 135: uint16(26956), + 136: uint16(26939), + 137: uint16(26955), + 138: uint16(26935), + 139: uint16(26972), + 140: uint16(26959), + 141: uint16(26961), + 142: uint16(26930), + 143: uint16(26962), + 144: uint16(26927), + 145: uint16(27003), + 146: uint16(26940), + 147: uint16(27462), + 148: uint16(27461), + 149: uint16(27459), + 150: uint16(27458), + 151: uint16(27464), + 152: uint16(27457), + 153: uint16(27547), + 154: uint16(64013), + 155: uint16(27643), + 156: uint16(27644), + }, + 61: { + 0: uint16(27641), + 1: uint16(27639), + 2: uint16(27640), + 3: uint16(28315), + 4: uint16(28374), + 5: uint16(28360), + 6: uint16(28303), + 7: uint16(28352), + 8: uint16(28319), + 9: uint16(28307), + 10: uint16(28308), + 11: uint16(28320), + 12: uint16(28337), + 13: uint16(28345), + 14: uint16(28358), + 15: uint16(28370), + 16: uint16(28349), + 17: uint16(28353), + 18: uint16(28318), + 19: uint16(28361), + 20: uint16(28343), + 21: uint16(28336), + 22: uint16(28365), + 23: uint16(28326), + 24: uint16(28367), + 25: uint16(28338), + 26: uint16(28350), + 27: uint16(28355), + 28: uint16(28380), + 29: uint16(28376), + 30: uint16(28313), + 31: uint16(28306), + 32: uint16(28302), + 33: uint16(28301), + 34: uint16(28324), + 35: uint16(28321), + 36: uint16(28351), + 37: uint16(28339), + 38: uint16(28368), + 39: uint16(28362), + 40: uint16(28311), + 41: uint16(28334), + 42: uint16(28323), + 43: uint16(28999), + 44: uint16(29012), + 45: uint16(29010), + 46: uint16(29027), + 47: uint16(29024), + 48: uint16(28993), + 49: uint16(29021), + 50: uint16(29026), + 51: uint16(29042), + 52: uint16(29048), + 53: uint16(29034), + 54: uint16(29025), + 55: uint16(28994), + 56: uint16(29016), + 57: uint16(28995), + 58: uint16(29003), + 59: uint16(29040), + 60: uint16(29023), + 61: uint16(29008), + 62: uint16(29011), + 63: uint16(28996), + 64: uint16(29005), + 65: uint16(29018), + 66: uint16(29263), + 67: uint16(29325), + 68: uint16(29324), + 69: uint16(29329), + 70: uint16(29328), + 71: uint16(29326), + 72: uint16(29500), + 73: uint16(29506), + 74: uint16(29499), + 75: uint16(29498), + 76: uint16(29504), + 77: uint16(29514), + 78: uint16(29513), + 79: uint16(29764), + 80: uint16(29770), + 81: uint16(29771), + 82: uint16(29778), + 83: uint16(29777), + 84: uint16(29783), + 85: uint16(29760), + 86: uint16(29775), + 87: uint16(29776), + 88: uint16(29774), + 89: uint16(29762), + 90: uint16(29766), + 91: uint16(29773), + 92: uint16(29780), + 93: uint16(29921), + 94: uint16(29951), + 95: uint16(29950), + 96: uint16(29949), + 97: uint16(29981), + 98: uint16(30073), + 99: uint16(30071), + 100: uint16(27011), + 101: uint16(30191), + 102: uint16(30223), + 103: uint16(30211), + 104: uint16(30199), + 105: uint16(30206), + 106: uint16(30204), + 107: uint16(30201), + 108: uint16(30200), + 109: uint16(30224), + 110: uint16(30203), + 111: uint16(30198), + 112: uint16(30189), + 113: uint16(30197), + 114: uint16(30205), + 115: uint16(30361), + 116: uint16(30389), + 117: uint16(30429), + 118: uint16(30549), + 119: uint16(30559), + 120: uint16(30560), + 121: uint16(30546), + 122: uint16(30550), + 123: uint16(30554), + 124: uint16(30569), + 125: uint16(30567), + 126: uint16(30548), + 127: uint16(30553), + 128: uint16(30573), + 129: uint16(30688), + 130: uint16(30855), + 131: uint16(30874), + 132: uint16(30868), + 133: uint16(30863), + 134: uint16(30852), + 135: uint16(30869), + 136: uint16(30853), + 137: uint16(30854), + 138: uint16(30881), + 139: uint16(30851), + 140: uint16(30841), + 141: uint16(30873), + 142: uint16(30848), + 143: uint16(30870), + 144: uint16(30843), + 145: uint16(31100), + 146: uint16(31106), + 147: uint16(31101), + 148: uint16(31097), + 149: uint16(31249), + 150: uint16(31256), + 151: uint16(31257), + 152: uint16(31250), + 153: uint16(31255), + 154: uint16(31253), + 155: uint16(31266), + 156: uint16(31251), + }, + 62: { + 0: uint16(31259), + 1: uint16(31248), + 2: uint16(31395), + 3: uint16(31394), + 4: uint16(31390), + 5: uint16(31467), + 6: uint16(31590), + 7: uint16(31588), + 8: uint16(31597), + 9: uint16(31604), + 10: uint16(31593), + 11: uint16(31602), + 12: uint16(31589), + 13: uint16(31603), + 14: uint16(31601), + 15: uint16(31600), + 16: uint16(31585), + 17: uint16(31608), + 18: uint16(31606), + 19: uint16(31587), + 20: uint16(31922), + 21: uint16(31924), + 22: uint16(31919), + 23: uint16(32136), + 24: uint16(32134), + 25: uint16(32128), + 26: uint16(32141), + 27: uint16(32127), + 28: uint16(32133), + 29: uint16(32122), + 30: uint16(32142), + 31: uint16(32123), + 32: uint16(32131), + 33: uint16(32124), + 34: uint16(32140), + 35: uint16(32148), + 36: uint16(32132), + 37: uint16(32125), + 38: uint16(32146), + 39: uint16(32621), + 40: uint16(32619), + 41: uint16(32615), + 42: uint16(32616), + 43: uint16(32620), + 44: uint16(32678), + 45: uint16(32677), + 46: uint16(32679), + 47: uint16(32731), + 48: uint16(32732), + 49: uint16(32801), + 50: uint16(33124), + 51: uint16(33120), + 52: uint16(33143), + 53: uint16(33116), + 54: uint16(33129), + 55: uint16(33115), + 56: uint16(33122), + 57: uint16(33138), + 58: uint16(26401), + 59: uint16(33118), + 60: uint16(33142), + 61: uint16(33127), + 62: uint16(33135), + 63: uint16(33092), + 64: uint16(33121), + 65: uint16(33309), + 66: uint16(33353), + 67: uint16(33348), + 68: uint16(33344), + 69: uint16(33346), + 70: uint16(33349), + 71: uint16(34033), + 72: uint16(33855), + 73: uint16(33878), + 74: uint16(33910), + 75: uint16(33913), + 76: uint16(33935), + 77: uint16(33933), + 78: uint16(33893), + 79: uint16(33873), + 80: uint16(33856), + 81: uint16(33926), + 82: uint16(33895), + 83: uint16(33840), + 84: uint16(33869), + 85: uint16(33917), + 86: uint16(33882), + 87: uint16(33881), + 88: uint16(33908), + 89: uint16(33907), + 90: uint16(33885), + 91: uint16(34055), + 92: uint16(33886), + 93: uint16(33847), + 94: uint16(33850), + 95: uint16(33844), + 96: uint16(33914), + 97: uint16(33859), + 98: uint16(33912), + 99: uint16(33842), + 100: uint16(33861), + 101: uint16(33833), + 102: uint16(33753), + 103: uint16(33867), + 104: uint16(33839), + 105: uint16(33858), + 106: uint16(33837), + 107: uint16(33887), + 108: uint16(33904), + 109: uint16(33849), + 110: uint16(33870), + 111: uint16(33868), + 112: uint16(33874), + 113: uint16(33903), + 114: uint16(33989), + 115: uint16(33934), + 116: uint16(33851), + 117: uint16(33863), + 118: uint16(33846), + 119: uint16(33843), + 120: uint16(33896), + 121: uint16(33918), + 122: uint16(33860), + 123: uint16(33835), + 124: uint16(33888), + 125: uint16(33876), + 126: uint16(33902), + 127: uint16(33872), + 128: uint16(34571), + 129: uint16(34564), + 130: uint16(34551), + 131: uint16(34572), + 132: uint16(34554), + 133: uint16(34518), + 134: uint16(34549), + 135: uint16(34637), + 136: uint16(34552), + 137: uint16(34574), + 138: uint16(34569), + 139: uint16(34561), + 140: uint16(34550), + 141: uint16(34573), + 142: uint16(34565), + 143: uint16(35030), + 144: uint16(35019), + 145: uint16(35021), + 146: uint16(35022), + 147: uint16(35038), + 148: uint16(35035), + 149: uint16(35034), + 150: uint16(35020), + 151: uint16(35024), + 152: uint16(35205), + 153: uint16(35227), + 154: uint16(35295), + 155: uint16(35301), + 156: uint16(35300), + }, + 63: { + 0: uint16(35297), + 1: uint16(35296), + 2: uint16(35298), + 3: uint16(35292), + 4: uint16(35302), + 5: uint16(35446), + 6: uint16(35462), + 7: uint16(35455), + 8: uint16(35425), + 9: uint16(35391), + 10: uint16(35447), + 11: uint16(35458), + 12: uint16(35460), + 13: uint16(35445), + 14: uint16(35459), + 15: uint16(35457), + 16: uint16(35444), + 17: uint16(35450), + 18: uint16(35900), + 19: uint16(35915), + 20: uint16(35914), + 21: uint16(35941), + 22: uint16(35940), + 23: uint16(35942), + 24: uint16(35974), + 25: uint16(35972), + 26: uint16(35973), + 27: uint16(36044), + 28: uint16(36200), + 29: uint16(36201), + 30: uint16(36241), + 31: uint16(36236), + 32: uint16(36238), + 33: uint16(36239), + 34: uint16(36237), + 35: uint16(36243), + 36: uint16(36244), + 37: uint16(36240), + 38: uint16(36242), + 39: uint16(36336), + 40: uint16(36320), + 41: uint16(36332), + 42: uint16(36337), + 43: uint16(36334), + 44: uint16(36304), + 45: uint16(36329), + 46: uint16(36323), + 47: uint16(36322), + 48: uint16(36327), + 49: uint16(36338), + 50: uint16(36331), + 51: uint16(36340), + 52: uint16(36614), + 53: uint16(36607), + 54: uint16(36609), + 55: uint16(36608), + 56: uint16(36613), + 57: uint16(36615), + 58: uint16(36616), + 59: uint16(36610), + 60: uint16(36619), + 61: uint16(36946), + 62: uint16(36927), + 63: uint16(36932), + 64: uint16(36937), + 65: uint16(36925), + 66: uint16(37136), + 67: uint16(37133), + 68: uint16(37135), + 69: uint16(37137), + 70: uint16(37142), + 71: uint16(37140), + 72: uint16(37131), + 73: uint16(37134), + 74: uint16(37230), + 75: uint16(37231), + 76: uint16(37448), + 77: uint16(37458), + 78: uint16(37424), + 79: uint16(37434), + 80: uint16(37478), + 81: uint16(37427), + 82: uint16(37477), + 83: uint16(37470), + 84: uint16(37507), + 85: uint16(37422), + 86: uint16(37450), + 87: uint16(37446), + 88: uint16(37485), + 89: uint16(37484), + 90: uint16(37455), + 91: uint16(37472), + 92: uint16(37479), + 93: uint16(37487), + 94: uint16(37430), + 95: uint16(37473), + 96: uint16(37488), + 97: uint16(37425), + 98: uint16(37460), + 99: uint16(37475), + 100: uint16(37456), + 101: uint16(37490), + 102: uint16(37454), + 103: uint16(37459), + 104: uint16(37452), + 105: uint16(37462), + 106: uint16(37426), + 107: uint16(38303), + 108: uint16(38300), + 109: uint16(38302), + 110: uint16(38299), + 111: uint16(38546), + 112: uint16(38547), + 113: uint16(38545), + 114: uint16(38551), + 115: uint16(38606), + 116: uint16(38650), + 117: uint16(38653), + 118: uint16(38648), + 119: uint16(38645), + 120: uint16(38771), + 121: uint16(38775), + 122: uint16(38776), + 123: uint16(38770), + 124: uint16(38927), + 125: uint16(38925), + 126: uint16(38926), + 127: uint16(39084), + 128: uint16(39158), + 129: uint16(39161), + 130: uint16(39343), + 131: uint16(39346), + 132: uint16(39344), + 133: uint16(39349), + 134: uint16(39597), + 135: uint16(39595), + 136: uint16(39771), + 137: uint16(40170), + 138: uint16(40173), + 139: uint16(40167), + 140: uint16(40576), + 141: uint16(40701), + 142: uint16(20710), + 143: uint16(20692), + 144: uint16(20695), + 145: uint16(20712), + 146: uint16(20723), + 147: uint16(20699), + 148: uint16(20714), + 149: uint16(20701), + 150: uint16(20708), + 151: uint16(20691), + 152: uint16(20716), + 153: uint16(20720), + 154: uint16(20719), + 155: uint16(20707), + 156: uint16(20704), + }, + 64: { + 0: uint16(20952), + 1: uint16(21120), + 2: uint16(21121), + 3: uint16(21225), + 4: uint16(21227), + 5: uint16(21296), + 6: uint16(21420), + 7: uint16(22055), + 8: uint16(22037), + 9: uint16(22028), + 10: uint16(22034), + 11: uint16(22012), + 12: uint16(22031), + 13: uint16(22044), + 14: uint16(22017), + 15: uint16(22035), + 16: uint16(22018), + 17: uint16(22010), + 18: uint16(22045), + 19: uint16(22020), + 20: uint16(22015), + 21: uint16(22009), + 22: uint16(22665), + 23: uint16(22652), + 24: uint16(22672), + 25: uint16(22680), + 26: uint16(22662), + 27: uint16(22657), + 28: uint16(22655), + 29: uint16(22644), + 30: uint16(22667), + 31: uint16(22650), + 32: uint16(22663), + 33: uint16(22673), + 34: uint16(22670), + 35: uint16(22646), + 36: uint16(22658), + 37: uint16(22664), + 38: uint16(22651), + 39: uint16(22676), + 40: uint16(22671), + 41: uint16(22782), + 42: uint16(22891), + 43: uint16(23260), + 44: uint16(23278), + 45: uint16(23269), + 46: uint16(23253), + 47: uint16(23274), + 48: uint16(23258), + 49: uint16(23277), + 50: uint16(23275), + 51: uint16(23283), + 52: uint16(23266), + 53: uint16(23264), + 54: uint16(23259), + 55: uint16(23276), + 56: uint16(23262), + 57: uint16(23261), + 58: uint16(23257), + 59: uint16(23272), + 60: uint16(23263), + 61: uint16(23415), + 62: uint16(23520), + 63: uint16(23523), + 64: uint16(23651), + 65: uint16(23938), + 66: uint16(23936), + 67: uint16(23933), + 68: uint16(23942), + 69: uint16(23930), + 70: uint16(23937), + 71: uint16(23927), + 72: uint16(23946), + 73: uint16(23945), + 74: uint16(23944), + 75: uint16(23934), + 76: uint16(23932), + 77: uint16(23949), + 78: uint16(23929), + 79: uint16(23935), + 80: uint16(24152), + 81: uint16(24153), + 82: uint16(24147), + 83: uint16(24280), + 84: uint16(24273), + 85: uint16(24279), + 86: uint16(24270), + 87: uint16(24284), + 88: uint16(24277), + 89: uint16(24281), + 90: uint16(24274), + 91: uint16(24276), + 92: uint16(24388), + 93: uint16(24387), + 94: uint16(24431), + 95: uint16(24502), + 96: uint16(24876), + 97: uint16(24872), + 98: uint16(24897), + 99: uint16(24926), + 100: uint16(24945), + 101: uint16(24947), + 102: uint16(24914), + 103: uint16(24915), + 104: uint16(24946), + 105: uint16(24940), + 106: uint16(24960), + 107: uint16(24948), + 108: uint16(24916), + 109: uint16(24954), + 110: uint16(24923), + 111: uint16(24933), + 112: uint16(24891), + 113: uint16(24938), + 114: uint16(24929), + 115: uint16(24918), + 116: uint16(25129), + 117: uint16(25127), + 118: uint16(25131), + 119: uint16(25643), + 120: uint16(25677), + 121: uint16(25691), + 122: uint16(25693), + 123: uint16(25716), + 124: uint16(25718), + 125: uint16(25714), + 126: uint16(25715), + 127: uint16(25725), + 128: uint16(25717), + 129: uint16(25702), + 130: uint16(25766), + 131: uint16(25678), + 132: uint16(25730), + 133: uint16(25694), + 134: uint16(25692), + 135: uint16(25675), + 136: uint16(25683), + 137: uint16(25696), + 138: uint16(25680), + 139: uint16(25727), + 140: uint16(25663), + 141: uint16(25708), + 142: uint16(25707), + 143: uint16(25689), + 144: uint16(25701), + 145: uint16(25719), + 146: uint16(25971), + 147: uint16(26016), + 148: uint16(26273), + 149: uint16(26272), + 150: uint16(26271), + 151: uint16(26373), + 152: uint16(26372), + 153: uint16(26402), + 154: uint16(27057), + 155: uint16(27062), + 156: uint16(27081), + }, + 65: { + 0: uint16(27040), + 1: uint16(27086), + 2: uint16(27030), + 3: uint16(27056), + 4: uint16(27052), + 5: uint16(27068), + 6: uint16(27025), + 7: uint16(27033), + 8: uint16(27022), + 9: uint16(27047), + 10: uint16(27021), + 11: uint16(27049), + 12: uint16(27070), + 13: uint16(27055), + 14: uint16(27071), + 15: uint16(27076), + 16: uint16(27069), + 17: uint16(27044), + 18: uint16(27092), + 19: uint16(27065), + 20: uint16(27082), + 21: uint16(27034), + 22: uint16(27087), + 23: uint16(27059), + 24: uint16(27027), + 25: uint16(27050), + 26: uint16(27041), + 27: uint16(27038), + 28: uint16(27097), + 29: uint16(27031), + 30: uint16(27024), + 31: uint16(27074), + 32: uint16(27061), + 33: uint16(27045), + 34: uint16(27078), + 35: uint16(27466), + 36: uint16(27469), + 37: uint16(27467), + 38: uint16(27550), + 39: uint16(27551), + 40: uint16(27552), + 41: uint16(27587), + 42: uint16(27588), + 43: uint16(27646), + 44: uint16(28366), + 45: uint16(28405), + 46: uint16(28401), + 47: uint16(28419), + 48: uint16(28453), + 49: uint16(28408), + 50: uint16(28471), + 51: uint16(28411), + 52: uint16(28462), + 53: uint16(28425), + 54: uint16(28494), + 55: uint16(28441), + 56: uint16(28442), + 57: uint16(28455), + 58: uint16(28440), + 59: uint16(28475), + 60: uint16(28434), + 61: uint16(28397), + 62: uint16(28426), + 63: uint16(28470), + 64: uint16(28531), + 65: uint16(28409), + 66: uint16(28398), + 67: uint16(28461), + 68: uint16(28480), + 69: uint16(28464), + 70: uint16(28476), + 71: uint16(28469), + 72: uint16(28395), + 73: uint16(28423), + 74: uint16(28430), + 75: uint16(28483), + 76: uint16(28421), + 77: uint16(28413), + 78: uint16(28406), + 79: uint16(28473), + 80: uint16(28444), + 81: uint16(28412), + 82: uint16(28474), + 83: uint16(28447), + 84: uint16(28429), + 85: uint16(28446), + 86: uint16(28424), + 87: uint16(28449), + 88: uint16(29063), + 89: uint16(29072), + 90: uint16(29065), + 91: uint16(29056), + 92: uint16(29061), + 93: uint16(29058), + 94: uint16(29071), + 95: uint16(29051), + 96: uint16(29062), + 97: uint16(29057), + 98: uint16(29079), + 99: uint16(29252), + 100: uint16(29267), + 101: uint16(29335), + 102: uint16(29333), + 103: uint16(29331), + 104: uint16(29507), + 105: uint16(29517), + 106: uint16(29521), + 107: uint16(29516), + 108: uint16(29794), + 109: uint16(29811), + 110: uint16(29809), + 111: uint16(29813), + 112: uint16(29810), + 113: uint16(29799), + 114: uint16(29806), + 115: uint16(29952), + 116: uint16(29954), + 117: uint16(29955), + 118: uint16(30077), + 119: uint16(30096), + 120: uint16(30230), + 121: uint16(30216), + 122: uint16(30220), + 123: uint16(30229), + 124: uint16(30225), + 125: uint16(30218), + 126: uint16(30228), + 127: uint16(30392), + 128: uint16(30593), + 129: uint16(30588), + 130: uint16(30597), + 131: uint16(30594), + 132: uint16(30574), + 133: uint16(30592), + 134: uint16(30575), + 135: uint16(30590), + 136: uint16(30595), + 137: uint16(30898), + 138: uint16(30890), + 139: uint16(30900), + 140: uint16(30893), + 141: uint16(30888), + 142: uint16(30846), + 143: uint16(30891), + 144: uint16(30878), + 145: uint16(30885), + 146: uint16(30880), + 147: uint16(30892), + 148: uint16(30882), + 149: uint16(30884), + 150: uint16(31128), + 151: uint16(31114), + 152: uint16(31115), + 153: uint16(31126), + 154: uint16(31125), + 155: uint16(31124), + 156: uint16(31123), + }, + 66: { + 0: uint16(31127), + 1: uint16(31112), + 2: uint16(31122), + 3: uint16(31120), + 4: uint16(31275), + 5: uint16(31306), + 6: uint16(31280), + 7: uint16(31279), + 8: uint16(31272), + 9: uint16(31270), + 10: uint16(31400), + 11: uint16(31403), + 12: uint16(31404), + 13: uint16(31470), + 14: uint16(31624), + 15: uint16(31644), + 16: uint16(31626), + 17: uint16(31633), + 18: uint16(31632), + 19: uint16(31638), + 20: uint16(31629), + 21: uint16(31628), + 22: uint16(31643), + 23: uint16(31630), + 24: uint16(31621), + 25: uint16(31640), + 26: uint16(21124), + 27: uint16(31641), + 28: uint16(31652), + 29: uint16(31618), + 30: uint16(31931), + 31: uint16(31935), + 32: uint16(31932), + 33: uint16(31930), + 34: uint16(32167), + 35: uint16(32183), + 36: uint16(32194), + 37: uint16(32163), + 38: uint16(32170), + 39: uint16(32193), + 40: uint16(32192), + 41: uint16(32197), + 42: uint16(32157), + 43: uint16(32206), + 44: uint16(32196), + 45: uint16(32198), + 46: uint16(32203), + 47: uint16(32204), + 48: uint16(32175), + 49: uint16(32185), + 50: uint16(32150), + 51: uint16(32188), + 52: uint16(32159), + 53: uint16(32166), + 54: uint16(32174), + 55: uint16(32169), + 56: uint16(32161), + 57: uint16(32201), + 58: uint16(32627), + 59: uint16(32738), + 60: uint16(32739), + 61: uint16(32741), + 62: uint16(32734), + 63: uint16(32804), + 64: uint16(32861), + 65: uint16(32860), + 66: uint16(33161), + 67: uint16(33158), + 68: uint16(33155), + 69: uint16(33159), + 70: uint16(33165), + 71: uint16(33164), + 72: uint16(33163), + 73: uint16(33301), + 74: uint16(33943), + 75: uint16(33956), + 76: uint16(33953), + 77: uint16(33951), + 78: uint16(33978), + 79: uint16(33998), + 80: uint16(33986), + 81: uint16(33964), + 82: uint16(33966), + 83: uint16(33963), + 84: uint16(33977), + 85: uint16(33972), + 86: uint16(33985), + 87: uint16(33997), + 88: uint16(33962), + 89: uint16(33946), + 90: uint16(33969), + 91: uint16(34000), + 92: uint16(33949), + 93: uint16(33959), + 94: uint16(33979), + 95: uint16(33954), + 96: uint16(33940), + 97: uint16(33991), + 98: uint16(33996), + 99: uint16(33947), + 100: uint16(33961), + 101: uint16(33967), + 102: uint16(33960), + 103: uint16(34006), + 104: uint16(33944), + 105: uint16(33974), + 106: uint16(33999), + 107: uint16(33952), + 108: uint16(34007), + 109: uint16(34004), + 110: uint16(34002), + 111: uint16(34011), + 112: uint16(33968), + 113: uint16(33937), + 114: uint16(34401), + 115: uint16(34611), + 116: uint16(34595), + 117: uint16(34600), + 118: uint16(34667), + 119: uint16(34624), + 120: uint16(34606), + 121: uint16(34590), + 122: uint16(34593), + 123: uint16(34585), + 124: uint16(34587), + 125: uint16(34627), + 126: uint16(34604), + 127: uint16(34625), + 128: uint16(34622), + 129: uint16(34630), + 130: uint16(34592), + 131: uint16(34610), + 132: uint16(34602), + 133: uint16(34605), + 134: uint16(34620), + 135: uint16(34578), + 136: uint16(34618), + 137: uint16(34609), + 138: uint16(34613), + 139: uint16(34626), + 140: uint16(34598), + 141: uint16(34599), + 142: uint16(34616), + 143: uint16(34596), + 144: uint16(34586), + 145: uint16(34608), + 146: uint16(34577), + 147: uint16(35063), + 148: uint16(35047), + 149: uint16(35057), + 150: uint16(35058), + 151: uint16(35066), + 152: uint16(35070), + 153: uint16(35054), + 154: uint16(35068), + 155: uint16(35062), + 156: uint16(35067), + }, + 67: { + 0: uint16(35056), + 1: uint16(35052), + 2: uint16(35051), + 3: uint16(35229), + 4: uint16(35233), + 5: uint16(35231), + 6: uint16(35230), + 7: uint16(35305), + 8: uint16(35307), + 9: uint16(35304), + 10: uint16(35499), + 11: uint16(35481), + 12: uint16(35467), + 13: uint16(35474), + 14: uint16(35471), + 15: uint16(35478), + 16: uint16(35901), + 17: uint16(35944), + 18: uint16(35945), + 19: uint16(36053), + 20: uint16(36047), + 21: uint16(36055), + 22: uint16(36246), + 23: uint16(36361), + 24: uint16(36354), + 25: uint16(36351), + 26: uint16(36365), + 27: uint16(36349), + 28: uint16(36362), + 29: uint16(36355), + 30: uint16(36359), + 31: uint16(36358), + 32: uint16(36357), + 33: uint16(36350), + 34: uint16(36352), + 35: uint16(36356), + 36: uint16(36624), + 37: uint16(36625), + 38: uint16(36622), + 39: uint16(36621), + 40: uint16(37155), + 41: uint16(37148), + 42: uint16(37152), + 43: uint16(37154), + 44: uint16(37151), + 45: uint16(37149), + 46: uint16(37146), + 47: uint16(37156), + 48: uint16(37153), + 49: uint16(37147), + 50: uint16(37242), + 51: uint16(37234), + 52: uint16(37241), + 53: uint16(37235), + 54: uint16(37541), + 55: uint16(37540), + 56: uint16(37494), + 57: uint16(37531), + 58: uint16(37498), + 59: uint16(37536), + 60: uint16(37524), + 61: uint16(37546), + 62: uint16(37517), + 63: uint16(37542), + 64: uint16(37530), + 65: uint16(37547), + 66: uint16(37497), + 67: uint16(37527), + 68: uint16(37503), + 69: uint16(37539), + 70: uint16(37614), + 71: uint16(37518), + 72: uint16(37506), + 73: uint16(37525), + 74: uint16(37538), + 75: uint16(37501), + 76: uint16(37512), + 77: uint16(37537), + 78: uint16(37514), + 79: uint16(37510), + 80: uint16(37516), + 81: uint16(37529), + 82: uint16(37543), + 83: uint16(37502), + 84: uint16(37511), + 85: uint16(37545), + 86: uint16(37533), + 87: uint16(37515), + 88: uint16(37421), + 89: uint16(38558), + 90: uint16(38561), + 91: uint16(38655), + 92: uint16(38744), + 93: uint16(38781), + 94: uint16(38778), + 95: uint16(38782), + 96: uint16(38787), + 97: uint16(38784), + 98: uint16(38786), + 99: uint16(38779), + 100: uint16(38788), + 101: uint16(38785), + 102: uint16(38783), + 103: uint16(38862), + 104: uint16(38861), + 105: uint16(38934), + 106: uint16(39085), + 107: uint16(39086), + 108: uint16(39170), + 109: uint16(39168), + 110: uint16(39175), + 111: uint16(39325), + 112: uint16(39324), + 113: uint16(39363), + 114: uint16(39353), + 115: uint16(39355), + 116: uint16(39354), + 117: uint16(39362), + 118: uint16(39357), + 119: uint16(39367), + 120: uint16(39601), + 121: uint16(39651), + 122: uint16(39655), + 123: uint16(39742), + 124: uint16(39743), + 125: uint16(39776), + 126: uint16(39777), + 127: uint16(39775), + 128: uint16(40177), + 129: uint16(40178), + 130: uint16(40181), + 131: uint16(40615), + 132: uint16(20735), + 133: uint16(20739), + 134: uint16(20784), + 135: uint16(20728), + 136: uint16(20742), + 137: uint16(20743), + 138: uint16(20726), + 139: uint16(20734), + 140: uint16(20747), + 141: uint16(20748), + 142: uint16(20733), + 143: uint16(20746), + 144: uint16(21131), + 145: uint16(21132), + 146: uint16(21233), + 147: uint16(21231), + 148: uint16(22088), + 149: uint16(22082), + 150: uint16(22092), + 151: uint16(22069), + 152: uint16(22081), + 153: uint16(22090), + 154: uint16(22089), + 155: uint16(22086), + 156: uint16(22104), + }, + 68: { + 0: uint16(22106), + 1: uint16(22080), + 2: uint16(22067), + 3: uint16(22077), + 4: uint16(22060), + 5: uint16(22078), + 6: uint16(22072), + 7: uint16(22058), + 8: uint16(22074), + 9: uint16(22298), + 10: uint16(22699), + 11: uint16(22685), + 12: uint16(22705), + 13: uint16(22688), + 14: uint16(22691), + 15: uint16(22703), + 16: uint16(22700), + 17: uint16(22693), + 18: uint16(22689), + 19: uint16(22783), + 20: uint16(23295), + 21: uint16(23284), + 22: uint16(23293), + 23: uint16(23287), + 24: uint16(23286), + 25: uint16(23299), + 26: uint16(23288), + 27: uint16(23298), + 28: uint16(23289), + 29: uint16(23297), + 30: uint16(23303), + 31: uint16(23301), + 32: uint16(23311), + 33: uint16(23655), + 34: uint16(23961), + 35: uint16(23959), + 36: uint16(23967), + 37: uint16(23954), + 38: uint16(23970), + 39: uint16(23955), + 40: uint16(23957), + 41: uint16(23968), + 42: uint16(23964), + 43: uint16(23969), + 44: uint16(23962), + 45: uint16(23966), + 46: uint16(24169), + 47: uint16(24157), + 48: uint16(24160), + 49: uint16(24156), + 50: uint16(32243), + 51: uint16(24283), + 52: uint16(24286), + 53: uint16(24289), + 54: uint16(24393), + 55: uint16(24498), + 56: uint16(24971), + 57: uint16(24963), + 58: uint16(24953), + 59: uint16(25009), + 60: uint16(25008), + 61: uint16(24994), + 62: uint16(24969), + 63: uint16(24987), + 64: uint16(24979), + 65: uint16(25007), + 66: uint16(25005), + 67: uint16(24991), + 68: uint16(24978), + 69: uint16(25002), + 70: uint16(24993), + 71: uint16(24973), + 72: uint16(24934), + 73: uint16(25011), + 74: uint16(25133), + 75: uint16(25710), + 76: uint16(25712), + 77: uint16(25750), + 78: uint16(25760), + 79: uint16(25733), + 80: uint16(25751), + 81: uint16(25756), + 82: uint16(25743), + 83: uint16(25739), + 84: uint16(25738), + 85: uint16(25740), + 86: uint16(25763), + 87: uint16(25759), + 88: uint16(25704), + 89: uint16(25777), + 90: uint16(25752), + 91: uint16(25974), + 92: uint16(25978), + 93: uint16(25977), + 94: uint16(25979), + 95: uint16(26034), + 96: uint16(26035), + 97: uint16(26293), + 98: uint16(26288), + 99: uint16(26281), + 100: uint16(26290), + 101: uint16(26295), + 102: uint16(26282), + 103: uint16(26287), + 104: uint16(27136), + 105: uint16(27142), + 106: uint16(27159), + 107: uint16(27109), + 108: uint16(27128), + 109: uint16(27157), + 110: uint16(27121), + 111: uint16(27108), + 112: uint16(27168), + 113: uint16(27135), + 114: uint16(27116), + 115: uint16(27106), + 116: uint16(27163), + 117: uint16(27165), + 118: uint16(27134), + 119: uint16(27175), + 120: uint16(27122), + 121: uint16(27118), + 122: uint16(27156), + 123: uint16(27127), + 124: uint16(27111), + 125: uint16(27200), + 126: uint16(27144), + 127: uint16(27110), + 128: uint16(27131), + 129: uint16(27149), + 130: uint16(27132), + 131: uint16(27115), + 132: uint16(27145), + 133: uint16(27140), + 134: uint16(27160), + 135: uint16(27173), + 136: uint16(27151), + 137: uint16(27126), + 138: uint16(27174), + 139: uint16(27143), + 140: uint16(27124), + 141: uint16(27158), + 142: uint16(27473), + 143: uint16(27557), + 144: uint16(27555), + 145: uint16(27554), + 146: uint16(27558), + 147: uint16(27649), + 148: uint16(27648), + 149: uint16(27647), + 150: uint16(27650), + 151: uint16(28481), + 152: uint16(28454), + 153: uint16(28542), + 154: uint16(28551), + 155: uint16(28614), + 156: uint16(28562), + }, + 69: { + 0: uint16(28557), + 1: uint16(28553), + 2: uint16(28556), + 3: uint16(28514), + 4: uint16(28495), + 5: uint16(28549), + 6: uint16(28506), + 7: uint16(28566), + 8: uint16(28534), + 9: uint16(28524), + 10: uint16(28546), + 11: uint16(28501), + 12: uint16(28530), + 13: uint16(28498), + 14: uint16(28496), + 15: uint16(28503), + 16: uint16(28564), + 17: uint16(28563), + 18: uint16(28509), + 19: uint16(28416), + 20: uint16(28513), + 21: uint16(28523), + 22: uint16(28541), + 23: uint16(28519), + 24: uint16(28560), + 25: uint16(28499), + 26: uint16(28555), + 27: uint16(28521), + 28: uint16(28543), + 29: uint16(28565), + 30: uint16(28515), + 31: uint16(28535), + 32: uint16(28522), + 33: uint16(28539), + 34: uint16(29106), + 35: uint16(29103), + 36: uint16(29083), + 37: uint16(29104), + 38: uint16(29088), + 39: uint16(29082), + 40: uint16(29097), + 41: uint16(29109), + 42: uint16(29085), + 43: uint16(29093), + 44: uint16(29086), + 45: uint16(29092), + 46: uint16(29089), + 47: uint16(29098), + 48: uint16(29084), + 49: uint16(29095), + 50: uint16(29107), + 51: uint16(29336), + 52: uint16(29338), + 53: uint16(29528), + 54: uint16(29522), + 55: uint16(29534), + 56: uint16(29535), + 57: uint16(29536), + 58: uint16(29533), + 59: uint16(29531), + 60: uint16(29537), + 61: uint16(29530), + 62: uint16(29529), + 63: uint16(29538), + 64: uint16(29831), + 65: uint16(29833), + 66: uint16(29834), + 67: uint16(29830), + 68: uint16(29825), + 69: uint16(29821), + 70: uint16(29829), + 71: uint16(29832), + 72: uint16(29820), + 73: uint16(29817), + 74: uint16(29960), + 75: uint16(29959), + 76: uint16(30078), + 77: uint16(30245), + 78: uint16(30238), + 79: uint16(30233), + 80: uint16(30237), + 81: uint16(30236), + 82: uint16(30243), + 83: uint16(30234), + 84: uint16(30248), + 85: uint16(30235), + 86: uint16(30364), + 87: uint16(30365), + 88: uint16(30366), + 89: uint16(30363), + 90: uint16(30605), + 91: uint16(30607), + 92: uint16(30601), + 93: uint16(30600), + 94: uint16(30925), + 95: uint16(30907), + 96: uint16(30927), + 97: uint16(30924), + 98: uint16(30929), + 99: uint16(30926), + 100: uint16(30932), + 101: uint16(30920), + 102: uint16(30915), + 103: uint16(30916), + 104: uint16(30921), + 105: uint16(31130), + 106: uint16(31137), + 107: uint16(31136), + 108: uint16(31132), + 109: uint16(31138), + 110: uint16(31131), + 111: uint16(27510), + 112: uint16(31289), + 113: uint16(31410), + 114: uint16(31412), + 115: uint16(31411), + 116: uint16(31671), + 117: uint16(31691), + 118: uint16(31678), + 119: uint16(31660), + 120: uint16(31694), + 121: uint16(31663), + 122: uint16(31673), + 123: uint16(31690), + 124: uint16(31669), + 125: uint16(31941), + 126: uint16(31944), + 127: uint16(31948), + 128: uint16(31947), + 129: uint16(32247), + 130: uint16(32219), + 131: uint16(32234), + 132: uint16(32231), + 133: uint16(32215), + 134: uint16(32225), + 135: uint16(32259), + 136: uint16(32250), + 137: uint16(32230), + 138: uint16(32246), + 139: uint16(32241), + 140: uint16(32240), + 141: uint16(32238), + 142: uint16(32223), + 143: uint16(32630), + 144: uint16(32684), + 145: uint16(32688), + 146: uint16(32685), + 147: uint16(32749), + 148: uint16(32747), + 149: uint16(32746), + 150: uint16(32748), + 151: uint16(32742), + 152: uint16(32744), + 153: uint16(32868), + 154: uint16(32871), + 155: uint16(33187), + 156: uint16(33183), + }, + 70: { + 0: uint16(33182), + 1: uint16(33173), + 2: uint16(33186), + 3: uint16(33177), + 4: uint16(33175), + 5: uint16(33302), + 6: uint16(33359), + 7: uint16(33363), + 8: uint16(33362), + 9: uint16(33360), + 10: uint16(33358), + 11: uint16(33361), + 12: uint16(34084), + 13: uint16(34107), + 14: uint16(34063), + 15: uint16(34048), + 16: uint16(34089), + 17: uint16(34062), + 18: uint16(34057), + 19: uint16(34061), + 20: uint16(34079), + 21: uint16(34058), + 22: uint16(34087), + 23: uint16(34076), + 24: uint16(34043), + 25: uint16(34091), + 26: uint16(34042), + 27: uint16(34056), + 28: uint16(34060), + 29: uint16(34036), + 30: uint16(34090), + 31: uint16(34034), + 32: uint16(34069), + 33: uint16(34039), + 34: uint16(34027), + 35: uint16(34035), + 36: uint16(34044), + 37: uint16(34066), + 38: uint16(34026), + 39: uint16(34025), + 40: uint16(34070), + 41: uint16(34046), + 42: uint16(34088), + 43: uint16(34077), + 44: uint16(34094), + 45: uint16(34050), + 46: uint16(34045), + 47: uint16(34078), + 48: uint16(34038), + 49: uint16(34097), + 50: uint16(34086), + 51: uint16(34023), + 52: uint16(34024), + 53: uint16(34032), + 54: uint16(34031), + 55: uint16(34041), + 56: uint16(34072), + 57: uint16(34080), + 58: uint16(34096), + 59: uint16(34059), + 60: uint16(34073), + 61: uint16(34095), + 62: uint16(34402), + 63: uint16(34646), + 64: uint16(34659), + 65: uint16(34660), + 66: uint16(34679), + 67: uint16(34785), + 68: uint16(34675), + 69: uint16(34648), + 70: uint16(34644), + 71: uint16(34651), + 72: uint16(34642), + 73: uint16(34657), + 74: uint16(34650), + 75: uint16(34641), + 76: uint16(34654), + 77: uint16(34669), + 78: uint16(34666), + 79: uint16(34640), + 80: uint16(34638), + 81: uint16(34655), + 82: uint16(34653), + 83: uint16(34671), + 84: uint16(34668), + 85: uint16(34682), + 86: uint16(34670), + 87: uint16(34652), + 88: uint16(34661), + 89: uint16(34639), + 90: uint16(34683), + 91: uint16(34677), + 92: uint16(34658), + 93: uint16(34663), + 94: uint16(34665), + 95: uint16(34906), + 96: uint16(35077), + 97: uint16(35084), + 98: uint16(35092), + 99: uint16(35083), + 100: uint16(35095), + 101: uint16(35096), + 102: uint16(35097), + 103: uint16(35078), + 104: uint16(35094), + 105: uint16(35089), + 106: uint16(35086), + 107: uint16(35081), + 108: uint16(35234), + 109: uint16(35236), + 110: uint16(35235), + 111: uint16(35309), + 112: uint16(35312), + 113: uint16(35308), + 114: uint16(35535), + 115: uint16(35526), + 116: uint16(35512), + 117: uint16(35539), + 118: uint16(35537), + 119: uint16(35540), + 120: uint16(35541), + 121: uint16(35515), + 122: uint16(35543), + 123: uint16(35518), + 124: uint16(35520), + 125: uint16(35525), + 126: uint16(35544), + 127: uint16(35523), + 128: uint16(35514), + 129: uint16(35517), + 130: uint16(35545), + 131: uint16(35902), + 132: uint16(35917), + 133: uint16(35983), + 134: uint16(36069), + 135: uint16(36063), + 136: uint16(36057), + 137: uint16(36072), + 138: uint16(36058), + 139: uint16(36061), + 140: uint16(36071), + 141: uint16(36256), + 142: uint16(36252), + 143: uint16(36257), + 144: uint16(36251), + 145: uint16(36384), + 146: uint16(36387), + 147: uint16(36389), + 148: uint16(36388), + 149: uint16(36398), + 150: uint16(36373), + 151: uint16(36379), + 152: uint16(36374), + 153: uint16(36369), + 154: uint16(36377), + 155: uint16(36390), + 156: uint16(36391), + }, + 71: { + 0: uint16(36372), + 1: uint16(36370), + 2: uint16(36376), + 3: uint16(36371), + 4: uint16(36380), + 5: uint16(36375), + 6: uint16(36378), + 7: uint16(36652), + 8: uint16(36644), + 9: uint16(36632), + 10: uint16(36634), + 11: uint16(36640), + 12: uint16(36643), + 13: uint16(36630), + 14: uint16(36631), + 15: uint16(36979), + 16: uint16(36976), + 17: uint16(36975), + 18: uint16(36967), + 19: uint16(36971), + 20: uint16(37167), + 21: uint16(37163), + 22: uint16(37161), + 23: uint16(37162), + 24: uint16(37170), + 25: uint16(37158), + 26: uint16(37166), + 27: uint16(37253), + 28: uint16(37254), + 29: uint16(37258), + 30: uint16(37249), + 31: uint16(37250), + 32: uint16(37252), + 33: uint16(37248), + 34: uint16(37584), + 35: uint16(37571), + 36: uint16(37572), + 37: uint16(37568), + 38: uint16(37593), + 39: uint16(37558), + 40: uint16(37583), + 41: uint16(37617), + 42: uint16(37599), + 43: uint16(37592), + 44: uint16(37609), + 45: uint16(37591), + 46: uint16(37597), + 47: uint16(37580), + 48: uint16(37615), + 49: uint16(37570), + 50: uint16(37608), + 51: uint16(37578), + 52: uint16(37576), + 53: uint16(37582), + 54: uint16(37606), + 55: uint16(37581), + 56: uint16(37589), + 57: uint16(37577), + 58: uint16(37600), + 59: uint16(37598), + 60: uint16(37607), + 61: uint16(37585), + 62: uint16(37587), + 63: uint16(37557), + 64: uint16(37601), + 65: uint16(37574), + 66: uint16(37556), + 67: uint16(38268), + 68: uint16(38316), + 69: uint16(38315), + 70: uint16(38318), + 71: uint16(38320), + 72: uint16(38564), + 73: uint16(38562), + 74: uint16(38611), + 75: uint16(38661), + 76: uint16(38664), + 77: uint16(38658), + 78: uint16(38746), + 79: uint16(38794), + 80: uint16(38798), + 81: uint16(38792), + 82: uint16(38864), + 83: uint16(38863), + 84: uint16(38942), + 85: uint16(38941), + 86: uint16(38950), + 87: uint16(38953), + 88: uint16(38952), + 89: uint16(38944), + 90: uint16(38939), + 91: uint16(38951), + 92: uint16(39090), + 93: uint16(39176), + 94: uint16(39162), + 95: uint16(39185), + 96: uint16(39188), + 97: uint16(39190), + 98: uint16(39191), + 99: uint16(39189), + 100: uint16(39388), + 101: uint16(39373), + 102: uint16(39375), + 103: uint16(39379), + 104: uint16(39380), + 105: uint16(39374), + 106: uint16(39369), + 107: uint16(39382), + 108: uint16(39384), + 109: uint16(39371), + 110: uint16(39383), + 111: uint16(39372), + 112: uint16(39603), + 113: uint16(39660), + 114: uint16(39659), + 115: uint16(39667), + 116: uint16(39666), + 117: uint16(39665), + 118: uint16(39750), + 119: uint16(39747), + 120: uint16(39783), + 121: uint16(39796), + 122: uint16(39793), + 123: uint16(39782), + 124: uint16(39798), + 125: uint16(39797), + 126: uint16(39792), + 127: uint16(39784), + 128: uint16(39780), + 129: uint16(39788), + 130: uint16(40188), + 131: uint16(40186), + 132: uint16(40189), + 133: uint16(40191), + 134: uint16(40183), + 135: uint16(40199), + 136: uint16(40192), + 137: uint16(40185), + 138: uint16(40187), + 139: uint16(40200), + 140: uint16(40197), + 141: uint16(40196), + 142: uint16(40579), + 143: uint16(40659), + 144: uint16(40719), + 145: uint16(40720), + 146: uint16(20764), + 147: uint16(20755), + 148: uint16(20759), + 149: uint16(20762), + 150: uint16(20753), + 151: uint16(20958), + 152: uint16(21300), + 153: uint16(21473), + 154: uint16(22128), + 155: uint16(22112), + 156: uint16(22126), + }, + 72: { + 0: uint16(22131), + 1: uint16(22118), + 2: uint16(22115), + 3: uint16(22125), + 4: uint16(22130), + 5: uint16(22110), + 6: uint16(22135), + 7: uint16(22300), + 8: uint16(22299), + 9: uint16(22728), + 10: uint16(22717), + 11: uint16(22729), + 12: uint16(22719), + 13: uint16(22714), + 14: uint16(22722), + 15: uint16(22716), + 16: uint16(22726), + 17: uint16(23319), + 18: uint16(23321), + 19: uint16(23323), + 20: uint16(23329), + 21: uint16(23316), + 22: uint16(23315), + 23: uint16(23312), + 24: uint16(23318), + 25: uint16(23336), + 26: uint16(23322), + 27: uint16(23328), + 28: uint16(23326), + 29: uint16(23535), + 30: uint16(23980), + 31: uint16(23985), + 32: uint16(23977), + 33: uint16(23975), + 34: uint16(23989), + 35: uint16(23984), + 36: uint16(23982), + 37: uint16(23978), + 38: uint16(23976), + 39: uint16(23986), + 40: uint16(23981), + 41: uint16(23983), + 42: uint16(23988), + 43: uint16(24167), + 44: uint16(24168), + 45: uint16(24166), + 46: uint16(24175), + 47: uint16(24297), + 48: uint16(24295), + 49: uint16(24294), + 50: uint16(24296), + 51: uint16(24293), + 52: uint16(24395), + 53: uint16(24508), + 54: uint16(24989), + 55: uint16(25000), + 56: uint16(24982), + 57: uint16(25029), + 58: uint16(25012), + 59: uint16(25030), + 60: uint16(25025), + 61: uint16(25036), + 62: uint16(25018), + 63: uint16(25023), + 64: uint16(25016), + 65: uint16(24972), + 66: uint16(25815), + 67: uint16(25814), + 68: uint16(25808), + 69: uint16(25807), + 70: uint16(25801), + 71: uint16(25789), + 72: uint16(25737), + 73: uint16(25795), + 74: uint16(25819), + 75: uint16(25843), + 76: uint16(25817), + 77: uint16(25907), + 78: uint16(25983), + 79: uint16(25980), + 80: uint16(26018), + 81: uint16(26312), + 82: uint16(26302), + 83: uint16(26304), + 84: uint16(26314), + 85: uint16(26315), + 86: uint16(26319), + 87: uint16(26301), + 88: uint16(26299), + 89: uint16(26298), + 90: uint16(26316), + 91: uint16(26403), + 92: uint16(27188), + 93: uint16(27238), + 94: uint16(27209), + 95: uint16(27239), + 96: uint16(27186), + 97: uint16(27240), + 98: uint16(27198), + 99: uint16(27229), + 100: uint16(27245), + 101: uint16(27254), + 102: uint16(27227), + 103: uint16(27217), + 104: uint16(27176), + 105: uint16(27226), + 106: uint16(27195), + 107: uint16(27199), + 108: uint16(27201), + 109: uint16(27242), + 110: uint16(27236), + 111: uint16(27216), + 112: uint16(27215), + 113: uint16(27220), + 114: uint16(27247), + 115: uint16(27241), + 116: uint16(27232), + 117: uint16(27196), + 118: uint16(27230), + 119: uint16(27222), + 120: uint16(27221), + 121: uint16(27213), + 122: uint16(27214), + 123: uint16(27206), + 124: uint16(27477), + 125: uint16(27476), + 126: uint16(27478), + 127: uint16(27559), + 128: uint16(27562), + 129: uint16(27563), + 130: uint16(27592), + 131: uint16(27591), + 132: uint16(27652), + 133: uint16(27651), + 134: uint16(27654), + 135: uint16(28589), + 136: uint16(28619), + 137: uint16(28579), + 138: uint16(28615), + 139: uint16(28604), + 140: uint16(28622), + 141: uint16(28616), + 142: uint16(28510), + 143: uint16(28612), + 144: uint16(28605), + 145: uint16(28574), + 146: uint16(28618), + 147: uint16(28584), + 148: uint16(28676), + 149: uint16(28581), + 150: uint16(28590), + 151: uint16(28602), + 152: uint16(28588), + 153: uint16(28586), + 154: uint16(28623), + 155: uint16(28607), + 156: uint16(28600), + }, + 73: { + 0: uint16(28578), + 1: uint16(28617), + 2: uint16(28587), + 3: uint16(28621), + 4: uint16(28591), + 5: uint16(28594), + 6: uint16(28592), + 7: uint16(29125), + 8: uint16(29122), + 9: uint16(29119), + 10: uint16(29112), + 11: uint16(29142), + 12: uint16(29120), + 13: uint16(29121), + 14: uint16(29131), + 15: uint16(29140), + 16: uint16(29130), + 17: uint16(29127), + 18: uint16(29135), + 19: uint16(29117), + 20: uint16(29144), + 21: uint16(29116), + 22: uint16(29126), + 23: uint16(29146), + 24: uint16(29147), + 25: uint16(29341), + 26: uint16(29342), + 27: uint16(29545), + 28: uint16(29542), + 29: uint16(29543), + 30: uint16(29548), + 31: uint16(29541), + 32: uint16(29547), + 33: uint16(29546), + 34: uint16(29823), + 35: uint16(29850), + 36: uint16(29856), + 37: uint16(29844), + 38: uint16(29842), + 39: uint16(29845), + 40: uint16(29857), + 41: uint16(29963), + 42: uint16(30080), + 43: uint16(30255), + 44: uint16(30253), + 45: uint16(30257), + 46: uint16(30269), + 47: uint16(30259), + 48: uint16(30268), + 49: uint16(30261), + 50: uint16(30258), + 51: uint16(30256), + 52: uint16(30395), + 53: uint16(30438), + 54: uint16(30618), + 55: uint16(30621), + 56: uint16(30625), + 57: uint16(30620), + 58: uint16(30619), + 59: uint16(30626), + 60: uint16(30627), + 61: uint16(30613), + 62: uint16(30617), + 63: uint16(30615), + 64: uint16(30941), + 65: uint16(30953), + 66: uint16(30949), + 67: uint16(30954), + 68: uint16(30942), + 69: uint16(30947), + 70: uint16(30939), + 71: uint16(30945), + 72: uint16(30946), + 73: uint16(30957), + 74: uint16(30943), + 75: uint16(30944), + 76: uint16(31140), + 77: uint16(31300), + 78: uint16(31304), + 79: uint16(31303), + 80: uint16(31414), + 81: uint16(31416), + 82: uint16(31413), + 83: uint16(31409), + 84: uint16(31415), + 85: uint16(31710), + 86: uint16(31715), + 87: uint16(31719), + 88: uint16(31709), + 89: uint16(31701), + 90: uint16(31717), + 91: uint16(31706), + 92: uint16(31720), + 93: uint16(31737), + 94: uint16(31700), + 95: uint16(31722), + 96: uint16(31714), + 97: uint16(31708), + 98: uint16(31723), + 99: uint16(31704), + 100: uint16(31711), + 101: uint16(31954), + 102: uint16(31956), + 103: uint16(31959), + 104: uint16(31952), + 105: uint16(31953), + 106: uint16(32274), + 107: uint16(32289), + 108: uint16(32279), + 109: uint16(32268), + 110: uint16(32287), + 111: uint16(32288), + 112: uint16(32275), + 113: uint16(32270), + 114: uint16(32284), + 115: uint16(32277), + 116: uint16(32282), + 117: uint16(32290), + 118: uint16(32267), + 119: uint16(32271), + 120: uint16(32278), + 121: uint16(32269), + 122: uint16(32276), + 123: uint16(32293), + 124: uint16(32292), + 125: uint16(32579), + 126: uint16(32635), + 127: uint16(32636), + 128: uint16(32634), + 129: uint16(32689), + 130: uint16(32751), + 131: uint16(32810), + 132: uint16(32809), + 133: uint16(32876), + 134: uint16(33201), + 135: uint16(33190), + 136: uint16(33198), + 137: uint16(33209), + 138: uint16(33205), + 139: uint16(33195), + 140: uint16(33200), + 141: uint16(33196), + 142: uint16(33204), + 143: uint16(33202), + 144: uint16(33207), + 145: uint16(33191), + 146: uint16(33266), + 147: uint16(33365), + 148: uint16(33366), + 149: uint16(33367), + 150: uint16(34134), + 151: uint16(34117), + 152: uint16(34155), + 153: uint16(34125), + 154: uint16(34131), + 155: uint16(34145), + 156: uint16(34136), + }, + 74: { + 0: uint16(34112), + 1: uint16(34118), + 2: uint16(34148), + 3: uint16(34113), + 4: uint16(34146), + 5: uint16(34116), + 6: uint16(34129), + 7: uint16(34119), + 8: uint16(34147), + 9: uint16(34110), + 10: uint16(34139), + 11: uint16(34161), + 12: uint16(34126), + 13: uint16(34158), + 14: uint16(34165), + 15: uint16(34133), + 16: uint16(34151), + 17: uint16(34144), + 18: uint16(34188), + 19: uint16(34150), + 20: uint16(34141), + 21: uint16(34132), + 22: uint16(34149), + 23: uint16(34156), + 24: uint16(34403), + 25: uint16(34405), + 26: uint16(34404), + 27: uint16(34715), + 28: uint16(34703), + 29: uint16(34711), + 30: uint16(34707), + 31: uint16(34706), + 32: uint16(34696), + 33: uint16(34689), + 34: uint16(34710), + 35: uint16(34712), + 36: uint16(34681), + 37: uint16(34695), + 38: uint16(34723), + 39: uint16(34693), + 40: uint16(34704), + 41: uint16(34705), + 42: uint16(34717), + 43: uint16(34692), + 44: uint16(34708), + 45: uint16(34716), + 46: uint16(34714), + 47: uint16(34697), + 48: uint16(35102), + 49: uint16(35110), + 50: uint16(35120), + 51: uint16(35117), + 52: uint16(35118), + 53: uint16(35111), + 54: uint16(35121), + 55: uint16(35106), + 56: uint16(35113), + 57: uint16(35107), + 58: uint16(35119), + 59: uint16(35116), + 60: uint16(35103), + 61: uint16(35313), + 62: uint16(35552), + 63: uint16(35554), + 64: uint16(35570), + 65: uint16(35572), + 66: uint16(35573), + 67: uint16(35549), + 68: uint16(35604), + 69: uint16(35556), + 70: uint16(35551), + 71: uint16(35568), + 72: uint16(35528), + 73: uint16(35550), + 74: uint16(35553), + 75: uint16(35560), + 76: uint16(35583), + 77: uint16(35567), + 78: uint16(35579), + 79: uint16(35985), + 80: uint16(35986), + 81: uint16(35984), + 82: uint16(36085), + 83: uint16(36078), + 84: uint16(36081), + 85: uint16(36080), + 86: uint16(36083), + 87: uint16(36204), + 88: uint16(36206), + 89: uint16(36261), + 90: uint16(36263), + 91: uint16(36403), + 92: uint16(36414), + 93: uint16(36408), + 94: uint16(36416), + 95: uint16(36421), + 96: uint16(36406), + 97: uint16(36412), + 98: uint16(36413), + 99: uint16(36417), + 100: uint16(36400), + 101: uint16(36415), + 102: uint16(36541), + 103: uint16(36662), + 104: uint16(36654), + 105: uint16(36661), + 106: uint16(36658), + 107: uint16(36665), + 108: uint16(36663), + 109: uint16(36660), + 110: uint16(36982), + 111: uint16(36985), + 112: uint16(36987), + 113: uint16(36998), + 114: uint16(37114), + 115: uint16(37171), + 116: uint16(37173), + 117: uint16(37174), + 118: uint16(37267), + 119: uint16(37264), + 120: uint16(37265), + 121: uint16(37261), + 122: uint16(37263), + 123: uint16(37671), + 124: uint16(37662), + 125: uint16(37640), + 126: uint16(37663), + 127: uint16(37638), + 128: uint16(37647), + 129: uint16(37754), + 130: uint16(37688), + 131: uint16(37692), + 132: uint16(37659), + 133: uint16(37667), + 134: uint16(37650), + 135: uint16(37633), + 136: uint16(37702), + 137: uint16(37677), + 138: uint16(37646), + 139: uint16(37645), + 140: uint16(37579), + 141: uint16(37661), + 142: uint16(37626), + 143: uint16(37669), + 144: uint16(37651), + 145: uint16(37625), + 146: uint16(37623), + 147: uint16(37684), + 148: uint16(37634), + 149: uint16(37668), + 150: uint16(37631), + 151: uint16(37673), + 152: uint16(37689), + 153: uint16(37685), + 154: uint16(37674), + 155: uint16(37652), + 156: uint16(37644), + }, + 75: { + 0: uint16(37643), + 1: uint16(37630), + 2: uint16(37641), + 3: uint16(37632), + 4: uint16(37627), + 5: uint16(37654), + 6: uint16(38332), + 7: uint16(38349), + 8: uint16(38334), + 9: uint16(38329), + 10: uint16(38330), + 11: uint16(38326), + 12: uint16(38335), + 13: uint16(38325), + 14: uint16(38333), + 15: uint16(38569), + 16: uint16(38612), + 17: uint16(38667), + 18: uint16(38674), + 19: uint16(38672), + 20: uint16(38809), + 21: uint16(38807), + 22: uint16(38804), + 23: uint16(38896), + 24: uint16(38904), + 25: uint16(38965), + 26: uint16(38959), + 27: uint16(38962), + 28: uint16(39204), + 29: uint16(39199), + 30: uint16(39207), + 31: uint16(39209), + 32: uint16(39326), + 33: uint16(39406), + 34: uint16(39404), + 35: uint16(39397), + 36: uint16(39396), + 37: uint16(39408), + 38: uint16(39395), + 39: uint16(39402), + 40: uint16(39401), + 41: uint16(39399), + 42: uint16(39609), + 43: uint16(39615), + 44: uint16(39604), + 45: uint16(39611), + 46: uint16(39670), + 47: uint16(39674), + 48: uint16(39673), + 49: uint16(39671), + 50: uint16(39731), + 51: uint16(39808), + 52: uint16(39813), + 53: uint16(39815), + 54: uint16(39804), + 55: uint16(39806), + 56: uint16(39803), + 57: uint16(39810), + 58: uint16(39827), + 59: uint16(39826), + 60: uint16(39824), + 61: uint16(39802), + 62: uint16(39829), + 63: uint16(39805), + 64: uint16(39816), + 65: uint16(40229), + 66: uint16(40215), + 67: uint16(40224), + 68: uint16(40222), + 69: uint16(40212), + 70: uint16(40233), + 71: uint16(40221), + 72: uint16(40216), + 73: uint16(40226), + 74: uint16(40208), + 75: uint16(40217), + 76: uint16(40223), + 77: uint16(40584), + 78: uint16(40582), + 79: uint16(40583), + 80: uint16(40622), + 81: uint16(40621), + 82: uint16(40661), + 83: uint16(40662), + 84: uint16(40698), + 85: uint16(40722), + 86: uint16(40765), + 87: uint16(20774), + 88: uint16(20773), + 89: uint16(20770), + 90: uint16(20772), + 91: uint16(20768), + 92: uint16(20777), + 93: uint16(21236), + 94: uint16(22163), + 95: uint16(22156), + 96: uint16(22157), + 97: uint16(22150), + 98: uint16(22148), + 99: uint16(22147), + 100: uint16(22142), + 101: uint16(22146), + 102: uint16(22143), + 103: uint16(22145), + 104: uint16(22742), + 105: uint16(22740), + 106: uint16(22735), + 107: uint16(22738), + 108: uint16(23341), + 109: uint16(23333), + 110: uint16(23346), + 111: uint16(23331), + 112: uint16(23340), + 113: uint16(23335), + 114: uint16(23334), + 115: uint16(23343), + 116: uint16(23342), + 117: uint16(23419), + 118: uint16(23537), + 119: uint16(23538), + 120: uint16(23991), + 121: uint16(24172), + 122: uint16(24170), + 123: uint16(24510), + 124: uint16(24507), + 125: uint16(25027), + 126: uint16(25013), + 127: uint16(25020), + 128: uint16(25063), + 129: uint16(25056), + 130: uint16(25061), + 131: uint16(25060), + 132: uint16(25064), + 133: uint16(25054), + 134: uint16(25839), + 135: uint16(25833), + 136: uint16(25827), + 137: uint16(25835), + 138: uint16(25828), + 139: uint16(25832), + 140: uint16(25985), + 141: uint16(25984), + 142: uint16(26038), + 143: uint16(26074), + 144: uint16(26322), + 145: uint16(27277), + 146: uint16(27286), + 147: uint16(27265), + 148: uint16(27301), + 149: uint16(27273), + 150: uint16(27295), + 151: uint16(27291), + 152: uint16(27297), + 153: uint16(27294), + 154: uint16(27271), + 155: uint16(27283), + 156: uint16(27278), + }, + 76: { + 0: uint16(27285), + 1: uint16(27267), + 2: uint16(27304), + 3: uint16(27300), + 4: uint16(27281), + 5: uint16(27263), + 6: uint16(27302), + 7: uint16(27290), + 8: uint16(27269), + 9: uint16(27276), + 10: uint16(27282), + 11: uint16(27483), + 12: uint16(27565), + 13: uint16(27657), + 14: uint16(28620), + 15: uint16(28585), + 16: uint16(28660), + 17: uint16(28628), + 18: uint16(28643), + 19: uint16(28636), + 20: uint16(28653), + 21: uint16(28647), + 22: uint16(28646), + 23: uint16(28638), + 24: uint16(28658), + 25: uint16(28637), + 26: uint16(28642), + 27: uint16(28648), + 28: uint16(29153), + 29: uint16(29169), + 30: uint16(29160), + 31: uint16(29170), + 32: uint16(29156), + 33: uint16(29168), + 34: uint16(29154), + 35: uint16(29555), + 36: uint16(29550), + 37: uint16(29551), + 38: uint16(29847), + 39: uint16(29874), + 40: uint16(29867), + 41: uint16(29840), + 42: uint16(29866), + 43: uint16(29869), + 44: uint16(29873), + 45: uint16(29861), + 46: uint16(29871), + 47: uint16(29968), + 48: uint16(29969), + 49: uint16(29970), + 50: uint16(29967), + 51: uint16(30084), + 52: uint16(30275), + 53: uint16(30280), + 54: uint16(30281), + 55: uint16(30279), + 56: uint16(30372), + 57: uint16(30441), + 58: uint16(30645), + 59: uint16(30635), + 60: uint16(30642), + 61: uint16(30647), + 62: uint16(30646), + 63: uint16(30644), + 64: uint16(30641), + 65: uint16(30632), + 66: uint16(30704), + 67: uint16(30963), + 68: uint16(30973), + 69: uint16(30978), + 70: uint16(30971), + 71: uint16(30972), + 72: uint16(30962), + 73: uint16(30981), + 74: uint16(30969), + 75: uint16(30974), + 76: uint16(30980), + 77: uint16(31147), + 78: uint16(31144), + 79: uint16(31324), + 80: uint16(31323), + 81: uint16(31318), + 82: uint16(31320), + 83: uint16(31316), + 84: uint16(31322), + 85: uint16(31422), + 86: uint16(31424), + 87: uint16(31425), + 88: uint16(31749), + 89: uint16(31759), + 90: uint16(31730), + 91: uint16(31744), + 92: uint16(31743), + 93: uint16(31739), + 94: uint16(31758), + 95: uint16(31732), + 96: uint16(31755), + 97: uint16(31731), + 98: uint16(31746), + 99: uint16(31753), + 100: uint16(31747), + 101: uint16(31745), + 102: uint16(31736), + 103: uint16(31741), + 104: uint16(31750), + 105: uint16(31728), + 106: uint16(31729), + 107: uint16(31760), + 108: uint16(31754), + 109: uint16(31976), + 110: uint16(32301), + 111: uint16(32316), + 112: uint16(32322), + 113: uint16(32307), + 114: uint16(38984), + 115: uint16(32312), + 116: uint16(32298), + 117: uint16(32329), + 118: uint16(32320), + 119: uint16(32327), + 120: uint16(32297), + 121: uint16(32332), + 122: uint16(32304), + 123: uint16(32315), + 124: uint16(32310), + 125: uint16(32324), + 126: uint16(32314), + 127: uint16(32581), + 128: uint16(32639), + 129: uint16(32638), + 130: uint16(32637), + 131: uint16(32756), + 132: uint16(32754), + 133: uint16(32812), + 134: uint16(33211), + 135: uint16(33220), + 136: uint16(33228), + 137: uint16(33226), + 138: uint16(33221), + 139: uint16(33223), + 140: uint16(33212), + 141: uint16(33257), + 142: uint16(33371), + 143: uint16(33370), + 144: uint16(33372), + 145: uint16(34179), + 146: uint16(34176), + 147: uint16(34191), + 148: uint16(34215), + 149: uint16(34197), + 150: uint16(34208), + 151: uint16(34187), + 152: uint16(34211), + 153: uint16(34171), + 154: uint16(34212), + 155: uint16(34202), + 156: uint16(34206), + }, + 77: { + 0: uint16(34167), + 1: uint16(34172), + 2: uint16(34185), + 3: uint16(34209), + 4: uint16(34170), + 5: uint16(34168), + 6: uint16(34135), + 7: uint16(34190), + 8: uint16(34198), + 9: uint16(34182), + 10: uint16(34189), + 11: uint16(34201), + 12: uint16(34205), + 13: uint16(34177), + 14: uint16(34210), + 15: uint16(34178), + 16: uint16(34184), + 17: uint16(34181), + 18: uint16(34169), + 19: uint16(34166), + 20: uint16(34200), + 21: uint16(34192), + 22: uint16(34207), + 23: uint16(34408), + 24: uint16(34750), + 25: uint16(34730), + 26: uint16(34733), + 27: uint16(34757), + 28: uint16(34736), + 29: uint16(34732), + 30: uint16(34745), + 31: uint16(34741), + 32: uint16(34748), + 33: uint16(34734), + 34: uint16(34761), + 35: uint16(34755), + 36: uint16(34754), + 37: uint16(34764), + 38: uint16(34743), + 39: uint16(34735), + 40: uint16(34756), + 41: uint16(34762), + 42: uint16(34740), + 43: uint16(34742), + 44: uint16(34751), + 45: uint16(34744), + 46: uint16(34749), + 47: uint16(34782), + 48: uint16(34738), + 49: uint16(35125), + 50: uint16(35123), + 51: uint16(35132), + 52: uint16(35134), + 53: uint16(35137), + 54: uint16(35154), + 55: uint16(35127), + 56: uint16(35138), + 57: uint16(35245), + 58: uint16(35247), + 59: uint16(35246), + 60: uint16(35314), + 61: uint16(35315), + 62: uint16(35614), + 63: uint16(35608), + 64: uint16(35606), + 65: uint16(35601), + 66: uint16(35589), + 67: uint16(35595), + 68: uint16(35618), + 69: uint16(35599), + 70: uint16(35602), + 71: uint16(35605), + 72: uint16(35591), + 73: uint16(35597), + 74: uint16(35592), + 75: uint16(35590), + 76: uint16(35612), + 77: uint16(35603), + 78: uint16(35610), + 79: uint16(35919), + 80: uint16(35952), + 81: uint16(35954), + 82: uint16(35953), + 83: uint16(35951), + 84: uint16(35989), + 85: uint16(35988), + 86: uint16(36089), + 87: uint16(36207), + 88: uint16(36430), + 89: uint16(36429), + 90: uint16(36435), + 91: uint16(36432), + 92: uint16(36428), + 93: uint16(36423), + 94: uint16(36675), + 95: uint16(36672), + 96: uint16(36997), + 97: uint16(36990), + 98: uint16(37176), + 99: uint16(37274), + 100: uint16(37282), + 101: uint16(37275), + 102: uint16(37273), + 103: uint16(37279), + 104: uint16(37281), + 105: uint16(37277), + 106: uint16(37280), + 107: uint16(37793), + 108: uint16(37763), + 109: uint16(37807), + 110: uint16(37732), + 111: uint16(37718), + 112: uint16(37703), + 113: uint16(37756), + 114: uint16(37720), + 115: uint16(37724), + 116: uint16(37750), + 117: uint16(37705), + 118: uint16(37712), + 119: uint16(37713), + 120: uint16(37728), + 121: uint16(37741), + 122: uint16(37775), + 123: uint16(37708), + 124: uint16(37738), + 125: uint16(37753), + 126: uint16(37719), + 127: uint16(37717), + 128: uint16(37714), + 129: uint16(37711), + 130: uint16(37745), + 131: uint16(37751), + 132: uint16(37755), + 133: uint16(37729), + 134: uint16(37726), + 135: uint16(37731), + 136: uint16(37735), + 137: uint16(37760), + 138: uint16(37710), + 139: uint16(37721), + 140: uint16(38343), + 141: uint16(38336), + 142: uint16(38345), + 143: uint16(38339), + 144: uint16(38341), + 145: uint16(38327), + 146: uint16(38574), + 147: uint16(38576), + 148: uint16(38572), + 149: uint16(38688), + 150: uint16(38687), + 151: uint16(38680), + 152: uint16(38685), + 153: uint16(38681), + 154: uint16(38810), + 155: uint16(38817), + 156: uint16(38812), + }, + 78: { + 0: uint16(38814), + 1: uint16(38813), + 2: uint16(38869), + 3: uint16(38868), + 4: uint16(38897), + 5: uint16(38977), + 6: uint16(38980), + 7: uint16(38986), + 8: uint16(38985), + 9: uint16(38981), + 10: uint16(38979), + 11: uint16(39205), + 12: uint16(39211), + 13: uint16(39212), + 14: uint16(39210), + 15: uint16(39219), + 16: uint16(39218), + 17: uint16(39215), + 18: uint16(39213), + 19: uint16(39217), + 20: uint16(39216), + 21: uint16(39320), + 22: uint16(39331), + 23: uint16(39329), + 24: uint16(39426), + 25: uint16(39418), + 26: uint16(39412), + 27: uint16(39415), + 28: uint16(39417), + 29: uint16(39416), + 30: uint16(39414), + 31: uint16(39419), + 32: uint16(39421), + 33: uint16(39422), + 34: uint16(39420), + 35: uint16(39427), + 36: uint16(39614), + 37: uint16(39678), + 38: uint16(39677), + 39: uint16(39681), + 40: uint16(39676), + 41: uint16(39752), + 42: uint16(39834), + 43: uint16(39848), + 44: uint16(39838), + 45: uint16(39835), + 46: uint16(39846), + 47: uint16(39841), + 48: uint16(39845), + 49: uint16(39844), + 50: uint16(39814), + 51: uint16(39842), + 52: uint16(39840), + 53: uint16(39855), + 54: uint16(40243), + 55: uint16(40257), + 56: uint16(40295), + 57: uint16(40246), + 58: uint16(40238), + 59: uint16(40239), + 60: uint16(40241), + 61: uint16(40248), + 62: uint16(40240), + 63: uint16(40261), + 64: uint16(40258), + 65: uint16(40259), + 66: uint16(40254), + 67: uint16(40247), + 68: uint16(40256), + 69: uint16(40253), + 70: uint16(32757), + 71: uint16(40237), + 72: uint16(40586), + 73: uint16(40585), + 74: uint16(40589), + 75: uint16(40624), + 76: uint16(40648), + 77: uint16(40666), + 78: uint16(40699), + 79: uint16(40703), + 80: uint16(40740), + 81: uint16(40739), + 82: uint16(40738), + 83: uint16(40788), + 84: uint16(40864), + 85: uint16(20785), + 86: uint16(20781), + 87: uint16(20782), + 88: uint16(22168), + 89: uint16(22172), + 90: uint16(22167), + 91: uint16(22170), + 92: uint16(22173), + 93: uint16(22169), + 94: uint16(22896), + 95: uint16(23356), + 96: uint16(23657), + 97: uint16(23658), + 98: uint16(24000), + 99: uint16(24173), + 100: uint16(24174), + 101: uint16(25048), + 102: uint16(25055), + 103: uint16(25069), + 104: uint16(25070), + 105: uint16(25073), + 106: uint16(25066), + 107: uint16(25072), + 108: uint16(25067), + 109: uint16(25046), + 110: uint16(25065), + 111: uint16(25855), + 112: uint16(25860), + 113: uint16(25853), + 114: uint16(25848), + 115: uint16(25857), + 116: uint16(25859), + 117: uint16(25852), + 118: uint16(26004), + 119: uint16(26075), + 120: uint16(26330), + 121: uint16(26331), + 122: uint16(26328), + 123: uint16(27333), + 124: uint16(27321), + 125: uint16(27325), + 126: uint16(27361), + 127: uint16(27334), + 128: uint16(27322), + 129: uint16(27318), + 130: uint16(27319), + 131: uint16(27335), + 132: uint16(27316), + 133: uint16(27309), + 134: uint16(27486), + 135: uint16(27593), + 136: uint16(27659), + 137: uint16(28679), + 138: uint16(28684), + 139: uint16(28685), + 140: uint16(28673), + 141: uint16(28677), + 142: uint16(28692), + 143: uint16(28686), + 144: uint16(28671), + 145: uint16(28672), + 146: uint16(28667), + 147: uint16(28710), + 148: uint16(28668), + 149: uint16(28663), + 150: uint16(28682), + 151: uint16(29185), + 152: uint16(29183), + 153: uint16(29177), + 154: uint16(29187), + 155: uint16(29181), + 156: uint16(29558), + }, + 79: { + 0: uint16(29880), + 1: uint16(29888), + 2: uint16(29877), + 3: uint16(29889), + 4: uint16(29886), + 5: uint16(29878), + 6: uint16(29883), + 7: uint16(29890), + 8: uint16(29972), + 9: uint16(29971), + 10: uint16(30300), + 11: uint16(30308), + 12: uint16(30297), + 13: uint16(30288), + 14: uint16(30291), + 15: uint16(30295), + 16: uint16(30298), + 17: uint16(30374), + 18: uint16(30397), + 19: uint16(30444), + 20: uint16(30658), + 21: uint16(30650), + 22: uint16(30975), + 23: uint16(30988), + 24: uint16(30995), + 25: uint16(30996), + 26: uint16(30985), + 27: uint16(30992), + 28: uint16(30994), + 29: uint16(30993), + 30: uint16(31149), + 31: uint16(31148), + 32: uint16(31327), + 33: uint16(31772), + 34: uint16(31785), + 35: uint16(31769), + 36: uint16(31776), + 37: uint16(31775), + 38: uint16(31789), + 39: uint16(31773), + 40: uint16(31782), + 41: uint16(31784), + 42: uint16(31778), + 43: uint16(31781), + 44: uint16(31792), + 45: uint16(32348), + 46: uint16(32336), + 47: uint16(32342), + 48: uint16(32355), + 49: uint16(32344), + 50: uint16(32354), + 51: uint16(32351), + 52: uint16(32337), + 53: uint16(32352), + 54: uint16(32343), + 55: uint16(32339), + 56: uint16(32693), + 57: uint16(32691), + 58: uint16(32759), + 59: uint16(32760), + 60: uint16(32885), + 61: uint16(33233), + 62: uint16(33234), + 63: uint16(33232), + 64: uint16(33375), + 65: uint16(33374), + 66: uint16(34228), + 67: uint16(34246), + 68: uint16(34240), + 69: uint16(34243), + 70: uint16(34242), + 71: uint16(34227), + 72: uint16(34229), + 73: uint16(34237), + 74: uint16(34247), + 75: uint16(34244), + 76: uint16(34239), + 77: uint16(34251), + 78: uint16(34254), + 79: uint16(34248), + 80: uint16(34245), + 81: uint16(34225), + 82: uint16(34230), + 83: uint16(34258), + 84: uint16(34340), + 85: uint16(34232), + 86: uint16(34231), + 87: uint16(34238), + 88: uint16(34409), + 89: uint16(34791), + 90: uint16(34790), + 91: uint16(34786), + 92: uint16(34779), + 93: uint16(34795), + 94: uint16(34794), + 95: uint16(34789), + 96: uint16(34783), + 97: uint16(34803), + 98: uint16(34788), + 99: uint16(34772), + 100: uint16(34780), + 101: uint16(34771), + 102: uint16(34797), + 103: uint16(34776), + 104: uint16(34787), + 105: uint16(34724), + 106: uint16(34775), + 107: uint16(34777), + 108: uint16(34817), + 109: uint16(34804), + 110: uint16(34792), + 111: uint16(34781), + 112: uint16(35155), + 113: uint16(35147), + 114: uint16(35151), + 115: uint16(35148), + 116: uint16(35142), + 117: uint16(35152), + 118: uint16(35153), + 119: uint16(35145), + 120: uint16(35626), + 121: uint16(35623), + 122: uint16(35619), + 123: uint16(35635), + 124: uint16(35632), + 125: uint16(35637), + 126: uint16(35655), + 127: uint16(35631), + 128: uint16(35644), + 129: uint16(35646), + 130: uint16(35633), + 131: uint16(35621), + 132: uint16(35639), + 133: uint16(35622), + 134: uint16(35638), + 135: uint16(35630), + 136: uint16(35620), + 137: uint16(35643), + 138: uint16(35645), + 139: uint16(35642), + 140: uint16(35906), + 141: uint16(35957), + 142: uint16(35993), + 143: uint16(35992), + 144: uint16(35991), + 145: uint16(36094), + 146: uint16(36100), + 147: uint16(36098), + 148: uint16(36096), + 149: uint16(36444), + 150: uint16(36450), + 151: uint16(36448), + 152: uint16(36439), + 153: uint16(36438), + 154: uint16(36446), + 155: uint16(36453), + 156: uint16(36455), + }, + 80: { + 0: uint16(36443), + 1: uint16(36442), + 2: uint16(36449), + 3: uint16(36445), + 4: uint16(36457), + 5: uint16(36436), + 6: uint16(36678), + 7: uint16(36679), + 8: uint16(36680), + 9: uint16(36683), + 10: uint16(37160), + 11: uint16(37178), + 12: uint16(37179), + 13: uint16(37182), + 14: uint16(37288), + 15: uint16(37285), + 16: uint16(37287), + 17: uint16(37295), + 18: uint16(37290), + 19: uint16(37813), + 20: uint16(37772), + 21: uint16(37778), + 22: uint16(37815), + 23: uint16(37787), + 24: uint16(37789), + 25: uint16(37769), + 26: uint16(37799), + 27: uint16(37774), + 28: uint16(37802), + 29: uint16(37790), + 30: uint16(37798), + 31: uint16(37781), + 32: uint16(37768), + 33: uint16(37785), + 34: uint16(37791), + 35: uint16(37773), + 36: uint16(37809), + 37: uint16(37777), + 38: uint16(37810), + 39: uint16(37796), + 40: uint16(37800), + 41: uint16(37812), + 42: uint16(37795), + 43: uint16(37797), + 44: uint16(38354), + 45: uint16(38355), + 46: uint16(38353), + 47: uint16(38579), + 48: uint16(38615), + 49: uint16(38618), + 50: uint16(24002), + 51: uint16(38623), + 52: uint16(38616), + 53: uint16(38621), + 54: uint16(38691), + 55: uint16(38690), + 56: uint16(38693), + 57: uint16(38828), + 58: uint16(38830), + 59: uint16(38824), + 60: uint16(38827), + 61: uint16(38820), + 62: uint16(38826), + 63: uint16(38818), + 64: uint16(38821), + 65: uint16(38871), + 66: uint16(38873), + 67: uint16(38870), + 68: uint16(38872), + 69: uint16(38906), + 70: uint16(38992), + 71: uint16(38993), + 72: uint16(38994), + 73: uint16(39096), + 74: uint16(39233), + 75: uint16(39228), + 76: uint16(39226), + 77: uint16(39439), + 78: uint16(39435), + 79: uint16(39433), + 80: uint16(39437), + 81: uint16(39428), + 82: uint16(39441), + 83: uint16(39434), + 84: uint16(39429), + 85: uint16(39431), + 86: uint16(39430), + 87: uint16(39616), + 88: uint16(39644), + 89: uint16(39688), + 90: uint16(39684), + 91: uint16(39685), + 92: uint16(39721), + 93: uint16(39733), + 94: uint16(39754), + 95: uint16(39756), + 96: uint16(39755), + 97: uint16(39879), + 98: uint16(39878), + 99: uint16(39875), + 100: uint16(39871), + 101: uint16(39873), + 102: uint16(39861), + 103: uint16(39864), + 104: uint16(39891), + 105: uint16(39862), + 106: uint16(39876), + 107: uint16(39865), + 108: uint16(39869), + 109: uint16(40284), + 110: uint16(40275), + 111: uint16(40271), + 112: uint16(40266), + 113: uint16(40283), + 114: uint16(40267), + 115: uint16(40281), + 116: uint16(40278), + 117: uint16(40268), + 118: uint16(40279), + 119: uint16(40274), + 120: uint16(40276), + 121: uint16(40287), + 122: uint16(40280), + 123: uint16(40282), + 124: uint16(40590), + 125: uint16(40588), + 126: uint16(40671), + 127: uint16(40705), + 128: uint16(40704), + 129: uint16(40726), + 130: uint16(40741), + 131: uint16(40747), + 132: uint16(40746), + 133: uint16(40745), + 134: uint16(40744), + 135: uint16(40780), + 136: uint16(40789), + 137: uint16(20788), + 138: uint16(20789), + 139: uint16(21142), + 140: uint16(21239), + 141: uint16(21428), + 142: uint16(22187), + 143: uint16(22189), + 144: uint16(22182), + 145: uint16(22183), + 146: uint16(22186), + 147: uint16(22188), + 148: uint16(22746), + 149: uint16(22749), + 150: uint16(22747), + 151: uint16(22802), + 152: uint16(23357), + 153: uint16(23358), + 154: uint16(23359), + 155: uint16(24003), + 156: uint16(24176), + }, + 81: { + 0: uint16(24511), + 1: uint16(25083), + 2: uint16(25863), + 3: uint16(25872), + 4: uint16(25869), + 5: uint16(25865), + 6: uint16(25868), + 7: uint16(25870), + 8: uint16(25988), + 9: uint16(26078), + 10: uint16(26077), + 11: uint16(26334), + 12: uint16(27367), + 13: uint16(27360), + 14: uint16(27340), + 15: uint16(27345), + 16: uint16(27353), + 17: uint16(27339), + 18: uint16(27359), + 19: uint16(27356), + 20: uint16(27344), + 21: uint16(27371), + 22: uint16(27343), + 23: uint16(27341), + 24: uint16(27358), + 25: uint16(27488), + 26: uint16(27568), + 27: uint16(27660), + 28: uint16(28697), + 29: uint16(28711), + 30: uint16(28704), + 31: uint16(28694), + 32: uint16(28715), + 33: uint16(28705), + 34: uint16(28706), + 35: uint16(28707), + 36: uint16(28713), + 37: uint16(28695), + 38: uint16(28708), + 39: uint16(28700), + 40: uint16(28714), + 41: uint16(29196), + 42: uint16(29194), + 43: uint16(29191), + 44: uint16(29186), + 45: uint16(29189), + 46: uint16(29349), + 47: uint16(29350), + 48: uint16(29348), + 49: uint16(29347), + 50: uint16(29345), + 51: uint16(29899), + 52: uint16(29893), + 53: uint16(29879), + 54: uint16(29891), + 55: uint16(29974), + 56: uint16(30304), + 57: uint16(30665), + 58: uint16(30666), + 59: uint16(30660), + 60: uint16(30705), + 61: uint16(31005), + 62: uint16(31003), + 63: uint16(31009), + 64: uint16(31004), + 65: uint16(30999), + 66: uint16(31006), + 67: uint16(31152), + 68: uint16(31335), + 69: uint16(31336), + 70: uint16(31795), + 71: uint16(31804), + 72: uint16(31801), + 73: uint16(31788), + 74: uint16(31803), + 75: uint16(31980), + 76: uint16(31978), + 77: uint16(32374), + 78: uint16(32373), + 79: uint16(32376), + 80: uint16(32368), + 81: uint16(32375), + 82: uint16(32367), + 83: uint16(32378), + 84: uint16(32370), + 85: uint16(32372), + 86: uint16(32360), + 87: uint16(32587), + 88: uint16(32586), + 89: uint16(32643), + 90: uint16(32646), + 91: uint16(32695), + 92: uint16(32765), + 93: uint16(32766), + 94: uint16(32888), + 95: uint16(33239), + 96: uint16(33237), + 97: uint16(33380), + 98: uint16(33377), + 99: uint16(33379), + 100: uint16(34283), + 101: uint16(34289), + 102: uint16(34285), + 103: uint16(34265), + 104: uint16(34273), + 105: uint16(34280), + 106: uint16(34266), + 107: uint16(34263), + 108: uint16(34284), + 109: uint16(34290), + 110: uint16(34296), + 111: uint16(34264), + 112: uint16(34271), + 113: uint16(34275), + 114: uint16(34268), + 115: uint16(34257), + 116: uint16(34288), + 117: uint16(34278), + 118: uint16(34287), + 119: uint16(34270), + 120: uint16(34274), + 121: uint16(34816), + 122: uint16(34810), + 123: uint16(34819), + 124: uint16(34806), + 125: uint16(34807), + 126: uint16(34825), + 127: uint16(34828), + 128: uint16(34827), + 129: uint16(34822), + 130: uint16(34812), + 131: uint16(34824), + 132: uint16(34815), + 133: uint16(34826), + 134: uint16(34818), + 135: uint16(35170), + 136: uint16(35162), + 137: uint16(35163), + 138: uint16(35159), + 139: uint16(35169), + 140: uint16(35164), + 141: uint16(35160), + 142: uint16(35165), + 143: uint16(35161), + 144: uint16(35208), + 145: uint16(35255), + 146: uint16(35254), + 147: uint16(35318), + 148: uint16(35664), + 149: uint16(35656), + 150: uint16(35658), + 151: uint16(35648), + 152: uint16(35667), + 153: uint16(35670), + 154: uint16(35668), + 155: uint16(35659), + 156: uint16(35669), + }, + 82: { + 0: uint16(35665), + 1: uint16(35650), + 2: uint16(35666), + 3: uint16(35671), + 4: uint16(35907), + 5: uint16(35959), + 6: uint16(35958), + 7: uint16(35994), + 8: uint16(36102), + 9: uint16(36103), + 10: uint16(36105), + 11: uint16(36268), + 12: uint16(36266), + 13: uint16(36269), + 14: uint16(36267), + 15: uint16(36461), + 16: uint16(36472), + 17: uint16(36467), + 18: uint16(36458), + 19: uint16(36463), + 20: uint16(36475), + 21: uint16(36546), + 22: uint16(36690), + 23: uint16(36689), + 24: uint16(36687), + 25: uint16(36688), + 26: uint16(36691), + 27: uint16(36788), + 28: uint16(37184), + 29: uint16(37183), + 30: uint16(37296), + 31: uint16(37293), + 32: uint16(37854), + 33: uint16(37831), + 34: uint16(37839), + 35: uint16(37826), + 36: uint16(37850), + 37: uint16(37840), + 38: uint16(37881), + 39: uint16(37868), + 40: uint16(37836), + 41: uint16(37849), + 42: uint16(37801), + 43: uint16(37862), + 44: uint16(37834), + 45: uint16(37844), + 46: uint16(37870), + 47: uint16(37859), + 48: uint16(37845), + 49: uint16(37828), + 50: uint16(37838), + 51: uint16(37824), + 52: uint16(37842), + 53: uint16(37863), + 54: uint16(38269), + 55: uint16(38362), + 56: uint16(38363), + 57: uint16(38625), + 58: uint16(38697), + 59: uint16(38699), + 60: uint16(38700), + 61: uint16(38696), + 62: uint16(38694), + 63: uint16(38835), + 64: uint16(38839), + 65: uint16(38838), + 66: uint16(38877), + 67: uint16(38878), + 68: uint16(38879), + 69: uint16(39004), + 70: uint16(39001), + 71: uint16(39005), + 72: uint16(38999), + 73: uint16(39103), + 74: uint16(39101), + 75: uint16(39099), + 76: uint16(39102), + 77: uint16(39240), + 78: uint16(39239), + 79: uint16(39235), + 80: uint16(39334), + 81: uint16(39335), + 82: uint16(39450), + 83: uint16(39445), + 84: uint16(39461), + 85: uint16(39453), + 86: uint16(39460), + 87: uint16(39451), + 88: uint16(39458), + 89: uint16(39456), + 90: uint16(39463), + 91: uint16(39459), + 92: uint16(39454), + 93: uint16(39452), + 94: uint16(39444), + 95: uint16(39618), + 96: uint16(39691), + 97: uint16(39690), + 98: uint16(39694), + 99: uint16(39692), + 100: uint16(39735), + 101: uint16(39914), + 102: uint16(39915), + 103: uint16(39904), + 104: uint16(39902), + 105: uint16(39908), + 106: uint16(39910), + 107: uint16(39906), + 108: uint16(39920), + 109: uint16(39892), + 110: uint16(39895), + 111: uint16(39916), + 112: uint16(39900), + 113: uint16(39897), + 114: uint16(39909), + 115: uint16(39893), + 116: uint16(39905), + 117: uint16(39898), + 118: uint16(40311), + 119: uint16(40321), + 120: uint16(40330), + 121: uint16(40324), + 122: uint16(40328), + 123: uint16(40305), + 124: uint16(40320), + 125: uint16(40312), + 126: uint16(40326), + 127: uint16(40331), + 128: uint16(40332), + 129: uint16(40317), + 130: uint16(40299), + 131: uint16(40308), + 132: uint16(40309), + 133: uint16(40304), + 134: uint16(40297), + 135: uint16(40325), + 136: uint16(40307), + 137: uint16(40315), + 138: uint16(40322), + 139: uint16(40303), + 140: uint16(40313), + 141: uint16(40319), + 142: uint16(40327), + 143: uint16(40296), + 144: uint16(40596), + 145: uint16(40593), + 146: uint16(40640), + 147: uint16(40700), + 148: uint16(40749), + 149: uint16(40768), + 150: uint16(40769), + 151: uint16(40781), + 152: uint16(40790), + 153: uint16(40791), + 154: uint16(40792), + 155: uint16(21303), + 156: uint16(22194), + }, + 83: { + 0: uint16(22197), + 1: uint16(22195), + 2: uint16(22755), + 3: uint16(23365), + 4: uint16(24006), + 5: uint16(24007), + 6: uint16(24302), + 7: uint16(24303), + 8: uint16(24512), + 9: uint16(24513), + 10: uint16(25081), + 11: uint16(25879), + 12: uint16(25878), + 13: uint16(25877), + 14: uint16(25875), + 15: uint16(26079), + 16: uint16(26344), + 17: uint16(26339), + 18: uint16(26340), + 19: uint16(27379), + 20: uint16(27376), + 21: uint16(27370), + 22: uint16(27368), + 23: uint16(27385), + 24: uint16(27377), + 25: uint16(27374), + 26: uint16(27375), + 27: uint16(28732), + 28: uint16(28725), + 29: uint16(28719), + 30: uint16(28727), + 31: uint16(28724), + 32: uint16(28721), + 33: uint16(28738), + 34: uint16(28728), + 35: uint16(28735), + 36: uint16(28730), + 37: uint16(28729), + 38: uint16(28736), + 39: uint16(28731), + 40: uint16(28723), + 41: uint16(28737), + 42: uint16(29203), + 43: uint16(29204), + 44: uint16(29352), + 45: uint16(29565), + 46: uint16(29564), + 47: uint16(29882), + 48: uint16(30379), + 49: uint16(30378), + 50: uint16(30398), + 51: uint16(30445), + 52: uint16(30668), + 53: uint16(30670), + 54: uint16(30671), + 55: uint16(30669), + 56: uint16(30706), + 57: uint16(31013), + 58: uint16(31011), + 59: uint16(31015), + 60: uint16(31016), + 61: uint16(31012), + 62: uint16(31017), + 63: uint16(31154), + 64: uint16(31342), + 65: uint16(31340), + 66: uint16(31341), + 67: uint16(31479), + 68: uint16(31817), + 69: uint16(31816), + 70: uint16(31818), + 71: uint16(31815), + 72: uint16(31813), + 73: uint16(31982), + 74: uint16(32379), + 75: uint16(32382), + 76: uint16(32385), + 77: uint16(32384), + 78: uint16(32698), + 79: uint16(32767), + 80: uint16(32889), + 81: uint16(33243), + 82: uint16(33241), + 83: uint16(33291), + 84: uint16(33384), + 85: uint16(33385), + 86: uint16(34338), + 87: uint16(34303), + 88: uint16(34305), + 89: uint16(34302), + 90: uint16(34331), + 91: uint16(34304), + 92: uint16(34294), + 93: uint16(34308), + 94: uint16(34313), + 95: uint16(34309), + 96: uint16(34316), + 97: uint16(34301), + 98: uint16(34841), + 99: uint16(34832), + 100: uint16(34833), + 101: uint16(34839), + 102: uint16(34835), + 103: uint16(34838), + 104: uint16(35171), + 105: uint16(35174), + 106: uint16(35257), + 107: uint16(35319), + 108: uint16(35680), + 109: uint16(35690), + 110: uint16(35677), + 111: uint16(35688), + 112: uint16(35683), + 113: uint16(35685), + 114: uint16(35687), + 115: uint16(35693), + 116: uint16(36270), + 117: uint16(36486), + 118: uint16(36488), + 119: uint16(36484), + 120: uint16(36697), + 121: uint16(36694), + 122: uint16(36695), + 123: uint16(36693), + 124: uint16(36696), + 125: uint16(36698), + 126: uint16(37005), + 127: uint16(37187), + 128: uint16(37185), + 129: uint16(37303), + 130: uint16(37301), + 131: uint16(37298), + 132: uint16(37299), + 133: uint16(37899), + 134: uint16(37907), + 135: uint16(37883), + 136: uint16(37920), + 137: uint16(37903), + 138: uint16(37908), + 139: uint16(37886), + 140: uint16(37909), + 141: uint16(37904), + 142: uint16(37928), + 143: uint16(37913), + 144: uint16(37901), + 145: uint16(37877), + 146: uint16(37888), + 147: uint16(37879), + 148: uint16(37895), + 149: uint16(37902), + 150: uint16(37910), + 151: uint16(37906), + 152: uint16(37882), + 153: uint16(37897), + 154: uint16(37880), + 155: uint16(37898), + 156: uint16(37887), + }, + 84: { + 0: uint16(37884), + 1: uint16(37900), + 2: uint16(37878), + 3: uint16(37905), + 4: uint16(37894), + 5: uint16(38366), + 6: uint16(38368), + 7: uint16(38367), + 8: uint16(38702), + 9: uint16(38703), + 10: uint16(38841), + 11: uint16(38843), + 12: uint16(38909), + 13: uint16(38910), + 14: uint16(39008), + 15: uint16(39010), + 16: uint16(39011), + 17: uint16(39007), + 18: uint16(39105), + 19: uint16(39106), + 20: uint16(39248), + 21: uint16(39246), + 22: uint16(39257), + 23: uint16(39244), + 24: uint16(39243), + 25: uint16(39251), + 26: uint16(39474), + 27: uint16(39476), + 28: uint16(39473), + 29: uint16(39468), + 30: uint16(39466), + 31: uint16(39478), + 32: uint16(39465), + 33: uint16(39470), + 34: uint16(39480), + 35: uint16(39469), + 36: uint16(39623), + 37: uint16(39626), + 38: uint16(39622), + 39: uint16(39696), + 40: uint16(39698), + 41: uint16(39697), + 42: uint16(39947), + 43: uint16(39944), + 44: uint16(39927), + 45: uint16(39941), + 46: uint16(39954), + 47: uint16(39928), + 48: uint16(40000), + 49: uint16(39943), + 50: uint16(39950), + 51: uint16(39942), + 52: uint16(39959), + 53: uint16(39956), + 54: uint16(39945), + 55: uint16(40351), + 56: uint16(40345), + 57: uint16(40356), + 58: uint16(40349), + 59: uint16(40338), + 60: uint16(40344), + 61: uint16(40336), + 62: uint16(40347), + 63: uint16(40352), + 64: uint16(40340), + 65: uint16(40348), + 66: uint16(40362), + 67: uint16(40343), + 68: uint16(40353), + 69: uint16(40346), + 70: uint16(40354), + 71: uint16(40360), + 72: uint16(40350), + 73: uint16(40355), + 74: uint16(40383), + 75: uint16(40361), + 76: uint16(40342), + 77: uint16(40358), + 78: uint16(40359), + 79: uint16(40601), + 80: uint16(40603), + 81: uint16(40602), + 82: uint16(40677), + 83: uint16(40676), + 84: uint16(40679), + 85: uint16(40678), + 86: uint16(40752), + 87: uint16(40750), + 88: uint16(40795), + 89: uint16(40800), + 90: uint16(40798), + 91: uint16(40797), + 92: uint16(40793), + 93: uint16(40849), + 94: uint16(20794), + 95: uint16(20793), + 96: uint16(21144), + 97: uint16(21143), + 98: uint16(22211), + 99: uint16(22205), + 100: uint16(22206), + 101: uint16(23368), + 102: uint16(23367), + 103: uint16(24011), + 104: uint16(24015), + 105: uint16(24305), + 106: uint16(25085), + 107: uint16(25883), + 108: uint16(27394), + 109: uint16(27388), + 110: uint16(27395), + 111: uint16(27384), + 112: uint16(27392), + 113: uint16(28739), + 114: uint16(28740), + 115: uint16(28746), + 116: uint16(28744), + 117: uint16(28745), + 118: uint16(28741), + 119: uint16(28742), + 120: uint16(29213), + 121: uint16(29210), + 122: uint16(29209), + 123: uint16(29566), + 124: uint16(29975), + 125: uint16(30314), + 126: uint16(30672), + 127: uint16(31021), + 128: uint16(31025), + 129: uint16(31023), + 130: uint16(31828), + 131: uint16(31827), + 132: uint16(31986), + 133: uint16(32394), + 134: uint16(32391), + 135: uint16(32392), + 136: uint16(32395), + 137: uint16(32390), + 138: uint16(32397), + 139: uint16(32589), + 140: uint16(32699), + 141: uint16(32816), + 142: uint16(33245), + 143: uint16(34328), + 144: uint16(34346), + 145: uint16(34342), + 146: uint16(34335), + 147: uint16(34339), + 148: uint16(34332), + 149: uint16(34329), + 150: uint16(34343), + 151: uint16(34350), + 152: uint16(34337), + 153: uint16(34336), + 154: uint16(34345), + 155: uint16(34334), + 156: uint16(34341), + }, + 85: { + 0: uint16(34857), + 1: uint16(34845), + 2: uint16(34843), + 3: uint16(34848), + 4: uint16(34852), + 5: uint16(34844), + 6: uint16(34859), + 7: uint16(34890), + 8: uint16(35181), + 9: uint16(35177), + 10: uint16(35182), + 11: uint16(35179), + 12: uint16(35322), + 13: uint16(35705), + 14: uint16(35704), + 15: uint16(35653), + 16: uint16(35706), + 17: uint16(35707), + 18: uint16(36112), + 19: uint16(36116), + 20: uint16(36271), + 21: uint16(36494), + 22: uint16(36492), + 23: uint16(36702), + 24: uint16(36699), + 25: uint16(36701), + 26: uint16(37190), + 27: uint16(37188), + 28: uint16(37189), + 29: uint16(37305), + 30: uint16(37951), + 31: uint16(37947), + 32: uint16(37942), + 33: uint16(37929), + 34: uint16(37949), + 35: uint16(37948), + 36: uint16(37936), + 37: uint16(37945), + 38: uint16(37930), + 39: uint16(37943), + 40: uint16(37932), + 41: uint16(37952), + 42: uint16(37937), + 43: uint16(38373), + 44: uint16(38372), + 45: uint16(38371), + 46: uint16(38709), + 47: uint16(38714), + 48: uint16(38847), + 49: uint16(38881), + 50: uint16(39012), + 51: uint16(39113), + 52: uint16(39110), + 53: uint16(39104), + 54: uint16(39256), + 55: uint16(39254), + 56: uint16(39481), + 57: uint16(39485), + 58: uint16(39494), + 59: uint16(39492), + 60: uint16(39490), + 61: uint16(39489), + 62: uint16(39482), + 63: uint16(39487), + 64: uint16(39629), + 65: uint16(39701), + 66: uint16(39703), + 67: uint16(39704), + 68: uint16(39702), + 69: uint16(39738), + 70: uint16(39762), + 71: uint16(39979), + 72: uint16(39965), + 73: uint16(39964), + 74: uint16(39980), + 75: uint16(39971), + 76: uint16(39976), + 77: uint16(39977), + 78: uint16(39972), + 79: uint16(39969), + 80: uint16(40375), + 81: uint16(40374), + 82: uint16(40380), + 83: uint16(40385), + 84: uint16(40391), + 85: uint16(40394), + 86: uint16(40399), + 87: uint16(40382), + 88: uint16(40389), + 89: uint16(40387), + 90: uint16(40379), + 91: uint16(40373), + 92: uint16(40398), + 93: uint16(40377), + 94: uint16(40378), + 95: uint16(40364), + 96: uint16(40392), + 97: uint16(40369), + 98: uint16(40365), + 99: uint16(40396), + 100: uint16(40371), + 101: uint16(40397), + 102: uint16(40370), + 103: uint16(40570), + 104: uint16(40604), + 105: uint16(40683), + 106: uint16(40686), + 107: uint16(40685), + 108: uint16(40731), + 109: uint16(40728), + 110: uint16(40730), + 111: uint16(40753), + 112: uint16(40782), + 113: uint16(40805), + 114: uint16(40804), + 115: uint16(40850), + 116: uint16(20153), + 117: uint16(22214), + 118: uint16(22213), + 119: uint16(22219), + 120: uint16(22897), + 121: uint16(23371), + 122: uint16(23372), + 123: uint16(24021), + 124: uint16(24017), + 125: uint16(24306), + 126: uint16(25889), + 127: uint16(25888), + 128: uint16(25894), + 129: uint16(25890), + 130: uint16(27403), + 131: uint16(27400), + 132: uint16(27401), + 133: uint16(27661), + 134: uint16(28757), + 135: uint16(28758), + 136: uint16(28759), + 137: uint16(28754), + 138: uint16(29214), + 139: uint16(29215), + 140: uint16(29353), + 141: uint16(29567), + 142: uint16(29912), + 143: uint16(29909), + 144: uint16(29913), + 145: uint16(29911), + 146: uint16(30317), + 147: uint16(30381), + 148: uint16(31029), + 149: uint16(31156), + 150: uint16(31344), + 151: uint16(31345), + 152: uint16(31831), + 153: uint16(31836), + 154: uint16(31833), + 155: uint16(31835), + 156: uint16(31834), + }, + 86: { + 0: uint16(31988), + 1: uint16(31985), + 2: uint16(32401), + 3: uint16(32591), + 4: uint16(32647), + 5: uint16(33246), + 6: uint16(33387), + 7: uint16(34356), + 8: uint16(34357), + 9: uint16(34355), + 10: uint16(34348), + 11: uint16(34354), + 12: uint16(34358), + 13: uint16(34860), + 14: uint16(34856), + 15: uint16(34854), + 16: uint16(34858), + 17: uint16(34853), + 18: uint16(35185), + 19: uint16(35263), + 20: uint16(35262), + 21: uint16(35323), + 22: uint16(35710), + 23: uint16(35716), + 24: uint16(35714), + 25: uint16(35718), + 26: uint16(35717), + 27: uint16(35711), + 28: uint16(36117), + 29: uint16(36501), + 30: uint16(36500), + 31: uint16(36506), + 32: uint16(36498), + 33: uint16(36496), + 34: uint16(36502), + 35: uint16(36503), + 36: uint16(36704), + 37: uint16(36706), + 38: uint16(37191), + 39: uint16(37964), + 40: uint16(37968), + 41: uint16(37962), + 42: uint16(37963), + 43: uint16(37967), + 44: uint16(37959), + 45: uint16(37957), + 46: uint16(37960), + 47: uint16(37961), + 48: uint16(37958), + 49: uint16(38719), + 50: uint16(38883), + 51: uint16(39018), + 52: uint16(39017), + 53: uint16(39115), + 54: uint16(39252), + 55: uint16(39259), + 56: uint16(39502), + 57: uint16(39507), + 58: uint16(39508), + 59: uint16(39500), + 60: uint16(39503), + 61: uint16(39496), + 62: uint16(39498), + 63: uint16(39497), + 64: uint16(39506), + 65: uint16(39504), + 66: uint16(39632), + 67: uint16(39705), + 68: uint16(39723), + 69: uint16(39739), + 70: uint16(39766), + 71: uint16(39765), + 72: uint16(40006), + 73: uint16(40008), + 74: uint16(39999), + 75: uint16(40004), + 76: uint16(39993), + 77: uint16(39987), + 78: uint16(40001), + 79: uint16(39996), + 80: uint16(39991), + 81: uint16(39988), + 82: uint16(39986), + 83: uint16(39997), + 84: uint16(39990), + 85: uint16(40411), + 86: uint16(40402), + 87: uint16(40414), + 88: uint16(40410), + 89: uint16(40395), + 90: uint16(40400), + 91: uint16(40412), + 92: uint16(40401), + 93: uint16(40415), + 94: uint16(40425), + 95: uint16(40409), + 96: uint16(40408), + 97: uint16(40406), + 98: uint16(40437), + 99: uint16(40405), + 100: uint16(40413), + 101: uint16(40630), + 102: uint16(40688), + 103: uint16(40757), + 104: uint16(40755), + 105: uint16(40754), + 106: uint16(40770), + 107: uint16(40811), + 108: uint16(40853), + 109: uint16(40866), + 110: uint16(20797), + 111: uint16(21145), + 112: uint16(22760), + 113: uint16(22759), + 114: uint16(22898), + 115: uint16(23373), + 116: uint16(24024), + 117: uint16(34863), + 118: uint16(24399), + 119: uint16(25089), + 120: uint16(25091), + 121: uint16(25092), + 122: uint16(25897), + 123: uint16(25893), + 124: uint16(26006), + 125: uint16(26347), + 126: uint16(27409), + 127: uint16(27410), + 128: uint16(27407), + 129: uint16(27594), + 130: uint16(28763), + 131: uint16(28762), + 132: uint16(29218), + 133: uint16(29570), + 134: uint16(29569), + 135: uint16(29571), + 136: uint16(30320), + 137: uint16(30676), + 138: uint16(31847), + 139: uint16(31846), + 140: uint16(32405), + 141: uint16(33388), + 142: uint16(34362), + 143: uint16(34368), + 144: uint16(34361), + 145: uint16(34364), + 146: uint16(34353), + 147: uint16(34363), + 148: uint16(34366), + 149: uint16(34864), + 150: uint16(34866), + 151: uint16(34862), + 152: uint16(34867), + 153: uint16(35190), + 154: uint16(35188), + 155: uint16(35187), + 156: uint16(35326), + }, + 87: { + 0: uint16(35724), + 1: uint16(35726), + 2: uint16(35723), + 3: uint16(35720), + 4: uint16(35909), + 5: uint16(36121), + 6: uint16(36504), + 7: uint16(36708), + 8: uint16(36707), + 9: uint16(37308), + 10: uint16(37986), + 11: uint16(37973), + 12: uint16(37981), + 13: uint16(37975), + 14: uint16(37982), + 15: uint16(38852), + 16: uint16(38853), + 17: uint16(38912), + 18: uint16(39510), + 19: uint16(39513), + 20: uint16(39710), + 21: uint16(39711), + 22: uint16(39712), + 23: uint16(40018), + 24: uint16(40024), + 25: uint16(40016), + 26: uint16(40010), + 27: uint16(40013), + 28: uint16(40011), + 29: uint16(40021), + 30: uint16(40025), + 31: uint16(40012), + 32: uint16(40014), + 33: uint16(40443), + 34: uint16(40439), + 35: uint16(40431), + 36: uint16(40419), + 37: uint16(40427), + 38: uint16(40440), + 39: uint16(40420), + 40: uint16(40438), + 41: uint16(40417), + 42: uint16(40430), + 43: uint16(40422), + 44: uint16(40434), + 45: uint16(40432), + 46: uint16(40418), + 47: uint16(40428), + 48: uint16(40436), + 49: uint16(40435), + 50: uint16(40424), + 51: uint16(40429), + 52: uint16(40642), + 53: uint16(40656), + 54: uint16(40690), + 55: uint16(40691), + 56: uint16(40710), + 57: uint16(40732), + 58: uint16(40760), + 59: uint16(40759), + 60: uint16(40758), + 61: uint16(40771), + 62: uint16(40783), + 63: uint16(40817), + 64: uint16(40816), + 65: uint16(40814), + 66: uint16(40815), + 67: uint16(22227), + 68: uint16(22221), + 69: uint16(23374), + 70: uint16(23661), + 71: uint16(25901), + 72: uint16(26349), + 73: uint16(26350), + 74: uint16(27411), + 75: uint16(28767), + 76: uint16(28769), + 77: uint16(28765), + 78: uint16(28768), + 79: uint16(29219), + 80: uint16(29915), + 81: uint16(29925), + 82: uint16(30677), + 83: uint16(31032), + 84: uint16(31159), + 85: uint16(31158), + 86: uint16(31850), + 87: uint16(32407), + 88: uint16(32649), + 89: uint16(33389), + 90: uint16(34371), + 91: uint16(34872), + 92: uint16(34871), + 93: uint16(34869), + 94: uint16(34891), + 95: uint16(35732), + 96: uint16(35733), + 97: uint16(36510), + 98: uint16(36511), + 99: uint16(36512), + 100: uint16(36509), + 101: uint16(37310), + 102: uint16(37309), + 103: uint16(37314), + 104: uint16(37995), + 105: uint16(37992), + 106: uint16(37993), + 107: uint16(38629), + 108: uint16(38726), + 109: uint16(38723), + 110: uint16(38727), + 111: uint16(38855), + 112: uint16(38885), + 113: uint16(39518), + 114: uint16(39637), + 115: uint16(39769), + 116: uint16(40035), + 117: uint16(40039), + 118: uint16(40038), + 119: uint16(40034), + 120: uint16(40030), + 121: uint16(40032), + 122: uint16(40450), + 123: uint16(40446), + 124: uint16(40455), + 125: uint16(40451), + 126: uint16(40454), + 127: uint16(40453), + 128: uint16(40448), + 129: uint16(40449), + 130: uint16(40457), + 131: uint16(40447), + 132: uint16(40445), + 133: uint16(40452), + 134: uint16(40608), + 135: uint16(40734), + 136: uint16(40774), + 137: uint16(40820), + 138: uint16(40821), + 139: uint16(40822), + 140: uint16(22228), + 141: uint16(25902), + 142: uint16(26040), + 143: uint16(27416), + 144: uint16(27417), + 145: uint16(27415), + 146: uint16(27418), + 147: uint16(28770), + 148: uint16(29222), + 149: uint16(29354), + 150: uint16(30680), + 151: uint16(30681), + 152: uint16(31033), + 153: uint16(31849), + 154: uint16(31851), + 155: uint16(31990), + 156: uint16(32410), + }, + 88: { + 0: uint16(32408), + 1: uint16(32411), + 2: uint16(32409), + 3: uint16(33248), + 4: uint16(33249), + 5: uint16(34374), + 6: uint16(34375), + 7: uint16(34376), + 8: uint16(35193), + 9: uint16(35194), + 10: uint16(35196), + 11: uint16(35195), + 12: uint16(35327), + 13: uint16(35736), + 14: uint16(35737), + 15: uint16(36517), + 16: uint16(36516), + 17: uint16(36515), + 18: uint16(37998), + 19: uint16(37997), + 20: uint16(37999), + 21: uint16(38001), + 22: uint16(38003), + 23: uint16(38729), + 24: uint16(39026), + 25: uint16(39263), + 26: uint16(40040), + 27: uint16(40046), + 28: uint16(40045), + 29: uint16(40459), + 30: uint16(40461), + 31: uint16(40464), + 32: uint16(40463), + 33: uint16(40466), + 34: uint16(40465), + 35: uint16(40609), + 36: uint16(40693), + 37: uint16(40713), + 38: uint16(40775), + 39: uint16(40824), + 40: uint16(40827), + 41: uint16(40826), + 42: uint16(40825), + 43: uint16(22302), + 44: uint16(28774), + 45: uint16(31855), + 46: uint16(34876), + 47: uint16(36274), + 48: uint16(36518), + 49: uint16(37315), + 50: uint16(38004), + 51: uint16(38008), + 52: uint16(38006), + 53: uint16(38005), + 54: uint16(39520), + 55: uint16(40052), + 56: uint16(40051), + 57: uint16(40049), + 58: uint16(40053), + 59: uint16(40468), + 60: uint16(40467), + 61: uint16(40694), + 62: uint16(40714), + 63: uint16(40868), + 64: uint16(28776), + 65: uint16(28773), + 66: uint16(31991), + 67: uint16(34410), + 68: uint16(34878), + 69: uint16(34877), + 70: uint16(34879), + 71: uint16(35742), + 72: uint16(35996), + 73: uint16(36521), + 74: uint16(36553), + 75: uint16(38731), + 76: uint16(39027), + 77: uint16(39028), + 78: uint16(39116), + 79: uint16(39265), + 80: uint16(39339), + 81: uint16(39524), + 82: uint16(39526), + 83: uint16(39527), + 84: uint16(39716), + 85: uint16(40469), + 86: uint16(40471), + 87: uint16(40776), + 88: uint16(25095), + 89: uint16(27422), + 90: uint16(29223), + 91: uint16(34380), + 92: uint16(36520), + 93: uint16(38018), + 94: uint16(38016), + 95: uint16(38017), + 96: uint16(39529), + 97: uint16(39528), + 98: uint16(39726), + 99: uint16(40473), + 100: uint16(29225), + 101: uint16(34379), + 102: uint16(35743), + 103: uint16(38019), + 104: uint16(40057), + 105: uint16(40631), + 106: uint16(30325), + 107: uint16(39531), + 108: uint16(40058), + 109: uint16(40477), + 110: uint16(28777), + 111: uint16(28778), + 112: uint16(40612), + 113: uint16(40830), + 114: uint16(40777), + 115: uint16(40856), + 116: uint16(30849), + 117: uint16(37561), + 118: uint16(35023), + 119: uint16(22715), + 120: uint16(24658), + 121: uint16(31911), + 122: uint16(23290), + 123: uint16(9556), + 124: uint16(9574), + 125: uint16(9559), + 126: uint16(9568), + 127: uint16(9580), + 128: uint16(9571), + 129: uint16(9562), + 130: uint16(9577), + 131: uint16(9565), + 132: uint16(9554), + 133: uint16(9572), + 134: uint16(9557), + 135: uint16(9566), + 136: uint16(9578), + 137: uint16(9569), + 138: uint16(9560), + 139: uint16(9575), + 140: uint16(9563), + 141: uint16(9555), + 142: uint16(9573), + 143: uint16(9558), + 144: uint16(9567), + 145: uint16(9579), + 146: uint16(9570), + 147: uint16(9561), + 148: uint16(9576), + 149: uint16(9564), + 150: uint16(9553), + 151: uint16(9552), + 152: uint16(9581), + 153: uint16(9582), + 154: uint16(9584), + 155: uint16(9583), + 156: uint16(9619), + }, +} + +var _hkscs = [5172]uint16{ + 0: uint16(17392), + 1: uint16(19506), + 2: uint16(17923), + 3: uint16(17830), + 4: uint16(17784), + 5: uint16(29287), + 6: uint16(19831), + 7: uint16(17843), + 8: uint16(31921), + 9: uint16(19682), + 10: uint16(31941), + 11: uint16(15253), + 12: uint16(18230), + 13: uint16(18244), + 14: uint16(19527), + 15: uint16(19520), + 16: uint16(17087), + 17: uint16(13847), + 18: uint16(29522), + 19: uint16(28299), + 20: uint16(28882), + 21: uint16(19543), + 22: uint16(41809), + 23: uint16(18255), + 24: uint16(17882), + 25: uint16(19589), + 26: uint16(31852), + 27: uint16(19719), + 28: uint16(19108), + 29: uint16(18081), + 30: uint16(27427), + 31: uint16(29221), + 32: uint16(23124), + 33: uint16(6755), + 34: uint16(15878), + 35: uint16(16225), + 36: uint16(26189), + 37: uint16(22267), + 39: uint16(32149), + 40: uint16(22813), + 41: uint16(35769), + 42: uint16(15860), + 43: uint16(38708), + 44: uint16(31727), + 45: uint16(23515), + 46: uint16(7518), + 47: uint16(23204), + 48: uint16(13861), + 49: uint16(40624), + 50: uint16(23249), + 51: uint16(23479), + 52: uint16(23804), + 53: uint16(26478), + 54: uint16(34195), + 55: uint16(39237), + 56: uint16(29793), + 57: uint16(29853), + 58: uint16(14453), + 59: uint16(7507), + 60: uint16(13982), + 61: uint16(24609), + 62: uint16(16108), + 63: uint16(22750), + 64: uint16(15093), + 65: uint16(31484), + 66: uint16(40855), + 67: uint16(16737), + 68: uint16(35085), + 69: uint16(12778), + 70: uint16(2698), + 71: uint16(12894), + 72: uint16(17162), + 73: uint16(33924), + 74: uint16(40854), + 75: uint16(37935), + 76: uint16(18736), + 77: uint16(34323), + 78: uint16(22678), + 79: uint16(38730), + 80: uint16(37400), + 81: uint16(31184), + 82: uint16(31282), + 83: uint16(26208), + 84: uint16(27177), + 85: uint16(34973), + 86: uint16(29772), + 87: uint16(31685), + 88: uint16(26498), + 89: uint16(31276), + 90: uint16(21071), + 91: uint16(36934), + 92: uint16(13542), + 93: uint16(29636), + 94: uint16(23993), + 95: uint16(29894), + 96: uint16(40903), + 97: uint16(22451), + 98: uint16(18735), + 99: uint16(21580), + 100: uint16(16689), + 101: uint16(13966), + 102: uint16(22552), + 103: uint16(31346), + 104: uint16(31589), + 105: uint16(35727), + 106: uint16(18094), + 107: uint16(28296), + 108: uint16(16769), + 109: uint16(23961), + 110: uint16(31662), + 111: uint16(9404), + 112: uint16(40904), + 113: uint16(9409), + 114: uint16(9417), + 115: uint16(9420), + 116: uint16(40905), + 117: uint16(34052), + 118: uint16(13755), + 119: uint16(16564), + 120: uint16(40906), + 121: uint16(17633), + 122: uint16(44543), + 123: uint16(25281), + 124: uint16(28782), + 125: uint16(40907), + 157: uint16(12736), + 158: uint16(12737), + 159: uint16(12738), + 160: uint16(12739), + 161: uint16(12740), + 162: uint16(268), + 163: uint16(12741), + 164: uint16(209), + 165: uint16(205), + 166: uint16(12742), + 167: uint16(12743), + 168: uint16(203), + 169: uint16(8168), + 170: uint16(12744), + 171: uint16(202), + 172: uint16(12745), + 173: uint16(12746), + 174: uint16(12747), + 175: uint16(12748), + 176: uint16(270), + 177: uint16(12749), + 178: uint16(12750), + 179: uint16(256), + 180: uint16(193), + 181: uint16(461), + 182: uint16(192), + 183: uint16(274), + 184: uint16(201), + 185: uint16(282), + 186: uint16(200), + 187: uint16(332), + 188: uint16(211), + 189: uint16(465), + 190: uint16(210), + 191: uint16(56320), + 192: uint16(7870), + 193: uint16(56324), + 194: uint16(7872), + 195: uint16(202), + 196: uint16(257), + 197: uint16(225), + 198: uint16(462), + 199: uint16(224), + 200: uint16(593), + 201: uint16(275), + 202: uint16(233), + 203: uint16(283), + 204: uint16(232), + 205: uint16(299), + 206: uint16(237), + 207: uint16(464), + 208: uint16(236), + 209: uint16(333), + 210: uint16(243), + 211: uint16(466), + 212: uint16(242), + 213: uint16(363), + 214: uint16(250), + 215: uint16(468), + 216: uint16(249), + 217: uint16(470), + 218: uint16(472), + 219: uint16(474), + 220: uint16(476), + 221: uint16(252), + 222: uint16(56328), + 223: uint16(7871), + 224: uint16(56332), + 225: uint16(7873), + 226: uint16(234), + 227: uint16(609), + 228: uint16(9178), + 229: uint16(9179), + 314: uint16(41897), + 315: uint16(4421), + 317: uint16(25866), + 320: uint16(20029), + 321: uint16(28381), + 322: uint16(40270), + 323: uint16(37343), + 326: uint16(30517), + 327: uint16(25745), + 328: uint16(20250), + 329: uint16(20264), + 330: uint16(20392), + 331: uint16(20822), + 332: uint16(20852), + 333: uint16(20892), + 334: uint16(20964), + 335: uint16(21153), + 336: uint16(21160), + 337: uint16(21307), + 338: uint16(21326), + 339: uint16(21457), + 340: uint16(21464), + 341: uint16(22242), + 342: uint16(22768), + 343: uint16(22788), + 344: uint16(22791), + 345: uint16(22834), + 346: uint16(22836), + 347: uint16(23398), + 348: uint16(23454), + 349: uint16(23455), + 350: uint16(23706), + 351: uint16(24198), + 352: uint16(24635), + 353: uint16(25993), + 354: uint16(26622), + 355: uint16(26628), + 356: uint16(26725), + 357: uint16(27982), + 358: uint16(28860), + 359: uint16(30005), + 360: uint16(32420), + 361: uint16(32428), + 362: uint16(32442), + 363: uint16(32455), + 364: uint16(32463), + 365: uint16(32479), + 366: uint16(32518), + 367: uint16(32567), + 368: uint16(33402), + 369: uint16(33487), + 370: uint16(33647), + 371: uint16(35270), + 372: uint16(35774), + 373: uint16(35810), + 374: uint16(36710), + 375: uint16(36711), + 376: uint16(36718), + 377: uint16(29713), + 378: uint16(31996), + 379: uint16(32205), + 380: uint16(26950), + 381: uint16(31433), + 382: uint16(21031), + 387: uint16(37260), + 388: uint16(30904), + 389: uint16(37214), + 390: uint16(32956), + 392: uint16(36107), + 393: uint16(33014), + 394: uint16(2535), + 397: uint16(32927), + 398: uint16(40647), + 399: uint16(19661), + 400: uint16(40393), + 401: uint16(40460), + 402: uint16(19518), + 403: uint16(40438), + 404: uint16(28686), + 405: uint16(40458), + 406: uint16(41267), + 407: uint16(13761), + 409: uint16(28314), + 410: uint16(33342), + 411: uint16(29977), + 413: uint16(18705), + 414: uint16(39532), + 415: uint16(39567), + 416: uint16(40857), + 417: uint16(31111), + 418: uint16(33900), + 419: uint16(7626), + 420: uint16(1488), + 421: uint16(10982), + 422: uint16(20004), + 423: uint16(20097), + 424: uint16(20096), + 425: uint16(20103), + 426: uint16(20159), + 427: uint16(20203), + 428: uint16(20279), + 429: uint16(13388), + 430: uint16(20413), + 431: uint16(15944), + 432: uint16(20483), + 433: uint16(20616), + 434: uint16(13437), + 435: uint16(13459), + 436: uint16(13477), + 437: uint16(20870), + 438: uint16(22789), + 439: uint16(20955), + 440: uint16(20988), + 441: uint16(20997), + 442: uint16(20105), + 443: uint16(21113), + 444: uint16(21136), + 445: uint16(21287), + 446: uint16(13767), + 447: uint16(21417), + 448: uint16(13649), + 449: uint16(21424), + 450: uint16(13651), + 451: uint16(21442), + 452: uint16(21539), + 453: uint16(13677), + 454: uint16(13682), + 455: uint16(13953), + 456: uint16(21651), + 457: uint16(21667), + 458: uint16(21684), + 459: uint16(21689), + 460: uint16(21712), + 461: uint16(21743), + 462: uint16(21784), + 463: uint16(21795), + 464: uint16(21800), + 465: uint16(13720), + 466: uint16(21823), + 467: uint16(13733), + 468: uint16(13759), + 469: uint16(21975), + 470: uint16(13765), + 471: uint16(32132), + 472: uint16(21797), + 474: uint16(3138), + 475: uint16(3349), + 476: uint16(20779), + 477: uint16(21904), + 478: uint16(11462), + 479: uint16(14828), + 480: uint16(833), + 481: uint16(36422), + 482: uint16(19896), + 483: uint16(38117), + 484: uint16(16467), + 485: uint16(32958), + 486: uint16(30586), + 487: uint16(11320), + 488: uint16(14900), + 489: uint16(18389), + 490: uint16(33117), + 491: uint16(27122), + 492: uint16(19946), + 493: uint16(25821), + 494: uint16(3452), + 495: uint16(4020), + 496: uint16(3285), + 497: uint16(4340), + 498: uint16(25741), + 499: uint16(36478), + 500: uint16(3734), + 501: uint16(3083), + 502: uint16(3940), + 503: uint16(11433), + 504: uint16(33366), + 505: uint16(17619), + 507: uint16(3398), + 508: uint16(39501), + 509: uint16(33001), + 510: uint16(18420), + 511: uint16(20135), + 512: uint16(11458), + 513: uint16(39602), + 514: uint16(14951), + 515: uint16(38388), + 516: uint16(16365), + 517: uint16(13574), + 518: uint16(21191), + 519: uint16(38868), + 520: uint16(30920), + 521: uint16(11588), + 522: uint16(40302), + 523: uint16(38933), + 525: uint16(17369), + 526: uint16(24741), + 527: uint16(25780), + 528: uint16(21731), + 529: uint16(11596), + 530: uint16(11210), + 531: uint16(4215), + 532: uint16(14843), + 533: uint16(4207), + 534: uint16(26330), + 535: uint16(26390), + 536: uint16(31136), + 537: uint16(25834), + 538: uint16(20562), + 539: uint16(3139), + 540: uint16(36456), + 541: uint16(8609), + 542: uint16(35660), + 543: uint16(1841), + 545: uint16(18443), + 546: uint16(425), + 547: uint16(16378), + 548: uint16(22643), + 549: uint16(11661), + 551: uint16(17864), + 552: uint16(1276), + 553: uint16(24727), + 554: uint16(3916), + 555: uint16(3478), + 556: uint16(21881), + 557: uint16(16571), + 558: uint16(17338), + 560: uint16(19124), + 561: uint16(10854), + 562: uint16(4253), + 563: uint16(33194), + 564: uint16(39157), + 565: uint16(3484), + 566: uint16(25465), + 567: uint16(14846), + 568: uint16(10101), + 569: uint16(36288), + 570: uint16(22177), + 571: uint16(25724), + 572: uint16(15939), + 574: uint16(42497), + 575: uint16(3593), + 576: uint16(10959), + 577: uint16(11465), + 579: uint16(4296), + 580: uint16(14786), + 581: uint16(14738), + 582: uint16(14854), + 583: uint16(33435), + 584: uint16(13688), + 585: uint16(24137), + 586: uint16(8391), + 587: uint16(22098), + 588: uint16(3889), + 589: uint16(11442), + 590: uint16(38688), + 591: uint16(13500), + 592: uint16(27709), + 593: uint16(20027), + 596: uint16(30068), + 597: uint16(11915), + 598: uint16(8712), + 599: uint16(42587), + 600: uint16(36045), + 601: uint16(3706), + 602: uint16(3124), + 603: uint16(26652), + 604: uint16(32659), + 605: uint16(4303), + 606: uint16(10243), + 607: uint16(10553), + 608: uint16(13819), + 609: uint16(20963), + 610: uint16(3724), + 611: uint16(3981), + 612: uint16(3754), + 613: uint16(16275), + 614: uint16(3888), + 615: uint16(3399), + 616: uint16(4431), + 617: uint16(3660), + 619: uint16(3755), + 620: uint16(2985), + 621: uint16(3400), + 622: uint16(4288), + 623: uint16(4413), + 624: uint16(16377), + 625: uint16(9878), + 626: uint16(25650), + 627: uint16(4013), + 628: uint16(13300), + 629: uint16(30265), + 630: uint16(11214), + 631: uint16(3454), + 632: uint16(3455), + 633: uint16(11345), + 634: uint16(11349), + 635: uint16(14872), + 636: uint16(3736), + 637: uint16(4295), + 638: uint16(3886), + 639: uint16(42546), + 640: uint16(27472), + 641: uint16(36050), + 642: uint16(36249), + 643: uint16(36042), + 644: uint16(38314), + 645: uint16(21708), + 646: uint16(33476), + 647: uint16(21945), + 649: uint16(40643), + 650: uint16(39974), + 651: uint16(39606), + 652: uint16(30558), + 653: uint16(11758), + 654: uint16(28992), + 655: uint16(33133), + 656: uint16(33004), + 657: uint16(23580), + 658: uint16(25970), + 659: uint16(33076), + 660: uint16(14231), + 661: uint16(21343), + 662: uint16(32957), + 663: uint16(37302), + 664: uint16(3834), + 665: uint16(3599), + 666: uint16(3703), + 667: uint16(3835), + 668: uint16(13789), + 669: uint16(19947), + 670: uint16(13833), + 671: uint16(3286), + 672: uint16(22191), + 673: uint16(10165), + 674: uint16(4297), + 675: uint16(3600), + 676: uint16(3704), + 677: uint16(4216), + 678: uint16(4424), + 679: uint16(33287), + 680: uint16(5205), + 681: uint16(3705), + 682: uint16(20048), + 683: uint16(11684), + 684: uint16(23124), + 685: uint16(4125), + 686: uint16(4126), + 687: uint16(4341), + 688: uint16(4342), + 689: uint16(22428), + 690: uint16(3601), + 691: uint16(30356), + 692: uint16(33485), + 693: uint16(4021), + 694: uint16(3707), + 695: uint16(20862), + 696: uint16(14083), + 697: uint16(4022), + 698: uint16(4480), + 699: uint16(21208), + 700: uint16(41661), + 701: uint16(18906), + 702: uint16(6202), + 703: uint16(16759), + 704: uint16(33404), + 705: uint16(22681), + 706: uint16(21096), + 707: uint16(13850), + 708: uint16(22333), + 709: uint16(31666), + 710: uint16(23400), + 711: uint16(18432), + 712: uint16(19244), + 713: uint16(40743), + 714: uint16(18919), + 715: uint16(39967), + 716: uint16(39821), + 717: uint16(23412), + 718: uint16(12605), + 719: uint16(22011), + 720: uint16(13810), + 721: uint16(22153), + 722: uint16(20008), + 723: uint16(22786), + 724: uint16(7105), + 725: uint16(63608), + 726: uint16(38737), + 727: uint16(134), + 728: uint16(20059), + 729: uint16(20155), + 730: uint16(13630), + 731: uint16(23587), + 732: uint16(24401), + 733: uint16(24516), + 734: uint16(14586), + 735: uint16(25164), + 736: uint16(25909), + 737: uint16(27514), + 738: uint16(27701), + 739: uint16(27706), + 740: uint16(28780), + 741: uint16(29227), + 742: uint16(20012), + 743: uint16(29357), + 744: uint16(18665), + 745: uint16(32594), + 746: uint16(31035), + 747: uint16(31993), + 748: uint16(32595), + 749: uint16(25194), + 750: uint16(13505), + 752: uint16(25419), + 753: uint16(32770), + 754: uint16(32896), + 755: uint16(26130), + 756: uint16(26961), + 757: uint16(21341), + 758: uint16(34916), + 759: uint16(35265), + 760: uint16(30898), + 761: uint16(35744), + 762: uint16(36125), + 763: uint16(38021), + 764: uint16(38264), + 765: uint16(38271), + 766: uint16(38376), + 767: uint16(36367), + 768: uint16(38886), + 769: uint16(39029), + 770: uint16(39118), + 771: uint16(39134), + 772: uint16(39267), + 773: uint16(38928), + 774: uint16(40060), + 775: uint16(40479), + 776: uint16(40644), + 777: uint16(27503), + 778: uint16(63751), + 779: uint16(20023), + 780: uint16(135), + 781: uint16(38429), + 782: uint16(25143), + 783: uint16(38050), + 785: uint16(20539), + 786: uint16(28158), + 787: uint16(40051), + 788: uint16(40870), + 789: uint16(15817), + 790: uint16(34959), + 791: uint16(16718), + 792: uint16(28791), + 793: uint16(23797), + 794: uint16(19232), + 795: uint16(20941), + 796: uint16(13657), + 797: uint16(23856), + 798: uint16(24866), + 799: uint16(35378), + 800: uint16(36775), + 801: uint16(37366), + 802: uint16(29073), + 803: uint16(26393), + 804: uint16(29626), + 805: uint16(12929), + 806: uint16(41223), + 807: uint16(15499), + 808: uint16(6528), + 809: uint16(19216), + 810: uint16(30948), + 811: uint16(29698), + 812: uint16(20910), + 813: uint16(34575), + 814: uint16(16393), + 815: uint16(27235), + 816: uint16(41658), + 817: uint16(16931), + 818: uint16(34319), + 819: uint16(2671), + 820: uint16(31274), + 821: uint16(39239), + 822: uint16(35562), + 823: uint16(38741), + 824: uint16(28749), + 825: uint16(21284), + 826: uint16(8318), + 827: uint16(37876), + 828: uint16(30425), + 829: uint16(35299), + 830: uint16(40871), + 831: uint16(30685), + 832: uint16(20131), + 833: uint16(20464), + 834: uint16(20668), + 835: uint16(20015), + 836: uint16(20247), + 837: uint16(40872), + 838: uint16(21556), + 839: uint16(32139), + 840: uint16(22674), + 841: uint16(22736), + 842: uint16(7606), + 843: uint16(24210), + 844: uint16(24217), + 845: uint16(24514), + 846: uint16(10002), + 847: uint16(25995), + 848: uint16(13305), + 849: uint16(26905), + 850: uint16(27203), + 851: uint16(15459), + 852: uint16(27903), + 854: uint16(29184), + 855: uint16(17669), + 856: uint16(29580), + 857: uint16(16091), + 858: uint16(18963), + 859: uint16(23317), + 860: uint16(29881), + 861: uint16(35715), + 862: uint16(23716), + 863: uint16(22165), + 864: uint16(31379), + 865: uint16(31724), + 866: uint16(31939), + 867: uint16(32364), + 868: uint16(33528), + 869: uint16(34199), + 870: uint16(40873), + 871: uint16(34960), + 872: uint16(40874), + 873: uint16(36537), + 874: uint16(40875), + 875: uint16(36815), + 876: uint16(34143), + 877: uint16(39392), + 878: uint16(37409), + 879: uint16(40876), + 880: uint16(36281), + 881: uint16(5183), + 882: uint16(16497), + 883: uint16(17058), + 884: uint16(23066), + 888: uint16(39016), + 889: uint16(26475), + 890: uint16(17014), + 891: uint16(22333), + 893: uint16(34262), + 894: uint16(18811), + 895: uint16(33471), + 896: uint16(28941), + 897: uint16(19585), + 898: uint16(28020), + 899: uint16(23931), + 900: uint16(27413), + 901: uint16(28606), + 902: uint16(40877), + 903: uint16(40878), + 904: uint16(23446), + 905: uint16(40879), + 906: uint16(26343), + 907: uint16(32347), + 908: uint16(28247), + 909: uint16(31178), + 910: uint16(15752), + 911: uint16(17603), + 912: uint16(12886), + 913: uint16(10134), + 914: uint16(17306), + 915: uint16(17718), + 917: uint16(23765), + 918: uint16(15130), + 919: uint16(35577), + 920: uint16(23672), + 921: uint16(15634), + 922: uint16(13649), + 923: uint16(23928), + 924: uint16(40882), + 925: uint16(29015), + 926: uint16(17752), + 927: uint16(16620), + 928: uint16(7715), + 929: uint16(19575), + 930: uint16(14712), + 931: uint16(13386), + 932: uint16(420), + 933: uint16(27713), + 934: uint16(35532), + 935: uint16(20404), + 936: uint16(569), + 937: uint16(22975), + 938: uint16(33132), + 939: uint16(38998), + 940: uint16(39162), + 941: uint16(24379), + 942: uint16(2975), + 944: uint16(8641), + 945: uint16(35181), + 946: uint16(16642), + 947: uint16(18107), + 948: uint16(36985), + 949: uint16(16135), + 950: uint16(40883), + 951: uint16(41397), + 952: uint16(16632), + 953: uint16(14294), + 954: uint16(18167), + 955: uint16(27718), + 956: uint16(16764), + 957: uint16(34482), + 958: uint16(29695), + 959: uint16(17773), + 960: uint16(14548), + 961: uint16(21658), + 962: uint16(17761), + 963: uint16(17691), + 964: uint16(19849), + 965: uint16(19579), + 966: uint16(19830), + 967: uint16(17898), + 968: uint16(16328), + 969: uint16(19215), + 970: uint16(13921), + 971: uint16(17630), + 972: uint16(17597), + 973: uint16(16877), + 974: uint16(23870), + 975: uint16(23880), + 976: uint16(23894), + 977: uint16(15868), + 978: uint16(14351), + 979: uint16(23972), + 980: uint16(23993), + 981: uint16(14368), + 982: uint16(14392), + 983: uint16(24130), + 984: uint16(24253), + 985: uint16(24357), + 986: uint16(24451), + 987: uint16(14600), + 988: uint16(14612), + 989: uint16(14655), + 990: uint16(14669), + 991: uint16(24791), + 992: uint16(24893), + 993: uint16(23781), + 994: uint16(14729), + 995: uint16(25015), + 996: uint16(25017), + 997: uint16(25039), + 998: uint16(14776), + 999: uint16(25132), + 1000: uint16(25232), + 1001: uint16(25317), + 1002: uint16(25368), + 1003: uint16(14840), + 1004: uint16(22193), + 1005: uint16(14851), + 1006: uint16(25570), + 1007: uint16(25595), + 1008: uint16(25607), + 1009: uint16(25690), + 1010: uint16(14923), + 1011: uint16(25792), + 1012: uint16(23829), + 1013: uint16(22049), + 1014: uint16(40863), + 1015: uint16(14999), + 1016: uint16(25990), + 1017: uint16(15037), + 1018: uint16(26111), + 1019: uint16(26195), + 1020: uint16(15090), + 1021: uint16(26258), + 1022: uint16(15138), + 1023: uint16(26390), + 1024: uint16(15170), + 1025: uint16(26532), + 1026: uint16(26624), + 1027: uint16(15192), + 1028: uint16(26698), + 1029: uint16(26756), + 1030: uint16(15218), + 1031: uint16(15217), + 1032: uint16(15227), + 1033: uint16(26889), + 1034: uint16(26947), + 1035: uint16(29276), + 1036: uint16(26980), + 1037: uint16(27039), + 1038: uint16(27013), + 1039: uint16(15292), + 1040: uint16(27094), + 1041: uint16(15325), + 1042: uint16(27237), + 1043: uint16(27252), + 1044: uint16(27249), + 1045: uint16(27266), + 1046: uint16(15340), + 1047: uint16(27289), + 1048: uint16(15346), + 1049: uint16(27307), + 1050: uint16(27317), + 1051: uint16(27348), + 1052: uint16(27382), + 1053: uint16(27521), + 1054: uint16(27585), + 1055: uint16(27626), + 1056: uint16(27765), + 1057: uint16(27818), + 1058: uint16(15563), + 1059: uint16(27906), + 1060: uint16(27910), + 1061: uint16(27942), + 1062: uint16(28033), + 1063: uint16(15599), + 1064: uint16(28068), + 1065: uint16(28081), + 1066: uint16(28181), + 1067: uint16(28184), + 1068: uint16(28201), + 1069: uint16(28294), + 1070: uint16(35264), + 1071: uint16(28347), + 1072: uint16(28386), + 1073: uint16(28378), + 1074: uint16(40831), + 1075: uint16(28392), + 1076: uint16(28393), + 1077: uint16(28452), + 1078: uint16(28468), + 1079: uint16(15686), + 1080: uint16(16193), + 1081: uint16(28545), + 1082: uint16(28606), + 1083: uint16(15722), + 1084: uint16(15733), + 1085: uint16(29111), + 1086: uint16(23705), + 1087: uint16(15754), + 1088: uint16(28716), + 1089: uint16(15761), + 1090: uint16(28752), + 1091: uint16(28756), + 1092: uint16(28783), + 1093: uint16(28799), + 1094: uint16(28809), + 1095: uint16(805), + 1096: uint16(17345), + 1097: uint16(13809), + 1098: uint16(3800), + 1099: uint16(16087), + 1100: uint16(22462), + 1101: uint16(28371), + 1102: uint16(28990), + 1103: uint16(22496), + 1104: uint16(13902), + 1105: uint16(27042), + 1106: uint16(35817), + 1107: uint16(23412), + 1108: uint16(31305), + 1109: uint16(22753), + 1110: uint16(38105), + 1111: uint16(31333), + 1112: uint16(31357), + 1113: uint16(22956), + 1114: uint16(31419), + 1115: uint16(31408), + 1116: uint16(31426), + 1117: uint16(31427), + 1118: uint16(29137), + 1119: uint16(25741), + 1120: uint16(16842), + 1121: uint16(31450), + 1122: uint16(31453), + 1123: uint16(31466), + 1124: uint16(16879), + 1125: uint16(21682), + 1126: uint16(23553), + 1127: uint16(31499), + 1128: uint16(31573), + 1129: uint16(31529), + 1130: uint16(21262), + 1131: uint16(23806), + 1132: uint16(31650), + 1133: uint16(31599), + 1134: uint16(33692), + 1135: uint16(23476), + 1136: uint16(27775), + 1137: uint16(31696), + 1138: uint16(33825), + 1139: uint16(31634), + 1141: uint16(23840), + 1142: uint16(15789), + 1143: uint16(23653), + 1144: uint16(33938), + 1145: uint16(31738), + 1147: uint16(31797), + 1148: uint16(23745), + 1149: uint16(31812), + 1150: uint16(31875), + 1151: uint16(18562), + 1152: uint16(31910), + 1153: uint16(26237), + 1154: uint16(17784), + 1155: uint16(31945), + 1156: uint16(31943), + 1157: uint16(31974), + 1158: uint16(31860), + 1159: uint16(31987), + 1160: uint16(31989), + 1162: uint16(32359), + 1163: uint16(17693), + 1164: uint16(28228), + 1165: uint16(32093), + 1166: uint16(28374), + 1167: uint16(29837), + 1168: uint16(32137), + 1169: uint16(32171), + 1170: uint16(28981), + 1171: uint16(32179), + 1173: uint16(16471), + 1174: uint16(24617), + 1175: uint16(32228), + 1176: uint16(15635), + 1177: uint16(32245), + 1178: uint16(6137), + 1179: uint16(32229), + 1180: uint16(33645), + 1182: uint16(24865), + 1183: uint16(24922), + 1184: uint16(32366), + 1185: uint16(32402), + 1186: uint16(17195), + 1187: uint16(37996), + 1188: uint16(32295), + 1189: uint16(32576), + 1190: uint16(32577), + 1191: uint16(32583), + 1192: uint16(31030), + 1193: uint16(25296), + 1194: uint16(39393), + 1195: uint16(32663), + 1196: uint16(25425), + 1197: uint16(32675), + 1198: uint16(5729), + 1199: uint16(104), + 1200: uint16(17756), + 1201: uint16(14182), + 1202: uint16(17667), + 1203: uint16(33594), + 1204: uint16(32762), + 1205: uint16(25737), + 1207: uint16(32776), + 1208: uint16(32797), + 1210: uint16(32815), + 1211: uint16(41095), + 1212: uint16(27843), + 1213: uint16(32827), + 1214: uint16(32828), + 1215: uint16(32865), + 1216: uint16(10004), + 1217: uint16(18825), + 1218: uint16(26150), + 1219: uint16(15843), + 1220: uint16(26344), + 1221: uint16(26405), + 1222: uint16(32935), + 1223: uint16(35400), + 1224: uint16(33031), + 1225: uint16(33050), + 1226: uint16(22704), + 1227: uint16(9974), + 1228: uint16(27775), + 1229: uint16(25752), + 1230: uint16(20408), + 1231: uint16(25831), + 1232: uint16(5258), + 1233: uint16(33304), + 1234: uint16(6238), + 1235: uint16(27219), + 1236: uint16(19045), + 1237: uint16(19093), + 1238: uint16(17530), + 1239: uint16(33321), + 1240: uint16(2829), + 1241: uint16(27218), + 1242: uint16(15742), + 1243: uint16(20473), + 1244: uint16(5373), + 1245: uint16(34018), + 1246: uint16(33634), + 1247: uint16(27402), + 1248: uint16(18855), + 1249: uint16(13616), + 1250: uint16(6003), + 1251: uint16(15864), + 1252: uint16(33450), + 1253: uint16(26907), + 1254: uint16(63892), + 1255: uint16(16859), + 1256: uint16(34123), + 1257: uint16(33488), + 1258: uint16(33562), + 1259: uint16(3606), + 1260: uint16(6068), + 1261: uint16(14017), + 1262: uint16(12669), + 1263: uint16(13658), + 1264: uint16(33403), + 1265: uint16(33506), + 1266: uint16(33560), + 1267: uint16(16011), + 1268: uint16(28067), + 1269: uint16(27397), + 1270: uint16(27543), + 1271: uint16(13774), + 1272: uint16(15807), + 1273: uint16(33565), + 1274: uint16(21996), + 1275: uint16(33669), + 1276: uint16(17675), + 1277: uint16(28069), + 1278: uint16(33708), + 1280: uint16(33747), + 1281: uint16(13438), + 1282: uint16(28372), + 1283: uint16(27223), + 1284: uint16(34138), + 1285: uint16(13462), + 1286: uint16(28226), + 1287: uint16(12015), + 1288: uint16(33880), + 1289: uint16(23524), + 1290: uint16(33905), + 1291: uint16(15827), + 1292: uint16(17636), + 1293: uint16(27303), + 1294: uint16(33866), + 1295: uint16(15541), + 1296: uint16(31064), + 1298: uint16(27542), + 1299: uint16(28279), + 1300: uint16(28227), + 1301: uint16(34014), + 1303: uint16(33681), + 1304: uint16(17568), + 1305: uint16(33939), + 1306: uint16(34020), + 1307: uint16(23697), + 1308: uint16(16960), + 1309: uint16(23744), + 1310: uint16(17731), + 1311: uint16(34100), + 1312: uint16(23282), + 1313: uint16(28313), + 1314: uint16(17703), + 1315: uint16(34163), + 1316: uint16(17686), + 1317: uint16(26559), + 1318: uint16(34326), + 1319: uint16(34341), + 1320: uint16(34363), + 1321: uint16(34241), + 1322: uint16(28808), + 1323: uint16(34306), + 1324: uint16(5506), + 1325: uint16(28877), + 1326: uint16(63922), + 1327: uint16(17770), + 1328: uint16(34344), + 1329: uint16(13896), + 1330: uint16(6306), + 1331: uint16(21495), + 1332: uint16(29594), + 1333: uint16(34430), + 1334: uint16(34673), + 1335: uint16(41208), + 1336: uint16(34798), + 1337: uint16(11303), + 1338: uint16(34737), + 1339: uint16(34778), + 1340: uint16(34831), + 1341: uint16(22113), + 1342: uint16(34412), + 1343: uint16(26710), + 1344: uint16(17935), + 1345: uint16(34885), + 1346: uint16(34886), + 1347: uint16(30176), + 1348: uint16(15801), + 1349: uint16(30180), + 1350: uint16(34910), + 1351: uint16(34972), + 1352: uint16(18011), + 1353: uint16(34996), + 1354: uint16(34997), + 1355: uint16(25537), + 1356: uint16(35013), + 1357: uint16(30583), + 1358: uint16(30479), + 1359: uint16(35207), + 1360: uint16(35210), + 1363: uint16(35239), + 1364: uint16(35260), + 1365: uint16(35365), + 1366: uint16(35303), + 1367: uint16(31012), + 1368: uint16(31421), + 1369: uint16(35484), + 1370: uint16(30611), + 1371: uint16(37374), + 1372: uint16(35472), + 1373: uint16(31321), + 1374: uint16(31465), + 1375: uint16(31546), + 1376: uint16(16271), + 1377: uint16(18195), + 1378: uint16(31544), + 1379: uint16(29052), + 1380: uint16(35596), + 1381: uint16(35615), + 1382: uint16(21552), + 1383: uint16(21861), + 1384: uint16(35647), + 1385: uint16(35660), + 1386: uint16(35661), + 1387: uint16(35497), + 1388: uint16(19066), + 1389: uint16(35728), + 1390: uint16(35739), + 1391: uint16(35503), + 1392: uint16(5855), + 1393: uint16(17941), + 1394: uint16(34895), + 1395: uint16(35995), + 1396: uint16(32084), + 1397: uint16(32143), + 1398: uint16(63956), + 1399: uint16(14117), + 1400: uint16(32083), + 1401: uint16(36054), + 1402: uint16(32152), + 1403: uint16(32189), + 1404: uint16(36114), + 1405: uint16(36099), + 1406: uint16(6416), + 1407: uint16(36059), + 1408: uint16(28764), + 1409: uint16(36113), + 1410: uint16(19657), + 1411: uint16(16080), + 1413: uint16(36265), + 1414: uint16(32770), + 1415: uint16(4116), + 1416: uint16(18826), + 1417: uint16(15228), + 1418: uint16(33212), + 1419: uint16(28940), + 1420: uint16(31463), + 1421: uint16(36525), + 1422: uint16(36534), + 1423: uint16(36547), + 1424: uint16(37588), + 1425: uint16(36633), + 1426: uint16(36653), + 1427: uint16(33637), + 1428: uint16(33810), + 1429: uint16(36773), + 1430: uint16(37635), + 1431: uint16(41631), + 1432: uint16(2640), + 1433: uint16(36787), + 1434: uint16(18730), + 1435: uint16(35294), + 1436: uint16(34109), + 1437: uint16(15803), + 1438: uint16(24312), + 1439: uint16(12898), + 1440: uint16(36857), + 1441: uint16(40980), + 1442: uint16(34492), + 1443: uint16(34049), + 1444: uint16(8997), + 1445: uint16(14720), + 1446: uint16(28375), + 1447: uint16(36919), + 1448: uint16(34108), + 1449: uint16(31422), + 1450: uint16(36961), + 1451: uint16(34156), + 1452: uint16(34315), + 1453: uint16(37032), + 1454: uint16(34579), + 1455: uint16(37060), + 1456: uint16(34534), + 1457: uint16(37038), + 1459: uint16(37223), + 1460: uint16(15088), + 1461: uint16(37289), + 1462: uint16(37316), + 1463: uint16(31916), + 1464: uint16(35123), + 1465: uint16(7817), + 1466: uint16(37390), + 1467: uint16(27807), + 1468: uint16(37441), + 1469: uint16(37474), + 1470: uint16(21945), + 1472: uint16(35526), + 1473: uint16(15515), + 1474: uint16(35596), + 1475: uint16(21979), + 1476: uint16(3377), + 1477: uint16(37676), + 1478: uint16(37739), + 1479: uint16(35553), + 1480: uint16(35819), + 1481: uint16(28815), + 1482: uint16(23235), + 1483: uint16(35554), + 1484: uint16(35557), + 1485: uint16(18789), + 1486: uint16(37444), + 1487: uint16(35820), + 1488: uint16(35897), + 1489: uint16(35839), + 1490: uint16(37747), + 1491: uint16(37979), + 1492: uint16(36540), + 1493: uint16(38277), + 1494: uint16(38310), + 1495: uint16(37926), + 1496: uint16(38304), + 1497: uint16(28662), + 1498: uint16(17081), + 1499: uint16(9850), + 1500: uint16(34520), + 1501: uint16(4732), + 1502: uint16(15918), + 1503: uint16(18911), + 1504: uint16(27676), + 1505: uint16(38523), + 1506: uint16(38550), + 1507: uint16(16748), + 1508: uint16(38563), + 1509: uint16(28373), + 1510: uint16(25050), + 1511: uint16(38582), + 1512: uint16(30965), + 1513: uint16(35552), + 1514: uint16(38589), + 1515: uint16(21452), + 1516: uint16(18849), + 1517: uint16(27832), + 1518: uint16(628), + 1519: uint16(25616), + 1520: uint16(37039), + 1521: uint16(37093), + 1522: uint16(19153), + 1523: uint16(6421), + 1524: uint16(13066), + 1525: uint16(38705), + 1526: uint16(34370), + 1527: uint16(38710), + 1528: uint16(18959), + 1529: uint16(17725), + 1530: uint16(17797), + 1531: uint16(19177), + 1532: uint16(28789), + 1533: uint16(23361), + 1534: uint16(38683), + 1536: uint16(37333), + 1537: uint16(38743), + 1538: uint16(23370), + 1539: uint16(37355), + 1540: uint16(38751), + 1541: uint16(37925), + 1542: uint16(20688), + 1543: uint16(12471), + 1544: uint16(12476), + 1545: uint16(38793), + 1546: uint16(38815), + 1547: uint16(38833), + 1548: uint16(38846), + 1549: uint16(38848), + 1550: uint16(38866), + 1551: uint16(38880), + 1552: uint16(21612), + 1553: uint16(38894), + 1554: uint16(29724), + 1555: uint16(37939), + 1557: uint16(38901), + 1558: uint16(37917), + 1559: uint16(31098), + 1560: uint16(19153), + 1561: uint16(38964), + 1562: uint16(38963), + 1563: uint16(38987), + 1564: uint16(39014), + 1565: uint16(15118), + 1566: uint16(29045), + 1567: uint16(15697), + 1568: uint16(1584), + 1569: uint16(16732), + 1570: uint16(22278), + 1571: uint16(39114), + 1572: uint16(39095), + 1573: uint16(39112), + 1574: uint16(39111), + 1575: uint16(19199), + 1576: uint16(27943), + 1577: uint16(5843), + 1578: uint16(21936), + 1579: uint16(39137), + 1580: uint16(39142), + 1581: uint16(39148), + 1582: uint16(37752), + 1583: uint16(39225), + 1584: uint16(18985), + 1585: uint16(19314), + 1586: uint16(38999), + 1587: uint16(39173), + 1588: uint16(39413), + 1589: uint16(39436), + 1590: uint16(39483), + 1591: uint16(39440), + 1592: uint16(39512), + 1593: uint16(22309), + 1594: uint16(14020), + 1595: uint16(37041), + 1596: uint16(39893), + 1597: uint16(39648), + 1598: uint16(39650), + 1599: uint16(39685), + 1600: uint16(39668), + 1601: uint16(19470), + 1602: uint16(39700), + 1603: uint16(39725), + 1604: uint16(34304), + 1605: uint16(20532), + 1606: uint16(39732), + 1607: uint16(27048), + 1608: uint16(14531), + 1609: uint16(12413), + 1610: uint16(39760), + 1611: uint16(39744), + 1612: uint16(40254), + 1613: uint16(23109), + 1614: uint16(6243), + 1615: uint16(39822), + 1616: uint16(16971), + 1617: uint16(39938), + 1618: uint16(39935), + 1619: uint16(39948), + 1620: uint16(40552), + 1621: uint16(40404), + 1622: uint16(40887), + 1623: uint16(41362), + 1624: uint16(41387), + 1625: uint16(41185), + 1626: uint16(41251), + 1627: uint16(41439), + 1628: uint16(40318), + 1629: uint16(40323), + 1630: uint16(41268), + 1631: uint16(40462), + 1632: uint16(26760), + 1633: uint16(40388), + 1634: uint16(8539), + 1635: uint16(41363), + 1636: uint16(41504), + 1637: uint16(6459), + 1638: uint16(41523), + 1639: uint16(40249), + 1640: uint16(41145), + 1641: uint16(41652), + 1642: uint16(40592), + 1643: uint16(40597), + 1644: uint16(40606), + 1645: uint16(40610), + 1646: uint16(19764), + 1647: uint16(40618), + 1648: uint16(40623), + 1649: uint16(17252), + 1650: uint16(40641), + 1651: uint16(15200), + 1652: uint16(14821), + 1653: uint16(15645), + 1654: uint16(20274), + 1655: uint16(14270), + 1656: uint16(35883), + 1657: uint16(40706), + 1658: uint16(40712), + 1659: uint16(19350), + 1660: uint16(37924), + 1661: uint16(28066), + 1662: uint16(40727), + 1664: uint16(40761), + 1665: uint16(22175), + 1666: uint16(22154), + 1667: uint16(40773), + 1668: uint16(39352), + 1669: uint16(37003), + 1670: uint16(38898), + 1671: uint16(33919), + 1672: uint16(40802), + 1673: uint16(40809), + 1674: uint16(31452), + 1675: uint16(40846), + 1676: uint16(29206), + 1677: uint16(19390), + 1678: uint16(18805), + 1679: uint16(18875), + 1680: uint16(29047), + 1681: uint16(18936), + 1682: uint16(17224), + 1683: uint16(19025), + 1684: uint16(29598), + 1685: uint16(35802), + 1686: uint16(6394), + 1687: uint16(31135), + 1688: uint16(35198), + 1689: uint16(36406), + 1690: uint16(37737), + 1691: uint16(37875), + 1692: uint16(35396), + 1693: uint16(37612), + 1694: uint16(37761), + 1695: uint16(37835), + 1696: uint16(35180), + 1697: uint16(17593), + 1698: uint16(29207), + 1699: uint16(16107), + 1700: uint16(30578), + 1701: uint16(31299), + 1702: uint16(28880), + 1703: uint16(17523), + 1704: uint16(17400), + 1705: uint16(29054), + 1706: uint16(6127), + 1707: uint16(28835), + 1708: uint16(6334), + 1709: uint16(13721), + 1710: uint16(16071), + 1711: uint16(6277), + 1712: uint16(21551), + 1713: uint16(6136), + 1714: uint16(14114), + 1715: uint16(5883), + 1716: uint16(6201), + 1717: uint16(14049), + 1718: uint16(6004), + 1719: uint16(6353), + 1720: uint16(24395), + 1721: uint16(14115), + 1722: uint16(5824), + 1723: uint16(22363), + 1724: uint16(18981), + 1725: uint16(5118), + 1726: uint16(4776), + 1727: uint16(5062), + 1728: uint16(5302), + 1729: uint16(34051), + 1730: uint16(13990), + 1732: uint16(33877), + 1733: uint16(18836), + 1734: uint16(29029), + 1735: uint16(15921), + 1736: uint16(21852), + 1737: uint16(16123), + 1738: uint16(28754), + 1739: uint16(17652), + 1740: uint16(14062), + 1741: uint16(39325), + 1742: uint16(28454), + 1743: uint16(26617), + 1744: uint16(14131), + 1745: uint16(15381), + 1746: uint16(15847), + 1747: uint16(22636), + 1748: uint16(6434), + 1749: uint16(26640), + 1750: uint16(16471), + 1751: uint16(14143), + 1752: uint16(16609), + 1753: uint16(16523), + 1754: uint16(16655), + 1755: uint16(27681), + 1756: uint16(21707), + 1757: uint16(22174), + 1758: uint16(26289), + 1759: uint16(22162), + 1760: uint16(4063), + 1761: uint16(2984), + 1762: uint16(3597), + 1763: uint16(37830), + 1764: uint16(35603), + 1765: uint16(37788), + 1766: uint16(20216), + 1767: uint16(20779), + 1768: uint16(14361), + 1769: uint16(17462), + 1770: uint16(20156), + 1771: uint16(1125), + 1772: uint16(895), + 1773: uint16(20299), + 1774: uint16(20362), + 1775: uint16(22097), + 1776: uint16(23144), + 1777: uint16(427), + 1778: uint16(971), + 1779: uint16(14745), + 1780: uint16(778), + 1781: uint16(1044), + 1782: uint16(13365), + 1783: uint16(20265), + 1784: uint16(704), + 1785: uint16(36531), + 1786: uint16(629), + 1787: uint16(35546), + 1788: uint16(524), + 1789: uint16(20120), + 1790: uint16(20685), + 1791: uint16(20749), + 1792: uint16(20386), + 1793: uint16(20227), + 1794: uint16(18958), + 1795: uint16(16010), + 1796: uint16(20290), + 1797: uint16(20526), + 1798: uint16(20588), + 1799: uint16(20609), + 1800: uint16(20428), + 1801: uint16(20453), + 1802: uint16(20568), + 1803: uint16(20732), + 1808: uint16(28278), + 1809: uint16(13717), + 1810: uint16(15929), + 1811: uint16(16063), + 1812: uint16(28018), + 1813: uint16(6276), + 1814: uint16(16009), + 1815: uint16(20904), + 1816: uint16(20931), + 1817: uint16(1504), + 1818: uint16(17629), + 1819: uint16(1187), + 1820: uint16(1170), + 1821: uint16(1169), + 1822: uint16(36218), + 1823: uint16(35484), + 1824: uint16(1806), + 1825: uint16(21081), + 1826: uint16(21156), + 1827: uint16(2163), + 1828: uint16(21217), + 1830: uint16(18042), + 1831: uint16(29068), + 1832: uint16(17292), + 1833: uint16(3104), + 1834: uint16(18860), + 1835: uint16(4324), + 1836: uint16(27089), + 1837: uint16(3613), + 1839: uint16(16094), + 1840: uint16(29849), + 1841: uint16(29716), + 1842: uint16(29782), + 1843: uint16(29592), + 1844: uint16(19342), + 1845: uint16(19132), + 1846: uint16(16525), + 1847: uint16(21456), + 1848: uint16(13700), + 1849: uint16(29199), + 1850: uint16(16585), + 1851: uint16(21940), + 1852: uint16(837), + 1853: uint16(21709), + 1854: uint16(3014), + 1855: uint16(22301), + 1856: uint16(37469), + 1857: uint16(38644), + 1858: uint16(37734), + 1859: uint16(22493), + 1860: uint16(22413), + 1861: uint16(22399), + 1862: uint16(13886), + 1863: uint16(22731), + 1864: uint16(23193), + 1865: uint16(35398), + 1866: uint16(5882), + 1867: uint16(5999), + 1868: uint16(5904), + 1869: uint16(23084), + 1870: uint16(22968), + 1871: uint16(37519), + 1872: uint16(23166), + 1873: uint16(23247), + 1874: uint16(23058), + 1875: uint16(22854), + 1876: uint16(6643), + 1877: uint16(6241), + 1878: uint16(17045), + 1879: uint16(14069), + 1880: uint16(27909), + 1881: uint16(29763), + 1882: uint16(23073), + 1883: uint16(24195), + 1884: uint16(23169), + 1885: uint16(35799), + 1886: uint16(1043), + 1887: uint16(37856), + 1888: uint16(29836), + 1889: uint16(4867), + 1890: uint16(28933), + 1891: uint16(18802), + 1892: uint16(37896), + 1893: uint16(35323), + 1894: uint16(37821), + 1895: uint16(14240), + 1896: uint16(23582), + 1897: uint16(23710), + 1898: uint16(24158), + 1899: uint16(24136), + 1900: uint16(6550), + 1901: uint16(6524), + 1902: uint16(15086), + 1903: uint16(24269), + 1904: uint16(23375), + 1905: uint16(6403), + 1906: uint16(6404), + 1907: uint16(14081), + 1908: uint16(6304), + 1909: uint16(14045), + 1910: uint16(5886), + 1911: uint16(14035), + 1912: uint16(33066), + 1913: uint16(35399), + 1914: uint16(7610), + 1915: uint16(13426), + 1916: uint16(35240), + 1917: uint16(24332), + 1918: uint16(24334), + 1919: uint16(6439), + 1920: uint16(6059), + 1921: uint16(23147), + 1922: uint16(5947), + 1923: uint16(23364), + 1924: uint16(34324), + 1925: uint16(30205), + 1926: uint16(34912), + 1927: uint16(24702), + 1928: uint16(10336), + 1929: uint16(9771), + 1930: uint16(24539), + 1931: uint16(16056), + 1932: uint16(9647), + 1933: uint16(9662), + 1934: uint16(37000), + 1935: uint16(28531), + 1936: uint16(25024), + 1937: uint16(62), + 1938: uint16(70), + 1939: uint16(9755), + 1940: uint16(24985), + 1941: uint16(24984), + 1942: uint16(24693), + 1943: uint16(11419), + 1944: uint16(11527), + 1945: uint16(18132), + 1946: uint16(37197), + 1947: uint16(25713), + 1948: uint16(18021), + 1949: uint16(11114), + 1950: uint16(14889), + 1951: uint16(11042), + 1952: uint16(13392), + 1953: uint16(39146), + 1954: uint16(11896), + 1955: uint16(25399), + 1956: uint16(42075), + 1957: uint16(25782), + 1958: uint16(25393), + 1959: uint16(25553), + 1960: uint16(18915), + 1961: uint16(11623), + 1962: uint16(25252), + 1963: uint16(11425), + 1964: uint16(25659), + 1965: uint16(25963), + 1966: uint16(26994), + 1967: uint16(15348), + 1968: uint16(12430), + 1969: uint16(12973), + 1970: uint16(18825), + 1971: uint16(12971), + 1972: uint16(21773), + 1973: uint16(13024), + 1974: uint16(6361), + 1975: uint16(37951), + 1976: uint16(26318), + 1977: uint16(12937), + 1978: uint16(12723), + 1979: uint16(15072), + 1980: uint16(16784), + 1981: uint16(21892), + 1982: uint16(35618), + 1983: uint16(21903), + 1984: uint16(5884), + 1985: uint16(21851), + 1986: uint16(21541), + 1987: uint16(30958), + 1988: uint16(12547), + 1989: uint16(6186), + 1990: uint16(12852), + 1991: uint16(13412), + 1992: uint16(12815), + 1993: uint16(12674), + 1994: uint16(17097), + 1995: uint16(26254), + 1996: uint16(27940), + 1997: uint16(26219), + 1998: uint16(19347), + 1999: uint16(26160), + 2000: uint16(30832), + 2001: uint16(7659), + 2002: uint16(26211), + 2003: uint16(13010), + 2004: uint16(13025), + 2005: uint16(26142), + 2006: uint16(22642), + 2007: uint16(14545), + 2008: uint16(14394), + 2009: uint16(14268), + 2010: uint16(15257), + 2011: uint16(14242), + 2012: uint16(13310), + 2013: uint16(29904), + 2014: uint16(15254), + 2015: uint16(26511), + 2016: uint16(17962), + 2017: uint16(26806), + 2018: uint16(26654), + 2019: uint16(15300), + 2020: uint16(27326), + 2021: uint16(14435), + 2022: uint16(14293), + 2023: uint16(17543), + 2024: uint16(27187), + 2025: uint16(27218), + 2026: uint16(27337), + 2027: uint16(27397), + 2028: uint16(6418), + 2029: uint16(25873), + 2030: uint16(26776), + 2031: uint16(27212), + 2032: uint16(15319), + 2033: uint16(27258), + 2034: uint16(27479), + 2035: uint16(16320), + 2036: uint16(15514), + 2037: uint16(37792), + 2038: uint16(37618), + 2039: uint16(35818), + 2040: uint16(35531), + 2041: uint16(37513), + 2042: uint16(32798), + 2043: uint16(35292), + 2044: uint16(37991), + 2045: uint16(28069), + 2046: uint16(28427), + 2047: uint16(18924), + 2049: uint16(16255), + 2050: uint16(15759), + 2051: uint16(28164), + 2052: uint16(16444), + 2053: uint16(23101), + 2054: uint16(28170), + 2055: uint16(22599), + 2056: uint16(27940), + 2057: uint16(30786), + 2058: uint16(28987), + 2059: uint16(17178), + 2060: uint16(17014), + 2061: uint16(28913), + 2062: uint16(29264), + 2063: uint16(29319), + 2064: uint16(29332), + 2065: uint16(18319), + 2066: uint16(18213), + 2067: uint16(20857), + 2068: uint16(19108), + 2069: uint16(1515), + 2070: uint16(29818), + 2071: uint16(16120), + 2072: uint16(13919), + 2073: uint16(19018), + 2074: uint16(18711), + 2075: uint16(24545), + 2076: uint16(16134), + 2077: uint16(16049), + 2078: uint16(19167), + 2079: uint16(35875), + 2080: uint16(16181), + 2081: uint16(24743), + 2082: uint16(16115), + 2083: uint16(29900), + 2084: uint16(29756), + 2085: uint16(37767), + 2086: uint16(29751), + 2087: uint16(17567), + 2088: uint16(28138), + 2089: uint16(17745), + 2090: uint16(30083), + 2091: uint16(16227), + 2092: uint16(19673), + 2093: uint16(19718), + 2094: uint16(16216), + 2095: uint16(30037), + 2096: uint16(30323), + 2097: uint16(42438), + 2098: uint16(15129), + 2099: uint16(29800), + 2100: uint16(35532), + 2101: uint16(18859), + 2102: uint16(18830), + 2103: uint16(15099), + 2104: uint16(15821), + 2105: uint16(19022), + 2106: uint16(16127), + 2107: uint16(18885), + 2108: uint16(18675), + 2109: uint16(37370), + 2110: uint16(22322), + 2111: uint16(37698), + 2112: uint16(35555), + 2113: uint16(6244), + 2114: uint16(20703), + 2115: uint16(21025), + 2116: uint16(20967), + 2117: uint16(30584), + 2118: uint16(12850), + 2119: uint16(30478), + 2120: uint16(30479), + 2121: uint16(30587), + 2122: uint16(18071), + 2123: uint16(14209), + 2124: uint16(14942), + 2125: uint16(18672), + 2126: uint16(29752), + 2127: uint16(29851), + 2128: uint16(16063), + 2129: uint16(19130), + 2130: uint16(19143), + 2131: uint16(16584), + 2132: uint16(19094), + 2133: uint16(25006), + 2134: uint16(37639), + 2135: uint16(21889), + 2136: uint16(30750), + 2137: uint16(30861), + 2138: uint16(30856), + 2139: uint16(30930), + 2140: uint16(29648), + 2141: uint16(31065), + 2142: uint16(30529), + 2143: uint16(22243), + 2144: uint16(16654), + 2146: uint16(33942), + 2147: uint16(31141), + 2148: uint16(27181), + 2149: uint16(16122), + 2150: uint16(31290), + 2151: uint16(31220), + 2152: uint16(16750), + 2153: uint16(5862), + 2154: uint16(16690), + 2155: uint16(37429), + 2156: uint16(31217), + 2157: uint16(3404), + 2158: uint16(18828), + 2159: uint16(665), + 2160: uint16(15802), + 2161: uint16(5998), + 2162: uint16(13719), + 2163: uint16(21867), + 2164: uint16(13680), + 2165: uint16(13994), + 2166: uint16(468), + 2167: uint16(3085), + 2168: uint16(31458), + 2169: uint16(23129), + 2170: uint16(9973), + 2171: uint16(23215), + 2172: uint16(23196), + 2173: uint16(23053), + 2174: uint16(603), + 2175: uint16(30960), + 2176: uint16(23082), + 2177: uint16(23494), + 2178: uint16(31486), + 2179: uint16(16889), + 2180: uint16(31837), + 2181: uint16(31853), + 2182: uint16(16913), + 2183: uint16(23475), + 2184: uint16(24252), + 2185: uint16(24230), + 2186: uint16(31949), + 2187: uint16(18937), + 2188: uint16(6064), + 2189: uint16(31886), + 2190: uint16(31868), + 2191: uint16(31918), + 2192: uint16(27314), + 2193: uint16(32220), + 2194: uint16(32263), + 2195: uint16(32211), + 2196: uint16(32590), + 2197: uint16(25185), + 2198: uint16(24924), + 2199: uint16(31560), + 2200: uint16(32151), + 2201: uint16(24194), + 2202: uint16(17002), + 2203: uint16(27509), + 2204: uint16(2326), + 2205: uint16(26582), + 2206: uint16(78), + 2207: uint16(13775), + 2208: uint16(22468), + 2209: uint16(25618), + 2210: uint16(25592), + 2211: uint16(18786), + 2212: uint16(32733), + 2213: uint16(31527), + 2214: uint16(2092), + 2215: uint16(23273), + 2216: uint16(23875), + 2217: uint16(31500), + 2218: uint16(24078), + 2219: uint16(39398), + 2220: uint16(34373), + 2221: uint16(39523), + 2222: uint16(27164), + 2223: uint16(13375), + 2224: uint16(14818), + 2225: uint16(18935), + 2226: uint16(26029), + 2227: uint16(39455), + 2228: uint16(26016), + 2229: uint16(33920), + 2230: uint16(28967), + 2231: uint16(27857), + 2232: uint16(17642), + 2233: uint16(33079), + 2234: uint16(17410), + 2235: uint16(32966), + 2236: uint16(33033), + 2237: uint16(33090), + 2238: uint16(26548), + 2239: uint16(39107), + 2240: uint16(27202), + 2241: uint16(33378), + 2242: uint16(33381), + 2243: uint16(27217), + 2244: uint16(33875), + 2245: uint16(28071), + 2246: uint16(34320), + 2247: uint16(29211), + 2248: uint16(23174), + 2249: uint16(16767), + 2250: uint16(6208), + 2251: uint16(23339), + 2252: uint16(6305), + 2253: uint16(23268), + 2254: uint16(6360), + 2255: uint16(34464), + 2256: uint16(63932), + 2257: uint16(15759), + 2258: uint16(34861), + 2259: uint16(29730), + 2260: uint16(23042), + 2261: uint16(34926), + 2262: uint16(20293), + 2263: uint16(34951), + 2264: uint16(35007), + 2265: uint16(35046), + 2266: uint16(35173), + 2267: uint16(35149), + 2268: uint16(22147), + 2269: uint16(35156), + 2270: uint16(30597), + 2271: uint16(30596), + 2272: uint16(35829), + 2273: uint16(35801), + 2274: uint16(35740), + 2275: uint16(35321), + 2276: uint16(16045), + 2277: uint16(33955), + 2278: uint16(18165), + 2279: uint16(18127), + 2280: uint16(14322), + 2281: uint16(35389), + 2282: uint16(35356), + 2283: uint16(37960), + 2284: uint16(24397), + 2285: uint16(37419), + 2286: uint16(17028), + 2287: uint16(26068), + 2288: uint16(28969), + 2289: uint16(28868), + 2290: uint16(6213), + 2291: uint16(40301), + 2292: uint16(35999), + 2293: uint16(36073), + 2294: uint16(32220), + 2295: uint16(22938), + 2296: uint16(30659), + 2297: uint16(23024), + 2298: uint16(17262), + 2299: uint16(14036), + 2300: uint16(36394), + 2301: uint16(36519), + 2302: uint16(19465), + 2303: uint16(36656), + 2304: uint16(36682), + 2305: uint16(17140), + 2306: uint16(27736), + 2307: uint16(28603), + 2308: uint16(8993), + 2309: uint16(18587), + 2310: uint16(28537), + 2311: uint16(28299), + 2312: uint16(6106), + 2313: uint16(39913), + 2314: uint16(14005), + 2315: uint16(18735), + 2316: uint16(37051), + 2318: uint16(21873), + 2319: uint16(18694), + 2320: uint16(37307), + 2321: uint16(37892), + 2322: uint16(35403), + 2323: uint16(16482), + 2324: uint16(35580), + 2325: uint16(37927), + 2326: uint16(35869), + 2327: uint16(35899), + 2328: uint16(34021), + 2329: uint16(35371), + 2330: uint16(38297), + 2331: uint16(38311), + 2332: uint16(38295), + 2333: uint16(38294), + 2334: uint16(36148), + 2335: uint16(29765), + 2336: uint16(16066), + 2337: uint16(18687), + 2338: uint16(19010), + 2339: uint16(17386), + 2340: uint16(16103), + 2341: uint16(12837), + 2342: uint16(38543), + 2343: uint16(36583), + 2344: uint16(36454), + 2345: uint16(36453), + 2346: uint16(16076), + 2347: uint16(18925), + 2348: uint16(19064), + 2349: uint16(16366), + 2350: uint16(29714), + 2351: uint16(29803), + 2352: uint16(16124), + 2353: uint16(38721), + 2354: uint16(37040), + 2355: uint16(26695), + 2356: uint16(18973), + 2357: uint16(37011), + 2358: uint16(22495), + 2360: uint16(37736), + 2361: uint16(35209), + 2362: uint16(35878), + 2363: uint16(35631), + 2364: uint16(25534), + 2365: uint16(37562), + 2366: uint16(23313), + 2367: uint16(35689), + 2368: uint16(18748), + 2369: uint16(29689), + 2370: uint16(16923), + 2371: uint16(38811), + 2372: uint16(38769), + 2373: uint16(39224), + 2374: uint16(3878), + 2375: uint16(24001), + 2376: uint16(35781), + 2377: uint16(19122), + 2378: uint16(38943), + 2379: uint16(38106), + 2380: uint16(37622), + 2381: uint16(38359), + 2382: uint16(37349), + 2383: uint16(17600), + 2384: uint16(35664), + 2385: uint16(19047), + 2386: uint16(35684), + 2387: uint16(39132), + 2388: uint16(35397), + 2389: uint16(16128), + 2390: uint16(37418), + 2391: uint16(18725), + 2392: uint16(33812), + 2393: uint16(39227), + 2394: uint16(39245), + 2395: uint16(31494), + 2396: uint16(15869), + 2397: uint16(39323), + 2398: uint16(19311), + 2399: uint16(39338), + 2400: uint16(39516), + 2401: uint16(35685), + 2402: uint16(22728), + 2403: uint16(27279), + 2404: uint16(39457), + 2405: uint16(23294), + 2406: uint16(39471), + 2407: uint16(39153), + 2408: uint16(19344), + 2409: uint16(39240), + 2410: uint16(39356), + 2411: uint16(19389), + 2412: uint16(19351), + 2413: uint16(37757), + 2414: uint16(22642), + 2415: uint16(4866), + 2416: uint16(22562), + 2417: uint16(18872), + 2418: uint16(5352), + 2419: uint16(30788), + 2420: uint16(10015), + 2421: uint16(15800), + 2422: uint16(26821), + 2423: uint16(15741), + 2424: uint16(37976), + 2425: uint16(14631), + 2426: uint16(24912), + 2427: uint16(10113), + 2428: uint16(10603), + 2429: uint16(24839), + 2430: uint16(40015), + 2431: uint16(40019), + 2432: uint16(40059), + 2433: uint16(39989), + 2434: uint16(39952), + 2435: uint16(39807), + 2436: uint16(39887), + 2437: uint16(40493), + 2438: uint16(39839), + 2439: uint16(41461), + 2440: uint16(41214), + 2441: uint16(40225), + 2442: uint16(19630), + 2443: uint16(16644), + 2444: uint16(40472), + 2445: uint16(19632), + 2446: uint16(40204), + 2447: uint16(41396), + 2448: uint16(41197), + 2449: uint16(41203), + 2450: uint16(39215), + 2451: uint16(40357), + 2452: uint16(33981), + 2453: uint16(28178), + 2454: uint16(28639), + 2455: uint16(27522), + 2456: uint16(34300), + 2457: uint16(17715), + 2458: uint16(28068), + 2459: uint16(28292), + 2460: uint16(28144), + 2461: uint16(33824), + 2462: uint16(34286), + 2463: uint16(28160), + 2464: uint16(14295), + 2465: uint16(24676), + 2466: uint16(31202), + 2467: uint16(13724), + 2468: uint16(13888), + 2469: uint16(18733), + 2470: uint16(18910), + 2471: uint16(15714), + 2472: uint16(37851), + 2473: uint16(37566), + 2474: uint16(37704), + 2475: uint16(703), + 2476: uint16(30905), + 2477: uint16(37495), + 2478: uint16(37965), + 2479: uint16(20452), + 2480: uint16(13376), + 2481: uint16(36964), + 2482: uint16(21853), + 2483: uint16(30781), + 2484: uint16(30804), + 2485: uint16(30902), + 2486: uint16(30795), + 2487: uint16(5975), + 2488: uint16(12745), + 2489: uint16(18753), + 2490: uint16(13978), + 2491: uint16(20338), + 2492: uint16(28634), + 2493: uint16(28633), + 2495: uint16(28702), + 2496: uint16(21524), + 2497: uint16(16821), + 2498: uint16(22459), + 2499: uint16(22771), + 2500: uint16(22410), + 2501: uint16(40214), + 2502: uint16(22487), + 2503: uint16(28980), + 2504: uint16(13487), + 2505: uint16(16812), + 2506: uint16(29163), + 2507: uint16(27712), + 2508: uint16(20375), + 2510: uint16(6069), + 2511: uint16(35401), + 2512: uint16(24844), + 2513: uint16(23246), + 2514: uint16(23051), + 2515: uint16(17084), + 2516: uint16(17544), + 2517: uint16(14124), + 2518: uint16(19323), + 2519: uint16(35324), + 2520: uint16(37819), + 2521: uint16(37816), + 2522: uint16(6358), + 2523: uint16(3869), + 2524: uint16(33906), + 2525: uint16(27840), + 2526: uint16(5139), + 2527: uint16(17146), + 2528: uint16(11302), + 2529: uint16(17345), + 2530: uint16(22932), + 2531: uint16(15799), + 2532: uint16(26433), + 2533: uint16(32168), + 2534: uint16(24923), + 2535: uint16(24740), + 2536: uint16(18873), + 2537: uint16(18827), + 2538: uint16(35322), + 2539: uint16(37605), + 2540: uint16(29666), + 2541: uint16(16105), + 2542: uint16(29876), + 2543: uint16(35683), + 2544: uint16(6303), + 2545: uint16(16097), + 2546: uint16(19123), + 2547: uint16(27352), + 2548: uint16(29683), + 2549: uint16(29691), + 2550: uint16(16086), + 2551: uint16(19006), + 2552: uint16(19092), + 2553: uint16(6105), + 2554: uint16(19046), + 2555: uint16(935), + 2556: uint16(5156), + 2557: uint16(18917), + 2558: uint16(29768), + 2559: uint16(18710), + 2560: uint16(28837), + 2561: uint16(18806), + 2562: uint16(37508), + 2563: uint16(29670), + 2564: uint16(37727), + 2565: uint16(1278), + 2566: uint16(37681), + 2567: uint16(35534), + 2568: uint16(35350), + 2569: uint16(37766), + 2570: uint16(35815), + 2571: uint16(21973), + 2572: uint16(18741), + 2573: uint16(35458), + 2574: uint16(29035), + 2575: uint16(18755), + 2576: uint16(3327), + 2577: uint16(22180), + 2578: uint16(1562), + 2579: uint16(3051), + 2580: uint16(3256), + 2581: uint16(21762), + 2582: uint16(31172), + 2583: uint16(6138), + 2584: uint16(32254), + 2585: uint16(5826), + 2586: uint16(19024), + 2587: uint16(6226), + 2588: uint16(17710), + 2589: uint16(37889), + 2590: uint16(14090), + 2591: uint16(35520), + 2592: uint16(18861), + 2593: uint16(22960), + 2594: uint16(6335), + 2595: uint16(6275), + 2596: uint16(29828), + 2597: uint16(23201), + 2598: uint16(14050), + 2599: uint16(15707), + 2600: uint16(14000), + 2601: uint16(37471), + 2602: uint16(23161), + 2603: uint16(35457), + 2604: uint16(6242), + 2605: uint16(37748), + 2606: uint16(15565), + 2607: uint16(2740), + 2608: uint16(19094), + 2609: uint16(14730), + 2610: uint16(20724), + 2611: uint16(15721), + 2612: uint16(15692), + 2613: uint16(5020), + 2614: uint16(29045), + 2615: uint16(17147), + 2616: uint16(33304), + 2617: uint16(28175), + 2618: uint16(37092), + 2619: uint16(17643), + 2620: uint16(27991), + 2621: uint16(32335), + 2622: uint16(28775), + 2623: uint16(27823), + 2624: uint16(15574), + 2625: uint16(16365), + 2626: uint16(15917), + 2627: uint16(28162), + 2628: uint16(28428), + 2629: uint16(15727), + 2630: uint16(1013), + 2631: uint16(30033), + 2632: uint16(14012), + 2633: uint16(13512), + 2634: uint16(18048), + 2635: uint16(16090), + 2636: uint16(18545), + 2637: uint16(22980), + 2638: uint16(37486), + 2639: uint16(18750), + 2640: uint16(36673), + 2641: uint16(35868), + 2642: uint16(27584), + 2643: uint16(22546), + 2644: uint16(22472), + 2645: uint16(14038), + 2646: uint16(5202), + 2647: uint16(28926), + 2648: uint16(17250), + 2649: uint16(19057), + 2650: uint16(12259), + 2651: uint16(4784), + 2652: uint16(9149), + 2653: uint16(26809), + 2654: uint16(26983), + 2655: uint16(5016), + 2656: uint16(13541), + 2657: uint16(31732), + 2658: uint16(14047), + 2659: uint16(35459), + 2660: uint16(14294), + 2661: uint16(13306), + 2662: uint16(19615), + 2663: uint16(27162), + 2664: uint16(13997), + 2665: uint16(27831), + 2666: uint16(33854), + 2667: uint16(17631), + 2668: uint16(17614), + 2669: uint16(27942), + 2670: uint16(27985), + 2671: uint16(27778), + 2672: uint16(28638), + 2673: uint16(28439), + 2674: uint16(28937), + 2675: uint16(33597), + 2676: uint16(5946), + 2677: uint16(33773), + 2678: uint16(27776), + 2679: uint16(28755), + 2680: uint16(6107), + 2681: uint16(22921), + 2682: uint16(23170), + 2683: uint16(6067), + 2684: uint16(23137), + 2685: uint16(23153), + 2686: uint16(6405), + 2687: uint16(16892), + 2688: uint16(14125), + 2689: uint16(23023), + 2690: uint16(5948), + 2691: uint16(14023), + 2692: uint16(29070), + 2693: uint16(37776), + 2694: uint16(26266), + 2695: uint16(17061), + 2696: uint16(23150), + 2697: uint16(23083), + 2698: uint16(17043), + 2699: uint16(27179), + 2700: uint16(16121), + 2701: uint16(30518), + 2702: uint16(17499), + 2703: uint16(17098), + 2704: uint16(28957), + 2705: uint16(16985), + 2706: uint16(35297), + 2707: uint16(20400), + 2708: uint16(27944), + 2709: uint16(23746), + 2710: uint16(17614), + 2711: uint16(32333), + 2712: uint16(17341), + 2713: uint16(27148), + 2714: uint16(16982), + 2715: uint16(4868), + 2716: uint16(28838), + 2717: uint16(28979), + 2718: uint16(17385), + 2719: uint16(15781), + 2720: uint16(27871), + 2721: uint16(63525), + 2722: uint16(19023), + 2723: uint16(32357), + 2724: uint16(23019), + 2725: uint16(23855), + 2726: uint16(15859), + 2727: uint16(24412), + 2728: uint16(19037), + 2729: uint16(6111), + 2730: uint16(32164), + 2731: uint16(33830), + 2732: uint16(21637), + 2733: uint16(15098), + 2734: uint16(13056), + 2735: uint16(532), + 2736: uint16(22398), + 2737: uint16(2261), + 2738: uint16(1561), + 2739: uint16(16357), + 2740: uint16(8094), + 2741: uint16(41654), + 2742: uint16(28675), + 2743: uint16(37211), + 2744: uint16(23920), + 2745: uint16(29583), + 2746: uint16(31955), + 2747: uint16(35417), + 2748: uint16(37920), + 2749: uint16(20424), + 2750: uint16(32743), + 2751: uint16(29389), + 2752: uint16(29456), + 2753: uint16(31476), + 2754: uint16(29496), + 2755: uint16(29497), + 2756: uint16(22262), + 2757: uint16(29505), + 2758: uint16(29512), + 2759: uint16(16041), + 2760: uint16(31512), + 2761: uint16(36972), + 2762: uint16(29173), + 2763: uint16(18674), + 2764: uint16(29665), + 2765: uint16(33270), + 2766: uint16(16074), + 2767: uint16(30476), + 2768: uint16(16081), + 2769: uint16(27810), + 2770: uint16(22269), + 2771: uint16(29721), + 2772: uint16(29726), + 2773: uint16(29727), + 2774: uint16(16098), + 2775: uint16(16112), + 2776: uint16(16116), + 2777: uint16(16122), + 2778: uint16(29907), + 2779: uint16(16142), + 2780: uint16(16211), + 2781: uint16(30018), + 2782: uint16(30061), + 2783: uint16(30066), + 2784: uint16(30093), + 2785: uint16(16252), + 2786: uint16(30152), + 2787: uint16(30172), + 2788: uint16(16320), + 2789: uint16(30285), + 2790: uint16(16343), + 2791: uint16(30324), + 2792: uint16(16348), + 2793: uint16(30330), + 2794: uint16(20316), + 2795: uint16(29064), + 2796: uint16(22051), + 2797: uint16(35200), + 2798: uint16(22633), + 2799: uint16(16413), + 2800: uint16(30531), + 2801: uint16(16441), + 2802: uint16(26465), + 2803: uint16(16453), + 2804: uint16(13787), + 2805: uint16(30616), + 2806: uint16(16490), + 2807: uint16(16495), + 2808: uint16(23646), + 2809: uint16(30654), + 2810: uint16(30667), + 2811: uint16(22770), + 2812: uint16(30744), + 2813: uint16(28857), + 2814: uint16(30748), + 2815: uint16(16552), + 2816: uint16(30777), + 2817: uint16(30791), + 2818: uint16(30801), + 2819: uint16(30822), + 2820: uint16(33864), + 2821: uint16(21813), + 2822: uint16(31027), + 2823: uint16(26627), + 2824: uint16(31026), + 2825: uint16(16643), + 2826: uint16(16649), + 2827: uint16(31121), + 2828: uint16(31129), + 2829: uint16(36795), + 2830: uint16(31238), + 2831: uint16(36796), + 2832: uint16(16743), + 2833: uint16(31377), + 2834: uint16(16818), + 2835: uint16(31420), + 2836: uint16(33401), + 2837: uint16(16836), + 2838: uint16(31439), + 2839: uint16(31451), + 2840: uint16(16847), + 2841: uint16(20001), + 2842: uint16(31586), + 2843: uint16(31596), + 2844: uint16(31611), + 2845: uint16(31762), + 2846: uint16(31771), + 2847: uint16(16992), + 2848: uint16(17018), + 2849: uint16(31867), + 2850: uint16(31900), + 2851: uint16(17036), + 2852: uint16(31928), + 2853: uint16(17044), + 2854: uint16(31981), + 2855: uint16(36755), + 2856: uint16(28864), + 2857: uint16(3279), + 2858: uint16(32207), + 2859: uint16(32212), + 2860: uint16(32208), + 2861: uint16(32253), + 2862: uint16(32686), + 2863: uint16(32692), + 2864: uint16(29343), + 2865: uint16(17303), + 2866: uint16(32800), + 2867: uint16(32805), + 2868: uint16(31545), + 2869: uint16(32814), + 2870: uint16(32817), + 2871: uint16(32852), + 2872: uint16(15820), + 2873: uint16(22452), + 2874: uint16(28832), + 2875: uint16(32951), + 2876: uint16(33001), + 2877: uint16(17389), + 2878: uint16(33036), + 2879: uint16(29482), + 2880: uint16(33038), + 2881: uint16(33042), + 2882: uint16(30048), + 2883: uint16(33044), + 2884: uint16(17409), + 2885: uint16(15161), + 2886: uint16(33110), + 2887: uint16(33113), + 2888: uint16(33114), + 2889: uint16(17427), + 2890: uint16(22586), + 2891: uint16(33148), + 2892: uint16(33156), + 2893: uint16(17445), + 2894: uint16(33171), + 2895: uint16(17453), + 2896: uint16(33189), + 2897: uint16(22511), + 2898: uint16(33217), + 2899: uint16(33252), + 2900: uint16(33364), + 2901: uint16(17551), + 2902: uint16(33446), + 2903: uint16(33398), + 2904: uint16(33482), + 2905: uint16(33496), + 2906: uint16(33535), + 2907: uint16(17584), + 2908: uint16(33623), + 2909: uint16(38505), + 2910: uint16(27018), + 2911: uint16(33797), + 2912: uint16(28917), + 2913: uint16(33892), + 2914: uint16(24803), + 2915: uint16(33928), + 2916: uint16(17668), + 2917: uint16(33982), + 2918: uint16(34017), + 2919: uint16(34040), + 2920: uint16(34064), + 2921: uint16(34104), + 2922: uint16(34130), + 2923: uint16(17723), + 2924: uint16(34159), + 2925: uint16(34160), + 2926: uint16(34272), + 2927: uint16(17783), + 2928: uint16(34418), + 2929: uint16(34450), + 2930: uint16(34482), + 2931: uint16(34543), + 2932: uint16(38469), + 2933: uint16(34699), + 2934: uint16(17926), + 2935: uint16(17943), + 2936: uint16(34990), + 2937: uint16(35071), + 2938: uint16(35108), + 2939: uint16(35143), + 2940: uint16(35217), + 2941: uint16(31079), + 2942: uint16(35369), + 2943: uint16(35384), + 2944: uint16(35476), + 2945: uint16(35508), + 2946: uint16(35921), + 2947: uint16(36052), + 2948: uint16(36082), + 2949: uint16(36124), + 2950: uint16(18328), + 2951: uint16(22623), + 2952: uint16(36291), + 2953: uint16(18413), + 2954: uint16(20206), + 2955: uint16(36410), + 2956: uint16(21976), + 2957: uint16(22356), + 2958: uint16(36465), + 2959: uint16(22005), + 2960: uint16(36528), + 2961: uint16(18487), + 2962: uint16(36558), + 2963: uint16(36578), + 2964: uint16(36580), + 2965: uint16(36589), + 2966: uint16(36594), + 2967: uint16(36791), + 2968: uint16(36801), + 2969: uint16(36810), + 2970: uint16(36812), + 2971: uint16(36915), + 2972: uint16(39364), + 2973: uint16(18605), + 2974: uint16(39136), + 2975: uint16(37395), + 2976: uint16(18718), + 2977: uint16(37416), + 2978: uint16(37464), + 2979: uint16(37483), + 2980: uint16(37553), + 2981: uint16(37550), + 2982: uint16(37567), + 2983: uint16(37603), + 2984: uint16(37611), + 2985: uint16(37619), + 2986: uint16(37620), + 2987: uint16(37629), + 2988: uint16(37699), + 2989: uint16(37764), + 2990: uint16(37805), + 2991: uint16(18757), + 2992: uint16(18769), + 2993: uint16(40639), + 2994: uint16(37911), + 2995: uint16(21249), + 2996: uint16(37917), + 2997: uint16(37933), + 2998: uint16(37950), + 2999: uint16(18794), + 3000: uint16(37972), + 3001: uint16(38009), + 3002: uint16(38189), + 3003: uint16(38306), + 3004: uint16(18855), + 3005: uint16(38388), + 3006: uint16(38451), + 3007: uint16(18917), + 3008: uint16(26528), + 3009: uint16(18980), + 3010: uint16(38720), + 3011: uint16(18997), + 3012: uint16(38834), + 3013: uint16(38850), + 3014: uint16(22100), + 3015: uint16(19172), + 3016: uint16(24808), + 3017: uint16(39097), + 3018: uint16(19225), + 3019: uint16(39153), + 3020: uint16(22596), + 3021: uint16(39182), + 3022: uint16(39193), + 3023: uint16(20916), + 3024: uint16(39196), + 3025: uint16(39223), + 3026: uint16(39234), + 3027: uint16(39261), + 3028: uint16(39266), + 3029: uint16(19312), + 3030: uint16(39365), + 3031: uint16(19357), + 3032: uint16(39484), + 3033: uint16(39695), + 3034: uint16(31363), + 3035: uint16(39785), + 3036: uint16(39809), + 3037: uint16(39901), + 3038: uint16(39921), + 3039: uint16(39924), + 3040: uint16(19565), + 3041: uint16(39968), + 3042: uint16(14191), + 3043: uint16(7106), + 3044: uint16(40265), + 3045: uint16(39994), + 3046: uint16(40702), + 3047: uint16(22096), + 3048: uint16(40339), + 3049: uint16(40381), + 3050: uint16(40384), + 3051: uint16(40444), + 3052: uint16(38134), + 3053: uint16(36790), + 3054: uint16(40571), + 3055: uint16(40620), + 3056: uint16(40625), + 3057: uint16(40637), + 3058: uint16(40646), + 3059: uint16(38108), + 3060: uint16(40674), + 3061: uint16(40689), + 3062: uint16(40696), + 3063: uint16(31432), + 3064: uint16(40772), + 3065: uint16(148), + 3066: uint16(695), + 3067: uint16(928), + 3068: uint16(26906), + 3069: uint16(38083), + 3070: uint16(22956), + 3071: uint16(1239), + 3072: uint16(22592), + 3073: uint16(38081), + 3074: uint16(14265), + 3075: uint16(1493), + 3076: uint16(1557), + 3077: uint16(1654), + 3078: uint16(5818), + 3079: uint16(22359), + 3080: uint16(29043), + 3081: uint16(2754), + 3082: uint16(2765), + 3083: uint16(3007), + 3084: uint16(21610), + 3085: uint16(63547), + 3086: uint16(3019), + 3087: uint16(21662), + 3088: uint16(3067), + 3089: uint16(3131), + 3090: uint16(3155), + 3091: uint16(3173), + 3092: uint16(3196), + 3093: uint16(24807), + 3094: uint16(3213), + 3095: uint16(22138), + 3096: uint16(3253), + 3097: uint16(3293), + 3098: uint16(3309), + 3099: uint16(3439), + 3100: uint16(3506), + 3101: uint16(3528), + 3102: uint16(26965), + 3103: uint16(39983), + 3104: uint16(34725), + 3105: uint16(3588), + 3106: uint16(3598), + 3107: uint16(3799), + 3108: uint16(3984), + 3109: uint16(3885), + 3110: uint16(3699), + 3111: uint16(23584), + 3112: uint16(4028), + 3113: uint16(24075), + 3114: uint16(4188), + 3115: uint16(4175), + 3116: uint16(4214), + 3117: uint16(26398), + 3118: uint16(4219), + 3119: uint16(4232), + 3120: uint16(4246), + 3121: uint16(13895), + 3122: uint16(4287), + 3123: uint16(4307), + 3124: uint16(4399), + 3125: uint16(4411), + 3126: uint16(21348), + 3127: uint16(33965), + 3128: uint16(4835), + 3129: uint16(4981), + 3130: uint16(4918), + 3131: uint16(35713), + 3132: uint16(5495), + 3133: uint16(5657), + 3134: uint16(6083), + 3135: uint16(6087), + 3136: uint16(20088), + 3137: uint16(28859), + 3138: uint16(6189), + 3139: uint16(6506), + 3140: uint16(6701), + 3141: uint16(6725), + 3142: uint16(7210), + 3143: uint16(7280), + 3144: uint16(7340), + 3145: uint16(7880), + 3146: uint16(25283), + 3147: uint16(7893), + 3148: uint16(7957), + 3149: uint16(29080), + 3150: uint16(26709), + 3151: uint16(8261), + 3152: uint16(27113), + 3153: uint16(14024), + 3154: uint16(8828), + 3155: uint16(9175), + 3156: uint16(9210), + 3157: uint16(10026), + 3158: uint16(10353), + 3159: uint16(10575), + 3160: uint16(33533), + 3161: uint16(10599), + 3162: uint16(10643), + 3163: uint16(10965), + 3164: uint16(35237), + 3165: uint16(10984), + 3166: uint16(36768), + 3167: uint16(11022), + 3168: uint16(38840), + 3169: uint16(11071), + 3170: uint16(38983), + 3171: uint16(39613), + 3172: uint16(11340), + 3174: uint16(11400), + 3175: uint16(11447), + 3176: uint16(23528), + 3177: uint16(11528), + 3178: uint16(11538), + 3179: uint16(11703), + 3180: uint16(11669), + 3181: uint16(11842), + 3182: uint16(12148), + 3183: uint16(12236), + 3184: uint16(12339), + 3185: uint16(12390), + 3186: uint16(13087), + 3187: uint16(13278), + 3188: uint16(24497), + 3189: uint16(26184), + 3190: uint16(26303), + 3191: uint16(31353), + 3192: uint16(13671), + 3193: uint16(13811), + 3195: uint16(18874), + 3197: uint16(13850), + 3198: uint16(14102), + 3200: uint16(838), + 3201: uint16(22709), + 3202: uint16(26382), + 3203: uint16(26904), + 3204: uint16(15015), + 3205: uint16(30295), + 3206: uint16(24546), + 3207: uint16(15889), + 3208: uint16(16057), + 3209: uint16(30206), + 3210: uint16(8346), + 3211: uint16(18640), + 3212: uint16(19128), + 3213: uint16(16665), + 3214: uint16(35482), + 3215: uint16(17134), + 3216: uint16(17165), + 3217: uint16(16443), + 3218: uint16(17204), + 3219: uint16(17302), + 3220: uint16(19013), + 3221: uint16(1482), + 3222: uint16(20946), + 3223: uint16(1553), + 3224: uint16(22943), + 3225: uint16(7848), + 3226: uint16(15294), + 3227: uint16(15615), + 3228: uint16(17412), + 3229: uint16(17622), + 3230: uint16(22408), + 3231: uint16(18036), + 3232: uint16(14747), + 3233: uint16(18223), + 3234: uint16(34280), + 3235: uint16(39369), + 3236: uint16(14178), + 3237: uint16(8643), + 3238: uint16(35678), + 3239: uint16(35662), + 3241: uint16(18450), + 3242: uint16(18683), + 3243: uint16(18965), + 3244: uint16(29193), + 3245: uint16(19136), + 3246: uint16(3192), + 3247: uint16(22885), + 3248: uint16(20133), + 3249: uint16(20358), + 3250: uint16(1913), + 3251: uint16(36570), + 3252: uint16(20524), + 3253: uint16(21135), + 3254: uint16(22335), + 3255: uint16(29041), + 3256: uint16(21145), + 3257: uint16(21529), + 3258: uint16(16202), + 3259: uint16(19111), + 3260: uint16(21948), + 3261: uint16(21574), + 3262: uint16(21614), + 3263: uint16(27474), + 3265: uint16(13427), + 3266: uint16(21823), + 3267: uint16(30258), + 3268: uint16(21854), + 3269: uint16(18200), + 3270: uint16(21858), + 3271: uint16(21862), + 3272: uint16(22471), + 3273: uint16(18751), + 3274: uint16(22621), + 3275: uint16(20582), + 3276: uint16(13563), + 3277: uint16(13260), + 3279: uint16(22787), + 3280: uint16(18300), + 3281: uint16(35144), + 3282: uint16(23214), + 3283: uint16(23433), + 3284: uint16(23558), + 3285: uint16(7568), + 3286: uint16(22433), + 3287: uint16(29009), + 3289: uint16(24834), + 3290: uint16(31762), + 3291: uint16(36950), + 3292: uint16(25010), + 3293: uint16(20378), + 3294: uint16(35682), + 3295: uint16(25602), + 3296: uint16(25674), + 3297: uint16(23899), + 3298: uint16(27639), + 3300: uint16(25732), + 3301: uint16(6428), + 3302: uint16(35562), + 3303: uint16(18934), + 3304: uint16(25736), + 3305: uint16(16367), + 3306: uint16(25874), + 3307: uint16(19392), + 3308: uint16(26047), + 3309: uint16(26293), + 3310: uint16(10011), + 3311: uint16(37989), + 3312: uint16(22497), + 3313: uint16(24981), + 3314: uint16(23079), + 3315: uint16(63693), + 3317: uint16(22201), + 3318: uint16(17697), + 3319: uint16(26364), + 3320: uint16(20074), + 3321: uint16(18740), + 3322: uint16(38486), + 3323: uint16(28047), + 3324: uint16(27837), + 3325: uint16(13848), + 3326: uint16(35191), + 3327: uint16(26521), + 3328: uint16(26734), + 3329: uint16(25617), + 3330: uint16(26718), + 3332: uint16(26823), + 3333: uint16(31554), + 3334: uint16(37056), + 3335: uint16(2577), + 3336: uint16(26918), + 3338: uint16(26937), + 3339: uint16(31301), + 3341: uint16(27130), + 3342: uint16(39462), + 3343: uint16(27181), + 3344: uint16(13919), + 3345: uint16(25705), + 3346: uint16(33), + 3347: uint16(31107), + 3348: uint16(27188), + 3349: uint16(27483), + 3350: uint16(23852), + 3351: uint16(13593), + 3353: uint16(27549), + 3354: uint16(18128), + 3355: uint16(27812), + 3356: uint16(30011), + 3357: uint16(34917), + 3358: uint16(28078), + 3359: uint16(22710), + 3360: uint16(14108), + 3361: uint16(9613), + 3362: uint16(28747), + 3363: uint16(29133), + 3364: uint16(15444), + 3365: uint16(29312), + 3366: uint16(29317), + 3367: uint16(37505), + 3368: uint16(8570), + 3369: uint16(29323), + 3370: uint16(37680), + 3371: uint16(29414), + 3372: uint16(18896), + 3373: uint16(27705), + 3374: uint16(38047), + 3375: uint16(29776), + 3376: uint16(3832), + 3377: uint16(34855), + 3378: uint16(35061), + 3379: uint16(10534), + 3380: uint16(33907), + 3381: uint16(6065), + 3382: uint16(28344), + 3383: uint16(18986), + 3384: uint16(6176), + 3385: uint16(14756), + 3386: uint16(14009), + 3389: uint16(17727), + 3390: uint16(26294), + 3391: uint16(40109), + 3392: uint16(39076), + 3393: uint16(35139), + 3394: uint16(30668), + 3395: uint16(30808), + 3396: uint16(22230), + 3397: uint16(16607), + 3398: uint16(5642), + 3399: uint16(14753), + 3400: uint16(14127), + 3401: uint16(33000), + 3402: uint16(5061), + 3403: uint16(29101), + 3404: uint16(33638), + 3405: uint16(31197), + 3406: uint16(37288), + 3408: uint16(19639), + 3409: uint16(28847), + 3410: uint16(35243), + 3411: uint16(31229), + 3412: uint16(31242), + 3413: uint16(31499), + 3414: uint16(32102), + 3415: uint16(16762), + 3416: uint16(31555), + 3417: uint16(31102), + 3418: uint16(32777), + 3419: uint16(28597), + 3420: uint16(41695), + 3421: uint16(27139), + 3422: uint16(33560), + 3423: uint16(21410), + 3424: uint16(28167), + 3425: uint16(37823), + 3426: uint16(26678), + 3427: uint16(38749), + 3428: uint16(33135), + 3429: uint16(32803), + 3430: uint16(27061), + 3431: uint16(5101), + 3432: uint16(12847), + 3433: uint16(32840), + 3434: uint16(23941), + 3435: uint16(35888), + 3436: uint16(32899), + 3437: uint16(22293), + 3438: uint16(38947), + 3439: uint16(35145), + 3440: uint16(23979), + 3441: uint16(18824), + 3442: uint16(26046), + 3443: uint16(27093), + 3444: uint16(21458), + 3445: uint16(19109), + 3446: uint16(16257), + 3447: uint16(15377), + 3448: uint16(26422), + 3449: uint16(32912), + 3450: uint16(33012), + 3451: uint16(33070), + 3452: uint16(8097), + 3453: uint16(33103), + 3454: uint16(33161), + 3455: uint16(33199), + 3456: uint16(33306), + 3457: uint16(33542), + 3458: uint16(33583), + 3459: uint16(33674), + 3460: uint16(13770), + 3461: uint16(33896), + 3462: uint16(34474), + 3463: uint16(18682), + 3464: uint16(25574), + 3465: uint16(35158), + 3466: uint16(30728), + 3467: uint16(37461), + 3468: uint16(35256), + 3469: uint16(17394), + 3470: uint16(35303), + 3471: uint16(17375), + 3472: uint16(35304), + 3473: uint16(35654), + 3474: uint16(35796), + 3475: uint16(23032), + 3476: uint16(35849), + 3478: uint16(36805), + 3479: uint16(37100), + 3481: uint16(37136), + 3482: uint16(37180), + 3483: uint16(15863), + 3484: uint16(37214), + 3485: uint16(19146), + 3486: uint16(36816), + 3487: uint16(29327), + 3488: uint16(22155), + 3489: uint16(38119), + 3490: uint16(38377), + 3491: uint16(38320), + 3492: uint16(38328), + 3493: uint16(38706), + 3494: uint16(39121), + 3495: uint16(39241), + 3496: uint16(39274), + 3497: uint16(39363), + 3498: uint16(39464), + 3499: uint16(39694), + 3500: uint16(40282), + 3501: uint16(40347), + 3502: uint16(32415), + 3503: uint16(40696), + 3504: uint16(40739), + 3505: uint16(19620), + 3506: uint16(38215), + 3507: uint16(41619), + 3508: uint16(29090), + 3509: uint16(41727), + 3510: uint16(19857), + 3511: uint16(36882), + 3512: uint16(42443), + 3513: uint16(19868), + 3514: uint16(3228), + 3515: uint16(36798), + 3516: uint16(21953), + 3517: uint16(36794), + 3518: uint16(9392), + 3519: uint16(36793), + 3520: uint16(19091), + 3521: uint16(17673), + 3522: uint16(32383), + 3523: uint16(28502), + 3524: uint16(27313), + 3525: uint16(20202), + 3526: uint16(13540), + 3527: uint16(35628), + 3528: uint16(30877), + 3529: uint16(14138), + 3530: uint16(36480), + 3531: uint16(6133), + 3532: uint16(32804), + 3533: uint16(35692), + 3534: uint16(35737), + 3535: uint16(31294), + 3536: uint16(26287), + 3537: uint16(15851), + 3538: uint16(30293), + 3539: uint16(15543), + 3540: uint16(22069), + 3541: uint16(22870), + 3542: uint16(20122), + 3543: uint16(24193), + 3544: uint16(25176), + 3545: uint16(22207), + 3546: uint16(3693), + 3547: uint16(36366), + 3548: uint16(23405), + 3549: uint16(16008), + 3550: uint16(19614), + 3551: uint16(25566), + 3553: uint16(6134), + 3554: uint16(6267), + 3555: uint16(25904), + 3556: uint16(22061), + 3557: uint16(23626), + 3558: uint16(21530), + 3559: uint16(21265), + 3560: uint16(15814), + 3561: uint16(40344), + 3562: uint16(19581), + 3563: uint16(22050), + 3564: uint16(22046), + 3565: uint16(32585), + 3566: uint16(24280), + 3567: uint16(22901), + 3568: uint16(15680), + 3569: uint16(34672), + 3570: uint16(19996), + 3571: uint16(4074), + 3572: uint16(3401), + 3573: uint16(14010), + 3574: uint16(33047), + 3575: uint16(40286), + 3576: uint16(36120), + 3577: uint16(30267), + 3578: uint16(40005), + 3579: uint16(30286), + 3580: uint16(30649), + 3581: uint16(37701), + 3582: uint16(21554), + 3583: uint16(33096), + 3584: uint16(33527), + 3585: uint16(22053), + 3586: uint16(33074), + 3587: uint16(33816), + 3588: uint16(32957), + 3589: uint16(21994), + 3590: uint16(31074), + 3591: uint16(22083), + 3592: uint16(21526), + 3593: uint16(3741), + 3594: uint16(13774), + 3595: uint16(22021), + 3596: uint16(22001), + 3597: uint16(26353), + 3598: uint16(33506), + 3599: uint16(13869), + 3600: uint16(30004), + 3601: uint16(22000), + 3602: uint16(21946), + 3603: uint16(21655), + 3604: uint16(21874), + 3605: uint16(3137), + 3606: uint16(3222), + 3607: uint16(24272), + 3608: uint16(20808), + 3609: uint16(3702), + 3610: uint16(11362), + 3611: uint16(3746), + 3612: uint16(40619), + 3613: uint16(32090), + 3614: uint16(21982), + 3615: uint16(4213), + 3616: uint16(25245), + 3617: uint16(38765), + 3618: uint16(21652), + 3619: uint16(36045), + 3620: uint16(29174), + 3621: uint16(37238), + 3622: uint16(25596), + 3623: uint16(25529), + 3624: uint16(25598), + 3625: uint16(21865), + 3626: uint16(11075), + 3627: uint16(40050), + 3628: uint16(11955), + 3629: uint16(20890), + 3630: uint16(13535), + 3631: uint16(3495), + 3632: uint16(20903), + 3633: uint16(21581), + 3634: uint16(21790), + 3635: uint16(21779), + 3636: uint16(30310), + 3637: uint16(36397), + 3638: uint16(26762), + 3639: uint16(30129), + 3640: uint16(32950), + 3641: uint16(34820), + 3642: uint16(34694), + 3643: uint16(35015), + 3644: uint16(33206), + 3645: uint16(33820), + 3646: uint16(4289), + 3647: uint16(17644), + 3648: uint16(29444), + 3649: uint16(18182), + 3650: uint16(23440), + 3651: uint16(33547), + 3652: uint16(26771), + 3653: uint16(22139), + 3654: uint16(9972), + 3655: uint16(32047), + 3656: uint16(16803), + 3657: uint16(32115), + 3658: uint16(28368), + 3659: uint16(29366), + 3660: uint16(37232), + 3661: uint16(4569), + 3662: uint16(37384), + 3663: uint16(15612), + 3664: uint16(42665), + 3665: uint16(3756), + 3666: uint16(3833), + 3667: uint16(29286), + 3668: uint16(7330), + 3669: uint16(18254), + 3670: uint16(20418), + 3671: uint16(32761), + 3672: uint16(4075), + 3673: uint16(16634), + 3674: uint16(40029), + 3675: uint16(25887), + 3676: uint16(11680), + 3677: uint16(18675), + 3678: uint16(18400), + 3679: uint16(40316), + 3680: uint16(4076), + 3681: uint16(3594), + 3683: uint16(30115), + 3684: uint16(4077), + 3686: uint16(24648), + 3687: uint16(4487), + 3688: uint16(29091), + 3689: uint16(32398), + 3690: uint16(40272), + 3691: uint16(19994), + 3692: uint16(19972), + 3693: uint16(13687), + 3694: uint16(23309), + 3695: uint16(27826), + 3696: uint16(21351), + 3697: uint16(13996), + 3698: uint16(14812), + 3699: uint16(21373), + 3700: uint16(13989), + 3701: uint16(17944), + 3702: uint16(22682), + 3703: uint16(19310), + 3704: uint16(33325), + 3705: uint16(21579), + 3706: uint16(22442), + 3707: uint16(23189), + 3708: uint16(2425), + 3710: uint16(14930), + 3711: uint16(9317), + 3712: uint16(29556), + 3713: uint16(40620), + 3714: uint16(19721), + 3715: uint16(39917), + 3716: uint16(15614), + 3717: uint16(40752), + 3718: uint16(19547), + 3719: uint16(20393), + 3720: uint16(38302), + 3721: uint16(40926), + 3722: uint16(33884), + 3723: uint16(15798), + 3724: uint16(29362), + 3725: uint16(26547), + 3726: uint16(14112), + 3727: uint16(25390), + 3728: uint16(32037), + 3729: uint16(16119), + 3730: uint16(15916), + 3731: uint16(14890), + 3732: uint16(36872), + 3733: uint16(21196), + 3734: uint16(15988), + 3735: uint16(13946), + 3736: uint16(17897), + 3737: uint16(1166), + 3738: uint16(30272), + 3739: uint16(23280), + 3740: uint16(3766), + 3741: uint16(30842), + 3742: uint16(32558), + 3743: uint16(22695), + 3744: uint16(16575), + 3745: uint16(22140), + 3746: uint16(39819), + 3747: uint16(23924), + 3748: uint16(30292), + 3749: uint16(42036), + 3750: uint16(40581), + 3751: uint16(19681), + 3753: uint16(14331), + 3754: uint16(24857), + 3755: uint16(12506), + 3756: uint16(17394), + 3758: uint16(22109), + 3759: uint16(4777), + 3760: uint16(22439), + 3761: uint16(18787), + 3762: uint16(40454), + 3763: uint16(21044), + 3764: uint16(28846), + 3765: uint16(13741), + 3767: uint16(40316), + 3768: uint16(31830), + 3769: uint16(39737), + 3770: uint16(22494), + 3771: uint16(5996), + 3772: uint16(23635), + 3773: uint16(25811), + 3774: uint16(38096), + 3775: uint16(25397), + 3776: uint16(29028), + 3777: uint16(34477), + 3778: uint16(3368), + 3779: uint16(27938), + 3780: uint16(19170), + 3781: uint16(3441), + 3783: uint16(20990), + 3784: uint16(7951), + 3785: uint16(23950), + 3786: uint16(38659), + 3787: uint16(7633), + 3788: uint16(40577), + 3789: uint16(36940), + 3790: uint16(31519), + 3791: uint16(39682), + 3792: uint16(23761), + 3793: uint16(31651), + 3794: uint16(25192), + 3795: uint16(25397), + 3796: uint16(39679), + 3797: uint16(31695), + 3798: uint16(39722), + 3799: uint16(31870), + 3801: uint16(31810), + 3802: uint16(31878), + 3803: uint16(39957), + 3804: uint16(31740), + 3805: uint16(39689), + 3807: uint16(39963), + 3808: uint16(18750), + 3809: uint16(40794), + 3810: uint16(21875), + 3811: uint16(23491), + 3812: uint16(20477), + 3813: uint16(40600), + 3814: uint16(20466), + 3815: uint16(21088), + 3816: uint16(15878), + 3817: uint16(21201), + 3818: uint16(22375), + 3819: uint16(20566), + 3820: uint16(22967), + 3821: uint16(24082), + 3822: uint16(38856), + 3823: uint16(40363), + 3824: uint16(36700), + 3825: uint16(21609), + 3826: uint16(38836), + 3827: uint16(39232), + 3828: uint16(38842), + 3829: uint16(21292), + 3830: uint16(24880), + 3831: uint16(26924), + 3832: uint16(21466), + 3833: uint16(39946), + 3834: uint16(40194), + 3835: uint16(19515), + 3836: uint16(38465), + 3837: uint16(27008), + 3838: uint16(20646), + 3839: uint16(30022), + 3840: uint16(5997), + 3841: uint16(39386), + 3842: uint16(21107), + 3844: uint16(37209), + 3845: uint16(38529), + 3846: uint16(37212), + 3848: uint16(37201), + 3849: uint16(36503), + 3850: uint16(25471), + 3851: uint16(27939), + 3852: uint16(27338), + 3853: uint16(22033), + 3854: uint16(37262), + 3855: uint16(30074), + 3856: uint16(25221), + 3857: uint16(1020), + 3858: uint16(29519), + 3859: uint16(31856), + 3860: uint16(23585), + 3861: uint16(15613), + 3863: uint16(18713), + 3864: uint16(30422), + 3865: uint16(39837), + 3866: uint16(20010), + 3867: uint16(3284), + 3868: uint16(33726), + 3869: uint16(34882), + 3871: uint16(23626), + 3872: uint16(27072), + 3874: uint16(22394), + 3875: uint16(21023), + 3876: uint16(24053), + 3877: uint16(20174), + 3878: uint16(27697), + 3879: uint16(498), + 3880: uint16(20281), + 3881: uint16(21660), + 3882: uint16(21722), + 3883: uint16(21146), + 3884: uint16(36226), + 3885: uint16(13822), + 3887: uint16(13811), + 3889: uint16(27474), + 3890: uint16(37244), + 3891: uint16(40869), + 3892: uint16(39831), + 3893: uint16(38958), + 3894: uint16(39092), + 3895: uint16(39610), + 3896: uint16(40616), + 3897: uint16(40580), + 3898: uint16(29050), + 3899: uint16(31508), + 3901: uint16(27642), + 3902: uint16(34840), + 3903: uint16(32632), + 3905: uint16(22048), + 3906: uint16(42570), + 3907: uint16(36471), + 3908: uint16(40787), + 3910: uint16(36308), + 3911: uint16(36431), + 3912: uint16(40476), + 3913: uint16(36353), + 3914: uint16(25218), + 3915: uint16(33661), + 3916: uint16(36392), + 3917: uint16(36469), + 3918: uint16(31443), + 3919: uint16(19063), + 3920: uint16(31294), + 3921: uint16(30936), + 3922: uint16(27882), + 3923: uint16(35431), + 3924: uint16(30215), + 3925: uint16(35418), + 3926: uint16(40742), + 3927: uint16(27854), + 3928: uint16(34774), + 3929: uint16(30147), + 3930: uint16(41650), + 3931: uint16(30803), + 3932: uint16(63552), + 3933: uint16(36108), + 3934: uint16(29410), + 3935: uint16(29553), + 3936: uint16(35629), + 3937: uint16(29442), + 3938: uint16(29937), + 3939: uint16(36075), + 3940: uint16(19131), + 3941: uint16(34351), + 3942: uint16(24506), + 3943: uint16(34976), + 3944: uint16(17591), + 3946: uint16(6203), + 3947: uint16(28165), + 3949: uint16(35454), + 3950: uint16(9499), + 3952: uint16(24829), + 3953: uint16(30311), + 3954: uint16(39639), + 3955: uint16(40260), + 3956: uint16(37742), + 3957: uint16(39823), + 3958: uint16(34805), + 3961: uint16(36087), + 3962: uint16(29484), + 3963: uint16(38689), + 3964: uint16(39856), + 3965: uint16(13782), + 3966: uint16(29362), + 3967: uint16(19463), + 3968: uint16(31825), + 3969: uint16(39242), + 3970: uint16(24921), + 3971: uint16(24921), + 3972: uint16(19460), + 3973: uint16(40598), + 3974: uint16(24957), + 3976: uint16(22367), + 3977: uint16(24943), + 3978: uint16(25254), + 3979: uint16(25145), + 3981: uint16(14940), + 3982: uint16(25058), + 3983: uint16(21418), + 3984: uint16(13301), + 3985: uint16(25444), + 3986: uint16(26626), + 3987: uint16(13778), + 3988: uint16(23895), + 3989: uint16(35778), + 3990: uint16(36826), + 3991: uint16(36409), + 3993: uint16(20697), + 3994: uint16(7494), + 3995: uint16(30982), + 3996: uint16(21298), + 3997: uint16(38456), + 3998: uint16(3899), + 3999: uint16(16485), + 4001: uint16(30718), + 4003: uint16(31938), + 4004: uint16(24346), + 4005: uint16(31962), + 4006: uint16(31277), + 4007: uint16(32870), + 4008: uint16(32867), + 4009: uint16(32077), + 4010: uint16(29957), + 4011: uint16(29938), + 4012: uint16(35220), + 4013: uint16(33306), + 4014: uint16(26380), + 4015: uint16(32866), + 4016: uint16(29830), + 4017: uint16(32859), + 4018: uint16(29936), + 4019: uint16(33027), + 4020: uint16(30500), + 4021: uint16(35209), + 4022: uint16(26572), + 4023: uint16(30035), + 4024: uint16(28369), + 4025: uint16(34729), + 4026: uint16(34766), + 4027: uint16(33224), + 4028: uint16(34700), + 4029: uint16(35401), + 4030: uint16(36013), + 4031: uint16(35651), + 4032: uint16(30507), + 4033: uint16(29944), + 4034: uint16(34010), + 4035: uint16(13877), + 4036: uint16(27058), + 4037: uint16(36262), + 4039: uint16(35241), + 4041: uint16(28089), + 4042: uint16(34753), + 4043: uint16(16401), + 4044: uint16(29927), + 4045: uint16(15835), + 4046: uint16(29046), + 4047: uint16(24740), + 4048: uint16(24988), + 4049: uint16(15569), + 4051: uint16(24695), + 4053: uint16(32625), + 4054: uint16(35629), + 4056: uint16(24809), + 4057: uint16(19326), + 4058: uint16(21024), + 4059: uint16(15384), + 4060: uint16(15559), + 4061: uint16(24279), + 4062: uint16(30294), + 4063: uint16(21809), + 4064: uint16(6468), + 4065: uint16(4862), + 4066: uint16(39171), + 4067: uint16(28124), + 4068: uint16(28845), + 4069: uint16(23745), + 4070: uint16(25005), + 4071: uint16(35343), + 4072: uint16(13943), + 4073: uint16(238), + 4074: uint16(26694), + 4075: uint16(20238), + 4076: uint16(17762), + 4077: uint16(23327), + 4078: uint16(25420), + 4079: uint16(40784), + 4080: uint16(40614), + 4081: uint16(25195), + 4082: uint16(1351), + 4083: uint16(37595), + 4084: uint16(1503), + 4085: uint16(16325), + 4086: uint16(34124), + 4087: uint16(17077), + 4088: uint16(29679), + 4089: uint16(20917), + 4090: uint16(13897), + 4091: uint16(18754), + 4092: uint16(35300), + 4093: uint16(37700), + 4094: uint16(6619), + 4095: uint16(33518), + 4096: uint16(15560), + 4097: uint16(30780), + 4098: uint16(26436), + 4099: uint16(25311), + 4100: uint16(18739), + 4101: uint16(35242), + 4102: uint16(672), + 4103: uint16(27571), + 4104: uint16(4869), + 4105: uint16(20395), + 4106: uint16(9453), + 4107: uint16(20488), + 4108: uint16(27945), + 4109: uint16(31364), + 4110: uint16(13824), + 4111: uint16(19121), + 4112: uint16(9491), + 4114: uint16(894), + 4115: uint16(24484), + 4116: uint16(896), + 4117: uint16(839), + 4118: uint16(28379), + 4119: uint16(1055), + 4121: uint16(20737), + 4122: uint16(13434), + 4123: uint16(20750), + 4124: uint16(39020), + 4125: uint16(14147), + 4126: uint16(33814), + 4127: uint16(18852), + 4128: uint16(1159), + 4129: uint16(20832), + 4130: uint16(13236), + 4131: uint16(20842), + 4132: uint16(3071), + 4133: uint16(8444), + 4134: uint16(741), + 4135: uint16(9520), + 4136: uint16(1422), + 4137: uint16(12851), + 4138: uint16(6531), + 4139: uint16(23426), + 4140: uint16(34685), + 4141: uint16(1459), + 4142: uint16(15513), + 4143: uint16(20914), + 4144: uint16(20920), + 4145: uint16(40244), + 4146: uint16(20937), + 4147: uint16(20943), + 4148: uint16(20945), + 4149: uint16(15580), + 4150: uint16(20947), + 4151: uint16(19110), + 4152: uint16(20915), + 4153: uint16(20962), + 4154: uint16(21314), + 4155: uint16(20973), + 4156: uint16(33741), + 4157: uint16(26942), + 4158: uint16(14125), + 4159: uint16(24443), + 4160: uint16(21003), + 4161: uint16(21030), + 4162: uint16(21052), + 4163: uint16(21173), + 4164: uint16(21079), + 4165: uint16(21140), + 4166: uint16(21177), + 4167: uint16(21189), + 4168: uint16(31765), + 4169: uint16(34114), + 4170: uint16(21216), + 4171: uint16(34317), + 4172: uint16(27411), + 4174: uint16(35550), + 4175: uint16(21833), + 4176: uint16(28377), + 4177: uint16(16256), + 4178: uint16(2388), + 4179: uint16(16364), + 4180: uint16(21299), + 4182: uint16(3042), + 4183: uint16(27851), + 4184: uint16(5926), + 4185: uint16(26651), + 4186: uint16(29653), + 4187: uint16(24650), + 4188: uint16(16042), + 4189: uint16(14540), + 4190: uint16(5864), + 4191: uint16(29149), + 4192: uint16(17570), + 4193: uint16(21357), + 4194: uint16(21364), + 4195: uint16(34475), + 4196: uint16(21374), + 4198: uint16(5526), + 4199: uint16(5651), + 4200: uint16(30694), + 4201: uint16(21395), + 4202: uint16(35483), + 4203: uint16(21408), + 4204: uint16(21419), + 4205: uint16(21422), + 4206: uint16(29607), + 4207: uint16(22386), + 4208: uint16(16217), + 4209: uint16(29596), + 4210: uint16(21441), + 4211: uint16(21445), + 4212: uint16(27721), + 4213: uint16(20041), + 4214: uint16(22526), + 4215: uint16(21465), + 4216: uint16(15019), + 4217: uint16(2959), + 4218: uint16(21472), + 4219: uint16(16363), + 4220: uint16(11683), + 4221: uint16(21494), + 4222: uint16(3191), + 4223: uint16(21523), + 4224: uint16(28793), + 4225: uint16(21803), + 4226: uint16(26199), + 4227: uint16(27995), + 4228: uint16(21613), + 4229: uint16(27475), + 4230: uint16(3444), + 4231: uint16(21853), + 4232: uint16(21647), + 4233: uint16(21668), + 4234: uint16(18342), + 4235: uint16(5901), + 4236: uint16(3805), + 4237: uint16(15796), + 4238: uint16(3405), + 4239: uint16(35260), + 4240: uint16(9880), + 4241: uint16(21831), + 4242: uint16(19693), + 4243: uint16(21551), + 4244: uint16(29719), + 4245: uint16(21894), + 4246: uint16(21929), + 4248: uint16(6359), + 4249: uint16(16442), + 4250: uint16(17746), + 4251: uint16(17461), + 4252: uint16(26291), + 4253: uint16(4276), + 4254: uint16(22071), + 4255: uint16(26317), + 4256: uint16(12938), + 4257: uint16(26276), + 4258: uint16(26285), + 4259: uint16(22093), + 4260: uint16(22095), + 4261: uint16(30961), + 4262: uint16(22257), + 4263: uint16(38791), + 4264: uint16(21502), + 4265: uint16(22272), + 4266: uint16(22255), + 4267: uint16(22253), + 4268: uint16(35686), + 4269: uint16(13859), + 4270: uint16(4687), + 4271: uint16(22342), + 4272: uint16(16805), + 4273: uint16(27758), + 4274: uint16(28811), + 4275: uint16(22338), + 4276: uint16(14001), + 4277: uint16(27774), + 4278: uint16(22502), + 4279: uint16(5142), + 4280: uint16(22531), + 4281: uint16(5204), + 4282: uint16(17251), + 4283: uint16(22566), + 4284: uint16(19445), + 4285: uint16(22620), + 4286: uint16(22698), + 4287: uint16(13665), + 4288: uint16(22752), + 4289: uint16(22748), + 4290: uint16(4668), + 4291: uint16(22779), + 4292: uint16(23551), + 4293: uint16(22339), + 4294: uint16(41296), + 4295: uint16(17016), + 4296: uint16(37843), + 4297: uint16(13729), + 4298: uint16(22815), + 4299: uint16(26790), + 4300: uint16(14019), + 4301: uint16(28249), + 4302: uint16(5694), + 4303: uint16(23076), + 4304: uint16(21843), + 4305: uint16(5778), + 4306: uint16(34053), + 4307: uint16(22985), + 4308: uint16(3406), + 4309: uint16(27777), + 4310: uint16(27946), + 4311: uint16(6108), + 4312: uint16(23001), + 4313: uint16(6139), + 4314: uint16(6066), + 4315: uint16(28070), + 4316: uint16(28017), + 4317: uint16(6184), + 4318: uint16(5845), + 4319: uint16(23033), + 4320: uint16(28229), + 4321: uint16(23211), + 4322: uint16(23139), + 4323: uint16(14054), + 4324: uint16(18857), + 4326: uint16(14088), + 4327: uint16(23190), + 4328: uint16(29797), + 4329: uint16(23251), + 4330: uint16(28577), + 4331: uint16(9556), + 4332: uint16(15749), + 4333: uint16(6417), + 4334: uint16(14130), + 4335: uint16(5816), + 4336: uint16(24195), + 4337: uint16(21200), + 4338: uint16(23414), + 4339: uint16(25992), + 4340: uint16(23420), + 4341: uint16(31246), + 4342: uint16(16388), + 4343: uint16(18525), + 4344: uint16(516), + 4345: uint16(23509), + 4346: uint16(24928), + 4347: uint16(6708), + 4348: uint16(22988), + 4349: uint16(1445), + 4350: uint16(23539), + 4351: uint16(23453), + 4352: uint16(19728), + 4353: uint16(23557), + 4354: uint16(6980), + 4355: uint16(23571), + 4356: uint16(29646), + 4357: uint16(23572), + 4358: uint16(7333), + 4359: uint16(27432), + 4360: uint16(23625), + 4361: uint16(18653), + 4362: uint16(23685), + 4363: uint16(23785), + 4364: uint16(23791), + 4365: uint16(23947), + 4366: uint16(7673), + 4367: uint16(7735), + 4368: uint16(23824), + 4369: uint16(23832), + 4370: uint16(23878), + 4371: uint16(7844), + 4372: uint16(23738), + 4373: uint16(24023), + 4374: uint16(33532), + 4375: uint16(14381), + 4376: uint16(18689), + 4377: uint16(8265), + 4378: uint16(8563), + 4379: uint16(33415), + 4380: uint16(14390), + 4381: uint16(15298), + 4382: uint16(24110), + 4383: uint16(27274), + 4385: uint16(24186), + 4386: uint16(17596), + 4387: uint16(3283), + 4388: uint16(21414), + 4389: uint16(20151), + 4391: uint16(21416), + 4392: uint16(6001), + 4393: uint16(24073), + 4394: uint16(24308), + 4395: uint16(33922), + 4396: uint16(24313), + 4397: uint16(24315), + 4398: uint16(14496), + 4399: uint16(24316), + 4400: uint16(26686), + 4401: uint16(37915), + 4402: uint16(24333), + 4403: uint16(449), + 4404: uint16(63636), + 4405: uint16(15070), + 4406: uint16(18606), + 4407: uint16(4922), + 4408: uint16(24378), + 4409: uint16(26760), + 4410: uint16(9168), + 4412: uint16(9329), + 4413: uint16(24419), + 4414: uint16(38845), + 4415: uint16(28270), + 4416: uint16(24434), + 4417: uint16(37696), + 4418: uint16(35382), + 4419: uint16(24487), + 4420: uint16(23990), + 4421: uint16(15711), + 4422: uint16(21072), + 4423: uint16(8042), + 4424: uint16(28920), + 4425: uint16(9832), + 4426: uint16(37334), + 4427: uint16(670), + 4428: uint16(35369), + 4429: uint16(24625), + 4430: uint16(26245), + 4431: uint16(6263), + 4432: uint16(14691), + 4433: uint16(15815), + 4434: uint16(13881), + 4435: uint16(22416), + 4436: uint16(10164), + 4437: uint16(31089), + 4438: uint16(15936), + 4439: uint16(24734), + 4441: uint16(24755), + 4442: uint16(18818), + 4443: uint16(18831), + 4444: uint16(31315), + 4445: uint16(29860), + 4446: uint16(20705), + 4447: uint16(23200), + 4448: uint16(24932), + 4449: uint16(33828), + 4450: uint16(24898), + 4451: uint16(63654), + 4452: uint16(28370), + 4453: uint16(24961), + 4454: uint16(20980), + 4455: uint16(1622), + 4456: uint16(24967), + 4457: uint16(23466), + 4458: uint16(16311), + 4459: uint16(10335), + 4460: uint16(25043), + 4461: uint16(35741), + 4462: uint16(39261), + 4463: uint16(25040), + 4464: uint16(14642), + 4465: uint16(10624), + 4466: uint16(10433), + 4467: uint16(24611), + 4468: uint16(24924), + 4469: uint16(25886), + 4470: uint16(25483), + 4471: uint16(280), + 4472: uint16(25285), + 4473: uint16(6000), + 4474: uint16(25301), + 4475: uint16(11789), + 4476: uint16(25452), + 4477: uint16(18911), + 4478: uint16(14871), + 4479: uint16(25656), + 4480: uint16(25592), + 4481: uint16(5006), + 4482: uint16(6140), + 4484: uint16(28554), + 4485: uint16(11830), + 4486: uint16(38932), + 4487: uint16(16524), + 4488: uint16(22301), + 4489: uint16(25825), + 4490: uint16(25829), + 4491: uint16(38011), + 4492: uint16(14950), + 4493: uint16(25658), + 4494: uint16(14935), + 4495: uint16(25933), + 4496: uint16(28438), + 4497: uint16(18984), + 4498: uint16(18979), + 4499: uint16(25989), + 4500: uint16(25965), + 4501: uint16(25951), + 4502: uint16(12414), + 4503: uint16(26037), + 4504: uint16(18752), + 4505: uint16(19255), + 4506: uint16(26065), + 4507: uint16(16600), + 4508: uint16(6185), + 4509: uint16(26080), + 4510: uint16(26083), + 4511: uint16(24543), + 4512: uint16(13312), + 4513: uint16(26136), + 4514: uint16(12791), + 4515: uint16(12792), + 4516: uint16(26180), + 4517: uint16(12708), + 4518: uint16(12709), + 4519: uint16(26187), + 4520: uint16(3701), + 4521: uint16(26215), + 4522: uint16(20966), + 4523: uint16(26227), + 4525: uint16(7741), + 4526: uint16(12849), + 4527: uint16(34292), + 4528: uint16(12744), + 4529: uint16(21267), + 4530: uint16(30661), + 4531: uint16(10487), + 4532: uint16(39332), + 4533: uint16(26370), + 4534: uint16(17308), + 4535: uint16(18977), + 4536: uint16(15147), + 4537: uint16(27130), + 4538: uint16(14274), + 4540: uint16(26471), + 4541: uint16(26466), + 4542: uint16(16845), + 4543: uint16(37101), + 4544: uint16(26583), + 4545: uint16(17641), + 4546: uint16(26658), + 4547: uint16(28240), + 4548: uint16(37436), + 4549: uint16(26625), + 4550: uint16(13286), + 4551: uint16(28064), + 4552: uint16(26717), + 4553: uint16(13423), + 4554: uint16(27105), + 4555: uint16(27147), + 4556: uint16(35551), + 4557: uint16(26995), + 4558: uint16(26819), + 4559: uint16(13773), + 4560: uint16(26881), + 4561: uint16(26880), + 4562: uint16(15666), + 4563: uint16(14849), + 4564: uint16(13884), + 4565: uint16(15232), + 4566: uint16(26540), + 4567: uint16(26977), + 4568: uint16(35402), + 4569: uint16(17148), + 4570: uint16(26934), + 4571: uint16(27032), + 4572: uint16(15265), + 4573: uint16(969), + 4574: uint16(33635), + 4575: uint16(20624), + 4576: uint16(27129), + 4577: uint16(13913), + 4578: uint16(8490), + 4579: uint16(27205), + 4580: uint16(14083), + 4581: uint16(27293), + 4582: uint16(15347), + 4583: uint16(26545), + 4584: uint16(27336), + 4585: uint16(37276), + 4586: uint16(15373), + 4587: uint16(27421), + 4588: uint16(2339), + 4589: uint16(24798), + 4590: uint16(27445), + 4591: uint16(27508), + 4592: uint16(10189), + 4593: uint16(28341), + 4594: uint16(15067), + 4595: uint16(949), + 4596: uint16(6488), + 4597: uint16(14144), + 4598: uint16(21537), + 4599: uint16(15194), + 4600: uint16(27617), + 4601: uint16(16124), + 4602: uint16(27612), + 4603: uint16(27703), + 4604: uint16(9355), + 4605: uint16(18673), + 4606: uint16(27473), + 4607: uint16(27738), + 4608: uint16(33318), + 4609: uint16(27769), + 4610: uint16(15804), + 4611: uint16(17605), + 4612: uint16(15805), + 4613: uint16(16804), + 4614: uint16(18700), + 4615: uint16(18688), + 4616: uint16(15561), + 4617: uint16(14053), + 4618: uint16(15595), + 4619: uint16(3378), + 4620: uint16(39811), + 4621: uint16(12793), + 4622: uint16(9361), + 4623: uint16(32655), + 4624: uint16(26679), + 4625: uint16(27941), + 4626: uint16(28065), + 4627: uint16(28139), + 4628: uint16(28054), + 4629: uint16(27996), + 4630: uint16(28284), + 4631: uint16(28420), + 4632: uint16(18815), + 4633: uint16(16517), + 4634: uint16(28274), + 4635: uint16(34099), + 4636: uint16(28532), + 4637: uint16(20935), + 4640: uint16(33838), + 4641: uint16(35617), + 4643: uint16(15919), + 4644: uint16(29779), + 4645: uint16(16258), + 4646: uint16(31180), + 4647: uint16(28239), + 4648: uint16(23185), + 4649: uint16(12363), + 4650: uint16(28664), + 4651: uint16(14093), + 4652: uint16(28573), + 4653: uint16(15920), + 4654: uint16(28410), + 4655: uint16(5271), + 4656: uint16(16445), + 4657: uint16(17749), + 4658: uint16(37872), + 4659: uint16(28484), + 4660: uint16(28508), + 4661: uint16(15694), + 4662: uint16(28532), + 4663: uint16(37232), + 4664: uint16(15675), + 4665: uint16(28575), + 4666: uint16(16708), + 4667: uint16(28627), + 4668: uint16(16529), + 4669: uint16(16725), + 4670: uint16(16441), + 4671: uint16(16368), + 4672: uint16(16308), + 4673: uint16(16703), + 4674: uint16(20959), + 4675: uint16(16726), + 4676: uint16(16727), + 4677: uint16(16704), + 4678: uint16(25053), + 4679: uint16(28747), + 4680: uint16(28798), + 4681: uint16(28839), + 4682: uint16(28801), + 4683: uint16(28876), + 4684: uint16(28885), + 4685: uint16(28886), + 4686: uint16(28895), + 4687: uint16(16644), + 4688: uint16(15848), + 4689: uint16(29108), + 4690: uint16(29078), + 4691: uint16(17015), + 4692: uint16(28971), + 4693: uint16(28997), + 4694: uint16(23176), + 4695: uint16(29002), + 4697: uint16(23708), + 4698: uint16(17253), + 4699: uint16(29007), + 4700: uint16(37730), + 4701: uint16(17089), + 4702: uint16(28972), + 4703: uint16(17498), + 4704: uint16(18983), + 4705: uint16(18978), + 4706: uint16(29114), + 4707: uint16(35816), + 4708: uint16(28861), + 4709: uint16(29198), + 4710: uint16(37954), + 4711: uint16(29205), + 4712: uint16(22801), + 4713: uint16(37955), + 4714: uint16(29220), + 4715: uint16(37697), + 4716: uint16(22021), + 4717: uint16(29230), + 4718: uint16(29248), + 4719: uint16(18804), + 4720: uint16(26813), + 4721: uint16(29269), + 4722: uint16(29271), + 4723: uint16(15957), + 4724: uint16(12356), + 4725: uint16(26637), + 4726: uint16(28477), + 4727: uint16(29314), + 4729: uint16(29483), + 4730: uint16(18467), + 4731: uint16(34859), + 4732: uint16(18669), + 4733: uint16(34820), + 4734: uint16(29480), + 4735: uint16(29486), + 4736: uint16(29647), + 4737: uint16(29610), + 4738: uint16(3130), + 4739: uint16(27182), + 4740: uint16(29641), + 4741: uint16(29769), + 4742: uint16(16866), + 4743: uint16(5863), + 4744: uint16(18980), + 4745: uint16(26147), + 4746: uint16(14021), + 4747: uint16(18871), + 4748: uint16(18829), + 4749: uint16(18939), + 4750: uint16(29687), + 4751: uint16(29717), + 4752: uint16(26883), + 4753: uint16(18982), + 4754: uint16(29753), + 4755: uint16(1475), + 4756: uint16(16087), + 4758: uint16(10413), + 4759: uint16(29792), + 4760: uint16(36530), + 4761: uint16(29767), + 4762: uint16(29668), + 4763: uint16(29814), + 4764: uint16(33721), + 4765: uint16(29804), + 4766: uint16(14128), + 4767: uint16(29812), + 4768: uint16(37873), + 4769: uint16(27180), + 4770: uint16(29826), + 4771: uint16(18771), + 4772: uint16(19084), + 4773: uint16(16735), + 4774: uint16(19065), + 4775: uint16(35727), + 4776: uint16(23366), + 4777: uint16(35843), + 4778: uint16(6302), + 4779: uint16(29896), + 4780: uint16(6536), + 4781: uint16(29966), + 4783: uint16(29982), + 4784: uint16(36569), + 4785: uint16(6731), + 4786: uint16(23511), + 4787: uint16(36524), + 4788: uint16(37765), + 4789: uint16(30029), + 4790: uint16(30026), + 4791: uint16(30055), + 4792: uint16(30062), + 4793: uint16(20354), + 4794: uint16(16132), + 4795: uint16(19731), + 4796: uint16(30094), + 4797: uint16(29789), + 4798: uint16(30110), + 4799: uint16(30132), + 4800: uint16(30210), + 4801: uint16(30252), + 4802: uint16(30289), + 4803: uint16(30287), + 4804: uint16(30319), + 4805: uint16(30326), + 4806: uint16(25589), + 4807: uint16(30352), + 4808: uint16(33263), + 4809: uint16(14328), + 4810: uint16(26897), + 4811: uint16(26894), + 4812: uint16(30369), + 4813: uint16(30373), + 4814: uint16(30391), + 4815: uint16(30412), + 4816: uint16(28575), + 4817: uint16(33890), + 4818: uint16(20637), + 4819: uint16(20861), + 4820: uint16(7708), + 4821: uint16(30494), + 4822: uint16(30502), + 4823: uint16(30528), + 4824: uint16(25775), + 4825: uint16(21024), + 4826: uint16(30552), + 4827: uint16(12972), + 4828: uint16(30639), + 4829: uint16(35172), + 4830: uint16(35176), + 4831: uint16(5825), + 4832: uint16(30708), + 4834: uint16(4982), + 4835: uint16(18962), + 4836: uint16(26826), + 4837: uint16(30895), + 4838: uint16(30919), + 4839: uint16(30931), + 4840: uint16(38565), + 4841: uint16(31022), + 4842: uint16(21984), + 4843: uint16(30935), + 4844: uint16(31028), + 4845: uint16(30897), + 4846: uint16(30220), + 4847: uint16(36792), + 4848: uint16(34948), + 4849: uint16(35627), + 4850: uint16(24707), + 4851: uint16(9756), + 4852: uint16(31110), + 4853: uint16(35072), + 4854: uint16(26882), + 4855: uint16(31104), + 4856: uint16(22615), + 4857: uint16(31133), + 4858: uint16(31545), + 4859: uint16(31036), + 4860: uint16(31145), + 4861: uint16(28202), + 4862: uint16(28966), + 4863: uint16(16040), + 4864: uint16(31174), + 4865: uint16(37133), + 4866: uint16(31188), + 4867: uint16(1312), + 4868: uint16(17503), + 4869: uint16(21007), + 4870: uint16(47234), + 4871: uint16(248), + 4872: uint16(16384), + 4873: uint16(43296), + 4874: uint16(1102), + 4877: uint16(2868), + 4878: uint16(1), + 4886: uint16(3072), + 4887: uint16(64), + 4891: uint16(1024), + 4892: uint16(88), + 4893: uint16(60), + 4896: uint16(23680), + 4897: uint16(56493), + 4898: uint16(48115), + 4899: uint16(17353), + 4900: uint16(60910), + 4901: uint16(4004), + 4902: uint16(49446), + 4903: uint16(30363), + 4904: uint16(61426), + 4905: uint16(64478), + 4906: uint16(63482), + 4907: uint16(12815), + 4908: uint16(44868), + 4909: uint16(61438), + 4910: uint16(65277), + 4911: uint16(24593), + 4912: uint16(176), + 4913: uint16(8448), + 4914: uint16(33049), + 4915: uint16(4128), + 4916: uint16(43144), + 4917: uint16(8544), + 4918: uint16(9321), + 4919: uint16(17408), + 4920: uint16(50313), + 4922: uint16(16387), + 4923: uint16(53), + 4924: uint16(33859), + 4925: uint16(20785), + 4926: uint16(26771), + 4927: uint16(514), + 4933: uint16(16384), + 4934: uint16(256), + 4935: uint16(44160), + 4936: uint16(33380), + 4937: uint16(35904), + 4938: uint16(37025), + 4939: uint16(20484), + 4940: uint16(54368), + 4941: uint16(53760), + 4942: uint16(6186), + 4943: uint16(26781), + 4944: uint16(38709), + 4945: uint16(55375), + 4946: uint16(8440), + 4947: uint16(33476), + 4948: uint16(10268), + 4949: uint16(30082), + 4950: uint16(660), + 4951: uint16(16440), + 4952: uint16(41376), + 4953: uint16(4293), + 4954: uint16(19825), + 4955: uint16(3524), + 4956: uint16(47512), + 4957: uint16(23390), + 4958: uint16(17153), + 4959: uint16(39327), + 4960: uint16(30723), + 4961: uint16(57888), + 4962: uint16(2079), + 4963: uint16(393), + 4964: uint16(16585), + 4965: uint16(775), + 4966: uint16(39437), + 4967: uint16(21136), + 4968: uint16(20433), + 4969: uint16(892), + 4970: uint16(8450), + 4971: uint16(49184), + 4972: uint16(4974), + 4973: uint16(46467), + 4974: uint16(62939), + 4975: uint16(30693), + 4976: uint16(20368), + 4977: uint16(39447), + 4978: uint16(5942), + 4979: uint16(12), + 4980: uint16(47726), + 4981: uint16(12041), + 4982: uint16(21600), + 4983: uint16(7680), + 4984: uint16(26744), + 4985: uint16(28706), + 4986: uint16(40534), + 4987: uint16(62245), + 4988: uint16(46990), + 4989: uint16(2839), + 4990: uint16(59119), + 4991: uint16(6007), + 4992: uint16(7003), + 4993: uint16(4289), + 4994: uint16(36248), + 4995: uint16(6162), + 4996: uint16(53174), + 4997: uint16(12545), + 4998: uint16(6770), + 4999: uint16(11355), + 5000: uint16(49334), + 5001: uint16(57888), + 5002: uint16(23747), + 5003: uint16(7042), + 5004: uint16(56032), + 5005: uint16(34254), + 5006: uint16(16598), + 5007: uint16(21673), + 5008: uint16(53259), + 5009: uint16(18447), + 5010: uint16(16452), + 5011: uint16(2320), + 5012: uint16(16596), + 5013: uint16(15278), + 5014: uint16(7780), + 5015: uint16(11076), + 5016: uint16(2071), + 5017: uint16(33414), + 5018: uint16(6198), + 5019: uint16(35232), + 5020: uint16(40167), + 5021: uint16(2139), + 5022: uint16(900), + 5023: uint16(55810), + 5024: uint16(60560), + 5025: uint16(34779), + 5026: uint16(49029), + 5027: uint16(44450), + 5028: uint16(36509), + 5029: uint16(39069), + 5030: uint16(9504), + 5031: uint16(70), + 5032: uint16(40774), + 5033: uint16(58239), + 5034: uint16(51669), + 5035: uint16(62596), + 5036: uint16(19926), + 5037: uint16(58118), + 5038: uint16(6326), + 5039: uint16(2322), + 5041: uint16(1024), + 5043: uint16(32), + 5045: uint16(512), + 5050: uint16(8192), + 5057: uint16(8), + 5058: uint16(36352), + 5059: uint16(28280), + 5060: uint16(16223), + 5061: uint16(56702), + 5062: uint16(63293), + 5063: uint16(39932), + 5064: uint16(44796), + 5065: uint16(65490), + 5066: uint16(27535), + 5067: uint16(59377), + 5068: uint16(47807), + 5069: uint16(28334), + 5070: uint16(61207), + 5071: uint16(42972), + 5072: uint16(46654), + 5073: uint16(30645), + 5074: uint16(37577), + 5075: uint16(42455), + 5076: uint16(19126), + 5077: uint16(39790), + 5078: uint16(33209), + 5079: uint16(26445), + 5080: uint16(21758), + 5081: uint16(39921), + 5082: uint16(65122), + 5083: uint16(21103), + 5084: uint16(14039), + 5085: uint16(49150), + 5086: uint16(17705), + 5087: uint16(63873), + 5088: uint16(26045), + 5089: uint16(17062), + 5090: uint16(57), + 5091: uint16(16896), + 5092: uint16(36704), + 5093: uint16(37888), + 5094: uint16(16448), + 5095: uint16(45010), + 5096: uint16(53719), + 5097: uint16(219), + 5098: uint16(39072), + 5099: uint16(31666), + 5100: uint16(20998), + 5101: uint16(38944), + 5102: uint16(51222), + 5103: uint16(2365), + 5105: uint16(1), + 5107: uint16(2561), + 5108: uint16(2226), + 5109: uint16(128), + 5111: uint16(34820), + 5112: uint16(5152), + 5113: uint16(19472), + 5115: uint16(4), + 5116: uint16(17569), + 5117: uint16(16), + 5118: uint16(321), + 5119: uint16(2048), + 5120: uint16(61504), + 5121: uint16(20447), + 5122: uint16(22582), + 5123: uint16(62961), + 5124: uint16(32949), + 5125: uint16(26613), + 5126: uint16(16512), + 5127: uint16(20480), + 5128: uint16(16718), + 5129: uint16(33992), + 5130: uint16(23040), + 5131: uint16(55392), + 5132: uint16(11009), + 5133: uint16(20481), + 5134: uint16(5793), + 5135: uint16(16580), + 5136: uint16(28402), + 5137: uint16(44049), + 5138: uint16(14624), + 5139: uint16(49348), + 5140: uint16(1800), + 5141: uint16(2316), + 5142: uint16(38552), + 5143: uint16(39876), + 5144: uint16(7184), + 5145: uint16(27800), + 5146: uint16(10886), + 5147: uint16(422), + 5148: uint16(4422), + 5149: uint16(58733), + 5150: uint16(50379), + 5151: uint16(37568), + 5152: uint16(8464), + 5153: uint16(4630), + 5154: uint16(29341), + 5155: uint16(27124), + 5156: uint16(5902), + 5157: uint16(41514), + 5158: uint16(62593), + 5159: uint16(123), + 5160: uint16(41992), + 5161: uint16(36875), + 5162: uint16(11280), + 5163: uint16(14796), + 5164: uint16(330), + 5165: uint16(5872), + 5166: uint16(2571), + 5167: uint16(3136), + 5168: uint16(59933), + 5169: uint16(17420), + 5170: uint16(17678), + 5171: uint16(2), +} + +var _ksc = [93][94]uint16{ + 0: { + 0: uint16(12288), + 1: uint16(12289), + 2: uint16(12290), + 3: uint16(183), + 4: uint16(8229), + 5: uint16(8230), + 6: uint16(168), + 7: uint16(12291), + 8: uint16(173), + 9: uint16(8213), + 10: uint16(8741), + 11: uint16(65340), + 12: uint16(8764), + 13: uint16(8216), + 14: uint16(8217), + 15: uint16(8220), + 16: uint16(8221), + 17: uint16(12308), + 18: uint16(12309), + 19: uint16(12296), + 20: uint16(12297), + 21: uint16(12298), + 22: uint16(12299), + 23: uint16(12300), + 24: uint16(12301), + 25: uint16(12302), + 26: uint16(12303), + 27: uint16(12304), + 28: uint16(12305), + 29: uint16(177), + 30: uint16(215), + 31: uint16(247), + 32: uint16(8800), + 33: uint16(8804), + 34: uint16(8805), + 35: uint16(8734), + 36: uint16(8756), + 37: uint16(176), + 38: uint16(8242), + 39: uint16(8243), + 40: uint16(8451), + 41: uint16(8491), + 42: uint16(65504), + 43: uint16(65505), + 44: uint16(65509), + 45: uint16(9794), + 46: uint16(9792), + 47: uint16(8736), + 48: uint16(8869), + 49: uint16(8978), + 50: uint16(8706), + 51: uint16(8711), + 52: uint16(8801), + 53: uint16(8786), + 54: uint16(167), + 55: uint16(8251), + 56: uint16(9734), + 57: uint16(9733), + 58: uint16(9675), + 59: uint16(9679), + 60: uint16(9678), + 61: uint16(9671), + 62: uint16(9670), + 63: uint16(9633), + 64: uint16(9632), + 65: uint16(9651), + 66: uint16(9650), + 67: uint16(9661), + 68: uint16(9660), + 69: uint16(8594), + 70: uint16(8592), + 71: uint16(8593), + 72: uint16(8595), + 73: uint16(8596), + 74: uint16(12307), + 75: uint16(8810), + 76: uint16(8811), + 77: uint16(8730), + 78: uint16(8765), + 79: uint16(8733), + 80: uint16(8757), + 81: uint16(8747), + 82: uint16(8748), + 83: uint16(8712), + 84: uint16(8715), + 85: uint16(8838), + 86: uint16(8839), + 87: uint16(8834), + 88: uint16(8835), + 89: uint16(8746), + 90: uint16(8745), + 91: uint16(8743), + 92: uint16(8744), + 93: uint16(65506), + }, + 1: { + 0: uint16(8658), + 1: uint16(8660), + 2: uint16(8704), + 3: uint16(8707), + 4: uint16(180), + 5: uint16(65374), + 6: uint16(711), + 7: uint16(728), + 8: uint16(733), + 9: uint16(730), + 10: uint16(729), + 11: uint16(184), + 12: uint16(731), + 13: uint16(161), + 14: uint16(191), + 15: uint16(720), + 16: uint16(8750), + 17: uint16(8721), + 18: uint16(8719), + 19: uint16(164), + 20: uint16(8457), + 21: uint16(8240), + 22: uint16(9665), + 23: uint16(9664), + 24: uint16(9655), + 25: uint16(9654), + 26: uint16(9828), + 27: uint16(9824), + 28: uint16(9825), + 29: uint16(9829), + 30: uint16(9831), + 31: uint16(9827), + 32: uint16(8857), + 33: uint16(9672), + 34: uint16(9635), + 35: uint16(9680), + 36: uint16(9681), + 37: uint16(9618), + 38: uint16(9636), + 39: uint16(9637), + 40: uint16(9640), + 41: uint16(9639), + 42: uint16(9638), + 43: uint16(9641), + 44: uint16(9832), + 45: uint16(9743), + 46: uint16(9742), + 47: uint16(9756), + 48: uint16(9758), + 49: uint16(182), + 50: uint16(8224), + 51: uint16(8225), + 52: uint16(8597), + 53: uint16(8599), + 54: uint16(8601), + 55: uint16(8598), + 56: uint16(8600), + 57: uint16(9837), + 58: uint16(9833), + 59: uint16(9834), + 60: uint16(9836), + 61: uint16(12927), + 62: uint16(12828), + 63: uint16(8470), + 64: uint16(13255), + 65: uint16(8482), + 66: uint16(13250), + 67: uint16(13272), + 68: uint16(8481), + 69: uint16(8364), + 70: uint16(174), + }, + 2: { + 0: uint16(65281), + 1: uint16(65282), + 2: uint16(65283), + 3: uint16(65284), + 4: uint16(65285), + 5: uint16(65286), + 6: uint16(65287), + 7: uint16(65288), + 8: uint16(65289), + 9: uint16(65290), + 10: uint16(65291), + 11: uint16(65292), + 12: uint16(65293), + 13: uint16(65294), + 14: uint16(65295), + 15: uint16(65296), + 16: uint16(65297), + 17: uint16(65298), + 18: uint16(65299), + 19: uint16(65300), + 20: uint16(65301), + 21: uint16(65302), + 22: uint16(65303), + 23: uint16(65304), + 24: uint16(65305), + 25: uint16(65306), + 26: uint16(65307), + 27: uint16(65308), + 28: uint16(65309), + 29: uint16(65310), + 30: uint16(65311), + 31: uint16(65312), + 32: uint16(65313), + 33: uint16(65314), + 34: uint16(65315), + 35: uint16(65316), + 36: uint16(65317), + 37: uint16(65318), + 38: uint16(65319), + 39: uint16(65320), + 40: uint16(65321), + 41: uint16(65322), + 42: uint16(65323), + 43: uint16(65324), + 44: uint16(65325), + 45: uint16(65326), + 46: uint16(65327), + 47: uint16(65328), + 48: uint16(65329), + 49: uint16(65330), + 50: uint16(65331), + 51: uint16(65332), + 52: uint16(65333), + 53: uint16(65334), + 54: uint16(65335), + 55: uint16(65336), + 56: uint16(65337), + 57: uint16(65338), + 58: uint16(65339), + 59: uint16(65510), + 60: uint16(65341), + 61: uint16(65342), + 62: uint16(65343), + 63: uint16(65344), + 64: uint16(65345), + 65: uint16(65346), + 66: uint16(65347), + 67: uint16(65348), + 68: uint16(65349), + 69: uint16(65350), + 70: uint16(65351), + 71: uint16(65352), + 72: uint16(65353), + 73: uint16(65354), + 74: uint16(65355), + 75: uint16(65356), + 76: uint16(65357), + 77: uint16(65358), + 78: uint16(65359), + 79: uint16(65360), + 80: uint16(65361), + 81: uint16(65362), + 82: uint16(65363), + 83: uint16(65364), + 84: uint16(65365), + 85: uint16(65366), + 86: uint16(65367), + 87: uint16(65368), + 88: uint16(65369), + 89: uint16(65370), + 90: uint16(65371), + 91: uint16(65372), + 92: uint16(65373), + 93: uint16(65507), + }, + 3: { + 0: uint16(12593), + 1: uint16(12594), + 2: uint16(12595), + 3: uint16(12596), + 4: uint16(12597), + 5: uint16(12598), + 6: uint16(12599), + 7: uint16(12600), + 8: uint16(12601), + 9: uint16(12602), + 10: uint16(12603), + 11: uint16(12604), + 12: uint16(12605), + 13: uint16(12606), + 14: uint16(12607), + 15: uint16(12608), + 16: uint16(12609), + 17: uint16(12610), + 18: uint16(12611), + 19: uint16(12612), + 20: uint16(12613), + 21: uint16(12614), + 22: uint16(12615), + 23: uint16(12616), + 24: uint16(12617), + 25: uint16(12618), + 26: uint16(12619), + 27: uint16(12620), + 28: uint16(12621), + 29: uint16(12622), + 30: uint16(12623), + 31: uint16(12624), + 32: uint16(12625), + 33: uint16(12626), + 34: uint16(12627), + 35: uint16(12628), + 36: uint16(12629), + 37: uint16(12630), + 38: uint16(12631), + 39: uint16(12632), + 40: uint16(12633), + 41: uint16(12634), + 42: uint16(12635), + 43: uint16(12636), + 44: uint16(12637), + 45: uint16(12638), + 46: uint16(12639), + 47: uint16(12640), + 48: uint16(12641), + 49: uint16(12642), + 50: uint16(12643), + 51: uint16(12644), + 52: uint16(12645), + 53: uint16(12646), + 54: uint16(12647), + 55: uint16(12648), + 56: uint16(12649), + 57: uint16(12650), + 58: uint16(12651), + 59: uint16(12652), + 60: uint16(12653), + 61: uint16(12654), + 62: uint16(12655), + 63: uint16(12656), + 64: uint16(12657), + 65: uint16(12658), + 66: uint16(12659), + 67: uint16(12660), + 68: uint16(12661), + 69: uint16(12662), + 70: uint16(12663), + 71: uint16(12664), + 72: uint16(12665), + 73: uint16(12666), + 74: uint16(12667), + 75: uint16(12668), + 76: uint16(12669), + 77: uint16(12670), + 78: uint16(12671), + 79: uint16(12672), + 80: uint16(12673), + 81: uint16(12674), + 82: uint16(12675), + 83: uint16(12676), + 84: uint16(12677), + 85: uint16(12678), + 86: uint16(12679), + 87: uint16(12680), + 88: uint16(12681), + 89: uint16(12682), + 90: uint16(12683), + 91: uint16(12684), + 92: uint16(12685), + 93: uint16(12686), + }, + 4: { + 0: uint16(8560), + 1: uint16(8561), + 2: uint16(8562), + 3: uint16(8563), + 4: uint16(8564), + 5: uint16(8565), + 6: uint16(8566), + 7: uint16(8567), + 8: uint16(8568), + 9: uint16(8569), + 15: uint16(8544), + 16: uint16(8545), + 17: uint16(8546), + 18: uint16(8547), + 19: uint16(8548), + 20: uint16(8549), + 21: uint16(8550), + 22: uint16(8551), + 23: uint16(8552), + 24: uint16(8553), + 32: uint16(913), + 33: uint16(914), + 34: uint16(915), + 35: uint16(916), + 36: uint16(917), + 37: uint16(918), + 38: uint16(919), + 39: uint16(920), + 40: uint16(921), + 41: uint16(922), + 42: uint16(923), + 43: uint16(924), + 44: uint16(925), + 45: uint16(926), + 46: uint16(927), + 47: uint16(928), + 48: uint16(929), + 49: uint16(931), + 50: uint16(932), + 51: uint16(933), + 52: uint16(934), + 53: uint16(935), + 54: uint16(936), + 55: uint16(937), + 64: uint16(945), + 65: uint16(946), + 66: uint16(947), + 67: uint16(948), + 68: uint16(949), + 69: uint16(950), + 70: uint16(951), + 71: uint16(952), + 72: uint16(953), + 73: uint16(954), + 74: uint16(955), + 75: uint16(956), + 76: uint16(957), + 77: uint16(958), + 78: uint16(959), + 79: uint16(960), + 80: uint16(961), + 81: uint16(963), + 82: uint16(964), + 83: uint16(965), + 84: uint16(966), + 85: uint16(967), + 86: uint16(968), + 87: uint16(969), + }, + 5: { + 0: uint16(9472), + 1: uint16(9474), + 2: uint16(9484), + 3: uint16(9488), + 4: uint16(9496), + 5: uint16(9492), + 6: uint16(9500), + 7: uint16(9516), + 8: uint16(9508), + 9: uint16(9524), + 10: uint16(9532), + 11: uint16(9473), + 12: uint16(9475), + 13: uint16(9487), + 14: uint16(9491), + 15: uint16(9499), + 16: uint16(9495), + 17: uint16(9507), + 18: uint16(9523), + 19: uint16(9515), + 20: uint16(9531), + 21: uint16(9547), + 22: uint16(9504), + 23: uint16(9519), + 24: uint16(9512), + 25: uint16(9527), + 26: uint16(9535), + 27: uint16(9501), + 28: uint16(9520), + 29: uint16(9509), + 30: uint16(9528), + 31: uint16(9538), + 32: uint16(9490), + 33: uint16(9489), + 34: uint16(9498), + 35: uint16(9497), + 36: uint16(9494), + 37: uint16(9493), + 38: uint16(9486), + 39: uint16(9485), + 40: uint16(9502), + 41: uint16(9503), + 42: uint16(9505), + 43: uint16(9506), + 44: uint16(9510), + 45: uint16(9511), + 46: uint16(9513), + 47: uint16(9514), + 48: uint16(9517), + 49: uint16(9518), + 50: uint16(9521), + 51: uint16(9522), + 52: uint16(9525), + 53: uint16(9526), + 54: uint16(9529), + 55: uint16(9530), + 56: uint16(9533), + 57: uint16(9534), + 58: uint16(9536), + 59: uint16(9537), + 60: uint16(9539), + 61: uint16(9540), + 62: uint16(9541), + 63: uint16(9542), + 64: uint16(9543), + 65: uint16(9544), + 66: uint16(9545), + 67: uint16(9546), + }, + 6: { + 0: uint16(13205), + 1: uint16(13206), + 2: uint16(13207), + 3: uint16(8467), + 4: uint16(13208), + 5: uint16(13252), + 6: uint16(13219), + 7: uint16(13220), + 8: uint16(13221), + 9: uint16(13222), + 10: uint16(13209), + 11: uint16(13210), + 12: uint16(13211), + 13: uint16(13212), + 14: uint16(13213), + 15: uint16(13214), + 16: uint16(13215), + 17: uint16(13216), + 18: uint16(13217), + 19: uint16(13218), + 20: uint16(13258), + 21: uint16(13197), + 22: uint16(13198), + 23: uint16(13199), + 24: uint16(13263), + 25: uint16(13192), + 26: uint16(13193), + 27: uint16(13256), + 28: uint16(13223), + 29: uint16(13224), + 30: uint16(13232), + 31: uint16(13233), + 32: uint16(13234), + 33: uint16(13235), + 34: uint16(13236), + 35: uint16(13237), + 36: uint16(13238), + 37: uint16(13239), + 38: uint16(13240), + 39: uint16(13241), + 40: uint16(13184), + 41: uint16(13185), + 42: uint16(13186), + 43: uint16(13187), + 44: uint16(13188), + 45: uint16(13242), + 46: uint16(13243), + 47: uint16(13244), + 48: uint16(13245), + 49: uint16(13246), + 50: uint16(13247), + 51: uint16(13200), + 52: uint16(13201), + 53: uint16(13202), + 54: uint16(13203), + 55: uint16(13204), + 56: uint16(8486), + 57: uint16(13248), + 58: uint16(13249), + 59: uint16(13194), + 60: uint16(13195), + 61: uint16(13196), + 62: uint16(13270), + 63: uint16(13253), + 64: uint16(13229), + 65: uint16(13230), + 66: uint16(13231), + 67: uint16(13275), + 68: uint16(13225), + 69: uint16(13226), + 70: uint16(13227), + 71: uint16(13228), + 72: uint16(13277), + 73: uint16(13264), + 74: uint16(13267), + 75: uint16(13251), + 76: uint16(13257), + 77: uint16(13276), + 78: uint16(13254), + }, + 7: { + 0: uint16(198), + 1: uint16(208), + 2: uint16(170), + 3: uint16(294), + 5: uint16(306), + 7: uint16(319), + 8: uint16(321), + 9: uint16(216), + 10: uint16(338), + 11: uint16(186), + 12: uint16(222), + 13: uint16(358), + 14: uint16(330), + 16: uint16(12896), + 17: uint16(12897), + 18: uint16(12898), + 19: uint16(12899), + 20: uint16(12900), + 21: uint16(12901), + 22: uint16(12902), + 23: uint16(12903), + 24: uint16(12904), + 25: uint16(12905), + 26: uint16(12906), + 27: uint16(12907), + 28: uint16(12908), + 29: uint16(12909), + 30: uint16(12910), + 31: uint16(12911), + 32: uint16(12912), + 33: uint16(12913), + 34: uint16(12914), + 35: uint16(12915), + 36: uint16(12916), + 37: uint16(12917), + 38: uint16(12918), + 39: uint16(12919), + 40: uint16(12920), + 41: uint16(12921), + 42: uint16(12922), + 43: uint16(12923), + 44: uint16(9424), + 45: uint16(9425), + 46: uint16(9426), + 47: uint16(9427), + 48: uint16(9428), + 49: uint16(9429), + 50: uint16(9430), + 51: uint16(9431), + 52: uint16(9432), + 53: uint16(9433), + 54: uint16(9434), + 55: uint16(9435), + 56: uint16(9436), + 57: uint16(9437), + 58: uint16(9438), + 59: uint16(9439), + 60: uint16(9440), + 61: uint16(9441), + 62: uint16(9442), + 63: uint16(9443), + 64: uint16(9444), + 65: uint16(9445), + 66: uint16(9446), + 67: uint16(9447), + 68: uint16(9448), + 69: uint16(9449), + 70: uint16(9312), + 71: uint16(9313), + 72: uint16(9314), + 73: uint16(9315), + 74: uint16(9316), + 75: uint16(9317), + 76: uint16(9318), + 77: uint16(9319), + 78: uint16(9320), + 79: uint16(9321), + 80: uint16(9322), + 81: uint16(9323), + 82: uint16(9324), + 83: uint16(9325), + 84: uint16(9326), + 85: uint16(189), + 86: uint16(8531), + 87: uint16(8532), + 88: uint16(188), + 89: uint16(190), + 90: uint16(8539), + 91: uint16(8540), + 92: uint16(8541), + 93: uint16(8542), + }, + 8: { + 0: uint16(230), + 1: uint16(273), + 2: uint16(240), + 3: uint16(295), + 4: uint16(305), + 5: uint16(307), + 6: uint16(312), + 7: uint16(320), + 8: uint16(322), + 9: uint16(248), + 10: uint16(339), + 11: uint16(223), + 12: uint16(254), + 13: uint16(359), + 14: uint16(331), + 15: uint16(329), + 16: uint16(12800), + 17: uint16(12801), + 18: uint16(12802), + 19: uint16(12803), + 20: uint16(12804), + 21: uint16(12805), + 22: uint16(12806), + 23: uint16(12807), + 24: uint16(12808), + 25: uint16(12809), + 26: uint16(12810), + 27: uint16(12811), + 28: uint16(12812), + 29: uint16(12813), + 30: uint16(12814), + 31: uint16(12815), + 32: uint16(12816), + 33: uint16(12817), + 34: uint16(12818), + 35: uint16(12819), + 36: uint16(12820), + 37: uint16(12821), + 38: uint16(12822), + 39: uint16(12823), + 40: uint16(12824), + 41: uint16(12825), + 42: uint16(12826), + 43: uint16(12827), + 44: uint16(9372), + 45: uint16(9373), + 46: uint16(9374), + 47: uint16(9375), + 48: uint16(9376), + 49: uint16(9377), + 50: uint16(9378), + 51: uint16(9379), + 52: uint16(9380), + 53: uint16(9381), + 54: uint16(9382), + 55: uint16(9383), + 56: uint16(9384), + 57: uint16(9385), + 58: uint16(9386), + 59: uint16(9387), + 60: uint16(9388), + 61: uint16(9389), + 62: uint16(9390), + 63: uint16(9391), + 64: uint16(9392), + 65: uint16(9393), + 66: uint16(9394), + 67: uint16(9395), + 68: uint16(9396), + 69: uint16(9397), + 70: uint16(9332), + 71: uint16(9333), + 72: uint16(9334), + 73: uint16(9335), + 74: uint16(9336), + 75: uint16(9337), + 76: uint16(9338), + 77: uint16(9339), + 78: uint16(9340), + 79: uint16(9341), + 80: uint16(9342), + 81: uint16(9343), + 82: uint16(9344), + 83: uint16(9345), + 84: uint16(9346), + 85: uint16(185), + 86: uint16(178), + 87: uint16(179), + 88: uint16(8308), + 89: uint16(8319), + 90: uint16(8321), + 91: uint16(8322), + 92: uint16(8323), + 93: uint16(8324), + }, + 9: { + 0: uint16(12353), + 1: uint16(12354), + 2: uint16(12355), + 3: uint16(12356), + 4: uint16(12357), + 5: uint16(12358), + 6: uint16(12359), + 7: uint16(12360), + 8: uint16(12361), + 9: uint16(12362), + 10: uint16(12363), + 11: uint16(12364), + 12: uint16(12365), + 13: uint16(12366), + 14: uint16(12367), + 15: uint16(12368), + 16: uint16(12369), + 17: uint16(12370), + 18: uint16(12371), + 19: uint16(12372), + 20: uint16(12373), + 21: uint16(12374), + 22: uint16(12375), + 23: uint16(12376), + 24: uint16(12377), + 25: uint16(12378), + 26: uint16(12379), + 27: uint16(12380), + 28: uint16(12381), + 29: uint16(12382), + 30: uint16(12383), + 31: uint16(12384), + 32: uint16(12385), + 33: uint16(12386), + 34: uint16(12387), + 35: uint16(12388), + 36: uint16(12389), + 37: uint16(12390), + 38: uint16(12391), + 39: uint16(12392), + 40: uint16(12393), + 41: uint16(12394), + 42: uint16(12395), + 43: uint16(12396), + 44: uint16(12397), + 45: uint16(12398), + 46: uint16(12399), + 47: uint16(12400), + 48: uint16(12401), + 49: uint16(12402), + 50: uint16(12403), + 51: uint16(12404), + 52: uint16(12405), + 53: uint16(12406), + 54: uint16(12407), + 55: uint16(12408), + 56: uint16(12409), + 57: uint16(12410), + 58: uint16(12411), + 59: uint16(12412), + 60: uint16(12413), + 61: uint16(12414), + 62: uint16(12415), + 63: uint16(12416), + 64: uint16(12417), + 65: uint16(12418), + 66: uint16(12419), + 67: uint16(12420), + 68: uint16(12421), + 69: uint16(12422), + 70: uint16(12423), + 71: uint16(12424), + 72: uint16(12425), + 73: uint16(12426), + 74: uint16(12427), + 75: uint16(12428), + 76: uint16(12429), + 77: uint16(12430), + 78: uint16(12431), + 79: uint16(12432), + 80: uint16(12433), + 81: uint16(12434), + 82: uint16(12435), + }, + 10: { + 0: uint16(12449), + 1: uint16(12450), + 2: uint16(12451), + 3: uint16(12452), + 4: uint16(12453), + 5: uint16(12454), + 6: uint16(12455), + 7: uint16(12456), + 8: uint16(12457), + 9: uint16(12458), + 10: uint16(12459), + 11: uint16(12460), + 12: uint16(12461), + 13: uint16(12462), + 14: uint16(12463), + 15: uint16(12464), + 16: uint16(12465), + 17: uint16(12466), + 18: uint16(12467), + 19: uint16(12468), + 20: uint16(12469), + 21: uint16(12470), + 22: uint16(12471), + 23: uint16(12472), + 24: uint16(12473), + 25: uint16(12474), + 26: uint16(12475), + 27: uint16(12476), + 28: uint16(12477), + 29: uint16(12478), + 30: uint16(12479), + 31: uint16(12480), + 32: uint16(12481), + 33: uint16(12482), + 34: uint16(12483), + 35: uint16(12484), + 36: uint16(12485), + 37: uint16(12486), + 38: uint16(12487), + 39: uint16(12488), + 40: uint16(12489), + 41: uint16(12490), + 42: uint16(12491), + 43: uint16(12492), + 44: uint16(12493), + 45: uint16(12494), + 46: uint16(12495), + 47: uint16(12496), + 48: uint16(12497), + 49: uint16(12498), + 50: uint16(12499), + 51: uint16(12500), + 52: uint16(12501), + 53: uint16(12502), + 54: uint16(12503), + 55: uint16(12504), + 56: uint16(12505), + 57: uint16(12506), + 58: uint16(12507), + 59: uint16(12508), + 60: uint16(12509), + 61: uint16(12510), + 62: uint16(12511), + 63: uint16(12512), + 64: uint16(12513), + 65: uint16(12514), + 66: uint16(12515), + 67: uint16(12516), + 68: uint16(12517), + 69: uint16(12518), + 70: uint16(12519), + 71: uint16(12520), + 72: uint16(12521), + 73: uint16(12522), + 74: uint16(12523), + 75: uint16(12524), + 76: uint16(12525), + 77: uint16(12526), + 78: uint16(12527), + 79: uint16(12528), + 80: uint16(12529), + 81: uint16(12530), + 82: uint16(12531), + 83: uint16(12532), + 84: uint16(12533), + 85: uint16(12534), + }, + 11: { + 0: uint16(1040), + 1: uint16(1041), + 2: uint16(1042), + 3: uint16(1043), + 4: uint16(1044), + 5: uint16(1045), + 6: uint16(1025), + 7: uint16(1046), + 8: uint16(1047), + 9: uint16(1048), + 10: uint16(1049), + 11: uint16(1050), + 12: uint16(1051), + 13: uint16(1052), + 14: uint16(1053), + 15: uint16(1054), + 16: uint16(1055), + 17: uint16(1056), + 18: uint16(1057), + 19: uint16(1058), + 20: uint16(1059), + 21: uint16(1060), + 22: uint16(1061), + 23: uint16(1062), + 24: uint16(1063), + 25: uint16(1064), + 26: uint16(1065), + 27: uint16(1066), + 28: uint16(1067), + 29: uint16(1068), + 30: uint16(1069), + 31: uint16(1070), + 32: uint16(1071), + 48: uint16(1072), + 49: uint16(1073), + 50: uint16(1074), + 51: uint16(1075), + 52: uint16(1076), + 53: uint16(1077), + 54: uint16(1105), + 55: uint16(1078), + 56: uint16(1079), + 57: uint16(1080), + 58: uint16(1081), + 59: uint16(1082), + 60: uint16(1083), + 61: uint16(1084), + 62: uint16(1085), + 63: uint16(1086), + 64: uint16(1087), + 65: uint16(1088), + 66: uint16(1089), + 67: uint16(1090), + 68: uint16(1091), + 69: uint16(1092), + 70: uint16(1093), + 71: uint16(1094), + 72: uint16(1095), + 73: uint16(1096), + 74: uint16(1097), + 75: uint16(1098), + 76: uint16(1099), + 77: uint16(1100), + 78: uint16(1101), + 79: uint16(1102), + 80: uint16(1103), + }, + 12: {}, + 13: {}, + 14: {}, + 15: { + 0: uint16(44032), + 1: uint16(44033), + 2: uint16(44036), + 3: uint16(44039), + 4: uint16(44040), + 5: uint16(44041), + 6: uint16(44042), + 7: uint16(44048), + 8: uint16(44049), + 9: uint16(44050), + 10: uint16(44051), + 11: uint16(44052), + 12: uint16(44053), + 13: uint16(44054), + 14: uint16(44055), + 15: uint16(44057), + 16: uint16(44058), + 17: uint16(44059), + 18: uint16(44060), + 19: uint16(44061), + 20: uint16(44064), + 21: uint16(44068), + 22: uint16(44076), + 23: uint16(44077), + 24: uint16(44079), + 25: uint16(44080), + 26: uint16(44081), + 27: uint16(44088), + 28: uint16(44089), + 29: uint16(44092), + 30: uint16(44096), + 31: uint16(44107), + 32: uint16(44109), + 33: uint16(44116), + 34: uint16(44120), + 35: uint16(44124), + 36: uint16(44144), + 37: uint16(44145), + 38: uint16(44148), + 39: uint16(44151), + 40: uint16(44152), + 41: uint16(44154), + 42: uint16(44160), + 43: uint16(44161), + 44: uint16(44163), + 45: uint16(44164), + 46: uint16(44165), + 47: uint16(44166), + 48: uint16(44169), + 49: uint16(44170), + 50: uint16(44171), + 51: uint16(44172), + 52: uint16(44176), + 53: uint16(44180), + 54: uint16(44188), + 55: uint16(44189), + 56: uint16(44191), + 57: uint16(44192), + 58: uint16(44193), + 59: uint16(44200), + 60: uint16(44201), + 61: uint16(44202), + 62: uint16(44204), + 63: uint16(44207), + 64: uint16(44208), + 65: uint16(44216), + 66: uint16(44217), + 67: uint16(44219), + 68: uint16(44220), + 69: uint16(44221), + 70: uint16(44225), + 71: uint16(44228), + 72: uint16(44232), + 73: uint16(44236), + 74: uint16(44245), + 75: uint16(44247), + 76: uint16(44256), + 77: uint16(44257), + 78: uint16(44260), + 79: uint16(44263), + 80: uint16(44264), + 81: uint16(44266), + 82: uint16(44268), + 83: uint16(44271), + 84: uint16(44272), + 85: uint16(44273), + 86: uint16(44275), + 87: uint16(44277), + 88: uint16(44278), + 89: uint16(44284), + 90: uint16(44285), + 91: uint16(44288), + 92: uint16(44292), + 93: uint16(44294), + }, + 16: { + 0: uint16(44300), + 1: uint16(44301), + 2: uint16(44303), + 3: uint16(44305), + 4: uint16(44312), + 5: uint16(44316), + 6: uint16(44320), + 7: uint16(44329), + 8: uint16(44332), + 9: uint16(44333), + 10: uint16(44340), + 11: uint16(44341), + 12: uint16(44344), + 13: uint16(44348), + 14: uint16(44356), + 15: uint16(44357), + 16: uint16(44359), + 17: uint16(44361), + 18: uint16(44368), + 19: uint16(44372), + 20: uint16(44376), + 21: uint16(44385), + 22: uint16(44387), + 23: uint16(44396), + 24: uint16(44397), + 25: uint16(44400), + 26: uint16(44403), + 27: uint16(44404), + 28: uint16(44405), + 29: uint16(44406), + 30: uint16(44411), + 31: uint16(44412), + 32: uint16(44413), + 33: uint16(44415), + 34: uint16(44417), + 35: uint16(44418), + 36: uint16(44424), + 37: uint16(44425), + 38: uint16(44428), + 39: uint16(44432), + 40: uint16(44444), + 41: uint16(44445), + 42: uint16(44452), + 43: uint16(44471), + 44: uint16(44480), + 45: uint16(44481), + 46: uint16(44484), + 47: uint16(44488), + 48: uint16(44496), + 49: uint16(44497), + 50: uint16(44499), + 51: uint16(44508), + 52: uint16(44512), + 53: uint16(44516), + 54: uint16(44536), + 55: uint16(44537), + 56: uint16(44540), + 57: uint16(44543), + 58: uint16(44544), + 59: uint16(44545), + 60: uint16(44552), + 61: uint16(44553), + 62: uint16(44555), + 63: uint16(44557), + 64: uint16(44564), + 65: uint16(44592), + 66: uint16(44593), + 67: uint16(44596), + 68: uint16(44599), + 69: uint16(44600), + 70: uint16(44602), + 71: uint16(44608), + 72: uint16(44609), + 73: uint16(44611), + 74: uint16(44613), + 75: uint16(44614), + 76: uint16(44618), + 77: uint16(44620), + 78: uint16(44621), + 79: uint16(44622), + 80: uint16(44624), + 81: uint16(44628), + 82: uint16(44630), + 83: uint16(44636), + 84: uint16(44637), + 85: uint16(44639), + 86: uint16(44640), + 87: uint16(44641), + 88: uint16(44645), + 89: uint16(44648), + 90: uint16(44649), + 91: uint16(44652), + 92: uint16(44656), + 93: uint16(44664), + }, + 17: { + 0: uint16(44665), + 1: uint16(44667), + 2: uint16(44668), + 3: uint16(44669), + 4: uint16(44676), + 5: uint16(44677), + 6: uint16(44684), + 7: uint16(44732), + 8: uint16(44733), + 9: uint16(44734), + 10: uint16(44736), + 11: uint16(44740), + 12: uint16(44748), + 13: uint16(44749), + 14: uint16(44751), + 15: uint16(44752), + 16: uint16(44753), + 17: uint16(44760), + 18: uint16(44761), + 19: uint16(44764), + 20: uint16(44776), + 21: uint16(44779), + 22: uint16(44781), + 23: uint16(44788), + 24: uint16(44792), + 25: uint16(44796), + 26: uint16(44807), + 27: uint16(44808), + 28: uint16(44813), + 29: uint16(44816), + 30: uint16(44844), + 31: uint16(44845), + 32: uint16(44848), + 33: uint16(44850), + 34: uint16(44852), + 35: uint16(44860), + 36: uint16(44861), + 37: uint16(44863), + 38: uint16(44865), + 39: uint16(44866), + 40: uint16(44867), + 41: uint16(44872), + 42: uint16(44873), + 43: uint16(44880), + 44: uint16(44892), + 45: uint16(44893), + 46: uint16(44900), + 47: uint16(44901), + 48: uint16(44921), + 49: uint16(44928), + 50: uint16(44932), + 51: uint16(44936), + 52: uint16(44944), + 53: uint16(44945), + 54: uint16(44949), + 55: uint16(44956), + 56: uint16(44984), + 57: uint16(44985), + 58: uint16(44988), + 59: uint16(44992), + 60: uint16(44999), + 61: uint16(45000), + 62: uint16(45001), + 63: uint16(45003), + 64: uint16(45005), + 65: uint16(45006), + 66: uint16(45012), + 67: uint16(45020), + 68: uint16(45032), + 69: uint16(45033), + 70: uint16(45040), + 71: uint16(45041), + 72: uint16(45044), + 73: uint16(45048), + 74: uint16(45056), + 75: uint16(45057), + 76: uint16(45060), + 77: uint16(45068), + 78: uint16(45072), + 79: uint16(45076), + 80: uint16(45084), + 81: uint16(45085), + 82: uint16(45096), + 83: uint16(45124), + 84: uint16(45125), + 85: uint16(45128), + 86: uint16(45130), + 87: uint16(45132), + 88: uint16(45134), + 89: uint16(45139), + 90: uint16(45140), + 91: uint16(45141), + 92: uint16(45143), + 93: uint16(45145), + }, + 18: { + 0: uint16(45149), + 1: uint16(45180), + 2: uint16(45181), + 3: uint16(45184), + 4: uint16(45188), + 5: uint16(45196), + 6: uint16(45197), + 7: uint16(45199), + 8: uint16(45201), + 9: uint16(45208), + 10: uint16(45209), + 11: uint16(45210), + 12: uint16(45212), + 13: uint16(45215), + 14: uint16(45216), + 15: uint16(45217), + 16: uint16(45218), + 17: uint16(45224), + 18: uint16(45225), + 19: uint16(45227), + 20: uint16(45228), + 21: uint16(45229), + 22: uint16(45230), + 23: uint16(45231), + 24: uint16(45233), + 25: uint16(45235), + 26: uint16(45236), + 27: uint16(45237), + 28: uint16(45240), + 29: uint16(45244), + 30: uint16(45252), + 31: uint16(45253), + 32: uint16(45255), + 33: uint16(45256), + 34: uint16(45257), + 35: uint16(45264), + 36: uint16(45265), + 37: uint16(45268), + 38: uint16(45272), + 39: uint16(45280), + 40: uint16(45285), + 41: uint16(45320), + 42: uint16(45321), + 43: uint16(45323), + 44: uint16(45324), + 45: uint16(45328), + 46: uint16(45330), + 47: uint16(45331), + 48: uint16(45336), + 49: uint16(45337), + 50: uint16(45339), + 51: uint16(45340), + 52: uint16(45341), + 53: uint16(45347), + 54: uint16(45348), + 55: uint16(45349), + 56: uint16(45352), + 57: uint16(45356), + 58: uint16(45364), + 59: uint16(45365), + 60: uint16(45367), + 61: uint16(45368), + 62: uint16(45369), + 63: uint16(45376), + 64: uint16(45377), + 65: uint16(45380), + 66: uint16(45384), + 67: uint16(45392), + 68: uint16(45393), + 69: uint16(45396), + 70: uint16(45397), + 71: uint16(45400), + 72: uint16(45404), + 73: uint16(45408), + 74: uint16(45432), + 75: uint16(45433), + 76: uint16(45436), + 77: uint16(45440), + 78: uint16(45442), + 79: uint16(45448), + 80: uint16(45449), + 81: uint16(45451), + 82: uint16(45453), + 83: uint16(45458), + 84: uint16(45459), + 85: uint16(45460), + 86: uint16(45464), + 87: uint16(45468), + 88: uint16(45480), + 89: uint16(45516), + 90: uint16(45520), + 91: uint16(45524), + 92: uint16(45532), + 93: uint16(45533), + }, + 19: { + 0: uint16(45535), + 1: uint16(45544), + 2: uint16(45545), + 3: uint16(45548), + 4: uint16(45552), + 5: uint16(45561), + 6: uint16(45563), + 7: uint16(45565), + 8: uint16(45572), + 9: uint16(45573), + 10: uint16(45576), + 11: uint16(45579), + 12: uint16(45580), + 13: uint16(45588), + 14: uint16(45589), + 15: uint16(45591), + 16: uint16(45593), + 17: uint16(45600), + 18: uint16(45620), + 19: uint16(45628), + 20: uint16(45656), + 21: uint16(45660), + 22: uint16(45664), + 23: uint16(45672), + 24: uint16(45673), + 25: uint16(45684), + 26: uint16(45685), + 27: uint16(45692), + 28: uint16(45700), + 29: uint16(45701), + 30: uint16(45705), + 31: uint16(45712), + 32: uint16(45713), + 33: uint16(45716), + 34: uint16(45720), + 35: uint16(45721), + 36: uint16(45722), + 37: uint16(45728), + 38: uint16(45729), + 39: uint16(45731), + 40: uint16(45733), + 41: uint16(45734), + 42: uint16(45738), + 43: uint16(45740), + 44: uint16(45744), + 45: uint16(45748), + 46: uint16(45768), + 47: uint16(45769), + 48: uint16(45772), + 49: uint16(45776), + 50: uint16(45778), + 51: uint16(45784), + 52: uint16(45785), + 53: uint16(45787), + 54: uint16(45789), + 55: uint16(45794), + 56: uint16(45796), + 57: uint16(45797), + 58: uint16(45798), + 59: uint16(45800), + 60: uint16(45803), + 61: uint16(45804), + 62: uint16(45805), + 63: uint16(45806), + 64: uint16(45807), + 65: uint16(45811), + 66: uint16(45812), + 67: uint16(45813), + 68: uint16(45815), + 69: uint16(45816), + 70: uint16(45817), + 71: uint16(45818), + 72: uint16(45819), + 73: uint16(45823), + 74: uint16(45824), + 75: uint16(45825), + 76: uint16(45828), + 77: uint16(45832), + 78: uint16(45840), + 79: uint16(45841), + 80: uint16(45843), + 81: uint16(45844), + 82: uint16(45845), + 83: uint16(45852), + 84: uint16(45908), + 85: uint16(45909), + 86: uint16(45910), + 87: uint16(45912), + 88: uint16(45915), + 89: uint16(45916), + 90: uint16(45918), + 91: uint16(45919), + 92: uint16(45924), + 93: uint16(45925), + }, + 20: { + 0: uint16(45927), + 1: uint16(45929), + 2: uint16(45931), + 3: uint16(45934), + 4: uint16(45936), + 5: uint16(45937), + 6: uint16(45940), + 7: uint16(45944), + 8: uint16(45952), + 9: uint16(45953), + 10: uint16(45955), + 11: uint16(45956), + 12: uint16(45957), + 13: uint16(45964), + 14: uint16(45968), + 15: uint16(45972), + 16: uint16(45984), + 17: uint16(45985), + 18: uint16(45992), + 19: uint16(45996), + 20: uint16(46020), + 21: uint16(46021), + 22: uint16(46024), + 23: uint16(46027), + 24: uint16(46028), + 25: uint16(46030), + 26: uint16(46032), + 27: uint16(46036), + 28: uint16(46037), + 29: uint16(46039), + 30: uint16(46041), + 31: uint16(46043), + 32: uint16(46045), + 33: uint16(46048), + 34: uint16(46052), + 35: uint16(46056), + 36: uint16(46076), + 37: uint16(46096), + 38: uint16(46104), + 39: uint16(46108), + 40: uint16(46112), + 41: uint16(46120), + 42: uint16(46121), + 43: uint16(46123), + 44: uint16(46132), + 45: uint16(46160), + 46: uint16(46161), + 47: uint16(46164), + 48: uint16(46168), + 49: uint16(46176), + 50: uint16(46177), + 51: uint16(46179), + 52: uint16(46181), + 53: uint16(46188), + 54: uint16(46208), + 55: uint16(46216), + 56: uint16(46237), + 57: uint16(46244), + 58: uint16(46248), + 59: uint16(46252), + 60: uint16(46261), + 61: uint16(46263), + 62: uint16(46265), + 63: uint16(46272), + 64: uint16(46276), + 65: uint16(46280), + 66: uint16(46288), + 67: uint16(46293), + 68: uint16(46300), + 69: uint16(46301), + 70: uint16(46304), + 71: uint16(46307), + 72: uint16(46308), + 73: uint16(46310), + 74: uint16(46316), + 75: uint16(46317), + 76: uint16(46319), + 77: uint16(46321), + 78: uint16(46328), + 79: uint16(46356), + 80: uint16(46357), + 81: uint16(46360), + 82: uint16(46363), + 83: uint16(46364), + 84: uint16(46372), + 85: uint16(46373), + 86: uint16(46375), + 87: uint16(46376), + 88: uint16(46377), + 89: uint16(46378), + 90: uint16(46384), + 91: uint16(46385), + 92: uint16(46388), + 93: uint16(46392), + }, + 21: { + 0: uint16(46400), + 1: uint16(46401), + 2: uint16(46403), + 3: uint16(46404), + 4: uint16(46405), + 5: uint16(46411), + 6: uint16(46412), + 7: uint16(46413), + 8: uint16(46416), + 9: uint16(46420), + 10: uint16(46428), + 11: uint16(46429), + 12: uint16(46431), + 13: uint16(46432), + 14: uint16(46433), + 15: uint16(46496), + 16: uint16(46497), + 17: uint16(46500), + 18: uint16(46504), + 19: uint16(46506), + 20: uint16(46507), + 21: uint16(46512), + 22: uint16(46513), + 23: uint16(46515), + 24: uint16(46516), + 25: uint16(46517), + 26: uint16(46523), + 27: uint16(46524), + 28: uint16(46525), + 29: uint16(46528), + 30: uint16(46532), + 31: uint16(46540), + 32: uint16(46541), + 33: uint16(46543), + 34: uint16(46544), + 35: uint16(46545), + 36: uint16(46552), + 37: uint16(46572), + 38: uint16(46608), + 39: uint16(46609), + 40: uint16(46612), + 41: uint16(46616), + 42: uint16(46629), + 43: uint16(46636), + 44: uint16(46644), + 45: uint16(46664), + 46: uint16(46692), + 47: uint16(46696), + 48: uint16(46748), + 49: uint16(46749), + 50: uint16(46752), + 51: uint16(46756), + 52: uint16(46763), + 53: uint16(46764), + 54: uint16(46769), + 55: uint16(46804), + 56: uint16(46832), + 57: uint16(46836), + 58: uint16(46840), + 59: uint16(46848), + 60: uint16(46849), + 61: uint16(46853), + 62: uint16(46888), + 63: uint16(46889), + 64: uint16(46892), + 65: uint16(46895), + 66: uint16(46896), + 67: uint16(46904), + 68: uint16(46905), + 69: uint16(46907), + 70: uint16(46916), + 71: uint16(46920), + 72: uint16(46924), + 73: uint16(46932), + 74: uint16(46933), + 75: uint16(46944), + 76: uint16(46948), + 77: uint16(46952), + 78: uint16(46960), + 79: uint16(46961), + 80: uint16(46963), + 81: uint16(46965), + 82: uint16(46972), + 83: uint16(46973), + 84: uint16(46976), + 85: uint16(46980), + 86: uint16(46988), + 87: uint16(46989), + 88: uint16(46991), + 89: uint16(46992), + 90: uint16(46993), + 91: uint16(46994), + 92: uint16(46998), + 93: uint16(46999), + }, + 22: { + 0: uint16(47000), + 1: uint16(47001), + 2: uint16(47004), + 3: uint16(47008), + 4: uint16(47016), + 5: uint16(47017), + 6: uint16(47019), + 7: uint16(47020), + 8: uint16(47021), + 9: uint16(47028), + 10: uint16(47029), + 11: uint16(47032), + 12: uint16(47047), + 13: uint16(47049), + 14: uint16(47084), + 15: uint16(47085), + 16: uint16(47088), + 17: uint16(47092), + 18: uint16(47100), + 19: uint16(47101), + 20: uint16(47103), + 21: uint16(47104), + 22: uint16(47105), + 23: uint16(47111), + 24: uint16(47112), + 25: uint16(47113), + 26: uint16(47116), + 27: uint16(47120), + 28: uint16(47128), + 29: uint16(47129), + 30: uint16(47131), + 31: uint16(47133), + 32: uint16(47140), + 33: uint16(47141), + 34: uint16(47144), + 35: uint16(47148), + 36: uint16(47156), + 37: uint16(47157), + 38: uint16(47159), + 39: uint16(47160), + 40: uint16(47161), + 41: uint16(47168), + 42: uint16(47172), + 43: uint16(47185), + 44: uint16(47187), + 45: uint16(47196), + 46: uint16(47197), + 47: uint16(47200), + 48: uint16(47204), + 49: uint16(47212), + 50: uint16(47213), + 51: uint16(47215), + 52: uint16(47217), + 53: uint16(47224), + 54: uint16(47228), + 55: uint16(47245), + 56: uint16(47272), + 57: uint16(47280), + 58: uint16(47284), + 59: uint16(47288), + 60: uint16(47296), + 61: uint16(47297), + 62: uint16(47299), + 63: uint16(47301), + 64: uint16(47308), + 65: uint16(47312), + 66: uint16(47316), + 67: uint16(47325), + 68: uint16(47327), + 69: uint16(47329), + 70: uint16(47336), + 71: uint16(47337), + 72: uint16(47340), + 73: uint16(47344), + 74: uint16(47352), + 75: uint16(47353), + 76: uint16(47355), + 77: uint16(47357), + 78: uint16(47364), + 79: uint16(47384), + 80: uint16(47392), + 81: uint16(47420), + 82: uint16(47421), + 83: uint16(47424), + 84: uint16(47428), + 85: uint16(47436), + 86: uint16(47439), + 87: uint16(47441), + 88: uint16(47448), + 89: uint16(47449), + 90: uint16(47452), + 91: uint16(47456), + 92: uint16(47464), + 93: uint16(47465), + }, + 23: { + 0: uint16(47467), + 1: uint16(47469), + 2: uint16(47476), + 3: uint16(47477), + 4: uint16(47480), + 5: uint16(47484), + 6: uint16(47492), + 7: uint16(47493), + 8: uint16(47495), + 9: uint16(47497), + 10: uint16(47498), + 11: uint16(47501), + 12: uint16(47502), + 13: uint16(47532), + 14: uint16(47533), + 15: uint16(47536), + 16: uint16(47540), + 17: uint16(47548), + 18: uint16(47549), + 19: uint16(47551), + 20: uint16(47553), + 21: uint16(47560), + 22: uint16(47561), + 23: uint16(47564), + 24: uint16(47566), + 25: uint16(47567), + 26: uint16(47568), + 27: uint16(47569), + 28: uint16(47570), + 29: uint16(47576), + 30: uint16(47577), + 31: uint16(47579), + 32: uint16(47581), + 33: uint16(47582), + 34: uint16(47585), + 35: uint16(47587), + 36: uint16(47588), + 37: uint16(47589), + 38: uint16(47592), + 39: uint16(47596), + 40: uint16(47604), + 41: uint16(47605), + 42: uint16(47607), + 43: uint16(47608), + 44: uint16(47609), + 45: uint16(47610), + 46: uint16(47616), + 47: uint16(47617), + 48: uint16(47624), + 49: uint16(47637), + 50: uint16(47672), + 51: uint16(47673), + 52: uint16(47676), + 53: uint16(47680), + 54: uint16(47682), + 55: uint16(47688), + 56: uint16(47689), + 57: uint16(47691), + 58: uint16(47693), + 59: uint16(47694), + 60: uint16(47699), + 61: uint16(47700), + 62: uint16(47701), + 63: uint16(47704), + 64: uint16(47708), + 65: uint16(47716), + 66: uint16(47717), + 67: uint16(47719), + 68: uint16(47720), + 69: uint16(47721), + 70: uint16(47728), + 71: uint16(47729), + 72: uint16(47732), + 73: uint16(47736), + 74: uint16(47747), + 75: uint16(47748), + 76: uint16(47749), + 77: uint16(47751), + 78: uint16(47756), + 79: uint16(47784), + 80: uint16(47785), + 81: uint16(47787), + 82: uint16(47788), + 83: uint16(47792), + 84: uint16(47794), + 85: uint16(47800), + 86: uint16(47801), + 87: uint16(47803), + 88: uint16(47805), + 89: uint16(47812), + 90: uint16(47816), + 91: uint16(47832), + 92: uint16(47833), + 93: uint16(47868), + }, + 24: { + 0: uint16(47872), + 1: uint16(47876), + 2: uint16(47885), + 3: uint16(47887), + 4: uint16(47889), + 5: uint16(47896), + 6: uint16(47900), + 7: uint16(47904), + 8: uint16(47913), + 9: uint16(47915), + 10: uint16(47924), + 11: uint16(47925), + 12: uint16(47926), + 13: uint16(47928), + 14: uint16(47931), + 15: uint16(47932), + 16: uint16(47933), + 17: uint16(47934), + 18: uint16(47940), + 19: uint16(47941), + 20: uint16(47943), + 21: uint16(47945), + 22: uint16(47949), + 23: uint16(47951), + 24: uint16(47952), + 25: uint16(47956), + 26: uint16(47960), + 27: uint16(47969), + 28: uint16(47971), + 29: uint16(47980), + 30: uint16(48008), + 31: uint16(48012), + 32: uint16(48016), + 33: uint16(48036), + 34: uint16(48040), + 35: uint16(48044), + 36: uint16(48052), + 37: uint16(48055), + 38: uint16(48064), + 39: uint16(48068), + 40: uint16(48072), + 41: uint16(48080), + 42: uint16(48083), + 43: uint16(48120), + 44: uint16(48121), + 45: uint16(48124), + 46: uint16(48127), + 47: uint16(48128), + 48: uint16(48130), + 49: uint16(48136), + 50: uint16(48137), + 51: uint16(48139), + 52: uint16(48140), + 53: uint16(48141), + 54: uint16(48143), + 55: uint16(48145), + 56: uint16(48148), + 57: uint16(48149), + 58: uint16(48150), + 59: uint16(48151), + 60: uint16(48152), + 61: uint16(48155), + 62: uint16(48156), + 63: uint16(48157), + 64: uint16(48158), + 65: uint16(48159), + 66: uint16(48164), + 67: uint16(48165), + 68: uint16(48167), + 69: uint16(48169), + 70: uint16(48173), + 71: uint16(48176), + 72: uint16(48177), + 73: uint16(48180), + 74: uint16(48184), + 75: uint16(48192), + 76: uint16(48193), + 77: uint16(48195), + 78: uint16(48196), + 79: uint16(48197), + 80: uint16(48201), + 81: uint16(48204), + 82: uint16(48205), + 83: uint16(48208), + 84: uint16(48221), + 85: uint16(48260), + 86: uint16(48261), + 87: uint16(48264), + 88: uint16(48267), + 89: uint16(48268), + 90: uint16(48270), + 91: uint16(48276), + 92: uint16(48277), + 93: uint16(48279), + }, + 25: { + 0: uint16(48281), + 1: uint16(48282), + 2: uint16(48288), + 3: uint16(48289), + 4: uint16(48292), + 5: uint16(48295), + 6: uint16(48296), + 7: uint16(48304), + 8: uint16(48305), + 9: uint16(48307), + 10: uint16(48308), + 11: uint16(48309), + 12: uint16(48316), + 13: uint16(48317), + 14: uint16(48320), + 15: uint16(48324), + 16: uint16(48333), + 17: uint16(48335), + 18: uint16(48336), + 19: uint16(48337), + 20: uint16(48341), + 21: uint16(48344), + 22: uint16(48348), + 23: uint16(48372), + 24: uint16(48373), + 25: uint16(48374), + 26: uint16(48376), + 27: uint16(48380), + 28: uint16(48388), + 29: uint16(48389), + 30: uint16(48391), + 31: uint16(48393), + 32: uint16(48400), + 33: uint16(48404), + 34: uint16(48420), + 35: uint16(48428), + 36: uint16(48448), + 37: uint16(48456), + 38: uint16(48457), + 39: uint16(48460), + 40: uint16(48464), + 41: uint16(48472), + 42: uint16(48473), + 43: uint16(48484), + 44: uint16(48488), + 45: uint16(48512), + 46: uint16(48513), + 47: uint16(48516), + 48: uint16(48519), + 49: uint16(48520), + 50: uint16(48521), + 51: uint16(48522), + 52: uint16(48528), + 53: uint16(48529), + 54: uint16(48531), + 55: uint16(48533), + 56: uint16(48537), + 57: uint16(48538), + 58: uint16(48540), + 59: uint16(48548), + 60: uint16(48560), + 61: uint16(48568), + 62: uint16(48596), + 63: uint16(48597), + 64: uint16(48600), + 65: uint16(48604), + 66: uint16(48617), + 67: uint16(48624), + 68: uint16(48628), + 69: uint16(48632), + 70: uint16(48640), + 71: uint16(48643), + 72: uint16(48645), + 73: uint16(48652), + 74: uint16(48653), + 75: uint16(48656), + 76: uint16(48660), + 77: uint16(48668), + 78: uint16(48669), + 79: uint16(48671), + 80: uint16(48708), + 81: uint16(48709), + 82: uint16(48712), + 83: uint16(48716), + 84: uint16(48718), + 85: uint16(48724), + 86: uint16(48725), + 87: uint16(48727), + 88: uint16(48729), + 89: uint16(48730), + 90: uint16(48731), + 91: uint16(48736), + 92: uint16(48737), + 93: uint16(48740), + }, + 26: { + 0: uint16(48744), + 1: uint16(48746), + 2: uint16(48752), + 3: uint16(48753), + 4: uint16(48755), + 5: uint16(48756), + 6: uint16(48757), + 7: uint16(48763), + 8: uint16(48764), + 9: uint16(48765), + 10: uint16(48768), + 11: uint16(48772), + 12: uint16(48780), + 13: uint16(48781), + 14: uint16(48783), + 15: uint16(48784), + 16: uint16(48785), + 17: uint16(48792), + 18: uint16(48793), + 19: uint16(48808), + 20: uint16(48848), + 21: uint16(48849), + 22: uint16(48852), + 23: uint16(48855), + 24: uint16(48856), + 25: uint16(48864), + 26: uint16(48867), + 27: uint16(48868), + 28: uint16(48869), + 29: uint16(48876), + 30: uint16(48897), + 31: uint16(48904), + 32: uint16(48905), + 33: uint16(48920), + 34: uint16(48921), + 35: uint16(48923), + 36: uint16(48924), + 37: uint16(48925), + 38: uint16(48960), + 39: uint16(48961), + 40: uint16(48964), + 41: uint16(48968), + 42: uint16(48976), + 43: uint16(48977), + 44: uint16(48981), + 45: uint16(49044), + 46: uint16(49072), + 47: uint16(49093), + 48: uint16(49100), + 49: uint16(49101), + 50: uint16(49104), + 51: uint16(49108), + 52: uint16(49116), + 53: uint16(49119), + 54: uint16(49121), + 55: uint16(49212), + 56: uint16(49233), + 57: uint16(49240), + 58: uint16(49244), + 59: uint16(49248), + 60: uint16(49256), + 61: uint16(49257), + 62: uint16(49296), + 63: uint16(49297), + 64: uint16(49300), + 65: uint16(49304), + 66: uint16(49312), + 67: uint16(49313), + 68: uint16(49315), + 69: uint16(49317), + 70: uint16(49324), + 71: uint16(49325), + 72: uint16(49327), + 73: uint16(49328), + 74: uint16(49331), + 75: uint16(49332), + 76: uint16(49333), + 77: uint16(49334), + 78: uint16(49340), + 79: uint16(49341), + 80: uint16(49343), + 81: uint16(49344), + 82: uint16(49345), + 83: uint16(49349), + 84: uint16(49352), + 85: uint16(49353), + 86: uint16(49356), + 87: uint16(49360), + 88: uint16(49368), + 89: uint16(49369), + 90: uint16(49371), + 91: uint16(49372), + 92: uint16(49373), + 93: uint16(49380), + }, + 27: { + 0: uint16(49381), + 1: uint16(49384), + 2: uint16(49388), + 3: uint16(49396), + 4: uint16(49397), + 5: uint16(49399), + 6: uint16(49401), + 7: uint16(49408), + 8: uint16(49412), + 9: uint16(49416), + 10: uint16(49424), + 11: uint16(49429), + 12: uint16(49436), + 13: uint16(49437), + 14: uint16(49438), + 15: uint16(49439), + 16: uint16(49440), + 17: uint16(49443), + 18: uint16(49444), + 19: uint16(49446), + 20: uint16(49447), + 21: uint16(49452), + 22: uint16(49453), + 23: uint16(49455), + 24: uint16(49456), + 25: uint16(49457), + 26: uint16(49462), + 27: uint16(49464), + 28: uint16(49465), + 29: uint16(49468), + 30: uint16(49472), + 31: uint16(49480), + 32: uint16(49481), + 33: uint16(49483), + 34: uint16(49484), + 35: uint16(49485), + 36: uint16(49492), + 37: uint16(49493), + 38: uint16(49496), + 39: uint16(49500), + 40: uint16(49508), + 41: uint16(49509), + 42: uint16(49511), + 43: uint16(49512), + 44: uint16(49513), + 45: uint16(49520), + 46: uint16(49524), + 47: uint16(49528), + 48: uint16(49541), + 49: uint16(49548), + 50: uint16(49549), + 51: uint16(49550), + 52: uint16(49552), + 53: uint16(49556), + 54: uint16(49558), + 55: uint16(49564), + 56: uint16(49565), + 57: uint16(49567), + 58: uint16(49569), + 59: uint16(49573), + 60: uint16(49576), + 61: uint16(49577), + 62: uint16(49580), + 63: uint16(49584), + 64: uint16(49597), + 65: uint16(49604), + 66: uint16(49608), + 67: uint16(49612), + 68: uint16(49620), + 69: uint16(49623), + 70: uint16(49624), + 71: uint16(49632), + 72: uint16(49636), + 73: uint16(49640), + 74: uint16(49648), + 75: uint16(49649), + 76: uint16(49651), + 77: uint16(49660), + 78: uint16(49661), + 79: uint16(49664), + 80: uint16(49668), + 81: uint16(49676), + 82: uint16(49677), + 83: uint16(49679), + 84: uint16(49681), + 85: uint16(49688), + 86: uint16(49689), + 87: uint16(49692), + 88: uint16(49695), + 89: uint16(49696), + 90: uint16(49704), + 91: uint16(49705), + 92: uint16(49707), + 93: uint16(49709), + }, + 28: { + 0: uint16(49711), + 1: uint16(49713), + 2: uint16(49714), + 3: uint16(49716), + 4: uint16(49736), + 5: uint16(49744), + 6: uint16(49745), + 7: uint16(49748), + 8: uint16(49752), + 9: uint16(49760), + 10: uint16(49765), + 11: uint16(49772), + 12: uint16(49773), + 13: uint16(49776), + 14: uint16(49780), + 15: uint16(49788), + 16: uint16(49789), + 17: uint16(49791), + 18: uint16(49793), + 19: uint16(49800), + 20: uint16(49801), + 21: uint16(49808), + 22: uint16(49816), + 23: uint16(49819), + 24: uint16(49821), + 25: uint16(49828), + 26: uint16(49829), + 27: uint16(49832), + 28: uint16(49836), + 29: uint16(49837), + 30: uint16(49844), + 31: uint16(49845), + 32: uint16(49847), + 33: uint16(49849), + 34: uint16(49884), + 35: uint16(49885), + 36: uint16(49888), + 37: uint16(49891), + 38: uint16(49892), + 39: uint16(49899), + 40: uint16(49900), + 41: uint16(49901), + 42: uint16(49903), + 43: uint16(49905), + 44: uint16(49910), + 45: uint16(49912), + 46: uint16(49913), + 47: uint16(49915), + 48: uint16(49916), + 49: uint16(49920), + 50: uint16(49928), + 51: uint16(49929), + 52: uint16(49932), + 53: uint16(49933), + 54: uint16(49939), + 55: uint16(49940), + 56: uint16(49941), + 57: uint16(49944), + 58: uint16(49948), + 59: uint16(49956), + 60: uint16(49957), + 61: uint16(49960), + 62: uint16(49961), + 63: uint16(49989), + 64: uint16(50024), + 65: uint16(50025), + 66: uint16(50028), + 67: uint16(50032), + 68: uint16(50034), + 69: uint16(50040), + 70: uint16(50041), + 71: uint16(50044), + 72: uint16(50045), + 73: uint16(50052), + 74: uint16(50056), + 75: uint16(50060), + 76: uint16(50112), + 77: uint16(50136), + 78: uint16(50137), + 79: uint16(50140), + 80: uint16(50143), + 81: uint16(50144), + 82: uint16(50146), + 83: uint16(50152), + 84: uint16(50153), + 85: uint16(50157), + 86: uint16(50164), + 87: uint16(50165), + 88: uint16(50168), + 89: uint16(50184), + 90: uint16(50192), + 91: uint16(50212), + 92: uint16(50220), + 93: uint16(50224), + }, + 29: { + 0: uint16(50228), + 1: uint16(50236), + 2: uint16(50237), + 3: uint16(50248), + 4: uint16(50276), + 5: uint16(50277), + 6: uint16(50280), + 7: uint16(50284), + 8: uint16(50292), + 9: uint16(50293), + 10: uint16(50297), + 11: uint16(50304), + 12: uint16(50324), + 13: uint16(50332), + 14: uint16(50360), + 15: uint16(50364), + 16: uint16(50409), + 17: uint16(50416), + 18: uint16(50417), + 19: uint16(50420), + 20: uint16(50424), + 21: uint16(50426), + 22: uint16(50431), + 23: uint16(50432), + 24: uint16(50433), + 25: uint16(50444), + 26: uint16(50448), + 27: uint16(50452), + 28: uint16(50460), + 29: uint16(50472), + 30: uint16(50473), + 31: uint16(50476), + 32: uint16(50480), + 33: uint16(50488), + 34: uint16(50489), + 35: uint16(50491), + 36: uint16(50493), + 37: uint16(50500), + 38: uint16(50501), + 39: uint16(50504), + 40: uint16(50505), + 41: uint16(50506), + 42: uint16(50508), + 43: uint16(50509), + 44: uint16(50510), + 45: uint16(50515), + 46: uint16(50516), + 47: uint16(50517), + 48: uint16(50519), + 49: uint16(50520), + 50: uint16(50521), + 51: uint16(50525), + 52: uint16(50526), + 53: uint16(50528), + 54: uint16(50529), + 55: uint16(50532), + 56: uint16(50536), + 57: uint16(50544), + 58: uint16(50545), + 59: uint16(50547), + 60: uint16(50548), + 61: uint16(50549), + 62: uint16(50556), + 63: uint16(50557), + 64: uint16(50560), + 65: uint16(50564), + 66: uint16(50567), + 67: uint16(50572), + 68: uint16(50573), + 69: uint16(50575), + 70: uint16(50577), + 71: uint16(50581), + 72: uint16(50583), + 73: uint16(50584), + 74: uint16(50588), + 75: uint16(50592), + 76: uint16(50601), + 77: uint16(50612), + 78: uint16(50613), + 79: uint16(50616), + 80: uint16(50617), + 81: uint16(50619), + 82: uint16(50620), + 83: uint16(50621), + 84: uint16(50622), + 85: uint16(50628), + 86: uint16(50629), + 87: uint16(50630), + 88: uint16(50631), + 89: uint16(50632), + 90: uint16(50633), + 91: uint16(50634), + 92: uint16(50636), + 93: uint16(50638), + }, + 30: { + 0: uint16(50640), + 1: uint16(50641), + 2: uint16(50644), + 3: uint16(50648), + 4: uint16(50656), + 5: uint16(50657), + 6: uint16(50659), + 7: uint16(50661), + 8: uint16(50668), + 9: uint16(50669), + 10: uint16(50670), + 11: uint16(50672), + 12: uint16(50676), + 13: uint16(50678), + 14: uint16(50679), + 15: uint16(50684), + 16: uint16(50685), + 17: uint16(50686), + 18: uint16(50687), + 19: uint16(50688), + 20: uint16(50689), + 21: uint16(50693), + 22: uint16(50694), + 23: uint16(50695), + 24: uint16(50696), + 25: uint16(50700), + 26: uint16(50704), + 27: uint16(50712), + 28: uint16(50713), + 29: uint16(50715), + 30: uint16(50716), + 31: uint16(50724), + 32: uint16(50725), + 33: uint16(50728), + 34: uint16(50732), + 35: uint16(50733), + 36: uint16(50734), + 37: uint16(50736), + 38: uint16(50739), + 39: uint16(50740), + 40: uint16(50741), + 41: uint16(50743), + 42: uint16(50745), + 43: uint16(50747), + 44: uint16(50752), + 45: uint16(50753), + 46: uint16(50756), + 47: uint16(50760), + 48: uint16(50768), + 49: uint16(50769), + 50: uint16(50771), + 51: uint16(50772), + 52: uint16(50773), + 53: uint16(50780), + 54: uint16(50781), + 55: uint16(50784), + 56: uint16(50796), + 57: uint16(50799), + 58: uint16(50801), + 59: uint16(50808), + 60: uint16(50809), + 61: uint16(50812), + 62: uint16(50816), + 63: uint16(50824), + 64: uint16(50825), + 65: uint16(50827), + 66: uint16(50829), + 67: uint16(50836), + 68: uint16(50837), + 69: uint16(50840), + 70: uint16(50844), + 71: uint16(50852), + 72: uint16(50853), + 73: uint16(50855), + 74: uint16(50857), + 75: uint16(50864), + 76: uint16(50865), + 77: uint16(50868), + 78: uint16(50872), + 79: uint16(50873), + 80: uint16(50874), + 81: uint16(50880), + 82: uint16(50881), + 83: uint16(50883), + 84: uint16(50885), + 85: uint16(50892), + 86: uint16(50893), + 87: uint16(50896), + 88: uint16(50900), + 89: uint16(50908), + 90: uint16(50909), + 91: uint16(50912), + 92: uint16(50913), + 93: uint16(50920), + }, + 31: { + 0: uint16(50921), + 1: uint16(50924), + 2: uint16(50928), + 3: uint16(50936), + 4: uint16(50937), + 5: uint16(50941), + 6: uint16(50948), + 7: uint16(50949), + 8: uint16(50952), + 9: uint16(50956), + 10: uint16(50964), + 11: uint16(50965), + 12: uint16(50967), + 13: uint16(50969), + 14: uint16(50976), + 15: uint16(50977), + 16: uint16(50980), + 17: uint16(50984), + 18: uint16(50992), + 19: uint16(50993), + 20: uint16(50995), + 21: uint16(50997), + 22: uint16(50999), + 23: uint16(51004), + 24: uint16(51005), + 25: uint16(51008), + 26: uint16(51012), + 27: uint16(51018), + 28: uint16(51020), + 29: uint16(51021), + 30: uint16(51023), + 31: uint16(51025), + 32: uint16(51026), + 33: uint16(51027), + 34: uint16(51028), + 35: uint16(51029), + 36: uint16(51030), + 37: uint16(51031), + 38: uint16(51032), + 39: uint16(51036), + 40: uint16(51040), + 41: uint16(51048), + 42: uint16(51051), + 43: uint16(51060), + 44: uint16(51061), + 45: uint16(51064), + 46: uint16(51068), + 47: uint16(51069), + 48: uint16(51070), + 49: uint16(51075), + 50: uint16(51076), + 51: uint16(51077), + 52: uint16(51079), + 53: uint16(51080), + 54: uint16(51081), + 55: uint16(51082), + 56: uint16(51086), + 57: uint16(51088), + 58: uint16(51089), + 59: uint16(51092), + 60: uint16(51094), + 61: uint16(51095), + 62: uint16(51096), + 63: uint16(51098), + 64: uint16(51104), + 65: uint16(51105), + 66: uint16(51107), + 67: uint16(51108), + 68: uint16(51109), + 69: uint16(51110), + 70: uint16(51116), + 71: uint16(51117), + 72: uint16(51120), + 73: uint16(51124), + 74: uint16(51132), + 75: uint16(51133), + 76: uint16(51135), + 77: uint16(51136), + 78: uint16(51137), + 79: uint16(51144), + 80: uint16(51145), + 81: uint16(51148), + 82: uint16(51150), + 83: uint16(51152), + 84: uint16(51160), + 85: uint16(51165), + 86: uint16(51172), + 87: uint16(51176), + 88: uint16(51180), + 89: uint16(51200), + 90: uint16(51201), + 91: uint16(51204), + 92: uint16(51208), + 93: uint16(51210), + }, + 32: { + 0: uint16(51216), + 1: uint16(51217), + 2: uint16(51219), + 3: uint16(51221), + 4: uint16(51222), + 5: uint16(51228), + 6: uint16(51229), + 7: uint16(51232), + 8: uint16(51236), + 9: uint16(51244), + 10: uint16(51245), + 11: uint16(51247), + 12: uint16(51249), + 13: uint16(51256), + 14: uint16(51260), + 15: uint16(51264), + 16: uint16(51272), + 17: uint16(51273), + 18: uint16(51276), + 19: uint16(51277), + 20: uint16(51284), + 21: uint16(51312), + 22: uint16(51313), + 23: uint16(51316), + 24: uint16(51320), + 25: uint16(51322), + 26: uint16(51328), + 27: uint16(51329), + 28: uint16(51331), + 29: uint16(51333), + 30: uint16(51334), + 31: uint16(51335), + 32: uint16(51339), + 33: uint16(51340), + 34: uint16(51341), + 35: uint16(51348), + 36: uint16(51357), + 37: uint16(51359), + 38: uint16(51361), + 39: uint16(51368), + 40: uint16(51388), + 41: uint16(51389), + 42: uint16(51396), + 43: uint16(51400), + 44: uint16(51404), + 45: uint16(51412), + 46: uint16(51413), + 47: uint16(51415), + 48: uint16(51417), + 49: uint16(51424), + 50: uint16(51425), + 51: uint16(51428), + 52: uint16(51445), + 53: uint16(51452), + 54: uint16(51453), + 55: uint16(51456), + 56: uint16(51460), + 57: uint16(51461), + 58: uint16(51462), + 59: uint16(51468), + 60: uint16(51469), + 61: uint16(51471), + 62: uint16(51473), + 63: uint16(51480), + 64: uint16(51500), + 65: uint16(51508), + 66: uint16(51536), + 67: uint16(51537), + 68: uint16(51540), + 69: uint16(51544), + 70: uint16(51552), + 71: uint16(51553), + 72: uint16(51555), + 73: uint16(51564), + 74: uint16(51568), + 75: uint16(51572), + 76: uint16(51580), + 77: uint16(51592), + 78: uint16(51593), + 79: uint16(51596), + 80: uint16(51600), + 81: uint16(51608), + 82: uint16(51609), + 83: uint16(51611), + 84: uint16(51613), + 85: uint16(51648), + 86: uint16(51649), + 87: uint16(51652), + 88: uint16(51655), + 89: uint16(51656), + 90: uint16(51658), + 91: uint16(51664), + 92: uint16(51665), + 93: uint16(51667), + }, + 33: { + 0: uint16(51669), + 1: uint16(51670), + 2: uint16(51673), + 3: uint16(51674), + 4: uint16(51676), + 5: uint16(51677), + 6: uint16(51680), + 7: uint16(51682), + 8: uint16(51684), + 9: uint16(51687), + 10: uint16(51692), + 11: uint16(51693), + 12: uint16(51695), + 13: uint16(51696), + 14: uint16(51697), + 15: uint16(51704), + 16: uint16(51705), + 17: uint16(51708), + 18: uint16(51712), + 19: uint16(51720), + 20: uint16(51721), + 21: uint16(51723), + 22: uint16(51724), + 23: uint16(51725), + 24: uint16(51732), + 25: uint16(51736), + 26: uint16(51753), + 27: uint16(51788), + 28: uint16(51789), + 29: uint16(51792), + 30: uint16(51796), + 31: uint16(51804), + 32: uint16(51805), + 33: uint16(51807), + 34: uint16(51808), + 35: uint16(51809), + 36: uint16(51816), + 37: uint16(51837), + 38: uint16(51844), + 39: uint16(51864), + 40: uint16(51900), + 41: uint16(51901), + 42: uint16(51904), + 43: uint16(51908), + 44: uint16(51916), + 45: uint16(51917), + 46: uint16(51919), + 47: uint16(51921), + 48: uint16(51923), + 49: uint16(51928), + 50: uint16(51929), + 51: uint16(51936), + 52: uint16(51948), + 53: uint16(51956), + 54: uint16(51976), + 55: uint16(51984), + 56: uint16(51988), + 57: uint16(51992), + 58: uint16(52000), + 59: uint16(52001), + 60: uint16(52033), + 61: uint16(52040), + 62: uint16(52041), + 63: uint16(52044), + 64: uint16(52048), + 65: uint16(52056), + 66: uint16(52057), + 67: uint16(52061), + 68: uint16(52068), + 69: uint16(52088), + 70: uint16(52089), + 71: uint16(52124), + 72: uint16(52152), + 73: uint16(52180), + 74: uint16(52196), + 75: uint16(52199), + 76: uint16(52201), + 77: uint16(52236), + 78: uint16(52237), + 79: uint16(52240), + 80: uint16(52244), + 81: uint16(52252), + 82: uint16(52253), + 83: uint16(52257), + 84: uint16(52258), + 85: uint16(52263), + 86: uint16(52264), + 87: uint16(52265), + 88: uint16(52268), + 89: uint16(52270), + 90: uint16(52272), + 91: uint16(52280), + 92: uint16(52281), + 93: uint16(52283), + }, + 34: { + 0: uint16(52284), + 1: uint16(52285), + 2: uint16(52286), + 3: uint16(52292), + 4: uint16(52293), + 5: uint16(52296), + 6: uint16(52300), + 7: uint16(52308), + 8: uint16(52309), + 9: uint16(52311), + 10: uint16(52312), + 11: uint16(52313), + 12: uint16(52320), + 13: uint16(52324), + 14: uint16(52326), + 15: uint16(52328), + 16: uint16(52336), + 17: uint16(52341), + 18: uint16(52376), + 19: uint16(52377), + 20: uint16(52380), + 21: uint16(52384), + 22: uint16(52392), + 23: uint16(52393), + 24: uint16(52395), + 25: uint16(52396), + 26: uint16(52397), + 27: uint16(52404), + 28: uint16(52405), + 29: uint16(52408), + 30: uint16(52412), + 31: uint16(52420), + 32: uint16(52421), + 33: uint16(52423), + 34: uint16(52425), + 35: uint16(52432), + 36: uint16(52436), + 37: uint16(52452), + 38: uint16(52460), + 39: uint16(52464), + 40: uint16(52481), + 41: uint16(52488), + 42: uint16(52489), + 43: uint16(52492), + 44: uint16(52496), + 45: uint16(52504), + 46: uint16(52505), + 47: uint16(52507), + 48: uint16(52509), + 49: uint16(52516), + 50: uint16(52520), + 51: uint16(52524), + 52: uint16(52537), + 53: uint16(52572), + 54: uint16(52576), + 55: uint16(52580), + 56: uint16(52588), + 57: uint16(52589), + 58: uint16(52591), + 59: uint16(52593), + 60: uint16(52600), + 61: uint16(52616), + 62: uint16(52628), + 63: uint16(52629), + 64: uint16(52632), + 65: uint16(52636), + 66: uint16(52644), + 67: uint16(52645), + 68: uint16(52647), + 69: uint16(52649), + 70: uint16(52656), + 71: uint16(52676), + 72: uint16(52684), + 73: uint16(52688), + 74: uint16(52712), + 75: uint16(52716), + 76: uint16(52720), + 77: uint16(52728), + 78: uint16(52729), + 79: uint16(52731), + 80: uint16(52733), + 81: uint16(52740), + 82: uint16(52744), + 83: uint16(52748), + 84: uint16(52756), + 85: uint16(52761), + 86: uint16(52768), + 87: uint16(52769), + 88: uint16(52772), + 89: uint16(52776), + 90: uint16(52784), + 91: uint16(52785), + 92: uint16(52787), + 93: uint16(52789), + }, + 35: { + 0: uint16(52824), + 1: uint16(52825), + 2: uint16(52828), + 3: uint16(52831), + 4: uint16(52832), + 5: uint16(52833), + 6: uint16(52840), + 7: uint16(52841), + 8: uint16(52843), + 9: uint16(52845), + 10: uint16(52852), + 11: uint16(52853), + 12: uint16(52856), + 13: uint16(52860), + 14: uint16(52868), + 15: uint16(52869), + 16: uint16(52871), + 17: uint16(52873), + 18: uint16(52880), + 19: uint16(52881), + 20: uint16(52884), + 21: uint16(52888), + 22: uint16(52896), + 23: uint16(52897), + 24: uint16(52899), + 25: uint16(52900), + 26: uint16(52901), + 27: uint16(52908), + 28: uint16(52909), + 29: uint16(52929), + 30: uint16(52964), + 31: uint16(52965), + 32: uint16(52968), + 33: uint16(52971), + 34: uint16(52972), + 35: uint16(52980), + 36: uint16(52981), + 37: uint16(52983), + 38: uint16(52984), + 39: uint16(52985), + 40: uint16(52992), + 41: uint16(52993), + 42: uint16(52996), + 43: uint16(53000), + 44: uint16(53008), + 45: uint16(53009), + 46: uint16(53011), + 47: uint16(53013), + 48: uint16(53020), + 49: uint16(53024), + 50: uint16(53028), + 51: uint16(53036), + 52: uint16(53037), + 53: uint16(53039), + 54: uint16(53040), + 55: uint16(53041), + 56: uint16(53048), + 57: uint16(53076), + 58: uint16(53077), + 59: uint16(53080), + 60: uint16(53084), + 61: uint16(53092), + 62: uint16(53093), + 63: uint16(53095), + 64: uint16(53097), + 65: uint16(53104), + 66: uint16(53105), + 67: uint16(53108), + 68: uint16(53112), + 69: uint16(53120), + 70: uint16(53125), + 71: uint16(53132), + 72: uint16(53153), + 73: uint16(53160), + 74: uint16(53168), + 75: uint16(53188), + 76: uint16(53216), + 77: uint16(53217), + 78: uint16(53220), + 79: uint16(53224), + 80: uint16(53232), + 81: uint16(53233), + 82: uint16(53235), + 83: uint16(53237), + 84: uint16(53244), + 85: uint16(53248), + 86: uint16(53252), + 87: uint16(53265), + 88: uint16(53272), + 89: uint16(53293), + 90: uint16(53300), + 91: uint16(53301), + 92: uint16(53304), + 93: uint16(53308), + }, + 36: { + 0: uint16(53316), + 1: uint16(53317), + 2: uint16(53319), + 3: uint16(53321), + 4: uint16(53328), + 5: uint16(53332), + 6: uint16(53336), + 7: uint16(53344), + 8: uint16(53356), + 9: uint16(53357), + 10: uint16(53360), + 11: uint16(53364), + 12: uint16(53372), + 13: uint16(53373), + 14: uint16(53377), + 15: uint16(53412), + 16: uint16(53413), + 17: uint16(53416), + 18: uint16(53420), + 19: uint16(53428), + 20: uint16(53429), + 21: uint16(53431), + 22: uint16(53433), + 23: uint16(53440), + 24: uint16(53441), + 25: uint16(53444), + 26: uint16(53448), + 27: uint16(53449), + 28: uint16(53456), + 29: uint16(53457), + 30: uint16(53459), + 31: uint16(53460), + 32: uint16(53461), + 33: uint16(53468), + 34: uint16(53469), + 35: uint16(53472), + 36: uint16(53476), + 37: uint16(53484), + 38: uint16(53485), + 39: uint16(53487), + 40: uint16(53488), + 41: uint16(53489), + 42: uint16(53496), + 43: uint16(53517), + 44: uint16(53552), + 45: uint16(53553), + 46: uint16(53556), + 47: uint16(53560), + 48: uint16(53562), + 49: uint16(53568), + 50: uint16(53569), + 51: uint16(53571), + 52: uint16(53572), + 53: uint16(53573), + 54: uint16(53580), + 55: uint16(53581), + 56: uint16(53584), + 57: uint16(53588), + 58: uint16(53596), + 59: uint16(53597), + 60: uint16(53599), + 61: uint16(53601), + 62: uint16(53608), + 63: uint16(53612), + 64: uint16(53628), + 65: uint16(53636), + 66: uint16(53640), + 67: uint16(53664), + 68: uint16(53665), + 69: uint16(53668), + 70: uint16(53672), + 71: uint16(53680), + 72: uint16(53681), + 73: uint16(53683), + 74: uint16(53685), + 75: uint16(53690), + 76: uint16(53692), + 77: uint16(53696), + 78: uint16(53720), + 79: uint16(53748), + 80: uint16(53752), + 81: uint16(53767), + 82: uint16(53769), + 83: uint16(53776), + 84: uint16(53804), + 85: uint16(53805), + 86: uint16(53808), + 87: uint16(53812), + 88: uint16(53820), + 89: uint16(53821), + 90: uint16(53823), + 91: uint16(53825), + 92: uint16(53832), + 93: uint16(53852), + }, + 37: { + 0: uint16(53860), + 1: uint16(53888), + 2: uint16(53889), + 3: uint16(53892), + 4: uint16(53896), + 5: uint16(53904), + 6: uint16(53905), + 7: uint16(53909), + 8: uint16(53916), + 9: uint16(53920), + 10: uint16(53924), + 11: uint16(53932), + 12: uint16(53937), + 13: uint16(53944), + 14: uint16(53945), + 15: uint16(53948), + 16: uint16(53951), + 17: uint16(53952), + 18: uint16(53954), + 19: uint16(53960), + 20: uint16(53961), + 21: uint16(53963), + 22: uint16(53972), + 23: uint16(53976), + 24: uint16(53980), + 25: uint16(53988), + 26: uint16(53989), + 27: uint16(54000), + 28: uint16(54001), + 29: uint16(54004), + 30: uint16(54008), + 31: uint16(54016), + 32: uint16(54017), + 33: uint16(54019), + 34: uint16(54021), + 35: uint16(54028), + 36: uint16(54029), + 37: uint16(54030), + 38: uint16(54032), + 39: uint16(54036), + 40: uint16(54038), + 41: uint16(54044), + 42: uint16(54045), + 43: uint16(54047), + 44: uint16(54048), + 45: uint16(54049), + 46: uint16(54053), + 47: uint16(54056), + 48: uint16(54057), + 49: uint16(54060), + 50: uint16(54064), + 51: uint16(54072), + 52: uint16(54073), + 53: uint16(54075), + 54: uint16(54076), + 55: uint16(54077), + 56: uint16(54084), + 57: uint16(54085), + 58: uint16(54140), + 59: uint16(54141), + 60: uint16(54144), + 61: uint16(54148), + 62: uint16(54156), + 63: uint16(54157), + 64: uint16(54159), + 65: uint16(54160), + 66: uint16(54161), + 67: uint16(54168), + 68: uint16(54169), + 69: uint16(54172), + 70: uint16(54176), + 71: uint16(54184), + 72: uint16(54185), + 73: uint16(54187), + 74: uint16(54189), + 75: uint16(54196), + 76: uint16(54200), + 77: uint16(54204), + 78: uint16(54212), + 79: uint16(54213), + 80: uint16(54216), + 81: uint16(54217), + 82: uint16(54224), + 83: uint16(54232), + 84: uint16(54241), + 85: uint16(54243), + 86: uint16(54252), + 87: uint16(54253), + 88: uint16(54256), + 89: uint16(54260), + 90: uint16(54268), + 91: uint16(54269), + 92: uint16(54271), + 93: uint16(54273), + }, + 38: { + 0: uint16(54280), + 1: uint16(54301), + 2: uint16(54336), + 3: uint16(54340), + 4: uint16(54364), + 5: uint16(54368), + 6: uint16(54372), + 7: uint16(54381), + 8: uint16(54383), + 9: uint16(54392), + 10: uint16(54393), + 11: uint16(54396), + 12: uint16(54399), + 13: uint16(54400), + 14: uint16(54402), + 15: uint16(54408), + 16: uint16(54409), + 17: uint16(54411), + 18: uint16(54413), + 19: uint16(54420), + 20: uint16(54441), + 21: uint16(54476), + 22: uint16(54480), + 23: uint16(54484), + 24: uint16(54492), + 25: uint16(54495), + 26: uint16(54504), + 27: uint16(54508), + 28: uint16(54512), + 29: uint16(54520), + 30: uint16(54523), + 31: uint16(54525), + 32: uint16(54532), + 33: uint16(54536), + 34: uint16(54540), + 35: uint16(54548), + 36: uint16(54549), + 37: uint16(54551), + 38: uint16(54588), + 39: uint16(54589), + 40: uint16(54592), + 41: uint16(54596), + 42: uint16(54604), + 43: uint16(54605), + 44: uint16(54607), + 45: uint16(54609), + 46: uint16(54616), + 47: uint16(54617), + 48: uint16(54620), + 49: uint16(54624), + 50: uint16(54629), + 51: uint16(54632), + 52: uint16(54633), + 53: uint16(54635), + 54: uint16(54637), + 55: uint16(54644), + 56: uint16(54645), + 57: uint16(54648), + 58: uint16(54652), + 59: uint16(54660), + 60: uint16(54661), + 61: uint16(54663), + 62: uint16(54664), + 63: uint16(54665), + 64: uint16(54672), + 65: uint16(54693), + 66: uint16(54728), + 67: uint16(54729), + 68: uint16(54732), + 69: uint16(54736), + 70: uint16(54738), + 71: uint16(54744), + 72: uint16(54745), + 73: uint16(54747), + 74: uint16(54749), + 75: uint16(54756), + 76: uint16(54757), + 77: uint16(54760), + 78: uint16(54764), + 79: uint16(54772), + 80: uint16(54773), + 81: uint16(54775), + 82: uint16(54777), + 83: uint16(54784), + 84: uint16(54785), + 85: uint16(54788), + 86: uint16(54792), + 87: uint16(54800), + 88: uint16(54801), + 89: uint16(54803), + 90: uint16(54804), + 91: uint16(54805), + 92: uint16(54812), + 93: uint16(54816), + }, + 39: { + 0: uint16(54820), + 1: uint16(54829), + 2: uint16(54840), + 3: uint16(54841), + 4: uint16(54844), + 5: uint16(54848), + 6: uint16(54853), + 7: uint16(54856), + 8: uint16(54857), + 9: uint16(54859), + 10: uint16(54861), + 11: uint16(54865), + 12: uint16(54868), + 13: uint16(54869), + 14: uint16(54872), + 15: uint16(54876), + 16: uint16(54887), + 17: uint16(54889), + 18: uint16(54896), + 19: uint16(54897), + 20: uint16(54900), + 21: uint16(54915), + 22: uint16(54917), + 23: uint16(54924), + 24: uint16(54925), + 25: uint16(54928), + 26: uint16(54932), + 27: uint16(54941), + 28: uint16(54943), + 29: uint16(54945), + 30: uint16(54952), + 31: uint16(54956), + 32: uint16(54960), + 33: uint16(54969), + 34: uint16(54971), + 35: uint16(54980), + 36: uint16(54981), + 37: uint16(54984), + 38: uint16(54988), + 39: uint16(54993), + 40: uint16(54996), + 41: uint16(54999), + 42: uint16(55001), + 43: uint16(55008), + 44: uint16(55012), + 45: uint16(55016), + 46: uint16(55024), + 47: uint16(55029), + 48: uint16(55036), + 49: uint16(55037), + 50: uint16(55040), + 51: uint16(55044), + 52: uint16(55057), + 53: uint16(55064), + 54: uint16(55065), + 55: uint16(55068), + 56: uint16(55072), + 57: uint16(55080), + 58: uint16(55081), + 59: uint16(55083), + 60: uint16(55085), + 61: uint16(55092), + 62: uint16(55093), + 63: uint16(55096), + 64: uint16(55100), + 65: uint16(55108), + 66: uint16(55111), + 67: uint16(55113), + 68: uint16(55120), + 69: uint16(55121), + 70: uint16(55124), + 71: uint16(55126), + 72: uint16(55127), + 73: uint16(55128), + 74: uint16(55129), + 75: uint16(55136), + 76: uint16(55137), + 77: uint16(55139), + 78: uint16(55141), + 79: uint16(55145), + 80: uint16(55148), + 81: uint16(55152), + 82: uint16(55156), + 83: uint16(55164), + 84: uint16(55165), + 85: uint16(55169), + 86: uint16(55176), + 87: uint16(55177), + 88: uint16(55180), + 89: uint16(55184), + 90: uint16(55192), + 91: uint16(55193), + 92: uint16(55195), + 93: uint16(55197), + }, + 40: {}, + 41: { + 0: uint16(20285), + 1: uint16(20339), + 2: uint16(20551), + 3: uint16(20729), + 4: uint16(21152), + 5: uint16(21487), + 6: uint16(21621), + 7: uint16(21733), + 8: uint16(22025), + 9: uint16(23233), + 10: uint16(23478), + 11: uint16(26247), + 12: uint16(26550), + 13: uint16(26551), + 14: uint16(26607), + 15: uint16(27468), + 16: uint16(29634), + 17: uint16(30146), + 18: uint16(31292), + 19: uint16(33499), + 20: uint16(33540), + 21: uint16(34903), + 22: uint16(34952), + 23: uint16(35382), + 24: uint16(36040), + 25: uint16(36303), + 26: uint16(36603), + 27: uint16(36838), + 28: uint16(39381), + 29: uint16(21051), + 30: uint16(21364), + 31: uint16(21508), + 32: uint16(24682), + 33: uint16(24932), + 34: uint16(27580), + 35: uint16(29647), + 36: uint16(33050), + 37: uint16(35258), + 38: uint16(35282), + 39: uint16(38307), + 40: uint16(20355), + 41: uint16(21002), + 42: uint16(22718), + 43: uint16(22904), + 44: uint16(23014), + 45: uint16(24178), + 46: uint16(24185), + 47: uint16(25031), + 48: uint16(25536), + 49: uint16(26438), + 50: uint16(26604), + 51: uint16(26751), + 52: uint16(28567), + 53: uint16(30286), + 54: uint16(30475), + 55: uint16(30965), + 56: uint16(31240), + 57: uint16(31487), + 58: uint16(31777), + 59: uint16(32925), + 60: uint16(33390), + 61: uint16(33393), + 62: uint16(35563), + 63: uint16(38291), + 64: uint16(20075), + 65: uint16(21917), + 66: uint16(26359), + 67: uint16(28212), + 68: uint16(30883), + 69: uint16(31469), + 70: uint16(33883), + 71: uint16(35088), + 72: uint16(34638), + 73: uint16(38824), + 74: uint16(21208), + 75: uint16(22350), + 76: uint16(22570), + 77: uint16(23884), + 78: uint16(24863), + 79: uint16(25022), + 80: uint16(25121), + 81: uint16(25954), + 82: uint16(26577), + 83: uint16(27204), + 84: uint16(28187), + 85: uint16(29976), + 86: uint16(30131), + 87: uint16(30435), + 88: uint16(30640), + 89: uint16(32058), + 90: uint16(37039), + 91: uint16(37969), + 92: uint16(37970), + 93: uint16(40853), + }, + 42: { + 0: uint16(21283), + 1: uint16(23724), + 2: uint16(30002), + 3: uint16(32987), + 4: uint16(37440), + 5: uint16(38296), + 6: uint16(21083), + 7: uint16(22536), + 8: uint16(23004), + 9: uint16(23713), + 10: uint16(23831), + 11: uint16(24247), + 12: uint16(24378), + 13: uint16(24394), + 14: uint16(24951), + 15: uint16(27743), + 16: uint16(30074), + 17: uint16(30086), + 18: uint16(31968), + 19: uint16(32115), + 20: uint16(32177), + 21: uint16(32652), + 22: uint16(33108), + 23: uint16(33313), + 24: uint16(34193), + 25: uint16(35137), + 26: uint16(35611), + 27: uint16(37628), + 28: uint16(38477), + 29: uint16(40007), + 30: uint16(20171), + 31: uint16(20215), + 32: uint16(20491), + 33: uint16(20977), + 34: uint16(22607), + 35: uint16(24887), + 36: uint16(24894), + 37: uint16(24936), + 38: uint16(25913), + 39: uint16(27114), + 40: uint16(28433), + 41: uint16(30117), + 42: uint16(30342), + 43: uint16(30422), + 44: uint16(31623), + 45: uint16(33445), + 46: uint16(33995), + 47: uint16(63744), + 48: uint16(37799), + 49: uint16(38283), + 50: uint16(21888), + 51: uint16(23458), + 52: uint16(22353), + 53: uint16(63745), + 54: uint16(31923), + 55: uint16(32697), + 56: uint16(37301), + 57: uint16(20520), + 58: uint16(21435), + 59: uint16(23621), + 60: uint16(24040), + 61: uint16(25298), + 62: uint16(25454), + 63: uint16(25818), + 64: uint16(25831), + 65: uint16(28192), + 66: uint16(28844), + 67: uint16(31067), + 68: uint16(36317), + 69: uint16(36382), + 70: uint16(63746), + 71: uint16(36989), + 72: uint16(37445), + 73: uint16(37624), + 74: uint16(20094), + 75: uint16(20214), + 76: uint16(20581), + 77: uint16(24062), + 78: uint16(24314), + 79: uint16(24838), + 80: uint16(26967), + 81: uint16(33137), + 82: uint16(34388), + 83: uint16(36423), + 84: uint16(37749), + 85: uint16(39467), + 86: uint16(20062), + 87: uint16(20625), + 88: uint16(26480), + 89: uint16(26688), + 90: uint16(20745), + 91: uint16(21133), + 92: uint16(21138), + 93: uint16(27298), + }, + 43: { + 0: uint16(30652), + 1: uint16(37392), + 2: uint16(40660), + 3: uint16(21163), + 4: uint16(24623), + 5: uint16(36850), + 6: uint16(20552), + 7: uint16(25001), + 8: uint16(25581), + 9: uint16(25802), + 10: uint16(26684), + 11: uint16(27268), + 12: uint16(28608), + 13: uint16(33160), + 14: uint16(35233), + 15: uint16(38548), + 16: uint16(22533), + 17: uint16(29309), + 18: uint16(29356), + 19: uint16(29956), + 20: uint16(32121), + 21: uint16(32365), + 22: uint16(32937), + 23: uint16(35211), + 24: uint16(35700), + 25: uint16(36963), + 26: uint16(40273), + 27: uint16(25225), + 28: uint16(27770), + 29: uint16(28500), + 30: uint16(32080), + 31: uint16(32570), + 32: uint16(35363), + 33: uint16(20860), + 34: uint16(24906), + 35: uint16(31645), + 36: uint16(35609), + 37: uint16(37463), + 38: uint16(37772), + 39: uint16(20140), + 40: uint16(20435), + 41: uint16(20510), + 42: uint16(20670), + 43: uint16(20742), + 44: uint16(21185), + 45: uint16(21197), + 46: uint16(21375), + 47: uint16(22384), + 48: uint16(22659), + 49: uint16(24218), + 50: uint16(24465), + 51: uint16(24950), + 52: uint16(25004), + 53: uint16(25806), + 54: uint16(25964), + 55: uint16(26223), + 56: uint16(26299), + 57: uint16(26356), + 58: uint16(26775), + 59: uint16(28039), + 60: uint16(28805), + 61: uint16(28913), + 62: uint16(29855), + 63: uint16(29861), + 64: uint16(29898), + 65: uint16(30169), + 66: uint16(30828), + 67: uint16(30956), + 68: uint16(31455), + 69: uint16(31478), + 70: uint16(32069), + 71: uint16(32147), + 72: uint16(32789), + 73: uint16(32831), + 74: uint16(33051), + 75: uint16(33686), + 76: uint16(35686), + 77: uint16(36629), + 78: uint16(36885), + 79: uint16(37857), + 80: uint16(38915), + 81: uint16(38968), + 82: uint16(39514), + 83: uint16(39912), + 84: uint16(20418), + 85: uint16(21843), + 86: uint16(22586), + 87: uint16(22865), + 88: uint16(23395), + 89: uint16(23622), + 90: uint16(24760), + 91: uint16(25106), + 92: uint16(26690), + 93: uint16(26800), + }, + 44: { + 0: uint16(26856), + 1: uint16(28330), + 2: uint16(30028), + 3: uint16(30328), + 4: uint16(30926), + 5: uint16(31293), + 6: uint16(31995), + 7: uint16(32363), + 8: uint16(32380), + 9: uint16(35336), + 10: uint16(35489), + 11: uint16(35903), + 12: uint16(38542), + 13: uint16(40388), + 14: uint16(21476), + 15: uint16(21481), + 16: uint16(21578), + 17: uint16(21617), + 18: uint16(22266), + 19: uint16(22993), + 20: uint16(23396), + 21: uint16(23611), + 22: uint16(24235), + 23: uint16(25335), + 24: uint16(25911), + 25: uint16(25925), + 26: uint16(25970), + 27: uint16(26272), + 28: uint16(26543), + 29: uint16(27073), + 30: uint16(27837), + 31: uint16(30204), + 32: uint16(30352), + 33: uint16(30590), + 34: uint16(31295), + 35: uint16(32660), + 36: uint16(32771), + 37: uint16(32929), + 38: uint16(33167), + 39: uint16(33510), + 40: uint16(33533), + 41: uint16(33776), + 42: uint16(34241), + 43: uint16(34865), + 44: uint16(34996), + 45: uint16(35493), + 46: uint16(63747), + 47: uint16(36764), + 48: uint16(37678), + 49: uint16(38599), + 50: uint16(39015), + 51: uint16(39640), + 52: uint16(40723), + 53: uint16(21741), + 54: uint16(26011), + 55: uint16(26354), + 56: uint16(26767), + 57: uint16(31296), + 58: uint16(35895), + 59: uint16(40288), + 60: uint16(22256), + 61: uint16(22372), + 62: uint16(23825), + 63: uint16(26118), + 64: uint16(26801), + 65: uint16(26829), + 66: uint16(28414), + 67: uint16(29736), + 68: uint16(34974), + 69: uint16(39908), + 70: uint16(27752), + 71: uint16(63748), + 72: uint16(39592), + 73: uint16(20379), + 74: uint16(20844), + 75: uint16(20849), + 76: uint16(21151), + 77: uint16(23380), + 78: uint16(24037), + 79: uint16(24656), + 80: uint16(24685), + 81: uint16(25329), + 82: uint16(25511), + 83: uint16(25915), + 84: uint16(29657), + 85: uint16(31354), + 86: uint16(34467), + 87: uint16(36002), + 88: uint16(38799), + 89: uint16(20018), + 90: uint16(23521), + 91: uint16(25096), + 92: uint16(26524), + 93: uint16(29916), + }, + 45: { + 0: uint16(31185), + 1: uint16(33747), + 2: uint16(35463), + 3: uint16(35506), + 4: uint16(36328), + 5: uint16(36942), + 6: uint16(37707), + 7: uint16(38982), + 8: uint16(24275), + 9: uint16(27112), + 10: uint16(34303), + 11: uint16(37101), + 12: uint16(63749), + 13: uint16(20896), + 14: uint16(23448), + 15: uint16(23532), + 16: uint16(24931), + 17: uint16(26874), + 18: uint16(27454), + 19: uint16(28748), + 20: uint16(29743), + 21: uint16(29912), + 22: uint16(31649), + 23: uint16(32592), + 24: uint16(33733), + 25: uint16(35264), + 26: uint16(36011), + 27: uint16(38364), + 28: uint16(39208), + 29: uint16(21038), + 30: uint16(24669), + 31: uint16(25324), + 32: uint16(36866), + 33: uint16(20362), + 34: uint16(20809), + 35: uint16(21281), + 36: uint16(22745), + 37: uint16(24291), + 38: uint16(26336), + 39: uint16(27960), + 40: uint16(28826), + 41: uint16(29378), + 42: uint16(29654), + 43: uint16(31568), + 44: uint16(33009), + 45: uint16(37979), + 46: uint16(21350), + 47: uint16(25499), + 48: uint16(32619), + 49: uint16(20054), + 50: uint16(20608), + 51: uint16(22602), + 52: uint16(22750), + 53: uint16(24618), + 54: uint16(24871), + 55: uint16(25296), + 56: uint16(27088), + 57: uint16(39745), + 58: uint16(23439), + 59: uint16(32024), + 60: uint16(32945), + 61: uint16(36703), + 62: uint16(20132), + 63: uint16(20689), + 64: uint16(21676), + 65: uint16(21932), + 66: uint16(23308), + 67: uint16(23968), + 68: uint16(24039), + 69: uint16(25898), + 70: uint16(25934), + 71: uint16(26657), + 72: uint16(27211), + 73: uint16(29409), + 74: uint16(30350), + 75: uint16(30703), + 76: uint16(32094), + 77: uint16(32761), + 78: uint16(33184), + 79: uint16(34126), + 80: uint16(34527), + 81: uint16(36611), + 82: uint16(36686), + 83: uint16(37066), + 84: uint16(39171), + 85: uint16(39509), + 86: uint16(39851), + 87: uint16(19992), + 88: uint16(20037), + 89: uint16(20061), + 90: uint16(20167), + 91: uint16(20465), + 92: uint16(20855), + 93: uint16(21246), + }, + 46: { + 0: uint16(21312), + 1: uint16(21475), + 2: uint16(21477), + 3: uint16(21646), + 4: uint16(22036), + 5: uint16(22389), + 6: uint16(22434), + 7: uint16(23495), + 8: uint16(23943), + 9: uint16(24272), + 10: uint16(25084), + 11: uint16(25304), + 12: uint16(25937), + 13: uint16(26552), + 14: uint16(26601), + 15: uint16(27083), + 16: uint16(27472), + 17: uint16(27590), + 18: uint16(27628), + 19: uint16(27714), + 20: uint16(28317), + 21: uint16(28792), + 22: uint16(29399), + 23: uint16(29590), + 24: uint16(29699), + 25: uint16(30655), + 26: uint16(30697), + 27: uint16(31350), + 28: uint16(32127), + 29: uint16(32777), + 30: uint16(33276), + 31: uint16(33285), + 32: uint16(33290), + 33: uint16(33503), + 34: uint16(34914), + 35: uint16(35635), + 36: uint16(36092), + 37: uint16(36544), + 38: uint16(36881), + 39: uint16(37041), + 40: uint16(37476), + 41: uint16(37558), + 42: uint16(39378), + 43: uint16(39493), + 44: uint16(40169), + 45: uint16(40407), + 46: uint16(40860), + 47: uint16(22283), + 48: uint16(23616), + 49: uint16(33738), + 50: uint16(38816), + 51: uint16(38827), + 52: uint16(40628), + 53: uint16(21531), + 54: uint16(31384), + 55: uint16(32676), + 56: uint16(35033), + 57: uint16(36557), + 58: uint16(37089), + 59: uint16(22528), + 60: uint16(23624), + 61: uint16(25496), + 62: uint16(31391), + 63: uint16(23470), + 64: uint16(24339), + 65: uint16(31353), + 66: uint16(31406), + 67: uint16(33422), + 68: uint16(36524), + 69: uint16(20518), + 70: uint16(21048), + 71: uint16(21240), + 72: uint16(21367), + 73: uint16(22280), + 74: uint16(25331), + 75: uint16(25458), + 76: uint16(27402), + 77: uint16(28099), + 78: uint16(30519), + 79: uint16(21413), + 80: uint16(29527), + 81: uint16(34152), + 82: uint16(36470), + 83: uint16(38357), + 84: uint16(26426), + 85: uint16(27331), + 86: uint16(28528), + 87: uint16(35437), + 88: uint16(36556), + 89: uint16(39243), + 90: uint16(63750), + 91: uint16(26231), + 92: uint16(27512), + 93: uint16(36020), + }, + 47: { + 0: uint16(39740), + 1: uint16(63751), + 2: uint16(21483), + 3: uint16(22317), + 4: uint16(22862), + 5: uint16(25542), + 6: uint16(27131), + 7: uint16(29674), + 8: uint16(30789), + 9: uint16(31418), + 10: uint16(31429), + 11: uint16(31998), + 12: uint16(33909), + 13: uint16(35215), + 14: uint16(36211), + 15: uint16(36917), + 16: uint16(38312), + 17: uint16(21243), + 18: uint16(22343), + 19: uint16(30023), + 20: uint16(31584), + 21: uint16(33740), + 22: uint16(37406), + 23: uint16(63752), + 24: uint16(27224), + 25: uint16(20811), + 26: uint16(21067), + 27: uint16(21127), + 28: uint16(25119), + 29: uint16(26840), + 30: uint16(26997), + 31: uint16(38553), + 32: uint16(20677), + 33: uint16(21156), + 34: uint16(21220), + 35: uint16(25027), + 36: uint16(26020), + 37: uint16(26681), + 38: uint16(27135), + 39: uint16(29822), + 40: uint16(31563), + 41: uint16(33465), + 42: uint16(33771), + 43: uint16(35250), + 44: uint16(35641), + 45: uint16(36817), + 46: uint16(39241), + 47: uint16(63753), + 48: uint16(20170), + 49: uint16(22935), + 50: uint16(25810), + 51: uint16(26129), + 52: uint16(27278), + 53: uint16(29748), + 54: uint16(31105), + 55: uint16(31165), + 56: uint16(33449), + 57: uint16(34942), + 58: uint16(34943), + 59: uint16(35167), + 60: uint16(63754), + 61: uint16(37670), + 62: uint16(20235), + 63: uint16(21450), + 64: uint16(24613), + 65: uint16(25201), + 66: uint16(27762), + 67: uint16(32026), + 68: uint16(32102), + 69: uint16(20120), + 70: uint16(20834), + 71: uint16(30684), + 72: uint16(32943), + 73: uint16(20225), + 74: uint16(20238), + 75: uint16(20854), + 76: uint16(20864), + 77: uint16(21980), + 78: uint16(22120), + 79: uint16(22331), + 80: uint16(22522), + 81: uint16(22524), + 82: uint16(22804), + 83: uint16(22855), + 84: uint16(22931), + 85: uint16(23492), + 86: uint16(23696), + 87: uint16(23822), + 88: uint16(24049), + 89: uint16(24190), + 90: uint16(24524), + 91: uint16(25216), + 92: uint16(26071), + 93: uint16(26083), + }, + 48: { + 0: uint16(26398), + 1: uint16(26399), + 2: uint16(26462), + 3: uint16(26827), + 4: uint16(26820), + 5: uint16(27231), + 6: uint16(27450), + 7: uint16(27683), + 8: uint16(27773), + 9: uint16(27778), + 10: uint16(28103), + 11: uint16(29592), + 12: uint16(29734), + 13: uint16(29738), + 14: uint16(29826), + 15: uint16(29859), + 16: uint16(30072), + 17: uint16(30079), + 18: uint16(30849), + 19: uint16(30959), + 20: uint16(31041), + 21: uint16(31047), + 22: uint16(31048), + 23: uint16(31098), + 24: uint16(31637), + 25: uint16(32000), + 26: uint16(32186), + 27: uint16(32648), + 28: uint16(32774), + 29: uint16(32813), + 30: uint16(32908), + 31: uint16(35352), + 32: uint16(35663), + 33: uint16(35912), + 34: uint16(36215), + 35: uint16(37665), + 36: uint16(37668), + 37: uint16(39138), + 38: uint16(39249), + 39: uint16(39438), + 40: uint16(39439), + 41: uint16(39525), + 42: uint16(40594), + 43: uint16(32202), + 44: uint16(20342), + 45: uint16(21513), + 46: uint16(25326), + 47: uint16(26708), + 48: uint16(37329), + 49: uint16(21931), + 50: uint16(20794), + 51: uint16(63755), + 52: uint16(63756), + 53: uint16(23068), + 54: uint16(25062), + 55: uint16(63757), + 56: uint16(25295), + 57: uint16(25343), + 58: uint16(63758), + 59: uint16(63759), + 60: uint16(63760), + 61: uint16(63761), + 62: uint16(63762), + 63: uint16(63763), + 64: uint16(37027), + 65: uint16(63764), + 66: uint16(63765), + 67: uint16(63766), + 68: uint16(63767), + 69: uint16(63768), + 70: uint16(35582), + 71: uint16(63769), + 72: uint16(63770), + 73: uint16(63771), + 74: uint16(63772), + 75: uint16(26262), + 76: uint16(63773), + 77: uint16(29014), + 78: uint16(63774), + 79: uint16(63775), + 80: uint16(38627), + 81: uint16(63776), + 82: uint16(25423), + 83: uint16(25466), + 84: uint16(21335), + 85: uint16(63777), + 86: uint16(26511), + 87: uint16(26976), + 88: uint16(28275), + 89: uint16(63778), + 90: uint16(30007), + 91: uint16(63779), + 92: uint16(63780), + 93: uint16(63781), + }, + 49: { + 0: uint16(32013), + 1: uint16(63782), + 2: uint16(63783), + 3: uint16(34930), + 4: uint16(22218), + 5: uint16(23064), + 6: uint16(63784), + 7: uint16(63785), + 8: uint16(63786), + 9: uint16(63787), + 10: uint16(63788), + 11: uint16(20035), + 12: uint16(63789), + 13: uint16(20839), + 14: uint16(22856), + 15: uint16(26608), + 16: uint16(32784), + 17: uint16(63790), + 18: uint16(22899), + 19: uint16(24180), + 20: uint16(25754), + 21: uint16(31178), + 22: uint16(24565), + 23: uint16(24684), + 24: uint16(25288), + 25: uint16(25467), + 26: uint16(23527), + 27: uint16(23511), + 28: uint16(21162), + 29: uint16(63791), + 30: uint16(22900), + 31: uint16(24361), + 32: uint16(24594), + 33: uint16(63792), + 34: uint16(63793), + 35: uint16(63794), + 36: uint16(29785), + 37: uint16(63795), + 38: uint16(63796), + 39: uint16(63797), + 40: uint16(63798), + 41: uint16(63799), + 42: uint16(63800), + 43: uint16(39377), + 44: uint16(63801), + 45: uint16(63802), + 46: uint16(63803), + 47: uint16(63804), + 48: uint16(63805), + 49: uint16(63806), + 50: uint16(63807), + 51: uint16(63808), + 52: uint16(63809), + 53: uint16(63810), + 54: uint16(63811), + 55: uint16(28611), + 56: uint16(63812), + 57: uint16(63813), + 58: uint16(33215), + 59: uint16(36786), + 60: uint16(24817), + 61: uint16(63814), + 62: uint16(63815), + 63: uint16(33126), + 64: uint16(63816), + 65: uint16(63817), + 66: uint16(23615), + 67: uint16(63818), + 68: uint16(63819), + 69: uint16(63820), + 70: uint16(63821), + 71: uint16(63822), + 72: uint16(63823), + 73: uint16(63824), + 74: uint16(63825), + 75: uint16(23273), + 76: uint16(35365), + 77: uint16(26491), + 78: uint16(32016), + 79: uint16(63826), + 80: uint16(63827), + 81: uint16(63828), + 82: uint16(63829), + 83: uint16(63830), + 84: uint16(63831), + 85: uint16(33021), + 86: uint16(63832), + 87: uint16(63833), + 88: uint16(23612), + 89: uint16(27877), + 90: uint16(21311), + 91: uint16(28346), + 92: uint16(22810), + 93: uint16(33590), + }, + 50: { + 0: uint16(20025), + 1: uint16(20150), + 2: uint16(20294), + 3: uint16(21934), + 4: uint16(22296), + 5: uint16(22727), + 6: uint16(24406), + 7: uint16(26039), + 8: uint16(26086), + 9: uint16(27264), + 10: uint16(27573), + 11: uint16(28237), + 12: uint16(30701), + 13: uint16(31471), + 14: uint16(31774), + 15: uint16(32222), + 16: uint16(34507), + 17: uint16(34962), + 18: uint16(37170), + 19: uint16(37723), + 20: uint16(25787), + 21: uint16(28606), + 22: uint16(29562), + 23: uint16(30136), + 24: uint16(36948), + 25: uint16(21846), + 26: uint16(22349), + 27: uint16(25018), + 28: uint16(25812), + 29: uint16(26311), + 30: uint16(28129), + 31: uint16(28251), + 32: uint16(28525), + 33: uint16(28601), + 34: uint16(30192), + 35: uint16(32835), + 36: uint16(33213), + 37: uint16(34113), + 38: uint16(35203), + 39: uint16(35527), + 40: uint16(35674), + 41: uint16(37663), + 42: uint16(27795), + 43: uint16(30035), + 44: uint16(31572), + 45: uint16(36367), + 46: uint16(36957), + 47: uint16(21776), + 48: uint16(22530), + 49: uint16(22616), + 50: uint16(24162), + 51: uint16(25095), + 52: uint16(25758), + 53: uint16(26848), + 54: uint16(30070), + 55: uint16(31958), + 56: uint16(34739), + 57: uint16(40680), + 58: uint16(20195), + 59: uint16(22408), + 60: uint16(22382), + 61: uint16(22823), + 62: uint16(23565), + 63: uint16(23729), + 64: uint16(24118), + 65: uint16(24453), + 66: uint16(25140), + 67: uint16(25825), + 68: uint16(29619), + 69: uint16(33274), + 70: uint16(34955), + 71: uint16(36024), + 72: uint16(38538), + 73: uint16(40667), + 74: uint16(23429), + 75: uint16(24503), + 76: uint16(24755), + 77: uint16(20498), + 78: uint16(20992), + 79: uint16(21040), + 80: uint16(22294), + 81: uint16(22581), + 82: uint16(22615), + 83: uint16(23566), + 84: uint16(23648), + 85: uint16(23798), + 86: uint16(23947), + 87: uint16(24230), + 88: uint16(24466), + 89: uint16(24764), + 90: uint16(25361), + 91: uint16(25481), + 92: uint16(25623), + 93: uint16(26691), + }, + 51: { + 0: uint16(26873), + 1: uint16(27330), + 2: uint16(28120), + 3: uint16(28193), + 4: uint16(28372), + 5: uint16(28644), + 6: uint16(29182), + 7: uint16(30428), + 8: uint16(30585), + 9: uint16(31153), + 10: uint16(31291), + 11: uint16(33796), + 12: uint16(35241), + 13: uint16(36077), + 14: uint16(36339), + 15: uint16(36424), + 16: uint16(36867), + 17: uint16(36884), + 18: uint16(36947), + 19: uint16(37117), + 20: uint16(37709), + 21: uint16(38518), + 22: uint16(38876), + 23: uint16(27602), + 24: uint16(28678), + 25: uint16(29272), + 26: uint16(29346), + 27: uint16(29544), + 28: uint16(30563), + 29: uint16(31167), + 30: uint16(31716), + 31: uint16(32411), + 32: uint16(35712), + 33: uint16(22697), + 34: uint16(24775), + 35: uint16(25958), + 36: uint16(26109), + 37: uint16(26302), + 38: uint16(27788), + 39: uint16(28958), + 40: uint16(29129), + 41: uint16(35930), + 42: uint16(38931), + 43: uint16(20077), + 44: uint16(31361), + 45: uint16(20189), + 46: uint16(20908), + 47: uint16(20941), + 48: uint16(21205), + 49: uint16(21516), + 50: uint16(24999), + 51: uint16(26481), + 52: uint16(26704), + 53: uint16(26847), + 54: uint16(27934), + 55: uint16(28540), + 56: uint16(30140), + 57: uint16(30643), + 58: uint16(31461), + 59: uint16(33012), + 60: uint16(33891), + 61: uint16(37509), + 62: uint16(20828), + 63: uint16(26007), + 64: uint16(26460), + 65: uint16(26515), + 66: uint16(30168), + 67: uint16(31431), + 68: uint16(33651), + 69: uint16(63834), + 70: uint16(35910), + 71: uint16(36887), + 72: uint16(38957), + 73: uint16(23663), + 74: uint16(33216), + 75: uint16(33434), + 76: uint16(36929), + 77: uint16(36975), + 78: uint16(37389), + 79: uint16(24471), + 80: uint16(23965), + 81: uint16(27225), + 82: uint16(29128), + 83: uint16(30331), + 84: uint16(31561), + 85: uint16(34276), + 86: uint16(35588), + 87: uint16(37159), + 88: uint16(39472), + 89: uint16(21895), + 90: uint16(25078), + 91: uint16(63835), + 92: uint16(30313), + 93: uint16(32645), + }, + 52: { + 0: uint16(34367), + 1: uint16(34746), + 2: uint16(35064), + 3: uint16(37007), + 4: uint16(63836), + 5: uint16(27931), + 6: uint16(28889), + 7: uint16(29662), + 8: uint16(32097), + 9: uint16(33853), + 10: uint16(63837), + 11: uint16(37226), + 12: uint16(39409), + 13: uint16(63838), + 14: uint16(20098), + 15: uint16(21365), + 16: uint16(27396), + 17: uint16(27410), + 18: uint16(28734), + 19: uint16(29211), + 20: uint16(34349), + 21: uint16(40478), + 22: uint16(21068), + 23: uint16(36771), + 24: uint16(23888), + 25: uint16(25829), + 26: uint16(25900), + 27: uint16(27414), + 28: uint16(28651), + 29: uint16(31811), + 30: uint16(32412), + 31: uint16(34253), + 32: uint16(35172), + 33: uint16(35261), + 34: uint16(25289), + 35: uint16(33240), + 36: uint16(34847), + 37: uint16(24266), + 38: uint16(26391), + 39: uint16(28010), + 40: uint16(29436), + 41: uint16(29701), + 42: uint16(29807), + 43: uint16(34690), + 44: uint16(37086), + 45: uint16(20358), + 46: uint16(23821), + 47: uint16(24480), + 48: uint16(33802), + 49: uint16(20919), + 50: uint16(25504), + 51: uint16(30053), + 52: uint16(20142), + 53: uint16(20486), + 54: uint16(20841), + 55: uint16(20937), + 56: uint16(26753), + 57: uint16(27153), + 58: uint16(31918), + 59: uint16(31921), + 60: uint16(31975), + 61: uint16(33391), + 62: uint16(35538), + 63: uint16(36635), + 64: uint16(37327), + 65: uint16(20406), + 66: uint16(20791), + 67: uint16(21237), + 68: uint16(21570), + 69: uint16(24300), + 70: uint16(24942), + 71: uint16(25150), + 72: uint16(26053), + 73: uint16(27354), + 74: uint16(28670), + 75: uint16(31018), + 76: uint16(34268), + 77: uint16(34851), + 78: uint16(38317), + 79: uint16(39522), + 80: uint16(39530), + 81: uint16(40599), + 82: uint16(40654), + 83: uint16(21147), + 84: uint16(26310), + 85: uint16(27511), + 86: uint16(28701), + 87: uint16(31019), + 88: uint16(36706), + 89: uint16(38722), + 90: uint16(24976), + 91: uint16(25088), + 92: uint16(25891), + 93: uint16(28451), + }, + 53: { + 0: uint16(29001), + 1: uint16(29833), + 2: uint16(32244), + 3: uint16(32879), + 4: uint16(34030), + 5: uint16(36646), + 6: uint16(36899), + 7: uint16(37706), + 8: uint16(20925), + 9: uint16(21015), + 10: uint16(21155), + 11: uint16(27916), + 12: uint16(28872), + 13: uint16(35010), + 14: uint16(24265), + 15: uint16(25986), + 16: uint16(27566), + 17: uint16(28610), + 18: uint16(31806), + 19: uint16(29557), + 20: uint16(20196), + 21: uint16(20278), + 22: uint16(22265), + 23: uint16(63839), + 24: uint16(23738), + 25: uint16(23994), + 26: uint16(24604), + 27: uint16(29618), + 28: uint16(31533), + 29: uint16(32666), + 30: uint16(32718), + 31: uint16(32838), + 32: uint16(36894), + 33: uint16(37428), + 34: uint16(38646), + 35: uint16(38728), + 36: uint16(38936), + 37: uint16(40801), + 38: uint16(20363), + 39: uint16(28583), + 40: uint16(31150), + 41: uint16(37300), + 42: uint16(38583), + 43: uint16(21214), + 44: uint16(63840), + 45: uint16(25736), + 46: uint16(25796), + 47: uint16(27347), + 48: uint16(28510), + 49: uint16(28696), + 50: uint16(29200), + 51: uint16(30439), + 52: uint16(32769), + 53: uint16(34310), + 54: uint16(34396), + 55: uint16(36335), + 56: uint16(36613), + 57: uint16(38706), + 58: uint16(39791), + 59: uint16(40442), + 60: uint16(40565), + 61: uint16(30860), + 62: uint16(31103), + 63: uint16(32160), + 64: uint16(33737), + 65: uint16(37636), + 66: uint16(40575), + 67: uint16(40595), + 68: uint16(35542), + 69: uint16(22751), + 70: uint16(24324), + 71: uint16(26407), + 72: uint16(28711), + 73: uint16(29903), + 74: uint16(31840), + 75: uint16(32894), + 76: uint16(20769), + 77: uint16(28712), + 78: uint16(29282), + 79: uint16(30922), + 80: uint16(36034), + 81: uint16(36058), + 82: uint16(36084), + 83: uint16(38647), + 84: uint16(20102), + 85: uint16(20698), + 86: uint16(23534), + 87: uint16(24278), + 88: uint16(26009), + 89: uint16(29134), + 90: uint16(30274), + 91: uint16(30637), + 92: uint16(32842), + 93: uint16(34044), + }, + 54: { + 0: uint16(36988), + 1: uint16(39719), + 2: uint16(40845), + 3: uint16(22744), + 4: uint16(23105), + 5: uint16(23650), + 6: uint16(27155), + 7: uint16(28122), + 8: uint16(28431), + 9: uint16(30267), + 10: uint16(32047), + 11: uint16(32311), + 12: uint16(34078), + 13: uint16(35128), + 14: uint16(37860), + 15: uint16(38475), + 16: uint16(21129), + 17: uint16(26066), + 18: uint16(26611), + 19: uint16(27060), + 20: uint16(27969), + 21: uint16(28316), + 22: uint16(28687), + 23: uint16(29705), + 24: uint16(29792), + 25: uint16(30041), + 26: uint16(30244), + 27: uint16(30827), + 28: uint16(35628), + 29: uint16(39006), + 30: uint16(20845), + 31: uint16(25134), + 32: uint16(38520), + 33: uint16(20374), + 34: uint16(20523), + 35: uint16(23833), + 36: uint16(28138), + 37: uint16(32184), + 38: uint16(36650), + 39: uint16(24459), + 40: uint16(24900), + 41: uint16(26647), + 42: uint16(63841), + 43: uint16(38534), + 44: uint16(21202), + 45: uint16(32907), + 46: uint16(20956), + 47: uint16(20940), + 48: uint16(26974), + 49: uint16(31260), + 50: uint16(32190), + 51: uint16(33777), + 52: uint16(38517), + 53: uint16(20442), + 54: uint16(21033), + 55: uint16(21400), + 56: uint16(21519), + 57: uint16(21774), + 58: uint16(23653), + 59: uint16(24743), + 60: uint16(26446), + 61: uint16(26792), + 62: uint16(28012), + 63: uint16(29313), + 64: uint16(29432), + 65: uint16(29702), + 66: uint16(29827), + 67: uint16(63842), + 68: uint16(30178), + 69: uint16(31852), + 70: uint16(32633), + 71: uint16(32696), + 72: uint16(33673), + 73: uint16(35023), + 74: uint16(35041), + 75: uint16(37324), + 76: uint16(37328), + 77: uint16(38626), + 78: uint16(39881), + 79: uint16(21533), + 80: uint16(28542), + 81: uint16(29136), + 82: uint16(29848), + 83: uint16(34298), + 84: uint16(36522), + 85: uint16(38563), + 86: uint16(40023), + 87: uint16(40607), + 88: uint16(26519), + 89: uint16(28107), + 90: uint16(29747), + 91: uint16(33256), + 92: uint16(38678), + 93: uint16(30764), + }, + 55: { + 0: uint16(31435), + 1: uint16(31520), + 2: uint16(31890), + 3: uint16(25705), + 4: uint16(29802), + 5: uint16(30194), + 6: uint16(30908), + 7: uint16(30952), + 8: uint16(39340), + 9: uint16(39764), + 10: uint16(40635), + 11: uint16(23518), + 12: uint16(24149), + 13: uint16(28448), + 14: uint16(33180), + 15: uint16(33707), + 16: uint16(37000), + 17: uint16(19975), + 18: uint16(21325), + 19: uint16(23081), + 20: uint16(24018), + 21: uint16(24398), + 22: uint16(24930), + 23: uint16(25405), + 24: uint16(26217), + 25: uint16(26364), + 26: uint16(28415), + 27: uint16(28459), + 28: uint16(28771), + 29: uint16(30622), + 30: uint16(33836), + 31: uint16(34067), + 32: uint16(34875), + 33: uint16(36627), + 34: uint16(39237), + 35: uint16(39995), + 36: uint16(21788), + 37: uint16(25273), + 38: uint16(26411), + 39: uint16(27819), + 40: uint16(33545), + 41: uint16(35178), + 42: uint16(38778), + 43: uint16(20129), + 44: uint16(22916), + 45: uint16(24536), + 46: uint16(24537), + 47: uint16(26395), + 48: uint16(32178), + 49: uint16(32596), + 50: uint16(33426), + 51: uint16(33579), + 52: uint16(33725), + 53: uint16(36638), + 54: uint16(37017), + 55: uint16(22475), + 56: uint16(22969), + 57: uint16(23186), + 58: uint16(23504), + 59: uint16(26151), + 60: uint16(26522), + 61: uint16(26757), + 62: uint16(27599), + 63: uint16(29028), + 64: uint16(32629), + 65: uint16(36023), + 66: uint16(36067), + 67: uint16(36993), + 68: uint16(39749), + 69: uint16(33032), + 70: uint16(35978), + 71: uint16(38476), + 72: uint16(39488), + 73: uint16(40613), + 74: uint16(23391), + 75: uint16(27667), + 76: uint16(29467), + 77: uint16(30450), + 78: uint16(30431), + 79: uint16(33804), + 80: uint16(20906), + 81: uint16(35219), + 82: uint16(20813), + 83: uint16(20885), + 84: uint16(21193), + 85: uint16(26825), + 86: uint16(27796), + 87: uint16(30468), + 88: uint16(30496), + 89: uint16(32191), + 90: uint16(32236), + 91: uint16(38754), + 92: uint16(40629), + 93: uint16(28357), + }, + 56: { + 0: uint16(34065), + 1: uint16(20901), + 2: uint16(21517), + 3: uint16(21629), + 4: uint16(26126), + 5: uint16(26269), + 6: uint16(26919), + 7: uint16(28319), + 8: uint16(30399), + 9: uint16(30609), + 10: uint16(33559), + 11: uint16(33986), + 12: uint16(34719), + 13: uint16(37225), + 14: uint16(37528), + 15: uint16(40180), + 16: uint16(34946), + 17: uint16(20398), + 18: uint16(20882), + 19: uint16(21215), + 20: uint16(22982), + 21: uint16(24125), + 22: uint16(24917), + 23: uint16(25720), + 24: uint16(25721), + 25: uint16(26286), + 26: uint16(26576), + 27: uint16(27169), + 28: uint16(27597), + 29: uint16(27611), + 30: uint16(29279), + 31: uint16(29281), + 32: uint16(29761), + 33: uint16(30520), + 34: uint16(30683), + 35: uint16(32791), + 36: uint16(33468), + 37: uint16(33541), + 38: uint16(35584), + 39: uint16(35624), + 40: uint16(35980), + 41: uint16(26408), + 42: uint16(27792), + 43: uint16(29287), + 44: uint16(30446), + 45: uint16(30566), + 46: uint16(31302), + 47: uint16(40361), + 48: uint16(27519), + 49: uint16(27794), + 50: uint16(22818), + 51: uint16(26406), + 52: uint16(33945), + 53: uint16(21359), + 54: uint16(22675), + 55: uint16(22937), + 56: uint16(24287), + 57: uint16(25551), + 58: uint16(26164), + 59: uint16(26483), + 60: uint16(28218), + 61: uint16(29483), + 62: uint16(31447), + 63: uint16(33495), + 64: uint16(37672), + 65: uint16(21209), + 66: uint16(24043), + 67: uint16(25006), + 68: uint16(25035), + 69: uint16(25098), + 70: uint16(25287), + 71: uint16(25771), + 72: uint16(26080), + 73: uint16(26969), + 74: uint16(27494), + 75: uint16(27595), + 76: uint16(28961), + 77: uint16(29687), + 78: uint16(30045), + 79: uint16(32326), + 80: uint16(33310), + 81: uint16(33538), + 82: uint16(34154), + 83: uint16(35491), + 84: uint16(36031), + 85: uint16(38695), + 86: uint16(40289), + 87: uint16(22696), + 88: uint16(40664), + 89: uint16(20497), + 90: uint16(21006), + 91: uint16(21563), + 92: uint16(21839), + 93: uint16(25991), + }, + 57: { + 0: uint16(27766), + 1: uint16(32010), + 2: uint16(32011), + 3: uint16(32862), + 4: uint16(34442), + 5: uint16(38272), + 6: uint16(38639), + 7: uint16(21247), + 8: uint16(27797), + 9: uint16(29289), + 10: uint16(21619), + 11: uint16(23194), + 12: uint16(23614), + 13: uint16(23883), + 14: uint16(24396), + 15: uint16(24494), + 16: uint16(26410), + 17: uint16(26806), + 18: uint16(26979), + 19: uint16(28220), + 20: uint16(28228), + 21: uint16(30473), + 22: uint16(31859), + 23: uint16(32654), + 24: uint16(34183), + 25: uint16(35598), + 26: uint16(36855), + 27: uint16(38753), + 28: uint16(40692), + 29: uint16(23735), + 30: uint16(24758), + 31: uint16(24845), + 32: uint16(25003), + 33: uint16(25935), + 34: uint16(26107), + 35: uint16(26108), + 36: uint16(27665), + 37: uint16(27887), + 38: uint16(29599), + 39: uint16(29641), + 40: uint16(32225), + 41: uint16(38292), + 42: uint16(23494), + 43: uint16(34588), + 44: uint16(35600), + 45: uint16(21085), + 46: uint16(21338), + 47: uint16(25293), + 48: uint16(25615), + 49: uint16(25778), + 50: uint16(26420), + 51: uint16(27192), + 52: uint16(27850), + 53: uint16(29632), + 54: uint16(29854), + 55: uint16(31636), + 56: uint16(31893), + 57: uint16(32283), + 58: uint16(33162), + 59: uint16(33334), + 60: uint16(34180), + 61: uint16(36843), + 62: uint16(38649), + 63: uint16(39361), + 64: uint16(20276), + 65: uint16(21322), + 66: uint16(21453), + 67: uint16(21467), + 68: uint16(25292), + 69: uint16(25644), + 70: uint16(25856), + 71: uint16(26001), + 72: uint16(27075), + 73: uint16(27886), + 74: uint16(28504), + 75: uint16(29677), + 76: uint16(30036), + 77: uint16(30242), + 78: uint16(30436), + 79: uint16(30460), + 80: uint16(30928), + 81: uint16(30971), + 82: uint16(31020), + 83: uint16(32070), + 84: uint16(33324), + 85: uint16(34784), + 86: uint16(36820), + 87: uint16(38930), + 88: uint16(39151), + 89: uint16(21187), + 90: uint16(25300), + 91: uint16(25765), + 92: uint16(28196), + 93: uint16(28497), + }, + 58: { + 0: uint16(30332), + 1: uint16(36299), + 2: uint16(37297), + 3: uint16(37474), + 4: uint16(39662), + 5: uint16(39747), + 6: uint16(20515), + 7: uint16(20621), + 8: uint16(22346), + 9: uint16(22952), + 10: uint16(23592), + 11: uint16(24135), + 12: uint16(24439), + 13: uint16(25151), + 14: uint16(25918), + 15: uint16(26041), + 16: uint16(26049), + 17: uint16(26121), + 18: uint16(26507), + 19: uint16(27036), + 20: uint16(28354), + 21: uint16(30917), + 22: uint16(32033), + 23: uint16(32938), + 24: uint16(33152), + 25: uint16(33323), + 26: uint16(33459), + 27: uint16(33953), + 28: uint16(34444), + 29: uint16(35370), + 30: uint16(35607), + 31: uint16(37030), + 32: uint16(38450), + 33: uint16(40848), + 34: uint16(20493), + 35: uint16(20467), + 36: uint16(63843), + 37: uint16(22521), + 38: uint16(24472), + 39: uint16(25308), + 40: uint16(25490), + 41: uint16(26479), + 42: uint16(28227), + 43: uint16(28953), + 44: uint16(30403), + 45: uint16(32972), + 46: uint16(32986), + 47: uint16(35060), + 48: uint16(35061), + 49: uint16(35097), + 50: uint16(36064), + 51: uint16(36649), + 52: uint16(37197), + 53: uint16(38506), + 54: uint16(20271), + 55: uint16(20336), + 56: uint16(24091), + 57: uint16(26575), + 58: uint16(26658), + 59: uint16(30333), + 60: uint16(30334), + 61: uint16(39748), + 62: uint16(24161), + 63: uint16(27146), + 64: uint16(29033), + 65: uint16(29140), + 66: uint16(30058), + 67: uint16(63844), + 68: uint16(32321), + 69: uint16(34115), + 70: uint16(34281), + 71: uint16(39132), + 72: uint16(20240), + 73: uint16(31567), + 74: uint16(32624), + 75: uint16(38309), + 76: uint16(20961), + 77: uint16(24070), + 78: uint16(26805), + 79: uint16(27710), + 80: uint16(27726), + 81: uint16(27867), + 82: uint16(29359), + 83: uint16(31684), + 84: uint16(33539), + 85: uint16(27861), + 86: uint16(29754), + 87: uint16(20731), + 88: uint16(21128), + 89: uint16(22721), + 90: uint16(25816), + 91: uint16(27287), + 92: uint16(29863), + 93: uint16(30294), + }, + 59: { + 0: uint16(30887), + 1: uint16(34327), + 2: uint16(38370), + 3: uint16(38713), + 4: uint16(63845), + 5: uint16(21342), + 6: uint16(24321), + 7: uint16(35722), + 8: uint16(36776), + 9: uint16(36783), + 10: uint16(37002), + 11: uint16(21029), + 12: uint16(30629), + 13: uint16(40009), + 14: uint16(40712), + 15: uint16(19993), + 16: uint16(20482), + 17: uint16(20853), + 18: uint16(23643), + 19: uint16(24183), + 20: uint16(26142), + 21: uint16(26170), + 22: uint16(26564), + 23: uint16(26821), + 24: uint16(28851), + 25: uint16(29953), + 26: uint16(30149), + 27: uint16(31177), + 28: uint16(31453), + 29: uint16(36647), + 30: uint16(39200), + 31: uint16(39432), + 32: uint16(20445), + 33: uint16(22561), + 34: uint16(22577), + 35: uint16(23542), + 36: uint16(26222), + 37: uint16(27493), + 38: uint16(27921), + 39: uint16(28282), + 40: uint16(28541), + 41: uint16(29668), + 42: uint16(29995), + 43: uint16(33769), + 44: uint16(35036), + 45: uint16(35091), + 46: uint16(35676), + 47: uint16(36628), + 48: uint16(20239), + 49: uint16(20693), + 50: uint16(21264), + 51: uint16(21340), + 52: uint16(23443), + 53: uint16(24489), + 54: uint16(26381), + 55: uint16(31119), + 56: uint16(33145), + 57: uint16(33583), + 58: uint16(34068), + 59: uint16(35079), + 60: uint16(35206), + 61: uint16(36665), + 62: uint16(36667), + 63: uint16(39333), + 64: uint16(39954), + 65: uint16(26412), + 66: uint16(20086), + 67: uint16(20472), + 68: uint16(22857), + 69: uint16(23553), + 70: uint16(23791), + 71: uint16(23792), + 72: uint16(25447), + 73: uint16(26834), + 74: uint16(28925), + 75: uint16(29090), + 76: uint16(29739), + 77: uint16(32299), + 78: uint16(34028), + 79: uint16(34562), + 80: uint16(36898), + 81: uint16(37586), + 82: uint16(40179), + 83: uint16(19981), + 84: uint16(20184), + 85: uint16(20463), + 86: uint16(20613), + 87: uint16(21078), + 88: uint16(21103), + 89: uint16(21542), + 90: uint16(21648), + 91: uint16(22496), + 92: uint16(22827), + 93: uint16(23142), + }, + 60: { + 0: uint16(23386), + 1: uint16(23413), + 2: uint16(23500), + 3: uint16(24220), + 4: uint16(63846), + 5: uint16(25206), + 6: uint16(25975), + 7: uint16(26023), + 8: uint16(28014), + 9: uint16(28325), + 10: uint16(29238), + 11: uint16(31526), + 12: uint16(31807), + 13: uint16(32566), + 14: uint16(33104), + 15: uint16(33105), + 16: uint16(33178), + 17: uint16(33344), + 18: uint16(33433), + 19: uint16(33705), + 20: uint16(35331), + 21: uint16(36000), + 22: uint16(36070), + 23: uint16(36091), + 24: uint16(36212), + 25: uint16(36282), + 26: uint16(37096), + 27: uint16(37340), + 28: uint16(38428), + 29: uint16(38468), + 30: uint16(39385), + 31: uint16(40167), + 32: uint16(21271), + 33: uint16(20998), + 34: uint16(21545), + 35: uint16(22132), + 36: uint16(22707), + 37: uint16(22868), + 38: uint16(22894), + 39: uint16(24575), + 40: uint16(24996), + 41: uint16(25198), + 42: uint16(26128), + 43: uint16(27774), + 44: uint16(28954), + 45: uint16(30406), + 46: uint16(31881), + 47: uint16(31966), + 48: uint16(32027), + 49: uint16(33452), + 50: uint16(36033), + 51: uint16(38640), + 52: uint16(63847), + 53: uint16(20315), + 54: uint16(24343), + 55: uint16(24447), + 56: uint16(25282), + 57: uint16(23849), + 58: uint16(26379), + 59: uint16(26842), + 60: uint16(30844), + 61: uint16(32323), + 62: uint16(40300), + 63: uint16(19989), + 64: uint16(20633), + 65: uint16(21269), + 66: uint16(21290), + 67: uint16(21329), + 68: uint16(22915), + 69: uint16(23138), + 70: uint16(24199), + 71: uint16(24754), + 72: uint16(24970), + 73: uint16(25161), + 74: uint16(25209), + 75: uint16(26000), + 76: uint16(26503), + 77: uint16(27047), + 78: uint16(27604), + 79: uint16(27606), + 80: uint16(27607), + 81: uint16(27608), + 82: uint16(27832), + 83: uint16(63848), + 84: uint16(29749), + 85: uint16(30202), + 86: uint16(30738), + 87: uint16(30865), + 88: uint16(31189), + 89: uint16(31192), + 90: uint16(31875), + 91: uint16(32203), + 92: uint16(32737), + 93: uint16(32933), + }, + 61: { + 0: uint16(33086), + 1: uint16(33218), + 2: uint16(33778), + 3: uint16(34586), + 4: uint16(35048), + 5: uint16(35513), + 6: uint16(35692), + 7: uint16(36027), + 8: uint16(37145), + 9: uint16(38750), + 10: uint16(39131), + 11: uint16(40763), + 12: uint16(22188), + 13: uint16(23338), + 14: uint16(24428), + 15: uint16(25996), + 16: uint16(27315), + 17: uint16(27567), + 18: uint16(27996), + 19: uint16(28657), + 20: uint16(28693), + 21: uint16(29277), + 22: uint16(29613), + 23: uint16(36007), + 24: uint16(36051), + 25: uint16(38971), + 26: uint16(24977), + 27: uint16(27703), + 28: uint16(32856), + 29: uint16(39425), + 30: uint16(20045), + 31: uint16(20107), + 32: uint16(20123), + 33: uint16(20181), + 34: uint16(20282), + 35: uint16(20284), + 36: uint16(20351), + 37: uint16(20447), + 38: uint16(20735), + 39: uint16(21490), + 40: uint16(21496), + 41: uint16(21766), + 42: uint16(21987), + 43: uint16(22235), + 44: uint16(22763), + 45: uint16(22882), + 46: uint16(23057), + 47: uint16(23531), + 48: uint16(23546), + 49: uint16(23556), + 50: uint16(24051), + 51: uint16(24107), + 52: uint16(24473), + 53: uint16(24605), + 54: uint16(25448), + 55: uint16(26012), + 56: uint16(26031), + 57: uint16(26614), + 58: uint16(26619), + 59: uint16(26797), + 60: uint16(27515), + 61: uint16(27801), + 62: uint16(27863), + 63: uint16(28195), + 64: uint16(28681), + 65: uint16(29509), + 66: uint16(30722), + 67: uint16(31038), + 68: uint16(31040), + 69: uint16(31072), + 70: uint16(31169), + 71: uint16(31721), + 72: uint16(32023), + 73: uint16(32114), + 74: uint16(32902), + 75: uint16(33293), + 76: uint16(33678), + 77: uint16(34001), + 78: uint16(34503), + 79: uint16(35039), + 80: uint16(35408), + 81: uint16(35422), + 82: uint16(35613), + 83: uint16(36060), + 84: uint16(36198), + 85: uint16(36781), + 86: uint16(37034), + 87: uint16(39164), + 88: uint16(39391), + 89: uint16(40605), + 90: uint16(21066), + 91: uint16(63849), + 92: uint16(26388), + 93: uint16(63850), + }, + 62: { + 0: uint16(20632), + 1: uint16(21034), + 2: uint16(23665), + 3: uint16(25955), + 4: uint16(27733), + 5: uint16(29642), + 6: uint16(29987), + 7: uint16(30109), + 8: uint16(31639), + 9: uint16(33948), + 10: uint16(37240), + 11: uint16(38704), + 12: uint16(20087), + 13: uint16(25746), + 14: uint16(27578), + 15: uint16(29022), + 16: uint16(34217), + 17: uint16(19977), + 18: uint16(63851), + 19: uint16(26441), + 20: uint16(26862), + 21: uint16(28183), + 22: uint16(33439), + 23: uint16(34072), + 24: uint16(34923), + 25: uint16(25591), + 26: uint16(28545), + 27: uint16(37394), + 28: uint16(39087), + 29: uint16(19978), + 30: uint16(20663), + 31: uint16(20687), + 32: uint16(20767), + 33: uint16(21830), + 34: uint16(21930), + 35: uint16(22039), + 36: uint16(23360), + 37: uint16(23577), + 38: uint16(23776), + 39: uint16(24120), + 40: uint16(24202), + 41: uint16(24224), + 42: uint16(24258), + 43: uint16(24819), + 44: uint16(26705), + 45: uint16(27233), + 46: uint16(28248), + 47: uint16(29245), + 48: uint16(29248), + 49: uint16(29376), + 50: uint16(30456), + 51: uint16(31077), + 52: uint16(31665), + 53: uint16(32724), + 54: uint16(35059), + 55: uint16(35316), + 56: uint16(35443), + 57: uint16(35937), + 58: uint16(36062), + 59: uint16(38684), + 60: uint16(22622), + 61: uint16(29885), + 62: uint16(36093), + 63: uint16(21959), + 64: uint16(63852), + 65: uint16(31329), + 66: uint16(32034), + 67: uint16(33394), + 68: uint16(29298), + 69: uint16(29983), + 70: uint16(29989), + 71: uint16(63853), + 72: uint16(31513), + 73: uint16(22661), + 74: uint16(22779), + 75: uint16(23996), + 76: uint16(24207), + 77: uint16(24246), + 78: uint16(24464), + 79: uint16(24661), + 80: uint16(25234), + 81: uint16(25471), + 82: uint16(25933), + 83: uint16(26257), + 84: uint16(26329), + 85: uint16(26360), + 86: uint16(26646), + 87: uint16(26866), + 88: uint16(29312), + 89: uint16(29790), + 90: uint16(31598), + 91: uint16(32110), + 92: uint16(32214), + 93: uint16(32626), + }, + 63: { + 0: uint16(32997), + 1: uint16(33298), + 2: uint16(34223), + 3: uint16(35199), + 4: uint16(35475), + 5: uint16(36893), + 6: uint16(37604), + 7: uint16(40653), + 8: uint16(40736), + 9: uint16(22805), + 10: uint16(22893), + 11: uint16(24109), + 12: uint16(24796), + 13: uint16(26132), + 14: uint16(26227), + 15: uint16(26512), + 16: uint16(27728), + 17: uint16(28101), + 18: uint16(28511), + 19: uint16(30707), + 20: uint16(30889), + 21: uint16(33990), + 22: uint16(37323), + 23: uint16(37675), + 24: uint16(20185), + 25: uint16(20682), + 26: uint16(20808), + 27: uint16(21892), + 28: uint16(23307), + 29: uint16(23459), + 30: uint16(25159), + 31: uint16(25982), + 32: uint16(26059), + 33: uint16(28210), + 34: uint16(29053), + 35: uint16(29697), + 36: uint16(29764), + 37: uint16(29831), + 38: uint16(29887), + 39: uint16(30316), + 40: uint16(31146), + 41: uint16(32218), + 42: uint16(32341), + 43: uint16(32680), + 44: uint16(33146), + 45: uint16(33203), + 46: uint16(33337), + 47: uint16(34330), + 48: uint16(34796), + 49: uint16(35445), + 50: uint16(36323), + 51: uint16(36984), + 52: uint16(37521), + 53: uint16(37925), + 54: uint16(39245), + 55: uint16(39854), + 56: uint16(21352), + 57: uint16(23633), + 58: uint16(26964), + 59: uint16(27844), + 60: uint16(27945), + 61: uint16(28203), + 62: uint16(33292), + 63: uint16(34203), + 64: uint16(35131), + 65: uint16(35373), + 66: uint16(35498), + 67: uint16(38634), + 68: uint16(40807), + 69: uint16(21089), + 70: uint16(26297), + 71: uint16(27570), + 72: uint16(32406), + 73: uint16(34814), + 74: uint16(36109), + 75: uint16(38275), + 76: uint16(38493), + 77: uint16(25885), + 78: uint16(28041), + 79: uint16(29166), + 80: uint16(63854), + 81: uint16(22478), + 82: uint16(22995), + 83: uint16(23468), + 84: uint16(24615), + 85: uint16(24826), + 86: uint16(25104), + 87: uint16(26143), + 88: uint16(26207), + 89: uint16(29481), + 90: uint16(29689), + 91: uint16(30427), + 92: uint16(30465), + 93: uint16(31596), + }, + 64: { + 0: uint16(32854), + 1: uint16(32882), + 2: uint16(33125), + 3: uint16(35488), + 4: uint16(37266), + 5: uint16(19990), + 6: uint16(21218), + 7: uint16(27506), + 8: uint16(27927), + 9: uint16(31237), + 10: uint16(31545), + 11: uint16(32048), + 12: uint16(63855), + 13: uint16(36016), + 14: uint16(21484), + 15: uint16(22063), + 16: uint16(22609), + 17: uint16(23477), + 18: uint16(23567), + 19: uint16(23569), + 20: uint16(24034), + 21: uint16(25152), + 22: uint16(25475), + 23: uint16(25620), + 24: uint16(26157), + 25: uint16(26803), + 26: uint16(27836), + 27: uint16(28040), + 28: uint16(28335), + 29: uint16(28703), + 30: uint16(28836), + 31: uint16(29138), + 32: uint16(29990), + 33: uint16(30095), + 34: uint16(30094), + 35: uint16(30233), + 36: uint16(31505), + 37: uint16(31712), + 38: uint16(31787), + 39: uint16(32032), + 40: uint16(32057), + 41: uint16(34092), + 42: uint16(34157), + 43: uint16(34311), + 44: uint16(35380), + 45: uint16(36877), + 46: uint16(36961), + 47: uint16(37045), + 48: uint16(37559), + 49: uint16(38902), + 50: uint16(39479), + 51: uint16(20439), + 52: uint16(23660), + 53: uint16(26463), + 54: uint16(28049), + 55: uint16(31903), + 56: uint16(32396), + 57: uint16(35606), + 58: uint16(36118), + 59: uint16(36895), + 60: uint16(23403), + 61: uint16(24061), + 62: uint16(25613), + 63: uint16(33984), + 64: uint16(36956), + 65: uint16(39137), + 66: uint16(29575), + 67: uint16(23435), + 68: uint16(24730), + 69: uint16(26494), + 70: uint16(28126), + 71: uint16(35359), + 72: uint16(35494), + 73: uint16(36865), + 74: uint16(38924), + 75: uint16(21047), + 76: uint16(63856), + 77: uint16(28753), + 78: uint16(30862), + 79: uint16(37782), + 80: uint16(34928), + 81: uint16(37335), + 82: uint16(20462), + 83: uint16(21463), + 84: uint16(22013), + 85: uint16(22234), + 86: uint16(22402), + 87: uint16(22781), + 88: uint16(23234), + 89: uint16(23432), + 90: uint16(23723), + 91: uint16(23744), + 92: uint16(24101), + 93: uint16(24833), + }, + 65: { + 0: uint16(25101), + 1: uint16(25163), + 2: uint16(25480), + 3: uint16(25628), + 4: uint16(25910), + 5: uint16(25976), + 6: uint16(27193), + 7: uint16(27530), + 8: uint16(27700), + 9: uint16(27929), + 10: uint16(28465), + 11: uint16(29159), + 12: uint16(29417), + 13: uint16(29560), + 14: uint16(29703), + 15: uint16(29874), + 16: uint16(30246), + 17: uint16(30561), + 18: uint16(31168), + 19: uint16(31319), + 20: uint16(31466), + 21: uint16(31929), + 22: uint16(32143), + 23: uint16(32172), + 24: uint16(32353), + 25: uint16(32670), + 26: uint16(33065), + 27: uint16(33585), + 28: uint16(33936), + 29: uint16(34010), + 30: uint16(34282), + 31: uint16(34966), + 32: uint16(35504), + 33: uint16(35728), + 34: uint16(36664), + 35: uint16(36930), + 36: uint16(36995), + 37: uint16(37228), + 38: uint16(37526), + 39: uint16(37561), + 40: uint16(38539), + 41: uint16(38567), + 42: uint16(38568), + 43: uint16(38614), + 44: uint16(38656), + 45: uint16(38920), + 46: uint16(39318), + 47: uint16(39635), + 48: uint16(39706), + 49: uint16(21460), + 50: uint16(22654), + 51: uint16(22809), + 52: uint16(23408), + 53: uint16(23487), + 54: uint16(28113), + 55: uint16(28506), + 56: uint16(29087), + 57: uint16(29729), + 58: uint16(29881), + 59: uint16(32901), + 60: uint16(33789), + 61: uint16(24033), + 62: uint16(24455), + 63: uint16(24490), + 64: uint16(24642), + 65: uint16(26092), + 66: uint16(26642), + 67: uint16(26991), + 68: uint16(27219), + 69: uint16(27529), + 70: uint16(27957), + 71: uint16(28147), + 72: uint16(29667), + 73: uint16(30462), + 74: uint16(30636), + 75: uint16(31565), + 76: uint16(32020), + 77: uint16(33059), + 78: uint16(33308), + 79: uint16(33600), + 80: uint16(34036), + 81: uint16(34147), + 82: uint16(35426), + 83: uint16(35524), + 84: uint16(37255), + 85: uint16(37662), + 86: uint16(38918), + 87: uint16(39348), + 88: uint16(25100), + 89: uint16(34899), + 90: uint16(36848), + 91: uint16(37477), + 92: uint16(23815), + 93: uint16(23847), + }, + 66: { + 0: uint16(23913), + 1: uint16(29791), + 2: uint16(33181), + 3: uint16(34664), + 4: uint16(28629), + 5: uint16(25342), + 6: uint16(32722), + 7: uint16(35126), + 8: uint16(35186), + 9: uint16(19998), + 10: uint16(20056), + 11: uint16(20711), + 12: uint16(21213), + 13: uint16(21319), + 14: uint16(25215), + 15: uint16(26119), + 16: uint16(32361), + 17: uint16(34821), + 18: uint16(38494), + 19: uint16(20365), + 20: uint16(21273), + 21: uint16(22070), + 22: uint16(22987), + 23: uint16(23204), + 24: uint16(23608), + 25: uint16(23630), + 26: uint16(23629), + 27: uint16(24066), + 28: uint16(24337), + 29: uint16(24643), + 30: uint16(26045), + 31: uint16(26159), + 32: uint16(26178), + 33: uint16(26558), + 34: uint16(26612), + 35: uint16(29468), + 36: uint16(30690), + 37: uint16(31034), + 38: uint16(32709), + 39: uint16(33940), + 40: uint16(33997), + 41: uint16(35222), + 42: uint16(35430), + 43: uint16(35433), + 44: uint16(35553), + 45: uint16(35925), + 46: uint16(35962), + 47: uint16(22516), + 48: uint16(23508), + 49: uint16(24335), + 50: uint16(24687), + 51: uint16(25325), + 52: uint16(26893), + 53: uint16(27542), + 54: uint16(28252), + 55: uint16(29060), + 56: uint16(31698), + 57: uint16(34645), + 58: uint16(35672), + 59: uint16(36606), + 60: uint16(39135), + 61: uint16(39166), + 62: uint16(20280), + 63: uint16(20353), + 64: uint16(20449), + 65: uint16(21627), + 66: uint16(23072), + 67: uint16(23480), + 68: uint16(24892), + 69: uint16(26032), + 70: uint16(26216), + 71: uint16(29180), + 72: uint16(30003), + 73: uint16(31070), + 74: uint16(32051), + 75: uint16(33102), + 76: uint16(33251), + 77: uint16(33688), + 78: uint16(34218), + 79: uint16(34254), + 80: uint16(34563), + 81: uint16(35338), + 82: uint16(36523), + 83: uint16(36763), + 84: uint16(63857), + 85: uint16(36805), + 86: uint16(22833), + 87: uint16(23460), + 88: uint16(23526), + 89: uint16(24713), + 90: uint16(23529), + 91: uint16(23563), + 92: uint16(24515), + 93: uint16(27777), + }, + 67: { + 0: uint16(63858), + 1: uint16(28145), + 2: uint16(28683), + 3: uint16(29978), + 4: uint16(33455), + 5: uint16(35574), + 6: uint16(20160), + 7: uint16(21313), + 8: uint16(63859), + 9: uint16(38617), + 10: uint16(27663), + 11: uint16(20126), + 12: uint16(20420), + 13: uint16(20818), + 14: uint16(21854), + 15: uint16(23077), + 16: uint16(23784), + 17: uint16(25105), + 18: uint16(29273), + 19: uint16(33469), + 20: uint16(33706), + 21: uint16(34558), + 22: uint16(34905), + 23: uint16(35357), + 24: uint16(38463), + 25: uint16(38597), + 26: uint16(39187), + 27: uint16(40201), + 28: uint16(40285), + 29: uint16(22538), + 30: uint16(23731), + 31: uint16(23997), + 32: uint16(24132), + 33: uint16(24801), + 34: uint16(24853), + 35: uint16(25569), + 36: uint16(27138), + 37: uint16(28197), + 38: uint16(37122), + 39: uint16(37716), + 40: uint16(38990), + 41: uint16(39952), + 42: uint16(40823), + 43: uint16(23433), + 44: uint16(23736), + 45: uint16(25353), + 46: uint16(26191), + 47: uint16(26696), + 48: uint16(30524), + 49: uint16(38593), + 50: uint16(38797), + 51: uint16(38996), + 52: uint16(39839), + 53: uint16(26017), + 54: uint16(35585), + 55: uint16(36555), + 56: uint16(38332), + 57: uint16(21813), + 58: uint16(23721), + 59: uint16(24022), + 60: uint16(24245), + 61: uint16(26263), + 62: uint16(30284), + 63: uint16(33780), + 64: uint16(38343), + 65: uint16(22739), + 66: uint16(25276), + 67: uint16(29390), + 68: uint16(40232), + 69: uint16(20208), + 70: uint16(22830), + 71: uint16(24591), + 72: uint16(26171), + 73: uint16(27523), + 74: uint16(31207), + 75: uint16(40230), + 76: uint16(21395), + 77: uint16(21696), + 78: uint16(22467), + 79: uint16(23830), + 80: uint16(24859), + 81: uint16(26326), + 82: uint16(28079), + 83: uint16(30861), + 84: uint16(33406), + 85: uint16(38552), + 86: uint16(38724), + 87: uint16(21380), + 88: uint16(25212), + 89: uint16(25494), + 90: uint16(28082), + 91: uint16(32266), + 92: uint16(33099), + 93: uint16(38989), + }, + 68: { + 0: uint16(27387), + 1: uint16(32588), + 2: uint16(40367), + 3: uint16(40474), + 4: uint16(20063), + 5: uint16(20539), + 6: uint16(20918), + 7: uint16(22812), + 8: uint16(24825), + 9: uint16(25590), + 10: uint16(26928), + 11: uint16(29242), + 12: uint16(32822), + 13: uint16(63860), + 14: uint16(37326), + 15: uint16(24369), + 16: uint16(63861), + 17: uint16(63862), + 18: uint16(32004), + 19: uint16(33509), + 20: uint16(33903), + 21: uint16(33979), + 22: uint16(34277), + 23: uint16(36493), + 24: uint16(63863), + 25: uint16(20335), + 26: uint16(63864), + 27: uint16(63865), + 28: uint16(22756), + 29: uint16(23363), + 30: uint16(24665), + 31: uint16(25562), + 32: uint16(25880), + 33: uint16(25965), + 34: uint16(26264), + 35: uint16(63866), + 36: uint16(26954), + 37: uint16(27171), + 38: uint16(27915), + 39: uint16(28673), + 40: uint16(29036), + 41: uint16(30162), + 42: uint16(30221), + 43: uint16(31155), + 44: uint16(31344), + 45: uint16(63867), + 46: uint16(32650), + 47: uint16(63868), + 48: uint16(35140), + 49: uint16(63869), + 50: uint16(35731), + 51: uint16(37312), + 52: uint16(38525), + 53: uint16(63870), + 54: uint16(39178), + 55: uint16(22276), + 56: uint16(24481), + 57: uint16(26044), + 58: uint16(28417), + 59: uint16(30208), + 60: uint16(31142), + 61: uint16(35486), + 62: uint16(39341), + 63: uint16(39770), + 64: uint16(40812), + 65: uint16(20740), + 66: uint16(25014), + 67: uint16(25233), + 68: uint16(27277), + 69: uint16(33222), + 70: uint16(20547), + 71: uint16(22576), + 72: uint16(24422), + 73: uint16(28937), + 74: uint16(35328), + 75: uint16(35578), + 76: uint16(23420), + 77: uint16(34326), + 78: uint16(20474), + 79: uint16(20796), + 80: uint16(22196), + 81: uint16(22852), + 82: uint16(25513), + 83: uint16(28153), + 84: uint16(23978), + 85: uint16(26989), + 86: uint16(20870), + 87: uint16(20104), + 88: uint16(20313), + 89: uint16(63871), + 90: uint16(63872), + 91: uint16(63873), + 92: uint16(22914), + 93: uint16(63874), + }, + 69: { + 0: uint16(63875), + 1: uint16(27487), + 2: uint16(27741), + 3: uint16(63876), + 4: uint16(29877), + 5: uint16(30998), + 6: uint16(63877), + 7: uint16(33287), + 8: uint16(33349), + 9: uint16(33593), + 10: uint16(36671), + 11: uint16(36701), + 12: uint16(63878), + 13: uint16(39192), + 14: uint16(63879), + 15: uint16(63880), + 16: uint16(63881), + 17: uint16(20134), + 18: uint16(63882), + 19: uint16(22495), + 20: uint16(24441), + 21: uint16(26131), + 22: uint16(63883), + 23: uint16(63884), + 24: uint16(30123), + 25: uint16(32377), + 26: uint16(35695), + 27: uint16(63885), + 28: uint16(36870), + 29: uint16(39515), + 30: uint16(22181), + 31: uint16(22567), + 32: uint16(23032), + 33: uint16(23071), + 34: uint16(23476), + 35: uint16(63886), + 36: uint16(24310), + 37: uint16(63887), + 38: uint16(63888), + 39: uint16(25424), + 40: uint16(25403), + 41: uint16(63889), + 42: uint16(26941), + 43: uint16(27783), + 44: uint16(27839), + 45: uint16(28046), + 46: uint16(28051), + 47: uint16(28149), + 48: uint16(28436), + 49: uint16(63890), + 50: uint16(28895), + 51: uint16(28982), + 52: uint16(29017), + 53: uint16(63891), + 54: uint16(29123), + 55: uint16(29141), + 56: uint16(63892), + 57: uint16(30799), + 58: uint16(30831), + 59: uint16(63893), + 60: uint16(31605), + 61: uint16(32227), + 62: uint16(63894), + 63: uint16(32303), + 64: uint16(63895), + 65: uint16(34893), + 66: uint16(36575), + 67: uint16(63896), + 68: uint16(63897), + 69: uint16(63898), + 70: uint16(37467), + 71: uint16(63899), + 72: uint16(40182), + 73: uint16(63900), + 74: uint16(63901), + 75: uint16(63902), + 76: uint16(24709), + 77: uint16(28037), + 78: uint16(63903), + 79: uint16(29105), + 80: uint16(63904), + 81: uint16(63905), + 82: uint16(38321), + 83: uint16(21421), + 84: uint16(63906), + 85: uint16(63907), + 86: uint16(63908), + 87: uint16(26579), + 88: uint16(63909), + 89: uint16(28814), + 90: uint16(28976), + 91: uint16(29744), + 92: uint16(33398), + 93: uint16(33490), + }, + 70: { + 0: uint16(63910), + 1: uint16(38331), + 2: uint16(39653), + 3: uint16(40573), + 4: uint16(26308), + 5: uint16(63911), + 6: uint16(29121), + 7: uint16(33865), + 8: uint16(63912), + 9: uint16(63913), + 10: uint16(22603), + 11: uint16(63914), + 12: uint16(63915), + 13: uint16(23992), + 14: uint16(24433), + 15: uint16(63916), + 16: uint16(26144), + 17: uint16(26254), + 18: uint16(27001), + 19: uint16(27054), + 20: uint16(27704), + 21: uint16(27891), + 22: uint16(28214), + 23: uint16(28481), + 24: uint16(28634), + 25: uint16(28699), + 26: uint16(28719), + 27: uint16(29008), + 28: uint16(29151), + 29: uint16(29552), + 30: uint16(63917), + 31: uint16(29787), + 32: uint16(63918), + 33: uint16(29908), + 34: uint16(30408), + 35: uint16(31310), + 36: uint16(32403), + 37: uint16(63919), + 38: uint16(63920), + 39: uint16(33521), + 40: uint16(35424), + 41: uint16(36814), + 42: uint16(63921), + 43: uint16(37704), + 44: uint16(63922), + 45: uint16(38681), + 46: uint16(63923), + 47: uint16(63924), + 48: uint16(20034), + 49: uint16(20522), + 50: uint16(63925), + 51: uint16(21000), + 52: uint16(21473), + 53: uint16(26355), + 54: uint16(27757), + 55: uint16(28618), + 56: uint16(29450), + 57: uint16(30591), + 58: uint16(31330), + 59: uint16(33454), + 60: uint16(34269), + 61: uint16(34306), + 62: uint16(63926), + 63: uint16(35028), + 64: uint16(35427), + 65: uint16(35709), + 66: uint16(35947), + 67: uint16(63927), + 68: uint16(37555), + 69: uint16(63928), + 70: uint16(38675), + 71: uint16(38928), + 72: uint16(20116), + 73: uint16(20237), + 74: uint16(20425), + 75: uint16(20658), + 76: uint16(21320), + 77: uint16(21566), + 78: uint16(21555), + 79: uint16(21978), + 80: uint16(22626), + 81: uint16(22714), + 82: uint16(22887), + 83: uint16(23067), + 84: uint16(23524), + 85: uint16(24735), + 86: uint16(63929), + 87: uint16(25034), + 88: uint16(25942), + 89: uint16(26111), + 90: uint16(26212), + 91: uint16(26791), + 92: uint16(27738), + 93: uint16(28595), + }, + 71: { + 0: uint16(28879), + 1: uint16(29100), + 2: uint16(29522), + 3: uint16(31613), + 4: uint16(34568), + 5: uint16(35492), + 6: uint16(39986), + 7: uint16(40711), + 8: uint16(23627), + 9: uint16(27779), + 10: uint16(29508), + 11: uint16(29577), + 12: uint16(37434), + 13: uint16(28331), + 14: uint16(29797), + 15: uint16(30239), + 16: uint16(31337), + 17: uint16(32277), + 18: uint16(34314), + 19: uint16(20800), + 20: uint16(22725), + 21: uint16(25793), + 22: uint16(29934), + 23: uint16(29973), + 24: uint16(30320), + 25: uint16(32705), + 26: uint16(37013), + 27: uint16(38605), + 28: uint16(39252), + 29: uint16(28198), + 30: uint16(29926), + 31: uint16(31401), + 32: uint16(31402), + 33: uint16(33253), + 34: uint16(34521), + 35: uint16(34680), + 36: uint16(35355), + 37: uint16(23113), + 38: uint16(23436), + 39: uint16(23451), + 40: uint16(26785), + 41: uint16(26880), + 42: uint16(28003), + 43: uint16(29609), + 44: uint16(29715), + 45: uint16(29740), + 46: uint16(30871), + 47: uint16(32233), + 48: uint16(32747), + 49: uint16(33048), + 50: uint16(33109), + 51: uint16(33694), + 52: uint16(35916), + 53: uint16(38446), + 54: uint16(38929), + 55: uint16(26352), + 56: uint16(24448), + 57: uint16(26106), + 58: uint16(26505), + 59: uint16(27754), + 60: uint16(29579), + 61: uint16(20525), + 62: uint16(23043), + 63: uint16(27498), + 64: uint16(30702), + 65: uint16(22806), + 66: uint16(23916), + 67: uint16(24013), + 68: uint16(29477), + 69: uint16(30031), + 70: uint16(63930), + 71: uint16(63931), + 72: uint16(20709), + 73: uint16(20985), + 74: uint16(22575), + 75: uint16(22829), + 76: uint16(22934), + 77: uint16(23002), + 78: uint16(23525), + 79: uint16(63932), + 80: uint16(63933), + 81: uint16(23970), + 82: uint16(25303), + 83: uint16(25622), + 84: uint16(25747), + 85: uint16(25854), + 86: uint16(63934), + 87: uint16(26332), + 88: uint16(63935), + 89: uint16(27208), + 90: uint16(63936), + 91: uint16(29183), + 92: uint16(29796), + 93: uint16(63937), + }, + 72: { + 0: uint16(31368), + 1: uint16(31407), + 2: uint16(32327), + 3: uint16(32350), + 4: uint16(32768), + 5: uint16(33136), + 6: uint16(63938), + 7: uint16(34799), + 8: uint16(35201), + 9: uint16(35616), + 10: uint16(36953), + 11: uint16(63939), + 12: uint16(36992), + 13: uint16(39250), + 14: uint16(24958), + 15: uint16(27442), + 16: uint16(28020), + 17: uint16(32287), + 18: uint16(35109), + 19: uint16(36785), + 20: uint16(20433), + 21: uint16(20653), + 22: uint16(20887), + 23: uint16(21191), + 24: uint16(22471), + 25: uint16(22665), + 26: uint16(23481), + 27: uint16(24248), + 28: uint16(24898), + 29: uint16(27029), + 30: uint16(28044), + 31: uint16(28263), + 32: uint16(28342), + 33: uint16(29076), + 34: uint16(29794), + 35: uint16(29992), + 36: uint16(29996), + 37: uint16(32883), + 38: uint16(33592), + 39: uint16(33993), + 40: uint16(36362), + 41: uint16(37780), + 42: uint16(37854), + 43: uint16(63940), + 44: uint16(20110), + 45: uint16(20305), + 46: uint16(20598), + 47: uint16(20778), + 48: uint16(21448), + 49: uint16(21451), + 50: uint16(21491), + 51: uint16(23431), + 52: uint16(23507), + 53: uint16(23588), + 54: uint16(24858), + 55: uint16(24962), + 56: uint16(26100), + 57: uint16(29275), + 58: uint16(29591), + 59: uint16(29760), + 60: uint16(30402), + 61: uint16(31056), + 62: uint16(31121), + 63: uint16(31161), + 64: uint16(32006), + 65: uint16(32701), + 66: uint16(33419), + 67: uint16(34261), + 68: uint16(34398), + 69: uint16(36802), + 70: uint16(36935), + 71: uint16(37109), + 72: uint16(37354), + 73: uint16(38533), + 74: uint16(38632), + 75: uint16(38633), + 76: uint16(21206), + 77: uint16(24423), + 78: uint16(26093), + 79: uint16(26161), + 80: uint16(26671), + 81: uint16(29020), + 82: uint16(31286), + 83: uint16(37057), + 84: uint16(38922), + 85: uint16(20113), + 86: uint16(63941), + 87: uint16(27218), + 88: uint16(27550), + 89: uint16(28560), + 90: uint16(29065), + 91: uint16(32792), + 92: uint16(33464), + 93: uint16(34131), + }, + 73: { + 0: uint16(36939), + 1: uint16(38549), + 2: uint16(38642), + 3: uint16(38907), + 4: uint16(34074), + 5: uint16(39729), + 6: uint16(20112), + 7: uint16(29066), + 8: uint16(38596), + 9: uint16(20803), + 10: uint16(21407), + 11: uint16(21729), + 12: uint16(22291), + 13: uint16(22290), + 14: uint16(22435), + 15: uint16(23195), + 16: uint16(23236), + 17: uint16(23491), + 18: uint16(24616), + 19: uint16(24895), + 20: uint16(25588), + 21: uint16(27781), + 22: uint16(27961), + 23: uint16(28274), + 24: uint16(28304), + 25: uint16(29232), + 26: uint16(29503), + 27: uint16(29783), + 28: uint16(33489), + 29: uint16(34945), + 30: uint16(36677), + 31: uint16(36960), + 32: uint16(63942), + 33: uint16(38498), + 34: uint16(39000), + 35: uint16(40219), + 36: uint16(26376), + 37: uint16(36234), + 38: uint16(37470), + 39: uint16(20301), + 40: uint16(20553), + 41: uint16(20702), + 42: uint16(21361), + 43: uint16(22285), + 44: uint16(22996), + 45: uint16(23041), + 46: uint16(23561), + 47: uint16(24944), + 48: uint16(26256), + 49: uint16(28205), + 50: uint16(29234), + 51: uint16(29771), + 52: uint16(32239), + 53: uint16(32963), + 54: uint16(33806), + 55: uint16(33894), + 56: uint16(34111), + 57: uint16(34655), + 58: uint16(34907), + 59: uint16(35096), + 60: uint16(35586), + 61: uint16(36949), + 62: uint16(38859), + 63: uint16(39759), + 64: uint16(20083), + 65: uint16(20369), + 66: uint16(20754), + 67: uint16(20842), + 68: uint16(63943), + 69: uint16(21807), + 70: uint16(21929), + 71: uint16(23418), + 72: uint16(23461), + 73: uint16(24188), + 74: uint16(24189), + 75: uint16(24254), + 76: uint16(24736), + 77: uint16(24799), + 78: uint16(24840), + 79: uint16(24841), + 80: uint16(25540), + 81: uint16(25912), + 82: uint16(26377), + 83: uint16(63944), + 84: uint16(26580), + 85: uint16(26586), + 86: uint16(63945), + 87: uint16(26977), + 88: uint16(26978), + 89: uint16(27833), + 90: uint16(27943), + 91: uint16(63946), + 92: uint16(28216), + 93: uint16(63947), + }, + 74: { + 0: uint16(28641), + 1: uint16(29494), + 2: uint16(29495), + 3: uint16(63948), + 4: uint16(29788), + 5: uint16(30001), + 6: uint16(63949), + 7: uint16(30290), + 8: uint16(63950), + 9: uint16(63951), + 10: uint16(32173), + 11: uint16(33278), + 12: uint16(33848), + 13: uint16(35029), + 14: uint16(35480), + 15: uint16(35547), + 16: uint16(35565), + 17: uint16(36400), + 18: uint16(36418), + 19: uint16(36938), + 20: uint16(36926), + 21: uint16(36986), + 22: uint16(37193), + 23: uint16(37321), + 24: uint16(37742), + 25: uint16(63952), + 26: uint16(63953), + 27: uint16(22537), + 28: uint16(63954), + 29: uint16(27603), + 30: uint16(32905), + 31: uint16(32946), + 32: uint16(63955), + 33: uint16(63956), + 34: uint16(20801), + 35: uint16(22891), + 36: uint16(23609), + 37: uint16(63957), + 38: uint16(63958), + 39: uint16(28516), + 40: uint16(29607), + 41: uint16(32996), + 42: uint16(36103), + 43: uint16(63959), + 44: uint16(37399), + 45: uint16(38287), + 46: uint16(63960), + 47: uint16(63961), + 48: uint16(63962), + 49: uint16(63963), + 50: uint16(32895), + 51: uint16(25102), + 52: uint16(28700), + 53: uint16(32104), + 54: uint16(34701), + 55: uint16(63964), + 56: uint16(22432), + 57: uint16(24681), + 58: uint16(24903), + 59: uint16(27575), + 60: uint16(35518), + 61: uint16(37504), + 62: uint16(38577), + 63: uint16(20057), + 64: uint16(21535), + 65: uint16(28139), + 66: uint16(34093), + 67: uint16(38512), + 68: uint16(38899), + 69: uint16(39150), + 70: uint16(25558), + 71: uint16(27875), + 72: uint16(37009), + 73: uint16(20957), + 74: uint16(25033), + 75: uint16(33210), + 76: uint16(40441), + 77: uint16(20381), + 78: uint16(20506), + 79: uint16(20736), + 80: uint16(23452), + 81: uint16(24847), + 82: uint16(25087), + 83: uint16(25836), + 84: uint16(26885), + 85: uint16(27589), + 86: uint16(30097), + 87: uint16(30691), + 88: uint16(32681), + 89: uint16(33380), + 90: uint16(34191), + 91: uint16(34811), + 92: uint16(34915), + 93: uint16(35516), + }, + 75: { + 0: uint16(35696), + 1: uint16(37291), + 2: uint16(20108), + 3: uint16(20197), + 4: uint16(20234), + 5: uint16(63965), + 6: uint16(63966), + 7: uint16(22839), + 8: uint16(23016), + 9: uint16(63967), + 10: uint16(24050), + 11: uint16(24347), + 12: uint16(24411), + 13: uint16(24609), + 14: uint16(63968), + 15: uint16(63969), + 16: uint16(63970), + 17: uint16(63971), + 18: uint16(29246), + 19: uint16(29669), + 20: uint16(63972), + 21: uint16(30064), + 22: uint16(30157), + 23: uint16(63973), + 24: uint16(31227), + 25: uint16(63974), + 26: uint16(32780), + 27: uint16(32819), + 28: uint16(32900), + 29: uint16(33505), + 30: uint16(33617), + 31: uint16(63975), + 32: uint16(63976), + 33: uint16(36029), + 34: uint16(36019), + 35: uint16(36999), + 36: uint16(63977), + 37: uint16(63978), + 38: uint16(39156), + 39: uint16(39180), + 40: uint16(63979), + 41: uint16(63980), + 42: uint16(28727), + 43: uint16(30410), + 44: uint16(32714), + 45: uint16(32716), + 46: uint16(32764), + 47: uint16(35610), + 48: uint16(20154), + 49: uint16(20161), + 50: uint16(20995), + 51: uint16(21360), + 52: uint16(63981), + 53: uint16(21693), + 54: uint16(22240), + 55: uint16(23035), + 56: uint16(23493), + 57: uint16(24341), + 58: uint16(24525), + 59: uint16(28270), + 60: uint16(63982), + 61: uint16(63983), + 62: uint16(32106), + 63: uint16(33589), + 64: uint16(63984), + 65: uint16(34451), + 66: uint16(35469), + 67: uint16(63985), + 68: uint16(38765), + 69: uint16(38775), + 70: uint16(63986), + 71: uint16(63987), + 72: uint16(19968), + 73: uint16(20314), + 74: uint16(20350), + 75: uint16(22777), + 76: uint16(26085), + 77: uint16(28322), + 78: uint16(36920), + 79: uint16(37808), + 80: uint16(39353), + 81: uint16(20219), + 82: uint16(22764), + 83: uint16(22922), + 84: uint16(23001), + 85: uint16(24641), + 86: uint16(63988), + 87: uint16(63989), + 88: uint16(31252), + 89: uint16(63990), + 90: uint16(33615), + 91: uint16(36035), + 92: uint16(20837), + 93: uint16(21316), + }, + 76: { + 0: uint16(63991), + 1: uint16(63992), + 2: uint16(63993), + 3: uint16(20173), + 4: uint16(21097), + 5: uint16(23381), + 6: uint16(33471), + 7: uint16(20180), + 8: uint16(21050), + 9: uint16(21672), + 10: uint16(22985), + 11: uint16(23039), + 12: uint16(23376), + 13: uint16(23383), + 14: uint16(23388), + 15: uint16(24675), + 16: uint16(24904), + 17: uint16(28363), + 18: uint16(28825), + 19: uint16(29038), + 20: uint16(29574), + 21: uint16(29943), + 22: uint16(30133), + 23: uint16(30913), + 24: uint16(32043), + 25: uint16(32773), + 26: uint16(33258), + 27: uint16(33576), + 28: uint16(34071), + 29: uint16(34249), + 30: uint16(35566), + 31: uint16(36039), + 32: uint16(38604), + 33: uint16(20316), + 34: uint16(21242), + 35: uint16(22204), + 36: uint16(26027), + 37: uint16(26152), + 38: uint16(28796), + 39: uint16(28856), + 40: uint16(29237), + 41: uint16(32189), + 42: uint16(33421), + 43: uint16(37196), + 44: uint16(38592), + 45: uint16(40306), + 46: uint16(23409), + 47: uint16(26855), + 48: uint16(27544), + 49: uint16(28538), + 50: uint16(30430), + 51: uint16(23697), + 52: uint16(26283), + 53: uint16(28507), + 54: uint16(31668), + 55: uint16(31786), + 56: uint16(34870), + 57: uint16(38620), + 58: uint16(19976), + 59: uint16(20183), + 60: uint16(21280), + 61: uint16(22580), + 62: uint16(22715), + 63: uint16(22767), + 64: uint16(22892), + 65: uint16(23559), + 66: uint16(24115), + 67: uint16(24196), + 68: uint16(24373), + 69: uint16(25484), + 70: uint16(26290), + 71: uint16(26454), + 72: uint16(27167), + 73: uint16(27299), + 74: uint16(27404), + 75: uint16(28479), + 76: uint16(29254), + 77: uint16(63994), + 78: uint16(29520), + 79: uint16(29835), + 80: uint16(31456), + 81: uint16(31911), + 82: uint16(33144), + 83: uint16(33247), + 84: uint16(33255), + 85: uint16(33674), + 86: uint16(33900), + 87: uint16(34083), + 88: uint16(34196), + 89: uint16(34255), + 90: uint16(35037), + 91: uint16(36115), + 92: uint16(37292), + 93: uint16(38263), + }, + 77: { + 0: uint16(38556), + 1: uint16(20877), + 2: uint16(21705), + 3: uint16(22312), + 4: uint16(23472), + 5: uint16(25165), + 6: uint16(26448), + 7: uint16(26685), + 8: uint16(26771), + 9: uint16(28221), + 10: uint16(28371), + 11: uint16(28797), + 12: uint16(32289), + 13: uint16(35009), + 14: uint16(36001), + 15: uint16(36617), + 16: uint16(40779), + 17: uint16(40782), + 18: uint16(29229), + 19: uint16(31631), + 20: uint16(35533), + 21: uint16(37658), + 22: uint16(20295), + 23: uint16(20302), + 24: uint16(20786), + 25: uint16(21632), + 26: uint16(22992), + 27: uint16(24213), + 28: uint16(25269), + 29: uint16(26485), + 30: uint16(26990), + 31: uint16(27159), + 32: uint16(27822), + 33: uint16(28186), + 34: uint16(29401), + 35: uint16(29482), + 36: uint16(30141), + 37: uint16(31672), + 38: uint16(32053), + 39: uint16(33511), + 40: uint16(33785), + 41: uint16(33879), + 42: uint16(34295), + 43: uint16(35419), + 44: uint16(36015), + 45: uint16(36487), + 46: uint16(36889), + 47: uint16(37048), + 48: uint16(38606), + 49: uint16(40799), + 50: uint16(21219), + 51: uint16(21514), + 52: uint16(23265), + 53: uint16(23490), + 54: uint16(25688), + 55: uint16(25973), + 56: uint16(28404), + 57: uint16(29380), + 58: uint16(63995), + 59: uint16(30340), + 60: uint16(31309), + 61: uint16(31515), + 62: uint16(31821), + 63: uint16(32318), + 64: uint16(32735), + 65: uint16(33659), + 66: uint16(35627), + 67: uint16(36042), + 68: uint16(36196), + 69: uint16(36321), + 70: uint16(36447), + 71: uint16(36842), + 72: uint16(36857), + 73: uint16(36969), + 74: uint16(37841), + 75: uint16(20291), + 76: uint16(20346), + 77: uint16(20659), + 78: uint16(20840), + 79: uint16(20856), + 80: uint16(21069), + 81: uint16(21098), + 82: uint16(22625), + 83: uint16(22652), + 84: uint16(22880), + 85: uint16(23560), + 86: uint16(23637), + 87: uint16(24283), + 88: uint16(24731), + 89: uint16(25136), + 90: uint16(26643), + 91: uint16(27583), + 92: uint16(27656), + 93: uint16(28593), + }, + 78: { + 0: uint16(29006), + 1: uint16(29728), + 2: uint16(30000), + 3: uint16(30008), + 4: uint16(30033), + 5: uint16(30322), + 6: uint16(31564), + 7: uint16(31627), + 8: uint16(31661), + 9: uint16(31686), + 10: uint16(32399), + 11: uint16(35438), + 12: uint16(36670), + 13: uint16(36681), + 14: uint16(37439), + 15: uint16(37523), + 16: uint16(37666), + 17: uint16(37931), + 18: uint16(38651), + 19: uint16(39002), + 20: uint16(39019), + 21: uint16(39198), + 22: uint16(20999), + 23: uint16(25130), + 24: uint16(25240), + 25: uint16(27993), + 26: uint16(30308), + 27: uint16(31434), + 28: uint16(31680), + 29: uint16(32118), + 30: uint16(21344), + 31: uint16(23742), + 32: uint16(24215), + 33: uint16(28472), + 34: uint16(28857), + 35: uint16(31896), + 36: uint16(38673), + 37: uint16(39822), + 38: uint16(40670), + 39: uint16(25509), + 40: uint16(25722), + 41: uint16(34678), + 42: uint16(19969), + 43: uint16(20117), + 44: uint16(20141), + 45: uint16(20572), + 46: uint16(20597), + 47: uint16(21576), + 48: uint16(22979), + 49: uint16(23450), + 50: uint16(24128), + 51: uint16(24237), + 52: uint16(24311), + 53: uint16(24449), + 54: uint16(24773), + 55: uint16(25402), + 56: uint16(25919), + 57: uint16(25972), + 58: uint16(26060), + 59: uint16(26230), + 60: uint16(26232), + 61: uint16(26622), + 62: uint16(26984), + 63: uint16(27273), + 64: uint16(27491), + 65: uint16(27712), + 66: uint16(28096), + 67: uint16(28136), + 68: uint16(28191), + 69: uint16(28254), + 70: uint16(28702), + 71: uint16(28833), + 72: uint16(29582), + 73: uint16(29693), + 74: uint16(30010), + 75: uint16(30555), + 76: uint16(30855), + 77: uint16(31118), + 78: uint16(31243), + 79: uint16(31357), + 80: uint16(31934), + 81: uint16(32142), + 82: uint16(33351), + 83: uint16(35330), + 84: uint16(35562), + 85: uint16(35998), + 86: uint16(37165), + 87: uint16(37194), + 88: uint16(37336), + 89: uint16(37478), + 90: uint16(37580), + 91: uint16(37664), + 92: uint16(38662), + 93: uint16(38742), + }, + 79: { + 0: uint16(38748), + 1: uint16(38914), + 2: uint16(40718), + 3: uint16(21046), + 4: uint16(21137), + 5: uint16(21884), + 6: uint16(22564), + 7: uint16(24093), + 8: uint16(24351), + 9: uint16(24716), + 10: uint16(25552), + 11: uint16(26799), + 12: uint16(28639), + 13: uint16(31085), + 14: uint16(31532), + 15: uint16(33229), + 16: uint16(34234), + 17: uint16(35069), + 18: uint16(35576), + 19: uint16(36420), + 20: uint16(37261), + 21: uint16(38500), + 22: uint16(38555), + 23: uint16(38717), + 24: uint16(38988), + 25: uint16(40778), + 26: uint16(20430), + 27: uint16(20806), + 28: uint16(20939), + 29: uint16(21161), + 30: uint16(22066), + 31: uint16(24340), + 32: uint16(24427), + 33: uint16(25514), + 34: uint16(25805), + 35: uint16(26089), + 36: uint16(26177), + 37: uint16(26362), + 38: uint16(26361), + 39: uint16(26397), + 40: uint16(26781), + 41: uint16(26839), + 42: uint16(27133), + 43: uint16(28437), + 44: uint16(28526), + 45: uint16(29031), + 46: uint16(29157), + 47: uint16(29226), + 48: uint16(29866), + 49: uint16(30522), + 50: uint16(31062), + 51: uint16(31066), + 52: uint16(31199), + 53: uint16(31264), + 54: uint16(31381), + 55: uint16(31895), + 56: uint16(31967), + 57: uint16(32068), + 58: uint16(32368), + 59: uint16(32903), + 60: uint16(34299), + 61: uint16(34468), + 62: uint16(35412), + 63: uint16(35519), + 64: uint16(36249), + 65: uint16(36481), + 66: uint16(36896), + 67: uint16(36973), + 68: uint16(37347), + 69: uint16(38459), + 70: uint16(38613), + 71: uint16(40165), + 72: uint16(26063), + 73: uint16(31751), + 74: uint16(36275), + 75: uint16(37827), + 76: uint16(23384), + 77: uint16(23562), + 78: uint16(21330), + 79: uint16(25305), + 80: uint16(29469), + 81: uint16(20519), + 82: uint16(23447), + 83: uint16(24478), + 84: uint16(24752), + 85: uint16(24939), + 86: uint16(26837), + 87: uint16(28121), + 88: uint16(29742), + 89: uint16(31278), + 90: uint16(32066), + 91: uint16(32156), + 92: uint16(32305), + 93: uint16(33131), + }, + 80: { + 0: uint16(36394), + 1: uint16(36405), + 2: uint16(37758), + 3: uint16(37912), + 4: uint16(20304), + 5: uint16(22352), + 6: uint16(24038), + 7: uint16(24231), + 8: uint16(25387), + 9: uint16(32618), + 10: uint16(20027), + 11: uint16(20303), + 12: uint16(20367), + 13: uint16(20570), + 14: uint16(23005), + 15: uint16(32964), + 16: uint16(21610), + 17: uint16(21608), + 18: uint16(22014), + 19: uint16(22863), + 20: uint16(23449), + 21: uint16(24030), + 22: uint16(24282), + 23: uint16(26205), + 24: uint16(26417), + 25: uint16(26609), + 26: uint16(26666), + 27: uint16(27880), + 28: uint16(27954), + 29: uint16(28234), + 30: uint16(28557), + 31: uint16(28855), + 32: uint16(29664), + 33: uint16(30087), + 34: uint16(31820), + 35: uint16(32002), + 36: uint16(32044), + 37: uint16(32162), + 38: uint16(33311), + 39: uint16(34523), + 40: uint16(35387), + 41: uint16(35461), + 42: uint16(36208), + 43: uint16(36490), + 44: uint16(36659), + 45: uint16(36913), + 46: uint16(37198), + 47: uint16(37202), + 48: uint16(37956), + 49: uint16(39376), + 50: uint16(31481), + 51: uint16(31909), + 52: uint16(20426), + 53: uint16(20737), + 54: uint16(20934), + 55: uint16(22472), + 56: uint16(23535), + 57: uint16(23803), + 58: uint16(26201), + 59: uint16(27197), + 60: uint16(27994), + 61: uint16(28310), + 62: uint16(28652), + 63: uint16(28940), + 64: uint16(30063), + 65: uint16(31459), + 66: uint16(34850), + 67: uint16(36897), + 68: uint16(36981), + 69: uint16(38603), + 70: uint16(39423), + 71: uint16(33537), + 72: uint16(20013), + 73: uint16(20210), + 74: uint16(34886), + 75: uint16(37325), + 76: uint16(21373), + 77: uint16(27355), + 78: uint16(26987), + 79: uint16(27713), + 80: uint16(33914), + 81: uint16(22686), + 82: uint16(24974), + 83: uint16(26366), + 84: uint16(25327), + 85: uint16(28893), + 86: uint16(29969), + 87: uint16(30151), + 88: uint16(32338), + 89: uint16(33976), + 90: uint16(35657), + 91: uint16(36104), + 92: uint16(20043), + 93: uint16(21482), + }, + 81: { + 0: uint16(21675), + 1: uint16(22320), + 2: uint16(22336), + 3: uint16(24535), + 4: uint16(25345), + 5: uint16(25351), + 6: uint16(25711), + 7: uint16(25903), + 8: uint16(26088), + 9: uint16(26234), + 10: uint16(26525), + 11: uint16(26547), + 12: uint16(27490), + 13: uint16(27744), + 14: uint16(27802), + 15: uint16(28460), + 16: uint16(30693), + 17: uint16(30757), + 18: uint16(31049), + 19: uint16(31063), + 20: uint16(32025), + 21: uint16(32930), + 22: uint16(33026), + 23: uint16(33267), + 24: uint16(33437), + 25: uint16(33463), + 26: uint16(34584), + 27: uint16(35468), + 28: uint16(63996), + 29: uint16(36100), + 30: uint16(36286), + 31: uint16(36978), + 32: uint16(30452), + 33: uint16(31257), + 34: uint16(31287), + 35: uint16(32340), + 36: uint16(32887), + 37: uint16(21767), + 38: uint16(21972), + 39: uint16(22645), + 40: uint16(25391), + 41: uint16(25634), + 42: uint16(26185), + 43: uint16(26187), + 44: uint16(26733), + 45: uint16(27035), + 46: uint16(27524), + 47: uint16(27941), + 48: uint16(28337), + 49: uint16(29645), + 50: uint16(29800), + 51: uint16(29857), + 52: uint16(30043), + 53: uint16(30137), + 54: uint16(30433), + 55: uint16(30494), + 56: uint16(30603), + 57: uint16(31206), + 58: uint16(32265), + 59: uint16(32285), + 60: uint16(33275), + 61: uint16(34095), + 62: uint16(34967), + 63: uint16(35386), + 64: uint16(36049), + 65: uint16(36587), + 66: uint16(36784), + 67: uint16(36914), + 68: uint16(37805), + 69: uint16(38499), + 70: uint16(38515), + 71: uint16(38663), + 72: uint16(20356), + 73: uint16(21489), + 74: uint16(23018), + 75: uint16(23241), + 76: uint16(24089), + 77: uint16(26702), + 78: uint16(29894), + 79: uint16(30142), + 80: uint16(31209), + 81: uint16(31378), + 82: uint16(33187), + 83: uint16(34541), + 84: uint16(36074), + 85: uint16(36300), + 86: uint16(36845), + 87: uint16(26015), + 88: uint16(26389), + 89: uint16(63997), + 90: uint16(22519), + 91: uint16(28503), + 92: uint16(32221), + 93: uint16(36655), + }, + 82: { + 0: uint16(37878), + 1: uint16(38598), + 2: uint16(24501), + 3: uint16(25074), + 4: uint16(28548), + 5: uint16(19988), + 6: uint16(20376), + 7: uint16(20511), + 8: uint16(21449), + 9: uint16(21983), + 10: uint16(23919), + 11: uint16(24046), + 12: uint16(27425), + 13: uint16(27492), + 14: uint16(30923), + 15: uint16(31642), + 16: uint16(63998), + 17: uint16(36425), + 18: uint16(36554), + 19: uint16(36974), + 20: uint16(25417), + 21: uint16(25662), + 22: uint16(30528), + 23: uint16(31364), + 24: uint16(37679), + 25: uint16(38015), + 26: uint16(40810), + 27: uint16(25776), + 28: uint16(28591), + 29: uint16(29158), + 30: uint16(29864), + 31: uint16(29914), + 32: uint16(31428), + 33: uint16(31762), + 34: uint16(32386), + 35: uint16(31922), + 36: uint16(32408), + 37: uint16(35738), + 38: uint16(36106), + 39: uint16(38013), + 40: uint16(39184), + 41: uint16(39244), + 42: uint16(21049), + 43: uint16(23519), + 44: uint16(25830), + 45: uint16(26413), + 46: uint16(32046), + 47: uint16(20717), + 48: uint16(21443), + 49: uint16(22649), + 50: uint16(24920), + 51: uint16(24921), + 52: uint16(25082), + 53: uint16(26028), + 54: uint16(31449), + 55: uint16(35730), + 56: uint16(35734), + 57: uint16(20489), + 58: uint16(20513), + 59: uint16(21109), + 60: uint16(21809), + 61: uint16(23100), + 62: uint16(24288), + 63: uint16(24432), + 64: uint16(24884), + 65: uint16(25950), + 66: uint16(26124), + 67: uint16(26166), + 68: uint16(26274), + 69: uint16(27085), + 70: uint16(28356), + 71: uint16(28466), + 72: uint16(29462), + 73: uint16(30241), + 74: uint16(31379), + 75: uint16(33081), + 76: uint16(33369), + 77: uint16(33750), + 78: uint16(33980), + 79: uint16(20661), + 80: uint16(22512), + 81: uint16(23488), + 82: uint16(23528), + 83: uint16(24425), + 84: uint16(25505), + 85: uint16(30758), + 86: uint16(32181), + 87: uint16(33756), + 88: uint16(34081), + 89: uint16(37319), + 90: uint16(37365), + 91: uint16(20874), + 92: uint16(26613), + 93: uint16(31574), + }, + 83: { + 0: uint16(36012), + 1: uint16(20932), + 2: uint16(22971), + 3: uint16(24765), + 4: uint16(34389), + 5: uint16(20508), + 6: uint16(63999), + 7: uint16(21076), + 8: uint16(23610), + 9: uint16(24957), + 10: uint16(25114), + 11: uint16(25299), + 12: uint16(25842), + 13: uint16(26021), + 14: uint16(28364), + 15: uint16(30240), + 16: uint16(33034), + 17: uint16(36448), + 18: uint16(38495), + 19: uint16(38587), + 20: uint16(20191), + 21: uint16(21315), + 22: uint16(21912), + 23: uint16(22825), + 24: uint16(24029), + 25: uint16(25797), + 26: uint16(27849), + 27: uint16(28154), + 28: uint16(29588), + 29: uint16(31359), + 30: uint16(33307), + 31: uint16(34214), + 32: uint16(36068), + 33: uint16(36368), + 34: uint16(36983), + 35: uint16(37351), + 36: uint16(38369), + 37: uint16(38433), + 38: uint16(38854), + 39: uint16(20984), + 40: uint16(21746), + 41: uint16(21894), + 42: uint16(24505), + 43: uint16(25764), + 44: uint16(28552), + 45: uint16(32180), + 46: uint16(36639), + 47: uint16(36685), + 48: uint16(37941), + 49: uint16(20681), + 50: uint16(23574), + 51: uint16(27838), + 52: uint16(28155), + 53: uint16(29979), + 54: uint16(30651), + 55: uint16(31805), + 56: uint16(31844), + 57: uint16(35449), + 58: uint16(35522), + 59: uint16(22558), + 60: uint16(22974), + 61: uint16(24086), + 62: uint16(25463), + 63: uint16(29266), + 64: uint16(30090), + 65: uint16(30571), + 66: uint16(35548), + 67: uint16(36028), + 68: uint16(36626), + 69: uint16(24307), + 70: uint16(26228), + 71: uint16(28152), + 72: uint16(32893), + 73: uint16(33729), + 74: uint16(35531), + 75: uint16(38737), + 76: uint16(39894), + 77: uint16(64000), + 78: uint16(21059), + 79: uint16(26367), + 80: uint16(28053), + 81: uint16(28399), + 82: uint16(32224), + 83: uint16(35558), + 84: uint16(36910), + 85: uint16(36958), + 86: uint16(39636), + 87: uint16(21021), + 88: uint16(21119), + 89: uint16(21736), + 90: uint16(24980), + 91: uint16(25220), + 92: uint16(25307), + 93: uint16(26786), + }, + 84: { + 0: uint16(26898), + 1: uint16(26970), + 2: uint16(27189), + 3: uint16(28818), + 4: uint16(28966), + 5: uint16(30813), + 6: uint16(30977), + 7: uint16(30990), + 8: uint16(31186), + 9: uint16(31245), + 10: uint16(32918), + 11: uint16(33400), + 12: uint16(33493), + 13: uint16(33609), + 14: uint16(34121), + 15: uint16(35970), + 16: uint16(36229), + 17: uint16(37218), + 18: uint16(37259), + 19: uint16(37294), + 20: uint16(20419), + 21: uint16(22225), + 22: uint16(29165), + 23: uint16(30679), + 24: uint16(34560), + 25: uint16(35320), + 26: uint16(23544), + 27: uint16(24534), + 28: uint16(26449), + 29: uint16(37032), + 30: uint16(21474), + 31: uint16(22618), + 32: uint16(23541), + 33: uint16(24740), + 34: uint16(24961), + 35: uint16(25696), + 36: uint16(32317), + 37: uint16(32880), + 38: uint16(34085), + 39: uint16(37507), + 40: uint16(25774), + 41: uint16(20652), + 42: uint16(23828), + 43: uint16(26368), + 44: uint16(22684), + 45: uint16(25277), + 46: uint16(25512), + 47: uint16(26894), + 48: uint16(27000), + 49: uint16(27166), + 50: uint16(28267), + 51: uint16(30394), + 52: uint16(31179), + 53: uint16(33467), + 54: uint16(33833), + 55: uint16(35535), + 56: uint16(36264), + 57: uint16(36861), + 58: uint16(37138), + 59: uint16(37195), + 60: uint16(37276), + 61: uint16(37648), + 62: uint16(37656), + 63: uint16(37786), + 64: uint16(38619), + 65: uint16(39478), + 66: uint16(39949), + 67: uint16(19985), + 68: uint16(30044), + 69: uint16(31069), + 70: uint16(31482), + 71: uint16(31569), + 72: uint16(31689), + 73: uint16(32302), + 74: uint16(33988), + 75: uint16(36441), + 76: uint16(36468), + 77: uint16(36600), + 78: uint16(36880), + 79: uint16(26149), + 80: uint16(26943), + 81: uint16(29763), + 82: uint16(20986), + 83: uint16(26414), + 84: uint16(40668), + 85: uint16(20805), + 86: uint16(24544), + 87: uint16(27798), + 88: uint16(34802), + 89: uint16(34909), + 90: uint16(34935), + 91: uint16(24756), + 92: uint16(33205), + 93: uint16(33795), + }, + 85: { + 0: uint16(36101), + 1: uint16(21462), + 2: uint16(21561), + 3: uint16(22068), + 4: uint16(23094), + 5: uint16(23601), + 6: uint16(28810), + 7: uint16(32736), + 8: uint16(32858), + 9: uint16(33030), + 10: uint16(33261), + 11: uint16(36259), + 12: uint16(37257), + 13: uint16(39519), + 14: uint16(40434), + 15: uint16(20596), + 16: uint16(20164), + 17: uint16(21408), + 18: uint16(24827), + 19: uint16(28204), + 20: uint16(23652), + 21: uint16(20360), + 22: uint16(20516), + 23: uint16(21988), + 24: uint16(23769), + 25: uint16(24159), + 26: uint16(24677), + 27: uint16(26772), + 28: uint16(27835), + 29: uint16(28100), + 30: uint16(29118), + 31: uint16(30164), + 32: uint16(30196), + 33: uint16(30305), + 34: uint16(31258), + 35: uint16(31305), + 36: uint16(32199), + 37: uint16(32251), + 38: uint16(32622), + 39: uint16(33268), + 40: uint16(34473), + 41: uint16(36636), + 42: uint16(38601), + 43: uint16(39347), + 44: uint16(40786), + 45: uint16(21063), + 46: uint16(21189), + 47: uint16(39149), + 48: uint16(35242), + 49: uint16(19971), + 50: uint16(26578), + 51: uint16(28422), + 52: uint16(20405), + 53: uint16(23522), + 54: uint16(26517), + 55: uint16(27784), + 56: uint16(28024), + 57: uint16(29723), + 58: uint16(30759), + 59: uint16(37341), + 60: uint16(37756), + 61: uint16(34756), + 62: uint16(31204), + 63: uint16(31281), + 64: uint16(24555), + 65: uint16(20182), + 66: uint16(21668), + 67: uint16(21822), + 68: uint16(22702), + 69: uint16(22949), + 70: uint16(24816), + 71: uint16(25171), + 72: uint16(25302), + 73: uint16(26422), + 74: uint16(26965), + 75: uint16(33333), + 76: uint16(38464), + 77: uint16(39345), + 78: uint16(39389), + 79: uint16(20524), + 80: uint16(21331), + 81: uint16(21828), + 82: uint16(22396), + 83: uint16(64001), + 84: uint16(25176), + 85: uint16(64002), + 86: uint16(25826), + 87: uint16(26219), + 88: uint16(26589), + 89: uint16(28609), + 90: uint16(28655), + 91: uint16(29730), + 92: uint16(29752), + 93: uint16(35351), + }, + 86: { + 0: uint16(37944), + 1: uint16(21585), + 2: uint16(22022), + 3: uint16(22374), + 4: uint16(24392), + 5: uint16(24986), + 6: uint16(27470), + 7: uint16(28760), + 8: uint16(28845), + 9: uint16(32187), + 10: uint16(35477), + 11: uint16(22890), + 12: uint16(33067), + 13: uint16(25506), + 14: uint16(30472), + 15: uint16(32829), + 16: uint16(36010), + 17: uint16(22612), + 18: uint16(25645), + 19: uint16(27067), + 20: uint16(23445), + 21: uint16(24081), + 22: uint16(28271), + 23: uint16(64003), + 24: uint16(34153), + 25: uint16(20812), + 26: uint16(21488), + 27: uint16(22826), + 28: uint16(24608), + 29: uint16(24907), + 30: uint16(27526), + 31: uint16(27760), + 32: uint16(27888), + 33: uint16(31518), + 34: uint16(32974), + 35: uint16(33492), + 36: uint16(36294), + 37: uint16(37040), + 38: uint16(39089), + 39: uint16(64004), + 40: uint16(25799), + 41: uint16(28580), + 42: uint16(25745), + 43: uint16(25860), + 44: uint16(20814), + 45: uint16(21520), + 46: uint16(22303), + 47: uint16(35342), + 48: uint16(24927), + 49: uint16(26742), + 50: uint16(64005), + 51: uint16(30171), + 52: uint16(31570), + 53: uint16(32113), + 54: uint16(36890), + 55: uint16(22534), + 56: uint16(27084), + 57: uint16(33151), + 58: uint16(35114), + 59: uint16(36864), + 60: uint16(38969), + 61: uint16(20600), + 62: uint16(22871), + 63: uint16(22956), + 64: uint16(25237), + 65: uint16(36879), + 66: uint16(39722), + 67: uint16(24925), + 68: uint16(29305), + 69: uint16(38358), + 70: uint16(22369), + 71: uint16(23110), + 72: uint16(24052), + 73: uint16(25226), + 74: uint16(25773), + 75: uint16(25850), + 76: uint16(26487), + 77: uint16(27874), + 78: uint16(27966), + 79: uint16(29228), + 80: uint16(29750), + 81: uint16(30772), + 82: uint16(32631), + 83: uint16(33453), + 84: uint16(36315), + 85: uint16(38935), + 86: uint16(21028), + 87: uint16(22338), + 88: uint16(26495), + 89: uint16(29256), + 90: uint16(29923), + 91: uint16(36009), + 92: uint16(36774), + 93: uint16(37393), + }, + 87: { + 0: uint16(38442), + 1: uint16(20843), + 2: uint16(21485), + 3: uint16(25420), + 4: uint16(20329), + 5: uint16(21764), + 6: uint16(24726), + 7: uint16(25943), + 8: uint16(27803), + 9: uint16(28031), + 10: uint16(29260), + 11: uint16(29437), + 12: uint16(31255), + 13: uint16(35207), + 14: uint16(35997), + 15: uint16(24429), + 16: uint16(28558), + 17: uint16(28921), + 18: uint16(33192), + 19: uint16(24846), + 20: uint16(20415), + 21: uint16(20559), + 22: uint16(25153), + 23: uint16(29255), + 24: uint16(31687), + 25: uint16(32232), + 26: uint16(32745), + 27: uint16(36941), + 28: uint16(38829), + 29: uint16(39449), + 30: uint16(36022), + 31: uint16(22378), + 32: uint16(24179), + 33: uint16(26544), + 34: uint16(33805), + 35: uint16(35413), + 36: uint16(21536), + 37: uint16(23318), + 38: uint16(24163), + 39: uint16(24290), + 40: uint16(24330), + 41: uint16(25987), + 42: uint16(32954), + 43: uint16(34109), + 44: uint16(38281), + 45: uint16(38491), + 46: uint16(20296), + 47: uint16(21253), + 48: uint16(21261), + 49: uint16(21263), + 50: uint16(21638), + 51: uint16(21754), + 52: uint16(22275), + 53: uint16(24067), + 54: uint16(24598), + 55: uint16(25243), + 56: uint16(25265), + 57: uint16(25429), + 58: uint16(64006), + 59: uint16(27873), + 60: uint16(28006), + 61: uint16(30129), + 62: uint16(30770), + 63: uint16(32990), + 64: uint16(33071), + 65: uint16(33502), + 66: uint16(33889), + 67: uint16(33970), + 68: uint16(34957), + 69: uint16(35090), + 70: uint16(36875), + 71: uint16(37610), + 72: uint16(39165), + 73: uint16(39825), + 74: uint16(24133), + 75: uint16(26292), + 76: uint16(26333), + 77: uint16(28689), + 78: uint16(29190), + 79: uint16(64007), + 80: uint16(20469), + 81: uint16(21117), + 82: uint16(24426), + 83: uint16(24915), + 84: uint16(26451), + 85: uint16(27161), + 86: uint16(28418), + 87: uint16(29922), + 88: uint16(31080), + 89: uint16(34920), + 90: uint16(35961), + 91: uint16(39111), + 92: uint16(39108), + 93: uint16(39491), + }, + 88: { + 0: uint16(21697), + 1: uint16(31263), + 2: uint16(26963), + 3: uint16(35575), + 4: uint16(35914), + 5: uint16(39080), + 6: uint16(39342), + 7: uint16(24444), + 8: uint16(25259), + 9: uint16(30130), + 10: uint16(30382), + 11: uint16(34987), + 12: uint16(36991), + 13: uint16(38466), + 14: uint16(21305), + 15: uint16(24380), + 16: uint16(24517), + 17: uint16(27852), + 18: uint16(29644), + 19: uint16(30050), + 20: uint16(30091), + 21: uint16(31558), + 22: uint16(33534), + 23: uint16(39325), + 24: uint16(20047), + 25: uint16(36924), + 26: uint16(19979), + 27: uint16(20309), + 28: uint16(21414), + 29: uint16(22799), + 30: uint16(24264), + 31: uint16(26160), + 32: uint16(27827), + 33: uint16(29781), + 34: uint16(33655), + 35: uint16(34662), + 36: uint16(36032), + 37: uint16(36944), + 38: uint16(38686), + 39: uint16(39957), + 40: uint16(22737), + 41: uint16(23416), + 42: uint16(34384), + 43: uint16(35604), + 44: uint16(40372), + 45: uint16(23506), + 46: uint16(24680), + 47: uint16(24717), + 48: uint16(26097), + 49: uint16(27735), + 50: uint16(28450), + 51: uint16(28579), + 52: uint16(28698), + 53: uint16(32597), + 54: uint16(32752), + 55: uint16(38289), + 56: uint16(38290), + 57: uint16(38480), + 58: uint16(38867), + 59: uint16(21106), + 60: uint16(36676), + 61: uint16(20989), + 62: uint16(21547), + 63: uint16(21688), + 64: uint16(21859), + 65: uint16(21898), + 66: uint16(27323), + 67: uint16(28085), + 68: uint16(32216), + 69: uint16(33382), + 70: uint16(37532), + 71: uint16(38519), + 72: uint16(40569), + 73: uint16(21512), + 74: uint16(21704), + 75: uint16(30418), + 76: uint16(34532), + 77: uint16(38308), + 78: uint16(38356), + 79: uint16(38492), + 80: uint16(20130), + 81: uint16(20233), + 82: uint16(23022), + 83: uint16(23270), + 84: uint16(24055), + 85: uint16(24658), + 86: uint16(25239), + 87: uint16(26477), + 88: uint16(26689), + 89: uint16(27782), + 90: uint16(28207), + 91: uint16(32568), + 92: uint16(32923), + 93: uint16(33322), + }, + 89: { + 0: uint16(64008), + 1: uint16(64009), + 2: uint16(38917), + 3: uint16(20133), + 4: uint16(20565), + 5: uint16(21683), + 6: uint16(22419), + 7: uint16(22874), + 8: uint16(23401), + 9: uint16(23475), + 10: uint16(25032), + 11: uint16(26999), + 12: uint16(28023), + 13: uint16(28707), + 14: uint16(34809), + 15: uint16(35299), + 16: uint16(35442), + 17: uint16(35559), + 18: uint16(36994), + 19: uint16(39405), + 20: uint16(39608), + 21: uint16(21182), + 22: uint16(26680), + 23: uint16(20502), + 24: uint16(24184), + 25: uint16(26447), + 26: uint16(33607), + 27: uint16(34892), + 28: uint16(20139), + 29: uint16(21521), + 30: uint16(22190), + 31: uint16(29670), + 32: uint16(37141), + 33: uint16(38911), + 34: uint16(39177), + 35: uint16(39255), + 36: uint16(39321), + 37: uint16(22099), + 38: uint16(22687), + 39: uint16(34395), + 40: uint16(35377), + 41: uint16(25010), + 42: uint16(27382), + 43: uint16(29563), + 44: uint16(36562), + 45: uint16(27463), + 46: uint16(38570), + 47: uint16(39511), + 48: uint16(22869), + 49: uint16(29184), + 50: uint16(36203), + 51: uint16(38761), + 52: uint16(20436), + 53: uint16(23796), + 54: uint16(24358), + 55: uint16(25080), + 56: uint16(26203), + 57: uint16(27883), + 58: uint16(28843), + 59: uint16(29572), + 60: uint16(29625), + 61: uint16(29694), + 62: uint16(30505), + 63: uint16(30541), + 64: uint16(32067), + 65: uint16(32098), + 66: uint16(32291), + 67: uint16(33335), + 68: uint16(34898), + 69: uint16(64010), + 70: uint16(36066), + 71: uint16(37449), + 72: uint16(39023), + 73: uint16(23377), + 74: uint16(31348), + 75: uint16(34880), + 76: uint16(38913), + 77: uint16(23244), + 78: uint16(20448), + 79: uint16(21332), + 80: uint16(22846), + 81: uint16(23805), + 82: uint16(25406), + 83: uint16(28025), + 84: uint16(29433), + 85: uint16(33029), + 86: uint16(33031), + 87: uint16(33698), + 88: uint16(37583), + 89: uint16(38960), + 90: uint16(20136), + 91: uint16(20804), + 92: uint16(21009), + 93: uint16(22411), + }, + 90: { + 0: uint16(24418), + 1: uint16(27842), + 2: uint16(28366), + 3: uint16(28677), + 4: uint16(28752), + 5: uint16(28847), + 6: uint16(29074), + 7: uint16(29673), + 8: uint16(29801), + 9: uint16(33610), + 10: uint16(34722), + 11: uint16(34913), + 12: uint16(36872), + 13: uint16(37026), + 14: uint16(37795), + 15: uint16(39336), + 16: uint16(20846), + 17: uint16(24407), + 18: uint16(24800), + 19: uint16(24935), + 20: uint16(26291), + 21: uint16(34137), + 22: uint16(36426), + 23: uint16(37295), + 24: uint16(38795), + 25: uint16(20046), + 26: uint16(20114), + 27: uint16(21628), + 28: uint16(22741), + 29: uint16(22778), + 30: uint16(22909), + 31: uint16(23733), + 32: uint16(24359), + 33: uint16(25142), + 34: uint16(25160), + 35: uint16(26122), + 36: uint16(26215), + 37: uint16(27627), + 38: uint16(28009), + 39: uint16(28111), + 40: uint16(28246), + 41: uint16(28408), + 42: uint16(28564), + 43: uint16(28640), + 44: uint16(28649), + 45: uint16(28765), + 46: uint16(29392), + 47: uint16(29733), + 48: uint16(29786), + 49: uint16(29920), + 50: uint16(30355), + 51: uint16(31068), + 52: uint16(31946), + 53: uint16(32286), + 54: uint16(32993), + 55: uint16(33446), + 56: uint16(33899), + 57: uint16(33983), + 58: uint16(34382), + 59: uint16(34399), + 60: uint16(34676), + 61: uint16(35703), + 62: uint16(35946), + 63: uint16(37804), + 64: uint16(38912), + 65: uint16(39013), + 66: uint16(24785), + 67: uint16(25110), + 68: uint16(37239), + 69: uint16(23130), + 70: uint16(26127), + 71: uint16(28151), + 72: uint16(28222), + 73: uint16(29759), + 74: uint16(39746), + 75: uint16(24573), + 76: uint16(24794), + 77: uint16(31503), + 78: uint16(21700), + 79: uint16(24344), + 80: uint16(27742), + 81: uint16(27859), + 82: uint16(27946), + 83: uint16(28888), + 84: uint16(32005), + 85: uint16(34425), + 86: uint16(35340), + 87: uint16(40251), + 88: uint16(21270), + 89: uint16(21644), + 90: uint16(23301), + 91: uint16(27194), + 92: uint16(28779), + 93: uint16(30069), + }, + 91: { + 0: uint16(31117), + 1: uint16(31166), + 2: uint16(33457), + 3: uint16(33775), + 4: uint16(35441), + 5: uint16(35649), + 6: uint16(36008), + 7: uint16(38772), + 8: uint16(64011), + 9: uint16(25844), + 10: uint16(25899), + 11: uint16(30906), + 12: uint16(30907), + 13: uint16(31339), + 14: uint16(20024), + 15: uint16(21914), + 16: uint16(22864), + 17: uint16(23462), + 18: uint16(24187), + 19: uint16(24739), + 20: uint16(25563), + 21: uint16(27489), + 22: uint16(26213), + 23: uint16(26707), + 24: uint16(28185), + 25: uint16(29029), + 26: uint16(29872), + 27: uint16(32008), + 28: uint16(36996), + 29: uint16(39529), + 30: uint16(39973), + 31: uint16(27963), + 32: uint16(28369), + 33: uint16(29502), + 34: uint16(35905), + 35: uint16(38346), + 36: uint16(20976), + 37: uint16(24140), + 38: uint16(24488), + 39: uint16(24653), + 40: uint16(24822), + 41: uint16(24880), + 42: uint16(24908), + 43: uint16(26179), + 44: uint16(26180), + 45: uint16(27045), + 46: uint16(27841), + 47: uint16(28255), + 48: uint16(28361), + 49: uint16(28514), + 50: uint16(29004), + 51: uint16(29852), + 52: uint16(30343), + 53: uint16(31681), + 54: uint16(31783), + 55: uint16(33618), + 56: uint16(34647), + 57: uint16(36945), + 58: uint16(38541), + 59: uint16(40643), + 60: uint16(21295), + 61: uint16(22238), + 62: uint16(24315), + 63: uint16(24458), + 64: uint16(24674), + 65: uint16(24724), + 66: uint16(25079), + 67: uint16(26214), + 68: uint16(26371), + 69: uint16(27292), + 70: uint16(28142), + 71: uint16(28590), + 72: uint16(28784), + 73: uint16(29546), + 74: uint16(32362), + 75: uint16(33214), + 76: uint16(33588), + 77: uint16(34516), + 78: uint16(35496), + 79: uint16(36036), + 80: uint16(21123), + 81: uint16(29554), + 82: uint16(23446), + 83: uint16(27243), + 84: uint16(37892), + 85: uint16(21742), + 86: uint16(22150), + 87: uint16(23389), + 88: uint16(25928), + 89: uint16(25989), + 90: uint16(26313), + 91: uint16(26783), + 92: uint16(28045), + 93: uint16(28102), + }, + 92: { + 0: uint16(29243), + 1: uint16(32948), + 2: uint16(37237), + 3: uint16(39501), + 4: uint16(20399), + 5: uint16(20505), + 6: uint16(21402), + 7: uint16(21518), + 8: uint16(21564), + 9: uint16(21897), + 10: uint16(21957), + 11: uint16(24127), + 12: uint16(24460), + 13: uint16(26429), + 14: uint16(29030), + 15: uint16(29661), + 16: uint16(36869), + 17: uint16(21211), + 18: uint16(21235), + 19: uint16(22628), + 20: uint16(22734), + 21: uint16(28932), + 22: uint16(29071), + 23: uint16(29179), + 24: uint16(34224), + 25: uint16(35347), + 26: uint16(26248), + 27: uint16(34216), + 28: uint16(21927), + 29: uint16(26244), + 30: uint16(29002), + 31: uint16(33841), + 32: uint16(21321), + 33: uint16(21913), + 34: uint16(27585), + 35: uint16(24409), + 36: uint16(24509), + 37: uint16(25582), + 38: uint16(26249), + 39: uint16(28999), + 40: uint16(35569), + 41: uint16(36637), + 42: uint16(40638), + 43: uint16(20241), + 44: uint16(25658), + 45: uint16(28875), + 46: uint16(30054), + 47: uint16(34407), + 48: uint16(24676), + 49: uint16(35662), + 50: uint16(40440), + 51: uint16(20807), + 52: uint16(20982), + 53: uint16(21256), + 54: uint16(27958), + 55: uint16(33016), + 56: uint16(40657), + 57: uint16(26133), + 58: uint16(27427), + 59: uint16(28824), + 60: uint16(30165), + 61: uint16(21507), + 62: uint16(23673), + 63: uint16(32007), + 64: uint16(35350), + 65: uint16(27424), + 66: uint16(27453), + 67: uint16(27462), + 68: uint16(21560), + 69: uint16(24688), + 70: uint16(27965), + 71: uint16(32725), + 72: uint16(33288), + 73: uint16(20694), + 74: uint16(20958), + 75: uint16(21916), + 76: uint16(22123), + 77: uint16(22221), + 78: uint16(23020), + 79: uint16(23305), + 80: uint16(24076), + 81: uint16(24985), + 82: uint16(24984), + 83: uint16(25137), + 84: uint16(26206), + 85: uint16(26342), + 86: uint16(29081), + 87: uint16(29113), + 88: uint16(29114), + 89: uint16(29351), + 90: uint16(31143), + 91: uint16(31232), + 92: uint16(32690), + 93: uint16(35440), + }, +} + +var _rev_jis = [6879]uint16{ + 0: uint16(31), + 1: uint16(80), + 2: uint16(81), + 3: uint16(87), + 4: uint16(14), + 5: uint16(299), + 6: uint16(74), + 7: uint16(61), + 8: uint16(12), + 9: uint16(344), + 10: uint16(62), + 11: uint16(63), + 12: uint16(1280), + 13: uint16(1281), + 14: uint16(1282), + 15: uint16(1283), + 16: uint16(1284), + 17: uint16(1285), + 18: uint16(1286), + 19: uint16(1287), + 20: uint16(1288), + 21: uint16(1289), + 22: uint16(1290), + 23: uint16(1291), + 24: uint16(1292), + 25: uint16(1293), + 26: uint16(1294), + 27: uint16(1295), + 28: uint16(1296), + 29: uint16(1297), + 30: uint16(1298), + 31: uint16(1299), + 32: uint16(1300), + 33: uint16(1301), + 34: uint16(1302), + 35: uint16(1303), + 36: uint16(1312), + 37: uint16(1313), + 38: uint16(1314), + 39: uint16(1315), + 40: uint16(1316), + 41: uint16(1317), + 42: uint16(1318), + 43: uint16(1319), + 44: uint16(1320), + 45: uint16(1321), + 46: uint16(1322), + 47: uint16(1323), + 48: uint16(1324), + 49: uint16(1325), + 50: uint16(1326), + 51: uint16(1327), + 52: uint16(1328), + 53: uint16(1329), + 54: uint16(1330), + 55: uint16(1331), + 56: uint16(1332), + 57: uint16(1333), + 58: uint16(1334), + 59: uint16(1335), + 60: uint16(1542), + 61: uint16(1536), + 62: uint16(1537), + 63: uint16(1538), + 64: uint16(1539), + 65: uint16(1540), + 66: uint16(1541), + 67: uint16(1543), + 68: uint16(1544), + 69: uint16(1545), + 70: uint16(1546), + 71: uint16(1547), + 72: uint16(1548), + 73: uint16(1549), + 74: uint16(1550), + 75: uint16(1551), + 76: uint16(1552), + 77: uint16(1553), + 78: uint16(1554), + 79: uint16(1555), + 80: uint16(1556), + 81: uint16(1557), + 82: uint16(1558), + 83: uint16(1559), + 84: uint16(1560), + 85: uint16(1561), + 86: uint16(1562), + 87: uint16(1563), + 88: uint16(1564), + 89: uint16(1565), + 90: uint16(1566), + 91: uint16(1567), + 92: uint16(1568), + 93: uint16(1584), + 94: uint16(1585), + 95: uint16(1586), + 96: uint16(1587), + 97: uint16(1588), + 98: uint16(1589), + 99: uint16(1591), + 100: uint16(1592), + 101: uint16(1593), + 102: uint16(1594), + 103: uint16(1595), + 104: uint16(1596), + 105: uint16(1597), + 106: uint16(1598), + 107: uint16(1599), + 108: uint16(1600), + 109: uint16(1601), + 110: uint16(1602), + 111: uint16(1603), + 112: uint16(1604), + 113: uint16(1605), + 114: uint16(1606), + 115: uint16(1607), + 116: uint16(1608), + 117: uint16(1609), + 118: uint16(1610), + 119: uint16(1611), + 120: uint16(1612), + 121: uint16(1613), + 122: uint16(1614), + 123: uint16(1615), + 124: uint16(1616), + 125: uint16(1590), + 126: uint16(29), + 127: uint16(28), + 128: uint16(33), + 129: uint16(37), + 130: uint16(38), + 131: uint16(39), + 132: uint16(40), + 133: uint16(342), + 134: uint16(343), + 135: uint16(36), + 136: uint16(35), + 137: uint16(338), + 138: uint16(75), + 139: uint16(76), + 140: uint16(263), + 141: uint16(77), + 142: uint16(337), + 143: uint16(266), + 144: uint16(267), + 145: uint16(265), + 146: uint16(268), + 147: uint16(300), + 148: uint16(301), + 149: uint16(302), + 150: uint16(318), + 151: uint16(303), + 152: uint16(319), + 153: uint16(281), + 154: uint16(282), + 155: uint16(60), + 156: uint16(324), + 157: uint16(326), + 158: uint16(70), + 159: uint16(315), + 160: uint16(297), + 161: uint16(298), + 162: uint16(288), + 163: uint16(287), + 164: uint16(328), + 165: uint16(329), + 166: uint16(71), + 167: uint16(327), + 168: uint16(325), + 169: uint16(321), + 170: uint16(65), + 171: uint16(320), + 172: uint16(68), + 173: uint16(69), + 174: uint16(322), + 175: uint16(323), + 176: uint16(285), + 177: uint16(286), + 178: uint16(283), + 179: uint16(284), + 180: uint16(316), + 181: uint16(317), + 182: uint16(1792), + 183: uint16(1803), + 184: uint16(1793), + 185: uint16(1804), + 186: uint16(1794), + 187: uint16(1805), + 188: uint16(1795), + 189: uint16(1806), + 190: uint16(1797), + 191: uint16(1808), + 192: uint16(1796), + 193: uint16(1807), + 194: uint16(1798), + 195: uint16(1819), + 196: uint16(1814), + 197: uint16(1809), + 198: uint16(1800), + 199: uint16(1821), + 200: uint16(1816), + 201: uint16(1811), + 202: uint16(1799), + 203: uint16(1815), + 204: uint16(1820), + 205: uint16(1810), + 206: uint16(1801), + 207: uint16(1817), + 208: uint16(1822), + 209: uint16(1812), + 210: uint16(1802), + 211: uint16(1818), + 212: uint16(1823), + 213: uint16(1813), + 214: uint16(258), + 215: uint16(257), + 216: uint16(260), + 217: uint16(259), + 218: uint16(262), + 219: uint16(261), + 220: uint16(256), + 221: uint16(93), + 222: uint16(90), + 223: uint16(92), + 224: uint16(91), + 225: uint16(349), + 226: uint16(89), + 227: uint16(88), + 228: uint16(73), + 229: uint16(72), + 230: uint16(341), + 231: uint16(340), + 232: uint16(339), + 234: uint16(1), + 235: uint16(2), + 236: uint16(22), + 237: uint16(24), + 238: uint16(25), + 239: uint16(26), + 240: uint16(49), + 241: uint16(50), + 242: uint16(51), + 243: uint16(52), + 244: uint16(53), + 245: uint16(54), + 246: uint16(55), + 247: uint16(56), + 248: uint16(57), + 249: uint16(58), + 250: uint16(264), + 251: uint16(269), + 252: uint16(43), + 253: uint16(44), + 254: uint16(32), + 255: uint16(768), + 256: uint16(769), + 257: uint16(770), + 258: uint16(771), + 259: uint16(772), + 260: uint16(773), + 261: uint16(774), + 262: uint16(775), + 263: uint16(776), + 264: uint16(777), + 265: uint16(778), + 266: uint16(779), + 267: uint16(780), + 268: uint16(781), + 269: uint16(782), + 270: uint16(783), + 271: uint16(784), + 272: uint16(785), + 273: uint16(786), + 274: uint16(787), + 275: uint16(788), + 276: uint16(789), + 277: uint16(790), + 278: uint16(791), + 279: uint16(792), + 280: uint16(793), + 281: uint16(794), + 282: uint16(795), + 283: uint16(796), + 284: uint16(797), + 285: uint16(798), + 286: uint16(799), + 287: uint16(800), + 288: uint16(801), + 289: uint16(802), + 290: uint16(803), + 291: uint16(804), + 292: uint16(805), + 293: uint16(806), + 294: uint16(807), + 295: uint16(808), + 296: uint16(809), + 297: uint16(810), + 298: uint16(811), + 299: uint16(812), + 300: uint16(813), + 301: uint16(814), + 302: uint16(815), + 303: uint16(816), + 304: uint16(817), + 305: uint16(818), + 306: uint16(819), + 307: uint16(820), + 308: uint16(821), + 309: uint16(822), + 310: uint16(823), + 311: uint16(824), + 312: uint16(825), + 313: uint16(826), + 314: uint16(827), + 315: uint16(828), + 316: uint16(829), + 317: uint16(830), + 318: uint16(831), + 319: uint16(832), + 320: uint16(833), + 321: uint16(834), + 322: uint16(835), + 323: uint16(836), + 324: uint16(837), + 325: uint16(838), + 326: uint16(839), + 327: uint16(840), + 328: uint16(841), + 329: uint16(842), + 330: uint16(843), + 331: uint16(844), + 332: uint16(845), + 333: uint16(846), + 334: uint16(847), + 335: uint16(848), + 336: uint16(849), + 337: uint16(850), + 338: uint16(10), + 339: uint16(11), + 340: uint16(20), + 341: uint16(21), + 342: uint16(1024), + 343: uint16(1025), + 344: uint16(1026), + 345: uint16(1027), + 346: uint16(1028), + 347: uint16(1029), + 348: uint16(1030), + 349: uint16(1031), + 350: uint16(1032), + 351: uint16(1033), + 352: uint16(1034), + 353: uint16(1035), + 354: uint16(1036), + 355: uint16(1037), + 356: uint16(1038), + 357: uint16(1039), + 358: uint16(1040), + 359: uint16(1041), + 360: uint16(1042), + 361: uint16(1043), + 362: uint16(1044), + 363: uint16(1045), + 364: uint16(1046), + 365: uint16(1047), + 366: uint16(1048), + 367: uint16(1049), + 368: uint16(1050), + 369: uint16(1051), + 370: uint16(1052), + 371: uint16(1053), + 372: uint16(1054), + 373: uint16(1055), + 374: uint16(1056), + 375: uint16(1057), + 376: uint16(1058), + 377: uint16(1059), + 378: uint16(1060), + 379: uint16(1061), + 380: uint16(1062), + 381: uint16(1063), + 382: uint16(1064), + 383: uint16(1065), + 384: uint16(1066), + 385: uint16(1067), + 386: uint16(1068), + 387: uint16(1069), + 388: uint16(1070), + 389: uint16(1071), + 390: uint16(1072), + 391: uint16(1073), + 392: uint16(1074), + 393: uint16(1075), + 394: uint16(1076), + 395: uint16(1077), + 396: uint16(1078), + 397: uint16(1079), + 398: uint16(1080), + 399: uint16(1081), + 400: uint16(1082), + 401: uint16(1083), + 402: uint16(1084), + 403: uint16(1085), + 404: uint16(1086), + 405: uint16(1087), + 406: uint16(1088), + 407: uint16(1089), + 408: uint16(1090), + 409: uint16(1091), + 410: uint16(1092), + 411: uint16(1093), + 412: uint16(1094), + 413: uint16(1095), + 414: uint16(1096), + 415: uint16(1097), + 416: uint16(1098), + 417: uint16(1099), + 418: uint16(1100), + 419: uint16(1101), + 420: uint16(1102), + 421: uint16(1103), + 422: uint16(1104), + 423: uint16(1105), + 424: uint16(1106), + 425: uint16(1107), + 426: uint16(1108), + 427: uint16(1109), + 428: uint16(5), + 429: uint16(27), + 430: uint16(18), + 431: uint16(19), + 432: uint16(3915), + 433: uint16(8793), + 434: uint16(6934), + 435: uint16(10843), + 436: uint16(7493), + 437: uint16(6671), + 438: uint16(7492), + 439: uint16(4379), + 440: uint16(10291), + 441: uint16(11294), + 442: uint16(12033), + 443: uint16(4110), + 444: uint16(4685), + 445: uint16(12034), + 446: uint16(7939), + 447: uint16(12577), + 448: uint16(5173), + 449: uint16(10521), + 450: uint16(7494), + 451: uint16(11549), + 452: uint16(10529), + 453: uint16(12035), + 454: uint16(8773), + 455: uint16(12036), + 456: uint16(5465), + 457: uint16(12037), + 458: uint16(4924), + 459: uint16(8719), + 460: uint16(6982), + 461: uint16(12038), + 462: uint16(12039), + 463: uint16(12040), + 464: uint16(9748), + 465: uint16(5174), + 466: uint16(9750), + 467: uint16(9538), + 468: uint16(5922), + 469: uint16(10770), + 470: uint16(18472), + 471: uint16(12041), + 472: uint16(7495), + 473: uint16(12042), + 474: uint16(4372), + 475: uint16(5444), + 476: uint16(5967), + 477: uint16(11080), + 478: uint16(13573), + 479: uint16(11343), + 480: uint16(9564), + 481: uint16(4868), + 482: uint16(5140), + 483: uint16(12043), + 484: uint16(12044), + 485: uint16(11546), + 486: uint16(11292), + 487: uint16(8263), + 488: uint16(12046), + 489: uint16(6741), + 490: uint16(9554), + 491: uint16(12049), + 492: uint16(4125), + 493: uint16(5950), + 494: uint16(5949), + 495: uint16(3909), + 496: uint16(11818), + 497: uint16(11817), + 498: uint16(6418), + 499: uint16(3840), + 500: uint16(12050), + 501: uint16(12051), + 502: uint16(12052), + 503: uint16(10771), + 504: uint16(12053), + 505: uint16(5969), + 506: uint16(3910), + 507: uint16(10833), + 508: uint16(5211), + 509: uint16(5212), + 510: uint16(5213), + 511: uint16(9025), + 512: uint16(11547), + 513: uint16(12054), + 514: uint16(12055), + 515: uint16(12056), + 516: uint16(7724), + 517: uint16(7193), + 518: uint16(7725), + 519: uint16(12061), + 520: uint16(12059), + 521: uint16(12060), + 522: uint16(5175), + 523: uint16(6402), + 524: uint16(4431), + 525: uint16(12058), + 526: uint16(12057), + 527: uint16(10504), + 528: uint16(6693), + 529: uint16(6692), + 530: uint16(8477), + 531: uint16(12062), + 532: uint16(10292), + 533: uint16(8006), + 534: uint16(23), + 535: uint16(12063), + 536: uint16(12065), + 537: uint16(8516), + 538: uint16(11584), + 539: uint16(3881), + 540: uint16(12064), + 541: uint16(4381), + 542: uint16(5411), + 543: uint16(8774), + 544: uint16(5710), + 545: uint16(12066), + 546: uint16(9731), + 547: uint16(4938), + 548: uint16(12067), + 549: uint16(3882), + 550: uint16(5951), + 551: uint16(4939), + 552: uint16(10329), + 553: uint16(10001), + 554: uint16(5176), + 555: uint16(4432), + 556: uint16(12102), + 557: uint16(9248), + 558: uint16(9803), + 559: uint16(12069), + 560: uint16(10011), + 561: uint16(11585), + 562: uint16(7692), + 563: uint16(6694), + 564: uint16(6742), + 565: uint16(4383), + 566: uint16(9008), + 567: uint16(8705), + 568: uint16(12073), + 569: uint16(3883), + 570: uint16(9026), + 571: uint16(7194), + 572: uint16(6419), + 573: uint16(11267), + 574: uint16(8493), + 575: uint16(4382), + 576: uint16(12072), + 577: uint16(11293), + 578: uint16(12068), + 579: uint16(12070), + 580: uint16(6477), + 581: uint16(12071), + 582: uint16(13315), + 583: uint16(12079), + 584: uint16(12082), + 585: uint16(12080), + 586: uint16(4385), + 587: uint16(10522), + 588: uint16(12074), + 589: uint16(12078), + 590: uint16(5970), + 591: uint16(6695), + 592: uint16(4869), + 593: uint16(12083), + 594: uint16(12075), + 595: uint16(11586), + 596: uint16(6743), + 597: uint16(12076), + 598: uint16(12081), + 599: uint16(12084), + 600: uint16(12077), + 601: uint16(5376), + 602: uint16(3884), + 603: uint16(5377), + 604: uint16(4384), + 605: uint16(13316), + 606: uint16(10840), + 607: uint16(10317), + 608: uint16(5971), + 609: uint16(7694), + 610: uint16(11542), + 611: uint16(10551), + 612: uint16(5655), + 613: uint16(8452), + 614: uint16(4419), + 615: uint16(7218), + 616: uint16(12088), + 617: uint16(12093), + 618: uint16(12091), + 619: uint16(12086), + 620: uint16(8462), + 621: uint16(12089), + 622: uint16(12092), + 623: uint16(12090), + 624: uint16(10556), + 625: uint16(12087), + 626: uint16(7693), + 627: uint16(10834), + 628: uint16(12094), + 629: uint16(12095), + 630: uint16(7171), + 631: uint16(12108), + 632: uint16(9775), + 633: uint16(10261), + 634: uint16(12103), + 635: uint16(10575), + 636: uint16(4373), + 637: uint16(12107), + 638: uint16(12101), + 639: uint16(12110), + 640: uint16(8241), + 641: uint16(5923), + 642: uint16(9787), + 643: uint16(16166), + 644: uint16(12109), + 645: uint16(9276), + 646: uint16(12098), + 647: uint16(5973), + 648: uint16(5972), + 649: uint16(12096), + 650: uint16(6969), + 651: uint16(12104), + 652: uint16(10574), + 653: uint16(8748), + 654: uint16(12100), + 655: uint16(5712), + 656: uint16(12097), + 657: uint16(12105), + 658: uint16(12099), + 659: uint16(11568), + 660: uint16(12106), + 661: uint16(11808), + 662: uint16(5445), + 663: uint16(5711), + 664: uint16(12111), + 665: uint16(12112), + 666: uint16(12116), + 667: uint16(3885), + 668: uint16(10543), + 669: uint16(12115), + 670: uint16(12114), + 671: uint16(12118), + 672: uint16(12117), + 673: uint16(9027), + 674: uint16(5713), + 675: uint16(12119), + 676: uint16(6948), + 677: uint16(8453), + 678: uint16(9028), + 679: uint16(5461), + 680: uint16(12120), + 681: uint16(5141), + 682: uint16(12121), + 683: uint16(12123), + 684: uint16(10772), + 685: uint16(5701), + 686: uint16(6672), + 687: uint16(10070), + 688: uint16(12122), + 689: uint16(6436), + 690: uint16(11298), + 691: uint16(12125), + 692: uint16(12290), + 693: uint16(12124), + 694: uint16(6435), + 695: uint16(7260), + 696: uint16(5656), + 697: uint16(12291), + 698: uint16(5422), + 699: uint16(12288), + 700: uint16(12289), + 701: uint16(9486), + 702: uint16(8283), + 703: uint16(5378), + 704: uint16(10796), + 705: uint16(12292), + 706: uint16(11548), + 707: uint16(12293), + 708: uint16(12296), + 709: uint16(12294), + 710: uint16(8237), + 711: uint16(12295), + 712: uint16(12297), + 713: uint16(12299), + 714: uint16(12298), + 715: uint16(10535), + 716: uint16(5142), + 717: uint16(12301), + 718: uint16(12302), + 719: uint16(4366), + 720: uint16(12300), + 721: uint16(6995), + 722: uint16(12305), + 723: uint16(12304), + 724: uint16(12303), + 725: uint16(12085), + 726: uint16(12306), + 727: uint16(7261), + 728: uint16(12307), + 729: uint16(11268), + 730: uint16(11064), + 731: uint16(12309), + 732: uint16(12308), + 733: uint16(12311), + 734: uint16(12310), + 735: uint16(12312), + 736: uint16(12313), + 737: uint16(3923), + 738: uint16(5908), + 739: uint16(5658), + 740: uint16(7195), + 741: uint16(8794), + 742: uint16(5379), + 743: uint16(8007), + 744: uint16(5974), + 745: uint16(6221), + 746: uint16(12315), + 747: uint16(11047), + 748: uint16(9253), + 749: uint16(6744), + 750: uint16(12314), + 751: uint16(12316), + 752: uint16(9277), + 753: uint16(4692), + 754: uint16(12317), + 755: uint16(9565), + 756: uint16(8211), + 757: uint16(12319), + 758: uint16(12320), + 759: uint16(9995), + 760: uint16(5975), + 761: uint16(11802), + 762: uint16(12321), + 763: uint16(5381), + 764: uint16(10523), + 765: uint16(8469), + 766: uint16(5456), + 767: uint16(9236), + 768: uint16(5714), + 769: uint16(12322), + 770: uint16(12323), + 771: uint16(9537), + 772: uint16(4158), + 773: uint16(12326), + 774: uint16(6492), + 775: uint16(12325), + 776: uint16(6437), + 777: uint16(12327), + 778: uint16(17741), + 779: uint16(12328), + 780: uint16(10784), + 781: uint16(12329), + 782: uint16(12330), + 783: uint16(12331), + 784: uint16(7496), + 785: uint16(6955), + 786: uint16(4870), + 787: uint16(12334), + 788: uint16(12332), + 789: uint16(11036), + 790: uint16(12333), + 791: uint16(10297), + 792: uint16(12335), + 793: uint16(12336), + 794: uint16(12337), + 795: uint16(9278), + 796: uint16(12341), + 797: uint16(12339), + 798: uint16(12340), + 799: uint16(12338), + 800: uint16(6466), + 801: uint16(12342), + 802: uint16(11081), + 803: uint16(11587), + 804: uint16(12343), + 805: uint16(7943), + 806: uint16(12344), + 807: uint16(7225), + 808: uint16(12345), + 809: uint16(8795), + 810: uint16(11550), + 811: uint16(9279), + 812: uint16(12580), + 813: uint16(12346), + 814: uint16(21252), + 815: uint16(5412), + 816: uint16(12347), + 817: uint16(10813), + 818: uint16(7239), + 819: uint16(8539), + 820: uint16(12349), + 821: uint16(9539), + 822: uint16(12350), + 823: uint16(12351), + 824: uint16(4621), + 825: uint16(12352), + 826: uint16(5382), + 827: uint16(9515), + 828: uint16(4185), + 829: uint16(7215), + 830: uint16(9984), + 831: uint16(12353), + 832: uint16(9280), + 833: uint16(7726), + 834: uint16(12354), + 835: uint16(10507), + 836: uint16(7993), + 837: uint16(4865), + 838: uint16(4872), + 839: uint16(12355), + 840: uint16(12357), + 841: uint16(5657), + 842: uint16(12356), + 843: uint16(11602), + 844: uint16(7240), + 845: uint16(10012), + 846: uint16(10539), + 847: uint16(12358), + 848: uint16(11351), + 849: uint16(12359), + 850: uint16(12360), + 851: uint16(9309), + 852: uint16(12361), + 853: uint16(7944), + 854: uint16(6493), + 855: uint16(5715), + 856: uint16(12362), + 857: uint16(6696), + 858: uint16(6222), + 859: uint16(9029), + 860: uint16(12364), + 861: uint16(8454), + 862: uint16(6478), + 863: uint16(12365), + 864: uint16(12366), + 865: uint16(8207), + 866: uint16(12363), + 867: uint16(12368), + 868: uint16(10773), + 869: uint16(6211), + 870: uint16(12367), + 871: uint16(5716), + 872: uint16(6461), + 873: uint16(9804), + 874: uint16(12371), + 875: uint16(12369), + 876: uint16(10330), + 877: uint16(7497), + 878: uint16(12378), + 879: uint16(4675), + 880: uint16(12372), + 881: uint16(12370), + 882: uint16(8238), + 883: uint16(12374), + 884: uint16(12373), + 885: uint16(4643), + 886: uint16(5695), + 887: uint16(12379), + 888: uint16(11532), + 889: uint16(12375), + 890: uint16(12380), + 891: uint16(12377), + 892: uint16(12376), + 893: uint16(11566), + 894: uint16(5976), + 895: uint16(4386), + 896: uint16(11603), + 897: uint16(7252), + 898: uint16(9271), + 899: uint16(6212), + 900: uint16(12545), + 901: uint16(12546), + 902: uint16(11588), + 903: uint16(11786), + 904: uint16(12548), + 905: uint16(5977), + 906: uint16(12547), + 907: uint16(4622), + 908: uint16(12549), + 909: uint16(10805), + 910: uint16(8987), + 911: uint16(11269), + 912: uint16(10552), + 913: uint16(12550), + 914: uint16(20276), + 915: uint16(9487), + 916: uint16(12551), + 917: uint16(4873), + 918: uint16(11026), + 919: uint16(7424), + 920: uint16(12552), + 921: uint16(10566), + 922: uint16(12556), + 923: uint16(7945), + 924: uint16(12553), + 925: uint16(5423), + 926: uint16(12554), + 927: uint16(4874), + 928: uint16(5645), + 929: uint16(12557), + 930: uint16(12558), + 931: uint16(12559), + 932: uint16(12560), + 933: uint16(6970), + 934: uint16(5978), + 935: uint16(11069), + 936: uint16(11079), + 937: uint16(9558), + 938: uint16(10576), + 939: uint16(12561), + 940: uint16(12562), + 941: uint16(12564), + 942: uint16(12566), + 943: uint16(12565), + 944: uint16(12567), + 945: uint16(4380), + 946: uint16(10795), + 947: uint16(6491), + 948: uint16(12568), + 949: uint16(8248), + 950: uint16(7425), + 951: uint16(5384), + 952: uint16(12569), + 953: uint16(10042), + 954: uint16(12570), + 955: uint16(12571), + 956: uint16(12572), + 957: uint16(12573), + 958: uint16(10243), + 959: uint16(5447), + 960: uint16(3908), + 961: uint16(9502), + 962: uint16(12574), + 963: uint16(7196), + 964: uint16(8008), + 965: uint16(12576), + 966: uint16(12575), + 967: uint16(7426), + 968: uint16(5952), + 969: uint16(12578), + 970: uint16(10013), + 971: uint16(12579), + 972: uint16(10043), + 973: uint16(8467), + 974: uint16(8525), + 975: uint16(5383), + 976: uint16(9549), + 977: uint16(8720), + 978: uint16(9805), + 979: uint16(10797), + 980: uint16(12581), + 981: uint16(8009), + 982: uint16(5652), + 983: uint16(12582), + 984: uint16(12583), + 985: uint16(4107), + 986: uint16(3924), + 987: uint16(4940), + 988: uint16(8455), + 989: uint16(5168), + 990: uint16(11344), + 991: uint16(12586), + 992: uint16(4374), + 993: uint16(12585), + 994: uint16(5385), + 995: uint16(12587), + 996: uint16(11088), + 997: uint16(12588), + 998: uint16(11569), + 999: uint16(5979), + 1000: uint16(5909), + 1001: uint16(12589), + 1002: uint16(12591), + 1003: uint16(12590), + 1004: uint16(7742), + 1005: uint16(4120), + 1006: uint16(4157), + 1007: uint16(12592), + 1008: uint16(12593), + 1009: uint16(5910), + 1010: uint16(12594), + 1011: uint16(5197), + 1012: uint16(6673), + 1013: uint16(12595), + 1014: uint16(10835), + 1015: uint16(6420), + 1016: uint16(5177), + 1017: uint16(11270), + 1018: uint16(8239), + 1019: uint16(10014), + 1020: uint16(7004), + 1021: uint16(7206), + 1022: uint16(6983), + 1023: uint16(6996), + 1024: uint16(7253), + 1025: uint16(10015), + 1026: uint16(12598), + 1027: uint16(4130), + 1028: uint16(8240), + 1029: uint16(5980), + 1030: uint16(5924), + 1031: uint16(5446), + 1032: uint16(12602), + 1033: uint16(8704), + 1034: uint16(8541), + 1035: uint16(5386), + 1036: uint16(7427), + 1037: uint16(12603), + 1038: uint16(12601), + 1039: uint16(4387), + 1040: uint16(8517), + 1041: uint16(6935), + 1042: uint16(6698), + 1043: uint16(4101), + 1044: uint16(4687), + 1045: uint16(6213), + 1046: uint16(6697), + 1047: uint16(12604), + 1048: uint16(12605), + 1049: uint16(5160), + 1050: uint16(4645), + 1051: uint16(6214), + 1052: uint16(5159), + 1053: uint16(9022), + 1054: uint16(4100), + 1055: uint16(9488), + 1056: uint16(11037), + 1057: uint16(6144), + 1058: uint16(11352), + 1059: uint16(9254), + 1060: uint16(5981), + 1061: uint16(5646), + 1062: uint16(12614), + 1063: uint16(5442), + 1064: uint16(10793), + 1065: uint16(10044), + 1066: uint16(12613), + 1067: uint16(4925), + 1068: uint16(12608), + 1069: uint16(12609), + 1070: uint16(12611), + 1071: uint16(12612), + 1072: uint16(5178), + 1073: uint16(7744), + 1074: uint16(10508), + 1075: uint16(12610), + 1076: uint16(12606), + 1077: uint16(5954), + 1078: uint16(12607), + 1079: uint16(11779), + 1080: uint16(10577), + 1081: uint16(9031), + 1082: uint16(5953), + 1083: uint16(6223), + 1084: uint16(12615), + 1085: uint16(9532), + 1086: uint16(12619), + 1087: uint16(7005), + 1088: uint16(6997), + 1089: uint16(12622), + 1090: uint16(12620), + 1091: uint16(11010), + 1092: uint16(12617), + 1093: uint16(12626), + 1094: uint16(12621), + 1095: uint16(12624), + 1096: uint16(5925), + 1097: uint16(11038), + 1098: uint16(12625), + 1099: uint16(12627), + 1100: uint16(12629), + 1101: uint16(6479), + 1102: uint16(11809), + 1103: uint16(12618), + 1104: uint16(12616), + 1105: uint16(12628), + 1106: uint16(12623), + 1107: uint16(12631), + 1108: uint16(12802), + 1109: uint16(12633), + 1110: uint16(12637), + 1111: uint16(12800), + 1112: uint16(12634), + 1113: uint16(12829), + 1114: uint16(6472), + 1115: uint16(4624), + 1116: uint16(12632), + 1117: uint16(12804), + 1118: uint16(3925), + 1119: uint16(12803), + 1120: uint16(3844), + 1121: uint16(10281), + 1122: uint16(12801), + 1123: uint16(12635), + 1124: uint16(12630), + 1125: uint16(12636), + 1126: uint16(6439), + 1127: uint16(12805), + 1128: uint16(3926), + 1129: uint16(12814), + 1130: uint16(12806), + 1131: uint16(12807), + 1132: uint16(7428), + 1133: uint16(10824), + 1134: uint16(12812), + 1135: uint16(12811), + 1136: uint16(9230), + 1137: uint16(12813), + 1138: uint16(12810), + 1139: uint16(4115), + 1140: uint16(6421), + 1141: uint16(7695), + 1142: uint16(12808), + 1143: uint16(9281), + 1144: uint16(12809), + 1145: uint16(3841), + 1146: uint16(12819), + 1147: uint16(11266), + 1148: uint16(7430), + 1149: uint16(12825), + 1150: uint16(12824), + 1151: uint16(12815), + 1152: uint16(8482), + 1153: uint16(12816), + 1154: uint16(8526), + 1155: uint16(12821), + 1156: uint16(7429), + 1157: uint16(12818), + 1158: uint16(11075), + 1159: uint16(5659), + 1160: uint16(12822), + 1161: uint16(12823), + 1162: uint16(12820), + 1163: uint16(12826), + 1164: uint16(12817), + 1165: uint16(12832), + 1166: uint16(12837), + 1167: uint16(12833), + 1168: uint16(12828), + 1169: uint16(12838), + 1170: uint16(8208), + 1171: uint16(12840), + 1172: uint16(6145), + 1173: uint16(12830), + 1174: uint16(8796), + 1175: uint16(12834), + 1176: uint16(12827), + 1177: uint16(4876), + 1178: uint16(4941), + 1179: uint16(4676), + 1180: uint16(12835), + 1181: uint16(12831), + 1182: uint16(5717), + 1183: uint16(12841), + 1184: uint16(12839), + 1185: uint16(8242), + 1186: uint16(5161), + 1187: uint16(5387), + 1188: uint16(12836), + 1189: uint16(5459), + 1190: uint16(4131), + 1191: uint16(12845), + 1192: uint16(12843), + 1193: uint16(13062), + 1194: uint16(12848), + 1195: uint16(12842), + 1196: uint16(12846), + 1197: uint16(12844), + 1198: uint16(6699), + 1199: uint16(12847), + 1200: uint16(12850), + 1201: uint16(12855), + 1202: uint16(12853), + 1203: uint16(12852), + 1204: uint16(8721), + 1205: uint16(4388), + 1206: uint16(12849), + 1207: uint16(12851), + 1208: uint16(7431), + 1209: uint16(4114), + 1210: uint16(12854), + 1211: uint16(4413), + 1212: uint16(12865), + 1213: uint16(7515), + 1214: uint16(12861), + 1215: uint16(12859), + 1216: uint16(12860), + 1217: uint16(12862), + 1218: uint16(4124), + 1219: uint16(8216), + 1220: uint16(12856), + 1221: uint16(12857), + 1222: uint16(4697), + 1223: uint16(12864), + 1224: uint16(4942), + 1225: uint16(12867), + 1226: uint16(12863), + 1227: uint16(12866), + 1228: uint16(10509), + 1229: uint16(9524), + 1230: uint16(10007), + 1231: uint16(12869), + 1232: uint16(12868), + 1233: uint16(4644), + 1234: uint16(12870), + 1235: uint16(12873), + 1236: uint16(12872), + 1237: uint16(12871), + 1238: uint16(9752), + 1239: uint16(12874), + 1240: uint16(12875), + 1241: uint16(12877), + 1242: uint16(12876), + 1243: uint16(12879), + 1244: uint16(12882), + 1245: uint16(12880), + 1246: uint16(12878), + 1247: uint16(12881), + 1248: uint16(12883), + 1249: uint16(12884), + 1250: uint16(12885), + 1251: uint16(12886), + 1252: uint16(12887), + 1253: uint16(12324), + 1254: uint16(7003), + 1255: uint16(6700), + 1256: uint16(4434), + 1257: uint16(3927), + 1258: uint16(8739), + 1259: uint16(12888), + 1260: uint16(6403), + 1261: uint16(3886), + 1262: uint16(7741), + 1263: uint16(12889), + 1264: uint16(5926), + 1265: uint16(6224), + 1266: uint16(12891), + 1267: uint16(12890), + 1268: uint16(10559), + 1269: uint16(12892), + 1270: uint16(13056), + 1271: uint16(12893), + 1272: uint16(13057), + 1273: uint16(13058), + 1274: uint16(5718), + 1275: uint16(4159), + 1276: uint16(13059), + 1277: uint16(13061), + 1278: uint16(13060), + 1279: uint16(13063), + 1280: uint16(9273), + 1281: uint16(13064), + 1282: uint16(3860), + 1283: uint16(6462), + 1284: uint16(5660), + 1285: uint16(8750), + 1286: uint16(13065), + 1287: uint16(13066), + 1288: uint16(13068), + 1289: uint16(13069), + 1290: uint16(6467), + 1291: uint16(5424), + 1292: uint16(10774), + 1293: uint16(13067), + 1294: uint16(13070), + 1295: uint16(6432), + 1296: uint16(6146), + 1297: uint16(13074), + 1298: uint16(6404), + 1299: uint16(8722), + 1300: uint16(13071), + 1301: uint16(9017), + 1302: uint16(13075), + 1303: uint16(7745), + 1304: uint16(13073), + 1305: uint16(13076), + 1306: uint16(5662), + 1307: uint16(13077), + 1308: uint16(13078), + 1309: uint16(6147), + 1310: uint16(4639), + 1311: uint16(13080), + 1312: uint16(13081), + 1313: uint16(13082), + 1314: uint16(13079), + 1315: uint16(13072), + 1316: uint16(13083), + 1317: uint16(13084), + 1318: uint16(10819), + 1319: uint16(7498), + 1320: uint16(13086), + 1321: uint16(13087), + 1322: uint16(13085), + 1323: uint16(13089), + 1324: uint16(9751), + 1325: uint16(3911), + 1326: uint16(10293), + 1327: uint16(13090), + 1328: uint16(7516), + 1329: uint16(6936), + 1330: uint16(9788), + 1331: uint16(4943), + 1332: uint16(6474), + 1333: uint16(10808), + 1334: uint16(9489), + 1335: uint16(5719), + 1336: uint16(8494), + 1337: uint16(13088), + 1338: uint16(13091), + 1339: uint16(8483), + 1340: uint16(13092), + 1341: uint16(13093), + 1342: uint16(13095), + 1343: uint16(9032), + 1344: uint16(4877), + 1345: uint16(21248), + 1346: uint16(4160), + 1347: uint16(10578), + 1348: uint16(7499), + 1349: uint16(9255), + 1350: uint16(6469), + 1351: uint16(13101), + 1352: uint16(10524), + 1353: uint16(11580), + 1354: uint16(4435), + 1355: uint16(13097), + 1356: uint16(8217), + 1357: uint16(13100), + 1358: uint16(9282), + 1359: uint16(9256), + 1360: uint16(9283), + 1361: uint16(10008), + 1362: uint16(9004), + 1363: uint16(6440), + 1364: uint16(13096), + 1365: uint16(4181), + 1366: uint16(9237), + 1367: uint16(13098), + 1368: uint16(13094), + 1369: uint16(7727), + 1370: uint16(13102), + 1371: uint16(7213), + 1372: uint16(5388), + 1373: uint16(13103), + 1374: uint16(10567), + 1375: uint16(8284), + 1376: uint16(8997), + 1377: uint16(13105), + 1378: uint16(10798), + 1379: uint16(13106), + 1380: uint16(13111), + 1381: uint16(10510), + 1382: uint16(13110), + 1383: uint16(13104), + 1384: uint16(13107), + 1385: uint16(13109), + 1386: uint16(6405), + 1387: uint16(10536), + 1388: uint16(13112), + 1389: uint16(8740), + 1390: uint16(4436), + 1391: uint16(7500), + 1392: uint16(13114), + 1393: uint16(13113), + 1394: uint16(6215), + 1395: uint16(13115), + 1396: uint16(13117), + 1397: uint16(13116), + 1398: uint16(13119), + 1399: uint16(13108), + 1400: uint16(13121), + 1401: uint16(13120), + 1402: uint16(13118), + 1403: uint16(6701), + 1404: uint16(7728), + 1405: uint16(8243), + 1406: uint16(13122), + 1407: uint16(7963), + 1408: uint16(3916), + 1409: uint16(9795), + 1410: uint16(9018), + 1411: uint16(13124), + 1412: uint16(13123), + 1413: uint16(13125), + 1414: uint16(13126), + 1415: uint16(13127), + 1416: uint16(13128), + 1417: uint16(10544), + 1418: uint16(13129), + 1419: uint16(4389), + 1420: uint16(13130), + 1421: uint16(11291), + 1422: uint16(4623), + 1423: uint16(12584), + 1424: uint16(7207), + 1425: uint16(8478), + 1426: uint16(13131), + 1427: uint16(11082), + 1428: uint16(11027), + 1429: uint16(13133), + 1430: uint16(8518), + 1431: uint16(9238), + 1432: uint16(8479), + 1433: uint16(10294), + 1434: uint16(13134), + 1435: uint16(13135), + 1436: uint16(4186), + 1437: uint16(6937), + 1438: uint16(13136), + 1439: uint16(3887), + 1440: uint16(13137), + 1441: uint16(13138), + 1442: uint16(4161), + 1443: uint16(4944), + 1444: uint16(9535), + 1445: uint16(10579), + 1446: uint16(13142), + 1447: uint16(8244), + 1448: uint16(13141), + 1449: uint16(5663), + 1450: uint16(10810), + 1451: uint16(13140), + 1452: uint16(9284), + 1453: uint16(13144), + 1454: uint16(13143), + 1455: uint16(13146), + 1456: uint16(13145), + 1457: uint16(4187), + 1458: uint16(13147), + 1459: uint16(7432), + 1460: uint16(13149), + 1461: uint16(8708), + 1462: uint16(13148), + 1463: uint16(10514), + 1464: uint16(7254), + 1465: uint16(9274), + 1466: uint16(13312), + 1467: uint16(6148), + 1468: uint16(13313), + 1469: uint16(9728), + 1470: uint16(10045), + 1471: uint16(11056), + 1472: uint16(9732), + 1473: uint16(13322), + 1474: uint16(5143), + 1475: uint16(11300), + 1476: uint16(11022), + 1477: uint16(13579), + 1478: uint16(13314), + 1479: uint16(13317), + 1480: uint16(8484), + 1481: uint16(10775), + 1482: uint16(9257), + 1483: uint16(13318), + 1484: uint16(10820), + 1485: uint16(6441), + 1486: uint16(7433), + 1487: uint16(13319), + 1488: uint16(6703), + 1489: uint16(6702), + 1490: uint16(3864), + 1491: uint16(5927), + 1492: uint16(7946), + 1493: uint16(3888), + 1494: uint16(13323), + 1495: uint16(13324), + 1496: uint16(13321), + 1497: uint16(4119), + 1498: uint16(4878), + 1499: uint16(13320), + 1500: uint16(11044), + 1501: uint16(10256), + 1502: uint16(3847), + 1503: uint16(3928), + 1504: uint16(6704), + 1505: uint16(3889), + 1506: uint16(3842), + 1507: uint16(13329), + 1508: uint16(13327), + 1509: uint16(11035), + 1510: uint16(13330), + 1511: uint16(13328), + 1512: uint16(13326), + 1513: uint16(7696), + 1514: uint16(13325), + 1515: uint16(10553), + 1516: uint16(5955), + 1517: uint16(13334), + 1518: uint16(13335), + 1519: uint16(7434), + 1520: uint16(13331), + 1521: uint16(11787), + 1522: uint16(9771), + 1523: uint16(13333), + 1524: uint16(6406), + 1525: uint16(13336), + 1526: uint16(10295), + 1527: uint16(13337), + 1528: uint16(13332), + 1529: uint16(11034), + 1530: uint16(9789), + 1531: uint16(13338), + 1532: uint16(10257), + 1533: uint16(13339), + 1534: uint16(13343), + 1535: uint16(13340), + 1536: uint16(4390), + 1537: uint16(13342), + 1538: uint16(6938), + 1539: uint16(13341), + 1540: uint16(5720), + 1541: uint16(13355), + 1542: uint16(13348), + 1543: uint16(13345), + 1544: uint16(8771), + 1545: uint16(13344), + 1546: uint16(13346), + 1547: uint16(13347), + 1548: uint16(13349), + 1549: uint16(13350), + 1550: uint16(4945), + 1551: uint16(13352), + 1552: uint16(13351), + 1553: uint16(13353), + 1554: uint16(7501), + 1555: uint16(13356), + 1556: uint16(9019), + 1557: uint16(4132), + 1558: uint16(13354), + 1559: uint16(13357), + 1560: uint16(13358), + 1561: uint16(13361), + 1562: uint16(13359), + 1563: uint16(13360), + 1564: uint16(6705), + 1565: uint16(13362), + 1566: uint16(6149), + 1567: uint16(13363), + 1568: uint16(6745), + 1569: uint16(8471), + 1570: uint16(13364), + 1571: uint16(13365), + 1572: uint16(6713), + 1573: uint16(6150), + 1574: uint16(11057), + 1575: uint16(5127), + 1576: uint16(5928), + 1577: uint16(13366), + 1578: uint16(4663), + 1579: uint16(13367), + 1580: uint16(8472), + 1581: uint16(13368), + 1582: uint16(13570), + 1583: uint16(13369), + 1584: uint16(13370), + 1585: uint16(13371), + 1586: uint16(13373), + 1587: uint16(13374), + 1588: uint16(13375), + 1589: uint16(8527), + 1590: uint16(4102), + 1591: uint16(6984), + 1592: uint16(3873), + 1593: uint16(8246), + 1594: uint16(4879), + 1595: uint16(6932), + 1596: uint16(6151), + 1597: uint16(9285), + 1598: uint16(7168), + 1599: uint16(4880), + 1600: uint16(8775), + 1601: uint16(9033), + 1602: uint16(3863), + 1603: uint16(5144), + 1604: uint16(10580), + 1605: uint16(6945), + 1606: uint16(5169), + 1607: uint16(8010), + 1608: uint16(6939), + 1609: uint16(11271), + 1610: uint16(13376), + 1611: uint16(5179), + 1612: uint16(6442), + 1613: uint16(4625), + 1614: uint16(4162), + 1615: uint16(7435), + 1616: uint16(4391), + 1617: uint16(13377), + 1618: uint16(11301), + 1619: uint16(7208), + 1620: uint16(6979), + 1621: uint16(13378), + 1622: uint16(4946), + 1623: uint16(9521), + 1624: uint16(11016), + 1625: uint16(13379), + 1626: uint16(13380), + 1627: uint16(10296), + 1628: uint16(13382), + 1629: uint16(4871), + 1630: uint16(5462), + 1631: uint16(13381), + 1632: uint16(4881), + 1633: uint16(7697), + 1634: uint16(13386), + 1635: uint16(6656), + 1636: uint16(4392), + 1637: uint16(13385), + 1638: uint16(13383), + 1639: uint16(13387), + 1640: uint16(13384), + 1641: uint16(9738), + 1642: uint16(15148), + 1643: uint16(7698), + 1644: uint16(13388), + 1645: uint16(11551), + 1646: uint16(13389), + 1647: uint16(13391), + 1648: uint16(8797), + 1649: uint16(13390), + 1650: uint16(7938), + 1651: uint16(6746), + 1652: uint16(8495), + 1653: uint16(6998), + 1654: uint16(10324), + 1655: uint16(8011), + 1656: uint16(6956), + 1657: uint16(13392), + 1658: uint16(7436), + 1659: uint16(13393), + 1660: uint16(13394), + 1661: uint16(3890), + 1662: uint16(8473), + 1663: uint16(7729), + 1664: uint16(13395), + 1665: uint16(9490), + 1666: uint16(7437), + 1667: uint16(7438), + 1668: uint16(13396), + 1669: uint16(8012), + 1670: uint16(7439), + 1671: uint16(13397), + 1672: uint16(13398), + 1673: uint16(11071), + 1674: uint16(13399), + 1675: uint16(5413), + 1676: uint16(7169), + 1677: uint16(13400), + 1678: uint16(13401), + 1679: uint16(6971), + 1680: uint16(7691), + 1681: uint16(9555), + 1682: uint16(7731), + 1683: uint16(10071), + 1684: uint16(9729), + 1685: uint16(5416), + 1686: uint16(13402), + 1687: uint16(5198), + 1688: uint16(13403), + 1689: uint16(5469), + 1690: uint16(9518), + 1691: uint16(4367), + 1692: uint16(6706), + 1693: uint16(13404), + 1694: uint16(13569), + 1695: uint16(13568), + 1696: uint16(5468), + 1697: uint16(13405), + 1698: uint16(9239), + 1699: uint16(8463), + 1700: uint16(9258), + 1701: uint16(6951), + 1702: uint16(8247), + 1703: uint16(11353), + 1704: uint16(13571), + 1705: uint16(13572), + 1706: uint16(9525), + 1707: uint16(6674), + 1708: uint16(13574), + 1709: uint16(13575), + 1710: uint16(13576), + 1711: uint16(4947), + 1712: uint16(13577), + 1713: uint16(13578), + 1714: uint16(4363), + 1715: uint16(8218), + 1716: uint16(4931), + 1717: uint16(13580), + 1718: uint16(11015), + 1719: uint16(8497), + 1720: uint16(4664), + 1721: uint16(13582), + 1722: uint16(13584), + 1723: uint16(4926), + 1724: uint16(13581), + 1725: uint16(13583), + 1726: uint16(13586), + 1727: uint16(13585), + 1728: uint16(13587), + 1729: uint16(13588), + 1730: uint16(9500), + 1731: uint16(5389), + 1732: uint16(4420), + 1733: uint16(13589), + 1734: uint16(13594), + 1735: uint16(13592), + 1736: uint16(10582), + 1737: uint16(10581), + 1738: uint16(9286), + 1739: uint16(13591), + 1740: uint16(7219), + 1741: uint16(13590), + 1742: uint16(7761), + 1743: uint16(13595), + 1744: uint16(6473), + 1745: uint16(13601), + 1746: uint16(13602), + 1747: uint16(13596), + 1748: uint16(4626), + 1749: uint16(13597), + 1750: uint16(13606), + 1751: uint16(13605), + 1752: uint16(13604), + 1753: uint16(13600), + 1754: uint16(13599), + 1755: uint16(13603), + 1756: uint16(10583), + 1757: uint16(13610), + 1758: uint16(13607), + 1759: uint16(13609), + 1760: uint16(11345), + 1761: uint16(13608), + 1762: uint16(13598), + 1763: uint16(7762), + 1764: uint16(13611), + 1765: uint16(6422), + 1766: uint16(13612), + 1767: uint16(13613), + 1768: uint16(13616), + 1769: uint16(13615), + 1770: uint16(13614), + 1771: uint16(9287), + 1772: uint16(13593), + 1773: uint16(13622), + 1774: uint16(13618), + 1775: uint16(13617), + 1776: uint16(13619), + 1777: uint16(13620), + 1778: uint16(13623), + 1779: uint16(11589), + 1780: uint16(13624), + 1781: uint16(13621), + 1782: uint16(13625), + 1783: uint16(4927), + 1784: uint16(13626), + 1785: uint16(13628), + 1786: uint16(13627), + 1787: uint16(13629), + 1788: uint16(13630), + 1789: uint16(8013), + 1790: uint16(7170), + 1791: uint16(7235), + 1792: uint16(8258), + 1793: uint16(6152), + 1794: uint16(6423), + 1795: uint16(6153), + 1796: uint16(5199), + 1797: uint16(13631), + 1798: uint16(6424), + 1799: uint16(5929), + 1800: uint16(13632), + 1801: uint16(11013), + 1802: uint16(9762), + 1803: uint16(13633), + 1804: uint16(6154), + 1805: uint16(4875), + 1806: uint16(8710), + 1807: uint16(5425), + 1808: uint16(6707), + 1809: uint16(10298), + 1810: uint16(10016), + 1811: uint16(13634), + 1812: uint16(4948), + 1813: uint16(13637), + 1814: uint16(8960), + 1815: uint16(13636), + 1816: uint16(13635), + 1817: uint16(13638), + 1818: uint16(9034), + 1819: uint16(7746), + 1820: uint16(6708), + 1821: uint16(7977), + 1822: uint16(8498), + 1823: uint16(5121), + 1824: uint16(8961), + 1825: uint16(13639), + 1826: uint16(13640), + 1827: uint16(7502), + 1828: uint16(10776), + 1829: uint16(13643), + 1830: uint16(13642), + 1831: uint16(13641), + 1832: uint16(10332), + 1833: uint16(13650), + 1834: uint16(10809), + 1835: uint16(13644), + 1836: uint16(13646), + 1837: uint16(10826), + 1838: uint16(13645), + 1839: uint16(13647), + 1840: uint16(9991), + 1841: uint16(13648), + 1842: uint16(10525), + 1843: uint16(13649), + 1844: uint16(4882), + 1845: uint16(10526), + 1846: uint16(9742), + 1847: uint16(13651), + 1848: uint16(13652), + 1849: uint16(6155), + 1850: uint16(4883), + 1851: uint16(13653), + 1852: uint16(5911), + 1853: uint16(11299), + 1854: uint16(11272), + 1855: uint16(4949), + 1856: uint16(13655), + 1857: uint16(8962), + 1858: uint16(6156), + 1859: uint16(7440), + 1860: uint16(10046), + 1861: uint16(7441), + 1862: uint16(7255), + 1863: uint16(9035), + 1864: uint16(10584), + 1865: uint16(9240), + 1866: uint16(6157), + 1867: uint16(10299), + 1868: uint16(13656), + 1869: uint16(9272), + 1870: uint16(6433), + 1871: uint16(5930), + 1872: uint16(9036), + 1873: uint16(3874), + 1874: uint16(7245), + 1875: uint16(6158), + 1876: uint16(11302), + 1877: uint16(13657), + 1878: uint16(13658), + 1879: uint16(9776), + 1880: uint16(13659), + 1881: uint16(11606), + 1882: uint16(11788), + 1883: uint16(13661), + 1884: uint16(13660), + 1885: uint16(4646), + 1886: uint16(13824), + 1887: uint16(13827), + 1888: uint16(13828), + 1889: uint16(13826), + 1890: uint16(10271), + 1891: uint16(7442), + 1892: uint16(13830), + 1893: uint16(13829), + 1894: uint16(13825), + 1895: uint16(13831), + 1896: uint16(13832), + 1897: uint16(13833), + 1898: uint16(13836), + 1899: uint16(13834), + 1900: uint16(13835), + 1901: uint16(13837), + 1902: uint16(4163), + 1903: uint16(9037), + 1904: uint16(13838), + 1905: uint16(5721), + 1906: uint16(4437), + 1907: uint16(9749), + 1908: uint16(13839), + 1909: uint16(9562), + 1910: uint16(10554), + 1911: uint16(13840), + 1912: uint16(11789), + 1913: uint16(13841), + 1914: uint16(10527), + 1915: uint16(13844), + 1916: uint16(12032), + 1917: uint16(12048), + 1918: uint16(6927), + 1919: uint16(9556), + 1920: uint16(13845), + 1921: uint16(5180), + 1922: uint16(8963), + 1923: uint16(3929), + 1924: uint16(13846), + 1925: uint16(10501), + 1926: uint16(6159), + 1927: uint16(8751), + 1928: uint16(9038), + 1929: uint16(11086), + 1930: uint16(5912), + 1931: uint16(5931), + 1932: uint16(13847), + 1933: uint16(13848), + 1934: uint16(13854), + 1935: uint16(6980), + 1936: uint16(8964), + 1937: uint16(5390), + 1938: uint16(13849), + 1939: uint16(10250), + 1940: uint16(8741), + 1941: uint16(13850), + 1942: uint16(13851), + 1943: uint16(5391), + 1944: uint16(13852), + 1945: uint16(13853), + 1946: uint16(13855), + 1947: uint16(9301), + 1948: uint16(13856), + 1949: uint16(13857), + 1950: uint16(13858), + 1951: uint16(13843), + 1952: uint16(13842), + 1953: uint16(13859), + 1954: uint16(5664), + 1955: uint16(10246), + 1956: uint16(6443), + 1957: uint16(10262), + 1958: uint16(8965), + 1959: uint16(10282), + 1960: uint16(13860), + 1961: uint16(7443), + 1962: uint16(4133), + 1963: uint16(13861), + 1964: uint16(13862), + 1965: uint16(11089), + 1966: uint16(10047), + 1967: uint16(13865), + 1968: uint16(4188), + 1969: uint16(7947), + 1970: uint16(13864), + 1971: uint16(13863), + 1972: uint16(5665), + 1973: uint16(8499), + 1974: uint16(13869), + 1975: uint16(13867), + 1976: uint16(13866), + 1977: uint16(11526), + 1978: uint16(5956), + 1979: uint16(7256), + 1980: uint16(13868), + 1981: uint16(9259), + 1982: uint16(7197), + 1983: uint16(9503), + 1984: uint16(13872), + 1985: uint16(13871), + 1986: uint16(13870), + 1987: uint16(13873), + 1988: uint16(5957), + 1989: uint16(13874), + 1990: uint16(10331), + 1991: uint16(7226), + 1992: uint16(13875), + 1993: uint16(10072), + 1994: uint16(9504), + 1995: uint16(8966), + 1996: uint16(9231), + 1997: uint16(13876), + 1998: uint16(5130), + 1999: uint16(7699), + 2000: uint16(10251), + 2001: uint16(4950), + 2002: uint16(9733), + 2003: uint16(13877), + 2004: uint16(6709), + 2005: uint16(10777), + 2006: uint16(10778), + 2007: uint16(4189), + 2008: uint16(13882), + 2009: uint16(8776), + 2010: uint16(13879), + 2011: uint16(4438), + 2012: uint16(14092), + 2013: uint16(13881), + 2014: uint16(9743), + 2015: uint16(13880), + 2016: uint16(13878), + 2017: uint16(6233), + 2018: uint16(13884), + 2019: uint16(13890), + 2020: uint16(13896), + 2021: uint16(13888), + 2022: uint16(9275), + 2023: uint16(13893), + 2024: uint16(10300), + 2025: uint16(13887), + 2026: uint16(13892), + 2027: uint16(11590), + 2028: uint16(6710), + 2029: uint16(8500), + 2030: uint16(13885), + 2031: uint16(5181), + 2032: uint16(13895), + 2033: uint16(7948), + 2034: uint16(4164), + 2035: uint16(13889), + 2036: uint16(4439), + 2037: uint16(13894), + 2038: uint16(5392), + 2039: uint16(13891), + 2040: uint16(13897), + 2041: uint16(13899), + 2042: uint16(13909), + 2043: uint16(13907), + 2044: uint16(13904), + 2045: uint16(13903), + 2046: uint16(11607), + 2047: uint16(13905), + 2048: uint16(5393), + 2049: uint16(6160), + 2050: uint16(7257), + 2051: uint16(13912), + 2052: uint16(13898), + 2053: uint16(13902), + 2054: uint16(13886), + 2055: uint16(4441), + 2056: uint16(13906), + 2057: uint16(13908), + 2058: uint16(8752), + 2059: uint16(6407), + 2060: uint16(4375), + 2061: uint16(13900), + 2062: uint16(13911), + 2063: uint16(13910), + 2064: uint16(5394), + 2065: uint16(8456), + 2066: uint16(4677), + 2067: uint16(5666), + 2068: uint16(13901), + 2069: uint16(13913), + 2070: uint16(13916), + 2071: uint16(14080), + 2072: uint16(6940), + 2073: uint16(14086), + 2074: uint16(9039), + 2075: uint16(13914), + 2076: uint16(14084), + 2077: uint16(4440), + 2078: uint16(14082), + 2079: uint16(14083), + 2080: uint16(13917), + 2081: uint16(14081), + 2082: uint16(5958), + 2083: uint16(11273), + 2084: uint16(4884), + 2085: uint16(4152), + 2086: uint16(14085), + 2087: uint16(9753), + 2088: uint16(3852), + 2089: uint16(10048), + 2090: uint16(13883), + 2091: uint16(14091), + 2092: uint16(14095), + 2093: uint16(11076), + 2094: uint16(14088), + 2095: uint16(9288), + 2096: uint16(14093), + 2097: uint16(7503), + 2098: uint16(14094), + 2099: uint16(9526), + 2100: uint16(11814), + 2101: uint16(14090), + 2102: uint16(14096), + 2103: uint16(6234), + 2104: uint16(7978), + 2105: uint16(3891), + 2106: uint16(14089), + 2107: uint16(14087), + 2108: uint16(8249), + 2109: uint16(13915), + 2110: uint16(6675), + 2111: uint16(8485), + 2112: uint16(14108), + 2113: uint16(8250), + 2114: uint16(14103), + 2115: uint16(14100), + 2116: uint16(14101), + 2117: uint16(6981), + 2118: uint16(14104), + 2119: uint16(14107), + 2120: uint16(14102), + 2121: uint16(7172), + 2122: uint16(14105), + 2123: uint16(14099), + 2124: uint16(11099), + 2125: uint16(11098), + 2126: uint16(14109), + 2127: uint16(14110), + 2128: uint16(3892), + 2129: uint16(14098), + 2130: uint16(5457), + 2131: uint16(3845), + 2132: uint16(4885), + 2133: uint16(14106), + 2134: uint16(14114), + 2135: uint16(14113), + 2136: uint16(14118), + 2137: uint16(14119), + 2138: uint16(14117), + 2139: uint16(14120), + 2140: uint16(14112), + 2141: uint16(14116), + 2142: uint16(14121), + 2143: uint16(14122), + 2144: uint16(14111), + 2145: uint16(6747), + 2146: uint16(14115), + 2147: uint16(8501), + 2148: uint16(6161), + 2149: uint16(14097), + 2150: uint16(7700), + 2151: uint16(14135), + 2152: uint16(10568), + 2153: uint16(14125), + 2154: uint16(14126), + 2155: uint16(14127), + 2156: uint16(14134), + 2157: uint16(14133), + 2158: uint16(10844), + 2159: uint16(4886), + 2160: uint16(14131), + 2161: uint16(5668), + 2162: uint16(4627), + 2163: uint16(14128), + 2164: uint16(11543), + 2165: uint16(14130), + 2166: uint16(3893), + 2167: uint16(14132), + 2168: uint16(14123), + 2169: uint16(14129), + 2170: uint16(14136), + 2171: uint16(5667), + 2172: uint16(14124), + 2173: uint16(11324), + 2174: uint16(11274), + 2175: uint16(14139), + 2176: uint16(14143), + 2177: uint16(8285), + 2178: uint16(11608), + 2179: uint16(14144), + 2180: uint16(14141), + 2181: uint16(14138), + 2182: uint16(14137), + 2183: uint16(14142), + 2184: uint16(10511), + 2185: uint16(9491), + 2186: uint16(5669), + 2187: uint16(14145), + 2188: uint16(14140), + 2189: uint16(14146), + 2190: uint16(5722), + 2191: uint16(4368), + 2192: uint16(14154), + 2193: uint16(4887), + 2194: uint16(14152), + 2195: uint16(14153), + 2196: uint16(6408), + 2197: uint16(14151), + 2198: uint16(14149), + 2199: uint16(14148), + 2200: uint16(14155), + 2201: uint16(14147), + 2202: uint16(14157), + 2203: uint16(4442), + 2204: uint16(14159), + 2205: uint16(14158), + 2206: uint16(8967), + 2207: uint16(14162), + 2208: uint16(14160), + 2209: uint16(14150), + 2210: uint16(5723), + 2211: uint16(14161), + 2212: uint16(14165), + 2213: uint16(14164), + 2214: uint16(14166), + 2215: uint16(14163), + 2216: uint16(14167), + 2217: uint16(14168), + 2218: uint16(14169), + 2219: uint16(10569), + 2220: uint16(14171), + 2221: uint16(14170), + 2222: uint16(7198), + 2223: uint16(7949), + 2224: uint16(4421), + 2225: uint16(4443), + 2226: uint16(14172), + 2227: uint16(3870), + 2228: uint16(7979), + 2229: uint16(14173), + 2230: uint16(19234), + 2231: uint16(14336), + 2232: uint16(5696), + 2233: uint16(14337), + 2234: uint16(8014), + 2235: uint16(14338), + 2236: uint16(14339), + 2237: uint16(5145), + 2238: uint16(14340), + 2239: uint16(14341), + 2240: uint16(14342), + 2241: uint16(8502), + 2242: uint16(5932), + 2243: uint16(11072), + 2244: uint16(10779), + 2245: uint16(7241), + 2246: uint16(14343), + 2247: uint16(8015), + 2248: uint16(19740), + 2249: uint16(10049), + 2250: uint16(6985), + 2251: uint16(6444), + 2252: uint16(14344), + 2253: uint16(8486), + 2254: uint16(10502), + 2255: uint16(8528), + 2256: uint16(14347), + 2257: uint16(14345), + 2258: uint16(14348), + 2259: uint16(14346), + 2260: uint16(14349), + 2261: uint16(10512), + 2262: uint16(3862), + 2263: uint16(10301), + 2264: uint16(10050), + 2265: uint16(14350), + 2266: uint16(14353), + 2267: uint16(7444), + 2268: uint16(5146), + 2269: uint16(14351), + 2270: uint16(14358), + 2271: uint16(7445), + 2272: uint16(14352), + 2273: uint16(9763), + 2274: uint16(11325), + 2275: uint16(14354), + 2276: uint16(14355), + 2277: uint16(14359), + 2278: uint16(9289), + 2279: uint16(14356), + 2280: uint16(6162), + 2281: uint16(7997), + 2282: uint16(14373), + 2283: uint16(10003), + 2284: uint16(8529), + 2285: uint16(10051), + 2286: uint16(14604), + 2287: uint16(10585), + 2288: uint16(9040), + 2289: uint16(10836), + 2290: uint16(14362), + 2291: uint16(4352), + 2292: uint16(8777), + 2293: uint16(14371), + 2294: uint16(8723), + 2295: uint16(14365), + 2296: uint16(14372), + 2297: uint16(14367), + 2298: uint16(14374), + 2299: uint16(14370), + 2300: uint16(14369), + 2301: uint16(9806), + 2302: uint16(14363), + 2303: uint16(4444), + 2304: uint16(14361), + 2305: uint16(5200), + 2306: uint16(8530), + 2307: uint16(14357), + 2308: uint16(14360), + 2309: uint16(6163), + 2310: uint16(7994), + 2311: uint16(7446), + 2312: uint16(14368), + 2313: uint16(9777), + 2314: uint16(5201), + 2315: uint16(4647), + 2316: uint16(4678), + 2317: uint16(7680), + 2318: uint16(14376), + 2319: uint16(14381), + 2320: uint16(14377), + 2321: uint16(5724), + 2322: uint16(14382), + 2323: uint16(6657), + 2324: uint16(6216), + 2325: uint16(7173), + 2326: uint16(14364), + 2327: uint16(6748), + 2328: uint16(14379), + 2329: uint16(6711), + 2330: uint16(14380), + 2331: uint16(3875), + 2332: uint16(14375), + 2333: uint16(8968), + 2334: uint16(5202), + 2335: uint16(5395), + 2336: uint16(14378), + 2337: uint16(3846), + 2338: uint16(6434), + 2339: uint16(7701), + 2340: uint16(9041), + 2341: uint16(10035), + 2342: uint16(14384), + 2343: uint16(8253), + 2344: uint16(8457), + 2345: uint16(6666), + 2346: uint16(14385), + 2347: uint16(14387), + 2348: uint16(14383), + 2349: uint16(10560), + 2350: uint16(8988), + 2351: uint16(8251), + 2352: uint16(10586), + 2353: uint16(6957), + 2354: uint16(14399), + 2355: uint16(14398), + 2356: uint16(7767), + 2357: uint16(5725), + 2358: uint16(14392), + 2359: uint16(7448), + 2360: uint16(9543), + 2361: uint16(9744), + 2362: uint16(14390), + 2363: uint16(8252), + 2364: uint16(6999), + 2365: uint16(14395), + 2366: uint16(7447), + 2367: uint16(14389), + 2368: uint16(14394), + 2369: uint16(9778), + 2370: uint16(14388), + 2371: uint16(5632), + 2372: uint16(4668), + 2373: uint16(14396), + 2374: uint16(11530), + 2375: uint16(6445), + 2376: uint16(8724), + 2377: uint16(14393), + 2378: uint16(7995), + 2379: uint16(6164), + 2380: uint16(7747), + 2381: uint16(4165), + 2382: uint16(8219), + 2383: uint16(14391), + 2384: uint16(5156), + 2385: uint16(5670), + 2386: uint16(9006), + 2387: uint16(14397), + 2388: uint16(8254), + 2389: uint16(14400), + 2390: uint16(14402), + 2391: uint16(8470), + 2392: uint16(14408), + 2393: uint16(14403), + 2394: uint16(14405), + 2395: uint16(10272), + 2396: uint16(9042), + 2397: uint16(14406), + 2398: uint16(11275), + 2399: uint16(11303), + 2400: uint16(4888), + 2401: uint16(3853), + 2402: uint16(14404), + 2403: uint16(14401), + 2404: uint16(4951), + 2405: uint16(4166), + 2406: uint16(14407), + 2407: uint16(11304), + 2408: uint16(14411), + 2409: uint16(8474), + 2410: uint16(14418), + 2411: uint16(14412), + 2412: uint16(14409), + 2413: uint16(14416), + 2414: uint16(14386), + 2415: uint16(14413), + 2416: uint16(14417), + 2417: uint16(10017), + 2418: uint16(9290), + 2419: uint16(14410), + 2420: uint16(14414), + 2421: uint16(5671), + 2422: uint16(6480), + 2423: uint16(7996), + 2424: uint16(14422), + 2425: uint16(9221), + 2426: uint16(14419), + 2427: uint16(10815), + 2428: uint16(14420), + 2429: uint16(14421), + 2430: uint16(11053), + 2431: uint16(7937), + 2432: uint16(5697), + 2433: uint16(14428), + 2434: uint16(6676), + 2435: uint16(14425), + 2436: uint16(14424), + 2437: uint16(9745), + 2438: uint16(9492), + 2439: uint16(9232), + 2440: uint16(14426), + 2441: uint16(14427), + 2442: uint16(10318), + 2443: uint16(9764), + 2444: uint16(6658), + 2445: uint16(8016), + 2446: uint16(10799), + 2447: uint16(4648), + 2448: uint16(14596), + 2449: uint16(14429), + 2450: uint16(11305), + 2451: uint16(14598), + 2452: uint16(14594), + 2453: uint16(14595), + 2454: uint16(8255), + 2455: uint16(14593), + 2456: uint16(14366), + 2457: uint16(14597), + 2458: uint16(14592), + 2459: uint16(14602), + 2460: uint16(14603), + 2461: uint16(9222), + 2462: uint16(14605), + 2463: uint16(6659), + 2464: uint16(14600), + 2465: uint16(5147), + 2466: uint16(14606), + 2467: uint16(14599), + 2468: uint16(14610), + 2469: uint16(14609), + 2470: uint16(14608), + 2471: uint16(14611), + 2472: uint16(14613), + 2473: uint16(7504), + 2474: uint16(14612), + 2475: uint16(14616), + 2476: uint16(14614), + 2477: uint16(14615), + 2478: uint16(14415), + 2479: uint16(14618), + 2480: uint16(14617), + 2481: uint16(14423), + 2482: uint16(14619), + 2483: uint16(14607), + 2484: uint16(6712), + 2485: uint16(14620), + 2486: uint16(14621), + 2487: uint16(14623), + 2488: uint16(14622), + 2489: uint16(14624), + 2490: uint16(4445), + 2491: uint16(6165), + 2492: uint16(10587), + 2493: uint16(7950), + 2494: uint16(5933), + 2495: uint16(14626), + 2496: uint16(14629), + 2497: uint16(10289), + 2498: uint16(5182), + 2499: uint16(14628), + 2500: uint16(14627), + 2501: uint16(9779), + 2502: uint16(14630), + 2503: uint16(5396), + 2504: uint16(14632), + 2505: uint16(14631), + 2506: uint16(4889), + 2507: uint16(6677), + 2508: uint16(9527), + 2509: uint16(5672), + 2510: uint16(7763), + 2511: uint16(14633), + 2512: uint16(7951), + 2513: uint16(9223), + 2514: uint16(10302), + 2515: uint16(14634), + 2516: uint16(14635), + 2517: uint16(14636), + 2518: uint16(10519), + 2519: uint16(13372), + 2520: uint16(7973), + 2521: uint16(10283), + 2522: uint16(6455), + 2523: uint16(10052), + 2524: uint16(10018), + 2525: uint16(9260), + 2526: uint16(11552), + 2527: uint16(14638), + 2528: uint16(6959), + 2529: uint16(14639), + 2530: uint16(3861), + 2531: uint16(5427), + 2532: uint16(7980), + 2533: uint16(10303), + 2534: uint16(14640), + 2535: uint16(6689), + 2536: uint16(8742), + 2537: uint16(6714), + 2538: uint16(7702), + 2539: uint16(14641), + 2540: uint16(10588), + 2541: uint16(4182), + 2542: uint16(6715), + 2543: uint16(14644), + 2544: uint16(14642), + 2545: uint16(14645), + 2546: uint16(11544), + 2547: uint16(14643), + 2548: uint16(8026), + 2549: uint16(14646), + 2550: uint16(8465), + 2551: uint16(14647), + 2552: uint16(4953), + 2553: uint16(14649), + 2554: uint16(14648), + 2555: uint16(14650), + 2556: uint16(14651), + 2557: uint16(4954), + 2558: uint16(9563), + 2559: uint16(8725), + 2560: uint16(5195), + 2561: uint16(6716), + 2562: uint16(8256), + 2563: uint16(7227), + 2564: uint16(3855), + 2565: uint16(14652), + 2566: uint16(4353), + 2567: uint16(14656), + 2568: uint16(6166), + 2569: uint16(14655), + 2570: uint16(6410), + 2571: uint16(7449), + 2572: uint16(14654), + 2573: uint16(7450), + 2574: uint16(11039), + 2575: uint16(6409), + 2576: uint16(3894), + 2577: uint16(7981), + 2578: uint16(14661), + 2579: uint16(7952), + 2580: uint16(4134), + 2581: uint16(7220), + 2582: uint16(10821), + 2583: uint16(6481), + 2584: uint16(7451), + 2585: uint16(7942), + 2586: uint16(14660), + 2587: uint16(14658), + 2588: uint16(14659), + 2589: uint16(8778), + 2590: uint16(14853), + 2591: uint16(14665), + 2592: uint16(6749), + 2593: uint16(6167), + 2594: uint16(14663), + 2595: uint16(14664), + 2596: uint16(7703), + 2597: uint16(14662), + 2598: uint16(6670), + 2599: uint16(14667), + 2600: uint16(14666), + 2601: uint16(14671), + 2602: uint16(14672), + 2603: uint16(14668), + 2604: uint16(4609), + 2605: uint16(14669), + 2606: uint16(14670), + 2607: uint16(10036), + 2608: uint16(10304), + 2609: uint16(5673), + 2610: uint16(14673), + 2611: uint16(7953), + 2612: uint16(7452), + 2613: uint16(8753), + 2614: uint16(5414), + 2615: uint16(14674), + 2616: uint16(14678), + 2617: uint16(4394), + 2618: uint16(14675), + 2619: uint16(14677), + 2620: uint16(14676), + 2621: uint16(7242), + 2622: uint16(8743), + 2623: uint16(3876), + 2624: uint16(14679), + 2625: uint16(14680), + 2626: uint16(8969), + 2627: uint16(11600), + 2628: uint16(6690), + 2629: uint16(10570), + 2630: uint16(10780), + 2631: uint16(14849), + 2632: uint16(14682), + 2633: uint16(14685), + 2634: uint16(14684), + 2635: uint16(14681), + 2636: uint16(14848), + 2637: uint16(9533), + 2638: uint16(14683), + 2639: uint16(14850), + 2640: uint16(7243), + 2641: uint16(14851), + 2642: uint16(11306), + 2643: uint16(9815), + 2644: uint16(14852), + 2645: uint16(14854), + 2646: uint16(14855), + 2647: uint16(14856), + 2648: uint16(5417), + 2649: uint16(4135), + 2650: uint16(6168), + 2651: uint16(14857), + 2652: uint16(14858), + 2653: uint16(7248), + 2654: uint16(8257), + 2655: uint16(12599), + 2656: uint16(8221), + 2657: uint16(8220), + 2658: uint16(8503), + 2659: uint16(6438), + 2660: uint16(12113), + 2661: uint16(5709), + 2662: uint16(11276), + 2663: uint16(10589), + 2664: uint16(10333), + 2665: uint16(14859), + 2666: uint16(6482), + 2667: uint16(8990), + 2668: uint16(14860), + 2669: uint16(11790), + 2670: uint16(10781), + 2671: uint16(8970), + 2672: uint16(14861), + 2673: uint16(4955), + 2674: uint16(14862), + 2675: uint16(14863), + 2676: uint16(11065), + 2677: uint16(11011), + 2678: uint16(10837), + 2679: uint16(10811), + 2680: uint16(6660), + 2681: uint16(14865), + 2682: uint16(6986), + 2683: uint16(10800), + 2684: uint16(14867), + 2685: uint16(14870), + 2686: uint16(14869), + 2687: uint16(4952), + 2688: uint16(5183), + 2689: uint16(14866), + 2690: uint16(14868), + 2691: uint16(14871), + 2692: uint16(7768), + 2693: uint16(11354), + 2694: uint16(3880), + 2695: uint16(6463), + 2696: uint16(8475), + 2697: uint16(6972), + 2698: uint16(7506), + 2699: uint16(14874), + 2700: uint16(9261), + 2701: uint16(14872), + 2702: uint16(8458), + 2703: uint16(14873), + 2704: uint16(7505), + 2705: uint16(11068), + 2706: uint16(14875), + 2707: uint16(14876), + 2708: uint16(11335), + 2709: uint16(14881), + 2710: uint16(6169), + 2711: uint16(9780), + 2712: uint16(14878), + 2713: uint16(9291), + 2714: uint16(14653), + 2715: uint16(14657), + 2716: uint16(5166), + 2717: uint16(9766), + 2718: uint16(14880), + 2719: uint16(7453), + 2720: uint16(10019), + 2721: uint16(14886), + 2722: uint16(10073), + 2723: uint16(14877), + 2724: uint16(14883), + 2725: uint16(14882), + 2726: uint16(7982), + 2727: uint16(10828), + 2728: uint16(11570), + 2729: uint16(10822), + 2730: uint16(4395), + 2731: uint16(6717), + 2732: uint16(11815), + 2733: uint16(14885), + 2734: uint16(7764), + 2735: uint16(14884), + 2736: uint16(14879), + 2737: uint16(5934), + 2738: uint16(14891), + 2739: uint16(14889), + 2740: uint16(4396), + 2741: uint16(14887), + 2742: uint16(14893), + 2743: uint16(14899), + 2744: uint16(8487), + 2745: uint16(10528), + 2746: uint16(14901), + 2747: uint16(10241), + 2748: uint16(14900), + 2749: uint16(9807), + 2750: uint16(10782), + 2751: uint16(4890), + 2752: uint16(8022), + 2753: uint16(7199), + 2754: uint16(9010), + 2755: uint16(11277), + 2756: uint16(14896), + 2757: uint16(14895), + 2758: uint16(14897), + 2759: uint16(14894), + 2760: uint16(14902), + 2761: uint16(14892), + 2762: uint16(14890), + 2763: uint16(14898), + 2764: uint16(14888), + 2765: uint16(8779), + 2766: uint16(11095), + 2767: uint16(6949), + 2768: uint16(6483), + 2769: uint16(6425), + 2770: uint16(10830), + 2771: uint16(4640), + 2772: uint16(9005), + 2773: uint16(9513), + 2774: uint16(4136), + 2775: uint16(8017), + 2776: uint16(7955), + 2777: uint16(5641), + 2778: uint16(14904), + 2779: uint16(6170), + 2780: uint16(4699), + 2781: uint16(14906), + 2782: uint16(4691), + 2783: uint16(14912), + 2784: uint16(14909), + 2785: uint16(8018), + 2786: uint16(4650), + 2787: uint16(6411), + 2788: uint16(4649), + 2789: uint16(6446), + 2790: uint16(14907), + 2791: uint16(5700), + 2792: uint16(5674), + 2793: uint16(9292), + 2794: uint16(14905), + 2795: uint16(3877), + 2796: uint16(14908), + 2797: uint16(14910), + 2798: uint16(5420), + 2799: uint16(5643), + 2800: uint16(4891), + 2801: uint16(5162), + 2802: uint16(14913), + 2803: uint16(6488), + 2804: uint16(10832), + 2805: uint16(6678), + 2806: uint16(14914), + 2807: uint16(10255), + 2808: uint16(14926), + 2809: uint16(4370), + 2810: uint16(14915), + 2811: uint16(14932), + 2812: uint16(14916), + 2813: uint16(11553), + 2814: uint16(14923), + 2815: uint16(9790), + 2816: uint16(14931), + 2817: uint16(14918), + 2818: uint16(3859), + 2819: uint16(14920), + 2820: uint16(6171), + 2821: uint16(14922), + 2822: uint16(14921), + 2823: uint16(14917), + 2824: uint16(14928), + 2825: uint16(7454), + 2826: uint16(13132), + 2827: uint16(5959), + 2828: uint16(11355), + 2829: uint16(14919), + 2830: uint16(9043), + 2831: uint16(4610), + 2832: uint16(6412), + 2833: uint16(14911), + 2834: uint16(14927), + 2835: uint16(4672), + 2836: uint16(14925), + 2837: uint16(14929), + 2838: uint16(9293), + 2839: uint16(4957), + 2840: uint16(15121), + 2841: uint16(11048), + 2842: uint16(14934), + 2843: uint16(4956), + 2844: uint16(14941), + 2845: uint16(10783), + 2846: uint16(15104), + 2847: uint16(15106), + 2848: uint16(15110), + 2849: uint16(14936), + 2850: uint16(8713), + 2851: uint16(9294), + 2852: uint16(15114), + 2853: uint16(14939), + 2854: uint16(15111), + 2855: uint16(15105), + 2856: uint16(7704), + 2857: uint16(15115), + 2858: uint16(7954), + 2859: uint16(15113), + 2860: uint16(4892), + 2861: uint16(11823), + 2862: uint16(14933), + 2863: uint16(15109), + 2864: uint16(3895), + 2865: uint16(14935), + 2866: uint16(11033), + 2867: uint16(14940), + 2868: uint16(7681), + 2869: uint16(8998), + 2870: uint16(14930), + 2871: uint16(15108), + 2872: uint16(7769), + 2873: uint16(15118), + 2874: uint16(4688), + 2875: uint16(5888), + 2876: uint16(15120), + 2877: uint16(14937), + 2878: uint16(15119), + 2879: uint16(15112), + 2880: uint16(14938), + 2881: uint16(15116), + 2882: uint16(15117), + 2883: uint16(15134), + 2884: uint16(9517), + 2885: uint16(15107), + 2886: uint16(15130), + 2887: uint16(15132), + 2888: uint16(9015), + 2889: uint16(11307), + 2890: uint16(10325), + 2891: uint16(15127), + 2892: uint16(8489), + 2893: uint16(15133), + 2894: uint16(8222), + 2895: uint16(15124), + 2896: uint16(15137), + 2897: uint16(15136), + 2898: uint16(9550), + 2899: uint16(15135), + 2900: uint16(9545), + 2901: uint16(15139), + 2902: uint16(15126), + 2903: uint16(5415), + 2904: uint16(15129), + 2905: uint16(7228), + 2906: uint16(9791), + 2907: uint16(15131), + 2908: uint16(5418), + 2909: uint16(15123), + 2910: uint16(15125), + 2911: uint16(15122), + 2912: uint16(11791), + 2913: uint16(4665), + 2914: uint16(15128), + 2915: uint16(15138), + 2916: uint16(4628), + 2917: uint16(6470), + 2918: uint16(4156), + 2919: uint16(15155), + 2920: uint16(11792), + 2921: uint16(15158), + 2922: uint16(7705), + 2923: uint16(15157), + 2924: uint16(15156), + 2925: uint16(15153), + 2926: uint16(15141), + 2927: uint16(15170), + 2928: uint16(15140), + 2929: uint16(15159), + 2930: uint16(15151), + 2931: uint16(15146), + 2932: uint16(15143), + 2933: uint16(15144), + 2934: uint16(15152), + 2935: uint16(21249), + 2936: uint16(15149), + 2937: uint16(6172), + 2938: uint16(8999), + 2939: uint16(8259), + 2940: uint16(15147), + 2941: uint16(15142), + 2942: uint16(15145), + 2943: uint16(11308), + 2944: uint16(10825), + 2945: uint16(15150), + 2946: uint16(15160), + 2947: uint16(15168), + 2948: uint16(15161), + 2949: uint16(15174), + 2950: uint16(15172), + 2951: uint16(15167), + 2952: uint16(15166), + 2953: uint16(9007), + 2954: uint16(8260), + 2955: uint16(15164), + 2956: uint16(15162), + 2957: uint16(15169), + 2958: uint16(15175), + 2959: uint16(10068), + 2960: uint16(15181), + 2961: uint16(15176), + 2962: uint16(15179), + 2963: uint16(15173), + 2964: uint16(8787), + 2965: uint16(10263), + 2966: uint16(15163), + 2967: uint16(15171), + 2968: uint16(7455), + 2969: uint16(11054), + 2970: uint16(15191), + 2971: uint16(15178), + 2972: uint16(5889), + 2973: uint16(4354), + 2974: uint16(4670), + 2975: uint16(15154), + 2976: uint16(7456), + 2977: uint16(15183), + 2978: uint16(15190), + 2979: uint16(7000), + 2980: uint16(4689), + 2981: uint16(8717), + 2982: uint16(15180), + 2983: uint16(15185), + 2984: uint16(15189), + 2985: uint16(5397), + 2986: uint16(5163), + 2987: uint16(15187), + 2988: uint16(5120), + 2989: uint16(9514), + 2990: uint16(15186), + 2991: uint16(15188), + 2992: uint16(15182), + 2993: uint16(15184), + 2994: uint16(4671), + 2995: uint16(8744), + 2996: uint16(15195), + 2997: uint16(15193), + 2998: uint16(5960), + 2999: uint16(15192), + 3000: uint16(15360), + 3001: uint16(14903), + 3002: uint16(15194), + 3003: uint16(15196), + 3004: uint16(15197), + 3005: uint16(15371), + 3006: uint16(15367), + 3007: uint16(14924), + 3008: uint16(15366), + 3009: uint16(15365), + 3010: uint16(15362), + 3011: uint16(15177), + 3012: uint16(15364), + 3013: uint16(15363), + 3014: uint16(15369), + 3015: uint16(11781), + 3016: uint16(15372), + 3017: uint16(5466), + 3018: uint16(15368), + 3019: uint16(15370), + 3020: uint16(9990), + 3021: uint16(15373), + 3022: uint16(15377), + 3023: uint16(15374), + 3024: uint16(11346), + 3025: uint16(15375), + 3026: uint16(15165), + 3027: uint16(15378), + 3028: uint16(15379), + 3029: uint16(4116), + 3030: uint16(15381), + 3031: uint16(5702), + 3032: uint16(6912), + 3033: uint16(5428), + 3034: uint16(4355), + 3035: uint16(11326), + 3036: uint16(15383), + 3037: uint16(15382), + 3038: uint16(15385), + 3039: uint16(5148), + 3040: uint16(5429), + 3041: uint16(4893), + 3042: uint16(15388), + 3043: uint16(15387), + 3044: uint16(15389), + 3045: uint16(4397), + 3046: uint16(8726), + 3047: uint16(15390), + 3048: uint16(4894), + 3049: uint16(15392), + 3050: uint16(15391), + 3051: uint16(15393), + 3052: uint16(15394), + 3053: uint16(15395), + 3054: uint16(6718), + 3055: uint16(7956), + 3056: uint16(6400), + 3057: uint16(10319), + 3058: uint16(10561), + 3059: uint16(11811), + 3060: uint16(6740), + 3061: uint16(6447), + 3062: uint16(11601), + 3063: uint16(15396), + 3064: uint16(15397), + 3065: uint16(6719), + 3066: uint16(15398), + 3067: uint16(15399), + 3068: uint16(15401), + 3069: uint16(15400), + 3070: uint16(10807), + 3071: uint16(7229), + 3072: uint16(6987), + 3073: uint16(6691), + 3074: uint16(15402), + 3075: uint16(15404), + 3076: uint16(7682), + 3077: uint16(15403), + 3078: uint16(15405), + 3079: uint16(15406), + 3080: uint16(15407), + 3081: uint16(15408), + 3082: uint16(15409), + 3083: uint16(15411), + 3084: uint16(15410), + 3085: uint16(15412), + 3086: uint16(4356), + 3087: uint16(8745), + 3088: uint16(15413), + 3089: uint16(6661), + 3090: uint16(4651), + 3091: uint16(15414), + 3092: uint16(9249), + 3093: uint16(13099), + 3094: uint16(5122), + 3095: uint16(15415), + 3096: uint16(15416), + 3097: uint16(10571), + 3098: uint16(10823), + 3099: uint16(9510), + 3100: uint16(15417), + 3101: uint16(10053), + 3102: uint16(10074), + 3103: uint16(11058), + 3104: uint16(15418), + 3105: uint16(15420), + 3106: uint16(15419), + 3107: uint16(15422), + 3108: uint16(15421), + 3109: uint16(15424), + 3110: uint16(6720), + 3111: uint16(11024), + 3112: uint16(15425), + 3113: uint16(15426), + 3114: uint16(5123), + 3115: uint16(15427), + 3116: uint16(15429), + 3117: uint16(15428), + 3118: uint16(7748), + 3119: uint16(10264), + 3120: uint16(4137), + 3121: uint16(10020), + 3122: uint16(9044), + 3123: uint16(7200), + 3124: uint16(5184), + 3125: uint16(10021), + 3126: uint16(6925), + 3127: uint16(15431), + 3128: uint16(4895), + 3129: uint16(4183), + 3130: uint16(9553), + 3131: uint16(15430), + 3132: uint16(6173), + 3133: uint16(8754), + 3134: uint16(15432), + 3135: uint16(15440), + 3136: uint16(15433), + 3137: uint16(8480), + 3138: uint16(5185), + 3139: uint16(15441), + 3140: uint16(5703), + 3141: uint16(5124), + 3142: uint16(15439), + 3143: uint16(15437), + 3144: uint16(15434), + 3145: uint16(11327), + 3146: uint16(8991), + 3147: uint16(9528), + 3148: uint16(15435), + 3149: uint16(15443), + 3150: uint16(15442), + 3151: uint16(5634), + 3152: uint16(4364), + 3153: uint16(6426), + 3154: uint16(15436), + 3155: uint16(15438), + 3156: uint16(10806), + 3157: uint16(8531), + 3158: uint16(10838), + 3159: uint16(15451), + 3160: uint16(15452), + 3161: uint16(4398), + 3162: uint16(10503), + 3163: uint16(11100), + 3164: uint16(15616), + 3165: uint16(6914), + 3166: uint16(7457), + 3167: uint16(15447), + 3168: uint16(15453), + 3169: uint16(4167), + 3170: uint16(5398), + 3171: uint16(15444), + 3172: uint16(15449), + 3173: uint16(8019), + 3174: uint16(9808), + 3175: uint16(10054), + 3176: uint16(15446), + 3177: uint16(10752), + 3178: uint16(15448), + 3179: uint16(15619), + 3180: uint16(15617), + 3181: uint16(15450), + 3182: uint16(10753), + 3183: uint16(9767), + 3184: uint16(5186), + 3185: uint16(9220), + 3186: uint16(8780), + 3187: uint16(15620), + 3188: uint16(15618), + 3189: uint16(8504), + 3190: uint16(15445), + 3191: uint16(4138), + 3192: uint16(11309), + 3193: uint16(15631), + 3194: uint16(15630), + 3195: uint16(8021), + 3196: uint16(15627), + 3197: uint16(11339), + 3198: uint16(9493), + 3199: uint16(15621), + 3200: uint16(8996), + 3201: uint16(4139), + 3202: uint16(6174), + 3203: uint16(15624), + 3204: uint16(7174), + 3205: uint16(15629), + 3206: uint16(15628), + 3207: uint16(15623), + 3208: uint16(15626), + 3209: uint16(4679), + 3210: uint16(15625), + 3211: uint16(9768), + 3212: uint16(11533), + 3213: uint16(7507), + 3214: uint16(8020), + 3215: uint16(15637), + 3216: uint16(15635), + 3217: uint16(10284), + 3218: uint16(15632), + 3219: uint16(15634), + 3220: uint16(4121), + 3221: uint16(6175), + 3222: uint16(11793), + 3223: uint16(4636), + 3224: uint16(10305), + 3225: uint16(11328), + 3226: uint16(4611), + 3227: uint16(7706), + 3228: uint16(15636), + 3229: uint16(15641), + 3230: uint16(7458), + 3231: uint16(11279), + 3232: uint16(15638), + 3233: uint16(15633), + 3234: uint16(15639), + 3235: uint16(11581), + 3236: uint16(9298), + 3237: uint16(9505), + 3238: uint16(4629), + 3239: uint16(4148), + 3240: uint16(15645), + 3241: uint16(15648), + 3242: uint16(11554), + 3243: uint16(11331), + 3244: uint16(15655), + 3245: uint16(15649), + 3246: uint16(15646), + 3247: uint16(11571), + 3248: uint16(15652), + 3249: uint16(7209), + 3250: uint16(15654), + 3251: uint16(15659), + 3252: uint16(9296), + 3253: uint16(15657), + 3254: uint16(15651), + 3255: uint16(8727), + 3256: uint16(15658), + 3257: uint16(15647), + 3258: uint16(15653), + 3259: uint16(15660), + 3260: uint16(3931), + 3261: uint16(15650), + 3262: uint16(15661), + 3263: uint16(7707), + 3264: uint16(7230), + 3265: uint16(10500), + 3266: uint16(6413), + 3267: uint16(15642), + 3268: uint16(15656), + 3269: uint16(9241), + 3270: uint16(7957), + 3271: uint16(4680), + 3272: uint16(6448), + 3273: uint16(7459), + 3274: uint16(15644), + 3275: uint16(7201), + 3276: uint16(5675), + 3277: uint16(15643), + 3278: uint16(15665), + 3279: uint16(7244), + 3280: uint16(5913), + 3281: uint16(15680), + 3282: uint16(15674), + 3283: uint16(5203), + 3284: uint16(9262), + 3285: uint16(15669), + 3286: uint16(15678), + 3287: uint16(3854), + 3288: uint16(4113), + 3289: uint16(4376), + 3290: uint16(15671), + 3291: uint16(8459), + 3292: uint16(15662), + 3293: uint16(15664), + 3294: uint16(6176), + 3295: uint16(15681), + 3296: uint16(15676), + 3297: uint16(15668), + 3298: uint16(15675), + 3299: uint16(11018), + 3300: uint16(15673), + 3301: uint16(15677), + 3302: uint16(5935), + 3303: uint16(7460), + 3304: uint16(8728), + 3305: uint16(15667), + 3306: uint16(11278), + 3307: uint16(15670), + 3308: uint16(15663), + 3309: uint16(9297), + 3310: uint16(15666), + 3311: uint16(15672), + 3312: uint16(11824), + 3313: uint16(6941), + 3314: uint16(10845), + 3315: uint16(15682), + 3316: uint16(9997), + 3317: uint16(15694), + 3318: uint16(5914), + 3319: uint16(7231), + 3320: uint16(15684), + 3321: uint16(11534), + 3322: uint16(6177), + 3323: uint16(15697), + 3324: uint16(3917), + 3325: uint16(15695), + 3326: uint16(15683), + 3327: uint16(15689), + 3328: uint16(15691), + 3329: uint16(11310), + 3330: uint16(15686), + 3331: uint16(9229), + 3332: uint16(15688), + 3333: uint16(15696), + 3334: uint16(15690), + 3335: uint16(11046), + 3336: uint16(15685), + 3337: uint16(6913), + 3338: uint16(15709), + 3339: uint16(4681), + 3340: uint16(15687), + 3341: uint16(15692), + 3342: uint16(15693), + 3343: uint16(8523), + 3344: uint16(8505), + 3345: uint16(15701), + 3346: uint16(15707), + 3347: uint16(15705), + 3348: uint16(9224), + 3349: uint16(15874), + 3350: uint16(15702), + 3351: uint16(15703), + 3352: uint16(15679), + 3353: uint16(5208), + 3354: uint16(10265), + 3355: uint16(6942), + 3356: uint16(6230), + 3357: uint16(11794), + 3358: uint16(15699), + 3359: uint16(15873), + 3360: uint16(4168), + 3361: uint16(8261), + 3362: uint16(9816), + 3363: uint16(4896), + 3364: uint16(11609), + 3365: uint16(11008), + 3366: uint16(9009), + 3367: uint16(15706), + 3368: uint16(15708), + 3369: uint16(8209), + 3370: uint16(15872), + 3371: uint16(15704), + 3372: uint16(15698), + 3373: uint16(4898), + 3374: uint16(5704), + 3375: uint16(15886), + 3376: uint16(15881), + 3377: uint16(8023), + 3378: uint16(4674), + 3379: uint16(7232), + 3380: uint16(15890), + 3381: uint16(15883), + 3382: uint16(8971), + 3383: uint16(15880), + 3384: uint16(9016), + 3385: uint16(15915), + 3386: uint16(15877), + 3387: uint16(15876), + 3388: uint16(15885), + 3389: uint16(15879), + 3390: uint16(15878), + 3391: uint16(15884), + 3392: uint16(7936), + 3393: uint16(15875), + 3394: uint16(15887), + 3395: uint16(15888), + 3396: uint16(4897), + 3397: uint16(15893), + 3398: uint16(15892), + 3399: uint16(15894), + 3400: uint16(15897), + 3401: uint16(9250), + 3402: uint16(15891), + 3403: uint16(15895), + 3404: uint16(5698), + 3405: uint16(8536), + 3406: uint16(15889), + 3407: uint16(9754), + 3408: uint16(15896), + 3409: uint16(15901), + 3410: uint16(15899), + 3411: uint16(15902), + 3412: uint16(15905), + 3413: uint16(15898), + 3414: uint16(6217), + 3415: uint16(9735), + 3416: uint16(15640), + 3417: uint16(11347), + 3418: uint16(15900), + 3419: uint16(15904), + 3420: uint16(8532), + 3421: uint16(15903), + 3422: uint16(15882), + 3423: uint16(20040), + 3424: uint16(15908), + 3425: uint16(15912), + 3426: uint16(15910), + 3427: uint16(15906), + 3428: uint16(15907), + 3429: uint16(15911), + 3430: uint16(15909), + 3431: uint16(10285), + 3432: uint16(15917), + 3433: uint16(15914), + 3434: uint16(15913), + 3435: uint16(15916), + 3436: uint16(9523), + 3437: uint16(15918), + 3438: uint16(8788), + 3439: uint16(8524), + 3440: uint16(7940), + 3441: uint16(15919), + 3442: uint16(15921), + 3443: uint16(15920), + 3444: uint16(15700), + 3445: uint16(15922), + 3446: uint16(9542), + 3447: uint16(15923), + 3448: uint16(4399), + 3449: uint16(9299), + 3450: uint16(4612), + 3451: uint16(5187), + 3452: uint16(6973), + 3453: uint16(6449), + 3454: uint16(11782), + 3455: uint16(7749), + 3456: uint16(4169), + 3457: uint16(15925), + 3458: uint16(15924), + 3459: uint16(15928), + 3460: uint16(8729), + 3461: uint16(15931), + 3462: uint16(15926), + 3463: uint16(15930), + 3464: uint16(15929), + 3465: uint16(9247), + 3466: uint16(3896), + 3467: uint16(11604), + 3468: uint16(15933), + 3469: uint16(4103), + 3470: uint16(15935), + 3471: uint16(15934), + 3472: uint16(15932), + 3473: uint16(15927), + 3474: uint16(10754), + 3475: uint16(15937), + 3476: uint16(15936), + 3477: uint16(4170), + 3478: uint16(15939), + 3479: uint16(10513), + 3480: uint16(15938), + 3481: uint16(11028), + 3482: uint16(7462), + 3483: uint16(8210), + 3484: uint16(7461), + 3485: uint16(11610), + 3486: uint16(15945), + 3487: uint16(8024), + 3488: uint16(15941), + 3489: uint16(15946), + 3490: uint16(4171), + 3491: uint16(15944), + 3492: uint16(9792), + 3493: uint16(15940), + 3494: uint16(15943), + 3495: uint16(7463), + 3496: uint16(10032), + 3497: uint16(15947), + 3498: uint16(6960), + 3499: uint16(8025), + 3500: uint16(15950), + 3501: uint16(15942), + 3502: uint16(5638), + 3503: uint16(15948), + 3504: uint16(11311), + 3505: uint16(15951), + 3506: uint16(21253), + 3507: uint16(7214), + 3508: uint16(15952), + 3509: uint16(15953), + 3510: uint16(9741), + 3511: uint16(15955), + 3512: uint16(15956), + 3513: uint16(9746), + 3514: uint16(9300), + 3515: uint16(15958), + 3516: uint16(15960), + 3517: uint16(11572), + 3518: uint16(15957), + 3519: uint16(15959), + 3520: uint16(4172), + 3521: uint16(15954), + 3522: uint16(12858), + 3523: uint16(15961), + 3524: uint16(8262), + 3525: uint16(6679), + 3526: uint16(15963), + 3527: uint16(15962), + 3528: uint16(7683), + 3529: uint16(12600), + 3530: uint16(15964), + 3531: uint16(16128), + 3532: uint16(15949), + 3533: uint16(15965), + 3534: uint16(16129), + 3535: uint16(9817), + 3536: uint16(16130), + 3537: uint16(16131), + 3538: uint16(16132), + 3539: uint16(16133), + 3540: uint16(9021), + 3541: uint16(16135), + 3542: uint16(16134), + 3543: uint16(16136), + 3544: uint16(16137), + 3545: uint16(6974), + 3546: uint16(10306), + 3547: uint16(11083), + 3548: uint16(16138), + 3549: uint16(16139), + 3550: uint16(8245), + 3551: uint16(6915), + 3552: uint16(16140), + 3553: uint16(16141), + 3554: uint16(16142), + 3555: uint16(10545), + 3556: uint16(10022), + 3557: uint16(16143), + 3558: uint16(9782), + 3559: uint16(8972), + 3560: uint16(16144), + 3561: uint16(4422), + 3562: uint16(5196), + 3563: uint16(11045), + 3564: uint16(11029), + 3565: uint16(4371), + 3566: uint16(11795), + 3567: uint16(10801), + 3568: uint16(10505), + 3569: uint16(7958), + 3570: uint16(16145), + 3571: uint16(9506), + 3572: uint16(5890), + 3573: uint16(16146), + 3574: uint16(6451), + 3575: uint16(16148), + 3576: uint16(16147), + 3577: uint16(16149), + 3578: uint16(16150), + 3579: uint16(16151), + 3580: uint16(5149), + 3581: uint16(16152), + 3582: uint16(16153), + 3583: uint16(5891), + 3584: uint16(10023), + 3585: uint16(16155), + 3586: uint16(7508), + 3587: uint16(16154), + 3588: uint16(5399), + 3589: uint16(16156), + 3590: uint16(16158), + 3591: uint16(16157), + 3592: uint16(16159), + 3593: uint16(5936), + 3594: uint16(16160), + 3595: uint16(5448), + 3596: uint16(8223), + 3597: uint16(6236), + 3598: uint16(16162), + 3599: uint16(16163), + 3600: uint16(16161), + 3601: uint16(6988), + 3602: uint16(9511), + 3603: uint16(5400), + 3604: uint16(16165), + 3605: uint16(8715), + 3606: uint16(16164), + 3607: uint16(11796), + 3608: uint16(9793), + 3609: uint16(16168), + 3610: uint16(16170), + 3611: uint16(16167), + 3612: uint16(11059), + 3613: uint16(16169), + 3614: uint16(16171), + 3615: uint16(11555), + 3616: uint16(16175), + 3617: uint16(16174), + 3618: uint16(8789), + 3619: uint16(9740), + 3620: uint16(5892), + 3621: uint16(16173), + 3622: uint16(16172), + 3623: uint16(11280), + 3624: uint16(11281), + 3625: uint16(16176), + 3626: uint16(4173), + 3627: uint16(6229), + 3628: uint16(6721), + 3629: uint16(16177), + 3630: uint16(16178), + 3631: uint16(16180), + 3632: uint16(7202), + 3633: uint16(16182), + 3634: uint16(16181), + 3635: uint16(16183), + 3636: uint16(4652), + 3637: uint16(16185), + 3638: uint16(16184), + 3639: uint16(16187), + 3640: uint16(16186), + 3641: uint16(5915), + 3642: uint16(11527), + 3643: uint16(5419), + 3644: uint16(4357), + 3645: uint16(5449), + 3646: uint16(4928), + 3647: uint16(11591), + 3648: uint16(16189), + 3649: uint16(16191), + 3650: uint16(16192), + 3651: uint16(4400), + 3652: uint16(16188), + 3653: uint16(6680), + 3654: uint16(8992), + 3655: uint16(16190), + 3656: uint16(16195), + 3657: uint16(6989), + 3658: uint16(16193), + 3659: uint16(5661), + 3660: uint16(10024), + 3661: uint16(16194), + 3662: uint16(16221), + 3663: uint16(16200), + 3664: uint16(5916), + 3665: uint16(5188), + 3666: uint16(16197), + 3667: uint16(11356), + 3668: uint16(11535), + 3669: uint16(8533), + 3670: uint16(16199), + 3671: uint16(16201), + 3672: uint16(11573), + 3673: uint16(5430), + 3674: uint16(10075), + 3675: uint16(9769), + 3676: uint16(16202), + 3677: uint16(16204), + 3678: uint16(16207), + 3679: uint16(16203), + 3680: uint16(16206), + 3681: uint16(5961), + 3682: uint16(4140), + 3683: uint16(16208), + 3684: uint16(7759), + 3685: uint16(16205), + 3686: uint16(11579), + 3687: uint16(16211), + 3688: uint16(21251), + 3689: uint16(16209), + 3690: uint16(16212), + 3691: uint16(16198), + 3692: uint16(16210), + 3693: uint16(6427), + 3694: uint16(16213), + 3695: uint16(16214), + 3696: uint16(11357), + 3697: uint16(16215), + 3698: uint16(16216), + 3699: uint16(16196), + 3700: uint16(16217), + 3701: uint16(4899), + 3702: uint16(6916), + 3703: uint16(16218), + 3704: uint16(16219), + 3705: uint16(16220), + 3706: uint16(4122), + 3707: uint16(16384), + 3708: uint16(10266), + 3709: uint16(16385), + 3710: uint16(4867), + 3711: uint16(16386), + 3712: uint16(16387), + 3713: uint16(16388), + 3714: uint16(16390), + 3715: uint16(16391), + 3716: uint16(16389), + 3717: uint16(10290), + 3718: uint16(16393), + 3719: uint16(16392), + 3720: uint16(16395), + 3721: uint16(16394), + 3722: uint16(16396), + 3723: uint16(16397), + 3724: uint16(16399), + 3725: uint16(16398), + 3726: uint16(6232), + 3727: uint16(16401), + 3728: uint16(16400), + 3729: uint16(4900), + 3730: uint16(7730), + 3731: uint16(9243), + 3732: uint16(16402), + 3733: uint16(7959), + 3734: uint16(6681), + 3735: uint16(4184), + 3736: uint16(16403), + 3737: uint16(11312), + 3738: uint16(10562), + 3739: uint16(16404), + 3740: uint16(9251), + 3741: uint16(11282), + 3742: uint16(6178), + 3743: uint16(7708), + 3744: uint16(8746), + 3745: uint16(12563), + 3746: uint16(8973), + 3747: uint16(4423), + 3748: uint16(16405), + 3749: uint16(16406), + 3750: uint16(16411), + 3751: uint16(16409), + 3752: uint16(16408), + 3753: uint16(14625), + 3754: uint16(4613), + 3755: uint16(16407), + 3756: uint16(3897), + 3757: uint16(9993), + 3758: uint16(10025), + 3759: uint16(11536), + 3760: uint16(16412), + 3761: uint16(16410), + 3762: uint16(8763), + 3763: uint16(7941), + 3764: uint16(9994), + 3765: uint16(10252), + 3766: uint16(16414), + 3767: uint16(11531), + 3768: uint16(5676), + 3769: uint16(16415), + 3770: uint16(16413), + 3771: uint16(10037), + 3772: uint16(16416), + 3773: uint16(16417), + 3774: uint16(3898), + 3775: uint16(7509), + 3776: uint16(16422), + 3777: uint16(16419), + 3778: uint16(9548), + 3779: uint16(16418), + 3780: uint16(5125), + 3781: uint16(16425), + 3782: uint16(16420), + 3783: uint16(16421), + 3784: uint16(16424), + 3785: uint16(16423), + 3786: uint16(10244), + 3787: uint16(8225), + 3788: uint16(8224), + 3789: uint16(5150), + 3790: uint16(16426), + 3791: uint16(16427), + 3792: uint16(16428), + 3793: uint16(16430), + 3794: uint16(16429), + 3795: uint16(4149), + 3796: uint16(16438), + 3797: uint16(10055), + 3798: uint16(16432), + 3799: uint16(16434), + 3800: uint16(16436), + 3801: uint16(7709), + 3802: uint16(16437), + 3803: uint16(16435), + 3804: uint16(6943), + 3805: uint16(16431), + 3806: uint16(16433), + 3807: uint16(10273), + 3808: uint16(7464), + 3809: uint16(16440), + 3810: uint16(16439), + 3811: uint16(16441), + 3812: uint16(6917), + 3813: uint16(6414), + 3814: uint16(9302), + 3815: uint16(16442), + 3816: uint16(9002), + 3817: uint16(16444), + 3818: uint16(11520), + 3819: uint16(16443), + 3820: uint16(8264), + 3821: uint16(16449), + 3822: uint16(16451), + 3823: uint16(16452), + 3824: uint16(8755), + 3825: uint16(16450), + 3826: uint16(16447), + 3827: uint16(16445), + 3828: uint16(16446), + 3829: uint16(16448), + 3830: uint16(16455), + 3831: uint16(16453), + 3832: uint16(16454), + 3833: uint16(16456), + 3834: uint16(16458), + 3835: uint16(16459), + 3836: uint16(16460), + 3837: uint16(16461), + 3838: uint16(16457), + 3839: uint16(16463), + 3840: uint16(16462), + 3841: uint16(16464), + 3842: uint16(11556), + 3843: uint16(16467), + 3844: uint16(16465), + 3845: uint16(16466), + 3846: uint16(4929), + 3847: uint16(11101), + 3848: uint16(10537), + 3849: uint16(16469), + 3850: uint16(16468), + 3851: uint16(16470), + 3852: uint16(16471), + 3853: uint16(16475), + 3854: uint16(16472), + 3855: uint16(16473), + 3856: uint16(16474), + 3857: uint16(16476), + 3858: uint16(16477), + 3859: uint16(16640), + 3860: uint16(16641), + 3861: uint16(16642), + 3862: uint16(9998), + 3863: uint16(9263), + 3864: uint16(16643), + 3865: uint16(9809), + 3866: uint16(10259), + 3867: uint16(16644), + 3868: uint16(16645), + 3869: uint16(9225), + 3870: uint16(4614), + 3871: uint16(6179), + 3872: uint16(16646), + 3873: uint16(16647), + 3874: uint16(16648), + 3875: uint16(6664), + 3876: uint16(16650), + 3877: uint16(16649), + 3878: uint16(16651), + 3879: uint16(16652), + 3880: uint16(10056), + 3881: uint16(16653), + 3882: uint16(16654), + 3883: uint16(21064), + 3884: uint16(16655), + 3885: uint16(16656), + 3886: uint16(16657), + 3887: uint16(6669), + 3888: uint16(16658), + 3889: uint16(9781), + 3890: uint16(10814), + 3891: uint16(4141), + 3892: uint16(4150), + 3893: uint16(16659), + 3894: uint16(16661), + 3895: uint16(16660), + 3896: uint16(9295), + 3897: uint16(7960), + 3898: uint16(15384), + 3899: uint16(16662), + 3900: uint16(11040), + 3901: uint16(16663), + 3902: uint16(4901), + 3903: uint16(10038), + 3904: uint16(16664), + 3905: uint16(16665), + 3906: uint16(16666), + 3907: uint16(11067), + 3908: uint16(11060), + 3909: uint16(8989), + 3910: uint16(8265), + 3911: uint16(16668), + 3912: uint16(7233), + 3913: uint16(7465), + 3914: uint16(16671), + 3915: uint16(16670), + 3916: uint16(16669), + 3917: uint16(10076), + 3918: uint16(4902), + 3919: uint16(5896), + 3920: uint16(16677), + 3921: uint16(16674), + 3922: uint16(7710), + 3923: uint16(11025), + 3924: uint16(16673), + 3925: uint16(16675), + 3926: uint16(16676), + 3927: uint16(16672), + 3928: uint16(16678), + 3929: uint16(16679), + 3930: uint16(8974), + 3931: uint16(4930), + 3932: uint16(8772), + 3933: uint16(16680), + 3934: uint16(16681), + 3935: uint16(16684), + 3936: uint16(7750), + 3937: uint16(9507), + 3938: uint16(16685), + 3939: uint16(10802), + 3940: uint16(16682), + 3941: uint16(16683), + 3942: uint16(16688), + 3943: uint16(16687), + 3944: uint16(16686), + 3945: uint16(16690), + 3946: uint16(16689), + 3947: uint16(16691), + 3948: uint16(16693), + 3949: uint16(16692), + 3950: uint16(10540), + 3951: uint16(7221), + 3952: uint16(11557), + 3953: uint16(16694), + 3954: uint16(9494), + 3955: uint16(16695), + 3956: uint16(16696), + 3957: uint16(16700), + 3958: uint16(16698), + 3959: uint16(16699), + 3960: uint16(16697), + 3961: uint16(16701), + 3962: uint16(16702), + 3963: uint16(16703), + 3964: uint16(16704), + 3965: uint16(11030), + 3966: uint16(16705), + 3967: uint16(11087), + 3968: uint16(16706), + 3969: uint16(8749), + 3970: uint16(9801), + 3971: uint16(5450), + 3972: uint16(8730), + 3973: uint16(16707), + 3974: uint16(5401), + 3975: uint16(7983), + 3976: uint16(16708), + 3977: uint16(6428), + 3978: uint16(16709), + 3979: uint16(16710), + 3980: uint16(5893), + 3981: uint16(6452), + 3982: uint16(16712), + 3983: uint16(9269), + 3984: uint16(6453), + 3985: uint16(5165), + 3986: uint16(10755), + 3987: uint16(9770), + 3988: uint16(9270), + 3989: uint16(6203), + 3990: uint16(16714), + 3991: uint16(7466), + 3992: uint16(11537), + 3993: uint16(6180), + 3994: uint16(5894), + 3995: uint16(9986), + 3996: uint16(16716), + 3997: uint16(16718), + 3998: uint16(5962), + 3999: uint16(16717), + 4000: uint16(9045), + 4001: uint16(16720), + 4002: uint16(4630), + 4003: uint16(16715), + 4004: uint16(10057), + 4005: uint16(4111), + 4006: uint16(6475), + 4007: uint16(11825), + 4008: uint16(16719), + 4009: uint16(16721), + 4010: uint16(10538), + 4011: uint16(7992), + 4012: uint16(16723), + 4013: uint16(16724), + 4014: uint16(16722), + 4015: uint16(4653), + 4016: uint16(16730), + 4017: uint16(16729), + 4018: uint16(6918), + 4019: uint16(16731), + 4020: uint16(16726), + 4021: uint16(16732), + 4022: uint16(16727), + 4023: uint16(10039), + 4024: uint16(16725), + 4025: uint16(16728), + 4026: uint16(16897), + 4027: uint16(16896), + 4028: uint16(10816), + 4029: uint16(16733), + 4030: uint16(3914), + 4031: uint16(16899), + 4032: uint16(16898), + 4033: uint16(7467), + 4034: uint16(16900), + 4035: uint16(8226), + 4036: uint16(16902), + 4037: uint16(16901), + 4038: uint16(16903), + 4039: uint16(16711), + 4040: uint16(16713), + 4041: uint16(16905), + 4042: uint16(16904), + 4043: uint16(6919), + 4044: uint16(11592), + 4045: uint16(6961), + 4046: uint16(16906), + 4047: uint16(5654), + 4048: uint16(5151), + 4049: uint16(5126), + 4050: uint16(6722), + 4051: uint16(11283), + 4052: uint16(16912), + 4053: uint16(16911), + 4054: uint16(8227), + 4055: uint16(16908), + 4056: uint16(16910), + 4057: uint16(7210), + 4058: uint16(7711), + 4059: uint16(16909), + 4060: uint16(16907), + 4061: uint16(9737), + 4062: uint16(7468), + 4063: uint16(10267), + 4064: uint16(6454), + 4065: uint16(9303), + 4066: uint16(16913), + 4067: uint16(16914), + 4068: uint16(16936), + 4069: uint16(5431), + 4070: uint16(11804), + 4071: uint16(8212), + 4072: uint16(16915), + 4073: uint16(4401), + 4074: uint16(9046), + 4075: uint16(10496), + 4076: uint16(16916), + 4077: uint16(5209), + 4078: uint16(16917), + 4079: uint16(16919), + 4080: uint16(16920), + 4081: uint16(9736), + 4082: uint16(16921), + 4083: uint16(16922), + 4084: uint16(16923), + 4085: uint16(5432), + 4086: uint16(4402), + 4087: uint16(9508), + 4088: uint16(7175), + 4089: uint16(6723), + 4090: uint16(16924), + 4091: uint16(7176), + 4092: uint16(4393), + 4093: uint16(10274), + 4094: uint16(16925), + 4095: uint16(10058), + 4096: uint16(8228), + 4097: uint16(16928), + 4098: uint16(16929), + 4099: uint16(9800), + 4100: uint16(7712), + 4101: uint16(16926), + 4102: uint16(8768), + 4103: uint16(16927), + 4104: uint16(7469), + 4105: uint16(3899), + 4106: uint16(5128), + 4107: uint16(16930), + 4108: uint16(9047), + 4109: uint16(16931), + 4110: uint16(7974), + 4111: uint16(11020), + 4112: uint16(10242), + 4113: uint16(16932), + 4114: uint16(16933), + 4115: uint16(8756), + 4116: uint16(11558), + 4117: uint16(16935), + 4118: uint16(16934), + 4119: uint16(6990), + 4120: uint16(16937), + 4121: uint16(3919), + 4122: uint16(16940), + 4123: uint16(16938), + 4124: uint16(4403), + 4125: uint16(5677), + 4126: uint16(16939), + 4127: uint16(6181), + 4128: uint16(6225), + 4129: uint16(10565), + 4130: uint16(16941), + 4131: uint16(10803), + 4132: uint16(16943), + 4133: uint16(7984), + 4134: uint16(4142), + 4135: uint16(4377), + 4136: uint16(3851), + 4137: uint16(16942), + 4138: uint16(16944), + 4139: uint16(16945), + 4140: uint16(7510), + 4141: uint16(16946), + 4142: uint16(4654), + 4143: uint16(16948), + 4144: uint16(5705), + 4145: uint16(5189), + 4146: uint16(16949), + 4147: uint16(5460), + 4148: uint16(16950), + 4149: uint16(8027), + 4150: uint16(9516), + 4151: uint16(7999), + 4152: uint16(6484), + 4153: uint16(16951), + 4154: uint16(8769), + 4155: uint16(8266), + 4156: uint16(16953), + 4157: uint16(16955), + 4158: uint16(16952), + 4159: uint16(16954), + 4160: uint16(5633), + 4161: uint16(16956), + 4162: uint16(5637), + 4163: uint16(5190), + 4164: uint16(11313), + 4165: uint16(16958), + 4166: uint16(16959), + 4167: uint16(4109), + 4168: uint16(16962), + 4169: uint16(4693), + 4170: uint16(16961), + 4171: uint16(16960), + 4172: uint16(16964), + 4173: uint16(16957), + 4174: uint16(16965), + 4175: uint16(11528), + 4176: uint16(16966), + 4177: uint16(16967), + 4178: uint16(13139), + 4179: uint16(16969), + 4180: uint16(16968), + 4181: uint16(16970), + 4182: uint16(16971), + 4183: uint16(11540), + 4184: uint16(16972), + 4185: uint16(20302), + 4186: uint16(7470), + 4187: uint16(16973), + 4188: uint16(16974), + 4189: uint16(7222), + 4190: uint16(9495), + 4191: uint16(16975), + 4192: uint16(8711), + 4193: uint16(16976), + 4194: uint16(8731), + 4195: uint16(16977), + 4196: uint16(5380), + 4197: uint16(12318), + 4198: uint16(8764), + 4199: uint16(6930), + 4200: uint16(4903), + 4201: uint16(16978), + 4202: uint16(17153), + 4203: uint16(16981), + 4204: uint16(5191), + 4205: uint16(16980), + 4206: uint16(17155), + 4207: uint16(16979), + 4208: uint16(7471), + 4209: uint16(16983), + 4210: uint16(16984), + 4211: uint16(9226), + 4212: uint16(16985), + 4213: uint16(4669), + 4214: uint16(7737), + 4215: uint16(10307), + 4216: uint16(16987), + 4217: uint16(8519), + 4218: uint16(16982), + 4219: uint16(16986), + 4220: uint16(16988), + 4221: uint16(6490), + 4222: uint16(17157), + 4223: uint16(10253), + 4224: uint16(9989), + 4225: uint16(9304), + 4226: uint16(5433), + 4227: uint16(17156), + 4228: uint16(17154), + 4229: uint16(10004), + 4230: uint16(16989), + 4231: uint16(8765), + 4232: uint16(9306), + 4233: uint16(9305), + 4234: uint16(6485), + 4235: uint16(17175), + 4236: uint16(17159), + 4237: uint16(17161), + 4238: uint16(17164), + 4239: uint16(17165), + 4240: uint16(17162), + 4241: uint16(17163), + 4242: uint16(17160), + 4243: uint16(17158), + 4244: uint16(17152), + 4245: uint16(10542), + 4246: uint16(4404), + 4247: uint16(17172), + 4248: uint16(17169), + 4249: uint16(17174), + 4250: uint16(17173), + 4251: uint16(9810), + 4252: uint16(11014), + 4253: uint16(6682), + 4254: uint16(17167), + 4255: uint16(17176), + 4256: uint16(17171), + 4257: uint16(17170), + 4258: uint16(17166), + 4259: uint16(17168), + 4260: uint16(4904), + 4261: uint16(8732), + 4262: uint16(8028), + 4263: uint16(9985), + 4264: uint16(17181), + 4265: uint16(9987), + 4266: uint16(8000), + 4267: uint16(17178), + 4268: uint16(10030), + 4269: uint16(17182), + 4270: uint16(10546), + 4271: uint16(8762), + 4272: uint16(17177), + 4273: uint16(17179), + 4274: uint16(17180), + 4275: uint16(17183), + 4276: uint16(6947), + 4277: uint16(9509), + 4278: uint16(17188), + 4279: uint16(17187), + 4280: uint16(17184), + 4281: uint16(11797), + 4282: uint16(17193), + 4283: uint16(17197), + 4284: uint16(17194), + 4285: uint16(17190), + 4286: uint16(17191), + 4287: uint16(17196), + 4288: uint16(17185), + 4289: uint16(12596), + 4290: uint16(17192), + 4291: uint16(17186), + 4292: uint16(17195), + 4293: uint16(17201), + 4294: uint16(4905), + 4295: uint16(17198), + 4296: uint16(17199), + 4297: uint16(17200), + 4298: uint16(17203), + 4299: uint16(17202), + 4300: uint16(10069), + 4301: uint16(17204), + 4302: uint16(11611), + 4303: uint16(10572), + 4304: uint16(17209), + 4305: uint16(17206), + 4306: uint16(17205), + 4307: uint16(7985), + 4308: uint16(17208), + 4309: uint16(17210), + 4310: uint16(17207), + 4311: uint16(17214), + 4312: uint16(17211), + 4313: uint16(17212), + 4314: uint16(17189), + 4315: uint16(17213), + 4316: uint16(17215), + 4317: uint16(17216), + 4318: uint16(10533), + 4319: uint16(17217), + 4320: uint16(11073), + 4321: uint16(5421), + 4322: uint16(5640), + 4323: uint16(17218), + 4324: uint16(10515), + 4325: uint16(7751), + 4326: uint16(11023), + 4327: uint16(17219), + 4328: uint16(11538), + 4329: uint16(9811), + 4330: uint16(8229), + 4331: uint16(9747), + 4332: uint16(7212), + 4333: uint16(3871), + 4334: uint16(17224), + 4335: uint16(17222), + 4336: uint16(17220), + 4337: uint16(4864), + 4338: uint16(7472), + 4339: uint16(17225), + 4340: uint16(17223), + 4341: uint16(17221), + 4342: uint16(17229), + 4343: uint16(17228), + 4344: uint16(17227), + 4345: uint16(17226), + 4346: uint16(17230), + 4347: uint16(17231), + 4348: uint16(7961), + 4349: uint16(17232), + 4350: uint16(17234), + 4351: uint16(17233), + 4352: uint16(5937), + 4353: uint16(8215), + 4354: uint16(17236), + 4355: uint16(9307), + 4356: uint16(17235), + 4357: uint16(17237), + 4358: uint16(10516), + 4359: uint16(8267), + 4360: uint16(6182), + 4361: uint16(17238), + 4362: uint16(11559), + 4363: uint16(17240), + 4364: uint16(17241), + 4365: uint16(17242), + 4366: uint16(17243), + 4367: uint16(6724), + 4368: uint16(17244), + 4369: uint16(5678), + 4370: uint16(5193), + 4371: uint16(5129), + 4372: uint16(17408), + 4373: uint16(11090), + 4374: uint16(6183), + 4375: uint16(17245), + 4376: uint16(17411), + 4377: uint16(11077), + 4378: uint16(9755), + 4379: uint16(10258), + 4380: uint16(7234), + 4381: uint16(17410), + 4382: uint16(6962), + 4383: uint16(6184), + 4384: uint16(6725), + 4385: uint16(5192), + 4386: uint16(10517), + 4387: uint16(17409), + 4388: uint16(8230), + 4389: uint16(10785), + 4390: uint16(6486), + 4391: uint16(6726), + 4392: uint16(9020), + 4393: uint16(17414), + 4394: uint16(11582), + 4395: uint16(6456), + 4396: uint16(17415), + 4397: uint16(7713), + 4398: uint16(17417), + 4399: uint16(7473), + 4400: uint16(6415), + 4401: uint16(17416), + 4402: uint16(7177), + 4403: uint16(5917), + 4404: uint16(8231), + 4405: uint16(17412), + 4406: uint16(17418), + 4407: uint16(17413), + 4408: uint16(5679), + 4409: uint16(17421), + 4410: uint16(17425), + 4411: uint16(5706), + 4412: uint16(17420), + 4413: uint16(17429), + 4414: uint16(6185), + 4415: uint16(11340), + 4416: uint16(3867), + 4417: uint16(17426), + 4418: uint16(5194), + 4419: uint16(17423), + 4420: uint16(17424), + 4421: uint16(9308), + 4422: uint16(17422), + 4423: uint16(17419), + 4424: uint16(4615), + 4425: uint16(8003), + 4426: uint16(5895), + 4427: uint16(17431), + 4428: uint16(17428), + 4429: uint16(17430), + 4430: uint16(17427), + 4431: uint16(5680), + 4432: uint16(8466), + 4433: uint16(17432), + 4434: uint16(8269), + 4435: uint16(17445), + 4436: uint16(17441), + 4437: uint16(17435), + 4438: uint16(17439), + 4439: uint16(7001), + 4440: uint16(3900), + 4441: uint16(17434), + 4442: uint16(17442), + 4443: uint16(17446), + 4444: uint16(6186), + 4445: uint16(11061), + 4446: uint16(9013), + 4447: uint16(17436), + 4448: uint16(17444), + 4449: uint16(17433), + 4450: uint16(8733), + 4451: uint16(17438), + 4452: uint16(3868), + 4453: uint16(11049), + 4454: uint16(17437), + 4455: uint16(5434), + 4456: uint16(10059), + 4457: uint16(8268), + 4458: uint16(11567), + 4459: uint16(7246), + 4460: uint16(17485), + 4461: uint16(17447), + 4462: uint16(8029), + 4463: uint16(17443), + 4464: uint16(17448), + 4465: uint16(17450), + 4466: uint16(9048), + 4467: uint16(17453), + 4468: uint16(17449), + 4469: uint16(10547), + 4470: uint16(4906), + 4471: uint16(11050), + 4472: uint16(3901), + 4473: uint16(17452), + 4474: uint16(11612), + 4475: uint16(17451), + 4476: uint16(4174), + 4477: uint16(9547), + 4478: uint16(17454), + 4479: uint16(17461), + 4480: uint16(17455), + 4481: uint16(17462), + 4482: uint16(17458), + 4483: uint16(9818), + 4484: uint16(6953), + 4485: uint16(17460), + 4486: uint16(17457), + 4487: uint16(17463), + 4488: uint16(17456), + 4489: uint16(7203), + 4490: uint16(10756), + 4491: uint16(7211), + 4492: uint16(17459), + 4493: uint16(17471), + 4494: uint16(17467), + 4495: uint16(17470), + 4496: uint16(17468), + 4497: uint16(17472), + 4498: uint16(17466), + 4499: uint16(17440), + 4500: uint16(7986), + 4501: uint16(10026), + 4502: uint16(17469), + 4503: uint16(17464), + 4504: uint16(8192), + 4505: uint16(5681), + 4506: uint16(7178), + 4507: uint16(7684), + 4508: uint16(8213), + 4509: uint16(17475), + 4510: uint16(17477), + 4511: uint16(17478), + 4512: uint16(17474), + 4513: uint16(17476), + 4514: uint16(17465), + 4515: uint16(17473), + 4516: uint16(17481), + 4517: uint16(17480), + 4518: uint16(10841), + 4519: uint16(5642), + 4520: uint16(17479), + 4521: uint16(17483), + 4522: uint16(17482), + 4523: uint16(17486), + 4524: uint16(17488), + 4525: uint16(6683), + 4526: uint16(17484), + 4527: uint16(17489), + 4528: uint16(17490), + 4529: uint16(17491), + 4530: uint16(17497), + 4531: uint16(9242), + 4532: uint16(17493), + 4533: uint16(17492), + 4534: uint16(17494), + 4535: uint16(17495), + 4536: uint16(17496), + 4537: uint16(17498), + 4538: uint16(17499), + 4539: uint16(4907), + 4540: uint16(17500), + 4541: uint16(17501), + 4542: uint16(17664), + 4543: uint16(17665), + 4544: uint16(17666), + 4545: uint16(17667), + 4546: uint16(17668), + 4547: uint16(17669), + 4548: uint16(17671), + 4549: uint16(17670), + 4550: uint16(17672), + 4551: uint16(17673), + 4552: uint16(17674), + 4553: uint16(17677), + 4554: uint16(17675), + 4555: uint16(17676), + 4556: uint16(6464), + 4557: uint16(5682), + 4558: uint16(8757), + 4559: uint16(10002), + 4560: uint16(7247), + 4561: uint16(9772), + 4562: uint16(10060), + 4563: uint16(17678), + 4564: uint16(14156), + 4565: uint16(17679), + 4566: uint16(17681), + 4567: uint16(11332), + 4568: uint16(17680), + 4569: uint16(17683), + 4570: uint16(17682), + 4571: uint16(11314), + 4572: uint16(17684), + 4573: uint16(10077), + 4574: uint16(17685), + 4575: uint16(17688), + 4576: uint16(17687), + 4577: uint16(17686), + 4578: uint16(17689), + 4579: uint16(5649), + 4580: uint16(8193), + 4581: uint16(5152), + 4582: uint16(17693), + 4583: uint16(17690), + 4584: uint16(17691), + 4585: uint16(17694), + 4586: uint16(17695), + 4587: uint16(17692), + 4588: uint16(4104), + 4589: uint16(4358), + 4590: uint16(17697), + 4591: uint16(17698), + 4592: uint16(17699), + 4593: uint16(11329), + 4594: uint16(7179), + 4595: uint16(17701), + 4596: uint16(17700), + 4597: uint16(7752), + 4598: uint16(17702), + 4599: uint16(17703), + 4600: uint16(17704), + 4601: uint16(4932), + 4602: uint16(4908), + 4603: uint16(17705), + 4604: uint16(17706), + 4605: uint16(10812), + 4606: uint16(11330), + 4607: uint16(11315), + 4608: uint16(11798), + 4609: uint16(6188), + 4610: uint16(17709), + 4611: uint16(6963), + 4612: uint16(17708), + 4613: uint16(17710), + 4614: uint16(6920), + 4615: uint16(8496), + 4616: uint16(17711), + 4617: uint16(6187), + 4618: uint16(11062), + 4619: uint16(17712), + 4620: uint16(17713), + 4621: uint16(17714), + 4622: uint16(17715), + 4623: uint16(17716), + 4624: uint16(6921), + 4625: uint16(11084), + 4626: uint16(17718), + 4627: uint16(8734), + 4628: uint16(17717), + 4629: uint16(17720), + 4630: uint16(17719), + 4631: uint16(17721), + 4632: uint16(7962), + 4633: uint16(17722), + 4634: uint16(17723), + 4635: uint16(10520), + 4636: uint16(17724), + 4637: uint16(8270), + 4638: uint16(17725), + 4639: uint16(17726), + 4640: uint16(11613), + 4641: uint16(17729), + 4642: uint16(17728), + 4643: uint16(17727), + 4644: uint16(8975), + 4645: uint16(17730), + 4646: uint16(7685), + 4647: uint16(17731), + 4648: uint16(17732), + 4649: uint16(11799), + 4650: uint16(17733), + 4651: uint16(17734), + 4652: uint16(17736), + 4653: uint16(17735), + 4654: uint16(9988), + 4655: uint16(9560), + 4656: uint16(11805), + 4657: uint16(9992), + 4658: uint16(17738), + 4659: uint16(7474), + 4660: uint16(10249), + 4661: uint16(17739), + 4662: uint16(17737), + 4663: uint16(4909), + 4664: uint16(5939), + 4665: uint16(6727), + 4666: uint16(10061), + 4667: uint16(5897), + 4668: uint16(10786), + 4669: uint16(17742), + 4670: uint16(17740), + 4671: uint16(6189), + 4672: uint16(6190), + 4673: uint16(3912), + 4674: uint16(6471), + 4675: uint16(9784), + 4676: uint16(3902), + 4677: uint16(17747), + 4678: uint16(8735), + 4679: uint16(9783), + 4680: uint16(8506), + 4681: uint16(17749), + 4682: uint16(17745), + 4683: uint16(17748), + 4684: uint16(17743), + 4685: uint16(17746), + 4686: uint16(10757), + 4687: uint16(5940), + 4688: uint16(3932), + 4689: uint16(17744), + 4690: uint16(17751), + 4691: uint16(17752), + 4692: uint16(9496), + 4693: uint16(5402), + 4694: uint16(17925), + 4695: uint16(9756), + 4696: uint16(6728), + 4697: uint16(5403), + 4698: uint16(7975), + 4699: uint16(11813), + 4700: uint16(11021), + 4701: uint16(17750), + 4702: uint16(7987), + 4703: uint16(5170), + 4704: uint16(17753), + 4705: uint16(17755), + 4706: uint16(17754), + 4707: uint16(17756), + 4708: uint16(8709), + 4709: uint16(9757), + 4710: uint16(8976), + 4711: uint16(17922), + 4712: uint16(17921), + 4713: uint16(17757), + 4714: uint16(7732), + 4715: uint16(10308), + 4716: uint16(17924), + 4717: uint16(17923), + 4718: uint16(6191), + 4719: uint16(11826), + 4720: uint16(17940), + 4721: uint16(17928), + 4722: uint16(17929), + 4723: uint16(6991), + 4724: uint16(17927), + 4725: uint16(6231), + 4726: uint16(17926), + 4727: uint16(17930), + 4728: uint16(8977), + 4729: uint16(10497), + 4730: uint16(8194), + 4731: uint16(8507), + 4732: uint16(17934), + 4733: uint16(17935), + 4734: uint16(17931), + 4735: uint16(17932), + 4736: uint16(17933), + 4737: uint16(6192), + 4738: uint16(17941), + 4739: uint16(17937), + 4740: uint16(10309), + 4741: uint16(10827), + 4742: uint16(10247), + 4743: uint16(17936), + 4744: uint16(17939), + 4745: uint16(17938), + 4746: uint16(10787), + 4747: uint16(17942), + 4748: uint16(17943), + 4749: uint16(8214), + 4750: uint16(17944), + 4751: uint16(17946), + 4752: uint16(17950), + 4753: uint16(17947), + 4754: uint16(17945), + 4755: uint16(9758), + 4756: uint16(17948), + 4757: uint16(17949), + 4758: uint16(4369), + 4759: uint16(17956), + 4760: uint16(17951), + 4761: uint16(17952), + 4762: uint16(17953), + 4763: uint16(8448), + 4764: uint16(17955), + 4765: uint16(17954), + 4766: uint16(17957), + 4767: uint16(17958), + 4768: uint16(17959), + 4769: uint16(7714), + 4770: uint16(4424), + 4771: uint16(17960), + 4772: uint16(11574), + 4773: uint16(6922), + 4774: uint16(7180), + 4775: uint16(6729), + 4776: uint16(8758), + 4777: uint16(17961), + 4778: uint16(17962), + 4779: uint16(4112), + 4780: uint16(17963), + 4781: uint16(17964), + 4782: uint16(17965), + 4783: uint16(17966), + 4784: uint16(17967), + 4785: uint16(5404), + 4786: uint16(14601), + 4787: uint16(17968), + 4788: uint16(8004), + 4789: uint16(17969), + 4790: uint16(6954), + 4791: uint16(17970), + 4792: uint16(12047), + 4793: uint16(17971), + 4794: uint16(10557), + 4795: uint16(4923), + 4796: uint16(8195), + 4797: uint16(7223), + 4798: uint16(10320), + 4799: uint16(7181), + 4800: uint16(17972), + 4801: uint16(6193), + 4802: uint16(17973), + 4803: uint16(10027), + 4804: uint16(17987), + 4805: uint16(17975), + 4806: uint16(8488), + 4807: uint16(9812), + 4808: uint16(5918), + 4809: uint16(17974), + 4810: uint16(8196), + 4811: uint16(17976), + 4812: uint16(9049), + 4813: uint16(17978), + 4814: uint16(17977), + 4815: uint16(17980), + 4816: uint16(17979), + 4817: uint16(17981), + 4818: uint16(17983), + 4819: uint16(17982), + 4820: uint16(4910), + 4821: uint16(17984), + 4822: uint16(17985), + 4823: uint16(17986), + 4824: uint16(6416), + 4825: uint16(11560), + 4826: uint16(17988), + 4827: uint16(7686), + 4828: uint16(4175), + 4829: uint16(17989), + 4830: uint16(17990), + 4831: uint16(17991), + 4832: uint16(3921), + 4833: uint16(17992), + 4834: uint16(17993), + 4835: uint16(10310), + 4836: uint16(6950), + 4837: uint16(17995), + 4838: uint16(4616), + 4839: uint16(3857), + 4840: uint16(17994), + 4841: uint16(17997), + 4842: uint16(9773), + 4843: uint16(7715), + 4844: uint16(4405), + 4845: uint16(10758), + 4846: uint16(5692), + 4847: uint16(5435), + 4848: uint16(17996), + 4849: uint16(4425), + 4850: uint16(4866), + 4851: uint16(4176), + 4852: uint16(18001), + 4853: uint16(11593), + 4854: uint16(8508), + 4855: uint16(10275), + 4856: uint16(18013), + 4857: uint16(4406), + 4858: uint16(18011), + 4859: uint16(18009), + 4860: uint16(18000), + 4861: uint16(17998), + 4862: uint16(17999), + 4863: uint16(6978), + 4864: uint16(5451), + 4865: uint16(8790), + 4866: uint16(9520), + 4867: uint16(4144), + 4868: uint16(18003), + 4869: uint16(18002), + 4870: uint16(18008), + 4871: uint16(18004), + 4872: uint16(18007), + 4873: uint16(11055), + 4874: uint16(18006), + 4875: uint16(4407), + 4876: uint16(4700), + 4877: uint16(18010), + 4878: uint16(18012), + 4879: uint16(5683), + 4880: uint16(18178), + 4881: uint16(18187), + 4882: uint16(18188), + 4883: uint16(3850), + 4884: uint16(18195), + 4885: uint16(3920), + 4886: uint16(18186), + 4887: uint16(18185), + 4888: uint16(18180), + 4889: uint16(18179), + 4890: uint16(18177), + 4891: uint16(18176), + 4892: uint16(8770), + 4893: uint16(8538), + 4894: uint16(18182), + 4895: uint16(18181), + 4896: uint16(18184), + 4897: uint16(8271), + 4898: uint16(5684), + 4899: uint16(4128), + 4900: uint16(18183), + 4901: uint16(6194), + 4902: uint16(8272), + 4903: uint16(18201), + 4904: uint16(18202), + 4905: uint16(4408), + 4906: uint16(4365), + 4907: uint16(18199), + 4908: uint16(18189), + 4909: uint16(18197), + 4910: uint16(18204), + 4911: uint16(18198), + 4912: uint16(18196), + 4913: uint16(18005), + 4914: uint16(18194), + 4915: uint16(18190), + 4916: uint16(4911), + 4917: uint16(18192), + 4918: uint16(18203), + 4919: uint16(18193), + 4920: uint16(18205), + 4921: uint16(18191), + 4922: uint16(9819), + 4923: uint16(11336), + 4924: uint16(18200), + 4925: uint16(18222), + 4926: uint16(18214), + 4927: uint16(7770), + 4928: uint16(5157), + 4929: uint16(5436), + 4930: uint16(18209), + 4931: uint16(4410), + 4932: uint16(7475), + 4933: uint16(18212), + 4934: uint16(6457), + 4935: uint16(9264), + 4936: uint16(18217), + 4937: uint16(10573), + 4938: uint16(18208), + 4939: uint16(4409), + 4940: uint16(5941), + 4941: uint16(10248), + 4942: uint16(18218), + 4943: uint16(18206), + 4944: uint16(18215), + 4945: uint16(18225), + 4946: uint16(18210), + 4947: uint16(18211), + 4948: uint16(9497), + 4949: uint16(18216), + 4950: uint16(18213), + 4951: uint16(10759), + 4952: uint16(18219), + 4953: uint16(3903), + 4954: uint16(18207), + 4955: uint16(18221), + 4956: uint16(18220), + 4957: uint16(9802), + 4958: uint16(18227), + 4959: uint16(18238), + 4960: uint16(4701), + 4961: uint16(18241), + 4962: uint16(18223), + 4963: uint16(18228), + 4964: uint16(11341), + 4965: uint16(18237), + 4966: uint16(11316), + 4967: uint16(11529), + 4968: uint16(8791), + 4969: uint16(4682), + 4970: uint16(10321), + 4971: uint16(18243), + 4972: uint16(9472), + 4973: uint16(3856), + 4974: uint16(18236), + 4975: uint16(18232), + 4976: uint16(8273), + 4977: uint16(18226), + 4978: uint16(18234), + 4979: uint16(18239), + 4980: uint16(9739), + 4981: uint16(3849), + 4982: uint16(18231), + 4983: uint16(18240), + 4984: uint16(10327), + 4985: uint16(18235), + 4986: uint16(18230), + 4987: uint16(7476), + 4988: uint16(7182), + 4989: uint16(6923), + 4990: uint16(11063), + 4991: uint16(10278), + 4992: uint16(18246), + 4993: uint16(18255), + 4994: uint16(18233), + 4995: uint16(4694), + 4996: uint16(7511), + 4997: uint16(18244), + 4998: uint16(18249), + 4999: uint16(8274), + 5000: uint16(18245), + 5001: uint16(18252), + 5002: uint16(8766), + 5003: uint16(18253), + 5004: uint16(11317), + 5005: uint16(18242), + 5006: uint16(4631), + 5007: uint16(18248), + 5008: uint16(18251), + 5009: uint16(11019), + 5010: uint16(18254), + 5011: uint16(18247), + 5012: uint16(18250), + 5013: uint16(10760), + 5014: uint16(11776), + 5015: uint16(18258), + 5016: uint16(18265), + 5017: uint16(18257), + 5018: uint16(6946), + 5019: uint16(18224), + 5020: uint16(10541), + 5021: uint16(11009), + 5022: uint16(18264), + 5023: uint16(18263), + 5024: uint16(18259), + 5025: uint16(18260), + 5026: uint16(4117), + 5027: uint16(18262), + 5028: uint16(18256), + 5029: uint16(9012), + 5030: uint16(18261), + 5031: uint16(3933), + 5032: uint16(8449), + 5033: uint16(10530), + 5034: uint16(18266), + 5035: uint16(18432), + 5036: uint16(10040), + 5037: uint16(18269), + 5038: uint16(7477), + 5039: uint16(6952), + 5040: uint16(18434), + 5041: uint16(5405), + 5042: uint16(18435), + 5043: uint16(10328), + 5044: uint16(18268), + 5045: uint16(18229), + 5046: uint16(18267), + 5047: uint16(11822), + 5048: uint16(9473), + 5049: uint16(10322), + 5050: uint16(18442), + 5051: uint16(18448), + 5052: uint16(18449), + 5053: uint16(18436), + 5054: uint16(9813), + 5055: uint16(18446), + 5056: uint16(18438), + 5057: uint16(18440), + 5058: uint16(18450), + 5059: uint16(18439), + 5060: uint16(18443), + 5061: uint16(4177), + 5062: uint16(9540), + 5063: uint16(18444), + 5064: uint16(18447), + 5065: uint16(18437), + 5066: uint16(8197), + 5067: uint16(18441), + 5068: uint16(6662), + 5069: uint16(7716), + 5070: uint16(5647), + 5071: uint16(11091), + 5072: uint16(11096), + 5073: uint16(7249), + 5074: uint16(18454), + 5075: uint16(18452), + 5076: uint16(11821), + 5077: uint16(18451), + 5078: uint16(11348), + 5079: uint16(18453), + 5080: uint16(18455), + 5081: uint16(18456), + 5082: uint16(18459), + 5083: uint16(18457), + 5084: uint16(9474), + 5085: uint16(18458), + 5086: uint16(10028), + 5087: uint16(18445), + 5088: uint16(7250), + 5089: uint16(18460), + 5090: uint16(18465), + 5091: uint16(8275), + 5092: uint16(18464), + 5093: uint16(18433), + 5094: uint16(18466), + 5095: uint16(8232), + 5096: uint16(18461), + 5097: uint16(18463), + 5098: uint16(18462), + 5099: uint16(15376), + 5100: uint16(15361), + 5101: uint16(18468), + 5102: uint16(18467), + 5103: uint16(11349), + 5104: uint16(16667), + 5105: uint16(18469), + 5106: uint16(18470), + 5107: uint16(18471), + 5108: uint16(5942), + 5109: uint16(5171), + 5110: uint16(18473), + 5111: uint16(12348), + 5112: uint16(5204), + 5113: uint16(11545), + 5114: uint16(5458), + 5115: uint16(18474), + 5116: uint16(18475), + 5117: uint16(8781), + 5118: uint16(18476), + 5119: uint16(9561), + 5120: uint16(3865), + 5121: uint16(4418), + 5122: uint16(18481), + 5123: uint16(18482), + 5124: uint16(18477), + 5125: uint16(6684), + 5126: uint16(18478), + 5127: uint16(9761), + 5128: uint16(18479), + 5129: uint16(18480), + 5130: uint16(18490), + 5131: uint16(18484), + 5132: uint16(18487), + 5133: uint16(18483), + 5134: uint16(18485), + 5135: uint16(18486), + 5136: uint16(6967), + 5137: uint16(18488), + 5138: uint16(8736), + 5139: uint16(5685), + 5140: uint16(4641), + 5141: uint16(18491), + 5142: uint16(4638), + 5143: uint16(18496), + 5144: uint16(18492), + 5145: uint16(18495), + 5146: uint16(10009), + 5147: uint16(18493), + 5148: uint16(18494), + 5149: uint16(10279), + 5150: uint16(10041), + 5151: uint16(18497), + 5152: uint16(8540), + 5153: uint16(18507), + 5154: uint16(18503), + 5155: uint16(4426), + 5156: uint16(18501), + 5157: uint16(10761), + 5158: uint16(18502), + 5159: uint16(18499), + 5160: uint16(18500), + 5161: uint16(18505), + 5162: uint16(18508), + 5163: uint16(18506), + 5164: uint16(18504), + 5165: uint16(18498), + 5166: uint16(8759), + 5167: uint16(18515), + 5168: uint16(11017), + 5169: uint16(18513), + 5170: uint16(18514), + 5171: uint16(18509), + 5172: uint16(18511), + 5173: uint16(18512), + 5174: uint16(18510), + 5175: uint16(8005), + 5176: uint16(11800), + 5177: uint16(18519), + 5178: uint16(18520), + 5179: uint16(18688), + 5180: uint16(7689), + 5181: uint16(18522), + 5182: uint16(18525), + 5183: uint16(18517), + 5184: uint16(18516), + 5185: uint16(18689), + 5186: uint16(4411), + 5187: uint16(18523), + 5188: uint16(18690), + 5189: uint16(18524), + 5190: uint16(18521), + 5191: uint16(8978), + 5192: uint16(18518), + 5193: uint16(9799), + 5194: uint16(18694), + 5195: uint16(11290), + 5196: uint16(18693), + 5197: uint16(18692), + 5198: uint16(18701), + 5199: uint16(18695), + 5200: uint16(18703), + 5201: uint16(11333), + 5202: uint16(18706), + 5203: uint16(18697), + 5204: uint16(18698), + 5205: uint16(18702), + 5206: uint16(18705), + 5207: uint16(18704), + 5208: uint16(18696), + 5209: uint16(18699), + 5210: uint16(18716), + 5211: uint16(18709), + 5212: uint16(18707), + 5213: uint16(18708), + 5214: uint16(18713), + 5215: uint16(18714), + 5216: uint16(4617), + 5217: uint16(5153), + 5218: uint16(18712), + 5219: uint16(18691), + 5220: uint16(18711), + 5221: uint16(18715), + 5222: uint16(18710), + 5223: uint16(18717), + 5224: uint16(18719), + 5225: uint16(18718), + 5226: uint16(18721), + 5227: uint16(18720), + 5228: uint16(18489), + 5229: uint16(18725), + 5230: uint16(18722), + 5231: uint16(18723), + 5232: uint16(18724), + 5233: uint16(18726), + 5234: uint16(5707), + 5235: uint16(18728), + 5236: uint16(18727), + 5237: uint16(7183), + 5238: uint16(6195), + 5239: uint16(15622), + 5240: uint16(18729), + 5241: uint16(7216), + 5242: uint16(4632), + 5243: uint16(18730), + 5244: uint16(4145), + 5245: uint16(7478), + 5246: uint16(18731), + 5247: uint16(6196), + 5248: uint16(18732), + 5249: uint16(3904), + 5250: uint16(10268), + 5251: uint16(18733), + 5252: uint16(7753), + 5253: uint16(18740), + 5254: uint16(18737), + 5255: uint16(8782), + 5256: uint16(18738), + 5257: uint16(18735), + 5258: uint16(5437), + 5259: uint16(18734), + 5260: uint16(18741), + 5261: uint16(5653), + 5262: uint16(8509), + 5263: uint16(18747), + 5264: uint16(18743), + 5265: uint16(8468), + 5266: uint16(18742), + 5267: uint16(18745), + 5268: uint16(18736), + 5269: uint16(18746), + 5270: uint16(18748), + 5271: uint16(10062), + 5272: uint16(18744), + 5273: uint16(18749), + 5274: uint16(18751), + 5275: uint16(5938), + 5276: uint16(18739), + 5277: uint16(3872), + 5278: uint16(18750), + 5279: uint16(6458), + 5280: uint16(11605), + 5281: uint16(18752), + 5282: uint16(18753), + 5283: uint16(8276), + 5284: uint16(11521), + 5285: uint16(18754), + 5286: uint16(11284), + 5287: uint16(18755), + 5288: uint16(18756), + 5289: uint16(10563), + 5290: uint16(18757), + 5291: uint16(6431), + 5292: uint16(11522), + 5293: uint16(18762), + 5294: uint16(18763), + 5295: uint16(7479), + 5296: uint16(18761), + 5297: uint16(11334), + 5298: uint16(18758), + 5299: uint16(18760), + 5300: uint16(7964), + 5301: uint16(7773), + 5302: uint16(18759), + 5303: uint16(18764), + 5304: uint16(10498), + 5305: uint16(18766), + 5306: uint16(18765), + 5307: uint16(4683), + 5308: uint16(10762), + 5309: uint16(18767), + 5310: uint16(18779), + 5311: uint16(18769), + 5312: uint16(18770), + 5313: uint16(18771), + 5314: uint16(18772), + 5315: uint16(18776), + 5316: uint16(18777), + 5317: uint16(18775), + 5318: uint16(18773), + 5319: uint16(18768), + 5320: uint16(18774), + 5321: uint16(18778), + 5322: uint16(20246), + 5323: uint16(4359), + 5324: uint16(18781), + 5325: uint16(5438), + 5326: uint16(18780), + 5327: uint16(18945), + 5328: uint16(18944), + 5329: uint16(18947), + 5330: uint16(18946), + 5331: uint16(18948), + 5332: uint16(7184), + 5333: uint16(18949), + 5334: uint16(18950), + 5335: uint16(18951), + 5336: uint16(7965), + 5337: uint16(11318), + 5338: uint16(18952), + 5339: uint16(10499), + 5340: uint16(9765), + 5341: uint16(18953), + 5342: uint16(18954), + 5343: uint16(5898), + 5344: uint16(5131), + 5345: uint16(18955), + 5346: uint16(6730), + 5347: uint16(9760), + 5348: uint16(18956), + 5349: uint16(4655), + 5350: uint16(18957), + 5351: uint16(18959), + 5352: uint16(11350), + 5353: uint16(18958), + 5354: uint16(7717), + 5355: uint16(18960), + 5356: uint16(18961), + 5357: uint16(18962), + 5358: uint16(4912), + 5359: uint16(18963), + 5360: uint16(18964), + 5361: uint16(18965), + 5362: uint16(18966), + 5363: uint16(4656), + 5364: uint16(18967), + 5365: uint16(18968), + 5366: uint16(18969), + 5367: uint16(4433), + 5368: uint16(7687), + 5369: uint16(18970), + 5370: uint16(18971), + 5371: uint16(18972), + 5372: uint16(5919), + 5373: uint16(9050), + 5374: uint16(18973), + 5375: uint16(5686), + 5376: uint16(7733), + 5377: uint16(18976), + 5378: uint16(9475), + 5379: uint16(18975), + 5380: uint16(5648), + 5381: uint16(18974), + 5382: uint16(8534), + 5383: uint16(5132), + 5384: uint16(18977), + 5385: uint16(18978), + 5386: uint16(7480), + 5387: uint16(5708), + 5388: uint16(18979), + 5389: uint16(10763), + 5390: uint16(7998), + 5391: uint16(5205), + 5392: uint16(11092), + 5393: uint16(8233), + 5394: uint16(18980), + 5395: uint16(7718), + 5396: uint16(8783), + 5397: uint16(7481), + 5398: uint16(18981), + 5399: uint16(18984), + 5400: uint16(18985), + 5401: uint16(6429), + 5402: uint16(8481), + 5403: uint16(18983), + 5404: uint16(7482), + 5405: uint16(10269), + 5406: uint16(18982), + 5407: uint16(6731), + 5408: uint16(4146), + 5409: uint16(18989), + 5410: uint16(5687), + 5411: uint16(6733), + 5412: uint16(6732), + 5413: uint16(11820), + 5414: uint16(18988), + 5415: uint16(18987), + 5416: uint16(8198), + 5417: uint16(5164), + 5418: uint16(11810), + 5419: uint16(4633), + 5420: uint16(7483), + 5421: uint16(18986), + 5422: uint16(18991), + 5423: uint16(18992), + 5424: uint16(18990), + 5425: uint16(5943), + 5426: uint16(11295), + 5427: uint16(6734), + 5428: uint16(9734), + 5429: uint16(18995), + 5430: uint16(7967), + 5431: uint16(8737), + 5432: uint16(11285), + 5433: uint16(18998), + 5434: uint16(5963), + 5435: uint16(7966), + 5436: uint16(18994), + 5437: uint16(18999), + 5438: uint16(5964), + 5439: uint16(18996), + 5440: uint16(18997), + 5441: uint16(18993), + 5442: uint16(8001), + 5443: uint16(9512), + 5444: uint16(8718), + 5445: uint16(4412), + 5446: uint16(10063), + 5447: uint16(5154), + 5448: uint16(8979), + 5449: uint16(19002), + 5450: uint16(19000), + 5451: uint16(8747), + 5452: uint16(7968), + 5453: uint16(4913), + 5454: uint16(19001), + 5455: uint16(7738), + 5456: uint16(11561), + 5457: uint16(11807), + 5458: uint16(19003), + 5459: uint16(19014), + 5460: uint16(8980), + 5461: uint16(19013), + 5462: uint16(19010), + 5463: uint16(19018), + 5464: uint16(19011), + 5465: uint16(19007), + 5466: uint16(9051), + 5467: uint16(19006), + 5468: uint16(19004), + 5469: uint16(11264), + 5470: uint16(6735), + 5471: uint16(19008), + 5472: uint16(19005), + 5473: uint16(19012), + 5474: uint16(7251), + 5475: uint16(5920), + 5476: uint16(8537), + 5477: uint16(10788), + 5478: uint16(4153), + 5479: uint16(3905), + 5480: uint16(9476), + 5481: uint16(19016), + 5482: uint16(19015), + 5483: uint16(9541), + 5484: uint16(19020), + 5485: uint16(19009), + 5486: uint16(19019), + 5487: uint16(19021), + 5488: uint16(5899), + 5489: uint16(19017), + 5490: uint16(6197), + 5491: uint16(6964), + 5492: uint16(19022), + 5493: uint16(11319), + 5494: uint16(19025), + 5495: uint16(19028), + 5496: uint16(19026), + 5497: uint16(10260), + 5498: uint16(19023), + 5499: uint16(5439), + 5500: uint16(19027), + 5501: uint16(19029), + 5502: uint16(19033), + 5503: uint16(19030), + 5504: uint16(19032), + 5505: uint16(19031), + 5506: uint16(19034), + 5507: uint16(6928), + 5508: uint16(19036), + 5509: uint16(19035), + 5510: uint16(10311), + 5511: uint16(19200), + 5512: uint16(5688), + 5513: uint16(19037), + 5514: uint16(19201), + 5515: uint16(19202), + 5516: uint16(5155), + 5517: uint16(17696), + 5518: uint16(7512), + 5519: uint16(19203), + 5520: uint16(5965), + 5521: uint16(19204), + 5522: uint16(19205), + 5523: uint16(6685), + 5524: uint16(14637), + 5525: uint16(19206), + 5526: uint16(19207), + 5527: uint16(7185), + 5528: uint16(19208), + 5529: uint16(19209), + 5530: uint16(19210), + 5531: uint16(19211), + 5532: uint16(19212), + 5533: uint16(8714), + 5534: uint16(19213), + 5535: uint16(19215), + 5536: uint16(19214), + 5537: uint16(9477), + 5538: uint16(19216), + 5539: uint16(10764), + 5540: uint16(19217), + 5541: uint16(19218), + 5542: uint16(19219), + 5543: uint16(19220), + 5544: uint16(9529), + 5545: uint16(7484), + 5546: uint16(19221), + 5547: uint16(6218), + 5548: uint16(12045), + 5549: uint16(19222), + 5550: uint16(19223), + 5551: uint16(10270), + 5552: uint16(19224), + 5553: uint16(19232), + 5554: uint16(19225), + 5555: uint16(19227), + 5556: uint16(19226), + 5557: uint16(19228), + 5558: uint16(10789), + 5559: uint16(19229), + 5560: uint16(19230), + 5561: uint16(19231), + 5562: uint16(19233), + 5563: uint16(4620), + 5564: uint16(9030), + 5565: uint16(10312), + 5566: uint16(6465), + 5567: uint16(6198), + 5568: uint16(10286), + 5569: uint16(4414), + 5570: uint16(10029), + 5571: uint16(19236), + 5572: uint16(4914), + 5573: uint16(7988), + 5574: uint16(19235), + 5575: uint16(19240), + 5576: uint16(8792), + 5577: uint16(11074), + 5578: uint16(19238), + 5579: uint16(19239), + 5580: uint16(5133), + 5581: uint16(19241), + 5582: uint16(9794), + 5583: uint16(8510), + 5584: uint16(10064), + 5585: uint16(9244), + 5586: uint16(19237), + 5587: uint16(10790), + 5588: uint16(4427), + 5589: uint16(19243), + 5590: uint16(11783), + 5591: uint16(8993), + 5592: uint16(11812), + 5593: uint16(6736), + 5594: uint16(19242), + 5595: uint16(8464), + 5596: uint16(19259), + 5597: uint16(8199), + 5598: uint16(9559), + 5599: uint16(10287), + 5600: uint16(19246), + 5601: uint16(6686), + 5602: uint16(6737), + 5603: uint16(7485), + 5604: uint16(9796), + 5605: uint16(5900), + 5606: uint16(19245), + 5607: uint16(19244), + 5608: uint16(10313), + 5609: uint16(6944), + 5610: uint16(9265), + 5611: uint16(19248), + 5612: uint16(19249), + 5613: uint16(6199), + 5614: uint16(19247), + 5615: uint16(19250), + 5616: uint16(19251), + 5617: uint16(19253), + 5618: uint16(8450), + 5619: uint16(19252), + 5620: uint16(4933), + 5621: uint16(19255), + 5622: uint16(19254), + 5623: uint16(19256), + 5624: uint16(19258), + 5625: uint16(19260), + 5626: uint16(19261), + 5627: uint16(7989), + 5628: uint16(6958), + 5629: uint16(19262), + 5630: uint16(4657), + 5631: uint16(19263), + 5632: uint16(8277), + 5633: uint16(19264), + 5634: uint16(19265), + 5635: uint16(10314), + 5636: uint16(5134), + 5637: uint16(19266), + 5638: uint16(8981), + 5639: uint16(4154), + 5640: uint16(19267), + 5641: uint16(6992), + 5642: uint16(7765), + 5643: uint16(8460), + 5644: uint16(19270), + 5645: uint16(19269), + 5646: uint16(19268), + 5647: uint16(19276), + 5648: uint16(19274), + 5649: uint16(19271), + 5650: uint16(19273), + 5651: uint16(19272), + 5652: uint16(19275), + 5653: uint16(5206), + 5654: uint16(19279), + 5655: uint16(7990), + 5656: uint16(19280), + 5657: uint16(5944), + 5658: uint16(19277), + 5659: uint16(19278), + 5660: uint16(11784), + 5661: uint16(8982), + 5662: uint16(8200), + 5663: uint16(19281), + 5664: uint16(19284), + 5665: uint16(19282), + 5666: uint16(19283), + 5667: uint16(11320), + 5668: uint16(9478), + 5669: uint16(19287), + 5670: uint16(19285), + 5671: uint16(19286), + 5672: uint16(19288), + 5673: uint16(19464), + 5674: uint16(19291), + 5675: uint16(19292), + 5676: uint16(19290), + 5677: uint16(19289), + 5678: uint16(9052), + 5679: uint16(19456), + 5680: uint16(19460), + 5681: uint16(19457), + 5682: uint16(19293), + 5683: uint16(19458), + 5684: uint16(19459), + 5685: uint16(19466), + 5686: uint16(19461), + 5687: uint16(7991), + 5688: uint16(19463), + 5689: uint16(19465), + 5690: uint16(19462), + 5691: uint16(19468), + 5692: uint16(7186), + 5693: uint16(19467), + 5694: uint16(19469), + 5695: uint16(19470), + 5696: uint16(19473), + 5697: uint16(19472), + 5698: uint16(19471), + 5699: uint16(19475), + 5700: uint16(19474), + 5701: uint16(11093), + 5702: uint16(19477), + 5703: uint16(19476), + 5704: uint16(19478), + 5705: uint16(19479), + 5706: uint16(19481), + 5707: uint16(19480), + 5708: uint16(7719), + 5709: uint16(19482), + 5710: uint16(5452), + 5711: uint16(19483), + 5712: uint16(19485), + 5713: uint16(19486), + 5714: uint16(19487), + 5715: uint16(19484), + 5716: uint16(19488), + 5717: uint16(6965), + 5718: uint16(19489), + 5719: uint16(5135), + 5720: uint16(5650), + 5721: uint16(5901), + 5722: uint16(19490), + 5723: uint16(9551), + 5724: uint16(9245), + 5725: uint16(19491), + 5726: uint16(19494), + 5727: uint16(6931), + 5728: uint16(19493), + 5729: uint16(19492), + 5730: uint16(5689), + 5731: uint16(19495), + 5732: uint16(4658), + 5733: uint16(19497), + 5734: uint16(6459), + 5735: uint16(19496), + 5736: uint16(19505), + 5737: uint16(19499), + 5738: uint16(19501), + 5739: uint16(10564), + 5740: uint16(19498), + 5741: uint16(19500), + 5742: uint16(19504), + 5743: uint16(19502), + 5744: uint16(5136), + 5745: uint16(19503), + 5746: uint16(19506), + 5747: uint16(9785), + 5748: uint16(11575), + 5749: uint16(7187), + 5750: uint16(19507), + 5751: uint16(11265), + 5752: uint16(19509), + 5753: uint16(19508), + 5754: uint16(19512), + 5755: uint16(11296), + 5756: uint16(19511), + 5757: uint16(4684), + 5758: uint16(19510), + 5759: uint16(19515), + 5760: uint16(19514), + 5761: uint16(19513), + 5762: uint16(9233), + 5763: uint16(19516), + 5764: uint16(19517), + 5765: uint16(19518), + 5766: uint16(6219), + 5767: uint16(5636), + 5768: uint16(19519), + 5769: uint16(19520), + 5770: uint16(19521), + 5771: uint16(7720), + 5772: uint16(19522), + 5773: uint16(6924), + 5774: uint16(19523), + 5775: uint16(19524), + 5776: uint16(12544), + 5777: uint16(12381), + 5778: uint16(19525), + 5779: uint16(17487), + 5780: uint16(19526), + 5781: uint16(8707), + 5782: uint16(7690), + 5783: uint16(9759), + 5784: uint16(19527), + 5785: uint16(10548), + 5786: uint16(9011), + 5787: uint16(6237), + 5788: uint16(8712), + 5789: uint16(4105), + 5790: uint16(10839), + 5791: uint16(7734), + 5792: uint16(5693), + 5793: uint16(5440), + 5794: uint16(10549), + 5795: uint16(19528), + 5796: uint16(19530), + 5797: uint16(19529), + 5798: uint16(4415), + 5799: uint16(9557), + 5800: uint16(19531), + 5801: uint16(9814), + 5802: uint16(9234), + 5803: uint16(19532), + 5804: uint16(7217), + 5805: uint16(19534), + 5806: uint16(11041), + 5807: uint16(19549), + 5808: uint16(19536), + 5809: uint16(19537), + 5810: uint16(9000), + 5811: uint16(8511), + 5812: uint16(8278), + 5813: uint16(9479), + 5814: uint16(19535), + 5815: uint16(5172), + 5816: uint16(19544), + 5817: uint16(19541), + 5818: uint16(19716), + 5819: uint16(9480), + 5820: uint16(8767), + 5821: uint16(19538), + 5822: uint16(9053), + 5823: uint16(9266), + 5824: uint16(19539), + 5825: uint16(19543), + 5826: uint16(7743), + 5827: uint16(9798), + 5828: uint16(9003), + 5829: uint16(7969), + 5830: uint16(19542), + 5831: uint16(8461), + 5832: uint16(8451), + 5833: uint16(19540), + 5834: uint16(3848), + 5835: uint16(11777), + 5836: uint16(19545), + 5837: uint16(8512), + 5838: uint16(7188), + 5839: uint16(7721), + 5840: uint16(19547), + 5841: uint16(19546), + 5842: uint16(3918), + 5843: uint16(19548), + 5844: uint16(10254), + 5845: uint16(19718), + 5846: uint16(9530), + 5847: uint16(7754), + 5848: uint16(8760), + 5849: uint16(5463), + 5850: uint16(19717), + 5851: uint16(11286), + 5852: uint16(4126), + 5853: uint16(10550), + 5854: uint16(4416), + 5855: uint16(19712), + 5856: uint16(19713), + 5857: uint16(19714), + 5858: uint16(19715), + 5859: uint16(9498), + 5860: uint16(8706), + 5861: uint16(3906), + 5862: uint16(19719), + 5863: uint16(19720), + 5864: uint16(21250), + 5865: uint16(8476), + 5866: uint16(19721), + 5867: uint16(4178), + 5868: uint16(8235), + 5869: uint16(5902), + 5870: uint16(11321), + 5871: uint16(19722), + 5872: uint16(9227), + 5873: uint16(8279), + 5874: uint16(6966), + 5875: uint16(19723), + 5876: uint16(19726), + 5877: uint16(7236), + 5878: uint16(19724), + 5879: uint16(8202), + 5880: uint16(8201), + 5881: uint16(3907), + 5882: uint16(11562), + 5883: uint16(19728), + 5884: uint16(10065), + 5885: uint16(19730), + 5886: uint16(19729), + 5887: uint16(19727), + 5888: uint16(16963), + 5889: uint16(4915), + 5890: uint16(19533), + 5891: uint16(19732), + 5892: uint16(19731), + 5893: uint16(19733), + 5894: uint16(11287), + 5895: uint16(9536), + 5896: uint16(10765), + 5897: uint16(19734), + 5898: uint16(6968), + 5899: uint16(19735), + 5900: uint16(19736), + 5901: uint16(19737), + 5902: uint16(9216), + 5903: uint16(3913), + 5904: uint16(6200), + 5905: uint16(11801), + 5906: uint16(19741), + 5907: uint16(5651), + 5908: uint16(19738), + 5909: uint16(19739), + 5910: uint16(10323), + 5911: uint16(4659), + 5912: uint16(11288), + 5913: uint16(5406), + 5914: uint16(9267), + 5915: uint16(19742), + 5916: uint16(19743), + 5917: uint16(19744), + 5918: uint16(9217), + 5919: uint16(19746), + 5920: uint16(19745), + 5921: uint16(9522), + 5922: uint16(19747), + 5923: uint16(7189), + 5924: uint16(6975), + 5925: uint16(9786), + 5926: uint16(8784), + 5927: uint16(6993), + 5928: uint16(7755), + 5929: uint16(19748), + 5930: uint16(19749), + 5931: uint16(7740), + 5932: uint16(19750), + 5933: uint16(19751), + 5934: uint16(19752), + 5935: uint16(11342), + 5936: uint16(7190), + 5937: uint16(19754), + 5938: uint16(19753), + 5939: uint16(6201), + 5940: uint16(6226), + 5941: uint16(6687), + 5942: uint16(19757), + 5943: uint16(7237), + 5944: uint16(19756), + 5945: uint16(19755), + 5946: uint16(8520), + 5947: uint16(5966), + 5948: uint16(7970), + 5949: uint16(9999), + 5950: uint16(7192), + 5951: uint16(19758), + 5952: uint16(7486), + 5953: uint16(19761), + 5954: uint16(19759), + 5955: uint16(19760), + 5956: uint16(19763), + 5957: uint16(19762), + 5958: uint16(7513), + 5959: uint16(19764), + 5960: uint16(19765), + 5961: uint16(19766), + 5962: uint16(10031), + 5963: uint16(6450), + 5964: uint16(6976), + 5965: uint16(19767), + 5966: uint16(19768), + 5967: uint16(11523), + 5968: uint16(7204), + 5969: uint16(11085), + 5970: uint16(11563), + 5971: uint16(19769), + 5972: uint16(5441), + 5973: uint16(19770), + 5974: uint16(9218), + 5975: uint16(19773), + 5976: uint16(4695), + 5977: uint16(7722), + 5978: uint16(19771), + 5979: uint16(19772), + 5980: uint16(9023), + 5981: uint16(10804), + 5982: uint16(5467), + 5983: uint16(19775), + 5984: uint16(19776), + 5985: uint16(19774), + 5986: uint16(19778), + 5987: uint16(9534), + 5988: uint16(4642), + 5989: uint16(19782), + 5990: uint16(19779), + 5991: uint16(19781), + 5992: uint16(19777), + 5993: uint16(20014), + 5994: uint16(19780), + 5995: uint16(11594), + 5996: uint16(5945), + 5997: uint16(19790), + 5998: uint16(9235), + 5999: uint16(19785), + 6000: uint16(19788), + 6001: uint16(19786), + 6002: uint16(19791), + 6003: uint16(19792), + 6004: uint16(19784), + 6005: uint16(19797), + 6006: uint16(4179), + 6007: uint16(19783), + 6008: uint16(9996), + 6009: uint16(19787), + 6010: uint16(7487), + 6011: uint16(6202), + 6012: uint16(10791), + 6013: uint16(5443), + 6014: uint16(7205), + 6015: uint16(9499), + 6016: uint16(8204), + 6017: uint16(19795), + 6018: uint16(19789), + 6019: uint16(19794), + 6020: uint16(11042), + 6021: uint16(8983), + 6022: uint16(19796), + 6023: uint16(19793), + 6024: uint16(8203), + 6025: uint16(19800), + 6026: uint16(19799), + 6027: uint16(19798), + 6028: uint16(10766), + 6029: uint16(7258), + 6030: uint16(19801), + 6031: uint16(10558), + 6032: uint16(4147), + 6033: uint16(10277), + 6034: uint16(8785), + 6035: uint16(5207), + 6036: uint16(19803), + 6037: uint16(6204), + 6038: uint16(6667), + 6039: uint16(19802), + 6040: uint16(7756), + 6041: uint16(7757), + 6042: uint16(19968), + 6043: uint16(19970), + 6044: uint16(7514), + 6045: uint16(19969), + 6046: uint16(19971), + 6047: uint16(5426), + 6048: uint16(10276), + 6049: uint16(6977), + 6050: uint16(11778), + 6051: uint16(19805), + 6052: uint16(6487), + 6053: uint16(11806), + 6054: uint16(19973), + 6055: uint16(19972), + 6056: uint16(19974), + 6057: uint16(19804), + 6058: uint16(9544), + 6059: uint16(9268), + 6060: uint16(9014), + 6061: uint16(19979), + 6062: uint16(8738), + 6063: uint16(19975), + 6064: uint16(19976), + 6065: uint16(5644), + 6066: uint16(19978), + 6067: uint16(5903), + 6068: uint16(19977), + 6069: uint16(7488), + 6070: uint16(4696), + 6071: uint16(19983), + 6072: uint16(6430), + 6073: uint16(8280), + 6074: uint16(9001), + 6075: uint16(4634), + 6076: uint16(19981), + 6077: uint16(19982), + 6078: uint16(8994), + 6079: uint16(19980), + 6080: uint16(19984), + 6081: uint16(19990), + 6082: uint16(19993), + 6083: uint16(19992), + 6084: uint16(9228), + 6085: uint16(19985), + 6086: uint16(19986), + 6087: uint16(19989), + 6088: uint16(19991), + 6089: uint16(5407), + 6090: uint16(19994), + 6091: uint16(19988), + 6092: uint16(19987), + 6093: uint16(19998), + 6094: uint16(19999), + 6095: uint16(20000), + 6096: uint16(19997), + 6097: uint16(19996), + 6098: uint16(7489), + 6099: uint16(9481), + 6100: uint16(19995), + 6101: uint16(20004), + 6102: uint16(20002), + 6103: uint16(20003), + 6104: uint16(20001), + 6105: uint16(8535), + 6106: uint16(20005), + 6107: uint16(20006), + 6108: uint16(20008), + 6109: uint16(4916), + 6110: uint16(20007), + 6111: uint16(11097), + 6112: uint16(20019), + 6113: uint16(20009), + 6114: uint16(20012), + 6115: uint16(20010), + 6116: uint16(20011), + 6117: uint16(20013), + 6118: uint16(20015), + 6119: uint16(20016), + 6120: uint16(20017), + 6121: uint16(20020), + 6122: uint16(20018), + 6123: uint16(20021), + 6124: uint16(20023), + 6125: uint16(20022), + 6126: uint16(8984), + 6127: uint16(11078), + 6128: uint16(20024), + 6129: uint16(8205), + 6130: uint16(20025), + 6131: uint16(10531), + 6132: uint16(20026), + 6133: uint16(4618), + 6134: uint16(4123), + 6135: uint16(4918), + 6136: uint16(4917), + 6137: uint16(20027), + 6138: uint16(20028), + 6139: uint16(20029), + 6140: uint16(20030), + 6141: uint16(20031), + 6142: uint16(4919), + 6143: uint16(4660), + 6144: uint16(6205), + 6145: uint16(10005), + 6146: uint16(20033), + 6147: uint16(20032), + 6148: uint16(20034), + 6149: uint16(4155), + 6150: uint16(20037), + 6151: uint16(20036), + 6152: uint16(20035), + 6153: uint16(20038), + 6154: uint16(20041), + 6155: uint16(3878), + 6156: uint16(20039), + 6157: uint16(20043), + 6158: uint16(20042), + 6159: uint16(20045), + 6160: uint16(20044), + 6161: uint16(20046), + 6162: uint16(9485), + 6163: uint16(20047), + 6164: uint16(20048), + 6165: uint16(20050), + 6166: uint16(20049), + 6167: uint16(10315), + 6168: uint16(20051), + 6169: uint16(20052), + 6170: uint16(6468), + 6171: uint16(20053), + 6172: uint16(20054), + 6173: uint16(10792), + 6174: uint16(8234), + 6175: uint16(3843), + 6176: uint16(8490), + 6177: uint16(20055), + 6178: uint16(10316), + 6179: uint16(20058), + 6180: uint16(20056), + 6181: uint16(6206), + 6182: uint16(20057), + 6183: uint16(5921), + 6184: uint16(10532), + 6185: uint16(20060), + 6186: uint16(20224), + 6187: uint16(20061), + 6188: uint16(20225), + 6189: uint16(4096), + 6190: uint16(7735), + 6191: uint16(7259), + 6192: uint16(4920), + 6193: uint16(20226), + 6194: uint16(9797), + 6195: uint16(20228), + 6196: uint16(4097), + 6197: uint16(20227), + 6198: uint16(8995), + 6199: uint16(11564), + 6200: uint16(9482), + 6201: uint16(20059), + 6202: uint16(11525), + 6203: uint16(5904), + 6204: uint16(11322), + 6205: uint16(5464), + 6206: uint16(11539), + 6207: uint16(5639), + 6208: uint16(8513), + 6209: uint16(17920), + 6210: uint16(20229), + 6211: uint16(4619), + 6212: uint16(7758), + 6213: uint16(4661), + 6214: uint16(20231), + 6215: uint16(20232), + 6216: uint16(20230), + 6217: uint16(5699), + 6218: uint16(6460), + 6219: uint16(7490), + 6220: uint16(4098), + 6221: uint16(11576), + 6222: uint16(20234), + 6223: uint16(19725), + 6224: uint16(20233), + 6225: uint16(20237), + 6226: uint16(20235), + 6227: uint16(20236), + 6228: uint16(20238), + 6229: uint16(20239), + 6230: uint16(11595), + 6231: uint16(20240), + 6232: uint16(20241), + 6233: uint16(7976), + 6234: uint16(10010), + 6235: uint16(7772), + 6236: uint16(4934), + 6237: uint16(11289), + 6238: uint16(4428), + 6239: uint16(7191), + 6240: uint16(5946), + 6241: uint16(20244), + 6242: uint16(20243), + 6243: uint16(6738), + 6244: uint16(20245), + 6245: uint16(20242), + 6246: uint16(6663), + 6247: uint16(20249), + 6248: uint16(18700), + 6249: uint16(12597), + 6250: uint16(7766), + 6251: uint16(20247), + 6252: uint16(11524), + 6253: uint16(9552), + 6254: uint16(4106), + 6255: uint16(8002), + 6256: uint16(6933), + 6257: uint16(10518), + 6258: uint16(4127), + 6259: uint16(11596), + 6260: uint16(11338), + 6261: uint16(20250), + 6262: uint16(9252), + 6263: uint16(7002), + 6264: uint16(20251), + 6265: uint16(20252), + 6266: uint16(7723), + 6267: uint16(20253), + 6268: uint16(11597), + 6269: uint16(20248), + 6270: uint16(20255), + 6271: uint16(20257), + 6272: uint16(20256), + 6273: uint16(20254), + 6274: uint16(20258), + 6275: uint16(20259), + 6276: uint16(8281), + 6277: uint16(4417), + 6278: uint16(20260), + 6279: uint16(11031), + 6280: uint16(20261), + 6281: uint16(20262), + 6282: uint16(11785), + 6283: uint16(14864), + 6284: uint16(20263), + 6285: uint16(20264), + 6286: uint16(20265), + 6287: uint16(20269), + 6288: uint16(20266), + 6289: uint16(20267), + 6290: uint16(20268), + 6291: uint16(20270), + 6292: uint16(7971), + 6293: uint16(11094), + 6294: uint16(7972), + 6295: uint16(20271), + 6296: uint16(10066), + 6297: uint16(20272), + 6298: uint16(21042), + 6299: uint16(11051), + 6300: uint16(20273), + 6301: uint16(20274), + 6302: uint16(20275), + 6303: uint16(4662), + 6304: uint16(20277), + 6305: uint16(7736), + 6306: uint16(20278), + 6307: uint16(5635), + 6308: uint16(20279), + 6309: uint16(20283), + 6310: uint16(20281), + 6311: uint16(20282), + 6312: uint16(4690), + 6313: uint16(20280), + 6314: uint16(20284), + 6315: uint16(20285), + 6316: uint16(3879), + 6317: uint16(20286), + 6318: uint16(20287), + 6319: uint16(7491), + 6320: uint16(20288), + 6321: uint16(5158), + 6322: uint16(20291), + 6323: uint16(20290), + 6324: uint16(20289), + 6325: uint16(19024), + 6326: uint16(10555), + 6327: uint16(20292), + 6328: uint16(20293), + 6329: uint16(20294), + 6330: uint16(20295), + 6331: uint16(20296), + 6332: uint16(20297), + 6333: uint16(4921), + 6334: uint16(20298), + 6335: uint16(20299), + 6336: uint16(9730), + 6337: uint16(20301), + 6338: uint16(4378), + 6339: uint16(20304), + 6340: uint16(20303), + 6341: uint16(4099), + 6342: uint16(5408), + 6343: uint16(10534), + 6344: uint16(8985), + 6345: uint16(6401), + 6346: uint16(6207), + 6347: uint16(7238), + 6348: uint16(7739), + 6349: uint16(20306), + 6350: uint16(20305), + 6351: uint16(11297), + 6352: uint16(4935), + 6353: uint16(10033), + 6354: uint16(9531), + 6355: uint16(7771), + 6356: uint16(11565), + 6357: uint16(5690), + 6358: uint16(20309), + 6359: uint16(20308), + 6360: uint16(10794), + 6361: uint16(9483), + 6362: uint16(4143), + 6363: uint16(20310), + 6364: uint16(20307), + 6365: uint16(10288), + 6366: uint16(11337), + 6367: uint16(20311), + 6368: uint16(20312), + 6369: uint16(20314), + 6370: uint16(8521), + 6371: uint16(4666), + 6372: uint16(4667), + 6373: uint16(20313), + 6374: uint16(4936), + 6375: uint16(5905), + 6376: uint16(4937), + 6377: uint16(9246), + 6378: uint16(11583), + 6379: uint16(5947), + 6380: uint16(20315), + 6381: uint16(20316), + 6382: uint16(20317), + 6383: uint16(20480), + 6384: uint16(20482), + 6385: uint16(20481), + 6386: uint16(10326), + 6387: uint16(20483), + 6388: uint16(20484), + 6389: uint16(20485), + 6390: uint16(20486), + 6391: uint16(20488), + 6392: uint16(20487), + 6393: uint16(20489), + 6394: uint16(10067), + 6395: uint16(17707), + 6396: uint16(7688), + 6397: uint16(5137), + 6398: uint16(20490), + 6399: uint16(20491), + 6400: uint16(12555), + 6401: uint16(15386), + 6402: uint16(10034), + 6403: uint16(3930), + 6404: uint16(3866), + 6405: uint16(6739), + 6406: uint16(10767), + 6407: uint16(7517), + 6408: uint16(20492), + 6409: uint16(11070), + 6410: uint16(20493), + 6411: uint16(11323), + 6412: uint16(4129), + 6413: uint16(6688), + 6414: uint16(20494), + 6415: uint16(4429), + 6416: uint16(20495), + 6417: uint16(20496), + 6418: uint16(20498), + 6419: uint16(20499), + 6420: uint16(20501), + 6421: uint16(20497), + 6422: uint16(20500), + 6423: uint16(4922), + 6424: uint16(20502), + 6425: uint16(20503), + 6426: uint16(20504), + 6427: uint16(20505), + 6428: uint16(20506), + 6429: uint16(20508), + 6430: uint16(20507), + 6431: uint16(20510), + 6432: uint16(20513), + 6433: uint16(20509), + 6434: uint16(20511), + 6435: uint16(20512), + 6436: uint16(20514), + 6437: uint16(5409), + 6438: uint16(6994), + 6439: uint16(20515), + 6440: uint16(20516), + 6441: uint16(6208), + 6442: uint16(20517), + 6443: uint16(4637), + 6444: uint16(9774), + 6445: uint16(20518), + 6446: uint16(20519), + 6447: uint16(8761), + 6448: uint16(9546), + 6449: uint16(20520), + 6450: uint16(9820), + 6451: uint16(8491), + 6452: uint16(4151), + 6453: uint16(5453), + 6454: uint16(5454), + 6455: uint16(8786), + 6456: uint16(20525), + 6457: uint16(5455), + 6458: uint16(4430), + 6459: uint16(20524), + 6460: uint16(20522), + 6461: uint16(20523), + 6462: uint16(20521), + 6463: uint16(20535), + 6464: uint16(20526), + 6465: uint16(20527), + 6466: uint16(20528), + 6467: uint16(20529), + 6468: uint16(20531), + 6469: uint16(20530), + 6470: uint16(7224), + 6471: uint16(20532), + 6472: uint16(20534), + 6473: uint16(5138), + 6474: uint16(20533), + 6475: uint16(8282), + 6476: uint16(5906), + 6477: uint16(20536), + 6478: uint16(8492), + 6479: uint16(20537), + 6480: uint16(9484), + 6481: uint16(20538), + 6482: uint16(20543), + 6483: uint16(20541), + 6484: uint16(20540), + 6485: uint16(20542), + 6486: uint16(20539), + 6487: uint16(20545), + 6488: uint16(20544), + 6489: uint16(20547), + 6490: uint16(5410), + 6491: uint16(20546), + 6492: uint16(20548), + 6493: uint16(20549), + 6494: uint16(20551), + 6495: uint16(20550), + 6496: uint16(20552), + 6497: uint16(20554), + 6498: uint16(20553), + 6499: uint16(6235), + 6500: uint16(20555), + 6501: uint16(20556), + 6502: uint16(4635), + 6503: uint16(20557), + 6504: uint16(20558), + 6505: uint16(7760), + 6506: uint16(20559), + 6507: uint16(20560), + 6508: uint16(20561), + 6509: uint16(20562), + 6510: uint16(6209), + 6511: uint16(20563), + 6512: uint16(20564), + 6513: uint16(20565), + 6514: uint16(20566), + 6515: uint16(20567), + 6516: uint16(10000), + 6517: uint16(20569), + 6518: uint16(10245), + 6519: uint16(20570), + 6520: uint16(20568), + 6521: uint16(20572), + 6522: uint16(20571), + 6523: uint16(20573), + 6524: uint16(20736), + 6525: uint16(20737), + 6526: uint16(20738), + 6527: uint16(20739), + 6528: uint16(20740), + 6529: uint16(20741), + 6530: uint16(20742), + 6531: uint16(20743), + 6532: uint16(20744), + 6533: uint16(20745), + 6534: uint16(20746), + 6535: uint16(20747), + 6536: uint16(20748), + 6537: uint16(20749), + 6538: uint16(15380), + 6539: uint16(20750), + 6540: uint16(17239), + 6541: uint16(5139), + 6542: uint16(4608), + 6543: uint16(6417), + 6544: uint16(20752), + 6545: uint16(20751), + 6546: uint16(11012), + 6547: uint16(20754), + 6548: uint16(20755), + 6549: uint16(20753), + 6550: uint16(20756), + 6551: uint16(10817), + 6552: uint16(20757), + 6553: uint16(5210), + 6554: uint16(11780), + 6555: uint16(20758), + 6556: uint16(20760), + 6557: uint16(3869), + 6558: uint16(20761), + 6559: uint16(10506), + 6560: uint16(20759), + 6561: uint16(20762), + 6562: uint16(20763), + 6563: uint16(20764), + 6564: uint16(20765), + 6565: uint16(20766), + 6566: uint16(10829), + 6567: uint16(6668), + 6568: uint16(6489), + 6569: uint16(8206), + 6570: uint16(20767), + 6571: uint16(20770), + 6572: uint16(20768), + 6573: uint16(20771), + 6574: uint16(5968), + 6575: uint16(20769), + 6576: uint16(20772), + 6577: uint16(20773), + 6578: uint16(20774), + 6579: uint16(20778), + 6580: uint16(6665), + 6581: uint16(8515), + 6582: uint16(20779), + 6583: uint16(20776), + 6584: uint16(20775), + 6585: uint16(20777), + 6586: uint16(5694), + 6587: uint16(20783), + 6588: uint16(20782), + 6589: uint16(20781), + 6590: uint16(3858), + 6591: uint16(20793), + 6592: uint16(20789), + 6593: uint16(20790), + 6594: uint16(20786), + 6595: uint16(20792), + 6596: uint16(20788), + 6597: uint16(4673), + 6598: uint16(11819), + 6599: uint16(20791), + 6600: uint16(20787), + 6601: uint16(20785), + 6602: uint16(20784), + 6603: uint16(20795), + 6604: uint16(20798), + 6605: uint16(20797), + 6606: uint16(20796), + 6607: uint16(10280), + 6608: uint16(20794), + 6609: uint16(3922), + 6610: uint16(20799), + 6611: uint16(20801), + 6612: uint16(4686), + 6613: uint16(20780), + 6614: uint16(4118), + 6615: uint16(20803), + 6616: uint16(20802), + 6617: uint16(20800), + 6618: uint16(8716), + 6619: uint16(10831), + 6620: uint16(11577), + 6621: uint16(20804), + 6622: uint16(20805), + 6623: uint16(20806), + 6624: uint16(20807), + 6625: uint16(20808), + 6626: uint16(8986), + 6627: uint16(20809), + 6628: uint16(10006), + 6629: uint16(20814), + 6630: uint16(20810), + 6631: uint16(20811), + 6632: uint16(10768), + 6633: uint16(11043), + 6634: uint16(9519), + 6635: uint16(20815), + 6636: uint16(20816), + 6637: uint16(9501), + 6638: uint16(20813), + 6639: uint16(20812), + 6640: uint16(4361), + 6641: uint16(20824), + 6642: uint16(20823), + 6643: uint16(4180), + 6644: uint16(20821), + 6645: uint16(20820), + 6646: uint16(20818), + 6647: uint16(4698), + 6648: uint16(20817), + 6649: uint16(6929), + 6650: uint16(4360), + 6651: uint16(6210), + 6652: uint16(20827), + 6653: uint16(20826), + 6654: uint16(20825), + 6655: uint16(20822), + 6656: uint16(20828), + 6657: uint16(20829), + 6658: uint16(20996), + 6659: uint16(20995), + 6660: uint16(20997), + 6661: uint16(4108), + 6662: uint16(20992), + 6663: uint16(20993), + 6664: uint16(6227), + 6665: uint16(11032), + 6666: uint16(20994), + 6667: uint16(10769), + 6668: uint16(21002), + 6669: uint16(20998), + 6670: uint16(21003), + 6671: uint16(21000), + 6672: uint16(20999), + 6673: uint16(5691), + 6674: uint16(21004), + 6675: uint16(21005), + 6676: uint16(21006), + 6677: uint16(21001), + 6678: uint16(20819), + 6679: uint16(21007), + 6680: uint16(9024), + 6681: uint16(21011), + 6682: uint16(21012), + 6683: uint16(21010), + 6684: uint16(21009), + 6685: uint16(21015), + 6686: uint16(21008), + 6687: uint16(21013), + 6688: uint16(21014), + 6689: uint16(21017), + 6690: uint16(21016), + 6691: uint16(21019), + 6692: uint16(21020), + 6693: uint16(21021), + 6694: uint16(11816), + 6695: uint16(21018), + 6696: uint16(8522), + 6697: uint16(6476), + 6698: uint16(21022), + 6699: uint16(21023), + 6700: uint16(21024), + 6701: uint16(21025), + 6702: uint16(21026), + 6703: uint16(5907), + 6704: uint16(21027), + 6705: uint16(21028), + 6706: uint16(6926), + 6707: uint16(21029), + 6708: uint16(21030), + 6709: uint16(21031), + 6710: uint16(21032), + 6711: uint16(21035), + 6712: uint16(21033), + 6713: uint16(11803), + 6714: uint16(21034), + 6715: uint16(11598), + 6716: uint16(21036), + 6717: uint16(11578), + 6718: uint16(21037), + 6719: uint16(9821), + 6720: uint16(21038), + 6721: uint16(21040), + 6722: uint16(21041), + 6723: uint16(21039), + 6724: uint16(6220), + 6725: uint16(11052), + 6726: uint16(10818), + 6727: uint16(13654), + 6728: uint16(15423), + 6729: uint16(10842), + 6730: uint16(4362), + 6731: uint16(21043), + 6732: uint16(5167), + 6733: uint16(21044), + 6734: uint16(21045), + 6735: uint16(21046), + 6736: uint16(6228), + 6737: uint16(21047), + 6738: uint16(16179), + 6739: uint16(11066), + 6740: uint16(8514), + 6741: uint16(21048), + 6742: uint16(21050), + 6743: uint16(21049), + 6744: uint16(21051), + 6745: uint16(21052), + 6746: uint16(21053), + 6747: uint16(21054), + 6748: uint16(21055), + 6749: uint16(21056), + 6750: uint16(21057), + 6751: uint16(21058), + 6752: uint16(21059), + 6753: uint16(21060), + 6754: uint16(21061), + 6755: uint16(21062), + 6756: uint16(21063), + 6757: uint16(9219), + 6758: uint16(5948), + 6759: uint16(21065), + 6760: uint16(8236), + 6761: uint16(21066), + 6762: uint16(21067), + 6763: uint16(10240), + 6764: uint16(21068), + 6765: uint16(21069), + 6766: uint16(16918), + 6767: uint16(19257), + 6768: uint16(20300), + 6769: uint16(21070), + 6770: uint16(21071), + 6771: uint16(21073), + 6772: uint16(21074), + 6773: uint16(21075), + 6774: uint16(11599), + 6775: uint16(21072), + 6776: uint16(21076), + 6777: uint16(21077), + 6778: uint16(21079), + 6779: uint16(21078), + 6780: uint16(21081), + 6781: uint16(21082), + 6782: uint16(21080), + 6783: uint16(11541), + 6784: uint16(21083), + 6785: uint16(21084), + 6786: uint16(16947), + 6787: uint16(21085), + 6788: uint16(9), + 6789: uint16(83), + 6790: uint16(79), + 6791: uint16(82), + 6792: uint16(84), + 6793: uint16(41), + 6794: uint16(42), + 6795: uint16(85), + 6796: uint16(59), + 6797: uint16(3), + 6798: uint16(4), + 6799: uint16(30), + 6800: uint16(527), + 6801: uint16(528), + 6802: uint16(529), + 6803: uint16(530), + 6804: uint16(531), + 6805: uint16(532), + 6806: uint16(533), + 6807: uint16(534), + 6808: uint16(535), + 6809: uint16(536), + 6810: uint16(6), + 6811: uint16(7), + 6812: uint16(66), + 6813: uint16(64), + 6814: uint16(67), + 6815: uint16(8), + 6816: uint16(86), + 6817: uint16(544), + 6818: uint16(545), + 6819: uint16(546), + 6820: uint16(547), + 6821: uint16(548), + 6822: uint16(549), + 6823: uint16(550), + 6824: uint16(551), + 6825: uint16(552), + 6826: uint16(553), + 6827: uint16(554), + 6828: uint16(555), + 6829: uint16(556), + 6830: uint16(557), + 6831: uint16(558), + 6832: uint16(559), + 6833: uint16(560), + 6834: uint16(561), + 6835: uint16(562), + 6836: uint16(563), + 6837: uint16(564), + 6838: uint16(565), + 6839: uint16(566), + 6840: uint16(567), + 6841: uint16(568), + 6842: uint16(569), + 6843: uint16(45), + 6844: uint16(46), + 6845: uint16(15), + 6846: uint16(17), + 6847: uint16(13), + 6848: uint16(576), + 6849: uint16(577), + 6850: uint16(578), + 6851: uint16(579), + 6852: uint16(580), + 6853: uint16(581), + 6854: uint16(582), + 6855: uint16(583), + 6856: uint16(584), + 6857: uint16(585), + 6858: uint16(586), + 6859: uint16(587), + 6860: uint16(588), + 6861: uint16(589), + 6862: uint16(590), + 6863: uint16(591), + 6864: uint16(592), + 6865: uint16(593), + 6866: uint16(594), + 6867: uint16(595), + 6868: uint16(596), + 6869: uint16(597), + 6870: uint16(598), + 6871: uint16(599), + 6872: uint16(600), + 6873: uint16(601), + 6874: uint16(47), + 6875: uint16(34), + 6876: uint16(48), + 6877: uint16(16), + 6878: uint16(78), +} + +func _fuzzycmp(tls *TLS, a uintptr, b uintptr) (r int32) { + for { + if !(**(**uint8)(__ccgo_up(a)) != 0 && **(**uint8)(__ccgo_up(b)) != 0) { + break + } + for **(**uint8)(__ccgo_up(a)) != 0 && uint32(**(**uint8)(__ccgo_up(a)))|uint32(32)-uint32('a') > uint32(26) && Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(a)))-int32('0')) > uint32(10) { + a = a + 1 + } + if uint32(**(**uint8)(__ccgo_up(a)))|uint32(32) != uint32(**(**uint8)(__ccgo_up(b))) { + return int32(1) + } + goto _1 + _1: + ; + a = a + 1 + b = b + 1 + } + return BoolInt32(Int32FromUint8(**(**uint8)(__ccgo_up(a))) != Int32FromUint8(**(**uint8)(__ccgo_up(b)))) +} + +func _find_charmap(tls *TLS, name uintptr) (r Tsize_t) { + var s uintptr + _ = s + if !(**(**uint8)(__ccgo_up(name)) != 0) { + name = uintptr(unsafe.Pointer(&_charmaps)) + } /* "utf8" */ + s = uintptr(unsafe.Pointer(&_charmaps)) + for { + if !(**(**uint8)(__ccgo_up(s)) != 0) { + break + } + if !(_fuzzycmp(tls, name, s) != 0) { + for { + if !(**(**uint8)(__ccgo_up(s)) != 0) { + break + } + goto _2 + _2: + ; + s = s + uintptr(_strlen(tls, s)+uint64(1)) + } + return Uint64FromInt64(int64(s+uintptr(1)) - t__predefined_ptrdiff_t(uintptr(unsafe.Pointer(&_charmaps)))) + } + s = s + uintptr(_strlen(tls, s)+uint64(1)) + if !(**(**uint8)(__ccgo_up(s)) != 0) { + if Int32FromUint8(**(**uint8)(__ccgo_up(s + 1))) > int32(0200) { + s = s + uintptr(2) + } else { + s = s + uintptr(uint32(2)+(uint32(64)-uint32(**(**uint8)(__ccgo_up(s + 1))))*uint32(5)) + } + } + goto _1 + _1: + } + return Uint64FromInt32(-Int32FromInt32(1)) +} + +type Tstateful_cd = struct { + Fbase_cd Ticonv_t + Fstate uint32 +} + +func _combine_to_from(tls *TLS, t Tsize_t, f Tsize_t) (r Ticonv_t) { + return uintptr(f<> int32(16) +} + +func _extract_to(tls *TLS, cd Ticonv_t) (r Tsize_t) { + return uint64(cd) >> int32(1) & uint64(0x7fff) +} + +func Xiconv_open(tls *TLS, to uintptr, from uintptr) (r Ticonv_t) { + if __ccgo_strace { + trc("tls=%v to=%v from=%v, (%v:)", tls, to, from, origin(2)) + defer func() { trc("-> %v", r) }() + } + var cd Ticonv_t + var f, t, v1, v2 Tsize_t + var scd uintptr + var v3 bool + _, _, _, _, _, _, _ = cd, f, scd, t, v1, v2, v3 + v1 = _find_charmap(tls, to) + t = v1 + if v3 = v1 == Uint64FromInt32(-Int32FromInt32(1)); !v3 { + v2 = _find_charmap(tls, from) + f = v2 + } + if v3 || v2 == Uint64FromInt32(-Int32FromInt32(1)) || Int32FromUint8(_charmaps[t]) >= int32(0330) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(-Int32FromInt32(1)) + } + cd = _combine_to_from(tls, t, f) + switch Int32FromUint8(_charmaps[f]) { + case int32(UTF_16): + fallthrough + case int32(UTF_32): + fallthrough + case int32(UCS2): + fallthrough + case int32(ISO2022_JP): + scd = Xmalloc(tls, uint64(16)) + if !(scd != 0) { + return uintptr(-Int32FromInt32(1)) + } + (*Tstateful_cd)(unsafe.Pointer(scd)).Fbase_cd = cd + (*Tstateful_cd)(unsafe.Pointer(scd)).Fstate = uint32(0) + cd = scd + } + return cd +} + +func _get_16(tls *TLS, s uintptr, e int32) (r uint32) { + e = e & int32(1) + return Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(e))))<> int32(8)) + **(**uint8)(__ccgo_up(s + uintptr(int32(1)-e))) = uint8(c) +} + +func _get_32(tls *TLS, s uintptr, e int32) (r uint32) { + e = e & int32(3) + return (uint32(**(**uint8)(__ccgo_up(s + uintptr(e))))+0)<> int32(24)) + **(**uint8)(__ccgo_up(s + uintptr(e^int32(1)))) = uint8(c >> int32(16)) + **(**uint8)(__ccgo_up(s + uintptr(e^int32(2)))) = uint8(c >> int32(8)) + **(**uint8)(__ccgo_up(s + uintptr(e^int32(3)))) = uint8(c) +} + +/* Adapt as needed */ + +func _legacy_map(tls *TLS, map1 uintptr, c uint32) (r uint32) { + var x, v1 uint32 + _, _ = x, v1 + if c < Uint32FromInt32(int32(4)*Int32FromUint8(**(**uint8)(__ccgo_up(map1 + uintptr(-Int32FromInt32(1)))))) { + return c + } + x = c - Uint32FromInt32(int32(4)*Int32FromUint8(**(**uint8)(__ccgo_up(map1 + uintptr(-Int32FromInt32(1)))))) + x = Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(map1 + uintptr(x*uint32(5)/uint32(4)))))>>(uint32(2)*x%uint32(8)) | Int32FromUint8(**(**uint8)(__ccgo_up(map1 + uintptr(x*uint32(5)/uint32(4)+uint32(1)))))<<(uint32(8)-uint32(2)*x%uint32(8))&int32(1023)) + if x < uint32(256) { + v1 = x + } else { + v1 = uint32(_legacy_chars[x-uint32(256)]) + } + return v1 +} + +func _uni_to_jis(tls *TLS, c uint32) (r uint32) { + var b, d, i, j, nel uint32 + _, _, _, _, _ = b, d, i, j, nel + nel = uint32(Uint64FromInt64(13758) / Uint64FromInt64(2)) + b = uint32(0) + for { + i = nel / uint32(2) + j = uint32(_rev_jis[b+i]) + d = uint32(**(**uint16)(__ccgo_up(uintptr(unsafe.Pointer(&_jis0208)) + uintptr(j/uint32(256))*188 + uintptr(j%uint32(256))*2))) + if d == c { + return j + uint32(0x2121) + } else { + if nel == uint32(1) { + return uint32(0) + } else { + if c < d { + nel = nel / uint32(2) + } else { + b = b + i + nel = nel - nel/uint32(2) + } + } + } + goto _1 + _1: + } + return r +} + +func Xiconv(tls *TLS, cd Ticonv_t, in uintptr, inb uintptr, out uintptr, outb uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v cd=%v in=%v inb=%v out=%v outb=%v, (%v:)", tls, cd, in, inb, out, outb, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var c, d, from, to, v62 uint32 + var err, i, i1, j, j1, v25, v26, v27 int32 + var k, l, tmplen, tmpx, x Tsize_t + var loc Tlocale_t + var map1, ploc, scd, tomap, v54, v55 uintptr + var totype, type1 uint8 + var _ /* ptmp at bp+48 */ uintptr + var _ /* st at bp+24 */ Tmbstate_t + var _ /* tmp at bp+40 */ struct { + Fwc [0][2]Twchar_t + Fc [8]uint8 + } + var _ /* tmp at bp+56 */ [4]uint8 + var _ /* wc at bp+32 */ Twchar_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = c, d, err, from, i, i1, j, j1, k, l, loc, map1, ploc, scd, tmplen, tmpx, to, tomap, totype, type1, x, v25, v26, v27, v54, v55, v62 + x = uint64(0) + scd = uintptr(0) + if !(uint64(cd)&Uint64FromInt32(1) != 0) { + scd = cd + cd = (*Tstateful_cd)(unsafe.Pointer(scd)).Fbase_cd + } + to = uint32(_extract_to(tls, cd)) + from = uint32(_extract_from(tls, cd)) + map1 = uintptr(unsafe.Pointer(&_charmaps)) + uintptr(from) + uintptr(1) + tomap = uintptr(unsafe.Pointer(&_charmaps)) + uintptr(to) + uintptr(1) + **(**Tmbstate_t)(__ccgo_up(bp + 24)) = Tmbstate_t{} + type1 = **(**uint8)(__ccgo_up(map1 + uintptr(-Int32FromInt32(1)))) + totype = **(**uint8)(__ccgo_up(tomap + uintptr(-Int32FromInt32(1)))) + ploc = uintptr(___get_tp(tls)) + 152 + loc = **(**Tlocale_t)(__ccgo_up(ploc)) + if !(in != 0) || !(**(**uintptr)(__ccgo_up(in)) != 0) || !(**(**Tsize_t)(__ccgo_up(inb)) != 0) { + return uint64(0) + } + **(**Tlocale_t)(__ccgo_up(ploc)) = uintptr(unsafe.Pointer(&X__c_dot_utf8_locale)) + for { + if !(**(**Tsize_t)(__ccgo_up(inb)) != 0) { + break + } + c = uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(in))))) + l = uint64(1) + switch Int32FromUint8(type1) { + case int32(UTF_8): + goto _2 + case int32(US_ASCII): + goto _3 + case int32(WCHAR_T): + goto _4 + case int32(UTF_32LE): + goto _5 + case int32(UTF_32BE): + goto _6 + case int32(UTF_16LE): + goto _7 + case int32(UTF_16BE): + goto _8 + case int32(UCS2LE): + goto _9 + case int32(UCS2BE): + goto _10 + case int32(UTF_16): + goto _11 + case int32(UCS2): + goto _12 + case int32(UTF_32): + goto _13 + case int32(SHIFT_JIS): + goto _14 + case int32(EUC_JP): + goto _15 + case int32(ISO2022_JP): + goto _16 + case int32(GB2312): + goto _17 + case int32(GBK): + goto _18 + case int32(GB18030): + goto _19 + case int32(BIG5): + goto _20 + case int32(EUC_KR): + goto _21 + default: + goto _22 + } + goto _23 + _2: + ; + if c < uint32(128) { + goto _23 + } + l = Xmbrtowc(tls, bp+32, **(**uintptr)(__ccgo_up(in)), **(**Tsize_t)(__ccgo_up(inb)), bp+24) + if l == Uint64FromInt32(-Int32FromInt32(1)) { + goto ilseq + } + if l == Uint64FromInt32(-Int32FromInt32(2)) { + goto starved + } + c = **(**Twchar_t)(__ccgo_up(bp + 32)) + goto _23 + _3: + ; + if c >= uint32(128) { + goto ilseq + } + goto _23 + _4: + ; + l = uint64(4) + if **(**Tsize_t)(__ccgo_up(inb)) < l { + goto starved + } + c = **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(in)))) + if !(0 != 0) { + goto _24 + } + _6: + ; + _5: + ; + l = uint64(4) + if **(**Tsize_t)(__ccgo_up(inb)) < uint64(4) { + goto starved + } + c = _get_32(tls, **(**uintptr)(__ccgo_up(in)), Int32FromUint8(type1)) + _24: + ; + if c-uint32(0xd800) < uint32(0x800) || c >= uint32(0x110000) { + goto ilseq + } + goto _23 + _10: + ; + _9: + ; + _8: + ; + _7: + ; + l = uint64(2) + if **(**Tsize_t)(__ccgo_up(inb)) < uint64(2) { + goto starved + } + c = _get_16(tls, **(**uintptr)(__ccgo_up(in)), Int32FromUint8(type1)) + if c-Uint32FromInt32(0xdc00) < uint32(0x400) { + goto ilseq + } + if c-Uint32FromInt32(0xd800) < uint32(0x400) { + if Uint32FromInt32(Int32FromUint8(type1)-int32(UCS2BE)) < uint32(2) { + goto ilseq + } + l = uint64(4) + if **(**Tsize_t)(__ccgo_up(inb)) < uint64(4) { + goto starved + } + d = _get_16(tls, **(**uintptr)(__ccgo_up(in))+UintptrFromInt32(2), Int32FromUint8(type1)) + if d-Uint32FromInt32(0xdc00) >= uint32(0x400) { + goto ilseq + } + c = (c-uint32(0xd7c0))< uint32(127) { + d = d - 1 + } + d = d - uint32(64) + } else { + if d-uint32(159) <= Uint32FromInt32(Int32FromInt32(252)-Int32FromInt32(159)) { + c = c + 1 + d = d - uint32(159) + } + } + if c >= uint32(84) { + goto ilseq + } + c = uint32(**(**uint16)(__ccgo_up(uintptr(unsafe.Pointer(&_jis0208)) + uintptr(c)*188 + uintptr(d)*2))) + if !(c != 0) { + goto ilseq + } + goto _23 + _15: + ; + if c < uint32(128) { + goto _23 + } + l = uint64(2) + if **(**Tsize_t)(__ccgo_up(inb)) < uint64(2) { + goto starved + } + d = uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(in)) + UintptrFromInt32(1)))) + if c == uint32(0x8e) { + c = d + if c-uint32(0xa1) > Uint32FromInt32(Int32FromInt32(0xdf)-Int32FromInt32(0xa1)) { + goto ilseq + } + c = c + Uint32FromInt32(Int32FromInt32(0xff61)-Int32FromInt32(0xa1)) + goto _23 + } + c = c - uint32(0xa1) + d = d - uint32(0xa1) + if c >= uint32(84) || d >= uint32(94) { + goto ilseq + } + c = uint32(**(**uint16)(__ccgo_up(uintptr(unsafe.Pointer(&_jis0208)) + uintptr(c)*188 + uintptr(d)*2))) + if !(c != 0) { + goto ilseq + } + goto _23 + _16: + ; + if c >= uint32(128) { + goto ilseq + } + if c == uint32('\033') { + l = uint64(3) + if **(**Tsize_t)(__ccgo_up(inb)) < uint64(3) { + goto starved + } + c = uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(in)) + UintptrFromInt32(1)))) + d = uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(in)) + UintptrFromInt32(2)))) + if c != uint32('(') && c != uint32('$') { + goto ilseq + } + switch Uint32FromInt32(Int32FromInt32(128)*BoolInt32(c == Uint32FromUint8('$'))) + d { + case uint32('B'): + (*Tstateful_cd)(unsafe.Pointer(scd)).Fstate = uint32(0) + goto _1 + case uint32('J'): + (*Tstateful_cd)(unsafe.Pointer(scd)).Fstate = uint32(1) + goto _1 + case uint32('I'): + (*Tstateful_cd)(unsafe.Pointer(scd)).Fstate = uint32(4) + goto _1 + case Uint32FromInt32(Int32FromInt32(128) + Int32FromUint8('@')): + (*Tstateful_cd)(unsafe.Pointer(scd)).Fstate = uint32(2) + goto _1 + case Uint32FromInt32(Int32FromInt32(128) + Int32FromUint8('B')): + (*Tstateful_cd)(unsafe.Pointer(scd)).Fstate = uint32(3) + goto _1 + } + goto ilseq + } + switch (*Tstateful_cd)(unsafe.Pointer(scd)).Fstate { + case uint32(1): + if c == uint32('\\') { + c = uint32(0xa5) + } + if c == uint32('~') { + c = uint32(0x203e) + } + case uint32(2): + fallthrough + case uint32(3): + l = uint64(2) + if **(**Tsize_t)(__ccgo_up(inb)) < uint64(2) { + goto starved + } + d = uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(in)) + UintptrFromInt32(1)))) + c = c - uint32(0x21) + d = d - uint32(0x21) + if c >= uint32(84) || d >= uint32(94) { + goto ilseq + } + c = uint32(**(**uint16)(__ccgo_up(uintptr(unsafe.Pointer(&_jis0208)) + uintptr(c)*188 + uintptr(d)*2))) + if !(c != 0) { + goto ilseq + } + case uint32(4): + if c-uint32(0x60) < uint32(0x1f) { + goto ilseq + } + if c-uint32(0x21) < uint32(0x5e) { + c = c + Uint32FromInt32(Int32FromInt32(0xff61)-Int32FromInt32(0x21)) + } + break + } + goto _23 + _17: + ; + if c < uint32(128) { + goto _23 + } + if c < uint32(0xa1) { + goto ilseq + } + _18: + ; + if c == uint32(128) { + c = uint32(0x20ac) + goto _23 + } + _19: + ; + if c < uint32(128) { + goto _23 + } + c = c - uint32(0x81) + if c >= uint32(126) { + goto ilseq + } + l = uint64(2) + if **(**Tsize_t)(__ccgo_up(inb)) < uint64(2) { + goto starved + } + d = uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(in)) + UintptrFromInt32(1)))) + if d < uint32(0xa1) && Int32FromUint8(type1) == int32(GB2312) { + goto ilseq + } + if d-uint32(0x40) >= uint32(191) || d == uint32(127) { + if d-uint32('0') > uint32(9) || Int32FromUint8(type1) != int32(GB18030) { + goto ilseq + } + l = uint64(4) + if **(**Tsize_t)(__ccgo_up(inb)) < uint64(4) { + goto starved + } + c = (uint32(10)*c + d - uint32('0')) * uint32(1260) + d = uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(in)) + UintptrFromInt32(2)))) + if d-uint32(0x81) > uint32(126) { + goto ilseq + } + c = c + uint32(10)*(d-uint32(0x81)) + d = uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(in)) + UintptrFromInt32(3)))) + if d-uint32('0') > uint32(9) { + goto ilseq + } + c = c + (d - uint32('0')) + c = c + uint32(128) + d = uint32(0) + for { + if !(d <= c) { + break + } + k = uint64(0) + i = 0 + for { + if !(i < int32(126)) { + break + } + j = 0 + for { + if !(j < int32(190)) { + break + } + if uint32(**(**uint16)(__ccgo_up(uintptr(unsafe.Pointer(&_gb18030)) + uintptr(i)*380 + uintptr(j)*2)))-d <= c-d { + k = k + 1 + } + goto _31 + _31: + ; + j = j + 1 + } + goto _30 + _30: + ; + i = i + 1 + } + d = c + uint32(1) + c = uint32(uint64(c) + k) + goto _29 + _29: + } + goto _23 + } + d = d - uint32(0x40) + if d > uint32(63) { + d = d - 1 + } + c = uint32(**(**uint16)(__ccgo_up(uintptr(unsafe.Pointer(&_gb18030)) + uintptr(c)*380 + uintptr(d)*2))) + goto _23 + _20: + ; + if c < uint32(128) { + goto _23 + } + l = uint64(2) + if **(**Tsize_t)(__ccgo_up(inb)) < uint64(2) { + goto starved + } + d = uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(in)) + UintptrFromInt32(1)))) + if d-uint32(0x40) >= Uint32FromInt32(Int32FromInt32(0xff)-Int32FromInt32(0x40)) || d-uint32(0x7f) < Uint32FromInt32(Int32FromInt32(0xa1)-Int32FromInt32(0x7f)) { + goto ilseq + } + d = d - uint32(0x40) + if d > uint32(0x3e) { + d = d - uint32(0x22) + } + if c-uint32(0xa1) >= Uint32FromInt32(Int32FromInt32(0xfa)-Int32FromInt32(0xa1)) { + if c-uint32(0x87) >= Uint32FromInt32(Int32FromInt32(0xff)-Int32FromInt32(0x87)) { + goto ilseq + } + if c < uint32(0xa1) { + c = c - uint32(0x87) + } else { + c = c - Uint32FromInt32(Int32FromInt32(0x87)+(Int32FromInt32(0xfa)-Int32FromInt32(0xa1))) + } + c = Uint32FromInt32(Int32FromUint16(_hkscs[uint32(4867)+(c*uint32(157)+d)/uint32(16)])>>((c*uint32(157)+d)%uint32(16))%int32(2)< **(**Tsize_t)(__ccgo_up(outb)) { + goto toobig + } + if tmpx != 0 { + x = x + 1 + } + Xmemcpy(tls, **(**uintptr)(__ccgo_up(out)), bp+40, tmplen) + **(**uintptr)(__ccgo_up(out)) += uintptr(tmplen) + **(**Tsize_t)(__ccgo_up(outb)) -= tmplen + goto _1 + } + if !(c != 0) { + goto ilseq + } + goto _23 + } + c = c - uint32(0xa1) + c = Uint32FromInt32(Int32FromUint16(**(**uint16)(__ccgo_up(uintptr(unsafe.Pointer(&_big5)) + uintptr(c)*314 + uintptr(d)*2))) | BoolInt32(c == uint32(0x27) && (d == uint32(0x3a) || d == uint32(0x3c) || d == uint32(0x42)))<= uint32(93) || d >= uint32(94) { + c = c + Uint32FromInt32(Int32FromInt32(0xa1)-Int32FromInt32(0x81)) + d = d + uint32(0xa1) + if c >= uint32(93) || c >= Uint32FromInt32(Int32FromInt32(0xc6)-Int32FromInt32(0x81)) && d > uint32(0x52) { + goto ilseq + } + if d-uint32('A') < uint32(26) { + d = d - uint32('A') + } else { + if d-uint32('a') < uint32(26) { + d = d - uint32('a') + uint32(26) + } else { + if d-uint32(0x81) < Uint32FromInt32(Int32FromInt32(0xff)-Int32FromInt32(0x81)) { + d = d - uint32(0x81) + uint32(52) + } else { + goto ilseq + } + } + } + if c < uint32(0x20) { + c = uint32(178)*c + d + } else { + c = Uint32FromInt32(Int32FromInt32(178)*Int32FromInt32(0x20)) + uint32(84)*(c-uint32(0x20)) + d + } + c = c + uint32(0xac00) + d = uint32(0xac00) + for { + if !(d <= c) { + break + } + k = uint64(0) + i1 = 0 + for { + if !(i1 < int32(93)) { + break + } + j1 = 0 + for { + if !(j1 < int32(94)) { + break + } + if uint32(**(**uint16)(__ccgo_up(uintptr(unsafe.Pointer(&_ksc)) + uintptr(i1)*188 + uintptr(j1)*2)))-d <= c-d { + k = k + 1 + } + goto _34 + _34: + ; + j1 = j1 + 1 + } + goto _33 + _33: + ; + i1 = i1 + 1 + } + d = c + uint32(1) + c = uint32(uint64(c) + k) + goto _32 + _32: + } + goto _23 + } + c = uint32(**(**uint16)(__ccgo_up(uintptr(unsafe.Pointer(&_ksc)) + uintptr(c)*188 + uintptr(d)*2))) + if !(c != 0) { + goto ilseq + } + goto _23 + _22: + ; + if !(c != 0) { + goto _23 + } + c = _legacy_map(tls, map1, c) + if !(c != 0) { + goto ilseq + } + _23: + ; + switch Int32FromUint8(totype) { + case int32(WCHAR_T): + goto _35 + case int32(UTF_8): + goto _36 + case int32(US_ASCII): + goto _37 + default: + goto _38 + case int32(SHIFT_JIS): + goto _39 + case int32(EUC_JP): + goto _40 + case int32(ISO2022_JP): + goto _41 + case int32(UCS2): + goto _42 + case int32(UTF_16LE): + goto _43 + case int32(UTF_16BE): + goto _44 + case int32(UTF_16): + goto _45 + case int32(UCS2LE): + goto _46 + case int32(UCS2BE): + goto _47 + case int32(UTF_32): + goto _48 + case int32(UTF_32LE): + goto _49 + case int32(UTF_32BE): + goto _50 + } + goto _51 + _35: + ; + if **(**Tsize_t)(__ccgo_up(outb)) < uint64(4) { + goto toobig + } + **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(out)))) = c + **(**uintptr)(__ccgo_up(out)) += uintptr(4) + **(**Tsize_t)(__ccgo_up(outb)) -= uint64(4) + goto _51 + _36: + ; + if **(**Tsize_t)(__ccgo_up(outb)) < uint64(4) { + k = Uint64FromInt32(Xwctomb(tls, bp+56, c)) + if **(**Tsize_t)(__ccgo_up(outb)) < k { + goto toobig + } + Xmemcpy(tls, **(**uintptr)(__ccgo_up(out)), bp+56, k) + } else { + k = Uint64FromInt32(Xwctomb(tls, **(**uintptr)(__ccgo_up(out)), c)) + } + **(**uintptr)(__ccgo_up(out)) += uintptr(k) + **(**Tsize_t)(__ccgo_up(outb)) -= k + goto _51 + _37: + ; + if !(c > uint32(0x7f)) { + goto _52 + } + goto subst + subst: + ; + x = x + 1 + c = Uint32FromUint8('*') + _52: + ; + _38: + ; + if **(**Tsize_t)(__ccgo_up(outb)) < uint64(1) { + goto toobig + } + if !(c < uint32(256) && c == _legacy_map(tls, tomap, c)) { + goto _53 + } + goto revout + revout: + ; + if **(**Tsize_t)(__ccgo_up(outb)) < uint64(1) { + goto toobig + } + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8(c) + **(**Tsize_t)(__ccgo_up(outb)) -= uint64(1) + goto _51 + _53: + ; + d = c + c = Uint32FromInt32(int32(4) * Int32FromUint8(totype)) + for { + if !(c < uint32(256)) { + break + } + if d == _legacy_map(tls, tomap, c) { + goto revout + } + goto _56 + _56: + ; + c = c + 1 + } + goto subst + _39: + ; + if c < uint32(128) { + goto revout + } + if c == uint32(0xa5) { + x = x + 1 + c = uint32('\\') + goto revout + } + if c == uint32(0x203e) { + x = x + 1 + c = uint32('~') + goto revout + } + if c-uint32(0xff61) <= Uint32FromInt32(Int32FromInt32(0xdf)-Int32FromInt32(0xa1)) { + c = c + Uint32FromInt32(Int32FromInt32(0xa1)-Int32FromInt32(0xff61)) + goto revout + } + c = _uni_to_jis(tls, c) + if !(c != 0) { + goto subst + } + if **(**Tsize_t)(__ccgo_up(outb)) < uint64(2) { + goto toobig + } + d = c % uint32(256) + c = c / uint32(256) + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + if c < uint32(95) { + v25 = int32(112) + } else { + v25 = int32(176) + } + **(**uint8)(__ccgo_up(v54)) = uint8((c+uint32(1))/uint32(2) + Uint32FromInt32(v25)) + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + if c%uint32(2) != 0 { + v62 = d + uint32(31) + d/uint32(96) + } else { + v62 = d + uint32(126) + } + **(**uint8)(__ccgo_up(v54)) = uint8(v62) + **(**Tsize_t)(__ccgo_up(outb)) -= uint64(2) + goto _51 + _40: + ; + if c < uint32(128) { + goto revout + } + if c-uint32(0xff61) <= Uint32FromInt32(Int32FromInt32(0xdf)-Int32FromInt32(0xa1)) { + c = c + Uint32FromInt32(Int32FromInt32(0x0e00)+Int32FromInt32(0x21)-Int32FromInt32(0xff61)) + } else { + c = _uni_to_jis(tls, c) + } + if !(c != 0) { + goto subst + } + if **(**Tsize_t)(__ccgo_up(outb)) < uint64(2) { + goto toobig + } + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8(c/uint32(256) + uint32(0x80)) + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8(c%uint32(256) + uint32(0x80)) + **(**Tsize_t)(__ccgo_up(outb)) -= uint64(2) + goto _51 + _41: + ; + if c < uint32(128) { + goto revout + } + if c-uint32(0xff61) <= Uint32FromInt32(Int32FromInt32(0xdf)-Int32FromInt32(0xa1)) || c == uint32(0xa5) || c == uint32(0x203e) { + if **(**Tsize_t)(__ccgo_up(outb)) < uint64(7) { + goto toobig + } + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8('\033') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8('(') + if c == uint32(0xa5) { + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8('J') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8('\\') + } else { + if c == uint32(0x203e) { + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8('J') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8('~') + } else { + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8('I') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8(c - uint32(0xff61) + uint32(0x21)) + } + } + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8('\033') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8('(') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8('B') + **(**Tsize_t)(__ccgo_up(outb)) -= uint64(7) + goto _51 + } + c = _uni_to_jis(tls, c) + if !(c != 0) { + goto subst + } + if **(**Tsize_t)(__ccgo_up(outb)) < uint64(8) { + goto toobig + } + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8('\033') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8('$') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8('B') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8(c / uint32(256)) + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8(c % uint32(256)) + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8('\033') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8('(') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8('B') + **(**Tsize_t)(__ccgo_up(outb)) -= uint64(8) + goto _51 + _42: + ; + totype = uint8(UCS2BE) + _47: + ; + _46: + ; + _45: + ; + _44: + ; + _43: + ; + if c < uint32(0x10000) || Uint32FromInt32(Int32FromUint8(totype)-int32(UCS2BE)) < uint32(2) { + if c >= uint32(0x10000) { + c = uint32(0xFFFD) + } + if **(**Tsize_t)(__ccgo_up(outb)) < uint64(2) { + goto toobig + } + _put_16(tls, **(**uintptr)(__ccgo_up(out)), c, Int32FromUint8(totype)) + **(**uintptr)(__ccgo_up(out)) += uintptr(2) + **(**Tsize_t)(__ccgo_up(outb)) -= uint64(2) + goto _51 + } + if **(**Tsize_t)(__ccgo_up(outb)) < uint64(4) { + goto toobig + } + c = c - uint32(0x10000) + _put_16(tls, **(**uintptr)(__ccgo_up(out)), c>>int32(10)|uint32(0xd800), Int32FromUint8(totype)) + _put_16(tls, **(**uintptr)(__ccgo_up(out))+UintptrFromInt32(2), c&uint32(0x3ff)|uint32(0xdc00), Int32FromUint8(totype)) + **(**uintptr)(__ccgo_up(out)) += uintptr(4) + **(**Tsize_t)(__ccgo_up(outb)) -= uint64(4) + goto _51 + _48: + ; + totype = uint8(UTF_32BE) + _50: + ; + _49: + ; + if **(**Tsize_t)(__ccgo_up(outb)) < uint64(4) { + goto toobig + } + _put_32(tls, **(**uintptr)(__ccgo_up(out)), c, Int32FromUint8(totype)) + **(**uintptr)(__ccgo_up(out)) += uintptr(4) + **(**Tsize_t)(__ccgo_up(outb)) -= uint64(4) + goto _51 + _51: + ; + goto _1 + _1: + ; + **(**uintptr)(__ccgo_up(in)) += uintptr(l) + **(**Tsize_t)(__ccgo_up(inb)) -= l + } + **(**Tlocale_t)(__ccgo_up(ploc)) = loc + return x + goto ilseq +ilseq: + ; + err = int32(EILSEQ) + x = Uint64FromInt32(-Int32FromInt32(1)) + goto end + goto toobig +toobig: + ; + err = int32(E2BIG) + x = Uint64FromInt32(-Int32FromInt32(1)) + goto end + goto starved +starved: + ; + err = int32(EINVAL) + x = Uint64FromInt32(-Int32FromInt32(1)) + goto end +end: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = err + **(**Tlocale_t)(__ccgo_up(ploc)) = loc + return x +} + +func Xiconv_close(tls *TLS, cd Ticonv_t) (r int32) { + if __ccgo_strace { + trc("tls=%v cd=%v, (%v:)", tls, cd, origin(2)) + defer func() { trc("-> %v", r) }() + } + if !(uint64(cd)&Uint64FromInt32(1) != 0) { + Xfree(tls, cd) + } + return 0 +} + +var _c_time = [316]uint8{'S', 'u', 'n', 0, 'M', 'o', 'n', 0, 'T', 'u', 'e', 0, 'W', 'e', 'd', 0, 'T', 'h', 'u', 0, 'F', 'r', 'i', 0, 'S', 'a', 't', 0, 'S', 'u', 'n', 'd', 'a', 'y', 0, 'M', 'o', 'n', 'd', 'a', 'y', 0, 'T', 'u', 'e', 's', 'd', 'a', 'y', 0, 'W', 'e', 'd', 'n', 'e', 's', 'd', 'a', 'y', 0, 'T', 'h', 'u', 'r', 's', 'd', 'a', 'y', 0, 'F', 'r', 'i', 'd', 'a', 'y', 0, 'S', 'a', 't', 'u', 'r', 'd', 'a', 'y', 0, 'J', 'a', 'n', 0, 'F', 'e', 'b', 0, 'M', 'a', 'r', 0, 'A', 'p', 'r', 0, 'M', 'a', 'y', 0, 'J', 'u', 'n', 0, 'J', 'u', 'l', 0, 'A', 'u', 'g', 0, 'S', 'e', 'p', 0, 'O', 'c', 't', 0, 'N', 'o', 'v', 0, 'D', 'e', 'c', 0, 'J', 'a', 'n', 'u', 'a', 'r', 'y', 0, 'F', 'e', 'b', 'r', 'u', 'a', 'r', 'y', 0, 'M', 'a', 'r', 'c', 'h', 0, 'A', 'p', 'r', 'i', 'l', 0, 'M', 'a', 'y', 0, 'J', 'u', 'n', 'e', 0, 'J', 'u', 'l', 'y', 0, 'A', 'u', 'g', 'u', 's', 't', 0, 'S', 'e', 'p', 't', 'e', 'm', 'b', 'e', 'r', 0, 'O', 'c', 't', 'o', 'b', 'e', 'r', 0, 'N', 'o', 'v', 'e', 'm', 'b', 'e', 'r', 0, 'D', 'e', 'c', 'e', 'm', 'b', 'e', 'r', 0, 'A', 'M', 0, 'P', 'M', 0, '%', 'a', ' ', '%', 'b', ' ', '%', 'e', ' ', '%', 'T', ' ', '%', 'Y', 0, '%', 'm', '/', '%', 'd', '/', '%', 'y', 0, '%', 'H', ':', '%', 'M', ':', '%', 'S', 0, '%', 'I', ':', '%', 'M', ':', '%', 'S', ' ', '%', 'p', 0, 0, 0, '%', 'm', '/', '%', 'd', '/', '%', 'y', 0, '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 0, '%', 'a', ' ', '%', 'b', ' ', '%', 'e', ' ', '%', 'T', ' ', '%', 'Y', 0, '%', 'H', ':', '%', 'M', ':', '%', 'S'} + +var _c_messages = [19]uint8{'^', '[', 'y', 'Y', ']', 0, '^', '[', 'n', 'N', ']', 0, 'y', 'e', 's', 0, 'n', 'o'} +var _c_numeric = [3]uint8{'.'} + +func X__nl_langinfo_l(tls *TLS, item Tnl_item, loc Tlocale_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v item=%v loc=%v, (%v:)", tls, item, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + var cat, idx int32 + var str, v1 uintptr + _, _, _, _ = cat, idx, str, v1 + cat = item >> int32(16) + idx = item & int32(65535) + if item == int32(CODESET) { + if **(**uintptr)(__ccgo_up(loc)) != 0 { + v1 = __ccgo_ts + 322 + } else { + v1 = __ccgo_ts + 516 + } + return v1 + } + /* _NL_LOCALE_NAME extension */ + if idx == int32(65535) && cat < int32(LC_ALL) { + if **(**uintptr)(__ccgo_up(loc + uintptr(cat)*8)) != 0 { + v1 = **(**uintptr)(__ccgo_up(loc + uintptr(cat)*8)) + 16 + } else { + v1 = __ccgo_ts + 522 + } + return v1 + } + switch cat { + case int32(LC_NUMERIC): + if idx > int32(1) { + return __ccgo_ts + } + str = uintptr(unsafe.Pointer(&_c_numeric)) + case int32(LC_TIME): + if idx > int32(0x31) { + return __ccgo_ts + } + str = uintptr(unsafe.Pointer(&_c_time)) + case int32(LC_MONETARY): + if idx > 0 { + return __ccgo_ts + } + str = __ccgo_ts + case int32(LC_MESSAGES): + if idx > int32(3) { + return __ccgo_ts + } + str = uintptr(unsafe.Pointer(&_c_messages)) + default: + return __ccgo_ts + } + for { + if !(idx != 0) { + break + } + for { + if !(**(**uint8)(__ccgo_up(str)) != 0) { + break + } + goto _4 + _4: + ; + str = str + 1 + } + goto _3 + _3: + ; + idx = idx - 1 + str = str + 1 + } + if cat != int32(LC_NUMERIC) && **(**uint8)(__ccgo_up(str)) != 0 { + str = X__lctrans(tls, str, **(**uintptr)(__ccgo_up(loc + uintptr(cat)*8))) + } + return str +} + +func X__nl_langinfo(tls *TLS, item Tnl_item) (r uintptr) { + if __ccgo_strace { + trc("tls=%v item=%v, (%v:)", tls, item, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__nl_langinfo_l(tls, item, (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale) +} + +func Xnl_langinfo(tls *TLS, item Tnl_item) (r uintptr) { + if __ccgo_strace { + trc("tls=%v item=%v, (%v:)", tls, item, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__nl_langinfo(tls, item) +} + +func Xnl_langinfo_l(tls *TLS, item Tnl_item, loc Tlocale_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v item=%v loc=%v, (%v:)", tls, item, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__nl_langinfo_l(tls, item, loc) +} + +func X__lctrans_impl(tls *TLS, msg uintptr, lm uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v msg=%v lm=%v, (%v:)", tls, msg, lm, origin(2)) + defer func() { trc("-> %v", r) }() + } + var trans, v1 uintptr + _, _ = trans, v1 + trans = uintptr(0) + if lm != 0 { + trans = X__mo_lookup(tls, (*t__locale_map)(unsafe.Pointer(lm)).Fmap1, (*t__locale_map)(unsafe.Pointer(lm)).Fmap_size, msg) + } + if trans != 0 { + v1 = trans + } else { + v1 = msg + } + return v1 +} + +var _envvars = [6][12]uint8{ + 0: {'L', 'C', '_', 'C', 'T', 'Y', 'P', 'E'}, + 1: {'L', 'C', '_', 'N', 'U', 'M', 'E', 'R', 'I', 'C'}, + 2: {'L', 'C', '_', 'T', 'I', 'M', 'E'}, + 3: {'L', 'C', '_', 'C', 'O', 'L', 'L', 'A', 'T', 'E'}, + 4: {'L', 'C', '_', 'M', 'O', 'N', 'E', 'T', 'A', 'R', 'Y'}, + 5: {'L', 'C', '_', 'M', 'E', 'S', 'S', 'A', 'G', 'E', 'S'}, +} + +func X__get_locale(tls *TLS, cat int32, val uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v cat=%v val=%v, (%v:)", tls, cat, val, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(272) + defer tls.Free(272) + var builtin int32 + var l, n Tsize_t + var map1, new1, p, path, z, v1, v2, v4, v6 uintptr + var v3, v5, v7 bool + var _ /* buf at bp+0 */ [256]uint8 + var _ /* map_size at bp+256 */ Tsize_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = builtin, l, map1, n, new1, p, path, z, v1, v2, v3, v4, v5, v6, v7 + new1 = uintptr(0) + path = uintptr(0) + if !(**(**uint8)(__ccgo_up(val)) != 0) { + v1 = Xgetenv(tls, __ccgo_ts+524) + val = v1 + if v3 = v1 != 0 && **(**uint8)(__ccgo_up(val)) != 0; !v3 { + v2 = Xgetenv(tls, uintptr(unsafe.Pointer(&_envvars))+uintptr(cat)*12) + val = v2 + } + if v5 = v3 || v2 != 0 && **(**uint8)(__ccgo_up(val)) != 0; !v5 { + v4 = Xgetenv(tls, __ccgo_ts+336) + val = v4 + } + if v7 = v5 || v4 != 0 && **(**uint8)(__ccgo_up(val)) != 0; !v7 { + v6 = __ccgo_ts + 531 + val = v6 + } + _ = v7 || v6 != 0 + } + /* Limit name length and forbid leading dot or any slashes. */ + n = uint64(0) + for { + if !(n < uint64(LOCALE_NAME_MAX) && **(**uint8)(__ccgo_up(val + uintptr(n))) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(val + uintptr(n)))) != int32('/')) { + break + } + goto _8 + _8: + ; + n = n + 1 + } + if Int32FromUint8(**(**uint8)(__ccgo_up(val))) == int32('.') || **(**uint8)(__ccgo_up(val + uintptr(n))) != 0 { + val = __ccgo_ts + 531 + } + builtin = BoolInt32(Int32FromUint8(**(**uint8)(__ccgo_up(val))) == int32('C') && !(**(**uint8)(__ccgo_up(val + 1)) != 0) || !(Xstrcmp(tls, val, __ccgo_ts+531) != 0) || !(Xstrcmp(tls, val, __ccgo_ts+539) != 0)) + if builtin != 0 { + if cat == LC_CTYPE && Int32FromUint8(**(**uint8)(__ccgo_up(val + 1))) == int32('.') { + return uintptr(unsafe.Pointer(&X__c_dot_utf8)) + } + return uintptr(0) + } + p = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_loc_head))) + for { + if !(p != 0) { + break + } + if !(Xstrcmp(tls, val, p+16) != 0) { + return p + } + goto _9 + _9: + ; + p = (*t__locale_map)(unsafe.Pointer(p)).Fnext + } + if !(X__libc.Fsecure != 0) { + path = Xgetenv(tls, __ccgo_ts+545) + } + /* FIXME: add a default path? */ + if path != 0 { + for { + if !(**(**uint8)(__ccgo_up(path)) != 0) { + break + } + z = X__strchrnul(tls, path, int32(':')) + l = Uint64FromInt64(int64(z) - int64(path)) + if l >= uint64(256)-n-uint64(2) { + goto _10 + } + Xmemcpy(tls, bp, path, l) + (**(**[256]uint8)(__ccgo_up(bp)))[l] = uint8('/') + Xmemcpy(tls, bp+uintptr(l)+uintptr(1), val, n) + (**(**[256]uint8)(__ccgo_up(bp)))[l+uint64(1)+n] = uint8(0) + map1 = X__map_file(tls, bp, bp+256) + if map1 != 0 { + new1 = Xmalloc(tls, uint64(48)) + if !(new1 != 0) { + X__munmap(tls, map1, **(**Tsize_t)(__ccgo_up(bp + 256))) + break + } + (*t__locale_map)(unsafe.Pointer(new1)).Fmap1 = map1 + (*t__locale_map)(unsafe.Pointer(new1)).Fmap_size = **(**Tsize_t)(__ccgo_up(bp + 256)) + Xmemcpy(tls, new1+16, val, n) + **(**uint8)(__ccgo_up(new1 + 16 + uintptr(n))) = uint8(0) + (*t__locale_map)(unsafe.Pointer(new1)).Fnext = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_loc_head))) + AtomicStorePUintptr(uintptr(unsafe.Pointer(&_loc_head)), new1) + break + } + goto _10 + _10: + ; + path = z + BoolUintptr(!!(**(**uint8)(__ccgo_up(z)) != 0)) + } + } + /* If no locale definition was found, make a locale map + * object anyway to store the name, which is kept for the + * sake of being able to do message translations at the + * application level. */ + if v3 = !(new1 != 0); v3 { + v1 = Xmalloc(tls, uint64(48)) + new1 = v1 + } + if v3 && v1 != 0 { + (*t__locale_map)(unsafe.Pointer(new1)).Fmap1 = X__c_dot_utf8.Fmap1 + (*t__locale_map)(unsafe.Pointer(new1)).Fmap_size = X__c_dot_utf8.Fmap_size + Xmemcpy(tls, new1+16, val, n) + **(**uint8)(__ccgo_up(new1 + 16 + uintptr(n))) = uint8(0) + (*t__locale_map)(unsafe.Pointer(new1)).Fnext = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_loc_head))) + AtomicStorePUintptr(uintptr(unsafe.Pointer(&_loc_head)), new1) + } + /* For LC_CTYPE, never return a null pointer unless the + * requested name was "C" or "POSIX". */ + if !(new1 != 0) && cat == LC_CTYPE { + new1 = uintptr(unsafe.Pointer(&X__c_dot_utf8)) + } + return new1 +} + +var _loc_head uintptr + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +var _posix_lconv = Tlconv{ + Fdecimal_point: __ccgo_ts + 558, + Fthousands_sep: __ccgo_ts, + Fgrouping: __ccgo_ts, + Fint_curr_symbol: __ccgo_ts, + Fcurrency_symbol: __ccgo_ts, + Fmon_decimal_point: __ccgo_ts, + Fmon_thousands_sep: __ccgo_ts, + Fmon_grouping: __ccgo_ts, + Fpositive_sign: __ccgo_ts, + Fnegative_sign: __ccgo_ts, + Fint_frac_digits: uint8(CHAR_MAX), + Ffrac_digits: uint8(CHAR_MAX), + Fp_cs_precedes: uint8(CHAR_MAX), + Fp_sep_by_space: uint8(CHAR_MAX), + Fn_cs_precedes: uint8(CHAR_MAX), + Fn_sep_by_space: uint8(CHAR_MAX), + Fp_sign_posn: uint8(CHAR_MAX), + Fn_sign_posn: uint8(CHAR_MAX), + Fint_p_cs_precedes: uint8(CHAR_MAX), + Fint_p_sep_by_space: uint8(CHAR_MAX), + Fint_n_cs_precedes: uint8(CHAR_MAX), + Fint_n_sep_by_space: uint8(CHAR_MAX), + Fint_p_sign_posn: uint8(CHAR_MAX), + Fint_n_sign_posn: uint8(CHAR_MAX), +} + +func Xlocaleconv(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(unsafe.Pointer(&_posix_lconv)) +} + +var _default_locale_init_done int32 +var _default_locale t__locale_struct +var _default_ctype_locale t__locale_struct + +func X__loc_is_allocated(tls *TLS, loc Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v loc=%v, (%v:)", tls, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(loc != 0 && loc != uintptr(unsafe.Pointer(&X__c_locale)) && loc != uintptr(unsafe.Pointer(&X__c_dot_utf8_locale)) && loc != uintptr(unsafe.Pointer(&_default_locale)) && loc != uintptr(unsafe.Pointer(&_default_ctype_locale))) +} + +func _do_newlocale(tls *TLS, mask int32, name uintptr, loc Tlocale_t) (r Tlocale_t) { + bp := tls.Alloc(48) + defer tls.Free(48) + var i, i1 int32 + var v2, v3 uintptr + var v5 Tlocale_t + var _ /* tmp at bp+0 */ t__locale_struct + _, _, _, _, _ = i, i1, v2, v3, v5 + i = 0 + for { + if !(i < int32(LC_ALL)) { + break + } + if !(mask&(Int32FromInt32(1)< %v", r) }() + } + ___lock(tls, uintptr(unsafe.Pointer(&X__locale_lock))) + loc = _do_newlocale(tls, mask, name, loc) + ___unlock(tls, uintptr(unsafe.Pointer(&X__locale_lock))) + return loc +} + +func Xnewlocale(tls *TLS, mask int32, name uintptr, loc Tlocale_t) (r Tlocale_t) { + if __ccgo_strace { + trc("tls=%v mask=%v name=%v loc=%v, (%v:)", tls, mask, name, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__newlocale(tls, mask, name, loc) +} + +/* +grammar: + +Start = Expr ';' +Expr = Or | Or '?' Expr ':' Expr +Or = And | Or '||' And +And = Eq | And '&&' Eq +Eq = Rel | Eq '==' Rel | Eq '!=' Rel +Rel = Add | Rel '<=' Add | Rel '>=' Add | Rel '<' Add | Rel '>' Add +Add = Mul | Add '+' Mul | Add '-' Mul +Mul = Prim | Mul '*' Prim | Mul '/' Prim | Mul '%' Prim +Prim = '(' Expr ')' | '!' Prim | decimal | 'n' + +internals: + +recursive descent expression evaluator with stack depth limit. +for binary operators an operator-precedence parser is used. +eval* functions store the result of the parsed subexpression +and return a pointer to the next non-space character. +*/ + +type Tst = struct { + Fr uint64 + Fn uint64 + Fop int32 +} + +func _skipspace(tls *TLS, s uintptr) (r uintptr) { + var v1, v2 int32 + _, _ = v1, v2 + for { + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(s))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _3 + _3: + if !(v2 != 0) { + break + } + s = s + 1 + } + return s +} + +func _evalprim(tls *TLS, st uintptr, s uintptr, d int32) (r uintptr) { + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 int32 + var _ /* e at bp+0 */ uintptr + _ = v1 + d = d - 1 + v1 = d + if v1 < 0 { + return __ccgo_ts + } + s = _skipspace(tls, s) + if BoolInt32(uint32(**(**uint8)(__ccgo_up(s)))-uint32('0') < uint32(10)) != 0 { + (*Tst)(unsafe.Pointer(st)).Fr = Xstrtoul(tls, s, bp, int32(10)) + if **(**uintptr)(__ccgo_up(bp)) == s || (*Tst)(unsafe.Pointer(st)).Fr == Uint64FromInt32(-Int32FromInt32(1)) { + return __ccgo_ts + } + return _skipspace(tls, **(**uintptr)(__ccgo_up(bp))) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('n') { + (*Tst)(unsafe.Pointer(st)).Fr = (*Tst)(unsafe.Pointer(st)).Fn + return _skipspace(tls, s+uintptr(1)) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('(') { + s = _evalexpr(tls, st, s+uintptr(1), d) + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) != int32(')') { + return __ccgo_ts + } + return _skipspace(tls, s+uintptr(1)) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('!') { + s = _evalprim(tls, st, s+uintptr(1), d) + (*Tst)(unsafe.Pointer(st)).Fr = BoolUint64(!((*Tst)(unsafe.Pointer(st)).Fr != 0)) + return s + } + return __ccgo_ts +} + +func _binop(tls *TLS, st uintptr, op int32, left uint64) (r int32) { + var a, b uint64 + _, _ = a, b + a = left + b = (*Tst)(unsafe.Pointer(st)).Fr + switch op { + case 0: + (*Tst)(unsafe.Pointer(st)).Fr = BoolUint64(a != 0 || b != 0) + return 0 + case int32(1): + (*Tst)(unsafe.Pointer(st)).Fr = BoolUint64(a != 0 && b != 0) + return 0 + case int32(2): + (*Tst)(unsafe.Pointer(st)).Fr = BoolUint64(a == b) + return 0 + case int32(3): + (*Tst)(unsafe.Pointer(st)).Fr = BoolUint64(a != b) + return 0 + case int32(4): + (*Tst)(unsafe.Pointer(st)).Fr = BoolUint64(a >= b) + return 0 + case int32(5): + (*Tst)(unsafe.Pointer(st)).Fr = BoolUint64(a <= b) + return 0 + case int32(6): + (*Tst)(unsafe.Pointer(st)).Fr = BoolUint64(a > b) + return 0 + case int32(7): + (*Tst)(unsafe.Pointer(st)).Fr = BoolUint64(a < b) + return 0 + case int32(8): + (*Tst)(unsafe.Pointer(st)).Fr = a + b + return 0 + case int32(9): + (*Tst)(unsafe.Pointer(st)).Fr = a - b + return 0 + case int32(10): + (*Tst)(unsafe.Pointer(st)).Fr = a * b + return 0 + case int32(11): + if b != 0 { + (*Tst)(unsafe.Pointer(st)).Fr = a % b + return 0 + } + return int32(1) + case int32(12): + if b != 0 { + (*Tst)(unsafe.Pointer(st)).Fr = a / b + return 0 + } + return int32(1) + } + return int32(1) +} + +func _parseop(tls *TLS, st uintptr, s uintptr) (r uintptr) { + var i int32 + _ = i + i = 0 + for { + if !(i < int32(11)) { + break + } + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == Int32FromUint8(_opch[i]) { + /* note: >,< are accepted with or without = */ + if i < int32(6) && Int32FromUint8(**(**uint8)(__ccgo_up(s + 1))) == Int32FromUint8(_opch2[i]) { + (*Tst)(unsafe.Pointer(st)).Fop = i + return s + uintptr(2) + } + if i >= int32(4) { + (*Tst)(unsafe.Pointer(st)).Fop = i + int32(2) + return s + uintptr(1) + } + break + } + goto _1 + _1: + ; + i = i + 1 + } + (*Tst)(unsafe.Pointer(st)).Fop = int32(13) + return s +} + +var _opch = [11]uint8{'|', '&', '=', '!', '>', '<', '+', '-', '*', '%', '/'} + +var _opch2 = [6]uint8{'|', '&', '=', '=', '=', '='} + +func _evalbinop(tls *TLS, st uintptr, s uintptr, minprec int32, d int32) (r uintptr) { + var left uint64 + var op int32 + _, _ = left, op + d = d - 1 + s = _evalprim(tls, st, s, d) + s = _parseop(tls, st, s) + for { + /* + st->r (left hand side value) and st->op are now set, + get the right hand side or back out if op has low prec, + if op was missing then prec[op]==0 + */ + op = (*Tst)(unsafe.Pointer(st)).Fop + if Int32FromUint8(_prec[op]) <= minprec { + return s + } + left = (*Tst)(unsafe.Pointer(st)).Fr + s = _evalbinop(tls, st, s, Int32FromUint8(_prec[op]), d) + if _binop(tls, st, op, left) != 0 { + return __ccgo_ts + } + goto _1 + _1: + } + return r +} + +var _prec = [14]uint8{ + 0: uint8(1), + 1: uint8(2), + 2: uint8(3), + 3: uint8(3), + 4: uint8(4), + 5: uint8(4), + 6: uint8(4), + 7: uint8(4), + 8: uint8(5), + 9: uint8(5), + 10: uint8(6), + 11: uint8(6), + 12: uint8(6), +} + +func _evalexpr(tls *TLS, st uintptr, s uintptr, d int32) (r uintptr) { + var a, b, v2 uint64 + var v1 int32 + _, _, _, _ = a, b, v1, v2 + d = d - 1 + v1 = d + if v1 < 0 { + return __ccgo_ts + } + s = _evalbinop(tls, st, s, 0, d) + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) != int32('?') { + return s + } + a = (*Tst)(unsafe.Pointer(st)).Fr + s = _evalexpr(tls, st, s+uintptr(1), d) + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) != int32(':') { + return __ccgo_ts + } + b = (*Tst)(unsafe.Pointer(st)).Fr + s = _evalexpr(tls, st, s+uintptr(1), d) + if a != 0 { + v2 = b + } else { + v2 = (*Tst)(unsafe.Pointer(st)).Fr + } + (*Tst)(unsafe.Pointer(st)).Fr = v2 + return s +} + +func X__pleval(tls *TLS, s uintptr, n uint64) (r uint64) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v, (%v:)", tls, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var v1 uint64 + var _ /* st at bp+0 */ Tst + _ = v1 + (**(**Tst)(__ccgo_up(bp))).Fn = n + s = _evalexpr(tls, bp, s, int32(100)) + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32(';') { + v1 = (**(**Tst)(__ccgo_up(bp))).Fr + } else { + v1 = Uint64FromInt32(-Int32FromInt32(1)) + } + return v1 +} + +var _buf1 [144]uint8 + +func Xsetlocale(tls *TLS, cat int32, name uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v cat=%v name=%v, (%v:)", tls, cat, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(80) + defer tls.Free(80) + var i, same int32 + var l Tsize_t + var lm, lm1, p, part1, ret, s, z, v3 uintptr + var _ /* part at bp+48 */ [24]uint8 + var _ /* tmp_locale at bp+0 */ t__locale_struct + _, _, _, _, _, _, _, _, _, _, _ = i, l, lm, lm1, p, part1, ret, s, same, z, v3 + if Uint32FromInt32(cat) > uint32(LC_ALL) { + return uintptr(0) + } + ___lock(tls, uintptr(unsafe.Pointer(&X__locale_lock))) + /* For LC_ALL, setlocale is required to return a string which + * encodes the current setting for all categories. The format of + * this string is unspecified, and only the following code, which + * performs both the serialization and deserialization, depends + * on the format, so it can easily be changed if needed. */ + if cat == int32(LC_ALL) { + if name != 0 { + **(**[24]uint8)(__ccgo_up(bp + 48)) = [24]uint8{'C', '.', 'U', 'T', 'F', '-', '8'} + p = name + i = 0 + for { + if !(i < int32(LC_ALL)) { + break + } + z = X__strchrnul(tls, p, int32(';')) + if int64(z)-int64(p) <= int64(LOCALE_NAME_MAX) { + Xmemcpy(tls, bp+48, p, Uint64FromInt64(int64(z)-int64(p))) + (**(**[24]uint8)(__ccgo_up(bp + 48)))[int64(z)-int64(p)] = uint8(0) + if **(**uint8)(__ccgo_up(z)) != 0 { + p = z + uintptr(1) + } + } + lm = X__get_locale(tls, i, bp+48) + if lm == uintptr(-Int32FromInt32(1)) { + ___unlock(tls, uintptr(unsafe.Pointer(&X__locale_lock))) + return uintptr(0) + } + **(**uintptr)(__ccgo_up(bp + uintptr(i)*8)) = lm + goto _1 + _1: + ; + i = i + 1 + } + X__libc.Fglobal_locale = **(**t__locale_struct)(__ccgo_up(bp)) + } + s = uintptr(unsafe.Pointer(&_buf1)) + same = 0 + i = 0 + for { + if !(i < int32(LC_ALL)) { + break + } + lm1 = **(**uintptr)(__ccgo_up(uintptr(unsafe.Pointer(&X__libc)) + 56 + uintptr(i)*8)) + if lm1 == **(**uintptr)(__ccgo_up(uintptr(unsafe.Pointer(&X__libc)) + 56)) { + same = same + 1 + } + if lm1 != 0 { + v3 = lm1 + 16 + } else { + v3 = __ccgo_ts + 522 + } + part1 = v3 + l = _strlen(tls, part1) + Xmemcpy(tls, s, part1, l) + **(**uint8)(__ccgo_up(s + uintptr(l))) = uint8(';') + s = s + uintptr(l+uint64(1)) + goto _2 + _2: + ; + i = i + 1 + } + s = s - 1 + v3 = s + **(**uint8)(__ccgo_up(v3)) = uint8(0) + ___unlock(tls, uintptr(unsafe.Pointer(&X__locale_lock))) + if same == int32(LC_ALL) { + v3 = part1 + } else { + v3 = uintptr(unsafe.Pointer(&_buf1)) + } + return v3 + } + if name != 0 { + lm = X__get_locale(tls, cat, name) + if lm == uintptr(-Int32FromInt32(1)) { + ___unlock(tls, uintptr(unsafe.Pointer(&X__locale_lock))) + return uintptr(0) + } + **(**uintptr)(__ccgo_up(uintptr(unsafe.Pointer(&X__libc)) + 56 + uintptr(cat)*8)) = lm + } else { + lm = **(**uintptr)(__ccgo_up(uintptr(unsafe.Pointer(&X__libc)) + 56 + uintptr(cat)*8)) + } + if lm != 0 { + v3 = lm + 16 + } else { + v3 = __ccgo_ts + 522 + } + ret = v3 + ___unlock(tls, uintptr(unsafe.Pointer(&X__locale_lock))) + return ret +} + +func X__strcoll_l(tls *TLS, l uintptr, r uintptr, loc Tlocale_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v loc=%v, (%v:)", tls, l, r, loc, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return Xstrcmp(tls, l, r) +} + +func Xstrcoll(tls *TLS, l uintptr, r uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v, (%v:)", tls, l, r, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return X__strcoll_l(tls, l, r, (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale) +} + +func Xstrcoll_l(tls *TLS, l uintptr, r uintptr, loc Tlocale_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v loc=%v, (%v:)", tls, l, r, loc, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return X__strcoll_l(tls, l, r, loc) +} + +func _vstrfmon_l(tls *TLS, s uintptr, n Tsize_t, loc Tlocale_t, fmt uintptr, ap Tva_list) (r Tssize_t) { + bp := tls.Alloc(32) + defer tls.Free(32) + var fill, fw, intl, left, lp, negpar, nogrp, nosym, rp, w int32 + var l Tsize_t + var s0, v5, v6 uintptr + var x float64 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = fill, fw, intl, l, left, lp, negpar, nogrp, nosym, rp, s0, w, x, v5, v6 + s0 = s +_3: + ; + if !(n != 0 && **(**uint8)(__ccgo_up(fmt)) != 0) { + goto _1 + } + if !(Int32FromUint8(**(**uint8)(__ccgo_up(fmt))) != int32('%')) { + goto _4 + } + goto literal +literal: + ; + v5 = s + s = s + 1 + v6 = fmt + fmt = fmt + 1 + **(**uint8)(__ccgo_up(v5)) = **(**uint8)(__ccgo_up(v6)) + n = n - 1 + goto _2 +_4: + ; + fmt = fmt + 1 + if Int32FromUint8(**(**uint8)(__ccgo_up(fmt))) == int32('%') { + goto literal + } + fill = int32(' ') + nogrp = 0 + negpar = 0 + nosym = 0 + left = 0 + for { + switch Int32FromUint8(**(**uint8)(__ccgo_up(fmt))) { + case int32('='): + fmt = fmt + 1 + v5 = fmt + fill = Int32FromUint8(**(**uint8)(__ccgo_up(v5))) + goto _7 + case int32('^'): + nogrp = int32(1) + goto _7 + case int32('('): + negpar = int32(1) + fallthrough + case int32('+'): + goto _7 + case int32('!'): + nosym = int32(1) + goto _7 + case int32('-'): + left = int32(1) + goto _7 + } + break + goto _7 + _7: + ; + fmt = fmt + 1 + } + fw = 0 + for { + if !(BoolInt32(uint32(**(**uint8)(__ccgo_up(fmt)))-uint32('0') < uint32(10)) != 0) { + break + } + fw = int32(10)*fw + (Int32FromUint8(**(**uint8)(__ccgo_up(fmt))) - int32('0')) + goto _9 + _9: + ; + fmt = fmt + 1 + } + lp = 0 + rp = int32(2) + if Int32FromUint8(**(**uint8)(__ccgo_up(fmt))) == int32('#') { + lp = 0 + fmt = fmt + 1 + for { + if !(BoolInt32(uint32(**(**uint8)(__ccgo_up(fmt)))-uint32('0') < uint32(10)) != 0) { + break + } + lp = int32(10)*lp + (Int32FromUint8(**(**uint8)(__ccgo_up(fmt))) - int32('0')) + goto _10 + _10: + ; + fmt = fmt + 1 + } + } + if Int32FromUint8(**(**uint8)(__ccgo_up(fmt))) == int32('.') { + rp = 0 + fmt = fmt + 1 + for { + if !(BoolInt32(uint32(**(**uint8)(__ccgo_up(fmt)))-uint32('0') < uint32(10)) != 0) { + break + } + rp = int32(10)*rp + (Int32FromUint8(**(**uint8)(__ccgo_up(fmt))) - int32('0')) + goto _11 + _11: + ; + fmt = fmt + 1 + } + } + v5 = fmt + fmt = fmt + 1 + intl = BoolInt32(Int32FromUint8(**(**uint8)(__ccgo_up(v5))) == int32('i')) + w = lp + int32(1) + rp + if !(left != 0) && fw > w { + w = fw + } + x = VaFloat64(&ap) + l = Uint64FromInt32(Xsnprintf(tls, s, n, __ccgo_ts+560, VaList(bp+8, w, rp, x))) + if l >= n { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(E2BIG) + return int64(-int32(1)) + } + s = s + uintptr(l) + n = n - l + goto _2 +_2: + ; + goto _3 + goto _1 +_1: + ; + return int64(s) - int64(s0) +} + +func Xstrfmon_l(tls *TLS, s uintptr, n Tsize_t, loc Tlocale_t, fmt uintptr, va uintptr) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v loc=%v fmt=%v va=%v, (%v:)", tls, s, n, loc, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret Tssize_t + _, _ = ap, ret + ap = va + ret = _vstrfmon_l(tls, s, n, loc, fmt, ap) + _ = ap + return ret +} + +func Xstrfmon(tls *TLS, s uintptr, n Tsize_t, fmt uintptr, va uintptr) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v fmt=%v va=%v, (%v:)", tls, s, n, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret Tssize_t + _, _ = ap, ret + ap = va + ret = _vstrfmon_l(tls, s, n, (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale, fmt, ap) + _ = ap + return ret +} + +func Xstrtof_l(tls *TLS, s uintptr, p uintptr, l Tlocale_t) (r float32) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v l=%v, (%v:)", tls, s, p, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtof(tls, s, p) +} + +func Xstrtod_l(tls *TLS, s uintptr, p uintptr, l Tlocale_t) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v l=%v, (%v:)", tls, s, p, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtod(tls, s, p) +} + +func Xstrtold_l(tls *TLS, s uintptr, p uintptr, l Tlocale_t) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v l=%v, (%v:)", tls, s, p, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtold(tls, s, p) +} + +func X__strtod_l(tls *TLS, s uintptr, p uintptr, l Tlocale_t) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v l=%v, (%v:)", tls, s, p, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtod_l(tls, s, p, l) +} + +func X__strtof_l(tls *TLS, s uintptr, p uintptr, l Tlocale_t) (r float32) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v l=%v, (%v:)", tls, s, p, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtof_l(tls, s, p, l) +} + +func X__strtold_l(tls *TLS, s uintptr, p uintptr, l Tlocale_t) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v l=%v, (%v:)", tls, s, p, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtold_l(tls, s, p, l) +} + +// C documentation +// +// /* collate only by code points */ +func X__strxfrm_l(tls *TLS, dest uintptr, src uintptr, n Tsize_t, loc Tlocale_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v n=%v loc=%v, (%v:)", tls, dest, src, n, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l Tsize_t + _ = l + l = _strlen(tls, src) + if n > l { + Xstrcpy(tls, dest, src) + } + return l +} + +func Xstrxfrm(tls *TLS, dest uintptr, src uintptr, n Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v n=%v, (%v:)", tls, dest, src, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__strxfrm_l(tls, dest, src, n, (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale) +} + +// C documentation +// +// /* collate only by code points */ +func Xstrxfrm_l(tls *TLS, dest uintptr, src uintptr, n Tsize_t, loc Tlocale_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v n=%v loc=%v, (%v:)", tls, dest, src, n, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__strxfrm_l(tls, dest, src, n, loc) +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +var _current_domain uintptr + +func X__gettextdomain(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 uintptr + _ = v1 + if _current_domain != 0 { + v1 = _current_domain + } else { + v1 = __ccgo_ts + 414 + } + return v1 +} + +func Xtextdomain(tls *TLS, domainname uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v domainname=%v, (%v:)", tls, domainname, origin(2)) + defer func() { trc("-> %v", r) }() + } + var domlen Tsize_t + _ = domlen + if !(domainname != 0) { + return X__gettextdomain(tls) + } + domlen = _strlen(tls, domainname) + if domlen > uint64(NAME_MAX) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(0) + } + if !(_current_domain != 0) { + _current_domain = Xmalloc(tls, Uint64FromInt32(Int32FromInt32(NAME_MAX)+Int32FromInt32(1))) + if !(_current_domain != 0) { + return uintptr(0) + } + } + Xmemcpy(tls, _current_domain, domainname, domlen+uint64(1)) + return _current_domain +} + +func Xgettext(tls *TLS, msgid uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v msgid=%v, (%v:)", tls, msgid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xdgettext(tls, uintptr(0), msgid) +} + +func Xngettext(tls *TLS, msgid1 uintptr, msgid2 uintptr, n uint64) (r uintptr) { + if __ccgo_strace { + trc("tls=%v msgid1=%v msgid2=%v n=%v, (%v:)", tls, msgid1, msgid2, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xdngettext(tls, uintptr(0), msgid1, msgid2, n) +} + +func X__uselocale(tls *TLS, new1 Tlocale_t) (r Tlocale_t) { + if __ccgo_strace { + trc("tls=%v new1=%v, (%v:)", tls, new1, origin(2)) + defer func() { trc("-> %v", r) }() + } + var global, old, v1 Tlocale_t + var self Tpthread_t + _, _, _, _ = global, old, self, v1 + self = uintptr(___get_tp(tls)) + old = (*t__pthread)(unsafe.Pointer(self)).Flocale + global = uintptr(unsafe.Pointer(&X__libc)) + 56 + if new1 != 0 { + if new1 == uintptr(-Int32FromInt32(1)) { + v1 = global + } else { + v1 = new1 + } + (*t__pthread)(unsafe.Pointer(self)).Flocale = v1 + } + if old == global { + v1 = uintptr(-Int32FromInt32(1)) + } else { + v1 = old + } + return v1 +} + +func Xuselocale(tls *TLS, new1 Tlocale_t) (r Tlocale_t) { + if __ccgo_strace { + trc("tls=%v new1=%v, (%v:)", tls, new1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__uselocale(tls, new1) +} + +// C documentation +// +// /* FIXME: stub */ +func X__wcscoll_l(tls *TLS, l uintptr, r uintptr, locale Tlocale_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v locale=%v, (%v:)", tls, l, r, locale, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return Xwcscmp(tls, l, r) +} + +func Xwcscoll(tls *TLS, l uintptr, r uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v, (%v:)", tls, l, r, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return X__wcscoll_l(tls, l, r, (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale) +} + +// C documentation +// +// /* FIXME: stub */ +func Xwcscoll_l(tls *TLS, l uintptr, r uintptr, locale Tlocale_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v locale=%v, (%v:)", tls, l, r, locale, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return X__wcscoll_l(tls, l, r, locale) +} + +// C documentation +// +// /* collate only by code points */ +func X__wcsxfrm_l(tls *TLS, dest uintptr, src uintptr, n Tsize_t, loc Tlocale_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v n=%v loc=%v, (%v:)", tls, dest, src, n, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l Tsize_t + _ = l + l = Xwcslen(tls, src) + if l < n { + Xwmemcpy(tls, dest, src, l+uint64(1)) + } else { + if n != 0 { + Xwmemcpy(tls, dest, src, n-uint64(1)) + **(**Twchar_t)(__ccgo_up(dest + uintptr(n-uint64(1))*4)) = uint32(0) + } + } + return l +} + +func Xwcsxfrm(tls *TLS, dest uintptr, src uintptr, n Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v n=%v, (%v:)", tls, dest, src, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__wcsxfrm_l(tls, dest, src, n, (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale) +} + +// C documentation +// +// /* collate only by code points */ +func Xwcsxfrm_l(tls *TLS, dest uintptr, src uintptr, n Tsize_t, loc Tlocale_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v n=%v loc=%v, (%v:)", tls, dest, src, n, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__wcsxfrm_l(tls, dest, src, n, loc) +} + +func Xreallocarray(tls *TLS, ptr uintptr, m Tsize_t, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v ptr=%v m=%v n=%v, (%v:)", tls, ptr, m, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + if n != 0 && m > Uint64FromInt32(-Int32FromInt32(1))/n { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOMEM) + return uintptr(0) + } + return Xrealloc(tls, ptr, m*n) +} + +const LDBL_EPSILON2 = 0 +const LDBL_MAX2 = 0 +const LDBL_MIN2 = 0 + +var _C1 = float64(0.0416666666666666) /* 0x3FA55555, 0x5555554C */ +var _C2 = -Float64FromFloat64(0.001388888888887411) /* 0xBF56C16C, 0x16C15177 */ +var _C3 = float64(2.480158728947673e-05) /* 0x3EFA01A0, 0x19CB1590 */ +var _C4 = -Float64FromFloat64(2.7557314351390663e-07) /* 0xBE927E4F, 0x809C52AD */ +var _C5 = float64(2.087572321298175e-09) /* 0x3E21EE9E, 0xBDB4B1C4 */ +var _C6 = -Float64FromFloat64(1.1359647557788195e-11) /* 0xBDA8FAE9, 0xBE8838D4 */ + +func X__cos(tls *TLS, x float64, y float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var hz, r, w, z Tdouble_t + _, _, _, _ = hz, r, w, z + z = Tdouble_t(x * x) + w = Tdouble_t(z * z) + r = Tdouble_t(z*(_C1+float64(z*(_C2+float64(z*_C3))))) + Tdouble_t(Tdouble_t(w*w)*(_C4+float64(z*(_C5+float64(z*_C6))))) + hz = Tdouble_t(float64(0.5) * z) + w = float64(1) - hz + return w + (Float64FromFloat64(1) - w - hz + (Tdouble_t(z*r) - Tdouble_t(x*y))) +} + +// C documentation +// +// /* |cos(x) - c(x)| < 2**-34.1 (~[-5.37e-11, 5.295e-11]). */ + +var _C0 = -Float64FromFloat64(0.499999997251031) /* -0.499999997251031003120 */ +var _C11 = float64(0.04166662332373906) /* 0.0416666233237390631894 */ +var _C21 = -Float64FromFloat64(0.001388676377460993) /* -0.00138867637746099294692 */ +var _C31 = float64(2.439044879627741e-05) /* 0.0000243904487962774090654 */ + +func X__cosdf(tls *TLS, x float64) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, w, z Tdouble_t + _, _, _ = r, w, z + /* Try to optimize for parallel evaluation as in __tandf.c. */ + z = Tdouble_t(x * x) + w = Tdouble_t(z * z) + r = _C21 + float64(z*_C31) + return float32(float64(1) + float64(z*_C0) + float64(w*_C11) + float64(Tdouble_t(w*z)*r)) +} + +// C documentation +// +// /* k is such that k*ln2 has minimal relative error and x - kln2 > log(DBL_MIN) */ +var _k2 = int32(2043) +var _kln22 = float64(1416.0996898839683) + +// C documentation +// +// /* exp(x)/2 for x >= log(DBL_MAX), slightly better than 0.5*exp(x/2)*exp(x/2) */ +func X__expo2(tls *TLS, x float64, sign float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v sign=%v, (%v:)", tls, x, sign, origin(2)) + defer func() { trc("-> %v", r) }() + } + var scale float64 + var v1 Tuint64_t + _, _ = scale, v1 + /* note that k is odd and scale*scale overflows */ + v1 = uint64(Uint32FromInt32(Int32FromInt32(0x3ff)+_k2/Int32FromInt32(2))< log(FLT_MIN) */ +var _k3 = int32(235) +var _kln23 = Float32FromFloat32(162.88958740234375) + +// C documentation +// +// /* expf(x)/2 for x >= log(FLT_MAX), slightly better than 0.5f*expf(x/2)*expf(x/2) */ +func X__expo2f(tls *TLS, x float32, sign float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v sign=%v, (%v:)", tls, x, sign, origin(2)) + defer func() { trc("-> %v", r) }() + } + var scale float32 + var v1 Tuint32_t + _, _ = scale, v1 + /* note that k is odd and scale*scale overflows */ + v1 = Uint32FromInt32(Int32FromInt32(0x7f)+_k3/Int32FromInt32(2)) << int32(23) + scale = *(*float32)(unsafe.Pointer(&v1)) + /* exp(x - k ln2) * 2**(k-1) */ + /* in directed rounding correct sign before rounding or overflow is important */ + return float32(float32(Xexpf(tls, x-_kln23)*float32(sign*scale)) * scale) +} + +func X__fpclassify(tls *TLS, x float64) (r int32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e, v1 int32 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _ = e, v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + e = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + if !(e != 0) { + if *(*Tuint64_t)(unsafe.Pointer(bp))< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e, v1 int32 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _ = e, v1 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + e = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(23) & uint32(0xff)) + if !(e != 0) { + if *(*Tuint32_t)(unsafe.Pointer(bp))< %v", r) }() + } + return X__fpclassify(tls, x) +} + +const pio2_hi = 0 +const pio2_lo = 0 + +func X__math_divzero(tls *TLS, sign Tuint32_t) (r float64) { + if __ccgo_strace { + trc("tls=%v sign=%v, (%v:)", tls, sign, origin(2)) + defer func() { trc("-> %v", r) }() + } + var y, v1, v2 float64 + _, _, _ = y, v1, v2 + if sign != 0 { + v1 = -Float64FromFloat64(1) + } else { + v1 = float64(1) + } + y = v1 + v2 = y + goto _3 +_3: + return v2 / float64(0) +} + +func X__math_divzerof(tls *TLS, sign Tuint32_t) (r float32) { + if __ccgo_strace { + trc("tls=%v sign=%v, (%v:)", tls, sign, origin(2)) + defer func() { trc("-> %v", r) }() + } + var y, v1, v2 float32 + _, _, _ = y, v1, v2 + if sign != 0 { + v1 = -Float32FromFloat32(1) + } else { + v1 = Float32FromFloat32(1) + } + y = v1 + v2 = y + goto _3 +_3: + return v2 / Float32FromFloat32(0) +} + +func X__math_invalid(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return (x - x) / (x - x) +} + +func X__math_invalidf(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return (x - x) / (x - x) +} + +func X__math_oflow(tls *TLS, sign Tuint32_t) (r float64) { + if __ccgo_strace { + trc("tls=%v sign=%v, (%v:)", tls, sign, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__math_xflow(tls, sign, float64(3.105036184601418e+231)) +} + +func X__math_oflowf(tls *TLS, sign Tuint32_t) (r float32) { + if __ccgo_strace { + trc("tls=%v sign=%v, (%v:)", tls, sign, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__math_xflowf(tls, sign, Float32FromFloat32(1.5845632502852868e+29)) +} + +func X__math_uflow(tls *TLS, sign Tuint32_t) (r float64) { + if __ccgo_strace { + trc("tls=%v sign=%v, (%v:)", tls, sign, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__math_xflow(tls, sign, float64(1.2882297539194267e-231)) +} + +func X__math_uflowf(tls *TLS, sign Tuint32_t) (r float32) { + if __ccgo_strace { + trc("tls=%v sign=%v, (%v:)", tls, sign, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__math_xflowf(tls, sign, Float32FromFloat32(2.524354896707238e-29)) +} + +func X__math_xflow(tls *TLS, sign Tuint32_t, y2 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v sign=%v y2=%v, (%v:)", tls, sign, y2, origin(2)) + defer func() { trc("-> %v", r) }() + } + var y, y1, v1, v2, v4 float64 + _, _, _, _, _ = y, y1, v1, v2, v4 + if sign != 0 { + v1 = -y2 + } else { + v1 = y2 + } + y1 = v1 + v2 = y1 + goto _3 +_3: + y = float64(v2 * y2) + v4 = y + goto _5 +_5: + return v4 +} + +func X__math_xflowf(tls *TLS, sign Tuint32_t, y2 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v sign=%v y2=%v, (%v:)", tls, sign, y2, origin(2)) + defer func() { trc("-> %v", r) }() + } + var y, y1, v1, v2, v4 float32 + _, _, _, _, _ = y, y1, v1, v2, v4 + if sign != 0 { + v1 = -y2 + } else { + v1 = y2 + } + y1 = v1 + v2 = y1 + goto _3 +_3: + y = float32(v2 * y2) + v4 = y + goto _5 +_5: + return v4 +} + +const DBL_EPSILON1 = 2.220446049250313e-16 +const EPS = 0 + +// C documentation +// +// /* +// * invpio2: 53 bits of 2/pi +// * pio2_1: first 33 bit of pi/2 +// * pio2_1t: pi/2 - pio2_1 +// * pio2_2: second 33 bit of pi/2 +// * pio2_2t: pi/2 - (pio2_1+pio2_2) +// * pio2_3: third 33 bit of pi/2 +// * pio2_3t: pi/2 - (pio2_1+pio2_2+pio2_3) +// */ + +var _toint = Float64FromFloat64(1.5) / Float64FromFloat64(2.220446049250313e-16) +var _pio4 = float64(0.7853981633974483) +var _invpio2 = float64(0.6366197723675814) /* 0x3FE45F30, 0x6DC9C883 */ +var _pio2_1 = float64(1.5707963267341256) /* 0x3FF921FB, 0x54400000 */ +var _pio2_1t = float64(6.077100506506192e-11) /* 0x3DD0B461, 0x1A626331 */ +var _pio2_2 = float64(6.077100506303966e-11) /* 0x3DD0B461, 0x1A600000 */ +var _pio2_2t = float64(2.0222662487959506e-21) /* 0x3BA3198A, 0x2E037073 */ +var _pio2_3 = float64(2.0222662487111665e-21) /* 0x3BA3198A, 0x2E000000 */ +var _pio2_3t = float64(8.4784276603689e-32) /* 0x397B839A, 0x252049C1 */ + +// C documentation +// +// /* caller must handle the case when reduction is not needed: |x| ~<= pi/4 */ +func X__rem_pio2(tls *TLS, x float64, y uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + var ex, ey, i, n, sign int32 + var fn, r, t, w, z Tdouble_t + var ix Tuint32_t + var v2 float64 + var _ /* tx at bp+8 */ [3]float64 + var _ /* ty at bp+32 */ [2]float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _, _, _, _, _, _ = ex, ey, fn, i, ix, n, r, sign, t, w, z, v2 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + sign = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(63)) + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32) & uint64(0x7fffffff)) + if ix <= uint32(0x400f6a7a) { /* |x| ~<= 5pi/4 */ + if ix&uint32(0xfffff) == uint32(0x921fb) { /* |x| ~= pi/2 or 2pi/2 */ + goto medium + } /* cancellation -- use medium case */ + if ix <= uint32(0x4002d97c) { /* |x| ~<= 3pi/4 */ + if !(sign != 0) { + z = x - _pio2_1 /* one round good to 85 bits */ + **(**float64)(__ccgo_up(y)) = z - _pio2_1t + **(**float64)(__ccgo_up(y + 1*8)) = z - **(**float64)(__ccgo_up(y)) - _pio2_1t + return int32(1) + } else { + z = x + _pio2_1 + **(**float64)(__ccgo_up(y)) = z + _pio2_1t + **(**float64)(__ccgo_up(y + 1*8)) = z - **(**float64)(__ccgo_up(y)) + _pio2_1t + return -int32(1) + } + } else { + if !(sign != 0) { + z = x - float64(Float64FromInt32(2)*_pio2_1) + **(**float64)(__ccgo_up(y)) = z - Tdouble_t(Float64FromInt32(2)*_pio2_1t) + **(**float64)(__ccgo_up(y + 1*8)) = z - **(**float64)(__ccgo_up(y)) - Tdouble_t(Float64FromInt32(2)*_pio2_1t) + return int32(2) + } else { + z = x + float64(Float64FromInt32(2)*_pio2_1) + **(**float64)(__ccgo_up(y)) = z + Tdouble_t(Float64FromInt32(2)*_pio2_1t) + **(**float64)(__ccgo_up(y + 1*8)) = z - **(**float64)(__ccgo_up(y)) + Tdouble_t(Float64FromInt32(2)*_pio2_1t) + return -int32(2) + } + } + } + if ix <= uint32(0x401c463b) { /* |x| ~<= 9pi/4 */ + if ix <= uint32(0x4015fdbc) { /* |x| ~<= 7pi/4 */ + if ix == uint32(0x4012d97c) { /* |x| ~= 3pi/2 */ + goto medium + } + if !(sign != 0) { + z = x - float64(Float64FromInt32(3)*_pio2_1) + **(**float64)(__ccgo_up(y)) = z - Tdouble_t(Float64FromInt32(3)*_pio2_1t) + **(**float64)(__ccgo_up(y + 1*8)) = z - **(**float64)(__ccgo_up(y)) - Tdouble_t(Float64FromInt32(3)*_pio2_1t) + return int32(3) + } else { + z = x + float64(Float64FromInt32(3)*_pio2_1) + **(**float64)(__ccgo_up(y)) = z + Tdouble_t(Float64FromInt32(3)*_pio2_1t) + **(**float64)(__ccgo_up(y + 1*8)) = z - **(**float64)(__ccgo_up(y)) + Tdouble_t(Float64FromInt32(3)*_pio2_1t) + return -int32(3) + } + } else { + if ix == uint32(0x401921fb) { /* |x| ~= 4pi/2 */ + goto medium + } + if !(sign != 0) { + z = x - float64(Float64FromInt32(4)*_pio2_1) + **(**float64)(__ccgo_up(y)) = z - Tdouble_t(Float64FromInt32(4)*_pio2_1t) + **(**float64)(__ccgo_up(y + 1*8)) = z - **(**float64)(__ccgo_up(y)) - Tdouble_t(Float64FromInt32(4)*_pio2_1t) + return int32(4) + } else { + z = x + float64(Float64FromInt32(4)*_pio2_1) + **(**float64)(__ccgo_up(y)) = z + Tdouble_t(Float64FromInt32(4)*_pio2_1t) + **(**float64)(__ccgo_up(y + 1*8)) = z - **(**float64)(__ccgo_up(y)) + Tdouble_t(Float64FromInt32(4)*_pio2_1t) + return -int32(4) + } + } + } + if !(ix < uint32(0x413921fb)) { + goto _1 + } /* |x| ~< 2^20*(pi/2), medium size */ + goto medium +medium: + ; + /* rint(x/(pi/2)) */ + fn = Tdouble_t(x*_invpio2) + _toint - _toint + n = int32(fn) + r = x - float64(fn*_pio2_1) + w = Tdouble_t(fn * _pio2_1t) /* 1st round, good to 85 bits */ + /* Matters with directed rounding. */ + if r-w < -_pio4 { + n = n - 1 + fn = fn - 1 + r = x - float64(fn*_pio2_1) + w = Tdouble_t(fn * _pio2_1t) + } else { + if r-w > _pio4 { + n = n + 1 + fn = fn + 1 + r = x - float64(fn*_pio2_1) + w = Tdouble_t(fn * _pio2_1t) + } + } + **(**float64)(__ccgo_up(y)) = r - w + *(*float64)(unsafe.Pointer(bp)) = **(**float64)(__ccgo_up(y)) + ey = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + ex = Int32FromUint32(ix >> int32(20)) + if ex-ey > int32(16) { /* 2nd round, good to 118 bits */ + t = r + w = Tdouble_t(fn * _pio2_2) + r = t - w + w = Tdouble_t(fn*_pio2_2t) - (t - r - w) + **(**float64)(__ccgo_up(y)) = r - w + *(*float64)(unsafe.Pointer(bp)) = **(**float64)(__ccgo_up(y)) + ey = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + if ex-ey > int32(49) { /* 3rd round, good to 151 bits, covers all cases */ + t = r + w = Tdouble_t(fn * _pio2_3) + r = t - w + w = Tdouble_t(fn*_pio2_3t) - (t - r - w) + **(**float64)(__ccgo_up(y)) = r - w + } + } + **(**float64)(__ccgo_up(y + 1*8)) = r - **(**float64)(__ccgo_up(y)) - w + return n +_1: + ; + /* + * all other (large) arguments + */ + if ix >= uint32(0x7ff00000) { /* x is inf or NaN */ + v2 = x - x + **(**float64)(__ccgo_up(y + 1*8)) = v2 + **(**float64)(__ccgo_up(y)) = v2 + return 0 + } + /* set z = scalbn(|x|,-ilogb(x)+23) */ + *(*float64)(unsafe.Pointer(bp)) = x + *(*Tuint64_t)(unsafe.Pointer(bp)) &= Uint64FromInt32(-Int32FromInt32(1)) >> Int32FromInt32(12) + *(*Tuint64_t)(unsafe.Pointer(bp)) |= Uint64FromInt32(Int32FromInt32(0x3ff)+Int32FromInt32(23)) << Int32FromInt32(52) + z = *(*float64)(unsafe.Pointer(bp)) + i = 0 + for { + if !(i < int32(2)) { + break + } + (**(**[3]float64)(__ccgo_up(bp + 8)))[i] = float64(int32(z)) + z = Tdouble_t((z - (**(**[3]float64)(__ccgo_up(bp + 8)))[i]) * float64(1.6777216e+07)) + goto _3 + _3: + ; + i = i + 1 + } + (**(**[3]float64)(__ccgo_up(bp + 8)))[i] = z + /* skip zero terms, first term is non-zero */ + for (**(**[3]float64)(__ccgo_up(bp + 8)))[i] == float64(0) { + i = i - 1 + } + n = X__rem_pio2_large(tls, bp+8, bp+32, Int32FromUint32(ix>>Int32FromInt32(20))-(Int32FromInt32(0x3ff)+Int32FromInt32(23)), i+int32(1), int32(1)) + if sign != 0 { + **(**float64)(__ccgo_up(y)) = -(**(**[2]float64)(__ccgo_up(bp + 32)))[0] + **(**float64)(__ccgo_up(y + 1*8)) = -(**(**[2]float64)(__ccgo_up(bp + 32)))[int32(1)] + return -n + } + **(**float64)(__ccgo_up(y)) = (**(**[2]float64)(__ccgo_up(bp + 32)))[0] + **(**float64)(__ccgo_up(y + 1*8)) = (**(**[2]float64)(__ccgo_up(bp + 32)))[int32(1)] + return n +} + +const DBL_EPSILON2 = 0 + +var _init_jk = [4]int32{ + 0: int32(3), + 1: int32(4), + 2: int32(4), + 3: int32(6), +} /* initial value for jk */ + +// C documentation +// +// /* +// * Table of constants for 2/pi, 396 Hex digits (476 decimal) of 2/pi +// * +// * integer array, contains the (24*i)-th to (24*i+23)-th +// * bit of 2/pi after binary point. The corresponding +// * floating value is +// * +// * ipio2[i] * 2^(-24(i+1)). +// * +// * NB: This table must have at least (e0-3)/24 + jk terms. +// * For quad precision (e0 <= 16360, jk = 6), this is 686. +// */ +var _ipio2 = [66]Tint32_t{ + 0: int32(0xA2F983), + 1: int32(0x6E4E44), + 2: int32(0x1529FC), + 3: int32(0x2757D1), + 4: int32(0xF534DD), + 5: int32(0xC0DB62), + 6: int32(0x95993C), + 7: int32(0x439041), + 8: int32(0xFE5163), + 9: int32(0xABDEBB), + 10: int32(0xC561B7), + 11: int32(0x246E3A), + 12: int32(0x424DD2), + 13: int32(0xE00649), + 14: int32(0x2EEA09), + 15: int32(0xD1921C), + 16: int32(0xFE1DEB), + 17: int32(0x1CB129), + 18: int32(0xA73EE8), + 19: int32(0x8235F5), + 20: int32(0x2EBB44), + 21: int32(0x84E99C), + 22: int32(0x7026B4), + 23: int32(0x5F7E41), + 24: int32(0x3991D6), + 25: int32(0x398353), + 26: int32(0x39F49C), + 27: int32(0x845F8B), + 28: int32(0xBDF928), + 29: int32(0x3B1FF8), + 30: int32(0x97FFDE), + 31: int32(0x05980F), + 32: int32(0xEF2F11), + 33: int32(0x8B5A0A), + 34: int32(0x6D1F6D), + 35: int32(0x367ECF), + 36: int32(0x27CB09), + 37: int32(0xB74F46), + 38: int32(0x3F669E), + 39: int32(0x5FEA2D), + 40: int32(0x7527BA), + 41: int32(0xC7EBE5), + 42: int32(0xF17B3D), + 43: int32(0x0739F7), + 44: int32(0x8A5292), + 45: int32(0xEA6BFB), + 46: int32(0x5FB11F), + 47: int32(0x8D5D08), + 48: int32(0x560330), + 49: int32(0x46FC7B), + 50: int32(0x6BABF0), + 51: int32(0xCFBC20), + 52: int32(0x9AF436), + 53: int32(0x1DA9E3), + 54: int32(0x91615E), + 55: int32(0xE61B08), + 56: int32(0x659985), + 57: int32(0x5F14A0), + 58: int32(0x68408D), + 59: int32(0xFFD880), + 60: int32(0x4D7327), + 61: int32(0x310606), + 62: int32(0x1556CA), + 63: int32(0x73A8C9), + 64: int32(0x60E27B), + 65: int32(0xC08C6B), +} + +var _PIo2 = [8]float64{ + 0: float64(1.570796251296997), + 1: float64(7.549789415861596e-08), + 2: float64(5.390302529957765e-15), + 3: float64(3.282003415807913e-22), + 4: float64(1.270655753080676e-29), + 5: float64(1.2293330898111133e-36), + 6: float64(2.7337005381646456e-44), + 7: float64(2.1674168387780482e-51), +} + +func X__rem_pio2_large(tls *TLS, x uintptr, y uintptr, e0 int32, nx int32, prec int32) (r int32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v e0=%v nx=%v prec=%v, (%v:)", tls, x, y, e0, nx, prec, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(240) + defer tls.Free(240) + var carry, i, ih, j, jk, jp, jv, jx, jz, k, m, n, q0 Tint32_t + var f, q [20]float64 + var fw, z, v2 float64 + var _ /* fq at bp+80 */ [20]float64 + var _ /* iq at bp+0 */ [20]Tint32_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = carry, f, fw, i, ih, j, jk, jp, jv, jx, jz, k, m, n, q, q0, z, v2 + /* initialize jk*/ + jk = _init_jk[prec] + jp = jk + /* determine jx,jv,q0, note that 3>q0 */ + jx = nx - int32(1) + jv = (e0 - int32(3)) / int32(24) + if jv < 0 { + jv = 0 + } + q0 = e0 - int32(24)*(jv+int32(1)) + /* set up f[0] to f[jx+jk] where f[jx+jk] = ipio2[jv+jk] */ + j = jv - jx + m = jx + jk + i = 0 + for { + if !(i <= m) { + break + } + if j < 0 { + v2 = float64(0) + } else { + v2 = float64(_ipio2[j]) + } + f[i] = v2 + goto _1 + _1: + ; + i = i + 1 + j = j + 1 + } + /* compute q[0],q[1],...q[jk] */ + i = 0 + for { + if !(i <= jk) { + break + } + j = 0 + fw = Float64FromFloat64(0) + for { + if !(j <= jx) { + break + } + fw = fw + float64(**(**float64)(__ccgo_up(x + uintptr(j)*8))*f[jx+i-j]) + goto _4 + _4: + ; + j = j + 1 + } + q[i] = fw + goto _3 + _3: + ; + i = i + 1 + } + jz = jk + goto recompute +recompute: + ; + /* distill q[] into iq[] reversingly */ + i = 0 + j = jz + z = q[jz] + for { + if !(j > 0) { + break + } + fw = float64(int32(float64(Float64FromFloat64(5.960464477539063e-08) * z))) + (**(**[20]Tint32_t)(__ccgo_up(bp)))[i] = int32(z - float64(Float64FromFloat64(1.6777216e+07)*fw)) + z = q[j-int32(1)] + fw + goto _5 + _5: + ; + i = i + 1 + j = j - 1 + } + /* compute n */ + z = Xscalbn(tls, z, q0) /* actual value of z */ + z = z - float64(float64(8)*Xfloor(tls, float64(z*float64(0.125)))) /* trim off integer >= 8 */ + n = int32(z) + z = z - float64(n) + ih = 0 + if q0 > 0 { /* need iq[jz-1] to determine n */ + i = (**(**[20]Tint32_t)(__ccgo_up(bp)))[jz-int32(1)] >> (int32(24) - q0) + n = n + i + **(**Tint32_t)(__ccgo_up(bp + uintptr(jz-int32(1))*4)) -= i << (int32(24) - q0) + ih = (**(**[20]Tint32_t)(__ccgo_up(bp)))[jz-int32(1)] >> (int32(23) - q0) + } else { + if q0 == 0 { + ih = (**(**[20]Tint32_t)(__ccgo_up(bp)))[jz-int32(1)] >> int32(23) + } else { + if z >= float64(0.5) { + ih = int32(2) + } + } + } + if ih > 0 { /* q > 0.5 */ + n = n + int32(1) + carry = 0 + i = 0 + for { + if !(i < jz) { + break + } /* compute 1-q */ + j = (**(**[20]Tint32_t)(__ccgo_up(bp)))[i] + if carry == 0 { + if j != 0 { + carry = int32(1) + (**(**[20]Tint32_t)(__ccgo_up(bp)))[i] = int32(0x1000000) - j + } + } else { + (**(**[20]Tint32_t)(__ccgo_up(bp)))[i] = int32(0xffffff) - j + } + goto _6 + _6: + ; + i = i + 1 + } + if q0 > 0 { /* rare case: chance is 1 in 12 */ + switch q0 { + case int32(1): + **(**Tint32_t)(__ccgo_up(bp + uintptr(jz-int32(1))*4)) &= int32(0x7fffff) + case int32(2): + **(**Tint32_t)(__ccgo_up(bp + uintptr(jz-int32(1))*4)) &= int32(0x3fffff) + break + } + } + if ih == int32(2) { + z = float64(1) - z + if carry != 0 { + z = z - Xscalbn(tls, float64(1), q0) + } + } + } + /* check if recomputation is needed */ + if z == float64(0) { + j = 0 + i = jz - int32(1) + for { + if !(i >= jk) { + break + } + j = j | (**(**[20]Tint32_t)(__ccgo_up(bp)))[i] + goto _7 + _7: + ; + i = i - 1 + } + if j == 0 { /* need recomputation */ + k = int32(1) + for { + if !((**(**[20]Tint32_t)(__ccgo_up(bp)))[jk-k] == 0) { + break + } + goto _8 + _8: + ; + k = k + 1 + } /* k = no. of terms needed */ + i = jz + int32(1) + for { + if !(i <= jz+k) { + break + } /* add q[jz+1] to q[jz+k] */ + f[jx+i] = float64(_ipio2[jv+i]) + j = 0 + fw = Float64FromFloat64(0) + for { + if !(j <= jx) { + break + } + fw = fw + float64(**(**float64)(__ccgo_up(x + uintptr(j)*8))*f[jx+i-j]) + goto _10 + _10: + ; + j = j + 1 + } + q[i] = fw + goto _9 + _9: + ; + i = i + 1 + } + jz = jz + k + goto recompute + } + } + /* chop off zero terms */ + if z == float64(0) { + jz = jz - int32(1) + q0 = q0 - int32(24) + for (**(**[20]Tint32_t)(__ccgo_up(bp)))[jz] == 0 { + jz = jz - 1 + q0 = q0 - int32(24) + } + } else { /* break z into 24-bit if necessary */ + z = Xscalbn(tls, z, -q0) + if z >= float64(1.6777216e+07) { + fw = float64(int32(float64(Float64FromFloat64(5.960464477539063e-08) * z))) + (**(**[20]Tint32_t)(__ccgo_up(bp)))[jz] = int32(z - float64(Float64FromFloat64(1.6777216e+07)*fw)) + jz = jz + int32(1) + q0 = q0 + int32(24) + (**(**[20]Tint32_t)(__ccgo_up(bp)))[jz] = int32(fw) + } else { + (**(**[20]Tint32_t)(__ccgo_up(bp)))[jz] = int32(z) + } + } + /* convert integer "bit" chunk to floating-point value */ + fw = Xscalbn(tls, float64(1), q0) + i = jz + for { + if !(i >= 0) { + break + } + q[i] = float64(fw * float64((**(**[20]Tint32_t)(__ccgo_up(bp)))[i])) + fw = fw * float64(5.960464477539063e-08) + goto _11 + _11: + ; + i = i - 1 + } + /* compute PIo2[0,...,jp]*q[jz,...,0] */ + i = jz + for { + if !(i >= 0) { + break + } + fw = float64(0) + k = Int32FromInt32(0) + for { + if !(k <= jp && k <= jz-i) { + break + } + fw = fw + float64(_PIo2[k]*q[i+k]) + goto _13 + _13: + ; + k = k + 1 + } + (**(**[20]float64)(__ccgo_up(bp + 80)))[jz-i] = fw + goto _12 + _12: + ; + i = i - 1 + } + /* compress fq[] into y[] */ + switch prec { + case 0: + goto _14 + case int32(2): + goto _15 + case int32(1): + goto _16 + case int32(3): + goto _17 + } + goto _18 +_14: + ; + fw = float64(0) + i = jz + for { + if !(i >= 0) { + break + } + fw = fw + (**(**[20]float64)(__ccgo_up(bp + 80)))[i] + goto _19 + _19: + ; + i = i - 1 + } + if ih == 0 { + v2 = fw + } else { + v2 = -fw + } + **(**float64)(__ccgo_up(y)) = v2 + goto _18 +_16: + ; +_15: + ; + fw = float64(0) + i = jz + for { + if !(i >= 0) { + break + } + fw = fw + (**(**[20]float64)(__ccgo_up(bp + 80)))[i] + goto _21 + _21: + ; + i = i - 1 + } + // TODO: drop excess precision here once double_t is used + fw = fw + if ih == 0 { + v2 = fw + } else { + v2 = -fw + } + **(**float64)(__ccgo_up(y)) = v2 + fw = (**(**[20]float64)(__ccgo_up(bp + 80)))[0] - fw + i = int32(1) + for { + if !(i <= jz) { + break + } + fw = fw + (**(**[20]float64)(__ccgo_up(bp + 80)))[i] + goto _23 + _23: + ; + i = i + 1 + } + if ih == 0 { + v2 = fw + } else { + v2 = -fw + } + **(**float64)(__ccgo_up(y + 1*8)) = v2 + goto _18 +_17: + ; /* painful */ + i = jz +_27: + ; + if !(i > 0) { + goto _25 + } + fw = (**(**[20]float64)(__ccgo_up(bp + 80)))[i-int32(1)] + (**(**[20]float64)(__ccgo_up(bp + 80)))[i] + **(**float64)(__ccgo_up(bp + 80 + uintptr(i)*8)) += (**(**[20]float64)(__ccgo_up(bp + 80)))[i-int32(1)] - fw + (**(**[20]float64)(__ccgo_up(bp + 80)))[i-int32(1)] = fw + goto _26 +_26: + ; + i = i - 1 + goto _27 + goto _25 +_25: + ; + i = jz + for { + if !(i > int32(1)) { + break + } + fw = (**(**[20]float64)(__ccgo_up(bp + 80)))[i-int32(1)] + (**(**[20]float64)(__ccgo_up(bp + 80)))[i] + **(**float64)(__ccgo_up(bp + 80 + uintptr(i)*8)) += (**(**[20]float64)(__ccgo_up(bp + 80)))[i-int32(1)] - fw + (**(**[20]float64)(__ccgo_up(bp + 80)))[i-int32(1)] = fw + goto _28 + _28: + ; + i = i - 1 + } + fw = float64(0) + i = jz + for { + if !(i >= int32(2)) { + break + } + fw = fw + (**(**[20]float64)(__ccgo_up(bp + 80)))[i] + goto _29 + _29: + ; + i = i - 1 + } + if ih == 0 { + **(**float64)(__ccgo_up(y)) = (**(**[20]float64)(__ccgo_up(bp + 80)))[0] + **(**float64)(__ccgo_up(y + 1*8)) = (**(**[20]float64)(__ccgo_up(bp + 80)))[int32(1)] + **(**float64)(__ccgo_up(y + 2*8)) = fw + } else { + **(**float64)(__ccgo_up(y)) = -(**(**[20]float64)(__ccgo_up(bp + 80)))[0] + **(**float64)(__ccgo_up(y + 1*8)) = -(**(**[20]float64)(__ccgo_up(bp + 80)))[int32(1)] + **(**float64)(__ccgo_up(y + 2*8)) = -fw + } +_18: + ; + return n & int32(7) +} + +const DBL_EPSILON3 = 2.220446049250313e-16 + +// C documentation +// +// /* +// * invpio2: 53 bits of 2/pi +// * pio2_1: first 25 bits of pi/2 +// * pio2_1t: pi/2 - pio2_1 +// */ + +var _toint1 = Float64FromFloat64(1.5) / Float64FromFloat64(2.220446049250313e-16) +var _pio41 = float64(0.7853981852531433) +var _invpio21 = float64(0.6366197723675814) /* 0x3FE45F30, 0x6DC9C883 */ +var _pio2_11 = float64(1.5707963109016418) /* 0x3FF921FB, 0x50000000 */ +var _pio2_1t1 = float64(1.5893254773528196e-08) /* 0x3E5110b4, 0x611A6263 */ + +func X__rem_pio2f(tls *TLS, x float32, y uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var e0, n, sign int32 + var fn Tdouble_t + var ix Tuint32_t + var _ /* tx at bp+8 */ [1]float64 + var _ /* ty at bp+16 */ [1]float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _ = e0, fn, ix, n, sign + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + ix = *(*Tuint32_t)(unsafe.Pointer(bp)) & uint32(0x7fffffff) + /* 25+53 bit pi is good enough for medium size */ + if ix < uint32(0x4dc90fdb) { /* |x| ~< 2^28*(pi/2), medium size */ + /* Use a specialized rint() to get fn. */ + fn = Tdouble_t(float64(x)*_invpio21) + _toint1 - _toint1 + n = int32(fn) + **(**float64)(__ccgo_up(y)) = float64(x) - Tdouble_t(fn*_pio2_11) - Tdouble_t(fn*_pio2_1t1) + /* Matters with directed rounding. */ + if **(**float64)(__ccgo_up(y)) < -_pio41 { + n = n - 1 + fn = fn - 1 + **(**float64)(__ccgo_up(y)) = float64(x) - Tdouble_t(fn*_pio2_11) - Tdouble_t(fn*_pio2_1t1) + } else { + if **(**float64)(__ccgo_up(y)) > _pio41 { + n = n + 1 + fn = fn + 1 + **(**float64)(__ccgo_up(y)) = float64(x) - Tdouble_t(fn*_pio2_11) - Tdouble_t(fn*_pio2_1t1) + } + } + return n + } + if ix >= uint32(0x7f800000) { /* x is inf or NaN */ + **(**float64)(__ccgo_up(y)) = float64(x - x) + return 0 + } + /* scale x into [2^23, 2^24-1] */ + sign = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(31)) + e0 = Int32FromUint32(ix>>Int32FromInt32(23) - Uint32FromInt32(Int32FromInt32(0x7f)+Int32FromInt32(23))) /* e0 = ilogb(|x|)-23, positive */ + *(*Tuint32_t)(unsafe.Pointer(bp)) = ix - Uint32FromInt32(e0< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* y at bp+0 */ struct { + Fi [0]Tuint64_t + Fd float64 + } + *(*struct { + Fi [0]Tuint64_t + Fd float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Fd float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + return Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(63)) +} + +// C documentation +// +// // FIXME: macro in math.h +func X__signbitf(tls *TLS, x float32) (r int32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* y at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + return Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(31)) +} + +func X__signbitl(tls *TLS, x float64) (r int32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__signbit(tls, x) +} + +var _S1 = -Float64FromFloat64(0.16666666666666632) /* 0xBFC55555, 0x55555549 */ +var _S2 = float64(0.00833333333332249) /* 0x3F811111, 0x1110F8A6 */ +var _S3 = -Float64FromFloat64(0.0001984126982985795) /* 0xBF2A01A0, 0x19C161D5 */ +var _S4 = float64(2.7557313707070068e-06) /* 0x3EC71DE3, 0x57B1FE7D */ +var _S5 = -Float64FromFloat64(2.5050760253406863e-08) /* 0xBE5AE5E6, 0x8A2B9CEB */ +var _S6 = float64(1.58969099521155e-10) /* 0x3DE5D93A, 0x5ACFD57C */ + +func X__sin(tls *TLS, x float64, y float64, iy int32) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v iy=%v, (%v:)", tls, x, y, iy, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v, w, z Tdouble_t + _, _, _, _ = r, v, w, z + z = Tdouble_t(x * x) + w = Tdouble_t(z * z) + r = _S2 + float64(z*(_S3+float64(z*_S4))) + float64(Tdouble_t(z*w)*(_S5+float64(z*_S6))) + v = Tdouble_t(z * x) + if iy == 0 { + return x + float64(v*(_S1+float64(z*r))) + } else { + return x - (Tdouble_t(z*(float64(Float64FromFloat64(0.5)*y)-float64(v*r))) - y - Tdouble_t(v*_S1)) + } + return r1 +} + +// C documentation +// +// /* |sin(x)/x - s(x)| < 2**-37.5 (~[-4.89e-12, 4.824e-12]). */ + +var _S11 = -Float64FromFloat64(0.16666666641626524) /* -0.166666666416265235595 */ +var _S21 = float64(0.008333329385889463) /* 0.0083333293858894631756 */ +var _S31 = -Float64FromFloat64(0.00019839334836096632) /* -0.000198393348360966317347 */ +var _S41 = float64(2.718311493989822e-06) /* 0.0000027183114939898219064 */ + +func X__sindf(tls *TLS, x float64) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, s, w, z Tdouble_t + _, _, _, _ = r, s, w, z + /* Try to optimize for parallel evaluation as in __tandf.c. */ + z = Tdouble_t(x * x) + w = Tdouble_t(z * z) + r = _S31 + float64(z*_S41) + s = Tdouble_t(z * x) + return float32(x + float64(s*(_S11+float64(z*_S21))) + float64(Tdouble_t(s*w)*r)) +} + +var _T = [13]float64{ + 0: float64(0.3333333333333341), + 1: float64(0.13333333333320124), + 2: float64(0.05396825397622605), + 3: float64(0.021869488294859542), + 4: float64(0.0088632398235993), + 5: float64(0.0035920791075913124), + 6: float64(0.0014562094543252903), + 7: float64(0.0005880412408202641), + 8: float64(0.0002464631348184699), + 9: float64(7.817944429395571e-05), + 10: float64(7.140724913826082e-05), + 11: -Float64FromFloat64(1.8558637485527546e-05), + 12: float64(2.590730518636337e-05), +} +var _pio42 = float64(0.7853981633974483) /* 3FE921FB, 54442D18 */ +var _pio4lo = float64(3.061616997868383e-17) /* 3C81A626, 33145C07 */ + +func X__tan(tls *TLS, x float64, y float64, odd int32) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v odd=%v, (%v:)", tls, x, y, odd, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var a, r, s, v, w, z, v1 Tdouble_t + var a0, w0 float64 + var big, sign int32 + var hx Tuint32_t + var v2 Tuint64_t + _, _, _, _, _, _, _, _, _, _, _, _, _ = a, a0, big, hx, r, s, sign, v, w, w0, z, v1, v2 + hx = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + big = BoolInt32(hx&uint32(0x7fffffff) >= uint32(0x3FE59428)) /* |x| >= 0.6744 */ + if big != 0 { + sign = Int32FromUint32(hx >> int32(31)) + if sign != 0 { + x = -x + y = -y + } + x = _pio42 - x + (_pio4lo - y) + y = float64(0) + } + z = Tdouble_t(x * x) + w = Tdouble_t(z * z) + /* + * Break x^5*(T[1]+x^2*T[2]+...) into + * x^5(T[1]+x^4*T[3]+...+x^20*T[11]) + + * x^5(x^2*(T[2]+x^4*T[4]+...+x^22*[T12])) + */ + r = _T[int32(1)] + float64(w*(_T[int32(3)]+float64(w*(_T[int32(5)]+float64(w*(_T[int32(7)]+float64(w*(_T[int32(9)]+float64(w*_T[int32(11)]))))))))) + v = Tdouble_t(z * (_T[int32(2)] + float64(w*(_T[int32(4)]+float64(w*(_T[int32(6)]+float64(w*(_T[int32(8)]+float64(w*(_T[int32(10)]+float64(w*_T[int32(12)]))))))))))) + s = Tdouble_t(z * x) + r = y + float64(z*(Tdouble_t(s*(r+v))+y)) + float64(s*_T[0]) + w = x + r + if big != 0 { + s = float64(int32(1) - int32(2)*odd) + v = s - Tdouble_t(float64(2)*(x+(r-Tdouble_t(w*w)/(w+s)))) + if sign != 0 { + v1 = -v + } else { + v1 = v + } + return v1 + } + if !(odd != 0) { + return w + } + /* -1.0/(x+r) has up to 2ulp error, so compute it accurately */ + w0 = w + v2 = *(*Tuint64_t)(unsafe.Pointer(&w0))>>Int32FromInt32(32)<>Int32FromInt32(32)< %v", r1) }() + } + var r, s, t, u, w, z Tdouble_t + var v1 float64 + _, _, _, _, _, _, _ = r, s, t, u, w, z, v1 + z = Tdouble_t(x * x) + /* + * Split up the polynomial into small independent terms to give + * opportunities for parallel evaluation. The chosen splitting is + * micro-optimized for Athlons (XP, X64). It costs 2 multiplications + * relative to Horner's method on sequential machines. + * + * We add the small terms from lowest degree up for efficiency on + * non-sequential machines (the lowest degree terms tend to be ready + * earlier). Apart from this, we don't care about order of + * operations, and don't need to to care since we have precision to + * spare. However, the chosen splitting is good for accuracy too, + * and would give results as accurate as Horner's method if the + * small terms were added from highest degree down. + */ + r = _T1[int32(4)] + float64(z*_T1[int32(5)]) + t = _T1[int32(2)] + float64(z*_T1[int32(3)]) + w = Tdouble_t(z * z) + s = Tdouble_t(z * x) + u = _T1[0] + float64(z*_T1[int32(1)]) + r = x + float64(s*u) + float64(Tdouble_t(s*w)*(t+Tdouble_t(w*r))) + if odd != 0 { + v1 = -Float64FromFloat64(1) / r + } else { + v1 = r + } + return float32(v1) +} + +var _pio2_hi = float64(1.5707963267948966) /* 0x3FF921FB, 0x54442D18 */ +var _pio2_lo = float64(6.123233995736766e-17) /* 0x3C91A626, 0x33145C07 */ +var _pS0 = float64(0.16666666666666666) /* 0x3FC55555, 0x55555555 */ +var _pS1 = -Float64FromFloat64(0.3255658186224009) /* 0xBFD4D612, 0x03EB6F7D */ +var _pS2 = float64(0.20121253213486293) /* 0x3FC9C155, 0x0E884455 */ +var _pS3 = -Float64FromFloat64(0.04005553450067941) /* 0xBFA48228, 0xB5688F3B */ +var _pS4 = float64(0.0007915349942898145) /* 0x3F49EFE0, 0x7501B288 */ +var _pS5 = float64(3.479331075960212e-05) /* 0x3F023DE1, 0x0DFDF709 */ +var _qS1 = -Float64FromFloat64(2.403394911734414) /* 0xC0033A27, 0x1C8A2D4B */ +var _qS2 = float64(2.0209457602335057) /* 0x40002AE5, 0x9C598AC8 */ +var _qS3 = -Float64FromFloat64(0.6882839716054533) /* 0xBFE6066C, 0x1B8D0159 */ +var _qS4 = float64(0.07703815055590194) /* 0x3FB3B8C5, 0xB12E9282 */ + +func _R(tls *TLS, z float64) (r float64) { + var p, q Tdouble_t + _, _ = p, q + p = Tdouble_t(z * (_pS0 + float64(z*(_pS1+float64(z*(_pS2+float64(z*(_pS3+float64(z*(_pS4+float64(z*_pS5))))))))))) + q = float64(1) + float64(z*(_qS1+float64(z*(_qS2+float64(z*(_qS3+float64(z*_qS4))))))) + return p / q +} + +func Xacos(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + var c, df, s, w, z float64 + var hx, ix, lx Tuint32_t + var v1 Tuint64_t + _, _, _, _, _, _, _, _, _ = c, df, hx, ix, lx, s, w, z, v1 + hx = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + ix = hx & uint32(0x7fffffff) + /* |x| >= 1 or nan */ + if ix >= uint32(0x3ff00000) { + lx = uint32(*(*Tuint64_t)(unsafe.Pointer(&x))) + if ix-uint32(0x3ff00000)|lx == uint32(0) { + /* acos(1)=0, acos(-1)=pi */ + if hx>>int32(31) != 0 { + return float64(Float64FromInt32(2)*_pio2_hi) + Float64FromFloat32(7.52316384526264e-37) + } + return Float64FromInt32(0) + } + return Float64FromInt32(0) / (x - x) + } + /* |x| < 0.5 */ + if ix < uint32(0x3fe00000) { + if ix <= uint32(0x3c600000) { /* |x| < 2**-57 */ + return _pio2_hi + Float64FromFloat32(7.52316384526264e-37) + } + return _pio2_hi - (x - (_pio2_lo - float64(x*_R(tls, float64(x*x))))) + } + /* x < -0.5 */ + if hx>>int32(31) != 0 { + z = float64((float64(1) + x) * float64(0.5)) + s = Xsqrt(tls, z) + w = float64(_R(tls, z)*s) - _pio2_lo + return float64(Float64FromInt32(2) * (_pio2_hi - (s + w))) + } + /* x > 0.5 */ + z = float64((float64(1) - x) * float64(0.5)) + s = Xsqrt(tls, z) + df = s + v1 = *(*Tuint64_t)(unsafe.Pointer(&df))>>Int32FromInt32(32)< %v", r) }() + } + var c, df, s, w, z float32 + var hx, ix, v1 Tuint32_t + _, _, _, _, _, _, _, _ = c, df, hx, ix, s, w, z, v1 + hx = *(*Tuint32_t)(unsafe.Pointer(&x)) + ix = hx & uint32(0x7fffffff) + /* |x| >= 1 or nan */ + if ix >= uint32(0x3f800000) { + if ix == uint32(0x3f800000) { + if hx>>int32(31) != 0 { + return float32(Float32FromInt32(2)*_pio2_hi1) + Float32FromFloat32(7.52316384526264e-37) + } + return Float32FromInt32(0) + } + return Float32FromInt32(0) / (x - x) + } + /* |x| < 0.5 */ + if ix < uint32(0x3f000000) { + if ix <= uint32(0x32800000) { /* |x| < 2**-26 */ + return _pio2_hi1 + Float32FromFloat32(7.52316384526264e-37) + } + return _pio2_hi1 - (x - (_pio2_lo1 - float32(x*_R1(tls, float32(x*x))))) + } + /* x < -0.5 */ + if hx>>int32(31) != 0 { + z = float32((Float32FromInt32(1) + x) * Float32FromFloat32(0.5)) + s = Xsqrtf(tls, z) + w = float32(_R1(tls, z)*s) - _pio2_lo1 + return float32(Float32FromInt32(2) * (_pio2_hi1 - (s + w))) + } + /* x > 0.5 */ + z = float32((Float32FromInt32(1) - x) * Float32FromFloat32(0.5)) + s = Xsqrtf(tls, z) + hx = *(*Tuint32_t)(unsafe.Pointer(&s)) + v1 = hx & uint32(0xfffff000) + df = *(*float32)(unsafe.Pointer(&v1)) + c = (z - float32(df*df)) / (s + df) + w = float32(_R1(tls, z)*s) + c + return float32(Float32FromInt32(2) * (df + w)) +} + +// C documentation +// +// /* acosh(x) = log(x + sqrt(x*x-1)) */ +func Xacosh(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e uint32 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _ = e + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + e = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + /* x < 1 domain error is handled in the called functions */ + if e < Uint32FromInt32(Int32FromInt32(0x3ff)+Int32FromInt32(1)) { + /* |x| < 2, up to 2ulp error in [1,1.125] */ + return Xlog1p(tls, x-Float64FromInt32(1)+Xsqrt(tls, float64((x-Float64FromInt32(1))*(x-Float64FromInt32(1)))+float64(Float64FromInt32(2)*(x-Float64FromInt32(1))))) + } + if e < Uint32FromInt32(Int32FromInt32(0x3ff)+Int32FromInt32(26)) { + /* |x| < 0x1p26 */ + return Xlog(tls, float64(Float64FromInt32(2)*x)-Float64FromInt32(1)/(x+Xsqrt(tls, float64(x*x)-Float64FromInt32(1)))) + } + /* |x| >= 0x1p26 or nan */ + return Xlog(tls, x) + float64(0.6931471805599453) +} + +// C documentation +// +// /* acosh(x) = log(x + sqrt(x*x-1)) */ +func Xacoshf(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var a Tuint32_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _ = a + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + a = *(*Tuint32_t)(unsafe.Pointer(bp)) & uint32(0x7fffffff) + if a < Uint32FromInt32(Int32FromInt32(0x3f800000)+Int32FromInt32(1)<= 0x1p12 or x <= -2 or nan */ + return Xlogf(tls, x) + Float32FromFloat32(0.6931471805599453) +} + +func Xacoshl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xacosh(tls, x) +} + +func Xacosl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xacos(tls, x) +} + +var _pio2_hi2 = float64(1.5707963267948966) /* 0x3FF921FB, 0x54442D18 */ +var _pio2_lo2 = float64(6.123233995736766e-17) /* 0x3C91A626, 0x33145C07 */ +/* coefficients for R(x^2) */ +var _pS02 = float64(0.16666666666666666) /* 0x3FC55555, 0x55555555 */ +var _pS12 = -Float64FromFloat64(0.3255658186224009) /* 0xBFD4D612, 0x03EB6F7D */ +var _pS22 = float64(0.20121253213486293) /* 0x3FC9C155, 0x0E884455 */ +var _pS31 = -Float64FromFloat64(0.04005553450067941) /* 0xBFA48228, 0xB5688F3B */ +var _pS41 = float64(0.0007915349942898145) /* 0x3F49EFE0, 0x7501B288 */ +var _pS51 = float64(3.479331075960212e-05) /* 0x3F023DE1, 0x0DFDF709 */ +var _qS12 = -Float64FromFloat64(2.403394911734414) /* 0xC0033A27, 0x1C8A2D4B */ +var _qS21 = float64(2.0209457602335057) /* 0x40002AE5, 0x9C598AC8 */ +var _qS31 = -Float64FromFloat64(0.6882839716054533) /* 0xBFE6066C, 0x1B8D0159 */ +var _qS41 = float64(0.07703815055590194) /* 0x3FB3B8C5, 0xB12E9282 */ + +func _R2(tls *TLS, z float64) (r float64) { + var p, q Tdouble_t + _, _ = p, q + p = Tdouble_t(z * (_pS02 + float64(z*(_pS12+float64(z*(_pS22+float64(z*(_pS31+float64(z*(_pS41+float64(z*_pS51))))))))))) + q = float64(1) + float64(z*(_qS12+float64(z*(_qS21+float64(z*(_qS31+float64(z*_qS41))))))) + return p / q +} + +func Xasin(tls *TLS, x float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var c, f, r, s, z float64 + var hx, ix, lx Tuint32_t + var v1 Tuint64_t + _, _, _, _, _, _, _, _, _ = c, f, hx, ix, lx, r, s, z, v1 + hx = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + ix = hx & uint32(0x7fffffff) + /* |x| >= 1 or nan */ + if ix >= uint32(0x3ff00000) { + lx = uint32(*(*Tuint64_t)(unsafe.Pointer(&x))) + if ix-uint32(0x3ff00000)|lx == uint32(0) { + /* asin(1) = +-pi/2 with inexact */ + return float64(x*_pio2_hi2) + Float64FromFloat32(7.52316384526264e-37) + } + return Float64FromInt32(0) / (x - x) + } + /* |x| < 0.5 */ + if ix < uint32(0x3fe00000) { + /* if 0x1p-1022 <= |x| < 0x1p-26, avoid raising underflow */ + if ix < uint32(0x3e500000) && ix >= uint32(0x00100000) { + return x + } + return x + float64(x*_R2(tls, float64(x*x))) + } + /* 1 > |x| >= 0.5 */ + z = float64((Float64FromInt32(1) - Xfabs(tls, x)) * float64(0.5)) + s = Xsqrt(tls, z) + r = _R2(tls, z) + if ix >= uint32(0x3fef3333) { /* if |x| > 0.975 */ + x = _pio2_hi2 - (float64(Float64FromInt32(2)*(s+float64(s*r))) - _pio2_lo2) + } else { + /* f+c = sqrt(z) */ + f = s + v1 = *(*Tuint64_t)(unsafe.Pointer(&f))>>Int32FromInt32(32)<>int32(31) != 0 { + return -x + } + return x +} + +var _pio2 = float64(1.5707963267948966) + +/* coefficients for R(x^2) */ +var _pS03 = float32(0.16666586697) +var _pS13 = float32(-Float64FromFloat64(0.042743422091)) +var _pS23 = float32(-Float64FromFloat64(0.008656363003)) +var _qS13 = float32(-Float64FromFloat64(0.7066296339)) + +func _R3(tls *TLS, z float32) (r float32) { + var p, q Tfloat_t + _, _ = p, q + p = Tfloat_t(z * (_pS03 + float32(z*(_pS13+float32(z*_pS23))))) + q = Float32FromFloat32(1) + float32(z*_qS13) + return p / q +} + +func Xasinf(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + var hx, ix Tuint32_t + var s float64 + var z float32 + _, _, _, _ = hx, ix, s, z + hx = *(*Tuint32_t)(unsafe.Pointer(&x)) + ix = hx & uint32(0x7fffffff) + if ix >= uint32(0x3f800000) { /* |x| >= 1 */ + if ix == uint32(0x3f800000) { /* |x| == 1 */ + return float32(float64(float64(x)*_pio2) + Float64FromFloat32(7.52316384526264e-37)) + } /* asin(+-1) = +-pi/2 with inexact */ + return Float32FromInt32(0) / (x - x) /* asin(|x|>1) is NaN */ + } + if ix < uint32(0x3f000000) { /* |x| < 0.5 */ + /* if 0x1p-126 <= |x| < 0x1p-12, avoid raising underflow */ + if ix < uint32(0x39800000) && ix >= uint32(0x00800000) { + return x + } + return x + float32(x*_R3(tls, float32(x*x))) + } + /* 1 > |x| >= 0.5 */ + z = float32((Float32FromInt32(1) - Xfabsf(tls, x)) * Float32FromFloat32(0.5)) + s = Xsqrt(tls, float64(z)) + x = float32(_pio2 - float64(Float64FromInt32(2)*(s+float64(s*float64(_R3(tls, z)))))) + if hx>>int32(31) != 0 { + return -x + } + return x +} + +// C documentation +// +// /* asinh(x) = sign(x)*log(|x|+sqrt(x*x+1)) ~= x - x^3/6 + o(x^5) */ +func Xasinh(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e, s uint32 + var y float32 + var y1, y2, v1 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _ = e, s, y, y1, y2, v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + e = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + s = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(63)) + /* |x| */ + *(*Tuint64_t)(unsafe.Pointer(bp)) &= Uint64FromInt32(-Int32FromInt32(1)) / Uint64FromInt32(2) + x3 = *(*float64)(unsafe.Pointer(bp)) + if e >= Uint32FromInt32(Int32FromInt32(0x3ff)+Int32FromInt32(26)) { + /* |x| >= 0x1p26 or inf or nan */ + x3 = Xlog(tls, x3) + float64(0.6931471805599453) + } else { + if e >= Uint32FromInt32(Int32FromInt32(0x3ff)+Int32FromInt32(1)) { + /* |x| >= 2 */ + x3 = Xlog(tls, float64(Float64FromInt32(2)*x3)+Float64FromInt32(1)/(Xsqrt(tls, float64(x3*x3)+Float64FromInt32(1))+x3)) + } else { + if e >= Uint32FromInt32(Int32FromInt32(0x3ff)-Int32FromInt32(26)) { + /* |x| >= 0x1p-26, up to 1.6ulp error in [0.125,0.5] */ + x3 = Xlog1p(tls, x3+float64(x3*x3)/(Xsqrt(tls, float64(x3*x3)+Float64FromInt32(1))+Float64FromInt32(1))) + } else { + /* |x| < 0x1p-26, raise inexact if x != 0 */ + if uint64(8) == uint64(4) { + y = float32(x3 + Float64FromFloat32(1.329227995784916e+36)) + } else { + if uint64(8) == uint64(8) { + y1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } else { + y2 = float64(x3 + Float64FromFloat32(1.329227995784916e+36)) + } + } + } + } + } + if s != 0 { + v1 = -x3 + } else { + v1 = x3 + } + return v1 +} + +// C documentation +// +// /* asinh(x) = sign(x)*log(|x|+sqrt(x*x+1)) ~= x - x^3/6 + o(x^5) */ +func Xasinhf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var i Tuint32_t + var s uint32 + var y, v1 float32 + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _ = i, s, y, y1, y2, v1 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + i = *(*Tuint32_t)(unsafe.Pointer(bp)) & uint32(0x7fffffff) + s = *(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(31) + /* |x| */ + *(*Tuint32_t)(unsafe.Pointer(bp)) = i + x3 = *(*float32)(unsafe.Pointer(bp)) + if i >= Uint32FromInt32(Int32FromInt32(0x3f800000)+Int32FromInt32(12)<= 0x1p12 or inf or nan */ + x3 = Xlogf(tls, x3) + Float32FromFloat32(0.6931471805599453) + } else { + if i >= Uint32FromInt32(Int32FromInt32(0x3f800000)+Int32FromInt32(1)<= 2 */ + x3 = Xlogf(tls, float32(Float32FromInt32(2)*x3)+Float32FromInt32(1)/(Xsqrtf(tls, float32(x3*x3)+Float32FromInt32(1))+x3)) + } else { + if i >= Uint32FromInt32(Int32FromInt32(0x3f800000)-Int32FromInt32(12)<= 0x1p-12, up to 1.6ulp error in [0.125,0.5] */ + x3 = Xlog1pf(tls, x3+float32(x3*x3)/(Xsqrtf(tls, float32(x3*x3)+Float32FromInt32(1))+Float32FromInt32(1))) + } else { + /* |x| < 0x1p-12, raise inexact if x!=0 */ + if uint64(4) == uint64(4) { + y = x3 + Float32FromFloat32(1.329227995784916e+36) + } else { + if uint64(4) == uint64(8) { + y1 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } else { + y2 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } + } + } + } + } + if s != 0 { + v1 = -x3 + } else { + v1 = x3 + } + return v1 +} + +func Xasinhl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xasinh(tls, x) +} + +func Xasinl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xasin(tls, x) +} + +var _atanhi = [4]float64{ + 0: float64(0.4636476090008061), + 1: float64(0.7853981633974483), + 2: float64(0.982793723247329), + 3: float64(1.5707963267948966), +} + +var _atanlo = [4]float64{ + 0: float64(2.2698777452961687e-17), + 1: float64(3.061616997868383e-17), + 2: float64(1.3903311031230998e-17), + 3: float64(6.123233995736766e-17), +} + +var _aT = [11]float64{ + 0: float64(0.3333333333333293), + 1: -Float64FromFloat64(0.19999999999876483), + 2: float64(0.14285714272503466), + 3: -Float64FromFloat64(0.11111110405462356), + 4: float64(0.09090887133436507), + 5: -Float64FromFloat64(0.0769187620504483), + 6: float64(0.06661073137387531), + 7: -Float64FromFloat64(0.058335701337905735), + 8: float64(0.049768779946159324), + 9: -Float64FromFloat64(0.036531572744216916), + 10: float64(0.016285820115365782), +} + +func Xatan(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var id int32 + var ix, sign Tuint32_t + var s1, s2, w, z, v3 Tdouble_t + var y float32 + var y1, y2 float64 + var v1 uint64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _, _, _, _, _, _, _, _, _, _, _, _ = id, ix, s1, s2, sign, w, y, y1, y2, z, v1, v3 + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x3)) >> int32(32)) + sign = ix >> int32(31) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x44100000) { /* if |x| >= 2^66 */ + *(*float64)(unsafe.Pointer(bp)) = x3 + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 + _2: + if BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var __u1, __u2 Tuint64_t + var ix, iy, lx, ly, m Tuint32_t + var z, v6 float64 + var v1, v3 uint64 + var v5 bool + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _, _, _, _, _, _, _, _, _, _, _, _ = __u1, __u2, ix, iy, lx, ly, m, z, v1, v3, v5, v6 + *(*float64)(unsafe.Pointer(bp)) = x + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + ; + if v5 = BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<> int32(32)) + lx = uint32(__u1) + __u2 = *(*Tuint64_t)(unsafe.Pointer(&y)) + iy = uint32(__u2 >> int32(32)) + ly = uint32(__u2) + if ix-uint32(0x3ff00000)|lx == uint32(0) { /* x = 1.0 */ + return Xatan(tls, y) + } + m = iy>>Int32FromInt32(31)&uint32(1) | ix>>Int32FromInt32(30)&uint32(2) /* 2*sign(x)+sign(y) */ + ix = ix & uint32(0x7fffffff) + iy = iy & uint32(0x7fffffff) + /* when y = 0 */ + if iy|ly == uint32(0) { + switch m { + case uint32(0): + fallthrough + case uint32(1): + return y /* atan(+-0,+anything)=+-0 */ + case uint32(2): + return _pi /* atan(+0,-anything) = pi */ + case uint32(3): + return -_pi /* atan(-0,-anything) =-pi */ + } + } + /* when x = 0 */ + if ix|lx == uint32(0) { + if m&uint32(1) != 0 { + v6 = -_pi / Float64FromInt32(2) + } else { + v6 = _pi / Float64FromInt32(2) + } + return v6 + } + /* when x is INF */ + if ix == uint32(0x7ff00000) { + if iy == uint32(0x7ff00000) { + switch m { + case uint32(0): + return _pi / Float64FromInt32(4) /* atan(+INF,+INF) */ + case uint32(1): + return -_pi / Float64FromInt32(4) /* atan(-INF,+INF) */ + case uint32(2): + return float64(Float64FromInt32(3)*_pi) / Float64FromInt32(4) /* atan(+INF,-INF) */ + case uint32(3): + return float64(float64(-Int32FromInt32(3))*_pi) / Float64FromInt32(4) /* atan(-INF,-INF) */ + } + } else { + switch m { + case uint32(0): + return float64(0) /* atan(+...,+INF) */ + case uint32(1): + return -Float64FromFloat64(0) /* atan(-...,+INF) */ + case uint32(2): + return _pi /* atan(+...,-INF) */ + case uint32(3): + return -_pi /* atan(-...,-INF) */ + } + } + } + /* |y/x| > 0x1p64 */ + if ix+Uint32FromInt32(Int32FromInt32(64)< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ix, iy, m Tuint32_t + var z, v6 float32 + var v1, v3 uint32 + var v5 bool + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _, _, _, _, _, _, _, _ = ix, iy, m, z, v1, v3, v5, v6 + *(*float32)(unsafe.Pointer(bp)) = x + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + ; + if v5 = BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0; !v5 { + *(*float32)(unsafe.Pointer(bp)) = y + v3 = *(*uint32)(unsafe.Pointer(bp)) + goto _4 + _4: + } + if v5 || BoolInt32(v3&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return x + y + } + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + iy = *(*Tuint32_t)(unsafe.Pointer(&y)) + if ix == uint32(0x3f800000) { /* x=1.0 */ + return Xatanf(tls, y) + } + m = iy>>Int32FromInt32(31)&uint32(1) | ix>>Int32FromInt32(30)&uint32(2) /* 2*sign(x)+sign(y) */ + ix = ix & uint32(0x7fffffff) + iy = iy & uint32(0x7fffffff) + /* when y = 0 */ + if iy == uint32(0) { + switch m { + case uint32(0): + fallthrough + case uint32(1): + return y /* atan(+-0,+anything)=+-0 */ + case uint32(2): + return _pi1 /* atan(+0,-anything) = pi */ + case uint32(3): + return -_pi1 /* atan(-0,-anything) =-pi */ + } + } + /* when x = 0 */ + if ix == uint32(0) { + if m&uint32(1) != 0 { + v6 = -_pi1 / Float32FromInt32(2) + } else { + v6 = _pi1 / Float32FromInt32(2) + } + return v6 + } + /* when x is INF */ + if ix == uint32(0x7f800000) { + if iy == uint32(0x7f800000) { + switch m { + case uint32(0): + return _pi1 / Float32FromInt32(4) /* atan(+INF,+INF) */ + case uint32(1): + return -_pi1 / Float32FromInt32(4) /* atan(-INF,+INF) */ + case uint32(2): + return float32(Float32FromInt32(3)*_pi1) / Float32FromInt32(4) /*atan(+INF,-INF)*/ + case uint32(3): + return float32(float32(-Int32FromInt32(3))*_pi1) / Float32FromInt32(4) /*atan(-INF,-INF)*/ + } + } else { + switch m { + case uint32(0): + return Float32FromFloat32(0) /* atan(+...,+INF) */ + case uint32(1): + return -Float32FromFloat32(0) /* atan(-...,+INF) */ + case uint32(2): + return _pi1 /* atan(+...,-INF) */ + case uint32(3): + return -_pi1 /* atan(-...,-INF) */ + } + } + } + /* |y/x| > 0x1p26 */ + if ix+Uint32FromInt32(Int32FromInt32(26)< %v", r) }() + } + return Xatan2(tls, y, x) +} + +var _atanhi1 = [4]float32{ + 0: float32(0.46364760399), + 1: float32(0.78539812565), + 2: float32(0.98279368877), + 3: float32(1.5707962513), +} + +var _atanlo1 = [4]float32{ + 0: float32(5.012158244e-09), + 1: float32(3.7748947079e-08), + 2: float32(3.447321717e-08), + 3: float32(7.5497894159e-08), +} + +var _aT1 = [5]float32{ + 0: float32(0.33333328366), + 1: float32(-Float64FromFloat64(0.19999158382)), + 2: float32(0.14253635705), + 3: float32(-Float64FromFloat64(0.10648017377)), + 4: float32(0.061687607318), +} + +func Xatanf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var id int32 + var ix, sign Tuint32_t + var s1, s2, w, z, v3 Tfloat_t + var y float32 + var y1, y2 float64 + var v1 uint32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _, _, _, _, _, _, _, _, _, _, _, _ = id, ix, s1, s2, sign, w, y, y1, y2, z, v1, v3 + ix = *(*Tuint32_t)(unsafe.Pointer(&x3)) + sign = ix >> int32(31) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x4c800000) { /* if |x| >= 2**26 */ + *(*float32)(unsafe.Pointer(bp)) = x3 + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 + _2: + if BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return x3 + } + z = _atanhi1[int32(3)] + Float32FromFloat32(7.52316384526264e-37) + if sign != 0 { + v3 = -z + } else { + v3 = z + } + return v3 + } + if ix < uint32(0x3ee00000) { /* |x| < 0.4375 */ + if ix < uint32(0x39800000) { /* |x| < 2**-12 */ + if ix < uint32(0x00800000) { + /* raise underflow for subnormal x */ + if uint64(4) == uint64(4) { + y = float32(x3 * x3) + } else { + if uint64(4) == uint64(8) { + y1 = float64(x3 * x3) + } else { + y2 = float64(x3 * x3) + } + } + } + return x3 + } + id = -int32(1) + } else { + x3 = Xfabsf(tls, x3) + if ix < uint32(0x3f980000) { /* |x| < 1.1875 */ + if ix < uint32(0x3f300000) { /* 7/16 <= |x| < 11/16 */ + id = 0 + x3 = (float32(Float32FromFloat32(2)*x3) - Float32FromFloat32(1)) / (Float32FromFloat32(2) + x3) + } else { /* 11/16 <= |x| < 19/16 */ + id = int32(1) + x3 = (x3 - Float32FromFloat32(1)) / (x3 + Float32FromFloat32(1)) + } + } else { + if ix < uint32(0x401c0000) { /* |x| < 2.4375 */ + id = int32(2) + x3 = (x3 - Float32FromFloat32(1.5)) / (Float32FromFloat32(1) + float32(Float32FromFloat32(1.5)*x3)) + } else { /* 2.4375 <= |x| < 2**26 */ + id = int32(3) + x3 = -Float32FromFloat32(1) / x3 + } + } + } + /* end of argument reduction */ + z = Tfloat_t(x3 * x3) + w = Tfloat_t(z * z) + /* break sum from i=0 to 10 aT[i]z**(i+1) into odd and even poly */ + s1 = Tfloat_t(z * (_aT1[0] + float32(w*(_aT1[int32(2)]+float32(w*_aT1[int32(4)]))))) + s2 = Tfloat_t(w * (_aT1[int32(1)] + float32(w*_aT1[int32(3)]))) + if id < 0 { + return x3 - float32(x3*(s1+s2)) + } + z = _atanhi1[id] - (float32(x3*(s1+s2)) - _atanlo1[id] - x3) + if sign != 0 { + v3 = -z + } else { + v3 = z + } + return v3 +} + +// C documentation +// +// /* atanh(x) = log((1+x)/(1-x))/2 = log1p(2x/(1-x))/2 ~= x + x^3/3 + o(x^5) */ +func Xatanh(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e, s uint32 + var y float32 + var y1, y2 float64 + var y3, v1 Tdouble_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _ = e, s, y, y1, y2, y3, v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + e = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + s = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(63)) + /* |x| */ + *(*Tuint64_t)(unsafe.Pointer(bp)) &= Uint64FromInt32(-Int32FromInt32(1)) / Uint64FromInt32(2) + y3 = *(*float64)(unsafe.Pointer(bp)) + if e < Uint32FromInt32(Int32FromInt32(0x3ff)-Int32FromInt32(1)) { + if e < Uint32FromInt32(Int32FromInt32(0x3ff)-Int32FromInt32(32)) { + /* handle underflow */ + if e == uint32(0) { + if uint64(4) == uint64(4) { + y = float32(y3) + } else { + if uint64(4) == uint64(8) { + y1 = float64(float32(y3)) + } else { + y2 = float64(float32(y3)) + } + } + } + } else { + /* |x| < 0.5, up to 1.7ulp error */ + y3 = Tdouble_t(float64(0.5) * Xlog1p(tls, Tdouble_t(Float64FromInt32(2)*y3)+Tdouble_t(Tdouble_t(Float64FromInt32(2)*y3)*y3)/(Float64FromInt32(1)-y3))) + } + } else { + /* avoid overflow */ + y3 = Tdouble_t(float64(0.5) * Xlog1p(tls, float64(Float64FromInt32(2)*(y3/(Float64FromInt32(1)-y3))))) + } + if s != 0 { + v1 = -y3 + } else { + v1 = y3 + } + return v1 +} + +// C documentation +// +// /* atanh(x) = log((1+x)/(1-x))/2 = log1p(2x/(1-x))/2 ~= x + x^3/3 + o(x^5) */ +func Xatanhf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var s uint32 + var y float32 + var y1, y2 float64 + var y3, v1 Tfloat_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _ = s, y, y1, y2, y3, v1 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + s = *(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(31) + /* |x| */ + *(*Tuint32_t)(unsafe.Pointer(bp)) &= uint32(0x7fffffff) + y3 = *(*float32)(unsafe.Pointer(bp)) + if *(*Tuint32_t)(unsafe.Pointer(bp)) < Uint32FromInt32(Int32FromInt32(0x3f800000)-Int32FromInt32(1)< %v", r) }() + } + return Xatanh(tls, x) +} + +func Xatanl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xatan(tls, x) +} + +var _B1 = uint32(715094163) /* B1 = (1023-1023/3-0.03306235651)*2**20 */ +var _B2 = uint32(696219795) /* B2 = (1023-1023/3-54/3-0.03306235651)*2**20 */ + +// C documentation +// +// /* |1/cbrt(x) - p(x)| < 2**-23.5 (~[-7.93e-8, 7.929e-8]). */ + +var _P0 = float64(1.87595182427177) /* 0x3ffe03e6, 0x0f61e692 */ +var _P1 = -Float64FromFloat64(1.8849797954337717) /* 0xbffe28e0, 0x92f02420 */ +var _P2 = float64(1.6214297201053545) /* 0x3ff9f160, 0x4a49d6c2 */ +var _P3 = -Float64FromFloat64(0.758397934778766) /* 0xbfe844cb, 0xbee751d9 */ +var _P4 = float64(0.14599619288661245) /* 0x3fc2b000, 0xd4e4edd7 */ + +func Xcbrt(tls *TLS, x float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var hx Tuint32_t + var r, s, t, w Tdouble_t + var v1 uintptr + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _ = hx, r, s, t, w, v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + hx = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32) & uint64(0x7fffffff)) + if hx >= uint32(0x7ff00000) { /* cbrt(NaN,INF) is itself */ + return x + x + } + /* + * Rough cbrt to 5 bits: + * cbrt(2**e*(1+m) ~= 2**(e/3)*(1+(e%3+m)/3) + * where e is integral and >= 0, m is real and in [0, 1), and "/" and + * "%" are integer division and modulus with rounding towards minus + * infinity. The RHS is always >= the LHS and has a maximum relative + * error of about 1 in 16. Adding a bias of -0.03306235651 to the + * (e%3+m)/3 term reduces the error to about 1 in 32. With the IEEE + * floating point representation, for finite positive normal values, + * ordinary integer divison of the value in bits magically gives + * almost exactly the RHS of the above provided we first subtract the + * exponent bias (1023 for doubles) and later add it back. We do the + * subtraction virtually to keep e >= 0 so that ordinary integer + * division rounds towards minus infinity; this is also efficient. + */ + if hx < uint32(0x00100000) { /* zero or subnormal? */ + *(*float64)(unsafe.Pointer(bp)) = float64(x * float64(1.8014398509481984e+16)) + hx = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32) & uint64(0x7fffffff)) + if hx == uint32(0) { + return x + } /* cbrt(0) is itself */ + hx = hx/uint32(3) + _B2 + } else { + hx = hx/uint32(3) + _B1 + } + v1 = bp + *(*Tuint64_t)(unsafe.Pointer(v1)) = Tuint64_t(*(*Tuint64_t)(unsafe.Pointer(v1)) & (Uint64FromUint64(1) << Int32FromInt32(63))) + *(*Tuint64_t)(unsafe.Pointer(bp)) |= uint64(hx) << int32(32) + t = *(*float64)(unsafe.Pointer(bp)) + /* + * New cbrt to 23 bits: + * cbrt(x) = t*cbrt(x/t**3) ~= t*P(t**3/x) + * where P(r) is a polynomial of degree 4 that approximates 1/cbrt(r) + * to within 2**-23.5 when |r - 1| < 1/10. The rough approximation + * has produced t such than |t/cbrt(x) - 1| ~< 1/32, and cubing this + * gives us bounds for r = t**3/x. + * + * Try to optimize for parallel evaluation as in __tanf.c. + */ + r = Tdouble_t(Tdouble_t(t*t) * (t / x)) + t = Tdouble_t(t * (_P0 + float64(r*(_P1+float64(r*_P2))) + float64(Tdouble_t(Tdouble_t(r*r)*r)*(_P3+float64(r*_P4))))) + /* + * Round t away from zero to 23 bits (sloppily except for ensuring that + * the result is larger in magnitude than cbrt(x) but not much more than + * 2 23-bit ulps larger). With rounding towards zero, the error bound + * would be ~5/6 instead of ~4/6. With a maximum error of 2 23-bit ulps + * in the rounded t, the infinite-precision error in the Newton + * approximation barely affects third digit in the final error + * 0.667; the error in the rounded t can be up to about 3 23-bit ulps + * before the final error is larger than 0.667 ulps. + */ + *(*float64)(unsafe.Pointer(bp)) = t + *(*Tuint64_t)(unsafe.Pointer(bp)) = uint64(*(*Tuint64_t)(unsafe.Pointer(bp))+Uint64FromUint32(0x80000000)) & uint64(0xffffffffc0000000) + t = *(*float64)(unsafe.Pointer(bp)) + /* one step Newton iteration to 53 bits with error < 0.667 ulps */ + s = Tdouble_t(t * t) /* t*t is exact */ + r = x / s /* error <= 0.5 ulps; |r| < |t| */ + w = t + t /* t+t is exact */ + r = (r - t) / (w + r) /* r-t is exact; w+r ~= 3*t */ + t = t + Tdouble_t(t*r) /* error <= 0.5 + 0.5/3 + epsilon */ + return t +} + +var _B11 = uint32(709958130) /* B1 = (127-127.0/3-0.03306235651)*2**23 */ +var _B21 = uint32(642849266) /* B2 = (127-127.0/3-24/3-0.03306235651)*2**23 */ + +func Xcbrtf(tls *TLS, x float32) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var T, r Tdouble_t + var hx Tuint32_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _ = T, hx, r + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + hx = *(*Tuint32_t)(unsafe.Pointer(bp)) & uint32(0x7fffffff) + if hx >= uint32(0x7f800000) { /* cbrt(NaN,INF) is itself */ + return x + x + } + /* rough cbrt to 5 bits */ + if hx < uint32(0x00800000) { /* zero or subnormal? */ + if hx == uint32(0) { + return x + } /* cbrt(+-0) is itself */ + *(*float32)(unsafe.Pointer(bp)) = float32(x * Float32FromFloat32(1.6777216e+07)) + hx = *(*Tuint32_t)(unsafe.Pointer(bp)) & uint32(0x7fffffff) + hx = hx/uint32(3) + _B21 + } else { + hx = hx/uint32(3) + _B11 + } + *(*Tuint32_t)(unsafe.Pointer(bp)) &= uint32(0x80000000) + *(*Tuint32_t)(unsafe.Pointer(bp)) |= hx + /* + * First step Newton iteration (solving t*t-x/t == 0) to 16 bits. In + * double precision so that its terms can be arranged for efficiency + * without causing overflow or underflow. + */ + T = float64(*(*float32)(unsafe.Pointer(bp))) + r = Tdouble_t(Tdouble_t(T*T) * T) + T = Tdouble_t(T*(float64(x)+float64(x)+r)) / (float64(x) + r + r) + /* + * Second step Newton iteration to 47 bits. In double precision for + * efficiency and accuracy. + */ + r = Tdouble_t(Tdouble_t(T*T) * T) + T = Tdouble_t(T*(float64(x)+float64(x)+r)) / (float64(x) + r + r) + /* rounding to 24 bits is perfect in round-to-nearest mode */ + return float32(T) +} + +func Xcbrtl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xcbrt(tls, x) +} + +const DBL_EPSILON5 = 2.220446049250313e-16 + +var _toint2 = Float64FromInt32(1) / Float64FromFloat64(2.220446049250313e-16) + +func Xceil(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e int32 + var y float32 + var y1, y2, v1 float64 + var y3 Tdouble_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _ = e, y, y1, y2, y3, v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + e = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + if e >= Int32FromInt32(0x3ff)+Int32FromInt32(52) || x3 == Float64FromInt32(0) { + return x3 + } + /* y = int(x) - x, where int(x) is an integer neighbor of x */ + if *(*Tuint64_t)(unsafe.Pointer(bp))>>int32(63) != 0 { + y3 = x3 - _toint2 + _toint2 - x3 + } else { + y3 = x3 + _toint2 - _toint2 - x3 + } + /* special case because of non-nearest rounding modes */ + if e <= Int32FromInt32(0x3ff)-Int32FromInt32(1) { + if uint64(8) == uint64(4) { + y = float32(y3) + } else { + if uint64(8) == uint64(8) { + y1 = y3 + } else { + y2 = y3 + } + } + if *(*Tuint64_t)(unsafe.Pointer(bp))>>int32(63) != 0 { + v1 = -Float64FromFloat64(0) + } else { + v1 = Float64FromInt32(1) + } + return v1 + } + if y3 < Float64FromInt32(0) { + return x3 + y3 + Float64FromInt32(1) + } + return x3 + y3 +} + +const DBL_EPSILON6 = 0 + +func Xceilf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e int32 + var m Tuint32_t + var y float32 + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _ = e, m, y, y1, y2 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + e = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp))>>Int32FromInt32(23)&Uint32FromInt32(0xff)) - int32(0x7f) + if e >= int32(23) { + return x3 + } + if e >= 0 { + m = Uint32FromInt32(int32(0x007fffff) >> e) + if *(*Tuint32_t)(unsafe.Pointer(bp))&m == uint32(0) { + return x3 + } + if uint64(4) == uint64(4) { + y = x3 + Float32FromFloat32(1.329227995784916e+36) + } else { + if uint64(4) == uint64(8) { + y1 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } else { + y2 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } + } + if *(*Tuint32_t)(unsafe.Pointer(bp))>>int32(31) == uint32(0) { + *(*Tuint32_t)(unsafe.Pointer(bp)) += m + } + *(*Tuint32_t)(unsafe.Pointer(bp)) &= ^m + } else { + if uint64(4) == uint64(4) { + y = x3 + Float32FromFloat32(1.329227995784916e+36) + } else { + if uint64(4) == uint64(8) { + y1 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } else { + y2 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } + } + if *(*Tuint32_t)(unsafe.Pointer(bp))>>int32(31) != 0 { + *(*float32)(unsafe.Pointer(bp)) = float32(-Float64FromFloat64(0)) + } else { + if *(*Tuint32_t)(unsafe.Pointer(bp))< %v", r) }() + } + return Xceil(tls, x) +} + +func Xcopysign(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uintptr + var _ /* ux at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + var _ /* uy at bp+8 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _ = v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp + 8)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp + 8)) = y + v1 = bp + *(*Tuint64_t)(unsafe.Pointer(v1)) = Tuint64_t(*(*Tuint64_t)(unsafe.Pointer(v1)) & (-Uint64FromUint64(1) / Uint64FromInt32(2))) + v1 = bp + *(*Tuint64_t)(unsafe.Pointer(v1)) = Tuint64_t(*(*Tuint64_t)(unsafe.Pointer(v1)) | *(*Tuint64_t)(unsafe.Pointer(bp + 8))&(Uint64FromUint64(1)< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* ux at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + var _ /* uy at bp+4 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp + 4)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp + 4)) = y + *(*Tuint32_t)(unsafe.Pointer(bp)) &= uint32(0x7fffffff) + *(*Tuint32_t)(unsafe.Pointer(bp)) |= *(*Tuint32_t)(unsafe.Pointer(bp + 4)) & uint32(0x80000000) + return *(*float32)(unsafe.Pointer(bp)) +} + +func Xcopysignl(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xcopysign(tls, x, y) +} + +func Xcos(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ix Tuint32_t + var n uint32 + var y float32 + var y1, y2 float64 + var _ /* y at bp+0 */ [2]float64 + _, _, _, _, _ = ix, n, y, y1, y2 + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x3)) >> int32(32)) + ix = ix & uint32(0x7fffffff) + /* |x| ~< pi/4 */ + if ix <= uint32(0x3fe921fb) { + if ix < uint32(0x3e46a09e) { /* |x| < 2**-27 * sqrt(2) */ + /* raise inexact if x!=0 */ + if uint64(8) == uint64(4) { + y = float32(x3 + Float64FromFloat32(1.329227995784916e+36)) + } else { + if uint64(8) == uint64(8) { + y1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } else { + y2 = float64(x3 + Float64FromFloat32(1.329227995784916e+36)) + } + } + return float64(1) + } + return X__cos(tls, x3, Float64FromInt32(0)) + } + /* cos(Inf or NaN) is NaN */ + if ix >= uint32(0x7ff00000) { + return x3 - x3 + } + /* argument reduction */ + n = Uint32FromInt32(X__rem_pio2(tls, x3, bp)) + switch n & Uint32FromInt32(3) { + case uint32(0): + return X__cos(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)]) + case uint32(1): + return -X__sin(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)], int32(1)) + case uint32(2): + return -X__cos(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)]) + default: + return X__sin(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)], int32(1)) + } + return r +} + +const M_PI_23 = 1.5707963267948966 + +// C documentation +// +// /* Small multiples of pi/2 rounded to double precision. */ + +var _c1pio2 = float64(Float64FromInt32(1) * Float64FromFloat64(1.5707963267948966)) /* 0x3FF921FB, 0x54442D18 */ +var _c2pio2 = float64(Float64FromInt32(2) * Float64FromFloat64(1.5707963267948966)) /* 0x400921FB, 0x54442D18 */ +var _c3pio2 = float64(Float64FromInt32(3) * Float64FromFloat64(1.5707963267948966)) /* 0x4012D97C, 0x7F3321D2 */ +var _c4pio2 = float64(Float64FromInt32(4) * Float64FromFloat64(1.5707963267948966)) /* 0x401921FB, 0x54442D18 */ + +func Xcosf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ix Tuint32_t + var n, sign uint32 + var y float32 + var y1, y2, v1 float64 + var _ /* y at bp+0 */ float64 + _, _, _, _, _, _, _ = ix, n, sign, y, y1, y2, v1 + ix = *(*Tuint32_t)(unsafe.Pointer(&x3)) + sign = ix >> int32(31) + ix = ix & uint32(0x7fffffff) + if ix <= uint32(0x3f490fda) { /* |x| ~<= pi/4 */ + if ix < uint32(0x39800000) { /* |x| < 2**-12 */ + /* raise inexact if x != 0 */ + if uint64(4) == uint64(4) { + y = x3 + Float32FromFloat32(1.329227995784916e+36) + } else { + if uint64(4) == uint64(8) { + y1 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } else { + y2 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } + } + return Float32FromFloat32(1) + } + return X__cosdf(tls, float64(x3)) + } + if ix <= uint32(0x407b53d1) { /* |x| ~<= 5*pi/4 */ + if ix > uint32(0x4016cbe3) { /* |x| ~> 3*pi/4 */ + if sign != 0 { + v1 = float64(x3) + _c2pio2 + } else { + v1 = float64(x3) - _c2pio2 + } + return -X__cosdf(tls, v1) + } else { + if sign != 0 { + return X__sindf(tls, float64(x3)+_c1pio2) + } else { + return X__sindf(tls, _c1pio2-float64(x3)) + } + } + } + if ix <= uint32(0x40e231d5) { /* |x| ~<= 9*pi/4 */ + if ix > uint32(0x40afeddf) { /* |x| ~> 7*pi/4 */ + if sign != 0 { + v1 = float64(x3) + _c4pio2 + } else { + v1 = float64(x3) - _c4pio2 + } + return X__cosdf(tls, v1) + } else { + if sign != 0 { + return X__sindf(tls, float64(-x3)-_c3pio2) + } else { + return X__sindf(tls, float64(x3)-_c3pio2) + } + } + } + /* cos(Inf or NaN) is NaN */ + if ix >= uint32(0x7f800000) { + return x3 - x3 + } + /* general argument reduction needed */ + n = Uint32FromInt32(X__rem_pio2f(tls, x3, bp)) + switch n & Uint32FromInt32(3) { + case uint32(0): + return X__cosdf(tls, **(**float64)(__ccgo_up(bp))) + case uint32(1): + return X__sindf(tls, -**(**float64)(__ccgo_up(bp))) + case uint32(2): + return -X__cosdf(tls, **(**float64)(__ccgo_up(bp))) + default: + return X__sindf(tls, **(**float64)(__ccgo_up(bp))) + } + return r +} + +const M_PI_24 = 0 + +// C documentation +// +// /* cosh(x) = (exp(x) + 1/exp(x))/2 +// * = 1 + 0.5*(exp(x)-1)*(exp(x)-1)/exp(x) +// * = 1 + x*x/2 + o(x^4) +// */ +func Xcosh(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var t, y1, y2 float64 + var w Tuint32_t + var y float32 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _ = t, w, y, y1, y2 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + /* |x| */ + *(*Tuint64_t)(unsafe.Pointer(bp)) &= Uint64FromInt32(-Int32FromInt32(1)) / Uint64FromInt32(2) + x3 = *(*float64)(unsafe.Pointer(bp)) + w = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32)) + /* |x| < log(2) */ + if w < uint32(0x3fe62e42) { + if w < Uint32FromInt32(Int32FromInt32(0x3ff00000)-Int32FromInt32(26)<log(0x1p26) then the 1/t is not needed */ + return float64(float64(0.5) * (t + Float64FromInt32(1)/t)) + } + /* |x| > log(DBL_MAX) or nan */ + /* note: the result is stored to handle overflow */ + t = X__expo2(tls, x3, float64(1)) + return t +} + +func Xcoshf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var t, y float32 + var w Tuint32_t + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _ = t, w, y, y1, y2 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + /* |x| */ + *(*Tuint32_t)(unsafe.Pointer(bp)) &= uint32(0x7fffffff) + x3 = *(*float32)(unsafe.Pointer(bp)) + w = *(*Tuint32_t)(unsafe.Pointer(bp)) + /* |x| < log(2) */ + if w < uint32(0x3f317217) { + if w < Uint32FromInt32(Int32FromInt32(0x3f800000)-Int32FromInt32(12)< log(FLT_MAX) or nan */ + t = X__expo2f(tls, x3, Float32FromFloat32(1)) + return t +} + +func Xcoshl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xcosh(tls, x) +} + +func Xcosl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xcos(tls, x) +} + +var _erx = float64(0.8450629115104675) /* 0x3FEB0AC1, 0x60000000 */ +/* + * Coefficients for approximation to erf on [0,0.84375] + */ +var _efx8 = float64(1.0270333367641007) /* 0x3FF06EBA, 0x8214DB69 */ +var _pp0 = float64(0.12837916709551256) /* 0x3FC06EBA, 0x8214DB68 */ +var _pp1 = -Float64FromFloat64(0.3250421072470015) /* 0xBFD4CD7D, 0x691CB913 */ +var _pp2 = -Float64FromFloat64(0.02848174957559851) /* 0xBF9D2A51, 0xDBD7194F */ +var _pp3 = -Float64FromFloat64(0.005770270296489442) /* 0xBF77A291, 0x236668E4 */ +var _pp4 = -Float64FromFloat64(2.3763016656650163e-05) /* 0xBEF8EAD6, 0x120016AC */ +var _qq1 = float64(0.39791722395915535) /* 0x3FD97779, 0xCDDADC09 */ +var _qq2 = float64(0.0650222499887673) /* 0x3FB0A54C, 0x5536CEBA */ +var _qq3 = float64(0.005081306281875766) /* 0x3F74D022, 0xC4D36B0F */ +var _qq4 = float64(0.00013249473800432164) /* 0x3F215DC9, 0x221C1A10 */ +var _qq5 = -Float64FromFloat64(3.960228278775368e-06) /* 0xBED09C43, 0x42A26120 */ +/* + * Coefficients for approximation to erf in [0.84375,1.25] + */ +var _pa0 = -Float64FromFloat64(0.0023621185607526594) /* 0xBF6359B8, 0xBEF77538 */ +var _pa1 = float64(0.41485611868374833) /* 0x3FDA8D00, 0xAD92B34D */ +var _pa2 = -Float64FromFloat64(0.3722078760357013) /* 0xBFD7D240, 0xFBB8C3F1 */ +var _pa3 = float64(0.31834661990116175) /* 0x3FD45FCA, 0x805120E4 */ +var _pa4 = -Float64FromFloat64(0.11089469428239668) /* 0xBFBC6398, 0x3D3E28EC */ +var _pa5 = float64(0.035478304325618236) /* 0x3FA22A36, 0x599795EB */ +var _pa6 = -Float64FromFloat64(0.002166375594868791) /* 0xBF61BF38, 0x0A96073F */ +var _qa1 = float64(0.10642088040084423) /* 0x3FBB3E66, 0x18EEE323 */ +var _qa2 = float64(0.540397917702171) /* 0x3FE14AF0, 0x92EB6F33 */ +var _qa3 = float64(0.07182865441419627) /* 0x3FB2635C, 0xD99FE9A7 */ +var _qa4 = float64(0.12617121980876164) /* 0x3FC02660, 0xE763351F */ +var _qa5 = float64(0.01363708391202905) /* 0x3F8BEDC2, 0x6B51DD1C */ +var _qa6 = float64(0.011984499846799107) /* 0x3F888B54, 0x5735151D */ +/* + * Coefficients for approximation to erfc in [1.25,1/0.35] + */ +var _ra0 = -Float64FromFloat64(0.009864944034847148) /* 0xBF843412, 0x600D6435 */ +var _ra1 = -Float64FromFloat64(0.6938585727071818) /* 0xBFE63416, 0xE4BA7360 */ +var _ra2 = -Float64FromFloat64(10.558626225323291) /* 0xC0251E04, 0x41B0E726 */ +var _ra3 = -Float64FromFloat64(62.375332450326006) /* 0xC04F300A, 0xE4CBA38D */ +var _ra4 = -Float64FromFloat64(162.39666946257347) /* 0xC0644CB1, 0x84282266 */ +var _ra5 = -Float64FromFloat64(184.60509290671104) /* 0xC067135C, 0xEBCCABB2 */ +var _ra6 = -Float64FromFloat64(81.2874355063066) /* 0xC0545265, 0x57E4D2F2 */ +var _ra7 = -Float64FromFloat64(9.814329344169145) /* 0xC023A0EF, 0xC69AC25C */ +var _sa1 = float64(19.651271667439257) /* 0x4033A6B9, 0xBD707687 */ +var _sa2 = float64(137.65775414351904) /* 0x4061350C, 0x526AE721 */ +var _sa3 = float64(434.56587747522923) /* 0x407B290D, 0xD58A1A71 */ +var _sa4 = float64(645.3872717332679) /* 0x40842B19, 0x21EC2868 */ +var _sa5 = float64(429.00814002756783) /* 0x407AD021, 0x57700314 */ +var _sa6 = float64(108.63500554177944) /* 0x405B28A3, 0xEE48AE2C */ +var _sa7 = float64(6.570249770319282) /* 0x401A47EF, 0x8E484A93 */ +var _sa8 = -Float64FromFloat64(0.0604244152148581) /* 0xBFAEEFF2, 0xEE749A62 */ +/* + * Coefficients for approximation to erfc in [1/.35,28] + */ +var _rb0 = -Float64FromFloat64(0.0098649429247001) /* 0xBF843412, 0x39E86F4A */ +var _rb1 = -Float64FromFloat64(0.799283237680523) /* 0xBFE993BA, 0x70C285DE */ +var _rb2 = -Float64FromFloat64(17.757954917754752) /* 0xC031C209, 0x555F995A */ +var _rb3 = -Float64FromFloat64(160.63638485582192) /* 0xC064145D, 0x43C5ED98 */ +var _rb4 = -Float64FromFloat64(637.5664433683896) /* 0xC083EC88, 0x1375F228 */ +var _rb5 = -Float64FromFloat64(1025.0951316110772) /* 0xC0900461, 0x6A2E5992 */ +var _rb6 = -Float64FromFloat64(483.5191916086514) /* 0xC07E384E, 0x9BDC383F */ +var _sb1 = float64(30.33806074348246) /* 0x403E568B, 0x261D5190 */ +var _sb2 = float64(325.7925129965739) /* 0x40745CAE, 0x221B9F0A */ +var _sb3 = float64(1536.729586084437) /* 0x409802EB, 0x189D5118 */ +var _sb4 = float64(3199.8582195085955) /* 0x40A8FFB7, 0x688C246A */ +var _sb5 = float64(2553.0504064331644) /* 0x40A3F219, 0xCEDF3BE6 */ +var _sb6 = float64(474.52854120695537) /* 0x407DA874, 0xE79FE763 */ +var _sb7 = -Float64FromFloat64(22.44095244658582) /* 0xC03670E2, 0x42712D62 */ + +func _erfc1(tls *TLS, x float64) (r float64) { + var P, Q, s Tdouble_t + _, _, _ = P, Q, s + s = Xfabs(tls, x) - Float64FromInt32(1) + P = _pa0 + float64(s*(_pa1+float64(s*(_pa2+float64(s*(_pa3+float64(s*(_pa4+float64(s*(_pa5+float64(s*_pa6))))))))))) + Q = Float64FromInt32(1) + Tdouble_t(s*(_qa1+float64(s*(_qa2+float64(s*(_qa3+float64(s*(_qa4+float64(s*(_qa5+float64(s*_qa6))))))))))) + return Float64FromInt32(1) - _erx - P/Q +} + +func _erfc2(tls *TLS, ix Tuint32_t, x float64) (r float64) { + var R, S, s Tdouble_t + var z float64 + var v1 Tuint64_t + _, _, _, _, _ = R, S, s, z, v1 + if ix < uint32(0x3ff40000) { /* |x| < 1.25 */ + return _erfc1(tls, x) + } + x = Xfabs(tls, x) + s = Float64FromInt32(1) / float64(x*x) + if ix < uint32(0x4006db6d) { /* |x| < 1/.35 ~ 2.85714 */ + R = _ra0 + float64(s*(_ra1+float64(s*(_ra2+float64(s*(_ra3+float64(s*(_ra4+float64(s*(_ra5+float64(s*(_ra6+float64(s*_ra7))))))))))))) + S = float64(1) + float64(s*(_sa1+float64(s*(_sa2+float64(s*(_sa3+float64(s*(_sa4+float64(s*(_sa5+float64(s*(_sa6+float64(s*(_sa7+float64(s*_sa8))))))))))))))) + } else { /* |x| > 1/.35 */ + R = _rb0 + float64(s*(_rb1+float64(s*(_rb2+float64(s*(_rb3+float64(s*(_rb4+float64(s*(_rb5+float64(s*_rb6))))))))))) + S = float64(1) + float64(s*(_sb1+float64(s*(_sb2+float64(s*(_sb3+float64(s*(_sb4+float64(s*(_sb5+float64(s*(_sb6+float64(s*_sb7))))))))))))) + } + z = x + v1 = *(*Tuint64_t)(unsafe.Pointer(&z))>>Int32FromInt32(32)< %v", r1) }() + } + var ix Tuint32_t + var r, s, y, z, v1 float64 + var sign int32 + _, _, _, _, _, _, _ = ix, r, s, sign, y, z, v1 + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x7ff00000) { + /* erf(nan)=nan, erf(+-inf)=+-1 */ + return float64(int32(1)-int32(2)*sign) + Float64FromInt32(1)/x + } + if ix < uint32(0x3feb0000) { /* |x| < 0.84375 */ + if ix < uint32(0x3e300000) { /* |x| < 2**-28 */ + /* avoid underflow */ + return float64(float64(0.125) * (float64(Float64FromInt32(8)*x) + float64(_efx8*x))) + } + z = float64(x * x) + r = _pp0 + float64(z*(_pp1+float64(z*(_pp2+float64(z*(_pp3+float64(z*_pp4))))))) + s = float64(1) + float64(z*(_qq1+float64(z*(_qq2+float64(z*(_qq3+float64(z*(_qq4+float64(z*_qq5))))))))) + y = r / s + return x + float64(x*y) + } + if ix < uint32(0x40180000) { /* 0.84375 <= |x| < 6 */ + y = Float64FromInt32(1) - _erfc2(tls, ix, x) + } else { + y = Float64FromInt32(1) - Float64FromFloat64(2.2250738585072014e-308) + } + if sign != 0 { + v1 = -y + } else { + v1 = y + } + return v1 +} + +func Xerfc(tls *TLS, x float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var ix Tuint32_t + var r, s, y, z, v1 float64 + var sign int32 + _, _, _, _, _, _, _ = ix, r, s, sign, y, z, v1 + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x7ff00000) { + /* erfc(nan)=nan, erfc(+-inf)=0,2 */ + return float64(int32(2)*sign) + Float64FromInt32(1)/x + } + if ix < uint32(0x3feb0000) { /* |x| < 0.84375 */ + if ix < uint32(0x3c700000) { /* |x| < 2**-56 */ + return float64(1) - x + } + z = float64(x * x) + r = _pp0 + float64(z*(_pp1+float64(z*(_pp2+float64(z*(_pp3+float64(z*_pp4))))))) + s = float64(1) + float64(z*(_qq1+float64(z*(_qq2+float64(z*(_qq3+float64(z*(_qq4+float64(z*_qq5))))))))) + y = r / s + if sign != 0 || ix < uint32(0x3fd00000) { /* x < 1/4 */ + return float64(1) - (x + float64(x*y)) + } + return float64(0.5) - (x - float64(0.5) + float64(x*y)) + } + if ix < uint32(0x403c0000) { /* 0.84375 <= |x| < 28 */ + if sign != 0 { + v1 = Float64FromInt32(2) - _erfc2(tls, ix, x) + } else { + v1 = _erfc2(tls, ix, x) + } + return v1 + } + if sign != 0 { + v1 = Float64FromInt32(2) - Float64FromFloat64(2.2250738585072014e-308) + } else { + v1 = float64(Float64FromFloat64(2.2250738585072014e-308) * Float64FromFloat64(2.2250738585072014e-308)) + } + return v1 +} + +var _erx1 = float32(0.84506291151) /* 0x3f58560b */ +/* + * Coefficients for approximation to erf on [0,0.84375] + */ +var _efx81 = float32(1.027033329) /* 0x3f8375d4 */ +var _pp01 = float32(0.12837916613) /* 0x3e0375d4 */ +var _pp11 = float32(-Float64FromFloat64(0.32504209876)) /* 0xbea66beb */ +var _pp21 = float32(-Float64FromFloat64(0.028481749818)) /* 0xbce9528f */ +var _pp31 = float32(-Float64FromFloat64(0.005770270247)) /* 0xbbbd1489 */ +var _pp41 = float32(-Float64FromFloat64(2.3763017452e-05)) /* 0xb7c756b1 */ +var _qq11 = float32(0.39791721106) /* 0x3ecbbbce */ +var _qq21 = float32(0.0650222525) /* 0x3d852a63 */ +var _qq31 = float32(0.0050813062117) /* 0x3ba68116 */ +var _qq41 = float32(0.00013249473704) /* 0x390aee49 */ +var _qq51 = float32(-Float64FromFloat64(3.9602282413e-06)) /* 0xb684e21a */ +/* + * Coefficients for approximation to erf in [0.84375,1.25] + */ +var _pa01 = float32(-Float64FromFloat64(0.0023621185683)) /* 0xbb1acdc6 */ +var _pa11 = float32(0.41485610604) /* 0x3ed46805 */ +var _pa21 = float32(-Float64FromFloat64(0.37220788002)) /* 0xbebe9208 */ +var _pa31 = float32(0.31834661961) /* 0x3ea2fe54 */ +var _pa41 = float32(-Float64FromFloat64(0.11089469492)) /* 0xbde31cc2 */ +var _pa51 = float32(0.035478305072) /* 0x3d1151b3 */ +var _pa61 = float32(-Float64FromFloat64(0.0021663755178)) /* 0xbb0df9c0 */ +var _qa11 = float32(0.10642088205) /* 0x3dd9f331 */ +var _qa21 = float32(0.54039794207) /* 0x3f0a5785 */ +var _qa31 = float32(0.071828655899) /* 0x3d931ae7 */ +var _qa41 = float32(0.12617121637) /* 0x3e013307 */ +var _qa51 = float32(0.013637083583) /* 0x3c5f6e13 */ +var _qa61 = float32(0.011984500103) /* 0x3c445aa3 */ +/* + * Coefficients for approximation to erfc in [1.25,1/0.35] + */ +var _ra01 = float32(-Float64FromFloat64(0.0098649440333)) /* 0xbc21a093 */ +var _ra11 = float32(-Float64FromFloat64(0.6938585639)) /* 0xbf31a0b7 */ +var _ra21 = float32(-Float64FromFloat64(10.558626175)) /* 0xc128f022 */ +var _ra31 = float32(-Float64FromFloat64(62.375331879)) /* 0xc2798057 */ +var _ra41 = float32(-Float64FromFloat64(162.39666748)) /* 0xc322658c */ +var _ra51 = float32(-Float64FromFloat64(184.60508728)) /* 0xc3389ae7 */ +var _ra61 = float32(-Float64FromFloat64(81.287437439)) /* 0xc2a2932b */ +var _ra71 = float32(-Float64FromFloat64(9.8143291473)) /* 0xc11d077e */ +var _sa11 = float32(19.65127182) /* 0x419d35ce */ +var _sa21 = float32(137.65776062) /* 0x4309a863 */ +var _sa31 = float32(434.56588745) /* 0x43d9486f */ +var _sa41 = float32(645.38726807) /* 0x442158c9 */ +var _sa51 = float32(429.00814819) /* 0x43d6810b */ +var _sa61 = float32(108.63500214) /* 0x42d9451f */ +var _sa71 = float32(6.5702495575) /* 0x40d23f7c */ +var _sa81 = float32(-Float64FromFloat64(0.060424413532)) /* 0xbd777f97 */ +/* + * Coefficients for approximation to erfc in [1/.35,28] + */ +var _rb01 = float32(-Float64FromFloat64(0.009864943102)) /* 0xbc21a092 */ +var _rb11 = float32(-Float64FromFloat64(0.79928326607)) /* 0xbf4c9dd4 */ +var _rb21 = float32(-Float64FromFloat64(17.757955551)) /* 0xc18e104b */ +var _rb31 = float32(-Float64FromFloat64(160.63638306)) /* 0xc320a2ea */ +var _rb41 = float32(-Float64FromFloat64(637.56646729)) /* 0xc41f6441 */ +var _rb51 = float32(-Float64FromFloat64(1025.0950928)) /* 0xc480230b */ +var _rb61 = float32(-Float64FromFloat64(483.51919556)) /* 0xc3f1c275 */ +var _sb11 = float32(30.338060379) /* 0x41f2b459 */ +var _sb21 = float32(325.79251099) /* 0x43a2e571 */ +var _sb31 = float32(1536.7296143) /* 0x44c01759 */ +var _sb41 = float32(3199.8581543) /* 0x4547fdbb */ +var _sb51 = float32(2553.050293) /* 0x451f90ce */ +var _sb61 = float32(474.52853394) /* 0x43ed43a7 */ +var _sb71 = float32(-Float64FromFloat64(22.440952301)) /* 0xc1b38712 */ + +func _erfc11(tls *TLS, x float32) (r float32) { + var P, Q, s Tfloat_t + _, _, _ = P, Q, s + s = Xfabsf(tls, x) - Float32FromInt32(1) + P = _pa01 + float32(s*(_pa11+float32(s*(_pa21+float32(s*(_pa31+float32(s*(_pa41+float32(s*(_pa51+float32(s*_pa61))))))))))) + Q = Float32FromInt32(1) + Tfloat_t(s*(_qa11+float32(s*(_qa21+float32(s*(_qa31+float32(s*(_qa41+float32(s*(_qa51+float32(s*_qa61))))))))))) + return Float32FromInt32(1) - _erx1 - P/Q +} + +func _erfc21(tls *TLS, ix Tuint32_t, x float32) (r float32) { + var R, S, s Tfloat_t + var z float32 + var v1 Tuint32_t + _, _, _, _, _ = R, S, s, z, v1 + if ix < uint32(0x3fa00000) { /* |x| < 1.25 */ + return _erfc11(tls, x) + } + x = Xfabsf(tls, x) + s = Float32FromInt32(1) / float32(x*x) + if ix < uint32(0x4036db6d) { /* |x| < 1/0.35 */ + R = _ra01 + float32(s*(_ra11+float32(s*(_ra21+float32(s*(_ra31+float32(s*(_ra41+float32(s*(_ra51+float32(s*(_ra61+float32(s*_ra71))))))))))))) + S = Float32FromFloat32(1) + float32(s*(_sa11+float32(s*(_sa21+float32(s*(_sa31+float32(s*(_sa41+float32(s*(_sa51+float32(s*(_sa61+float32(s*(_sa71+float32(s*_sa81))))))))))))))) + } else { /* |x| >= 1/0.35 */ + R = _rb01 + float32(s*(_rb11+float32(s*(_rb21+float32(s*(_rb31+float32(s*(_rb41+float32(s*(_rb51+float32(s*_rb61))))))))))) + S = Float32FromFloat32(1) + float32(s*(_sb11+float32(s*(_sb21+float32(s*(_sb31+float32(s*(_sb41+float32(s*(_sb51+float32(s*(_sb61+float32(s*_sb71))))))))))))) + } + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + v1 = ix & uint32(0xffffe000) + z = *(*float32)(unsafe.Pointer(&v1)) + return float32(Xexpf(tls, float32(-z*z)-Float32FromFloat32(0.5625))*Xexpf(tls, float32((z-x)*(z+x))+R/S)) / x +} + +func Xerff(tls *TLS, x float32) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var ix Tuint32_t + var r, s, y, z, v1 float32 + var sign int32 + _, _, _, _, _, _, _ = ix, r, s, sign, y, z, v1 + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x7f800000) { + /* erf(nan)=nan, erf(+-inf)=+-1 */ + return float32(int32(1)-int32(2)*sign) + Float32FromInt32(1)/x + } + if ix < uint32(0x3f580000) { /* |x| < 0.84375 */ + if ix < uint32(0x31800000) { /* |x| < 2**-28 */ + /*avoid underflow */ + return float32(Float32FromFloat32(0.125) * (float32(Float32FromInt32(8)*x) + float32(_efx81*x))) + } + z = float32(x * x) + r = _pp01 + float32(z*(_pp11+float32(z*(_pp21+float32(z*(_pp31+float32(z*_pp41))))))) + s = Float32FromInt32(1) + float32(z*(_qq11+float32(z*(_qq21+float32(z*(_qq31+float32(z*(_qq41+float32(z*_qq51))))))))) + y = r / s + return x + float32(x*y) + } + if ix < uint32(0x40c00000) { /* |x| < 6 */ + y = Float32FromInt32(1) - _erfc21(tls, ix, x) + } else { + y = Float32FromInt32(1) - Float32FromFloat32(7.52316384526264e-37) + } + if sign != 0 { + v1 = -y + } else { + v1 = y + } + return v1 +} + +func Xerfcf(tls *TLS, x float32) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var ix Tuint32_t + var r, s, y, z, v1 float32 + var sign int32 + _, _, _, _, _, _, _ = ix, r, s, sign, y, z, v1 + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x7f800000) { + /* erfc(nan)=nan, erfc(+-inf)=0,2 */ + return float32(int32(2)*sign) + Float32FromInt32(1)/x + } + if ix < uint32(0x3f580000) { /* |x| < 0.84375 */ + if ix < uint32(0x23800000) { /* |x| < 2**-56 */ + return Float32FromFloat32(1) - x + } + z = float32(x * x) + r = _pp01 + float32(z*(_pp11+float32(z*(_pp21+float32(z*(_pp31+float32(z*_pp41))))))) + s = Float32FromFloat32(1) + float32(z*(_qq11+float32(z*(_qq21+float32(z*(_qq31+float32(z*(_qq41+float32(z*_qq51))))))))) + y = r / s + if sign != 0 || ix < uint32(0x3e800000) { /* x < 1/4 */ + return Float32FromFloat32(1) - (x + float32(x*y)) + } + return Float32FromFloat32(0.5) - (x - Float32FromFloat32(0.5) + float32(x*y)) + } + if ix < uint32(0x41e00000) { /* |x| < 28 */ + if sign != 0 { + v1 = Float32FromInt32(2) - _erfc21(tls, ix, x) + } else { + v1 = _erfc21(tls, ix, x) + } + return v1 + } + if sign != 0 { + v1 = Float32FromInt32(2) - Float32FromFloat32(7.52316384526264e-37) + } else { + v1 = float32(Float32FromFloat32(7.52316384526264e-37) * Float32FromFloat32(7.52316384526264e-37)) + } + return v1 +} + +func Xerfl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xerf(tls, x) +} + +func Xerfcl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xerfc(tls, x) +} + +const EXP2_POLY_ORDER = 5 +const EXP_POLY_ORDER = 5 +const EXP_TABLE_BITS = 7 +const EXP_USE_TOINT_NARROW = 0 +const N = 128 + +// C documentation +// +// /* Handle cases that may overflow or underflow when computing the result that +// is scale*(1+TMP) without intermediate rounding. The bit representation of +// scale is in SBITS, however it has a computed exponent that may have +// overflown into the sign bit so that needs to be adjusted before using it as +// a double. (int32_t)KI is the k used in the argument reduction and exponent +// adjustment of scale, positive k here means the result may overflow and +// negative k means the result may underflow. */ +func _specialcase(tls *TLS, tmp Tdouble_t, sbits Tuint64_t, ki Tuint64_t) (r float64) { + var hi, lo, scale, y3 Tdouble_t + var y, y1, y2, v1 float64 + _, _, _, _, _, _, _, _ = hi, lo, scale, y, y1, y2, y3, v1 + if ki&uint64(0x80000000) == uint64(0) { + /* k > 0, the exponent of scale might have overflowed by <= 460. */ + sbits = uint64(sbits - Uint64FromUint64(1009)<> int32(52)) +} + +func Xexp(tls *TLS, x1 float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x1=%v, (%v:)", tls, x1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var abstop Tuint32_t + var idx, ki, sbits, top, v5 Tuint64_t + var kd, r, r2, scale, tail, tmp, z Tdouble_t + var y, v1 float64 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = abstop, idx, kd, ki, r, r2, sbits, scale, tail, tmp, top, y, z, v1, v5 + abstop = _top12(tls, x1) & uint32(0x7ff) + if abstop-_top12(tls, float64(5.551115123125783e-17)) >= _top12(tls, float64(512))-_top12(tls, float64(5.551115123125783e-17)) { + if abstop-_top12(tls, float64(5.551115123125783e-17)) >= uint32(0x80000000) { + /* Avoid spurious underflow for tiny x. */ + /* Note: 0 is common input. */ + return float64(1) + x1 + } + if abstop >= _top12(tls, float64(1024)) { + v1 = float64(-X__builtin_inff(tls)) + if *(*Tuint64_t)(unsafe.Pointer(&x1)) == *(*Tuint64_t)(unsafe.Pointer(&v1)) { + return float64(0) + } + if abstop >= _top12(tls, float64(X__builtin_inff(tls))) { + return float64(1) + x1 + } + if *(*Tuint64_t)(unsafe.Pointer(&x1))>>int32(63) != 0 { + return X__math_uflow(tls, uint32(0)) + } else { + return X__math_oflow(tls, uint32(0)) + } + } + /* Large x is special cased below. */ + abstop = uint32(0) + } + /* exp(x) = 2^(k/N) * exp(r), with exp(r) in [2^(-1/2N),2^(1/2N)]. */ + /* x = ln2/N*k + r, with int k and r in [-ln2/2N, ln2/2N]. */ + z = Tdouble_t(X__exp_data.Finvln2N * x1) + /* z - kd is in [-1, 1] in non-nearest rounding modes. */ + y = z + X__exp_data.Fshift + v1 = y + goto _3 +_3: + kd = v1 + v1 = kd + ki = *(*Tuint64_t)(unsafe.Pointer(&v1)) + kd = kd - X__exp_data.Fshift + r = x1 + float64(kd*X__exp_data.Fnegln2hiN) + float64(kd*X__exp_data.Fnegln2loN) + /* 2^(k/N) ~= scale * (1 + tail). */ + idx = uint64(2) * (ki % Uint64FromInt32(Int32FromInt32(1)< 2^-200 and scale > 2^-739, so there + is no spurious underflow here even without fma. */ + y = scale + Tdouble_t(scale*tmp) + v1 = y + goto _7 +_7: + return v1 +} + +const HUGE = 0 + +func Xexp10(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var y float64 + var _ /* n at bp+0 */ float64 + var _ /* u at bp+8 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _ = y + y = Xmodf(tls, x, bp) + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp + 8)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp + 8)) = **(**float64)(__ccgo_up(bp)) + /* fabs(n) < 16 without raising invalid on nan */ + if *(*Tuint64_t)(unsafe.Pointer(bp + 8))>>int32(52)&uint64(0x7ff) < Uint64FromInt32(Int32FromInt32(0x3ff)+Int32FromInt32(4)) { + if !(y != 0) { + return _p10[int32(**(**float64)(__ccgo_up(bp)))+int32(15)] + } + y = Xexp2(tls, float64(float64(3.321928094887362)*y)) + return float64(y * _p10[int32(**(**float64)(__ccgo_up(bp)))+int32(15)]) + } + return Xpow(tls, float64(10), x) +} + +var _p10 = [31]float64{ + 0: float64(1e-15), + 1: float64(1e-14), + 2: float64(1e-13), + 3: float64(1e-12), + 4: float64(1e-11), + 5: float64(1e-10), + 6: float64(1e-09), + 7: float64(1e-08), + 8: float64(1e-07), + 9: float64(1e-06), + 10: float64(1e-05), + 11: float64(0.0001), + 12: float64(0.001), + 13: float64(0.01), + 14: float64(0.1), + 15: Float64FromInt32(1), + 16: float64(10), + 17: float64(100), + 18: float64(1000), + 19: float64(10000), + 20: float64(100000), + 21: float64(1e+06), + 22: float64(1e+07), + 23: float64(1e+08), + 24: float64(1e+09), + 25: float64(1e+10), + 26: float64(1e+11), + 27: float64(1e+12), + 28: float64(1e+13), + 29: float64(1e+14), + 30: float64(1e+15), +} + +func Xpow10(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xexp10(tls, x) +} + +func Xexp10f(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var y float32 + var _ /* n at bp+0 */ float32 + var _ /* u at bp+4 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _ = y + y = Xmodff(tls, x, bp) + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp + 4)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp + 4)) = **(**float32)(__ccgo_up(bp)) + /* fabsf(n) < 8 without raising invalid on nan */ + if *(*Tuint32_t)(unsafe.Pointer(bp + 4))>>int32(23)&uint32(0xff) < Uint32FromInt32(Int32FromInt32(0x7f)+Int32FromInt32(3)) { + if !(y != 0) { + return _p101[int32(**(**float32)(__ccgo_up(bp)))+int32(7)] + } + y = Xexp2f(tls, float32(Float32FromFloat32(3.321928094887362)*y)) + return float32(y * _p101[int32(**(**float32)(__ccgo_up(bp)))+int32(7)]) + } + return float32(Xexp2(tls, float64(float64(3.321928094887362)*float64(x)))) +} + +var _p101 = [15]float32{ + 0: Float32FromFloat32(1e-07), + 1: Float32FromFloat32(1e-06), + 2: Float32FromFloat32(1e-05), + 3: Float32FromFloat32(0.0001), + 4: Float32FromFloat32(0.001), + 5: Float32FromFloat32(0.01), + 6: Float32FromFloat32(0.1), + 7: Float32FromInt32(1), + 8: float32(10), + 9: float32(100), + 10: float32(1000), + 11: float32(10000), + 12: float32(100000), + 13: float32(1e+06), + 14: float32(1e+07), +} + +func Xpow10f(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xexp10f(tls, x) +} + +func Xexp10l(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xexp10(tls, x) +} + +func Xpow10l(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xexp10l(tls, x) +} + +// C documentation +// +// /* Handle cases that may overflow or underflow when computing the result that +// is scale*(1+TMP) without intermediate rounding. The bit representation of +// scale is in SBITS, however it has a computed exponent that may have +// overflown into the sign bit so that needs to be adjusted before using it as +// a double. (int32_t)KI is the k used in the argument reduction and exponent +// adjustment of scale, positive k here means the result may overflow and +// negative k means the result may underflow. */ +func _specialcase1(tls *TLS, tmp Tdouble_t, sbits Tuint64_t, ki Tuint64_t) (r float64) { + var hi, lo, scale, y3 Tdouble_t + var y, y1, y2, v1 float64 + _, _, _, _, _, _, _, _ = hi, lo, scale, y, y1, y2, y3, v1 + if ki&uint64(0x80000000) == uint64(0) { + /* k > 0, the exponent of scale might have overflowed by 1. */ + sbits = uint64(sbits - Uint64FromUint64(1)<> int32(52)) +} + +func Xexp2(tls *TLS, x1 float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x1=%v, (%v:)", tls, x1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var abstop Tuint32_t + var idx, ki, sbits, top, v7 Tuint64_t + var kd, r, r2, scale, tail, tmp Tdouble_t + var y, v1 float64 + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = abstop, idx, kd, ki, r, r2, sbits, scale, tail, tmp, top, y, v1, v7 + abstop = _top121(tls, x1) & uint32(0x7ff) + if abstop-_top121(tls, float64(5.551115123125783e-17)) >= _top121(tls, float64(512))-_top121(tls, float64(5.551115123125783e-17)) { + if abstop-_top121(tls, float64(5.551115123125783e-17)) >= uint32(0x80000000) { + /* Avoid spurious underflow for tiny x. */ + /* Note: 0 is common input. */ + return float64(1) + x1 + } + if abstop >= _top121(tls, float64(1024)) { + v1 = float64(-X__builtin_inff(tls)) + if *(*Tuint64_t)(unsafe.Pointer(&x1)) == *(*Tuint64_t)(unsafe.Pointer(&v1)) { + return float64(0) + } + if abstop >= _top121(tls, float64(X__builtin_inff(tls))) { + return float64(1) + x1 + } + if !(*(*Tuint64_t)(unsafe.Pointer(&x1))>>Int32FromInt32(63) != 0) { + return X__math_oflow(tls, uint32(0)) + } else { + v1 = -Float64FromFloat64(1075) + if *(*Tuint64_t)(unsafe.Pointer(&x1)) >= *(*Tuint64_t)(unsafe.Pointer(&v1)) { + return X__math_uflow(tls, uint32(0)) + } + } + } + v1 = float64(928) + if uint64(2)**(*Tuint64_t)(unsafe.Pointer(&x1)) > uint64(2)**(*Tuint64_t)(unsafe.Pointer(&v1)) { + /* Large x is special cased below. */ + abstop = uint32(0) + } + } + /* exp2(x) = 2^(k/N) * 2^r, with 2^r in [2^(-1/2N),2^(1/2N)]. */ + /* x = k/N + r, with int k and r in [-1/2N, 1/2N]. */ + y = x1 + X__exp_data.Fexp2_shift + v1 = y + goto _5 +_5: + kd = v1 + v1 = kd + ki = *(*Tuint64_t)(unsafe.Pointer(&v1)) /* k. */ + kd = kd - X__exp_data.Fexp2_shift /* k/N for int k. */ + r = x1 - kd + /* 2^(k/N) ~= scale * (1 + tail). */ + idx = uint64(2) * (ki % Uint64FromInt32(Int32FromInt32(1)< 2^-65 and scale > 2^-928, so there + is no spurious underflow here even without fma. */ + y = scale + Tdouble_t(scale*tmp) + v1 = y + goto _9 +_9: + return v1 +} + +const EXP2F_POLY_ORDER = 3 +const EXP2F_TABLE_BITS = 5 +const N1 = 32 + +/* +EXP2F_TABLE_BITS = 5 +EXP2F_POLY_ORDER = 3 + +ULP error: 0.502 (nearest rounding.) +Relative error: 1.69 * 2^-34 in [-1/64, 1/64] (before rounding.) +Wrong count: 168353 (all nearest rounding wrong results with fma.) +Non-nearest ULP error: 1 (rounded ULP error) +*/ + +func _top122(tls *TLS, x float32) (r Tuint32_t) { + return *(*Tuint32_t)(unsafe.Pointer(&x)) >> int32(20) +} + +func Xexp2f(tls *TLS, x2 float32) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x2=%v, (%v:)", tls, x2, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var abstop Tuint32_t + var kd, r, r2, s, xd, y2, z Tdouble_t + var ki, t Tuint64_t + var y, v1 float32 + var y1, v2 float64 + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = abstop, kd, ki, r, r2, s, t, xd, y, y1, y2, z, v1, v2 + xd = float64(x2) + abstop = _top122(tls, x2) & uint32(0x7ff) + if abstop >= _top122(tls, Float32FromFloat32(128)) { + /* |x| >= 128 or x is nan. */ + v1 = -X__builtin_inff(tls) + if *(*Tuint32_t)(unsafe.Pointer(&x2)) == *(*Tuint32_t)(unsafe.Pointer(&v1)) { + return Float32FromFloat32(0) + } + if abstop >= _top122(tls, X__builtin_inff(tls)) { + return x2 + x2 + } + if x2 > Float32FromFloat32(0) { + return X__math_oflowf(tls, uint32(0)) + } + if x2 <= -Float32FromFloat32(150) { + return X__math_uflowf(tls, uint32(0)) + } + } + /* x = k/N + r with r in [-1/(2N), 1/(2N)] and int k. */ + y1 = xd + X__exp2f_data.Fshift_scaled + v2 = y1 + goto _3 +_3: + kd = v2 + v2 = kd + ki = *(*Tuint64_t)(unsafe.Pointer(&v2)) + kd = kd - X__exp2f_data.Fshift_scaled /* k/N for int k. */ + r = xd - kd + /* exp2(x) = 2^(k/N) * 2^r ~= s * (C0*r^3 + C1*r^2 + C2*r + 1) */ + t = **(**Tuint64_t)(__ccgo_up(uintptr(unsafe.Pointer(&X__exp2f_data)) + uintptr(ki%Uint64FromInt32(Int32FromInt32(1)< %v", r) }() + } + return Xexp2(tls, x) +} + +const N2 = 128 + +type Texp_data = struct { + Finvln2N float64 + Fshift float64 + Fnegln2hiN float64 + Fnegln2loN float64 + Fpoly [4]float64 + Fexp2_shift float64 + Fexp2_poly [5]float64 + Ftab [256]Tuint64_t +} + +const N3 = 32 + +/* +EXP2F_TABLE_BITS = 5 +EXP2F_POLY_ORDER = 3 + +ULP error: 0.502 (nearest rounding.) +Relative error: 1.69 * 2^-34 in [-ln2/64, ln2/64] (before rounding.) +Wrong count: 170635 (all nearest rounding wrong results with fma.) +Non-nearest ULP error: 1 (rounded ULP error) +*/ + +func _top123(tls *TLS, x float32) (r Tuint32_t) { + return *(*Tuint32_t)(unsafe.Pointer(&x)) >> int32(20) +} + +func Xexpf(tls *TLS, x2 float32) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x2=%v, (%v:)", tls, x2, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var abstop Tuint32_t + var kd, r, r2, s, xd, y2, z Tdouble_t + var ki, t Tuint64_t + var y, v1 float32 + var y1, v2 float64 + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = abstop, kd, ki, r, r2, s, t, xd, y, y1, y2, z, v1, v2 + xd = float64(x2) + abstop = _top123(tls, x2) & uint32(0x7ff) + if abstop >= _top123(tls, Float32FromFloat32(88)) { + /* |x| >= 88 or x is nan. */ + v1 = -X__builtin_inff(tls) + if *(*Tuint32_t)(unsafe.Pointer(&x2)) == *(*Tuint32_t)(unsafe.Pointer(&v1)) { + return Float32FromFloat32(0) + } + if abstop >= _top123(tls, X__builtin_inff(tls)) { + return x2 + x2 + } + if x2 > Float32FromFloat32(88.72283172607422) { /* x > log(0x1p128) ~= 88.72 */ + return X__math_oflowf(tls, uint32(0)) + } + if x2 < -Float32FromFloat32(103.97207641601562) { /* x < log(0x1p-150) ~= -103.97 */ + return X__math_uflowf(tls, uint32(0)) + } + } + /* x*N/Ln2 = k + r with r in [-1/2, 1/2] and int k. */ + z = Tdouble_t(X__exp2f_data.Finvln2_scaled * xd) + /* Round and convert z to int, the result is in [-150*N, 128*N] and + ideally ties-to-even rule is used, otherwise the magnitude of r + can be bigger which gives larger approximation error. */ + y1 = z + X__exp2f_data.Fshift + v2 = y1 + goto _3 +_3: + kd = v2 + v2 = kd + ki = *(*Tuint64_t)(unsafe.Pointer(&v2)) + kd = kd - X__exp2f_data.Fshift + r = z - kd + /* exp(x) = 2^(k/N) * 2^(r/N) ~= s * (C0*r^3 + C1*r^2 + C2*r + 1) */ + t = **(**Tuint64_t)(__ccgo_up(uintptr(unsafe.Pointer(&X__exp2f_data)) + uintptr(ki%Uint64FromInt32(Int32FromInt32(1)< %v", r) }() + } + return Xexp(tls, x) +} + +var _o_threshold = float64(709.782712893384) /* 0x40862E42, 0xFEFA39EF */ +var _ln2_hi = float64(0.6931471803691238) /* 0x3fe62e42, 0xfee00000 */ +var _ln2_lo = float64(1.9082149292705877e-10) /* 0x3dea39ef, 0x35793c76 */ +var _invln2 = float64(1.4426950408889634) /* 0x3ff71547, 0x652b82fe */ +/* Scaled Q's: Qn_here = 2**n * Qn_above, for R(2*z) where z = hxs = x*x/2: */ +var _Q1 = -Float64FromFloat64(0.03333333333333313) /* BFA11111 111110F4 */ +var _Q2 = float64(0.0015873015872548146) /* 3F5A01A0 19FE5585 */ +var _Q3 = -Float64FromFloat64(7.93650757867488e-05) /* BF14CE19 9EAADBB7 */ +var _Q4 = float64(4.008217827329362e-06) /* 3ED0CFCA 86E65239 */ +var _Q5 = -Float64FromFloat64(2.0109921818362437e-07) /* BE8AFDB7 6E09C32D */ + +func Xexpm1(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var c, e, hfx, hi, hxs, lo, r1, t, twopk, y3 Tdouble_t + var hx Tuint32_t + var k, sign int32 + var y float32 + var y1, y2, v3 float64 + var v1 uint64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + var _ /* u at bp+8 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = c, e, hfx, hi, hx, hxs, k, lo, r1, sign, t, twopk, y, y1, y2, y3, v1, v3 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp + 8)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp + 8)) = x3 + hx = uint32(*(*Tuint64_t)(unsafe.Pointer(bp + 8)) >> int32(32) & uint64(0x7fffffff)) + sign = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp + 8)) >> int32(63)) + /* filter out huge and non-finite argument */ + if hx >= uint32(0x4043687A) { /* if |x|>=56*ln2 */ + *(*float64)(unsafe.Pointer(bp)) = x3 + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 + _2: + if BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)< _o_threshold { + x3 = x3 * float64(8.98846567431158e+307) + return x3 + } + } + /* argument reduction */ + if hx > uint32(0x3fd62e42) { /* if |x| > 0.5 ln2 */ + if hx < uint32(0x3FF0A2B2) { /* and |x| < 1.5 ln2 */ + if !(sign != 0) { + hi = x3 - _ln2_hi + lo = _ln2_lo + k = int32(1) + } else { + hi = x3 + _ln2_hi + lo = -_ln2_lo + k = -int32(1) + } + } else { + if sign != 0 { + v3 = -Float64FromFloat64(0.5) + } else { + v3 = float64(0.5) + } + k = int32(float64(_invln2*x3) + v3) + t = float64(k) + hi = x3 - float64(t*_ln2_hi) /* t*ln2_hi is exact here */ + lo = Tdouble_t(t * _ln2_lo) + } + x3 = hi - lo + c = hi - x3 - lo + } else { + if hx < uint32(0x3c900000) { /* |x| < 2**-54, return x */ + if hx < uint32(0x00100000) { + if uint64(4) == uint64(4) { + y = float32(x3) + } else { + if uint64(4) == uint64(8) { + y1 = float64(float32(x3)) + } else { + y2 = float64(float32(x3)) + } + } + } + return x3 + } else { + k = 0 + } + } + /* x is now in primary range */ + hfx = Tdouble_t(float64(0.5) * x3) + hxs = Tdouble_t(x3 * hfx) + r1 = float64(1) + float64(hxs*(_Q1+float64(hxs*(_Q2+float64(hxs*(_Q3+float64(hxs*(_Q4+float64(hxs*_Q5))))))))) + t = float64(3) - float64(r1*hfx) + e = Tdouble_t(hxs * ((r1 - t) / (Float64FromFloat64(6) - float64(x3*t)))) + if k == 0 { /* c is 0 */ + return x3 - (float64(x3*e) - hxs) + } + e = float64(x3*(e-c)) - c + e = e - hxs + /* exp(x) ~ 2^k (Xreduced - e + 1) */ + if k == -int32(1) { + return float64(float64(0.5)*(x3-e)) - float64(0.5) + } + if k == int32(1) { + if x3 < -Float64FromFloat64(0.25) { + return float64(-Float64FromFloat64(2) * (e - (x3 + Float64FromFloat64(0.5)))) + } + return float64(1) + float64(float64(2)*(x3-e)) + } + *(*Tuint64_t)(unsafe.Pointer(bp + 8)) = Uint64FromInt32(Int32FromInt32(0x3ff)+k) << int32(52) /* 2^k */ + twopk = *(*float64)(unsafe.Pointer(bp + 8)) + if k < 0 || k > int32(56) { /* suffice to return exp(x)-1 */ + y3 = x3 - e + float64(1) + if k == int32(1024) { + y3 = Tdouble_t(Tdouble_t(y3*float64(2)) * float64(8.98846567431158e+307)) + } else { + y3 = Tdouble_t(y3 * twopk) + } + return y3 - float64(1) + } + *(*Tuint64_t)(unsafe.Pointer(bp + 8)) = Uint64FromInt32(Int32FromInt32(0x3ff)-k) << int32(52) /* 2^-k */ + if k < int32(20) { + y3 = Tdouble_t((x3 - e + (Float64FromInt32(1) - *(*float64)(unsafe.Pointer(bp + 8)))) * twopk) + } else { + y3 = Tdouble_t((x3 - (e + *(*float64)(unsafe.Pointer(bp + 8))) + Float64FromInt32(1)) * twopk) + } + return y3 +} + +var _ln2_hi1 = float32(0.69313812256) /* 0x3f317180 */ +var _ln2_lo1 = float32(9.0580006145e-06) /* 0x3717f7d1 */ +var _invln21 = float32(1.4426950216) /* 0x3fb8aa3b */ +/* + * Domain [-0.34568, 0.34568], range ~[-6.694e-10, 6.696e-10]: + * |6 / x * (1 + 2 * (1 / (exp(x) - 1) - 1 / x)) - q(x)| < 2**-30.04 + * Scaled coefficients: Qn_here = 2**n * Qn_for_q (see s_expm1.c): + */ +var _Q11 = float32(-Float64FromFloat64(0.033333212137)) /* -0x888868.0p-28 */ +var _Q21 = float32(0.0015807170421) /* 0xcf3010.0p-33 */ + +func Xexpm1f(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var c, e, hfx, hi, hxs, lo, r1, t, twopk, y3 Tfloat_t + var hx Tuint32_t + var k, sign int32 + var y, v1 float32 + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = c, e, hfx, hi, hx, hxs, k, lo, r1, sign, t, twopk, y, y1, y2, y3, v1 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + hx = *(*Tuint32_t)(unsafe.Pointer(bp)) & uint32(0x7fffffff) + sign = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(31)) + /* filter out huge and non-finite argument */ + if hx >= uint32(0x4195b844) { /* if |x|>=27*ln2 */ + if hx > uint32(0x7f800000) { /* NaN */ + return x3 + } + if sign != 0 { + return float32(-Int32FromInt32(1)) + } + if hx > uint32(0x42b17217) { /* x > log(FLT_MAX) */ + x3 = x3 * Float32FromFloat32(1.7014118346046923e+38) + return x3 + } + } + /* argument reduction */ + if hx > uint32(0x3eb17218) { /* if |x| > 0.5 ln2 */ + if hx < uint32(0x3F851592) { /* and |x| < 1.5 ln2 */ + if !(sign != 0) { + hi = x3 - _ln2_hi1 + lo = _ln2_lo1 + k = int32(1) + } else { + hi = x3 + _ln2_hi1 + lo = -_ln2_lo1 + k = -int32(1) + } + } else { + if sign != 0 { + v1 = -Float32FromFloat32(0.5) + } else { + v1 = Float32FromFloat32(0.5) + } + k = int32(float32(_invln21*x3) + v1) + t = float32(k) + hi = x3 - float32(t*_ln2_hi1) /* t*ln2_hi is exact here */ + lo = Tfloat_t(t * _ln2_lo1) + } + x3 = hi - lo + c = hi - x3 - lo + } else { + if hx < uint32(0x33000000) { /* when |x|<2**-25, return x */ + if hx < uint32(0x00800000) { + if uint64(4) == uint64(4) { + y = float32(x3 * x3) + } else { + if uint64(4) == uint64(8) { + y1 = float64(x3 * x3) + } else { + y2 = float64(x3 * x3) + } + } + } + return x3 + } else { + k = 0 + } + } + /* x is now in primary range */ + hfx = Tfloat_t(Float32FromFloat32(0.5) * x3) + hxs = Tfloat_t(x3 * hfx) + r1 = Float32FromFloat32(1) + float32(hxs*(_Q11+float32(hxs*_Q21))) + t = Float32FromFloat32(3) - float32(r1*hfx) + e = Tfloat_t(hxs * ((r1 - t) / (Float32FromFloat32(6) - float32(x3*t)))) + if k == 0 { /* c is 0 */ + return x3 - (float32(x3*e) - hxs) + } + e = float32(x3*(e-c)) - c + e = e - hxs + /* exp(x) ~ 2^k (Xreduced - e + 1) */ + if k == -int32(1) { + return float32(Float32FromFloat32(0.5)*(x3-e)) - Float32FromFloat32(0.5) + } + if k == int32(1) { + if x3 < -Float32FromFloat32(0.25) { + return float32(-Float32FromFloat32(2) * (e - (x3 + Float32FromFloat32(0.5)))) + } + return Float32FromFloat32(1) + float32(Float32FromFloat32(2)*(x3-e)) + } + *(*Tuint32_t)(unsafe.Pointer(bp)) = Uint32FromInt32((int32(0x7f) + k) << int32(23)) /* 2^k */ + twopk = *(*float32)(unsafe.Pointer(bp)) + if k < 0 || k > int32(56) { /* suffice to return exp(x)-1 */ + y3 = x3 - e + Float32FromFloat32(1) + if k == int32(128) { + y3 = Tfloat_t(Tfloat_t(y3*Float32FromFloat32(2)) * Float32FromFloat32(1.7014118346046923e+38)) + } else { + y3 = Tfloat_t(y3 * twopk) + } + return y3 - Float32FromFloat32(1) + } + *(*Tuint32_t)(unsafe.Pointer(bp)) = Uint32FromInt32((int32(0x7f) - k) << int32(23)) /* 2^-k */ + if k < int32(23) { + y3 = Tfloat_t((x3 - e + (Float32FromInt32(1) - *(*float32)(unsafe.Pointer(bp)))) * twopk) + } else { + y3 = Tfloat_t((x3 - (e + *(*float32)(unsafe.Pointer(bp))) + Float32FromInt32(1)) * twopk) + } + return y3 +} + +func Xexpm1l(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xexpm1(tls, x) +} + +func Xfabs(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uintptr + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _ = v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + v1 = bp + *(*Tuint64_t)(unsafe.Pointer(v1)) = Tuint64_t(*(*Tuint64_t)(unsafe.Pointer(v1)) & (-Uint64FromUint64(1) / Uint64FromInt32(2))) + return *(*float64)(unsafe.Pointer(bp)) +} + +func Xfabsf(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + *(*Tuint32_t)(unsafe.Pointer(bp)) &= uint32(0x7fffffff) + return *(*float32)(unsafe.Pointer(bp)) +} + +func Xfabsl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfabs(tls, x) +} + +func Xfdim(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uint64 + var v5 float64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _, _ = v1, v5 + *(*float64)(unsafe.Pointer(bp)) = x + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + if BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)< y { + v5 = x - y + } else { + v5 = Float64FromInt32(0) + } + return v5 +} + +func Xfdimf(tls *TLS, x float32, y float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uint32 + var v5 float32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _, _ = v1, v5 + *(*float32)(unsafe.Pointer(bp)) = x + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + if BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return x + } + *(*float32)(unsafe.Pointer(bp)) = y + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _4 +_4: + if BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return y + } + if x > y { + v5 = x - y + } else { + v5 = Float32FromInt32(0) + } + return v5 +} + +func Xfdiml(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfdim(tls, x, y) +} + +func Xfinite(tls *TLS, x float64) (r int32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uint64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _ = v1 + *(*float64)(unsafe.Pointer(bp)) = x + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + return BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) < Uint64FromUint64(0x7ff)< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uint32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _ = v1 + *(*float32)(unsafe.Pointer(bp)) = x + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + return BoolInt32(v1&uint32(0x7fffffff) < uint32(0x7f800000)) +} + +const DBL_EPSILON7 = 2.220446049250313e-16 + +var _toint3 = Float64FromInt32(1) / Float64FromFloat64(2.220446049250313e-16) + +func Xfloor(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e, v1 int32 + var y float32 + var y1, y2 float64 + var y3 Tdouble_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _ = e, y, y1, y2, y3, v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + e = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + if e >= Int32FromInt32(0x3ff)+Int32FromInt32(52) || x3 == Float64FromInt32(0) { + return x3 + } + /* y = int(x) - x, where int(x) is an integer neighbor of x */ + if *(*Tuint64_t)(unsafe.Pointer(bp))>>int32(63) != 0 { + y3 = x3 - _toint3 + _toint3 - x3 + } else { + y3 = x3 + _toint3 - _toint3 - x3 + } + /* special case because of non-nearest rounding modes */ + if e <= Int32FromInt32(0x3ff)-Int32FromInt32(1) { + if uint64(8) == uint64(4) { + y = float32(y3) + } else { + if uint64(8) == uint64(8) { + y1 = y3 + } else { + y2 = y3 + } + } + if *(*Tuint64_t)(unsafe.Pointer(bp))>>int32(63) != 0 { + v1 = -int32(1) + } else { + v1 = 0 + } + return float64(v1) + } + if y3 > Float64FromInt32(0) { + return x3 + y3 - Float64FromInt32(1) + } + return x3 + y3 +} + +const DBL_EPSILON8 = 0 + +func Xfloorf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e int32 + var m Tuint32_t + var y float32 + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _ = e, m, y, y1, y2 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + e = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp))>>Int32FromInt32(23)&Uint32FromInt32(0xff)) - int32(0x7f) + if e >= int32(23) { + return x3 + } + if e >= 0 { + m = Uint32FromInt32(int32(0x007fffff) >> e) + if *(*Tuint32_t)(unsafe.Pointer(bp))&m == uint32(0) { + return x3 + } + if uint64(4) == uint64(4) { + y = x3 + Float32FromFloat32(1.329227995784916e+36) + } else { + if uint64(4) == uint64(8) { + y1 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } else { + y2 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } + } + if *(*Tuint32_t)(unsafe.Pointer(bp))>>int32(31) != 0 { + *(*Tuint32_t)(unsafe.Pointer(bp)) += m + } + *(*Tuint32_t)(unsafe.Pointer(bp)) &= ^m + } else { + if uint64(4) == uint64(4) { + y = x3 + Float32FromFloat32(1.329227995784916e+36) + } else { + if uint64(4) == uint64(8) { + y1 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } else { + y2 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } + } + if *(*Tuint32_t)(unsafe.Pointer(bp))>>int32(31) == uint32(0) { + *(*Tuint32_t)(unsafe.Pointer(bp)) = uint32(0) + } else { + if *(*Tuint32_t)(unsafe.Pointer(bp))< %v", r) }() + } + return Xfloor(tls, x) +} + +const DBL_MIN1 = 2.2250738585072014e-308 +const FLT_MIN1 = 1.1754943508222875e-38 +const ZEROINFNAN = 971 + +type Tnum = struct { + Fm Tuint64_t + Fe int32 + Fsign int32 +} + +func _normalize(tls *TLS, x float64) (r Tnum) { + var e, sign, v2 int32 + var ix Tuint64_t + var v1 float64 + _, _, _, _, _ = e, ix, sign, v1, v2 + ix = *(*Tuint64_t)(unsafe.Pointer(&x)) + e = Int32FromUint64(ix >> int32(52)) + sign = e & int32(0x800) + e = e & int32(0x7ff) + if !(e != 0) { + v1 = float64(x * float64(9.223372036854776e+18)) + ix = *(*Tuint64_t)(unsafe.Pointer(&v1)) + e = Int32FromUint64(ix >> int32(52) & uint64(0x7ff)) + if e != 0 { + v2 = e - int32(63) + } else { + v2 = int32(0x800) + } + e = v2 + } + ix = uint64(ix & (Uint64FromUint64(1)<> int32(32) + ylo = uint64(uint32(y)) + yhi = y >> int32(32) + t1 = xlo * ylo + t2 = xlo*yhi + xhi*ylo + t3 = xhi * yhi + **(**Tuint64_t)(__ccgo_up(lo)) = t1 + t2<>Int32FromInt32(32) + BoolUint64(t1 > **(**Tuint64_t)(__ccgo_up(lo))) +} + +func Xfma(tls *TLS, x1 float64, y float64, z float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x1=%v y=%v z=%v, (%v:)", tls, x1, y, z, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var c, r float64 + var d, e, nonzero, samesign, sign, v2 int32 + var fltmin float32 + var i Tint64_t + var nx, ny, nz Tnum + var t, zhi, zlo, v1 Tuint64_t + var tiny Tdouble_t + var _ /* rhi at bp+0 */ Tuint64_t + var _ /* rlo at bp+8 */ Tuint64_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = c, d, e, fltmin, i, nonzero, nx, ny, nz, r, samesign, sign, t, tiny, zhi, zlo, v1, v2 + nx = _normalize(tls, x1) + ny = _normalize(tls, y) + nz = _normalize(tls, z) + if nx.Fe >= Int32FromInt32(0x7ff)-Int32FromInt32(0x3ff)-Int32FromInt32(52)-Int32FromInt32(1) || ny.Fe >= Int32FromInt32(0x7ff)-Int32FromInt32(0x3ff)-Int32FromInt32(52)-Int32FromInt32(1) { + return float64(x1*y) + z + } + if nz.Fe >= Int32FromInt32(0x7ff)-Int32FromInt32(0x3ff)-Int32FromInt32(52)-Int32FromInt32(1) { + if nz.Fe > Int32FromInt32(0x7ff)-Int32FromInt32(0x3ff)-Int32FromInt32(52)-Int32FromInt32(1) { /* z==0 */ + return float64(x1*y) + z + } + return z + } + _mul(tls, bp, bp+8, nx.Fm, ny.Fm) + /* either top 20 or 21 bits of rhi and last 2 bits of rlo are 0 */ + /* align exponents */ + e = nx.Fe + ny.Fe + d = nz.Fe - e + /* shift bits z<<=kz, r>>=kr, so kz+kr == d, set e = e+kr (== ez-kz) */ + if d > 0 { + if d < int32(64) { + zlo = nz.Fm << d + zhi = nz.Fm >> (int32(64) - d) + } else { + zlo = uint64(0) + zhi = nz.Fm + e = nz.Fe - int32(64) + d = d - int32(64) + if d == 0 { + } else { + if d < int32(64) { + **(**Tuint64_t)(__ccgo_up(bp + 8)) = **(**Tuint64_t)(__ccgo_up(bp))<<(int32(64)-d) | **(**Tuint64_t)(__ccgo_up(bp + 8))>>d | BoolUint64(!!(**(**Tuint64_t)(__ccgo_up(bp + 8))<<(Int32FromInt32(64)-d) != 0)) + **(**Tuint64_t)(__ccgo_up(bp)) = **(**Tuint64_t)(__ccgo_up(bp)) >> d + } else { + **(**Tuint64_t)(__ccgo_up(bp + 8)) = uint64(1) + **(**Tuint64_t)(__ccgo_up(bp)) = uint64(0) + } + } + } + } else { + zhi = uint64(0) + d = -d + if d == 0 { + zlo = nz.Fm + } else { + if d < int32(64) { + zlo = nz.Fm>>d | BoolUint64(!!(nz.Fm<<(Int32FromInt32(64)-d) != 0)) + } else { + zlo = uint64(1) + } + } + } + /* add */ + sign = nx.Fsign ^ ny.Fsign + samesign = BoolInt32(!(sign^nz.Fsign != 0)) + nonzero = int32(1) + if samesign != 0 { + /* r += z */ + **(**Tuint64_t)(__ccgo_up(bp + 8)) = **(**Tuint64_t)(__ccgo_up(bp + 8)) + zlo + **(**Tuint64_t)(__ccgo_up(bp)) = **(**Tuint64_t)(__ccgo_up(bp)) + (zhi + BoolUint64(**(**Tuint64_t)(__ccgo_up(bp + 8)) < zlo)) + } else { + /* r -= z */ + t = **(**Tuint64_t)(__ccgo_up(bp + 8)) + **(**Tuint64_t)(__ccgo_up(bp + 8)) = **(**Tuint64_t)(__ccgo_up(bp + 8)) - zlo + **(**Tuint64_t)(__ccgo_up(bp)) = **(**Tuint64_t)(__ccgo_up(bp)) - zhi - BoolUint64(t < **(**Tuint64_t)(__ccgo_up(bp + 8))) + if **(**Tuint64_t)(__ccgo_up(bp))>>int32(63) != 0 { + **(**Tuint64_t)(__ccgo_up(bp + 8)) = -**(**Tuint64_t)(__ccgo_up(bp + 8)) + **(**Tuint64_t)(__ccgo_up(bp)) = -**(**Tuint64_t)(__ccgo_up(bp)) - BoolUint64(!!(**(**Tuint64_t)(__ccgo_up(bp + 8)) != 0)) + sign = BoolInt32(!(sign != 0)) + } + nonzero = BoolInt32(!!(**(**Tuint64_t)(__ccgo_up(bp)) != 0)) + } + /* set rhi to top 63bit of the result (last bit is sticky) */ + if nonzero != 0 { + e = e + int32(64) + v1 = **(**Tuint64_t)(__ccgo_up(bp)) + // __asm__("clz %0, %1" : "=r"(x) : "r"(x)); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 80, __ccgo_ts+566) + v2 = Int32FromUint64(v1) + goto _3 + _3: + d = v2 - int32(1) + /* note: d > 0 */ + **(**Tuint64_t)(__ccgo_up(bp)) = **(**Tuint64_t)(__ccgo_up(bp))<>(int32(64)-d) | BoolUint64(!!(**(**Tuint64_t)(__ccgo_up(bp + 8))<>int32(1) | **(**Tuint64_t)(__ccgo_up(bp + 8))&uint64(1) + } else { + **(**Tuint64_t)(__ccgo_up(bp)) = **(**Tuint64_t)(__ccgo_up(bp + 8)) << d + } + } else { + /* exact +-0 */ + return float64(x1*y) + z + } + } + e = e - d + /* convert to double */ + i = Int64FromUint64(**(**Tuint64_t)(__ccgo_up(bp))) /* i is in [1<<62,(1<<63)-1] */ + if sign != 0 { + i = -i + } + r = float64(i) /* |r| is in [0x1p62,0x1p63] */ + if e < -Int32FromInt32(1022)-Int32FromInt32(62) { + /* result is subnormal before rounding */ + if e == -Int32FromInt32(1022)-Int32FromInt32(63) { + c = float64(9.223372036854776e+18) + if sign != 0 { + c = -c + } + if r == c { + /* min normal after rounding, underflow depends + on arch behaviour which can be imitated by + a double to float conversion */ + fltmin = float32(float64(Float64FromFloat64(1.0842021401737618e-19)*Float64FromFloat32(1.1754943508222875e-38)) * r) + return float64(Float64FromFloat64(2.2250738585072014e-308) / Float64FromFloat32(1.1754943508222875e-38) * float64(fltmin)) + } + /* one bit is lost when scaled, add another top bit to + only round once at conversion if it is inexact */ + if **(**Tuint64_t)(__ccgo_up(bp))<>int32(1)|**(**Tuint64_t)(__ccgo_up(bp))&uint64(1)) | Uint64FromUint64(1)<>d | BoolUint64(!!(**(**Tuint64_t)(__ccgo_up(bp))<<(Int32FromInt32(64)-d) != 0))) << d) + if sign != 0 { + i = -i + } + r = float64(i) + } + } + return Xscalbn(tls, r, e) +} + +const DBL_MIN2 = 0 +const FLT_MIN2 = 0 + +func Xfmal(tls *TLS, x float64, y float64, z float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v z=%v, (%v:)", tls, x, y, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfma(tls, x, y, z) +} + +func Xfmax(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1, v3, v5 uint64 + var v9 float64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _, _, _, _ = v1, v3, v5, v9 + *(*float64)(unsafe.Pointer(bp)) = x + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + if BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(63)) != Int32FromUint64(v3>>Int32FromInt32(63)) { + *(*float64)(unsafe.Pointer(bp)) = x + v5 = *(*uint64)(unsafe.Pointer(bp)) + goto _11 + _11: + if Int32FromUint64(v5>>Int32FromInt32(63)) != 0 { + v9 = y + } else { + v9 = x + } + return v9 + } + if x < y { + v9 = y + } else { + v9 = x + } + return v9 +} + +func Xfmaxf(tls *TLS, x float32, y float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1, v3, v5 uint32 + var v9 float32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _, _, _, _ = v1, v3, v5, v9 + *(*float32)(unsafe.Pointer(bp)) = x + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + if BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return y + } + *(*float32)(unsafe.Pointer(bp)) = y + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _4 +_4: + if BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return x + } + /* handle signed zeroes, see C99 Annex F.9.9.2 */ + *(*float32)(unsafe.Pointer(bp)) = x + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _6 +_6: + *(*float32)(unsafe.Pointer(bp)) = y + v3 = *(*uint32)(unsafe.Pointer(bp)) + goto _8 +_8: + if Int32FromUint32(v1>>Int32FromInt32(31)) != Int32FromUint32(v3>>Int32FromInt32(31)) { + *(*float32)(unsafe.Pointer(bp)) = x + v5 = *(*uint32)(unsafe.Pointer(bp)) + goto _11 + _11: + if Int32FromUint32(v5>>Int32FromInt32(31)) != 0 { + v9 = y + } else { + v9 = x + } + return v9 + } + if x < y { + v9 = y + } else { + v9 = x + } + return v9 +} + +func Xfmaxl(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfmax(tls, x, y) +} + +func Xfmin(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1, v3, v5 uint64 + var v9 float64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _, _, _, _ = v1, v3, v5, v9 + *(*float64)(unsafe.Pointer(bp)) = x + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + if BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(63)) != Int32FromUint64(v3>>Int32FromInt32(63)) { + *(*float64)(unsafe.Pointer(bp)) = x + v5 = *(*uint64)(unsafe.Pointer(bp)) + goto _11 + _11: + if Int32FromUint64(v5>>Int32FromInt32(63)) != 0 { + v9 = x + } else { + v9 = y + } + return v9 + } + if x < y { + v9 = x + } else { + v9 = y + } + return v9 +} + +func Xfminf(tls *TLS, x float32, y float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1, v3, v5 uint32 + var v9 float32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _, _, _, _ = v1, v3, v5, v9 + *(*float32)(unsafe.Pointer(bp)) = x + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + if BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return y + } + *(*float32)(unsafe.Pointer(bp)) = y + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _4 +_4: + if BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return x + } + /* handle signed zeros, see C99 Annex F.9.9.2 */ + *(*float32)(unsafe.Pointer(bp)) = x + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _6 +_6: + *(*float32)(unsafe.Pointer(bp)) = y + v3 = *(*uint32)(unsafe.Pointer(bp)) + goto _8 +_8: + if Int32FromUint32(v1>>Int32FromInt32(31)) != Int32FromUint32(v3>>Int32FromInt32(31)) { + *(*float32)(unsafe.Pointer(bp)) = x + v5 = *(*uint32)(unsafe.Pointer(bp)) + goto _11 + _11: + if Int32FromUint32(v5>>Int32FromInt32(31)) != 0 { + v9 = x + } else { + v9 = y + } + return v9 + } + if x < y { + v9 = x + } else { + v9 = y + } + return v9 +} + +func Xfminl(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfmin(tls, x, y) +} + +func Xfmod(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var ex, ey, sx int32 + var i, uxi Tuint64_t + var v1 uint64 + var v3 bool + var v6 uintptr + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + var _ /* ux at bp+8 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + var _ /* uy at bp+16 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _, _ = ex, ey, i, sx, uxi, v1, v3, v6 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp + 8)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp + 8)) = x + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp + 16)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp + 16)) = y + ex = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp + 8)) >> int32(52) & uint64(0x7ff)) + ey = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp + 16)) >> int32(52) & uint64(0x7ff)) + sx = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp + 8)) >> int32(63)) + /* in the followings uxi should be ux.i, but then gcc wrongly adds */ + /* float load/store to inner loops ruining performance and code size */ + uxi = *(*Tuint64_t)(unsafe.Pointer(bp + 8)) + if v3 = *(*Tuint64_t)(unsafe.Pointer(bp + 16))<>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>int32(63) == uint64(0)) { + break + } + goto _4 + _4: + ; + ex = ex - 1 + i = i << uint64(1) + } + uxi = uxi << Uint64FromInt32(-ex+int32(1)) + } else { + uxi = uint64(uxi & (-Uint64FromUint64(1) >> Int32FromInt32(12))) + uxi = uint64(uxi | Uint64FromUint64(1)<>int32(63) == uint64(0)) { + break + } + goto _5 + _5: + ; + ey = ey - 1 + i = i << uint64(1) + } + *(*Tuint64_t)(unsafe.Pointer(bp + 16)) <<= Uint64FromInt32(-ey + int32(1)) + } else { + v6 = bp + 16 + *(*Tuint64_t)(unsafe.Pointer(v6)) = Tuint64_t(*(*Tuint64_t)(unsafe.Pointer(v6)) & (-Uint64FromUint64(1) >> Int32FromInt32(12))) + v6 = bp + 16 + *(*Tuint64_t)(unsafe.Pointer(v6)) = Tuint64_t(*(*Tuint64_t)(unsafe.Pointer(v6)) | Uint64FromUint64(1)< ey) { + break + } + i = uxi - *(*Tuint64_t)(unsafe.Pointer(bp + 16)) + if i>>int32(63) == uint64(0) { + if i == uint64(0) { + return float64(Float64FromInt32(0) * x) + } + uxi = i + } + uxi = uxi << uint64(1) + goto _8 + _8: + ; + ex = ex - 1 + } + i = uxi - *(*Tuint64_t)(unsafe.Pointer(bp + 16)) + if i>>int32(63) == uint64(0) { + if i == uint64(0) { + return float64(Float64FromInt32(0) * x) + } + uxi = i + } + for { + if !(uxi>>int32(52) == uint64(0)) { + break + } + goto _9 + _9: + ; + uxi = uxi << uint64(1) + ex = ex - 1 + } + /* scale result */ + if ex > 0 { + uxi = uint64(uxi - Uint64FromUint64(1)<> Uint64FromInt32(-ex+int32(1)) + } + uxi = uxi | Uint64FromInt32(sx)< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ex, ey int32 + var i, sx, uxi Tuint32_t + var v1 uint32 + var v3 bool + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + var _ /* ux at bp+4 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + var _ /* uy at bp+8 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _, _ = ex, ey, i, sx, uxi, v1, v3 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp + 4)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp + 4)) = x + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp + 8)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp + 8)) = y + ex = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp + 4)) >> int32(23) & uint32(0xff)) + ey = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp + 8)) >> int32(23) & uint32(0xff)) + sx = *(*Tuint32_t)(unsafe.Pointer(bp + 4)) & uint32(0x80000000) + uxi = *(*Tuint32_t)(unsafe.Pointer(bp + 4)) + if v3 = *(*Tuint32_t)(unsafe.Pointer(bp + 8))< uint32(0x7f800000)) != 0 || ex == int32(0xff) { + return float32(x*y) / float32(x*y) + } + if uxi<>int32(31) == uint32(0)) { + break + } + goto _4 + _4: + ; + ex = ex - 1 + i = i << uint32(1) + } + uxi = uxi << Uint32FromInt32(-ex+int32(1)) + } else { + uxi = uxi & (-Uint32FromUint32(1) >> Int32FromInt32(9)) + uxi = uxi | Uint32FromUint32(1)<>int32(31) == uint32(0)) { + break + } + goto _5 + _5: + ; + ey = ey - 1 + i = i << uint32(1) + } + *(*Tuint32_t)(unsafe.Pointer(bp + 8)) <<= Uint32FromInt32(-ey + int32(1)) + } else { + *(*Tuint32_t)(unsafe.Pointer(bp + 8)) &= -Uint32FromUint32(1) >> Int32FromInt32(9) + *(*Tuint32_t)(unsafe.Pointer(bp + 8)) |= Uint32FromUint32(1) << Int32FromInt32(23) + } + /* x mod y */ + for { + if !(ex > ey) { + break + } + i = uxi - *(*Tuint32_t)(unsafe.Pointer(bp + 8)) + if i>>int32(31) == uint32(0) { + if i == uint32(0) { + return float32(Float32FromInt32(0) * x) + } + uxi = i + } + uxi = uxi << uint32(1) + goto _6 + _6: + ; + ex = ex - 1 + } + i = uxi - *(*Tuint32_t)(unsafe.Pointer(bp + 8)) + if i>>int32(31) == uint32(0) { + if i == uint32(0) { + return float32(Float32FromInt32(0) * x) + } + uxi = i + } + for { + if !(uxi>>int32(23) == uint32(0)) { + break + } + goto _7 + _7: + ; + uxi = uxi << uint32(1) + ex = ex - 1 + } + /* scale result up */ + if ex > 0 { + uxi = uxi - Uint32FromUint32(1)<> Uint32FromInt32(-ex+int32(1)) + } + uxi = uxi | sx + *(*Tuint32_t)(unsafe.Pointer(bp + 4)) = uxi + return *(*float32)(unsafe.Pointer(bp + 4)) +} + +func Xfmodl(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfmod(tls, x, y) +} + +func Xfrexp(tls *TLS, x float64, e uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v e=%v, (%v:)", tls, x, e, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ee int32 + var v1 uintptr + var _ /* y at bp+0 */ struct { + Fi [0]Tuint64_t + Fd float64 + } + _, _ = ee, v1 + *(*struct { + Fi [0]Tuint64_t + Fd float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Fd float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + ee = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + if !(ee != 0) { + if x != 0 { + x = Xfrexp(tls, float64(x*float64(1.8446744073709552e+19)), e) + **(**int32)(__ccgo_up(e)) -= int32(64) + } else { + **(**int32)(__ccgo_up(e)) = 0 + } + return x + } else { + if ee == int32(0x7ff) { + return x + } + } + **(**int32)(__ccgo_up(e)) = ee - int32(0x3fe) + v1 = bp + *(*Tuint64_t)(unsafe.Pointer(v1)) = Tuint64_t(*(*Tuint64_t)(unsafe.Pointer(v1)) & Uint64FromUint64(0x800fffffffffffff)) + v1 = bp + *(*Tuint64_t)(unsafe.Pointer(v1)) = Tuint64_t(*(*Tuint64_t)(unsafe.Pointer(v1)) | Uint64FromUint64(0x3fe0000000000000)) + return *(*float64)(unsafe.Pointer(bp)) +} + +func Xfrexpf(tls *TLS, x float32, e uintptr) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v e=%v, (%v:)", tls, x, e, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ee int32 + var v1 uintptr + var _ /* y at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _ = ee, v1 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + ee = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(23) & uint32(0xff)) + if !(ee != 0) { + if x != 0 { + x = Xfrexpf(tls, float32(float64(x)*float64(1.8446744073709552e+19)), e) + **(**int32)(__ccgo_up(e)) -= int32(64) + } else { + **(**int32)(__ccgo_up(e)) = 0 + } + return x + } else { + if ee == int32(0xff) { + return x + } + } + **(**int32)(__ccgo_up(e)) = ee - int32(0x7e) + v1 = bp + *(*Tuint32_t)(unsafe.Pointer(v1)) = Tuint32_t(uint64(*(*Tuint32_t)(unsafe.Pointer(v1))) & Uint64FromUint64(0x807fffff)) + v1 = bp + *(*Tuint32_t)(unsafe.Pointer(v1)) = Tuint32_t(uint64(*(*Tuint32_t)(unsafe.Pointer(v1))) | Uint64FromUint64(0x3f000000)) + return *(*float32)(unsafe.Pointer(bp)) +} + +func Xfrexpl(tls *TLS, x float64, e uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v e=%v, (%v:)", tls, x, e, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfrexp(tls, x, e) +} + +const SPLIT = 1 + +func _sq(tls *TLS, hi uintptr, lo uintptr, x float64) { + var xc, xh, xl Tdouble_t + _, _, _ = xc, xh, xl + xc = Tdouble_t(x * (Float64FromFloat64(1.34217728e+08) + Float64FromInt32(1))) + xh = x - xc + xc + xl = x - xh + **(**Tdouble_t)(__ccgo_up(hi)) = Tdouble_t(x * x) + **(**Tdouble_t)(__ccgo_up(lo)) = Tdouble_t(xh*xh) - **(**Tdouble_t)(__ccgo_up(hi)) + Tdouble_t(Tdouble_t(Float64FromInt32(2)*xh)*xl) + Tdouble_t(xl*xl) +} + +func Xhypot(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + var ex, ey int32 + var ut struct { + Fi [0]Tuint64_t + Ff float64 + } + var z Tdouble_t + var v1 uintptr + var _ /* hx at bp+16 */ Tdouble_t + var _ /* hy at bp+32 */ Tdouble_t + var _ /* lx at bp+24 */ Tdouble_t + var _ /* ly at bp+40 */ Tdouble_t + var _ /* ux at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + var _ /* uy at bp+8 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _ = ex, ey, ut, z, v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp + 8)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp + 8)) = y + /* arrange |x| >= |y| */ + v1 = bp + *(*Tuint64_t)(unsafe.Pointer(v1)) = Tuint64_t(*(*Tuint64_t)(unsafe.Pointer(v1)) & (-Uint64FromUint64(1) >> Int32FromInt32(1))) + v1 = bp + 8 + *(*Tuint64_t)(unsafe.Pointer(v1)) = Tuint64_t(*(*Tuint64_t)(unsafe.Pointer(v1)) & (-Uint64FromUint64(1) >> Int32FromInt32(1))) + if *(*Tuint64_t)(unsafe.Pointer(bp)) < *(*Tuint64_t)(unsafe.Pointer(bp + 8)) { + ut = **(**struct { + Fi [0]Tuint64_t + Ff float64 + })(__ccgo_up(bp)) + **(**struct { + Fi [0]Tuint64_t + Ff float64 + })(__ccgo_up(bp)) = **(**struct { + Fi [0]Tuint64_t + Ff float64 + })(__ccgo_up(bp + 8)) + **(**struct { + Fi [0]Tuint64_t + Ff float64 + })(__ccgo_up(bp + 8)) = ut + } + /* special cases */ + ex = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52)) + ey = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp + 8)) >> int32(52)) + x = *(*float64)(unsafe.Pointer(bp)) + y = *(*float64)(unsafe.Pointer(bp + 8)) + /* note: hypot(inf,nan) == inf */ + if ey == int32(0x7ff) { + return y + } + if ex == int32(0x7ff) || *(*Tuint64_t)(unsafe.Pointer(bp + 8)) == uint64(0) { + return x + } + /* note: hypot(x,y) ~= x + y*y/x/2 with inexact for small y/x */ + /* 64 difference is enough for ld80 double_t */ + if ex-ey > int32(64) { + return x + y + } + /* precise sqrt argument in nearest rounding mode without overflow */ + /* xh*xh must not overflow and xl*xl must not underflow in sq */ + z = Float64FromInt32(1) + if ex > Int32FromInt32(0x3ff)+Int32FromInt32(510) { + z = float64(5.260135901548374e+210) + x = x * float64(1.90109156629516e-211) + y = y * float64(1.90109156629516e-211) + } else { + if ey < Int32FromInt32(0x3ff)-Int32FromInt32(450) { + z = float64(1.90109156629516e-211) + x = x * float64(5.260135901548374e+210) + y = y * float64(5.260135901548374e+210) + } + } + _sq(tls, bp+16, bp+24, x) + _sq(tls, bp+32, bp+40, y) + return float64(z * Xsqrt(tls, **(**Tdouble_t)(__ccgo_up(bp + 40))+**(**Tdouble_t)(__ccgo_up(bp + 24))+**(**Tdouble_t)(__ccgo_up(bp + 32))+**(**Tdouble_t)(__ccgo_up(bp + 16)))) +} + +func Xhypotf(tls *TLS, x float32, y float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ut struct { + Fi [0]Tuint32_t + Ff float32 + } + var z Tfloat_t + var _ /* ux at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + var _ /* uy at bp+4 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _ = ut, z + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp + 4)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp + 4)) = y + *(*Tuint32_t)(unsafe.Pointer(bp)) &= -Uint32FromUint32(1) >> Int32FromInt32(1) + *(*Tuint32_t)(unsafe.Pointer(bp + 4)) &= -Uint32FromUint32(1) >> Int32FromInt32(1) + if *(*Tuint32_t)(unsafe.Pointer(bp)) < *(*Tuint32_t)(unsafe.Pointer(bp + 4)) { + ut = **(**struct { + Fi [0]Tuint32_t + Ff float32 + })(__ccgo_up(bp)) + **(**struct { + Fi [0]Tuint32_t + Ff float32 + })(__ccgo_up(bp)) = **(**struct { + Fi [0]Tuint32_t + Ff float32 + })(__ccgo_up(bp + 4)) + **(**struct { + Fi [0]Tuint32_t + Ff float32 + })(__ccgo_up(bp + 4)) = ut + } + x = *(*float32)(unsafe.Pointer(bp)) + y = *(*float32)(unsafe.Pointer(bp + 4)) + if *(*Tuint32_t)(unsafe.Pointer(bp + 4)) == Uint32FromInt32(Int32FromInt32(0xff)<= Uint32FromInt32(Int32FromInt32(0xff)<= Uint32FromInt32(Int32FromInt32(25)<= Uint32FromInt32((Int32FromInt32(0x7f)+Int32FromInt32(60))< %v", r) }() + } + return Xhypot(tls, x, y) +} + +func Xilogb(tls *TLS, x3 float64) (r int32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e, v2 int32 + var i Tuint64_t + var y float32 + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _ = e, i, y, y1, y2, v2 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + i = *(*Tuint64_t)(unsafe.Pointer(bp)) + e = Int32FromUint64(i >> int32(52) & uint64(0x7ff)) + if !(e != 0) { + i = i << uint64(12) + if i == uint64(0) { + if uint64(4) == uint64(4) { + y = Float32FromInt32(0) / Float32FromFloat32(0) + } else { + if uint64(4) == uint64(8) { + y1 = float64(Float32FromInt32(0) / Float32FromFloat32(0)) + } else { + y2 = float64(Float32FromInt32(0) / Float32FromFloat32(0)) + } + } + return -Int32FromInt32(1) - Int32FromInt32(0x7fffffff) + } + /* subnormal x */ + e = -int32(0x3ff) + for { + if !(i>>int32(63) == uint64(0)) { + break + } + goto _1 + _1: + ; + e = e - 1 + i = i << uint64(1) + } + return e + } + if e == int32(0x7ff) { + if uint64(4) == uint64(4) { + y = Float32FromInt32(0) / Float32FromFloat32(0) + } else { + if uint64(4) == uint64(8) { + y1 = float64(Float32FromInt32(0) / Float32FromFloat32(0)) + } else { + y2 = float64(Float32FromInt32(0) / Float32FromFloat32(0)) + } + } + if i< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e, v2 int32 + var i Tuint32_t + var y float32 + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _ = e, i, y, y1, y2, v2 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + i = *(*Tuint32_t)(unsafe.Pointer(bp)) + e = Int32FromUint32(i >> int32(23) & uint32(0xff)) + if !(e != 0) { + i = i << uint32(9) + if i == uint32(0) { + if uint64(4) == uint64(4) { + y = Float32FromInt32(0) / Float32FromFloat32(0) + } else { + if uint64(4) == uint64(8) { + y1 = float64(Float32FromInt32(0) / Float32FromFloat32(0)) + } else { + y2 = float64(Float32FromInt32(0) / Float32FromFloat32(0)) + } + } + return -Int32FromInt32(1) - Int32FromInt32(0x7fffffff) + } + /* subnormal x */ + e = -int32(0x7f) + for { + if !(i>>int32(31) == uint32(0)) { + break + } + goto _1 + _1: + ; + e = e - 1 + i = i << uint32(1) + } + return e + } + if e == int32(0xff) { + if uint64(4) == uint64(4) { + y = Float32FromInt32(0) / Float32FromFloat32(0) + } else { + if uint64(4) == uint64(8) { + y1 = float64(Float32FromInt32(0) / Float32FromFloat32(0)) + } else { + y2 = float64(Float32FromInt32(0) / Float32FromFloat32(0)) + } + } + if i< %v", r) }() + } + return Xilogb(tls, x) +} + +var _invsqrtpi = float64(0.5641895835477563) /* 0x3FE20DD7, 0x50429B6D */ +var _tpi = float64(0.6366197723675814) /* 0x3FE45F30, 0x6DC9C883 */ + +// C documentation +// +// /* common method when |x|>=2 */ +func _common(tls *TLS, ix Tuint32_t, x float64, y0 int32) (r float64) { + var c, cc, s, ss, z float64 + _, _, _, _, _ = c, cc, s, ss, z + /* + * j0(x) = sqrt(2/(pi*x))*(p0(x)*cos(x-pi/4)-q0(x)*sin(x-pi/4)) + * y0(x) = sqrt(2/(pi*x))*(p0(x)*sin(x-pi/4)+q0(x)*cos(x-pi/4)) + * + * sin(x-pi/4) = (sin(x) - cos(x))/sqrt(2) + * cos(x-pi/4) = (sin(x) + cos(x))/sqrt(2) + * sin(x) +- cos(x) = -cos(2x)/(sin(x) -+ cos(x)) + */ + s = Xsin(tls, x) + c = Xcos(tls, x) + if y0 != 0 { + c = -c + } + cc = s + c + /* avoid overflow in 2*x, big ulp error when x>=0x1p1023 */ + if ix < uint32(0x7fe00000) { + ss = s - c + z = -Xcos(tls, float64(Float64FromInt32(2)*x)) + if float64(s*c) < Float64FromInt32(0) { + cc = z / ss + } else { + ss = z / cc + } + if ix < uint32(0x48000000) { + if y0 != 0 { + ss = -ss + } + cc = float64(_pzero(tls, x)*cc) - float64(_qzero(tls, x)*ss) + } + } + return float64(_invsqrtpi*cc) / Xsqrt(tls, x) +} + +// C documentation +// +// /* R0/S0 on [0, 2.00] */ + +var _R02 = float64(0.015624999999999995) /* 0x3F8FFFFF, 0xFFFFFFFD */ +var _R03 = -Float64FromFloat64(0.00018997929423885472) /* 0xBF28E6A5, 0xB61AC6E9 */ +var _R04 = float64(1.8295404953270067e-06) /* 0x3EBEB1D1, 0x0C503919 */ +var _R05 = -Float64FromFloat64(4.618326885321032e-09) /* 0xBE33D5E7, 0x73D63FCE */ +var _S01 = float64(0.015619102946489001) /* 0x3F8FFCE8, 0x82C8C2A4 */ +var _S02 = float64(0.00011692678466333745) /* 0x3F1EA6D2, 0xDD57DBF4 */ +var _S03 = float64(5.135465502073181e-07) /* 0x3EA13B54, 0xCE84D5A9 */ +var _S04 = float64(1.1661400333379e-09) /* 0x3E1408BC, 0xF4745D8F */ + +func Xj0(tls *TLS, x float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var ix Tuint32_t + var r, s, z float64 + _, _, _, _ = ix, r, s, z + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + ix = ix & uint32(0x7fffffff) + /* j0(+-inf)=0, j0(nan)=nan */ + if ix >= uint32(0x7ff00000) { + return Float64FromInt32(1) / float64(x*x) + } + x = Xfabs(tls, x) + if ix >= uint32(0x40000000) { /* |x| >= 2 */ + /* large ulp error near zeros: 2.4, 5.52, 8.6537,.. */ + return _common(tls, ix, x, 0) + } + /* 1 - x*x/4 + x*x*R(x^2)/S(x^2) */ + if ix >= uint32(0x3f200000) { /* |x| >= 2**-13 */ + /* up to 4ulp error close to 2 */ + z = float64(x * x) + r = float64(z * (_R02 + float64(z*(_R03+float64(z*(_R04+float64(z*_R05))))))) + s = Float64FromInt32(1) + float64(z*(_S01+float64(z*(_S02+float64(z*(_S03+float64(z*_S04))))))) + return float64((Float64FromInt32(1)+x/Float64FromInt32(2))*(Float64FromInt32(1)-x/Float64FromInt32(2))) + float64(z*(r/s)) + } + /* 1 - x*x/4 */ + /* prevent underflow */ + /* inexact should be raised when x!=0, this is not done correctly */ + if ix >= uint32(0x38000000) { /* |x| >= 2**-127 */ + x = float64(float64(float64(0.25)*x) * x) + } + return Float64FromInt32(1) - x +} + +var _u00 = -Float64FromFloat64(0.07380429510868723) /* 0xBFB2E4D6, 0x99CBD01F */ +var _u01 = float64(0.17666645250918112) /* 0x3FC69D01, 0x9DE9E3FC */ +var _u02 = -Float64FromFloat64(0.01381856719455969) /* 0xBF8C4CE8, 0xB16CFA97 */ +var _u03 = float64(0.00034745343209368365) /* 0x3F36C54D, 0x20B29B6B */ +var _u04 = -Float64FromFloat64(3.8140705372436416e-06) /* 0xBECFFEA7, 0x73D25CAD */ +var _u05 = float64(1.9559013703502292e-08) /* 0x3E550057, 0x3B4EABD4 */ +var _u06 = -Float64FromFloat64(3.982051941321034e-11) /* 0xBDC5E43D, 0x693FB3C8 */ +var _v01 = float64(0.01273048348341237) /* 0x3F8A1270, 0x91C9C71A */ +var _v02 = float64(7.600686273503533e-05) /* 0x3F13ECBB, 0xF578C6C1 */ +var _v03 = float64(2.591508518404578e-07) /* 0x3E91642D, 0x7FF202FD */ +var _v04 = float64(4.4111031133267547e-10) /* 0x3DFE5018, 0x3BD6D9EF */ + +func Xy0(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __u Tuint64_t + var ix, lx Tuint32_t + var u, v, z float64 + _, _, _, _, _, _ = __u, ix, lx, u, v, z + __u = *(*Tuint64_t)(unsafe.Pointer(&x)) + ix = uint32(__u >> int32(32)) + lx = uint32(__u) + /* y0(nan)=nan, y0(<0)=nan, y0(0)=-inf, y0(inf)=0 */ + if ix<>int32(31) != 0 { + return Float64FromInt32(0) / Float64FromFloat64(0) + } + if ix >= uint32(0x7ff00000) { + return Float64FromInt32(1) / x + } + if ix >= uint32(0x40000000) { /* x >= 2 */ + /* large ulp errors near zeros: 3.958, 7.086,.. */ + return _common(tls, ix, x, int32(1)) + } + /* U(x^2)/V(x^2) + (2/pi)*j0(x)*log(x) */ + if ix >= uint32(0x3e400000) { /* x >= 2**-27 */ + /* large ulp error near the first zero, x ~= 0.89 */ + z = float64(x * x) + u = _u00 + float64(z*(_u01+float64(z*(_u02+float64(z*(_u03+float64(z*(_u04+float64(z*(_u05+float64(z*_u06))))))))))) + v = float64(1) + float64(z*(_v01+float64(z*(_v02+float64(z*(_v03+float64(z*_v04))))))) + return u/v + float64(_tpi*float64(Xj0(tls, x)*Xlog(tls, x))) + } + return _u00 + float64(_tpi*Xlog(tls, x)) +} + +// C documentation +// +// /* The asymptotic expansions of pzero is +// * 1 - 9/128 s^2 + 11025/98304 s^4 - ..., where s = 1/x. +// * For x >= 2, We approximate pzero by +// * pzero(x) = 1 + (R/S) +// * where R = pR0 + pR1*s^2 + pR2*s^4 + ... + pR5*s^10 +// * S = 1 + pS0*s^2 + ... + pS4*s^10 +// * and +// * | pzero(x)-1-R/S | <= 2 ** ( -60.26) +// */ +var _pR8 = [6]float64{ + 1: -Float64FromFloat64(0.07031249999999004), + 2: -Float64FromFloat64(8.081670412753498), + 3: -Float64FromFloat64(257.06310567970485), + 4: -Float64FromFloat64(2485.216410094288), + 5: -Float64FromFloat64(5253.043804907295), +} +var _pS8 = [5]float64{ + 0: float64(116.53436461966818), + 1: float64(3833.7447536412183), + 2: float64(40597.857264847255), + 3: float64(116752.97256437592), + 4: float64(47627.728414673096), +} + +var _pR5 = [6]float64{ + 0: -Float64FromFloat64(1.141254646918945e-11), + 1: -Float64FromFloat64(0.07031249408735993), + 2: -Float64FromFloat64(4.159610644705878), + 3: -Float64FromFloat64(67.67476522651673), + 4: -Float64FromFloat64(331.23129964917297), + 5: -Float64FromFloat64(346.4333883656049), +} +var _pS52 = [5]float64{ + 0: float64(60.753938269230034), + 1: float64(1051.2523059570458), + 2: float64(5978.970943338558), + 3: float64(9625.445143577745), + 4: float64(2406.058159229391), +} + +var _pR3 = [6]float64{ + 0: -Float64FromFloat64(2.547046017719519e-09), + 1: -Float64FromFloat64(0.07031196163814817), + 2: -Float64FromFloat64(2.409032215495296), + 3: -Float64FromFloat64(21.96597747348831), + 4: -Float64FromFloat64(58.07917047017376), + 5: -Float64FromFloat64(31.44794705948885), +} +var _pS32 = [5]float64{ + 0: float64(35.85603380552097), + 1: float64(361.51398305030386), + 2: float64(1193.6078379211153), + 3: float64(1127.9967985690741), + 4: float64(173.58093081333575), +} + +var _pR2 = [6]float64{ + 0: -Float64FromFloat64(8.875343330325264e-08), + 1: -Float64FromFloat64(0.07030309954836247), + 2: -Float64FromFloat64(1.4507384678095299), + 3: -Float64FromFloat64(7.635696138235278), + 4: -Float64FromFloat64(11.193166886035675), + 5: -Float64FromFloat64(3.2336457935133534), +} +var _pS24 = [5]float64{ + 0: float64(22.22029975320888), + 1: float64(136.2067942182152), + 2: float64(270.4702786580835), + 3: float64(153.87539420832033), + 4: float64(14.65761769482562), +} + +func _pzero(tls *TLS, x float64) (r1 float64) { + var ix Tuint32_t + var p, q uintptr + var r, s, z Tdouble_t + _, _, _, _, _, _ = ix, p, q, r, s, z + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x40200000) { + p = uintptr(unsafe.Pointer(&_pR8)) + q = uintptr(unsafe.Pointer(&_pS8)) + } else { + if ix >= uint32(0x40122E8B) { + p = uintptr(unsafe.Pointer(&_pR5)) + q = uintptr(unsafe.Pointer(&_pS52)) + } else { + if ix >= uint32(0x4006DB6D) { + p = uintptr(unsafe.Pointer(&_pR3)) + q = uintptr(unsafe.Pointer(&_pS32)) + } else { /*ix >= 0x40000000*/ + p = uintptr(unsafe.Pointer(&_pR2)) + q = uintptr(unsafe.Pointer(&_pS24)) + } + } + } + z = float64(1) / float64(x*x) + r = **(**float64)(__ccgo_up(p)) + float64(z*(**(**float64)(__ccgo_up(p + 1*8))+float64(z*(**(**float64)(__ccgo_up(p + 2*8))+float64(z*(**(**float64)(__ccgo_up(p + 3*8))+float64(z*(**(**float64)(__ccgo_up(p + 4*8))+float64(z***(**float64)(__ccgo_up(p + 5*8))))))))))) + s = float64(1) + float64(z*(**(**float64)(__ccgo_up(q))+float64(z*(**(**float64)(__ccgo_up(q + 1*8))+float64(z*(**(**float64)(__ccgo_up(q + 2*8))+float64(z*(**(**float64)(__ccgo_up(q + 3*8))+float64(z***(**float64)(__ccgo_up(q + 4*8))))))))))) + return float64(1) + r/s +} + +// C documentation +// +// /* For x >= 8, the asymptotic expansions of qzero is +// * -1/8 s + 75/1024 s^3 - ..., where s = 1/x. +// * We approximate pzero by +// * qzero(x) = s*(-1.25 + (R/S)) +// * where R = qR0 + qR1*s^2 + qR2*s^4 + ... + qR5*s^10 +// * S = 1 + qS0*s^2 + ... + qS5*s^12 +// * and +// * | qzero(x)/s +1.25-R/S | <= 2 ** ( -61.22) +// */ +var _qR8 = [6]float64{ + 1: float64(0.0732421874999935), + 2: float64(11.76820646822527), + 3: float64(557.6733802564019), + 4: float64(8859.197207564686), + 5: float64(37014.62677768878), +} +var _qS8 = [6]float64{ + 0: float64(163.77602689568982), + 1: float64(8098.344946564498), + 2: float64(142538.29141912048), + 3: float64(803309.2571195144), + 4: float64(840501.5798190605), + 5: -Float64FromFloat64(343899.2935378666), +} + +var _qR5 = [6]float64{ + 0: float64(1.8408596359451553e-11), + 1: float64(0.07324217666126848), + 2: float64(5.8356350896205695), + 3: float64(135.11157728644983), + 4: float64(1027.243765961641), + 5: float64(1989.9778586460538), +} +var _qS5 = [6]float64{ + 0: float64(82.77661022365378), + 1: float64(2077.81416421393), + 2: float64(18847.28877857181), + 3: float64(56751.11228949473), + 4: float64(35976.75384251145), + 5: -Float64FromFloat64(5354.342756019448), +} + +var _qR3 = [6]float64{ + 0: float64(4.377410140897386e-09), + 1: float64(0.07324111800429114), + 2: float64(3.344231375161707), + 3: float64(42.621844074541265), + 4: float64(170.8080913405656), + 5: float64(166.73394869665117), +} +var _qS32 = [6]float64{ + 0: float64(48.75887297245872), + 1: float64(709.689221056606), + 2: float64(3704.1482262011136), + 3: float64(6460.425167525689), + 4: float64(2516.3336892036896), + 5: -Float64FromFloat64(149.2474518361564), +} + +var _qR2 = [6]float64{ + 0: float64(1.5044444488698327e-07), + 1: float64(0.07322342659630793), + 2: float64(1.99819174093816), + 3: float64(14.495602934788574), + 4: float64(31.666231750478154), + 5: float64(16.252707571092927), +} +var _qS22 = [6]float64{ + 0: float64(30.36558483552192), + 1: float64(269.34811860804984), + 2: float64(844.7837575953201), + 3: float64(882.9358451124886), + 4: float64(212.66638851179883), + 5: -Float64FromFloat64(5.3109549388266695), +} + +func _qzero(tls *TLS, x float64) (r1 float64) { + var ix Tuint32_t + var p, q uintptr + var r, s, z Tdouble_t + _, _, _, _, _, _ = ix, p, q, r, s, z + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x40200000) { + p = uintptr(unsafe.Pointer(&_qR8)) + q = uintptr(unsafe.Pointer(&_qS8)) + } else { + if ix >= uint32(0x40122E8B) { + p = uintptr(unsafe.Pointer(&_qR5)) + q = uintptr(unsafe.Pointer(&_qS5)) + } else { + if ix >= uint32(0x4006DB6D) { + p = uintptr(unsafe.Pointer(&_qR3)) + q = uintptr(unsafe.Pointer(&_qS32)) + } else { /*ix >= 0x40000000*/ + p = uintptr(unsafe.Pointer(&_qR2)) + q = uintptr(unsafe.Pointer(&_qS22)) + } + } + } + z = float64(1) / float64(x*x) + r = **(**float64)(__ccgo_up(p)) + float64(z*(**(**float64)(__ccgo_up(p + 1*8))+float64(z*(**(**float64)(__ccgo_up(p + 2*8))+float64(z*(**(**float64)(__ccgo_up(p + 3*8))+float64(z*(**(**float64)(__ccgo_up(p + 4*8))+float64(z***(**float64)(__ccgo_up(p + 5*8))))))))))) + s = float64(1) + float64(z*(**(**float64)(__ccgo_up(q))+float64(z*(**(**float64)(__ccgo_up(q + 1*8))+float64(z*(**(**float64)(__ccgo_up(q + 2*8))+float64(z*(**(**float64)(__ccgo_up(q + 3*8))+float64(z*(**(**float64)(__ccgo_up(q + 4*8))+float64(z***(**float64)(__ccgo_up(q + 5*8))))))))))))) + return (-Float64FromFloat64(0.125) + r/s) / x +} + +var _invsqrtpi1 = float32(0.56418961287) /* 0x3f106ebb */ +var _tpi1 = float32(0.63661974669) /* 0x3f22f983 */ + +func _common1(tls *TLS, ix Tuint32_t, x float32, y0 int32) (r float32) { + var c, cc, s, ss, z float32 + _, _, _, _, _ = c, cc, s, ss, z + /* + * j0(x) = 1/sqrt(pi) * (P(0,x)*cc - Q(0,x)*ss) / sqrt(x) + * y0(x) = 1/sqrt(pi) * (P(0,x)*ss + Q(0,x)*cc) / sqrt(x) + */ + s = Xsinf(tls, x) + c = Xcosf(tls, x) + if y0 != 0 { + c = -c + } + cc = s + c + if ix < uint32(0x7f000000) { + ss = s - c + z = -Xcosf(tls, float32(Float32FromInt32(2)*x)) + if float32(s*c) < Float32FromInt32(0) { + cc = z / ss + } else { + ss = z / cc + } + if ix < uint32(0x58800000) { + if y0 != 0 { + ss = -ss + } + cc = float32(_pzerof(tls, x)*cc) - float32(_qzerof(tls, x)*ss) + } + } + return float32(_invsqrtpi1*cc) / Xsqrtf(tls, x) +} + +// C documentation +// +// /* R0/S0 on [0, 2.00] */ + +var _R021 = float32(0.015625) /* 0x3c800000 */ +var _R031 = float32(-Float64FromFloat64(0.00018997929874)) /* 0xb947352e */ +var _R041 = float32(1.8295404516e-06) /* 0x35f58e88 */ +var _R051 = float32(-Float64FromFloat64(4.6183270541e-09)) /* 0xb19eaf3c */ +var _S011 = float32(0.015619102865) /* 0x3c7fe744 */ +var _S021 = float32(0.00011692678527) /* 0x38f53697 */ +var _S031 = float32(5.1354652442e-07) /* 0x3509daa6 */ +var _S041 = float32(1.1661400734e-09) /* 0x30a045e8 */ + +func Xj0f(tls *TLS, x float32) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var ix Tuint32_t + var r, s, z float32 + _, _, _, _ = ix, r, s, z + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x7f800000) { + return Float32FromInt32(1) / float32(x*x) + } + x = Xfabsf(tls, x) + if ix >= uint32(0x40000000) { /* |x| >= 2 */ + /* large ulp error near zeros */ + return _common1(tls, ix, x, 0) + } + if ix >= uint32(0x3a000000) { /* |x| >= 2**-11 */ + /* up to 4ulp error near 2 */ + z = float32(x * x) + r = float32(z * (_R021 + float32(z*(_R031+float32(z*(_R041+float32(z*_R051))))))) + s = Float32FromInt32(1) + float32(z*(_S011+float32(z*(_S021+float32(z*(_S031+float32(z*_S041))))))) + return float32((Float32FromInt32(1)+x/Float32FromInt32(2))*(Float32FromInt32(1)-x/Float32FromInt32(2))) + float32(z*(r/s)) + } + if ix >= uint32(0x21800000) { /* |x| >= 2**-60 */ + x = float32(float32(Float32FromFloat32(0.25)*x) * x) + } + return Float32FromInt32(1) - x +} + +var _u001 = float32(-Float64FromFloat64(0.073804296553)) /* 0xbd9726b5 */ +var _u011 = float32(0.17666645348) /* 0x3e34e80d */ +var _u021 = float32(-Float64FromFloat64(0.013818567619)) /* 0xbc626746 */ +var _u031 = float32(0.00034745343146) /* 0x39b62a69 */ +var _u041 = float32(-Float64FromFloat64(3.8140706238e-06)) /* 0xb67ff53c */ +var _u051 = float32(1.9559013964e-08) /* 0x32a802ba */ +var _u061 = float32(-Float64FromFloat64(3.982051841e-11)) /* 0xae2f21eb */ +var _v011 = float32(0.012730483897) /* 0x3c509385 */ +var _v021 = float32(7.6006865129e-05) /* 0x389f65e0 */ +var _v031 = float32(2.5915085189e-07) /* 0x348b216c */ +var _v041 = float32(4.4111031494e-10) /* 0x2ff280c2 */ + +func Xy0f(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ix Tuint32_t + var u, v, z float32 + _, _, _, _ = ix, u, v, z + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + if ix&uint32(0x7fffffff) == uint32(0) { + return float32(-Int32FromInt32(1)) / Float32FromFloat32(0) + } + if ix>>int32(31) != 0 { + return Float32FromInt32(0) / Float32FromFloat32(0) + } + if ix >= uint32(0x7f800000) { + return Float32FromInt32(1) / x + } + if ix >= uint32(0x40000000) { /* |x| >= 2.0 */ + /* large ulp error near zeros */ + return _common1(tls, ix, x, int32(1)) + } + if ix >= uint32(0x39000000) { /* x >= 2**-13 */ + /* large ulp error at x ~= 0.89 */ + z = float32(x * x) + u = _u001 + float32(z*(_u011+float32(z*(_u021+float32(z*(_u031+float32(z*(_u041+float32(z*(_u051+float32(z*_u061))))))))))) + v = Float32FromInt32(1) + float32(z*(_v011+float32(z*(_v021+float32(z*(_v031+float32(z*_v041))))))) + return u/v + float32(_tpi1*float32(Xj0f(tls, x)*Xlogf(tls, x))) + } + return _u001 + float32(_tpi1*Xlogf(tls, x)) +} + +// C documentation +// +// /* The asymptotic expansions of pzero is +// * 1 - 9/128 s^2 + 11025/98304 s^4 - ..., where s = 1/x. +// * For x >= 2, We approximate pzero by +// * pzero(x) = 1 + (R/S) +// * where R = pR0 + pR1*s^2 + pR2*s^4 + ... + pR5*s^10 +// * S = 1 + pS0*s^2 + ... + pS4*s^10 +// * and +// * | pzero(x)-1-R/S | <= 2 ** ( -60.26) +// */ +var _pR81 = [6]float32{ + 1: float32(-Float64FromFloat64(0.0703125)), + 2: float32(-Float64FromFloat64(8.0816707611)), + 3: float32(-Float64FromFloat64(257.06311035)), + 4: float32(-Float64FromFloat64(2485.2163086)), + 5: float32(-Float64FromFloat64(5253.0439453)), +} +var _pS81 = [5]float32{ + 0: float32(116.53436279), + 1: float32(3833.744873), + 2: float32(40597.855469), + 3: float32(116752.96875), + 4: float32(47627.726562), +} +var _pR51 = [6]float32{ + 0: float32(-Float64FromFloat64(1.1412546255e-11)), + 1: float32(-Float64FromFloat64(0.070312492549)), + 2: float32(-Float64FromFloat64(4.1596107483)), + 3: float32(-Float64FromFloat64(67.674766541)), + 4: float32(-Float64FromFloat64(331.23129272)), + 5: float32(-Float64FromFloat64(346.43338013)), +} +var _pS53 = [5]float32{ + 0: float32(60.753936768), + 1: float32(1051.2523193), + 2: float32(5978.9707031), + 3: float32(9625.4453125), + 4: float32(2406.0581055), +} + +var _pR31 = [6]float32{ + 0: float32(-Float64FromFloat64(2.5470459075e-09)), + 1: float32(-Float64FromFloat64(0.070311963558)), + 2: float32(-Float64FromFloat64(2.4090321064)), + 3: float32(-Float64FromFloat64(21.965976715)), + 4: float32(-Float64FromFloat64(58.079170227)), + 5: float32(-Float64FromFloat64(31.447946548)), +} +var _pS33 = [5]float32{ + 0: float32(35.856033325), + 1: float32(361.51397705), + 2: float32(1193.6077881), + 3: float32(1127.9968262), + 4: float32(173.58093262), +} + +var _pR21 = [6]float32{ + 0: float32(-Float64FromFloat64(8.8753431271e-08)), + 1: float32(-Float64FromFloat64(0.070303097367)), + 2: float32(-Float64FromFloat64(1.45073843)), + 3: float32(-Float64FromFloat64(7.6356959343)), + 4: float32(-Float64FromFloat64(11.193166733)), + 5: float32(-Float64FromFloat64(3.2336456776)), +} +var _pS25 = [5]float32{ + 0: float32(22.220300674), + 1: float32(136.20678711), + 2: float32(270.47027588), + 3: float32(153.87539673), + 4: float32(14.657617569), +} + +func _pzerof(tls *TLS, x float32) (r1 float32) { + var ix Tuint32_t + var p, q uintptr + var r, s, z Tfloat_t + _, _, _, _, _, _ = ix, p, q, r, s, z + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x41000000) { + p = uintptr(unsafe.Pointer(&_pR81)) + q = uintptr(unsafe.Pointer(&_pS81)) + } else { + if ix >= uint32(0x409173eb) { + p = uintptr(unsafe.Pointer(&_pR51)) + q = uintptr(unsafe.Pointer(&_pS53)) + } else { + if ix >= uint32(0x4036d917) { + p = uintptr(unsafe.Pointer(&_pR31)) + q = uintptr(unsafe.Pointer(&_pS33)) + } else { /*ix >= 0x40000000*/ + p = uintptr(unsafe.Pointer(&_pR21)) + q = uintptr(unsafe.Pointer(&_pS25)) + } + } + } + z = Float32FromFloat32(1) / float32(x*x) + r = **(**float32)(__ccgo_up(p)) + float32(z*(**(**float32)(__ccgo_up(p + 1*4))+float32(z*(**(**float32)(__ccgo_up(p + 2*4))+float32(z*(**(**float32)(__ccgo_up(p + 3*4))+float32(z*(**(**float32)(__ccgo_up(p + 4*4))+float32(z***(**float32)(__ccgo_up(p + 5*4))))))))))) + s = Float32FromFloat32(1) + float32(z*(**(**float32)(__ccgo_up(q))+float32(z*(**(**float32)(__ccgo_up(q + 1*4))+float32(z*(**(**float32)(__ccgo_up(q + 2*4))+float32(z*(**(**float32)(__ccgo_up(q + 3*4))+float32(z***(**float32)(__ccgo_up(q + 4*4))))))))))) + return Float32FromFloat32(1) + r/s +} + +// C documentation +// +// /* For x >= 8, the asymptotic expansions of qzero is +// * -1/8 s + 75/1024 s^3 - ..., where s = 1/x. +// * We approximate pzero by +// * qzero(x) = s*(-1.25 + (R/S)) +// * where R = qR0 + qR1*s^2 + qR2*s^4 + ... + qR5*s^10 +// * S = 1 + qS0*s^2 + ... + qS5*s^12 +// * and +// * | qzero(x)/s +1.25-R/S | <= 2 ** ( -61.22) +// */ +var _qR81 = [6]float32{ + 1: float32(0.0732421875), + 2: float32(11.768206596), + 3: float32(557.67340088), + 4: float32(8859.1972656), + 5: float32(37014.625), +} +var _qS81 = [6]float32{ + 0: float32(163.77603149), + 1: float32(8098.3447266), + 2: float32(142538.29688), + 3: float32(803309.25), + 4: float32(840501.5625), + 5: float32(-Float64FromFloat64(343899.28125)), +} + +var _qR51 = [6]float32{ + 0: float32(1.8408595828e-11), + 1: float32(0.073242180049), + 2: float32(5.8356351852), + 3: float32(135.11157227), + 4: float32(1027.2437744), + 5: float32(1989.9779053), +} +var _qS51 = [6]float32{ + 0: float32(82.776611328), + 1: float32(2077.814209), + 2: float32(18847.289062), + 3: float32(56751.113281), + 4: float32(35976.753906), + 5: float32(-Float64FromFloat64(5354.3427734)), +} + +var _qR31 = [6]float32{ + 0: float32(4.37740999e-09), + 1: float32(0.073241114616), + 2: float32(3.3442313671), + 3: float32(42.621845245), + 4: float32(170.80809021), + 5: float32(166.73394775), +} +var _qS33 = [6]float32{ + 0: float32(48.758872986), + 1: float32(709.68920898), + 2: float32(3704.1481934), + 3: float32(6460.425293), + 4: float32(2516.3337402), + 5: float32(-Float64FromFloat64(149.24745178)), +} + +var _qR21 = [6]float32{ + 0: float32(1.5044444979e-07), + 1: float32(0.073223426938), + 2: float32(1.9981917143), + 3: float32(14.495602608), + 4: float32(31.666231155), + 5: float32(16.252708435), +} +var _qS23 = [6]float32{ + 0: float32(30.365585327), + 1: float32(269.34811401), + 2: float32(844.78375244), + 3: float32(882.93585205), + 4: float32(212.66638184), + 5: float32(-Float64FromFloat64(5.3109550476)), +} + +func _qzerof(tls *TLS, x float32) (r1 float32) { + var ix Tuint32_t + var p, q uintptr + var r, s, z Tfloat_t + _, _, _, _, _, _ = ix, p, q, r, s, z + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x41000000) { + p = uintptr(unsafe.Pointer(&_qR81)) + q = uintptr(unsafe.Pointer(&_qS81)) + } else { + if ix >= uint32(0x409173eb) { + p = uintptr(unsafe.Pointer(&_qR51)) + q = uintptr(unsafe.Pointer(&_qS51)) + } else { + if ix >= uint32(0x4036d917) { + p = uintptr(unsafe.Pointer(&_qR31)) + q = uintptr(unsafe.Pointer(&_qS33)) + } else { /*ix >= 0x40000000*/ + p = uintptr(unsafe.Pointer(&_qR21)) + q = uintptr(unsafe.Pointer(&_qS23)) + } + } + } + z = Float32FromFloat32(1) / float32(x*x) + r = **(**float32)(__ccgo_up(p)) + float32(z*(**(**float32)(__ccgo_up(p + 1*4))+float32(z*(**(**float32)(__ccgo_up(p + 2*4))+float32(z*(**(**float32)(__ccgo_up(p + 3*4))+float32(z*(**(**float32)(__ccgo_up(p + 4*4))+float32(z***(**float32)(__ccgo_up(p + 5*4))))))))))) + s = Float32FromFloat32(1) + float32(z*(**(**float32)(__ccgo_up(q))+float32(z*(**(**float32)(__ccgo_up(q + 1*4))+float32(z*(**(**float32)(__ccgo_up(q + 2*4))+float32(z*(**(**float32)(__ccgo_up(q + 3*4))+float32(z*(**(**float32)(__ccgo_up(q + 4*4))+float32(z***(**float32)(__ccgo_up(q + 5*4))))))))))))) + return (-Float32FromFloat32(0.125) + r/s) / x +} + +var _invsqrtpi2 = float64(0.5641895835477563) /* 0x3FE20DD7, 0x50429B6D */ +var _tpi2 = float64(0.6366197723675814) /* 0x3FE45F30, 0x6DC9C883 */ + +func _common2(tls *TLS, ix Tuint32_t, x float64, y1 int32, sign int32) (r float64) { + var c, cc, s, ss, z float64 + _, _, _, _, _ = c, cc, s, ss, z + /* + * j1(x) = sqrt(2/(pi*x))*(p1(x)*cos(x-3pi/4)-q1(x)*sin(x-3pi/4)) + * y1(x) = sqrt(2/(pi*x))*(p1(x)*sin(x-3pi/4)+q1(x)*cos(x-3pi/4)) + * + * sin(x-3pi/4) = -(sin(x) + cos(x))/sqrt(2) + * cos(x-3pi/4) = (sin(x) - cos(x))/sqrt(2) + * sin(x) +- cos(x) = -cos(2x)/(sin(x) -+ cos(x)) + */ + s = Xsin(tls, x) + if y1 != 0 { + s = -s + } + c = Xcos(tls, x) + cc = s - c + if ix < uint32(0x7fe00000) { + /* avoid overflow in 2*x */ + ss = -s - c + z = Xcos(tls, float64(Float64FromInt32(2)*x)) + if float64(s*c) > Float64FromInt32(0) { + cc = z / ss + } else { + ss = z / cc + } + if ix < uint32(0x48000000) { + if y1 != 0 { + ss = -ss + } + cc = float64(_pone(tls, x)*cc) - float64(_qone(tls, x)*ss) + } + } + if sign != 0 { + cc = -cc + } + return float64(_invsqrtpi2*cc) / Xsqrt(tls, x) +} + +// C documentation +// +// /* R0/S0 on [0,2] */ + +var _r00 = -Float64FromFloat64(0.0625) /* 0xBFB00000, 0x00000000 */ +var _r01 = float64(0.001407056669551897) /* 0x3F570D9F, 0x98472C61 */ +var _r02 = -Float64FromFloat64(1.599556310840356e-05) /* 0xBEF0C5C6, 0xBA169668 */ +var _r03 = float64(4.9672799960958445e-08) /* 0x3E6AAAFA, 0x46CA0BD9 */ +var _s01 = float64(0.019153759953836346) /* 0x3F939D0B, 0x12637E53 */ +var _s02 = float64(0.00018594678558863092) /* 0x3F285F56, 0xB9CDF664 */ +var _s03 = float64(1.1771846404262368e-06) /* 0x3EB3BFF8, 0x333F8498 */ +var _s04 = float64(5.0463625707621704e-09) /* 0x3E35AC88, 0xC97DFF2C */ +var _s05 = float64(1.2354227442613791e-11) /* 0x3DAB2ACF, 0xCFB97ED8 */ + +func Xj1(tls *TLS, x float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var ix Tuint32_t + var r, s, z float64 + var sign int32 + _, _, _, _, _ = ix, r, s, sign, z + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x7ff00000) { + return Float64FromInt32(1) / float64(x*x) + } + if ix >= uint32(0x40000000) { /* |x| >= 2 */ + return _common2(tls, ix, Xfabs(tls, x), 0, sign) + } + if ix >= uint32(0x38000000) { /* |x| >= 2**-127 */ + z = float64(x * x) + r = float64(z * (_r00 + float64(z*(_r01+float64(z*(_r02+float64(z*_r03))))))) + s = Float64FromInt32(1) + float64(z*(_s01+float64(z*(_s02+float64(z*(_s03+float64(z*(_s04+float64(z*_s05))))))))) + z = r / s + } else { + /* avoid underflow, raise inexact if x!=0 */ + z = x + } + return float64((float64(0.5) + z) * x) +} + +var _U0 = [5]float64{ + 0: -Float64FromFloat64(0.19605709064623894), + 1: float64(0.05044387166398113), + 2: -Float64FromFloat64(0.0019125689587576355), + 3: float64(2.352526005616105e-05), + 4: -Float64FromFloat64(9.190991580398789e-08), +} +var _V0 = [5]float64{ + 0: float64(0.01991673182366499), + 1: float64(0.00020255258102513517), + 2: float64(1.3560880109751623e-06), + 3: float64(6.227414523646215e-09), + 4: float64(1.6655924620799208e-11), +} + +func Xy1(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __u Tuint64_t + var ix, lx Tuint32_t + var u, v, z float64 + _, _, _, _, _, _ = __u, ix, lx, u, v, z + __u = *(*Tuint64_t)(unsafe.Pointer(&x)) + ix = uint32(__u >> int32(32)) + lx = uint32(__u) + /* y1(nan)=nan, y1(<0)=nan, y1(0)=-inf, y1(inf)=0 */ + if ix<>int32(31) != 0 { + return Float64FromInt32(0) / Float64FromFloat64(0) + } + if ix >= uint32(0x7ff00000) { + return Float64FromInt32(1) / x + } + if ix >= uint32(0x40000000) { /* x >= 2 */ + return _common2(tls, ix, x, int32(1), 0) + } + if ix < uint32(0x3c900000) { /* x < 2**-54 */ + return -_tpi2 / x + } + z = float64(x * x) + u = _U0[0] + float64(z*(_U0[int32(1)]+float64(z*(_U0[int32(2)]+float64(z*(_U0[int32(3)]+float64(z*_U0[int32(4)]))))))) + v = Float64FromInt32(1) + float64(z*(_V0[0]+float64(z*(_V0[int32(1)]+float64(z*(_V0[int32(2)]+float64(z*(_V0[int32(3)]+float64(z*_V0[int32(4)]))))))))) + return float64(x*(u/v)) + float64(_tpi2*(float64(Xj1(tls, x)*Xlog(tls, x))-Float64FromInt32(1)/x)) +} + +/* For x >= 8, the asymptotic expansions of pone is + * 1 + 15/128 s^2 - 4725/2^15 s^4 - ..., where s = 1/x. + * We approximate pone by + * pone(x) = 1 + (R/S) + * where R = pr0 + pr1*s^2 + pr2*s^4 + ... + pr5*s^10 + * S = 1 + ps0*s^2 + ... + ps4*s^10 + * and + * | pone(x)-1-R/S | <= 2 ** ( -60.06) + */ + +var _pr8 = [6]float64{ + 1: float64(0.11718749999998865), + 2: float64(13.239480659307358), + 3: float64(412.05185430737856), + 4: float64(3874.7453891396053), + 5: float64(7914.479540318917), +} +var _ps8 = [5]float64{ + 0: float64(114.20737037567841), + 1: float64(3650.9308342085346), + 2: float64(36956.206026903346), + 3: float64(97602.79359349508), + 4: float64(30804.27206278888), +} + +var _pr5 = [6]float64{ + 0: float64(1.3199051955624352e-11), + 1: float64(0.1171874931906141), + 2: float64(6.802751278684329), + 3: float64(108.30818299018911), + 4: float64(517.6361395331998), + 5: float64(528.7152013633375), +} +var _ps5 = [5]float64{ + 0: float64(59.28059872211313), + 1: float64(991.4014187336144), + 2: float64(5353.26695291488), + 3: float64(7844.690317495512), + 4: float64(1504.0468881036106), +} + +var _pr3 = [6]float64{ + 0: float64(3.025039161373736e-09), + 1: float64(0.11718686556725359), + 2: float64(3.9329775003331564), + 3: float64(35.11940355916369), + 4: float64(91.05501107507813), + 5: float64(48.55906851973649), +} +var _ps3 = [5]float64{ + 0: float64(34.79130950012515), + 1: float64(336.76245874782575), + 2: float64(1046.8713997577513), + 3: float64(890.8113463982564), + 4: float64(103.78793243963928), +} + +var _pr2 = [6]float64{ + 0: float64(1.0771083010687374e-07), + 1: float64(0.11717621946268335), + 2: float64(2.368514966676088), + 3: float64(12.242610914826123), + 4: float64(17.693971127168773), + 5: float64(5.073523125888185), +} +var _ps2 = [5]float64{ + 0: float64(21.43648593638214), + 1: float64(125.29022716840275), + 2: float64(232.2764690571628), + 3: float64(117.6793732871471), + 4: float64(8.364638933716183), +} + +func _pone(tls *TLS, x float64) (r1 float64) { + var ix Tuint32_t + var p, q uintptr + var r, s, z Tdouble_t + _, _, _, _, _, _ = ix, p, q, r, s, z + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x40200000) { + p = uintptr(unsafe.Pointer(&_pr8)) + q = uintptr(unsafe.Pointer(&_ps8)) + } else { + if ix >= uint32(0x40122E8B) { + p = uintptr(unsafe.Pointer(&_pr5)) + q = uintptr(unsafe.Pointer(&_ps5)) + } else { + if ix >= uint32(0x4006DB6D) { + p = uintptr(unsafe.Pointer(&_pr3)) + q = uintptr(unsafe.Pointer(&_ps3)) + } else { /*ix >= 0x40000000*/ + p = uintptr(unsafe.Pointer(&_pr2)) + q = uintptr(unsafe.Pointer(&_ps2)) + } + } + } + z = float64(1) / float64(x*x) + r = **(**float64)(__ccgo_up(p)) + float64(z*(**(**float64)(__ccgo_up(p + 1*8))+float64(z*(**(**float64)(__ccgo_up(p + 2*8))+float64(z*(**(**float64)(__ccgo_up(p + 3*8))+float64(z*(**(**float64)(__ccgo_up(p + 4*8))+float64(z***(**float64)(__ccgo_up(p + 5*8))))))))))) + s = float64(1) + float64(z*(**(**float64)(__ccgo_up(q))+float64(z*(**(**float64)(__ccgo_up(q + 1*8))+float64(z*(**(**float64)(__ccgo_up(q + 2*8))+float64(z*(**(**float64)(__ccgo_up(q + 3*8))+float64(z***(**float64)(__ccgo_up(q + 4*8))))))))))) + return float64(1) + r/s +} + +/* For x >= 8, the asymptotic expansions of qone is + * 3/8 s - 105/1024 s^3 - ..., where s = 1/x. + * We approximate pone by + * qone(x) = s*(0.375 + (R/S)) + * where R = qr1*s^2 + qr2*s^4 + ... + qr5*s^10 + * S = 1 + qs1*s^2 + ... + qs6*s^12 + * and + * | qone(x)/s -0.375-R/S | <= 2 ** ( -61.13) + */ + +var _qr8 = [6]float64{ + 1: -Float64FromFloat64(0.10253906249999271), + 2: -Float64FromFloat64(16.271753454459), + 3: -Float64FromFloat64(759.6017225139501), + 4: -Float64FromFloat64(11849.806670242959), + 5: -Float64FromFloat64(48438.512428575035), +} +var _qs8 = [6]float64{ + 0: float64(161.3953697007229), + 1: float64(7825.385999233485), + 2: float64(133875.33628724958), + 3: float64(719657.7236832409), + 4: float64(666601.2326177764), + 5: -Float64FromFloat64(294490.26430383464), +} + +var _qr5 = [6]float64{ + 0: -Float64FromFloat64(2.089799311417641e-11), + 1: -Float64FromFloat64(0.10253905024137543), + 2: -Float64FromFloat64(8.05644828123936), + 3: -Float64FromFloat64(183.66960747488838), + 4: -Float64FromFloat64(1373.1937606550816), + 5: -Float64FromFloat64(2612.4444045321566), +} +var _qs5 = [6]float64{ + 0: float64(81.27655013843358), + 1: float64(1991.7987346048596), + 2: float64(17468.48519249089), + 3: float64(49851.42709103523), + 4: float64(27948.075163891812), + 5: -Float64FromFloat64(4719.183547951285), +} + +var _qr3 = [6]float64{ + 0: -Float64FromFloat64(5.078312264617666e-09), + 1: -Float64FromFloat64(0.10253782982083709), + 2: -Float64FromFloat64(4.610115811394734), + 3: -Float64FromFloat64(57.847221656278364), + 4: -Float64FromFloat64(228.2445407376317), + 5: -Float64FromFloat64(219.21012847890933), +} +var _qs3 = [6]float64{ + 0: float64(47.66515503237295), + 1: float64(673.8651126766997), + 2: float64(3380.1528667952634), + 3: float64(5547.729097207228), + 4: float64(1903.119193388108), + 5: -Float64FromFloat64(135.20119144430734), +} + +var _qr2 = [6]float64{ + 0: -Float64FromFloat64(1.7838172751095887e-07), + 1: -Float64FromFloat64(0.10251704260798555), + 2: -Float64FromFloat64(2.7522056827818746), + 3: -Float64FromFloat64(19.663616264370372), + 4: -Float64FromFloat64(42.32531333728305), + 5: -Float64FromFloat64(21.371921170370406), +} +var _qs2 = [6]float64{ + 0: float64(29.533362906052385), + 1: float64(252.98154998219053), + 2: float64(757.5028348686454), + 3: float64(739.3932053204672), + 4: float64(155.94900333666612), + 5: -Float64FromFloat64(4.959498988226282), +} + +func _qone(tls *TLS, x float64) (r1 float64) { + var ix Tuint32_t + var p, q uintptr + var r, s, z Tdouble_t + _, _, _, _, _, _ = ix, p, q, r, s, z + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x40200000) { + p = uintptr(unsafe.Pointer(&_qr8)) + q = uintptr(unsafe.Pointer(&_qs8)) + } else { + if ix >= uint32(0x40122E8B) { + p = uintptr(unsafe.Pointer(&_qr5)) + q = uintptr(unsafe.Pointer(&_qs5)) + } else { + if ix >= uint32(0x4006DB6D) { + p = uintptr(unsafe.Pointer(&_qr3)) + q = uintptr(unsafe.Pointer(&_qs3)) + } else { /*ix >= 0x40000000*/ + p = uintptr(unsafe.Pointer(&_qr2)) + q = uintptr(unsafe.Pointer(&_qs2)) + } + } + } + z = float64(1) / float64(x*x) + r = **(**float64)(__ccgo_up(p)) + float64(z*(**(**float64)(__ccgo_up(p + 1*8))+float64(z*(**(**float64)(__ccgo_up(p + 2*8))+float64(z*(**(**float64)(__ccgo_up(p + 3*8))+float64(z*(**(**float64)(__ccgo_up(p + 4*8))+float64(z***(**float64)(__ccgo_up(p + 5*8))))))))))) + s = float64(1) + float64(z*(**(**float64)(__ccgo_up(q))+float64(z*(**(**float64)(__ccgo_up(q + 1*8))+float64(z*(**(**float64)(__ccgo_up(q + 2*8))+float64(z*(**(**float64)(__ccgo_up(q + 3*8))+float64(z*(**(**float64)(__ccgo_up(q + 4*8))+float64(z***(**float64)(__ccgo_up(q + 5*8))))))))))))) + return (float64(0.375) + r/s) / x +} + +var _invsqrtpi3 = float32(0.56418961287) /* 0x3f106ebb */ +var _tpi3 = float32(0.63661974669) /* 0x3f22f983 */ + +func _common3(tls *TLS, ix Tuint32_t, x float32, y1 int32, sign int32) (r float32) { + var c, cc, s, ss, z float64 + _, _, _, _, _ = c, cc, s, ss, z + s = float64(Xsinf(tls, x)) + if y1 != 0 { + s = -s + } + c = float64(Xcosf(tls, x)) + cc = s - c + if ix < uint32(0x7f000000) { + ss = -s - c + z = float64(Xcosf(tls, float32(Float32FromInt32(2)*x))) + if float64(s*c) > Float64FromInt32(0) { + cc = z / ss + } else { + ss = z / cc + } + if ix < uint32(0x58800000) { + if y1 != 0 { + ss = -ss + } + cc = float64(float64(_ponef(tls, x))*cc) - float64(float64(_qonef(tls, x))*ss) + } + } + if sign != 0 { + cc = -cc + } + return float32(float64(float64(_invsqrtpi3)*cc) / float64(Xsqrtf(tls, x))) +} + +// C documentation +// +// /* R0/S0 on [0,2] */ + +var _r001 = float32(-Float64FromFloat64(0.0625)) /* 0xbd800000 */ +var _r011 = float32(0.0014070566976) /* 0x3ab86cfd */ +var _r021 = float32(-Float64FromFloat64(1.5995563444e-05)) /* 0xb7862e36 */ +var _r031 = float32(4.9672799207e-08) /* 0x335557d2 */ +var _s011 = float32(0.019153760746) /* 0x3c9ce859 */ +var _s021 = float32(0.00018594678841) /* 0x3942fab6 */ +var _s031 = float32(1.1771846857e-06) /* 0x359dffc2 */ +var _s041 = float32(5.046362439e-09) /* 0x31ad6446 */ +var _s051 = float32(1.2354227016e-11) /* 0x2d59567e */ + +func Xj1f(tls *TLS, x float32) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var ix Tuint32_t + var r, s, z float32 + var sign int32 + _, _, _, _, _ = ix, r, s, sign, z + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x7f800000) { + return Float32FromInt32(1) / float32(x*x) + } + if ix >= uint32(0x40000000) { /* |x| >= 2 */ + return _common3(tls, ix, Xfabsf(tls, x), 0, sign) + } + if ix >= uint32(0x39000000) { /* |x| >= 2**-13 */ + z = float32(x * x) + r = float32(z * (_r001 + float32(z*(_r011+float32(z*(_r021+float32(z*_r031))))))) + s = Float32FromInt32(1) + float32(z*(_s011+float32(z*(_s021+float32(z*(_s031+float32(z*(_s041+float32(z*_s051))))))))) + z = Float32FromFloat32(0.5) + r/s + } else { + z = Float32FromFloat32(0.5) + } + return float32(z * x) +} + +var _U01 = [5]float32{ + 0: float32(-Float64FromFloat64(0.19605709612)), + 1: float32(0.050443872809), + 2: float32(-Float64FromFloat64(0.0019125689287)), + 3: float32(2.3525259166e-05), + 4: float32(-Float64FromFloat64(9.1909917899e-08)), +} +var _V01 = [5]float32{ + 0: float32(0.019916731864), + 1: float32(0.0002025525755), + 2: float32(1.3560879779e-06), + 3: float32(6.227414584e-09), + 4: float32(1.6655924903e-11), +} + +func Xy1f(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ix Tuint32_t + var u, v, z float32 + _, _, _, _ = ix, u, v, z + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + if ix&uint32(0x7fffffff) == uint32(0) { + return float32(-Int32FromInt32(1)) / Float32FromFloat32(0) + } + if ix>>int32(31) != 0 { + return Float32FromInt32(0) / Float32FromFloat32(0) + } + if ix >= uint32(0x7f800000) { + return Float32FromInt32(1) / x + } + if ix >= uint32(0x40000000) { /* |x| >= 2.0 */ + return _common3(tls, ix, x, int32(1), 0) + } + if ix < uint32(0x33000000) { /* x < 2**-25 */ + return -_tpi3 / x + } + z = float32(x * x) + u = _U01[0] + float32(z*(_U01[int32(1)]+float32(z*(_U01[int32(2)]+float32(z*(_U01[int32(3)]+float32(z*_U01[int32(4)]))))))) + v = Float32FromFloat32(1) + float32(z*(_V01[0]+float32(z*(_V01[int32(1)]+float32(z*(_V01[int32(2)]+float32(z*(_V01[int32(3)]+float32(z*_V01[int32(4)]))))))))) + return float32(x*(u/v)) + float32(_tpi3*(float32(Xj1f(tls, x)*Xlogf(tls, x))-Float32FromFloat32(1)/x)) +} + +/* For x >= 8, the asymptotic expansions of pone is + * 1 + 15/128 s^2 - 4725/2^15 s^4 - ..., where s = 1/x. + * We approximate pone by + * pone(x) = 1 + (R/S) + * where R = pr0 + pr1*s^2 + pr2*s^4 + ... + pr5*s^10 + * S = 1 + ps0*s^2 + ... + ps4*s^10 + * and + * | pone(x)-1-R/S | <= 2 ** ( -60.06) + */ + +var _pr81 = [6]float32{ + 1: float32(0.1171875), + 2: float32(13.239480972), + 3: float32(412.05184937), + 4: float32(3874.7453613), + 5: float32(7914.4794922), +} +var _ps81 = [5]float32{ + 0: float32(114.20736694), + 1: float32(3650.9309082), + 2: float32(36956.207031), + 3: float32(97602.796875), + 4: float32(30804.271484), +} + +var _pr51 = [6]float32{ + 0: float32(1.3199052094e-11), + 1: float32(0.11718749255), + 2: float32(6.8027510643), + 3: float32(108.30818176), + 4: float32(517.63616943), + 5: float32(528.71520996), +} +var _ps51 = [5]float32{ + 0: float32(59.280597687), + 1: float32(991.40142822), + 2: float32(5353.2670898), + 3: float32(7844.6904297), + 4: float32(1504.046875), +} + +var _pr31 = [6]float32{ + 0: float32(3.0250391081e-09), + 1: float32(0.1171868667), + 2: float32(3.932977438), + 3: float32(35.119403839), + 4: float32(91.055007935), + 5: float32(48.559066772), +} +var _ps31 = [5]float32{ + 0: float32(34.791309357), + 1: float32(336.76245117), + 2: float32(1046.87146), + 3: float32(890.81134033), + 4: float32(103.78793335), +} + +var _pr21 = [6]float32{ + 0: float32(1.0771083225e-07), + 1: float32(0.11717621982), + 2: float32(2.3685150146), + 3: float32(12.242610931), + 4: float32(17.693971634), + 5: float32(5.0735230446), +} +var _ps21 = [5]float32{ + 0: float32(21.436485291), + 1: float32(125.2902298), + 2: float32(232.276474), + 3: float32(117.67937469), + 4: float32(8.3646392822), +} + +func _ponef(tls *TLS, x float32) (r1 float32) { + var ix Tuint32_t + var p, q uintptr + var r, s, z Tfloat_t + _, _, _, _, _, _ = ix, p, q, r, s, z + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x41000000) { + p = uintptr(unsafe.Pointer(&_pr81)) + q = uintptr(unsafe.Pointer(&_ps81)) + } else { + if ix >= uint32(0x409173eb) { + p = uintptr(unsafe.Pointer(&_pr51)) + q = uintptr(unsafe.Pointer(&_ps51)) + } else { + if ix >= uint32(0x4036d917) { + p = uintptr(unsafe.Pointer(&_pr31)) + q = uintptr(unsafe.Pointer(&_ps31)) + } else { /*ix >= 0x40000000*/ + p = uintptr(unsafe.Pointer(&_pr21)) + q = uintptr(unsafe.Pointer(&_ps21)) + } + } + } + z = Float32FromFloat32(1) / float32(x*x) + r = **(**float32)(__ccgo_up(p)) + float32(z*(**(**float32)(__ccgo_up(p + 1*4))+float32(z*(**(**float32)(__ccgo_up(p + 2*4))+float32(z*(**(**float32)(__ccgo_up(p + 3*4))+float32(z*(**(**float32)(__ccgo_up(p + 4*4))+float32(z***(**float32)(__ccgo_up(p + 5*4))))))))))) + s = Float32FromFloat32(1) + float32(z*(**(**float32)(__ccgo_up(q))+float32(z*(**(**float32)(__ccgo_up(q + 1*4))+float32(z*(**(**float32)(__ccgo_up(q + 2*4))+float32(z*(**(**float32)(__ccgo_up(q + 3*4))+float32(z***(**float32)(__ccgo_up(q + 4*4))))))))))) + return Float32FromFloat32(1) + r/s +} + +/* For x >= 8, the asymptotic expansions of qone is + * 3/8 s - 105/1024 s^3 - ..., where s = 1/x. + * We approximate pone by + * qone(x) = s*(0.375 + (R/S)) + * where R = qr1*s^2 + qr2*s^4 + ... + qr5*s^10 + * S = 1 + qs1*s^2 + ... + qs6*s^12 + * and + * | qone(x)/s -0.375-R/S | <= 2 ** ( -61.13) + */ + +var _qr81 = [6]float32{ + 1: float32(-Float64FromFloat64(0.1025390625)), + 2: float32(-Float64FromFloat64(16.271753311)), + 3: float32(-Float64FromFloat64(759.60174561)), + 4: float32(-Float64FromFloat64(11849.806641)), + 5: float32(-Float64FromFloat64(48438.511719)), +} +var _qs81 = [6]float32{ + 0: float32(161.39537048), + 1: float32(7825.3862305), + 2: float32(133875.34375), + 3: float32(719657.75), + 4: float32(666601.25), + 5: float32(-Float64FromFloat64(294490.25)), +} + +var _qr51 = [6]float32{ + 0: float32(-Float64FromFloat64(2.0897993405e-11)), + 1: float32(-Float64FromFloat64(0.1025390476)), + 2: float32(-Float64FromFloat64(8.0564479828)), + 3: float32(-Float64FromFloat64(183.66960144)), + 4: float32(-Float64FromFloat64(1373.1937256)), + 5: float32(-Float64FromFloat64(2612.4443359)), +} +var _qs51 = [6]float32{ + 0: float32(81.276550293), + 1: float32(1991.7987061), + 2: float32(17468.484375), + 3: float32(49851.425781), + 4: float32(27948.074219), + 5: float32(-Float64FromFloat64(4719.1835938)), +} + +var _qr31 = [6]float32{ + 0: float32(-Float64FromFloat64(5.0783124372e-09)), + 1: float32(-Float64FromFloat64(0.10253783315)), + 2: float32(-Float64FromFloat64(4.6101160049)), + 3: float32(-Float64FromFloat64(57.847221375)), + 4: float32(-Float64FromFloat64(228.24453735)), + 5: float32(-Float64FromFloat64(219.21012878)), +} +var _qs31 = [6]float32{ + 0: float32(47.665153503), + 1: float32(673.8651123), + 2: float32(3380.152832), + 3: float32(5547.7290039), + 4: float32(1903.1191406), + 5: float32(-Float64FromFloat64(135.20118713)), +} + +var _qr21 = [6]float32{ + 0: float32(-Float64FromFloat64(1.7838172539e-07)), + 1: float32(-Float64FromFloat64(0.10251704603)), + 2: float32(-Float64FromFloat64(2.7522056103)), + 3: float32(-Float64FromFloat64(19.66361618)), + 4: float32(-Float64FromFloat64(42.325313568)), + 5: float32(-Float64FromFloat64(21.371921539)), +} +var _qs21 = [6]float32{ + 0: float32(29.533363342), + 1: float32(252.98155212), + 2: float32(757.50280762), + 3: float32(739.39318848), + 4: float32(155.94900513), + 5: float32(-Float64FromFloat64(4.9594988823)), +} + +func _qonef(tls *TLS, x float32) (r1 float32) { + var ix Tuint32_t + var p, q uintptr + var r, s, z Tfloat_t + _, _, _, _, _, _ = ix, p, q, r, s, z + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x41000000) { + p = uintptr(unsafe.Pointer(&_qr81)) + q = uintptr(unsafe.Pointer(&_qs81)) + } else { + if ix >= uint32(0x409173eb) { + p = uintptr(unsafe.Pointer(&_qr51)) + q = uintptr(unsafe.Pointer(&_qs51)) + } else { + if ix >= uint32(0x4036d917) { + p = uintptr(unsafe.Pointer(&_qr31)) + q = uintptr(unsafe.Pointer(&_qs31)) + } else { /*ix >= 0x40000000*/ + p = uintptr(unsafe.Pointer(&_qr21)) + q = uintptr(unsafe.Pointer(&_qs21)) + } + } + } + z = Float32FromFloat32(1) / float32(x*x) + r = **(**float32)(__ccgo_up(p)) + float32(z*(**(**float32)(__ccgo_up(p + 1*4))+float32(z*(**(**float32)(__ccgo_up(p + 2*4))+float32(z*(**(**float32)(__ccgo_up(p + 3*4))+float32(z*(**(**float32)(__ccgo_up(p + 4*4))+float32(z***(**float32)(__ccgo_up(p + 5*4))))))))))) + s = Float32FromFloat32(1) + float32(z*(**(**float32)(__ccgo_up(q))+float32(z*(**(**float32)(__ccgo_up(q + 1*4))+float32(z*(**(**float32)(__ccgo_up(q + 2*4))+float32(z*(**(**float32)(__ccgo_up(q + 3*4))+float32(z*(**(**float32)(__ccgo_up(q + 4*4))+float32(z***(**float32)(__ccgo_up(q + 5*4))))))))))))) + return (Float32FromFloat32(0.375) + r/s) / x +} + +var _invsqrtpi4 = float64(0.5641895835477563) /* 0x3FE20DD7, 0x50429B6D */ + +func Xjn(tls *TLS, n int32, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v n=%v x=%v, (%v:)", tls, n, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __u Tuint64_t + var a, b, h, nf, q0, q1, t, temp, tmp, w, z, v6 float64 + var i, k, nm1, sign int32 + var ix, lx Tuint32_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = __u, a, b, h, i, ix, k, lx, nf, nm1, q0, q1, sign, t, temp, tmp, w, z, v6 + __u = *(*Tuint64_t)(unsafe.Pointer(&x)) + ix = uint32(__u >> int32(32)) + lx = uint32(__u) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix|(lx|-lx)>>int32(31) > uint32(0x7ff00000) { /* nan */ + return x + } + /* J(-n,x) = (-1)^n * J(n, x), J(n, -x) = (-1)^n * J(n, x) + * Thus, J(-n,x) = J(n,-x) + */ + /* nm1 = |n|-1 is used instead of |n| to handle n==INT_MIN */ + if n == 0 { + return Xj0(tls, x) + } + if n < 0 { + nm1 = -(n + int32(1)) + x = -x + sign = sign ^ int32(1) + } else { + nm1 = n - int32(1) + } + if nm1 == 0 { + return Xj1(tls, x) + } + sign = sign & n /* even n: 0, odd n: signbit(x) */ + x = Xfabs(tls, x) + if ix|lx == uint32(0) || ix == uint32(0x7ff00000) { /* if x is 0 or inf */ + b = float64(0) + } else { + if float64(nm1) < x { + /* Safe to use J(n+1,x)=2n/x *J(n,x)-J(n-1,x) */ + if ix >= uint32(0x52d00000) { /* x > 2**302 */ + /* (x >> n**2) + * Jn(x) = cos(x-(2n+1)*pi/4)*sqrt(2/x*pi) + * Yn(x) = sin(x-(2n+1)*pi/4)*sqrt(2/x*pi) + * Let s=sin(x), c=cos(x), + * xn=x-(2n+1)*pi/4, sqt2 = sqrt(2),then + * + * n sin(xn)*sqt2 cos(xn)*sqt2 + * ---------------------------------- + * 0 s-c c+s + * 1 -s-c -c+s + * 2 -s+c -c-s + * 3 s+c c-s + */ + switch nm1 & Int32FromInt32(3) { + case 0: + temp = -Xcos(tls, x) + Xsin(tls, x) + case int32(1): + temp = -Xcos(tls, x) - Xsin(tls, x) + case int32(2): + temp = Xcos(tls, x) - Xsin(tls, x) + default: + fallthrough + case int32(3): + temp = Xcos(tls, x) + Xsin(tls, x) + break + } + b = float64(_invsqrtpi4*temp) / Xsqrt(tls, x) + } else { + a = Xj0(tls, x) + b = Xj1(tls, x) + i = 0 + for { + if !(i < nm1) { + break + } + i = i + 1 + temp = b + b = float64(b*(float64(float64(2)*float64(i))/x)) - a /* avoid underflow */ + a = temp + goto _1 + _1: + } + } + } else { + if ix < uint32(0x3e100000) { /* x < 2**-29 */ + /* x is tiny, return the first Taylor expansion of J(n,x) + * J(n,x) = 1/n!*(x/2)^n - ... + */ + if nm1 > int32(32) { /* underflow */ + b = float64(0) + } else { + temp = float64(x * float64(0.5)) + b = temp + a = float64(1) + i = int32(2) + for { + if !(i <= nm1+int32(1)) { + break + } + a = a * float64(i) /* a = n! */ + b = b * temp /* b = (x/2)^n */ + goto _2 + _2: + ; + i = i + 1 + } + b = b / a + } + } else { + nf = float64(nm1) + float64(1) + w = float64(Float64FromInt32(2)*nf) / x + h = Float64FromInt32(2) / x + z = w + h + q0 = w + q1 = float64(w*z) - float64(1) + k = int32(1) + for q1 < float64(1e+09) { + k = k + int32(1) + z = z + h + tmp = float64(z*q1) - q0 + q0 = q1 + q1 = tmp + } + t = float64(0) + i = k + for { + if !(i >= 0) { + break + } + t = Float64FromInt32(1) / (float64(Float64FromInt32(2)*(float64(i)+nf))/x - t) + goto _3 + _3: + ; + i = i - 1 + } + a = t + b = float64(1) + /* estimate log((2/x)^n*n!) = n*log(2/x)+n*ln(n) + * Hence, if n*(log(2n/x)) > ... + * single 8.8722839355e+01 + * double 7.09782712893383973096e+02 + * long double 1.1356523406294143949491931077970765006170e+04 + * then recurrent value may overflow and the result is + * likely underflow to zero + */ + tmp = float64(nf * Xlog(tls, Xfabs(tls, w))) + if tmp < float64(709.782712893384) { + i = nm1 + for { + if !(i > 0) { + break + } + temp = b + b = float64(b*float64(float64(2)*float64(i)))/x - a + a = temp + goto _4 + _4: + ; + i = i - 1 + } + } else { + i = nm1 + for { + if !(i > 0) { + break + } + temp = b + b = float64(b*float64(float64(2)*float64(i)))/x - a + a = temp + /* scale b to avoid spurious overflow */ + if b > float64(3.273390607896142e+150) { + a = a / b + t = t / b + b = float64(1) + } + goto _5 + _5: + ; + i = i - 1 + } + } + z = Xj0(tls, x) + w = Xj1(tls, x) + if Xfabs(tls, z) >= Xfabs(tls, w) { + b = float64(t*z) / b + } else { + b = float64(t*w) / a + } + } + } + } + if sign != 0 { + v6 = -b + } else { + v6 = b + } + return v6 +} + +func Xyn(tls *TLS, n int32, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v n=%v x=%v, (%v:)", tls, n, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __u Tuint64_t + var a, b, temp, v1 float64 + var i, nm1, sign int32 + var ib, ix, lx Tuint32_t + _, _, _, _, _, _, _, _, _, _, _ = __u, a, b, i, ib, ix, lx, nm1, sign, temp, v1 + __u = *(*Tuint64_t)(unsafe.Pointer(&x)) + ix = uint32(__u >> int32(32)) + lx = uint32(__u) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix|(lx|-lx)>>int32(31) > uint32(0x7ff00000) { /* nan */ + return x + } + if sign != 0 && ix|lx != uint32(0) { /* x < 0 */ + return Float64FromInt32(0) / Float64FromFloat64(0) + } + if ix == uint32(0x7ff00000) { + return float64(0) + } + if n == 0 { + return Xy0(tls, x) + } + if n < 0 { + nm1 = -(n + int32(1)) + sign = n & int32(1) + } else { + nm1 = n - int32(1) + sign = 0 + } + if nm1 == 0 { + if sign != 0 { + v1 = -Xy1(tls, x) + } else { + v1 = Xy1(tls, x) + } + return v1 + } + if ix >= uint32(0x52d00000) { /* x > 2**302 */ + /* (x >> n**2) + * Jn(x) = cos(x-(2n+1)*pi/4)*sqrt(2/x*pi) + * Yn(x) = sin(x-(2n+1)*pi/4)*sqrt(2/x*pi) + * Let s=sin(x), c=cos(x), + * xn=x-(2n+1)*pi/4, sqt2 = sqrt(2),then + * + * n sin(xn)*sqt2 cos(xn)*sqt2 + * ---------------------------------- + * 0 s-c c+s + * 1 -s-c -c+s + * 2 -s+c -c-s + * 3 s+c c-s + */ + switch nm1 & Int32FromInt32(3) { + case 0: + temp = -Xsin(tls, x) - Xcos(tls, x) + case int32(1): + temp = -Xsin(tls, x) + Xcos(tls, x) + case int32(2): + temp = Xsin(tls, x) + Xcos(tls, x) + default: + fallthrough + case int32(3): + temp = Xsin(tls, x) - Xcos(tls, x) + break + } + b = float64(_invsqrtpi4*temp) / Xsqrt(tls, x) + } else { + a = Xy0(tls, x) + b = Xy1(tls, x) + /* quit if b is -inf */ + ib = uint32(*(*Tuint64_t)(unsafe.Pointer(&b)) >> int32(32)) + i = 0 + for { + if !(i < nm1 && ib != uint32(0xfff00000)) { + break + } + i = i + 1 + temp = b + b = float64(float64(float64(2)*float64(i))/x*b) - a + ib = uint32(*(*Tuint64_t)(unsafe.Pointer(&b)) >> int32(32)) + a = temp + goto _2 + _2: + } + } + if sign != 0 { + v1 = -b + } else { + v1 = b + } + return v1 +} + +func Xjnf(tls *TLS, n int32, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v n=%v x=%v, (%v:)", tls, n, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, b, h, nf, q0, q1, t, temp, tmp, w, z, v6 float32 + var i, k, nm1, sign int32 + var ix Tuint32_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = a, b, h, i, ix, k, nf, nm1, q0, q1, sign, t, temp, tmp, w, z, v6 + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix > uint32(0x7f800000) { /* nan */ + return x + } + /* J(-n,x) = J(n,-x), use |n|-1 to avoid overflow in -n */ + if n == 0 { + return Xj0f(tls, x) + } + if n < 0 { + nm1 = -(n + int32(1)) + x = -x + sign = sign ^ int32(1) + } else { + nm1 = n - int32(1) + } + if nm1 == 0 { + return Xj1f(tls, x) + } + sign = sign & n /* even n: 0, odd n: signbit(x) */ + x = Xfabsf(tls, x) + if ix == uint32(0) || ix == uint32(0x7f800000) { /* if x is 0 or inf */ + b = Float32FromFloat32(0) + } else { + if float32(nm1) < x { + /* Safe to use J(n+1,x)=2n/x *J(n,x)-J(n-1,x) */ + a = Xj0f(tls, x) + b = Xj1f(tls, x) + i = 0 + for { + if !(i < nm1) { + break + } + i = i + 1 + temp = b + b = float32(b*(float32(Float32FromFloat32(2)*float32(i))/x)) - a + a = temp + goto _1 + _1: + } + } else { + if ix < uint32(0x35800000) { /* x < 2**-20 */ + /* x is tiny, return the first Taylor expansion of J(n,x) + * J(n,x) = 1/n!*(x/2)^n - ... + */ + if nm1 > int32(8) { /* underflow */ + nm1 = int32(8) + } + temp = float32(Float32FromFloat32(0.5) * x) + b = temp + a = Float32FromFloat32(1) + i = int32(2) + for { + if !(i <= nm1+int32(1)) { + break + } + a = a * float32(i) /* a = n! */ + b = b * temp /* b = (x/2)^n */ + goto _2 + _2: + ; + i = i + 1 + } + b = b / a + } else { + nf = float32(nm1) + Float32FromFloat32(1) + w = float32(Float32FromInt32(2)*nf) / x + h = Float32FromInt32(2) / x + z = w + h + q0 = w + q1 = float32(w*z) - Float32FromFloat32(1) + k = int32(1) + for q1 < Float32FromFloat32(10000) { + k = k + int32(1) + z = z + h + tmp = float32(z*q1) - q0 + q0 = q1 + q1 = tmp + } + t = Float32FromFloat32(0) + i = k + for { + if !(i >= 0) { + break + } + t = Float32FromFloat32(1) / (float32(Float32FromInt32(2)*(float32(i)+nf))/x - t) + goto _3 + _3: + ; + i = i - 1 + } + a = t + b = Float32FromFloat32(1) + /* estimate log((2/x)^n*n!) = n*log(2/x)+n*ln(n) + * Hence, if n*(log(2n/x)) > ... + * single 8.8722839355e+01 + * double 7.09782712893383973096e+02 + * long double 1.1356523406294143949491931077970765006170e+04 + * then recurrent value may overflow and the result is + * likely underflow to zero + */ + tmp = float32(nf * Xlogf(tls, Xfabsf(tls, w))) + if tmp < Float32FromFloat32(88.721679688) { + i = nm1 + for { + if !(i > 0) { + break + } + temp = b + b = float32(float32(Float32FromFloat32(2)*float32(i))*b)/x - a + a = temp + goto _4 + _4: + ; + i = i - 1 + } + } else { + i = nm1 + for { + if !(i > 0) { + break + } + temp = b + b = float32(float32(Float32FromFloat32(2)*float32(i))*b)/x - a + a = temp + /* scale b to avoid spurious overflow */ + if b > Float32FromFloat32(1.152921504606847e+18) { + a = a / b + t = t / b + b = Float32FromFloat32(1) + } + goto _5 + _5: + ; + i = i - 1 + } + } + z = Xj0f(tls, x) + w = Xj1f(tls, x) + if Xfabsf(tls, z) >= Xfabsf(tls, w) { + b = float32(t*z) / b + } else { + b = float32(t*w) / a + } + } + } + } + if sign != 0 { + v6 = -b + } else { + v6 = b + } + return v6 +} + +func Xynf(tls *TLS, n int32, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v n=%v x=%v, (%v:)", tls, n, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, b, temp, v1 float32 + var i, nm1, sign int32 + var ib, ix Tuint32_t + _, _, _, _, _, _, _, _, _ = a, b, i, ib, ix, nm1, sign, temp, v1 + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix > uint32(0x7f800000) { /* nan */ + return x + } + if sign != 0 && ix != uint32(0) { /* x < 0 */ + return Float32FromInt32(0) / Float32FromFloat32(0) + } + if ix == uint32(0x7f800000) { + return Float32FromFloat32(0) + } + if n == 0 { + return Xy0f(tls, x) + } + if n < 0 { + nm1 = -(n + int32(1)) + sign = n & int32(1) + } else { + nm1 = n - int32(1) + sign = 0 + } + if nm1 == 0 { + if sign != 0 { + v1 = -Xy1f(tls, x) + } else { + v1 = Xy1f(tls, x) + } + return v1 + } + a = Xy0f(tls, x) + b = Xy1f(tls, x) + /* quit if b is -inf */ + ib = *(*Tuint32_t)(unsafe.Pointer(&b)) + i = 0 + for { + if !(i < nm1 && ib != uint32(0xff800000)) { + break + } + i = i + 1 + temp = b + b = float32(float32(Float32FromFloat32(2)*float32(i))/x*b) - a + ib = *(*Tuint32_t)(unsafe.Pointer(&b)) + a = temp + goto _2 + _2: + } + if sign != 0 { + v1 = -b + } else { + v1 = b + } + return v1 +} + +func Xldexp(tls *TLS, x float64, n int32) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xscalbn(tls, x, n) +} + +func Xldexpf(tls *TLS, x float32, n int32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xscalbnf(tls, x, n) +} + +func Xldexpl(tls *TLS, x float64, n int32) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xscalbnl(tls, x, n) +} + +func Xlgamma(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lgamma_r(tls, x, uintptr(unsafe.Pointer(&Xsigngam))) +} + +var _pi2 = float64(3.141592653589793) /* 0x400921FB, 0x54442D18 */ +var _a0 = float64(0.07721566490153287) /* 0x3FB3C467, 0xE37DB0C8 */ +var _a1 = float64(0.3224670334241136) /* 0x3FD4A34C, 0xC4A60FAD */ +var _a2 = float64(0.06735230105312927) /* 0x3FB13E00, 0x1A5562A7 */ +var _a3 = float64(0.020580808432516733) /* 0x3F951322, 0xAC92547B */ +var _a4 = float64(0.007385550860814029) /* 0x3F7E404F, 0xB68FEFE8 */ +var _a5 = float64(0.0028905138367341563) /* 0x3F67ADD8, 0xCCB7926B */ +var _a6 = float64(0.0011927076318336207) /* 0x3F538A94, 0x116F3F5D */ +var _a7 = float64(0.0005100697921535113) /* 0x3F40B6C6, 0x89B99C00 */ +var _a8 = float64(0.00022086279071390839) /* 0x3F2CF2EC, 0xED10E54D */ +var _a9 = float64(0.00010801156724758394) /* 0x3F1C5088, 0x987DFB07 */ +var _a10 = float64(2.5214456545125733e-05) /* 0x3EFA7074, 0x428CFA52 */ +var _a11 = float64(4.4864094961891516e-05) /* 0x3F07858E, 0x90A45837 */ +var _tc = float64(1.4616321449683622) /* 0x3FF762D8, 0x6356BE3F */ +var _tf = -Float64FromFloat64(0.12148629053584961) /* 0xBFBF19B9, 0xBCC38A42 */ +/* tt = -(tail of tf) */ +var _tt = -Float64FromFloat64(3.638676997039505e-18) /* 0xBC50C7CA, 0xA48A971F */ +var _t0 = float64(0.48383612272381005) /* 0x3FDEF72B, 0xC8EE38A2 */ +var _t1 = -Float64FromFloat64(0.1475877229945939) /* 0xBFC2E427, 0x8DC6C509 */ +var _t2 = float64(0.06462494023913339) /* 0x3FB08B42, 0x94D5419B */ +var _t3 = -Float64FromFloat64(0.032788541075985965) /* 0xBFA0C9A8, 0xDF35B713 */ +var _t4 = float64(0.01797067508118204) /* 0x3F9266E7, 0x970AF9EC */ +var _t5 = -Float64FromFloat64(0.010314224129834144) /* 0xBF851F9F, 0xBA91EC6A */ +var _t6 = float64(0.006100538702462913) /* 0x3F78FCE0, 0xE370E344 */ +var _t7 = -Float64FromFloat64(0.0036845201678113826) /* 0xBF6E2EFF, 0xB3E914D7 */ +var _t8 = float64(0.0022596478090061247) /* 0x3F6282D3, 0x2E15C915 */ +var _t9 = -Float64FromFloat64(0.0014034646998923284) /* 0xBF56FE8E, 0xBF2D1AF1 */ +var _t10 = float64(0.000881081882437654) /* 0x3F4CDF0C, 0xEF61A8E9 */ +var _t11 = -Float64FromFloat64(0.0005385953053567405) /* 0xBF41A610, 0x9C73E0EC */ +var _t12 = float64(0.00031563207090362595) /* 0x3F34AF6D, 0x6C0EBBF7 */ +var _t13 = -Float64FromFloat64(0.00031275416837512086) /* 0xBF347F24, 0xECC38C38 */ +var _t14 = float64(0.0003355291926355191) /* 0x3F35FD3E, 0xE8C2D3F4 */ +var _u0 = -Float64FromFloat64(0.07721566490153287) /* 0xBFB3C467, 0xE37DB0C8 */ +var _u1 = float64(0.6328270640250934) /* 0x3FE4401E, 0x8B005DFF */ +var _u2 = float64(1.4549225013723477) /* 0x3FF7475C, 0xD119BD6F */ +var _u3 = float64(0.9777175279633727) /* 0x3FEF4976, 0x44EA8450 */ +var _u4 = float64(0.22896372806469245) /* 0x3FCD4EAE, 0xF6010924 */ +var _u5 = float64(0.013381091853678766) /* 0x3F8B678B, 0xBF2BAB09 */ +var _v1 = float64(2.4559779371304113) /* 0x4003A5D7, 0xC2BD619C */ +var _v2 = float64(2.128489763798934) /* 0x40010725, 0xA42B18F5 */ +var _v3 = float64(0.7692851504566728) /* 0x3FE89DFB, 0xE45050AF */ +var _v4 = float64(0.10422264559336913) /* 0x3FBAAE55, 0xD6537C88 */ +var _v5 = float64(0.003217092422824239) /* 0x3F6A5ABB, 0x57D0CF61 */ +var _s0 = -Float64FromFloat64(0.07721566490153287) /* 0xBFB3C467, 0xE37DB0C8 */ +var _s1 = float64(0.21498241596060885) /* 0x3FCB848B, 0x36E20878 */ +var _s2 = float64(0.325778796408931) /* 0x3FD4D98F, 0x4F139F59 */ +var _s3 = float64(0.14635047265246445) /* 0x3FC2BB9C, 0xBEE5F2F7 */ +var _s4 = float64(0.02664227030336386) /* 0x3F9B481C, 0x7E939961 */ +var _s5 = float64(0.0018402845140733772) /* 0x3F5E26B6, 0x7368F239 */ +var _s6 = float64(3.194753265841009e-05) /* 0x3F00BFEC, 0xDD17E945 */ +var _r1 = float64(1.3920053346762105) /* 0x3FF645A7, 0x62C4AB74 */ +var _r2 = float64(0.7219355475671381) /* 0x3FE71A18, 0x93D3DCDC */ +var _r3 = float64(0.17193386563280308) /* 0x3FC601ED, 0xCCFBDF27 */ +var _r4 = float64(0.01864591917156529) /* 0x3F9317EA, 0x742ED475 */ +var _r5 = float64(0.0007779424963818936) /* 0x3F497DDA, 0xCA41A95B */ +var _r6 = float64(7.326684307446256e-06) /* 0x3EDEBAF7, 0xA5B38140 */ +var _w0 = float64(0.4189385332046727) /* 0x3FDACFE3, 0x90C97D69 */ +var _w1 = float64(0.08333333333333297) /* 0x3FB55555, 0x5555553B */ +var _w2 = -Float64FromFloat64(0.0027777777772877554) /* 0xBF66C16C, 0x16B02E5C */ +var _w3 = float64(0.0007936505586430196) /* 0x3F4A019F, 0x98CF38B6 */ +var _w4 = -Float64FromFloat64(0.00059518755745034) /* 0xBF4380CB, 0x8C0FE741 */ +var _w5 = float64(0.0008363399189962821) /* 0x3F4B67BA, 0x4CDAD5D1 */ +var _w6 = -Float64FromFloat64(0.0016309293409657527) /* 0xBF5AB89D, 0x0B9E43E4 */ + +// C documentation +// +// /* sin(pi*x) assuming x > 2^-100, if sin(pi*x)==0 the sign is arbitrary */ +func _sin_pi(tls *TLS, x float64) (r float64) { + var n int32 + _ = n + /* spurious inexact if odd int */ + x = float64(float64(2) * (float64(x*float64(0.5)) - Xfloor(tls, float64(x*float64(0.5))))) /* x mod 2.0 */ + n = int32(float64(x * Float64FromFloat64(4))) + n = (n + int32(1)) / int32(2) + x = x - float64(float32(n)*Float32FromFloat32(0.5)) + x = x * _pi2 + switch n { + default: /* case 4: */ + fallthrough + case 0: + return X__sin(tls, x, float64(0), 0) + case int32(1): + return X__cos(tls, x, float64(0)) + case int32(2): + return X__sin(tls, -x, float64(0), 0) + case int32(3): + return -X__cos(tls, x, float64(0)) + } + return r +} + +func X__lgamma_r(tls *TLS, x float64, signgamp uintptr) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x=%v signgamp=%v, (%v:)", tls, x, signgamp, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var i, sign int32 + var ix Tuint32_t + var nadj, p, p1, p2, p3, q, r, t, w, y, z Tdouble_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = i, ix, nadj, p, p1, p2, p3, q, r, sign, t, w, y, z + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + /* purge off +-inf, NaN, +-0, tiny and negative arguments */ + **(**int32)(__ccgo_up(signgamp)) = int32(1) + sign = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(63)) + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32) & uint64(0x7fffffff)) + if ix >= uint32(0x7ff00000) { + return float64(x * x) + } + if ix < Uint32FromInt32((Int32FromInt32(0x3ff)-Int32FromInt32(70))< float64(0) { + **(**int32)(__ccgo_up(signgamp)) = -int32(1) + } else { + t = -t + } + nadj = Xlog(tls, _pi2/Tdouble_t(t*x)) + } + /* purge off 1 and 2 */ + if (ix == uint32(0x3ff00000) || ix == uint32(0x40000000)) && uint32(*(*Tuint64_t)(unsafe.Pointer(bp))) == uint32(0) { + r = Float64FromInt32(0) + } else { + if ix < uint32(0x40000000) { + if ix <= uint32(0x3feccccc) { /* lgamma(x) = lgamma(x+1)-log(x) */ + r = -Xlog(tls, x) + if ix >= uint32(0x3FE76944) { + y = float64(1) - x + i = 0 + } else { + if ix >= uint32(0x3FCDA661) { + y = x - (_tc - Float64FromFloat64(1)) + i = int32(1) + } else { + y = x + i = int32(2) + } + } + } else { + r = float64(0) + if ix >= uint32(0x3FFBB4C3) { /* [1.7316,2] */ + y = float64(2) - x + i = 0 + } else { + if ix >= uint32(0x3FF3B4C4) { /* [1.23,1.73] */ + y = x - _tc + i = int32(1) + } else { + y = x - float64(1) + i = int32(2) + } + } + } + switch i { + case 0: + z = Tdouble_t(y * y) + p1 = _a0 + float64(z*(_a2+float64(z*(_a4+float64(z*(_a6+float64(z*(_a8+float64(z*_a10))))))))) + p2 = Tdouble_t(z * (_a1 + float64(z*(_a3+float64(z*(_a5+float64(z*(_a7+float64(z*(_a9+float64(z*_a11))))))))))) + p = Tdouble_t(y*p1) + p2 + r = r + (p - Tdouble_t(float64(0.5)*y)) + case int32(1): + z = Tdouble_t(y * y) + w = Tdouble_t(z * y) + p1 = _t0 + float64(w*(_t3+float64(w*(_t6+float64(w*(_t9+float64(w*_t12))))))) /* parallel comp */ + p2 = _t1 + float64(w*(_t4+float64(w*(_t7+float64(w*(_t10+float64(w*_t13))))))) + p3 = _t2 + float64(w*(_t5+float64(w*(_t8+float64(w*(_t11+float64(w*_t14))))))) + p = Tdouble_t(z*p1) - (_tt - float64(w*(p2+Tdouble_t(y*p3)))) + r = r + (_tf + p) + case int32(2): + p1 = Tdouble_t(y * (_u0 + float64(y*(_u1+float64(y*(_u2+float64(y*(_u3+float64(y*(_u4+float64(y*_u5))))))))))) + p2 = float64(1) + float64(y*(_v1+float64(y*(_v2+float64(y*(_v3+float64(y*(_v4+float64(y*_v5))))))))) + r = r + (float64(-Float64FromFloat64(0.5)*y) + p1/p2) + } + } else { + if ix < uint32(0x40200000) { /* x < 8.0 */ + i = int32(x) + y = x - float64(i) + p = Tdouble_t(y * (_s0 + float64(y*(_s1+float64(y*(_s2+float64(y*(_s3+float64(y*(_s4+float64(y*(_s5+float64(y*_s6))))))))))))) + q = float64(1) + float64(y*(_r1+float64(y*(_r2+float64(y*(_r3+float64(y*(_r4+float64(y*(_r5+float64(y*_r6))))))))))) + r = float64(float64(0.5)*y) + p/q + z = float64(1) /* lgamma(1+s) = log(s) + lgamma(s) */ + switch i { + case int32(7): + z = z * (y + float64(6)) /* FALLTHRU */ + fallthrough + case int32(6): + z = z * (y + float64(5)) /* FALLTHRU */ + fallthrough + case int32(5): + z = z * (y + float64(4)) /* FALLTHRU */ + fallthrough + case int32(4): + z = z * (y + float64(3)) /* FALLTHRU */ + fallthrough + case int32(3): + z = z * (y + float64(2)) /* FALLTHRU */ + r = r + Xlog(tls, z) + break + } + } else { + if ix < uint32(0x43900000) { /* 8.0 <= x < 2**58 */ + t = Xlog(tls, x) + z = float64(1) / x + y = Tdouble_t(z * z) + w = _w0 + float64(z*(_w1+float64(y*(_w2+float64(y*(_w3+float64(y*(_w4+float64(y*(_w5+float64(y*_w6))))))))))) + r = float64((x-float64(0.5))*(t-Float64FromFloat64(1))) + w + } else { /* 2**58 <= x <= inf */ + r = Tdouble_t(x * (Xlog(tls, x) - float64(1))) + } + } + } + } + if sign != 0 { + r = nadj - r + } + return r +} + +func Xlgamma_r(tls *TLS, x float64, signgamp uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v signgamp=%v, (%v:)", tls, x, signgamp, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lgamma_r(tls, x, signgamp) +} + +func Xlgammaf(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lgammaf_r(tls, x, uintptr(unsafe.Pointer(&Xsigngam))) +} + +var _pi3 = float32(3.141592741) /* 0x40490fdb */ +var _a01 = float32(0.077215664089) /* 0x3d9e233f */ +var _a12 = float32(0.32246702909) /* 0x3ea51a66 */ +var _a21 = float32(0.067352302372) /* 0x3d89f001 */ +var _a31 = float32(0.020580807701) /* 0x3ca89915 */ +var _a41 = float32(0.0073855509982) /* 0x3bf2027e */ +var _a51 = float32(0.0028905137442) /* 0x3b3d6ec6 */ +var _a61 = float32(0.0011927076848) /* 0x3a9c54a1 */ +var _a71 = float32(0.00051006977446) /* 0x3a05b634 */ +var _a81 = float32(0.00022086278477) /* 0x39679767 */ +var _a91 = float32(0.00010801156895) /* 0x38e28445 */ +var _a101 = float32(2.52144564e-05) /* 0x37d383a2 */ +var _a111 = float32(4.4864096708e-05) /* 0x383c2c75 */ +var _tc1 = float32(1.4616321325) /* 0x3fbb16c3 */ +var _tf1 = float32(-Float64FromFloat64(0.12148628384)) /* 0xbdf8cdcd */ +/* tt = -(tail of tf) */ +var _tt1 = float32(6.6971006518e-09) /* 0x31e61c52 */ +var _t01 = float32(0.48383611441) /* 0x3ef7b95e */ +var _t15 = float32(-Float64FromFloat64(0.14758771658)) /* 0xbe17213c */ +var _t21 = float32(0.064624942839) /* 0x3d845a15 */ +var _t31 = float32(-Float64FromFloat64(0.032788541168)) /* 0xbd064d47 */ +var _t41 = float32(0.017970675603) /* 0x3c93373d */ +var _t51 = float32(-Float64FromFloat64(0.010314224288)) /* 0xbc28fcfe */ +var _t61 = float32(0.0061005386524) /* 0x3bc7e707 */ +var _t71 = float32(-Float64FromFloat64(0.0036845202558)) /* 0xbb7177fe */ +var _t81 = float32(0.0022596477065) /* 0x3b141699 */ +var _t91 = float32(-Float64FromFloat64(0.0014034647029)) /* 0xbab7f476 */ +var _t101 = float32(0.00088108185446) /* 0x3a66f867 */ +var _t111 = float32(-Float64FromFloat64(0.00053859531181)) /* 0xba0d3085 */ +var _t121 = float32(0.00031563205994) /* 0x39a57b6b */ +var _t131 = float32(-Float64FromFloat64(0.00031275415677)) /* 0xb9a3f927 */ +var _t141 = float32(0.00033552918467) /* 0x39afe9f7 */ +var _u07 = float32(-Float64FromFloat64(0.077215664089)) /* 0xbd9e233f */ +var _u11 = float32(0.63282704353) /* 0x3f2200f4 */ +var _u21 = float32(1.4549225569) /* 0x3fba3ae7 */ +var _u31 = float32(0.97771751881) /* 0x3f7a4bb2 */ +var _u41 = float32(0.22896373272) /* 0x3e6a7578 */ +var _u51 = float32(0.013381091878) /* 0x3c5b3c5e */ +var _v11 = float32(2.4559779167) /* 0x401d2ebe */ +var _v21 = float32(2.1284897327) /* 0x4008392d */ +var _v31 = float32(0.76928514242) /* 0x3f44efdf */ +var _v41 = float32(0.10422264785) /* 0x3dd572af */ +var _v51 = float32(0.0032170924824) /* 0x3b52d5db */ +var _s06 = float32(-Float64FromFloat64(0.077215664089)) /* 0xbd9e233f */ +var _s11 = float32(0.21498242021) /* 0x3e5c245a */ +var _s21 = float32(0.32577878237) /* 0x3ea6cc7a */ +var _s31 = float32(0.14635047317) /* 0x3e15dce6 */ +var _s41 = float32(0.026642270386) /* 0x3cda40e4 */ +var _s51 = float32(0.0018402845599) /* 0x3af135b4 */ +var _s61 = float32(3.1947532989e-05) /* 0x3805ff67 */ +var _r11 = float32(1.3920053244) /* 0x3fb22d3b */ +var _r21 = float32(0.72193557024) /* 0x3f38d0c5 */ +var _r31 = float32(0.17193385959) /* 0x3e300f6e */ +var _r41 = float32(0.018645919859) /* 0x3c98bf54 */ +var _r51 = float32(0.00077794247773) /* 0x3a4beed6 */ +var _r61 = float32(7.3266842264e-06) /* 0x36f5d7bd */ +var _w01 = float32(0.41893854737) /* 0x3ed67f1d */ +var _w11 = float32(0.083333335817) /* 0x3daaaaab */ +var _w21 = float32(-Float64FromFloat64(0.002777777845)) /* 0xbb360b61 */ +var _w31 = float32(0.00079365057172) /* 0x3a500cfd */ +var _w41 = float32(-Float64FromFloat64(0.00059518753551)) /* 0xba1c065c */ +var _w51 = float32(0.00083633989561) /* 0x3a5b3dd2 */ +var _w61 = float32(-Float64FromFloat64(0.0016309292987)) /* 0xbad5c4e8 */ + +// C documentation +// +// /* sin(pi*x) assuming x > 2^-100, if sin(pi*x)==0 the sign is arbitrary */ +func _sin_pi1(tls *TLS, x float32) (r float32) { + var n int32 + var y Tdouble_t + _, _ = n, y + /* spurious inexact if odd int */ + x = float32(Float32FromInt32(2) * (float32(x*Float32FromFloat32(0.5)) - Xfloorf(tls, float32(x*Float32FromFloat32(0.5))))) /* x mod 2.0 */ + n = int32(float32(x * Float32FromInt32(4))) + n = (n + int32(1)) / int32(2) + y = float64(x - float32(float32(n)*Float32FromFloat32(0.5))) + y = y * float64(3.141592653589793) + switch n { + default: /* case 4: */ + fallthrough + case 0: + return X__sindf(tls, y) + case int32(1): + return X__cosdf(tls, y) + case int32(2): + return X__sindf(tls, -y) + case int32(3): + return -X__cosdf(tls, y) + } + return r +} + +func X__lgammaf_r(tls *TLS, x float32, signgamp uintptr) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x=%v signgamp=%v, (%v:)", tls, x, signgamp, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var i, sign int32 + var ix Tuint32_t + var nadj, p, p1, p2, p3, q, r, t, w, y, z float32 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = i, ix, nadj, p, p1, p2, p3, q, r, sign, t, w, y, z + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + /* purge off +-inf, NaN, +-0, tiny and negative arguments */ + **(**int32)(__ccgo_up(signgamp)) = int32(1) + sign = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(31)) + ix = *(*Tuint32_t)(unsafe.Pointer(bp)) & uint32(0x7fffffff) + if ix >= uint32(0x7f800000) { + return float32(x * x) + } + if ix < uint32(0x35000000) { /* |x| < 2**-21, return -log(|x|) */ + if sign != 0 { + **(**int32)(__ccgo_up(signgamp)) = -int32(1) + x = -x + } + return -Xlogf(tls, x) + } + if sign != 0 { + x = -x + t = _sin_pi1(tls, x) + if t == Float32FromFloat32(0) { /* -integer */ + return Float32FromFloat32(1) / (x - x) + } + if t > Float32FromFloat32(0) { + **(**int32)(__ccgo_up(signgamp)) = -int32(1) + } else { + t = -t + } + nadj = Xlogf(tls, _pi3/float32(t*x)) + } + /* purge off 1 and 2 */ + if ix == uint32(0x3f800000) || ix == uint32(0x40000000) { + r = Float32FromInt32(0) + } else { + if ix < uint32(0x40000000) { + if ix <= uint32(0x3f666666) { /* lgamma(x) = lgamma(x+1)-log(x) */ + r = -Xlogf(tls, x) + if ix >= uint32(0x3f3b4a20) { + y = Float32FromFloat32(1) - x + i = 0 + } else { + if ix >= uint32(0x3e6d3308) { + y = x - (_tc1 - Float32FromFloat32(1)) + i = int32(1) + } else { + y = x + i = int32(2) + } + } + } else { + r = Float32FromFloat32(0) + if ix >= uint32(0x3fdda618) { /* [1.7316,2] */ + y = Float32FromFloat32(2) - x + i = 0 + } else { + if ix >= uint32(0x3F9da620) { /* [1.23,1.73] */ + y = x - _tc1 + i = int32(1) + } else { + y = x - Float32FromFloat32(1) + i = int32(2) + } + } + } + switch i { + case 0: + z = float32(y * y) + p1 = _a01 + float32(z*(_a21+float32(z*(_a41+float32(z*(_a61+float32(z*(_a81+float32(z*_a101))))))))) + p2 = float32(z * (_a12 + float32(z*(_a31+float32(z*(_a51+float32(z*(_a71+float32(z*(_a91+float32(z*_a111))))))))))) + p = float32(y*p1) + p2 + r = r + (p - float32(Float32FromFloat32(0.5)*y)) + case int32(1): + z = float32(y * y) + w = float32(z * y) + p1 = _t01 + float32(w*(_t31+float32(w*(_t61+float32(w*(_t91+float32(w*_t121))))))) /* parallel comp */ + p2 = _t15 + float32(w*(_t41+float32(w*(_t71+float32(w*(_t101+float32(w*_t131))))))) + p3 = _t21 + float32(w*(_t51+float32(w*(_t81+float32(w*(_t111+float32(w*_t141))))))) + p = float32(z*p1) - (_tt1 - float32(w*(p2+float32(y*p3)))) + r = r + (_tf1 + p) + case int32(2): + p1 = float32(y * (_u07 + float32(y*(_u11+float32(y*(_u21+float32(y*(_u31+float32(y*(_u41+float32(y*_u51))))))))))) + p2 = Float32FromFloat32(1) + float32(y*(_v11+float32(y*(_v21+float32(y*(_v31+float32(y*(_v41+float32(y*_v51))))))))) + r = r + (float32(-Float32FromFloat32(0.5)*y) + p1/p2) + } + } else { + if ix < uint32(0x41000000) { /* x < 8.0 */ + i = int32(x) + y = x - float32(i) + p = float32(y * (_s06 + float32(y*(_s11+float32(y*(_s21+float32(y*(_s31+float32(y*(_s41+float32(y*(_s51+float32(y*_s61))))))))))))) + q = Float32FromFloat32(1) + float32(y*(_r11+float32(y*(_r21+float32(y*(_r31+float32(y*(_r41+float32(y*(_r51+float32(y*_r61))))))))))) + r = float32(Float32FromFloat32(0.5)*y) + p/q + z = Float32FromFloat32(1) /* lgamma(1+s) = log(s) + lgamma(s) */ + switch i { + case int32(7): + z = z * (y + Float32FromFloat32(6)) /* FALLTHRU */ + fallthrough + case int32(6): + z = z * (y + Float32FromFloat32(5)) /* FALLTHRU */ + fallthrough + case int32(5): + z = z * (y + Float32FromFloat32(4)) /* FALLTHRU */ + fallthrough + case int32(4): + z = z * (y + Float32FromFloat32(3)) /* FALLTHRU */ + fallthrough + case int32(3): + z = z * (y + Float32FromFloat32(2)) /* FALLTHRU */ + r = r + Xlogf(tls, z) + break + } + } else { + if ix < uint32(0x5c800000) { /* 8.0 <= x < 2**58 */ + t = Xlogf(tls, x) + z = Float32FromFloat32(1) / x + y = float32(z * z) + w = _w01 + float32(z*(_w11+float32(y*(_w21+float32(y*(_w31+float32(y*(_w41+float32(y*(_w51+float32(y*_w61))))))))))) + r = float32((x-Float32FromFloat32(0.5))*(t-Float32FromFloat32(1))) + w + } else { /* 2**58 <= x <= inf */ + r = float32(x * (Xlogf(tls, x) - Float32FromFloat32(1))) + } + } + } + } + if sign != 0 { + r = nadj - r + } + return r +} + +func Xlgammaf_r(tls *TLS, x float32, signgamp uintptr) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v signgamp=%v, (%v:)", tls, x, signgamp, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lgammaf_r(tls, x, signgamp) +} + +func X__lgammal_r(tls *TLS, x float64, sg uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v sg=%v, (%v:)", tls, x, sg, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lgamma_r(tls, x, sg) +} + +func Xlgammal(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lgammal_r(tls, x, uintptr(unsafe.Pointer(&Xsigngam))) +} + +func Xlgammal_r(tls *TLS, x float64, sg uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v sg=%v, (%v:)", tls, x, sg, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lgammal_r(tls, x, sg) +} + +/* uses LLONG_MAX > 2^53, see comments in lrint.c */ + +func Xllrint(tls *TLS, x float64) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int64(Xrint(tls, x)) +} + +/* uses LLONG_MAX > 2^24, see comments in lrint.c */ + +func Xllrintf(tls *TLS, x float32) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int64(Xrintf(tls, x)) +} + +func Xllrintl(tls *TLS, x float64) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xllrint(tls, x) +} + +func Xllround(tls *TLS, x float64) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int64(Xround(tls, x)) +} + +func Xllroundf(tls *TLS, x float32) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int64(Xroundf(tls, x)) +} + +func Xllroundl(tls *TLS, x float64) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int64(Xroundl(tls, x)) +} + +const LOG_POLY1_ORDER = 12 +const LOG_POLY_ORDER = 6 +const LOG_TABLE_BITS = 7 +const N4 = 128 +const OFF = 4604367669032910848 + +// C documentation +// +// /* Top 16 bits of a double. */ +func _top16(tls *TLS, x float64) (r Tuint32_t) { + return uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(48)) +} + +func Xlog(tls *TLS, x1 float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x1=%v, (%v:)", tls, x1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var hi, invc, kd, lo, logc, r, r2, r3, rhi, rlo, w, y1, z Tdouble_t + var i, k int32 + var ix, iz, tmp Tuint64_t + var top Tuint32_t + var y, v1, v2, v3, v4 float64 + var v5 bool + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = hi, i, invc, ix, iz, k, kd, lo, logc, r, r2, r3, rhi, rlo, tmp, top, w, y, y1, z, v1, v2, v3, v4, v5 + ix = *(*Tuint64_t)(unsafe.Pointer(&x1)) + top = _top16(tls, x1) + v1 = Float64FromFloat64(1) - Float64FromFloat64(0.0625) + v2 = Float64FromFloat64(1) + Float64FromFloat64(0.064697265625) + v3 = Float64FromFloat64(1) - Float64FromFloat64(0.0625) + if ix-*(*Tuint64_t)(unsafe.Pointer(&v1)) < *(*Tuint64_t)(unsafe.Pointer(&v2))-*(*Tuint64_t)(unsafe.Pointer(&v3)) { + /* Handle close to 1.0 inputs separately. */ + /* Fix sign of zero with downward rounding when x==1. */ + if v5 = Bool(int32(WANT_ROUNDING) != 0); v5 { + v4 = float64(1) + } + if v5 && ix == *(*Tuint64_t)(unsafe.Pointer(&v4)) { + return Float64FromInt32(0) + } + r = x1 - float64(1) + r2 = Tdouble_t(r * r) + r3 = Tdouble_t(r * r2) + y1 = Tdouble_t(r3 * (**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56 + 1*8)) + float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56 + 2*8))) + float64(r2***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56 + 3*8))) + float64(r3*(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56 + 4*8))+float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56 + 5*8)))+float64(r2***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56 + 6*8)))+float64(r3*(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56 + 7*8))+float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56 + 8*8)))+float64(r2***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56 + 9*8)))+float64(r3***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56 + 10*8))))))))) + /* Worst-case error is around 0.507 ULP. */ + w = Tdouble_t(r * float64(1.34217728e+08)) + rhi = r + w - w + rlo = r - rhi + w = Tdouble_t(Tdouble_t(rhi*rhi) * **(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56))) /* B[0] == -0.5. */ + hi = r + w + lo = r - hi + w + lo = lo + Tdouble_t(float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56))*rlo)*(rhi+r)) + y1 = y1 + lo + y1 = y1 + hi + y = y1 + v1 = y + goto _7 + _7: + return v1 + } + if top-uint32(0x0010) >= Uint32FromInt32(Int32FromInt32(0x7ff0)-Int32FromInt32(0x0010)) { + /* x < 0x1p-1022 or inf or nan. */ + if ix*uint64(2) == uint64(0) { + return X__math_divzero(tls, uint32(1)) + } + v1 = float64(X__builtin_inff(tls)) + if ix == *(*Tuint64_t)(unsafe.Pointer(&v1)) { /* log(inf) == inf. */ + return x1 + } + if top&uint32(0x8000) != 0 || top&uint32(0x7ff0) == uint32(0x7ff0) { + return X__math_invalid(tls, x1) + } + /* x is subnormal, normalize it. */ + v1 = float64(x1 * float64(4.503599627370496e+15)) + ix = *(*Tuint64_t)(unsafe.Pointer(&v1)) + ix = uint64(ix - Uint64FromUint64(52)<> (Int32FromInt32(52) - Int32FromInt32(LOG_TABLE_BITS)) % Uint64FromInt32(Int32FromInt32(1)<> int32(52)) /* arithmetic shift */ + iz = uint64(ix - tmp&(Uint64FromUint64(0xfff)< 0x1p-5: + 0.5 + 4.13/N + abs-poly-error*2^57 ULP (+ 0.002 ULP without fma) + Worst case error if |y| > 0x1p-4: + 0.5 + 2.06/N + abs-poly-error*2^56 ULP (+ 0.001 ULP without fma). */ + y1 = lo + Tdouble_t(r2***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 16))) + Tdouble_t(Tdouble_t(r*r2)*(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 16 + 1*8))+float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 16 + 2*8)))+float64(r2*(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 16 + 3*8))+float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 16 + 4*8))))))) + hi + y = y1 + v1 = y + goto _11 +_11: + return v1 +} + +var _ivln10hi = float64(0.4342944818781689) /* 0x3fdbcb7b, 0x15200000 */ +var _ivln10lo = float64(2.5082946711645275e-11) /* 0x3dbb9438, 0xca9aadd5 */ +var _log10_2hi = float64(0.30102999566361177) /* 0x3FD34413, 0x509F6000 */ +var _log10_2lo = float64(3.694239077158931e-13) /* 0x3D59FEF3, 0x11F12B36 */ +var _Lg1 = float64(0.6666666666666735) /* 3FE55555 55555593 */ +var _Lg2 = float64(0.3999999999940942) /* 3FD99999 9997FA04 */ +var _Lg3 = float64(0.2857142874366239) /* 3FD24924 94229359 */ +var _Lg4 = float64(0.22222198432149784) /* 3FCC71C5 1D8E78AF */ +var _Lg5 = float64(0.1818357216161805) /* 3FC74664 96CB03DE */ +var _Lg6 = float64(0.15313837699209373) /* 3FC39A09 D078C69F */ +var _Lg7 = float64(0.14798198605116586) /* 3FC2F112 DF3E5244 */ + +func Xlog10(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var R, dk, f, hfsq, hi, lo, s, t1, t2, val_hi, val_lo, w, y, z Tdouble_t + var hx Tuint32_t + var k int32 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = R, dk, f, hfsq, hi, hx, k, lo, s, t1, t2, val_hi, val_lo, w, y, z + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + hx = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32)) + k = 0 + if hx < uint32(0x00100000) || hx>>int32(31) != 0 { + if *(*Tuint64_t)(unsafe.Pointer(bp))<>int32(31) != 0 { + return (x - x) / float64(0) + } /* log(-#) = NaN */ + /* subnormal number, scale x up */ + k = k - int32(54) + x = x * float64(1.8014398509481984e+16) + *(*float64)(unsafe.Pointer(bp)) = x + hx = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32)) + } else { + if hx >= uint32(0x7ff00000) { + return x + } else { + if hx == uint32(0x3ff00000) && *(*Tuint64_t)(unsafe.Pointer(bp))<>Int32FromInt32(20)) - int32(0x3ff)) + hx = hx&uint32(0x000fffff) + uint32(0x3fe6a09e) + *(*Tuint64_t)(unsafe.Pointer(bp)) = uint64(hx)< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var R, dk, f, hfsq, hi, lo, s, t1, t2, w, z Tfloat_t + var ix Tuint32_t + var k int32 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _, _, _, _, _, _, _, _ = R, dk, f, hfsq, hi, ix, k, lo, s, t1, t2, w, z + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + ix = *(*Tuint32_t)(unsafe.Pointer(bp)) + k = 0 + if ix < uint32(0x00800000) || ix>>int32(31) != 0 { /* x < 2**-126 */ + if ix<>int32(31) != 0 { + return (x - x) / Float32FromFloat32(0) + } /* log(-#) = NaN */ + /* subnormal number, scale up x */ + k = k - int32(25) + x = x * Float32FromFloat32(3.3554432e+07) + *(*float32)(unsafe.Pointer(bp)) = x + ix = *(*Tuint32_t)(unsafe.Pointer(bp)) + } else { + if ix >= uint32(0x7f800000) { + return x + } else { + if ix == uint32(0x3f800000) { + return Float32FromInt32(0) + } + } + } + /* reduce x into [sqrt(2)/2, sqrt(2)] */ + ix = ix + Uint32FromInt32(Int32FromInt32(0x3f800000)-Int32FromInt32(0x3f3504f3)) + k = k + (Int32FromUint32(ix>>Int32FromInt32(23)) - int32(0x7f)) + ix = ix&uint32(0x007fffff) + uint32(0x3f3504f3) + *(*Tuint32_t)(unsafe.Pointer(bp)) = ix + x = *(*float32)(unsafe.Pointer(bp)) + f = x - Float32FromFloat32(1) + s = f / (Float32FromFloat32(2) + f) + z = Tfloat_t(s * s) + w = Tfloat_t(z * z) + t1 = Tfloat_t(w * (_Lg21 + float32(w*_Lg41))) + t2 = Tfloat_t(z * (_Lg11 + float32(w*_Lg31))) + R = t2 + t1 + hfsq = Tfloat_t(float32(Float32FromFloat32(0.5)*f) * f) + hi = f - hfsq + *(*float32)(unsafe.Pointer(bp)) = hi + *(*Tuint32_t)(unsafe.Pointer(bp)) &= uint32(0xfffff000) + hi = *(*float32)(unsafe.Pointer(bp)) + lo = f - hi - hfsq + Tfloat_t(s*(hfsq+R)) + dk = float32(k) + return Tfloat_t(dk*_log10_2lo1) + Tfloat_t((lo+hi)*_ivln10lo1) + Tfloat_t(lo*_ivln10hi1) + Tfloat_t(hi*_ivln10hi1) + Tfloat_t(dk*_log10_2hi1) +} + +func Xlog10l(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xlog10(tls, x) +} + +var _ln2_hi2 = float64(0.6931471803691238) /* 3fe62e42 fee00000 */ +var _ln2_lo2 = float64(1.9082149292705877e-10) /* 3dea39ef 35793c76 */ +var _Lg12 = float64(0.6666666666666735) /* 3FE55555 55555593 */ +var _Lg22 = float64(0.3999999999940942) /* 3FD99999 9997FA04 */ +var _Lg32 = float64(0.2857142874366239) /* 3FD24924 94229359 */ +var _Lg42 = float64(0.22222198432149784) /* 3FCC71C5 1D8E78AF */ +var _Lg51 = float64(0.1818357216161805) /* 3FC74664 96CB03DE */ +var _Lg61 = float64(0.15313837699209373) /* 3FC39A09 D078C69F */ +var _Lg71 = float64(0.14798198605116586) /* 3FC2F112 DF3E5244 */ + +func Xlog1p(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var R, c, dk, f, hfsq, s, t1, t2, w, z Tdouble_t + var hu, hx Tuint32_t + var k int32 + var y float32 + var y1, y2, v1 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = R, c, dk, f, hfsq, hu, hx, k, s, t1, t2, w, y, y1, y2, z, v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + hx = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32)) + k = int32(1) + if hx < uint32(0x3fda827a) || hx>>int32(31) != 0 { /* 1+x < sqrt(2)+ */ + if hx >= uint32(0xbff00000) { /* x <= -1.0 */ + if x3 == float64(-Int32FromInt32(1)) { + return x3 / float64(0) + } /* log1p(-1) = -inf */ + return (x3 - x3) / float64(0) /* log1p(x<-1) = NaN */ + } + if hx<= uint32(0x7ff00000) { + return x3 + } + } + if k != 0 { + *(*float64)(unsafe.Pointer(bp)) = Float64FromInt32(1) + x3 + hu = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32)) + hu = hu + Uint32FromInt32(Int32FromInt32(0x3ff00000)-Int32FromInt32(0x3fe6a09e)) + k = Int32FromUint32(hu>>Int32FromInt32(20)) - int32(0x3ff) + /* correction term ~ log(1+x)-log(u), avoid underflow in c/u */ + if k < int32(54) { + if k >= int32(2) { + v1 = Float64FromInt32(1) - (*(*float64)(unsafe.Pointer(bp)) - x3) + } else { + v1 = x3 - (*(*float64)(unsafe.Pointer(bp)) - Float64FromInt32(1)) + } + c = v1 + c = c / *(*float64)(unsafe.Pointer(bp)) + } else { + c = Float64FromInt32(0) + } + /* reduce u into [sqrt(2)/2, sqrt(2)] */ + hu = hu&uint32(0x000fffff) + uint32(0x3fe6a09e) + *(*Tuint64_t)(unsafe.Pointer(bp)) = uint64(hu)< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var R, c, dk, f, hfsq, s, t1, t2, w, z Tfloat_t + var iu, ix Tuint32_t + var k int32 + var y, v1 float32 + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = R, c, dk, f, hfsq, iu, ix, k, s, t1, t2, w, y, y1, y2, z, v1 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + ix = *(*Tuint32_t)(unsafe.Pointer(bp)) + k = int32(1) + if ix < uint32(0x3ed413d0) || ix>>int32(31) != 0 { /* 1+x < sqrt(2)+ */ + if ix >= uint32(0xbf800000) { /* x <= -1.0 */ + if x3 == float32(-Int32FromInt32(1)) { + return x3 / Float32FromFloat32(0) + } /* log1p(-1)=+inf */ + return (x3 - x3) / Float32FromFloat32(0) /* log1p(x<-1)=NaN */ + } + if ix<= uint32(0x7f800000) { + return x3 + } + } + if k != 0 { + *(*float32)(unsafe.Pointer(bp)) = Float32FromInt32(1) + x3 + iu = *(*Tuint32_t)(unsafe.Pointer(bp)) + iu = iu + Uint32FromInt32(Int32FromInt32(0x3f800000)-Int32FromInt32(0x3f3504f3)) + k = Int32FromUint32(iu>>Int32FromInt32(23)) - int32(0x7f) + /* correction term ~ log(1+x)-log(u), avoid underflow in c/u */ + if k < int32(25) { + if k >= int32(2) { + v1 = Float32FromInt32(1) - (*(*float32)(unsafe.Pointer(bp)) - x3) + } else { + v1 = x3 - (*(*float32)(unsafe.Pointer(bp)) - Float32FromInt32(1)) + } + c = v1 + c = c / *(*float32)(unsafe.Pointer(bp)) + } else { + c = Float32FromInt32(0) + } + /* reduce u into [sqrt(2)/2, sqrt(2)] */ + iu = iu&uint32(0x007fffff) + uint32(0x3f3504f3) + *(*Tuint32_t)(unsafe.Pointer(bp)) = iu + f = *(*float32)(unsafe.Pointer(bp)) - Float32FromInt32(1) + } + s = f / (Float32FromFloat32(2) + f) + z = Tfloat_t(s * s) + w = Tfloat_t(z * z) + t1 = Tfloat_t(w * (_Lg23 + float32(w*_Lg43))) + t2 = Tfloat_t(z * (_Lg13 + float32(w*_Lg33))) + R = t2 + t1 + hfsq = Tfloat_t(float32(Float32FromFloat32(0.5)*f) * f) + dk = float32(k) + return Tfloat_t(s*(hfsq+R)) + (Tfloat_t(dk*_ln2_lo3) + c) - hfsq + f + Tfloat_t(dk*_ln2_hi3) +} + +func Xlog1pl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xlog1p(tls, x) +} + +const LOG2_POLY1_ORDER = 11 +const LOG2_POLY_ORDER = 7 +const LOG2_TABLE_BITS = 6 +const N5 = 64 + +// C documentation +// +// /* Top 16 bits of a double. */ +func _top161(tls *TLS, x float64) (r Tuint32_t) { + return uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(48)) +} + +func Xlog2(tls *TLS, x1 float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x1=%v, (%v:)", tls, x1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var hi, invc, kd, lo, logc, p, r, r2, r4, t1, t2, t3, y1, z Tdouble_t + var i, k int32 + var ix, iz, tmp Tuint64_t + var top Tuint32_t + var y, v1, v2, v3, v4 float64 + var v5 bool + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = hi, i, invc, ix, iz, k, kd, lo, logc, p, r, r2, r4, t1, t2, t3, tmp, top, y, y1, z, v1, v2, v3, v4, v5 + ix = *(*Tuint64_t)(unsafe.Pointer(&x1)) + top = _top161(tls, x1) + v1 = Float64FromFloat64(1) - Float64FromFloat64(0.04239702224731445) + v2 = Float64FromFloat64(1) + Float64FromFloat64(0.044274330139160156) + v3 = Float64FromFloat64(1) - Float64FromFloat64(0.04239702224731445) + if ix-*(*Tuint64_t)(unsafe.Pointer(&v1)) < *(*Tuint64_t)(unsafe.Pointer(&v2))-*(*Tuint64_t)(unsafe.Pointer(&v3)) { + /* Handle close to 1.0 inputs separately. */ + /* Fix sign of zero with downward rounding when x==1. */ + if v5 = Bool(int32(WANT_ROUNDING) != 0); v5 { + v4 = float64(1) + } + if v5 && ix == *(*Tuint64_t)(unsafe.Pointer(&v4)) { + return Float64FromInt32(0) + } + r = x1 - float64(1) + hi = Tdouble_t(r * X__log2_data.Finvln2hi) + lo = Tdouble_t(r*X__log2_data.Finvln2lo) + float64(X__builtin_fma(tls, r, X__log2_data.Finvln2hi, -hi)) + r2 = Tdouble_t(r * r) /* rounding error: 0x1p-62. */ + r4 = Tdouble_t(r2 * r2) + /* Worst-case error is less than 0.54 ULP (0.55 ULP without fma). */ + p = Tdouble_t(r2 * (**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 64)) + float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 64 + 1*8))))) + y1 = hi + p + lo = lo + (hi - y1 + p) + lo = lo + Tdouble_t(r4*(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 64 + 2*8))+float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 64 + 3*8)))+float64(r2*(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 64 + 4*8))+float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 64 + 5*8)))))+float64(r4*(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 64 + 6*8))+float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 64 + 7*8)))+float64(r2*(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 64 + 8*8))+float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 64 + 9*8))))))))) + y1 = y1 + lo + y = y1 + v1 = y + goto _7 + _7: + return v1 + } + if top-uint32(0x0010) >= Uint32FromInt32(Int32FromInt32(0x7ff0)-Int32FromInt32(0x0010)) { + /* x < 0x1p-1022 or inf or nan. */ + if ix*uint64(2) == uint64(0) { + return X__math_divzero(tls, uint32(1)) + } + v1 = float64(X__builtin_inff(tls)) + if ix == *(*Tuint64_t)(unsafe.Pointer(&v1)) { /* log(inf) == inf. */ + return x1 + } + if top&uint32(0x8000) != 0 || top&uint32(0x7ff0) == uint32(0x7ff0) { + return X__math_invalid(tls, x1) + } + /* x is subnormal, normalize it. */ + v1 = float64(x1 * float64(4.503599627370496e+15)) + ix = *(*Tuint64_t)(unsafe.Pointer(&v1)) + ix = uint64(ix - Uint64FromUint64(52)<> (Int32FromInt32(52) - Int32FromInt32(LOG2_TABLE_BITS)) % Uint64FromInt32(Int32FromInt32(1)<> int32(52)) /* arithmetic shift */ + iz = uint64(ix - tmp&(Uint64FromUint64(0xfff)< 0x1p-4: 0.547 ULP (0.550 ULP without fma). + ~ 0.5 + 2/N/ln2 + abs-poly-error*0x1p56 ULP (+ 0.003 ULP without fma). */ + p = **(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 16)) + float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 16 + 1*8))) + float64(r2*(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 16 + 2*8))+float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 16 + 3*8))))) + float64(r4*(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 16 + 4*8))+float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 16 + 5*8))))) + y1 = lo + Tdouble_t(r2*p) + hi + y = y1 + v1 = y + goto _11 +_11: + return v1 +} + +type Tlog2_data = struct { + Finvln2hi float64 + Finvln2lo float64 + Fpoly [6]float64 + Fpoly1 [10]float64 + Ftab [64]struct { + Finvc float64 + Flogc float64 + } +} + +const LOG2F_POLY_ORDER = 4 +const LOG2F_TABLE_BITS = 4 +const N6 = 16 +const OFF1 = 1060306944 + +/* +LOG2F_TABLE_BITS = 4 +LOG2F_POLY_ORDER = 4 + +ULP error: 0.752 (nearest rounding.) +Relative error: 1.9 * 2^-26 (before rounding.) +*/ + +func Xlog2f(tls *TLS, x1 float32) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x1=%v, (%v:)", tls, x1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var i, k int32 + var invc, logc, p, r, r2, y0, y1, z Tdouble_t + var ix, iz, tmp, top Tuint32_t + var y, v1 float32 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = i, invc, ix, iz, k, logc, p, r, r2, tmp, top, y, y0, y1, z, v1 + ix = *(*Tuint32_t)(unsafe.Pointer(&x1)) + /* Fix sign of zero with downward rounding when x==1. */ + if Bool(int32(WANT_ROUNDING) != 0) && ix == uint32(0x3f800000) { + return Float32FromInt32(0) + } + if ix-uint32(0x00800000) >= Uint32FromInt32(Int32FromInt32(0x7f800000)-Int32FromInt32(0x00800000)) { + /* x < 0x1p-126 or inf or nan. */ + if ix*uint32(2) == uint32(0) { + return X__math_divzerof(tls, uint32(1)) + } + if ix == uint32(0x7f800000) { /* log2(inf) == inf. */ + return x1 + } + if ix&uint32(0x80000000) != 0 || ix*uint32(2) >= uint32(0xff000000) { + return X__math_invalidf(tls, x1) + } + /* x is subnormal, normalize it. */ + v1 = float32(x1 * Float32FromFloat32(8.388608e+06)) + ix = *(*Tuint32_t)(unsafe.Pointer(&v1)) + ix = ix - Uint32FromInt32(Int32FromInt32(23)<> (Int32FromInt32(23) - Int32FromInt32(LOG2F_TABLE_BITS)) % Uint32FromInt32(Int32FromInt32(1)<> int32(23) /* arithmetic shift */ + invc = (**(**struct { + Finvc float64 + Flogc float64 + })(__ccgo_up(uintptr(unsafe.Pointer(&X__log2f_data)) + uintptr(i)*16))).Finvc + logc = (**(**struct { + Finvc float64 + Flogc float64 + })(__ccgo_up(uintptr(unsafe.Pointer(&X__log2f_data)) + uintptr(i)*16))).Flogc + z = float64(*(*float32)(unsafe.Pointer(&iz))) + /* log2(x) = log1p(z/c-1)/ln2 + log2(c) + k */ + r = Tdouble_t(z*invc) - Float64FromInt32(1) + y0 = logc + float64(k) + /* Pipelined polynomial evaluation to approximate log1p(r)/ln2. */ + r2 = Tdouble_t(r * r) + y1 = float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2f_data)) + 256 + 1*8))*r) + **(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2f_data)) + 256 + 2*8)) + y1 = float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2f_data)) + 256))*r2) + y1 + p = float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2f_data)) + 256 + 3*8))*r) + y0 + y1 = Tdouble_t(y1*r2) + p + y = float32(y1) + v1 = y + goto _3 +_3: + return v1 +} + +type Tlog2f_data = struct { + Ftab [16]struct { + Finvc float64 + Flogc float64 + } + Fpoly [4]float64 +} + +func Xlog2l(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xlog2(tls, x) +} + +const N7 = 128 + +type Tlog_data = struct { + Fln2hi float64 + Fln2lo float64 + Fpoly [5]float64 + Fpoly1 [11]float64 + Ftab [128]struct { + Finvc float64 + Flogc float64 + } +} + +/* +special cases: + logb(+-0) = -inf, and raise divbyzero + logb(+-inf) = +inf + logb(nan) = nan +*/ + +func Xlogb(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uint64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _ = v1 + *(*float64)(unsafe.Pointer(bp)) = x + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + if !(BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) < Uint64FromUint64(0x7ff)< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uint32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _ = v1 + *(*float32)(unsafe.Pointer(bp)) = x + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + if !(BoolInt32(v1&Uint32FromInt32(0x7fffffff) < Uint32FromInt32(0x7f800000)) != 0) { + return float32(x * x) + } + if x == Float32FromInt32(0) { + return float32(-Int32FromInt32(1)) / float32(x*x) + } + return float32(Xilogbf(tls, x)) +} + +func Xlogbl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uint64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _ = v1 + *(*float64)(unsafe.Pointer(bp)) = x + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + if !(BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) < Uint64FromUint64(0x7ff)< %v", r1) }() + } + var i, k int32 + var invc, logc, r, r2, y0, y1, z Tdouble_t + var ix, iz, tmp Tuint32_t + var y, v1 float32 + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = i, invc, ix, iz, k, logc, r, r2, tmp, y, y0, y1, z, v1 + ix = *(*Tuint32_t)(unsafe.Pointer(&x1)) + /* Fix sign of zero with downward rounding when x==1. */ + if Bool(int32(WANT_ROUNDING) != 0) && ix == uint32(0x3f800000) { + return Float32FromInt32(0) + } + if ix-uint32(0x00800000) >= Uint32FromInt32(Int32FromInt32(0x7f800000)-Int32FromInt32(0x00800000)) { + /* x < 0x1p-126 or inf or nan. */ + if ix*uint32(2) == uint32(0) { + return X__math_divzerof(tls, uint32(1)) + } + if ix == uint32(0x7f800000) { /* log(inf) == inf. */ + return x1 + } + if ix&uint32(0x80000000) != 0 || ix*uint32(2) >= uint32(0xff000000) { + return X__math_invalidf(tls, x1) + } + /* x is subnormal, normalize it. */ + v1 = float32(x1 * Float32FromFloat32(8.388608e+06)) + ix = *(*Tuint32_t)(unsafe.Pointer(&v1)) + ix = ix - Uint32FromInt32(Int32FromInt32(23)<> (Int32FromInt32(23) - Int32FromInt32(LOGF_TABLE_BITS)) % Uint32FromInt32(Int32FromInt32(1)<> int32(23) /* arithmetic shift */ + iz = ix - tmp&uint32(0xff800000) + invc = (**(**struct { + Finvc float64 + Flogc float64 + })(__ccgo_up(uintptr(unsafe.Pointer(&X__logf_data)) + uintptr(i)*16))).Finvc + logc = (**(**struct { + Finvc float64 + Flogc float64 + })(__ccgo_up(uintptr(unsafe.Pointer(&X__logf_data)) + uintptr(i)*16))).Flogc + z = float64(*(*float32)(unsafe.Pointer(&iz))) + /* log(x) = log1p(z/c-1) + log(c) + k*Ln2 */ + r = Tdouble_t(z*invc) - Float64FromInt32(1) + y0 = logc + Tdouble_t(float64(k)*X__logf_data.Fln2) + /* Pipelined polynomial evaluation to approximate log1p(r). */ + r2 = Tdouble_t(r * r) + y1 = float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__logf_data)) + 264 + 1*8))*r) + **(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__logf_data)) + 264 + 2*8)) + y1 = float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__logf_data)) + 264))*r2) + y1 + y1 = Tdouble_t(y1*r2) + (y0 + r) + y = float32(y1) + v1 = y + goto _3 +_3: + return v1 +} + +type Tlogf_data = struct { + Ftab [16]struct { + Finvc float64 + Flogc float64 + } + Fln2 float64 + Fpoly [3]float64 +} + +func Xlogl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xlog(tls, x) +} + +/* +If the result cannot be represented (overflow, nan), then +lrint raises the invalid exception. + +Otherwise if the input was not an integer then the inexact +exception is raised. + +C99 is a bit vague about whether inexact exception is +allowed to be raised when invalid is raised. +(F.9 explicitly allows spurious inexact exceptions, F.9.6.5 +does not make it clear if that rule applies to lrint, but +IEEE 754r 7.8 seems to forbid spurious inexact exception in +the ineger conversion functions) + +So we try to make sure that no spurious inexact exception is +raised in case of an overflow. + +If the bit size of long > precision of double, then there +cannot be inexact rounding in case the result overflows, +otherwise LONG_MAX and LONG_MIN can be represented exactly +as a double. +*/ + +func Xlrint(tls *TLS, x float64) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int64(Xrint(tls, x)) +} + +/* uses LONG_MAX > 2^24, see comments in lrint.c */ + +func Xlrintf(tls *TLS, x float32) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int64(Xrintf(tls, x)) +} + +func Xlrintl(tls *TLS, x float64) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xlrint(tls, x) +} + +func Xlround(tls *TLS, x float64) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int64(Xround(tls, x)) +} + +func Xlroundf(tls *TLS, x float32) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int64(Xroundf(tls, x)) +} + +func Xlroundl(tls *TLS, x float64) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int64(Xroundl(tls, x)) +} + +func Xmodf(tls *TLS, x float64, iptr uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v iptr=%v, (%v:)", tls, x, iptr, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e int32 + var mask Tuint64_t + var v1 uintptr + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _ = e, mask, v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + e = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp))>>Int32FromInt32(52)&Uint64FromInt32(0x7ff)) - int32(0x3ff) + /* no fractional part */ + if e >= int32(52) { + **(**float64)(__ccgo_up(iptr)) = x + if e == int32(0x400) && *(*Tuint64_t)(unsafe.Pointer(bp))<> Int32FromInt32(12) >> e) + if *(*Tuint64_t)(unsafe.Pointer(bp))&mask == uint64(0) { + **(**float64)(__ccgo_up(iptr)) = x + v1 = bp + *(*Tuint64_t)(unsafe.Pointer(v1)) = Tuint64_t(*(*Tuint64_t)(unsafe.Pointer(v1)) & (Uint64FromUint64(1) << Int32FromInt32(63))) + return *(*float64)(unsafe.Pointer(bp)) + } + *(*Tuint64_t)(unsafe.Pointer(bp)) &= ^mask + **(**float64)(__ccgo_up(iptr)) = *(*float64)(unsafe.Pointer(bp)) + return x - *(*float64)(unsafe.Pointer(bp)) +} + +func Xmodff(tls *TLS, x float32, iptr uintptr) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v iptr=%v, (%v:)", tls, x, iptr, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e int32 + var mask Tuint32_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _ = e, mask + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + e = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp))>>Int32FromInt32(23)&Uint32FromInt32(0xff)) - int32(0x7f) + /* no fractional part */ + if e >= int32(23) { + **(**float32)(__ccgo_up(iptr)) = x + if e == int32(0x80) && *(*Tuint32_t)(unsafe.Pointer(bp))<> e) + if *(*Tuint32_t)(unsafe.Pointer(bp))&mask == uint32(0) { + **(**float32)(__ccgo_up(iptr)) = x + *(*Tuint32_t)(unsafe.Pointer(bp)) &= uint32(0x80000000) + return *(*float32)(unsafe.Pointer(bp)) + } + *(*Tuint32_t)(unsafe.Pointer(bp)) &= ^mask + **(**float32)(__ccgo_up(iptr)) = *(*float32)(unsafe.Pointer(bp)) + return x - *(*float32)(unsafe.Pointer(bp)) +} + +func Xmodfl(tls *TLS, x float64, iptr uintptr) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x=%v iptr=%v, (%v:)", tls, x, iptr, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var r float64 + var _ /* d at bp+0 */ float64 + _ = r + r = Xmodf(tls, x, bp) + **(**float64)(__ccgo_up(iptr)) = float64(**(**float64)(__ccgo_up(bp))) + return r +} + +func Xnan(tls *TLS, s uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + return float64(X__builtin_nanf(tls, __ccgo_ts)) +} + +func Xnanf(tls *TLS, s uintptr) (r float32) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__builtin_nanf(tls, __ccgo_ts) +} + +func Xnanl(tls *TLS, s uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + return float64(X__builtin_nanf(tls, __ccgo_ts)) +} + +func Xnextafter(tls *TLS, x3 float64, y3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v y3=%v, (%v:)", tls, x3, y3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var ax, ay Tuint64_t + var e int32 + var y float32 + var y1, y2 float64 + var v1, v3 uint64 + var v5 bool + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + var _ /* ux at bp+8 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + var _ /* uy at bp+16 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _, _, _ = ax, ay, e, y, y1, y2, v1, v3, v5 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp + 8)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp + 8)) = x3 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp + 16)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp + 16)) = y3 + *(*float64)(unsafe.Pointer(bp)) = x3 + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + ; + if v5 = BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)< ay || (*(*Tuint64_t)(unsafe.Pointer(bp + 8))^*(*Tuint64_t)(unsafe.Pointer(bp + 16)))&(Uint64FromUint64(1)<> int32(52) & uint64(0x7ff)) + /* raise overflow if ux.f is infinite and x is finite */ + if e == int32(0x7ff) { + if uint64(8) == uint64(4) { + y = float32(x3 + x3) + } else { + if uint64(8) == uint64(8) { + y1 = x3 + x3 + } else { + y2 = x3 + x3 + } + } + } + /* raise underflow if ux.f is subnormal or zero */ + if e == 0 { + if uint64(8) == uint64(4) { + y = float32(float64(x3*x3) + float64(*(*float64)(unsafe.Pointer(bp + 8))**(*float64)(unsafe.Pointer(bp + 8)))) + } else { + if uint64(8) == uint64(8) { + y1 = float64(x3*x3) + float64(*(*float64)(unsafe.Pointer(bp + 8))**(*float64)(unsafe.Pointer(bp + 8))) + } else { + y2 = float64(x3*x3) + float64(*(*float64)(unsafe.Pointer(bp + 8))**(*float64)(unsafe.Pointer(bp + 8))) + } + } + } + return *(*float64)(unsafe.Pointer(bp + 8)) +} + +func Xnextafterf(tls *TLS, x3 float32, y3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v y3=%v, (%v:)", tls, x3, y3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ax, ay, e Tuint32_t + var y float32 + var y1, y2 float64 + var v1, v3 uint32 + var v5 bool + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + var _ /* ux at bp+4 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + var _ /* uy at bp+8 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _, _, _, _ = ax, ay, e, y, y1, y2, v1, v3, v5 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp + 4)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp + 4)) = x3 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp + 8)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp + 8)) = y3 + *(*float32)(unsafe.Pointer(bp)) = x3 + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + ; + if v5 = BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0; !v5 { + *(*float32)(unsafe.Pointer(bp)) = y3 + v3 = *(*uint32)(unsafe.Pointer(bp)) + goto _4 + _4: + } + if v5 || BoolInt32(v3&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return x3 + y3 + } + if *(*Tuint32_t)(unsafe.Pointer(bp + 4)) == *(*Tuint32_t)(unsafe.Pointer(bp + 8)) { + return y3 + } + ax = *(*Tuint32_t)(unsafe.Pointer(bp + 4)) & uint32(0x7fffffff) + ay = *(*Tuint32_t)(unsafe.Pointer(bp + 8)) & uint32(0x7fffffff) + if ax == uint32(0) { + if ay == uint32(0) { + return y3 + } + *(*Tuint32_t)(unsafe.Pointer(bp + 4)) = *(*Tuint32_t)(unsafe.Pointer(bp + 8))&uint32(0x80000000) | uint32(1) + } else { + if ax > ay || (*(*Tuint32_t)(unsafe.Pointer(bp + 4))^*(*Tuint32_t)(unsafe.Pointer(bp + 8)))&uint32(0x80000000) != 0 { + *(*Tuint32_t)(unsafe.Pointer(bp + 4)) = *(*Tuint32_t)(unsafe.Pointer(bp + 4)) - 1 + } else { + *(*Tuint32_t)(unsafe.Pointer(bp + 4)) = *(*Tuint32_t)(unsafe.Pointer(bp + 4)) + 1 + } + } + e = *(*Tuint32_t)(unsafe.Pointer(bp + 4)) & uint32(0x7f800000) + /* raise overflow if ux.f is infinite and x is finite */ + if e == uint32(0x7f800000) { + if uint64(4) == uint64(4) { + y = x3 + x3 + } else { + if uint64(4) == uint64(8) { + y1 = float64(x3 + x3) + } else { + y2 = float64(x3 + x3) + } + } + } + /* raise underflow if ux.f is subnormal or zero */ + if e == uint32(0) { + if uint64(4) == uint64(4) { + y = float32(x3*x3) + float32(*(*float32)(unsafe.Pointer(bp + 4))**(*float32)(unsafe.Pointer(bp + 4))) + } else { + if uint64(4) == uint64(8) { + y1 = float64(float32(x3*x3) + float32(*(*float32)(unsafe.Pointer(bp + 4))**(*float32)(unsafe.Pointer(bp + 4)))) + } else { + y2 = float64(float32(x3*x3) + float32(*(*float32)(unsafe.Pointer(bp + 4))**(*float32)(unsafe.Pointer(bp + 4)))) + } + } + } + return *(*float32)(unsafe.Pointer(bp + 4)) +} + +func Xnextafterl(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xnextafter(tls, x, y) +} + +func Xnexttoward(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xnextafter(tls, x, y) +} + +func Xnexttowardf(tls *TLS, x3 float32, y3 float64) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v y3=%v, (%v:)", tls, x3, y3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var e Tuint32_t + var y float32 + var y1, y2 float64 + var v1 uint32 + var v3 uint64 + var v5 bool + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + var _ /* __u at bp+8 */ struct { + F__i [0]uint64 + F__f float64 + } + var _ /* ux at bp+16 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _, _ = e, y, y1, y2, v1, v3, v5 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp + 16)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp + 16)) = x3 + *(*float32)(unsafe.Pointer(bp)) = x3 + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + ; + if v5 = BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0; !v5 { + *(*float64)(unsafe.Pointer(bp + 8)) = y3 + v3 = *(*uint64)(unsafe.Pointer(bp + 8)) + goto _4 + _4: + } + if v5 || BoolInt32(v3&(-Uint64FromUint64(1)>>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(63)) != 0 { + *(*Tuint32_t)(unsafe.Pointer(bp + 16)) |= uint32(0x80000000) + } + } else { + if float64(x3) < y3 { + *(*float32)(unsafe.Pointer(bp)) = x3 + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _9 + _9: + if Int32FromUint32(v1>>Int32FromInt32(31)) != 0 { + *(*Tuint32_t)(unsafe.Pointer(bp + 16)) = *(*Tuint32_t)(unsafe.Pointer(bp + 16)) - 1 + } else { + *(*Tuint32_t)(unsafe.Pointer(bp + 16)) = *(*Tuint32_t)(unsafe.Pointer(bp + 16)) + 1 + } + } else { + *(*float32)(unsafe.Pointer(bp)) = x3 + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _11 + _11: + if Int32FromUint32(v1>>Int32FromInt32(31)) != 0 { + *(*Tuint32_t)(unsafe.Pointer(bp + 16)) = *(*Tuint32_t)(unsafe.Pointer(bp + 16)) + 1 + } else { + *(*Tuint32_t)(unsafe.Pointer(bp + 16)) = *(*Tuint32_t)(unsafe.Pointer(bp + 16)) - 1 + } + } + } + e = *(*Tuint32_t)(unsafe.Pointer(bp + 16)) & uint32(0x7f800000) + /* raise overflow if ux.f is infinite and x is finite */ + if e == uint32(0x7f800000) { + if uint64(4) == uint64(4) { + y = x3 + x3 + } else { + if uint64(4) == uint64(8) { + y1 = float64(x3 + x3) + } else { + y2 = float64(x3 + x3) + } + } + } + /* raise underflow if ux.f is subnormal or zero */ + if e == uint32(0) { + if uint64(4) == uint64(4) { + y = float32(x3*x3) + float32(*(*float32)(unsafe.Pointer(bp + 16))**(*float32)(unsafe.Pointer(bp + 16))) + } else { + if uint64(4) == uint64(8) { + y1 = float64(float32(x3*x3) + float32(*(*float32)(unsafe.Pointer(bp + 16))**(*float32)(unsafe.Pointer(bp + 16)))) + } else { + y2 = float64(float32(x3*x3) + float32(*(*float32)(unsafe.Pointer(bp + 16))**(*float32)(unsafe.Pointer(bp + 16)))) + } + } + } + return *(*float32)(unsafe.Pointer(bp + 16)) +} + +func Xnexttowardl(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xnextafterl(tls, x, y) +} + +const OFF2 = 4604531861337669632 +const POW_LOG_POLY_ORDER = 8 +const POW_LOG_TABLE_BITS = 7 +const SIGN_BIAS = 262144 + +/* +Worst-case error: 0.54 ULP (~= ulperr_exp + 1024*Ln2*relerr_log*2^53) +relerr_log: 1.3 * 2^-68 (Relative error of log, 1.5 * 2^-68 without fma) +ulperr_exp: 0.509 ULP (ULP error of exp, 0.511 ULP without fma) +*/ + +// C documentation +// +// /* Top 12 bits of a double (sign and exponent bits). */ +func _top124(tls *TLS, x float64) (r Tuint32_t) { + return uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(52)) +} + +// C documentation +// +// /* Compute y+TAIL = log(x) where the rounded result is y and TAIL has about +// additional 15 bits precision. IX is the bit representation of x, but +// normalized in the subnormal range using the sign bit for the exponent. */ +func _log_inline(tls *TLS, ix Tuint64_t, tail uintptr) (r1 Tdouble_t) { + var ar, ar2, ar3, hi, invc, kd, lo, lo1, lo2, lo3, lo4, logc, logctail, p, r, t1, t2, y, z Tdouble_t + var i, k int32 + var iz, tmp Tuint64_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = ar, ar2, ar3, hi, i, invc, iz, k, kd, lo, lo1, lo2, lo3, lo4, logc, logctail, p, r, t1, t2, tmp, y, z + /* x = 2^k z; where z is in range [OFF,2*OFF) and exact. + The range is split into N subintervals. + The ith subinterval contains z and c is near its center. */ + tmp = ix - uint64(OFF2) + i = Int32FromUint64(tmp >> (Int32FromInt32(52) - Int32FromInt32(POW_LOG_TABLE_BITS)) % Uint64FromInt32(Int32FromInt32(1)<> int32(52)) /* arithmetic shift */ + iz = uint64(ix - tmp&(Uint64FromUint64(0xfff)< 0, the exponent of scale might have overflowed by <= 460. */ + sbits = uint64(sbits - Uint64FromUint64(1009)<= _top124(tls, float64(512))-_top124(tls, float64(5.551115123125783e-17)) { + if abstop-_top124(tls, float64(5.551115123125783e-17)) >= uint32(0x80000000) { + /* Avoid spurious underflow for tiny x. */ + /* Note: 0 is common input. */ + one = float64(1) + x1 + if sign_bias != 0 { + v1 = -one + } else { + v1 = one + } + return v1 + } + if abstop >= _top124(tls, float64(1024)) { + /* Note: inf and nan are already handled. */ + v2 = x1 + if *(*Tuint64_t)(unsafe.Pointer(&v2))>>int32(63) != 0 { + return X__math_uflow(tls, sign_bias) + } else { + return X__math_oflow(tls, sign_bias) + } + } + /* Large x is special cased below. */ + abstop = uint32(0) + } + /* exp(x) = 2^(k/N) * exp(r), with exp(r) in [2^(-1/2N),2^(1/2N)]. */ + /* x = ln2/N*k + r, with int k and r in [-ln2/2N, ln2/2N]. */ + z = Tdouble_t(X__exp_data.Finvln2N * x1) + /* z - kd is in [-1, 1] in non-nearest rounding modes. */ + y = z + X__exp_data.Fshift + v2 = y + goto _4 +_4: + kd = v2 + v2 = kd + ki = *(*Tuint64_t)(unsafe.Pointer(&v2)) + kd = kd - X__exp_data.Fshift + r = x1 + Tdouble_t(kd*X__exp_data.Fnegln2hiN) + Tdouble_t(kd*X__exp_data.Fnegln2loN) + /* The code assumes 2^-200 < |xtail| < 2^-8/N. */ + r = r + xtail + /* 2^(k/N) ~= scale * (1 + tail). */ + idx = uint64(2) * (ki % Uint64FromInt32(Int32FromInt32(1)< 2^-200 and scale > 2^-739, so there + is no spurious underflow here even without fma. */ + y = scale + Tdouble_t(scale*tmp) + v2 = y + goto _8 +_8: + return v2 +} + +// C documentation +// +// /* Returns 0 if not int, 1 if odd int, 2 if even int. The argument is +// the bit representation of a non-zero finite floating-point value. */ +func _checkint(tls *TLS, iy Tuint64_t) (r int32) { + var e int32 + _ = e + e = Int32FromUint64(iy >> int32(52) & uint64(0x7ff)) + if e < int32(0x3ff) { + return 0 + } + if e > Int32FromInt32(0x3ff)+Int32FromInt32(52) { + return int32(2) + } + if iy&(uint64(1)<<(Int32FromInt32(0x3ff)+Int32FromInt32(52)-e)-uint64(1)) != 0 { + return 0 + } + if iy&(uint64(1)<<(Int32FromInt32(0x3ff)+Int32FromInt32(52)-e)) != 0 { + return int32(1) + } + return int32(2) +} + +// C documentation +// +// /* Returns 1 if input is the bit representation of 0, infinity or nan. */ +func _zeroinfnan(tls *TLS, i Tuint64_t) (r int32) { + var v1 float64 + _ = v1 + v1 = float64(X__builtin_inff(tls)) + return BoolInt32(uint64(2)*i-uint64(1) >= uint64(2)**(*Tuint64_t)(unsafe.Pointer(&v1))-uint64(1)) +} + +func Xpow(tls *TLS, x1 float64, y1 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x1=%v y1=%v, (%v:)", tls, x1, y1, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ehi, elo, hi, x2 Tdouble_t + var ix, iy Tuint64_t + var sign_bias, topx, topy Tuint32_t + var y, v1, v2 float64 + var yint int32 + var v4 bool + var _ /* lo at bp+0 */ Tdouble_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = ehi, elo, hi, ix, iy, sign_bias, topx, topy, x2, y, yint, v1, v2, v4 + sign_bias = uint32(0) + ix = *(*Tuint64_t)(unsafe.Pointer(&x1)) + iy = *(*Tuint64_t)(unsafe.Pointer(&y1)) + topx = _top124(tls, x1) + topy = _top124(tls, y1) + if topx-uint32(0x001) >= Uint32FromInt32(Int32FromInt32(0x7ff)-Int32FromInt32(0x001)) || topy&uint32(0x7ff)-uint32(0x3be) >= Uint32FromInt32(Int32FromInt32(0x43e)-Int32FromInt32(0x3be)) { + /* Note: if |y| > 1075 * ln2 * 2^53 ~= 0x1.749p62 then pow(x,y) = inf/0 + and if |y| < 2^-54 / 1075 ~= 0x1.e7b6p-65 then pow(x,y) = +-1. */ + /* Special cases: (x < 0x1p-126 or inf or nan) or + (|y| < 0x1p-65 or |y| >= 0x1p63 or nan). */ + if _zeroinfnan(tls, iy) != 0 { + if uint64(2)*iy == uint64(0) { + return float64(1) + } + v1 = float64(1) + if ix == *(*Tuint64_t)(unsafe.Pointer(&v1)) { + return float64(1) + } + v1 = float64(X__builtin_inff(tls)) + if v4 = uint64(2)*ix > uint64(2)**(*Tuint64_t)(unsafe.Pointer(&v1)); !v4 { + v2 = float64(X__builtin_inff(tls)) + } + if v4 || uint64(2)*iy > uint64(2)**(*Tuint64_t)(unsafe.Pointer(&v2)) { + return x1 + y1 + } + v1 = float64(1) + if uint64(2)*ix == uint64(2)**(*Tuint64_t)(unsafe.Pointer(&v1)) { + return float64(1) + } + v1 = float64(1) + if BoolInt32(uint64(2)*ix < uint64(2)**(*Tuint64_t)(unsafe.Pointer(&v1))) == BoolInt32(!(iy>>Int32FromInt32(63) != 0)) { + return float64(0) + } /* |x|<1 && y==inf or |x|>1 && y==-inf. */ + return float64(y1 * y1) + } + if _zeroinfnan(tls, ix) != 0 { + x2 = Tdouble_t(x1 * x1) + if ix>>int32(63) != 0 && _checkint(tls, iy) == int32(1) { + x2 = -x2 + } + /* Without the barrier some versions of clang hoist the 1/x2 and + thus division by zero exception can be signaled spuriously. */ + if iy>>int32(63) != 0 { + y = Float64FromInt32(1) / x2 + v2 = y + goto _9 + _9: + v1 = v2 + } else { + v1 = x2 + } + return v1 + } + /* Here x and y are non-zero finite. */ + if ix>>int32(63) != 0 { + /* Finite x < 0. */ + yint = _checkint(tls, iy) + if yint == 0 { + return X__math_invalid(tls, x1) + } + if yint == int32(1) { + sign_bias = Uint32FromInt32(Int32FromInt32(0x800) << Int32FromInt32(EXP_TABLE_BITS)) + } + ix = ix & uint64(0x7fffffffffffffff) + topx = topx & uint32(0x7ff) + } + if topy&uint32(0x7ff)-uint32(0x3be) >= Uint32FromInt32(Int32FromInt32(0x43e)-Int32FromInt32(0x3be)) { + /* Note: sign_bias == 0 here because y is not odd. */ + v1 = float64(1) + if ix == *(*Tuint64_t)(unsafe.Pointer(&v1)) { + return float64(1) + } + if topy&uint32(0x7ff) < uint32(0x3be) { + /* |y| < 2^-65, x^y ~= 1 + y*log(x). */ + if int32(WANT_ROUNDING) != 0 { + v2 = float64(1) + if ix > *(*Tuint64_t)(unsafe.Pointer(&v2)) { + v1 = float64(1) + y1 + } else { + v1 = float64(1) - y1 + } + return v1 + } else { + return float64(1) + } + } + v2 = float64(1) + if BoolInt32(ix > *(*Tuint64_t)(unsafe.Pointer(&v2))) == BoolInt32(topy < uint32(0x800)) { + v1 = X__math_oflow(tls, uint32(0)) + } else { + v1 = X__math_uflow(tls, uint32(0)) + } + return v1 + } + if topx == uint32(0) { + /* Normalize subnormal x so exponent becomes negative. */ + v1 = float64(x1 * float64(4.503599627370496e+15)) + ix = *(*Tuint64_t)(unsafe.Pointer(&v1)) + ix = ix & uint64(0x7fffffffffffffff) + ix = uint64(ix - Uint64FromUint64(52)<> (Int32FromInt32(23) - Int32FromInt32(POWF_LOG2_TABLE_BITS)) % Uint32FromInt32(Int32FromInt32(1)<> (Int32FromInt32(23) - Int32FromInt32(POWF_SCALE_BITS)) /* arithmetic shift */ + invc = (**(**struct { + Finvc float64 + Flogc float64 + })(__ccgo_up(uintptr(unsafe.Pointer(&X__powf_log2_data)) + uintptr(i)*16))).Finvc + logc = (**(**struct { + Finvc float64 + Flogc float64 + })(__ccgo_up(uintptr(unsafe.Pointer(&X__powf_log2_data)) + uintptr(i)*16))).Flogc + z = float64(*(*float32)(unsafe.Pointer(&iz))) + /* log2(x) = log1p(z/c-1)/ln2 + log2(c) + k */ + r = Tdouble_t(z*invc) - Float64FromInt32(1) + y0 = logc + float64(k) + /* Pipelined polynomial evaluation to approximate log1p(r)/ln2. */ + r2 = Tdouble_t(r * r) + y = float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__powf_log2_data)) + 256))*r) + **(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__powf_log2_data)) + 256 + 1*8)) + p = float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__powf_log2_data)) + 256 + 2*8))*r) + **(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__powf_log2_data)) + 256 + 3*8)) + r4 = Tdouble_t(r2 * r2) + q = float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__powf_log2_data)) + 256 + 4*8))*r) + y0 + q = Tdouble_t(p*r2) + q + y = Tdouble_t(y*r4) + q + return y +} + +// C documentation +// +// /* The output of log2 and thus the input of exp2 is either scaled by N +// (in case of fast toint intrinsics) or not. The unscaled xd must be +// in [-1021,1023], sign_bias sets the sign of the result. */ +func _exp2_inline(tls *TLS, xd Tdouble_t, sign_bias Tuint32_t) (r1 float32) { + var kd, r, r2, s, y2, z Tdouble_t + var ki, ski, t Tuint64_t + var y, v4 float32 + var y1, v1 float64 + _, _, _, _, _, _, _, _, _, _, _, _, _ = kd, ki, r, r2, s, ski, t, y, y1, y2, z, v1, v4 + /* x = k/N + r with r in [-1/(2N), 1/(2N)] */ + y1 = xd + X__exp2f_data.Fshift_scaled + v1 = y1 + goto _2 +_2: + kd = v1 + v1 = kd + ki = *(*Tuint64_t)(unsafe.Pointer(&v1)) + kd = kd - X__exp2f_data.Fshift_scaled /* k/N */ + r = xd - kd + /* exp2(x) = 2^(k/N) * 2^r ~= s * (C0*r^3 + C1*r^2 + C2*r + 1) */ + t = **(**Tuint64_t)(__ccgo_up(uintptr(unsafe.Pointer(&X__exp2f_data)) + uintptr(ki%Uint64FromInt32(Int32FromInt32(1)<> int32(23) & uint32(0xff)) + if e < int32(0x7f) { + return 0 + } + if e > Int32FromInt32(0x7f)+Int32FromInt32(23) { + return int32(2) + } + if iy&Uint32FromInt32(Int32FromInt32(1)<<(Int32FromInt32(0x7f)+Int32FromInt32(23)-e)-Int32FromInt32(1)) != 0 { + return 0 + } + if iy&Uint32FromInt32(Int32FromInt32(1)<<(Int32FromInt32(0x7f)+Int32FromInt32(23)-e)) != 0 { + return int32(1) + } + return int32(2) +} + +func _zeroinfnan1(tls *TLS, ix Tuint32_t) (r int32) { + return BoolInt32(uint32(2)*ix-uint32(1) >= Uint32FromUint32(2)*Uint32FromInt32(0x7f800000)-Uint32FromInt32(1)) +} + +func Xpowf(tls *TLS, x1 float32, y1 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x1=%v y1=%v, (%v:)", tls, x1, y1, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ix, iy, sign_bias Tuint32_t + var logx, ylogx Tdouble_t + var x2 Tfloat_t + var y, v1, v2 float32 + var yint int32 + var v5, v6 float64 + _, _, _, _, _, _, _, _, _, _, _, _ = ix, iy, logx, sign_bias, x2, y, yint, ylogx, v1, v2, v5, v6 + sign_bias = uint32(0) + ix = *(*Tuint32_t)(unsafe.Pointer(&x1)) + iy = *(*Tuint32_t)(unsafe.Pointer(&y1)) + if ix-uint32(0x00800000) >= Uint32FromInt32(Int32FromInt32(0x7f800000)-Int32FromInt32(0x00800000)) || _zeroinfnan1(tls, iy) != 0 { + /* Either (x < 0x1p-126 or inf or nan) or (y is 0 or inf or nan). */ + if _zeroinfnan1(tls, iy) != 0 { + if uint32(2)*iy == uint32(0) { + return Float32FromFloat32(1) + } + if ix == uint32(0x3f800000) { + return Float32FromFloat32(1) + } + if uint32(2)*ix > Uint32FromUint32(2)*Uint32FromInt32(0x7f800000) || uint32(2)*iy > Uint32FromUint32(2)*Uint32FromInt32(0x7f800000) { + return x1 + y1 + } + if uint32(2)*ix == Uint32FromInt32(Int32FromInt32(2)*Int32FromInt32(0x3f800000)) { + return Float32FromFloat32(1) + } + if BoolInt32(uint32(2)*ix < Uint32FromInt32(Int32FromInt32(2)*Int32FromInt32(0x3f800000))) == BoolInt32(!(iy&Uint32FromUint32(0x80000000) != 0)) { + return Float32FromFloat32(0) + } /* |x|<1 && y==inf or |x|>1 && y==-inf. */ + return float32(y1 * y1) + } + if _zeroinfnan1(tls, ix) != 0 { + x2 = Tfloat_t(x1 * x1) + if ix&uint32(0x80000000) != 0 && _checkint1(tls, iy) == int32(1) { + x2 = -x2 + } + /* Without the barrier some versions of clang hoist the 1/x2 and + thus division by zero exception can be signaled spuriously. */ + if iy&uint32(0x80000000) != 0 { + y = Float32FromInt32(1) / x2 + v2 = y + goto _3 + _3: + v1 = v2 + } else { + v1 = x2 + } + return v1 + } + /* x and y are non-zero finite. */ + if ix&uint32(0x80000000) != 0 { + /* Finite x < 0. */ + yint = _checkint1(tls, iy) + if yint == 0 { + return X__math_invalidf(tls, x1) + } + if yint == int32(1) { + sign_bias = Uint32FromInt32(Int32FromInt32(1) << (Int32FromInt32(EXP2F_TABLE_BITS) + Int32FromInt32(11))) + } + ix = ix & uint32(0x7fffffff) + } + if ix < uint32(0x00800000) { + /* Normalize subnormal x so exponent becomes negative. */ + v1 = float32(x1 * Float32FromFloat32(8.388608e+06)) + ix = *(*Tuint32_t)(unsafe.Pointer(&v1)) + ix = ix & uint32(0x7fffffff) + ix = ix - Uint32FromInt32(Int32FromInt32(23)<>int32(47)&uint64(0xffff) >= *(*Tuint64_t)(unsafe.Pointer(&v6))>>int32(47) { + /* |y*log(x)| >= 126. */ + if ylogx > Tdouble_t(float64(127.99999995700433)*float64(Int32FromInt32(1)< %v", r) }() + } + return Xpow(tls, x, y) +} + +func Xremainder(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* q at bp+0 */ int32 + return Xremquo(tls, x, y, bp) +} + +func Xdrem(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xremainder(tls, x, y) +} + +func Xremainderf(tls *TLS, x float32, y float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* q at bp+0 */ int32 + return Xremquof(tls, x, y, bp) +} + +func Xdremf(tls *TLS, x float32, y float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xremainderf(tls, x, y) +} + +func Xremainderl(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xremainder(tls, x, y) +} + +func Xremquo(tls *TLS, x float64, y float64, quo uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v quo=%v, (%v:)", tls, x, y, quo, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var ex, ey, sx, sy, v10 int32 + var i, uxi Tuint64_t + var q Tuint32_t + var v1 uint64 + var v11 float64 + var v3 bool + var v6 uintptr + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + var _ /* ux at bp+8 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + var _ /* uy at bp+16 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _, _, _, _, _, _ = ex, ey, i, q, sx, sy, uxi, v1, v10, v11, v3, v6 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp + 8)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp + 8)) = x + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp + 16)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp + 16)) = y + ex = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp + 8)) >> int32(52) & uint64(0x7ff)) + ey = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp + 16)) >> int32(52) & uint64(0x7ff)) + sx = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp + 8)) >> int32(63)) + sy = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp + 16)) >> int32(63)) + uxi = *(*Tuint64_t)(unsafe.Pointer(bp + 8)) + **(**int32)(__ccgo_up(quo)) = 0 + if v3 = *(*Tuint64_t)(unsafe.Pointer(bp + 16))<>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>int32(63) == uint64(0)) { + break + } + goto _4 + _4: + ; + ex = ex - 1 + i = i << uint64(1) + } + uxi = uxi << Uint64FromInt32(-ex+int32(1)) + } else { + uxi = uint64(uxi & (-Uint64FromUint64(1) >> Int32FromInt32(12))) + uxi = uint64(uxi | Uint64FromUint64(1)<>int32(63) == uint64(0)) { + break + } + goto _5 + _5: + ; + ey = ey - 1 + i = i << uint64(1) + } + *(*Tuint64_t)(unsafe.Pointer(bp + 16)) <<= Uint64FromInt32(-ey + int32(1)) + } else { + v6 = bp + 16 + *(*Tuint64_t)(unsafe.Pointer(v6)) = Tuint64_t(*(*Tuint64_t)(unsafe.Pointer(v6)) & (-Uint64FromUint64(1) >> Int32FromInt32(12))) + v6 = bp + 16 + *(*Tuint64_t)(unsafe.Pointer(v6)) = Tuint64_t(*(*Tuint64_t)(unsafe.Pointer(v6)) | Uint64FromUint64(1)< ey) { + break + } + i = uxi - *(*Tuint64_t)(unsafe.Pointer(bp + 16)) + if i>>int32(63) == uint64(0) { + uxi = i + q = q + 1 + } + uxi = uxi << uint64(1) + q = q << uint32(1) + goto _8 + _8: + ; + ex = ex - 1 + } + i = uxi - *(*Tuint64_t)(unsafe.Pointer(bp + 16)) + if i>>int32(63) == uint64(0) { + uxi = i + q = q + 1 + } + if uxi == uint64(0) { + ex = -int32(60) + } else { + for { + if !(uxi>>int32(52) == uint64(0)) { + break + } + goto _9 + _9: + ; + uxi = uxi << uint64(1) + ex = ex - 1 + } + } + goto end +end: + ; + /* scale result and decide between |x| and |x|-|y| */ + if ex > 0 { + uxi = uint64(uxi - Uint64FromUint64(1)<> Uint64FromInt32(-ex+int32(1)) + } + *(*Tuint64_t)(unsafe.Pointer(bp + 8)) = uxi + x = *(*float64)(unsafe.Pointer(bp + 8)) + if sy != 0 { + y = -y + } + if ex == ey || ex+int32(1) == ey && (float64(Float64FromInt32(2)*x) > y || float64(Float64FromInt32(2)*x) == y && q%uint32(2) != 0) { + x = x - y + q = q + 1 + } + q = q & uint32(0x7fffffff) + if sx^sy != 0 { + v10 = -Int32FromUint32(q) + } else { + v10 = Int32FromUint32(q) + } + **(**int32)(__ccgo_up(quo)) = v10 + if sx != 0 { + v11 = -x + } else { + v11 = x + } + return v11 +} + +func Xremquof(tls *TLS, x float32, y float32, quo uintptr) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v quo=%v, (%v:)", tls, x, y, quo, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ex, ey, sx, sy, v8 int32 + var i, q, uxi Tuint32_t + var v1 uint32 + var v3 bool + var v9 float32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + var _ /* ux at bp+4 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + var _ /* uy at bp+8 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _, _, _, _, _, _ = ex, ey, i, q, sx, sy, uxi, v1, v3, v8, v9 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp + 4)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp + 4)) = x + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp + 8)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp + 8)) = y + ex = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp + 4)) >> int32(23) & uint32(0xff)) + ey = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp + 8)) >> int32(23) & uint32(0xff)) + sx = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp + 4)) >> int32(31)) + sy = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp + 8)) >> int32(31)) + uxi = *(*Tuint32_t)(unsafe.Pointer(bp + 4)) + **(**int32)(__ccgo_up(quo)) = 0 + if v3 = *(*Tuint32_t)(unsafe.Pointer(bp + 8))< uint32(0x7f800000)) != 0 || ex == int32(0xff) { + return float32(x*y) / float32(x*y) + } + if *(*Tuint32_t)(unsafe.Pointer(bp + 4))<>int32(31) == uint32(0)) { + break + } + goto _4 + _4: + ; + ex = ex - 1 + i = i << uint32(1) + } + uxi = uxi << Uint32FromInt32(-ex+int32(1)) + } else { + uxi = uxi & (-Uint32FromUint32(1) >> Int32FromInt32(9)) + uxi = uxi | Uint32FromUint32(1)<>int32(31) == uint32(0)) { + break + } + goto _5 + _5: + ; + ey = ey - 1 + i = i << uint32(1) + } + *(*Tuint32_t)(unsafe.Pointer(bp + 8)) <<= Uint32FromInt32(-ey + int32(1)) + } else { + *(*Tuint32_t)(unsafe.Pointer(bp + 8)) &= -Uint32FromUint32(1) >> Int32FromInt32(9) + *(*Tuint32_t)(unsafe.Pointer(bp + 8)) |= Uint32FromUint32(1) << Int32FromInt32(23) + } + q = uint32(0) + if ex < ey { + if ex+int32(1) == ey { + goto end + } + return x + } + /* x mod y */ + for { + if !(ex > ey) { + break + } + i = uxi - *(*Tuint32_t)(unsafe.Pointer(bp + 8)) + if i>>int32(31) == uint32(0) { + uxi = i + q = q + 1 + } + uxi = uxi << uint32(1) + q = q << uint32(1) + goto _6 + _6: + ; + ex = ex - 1 + } + i = uxi - *(*Tuint32_t)(unsafe.Pointer(bp + 8)) + if i>>int32(31) == uint32(0) { + uxi = i + q = q + 1 + } + if uxi == uint32(0) { + ex = -int32(30) + } else { + for { + if !(uxi>>int32(23) == uint32(0)) { + break + } + goto _7 + _7: + ; + uxi = uxi << uint32(1) + ex = ex - 1 + } + } + goto end +end: + ; + /* scale result and decide between |x| and |x|-|y| */ + if ex > 0 { + uxi = uxi - Uint32FromUint32(1)<> Uint32FromInt32(-ex+int32(1)) + } + *(*Tuint32_t)(unsafe.Pointer(bp + 4)) = uxi + x = *(*float32)(unsafe.Pointer(bp + 4)) + if sy != 0 { + y = -y + } + if ex == ey || ex+int32(1) == ey && (float32(Float32FromInt32(2)*x) > y || float32(Float32FromInt32(2)*x) == y && q%uint32(2) != 0) { + x = x - y + q = q + 1 + } + q = q & uint32(0x7fffffff) + if sx^sy != 0 { + v8 = -Int32FromUint32(q) + } else { + v8 = Int32FromUint32(q) + } + **(**int32)(__ccgo_up(quo)) = v8 + if sx != 0 { + v9 = -x + } else { + v9 = x + } + return v9 +} + +func Xremquol(tls *TLS, x float64, y float64, quo uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v quo=%v, (%v:)", tls, x, y, quo, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xremquo(tls, x, y, quo) +} + +const DBL_EPSILON9 = 2.220446049250313e-16 + +var _toint4 = Float64FromInt32(1) / Float64FromFloat64(2.220446049250313e-16) + +func Xrint(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e, s int32 + var y Tdouble_t + var v1 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _ = e, s, y, v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + e = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + s = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(63)) + if e >= Int32FromInt32(0x3ff)+Int32FromInt32(52) { + return x + } + if s != 0 { + y = x - _toint4 + _toint4 + } else { + y = x + _toint4 - _toint4 + } + if y == Float64FromInt32(0) { + if s != 0 { + v1 = -Float64FromFloat64(0) + } else { + v1 = Float64FromInt32(0) + } + return v1 + } + return y +} + +const DBL_EPSILON10 = 0 +const FLT_EPSILON1 = 1.1920928955078125e-07 + +var _toint5 = Float32FromInt32(1) / Float32FromFloat32(1.1920928955078125e-07) + +func Xrintf(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e, s int32 + var y Tfloat_t + var v1 float32 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _ = e, s, y, v1 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + e = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(23) & uint32(0xff)) + s = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(31)) + if e >= Int32FromInt32(0x7f)+Int32FromInt32(23) { + return x + } + if s != 0 { + y = x - _toint5 + _toint5 + } else { + y = x + _toint5 - _toint5 + } + if y == Float32FromInt32(0) { + if s != 0 { + v1 = -Float32FromFloat32(0) + } else { + v1 = Float32FromFloat32(0) + } + return v1 + } + return y +} + +const FLT_EPSILON2 = 0 + +func Xrintl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xrint(tls, x) +} + +const DBL_EPSILON11 = 2.220446049250313e-16 + +var _toint6 = Float64FromInt32(1) / Float64FromFloat64(2.220446049250313e-16) + +func Xround(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e int32 + var y float32 + var y1, y2 float64 + var y3 Tdouble_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _ = e, y, y1, y2, y3 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + e = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + if e >= Int32FromInt32(0x3ff)+Int32FromInt32(52) { + return x3 + } + if *(*Tuint64_t)(unsafe.Pointer(bp))>>int32(63) != 0 { + x3 = -x3 + } + if e < Int32FromInt32(0x3ff)-Int32FromInt32(1) { + /* raise inexact if x!=0 */ + if uint64(8) == uint64(4) { + y = float32(x3 + _toint6) + } else { + if uint64(8) == uint64(8) { + y1 = x3 + _toint6 + } else { + y2 = float64(x3 + _toint6) + } + } + return float64(Float64FromInt32(0) * *(*float64)(unsafe.Pointer(bp))) + } + y3 = x3 + _toint6 - _toint6 - x3 + if y3 > float64(0.5) { + y3 = y3 + x3 - Float64FromInt32(1) + } else { + if y3 <= -Float64FromFloat64(0.5) { + y3 = y3 + x3 + Float64FromInt32(1) + } else { + y3 = y3 + x3 + } + } + if *(*Tuint64_t)(unsafe.Pointer(bp))>>int32(63) != 0 { + y3 = -y3 + } + return y3 +} + +const DBL_EPSILON12 = 0 +const FLT_EPSILON3 = 1.1920928955078125e-07 + +var _toint7 = Float32FromInt32(1) / Float32FromFloat32(1.1920928955078125e-07) + +func Xroundf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e int32 + var y float32 + var y1, y2 float64 + var y3 Tfloat_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _ = e, y, y1, y2, y3 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + e = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(23) & uint32(0xff)) + if e >= Int32FromInt32(0x7f)+Int32FromInt32(23) { + return x3 + } + if *(*Tuint32_t)(unsafe.Pointer(bp))>>int32(31) != 0 { + x3 = -x3 + } + if e < Int32FromInt32(0x7f)-Int32FromInt32(1) { + if uint64(4) == uint64(4) { + y = x3 + _toint7 + } else { + if uint64(4) == uint64(8) { + y1 = float64(x3 + _toint7) + } else { + y2 = float64(x3 + _toint7) + } + } + return float32(Float32FromInt32(0) * *(*float32)(unsafe.Pointer(bp))) + } + y3 = x3 + _toint7 - _toint7 - x3 + if y3 > Float32FromFloat32(0.5) { + y3 = y3 + x3 - Float32FromInt32(1) + } else { + if y3 <= -Float32FromFloat32(0.5) { + y3 = y3 + x3 + Float32FromInt32(1) + } else { + y3 = y3 + x3 + } + } + if *(*Tuint32_t)(unsafe.Pointer(bp))>>int32(31) != 0 { + y3 = -y3 + } + return y3 +} + +const FLT_EPSILON4 = 0 + +func Xroundl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xround(tls, x) +} + +func Xscalb(tls *TLS, x float64, fn float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v fn=%v, (%v:)", tls, x, fn, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1, v3 uint64 + var v5 bool + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _, _, _ = v1, v3, v5 + *(*float64)(unsafe.Pointer(bp)) = x + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + ; + if v5 = BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) < Uint64FromUint64(0x7ff)< float64(0) { + return float64(x * fn) + } else { + return x / -fn + } + } + if Xrint(tls, fn) != fn { + return (fn - fn) / (fn - fn) + } + if fn > float64(65000) { + return Xscalbn(tls, x, int32(65000)) + } + if -fn > float64(65000) { + return Xscalbn(tls, x, -int32(65000)) + } + return Xscalbn(tls, x, int32(fn)) +} + +func Xscalbf(tls *TLS, x float32, fn float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v fn=%v, (%v:)", tls, x, fn, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1, v3 uint32 + var v5 bool + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _, _, _ = v1, v3, v5 + *(*float32)(unsafe.Pointer(bp)) = x + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + ; + if v5 = BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0; !v5 { + *(*float32)(unsafe.Pointer(bp)) = fn + v3 = *(*uint32)(unsafe.Pointer(bp)) + goto _4 + _4: + } + if v5 || BoolInt32(v3&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return float32(x * fn) + } + *(*float32)(unsafe.Pointer(bp)) = fn + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _7 +_7: + if !(BoolInt32(v1&Uint32FromInt32(0x7fffffff) < Uint32FromInt32(0x7f800000)) != 0) { + if fn > Float32FromFloat32(0) { + return float32(x * fn) + } else { + return x / -fn + } + } + if Xrintf(tls, fn) != fn { + return (fn - fn) / (fn - fn) + } + if fn > Float32FromFloat32(65000) { + return Xscalbnf(tls, x, int32(65000)) + } + if -fn > Float32FromFloat32(65000) { + return Xscalbnf(tls, x, -int32(65000)) + } + return Xscalbnf(tls, x, int32(fn)) +} + +func Xscalbln(tls *TLS, x float64, n int64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + if n > int64(INT_MAX) { + n = int64(INT_MAX) + } else { + if n < int64(-Int32FromInt32(1)-Int32FromInt32(0x7fffffff)) { + n = int64(-Int32FromInt32(1) - Int32FromInt32(0x7fffffff)) + } + } + return Xscalbn(tls, x, int32(n)) +} + +func Xscalblnf(tls *TLS, x float32, n int64) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + if n > int64(INT_MAX) { + n = int64(INT_MAX) + } else { + if n < int64(-Int32FromInt32(1)-Int32FromInt32(0x7fffffff)) { + n = int64(-Int32FromInt32(1) - Int32FromInt32(0x7fffffff)) + } + } + return Xscalbnf(tls, x, int32(n)) +} + +func Xscalblnl(tls *TLS, x float64, n int64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xscalbln(tls, x, n) +} + +func Xscalbn(tls *TLS, x float64, n int32) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var y Tdouble_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _ = y + y = x + if n > int32(1023) { + y = y * float64(8.98846567431158e+307) + n = n - int32(1023) + if n > int32(1023) { + y = y * float64(8.98846567431158e+307) + n = n - int32(1023) + if n > int32(1023) { + n = int32(1023) + } + } + } else { + if n < -int32(1022) { + /* make sure final n < -53 to avoid double + rounding in the subnormal range */ + y = y * Tdouble_t(Float64FromFloat64(2.2250738585072014e-308)*Float64FromFloat64(9.007199254740992e+15)) + n = n + (Int32FromInt32(1022) - Int32FromInt32(53)) + if n < -int32(1022) { + y = y * Tdouble_t(Float64FromFloat64(2.2250738585072014e-308)*Float64FromFloat64(9.007199254740992e+15)) + n = n + (Int32FromInt32(1022) - Int32FromInt32(53)) + if n < -int32(1022) { + n = -int32(1022) + } + } + } + } + *(*Tuint64_t)(unsafe.Pointer(bp)) = Uint64FromInt32(Int32FromInt32(0x3ff)+n) << int32(52) + x = float64(y * *(*float64)(unsafe.Pointer(bp))) + return x +} + +func Xscalbnf(tls *TLS, x float32, n int32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var y Tfloat_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _ = y + y = x + if n > int32(127) { + y = y * Float32FromFloat32(1.7014118346046923e+38) + n = n - int32(127) + if n > int32(127) { + y = y * Float32FromFloat32(1.7014118346046923e+38) + n = n - int32(127) + if n > int32(127) { + n = int32(127) + } + } + } else { + if n < -int32(126) { + y = y * Tfloat_t(Float32FromFloat32(1.1754943508222875e-38)*Float32FromFloat32(1.6777216e+07)) + n = n + (Int32FromInt32(126) - Int32FromInt32(24)) + if n < -int32(126) { + y = y * Tfloat_t(Float32FromFloat32(1.1754943508222875e-38)*Float32FromFloat32(1.6777216e+07)) + n = n + (Int32FromInt32(126) - Int32FromInt32(24)) + if n < -int32(126) { + n = -int32(126) + } + } + } + } + *(*Tuint32_t)(unsafe.Pointer(bp)) = Uint32FromInt32(Int32FromInt32(0x7f)+n) << int32(23) + x = float32(y * *(*float32)(unsafe.Pointer(bp))) + return x +} + +func Xscalbnl(tls *TLS, x float64, n int32) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xscalbn(tls, x, n) +} + +func Xsignificand(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xscalbn(tls, x, -Xilogb(tls, x)) +} + +func Xsignificandf(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xscalbnf(tls, x, -Xilogbf(tls, x)) +} + +func Xsin(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ix Tuint32_t + var n uint32 + var y float32 + var y1, y2, v1 float64 + var _ /* y at bp+0 */ [2]float64 + _, _, _, _, _, _ = ix, n, y, y1, y2, v1 + /* High word of x. */ + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x3)) >> int32(32)) + ix = ix & uint32(0x7fffffff) + /* |x| ~< pi/4 */ + if ix <= uint32(0x3fe921fb) { + if ix < uint32(0x3e500000) { /* |x| < 2**-26 */ + /* raise inexact if x != 0 and underflow if subnormal*/ + if uint64(8) == uint64(4) { + if ix < uint32(0x00100000) { + v1 = x3 / Float64FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } + y = float32(v1) + } else { + if uint64(8) == uint64(8) { + if ix < uint32(0x00100000) { + v1 = x3 / Float64FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } + y1 = v1 + } else { + if ix < uint32(0x00100000) { + v1 = x3 / Float64FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } + y2 = v1 + } + } + return x3 + } + return X__sin(tls, x3, float64(0), 0) + } + /* sin(Inf or NaN) is NaN */ + if ix >= uint32(0x7ff00000) { + return x3 - x3 + } + /* argument reduction needed */ + n = Uint32FromInt32(X__rem_pio2(tls, x3, bp)) + switch n & Uint32FromInt32(3) { + case uint32(0): + return X__sin(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)], int32(1)) + case uint32(1): + return X__cos(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)]) + case uint32(2): + return -X__sin(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)], int32(1)) + default: + return -X__cos(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)]) + } + return r +} + +func Xsincos(tls *TLS, x3 float64, sin uintptr, cos uintptr) { + if __ccgo_strace { + trc("tls=%v x3=%v sin=%v cos=%v, (%v:)", tls, x3, sin, cos, origin(2)) + } + bp := tls.Alloc(16) + defer tls.Free(16) + var c, s, y1, y2, v1 float64 + var ix Tuint32_t + var n uint32 + var y float32 + var _ /* y at bp+0 */ [2]float64 + _, _, _, _, _, _, _, _ = c, ix, n, s, y, y1, y2, v1 + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x3)) >> int32(32)) + ix = ix & uint32(0x7fffffff) + /* |x| ~< pi/4 */ + if ix <= uint32(0x3fe921fb) { + /* if |x| < 2**-27 * sqrt(2) */ + if ix < uint32(0x3e46a09e) { + /* raise inexact if x!=0 and underflow if subnormal */ + if uint64(8) == uint64(4) { + if ix < uint32(0x00100000) { + v1 = x3 / Float64FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } + y = float32(v1) + } else { + if uint64(8) == uint64(8) { + if ix < uint32(0x00100000) { + v1 = x3 / Float64FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } + y1 = v1 + } else { + if ix < uint32(0x00100000) { + v1 = x3 / Float64FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } + y2 = v1 + } + } + **(**float64)(__ccgo_up(sin)) = x3 + **(**float64)(__ccgo_up(cos)) = float64(1) + return + } + **(**float64)(__ccgo_up(sin)) = X__sin(tls, x3, float64(0), 0) + **(**float64)(__ccgo_up(cos)) = X__cos(tls, x3, float64(0)) + return + } + /* sincos(Inf or NaN) is NaN */ + if ix >= uint32(0x7ff00000) { + v1 = x3 - x3 + **(**float64)(__ccgo_up(cos)) = v1 + **(**float64)(__ccgo_up(sin)) = v1 + return + } + /* argument reduction needed */ + n = Uint32FromInt32(X__rem_pio2(tls, x3, bp)) + s = X__sin(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)], int32(1)) + c = X__cos(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)]) + switch n & Uint32FromInt32(3) { + case uint32(0): + **(**float64)(__ccgo_up(sin)) = s + **(**float64)(__ccgo_up(cos)) = c + case uint32(1): + **(**float64)(__ccgo_up(sin)) = c + **(**float64)(__ccgo_up(cos)) = -s + case uint32(2): + **(**float64)(__ccgo_up(sin)) = -s + **(**float64)(__ccgo_up(cos)) = -c + case uint32(3): + fallthrough + default: + **(**float64)(__ccgo_up(sin)) = -c + **(**float64)(__ccgo_up(cos)) = s + break + } +} + +const M_PI_25 = 1.5707963267948966 + +// C documentation +// +// /* Small multiples of pi/2 rounded to double precision. */ + +var _s1pio2 = float64(Float64FromInt32(1) * Float64FromFloat64(1.5707963267948966)) /* 0x3FF921FB, 0x54442D18 */ +var _s2pio2 = float64(Float64FromInt32(2) * Float64FromFloat64(1.5707963267948966)) /* 0x400921FB, 0x54442D18 */ +var _s3pio2 = float64(Float64FromInt32(3) * Float64FromFloat64(1.5707963267948966)) /* 0x4012D97C, 0x7F3321D2 */ +var _s4pio2 = float64(Float64FromInt32(4) * Float64FromFloat64(1.5707963267948966)) /* 0x401921FB, 0x54442D18 */ + +func Xsincosf(tls *TLS, x3 float32, sin uintptr, cos uintptr) { + if __ccgo_strace { + trc("tls=%v x3=%v sin=%v cos=%v, (%v:)", tls, x3, sin, cos, origin(2)) + } + bp := tls.Alloc(16) + defer tls.Free(16) + var c, s Tfloat_t + var ix Tuint32_t + var n, sign uint32 + var y, v1 float32 + var y1, y2, v4 float64 + var _ /* y at bp+0 */ float64 + _, _, _, _, _, _, _, _, _, _ = c, ix, n, s, sign, y, y1, y2, v1, v4 + ix = *(*Tuint32_t)(unsafe.Pointer(&x3)) + sign = ix >> int32(31) + ix = ix & uint32(0x7fffffff) + /* |x| ~<= pi/4 */ + if ix <= uint32(0x3f490fda) { + /* |x| < 2**-12 */ + if ix < uint32(0x39800000) { + /* raise inexact if x!=0 and underflow if subnormal */ + if uint64(4) == uint64(4) { + if ix < uint32(0x00100000) { + v1 = x3 / Float32FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float32FromFloat32(1.329227995784916e+36) + } + y = v1 + } else { + if uint64(4) == uint64(8) { + if ix < uint32(0x00100000) { + v1 = x3 / Float32FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float32FromFloat32(1.329227995784916e+36) + } + y1 = float64(v1) + } else { + if ix < uint32(0x00100000) { + v1 = x3 / Float32FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float32FromFloat32(1.329227995784916e+36) + } + y2 = float64(v1) + } + } + **(**float32)(__ccgo_up(sin)) = x3 + **(**float32)(__ccgo_up(cos)) = Float32FromFloat32(1) + return + } + **(**float32)(__ccgo_up(sin)) = X__sindf(tls, float64(x3)) + **(**float32)(__ccgo_up(cos)) = X__cosdf(tls, float64(x3)) + return + } + /* |x| ~<= 5*pi/4 */ + if ix <= uint32(0x407b53d1) { + if ix <= uint32(0x4016cbe3) { /* |x| ~<= 3pi/4 */ + if sign != 0 { + **(**float32)(__ccgo_up(sin)) = -X__cosdf(tls, float64(x3)+_s1pio2) + **(**float32)(__ccgo_up(cos)) = X__sindf(tls, float64(x3)+_s1pio2) + } else { + **(**float32)(__ccgo_up(sin)) = X__cosdf(tls, _s1pio2-float64(x3)) + **(**float32)(__ccgo_up(cos)) = X__sindf(tls, _s1pio2-float64(x3)) + } + return + } + /* -sin(x+c) is not correct if x+c could be 0: -0 vs +0 */ + if sign != 0 { + v4 = float64(x3) + _s2pio2 + } else { + v4 = float64(x3) - _s2pio2 + } + **(**float32)(__ccgo_up(sin)) = -X__sindf(tls, v4) + if sign != 0 { + v4 = float64(x3) + _s2pio2 + } else { + v4 = float64(x3) - _s2pio2 + } + **(**float32)(__ccgo_up(cos)) = -X__cosdf(tls, v4) + return + } + /* |x| ~<= 9*pi/4 */ + if ix <= uint32(0x40e231d5) { + if ix <= uint32(0x40afeddf) { /* |x| ~<= 7*pi/4 */ + if sign != 0 { + **(**float32)(__ccgo_up(sin)) = X__cosdf(tls, float64(x3)+_s3pio2) + **(**float32)(__ccgo_up(cos)) = -X__sindf(tls, float64(x3)+_s3pio2) + } else { + **(**float32)(__ccgo_up(sin)) = -X__cosdf(tls, float64(x3)-_s3pio2) + **(**float32)(__ccgo_up(cos)) = X__sindf(tls, float64(x3)-_s3pio2) + } + return + } + if sign != 0 { + v4 = float64(x3) + _s4pio2 + } else { + v4 = float64(x3) - _s4pio2 + } + **(**float32)(__ccgo_up(sin)) = X__sindf(tls, v4) + if sign != 0 { + v4 = float64(x3) + _s4pio2 + } else { + v4 = float64(x3) - _s4pio2 + } + **(**float32)(__ccgo_up(cos)) = X__cosdf(tls, v4) + return + } + /* sin(Inf or NaN) is NaN */ + if ix >= uint32(0x7f800000) { + v1 = x3 - x3 + **(**float32)(__ccgo_up(cos)) = v1 + **(**float32)(__ccgo_up(sin)) = v1 + return + } + /* general argument reduction needed */ + n = Uint32FromInt32(X__rem_pio2f(tls, x3, bp)) + s = X__sindf(tls, **(**float64)(__ccgo_up(bp))) + c = X__cosdf(tls, **(**float64)(__ccgo_up(bp))) + switch n & Uint32FromInt32(3) { + case uint32(0): + **(**float32)(__ccgo_up(sin)) = s + **(**float32)(__ccgo_up(cos)) = c + case uint32(1): + **(**float32)(__ccgo_up(sin)) = c + **(**float32)(__ccgo_up(cos)) = -s + case uint32(2): + **(**float32)(__ccgo_up(sin)) = -s + **(**float32)(__ccgo_up(cos)) = -c + case uint32(3): + fallthrough + default: + **(**float32)(__ccgo_up(sin)) = -c + **(**float32)(__ccgo_up(cos)) = s + break + } +} + +const M_PI_26 = 0 + +func Xsincosl(tls *TLS, x float64, sin uintptr, cos uintptr) { + if __ccgo_strace { + trc("tls=%v x=%v sin=%v cos=%v, (%v:)", tls, x, sin, cos, origin(2)) + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* cosd at bp+8 */ float64 + var _ /* sind at bp+0 */ float64 + Xsincos(tls, x, bp, bp+8) + **(**float64)(__ccgo_up(sin)) = float64(**(**float64)(__ccgo_up(bp))) + **(**float64)(__ccgo_up(cos)) = float64(**(**float64)(__ccgo_up(bp + 8))) +} + +const M_PI_27 = 1.5707963267948966 + +// C documentation +// +// /* Small multiples of pi/2 rounded to double precision. */ + +var _s1pio21 = float64(Float64FromInt32(1) * Float64FromFloat64(1.5707963267948966)) /* 0x3FF921FB, 0x54442D18 */ +var _s2pio21 = float64(Float64FromInt32(2) * Float64FromFloat64(1.5707963267948966)) /* 0x400921FB, 0x54442D18 */ +var _s3pio21 = float64(Float64FromInt32(3) * Float64FromFloat64(1.5707963267948966)) /* 0x4012D97C, 0x7F3321D2 */ +var _s4pio21 = float64(Float64FromInt32(4) * Float64FromFloat64(1.5707963267948966)) /* 0x401921FB, 0x54442D18 */ + +func Xsinf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ix Tuint32_t + var n, sign int32 + var y, v1 float32 + var y1, y2, v4 float64 + var _ /* y at bp+0 */ float64 + _, _, _, _, _, _, _, _ = ix, n, sign, y, y1, y2, v1, v4 + ix = *(*Tuint32_t)(unsafe.Pointer(&x3)) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix <= uint32(0x3f490fda) { /* |x| ~<= pi/4 */ + if ix < uint32(0x39800000) { /* |x| < 2**-12 */ + /* raise inexact if x!=0 and underflow if subnormal */ + if uint64(4) == uint64(4) { + if ix < uint32(0x00800000) { + v1 = x3 / Float32FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float32FromFloat32(1.329227995784916e+36) + } + y = v1 + } else { + if uint64(4) == uint64(8) { + if ix < uint32(0x00800000) { + v1 = x3 / Float32FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float32FromFloat32(1.329227995784916e+36) + } + y1 = float64(v1) + } else { + if ix < uint32(0x00800000) { + v1 = x3 / Float32FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float32FromFloat32(1.329227995784916e+36) + } + y2 = float64(v1) + } + } + return x3 + } + return X__sindf(tls, float64(x3)) + } + if ix <= uint32(0x407b53d1) { /* |x| ~<= 5*pi/4 */ + if ix <= uint32(0x4016cbe3) { /* |x| ~<= 3pi/4 */ + if sign != 0 { + return -X__cosdf(tls, float64(x3)+_s1pio21) + } else { + return X__cosdf(tls, float64(x3)-_s1pio21) + } + } + if sign != 0 { + v4 = -(float64(x3) + _s2pio21) + } else { + v4 = -(float64(x3) - _s2pio21) + } + return X__sindf(tls, v4) + } + if ix <= uint32(0x40e231d5) { /* |x| ~<= 9*pi/4 */ + if ix <= uint32(0x40afeddf) { /* |x| ~<= 7*pi/4 */ + if sign != 0 { + return X__cosdf(tls, float64(x3)+_s3pio21) + } else { + return -X__cosdf(tls, float64(x3)-_s3pio21) + } + } + if sign != 0 { + v4 = float64(x3) + _s4pio21 + } else { + v4 = float64(x3) - _s4pio21 + } + return X__sindf(tls, v4) + } + /* sin(Inf or NaN) is NaN */ + if ix >= uint32(0x7f800000) { + return x3 - x3 + } + /* general argument reduction needed */ + n = X__rem_pio2f(tls, x3, bp) + switch n & Int32FromInt32(3) { + case 0: + return X__sindf(tls, **(**float64)(__ccgo_up(bp))) + case int32(1): + return X__cosdf(tls, **(**float64)(__ccgo_up(bp))) + case int32(2): + return X__sindf(tls, -**(**float64)(__ccgo_up(bp))) + default: + return -X__cosdf(tls, **(**float64)(__ccgo_up(bp))) + } + return r +} + +const M_PI_28 = 0 + +// C documentation +// +// /* sinh(x) = (exp(x) - 1/exp(x))/2 +// * = (exp(x)-1 + (exp(x)-1)/exp(x))/2 +// * = x + x^3/6 + o(x^5) +// */ +func Xsinh(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var absx, h, t float64 + var w Tuint32_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _ = absx, h, t, w + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + h = float64(0.5) + if *(*Tuint64_t)(unsafe.Pointer(bp))>>int32(63) != 0 { + h = -h + } + /* |x| */ + *(*Tuint64_t)(unsafe.Pointer(bp)) &= Uint64FromInt32(-Int32FromInt32(1)) / Uint64FromInt32(2) + absx = *(*float64)(unsafe.Pointer(bp)) + w = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32)) + /* |x| < log(DBL_MAX) */ + if w < uint32(0x40862e42) { + t = Xexpm1(tls, absx) + if w < uint32(0x3ff00000) { + if w < Uint32FromInt32(Int32FromInt32(0x3ff00000)-Int32FromInt32(26)<log(0x1p26)+eps could be just h*exp(x) */ + return float64(h * (t + t/(t+Float64FromInt32(1)))) + } + /* |x| > log(DBL_MAX) or nan */ + /* note: the result is stored to handle overflow */ + t = X__expo2(tls, absx, float64(Float64FromInt32(2)*h)) + return t +} + +func Xsinhf(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var absx, h, t float32 + var w Tuint32_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _ = absx, h, t, w + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + h = float32(0.5) + if *(*Tuint32_t)(unsafe.Pointer(bp))>>int32(31) != 0 { + h = -h + } + /* |x| */ + *(*Tuint32_t)(unsafe.Pointer(bp)) &= uint32(0x7fffffff) + absx = *(*float32)(unsafe.Pointer(bp)) + w = *(*Tuint32_t)(unsafe.Pointer(bp)) + /* |x| < log(FLT_MAX) */ + if w < uint32(0x42b17217) { + t = Xexpm1f(tls, absx) + if w < uint32(0x3f800000) { + if w < Uint32FromInt32(Int32FromInt32(0x3f800000)-Int32FromInt32(12)< logf(FLT_MAX) or nan */ + t = X__expo2f(tls, absx, float32(Float32FromInt32(2)*h)) + return t +} + +func Xsinhl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xsinh(tls, x) +} + +func Xsinl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xsin(tls, x) +} + +const FENV_SUPPORT = 1 + +// C documentation +// +// /* returns a*b*2^-32 - e, with error 0 <= e < 1. */ +func _mul32(tls *TLS, a Tuint32_t, b Tuint32_t) (r Tuint32_t) { + return uint32(uint64(a) * uint64(b) >> int32(32)) +} + +// C documentation +// +// /* returns a*b*2^-64 - e, with error 0 <= e < 3. */ +func _mul64(tls *TLS, a Tuint64_t, b Tuint64_t) (r Tuint64_t) { + var ahi, alo, bhi, blo Tuint64_t + _, _, _, _ = ahi, alo, bhi, blo + ahi = a >> int32(32) + alo = a & uint64(0xffffffff) + bhi = b >> int32(32) + blo = b & uint64(0xffffffff) + return ahi*bhi + ahi*blo>>int32(32) + alo*bhi>>int32(32) +} + +func Xsqrt(tls *TLS, x1 float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x1=%v, (%v:)", tls, x1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var d, d0, d1, d2, i, ix, m, r, s, tiny, top, u Tuint64_t + var even int32 + var t, y, y1, v1 float64 + var v2 int64 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = d, d0, d1, d2, even, i, ix, m, r, s, t, tiny, top, u, y, y1, v1, v2 + /* special case handling. */ + ix = *(*Tuint64_t)(unsafe.Pointer(&x1)) + top = ix >> int32(52) + if top-uint64(0x001) >= Uint64FromInt32(Int32FromInt32(0x7ff)-Int32FromInt32(0x001)) { + /* x < 0x1p-1022 or inf or nan. */ + if ix*uint64(2) == uint64(0) { + return x1 + } + if ix == uint64(0x7ff0000000000000) { + return x1 + } + if ix > uint64(0x7ff0000000000000) { + return X__math_invalid(tls, x1) + } + /* x is subnormal, normalize it. */ + v1 = float64(x1 * float64(4.503599627370496e+15)) + ix = *(*Tuint64_t)(unsafe.Pointer(&v1)) + top = ix >> int32(52) + top = top - uint64(52) + } + /* argument reduction: + x = 4^e m; with integer e, and m in [1, 4) + m: fixed point representation [2.62] + 2^e is the exponent part of the result. */ + even = Int32FromUint64(top & uint64(1)) + m = ix<> uint64(1) + } + top = (top + uint64(0x3ff)) >> int32(1) + i = ix >> Int32FromInt32(46) % uint64(128) + r = uint64(uint32(X__rsqrt_tab[i]) << int32(16)) + /* |r sqrt(m) - 1| < 0x1.fdp-9 */ + s = uint64(_mul32(tls, uint32(m>>int32(32)), uint32(r))) + /* |s/sqrt(m) - 1| < 0x1.fdp-9 */ + d = uint64(_mul32(tls, uint32(s), uint32(r))) + u = _three - d + r = uint64(_mul32(tls, uint32(r), uint32(u)) << int32(1)) + /* |r sqrt(m) - 1| < 0x1.7bp-16 */ + s = uint64(_mul32(tls, uint32(s), uint32(u)) << int32(1)) + /* |s/sqrt(m) - 1| < 0x1.7bp-16 */ + d = uint64(_mul32(tls, uint32(s), uint32(r))) + u = _three - d + r = uint64(_mul32(tls, uint32(r), uint32(u)) << int32(1)) + /* |r sqrt(m) - 1| < 0x1.3704p-29 (measured worst-case) */ + r = r << int32(32) + s = _mul64(tls, m, r) + d = _mul64(tls, s, r) + u = _three<> int32(9) + d0 = m<>int32(63) + s = s & uint64(0x000fffffffffffff) + s = s | top<=13bit table would be needed (16k). + + a newton-raphson iteration for r is + w = r*r + u = 3 - m*w + r = r*u/2 + can use a goldschmidt iteration for s at the end or + s = m*r + + first goldschmidt iteration is + s = m*r + u = 3 - s*r + r = r*u/2 + s = s*u/2 + next goldschmidt iteration is + u = 3 - s*r + r = r*u/2 + s = s*u/2 + and at the end r is not computed only s. + + they use the same amount of operations and converge at the + same quadratic rate, i.e. if + r1 sqrt(m) - 1 = e, then + r2 sqrt(m) - 1 = -3/2 e^2 - 1/2 e^3 + the advantage of goldschmidt is that the mul for s and r + are independent (computed in parallel), however it is not + "self synchronizing": it only uses the input m in the + first iteration so rounding errors accumulate. at the end + or when switching to larger precision arithmetics rounding + errors dominate so the first iteration should be used. + + the fixed point representations are + m: 2.30 r: 0.32, s: 2.30, d: 2.30, u: 2.30, three: 2.30 + and after switching to 64 bit + m: 2.62 r: 0.64, s: 2.62, d: 2.62, u: 2.62, three: 2.62 */ + +var _three = uint64(0xc0000000) + +func _mul321(tls *TLS, a Tuint32_t, b Tuint32_t) (r Tuint32_t) { + return uint32(uint64(a) * uint64(b) >> int32(32)) +} + +/* see sqrt.c for more detailed comments. */ + +func Xsqrtf(tls *TLS, x1 float32) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x1=%v, (%v:)", tls, x1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var d, d0, d1, d2, even, ey, i, ix, m, m0, m1, r, s, tiny, u Tuint32_t + var t, y, y1, v1 float32 + var v2 uint32 + var v3 int32 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = d, d0, d1, d2, even, ey, i, ix, m, m0, m1, r, s, t, tiny, u, y, y1, v1, v2, v3 + ix = *(*Tuint32_t)(unsafe.Pointer(&x1)) + if ix-uint32(0x00800000) >= Uint32FromInt32(Int32FromInt32(0x7f800000)-Int32FromInt32(0x00800000)) { + /* x < 0x1p-126 or inf or nan. */ + if ix*uint32(2) == uint32(0) { + return x1 + } + if ix == uint32(0x7f800000) { + return x1 + } + if ix > uint32(0x7f800000) { + return X__math_invalidf(tls, x1) + } + /* x is subnormal, normalize it. */ + v1 = float32(x1 * Float32FromFloat32(8.388608e+06)) + ix = *(*Tuint32_t)(unsafe.Pointer(&v1)) + ix = ix - Uint32FromInt32(Int32FromInt32(23)<> int32(1) + ey = ey + Uint32FromInt32(Int32FromInt32(0x3f800000)>>Int32FromInt32(1)) + ey = ey & uint32(0x7f800000) + i = ix >> Int32FromInt32(17) % uint32(128) + r = uint32(X__rsqrt_tab[i]) << int32(16) + /* |r*sqrt(m) - 1| < 0x1p-8 */ + s = _mul321(tls, m, r) + /* |s/sqrt(m) - 1| < 0x1p-8 */ + d = _mul321(tls, s, r) + u = _three1 - d + r = _mul321(tls, r, u) << int32(1) + /* |r*sqrt(m) - 1| < 0x1.7bp-16 */ + s = _mul321(tls, s, u) << int32(1) + /* |s/sqrt(m) - 1| < 0x1.7bp-16 */ + d = _mul321(tls, s, r) + u = _three1 - d + s = _mul321(tls, s, u) + /* -0x1.03p-28 < s/sqrt(m) - 1 < 0x1.fp-31 */ + s = (s - uint32(1)) >> int32(6) + d0 = m<>int32(31) + s = s & uint32(0x007fffff) + s = s | ey + y1 = *(*float32)(unsafe.Pointer(&s)) + if int32(FENV_SUPPORT) != 0 { + if d2 == uint32(0) { + v3 = 0 + } else { + v3 = int32(0x01000000) + } + /* handle rounding and inexact exception. */ + tiny = Uint32FromInt32(v3) + tiny = tiny | (d1^d2)&uint32(0x80000000) + t = *(*float32)(unsafe.Pointer(&tiny)) + y = y1 + t + v1 = y + goto _5 + _5: + y1 = v1 + } + return y1 +} + +/* compute r ~ 1/sqrt(m), s ~ sqrt(m) with 2 goldschmidt iterations. */ +var _three1 = uint32(0xc0000000) + +func Xsqrtl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xsqrt(tls, x) +} + +func Xtan(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ix Tuint32_t + var n uint32 + var y float32 + var y1, y2, v1 float64 + var _ /* y at bp+0 */ [2]float64 + _, _, _, _, _, _ = ix, n, y, y1, y2, v1 + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x3)) >> int32(32)) + ix = ix & uint32(0x7fffffff) + /* |x| ~< pi/4 */ + if ix <= uint32(0x3fe921fb) { + if ix < uint32(0x3e400000) { /* |x| < 2**-27 */ + /* raise inexact if x!=0 and underflow if subnormal */ + if uint64(8) == uint64(4) { + if ix < uint32(0x00100000) { + v1 = x3 / Float64FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } + y = float32(v1) + } else { + if uint64(8) == uint64(8) { + if ix < uint32(0x00100000) { + v1 = x3 / Float64FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } + y1 = v1 + } else { + if ix < uint32(0x00100000) { + v1 = x3 / Float64FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } + y2 = v1 + } + } + return x3 + } + return X__tan(tls, x3, float64(0), 0) + } + /* tan(Inf or NaN) is NaN */ + if ix >= uint32(0x7ff00000) { + return x3 - x3 + } + /* argument reduction */ + n = Uint32FromInt32(X__rem_pio2(tls, x3, bp)) + return X__tan(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)], Int32FromUint32(n&uint32(1))) +} + +const M_PI_29 = 1.5707963267948966 + +// C documentation +// +// /* Small multiples of pi/2 rounded to double precision. */ + +var _t1pio2 = float64(Float64FromInt32(1) * Float64FromFloat64(1.5707963267948966)) /* 0x3FF921FB, 0x54442D18 */ +var _t2pio2 = float64(Float64FromInt32(2) * Float64FromFloat64(1.5707963267948966)) /* 0x400921FB, 0x54442D18 */ +var _t3pio2 = float64(Float64FromInt32(3) * Float64FromFloat64(1.5707963267948966)) /* 0x4012D97C, 0x7F3321D2 */ +var _t4pio2 = float64(Float64FromInt32(4) * Float64FromFloat64(1.5707963267948966)) /* 0x401921FB, 0x54442D18 */ + +func Xtanf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ix Tuint32_t + var n, sign uint32 + var y, v1 float32 + var y1, y2, v4 float64 + var _ /* y at bp+0 */ float64 + _, _, _, _, _, _, _, _ = ix, n, sign, y, y1, y2, v1, v4 + ix = *(*Tuint32_t)(unsafe.Pointer(&x3)) + sign = ix >> int32(31) + ix = ix & uint32(0x7fffffff) + if ix <= uint32(0x3f490fda) { /* |x| ~<= pi/4 */ + if ix < uint32(0x39800000) { /* |x| < 2**-12 */ + /* raise inexact if x!=0 and underflow if subnormal */ + if uint64(4) == uint64(4) { + if ix < uint32(0x00800000) { + v1 = x3 / Float32FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float32FromFloat32(1.329227995784916e+36) + } + y = v1 + } else { + if uint64(4) == uint64(8) { + if ix < uint32(0x00800000) { + v1 = x3 / Float32FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float32FromFloat32(1.329227995784916e+36) + } + y1 = float64(v1) + } else { + if ix < uint32(0x00800000) { + v1 = x3 / Float32FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float32FromFloat32(1.329227995784916e+36) + } + y2 = float64(v1) + } + } + return x3 + } + return X__tandf(tls, float64(x3), 0) + } + if ix <= uint32(0x407b53d1) { /* |x| ~<= 5*pi/4 */ + if ix <= uint32(0x4016cbe3) { /* |x| ~<= 3pi/4 */ + if sign != 0 { + v4 = float64(x3) + _t1pio2 + } else { + v4 = float64(x3) - _t1pio2 + } + return X__tandf(tls, v4, int32(1)) + } else { + if sign != 0 { + v4 = float64(x3) + _t2pio2 + } else { + v4 = float64(x3) - _t2pio2 + } + return X__tandf(tls, v4, 0) + } + } + if ix <= uint32(0x40e231d5) { /* |x| ~<= 9*pi/4 */ + if ix <= uint32(0x40afeddf) { /* |x| ~<= 7*pi/4 */ + if sign != 0 { + v4 = float64(x3) + _t3pio2 + } else { + v4 = float64(x3) - _t3pio2 + } + return X__tandf(tls, v4, int32(1)) + } else { + if sign != 0 { + v4 = float64(x3) + _t4pio2 + } else { + v4 = float64(x3) - _t4pio2 + } + return X__tandf(tls, v4, 0) + } + } + /* tan(Inf or NaN) is NaN */ + if ix >= uint32(0x7f800000) { + return x3 - x3 + } + /* argument reduction */ + n = Uint32FromInt32(X__rem_pio2f(tls, x3, bp)) + return X__tandf(tls, **(**float64)(__ccgo_up(bp)), Int32FromUint32(n&uint32(1))) +} + +const M_PI_210 = 0 + +// C documentation +// +// /* tanh(x) = (exp(x) - exp(-x))/(exp(x) + exp(-x)) +// * = (exp(2*x) - 1)/(exp(2*x) - 1 + 2) +// * = (1 - exp(-2*x))/(exp(-2*x) - 1 + 2) +// */ +func Xtanh(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var sign int32 + var t, v1 Tdouble_t + var w Tuint32_t + var y float32 + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _ = sign, t, w, y, y1, y2, v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + /* x = |x| */ + sign = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(63)) + *(*Tuint64_t)(unsafe.Pointer(bp)) &= Uint64FromInt32(-Int32FromInt32(1)) / Uint64FromInt32(2) + x3 = *(*float64)(unsafe.Pointer(bp)) + w = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32)) + if w > uint32(0x3fe193ea) { + /* |x| > log(3)/2 ~= 0.5493 or nan */ + if w > uint32(0x40340000) { + /* |x| > 20 or nan */ + /* note: this branch avoids raising overflow */ + t = Float64FromInt32(1) - Float64FromInt32(0)/x3 + } else { + t = Xexpm1(tls, float64(Float64FromInt32(2)*x3)) + t = Float64FromInt32(1) - Float64FromInt32(2)/(t+Float64FromInt32(2)) + } + } else { + if w > uint32(0x3fd058ae) { + /* |x| > log(5/3)/2 ~= 0.2554 */ + t = Xexpm1(tls, float64(Float64FromInt32(2)*x3)) + t = t / (t + Float64FromInt32(2)) + } else { + if w >= uint32(0x00100000) { + /* |x| >= 0x1p-1022, up to 2ulp error in [0.1,0.2554] */ + t = Xexpm1(tls, float64(float64(-Int32FromInt32(2))*x3)) + t = -t / (t + Float64FromInt32(2)) + } else { + /* |x| is subnormal */ + /* note: the branch above would not raise underflow in [0x1p-1023,0x1p-1022) */ + if uint64(4) == uint64(4) { + y = float32(x3) + } else { + if uint64(4) == uint64(8) { + y1 = float64(float32(x3)) + } else { + y2 = float64(float32(x3)) + } + } + t = x3 + } + } + } + if sign != 0 { + v1 = -t + } else { + v1 = t + } + return v1 +} + +func Xtanhf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var sign int32 + var t, y, v1 float32 + var w Tuint32_t + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _, _ = sign, t, w, y, y1, y2, v1 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + /* x = |x| */ + sign = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(31)) + *(*Tuint32_t)(unsafe.Pointer(bp)) &= uint32(0x7fffffff) + x3 = *(*float32)(unsafe.Pointer(bp)) + w = *(*Tuint32_t)(unsafe.Pointer(bp)) + if w > uint32(0x3f0c9f54) { + /* |x| > log(3)/2 ~= 0.5493 or nan */ + if w > uint32(0x41200000) { + /* |x| > 10 */ + t = Float32FromInt32(1) + Float32FromInt32(0)/x3 + } else { + t = Xexpm1f(tls, float32(Float32FromInt32(2)*x3)) + t = Float32FromInt32(1) - Float32FromInt32(2)/(t+Float32FromInt32(2)) + } + } else { + if w > uint32(0x3e82c578) { + /* |x| > log(5/3)/2 ~= 0.2554 */ + t = Xexpm1f(tls, float32(Float32FromInt32(2)*x3)) + t = t / (t + Float32FromInt32(2)) + } else { + if w >= uint32(0x00800000) { + /* |x| >= 0x1p-126 */ + t = Xexpm1f(tls, float32(float32(-Int32FromInt32(2))*x3)) + t = -t / (t + Float32FromInt32(2)) + } else { + /* |x| is subnormal */ + if uint64(4) == uint64(4) { + y = float32(x3 * x3) + } else { + if uint64(4) == uint64(8) { + y1 = float64(x3 * x3) + } else { + y2 = float64(x3 * x3) + } + } + t = x3 + } + } + } + if sign != 0 { + v1 = -t + } else { + v1 = t + } + return v1 +} + +func Xtanhl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xtanh(tls, x) +} + +func Xtanl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xtan(tls, x) +} + +const N10 = 12 + +var _pi4 = float64(3.141592653589793) + +// C documentation +// +// /* sin(pi x) with x > 0x1p-100, if sin(pi*x)==0 the sign is arbitrary */ +func _sinpi(tls *TLS, x float64) (r float64) { + var n int32 + _ = n + /* argument reduction: x = |x| mod 2 */ + /* spurious inexact when x is odd int */ + x = float64(x * float64(0.5)) + x = float64(Float64FromInt32(2) * (x - Xfloor(tls, x))) + /* reduce x into [-.25,.25] */ + n = int32(Float64FromInt32(4) * x) + n = (n + int32(1)) / int32(2) + x = x - float64(float64(n)*float64(0.5)) + x = x * _pi4 + switch n { + default: /* case 4 */ + fallthrough + case 0: + return X__sin(tls, x, Float64FromInt32(0), 0) + case int32(1): + return X__cos(tls, x, Float64FromInt32(0)) + case int32(2): + return X__sin(tls, -x, Float64FromInt32(0), 0) + case int32(3): + return -X__cos(tls, x, Float64FromInt32(0)) + } + return r +} + +// C documentation +// +// //static const double g = 6.024680040776729583740234375; +var _gmhalf = float64(5.52468004077673) +var _Snum = [13]float64{ + 0: float64(2.353137688041076e+10), + 1: float64(4.29198036426491e+10), + 2: float64(3.571195923735567e+10), + 3: float64(1.792103442603721e+10), + 4: float64(6.039542586352028e+09), + 5: float64(1.4397204073117216e+09), + 6: float64(2.4887455786205417e+08), + 7: float64(3.1426415585400194e+07), + 8: float64(2.8763706289353725e+06), + 9: float64(186056.26539522348), + 10: float64(8071.672002365816), + 11: float64(210.82427775157936), + 12: float64(2.5066282746310002), +} +var _Sden = [13]float64{ + 1: Float64FromInt32(39916800), + 2: Float64FromInt32(120543840), + 3: Float64FromInt32(150917976), + 4: Float64FromInt32(105258076), + 5: Float64FromInt32(45995730), + 6: Float64FromInt32(13339535), + 7: Float64FromInt32(2637558), + 8: Float64FromInt32(357423), + 9: Float64FromInt32(32670), + 10: Float64FromInt32(1925), + 11: Float64FromInt32(66), + 12: Float64FromInt32(1), +} + +// C documentation +// +// /* n! for small integer n */ +var _fact = [23]float64{ + 0: Float64FromInt32(1), + 1: Float64FromInt32(1), + 2: Float64FromInt32(2), + 3: Float64FromInt32(6), + 4: Float64FromInt32(24), + 5: Float64FromInt32(120), + 6: Float64FromInt32(720), + 7: float64(5040), + 8: float64(40320), + 9: float64(362880), + 10: float64(3.6288e+06), + 11: float64(3.99168e+07), + 12: float64(4.790016e+08), + 13: float64(6.2270208e+09), + 14: float64(8.71782912e+10), + 15: float64(1.307674368e+12), + 16: float64(2.0922789888e+13), + 17: float64(3.55687428096e+14), + 18: float64(6.402373705728e+15), + 19: float64(1.21645100408832e+17), + 20: float64(2.43290200817664e+18), + 21: float64(5.109094217170944e+19), + 22: float64(1.1240007277776077e+21), +} + +// C documentation +// +// /* S(x) rational function for positive x */ +func _S(tls *TLS, x float64) (r float64) { + var den, num Tdouble_t + var i int32 + _, _, _ = den, i, num + num = Float64FromInt32(0) + den = Float64FromInt32(0) + /* to avoid overflow handle large x differently */ + if x < Float64FromInt32(8) { + i = int32(N10) + for { + if !(i >= 0) { + break + } + num = Tdouble_t(num*x) + _Snum[i] + den = Tdouble_t(den*x) + _Sden[i] + goto _1 + _1: + ; + i = i - 1 + } + } else { + i = 0 + for { + if !(i <= int32(N10)) { + break + } + num = num/x + _Snum[i] + den = den/x + _Sden[i] + goto _2 + _2: + ; + i = i + 1 + } + } + return num / den +} + +func Xtgamma(tls *TLS, x3 float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var absx, y1, y2, y3, v1 float64 + var dy, r, z Tdouble_t + var ix Tuint32_t + var sign int32 + var y float32 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _, _, _, _, _ = absx, dy, ix, r, sign, y, y1, y2, y3, z, v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32) & uint64(0x7fffffff)) + sign = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(63)) + /* special cases */ + if ix >= uint32(0x7ff00000) { + /* tgamma(nan)=nan, tgamma(inf)=inf, tgamma(-inf)=nan with invalid */ + return x3 + float64(X__builtin_inff(tls)) + } + if ix < Uint32FromInt32((Int32FromInt32(0x3ff)-Int32FromInt32(54))<= 172: tgamma(x)=inf with overflow */ + /* x =< -184: tgamma(x)=+-0 with underflow */ + if ix >= uint32(0x40670000) { /* |x| >= 184 */ + if sign != 0 { + if uint64(4) == uint64(4) { + y = float32(Float64FromFloat64(1.1754943508222875e-38) / x3) + } else { + if uint64(4) == uint64(8) { + y1 = float64(float32(Float64FromFloat64(1.1754943508222875e-38) / x3)) + } else { + y2 = float64(float32(Float64FromFloat64(1.1754943508222875e-38) / x3)) + } + } + if float64(Xfloor(tls, x3)*float64(0.5)) == Xfloor(tls, float64(x3*float64(0.5))) { + return Float64FromInt32(0) + } + return -Float64FromFloat64(0) + } + x3 = x3 * float64(8.98846567431158e+307) + return x3 + } + if sign != 0 { + v1 = -x3 + } else { + v1 = x3 + } + absx = v1 + /* handle the error of x + g - 0.5 */ + y3 = absx + _gmhalf + if absx > _gmhalf { + dy = y3 - absx + dy = dy - _gmhalf + } else { + dy = y3 - _gmhalf + dy = dy - absx + } + z = absx - float64(0.5) + r = Tdouble_t(_S(tls, absx) * Xexp(tls, -y3)) + if x3 < Float64FromInt32(0) { + /* reflection formula for negative x */ + /* sinpi(absx) is not 0, integers are already handled */ + r = -_pi4 / float64(float64(_sinpi(tls, absx)*absx)*r) + dy = -dy + z = -z + } + r = r + Tdouble_t(Tdouble_t(dy*(_gmhalf+Float64FromFloat64(0.5)))*r)/y3 + z = Xpow(tls, y3, float64(float64(0.5)*z)) + y3 = float64(Tdouble_t(r*z) * z) + return y3 +} + +func Xtgammaf(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return float32(Xtgamma(tls, float64(x))) +} + +func Xtgammal(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xtgamma(tls, x) +} + +func Xtrunc(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e int32 + var m Tuint64_t + var y float32 + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _ = e, m, y, y1, y2 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + e = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp))>>Int32FromInt32(52)&Uint64FromInt32(0x7ff)) - int32(0x3ff) + int32(12) + if e >= Int32FromInt32(52)+Int32FromInt32(12) { + return x3 + } + if e < int32(12) { + e = int32(1) + } + m = uint64(-Uint64FromUint64(1) >> e) + if *(*Tuint64_t)(unsafe.Pointer(bp))&m == uint64(0) { + return x3 + } + if uint64(8) == uint64(4) { + y = float32(x3 + Float64FromFloat32(1.329227995784916e+36)) + } else { + if uint64(8) == uint64(8) { + y1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } else { + y2 = float64(x3 + Float64FromFloat32(1.329227995784916e+36)) + } + } + *(*Tuint64_t)(unsafe.Pointer(bp)) &= ^m + return *(*float64)(unsafe.Pointer(bp)) +} + +func Xtruncf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e int32 + var m Tuint32_t + var y float32 + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _ = e, m, y, y1, y2 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + e = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp))>>Int32FromInt32(23)&Uint32FromInt32(0xff)) - int32(0x7f) + int32(9) + if e >= Int32FromInt32(23)+Int32FromInt32(9) { + return x3 + } + if e < int32(9) { + e = int32(1) + } + m = -Uint32FromUint32(1) >> e + if *(*Tuint32_t)(unsafe.Pointer(bp))&m == uint32(0) { + return x3 + } + if uint64(4) == uint64(4) { + y = x3 + Float32FromFloat32(1.329227995784916e+36) + } else { + if uint64(4) == uint64(8) { + y1 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } else { + y2 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } + } + *(*Tuint32_t)(unsafe.Pointer(bp)) &= ^m + return *(*float32)(unsafe.Pointer(bp)) +} + +func Xtruncl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xtrunc(tls, x) +} + +var _digits = [65]uint8{'.', '/', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'} + +func Xa64l(tls *TLS, s uintptr) (r int64) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var d uintptr + var e int32 + var x Tuint32_t + _, _, _ = d, e, x + x = uint32(0) + e = 0 + for { + if !(e < int32(36) && **(**uint8)(__ccgo_up(s)) != 0) { + break + } + d = Xstrchr(tls, uintptr(unsafe.Pointer(&_digits)), Int32FromUint8(**(**uint8)(__ccgo_up(s)))) + if !(d != 0) { + break + } + x = x | Uint32FromInt64(int64(d)-t__predefined_ptrdiff_t(uintptr(unsafe.Pointer(&_digits))))< %v", r) }() + } + var p uintptr + var x Tuint32_t + _, _ = p, x + x = Uint32FromInt64(x0) + p = uintptr(unsafe.Pointer(&_s)) + for { + if !(x != 0) { + break + } + **(**uint8)(__ccgo_up(p)) = _digits[x&uint32(63)] + goto _1 + _1: + ; + p = p + 1 + x = x >> uint32(6) + } + **(**uint8)(__ccgo_up(p)) = uint8(0) + return uintptr(unsafe.Pointer(&_s)) +} + +var _s [7]uint8 + +func Xbasename(tls *TLS, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var i Tsize_t + _ = i + if !(s != 0) || !(**(**uint8)(__ccgo_up(s)) != 0) { + return __ccgo_ts + 558 + } + i = _strlen(tls, s) - uint64(1) + for { + if !(i != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(i)))) == int32('/')) { + break + } + **(**uint8)(__ccgo_up(s + uintptr(i))) = uint8(0) + goto _1 + _1: + ; + i = i - 1 + } + for { + if !(i != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(i-uint64(1))))) != int32('/')) { + break + } + goto _2 + _2: + ; + i = i - 1 + } + return s + uintptr(i) +} + +func X__xpg_basename(tls *TLS, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xbasename(tls, s) +} + +func Xdirname(tls *TLS, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var i Tsize_t + _ = i + if !(s != 0) || !(**(**uint8)(__ccgo_up(s)) != 0) { + return __ccgo_ts + 558 + } + i = _strlen(tls, s) - uint64(1) + for { + if !(Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(i)))) == int32('/')) { + break + } + if !(i != 0) { + return __ccgo_ts + 570 + } + goto _1 + _1: + ; + i = i - 1 + } + for { + if !(Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(i)))) != int32('/')) { + break + } + if !(i != 0) { + return __ccgo_ts + 558 + } + goto _2 + _2: + ; + i = i - 1 + } + for { + if !(Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(i)))) == int32('/')) { + break + } + if !(i != 0) { + return __ccgo_ts + 570 + } + goto _3 + _3: + ; + i = i - 1 + } + **(**uint8)(__ccgo_up(s + uintptr(i+uint64(1)))) = uint8(0) + return s +} + +func Xffs(tls *TLS, i int32) (r int32) { + if __ccgo_strace { + trc("tls=%v i=%v, (%v:)", tls, i, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + _ = v1 + if i != 0 { + v1 = _a_ctz_l(tls, Uint64FromInt32(i)) + int32(1) + } else { + v1 = 0 + } + return v1 +} + +func Xffsl(tls *TLS, i int64) (r int32) { + if __ccgo_strace { + trc("tls=%v i=%v, (%v:)", tls, i, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + _ = v1 + if i != 0 { + v1 = _a_ctz_l(tls, Uint64FromInt64(i)) + int32(1) + } else { + v1 = 0 + } + return v1 +} + +func Xffsll(tls *TLS, i int64) (r int32) { + if __ccgo_strace { + trc("tls=%v i=%v, (%v:)", tls, i, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1, v3 int32 + var v2 Tuint64_t + _, _, _ = v1, v2, v3 + if i != 0 { + v2 = Uint64FromInt64(i) + // __asm__( + // + // " rbit %0, %1\n clz %0, %0\n" + // : "=r"(x) : "r"(x)); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 70, __ccgo_ts+572) + v3 = Int32FromUint64(v2) + goto _4 + _4: + v1 = v3 + int32(1) + } else { + v1 = 0 + } + return v1 +} + +const MM_APPL = 8 +const MM_CONSOLE = 512 +const MM_ERROR = 2 +const MM_FIRM = 4 +const MM_HALT = 1 +const MM_HARD = 1 +const MM_INFO = 4 +const MM_NOCON = 4 +const MM_NOMSG = 1 +const MM_NOSEV = 0 +const MM_NOTOK = -1 +const MM_NRECOV = 128 +const MM_NULLMC = 0 +const MM_NULLSEV = 0 +const MM_OK = 0 +const MM_OPSYS = 32 +const MM_PRINT = 256 +const MM_RECOVER = 64 +const MM_SOFT = 2 +const MM_UTIL = 16 +const MM_WARNING = 3 + +// C documentation +// +// /* +// * If lstr is the first part of bstr, check that the next char in bstr +// * is either \0 or : +// */ +func __strcolcmp(tls *TLS, lstr uintptr, bstr uintptr) (r int32) { + var i Tsize_t + _ = i + i = uint64(0) + for **(**uint8)(__ccgo_up(lstr + uintptr(i))) != 0 && **(**uint8)(__ccgo_up(bstr + uintptr(i))) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(bstr + uintptr(i)))) == Int32FromUint8(**(**uint8)(__ccgo_up(lstr + uintptr(i)))) { + i = i + 1 + } + if **(**uint8)(__ccgo_up(lstr + uintptr(i))) != 0 || **(**uint8)(__ccgo_up(bstr + uintptr(i))) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(bstr + uintptr(i)))) != int32(':') { + return int32(1) + } + return 0 +} + +func Xfmtmsg(tls *TLS, classification int64, label uintptr, severity int32, text uintptr, action uintptr, tag uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v classification=%v label=%v severity=%v text=%v action=%v tag=%v, (%v:)", tls, classification, label, severity, text, action, tag, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(80) + defer tls.Free(80) + var cmsg, errstring, v1, v2, v3, v4, v5, v6, v7, v8 uintptr + var consolefd, i, ret, verb int32 + var msgs [6]uintptr + var _ /* cs at bp+0 */ int32 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = cmsg, consolefd, errstring, i, msgs, ret, verb, v1, v2, v3, v4, v5, v6, v7, v8 + ret = 0 + verb = 0 + errstring = uintptr(MM_NULLSEV) + cmsg = Xgetenv(tls, __ccgo_ts+578) + msgs = [6]uintptr{ + 0: __ccgo_ts + 586, + 1: __ccgo_ts + 592, + 2: __ccgo_ts + 601, + 3: __ccgo_ts + 606, + 4: __ccgo_ts + 613, + 5: UintptrFromInt32(0), + } + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp) + if severity == int32(MM_HALT) { + errstring = __ccgo_ts + 617 + } else { + if severity == int32(MM_ERROR) { + errstring = __ccgo_ts + 624 + } else { + if severity == int32(MM_WARNING) { + errstring = __ccgo_ts + 632 + } else { + if severity == int32(MM_INFO) { + errstring = __ccgo_ts + 642 + } + } + } + } + if classification&int64(MM_CONSOLE) != 0 { + consolefd = Xopen(tls, __ccgo_ts+649, int32(O_WRONLY), 0) + if consolefd < 0 { + ret = int32(MM_NOCON) + } else { + if label != 0 { + v1 = label + } else { + v1 = __ccgo_ts + } + if label != 0 { + v2 = __ccgo_ts + 289 + } else { + v2 = __ccgo_ts + } + if severity != 0 { + v3 = errstring + } else { + v3 = __ccgo_ts + } + if text != 0 { + v4 = text + } else { + v4 = __ccgo_ts + } + if action != 0 { + v5 = __ccgo_ts + 662 + } else { + v5 = __ccgo_ts + } + if action != 0 { + v6 = action + } else { + v6 = __ccgo_ts + } + if action != 0 { + v7 = __ccgo_ts + 672 + } else { + v7 = __ccgo_ts + } + if tag != 0 { + v8 = tag + } else { + v8 = __ccgo_ts + } + if Xdprintf(tls, consolefd, __ccgo_ts+674, VaList(bp+16, v1, v2, v3, v4, v5, v6, v7, v8)) < int32(1) { + ret = int32(MM_NOCON) + } + Xclose(tls, consolefd) + } + } + if classification&int64(MM_PRINT) != 0 { + for cmsg != 0 && **(**uint8)(__ccgo_up(cmsg)) != 0 { + i = 0 + for { + if !(msgs[i] != 0) { + break + } + if !(__strcolcmp(tls, msgs[i], cmsg) != 0) { + break + } + goto _9 + _9: + ; + i = i + 1 + } + if msgs[i] == UintptrFromInt32(0) { + //ignore MSGVERB-unrecognized component + verb = int32(0xFF) + break + } else { + verb = verb | int32(1)< %v", r) }() + } + bp := tls.Alloc(256) + defer tls.Free(256) + var res uintptr + var _ /* a at bp+0 */ Tstat + var _ /* b at bp+128 */ Tstat + _ = res + res = Xgetenv(tls, __ccgo_ts+692) + if res != 0 && **(**uint8)(__ccgo_up(res)) != 0 && !(Xstat(tls, res, bp) != 0) && !(Xstat(tls, __ccgo_ts+558, bp+128) != 0) && (**(**Tstat)(__ccgo_up(bp))).Fst_dev == (**(**Tstat)(__ccgo_up(bp + 128))).Fst_dev && (**(**Tstat)(__ccgo_up(bp))).Fst_ino == (**(**Tstat)(__ccgo_up(bp + 128))).Fst_ino { + return Xstrdup(tls, res) + } + return Xgetcwd(tls, uintptr(0), uint64(0)) +} + +func X__getauxval(tls *TLS, item uint64) (r uint64) { + if __ccgo_strace { + trc("tls=%v item=%v, (%v:)", tls, item, origin(2)) + defer func() { trc("-> %v", r) }() + } + var auxv uintptr + _ = auxv + auxv = X__libc.Fauxv + if item == uint64(AT_SECURE) { + return uint64(X__libc.Fsecure) + } + for { + if !(**(**Tsize_t)(__ccgo_up(auxv)) != 0) { + break + } + if **(**Tsize_t)(__ccgo_up(auxv)) == item { + return **(**Tsize_t)(__ccgo_up(auxv + 1*8)) + } + goto _1 + _1: + ; + auxv = auxv + uintptr(2)*8 + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOENT) + return uint64(0) +} + +func Xgetauxval(tls *TLS, item uint64) (r uint64) { + if __ccgo_strace { + trc("tls=%v item=%v, (%v:)", tls, item, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__getauxval(tls, item) +} + +type Tutsname = struct { + Fsysname [65]uint8 + Fnodename [65]uint8 + Frelease [65]uint8 + Fversion [65]uint8 + Fmachine [65]uint8 + Fdomainname [65]uint8 +} + +func Xgetdomainname(tls *TLS, name uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v len1=%v, (%v:)", tls, name, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(400) + defer tls.Free(400) + var _ /* temp at bp+0 */ Tutsname + Xuname(tls, bp) + if !(len1 != 0) || _strlen(tls, bp+325) >= len1 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + Xstrcpy(tls, name, bp+325) + return 0 +} + +func Xgetentropy(tls *TLS, buffer uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v buffer=%v len1=%v, (%v:)", tls, buffer, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var pos uintptr + var ret int32 + var _ /* cs at bp+0 */ int32 + _, _ = pos, ret + ret = 0 + pos = buffer + if len1 > uint64(256) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EIO) + return -int32(1) + } + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp) + for len1 != 0 { + ret = int32(Xgetrandom(tls, pos, len1, uint32(0))) + if ret < 0 { + if **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EINTR) { + continue + } else { + break + } + } + pos = pos + uintptr(ret) + len1 = len1 - Uint64FromInt32(ret) + ret = 0 + } + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp)), uintptr(0)) + return ret +} + +func Xgethostid(tls *TLS) (r int64) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return 0 +} + +const optpos = 0 + +type t__ucontext1 = Tucontext_t1 + +func X__getopt_msg(tls *TLS, a uintptr, b uintptr, c uintptr, l Tsize_t) { + if __ccgo_strace { + trc("tls=%v a=%v b=%v c=%v l=%v, (%v:)", tls, a, b, c, l, origin(2)) + } + var __need_unlock, v1 int32 + var f uintptr + _, _, _ = __need_unlock, f, v1 + f = uintptr(unsafe.Pointer(&X__stderr_FILE)) + b = X__lctrans_cur(tls, b) + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + _ = Xfputs(tls, a, f) >= 0 && Xfwrite(tls, b, _strlen(tls, b), uint64(1), f) != 0 && Xfwrite(tls, c, uint64(1), l, f) == l && Xputc(tls, int32('\n'), f) != 0 + if __need_unlock != 0 { + ___unlockfile(tls, f) + } +} + +func Xgetopt(tls *TLS, argc int32, argv uintptr, optstring uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v argc=%v argv=%v optstring=%v, (%v:)", tls, argc, argv, optstring, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var i, k, l, v1 int32 + var optchar uintptr + var _ /* c at bp+0 */ Twchar_t + var _ /* d at bp+4 */ Twchar_t + _, _, _, _, _ = i, k, l, optchar, v1 + if !(Xoptind != 0) || Xoptreset != 0 { + Xoptreset = 0 + X__optpos = 0 + Xoptind = int32(1) + } + if Xoptind >= argc || !(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) != 0) { + return -int32(1) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8))))) != int32('-') { + if Int32FromUint8(**(**uint8)(__ccgo_up(optstring))) == int32('-') { + v1 = Xoptind + Xoptind = Xoptind + 1 + Xoptarg = **(**uintptr)(__ccgo_up(argv + uintptr(v1)*8)) + return int32(1) + } + return -int32(1) + } + if !(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) + 1)) != 0) { + return -int32(1) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) + 1))) == int32('-') && !(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) + 2)) != 0) { + Xoptind = Xoptind + 1 + return -Int32FromInt32(1) + } + if !(X__optpos != 0) { + X__optpos = X__optpos + 1 + } + v1 = Xmbtowc(tls, bp, **(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8))+uintptr(X__optpos), uint64(MB_LEN_MAX)) + k = v1 + if v1 < 0 { + k = int32(1) + **(**Twchar_t)(__ccgo_up(bp)) = uint32(0xfffd) /* replacement char */ + } + optchar = **(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) + uintptr(X__optpos) + X__optpos = X__optpos + k + if !(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) + uintptr(X__optpos))) != 0) { + Xoptind = Xoptind + 1 + X__optpos = 0 + } + if Int32FromUint8(**(**uint8)(__ccgo_up(optstring))) == int32('-') || Int32FromUint8(**(**uint8)(__ccgo_up(optstring))) == int32('+') { + optstring = optstring + 1 + } + i = 0 + **(**Twchar_t)(__ccgo_up(bp + 4)) = uint32(0) + for cond := true; cond; cond = l != 0 && **(**Twchar_t)(__ccgo_up(bp + 4)) != **(**Twchar_t)(__ccgo_up(bp)) { + l = Xmbtowc(tls, bp+4, optstring+uintptr(i), uint64(MB_LEN_MAX)) + if l > 0 { + i = i + l + } else { + i = i + 1 + } + } + if **(**Twchar_t)(__ccgo_up(bp + 4)) != **(**Twchar_t)(__ccgo_up(bp)) || **(**Twchar_t)(__ccgo_up(bp)) == uint32(':') { + Xoptopt = Int32FromUint32(**(**Twchar_t)(__ccgo_up(bp))) + if Int32FromUint8(**(**uint8)(__ccgo_up(optstring))) != int32(':') && Xopterr != 0 { + X__getopt_msg(tls, **(**uintptr)(__ccgo_up(argv)), __ccgo_ts+696, optchar, Uint64FromInt32(k)) + } + return int32('?') + } + if Int32FromUint8(**(**uint8)(__ccgo_up(optstring + uintptr(i)))) == int32(':') { + Xoptarg = uintptr(0) + if Int32FromUint8(**(**uint8)(__ccgo_up(optstring + uintptr(i+int32(1))))) != int32(':') || X__optpos != 0 { + v1 = Xoptind + Xoptind = Xoptind + 1 + Xoptarg = **(**uintptr)(__ccgo_up(argv + uintptr(v1)*8)) + if X__optpos != 0 { + Xoptarg = Xoptarg + uintptr(X__optpos) + } + X__optpos = 0 + } + if Xoptind > argc { + Xoptopt = Int32FromUint32(**(**Twchar_t)(__ccgo_up(bp))) + if Int32FromUint8(**(**uint8)(__ccgo_up(optstring))) == int32(':') { + return int32(':') + } + if Xopterr != 0 { + X__getopt_msg(tls, **(**uintptr)(__ccgo_up(argv)), __ccgo_ts+720, optchar, Uint64FromInt32(k)) + } + return int32('?') + } + } + return Int32FromUint32(**(**Twchar_t)(__ccgo_up(bp))) +} + +func X__posix_getopt(tls *TLS, argc int32, argv uintptr, optstring uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v argc=%v argv=%v optstring=%v, (%v:)", tls, argc, argv, optstring, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetopt(tls, argc, argv, optstring) +} + +const no_argument = 0 +const optional_argument = 2 +const required_argument = 1 + +type Toption = struct { + Fname uintptr + Fhas_arg int32 + Fflag uintptr + Fval int32 +} + +func _permute(tls *TLS, argv uintptr, dest int32, src int32) { + var av, tmp uintptr + var i int32 + _, _, _ = av, i, tmp + av = argv + tmp = **(**uintptr)(__ccgo_up(av + uintptr(src)*8)) + i = src + for { + if !(i > dest) { + break + } + **(**uintptr)(__ccgo_up(av + uintptr(i)*8)) = **(**uintptr)(__ccgo_up(av + uintptr(i-int32(1))*8)) + goto _1 + _1: + ; + i = i - 1 + } + **(**uintptr)(__ccgo_up(av + uintptr(dest)*8)) = tmp +} + +func ___getopt_long(tls *TLS, argc int32, argv uintptr, optstring uintptr, longopts uintptr, idx uintptr, longonly int32) (r int32) { + var cnt, i, i1, resumed, ret, skipped int32 + _, _, _, _, _, _ = cnt, i, i1, resumed, ret, skipped + if !(Xoptind != 0) || Xoptreset != 0 { + Xoptreset = 0 + X__optpos = 0 + Xoptind = int32(1) + } + if Xoptind >= argc || !(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) != 0) { + return -int32(1) + } + skipped = Xoptind + if Int32FromUint8(**(**uint8)(__ccgo_up(optstring))) != int32('+') && Int32FromUint8(**(**uint8)(__ccgo_up(optstring))) != int32('-') { + i = Xoptind + for { + if i >= argc || !(**(**uintptr)(__ccgo_up(argv + uintptr(i)*8)) != 0) { + return -int32(1) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(i)*8))))) == int32('-') && **(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(i)*8)) + 1)) != 0 { + break + } + goto _1 + _1: + ; + i = i + 1 + } + Xoptind = i + } + resumed = Xoptind + ret = ___getopt_long_core(tls, argc, argv, optstring, longopts, idx, longonly) + if resumed > skipped { + cnt = Xoptind - resumed + i1 = 0 + for { + if !(i1 < cnt) { + break + } + _permute(tls, argv, skipped, Xoptind-int32(1)) + goto _2 + _2: + ; + i1 = i1 + 1 + } + Xoptind = skipped + cnt + } + return ret +} + +func ___getopt_long_core(tls *TLS, argc int32, argv uintptr, optstring uintptr, longopts uintptr, idx uintptr, longonly int32) (r int32) { + var arg, name, opt, start, v5 uintptr + var cnt, colon, i, j, l, match, v2 int32 + _, _, _, _, _, _, _, _, _, _, _, _ = arg, cnt, colon, i, j, l, match, name, opt, start, v2, v5 + Xoptarg = uintptr(0) + if longopts != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8))))) == int32('-') && (longonly != 0 && **(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) + 1)) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) + 1))) != int32('-') || Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) + 1))) == int32('-') && **(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) + 2)) != 0) { + colon = BoolInt32(Int32FromUint8(**(**uint8)(__ccgo_up(optstring + BoolUintptr(Int32FromUint8(**(**uint8)(__ccgo_up(optstring))) == int32('+') || Int32FromUint8(**(**uint8)(__ccgo_up(optstring))) == int32('-'))))) == int32(':')) + start = **(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) + uintptr(1) + v2 = Int32FromInt32(0) + i = v2 + cnt = v2 + for { + if !((**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fname != 0) { + break + } + name = (**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fname + opt = start + if Int32FromUint8(**(**uint8)(__ccgo_up(opt))) == int32('-') { + opt = opt + 1 + } + for **(**uint8)(__ccgo_up(opt)) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(opt))) != int32('=') && Int32FromUint8(**(**uint8)(__ccgo_up(opt))) == Int32FromUint8(**(**uint8)(__ccgo_up(name))) { + name = name + 1 + opt = opt + 1 + } + if **(**uint8)(__ccgo_up(opt)) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(opt))) != int32('=') { + goto _1 + } + arg = opt + match = i + if !(**(**uint8)(__ccgo_up(name)) != 0) { + cnt = int32(1) + break + } + cnt = cnt + 1 + goto _1 + _1: + ; + i = i + 1 + } + if cnt == int32(1) && longonly != 0 && int64(arg)-int64(start) == int64(Xmblen(tls, start, uint64(MB_LEN_MAX))) { + l = int32(int64(arg) - int64(start)) + i = 0 + for { + if !(**(**uint8)(__ccgo_up(optstring + uintptr(i))) != 0) { + break + } + j = 0 + for { + if !(j < l && Int32FromUint8(**(**uint8)(__ccgo_up(start + uintptr(j)))) == Int32FromUint8(**(**uint8)(__ccgo_up(optstring + uintptr(i+j))))) { + break + } + goto _4 + _4: + ; + j = j + 1 + } + if j == l { + cnt = cnt + 1 + break + } + goto _3 + _3: + ; + i = i + 1 + } + } + if cnt == int32(1) { + i = match + opt = arg + Xoptind = Xoptind + 1 + if Int32FromUint8(**(**uint8)(__ccgo_up(opt))) == int32('=') { + if !((**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fhas_arg != 0) { + Xoptopt = (**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fval + if colon != 0 || !(Xopterr != 0) { + return int32('?') + } + X__getopt_msg(tls, **(**uintptr)(__ccgo_up(argv)), __ccgo_ts+752, (**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fname, _strlen(tls, (**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fname)) + return int32('?') + } + Xoptarg = opt + uintptr(1) + } else { + if (**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fhas_arg == int32(required_argument) { + v5 = **(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) + Xoptarg = v5 + if !(v5 != 0) { + Xoptopt = (**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fval + if colon != 0 { + return int32(':') + } + if !(Xopterr != 0) { + return int32('?') + } + X__getopt_msg(tls, **(**uintptr)(__ccgo_up(argv)), __ccgo_ts+720, (**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fname, _strlen(tls, (**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fname)) + return int32('?') + } + Xoptind = Xoptind + 1 + } + } + if idx != 0 { + **(**int32)(__ccgo_up(idx)) = i + } + if (**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fflag != 0 { + **(**int32)(__ccgo_up((**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fflag)) = (**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fval + return 0 + } + return (**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fval + } + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) + 1))) == int32('-') { + Xoptopt = 0 + if !(colon != 0) && Xopterr != 0 { + if cnt != 0 { + v5 = __ccgo_ts + 789 + } else { + v5 = __ccgo_ts + 696 + } + X__getopt_msg(tls, **(**uintptr)(__ccgo_up(argv)), v5, **(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8))+uintptr(2), _strlen(tls, **(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8))+uintptr(2))) + } + Xoptind = Xoptind + 1 + return int32('?') + } + } + return Xgetopt(tls, argc, argv, optstring) +} + +func Xgetopt_long(tls *TLS, argc int32, argv uintptr, optstring uintptr, longopts uintptr, idx uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v argc=%v argv=%v optstring=%v longopts=%v idx=%v, (%v:)", tls, argc, argv, optstring, longopts, idx, origin(2)) + defer func() { trc("-> %v", r) }() + } + return ___getopt_long(tls, argc, argv, optstring, longopts, idx, 0) +} + +func Xgetopt_long_only(tls *TLS, argc int32, argv uintptr, optstring uintptr, longopts uintptr, idx uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v argc=%v argv=%v optstring=%v longopts=%v idx=%v, (%v:)", tls, argc, argv, optstring, longopts, idx, origin(2)) + defer func() { trc("-> %v", r) }() + } + return ___getopt_long(tls, argc, argv, optstring, longopts, idx, int32(1)) +} + +func Xgetpriority(tls *TLS, which int32, who Tid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v which=%v who=%v, (%v:)", tls, which, who, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret int32 + _ = ret + ret = int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_getpriority), int64(which), Int64FromUint32(who))))) + if ret < 0 { + return ret + } + return int32(20) - ret +} + +func Xgetresgid(tls *TLS, rgid uintptr, egid uintptr, sgid uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v rgid=%v egid=%v sgid=%v, (%v:)", tls, rgid, egid, sgid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_getresgid), int64(rgid), int64(egid), int64(sgid))))) +} + +func Xgetresuid(tls *TLS, ruid uintptr, euid uintptr, suid uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v ruid=%v euid=%v suid=%v, (%v:)", tls, ruid, euid, suid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_getresuid), int64(ruid), int64(euid), int64(suid))))) +} + +func Xgetrlimit(tls *TLS, resource int32, rlim uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v resource=%v rlim=%v, (%v:)", tls, resource, rlim, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ret int32 + var v1 uint64 + var _ /* k_rlim at bp+0 */ [2]uint64 + _, _ = ret, v1 + ret = int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_prlimit64), int64(Int32FromInt32(0)), int64(resource), int64(Int32FromInt32(0)), int64(rlim))))) + if !(ret != 0) { + if (*Trlimit)(unsafe.Pointer(rlim)).Frlim_cur >= ^Uint64FromUint64(0) { + (*Trlimit)(unsafe.Pointer(rlim)).Frlim_cur = ^Uint64FromUint64(0) + } + if (*Trlimit)(unsafe.Pointer(rlim)).Frlim_max >= ^Uint64FromUint64(0) { + (*Trlimit)(unsafe.Pointer(rlim)).Frlim_max = ^Uint64FromUint64(0) + } + } + if !(ret != 0) || **(**int32)(__ccgo_up(X__errno_location(tls))) != int32(ENOSYS) { + return ret + } + if X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_getrlimit), int64(resource), int64(bp)))) < 0 { + return -int32(1) + } + if (**(**[2]uint64)(__ccgo_up(bp)))[0] == -Uint64FromUint64(1) { + v1 = ^Uint64FromUint64(0) + } else { + v1 = (**(**[2]uint64)(__ccgo_up(bp)))[0] + } + (*Trlimit)(unsafe.Pointer(rlim)).Frlim_cur = v1 + if (**(**[2]uint64)(__ccgo_up(bp)))[int32(1)] == -Uint64FromUint64(1) { + v1 = ^Uint64FromUint64(0) + } else { + v1 = (**(**[2]uint64)(__ccgo_up(bp)))[int32(1)] + } + (*Trlimit)(unsafe.Pointer(rlim)).Frlim_max = v1 + if (*Trlimit)(unsafe.Pointer(rlim)).Frlim_cur >= ^Uint64FromUint64(0) { + (*Trlimit)(unsafe.Pointer(rlim)).Frlim_cur = ^Uint64FromUint64(0) + } + if (*Trlimit)(unsafe.Pointer(rlim)).Frlim_max >= ^Uint64FromUint64(0) { + (*Trlimit)(unsafe.Pointer(rlim)).Frlim_max = ^Uint64FromUint64(0) + } + return 0 +} + +func Xgetrusage(tls *TLS, who int32, ru uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v who=%v ru=%v, (%v:)", tls, who, ru, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var dest uintptr + var r int32 + var _ /* kru at bp+0 */ [4]int64 + _, _ = dest, r + dest = ru + 32 - uintptr(Uint64FromInt32(4)*Uint64FromInt64(8)) + r = int32(X__syscall2(tls, int64(SYS_getrusage), int64(who), int64(dest))) + if !(r != 0) && Bool(uint64(8) > uint64(8)) { + Xmemcpy(tls, bp, dest, Uint64FromInt32(4)*Uint64FromInt64(8)) + (*Trusage)(unsafe.Pointer(ru)).Fru_utime = Ttimeval{ + Ftv_sec: (**(**[4]int64)(__ccgo_up(bp)))[0], + Ftv_usec: (**(**[4]int64)(__ccgo_up(bp)))[int32(1)], + } + (*Trusage)(unsafe.Pointer(ru)).Fru_stime = Ttimeval{ + Ftv_sec: (**(**[4]int64)(__ccgo_up(bp)))[int32(2)], + Ftv_usec: (**(**[4]int64)(__ccgo_up(bp)))[int32(3)], + } + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func Xgetsubopt(tls *TLS, opt uintptr, keys uintptr, val uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v opt=%v keys=%v val=%v, (%v:)", tls, opt, keys, val, origin(2)) + defer func() { trc("-> %v", r) }() + } + var i int32 + var l Tsize_t + var s, v1, v2 uintptr + _, _, _, _, _ = i, l, s, v1, v2 + s = **(**uintptr)(__ccgo_up(opt)) + **(**uintptr)(__ccgo_up(val)) = UintptrFromInt32(0) + **(**uintptr)(__ccgo_up(opt)) = Xstrchr(tls, s, int32(',')) + if **(**uintptr)(__ccgo_up(opt)) != 0 { + v2 = opt + v1 = *(*uintptr)(unsafe.Pointer(v2)) + *(*uintptr)(unsafe.Pointer(v2)) = *(*uintptr)(unsafe.Pointer(v2)) + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(0) + } else { + **(**uintptr)(__ccgo_up(opt)) = s + uintptr(_strlen(tls, s)) + } + i = 0 + for { + if !(**(**uintptr)(__ccgo_up(keys + uintptr(i)*8)) != 0) { + break + } + l = _strlen(tls, **(**uintptr)(__ccgo_up(keys + uintptr(i)*8))) + if Xstrncmp(tls, **(**uintptr)(__ccgo_up(keys + uintptr(i)*8)), s, l) != 0 { + goto _3 + } + if Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(l)))) == int32('=') { + **(**uintptr)(__ccgo_up(val)) = s + uintptr(l) + uintptr(1) + } else { + if **(**uint8)(__ccgo_up(s + uintptr(l))) != 0 { + goto _3 + } + } + return i + goto _3 + _3: + ; + i = i + 1 + } + return -int32(1) +} + +const R = 2 +const W = 1 +const WR = 3 + +type Tioctl_compat_map = struct { + Fnew_req int32 + Fold_req int32 + Fold_size uint8 + Fdir uint8 + Fforce_align uint8 + Fnoffs uint8 + Foffsets [8]uint8 +} + +/* yields a type for a struct with original size n, with a misaligned + * timeval/timespec expanded from 32- to 64-bit. for use with ioctl + * number producing macros; only size of result is meaningful. */ + +type Tv4l2_event = struct { + Fa Tuint32_t + Fb [8]Tuint64_t + Fc [2]Tuint32_t + Fts [2]Tuint32_t + Fd [9]Tuint32_t +} + +var _compat_map = [20]Tioctl_compat_map{ + 0: { + Fnew_req: int32(SIOCGSTAMP), + Fold_req: int32(SIOCGSTAMP_OLD), + Fold_size: uint8(8), + Fdir: uint8(R), + Fnoffs: uint8(2), + Foffsets: [8]uint8{ + 1: uint8(4), + }, + }, + 1: { + Fnew_req: int32(SIOCGSTAMPNS), + Fold_req: int32(SIOCGSTAMPNS_OLD), + Fold_size: uint8(8), + Fdir: uint8(R), + Fnoffs: uint8(2), + Foffsets: [8]uint8{ + 1: uint8(4), + }, + }, + 2: { + Fnew_req: Int32FromUint64(uint64(Uint32FromUint32(2)< %v", r1) }() + } + bp := tls.Alloc(256) + defer tls.Free(256) + var ap Tva_list + var arg uintptr + var i, r int32 + var _ /* u at bp+0 */ struct { + Fbuf [0][256]uint8 + Falign int64 + F__ccgo_pad2 [248]byte + } + _, _, _, _ = ap, arg, i, r + ap = va + arg = VaUintptr(&ap) + _ = ap + r = int32(X__syscall3(tls, int64(SYS_ioctl), int64(fd), int64(req), int64(arg))) + if Bool(Bool(int32(SIOCGSTAMP) != int32(SIOCGSTAMP_OLD)) && req != 0) && r == -int32(ENOTTY) { + i = 0 + for { + if !(Uint64FromInt32(i) < Uint64FromInt64(400)/Uint64FromInt64(20)) { + break + } + if _compat_map[i].Fnew_req != req { + goto _1 + } + _convert_ioctl_struct(tls, uintptr(unsafe.Pointer(&_compat_map))+uintptr(i)*20, bp, arg, int32(W)) + r = int32(X__syscall3(tls, int64(SYS_ioctl), int64(fd), int64(_compat_map[i].Fold_req), int64(bp))) + if r < 0 { + break + } + _convert_ioctl_struct(tls, uintptr(unsafe.Pointer(&_compat_map))+uintptr(i)*20, bp, arg, int32(R)) + break + goto _1 + _1: + ; + i = i + 1 + } + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func Xissetugid(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Int32FromUint8(X__libc.Fsecure) +} + +func Xlockf(tls *TLS, fd int32, op int32, size Toff_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v op=%v size=%v, (%v:)", tls, fd, op, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + var _ /* l at bp+0 */ Tflock + **(**Tflock)(__ccgo_up(bp)) = Tflock{ + Fl_type: int16(F_WRLCK), + Fl_whence: int16(1), + Fl_len: size, + } + switch op { + case int32(F_TEST): + (**(**Tflock)(__ccgo_up(bp))).Fl_type = F_RDLCK + if Xfcntl(tls, fd, int32(F_GETLK), VaList(bp+40, bp)) < 0 { + return -int32(1) + } + if int32((**(**Tflock)(__ccgo_up(bp))).Fl_type) == int32(F_UNLCK) || (**(**Tflock)(__ccgo_up(bp))).Fl_pid == Xgetpid(tls) { + return 0 + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EACCES) + return -int32(1) + case F_ULOCK: + (**(**Tflock)(__ccgo_up(bp))).Fl_type = int16(F_UNLCK) + fallthrough + case int32(F_TLOCK): + return Xfcntl(tls, fd, int32(F_SETLK), VaList(bp+40, bp)) + case int32(F_LOCK): + return Xfcntl(tls, fd, int32(F_SETLKW), VaList(bp+40, bp)) + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) +} + +const ACCOUNTING = 9 +const UTMP_FILE = "_PATH_UTMP" +const UTMP_FILENAME = "_PATH_UTMP" +const UT_HOSTSIZE = 256 +const UT_LINESIZE = 32 +const UT_NAMESIZE = 32 +const WTMP_FILE = "_PATH_WTMP" +const WTMP_FILENAME = "_PATH_WTMP" +const _PATH_UTMP = "/dev/null/utmp" +const _PATH_WTMP = "/dev/null/wtmp" +const ut_name = 0 +const utmp = 0 + +type Tlastlog = struct { + Fll_time Ttime_t + Fll_line [32]uint8 + Fll_host [256]uint8 +} + +func Xlogin_tty(tls *TLS, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + Xsetsid(tls) + if Xioctl(tls, fd, int32(TIOCSCTTY), VaList(bp+8, UintptrFromInt32(0))) != 0 { + return -int32(1) + } + Xdup2(tls, fd, 0) + Xdup2(tls, fd, int32(1)) + Xdup2(tls, fd, int32(2)) + if fd > int32(2) { + Xclose(tls, fd) + } + return 0 +} + +const MNTOPT_DEFAULTS = "defaults" +const MNTOPT_NOAUTO = "noauto" +const MNTOPT_NOSUID = "nosuid" +const MNTOPT_RO = "ro" +const MNTOPT_RW = "rw" +const MNTOPT_SUID = "suid" +const MNTTYPE_IGNORE = "ignore" +const MNTTYPE_NFS = "nfs" +const MNTTYPE_SWAP = "swap" +const MOUNTED = "/etc/mtab" +const SENTINEL = 0 + +type Tmntent = struct { + Fmnt_fsname uintptr + Fmnt_dir uintptr + Fmnt_type uintptr + Fmnt_opts uintptr + Fmnt_freq int32 + Fmnt_passno int32 +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +var _internal_buf uintptr +var _internal_bufsize Tsize_t + +func Xsetmntent(tls *TLS, name uintptr, mode uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v mode=%v, (%v:)", tls, name, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfopen(tls, name, mode) +} + +func Xendmntent(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + if f != 0 { + Xfclose(tls, f) + } + return int32(1) +} + +func _unescape_ent(tls *TLS, beg uintptr) (r uintptr) { + var cval uint8 + var dest, src, val, v1, v2 uintptr + var i int32 + _, _, _, _, _, _, _ = cval, dest, i, src, val, v1, v2 + dest = beg + src = beg + for **(**uint8)(__ccgo_up(src)) != 0 { + cval = uint8(0) + if Int32FromUint8(**(**uint8)(__ccgo_up(src))) != int32('\\') { + v1 = dest + dest = dest + 1 + v2 = src + src = src + 1 + **(**uint8)(__ccgo_up(v1)) = **(**uint8)(__ccgo_up(v2)) + continue + } + if Int32FromUint8(**(**uint8)(__ccgo_up(src + 1))) == int32('\\') { + src = src + 1 + v1 = dest + dest = dest + 1 + v2 = src + src = src + 1 + **(**uint8)(__ccgo_up(v1)) = **(**uint8)(__ccgo_up(v2)) + continue + } + val = src + uintptr(1) + i = 0 + for { + if !(i < int32(3)) { + break + } + if Int32FromUint8(**(**uint8)(__ccgo_up(val))) >= int32('0') && Int32FromUint8(**(**uint8)(__ccgo_up(val))) <= int32('7') { + cval = Uint8FromInt32(int32(cval) << Int32FromInt32(3)) + v1 = val + val = val + 1 + cval = Uint8FromInt32(int32(cval) + (Int32FromUint8(**(**uint8)(__ccgo_up(v1))) - Int32FromUint8('0'))) + } else { + break + } + goto _5 + _5: + ; + i = i + 1 + } + if cval != 0 { + v1 = dest + dest = dest + 1 + **(**uint8)(__ccgo_up(v1)) = cval + src = val + } else { + v1 = dest + dest = dest + 1 + v2 = src + src = src + 1 + **(**uint8)(__ccgo_up(v1)) = **(**uint8)(__ccgo_up(v2)) + } + } + **(**uint8)(__ccgo_up(dest)) = uint8(0) + return beg +} + +func Xgetmntent_r(tls *TLS, f uintptr, mnt uintptr, linebuf uintptr, buflen int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v mnt=%v linebuf=%v buflen=%v, (%v:)", tls, f, mnt, linebuf, buflen, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(128) + defer tls.Free(128) + var i, len1 Tsize_t + var use_internal int32 + var _ /* n at bp+0 */ [8]int32 + _, _, _ = i, len1, use_internal + use_internal = BoolInt32(linebuf == uintptr(unsafe.Pointer(&_internal_buf))) + (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_freq = 0 + (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_passno = 0 + for cond := true; cond; cond = Int32FromUint8(**(**uint8)(__ccgo_up(linebuf + uintptr((**(**[8]int32)(__ccgo_up(bp)))[0])))) == int32('#') || Uint64FromInt32((**(**[8]int32)(__ccgo_up(bp)))[int32(1)]) == len1 { + if use_internal != 0 { + Xgetline(tls, uintptr(unsafe.Pointer(&_internal_buf)), uintptr(unsafe.Pointer(&_internal_bufsize)), f) + linebuf = _internal_buf + } else { + Xfgets(tls, linebuf, buflen, f) + } + if Xfeof(tls, f) != 0 || Xferror(tls, f) != 0 { + return uintptr(0) + } + if !(Xstrchr(tls, linebuf, int32('\n')) != 0) { + Xfscanf(tls, f, __ccgo_ts+813, 0) + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ERANGE) + return uintptr(0) + } + len1 = _strlen(tls, linebuf) + if len1 > uint64(INT_MAX) { + continue + } + i = uint64(0) + for { + if !(i < Uint64FromInt64(32)/Uint64FromInt64(4)) { + break + } + (**(**[8]int32)(__ccgo_up(bp)))[i] = Int32FromUint64(len1) + goto _1 + _1: + ; + i = i + 1 + } + Xsscanf(tls, linebuf, __ccgo_ts+825, VaList(bp+40, bp, bp+uintptr(1)*4, bp+uintptr(2)*4, bp+uintptr(3)*4, bp+uintptr(4)*4, bp+uintptr(5)*4, bp+uintptr(6)*4, bp+uintptr(7)*4, mnt+32, mnt+36)) + } + **(**uint8)(__ccgo_up(linebuf + uintptr((**(**[8]int32)(__ccgo_up(bp)))[int32(1)]))) = uint8(0) + **(**uint8)(__ccgo_up(linebuf + uintptr((**(**[8]int32)(__ccgo_up(bp)))[int32(3)]))) = uint8(0) + **(**uint8)(__ccgo_up(linebuf + uintptr((**(**[8]int32)(__ccgo_up(bp)))[int32(5)]))) = uint8(0) + **(**uint8)(__ccgo_up(linebuf + uintptr((**(**[8]int32)(__ccgo_up(bp)))[int32(7)]))) = uint8(0) + (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_fsname = _unescape_ent(tls, linebuf+uintptr((**(**[8]int32)(__ccgo_up(bp)))[0])) + (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_dir = _unescape_ent(tls, linebuf+uintptr((**(**[8]int32)(__ccgo_up(bp)))[int32(2)])) + (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_type = _unescape_ent(tls, linebuf+uintptr((**(**[8]int32)(__ccgo_up(bp)))[int32(4)])) + (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_opts = _unescape_ent(tls, linebuf+uintptr((**(**[8]int32)(__ccgo_up(bp)))[int32(6)])) + return mnt +} + +func Xgetmntent(tls *TLS, f uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetmntent_r(tls, f, uintptr(unsafe.Pointer(&_mnt)), uintptr(unsafe.Pointer(&_internal_buf)), 0) +} + +var _mnt Tmntent + +func Xaddmntent(tls *TLS, f uintptr, mnt uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v mnt=%v, (%v:)", tls, f, mnt, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + if Xfseek(tls, f, 0, int32(2)) != 0 { + return int32(1) + } + return BoolInt32(Xfprintf(tls, f, __ccgo_ts+880, VaList(bp+8, (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_fsname, (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_dir, (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_type, (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_opts, (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_freq, (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_passno)) < 0) +} + +func Xhasmntopt(tls *TLS, mnt uintptr, opt uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v mnt=%v opt=%v, (%v:)", tls, mnt, opt, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrstr(tls, (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_opts, opt) +} + +type Thistory = struct { + Fchain uintptr + Fdev Tdev_t + Fino Tino_t + Flevel int32 + Fbase int32 +} + +func _do_nftw(tls *TLS, path uintptr, __ccgo_fp_fn uintptr, fd_limit int32, flags int32, h uintptr) (r1 int32) { + bp := tls.Alloc(176) + defer tls.Free(176) + var d, de, v10 uintptr + var dfd, err, r, type1, v3 int32 + var j, k, l Tsize_t + var v1 uint64 + var v8 bool + var v2 Tino_t + var _ /* lev at bp+160 */ TFTW + var _ /* new at bp+128 */ Thistory + var _ /* st at bp+0 */ Tstat + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = d, de, dfd, err, j, k, l, r, type1, v1, v10, v2, v3, v8 + l = _strlen(tls, path) + if l != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(path + uintptr(l-uint64(1))))) == int32('/') { + v1 = l - uint64(1) + } else { + v1 = l + } + j = v1 + v2 = Uint64FromInt32(0) + (**(**Tstat)(__ccgo_up(bp))).Fst_ino = v2 + (**(**Tstat)(__ccgo_up(bp))).Fst_dev = v2 + if flags&int32(FTW_PHYS) != 0 { + v3 = Xlstat(tls, path, bp) + } else { + v3 = BoolInt32(Xstat(tls, path, bp) < 0) + } + if v3 != 0 { + if !(flags&Int32FromInt32(FTW_PHYS) != 0) && **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(ENOENT) && !(Xlstat(tls, path, bp) != 0) { + type1 = int32(FTW_SLN) + } else { + if **(**int32)(__ccgo_up(X__errno_location(tls))) != int32(EACCES) { + return -int32(1) + } else { + type1 = int32(FTW_NS) + } + } + } else { + if (**(**Tstat)(__ccgo_up(bp))).Fst_mode&uint32(S_IFMT) == uint32(S_IFDIR) { + if flags&int32(FTW_DEPTH) != 0 { + type1 = int32(FTW_DP) + } else { + type1 = int32(FTW_D) + } + } else { + if (**(**Tstat)(__ccgo_up(bp))).Fst_mode&uint32(S_IFMT) == uint32(S_IFLNK) { + if flags&int32(FTW_PHYS) != 0 { + type1 = int32(FTW_SL) + } else { + type1 = int32(FTW_SLN) + } + } else { + type1 = int32(FTW_F) + } + } + } + if flags&int32(FTW_MOUNT) != 0 && h != 0 && type1 != int32(FTW_NS) && (**(**Tstat)(__ccgo_up(bp))).Fst_dev != (*Thistory)(unsafe.Pointer(h)).Fdev { + return 0 + } + (**(**Thistory)(__ccgo_up(bp + 128))).Fchain = h + (**(**Thistory)(__ccgo_up(bp + 128))).Fdev = (**(**Tstat)(__ccgo_up(bp))).Fst_dev + (**(**Thistory)(__ccgo_up(bp + 128))).Fino = (**(**Tstat)(__ccgo_up(bp))).Fst_ino + if h != 0 { + v3 = (*Thistory)(unsafe.Pointer(h)).Flevel + int32(1) + } else { + v3 = 0 + } + (**(**Thistory)(__ccgo_up(bp + 128))).Flevel = v3 + (**(**Thistory)(__ccgo_up(bp + 128))).Fbase = Int32FromUint64(j + uint64(1)) + (**(**TFTW)(__ccgo_up(bp + 160))).Flevel = (**(**Thistory)(__ccgo_up(bp + 128))).Flevel + if h != 0 { + (**(**TFTW)(__ccgo_up(bp + 160))).Fbase = (*Thistory)(unsafe.Pointer(h)).Fbase + } else { + k = j + for { + if !(k != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(path + uintptr(k)))) == int32('/')) { + break + } + goto _5 + _5: + ; + k = k - 1 + } + for { + if !(k != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(path + uintptr(k-uint64(1))))) != int32('/')) { + break + } + goto _6 + _6: + ; + k = k - 1 + } + (**(**TFTW)(__ccgo_up(bp + 160))).Fbase = Int32FromUint64(k) + } + if type1 == int32(FTW_D) || type1 == int32(FTW_DP) { + dfd = Xopen(tls, path, O_RDONLY, 0) + err = **(**int32)(__ccgo_up(X__errno_location(tls))) + if dfd < 0 && err == int32(EACCES) { + type1 = int32(FTW_DNR) + } + if !(fd_limit != 0) { + Xclose(tls, dfd) + } + } + if v8 = !(flags&Int32FromInt32(FTW_DEPTH) != 0); v8 { + v3 = (*(*func(*TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_fn})))(tls, path, bp, type1, bp+160) + r = v3 + } + if v8 && v3 != 0 { + return r + } + for { + if !(h != 0) { + break + } + if (*Thistory)(unsafe.Pointer(h)).Fdev == (**(**Tstat)(__ccgo_up(bp))).Fst_dev && (*Thistory)(unsafe.Pointer(h)).Fino == (**(**Tstat)(__ccgo_up(bp))).Fst_ino { + return 0 + } + goto _9 + _9: + ; + h = (*Thistory)(unsafe.Pointer(h)).Fchain + } + if (type1 == int32(FTW_D) || type1 == int32(FTW_DP)) && fd_limit != 0 { + if dfd < 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = err + return -int32(1) + } + d = Xfdopendir(tls, dfd) + if d != 0 { + for { + v10 = Xreaddir(tls, d) + de = v10 + if !(v10 != 0) { + break + } + if Int32FromUint8(**(**uint8)(__ccgo_up(de + 19))) == int32('.') && (!(**(**uint8)(__ccgo_up(de + 19 + 1)) != 0) || Int32FromUint8(**(**uint8)(__ccgo_up(de + 19 + 1))) == int32('.') && !(**(**uint8)(__ccgo_up(de + 19 + 2)) != 0)) { + continue + } + if _strlen(tls, de+19) >= uint64(PATH_MAX)-l { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENAMETOOLONG) + Xclosedir(tls, d) + return -int32(1) + } + **(**uint8)(__ccgo_up(path + uintptr(j))) = uint8('/') + Xstrcpy(tls, path+uintptr(j)+uintptr(1), de+19) + v3 = _do_nftw(tls, path, __ccgo_fp_fn, fd_limit-int32(1), flags, bp+128) + r = v3 + if v3 != 0 { + Xclosedir(tls, d) + return r + } + } + Xclosedir(tls, d) + } else { + Xclose(tls, dfd) + return -int32(1) + } + } + **(**uint8)(__ccgo_up(path + uintptr(l))) = uint8(0) + if v8 = flags&int32(FTW_DEPTH) != 0; v8 { + v3 = (*(*func(*TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_fn})))(tls, path, bp, type1, bp+160) + r = v3 + } + if v8 && v3 != 0 { + return r + } + return 0 +} + +type t__ccgo_fp__Xnftw_1 = func(*TLS, uintptr, uintptr, int32, uintptr) int32 + +func Xnftw(tls *TLS, path uintptr, __ccgo_fp_fn uintptr, fd_limit int32, flags int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v path=%v __ccgo_fp_fn=%v fd_limit=%v flags=%v, (%v:)", tls, path, __ccgo_fp_fn, fd_limit, flags, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(4112) + defer tls.Free(4112) + var l Tsize_t + var r int32 + var _ /* cs at bp+0 */ int32 + var _ /* pathbuf at bp+4 */ [4097]uint8 + _, _ = l, r + if fd_limit <= 0 { + return 0 + } + l = _strlen(tls, path) + if l > uint64(PATH_MAX) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENAMETOOLONG) + return -int32(1) + } + Xmemcpy(tls, bp+4, path, l+uint64(1)) + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp) + r = _do_nftw(tls, bp+4, __ccgo_fp_fn, fd_limit, flags, UintptrFromInt32(0)) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp)), uintptr(0)) + return r +} + +/* Nonstandard, but vastly superior to the standard functions */ + +func Xopenpty(tls *TLS, pm uintptr, ps uintptr, name uintptr, tio uintptr, ws uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v pm=%v ps=%v name=%v tio=%v ws=%v, (%v:)", tls, pm, ps, name, tio, ws, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + var m, s, v1 int32 + var _ /* buf at bp+8 */ [20]uint8 + var _ /* cs at bp+4 */ int32 + var _ /* n at bp+0 */ int32 + _, _, _ = m, s, v1 + **(**int32)(__ccgo_up(bp)) = 0 + m = Xopen(tls, __ccgo_ts+899, Int32FromInt32(O_RDWR)|Int32FromInt32(O_NOCTTY), 0) + if m < 0 { + return -int32(1) + } + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp+4) + if Xioctl(tls, m, int32(TIOCSPTLCK), VaList(bp+40, bp)) != 0 || Xioctl(tls, m, Int32FromUint32(TIOCGPTN), VaList(bp+40, bp)) != 0 { + goto fail + } + if !(name != 0) { + name = bp + 8 + } + Xsnprintf(tls, name, uint64(20), __ccgo_ts+909, VaList(bp+40, **(**int32)(__ccgo_up(bp)))) + v1 = Xopen(tls, name, Int32FromInt32(O_RDWR)|Int32FromInt32(O_NOCTTY), 0) + s = v1 + if v1 < 0 { + goto fail + } + if tio != 0 { + Xtcsetattr(tls, s, TCSANOW, tio) + } + if ws != 0 { + Xioctl(tls, s, int32(TIOCSWINSZ), VaList(bp+40, ws)) + } + **(**int32)(__ccgo_up(pm)) = m + **(**int32)(__ccgo_up(ps)) = s + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 4)), uintptr(0)) + return 0 + goto fail +fail: + ; + Xclose(tls, m) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 4)), uintptr(0)) + return -int32(1) +} + +func Xptsname(tls *TLS, fd int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + var err int32 + _ = err + err = X__ptsname_r(tls, fd, uintptr(unsafe.Pointer(&_buf2)), uint64(22)) + if err != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = err + return uintptr(0) + } + return uintptr(unsafe.Pointer(&_buf2)) +} + +var _buf2 [22]uint8 + +func Xposix_openpt(tls *TLS, flags int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v flags=%v, (%v:)", tls, flags, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + r = Xopen(tls, __ccgo_ts+899, flags, 0) + if r < 0 && **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(ENOSPC) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EAGAIN) + } + return r +} + +func Xgrantpt(tls *TLS, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + return 0 +} + +func Xunlockpt(tls *TLS, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var _ /* unlock at bp+0 */ int32 + **(**int32)(__ccgo_up(bp)) = 0 + return Xioctl(tls, fd, int32(TIOCSPTLCK), VaList(bp+16, bp)) +} + +func X__ptsname_r(tls *TLS, fd int32, buf uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v len1=%v, (%v:)", tls, fd, buf, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var err, v1 int32 + var _ /* pty at bp+0 */ int32 + _, _ = err, v1 + if !(buf != 0) { + len1 = uint64(0) + } + v1 = int32(X__syscall3(tls, int64(SYS_ioctl), int64(fd), Int64FromUint32(Uint32FromUint32(TIOCGPTN)), int64(bp))) + err = v1 + if v1 != 0 { + return -err + } + if Uint64FromInt32(Xsnprintf(tls, buf, len1, __ccgo_ts+909, VaList(bp+16, **(**int32)(__ccgo_up(bp))))) >= len1 { + return int32(ERANGE) + } + return 0 +} + +func Xptsname_r(tls *TLS, fd int32, buf uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v len1=%v, (%v:)", tls, fd, buf, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__ptsname_r(tls, fd, buf, len1) +} + +func _slash_len(tls *TLS, s uintptr) (r Tsize_t) { + var s0 uintptr + _ = s0 + s0 = s + for Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('/') { + s = s + 1 + } + return Uint64FromInt64(int64(s) - int64(s0)) +} + +func Xrealpath(tls *TLS, filename uintptr, resolved uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v filename=%v resolved=%v, (%v:)", tls, filename, resolved, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(8208) + defer tls.Free(8208) + var check_dir, up int32 + var cnt, l, l0, nup, p, q, v4 Tsize_t + var k Tssize_t + var z uintptr + var _ /* output at bp+4097 */ [4096]uint8 + var _ /* stack at bp+0 */ [4097]uint8 + _, _, _, _, _, _, _, _, _, _, _ = check_dir, cnt, k, l, l0, nup, p, q, up, z, v4 + cnt = uint64(0) + nup = uint64(0) + check_dir = 0 + if !(filename != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(0) + } + l = Xstrnlen(tls, filename, uint64(4097)) + if !(l != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOENT) + return uintptr(0) + } + if l >= uint64(PATH_MAX) { + goto toolong + } + p = uint64(4097) - l - uint64(1) + q = uint64(0) + Xmemcpy(tls, bp+uintptr(p), filename, l+uint64(1)) + /* Main loop. Each iteration pops the next part from stack of + * remaining path components and consumes any slashes that follow. + * If not a link, it's moved to output; if a link, contents are + * pushed to the stack. */ + goto restart +restart: + ; +_3: + ; + /* If stack starts with /, the whole component is / or // + * and the output state must be reset. */ + if Int32FromUint8((**(**[4097]uint8)(__ccgo_up(bp)))[p]) == int32('/') { + check_dir = 0 + nup = uint64(0) + q = uint64(0) + v4 = q + q = q + 1 + (**(**[4096]uint8)(__ccgo_up(bp + 4097)))[v4] = uint8('/') + p = p + 1 + /* Initial // is special. */ + if Int32FromUint8((**(**[4097]uint8)(__ccgo_up(bp)))[p]) == int32('/') && Int32FromUint8((**(**[4097]uint8)(__ccgo_up(bp)))[p+uint64(1)]) != int32('/') { + v4 = q + q = q + 1 + (**(**[4096]uint8)(__ccgo_up(bp + 4097)))[v4] = uint8('/') + } + goto _2 + } + z = X__strchrnul(tls, bp+uintptr(p), int32('/')) + v4 = Uint64FromInt64(int64(z) - int64(bp+uintptr(p))) + l = v4 + l0 = v4 + if !(l != 0) && !(check_dir != 0) { + goto _1 + } + /* Skip any . component but preserve check_dir status. */ + if l == uint64(1) && Int32FromUint8((**(**[4097]uint8)(__ccgo_up(bp)))[p]) == int32('.') { + p = p + l + goto _2 + } + /* Copy next component onto output at least temporarily, to + * call readlink, but wait to advance output position until + * determining it's not a link. */ + if q != 0 && Int32FromUint8((**(**[4096]uint8)(__ccgo_up(bp + 4097)))[q-uint64(1)]) != int32('/') { + if !(p != 0) { + goto toolong + } + p = p - 1 + v4 = p + (**(**[4097]uint8)(__ccgo_up(bp)))[v4] = uint8('/') + l = l + 1 + } + if q+l >= uint64(PATH_MAX) { + goto toolong + } + Xmemcpy(tls, bp+4097+uintptr(q), bp+uintptr(p), l) + (**(**[4096]uint8)(__ccgo_up(bp + 4097)))[q+l] = uint8(0) + p = p + l + up = 0 + if l0 == uint64(2) && Int32FromUint8((**(**[4097]uint8)(__ccgo_up(bp)))[p-uint64(2)]) == int32('.') && Int32FromUint8((**(**[4097]uint8)(__ccgo_up(bp)))[p-uint64(1)]) == int32('.') { + up = int32(1) + /* Any non-.. path components we could cancel start + * after nup repetitions of the 3-byte string "../"; + * if there are none, accumulate .. components to + * later apply to cwd, if needed. */ + if q <= uint64(3)*nup { + nup = nup + 1 + q = q + l + goto _2 + } + /* When previous components are already known to be + * directories, processing .. can skip readlink. */ + if !(check_dir != 0) { + goto skip_readlink + } + } + k = Xreadlink(tls, bp+4097, bp, p) + if Uint64FromInt64(k) == p { + goto toolong + } + if !(k != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOENT) + return uintptr(0) + } + if !(k < 0) { + goto _8 + } + if **(**int32)(__ccgo_up(X__errno_location(tls))) != int32(EINVAL) { + return uintptr(0) + } + goto skip_readlink +skip_readlink: + ; + check_dir = 0 + if up != 0 { + for q != 0 && Int32FromUint8((**(**[4096]uint8)(__ccgo_up(bp + 4097)))[q-uint64(1)]) != int32('/') { + q = q - 1 + } + if q > uint64(1) && (q > uint64(2) || Int32FromUint8((**(**[4096]uint8)(__ccgo_up(bp + 4097)))[0]) != int32('/')) { + q = q - 1 + } + goto _2 + } + if l0 != 0 { + q = q + l + } + check_dir = Int32FromUint8((**(**[4097]uint8)(__ccgo_up(bp)))[p]) + goto _2 +_8: + ; + cnt = cnt + 1 + v4 = cnt + if v4 == uint64(SYMLOOP_MAX) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ELOOP) + return uintptr(0) + } + /* If link contents end in /, strip any slashes already on + * stack to avoid /->// or //->/// or spurious toolong. */ + if Int32FromUint8((**(**[4097]uint8)(__ccgo_up(bp)))[k-int64(1)]) == int32('/') { + for Int32FromUint8((**(**[4097]uint8)(__ccgo_up(bp)))[p]) == int32('/') { + p = p + 1 + } + } + p = p - Uint64FromInt64(k) + Xmemmove(tls, bp+uintptr(p), bp, Uint64FromInt64(k)) + /* Skip the stack advancement in case we have a new + * absolute base path. */ + goto restart + goto _2 +_2: + ; + p = p + _slash_len(tls, bp+uintptr(p)) + goto _3 + goto _1 +_1: + ; + (**(**[4096]uint8)(__ccgo_up(bp + 4097)))[q] = uint8(0) + if Int32FromUint8((**(**[4096]uint8)(__ccgo_up(bp + 4097)))[0]) != int32('/') { + if !(Xgetcwd(tls, bp, uint64(4097)) != 0) { + return uintptr(0) + } + l = _strlen(tls, bp) + /* Cancel any initial .. components. */ + p = uint64(0) + for { + v4 = nup + nup = nup - 1 + if !(v4 != 0) { + break + } + for l > uint64(1) && Int32FromUint8((**(**[4097]uint8)(__ccgo_up(bp)))[l-uint64(1)]) != int32('/') { + l = l - 1 + } + if l > uint64(1) { + l = l - 1 + } + p = p + uint64(2) + if p < q { + p = p + 1 + } + } + if q-p != 0 && Int32FromUint8((**(**[4097]uint8)(__ccgo_up(bp)))[l-uint64(1)]) != int32('/') { + v4 = l + l = l + 1 + (**(**[4097]uint8)(__ccgo_up(bp)))[v4] = uint8('/') + } + if l+(q-p)+uint64(1) >= uint64(PATH_MAX) { + goto toolong + } + Xmemmove(tls, bp+4097+uintptr(l), bp+4097+uintptr(p), q-p+uint64(1)) + Xmemcpy(tls, bp+4097, bp, l) + q = l + q - p + } + if resolved != 0 { + return Xmemcpy(tls, resolved, bp+4097, q+uint64(1)) + } else { + return Xstrdup(tls, bp+4097) + } + goto toolong +toolong: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENAMETOOLONG) + return uintptr(0) +} + +func Xsetdomainname(tls *TLS, name uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v len1=%v, (%v:)", tls, name, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_setdomainname), int64(name), Int64FromUint64(len1))))) +} + +func Xsetpriority(tls *TLS, which int32, who Tid_t, prio int32) (r int32) { + if __ccgo_strace { + trc("tls=%v which=%v who=%v prio=%v, (%v:)", tls, which, who, prio, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_setpriority), int64(which), Int64FromUint32(who), int64(prio))))) +} + +type Tctx = struct { + Flim [2]uint64 + Fres int32 + Ferr int32 +} + +func _do_setrlimit(tls *TLS, p uintptr) { + var c uintptr + _ = c + c = p + if (*Tctx)(unsafe.Pointer(c)).Ferr > 0 { + return + } + (*Tctx)(unsafe.Pointer(c)).Ferr = int32(-X__syscall2(tls, int64(SYS_setrlimit), int64((*Tctx)(unsafe.Pointer(c)).Fres), int64(c))) +} + +func Xsetrlimit(tls *TLS, resource int32, rlim uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v resource=%v rlim=%v, (%v:)", tls, resource, rlim, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + var ret int32 + var v1, v2 uint64 + var _ /* c at bp+16 */ Tctx + var _ /* tmp at bp+0 */ Trlimit + _, _, _ = ret, v1, v2 + if ^Uint64FromUint64(0) != ^Uint64FromUint64(0) { + **(**Trlimit)(__ccgo_up(bp)) = **(**Trlimit)(__ccgo_up(rlim)) + if (**(**Trlimit)(__ccgo_up(bp))).Frlim_cur >= ^Uint64FromUint64(0) { + (**(**Trlimit)(__ccgo_up(bp))).Frlim_cur = ^Uint64FromUint64(0) + } + if (**(**Trlimit)(__ccgo_up(bp))).Frlim_max >= ^Uint64FromUint64(0) { + (**(**Trlimit)(__ccgo_up(bp))).Frlim_max = ^Uint64FromUint64(0) + } + rlim = bp + } + ret = int32(X__syscall4(tls, int64(SYS_prlimit64), int64(Int32FromInt32(0)), int64(resource), int64(rlim), int64(Int32FromInt32(0)))) + if ret != -int32(ENOSYS) { + return int32(X__syscall_ret(tls, Uint64FromInt32(ret))) + } + if (*Trlimit)(unsafe.Pointer(rlim)).Frlim_cur < ^Uint64FromUint64(0) { + v1 = (*Trlimit)(unsafe.Pointer(rlim)).Frlim_cur + } else { + v1 = ^Uint64FromUint64(0) + } + if (*Trlimit)(unsafe.Pointer(rlim)).Frlim_max < ^Uint64FromUint64(0) { + v2 = (*Trlimit)(unsafe.Pointer(rlim)).Frlim_max + } else { + v2 = ^Uint64FromUint64(0) + } + **(**Tctx)(__ccgo_up(bp + 16)) = Tctx{ + Flim: [2]uint64{ + 0: v1, + 1: v2, + }, + Fres: resource, + Ferr: -int32(1), + } + ___synccall(tls, __ccgo_fp(_do_setrlimit), bp+16) + if (**(**Tctx)(__ccgo_up(bp + 16))).Ferr != 0 { + if (**(**Tctx)(__ccgo_up(bp + 16))).Ferr > 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = (**(**Tctx)(__ccgo_up(bp + 16))).Ferr + } + return -int32(1) + } + return 0 +} + +func Xsyscall(tls *TLS, n int64, va uintptr) (r int64) { + if __ccgo_strace { + trc("tls=%v n=%v va=%v, (%v:)", tls, n, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, b, c, d, e, f Tsyscall_arg_t + var ap Tva_list + _, _, _, _, _, _, _ = a, ap, b, c, d, e, f + ap = va + a = VaInt64(&ap) + b = VaInt64(&ap) + c = VaInt64(&ap) + d = VaInt64(&ap) + e = VaInt64(&ap) + f = VaInt64(&ap) + _ = ap + return X__syscall_ret(tls, Uint64FromInt64(X__syscall6(tls, n, a, b, c, d, e, f))) +} + +const AF_ALG = 38 +const AF_APPLETALK = 5 +const AF_ASH = 18 +const AF_ATMPVC = 8 +const AF_ATMSVC = 20 +const AF_AX25 = 3 +const AF_BLUETOOTH = 31 +const AF_BRIDGE = 7 +const AF_CAIF = 37 +const AF_CAN = 29 +const AF_DECnet = 12 +const AF_ECONET = 19 +const AF_FILE = 1 +const AF_IB = 27 +const AF_IEEE802154 = 36 +const AF_INET = 2 +const AF_INET6 = 10 +const AF_IPX = 4 +const AF_IRDA = 23 +const AF_ISDN = 34 +const AF_IUCV = 32 +const AF_KCM = 41 +const AF_KEY = 15 +const AF_LLC = 26 +const AF_LOCAL = 1 +const AF_MAX = 45 +const AF_MPLS = 28 +const AF_NETBEUI = 13 +const AF_NETLINK = 16 +const AF_NETROM = 6 +const AF_NFC = 39 +const AF_PACKET = 17 +const AF_PHONET = 35 +const AF_PPPOX = 24 +const AF_QIPCRTR = 42 +const AF_RDS = 21 +const AF_ROSE = 11 +const AF_ROUTE = 16 +const AF_RXRPC = 33 +const AF_SECURITY = 14 +const AF_SMC = 43 +const AF_SNA = 22 +const AF_TIPC = 30 +const AF_UNIX = 1 +const AF_UNSPEC = 0 +const AF_VSOCK = 40 +const AF_WANPIPE = 25 +const AF_X25 = 9 +const AF_XDP = 44 +const LOG_ALERT = 1 +const LOG_AUTH = 32 +const LOG_AUTHPRIV = 80 +const LOG_CONS = 2 +const LOG_CRIT = 2 +const LOG_CRON = 72 +const LOG_DAEMON = 24 +const LOG_DEBUG = 7 +const LOG_EMERG = 0 +const LOG_ERR = 3 +const LOG_FACMASK = 1016 +const LOG_FTP = 88 +const LOG_INFO = 6 +const LOG_KERN = 0 +const LOG_LOCAL0 = 128 +const LOG_LOCAL1 = 136 +const LOG_LOCAL2 = 144 +const LOG_LOCAL3 = 152 +const LOG_LOCAL4 = 160 +const LOG_LOCAL5 = 168 +const LOG_LOCAL6 = 176 +const LOG_LOCAL7 = 184 +const LOG_LPR = 48 +const LOG_MAIL = 16 +const LOG_NDELAY = 8 +const LOG_NEWS = 56 +const LOG_NFACILITIES = 24 +const LOG_NOTICE = 5 +const LOG_NOWAIT = 16 +const LOG_ODELAY = 4 +const LOG_PERROR = 32 +const LOG_PID = 1 +const LOG_PRIMASK = 7 +const LOG_SYSLOG = 40 +const LOG_USER = 8 +const LOG_UUCP = 64 +const LOG_WARNING = 4 +const MSG_BATCH = 262144 +const MSG_CMSG_CLOEXEC = 1073741824 +const MSG_CONFIRM = 2048 +const MSG_CTRUNC = 8 +const MSG_DONTROUTE = 4 +const MSG_DONTWAIT = 64 +const MSG_EOR = 128 +const MSG_ERRQUEUE = 8192 +const MSG_FASTOPEN = 536870912 +const MSG_FIN = 512 +const MSG_MORE = 32768 +const MSG_NOSIGNAL = 16384 +const MSG_OOB = 1 +const MSG_PEEK = 2 +const MSG_PROXY = 16 +const MSG_RST = 4096 +const MSG_SYN = 1024 +const MSG_TRUNC = 32 +const MSG_WAITALL = 256 +const MSG_WAITFORONE = 65536 +const MSG_ZEROCOPY = 67108864 +const PF_ALG = 38 +const PF_APPLETALK = 5 +const PF_ASH = 18 +const PF_ATMPVC = 8 +const PF_ATMSVC = 20 +const PF_AX25 = 3 +const PF_BLUETOOTH = 31 +const PF_BRIDGE = 7 +const PF_CAIF = 37 +const PF_CAN = 29 +const PF_DECnet = 12 +const PF_ECONET = 19 +const PF_FILE = 1 +const PF_IB = 27 +const PF_IEEE802154 = 36 +const PF_INET = 2 +const PF_INET6 = 10 +const PF_IPX = 4 +const PF_IRDA = 23 +const PF_ISDN = 34 +const PF_IUCV = 32 +const PF_KCM = 41 +const PF_KEY = 15 +const PF_LLC = 26 +const PF_LOCAL = 1 +const PF_MAX = 45 +const PF_MPLS = 28 +const PF_NETBEUI = 13 +const PF_NETLINK = 16 +const PF_NETROM = 6 +const PF_NFC = 39 +const PF_PACKET = 17 +const PF_PHONET = 35 +const PF_PPPOX = 24 +const PF_QIPCRTR = 42 +const PF_RDS = 21 +const PF_ROSE = 11 +const PF_ROUTE = 16 +const PF_RXRPC = 33 +const PF_SECURITY = 14 +const PF_SMC = 43 +const PF_SNA = 22 +const PF_TIPC = 30 +const PF_UNIX = 1 +const PF_UNSPEC = 0 +const PF_VSOCK = 40 +const PF_WANPIPE = 25 +const PF_X25 = 9 +const PF_XDP = 44 +const SCM_CREDENTIALS = 2 +const SCM_RIGHTS = 1 +const SCM_TIMESTAMP = 29 +const SCM_TIMESTAMPING = 37 +const SCM_TIMESTAMPING_OPT_STATS = 54 +const SCM_TIMESTAMPING_PKTINFO = 58 +const SCM_TIMESTAMPNS = 35 +const SCM_TXTIME = 61 +const SCM_WIFI_STATUS = 41 +const SHUT_RD = 0 +const SHUT_RDWR = 2 +const SHUT_WR = 1 +const SOCK_CLOEXEC = 524288 +const SOCK_DCCP = 6 +const SOCK_DGRAM = 2 +const SOCK_NONBLOCK = 2048 +const SOCK_PACKET = 10 +const SOCK_RAW = 3 +const SOCK_RDM = 4 +const SOCK_SEQPACKET = 5 +const SOCK_STREAM = 1 +const SOL_AAL = 265 +const SOL_ALG = 279 +const SOL_ATM = 264 +const SOL_BLUETOOTH = 274 +const SOL_CAIF = 278 +const SOL_DCCP = 269 +const SOL_DECNET = 261 +const SOL_ICMPV6 = 58 +const SOL_IP = 0 +const SOL_IPV6 = 41 +const SOL_IRDA = 266 +const SOL_IUCV = 277 +const SOL_KCM = 281 +const SOL_LLC = 268 +const SOL_NETBEUI = 267 +const SOL_NETLINK = 270 +const SOL_NFC = 280 +const SOL_PACKET = 263 +const SOL_PNPIPE = 275 +const SOL_PPPOL2TP = 273 +const SOL_RAW = 255 +const SOL_RDS = 276 +const SOL_RXRPC = 272 +const SOL_SOCKET = 1 +const SOL_TIPC = 271 +const SOL_TLS = 282 +const SOL_X25 = 262 +const SOL_XDP = 283 +const SOMAXCONN = 128 +const SO_ACCEPTCONN = 30 +const SO_ATTACH_BPF = 50 +const SO_ATTACH_FILTER = 26 +const SO_ATTACH_REUSEPORT_CBPF = 51 +const SO_ATTACH_REUSEPORT_EBPF = 52 +const SO_BINDTODEVICE = 25 +const SO_BINDTOIFINDEX = 62 +const SO_BPF_EXTENSIONS = 48 +const SO_BROADCAST = 6 +const SO_BSDCOMPAT = 14 +const SO_BUSY_POLL = 46 +const SO_BUSY_POLL_BUDGET = 70 +const SO_CNX_ADVICE = 53 +const SO_COOKIE = 57 +const SO_DEBUG = 1 +const SO_DETACH_BPF = 27 +const SO_DETACH_FILTER = 27 +const SO_DETACH_REUSEPORT_BPF = 68 +const SO_DOMAIN = 39 +const SO_DONTROUTE = 5 +const SO_ERROR = 4 +const SO_GET_FILTER = 26 +const SO_INCOMING_CPU = 49 +const SO_INCOMING_NAPI_ID = 56 +const SO_KEEPALIVE = 9 +const SO_LINGER = 13 +const SO_LOCK_FILTER = 44 +const SO_MARK = 36 +const SO_MAX_PACING_RATE = 47 +const SO_MEMINFO = 55 +const SO_NOFCS = 43 +const SO_NO_CHECK = 11 +const SO_OOBINLINE = 10 +const SO_PASSCRED = 16 +const SO_PASSSEC = 34 +const SO_PEEK_OFF = 42 +const SO_PEERCRED = 17 +const SO_PEERGROUPS = 59 +const SO_PEERNAME = 28 +const SO_PEERSEC = 31 +const SO_PREFER_BUSY_POLL = 69 +const SO_PRIORITY = 12 +const SO_PROTOCOL = 38 +const SO_RCVBUF = 8 +const SO_RCVBUFFORCE = 33 +const SO_RCVLOWAT = 18 +const SO_RCVTIMEO = 20 +const SO_REUSEADDR = 2 +const SO_REUSEPORT = 15 +const SO_RXQ_OVFL = 40 +const SO_SECURITY_AUTHENTICATION = 22 +const SO_SECURITY_ENCRYPTION_NETWORK = 24 +const SO_SECURITY_ENCRYPTION_TRANSPORT = 23 +const SO_SELECT_ERR_QUEUE = 45 +const SO_SNDBUF = 7 +const SO_SNDBUFFORCE = 32 +const SO_SNDLOWAT = 19 +const SO_SNDTIMEO = 21 +const SO_TIMESTAMP = 29 +const SO_TIMESTAMPING = 37 +const SO_TIMESTAMPNS = 35 +const SO_TXTIME = 61 +const SO_TYPE = 3 +const SO_WIFI_STATUS = 41 +const SO_ZEROCOPY = 60 + +type Tsocklen_t = uint32 + +type Tsa_family_t = uint16 + +type Tmsghdr = struct { + Fmsg_name uintptr + Fmsg_namelen Tsocklen_t + Fmsg_iov uintptr + Fmsg_iovlen int32 + F__pad1 int32 + Fmsg_control uintptr + Fmsg_controllen Tsocklen_t + F__pad2 int32 + Fmsg_flags int32 +} + +type Tcmsghdr = struct { + Fcmsg_len Tsocklen_t + F__pad1 int32 + Fcmsg_level int32 + Fcmsg_type int32 +} + +type Tlinger = struct { + Fl_onoff int32 + Fl_linger int32 +} + +type Tsockaddr = struct { + Fsa_family Tsa_family_t + Fsa_data [14]uint8 +} + +type Tsockaddr_storage = struct { + Fss_family Tsa_family_t + F__ss_padding [118]uint8 + F__ss_align uint64 +} + +var _lock2 [1]int32 +var _log_ident [32]uint8 +var _log_opt int32 +var _log_facility = Int32FromInt32(1) << Int32FromInt32(3) +var _log_mask = int32(0xff) +var _log_fd = -int32(1) + +func Xsetlogmask(tls *TLS, maskpri int32) (r int32) { + if __ccgo_strace { + trc("tls=%v maskpri=%v, (%v:)", tls, maskpri, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret int32 + _ = ret + ___lock(tls, uintptr(unsafe.Pointer(&_lock2))) + ret = _log_mask + if maskpri != 0 { + _log_mask = maskpri + } + ___unlock(tls, uintptr(unsafe.Pointer(&_lock2))) + return ret +} + +var _log_addr = struct { + Fsun_family int16 + Fsun_path [9]uint8 +}{ + Fsun_family: int16(PF_LOCAL), + Fsun_path: [9]uint8{'/', 'd', 'e', 'v', '/', 'l', 'o', 'g'}, +} + +func Xcloselog(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* cs at bp+0 */ int32 + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp) + ___lock(tls, uintptr(unsafe.Pointer(&_lock2))) + Xclose(tls, _log_fd) + _log_fd = -int32(1) + ___unlock(tls, uintptr(unsafe.Pointer(&_lock2))) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp)), uintptr(0)) +} + +func ___openlog(tls *TLS) { + _log_fd = Xsocket(tls, int32(PF_LOCAL), Int32FromInt32(SOCK_DGRAM)|Int32FromInt32(SOCK_CLOEXEC), 0) + if _log_fd >= 0 { + Xconnect(tls, _log_fd, uintptr(unsafe.Pointer(&_log_addr)), uint32(12)) + } +} + +func Xopenlog(tls *TLS, ident uintptr, opt int32, facility int32) { + if __ccgo_strace { + trc("tls=%v ident=%v opt=%v facility=%v, (%v:)", tls, ident, opt, facility, origin(2)) + } + bp := tls.Alloc(16) + defer tls.Free(16) + var n Tsize_t + var _ /* cs at bp+0 */ int32 + _ = n + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp) + ___lock(tls, uintptr(unsafe.Pointer(&_lock2))) + if ident != 0 { + n = Xstrnlen(tls, ident, Uint64FromInt64(32)-Uint64FromInt32(1)) + Xmemcpy(tls, uintptr(unsafe.Pointer(&_log_ident)), ident, n) + _log_ident[n] = uint8(0) + } else { + _log_ident[0] = uint8(0) + } + _log_opt = opt + _log_facility = facility + if opt&int32(LOG_NDELAY) != 0 && _log_fd < 0 { + ___openlog(tls) + } + ___unlock(tls, uintptr(unsafe.Pointer(&_lock2))) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp)), uintptr(0)) +} + +func _is_lost_conn(tls *TLS, e int32) (r int32) { + return BoolInt32(e == int32(ECONNREFUSED) || e == int32(ECONNRESET) || e == int32(ENOTCONN) || e == int32(EPIPE)) +} + +func __vsyslog(tls *TLS, priority int32, message uintptr, ap Tva_list) { + bp := tls.Alloc(1184) + defer tls.Free(1184) + var errno_save, fd, l, l2, pid, v1 int32 + var _ /* buf at bp+80 */ [1024]uint8 + var _ /* hlen at bp+1104 */ int32 + var _ /* now at bp+16 */ Ttime_t + var _ /* timebuf at bp+0 */ [16]uint8 + var _ /* tm at bp+24 */ Ttm + _, _, _, _, _, _ = errno_save, fd, l, l2, pid, v1 + errno_save = **(**int32)(__ccgo_up(X__errno_location(tls))) + if _log_fd < 0 { + ___openlog(tls) + } + if !(priority&Int32FromInt32(LOG_FACMASK) != 0) { + priority = priority | _log_facility + } + **(**Ttime_t)(__ccgo_up(bp + 16)) = Xtime(tls, UintptrFromInt32(0)) + Xgmtime_r(tls, bp+16, bp+24) + Xstrftime_l(tls, bp, uint64(16), __ccgo_ts+921, bp+24, uintptr(unsafe.Pointer(&X__c_locale))) + if _log_opt&int32(LOG_PID) != 0 { + v1 = Xgetpid(tls) + } else { + v1 = 0 + } + pid = v1 + l = Xsnprintf(tls, bp+80, uint64(1024), __ccgo_ts+930, VaList(bp+1120, priority, bp, bp+1104, uintptr(unsafe.Pointer(&_log_ident)), __ccgo_ts+952+BoolUintptr(!(pid != 0)), pid, __ccgo_ts+954+BoolUintptr(!(pid != 0)))) + **(**int32)(__ccgo_up(X__errno_location(tls))) = errno_save + l2 = Xvsnprintf(tls, bp+80+uintptr(l), uint64(1024)-Uint64FromInt32(l), message, ap) + if l2 >= 0 { + if Uint64FromInt32(l2) >= uint64(1024)-Uint64FromInt32(l) { + l = Int32FromUint64(Uint64FromInt64(1024) - Uint64FromInt32(1)) + } else { + l = l + l2 + } + if Int32FromUint8((**(**[1024]uint8)(__ccgo_up(bp + 80)))[l-int32(1)]) != int32('\n') { + v1 = l + l = l + 1 + (**(**[1024]uint8)(__ccgo_up(bp + 80)))[v1] = uint8('\n') + } + if Xsend(tls, _log_fd, bp+80, Uint64FromInt32(l), 0) < 0 && (!(_is_lost_conn(tls, **(**int32)(__ccgo_up(X__errno_location(tls)))) != 0) || Xconnect(tls, _log_fd, uintptr(unsafe.Pointer(&_log_addr)), uint32(12)) < 0 || Xsend(tls, _log_fd, bp+80, Uint64FromInt32(l), 0) < 0) && _log_opt&int32(LOG_CONS) != 0 { + fd = Xopen(tls, __ccgo_ts+649, Int32FromInt32(O_WRONLY)|Int32FromInt32(O_NOCTTY)|Int32FromInt32(O_CLOEXEC), 0) + if fd >= 0 { + Xdprintf(tls, fd, __ccgo_ts+956, VaList(bp+1120, l-**(**int32)(__ccgo_up(bp + 1104)), bp+80+uintptr(**(**int32)(__ccgo_up(bp + 1104))))) + Xclose(tls, fd) + } + } + if _log_opt&int32(LOG_PERROR) != 0 { + Xdprintf(tls, int32(2), __ccgo_ts+956, VaList(bp+1120, l-**(**int32)(__ccgo_up(bp + 1104)), bp+80+uintptr(**(**int32)(__ccgo_up(bp + 1104))))) + } + } +} + +func ___vsyslog(tls *TLS, priority int32, message uintptr, ap Tva_list) { + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* cs at bp+0 */ int32 + if !(_log_mask&(Int32FromInt32(1)<<(priority&Int32FromInt32(7))) != 0) || priority & ^Int32FromInt32(0x3ff) != 0 { + return + } + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp) + ___lock(tls, uintptr(unsafe.Pointer(&_lock2))) + __vsyslog(tls, priority, message, ap) + ___unlock(tls, uintptr(unsafe.Pointer(&_lock2))) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp)), uintptr(0)) +} + +func Xsyslog(tls *TLS, priority int32, message uintptr, va uintptr) { + if __ccgo_strace { + trc("tls=%v priority=%v message=%v va=%v, (%v:)", tls, priority, message, va, origin(2)) + } + var ap Tva_list + _ = ap + ap = va + ___vsyslog(tls, priority, message, ap) + _ = ap +} + +type Tutsname1 = struct { + Fsysname [65]uint8 + Fnodename [65]uint8 + Frelease [65]uint8 + Fversion [65]uint8 + Fmachine [65]uint8 + F__domainname [65]uint8 +} + +func Xuname(tls *TLS, uts uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v uts=%v, (%v:)", tls, uts, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_uname), int64(uts))))) +} + +func X__madvise(tls *TLS, addr uintptr, len1 Tsize_t, advice int32) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v len1=%v advice=%v, (%v:)", tls, addr, len1, advice, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_madvise), int64(addr), Int64FromUint64(len1), int64(advice))))) +} + +func Xmadvise(tls *TLS, addr uintptr, len1 Tsize_t, advice int32) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v len1=%v advice=%v, (%v:)", tls, addr, len1, advice, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__madvise(tls, addr, len1, advice) +} + +func Xmincore(tls *TLS, addr uintptr, len1 Tsize_t, vec uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v len1=%v vec=%v, (%v:)", tls, addr, len1, vec, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_mincore), int64(addr), Int64FromUint64(len1), int64(vec))))) +} + +func Xmlock(tls *TLS, addr uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v len1=%v, (%v:)", tls, addr, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_mlock), int64(addr), Int64FromUint64(len1))))) +} + +func Xmlockall(tls *TLS, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v flags=%v, (%v:)", tls, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_mlockall), int64(flags))))) +} + +const OFF_MASK = 4095 +const UNIT = 4096 + +func _dummy5(tls *TLS) { +} + +func X__mmap(tls *TLS, start uintptr, len1 Tsize_t, prot int32, flags int32, fd int32, off Toff_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v start=%v len1=%v prot=%v flags=%v fd=%v off=%v, (%v:)", tls, start, len1, prot, flags, fd, off, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret int64 + _ = ret + if Uint64FromInt64(off)&(-Uint64FromUint64(0x2000)<<(Uint64FromInt32(8)*Uint64FromInt64(8)-Uint64FromInt32(1))|(Uint64FromUint64(4096)-Uint64FromInt32(1))) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(-Int32FromInt32(1)) + } + if len1 >= Uint64FromInt64(Int64FromInt64(INT64_MAX)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOMEM) + return uintptr(-Int32FromInt32(1)) + } + if flags&int32(MAP_FIXED) != 0 { + _dummy5(tls) + } + ret = X__syscall6(tls, int64(SYS_mmap), int64(start), Int64FromUint64(len1), int64(prot), int64(flags), int64(fd), off) + /* Fixup incorrect EPERM from kernel. */ + if ret == int64(-int32(EPERM)) && !(start != 0) && flags&int32(MAP_ANON) != 0 && !(flags&Int32FromInt32(MAP_FIXED) != 0) { + ret = int64(-int32(ENOMEM)) + } + return uintptr(X__syscall_ret(tls, Uint64FromInt64(ret))) +} + +func Xmmap(tls *TLS, start uintptr, len1 Tsize_t, prot int32, flags int32, fd int32, off Toff_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v start=%v len1=%v prot=%v flags=%v fd=%v off=%v, (%v:)", tls, start, len1, prot, flags, fd, off, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__mmap(tls, start, len1, prot, flags, fd, off) +} + +func X__mprotect(tls *TLS, addr uintptr, len1 Tsize_t, prot int32) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v len1=%v prot=%v, (%v:)", tls, addr, len1, prot, origin(2)) + defer func() { trc("-> %v", r) }() + } + var end, start Tsize_t + _, _ = end, start + start = uint64(addr) & -X__libc.Fpage_size + end = uint64(addr+uintptr(len1)+uintptr(X__libc.Fpage_size)-UintptrFromInt32(1)) & -X__libc.Fpage_size + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_mprotect), Int64FromUint64(start), Int64FromUint64(end-start), int64(prot))))) +} + +func Xmprotect(tls *TLS, addr uintptr, len1 Tsize_t, prot int32) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v len1=%v prot=%v, (%v:)", tls, addr, len1, prot, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__mprotect(tls, addr, len1, prot) +} + +func _dummy6(tls *TLS) { +} + +func X__mremap(tls *TLS, old_addr uintptr, old_len Tsize_t, new_len Tsize_t, flags int32, va uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v old_addr=%v old_len=%v new_len=%v flags=%v va=%v, (%v:)", tls, old_addr, old_len, new_len, flags, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var new_addr uintptr + _, _ = ap, new_addr + new_addr = uintptr(0) + if new_len >= Uint64FromInt64(Int64FromInt64(INT64_MAX)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOMEM) + return uintptr(-Int32FromInt32(1)) + } + if flags&int32(MREMAP_FIXED) != 0 { + _dummy6(tls) + ap = va + new_addr = VaUintptr(&ap) + _ = ap + } + return uintptr(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_mremap), int64(old_addr), Int64FromUint64(old_len), Int64FromUint64(new_len), int64(flags), int64(new_addr))))) +} + +func Xmremap(tls *TLS, old_addr uintptr, old_len Tsize_t, new_len Tsize_t, flags int32, va uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v old_addr=%v old_len=%v new_len=%v flags=%v va=%v, (%v:)", tls, old_addr, old_len, new_len, flags, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__mremap(tls, old_addr, old_len, new_len, flags, va) +} + +func Xmsync(tls *TLS, start uintptr, len1 Tsize_t, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v start=%v len1=%v flags=%v, (%v:)", tls, start, len1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_msync), int64(start), Int64FromUint64(len1), int64(flags), 0, 0, 0)))) +} + +func Xmunlock(tls *TLS, addr uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v len1=%v, (%v:)", tls, addr, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_munlock), int64(addr), Int64FromUint64(len1))))) +} + +func Xmunlockall(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall0(tls, int64(SYS_munlockall))))) +} + +func _dummy7(tls *TLS) { +} + +func X__munmap(tls *TLS, start uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v start=%v len1=%v, (%v:)", tls, start, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + _dummy7(tls) + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_munmap), int64(start), Int64FromUint64(len1))))) +} + +func Xmunmap(tls *TLS, start uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v start=%v len1=%v, (%v:)", tls, start, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__munmap(tls, start, len1) +} + +func Xposix_madvise(tls *TLS, addr uintptr, len1 Tsize_t, advice int32) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v len1=%v advice=%v, (%v:)", tls, addr, len1, advice, origin(2)) + defer func() { trc("-> %v", r) }() + } + if advice == int32(MADV_DONTNEED) { + return 0 + } + return int32(-X__syscall3(tls, int64(SYS_madvise), int64(addr), Int64FromUint64(len1), int64(advice))) +} + +func X__shm_mapname(tls *TLS, name uintptr, buf uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v buf=%v, (%v:)", tls, name, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + var p, v1 uintptr + _, _ = p, v1 + for Int32FromUint8(**(**uint8)(__ccgo_up(name))) == int32('/') { + name = name + 1 + } + v1 = X__strchrnul(tls, name, int32('/')) + p = v1 + if **(**uint8)(__ccgo_up(v1)) != 0 || p == name || int64(p)-int64(name) <= int64(2) && Int32FromUint8(**(**uint8)(__ccgo_up(name))) == int32('.') && Int32FromUint8(**(**uint8)(__ccgo_up(p + uintptr(-Int32FromInt32(1))))) == int32('.') { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(0) + } + if int64(p)-int64(name) > int64(NAME_MAX) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENAMETOOLONG) + return uintptr(0) + } + Xmemcpy(tls, buf, __ccgo_ts+961, uint64(9)) + Xmemcpy(tls, buf+uintptr(9), name, Uint64FromInt64(int64(p)-int64(name)+int64(1))) + return buf +} + +func Xshm_open(tls *TLS, name uintptr, flag int32, mode Tmode_t) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v flag=%v mode=%v, (%v:)", tls, name, flag, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(288) + defer tls.Free(288) + var fd int32 + var v1 uintptr + var _ /* buf at bp+4 */ [265]uint8 + var _ /* cs at bp+0 */ int32 + _, _ = fd, v1 + v1 = X__shm_mapname(tls, name, bp+4) + name = v1 + if !(v1 != 0) { + return -int32(1) + } + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp) + fd = Xopen(tls, name, flag|int32(O_NOFOLLOW)|int32(O_CLOEXEC)|int32(O_NONBLOCK), VaList(bp+280, mode)) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp)), uintptr(0)) + return fd +} + +func Xshm_unlink(tls *TLS, name uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(272) + defer tls.Free(272) + var v1 uintptr + var _ /* buf at bp+0 */ [265]uint8 + _ = v1 + v1 = X__shm_mapname(tls, name, bp) + name = v1 + if !(v1 != 0) { + return -int32(1) + } + return Xunlink(tls, name) +} + +const SA = 194 +const SB = 244 +const bittab = 0 + +func Xbtowc(tls *TLS, c int32) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + var b, v3 int32 + var v1, v2 uint32 + _, _, _, _ = b, v1, v2, v3 + b = Int32FromUint8(Uint8FromInt32(c)) + if Uint32FromInt32(b) < uint32(128) { + v1 = Uint32FromInt32(b) + } else { + if !!(**(**uintptr)(__ccgo_up((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale)) != 0) { + v3 = int32(4) + } else { + v3 = int32(1) + } + if v3 == int32(1) && c != -int32(1) { + v2 = Uint32FromInt32(Int32FromInt32(0xdfff) & int32(int8(c))) + } else { + v2 = uint32(0xffffffff) + } + v1 = v2 + } + return v1 +} + +type Tchar16_t = uint16 + +type Tchar32_t = uint32 + +func Xc16rtomb(tls *TLS, s uintptr, c16 Tchar16_t, ps uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v c16=%v ps=%v, (%v:)", tls, s, c16, ps, origin(2)) + defer func() { trc("-> %v", r) }() + } + var wc Twchar_t + var x uintptr + _, _ = wc, x + if !(ps != 0) { + ps = uintptr(unsafe.Pointer(&_internal_state)) + } + x = ps + if !(s != 0) { + if **(**uint32)(__ccgo_up(x)) != 0 { + goto ilseq + } + return uint64(1) + } + if !(**(**uint32)(__ccgo_up(x)) != 0) && uint32(c16)-uint32(0xd800) < uint32(0x400) { + **(**uint32)(__ccgo_up(x)) = Uint32FromInt32((Int32FromUint16(c16) - int32(0xd7c0)) << int32(10)) + return uint64(0) + } + if **(**uint32)(__ccgo_up(x)) != 0 { + if uint32(c16)-uint32(0xdc00) >= uint32(0x400) { + goto ilseq + } else { + wc = **(**uint32)(__ccgo_up(x)) + uint32(c16) - uint32(0xdc00) + } + **(**uint32)(__ccgo_up(x)) = uint32(0) + } else { + wc = uint32(c16) + } + return Xwcrtomb(tls, s, wc, uintptr(0)) + goto ilseq +ilseq: + ; + **(**uint32)(__ccgo_up(x)) = uint32(0) + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EILSEQ) + return Uint64FromInt32(-Int32FromInt32(1)) +} + +var _internal_state uint32 + +func Xc32rtomb(tls *TLS, s uintptr, c32 Tchar32_t, ps uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v c32=%v ps=%v, (%v:)", tls, s, c32, ps, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwcrtomb(tls, s, c32, ps) +} + +func Xmblen(tls *TLS, s uintptr, n Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v, (%v:)", tls, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xmbtowc(tls, uintptr(0), s, n) +} + +func Xmbrlen(tls *TLS, s uintptr, n Tsize_t, st uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v st=%v, (%v:)", tls, s, n, st, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 uintptr + _ = v1 + if st != 0 { + v1 = st + } else { + v1 = uintptr(unsafe.Pointer(&_internal)) + } + return Xmbrtowc(tls, uintptr(0), s, n, v1) +} + +var _internal uint32 + +func Xmbrtoc16(tls *TLS, pc16 uintptr, s uintptr, n Tsize_t, ps uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v pc16=%v s=%v n=%v ps=%v, (%v:)", tls, pc16, s, n, ps, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var pending uintptr + var ret Tsize_t + var _ /* wc at bp+0 */ Twchar_t + _, _ = pending, ret + if !(ps != 0) { + ps = uintptr(unsafe.Pointer(&_internal_state1)) + } + pending = ps + if !(s != 0) { + return Xmbrtoc16(tls, uintptr(0), __ccgo_ts, uint64(1), ps) + } + /* mbrtowc states for partial UTF-8 characters have the high bit set; + * we use nonzero states without high bit for pending surrogates. */ + if Int32FromUint32(**(**uint32)(__ccgo_up(pending))) > 0 { + if pc16 != 0 { + **(**Tchar16_t)(__ccgo_up(pc16)) = uint16(**(**uint32)(__ccgo_up(pending))) + } + **(**uint32)(__ccgo_up(pending)) = uint32(0) + return Uint64FromInt32(-Int32FromInt32(3)) + } + ret = Xmbrtowc(tls, bp, s, n, ps) + if ret <= uint64(4) { + if **(**Twchar_t)(__ccgo_up(bp)) >= uint32(0x10000) { + **(**uint32)(__ccgo_up(pending)) = **(**Twchar_t)(__ccgo_up(bp))&uint32(0x3ff) + uint32(0xdc00) + **(**Twchar_t)(__ccgo_up(bp)) = uint32(0xd7c0) + **(**Twchar_t)(__ccgo_up(bp))>>Int32FromInt32(10) + } + if pc16 != 0 { + **(**Tchar16_t)(__ccgo_up(pc16)) = uint16(**(**Twchar_t)(__ccgo_up(bp))) + } + } + return ret +} + +var _internal_state1 uint32 + +func Xmbrtoc32(tls *TLS, pc32 uintptr, s uintptr, n Tsize_t, ps uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v pc32=%v s=%v n=%v ps=%v, (%v:)", tls, pc32, s, n, ps, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ret Tsize_t + var _ /* wc at bp+0 */ Twchar_t + _ = ret + if !(ps != 0) { + ps = uintptr(unsafe.Pointer(&_internal_state2)) + } + if !(s != 0) { + return Xmbrtoc32(tls, uintptr(0), __ccgo_ts, uint64(1), ps) + } + ret = Xmbrtowc(tls, bp, s, n, ps) + if ret <= uint64(4) && pc32 != 0 { + **(**Tchar32_t)(__ccgo_up(pc32)) = **(**Twchar_t)(__ccgo_up(bp)) + } + return ret +} + +var _internal_state2 uint32 + +func Xmbrtowc(tls *TLS, wc uintptr, src uintptr, n Tsize_t, st uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v wc=%v src=%v n=%v st=%v, (%v:)", tls, wc, src, n, st, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var N Tsize_t + var c uint32 + var s, v3 uintptr + var v1 Twchar_t + var v2 int32 + var _ /* dummy at bp+0 */ Twchar_t + _, _, _, _, _, _ = N, c, s, v1, v2, v3 + s = src + N = n + if !(st != 0) { + st = uintptr(unsafe.Pointer(&_internal_state3)) + } + c = **(**uint32)(__ccgo_up(st)) + if !(s != 0) { + if c != 0 { + goto ilseq + } + return uint64(0) + } else { + if !(wc != 0) { + wc = bp + } + } + if !(n != 0) { + return Uint64FromInt32(-Int32FromInt32(2)) + } + if !(c != 0) { + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) < int32(0x80) { + v1 = uint32(**(**uint8)(__ccgo_up(s))) + **(**Twchar_t)(__ccgo_up(wc)) = v1 + return BoolUint64(!!(v1 != 0)) + } + if !!(**(**uintptr)(__ccgo_up((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale)) != 0) { + v2 = int32(4) + } else { + v2 = int32(1) + } + if v2 == int32(1) { + **(**Twchar_t)(__ccgo_up(wc)) = Uint32FromInt32(Int32FromInt32(0xdfff) & int32(Int8FromUint8(**(**uint8)(__ccgo_up(s))))) + return Uint64FromInt32(1) + } + if uint32(**(**uint8)(__ccgo_up(s)))-uint32(0xc2) > Uint32FromUint32(0xf4)-Uint32FromUint32(0xc2) { + goto ilseq + } + v3 = s + s = s + 1 + c = X__fsmu8[uint32(**(**uint8)(__ccgo_up(v3)))-uint32(0xc2)] + n = n - 1 + } + if n != 0 { + if (Int32FromUint8(**(**uint8)(__ccgo_up(s)))>>int32(3)-int32(0x10)|(Int32FromUint8(**(**uint8)(__ccgo_up(s)))>>int32(3)+Int32FromUint32(c)>>Int32FromInt32(26))) & ^Int32FromInt32(7) != 0 { + goto ilseq + } + goto loop + loop: + ; + v3 = s + s = s + 1 + c = c<= uint32(0x40) { + goto ilseq + } + goto loop + } + } + **(**uint32)(__ccgo_up(st)) = c + return Uint64FromInt32(-Int32FromInt32(2)) + goto ilseq +ilseq: + ; + **(**uint32)(__ccgo_up(st)) = uint32(0) + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EILSEQ) + return Uint64FromInt32(-Int32FromInt32(1)) +} + +var _internal_state3 uint32 + +func Xmbsinit(tls *TLS, st uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v st=%v, (%v:)", tls, st, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(!(st != 0) || !(**(**uint32)(__ccgo_up(st)) != 0)) +} + +func Xmbsnrtowcs(tls *TLS, wcs uintptr, src uintptr, n Tsize_t, wn Tsize_t, st uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v wcs=%v src=%v n=%v wn=%v st=%v, (%v:)", tls, wcs, src, n, wn, st, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(1040) + defer tls.Free(1040) + var cnt, l, n2, v1 Tsize_t + var tmp_s, ws uintptr + var v2 bool + var v3 uint64 + var _ /* s at bp+1024 */ uintptr + var _ /* wbuf at bp+0 */ [256]Twchar_t + _, _, _, _, _, _, _, _ = cnt, l, n2, tmp_s, ws, v1, v2, v3 + cnt = uint64(0) + **(**uintptr)(__ccgo_up(bp + 1024)) = **(**uintptr)(__ccgo_up(src)) + if !(wcs != 0) { + ws = bp + wn = Uint64FromInt64(1024) / Uint64FromInt64(4) + } else { + ws = wcs + } + /* making sure output buffer size is at most n/4 will ensure + * that mbsrtowcs never reads more than n input bytes. thus + * we can use mbsrtowcs as long as it's practical.. */ + for { + if v2 = **(**uintptr)(__ccgo_up(bp + 1024)) != 0 && wn != 0; v2 { + v1 = n / Uint64FromInt32(4) + n2 = v1 + } + if !(v2 && (v1 >= wn || n2 > uint64(32))) { + break + } + if n2 >= wn { + n2 = wn + } + tmp_s = **(**uintptr)(__ccgo_up(bp + 1024)) + l = Xmbsrtowcs(tls, ws, bp+1024, n2, st) + if !(l+Uint64FromInt32(1) != 0) { + cnt = l + wn = uint64(0) + break + } + if ws != bp { + ws = ws + uintptr(l)*4 + wn = wn - l + } + if **(**uintptr)(__ccgo_up(bp + 1024)) != 0 { + v3 = n - Uint64FromInt64(int64(**(**uintptr)(__ccgo_up(bp + 1024)))-int64(tmp_s)) + } else { + v3 = uint64(0) + } + n = v3 + cnt = cnt + l + } + if **(**uintptr)(__ccgo_up(bp + 1024)) != 0 { + for wn != 0 && n != 0 { + l = Xmbrtowc(tls, ws, **(**uintptr)(__ccgo_up(bp + 1024)), n, st) + if l+uint64(2) <= uint64(2) { + if !(l+Uint64FromInt32(1) != 0) { + cnt = l + break + } + if !(l != 0) { + **(**uintptr)(__ccgo_up(bp + 1024)) = uintptr(0) + break + } + /* have to roll back partial character */ + **(**uint32)(__ccgo_up(st)) = uint32(0) + break + } + **(**uintptr)(__ccgo_up(bp + 1024)) = **(**uintptr)(__ccgo_up(bp + 1024)) + uintptr(l) + n = n - l + /* safe - this loop runs fewer than sizeof(wbuf)/8 times */ + ws += 4 + wn = wn - 1 + cnt = cnt + 1 + } + } + if wcs != 0 { + **(**uintptr)(__ccgo_up(src)) = **(**uintptr)(__ccgo_up(bp + 1024)) + } + return cnt +} + +func Xmbsrtowcs(tls *TLS, ws uintptr, src uintptr, wn Tsize_t, st uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v ws=%v src=%v wn=%v st=%v, (%v:)", tls, ws, src, wn, st, origin(2)) + defer func() { trc("-> %v", r) }() + } + var c, v1 uint32 + var s, v5, v6 uintptr + var wn0 Tsize_t + var v2 bool + var v3 int32 + _, _, _, _, _, _, _, _ = c, s, wn0, v1, v2, v3, v5, v6 + s = **(**uintptr)(__ccgo_up(src)) + wn0 = wn + c = uint32(0) + if v2 = st != 0; v2 { + v1 = **(**uint32)(__ccgo_up(st)) + c = v1 + } + if v2 && v1 != 0 { + if ws != 0 { + **(**uint32)(__ccgo_up(st)) = uint32(0) + goto resume + } else { + goto resume0 + } + } + if !!(**(**uintptr)(__ccgo_up((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale)) != 0) { + v3 = int32(4) + } else { + v3 = int32(1) + } + if v3 == int32(1) { + if !(ws != 0) { + return _strlen(tls, s) + } + for { + if !(wn != 0) { + **(**uintptr)(__ccgo_up(src)) = s + return wn0 + } + if !(**(**uint8)(__ccgo_up(s)) != 0) { + break + } + v5 = s + s = s + 1 + c = uint32(**(**uint8)(__ccgo_up(v5))) + v5 = ws + ws += 4 + **(**Twchar_t)(__ccgo_up(v5)) = Uint32FromInt32(Int32FromInt32(0xdfff) & int32(Int8FromUint32(c))) + wn = wn - 1 + goto _4 + _4: + } + **(**Twchar_t)(__ccgo_up(ws)) = uint32(0) + **(**uintptr)(__ccgo_up(src)) = uintptr(0) + return wn0 - wn + } + if !!(ws != 0) { + goto _7 + } +_11: + ; + if uint32(**(**uint8)(__ccgo_up(s)))-uint32(1) < uint32(0x7f) && uint64(s)%uint64(4) == uint64(0) { + for !((**(**uint32)(__ccgo_up(s))|(**(**uint32)(__ccgo_up(s))-Uint32FromInt32(0x01010101)))&Uint32FromUint32(0x80808080) != 0) { + s = s + uintptr(4) + wn = wn - uint64(4) + } + } + if uint32(**(**uint8)(__ccgo_up(s)))-uint32(1) < uint32(0x7f) { + s = s + 1 + wn = wn - 1 + goto _10 + } + if uint32(**(**uint8)(__ccgo_up(s)))-uint32(0xc2) > Uint32FromUint32(0xf4)-Uint32FromUint32(0xc2) { + goto _9 + } + v5 = s + s = s + 1 + c = X__fsmu8[uint32(**(**uint8)(__ccgo_up(v5)))-uint32(0xc2)] + goto resume0 +resume0: + ; + if (Int32FromUint8(**(**uint8)(__ccgo_up(s)))>>int32(3)-int32(0x10)|(Int32FromUint8(**(**uint8)(__ccgo_up(s)))>>int32(3)+Int32FromUint32(c)>>Int32FromInt32(26))) & ^Int32FromInt32(7) != 0 { + s = s - 1 + goto _9 + } + s = s + 1 + if c&(Uint32FromUint32(1)<= uint32(0x40) { + s = s - uintptr(2) + goto _9 + } + s = s + 1 + if c&(Uint32FromUint32(1)<= uint32(0x40) { + s = s - uintptr(3) + goto _9 + } + s = s + 1 + } + } + wn = wn - 1 + c = uint32(0) + goto _10 +_10: + ; + goto _11 + goto _9 +_9: + ; + goto _8 +_7: + ; +_15: + ; + if !(wn != 0) { + **(**uintptr)(__ccgo_up(src)) = s + return wn0 + } + if uint32(**(**uint8)(__ccgo_up(s)))-uint32(1) < uint32(0x7f) && uint64(s)%uint64(4) == uint64(0) { + for wn >= uint64(5) && !((**(**uint32)(__ccgo_up(s))|(**(**uint32)(__ccgo_up(s))-Uint32FromInt32(0x01010101)))&Uint32FromUint32(0x80808080) != 0) { + v5 = ws + ws += 4 + v6 = s + s = s + 1 + **(**Twchar_t)(__ccgo_up(v5)) = uint32(**(**uint8)(__ccgo_up(v6))) + v5 = ws + ws += 4 + v6 = s + s = s + 1 + **(**Twchar_t)(__ccgo_up(v5)) = uint32(**(**uint8)(__ccgo_up(v6))) + v5 = ws + ws += 4 + v6 = s + s = s + 1 + **(**Twchar_t)(__ccgo_up(v5)) = uint32(**(**uint8)(__ccgo_up(v6))) + v5 = ws + ws += 4 + v6 = s + s = s + 1 + **(**Twchar_t)(__ccgo_up(v5)) = uint32(**(**uint8)(__ccgo_up(v6))) + wn = wn - uint64(4) + } + } + if uint32(**(**uint8)(__ccgo_up(s)))-uint32(1) < uint32(0x7f) { + v5 = ws + ws += 4 + v6 = s + s = s + 1 + **(**Twchar_t)(__ccgo_up(v5)) = uint32(**(**uint8)(__ccgo_up(v6))) + wn = wn - 1 + goto _14 + } + if uint32(**(**uint8)(__ccgo_up(s)))-uint32(0xc2) > Uint32FromUint32(0xf4)-Uint32FromUint32(0xc2) { + goto _13 + } + v5 = s + s = s + 1 + c = X__fsmu8[uint32(**(**uint8)(__ccgo_up(v5)))-uint32(0xc2)] + goto resume +resume: + ; + if (Int32FromUint8(**(**uint8)(__ccgo_up(s)))>>int32(3)-int32(0x10)|(Int32FromUint8(**(**uint8)(__ccgo_up(s)))>>int32(3)+Int32FromUint32(c)>>Int32FromInt32(26))) & ^Int32FromInt32(7) != 0 { + s = s - 1 + goto _13 + } + v5 = s + s = s + 1 + c = c<= uint32(0x40) { + s = s - uintptr(2) + goto _13 + } + v5 = s + s = s + 1 + c = c<= uint32(0x40) { + s = s - uintptr(3) + goto _13 + } + v5 = s + s = s + 1 + c = c< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + *(*uintptr)(unsafe.Pointer(bp)) = _s + return Xmbsrtowcs(tls, ws, bp, wn, uintptr(0)) +} + +func Xmbtowc(tls *TLS, wc uintptr, src uintptr, n Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v src=%v n=%v, (%v:)", tls, wc, src, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var c uint32 + var s, v3 uintptr + var v1 Twchar_t + var v2 int32 + var _ /* dummy at bp+0 */ Twchar_t + _, _, _, _, _ = c, s, v1, v2, v3 + s = src + if !(s != 0) { + return 0 + } + if !(n != 0) { + goto ilseq + } + if !(wc != 0) { + wc = bp + } + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) < int32(0x80) { + v1 = uint32(**(**uint8)(__ccgo_up(s))) + **(**Twchar_t)(__ccgo_up(wc)) = v1 + return BoolInt32(!!(v1 != 0)) + } + if !!(**(**uintptr)(__ccgo_up((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale)) != 0) { + v2 = int32(4) + } else { + v2 = int32(1) + } + if v2 == int32(1) { + **(**Twchar_t)(__ccgo_up(wc)) = Uint32FromInt32(Int32FromInt32(0xdfff) & int32(Int8FromUint8(**(**uint8)(__ccgo_up(s))))) + return Int32FromInt32(1) + } + if uint32(**(**uint8)(__ccgo_up(s)))-uint32(0xc2) > Uint32FromUint32(0xf4)-Uint32FromUint32(0xc2) { + goto ilseq + } + v3 = s + s = s + 1 + c = X__fsmu8[uint32(**(**uint8)(__ccgo_up(v3)))-uint32(0xc2)] + /* Avoid excessive checks against n: If shifting the state n-1 + * times does not clear the high bit, then the value of n is + * insufficient to read a character */ + if n < uint64(4) && c<<(uint64(6)*n-uint64(6))&(Uint32FromUint32(1)<>int32(3)-int32(0x10)|(Int32FromUint8(**(**uint8)(__ccgo_up(s)))>>int32(3)+Int32FromUint32(c)>>Int32FromInt32(26))) & ^Int32FromInt32(7) != 0 { + goto ilseq + } + v3 = s + s = s + 1 + c = c<= uint32(0x40) { + goto ilseq + } + v3 = s + s = s + 1 + c = c<= uint32(0x40) { + goto ilseq + } + v3 = s + s = s + 1 + **(**Twchar_t)(__ccgo_up(wc)) = c< %v", r) }() + } + var v1 int32 + var v2 uintptr + _, _ = v1, v2 + if !(s != 0) { + return uint64(1) + } + if wc < uint32(0x80) { + **(**uint8)(__ccgo_up(s)) = uint8(wc) + return uint64(1) + } else { + if !!(**(**uintptr)(__ccgo_up((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale)) != 0) { + v1 = int32(4) + } else { + v1 = int32(1) + } + if v1 == int32(1) { + if !(wc-Uint32FromInt32(0xdf80) < Uint32FromInt32(0x80)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EILSEQ) + return Uint64FromInt32(-Int32FromInt32(1)) + } + **(**uint8)(__ccgo_up(s)) = uint8(wc) + return uint64(1) + } else { + if wc < uint32(0x800) { + v2 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = uint8(uint32(0xc0) | wc>>Int32FromInt32(6)) + **(**uint8)(__ccgo_up(s)) = uint8(uint32(0x80) | wc&uint32(0x3f)) + return uint64(2) + } else { + if wc < uint32(0xd800) || wc-uint32(0xe000) < uint32(0x2000) { + v2 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = uint8(uint32(0xe0) | wc>>Int32FromInt32(12)) + v2 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = uint8(uint32(0x80) | wc>>Int32FromInt32(6)&uint32(0x3f)) + **(**uint8)(__ccgo_up(s)) = uint8(uint32(0x80) | wc&uint32(0x3f)) + return uint64(3) + } else { + if wc-uint32(0x10000) < uint32(0x100000) { + v2 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = uint8(uint32(0xf0) | wc>>Int32FromInt32(18)) + v2 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = uint8(uint32(0x80) | wc>>Int32FromInt32(12)&uint32(0x3f)) + v2 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = uint8(uint32(0x80) | wc>>Int32FromInt32(6)&uint32(0x3f)) + **(**uint8)(__ccgo_up(s)) = uint8(uint32(0x80) | wc&uint32(0x3f)) + return uint64(4) + } + } + } + } + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EILSEQ) + return Uint64FromInt32(-Int32FromInt32(1)) +} + +func Xwcsnrtombs(tls *TLS, dst uintptr, wcs uintptr, wn Tsize_t, n Tsize_t, st uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v dst=%v wcs=%v wn=%v n=%v st=%v, (%v:)", tls, dst, wcs, wn, n, st, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var cnt, l Tsize_t + var ws, v1 uintptr + var _ /* tmp at bp+0 */ [4]uint8 + _, _, _, _ = cnt, l, ws, v1 + ws = **(**uintptr)(__ccgo_up(wcs)) + cnt = uint64(0) + if !(dst != 0) { + n = uint64(0) + } + for ws != 0 && wn != 0 { + if n < uint64(MB_LEN_MAX) { + v1 = bp + } else { + v1 = dst + } + l = Xwcrtomb(tls, v1, **(**Twchar_t)(__ccgo_up(ws)), uintptr(0)) + if l == Uint64FromInt32(-Int32FromInt32(1)) { + cnt = Uint64FromInt32(-Int32FromInt32(1)) + break + } + if dst != 0 { + if n < uint64(MB_LEN_MAX) { + if l > n { + break + } + Xmemcpy(tls, dst, bp, l) + } + dst = dst + uintptr(l) + n = n - l + } + if !(**(**Twchar_t)(__ccgo_up(ws)) != 0) { + ws = uintptr(0) + break + } + ws += 4 + wn = wn - 1 + cnt = cnt + l + } + if dst != 0 { + **(**uintptr)(__ccgo_up(wcs)) = ws + } + return cnt +} + +func Xwcsrtombs(tls *TLS, s uintptr, ws uintptr, n Tsize_t, st uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v ws=%v n=%v st=%v, (%v:)", tls, s, ws, n, st, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var N, l Tsize_t + var ws2, v2 uintptr + var _ /* buf at bp+0 */ [4]uint8 + _, _, _, _ = N, l, ws2, v2 + N = n + if !(s != 0) { + n = uint64(0) + ws2 = **(**uintptr)(__ccgo_up(ws)) + for { + if !(**(**Twchar_t)(__ccgo_up(ws2)) != 0) { + break + } + if **(**Twchar_t)(__ccgo_up(ws2)) >= uint32(0x80) { + l = Xwcrtomb(tls, bp, **(**Twchar_t)(__ccgo_up(ws2)), uintptr(0)) + if !(l+Uint64FromInt32(1) != 0) { + return Uint64FromInt32(-Int32FromInt32(1)) + } + n = n + l + } else { + n = n + 1 + } + goto _1 + _1: + ; + ws2 += 4 + } + return n + } + for n >= uint64(4) { + if **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(ws))))-uint32(1) >= uint32(0x7f) { + if !(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(ws)))) != 0) { + **(**uint8)(__ccgo_up(s)) = uint8(0) + **(**uintptr)(__ccgo_up(ws)) = uintptr(0) + return N - n + } + l = Xwcrtomb(tls, s, **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(ws)))), uintptr(0)) + if !(l+Uint64FromInt32(1) != 0) { + return Uint64FromInt32(-Int32FromInt32(1)) + } + s = s + uintptr(l) + n = n - l + } else { + v2 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = uint8(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(ws))))) + n = n - 1 + } + **(**uintptr)(__ccgo_up(ws)) += 4 + } + for n != 0 { + if **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(ws))))-uint32(1) >= uint32(0x7f) { + if !(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(ws)))) != 0) { + **(**uint8)(__ccgo_up(s)) = uint8(0) + **(**uintptr)(__ccgo_up(ws)) = uintptr(0) + return N - n + } + l = Xwcrtomb(tls, bp, **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(ws)))), uintptr(0)) + if !(l+Uint64FromInt32(1) != 0) { + return Uint64FromInt32(-Int32FromInt32(1)) + } + if l > n { + return N - n + } + Xwcrtomb(tls, s, **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(ws)))), uintptr(0)) + s = s + uintptr(l) + n = n - l + } else { + v2 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = uint8(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(ws))))) + n = n - 1 + } + **(**uintptr)(__ccgo_up(ws)) += 4 + } + return N +} + +func Xwcstombs(tls *TLS, s uintptr, ws uintptr, n Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v ws=%v n=%v, (%v:)", tls, s, ws, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + *(*uintptr)(unsafe.Pointer(bp)) = ws + return Xwcsrtombs(tls, s, bp, n, uintptr(0)) +} + +func Xwctob(tls *TLS, c Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + _ = v1 + if c < uint32(128) { + return Int32FromUint32(c) + } + if !!(**(**uintptr)(__ccgo_up((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale)) != 0) { + v1 = int32(4) + } else { + v1 = int32(1) + } + if v1 == int32(1) && c-uint32(0xdf80) < uint32(0x80) { + return Int32FromUint8(uint8(c)) + } + return -int32(1) +} + +func Xwctomb(tls *TLS, s uintptr, wc Twchar_t) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v wc=%v, (%v:)", tls, s, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + if !(s != 0) { + return 0 + } + return Int32FromUint64(Xwcrtomb(tls, s, wc, uintptr(0))) +} + +func Xaccept(tls *TLS, fd int32, addr uintptr, len1 uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v addr=%v len1=%v, (%v:)", tls, fd, addr, len1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v8 int64 + var v1 int32 + var v2, v3, v4, v5, v6, v7 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _ = r, v1, v2, v3, v4, v5, v6, v7, v8 + v1 = int32(SYS_accept) + _ = int32(__SC_accept) + v2 = int64(fd) + v3 = int64(addr) + v4 = int64(len1) + v5 = int64(Int32FromInt32(0)) + v6 = int64(Int32FromInt32(0)) + v7 = int64(Int32FromInt32(0)) + if int32(1) != 0 { + r = ___syscall_cp(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _9 + } + v8 = r + goto _9 +_9: + return int32(X__syscall_ret(tls, Uint64FromInt64(v8))) +} + +type Tucred = struct { + Fpid Tpid_t + Fuid Tuid_t + Fgid Tgid_t +} + +type Tmmsghdr = struct { + Fmsg_hdr Tmsghdr + Fmsg_len uint32 +} + +func Xaccept4(tls *TLS, fd int32, addr uintptr, len1 uintptr, flg int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v addr=%v len1=%v flg=%v, (%v:)", tls, fd, addr, len1, flg, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v8 int64 + var ret, v1 int32 + var v2, v3, v4, v5, v6, v7 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _, _ = r, ret, v1, v2, v3, v4, v5, v6, v7, v8 + if !(flg != 0) { + return Xaccept(tls, fd, addr, len1) + } + v1 = int32(SYS_accept4) + _ = int32(__SC_accept4) + v2 = int64(fd) + v3 = int64(addr) + v4 = int64(len1) + v5 = int64(flg) + v6 = int64(Int32FromInt32(0)) + v7 = int64(Int32FromInt32(0)) + if int32(1) != 0 { + r = ___syscall_cp(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _9 + } + v8 = r + goto _9 +_9: + ret = int32(X__syscall_ret(tls, Uint64FromInt64(v8))) + if ret >= 0 || **(**int32)(__ccgo_up(X__errno_location(tls))) != int32(ENOSYS) && **(**int32)(__ccgo_up(X__errno_location(tls))) != int32(EINVAL) { + return ret + } + if flg & ^(Int32FromInt32(SOCK_CLOEXEC)|Int32FromInt32(SOCK_NONBLOCK)) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + ret = Xaccept(tls, fd, addr, len1) + if ret < 0 { + return ret + } + if flg&int32(SOCK_CLOEXEC) != 0 { + X__syscall3(tls, int64(SYS_fcntl), int64(ret), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + } + if flg&int32(SOCK_NONBLOCK) != 0 { + X__syscall3(tls, int64(SYS_fcntl), int64(ret), int64(Int32FromInt32(F_SETFL)), int64(Int32FromInt32(O_NONBLOCK))) + } + return ret +} + +func Xbind(tls *TLS, fd int32, addr uintptr, len1 Tsocklen_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v addr=%v len1=%v, (%v:)", tls, fd, addr, len1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v8 int64 + var v1 int32 + var v2, v3, v4, v5, v6, v7 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _ = r, v1, v2, v3, v4, v5, v6, v7, v8 + v1 = int32(SYS_bind) + _ = int32(__SC_bind) + v2 = int64(fd) + v3 = int64(addr) + v4 = Int64FromUint32(len1) + v5 = int64(Int32FromInt32(0)) + v6 = int64(Int32FromInt32(0)) + v7 = int64(Int32FromInt32(0)) + if 0 != 0 { + r = ___syscall_cp(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _9 + } + v8 = r + goto _9 +_9: + return int32(X__syscall_ret(tls, Uint64FromInt64(v8))) +} + +func Xconnect(tls *TLS, fd int32, addr uintptr, len1 Tsocklen_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v addr=%v len1=%v, (%v:)", tls, fd, addr, len1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v8 int64 + var v1 int32 + var v2, v3, v4, v5, v6, v7 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _ = r, v1, v2, v3, v4, v5, v6, v7, v8 + v1 = int32(SYS_connect) + _ = int32(__SC_connect) + v2 = int64(fd) + v3 = int64(addr) + v4 = Int64FromUint32(len1) + v5 = int64(Int32FromInt32(0)) + v6 = int64(Int32FromInt32(0)) + v7 = int64(Int32FromInt32(0)) + if int32(1) != 0 { + r = ___syscall_cp(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _9 + } + v8 = r + goto _9 +_9: + return int32(X__syscall_ret(tls, Uint64FromInt64(v8))) +} + +const ADD = 0 +const C_ANY = 0 +const C_CHAOS = 0 +const C_HS = 0 +const C_IN = 0 +const C_NONE = 0 +const DELETE = 0 +const FORMERR = 0 +const GETLONG = 0 +const GETSHORT = 0 +const HFIXEDSZ = 12 +const IN6ADDRSZ = 16 +const INADDRSZ = 4 +const INDIR_MASK = 192 +const INET6_ADDRSTRLEN = 46 +const INET_ADDRSTRLEN = 16 +const INT16SZ = 2 +const INT32SZ = 4 +const INT8SZ = 1 +const IN_CLASSA_HOST = 16777215 +const IN_CLASSA_MAX = 128 +const IN_CLASSA_NET = 4278190080 +const IN_CLASSA_NSHIFT = 24 +const IN_CLASSB_HOST = 65535 +const IN_CLASSB_MAX = 65536 +const IN_CLASSB_NET = 4294901760 +const IN_CLASSB_NSHIFT = 16 +const IN_CLASSC_HOST = 255 +const IN_CLASSC_NET = 4294967040 +const IN_CLASSC_NSHIFT = 8 +const IN_LOOPBACKNET = 127 +const IPPORT_RESERVED = 1024 +const IPPROTO_AH = 51 +const IPPROTO_BEETPH = 94 +const IPPROTO_COMP = 108 +const IPPROTO_DCCP = 33 +const IPPROTO_DSTOPTS = 60 +const IPPROTO_EGP = 8 +const IPPROTO_ENCAP = 98 +const IPPROTO_ESP = 50 +const IPPROTO_ETHERNET = 143 +const IPPROTO_FRAGMENT = 44 +const IPPROTO_GRE = 47 +const IPPROTO_HOPOPTS = 0 +const IPPROTO_ICMP = 1 +const IPPROTO_ICMPV6 = 58 +const IPPROTO_IDP = 22 +const IPPROTO_IGMP = 2 +const IPPROTO_IP = 0 +const IPPROTO_IPIP = 4 +const IPPROTO_IPV6 = 41 +const IPPROTO_MAX = 263 +const IPPROTO_MH = 135 +const IPPROTO_MPLS = 137 +const IPPROTO_MPTCP = 262 +const IPPROTO_MTP = 92 +const IPPROTO_NONE = 59 +const IPPROTO_PIM = 103 +const IPPROTO_PUP = 12 +const IPPROTO_RAW = 255 +const IPPROTO_ROUTING = 43 +const IPPROTO_RSVP = 46 +const IPPROTO_SCTP = 132 +const IPPROTO_TCP = 6 +const IPPROTO_TP = 29 +const IPPROTO_UDP = 17 +const IPPROTO_UDPLITE = 136 +const IPV6_2292DSTOPTS = 4 +const IPV6_2292HOPLIMIT = 8 +const IPV6_2292HOPOPTS = 3 +const IPV6_2292PKTINFO = 2 +const IPV6_2292PKTOPTIONS = 6 +const IPV6_2292RTHDR = 5 +const IPV6_ADDRFORM = 1 +const IPV6_ADDR_PREFERENCES = 72 +const IPV6_ADD_MEMBERSHIP = 20 +const IPV6_AUTHHDR = 10 +const IPV6_AUTOFLOWLABEL = 70 +const IPV6_CHECKSUM = 7 +const IPV6_DONTFRAG = 62 +const IPV6_DROP_MEMBERSHIP = 21 +const IPV6_DSTOPTS = 59 +const IPV6_FREEBIND = 78 +const IPV6_HDRINCL = 36 +const IPV6_HOPLIMIT = 52 +const IPV6_HOPOPTS = 54 +const IPV6_IPSEC_POLICY = 34 +const IPV6_JOIN_ANYCAST = 27 +const IPV6_JOIN_GROUP = 20 +const IPV6_LEAVE_ANYCAST = 28 +const IPV6_LEAVE_GROUP = 21 +const IPV6_MINHOPCOUNT = 73 +const IPV6_MTU = 24 +const IPV6_MTU_DISCOVER = 23 +const IPV6_MULTICAST_ALL = 29 +const IPV6_MULTICAST_HOPS = 18 +const IPV6_MULTICAST_IF = 17 +const IPV6_MULTICAST_LOOP = 19 +const IPV6_NEXTHOP = 9 +const IPV6_ORIGDSTADDR = 74 +const IPV6_PATHMTU = 61 +const IPV6_PKTINFO = 50 +const IPV6_PMTUDISC_DO = 2 +const IPV6_PMTUDISC_DONT = 0 +const IPV6_PMTUDISC_INTERFACE = 4 +const IPV6_PMTUDISC_OMIT = 5 +const IPV6_PMTUDISC_PROBE = 3 +const IPV6_PMTUDISC_WANT = 1 +const IPV6_PREFER_SRC_CGA = 8 +const IPV6_PREFER_SRC_COA = 4 +const IPV6_PREFER_SRC_HOME = 1024 +const IPV6_PREFER_SRC_NONCGA = 2048 +const IPV6_PREFER_SRC_PUBLIC = 2 +const IPV6_PREFER_SRC_PUBTMP_DEFAULT = 256 +const IPV6_PREFER_SRC_TMP = 1 +const IPV6_RECVDSTOPTS = 58 +const IPV6_RECVERR = 25 +const IPV6_RECVFRAGSIZE = 77 +const IPV6_RECVHOPLIMIT = 51 +const IPV6_RECVHOPOPTS = 53 +const IPV6_RECVORIGDSTADDR = 74 +const IPV6_RECVPATHMTU = 60 +const IPV6_RECVPKTINFO = 49 +const IPV6_RECVRTHDR = 56 +const IPV6_RECVTCLASS = 66 +const IPV6_ROUTER_ALERT = 22 +const IPV6_ROUTER_ALERT_ISOLATE = 30 +const IPV6_RTHDR = 57 +const IPV6_RTHDRDSTOPTS = 55 +const IPV6_RTHDR_LOOSE = 0 +const IPV6_RTHDR_STRICT = 1 +const IPV6_RTHDR_TYPE_0 = 0 +const IPV6_RXDSTOPTS = 59 +const IPV6_RXHOPOPTS = 54 +const IPV6_TCLASS = 67 +const IPV6_TRANSPARENT = 75 +const IPV6_UNICAST_HOPS = 16 +const IPV6_UNICAST_IF = 76 +const IPV6_V6ONLY = 26 +const IPV6_XFRM_POLICY = 35 +const IP_ADD_MEMBERSHIP = 35 +const IP_ADD_SOURCE_MEMBERSHIP = 39 +const IP_BIND_ADDRESS_NO_PORT = 24 +const IP_BLOCK_SOURCE = 38 +const IP_CHECKSUM = 23 +const IP_DEFAULT_MULTICAST_LOOP = 1 +const IP_DEFAULT_MULTICAST_TTL = 1 +const IP_DROP_MEMBERSHIP = 36 +const IP_DROP_SOURCE_MEMBERSHIP = 40 +const IP_FREEBIND = 15 +const IP_HDRINCL = 3 +const IP_IPSEC_POLICY = 16 +const IP_MAX_MEMBERSHIPS = 20 +const IP_MINTTL = 21 +const IP_MSFILTER = 41 +const IP_MTU = 14 +const IP_MTU_DISCOVER = 10 +const IP_MULTICAST_ALL = 49 +const IP_MULTICAST_IF = 32 +const IP_MULTICAST_LOOP = 34 +const IP_MULTICAST_TTL = 33 +const IP_NODEFRAG = 22 +const IP_OPTIONS = 4 +const IP_ORIGDSTADDR = 20 +const IP_PASSSEC = 18 +const IP_PKTINFO = 8 +const IP_PKTOPTIONS = 9 +const IP_PMTUDISC = 10 +const IP_PMTUDISC_DO = 2 +const IP_PMTUDISC_DONT = 0 +const IP_PMTUDISC_INTERFACE = 4 +const IP_PMTUDISC_OMIT = 5 +const IP_PMTUDISC_PROBE = 3 +const IP_PMTUDISC_WANT = 1 +const IP_RECVERR = 11 +const IP_RECVERR_RFC4884 = 26 +const IP_RECVFRAGSIZE = 25 +const IP_RECVOPTS = 6 +const IP_RECVORIGDSTADDR = 20 +const IP_RECVRETOPTS = 7 +const IP_RECVTOS = 13 +const IP_RECVTTL = 12 +const IP_RETOPTS = 7 +const IP_ROUTER_ALERT = 5 +const IP_TOS = 1 +const IP_TRANSPARENT = 19 +const IP_TTL = 2 +const IP_UNBLOCK_SOURCE = 37 +const IP_UNICAST_IF = 50 +const IP_XFRM_POLICY = 17 +const IQUERY = 0 +const LOCALDOMAINPARTS = 2 +const MAXCDNAME = 255 +const MAXDFLSRCH = 3 +const MAXDNAME = 1025 +const MAXDNSRCH = 6 +const MAXLABEL = 63 +const MAXNS = 3 +const MAXRESOLVSORT = 10 +const NAMESERVER_PORT = 53 +const NOERROR = 0 +const NOTAUTH = 0 +const NOTIMP = 0 +const NOTZONE = 0 +const NS_ALG_DH = 2 +const NS_ALG_DSA = 3 +const NS_ALG_DSS = 3 +const NS_ALG_EXPIRE_ONLY = 253 +const NS_ALG_MD5RSA = 1 +const NS_ALG_PRIVATE_OID = 254 +const NS_CMPRSFLGS = 192 +const NS_DEFAULTPORT = 53 +const NS_DSA_MAX_BYTES = 405 +const NS_DSA_MIN_SIZE = 213 +const NS_DSA_SIG_SIZE = 41 +const NS_HFIXEDSZ = 12 +const NS_IN6ADDRSZ = 16 +const NS_INADDRSZ = 4 +const NS_INT16SZ = 2 +const NS_INT32SZ = 4 +const NS_INT8SZ = 1 +const NS_KEY_EXTENDED_FLAGS = 4096 +const NS_KEY_NAME_ENTITY = 512 +const NS_KEY_NAME_RESERVED = 768 +const NS_KEY_NAME_TYPE = 768 +const NS_KEY_NAME_USER = 0 +const NS_KEY_NAME_ZONE = 256 +const NS_KEY_NO_AUTH = 32768 +const NS_KEY_NO_CONF = 16384 +const NS_KEY_PROT_ANY = 255 +const NS_KEY_PROT_DNSSEC = 3 +const NS_KEY_PROT_EMAIL = 2 +const NS_KEY_PROT_IPSEC = 4 +const NS_KEY_PROT_TLS = 1 +const NS_KEY_RESERVED10 = 32 +const NS_KEY_RESERVED11 = 16 +const NS_KEY_RESERVED2 = 8192 +const NS_KEY_RESERVED4 = 2048 +const NS_KEY_RESERVED5 = 1024 +const NS_KEY_RESERVED8 = 128 +const NS_KEY_RESERVED9 = 64 +const NS_KEY_RESERVED_BITMASK = 11504 +const NS_KEY_RESERVED_BITMASK2 = 65535 +const NS_KEY_SIGNATORYMASK = 15 +const NS_KEY_TYPEMASK = 49152 +const NS_KEY_TYPE_AUTH_CONF = 0 +const NS_KEY_TYPE_AUTH_ONLY = 16384 +const NS_KEY_TYPE_CONF_ONLY = 32768 +const NS_KEY_TYPE_NO_KEY = 49152 +const NS_MAXCDNAME = 255 +const NS_MAXDNAME = 1025 +const NS_MAXLABEL = 63 +const NS_MAXMSG = 65535 +const NS_MD5RSA_MAX_BASE64 = 10928 +const NS_MD5RSA_MAX_BITS = 4096 +const NS_MD5RSA_MAX_BYTES = 8195 +const NS_MD5RSA_MAX_SIZE = 512 +const NS_MD5RSA_MIN_BITS = 512 +const NS_MD5RSA_MIN_SIZE = 64 +const NS_NOTIFY_OP = 0 +const NS_NXT_BITS = 8 +const NS_NXT_MAX = 127 +const NS_OPT_DNSSEC_OK = 32768 +const NS_OPT_NSID = 3 +const NS_PACKETSZ = 512 +const NS_QFIXEDSZ = 4 +const NS_RRFIXEDSZ = 10 +const NS_SIG_ALG = 2 +const NS_SIG_EXPIR = 8 +const NS_SIG_FOOT = 16 +const NS_SIG_LABELS = 3 +const NS_SIG_OTTL = 4 +const NS_SIG_SIGNED = 12 +const NS_SIG_SIGNER = 18 +const NS_SIG_TYPE = 0 +const NS_TSIG_ALG_HMAC_MD5 = "HMAC-MD5.SIG-ALG.REG.INT" +const NS_TSIG_ERROR_FORMERR = -12 +const NS_TSIG_ERROR_NO_SPACE = -11 +const NS_TSIG_ERROR_NO_TSIG = -10 +const NS_TSIG_FUDGE = 300 +const NS_TSIG_TCP_COUNT = 100 +const NS_UPDATE_OP = 0 +const NXDOMAIN = 0 +const NXRRSET = 0 +const PACKETSZ = 512 +const PRIX16 = "X" +const PRIX32 = "X" +const PRIX8 = "X" +const PRIXFAST16 = "X" +const PRIXFAST32 = "X" +const PRIXFAST8 = "X" +const PRIXLEAST16 = "X" +const PRIXLEAST32 = "X" +const PRIXLEAST8 = "X" +const PRId16 = "d" +const PRId32 = "d" +const PRId8 = "d" +const PRIdFAST16 = "d" +const PRIdFAST32 = "d" +const PRIdFAST8 = "d" +const PRIdLEAST16 = "d" +const PRIdLEAST32 = "d" +const PRIdLEAST8 = "d" +const PRIi16 = "i" +const PRIi32 = "i" +const PRIi8 = "i" +const PRIiFAST16 = "i" +const PRIiFAST32 = "i" +const PRIiFAST8 = "i" +const PRIiLEAST16 = "i" +const PRIiLEAST32 = "i" +const PRIiLEAST8 = "i" +const PRIo16 = "o" +const PRIo32 = "o" +const PRIo8 = "o" +const PRIoFAST16 = "o" +const PRIoFAST32 = "o" +const PRIoFAST8 = "o" +const PRIoLEAST16 = "o" +const PRIoLEAST32 = "o" +const PRIoLEAST8 = "o" +const PRIu16 = "u" +const PRIu32 = "u" +const PRIu8 = "u" +const PRIuFAST16 = "u" +const PRIuFAST32 = "u" +const PRIuFAST8 = "u" +const PRIuLEAST16 = "u" +const PRIuLEAST32 = "u" +const PRIuLEAST8 = "u" +const PRIx16 = "x" +const PRIx32 = "x" +const PRIx8 = "x" +const PRIxFAST16 = "x" +const PRIxFAST32 = "x" +const PRIxFAST8 = "x" +const PRIxLEAST16 = "x" +const PRIxLEAST32 = "x" +const PRIxLEAST8 = "x" +const PUTLONG = 0 +const PUTSHORT = 0 +const QFIXEDSZ = 4 +const QUERY = 0 +const REFUSED = 0 +const RES_AAONLY = 4 +const RES_BLAST = 131072 +const RES_DEBUG = 2 +const RES_DEFAULT = 524992 +const RES_DEFNAMES = 128 +const RES_DFLRETRY = 2 +const RES_DNSRCH = 512 +const RES_EXHAUSTIVE = 1 +const RES_F_CONN = 2 +const RES_F_EDNS0ERR = 4 +const RES_F_VC = 1 +const RES_IGNTC = 32 +const RES_INIT = 1 +const RES_INSECURE1 = 1024 +const RES_INSECURE2 = 2048 +const RES_KEEPTSIG = 65536 +const RES_MAXNDOTS = 15 +const RES_MAXRETRANS = 30 +const RES_MAXRETRY = 5 +const RES_MAXTIME = 65535 +const RES_NOALIASES = 4096 +const RES_NOCHECKNAME = 32768 +const RES_NOIP6DOTINT = 524288 +const RES_PRF_ADD = 128 +const RES_PRF_ANS = 32 +const RES_PRF_AUTH = 64 +const RES_PRF_CLASS = 4 +const RES_PRF_CMD = 8 +const RES_PRF_HEAD1 = 256 +const RES_PRF_HEAD2 = 512 +const RES_PRF_HEADX = 2048 +const RES_PRF_INIT = 16384 +const RES_PRF_QUERY = 4096 +const RES_PRF_QUES = 16 +const RES_PRF_REPLY = 8192 +const RES_PRF_STATS = 1 +const RES_PRF_TTLID = 1024 +const RES_PRF_UPDATE = 2 +const RES_PRIMARY = 16 +const RES_RECURSE = 64 +const RES_ROTATE = 16384 +const RES_SNGLKUP = 2097152 +const RES_SNGLKUPREOP = 4194304 +const RES_STAYOPEN = 256 +const RES_TIMEOUT = 5 +const RES_USEBSTRING = 262144 +const RES_USEVC = 8 +const RES_USE_DNSSEC = 8388608 +const RES_USE_EDNS0 = 1048576 +const RES_USE_INET6 = 8192 +const RRFIXEDSZ = 10 +const SCNd16 = "hd" +const SCNd32 = "d" +const SCNd8 = "hhd" +const SCNdFAST16 = "d" +const SCNdFAST32 = "d" +const SCNdFAST8 = "hhd" +const SCNdLEAST16 = "hd" +const SCNdLEAST32 = "d" +const SCNdLEAST8 = "hhd" +const SCNi16 = "hi" +const SCNi32 = "i" +const SCNi8 = "hhi" +const SCNiFAST16 = "i" +const SCNiFAST32 = "i" +const SCNiFAST8 = "hhi" +const SCNiLEAST16 = "hi" +const SCNiLEAST32 = "i" +const SCNiLEAST8 = "hhi" +const SCNo16 = "ho" +const SCNo32 = "o" +const SCNo8 = "hho" +const SCNoFAST16 = "o" +const SCNoFAST32 = "o" +const SCNoFAST8 = "hho" +const SCNoLEAST16 = "ho" +const SCNoLEAST32 = "o" +const SCNoLEAST8 = "hho" +const SCNu16 = "hu" +const SCNu32 = "u" +const SCNu8 = "hhu" +const SCNuFAST16 = "u" +const SCNuFAST32 = "u" +const SCNuFAST8 = "hhu" +const SCNuLEAST16 = "hu" +const SCNuLEAST32 = "u" +const SCNuLEAST8 = "hhu" +const SCNx16 = "hx" +const SCNx32 = "x" +const SCNx8 = "hhx" +const SCNxFAST16 = "x" +const SCNxFAST32 = "x" +const SCNxFAST8 = "hhx" +const SCNxLEAST16 = "hx" +const SCNxLEAST32 = "x" +const SCNxLEAST8 = "hhx" +const SERVFAIL = 0 +const STATUS = 0 +const S_ADDT = 0 +const S_PREREQ = 0 +const S_UPDATE = 0 +const S_ZONE = 0 +const T_A = 0 +const T_A6 = 0 +const T_AAAA = 0 +const T_AFSDB = 0 +const T_ANY = 0 +const T_ATMA = 0 +const T_AVC = 0 +const T_AXFR = 0 +const T_CAA = 0 +const T_CDNSKEY = 0 +const T_CDS = 0 +const T_CNAME = 0 +const T_CSYNC = 0 +const T_DHCID = 0 +const T_DLV = 0 +const T_DNAME = 0 +const T_DNSKEY = 0 +const T_DS = 0 +const T_EID = 0 +const T_EUI48 = 0 +const T_EUI64 = 0 +const T_GID = 0 +const T_GPOS = 0 +const T_HINFO = 0 +const T_HIP = 0 +const T_IPSECKEY = 0 +const T_ISDN = 0 +const T_IXFR = 0 +const T_KEY = 0 +const T_L32 = 0 +const T_L64 = 0 +const T_LOC = 0 +const T_LP = 0 +const T_MAILA = 0 +const T_MAILB = 0 +const T_MB = 0 +const T_MD = 0 +const T_MF = 0 +const T_MG = 0 +const T_MINFO = 0 +const T_MR = 0 +const T_MX = 0 +const T_NAPTR = 0 +const T_NID = 0 +const T_NIMLOC = 0 +const T_NINFO = 0 +const T_NS = 0 +const T_NSAP = 0 +const T_NSAP_PTR = 0 +const T_NSEC = 0 +const T_NSEC3 = 0 +const T_NSEC3PARAM = 0 +const T_NULL = 0 +const T_NXT = 0 +const T_OPENPGPKEY = 0 +const T_PTR = 0 +const T_PX = 0 +const T_RKEY = 0 +const T_RP = 0 +const T_RRSIG = 0 +const T_RT = 0 +const T_SIG = 0 +const T_SMIMEA = 0 +const T_SOA = 0 +const T_SPF = 0 +const T_SRV = 0 +const T_SSHFP = 0 +const T_TA = 0 +const T_TALINK = 0 +const T_TKEY = 0 +const T_TLSA = 0 +const T_TSIG = 0 +const T_TXT = 0 +const T_UID = 0 +const T_UINFO = 0 +const T_UNSPEC = 0 +const T_URI = 0 +const T_WKS = 0 +const T_X25 = 0 +const YXDOMAIN = 0 +const YXRRSET = 0 +const _PATH_RESCONF = "/etc/resolv.conf" +const __BIND = 19950621 +const __NAMESER = 19991006 +const __PRI64 = "l" +const __PRIPTR = "l" +const __RES = 19960801 +const __UAPI_DEF_IN6_ADDR = 0 +const __UAPI_DEF_IN6_ADDR_ALT = 0 +const __UAPI_DEF_IN6_PKTINFO = 0 +const __UAPI_DEF_IN_ADDR = 0 +const __UAPI_DEF_IN_CLASS = 0 +const __UAPI_DEF_IN_IPPROTO = 0 +const __UAPI_DEF_IN_PKTINFO = 0 +const __UAPI_DEF_IP6_MTUINFO = 0 +const __UAPI_DEF_IPPROTO_V6 = 0 +const __UAPI_DEF_IPV6_MREQ = 0 +const __UAPI_DEF_IPV6_OPTIONS = 0 +const __UAPI_DEF_IP_MREQ = 0 +const __UAPI_DEF_SOCKADDR_IN = 0 +const __UAPI_DEF_SOCKADDR_IN6 = 0 +const _res = 0 + +type Tns_sect = int32 + +type ___ns_sect = int32 + +const _ns_s_qd = 0 +const _ns_s_zn = 0 +const _ns_s_an = 1 +const _ns_s_pr = 1 +const _ns_s_ns = 2 +const _ns_s_ud = 2 +const _ns_s_ar = 3 +const _ns_s_max = 4 + +type Tns_msg = struct { + F_msg uintptr + F_eom uintptr + F_id Tuint16_t + F_flags Tuint16_t + F_counts [4]Tuint16_t + F_sections [4]uintptr + F_sect Tns_sect + F_rrnum int32 + F_msg_ptr uintptr +} + +type t__ns_msg = Tns_msg + +type T_ns_flagdata = struct { + Fmask int32 + Fshift int32 +} + +type Tns_rr = struct { + Fname [1025]uint8 + Ftype1 Tuint16_t + Frr_class Tuint16_t + Fttl Tuint32_t + Frdlength Tuint16_t + Frdata uintptr +} + +type t__ns_rr = Tns_rr + +type Tns_flag = int32 + +type ___ns_flag = int32 + +const _ns_f_qr = 0 +const _ns_f_opcode = 1 +const _ns_f_aa = 2 +const _ns_f_tc = 3 +const _ns_f_rd = 4 +const _ns_f_ra = 5 +const _ns_f_z = 6 +const _ns_f_ad = 7 +const _ns_f_cd = 8 +const _ns_f_rcode = 9 +const _ns_f_max = 10 + +type Tns_opcode = int32 + +type ___ns_opcode = int32 + +const _ns_o_query = 0 +const _ns_o_iquery = 1 +const _ns_o_status = 2 +const _ns_o_notify = 4 +const _ns_o_update = 5 +const _ns_o_max = 6 + +type Tns_rcode = int32 + +type ___ns_rcode = int32 + +const _ns_r_noerror = 0 +const _ns_r_formerr = 1 +const _ns_r_servfail = 2 +const _ns_r_nxdomain = 3 +const _ns_r_notimpl = 4 +const _ns_r_refused = 5 +const _ns_r_yxdomain = 6 +const _ns_r_yxrrset = 7 +const _ns_r_nxrrset = 8 +const _ns_r_notauth = 9 +const _ns_r_notzone = 10 +const _ns_r_max = 11 +const _ns_r_badvers = 16 +const _ns_r_badsig = 16 +const _ns_r_badkey = 17 +const _ns_r_badtime = 18 + +type Tns_update_operation = int32 + +type ___ns_update_operation = int32 + +const _ns_uop_delete = 0 +const _ns_uop_add = 1 +const _ns_uop_max = 2 + +type Tns_tsig_key = struct { + Fname [1025]uint8 + Falg [1025]uint8 + Fdata uintptr + Flen1 int32 +} + +type Tns_tcp_tsig_state = struct { + Fcounter int32 + Fkey uintptr + Fctx uintptr + Fsig [512]uint8 + Fsiglen int32 +} + +type Tns_type = int32 + +type ___ns_type = int32 + +const _ns_t_invalid = 0 +const _ns_t_a = 1 +const _ns_t_ns = 2 +const _ns_t_md = 3 +const _ns_t_mf = 4 +const _ns_t_cname = 5 +const _ns_t_soa = 6 +const _ns_t_mb = 7 +const _ns_t_mg = 8 +const _ns_t_mr = 9 +const _ns_t_null = 10 +const _ns_t_wks = 11 +const _ns_t_ptr = 12 +const _ns_t_hinfo = 13 +const _ns_t_minfo = 14 +const _ns_t_mx = 15 +const _ns_t_txt = 16 +const _ns_t_rp = 17 +const _ns_t_afsdb = 18 +const _ns_t_x25 = 19 +const _ns_t_isdn = 20 +const _ns_t_rt = 21 +const _ns_t_nsap = 22 +const _ns_t_nsap_ptr = 23 +const _ns_t_sig = 24 +const _ns_t_key = 25 +const _ns_t_px = 26 +const _ns_t_gpos = 27 +const _ns_t_aaaa = 28 +const _ns_t_loc = 29 +const _ns_t_nxt = 30 +const _ns_t_eid = 31 +const _ns_t_nimloc = 32 +const _ns_t_srv = 33 +const _ns_t_atma = 34 +const _ns_t_naptr = 35 +const _ns_t_kx = 36 +const _ns_t_cert = 37 +const _ns_t_a6 = 38 +const _ns_t_dname = 39 +const _ns_t_sink = 40 +const _ns_t_opt = 41 +const _ns_t_apl = 42 +const _ns_t_ds = 43 +const _ns_t_sshfp = 44 +const _ns_t_ipseckey = 45 +const _ns_t_rrsig = 46 +const _ns_t_nsec = 47 +const _ns_t_dnskey = 48 +const _ns_t_dhcid = 49 +const _ns_t_nsec3 = 50 +const _ns_t_nsec3param = 51 +const _ns_t_tlsa = 52 +const _ns_t_smimea = 53 +const _ns_t_hip = 55 +const _ns_t_ninfo = 56 +const _ns_t_rkey = 57 +const _ns_t_talink = 58 +const _ns_t_cds = 59 +const _ns_t_cdnskey = 60 +const _ns_t_openpgpkey = 61 +const _ns_t_csync = 62 +const _ns_t_spf = 99 +const _ns_t_uinfo = 100 +const _ns_t_uid = 101 +const _ns_t_gid = 102 +const _ns_t_unspec = 103 +const _ns_t_nid = 104 +const _ns_t_l32 = 105 +const _ns_t_l64 = 106 +const _ns_t_lp = 107 +const _ns_t_eui48 = 108 +const _ns_t_eui64 = 109 +const _ns_t_tkey = 249 +const _ns_t_tsig = 250 +const _ns_t_ixfr = 251 +const _ns_t_axfr = 252 +const _ns_t_mailb = 253 +const _ns_t_maila = 254 +const _ns_t_any = 255 +const _ns_t_zxfr = 256 +const _ns_t_uri = 256 +const _ns_t_caa = 257 +const _ns_t_avc = 258 +const _ns_t_ta = 32768 +const _ns_t_dlv = 32769 +const _ns_t_max = 65536 + +type Tns_class = int32 + +type ___ns_class = int32 + +const _ns_c_invalid = 0 +const _ns_c_in = 1 +const _ns_c_2 = 2 +const _ns_c_chaos = 3 +const _ns_c_hs = 4 +const _ns_c_none = 254 +const _ns_c_any = 255 +const _ns_c_max = 65536 + +type Tns_key_types = int32 + +type ___ns_key_types = int32 + +const _ns_kt_rsa = 1 +const _ns_kt_dh = 2 +const _ns_kt_dsa = 3 +const _ns_kt_private = 254 + +type Tns_cert_types = int32 + +type ___ns_cert_types = int32 + +const _cert_t_pkix = 1 +const _cert_t_spki = 2 +const _cert_t_pgp = 3 +const _cert_t_url = 253 +const _cert_t_oid = 254 + +type THEADER = struct { + F__ccgo0 uint32 + F__ccgo4 uint32 + F__ccgo8 uint32 +} + +type Timaxdiv_t = struct { + Fquot Tintmax_t + Frem Tintmax_t +} + +type Tin_port_t = uint16 + +type Tin_addr_t = uint32 + +type Tin_addr = struct { + Fs_addr Tin_addr_t +} + +type Tsockaddr_in = struct { + Fsin_family Tsa_family_t + Fsin_port Tin_port_t + Fsin_addr Tin_addr + Fsin_zero [8]Tuint8_t +} + +type Tin6_addr = struct { + F__in6_union struct { + F__s6_addr16 [0][8]Tuint16_t + F__s6_addr32 [0][4]Tuint32_t + F__s6_addr [16]Tuint8_t + } +} + +type Tsockaddr_in6 = struct { + Fsin6_family Tsa_family_t + Fsin6_port Tin_port_t + Fsin6_flowinfo Tuint32_t + Fsin6_addr Tin6_addr + Fsin6_scope_id Tuint32_t +} + +type Tipv6_mreq = struct { + Fipv6mr_multiaddr Tin6_addr + Fipv6mr_interface uint32 +} + +type Tip_opts = struct { + Fip_dst Tin_addr + Fip_opts [40]uint8 +} + +type Tres_state = uintptr + +type t__res_state = struct { + Fretrans int32 + Fretry int32 + Foptions uint64 + Fnscount int32 + Fnsaddr_list [3]Tsockaddr_in + Fid uint16 + Fdnsrch [7]uintptr + Fdefdname [256]uint8 + Fpfcode uint64 + F__ccgo392 uint32 + Fsort_list [10]struct { + Faddr Tin_addr + Fmask Tuint32_t + } + Fqhook uintptr + Frhook uintptr + Fres_h_errno int32 + F_vcsock int32 + F_flags uint32 + F_u struct { + F_ext [0]struct { + Fnscount Tuint16_t + Fnsmap [3]Tuint16_t + Fnssocks [3]int32 + Fnscount6 Tuint16_t + Fnsinit Tuint16_t + Fnsaddrs [3]uintptr + F_initstamp [2]uint32 + } + Fpad [52]uint8 + F__ccgo_pad2 [4]byte + } +} + +type Tres_sym = struct { + Fnumber int32 + Fname uintptr + Fhumanname uintptr +} + +/* RFC 1035 message compression */ + +// C documentation +// +// /* label start offsets of a compressed domain name s */ +func _getoffs(tls *TLS, offs uintptr, base uintptr, s uintptr) (r int32) { + var i, v2 int32 + _, _ = i, v2 + i = 0 + for { + for Int32FromUint8(**(**uint8)(__ccgo_up(s)))&int32(0xc0) != 0 { + if Int32FromUint8(**(**uint8)(__ccgo_up(s)))&int32(0xc0) != int32(0xc0) { + return 0 + } + s = base + uintptr(Int32FromUint8(**(**uint8)(__ccgo_up(s)))&Int32FromInt32(0x3f)<= int64(0x4000) { + return 0 + } + v2 = i + i = i + 1 + **(**int16)(__ccgo_up(offs + uintptr(v2)*2)) = int16(int64(s) - int64(base)) + s = s + uintptr(Int32FromUint8(**(**uint8)(__ccgo_up(s)))+int32(1)) + goto _1 + _1: + } + return r +} + +// C documentation +// +// /* label lengths of an ascii domain name s */ +func _getlens(tls *TLS, lens uintptr, s uintptr, l int32) (r int32) { + var i, j, k, v3 int32 + _, _, _, _ = i, j, k, v3 + i = 0 + j = 0 + k = 0 + for { + for { + if !(j < l && Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(j)))) != int32('.')) { + break + } + goto _2 + _2: + ; + j = j + 1 + } + if Uint32FromInt32(j-k)-uint32(1) > uint32(62) { + return 0 + } + v3 = i + i = i + 1 + **(**uint8)(__ccgo_up(lens + uintptr(v3))) = Uint8FromInt32(j - k) + if j == l { + return i + } + j = j + 1 + v3 = j + k = v3 + goto _1 + _1: + } + return r +} + +// C documentation +// +// /* longest suffix match of an ascii domain with a compressed domain name dn */ +func _match(tls *TLS, offset uintptr, base uintptr, dn uintptr, end uintptr, lens uintptr, nlen int32) (r int32) { + bp := tls.Alloc(256) + defer tls.Free(256) + var l, m, noff, o, v2 int32 + var _ /* offs at bp+0 */ [128]int16 + _, _, _, _, _ = l, m, noff, o, v2 + m = 0 + noff = _getoffs(tls, bp, base, dn) + if !(noff != 0) { + return 0 + } + for { + nlen = nlen - 1 + v2 = nlen + l = Int32FromUint8(**(**uint8)(__ccgo_up(lens + uintptr(v2)))) + noff = noff - 1 + v2 = noff + o = int32((**(**[128]int16)(__ccgo_up(bp)))[v2]) + end = end - uintptr(l) + if l != Int32FromUint8(**(**uint8)(__ccgo_up(base + uintptr(o)))) || Xmemcmp(tls, base+uintptr(o)+uintptr(1), end, Uint64FromInt32(l)) != 0 { + return m + } + **(**int32)(__ccgo_up(offset)) = o + m = m + l + if nlen != 0 { + m = m + 1 + } + if !(nlen != 0) || !(noff != 0) { + return m + } + end = end - 1 + goto _1 + _1: + } + return r +} + +func Xdn_comp(tls *TLS, src uintptr, dst uintptr, space int32, dnptrs uintptr, lastdnptr uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v src=%v dst=%v space=%v dnptrs=%v lastdnptr=%v, (%v:)", tls, src, dst, space, dnptrs, lastdnptr, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(144) + defer tls.Free(144) + var bestlen, bestoff, i, j, m, n, v3 int32 + var end, p, v8 uintptr + var l Tsize_t + var _ /* lens at bp+4 */ [127]uint8 + var _ /* offset at bp+0 */ int32 + _, _, _, _, _, _, _, _, _, _, _ = bestlen, bestoff, end, i, j, l, m, n, p, v3, v8 + m = 0 + bestlen = 0 + l = Xstrnlen(tls, src, uint64(255)) + if l != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(src + uintptr(l-uint64(1))))) == int32('.') { + l = l - 1 + } + if l > uint64(253) || space <= 0 { + return -int32(1) + } + if !(l != 0) { + **(**uint8)(__ccgo_up(dst)) = uint8(0) + return int32(1) + } + end = src + uintptr(l) + n = _getlens(tls, bp+4, src, Int32FromUint64(l)) + if !(n != 0) { + return -int32(1) + } + p = dnptrs + if p != 0 && **(**uintptr)(__ccgo_up(p)) != 0 { + p += 8 + for { + if !(**(**uintptr)(__ccgo_up(p)) != 0) { + break + } + m = _match(tls, bp, **(**uintptr)(__ccgo_up(dnptrs)), **(**uintptr)(__ccgo_up(p)), end, bp+4, n) + if m > bestlen { + bestlen = m + bestoff = **(**int32)(__ccgo_up(bp)) + if Uint64FromInt32(m) == l { + break + } + } + goto _1 + _1: + ; + p += 8 + } + } + /* encode unmatched part */ + if Uint64FromInt32(space) < l-Uint64FromInt32(bestlen)+uint64(2)+BoolUint64(Uint64FromInt32(bestlen-Int32FromInt32(1)) < l-Uint64FromInt32(1)) { + return -int32(1) + } + Xmemcpy(tls, dst+uintptr(1), src, l-Uint64FromInt32(bestlen)) + v3 = Int32FromInt32(0) + j = v3 + i = v3 + for { + if !(Uint64FromInt32(i) < l-Uint64FromInt32(bestlen)) { + break + } + **(**uint8)(__ccgo_up(dst + uintptr(i))) = (**(**[127]uint8)(__ccgo_up(bp + 4)))[j] + goto _2 + _2: + ; + v3 = j + j = j + 1 + i = i + (Int32FromUint8((**(**[127]uint8)(__ccgo_up(bp + 4)))[v3]) + int32(1)) + } + /* add tail */ + if bestlen != 0 { + v3 = i + i = i + 1 + **(**uint8)(__ccgo_up(dst + uintptr(v3))) = Uint8FromInt32(int32(0xc0) | bestoff>>int32(8)) + v3 = i + i = i + 1 + **(**uint8)(__ccgo_up(dst + uintptr(v3))) = Uint8FromInt32(bestoff) + } else { + v3 = i + i = i + 1 + **(**uint8)(__ccgo_up(dst + uintptr(v3))) = uint8(0) + } + /* save dst pointer */ + if i > int32(2) && lastdnptr != 0 && dnptrs != 0 && **(**uintptr)(__ccgo_up(dnptrs)) != 0 { + for **(**uintptr)(__ccgo_up(p)) != 0 { + p += 8 + } + if p+uintptr(1)*8 < lastdnptr { + v8 = p + p += 8 + **(**uintptr)(__ccgo_up(v8)) = dst + **(**uintptr)(__ccgo_up(p)) = uintptr(0) + } + } + return i +} + +func X__dn_expand(tls *TLS, base uintptr, end uintptr, src uintptr, dest uintptr, space int32) (r int32) { + if __ccgo_strace { + trc("tls=%v base=%v end=%v src=%v dest=%v space=%v, (%v:)", tls, base, end, src, dest, space, origin(2)) + defer func() { trc("-> %v", r) }() + } + var dbegin, dend, p, v3, v4 uintptr + var i, j, len1, v1 int32 + _, _, _, _, _, _, _, _, _ = dbegin, dend, i, j, len1, p, v1, v3, v4 + p = src + dbegin = dest + len1 = -int32(1) + if p == end || space <= 0 { + return -int32(1) + } + if space > int32(254) { + v1 = int32(254) + } else { + v1 = space + } + dend = dest + uintptr(v1) + /* detect reference loop using an iteration counter */ + i = 0 + for { + if !(int64(i) < int64(end)-int64(base)) { + break + } + /* loop invariants: p= int64(end)-int64(base) { + return -int32(1) + } + p = base + uintptr(j) + } else { + if **(**uint8)(__ccgo_up(p)) != 0 { + if dest != dbegin { + v3 = dest + dest = dest + 1 + **(**uint8)(__ccgo_up(v3)) = uint8('.') + } + v3 = p + p = p + 1 + j = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + if int64(j) >= int64(end)-int64(p) || int64(j) >= int64(dend)-int64(dest) { + return -int32(1) + } + for { + v1 = j + j = j - 1 + if !(v1 != 0) { + break + } + v3 = dest + dest = dest + 1 + v4 = p + p = p + 1 + **(**uint8)(__ccgo_up(v3)) = uint8(**(**uint8)(__ccgo_up(v4))) + } + } else { + **(**uint8)(__ccgo_up(dest)) = uint8(0) + if len1 < 0 { + len1 = int32(int64(p+uintptr(1)) - int64(src)) + } + return len1 + } + } + goto _2 + _2: + ; + i = i + int32(2) + } + return -int32(1) +} + +func Xdn_expand(tls *TLS, base uintptr, end uintptr, src uintptr, dest uintptr, space int32) (r int32) { + if __ccgo_strace { + trc("tls=%v base=%v end=%v src=%v dest=%v space=%v, (%v:)", tls, base, end, src, dest, space, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__dn_expand(tls, base, end, src, dest, space) +} + +func Xdn_skipname(tls *TLS, s uintptr, end uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v end=%v, (%v:)", tls, s, end, origin(2)) + defer func() { trc("-> %v", r) }() + } + var p uintptr + _ = p + p = s + for p < end { + if !(**(**uint8)(__ccgo_up(p)) != 0) { + return int32(int64(p) - int64(s) + int64(1)) + } else { + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) >= int32(192) { + if p+uintptr(1) < end { + return int32(int64(p) - int64(s) + int64(2)) + } else { + break + } + } else { + if int64(end)-int64(p) < int64(Int32FromUint8(**(**uint8)(__ccgo_up(p)))+int32(1)) { + break + } else { + p = p + uintptr(Int32FromUint8(**(**uint8)(__ccgo_up(p)))+int32(1)) + } + } + } + } + return -int32(1) +} + +const AI_ADDRCONFIG = 32 +const AI_ALL = 16 +const AI_CANONNAME = 2 +const AI_NUMERICHOST = 4 +const AI_NUMERICSERV = 1024 +const AI_PASSIVE = 1 +const AI_V4MAPPED = 8 +const EAI_AGAIN = -3 +const EAI_BADFLAGS = -1 +const EAI_FAIL = -4 +const EAI_FAMILY = -6 +const EAI_MEMORY = -10 +const EAI_NODATA = -5 +const EAI_NONAME = -2 +const EAI_OVERFLOW = -12 +const EAI_SERVICE = -8 +const EAI_SOCKTYPE = -7 +const EAI_SYSTEM = -11 +const MAXADDRS = 48 +const MAXSERVS = 2 +const NI_DGRAM = 16 +const NI_NAMEREQD = 8 +const NI_NOFQDN = 4 +const NI_NUMERICHOST = 1 +const NI_NUMERICSCOPE = 256 +const NI_NUMERICSERV = 2 + +type Taddrinfo = struct { + Fai_flags int32 + Fai_family int32 + Fai_socktype int32 + Fai_protocol int32 + Fai_addrlen Tsocklen_t + Fai_addr uintptr + Fai_canonname uintptr + Fai_next uintptr +} + +type Tnetent = struct { + Fn_name uintptr + Fn_aliases uintptr + Fn_addrtype int32 + Fn_net Tuint32_t +} + +type Thostent = struct { + Fh_name uintptr + Fh_aliases uintptr + Fh_addrtype int32 + Fh_length int32 + Fh_addr_list uintptr +} + +type Tservent = struct { + Fs_name uintptr + Fs_aliases uintptr + Fs_port int32 + Fs_proto uintptr +} + +type Tprotoent = struct { + Fp_name uintptr + Fp_aliases uintptr + Fp_proto int32 +} + +type Taibuf = struct { + Fai Taddrinfo + Fsa Tsa + Flock [1]int32 + Fslot int16 + Fref int16 +} + +type Taddress = struct { + Ffamily int32 + Fscopeid uint32 + Faddr [16]Tuint8_t + Fsortkey int32 +} + +type Tservice = struct { + Fport Tuint16_t + Fproto uint8 + Fsocktype uint8 +} + +type Tresolvconf = struct { + Fns [3]Taddress + Fnns uint32 + Fattempts uint32 + Fndots uint32 + Ftimeout uint32 +} + +type t__ccgo_fp__X__dns_parse_2 = func(*TLS, uintptr, int32, uintptr, int32, uintptr, int32) int32 + +func X__dns_parse(tls *TLS, r uintptr, rlen int32, __ccgo_fp_callback uintptr, ctx uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v r=%v rlen=%v __ccgo_fp_callback=%v ctx=%v, (%v:)", tls, r, rlen, __ccgo_fp_callback, ctx, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var ancount, len1, qdcount, v1 int32 + var p uintptr + _, _, _, _, _ = ancount, len1, p, qdcount, v1 + if rlen < int32(12) { + return -int32(1) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(r + 3)))&int32(15) != 0 { + return 0 + } + p = r + uintptr(12) + qdcount = Int32FromUint8(**(**uint8)(__ccgo_up(r + 4)))*int32(256) + Int32FromUint8(**(**uint8)(__ccgo_up(r + 5))) + ancount = Int32FromUint8(**(**uint8)(__ccgo_up(r + 6)))*int32(256) + Int32FromUint8(**(**uint8)(__ccgo_up(r + 7))) + for { + v1 = qdcount + qdcount = qdcount - 1 + if !(v1 != 0) { + break + } + for int64(p)-int64(r) < int64(rlen) && uint32(**(**uint8)(__ccgo_up(p)))-uint32(1) < uint32(127) { + p = p + 1 + } + if p > r+uintptr(rlen)-uintptr(6) { + return -int32(1) + } + p = p + uintptr(int32(5)+BoolInt32(!!(**(**uint8)(__ccgo_up(p)) != 0))) + } + for { + v1 = ancount + ancount = ancount - 1 + if !(v1 != 0) { + break + } + for int64(p)-int64(r) < int64(rlen) && uint32(**(**uint8)(__ccgo_up(p)))-uint32(1) < uint32(127) { + p = p + 1 + } + if p > r+uintptr(rlen)-uintptr(12) { + return -int32(1) + } + p = p + uintptr(int32(1)+BoolInt32(!!(**(**uint8)(__ccgo_up(p)) != 0))) + len1 = Int32FromUint8(**(**uint8)(__ccgo_up(p + 8)))*int32(256) + Int32FromUint8(**(**uint8)(__ccgo_up(p + 9))) + if int64(len1+int32(10)) > int64(r+uintptr(rlen))-int64(p) { + return -int32(1) + } + if (*(*func(*TLS, uintptr, int32, uintptr, int32, uintptr, int32) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_callback})))(tls, ctx, Int32FromUint8(**(**uint8)(__ccgo_up(p + 1))), p+uintptr(10), len1, r, rlen) < 0 { + return -int32(1) + } + p = p + uintptr(int32(10)+len1) + } + return 0 +} + +type Tsa = struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte +} + +func Xsethostent(tls *TLS, x int32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + } +} + +func Xgethostent(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(0) +} + +func Xgetnetent(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(0) +} + +func Xendhostent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } +} + +func Xendnetent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + Xendhostent(tls) +} + +func Xsetnetent(tls *TLS, x int32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + } + Xsethostent(tls, x) +} + +const ARPD_FLUSH = 3 +const ARPD_LOOKUP = 2 +const ARPD_UPDATE = 1 +const ARPHRD_6LOWPAN = 825 +const ARPHRD_ADAPT = 264 +const ARPHRD_APPLETLK = 8 +const ARPHRD_ARCNET = 7 +const ARPHRD_ASH = 781 +const ARPHRD_ATM = 19 +const ARPHRD_AX25 = 3 +const ARPHRD_BIF = 775 +const ARPHRD_CAIF = 822 +const ARPHRD_CAN = 280 +const ARPHRD_CHAOS = 5 +const ARPHRD_CISCO = 513 +const ARPHRD_CSLIP = 257 +const ARPHRD_CSLIP6 = 259 +const ARPHRD_DDCMP = 517 +const ARPHRD_DLCI = 15 +const ARPHRD_ECONET = 782 +const ARPHRD_EETHER = 2 +const ARPHRD_ETHER = 1 +const ARPHRD_EUI64 = 27 +const ARPHRD_FCAL = 785 +const ARPHRD_FCFABRIC = 787 +const ARPHRD_FCPL = 786 +const ARPHRD_FCPP = 784 +const ARPHRD_FDDI = 774 +const ARPHRD_FRAD = 770 +const ARPHRD_HDLC = 513 +const ARPHRD_HIPPI = 780 +const ARPHRD_HWX25 = 272 +const ARPHRD_IEEE1394 = 24 +const ARPHRD_IEEE802 = 6 +const ARPHRD_IEEE80211 = 801 +const ARPHRD_IEEE80211_PRISM = 802 +const ARPHRD_IEEE80211_RADIOTAP = 803 +const ARPHRD_IEEE802154 = 804 +const ARPHRD_IEEE802154_MONITOR = 805 +const ARPHRD_IEEE802_TR = 800 +const ARPHRD_INFINIBAND = 32 +const ARPHRD_IP6GRE = 823 +const ARPHRD_IPDDP = 777 +const ARPHRD_IPGRE = 778 +const ARPHRD_IRDA = 783 +const ARPHRD_LAPB = 516 +const ARPHRD_LOCALTLK = 773 +const ARPHRD_LOOPBACK = 772 +const ARPHRD_METRICOM = 23 +const ARPHRD_NETLINK = 824 +const ARPHRD_NETROM = 0 +const ARPHRD_NONE = 65534 +const ARPHRD_PHONET = 820 +const ARPHRD_PHONET_PIPE = 821 +const ARPHRD_PIMREG = 779 +const ARPHRD_PPP = 512 +const ARPHRD_PRONET = 4 +const ARPHRD_RAWHDLC = 518 +const ARPHRD_RAWIP = 519 +const ARPHRD_ROSE = 270 +const ARPHRD_RSRVD = 260 +const ARPHRD_SIT = 776 +const ARPHRD_SKIP = 771 +const ARPHRD_SLIP = 256 +const ARPHRD_SLIP6 = 258 +const ARPHRD_TUNNEL = 768 +const ARPHRD_TUNNEL6 = 769 +const ARPHRD_VOID = 65535 +const ARPHRD_VSOCKMON = 826 +const ARPHRD_X25 = 271 +const ARPOP_InREPLY = 9 +const ARPOP_InREQUEST = 8 +const ARPOP_NAK = 10 +const ARPOP_REPLY = 2 +const ARPOP_REQUEST = 1 +const ARPOP_RREPLY = 4 +const ARPOP_RREQUEST = 3 +const ATF_COM = 2 +const ATF_DONTPUB = 64 +const ATF_MAGIC = 128 +const ATF_NETMASK = 32 +const ATF_PERM = 4 +const ATF_PUBL = 8 +const ATF_USETRAILERS = 16 +const ETHERMIN = 46 +const ETHERMTU = 1500 +const ETHERTYPE_AARP = 33011 +const ETHERTYPE_ARP = 2054 +const ETHERTYPE_AT = 32923 +const ETHERTYPE_IP = 2048 +const ETHERTYPE_IPV6 = 34525 +const ETHERTYPE_IPX = 33079 +const ETHERTYPE_LOOPBACK = 36864 +const ETHERTYPE_NTRAILER = 16 +const ETHERTYPE_PUP = 512 +const ETHERTYPE_REVARP = 32821 +const ETHERTYPE_SPRITE = 1280 +const ETHERTYPE_TRAIL = 4096 +const ETHERTYPE_VLAN = 33024 +const ETHER_ADDR_LEN = 6 +const ETHER_CRC_LEN = 4 +const ETHER_HDR_LEN = 14 +const ETHER_MAX_LEN = 1518 +const ETHER_MIN_LEN = 64 +const ETHER_TYPE_LEN = 2 +const ETH_ALEN = 6 +const ETH_DATA_LEN = 1500 +const ETH_FCS_LEN = 4 +const ETH_FRAME_LEN = 1514 +const ETH_HLEN = 14 +const ETH_MAX_MTU = 65535 +const ETH_MIN_MTU = 68 +const ETH_P_1588 = 35063 +const ETH_P_8021AD = 34984 +const ETH_P_8021AH = 35047 +const ETH_P_8021Q = 33024 +const ETH_P_80221 = 35095 +const ETH_P_802_2 = 4 +const ETH_P_802_3 = 1 +const ETH_P_802_3_MIN = 1536 +const ETH_P_802_EX1 = 34997 +const ETH_P_AARP = 33011 +const ETH_P_AF_IUCV = 64507 +const ETH_P_ALL = 3 +const ETH_P_AOE = 34978 +const ETH_P_ARCNET = 26 +const ETH_P_ARP = 2054 +const ETH_P_ATALK = 32923 +const ETH_P_ATMFATE = 34948 +const ETH_P_ATMMPOA = 34892 +const ETH_P_AX25 = 2 +const ETH_P_BATMAN = 17157 +const ETH_P_BPQ = 2303 +const ETH_P_CAIF = 247 +const ETH_P_CAN = 12 +const ETH_P_CANFD = 13 +const ETH_P_CFM = 35074 +const ETH_P_CONTROL = 22 +const ETH_P_CUST = 24582 +const ETH_P_DDCMP = 6 +const ETH_P_DEC = 24576 +const ETH_P_DIAG = 24581 +const ETH_P_DNA_DL = 24577 +const ETH_P_DNA_RC = 24578 +const ETH_P_DNA_RT = 24579 +const ETH_P_DSA = 27 +const ETH_P_DSA_8021Q = 56027 +const ETH_P_ECONET = 24 +const ETH_P_EDSA = 56026 +const ETH_P_ERSPAN = 35006 +const ETH_P_ERSPAN2 = 8939 +const ETH_P_FCOE = 35078 +const ETH_P_FIP = 35092 +const ETH_P_HDLC = 25 +const ETH_P_HSR = 35119 +const ETH_P_IBOE = 35093 +const ETH_P_IEEE802154 = 246 +const ETH_P_IEEEPUP = 2560 +const ETH_P_IEEEPUPAT = 2561 +const ETH_P_IFE = 60734 +const ETH_P_IP = 2048 +const ETH_P_IPV6 = 34525 +const ETH_P_IPX = 33079 +const ETH_P_IRDA = 23 +const ETH_P_LAT = 24580 +const ETH_P_LINK_CTL = 34924 +const ETH_P_LLDP = 35020 +const ETH_P_LOCALTALK = 9 +const ETH_P_LOOP = 96 +const ETH_P_LOOPBACK = 36864 +const ETH_P_MACSEC = 35045 +const ETH_P_MAP = 249 +const ETH_P_MOBITEX = 21 +const ETH_P_MPLS_MC = 34888 +const ETH_P_MPLS_UC = 34887 +const ETH_P_MRP = 35043 +const ETH_P_MVRP = 35061 +const ETH_P_NCSI = 35064 +const ETH_P_NSH = 35151 +const ETH_P_PAE = 34958 +const ETH_P_PAUSE = 34824 +const ETH_P_PHONET = 245 +const ETH_P_PPPTALK = 16 +const ETH_P_PPP_DISC = 34915 +const ETH_P_PPP_MP = 8 +const ETH_P_PPP_SES = 34916 +const ETH_P_PREAUTH = 35015 +const ETH_P_PRP = 35067 +const ETH_P_PUP = 512 +const ETH_P_PUPAT = 513 +const ETH_P_QINQ1 = 37120 +const ETH_P_QINQ2 = 37376 +const ETH_P_QINQ3 = 37632 +const ETH_P_RARP = 32821 +const ETH_P_SCA = 24583 +const ETH_P_SLOW = 34825 +const ETH_P_SNAP = 5 +const ETH_P_TDLS = 35085 +const ETH_P_TEB = 25944 +const ETH_P_TIPC = 35018 +const ETH_P_TRAILER = 28 +const ETH_P_TR_802_2 = 17 +const ETH_P_TSN = 8944 +const ETH_P_WAN_PPP = 7 +const ETH_P_WCCP = 34878 +const ETH_P_X25 = 2053 +const ETH_P_XDSA = 248 +const ETH_TLEN = 2 +const ETH_ZLEN = 60 +const MAX_ADDR_LEN = 7 +const __UAPI_DEF_ETHHDR = 0 + +type Tethhdr = struct { + Fh_dest [6]Tuint8_t + Fh_source [6]Tuint8_t + Fh_proto Tuint16_t +} + +type Tether_addr = struct { + Fether_addr_octet [6]Tuint8_t +} + +type Tether_header = struct { + Fether_dhost [6]Tuint8_t + Fether_shost [6]Tuint8_t + Fether_type Tuint16_t +} + +type Tarphdr = struct { + Far_hrd Tuint16_t + Far_pro Tuint16_t + Far_hln Tuint8_t + Far_pln Tuint8_t + Far_op Tuint16_t +} + +type Tarpreq = struct { + Farp_pa Tsockaddr + Farp_ha Tsockaddr + Farp_flags int32 + Farp_netmask Tsockaddr + Farp_dev [16]uint8 +} + +type Tarpreq_old = struct { + Farp_pa Tsockaddr + Farp_ha Tsockaddr + Farp_flags int32 + Farp_netmask Tsockaddr +} + +type Tarpd_request = struct { + Freq uint16 + Fip Tuint32_t + Fdev uint64 + Fstamp uint64 + Fupdated uint64 + Fha [7]uint8 +} + +type Tether_arp = struct { + Fea_hdr Tarphdr + Farp_sha [6]Tuint8_t + Farp_spa [4]Tuint8_t + Farp_tha [6]Tuint8_t + Farp_tpa [4]Tuint8_t +} + +func Xether_aton_r(tls *TLS, x uintptr, p_a uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v x=%v p_a=%v, (%v:)", tls, x, p_a, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ii int32 + var n uint64 + var _ /* a at bp+0 */ Tether_addr + var _ /* y at bp+8 */ uintptr + _, _ = ii, n + ii = 0 + for { + if !(ii < int32(6)) { + break + } + if ii != 0 { + if Int32FromUint8(**(**uint8)(__ccgo_up(x))) != int32(':') { + return uintptr(0) + } else { + x = x + 1 + } + } + n = Xstrtoul(tls, x, bp+8, int32(16)) + x = **(**uintptr)(__ccgo_up(bp + 8)) + if n > uint64(0xFF) { + return uintptr(0) + } /* bad byte */ + **(**Tuint8_t)(__ccgo_up(bp + uintptr(ii))) = uint8(n) + goto _1 + _1: + ; + ii = ii + 1 + } + if Int32FromUint8(**(**uint8)(__ccgo_up(x))) != 0 { + return uintptr(0) + } /* bad format */ + **(**Tether_addr)(__ccgo_up(p_a)) = **(**Tether_addr)(__ccgo_up(bp)) + return p_a +} + +func Xether_aton(tls *TLS, x uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xether_aton_r(tls, x, uintptr(unsafe.Pointer(&_a))) +} + +var _a Tether_addr + +func Xether_ntoa_r(tls *TLS, p_a uintptr, x uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v p_a=%v x=%v, (%v:)", tls, p_a, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ii int32 + var y, v2 uintptr + _, _, _ = ii, y, v2 + y = x + ii = 0 + for { + if !(ii < int32(6)) { + break + } + if ii == 0 { + v2 = __ccgo_ts + 971 + } else { + v2 = __ccgo_ts + 976 + } + x = x + uintptr(Xsprintf(tls, x, v2, VaList(bp+8, Int32FromUint8(**(**Tuint8_t)(__ccgo_up(p_a + uintptr(ii))))))) + goto _1 + _1: + ; + ii = ii + 1 + } + return y +} + +func Xether_ntoa(tls *TLS, p_a uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v p_a=%v, (%v:)", tls, p_a, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xether_ntoa_r(tls, p_a, uintptr(unsafe.Pointer(&_x))) +} + +var _x [18]uint8 + +func Xether_line(tls *TLS, l uintptr, e uintptr, hostname uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v l=%v e=%v hostname=%v, (%v:)", tls, l, e, hostname, origin(2)) + defer func() { trc("-> %v", r) }() + } + return -int32(1) +} + +func Xether_ntohost(tls *TLS, hostname uintptr, e uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v hostname=%v e=%v, (%v:)", tls, hostname, e, origin(2)) + defer func() { trc("-> %v", r) }() + } + return -int32(1) +} + +func Xether_hostton(tls *TLS, hostname uintptr, e uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v hostname=%v e=%v, (%v:)", tls, hostname, e, origin(2)) + defer func() { trc("-> %v", r) }() + } + return -int32(1) +} + +func Xfreeaddrinfo(tls *TLS, p uintptr) { + if __ccgo_strace { + trc("tls=%v p=%v, (%v:)", tls, p, origin(2)) + } + var b, v2 uintptr + var cnt Tsize_t + _, _, _ = b, cnt, v2 + cnt = uint64(1) + for { + if !((*Taddrinfo)(unsafe.Pointer(p)).Fai_next != 0) { + break + } + goto _1 + _1: + ; + cnt = cnt + 1 + p = (*Taddrinfo)(unsafe.Pointer(p)).Fai_next + } + b = p - uintptr(uint64(UintptrFromInt32(0))) + b = b - uintptr((*Taibuf)(unsafe.Pointer(b)).Fslot)*88 + ___lock(tls, b+76) + v2 = b + 82 + *(*int16)(unsafe.Pointer(v2)) = int16(uint64(*(*int16)(unsafe.Pointer(v2))) - cnt) + if !(*(*int16)(unsafe.Pointer(v2)) != 0) { + Xfree(tls, b) + } else { + ___unlock(tls, b+76) + } +} + +var _msgs = [252]uint8{'I', 'n', 'v', 'a', 'l', 'i', 'd', ' ', 'f', 'l', 'a', 'g', 's', 0, 'N', 'a', 'm', 'e', ' ', 'd', 'o', 'e', 's', ' ', 'n', 'o', 't', ' ', 'r', 'e', 's', 'o', 'l', 'v', 'e', 0, 'T', 'r', 'y', ' ', 'a', 'g', 'a', 'i', 'n', 0, 'N', 'o', 'n', '-', 'r', 'e', 'c', 'o', 'v', 'e', 'r', 'a', 'b', 'l', 'e', ' ', 'e', 'r', 'r', 'o', 'r', 0, 'N', 'a', 'm', 'e', ' ', 'h', 'a', 's', ' ', 'n', 'o', ' ', 'u', 's', 'a', 'b', 'l', 'e', ' ', 'a', 'd', 'd', 'r', 'e', 's', 's', 0, 'U', 'n', 'r', 'e', 'c', 'o', 'g', 'n', 'i', 'z', 'e', 'd', ' ', 'a', 'd', 'd', 'r', 'e', 's', 's', ' ', 'f', 'a', 'm', 'i', 'l', 'y', ' ', 'o', 'r', ' ', 'i', 'n', 'v', 'a', 'l', 'i', 'd', ' ', 'l', 'e', 'n', 'g', 't', 'h', 0, 'U', 'n', 'r', 'e', 'c', 'o', 'g', 'n', 'i', 'z', 'e', 'd', ' ', 's', 'o', 'c', 'k', 'e', 't', ' ', 't', 'y', 'p', 'e', 0, 'U', 'n', 'r', 'e', 'c', 'o', 'g', 'n', 'i', 'z', 'e', 'd', ' ', 's', 'e', 'r', 'v', 'i', 'c', 'e', 0, 'U', 'n', 'k', 'n', 'o', 'w', 'n', ' ', 'e', 'r', 'r', 'o', 'r', 0, 'O', 'u', 't', ' ', 'o', 'f', ' ', 'm', 'e', 'm', 'o', 'r', 'y', 0, 'S', 'y', 's', 't', 'e', 'm', ' ', 'e', 'r', 'r', 'o', 'r', 0, 'O', 'v', 'e', 'r', 'f', 'l', 'o', 'w', 0, 0, 'U', 'n', 'k', 'n', 'o', 'w', 'n', ' ', 'e', 'r', 'r', 'o', 'r'} + +func Xgai_strerror(tls *TLS, ecode int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v ecode=%v, (%v:)", tls, ecode, origin(2)) + defer func() { trc("-> %v", r) }() + } + var s uintptr + _ = s + s = uintptr(unsafe.Pointer(&_msgs)) + ecode = ecode + 1 + for { + if !(ecode != 0 && **(**uint8)(__ccgo_up(s)) != 0) { + break + } + for { + if !(**(**uint8)(__ccgo_up(s)) != 0) { + break + } + goto _2 + _2: + ; + s = s + 1 + } + goto _1 + _1: + ; + ecode = ecode + 1 + s = s + 1 + } + if !(**(**uint8)(__ccgo_up(s)) != 0) { + s = s + 1 + } + return X__lctrans_cur(tls, s) +} + +func Xgetaddrinfo(tls *TLS, host uintptr, serv uintptr, hint uintptr, res uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v host=%v serv=%v hint=%v res=%v, (%v:)", tls, host, serv, hint, res, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(1616) + defer tls.Free(1616) + var canon_len, family, flags, i, j, k, mask, naddrs, nais, no_family, nservs, proto, r, s, saved_errno, socktype, v3 int32 + var out, outcanon uintptr + var ta [2]uintptr + var tf [2]int32 + var tl [2]Tsocklen_t + var v5 uint64 + var _ /* addrs at bp+8 */ [48]Taddress + var _ /* canon at bp+1352 */ [256]uint8 + var _ /* cs at bp+1608 */ int32 + var _ /* ports at bp+0 */ [2]Tservice + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = canon_len, family, flags, i, j, k, mask, naddrs, nais, no_family, nservs, out, outcanon, proto, r, s, saved_errno, socktype, ta, tf, tl, v3, v5 + family = PF_UNSPEC + flags = 0 + proto = 0 + socktype = 0 + no_family = 0 + if !(host != 0) && !(serv != 0) { + return -int32(2) + } + if hint != 0 { + family = (*Taddrinfo)(unsafe.Pointer(hint)).Fai_family + flags = (*Taddrinfo)(unsafe.Pointer(hint)).Fai_flags + proto = (*Taddrinfo)(unsafe.Pointer(hint)).Fai_protocol + socktype = (*Taddrinfo)(unsafe.Pointer(hint)).Fai_socktype + mask = Int32FromInt32(AI_PASSIVE) | Int32FromInt32(AI_CANONNAME) | Int32FromInt32(AI_NUMERICHOST) | Int32FromInt32(AI_V4MAPPED) | Int32FromInt32(AI_ALL) | Int32FromInt32(AI_ADDRCONFIG) | Int32FromInt32(AI_NUMERICSERV) + if flags&mask != flags { + return -int32(1) + } + switch family { + case int32(PF_INET): + fallthrough + case int32(PF_INET6): + fallthrough + case PF_UNSPEC: + default: + return -int32(6) + } + } + if flags&int32(AI_ADDRCONFIG) != 0 { + tf = [2]int32{ + 0: int32(PF_INET), + 1: int32(PF_INET6), + } + ta = [2]uintptr{ + 0: uintptr(unsafe.Pointer(&_lo4)), + 1: uintptr(unsafe.Pointer(&_lo6)), + } + tl = [2]Tsocklen_t{ + 0: uint32(16), + 1: uint32(28), + } + i = 0 + for { + if !(i < int32(2)) { + break + } + if family == tf[int32(1)-i] { + goto _1 + } + s = Xsocket(tls, tf[i], Int32FromInt32(SOCK_CLOEXEC)|Int32FromInt32(SOCK_DGRAM), int32(IPPROTO_UDP)) + if s >= 0 { + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp+1608) + r = Xconnect(tls, s, ta[i], tl[i]) + saved_errno = **(**int32)(__ccgo_up(X__errno_location(tls))) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 1608)), uintptr(0)) + Xclose(tls, s) + if !(r != 0) { + goto _1 + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = saved_errno + } + switch **(**int32)(__ccgo_up(X__errno_location(tls))) { + case int32(EADDRNOTAVAIL): + fallthrough + case int32(EAFNOSUPPORT): + fallthrough + case int32(EHOSTUNREACH): + fallthrough + case int32(ENETDOWN): + fallthrough + case int32(ENETUNREACH): + default: + return -int32(11) + } + if family == tf[i] { + no_family = int32(1) + } + family = tf[int32(1)-i] + goto _1 + _1: + ; + i = i + 1 + } + } + nservs = X__lookup_serv(tls, bp, serv, proto, socktype, flags) + if nservs < 0 { + return nservs + } + naddrs = X__lookup_name(tls, bp+8, bp+1352, host, family, flags) + if naddrs < 0 { + return naddrs + } + if no_family != 0 { + return -int32(5) + } + nais = nservs * naddrs + canon_len = Int32FromUint64(_strlen(tls, bp+1352)) + out = Xcalloc(tls, uint64(1), Uint64FromInt32(nais)*uint64(88)+Uint64FromInt32(canon_len)+uint64(1)) + if !(out != 0) { + return -int32(10) + } + if canon_len != 0 { + outcanon = out + uintptr(nais)*88 + Xmemcpy(tls, outcanon, bp+1352, Uint64FromInt32(canon_len+int32(1))) + } else { + outcanon = uintptr(0) + } + v3 = Int32FromInt32(0) + i = v3 + k = v3 + for { + if !(i < naddrs) { + break + } + j = 0 + for { + if !(j < nservs) { + break + } + (**(**Taibuf)(__ccgo_up(out + uintptr(k)*88))).Fslot = int16(k) + if (**(**[48]Taddress)(__ccgo_up(bp + 8)))[i].Ffamily == int32(PF_INET) { + v5 = uint64(16) + } else { + v5 = uint64(28) + } + (**(**Taibuf)(__ccgo_up(out + uintptr(k)*88))).Fai = Taddrinfo{ + Fai_family: (**(**[48]Taddress)(__ccgo_up(bp + 8)))[i].Ffamily, + Fai_socktype: Int32FromUint8((**(**[2]Tservice)(__ccgo_up(bp)))[j].Fsocktype), + Fai_protocol: Int32FromUint8((**(**[2]Tservice)(__ccgo_up(bp)))[j].Fproto), + Fai_addrlen: uint32(v5), + Fai_addr: out + uintptr(k)*88 + 48, + Fai_canonname: outcanon, + } + if k != 0 { + (**(**Taibuf)(__ccgo_up(out + uintptr(k-int32(1))*88))).Fai.Fai_next = out + uintptr(k)*88 + } + switch (**(**[48]Taddress)(__ccgo_up(bp + 8)))[i].Ffamily { + case int32(PF_INET): + *(*Tsa_family_t)(unsafe.Pointer(out + uintptr(k)*88 + 48)) = uint16(PF_INET) + *(*Tin_port_t)(unsafe.Pointer(out + uintptr(k)*88 + 48 + 2)) = Xhtons(tls, (**(**[2]Tservice)(__ccgo_up(bp)))[j].Fport) + Xmemcpy(tls, out+uintptr(k)*88+48+4, bp+8+uintptr(i)*28+8, uint64(4)) + case int32(PF_INET6): + *(*Tsa_family_t)(unsafe.Pointer(out + uintptr(k)*88 + 48)) = uint16(PF_INET6) + *(*Tin_port_t)(unsafe.Pointer(out + uintptr(k)*88 + 48 + 2)) = Xhtons(tls, (**(**[2]Tservice)(__ccgo_up(bp)))[j].Fport) + *(*Tuint32_t)(unsafe.Pointer(out + uintptr(k)*88 + 48 + 24)) = (**(**[48]Taddress)(__ccgo_up(bp + 8)))[i].Fscopeid + Xmemcpy(tls, out+uintptr(k)*88+48+8, bp+8+uintptr(i)*28+8, uint64(16)) + break + } + goto _4 + _4: + ; + j = j + 1 + k = k + 1 + } + goto _2 + _2: + ; + i = i + 1 + } + (**(**Taibuf)(__ccgo_up(out))).Fref = int16(nais) + **(**uintptr)(__ccgo_up(res)) = out + return 0 +} + +/* Define the "an address is configured" condition for address + * families via ability to create a socket for the family plus + * routability of the loopback address for the family. */ +var _lo4 = Tsockaddr_in{ + Fsin_family: uint16(PF_INET), + Fsin_port: uint16(65535), + Fsin_addr: Tin_addr{ + Fs_addr: uint32(0x0100007f), + }, +} + +var _lo6 = Tsockaddr_in6{ + Fsin6_family: uint16(PF_INET6), + Fsin6_port: uint16(65535), + Fsin6_addr: Tin6_addr{ + F__in6_union: *(*struct { + F__s6_addr16 [0][8]Tuint16_t + F__s6_addr32 [0][4]Tuint32_t + F__s6_addr [16]Tuint8_t + })(unsafe.Pointer(&[16]Tuint8_t{ + 15: uint8(1), + })), + }, +} + +const EAI_ADDRFAMILY = -9 +const EAI_ALLDONE = -103 +const EAI_CANCELED = -101 +const EAI_IDN_ENCODE = -105 +const EAI_INPROGRESS = -100 +const EAI_INTR = -104 +const EAI_NOTCANCELED = -102 +const HOST_NOT_FOUND = 1 +const MCAST_BLOCK_SOURCE = 43 +const MCAST_EXCLUDE = 0 +const MCAST_INCLUDE = 1 +const MCAST_JOIN_GROUP = 42 +const MCAST_JOIN_SOURCE_GROUP = 46 +const MCAST_LEAVE_GROUP = 45 +const MCAST_LEAVE_SOURCE_GROUP = 47 +const MCAST_MSFILTER = 48 +const MCAST_UNBLOCK_SOURCE = 44 +const NI_MAXHOST = 255 +const NI_MAXSERV = 32 +const NO_ADDRESS = 4 +const NO_DATA = 4 +const NO_RECOVERY = 3 +const TRY_AGAIN = 2 +const h_errno = 0 + +type Tip_mreq = struct { + Fimr_multiaddr Tin_addr + Fimr_interface Tin_addr +} + +type Tip_mreqn = struct { + Fimr_multiaddr Tin_addr + Fimr_address Tin_addr + Fimr_ifindex int32 +} + +type Tip_mreq_source = struct { + Fimr_multiaddr Tin_addr + Fimr_interface Tin_addr + Fimr_sourceaddr Tin_addr +} + +type Tip_msfilter = struct { + Fimsf_multiaddr Tin_addr + Fimsf_interface Tin_addr + Fimsf_fmode Tuint32_t + Fimsf_numsrc Tuint32_t + Fimsf_slist [1]Tin_addr +} + +type Tgroup_req = struct { + Fgr_interface Tuint32_t + Fgr_group Tsockaddr_storage +} + +type Tgroup_source_req = struct { + Fgsr_interface Tuint32_t + Fgsr_group Tsockaddr_storage + Fgsr_source Tsockaddr_storage +} + +type Tgroup_filter = struct { + Fgf_interface Tuint32_t + Fgf_group Tsockaddr_storage + Fgf_fmode Tuint32_t + Fgf_numsrc Tuint32_t + Fgf_slist [1]Tsockaddr_storage +} + +type Tin_pktinfo = struct { + Fipi_ifindex int32 + Fipi_spec_dst Tin_addr + Fipi_addr Tin_addr +} + +type Tin6_pktinfo = struct { + Fipi6_addr Tin6_addr + Fipi6_ifindex uint32 +} + +type Tip6_mtuinfo = struct { + Fip6m_addr Tsockaddr_in6 + Fip6m_mtu Tuint32_t +} + +func Xgethostbyaddr(tls *TLS, a uintptr, l Tsocklen_t, af int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v a=%v l=%v af=%v, (%v:)", tls, a, l, af, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var err int32 + var size Tsize_t + var _ /* res at bp+0 */ uintptr + _, _ = err, size + size = uint64(63) + for cond := true; cond; cond = err == int32(ERANGE) { + Xfree(tls, _h) + size = size + (size + uint64(1)) + _h = Xmalloc(tls, size) + if !(_h != 0) { + **(**int32)(__ccgo_up(X__h_errno_location(tls))) = int32(NO_RECOVERY) + return uintptr(0) + } + err = Xgethostbyaddr_r(tls, a, l, af, _h, _h+UintptrFromInt32(1)*32, size-uint64(32), bp, X__h_errno_location(tls)) + } + return **(**uintptr)(__ccgo_up(bp)) +} + +var _h uintptr + +func Xgethostbyaddr_r(tls *TLS, a uintptr, l Tsocklen_t, af int32, h uintptr, buf uintptr, buflen Tsize_t, res uintptr, err uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v a=%v l=%v af=%v h=%v buf=%v buflen=%v res=%v err=%v, (%v:)", tls, a, l, af, h, buf, buflen, res, err, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var i int32 + var sl Tsocklen_t + var v1 uint64 + var _ /* sa at bp+0 */ struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + } + _, _, _ = i, sl, v1 + *(*struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + })(unsafe.Pointer(bp)) = struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + }{} + *(*uint16)(unsafe.Pointer(bp)) = Uint16FromInt32(af) + if af == int32(PF_INET6) { + v1 = uint64(28) + } else { + v1 = uint64(16) + } + sl = uint32(v1) + **(**uintptr)(__ccgo_up(res)) = uintptr(0) + /* Load address argument into sockaddr structure */ + if af == int32(PF_INET6) && l == uint32(16) { + Xmemcpy(tls, bp+8, a, uint64(16)) + } else { + if af == int32(PF_INET) && l == uint32(4) { + Xmemcpy(tls, bp+4, a, uint64(4)) + } else { + **(**int32)(__ccgo_up(err)) = int32(NO_RECOVERY) + return int32(EINVAL) + } + } + /* Align buffer and check for space for pointers and ip address */ + i = Int32FromUint64(uint64(buf) & (Uint64FromInt64(8) - Uint64FromInt32(1))) + if !(i != 0) { + i = int32(8) + } + if buflen <= Uint64FromInt32(5)*Uint64FromInt64(8)-Uint64FromInt32(i)+uint64(l) { + return int32(ERANGE) + } + buf = buf + uintptr(uint64(8)-Uint64FromInt32(i)) + buflen = buflen - (Uint64FromInt32(5)*Uint64FromInt64(8) - Uint64FromInt32(i) + uint64(l)) + (*Thostent)(unsafe.Pointer(h)).Fh_addr_list = buf + buf = buf + uintptr(Uint64FromInt32(2)*Uint64FromInt64(8)) + (*Thostent)(unsafe.Pointer(h)).Fh_aliases = buf + buf = buf + uintptr(Uint64FromInt32(2)*Uint64FromInt64(8)) + **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_addr_list)) = buf + Xmemcpy(tls, **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_addr_list)), a, uint64(l)) + buf = buf + uintptr(l) + **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_addr_list + 1*8)) = uintptr(0) + **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_aliases)) = buf + **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_aliases + 1*8)) = uintptr(0) + switch Xgetnameinfo(tls, bp, sl, buf, uint32(buflen), uintptr(0), uint32(0), 0) { + case -int32(3): + **(**int32)(__ccgo_up(err)) = int32(TRY_AGAIN) + return int32(EAGAIN) + case -int32(12): + return int32(ERANGE) + default: + fallthrough + case -int32(4): + **(**int32)(__ccgo_up(err)) = int32(NO_RECOVERY) + return int32(EBADMSG) + case -int32(11): + **(**int32)(__ccgo_up(err)) = int32(NO_RECOVERY) + return **(**int32)(__ccgo_up(X__errno_location(tls))) + case 0: + break + } + (*Thostent)(unsafe.Pointer(h)).Fh_addrtype = af + (*Thostent)(unsafe.Pointer(h)).Fh_length = Int32FromUint32(l) + (*Thostent)(unsafe.Pointer(h)).Fh_name = **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_aliases)) + **(**uintptr)(__ccgo_up(res)) = h + return 0 +} + +func Xgethostbyname(tls *TLS, name uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgethostbyname2(tls, name, int32(PF_INET)) +} + +func Xgethostbyname2(tls *TLS, name uintptr, af int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v af=%v, (%v:)", tls, name, af, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var err int32 + var size Tsize_t + var _ /* res at bp+0 */ uintptr + _, _ = err, size + size = uint64(63) + for cond := true; cond; cond = err == int32(ERANGE) { + Xfree(tls, _h1) + size = size + (size + uint64(1)) + _h1 = Xmalloc(tls, size) + if !(_h1 != 0) { + **(**int32)(__ccgo_up(X__h_errno_location(tls))) = int32(NO_RECOVERY) + return uintptr(0) + } + err = Xgethostbyname2_r(tls, name, af, _h1, _h1+UintptrFromInt32(1)*32, size-uint64(32), bp, X__h_errno_location(tls)) + } + return **(**uintptr)(__ccgo_up(bp)) +} + +var _h1 uintptr + +func Xgethostbyname2_r(tls *TLS, name uintptr, af int32, h uintptr, buf uintptr, buflen Tsize_t, res uintptr, err uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v af=%v h=%v buf=%v buflen=%v res=%v err=%v, (%v:)", tls, name, af, h, buf, buflen, res, err, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(1600) + defer tls.Free(1600) + var align, need Tsize_t + var cnt, i, v1 int32 + var v3 uintptr + var _ /* addrs at bp+0 */ [48]Taddress + var _ /* canon at bp+1344 */ [256]uint8 + _, _, _, _, _, _ = align, cnt, i, need, v1, v3 + **(**uintptr)(__ccgo_up(res)) = uintptr(0) + cnt = X__lookup_name(tls, bp, bp+1344, name, af, int32(AI_CANONNAME)) + if cnt < 0 { + switch cnt { + case -int32(2): + **(**int32)(__ccgo_up(err)) = int32(HOST_NOT_FOUND) + return 0 + case -int32(5): + **(**int32)(__ccgo_up(err)) = int32(NO_DATA) + return 0 + case -int32(3): + **(**int32)(__ccgo_up(err)) = int32(TRY_AGAIN) + return int32(EAGAIN) + default: + fallthrough + case -int32(4): + **(**int32)(__ccgo_up(err)) = int32(NO_RECOVERY) + return int32(EBADMSG) + case -int32(11): + **(**int32)(__ccgo_up(err)) = int32(NO_RECOVERY) + return **(**int32)(__ccgo_up(X__errno_location(tls))) + } + } + (*Thostent)(unsafe.Pointer(h)).Fh_addrtype = af + if af == int32(PF_INET6) { + v1 = int32(16) + } else { + v1 = int32(4) + } + (*Thostent)(unsafe.Pointer(h)).Fh_length = v1 + /* Align buffer */ + align = -uint64(buf) & (Uint64FromInt64(8) - Uint64FromInt32(1)) + need = Uint64FromInt32(4) * Uint64FromInt64(8) + need = need + Uint64FromInt32(cnt+Int32FromInt32(1))*(uint64(8)+Uint64FromInt32((*Thostent)(unsafe.Pointer(h)).Fh_length)) + need = need + (_strlen(tls, name) + uint64(1)) + need = need + (_strlen(tls, bp+1344) + uint64(1)) + need = need + align + if need > buflen { + return int32(ERANGE) + } + buf = buf + uintptr(align) + (*Thostent)(unsafe.Pointer(h)).Fh_aliases = buf + buf = buf + uintptr(Uint64FromInt32(3)*Uint64FromInt64(8)) + (*Thostent)(unsafe.Pointer(h)).Fh_addr_list = buf + buf = buf + uintptr(Uint64FromInt32(cnt+Int32FromInt32(1))*uint64(8)) + i = 0 + for { + if !(i < cnt) { + break + } + **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_addr_list + uintptr(i)*8)) = buf + buf = buf + uintptr((*Thostent)(unsafe.Pointer(h)).Fh_length) + Xmemcpy(tls, **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_addr_list + uintptr(i)*8)), bp+uintptr(i)*28+8, Uint64FromInt32((*Thostent)(unsafe.Pointer(h)).Fh_length)) + goto _2 + _2: + ; + i = i + 1 + } + **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_addr_list + uintptr(i)*8)) = uintptr(0) + v3 = buf + **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_aliases)) = v3 + (*Thostent)(unsafe.Pointer(h)).Fh_name = v3 + Xstrcpy(tls, (*Thostent)(unsafe.Pointer(h)).Fh_name, bp+1344) + buf = buf + uintptr(_strlen(tls, (*Thostent)(unsafe.Pointer(h)).Fh_name)+uint64(1)) + if Xstrcmp(tls, (*Thostent)(unsafe.Pointer(h)).Fh_name, name) != 0 { + **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_aliases + 1*8)) = buf + Xstrcpy(tls, **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_aliases + 1*8)), name) + buf = buf + uintptr(_strlen(tls, **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_aliases + 1*8)))+uint64(1)) + } else { + **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_aliases + 1*8)) = uintptr(0) + } + **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_aliases + 2*8)) = uintptr(0) + **(**uintptr)(__ccgo_up(res)) = h + return 0 +} + +func Xgethostbyname_r(tls *TLS, name uintptr, h uintptr, buf uintptr, buflen Tsize_t, res uintptr, err uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v h=%v buf=%v buflen=%v res=%v err=%v, (%v:)", tls, name, h, buf, buflen, res, err, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgethostbyname2_r(tls, name, int32(PF_INET), h, buf, buflen, res, err) +} + +const IFADDRS_HASH_SIZE = 64 +const IFA_ADDRESS = 1 +const IFA_BROADCAST = 4 +const IFA_LABEL = 3 +const IFA_LOCAL = 2 +const IFF_ALLMULTI = 512 +const IFF_AUTOMEDIA = 16384 +const IFF_BROADCAST = 2 +const IFF_DEBUG = 4 +const IFF_DORMANT = 131072 +const IFF_DYNAMIC = 32768 +const IFF_ECHO = 262144 +const IFF_LOOPBACK = 8 +const IFF_LOWER_UP = 65536 +const IFF_MASTER = 1024 +const IFF_MULTICAST = 4096 +const IFF_NOARP = 128 +const IFF_NOTRAILERS = 32 +const IFF_POINTOPOINT = 16 +const IFF_PORTSEL = 8192 +const IFF_PROMISC = 256 +const IFF_RUNNING = 64 +const IFF_SLAVE = 2048 +const IFF_UP = 1 +const IFF_VOLATILE = 461914 +const IFHWADDRLEN = 6 +const IFLA_ADDRESS = 1 +const IFLA_BROADCAST = 2 +const IFLA_IFNAME = 3 +const IFLA_STATS = 7 +const IFNAMSIZ = 16 +const IF_NAMESIZE = 16 +const NETLINK_ROUTE = 0 +const NLMSG_DONE = 3 +const NLMSG_ERROR = 2 +const NLMSG_NOOP = 1 +const NLMSG_OVERRUN = 4 +const NLM_F_ACK = 4 +const NLM_F_ATOMIC = 1024 +const NLM_F_DUMP = 768 +const NLM_F_MATCH = 512 +const NLM_F_MULTI = 2 +const NLM_F_REQUEST = 1 +const NLM_F_ROOT = 256 +const RTM_GETADDR = 22 +const RTM_GETLINK = 18 +const RTM_NEWADDR = 20 +const RTM_NEWLINK = 16 +const __UAPI_DEF_IF_IFCONF = 0 +const __UAPI_DEF_IF_IFMAP = 0 +const __UAPI_DEF_IF_IFNAMSIZ = 0 +const __UAPI_DEF_IF_IFREQ = 0 +const __UAPI_DEF_IF_NET_DEVICE_FLAGS = 0 +const __UAPI_DEF_IF_NET_DEVICE_FLAGS_LOWER_UP_DORMANT_ECHO = 0 + +type Tifaddrs = struct { + Fifa_next uintptr + Fifa_name uintptr + Fifa_flags uint32 + Fifa_addr uintptr + Fifa_netmask uintptr + Fifa_ifu struct { + Fifu_dstaddr [0]uintptr + Fifu_broadaddr uintptr + } + Fifa_data uintptr +} + +type Tif_nameindex = struct { + Fif_index uint32 + Fif_name uintptr +} + +type Tifaddr = struct { + Fifa_addr Tsockaddr + Fifa_ifu struct { + Fifu_dstaddr [0]Tsockaddr + Fifu_broadaddr Tsockaddr + } + Fifa_ifp uintptr + Fifa_next uintptr +} + +type Tifmap = struct { + Fmem_start uint64 + Fmem_end uint64 + Fbase_addr uint16 + Firq uint8 + Fdma uint8 + Fport uint8 +} + +type Tifreq = struct { + Fifr_ifrn struct { + Fifrn_name [16]uint8 + } + Fifr_ifru struct { + Fifru_dstaddr [0]Tsockaddr + Fifru_broadaddr [0]Tsockaddr + Fifru_netmask [0]Tsockaddr + Fifru_hwaddr [0]Tsockaddr + Fifru_flags [0]int16 + Fifru_ivalue [0]int32 + Fifru_mtu [0]int32 + Fifru_map [0]Tifmap + Fifru_slave [0][16]uint8 + Fifru_newname [0][16]uint8 + Fifru_data [0]uintptr + Fifru_addr Tsockaddr + F__ccgo_pad12 [8]byte + } +} + +type Tifconf = struct { + Fifc_len int32 + Fifc_ifcu struct { + Fifcu_req [0]uintptr + Fifcu_buf uintptr + } +} + +type Tnlmsghdr = struct { + Fnlmsg_len Tuint32_t + Fnlmsg_type Tuint16_t + Fnlmsg_flags Tuint16_t + Fnlmsg_seq Tuint32_t + Fnlmsg_pid Tuint32_t +} + +type Trtattr = struct { + Frta_len uint16 + Frta_type uint16 +} + +type Trtgenmsg = struct { + Frtgen_family uint8 +} + +type Tifinfomsg = struct { + Fifi_family uint8 + F__ifi_pad uint8 + Fifi_type uint16 + Fifi_index int32 + Fifi_flags uint32 + Fifi_change uint32 +} + +type Tifaddrmsg = struct { + Fifa_family Tuint8_t + Fifa_prefixlen Tuint8_t + Fifa_flags Tuint8_t + Fifa_scope Tuint8_t + Fifa_index Tuint32_t +} + +/* getifaddrs() reports hardware addresses with PF_PACKET that implies + * struct sockaddr_ll. But e.g. Infiniband socket address length is + * longer than sockaddr_ll.ssl_addr[8] can hold. Use this hack struct + * to extend ssl_addr - callers should be able to still use it. */ +type Tsockaddr_ll_hack = struct { + Fsll_family uint16 + Fsll_protocol uint16 + Fsll_ifindex int32 + Fsll_hatype uint16 + Fsll_pkttype uint8 + Fsll_halen uint8 + Fsll_addr [24]uint8 +} + +type Tsockany = struct { + Fll [0]Tsockaddr_ll_hack + Fv4 [0]Tsockaddr_in + Fv6 [0]Tsockaddr_in6 + Fsa Tsockaddr + F__ccgo_pad4 [20]byte +} + +type Tifaddrs_storage = struct { + Fifa Tifaddrs + Fhash_next uintptr + Faddr Tsockany + Fnetmask Tsockany + Fifu Tsockany + Findex uint32 + Fname [17]uint8 +} + +type Tifaddrs_ctx = struct { + Ffirst uintptr + Flast uintptr + Fhash [64]uintptr +} + +func Xfreeifaddrs(tls *TLS, ifp uintptr) { + if __ccgo_strace { + trc("tls=%v ifp=%v, (%v:)", tls, ifp, origin(2)) + } + var n uintptr + _ = n + for ifp != 0 { + n = (*Tifaddrs)(unsafe.Pointer(ifp)).Fifa_next + Xfree(tls, ifp) + ifp = n + } +} + +func _copy_addr(tls *TLS, r uintptr, af int32, sa uintptr, addr uintptr, addrlen Tsize_t, ifindex int32) { + var dst uintptr + var len1 int32 + _, _ = dst, len1 + switch af { + case int32(PF_INET): + dst = sa + 4 + len1 = int32(4) + case int32(PF_INET6): + dst = sa + 8 + len1 = int32(16) + if Int32FromUint8(**(**Tuint8_t)(__ccgo_up(addr))) == int32(0xfe) && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(addr + 1)))&int32(0xc0) == int32(0x80) || Int32FromUint8(**(**Tuint8_t)(__ccgo_up(addr))) == int32(0xff) && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(addr + 1)))&int32(0xf) == int32(0x2) { + (*(*Tsockaddr_in6)(unsafe.Pointer(sa))).Fsin6_scope_id = Uint32FromInt32(ifindex) + } + default: + return + } + if addrlen < Uint64FromInt32(len1) { + return + } + (*Tsockany)(unsafe.Pointer(sa)).Fsa.Fsa_family = Uint16FromInt32(af) + Xmemcpy(tls, dst, addr, Uint64FromInt32(len1)) + **(**uintptr)(__ccgo_up(r)) = sa +} + +func _gen_netmask(tls *TLS, r uintptr, af int32, sa uintptr, prefixlen int32) { + bp := tls.Alloc(16) + defer tls.Free(16) + var i, v1 int32 + var _ /* addr at bp+0 */ [16]Tuint8_t + _, _ = i, v1 + **(**[16]Tuint8_t)(__ccgo_up(bp)) = [16]Tuint8_t{} + if Uint64FromInt32(prefixlen) > Uint64FromInt32(8)*Uint64FromInt64(16) { + prefixlen = Int32FromUint64(Uint64FromInt32(8) * Uint64FromInt64(16)) + } + i = prefixlen / int32(8) + Xmemset(tls, bp, int32(0xff), Uint64FromInt32(i)) + if Uint64FromInt32(i) < uint64(16) { + v1 = i + i = i + 1 + (**(**[16]Tuint8_t)(__ccgo_up(bp)))[v1] = Uint8FromInt32(int32(0xff) << (int32(8) - prefixlen%int32(8))) + } + _copy_addr(tls, r, af, sa, bp, uint64(16), 0) +} + +func _copy_lladdr(tls *TLS, r uintptr, sa uintptr, addr uintptr, addrlen Tsize_t, ifindex int32, hatype uint16) { + if addrlen > uint64(24) { + return + } + (*(*Tsockaddr_ll_hack)(unsafe.Pointer(sa))).Fsll_family = uint16(PF_PACKET) + (*(*Tsockaddr_ll_hack)(unsafe.Pointer(sa))).Fsll_ifindex = ifindex + (*(*Tsockaddr_ll_hack)(unsafe.Pointer(sa))).Fsll_hatype = hatype + (*(*Tsockaddr_ll_hack)(unsafe.Pointer(sa))).Fsll_halen = uint8(addrlen) + Xmemcpy(tls, sa+12, addr, addrlen) + **(**uintptr)(__ccgo_up(r)) = sa +} + +func _netlink_msg_to_ifaddr(tls *TLS, pctx uintptr, h uintptr) (r int32) { + var bucket uint32 + var ctx, ifa, ifi, ifs, ifs0, rta uintptr + var stats_len int32 + _, _, _, _, _, _, _, _ = bucket, ctx, ifa, ifi, ifs, ifs0, rta, stats_len + ctx = pctx + ifi = h + UintptrFromInt64(16) + ifa = h + UintptrFromInt64(16) + stats_len = 0 + if Int32FromUint16((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_type) == int32(RTM_NEWLINK) { + rta = h + UintptrFromInt64(16) + uintptr((Uint64FromInt64(16)+Uint64FromInt32(3))&Uint64FromInt32(^Int32FromInt32(3))) + for { + if !(Uint64FromInt64(int64(h+uintptr((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_len))-int64(rta)) >= uint64(4)) { + break + } + if Int32FromUint16((*Trtattr)(unsafe.Pointer(rta)).Frta_type) != int32(IFLA_STATS) { + goto _1 + } + stats_len = Int32FromUint64(uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len) - Uint64FromInt64(4)) + break + goto _1 + _1: + ; + rta = rta + uintptr((Int32FromUint16((*Trtattr)(unsafe.Pointer(rta)).Frta_len)+Int32FromInt32(3)) & ^Int32FromInt32(3)) + } + } else { + ifs0 = **(**uintptr)(__ccgo_up(ctx + 16 + uintptr((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_index%uint32(IFADDRS_HASH_SIZE))*8)) + for { + if !(ifs0 != 0) { + break + } + if (*Tifaddrs_storage)(unsafe.Pointer(ifs0)).Findex == (*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_index { + break + } + goto _2 + _2: + ; + ifs0 = (*Tifaddrs_storage)(unsafe.Pointer(ifs0)).Fhash_next + } + if !(ifs0 != 0) { + return 0 + } + } + ifs = Xcalloc(tls, uint64(1), uint64(200)+Uint64FromInt32(stats_len)) + if ifs == uintptr(0) { + return -int32(1) + } + if Int32FromUint16((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_type) == int32(RTM_NEWLINK) { + (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Findex = Uint32FromInt32((*Tifinfomsg)(unsafe.Pointer(ifi)).Fifi_index) + (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_flags = (*Tifinfomsg)(unsafe.Pointer(ifi)).Fifi_flags + rta = h + UintptrFromInt64(16) + uintptr((Uint64FromInt64(16)+Uint64FromInt32(3))&Uint64FromInt32(^Int32FromInt32(3))) + for { + if !(Uint64FromInt64(int64(h+uintptr((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_len))-int64(rta)) >= uint64(4)) { + break + } + switch Int32FromUint16((*Trtattr)(unsafe.Pointer(rta)).Frta_type) { + case int32(IFLA_IFNAME): + if uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-uint64(4) < uint64(17) { + Xmemcpy(tls, ifs+176, rta+UintptrFromInt64(4), uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-Uint64FromInt64(4)) + (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_name = ifs + 176 + } + case int32(IFLA_ADDRESS): + _copy_lladdr(tls, ifs+24, ifs+64, rta+UintptrFromInt64(4), uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-Uint64FromInt64(4), (*Tifinfomsg)(unsafe.Pointer(ifi)).Fifi_index, (*Tifinfomsg)(unsafe.Pointer(ifi)).Fifi_type) + case int32(IFLA_BROADCAST): + _copy_lladdr(tls, ifs+40, ifs+136, rta+UintptrFromInt64(4), uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-Uint64FromInt64(4), (*Tifinfomsg)(unsafe.Pointer(ifi)).Fifi_index, (*Tifinfomsg)(unsafe.Pointer(ifi)).Fifi_type) + case int32(IFLA_STATS): + (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_data = ifs + UintptrFromInt32(1)*200 + Xmemcpy(tls, (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_data, rta+UintptrFromInt64(4), uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-Uint64FromInt64(4)) + break + } + goto _3 + _3: + ; + rta = rta + uintptr((Int32FromUint16((*Trtattr)(unsafe.Pointer(rta)).Frta_len)+Int32FromInt32(3)) & ^Int32FromInt32(3)) + } + if (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_name != 0 { + bucket = (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Findex % uint32(IFADDRS_HASH_SIZE) + (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fhash_next = **(**uintptr)(__ccgo_up(ctx + 16 + uintptr(bucket)*8)) + **(**uintptr)(__ccgo_up(ctx + 16 + uintptr(bucket)*8)) = ifs + } + } else { + (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_name = (*Tifaddrs_storage)(unsafe.Pointer(ifs0)).Fifa.Fifa_name + (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_flags = (*Tifaddrs_storage)(unsafe.Pointer(ifs0)).Fifa.Fifa_flags + rta = h + UintptrFromInt64(16) + uintptr((Uint64FromInt64(8)+Uint64FromInt32(3))&Uint64FromInt32(^Int32FromInt32(3))) + for { + if !(Uint64FromInt64(int64(h+uintptr((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_len))-int64(rta)) >= uint64(4)) { + break + } + switch Int32FromUint16((*Trtattr)(unsafe.Pointer(rta)).Frta_type) { + case int32(IFA_ADDRESS): + /* If ifa_addr is already set we, received an IFA_LOCAL before + * so treat this as destination address */ + if (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_addr != 0 { + _copy_addr(tls, ifs+40, Int32FromUint8((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_family), ifs+136, rta+UintptrFromInt64(4), uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-Uint64FromInt64(4), Int32FromUint32((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_index)) + } else { + _copy_addr(tls, ifs+24, Int32FromUint8((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_family), ifs+64, rta+UintptrFromInt64(4), uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-Uint64FromInt64(4), Int32FromUint32((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_index)) + } + case int32(IFA_BROADCAST): + _copy_addr(tls, ifs+40, Int32FromUint8((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_family), ifs+136, rta+UintptrFromInt64(4), uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-Uint64FromInt64(4), Int32FromUint32((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_index)) + case int32(IFA_LOCAL): + /* If ifa_addr is set and we get IFA_LOCAL, assume we have + * a point-to-point network. Move address to correct field. */ + if (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_addr != 0 { + (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifu = (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Faddr + *(*uintptr)(unsafe.Pointer(ifs + 40)) = ifs + 136 + Xmemset(tls, ifs+64, 0, uint64(36)) + } + _copy_addr(tls, ifs+24, Int32FromUint8((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_family), ifs+64, rta+UintptrFromInt64(4), uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-Uint64FromInt64(4), Int32FromUint32((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_index)) + case int32(IFA_LABEL): + if uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-uint64(4) < uint64(17) { + Xmemcpy(tls, ifs+176, rta+UintptrFromInt64(4), uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-Uint64FromInt64(4)) + (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_name = ifs + 176 + } + break + } + goto _4 + _4: + ; + rta = rta + uintptr((Int32FromUint16((*Trtattr)(unsafe.Pointer(rta)).Frta_len)+Int32FromInt32(3)) & ^Int32FromInt32(3)) + } + if (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_addr != 0 { + _gen_netmask(tls, ifs+32, Int32FromUint8((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_family), ifs+100, Int32FromUint8((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_prefixlen)) + } + } + if (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_name != 0 { + if !((*Tifaddrs_ctx)(unsafe.Pointer(ctx)).Ffirst != 0) { + (*Tifaddrs_ctx)(unsafe.Pointer(ctx)).Ffirst = ifs + } + if (*Tifaddrs_ctx)(unsafe.Pointer(ctx)).Flast != 0 { + (*Tifaddrs)(unsafe.Pointer((*Tifaddrs_ctx)(unsafe.Pointer(ctx)).Flast)).Fifa_next = ifs + } + (*Tifaddrs_ctx)(unsafe.Pointer(ctx)).Flast = ifs + } else { + Xfree(tls, ifs) + } + return 0 +} + +func Xgetifaddrs(tls *TLS, ifap uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v ifap=%v, (%v:)", tls, ifap, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(528) + defer tls.Free(528) + var ctx uintptr + var r int32 + var _ /* _ctx at bp+0 */ Tifaddrs_ctx + _, _ = ctx, r + ctx = bp + Xmemset(tls, ctx, 0, uint64(528)) + r = X__rtnetlink_enumerate(tls, PF_UNSPEC, PF_UNSPEC, __ccgo_fp(_netlink_msg_to_ifaddr), ctx) + if r == 0 { + **(**uintptr)(__ccgo_up(ifap)) = (*Tifaddrs_ctx)(unsafe.Pointer(ctx)).Ffirst + } else { + Xfreeifaddrs(tls, (*Tifaddrs_ctx)(unsafe.Pointer(ctx)).Ffirst) + } + return r +} + +const RR_PTR = 12 + +func _itoa(tls *TLS, p uintptr, x uint32) (r uintptr) { + var v1 uintptr + _ = v1 + p = p + uintptr(Uint64FromInt32(3)*Uint64FromInt64(4)) + p = p - 1 + v1 = p + **(**uint8)(__ccgo_up(v1)) = uint8(0) + for cond := true; cond; cond = x != 0 { + p = p - 1 + v1 = p + **(**uint8)(__ccgo_up(v1)) = uint8(uint32('0') + x%uint32(10)) + x = x / uint32(10) + } + return p +} + +func _mkptr4(tls *TLS, s uintptr, ip uintptr) { + bp := tls.Alloc(48) + defer tls.Free(48) + Xsprintf(tls, s, __ccgo_ts+982, VaList(bp+8, Int32FromUint8(**(**uint8)(__ccgo_up(ip + 3))), Int32FromUint8(**(**uint8)(__ccgo_up(ip + 2))), Int32FromUint8(**(**uint8)(__ccgo_up(ip + 1))), Int32FromUint8(**(**uint8)(__ccgo_up(ip))))) +} + +func _mkptr6(tls *TLS, s uintptr, ip uintptr) { + var i int32 + var v2 uintptr + _, _ = i, v2 + i = int32(15) + for { + if !(i >= 0) { + break + } + v2 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = _xdigits[Int32FromUint8(**(**uint8)(__ccgo_up(ip + uintptr(i))))&int32(15)] + v2 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = uint8('.') + v2 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = _xdigits[Int32FromUint8(**(**uint8)(__ccgo_up(ip + uintptr(i))))>>int32(4)] + v2 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = uint8('.') + goto _1 + _1: + ; + i = i - 1 + } + Xstrcpy(tls, s, __ccgo_ts+1007) +} + +var _xdigits = [17]uint8{'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'} + +func _reverse_hosts(tls *TLS, buf uintptr, a uintptr, scopeid uint32, family int32) { + bp := tls.Alloc(1824) + defer tls.Free(1824) + var f, p, z, v1, v2 uintptr + var v4, v5 int32 + var v7 bool + var _ /* _buf at bp+512 */ [1032]uint8 + var _ /* _f at bp+1592 */ TFILE + var _ /* atmp at bp+1544 */ [16]uint8 + var _ /* iplit at bp+1560 */ Taddress + var _ /* line at bp+0 */ [512]uint8 + _, _, _, _, _, _, _, _ = f, p, z, v1, v2, v4, v5, v7 + f = X__fopen_rb_ca(tls, __ccgo_ts+1016, bp+1592, bp+512, uint64(1032)) + if !(f != 0) { + return + } + if family == int32(PF_INET) { + Xmemcpy(tls, bp+1544+uintptr(12), a, uint64(4)) + Xmemcpy(tls, bp+1544, __ccgo_ts+1027, uint64(12)) + a = bp + 1544 + } + for Xfgets(tls, bp, int32(512), f) != 0 { + v1 = Xstrchr(tls, bp, int32('#')) + p = v1 + if v1 != 0 { + v2 = p + p = p + 1 + **(**uint8)(__ccgo_up(v2)) = uint8('\n') + **(**uint8)(__ccgo_up(p)) = Uint8FromInt32(0) + } + p = bp + for { + if v7 = **(**uint8)(__ccgo_up(p)) != 0; v7 { + v4 = Int32FromUint8(**(**uint8)(__ccgo_up(p))) + v5 = BoolInt32(v4 == int32(' ') || Uint32FromInt32(v4)-uint32('\t') < uint32(5)) + goto _6 + _6: + } + if !(v7 && !(v5 != 0)) { + break + } + goto _3 + _3: + ; + p = p + 1 + } + if !(**(**uint8)(__ccgo_up(p)) != 0) { + continue + } + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(0) + if X__lookup_ipliteral(tls, bp+1560, bp, PF_UNSPEC) <= 0 { + continue + } + if (**(**Taddress)(__ccgo_up(bp + 1560))).Ffamily == int32(PF_INET) { + Xmemcpy(tls, bp+1560+8+uintptr(12), bp+1560+8, uint64(4)) + Xmemcpy(tls, bp+1560+8, __ccgo_ts+1027, uint64(12)) + (**(**Taddress)(__ccgo_up(bp + 1560))).Fscopeid = uint32(0) + } + if Xmemcmp(tls, a, bp+1560+8, uint64(16)) != 0 || (**(**Taddress)(__ccgo_up(bp + 1560))).Fscopeid != scopeid { + continue + } + for { + if v7 = **(**uint8)(__ccgo_up(p)) != 0; v7 { + v4 = Int32FromUint8(**(**uint8)(__ccgo_up(p))) + v5 = BoolInt32(v4 == int32(' ') || Uint32FromInt32(v4)-uint32('\t') < uint32(5)) + goto _12 + _12: + } + if !(v7 && v5 != 0) { + break + } + goto _9 + _9: + ; + p = p + 1 + } + z = p + for { + if v7 = **(**uint8)(__ccgo_up(z)) != 0; v7 { + v4 = Int32FromUint8(**(**uint8)(__ccgo_up(z))) + v5 = BoolInt32(v4 == int32(' ') || Uint32FromInt32(v4)-uint32('\t') < uint32(5)) + goto _17 + _17: + } + if !(v7 && !(v5 != 0)) { + break + } + goto _14 + _14: + ; + z = z + 1 + } + **(**uint8)(__ccgo_up(z)) = uint8(0) + if int64(z)-int64(p) < int64(256) { + Xmemcpy(tls, buf, p, Uint64FromInt64(int64(z)-int64(p)+int64(1))) + break + } + } + X__fclose_ca(tls, f) +} + +func _reverse_services(tls *TLS, buf uintptr, port int32, dgram int32) { + bp := tls.Alloc(1408) + defer tls.Free(1408) + var f, p, v1, v2 uintptr + var svport uint64 + var v4, v5 int32 + var v7 bool + var _ /* _buf at bp+136 */ [1032]uint8 + var _ /* _f at bp+1168 */ TFILE + var _ /* line at bp+0 */ [128]uint8 + var _ /* z at bp+128 */ uintptr + _, _, _, _, _, _, _, _ = f, p, svport, v1, v2, v4, v5, v7 + f = X__fopen_rb_ca(tls, __ccgo_ts+1040, bp+1168, bp+136, uint64(1032)) + if !(f != 0) { + return + } + for Xfgets(tls, bp, int32(128), f) != 0 { + v1 = Xstrchr(tls, bp, int32('#')) + p = v1 + if v1 != 0 { + v2 = p + p = p + 1 + **(**uint8)(__ccgo_up(v2)) = uint8('\n') + **(**uint8)(__ccgo_up(p)) = Uint8FromInt32(0) + } + p = bp + for { + if v7 = **(**uint8)(__ccgo_up(p)) != 0; v7 { + v4 = Int32FromUint8(**(**uint8)(__ccgo_up(p))) + v5 = BoolInt32(v4 == int32(' ') || Uint32FromInt32(v4)-uint32('\t') < uint32(5)) + goto _6 + _6: + } + if !(v7 && !(v5 != 0)) { + break + } + goto _3 + _3: + ; + p = p + 1 + } + if !(**(**uint8)(__ccgo_up(p)) != 0) { + continue + } + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(0) + svport = Xstrtoul(tls, p, bp+128, int32(10)) + if svport != Uint64FromInt32(port) || **(**uintptr)(__ccgo_up(bp + 128)) == p { + continue + } + if dgram != 0 && Xstrncmp(tls, **(**uintptr)(__ccgo_up(bp + 128)), __ccgo_ts+1054, uint64(4)) != 0 { + continue + } + if !(dgram != 0) && Xstrncmp(tls, **(**uintptr)(__ccgo_up(bp + 128)), __ccgo_ts+1059, uint64(4)) != 0 { + continue + } + if int64(p)-t__predefined_ptrdiff_t(bp) > int64(32) { + continue + } + Xmemcpy(tls, buf, bp, Uint64FromInt64(int64(p)-t__predefined_ptrdiff_t(bp))) + break + } + X__fclose_ca(tls, f) +} + +func _dns_parse_callback(tls *TLS, c uintptr, rr int32, data uintptr, len1 int32, packet uintptr, plen int32) (r int32) { + if rr != int32(RR_PTR) { + return 0 + } + if X__dn_expand(tls, packet, packet+uintptr(plen), data, c, int32(256)) <= 0 { + **(**uint8)(__ccgo_up(c)) = uint8(0) + } + return 0 +} + +func Xgetnameinfo(tls *TLS, sa uintptr, sl Tsocklen_t, node uintptr, nodelen Tsocklen_t, serv uintptr, servlen Tsocklen_t, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v sa=%v sl=%v node=%v nodelen=%v serv=%v servlen=%v flags=%v, (%v:)", tls, sa, sl, node, nodelen, serv, servlen, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(976) + defer tls.Free(976) + var a, p, p1, v1 uintptr + var af, port, qlen, rlen int32 + var scopeid uint32 + var _ /* buf at bp+78 */ [256]uint8 + var _ /* num at bp+334 */ [13]uint8 + var _ /* ptr at bp+0 */ [78]uint8 + var _ /* query at bp+347 */ [96]uint8 + var _ /* reply at bp+443 */ [512]uint8 + var _ /* tmp at bp+955 */ [17]uint8 + _, _, _, _, _, _, _, _, _ = a, af, p, p1, port, qlen, rlen, scopeid, v1 + af = Int32FromUint16((*Tsockaddr)(unsafe.Pointer(sa)).Fsa_family) + switch af { + case int32(PF_INET): + a = sa + 4 + if uint64(sl) < uint64(16) { + return -int32(6) + } + _mkptr4(tls, bp, a) + scopeid = uint32(0) + case int32(PF_INET6): + a = sa + 8 + if uint64(sl) < uint64(28) { + return -int32(6) + } + if Xmemcmp(tls, a, __ccgo_ts+1027, uint64(12)) != 0 { + _mkptr6(tls, bp, a) + } else { + _mkptr4(tls, bp, a+uintptr(12)) + } + scopeid = (*Tsockaddr_in6)(unsafe.Pointer(sa)).Fsin6_scope_id + default: + return -int32(6) + } + if node != 0 && nodelen != 0 { + (**(**[256]uint8)(__ccgo_up(bp + 78)))[0] = uint8(0) + if !(flags&Int32FromInt32(NI_NUMERICHOST) != 0) { + _reverse_hosts(tls, bp+78, a, scopeid, af) + } + if !(**(**uint8)(__ccgo_up(bp + 78)) != 0) && !(flags&Int32FromInt32(NI_NUMERICHOST) != 0) { + qlen = X__res_mkquery(tls, 0, bp, int32(1), int32(RR_PTR), uintptr(0), 0, uintptr(0), bp+347, int32(96)) + (**(**[96]uint8)(__ccgo_up(bp + 347)))[int32(3)] = uint8(0) /* don't need AD flag */ + rlen = X__res_send(tls, bp+347, qlen, bp+443, int32(512)) + (**(**[256]uint8)(__ccgo_up(bp + 78)))[0] = uint8(0) + if rlen > 0 { + if Uint64FromInt32(rlen) > uint64(512) { + rlen = int32(512) + } + X__dns_parse(tls, bp+443, rlen, __ccgo_fp(_dns_parse_callback), bp+78) + } + } + if !(**(**uint8)(__ccgo_up(bp + 78)) != 0) { + if flags&int32(NI_NAMEREQD) != 0 { + return -int32(2) + } + Xinet_ntop(tls, af, a, bp+78, uint32(256)) + if scopeid != 0 { + p = uintptr(0) + if !(flags&Int32FromInt32(NI_NUMERICSCOPE) != 0) && (Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a))) == int32(0xfe) && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a + 1)))&int32(0xc0) == int32(0x80) || Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a))) == int32(0xff) && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a + 1)))&int32(0xf) == int32(0x2)) { + p = Xif_indextoname(tls, scopeid, bp+955+uintptr(1)) + } + if !(p != 0) { + p = _itoa(tls, bp+334, scopeid) + } + p = p - 1 + v1 = p + **(**uint8)(__ccgo_up(v1)) = uint8('%') + Xstrcat(tls, bp+78, p) + } + } + if _strlen(tls, bp+78) >= uint64(nodelen) { + return -int32(12) + } + Xstrcpy(tls, node, bp+78) + } + if serv != 0 && servlen != 0 { + p1 = bp + 78 + port = Int32FromUint16(Xntohs(tls, (*Tsockaddr_in)(unsafe.Pointer(sa)).Fsin_port)) + (**(**[256]uint8)(__ccgo_up(bp + 78)))[0] = uint8(0) + if !(flags&Int32FromInt32(NI_NUMERICSERV) != 0) { + _reverse_services(tls, bp+78, port, flags&int32(NI_DGRAM)) + } + if !(**(**uint8)(__ccgo_up(p1)) != 0) { + p1 = _itoa(tls, bp+334, Uint32FromInt32(port)) + } + if _strlen(tls, p1) >= uint64(servlen) { + return -int32(12) + } + Xstrcpy(tls, serv, p1) + } + return 0 +} + +func Xgetpeername(tls *TLS, fd int32, addr uintptr, len1 uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v addr=%v len1=%v, (%v:)", tls, fd, addr, len1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v8 int64 + var v1 int32 + var v2, v3, v4, v5, v6, v7 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _ = r, v1, v2, v3, v4, v5, v6, v7, v8 + v1 = int32(SYS_getpeername) + _ = int32(__SC_getpeername) + v2 = int64(fd) + v3 = int64(addr) + v4 = int64(len1) + v5 = int64(Int32FromInt32(0)) + v6 = int64(Int32FromInt32(0)) + v7 = int64(Int32FromInt32(0)) + if 0 != 0 { + r = ___syscall_cp(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _9 + } + v8 = r + goto _9 +_9: + return int32(X__syscall_ret(tls, Uint64FromInt64(v8))) +} + +func Xgetservbyname(tls *TLS, name uintptr, prots uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v prots=%v, (%v:)", tls, name, prots, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* res at bp+0 */ uintptr + if Xgetservbyname_r(tls, name, prots, uintptr(unsafe.Pointer(&_se)), uintptr(unsafe.Pointer(&_buf3)), uint64(16), bp) != 0 { + return uintptr(0) + } + return uintptr(unsafe.Pointer(&_se)) +} + +var _se Tservent + +var _buf3 [2]uintptr + +const ALIGN = 0 + +func Xgetservbyname_r(tls *TLS, name uintptr, prots uintptr, se uintptr, buf uintptr, buflen Tsize_t, res uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v prots=%v se=%v buf=%v buflen=%v res=%v, (%v:)", tls, name, prots, se, buf, buflen, res, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var align, cnt, proto int32 + var v1 uintptr + var _ /* end at bp+8 */ uintptr + var _ /* servs at bp+0 */ [2]Tservice + _, _, _, _ = align, cnt, proto, v1 + **(**uintptr)(__ccgo_up(res)) = uintptr(0) + /* Don't treat numeric port number strings as service records. */ + **(**uintptr)(__ccgo_up(bp + 8)) = __ccgo_ts + Xstrtoul(tls, name, bp+8, int32(10)) + if !(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)))) != 0) { + return int32(ENOENT) + } + /* Align buffer */ + align = Int32FromUint64(-uint64(buf) & (Uint64FromInt64(16) - Uint64FromInt64(8) - Uint64FromInt32(1))) + if buflen < Uint64FromInt32(2)*Uint64FromInt64(8)+Uint64FromInt32(align) { + return int32(ERANGE) + } + buf = buf + uintptr(align) + if !(prots != 0) { + proto = 0 + } else { + if !(Xstrcmp(tls, prots, __ccgo_ts+1064) != 0) { + proto = int32(IPPROTO_TCP) + } else { + if !(Xstrcmp(tls, prots, __ccgo_ts+1068) != 0) { + proto = int32(IPPROTO_UDP) + } else { + return int32(EINVAL) + } + } + } + cnt = X__lookup_serv(tls, bp, name, proto, 0, 0) + if cnt < 0 { + switch cnt { + case -int32(10): + fallthrough + case -int32(11): + return int32(ENOMEM) + default: + return int32(ENOENT) + } + } + (*Tservent)(unsafe.Pointer(se)).Fs_name = name + (*Tservent)(unsafe.Pointer(se)).Fs_aliases = buf + **(**uintptr)(__ccgo_up((*Tservent)(unsafe.Pointer(se)).Fs_aliases)) = (*Tservent)(unsafe.Pointer(se)).Fs_name + **(**uintptr)(__ccgo_up((*Tservent)(unsafe.Pointer(se)).Fs_aliases + 1*8)) = uintptr(0) + (*Tservent)(unsafe.Pointer(se)).Fs_port = Int32FromUint16(Xhtons(tls, (**(**[2]Tservice)(__ccgo_up(bp)))[0].Fport)) + if Int32FromUint8((**(**[2]Tservice)(__ccgo_up(bp)))[0].Fproto) == int32(IPPROTO_TCP) { + v1 = __ccgo_ts + 1064 + } else { + v1 = __ccgo_ts + 1068 + } + (*Tservent)(unsafe.Pointer(se)).Fs_proto = v1 + **(**uintptr)(__ccgo_up(res)) = se + return 0 +} + +func Xgetsockname(tls *TLS, fd int32, addr uintptr, len1 uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v addr=%v len1=%v, (%v:)", tls, fd, addr, len1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v8 int64 + var v1 int32 + var v2, v3, v4, v5, v6, v7 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _ = r, v1, v2, v3, v4, v5, v6, v7, v8 + v1 = int32(SYS_getsockname) + _ = int32(__SC_getsockname) + v2 = int64(fd) + v3 = int64(addr) + v4 = int64(len1) + v5 = int64(Int32FromInt32(0)) + v6 = int64(Int32FromInt32(0)) + v7 = int64(Int32FromInt32(0)) + if 0 != 0 { + r = ___syscall_cp(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _9 + } + v8 = r + goto _9 +_9: + return int32(X__syscall_ret(tls, Uint64FromInt64(v8))) +} + +func Xgetsockopt(tls *TLS, fd int32, level int32, optname int32, optval uintptr, optlen uintptr) (r2 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v level=%v optname=%v optval=%v optlen=%v, (%v:)", tls, fd, level, optname, optval, optlen, origin(2)) + defer func() { trc("-> %v", r2) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var r, v8 int64 + var r1, v1 int32 + var tv uintptr + var v2, v3, v4, v5, v6, v7 Tsyscall_arg_t + var _ /* tv32 at bp+8 */ [2]int64 + _, _, _, _, _, _, _, _, _, _, _ = r, r1, tv, v1, v2, v3, v4, v5, v6, v7, v8 + v1 = int32(SYS_getsockopt) + _ = int32(__SC_getsockopt) + v2 = int64(fd) + v3 = int64(level) + v4 = int64(optname) + v5 = int64(optval) + v6 = int64(optlen) + v7 = int64(Int32FromInt32(0)) + if 0 != 0 { + r = ___syscall_cp(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _9 + } + v8 = r + goto _9 +_9: + r1 = int32(v8) + if r1 == -int32(ENOPROTOOPT) { + switch level { + case int32(SOL_SOCKET): + switch optname { + case int32(SO_RCVTIMEO): + fallthrough + case int32(SO_SNDTIMEO): + if true { + break + } + if uint64(**(**Tsocklen_t)(__ccgo_up(optlen))) < uint64(16) { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL)))) + } + if optname == int32(SO_RCVTIMEO) { + optname = int32(SO_RCVTIMEO_OLD) + } + if optname == int32(SO_SNDTIMEO) { + optname = int32(SO_SNDTIMEO_OLD) + } + *(*[1]Tsocklen_t)(unsafe.Pointer(bp)) = [1]Tsocklen_t{ + 0: uint32(16), + } + v1 = int32(SYS_getsockopt) + _ = int32(__SC_getsockopt) + v2 = int64(fd) + v3 = int64(level) + v4 = int64(optname) + v5 = int64(bp + 8) + v6 = int64(bp) + v7 = int64(Int32FromInt32(0)) + if 0 != 0 { + r = ___syscall_cp(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _18 + } + v8 = r + goto _18 + _18: + r1 = int32(v8) + if r1 < 0 { + break + } + tv = optval + (*Ttimeval)(unsafe.Pointer(tv)).Ftv_sec = (**(**[2]int64)(__ccgo_up(bp + 8)))[0] + (*Ttimeval)(unsafe.Pointer(tv)).Ftv_usec = (**(**[2]int64)(__ccgo_up(bp + 8)))[int32(1)] + **(**Tsocklen_t)(__ccgo_up(optlen)) = uint32(16) + case int32(SO_TIMESTAMP): + fallthrough + case int32(SO_TIMESTAMPNS): + if true { + break + } + if optname == int32(SO_TIMESTAMP) { + optname = int32(SO_TIMESTAMP_OLD) + } + if optname == int32(SO_TIMESTAMPNS) { + optname = int32(SO_TIMESTAMPNS_OLD) + } + v1 = int32(SYS_getsockopt) + _ = int32(__SC_getsockopt) + v2 = int64(fd) + v3 = int64(level) + v4 = int64(optname) + v5 = int64(optval) + v6 = int64(optlen) + v7 = int64(Int32FromInt32(0)) + if 0 != 0 { + r = ___syscall_cp(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _27 + } + v8 = r + goto _27 + _27: + r1 = int32(v8) + break + } + } + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r1))) +} + +func X__h_errno_location(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + if !((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Fstack != 0) { + return uintptr(unsafe.Pointer(&Xh_errno)) + } + return uintptr(___get_tp(tls)) + 144 +} + +func Xherror(tls *TLS, msg uintptr) { + if __ccgo_strace { + trc("tls=%v msg=%v, (%v:)", tls, msg, origin(2)) + } + bp := tls.Alloc(32) + defer tls.Free(32) + var v1, v2 uintptr + _, _ = v1, v2 + if msg != 0 { + v1 = msg + } else { + v1 = __ccgo_ts + } + if msg != 0 { + v2 = __ccgo_ts + 289 + } else { + v2 = __ccgo_ts + } + Xfprintf(tls, uintptr(unsafe.Pointer(&X__stderr_FILE)), __ccgo_ts+1072, VaList(bp+8, v1, v2, Xhstrerror(tls, **(**int32)(__ccgo_up(X__h_errno_location(tls)))))) +} + +var _msgs1 = [84]uint8{'H', 'o', 's', 't', ' ', 'n', 'o', 't', ' ', 'f', 'o', 'u', 'n', 'd', 0, 'T', 'r', 'y', ' ', 'a', 'g', 'a', 'i', 'n', 0, 'N', 'o', 'n', '-', 'r', 'e', 'c', 'o', 'v', 'e', 'r', 'a', 'b', 'l', 'e', ' ', 'e', 'r', 'r', 'o', 'r', 0, 'A', 'd', 'd', 'r', 'e', 's', 's', ' ', 'n', 'o', 't', ' ', 'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e', 0, 0, 'U', 'n', 'k', 'n', 'o', 'w', 'n', ' ', 'e', 'r', 'r', 'o', 'r'} + +func Xhstrerror(tls *TLS, ecode int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v ecode=%v, (%v:)", tls, ecode, origin(2)) + defer func() { trc("-> %v", r) }() + } + var s uintptr + _ = s + s = uintptr(unsafe.Pointer(&_msgs1)) + ecode = ecode - 1 + for { + if !(ecode != 0 && **(**uint8)(__ccgo_up(s)) != 0) { + break + } + for { + if !(**(**uint8)(__ccgo_up(s)) != 0) { + break + } + goto _2 + _2: + ; + s = s + 1 + } + goto _1 + _1: + ; + ecode = ecode - 1 + s = s + 1 + } + if !(**(**uint8)(__ccgo_up(s)) != 0) { + s = s + 1 + } + return X__lctrans_cur(tls, s) +} + +func Xhtonl(tls *TLS, n Tuint32_t) (r Tuint32_t) { + if __ccgo_strace { + trc("tls=%v n=%v, (%v:)", tls, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var u struct { + Fc [0]uint8 + Fi int32 + } + var v1 uint32 + var v2, v3 Tuint32_t + _, _, _, _ = u, v1, v2, v3 + u = *(*struct { + Fc [0]uint8 + Fi int32 + })(unsafe.Pointer(&struct{ f int32 }{f: int32(1)})) + if *(*uint8)(unsafe.Pointer(&u)) != 0 { + v2 = n + v3 = v2>>int32(24) | v2>>int32(8)&uint32(0xff00) | v2< %v", r) }() + } + var u struct { + Fc [0]uint8 + Fi int32 + } + var v1 int32 + var v2, v3 Tuint16_t + _, _, _, _ = u, v1, v2, v3 + u = *(*struct { + Fc [0]uint8 + Fi int32 + })(unsafe.Pointer(&struct{ f int32 }{f: int32(1)})) + if *(*uint8)(unsafe.Pointer(&u)) != 0 { + v2 = n + v3 = Uint16FromInt32(Int32FromUint16(v2)<>int32(8)) + goto _4 + _4: + v1 = Int32FromUint16(v3) + } else { + v1 = Int32FromUint16(n) + } + return Uint16FromInt32(v1) +} + +func Xif_freenameindex(tls *TLS, idx uintptr) { + if __ccgo_strace { + trc("tls=%v idx=%v, (%v:)", tls, idx, origin(2)) + } + Xfree(tls, idx) +} + +func Xif_indextoname(tls *TLS, index uint32, name uintptr) (r1 uintptr) { + if __ccgo_strace { + trc("tls=%v index=%v name=%v, (%v:)", tls, index, name, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var fd, r, v1 int32 + var _ /* ifr at bp+0 */ Tifreq + _, _, _ = fd, r, v1 + v1 = Xsocket(tls, int32(PF_LOCAL), Int32FromInt32(SOCK_DGRAM)|Int32FromInt32(SOCK_CLOEXEC), 0) + fd = v1 + if v1 < 0 { + return uintptr(0) + } + *(*int32)(unsafe.Pointer(bp + 16)) = Int32FromUint32(index) + r = Xioctl(tls, fd, int32(SIOCGIFNAME), VaList(bp+48, bp)) + X__syscall1(tls, int64(SYS_close), int64(fd)) + if r < 0 { + if **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(ENODEV) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENXIO) + } + return uintptr(0) + } + return Xstrncpy(tls, name, bp, uint64(IF_NAMESIZE)) +} + +type Tifnamemap = struct { + Fhash_next uint32 + Findex uint32 + Fnamelen uint8 + Fname [16]uint8 +} + +type Tifnameindexctx = struct { + Fnum uint32 + Fallocated uint32 + Fstr_bytes uint32 + Flist uintptr + Fhash [64]uint32 +} + +func _netlink_msg_to_nameindex(tls *TLS, pctx uintptr, h uintptr) (r int32) { + var a Tsize_t + var bucket, index, namelen, type1 int32 + var ctx, ifa, ifi, map1, rta uintptr + var i, v2 uint32 + _, _, _, _, _, _, _, _, _, _, _, _ = a, bucket, ctx, i, ifa, ifi, index, map1, namelen, rta, type1, v2 + ctx = pctx + if Int32FromUint16((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_type) == int32(RTM_NEWLINK) { + ifi = h + UintptrFromInt64(16) + index = (*Tifinfomsg)(unsafe.Pointer(ifi)).Fifi_index + type1 = int32(IFLA_IFNAME) + rta = h + UintptrFromInt64(16) + uintptr((Uint64FromInt64(16)+Uint64FromInt32(3))&Uint64FromInt32(^Int32FromInt32(3))) + } else { + ifa = h + UintptrFromInt64(16) + index = Int32FromUint32((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_index) + type1 = int32(IFA_LABEL) + rta = h + UintptrFromInt64(16) + uintptr((Uint64FromInt64(8)+Uint64FromInt32(3))&Uint64FromInt32(^Int32FromInt32(3))) + } + for { + if !(Uint64FromInt64(int64(h+uintptr((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_len))-int64(rta)) >= uint64(4)) { + break + } + if Int32FromUint16((*Trtattr)(unsafe.Pointer(rta)).Frta_type) != type1 { + goto _1 + } + namelen = Int32FromUint64(uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len) - uint64(4) - uint64(1)) + if namelen > int32(IF_NAMESIZE) { + return 0 + } + /* suppress duplicates */ + bucket = index % int32(IFADDRS_HASH_SIZE) + i = **(**uint32)(__ccgo_up(ctx + 24 + uintptr(bucket)*4)) + for i != 0 { + map1 = (*Tifnameindexctx)(unsafe.Pointer(ctx)).Flist + uintptr(i-uint32(1))*28 + if (*Tifnamemap)(unsafe.Pointer(map1)).Findex == Uint32FromInt32(index) && Int32FromUint8((*Tifnamemap)(unsafe.Pointer(map1)).Fnamelen) == namelen && Xmemcmp(tls, map1+9, rta+UintptrFromInt64(4), Uint64FromInt32(namelen)) == 0 { + return 0 + } + i = (*Tifnamemap)(unsafe.Pointer(map1)).Fhash_next + } + if (*Tifnameindexctx)(unsafe.Pointer(ctx)).Fnum >= (*Tifnameindexctx)(unsafe.Pointer(ctx)).Fallocated { + if (*Tifnameindexctx)(unsafe.Pointer(ctx)).Fallocated != 0 { + v2 = (*Tifnameindexctx)(unsafe.Pointer(ctx)).Fallocated*uint32(2) + uint32(1) + } else { + v2 = uint32(8) + } + a = uint64(v2) + if a > Uint64FromUint64(0xffffffffffffffff)/Uint64FromInt64(28) { + return -int32(1) + } + map1 = Xrealloc(tls, (*Tifnameindexctx)(unsafe.Pointer(ctx)).Flist, a*uint64(28)) + if !(map1 != 0) { + return -int32(1) + } + (*Tifnameindexctx)(unsafe.Pointer(ctx)).Flist = map1 + (*Tifnameindexctx)(unsafe.Pointer(ctx)).Fallocated = uint32(a) + } + map1 = (*Tifnameindexctx)(unsafe.Pointer(ctx)).Flist + uintptr((*Tifnameindexctx)(unsafe.Pointer(ctx)).Fnum)*28 + (*Tifnamemap)(unsafe.Pointer(map1)).Findex = Uint32FromInt32(index) + (*Tifnamemap)(unsafe.Pointer(map1)).Fnamelen = Uint8FromInt32(namelen) + Xmemcpy(tls, map1+9, rta+UintptrFromInt64(4), Uint64FromInt32(namelen)) + **(**uint32)(__ccgo_up(ctx + 8)) += Uint32FromInt32(namelen + int32(1)) + (*Tifnameindexctx)(unsafe.Pointer(ctx)).Fnum = (*Tifnameindexctx)(unsafe.Pointer(ctx)).Fnum + 1 + (*Tifnamemap)(unsafe.Pointer(map1)).Fhash_next = **(**uint32)(__ccgo_up(ctx + 24 + uintptr(bucket)*4)) + **(**uint32)(__ccgo_up(ctx + 24 + uintptr(bucket)*4)) = (*Tifnameindexctx)(unsafe.Pointer(ctx)).Fnum + return 0 + goto _1 + _1: + ; + rta = rta + uintptr((Int32FromUint16((*Trtattr)(unsafe.Pointer(rta)).Frta_len)+Int32FromInt32(3)) & ^Int32FromInt32(3)) + } + return 0 +} + +func Xif_nameindex(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(288) + defer tls.Free(288) + var ctx, d, ifs, p, s, v2 uintptr + var i int32 + var _ /* _ctx at bp+0 */ Tifnameindexctx + var _ /* cs at bp+280 */ int32 + _, _, _, _, _, _, _ = ctx, d, i, ifs, p, s, v2 + ctx = bp + ifs = uintptr(0) + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp+280) + Xmemset(tls, ctx, 0, uint64(280)) + if X__rtnetlink_enumerate(tls, PF_UNSPEC, int32(PF_INET), __ccgo_fp(_netlink_msg_to_nameindex), ctx) < 0 { + goto err + } + ifs = Xmalloc(tls, uint64((*Tifnameindexctx)(unsafe.Pointer(ctx)).Fnum+Uint32FromInt32(1))*16+uint64((*Tifnameindexctx)(unsafe.Pointer(ctx)).Fstr_bytes)) + if !(ifs != 0) { + goto err + } + p = ifs + uintptr((*Tifnameindexctx)(unsafe.Pointer(ctx)).Fnum)*16 + UintptrFromInt32(1)*16 + i = Int32FromUint32((*Tifnameindexctx)(unsafe.Pointer(ctx)).Fnum) + d = ifs + s = (*Tifnameindexctx)(unsafe.Pointer(ctx)).Flist + for { + if !(i != 0) { + break + } + (*Tif_nameindex)(unsafe.Pointer(d)).Fif_index = (*Tifnamemap)(unsafe.Pointer(s)).Findex + (*Tif_nameindex)(unsafe.Pointer(d)).Fif_name = p + Xmemcpy(tls, p, s+9, uint64((*Tifnamemap)(unsafe.Pointer(s)).Fnamelen)) + p = p + uintptr((*Tifnamemap)(unsafe.Pointer(s)).Fnamelen) + v2 = p + p = p + 1 + **(**uint8)(__ccgo_up(v2)) = uint8(0) + goto _1 + _1: + ; + i = i - 1 + s += 28 + d += 16 + } + (*Tif_nameindex)(unsafe.Pointer(d)).Fif_index = uint32(0) + (*Tif_nameindex)(unsafe.Pointer(d)).Fif_name = uintptr(0) + goto err +err: + ; + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 280)), uintptr(0)) + Xfree(tls, (*Tifnameindexctx)(unsafe.Pointer(ctx)).Flist) + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOBUFS) + return ifs +} + +func Xif_nametoindex(tls *TLS, name uintptr) (r1 uint32) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var fd, r, v1 int32 + var _ /* ifr at bp+0 */ Tifreq + _, _, _ = fd, r, v1 + v1 = Xsocket(tls, int32(PF_LOCAL), Int32FromInt32(SOCK_DGRAM)|Int32FromInt32(SOCK_CLOEXEC), 0) + fd = v1 + if v1 < 0 { + return uint32(0) + } + Xstrncpy(tls, bp, name, uint64(16)) + r = Xioctl(tls, fd, int32(SIOCGIFINDEX), VaList(bp+48, bp)) + X__syscall1(tls, int64(SYS_close), int64(fd)) + if r < 0 { + v1 = 0 + } else { + v1 = *(*int32)(unsafe.Pointer(bp + 16)) + } + return Uint32FromInt32(v1) +} + +func Xinet_addr(tls *TLS, p uintptr) (r Tin_addr_t) { + if __ccgo_strace { + trc("tls=%v p=%v, (%v:)", tls, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* a at bp+0 */ Tin_addr + if !(X__inet_aton(tls, p, bp) != 0) { + return Uint32FromInt32(-Int32FromInt32(1)) + } + return (**(**Tin_addr)(__ccgo_up(bp))).Fs_addr +} + +func X__inet_aton(tls *TLS, s0 uintptr, dest uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s0=%v dest=%v, (%v:)", tls, s0, dest, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + var d, s uintptr + var i int32 + var _ /* a at bp+0 */ [4]uint64 + var _ /* z at bp+32 */ uintptr + _, _, _ = d, i, s + s = s0 + d = dest + **(**[4]uint64)(__ccgo_up(bp)) = [4]uint64{} + i = 0 + for { + if !(i < int32(4)) { + break + } + (**(**[4]uint64)(__ccgo_up(bp)))[i] = Xstrtoul(tls, s, bp+32, 0) + if **(**uintptr)(__ccgo_up(bp + 32)) == s || **(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 32)))) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 32))))) != int32('.') || !(BoolInt32(uint32(**(**uint8)(__ccgo_up(s)))-Uint32FromUint8('0') < Uint32FromInt32(10)) != 0) { + return 0 + } + if !(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 32)))) != 0) { + break + } + s = **(**uintptr)(__ccgo_up(bp + 32)) + uintptr(1) + goto _1 + _1: + ; + i = i + 1 + } + if i == int32(4) { + return 0 + } + switch i { + case 0: + (**(**[4]uint64)(__ccgo_up(bp)))[int32(1)] = (**(**[4]uint64)(__ccgo_up(bp)))[0] & uint64(0xffffff) + **(**uint64)(__ccgo_up(bp)) >>= uint64(24) + fallthrough + case int32(1): + (**(**[4]uint64)(__ccgo_up(bp)))[int32(2)] = (**(**[4]uint64)(__ccgo_up(bp)))[int32(1)] & uint64(0xffff) + **(**uint64)(__ccgo_up(bp + 1*8)) >>= uint64(16) + fallthrough + case int32(2): + (**(**[4]uint64)(__ccgo_up(bp)))[int32(3)] = (**(**[4]uint64)(__ccgo_up(bp)))[int32(2)] & uint64(0xff) + **(**uint64)(__ccgo_up(bp + 2*8)) >>= uint64(8) + } + i = 0 + for { + if !(i < int32(4)) { + break + } + if (**(**[4]uint64)(__ccgo_up(bp)))[i] > uint64(255) { + return 0 + } + **(**uint8)(__ccgo_up(d + uintptr(i))) = uint8((**(**[4]uint64)(__ccgo_up(bp)))[i]) + goto _2 + _2: + ; + i = i + 1 + } + return int32(1) +} + +func Xinet_aton(tls *TLS, s0 uintptr, dest uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s0=%v dest=%v, (%v:)", tls, s0, dest, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__inet_aton(tls, s0, dest) +} + +func Xinet_network(tls *TLS, p uintptr) (r Tin_addr_t) { + if __ccgo_strace { + trc("tls=%v p=%v, (%v:)", tls, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xntohl(tls, Xinet_addr(tls, p)) +} + +func Xinet_makeaddr(tls *TLS, n Tin_addr_t, h Tin_addr_t) (r Tin_addr) { + if __ccgo_strace { + trc("tls=%v n=%v h=%v, (%v:)", tls, n, h, origin(2)) + defer func() { trc("-> %v", r) }() + } + if n < uint32(256) { + h = h | n< %v", r) }() + } + var h Tuint32_t + _ = h + h = in.Fs_addr + if h>>int32(24) < uint32(128) { + return h & uint32(0xffffff) + } + if h>>int32(24) < uint32(192) { + return h & uint32(0xffff) + } + return h & uint32(0xff) +} + +func Xinet_netof(tls *TLS, in Tin_addr) (r Tin_addr_t) { + if __ccgo_strace { + trc("tls=%v in=%v, (%v:)", tls, in, origin(2)) + defer func() { trc("-> %v", r) }() + } + var h Tuint32_t + _ = h + h = in.Fs_addr + if h>>int32(24) < uint32(128) { + return h >> int32(24) + } + if h>>int32(24) < uint32(192) { + return h >> int32(16) + } + return h >> int32(8) +} + +func Xinet_ntoa(tls *TLS, _in Tin_addr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v _in=%v, (%v:)", tls, _in, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + *(*Tin_addr)(unsafe.Pointer(bp)) = _in + var a uintptr + _ = a + a = bp + Xsnprintf(tls, uintptr(unsafe.Pointer(&_buf4)), uint64(16), __ccgo_ts+1080, VaList(bp+16, Int32FromUint8(**(**uint8)(__ccgo_up(a))), Int32FromUint8(**(**uint8)(__ccgo_up(a + 1))), Int32FromUint8(**(**uint8)(__ccgo_up(a + 2))), Int32FromUint8(**(**uint8)(__ccgo_up(a + 3))))) + return uintptr(unsafe.Pointer(&_buf4)) +} + +var _buf4 [16]uint8 + +func Xinet_ntop(tls *TLS, af int32, a0 uintptr, s uintptr, l Tsocklen_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v af=%v a0=%v s=%v l=%v, (%v:)", tls, af, a0, s, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(192) + defer tls.Free(192) + var a uintptr + var best, i, j, max, v2 int32 + var v3 uint8 + var _ /* buf at bp+0 */ [100]uint8 + _, _, _, _, _, _, _ = a, best, i, j, max, v2, v3 + a = a0 + switch af { + case int32(PF_INET): + if Uint32FromInt32(Xsnprintf(tls, s, uint64(l), __ccgo_ts+1080, VaList(bp+112, Int32FromUint8(**(**uint8)(__ccgo_up(a))), Int32FromUint8(**(**uint8)(__ccgo_up(a + 1))), Int32FromUint8(**(**uint8)(__ccgo_up(a + 2))), Int32FromUint8(**(**uint8)(__ccgo_up(a + 3)))))) < l { + return s + } + case int32(PF_INET6): + if Xmemcmp(tls, a, __ccgo_ts+1027, uint64(12)) != 0 { + Xsnprintf(tls, bp, uint64(100), __ccgo_ts+1092, VaList(bp+112, int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 1))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 2)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 3))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 4)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 5))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 6)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 7))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 8)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 9))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 10)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 11))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 12)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 13))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 14)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 15))))) + } else { + Xsnprintf(tls, bp, uint64(100), __ccgo_ts+1116, VaList(bp+112, int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 1))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 2)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 3))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 4)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 5))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 6)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 7))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 8)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 9))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 10)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 11))), Int32FromUint8(**(**uint8)(__ccgo_up(a + 12))), Int32FromUint8(**(**uint8)(__ccgo_up(a + 13))), Int32FromUint8(**(**uint8)(__ccgo_up(a + 14))), Int32FromUint8(**(**uint8)(__ccgo_up(a + 15))))) + } + /* Replace longest /(^0|:)[:0]{2,}/ with "::" */ + v2 = Int32FromInt32(0) + best = v2 + i = v2 + max = Int32FromInt32(2) + for { + if !((**(**[100]uint8)(__ccgo_up(bp)))[i] != 0) { + break + } + if i != 0 && Int32FromUint8((**(**[100]uint8)(__ccgo_up(bp)))[i]) != int32(':') { + goto _1 + } + j = Int32FromUint64(Xstrspn(tls, bp+uintptr(i), __ccgo_ts+1146)) + if j > max { + best = i + max = j + } + goto _1 + _1: + ; + i = i + 1 + } + if max > int32(3) { + v3 = Uint8FromUint8(':') + (**(**[100]uint8)(__ccgo_up(bp)))[best+int32(1)] = v3 + (**(**[100]uint8)(__ccgo_up(bp)))[best] = v3 + Xmemmove(tls, bp+uintptr(best)+uintptr(2), bp+uintptr(best)+uintptr(max), Uint64FromInt32(i-best-max+int32(1))) + } + if _strlen(tls, bp) < uint64(l) { + Xstrcpy(tls, s, bp) + return s + } + default: + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EAFNOSUPPORT) + return uintptr(0) + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOSPC) + return uintptr(0) +} + +func _hexval(tls *TLS, c uint32) (r int32) { + if c-uint32('0') < uint32(10) { + return Int32FromUint32(c - uint32('0')) + } + c = c | uint32(32) + if c-uint32('a') < uint32(6) { + return Int32FromUint32(c - uint32('a') + uint32(10)) + } + return -int32(1) +} + +func Xinet_pton(tls *TLS, af int32, s uintptr, a0 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v af=%v s=%v a0=%v, (%v:)", tls, af, s, a0, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var a, v4 uintptr + var brk, d, i, j, need_v4, v, v3, v9 int32 + var v5 bool + var _ /* ip at bp+0 */ [8]Tuint16_t + _, _, _, _, _, _, _, _, _, _, _ = a, brk, d, i, j, need_v4, v, v3, v4, v5, v9 + a = a0 + brk = -int32(1) + need_v4 = 0 + if af == int32(PF_INET) { + i = 0 + for { + if !(i < int32(4)) { + break + } + v3 = Int32FromInt32(0) + j = v3 + v = v3 + for { + if !(j < int32(3) && BoolInt32(uint32(**(**uint8)(__ccgo_up(s + uintptr(j))))-uint32('0') < uint32(10)) != 0) { + break + } + v = int32(10)*v + Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(j)))) - int32('0') + goto _2 + _2: + ; + j = j + 1 + } + if j == 0 || j > int32(1) && Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('0') || v > int32(255) { + return 0 + } + **(**uint8)(__ccgo_up(a + uintptr(i))) = Uint8FromInt32(v) + if Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(j)))) == 0 && i == int32(3) { + return int32(1) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(j)))) != int32('.') { + return 0 + } + s = s + uintptr(j+int32(1)) + goto _1 + _1: + ; + i = i + 1 + } + return 0 + } else { + if af != int32(PF_INET6) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EAFNOSUPPORT) + return -int32(1) + } + } + if v5 = Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32(':'); v5 { + s = s + 1 + v4 = s + } + if v5 && Int32FromUint8(**(**uint8)(__ccgo_up(v4))) != int32(':') { + return 0 + } + i = 0 + for { + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32(':') && brk < 0 { + brk = i + (**(**[8]Tuint16_t)(__ccgo_up(bp)))[i&int32(7)] = uint16(0) + s = s + 1 + v4 = s + if !(**(**uint8)(__ccgo_up(v4)) != 0) { + break + } + if i == int32(7) { + return 0 + } + goto _6 + } + v3 = Int32FromInt32(0) + j = v3 + v = v3 + for { + if v5 = j < int32(4); v5 { + v9 = _hexval(tls, uint32(**(**uint8)(__ccgo_up(s + uintptr(j))))) + d = v9 + } + if !(v5 && v9 >= 0) { + break + } + v = int32(16)*v + d + goto _8 + _8: + ; + j = j + 1 + } + if j == 0 { + return 0 + } + (**(**[8]Tuint16_t)(__ccgo_up(bp)))[i&int32(7)] = Uint16FromInt32(v) + if !(**(**uint8)(__ccgo_up(s + uintptr(j))) != 0) && (brk >= 0 || i == int32(7)) { + break + } + if i == int32(7) { + return 0 + } + if Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(j)))) != int32(':') { + if Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(j)))) != int32('.') || i < int32(6) && brk < 0 { + return 0 + } + need_v4 = int32(1) + i = i + 1 + (**(**[8]Tuint16_t)(__ccgo_up(bp)))[i&int32(7)] = uint16(0) + break + } + s = s + uintptr(j+int32(1)) + goto _6 + _6: + ; + i = i + 1 + } + if brk >= 0 { + Xmemmove(tls, bp+uintptr(brk)*2+uintptr(7)*2-uintptr(i)*2, bp+uintptr(brk)*2, Uint64FromInt32(int32(2)*(i+int32(1)-brk))) + j = 0 + for { + if !(j < int32(7)-i) { + break + } + (**(**[8]Tuint16_t)(__ccgo_up(bp)))[brk+j] = uint16(0) + goto _12 + _12: + ; + j = j + 1 + } + } + j = 0 + for { + if !(j < int32(8)) { + break + } + v4 = a + a = a + 1 + **(**uint8)(__ccgo_up(v4)) = Uint8FromInt32(Int32FromUint16((**(**[8]Tuint16_t)(__ccgo_up(bp)))[j]) >> int32(8)) + v4 = a + a = a + 1 + **(**uint8)(__ccgo_up(v4)) = uint8((**(**[8]Tuint16_t)(__ccgo_up(bp)))[j]) + goto _13 + _13: + ; + j = j + 1 + } + if need_v4 != 0 && Xinet_pton(tls, int32(PF_INET), s, a-uintptr(4)) <= 0 { + return 0 + } + return int32(1) +} + +func Xlisten(tls *TLS, fd int32, backlog int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v backlog=%v, (%v:)", tls, fd, backlog, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v8 int64 + var v1 int32 + var v2, v3, v4, v5, v6, v7 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _ = r, v1, v2, v3, v4, v5, v6, v7, v8 + v1 = int32(SYS_listen) + _ = int32(__SC_listen) + v2 = int64(fd) + v3 = int64(backlog) + v4 = int64(Int32FromInt32(0)) + v5 = int64(Int32FromInt32(0)) + v6 = int64(Int32FromInt32(0)) + v7 = int64(Int32FromInt32(0)) + if 0 != 0 { + r = ___syscall_cp(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _9 + } + v8 = r + goto _9 +_9: + return int32(X__syscall_ret(tls, Uint64FromInt64(v8))) +} + +func X__lookup_ipliteral(tls *TLS, buf uintptr, name uintptr, family int32) (r int32) { + if __ccgo_strace { + trc("tls=%v buf=%v name=%v family=%v, (%v:)", tls, buf, name, family, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(96) + defer tls.Free(96) + var p, v1 uintptr + var scopeid uint64 + var _ /* a4 at bp+0 */ Tin_addr + var _ /* a6 at bp+4 */ Tin6_addr + var _ /* tmp at bp+20 */ [64]uint8 + var _ /* z at bp+88 */ uintptr + _, _, _ = p, scopeid, v1 + if X__inet_aton(tls, name, bp) > 0 { + if family == int32(PF_INET6) { /* wrong family */ + return -int32(5) + } + Xmemcpy(tls, buf+8, bp, uint64(4)) + (**(**Taddress)(__ccgo_up(buf))).Ffamily = int32(PF_INET) + (**(**Taddress)(__ccgo_up(buf))).Fscopeid = uint32(0) + return int32(1) + } + p = Xstrchr(tls, name, int32('%')) + scopeid = uint64(0) + if p != 0 && int64(p)-int64(name) < int64(64) { + Xmemcpy(tls, bp+20, name, Uint64FromInt64(int64(p)-int64(name))) + (**(**[64]uint8)(__ccgo_up(bp + 20)))[int64(p)-int64(name)] = uint8(0) + name = bp + 20 + } + if Xinet_pton(tls, int32(PF_INET6), name, bp+4) <= 0 { + return 0 + } + if family == int32(PF_INET) { /* wrong family */ + return -int32(5) + } + Xmemcpy(tls, buf+8, bp+4, uint64(16)) + (**(**Taddress)(__ccgo_up(buf))).Ffamily = int32(PF_INET6) + if p != 0 { + p = p + 1 + v1 = p + if BoolInt32(uint32(**(**uint8)(__ccgo_up(v1)))-uint32('0') < uint32(10)) != 0 { + scopeid = Xstrtoull(tls, p, bp+88, int32(10)) + } else { + **(**uintptr)(__ccgo_up(bp + 88)) = p - uintptr(1) + } + if **(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 88)))) != 0 { + if !(Int32FromUint8(**(**Tuint8_t)(__ccgo_up(bp + 4))) == int32(0xfe) && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(bp + 4 + 1)))&int32(0xc0) == int32(0x80)) && !(Int32FromUint8(**(**Tuint8_t)(__ccgo_up(bp + 4))) == int32(0xff) && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(bp + 4 + 1)))&int32(0xf) == int32(0x2)) { + return -int32(2) + } + scopeid = uint64(Xif_nametoindex(tls, p)) + if !(scopeid != 0) { + return -int32(2) + } + } + if scopeid > uint64(0xffffffff) { + return -int32(2) + } + } + (**(**Taddress)(__ccgo_up(buf))).Fscopeid = uint32(scopeid) + return int32(1) +} + +const ABUF_SIZE = 4800 +const DAS_MATCHINGLABEL = 268435456 +const DAS_MATCHINGSCOPE = 536870912 +const DAS_ORDER_SHIFT = 0 +const DAS_PREC_SHIFT = 20 +const DAS_PREFIX_SHIFT = 8 +const DAS_SCOPE_SHIFT = 16 +const DAS_USABLE = 1073741824 +const RR_A = 1 +const RR_AAAA = 28 +const RR_CNAME = 5 + +func _is_valid_hostname(tls *TLS, host uintptr) (r int32) { + var s uintptr + _ = s + if Xstrnlen(tls, host, uint64(255))-uint64(1) >= uint64(254) || Xmbstowcs(tls, uintptr(0), host, uint64(0)) == Uint64FromInt32(-Int32FromInt32(1)) { + return 0 + } + s = host + for { + if !(Int32FromUint8(**(**uint8)(__ccgo_up(s))) >= int32(0x80) || Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('.') || Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('-') || Xisalnum(tls, Int32FromUint8(**(**uint8)(__ccgo_up(s)))) != 0) { + break + } + goto _1 + _1: + ; + s = s + 1 + } + return BoolInt32(!(**(**uint8)(__ccgo_up(s)) != 0)) +} + +func _name_from_null(tls *TLS, buf uintptr, name uintptr, family int32, flags int32) (r int32) { + var cnt, v1 int32 + _, _ = cnt, v1 + cnt = 0 + if name != 0 { + return 0 + } + if flags&int32(AI_PASSIVE) != 0 { + if family != int32(PF_INET6) { + v1 = cnt + cnt = cnt + 1 + **(**Taddress)(__ccgo_up(buf + uintptr(v1)*28)) = Taddress{ + Ffamily: int32(PF_INET), + } + } + if family != int32(PF_INET) { + v1 = cnt + cnt = cnt + 1 + **(**Taddress)(__ccgo_up(buf + uintptr(v1)*28)) = Taddress{ + Ffamily: int32(PF_INET6), + } + } + } else { + if family != int32(PF_INET6) { + v1 = cnt + cnt = cnt + 1 + **(**Taddress)(__ccgo_up(buf + uintptr(v1)*28)) = Taddress{ + Ffamily: int32(PF_INET), + Faddr: [16]Tuint8_t{ + 0: uint8(127), + 3: uint8(1), + }, + } + } + if family != int32(PF_INET) { + v1 = cnt + cnt = cnt + 1 + **(**Taddress)(__ccgo_up(buf + uintptr(v1)*28)) = Taddress{ + Ffamily: int32(PF_INET6), + Faddr: [16]Tuint8_t{ + 15: uint8(1), + }, + } + } + } + return cnt +} + +func _name_from_numeric(tls *TLS, buf uintptr, name uintptr, family int32) (r int32) { + return X__lookup_ipliteral(tls, buf, name, family) +} + +func _name_from_hosts(tls *TLS, buf uintptr, canon uintptr, name uintptr, family int32) (r int32) { + bp := tls.Alloc(1776) + defer tls.Free(1776) + var badfam, cnt, have_canon, v5, v6, v8, v9 int32 + var f, p, z, v1, v2 uintptr + var l Tsize_t + var v11, v12 bool + var _ /* _buf at bp+512 */ [1032]uint8 + var _ /* _f at bp+1544 */ TFILE + var _ /* line at bp+0 */ [512]uint8 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = badfam, cnt, f, have_canon, l, p, z, v1, v11, v12, v2, v5, v6, v8, v9 + l = _strlen(tls, name) + cnt = 0 + badfam = 0 + have_canon = 0 + f = X__fopen_rb_ca(tls, __ccgo_ts+1016, bp+1544, bp+512, uint64(1032)) + if !(f != 0) { + switch **(**int32)(__ccgo_up(X__errno_location(tls))) { + case int32(ENOENT): + fallthrough + case int32(ENOTDIR): + fallthrough + case int32(EACCES): + return 0 + default: + return -int32(11) + } + } + for Xfgets(tls, bp, int32(512), f) != 0 && cnt < int32(MAXADDRS) { + v1 = Xstrchr(tls, bp, int32('#')) + p = v1 + if v1 != 0 { + v2 = p + p = p + 1 + **(**uint8)(__ccgo_up(v2)) = uint8('\n') + **(**uint8)(__ccgo_up(p)) = Uint8FromInt32(0) + } + p = bp + uintptr(1) + for { + v1 = Xstrstr(tls, p, name) + p = v1 + if v12 = v1 != 0; v12 { + v5 = Int32FromUint8(**(**uint8)(__ccgo_up(p + uintptr(-Int32FromInt32(1))))) + v6 = BoolInt32(v5 == int32(' ') || Uint32FromInt32(v5)-uint32('\t') < uint32(5)) + goto _7 + _7: + ; + if v11 = !(v6 != 0); !v11 { + v8 = Int32FromUint8(**(**uint8)(__ccgo_up(p + uintptr(l)))) + v9 = BoolInt32(v8 == int32(' ') || Uint32FromInt32(v8)-uint32('\t') < uint32(5)) + goto _10 + _10: + } + } + if !(v12 && (v11 || !(v9 != 0))) { + break + } + goto _3 + _3: + ; + p = p + 1 + } + if !(p != 0) { + continue + } + /* Isolate IP address to parse */ + p = bp + for { + if v11 = **(**uint8)(__ccgo_up(p)) != 0; v11 { + v5 = Int32FromUint8(**(**uint8)(__ccgo_up(p))) + v6 = BoolInt32(v5 == int32(' ') || Uint32FromInt32(v5)-uint32('\t') < uint32(5)) + goto _16 + _16: + } + if !(v11 && !(v6 != 0)) { + break + } + goto _13 + _13: + ; + p = p + 1 + } + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(0) + switch _name_from_numeric(tls, buf+uintptr(cnt)*28, bp, family) { + case int32(1): + cnt = cnt + 1 + case 0: + continue + default: + badfam = -int32(5) + break + } + if have_canon != 0 { + continue + } + /* Extract first name as canonical name */ + for { + if v11 = **(**uint8)(__ccgo_up(p)) != 0; v11 { + v5 = Int32FromUint8(**(**uint8)(__ccgo_up(p))) + v6 = BoolInt32(v5 == int32(' ') || Uint32FromInt32(v5)-uint32('\t') < uint32(5)) + goto _22 + _22: + } + if !(v11 && v6 != 0) { + break + } + goto _19 + _19: + ; + p = p + 1 + } + z = p + for { + if v11 = **(**uint8)(__ccgo_up(z)) != 0; v11 { + v5 = Int32FromUint8(**(**uint8)(__ccgo_up(z))) + v6 = BoolInt32(v5 == int32(' ') || Uint32FromInt32(v5)-uint32('\t') < uint32(5)) + goto _27 + _27: + } + if !(v11 && !(v6 != 0)) { + break + } + goto _24 + _24: + ; + z = z + 1 + } + **(**uint8)(__ccgo_up(z)) = uint8(0) + if _is_valid_hostname(tls, p) != 0 { + have_canon = int32(1) + Xmemcpy(tls, canon, p, Uint64FromInt64(int64(z)-int64(p)+int64(1))) + } + } + X__fclose_ca(tls, f) + if cnt != 0 { + v5 = cnt + } else { + v5 = badfam + } + return v5 +} + +type Tdpc_ctx = struct { + Faddrs uintptr + Fcanon uintptr + Fcnt int32 + Frrtype int32 +} + +func _dns_parse_callback1(tls *TLS, c uintptr, rr int32, data uintptr, len1 int32, packet uintptr, plen int32) (r int32) { + bp := tls.Alloc(256) + defer tls.Free(256) + var ctx, v2 uintptr + var family, v1 int32 + var _ /* tmp at bp+0 */ [256]uint8 + _, _, _, _ = ctx, family, v1, v2 + ctx = c + if rr == int32(RR_CNAME) { + if X__dn_expand(tls, packet, packet+uintptr(plen), data, bp, int32(256)) > 0 && _is_valid_hostname(tls, bp) != 0 { + Xstrcpy(tls, (*Tdpc_ctx)(unsafe.Pointer(ctx)).Fcanon, bp) + } + return 0 + } + if (*Tdpc_ctx)(unsafe.Pointer(ctx)).Fcnt >= int32(MAXADDRS) { + return 0 + } + if rr != (*Tdpc_ctx)(unsafe.Pointer(ctx)).Frrtype { + return 0 + } + switch rr { + case int32(RR_A): + if len1 != int32(4) { + return -int32(1) + } + family = int32(PF_INET) + case int32(RR_AAAA): + if len1 != int32(16) { + return -int32(1) + } + family = int32(PF_INET6) + break + } + (**(**Taddress)(__ccgo_up((*Tdpc_ctx)(unsafe.Pointer(ctx)).Faddrs + uintptr((*Tdpc_ctx)(unsafe.Pointer(ctx)).Fcnt)*28))).Ffamily = family + (**(**Taddress)(__ccgo_up((*Tdpc_ctx)(unsafe.Pointer(ctx)).Faddrs + uintptr((*Tdpc_ctx)(unsafe.Pointer(ctx)).Fcnt)*28))).Fscopeid = uint32(0) + v2 = ctx + 16 + v1 = *(*int32)(unsafe.Pointer(v2)) + *(*int32)(unsafe.Pointer(v2)) = *(*int32)(unsafe.Pointer(v2)) + 1 + Xmemcpy(tls, (*Tdpc_ctx)(unsafe.Pointer(ctx)).Faddrs+uintptr(v1)*28+8, data, Uint64FromInt32(len1)) + return 0 +} + +func _name_from_dns(tls *TLS, buf uintptr, canon uintptr, name uintptr, family int32, conf uintptr) (r int32) { + bp := tls.Alloc(10240) + defer tls.Free(10240) + var i, nq int32 + var qtypes [2]int32 + var _ /* abuf at bp+560 */ [2][4800]uint8 + var _ /* alens at bp+10200 */ [2]int32 + var _ /* ap at bp+10176 */ [2]uintptr + var _ /* ctx at bp+10208 */ Tdpc_ctx + var _ /* qbuf at bp+0 */ [2][280]uint8 + var _ /* qlens at bp+10192 */ [2]int32 + var _ /* qp at bp+10160 */ [2]uintptr + _, _, _ = i, nq, qtypes + **(**[2]uintptr)(__ccgo_up(bp + 10160)) = [2]uintptr{ + 0: bp, + 1: bp + 1*280, + } + **(**[2]uintptr)(__ccgo_up(bp + 10176)) = [2]uintptr{ + 0: bp + 560, + 1: bp + 560 + 1*4800, + } + nq = 0 + **(**Tdpc_ctx)(__ccgo_up(bp + 10208)) = Tdpc_ctx{ + Faddrs: buf, + Fcanon: canon, + } + i = 0 + for { + if !(i < int32(2)) { + break + } + if family != _afrr[i].Faf { + (**(**[2]int32)(__ccgo_up(bp + 10192)))[nq] = X__res_mkquery(tls, 0, name, int32(1), _afrr[i].Frr, uintptr(0), 0, uintptr(0), bp+uintptr(nq)*280, int32(280)) + if (**(**[2]int32)(__ccgo_up(bp + 10192)))[nq] == -int32(1) { + return 0 + } + qtypes[nq] = _afrr[i].Frr + **(**uint8)(__ccgo_up(bp + uintptr(nq)*280 + 3)) = uint8(0) /* don't need AD flag */ + /* Ensure query IDs are distinct. */ + if nq != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(bp + uintptr(nq)*280))) == Int32FromUint8(**(**uint8)(__ccgo_up(bp))) { + **(**uint8)(__ccgo_up(bp + uintptr(nq)*280)) = **(**uint8)(__ccgo_up(bp + uintptr(nq)*280)) + 1 + } + nq = nq + 1 + } + goto _1 + _1: + ; + i = i + 1 + } + if X__res_msend_rc(tls, nq, bp+10160, bp+10192, bp+10176, bp+10200, int32(4800), conf) < 0 { + return -int32(11) + } + i = 0 + for { + if !(i < nq) { + break + } + if (**(**[2]int32)(__ccgo_up(bp + 10200)))[i] < int32(4) || Int32FromUint8(**(**uint8)(__ccgo_up(bp + 560 + uintptr(i)*4800 + 3)))&int32(15) == int32(2) { + return -int32(3) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(bp + 560 + uintptr(i)*4800 + 3)))&int32(15) == int32(3) { + return 0 + } + if Int32FromUint8(**(**uint8)(__ccgo_up(bp + 560 + uintptr(i)*4800 + 3)))&int32(15) != 0 { + return -int32(4) + } + goto _2 + _2: + ; + i = i + 1 + } + i = nq - int32(1) + for { + if !(i >= 0) { + break + } + (**(**Tdpc_ctx)(__ccgo_up(bp + 10208))).Frrtype = qtypes[i] + if Uint64FromInt32((**(**[2]int32)(__ccgo_up(bp + 10200)))[i]) > uint64(4800) { + (**(**[2]int32)(__ccgo_up(bp + 10200)))[i] = int32(4800) + } + X__dns_parse(tls, bp+560+uintptr(i)*4800, (**(**[2]int32)(__ccgo_up(bp + 10200)))[i], __ccgo_fp(_dns_parse_callback1), bp+10208) + goto _3 + _3: + ; + i = i - 1 + } + if (**(**Tdpc_ctx)(__ccgo_up(bp + 10208))).Fcnt != 0 { + return (**(**Tdpc_ctx)(__ccgo_up(bp + 10208))).Fcnt + } + return -int32(5) +} + +var _afrr = [2]struct { + Faf int32 + Frr int32 +}{ + 0: { + Faf: int32(PF_INET6), + Frr: int32(RR_A), + }, + 1: { + Faf: int32(PF_INET), + Frr: int32(RR_AAAA), + }, +} + +func _name_from_dns_search(tls *TLS, buf uintptr, canon uintptr, name uintptr, family int32) (r int32) { + bp := tls.Alloc(368) + defer tls.Free(368) + var cnt, v5, v6 int32 + var dots, l, v2 Tsize_t + var p, z uintptr + var v12 bool + var _ /* conf at bp+256 */ Tresolvconf + var _ /* search at bp+0 */ [256]uint8 + _, _, _, _, _, _, _, _, _ = cnt, dots, l, p, z, v12, v2, v5, v6 + if X__get_resolv_conf(tls, bp+256, bp, uint64(256)) < 0 { + return -int32(1) + } + /* Count dots, suppress search when >=ndots or name ends in + * a dot, which is an explicit request for global scope. */ + v2 = Uint64FromInt32(0) + l = v2 + dots = v2 + for { + if !(**(**uint8)(__ccgo_up(name + uintptr(l))) != 0) { + break + } + if Int32FromUint8(**(**uint8)(__ccgo_up(name + uintptr(l)))) == int32('.') { + dots = dots + 1 + } + goto _1 + _1: + ; + l = l + 1 + } + if dots >= uint64((**(**Tresolvconf)(__ccgo_up(bp + 256))).Fndots) || Int32FromUint8(**(**uint8)(__ccgo_up(name + uintptr(l-uint64(1))))) == int32('.') { + **(**uint8)(__ccgo_up(bp)) = uint8(0) + } + /* Strip final dot for canon, fail if multiple trailing dots. */ + if Int32FromUint8(**(**uint8)(__ccgo_up(name + uintptr(l-uint64(1))))) == int32('.') { + l = l - 1 + } + if !(l != 0) || Int32FromUint8(**(**uint8)(__ccgo_up(name + uintptr(l-uint64(1))))) == int32('.') { + return -int32(2) + } + /* This can never happen; the caller already checked length. */ + if l >= uint64(256) { + return -int32(2) + } + /* Name with search domain appended is setup in canon[]. This both + * provides the desired default canonical name (if the requested + * name is not a CNAME record) and serves as a buffer for passing + * the full requested name to name_from_dns. */ + Xmemcpy(tls, canon, name, l) + **(**uint8)(__ccgo_up(canon + uintptr(l))) = uint8('.') + p = bp + for { + if !(**(**uint8)(__ccgo_up(p)) != 0) { + break + } + for { + v5 = Int32FromUint8(**(**uint8)(__ccgo_up(p))) + v6 = BoolInt32(v5 == int32(' ') || Uint32FromInt32(v5)-uint32('\t') < uint32(5)) + goto _7 + _7: + if !(v6 != 0) { + break + } + goto _4 + _4: + ; + p = p + 1 + } + z = p + for { + if v12 = **(**uint8)(__ccgo_up(z)) != 0; v12 { + v5 = Int32FromUint8(**(**uint8)(__ccgo_up(z))) + v6 = BoolInt32(v5 == int32(' ') || Uint32FromInt32(v5)-uint32('\t') < uint32(5)) + goto _11 + _11: + } + if !(v12 && !(v6 != 0)) { + break + } + goto _8 + _8: + ; + z = z + 1 + } + if z == p { + break + } + if Uint64FromInt64(int64(z)-int64(p)) < uint64(256)-l-uint64(1) { + Xmemcpy(tls, canon+uintptr(l)+uintptr(1), p, Uint64FromInt64(int64(z)-int64(p))) + **(**uint8)(__ccgo_up(canon + uintptr(Uint64FromInt64(int64(z)-int64(p)+int64(1))+l))) = uint8(0) + cnt = _name_from_dns(tls, buf, canon, canon, family, bp+256) + if cnt != 0 { + return cnt + } + } + goto _3 + _3: + ; + p = z + } + **(**uint8)(__ccgo_up(canon + uintptr(l))) = uint8(0) + return _name_from_dns(tls, buf, canon, name, family, bp+256) +} + +type Tpolicy = struct { + Faddr [16]uint8 + Flen1 uint8 + Fmask uint8 + Fprec uint8 + Flabel uint8 +} + +var _defpolicy = [6]Tpolicy{ + 0: { + Faddr: [16]uint8{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1}, + Flen1: uint8(15), + Fmask: uint8(0xff), + Fprec: uint8(50), + }, + 1: { + Faddr: [16]uint8{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255}, + Flen1: uint8(11), + Fmask: uint8(0xff), + Fprec: uint8(35), + Flabel: uint8(4), + }, + 2: { + Faddr: [16]uint8{' ', 2}, + Flen1: uint8(1), + Fmask: uint8(0xff), + Fprec: uint8(30), + Flabel: uint8(2), + }, + 3: { + Faddr: [16]uint8{' ', 1}, + Flen1: uint8(3), + Fmask: uint8(0xff), + Fprec: uint8(5), + Flabel: uint8(5), + }, + 4: { + Faddr: [16]uint8{252}, + Fmask: uint8(0xfe), + Fprec: uint8(3), + Flabel: uint8(13), + }, + 5: { + Faddr: [16]uint8{}, + Fprec: uint8(40), + Flabel: uint8(1), + }, +} + +func _policyof(tls *TLS, a uintptr) (r uintptr) { + var i int32 + _ = i + i = 0 + for { + if Xmemcmp(tls, a, uintptr(unsafe.Pointer(&_defpolicy))+uintptr(i)*20, uint64(_defpolicy[i].Flen1)) != 0 { + goto _1 + } + if Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a + uintptr(_defpolicy[i].Flen1))))&Int32FromUint8(_defpolicy[i].Fmask) != Int32FromUint8(**(**uint8)(__ccgo_up(uintptr(unsafe.Pointer(&_defpolicy)) + uintptr(i)*20 + uintptr(_defpolicy[i].Flen1)))) { + goto _1 + } + return uintptr(unsafe.Pointer(&_defpolicy)) + uintptr(i)*20 + goto _1 + _1: + ; + i = i + 1 + } + return r +} + +func _labelof(tls *TLS, a uintptr) (r int32) { + return Int32FromUint8((*Tpolicy)(unsafe.Pointer(_policyof(tls, a))).Flabel) +} + +func _scopeof(tls *TLS, a uintptr) (r int32) { + if Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a))) == int32(0xff) { + return Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a + 1))) & int32(15) + } + if Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a))) == int32(0xfe) && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a + 1)))&int32(0xc0) == int32(0x80) { + return int32(2) + } + if **(**Tuint32_t)(__ccgo_up(a)) == uint32(0) && **(**Tuint32_t)(__ccgo_up(a + 1*4)) == uint32(0) && **(**Tuint32_t)(__ccgo_up(a + 2*4)) == uint32(0) && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a + 12))) == 0 && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a + 13))) == 0 && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a + 14))) == 0 && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a + 15))) == int32(1) { + return int32(2) + } + if Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a))) == int32(0xfe) && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a + 1)))&int32(0xc0) == int32(0xc0) { + return int32(5) + } + return int32(14) +} + +func _prefixmatch(tls *TLS, s uintptr, d uintptr) (r int32) { + var i uint32 + _ = i + i = uint32(0) + for { + if !(i < uint32(128) && !((Int32FromUint8(**(**Tuint8_t)(__ccgo_up(s + uintptr(i/uint32(8)))))^Int32FromUint8(**(**Tuint8_t)(__ccgo_up(d + uintptr(i/uint32(8))))))&(Int32FromInt32(128)>>(i%Uint32FromInt32(8))) != 0)) { + break + } + goto _1 + _1: + ; + i = i + 1 + } + return Int32FromUint32(i) +} + +func _addrcmp(tls *TLS, _a uintptr, _b uintptr) (r int32) { + var a, b uintptr + _, _ = a, b + a = _a + b = _b + return (*Taddress)(unsafe.Pointer(b)).Fsortkey - (*Taddress)(unsafe.Pointer(a)).Fsortkey +} + +func X__lookup_name(tls *TLS, buf uintptr, canon uintptr, name uintptr, family int32, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v buf=%v canon=%v name=%v family=%v flags=%v, (%v:)", tls, buf, canon, name, family, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(96) + defer tls.Free(96) + var cnt, dlabel, dprec, dscope, family1, fd, i, j, key, prefixlen, v1 int32 + var da, dpolicy, sa uintptr + var dalen Tsocklen_t + var l Tsize_t + var _ /* cs at bp+0 */ int32 + var _ /* da4 at bp+76 */ Tsockaddr_in + var _ /* da6 at bp+32 */ Tsockaddr_in6 + var _ /* sa4 at bp+60 */ Tsockaddr_in + var _ /* sa6 at bp+4 */ Tsockaddr_in6 + var _ /* salen at bp+92 */ Tsocklen_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = cnt, da, dalen, dlabel, dpolicy, dprec, dscope, family1, fd, i, j, key, l, prefixlen, sa, v1 + cnt = 0 + **(**uint8)(__ccgo_up(canon)) = uint8(0) + if name != 0 { + /* reject empty name and check len so it fits into temp bufs */ + l = Xstrnlen(tls, name, uint64(255)) + if l-uint64(1) >= uint64(254) { + return -int32(2) + } + Xmemcpy(tls, canon, name, l+uint64(1)) + } + /* Procedurally, a request for v6 addresses with the v4-mapped + * flag set is like a request for unspecified family, followed + * by filtering of the results. */ + if flags&int32(AI_V4MAPPED) != 0 { + if family == int32(PF_INET6) { + family = PF_UNSPEC + } else { + flags = flags - int32(AI_V4MAPPED) + } + } + /* Try each backend until there's at least one result. */ + cnt = _name_from_null(tls, buf, name, family, flags) + if !(cnt != 0) { + cnt = _name_from_numeric(tls, buf, name, family) + } + if !(cnt != 0) && !(flags&Int32FromInt32(AI_NUMERICHOST) != 0) { + cnt = _name_from_hosts(tls, buf, canon, name, family) + if !(cnt != 0) { + cnt = _name_from_dns_search(tls, buf, canon, name, family) + } + } + if cnt <= 0 { + if cnt != 0 { + v1 = cnt + } else { + v1 = -int32(2) + } + return v1 + } + /* Filter/transform results for v4-mapped lookup, if requested. */ + if flags&int32(AI_V4MAPPED) != 0 { + if !(flags&Int32FromInt32(AI_ALL) != 0) { + /* If any v6 results exist, remove v4 results. */ + i = 0 + for { + if !(i < cnt && (**(**Taddress)(__ccgo_up(buf + uintptr(i)*28))).Ffamily != int32(PF_INET6)) { + break + } + goto _2 + _2: + ; + i = i + 1 + } + if i < cnt { + j = 0 + for { + if !(i < cnt) { + break + } + if (**(**Taddress)(__ccgo_up(buf + uintptr(i)*28))).Ffamily == int32(PF_INET6) { + v1 = j + j = j + 1 + **(**Taddress)(__ccgo_up(buf + uintptr(v1)*28)) = **(**Taddress)(__ccgo_up(buf + uintptr(i)*28)) + } + goto _3 + _3: + ; + i = i + 1 + } + v1 = j + i = v1 + cnt = v1 + } + } + /* Translate any remaining v4 results to v6 */ + i = 0 + for { + if !(i < cnt) { + break + } + if (**(**Taddress)(__ccgo_up(buf + uintptr(i)*28))).Ffamily != int32(PF_INET) { + goto _6 + } + Xmemcpy(tls, buf+uintptr(i)*28+8+uintptr(12), buf+uintptr(i)*28+8, uint64(4)) + Xmemcpy(tls, buf+uintptr(i)*28+8, __ccgo_ts+1027, uint64(12)) + (**(**Taddress)(__ccgo_up(buf + uintptr(i)*28))).Ffamily = int32(PF_INET6) + goto _6 + _6: + ; + i = i + 1 + } + } + /* No further processing is needed if there are fewer than 2 + * results or if there are only IPv4 results. */ + if cnt < int32(2) || family == int32(PF_INET) { + return cnt + } + i = 0 + for { + if !(i < cnt) { + break + } + if (**(**Taddress)(__ccgo_up(buf + uintptr(i)*28))).Ffamily != int32(PF_INET) { + break + } + goto _7 + _7: + ; + i = i + 1 + } + if i == cnt { + return cnt + } + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp) + /* The following implements a subset of RFC 3484/6724 destination + * address selection by generating a single 31-bit sort key for + * each address. Rules 3, 4, and 7 are omitted for having + * excessive runtime and code size cost and dubious benefit. + * So far the label/precedence table cannot be customized. */ + i = 0 + for { + if !(i < cnt) { + break + } + family1 = (**(**Taddress)(__ccgo_up(buf + uintptr(i)*28))).Ffamily + key = 0 + **(**Tsockaddr_in6)(__ccgo_up(bp + 4)) = Tsockaddr_in6{} + **(**Tsockaddr_in6)(__ccgo_up(bp + 32)) = Tsockaddr_in6{ + Fsin6_family: uint16(PF_INET6), + Fsin6_port: uint16(65535), + Fsin6_scope_id: (**(**Taddress)(__ccgo_up(buf + uintptr(i)*28))).Fscopeid, + } + **(**Tsockaddr_in)(__ccgo_up(bp + 60)) = Tsockaddr_in{} + **(**Tsockaddr_in)(__ccgo_up(bp + 76)) = Tsockaddr_in{ + Fsin_family: uint16(PF_INET), + Fsin_port: uint16(65535), + } + if family1 == int32(PF_INET6) { + Xmemcpy(tls, bp+32+8, buf+uintptr(i)*28+8, uint64(16)) + da = bp + 32 + dalen = uint32(28) + sa = bp + 4 + **(**Tsocklen_t)(__ccgo_up(bp + 92)) = uint32(28) + } else { + Xmemcpy(tls, bp+4+8, __ccgo_ts+1027, uint64(12)) + Xmemcpy(tls, bp+32+8+uintptr(12), buf+uintptr(i)*28+8, uint64(4)) + Xmemcpy(tls, bp+32+8, __ccgo_ts+1027, uint64(12)) + Xmemcpy(tls, bp+32+8+uintptr(12), buf+uintptr(i)*28+8, uint64(4)) + Xmemcpy(tls, bp+76+4, buf+uintptr(i)*28+8, uint64(4)) + da = bp + 76 + dalen = uint32(16) + sa = bp + 60 + **(**Tsocklen_t)(__ccgo_up(bp + 92)) = uint32(16) + } + dpolicy = _policyof(tls, bp+32+8) + dscope = _scopeof(tls, bp+32+8) + dlabel = Int32FromUint8((*Tpolicy)(unsafe.Pointer(dpolicy)).Flabel) + dprec = Int32FromUint8((*Tpolicy)(unsafe.Pointer(dpolicy)).Fprec) + prefixlen = 0 + fd = Xsocket(tls, family1, Int32FromInt32(SOCK_DGRAM)|Int32FromInt32(SOCK_CLOEXEC), int32(IPPROTO_UDP)) + if fd >= 0 { + if !(Xconnect(tls, fd, da, dalen) != 0) { + key = key | int32(DAS_USABLE) + if !(Xgetsockname(tls, fd, sa, bp+92) != 0) { + if family1 == int32(PF_INET) { + Xmemcpy(tls, bp+4+8+uintptr(12), bp+60+4, uint64(4)) + } + if dscope == _scopeof(tls, bp+4+8) { + key = key | int32(DAS_MATCHINGSCOPE) + } + if dlabel == _labelof(tls, bp+4+8) { + key = key | int32(DAS_MATCHINGLABEL) + } + prefixlen = _prefixmatch(tls, bp+4+8, bp+32+8) + } + } + Xclose(tls, fd) + } + key = key | dprec< %v", r) }() + } + bp := tls.Alloc(1408) + defer tls.Free(1408) + var cnt, v1, v2 int32 + var f, p, v3, v4 uintptr + var l Tsize_t + var port uint64 + var v10 bool + var _ /* _buf at bp+136 */ [1032]uint8 + var _ /* _f at bp+1168 */ TFILE + var _ /* line at bp+0 */ [128]uint8 + var _ /* z at bp+128 */ uintptr + _, _, _, _, _, _, _, _, _, _ = cnt, f, l, p, port, v1, v10, v2, v3, v4 + cnt = 0 + **(**uintptr)(__ccgo_up(bp + 128)) = __ccgo_ts + port = uint64(0) + switch socktype { + case int32(SOCK_STREAM): + switch proto { + case 0: + proto = int32(IPPROTO_TCP) + fallthrough + case int32(IPPROTO_TCP): + default: + return -int32(8) + } + case int32(SOCK_DGRAM): + switch proto { + case 0: + proto = int32(IPPROTO_UDP) + fallthrough + case int32(IPPROTO_UDP): + default: + return -int32(8) + } + fallthrough + case 0: + default: + if name != 0 { + return -int32(8) + } + (**(**Tservice)(__ccgo_up(buf))).Fport = uint16(0) + (**(**Tservice)(__ccgo_up(buf))).Fproto = Uint8FromInt32(proto) + (**(**Tservice)(__ccgo_up(buf))).Fsocktype = Uint8FromInt32(socktype) + return int32(1) + } + if name != 0 { + if !(**(**uint8)(__ccgo_up(name)) != 0) { + return -int32(8) + } + port = Xstrtoul(tls, name, bp+128, int32(10)) + } + if !(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 128)))) != 0) { + if port > uint64(65535) { + return -int32(8) + } + if proto != int32(IPPROTO_UDP) { + (**(**Tservice)(__ccgo_up(buf + uintptr(cnt)*4))).Fport = uint16(port) + (**(**Tservice)(__ccgo_up(buf + uintptr(cnt)*4))).Fsocktype = uint8(SOCK_STREAM) + v1 = cnt + cnt = cnt + 1 + (**(**Tservice)(__ccgo_up(buf + uintptr(v1)*4))).Fproto = uint8(IPPROTO_TCP) + } + if proto != int32(IPPROTO_TCP) { + (**(**Tservice)(__ccgo_up(buf + uintptr(cnt)*4))).Fport = uint16(port) + (**(**Tservice)(__ccgo_up(buf + uintptr(cnt)*4))).Fsocktype = uint8(SOCK_DGRAM) + v1 = cnt + cnt = cnt + 1 + (**(**Tservice)(__ccgo_up(buf + uintptr(v1)*4))).Fproto = uint8(IPPROTO_UDP) + } + return cnt + } + if flags&int32(AI_NUMERICSERV) != 0 { + return -int32(2) + } + l = _strlen(tls, name) + f = X__fopen_rb_ca(tls, __ccgo_ts+1040, bp+1168, bp+136, uint64(1032)) + if !(f != 0) { + switch **(**int32)(__ccgo_up(X__errno_location(tls))) { + case int32(ENOENT): + fallthrough + case int32(ENOTDIR): + fallthrough + case int32(EACCES): + return -int32(8) + default: + return -int32(11) + } + } + for Xfgets(tls, bp, int32(128), f) != 0 && cnt < int32(MAXSERVS) { + v3 = Xstrchr(tls, bp, int32('#')) + p = v3 + if v3 != 0 { + v4 = p + p = p + 1 + **(**uint8)(__ccgo_up(v4)) = uint8('\n') + **(**uint8)(__ccgo_up(p)) = Uint8FromInt32(0) + } + /* Find service name */ + p = bp + for { + v3 = Xstrstr(tls, p, name) + p = v3 + if !(v3 != 0) { + break + } + if v10 = p > bp; v10 { + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(p + uintptr(-Int32FromInt32(1))))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _9 + _9: + } + if v10 && !(v2 != 0) { + goto _5 + } + if v10 = **(**uint8)(__ccgo_up(p + uintptr(l))) != 0; v10 { + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(p + uintptr(l)))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _13 + _13: + } + if v10 && !(v2 != 0) { + goto _5 + } + break + goto _5 + _5: + ; + p = p + 1 + } + if !(p != 0) { + continue + } + /* Skip past canonical name at beginning of line */ + p = bp + for { + if v10 = **(**uint8)(__ccgo_up(p)) != 0; v10 { + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(p))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _18 + _18: + } + if !(v10 && !(v2 != 0)) { + break + } + goto _15 + _15: + ; + p = p + 1 + } + port = Xstrtoul(tls, p, bp+128, int32(10)) + if port > uint64(65535) || **(**uintptr)(__ccgo_up(bp + 128)) == p { + continue + } + if !(Xstrncmp(tls, **(**uintptr)(__ccgo_up(bp + 128)), __ccgo_ts+1054, uint64(4)) != 0) { + if proto == int32(IPPROTO_TCP) { + continue + } + (**(**Tservice)(__ccgo_up(buf + uintptr(cnt)*4))).Fport = uint16(port) + (**(**Tservice)(__ccgo_up(buf + uintptr(cnt)*4))).Fsocktype = uint8(SOCK_DGRAM) + v1 = cnt + cnt = cnt + 1 + (**(**Tservice)(__ccgo_up(buf + uintptr(v1)*4))).Fproto = uint8(IPPROTO_UDP) + } + if !(Xstrncmp(tls, **(**uintptr)(__ccgo_up(bp + 128)), __ccgo_ts+1059, uint64(4)) != 0) { + if proto == int32(IPPROTO_UDP) { + continue + } + (**(**Tservice)(__ccgo_up(buf + uintptr(cnt)*4))).Fport = uint16(port) + (**(**Tservice)(__ccgo_up(buf + uintptr(cnt)*4))).Fsocktype = uint8(SOCK_STREAM) + v1 = cnt + cnt = cnt + 1 + (**(**Tservice)(__ccgo_up(buf + uintptr(v1)*4))).Fproto = uint8(IPPROTO_TCP) + } + } + X__fclose_ca(tls, f) + if cnt > 0 { + v1 = cnt + } else { + v1 = -int32(8) + } + return v1 +} + +func ___netlink_enumerate(tls *TLS, fd int32, seq uint32, type1 int32, af int32, __ccgo_fp_cb uintptr, ctx uintptr) (r1 int32) { + bp := tls.Alloc(8192) + defer tls.Free(8192) + var h uintptr + var r, ret int32 + var _ /* u at bp+0 */ struct { + Freq [0]struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + } + Freply [0]Tnlmsghdr + Fbuf [8192]Tuint8_t + } + _, _, _ = h, r, ret + Xmemset(tls, bp, 0, uint64(20)) + (*(*struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + })(unsafe.Pointer(&**(**struct { + Freq [0]struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + } + Freply [0]Tnlmsghdr + Fbuf [8192]Tuint8_t + })(__ccgo_up(bp))))).Fnlh.Fnlmsg_len = uint32(20) + (*(*struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + })(unsafe.Pointer(&**(**struct { + Freq [0]struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + } + Freply [0]Tnlmsghdr + Fbuf [8192]Tuint8_t + })(__ccgo_up(bp))))).Fnlh.Fnlmsg_type = Uint16FromInt32(type1) + (*(*struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + })(unsafe.Pointer(&**(**struct { + Freq [0]struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + } + Freply [0]Tnlmsghdr + Fbuf [8192]Tuint8_t + })(__ccgo_up(bp))))).Fnlh.Fnlmsg_flags = Uint16FromInt32(Int32FromInt32(NLM_F_ROOT) | Int32FromInt32(NLM_F_MATCH) | Int32FromInt32(NLM_F_REQUEST)) + (*(*struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + })(unsafe.Pointer(&**(**struct { + Freq [0]struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + } + Freply [0]Tnlmsghdr + Fbuf [8192]Tuint8_t + })(__ccgo_up(bp))))).Fnlh.Fnlmsg_seq = seq + (*(*struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + })(unsafe.Pointer(&**(**struct { + Freq [0]struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + } + Freply [0]Tnlmsghdr + Fbuf [8192]Tuint8_t + })(__ccgo_up(bp))))).Fg.Frtgen_family = Uint8FromInt32(af) + r = int32(Xsend(tls, fd, bp, uint64(20), 0)) + if r < 0 { + return r + } + for int32(1) != 0 { + r = int32(Xrecv(tls, fd, bp, uint64(8192), int32(MSG_DONTWAIT))) + if r <= 0 { + return -int32(1) + } + h = bp + for { + if !(Uint64FromInt64(int64(bp+uintptr(r))-int64(h)) >= uint64(16)) { + break + } + if Int32FromUint16((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_type) == int32(NLMSG_DONE) { + return 0 + } + if Int32FromUint16((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_type) == int32(NLMSG_ERROR) { + return -int32(1) + } + ret = (*(*func(*TLS, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cb})))(tls, ctx, h) + if ret != 0 { + return ret + } + goto _1 + _1: + ; + h = h + uintptr(((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_len+Uint32FromInt32(3))&Uint32FromInt32(^Int32FromInt32(3))) + } + } + return r1 +} + +type t__ccgo_fp__X__rtnetlink_enumerate_2 = func(*TLS, uintptr, uintptr) int32 + +func X__rtnetlink_enumerate(tls *TLS, link_af int32, addr_af int32, __ccgo_fp_cb uintptr, ctx uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v link_af=%v addr_af=%v __ccgo_fp_cb=%v ctx=%v, (%v:)", tls, link_af, addr_af, __ccgo_fp_cb, ctx, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var fd, r int32 + _, _ = fd, r + fd = Xsocket(tls, int32(PF_NETLINK), Int32FromInt32(SOCK_RAW)|Int32FromInt32(SOCK_CLOEXEC), NETLINK_ROUTE) + if fd < 0 { + return -int32(1) + } + r = ___netlink_enumerate(tls, fd, uint32(1), int32(RTM_GETLINK), link_af, __ccgo_fp_cb, ctx) + if !(r != 0) { + r = ___netlink_enumerate(tls, fd, uint32(2), int32(RTM_GETADDR), addr_af, __ccgo_fp_cb, ctx) + } + X__syscall1(tls, int64(SYS_close), int64(fd)) + return r +} + +func Xgetnetbyaddr(tls *TLS, net Tuint32_t, type1 int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v net=%v type1=%v, (%v:)", tls, net, type1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(0) +} + +func Xgetnetbyname(tls *TLS, name uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(0) +} + +func Xns_get16(tls *TLS, cp uintptr) (r uint32) { + if __ccgo_strace { + trc("tls=%v cp=%v, (%v:)", tls, cp, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(cp)))< %v", r) }() + } + return uint64(uint32(**(**uint8)(__ccgo_up(cp)))<> int32(8)) + v1 = cp + cp = cp + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(s) +} + +func Xns_put32(tls *TLS, l uint64, cp uintptr) { + if __ccgo_strace { + trc("tls=%v l=%v cp=%v, (%v:)", tls, l, cp, origin(2)) + } + var v1 uintptr + _ = v1 + v1 = cp + cp = cp + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(l >> int32(24)) + v1 = cp + cp = cp + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(l >> int32(16)) + v1 = cp + cp = cp + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(l >> int32(8)) + v1 = cp + cp = cp + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(l) +} + +func Xns_initparse(tls *TLS, msg uintptr, msglen int32, handle uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v msg=%v msglen=%v handle=%v, (%v:)", tls, msg, msglen, handle, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var i, r int32 + _, _ = i, r + (*Tns_msg)(unsafe.Pointer(handle)).F_msg = msg + (*Tns_msg)(unsafe.Pointer(handle)).F_eom = msg + uintptr(msglen) + if msglen < (Int32FromInt32(2)+int32(_ns_s_max))*Int32FromInt32(NS_INT16SZ) { + goto bad + } + msg = msg + uintptr(2) + (*Tns_msg)(unsafe.Pointer(handle)).F_id = uint16(Xns_get16(tls, msg-uintptr(2))) + msg = msg + uintptr(2) + (*Tns_msg)(unsafe.Pointer(handle)).F_flags = uint16(Xns_get16(tls, msg-uintptr(2))) + i = 0 + for { + if !(i < int32(_ns_s_max)) { + break + } + msg = msg + uintptr(2) + **(**Tuint16_t)(__ccgo_up(handle + 20 + uintptr(i)*2)) = uint16(Xns_get16(tls, msg-uintptr(2))) + goto _1 + _1: + ; + i = i + 1 + } + i = 0 + for { + if !(i < int32(_ns_s_max)) { + break + } + if **(**Tuint16_t)(__ccgo_up(handle + 20 + uintptr(i)*2)) != 0 { + **(**uintptr)(__ccgo_up(handle + 32 + uintptr(i)*8)) = msg + r = Xns_skiprr(tls, msg, (*Tns_msg)(unsafe.Pointer(handle)).F_eom, i, Int32FromUint16(**(**Tuint16_t)(__ccgo_up(handle + 20 + uintptr(i)*2)))) + if r < 0 { + return -int32(1) + } + msg = msg + uintptr(r) + } else { + **(**uintptr)(__ccgo_up(handle + 32 + uintptr(i)*8)) = UintptrFromInt32(0) + } + goto _2 + _2: + ; + i = i + 1 + } + if msg != (*Tns_msg)(unsafe.Pointer(handle)).F_eom { + goto bad + } + (*Tns_msg)(unsafe.Pointer(handle)).F_sect = int32(_ns_s_max) + (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum = -int32(1) + (*Tns_msg)(unsafe.Pointer(handle)).F_msg_ptr = UintptrFromInt32(0) + return 0 + goto bad +bad: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EMSGSIZE) + return -int32(1) +} + +func Xns_skiprr(tls *TLS, ptr uintptr, eom uintptr, section Tns_sect, count int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v ptr=%v eom=%v section=%v count=%v, (%v:)", tls, ptr, eom, section, count, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var p uintptr + var r, v1 int32 + _, _, _ = p, r, v1 + p = ptr + for { + v1 = count + count = count - 1 + if !(v1 != 0) { + break + } + r = Xdn_skipname(tls, p, eom) + if r < 0 { + goto bad + } + if int64(r+Int32FromInt32(2)*Int32FromInt32(NS_INT16SZ)) > int64(eom)-int64(p) { + goto bad + } + p = p + uintptr(r+Int32FromInt32(2)*Int32FromInt32(NS_INT16SZ)) + if section != int32(_ns_s_qd) { + if int64(Int32FromInt32(NS_INT32SZ)+Int32FromInt32(NS_INT16SZ)) > int64(eom)-int64(p) { + goto bad + } + p = p + uintptr(NS_INT32SZ) + p = p + uintptr(2) + r = Int32FromUint32(Xns_get16(tls, p-uintptr(2))) + if int64(r) > int64(eom)-int64(p) { + goto bad + } + p = p + uintptr(r) + } + } + return int32(int64(p) - int64(ptr)) + goto bad +bad: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EMSGSIZE) + return -int32(1) +} + +func Xns_parserr(tls *TLS, handle uintptr, section Tns_sect, rrnum int32, rr uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v handle=%v section=%v rrnum=%v rr=%v, (%v:)", tls, handle, section, rrnum, rr, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + var v1 uintptr + _, _ = r, v1 + if section < 0 || section >= int32(_ns_s_max) { + goto bad + } + if section != (*Tns_msg)(unsafe.Pointer(handle)).F_sect { + (*Tns_msg)(unsafe.Pointer(handle)).F_sect = section + (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum = 0 + (*Tns_msg)(unsafe.Pointer(handle)).F_msg_ptr = **(**uintptr)(__ccgo_up(handle + 32 + uintptr(section)*8)) + } + if rrnum == -int32(1) { + rrnum = (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum + } + if rrnum < 0 || rrnum >= Int32FromUint16(**(**Tuint16_t)(__ccgo_up(handle + 20 + uintptr(section)*2))) { + goto bad + } + if rrnum < (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum { + (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum = 0 + (*Tns_msg)(unsafe.Pointer(handle)).F_msg_ptr = **(**uintptr)(__ccgo_up(handle + 32 + uintptr(section)*8)) + } + if rrnum > (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum { + r = Xns_skiprr(tls, (*Tns_msg)(unsafe.Pointer(handle)).F_msg_ptr, (*Tns_msg)(unsafe.Pointer(handle)).F_eom, section, rrnum-(*Tns_msg)(unsafe.Pointer(handle)).F_rrnum) + if r < 0 { + return -int32(1) + } + **(**uintptr)(__ccgo_up(handle + 72)) += uintptr(r) + (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum = rrnum + } + r = Xns_name_uncompress(tls, (*Tns_msg)(unsafe.Pointer(handle)).F_msg, (*Tns_msg)(unsafe.Pointer(handle)).F_eom, (*Tns_msg)(unsafe.Pointer(handle)).F_msg_ptr, rr, uint64(NS_MAXDNAME)) + if r < 0 { + return -int32(1) + } + **(**uintptr)(__ccgo_up(handle + 72)) += uintptr(r) + if int64(Int32FromInt32(2)*Int32FromInt32(NS_INT16SZ)) > int64((*Tns_msg)(unsafe.Pointer(handle)).F_eom)-int64((*Tns_msg)(unsafe.Pointer(handle)).F_msg_ptr) { + goto size + } + v1 = handle + 72 + *(*uintptr)(unsafe.Pointer(v1)) += uintptr(2) + (*Tns_rr)(unsafe.Pointer(rr)).Ftype1 = uint16(Xns_get16(tls, *(*uintptr)(unsafe.Pointer(v1))-uintptr(2))) + v1 = handle + 72 + *(*uintptr)(unsafe.Pointer(v1)) += uintptr(2) + (*Tns_rr)(unsafe.Pointer(rr)).Frr_class = uint16(Xns_get16(tls, *(*uintptr)(unsafe.Pointer(v1))-uintptr(2))) + if section != int32(_ns_s_qd) { + if int64(Int32FromInt32(NS_INT32SZ)+Int32FromInt32(NS_INT16SZ)) > int64((*Tns_msg)(unsafe.Pointer(handle)).F_eom)-int64((*Tns_msg)(unsafe.Pointer(handle)).F_msg_ptr) { + goto size + } + v1 = handle + 72 + *(*uintptr)(unsafe.Pointer(v1)) += uintptr(4) + (*Tns_rr)(unsafe.Pointer(rr)).Fttl = uint32(Xns_get32(tls, *(*uintptr)(unsafe.Pointer(v1))-uintptr(4))) + v1 = handle + 72 + *(*uintptr)(unsafe.Pointer(v1)) += uintptr(2) + (*Tns_rr)(unsafe.Pointer(rr)).Frdlength = uint16(Xns_get16(tls, *(*uintptr)(unsafe.Pointer(v1))-uintptr(2))) + if Int64FromUint16((*Tns_rr)(unsafe.Pointer(rr)).Frdlength) > int64((*Tns_msg)(unsafe.Pointer(handle)).F_eom)-int64((*Tns_msg)(unsafe.Pointer(handle)).F_msg_ptr) { + goto size + } + (*Tns_rr)(unsafe.Pointer(rr)).Frdata = (*Tns_msg)(unsafe.Pointer(handle)).F_msg_ptr + **(**uintptr)(__ccgo_up(handle + 72)) += uintptr((*Tns_rr)(unsafe.Pointer(rr)).Frdlength) + } else { + (*Tns_rr)(unsafe.Pointer(rr)).Fttl = uint32(0) + (*Tns_rr)(unsafe.Pointer(rr)).Frdlength = uint16(0) + (*Tns_rr)(unsafe.Pointer(rr)).Frdata = UintptrFromInt32(0) + } + (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum = (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum + 1 + if (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum > Int32FromUint16(**(**Tuint16_t)(__ccgo_up(handle + 20 + uintptr(section)*2))) { + (*Tns_msg)(unsafe.Pointer(handle)).F_sect = section + int32(1) + if (*Tns_msg)(unsafe.Pointer(handle)).F_sect == int32(_ns_s_max) { + (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum = -int32(1) + (*Tns_msg)(unsafe.Pointer(handle)).F_msg_ptr = UintptrFromInt32(0) + } else { + (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum = 0 + } + } + return 0 + goto bad +bad: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENODEV) + return -int32(1) + goto size +size: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EMSGSIZE) + return -int32(1) +} + +func Xns_name_uncompress(tls *TLS, msg uintptr, eom uintptr, src uintptr, dst uintptr, dstsiz Tsize_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v msg=%v eom=%v src=%v dst=%v dstsiz=%v, (%v:)", tls, msg, eom, src, dst, dstsiz, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + r = Xdn_expand(tls, msg, eom, src, dst, Int32FromUint64(dstsiz)) + if r < 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EMSGSIZE) + } + return r +} + +func Xntohl(tls *TLS, n Tuint32_t) (r Tuint32_t) { + if __ccgo_strace { + trc("tls=%v n=%v, (%v:)", tls, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var u struct { + Fc [0]uint8 + Fi int32 + } + var v1 uint32 + var v2, v3 Tuint32_t + _, _, _, _ = u, v1, v2, v3 + u = *(*struct { + Fc [0]uint8 + Fi int32 + })(unsafe.Pointer(&struct{ f int32 }{f: int32(1)})) + if *(*uint8)(unsafe.Pointer(&u)) != 0 { + v2 = n + v3 = v2>>int32(24) | v2>>int32(8)&uint32(0xff00) | v2< %v", r) }() + } + var u struct { + Fc [0]uint8 + Fi int32 + } + var v1 int32 + var v2, v3 Tuint16_t + _, _, _, _ = u, v1, v2, v3 + u = *(*struct { + Fc [0]uint8 + Fi int32 + })(unsafe.Pointer(&struct{ f int32 }{f: int32(1)})) + if *(*uint8)(unsafe.Pointer(&u)) != 0 { + v2 = n + v3 = Uint16FromInt32(Int32FromUint16(v2)<>int32(8)) + goto _4 + _4: + v1 = Int32FromUint16(v3) + } else { + v1 = Int32FromUint16(n) + } + return Uint16FromInt32(v1) +} + +/* do we really need all these?? */ + +var _idx int32 +var _protos = [239]uint8{0, 'i', 'p', 0, 1, 'i', 'c', 'm', 'p', 0, 2, 'i', 'g', 'm', 'p', 0, 3, 'g', 'g', 'p', 0, 4, 'i', 'p', 'e', 'n', 'c', 'a', 'p', 0, 5, 's', 't', 0, 6, 't', 'c', 'p', 0, 8, 'e', 'g', 'p', 0, 12, 'p', 'u', 'p', 0, 17, 'u', 'd', 'p', 0, 20, 'h', 'm', 'p', 0, 22, 'x', 'n', 's', '-', 'i', 'd', 'p', 0, 27, 'r', 'd', 'p', 0, 29, 'i', 's', 'o', '-', 't', 'p', '4', 0, '$', 'x', 't', 'p', 0, '%', 'd', 'd', 'p', 0, '&', 'i', 'd', 'p', 'r', '-', 'c', 'm', 't', 'p', 0, ')', 'i', 'p', 'v', '6', 0, '+', 'i', 'p', 'v', '6', '-', 'r', 'o', 'u', 't', 'e', 0, ',', 'i', 'p', 'v', '6', '-', 'f', 'r', 'a', 'g', 0, '-', 'i', 'd', 'r', 'p', 0, '.', 'r', 's', 'v', 'p', 0, '/', 'g', 'r', 'e', 0, '2', 'e', 's', 'p', 0, '3', 'a', 'h', 0, '9', 's', 'k', 'i', 'p', 0, ':', 'i', 'p', 'v', '6', '-', 'i', 'c', 'm', 'p', 0, ';', 'i', 'p', 'v', '6', '-', 'n', 'o', 'n', 'x', 't', 0, '<', 'i', 'p', 'v', '6', '-', 'o', 'p', 't', 's', 0, 'I', 'r', 's', 'p', 'f', 0, 'Q', 'v', 'm', 't', 'p', 0, 'Y', 'o', 's', 'p', 'f', 0, '^', 'i', 'p', 'i', 'p', 0, 'b', 'e', 'n', 'c', 'a', 'p', 0, 'g', 'p', 'i', 'm', 0, 255, 'r', 'a', 'w'} + +func Xendprotoent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + _idx = 0 +} + +func Xsetprotoent(tls *TLS, stayopen int32) { + if __ccgo_strace { + trc("tls=%v stayopen=%v, (%v:)", tls, stayopen, origin(2)) + } + _idx = 0 +} + +func Xgetprotoent(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + if Uint64FromInt32(_idx) >= uint64(239) { + return UintptrFromInt32(0) + } + _p.Fp_proto = Int32FromUint8(_protos[_idx]) + _p.Fp_name = uintptr(unsafe.Pointer(&_protos)) + uintptr(_idx+int32(1)) + _p.Fp_aliases = uintptr(unsafe.Pointer(&_aliases)) + _idx = Int32FromUint64(uint64(_idx) + (_strlen(tls, _p.Fp_name) + Uint64FromInt32(2))) + return uintptr(unsafe.Pointer(&_p)) +} + +var _p Tprotoent + +var _aliases uintptr + +func Xgetprotobyname(tls *TLS, name uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + var p uintptr + _ = p + Xendprotoent(tls) + for cond := true; cond; cond = p != 0 && Xstrcmp(tls, name, (*Tprotoent)(unsafe.Pointer(p)).Fp_name) != 0 { + p = Xgetprotoent(tls) + } + return p +} + +func Xgetprotobynumber(tls *TLS, num int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v num=%v, (%v:)", tls, num, origin(2)) + defer func() { trc("-> %v", r) }() + } + var p uintptr + _ = p + Xendprotoent(tls) + for cond := true; cond; cond = p != 0 && (*Tprotoent)(unsafe.Pointer(p)).Fp_proto != num { + p = Xgetprotoent(tls) + } + return p +} + +func Xrecv(tls *TLS, fd int32, buf uintptr, len1 Tsize_t, flags int32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v len1=%v flags=%v, (%v:)", tls, fd, buf, len1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xrecvfrom(tls, fd, buf, len1, flags, uintptr(0), uintptr(0)) +} + +func Xrecvfrom(tls *TLS, fd int32, buf uintptr, len1 Tsize_t, flags int32, addr uintptr, alen uintptr) (r1 Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v len1=%v flags=%v addr=%v alen=%v, (%v:)", tls, fd, buf, len1, flags, addr, alen, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v8 int64 + var v1 int32 + var v2, v3, v4, v5, v6, v7 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _ = r, v1, v2, v3, v4, v5, v6, v7, v8 + v1 = int32(SYS_recvfrom) + _ = int32(__SC_recvfrom) + v2 = int64(fd) + v3 = int64(buf) + v4 = Int64FromUint64(len1) + v5 = int64(flags) + v6 = int64(addr) + v7 = int64(alen) + if int32(1) != 0 { + r = ___syscall_cp(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _9 + } + v8 = r + goto _9 +_9: + return X__syscall_ret(tls, Uint64FromInt64(v8)) +} + +func Xrecvmmsg(tls *TLS, fd int32, msgvec uintptr, vlen uint32, flags uint32, timeout uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v msgvec=%v vlen=%v flags=%v timeout=%v, (%v:)", tls, fd, msgvec, vlen, flags, timeout, origin(2)) + defer func() { trc("-> %v", r) }() + } + var i uint32 + var mh uintptr + var v2 int32 + _, _, _ = i, mh, v2 + mh = msgvec + i = vlen + for { + if !(i != 0) { + break + } + v2 = Int32FromInt32(0) + (*Tmmsghdr)(unsafe.Pointer(mh)).Fmsg_hdr.F__pad2 = v2 + (*Tmmsghdr)(unsafe.Pointer(mh)).Fmsg_hdr.F__pad1 = v2 + goto _1 + _1: + ; + i = i - 1 + mh += 64 + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_recvmmsg), int64(fd), int64(msgvec), Int64FromUint32(vlen), Int64FromUint32(flags), int64(timeout), 0)))) +} + +func X__convert_scm_timestamps(tls *TLS, msg uintptr, csize Tsocklen_t) { + if __ccgo_strace { + trc("tls=%v msg=%v csize=%v, (%v:)", tls, msg, csize, origin(2)) + } + bp := tls.Alloc(32) + defer tls.Free(32) + var cmsg, last, v2 uintptr + var type1 int32 + var _ /* tmp at bp+0 */ int64 + var _ /* tvts at bp+8 */ [2]int64 + _, _, _, _ = cmsg, last, type1, v2 + if true { + return + } + if !((*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_control != 0) || !((*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_controllen != 0) { + return + } + last = uintptr(0) + type1 = 0 + if uint64((*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_controllen) >= uint64(16) { + v2 = (*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_control + } else { + v2 = UintptrFromInt32(0) + } + cmsg = v2 + for { + if !(cmsg != 0) { + break + } + if (*Tcmsghdr)(unsafe.Pointer(cmsg)).Fcmsg_level == int32(SOL_SOCKET) { + switch (*Tcmsghdr)(unsafe.Pointer(cmsg)).Fcmsg_type { + case int32(SO_TIMESTAMP_OLD): + goto _3 + case int32(SO_TIMESTAMPNS_OLD): + goto _4 + } + goto _5 + _3: + ; + if type1 != 0 { + goto _5 + } + type1 = int32(SO_TIMESTAMP) + goto common + _4: + ; + type1 = int32(SO_TIMESTAMPNS) + goto common + common: + ; + Xmemcpy(tls, bp, cmsg+UintptrFromInt32(1)*16, uint64(8)) + (**(**[2]int64)(__ccgo_up(bp + 8)))[0] = int64(**(**int64)(__ccgo_up(bp))) + Xmemcpy(tls, bp, cmsg+UintptrFromInt32(1)*16+uintptr(8), uint64(8)) + (**(**[2]int64)(__ccgo_up(bp + 8)))[int32(1)] = int64(**(**int64)(__ccgo_up(bp))) + goto _5 + _5: + } + last = cmsg + goto _1 + _1: + ; + if uint64((*Tcmsghdr)(unsafe.Pointer(cmsg)).Fcmsg_len) < uint64(16) || (uint64((*Tcmsghdr)(unsafe.Pointer(cmsg)).Fcmsg_len)+uint64(8)-uint64(1))&Uint64FromInt64(^Int64FromUint64(Uint64FromInt64(8)-Uint64FromInt32(1)))+uint64(16) >= Uint64FromInt64(int64((*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_control+uintptr((*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_controllen))-int64(cmsg)) { + v2 = uintptr(0) + } else { + v2 = cmsg + uintptr((uint64((*Tcmsghdr)(unsafe.Pointer(cmsg)).Fcmsg_len)+Uint64FromInt64(8)-Uint64FromInt32(1))&Uint64FromInt64(^Int64FromUint64(Uint64FromInt64(8)-Uint64FromInt32(1)))) + } + cmsg = v2 + } + if !(last != 0) || !(type1 != 0) { + return + } + if (Uint64FromInt64(16)+Uint64FromInt64(8)-Uint64FromInt32(1)) & ^(Uint64FromInt64(8)-Uint64FromInt32(1)) + (Uint64FromInt64(16)+Uint64FromInt64(8)-Uint64FromInt32(1)) & ^(Uint64FromInt64(8)-Uint64FromInt32(1)) > uint64(csize-(*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_controllen) { + **(**int32)(__ccgo_up(msg + 48)) |= int32(MSG_CTRUNC) + return + } + v2 = msg + 40 + *(*Tsocklen_t)(unsafe.Pointer(v2)) = Tsocklen_t(uint64(*(*Tsocklen_t)(unsafe.Pointer(v2))) + ((Uint64FromInt64(16)+Uint64FromInt64(8)-Uint64FromInt32(1)) & ^(Uint64FromInt64(8)-Uint64FromInt32(1)) + (Uint64FromInt64(16)+Uint64FromInt64(8)-Uint64FromInt32(1)) & ^(Uint64FromInt64(8)-Uint64FromInt32(1)))) + if uint64((*Tcmsghdr)(unsafe.Pointer(last)).Fcmsg_len) < uint64(16) || (uint64((*Tcmsghdr)(unsafe.Pointer(last)).Fcmsg_len)+uint64(8)-uint64(1))&Uint64FromInt64(^Int64FromUint64(Uint64FromInt64(8)-Uint64FromInt32(1)))+uint64(16) >= Uint64FromInt64(int64((*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_control+uintptr((*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_controllen))-int64(last)) { + v2 = uintptr(0) + } else { + v2 = last + uintptr((uint64((*Tcmsghdr)(unsafe.Pointer(last)).Fcmsg_len)+Uint64FromInt64(8)-Uint64FromInt32(1))&Uint64FromInt64(^Int64FromUint64(Uint64FromInt64(8)-Uint64FromInt32(1)))) + } + cmsg = v2 + (*Tcmsghdr)(unsafe.Pointer(cmsg)).Fcmsg_level = int32(SOL_SOCKET) + (*Tcmsghdr)(unsafe.Pointer(cmsg)).Fcmsg_type = type1 + (*Tcmsghdr)(unsafe.Pointer(cmsg)).Fcmsg_len = uint32((Uint64FromInt64(16)+Uint64FromInt64(8)-Uint64FromInt32(1)) & ^(Uint64FromInt64(8)-Uint64FromInt32(1)) + Uint64FromInt64(16)) + Xmemcpy(tls, cmsg+UintptrFromInt32(1)*16, bp+8, uint64(16)) +} + +func Xrecvmsg(tls *TLS, fd int32, msg uintptr, flags int32) (r2 Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v msg=%v flags=%v, (%v:)", tls, fd, msg, flags, origin(2)) + defer func() { trc("-> %v", r2) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var orig uintptr + var orig_controllen Tsocklen_t + var r, v9 int64 + var r1 Tssize_t + var v1 int32 + var v3, v4, v5, v6, v7, v8 Tsyscall_arg_t + var _ /* h at bp+0 */ Tmsghdr + _, _, _, _, _, _, _, _, _, _, _, _ = orig, orig_controllen, r, r1, v1, v3, v4, v5, v6, v7, v8, v9 + orig_controllen = (*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_controllen + orig = msg + if msg != 0 { + **(**Tmsghdr)(__ccgo_up(bp)) = **(**Tmsghdr)(__ccgo_up(msg)) + v1 = Int32FromInt32(0) + (**(**Tmsghdr)(__ccgo_up(bp))).F__pad2 = v1 + (**(**Tmsghdr)(__ccgo_up(bp))).F__pad1 = v1 + msg = bp + } + v1 = int32(SYS_recvmsg) + _ = int32(__SC_recvmsg) + v3 = int64(fd) + v4 = int64(msg) + v5 = int64(flags) + v6 = int64(Int32FromInt32(0)) + v7 = int64(Int32FromInt32(0)) + v8 = int64(Int32FromInt32(0)) + if int32(1) != 0 { + r = ___syscall_cp(tls, int64(v1), v3, v4, v5, v6, v7, v8) + } else { + r = X__syscall6(tls, int64(v1), v3, v4, v5, v6, v7, v8) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v9 = r + goto _10 + } + v9 = r + goto _10 +_10: + r1 = X__syscall_ret(tls, Uint64FromInt64(v9)) + if r1 >= 0 { + X__convert_scm_timestamps(tls, msg, orig_controllen) + } + if orig != 0 { + **(**Tmsghdr)(__ccgo_up(orig)) = **(**Tmsghdr)(__ccgo_up(bp)) + } + return r1 +} + +func Xres_init(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return 0 +} + +func X__res_mkquery(tls *TLS, op int32, dname uintptr, class int32, type1 int32, data uintptr, datalen int32, newrr uintptr, buf uintptr, buflen int32) (r int32) { + if __ccgo_strace { + trc("tls=%v op=%v dname=%v class=%v type1=%v data=%v datalen=%v newrr=%v buf=%v buflen=%v, (%v:)", tls, op, dname, class, type1, data, datalen, newrr, buf, buflen, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(304) + defer tls.Free(304) + var i, id, j, n int32 + var l Tsize_t + var _ /* q at bp+0 */ [280]uint8 + var _ /* ts at bp+280 */ Ttimespec + _, _, _, _, _ = i, id, j, l, n + l = Xstrnlen(tls, dname, uint64(255)) + if l != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(dname + uintptr(l-uint64(1))))) == int32('.') { + l = l - 1 + } + if l != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(dname + uintptr(l-uint64(1))))) == int32('.') { + return -int32(1) + } + n = Int32FromUint64(uint64(17) + l + BoolUint64(!!(l != 0))) + if l > uint64(253) || buflen < n || Uint32FromInt32(op) > uint32(15) || Uint32FromInt32(class) > uint32(255) || Uint32FromInt32(type1) > uint32(255) { + return -int32(1) + } + /* Construct query template - ID will be filled later */ + Xmemset(tls, bp, 0, Uint64FromInt32(n)) + (**(**[280]uint8)(__ccgo_up(bp)))[int32(2)] = Uint8FromInt32(op*int32(8) + int32(1)) + (**(**[280]uint8)(__ccgo_up(bp)))[int32(3)] = uint8(32) /* AD */ + (**(**[280]uint8)(__ccgo_up(bp)))[int32(5)] = uint8(1) + Xmemcpy(tls, bp+uintptr(13), dname, l) + i = int32(13) + for { + if !((**(**[280]uint8)(__ccgo_up(bp)))[i] != 0) { + break + } + j = i + for { + if !((**(**[280]uint8)(__ccgo_up(bp)))[j] != 0 && Int32FromUint8((**(**[280]uint8)(__ccgo_up(bp)))[j]) != int32('.')) { + break + } + goto _2 + _2: + ; + j = j + 1 + } + if Uint32FromInt32(j-i)-uint32(1) > uint32(62) { + return -int32(1) + } + (**(**[280]uint8)(__ccgo_up(bp)))[i-int32(1)] = Uint8FromInt32(j - i) + goto _1 + _1: + ; + i = j + int32(1) + } + (**(**[280]uint8)(__ccgo_up(bp)))[i+int32(1)] = Uint8FromInt32(type1) + (**(**[280]uint8)(__ccgo_up(bp)))[i+int32(3)] = Uint8FromInt32(class) + /* Make a reasonably unpredictable id */ + Xclock_gettime(tls, CLOCK_REALTIME, bp+280) + id = Int32FromUint64((Uint64FromInt64((**(**Ttimespec)(__ccgo_up(bp + 280))).Ftv_nsec) + Uint64FromInt64((**(**Ttimespec)(__ccgo_up(bp + 280))).Ftv_nsec)/uint64(65536)) & uint64(0xffff)) + (**(**[280]uint8)(__ccgo_up(bp)))[0] = Uint8FromInt32(id / int32(256)) + (**(**[280]uint8)(__ccgo_up(bp)))[int32(1)] = Uint8FromInt32(id) + Xmemcpy(tls, buf, bp, Uint64FromInt32(n)) + return n +} + +func Xres_mkquery(tls *TLS, op int32, dname uintptr, class int32, type1 int32, data uintptr, datalen int32, newrr uintptr, buf uintptr, buflen int32) (r int32) { + if __ccgo_strace { + trc("tls=%v op=%v dname=%v class=%v type1=%v data=%v datalen=%v newrr=%v buf=%v buflen=%v, (%v:)", tls, op, dname, class, type1, data, datalen, newrr, buf, buflen, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__res_mkquery(tls, op, dname, class, type1, data, datalen, newrr, buf, buflen) +} + +const POLLERR = 8 +const POLLHUP = 16 +const POLLIN = 1 +const POLLMSG = 1024 +const POLLNVAL = 32 +const POLLOUT = 4 +const POLLPRI = 2 +const POLLRDBAND = 128 +const POLLRDHUP = 8192 +const POLLRDNORM = 64 +const POLLWRBAND = 512 +const POLLWRNORM = 256 +const TCP_CC_INFO = 26 +const TCP_CLOSE = 7 +const TCP_CLOSE_WAIT = 8 +const TCP_CLOSING = 11 +const TCP_CM_INQ = 36 +const TCP_CONGESTION = 13 +const TCP_CORK = 3 +const TCP_DEFER_ACCEPT = 9 +const TCP_ESTABLISHED = 1 +const TCP_FASTOPEN = 23 +const TCP_FASTOPEN_CONNECT = 30 +const TCP_FASTOPEN_KEY = 33 +const TCP_FASTOPEN_NO_COOKIE = 34 +const TCP_FIN_WAIT1 = 4 +const TCP_FIN_WAIT2 = 5 +const TCP_INFO = 11 +const TCP_INQ = 36 +const TCP_KEEPCNT = 6 +const TCP_KEEPIDLE = 4 +const TCP_KEEPINTVL = 5 +const TCP_LAST_ACK = 9 +const TCP_LINGER2 = 8 +const TCP_LISTEN = 10 +const TCP_MAXSEG = 2 +const TCP_MD5SIG = 14 +const TCP_MD5SIG_EXT = 32 +const TCP_NODELAY = 1 +const TCP_NOTSENT_LOWAT = 25 +const TCP_QUEUE_SEQ = 21 +const TCP_QUICKACK = 12 +const TCP_REPAIR = 19 +const TCP_REPAIR_OPTIONS = 22 +const TCP_REPAIR_QUEUE = 20 +const TCP_REPAIR_WINDOW = 29 +const TCP_SAVED_SYN = 28 +const TCP_SAVE_SYN = 27 +const TCP_SYNCNT = 7 +const TCP_SYN_RECV = 3 +const TCP_SYN_SENT = 2 +const TCP_THIN_DUPACK = 17 +const TCP_THIN_LINEAR_TIMEOUTS = 16 +const TCP_TIMESTAMP = 24 +const TCP_TIME_WAIT = 6 +const TCP_TX_DELAY = 37 +const TCP_ULP = 31 +const TCP_USER_TIMEOUT = 18 +const TCP_WINDOW_CLAMP = 10 +const TCP_ZEROCOPY_RECEIVE = 35 + +const _TCP_NLA_PAD = 0 +const _TCP_NLA_BUSY = 1 +const _TCP_NLA_RWND_LIMITED = 2 +const _TCP_NLA_SNDBUF_LIMITED = 3 +const _TCP_NLA_DATA_SEGS_OUT = 4 +const _TCP_NLA_TOTAL_RETRANS = 5 +const _TCP_NLA_PACING_RATE = 6 +const _TCP_NLA_DELIVERY_RATE = 7 +const _TCP_NLA_SND_CWND = 8 +const _TCP_NLA_REORDERING = 9 +const _TCP_NLA_MIN_RTT = 10 +const _TCP_NLA_RECUR_RETRANS = 11 +const _TCP_NLA_DELIVERY_RATE_APP_LMT = 12 +const _TCP_NLA_SNDQ_SIZE = 13 +const _TCP_NLA_CA_STATE = 14 +const _TCP_NLA_SND_SSTHRESH = 15 +const _TCP_NLA_DELIVERED = 16 +const _TCP_NLA_DELIVERED_CE = 17 +const _TCP_NLA_BYTES_SENT = 18 +const _TCP_NLA_BYTES_RETRANS = 19 +const _TCP_NLA_DSACK_DUPS = 20 +const _TCP_NLA_REORD_SEEN = 21 +const _TCP_NLA_SRTT = 22 +const _TCP_NLA_TIMEOUT_REHASH = 23 +const _TCP_NLA_BYTES_NOTSENT = 24 +const _TCP_NLA_EDT = 25 +const _TCP_NLA_TTL = 26 + +type Tnfds_t = uint64 + +type Tpollfd = struct { + Ffd int32 + Fevents int16 + Frevents int16 +} + +func _cleanup(tls *TLS, p uintptr) { + var i int32 + var pfd uintptr + _, _ = i, pfd + pfd = p + i = 0 + for { + if !((**(**Tpollfd)(__ccgo_up(pfd + uintptr(i)*8))).Ffd >= -int32(1)) { + break + } + if (**(**Tpollfd)(__ccgo_up(pfd + uintptr(i)*8))).Ffd >= 0 { + X__syscall1(tls, int64(SYS_close), int64((**(**Tpollfd)(__ccgo_up(pfd + uintptr(i)*8))).Ffd)) + } + goto _1 + _1: + ; + i = i + 1 + } +} + +func _mtime(tls *TLS) (r uint64) { + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* ts at bp+0 */ Ttimespec + if Xclock_gettime(tls, int32(CLOCK_MONOTONIC), bp) < 0 && **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(ENOSYS) { + Xclock_gettime(tls, CLOCK_REALTIME, bp) + } + return Uint64FromInt64((**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec)*uint64(1000) + Uint64FromInt64((**(**Ttimespec)(__ccgo_up(bp))).Ftv_nsec/int64(1000000)) +} + +func _start_tcp(tls *TLS, pfd uintptr, family int32, sa uintptr, sl Tsocklen_t, q uintptr, ql int32) (r1 int32) { + bp := tls.Alloc(96) + defer tls.Free(96) + var fd, r int32 + var _ /* mh at bp+40 */ Tmsghdr + _, _ = fd, r + *(*[2]Tuint8_t)(unsafe.Pointer(bp + 32)) = [2]Tuint8_t{ + 0: Uint8FromInt32(ql >> int32(8)), + 1: Uint8FromInt32(ql), + } + *(*[2]Tiovec)(unsafe.Pointer(bp)) = [2]Tiovec{ + 0: { + Fiov_base: bp + 32, + Fiov_len: uint64(2), + }, + 1: { + Fiov_base: q, + Fiov_len: Uint64FromInt32(ql), + }, + } + **(**Tmsghdr)(__ccgo_up(bp + 40)) = Tmsghdr{ + Fmsg_name: sa, + Fmsg_namelen: sl, + Fmsg_iov: bp, + Fmsg_iovlen: int32(2), + } + fd = Xsocket(tls, family, Int32FromInt32(SOCK_STREAM)|Int32FromInt32(SOCK_CLOEXEC)|Int32FromInt32(SOCK_NONBLOCK), 0) + (*Tpollfd)(unsafe.Pointer(pfd)).Ffd = fd + (*Tpollfd)(unsafe.Pointer(pfd)).Fevents = int16(POLLOUT) + *(*int32)(unsafe.Pointer(bp + 36)) = int32(1) + if !(Xsetsockopt(tls, fd, int32(IPPROTO_TCP), int32(TCP_FASTOPEN_CONNECT), bp+36, uint32(4)) != 0) { + r = int32(Xsendmsg(tls, fd, bp+40, Int32FromInt32(MSG_FASTOPEN)|Int32FromInt32(MSG_NOSIGNAL))) + if r == ql+int32(2) { + (*Tpollfd)(unsafe.Pointer(pfd)).Fevents = int16(POLLIN) + } + if r >= 0 { + return r + } + if **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EINPROGRESS) { + return 0 + } + } + r = Xconnect(tls, fd, sa, sl) + if !(r != 0) || **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EINPROGRESS) { + return 0 + } + Xclose(tls, fd) + (*Tpollfd)(unsafe.Pointer(pfd)).Ffd = -int32(1) + return -int32(1) +} + +func _step_mh(tls *TLS, mh uintptr, n Tsize_t) { + /* Adjust iovec in msghdr to skip first n bytes. */ + for (*Tmsghdr)(unsafe.Pointer(mh)).Fmsg_iovlen != 0 && n >= (*Tiovec)(unsafe.Pointer((*Tmsghdr)(unsafe.Pointer(mh)).Fmsg_iov)).Fiov_len { + n = n - (*Tiovec)(unsafe.Pointer((*Tmsghdr)(unsafe.Pointer(mh)).Fmsg_iov)).Fiov_len + (*Tmsghdr)(unsafe.Pointer(mh)).Fmsg_iov += 16 + (*Tmsghdr)(unsafe.Pointer(mh)).Fmsg_iovlen = (*Tmsghdr)(unsafe.Pointer(mh)).Fmsg_iovlen - 1 + } + if !((*Tmsghdr)(unsafe.Pointer(mh)).Fmsg_iovlen != 0) { + return + } + (*Tiovec)(unsafe.Pointer((*Tmsghdr)(unsafe.Pointer(mh)).Fmsg_iov)).Fiov_base = (*Tiovec)(unsafe.Pointer((*Tmsghdr)(unsafe.Pointer(mh)).Fmsg_iov)).Fiov_base + uintptr(n) + **(**Tsize_t)(__ccgo_up((*Tmsghdr)(unsafe.Pointer(mh)).Fmsg_iov + 8)) -= n +} + +/* Internal contract for __res_msend[_rc]: asize must be >=512, nqueries + * must be sufficiently small to be safe as VLA size. In practice it's + * either 1 or 2, anyway. */ + +func X__res_msend_rc(tls *TLS, nqueries int32, queries uintptr, qlens uintptr, answers uintptr, alens uintptr, asize int32, conf uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v nqueries=%v queries=%v qlens=%v answers=%v alens=%v asize=%v conf=%v, (%v:)", tls, nqueries, queries, qlens, answers, alens, asize, conf, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(400) + defer tls.Free(400) + var alen, attempts, family, fd, i, j, next, nns, r, rcode, retry_interval, rlen, servfail_retry, timeout, v6 int32 + var alen_buf, apos, iplit, pfd, qpos uintptr + var sl Tsocklen_t + var t0, t1, t2, v10 uint64 + var v1, v2, v3, v4 t__predefined_size_t + var v18 bool + var _ /* __cb at bp+208 */ t__ptcb + var _ /* cs at bp+200 */ int32 + var _ /* mh at bp+232 */ Tmsghdr + var _ /* mh at bp+288 */ Tmsghdr + var _ /* mh at bp+344 */ Tmsghdr + var _ /* ns at bp+116 */ [3]struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + } + var _ /* sa at bp+88 */ struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = alen, alen_buf, apos, attempts, family, fd, i, iplit, j, next, nns, pfd, qpos, r, rcode, retry_interval, rlen, servfail_retry, sl, t0, t1, t2, timeout, v1, v10, v18, v2, v3, v4, v6 + defer func() { + Xrealloc(tls, alen_buf, 0) + Xrealloc(tls, apos, 0) + Xrealloc(tls, pfd, 0) + Xrealloc(tls, qpos, 0) + }() + *(*struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + })(unsafe.Pointer(bp + 88)) = struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + }{} + *(*uint16)(unsafe.Pointer(bp + 88)) = uint16(0) + **(**[3]struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + })(__ccgo_up(bp + 116)) = [3]struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + }{} + sl = uint32(16) + nns = 0 + family = int32(PF_INET) + v1 = Uint64FromInt32(nqueries+int32(2)) * 8 + pfd = Xrealloc(tls, pfd, v1) + v2 = Uint64FromInt32(nqueries) * 4 + qpos = Xrealloc(tls, qpos, v2) + v3 = Uint64FromInt32(nqueries) * 4 + apos = Xrealloc(tls, apos, v3) + v4 = Uint64FromInt32(nqueries) * 2 + alen_buf = Xrealloc(tls, alen_buf, v4) + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp+200) + timeout = Int32FromUint32(uint32(1000) * (*Tresolvconf)(unsafe.Pointer(conf)).Ftimeout) + attempts = Int32FromUint32((*Tresolvconf)(unsafe.Pointer(conf)).Fattempts) + nns = 0 + for { + if !(Uint32FromInt32(nns) < (*Tresolvconf)(unsafe.Pointer(conf)).Fnns) { + break + } + iplit = conf + uintptr(nns)*28 + if (*Taddress)(unsafe.Pointer(iplit)).Ffamily == int32(PF_INET) { + Xmemcpy(tls, bp+116+uintptr(nns)*28+4, iplit+8, uint64(4)) + (**(**[3]struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + })(__ccgo_up(bp + 116)))[nns].Fsin.Fsin_port = Xhtons(tls, uint16(53)) + (**(**[3]struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + })(__ccgo_up(bp + 116)))[nns].Fsin.Fsin_family = uint16(PF_INET) + } else { + sl = uint32(28) + Xmemcpy(tls, bp+116+uintptr(nns)*28+8, iplit+8, uint64(16)) + (*(*Tsockaddr_in6)(unsafe.Pointer(bp + 116 + uintptr(nns)*28))).Fsin6_port = Xhtons(tls, uint16(53)) + (*(*Tsockaddr_in6)(unsafe.Pointer(bp + 116 + uintptr(nns)*28))).Fsin6_scope_id = (*Taddress)(unsafe.Pointer(iplit)).Fscopeid + v6 = Int32FromInt32(PF_INET6) + family = v6 + (*(*Tsockaddr_in6)(unsafe.Pointer(bp + 116 + uintptr(nns)*28))).Fsin6_family = Uint16FromInt32(v6) + } + goto _5 + _5: + ; + nns = nns + 1 + } + /* Get local address and open/bind a socket */ + fd = Xsocket(tls, family, Int32FromInt32(SOCK_DGRAM)|Int32FromInt32(SOCK_CLOEXEC)|Int32FromInt32(SOCK_NONBLOCK), 0) + /* Handle case where system lacks IPv6 support */ + if fd < 0 && family == int32(PF_INET6) && **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EAFNOSUPPORT) { + i = 0 + for { + if !(i < nns && (**(**Taddress)(__ccgo_up(conf + uintptr(nns)*28))).Ffamily == int32(PF_INET6)) { + break + } + goto _7 + _7: + ; + i = i + 1 + } + if i == nns { + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 200)), uintptr(0)) + return -int32(1) + } + fd = Xsocket(tls, int32(PF_INET), Int32FromInt32(SOCK_DGRAM)|Int32FromInt32(SOCK_CLOEXEC)|Int32FromInt32(SOCK_NONBLOCK), 0) + family = int32(PF_INET) + sl = uint32(16) + } + /* Convert any IPv4 addresses in a mixed environment to v4-mapped */ + if fd >= 0 && family == int32(PF_INET6) { + *(*int32)(unsafe.Pointer(bp)) = 0 + Xsetsockopt(tls, fd, int32(IPPROTO_IPV6), int32(IPV6_V6ONLY), bp, uint32(4)) + i = 0 + for { + if !(i < nns) { + break + } + if Int32FromUint16((**(**[3]struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + })(__ccgo_up(bp + 116)))[i].Fsin.Fsin_family) != int32(PF_INET) { + goto _8 + } + Xmemcpy(tls, bp+116+uintptr(i)*28+8+uintptr(12), bp+116+uintptr(i)*28+4, uint64(4)) + Xmemcpy(tls, bp+116+uintptr(i)*28+8, __ccgo_ts+1027, uint64(12)) + (*(*Tsockaddr_in6)(unsafe.Pointer(bp + 116 + uintptr(i)*28))).Fsin6_family = uint16(PF_INET6) + (*(*Tsockaddr_in6)(unsafe.Pointer(bp + 116 + uintptr(i)*28))).Fsin6_flowinfo = uint32(0) + (*(*Tsockaddr_in6)(unsafe.Pointer(bp + 116 + uintptr(i)*28))).Fsin6_scope_id = uint32(0) + goto _8 + _8: + ; + i = i + 1 + } + } + (**(**struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + })(__ccgo_up(bp + 88))).Fsin.Fsin_family = Uint16FromInt32(family) + if fd < 0 || Xbind(tls, fd, bp+88, sl) < 0 { + if fd >= 0 { + Xclose(tls, fd) + } + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 200)), uintptr(0)) + return -int32(1) + } + /* Past this point, there are no errors. Each individual query will + * yield either no reply (indicated by zero length) or an answer + * packet which is up to the caller to interpret. */ + i = 0 + for { + if !(i < nqueries) { + break + } + (*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), i*8))).Ffd = -int32(1) + goto _9 + _9: + ; + i = i + 1 + } + (*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), nqueries*8))).Ffd = fd + (*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), nqueries*8))).Fevents = int16(POLLIN) + (*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), (nqueries+int32(1))*8))).Ffd = -int32(2) + __pthread_cleanup_push(tls, bp+208, __ccgo_fp(_cleanup), pfd) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 200)), uintptr(0)) + Xmemset(tls, alens, 0, uint64(4)*Uint64FromInt32(nqueries)) + retry_interval = timeout / attempts + next = 0 + v10 = _mtime(tls) + t2 = v10 + t0 = v10 + t1 = t2 - Uint64FromInt32(retry_interval) + for { + if !(t2-t0 < Uint64FromInt32(timeout)) { + break + } + /* This is the loop exit condition: that all queries + * have an accepted answer. */ + i = 0 + for { + if !(i < nqueries && **(**int32)(__ccgo_up(alens + uintptr(i)*4)) > 0) { + break + } + goto _12 + _12: + ; + i = i + 1 + } + if i == nqueries { + break + } + if t2-t1 >= Uint64FromInt32(retry_interval) { + /* Query all configured namservers in parallel */ + i = 0 + for { + if !(i < nqueries) { + break + } + if !(**(**int32)(__ccgo_up(alens + uintptr(i)*4)) != 0) { + j = 0 + for { + if !(j < nns) { + break + } + Xsendto(tls, fd, **(**uintptr)(__ccgo_up(queries + uintptr(i)*8)), Uint64FromInt32(**(**int32)(__ccgo_up(qlens + uintptr(i)*4))), int32(MSG_NOSIGNAL), bp+116+uintptr(j)*28, sl) + goto _14 + _14: + ; + j = j + 1 + } + } + goto _13 + _13: + ; + i = i + 1 + } + t1 = t2 + servfail_retry = int32(2) * nqueries + } + /* Wait for a response, or until time to retry */ + if Xpoll(tls, pfd, Uint64FromInt32(nqueries+int32(1)), Int32FromUint64(t1+Uint64FromInt32(retry_interval)-t2)) <= 0 { + goto _11 + } + for next < nqueries { + *(*[1]Tiovec)(unsafe.Pointer(bp + 8)) = [1]Tiovec{ + 0: { + Fiov_base: **(**uintptr)(__ccgo_up(answers + uintptr(next)*8)), + Fiov_len: Uint64FromInt32(asize), + }, + } + **(**Tmsghdr)(__ccgo_up(bp + 232)) = Tmsghdr{ + Fmsg_name: bp + 88, + Fmsg_namelen: sl, + Fmsg_iov: bp + 8, + Fmsg_iovlen: int32(1), + } + rlen = int32(Xrecvmsg(tls, fd, bp+232, 0)) + if rlen < 0 { + break + } + /* Ignore non-identifiable packets */ + if rlen < int32(4) { + continue + } + /* Ignore replies from addresses we didn't send to */ + j = 0 + for { + if !(j < nns && Xmemcmp(tls, bp+116+uintptr(j)*28, bp+88, uint64(sl)) != 0) { + break + } + goto _15 + _15: + ; + j = j + 1 + } + if j == nns { + continue + } + /* Find which query this answer goes with, if any */ + i = next + for { + if !(i < nqueries && (Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(answers + uintptr(next)*8))))) != Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(queries + uintptr(i)*8))))) || Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(answers + uintptr(next)*8)) + 1))) != Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(queries + uintptr(i)*8)) + 1))))) { + break + } + goto _16 + _16: + ; + i = i + 1 + } + if i == nqueries { + continue + } + if **(**int32)(__ccgo_up(alens + uintptr(i)*4)) != 0 { + continue + } + /* Only accept positive or negative responses; + * retry immediately on server failure, and ignore + * all other codes such as refusal. */ + switch Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(answers + uintptr(next)*8)) + 3))) & Int32FromInt32(15) { + case 0: + fallthrough + case int32(3): + case int32(2): + if v18 = servfail_retry != 0; v18 { + v6 = servfail_retry + servfail_retry = servfail_retry - 1 + } + if v18 && v6 != 0 { + Xsendto(tls, fd, **(**uintptr)(__ccgo_up(queries + uintptr(i)*8)), Uint64FromInt32(**(**int32)(__ccgo_up(qlens + uintptr(i)*4))), int32(MSG_NOSIGNAL), bp+116+uintptr(j)*28, sl) + } + fallthrough + default: + continue + } + /* Store answer in the right slot, or update next + * available temp slot if it's already in place. */ + **(**int32)(__ccgo_up(alens + uintptr(i)*4)) = rlen + if i == next { + for { + if !(next < nqueries && **(**int32)(__ccgo_up(alens + uintptr(next)*4)) != 0) { + break + } + goto _19 + _19: + ; + next = next + 1 + } + } else { + Xmemcpy(tls, **(**uintptr)(__ccgo_up(answers + uintptr(i)*8)), **(**uintptr)(__ccgo_up(answers + uintptr(next)*8)), Uint64FromInt32(rlen)) + } + /* Ignore further UDP if all slots full or TCP-mode */ + if next == nqueries { + (*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), nqueries*8))).Fevents = 0 + } + /* If answer is truncated (TC bit), fallback to TCP */ + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(answers + uintptr(i)*8)) + 2)))&int32(2) != 0 || (**(**Tmsghdr)(__ccgo_up(bp + 232))).Fmsg_flags&int32(MSG_TRUNC) != 0 { + **(**int32)(__ccgo_up(alens + uintptr(i)*4)) = -int32(1) + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), uintptr(0)) + r = _start_tcp(tls, pfd+uintptr(i)*8, family, bp+116+uintptr(j)*28, sl, **(**uintptr)(__ccgo_up(queries + uintptr(i)*8)), **(**int32)(__ccgo_up(qlens + uintptr(i)*4))) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 200)), uintptr(0)) + if r >= 0 { + *(*int32)(unsafe.Add(unsafe.Pointer(qpos), i*4)) = r + *(*int32)(unsafe.Add(unsafe.Pointer(apos), i*4)) = 0 + } + continue + } + } + i = 0 + for { + if !(i < nqueries) { + break + } + if int32((*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), i*8))).Frevents)&int32(POLLOUT) != 0 { + *(*[2]Tuint8_t)(unsafe.Pointer(bp + 52)) = [2]Tuint8_t{ + 0: Uint8FromInt32(**(**int32)(__ccgo_up(qlens + uintptr(i)*4)) >> int32(8)), + 1: Uint8FromInt32(**(**int32)(__ccgo_up(qlens + uintptr(i)*4))), + } + *(*[2]Tiovec)(unsafe.Pointer(bp + 24)) = [2]Tiovec{ + 0: { + Fiov_base: bp + 52, + Fiov_len: uint64(2), + }, + 1: { + Fiov_base: **(**uintptr)(__ccgo_up(queries + uintptr(i)*8)), + Fiov_len: Uint64FromInt32(**(**int32)(__ccgo_up(qlens + uintptr(i)*4))), + }, + } + **(**Tmsghdr)(__ccgo_up(bp + 288)) = Tmsghdr{ + Fmsg_iov: bp + 24, + Fmsg_iovlen: int32(2), + } + _step_mh(tls, bp+288, Uint64FromInt32(*(*int32)(unsafe.Add(unsafe.Pointer(qpos), i*4)))) + r = int32(Xsendmsg(tls, (*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), i*8))).Ffd, bp+288, int32(MSG_NOSIGNAL))) + if r < 0 { + goto out + } + **(**int32)(__ccgo_up(qpos + uintptr(i)*4)) += r + if *(*int32)(unsafe.Add(unsafe.Pointer(qpos), i*4)) == **(**int32)(__ccgo_up(qlens + uintptr(i)*4))+int32(2) { + (*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), i*8))).Fevents = int16(POLLIN) + } + } + goto _20 + _20: + ; + i = i + 1 + } + i = 0 + for { + if !(i < nqueries) { + break + } + if int32((*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), i*8))).Frevents)&int32(POLLIN) != 0 { + *(*[2]Tiovec)(unsafe.Pointer(bp + 56)) = [2]Tiovec{ + 0: { + Fiov_base: alen_buf + uintptr(i)*2, + Fiov_len: uint64(2), + }, + 1: { + Fiov_base: **(**uintptr)(__ccgo_up(answers + uintptr(i)*8)), + Fiov_len: Uint64FromInt32(asize), + }, + } + **(**Tmsghdr)(__ccgo_up(bp + 344)) = Tmsghdr{ + Fmsg_iov: bp + 56, + Fmsg_iovlen: int32(2), + } + _step_mh(tls, bp+344, Uint64FromInt32(*(*int32)(unsafe.Add(unsafe.Pointer(apos), i*4)))) + r = int32(Xrecvmsg(tls, (*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), i*8))).Ffd, bp+344, 0)) + if r <= 0 { + goto out + } + **(**int32)(__ccgo_up(apos + uintptr(i)*4)) += r + if *(*int32)(unsafe.Add(unsafe.Pointer(apos), i*4)) < int32(2) { + goto _21 + } + alen = Int32FromUint8(**(**uint8)(__ccgo_up(alen_buf + uintptr(i)*2)))*int32(256) + Int32FromUint8(**(**uint8)(__ccgo_up(alen_buf + uintptr(i)*2 + 1))) + if alen < int32(13) { + goto out + } + if *(*int32)(unsafe.Add(unsafe.Pointer(apos), i*4)) < alen+int32(2) && *(*int32)(unsafe.Add(unsafe.Pointer(apos), i*4)) < asize+int32(2) { + goto _21 + } + rcode = Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(answers + uintptr(i)*8)) + 3))) & int32(15) + if rcode != 0 && rcode != int32(3) { + goto out + } + /* Storing the length here commits the accepted answer. + * Immediately close TCP socket so as not to consume + * resources we no longer need. */ + **(**int32)(__ccgo_up(alens + uintptr(i)*4)) = alen + X__syscall1(tls, int64(SYS_close), int64((*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), i*8))).Ffd)) + (*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), i*8))).Ffd = -int32(1) + } + goto _21 + _21: + ; + i = i + 1 + } + goto _11 + _11: + ; + t2 = _mtime(tls) + } + goto out +out: + ; + __pthread_cleanup_pop(tls, bp+208, int32(1)) + /* Disregard any incomplete TCP results */ + i = 0 + for { + if !(i < nqueries) { + break + } + if **(**int32)(__ccgo_up(alens + uintptr(i)*4)) < 0 { + **(**int32)(__ccgo_up(alens + uintptr(i)*4)) = 0 + } + goto _22 + _22: + ; + i = i + 1 + } + return 0 +} + +func X__res_msend(tls *TLS, nqueries int32, queries uintptr, qlens uintptr, answers uintptr, alens uintptr, asize int32) (r int32) { + if __ccgo_strace { + trc("tls=%v nqueries=%v queries=%v qlens=%v answers=%v alens=%v asize=%v, (%v:)", tls, nqueries, queries, qlens, answers, alens, asize, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(112) + defer tls.Free(112) + var _ /* conf at bp+0 */ Tresolvconf + if X__get_resolv_conf(tls, bp, uintptr(0), uint64(0)) < 0 { + return -int32(1) + } + return X__res_msend_rc(tls, nqueries, queries, qlens, answers, alens, asize, bp) +} + +func X__res_send(tls *TLS, _msg uintptr, _msglen int32, _answer uintptr, _anslen int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v _msg=%v _msglen=%v _answer=%v _anslen=%v, (%v:)", tls, _msg, _msglen, _answer, _anslen, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(544) + defer tls.Free(544) + *(*uintptr)(unsafe.Pointer(bp)) = _msg + *(*int32)(unsafe.Pointer(bp + 8)) = _msglen + *(*uintptr)(unsafe.Pointer(bp + 16)) = _answer + *(*int32)(unsafe.Pointer(bp + 24)) = _anslen + var r, v1 int32 + var _ /* buf at bp+28 */ [512]uint8 + _, _ = r, v1 + if **(**int32)(__ccgo_up(bp + 24)) < int32(512) { + r = X__res_send(tls, **(**uintptr)(__ccgo_up(bp)), **(**int32)(__ccgo_up(bp + 8)), bp+28, int32(512)) + if r >= 0 { + if r < **(**int32)(__ccgo_up(bp + 24)) { + v1 = r + } else { + v1 = **(**int32)(__ccgo_up(bp + 24)) + } + Xmemcpy(tls, **(**uintptr)(__ccgo_up(bp + 16)), bp+28, Uint64FromInt32(v1)) + } + return r + } + r = X__res_msend(tls, int32(1), bp, bp+8, bp+16, bp+24, **(**int32)(__ccgo_up(bp + 24))) + if r < 0 || !(**(**int32)(__ccgo_up(bp + 24)) != 0) { + v1 = -int32(1) + } else { + v1 = **(**int32)(__ccgo_up(bp + 24)) + } + return v1 +} + +func Xres_send(tls *TLS, _msg uintptr, _msglen int32, _answer uintptr, _anslen int32) (r int32) { + if __ccgo_strace { + trc("tls=%v _msg=%v _msglen=%v _answer=%v _anslen=%v, (%v:)", tls, _msg, _msglen, _answer, _anslen, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__res_send(tls, _msg, _msglen, _answer, _anslen) +} + +/* This is completely unused, and exists purely to satisfy broken apps. */ + +func X__res_state(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(unsafe.Pointer(&_res1)) +} + +var _res1 t__res_state + +func X__get_resolv_conf(tls *TLS, conf uintptr, search uintptr, search_sz Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v conf=%v search=%v search_sz=%v, (%v:)", tls, conf, search, search_sz, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(752) + defer tls.Free(752) + var c, nns, v1, v2 int32 + var f, p uintptr + var l Tsize_t + var x, x1, x2, v5 uint64 + var v4 bool + var _ /* _buf at bp+256 */ [256]uint8 + var _ /* _f at bp+512 */ TFILE + var _ /* line at bp+0 */ [256]uint8 + var _ /* z at bp+744 */ uintptr + _, _, _, _, _, _, _, _, _, _, _, _ = c, f, l, nns, p, x, x1, x2, v1, v2, v4, v5 + nns = 0 + (*Tresolvconf)(unsafe.Pointer(conf)).Fndots = uint32(1) + (*Tresolvconf)(unsafe.Pointer(conf)).Ftimeout = uint32(5) + (*Tresolvconf)(unsafe.Pointer(conf)).Fattempts = uint32(2) + if search != 0 { + **(**uint8)(__ccgo_up(search)) = uint8(0) + } + f = X__fopen_rb_ca(tls, __ccgo_ts+1149, bp+512, bp+256, uint64(256)) + if !(f != 0) { + switch **(**int32)(__ccgo_up(X__errno_location(tls))) { + case int32(ENOENT): + fallthrough + case int32(ENOTDIR): + fallthrough + case int32(EACCES): + goto no_resolv_conf + default: + return -int32(1) + } + } + for Xfgets(tls, bp, int32(256), f) != 0 { + if !(Xstrchr(tls, bp, int32('\n')) != 0) && !((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_EOF) != 0) { + for cond := true; cond; cond = c != int32('\n') && c != -int32(1) { + c = Xgetc(tls, f) + } + continue + } + if v4 = !(Xstrncmp(tls, bp, __ccgo_ts+1166, uint64(7)) != 0); v4 { + v1 = Int32FromUint8((**(**[256]uint8)(__ccgo_up(bp)))[int32(7)]) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _3 + _3: + } + if v4 && v2 != 0 { + p = Xstrstr(tls, bp, __ccgo_ts+1174) + if p != 0 && BoolInt32(uint32(**(**uint8)(__ccgo_up(p + 6)))-uint32('0') < uint32(10)) != 0 { + p = p + uintptr(6) + x = Xstrtoul(tls, p, bp+744, int32(10)) + if **(**uintptr)(__ccgo_up(bp + 744)) != p { + if x > uint64(15) { + v5 = uint64(15) + } else { + v5 = x + } + (*Tresolvconf)(unsafe.Pointer(conf)).Fndots = uint32(v5) + } + } + p = Xstrstr(tls, bp, __ccgo_ts+1181) + if p != 0 && BoolInt32(uint32(**(**uint8)(__ccgo_up(p + 9)))-uint32('0') < uint32(10)) != 0 { + p = p + uintptr(9) + x1 = Xstrtoul(tls, p, bp+744, int32(10)) + if **(**uintptr)(__ccgo_up(bp + 744)) != p { + if x1 > uint64(10) { + v5 = uint64(10) + } else { + v5 = x1 + } + (*Tresolvconf)(unsafe.Pointer(conf)).Fattempts = uint32(v5) + } + } + p = Xstrstr(tls, bp, __ccgo_ts+1191) + if p != 0 && (BoolInt32(uint32(**(**uint8)(__ccgo_up(p + 8)))-uint32('0') < uint32(10)) != 0 || Int32FromUint8(**(**uint8)(__ccgo_up(p + 8))) == int32('.')) { + p = p + uintptr(8) + x2 = Xstrtoul(tls, p, bp+744, int32(10)) + if **(**uintptr)(__ccgo_up(bp + 744)) != p { + if x2 > uint64(60) { + v5 = uint64(60) + } else { + v5 = x2 + } + (*Tresolvconf)(unsafe.Pointer(conf)).Ftimeout = uint32(v5) + } + } + continue + } + if v4 = !(Xstrncmp(tls, bp, __ccgo_ts+1200, uint64(10)) != 0); v4 { + v1 = Int32FromUint8((**(**[256]uint8)(__ccgo_up(bp)))[int32(10)]) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _10 + _10: + } + if v4 && v2 != 0 { + if nns >= int32(MAXNS) { + continue + } + p = bp + uintptr(11) + for { + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(p))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _15 + _15: + if !(v2 != 0) { + break + } + goto _12 + _12: + ; + p = p + 1 + } + **(**uintptr)(__ccgo_up(bp + 744)) = p + for { + if v4 = **(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 744)))) != 0; v4 { + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 744))))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _19 + _19: + } + if !(v4 && !(v2 != 0)) { + break + } + goto _16 + _16: + ; + **(**uintptr)(__ccgo_up(bp + 744)) = **(**uintptr)(__ccgo_up(bp + 744)) + 1 + } + **(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 744)))) = uint8(0) + if X__lookup_ipliteral(tls, conf+uintptr(nns)*28, p, PF_UNSPEC) > 0 { + nns = nns + 1 + } + continue + } + if !(search != 0) { + continue + } + if v4 = Xstrncmp(tls, bp, __ccgo_ts+1211, uint64(6)) != 0 && Xstrncmp(tls, bp, __ccgo_ts+1218, uint64(6)) != 0; !v4 { + v1 = Int32FromUint8((**(**[256]uint8)(__ccgo_up(bp)))[int32(6)]) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _23 + _23: + } + if v4 || !(v2 != 0) { + continue + } + p = bp + uintptr(7) + for { + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(p))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _28 + _28: + if !(v2 != 0) { + break + } + goto _25 + _25: + ; + p = p + 1 + } + l = _strlen(tls, p) + /* This can never happen anyway with chosen buffer sizes. */ + if l >= search_sz { + continue + } + Xmemcpy(tls, search, p, l+uint64(1)) + } + X__fclose_ca(tls, f) + goto no_resolv_conf +no_resolv_conf: + ; + if !(nns != 0) { + X__lookup_ipliteral(tls, conf, __ccgo_ts+1225, PF_UNSPEC) + nns = int32(1) + } + (*Tresolvconf)(unsafe.Pointer(conf)).Fnns = Uint32FromInt32(nns) + return 0 +} + +func Xsend(tls *TLS, fd int32, buf uintptr, len1 Tsize_t, flags int32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v len1=%v flags=%v, (%v:)", tls, fd, buf, len1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xsendto(tls, fd, buf, len1, flags, uintptr(0), uint32(0)) +} + +func Xsendmmsg(tls *TLS, fd int32, msgvec uintptr, vlen uint32, flags uint32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v msgvec=%v vlen=%v flags=%v, (%v:)", tls, fd, msgvec, vlen, flags, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var i, v2 int32 + var r Tssize_t + _, _, _ = i, r, v2 + if vlen > uint32(IOV_MAX) { + vlen = uint32(IOV_MAX) + } /* This matches the kernel. */ + if !(vlen != 0) { + return 0 + } + i = 0 + for { + if !(Uint32FromInt32(i) < vlen) { + break + } + /* As an unfortunate inconsistency, the sendmmsg API uses + * unsigned int for the resulting msg_len, despite sendmsg + * returning ssize_t. However Linux limits the total bytes + * sent by sendmsg to INT_MAX, so the assignment is safe. */ + r = Xsendmsg(tls, fd, msgvec+uintptr(i)*64, Int32FromUint32(flags)) + if r < 0 { + goto error + } + (**(**Tmmsghdr)(__ccgo_up(msgvec + uintptr(i)*64))).Fmsg_len = Uint32FromInt64(r) + goto _1 + _1: + ; + i = i + 1 + } + goto error +error: + ; + if i != 0 { + v2 = i + } else { + v2 = -int32(1) + } + return v2 + return r1 +} + +func Xsendmsg(tls *TLS, fd int32, msg uintptr, flags int32) (r1 Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v msg=%v flags=%v, (%v:)", tls, fd, msg, flags, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(1120) + defer tls.Free(1120) + var c1, v3 uintptr + var r, v12 int64 + var v1 int32 + var v10, v11, v6, v7, v8, v9 Tsyscall_arg_t + var _ /* chbuf at bp+56 */ [66]Tcmsghdr + var _ /* h at bp+0 */ Tmsghdr + _, _, _, _, _, _, _, _, _, _, _ = c1, r, v1, v10, v11, v12, v3, v6, v7, v8, v9 + if msg != 0 { + **(**Tmsghdr)(__ccgo_up(bp)) = **(**Tmsghdr)(__ccgo_up(msg)) + v1 = Int32FromInt32(0) + (**(**Tmsghdr)(__ccgo_up(bp))).F__pad2 = v1 + (**(**Tmsghdr)(__ccgo_up(bp))).F__pad1 = v1 + msg = bp + if (**(**Tmsghdr)(__ccgo_up(bp))).Fmsg_controllen != 0 { + if uint64((**(**Tmsghdr)(__ccgo_up(bp))).Fmsg_controllen) > uint64(1056) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOMEM) + return int64(-int32(1)) + } + Xmemcpy(tls, bp+56, (**(**Tmsghdr)(__ccgo_up(bp))).Fmsg_control, uint64((**(**Tmsghdr)(__ccgo_up(bp))).Fmsg_controllen)) + (**(**Tmsghdr)(__ccgo_up(bp))).Fmsg_control = bp + 56 + if uint64((*Tmsghdr)(unsafe.Pointer(bp)).Fmsg_controllen) >= uint64(16) { + v3 = (*Tmsghdr)(unsafe.Pointer(bp)).Fmsg_control + } else { + v3 = UintptrFromInt32(0) + } + c1 = v3 + for { + if !(c1 != 0) { + break + } + (*Tcmsghdr)(unsafe.Pointer(c1)).F__pad1 = 0 + goto _2 + _2: + ; + if uint64((*Tcmsghdr)(unsafe.Pointer(c1)).Fcmsg_len) < uint64(16) || (uint64((*Tcmsghdr)(unsafe.Pointer(c1)).Fcmsg_len)+uint64(8)-uint64(1))&Uint64FromInt64(^Int64FromUint64(Uint64FromInt64(8)-Uint64FromInt32(1)))+uint64(16) >= Uint64FromInt64(int64((*Tmsghdr)(unsafe.Pointer(bp)).Fmsg_control+uintptr((*Tmsghdr)(unsafe.Pointer(bp)).Fmsg_controllen))-int64(c1)) { + v3 = uintptr(0) + } else { + v3 = c1 + uintptr((uint64((*Tcmsghdr)(unsafe.Pointer(c1)).Fcmsg_len)+Uint64FromInt64(8)-Uint64FromInt32(1))&Uint64FromInt64(^Int64FromUint64(Uint64FromInt64(8)-Uint64FromInt32(1)))) + } + c1 = v3 + } + } + } + v1 = int32(SYS_sendmsg) + _ = int32(__SC_sendmsg) + v6 = int64(fd) + v7 = int64(msg) + v8 = int64(flags) + v9 = int64(Int32FromInt32(0)) + v10 = int64(Int32FromInt32(0)) + v11 = int64(Int32FromInt32(0)) + if int32(1) != 0 { + r = ___syscall_cp(tls, int64(v1), v6, v7, v8, v9, v10, v11) + } else { + r = X__syscall6(tls, int64(v1), v6, v7, v8, v9, v10, v11) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v12 = r + goto _13 + } + v12 = r + goto _13 +_13: + return X__syscall_ret(tls, Uint64FromInt64(v12)) +} + +func Xsendto(tls *TLS, fd int32, buf uintptr, len1 Tsize_t, flags int32, addr uintptr, alen Tsocklen_t) (r1 Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v len1=%v flags=%v addr=%v alen=%v, (%v:)", tls, fd, buf, len1, flags, addr, alen, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v8 int64 + var v1 int32 + var v2, v3, v4, v5, v6, v7 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _ = r, v1, v2, v3, v4, v5, v6, v7, v8 + v1 = int32(SYS_sendto) + _ = int32(__SC_sendto) + v2 = int64(fd) + v3 = int64(buf) + v4 = Int64FromUint64(len1) + v5 = int64(flags) + v6 = int64(addr) + v7 = Int64FromUint32(alen) + if int32(1) != 0 { + r = ___syscall_cp(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _9 + } + v8 = r + goto _9 +_9: + return X__syscall_ret(tls, Uint64FromInt64(v8)) +} + +func Xendservent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } +} + +func Xsetservent(tls *TLS, stayopen int32) { + if __ccgo_strace { + trc("tls=%v stayopen=%v, (%v:)", tls, stayopen, origin(2)) + } +} + +func Xgetservent(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(0) +} + +func Xsetsockopt(tls *TLS, fd int32, level int32, optname int32, optval uintptr, optlen Tsocklen_t) (r2 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v level=%v optname=%v optval=%v optlen=%v, (%v:)", tls, fd, level, optname, optval, optlen, origin(2)) + defer func() { trc("-> %v", r2) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var r, v8 int64 + var r1, v1 int32 + var s Ttime_t + var tv uintptr + var us Tsuseconds_t + var v10 uint64 + var v2, v3, v4, v5, v6, v7 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = r, r1, s, tv, us, v1, v10, v2, v3, v4, v5, v6, v7, v8 + v1 = int32(SYS_setsockopt) + _ = int32(__SC_setsockopt) + v2 = int64(fd) + v3 = int64(level) + v4 = int64(optname) + v5 = int64(optval) + v6 = Int64FromUint32(optlen) + v7 = int64(Int32FromInt32(0)) + if 0 != 0 { + r = ___syscall_cp(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _9 + } + v8 = r + goto _9 +_9: + r1 = int32(v8) + if r1 == -int32(ENOPROTOOPT) { + switch level { + case int32(SOL_SOCKET): + switch optname { + case int32(SO_RCVTIMEO): + fallthrough + case int32(SO_SNDTIMEO): + if true { + break + } + if uint64(optlen) < uint64(16) { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL)))) + } + tv = optval + s = (*Ttimeval)(unsafe.Pointer(tv)).Ftv_sec + us = (*Ttimeval)(unsafe.Pointer(tv)).Ftv_usec + if !!((Uint64FromInt64(s)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EOPNOTSUPP)))) + } + if optname == int32(SO_RCVTIMEO) { + optname = int32(SO_RCVTIMEO_OLD) + } + if optname == int32(SO_SNDTIMEO) { + optname = int32(SO_SNDTIMEO_OLD) + } + if !((Uint64FromInt64(us)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) { + v10 = Uint64FromInt64(us) + } else { + v10 = uint64(0x7fffffff) + (0+Uint64FromInt64(us))>>int32(63) + } + *(*[2]int64)(unsafe.Pointer(bp)) = [2]int64{ + 0: s, + 1: int64(Int32FromUint64(v10)), + } + v1 = int32(SYS_setsockopt) + _ = int32(__SC_setsockopt) + v2 = int64(fd) + v3 = int64(level) + v4 = int64(optname) + v5 = int64(bp) + v6 = Int64FromUint64(Uint64FromInt32(2) * Uint64FromInt64(8)) + v7 = int64(Int32FromInt32(0)) + if 0 != 0 { + r = ___syscall_cp(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _19 + } + v8 = r + goto _19 + _19: + r1 = int32(v8) + case int32(SO_TIMESTAMP): + fallthrough + case int32(SO_TIMESTAMPNS): + if true { + break + } + if optname == int32(SO_TIMESTAMP) { + optname = int32(SO_TIMESTAMP_OLD) + } + if optname == int32(SO_TIMESTAMPNS) { + optname = int32(SO_TIMESTAMPNS_OLD) + } + v1 = int32(SYS_setsockopt) + _ = int32(__SC_setsockopt) + v2 = int64(fd) + v3 = int64(level) + v4 = int64(optname) + v5 = int64(optval) + v6 = Int64FromUint32(optlen) + v7 = int64(Int32FromInt32(0)) + if 0 != 0 { + r = ___syscall_cp(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _28 + } + v8 = r + goto _28 + _28: + r1 = int32(v8) + break + } + } + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r1))) +} + +func Xshutdown(tls *TLS, fd int32, how int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v how=%v, (%v:)", tls, fd, how, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v8 int64 + var v1 int32 + var v2, v3, v4, v5, v6, v7 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _ = r, v1, v2, v3, v4, v5, v6, v7, v8 + v1 = int32(SYS_shutdown) + _ = int32(__SC_shutdown) + v2 = int64(fd) + v3 = int64(how) + v4 = int64(Int32FromInt32(0)) + v5 = int64(Int32FromInt32(0)) + v6 = int64(Int32FromInt32(0)) + v7 = int64(Int32FromInt32(0)) + if 0 != 0 { + r = ___syscall_cp(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _9 + } + v8 = r + goto _9 +_9: + return int32(X__syscall_ret(tls, Uint64FromInt64(v8))) +} + +func Xsockatmark(tls *TLS, s int32) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var _ /* ret at bp+0 */ int32 + if Xioctl(tls, s, int32(SIOCATMARK), VaList(bp+16, bp)) < 0 { + return -int32(1) + } + return **(**int32)(__ccgo_up(bp)) +} + +func Xsocket(tls *TLS, domain int32, type1 int32, protocol int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v domain=%v type1=%v protocol=%v, (%v:)", tls, domain, type1, protocol, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v17, v8 int64 + var s, v1, v10 int32 + var v11, v12, v13, v14, v15, v16, v2, v3, v4, v5, v6, v7 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = r, s, v1, v10, v11, v12, v13, v14, v15, v16, v17, v2, v3, v4, v5, v6, v7, v8 + v1 = int32(SYS_socket) + _ = int32(__SC_socket) + v2 = int64(domain) + v3 = int64(type1) + v4 = int64(protocol) + v5 = int64(Int32FromInt32(0)) + v6 = int64(Int32FromInt32(0)) + v7 = int64(Int32FromInt32(0)) + if 0 != 0 { + r = ___syscall_cp(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _9 + } + v8 = r + goto _9 +_9: + s = int32(v8) + if (s == -int32(EINVAL) || s == -int32(EPROTONOSUPPORT)) && type1&(Int32FromInt32(SOCK_CLOEXEC)|Int32FromInt32(SOCK_NONBLOCK)) != 0 { + v10 = int32(SYS_socket) + _ = int32(__SC_socket) + v11 = int64(domain) + v12 = int64(type1 & ^(Int32FromInt32(SOCK_CLOEXEC) | Int32FromInt32(SOCK_NONBLOCK))) + v13 = int64(protocol) + v14 = int64(Int32FromInt32(0)) + v15 = int64(Int32FromInt32(0)) + v16 = int64(Int32FromInt32(0)) + if 0 != 0 { + r = ___syscall_cp(tls, int64(v10), v11, v12, v13, v14, v15, v16) + } else { + r = X__syscall6(tls, int64(v10), v11, v12, v13, v14, v15, v16) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v17 = r + goto _18 + } + v17 = r + goto _18 + _18: + s = int32(v17) + if s < 0 { + return int32(X__syscall_ret(tls, Uint64FromInt32(s))) + } + if type1&int32(SOCK_CLOEXEC) != 0 { + X__syscall3(tls, int64(SYS_fcntl), int64(s), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + } + if type1&int32(SOCK_NONBLOCK) != 0 { + X__syscall3(tls, int64(SYS_fcntl), int64(s), int64(Int32FromInt32(F_SETFL)), int64(Int32FromInt32(O_NONBLOCK))) + } + } + return int32(X__syscall_ret(tls, Uint64FromInt32(s))) +} + +func Xsocketpair(tls *TLS, domain int32, type1 int32, protocol int32, fd uintptr) (r2 int32) { + if __ccgo_strace { + trc("tls=%v domain=%v type1=%v protocol=%v fd=%v, (%v:)", tls, domain, type1, protocol, fd, origin(2)) + defer func() { trc("-> %v", r2) }() + } + var r, v17, v8 int64 + var r1, v1, v10 int32 + var v11, v12, v13, v14, v15, v16, v2, v3, v4, v5, v6, v7 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = r, r1, v1, v10, v11, v12, v13, v14, v15, v16, v17, v2, v3, v4, v5, v6, v7, v8 + v1 = int32(SYS_socketpair) + _ = int32(__SC_socketpair) + v2 = int64(domain) + v3 = int64(type1) + v4 = int64(protocol) + v5 = int64(fd) + v6 = int64(Int32FromInt32(0)) + v7 = int64(Int32FromInt32(0)) + if 0 != 0 { + r = ___syscall_cp(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _9 + } + v8 = r + goto _9 +_9: + r1 = int32(X__syscall_ret(tls, Uint64FromInt64(v8))) + if r1 < 0 && (**(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EINVAL) || **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EPROTONOSUPPORT)) && type1&(Int32FromInt32(SOCK_CLOEXEC)|Int32FromInt32(SOCK_NONBLOCK)) != 0 { + v10 = int32(SYS_socketpair) + _ = int32(__SC_socketpair) + v11 = int64(domain) + v12 = int64(type1 & ^(Int32FromInt32(SOCK_CLOEXEC) | Int32FromInt32(SOCK_NONBLOCK))) + v13 = int64(protocol) + v14 = int64(fd) + v15 = int64(Int32FromInt32(0)) + v16 = int64(Int32FromInt32(0)) + if 0 != 0 { + r = ___syscall_cp(tls, int64(v10), v11, v12, v13, v14, v15, v16) + } else { + r = X__syscall6(tls, int64(v10), v11, v12, v13, v14, v15, v16) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v17 = r + goto _18 + } + v17 = r + goto _18 + _18: + r1 = int32(X__syscall_ret(tls, Uint64FromInt64(v17))) + if r1 < 0 { + return r1 + } + if type1&int32(SOCK_CLOEXEC) != 0 { + X__syscall3(tls, int64(SYS_fcntl), int64(**(**int32)(__ccgo_up(fd))), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + X__syscall3(tls, int64(SYS_fcntl), int64(**(**int32)(__ccgo_up(fd + 1*4))), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + } + if type1&int32(SOCK_NONBLOCK) != 0 { + X__syscall3(tls, int64(SYS_fcntl), int64(**(**int32)(__ccgo_up(fd))), int64(Int32FromInt32(F_SETFL)), int64(Int32FromInt32(O_NONBLOCK))) + X__syscall3(tls, int64(SYS_fcntl), int64(**(**int32)(__ccgo_up(fd + 1*4))), int64(Int32FromInt32(F_SETFL)), int64(Int32FromInt32(O_NONBLOCK))) + } + } + return r1 +} + +const SHADOW = "/etc/shadow" + +type Tgroup = struct { + Fgr_name uintptr + Fgr_passwd uintptr + Fgr_gid Tgid_t + Fgr_mem uintptr +} + +type Tspwd = struct { + Fsp_namp uintptr + Fsp_pwdp uintptr + Fsp_lstchg int64 + Fsp_min int64 + Fsp_max int64 + Fsp_warn int64 + Fsp_inact int64 + Fsp_expire int64 + Fsp_flag uint64 +} + +func Xfgetgrent(tls *TLS, f uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var _ /* nmem at bp+16 */ Tsize_t + var _ /* res at bp+0 */ uintptr + var _ /* size at bp+8 */ Tsize_t + **(**Tsize_t)(__ccgo_up(bp + 8)) = uint64(0) + **(**Tsize_t)(__ccgo_up(bp + 16)) = uint64(0) + X__getgrent_a(tls, f, uintptr(unsafe.Pointer(&_gr)), uintptr(unsafe.Pointer(&_line1)), bp+8, uintptr(unsafe.Pointer(&_mem)), bp+16, bp) + return **(**uintptr)(__ccgo_up(bp)) +} + +var _line1 uintptr + +var _mem uintptr + +var _gr Tgroup + +func Xfgetpwent(tls *TLS, f uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* res at bp+8 */ uintptr + var _ /* size at bp+0 */ Tsize_t + **(**Tsize_t)(__ccgo_up(bp)) = uint64(0) + X__getpwent_a(tls, f, uintptr(unsafe.Pointer(&_pw)), uintptr(unsafe.Pointer(&_line2)), bp, bp+8) + return **(**uintptr)(__ccgo_up(bp + 8)) +} + +var _line2 uintptr + +var _pw Tpasswd + +const GETGRBYGID = 3 +const GETGRBYNAME = 2 +const GETINITGR = 15 +const GETPWBYNAME = 0 +const GETPWBYUID = 1 +const GRFOUND = 1 +const GRGID = 4 +const GRMEMCNT = 5 +const GRNAMELEN = 2 +const GRPASSWDLEN = 3 +const GRVERSION = 0 +const GR_LEN = 6 +const INITGRFOUND = 1 +const INITGRNGRPS = 2 +const INITGRVERSION = 0 +const INITGR_LEN = 3 +const NSCDVERSION = 2 +const PWDIRLEN = 7 +const PWFOUND = 1 +const PWGECOSLEN = 6 +const PWGID = 5 +const PWNAMELEN = 2 +const PWPASSWDLEN = 3 +const PWSHELLLEN = 8 +const PWUID = 4 +const PWVERSION = 0 +const PW_LEN = 9 +const REQKEYLEN = 2 +const REQTYPE = 1 +const REQVERSION = 0 +const REQ_LEN = 3 + +func _itoa1(tls *TLS, p uintptr, x Tuint32_t) (r uintptr) { + var v1 uintptr + _ = v1 + // number of digits in a uint32_t + NUL + p = p + uintptr(11) + p = p - 1 + v1 = p + **(**uint8)(__ccgo_up(v1)) = uint8(0) + for cond := true; cond; cond = x != 0 { + p = p - 1 + v1 = p + **(**uint8)(__ccgo_up(v1)) = uint8(uint32('0') + x%uint32(10)) + x = x / uint32(10) + } + return p +} + +func X__getgr_a(tls *TLS, name uintptr, gid Tgid_t, gr uintptr, buf uintptr, size uintptr, mem uintptr, nmem uintptr, res uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v gid=%v gr=%v buf=%v size=%v mem=%v nmem=%v res=%v, (%v:)", tls, name, gid, gr, buf, size, mem, nmem, res, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + var f, key, ptr, tmp, tmp1 uintptr + var grlist_len, len1 Tsize_t + var i, req, v10 Tint32_t + var rv, v1 int32 + var v5, v6 Tuint32_t + var _ /* cs at bp+0 */ int32 + var _ /* gidbuf at bp+28 */ [11]uint8 + var _ /* groupbuf at bp+4 */ [6]Tint32_t + var _ /* name_len at bp+44 */ Tuint32_t + var _ /* swap at bp+40 */ int32 + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = f, grlist_len, i, key, len1, ptr, req, rv, tmp, tmp1, v1, v10, v5, v6 + rv = 0 + **(**uintptr)(__ccgo_up(res)) = uintptr(0) + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp) + f = Xfopen(tls, __ccgo_ts+1235, __ccgo_ts+315) + if !(f != 0) { + rv = **(**int32)(__ccgo_up(X__errno_location(tls))) + goto done + } + for { + v1 = X__getgrent_a(tls, f, gr, buf, size, mem, nmem, res) + rv = v1 + if !(!(v1 != 0) && **(**uintptr)(__ccgo_up(res)) != 0) { + break + } + if name != 0 && !(Xstrcmp(tls, name, (*Tgroup)(unsafe.Pointer(**(**uintptr)(__ccgo_up(res)))).Fgr_name) != 0) || !(name != 0) && (*Tgroup)(unsafe.Pointer(**(**uintptr)(__ccgo_up(res)))).Fgr_gid == gid { + break + } + } + Xfclose(tls, f) + if !(**(**uintptr)(__ccgo_up(res)) != 0) && (rv == 0 || rv == int32(ENOENT) || rv == int32(ENOTDIR)) { + if name != 0 { + v1 = int32(GETGRBYNAME) + } else { + v1 = int32(GETGRBYGID) + } + req = v1 + **(**[6]Tint32_t)(__ccgo_up(bp + 4)) = [6]Tint32_t{} + len1 = uint64(0) + grlist_len = uint64(0) + **(**[11]uint8)(__ccgo_up(bp + 28)) = [11]uint8{} + **(**int32)(__ccgo_up(bp + 40)) = 0 + if name != 0 { + key = name + } else { + if gid < uint32(0) || gid > uint32(0xffffffff) { + rv = 0 + goto done + } + key = _itoa1(tls, bp+28, gid) + } + f = X__nscd_query(tls, req, key, bp+4, uint64(24), bp+40) + if !(f != 0) { + rv = **(**int32)(__ccgo_up(X__errno_location(tls))) + goto done + } + if !((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRFOUND)] != 0) { + rv = 0 + goto cleanup_f + } + if !((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRNAMELEN)] != 0) || !((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRPASSWDLEN)] != 0) { + rv = int32(EIO) + goto cleanup_f + } + if Uint64FromInt32((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRNAMELEN)]) > uint64(0xffffffffffffffff)-Uint64FromInt32((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRPASSWDLEN)]) { + rv = int32(ENOMEM) + goto cleanup_f + } + len1 = Uint64FromInt32((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRNAMELEN)] + (**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRPASSWDLEN)]) + i = 0 + for { + if !(i < (**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRMEMCNT)]) { + break + } + if Xfread(tls, bp+44, uint64(4), uint64(1), f) < uint64(1) { + if Xferror(tls, f) != 0 { + v1 = **(**int32)(__ccgo_up(X__errno_location(tls))) + } else { + v1 = int32(EIO) + } + rv = v1 + goto cleanup_f + } + if **(**int32)(__ccgo_up(bp + 40)) != 0 { + v5 = **(**Tuint32_t)(__ccgo_up(bp + 44)) + v6 = v5>>int32(24) | v5>>int32(8)&uint32(0xff00) | v5< uint64(0xffffffffffffffff)-grlist_len || uint64(**(**Tuint32_t)(__ccgo_up(bp + 44))) > uint64(0xffffffffffffffff)-len1 { + rv = int32(ENOMEM) + goto cleanup_f + } + len1 = len1 + uint64(**(**Tuint32_t)(__ccgo_up(bp + 44))) + grlist_len = grlist_len + uint64(**(**Tuint32_t)(__ccgo_up(bp + 44))) + goto _3 + _3: + ; + i = i + 1 + } + if len1 > **(**Tsize_t)(__ccgo_up(size)) || !(**(**uintptr)(__ccgo_up(buf)) != 0) { + tmp = Xrealloc(tls, **(**uintptr)(__ccgo_up(buf)), len1) + if !(tmp != 0) { + rv = **(**int32)(__ccgo_up(X__errno_location(tls))) + goto cleanup_f + } + **(**uintptr)(__ccgo_up(buf)) = tmp + **(**Tsize_t)(__ccgo_up(size)) = len1 + } + if !(Xfread(tls, **(**uintptr)(__ccgo_up(buf)), len1, uint64(1), f) != 0) { + if Xferror(tls, f) != 0 { + v1 = **(**int32)(__ccgo_up(X__errno_location(tls))) + } else { + v1 = int32(EIO) + } + rv = v1 + goto cleanup_f + } + if Uint64FromInt32((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRMEMCNT)]+int32(1)) > **(**Tsize_t)(__ccgo_up(nmem)) { + if Uint64FromInt32((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRMEMCNT)]+int32(1)) > Uint64FromUint64(0xffffffffffffffff)/Uint64FromInt64(8) { + rv = int32(ENOMEM) + goto cleanup_f + } + tmp1 = Xrealloc(tls, **(**uintptr)(__ccgo_up(mem)), Uint64FromInt32((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRMEMCNT)]+Int32FromInt32(1))*uint64(8)) + if !(tmp1 != 0) { + rv = **(**int32)(__ccgo_up(X__errno_location(tls))) + goto cleanup_f + } + **(**uintptr)(__ccgo_up(mem)) = tmp1 + **(**Tsize_t)(__ccgo_up(nmem)) = Uint64FromInt32((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRMEMCNT)] + int32(1)) + } + if (**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRMEMCNT)] != 0 { + **(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(mem)))) = **(**uintptr)(__ccgo_up(buf)) + uintptr((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRNAMELEN)]) + uintptr((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRPASSWDLEN)]) + ptr = **(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(mem)))) + i = Int32FromInt32(0) + for { + if !(ptr != **(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(mem))))+uintptr(grlist_len)) { + break + } + if !(**(**uint8)(__ccgo_up(ptr)) != 0) { + i = i + 1 + v10 = i + **(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(mem)) + uintptr(v10)*8)) = ptr + uintptr(1) + } + goto _9 + _9: + ; + ptr = ptr + 1 + } + **(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(mem)) + uintptr(i)*8)) = uintptr(0) + if i != (**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRMEMCNT)] { + rv = int32(EIO) + goto cleanup_f + } + } else { + **(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(mem)))) = uintptr(0) + } + (*Tgroup)(unsafe.Pointer(gr)).Fgr_name = **(**uintptr)(__ccgo_up(buf)) + (*Tgroup)(unsafe.Pointer(gr)).Fgr_passwd = (*Tgroup)(unsafe.Pointer(gr)).Fgr_name + uintptr((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRNAMELEN)]) + (*Tgroup)(unsafe.Pointer(gr)).Fgr_gid = Uint32FromInt32((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRGID)]) + (*Tgroup)(unsafe.Pointer(gr)).Fgr_mem = **(**uintptr)(__ccgo_up(mem)) + if **(**uint8)(__ccgo_up((*Tgroup)(unsafe.Pointer(gr)).Fgr_passwd + uintptr(-Int32FromInt32(1)))) != 0 || **(**uint8)(__ccgo_up((*Tgroup)(unsafe.Pointer(gr)).Fgr_passwd + uintptr((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRPASSWDLEN)]-int32(1)))) != 0 { + rv = int32(EIO) + goto cleanup_f + } + if name != 0 && Xstrcmp(tls, name, (*Tgroup)(unsafe.Pointer(gr)).Fgr_name) != 0 || !(name != 0) && gid != (*Tgroup)(unsafe.Pointer(gr)).Fgr_gid { + rv = int32(EIO) + goto cleanup_f + } + **(**uintptr)(__ccgo_up(res)) = gr + goto cleanup_f + cleanup_f: + ; + Xfclose(tls, f) + goto done + } + goto done +done: + ; + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp)), uintptr(0)) + if rv != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = rv + } + return rv +} + +func _getgr_r(tls *TLS, name uintptr, gid Tgid_t, gr uintptr, buf uintptr, size Tsize_t, res uintptr) (r int32) { + bp := tls.Alloc(48) + defer tls.Free(48) + var i Tsize_t + var rv int32 + var _ /* cs at bp+32 */ int32 + var _ /* len at bp+8 */ Tsize_t + var _ /* line at bp+0 */ uintptr + var _ /* mem at bp+16 */ uintptr + var _ /* nmem at bp+24 */ Tsize_t + _, _ = i, rv + **(**uintptr)(__ccgo_up(bp)) = uintptr(0) + **(**Tsize_t)(__ccgo_up(bp + 8)) = uint64(0) + **(**uintptr)(__ccgo_up(bp + 16)) = uintptr(0) + **(**Tsize_t)(__ccgo_up(bp + 24)) = uint64(0) + rv = 0 + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp+32) + rv = X__getgr_a(tls, name, gid, gr, bp, bp+8, bp+16, bp+24, res) + if **(**uintptr)(__ccgo_up(res)) != 0 && size < **(**Tsize_t)(__ccgo_up(bp + 8))+(**(**Tsize_t)(__ccgo_up(bp + 24))+uint64(1))*uint64(8)+uint64(32) { + **(**uintptr)(__ccgo_up(res)) = uintptr(0) + rv = int32(ERANGE) + } + if **(**uintptr)(__ccgo_up(res)) != 0 { + buf = buf + uintptr((uint64(16)-uint64(buf))%uint64(16)) + (*Tgroup)(unsafe.Pointer(gr)).Fgr_mem = buf + buf = buf + uintptr((**(**Tsize_t)(__ccgo_up(bp + 24))+uint64(1))*uint64(8)) + Xmemcpy(tls, buf, **(**uintptr)(__ccgo_up(bp)), **(**Tsize_t)(__ccgo_up(bp + 8))) + (*Tgroup)(unsafe.Pointer(gr)).Fgr_name = uintptr(int64((*Tgroup)(unsafe.Pointer(gr)).Fgr_name)-int64(**(**uintptr)(__ccgo_up(bp)))) + buf + (*Tgroup)(unsafe.Pointer(gr)).Fgr_passwd = uintptr(int64((*Tgroup)(unsafe.Pointer(gr)).Fgr_passwd)-int64(**(**uintptr)(__ccgo_up(bp)))) + buf + i = uint64(0) + for { + if !(**(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 16)) + uintptr(i)*8)) != 0) { + break + } + **(**uintptr)(__ccgo_up((*Tgroup)(unsafe.Pointer(gr)).Fgr_mem + uintptr(i)*8)) = uintptr(int64(**(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 16)) + uintptr(i)*8)))-int64(**(**uintptr)(__ccgo_up(bp)))) + buf + goto _1 + _1: + ; + i = i + 1 + } + **(**uintptr)(__ccgo_up((*Tgroup)(unsafe.Pointer(gr)).Fgr_mem + uintptr(i)*8)) = uintptr(0) + } + Xfree(tls, **(**uintptr)(__ccgo_up(bp + 16))) + Xfree(tls, **(**uintptr)(__ccgo_up(bp))) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 32)), uintptr(0)) + if rv != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = rv + } + return rv +} + +func Xgetgrnam_r(tls *TLS, name uintptr, gr uintptr, buf uintptr, size Tsize_t, res uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v gr=%v buf=%v size=%v res=%v, (%v:)", tls, name, gr, buf, size, res, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _getgr_r(tls, name, uint32(0), gr, buf, size, res) +} + +func Xgetgrgid_r(tls *TLS, gid Tgid_t, gr uintptr, buf uintptr, size Tsize_t, res uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v gid=%v gr=%v buf=%v size=%v res=%v, (%v:)", tls, gid, gr, buf, size, res, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _getgr_r(tls, uintptr(0), gid, gr, buf, size, res) +} + +var _f1 uintptr +var _line3 uintptr +var _mem1 uintptr +var _gr1 Tgroup + +func Xsetgrent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + if _f1 != 0 { + Xfclose(tls, _f1) + } + _f1 = uintptr(0) +} + +func Xgetgrent(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var _ /* nmem at bp+16 */ Tsize_t + var _ /* res at bp+0 */ uintptr + var _ /* size at bp+8 */ Tsize_t + **(**Tsize_t)(__ccgo_up(bp + 8)) = uint64(0) + **(**Tsize_t)(__ccgo_up(bp + 16)) = uint64(0) + if !(_f1 != 0) { + _f1 = Xfopen(tls, __ccgo_ts+1235, __ccgo_ts+315) + } + if !(_f1 != 0) { + return uintptr(0) + } + X__getgrent_a(tls, _f1, uintptr(unsafe.Pointer(&_gr1)), uintptr(unsafe.Pointer(&_line3)), bp+8, uintptr(unsafe.Pointer(&_mem1)), bp+16, bp) + return **(**uintptr)(__ccgo_up(bp)) +} + +func Xgetgrgid(tls *TLS, gid Tgid_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v gid=%v, (%v:)", tls, gid, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var _ /* nmem at bp+16 */ Tsize_t + var _ /* res at bp+0 */ uintptr + var _ /* size at bp+8 */ Tsize_t + **(**Tsize_t)(__ccgo_up(bp + 8)) = uint64(0) + **(**Tsize_t)(__ccgo_up(bp + 16)) = uint64(0) + X__getgr_a(tls, uintptr(0), gid, uintptr(unsafe.Pointer(&_gr1)), uintptr(unsafe.Pointer(&_line3)), bp+8, uintptr(unsafe.Pointer(&_mem1)), bp+16, bp) + return **(**uintptr)(__ccgo_up(bp)) +} + +func Xgetgrnam(tls *TLS, name uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var _ /* nmem at bp+16 */ Tsize_t + var _ /* res at bp+0 */ uintptr + var _ /* size at bp+8 */ Tsize_t + **(**Tsize_t)(__ccgo_up(bp + 8)) = uint64(0) + **(**Tsize_t)(__ccgo_up(bp + 16)) = uint64(0) + X__getgr_a(tls, name, uint32(0), uintptr(unsafe.Pointer(&_gr1)), uintptr(unsafe.Pointer(&_line3)), bp+8, uintptr(unsafe.Pointer(&_mem1)), bp+16, bp) + return **(**uintptr)(__ccgo_up(bp)) +} + +func Xendgrent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + Xsetgrent(tls) +} + +func _atou(tls *TLS, s uintptr) (r uint32) { + var x uint32 + _ = x + x = uint32(0) + for { + if !(Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(s)))))-int32('0')) < uint32(10)) { + break + } + x = uint32(10)*x + Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(s)))))-Int32FromUint8('0')) + goto _1 + _1: + ; + **(**uintptr)(__ccgo_up(s)) = **(**uintptr)(__ccgo_up(s)) + 1 + } + return x +} + +func X__getgrent_a(tls *TLS, f uintptr, gr uintptr, line uintptr, size uintptr, mem uintptr, nmem uintptr, res uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v gr=%v line=%v size=%v mem=%v nmem=%v res=%v, (%v:)", tls, f, gr, line, size, mem, nmem, res, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var i, v13 Tsize_t + var l, v2 Tssize_t + var mems, v4 uintptr + var rv, v3 int32 + var _ /* cs at bp+8 */ int32 + var _ /* s at bp+0 */ uintptr + _, _, _, _, _, _, _, _ = i, l, mems, rv, v13, v2, v3, v4 + rv = 0 + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp+8) + for { + v2 = Xgetline(tls, line, size, f) + l = v2 + if v2 < 0 { + if Xferror(tls, f) != 0 { + v3 = **(**int32)(__ccgo_up(X__errno_location(tls))) + } else { + v3 = 0 + } + rv = v3 + Xfree(tls, **(**uintptr)(__ccgo_up(line))) + **(**uintptr)(__ccgo_up(line)) = uintptr(0) + gr = uintptr(0) + goto end + } + **(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(line)) + uintptr(l-int64(1)))) = uint8(0) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(line)) + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + (*Tgroup)(unsafe.Pointer(gr)).Fgr_name = v4 + v4 = Xstrchr(tls, **(**uintptr)(__ccgo_up(bp)), int32(':')) + **(**uintptr)(__ccgo_up(bp)) = v4 + if !(v4 != 0) { + goto _1 + } + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + **(**uint8)(__ccgo_up(v4)) = uint8(0) + (*Tgroup)(unsafe.Pointer(gr)).Fgr_passwd = **(**uintptr)(__ccgo_up(bp)) + v4 = Xstrchr(tls, **(**uintptr)(__ccgo_up(bp)), int32(':')) + **(**uintptr)(__ccgo_up(bp)) = v4 + if !(v4 != 0) { + goto _1 + } + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + **(**uint8)(__ccgo_up(v4)) = uint8(0) + (*Tgroup)(unsafe.Pointer(gr)).Fgr_gid = _atou(tls, bp) + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp))))) != int32(':') { + goto _1 + } + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + **(**uint8)(__ccgo_up(v4)) = uint8(0) + mems = **(**uintptr)(__ccgo_up(bp)) + break + goto _1 + _1: + } + **(**Tsize_t)(__ccgo_up(nmem)) = BoolUint64(!!(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)))) != 0)) + for { + if !(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)))) != 0) { + break + } + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp))))) == int32(',') { + **(**Tsize_t)(__ccgo_up(nmem)) = **(**Tsize_t)(__ccgo_up(nmem)) + 1 + } + goto _10 + _10: + ; + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + } + Xfree(tls, **(**uintptr)(__ccgo_up(mem))) + **(**uintptr)(__ccgo_up(mem)) = Xcalloc(tls, uint64(8), **(**Tsize_t)(__ccgo_up(nmem))+uint64(1)) + if !(**(**uintptr)(__ccgo_up(mem)) != 0) { + rv = **(**int32)(__ccgo_up(X__errno_location(tls))) + Xfree(tls, **(**uintptr)(__ccgo_up(line))) + **(**uintptr)(__ccgo_up(line)) = uintptr(0) + gr = uintptr(0) + goto end + } + if **(**uint8)(__ccgo_up(mems)) != 0 { + **(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(mem)))) = mems + **(**uintptr)(__ccgo_up(bp)) = mems + i = Uint64FromInt32(0) + for { + if !(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)))) != 0) { + break + } + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp))))) == int32(',') { + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + **(**uint8)(__ccgo_up(v4)) = uint8(0) + i = i + 1 + v13 = i + **(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(mem)) + uintptr(v13)*8)) = **(**uintptr)(__ccgo_up(bp)) + } + goto _11 + _11: + ; + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + } + i = i + 1 + v13 = i + **(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(mem)) + uintptr(v13)*8)) = uintptr(0) + } else { + **(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(mem)))) = uintptr(0) + } + (*Tgroup)(unsafe.Pointer(gr)).Fgr_mem = **(**uintptr)(__ccgo_up(mem)) + goto end +end: + ; + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 8)), uintptr(0)) + **(**uintptr)(__ccgo_up(res)) = gr + if rv != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = rv + } + return rv +} + +func Xgetgrouplist(tls *TLS, user uintptr, gid Tgid_t, groups uintptr, ngroups uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v user=%v gid=%v groups=%v ngroups=%v, (%v:)", tls, user, gid, groups, ngroups, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(96) + defer tls.Free(96) + var f, nscdbuf, v1 uintptr + var i, n, v9 Tssize_t + var nbytes Tsize_t + var nlim, ret, rv, v6 int32 + var v14 int64 + var v3, v4 Tuint32_t + var _ /* buf at bp+56 */ uintptr + var _ /* gr at bp+0 */ Tgroup + var _ /* mem at bp+64 */ uintptr + var _ /* nmem at bp+72 */ Tsize_t + var _ /* res at bp+32 */ uintptr + var _ /* resp at bp+44 */ [3]Tint32_t + var _ /* size at bp+80 */ Tsize_t + var _ /* swap at bp+40 */ int32 + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = f, i, n, nbytes, nlim, nscdbuf, ret, rv, v1, v14, v3, v4, v6, v9 + ret = -int32(1) + n = int64(1) + **(**int32)(__ccgo_up(bp + 40)) = 0 + nscdbuf = uintptr(0) + **(**uintptr)(__ccgo_up(bp + 56)) = uintptr(0) + **(**uintptr)(__ccgo_up(bp + 64)) = uintptr(0) + **(**Tsize_t)(__ccgo_up(bp + 72)) = uint64(0) + nlim = **(**int32)(__ccgo_up(ngroups)) + if nlim >= int32(1) { + v1 = groups + groups += 4 + **(**Tgid_t)(__ccgo_up(v1)) = gid + } + f = X__nscd_query(tls, int32(GETINITGR), user, bp+44, uint64(12), bp+40) + if !(f != 0) { + goto cleanup + } + if (**(**[3]Tint32_t)(__ccgo_up(bp + 44)))[int32(INITGRFOUND)] != 0 { + nscdbuf = Xcalloc(tls, Uint64FromInt32((**(**[3]Tint32_t)(__ccgo_up(bp + 44)))[int32(INITGRNGRPS)]), uint64(4)) + if !(nscdbuf != 0) { + goto cleanup + } + nbytes = uint64(4) * Uint64FromInt32((**(**[3]Tint32_t)(__ccgo_up(bp + 44)))[int32(INITGRNGRPS)]) + if nbytes != 0 && !(Xfread(tls, nscdbuf, nbytes, uint64(1), f) != 0) { + if !(Xferror(tls, f) != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EIO) + } + goto cleanup + } + if **(**int32)(__ccgo_up(bp + 40)) != 0 { + i = 0 + for { + if !(i < int64((**(**[3]Tint32_t)(__ccgo_up(bp + 44)))[int32(INITGRNGRPS)])) { + break + } + v3 = **(**Tuint32_t)(__ccgo_up(nscdbuf + uintptr(i)*4)) + v4 = v3>>int32(24) | v3>>int32(8)&uint32(0xff00) | v3< int64(nlim) { + v14 = int64(-int32(1)) + } else { + v14 = n + } + ret = int32(v14) + **(**int32)(__ccgo_up(ngroups)) = int32(n) + goto cleanup +cleanup: + ; + if f != 0 { + Xfclose(tls, f) + } + Xfree(tls, nscdbuf) + Xfree(tls, **(**uintptr)(__ccgo_up(bp + 56))) + Xfree(tls, **(**uintptr)(__ccgo_up(bp + 64))) + return ret +} + +func _itoa2(tls *TLS, p uintptr, x Tuint32_t) (r uintptr) { + var v1 uintptr + _ = v1 + // number of digits in a uint32_t + NUL + p = p + uintptr(11) + p = p - 1 + v1 = p + **(**uint8)(__ccgo_up(v1)) = uint8(0) + for cond := true; cond; cond = x != 0 { + p = p - 1 + v1 = p + **(**uint8)(__ccgo_up(v1)) = uint8(uint32('0') + x%uint32(10)) + x = x / uint32(10) + } + return p +} + +func X__getpw_a(tls *TLS, name uintptr, uid Tuid_t, pw uintptr, buf uintptr, size uintptr, res uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v uid=%v pw=%v buf=%v size=%v res=%v, (%v:)", tls, name, uid, pw, buf, size, res, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var f, key, tmp uintptr + var len1 Tsize_t + var req Tint32_t + var rv, v1 int32 + var _ /* cs at bp+4 */ int32 + var _ /* passwdbuf at bp+8 */ [9]Tint32_t + var _ /* uidbuf at bp+44 */ [11]uint8 + _, _, _, _, _, _, _ = f, key, len1, req, rv, tmp, v1 + rv = 0 + **(**uintptr)(__ccgo_up(res)) = uintptr(0) + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp+4) + f = Xfopen(tls, __ccgo_ts+1246, __ccgo_ts+315) + if !(f != 0) { + rv = **(**int32)(__ccgo_up(X__errno_location(tls))) + goto done + } + for { + v1 = X__getpwent_a(tls, f, pw, buf, size, res) + rv = v1 + if !(!(v1 != 0) && **(**uintptr)(__ccgo_up(res)) != 0) { + break + } + if name != 0 && !(Xstrcmp(tls, name, (*Tpasswd)(unsafe.Pointer(**(**uintptr)(__ccgo_up(res)))).Fpw_name) != 0) || !(name != 0) && (*Tpasswd)(unsafe.Pointer(**(**uintptr)(__ccgo_up(res)))).Fpw_uid == uid { + break + } + } + Xfclose(tls, f) + if !(**(**uintptr)(__ccgo_up(res)) != 0) && (rv == 0 || rv == int32(ENOENT) || rv == int32(ENOTDIR)) { + if name != 0 { + v1 = GETPWBYNAME + } else { + v1 = int32(GETPWBYUID) + } + req = v1 + **(**[9]Tint32_t)(__ccgo_up(bp + 8)) = [9]Tint32_t{} + len1 = uint64(0) + **(**[11]uint8)(__ccgo_up(bp + 44)) = [11]uint8{} + if name != 0 { + key = name + } else { + /* uid outside of this range can't be queried with the + * nscd interface, but might happen if uid_t ever + * happens to be a larger type (this is not true as of + * now) + */ + if uid < uint32(0) || uid > uint32(0xffffffff) { + rv = 0 + goto done + } + key = _itoa2(tls, bp+44, uid) + } + *(*[1]int32)(unsafe.Pointer(bp)) = [1]int32{} + f = X__nscd_query(tls, req, key, bp+8, uint64(36), bp) + if !(f != 0) { + rv = **(**int32)(__ccgo_up(X__errno_location(tls))) + goto done + } + if !((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWFOUND)] != 0) { + rv = 0 + goto cleanup_f + } + /* A zero length response from nscd is invalid. We ignore + * invalid responses and just report an error, rather than + * trying to do something with them. + */ + if !((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWNAMELEN)] != 0) || !((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWPASSWDLEN)] != 0) || !((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWGECOSLEN)] != 0) || !((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWDIRLEN)] != 0) || !((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWSHELLLEN)] != 0) { + rv = int32(EIO) + goto cleanup_f + } + if Uint64FromInt32((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWNAMELEN)]|(**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWPASSWDLEN)]|(**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWGECOSLEN)]|(**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWDIRLEN)]|(**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWSHELLLEN)]) >= Uint64FromUint64(0xffffffffffffffff)/Uint64FromInt32(8) { + rv = int32(ENOMEM) + goto cleanup_f + } + len1 = Uint64FromInt32((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWNAMELEN)] + (**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWPASSWDLEN)] + (**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWGECOSLEN)] + (**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWDIRLEN)] + (**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWSHELLLEN)]) + if len1 > **(**Tsize_t)(__ccgo_up(size)) || !(**(**uintptr)(__ccgo_up(buf)) != 0) { + tmp = Xrealloc(tls, **(**uintptr)(__ccgo_up(buf)), len1) + if !(tmp != 0) { + rv = **(**int32)(__ccgo_up(X__errno_location(tls))) + goto cleanup_f + } + **(**uintptr)(__ccgo_up(buf)) = tmp + **(**Tsize_t)(__ccgo_up(size)) = len1 + } + if !(Xfread(tls, **(**uintptr)(__ccgo_up(buf)), len1, uint64(1), f) != 0) { + if Xferror(tls, f) != 0 { + v1 = **(**int32)(__ccgo_up(X__errno_location(tls))) + } else { + v1 = int32(EIO) + } + rv = v1 + goto cleanup_f + } + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_name = **(**uintptr)(__ccgo_up(buf)) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_passwd = (*Tpasswd)(unsafe.Pointer(pw)).Fpw_name + uintptr((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWNAMELEN)]) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_gecos = (*Tpasswd)(unsafe.Pointer(pw)).Fpw_passwd + uintptr((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWPASSWDLEN)]) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_dir = (*Tpasswd)(unsafe.Pointer(pw)).Fpw_gecos + uintptr((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWGECOSLEN)]) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_shell = (*Tpasswd)(unsafe.Pointer(pw)).Fpw_dir + uintptr((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWDIRLEN)]) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_uid = Uint32FromInt32((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWUID)]) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_gid = Uint32FromInt32((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWGID)]) + /* Don't assume that nscd made sure to null terminate strings. + * It's supposed to, but malicious nscd should be ignored + * rather than causing a crash. + */ + if **(**uint8)(__ccgo_up((*Tpasswd)(unsafe.Pointer(pw)).Fpw_passwd + uintptr(-Int32FromInt32(1)))) != 0 || **(**uint8)(__ccgo_up((*Tpasswd)(unsafe.Pointer(pw)).Fpw_gecos + uintptr(-Int32FromInt32(1)))) != 0 || **(**uint8)(__ccgo_up((*Tpasswd)(unsafe.Pointer(pw)).Fpw_dir + uintptr(-Int32FromInt32(1)))) != 0 || **(**uint8)(__ccgo_up((*Tpasswd)(unsafe.Pointer(pw)).Fpw_shell + uintptr((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWSHELLLEN)]-int32(1)))) != 0 { + rv = int32(EIO) + goto cleanup_f + } + if name != 0 && Xstrcmp(tls, name, (*Tpasswd)(unsafe.Pointer(pw)).Fpw_name) != 0 || !(name != 0) && uid != (*Tpasswd)(unsafe.Pointer(pw)).Fpw_uid { + rv = int32(EIO) + goto cleanup_f + } + **(**uintptr)(__ccgo_up(res)) = pw + goto cleanup_f + cleanup_f: + ; + Xfclose(tls, f) + goto done + } + goto done +done: + ; + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 4)), uintptr(0)) + if rv != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = rv + } + return rv +} + +func _getpw_r(tls *TLS, name uintptr, uid Tuid_t, pw uintptr, buf uintptr, size Tsize_t, res uintptr) (r int32) { + bp := tls.Alloc(32) + defer tls.Free(32) + var rv int32 + var _ /* cs at bp+16 */ int32 + var _ /* len at bp+8 */ Tsize_t + var _ /* line at bp+0 */ uintptr + _ = rv + **(**uintptr)(__ccgo_up(bp)) = uintptr(0) + **(**Tsize_t)(__ccgo_up(bp + 8)) = uint64(0) + rv = 0 + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp+16) + rv = X__getpw_a(tls, name, uid, pw, bp, bp+8, res) + if **(**uintptr)(__ccgo_up(res)) != 0 && size < **(**Tsize_t)(__ccgo_up(bp + 8)) { + **(**uintptr)(__ccgo_up(res)) = uintptr(0) + rv = int32(ERANGE) + } + if **(**uintptr)(__ccgo_up(res)) != 0 { + Xmemcpy(tls, buf, **(**uintptr)(__ccgo_up(bp)), **(**Tsize_t)(__ccgo_up(bp + 8))) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_name = uintptr(int64((*Tpasswd)(unsafe.Pointer(pw)).Fpw_name)-int64(**(**uintptr)(__ccgo_up(bp)))) + buf + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_passwd = uintptr(int64((*Tpasswd)(unsafe.Pointer(pw)).Fpw_passwd)-int64(**(**uintptr)(__ccgo_up(bp)))) + buf + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_gecos = uintptr(int64((*Tpasswd)(unsafe.Pointer(pw)).Fpw_gecos)-int64(**(**uintptr)(__ccgo_up(bp)))) + buf + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_dir = uintptr(int64((*Tpasswd)(unsafe.Pointer(pw)).Fpw_dir)-int64(**(**uintptr)(__ccgo_up(bp)))) + buf + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_shell = uintptr(int64((*Tpasswd)(unsafe.Pointer(pw)).Fpw_shell)-int64(**(**uintptr)(__ccgo_up(bp)))) + buf + } + Xfree(tls, **(**uintptr)(__ccgo_up(bp))) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 16)), uintptr(0)) + if rv != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = rv + } + return rv +} + +func Xgetpwnam_r(tls *TLS, name uintptr, pw uintptr, buf uintptr, size Tsize_t, res uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v pw=%v buf=%v size=%v res=%v, (%v:)", tls, name, pw, buf, size, res, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _getpw_r(tls, name, uint32(0), pw, buf, size, res) +} + +func Xgetpwuid_r(tls *TLS, uid Tuid_t, pw uintptr, buf uintptr, size Tsize_t, res uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v uid=%v pw=%v buf=%v size=%v res=%v, (%v:)", tls, uid, pw, buf, size, res, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _getpw_r(tls, uintptr(0), uid, pw, buf, size, res) +} + +var _f2 uintptr +var _line4 uintptr +var _pw1 Tpasswd +var _size Tsize_t + +func Xsetpwent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + if _f2 != 0 { + Xfclose(tls, _f2) + } + _f2 = uintptr(0) +} + +func Xgetpwent(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* res at bp+0 */ uintptr + if !(_f2 != 0) { + _f2 = Xfopen(tls, __ccgo_ts+1246, __ccgo_ts+315) + } + if !(_f2 != 0) { + return uintptr(0) + } + X__getpwent_a(tls, _f2, uintptr(unsafe.Pointer(&_pw1)), uintptr(unsafe.Pointer(&_line4)), uintptr(unsafe.Pointer(&_size)), bp) + return **(**uintptr)(__ccgo_up(bp)) +} + +func Xgetpwuid(tls *TLS, uid Tuid_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v uid=%v, (%v:)", tls, uid, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* res at bp+0 */ uintptr + X__getpw_a(tls, uintptr(0), uid, uintptr(unsafe.Pointer(&_pw1)), uintptr(unsafe.Pointer(&_line4)), uintptr(unsafe.Pointer(&_size)), bp) + return **(**uintptr)(__ccgo_up(bp)) +} + +func Xgetpwnam(tls *TLS, name uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* res at bp+0 */ uintptr + X__getpw_a(tls, name, uint32(0), uintptr(unsafe.Pointer(&_pw1)), uintptr(unsafe.Pointer(&_line4)), uintptr(unsafe.Pointer(&_size)), bp) + return **(**uintptr)(__ccgo_up(bp)) +} + +func Xendpwent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + Xsetpwent(tls) +} + +func _atou1(tls *TLS, s uintptr) (r uint32) { + var x uint32 + _ = x + x = uint32(0) + for { + if !(Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(s)))))-int32('0')) < uint32(10)) { + break + } + x = uint32(10)*x + Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(s)))))-Int32FromUint8('0')) + goto _1 + _1: + ; + **(**uintptr)(__ccgo_up(s)) = **(**uintptr)(__ccgo_up(s)) + 1 + } + return x +} + +func X__getpwent_a(tls *TLS, f uintptr, pw uintptr, line uintptr, size uintptr, res uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v pw=%v line=%v size=%v res=%v, (%v:)", tls, f, pw, line, size, res, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var l, v2 Tssize_t + var rv, v3 int32 + var v4 uintptr + var _ /* cs at bp+8 */ int32 + var _ /* s at bp+0 */ uintptr + _, _, _, _, _ = l, rv, v2, v3, v4 + rv = 0 + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp+8) + for { + v2 = Xgetline(tls, line, size, f) + l = v2 + if v2 < 0 { + if Xferror(tls, f) != 0 { + v3 = **(**int32)(__ccgo_up(X__errno_location(tls))) + } else { + v3 = 0 + } + rv = v3 + Xfree(tls, **(**uintptr)(__ccgo_up(line))) + **(**uintptr)(__ccgo_up(line)) = uintptr(0) + pw = uintptr(0) + break + } + **(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(line)) + uintptr(l-int64(1)))) = uint8(0) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(line)) + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_name = v4 + v4 = Xstrchr(tls, **(**uintptr)(__ccgo_up(bp)), int32(':')) + **(**uintptr)(__ccgo_up(bp)) = v4 + if !(v4 != 0) { + goto _1 + } + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + **(**uint8)(__ccgo_up(v4)) = uint8(0) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_passwd = **(**uintptr)(__ccgo_up(bp)) + v4 = Xstrchr(tls, **(**uintptr)(__ccgo_up(bp)), int32(':')) + **(**uintptr)(__ccgo_up(bp)) = v4 + if !(v4 != 0) { + goto _1 + } + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + **(**uint8)(__ccgo_up(v4)) = uint8(0) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_uid = _atou1(tls, bp) + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp))))) != int32(':') { + goto _1 + } + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + **(**uint8)(__ccgo_up(v4)) = uint8(0) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_gid = _atou1(tls, bp) + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp))))) != int32(':') { + goto _1 + } + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + **(**uint8)(__ccgo_up(v4)) = uint8(0) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_gecos = **(**uintptr)(__ccgo_up(bp)) + v4 = Xstrchr(tls, **(**uintptr)(__ccgo_up(bp)), int32(':')) + **(**uintptr)(__ccgo_up(bp)) = v4 + if !(v4 != 0) { + goto _1 + } + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + **(**uint8)(__ccgo_up(v4)) = uint8(0) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_dir = **(**uintptr)(__ccgo_up(bp)) + v4 = Xstrchr(tls, **(**uintptr)(__ccgo_up(bp)), int32(':')) + **(**uintptr)(__ccgo_up(bp)) = v4 + if !(v4 != 0) { + goto _1 + } + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + **(**uint8)(__ccgo_up(v4)) = uint8(0) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_shell = **(**uintptr)(__ccgo_up(bp)) + break + goto _1 + _1: + } + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 8)), uintptr(0)) + **(**uintptr)(__ccgo_up(res)) = pw + if rv != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = rv + } + return rv +} + +func Xsetspent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } +} + +func Xendspent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } +} + +func Xgetspent(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(0) +} + +func Xlckpwdf(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return 0 +} + +func Xulckpwdf(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return 0 +} + +var _addr = struct { + Fsun_family int16 + Fsun_path [21]uint8 +}{ + Fsun_family: int16(PF_LOCAL), + Fsun_path: [21]uint8{'/', 'v', 'a', 'r', '/', 'r', 'u', 'n', '/', 'n', 's', 'c', 'd', '/', 's', 'o', 'c', 'k', 'e', 't'}, +} + +func X__nscd_query(tls *TLS, req Tint32_t, key uintptr, buf uintptr, len1 Tsize_t, swap uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v req=%v key=%v buf=%v len1=%v swap=%v, (%v:)", tls, req, key, buf, len1, swap, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(112) + defer tls.Free(112) + var errno_save, fd int32 + var f, v1 uintptr + var i Tsize_t + var v3, v4 Tuint32_t + var _ /* msg at bp+48 */ Tmsghdr + var _ /* req_buf at bp+32 */ [3]Tint32_t + _, _, _, _, _, _, _ = errno_save, f, fd, i, v1, v3, v4 + f = uintptr(0) + **(**[3]Tint32_t)(__ccgo_up(bp + 32)) = [3]Tint32_t{ + 0: int32(NSCDVERSION), + 1: req, + 2: Int32FromUint64(Xstrnlen(tls, key, uint64(LOGIN_NAME_MAX)) + uint64(1)), + } + *(*[2]Tiovec)(unsafe.Pointer(bp)) = [2]Tiovec{ + 0: { + Fiov_base: bp + 32, + Fiov_len: uint64(12), + }, + 1: { + Fiov_base: key, + Fiov_len: _strlen(tls, key) + uint64(1), + }, + } + **(**Tmsghdr)(__ccgo_up(bp + 48)) = Tmsghdr{ + Fmsg_iov: bp, + Fmsg_iovlen: int32(2), + } + errno_save = **(**int32)(__ccgo_up(X__errno_location(tls))) + **(**int32)(__ccgo_up(swap)) = 0 + goto retry +retry: + ; + Xmemset(tls, buf, 0, len1) + **(**Tint32_t)(__ccgo_up(buf)) = int32(NSCDVERSION) + fd = Xsocket(tls, int32(PF_LOCAL), Int32FromInt32(SOCK_STREAM)|Int32FromInt32(SOCK_CLOEXEC), 0) + if fd < 0 { + if **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EAFNOSUPPORT) { + f = Xfopen(tls, __ccgo_ts+1258, __ccgo_ts+1268) + if f != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = errno_save + } + return f + } + return uintptr(0) + } + v1 = Xfdopen(tls, fd, __ccgo_ts+1271) + f = v1 + if !(v1 != 0) { + Xclose(tls, fd) + return uintptr(0) + } + if (**(**[3]Tint32_t)(__ccgo_up(bp + 32)))[int32(2)] > int32(LOGIN_NAME_MAX) { + return f + } + if Xconnect(tls, fd, uintptr(unsafe.Pointer(&_addr)), uint32(24)) < 0 { + /* If there isn't a running nscd we simulate a "not found" + * result and the caller is responsible for calling + * fclose on the (unconnected) socket. The value of + * errno must be left unchanged in this case. */ + if **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EACCES) || **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(ECONNREFUSED) || **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(ENOENT) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = errno_save + return f + } + goto error + } + if Xsendmsg(tls, fd, bp+48, int32(MSG_NOSIGNAL)) < 0 { + goto error + } + if !(Xfread(tls, buf, len1, uint64(1), f) != 0) { + /* If the VERSION entry mismatches nscd will disconnect. The + * most likely cause is that the endianness mismatched. So, we + * byteswap and try once more. (if we already swapped, just + * fail out) + */ + if Xferror(tls, f) != 0 { + goto error + } + if !(**(**int32)(__ccgo_up(swap)) != 0) { + Xfclose(tls, f) + i = uint64(0) + for { + if !(i < Uint64FromInt64(12)/Uint64FromInt64(4)) { + break + } + v3 = Uint32FromInt32((**(**[3]Tint32_t)(__ccgo_up(bp + 32)))[i]) + v4 = v3>>int32(24) | v3>>int32(8)&uint32(0xff00) | v3<>int32(24) | v3>>int32(8)&uint32(0xff00) | v3< %v", r1) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var i Tsize_t + var r, v1 int32 + var v4 uintptr + _, _, _, _ = i, r, v1, v4 + Xflockfile(tls, f) + v1 = Xfprintf(tls, f, __ccgo_ts+1273, VaList(bp+8, (*Tgroup)(unsafe.Pointer(gr)).Fgr_name, (*Tgroup)(unsafe.Pointer(gr)).Fgr_passwd, (*Tgroup)(unsafe.Pointer(gr)).Fgr_gid)) + r = v1 + if v1 < 0 { + goto done + } + if (*Tgroup)(unsafe.Pointer(gr)).Fgr_mem != 0 { + i = uint64(0) + for { + if !(**(**uintptr)(__ccgo_up((*Tgroup)(unsafe.Pointer(gr)).Fgr_mem + uintptr(i)*8)) != 0) { + break + } + if i != 0 { + v4 = __ccgo_ts + 1283 + } else { + v4 = __ccgo_ts + } + v1 = Xfprintf(tls, f, __ccgo_ts+1285, VaList(bp+8, v4, **(**uintptr)(__ccgo_up((*Tgroup)(unsafe.Pointer(gr)).Fgr_mem + uintptr(i)*8)))) + r = v1 + if v1 < 0 { + goto done + } + goto _2 + _2: + ; + i = i + 1 + } + } + r = Xfputc(tls, int32('\n'), f) + goto done +done: + ; + Xfunlockfile(tls, f) + if r < 0 { + v1 = -int32(1) + } else { + v1 = 0 + } + return v1 +} + +func Xputpwent(tls *TLS, pw uintptr, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v pw=%v f=%v, (%v:)", tls, pw, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var v1 int32 + _ = v1 + if Xfprintf(tls, f, __ccgo_ts+1290, VaList(bp+8, (*Tpasswd)(unsafe.Pointer(pw)).Fpw_name, (*Tpasswd)(unsafe.Pointer(pw)).Fpw_passwd, (*Tpasswd)(unsafe.Pointer(pw)).Fpw_uid, (*Tpasswd)(unsafe.Pointer(pw)).Fpw_gid, (*Tpasswd)(unsafe.Pointer(pw)).Fpw_gecos, (*Tpasswd)(unsafe.Pointer(pw)).Fpw_dir, (*Tpasswd)(unsafe.Pointer(pw)).Fpw_shell)) < 0 { + v1 = -int32(1) + } else { + v1 = 0 + } + return v1 +} + +func Xputspent(tls *TLS, sp uintptr, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v sp=%v f=%v, (%v:)", tls, sp, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(144) + defer tls.Free(144) + var v1, v10, v12, v14, v16, v4, v6, v8 int32 + var v11, v13, v15, v5, v7, v9 int64 + var v17 uint64 + var v2, v3 uintptr + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = v1, v10, v11, v12, v13, v14, v15, v16, v17, v2, v3, v4, v5, v6, v7, v8, v9 + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_namp != 0 { + v2 = (*Tspwd)(unsafe.Pointer(sp)).Fsp_namp + } else { + v2 = __ccgo_ts + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_pwdp != 0 { + v3 = (*Tspwd)(unsafe.Pointer(sp)).Fsp_pwdp + } else { + v3 = __ccgo_ts + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_lstchg == int64(-int32(1)) { + v4 = 0 + } else { + v4 = -int32(1) + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_lstchg == int64(-int32(1)) { + v5 = 0 + } else { + v5 = (*Tspwd)(unsafe.Pointer(sp)).Fsp_lstchg + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_min == int64(-int32(1)) { + v6 = 0 + } else { + v6 = -int32(1) + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_min == int64(-int32(1)) { + v7 = 0 + } else { + v7 = (*Tspwd)(unsafe.Pointer(sp)).Fsp_min + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_max == int64(-int32(1)) { + v8 = 0 + } else { + v8 = -int32(1) + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_max == int64(-int32(1)) { + v9 = 0 + } else { + v9 = (*Tspwd)(unsafe.Pointer(sp)).Fsp_max + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_warn == int64(-int32(1)) { + v10 = 0 + } else { + v10 = -int32(1) + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_warn == int64(-int32(1)) { + v11 = 0 + } else { + v11 = (*Tspwd)(unsafe.Pointer(sp)).Fsp_warn + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_inact == int64(-int32(1)) { + v12 = 0 + } else { + v12 = -int32(1) + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_inact == int64(-int32(1)) { + v13 = 0 + } else { + v13 = (*Tspwd)(unsafe.Pointer(sp)).Fsp_inact + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_expire == int64(-int32(1)) { + v14 = 0 + } else { + v14 = -int32(1) + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_expire == int64(-int32(1)) { + v15 = 0 + } else { + v15 = (*Tspwd)(unsafe.Pointer(sp)).Fsp_expire + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_flag == Uint64FromInt32(-Int32FromInt32(1)) { + v16 = 0 + } else { + v16 = -int32(1) + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_flag == Uint64FromInt32(-Int32FromInt32(1)) { + v17 = uint64(0) + } else { + v17 = (*Tspwd)(unsafe.Pointer(sp)).Fsp_flag + } + if Xfprintf(tls, f, __ccgo_ts+1312, VaList(bp+8, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17)) < 0 { + v1 = -int32(1) + } else { + v1 = 0 + } + return v1 +} + +func X__rand48_step(tls *TLS, xi uintptr, lc uintptr) (r Tuint64_t) { + if __ccgo_strace { + trc("tls=%v xi=%v lc=%v, (%v:)", tls, xi, lc, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, x Tuint64_t + _, _ = a, x + x = uint64(uint32(**(**uint16)(__ccgo_up(xi)))|(uint32(**(**uint16)(__ccgo_up(xi + 1*2)))+0)<> int32(16)) + **(**uint16)(__ccgo_up(xi + 2*2)) = uint16(x >> int32(32)) + return x & uint64(0xffffffffffff) +} + +func Xerand48(tls *TLS, s uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* x at bp+0 */ struct { + Ff [0]float64 + Fu Tuint64_t + } + *(*struct { + Ff [0]float64 + Fu Tuint64_t + })(unsafe.Pointer(bp)) = struct { + Ff [0]float64 + Fu Tuint64_t + }{} + *(*uint64)(unsafe.Pointer(bp)) = uint64(0x3ff0000000000000) | X__rand48_step(tls, s, uintptr(unsafe.Pointer(&X__seed48))+uintptr(3)*2)< %v", r) }() + } + return Xerand48(tls, uintptr(unsafe.Pointer(&X__seed48))) +} + +func Xlcong48(tls *TLS, p uintptr) { + if __ccgo_strace { + trc("tls=%v p=%v, (%v:)", tls, p, origin(2)) + } + Xmemcpy(tls, uintptr(unsafe.Pointer(&X__seed48)), p, uint64(14)) +} + +func Xnrand48(tls *TLS, s uintptr) (r int64) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Int64FromUint64(X__rand48_step(tls, s, uintptr(unsafe.Pointer(&X__seed48))+uintptr(3)*2) >> int32(17)) +} + +func Xlrand48(tls *TLS) (r int64) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xnrand48(tls, uintptr(unsafe.Pointer(&X__seed48))) +} + +func Xjrand48(tls *TLS, s uintptr) (r int64) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int64(Int32FromUint64(X__rand48_step(tls, s, uintptr(unsafe.Pointer(&X__seed48))+uintptr(3)*2) >> Int32FromInt32(16))) +} + +func Xmrand48(tls *TLS) (r int64) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xjrand48(tls, uintptr(unsafe.Pointer(&X__seed48))) +} + +var _seed Tuint64_t + +func Xsrand(tls *TLS, s uint32) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + } + _seed = uint64(s - uint32(1)) +} + +func Xrand(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + _seed = uint64(6364136223846793005)*_seed + uint64(1) + return Int32FromUint64(_seed >> int32(33)) +} + +func _temper(tls *TLS, x uint32) (r uint32) { + x = x ^ x>>int32(11) + x = x ^ x<>int32(18) + return x +} + +func Xrand_r(tls *TLS, seed uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v seed=%v, (%v:)", tls, seed, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 uint32 + _ = v1 + v1 = **(**uint32)(__ccgo_up(seed))*Uint32FromInt32(1103515245) + Uint32FromInt32(12345) + **(**uint32)(__ccgo_up(seed)) = v1 + return Int32FromUint32(_temper(tls, v1) / uint32(2)) +} + +/* +this code uses the same lagged fibonacci generator as the +original bsd random implementation except for the seeding +which was broken in the original +*/ + +var _init = [32]Tuint32_t{ + 1: uint32(0x5851f42d), + 2: uint32(0xc0b18ccf), + 3: uint32(0xcbb5f646), + 4: uint32(0xc7033129), + 5: uint32(0x30705b04), + 6: uint32(0x20fd5db4), + 7: uint32(0x9a8b7f78), + 8: uint32(0x502959d8), + 9: uint32(0xab894868), + 10: uint32(0x6c0356a7), + 11: uint32(0x88cdb7ff), + 12: uint32(0xb477d43f), + 13: uint32(0x70a3a52b), + 14: uint32(0xa8e4baf1), + 15: uint32(0xfd8341fc), + 16: uint32(0x8ae16fd9), + 17: uint32(0x742d2f7a), + 18: uint32(0x0d1f0796), + 19: uint32(0x76035e09), + 20: uint32(0x40f7702c), + 21: uint32(0x6fa72ca5), + 22: uint32(0xaaa84157), + 23: uint32(0x58a0df74), + 24: uint32(0xc74a0364), + 25: uint32(0xae533cc4), + 26: uint32(0x04185faf), + 27: uint32(0x6de3b115), + 28: uint32(0x0cab8628), + 29: uint32(0xf043bfa4), + 30: uint32(0x398150e9), + 31: uint32(0x37521657), +} + +var _n = int32(31) +var _i = int32(3) +var _j = int32(0) +var _x1 = uintptr(unsafe.Pointer(&_init)) + uintptr(1)*4 +var _lock3 [1]int32 + +func _lcg31(tls *TLS, x Tuint32_t) (r Tuint32_t) { + return (uint32(1103515245)*x + uint32(12345)) & uint32(0x7fffffff) +} + +func _lcg64(tls *TLS, x Tuint64_t) (r Tuint64_t) { + return uint64(6364136223846793005)*x + uint64(1) +} + +func _savestate(tls *TLS) (r uintptr) { + **(**Tuint32_t)(__ccgo_up(_x1 + uintptr(-Int32FromInt32(1))*4)) = Uint32FromInt32(_n<> int32(16)) + _i = Int32FromUint32(**(**Tuint32_t)(__ccgo_up(_x1 + uintptr(-Int32FromInt32(1))*4)) >> Int32FromInt32(8) & uint32(0xff)) + _j = Int32FromUint32(**(**Tuint32_t)(__ccgo_up(_x1 + uintptr(-Int32FromInt32(1))*4)) & uint32(0xff)) +} + +func ___srandom(tls *TLS, seed uint32) { + var k, v1 int32 + var s Tuint64_t + _, _, _ = k, s, v1 + s = uint64(seed) + if _n == 0 { + **(**Tuint32_t)(__ccgo_up(_x1)) = uint32(s) + return + } + if _n == int32(31) || _n == int32(7) { + v1 = int32(3) + } else { + v1 = int32(1) + } + _i = v1 + _j = 0 + k = 0 + for { + if !(k < _n) { + break + } + s = _lcg64(tls, s) + **(**Tuint32_t)(__ccgo_up(_x1 + uintptr(k)*4)) = uint32(s >> int32(32)) + goto _2 + _2: + ; + k = k + 1 + } + /* make sure x contains at least one odd number */ + **(**Tuint32_t)(__ccgo_up(_x1)) |= uint32(1) +} + +func Xsrandom(tls *TLS, seed uint32) { + if __ccgo_strace { + trc("tls=%v seed=%v, (%v:)", tls, seed, origin(2)) + } + ___lock(tls, uintptr(unsafe.Pointer(&_lock3))) + ___srandom(tls, seed) + ___unlock(tls, uintptr(unsafe.Pointer(&_lock3))) +} + +func Xinitstate(tls *TLS, seed uint32, state uintptr, size Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v seed=%v state=%v size=%v, (%v:)", tls, seed, state, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + var old uintptr + _ = old + if size < uint64(8) { + return uintptr(0) + } + ___lock(tls, uintptr(unsafe.Pointer(&_lock3))) + old = _savestate(tls) + if size < uint64(32) { + _n = 0 + } else { + if size < uint64(64) { + _n = int32(7) + } else { + if size < uint64(128) { + _n = int32(15) + } else { + if size < uint64(256) { + _n = int32(31) + } else { + _n = int32(63) + } + } + } + } + _x1 = state + uintptr(1)*4 + ___srandom(tls, seed) + _savestate(tls) + ___unlock(tls, uintptr(unsafe.Pointer(&_lock3))) + return old +} + +func Xsetstate(tls *TLS, state uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v state=%v, (%v:)", tls, state, origin(2)) + defer func() { trc("-> %v", r) }() + } + var old uintptr + _ = old + ___lock(tls, uintptr(unsafe.Pointer(&_lock3))) + old = _savestate(tls) + _loadstate(tls, state) + ___unlock(tls, uintptr(unsafe.Pointer(&_lock3))) + return old +} + +func Xrandom(tls *TLS) (r int64) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + var k int64 + var v1 Tuint32_t + var v2 int32 + _, _, _ = k, v1, v2 + ___lock(tls, uintptr(unsafe.Pointer(&_lock3))) + if _n == 0 { + v1 = _lcg31(tls, **(**Tuint32_t)(__ccgo_up(_x1))) + **(**Tuint32_t)(__ccgo_up(_x1)) = v1 + k = Int64FromUint32(v1) + goto end + } + **(**Tuint32_t)(__ccgo_up(_x1 + uintptr(_i)*4)) += **(**Tuint32_t)(__ccgo_up(_x1 + uintptr(_j)*4)) + k = Int64FromUint32(**(**Tuint32_t)(__ccgo_up(_x1 + uintptr(_i)*4)) >> int32(1)) + _i = _i + 1 + v2 = _i + if v2 == _n { + _i = 0 + } + _j = _j + 1 + v2 = _j + if v2 == _n { + _j = 0 + } + goto end +end: + ; + ___unlock(tls, uintptr(unsafe.Pointer(&_lock3))) + return k +} + +func Xseed48(tls *TLS, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + Xmemcpy(tls, uintptr(unsafe.Pointer(&_p1)), uintptr(unsafe.Pointer(&X__seed48)), uint64(6)) + Xmemcpy(tls, uintptr(unsafe.Pointer(&X__seed48)), s, uint64(6)) + return uintptr(unsafe.Pointer(&_p1)) +} + +var _p1 [3]uint16 + +func Xsrand48(tls *TLS, seed int64) { + if __ccgo_strace { + trc("tls=%v seed=%v, (%v:)", tls, seed, origin(2)) + } + bp := tls.Alloc(16) + defer tls.Free(16) + *(*[3]uint16)(unsafe.Pointer(bp)) = [3]uint16{ + 0: uint16(0x330e), + 1: Uint16FromInt64(seed), + 2: Uint16FromInt64(seed >> int32(16)), + } + Xseed48(tls, bp) +} + +func Xexecl(tls *TLS, path uintptr, argv0 uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v argv0=%v va=%v, (%v:)", tls, path, argv0, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var argc, i int32 + var argv uintptr + var v2 t__predefined_size_t + _, _, _, _, _ = ap, argc, argv, i, v2 + defer func() { Xrealloc(tls, argv, 0) }() + ap = va + argc = int32(1) + for { + if !(VaUintptr(&ap) != 0) { + break + } + goto _1 + _1: + ; + argc = argc + 1 + } + _ = ap + v2 = Uint64FromInt32(argc+int32(1)) * 8 + argv = Xrealloc(tls, argv, v2) + ap = va + *(*uintptr)(unsafe.Add(unsafe.Pointer(argv), 0*8)) = argv0 + i = int32(1) + for { + if !(i < argc) { + break + } + *(*uintptr)(unsafe.Add(unsafe.Pointer(argv), i*8)) = VaUintptr(&ap) + goto _3 + _3: + ; + i = i + 1 + } + *(*uintptr)(unsafe.Add(unsafe.Pointer(argv), i*8)) = UintptrFromInt32(0) + _ = ap + return Xexecv(tls, path, argv) + return r +} + +func Xexecle(tls *TLS, path uintptr, argv0 uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v argv0=%v va=%v, (%v:)", tls, path, argv0, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var argc, i int32 + var argv, envp uintptr + var v2 t__predefined_size_t + _, _, _, _, _, _ = ap, argc, argv, envp, i, v2 + defer func() { Xrealloc(tls, argv, 0) }() + ap = va + argc = int32(1) + for { + if !(VaUintptr(&ap) != 0) { + break + } + goto _1 + _1: + ; + argc = argc + 1 + } + _ = ap + v2 = Uint64FromInt32(argc+int32(1)) * 8 + argv = Xrealloc(tls, argv, v2) + ap = va + *(*uintptr)(unsafe.Add(unsafe.Pointer(argv), 0*8)) = argv0 + i = int32(1) + for { + if !(i <= argc) { + break + } + *(*uintptr)(unsafe.Add(unsafe.Pointer(argv), i*8)) = VaUintptr(&ap) + goto _3 + _3: + ; + i = i + 1 + } + envp = VaUintptr(&ap) + _ = ap + return Xexecve(tls, path, argv, envp) + return r +} + +func Xexeclp(tls *TLS, file uintptr, argv0 uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v file=%v argv0=%v va=%v, (%v:)", tls, file, argv0, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var argc, i int32 + var argv uintptr + var v2 t__predefined_size_t + _, _, _, _, _ = ap, argc, argv, i, v2 + defer func() { Xrealloc(tls, argv, 0) }() + ap = va + argc = int32(1) + for { + if !(VaUintptr(&ap) != 0) { + break + } + goto _1 + _1: + ; + argc = argc + 1 + } + _ = ap + v2 = Uint64FromInt32(argc+int32(1)) * 8 + argv = Xrealloc(tls, argv, v2) + ap = va + *(*uintptr)(unsafe.Add(unsafe.Pointer(argv), 0*8)) = argv0 + i = int32(1) + for { + if !(i < argc) { + break + } + *(*uintptr)(unsafe.Add(unsafe.Pointer(argv), i*8)) = VaUintptr(&ap) + goto _3 + _3: + ; + i = i + 1 + } + *(*uintptr)(unsafe.Add(unsafe.Pointer(argv), i*8)) = UintptrFromInt32(0) + _ = ap + return Xexecvp(tls, file, argv) + return r +} + +func Xexecv(tls *TLS, path uintptr, argv uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v argv=%v, (%v:)", tls, path, argv, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xexecve(tls, path, argv, Xenviron) +} + +func Xexecve(tls *TLS, path uintptr, argv uintptr, envp uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v argv=%v envp=%v, (%v:)", tls, path, argv, envp, origin(2)) + defer func() { trc("-> %v", r) }() + } + /* do we need to use environ if envp is null? */ + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_execve), int64(path), int64(argv), int64(envp))))) +} + +func X__execvpe(tls *TLS, file uintptr, argv uintptr, envp uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v file=%v argv=%v envp=%v, (%v:)", tls, file, argv, envp, origin(2)) + defer func() { trc("-> %v", r) }() + } + var b, p, path, z, v3 uintptr + var k, l Tsize_t + var seen_eacces int32 + var v2 t__predefined_size_t + _, _, _, _, _, _, _, _, _ = b, k, l, p, path, seen_eacces, z, v2, v3 + defer func() { Xrealloc(tls, b, 0) }() + path = Xgetenv(tls, __ccgo_ts+1361) + seen_eacces = 0 + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOENT) + if !(**(**uint8)(__ccgo_up(file)) != 0) { + return -int32(1) + } + if Xstrchr(tls, file, int32('/')) != 0 { + return Xexecve(tls, file, argv, envp) + } + if !(path != 0) { + path = __ccgo_ts + 1366 + } + k = Xstrnlen(tls, file, Uint64FromInt32(Int32FromInt32(NAME_MAX)+Int32FromInt32(1))) + if k > uint64(NAME_MAX) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENAMETOOLONG) + return -int32(1) + } + l = Xstrnlen(tls, path, Uint64FromInt32(Int32FromInt32(PATH_MAX)-Int32FromInt32(1))) + uint64(1) + p = path + for { + v2 = l + k + uint64(1) + b = Xrealloc(tls, b, v2) + z = X__strchrnul(tls, p, int32(':')) + if Uint64FromInt64(int64(z)-int64(p)) >= l { + v3 = z + z = z + 1 + if !(**(**uint8)(__ccgo_up(v3)) != 0) { + break + } + goto _1 + } + Xmemcpy(tls, b, p, Uint64FromInt64(int64(z)-int64(p))) + *(*uint8)(unsafe.Add(unsafe.Pointer(b), int64(z)-int64(p))) = uint8('/') + Xmemcpy(tls, b+uintptr(int64(z)-int64(p))+BoolUintptr(z > p), file, k+uint64(1)) + Xexecve(tls, b, argv, envp) + switch **(**int32)(__ccgo_up(X__errno_location(tls))) { + case int32(EACCES): + seen_eacces = int32(1) + fallthrough + case int32(ENOENT): + fallthrough + case int32(ENOTDIR): + default: + return -int32(1) + } + v3 = z + z = z + 1 + if !(**(**uint8)(__ccgo_up(v3)) != 0) { + break + } + goto _1 + _1: + ; + p = z + } + if seen_eacces != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EACCES) + } + return -int32(1) +} + +func Xexecvp(tls *TLS, file uintptr, argv uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v file=%v argv=%v, (%v:)", tls, file, argv, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__execvpe(tls, file, argv, Xenviron) +} + +func Xexecvpe(tls *TLS, file uintptr, argv uintptr, envp uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v file=%v argv=%v envp=%v, (%v:)", tls, file, argv, envp, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__execvpe(tls, file, argv, envp) +} + +func Xfexecve(tls *TLS, fd int32, argv uintptr, envp uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v argv=%v envp=%v, (%v:)", tls, fd, argv, envp, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var r int32 + var _ /* buf at bp+0 */ [27]uint8 + _ = r + r = int32(X__syscall5(tls, int64(SYS_execveat), int64(fd), int64(__ccgo_ts), int64(argv), int64(envp), int64(Int32FromInt32(AT_EMPTY_PATH)))) + if r != -int32(ENOSYS) { + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) + } + X__procfdname(tls, bp, Uint32FromInt32(fd)) + Xexecve(tls, bp, argv, envp) + if **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(ENOENT) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EBADF) + } + return -int32(1) +} + +var _dummy_lockptr = uintptr(0) + +var _atfork_locks = [10]uintptr{ + 0: uintptr(unsafe.Pointer(&X__at_quick_exit_lockptr)), + 1: uintptr(unsafe.Pointer(&_dummy_lockptr)), + 2: uintptr(unsafe.Pointer(&X__gettext_lockptr)), + 3: uintptr(unsafe.Pointer(&X__locale_lockptr)), + 4: uintptr(unsafe.Pointer(&X__random_lockptr)), + 5: uintptr(unsafe.Pointer(&_dummy_lockptr)), + 6: uintptr(unsafe.Pointer(&X__stdio_ofl_lockptr)), + 7: uintptr(unsafe.Pointer(&X__syslog_lockptr)), + 8: uintptr(unsafe.Pointer(&X__timezone_lockptr)), + 9: uintptr(unsafe.Pointer(&_dummy_lockptr)), +} + +func _dummy8(tls *TLS, x int32) { +} + +func _dummy_0(tls *TLS) { +} + +const FDOP_CHDIR = 4 +const FDOP_CLOSE = 1 +const FDOP_DUP2 = 2 +const FDOP_FCHDIR = 5 +const FDOP_OPEN = 3 +const POSIX_SPAWN_RESETIDS = 1 +const POSIX_SPAWN_SETPGROUP = 2 +const POSIX_SPAWN_SETSCHEDPARAM = 16 +const POSIX_SPAWN_SETSCHEDULER = 32 +const POSIX_SPAWN_SETSID = 128 +const POSIX_SPAWN_SETSIGDEF = 4 +const POSIX_SPAWN_SETSIGMASK = 8 +const POSIX_SPAWN_USEVFORK = 64 + +type Tposix_spawnattr_t = struct { + F__flags int32 + F__pgrp Tpid_t + F__def Tsigset_t + F__mask Tsigset_t + F__prio int32 + F__pol int32 + F__fn uintptr + F__pad [56]uint8 +} + +type Tposix_spawn_file_actions_t = struct { + F__pad0 [2]int32 + F__actions uintptr + F__pad [16]int32 +} + +type Tfdop = struct { + Fnext uintptr + Fprev uintptr + Fcmd int32 + Ffd int32 + Fsrcfd int32 + Foflag int32 + Fmode Tmode_t +} + +func Xposix_spawn_file_actions_addchdir_np(tls *TLS, fa uintptr, path uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fa=%v path=%v, (%v:)", tls, fa, path, origin(2)) + defer func() { trc("-> %v", r) }() + } + var op, v1 uintptr + _, _ = op, v1 + op = Xmalloc(tls, uint64(40)+_strlen(tls, path)+uint64(1)) + if !(op != 0) { + return int32(ENOMEM) + } + (*Tfdop)(unsafe.Pointer(op)).Fcmd = int32(FDOP_CHDIR) + (*Tfdop)(unsafe.Pointer(op)).Ffd = -int32(1) + Xstrcpy(tls, op+36, path) + v1 = (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions + (*Tfdop)(unsafe.Pointer(op)).Fnext = v1 + if v1 != 0 { + (*Tfdop)(unsafe.Pointer((*Tfdop)(unsafe.Pointer(op)).Fnext)).Fprev = op + } + (*Tfdop)(unsafe.Pointer(op)).Fprev = uintptr(0) + (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions = op + return 0 +} + +func Xposix_spawn_file_actions_addclose(tls *TLS, fa uintptr, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fa=%v fd=%v, (%v:)", tls, fa, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + var op, v1 uintptr + _, _ = op, v1 + if fd < 0 { + return int32(EBADF) + } + op = Xmalloc(tls, uint64(40)) + if !(op != 0) { + return int32(ENOMEM) + } + (*Tfdop)(unsafe.Pointer(op)).Fcmd = int32(FDOP_CLOSE) + (*Tfdop)(unsafe.Pointer(op)).Ffd = fd + v1 = (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions + (*Tfdop)(unsafe.Pointer(op)).Fnext = v1 + if v1 != 0 { + (*Tfdop)(unsafe.Pointer((*Tfdop)(unsafe.Pointer(op)).Fnext)).Fprev = op + } + (*Tfdop)(unsafe.Pointer(op)).Fprev = uintptr(0) + (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions = op + return 0 +} + +func Xposix_spawn_file_actions_adddup2(tls *TLS, fa uintptr, srcfd int32, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fa=%v srcfd=%v fd=%v, (%v:)", tls, fa, srcfd, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + var op, v1 uintptr + _, _ = op, v1 + if srcfd < 0 || fd < 0 { + return int32(EBADF) + } + op = Xmalloc(tls, uint64(40)) + if !(op != 0) { + return int32(ENOMEM) + } + (*Tfdop)(unsafe.Pointer(op)).Fcmd = int32(FDOP_DUP2) + (*Tfdop)(unsafe.Pointer(op)).Fsrcfd = srcfd + (*Tfdop)(unsafe.Pointer(op)).Ffd = fd + v1 = (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions + (*Tfdop)(unsafe.Pointer(op)).Fnext = v1 + if v1 != 0 { + (*Tfdop)(unsafe.Pointer((*Tfdop)(unsafe.Pointer(op)).Fnext)).Fprev = op + } + (*Tfdop)(unsafe.Pointer(op)).Fprev = uintptr(0) + (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions = op + return 0 +} + +func Xposix_spawn_file_actions_addfchdir_np(tls *TLS, fa uintptr, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fa=%v fd=%v, (%v:)", tls, fa, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + var op, v1 uintptr + _, _ = op, v1 + if fd < 0 { + return int32(EBADF) + } + op = Xmalloc(tls, uint64(40)) + if !(op != 0) { + return int32(ENOMEM) + } + (*Tfdop)(unsafe.Pointer(op)).Fcmd = int32(FDOP_FCHDIR) + (*Tfdop)(unsafe.Pointer(op)).Ffd = fd + v1 = (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions + (*Tfdop)(unsafe.Pointer(op)).Fnext = v1 + if v1 != 0 { + (*Tfdop)(unsafe.Pointer((*Tfdop)(unsafe.Pointer(op)).Fnext)).Fprev = op + } + (*Tfdop)(unsafe.Pointer(op)).Fprev = uintptr(0) + (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions = op + return 0 +} + +func Xposix_spawn_file_actions_addopen(tls *TLS, fa uintptr, fd int32, path uintptr, flags int32, mode Tmode_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fa=%v fd=%v path=%v flags=%v mode=%v, (%v:)", tls, fa, fd, path, flags, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + var op, v1 uintptr + _, _ = op, v1 + if fd < 0 { + return int32(EBADF) + } + op = Xmalloc(tls, uint64(40)+_strlen(tls, path)+uint64(1)) + if !(op != 0) { + return int32(ENOMEM) + } + (*Tfdop)(unsafe.Pointer(op)).Fcmd = int32(FDOP_OPEN) + (*Tfdop)(unsafe.Pointer(op)).Ffd = fd + (*Tfdop)(unsafe.Pointer(op)).Foflag = flags + (*Tfdop)(unsafe.Pointer(op)).Fmode = mode + Xstrcpy(tls, op+36, path) + v1 = (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions + (*Tfdop)(unsafe.Pointer(op)).Fnext = v1 + if v1 != 0 { + (*Tfdop)(unsafe.Pointer((*Tfdop)(unsafe.Pointer(op)).Fnext)).Fprev = op + } + (*Tfdop)(unsafe.Pointer(op)).Fprev = uintptr(0) + (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions = op + return 0 +} + +func Xposix_spawn_file_actions_destroy(tls *TLS, fa uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fa=%v, (%v:)", tls, fa, origin(2)) + defer func() { trc("-> %v", r) }() + } + var next, op uintptr + _, _ = next, op + op = (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions + for op != 0 { + next = (*Tfdop)(unsafe.Pointer(op)).Fnext + Xfree(tls, op) + op = next + } + return 0 +} + +func Xposix_spawn_file_actions_init(tls *TLS, fa uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fa=%v, (%v:)", tls, fa, origin(2)) + defer func() { trc("-> %v", r) }() + } + (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions = uintptr(0) + return 0 +} + +func Xposix_spawnattr_destroy(tls *TLS, attr uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v, (%v:)", tls, attr, origin(2)) + defer func() { trc("-> %v", r) }() + } + return 0 +} + +func Xposix_spawnattr_getflags(tls *TLS, attr uintptr, flags uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v flags=%v, (%v:)", tls, attr, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + **(**int16)(__ccgo_up(flags)) = int16((*Tposix_spawnattr_t)(unsafe.Pointer(attr)).F__flags) + return 0 +} + +func Xposix_spawnattr_getpgroup(tls *TLS, attr uintptr, pgrp uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v pgrp=%v, (%v:)", tls, attr, pgrp, origin(2)) + defer func() { trc("-> %v", r) }() + } + **(**Tpid_t)(__ccgo_up(pgrp)) = (*Tposix_spawnattr_t)(unsafe.Pointer(attr)).F__pgrp + return 0 +} + +func Xposix_spawnattr_getsigdefault(tls *TLS, attr uintptr, def uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v def=%v, (%v:)", tls, attr, def, origin(2)) + defer func() { trc("-> %v", r) }() + } + **(**Tsigset_t)(__ccgo_up(def)) = (*Tposix_spawnattr_t)(unsafe.Pointer(attr)).F__def + return 0 +} + +func Xposix_spawnattr_getsigmask(tls *TLS, attr uintptr, mask uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v mask=%v, (%v:)", tls, attr, mask, origin(2)) + defer func() { trc("-> %v", r) }() + } + **(**Tsigset_t)(__ccgo_up(mask)) = (*Tposix_spawnattr_t)(unsafe.Pointer(attr)).F__mask + return 0 +} + +func Xposix_spawnattr_init(tls *TLS, attr uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v, (%v:)", tls, attr, origin(2)) + defer func() { trc("-> %v", r) }() + } + **(**Tposix_spawnattr_t)(__ccgo_up(attr)) = Tposix_spawnattr_t{} + return 0 +} + +func Xposix_spawnattr_getschedparam(tls *TLS, attr uintptr, schedparam uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v schedparam=%v, (%v:)", tls, attr, schedparam, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(ENOSYS) +} + +func Xposix_spawnattr_setschedparam(tls *TLS, attr uintptr, schedparam uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v schedparam=%v, (%v:)", tls, attr, schedparam, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(ENOSYS) +} + +func Xposix_spawnattr_getschedpolicy(tls *TLS, attr uintptr, policy uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v policy=%v, (%v:)", tls, attr, policy, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(ENOSYS) +} + +func Xposix_spawnattr_setschedpolicy(tls *TLS, attr uintptr, policy int32) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v policy=%v, (%v:)", tls, attr, policy, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(ENOSYS) +} + +func Xposix_spawnattr_setflags(tls *TLS, attr uintptr, flags int16) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v flags=%v, (%v:)", tls, attr, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + var all_flags uint32 + _ = all_flags + all_flags = Uint32FromInt32(Int32FromInt32(POSIX_SPAWN_RESETIDS) | Int32FromInt32(POSIX_SPAWN_SETPGROUP) | Int32FromInt32(POSIX_SPAWN_SETSIGDEF) | Int32FromInt32(POSIX_SPAWN_SETSIGMASK) | Int32FromInt32(POSIX_SPAWN_SETSCHEDPARAM) | Int32FromInt32(POSIX_SPAWN_SETSCHEDULER) | Int32FromInt32(POSIX_SPAWN_USEVFORK) | Int32FromInt32(POSIX_SPAWN_SETSID)) + if Uint32FromInt16(flags) & ^all_flags != 0 { + return int32(EINVAL) + } + (*Tposix_spawnattr_t)(unsafe.Pointer(attr)).F__flags = int32(flags) + return 0 +} + +func Xposix_spawnattr_setpgroup(tls *TLS, attr uintptr, pgrp Tpid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v pgrp=%v, (%v:)", tls, attr, pgrp, origin(2)) + defer func() { trc("-> %v", r) }() + } + (*Tposix_spawnattr_t)(unsafe.Pointer(attr)).F__pgrp = pgrp + return 0 +} + +func Xposix_spawnattr_setsigdefault(tls *TLS, attr uintptr, def uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v def=%v, (%v:)", tls, attr, def, origin(2)) + defer func() { trc("-> %v", r) }() + } + (*Tposix_spawnattr_t)(unsafe.Pointer(attr)).F__def = **(**Tsigset_t)(__ccgo_up(def)) + return 0 +} + +func Xposix_spawnattr_setsigmask(tls *TLS, attr uintptr, mask uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v mask=%v, (%v:)", tls, attr, mask, origin(2)) + defer func() { trc("-> %v", r) }() + } + (*Tposix_spawnattr_t)(unsafe.Pointer(attr)).F__mask = **(**Tsigset_t)(__ccgo_up(mask)) + return 0 +} + +func Xvfork(tls *TLS) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + /* vfork syscall cannot be made from C code */ + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_clone), int64(Int32FromInt32(SIGCHLD)), int64(Int32FromInt32(0)))))) +} + +func Xwait(tls *TLS, status uintptr) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v status=%v, (%v:)", tls, status, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwaitpid(tls, -Int32FromInt32(1), status, 0) +} + +func Xwaitid(tls *TLS, type1 Tidtype_t, id Tid_t, info uintptr, options int32) (r int32) { + if __ccgo_strace { + trc("tls=%v type1=%v id=%v info=%v options=%v, (%v:)", tls, type1, id, info, options, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_waitid), int64(type1), Int64FromUint32(id), int64(info), int64(options), int64(Int32FromInt32(0)), 0)))) +} + +func Xwaitpid(tls *TLS, pid Tpid_t, status uintptr, options int32) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v pid=%v status=%v options=%v, (%v:)", tls, pid, status, options, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_wait4), int64(pid), int64(status), int64(options), int64(Int32FromInt32(0)), 0, 0)))) +} + +const BRACKET = -3 +const END = 0 +const FNM_CASEFOLD = 16 +const FNM_FILE_NAME = 1 +const FNM_LEADING_DIR = 8 +const FNM_NOESCAPE = 2 +const FNM_NOMATCH = 1 +const FNM_NOSYS = -1 +const FNM_PATHNAME = 1 +const FNM_PERIOD = 4 +const QUESTION = -4 +const STAR = -5 +const UNMATCHABLE = -2 + +func _str_next(tls *TLS, str uintptr, n Tsize_t, step uintptr) (r int32) { + bp := tls.Alloc(16) + defer tls.Free(16) + var k int32 + var _ /* wc at bp+0 */ Twchar_t + _ = k + if !(n != 0) { + **(**Tsize_t)(__ccgo_up(step)) = uint64(0) + return 0 + } + if uint32(**(**uint8)(__ccgo_up(str))) >= uint32(128) { + k = Xmbtowc(tls, bp, str, n) + if k < 0 { + **(**Tsize_t)(__ccgo_up(step)) = uint64(1) + return -int32(1) + } + **(**Tsize_t)(__ccgo_up(step)) = Uint64FromInt32(k) + return Int32FromUint32(**(**Twchar_t)(__ccgo_up(bp))) + } + **(**Tsize_t)(__ccgo_up(step)) = uint64(1) + return Int32FromUint8(**(**uint8)(__ccgo_up(str))) +} + +func _pat_next(tls *TLS, pat uintptr, m Tsize_t, step uintptr, flags int32) (r int32) { + bp := tls.Alloc(16) + defer tls.Free(16) + var esc, k1, z int32 + var k Tsize_t + var _ /* wc at bp+0 */ Twchar_t + _, _, _, _ = esc, k, k1, z + esc = 0 + if !(m != 0) || !(**(**uint8)(__ccgo_up(pat)) != 0) { + **(**Tsize_t)(__ccgo_up(step)) = uint64(0) + return END + } + **(**Tsize_t)(__ccgo_up(step)) = uint64(1) + if Int32FromUint8(**(**uint8)(__ccgo_up(pat))) == int32('\\') && **(**uint8)(__ccgo_up(pat + 1)) != 0 && !(flags&Int32FromInt32(FNM_NOESCAPE) != 0) { + **(**Tsize_t)(__ccgo_up(step)) = uint64(2) + pat = pat + 1 + esc = int32(1) + goto escaped + } + if Int32FromUint8(**(**uint8)(__ccgo_up(pat))) == int32('[') { + k = uint64(1) + if k < m { + if Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(k)))) == int32('^') || Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(k)))) == int32('!') { + k = k + 1 + } + } + if k < m { + if Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(k)))) == int32(']') { + k = k + 1 + } + } + for { + if !(k < m && **(**uint8)(__ccgo_up(pat + uintptr(k))) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(k)))) != int32(']')) { + break + } + if k+uint64(1) < m && **(**uint8)(__ccgo_up(pat + uintptr(k+uint64(1)))) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(k)))) == int32('[') && (Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(k+uint64(1))))) == int32(':') || Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(k+uint64(1))))) == int32('.') || Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(k+uint64(1))))) == int32('=')) { + z = Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(k+uint64(1))))) + k = k + uint64(2) + if k < m && **(**uint8)(__ccgo_up(pat + uintptr(k))) != 0 { + k = k + 1 + } + for k < m && **(**uint8)(__ccgo_up(pat + uintptr(k))) != 0 && (Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(k-uint64(1))))) != z || Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(k)))) != int32(']')) { + k = k + 1 + } + if k == m || !(**(**uint8)(__ccgo_up(pat + uintptr(k))) != 0) { + break + } + } + goto _1 + _1: + ; + k = k + 1 + } + if k == m || !(**(**uint8)(__ccgo_up(pat + uintptr(k))) != 0) { + **(**Tsize_t)(__ccgo_up(step)) = uint64(1) + return int32('[') + } + **(**Tsize_t)(__ccgo_up(step)) = k + uint64(1) + return -int32(3) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(pat))) == int32('*') { + return -int32(5) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(pat))) == int32('?') { + return -int32(4) + } + goto escaped +escaped: + ; + if uint32(**(**uint8)(__ccgo_up(pat))) >= uint32(128) { + k1 = Xmbtowc(tls, bp, pat, m) + if k1 < 0 { + **(**Tsize_t)(__ccgo_up(step)) = uint64(0) + return -int32(2) + } + **(**Tsize_t)(__ccgo_up(step)) = Uint64FromInt32(k1 + esc) + return Int32FromUint32(**(**Twchar_t)(__ccgo_up(bp))) + } + return Int32FromUint8(**(**uint8)(__ccgo_up(pat))) +} + +func _casefold(tls *TLS, k int32) (r int32) { + var c int32 + var v1 uint32 + _, _ = c, v1 + c = Int32FromUint32(Xtowupper(tls, Uint32FromInt32(k))) + if c == k { + v1 = Xtowlower(tls, Uint32FromInt32(k)) + } else { + v1 = Uint32FromInt32(c) + } + return Int32FromUint32(v1) +} + +func _match_bracket(tls *TLS, p uintptr, k int32, kfold int32) (r int32) { + bp := tls.Alloc(32) + defer tls.Free(32) + var inv, l, l1, z int32 + var p0 uintptr + var _ /* buf at bp+8 */ [16]uint8 + var _ /* wc at bp+0 */ Twchar_t + var _ /* wc2 at bp+4 */ Twchar_t + _, _, _, _, _ = inv, l, l1, p0, z + inv = 0 + p = p + 1 + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('^') || Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('!') { + inv = int32(1) + p = p + 1 + } + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32(']') { + if k == int32(']') { + return BoolInt32(!(inv != 0)) + } + p = p + 1 + } else { + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('-') { + if k == int32('-') { + return BoolInt32(!(inv != 0)) + } + p = p + 1 + } + } + **(**Twchar_t)(__ccgo_up(bp)) = uint32(**(**uint8)(__ccgo_up(p + uintptr(-Int32FromInt32(1))))) + for { + if !(Int32FromUint8(**(**uint8)(__ccgo_up(p))) != int32(']')) { + break + } + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('-') && Int32FromUint8(**(**uint8)(__ccgo_up(p + 1))) != int32(']') { + l = Xmbtowc(tls, bp+4, p+uintptr(1), uint64(4)) + if l < 0 { + return 0 + } + if **(**Twchar_t)(__ccgo_up(bp)) <= **(**Twchar_t)(__ccgo_up(bp + 4)) { + if Uint32FromInt32(k)-**(**Twchar_t)(__ccgo_up(bp)) <= **(**Twchar_t)(__ccgo_up(bp + 4))-**(**Twchar_t)(__ccgo_up(bp)) || Uint32FromInt32(kfold)-**(**Twchar_t)(__ccgo_up(bp)) <= **(**Twchar_t)(__ccgo_up(bp + 4))-**(**Twchar_t)(__ccgo_up(bp)) { + return BoolInt32(!(inv != 0)) + } + } + p = p + uintptr(l-int32(1)) + goto _1 + } + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('[') && (Int32FromUint8(**(**uint8)(__ccgo_up(p + 1))) == int32(':') || Int32FromUint8(**(**uint8)(__ccgo_up(p + 1))) == int32('.') || Int32FromUint8(**(**uint8)(__ccgo_up(p + 1))) == int32('=')) { + p0 = p + uintptr(2) + z = Int32FromUint8(**(**uint8)(__ccgo_up(p + 1))) + p = p + uintptr(3) + for Int32FromUint8(**(**uint8)(__ccgo_up(p + uintptr(-Int32FromInt32(1))))) != z || Int32FromUint8(**(**uint8)(__ccgo_up(p))) != int32(']') { + p = p + 1 + } + if z == int32(':') && int64(p-uintptr(1))-int64(p0) < int64(16) { + Xmemcpy(tls, bp+8, p0, Uint64FromInt64(int64(p-uintptr(1))-int64(p0))) + (**(**[16]uint8)(__ccgo_up(bp + 8)))[int64(p-uintptr(1))-int64(p0)] = uint8(0) + if Xiswctype(tls, Uint32FromInt32(k), Xwctype(tls, bp+8)) != 0 || Xiswctype(tls, Uint32FromInt32(kfold), Xwctype(tls, bp+8)) != 0 { + return BoolInt32(!(inv != 0)) + } + } + goto _1 + } + if uint32(**(**uint8)(__ccgo_up(p))) < uint32(128) { + **(**Twchar_t)(__ccgo_up(bp)) = uint32(uint8(**(**uint8)(__ccgo_up(p)))) + } else { + l1 = Xmbtowc(tls, bp, p, uint64(4)) + if l1 < 0 { + return 0 + } + p = p + uintptr(l1-int32(1)) + } + if **(**Twchar_t)(__ccgo_up(bp)) == Uint32FromInt32(k) || **(**Twchar_t)(__ccgo_up(bp)) == Uint32FromInt32(kfold) { + return BoolInt32(!(inv != 0)) + } + goto _1 + _1: + ; + p = p + 1 + } + return inv +} + +func _fnmatch_internal(tls *TLS, pat uintptr, m Tsize_t, str uintptr, n Tsize_t, flags int32) (r int32) { + bp := tls.Alloc(16) + defer tls.Free(16) + var c, k, kfold, v2 int32 + var endpat, endstr, p, ptail, s, stail, v6 uintptr + var tailcnt Tsize_t + var v9 bool + var _ /* pinc at bp+0 */ Tsize_t + var _ /* sinc at bp+8 */ Tsize_t + _, _, _, _, _, _, _, _, _, _, _, _, _ = c, endpat, endstr, k, kfold, p, ptail, s, stail, tailcnt, v2, v6, v9 + tailcnt = uint64(0) + if flags&int32(FNM_PERIOD) != 0 { + if Int32FromUint8(**(**uint8)(__ccgo_up(str))) == int32('.') && Int32FromUint8(**(**uint8)(__ccgo_up(pat))) != int32('.') { + return int32(FNM_NOMATCH) + } + } + for { + v2 = _pat_next(tls, pat, m, bp, flags) + c = v2 + switch v2 { + case -int32(2): + return int32(FNM_NOMATCH) + case -int32(5): + pat = pat + 1 + m = m - 1 + default: + k = _str_next(tls, str, n, bp+8) + if k <= 0 { + if c == END { + v2 = 0 + } else { + v2 = int32(FNM_NOMATCH) + } + return v2 + } + str = str + uintptr(**(**Tsize_t)(__ccgo_up(bp + 8))) + n = n - **(**Tsize_t)(__ccgo_up(bp + 8)) + if flags&int32(FNM_CASEFOLD) != 0 { + v2 = _casefold(tls, k) + } else { + v2 = k + } + kfold = v2 + if c == -int32(3) { + if !(_match_bracket(tls, pat, k, kfold) != 0) { + return int32(FNM_NOMATCH) + } + } else { + if c != -int32(4) && k != c && kfold != c { + return int32(FNM_NOMATCH) + } + } + pat = pat + uintptr(**(**Tsize_t)(__ccgo_up(bp))) + m = m - **(**Tsize_t)(__ccgo_up(bp)) + goto _1 + } + break + goto _1 + _1: + } + /* Compute real pat length if it was initially unknown/-1 */ + m = Xstrnlen(tls, pat, m) + endpat = pat + uintptr(m) + /* Find the last * in pat and count chars needed after it */ + v6 = pat + ptail = v6 + p = v6 + for { + if !(p < endpat) { + break + } + switch _pat_next(tls, p, Uint64FromInt64(int64(endpat)-int64(p)), bp, flags) { + case -int32(2): + return int32(FNM_NOMATCH) + case -int32(5): + tailcnt = uint64(0) + ptail = p + uintptr(1) + default: + tailcnt = tailcnt + 1 + break + } + goto _5 + _5: + ; + p = p + uintptr(**(**Tsize_t)(__ccgo_up(bp))) + } + /* Past this point we need not check for UNMATCHABLE in pat, + * because all of pat has already been parsed once. */ + /* Compute real str length if it was initially unknown/-1 */ + n = Xstrnlen(tls, str, n) + endstr = str + uintptr(n) + if n < tailcnt { + return int32(FNM_NOMATCH) + } + /* Find the final tailcnt chars of str, accounting for UTF-8. + * On illegal sequences we may get it wrong, but in that case + * we necessarily have a matching failure anyway. */ + s = endstr + for { + if !(s > str && tailcnt != 0) { + break + } + if v9 = uint32(**(**uint8)(__ccgo_up(s + uintptr(-Int32FromInt32(1))))) < uint32(128); !v9 { + if !!(**(**uintptr)(__ccgo_up((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale)) != 0) { + v2 = int32(4) + } else { + v2 = int32(1) + } + } + if v9 || v2 == int32(1) { + s = s - 1 + } else { + for { + s = s - 1 + v6 = s + if !(uint32(uint8(**(**uint8)(__ccgo_up(v6))))-uint32(0x80) < uint32(0x40) && s > str) { + break + } + } + } + goto _7 + _7: + ; + tailcnt = tailcnt - 1 + } + if tailcnt != 0 { + return int32(FNM_NOMATCH) + } + stail = s + /* Check that the pat and str tails match */ + p = ptail + for { + c = _pat_next(tls, p, Uint64FromInt64(int64(endpat)-int64(p)), bp, flags) + p = p + uintptr(**(**Tsize_t)(__ccgo_up(bp))) + v2 = _str_next(tls, s, Uint64FromInt64(int64(endstr)-int64(s)), bp+8) + k = v2 + if v2 <= 0 { + if c != END { + return int32(FNM_NOMATCH) + } + break + } + s = s + uintptr(**(**Tsize_t)(__ccgo_up(bp + 8))) + if flags&int32(FNM_CASEFOLD) != 0 { + v2 = _casefold(tls, k) + } else { + v2 = k + } + kfold = v2 + if c == -int32(3) { + if !(_match_bracket(tls, p-uintptr(**(**Tsize_t)(__ccgo_up(bp))), k, kfold) != 0) { + return int32(FNM_NOMATCH) + } + } else { + if c != -int32(4) && k != c && kfold != c { + return int32(FNM_NOMATCH) + } + } + goto _11 + _11: + } + /* We're all done with the tails now, so throw them out */ + endstr = stail + endpat = ptail + /* Match pattern components until there are none left */ + for pat < endpat { + p = pat + s = str + for { + c = _pat_next(tls, p, Uint64FromInt64(int64(endpat)-int64(p)), bp, flags) + p = p + uintptr(**(**Tsize_t)(__ccgo_up(bp))) + /* Encountering * completes/commits a component */ + if c == -int32(5) { + pat = p + str = s + break + } + k = _str_next(tls, s, Uint64FromInt64(int64(endstr)-int64(s)), bp+8) + if !(k != 0) { + return int32(FNM_NOMATCH) + } + if flags&int32(FNM_CASEFOLD) != 0 { + v2 = _casefold(tls, k) + } else { + v2 = k + } + kfold = v2 + if c == -int32(3) { + if !(_match_bracket(tls, p-uintptr(**(**Tsize_t)(__ccgo_up(bp))), k, kfold) != 0) { + break + } + } else { + if c != -int32(4) && k != c && kfold != c { + break + } + } + s = s + uintptr(**(**Tsize_t)(__ccgo_up(bp + 8))) + goto _14 + _14: + } + if c == -int32(5) { + continue + } + /* If we failed, advance str, by 1 char if it's a valid + * char, or past all invalid bytes otherwise. */ + k = _str_next(tls, str, Uint64FromInt64(int64(endstr)-int64(str)), bp+8) + if k > 0 { + str = str + uintptr(**(**Tsize_t)(__ccgo_up(bp + 8))) + } else { + str = str + 1 + for { + if !(_str_next(tls, str, Uint64FromInt64(int64(endstr)-int64(str)), bp+8) < 0) { + break + } + goto _16 + _16: + ; + str = str + 1 + } + } + } + return 0 +} + +func Xfnmatch(tls *TLS, pat uintptr, str uintptr, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v pat=%v str=%v flags=%v, (%v:)", tls, pat, str, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var c, v4 int32 + var p, s uintptr + var _ /* inc at bp+0 */ Tsize_t + _, _, _, _ = c, p, s, v4 + if flags&int32(FNM_PATHNAME) != 0 { + for { + s = str + for { + if !(**(**uint8)(__ccgo_up(s)) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(s))) != int32('/')) { + break + } + goto _2 + _2: + ; + s = s + 1 + } + p = pat + for { + v4 = _pat_next(tls, p, Uint64FromInt32(-Int32FromInt32(1)), bp, flags) + c = v4 + if !(v4 != END && c != int32('/')) { + break + } + goto _3 + _3: + ; + p = p + uintptr(**(**Tsize_t)(__ccgo_up(bp))) + } + if c != Int32FromUint8(**(**uint8)(__ccgo_up(s))) && (!(**(**uint8)(__ccgo_up(s)) != 0) || !(flags&Int32FromInt32(FNM_LEADING_DIR) != 0)) { + return int32(FNM_NOMATCH) + } + if _fnmatch_internal(tls, pat, Uint64FromInt64(int64(p)-int64(pat)), str, Uint64FromInt64(int64(s)-int64(str)), flags) != 0 { + return int32(FNM_NOMATCH) + } + if !(c != 0) { + return 0 + } + str = s + uintptr(1) + pat = p + uintptr(**(**Tsize_t)(__ccgo_up(bp))) + goto _1 + _1: + } + } else { + if flags&int32(FNM_LEADING_DIR) != 0 { + s = str + for { + if !(**(**uint8)(__ccgo_up(s)) != 0) { + break + } + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) != int32('/') { + goto _5 + } + if !(_fnmatch_internal(tls, pat, Uint64FromInt32(-Int32FromInt32(1)), str, Uint64FromInt64(int64(s)-int64(str)), flags) != 0) { + return 0 + } + goto _5 + _5: + ; + s = s + 1 + } + } + } + return _fnmatch_internal(tls, pat, Uint64FromInt32(-Int32FromInt32(1)), str, Uint64FromInt32(-Int32FromInt32(1)), flags) +} + +const GLOB_ABORTED = 2 +const GLOB_APPEND = 32 +const GLOB_DOOFFS = 8 +const GLOB_ERR = 1 +const GLOB_MARK = 2 +const GLOB_NOCHECK = 16 +const GLOB_NOESCAPE = 64 +const GLOB_NOMATCH = 3 +const GLOB_NOSORT = 4 +const GLOB_NOSPACE = 1 +const GLOB_NOSYS = 4 +const GLOB_PERIOD = 128 +const GLOB_TILDE = 4096 +const GLOB_TILDE_CHECK = 16384 + +type Tglob_t = struct { + Fgl_pathc Tsize_t + Fgl_pathv uintptr + Fgl_offs Tsize_t + F__dummy1 int32 + F__dummy2 [5]uintptr +} + +type Tmatch = struct { + Fnext uintptr +} + +func _append(tls *TLS, tail uintptr, name uintptr, len1 Tsize_t, mark int32) (r int32) { + var new1 uintptr + _ = new1 + new1 = Xmalloc(tls, uint64(8)+len1+uint64(2)) + if !(new1 != 0) { + return -int32(1) + } + (*Tmatch)(unsafe.Pointer(**(**uintptr)(__ccgo_up(tail)))).Fnext = new1 + (*Tmatch)(unsafe.Pointer(new1)).Fnext = UintptrFromInt32(0) + Xmemcpy(tls, new1+8, name, len1+uint64(1)) + if mark != 0 && len1 != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(name + uintptr(len1-uint64(1))))) != int32('/') { + *(*uint8)(unsafe.Pointer(new1 + 8 + uintptr(len1))) = uint8('/') + *(*uint8)(unsafe.Pointer(new1 + 8 + uintptr(len1+uint64(1)))) = uint8(0) + } + **(**uintptr)(__ccgo_up(tail)) = new1 + return 0 +} + +func _do_glob(tls *TLS, buf uintptr, pos Tsize_t, type1 int32, pat uintptr, flags int32, __ccgo_fp_errfunc uintptr, tail uintptr) (r1 int32) { + bp := tls.Alloc(128) + defer tls.Free(128) + var de, dir, p, p2, v2 uintptr + var fnm_flags, in_bracket, old_errno, overflow, r, readerr, v10, v9 int32 + var i, j, v4 Tptrdiff_t + var l, v1 Tsize_t + var saved_sep uint8 + var _ /* st at bp+0 */ Tstat + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = de, dir, fnm_flags, i, in_bracket, j, l, old_errno, overflow, p, p2, r, readerr, saved_sep, v1, v10, v2, v4, v9 + /* If GLOB_MARK is unused, we don't care about type. */ + if !(type1 != 0) && !(flags&Int32FromInt32(GLOB_MARK) != 0) { + type1 = int32(DT_REG) + } + /* Special-case the remaining pattern being all slashes, in + * which case we can use caller-passed type if it's a dir. */ + if **(**uint8)(__ccgo_up(pat)) != 0 && type1 != int32(DT_DIR) { + type1 = 0 + } + for pos+uint64(1) < uint64(PATH_MAX) && Int32FromUint8(**(**uint8)(__ccgo_up(pat))) == int32('/') { + v1 = pos + pos = pos + 1 + v2 = pat + pat = pat + 1 + **(**uint8)(__ccgo_up(buf + uintptr(v1))) = **(**uint8)(__ccgo_up(v2)) + } + /* Consume maximal [escaped-]literal prefix of pattern, copying + * and un-escaping it to the running buffer as we go. */ + i = 0 + j = 0 + in_bracket = 0 + overflow = 0 + for { + if !(Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(i)))) != int32('*') && Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(i)))) != int32('?') && (!(in_bracket != 0) || Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(i)))) != int32(']'))) { + break + } + if !(**(**uint8)(__ccgo_up(pat + uintptr(i))) != 0) { + if overflow != 0 { + return 0 + } + pat = pat + uintptr(i) + pos = pos + Uint64FromInt64(j) + v4 = Int64FromInt32(0) + j = v4 + i = v4 + break + } else { + if Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(i)))) == int32('[') { + in_bracket = int32(1) + } else { + if Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(i)))) == int32('\\') && !(flags&Int32FromInt32(GLOB_NOESCAPE) != 0) { + /* Backslashes inside a bracket are (at least by + * our interpretation) non-special, so if next + * char is ']' we have a complete expression. */ + if in_bracket != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(i+int64(1))))) == int32(']') { + break + } + /* Unpaired final backslash never matches. */ + if !(**(**uint8)(__ccgo_up(pat + uintptr(i+int64(1)))) != 0) { + return 0 + } + i = i + 1 + } + } + } + if Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(i)))) == int32('/') { + if overflow != 0 { + return 0 + } + in_bracket = 0 + pat = pat + uintptr(i+int64(1)) + i = int64(-int32(1)) + pos = pos + Uint64FromInt64(j+int64(1)) + j = int64(-int32(1)) + } + /* Only store a character if it fits in the buffer, but if + * a potential bracket expression is open, the overflow + * must be remembered and handled later only if the bracket + * is unterminated (and thereby a literal), so as not to + * disallow long bracket expressions with short matches. */ + if pos+Uint64FromInt64(j+Int64FromInt32(1)) < uint64(PATH_MAX) { + v4 = j + j = j + 1 + **(**uint8)(__ccgo_up(buf + uintptr(pos+Uint64FromInt64(v4)))) = **(**uint8)(__ccgo_up(pat + uintptr(i))) + } else { + if in_bracket != 0 { + overflow = int32(1) + } else { + return 0 + } + } + /* If we consume any new components, the caller-passed type + * or dummy type from above is no longer valid. */ + type1 = 0 + goto _3 + _3: + ; + i = i + 1 + } + **(**uint8)(__ccgo_up(buf + uintptr(pos))) = uint8(0) + if !(**(**uint8)(__ccgo_up(pat)) != 0) { + if flags&int32(GLOB_MARK) != 0 && (!(type1 != 0) || type1 == int32(DT_LNK)) && !(Xstat(tls, buf, bp) != 0) { + if (**(**Tstat)(__ccgo_up(bp))).Fst_mode&uint32(S_IFMT) == uint32(S_IFDIR) { + type1 = int32(DT_DIR) + } else { + type1 = int32(DT_REG) + } + } + if !(type1 != 0) && Xlstat(tls, buf, bp) != 0 { + if **(**int32)(__ccgo_up(X__errno_location(tls))) != int32(ENOENT) && ((*(*func(*TLS, uintptr, int32) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_errfunc})))(tls, buf, **(**int32)(__ccgo_up(X__errno_location(tls)))) != 0 || flags&int32(GLOB_ERR) != 0) { + return int32(GLOB_ABORTED) + } + return 0 + } + if _append(tls, tail, buf, pos, BoolInt32(flags&int32(GLOB_MARK) != 0 && type1 == int32(DT_DIR))) != 0 { + return int32(GLOB_NOSPACE) + } + return 0 + } + p2 = Xstrchr(tls, pat, int32('/')) + saved_sep = uint8('/') + /* Check if the '/' was escaped and, if so, remove the escape char + * so that it will not be unpaired when passed to fnmatch. */ + if p2 != 0 && !(flags&Int32FromInt32(GLOB_NOESCAPE) != 0) { + p = p2 + for { + if !(p > pat && Int32FromUint8(**(**uint8)(__ccgo_up(p + uintptr(-Int32FromInt32(1))))) == int32('\\')) { + break + } + goto _6 + _6: + ; + p = p - 1 + } + if (int64(p2)-int64(p))%int64(2) != 0 { + p2 = p2 - 1 + saved_sep = uint8('\\') + } + } + if pos != 0 { + v2 = buf + } else { + v2 = __ccgo_ts + 558 + } + dir = Xopendir(tls, v2) + if !(dir != 0) { + if (*(*func(*TLS, uintptr, int32) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_errfunc})))(tls, buf, **(**int32)(__ccgo_up(X__errno_location(tls)))) != 0 || flags&int32(GLOB_ERR) != 0 { + return int32(GLOB_ABORTED) + } + return 0 + } + old_errno = **(**int32)(__ccgo_up(X__errno_location(tls))) + for { + **(**int32)(__ccgo_up(X__errno_location(tls))) = 0 + v2 = Xreaddir(tls, dir) + de = v2 + if !(v2 != 0) { + break + } + /* Quickly skip non-directories when there's pattern left. */ + if p2 != 0 && (*Tdirent)(unsafe.Pointer(de)).Fd_type != 0 && Int32FromUint8((*Tdirent)(unsafe.Pointer(de)).Fd_type) != int32(DT_DIR) && Int32FromUint8((*Tdirent)(unsafe.Pointer(de)).Fd_type) != int32(DT_LNK) { + continue + } + l = _strlen(tls, de+19) + if l >= uint64(PATH_MAX)-pos { + continue + } + if p2 != 0 { + **(**uint8)(__ccgo_up(p2)) = uint8(0) + } + if flags&int32(GLOB_NOESCAPE) != 0 { + v9 = int32(FNM_NOESCAPE) + } else { + v9 = 0 + } + if !(flags&Int32FromInt32(GLOB_PERIOD) != 0) { + v10 = int32(FNM_PERIOD) + } else { + v10 = 0 + } + fnm_flags = v9 | v10 + if Xfnmatch(tls, pat, de+19, fnm_flags) != 0 { + continue + } + /* With GLOB_PERIOD, don't allow matching . or .. unless + * fnmatch would match them with FNM_PERIOD rules in effect. */ + if p2 != 0 && flags&int32(GLOB_PERIOD) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(de + 19))) == int32('.') && (!(**(**uint8)(__ccgo_up(de + 19 + 1)) != 0) || Int32FromUint8(**(**uint8)(__ccgo_up(de + 19 + 1))) == int32('.') && !(**(**uint8)(__ccgo_up(de + 19 + 2)) != 0)) && Xfnmatch(tls, pat, de+19, fnm_flags|int32(FNM_PERIOD)) != 0 { + continue + } + Xmemcpy(tls, buf+uintptr(pos), de+19, l+uint64(1)) + if p2 != 0 { + **(**uint8)(__ccgo_up(p2)) = saved_sep + } + if p2 != 0 { + v2 = p2 + } else { + v2 = __ccgo_ts + } + r = _do_glob(tls, buf, pos+l, Int32FromUint8((*Tdirent)(unsafe.Pointer(de)).Fd_type), v2, flags, __ccgo_fp_errfunc, tail) + if r != 0 { + Xclosedir(tls, dir) + return r + } + } + readerr = **(**int32)(__ccgo_up(X__errno_location(tls))) + if p2 != 0 { + **(**uint8)(__ccgo_up(p2)) = saved_sep + } + Xclosedir(tls, dir) + if readerr != 0 && ((*(*func(*TLS, uintptr, int32) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_errfunc})))(tls, buf, **(**int32)(__ccgo_up(X__errno_location(tls)))) != 0 || flags&int32(GLOB_ERR) != 0) { + return int32(GLOB_ABORTED) + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = old_errno + return 0 +} + +func _ignore_err(tls *TLS, path uintptr, err int32) (r int32) { + return 0 +} + +func _freelist(tls *TLS, head uintptr) { + var match, next uintptr + _, _ = match, next + match = (*Tmatch)(unsafe.Pointer(head)).Fnext + for { + if !(match != 0) { + break + } + next = (*Tmatch)(unsafe.Pointer(match)).Fnext + Xfree(tls, match) + goto _1 + _1: + ; + match = next + } +} + +func _sort(tls *TLS, a uintptr, b uintptr) (r int32) { + return Xstrcmp(tls, **(**uintptr)(__ccgo_up(a)), **(**uintptr)(__ccgo_up(b))) +} + +func _expand_tilde(tls *TLS, pat uintptr, buf uintptr, pos uintptr) (r int32) { + bp := tls.Alloc(64) + defer tls.Free(64) + var delim, v1 uint8 + var home, name_end, p, v2 uintptr + var i, v10 Tsize_t + var v4 int32 + var _ /* pw at bp+0 */ Tpasswd + var _ /* res at bp+48 */ uintptr + _, _, _, _, _, _, _, _, _ = delim, home, i, name_end, p, v1, v10, v2, v4 + p = **(**uintptr)(__ccgo_up(pat)) + uintptr(1) + i = uint64(0) + name_end = X__strchrnul(tls, p, int32('/')) + v1 = **(**uint8)(__ccgo_up(name_end)) + delim = v1 + if v1 != 0 { + v2 = name_end + name_end = name_end + 1 + **(**uint8)(__ccgo_up(v2)) = uint8(0) + } + **(**uintptr)(__ccgo_up(pat)) = name_end + if **(**uint8)(__ccgo_up(p)) != 0 { + v2 = UintptrFromInt32(0) + } else { + v2 = Xgetenv(tls, __ccgo_ts+1395) + } + home = v2 + if !(home != 0) { + if **(**uint8)(__ccgo_up(p)) != 0 { + v4 = Xgetpwnam_r(tls, p, bp, buf, uint64(PATH_MAX), bp+48) + } else { + v4 = Xgetpwuid_r(tls, Xgetuid(tls), bp, buf, uint64(PATH_MAX), bp+48) + } + switch v4 { + case int32(ENOMEM): + goto _5 + default: + goto _6 + case 0: + goto _7 + } + goto _8 + _5: + ; + return int32(GLOB_NOSPACE) + _7: + ; + if !!(**(**uintptr)(__ccgo_up(bp + 48)) != 0) { + goto _9 + } + _6: + ; + return int32(GLOB_NOMATCH) + _9: + ; + _8: + ; + home = (**(**Tpasswd)(__ccgo_up(bp))).Fpw_dir + } + for i < Uint64FromInt32(Int32FromInt32(PATH_MAX)-Int32FromInt32(2)) && **(**uint8)(__ccgo_up(home)) != 0 { + v10 = i + i = i + 1 + v2 = home + home = home + 1 + **(**uint8)(__ccgo_up(buf + uintptr(v10))) = **(**uint8)(__ccgo_up(v2)) + } + if **(**uint8)(__ccgo_up(home)) != 0 { + return int32(GLOB_NOMATCH) + } + v1 = delim + **(**uint8)(__ccgo_up(buf + uintptr(i))) = v1 + if v1 != 0 { + i = i + 1 + v10 = i + **(**uint8)(__ccgo_up(buf + uintptr(v10))) = uint8(0) + } + **(**Tsize_t)(__ccgo_up(pos)) = i + return 0 +} + +type t__ccgo_fp__Xglob_2 = func(*TLS, uintptr, int32) int32 + +func Xglob(tls *TLS, pat uintptr, flags int32, __ccgo_fp_errfunc uintptr, g uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v pat=%v flags=%v __ccgo_fp_errfunc=%v g=%v, (%v:)", tls, pat, flags, __ccgo_fp_errfunc, g, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(4128) + defer tls.Free(4128) + var cnt, i, offs Tsize_t + var error1 int32 + var p, pathv uintptr + var v1 uint64 + var _ /* buf at bp+16 */ [4096]uint8 + var _ /* head at bp+0 */ Tmatch + var _ /* pos at bp+4112 */ Tsize_t + var _ /* s at bp+4120 */ uintptr + var _ /* tail at bp+8 */ uintptr + _, _, _, _, _, _, _ = cnt, error1, i, offs, p, pathv, v1 + **(**Tmatch)(__ccgo_up(bp)) = struct { + Fnext uintptr + }{} + **(**uintptr)(__ccgo_up(bp + 8)) = bp + if flags&int32(GLOB_DOOFFS) != 0 { + v1 = (*Tglob_t)(unsafe.Pointer(g)).Fgl_offs + } else { + v1 = uint64(0) + } + offs = v1 + error1 = 0 + if !(__ccgo_fp_errfunc != 0) { + __ccgo_fp_errfunc = __ccgo_fp(_ignore_err) + } + if !(flags&Int32FromInt32(GLOB_APPEND) != 0) { + (*Tglob_t)(unsafe.Pointer(g)).Fgl_offs = offs + (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathc = uint64(0) + (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv = UintptrFromInt32(0) + } + if **(**uint8)(__ccgo_up(pat)) != 0 { + p = Xstrdup(tls, pat) + if !(p != 0) { + return int32(GLOB_NOSPACE) + } + (**(**[4096]uint8)(__ccgo_up(bp + 16)))[0] = uint8(0) + **(**Tsize_t)(__ccgo_up(bp + 4112)) = uint64(0) + **(**uintptr)(__ccgo_up(bp + 4120)) = p + if flags&(Int32FromInt32(GLOB_TILDE)|Int32FromInt32(GLOB_TILDE_CHECK)) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('~') { + error1 = _expand_tilde(tls, bp+4120, bp+16, bp+4112) + } + if !(error1 != 0) { + error1 = _do_glob(tls, bp+16, **(**Tsize_t)(__ccgo_up(bp + 4112)), 0, **(**uintptr)(__ccgo_up(bp + 4120)), flags, __ccgo_fp_errfunc, bp+8) + } + Xfree(tls, p) + } + if error1 == int32(GLOB_NOSPACE) { + _freelist(tls, bp) + return error1 + } + cnt = uint64(0) + **(**uintptr)(__ccgo_up(bp + 8)) = (**(**Tmatch)(__ccgo_up(bp))).Fnext + for { + if !(**(**uintptr)(__ccgo_up(bp + 8)) != 0) { + break + } + goto _2 + _2: + ; + **(**uintptr)(__ccgo_up(bp + 8)) = (*Tmatch)(unsafe.Pointer(**(**uintptr)(__ccgo_up(bp + 8)))).Fnext + cnt = cnt + 1 + } + if !(cnt != 0) { + if flags&int32(GLOB_NOCHECK) != 0 { + **(**uintptr)(__ccgo_up(bp + 8)) = bp + if _append(tls, bp+8, pat, _strlen(tls, pat), 0) != 0 { + return int32(GLOB_NOSPACE) + } + cnt = cnt + 1 + } else { + if !(error1 != 0) { + return int32(GLOB_NOMATCH) + } + } + } + if flags&int32(GLOB_APPEND) != 0 { + pathv = Xrealloc(tls, (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv, (offs+(*Tglob_t)(unsafe.Pointer(g)).Fgl_pathc+cnt+uint64(1))*uint64(8)) + if !(pathv != 0) { + _freelist(tls, bp) + return int32(GLOB_NOSPACE) + } + (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv = pathv + offs = offs + (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathc + } else { + (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv = Xmalloc(tls, (offs+cnt+uint64(1))*uint64(8)) + if !((*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv != 0) { + _freelist(tls, bp) + return int32(GLOB_NOSPACE) + } + i = uint64(0) + for { + if !(i < offs) { + break + } + **(**uintptr)(__ccgo_up((*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv + uintptr(i)*8)) = UintptrFromInt32(0) + goto _3 + _3: + ; + i = i + 1 + } + } + i = uint64(0) + **(**uintptr)(__ccgo_up(bp + 8)) = (**(**Tmatch)(__ccgo_up(bp))).Fnext + for { + if !(i < cnt) { + break + } + **(**uintptr)(__ccgo_up((*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv + uintptr(offs+i)*8)) = **(**uintptr)(__ccgo_up(bp + 8)) + 8 + goto _4 + _4: + ; + **(**uintptr)(__ccgo_up(bp + 8)) = (*Tmatch)(unsafe.Pointer(**(**uintptr)(__ccgo_up(bp + 8)))).Fnext + i = i + 1 + } + **(**uintptr)(__ccgo_up((*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv + uintptr(offs+i)*8)) = UintptrFromInt32(0) + **(**Tsize_t)(__ccgo_up(g)) += cnt + if !(flags&Int32FromInt32(GLOB_NOSORT) != 0) { + Xqsort(tls, (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv+uintptr(offs)*8, cnt, uint64(8), __ccgo_fp(_sort)) + } + return error1 +} + +func Xglobfree(tls *TLS, g uintptr) { + if __ccgo_strace { + trc("tls=%v g=%v, (%v:)", tls, g, origin(2)) + } + var i Tsize_t + _ = i + i = uint64(0) + for { + if !(i < (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathc) { + break + } + Xfree(tls, **(**uintptr)(__ccgo_up((*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv + uintptr((*Tglob_t)(unsafe.Pointer(g)).Fgl_offs+i)*8))-uintptr(uint64(UintptrFromInt32(0)+8))) + goto _1 + _1: + ; + i = i + 1 + } + Xfree(tls, (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv) + (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathc = uint64(0) + (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv = UintptrFromInt32(0) +} + +const ASSERTION = -2 +const ASSERT_AT_BOL = 1 +const ASSERT_AT_BOW = 16 +const ASSERT_AT_EOL = 2 +const ASSERT_AT_EOW = 32 +const ASSERT_AT_WB = 64 +const ASSERT_AT_WB_NEG = 128 +const ASSERT_BACKREF = 256 +const ASSERT_CHAR_CLASS = 4 +const ASSERT_CHAR_CLASS_NEG = 8 +const ASSERT_LAST = 256 +const BACKREF = -4 +const COPY_MAXIMIZE_FIRST_TAG = 2 +const COPY_REMOVE_TAGS = 1 +const EMPTY1 = -1 +const MAX_NEG_CLASSES = 64 +const REG_BADBR = 10 +const REG_BADPAT = 2 +const REG_BADRPT = 13 +const REG_EBRACE = 9 +const REG_EBRACK = 7 +const REG_ECOLLATE = 3 +const REG_ECTYPE = 4 +const REG_EESCAPE = 5 +const REG_ENOSYS = -1 +const REG_EPAREN = 8 +const REG_ERANGE = 11 +const REG_ESPACE = 12 +const REG_ESUBREG = 6 +const REG_EXTENDED = 1 +const REG_ICASE = 2 +const REG_NEWLINE = 4 +const REG_NOMATCH = 1 +const REG_NOSUB = 8 +const REG_NOTBOL = 1 +const REG_NOTEOL = 2 +const REG_OK = 0 +const TAG = -3 +const TRE_CHAR_MAX = 1114111 +const TRE_MEM_BLOCK_SIZE = 1024 +const TRE_REGEX_T_FIELD = 0 +const tre_ctype = 0 +const tre_isalnum = 0 +const tre_isalpha = 0 +const tre_isblank = 0 +const tre_iscntrl = 0 +const tre_isctype = 0 +const tre_isdigit = 0 +const tre_isgraph = 0 +const tre_islower = 0 +const tre_isprint = 0 +const tre_ispunct = 0 +const tre_isspace = 0 +const tre_isupper = 0 +const tre_isxdigit = 0 +const tre_mem_alloc_impl = 0 +const tre_mem_destroy = 0 +const tre_mem_new_impl = 0 +const tre_strlen = 0 +const tre_tolower = 0 +const tre_toupper = 0 +const xcalloc = 0 +const xfree = 0 +const xmalloc = 0 +const xrealloc = 0 + +type Tregoff_t = int64 + +type Tregex_t = struct { + Fre_nsub Tsize_t + F__opaque uintptr + F__padding [4]uintptr + F__nsub2 Tsize_t + F__padding2 uint8 +} + +type Tre_pattern_buffer = Tregex_t + +type Tregmatch_t = struct { + Frm_so Tregoff_t + Frm_eo Tregoff_t +} + +type Treg_errcode_t = int32 + +type Ttre_char_t = uint32 + +type Ttre_cint_t = uint32 + +type Ttre_ctype_t = uint64 + +type Ttre_tnfa_transition_t = struct { + Fcode_min Ttre_cint_t + Fcode_max Ttre_cint_t + Fstate uintptr + Fstate_id int32 + Ftags uintptr + Fassertions int32 + Fu struct { + Fbackref [0]int32 + Fclass Ttre_ctype_t + } + Fneg_classes uintptr +} + +type Ttnfa_transition = Ttre_tnfa_transition_t + +type Ttre_tag_direction_t = int32 + +const _TRE_TAG_MINIMIZE = 0 +const _TRE_TAG_MAXIMIZE = 1 + +type Ttre_submatch_data = struct { + Fso_tag int32 + Feo_tag int32 + Fparents uintptr +} + +type Ttre_submatch_data_t = struct { + Fso_tag int32 + Feo_tag int32 + Fparents uintptr +} + +type Ttre_tnfa_t = struct { + Ftransitions uintptr + Fnum_transitions uint32 + Finitial uintptr + Ffinal uintptr + Fsubmatch_data uintptr + Ffirstpos_chars uintptr + Ffirst_char int32 + Fnum_submatches uint32 + Ftag_directions uintptr + Fminimal_tags uintptr + Fnum_tags int32 + Fnum_minimals int32 + Fend_tag int32 + Fnum_states int32 + Fcflags int32 + Fhave_backrefs int32 + Fhave_approx int32 +} + +type Ttnfa = Ttre_tnfa_t + +type Ttre_list_t = struct { + Fdata uintptr + Fnext uintptr +} + +type Ttre_list = Ttre_list_t + +type Ttre_mem_t = uintptr + +type Ttre_mem_struct = struct { + Fblocks uintptr + Fcurrent uintptr + Fptr uintptr + Fn Tsize_t + Ffailed int32 + Fprovided uintptr +} + +/*********************************************************************** + from tre-compile.h +***********************************************************************/ + +type Ttre_pos_and_tags_t = struct { + Fposition int32 + Fcode_min int32 + Fcode_max int32 + Ftags uintptr + Fassertions int32 + Fclass Ttre_ctype_t + Fneg_classes uintptr + Fbackref int32 +} + +/*********************************************************************** + from tre-ast.c and tre-ast.h +***********************************************************************/ + +// C documentation +// +// /* The different AST node types. */ +type Ttre_ast_type_t = int32 + +const _LITERAL = 0 +const _CATENATION = 1 +const _ITERATION = 2 +const _UNION = 3 + +/* Special subtypes of TRE_LITERAL. */ + +// C documentation +// +// /* A generic AST node. All AST nodes consist of this node on the top +// level with `obj' pointing to the actual content. */ +type Ttre_ast_node_t = struct { + Ftype1 Ttre_ast_type_t + Fobj uintptr + Fnullable int32 + Fsubmatch_id int32 + Fnum_submatches int32 + Fnum_tags int32 + Ffirstpos uintptr + Flastpos uintptr +} + +// C documentation +// +// /* A "literal" node. These are created for assertions, back references, +// tags, matching parameter settings, and all expressions that match one +// character. */ +type Ttre_literal_t = struct { + Fcode_min int64 + Fcode_max int64 + Fposition int32 + Fclass Ttre_ctype_t + Fneg_classes uintptr +} + +// C documentation +// +// /* A "catenation" node. These are created when two regexps are concatenated. +// If there are more than one subexpressions in sequence, the `left' part +// holds all but the last, and `right' part holds the last subexpression +// (catenation is left associative). */ +type Ttre_catenation_t = struct { + Fleft uintptr + Fright uintptr +} + +// C documentation +// +// /* An "iteration" node. These are created for the "*", "+", "?", and "{m,n}" +// operators. */ +type Ttre_iteration_t = struct { + Farg uintptr + Fmin int32 + Fmax int32 + F__ccgo16 uint8 +} + +// C documentation +// +// /* An "union" node. These are created for the "|" operator. */ +type Ttre_union_t = struct { + Fleft uintptr + Fright uintptr +} + +func _tre_ast_new_node(tls *TLS, mem Ttre_mem_t, type1 int32, obj uintptr) (r uintptr) { + var node uintptr + _ = node + node = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), int32(1), uint64(48)) + if !(node != 0) || !(obj != 0) { + return uintptr(0) + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj = obj + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 = type1 + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnullable = -int32(1) + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fsubmatch_id = -int32(1) + return node +} + +func _tre_ast_new_literal(tls *TLS, mem Ttre_mem_t, code_min int32, code_max int32, position int32) (r uintptr) { + var lit, node uintptr + _, _ = lit, node + lit = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), int32(1), uint64(40)) + node = _tre_ast_new_node(tls, mem, int32(_LITERAL), lit) + if !(node != 0) { + return uintptr(0) + } + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min = int64(code_min) + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max = int64(code_max) + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition = position + return node +} + +func _tre_ast_new_iter(tls *TLS, mem Ttre_mem_t, arg uintptr, min int32, max int32, minimal int32) (r uintptr) { + var iter, node uintptr + _, _ = iter, node + iter = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), int32(1), uint64(24)) + node = _tre_ast_new_node(tls, mem, int32(_ITERATION), iter) + if !(node != 0) { + return uintptr(0) + } + (*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg = arg + (*Ttre_iteration_t)(unsafe.Pointer(iter)).Fmin = min + (*Ttre_iteration_t)(unsafe.Pointer(iter)).Fmax = max + SetBitFieldPtr8Uint32(iter+16, Uint32FromInt32(minimal), 0, 0x1) + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_submatches = (*Ttre_ast_node_t)(unsafe.Pointer(arg)).Fnum_submatches + return node +} + +func _tre_ast_new_union(tls *TLS, mem Ttre_mem_t, left uintptr, right uintptr) (r uintptr) { + var node, un uintptr + _, _ = node, un + if !(left != 0) { + return right + } + un = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), int32(1), uint64(16)) + node = _tre_ast_new_node(tls, mem, int32(_UNION), un) + if !(node != 0) || !(right != 0) { + return uintptr(0) + } + (*Ttre_union_t)(unsafe.Pointer(un)).Fleft = left + (*Ttre_union_t)(unsafe.Pointer(un)).Fright = right + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_submatches = (*Ttre_ast_node_t)(unsafe.Pointer(left)).Fnum_submatches + (*Ttre_ast_node_t)(unsafe.Pointer(right)).Fnum_submatches + return node +} + +func _tre_ast_new_catenation(tls *TLS, mem Ttre_mem_t, left uintptr, right uintptr) (r uintptr) { + var cat, node uintptr + _, _ = cat, node + if !(left != 0) { + return right + } + cat = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), int32(1), uint64(16)) + node = _tre_ast_new_node(tls, mem, int32(_CATENATION), cat) + if !(node != 0) { + return uintptr(0) + } + (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft = left + (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright = right + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_submatches = (*Ttre_ast_node_t)(unsafe.Pointer(left)).Fnum_submatches + (*Ttre_ast_node_t)(unsafe.Pointer(right)).Fnum_submatches + return node +} + +/*********************************************************************** + from tre-stack.c and tre-stack.h +***********************************************************************/ + +type Ttre_stack_t = struct { + Fsize int32 + Fmax_size int32 + Fincrement int32 + Fptr int32 + Fstack uintptr +} + +/*********************************************************************** + from tre-stack.c and tre-stack.h +***********************************************************************/ + +type Ttre_stack_rec = Ttre_stack_t + +/* Just to save some typing. */ + +type Ttre_stack_item = struct { + Fint_value [0]int32 + Fvoidptr_value uintptr +} + +func _tre_stack_new(tls *TLS, size int32, max_size int32, increment int32) (r uintptr) { + var s uintptr + _ = s + s = Xmalloc(tls, uint64(24)) + if s != UintptrFromInt32(0) { + (*Ttre_stack_t)(unsafe.Pointer(s)).Fstack = Xmalloc(tls, uint64(8)*Uint64FromInt32(size)) + if (*Ttre_stack_t)(unsafe.Pointer(s)).Fstack == UintptrFromInt32(0) { + Xfree(tls, s) + return UintptrFromInt32(0) + } + (*Ttre_stack_t)(unsafe.Pointer(s)).Fsize = size + (*Ttre_stack_t)(unsafe.Pointer(s)).Fmax_size = max_size + (*Ttre_stack_t)(unsafe.Pointer(s)).Fincrement = increment + (*Ttre_stack_t)(unsafe.Pointer(s)).Fptr = 0 + } + return s +} + +func _tre_stack_destroy(tls *TLS, s uintptr) { + Xfree(tls, (*Ttre_stack_t)(unsafe.Pointer(s)).Fstack) + Xfree(tls, s) +} + +func _tre_stack_num_objects(tls *TLS, s uintptr) (r int32) { + return (*Ttre_stack_t)(unsafe.Pointer(s)).Fptr +} + +func _tre_stack_push(tls *TLS, s uintptr, value Ttre_stack_item) (r Treg_errcode_t) { + var new_buffer uintptr + var new_size int32 + _, _ = new_buffer, new_size + if (*Ttre_stack_t)(unsafe.Pointer(s)).Fptr < (*Ttre_stack_t)(unsafe.Pointer(s)).Fsize { + **(**Ttre_stack_item)(__ccgo_up((*Ttre_stack_t)(unsafe.Pointer(s)).Fstack + uintptr((*Ttre_stack_t)(unsafe.Pointer(s)).Fptr)*8)) = value + (*Ttre_stack_t)(unsafe.Pointer(s)).Fptr = (*Ttre_stack_t)(unsafe.Pointer(s)).Fptr + 1 + } else { + if (*Ttre_stack_t)(unsafe.Pointer(s)).Fsize >= (*Ttre_stack_t)(unsafe.Pointer(s)).Fmax_size { + return int32(REG_ESPACE) + } else { + new_size = (*Ttre_stack_t)(unsafe.Pointer(s)).Fsize + (*Ttre_stack_t)(unsafe.Pointer(s)).Fincrement + if new_size > (*Ttre_stack_t)(unsafe.Pointer(s)).Fmax_size { + new_size = (*Ttre_stack_t)(unsafe.Pointer(s)).Fmax_size + } + new_buffer = Xrealloc(tls, (*Ttre_stack_t)(unsafe.Pointer(s)).Fstack, uint64(8)*Uint64FromInt32(new_size)) + if new_buffer == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + (*Ttre_stack_t)(unsafe.Pointer(s)).Fsize = new_size + (*Ttre_stack_t)(unsafe.Pointer(s)).Fstack = new_buffer + _tre_stack_push(tls, s, value) + } + } + return REG_OK +} + +func _tre_stack_push_int(tls *TLS, s uintptr, value int32) (r Treg_errcode_t) { + var item Ttre_stack_item + _ = item + *(*int32)(unsafe.Pointer(&item)) = value + return _tre_stack_push(tls, s, item) +} + +func _tre_stack_push_voidptr(tls *TLS, s uintptr, value uintptr) (r Treg_errcode_t) { + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* item at bp+0 */ Ttre_stack_item + *(*uintptr)(unsafe.Pointer(bp)) = value + return _tre_stack_push(tls, s, **(**Ttre_stack_item)(__ccgo_up(bp))) +} + +func _tre_stack_pop_int(tls *TLS, s uintptr) (r int32) { + var v1 int32 + var v2 uintptr + _, _ = v1, v2 + v2 = s + 12 + *(*int32)(unsafe.Pointer(v2)) = *(*int32)(unsafe.Pointer(v2)) - 1 + v1 = *(*int32)(unsafe.Pointer(v2)) + return *(*int32)(unsafe.Pointer(&**(**Ttre_stack_item)(__ccgo_up((*Ttre_stack_t)(unsafe.Pointer(s)).Fstack + uintptr(v1)*8)))) +} + +func _tre_stack_pop_voidptr(tls *TLS, s uintptr) (r uintptr) { + var v1 int32 + var v2 uintptr + _, _ = v1, v2 + v2 = s + 12 + *(*int32)(unsafe.Pointer(v2)) = *(*int32)(unsafe.Pointer(v2)) - 1 + v1 = *(*int32)(unsafe.Pointer(v2)) + return *(*uintptr)(unsafe.Pointer((*Ttre_stack_t)(unsafe.Pointer(s)).Fstack + uintptr(v1)*8)) +} + +/*********************************************************************** + from tre-parse.c and tre-parse.h +***********************************************************************/ + +// C documentation +// +// /* Parse context. */ +type Ttre_parse_ctx_t = struct { + Fmem Ttre_mem_t + Fstack uintptr + Fn uintptr + Fs uintptr + Fstart uintptr + Fsubmatch_id int32 + Fposition int32 + Fmax_backref int32 + Fcflags int32 +} + +// C documentation +// +// /* Some macros for expanding \w, \s, etc. */ +var _tre_macros = [13]struct { + Fc uint8 + Fexpansion uintptr +}{ + 0: { + Fc: uint8('t'), + Fexpansion: __ccgo_ts + 1400, + }, + 1: { + Fc: uint8('n'), + Fexpansion: __ccgo_ts + 301, + }, + 2: { + Fc: uint8('r'), + Fexpansion: __ccgo_ts + 1402, + }, + 3: { + Fc: uint8('f'), + Fexpansion: __ccgo_ts + 1404, + }, + 4: { + Fc: uint8('a'), + Fexpansion: __ccgo_ts + 1406, + }, + 5: { + Fc: uint8('e'), + Fexpansion: __ccgo_ts + 1408, + }, + 6: { + Fc: uint8('w'), + Fexpansion: __ccgo_ts + 1410, + }, + 7: { + Fc: uint8('W'), + Fexpansion: __ccgo_ts + 1423, + }, + 8: { + Fc: uint8('s'), + Fexpansion: __ccgo_ts + 1437, + }, + 9: { + Fc: uint8('S'), + Fexpansion: __ccgo_ts + 1449, + }, + 10: { + Fc: uint8('d'), + Fexpansion: __ccgo_ts + 1462, + }, + 11: { + Fc: uint8('D'), + Fexpansion: __ccgo_ts + 1474, + }, + 12: {}, +} + +// C documentation +// +// /* Expands a macro delimited by `regex' and `regex_end' to `buf', which +// must have at least `len' items. Sets buf[0] to zero if the there +// is no match in `tre_macros'. */ +func _tre_expand_macro(tls *TLS, s uintptr) (r uintptr) { + var i int32 + _ = i + i = 0 + for { + if !(_tre_macros[i].Fc != 0 && Int32FromUint8(_tre_macros[i].Fc) != Int32FromUint8(**(**uint8)(__ccgo_up(s)))) { + break + } + goto _1 + _1: + ; + i = i + 1 + } + return _tre_macros[i].Fexpansion +} + +func _tre_compare_lit(tls *TLS, a uintptr, b uintptr) (r int32) { + var la, lb uintptr + _, _ = la, lb + la = a + lb = b + /* assumes the range of valid code_min is < INT_MAX */ + return int32((*Ttre_literal_t)(unsafe.Pointer(**(**uintptr)(__ccgo_up(la)))).Fcode_min - (*Ttre_literal_t)(unsafe.Pointer(**(**uintptr)(__ccgo_up(lb)))).Fcode_min) +} + +type Tliterals = struct { + Fmem Ttre_mem_t + Fa uintptr + Flen1 int32 + Fcap1 int32 +} + +func _tre_new_lit(tls *TLS, p uintptr) (r uintptr) { + var a, v2 uintptr + var v1 int32 + _, _, _ = a, v1, v2 + if (*Tliterals)(unsafe.Pointer(p)).Flen1 >= (*Tliterals)(unsafe.Pointer(p)).Fcap1 { + if (*Tliterals)(unsafe.Pointer(p)).Fcap1 >= Int32FromInt32(1)< max { + return int32(REG_ERANGE) + } + s = s + uintptr(len1) + } + } + if class != 0 && (*Tneg)(unsafe.Pointer(neg)).Fnegate != 0 { + if (*Tneg)(unsafe.Pointer(neg)).Flen1 >= int32(MAX_NEG_CLASSES) { + return int32(REG_ESPACE) + } + v6 = neg + 4 + v2 = *(*int32)(unsafe.Pointer(v6)) + *(*int32)(unsafe.Pointer(v6)) = *(*int32)(unsafe.Pointer(v6)) + 1 + **(**Ttre_ctype_t)(__ccgo_up(neg + 8 + uintptr(v2)*8)) = class + } else { + lit = _tre_new_lit(tls, ls) + if !(lit != 0) { + return int32(REG_ESPACE) + } + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min = int64(min) + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max = int64(max) + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fclass = class + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition = -int32(1) + /* Add opposite-case codepoints if REG_ICASE is present. + It seems that POSIX requires that bracket negation + should happen before case-folding, but most practical + implementations do it the other way around. Changing + the order would need efficient representation of + case-fold ranges and bracket range sets even with + simple patterns so this is ok for now. */ + if (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fcflags&int32(REG_ICASE) != 0 && !(class != 0) { + if _add_icase_literals(tls, ls, min, max) != 0 { + return int32(REG_ESPACE) + } + } + } + goto _1 + _1: + } + return r +} + +func _parse_bracket(tls *TLS, ctx uintptr, s uintptr) (r Treg_errcode_t) { + bp := tls.Alloc(544) + defer tls.Free(544) + var err Treg_errcode_t + var i, max, min, negmax, negmin, v1 int32 + var lit, n, nc, node uintptr + var _ /* ls at bp+0 */ Tliterals + var _ /* neg at bp+24 */ Tneg + _, _, _, _, _, _, _, _, _, _, _ = err, i, lit, max, min, n, nc, negmax, negmin, node, v1 + node = uintptr(0) + nc = uintptr(0) + (**(**Tliterals)(__ccgo_up(bp))).Fmem = (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem + (**(**Tliterals)(__ccgo_up(bp))).Flen1 = 0 + (**(**Tliterals)(__ccgo_up(bp))).Fcap1 = int32(32) + (**(**Tliterals)(__ccgo_up(bp))).Fa = Xmalloc(tls, Uint64FromInt32((**(**Tliterals)(__ccgo_up(bp))).Fcap1)*uint64(8)) + if !((**(**Tliterals)(__ccgo_up(bp))).Fa != 0) { + return int32(REG_ESPACE) + } + (**(**Tneg)(__ccgo_up(bp + 24))).Flen1 = 0 + (**(**Tneg)(__ccgo_up(bp + 24))).Fnegate = BoolInt32(Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('^')) + if (**(**Tneg)(__ccgo_up(bp + 24))).Fnegate != 0 { + s = s + 1 + } + err = _parse_bracket_terms(tls, ctx, s, bp, bp+24) + if err != REG_OK { + goto parse_bracket_done + } + if (**(**Tneg)(__ccgo_up(bp + 24))).Fnegate != 0 { + /* + * With REG_NEWLINE, POSIX requires that newlines are not matched by + * any form of a non-matching list. + */ + if (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fcflags&int32(REG_NEWLINE) != 0 { + lit = _tre_new_lit(tls, bp) + if !(lit != 0) { + err = int32(REG_ESPACE) + goto parse_bracket_done + } + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min = int64('\n') + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max = int64('\n') + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition = -int32(1) + } + /* Sort the array if we need to negate it. */ + Xqsort(tls, (**(**Tliterals)(__ccgo_up(bp))).Fa, Uint64FromInt32((**(**Tliterals)(__ccgo_up(bp))).Flen1), uint64(8), __ccgo_fp(_tre_compare_lit)) + /* extra lit for the last negated range */ + lit = _tre_new_lit(tls, bp) + if !(lit != 0) { + err = int32(REG_ESPACE) + goto parse_bracket_done + } + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min = int64(Int32FromInt32(TRE_CHAR_MAX) + Int32FromInt32(1)) + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max = int64(Int32FromInt32(TRE_CHAR_MAX) + Int32FromInt32(1)) + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition = -int32(1) + /* negated classes */ + if (**(**Tneg)(__ccgo_up(bp + 24))).Flen1 != 0 { + nc = X__tre_mem_alloc_impl(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, 0, UintptrFromInt32(0), 0, Uint64FromInt32((**(**Tneg)(__ccgo_up(bp + 24))).Flen1+Int32FromInt32(1))*uint64(8)) + if !(nc != 0) { + err = int32(REG_ESPACE) + goto parse_bracket_done + } + Xmemcpy(tls, nc, bp+24+8, Uint64FromInt32((**(**Tneg)(__ccgo_up(bp + 24))).Flen1)*uint64(8)) + **(**Ttre_ctype_t)(__ccgo_up(nc + uintptr((**(**Tneg)(__ccgo_up(bp + 24))).Flen1)*8)) = uint64(0) + } + } + /* Build a union of the items in the array, negated if necessary. */ + v1 = Int32FromInt32(0) + negmin = v1 + negmax = v1 + i = 0 + for { + if !(i < (**(**Tliterals)(__ccgo_up(bp))).Flen1) { + break + } + lit = **(**uintptr)(__ccgo_up((**(**Tliterals)(__ccgo_up(bp))).Fa + uintptr(i)*8)) + min = int32((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min) + max = int32((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max) + if (**(**Tneg)(__ccgo_up(bp + 24))).Fnegate != 0 { + if min <= negmin { + /* Overlap. */ + if max+int32(1) >= negmin { + v1 = max + int32(1) + } else { + v1 = negmin + } + negmin = v1 + goto _2 + } + negmax = min - int32(1) + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min = int64(negmin) + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max = int64(negmax) + negmin = max + int32(1) + } + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition = (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fposition + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fneg_classes = nc + n = _tre_ast_new_node(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, int32(_LITERAL), lit) + node = _tre_ast_new_union(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, node, n) + if !(node != 0) { + err = int32(REG_ESPACE) + break + } + goto _2 + _2: + ; + i = i + 1 + } + goto parse_bracket_done +parse_bracket_done: + ; + Xfree(tls, (**(**Tliterals)(__ccgo_up(bp))).Fa) + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fposition = (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fposition + 1 + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fn = node + return err +} + +func _parse_dup_count(tls *TLS, s uintptr, n uintptr) (r uintptr) { + **(**int32)(__ccgo_up(n)) = -int32(1) + if !(BoolInt32(uint32(**(**uint8)(__ccgo_up(s)))-Uint32FromUint8('0') < Uint32FromInt32(10)) != 0) { + return s + } + **(**int32)(__ccgo_up(n)) = 0 + for { + **(**int32)(__ccgo_up(n)) = int32(10)***(**int32)(__ccgo_up(n)) + (Int32FromUint8(**(**uint8)(__ccgo_up(s))) - int32('0')) + s = s + 1 + if !(BoolInt32(uint32(**(**uint8)(__ccgo_up(s)))-Uint32FromUint8('0') < Uint32FromInt32(10)) != 0) || **(**int32)(__ccgo_up(n)) > int32(RE_DUP_MAX) { + break + } + goto _1 + _1: + } + return s +} + +func _parse_dup(tls *TLS, s uintptr, ere int32, pmin uintptr, pmax uintptr) (r uintptr) { + bp := tls.Alloc(16) + defer tls.Free(16) + var v1, v4 uintptr + var v2, v3, v5 bool + var _ /* max at bp+4 */ int32 + var _ /* min at bp+0 */ int32 + _, _, _, _, _ = v1, v2, v3, v4, v5 + s = _parse_dup_count(tls, s, bp) + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32(',') { + s = _parse_dup_count(tls, s+uintptr(1), bp+4) + } else { + **(**int32)(__ccgo_up(bp + 4)) = **(**int32)(__ccgo_up(bp)) + } + if v3 = **(**int32)(__ccgo_up(bp + 4)) < **(**int32)(__ccgo_up(bp)) && **(**int32)(__ccgo_up(bp + 4)) >= 0 || **(**int32)(__ccgo_up(bp + 4)) > int32(RE_DUP_MAX) || **(**int32)(__ccgo_up(bp)) > int32(RE_DUP_MAX) || **(**int32)(__ccgo_up(bp)) < 0; !v3 { + if v2 = !(ere != 0); v2 { + v1 = s + s = s + 1 + } + } + if v5 = v3 || v2 && Int32FromUint8(**(**uint8)(__ccgo_up(v1))) != int32('\\'); !v5 { + v4 = s + s = s + 1 + } + if v5 || Int32FromUint8(**(**uint8)(__ccgo_up(v4))) != int32('}') { + return uintptr(0) + } + **(**int32)(__ccgo_up(pmin)) = **(**int32)(__ccgo_up(bp)) + **(**int32)(__ccgo_up(pmax)) = **(**int32)(__ccgo_up(bp + 4)) + return s +} + +func _hexval1(tls *TLS, c uint32) (r int32) { + if c-uint32('0') < uint32(10) { + return Int32FromUint32(c - uint32('0')) + } + c = c | uint32(32) + if c-uint32('a') < uint32(6) { + return Int32FromUint32(c - uint32('a') + uint32(10)) + } + return -int32(1) +} + +func _marksub(tls *TLS, ctx uintptr, node uintptr, subid int32) (r Treg_errcode_t) { + var n uintptr + _ = n + if (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fsubmatch_id >= 0 { + n = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(1), -int32(1), -int32(1)) + if !(n != 0) { + return int32(REG_ESPACE) + } + n = _tre_ast_new_catenation(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, n, node) + if !(n != 0) { + return int32(REG_ESPACE) + } + (*Ttre_ast_node_t)(unsafe.Pointer(n)).Fnum_submatches = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_submatches + node = n + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fsubmatch_id = subid + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_submatches = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_submatches + 1 + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fn = node + return REG_OK +} + +/* +BRE grammar: +Regex = Branch | '^' | '$' | '^$' | '^' Branch | Branch '$' | '^' Branch '$' +Branch = Atom | Branch Atom +Atom = char | quoted_char | '.' | Bracket | Atom Dup | '\(' Branch '\)' | back_ref +Dup = '*' | '\{' Count '\}' | '\{' Count ',\}' | '\{' Count ',' Count '\}' + +(leading ^ and trailing $ in a sub expr may be an anchor or literal as well) + +ERE grammar: +Regex = Branch | Regex '|' Branch +Branch = Atom | Branch Atom +Atom = char | quoted_char | '.' | Bracket | Atom Dup | '(' Regex ')' | '^' | '$' +Dup = '*' | '+' | '?' | '{' Count '}' | '{' Count ',}' | '{' Count ',' Count '}' + +(a*+?, ^*, $+, \X, {, (|a) are unspecified) +*/ + +func _parse_atom(tls *TLS, ctx uintptr, s uintptr) (r Treg_errcode_t) { + bp := tls.Alloc(16) + defer tls.Free(16) + var c, ere, i, len1, v, val, v16 int32 + var err Treg_errcode_t + var node, p, tmp1, tmp11, tmp2, tmp21, v14 uintptr + var _ /* wc at bp+0 */ Twchar_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = c, ere, err, i, len1, node, p, tmp1, tmp11, tmp2, tmp21, v, val, v14, v16 + ere = (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fcflags & int32(REG_EXTENDED) + switch Int32FromUint8(**(**uint8)(__ccgo_up(s))) { + case int32('['): + goto _1 + case int32('\\'): + goto _2 + case int32('.'): + goto _3 + case int32('^'): + goto _4 + case int32('$'): + goto _5 + case int32('?'): + goto _6 + case int32('+'): + goto _7 + case int32('{'): + goto _8 + case int32('*'): + goto _9 + case int32('|'): + goto _10 + case 0: + goto _11 + default: + goto _12 + } + goto _13 +_1: + ; + return _parse_bracket(tls, ctx, s+uintptr(1)) +_2: + ; + p = _tre_expand_macro(tls, s+uintptr(1)) + if p != 0 { + /* assume \X expansion is a single atom */ + err = _parse_atom(tls, ctx, p) + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fs = s + uintptr(2) + return err + } + /* extensions: \b, \B, \<, \>, \xHH \x{HHHH} */ + s = s + 1 + v14 = s + switch Int32FromUint8(**(**uint8)(__ccgo_up(v14))) { + case 0: + return int32(REG_EESCAPE) + case int32('b'): + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(2), int32(ASSERT_AT_WB), -int32(1)) + case int32('B'): + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(2), int32(ASSERT_AT_WB_NEG), -int32(1)) + case int32('<'): + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(2), int32(ASSERT_AT_BOW), -int32(1)) + case int32('>'): + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(2), int32(ASSERT_AT_EOW), -int32(1)) + case int32('x'): + s = s + 1 + v = 0 + len1 = int32(2) + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('{') { + len1 = int32(8) + s = s + 1 + } + i = 0 + for { + if !(i < len1 && v < int32(0x110000)) { + break + } + c = _hexval1(tls, uint32(**(**uint8)(__ccgo_up(s + uintptr(i))))) + if c < 0 { + break + } + v = int32(16)*v + c + goto _15 + _15: + ; + i = i + 1 + } + s = s + uintptr(i) + if len1 == int32(8) { + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) != int32('}') { + return int32(REG_EBRACE) + } + s = s + 1 + } + v14 = ctx + 44 + v16 = *(*int32)(unsafe.Pointer(v14)) + *(*int32)(unsafe.Pointer(v14)) = *(*int32)(unsafe.Pointer(v14)) + 1 + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, v, v, v16) + s = s - 1 + case int32('{'): + fallthrough + case int32('+'): + fallthrough + case int32('?'): + /* extension: treat \+, \? as repetitions in BRE */ + /* reject repetitions after empty expression in BRE */ + if !(ere != 0) { + return int32(REG_BADRPT) + } + fallthrough + case int32('|'): + /* extension: treat \| as alternation in BRE */ + if !(ere != 0) { + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(1), -int32(1), -int32(1)) + s = s - 1 + goto end + } + /* fallthrough */ + fallthrough + default: + if !(ere != 0) && uint32(**(**uint8)(__ccgo_up(s)))-uint32('1') < uint32(9) { + /* back reference */ + val = Int32FromUint8(**(**uint8)(__ccgo_up(s))) - int32('0') + v14 = ctx + 44 + v16 = *(*int32)(unsafe.Pointer(v14)) + *(*int32)(unsafe.Pointer(v14)) = *(*int32)(unsafe.Pointer(v14)) + 1 + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(4), val, v16) + if val >= (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmax_backref { + v16 = val + } else { + v16 = (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmax_backref + } + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmax_backref = v16 + } else { + /* extension: accept unknown escaped char + as a literal */ + goto parse_literal + } + } + s = s + 1 + goto _13 +_3: + ; + if (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fcflags&int32(REG_NEWLINE) != 0 { + v14 = ctx + 44 + v16 = *(*int32)(unsafe.Pointer(v14)) + *(*int32)(unsafe.Pointer(v14)) = *(*int32)(unsafe.Pointer(v14)) + 1 + tmp1 = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, 0, Int32FromUint8('\n')-Int32FromInt32(1), v16) + v14 = ctx + 44 + v16 = *(*int32)(unsafe.Pointer(v14)) + *(*int32)(unsafe.Pointer(v14)) = *(*int32)(unsafe.Pointer(v14)) + 1 + tmp2 = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, Int32FromUint8('\n')+Int32FromInt32(1), int32(TRE_CHAR_MAX), v16) + if tmp1 != 0 && tmp2 != 0 { + node = _tre_ast_new_union(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, tmp1, tmp2) + } else { + node = uintptr(0) + } + } else { + v14 = ctx + 44 + v16 = *(*int32)(unsafe.Pointer(v14)) + *(*int32)(unsafe.Pointer(v14)) = *(*int32)(unsafe.Pointer(v14)) + 1 + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, 0, int32(TRE_CHAR_MAX), v16) + } + s = s + 1 + goto _13 +_4: + ; + /* '^' has a special meaning everywhere in EREs, and at beginning of BRE. */ + if !(ere != 0) && s != (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fstart { + goto parse_literal + } + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(2), int32(ASSERT_AT_BOL), -int32(1)) + s = s + 1 + goto _13 +_5: + ; + /* '$' is special everywhere in EREs, and at the end of a BRE subexpression. */ + if !(ere != 0) && **(**uint8)(__ccgo_up(s + 1)) != 0 && (Int32FromUint8(**(**uint8)(__ccgo_up(s + 1))) != int32('\\') || Int32FromUint8(**(**uint8)(__ccgo_up(s + 2))) != int32(')') && Int32FromUint8(**(**uint8)(__ccgo_up(s + 2))) != int32('|')) { + goto parse_literal + } + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(2), int32(ASSERT_AT_EOL), -int32(1)) + s = s + 1 + goto _13 +_9: + ; +_8: + ; +_7: + ; +_6: + ; + /* reject repetitions after empty expression in ERE */ + if ere != 0 { + return int32(REG_BADRPT) + } +_10: + ; + if !(ere != 0) { + goto parse_literal + } +_11: + ; + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(1), -int32(1), -int32(1)) + goto _13 +_12: + ; + goto parse_literal +parse_literal: + ; + len1 = Xmbtowc(tls, bp, s, Uint64FromInt32(-Int32FromInt32(1))) + if len1 < 0 { + return int32(REG_BADPAT) + } + if (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fcflags&int32(REG_ICASE) != 0 && (Xiswupper(tls, **(**Twchar_t)(__ccgo_up(bp))) != 0 || Xiswlower(tls, **(**Twchar_t)(__ccgo_up(bp))) != 0) { + /* multiple opposite case characters are not supported */ + tmp11 = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, Int32FromUint32(Xtowupper(tls, **(**Twchar_t)(__ccgo_up(bp)))), Int32FromUint32(Xtowupper(tls, **(**Twchar_t)(__ccgo_up(bp)))), (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fposition) + tmp21 = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, Int32FromUint32(Xtowlower(tls, **(**Twchar_t)(__ccgo_up(bp)))), Int32FromUint32(Xtowlower(tls, **(**Twchar_t)(__ccgo_up(bp)))), (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fposition) + if tmp11 != 0 && tmp21 != 0 { + node = _tre_ast_new_union(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, tmp11, tmp21) + } else { + node = uintptr(0) + } + } else { + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, Int32FromUint32(**(**Twchar_t)(__ccgo_up(bp))), Int32FromUint32(**(**Twchar_t)(__ccgo_up(bp))), (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fposition) + } + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fposition = (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fposition + 1 + s = s + uintptr(len1) + goto _13 +_13: + ; + goto end +end: + ; + if !(node != 0) { + return int32(REG_ESPACE) + } + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fn = node + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fs = s + return REG_OK +} + +func _tre_parse(tls *TLS, ctx uintptr) (r Treg_errcode_t) { + bp := tls.Alloc(16) + defer tls.Free(16) + var c, depth, ere, subid, v2 int32 + var err, v1 Treg_errcode_t + var nbranch, nunion, s, stack, v8 uintptr + var _ /* max at bp+4 */ int32 + var _ /* min at bp+0 */ int32 + _, _, _, _, _, _, _, _, _, _, _, _ = c, depth, ere, err, nbranch, nunion, s, stack, subid, v1, v2, v8 + nbranch = uintptr(0) + nunion = uintptr(0) + ere = (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fcflags & int32(REG_EXTENDED) + s = (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fstart + subid = 0 + depth = 0 + stack = (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fstack + v2 = subid + subid = subid + 1 + v1 = _tre_stack_push_int(tls, stack, v2) + err = v1 + if v1 != REG_OK { + return err + } + for { + if !(ere != 0) && Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('\\') && Int32FromUint8(**(**uint8)(__ccgo_up(s + 1))) == int32('(') || ere != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('(') { + v1 = _tre_stack_push_voidptr(tls, stack, nunion) + err = v1 + if v1 != REG_OK { + return err + } + v1 = _tre_stack_push_voidptr(tls, stack, nbranch) + err = v1 + if v1 != REG_OK { + return err + } + v2 = subid + subid = subid + 1 + v1 = _tre_stack_push_int(tls, stack, v2) + err = v1 + if v1 != REG_OK { + return err + } + s = s + 1 + if !(ere != 0) { + s = s + 1 + } + depth = depth + 1 + v8 = UintptrFromInt32(0) + nunion = v8 + nbranch = v8 + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fstart = s + goto _3 + } + if !(ere != 0) && Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('\\') && Int32FromUint8(**(**uint8)(__ccgo_up(s + 1))) == int32(')') || ere != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32(')') && depth != 0 { + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fn = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(1), -int32(1), -int32(1)) + if !((*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fn != 0) { + return int32(REG_ESPACE) + } + } else { + err = _parse_atom(tls, ctx, s) + if err != REG_OK { + return err + } + s = (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fs + } + goto parse_iter + parse_iter: + ; + for { + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) != int32('\\') && Int32FromUint8(**(**uint8)(__ccgo_up(s))) != int32('*') { + if !(ere != 0) { + break + } + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) != int32('+') && Int32FromUint8(**(**uint8)(__ccgo_up(s))) != int32('?') && Int32FromUint8(**(**uint8)(__ccgo_up(s))) != int32('{') { + break + } + } + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('\\') && ere != 0 { + break + } + /* extension: treat \+, \? as repetitions in BRE */ + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('\\') && Int32FromUint8(**(**uint8)(__ccgo_up(s + 1))) != int32('+') && Int32FromUint8(**(**uint8)(__ccgo_up(s + 1))) != int32('?') && Int32FromUint8(**(**uint8)(__ccgo_up(s + 1))) != int32('{') { + break + } + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('\\') { + s = s + 1 + } + /* handle ^* at the start of a BRE. */ + if !(ere != 0) && s == (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fstart+uintptr(1) && Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(-Int32FromInt32(1))))) == int32('^') { + break + } + /* extension: multiple consecutive *+?{,} is unspecified, + but (a+)+ has to be supported so accepting a++ makes + sense, note however that the RE_DUP_MAX limit can be + circumvented: (a{255}){255} uses a lot of memory.. */ + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('{') { + s = _parse_dup(tls, s+uintptr(1), ere, bp, bp+4) + if !(s != 0) { + return int32(REG_BADBR) + } + } else { + **(**int32)(__ccgo_up(bp)) = 0 + **(**int32)(__ccgo_up(bp + 4)) = -int32(1) + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('+') { + **(**int32)(__ccgo_up(bp)) = int32(1) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('?') { + **(**int32)(__ccgo_up(bp + 4)) = int32(1) + } + s = s + 1 + } + if **(**int32)(__ccgo_up(bp + 4)) == 0 { + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fn = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(1), -int32(1), -int32(1)) + } else { + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fn = _tre_ast_new_iter(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fn, **(**int32)(__ccgo_up(bp)), **(**int32)(__ccgo_up(bp + 4)), 0) + } + if !((*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fn != 0) { + return int32(REG_ESPACE) + } + goto _9 + _9: + } + nbranch = _tre_ast_new_catenation(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, nbranch, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fn) + if ere != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('|') || ere != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32(')') && depth != 0 || !(ere != 0) && Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('\\') && Int32FromUint8(**(**uint8)(__ccgo_up(s + 1))) == int32(')') || !(ere != 0) && Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('\\') && Int32FromUint8(**(**uint8)(__ccgo_up(s + 1))) == int32('|') || !(**(**uint8)(__ccgo_up(s)) != 0) { + /* extension: empty branch is unspecified (), (|a), (a|) + here they are not rejected but match on empty string */ + c = Int32FromUint8(**(**uint8)(__ccgo_up(s))) + nunion = _tre_ast_new_union(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, nunion, nbranch) + nbranch = uintptr(0) + if c == int32('\\') && Int32FromUint8(**(**uint8)(__ccgo_up(s + 1))) == int32('|') { + s = s + uintptr(2) + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fstart = s + } else { + if c == int32('|') { + s = s + 1 + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fstart = s + } else { + if c == int32('\\') { + if !(depth != 0) { + return int32(REG_EPAREN) + } + s = s + uintptr(2) + } else { + if c == int32(')') { + s = s + 1 + } + } + depth = depth - 1 + err = _marksub(tls, ctx, nunion, _tre_stack_pop_int(tls, stack)) + if err != REG_OK { + return err + } + if !(c != 0) && depth < 0 { + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fsubmatch_id = subid + return REG_OK + } + if !(c != 0) || depth < 0 { + return int32(REG_EPAREN) + } + nbranch = _tre_stack_pop_voidptr(tls, stack) + nunion = _tre_stack_pop_voidptr(tls, stack) + goto parse_iter + } + } + } + goto _3 + _3: + } + return r +} + +/*********************************************************************** + from tre-compile.c +***********************************************************************/ + +/* + TODO: + - Fix tre_ast_to_tnfa() to recurse using a stack instead of recursive + function calls. +*/ + +/* + Algorithms to setup tags so that submatch addressing can be done. +*/ + +// C documentation +// +// /* Inserts a catenation node to the root of the tree given in `node'. +// As the left child a new tag with number `tag_id' to `node' is added, +// and the right child is the old root. */ +func _tre_add_tag_left(tls *TLS, mem Ttre_mem_t, node uintptr, tag_id int32) (r Treg_errcode_t) { + var c uintptr + _ = c + c = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint64(16)) + if c == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + (*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft = _tre_ast_new_literal(tls, mem, -int32(3), tag_id, -int32(1)) + if (*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + (*Ttre_catenation_t)(unsafe.Pointer(c)).Fright = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint64(48)) + if (*Ttre_catenation_t)(unsafe.Pointer(c)).Fright == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fright)).Fobj = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fright)).Ftype1 = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fright)).Fnullable = -int32(1) + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fright)).Fsubmatch_id = -int32(1) + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fright)).Ffirstpos = UintptrFromInt32(0) + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fright)).Flastpos = UintptrFromInt32(0) + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fright)).Fnum_tags = 0 + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fright)).Fnum_submatches = 0 + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj = c + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 = int32(_CATENATION) + return REG_OK +} + +// C documentation +// +// /* Inserts a catenation node to the root of the tree given in `node'. +// As the right child a new tag with number `tag_id' to `node' is added, +// and the left child is the old root. */ +func _tre_add_tag_right(tls *TLS, mem Ttre_mem_t, node uintptr, tag_id int32) (r Treg_errcode_t) { + var c uintptr + _ = c + c = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint64(16)) + if c == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + (*Ttre_catenation_t)(unsafe.Pointer(c)).Fright = _tre_ast_new_literal(tls, mem, -int32(3), tag_id, -int32(1)) + if (*Ttre_catenation_t)(unsafe.Pointer(c)).Fright == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + (*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint64(48)) + if (*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft)).Fobj = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft)).Ftype1 = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft)).Fnullable = -int32(1) + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft)).Fsubmatch_id = -int32(1) + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft)).Ffirstpos = UintptrFromInt32(0) + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft)).Flastpos = UintptrFromInt32(0) + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft)).Fnum_tags = 0 + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft)).Fnum_submatches = 0 + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj = c + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 = int32(_CATENATION) + return REG_OK +} + +type Ttre_addtags_symbol_t = int32 + +const _ADDTAGS_RECURSE = 0 +const _ADDTAGS_AFTER_ITERATION = 1 +const _ADDTAGS_AFTER_UNION_LEFT = 2 +const _ADDTAGS_AFTER_UNION_RIGHT = 3 +const _ADDTAGS_AFTER_CAT_LEFT = 4 +const _ADDTAGS_AFTER_CAT_RIGHT = 5 +const _ADDTAGS_SET_SUBMATCH_END = 6 + +type Ttre_tag_states_t = struct { + Ftag int32 + Fnext_tag int32 +} + +// C documentation +// +// /* Go through `regset' and set submatch data for submatches that are +// using this tag. */ +func _tre_purge_regset(tls *TLS, regset uintptr, tnfa uintptr, tag int32) { + var i, id, start int32 + _, _, _ = i, id, start + i = 0 + for { + if !(**(**int32)(__ccgo_up(regset + uintptr(i)*4)) >= 0) { + break + } + id = **(**int32)(__ccgo_up(regset + uintptr(i)*4)) / int32(2) + start = BoolInt32(!(**(**int32)(__ccgo_up(regset + uintptr(i)*4))%Int32FromInt32(2) != 0)) + if start != 0 { + (**(**Ttre_submatch_data_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fsubmatch_data + uintptr(id)*16))).Fso_tag = tag + } else { + (**(**Ttre_submatch_data_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fsubmatch_data + uintptr(id)*16))).Feo_tag = tag + } + goto _1 + _1: + ; + i = i + 1 + } + **(**int32)(__ccgo_up(regset)) = -int32(1) +} + +// C documentation +// +// /* Adds tags to appropriate locations in the parse tree in `tree', so that +// subexpressions marked for submatch addressing can be traced. */ +func _tre_add_tags(tls *TLS, mem Ttre_mem_t, stack uintptr, tree uintptr, tnfa uintptr) (r Treg_errcode_t) { + var added_tags, bottom, enter_tag, first_pass, i1, i2, i3, i4, i5, i6, i7, id, id1, left_tag, minimal, minimal_tag, new_tag, next_tag, num_minimals, num_tags, reserved_tag, right_tag, tag, tag_left, tag_right, v22 int32 + var cat, iter, left, left1, left2, lit, node, orig_regset, p, parents, regset, right, right1, right2, saved_states, uni uintptr + var direction Ttre_tag_direction_t + var i uint32 + var status Treg_errcode_t + var symbol Ttre_addtags_symbol_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = added_tags, bottom, cat, direction, enter_tag, first_pass, i, i1, i2, i3, i4, i5, i6, i7, id, id1, iter, left, left1, left2, left_tag, lit, minimal, minimal_tag, new_tag, next_tag, node, num_minimals, num_tags, orig_regset, p, parents, regset, reserved_tag, right, right1, right2, right_tag, saved_states, status, symbol, tag, tag_left, tag_right, uni, v22 + status = REG_OK + node = tree /* Tree node we are currently looking at. */ + bottom = _tre_stack_num_objects(tls, stack) + /* True for first pass (counting number of needed tags) */ + first_pass = BoolInt32(mem == UintptrFromInt32(0) || tnfa == UintptrFromInt32(0)) + num_tags = 0 /* Total number of tags. */ + num_minimals = 0 /* Number of special minimal tags. */ + tag = 0 /* The tag that is to be added next. */ + next_tag = int32(1) /* Stack of submatches the current submatch is + contained in. */ + minimal_tag = -int32(1) + direction = int32(_TRE_TAG_MINIMIZE) + if !(first_pass != 0) { + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fend_tag = 0 + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags)) = -int32(1) + } + regset = Xmalloc(tls, uint64(4)*uint64(((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_submatches+Uint32FromInt32(1))*Uint32FromInt32(2))) + if regset == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + **(**int32)(__ccgo_up(regset)) = -int32(1) + orig_regset = regset + parents = Xmalloc(tls, uint64(4)*uint64((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_submatches+Uint32FromInt32(1))) + if parents == UintptrFromInt32(0) { + Xfree(tls, regset) + return int32(REG_ESPACE) + } + **(**int32)(__ccgo_up(parents)) = -int32(1) + saved_states = Xmalloc(tls, uint64(8)*uint64((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_submatches+Uint32FromInt32(1))) + if saved_states == UintptrFromInt32(0) { + Xfree(tls, regset) + Xfree(tls, parents) + return int32(REG_ESPACE) + } else { + i = uint32(0) + for { + if !(i <= (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_submatches) { + break + } + (**(**Ttre_tag_states_t)(__ccgo_up(saved_states + uintptr(i)*8))).Ftag = -int32(1) + goto _1 + _1: + ; + i = i + 1 + } + } + status = _tre_stack_push_voidptr(tls, stack, node) + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_RECURSE)) + for _tre_stack_num_objects(tls, stack) > bottom { + if status != REG_OK { + break + } + symbol = _tre_stack_pop_int(tls, stack) + switch symbol { + case int32(_ADDTAGS_SET_SUBMATCH_END): + goto _2 + case int32(_ADDTAGS_RECURSE): + goto _3 + case int32(_ADDTAGS_AFTER_ITERATION): + goto _4 + case int32(_ADDTAGS_AFTER_CAT_LEFT): + goto _5 + case int32(_ADDTAGS_AFTER_CAT_RIGHT): + goto _6 + case int32(_ADDTAGS_AFTER_UNION_LEFT): + goto _7 + case int32(_ADDTAGS_AFTER_UNION_RIGHT): + goto _8 + default: + goto _9 + } + goto _10 + _2: + ; + id = _tre_stack_pop_int(tls, stack) + /* Add end of this submatch to regset. */ + i1 = 0 + for { + if !(**(**int32)(__ccgo_up(regset + uintptr(i1)*4)) >= 0) { + break + } + goto _11 + _11: + ; + i1 = i1 + 1 + } + **(**int32)(__ccgo_up(regset + uintptr(i1)*4)) = id*int32(2) + int32(1) + **(**int32)(__ccgo_up(regset + uintptr(i1+int32(1))*4)) = -int32(1) + /* Pop this submatch from the parents stack. */ + i1 = 0 + for { + if !(**(**int32)(__ccgo_up(parents + uintptr(i1)*4)) >= 0) { + break + } + goto _12 + _12: + ; + i1 = i1 + 1 + } + **(**int32)(__ccgo_up(parents + uintptr(i1-int32(1))*4)) = -int32(1) + goto _10 + _3: + ; + node = _tre_stack_pop_voidptr(tls, stack) + if (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fsubmatch_id >= 0 { + id1 = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fsubmatch_id + /* Add start of this submatch to regset. */ + i2 = 0 + for { + if !(**(**int32)(__ccgo_up(regset + uintptr(i2)*4)) >= 0) { + break + } + goto _13 + _13: + ; + i2 = i2 + 1 + } + **(**int32)(__ccgo_up(regset + uintptr(i2)*4)) = id1 * int32(2) + **(**int32)(__ccgo_up(regset + uintptr(i2+int32(1))*4)) = -int32(1) + if !(first_pass != 0) { + i2 = 0 + for { + if !(**(**int32)(__ccgo_up(parents + uintptr(i2)*4)) >= 0) { + break + } + goto _14 + _14: + ; + i2 = i2 + 1 + } + (**(**Ttre_submatch_data_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fsubmatch_data + uintptr(id1)*16))).Fparents = UintptrFromInt32(0) + if i2 > 0 { + p = Xmalloc(tls, uint64(4)*Uint64FromInt32(i2+Int32FromInt32(1))) + if p == UintptrFromInt32(0) { + status = int32(REG_ESPACE) + goto _10 + } + (**(**Ttre_submatch_data_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fsubmatch_data + uintptr(id1)*16))).Fparents = p + i2 = 0 + for { + if !(**(**int32)(__ccgo_up(parents + uintptr(i2)*4)) >= 0) { + break + } + **(**int32)(__ccgo_up(p + uintptr(i2)*4)) = **(**int32)(__ccgo_up(parents + uintptr(i2)*4)) + goto _15 + _15: + ; + i2 = i2 + 1 + } + **(**int32)(__ccgo_up(p + uintptr(i2)*4)) = -int32(1) + } + } + /* Add end of this submatch to regset after processing this + node. */ + status = _tre_stack_push_int(tls, stack, (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fsubmatch_id) + if status != REG_OK { + goto _10 + } + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_SET_SUBMATCH_END)) + if status != REG_OK { + goto _10 + } + } + switch (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 { + case int32(_LITERAL): + lit = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + if !((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min < Int64FromInt32(0)) || (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min == int64(-int32(4)) { + if **(**int32)(__ccgo_up(regset)) >= 0 { + /* Regset is not empty, so add a tag before the + literal or backref. */ + if !(first_pass != 0) { + status = _tre_add_tag_left(tls, mem, node, tag) + **(**Ttre_tag_direction_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions + uintptr(tag)*4)) = direction + if minimal_tag >= 0 { + i3 = 0 + for { + if !(**(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i3)*4)) >= 0) { + break + } + goto _16 + _16: + ; + i3 = i3 + 1 + } + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i3)*4)) = tag + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i3+int32(1))*4)) = minimal_tag + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i3+int32(2))*4)) = -int32(1) + minimal_tag = -int32(1) + num_minimals = num_minimals + 1 + } + _tre_purge_regset(tls, regset, tnfa, tag) + } else { + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_tags = int32(1) + } + **(**int32)(__ccgo_up(regset)) = -int32(1) + tag = next_tag + num_tags = num_tags + 1 + next_tag = next_tag + 1 + } + } else { + } + case int32(_CATENATION): + cat = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + left = (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft + right = (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright + reserved_tag = -int32(1) + /* After processing right child. */ + status = _tre_stack_push_voidptr(tls, stack, node) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_AFTER_CAT_RIGHT)) + if status != REG_OK { + break + } + /* Process right child. */ + status = _tre_stack_push_voidptr(tls, stack, right) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_RECURSE)) + if status != REG_OK { + break + } + /* After processing left child. */ + status = _tre_stack_push_int(tls, stack, next_tag+(*Ttre_ast_node_t)(unsafe.Pointer(left)).Fnum_tags) + if status != REG_OK { + break + } + if (*Ttre_ast_node_t)(unsafe.Pointer(left)).Fnum_tags > 0 && (*Ttre_ast_node_t)(unsafe.Pointer(right)).Fnum_tags > 0 { + /* Reserve the next tag to the right child. */ + reserved_tag = next_tag + next_tag = next_tag + 1 + } + status = _tre_stack_push_int(tls, stack, reserved_tag) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_AFTER_CAT_LEFT)) + if status != REG_OK { + break + } + /* Process left child. */ + status = _tre_stack_push_voidptr(tls, stack, left) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_RECURSE)) + if status != REG_OK { + break + } + case int32(_ITERATION): + iter = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + if first_pass != 0 { + status = _tre_stack_push_int(tls, stack, BoolInt32(**(**int32)(__ccgo_up(regset)) >= 0 || int32(uint32(*(*uint8)(unsafe.Pointer(iter + 16))&0x1>>0)) != 0)) + if status != REG_OK { + break + } + } else { + status = _tre_stack_push_int(tls, stack, tag) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(uint32(*(*uint8)(unsafe.Pointer(iter + 16))&0x1>>0))) + if status != REG_OK { + break + } + } + status = _tre_stack_push_voidptr(tls, stack, node) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_AFTER_ITERATION)) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_RECURSE)) + if status != REG_OK { + break + } + /* Regset is not empty, so add a tag here. */ + if **(**int32)(__ccgo_up(regset)) >= 0 || int32(uint32(*(*uint8)(unsafe.Pointer(iter + 16))&0x1>>0)) != 0 { + if !(first_pass != 0) { + status = _tre_add_tag_left(tls, mem, node, tag) + if int32(uint32(*(*uint8)(unsafe.Pointer(iter + 16))&0x1>>0)) != 0 { + **(**Ttre_tag_direction_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions + uintptr(tag)*4)) = int32(_TRE_TAG_MAXIMIZE) + } else { + **(**Ttre_tag_direction_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions + uintptr(tag)*4)) = direction + } + if minimal_tag >= 0 { + i4 = 0 + for { + if !(**(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i4)*4)) >= 0) { + break + } + goto _17 + _17: + ; + i4 = i4 + 1 + } + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i4)*4)) = tag + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i4+int32(1))*4)) = minimal_tag + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i4+int32(2))*4)) = -int32(1) + minimal_tag = -int32(1) + num_minimals = num_minimals + 1 + } + _tre_purge_regset(tls, regset, tnfa, tag) + } + **(**int32)(__ccgo_up(regset)) = -int32(1) + tag = next_tag + num_tags = num_tags + 1 + next_tag = next_tag + 1 + } + direction = int32(_TRE_TAG_MINIMIZE) + case int32(_UNION): + uni = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + left1 = (*Ttre_union_t)(unsafe.Pointer(uni)).Fleft + right1 = (*Ttre_union_t)(unsafe.Pointer(uni)).Fright + if **(**int32)(__ccgo_up(regset)) >= 0 { + left_tag = next_tag + right_tag = next_tag + int32(1) + } else { + left_tag = tag + right_tag = next_tag + } + /* After processing right child. */ + status = _tre_stack_push_int(tls, stack, right_tag) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, left_tag) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, regset) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, BoolInt32(**(**int32)(__ccgo_up(regset)) >= 0)) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, node) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, right1) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, left1) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_AFTER_UNION_RIGHT)) + if status != REG_OK { + break + } + /* Process right child. */ + status = _tre_stack_push_voidptr(tls, stack, right1) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_RECURSE)) + if status != REG_OK { + break + } + /* After processing left child. */ + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_AFTER_UNION_LEFT)) + if status != REG_OK { + break + } + /* Process left child. */ + status = _tre_stack_push_voidptr(tls, stack, left1) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_RECURSE)) + if status != REG_OK { + break + } + /* Regset is not empty, so add a tag here. */ + if **(**int32)(__ccgo_up(regset)) >= 0 { + if !(first_pass != 0) { + status = _tre_add_tag_left(tls, mem, node, tag) + **(**Ttre_tag_direction_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions + uintptr(tag)*4)) = direction + if minimal_tag >= 0 { + i5 = 0 + for { + if !(**(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i5)*4)) >= 0) { + break + } + goto _18 + _18: + ; + i5 = i5 + 1 + } + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i5)*4)) = tag + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i5+int32(1))*4)) = minimal_tag + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i5+int32(2))*4)) = -int32(1) + minimal_tag = -int32(1) + num_minimals = num_minimals + 1 + } + _tre_purge_regset(tls, regset, tnfa, tag) + } + **(**int32)(__ccgo_up(regset)) = -int32(1) + tag = next_tag + num_tags = num_tags + 1 + next_tag = next_tag + 1 + } + if (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_submatches > 0 { + /* The next two tags are reserved for markers. */ + next_tag = next_tag + 1 + tag = next_tag + next_tag = next_tag + 1 + } + break + } + if (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fsubmatch_id >= 0 { + /* Push this submatch on the parents stack. */ + i6 = 0 + for { + if !(**(**int32)(__ccgo_up(parents + uintptr(i6)*4)) >= 0) { + break + } + goto _19 + _19: + ; + i6 = i6 + 1 + } + **(**int32)(__ccgo_up(parents + uintptr(i6)*4)) = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fsubmatch_id + **(**int32)(__ccgo_up(parents + uintptr(i6+int32(1))*4)) = -int32(1) + } + goto _10 /* end case: ADDTAGS_RECURSE */ + _4: + ; + minimal = 0 + node = _tre_stack_pop_voidptr(tls, stack) + if first_pass != 0 { + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_tags = (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_iteration_t)(unsafe.Pointer((*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj)).Farg)).Fnum_tags + _tre_stack_pop_int(tls, stack) + minimal_tag = -int32(1) + } else { + minimal = _tre_stack_pop_int(tls, stack) + enter_tag = _tre_stack_pop_int(tls, stack) + if minimal != 0 { + minimal_tag = enter_tag + } + } + if !(first_pass != 0) { + if minimal != 0 { + direction = int32(_TRE_TAG_MINIMIZE) + } else { + direction = int32(_TRE_TAG_MAXIMIZE) + } + } + goto _10 + _5: + ; + new_tag = _tre_stack_pop_int(tls, stack) + next_tag = _tre_stack_pop_int(tls, stack) + if new_tag >= 0 { + tag = new_tag + } + goto _10 + _6: + ; + node = _tre_stack_pop_voidptr(tls, stack) + if first_pass != 0 { + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_tags = (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer((*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj)).Fleft)).Fnum_tags + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer((*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj)).Fright)).Fnum_tags + } + goto _10 + _7: + ; + /* Lift the bottom of the `regset' array so that when processing + the right operand the items currently in the array are + invisible. The original bottom was saved at ADDTAGS_UNION and + will be restored at ADDTAGS_AFTER_UNION_RIGHT below. */ + _21: + ; + if !(**(**int32)(__ccgo_up(regset)) >= 0) { + goto _20 + } + regset += 4 + goto _21 + _20: + ; + goto _10 + _8: + ; + left2 = _tre_stack_pop_voidptr(tls, stack) + right2 = _tre_stack_pop_voidptr(tls, stack) + node = _tre_stack_pop_voidptr(tls, stack) + added_tags = _tre_stack_pop_int(tls, stack) + if first_pass != 0 { + if (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_submatches > 0 { + v22 = int32(2) + } else { + v22 = 0 + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_tags = (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_union_t)(unsafe.Pointer((*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj)).Fleft)).Fnum_tags + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_union_t)(unsafe.Pointer((*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj)).Fright)).Fnum_tags + added_tags + v22 + } + regset = _tre_stack_pop_voidptr(tls, stack) + tag_left = _tre_stack_pop_int(tls, stack) + tag_right = _tre_stack_pop_int(tls, stack) + /* Add tags after both children, the left child gets a smaller + tag than the right child. This guarantees that we prefer + the left child over the right child. */ + /* XXX - This is not always necessary (if the children have + tags which must be seen for every match of that child). */ + /* XXX - Check if this is the only place where tre_add_tag_right + is used. If so, use tre_add_tag_left (putting the tag before + the child as opposed after the child) and throw away + tre_add_tag_right. */ + if (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_submatches > 0 { + if !(first_pass != 0) { + status = _tre_add_tag_right(tls, mem, left2, tag_left) + **(**Ttre_tag_direction_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions + uintptr(tag_left)*4)) = int32(_TRE_TAG_MAXIMIZE) + if status == REG_OK { + status = _tre_add_tag_right(tls, mem, right2, tag_right) + } + **(**Ttre_tag_direction_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions + uintptr(tag_right)*4)) = int32(_TRE_TAG_MAXIMIZE) + } + num_tags = num_tags + int32(2) + } + direction = int32(_TRE_TAG_MAXIMIZE) + goto _10 + _9: + ; + goto _10 + _10: + /* end switch(symbol) */ + } /* end while(tre_stack_num_objects(stack) > bottom) */ + if !(first_pass != 0) { + _tre_purge_regset(tls, regset, tnfa, tag) + } + if !(first_pass != 0) && minimal_tag >= 0 { + i7 = 0 + for { + if !(**(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i7)*4)) >= 0) { + break + } + goto _23 + _23: + ; + i7 = i7 + 1 + } + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i7)*4)) = tag + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i7+int32(1))*4)) = minimal_tag + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i7+int32(2))*4)) = -int32(1) + minimal_tag = -int32(1) + num_minimals = num_minimals + 1 + } + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fend_tag = num_tags + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags = num_tags + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_minimals = num_minimals + Xfree(tls, orig_regset) + Xfree(tls, parents) + Xfree(tls, saved_states) + return status +} + +/* + AST to TNFA compilation routines. +*/ + +type Ttre_copyast_symbol_t = int32 + +const _COPY_RECURSE = 0 +const _COPY_SET_RESULT_PTR = 1 + +/* Flags for tre_copy_ast(). */ + +func _tre_copy_ast(tls *TLS, mem Ttre_mem_t, stack uintptr, ast uintptr, flags int32, pos_add uintptr, tag_directions uintptr, copy1 uintptr, max_pos uintptr) (r Treg_errcode_t) { + var bottom, first_tag, max, min, num_copied, pos, v1 int32 + var cat, iter, lit, node, p, result, tmp, tmp1, uni uintptr + var status Treg_errcode_t + var symbol Ttre_copyast_symbol_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = bottom, cat, first_tag, iter, lit, max, min, node, num_copied, p, pos, result, status, symbol, tmp, tmp1, uni, v1 + status = REG_OK + bottom = _tre_stack_num_objects(tls, stack) + num_copied = 0 + first_tag = int32(1) + result = copy1 + status = _tre_stack_push_voidptr(tls, stack, ast) + status = _tre_stack_push_int(tls, stack, int32(_COPY_RECURSE)) + for status == REG_OK && _tre_stack_num_objects(tls, stack) > bottom { + if status != REG_OK { + break + } + symbol = _tre_stack_pop_int(tls, stack) + switch symbol { + case int32(_COPY_SET_RESULT_PTR): + result = _tre_stack_pop_voidptr(tls, stack) + case int32(_COPY_RECURSE): + node = _tre_stack_pop_voidptr(tls, stack) + switch (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 { + case int32(_LITERAL): + lit = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + pos = (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition + min = int32((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min) + max = int32((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max) + if !((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min < Int64FromInt32(0)) || (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min == int64(-int32(4)) { + /* XXX - e.g. [ab] has only one position but two + nodes, so we are creating holes in the state space + here. Not fatal, just wastes memory. */ + pos = pos + **(**int32)(__ccgo_up(pos_add)) + num_copied = num_copied + 1 + } else { + if (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min == int64(-int32(3)) && flags&int32(COPY_REMOVE_TAGS) != 0 { + /* Change this tag to empty. */ + min = -int32(1) + v1 = -Int32FromInt32(1) + pos = v1 + max = v1 + } else { + if (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min == int64(-int32(3)) && flags&int32(COPY_MAXIMIZE_FIRST_TAG) != 0 && first_tag != 0 { + /* Maximize the first tag. */ + **(**Ttre_tag_direction_t)(__ccgo_up(tag_directions + uintptr(max)*4)) = int32(_TRE_TAG_MAXIMIZE) + first_tag = 0 + } + } + } + **(**uintptr)(__ccgo_up(result)) = _tre_ast_new_literal(tls, mem, min, max, pos) + if **(**uintptr)(__ccgo_up(result)) == UintptrFromInt32(0) { + status = int32(REG_ESPACE) + } else { + p = (*Ttre_ast_node_t)(unsafe.Pointer(**(**uintptr)(__ccgo_up(result)))).Fobj + (*Ttre_literal_t)(unsafe.Pointer(p)).Fclass = (*Ttre_literal_t)(unsafe.Pointer(lit)).Fclass + (*Ttre_literal_t)(unsafe.Pointer(p)).Fneg_classes = (*Ttre_literal_t)(unsafe.Pointer(lit)).Fneg_classes + } + if pos > **(**int32)(__ccgo_up(max_pos)) { + **(**int32)(__ccgo_up(max_pos)) = pos + } + case int32(_UNION): + uni = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + **(**uintptr)(__ccgo_up(result)) = _tre_ast_new_union(tls, mem, (*Ttre_union_t)(unsafe.Pointer(uni)).Fleft, (*Ttre_union_t)(unsafe.Pointer(uni)).Fright) + if **(**uintptr)(__ccgo_up(result)) == UintptrFromInt32(0) { + status = int32(REG_ESPACE) + break + } + tmp = (*Ttre_ast_node_t)(unsafe.Pointer(**(**uintptr)(__ccgo_up(result)))).Fobj + result = tmp + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_union_t)(unsafe.Pointer(uni)).Fright) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_COPY_RECURSE)) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, tmp+8) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_COPY_SET_RESULT_PTR)) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_union_t)(unsafe.Pointer(uni)).Fleft) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_COPY_RECURSE)) + if status != REG_OK { + break + } + case int32(_CATENATION): + cat = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + **(**uintptr)(__ccgo_up(result)) = _tre_ast_new_catenation(tls, mem, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright) + if **(**uintptr)(__ccgo_up(result)) == UintptrFromInt32(0) { + status = int32(REG_ESPACE) + break + } + tmp1 = (*Ttre_ast_node_t)(unsafe.Pointer(**(**uintptr)(__ccgo_up(result)))).Fobj + (*Ttre_catenation_t)(unsafe.Pointer(tmp1)).Fleft = UintptrFromInt32(0) + (*Ttre_catenation_t)(unsafe.Pointer(tmp1)).Fright = UintptrFromInt32(0) + result = tmp1 + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_COPY_RECURSE)) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, tmp1+8) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_COPY_SET_RESULT_PTR)) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_COPY_RECURSE)) + if status != REG_OK { + break + } + case int32(_ITERATION): + iter = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_COPY_RECURSE)) + if status != REG_OK { + break + } + **(**uintptr)(__ccgo_up(result)) = _tre_ast_new_iter(tls, mem, (*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg, (*Ttre_iteration_t)(unsafe.Pointer(iter)).Fmin, (*Ttre_iteration_t)(unsafe.Pointer(iter)).Fmax, int32(uint32(*(*uint8)(unsafe.Pointer(iter + 16))&0x1>>0))) + if **(**uintptr)(__ccgo_up(result)) == UintptrFromInt32(0) { + status = int32(REG_ESPACE) + break + } + iter = (*Ttre_ast_node_t)(unsafe.Pointer(**(**uintptr)(__ccgo_up(result)))).Fobj + result = iter + default: + break + } + break + } + } + **(**int32)(__ccgo_up(pos_add)) += num_copied + return status +} + +type Ttre_expand_ast_symbol_t = int32 + +const _EXPAND_RECURSE = 0 +const _EXPAND_AFTER_ITER = 1 + +// C documentation +// +// /* Expands each iteration node that has a finite nonzero minimum or maximum +// iteration count to a catenated sequence of copies of the node. */ +func _tre_expand_ast(tls *TLS, mem Ttre_mem_t, stack uintptr, ast uintptr, position uintptr, tag_directions uintptr) (r Treg_errcode_t) { + bp := tls.Alloc(32) + defer tls.Free(32) + var _status, _status1, status Treg_errcode_t + var bottom, flags, iter_depth, j, pos_add_last, pos_add_save, pos_add_total, v2 int32 + var cat, iter, iter1, lit, node, seq1, tmp, uni uintptr + var symbol Ttre_expand_ast_symbol_t + var _ /* copy at bp+16 */ uintptr + var _ /* copy at bp+24 */ uintptr + var _ /* max_pos at bp+4 */ int32 + var _ /* pos_add at bp+0 */ int32 + var _ /* seq2 at bp+8 */ uintptr + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = _status, _status1, bottom, cat, flags, iter, iter1, iter_depth, j, lit, node, pos_add_last, pos_add_save, pos_add_total, seq1, status, symbol, tmp, uni, v2 + status = REG_OK + bottom = _tre_stack_num_objects(tls, stack) + **(**int32)(__ccgo_up(bp)) = 0 + pos_add_total = 0 + **(**int32)(__ccgo_up(bp + 4)) = 0 + iter_depth = 0 + _status = _tre_stack_push_voidptr(tls, stack, ast) + if _status != REG_OK { + return _status + } + _status1 = _tre_stack_push_int(tls, stack, int32(_EXPAND_RECURSE)) + if _status1 != REG_OK { + return _status1 + } + for status == REG_OK && _tre_stack_num_objects(tls, stack) > bottom { + if status != REG_OK { + break + } + symbol = _tre_stack_pop_int(tls, stack) + node = _tre_stack_pop_voidptr(tls, stack) + switch symbol { + case int32(_EXPAND_RECURSE): + switch (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 { + case int32(_LITERAL): + lit = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + if !((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min < Int64FromInt32(0)) || (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min == int64(-int32(4)) { + **(**int32)(__ccgo_up(lit + 16)) += **(**int32)(__ccgo_up(bp)) + if (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition > **(**int32)(__ccgo_up(bp + 4)) { + **(**int32)(__ccgo_up(bp + 4)) = (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition + } + } + case int32(_UNION): + uni = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_union_t)(unsafe.Pointer(uni)).Fright) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_EXPAND_RECURSE)) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_union_t)(unsafe.Pointer(uni)).Fleft) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_EXPAND_RECURSE)) + if status != REG_OK { + break + } + case int32(_CATENATION): + cat = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_EXPAND_RECURSE)) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_EXPAND_RECURSE)) + if status != REG_OK { + break + } + case int32(_ITERATION): + iter = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + status = _tre_stack_push_int(tls, stack, **(**int32)(__ccgo_up(bp))) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, node) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_EXPAND_AFTER_ITER)) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_EXPAND_RECURSE)) + if status != REG_OK { + break + } + /* If we are going to expand this node at EXPAND_AFTER_ITER + then don't increase the `pos' fields of the nodes now, it + will get done when expanding. */ + if (*Ttre_iteration_t)(unsafe.Pointer(iter)).Fmin > int32(1) || (*Ttre_iteration_t)(unsafe.Pointer(iter)).Fmax > int32(1) { + **(**int32)(__ccgo_up(bp)) = 0 + } + iter_depth = iter_depth + 1 + default: + break + } + case int32(_EXPAND_AFTER_ITER): + iter1 = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + **(**int32)(__ccgo_up(bp)) = _tre_stack_pop_int(tls, stack) + pos_add_last = **(**int32)(__ccgo_up(bp)) + if (*Ttre_iteration_t)(unsafe.Pointer(iter1)).Fmin > int32(1) || (*Ttre_iteration_t)(unsafe.Pointer(iter1)).Fmax > int32(1) { + seq1 = UintptrFromInt32(0) + **(**uintptr)(__ccgo_up(bp + 8)) = UintptrFromInt32(0) + pos_add_save = **(**int32)(__ccgo_up(bp)) + /* Create a catenated sequence of copies of the node. */ + j = 0 + for { + if !(j < (*Ttre_iteration_t)(unsafe.Pointer(iter1)).Fmin) { + break + } + if j+int32(1) < (*Ttre_iteration_t)(unsafe.Pointer(iter1)).Fmin { + v2 = int32(COPY_REMOVE_TAGS) + } else { + v2 = int32(COPY_MAXIMIZE_FIRST_TAG) + } + /* Remove tags from all but the last copy. */ + flags = v2 + pos_add_save = **(**int32)(__ccgo_up(bp)) + status = _tre_copy_ast(tls, mem, stack, (*Ttre_iteration_t)(unsafe.Pointer(iter1)).Farg, flags, bp, tag_directions, bp+16, bp+4) + if status != REG_OK { + return status + } + if seq1 != UintptrFromInt32(0) { + seq1 = _tre_ast_new_catenation(tls, mem, seq1, **(**uintptr)(__ccgo_up(bp + 16))) + } else { + seq1 = **(**uintptr)(__ccgo_up(bp + 16)) + } + if seq1 == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + goto _1 + _1: + ; + j = j + 1 + } + if (*Ttre_iteration_t)(unsafe.Pointer(iter1)).Fmax == -int32(1) { + /* No upper limit. */ + pos_add_save = **(**int32)(__ccgo_up(bp)) + status = _tre_copy_ast(tls, mem, stack, (*Ttre_iteration_t)(unsafe.Pointer(iter1)).Farg, 0, bp, UintptrFromInt32(0), bp+8, bp+4) + if status != REG_OK { + return status + } + **(**uintptr)(__ccgo_up(bp + 8)) = _tre_ast_new_iter(tls, mem, **(**uintptr)(__ccgo_up(bp + 8)), 0, -int32(1), 0) + if **(**uintptr)(__ccgo_up(bp + 8)) == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + } else { + j = (*Ttre_iteration_t)(unsafe.Pointer(iter1)).Fmin + for { + if !(j < (*Ttre_iteration_t)(unsafe.Pointer(iter1)).Fmax) { + break + } + pos_add_save = **(**int32)(__ccgo_up(bp)) + status = _tre_copy_ast(tls, mem, stack, (*Ttre_iteration_t)(unsafe.Pointer(iter1)).Farg, 0, bp, UintptrFromInt32(0), bp+24, bp+4) + if status != REG_OK { + return status + } + if **(**uintptr)(__ccgo_up(bp + 8)) != UintptrFromInt32(0) { + **(**uintptr)(__ccgo_up(bp + 8)) = _tre_ast_new_catenation(tls, mem, **(**uintptr)(__ccgo_up(bp + 24)), **(**uintptr)(__ccgo_up(bp + 8))) + } else { + **(**uintptr)(__ccgo_up(bp + 8)) = **(**uintptr)(__ccgo_up(bp + 24)) + } + if **(**uintptr)(__ccgo_up(bp + 8)) == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + tmp = _tre_ast_new_literal(tls, mem, -int32(1), -int32(1), -int32(1)) + if tmp == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + **(**uintptr)(__ccgo_up(bp + 8)) = _tre_ast_new_union(tls, mem, tmp, **(**uintptr)(__ccgo_up(bp + 8))) + if **(**uintptr)(__ccgo_up(bp + 8)) == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + goto _3 + _3: + ; + j = j + 1 + } + } + **(**int32)(__ccgo_up(bp)) = pos_add_save + if seq1 == UintptrFromInt32(0) { + seq1 = **(**uintptr)(__ccgo_up(bp + 8)) + } else { + if **(**uintptr)(__ccgo_up(bp + 8)) != UintptrFromInt32(0) { + seq1 = _tre_ast_new_catenation(tls, mem, seq1, **(**uintptr)(__ccgo_up(bp + 8))) + } + } + if seq1 == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj = (*Ttre_ast_node_t)(unsafe.Pointer(seq1)).Fobj + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 = (*Ttre_ast_node_t)(unsafe.Pointer(seq1)).Ftype1 + } + iter_depth = iter_depth - 1 + pos_add_total = pos_add_total + (**(**int32)(__ccgo_up(bp)) - pos_add_last) + if iter_depth == 0 { + **(**int32)(__ccgo_up(bp)) = pos_add_total + } + default: + break + } + } + **(**int32)(__ccgo_up(position)) += pos_add_total + /* `max_pos' should never be larger than `*position' if the above + code works, but just an extra safeguard let's make sure + `*position' is set large enough so enough memory will be + allocated for the transition table. */ + if **(**int32)(__ccgo_up(bp + 4)) > **(**int32)(__ccgo_up(position)) { + **(**int32)(__ccgo_up(position)) = **(**int32)(__ccgo_up(bp + 4)) + } + return status +} + +func _tre_set_empty(tls *TLS, mem Ttre_mem_t) (r uintptr) { + var new_set uintptr + _ = new_set + new_set = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), int32(1), uint64(56)) + if new_set == UintptrFromInt32(0) { + return UintptrFromInt32(0) + } + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set))).Fposition = -int32(1) + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set))).Fcode_min = -int32(1) + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set))).Fcode_max = -int32(1) + return new_set +} + +func _tre_set_one(tls *TLS, mem Ttre_mem_t, position int32, code_min int32, code_max int32, class Ttre_ctype_t, neg_classes uintptr, backref int32) (r uintptr) { + var new_set uintptr + _ = new_set + new_set = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), int32(1), Uint64FromInt64(56)*Uint64FromInt32(2)) + if new_set == UintptrFromInt32(0) { + return UintptrFromInt32(0) + } + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set))).Fposition = position + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set))).Fcode_min = code_min + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set))).Fcode_max = code_max + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set))).Fclass = class + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set))).Fneg_classes = neg_classes + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set))).Fbackref = backref + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + 1*56))).Fposition = -int32(1) + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + 1*56))).Fcode_min = -int32(1) + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + 1*56))).Fcode_max = -int32(1) + return new_set +} + +func _tre_set_union(tls *TLS, mem Ttre_mem_t, set1 uintptr, set2 uintptr, tags uintptr, assertions int32) (r uintptr) { + var i, j, num_tags, s1, s2 int32 + var new_set, new_tags uintptr + _, _, _, _, _, _, _ = i, j, new_set, new_tags, num_tags, s1, s2 + num_tags = 0 + for { + if !(tags != UintptrFromInt32(0) && **(**int32)(__ccgo_up(tags + uintptr(num_tags)*4)) >= 0) { + break + } + goto _1 + _1: + ; + num_tags = num_tags + 1 + } + s1 = 0 + for { + if !((**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*56))).Fposition >= 0) { + break + } + goto _2 + _2: + ; + s1 = s1 + 1 + } + s2 = 0 + for { + if !((**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*56))).Fposition >= 0) { + break + } + goto _3 + _3: + ; + s2 = s2 + 1 + } + new_set = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), int32(1), uint64(56)*Uint64FromInt32(s1+s2+Int32FromInt32(1))) + if !(new_set != 0) { + return UintptrFromInt32(0) + } + s1 = 0 + for { + if !((**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*56))).Fposition >= 0) { + break + } + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1)*56))).Fposition = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*56))).Fposition + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1)*56))).Fcode_min = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*56))).Fcode_min + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1)*56))).Fcode_max = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*56))).Fcode_max + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1)*56))).Fassertions = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*56))).Fassertions | assertions + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1)*56))).Fclass = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*56))).Fclass + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1)*56))).Fneg_classes = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*56))).Fneg_classes + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1)*56))).Fbackref = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*56))).Fbackref + if (**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*56))).Ftags == UintptrFromInt32(0) && tags == UintptrFromInt32(0) { + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1)*56))).Ftags = UintptrFromInt32(0) + } else { + i = 0 + for { + if !((**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*56))).Ftags != UintptrFromInt32(0) && **(**int32)(__ccgo_up((**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*56))).Ftags + uintptr(i)*4)) >= 0) { + break + } + goto _5 + _5: + ; + i = i + 1 + } + new_tags = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, Uint64FromInt64(4)*Uint64FromInt32(i+num_tags+Int32FromInt32(1))) + if new_tags == UintptrFromInt32(0) { + return UintptrFromInt32(0) + } + j = 0 + for { + if !(j < i) { + break + } + **(**int32)(__ccgo_up(new_tags + uintptr(j)*4)) = **(**int32)(__ccgo_up((**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*56))).Ftags + uintptr(j)*4)) + goto _6 + _6: + ; + j = j + 1 + } + i = 0 + for { + if !(i < num_tags) { + break + } + **(**int32)(__ccgo_up(new_tags + uintptr(j+i)*4)) = **(**int32)(__ccgo_up(tags + uintptr(i)*4)) + goto _7 + _7: + ; + i = i + 1 + } + **(**int32)(__ccgo_up(new_tags + uintptr(j+i)*4)) = -int32(1) + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1)*56))).Ftags = new_tags + } + goto _4 + _4: + ; + s1 = s1 + 1 + } + s2 = 0 + for { + if !((**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*56))).Fposition >= 0) { + break + } + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1+s2)*56))).Fposition = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*56))).Fposition + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1+s2)*56))).Fcode_min = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*56))).Fcode_min + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1+s2)*56))).Fcode_max = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*56))).Fcode_max + /* XXX - why not | assertions here as well? */ + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1+s2)*56))).Fassertions = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*56))).Fassertions + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1+s2)*56))).Fclass = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*56))).Fclass + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1+s2)*56))).Fneg_classes = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*56))).Fneg_classes + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1+s2)*56))).Fbackref = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*56))).Fbackref + if (**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*56))).Ftags == UintptrFromInt32(0) { + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1+s2)*56))).Ftags = UintptrFromInt32(0) + } else { + i = 0 + for { + if !(**(**int32)(__ccgo_up((**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*56))).Ftags + uintptr(i)*4)) >= 0) { + break + } + goto _9 + _9: + ; + i = i + 1 + } + new_tags = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint64(4)*Uint64FromInt32(i+Int32FromInt32(1))) + if new_tags == UintptrFromInt32(0) { + return UintptrFromInt32(0) + } + j = 0 + for { + if !(j < i) { + break + } + **(**int32)(__ccgo_up(new_tags + uintptr(j)*4)) = **(**int32)(__ccgo_up((**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*56))).Ftags + uintptr(j)*4)) + goto _10 + _10: + ; + j = j + 1 + } + **(**int32)(__ccgo_up(new_tags + uintptr(j)*4)) = -int32(1) + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1+s2)*56))).Ftags = new_tags + } + goto _8 + _8: + ; + s2 = s2 + 1 + } + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1+s2)*56))).Fposition = -int32(1) + return new_set +} + +// C documentation +// +// /* Finds the empty path through `node' which is the one that should be +// taken according to POSIX.2 rules, and adds the tags on that path to +// `tags'. `tags' may be NULL. If `num_tags_seen' is not NULL, it is +// set to the number of tags seen on the path. */ +func _tre_match_empty(tls *TLS, stack uintptr, node uintptr, tags uintptr, assertions uintptr, num_tags_seen uintptr) (r Treg_errcode_t) { + var bottom, i int32 + var cat, iter, lit, uni, v2 uintptr + var status Treg_errcode_t + _, _, _, _, _, _, _, _ = bottom, cat, i, iter, lit, status, uni, v2 + bottom = _tre_stack_num_objects(tls, stack) + status = REG_OK + if num_tags_seen != 0 { + **(**int32)(__ccgo_up(num_tags_seen)) = 0 + } + status = _tre_stack_push_voidptr(tls, stack, node) + /* Walk through the tree recursively. */ + for status == REG_OK && _tre_stack_num_objects(tls, stack) > bottom { + node = _tre_stack_pop_voidptr(tls, stack) + switch (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 { + case int32(_LITERAL): + lit = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + switch (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min { + case int64(-int32(3)): + if (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max >= 0 { + if tags != UintptrFromInt32(0) { + /* Add the tag to `tags'. */ + i = 0 + for { + if !(**(**int32)(__ccgo_up(tags + uintptr(i)*4)) >= 0) { + break + } + if int64(**(**int32)(__ccgo_up(tags + uintptr(i)*4))) == (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max { + break + } + goto _1 + _1: + ; + i = i + 1 + } + if **(**int32)(__ccgo_up(tags + uintptr(i)*4)) < 0 { + **(**int32)(__ccgo_up(tags + uintptr(i)*4)) = int32((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max) + **(**int32)(__ccgo_up(tags + uintptr(i+int32(1))*4)) = -int32(1) + } + } + if num_tags_seen != 0 { + **(**int32)(__ccgo_up(num_tags_seen)) = **(**int32)(__ccgo_up(num_tags_seen)) + 1 + } + } + case int64(-int32(2)): + if assertions != UintptrFromInt32(0) { + v2 = assertions + *(*int32)(unsafe.Pointer(v2)) = int32(int64(*(*int32)(unsafe.Pointer(v2))) | (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max) + } + case int64(-int32(1)): + default: + break + } + case int32(_UNION): + /* Subexpressions starting earlier take priority over ones + starting later, so we prefer the left subexpression over the + right subexpression. */ + uni = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + if (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_union_t)(unsafe.Pointer(uni)).Fleft)).Fnullable != 0 { + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_union_t)(unsafe.Pointer(uni)).Fleft) + if status != REG_OK { + break + } + } else { + if (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_union_t)(unsafe.Pointer(uni)).Fright)).Fnullable != 0 { + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_union_t)(unsafe.Pointer(uni)).Fright) + if status != REG_OK { + break + } + } else { + } + } + case int32(_CATENATION): + /* The path must go through both children. */ + cat = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright) + if status != REG_OK { + break + } + case int32(_ITERATION): + /* A match with an empty string is preferred over no match at + all, so we go through the argument if possible. */ + iter = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + if (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg)).Fnullable != 0 { + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg) + if status != REG_OK { + break + } + } + default: + break + } + } + return status +} + +type Ttre_nfl_stack_symbol_t = int32 + +const _NFL_RECURSE = 0 +const _NFL_POST_UNION = 1 +const _NFL_POST_CATENATION = 2 +const _NFL_POST_ITERATION = 3 + +// C documentation +// +// /* Computes and fills in the fields `nullable', `firstpos', and `lastpos' for +// the nodes of the AST `tree'. */ +func _tre_compute_nfl(tls *TLS, mem Ttre_mem_t, stack uintptr, tree uintptr) (r Treg_errcode_t) { + bp := tls.Alloc(16) + defer tls.Free(16) + var _status, _status1, _status10, _status11, _status12, _status13, _status14, _status15, _status16, _status17, _status2, _status3, _status4, _status5, _status6, _status7, _status8, _status9, status Treg_errcode_t + var bottom int32 + var cat, iter, lit, node, tags, uni uintptr + var symbol Ttre_nfl_stack_symbol_t + var _ /* assertions at bp+4 */ int32 + var _ /* num_tags at bp+0 */ int32 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = _status, _status1, _status10, _status11, _status12, _status13, _status14, _status15, _status16, _status17, _status2, _status3, _status4, _status5, _status6, _status7, _status8, _status9, bottom, cat, iter, lit, node, status, symbol, tags, uni + bottom = _tre_stack_num_objects(tls, stack) + _status = _tre_stack_push_voidptr(tls, stack, tree) + if _status != REG_OK { + return _status + } + _status1 = _tre_stack_push_int(tls, stack, int32(_NFL_RECURSE)) + if _status1 != REG_OK { + return _status1 + } + for _tre_stack_num_objects(tls, stack) > bottom { + symbol = _tre_stack_pop_int(tls, stack) + node = _tre_stack_pop_voidptr(tls, stack) + switch symbol { + case int32(_NFL_RECURSE): + switch (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 { + case int32(_LITERAL): + lit = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + if (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min == int64(-int32(4)) { + /* Back references: nullable = false, firstpos = {i}, + lastpos = {i}. */ + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnullable = 0 + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos = _tre_set_one(tls, mem, (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition, 0, int32(TRE_CHAR_MAX), uint64(0), UintptrFromInt32(0), -int32(1)) + if !((*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos != 0) { + return int32(REG_ESPACE) + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos = _tre_set_one(tls, mem, (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition, 0, int32(TRE_CHAR_MAX), uint64(0), UintptrFromInt32(0), int32((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max)) + if !((*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos != 0) { + return int32(REG_ESPACE) + } + } else { + if (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min < 0 { + /* Tags, empty strings, params, and zero width assertions: + nullable = true, firstpos = {}, and lastpos = {}. */ + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnullable = int32(1) + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos = _tre_set_empty(tls, mem) + if !((*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos != 0) { + return int32(REG_ESPACE) + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos = _tre_set_empty(tls, mem) + if !((*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos != 0) { + return int32(REG_ESPACE) + } + } else { + /* Literal at position i: nullable = false, firstpos = {i}, + lastpos = {i}. */ + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnullable = 0 + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos = _tre_set_one(tls, mem, (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition, int32((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min), int32((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max), uint64(0), UintptrFromInt32(0), -int32(1)) + if !((*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos != 0) { + return int32(REG_ESPACE) + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos = _tre_set_one(tls, mem, (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition, int32((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min), int32((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max), (*Ttre_literal_t)(unsafe.Pointer(lit)).Fclass, (*Ttre_literal_t)(unsafe.Pointer(lit)).Fneg_classes, -int32(1)) + if !((*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos != 0) { + return int32(REG_ESPACE) + } + } + } + case int32(_UNION): + /* Compute the attributes for the two subtrees, and after that + for this node. */ + _status2 = _tre_stack_push_voidptr(tls, stack, node) + if _status2 != REG_OK { + return _status2 + } + _status3 = _tre_stack_push_int(tls, stack, int32(_NFL_POST_UNION)) + if _status3 != REG_OK { + return _status3 + } + _status4 = _tre_stack_push_voidptr(tls, stack, (*Ttre_union_t)(unsafe.Pointer((*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj)).Fright) + if _status4 != REG_OK { + return _status4 + } + _status5 = _tre_stack_push_int(tls, stack, int32(_NFL_RECURSE)) + if _status5 != REG_OK { + return _status5 + } + _status6 = _tre_stack_push_voidptr(tls, stack, (*Ttre_union_t)(unsafe.Pointer((*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj)).Fleft) + if _status6 != REG_OK { + return _status6 + } + _status7 = _tre_stack_push_int(tls, stack, int32(_NFL_RECURSE)) + if _status7 != REG_OK { + return _status7 + } + case int32(_CATENATION): + /* Compute the attributes for the two subtrees, and after that + for this node. */ + _status8 = _tre_stack_push_voidptr(tls, stack, node) + if _status8 != REG_OK { + return _status8 + } + _status9 = _tre_stack_push_int(tls, stack, int32(_NFL_POST_CATENATION)) + if _status9 != REG_OK { + return _status9 + } + _status10 = _tre_stack_push_voidptr(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer((*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj)).Fright) + if _status10 != REG_OK { + return _status10 + } + _status11 = _tre_stack_push_int(tls, stack, int32(_NFL_RECURSE)) + if _status11 != REG_OK { + return _status11 + } + _status12 = _tre_stack_push_voidptr(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer((*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj)).Fleft) + if _status12 != REG_OK { + return _status12 + } + _status13 = _tre_stack_push_int(tls, stack, int32(_NFL_RECURSE)) + if _status13 != REG_OK { + return _status13 + } + case int32(_ITERATION): + /* Compute the attributes for the subtree, and after that for + this node. */ + _status14 = _tre_stack_push_voidptr(tls, stack, node) + if _status14 != REG_OK { + return _status14 + } + _status15 = _tre_stack_push_int(tls, stack, int32(_NFL_POST_ITERATION)) + if _status15 != REG_OK { + return _status15 + } + _status16 = _tre_stack_push_voidptr(tls, stack, (*Ttre_iteration_t)(unsafe.Pointer((*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj)).Farg) + if _status16 != REG_OK { + return _status16 + } + _status17 = _tre_stack_push_int(tls, stack, int32(_NFL_RECURSE)) + if _status17 != REG_OK { + return _status17 + } + break + } + case int32(_NFL_POST_UNION): + uni = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnullable = BoolInt32((*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_union_t)(unsafe.Pointer(uni)).Fleft)).Fnullable != 0 || (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_union_t)(unsafe.Pointer(uni)).Fright)).Fnullable != 0) + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos = _tre_set_union(tls, mem, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_union_t)(unsafe.Pointer(uni)).Fleft)).Ffirstpos, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_union_t)(unsafe.Pointer(uni)).Fright)).Ffirstpos, UintptrFromInt32(0), 0) + if !((*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos != 0) { + return int32(REG_ESPACE) + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos = _tre_set_union(tls, mem, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_union_t)(unsafe.Pointer(uni)).Fleft)).Flastpos, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_union_t)(unsafe.Pointer(uni)).Fright)).Flastpos, UintptrFromInt32(0), 0) + if !((*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos != 0) { + return int32(REG_ESPACE) + } + case int32(_NFL_POST_ITERATION): + iter = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + if (*Ttre_iteration_t)(unsafe.Pointer(iter)).Fmin == 0 || (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg)).Fnullable != 0 { + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnullable = int32(1) + } else { + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnullable = 0 + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos = (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg)).Ffirstpos + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos = (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg)).Flastpos + case int32(_NFL_POST_CATENATION): + cat = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnullable = BoolInt32((*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft)).Fnullable != 0 && (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright)).Fnullable != 0) + /* Compute firstpos. */ + if (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft)).Fnullable != 0 { + /* The left side matches the empty string. Make a first pass + with tre_match_empty() to get the number of tags and + parameters. */ + status = _tre_match_empty(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft, UintptrFromInt32(0), UintptrFromInt32(0), bp) + if status != REG_OK { + return status + } + /* Allocate arrays for the tags and parameters. */ + tags = Xmalloc(tls, uint64(4)*Uint64FromInt32(**(**int32)(__ccgo_up(bp))+Int32FromInt32(1))) + if !(tags != 0) { + return int32(REG_ESPACE) + } + **(**int32)(__ccgo_up(tags)) = -int32(1) + **(**int32)(__ccgo_up(bp + 4)) = 0 + /* Second pass with tre_mach_empty() to get the list of + tags and parameters. */ + status = _tre_match_empty(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft, tags, bp+4, UintptrFromInt32(0)) + if status != REG_OK { + Xfree(tls, tags) + return status + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos = _tre_set_union(tls, mem, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright)).Ffirstpos, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft)).Ffirstpos, tags, **(**int32)(__ccgo_up(bp + 4))) + Xfree(tls, tags) + if !((*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos != 0) { + return int32(REG_ESPACE) + } + } else { + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos = (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft)).Ffirstpos + } + /* Compute lastpos. */ + if (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright)).Fnullable != 0 { + /* The right side matches the empty string. Make a first pass + with tre_match_empty() to get the number of tags and + parameters. */ + status = _tre_match_empty(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright, UintptrFromInt32(0), UintptrFromInt32(0), bp) + if status != REG_OK { + return status + } + /* Allocate arrays for the tags and parameters. */ + tags = Xmalloc(tls, uint64(4)*Uint64FromInt32(**(**int32)(__ccgo_up(bp))+Int32FromInt32(1))) + if !(tags != 0) { + return int32(REG_ESPACE) + } + **(**int32)(__ccgo_up(tags)) = -int32(1) + **(**int32)(__ccgo_up(bp + 4)) = 0 + /* Second pass with tre_mach_empty() to get the list of + tags and parameters. */ + status = _tre_match_empty(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright, tags, bp+4, UintptrFromInt32(0)) + if status != REG_OK { + Xfree(tls, tags) + return status + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos = _tre_set_union(tls, mem, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft)).Flastpos, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright)).Flastpos, tags, **(**int32)(__ccgo_up(bp + 4))) + Xfree(tls, tags) + if !((*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos != 0) { + return int32(REG_ESPACE) + } + } else { + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos = (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright)).Flastpos + } + default: + break + } + } + return REG_OK +} + +// C documentation +// +// /* Adds a transition from each position in `p1' to each position in `p2'. */ +func _tre_make_trans(tls *TLS, p1 uintptr, p2 uintptr, transitions uintptr, counts uintptr, offs uintptr) (r Treg_errcode_t) { + var dup, i, j, k, l, prev_p2_pos, v1, v2 int32 + var orig_p2, trans uintptr + _, _, _, _, _, _, _, _, _, _ = dup, i, j, k, l, orig_p2, prev_p2_pos, trans, v1, v2 + orig_p2 = p2 + if transitions != UintptrFromInt32(0) { + for (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fposition >= 0 { + p2 = orig_p2 + prev_p2_pos = -int32(1) + for (*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Fposition >= 0 { + /* Optimization: if this position was already handled, skip it. */ + if (*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Fposition == prev_p2_pos { + p2 += 56 + continue + } + prev_p2_pos = (*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Fposition + /* Set `trans' to point to the next unused transition from + position `p1->position'. */ + trans = transitions + uintptr(**(**int32)(__ccgo_up(offs + uintptr((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fposition)*4)))*56 + for (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fstate != UintptrFromInt32(0) { + trans += 56 + } + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fstate == UintptrFromInt32(0) { + (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans + UintptrFromInt32(1)*56)).Fstate = UintptrFromInt32(0) + } + /* Use the character ranges, assertions, etc. from `p1' for + the transition from `p1' to `p2'. */ + (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fcode_min = Uint32FromInt32((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fcode_min) + (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fcode_max = Uint32FromInt32((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fcode_max) + (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fstate = transitions + uintptr(**(**int32)(__ccgo_up(offs + uintptr((*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Fposition)*4)))*56 + (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fstate_id = (*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Fposition + if (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fclass != 0 { + v1 = int32(ASSERT_CHAR_CLASS) + } else { + v1 = 0 + } + if (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fneg_classes != UintptrFromInt32(0) { + v2 = int32(ASSERT_CHAR_CLASS_NEG) + } else { + v2 = 0 + } + (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fassertions = (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fassertions | (*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Fassertions | v1 | v2 + if (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fbackref >= 0 { + *(*int32)(unsafe.Pointer(&(*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fu)) = (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fbackref + **(**int32)(__ccgo_up(trans + 32)) |= int32(ASSERT_BACKREF) + } else { + *(*Ttre_ctype_t)(unsafe.Pointer(trans + 40)) = (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fclass + } + if (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fneg_classes != UintptrFromInt32(0) { + i = 0 + for { + if !(**(**Ttre_ctype_t)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fneg_classes + uintptr(i)*8)) != Uint64FromInt32(0)) { + break + } + goto _3 + _3: + ; + i = i + 1 + } + (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fneg_classes = Xmalloc(tls, uint64(8)*Uint64FromInt32(i+Int32FromInt32(1))) + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fneg_classes == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + i = 0 + for { + if !(**(**Ttre_ctype_t)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fneg_classes + uintptr(i)*8)) != Uint64FromInt32(0)) { + break + } + **(**Ttre_ctype_t)(__ccgo_up((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fneg_classes + uintptr(i)*8)) = **(**Ttre_ctype_t)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fneg_classes + uintptr(i)*8)) + goto _4 + _4: + ; + i = i + 1 + } + **(**Ttre_ctype_t)(__ccgo_up((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fneg_classes + uintptr(i)*8)) = Uint64FromInt32(0) + } else { + (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fneg_classes = UintptrFromInt32(0) + } + /* Find out how many tags this transition has. */ + i = 0 + if (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Ftags != UintptrFromInt32(0) { + for **(**int32)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Ftags + uintptr(i)*4)) >= 0 { + i = i + 1 + } + } + j = 0 + if (*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Ftags != UintptrFromInt32(0) { + for **(**int32)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Ftags + uintptr(j)*4)) >= 0 { + j = j + 1 + } + } + /* If we are overwriting a transition, free the old tag array. */ + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags != UintptrFromInt32(0) { + Xfree(tls, (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags) + } + (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags = UintptrFromInt32(0) + /* If there were any tags, allocate an array and fill it. */ + if i+j > 0 { + (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags = Xmalloc(tls, uint64(4)*Uint64FromInt32(i+j+Int32FromInt32(1))) + if !((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags != 0) { + return int32(REG_ESPACE) + } + i = 0 + if (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Ftags != UintptrFromInt32(0) { + for **(**int32)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Ftags + uintptr(i)*4)) >= 0 { + **(**int32)(__ccgo_up((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags + uintptr(i)*4)) = **(**int32)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Ftags + uintptr(i)*4)) + i = i + 1 + } + } + l = i + j = 0 + if (*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Ftags != UintptrFromInt32(0) { + for **(**int32)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Ftags + uintptr(j)*4)) >= 0 { + /* Don't add duplicates. */ + dup = 0 + k = 0 + for { + if !(k < i) { + break + } + if **(**int32)(__ccgo_up((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags + uintptr(k)*4)) == **(**int32)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Ftags + uintptr(j)*4)) { + dup = int32(1) + break + } + goto _5 + _5: + ; + k = k + 1 + } + if !(dup != 0) { + v1 = l + l = l + 1 + **(**int32)(__ccgo_up((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags + uintptr(v1)*4)) = **(**int32)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Ftags + uintptr(j)*4)) + } + j = j + 1 + } + } + **(**int32)(__ccgo_up((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags + uintptr(l)*4)) = -int32(1) + } + p2 += 56 + } + p1 += 56 + } + } else { + /* Compute a maximum limit for the number of transitions leaving + from each state. */ + for (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fposition >= 0 { + p2 = orig_p2 + for (*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Fposition >= 0 { + **(**int32)(__ccgo_up(counts + uintptr((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fposition)*4)) = **(**int32)(__ccgo_up(counts + uintptr((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fposition)*4)) + 1 + p2 += 56 + } + p1 += 56 + } + } + return REG_OK +} + +// C documentation +// +// /* Converts the syntax tree to a TNFA. All the transitions in the TNFA are +// labelled with one character range (there are no transitions on empty +// strings). The TNFA takes O(n^2) space in the worst case, `n' is size of +// the regexp. */ +func _tre_ast_to_tnfa(tls *TLS, node uintptr, transitions uintptr, counts uintptr, offs uintptr) (r Treg_errcode_t) { + var cat, iter, uni uintptr + var errcode Treg_errcode_t + _, _, _, _ = cat, errcode, iter, uni + errcode = REG_OK + /* XXX - recurse using a stack!. */ + switch (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 { + case int32(_LITERAL): + case int32(_UNION): + uni = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + errcode = _tre_ast_to_tnfa(tls, (*Ttre_union_t)(unsafe.Pointer(uni)).Fleft, transitions, counts, offs) + if errcode != REG_OK { + return errcode + } + errcode = _tre_ast_to_tnfa(tls, (*Ttre_union_t)(unsafe.Pointer(uni)).Fright, transitions, counts, offs) + case int32(_CATENATION): + cat = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + /* Add a transition from each position in cat->left->lastpos + to each position in cat->right->firstpos. */ + errcode = _tre_make_trans(tls, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft)).Flastpos, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright)).Ffirstpos, transitions, counts, offs) + if errcode != REG_OK { + return errcode + } + errcode = _tre_ast_to_tnfa(tls, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft, transitions, counts, offs) + if errcode != REG_OK { + return errcode + } + errcode = _tre_ast_to_tnfa(tls, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright, transitions, counts, offs) + case int32(_ITERATION): + iter = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + if (*Ttre_iteration_t)(unsafe.Pointer(iter)).Fmax == -int32(1) { + /* Add a transition from each last position in the iterated + expression to each first position. */ + errcode = _tre_make_trans(tls, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg)).Flastpos, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg)).Ffirstpos, transitions, counts, offs) + if errcode != REG_OK { + return errcode + } + } + errcode = _tre_ast_to_tnfa(tls, (*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg, transitions, counts, offs) + break + } + return errcode +} + +func Xregcomp(tls *TLS, preg uintptr, regex uintptr, cflags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v preg=%v regex=%v cflags=%v, (%v:)", tls, preg, regex, cflags, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var add, i, j, v1 int32 + var counts, initial, offs, p, stack, submatch_data, tag_directions, tmp_ast_l, tmp_ast_r, tnfa, transitions, tree, v2 uintptr + var errcode Treg_errcode_t + var mem Ttre_mem_t + var _ /* parse_ctx at bp+0 */ Ttre_parse_ctx_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = add, counts, errcode, i, initial, j, mem, offs, p, stack, submatch_data, tag_directions, tmp_ast_l, tmp_ast_r, tnfa, transitions, tree, v1, v2 + counts = UintptrFromInt32(0) + offs = UintptrFromInt32(0) + add = 0 + tnfa = UintptrFromInt32(0) + tag_directions = UintptrFromInt32(0) + /* Allocate a stack used throughout the compilation process for various + purposes. */ + stack = _tre_stack_new(tls, int32(512), int32(1024000), int32(128)) + if !(stack != 0) { + return int32(REG_ESPACE) + } + /* Allocate a fast memory allocator. */ + mem = X__tre_mem_new_impl(tls, 0, UintptrFromInt32(0)) + if !(mem != 0) { + _tre_stack_destroy(tls, stack) + return int32(REG_ESPACE) + } + /* Parse the regexp. */ + Xmemset(tls, bp, 0, uint64(56)) + (**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fmem = mem + (**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fstack = stack + (**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fstart = regex + (**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fcflags = cflags + (**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fmax_backref = -int32(1) + errcode = _tre_parse(tls, bp) + if errcode != REG_OK { + errcode = errcode + if int32(1) != 0 { + goto error_exit + } + } + (*Tregex_t)(unsafe.Pointer(preg)).Fre_nsub = Uint64FromInt32((**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fsubmatch_id - int32(1)) + tree = (**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fn + /* Referring to nonexistent subexpressions is illegal. */ + if (**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fmax_backref > Int32FromUint64((*Tregex_t)(unsafe.Pointer(preg)).Fre_nsub) { + errcode = int32(REG_ESUBREG) + if int32(1) != 0 { + goto error_exit + } + } + /* Allocate the TNFA struct. */ + tnfa = Xcalloc(tls, uint64(1), uint64(104)) + if tnfa == UintptrFromInt32(0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fhave_backrefs = BoolInt32((**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fmax_backref >= 0) + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fhave_approx = 0 + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_submatches = Uint32FromInt32((**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fsubmatch_id) + /* Set up tags for submatch addressing. If REG_NOSUB is set and the + regexp does not have back references, this can be skipped. */ + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fhave_backrefs != 0 || !(cflags&Int32FromInt32(REG_NOSUB) != 0) { + /* Figure out how many tags we will need. */ + errcode = _tre_add_tags(tls, UintptrFromInt32(0), stack, tree, tnfa) + if errcode != REG_OK { + errcode = errcode + if int32(1) != 0 { + goto error_exit + } + } + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags > 0 { + tag_directions = Xmalloc(tls, uint64(4)*Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags+Int32FromInt32(1))) + if tag_directions == UintptrFromInt32(0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions = tag_directions + Xmemset(tls, tag_directions, -int32(1), uint64(4)*Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags+Int32FromInt32(1))) + } + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags = Xcalloc(tls, uint64(Uint32FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags)*uint32(2)+uint32(1)), uint64(4)) + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags == UintptrFromInt32(0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + submatch_data = Xcalloc(tls, uint64(Uint32FromInt32((**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fsubmatch_id)), uint64(16)) + if submatch_data == UintptrFromInt32(0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fsubmatch_data = submatch_data + errcode = _tre_add_tags(tls, mem, stack, tree, tnfa) + if errcode != REG_OK { + errcode = errcode + if int32(1) != 0 { + goto error_exit + } + } + } + /* Expand iteration nodes. */ + errcode = _tre_expand_ast(tls, mem, stack, tree, bp+44, tag_directions) + if errcode != REG_OK { + errcode = errcode + if int32(1) != 0 { + goto error_exit + } + } + /* Add a dummy node for the final state. + XXX - For certain patterns this dummy node can be optimized away, + for example "a*" or "ab*". Figure out a simple way to detect + this possibility. */ + tmp_ast_l = tree + v2 = bp + 44 + v1 = *(*int32)(unsafe.Pointer(v2)) + *(*int32)(unsafe.Pointer(v2)) = *(*int32)(unsafe.Pointer(v2)) + 1 + tmp_ast_r = _tre_ast_new_literal(tls, mem, 0, 0, v1) + if tmp_ast_r == UintptrFromInt32(0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + tree = _tre_ast_new_catenation(tls, mem, tmp_ast_l, tmp_ast_r) + if tree == UintptrFromInt32(0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + errcode = _tre_compute_nfl(tls, mem, stack, tree) + if errcode != REG_OK { + errcode = errcode + if int32(1) != 0 { + goto error_exit + } + } + counts = Xmalloc(tls, uint64(4)*Uint64FromInt32((**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fposition)) + if counts == UintptrFromInt32(0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + offs = Xmalloc(tls, uint64(4)*Uint64FromInt32((**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fposition)) + if offs == UintptrFromInt32(0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + i = 0 + for { + if !(i < (**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fposition) { + break + } + **(**int32)(__ccgo_up(counts + uintptr(i)*4)) = 0 + goto _3 + _3: + ; + i = i + 1 + } + _tre_ast_to_tnfa(tls, tree, UintptrFromInt32(0), counts, UintptrFromInt32(0)) + add = 0 + i = 0 + for { + if !(i < (**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fposition) { + break + } + **(**int32)(__ccgo_up(offs + uintptr(i)*4)) = add + add = add + (**(**int32)(__ccgo_up(counts + uintptr(i)*4)) + int32(1)) + **(**int32)(__ccgo_up(counts + uintptr(i)*4)) = 0 + goto _4 + _4: + ; + i = i + 1 + } + transitions = Xcalloc(tls, uint64(Uint32FromInt32(add)+uint32(1)), uint64(56)) + if transitions == UintptrFromInt32(0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftransitions = transitions + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_transitions = Uint32FromInt32(add) + errcode = _tre_ast_to_tnfa(tls, tree, transitions, counts, offs) + if errcode != REG_OK { + errcode = errcode + if int32(1) != 0 { + goto error_exit + } + } + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ffirstpos_chars = UintptrFromInt32(0) + p = (*Ttre_ast_node_t)(unsafe.Pointer(tree)).Ffirstpos + i = 0 + for (*Ttre_pos_and_tags_t)(unsafe.Pointer(p)).Fposition >= 0 { + i = i + 1 + p += 56 + } + initial = Xcalloc(tls, uint64(Uint32FromInt32(i)+uint32(1)), uint64(56)) + if initial == UintptrFromInt32(0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Finitial = initial + i = 0 + p = (*Ttre_ast_node_t)(unsafe.Pointer(tree)).Ffirstpos + for { + if !((*Ttre_pos_and_tags_t)(unsafe.Pointer(p)).Fposition >= 0) { + break + } + (**(**Ttre_tnfa_transition_t)(__ccgo_up(initial + uintptr(i)*56))).Fstate = transitions + uintptr(**(**int32)(__ccgo_up(offs + uintptr((*Ttre_pos_and_tags_t)(unsafe.Pointer(p)).Fposition)*4)))*56 + (**(**Ttre_tnfa_transition_t)(__ccgo_up(initial + uintptr(i)*56))).Fstate_id = (*Ttre_pos_and_tags_t)(unsafe.Pointer(p)).Fposition + (**(**Ttre_tnfa_transition_t)(__ccgo_up(initial + uintptr(i)*56))).Ftags = UintptrFromInt32(0) + /* Copy the arrays p->tags, and p->params, they are allocated + from a tre_mem object. */ + if (*Ttre_pos_and_tags_t)(unsafe.Pointer(p)).Ftags != 0 { + j = 0 + for { + if !(**(**int32)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p)).Ftags + uintptr(j)*4)) >= 0) { + break + } + goto _6 + _6: + ; + j = j + 1 + } + (**(**Ttre_tnfa_transition_t)(__ccgo_up(initial + uintptr(i)*56))).Ftags = Xmalloc(tls, uint64(4)*Uint64FromInt32(j+Int32FromInt32(1))) + if !((**(**Ttre_tnfa_transition_t)(__ccgo_up(initial + uintptr(i)*56))).Ftags != 0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + Xmemcpy(tls, (**(**Ttre_tnfa_transition_t)(__ccgo_up(initial + uintptr(i)*56))).Ftags, (*Ttre_pos_and_tags_t)(unsafe.Pointer(p)).Ftags, uint64(4)*Uint64FromInt32(j+Int32FromInt32(1))) + } + (**(**Ttre_tnfa_transition_t)(__ccgo_up(initial + uintptr(i)*56))).Fassertions = (*Ttre_pos_and_tags_t)(unsafe.Pointer(p)).Fassertions + i = i + 1 + goto _5 + _5: + ; + p += 56 + } + (**(**Ttre_tnfa_transition_t)(__ccgo_up(initial + uintptr(i)*56))).Fstate = UintptrFromInt32(0) + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_transitions = Uint32FromInt32(add) + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ffinal = transitions + uintptr(**(**int32)(__ccgo_up(offs + uintptr((**(**Ttre_pos_and_tags_t)(__ccgo_up((*Ttre_ast_node_t)(unsafe.Pointer(tree)).Flastpos))).Fposition)*4)))*56 + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states = (**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fposition + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags = cflags + X__tre_mem_destroy(tls, mem) + _tre_stack_destroy(tls, stack) + Xfree(tls, counts) + Xfree(tls, offs) + (*Tregex_t)(unsafe.Pointer(preg)).F__opaque = tnfa + return REG_OK + goto error_exit +error_exit: + ; + /* Free everything that was allocated and return the error code. */ + X__tre_mem_destroy(tls, mem) + if stack != UintptrFromInt32(0) { + _tre_stack_destroy(tls, stack) + } + if counts != UintptrFromInt32(0) { + Xfree(tls, counts) + } + if offs != UintptrFromInt32(0) { + Xfree(tls, offs) + } + (*Tregex_t)(unsafe.Pointer(preg)).F__opaque = tnfa + Xregfree(tls, preg) + return errcode +} + +func Xregfree(tls *TLS, preg uintptr) { + if __ccgo_strace { + trc("tls=%v preg=%v, (%v:)", tls, preg, origin(2)) + } + var i uint32 + var tnfa, trans uintptr + _, _, _ = i, tnfa, trans + tnfa = (*Tregex_t)(unsafe.Pointer(preg)).F__opaque + if !(tnfa != 0) { + return + } + i = uint32(0) + for { + if !(i < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_transitions) { + break + } + if (**(**Ttre_tnfa_transition_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftransitions + uintptr(i)*56))).Fstate != 0 { + if (**(**Ttre_tnfa_transition_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftransitions + uintptr(i)*56))).Ftags != 0 { + Xfree(tls, (**(**Ttre_tnfa_transition_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftransitions + uintptr(i)*56))).Ftags) + } + if (**(**Ttre_tnfa_transition_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftransitions + uintptr(i)*56))).Fneg_classes != 0 { + Xfree(tls, (**(**Ttre_tnfa_transition_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftransitions + uintptr(i)*56))).Fneg_classes) + } + } + goto _1 + _1: + ; + i = i + 1 + } + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftransitions != 0 { + Xfree(tls, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftransitions) + } + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Finitial != 0 { + trans = (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Finitial + for { + if !((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fstate != 0) { + break + } + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags != 0 { + Xfree(tls, (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags) + } + goto _2 + _2: + ; + trans += 56 + } + Xfree(tls, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Finitial) + } + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fsubmatch_data != 0 { + i = uint32(0) + for { + if !(i < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_submatches) { + break + } + if (**(**Ttre_submatch_data_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fsubmatch_data + uintptr(i)*16))).Fparents != 0 { + Xfree(tls, (**(**Ttre_submatch_data_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fsubmatch_data + uintptr(i)*16))).Fparents) + } + goto _3 + _3: + ; + i = i + 1 + } + Xfree(tls, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fsubmatch_data) + } + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions != 0 { + Xfree(tls, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions) + } + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ffirstpos_chars != 0 { + Xfree(tls, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ffirstpos_chars) + } + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags != 0 { + Xfree(tls, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags) + } + Xfree(tls, tnfa) +} + +/* Error message strings for error codes listed in `regex.h'. This list + needs to be in sync with the codes listed there, naturally. */ + +/* Converted to single string by Rich Felker to remove the need for + * data relocations at runtime, 27 Feb 2006. */ + +var _messages = [286]uint8{'N', 'o', ' ', 'e', 'r', 'r', 'o', 'r', 0, 'N', 'o', ' ', 'm', 'a', 't', 'c', 'h', 0, 'I', 'n', 'v', 'a', 'l', 'i', 'd', ' ', 'r', 'e', 'g', 'e', 'x', 'p', 0, 'U', 'n', 'k', 'n', 'o', 'w', 'n', ' ', 'c', 'o', 'l', 'l', 'a', 't', 'i', 'n', 'g', ' ', 'e', 'l', 'e', 'm', 'e', 'n', 't', 0, 'U', 'n', 'k', 'n', 'o', 'w', 'n', ' ', 'c', 'h', 'a', 'r', 'a', 'c', 't', 'e', 'r', ' ', 'c', 'l', 'a', 's', 's', ' ', 'n', 'a', 'm', 'e', 0, 'T', 'r', 'a', 'i', 'l', 'i', 'n', 'g', ' ', 'b', 'a', 'c', 'k', 's', 'l', 'a', 's', 'h', 0, 'I', 'n', 'v', 'a', 'l', 'i', 'd', ' ', 'b', 'a', 'c', 'k', ' ', 'r', 'e', 'f', 'e', 'r', 'e', 'n', 'c', 'e', 0, 'M', 'i', 's', 's', 'i', 'n', 'g', ' ', '\'', ']', '\'', 0, 'M', 'i', 's', 's', 'i', 'n', 'g', ' ', '\'', ')', '\'', 0, 'M', 'i', 's', 's', 'i', 'n', 'g', ' ', '\'', '}', '\'', 0, 'I', 'n', 'v', 'a', 'l', 'i', 'd', ' ', 'c', 'o', 'n', 't', 'e', 'n', 't', 's', ' ', 'o', 'f', ' ', '{', '}', 0, 'I', 'n', 'v', 'a', 'l', 'i', 'd', ' ', 'c', 'h', 'a', 'r', 'a', 'c', 't', 'e', 'r', ' ', 'r', 'a', 'n', 'g', 'e', 0, 'O', 'u', 't', ' ', 'o', 'f', ' ', 'm', 'e', 'm', 'o', 'r', 'y', 0, 'R', 'e', 'p', 'e', 't', 'i', 't', 'i', 'o', 'n', ' ', 'n', 'o', 't', ' ', 'p', 'r', 'e', 'c', 'e', 'd', 'e', 'd', ' ', 'b', 'y', ' ', 'v', 'a', 'l', 'i', 'd', ' ', 'e', 'x', 'p', 'r', 'e', 's', 's', 'i', 'o', 'n', 0, 0, 'U', 'n', 'k', 'n', 'o', 'w', 'n', ' ', 'e', 'r', 'r', 'o', 'r'} + +func Xregerror(tls *TLS, e int32, preg uintptr, buf uintptr, size Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v e=%v preg=%v buf=%v size=%v, (%v:)", tls, e, preg, buf, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var s uintptr + _ = s + s = uintptr(unsafe.Pointer(&_messages)) + for { + if !(e != 0 && **(**uint8)(__ccgo_up(s)) != 0) { + break + } + goto _1 + _1: + ; + e = e - 1 + s = s + uintptr(_strlen(tls, s)+uint64(1)) + } + if !(**(**uint8)(__ccgo_up(s)) != 0) { + s = s + 1 + } + s = X__lctrans_cur(tls, s) + return Uint64FromInt32(int32(1) + Xsnprintf(tls, buf, size, __ccgo_ts+15, VaList(bp+8, s))) +} + +const tre_bt_mem_alloc = 0 +const tre_bt_mem_destroy = 0 +const tre_bt_mem_new = 0 + +/*********************************************************************** + from tre-match-utils.h +***********************************************************************/ + +// C documentation +// +// /* Returns 1 if `t1' wins `t2', 0 otherwise. */ +func _tre_tag_order(tls *TLS, num_tags int32, tag_directions uintptr, t1 uintptr, t2 uintptr) (r int32) { + var i int32 + _ = i + i = 0 + for { + if !(i < num_tags) { + break + } + if **(**Ttre_tag_direction_t)(__ccgo_up(tag_directions + uintptr(i)*4)) == int32(_TRE_TAG_MINIMIZE) { + if **(**Tregoff_t)(__ccgo_up(t1 + uintptr(i)*8)) < **(**Tregoff_t)(__ccgo_up(t2 + uintptr(i)*8)) { + return int32(1) + } + if **(**Tregoff_t)(__ccgo_up(t1 + uintptr(i)*8)) > **(**Tregoff_t)(__ccgo_up(t2 + uintptr(i)*8)) { + return 0 + } + } else { + if **(**Tregoff_t)(__ccgo_up(t1 + uintptr(i)*8)) > **(**Tregoff_t)(__ccgo_up(t2 + uintptr(i)*8)) { + return int32(1) + } + if **(**Tregoff_t)(__ccgo_up(t1 + uintptr(i)*8)) < **(**Tregoff_t)(__ccgo_up(t2 + uintptr(i)*8)) { + return 0 + } + } + goto _1 + _1: + ; + i = i + 1 + } + /* assert(0);*/ + return 0 +} + +func _tre_neg_char_classes_match(tls *TLS, classes uintptr, wc Ttre_cint_t, icase int32) (r int32) { + for **(**Ttre_ctype_t)(__ccgo_up(classes)) != Uint64FromInt32(0) { + if !(icase != 0) && Xiswctype(tls, wc, **(**Ttre_ctype_t)(__ccgo_up(classes))) != 0 || icase != 0 && (Xiswctype(tls, Xtowupper(tls, wc), **(**Ttre_ctype_t)(__ccgo_up(classes))) != 0 || Xiswctype(tls, Xtowlower(tls, wc), **(**Ttre_ctype_t)(__ccgo_up(classes))) != 0) { + return int32(1) + } else { + classes += 8 + } + } + return 0 /* No match. */ +} + +/*********************************************************************** + from tre-match-parallel.c +***********************************************************************/ + +/* + This algorithm searches for matches basically by reading characters + in the searched string one by one, starting at the beginning. All + matching paths in the TNFA are traversed in parallel. When two or + more paths reach the same state, exactly one is chosen according to + tag ordering rules; if returning submatches is not required it does + not matter which path is chosen. + + The worst case time required for finding the leftmost and longest + match, or determining that there is no match, is always linearly + dependent on the length of the text being searched. + + This algorithm cannot handle TNFAs with back referencing nodes. + See `tre-match-backtrack.c'. +*/ + +type Ttre_tnfa_reach_t = struct { + Fstate uintptr + Ftags uintptr +} + +type Ttre_reach_pos_t = struct { + Fpos Tregoff_t + Ftags uintptr +} + +func _tre_tnfa_run_parallel(tls *TLS, tnfa uintptr, string1 uintptr, match_tags uintptr, eflags int32, match_end_ofs uintptr) (r Treg_errcode_t) { + bp := tls.Alloc(16) + defer tls.Free(16) + var buf, reach, reach_i, reach_next, reach_next_i, reach_pos, str_byte, tag_i, tmp_buf, tmp_iptr, tmp_tags, trans_i uintptr + var end, i, new_match, num_tags, reg_newline, reg_notbol, reg_noteol, skip, start, v18 int32 + var match_eo, pos, pos_add_next, v7 Tregoff_t + var pbytes, rbytes, tbytes, total_bytes, xbytes Tsize_t + var prev_c Ttre_char_t + var ret Treg_errcode_t + var v1 uint64 + var _ /* next_c at bp+0 */ Ttre_char_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = buf, end, i, match_eo, new_match, num_tags, pbytes, pos, pos_add_next, prev_c, rbytes, reach, reach_i, reach_next, reach_next_i, reach_pos, reg_newline, reg_notbol, reg_noteol, ret, skip, start, str_byte, tag_i, tbytes, tmp_buf, tmp_iptr, tmp_tags, total_bytes, trans_i, xbytes, v1, v18, v7 + /* State variables required by GET_NEXT_WCHAR. */ + prev_c = uint32(0) + **(**Ttre_char_t)(__ccgo_up(bp)) = uint32(0) + str_byte = string1 + pos = int64(-int32(1)) + pos_add_next = int64(1) + reg_notbol = eflags & int32(REG_NOTBOL) + reg_noteol = eflags & int32(REG_NOTEOL) + reg_newline = (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags & int32(REG_NEWLINE) + match_eo = int64(-int32(1)) /* end offset of match (-1 if no match found yet) */ + new_match = 0 + tmp_tags = UintptrFromInt32(0) + if !(match_tags != 0) { + num_tags = 0 + } else { + num_tags = (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags + } + /* Allocate memory for temporary data required for matching. This needs to + be done for every matching operation to be thread safe. This allocates + everything in a single large block with calloc(). */ + /* Ensure that tbytes and xbytes*num_states cannot overflow, and that + * they don't contribute more than 1/8 of SIZE_MAX to total_bytes. */ + if Uint64FromInt32(num_tags) > uint64(0xffffffffffffffff)/(Uint64FromInt32(8)*Uint64FromInt64(8)*Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states)) { + return int32(REG_ESPACE) + } + /* Likewise check rbytes. */ + if Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states+int32(1)) > Uint64FromUint64(0xffffffffffffffff)/(Uint64FromInt32(8)*Uint64FromInt64(16)) { + return int32(REG_ESPACE) + } + /* Likewise check pbytes. */ + if Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states) > Uint64FromUint64(0xffffffffffffffff)/(Uint64FromInt32(8)*Uint64FromInt64(16)) { + return int32(REG_ESPACE) + } + /* Compute the length of the block we need. */ + tbytes = uint64(8) * Uint64FromInt32(num_tags) + rbytes = uint64(16) * Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states+Int32FromInt32(1)) + pbytes = uint64(16) * Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states) + xbytes = uint64(8) * Uint64FromInt32(num_tags) + total_bytes = (Uint64FromInt64(8)-Uint64FromInt32(1))*Uint64FromInt32(4) + (rbytes+xbytes*Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states))*uint64(2) + tbytes + pbytes + /* Allocate the memory. */ + buf = Xcalloc(tls, total_bytes, uint64(1)) + if buf == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + /* Get the various pointers within tmp_buf (properly aligned). */ + tmp_tags = buf + tmp_buf = buf + uintptr(tbytes) + if Uint64FromInt64(int64(tmp_buf))%uint64(8) != 0 { + v1 = uint64(8) - Uint64FromInt64(int64(tmp_buf))%uint64(8) + } else { + v1 = uint64(0) + } + tmp_buf = tmp_buf + uintptr(v1) + reach_next = tmp_buf + tmp_buf = tmp_buf + uintptr(rbytes) + if Uint64FromInt64(int64(tmp_buf))%uint64(8) != 0 { + v1 = uint64(8) - Uint64FromInt64(int64(tmp_buf))%uint64(8) + } else { + v1 = uint64(0) + } + tmp_buf = tmp_buf + uintptr(v1) + reach = tmp_buf + tmp_buf = tmp_buf + uintptr(rbytes) + if Uint64FromInt64(int64(tmp_buf))%uint64(8) != 0 { + v1 = uint64(8) - Uint64FromInt64(int64(tmp_buf))%uint64(8) + } else { + v1 = uint64(0) + } + tmp_buf = tmp_buf + uintptr(v1) + reach_pos = tmp_buf + tmp_buf = tmp_buf + uintptr(pbytes) + if Uint64FromInt64(int64(tmp_buf))%uint64(8) != 0 { + v1 = uint64(8) - Uint64FromInt64(int64(tmp_buf))%uint64(8) + } else { + v1 = uint64(0) + } + tmp_buf = tmp_buf + uintptr(v1) + i = 0 + for { + if !(i < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states) { + break + } + (**(**Ttre_tnfa_reach_t)(__ccgo_up(reach + uintptr(i)*16))).Ftags = tmp_buf + tmp_buf = tmp_buf + uintptr(xbytes) + (**(**Ttre_tnfa_reach_t)(__ccgo_up(reach_next + uintptr(i)*16))).Ftags = tmp_buf + tmp_buf = tmp_buf + uintptr(xbytes) + goto _5 + _5: + ; + i = i + 1 + } + i = 0 + for { + if !(i < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states) { + break + } + (**(**Ttre_reach_pos_t)(__ccgo_up(reach_pos + uintptr(i)*16))).Fpos = int64(-int32(1)) + goto _6 + _6: + ; + i = i + 1 + } + prev_c = **(**Ttre_char_t)(__ccgo_up(bp)) + pos = pos + pos_add_next + v7 = int64(Xmbtowc(tls, bp, str_byte, uint64(MB_LEN_MAX))) + pos_add_next = v7 + if v7 <= 0 { + if pos_add_next < 0 { + ret = int32(REG_NOMATCH) + goto error_exit + } else { + pos_add_next = pos_add_next + 1 + } + } + str_byte = str_byte + uintptr(pos_add_next) + pos = 0 + reach_next_i = reach_next + for int32(1) != 0 { + /* If no match found yet, add the initial states to `reach_next'. */ + if match_eo < 0 { + trans_i = (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Finitial + for (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate != UintptrFromInt32(0) { + if (**(**Ttre_reach_pos_t)(__ccgo_up(reach_pos + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*16))).Fpos < pos { + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions != 0 && ((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_BOL) != 0 && (pos > 0 || reg_notbol != 0) && (prev_c != uint32('\n') || !(reg_newline != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_EOL) != 0 && (**(**Ttre_char_t)(__ccgo_up(bp)) != uint32('\000') || reg_noteol != 0) && (**(**Ttre_char_t)(__ccgo_up(bp)) != uint32('\n') || !(reg_newline != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_BOW) != 0 && (prev_c == uint32('_') || Xiswalnum(tls, prev_c) != 0 || !(**(**Ttre_char_t)(__ccgo_up(bp)) == uint32('_') || Xiswalnum(tls, **(**Ttre_char_t)(__ccgo_up(bp))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_EOW) != 0 && (!(prev_c == uint32('_') || Xiswalnum(tls, prev_c) != 0) || (**(**Ttre_char_t)(__ccgo_up(bp)) == uint32('_') || Xiswalnum(tls, **(**Ttre_char_t)(__ccgo_up(bp))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_WB) != 0 && (pos != 0 && **(**Ttre_char_t)(__ccgo_up(bp)) != uint32('\000') && BoolInt32(prev_c == uint32('_') || Xiswalnum(tls, prev_c) != 0) == BoolInt32(**(**Ttre_char_t)(__ccgo_up(bp)) == uint32('_') || Xiswalnum(tls, **(**Ttre_char_t)(__ccgo_up(bp))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_WB_NEG) != 0 && (pos == 0 || **(**Ttre_char_t)(__ccgo_up(bp)) == uint32('\000') || BoolInt32(prev_c == uint32('_') || Xiswalnum(tls, prev_c) != 0) != BoolInt32(**(**Ttre_char_t)(__ccgo_up(bp)) == uint32('_') || Xiswalnum(tls, **(**Ttre_char_t)(__ccgo_up(bp))) != 0))) { + trans_i += 56 + continue + } + (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Fstate = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate + i = 0 + for { + if !(i < num_tags) { + break + } + **(**Tregoff_t)(__ccgo_up((*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Ftags + uintptr(i)*8)) = int64(-int32(1)) + goto _8 + _8: + ; + i = i + 1 + } + tag_i = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Ftags + if tag_i != 0 { + for **(**int32)(__ccgo_up(tag_i)) >= 0 { + if **(**int32)(__ccgo_up(tag_i)) < num_tags { + **(**Tregoff_t)(__ccgo_up((*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Ftags + uintptr(**(**int32)(__ccgo_up(tag_i)))*8)) = pos + } + tag_i += 4 + } + } + if (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Fstate == (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ffinal { + match_eo = pos + new_match = int32(1) + i = 0 + for { + if !(i < num_tags) { + break + } + **(**Tregoff_t)(__ccgo_up(match_tags + uintptr(i)*8)) = **(**Tregoff_t)(__ccgo_up((*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Ftags + uintptr(i)*8)) + goto _9 + _9: + ; + i = i + 1 + } + } + (**(**Ttre_reach_pos_t)(__ccgo_up(reach_pos + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*16))).Fpos = pos + (**(**Ttre_reach_pos_t)(__ccgo_up(reach_pos + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*16))).Ftags = reach_next_i + 8 + reach_next_i += 16 + } + trans_i += 56 + } + (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Fstate = UintptrFromInt32(0) + } else { + if num_tags == 0 || reach_next_i == reach_next { + /* We have found a match. */ + break + } + } + /* Check for end of string. */ + if !(**(**Ttre_char_t)(__ccgo_up(bp)) != 0) { + break + } + prev_c = **(**Ttre_char_t)(__ccgo_up(bp)) + pos = pos + pos_add_next + v7 = int64(Xmbtowc(tls, bp, str_byte, uint64(MB_LEN_MAX))) + pos_add_next = v7 + if v7 <= 0 { + if pos_add_next < 0 { + ret = int32(REG_NOMATCH) + goto error_exit + } else { + pos_add_next = pos_add_next + 1 + } + } + str_byte = str_byte + uintptr(pos_add_next) + /* Swap `reach' and `reach_next'. */ + reach_i = reach + reach = reach_next + reach_next = reach_i + /* For each state in `reach', weed out states that don't fulfill the + minimal matching conditions. */ + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_minimals != 0 && new_match != 0 { + new_match = 0 + reach_next_i = reach_next + reach_i = reach + for { + if !((*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_i)).Fstate != 0) { + break + } + skip = 0 + i = 0 + for { + if !(**(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i)*4)) >= 0) { + break + } + end = **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i)*4)) + start = **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i+int32(1))*4)) + if end >= num_tags { + skip = int32(1) + break + } else { + if **(**Tregoff_t)(__ccgo_up((*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_i)).Ftags + uintptr(start)*8)) == **(**Tregoff_t)(__ccgo_up(match_tags + uintptr(start)*8)) && **(**Tregoff_t)(__ccgo_up((*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_i)).Ftags + uintptr(end)*8)) < **(**Tregoff_t)(__ccgo_up(match_tags + uintptr(end)*8)) { + skip = int32(1) + break + } + } + goto _12 + _12: + ; + i = i + int32(2) + } + if !(skip != 0) { + (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Fstate = (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_i)).Fstate + tmp_iptr = (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Ftags + (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Ftags = (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_i)).Ftags + (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_i)).Ftags = tmp_iptr + reach_next_i += 16 + } + goto _11 + _11: + ; + reach_i += 16 + } + (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Fstate = UintptrFromInt32(0) + /* Swap `reach' and `reach_next'. */ + reach_i = reach + reach = reach_next + reach_next = reach_i + } + /* For each state in `reach' see if there is a transition leaving with + the current input symbol to a state not yet in `reach_next', and + add the destination states to `reach_next'. */ + reach_next_i = reach_next + reach_i = reach + for { + if !((*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_i)).Fstate != 0) { + break + } + trans_i = (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_i)).Fstate + for { + if !((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate != 0) { + break + } + /* Does this transition match the input symbol? */ + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fcode_min <= prev_c && (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fcode_max >= prev_c { + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions != 0 && ((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_BOL) != 0 && (pos > 0 || reg_notbol != 0) && (prev_c != uint32('\n') || !(reg_newline != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_EOL) != 0 && (**(**Ttre_char_t)(__ccgo_up(bp)) != uint32('\000') || reg_noteol != 0) && (**(**Ttre_char_t)(__ccgo_up(bp)) != uint32('\n') || !(reg_newline != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_BOW) != 0 && (prev_c == uint32('_') || Xiswalnum(tls, prev_c) != 0 || !(**(**Ttre_char_t)(__ccgo_up(bp)) == uint32('_') || Xiswalnum(tls, **(**Ttre_char_t)(__ccgo_up(bp))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_EOW) != 0 && (!(prev_c == uint32('_') || Xiswalnum(tls, prev_c) != 0) || (**(**Ttre_char_t)(__ccgo_up(bp)) == uint32('_') || Xiswalnum(tls, **(**Ttre_char_t)(__ccgo_up(bp))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_WB) != 0 && (pos != 0 && **(**Ttre_char_t)(__ccgo_up(bp)) != uint32('\000') && BoolInt32(prev_c == uint32('_') || Xiswalnum(tls, prev_c) != 0) == BoolInt32(**(**Ttre_char_t)(__ccgo_up(bp)) == uint32('_') || Xiswalnum(tls, **(**Ttre_char_t)(__ccgo_up(bp))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_WB_NEG) != 0 && (pos == 0 || **(**Ttre_char_t)(__ccgo_up(bp)) == uint32('\000') || BoolInt32(prev_c == uint32('_') || Xiswalnum(tls, prev_c) != 0) != BoolInt32(**(**Ttre_char_t)(__ccgo_up(bp)) == uint32('_') || Xiswalnum(tls, **(**Ttre_char_t)(__ccgo_up(bp))) != 0)) || ((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_CHAR_CLASS) != 0 && !((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags&Int32FromInt32(REG_ICASE) != 0) && !(Xiswctype(tls, prev_c, *(*Ttre_ctype_t)(unsafe.Pointer(trans_i + 40))) != 0) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_CHAR_CLASS) != 0 && (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags&int32(REG_ICASE) != 0 && !(Xiswctype(tls, Xtowlower(tls, prev_c), *(*Ttre_ctype_t)(unsafe.Pointer(trans_i + 40))) != 0) && !(Xiswctype(tls, Xtowupper(tls, prev_c), *(*Ttre_ctype_t)(unsafe.Pointer(trans_i + 40))) != 0) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_CHAR_CLASS_NEG) != 0 && _tre_neg_char_classes_match(tls, (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fneg_classes, prev_c, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags&int32(REG_ICASE)) != 0)) { + goto _14 + } + /* Compute the tags after this transition. */ + i = 0 + for { + if !(i < num_tags) { + break + } + **(**Tregoff_t)(__ccgo_up(tmp_tags + uintptr(i)*8)) = **(**Tregoff_t)(__ccgo_up((*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_i)).Ftags + uintptr(i)*8)) + goto _15 + _15: + ; + i = i + 1 + } + tag_i = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Ftags + if tag_i != UintptrFromInt32(0) { + for **(**int32)(__ccgo_up(tag_i)) >= 0 { + if **(**int32)(__ccgo_up(tag_i)) < num_tags { + **(**Tregoff_t)(__ccgo_up(tmp_tags + uintptr(**(**int32)(__ccgo_up(tag_i)))*8)) = pos + } + tag_i += 4 + } + } + if (**(**Ttre_reach_pos_t)(__ccgo_up(reach_pos + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*16))).Fpos < pos { + /* Found an unvisited node. */ + (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Fstate = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate + tmp_iptr = (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Ftags + (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Ftags = tmp_tags + tmp_tags = tmp_iptr + (**(**Ttre_reach_pos_t)(__ccgo_up(reach_pos + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*16))).Fpos = pos + (**(**Ttre_reach_pos_t)(__ccgo_up(reach_pos + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*16))).Ftags = reach_next_i + 8 + if (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Fstate == (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ffinal && (match_eo == int64(-int32(1)) || num_tags > 0 && **(**Tregoff_t)(__ccgo_up((*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Ftags)) <= **(**Tregoff_t)(__ccgo_up(match_tags))) { + match_eo = pos + new_match = int32(1) + i = 0 + for { + if !(i < num_tags) { + break + } + **(**Tregoff_t)(__ccgo_up(match_tags + uintptr(i)*8)) = **(**Tregoff_t)(__ccgo_up((*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Ftags + uintptr(i)*8)) + goto _16 + _16: + ; + i = i + 1 + } + } + reach_next_i += 16 + } else { + /* Another path has also reached this state. We choose + the winner by examining the tag values for both + paths. */ + if _tre_tag_order(tls, num_tags, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions, tmp_tags, **(**uintptr)(__ccgo_up((**(**Ttre_reach_pos_t)(__ccgo_up(reach_pos + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*16))).Ftags))) != 0 { + /* The new path wins. */ + tmp_iptr = **(**uintptr)(__ccgo_up((**(**Ttre_reach_pos_t)(__ccgo_up(reach_pos + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*16))).Ftags)) + **(**uintptr)(__ccgo_up((**(**Ttre_reach_pos_t)(__ccgo_up(reach_pos + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*16))).Ftags)) = tmp_tags + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate == (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ffinal { + match_eo = pos + new_match = int32(1) + i = 0 + for { + if !(i < num_tags) { + break + } + **(**Tregoff_t)(__ccgo_up(match_tags + uintptr(i)*8)) = **(**Tregoff_t)(__ccgo_up(tmp_tags + uintptr(i)*8)) + goto _17 + _17: + ; + i = i + 1 + } + } + tmp_tags = tmp_iptr + } + } + } + goto _14 + _14: + ; + trans_i += 56 + } + goto _13 + _13: + ; + reach_i += 16 + } + (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Fstate = UintptrFromInt32(0) + } + **(**Tregoff_t)(__ccgo_up(match_end_ofs)) = match_eo + if match_eo >= 0 { + v18 = REG_OK + } else { + v18 = int32(REG_NOMATCH) + } + ret = v18 + goto error_exit +error_exit: + ; + Xfree(tls, buf) + return ret +} + +/*********************************************************************** + from tre-match-backtrack.c +***********************************************************************/ + +/* + This matcher is for regexps that use back referencing. Regexp matching + with back referencing is an NP-complete problem on the number of back + references. The easiest way to match them is to use a backtracking + routine which basically goes through all possible paths in the TNFA + and chooses the one which results in the best (leftmost and longest) + match. This can be spectacularly expensive and may run out of stack + space, but there really is no better known generic algorithm. Quoting + Henry Spencer from comp.compilers: + + + POSIX.2 REs require longest match, which is really exciting to + implement since the obsolete ("basic") variant also includes + \. I haven't found a better way of tackling this than doing + a preliminary match using a DFA (or simulation) on a modified RE + that just replicates subREs for \, and then doing a + backtracking match to determine whether the subRE matches were + right. This can be rather slow, but I console myself with the + thought that people who use \ deserve very slow execution. + (Pun unintentional but very appropriate.) + +*/ + +type Ttre_backtrack_item_t = struct { + Fpos Tregoff_t + Fstr_byte uintptr + Fstate uintptr + Fstate_id int32 + Fnext_c int32 + Ftags uintptr +} + +type Ttre_backtrack_t = uintptr + +type Ttre_backtrack_struct = struct { + Fitem Ttre_backtrack_item_t + Fprev uintptr + Fnext uintptr +} + +func _tre_tnfa_run_backtrack(tls *TLS, tnfa uintptr, string1 uintptr, match_tags uintptr, eflags int32, match_end_ofs uintptr) (r Treg_errcode_t) { + bp := tls.Alloc(16) + defer tls.Free(16) + var bt, empty_br_match, i, i1, i2, i3, i4, next_c_start, reg_newline, reg_notbol, reg_noteol, result, ret, v20 int32 + var bt_len, eo, match_eo, pos, pos_add_next, pos_start, so, v3 Tregoff_t + var mem Ttre_mem_t + var next_state, next_tags, pmatch, state, states_seen, str_byte, str_byte_start, tags, tmp, tmp1, trans_i, v6 uintptr + var prev_c Ttre_char_t + var s, s1, stack Ttre_backtrack_t + var _ /* next_c at bp+0 */ Ttre_char_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = bt, bt_len, empty_br_match, eo, i, i1, i2, i3, i4, match_eo, mem, next_c_start, next_state, next_tags, pmatch, pos, pos_add_next, pos_start, prev_c, reg_newline, reg_notbol, reg_noteol, result, ret, s, s1, so, stack, state, states_seen, str_byte, str_byte_start, tags, tmp, tmp1, trans_i, v20, v3, v6 + /* State variables required by GET_NEXT_WCHAR. */ + prev_c = uint32(0) + **(**Ttre_char_t)(__ccgo_up(bp)) = uint32(0) + str_byte = string1 + pos = 0 + pos_add_next = int64(1) + reg_notbol = eflags & int32(REG_NOTBOL) + reg_noteol = eflags & int32(REG_NOTEOL) + reg_newline = (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags & int32(REG_NEWLINE) + pos_start = int64(-int32(1)) + /* End offset of best match so far, or -1 if no match found yet. */ + match_eo = int64(-int32(1)) + tags = UintptrFromInt32(0) + states_seen = UintptrFromInt32(0) + /* Memory allocator to for allocating the backtracking stack. */ + mem = X__tre_mem_new_impl(tls, 0, UintptrFromInt32(0)) + pmatch = UintptrFromInt32(0) + if !(mem != 0) { + return int32(REG_ESPACE) + } + stack = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint64(56)) + if !(stack != 0) { + ret = int32(REG_ESPACE) + goto error_exit + } + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fprev = UintptrFromInt32(0) + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fnext = UintptrFromInt32(0) + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags != 0 { + tags = Xmalloc(tls, uint64(8)*Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags)) + if !(tags != 0) { + ret = int32(REG_ESPACE) + goto error_exit + } + } + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_submatches != 0 { + pmatch = Xmalloc(tls, uint64(16)*uint64((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_submatches)) + if !(pmatch != 0) { + ret = int32(REG_ESPACE) + goto error_exit + } + } + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states != 0 { + states_seen = Xmalloc(tls, uint64(4)*Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states)) + if !(states_seen != 0) { + ret = int32(REG_ESPACE) + goto error_exit + } + } + goto retry +retry: + ; + i = 0 + for { + if !(i < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags) { + break + } + **(**Tregoff_t)(__ccgo_up(tags + uintptr(i)*8)) = int64(-int32(1)) + if match_tags != 0 { + **(**Tregoff_t)(__ccgo_up(match_tags + uintptr(i)*8)) = int64(-int32(1)) + } + goto _1 + _1: + ; + i = i + 1 + } + i = 0 + for { + if !(i < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states) { + break + } + **(**int32)(__ccgo_up(states_seen + uintptr(i)*4)) = 0 + goto _2 + _2: + ; + i = i + 1 + } + state = UintptrFromInt32(0) + pos = pos_start + prev_c = **(**Ttre_char_t)(__ccgo_up(bp)) + pos = pos + pos_add_next + v3 = int64(Xmbtowc(tls, bp, str_byte, uint64(MB_LEN_MAX))) + pos_add_next = v3 + if v3 <= 0 { + if pos_add_next < 0 { + ret = int32(REG_NOMATCH) + goto error_exit + } else { + pos_add_next = pos_add_next + 1 + } + } + str_byte = str_byte + uintptr(pos_add_next) + pos_start = pos + next_c_start = Int32FromUint32(**(**Ttre_char_t)(__ccgo_up(bp))) + str_byte_start = str_byte + /* Handle initial states. */ + next_tags = UintptrFromInt32(0) + trans_i = (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Finitial + for { + if !((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate != 0) { + break + } + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions != 0 && ((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_BOL) != 0 && (pos > 0 || reg_notbol != 0) && (prev_c != uint32('\n') || !(reg_newline != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_EOL) != 0 && (**(**Ttre_char_t)(__ccgo_up(bp)) != uint32('\000') || reg_noteol != 0) && (**(**Ttre_char_t)(__ccgo_up(bp)) != uint32('\n') || !(reg_newline != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_BOW) != 0 && (prev_c == uint32('_') || Xiswalnum(tls, prev_c) != 0 || !(**(**Ttre_char_t)(__ccgo_up(bp)) == uint32('_') || Xiswalnum(tls, **(**Ttre_char_t)(__ccgo_up(bp))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_EOW) != 0 && (!(prev_c == uint32('_') || Xiswalnum(tls, prev_c) != 0) || (**(**Ttre_char_t)(__ccgo_up(bp)) == uint32('_') || Xiswalnum(tls, **(**Ttre_char_t)(__ccgo_up(bp))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_WB) != 0 && (pos != 0 && **(**Ttre_char_t)(__ccgo_up(bp)) != uint32('\000') && BoolInt32(prev_c == uint32('_') || Xiswalnum(tls, prev_c) != 0) == BoolInt32(**(**Ttre_char_t)(__ccgo_up(bp)) == uint32('_') || Xiswalnum(tls, **(**Ttre_char_t)(__ccgo_up(bp))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_WB_NEG) != 0 && (pos == 0 || **(**Ttre_char_t)(__ccgo_up(bp)) == uint32('\000') || BoolInt32(prev_c == uint32('_') || Xiswalnum(tls, prev_c) != 0) != BoolInt32(**(**Ttre_char_t)(__ccgo_up(bp)) == uint32('_') || Xiswalnum(tls, **(**Ttre_char_t)(__ccgo_up(bp))) != 0))) { + goto _4 + } + if state == UintptrFromInt32(0) { + /* Start from this state. */ + state = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate + next_tags = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Ftags + } else { + /* Backtrack to this state. */ + if !((*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fnext != 0) { + s = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint64(56)) + if !(s != 0) { + X__tre_mem_destroy(tls, mem) + if tags != 0 { + Xfree(tls, tags) + } + if pmatch != 0 { + Xfree(tls, pmatch) + } + if states_seen != 0 { + Xfree(tls, states_seen) + } + return int32(REG_ESPACE) + } + (*Ttre_backtrack_struct)(unsafe.Pointer(s)).Fprev = stack + (*Ttre_backtrack_struct)(unsafe.Pointer(s)).Fnext = UintptrFromInt32(0) + (*Ttre_backtrack_struct)(unsafe.Pointer(s)).Fitem.Ftags = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint64(8)*Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags)) + if !((*Ttre_backtrack_struct)(unsafe.Pointer(s)).Fitem.Ftags != 0) { + X__tre_mem_destroy(tls, mem) + if tags != 0 { + Xfree(tls, tags) + } + if pmatch != 0 { + Xfree(tls, pmatch) + } + if states_seen != 0 { + Xfree(tls, states_seen) + } + return int32(REG_ESPACE) + } + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fnext = s + stack = s + } else { + stack = (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fnext + } + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fpos = pos + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstr_byte = str_byte + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstate = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstate_id = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fnext_c = Int32FromUint32(**(**Ttre_char_t)(__ccgo_up(bp))) + i1 = 0 + for { + if !(i1 < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags) { + break + } + **(**Tregoff_t)(__ccgo_up((*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Ftags + uintptr(i1)*8)) = **(**Tregoff_t)(__ccgo_up(tags + uintptr(i1)*8)) + goto _5 + _5: + ; + i1 = i1 + 1 + } + tmp = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Ftags + if tmp != 0 { + for **(**int32)(__ccgo_up(tmp)) >= 0 { + v6 = tmp + tmp += 4 + **(**Tregoff_t)(__ccgo_up((*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Ftags + uintptr(**(**int32)(__ccgo_up(v6)))*8)) = pos + } + } + } + goto _4 + _4: + ; + trans_i += 56 + } + if next_tags != 0 { + for { + if !(**(**int32)(__ccgo_up(next_tags)) >= 0) { + break + } + **(**Tregoff_t)(__ccgo_up(tags + uintptr(**(**int32)(__ccgo_up(next_tags)))*8)) = pos + goto _7 + _7: + ; + next_tags += 4 + } + } + if state == UintptrFromInt32(0) { + goto backtrack + } +_9: + ; + if !(int32(1) != 0) { + goto _8 + } + if state == (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ffinal { + if match_eo < pos || match_eo == pos && match_tags != 0 && _tre_tag_order(tls, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions, tags, match_tags) != 0 { + /* This match wins the previous match. */ + match_eo = pos + if match_tags != 0 { + i2 = 0 + for { + if !(i2 < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags) { + break + } + **(**Tregoff_t)(__ccgo_up(match_tags + uintptr(i2)*8)) = **(**Tregoff_t)(__ccgo_up(tags + uintptr(i2)*8)) + goto _10 + _10: + ; + i2 = i2 + 1 + } + } + } + /* Our TNFAs never have transitions leaving from the final state, + so we jump right to backtracking. */ + goto backtrack + } + /* Go to the next character in the input string. */ + empty_br_match = 0 + trans_i = state + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate != 0 && (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_BACKREF) != 0 { + bt = *(*int32)(unsafe.Pointer(&(*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fu)) + /* Get the substring we need to match against. Remember to + turn off REG_NOSUB temporarily. */ + _tre_fill_pmatch(tls, Uint64FromInt32(bt+int32(1)), pmatch, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags & ^Int32FromInt32(REG_NOSUB), tnfa, tags, pos) + so = (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(bt)*16))).Frm_so + eo = (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(bt)*16))).Frm_eo + bt_len = eo - so + result = Xstrncmp(tls, string1+uintptr(so), str_byte-uintptr(1), Uint64FromInt64(bt_len)) + if result == 0 { + /* Back reference matched. Check for infinite loop. */ + if bt_len == 0 { + empty_br_match = int32(1) + } + if empty_br_match != 0 && **(**int32)(__ccgo_up(states_seen + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*4)) != 0 { + goto backtrack + } + **(**int32)(__ccgo_up(states_seen + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*4)) = empty_br_match + /* Advance in input string and resync `prev_c', `next_c' + and pos. */ + str_byte = str_byte + uintptr(bt_len-int64(1)) + pos = pos + (bt_len - int64(1)) + prev_c = **(**Ttre_char_t)(__ccgo_up(bp)) + pos = pos + pos_add_next + v3 = int64(Xmbtowc(tls, bp, str_byte, uint64(MB_LEN_MAX))) + pos_add_next = v3 + if v3 <= 0 { + if pos_add_next < 0 { + ret = int32(REG_NOMATCH) + goto error_exit + } else { + pos_add_next = pos_add_next + 1 + } + } + str_byte = str_byte + uintptr(pos_add_next) + } else { + goto backtrack + } + } else { + /* Check for end of string. */ + if **(**Ttre_char_t)(__ccgo_up(bp)) == uint32('\000') { + goto backtrack + } + /* Read the next character. */ + prev_c = **(**Ttre_char_t)(__ccgo_up(bp)) + pos = pos + pos_add_next + v3 = int64(Xmbtowc(tls, bp, str_byte, uint64(MB_LEN_MAX))) + pos_add_next = v3 + if v3 <= 0 { + if pos_add_next < 0 { + ret = int32(REG_NOMATCH) + goto error_exit + } else { + pos_add_next = pos_add_next + 1 + } + } + str_byte = str_byte + uintptr(pos_add_next) + } + next_state = UintptrFromInt32(0) + trans_i = state + for { + if !((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate != 0) { + break + } + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fcode_min <= prev_c && (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fcode_max >= prev_c { + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions != 0 && ((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_BOL) != 0 && (pos > 0 || reg_notbol != 0) && (prev_c != uint32('\n') || !(reg_newline != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_EOL) != 0 && (**(**Ttre_char_t)(__ccgo_up(bp)) != uint32('\000') || reg_noteol != 0) && (**(**Ttre_char_t)(__ccgo_up(bp)) != uint32('\n') || !(reg_newline != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_BOW) != 0 && (prev_c == uint32('_') || Xiswalnum(tls, prev_c) != 0 || !(**(**Ttre_char_t)(__ccgo_up(bp)) == uint32('_') || Xiswalnum(tls, **(**Ttre_char_t)(__ccgo_up(bp))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_EOW) != 0 && (!(prev_c == uint32('_') || Xiswalnum(tls, prev_c) != 0) || (**(**Ttre_char_t)(__ccgo_up(bp)) == uint32('_') || Xiswalnum(tls, **(**Ttre_char_t)(__ccgo_up(bp))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_WB) != 0 && (pos != 0 && **(**Ttre_char_t)(__ccgo_up(bp)) != uint32('\000') && BoolInt32(prev_c == uint32('_') || Xiswalnum(tls, prev_c) != 0) == BoolInt32(**(**Ttre_char_t)(__ccgo_up(bp)) == uint32('_') || Xiswalnum(tls, **(**Ttre_char_t)(__ccgo_up(bp))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_WB_NEG) != 0 && (pos == 0 || **(**Ttre_char_t)(__ccgo_up(bp)) == uint32('\000') || BoolInt32(prev_c == uint32('_') || Xiswalnum(tls, prev_c) != 0) != BoolInt32(**(**Ttre_char_t)(__ccgo_up(bp)) == uint32('_') || Xiswalnum(tls, **(**Ttre_char_t)(__ccgo_up(bp))) != 0)) || ((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_CHAR_CLASS) != 0 && !((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags&Int32FromInt32(REG_ICASE) != 0) && !(Xiswctype(tls, prev_c, *(*Ttre_ctype_t)(unsafe.Pointer(trans_i + 40))) != 0) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_CHAR_CLASS) != 0 && (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags&int32(REG_ICASE) != 0 && !(Xiswctype(tls, Xtowlower(tls, prev_c), *(*Ttre_ctype_t)(unsafe.Pointer(trans_i + 40))) != 0) && !(Xiswctype(tls, Xtowupper(tls, prev_c), *(*Ttre_ctype_t)(unsafe.Pointer(trans_i + 40))) != 0) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_CHAR_CLASS_NEG) != 0 && _tre_neg_char_classes_match(tls, (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fneg_classes, prev_c, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags&int32(REG_ICASE)) != 0)) { + goto _13 + } + if next_state == UintptrFromInt32(0) { + /* First matching transition. */ + next_state = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate + next_tags = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Ftags + } else { + /* Second matching transition. We may need to backtrack here + to take this transition instead of the first one, so we + push this transition in the backtracking stack so we can + jump back here if needed. */ + if !((*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fnext != 0) { + s1 = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint64(56)) + if !(s1 != 0) { + X__tre_mem_destroy(tls, mem) + if tags != 0 { + Xfree(tls, tags) + } + if pmatch != 0 { + Xfree(tls, pmatch) + } + if states_seen != 0 { + Xfree(tls, states_seen) + } + return int32(REG_ESPACE) + } + (*Ttre_backtrack_struct)(unsafe.Pointer(s1)).Fprev = stack + (*Ttre_backtrack_struct)(unsafe.Pointer(s1)).Fnext = UintptrFromInt32(0) + (*Ttre_backtrack_struct)(unsafe.Pointer(s1)).Fitem.Ftags = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint64(8)*Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags)) + if !((*Ttre_backtrack_struct)(unsafe.Pointer(s1)).Fitem.Ftags != 0) { + X__tre_mem_destroy(tls, mem) + if tags != 0 { + Xfree(tls, tags) + } + if pmatch != 0 { + Xfree(tls, pmatch) + } + if states_seen != 0 { + Xfree(tls, states_seen) + } + return int32(REG_ESPACE) + } + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fnext = s1 + stack = s1 + } else { + stack = (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fnext + } + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fpos = pos + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstr_byte = str_byte + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstate = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstate_id = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fnext_c = Int32FromUint32(**(**Ttre_char_t)(__ccgo_up(bp))) + i3 = 0 + for { + if !(i3 < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags) { + break + } + **(**Tregoff_t)(__ccgo_up((*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Ftags + uintptr(i3)*8)) = **(**Tregoff_t)(__ccgo_up(tags + uintptr(i3)*8)) + goto _14 + _14: + ; + i3 = i3 + 1 + } + tmp1 = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Ftags + for { + if !(tmp1 != 0 && **(**int32)(__ccgo_up(tmp1)) >= 0) { + break + } + **(**Tregoff_t)(__ccgo_up((*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Ftags + uintptr(**(**int32)(__ccgo_up(tmp1)))*8)) = pos + goto _15 + _15: + ; + tmp1 += 4 + } + } + } + goto _13 + _13: + ; + trans_i += 56 + } + if !(next_state != UintptrFromInt32(0)) { + goto _16 + } + /* Matching transitions were found. Take the first one. */ + state = next_state + /* Update the tag values. */ + if next_tags != 0 { + for **(**int32)(__ccgo_up(next_tags)) >= 0 { + v6 = next_tags + next_tags += 4 + **(**Tregoff_t)(__ccgo_up(tags + uintptr(**(**int32)(__ccgo_up(v6)))*8)) = pos + } + } + goto _17 +_16: + ; + goto backtrack +backtrack: + ; + /* A matching transition was not found. Try to backtrack. */ + if (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fprev != 0 { + if (*Ttre_tnfa_transition_t)(unsafe.Pointer((*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstate)).Fassertions&int32(ASSERT_BACKREF) != 0 { + **(**int32)(__ccgo_up(states_seen + uintptr((*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstate_id)*4)) = 0 + } + pos = (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fpos + str_byte = (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstr_byte + state = (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstate + **(**Ttre_char_t)(__ccgo_up(bp)) = Uint32FromInt32((*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fnext_c) + i4 = 0 + for { + if !(i4 < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags) { + break + } + **(**Tregoff_t)(__ccgo_up(tags + uintptr(i4)*8)) = **(**Tregoff_t)(__ccgo_up((*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Ftags + uintptr(i4)*8)) + goto _19 + _19: + ; + i4 = i4 + 1 + } + stack = (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fprev + } else { + if match_eo < 0 { + /* Try starting from a later position in the input string. */ + /* Check for end of string. */ + if **(**Ttre_char_t)(__ccgo_up(bp)) == uint32('\000') { + goto _8 + } + **(**Ttre_char_t)(__ccgo_up(bp)) = Uint32FromInt32(next_c_start) + str_byte = str_byte_start + goto retry + } else { + goto _8 + } + } +_17: + ; + goto _9 +_8: + ; + if match_eo >= 0 { + v20 = REG_OK + } else { + v20 = int32(REG_NOMATCH) + } + ret = v20 + **(**Tregoff_t)(__ccgo_up(match_end_ofs)) = match_eo + goto error_exit +error_exit: + ; + X__tre_mem_destroy(tls, mem) + if tags != 0 { + Xfree(tls, tags) + } + if pmatch != 0 { + Xfree(tls, pmatch) + } + if states_seen != 0 { + Xfree(tls, states_seen) + } + return ret +} + +/*********************************************************************** + from regexec.c +***********************************************************************/ + +// C documentation +// +// /* Fills the POSIX.2 regmatch_t array according to the TNFA tag and match +// endpoint values. */ +func _tre_fill_pmatch(tls *TLS, nmatch Tsize_t, pmatch uintptr, cflags int32, tnfa uintptr, tags uintptr, match_eo Tregoff_t) { + var i, j uint32 + var parents, submatch_data uintptr + var v1 Tregoff_t + _, _, _, _, _ = i, j, parents, submatch_data, v1 + i = uint32(0) + if match_eo >= 0 && !(cflags&Int32FromInt32(REG_NOSUB) != 0) { + /* Construct submatch offsets from the tags. */ + submatch_data = (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fsubmatch_data + for i < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_submatches && uint64(i) < nmatch { + if (**(**Ttre_submatch_data_t)(__ccgo_up(submatch_data + uintptr(i)*16))).Fso_tag == (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fend_tag { + (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_so = match_eo + } else { + (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_so = **(**Tregoff_t)(__ccgo_up(tags + uintptr((**(**Ttre_submatch_data_t)(__ccgo_up(submatch_data + uintptr(i)*16))).Fso_tag)*8)) + } + if (**(**Ttre_submatch_data_t)(__ccgo_up(submatch_data + uintptr(i)*16))).Feo_tag == (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fend_tag { + (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_eo = match_eo + } else { + (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_eo = **(**Tregoff_t)(__ccgo_up(tags + uintptr((**(**Ttre_submatch_data_t)(__ccgo_up(submatch_data + uintptr(i)*16))).Feo_tag)*8)) + } + /* If either of the endpoints were not used, this submatch + was not part of the match. */ + if (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_so == int64(-int32(1)) || (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_eo == int64(-int32(1)) { + v1 = int64(-Int32FromInt32(1)) + (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_eo = v1 + (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_so = v1 + } + i = i + 1 + } + /* Reset all submatches that are not within all of their parent + submatches. */ + i = uint32(0) + for i < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_submatches && uint64(i) < nmatch { + if (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_eo == int64(-int32(1)) { + } + parents = (**(**Ttre_submatch_data_t)(__ccgo_up(submatch_data + uintptr(i)*16))).Fparents + if parents != UintptrFromInt32(0) { + j = uint32(0) + for { + if !(**(**int32)(__ccgo_up(parents + uintptr(j)*4)) >= 0) { + break + } + if (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_so < (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(**(**int32)(__ccgo_up(parents + uintptr(j)*4)))*16))).Frm_so || (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_eo > (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(**(**int32)(__ccgo_up(parents + uintptr(j)*4)))*16))).Frm_eo { + v1 = int64(-Int32FromInt32(1)) + (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_eo = v1 + (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_so = v1 + } + goto _2 + _2: + ; + j = j + 1 + } + } + i = i + 1 + } + } + for uint64(i) < nmatch { + (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_so = int64(-int32(1)) + (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_eo = int64(-int32(1)) + i = i + 1 + } +} + +/* + Wrapper functions for POSIX compatible regexp matching. +*/ + +func Xregexec(tls *TLS, preg uintptr, string1 uintptr, nmatch Tsize_t, pmatch uintptr, eflags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v preg=%v string1=%v nmatch=%v pmatch=%v eflags=%v, (%v:)", tls, preg, string1, nmatch, pmatch, eflags, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var status Treg_errcode_t + var tags, tnfa uintptr + var _ /* eo at bp+0 */ Tregoff_t + _, _, _ = status, tags, tnfa + tnfa = (*Tregex_t)(unsafe.Pointer(preg)).F__opaque + tags = UintptrFromInt32(0) + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags&int32(REG_NOSUB) != 0 { + nmatch = uint64(0) + } + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags > 0 && nmatch > uint64(0) { + tags = Xmalloc(tls, uint64(8)*Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags)) + if tags == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + } + /* Dispatch to the appropriate matcher. */ + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fhave_backrefs != 0 { + /* The regex has back references, use the backtracking matcher. */ + status = _tre_tnfa_run_backtrack(tls, tnfa, string1, tags, eflags, bp) + } else { + /* Exact matching, no back references, use the parallel matcher. */ + status = _tre_tnfa_run_parallel(tls, tnfa, string1, tags, eflags, bp) + } + if status == REG_OK { + /* A match was found, so fill the submatch registers. */ + _tre_fill_pmatch(tls, nmatch, pmatch, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags, tnfa, tags, **(**Tregoff_t)(__ccgo_up(bp))) + } + if tags != 0 { + Xfree(tls, tags) + } + return status +} + +/* + This memory allocator is for allocating small memory blocks efficiently + in terms of memory overhead and execution speed. The allocated blocks + cannot be freed individually, only all at once. There can be multiple + allocators, though. +*/ + +// C documentation +// +// /* Returns a new memory allocator or NULL if out of memory. */ +func X__tre_mem_new_impl(tls *TLS, provided int32, provided_block uintptr) (r Ttre_mem_t) { + if __ccgo_strace { + trc("tls=%v provided=%v provided_block=%v, (%v:)", tls, provided, provided_block, origin(2)) + defer func() { trc("-> %v", r) }() + } + var mem Ttre_mem_t + _ = mem + if provided != 0 { + mem = provided_block + Xmemset(tls, mem, 0, uint64(48)) + } else { + mem = Xcalloc(tls, uint64(1), uint64(48)) + } + if mem == UintptrFromInt32(0) { + return UintptrFromInt32(0) + } + return mem +} + +// C documentation +// +// /* Frees the memory allocator and all memory allocated with it. */ +func X__tre_mem_destroy(tls *TLS, mem Ttre_mem_t) { + if __ccgo_strace { + trc("tls=%v mem=%v, (%v:)", tls, mem, origin(2)) + } + var l, tmp uintptr + _, _ = l, tmp + l = (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fblocks + for l != UintptrFromInt32(0) { + Xfree(tls, (*Ttre_list_t)(unsafe.Pointer(l)).Fdata) + tmp = (*Ttre_list_t)(unsafe.Pointer(l)).Fnext + Xfree(tls, l) + l = tmp + } + Xfree(tls, mem) +} + +// C documentation +// +// /* Allocates a block of `size' bytes from `mem'. Returns a pointer to the +// allocated block or NULL if an underlying malloc() failed. */ +func X__tre_mem_alloc_impl(tls *TLS, mem Ttre_mem_t, provided int32, provided_block uintptr, zero int32, size Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v mem=%v provided=%v provided_block=%v zero=%v size=%v, (%v:)", tls, mem, provided, provided_block, zero, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + var block_size int32 + var l, ptr uintptr + var v1 uint64 + _, _, _, _ = block_size, l, ptr, v1 + if (*Ttre_mem_struct)(unsafe.Pointer(mem)).Ffailed != 0 { + return UintptrFromInt32(0) + } + if (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fn < size { + if provided != 0 { + if provided_block == UintptrFromInt32(0) { + (*Ttre_mem_struct)(unsafe.Pointer(mem)).Ffailed = int32(1) + return UintptrFromInt32(0) + } + (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fptr = provided_block + (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fn = uint64(TRE_MEM_BLOCK_SIZE) + } else { + if size*uint64(8) > uint64(TRE_MEM_BLOCK_SIZE) { + block_size = Int32FromUint64(size * uint64(8)) + } else { + block_size = int32(TRE_MEM_BLOCK_SIZE) + } + l = Xmalloc(tls, uint64(16)) + if l == UintptrFromInt32(0) { + (*Ttre_mem_struct)(unsafe.Pointer(mem)).Ffailed = int32(1) + return UintptrFromInt32(0) + } + (*Ttre_list_t)(unsafe.Pointer(l)).Fdata = Xmalloc(tls, Uint64FromInt32(block_size)) + if (*Ttre_list_t)(unsafe.Pointer(l)).Fdata == UintptrFromInt32(0) { + Xfree(tls, l) + (*Ttre_mem_struct)(unsafe.Pointer(mem)).Ffailed = int32(1) + return UintptrFromInt32(0) + } + (*Ttre_list_t)(unsafe.Pointer(l)).Fnext = UintptrFromInt32(0) + if (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fcurrent != UintptrFromInt32(0) { + (*Ttre_list_t)(unsafe.Pointer((*Ttre_mem_struct)(unsafe.Pointer(mem)).Fcurrent)).Fnext = l + } + if (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fblocks == UintptrFromInt32(0) { + (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fblocks = l + } + (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fcurrent = l + (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fptr = (*Ttre_list_t)(unsafe.Pointer(l)).Fdata + (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fn = Uint64FromInt32(block_size) + } + } + /* Make sure the next pointer will be aligned. */ + if (Uint64FromInt64(int64((*Ttre_mem_struct)(unsafe.Pointer(mem)).Fptr))+size)%uint64(8) != 0 { + v1 = uint64(8) - (Uint64FromInt64(int64((*Ttre_mem_struct)(unsafe.Pointer(mem)).Fptr))+size)%uint64(8) + } else { + v1 = uint64(0) + } + size = size + v1 + /* Allocate from current block. */ + ptr = (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fptr + **(**uintptr)(__ccgo_up(mem + 16)) += uintptr(size) + **(**Tsize_t)(__ccgo_up(mem + 24)) -= size + /* Set to zero if needed. */ + if zero != 0 { + Xmemset(tls, ptr, 0, size) + } + return ptr +} + +const MAXSIZE = 1 +const MINSIZE = 8 + +type TACTION = int32 + +const _FIND = 0 +const _ENTER = 1 + +type TVISIT = int32 + +const _preorder = 0 +const _postorder = 1 +const _endorder = 2 +const _leaf = 3 + +type TENTRY = struct { + Fkey uintptr + Fdata uintptr +} + +type Tentry = TENTRY + +type Thsearch_data = struct { + F__tab uintptr + F__unused1 uint32 + F__unused2 uint32 +} + +type Tqelem = struct { + Fq_forw uintptr + Fq_back uintptr + Fq_data [1]uint8 +} + +/* +open addressing hash table with 2^n table size +quadratic probing is used in case of hash collision +tab indices and hash are size_t +after resize fails with ENOMEM the state of tab is still usable + +with the posix api items cannot be iterated and length cannot be queried +*/ + +type t__tab = struct { + Fentries uintptr + Fmask Tsize_t + Fused Tsize_t +} + +var _htab Thsearch_data + +func _keyhash(tls *TLS, k uintptr) (r Tsize_t) { + var h Tsize_t + var p, v1 uintptr + _, _, _ = h, p, v1 + p = k + h = uint64(0) + for **(**uint8)(__ccgo_up(p)) != 0 { + v1 = p + p = p + 1 + h = uint64(31)*h + uint64(**(**uint8)(__ccgo_up(v1))) + } + return h +} + +func _resize(tls *TLS, nel Tsize_t, htab uintptr) (r int32) { + var e, newe, oldtab uintptr + var i, j, newsize, oldsize, v4 Tsize_t + _, _, _, _, _, _, _, _ = e, i, j, newe, newsize, oldsize, oldtab, v4 + oldsize = (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fmask + uint64(1) + oldtab = (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fentries + if nel > Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(2)+Uint64FromInt32(1) { + nel = Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(2) + Uint64FromInt32(1) + } + newsize = uint64(MINSIZE) + for { + if !(newsize < nel) { + break + } + goto _1 + _1: + ; + newsize = newsize * uint64(2) + } + (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fentries = Xcalloc(tls, newsize, uint64(16)) + if !((*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fentries != 0) { + (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fentries = oldtab + return 0 + } + (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fmask = newsize - uint64(1) + if !(oldtab != 0) { + return int32(1) + } + e = oldtab + for { + if !(e < oldtab+uintptr(oldsize)*16) { + break + } + if (*TENTRY)(unsafe.Pointer(e)).Fkey != 0 { + i = _keyhash(tls, (*TENTRY)(unsafe.Pointer(e)).Fkey) + j = Uint64FromInt32(1) + for { + newe = (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fentries + uintptr(i&(*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fmask)*16 + if !((*TENTRY)(unsafe.Pointer(newe)).Fkey != 0) { + break + } + goto _3 + _3: + ; + v4 = j + j = j + 1 + i = i + v4 + } + **(**TENTRY)(__ccgo_up(newe)) = **(**TENTRY)(__ccgo_up(e)) + } + goto _2 + _2: + ; + e += 16 + } + Xfree(tls, oldtab) + return int32(1) +} + +func Xhcreate(tls *TLS, nel Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v nel=%v, (%v:)", tls, nel, origin(2)) + defer func() { trc("-> %v", r) }() + } + return ___hcreate_r(tls, nel, uintptr(unsafe.Pointer(&_htab))) +} + +func Xhdestroy(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + ___hdestroy_r(tls, uintptr(unsafe.Pointer(&_htab))) +} + +func _lookup(tls *TLS, key uintptr, hash Tsize_t, htab uintptr) (r uintptr) { + var e uintptr + var i, j, v2 Tsize_t + _, _, _, _ = e, i, j, v2 + i = hash + j = Uint64FromInt32(1) + for { + e = (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fentries + uintptr(i&(*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fmask)*16 + if !((*TENTRY)(unsafe.Pointer(e)).Fkey != 0) || Xstrcmp(tls, (*TENTRY)(unsafe.Pointer(e)).Fkey, key) == 0 { + break + } + goto _1 + _1: + ; + v2 = j + j = j + 1 + i = i + v2 + } + return e +} + +func Xhsearch(tls *TLS, item TENTRY, action TACTION) (r uintptr) { + if __ccgo_strace { + trc("tls=%v item=%v action=%v, (%v:)", tls, item, action, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* e at bp+0 */ uintptr + ___hsearch_r(tls, item, action, bp, uintptr(unsafe.Pointer(&_htab))) + return **(**uintptr)(__ccgo_up(bp)) +} + +func ___hcreate_r(tls *TLS, nel Tsize_t, htab uintptr) (r1 int32) { + var r int32 + _ = r + (*Thsearch_data)(unsafe.Pointer(htab)).F__tab = Xcalloc(tls, uint64(1), uint64(24)) + if !((*Thsearch_data)(unsafe.Pointer(htab)).F__tab != 0) { + return 0 + } + r = _resize(tls, nel, htab) + if r == 0 { + Xfree(tls, (*Thsearch_data)(unsafe.Pointer(htab)).F__tab) + (*Thsearch_data)(unsafe.Pointer(htab)).F__tab = uintptr(0) + } + return r +} + +func ___hdestroy_r(tls *TLS, htab uintptr) { + if (*Thsearch_data)(unsafe.Pointer(htab)).F__tab != 0 { + Xfree(tls, (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fentries) + } + Xfree(tls, (*Thsearch_data)(unsafe.Pointer(htab)).F__tab) + (*Thsearch_data)(unsafe.Pointer(htab)).F__tab = uintptr(0) +} + +func ___hsearch_r(tls *TLS, item TENTRY, action TACTION, retval uintptr, htab uintptr) (r int32) { + var e, v2 uintptr + var hash, v1 Tsize_t + _, _, _, _ = e, hash, v1, v2 + hash = _keyhash(tls, item.Fkey) + e = _lookup(tls, item.Fkey, hash, htab) + if (*TENTRY)(unsafe.Pointer(e)).Fkey != 0 { + **(**uintptr)(__ccgo_up(retval)) = e + return int32(1) + } + if action == int32(_FIND) { + **(**uintptr)(__ccgo_up(retval)) = uintptr(0) + return 0 + } + **(**TENTRY)(__ccgo_up(e)) = item + v2 = (*Thsearch_data)(unsafe.Pointer(htab)).F__tab + 16 + *(*Tsize_t)(unsafe.Pointer(v2)) = *(*Tsize_t)(unsafe.Pointer(v2)) + 1 + v1 = *(*Tsize_t)(unsafe.Pointer(v2)) + if v1 > (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fmask-(*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fmask/uint64(4) { + if !(_resize(tls, uint64(2)*(*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fused, htab) != 0) { + (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fused = (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fused - 1 + (*TENTRY)(unsafe.Pointer(e)).Fkey = uintptr(0) + **(**uintptr)(__ccgo_up(retval)) = uintptr(0) + return 0 + } + e = _lookup(tls, item.Fkey, hash, htab) + } + **(**uintptr)(__ccgo_up(retval)) = e + return int32(1) +} + +type Tnode = struct { + Fnext uintptr + Fprev uintptr +} + +func Xinsque(tls *TLS, element uintptr, pred uintptr) { + if __ccgo_strace { + trc("tls=%v element=%v pred=%v, (%v:)", tls, element, pred, origin(2)) + } + var e, p, v1 uintptr + _, _, _ = e, p, v1 + e = element + p = pred + if !(p != 0) { + v1 = UintptrFromInt32(0) + (*Tnode)(unsafe.Pointer(e)).Fprev = v1 + (*Tnode)(unsafe.Pointer(e)).Fnext = v1 + return + } + (*Tnode)(unsafe.Pointer(e)).Fnext = (*Tnode)(unsafe.Pointer(p)).Fnext + (*Tnode)(unsafe.Pointer(e)).Fprev = p + (*Tnode)(unsafe.Pointer(p)).Fnext = e + if (*Tnode)(unsafe.Pointer(e)).Fnext != 0 { + (*Tnode)(unsafe.Pointer((*Tnode)(unsafe.Pointer(e)).Fnext)).Fprev = e + } +} + +func Xremque(tls *TLS, element uintptr) { + if __ccgo_strace { + trc("tls=%v element=%v, (%v:)", tls, element, origin(2)) + } + var e uintptr + _ = e + e = element + if (*Tnode)(unsafe.Pointer(e)).Fnext != 0 { + (*Tnode)(unsafe.Pointer((*Tnode)(unsafe.Pointer(e)).Fnext)).Fprev = (*Tnode)(unsafe.Pointer(e)).Fprev + } + if (*Tnode)(unsafe.Pointer(e)).Fprev != 0 { + (*Tnode)(unsafe.Pointer((*Tnode)(unsafe.Pointer(e)).Fprev)).Fnext = (*Tnode)(unsafe.Pointer(e)).Fnext + } +} + +type t__ccgo_fp__Xlsearch_4 = func(*TLS, uintptr, uintptr) int32 + +func Xlsearch(tls *TLS, key uintptr, base uintptr, nelp uintptr, width Tsize_t, __ccgo_fp_compar uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v base=%v nelp=%v width=%v __ccgo_fp_compar=%v, (%v:)", tls, key, base, nelp, width, __ccgo_fp_compar, origin(2)) + defer func() { trc("-> %v", r) }() + } + var i, n Tsize_t + var p uintptr + var v1 t__predefined_size_t + _, _, _, _ = i, n, p, v1 + defer func() {}() + v1 = width + p = base + n = **(**Tsize_t)(__ccgo_up(nelp)) + i = uint64(0) + for { + if !(i < n) { + break + } + if (*(*func(*TLS, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_compar})))(tls, key, p+uintptr(i)*uintptr(v1)) == 0 { + return p + uintptr(i)*uintptr(v1) + } + goto _2 + _2: + ; + i = i + 1 + } + **(**Tsize_t)(__ccgo_up(nelp)) = n + uint64(1) + return Xmemcpy(tls, p+uintptr(n)*uintptr(v1), key, width) +} + +type t__ccgo_fp__Xlfind_4 = func(*TLS, uintptr, uintptr) int32 + +func Xlfind(tls *TLS, key uintptr, base uintptr, nelp uintptr, width Tsize_t, __ccgo_fp_compar uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v base=%v nelp=%v width=%v __ccgo_fp_compar=%v, (%v:)", tls, key, base, nelp, width, __ccgo_fp_compar, origin(2)) + defer func() { trc("-> %v", r) }() + } + var i, n Tsize_t + var p uintptr + var v1 t__predefined_size_t + _, _, _, _ = i, n, p, v1 + defer func() {}() + v1 = width + p = base + n = **(**Tsize_t)(__ccgo_up(nelp)) + i = uint64(0) + for { + if !(i < n) { + break + } + if (*(*func(*TLS, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_compar})))(tls, key, p+uintptr(i)*uintptr(v1)) == 0 { + return p + uintptr(i)*uintptr(v1) + } + goto _2 + _2: + ; + i = i + 1 + } + return uintptr(0) +} + +const MAXH = 0 + +type Tnode1 = struct { + Fkey uintptr + Fa [2]uintptr + Fh int32 +} + +type t__ccgo_fp__Xtdelete_2 = func(*TLS, uintptr, uintptr) int32 + +func Xtdelete(tls *TLS, key uintptr, rootp uintptr, __ccgo_fp_cmp uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v rootp=%v __ccgo_fp_cmp=%v, (%v:)", tls, key, rootp, __ccgo_fp_cmp, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a [97]uintptr + var c, i, v1 int32 + var child, deleted, n, parent uintptr + _, _, _, _, _, _, _, _ = a, c, child, deleted, i, n, parent, v1 + if !(rootp != 0) { + return uintptr(0) + } + n = **(**uintptr)(__ccgo_up(rootp)) + i = 0 + /* *a[0] is an arbitrary non-null pointer that is returned when + the root node is deleted. */ + v1 = i + i = i + 1 + a[v1] = rootp + v1 = i + i = i + 1 + a[v1] = rootp + for { + if !(n != 0) { + return uintptr(0) + } + c = (*(*func(*TLS, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cmp})))(tls, key, (*Tnode1)(unsafe.Pointer(n)).Fkey) + if !(c != 0) { + break + } + v1 = i + i = i + 1 + a[v1] = n + 8 + BoolUintptr(c > 0)*8 + n = **(**uintptr)(__ccgo_up(n + 8 + BoolUintptr(c > 0)*8)) + goto _3 + _3: + } + parent = **(**uintptr)(__ccgo_up(a[i-int32(2)])) + if **(**uintptr)(__ccgo_up(n + 8)) != 0 { + /* free the preceding node instead of the deleted one. */ + deleted = n + v1 = i + i = i + 1 + a[v1] = n + 8 + n = **(**uintptr)(__ccgo_up(n + 8)) + for **(**uintptr)(__ccgo_up(n + 8 + 1*8)) != 0 { + v1 = i + i = i + 1 + a[v1] = n + 8 + 1*8 + n = **(**uintptr)(__ccgo_up(n + 8 + 1*8)) + } + (*Tnode1)(unsafe.Pointer(deleted)).Fkey = (*Tnode1)(unsafe.Pointer(n)).Fkey + child = **(**uintptr)(__ccgo_up(n + 8)) + } else { + child = **(**uintptr)(__ccgo_up(n + 8 + 1*8)) + } + /* freed node has at most one child, move it up and rebalance. */ + Xfree(tls, n) + i = i - 1 + v1 = i + **(**uintptr)(__ccgo_up(a[v1])) = child + for { + i = i - 1 + v1 = i + if !(v1 != 0 && X__tsearch_balance(tls, a[i]) != 0) { + break + } + } + return parent +} + +type t__ccgo_fp__Xtdestroy_1 = func(*TLS, uintptr) + +func Xtdestroy(tls *TLS, root uintptr, __ccgo_fp_freekey uintptr) { + if __ccgo_strace { + trc("tls=%v root=%v __ccgo_fp_freekey=%v, (%v:)", tls, root, __ccgo_fp_freekey, origin(2)) + } + var r uintptr + _ = r + r = root + if r == uintptr(0) { + return + } + Xtdestroy(tls, **(**uintptr)(__ccgo_up(r + 8)), __ccgo_fp_freekey) + Xtdestroy(tls, **(**uintptr)(__ccgo_up(r + 8 + 1*8)), __ccgo_fp_freekey) + if __ccgo_fp_freekey != 0 { + (*(*func(*TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_freekey})))(tls, (*Tnode1)(unsafe.Pointer(r)).Fkey) + } + Xfree(tls, r) +} + +type t__ccgo_fp__Xtfind_2 = func(*TLS, uintptr, uintptr) int32 + +func Xtfind(tls *TLS, key uintptr, rootp uintptr, __ccgo_fp_cmp uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v rootp=%v __ccgo_fp_cmp=%v, (%v:)", tls, key, rootp, __ccgo_fp_cmp, origin(2)) + defer func() { trc("-> %v", r) }() + } + var c int32 + var n uintptr + _, _ = c, n + if !(rootp != 0) { + return uintptr(0) + } + n = **(**uintptr)(__ccgo_up(rootp)) + for { + if !(n != 0) { + break + } + c = (*(*func(*TLS, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cmp})))(tls, key, (*Tnode1)(unsafe.Pointer(n)).Fkey) + if !(c != 0) { + break + } + n = **(**uintptr)(__ccgo_up(n + 8 + BoolUintptr(c > 0)*8)) + goto _1 + _1: + } + return n +} + +func _height(tls *TLS, n uintptr) (r int32) { + var v1 int32 + _ = v1 + if n != 0 { + v1 = (*Tnode1)(unsafe.Pointer(n)).Fh + } else { + v1 = 0 + } + return v1 +} + +func _rot(tls *TLS, p uintptr, x uintptr, dir int32) (r int32) { + var hx, hz int32 + var y, z uintptr + _, _, _, _ = hx, hz, y, z + y = **(**uintptr)(__ccgo_up(x + 8 + uintptr(dir)*8)) + z = **(**uintptr)(__ccgo_up(y + 8 + BoolUintptr(!(dir != 0))*8)) + hx = (*Tnode1)(unsafe.Pointer(x)).Fh + hz = _height(tls, z) + if hz > _height(tls, **(**uintptr)(__ccgo_up(y + 8 + uintptr(dir)*8))) { + /* + * x + * / \ dir z + * A y / * / \ --> x y + * z D /| | * / \ A B C D + * B C + */ + **(**uintptr)(__ccgo_up(x + 8 + uintptr(dir)*8)) = **(**uintptr)(__ccgo_up(z + 8 + BoolUintptr(!(dir != 0))*8)) + **(**uintptr)(__ccgo_up(y + 8 + BoolUintptr(!(dir != 0))*8)) = **(**uintptr)(__ccgo_up(z + 8 + uintptr(dir)*8)) + **(**uintptr)(__ccgo_up(z + 8 + BoolUintptr(!(dir != 0))*8)) = x + **(**uintptr)(__ccgo_up(z + 8 + uintptr(dir)*8)) = y + (*Tnode1)(unsafe.Pointer(x)).Fh = hz + (*Tnode1)(unsafe.Pointer(y)).Fh = hz + (*Tnode1)(unsafe.Pointer(z)).Fh = hz + int32(1) + } else { + /* + * x y + * / \ / * A y --> x D + * / \ / * z D A z + */ + **(**uintptr)(__ccgo_up(x + 8 + uintptr(dir)*8)) = z + **(**uintptr)(__ccgo_up(y + 8 + BoolUintptr(!(dir != 0))*8)) = x + (*Tnode1)(unsafe.Pointer(x)).Fh = hz + int32(1) + (*Tnode1)(unsafe.Pointer(y)).Fh = hz + int32(2) + z = y + } + **(**uintptr)(__ccgo_up(p)) = z + return (*Tnode1)(unsafe.Pointer(z)).Fh - hx +} + +// C documentation +// +// /* balance *p, return 0 if height is unchanged. */ +func X__tsearch_balance(tls *TLS, p uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v p=%v, (%v:)", tls, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + var h0, h1, old, v1 int32 + var n uintptr + _, _, _, _, _ = h0, h1, n, old, v1 + n = **(**uintptr)(__ccgo_up(p)) + h0 = _height(tls, **(**uintptr)(__ccgo_up(n + 8))) + h1 = _height(tls, **(**uintptr)(__ccgo_up(n + 8 + 1*8))) + if Uint32FromInt32(h0-h1)+uint32(1) < uint32(3) { + old = (*Tnode1)(unsafe.Pointer(n)).Fh + if h0 < h1 { + v1 = h1 + int32(1) + } else { + v1 = h0 + int32(1) + } + (*Tnode1)(unsafe.Pointer(n)).Fh = v1 + return (*Tnode1)(unsafe.Pointer(n)).Fh - old + } + return _rot(tls, p, n, BoolInt32(h0 < h1)) +} + +type t__ccgo_fp__Xtsearch_2 = func(*TLS, uintptr, uintptr) int32 + +func Xtsearch(tls *TLS, key uintptr, rootp uintptr, __ccgo_fp_cmp uintptr) (r1 uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v rootp=%v __ccgo_fp_cmp=%v, (%v:)", tls, key, rootp, __ccgo_fp_cmp, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var a [96]uintptr + var c, i, v1 int32 + var n, r, v4 uintptr + var v7 bool + _, _, _, _, _, _, _, _ = a, c, i, n, r, v1, v4, v7 + if !(rootp != 0) { + return uintptr(0) + } + n = **(**uintptr)(__ccgo_up(rootp)) + i = 0 + v1 = i + i = i + 1 + a[v1] = rootp + for { + if !(n != 0) { + break + } + c = (*(*func(*TLS, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cmp})))(tls, key, (*Tnode1)(unsafe.Pointer(n)).Fkey) + if !(c != 0) { + return n + } + v1 = i + i = i + 1 + a[v1] = n + 8 + BoolUintptr(c > 0)*8 + n = **(**uintptr)(__ccgo_up(n + 8 + BoolUintptr(c > 0)*8)) + goto _2 + _2: + } + r = Xmalloc(tls, uint64(32)) + if !(r != 0) { + return uintptr(0) + } + (*Tnode1)(unsafe.Pointer(r)).Fkey = key + v4 = UintptrFromInt32(0) + **(**uintptr)(__ccgo_up(r + 8 + 1*8)) = v4 + **(**uintptr)(__ccgo_up(r + 8)) = v4 + (*Tnode1)(unsafe.Pointer(r)).Fh = int32(1) + /* insert new node, rebalance ancestors. */ + i = i - 1 + v1 = i + **(**uintptr)(__ccgo_up(a[v1])) = r + for { + if v7 = i != 0; v7 { + i = i - 1 + v1 = i + } + if !(v7 && X__tsearch_balance(tls, a[v1]) != 0) { + break + } + } + return r +} + +func _walk(tls *TLS, r uintptr, __ccgo_fp_action uintptr, d int32) { + if !(r != 0) { + return + } + if (*Tnode1)(unsafe.Pointer(r)).Fh == int32(1) { + (*(*func(*TLS, uintptr, TVISIT, int32))(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_action})))(tls, r, int32(_leaf), d) + } else { + (*(*func(*TLS, uintptr, TVISIT, int32))(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_action})))(tls, r, int32(_preorder), d) + _walk(tls, **(**uintptr)(__ccgo_up(r + 8)), __ccgo_fp_action, d+int32(1)) + (*(*func(*TLS, uintptr, TVISIT, int32))(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_action})))(tls, r, int32(_postorder), d) + _walk(tls, **(**uintptr)(__ccgo_up(r + 8 + 1*8)), __ccgo_fp_action, d+int32(1)) + (*(*func(*TLS, uintptr, TVISIT, int32))(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_action})))(tls, r, int32(_endorder), d) + } +} + +type t__ccgo_fp__Xtwalk_1 = func(*TLS, uintptr, int32, int32) + +func Xtwalk(tls *TLS, root uintptr, __ccgo_fp_action uintptr) { + if __ccgo_strace { + trc("tls=%v root=%v __ccgo_fp_action=%v, (%v:)", tls, root, __ccgo_fp_action, origin(2)) + } + _walk(tls, root, __ccgo_fp_action, 0) +} + +func Xpoll(tls *TLS, fds uintptr, n Tnfds_t, timeout int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fds=%v n=%v timeout=%v, (%v:)", tls, fds, n, timeout, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uintptr + _ = v1 + if timeout >= 0 { + *(*[2]int64)(unsafe.Pointer(bp)) = [2]int64{ + 0: int64(timeout / int32(1000)), + 1: int64(timeout % int32(1000) * int32(1000000)), + } + v1 = bp + } else { + v1 = uintptr(0) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_ppoll), int64(fds), Int64FromUint64(n), int64(v1), int64(Int32FromInt32(0)), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8)), 0)))) +} + +func Xppoll(tls *TLS, fds uintptr, n Tnfds_t, to uintptr, mask uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fds=%v n=%v to=%v mask=%v, (%v:)", tls, fds, n, to, mask, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ns, v1, v2 int64 + var s Ttime_t + var v3 uintptr + _, _, _, _, _ = ns, s, v1, v2, v3 + if to != 0 { + v1 = (*Ttimespec)(unsafe.Pointer(to)).Ftv_sec + } else { + v1 = 0 + } + s = v1 + if to != 0 { + v2 = (*Ttimespec)(unsafe.Pointer(to)).Ftv_nsec + } else { + v2 = 0 + } + ns = v2 + if to != 0 { + *(*[2]int64)(unsafe.Pointer(bp)) = [2]int64{ + 0: s, + 1: ns, + } + v3 = bp + } else { + v3 = uintptr(0) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_ppoll), int64(fds), Int64FromUint64(n), int64(v3), int64(mask), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8)), 0)))) +} + +func Xpselect(tls *TLS, n int32, rfds uintptr, wfds uintptr, efds uintptr, ts uintptr, mask uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v n=%v rfds=%v wfds=%v efds=%v ts=%v mask=%v, (%v:)", tls, n, rfds, wfds, efds, ts, mask, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var ns, v1, v2 int64 + var s Ttime_t + var v3 uintptr + var _ /* data at bp+16 */ [2]Tsyscall_arg_t + _, _, _, _, _ = ns, s, v1, v2, v3 + **(**[2]Tsyscall_arg_t)(__ccgo_up(bp + 16)) = [2]Tsyscall_arg_t{ + 0: Int64FromUint64(uint64(mask)), + 1: int64(Int32FromInt32(_NSIG) / Int32FromInt32(8)), + } + if ts != 0 { + v1 = (*Ttimespec)(unsafe.Pointer(ts)).Ftv_sec + } else { + v1 = 0 + } + s = v1 + if ts != 0 { + v2 = (*Ttimespec)(unsafe.Pointer(ts)).Ftv_nsec + } else { + v2 = 0 + } + ns = v2 + if ts != 0 { + *(*[2]int64)(unsafe.Pointer(bp)) = [2]int64{ + 0: s, + 1: ns, + } + v3 = bp + } else { + v3 = uintptr(0) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_pselect6), int64(n), int64(rfds), int64(wfds), int64(efds), int64(v3), int64(bp+16))))) +} + +func Xselect(tls *TLS, n int32, rfds uintptr, wfds uintptr, efds uintptr, tv uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v n=%v rfds=%v wfds=%v efds=%v tv=%v, (%v:)", tls, n, rfds, wfds, efds, tv, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var max_time, s Ttime_t + var ns, v1, v2 int64 + var us Tsuseconds_t + var v3 uintptr + _, _, _, _, _, _, _ = max_time, ns, s, us, v1, v2, v3 + if tv != 0 { + v1 = (*Ttimeval)(unsafe.Pointer(tv)).Ftv_sec + } else { + v1 = 0 + } + s = v1 + if tv != 0 { + v2 = (*Ttimeval)(unsafe.Pointer(tv)).Ftv_usec + } else { + v2 = 0 + } + us = v2 + max_time = Int64FromUint64(Uint64FromUint64(1)<<(Uint64FromInt32(8)*Uint64FromInt64(8)-Uint64FromInt32(1)) - Uint64FromInt32(1)) + if s < 0 || us < 0 { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL)))) + } + if us/int64(1000000) > max_time-s { + s = max_time + us = int64(999999) + ns = int64(999999999) + } else { + s = s + us/int64(1000000) + us = us % int64(1000000) + ns = us * int64(1000) + } + if tv != 0 { + *(*[2]int64)(unsafe.Pointer(bp)) = [2]int64{ + 0: s, + 1: ns, + } + v3 = bp + } else { + v3 = uintptr(0) + } + *(*[2]Tsyscall_arg_t)(unsafe.Pointer(bp + 16)) = [2]Tsyscall_arg_t{ + 1: int64(Int32FromInt32(_NSIG) / Int32FromInt32(8)), + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_pselect6), int64(n), int64(rfds), int64(wfds), int64(efds), int64(v3), int64(bp+16))))) +} + +var _all_mask = [1]uint64{ + 0: -Uint64FromUint64(1), +} + +var _app_mask = [1]uint64{ + 0: uint64(0xfffffffc7fffffff), +} + +func X__block_all_sigs(tls *TLS, set uintptr) { + if __ccgo_strace { + trc("tls=%v set=%v, (%v:)", tls, set, origin(2)) + } + X__syscall4(tls, int64(SYS_rt_sigprocmask), int64(Int32FromInt32(SIG_BLOCK)), int64(uintptr(unsafe.Pointer(&_all_mask))), int64(set), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8))) +} + +func X__block_app_sigs(tls *TLS, set uintptr) { + if __ccgo_strace { + trc("tls=%v set=%v, (%v:)", tls, set, origin(2)) + } + X__syscall4(tls, int64(SYS_rt_sigprocmask), int64(Int32FromInt32(SIG_BLOCK)), int64(uintptr(unsafe.Pointer(&_app_mask))), int64(set), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8))) +} + +func X__restore_sigs(tls *TLS, set uintptr) { + if __ccgo_strace { + trc("tls=%v set=%v, (%v:)", tls, set, origin(2)) + } + X__syscall4(tls, int64(SYS_rt_sigprocmask), int64(Int32FromInt32(SIG_SETMASK)), int64(set), int64(Int32FromInt32(0)), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8))) +} + +func Xgetitimer(tls *TLS, which int32, old uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v which=%v old=%v, (%v:)", tls, which, old, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var r int32 + var _ /* old32 at bp+0 */ [4]int64 + _ = r + if uint64(8) > uint64(8) { + r = int32(X__syscall2(tls, int64(SYS_getitimer), int64(which), int64(bp))) + if !(r != 0) { + (*Titimerval)(unsafe.Pointer(old)).Fit_interval.Ftv_sec = (**(**[4]int64)(__ccgo_up(bp)))[0] + (*Titimerval)(unsafe.Pointer(old)).Fit_interval.Ftv_usec = (**(**[4]int64)(__ccgo_up(bp)))[int32(1)] + (*Titimerval)(unsafe.Pointer(old)).Fit_value.Ftv_sec = (**(**[4]int64)(__ccgo_up(bp)))[int32(2)] + (*Titimerval)(unsafe.Pointer(old)).Fit_value.Ftv_usec = (**(**[4]int64)(__ccgo_up(bp)))[int32(3)] + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_getitimer), int64(which), int64(old))))) +} + +func Xkill(tls *TLS, pid Tpid_t, sig int32) (r int32) { + if __ccgo_strace { + trc("tls=%v pid=%v sig=%v, (%v:)", tls, pid, sig, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_kill), int64(pid), int64(sig))))) +} + +func Xkillpg(tls *TLS, pgid Tpid_t, sig int32) (r int32) { + if __ccgo_strace { + trc("tls=%v pgid=%v sig=%v, (%v:)", tls, pgid, sig, origin(2)) + defer func() { trc("-> %v", r) }() + } + if pgid < 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + return Xkill(tls, -pgid, sig) +} + +func Xpsiginfo(tls *TLS, si uintptr, msg uintptr) { + if __ccgo_strace { + trc("tls=%v si=%v msg=%v, (%v:)", tls, si, msg, origin(2)) + } + Xpsignal(tls, (*Tsiginfo_t)(unsafe.Pointer(si)).Fsi_signo, msg) +} + +func Xpsignal(tls *TLS, sig int32, msg uintptr) { + if __ccgo_strace { + trc("tls=%v sig=%v msg=%v, (%v:)", tls, sig, msg, origin(2)) + } + bp := tls.Alloc(32) + defer tls.Free(32) + var __need_unlock, old_errno, old_mode, v1 int32 + var f, old_locale, s, v2, v3 uintptr + _, _, _, _, _, _, _, _, _ = __need_unlock, f, old_errno, old_locale, old_mode, s, v1, v2, v3 + f = uintptr(unsafe.Pointer(&X__stderr_FILE)) + s = Xstrsignal(tls, sig) + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + /* Save stderr's orientation and encoding rule, since psignal is not + * permitted to change them. Save errno and restore it if there is no + * error since fprintf might change it even on success but psignal is + * not permitted to do so. */ + old_locale = (*TFILE)(unsafe.Pointer(f)).Flocale + old_mode = (*TFILE)(unsafe.Pointer(f)).Fmode + old_errno = **(**int32)(__ccgo_up(X__errno_location(tls))) + if msg != 0 { + v2 = msg + } else { + v2 = __ccgo_ts + } + if msg != 0 { + v3 = __ccgo_ts + 289 + } else { + v3 = __ccgo_ts + } + if Xfprintf(tls, f, __ccgo_ts+1072, VaList(bp+8, v2, v3, s)) >= 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = old_errno + } + (*TFILE)(unsafe.Pointer(f)).Fmode = old_mode + (*TFILE)(unsafe.Pointer(f)).Flocale = old_locale + if __need_unlock != 0 { + ___unlockfile(tls, f) + } +} + +func Xraise(tls *TLS, sig int32) (r int32) { + if __ccgo_strace { + trc("tls=%v sig=%v, (%v:)", tls, sig, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(128) + defer tls.Free(128) + var ret int32 + var _ /* set at bp+0 */ Tsigset_t + _ = ret + X__block_app_sigs(tls, bp) + ret = int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_tkill), int64((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Ftid), int64(sig))))) + X__restore_sigs(tls, bp) + return ret +} + +/* These functions will not work, but suffice for targets where the + * kernel sigaction structure does not actually use sa_restorer. */ +func X__restore(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } +} + +func X__restore_rt(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } +} + +func Xsetitimer(tls *TLS, which int32, new1 uintptr, old uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v which=%v new1=%v old=%v, (%v:)", tls, which, new1, old, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var is, vs Ttime_t + var ius, vus int64 + var r int32 + var _ /* old32 at bp+32 */ [4]int64 + _, _, _, _, _ = is, ius, r, vs, vus + if uint64(8) > uint64(8) { + is = (*Titimerval)(unsafe.Pointer(new1)).Fit_interval.Ftv_sec + vs = (*Titimerval)(unsafe.Pointer(new1)).Fit_value.Ftv_sec + ius = (*Titimerval)(unsafe.Pointer(new1)).Fit_interval.Ftv_usec + vus = (*Titimerval)(unsafe.Pointer(new1)).Fit_value.Ftv_usec + if !!((Uint64FromInt64(is)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) || !!((Uint64FromInt64(vs)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EOPNOTSUPP)))) + } + *(*[4]int64)(unsafe.Pointer(bp)) = [4]int64{ + 0: is, + 1: ius, + 2: vs, + 3: vus, + } + r = int32(X__syscall3(tls, int64(SYS_setitimer), int64(which), int64(bp), int64(bp+32))) + if !(r != 0) && old != 0 { + (*Titimerval)(unsafe.Pointer(old)).Fit_interval.Ftv_sec = (**(**[4]int64)(__ccgo_up(bp + 32)))[0] + (*Titimerval)(unsafe.Pointer(old)).Fit_interval.Ftv_usec = (**(**[4]int64)(__ccgo_up(bp + 32)))[int32(1)] + (*Titimerval)(unsafe.Pointer(old)).Fit_value.Ftv_sec = (**(**[4]int64)(__ccgo_up(bp + 32)))[int32(2)] + (*Titimerval)(unsafe.Pointer(old)).Fit_value.Ftv_usec = (**(**[4]int64)(__ccgo_up(bp + 32)))[int32(3)] + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_setitimer), int64(which), int64(new1), int64(old))))) +} + +type Tk_sigaction = struct { + Fhandler uintptr + Fflags uint64 + Frestorer uintptr + Fmask [2]uint32 +} + +var _unmask_done int32 +var _handler_set [1]uint64 + +func X__get_handler_set(tls *TLS, set uintptr) { + if __ccgo_strace { + trc("tls=%v set=%v, (%v:)", tls, set, origin(2)) + } + Xmemcpy(tls, set, uintptr(unsafe.Pointer(&_handler_set)), uint64(8)) +} + +func X__libc_sigaction(tls *TLS, sig int32, sa uintptr, old1 uintptr) (r2 int32) { + if __ccgo_strace { + trc("tls=%v sig=%v sa=%v old1=%v, (%v:)", tls, sig, sa, old1, origin(2)) + defer func() { trc("-> %v", r2) }() + } + bp := tls.Alloc(80) + defer tls.Free(80) + var old, r, r1, v, v12, v15, v19, v22, v4, v7 int32 + var v1, v10, v11, v18, v3 uintptr + var v2 int64 + var _ /* ksa at bp+16 */ Tk_sigaction + var _ /* ksa_old at bp+48 */ Tk_sigaction + var _ /* u at bp+8 */ struct { + Fr [0][2]Tuint32_t + Fv Tuint64_t + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = old, r, r1, v, v1, v10, v11, v12, v15, v18, v19, v2, v22, v3, v4, v7 + if sa != 0 { + if uint64(*(*uintptr)(unsafe.Pointer(sa))) > uint64(1) { + v1 = uintptr(unsafe.Pointer(&_handler_set)) + uintptr(Uint64FromInt32(sig-Int32FromInt32(1))/(Uint64FromInt32(8)*Uint64FromInt64(8)))*8 + v2 = Int64FromUint64(uint64(1) << (Uint64FromInt32(sig-Int32FromInt32(1)) % (Uint64FromInt32(8) * Uint64FromInt64(8)))) + if Uint64FromInt64(8) == Uint64FromInt64(4) { + v3 = v1 + for { + // __asm__ __volatile__ ("ldaxr %w0,%1" : "=r"(v) : "Q"(*p)); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 5, __ccgo_ts+1487) + v7 = v + goto _8 + _8: + old = v7 + goto _6 + _6: + ; + // __asm__ __volatile__ ("stlxr %w0,%w2,%1" : "=&r"(r), "=Q"(*p) : "r"(v) : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 13, __ccgo_ts+1487) + v4 = BoolInt32(!(r != 0)) + goto _5 + _5: + ; + if !!(v4 != 0) { + break + } + } + _ = old + goto _9 + _9: + } else { + v10 = v1 + *(*struct { + Fr [0][2]Tuint32_t + Fv Tuint64_t + })(unsafe.Pointer(bp + 8)) = struct { + Fr [0][2]Tuint32_t + Fv Tuint64_t + }{} + *(*uint64)(unsafe.Pointer(bp + 8)) = Uint64FromInt64(v2) + if **(**Tuint32_t)(__ccgo_up(bp + 8)) != 0 { + v11 = v10 + for { + // __asm__ __volatile__ ("ldaxr %w0,%1" : "=r"(v) : "Q"(*p)); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 5, __ccgo_ts+1487) + v15 = v + goto _16 + _16: + old = v15 + goto _14 + _14: + ; + // __asm__ __volatile__ ("stlxr %w0,%w2,%1" : "=&r"(r), "=Q"(*p) : "r"(v) : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 13, __ccgo_ts+1487) + v12 = BoolInt32(!(r != 0)) + goto _13 + _13: + ; + if !!(v12 != 0) { + break + } + } + _ = old + goto _17 + _17: + } + if **(**Tuint32_t)(__ccgo_up(bp + 8 + 1*4)) != 0 { + v18 = v10 + uintptr(1)*4 + for { + // __asm__ __volatile__ ("ldaxr %w0,%1" : "=r"(v) : "Q"(*p)); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 5, __ccgo_ts+1487) + v22 = v + goto _23 + _23: + old = v22 + goto _21 + _21: + ; + // __asm__ __volatile__ ("stlxr %w0,%w2,%1" : "=&r"(r), "=Q"(*p) : "r"(v) : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 13, __ccgo_ts+1487) + v19 = BoolInt32(!(r != 0)) + goto _20 + _20: + ; + if !!(v19 != 0) { + break + } + } + _ = old + goto _24 + _24: + } + } + /* If pthread_create has not yet been called, + * implementation-internal signals might not + * yet have been unblocked. They must be + * unblocked before any signal handler is + * installed, so that an application cannot + * receive an illegal sigset_t (with them + * blocked) as part of the ucontext_t passed + * to the signal handler. */ + if !(X__libc.Fthreaded != 0) && !(_unmask_done != 0) { + *(*[1]uint64)(unsafe.Pointer(bp)) = [1]uint64{ + 0: Uint64FromUint64(3) << (Int32FromInt32(32) * BoolInt32(Uint64FromInt64(8) > Uint64FromInt32(4))), + } + X__syscall4(tls, int64(SYS_rt_sigprocmask), int64(Int32FromInt32(SIG_UNBLOCK)), int64(bp), int64(Int32FromInt32(0)), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8))) + _unmask_done = int32(1) + } + if !((*Tsigaction)(unsafe.Pointer(sa)).Fsa_flags&Int32FromInt32(SA_RESTART) != 0) { + // __asm__ __volatile__ ("dmb ish" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 20, __ccgo_ts+1487) + AtomicStorePInt32(uintptr(unsafe.Pointer(&X__eintr_valid_flag)), int32(1)) + // __asm__ __volatile__ ("dmb ish" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 20, __ccgo_ts+1487) + } + } + (**(**Tk_sigaction)(__ccgo_up(bp + 16))).Fhandler = *(*uintptr)(unsafe.Pointer(sa)) + (**(**Tk_sigaction)(__ccgo_up(bp + 16))).Fflags = Uint64FromInt32((*Tsigaction)(unsafe.Pointer(sa)).Fsa_flags) + (**(**Tk_sigaction)(__ccgo_up(bp + 16))).Fflags |= uint64(SA_RESTORER) + if (*Tsigaction)(unsafe.Pointer(sa)).Fsa_flags&int32(SA_SIGINFO) != 0 { + v1 = __ccgo_fp(X__restore_rt) + } else { + v1 = __ccgo_fp(X__restore) + } + (**(**Tk_sigaction)(__ccgo_up(bp + 16))).Frestorer = v1 + Xmemcpy(tls, bp+16+24, sa+8, Uint64FromInt32(Int32FromInt32(_NSIG)/Int32FromInt32(8))) + } + if sa != 0 { + v1 = bp + 16 + } else { + v1 = uintptr(0) + } + if old1 != 0 { + v3 = bp + 48 + } else { + v3 = uintptr(0) + } + r1 = int32(X__syscall4(tls, int64(SYS_rt_sigaction), int64(sig), int64(v1), int64(v3), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8)))) + if old1 != 0 && !(r1 != 0) { + *(*uintptr)(unsafe.Pointer(old1)) = (**(**Tk_sigaction)(__ccgo_up(bp + 48))).Fhandler + (*Tsigaction)(unsafe.Pointer(old1)).Fsa_flags = Int32FromUint64((**(**Tk_sigaction)(__ccgo_up(bp + 48))).Fflags) + Xmemcpy(tls, old1+8, bp+48+24, Uint64FromInt32(Int32FromInt32(_NSIG)/Int32FromInt32(8))) + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r1))) +} + +func X__sigaction(tls *TLS, sig int32, sa uintptr, old uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v sig=%v sa=%v old=%v, (%v:)", tls, sig, sa, old, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var r int32 + var _ /* set at bp+0 */ [1]uint64 + _ = r + if Uint32FromInt32(sig)-uint32(32) < uint32(3) || Uint32FromInt32(sig)-uint32(1) >= Uint32FromInt32(Int32FromInt32(_NSIG)-Int32FromInt32(1)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + /* Doing anything with the disposition of SIGABRT requires a lock, + * so that it cannot be changed while abort is terminating the + * process and so any change made by abort can't be observed. */ + if sig == int32(SIGABRT) { + X__block_all_sigs(tls, bp) + ___lock(tls, uintptr(unsafe.Pointer(&X__abort_lock))) + } + r = X__libc_sigaction(tls, sig, sa, old) + if sig == int32(SIGABRT) { + ___unlock(tls, uintptr(unsafe.Pointer(&X__abort_lock))) + X__restore_sigs(tls, bp) + } + return r +} + +func Xsigaction(tls *TLS, sig int32, sa uintptr, old uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v sig=%v sa=%v old=%v, (%v:)", tls, sig, sa, old, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__sigaction(tls, sig, sa, old) +} + +func Xsigaddset(tls *TLS, set uintptr, sig int32) (r int32) { + if __ccgo_strace { + trc("tls=%v set=%v sig=%v, (%v:)", tls, set, sig, origin(2)) + defer func() { trc("-> %v", r) }() + } + var s uint32 + _ = s + s = Uint32FromInt32(sig - int32(1)) + if s >= Uint32FromInt32(Int32FromInt32(_NSIG)-Int32FromInt32(1)) || Uint32FromInt32(sig)-uint32(32) < uint32(3) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + **(**uint64)(__ccgo_up(set + uintptr(uint64(s/uint32(8))/uint64(8))*8)) |= uint64(1) << (uint64(s) & (Uint64FromInt32(8)*Uint64FromInt64(8) - Uint64FromInt32(1))) + return 0 +} + +func Xsigaltstack(tls *TLS, ss uintptr, old uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v ss=%v old=%v, (%v:)", tls, ss, old, origin(2)) + defer func() { trc("-> %v", r) }() + } + if ss != 0 { + if !((*Tstack_t)(unsafe.Pointer(ss)).Fss_flags&Int32FromInt32(SS_DISABLE) != 0) && (*Tstack_t)(unsafe.Pointer(ss)).Fss_size < uint64(MINSIGSTKSZ) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOMEM) + return -int32(1) + } + if (*Tstack_t)(unsafe.Pointer(ss)).Fss_flags&int32(SS_ONSTACK) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_sigaltstack), int64(ss), int64(old))))) +} + +const SST_SIZE = 8 + +func Xsigandset(tls *TLS, dest uintptr, left uintptr, right uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v dest=%v left=%v right=%v, (%v:)", tls, dest, left, right, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var d, l, r uintptr + var i uint64 + _, _, _, _ = d, i, l, r + i = uint64(0) + d = dest + l = left + r = right + for { + if !(i < Uint64FromInt32(Int32FromInt32(_NSIG)/Int32FromInt32(8))/Uint64FromInt64(8)) { + break + } + **(**uint64)(__ccgo_up(d + uintptr(i)*8)) = **(**uint64)(__ccgo_up(l + uintptr(i)*8)) & **(**uint64)(__ccgo_up(r + uintptr(i)*8)) + goto _1 + _1: + ; + i = i + 1 + } + return 0 +} + +func Xsigdelset(tls *TLS, set uintptr, sig int32) (r int32) { + if __ccgo_strace { + trc("tls=%v set=%v sig=%v, (%v:)", tls, set, sig, origin(2)) + defer func() { trc("-> %v", r) }() + } + var s uint32 + _ = s + s = Uint32FromInt32(sig - int32(1)) + if s >= Uint32FromInt32(Int32FromInt32(_NSIG)-Int32FromInt32(1)) || Uint32FromInt32(sig)-uint32(32) < uint32(3) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + **(**uint64)(__ccgo_up(set + uintptr(uint64(s/uint32(8))/uint64(8))*8)) &= ^(Uint64FromUint64(1) << (uint64(s) & (Uint64FromInt32(8)*Uint64FromInt64(8) - Uint64FromInt32(1)))) + return 0 +} + +func Xsigemptyset(tls *TLS, set uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v set=%v, (%v:)", tls, set, origin(2)) + defer func() { trc("-> %v", r) }() + } + **(**uint64)(__ccgo_up(set)) = uint64(0) + if Bool(uint64(8) == uint64(4)) || Bool(int32(_NSIG) > int32(65)) { + **(**uint64)(__ccgo_up(set + 1*8)) = uint64(0) + } + if Bool(uint64(8) == uint64(4)) && Bool(int32(_NSIG) > int32(65)) { + **(**uint64)(__ccgo_up(set + 2*8)) = uint64(0) + **(**uint64)(__ccgo_up(set + 3*8)) = uint64(0) + } + return 0 +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xsigfillset(tls *TLS, set uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v set=%v, (%v:)", tls, set, origin(2)) + defer func() { trc("-> %v", r) }() + } + **(**uint64)(__ccgo_up(set)) = uint64(0xfffffffc7fffffff) + if int32(_NSIG) > int32(65) { + **(**uint64)(__ccgo_up(set + 1*8)) = uint64(0xffffffffffffffff) + } + return 0 +} + +func Xsigisemptyset(tls *TLS, set uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v set=%v, (%v:)", tls, set, origin(2)) + defer func() { trc("-> %v", r) }() + } + var i Tsize_t + _ = i + i = uint64(0) + for { + if !(i < Uint64FromInt32(Int32FromInt32(_NSIG)/Int32FromInt32(8))/Uint64FromInt64(8)) { + break + } + if **(**uint64)(__ccgo_up(set + uintptr(i)*8)) != 0 { + return 0 + } + goto _1 + _1: + ; + i = i + 1 + } + return int32(1) +} + +func Xsigismember(tls *TLS, set uintptr, sig int32) (r int32) { + if __ccgo_strace { + trc("tls=%v set=%v sig=%v, (%v:)", tls, set, sig, origin(2)) + defer func() { trc("-> %v", r) }() + } + var s uint32 + _ = s + s = Uint32FromInt32(sig - int32(1)) + if s >= Uint32FromInt32(Int32FromInt32(_NSIG)-Int32FromInt32(1)) { + return 0 + } + return BoolInt32(!!(**(**uint64)(__ccgo_up(set + uintptr(uint64(s/uint32(8))/uint64(8))*8))&(Uint64FromUint64(1)<<(uint64(s)&(Uint64FromInt32(8)*Uint64FromInt64(8)-Uint64FromInt32(1)))) != 0)) +} + +func Xsigorset(tls *TLS, dest uintptr, left uintptr, right uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v dest=%v left=%v right=%v, (%v:)", tls, dest, left, right, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var d, l, r uintptr + var i uint64 + _, _, _, _ = d, i, l, r + i = uint64(0) + d = dest + l = left + r = right + for { + if !(i < Uint64FromInt32(Int32FromInt32(_NSIG)/Int32FromInt32(8))/Uint64FromInt64(8)) { + break + } + **(**uint64)(__ccgo_up(d + uintptr(i)*8)) = **(**uint64)(__ccgo_up(l + uintptr(i)*8)) | **(**uint64)(__ccgo_up(r + uintptr(i)*8)) + goto _1 + _1: + ; + i = i + 1 + } + return 0 +} + +func Xsigpending(tls *TLS, set uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v set=%v, (%v:)", tls, set, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_rt_sigpending), int64(set), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8)))))) +} + +func Xsigprocmask(tls *TLS, how int32, set uintptr, old uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v how=%v set=%v old=%v, (%v:)", tls, how, set, old, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + r = _pthread_sigmask(tls, how, set, old) + if !(r != 0) { + return r + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = r + return -int32(1) +} + +func Xsigqueue(tls *TLS, pid Tpid_t, sig int32, value Tsigval) (r1 int32) { + if __ccgo_strace { + trc("tls=%v pid=%v sig=%v value=%v, (%v:)", tls, pid, sig, value, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(256) + defer tls.Free(256) + var r int32 + var _ /* set at bp+128 */ Tsigset_t + var _ /* si at bp+0 */ Tsiginfo_t + _ = r + Xmemset(tls, bp, 0, uint64(128)) + (**(**Tsiginfo_t)(__ccgo_up(bp))).Fsi_signo = sig + (**(**Tsiginfo_t)(__ccgo_up(bp))).Fsi_code = -int32(1) + *(*Tsigval)(unsafe.Pointer(bp + 16 + 8)) = value + *(*Tuid_t)(unsafe.Pointer(bp + 16 + 4)) = Xgetuid(tls) + X__block_app_sigs(tls, bp+128) + *(*Tpid_t)(unsafe.Pointer(bp + 16)) = Xgetpid(tls) + r = int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_rt_sigqueueinfo), int64(pid), int64(sig), int64(bp))))) + X__restore_sigs(tls, bp+128) + return r +} + +func X__libc_current_sigrtmax(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Int32FromInt32(_NSIG) - Int32FromInt32(1) +} + +func X__libc_current_sigrtmin(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(35) +} + +type t__jmp_buf = [22]uint64 + +type Tjmp_buf = [1]t__jmp_buf_tag + +type t__jmp_buf_tag = struct { + F__jb t__jmp_buf + F__fl uint64 + F__ss [16]uint64 +} + +type Tsigjmp_buf = [1]t__jmp_buf_tag + +func X__sigsetjmp_tail(tls *TLS, jb uintptr, ret int32) (r int32) { + if __ccgo_strace { + trc("tls=%v jb=%v ret=%v, (%v:)", tls, jb, ret, origin(2)) + defer func() { trc("-> %v", r) }() + } + var p, v1, v2 uintptr + _, _, _ = p, v1, v2 + p = jb + 184 + if ret != 0 { + v1 = p + } else { + v1 = uintptr(0) + } + if ret != 0 { + v2 = uintptr(0) + } else { + v2 = p + } + X__syscall4(tls, int64(SYS_rt_sigprocmask), int64(Int32FromInt32(SIG_SETMASK)), int64(v1), int64(v2), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8))) + return ret +} + +func Xsigsuspend(tls *TLS, mask uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v mask=%v, (%v:)", tls, mask, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_rt_sigsuspend), int64(mask), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8)), 0, 0, 0, 0)))) +} + +func _do_sigtimedwait(tls *TLS, mask uintptr, si uintptr, ts uintptr) (r int32) { + return int32(___syscall_cp(tls, int64(SYS_rt_sigtimedwait), int64(mask), int64(si), int64(ts), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8)), 0, 0)) +} + +func Xsigtimedwait(tls *TLS, mask uintptr, si uintptr, timeout uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v mask=%v si=%v timeout=%v, (%v:)", tls, mask, si, timeout, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret int32 + _ = ret + for cond := true; cond; cond = ret == -int32(EINTR) { + ret = _do_sigtimedwait(tls, mask, si, timeout) + } + return int32(X__syscall_ret(tls, Uint64FromInt32(ret))) +} + +func Xsigwait(tls *TLS, mask uintptr, sig uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v mask=%v sig=%v, (%v:)", tls, mask, sig, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(128) + defer tls.Free(128) + var _ /* si at bp+0 */ Tsiginfo_t + if Xsigtimedwait(tls, mask, bp, uintptr(0)) < 0 { + return -int32(1) + } + **(**int32)(__ccgo_up(sig)) = (**(**Tsiginfo_t)(__ccgo_up(bp))).Fsi_signo + return 0 +} + +func Xsigwaitinfo(tls *TLS, mask uintptr, si uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v mask=%v si=%v, (%v:)", tls, mask, si, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xsigtimedwait(tls, mask, si, uintptr(0)) +} + +func X__fxstat(tls *TLS, ver int32, fd int32, buf uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v ver=%v fd=%v buf=%v, (%v:)", tls, ver, fd, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfstat(tls, fd, buf) +} + +func X__fxstatat(tls *TLS, ver int32, fd int32, path uintptr, buf uintptr, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v ver=%v fd=%v path=%v buf=%v flag=%v, (%v:)", tls, ver, fd, path, buf, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfstatat(tls, fd, path, buf, flag) +} + +func X__lxstat(tls *TLS, ver int32, path uintptr, buf uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v ver=%v path=%v buf=%v, (%v:)", tls, ver, path, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xlstat(tls, path, buf) +} + +func X__xstat(tls *TLS, ver int32, path uintptr, buf uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v ver=%v path=%v buf=%v, (%v:)", tls, ver, path, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstat(tls, path, buf) +} + +func X__xmknod(tls *TLS, ver int32, path uintptr, mode Tmode_t, dev uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v ver=%v path=%v mode=%v dev=%v, (%v:)", tls, ver, path, mode, dev, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xmknod(tls, path, mode, **(**Tdev_t)(__ccgo_up(dev))) +} + +func X__xmknodat(tls *TLS, ver int32, fd int32, path uintptr, mode Tmode_t, dev uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v ver=%v fd=%v path=%v mode=%v dev=%v, (%v:)", tls, ver, fd, path, mode, dev, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xmknodat(tls, fd, path, mode, **(**Tdev_t)(__ccgo_up(dev))) +} + +func Xchmod(tls *TLS, path uintptr, mode Tmode_t) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v mode=%v, (%v:)", tls, path, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_fchmodat), int64(-Int32FromInt32(100)), int64(path), Int64FromUint32(mode))))) +} + +func Xfchmod(tls *TLS, fd int32, mode Tmode_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v mode=%v, (%v:)", tls, fd, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var ret int32 + var _ /* buf at bp+0 */ [27]uint8 + _ = ret + ret = int32(X__syscall2(tls, int64(SYS_fchmod), int64(fd), Int64FromUint32(mode))) + if ret != -int32(EBADF) || X__syscall2(tls, int64(SYS_fcntl), int64(fd), int64(Int32FromInt32(F_GETFD))) < 0 { + return int32(X__syscall_ret(tls, Uint64FromInt32(ret))) + } + X__procfdname(tls, bp, Uint32FromInt32(fd)) + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_fchmodat), int64(-Int32FromInt32(100)), int64(bp), Int64FromUint32(mode))))) +} + +func Xfchmodat(tls *TLS, fd int32, path uintptr, mode Tmode_t, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v path=%v mode=%v flag=%v, (%v:)", tls, fd, path, mode, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(160) + defer tls.Free(160) + var fd2, ret, v1 int32 + var _ /* proc at bp+128 */ [27]uint8 + var _ /* st at bp+0 */ Tstat + _, _, _ = fd2, ret, v1 + if !(flag != 0) { + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_fchmodat), int64(fd), int64(path), Int64FromUint32(mode))))) + } + ret = int32(X__syscall4(tls, int64(SYS_fchmodat2), int64(fd), int64(path), Int64FromUint32(mode), int64(flag))) + if ret != -int32(ENOSYS) { + return int32(X__syscall_ret(tls, Uint64FromInt32(ret))) + } + if flag != int32(AT_SYMLINK_NOFOLLOW) { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL)))) + } + if Xfstatat(tls, fd, path, bp, flag) != 0 { + return -int32(1) + } + if (**(**Tstat)(__ccgo_up(bp))).Fst_mode&uint32(S_IFMT) == uint32(S_IFLNK) { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EOPNOTSUPP)))) + } + v1 = int32(X__syscall3(tls, int64(SYS_openat), int64(fd), int64(path), int64(Int32FromInt32(O_RDONLY)|Int32FromInt32(O_PATH)|Int32FromInt32(O_NOFOLLOW)|Int32FromInt32(O_NOCTTY)|Int32FromInt32(O_CLOEXEC)))) + fd2 = v1 + if v1 < 0 { + if fd2 == -int32(ELOOP) { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EOPNOTSUPP)))) + } + return int32(X__syscall_ret(tls, Uint64FromInt32(fd2))) + } + X__procfdname(tls, bp+128, Uint32FromInt32(fd2)) + ret = Xstat(tls, bp+128, bp) + if !(ret != 0) { + if (**(**Tstat)(__ccgo_up(bp))).Fst_mode&uint32(S_IFMT) == uint32(S_IFLNK) { + ret = int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EOPNOTSUPP)))) + } else { + ret = int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_fchmodat), int64(-Int32FromInt32(100)), int64(bp+128), Int64FromUint32(mode))))) + } + } + X__syscall1(tls, int64(SYS_close), int64(fd2)) + return ret +} + +func X__fstat(tls *TLS, fd int32, st uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v st=%v, (%v:)", tls, fd, st, origin(2)) + defer func() { trc("-> %v", r) }() + } + if fd < 0 { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EBADF)))) + } + return X__fstatat(tls, fd, __ccgo_ts, st, int32(AT_EMPTY_PATH)) +} + +func Xfstat(tls *TLS, fd int32, st uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v st=%v, (%v:)", tls, fd, st, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fstat(tls, fd, st) +} + +type Tstatx1 = struct { + Fstx_mask Tuint32_t + Fstx_blksize Tuint32_t + Fstx_attributes Tuint64_t + Fstx_nlink Tuint32_t + Fstx_uid Tuint32_t + Fstx_gid Tuint32_t + Fstx_mode Tuint16_t + Fpad1 Tuint16_t + Fstx_ino Tuint64_t + Fstx_size Tuint64_t + Fstx_blocks Tuint64_t + Fstx_attributes_mask Tuint64_t + Fstx_atime struct { + Ftv_sec Tint64_t + Ftv_nsec Tuint32_t + Fpad Tint32_t + } + Fstx_btime struct { + Ftv_sec Tint64_t + Ftv_nsec Tuint32_t + Fpad Tint32_t + } + Fstx_ctime struct { + Ftv_sec Tint64_t + Ftv_nsec Tuint32_t + Fpad Tint32_t + } + Fstx_mtime struct { + Ftv_sec Tint64_t + Ftv_nsec Tuint32_t + Fpad Tint32_t + } + Fstx_rdev_major Tuint32_t + Fstx_rdev_minor Tuint32_t + Fstx_dev_major Tuint32_t + Fstx_dev_minor Tuint32_t + Fspare [14]Tuint64_t +} + +func _fstatat_statx(tls *TLS, fd int32, path uintptr, st uintptr, flag int32) (r int32) { + bp := tls.Alloc(256) + defer tls.Free(256) + var ret int32 + var _ /* stx at bp+0 */ Tstatx1 + _ = ret + flag = flag | int32(AT_NO_AUTOMOUNT) + ret = int32(X__syscall5(tls, int64(SYS_statx), int64(fd), int64(path), int64(flag), int64(Int32FromInt32(0x7ff)), int64(bp))) + if ret != 0 { + return ret + } + **(**Tstat)(__ccgo_up(st)) = Tstat{ + Fst_dev: uint64(uint64((**(**Tstatx1)(__ccgo_up(bp))).Fstx_dev_major)&Uint64FromUint64(0xfffff000)<= 0 && !(**(**uint8)(__ccgo_up(path)) != 0) { + ret = int32(X__syscall2(tls, int64(SYS_fstat), int64(fd), int64(bp))) + if ret == -int32(EBADF) && X__syscall2(tls, int64(SYS_fcntl), int64(fd), int64(Int32FromInt32(F_GETFD))) >= 0 { + ret = int32(X__syscall4(tls, int64(SYS_newfstatat), int64(fd), int64(path), int64(bp), int64(flag))) + if ret == -int32(EINVAL) { + X__procfdname(tls, bp+128, Uint32FromInt32(fd)) + ret = int32(X__syscall4(tls, int64(SYS_newfstatat), int64(-Int32FromInt32(100)), int64(bp+128), int64(bp), int64(Int32FromInt32(0)))) + } + } + } else { + ret = int32(X__syscall4(tls, int64(SYS_newfstatat), int64(fd), int64(path), int64(bp), int64(flag))) + } + if ret != 0 { + return ret + } + **(**Tstat)(__ccgo_up(st)) = Tstat{ + Fst_dev: (**(**Tkstat)(__ccgo_up(bp))).Fst_dev, + Fst_ino: (**(**Tkstat)(__ccgo_up(bp))).Fst_ino, + Fst_mode: (**(**Tkstat)(__ccgo_up(bp))).Fst_mode, + Fst_nlink: (**(**Tkstat)(__ccgo_up(bp))).Fst_nlink, + Fst_uid: (**(**Tkstat)(__ccgo_up(bp))).Fst_uid, + Fst_gid: (**(**Tkstat)(__ccgo_up(bp))).Fst_gid, + Fst_rdev: (**(**Tkstat)(__ccgo_up(bp))).Fst_rdev, + Fst_size: (**(**Tkstat)(__ccgo_up(bp))).Fst_size, + Fst_blksize: (**(**Tkstat)(__ccgo_up(bp))).Fst_blksize, + Fst_blocks: (**(**Tkstat)(__ccgo_up(bp))).Fst_blocks, + Fst_atim: Ttimespec{ + Ftv_sec: (**(**Tkstat)(__ccgo_up(bp))).Fst_atime_sec, + Ftv_nsec: (**(**Tkstat)(__ccgo_up(bp))).Fst_atime_nsec, + }, + Fst_mtim: Ttimespec{ + Ftv_sec: (**(**Tkstat)(__ccgo_up(bp))).Fst_mtime_sec, + Ftv_nsec: (**(**Tkstat)(__ccgo_up(bp))).Fst_mtime_nsec, + }, + Fst_ctim: Ttimespec{ + Ftv_sec: (**(**Tkstat)(__ccgo_up(bp))).Fst_ctime_sec, + Ftv_nsec: (**(**Tkstat)(__ccgo_up(bp))).Fst_ctime_nsec, + }, + } + return 0 +} + +func X__fstatat(tls *TLS, fd int32, path uintptr, st uintptr, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v path=%v st=%v flag=%v, (%v:)", tls, fd, path, st, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret int32 + _ = ret + if uint64(8) < uint64(8) { + ret = _fstatat_statx(tls, fd, path, st, flag) + if ret != -int32(ENOSYS) { + return int32(X__syscall_ret(tls, Uint64FromInt32(ret))) + } + } + ret = _fstatat_kstat(tls, fd, path, st, flag) + return int32(X__syscall_ret(tls, Uint64FromInt32(ret))) +} + +func Xfstatat(tls *TLS, fd int32, path uintptr, st uintptr, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v path=%v st=%v flag=%v, (%v:)", tls, fd, path, st, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fstatat(tls, fd, path, st, flag) +} + +func Xfutimens(tls *TLS, fd int32, times uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v times=%v, (%v:)", tls, fd, times, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xutimensat(tls, fd, uintptr(0), times, 0) +} + +func X__futimesat(tls *TLS, dirfd int32, pathname uintptr, times uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v dirfd=%v pathname=%v times=%v, (%v:)", tls, dirfd, pathname, times, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var i int32 + var v2 uintptr + var _ /* ts at bp+0 */ [2]Ttimespec + _, _ = i, v2 + if times != 0 { + i = 0 + for { + if !(i < int32(2)) { + break + } + if Uint64FromInt64((**(**Ttimeval)(__ccgo_up(times + uintptr(i)*16))).Ftv_usec) >= uint64(1000000) { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL)))) + } + (**(**[2]Ttimespec)(__ccgo_up(bp)))[i].Ftv_sec = (**(**Ttimeval)(__ccgo_up(times + uintptr(i)*16))).Ftv_sec + (**(**[2]Ttimespec)(__ccgo_up(bp)))[i].Ftv_nsec = (**(**Ttimeval)(__ccgo_up(times + uintptr(i)*16))).Ftv_usec * int64(1000) + goto _1 + _1: + ; + i = i + 1 + } + } + if times != 0 { + v2 = bp + } else { + v2 = uintptr(0) + } + return Xutimensat(tls, dirfd, pathname, v2, 0) +} + +func Xfutimesat(tls *TLS, dirfd int32, pathname uintptr, times uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v dirfd=%v pathname=%v times=%v, (%v:)", tls, dirfd, pathname, times, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__futimesat(tls, dirfd, pathname, times) +} + +func Xlchmod(tls *TLS, path uintptr, mode Tmode_t) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v mode=%v, (%v:)", tls, path, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfchmodat(tls, -int32(100), path, mode, int32(AT_SYMLINK_NOFOLLOW)) +} + +func Xlstat(tls *TLS, path uintptr, buf uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v buf=%v, (%v:)", tls, path, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfstatat(tls, -int32(100), path, buf, int32(AT_SYMLINK_NOFOLLOW)) +} + +func Xmkdir(tls *TLS, path uintptr, mode Tmode_t) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v mode=%v, (%v:)", tls, path, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_mkdirat), int64(-Int32FromInt32(100)), int64(path), Int64FromUint32(mode))))) +} + +func Xmkdirat(tls *TLS, fd int32, path uintptr, mode Tmode_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v path=%v mode=%v, (%v:)", tls, fd, path, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_mkdirat), int64(fd), int64(path), Int64FromUint32(mode))))) +} + +func Xmkfifo(tls *TLS, path uintptr, mode Tmode_t) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v mode=%v, (%v:)", tls, path, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xmknod(tls, path, mode|uint32(S_IFIFO), uint64(0)) +} + +func Xmkfifoat(tls *TLS, fd int32, path uintptr, mode Tmode_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v path=%v mode=%v, (%v:)", tls, fd, path, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xmknodat(tls, fd, path, mode|uint32(S_IFIFO), uint64(0)) +} + +func Xmknod(tls *TLS, path uintptr, mode Tmode_t, dev Tdev_t) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v mode=%v dev=%v, (%v:)", tls, path, mode, dev, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_mknodat), int64(-Int32FromInt32(100)), int64(path), Int64FromUint32(mode), Int64FromUint64(dev))))) +} + +func Xmknodat(tls *TLS, fd int32, path uintptr, mode Tmode_t, dev Tdev_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v path=%v mode=%v dev=%v, (%v:)", tls, fd, path, mode, dev, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_mknodat), int64(fd), int64(path), Int64FromUint32(mode), Int64FromUint64(dev))))) +} + +func Xstat(tls *TLS, path uintptr, buf uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v buf=%v, (%v:)", tls, path, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfstatat(tls, -int32(100), path, buf, 0) +} + +func ___statfs(tls *TLS, path uintptr, buf uintptr) (r int32) { + **(**Tstatfs)(__ccgo_up(buf)) = Tstatfs{} + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_statfs), int64(path), int64(buf))))) +} + +func Xfstatfs(tls *TLS, fd int32, buf uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v, (%v:)", tls, fd, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + **(**Tstatfs)(__ccgo_up(buf)) = Tstatfs{} + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_fstatfs), int64(fd), int64(buf))))) +} + +func _fixup(tls *TLS, out uintptr, in uintptr) { + var v1 uint64 + _ = v1 + **(**Tstatvfs)(__ccgo_up(out)) = Tstatvfs{} + (*Tstatvfs)(unsafe.Pointer(out)).Ff_bsize = (*Tstatfs)(unsafe.Pointer(in)).Ff_bsize + if (*Tstatfs)(unsafe.Pointer(in)).Ff_frsize != 0 { + v1 = (*Tstatfs)(unsafe.Pointer(in)).Ff_frsize + } else { + v1 = (*Tstatfs)(unsafe.Pointer(in)).Ff_bsize + } + (*Tstatvfs)(unsafe.Pointer(out)).Ff_frsize = v1 + (*Tstatvfs)(unsafe.Pointer(out)).Ff_blocks = (*Tstatfs)(unsafe.Pointer(in)).Ff_blocks + (*Tstatvfs)(unsafe.Pointer(out)).Ff_bfree = (*Tstatfs)(unsafe.Pointer(in)).Ff_bfree + (*Tstatvfs)(unsafe.Pointer(out)).Ff_bavail = (*Tstatfs)(unsafe.Pointer(in)).Ff_bavail + (*Tstatvfs)(unsafe.Pointer(out)).Ff_files = (*Tstatfs)(unsafe.Pointer(in)).Ff_files + (*Tstatvfs)(unsafe.Pointer(out)).Ff_ffree = (*Tstatfs)(unsafe.Pointer(in)).Ff_ffree + (*Tstatvfs)(unsafe.Pointer(out)).Ff_favail = (*Tstatfs)(unsafe.Pointer(in)).Ff_ffree + (*Tstatvfs)(unsafe.Pointer(out)).Ff_fsid = Uint64FromInt32(**(**int32)(__ccgo_up(in + 56))) + (*Tstatvfs)(unsafe.Pointer(out)).Ff_flag = (*Tstatfs)(unsafe.Pointer(in)).Ff_flags + (*Tstatvfs)(unsafe.Pointer(out)).Ff_namemax = (*Tstatfs)(unsafe.Pointer(in)).Ff_namelen + (*Tstatvfs)(unsafe.Pointer(out)).Ff_type = uint32((*Tstatfs)(unsafe.Pointer(in)).Ff_type) +} + +func Xstatvfs(tls *TLS, path uintptr, buf uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v buf=%v, (%v:)", tls, path, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(128) + defer tls.Free(128) + var _ /* kbuf at bp+0 */ Tstatfs + if ___statfs(tls, path, bp) < 0 { + return -int32(1) + } + _fixup(tls, buf, bp) + return 0 +} + +func Xfstatvfs(tls *TLS, fd int32, buf uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v, (%v:)", tls, fd, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(128) + defer tls.Free(128) + var _ /* kbuf at bp+0 */ Tstatfs + if Xfstatfs(tls, fd, bp) < 0 { + return -int32(1) + } + _fixup(tls, buf, bp) + return 0 +} + +func Xumask(tls *TLS, mode Tmode_t) (r Tmode_t) { + if __ccgo_strace { + trc("tls=%v mode=%v, (%v:)", tls, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Uint32FromInt64(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_umask), Int64FromUint32(mode))))) +} + +func Xutimensat(tls *TLS, fd int32, path uintptr, times uintptr, flags int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v path=%v times=%v flags=%v, (%v:)", tls, fd, path, times, flags, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + if times != 0 && (**(**Ttimespec)(__ccgo_up(times))).Ftv_nsec == int64(UTIME_NOW) && (**(**Ttimespec)(__ccgo_up(times + 1*16))).Ftv_nsec == int64(UTIME_NOW) { + times = uintptr(0) + } + r = int32(X__syscall4(tls, int64(SYS_utimensat), int64(fd), int64(path), int64(times), int64(flags))) + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func X__fclose_ca(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return (*(*func(*TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fclose1})))(tls, f) +} + +func X__fdopen(tls *TLS, fd int32, mode uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v fd=%v mode=%v, (%v:)", tls, fd, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var f, v1 uintptr + var flags, v2 int32 + var _ /* wsz at bp+0 */ Twinsize + _, _, _, _ = f, flags, v1, v2 + /* Check for valid initial mode character */ + if !(Xstrchr(tls, __ccgo_ts+1504, Int32FromUint8(**(**uint8)(__ccgo_up(mode)))) != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(0) + } + /* Allocate FILE+buffer or fail */ + v1 = Xmalloc(tls, Uint64FromInt64(232)+Uint64FromInt32(UNGET)+Uint64FromInt32(BUFSIZ)) + f = v1 + if !(v1 != 0) { + return uintptr(0) + } + /* Zero-fill only the struct, not the buffer */ + Xmemset(tls, f, 0, uint64(232)) + /* Impose mode restrictions */ + if !(Xstrchr(tls, mode, int32('+')) != 0) { + if Int32FromUint8(**(**uint8)(__ccgo_up(mode))) == int32('r') { + v2 = int32(F_NOWR) + } else { + v2 = int32(F_NORD) + } + (*TFILE)(unsafe.Pointer(f)).Fflags = Uint32FromInt32(v2) + } + /* Apply close-on-exec flag */ + if Xstrchr(tls, mode, int32('e')) != 0 { + X__syscall3(tls, int64(SYS_fcntl), int64(fd), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + } + /* Set append mode on fd if opened for append */ + if Int32FromUint8(**(**uint8)(__ccgo_up(mode))) == int32('a') { + flags = int32(X__syscall2(tls, int64(SYS_fcntl), int64(fd), int64(Int32FromInt32(F_GETFL)))) + if !(flags&Int32FromInt32(O_APPEND) != 0) { + X__syscall3(tls, int64(SYS_fcntl), int64(fd), int64(Int32FromInt32(F_SETFL)), int64(flags|Int32FromInt32(O_APPEND))) + } + **(**uint32)(__ccgo_up(f)) |= uint32(F_APP) + } + (*TFILE)(unsafe.Pointer(f)).Ffd = fd + (*TFILE)(unsafe.Pointer(f)).Fbuf = f + uintptr(232) + uintptr(UNGET) + (*TFILE)(unsafe.Pointer(f)).Fbuf_size = uint64(BUFSIZ) + /* Activate line buffered mode for terminals */ + (*TFILE)(unsafe.Pointer(f)).Flbf = -int32(1) + if !((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_NOWR) != 0) && !(X__syscall3(tls, int64(SYS_ioctl), int64(fd), int64(Int32FromInt32(TIOCGWINSZ)), int64(bp)) != 0) { + (*TFILE)(unsafe.Pointer(f)).Flbf = int32('\n') + } + /* Initialize op ptrs. No problem if some are unneeded. */ + (*TFILE)(unsafe.Pointer(f)).Fread = __ccgo_fp(X__stdio_read) + (*TFILE)(unsafe.Pointer(f)).Fwrite = __ccgo_fp(X__stdio_write) + (*TFILE)(unsafe.Pointer(f)).Fseek = __ccgo_fp(X__stdio_seek) + (*TFILE)(unsafe.Pointer(f)).Fclose1 = __ccgo_fp(X__stdio_close) + if !(X__libc.Fthreaded != 0) { + AtomicStorePInt32(f+140, -int32(1)) + } + /* Add new FILE to open file list */ + return X__ofl_add(tls, f) +} + +func Xfdopen(tls *TLS, fd int32, mode uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v fd=%v mode=%v, (%v:)", tls, fd, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fdopen(tls, fd, mode) +} + +func X__fmodeflags(tls *TLS, mode uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v mode=%v, (%v:)", tls, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + var flags int32 + _ = flags + if Xstrchr(tls, mode, int32('+')) != 0 { + flags = int32(O_RDWR) + } else { + if Int32FromUint8(**(**uint8)(__ccgo_up(mode))) == int32('r') { + flags = O_RDONLY + } else { + flags = int32(O_WRONLY) + } + } + if Xstrchr(tls, mode, int32('x')) != 0 { + flags = flags | int32(O_EXCL) + } + if Xstrchr(tls, mode, int32('e')) != 0 { + flags = flags | int32(O_CLOEXEC) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(mode))) != int32('r') { + flags = flags | int32(O_CREAT) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(mode))) == int32('w') { + flags = flags | int32(O_TRUNC) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(mode))) == int32('a') { + flags = flags | int32(O_APPEND) + } + return flags +} + +func X__fopen_rb_ca(tls *TLS, filename uintptr, f uintptr, buf uintptr, len1 Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v filename=%v f=%v buf=%v len1=%v, (%v:)", tls, filename, f, buf, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + Xmemset(tls, f, 0, uint64(232)) + (*TFILE)(unsafe.Pointer(f)).Ffd = int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_openat), int64(-Int32FromInt32(100)), int64(filename), int64(Int32FromInt32(O_RDONLY)|Int32FromInt32(O_CLOEXEC)|Int32FromInt32(O_LARGEFILE)))))) + if (*TFILE)(unsafe.Pointer(f)).Ffd < 0 { + return uintptr(0) + } + X__syscall3(tls, int64(SYS_fcntl), int64((*TFILE)(unsafe.Pointer(f)).Ffd), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + (*TFILE)(unsafe.Pointer(f)).Fflags = Uint32FromInt32(Int32FromInt32(F_NOWR) | Int32FromInt32(F_PERM)) + (*TFILE)(unsafe.Pointer(f)).Fbuf = buf + uintptr(UNGET) + (*TFILE)(unsafe.Pointer(f)).Fbuf_size = len1 - uint64(UNGET) + (*TFILE)(unsafe.Pointer(f)).Fread = __ccgo_fp(X__stdio_read) + (*TFILE)(unsafe.Pointer(f)).Fseek = __ccgo_fp(X__stdio_seek) + (*TFILE)(unsafe.Pointer(f)).Fclose1 = __ccgo_fp(X__stdio_close) + AtomicStorePInt32(f+140, -int32(1)) + return f +} + +func X__overflow(tls *TLS, f uintptr, _c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v _c=%v, (%v:)", tls, f, _c, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uint8 + var v2, v3 uintptr + var _ /* c at bp+0 */ uint8 + _, _, _ = v1, v2, v3 + **(**uint8)(__ccgo_up(bp)) = Uint8FromInt32(_c) + if !((*TFILE)(unsafe.Pointer(f)).Fwend != 0) && X__towrite(tls, f) != 0 { + return -int32(1) + } + if (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwend && Int32FromUint8(**(**uint8)(__ccgo_up(bp))) != (*TFILE)(unsafe.Pointer(f)).Flbf { + v1 = **(**uint8)(__ccgo_up(bp)) + v3 = f + 40 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + **(**uint8)(__ccgo_up(v2)) = v1 + return Int32FromUint8(v1) + } + if (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tsize_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fwrite})))(tls, f, bp, uint64(1)) != uint64(1) { + return -int32(1) + } + return Int32FromUint8(**(**uint8)(__ccgo_up(bp))) +} + +func _dummy9(tls *TLS, fd int32) (r int32) { + return fd +} + +func X__stdio_close(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_close), int64(_dummy9(tls, (*TFILE)(unsafe.Pointer(f)).Ffd)))))) +} + +var _dummy_file = uintptr(0) + +func _close_file(tls *TLS, f uintptr) { + if !(f != 0) { + return + } + if AtomicLoadPInt32(f+140) >= 0 { + ___lockfile(tls, f) + } + if (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwbase { + (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tsize_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fwrite})))(tls, f, uintptr(0), uint64(0)) + } + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + (*(*func(*TLS, uintptr, Toff_t, int32) Toff_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fseek})))(tls, f, int64((*TFILE)(unsafe.Pointer(f)).Frpos)-int64((*TFILE)(unsafe.Pointer(f)).Frend), int32(1)) + } +} + +func X__stdio_exit(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + var f uintptr + _ = f + f = **(**uintptr)(__ccgo_up(X__ofl_lock(tls))) + for { + if !(f != 0) { + break + } + _close_file(tls, f) + goto _1 + _1: + ; + f = (*TFILE)(unsafe.Pointer(f)).Fnext + } + _close_file(tls, AtomicLoadPUintptr(uintptr(unsafe.Pointer(&X__stdin_used)))) + _close_file(tls, AtomicLoadPUintptr(uintptr(unsafe.Pointer(&X__stdout_used)))) + _close_file(tls, AtomicLoadPUintptr(uintptr(unsafe.Pointer(&X__stderr_used)))) +} + +func X__stdio_exit_needed(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + X__stdio_exit(tls) +} + +func X__stdio_read(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v f=%v buf=%v len1=%v, (%v:)", tls, f, buf, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var cnt Tssize_t + var v1 int64 + var v2 int32 + var v3, v4 uintptr + var _ /* iov at bp+0 */ [2]Tiovec + _, _, _, _, _ = cnt, v1, v2, v3, v4 + **(**[2]Tiovec)(__ccgo_up(bp)) = [2]Tiovec{ + 0: { + Fiov_base: buf, + Fiov_len: len1 - BoolUint64(!!((*TFILE)(unsafe.Pointer(f)).Fbuf_size != 0)), + }, + 1: { + Fiov_base: (*TFILE)(unsafe.Pointer(f)).Fbuf, + Fiov_len: (*TFILE)(unsafe.Pointer(f)).Fbuf_size, + }, + } + if (**(**[2]Tiovec)(__ccgo_up(bp)))[0].Fiov_len != 0 { + v1 = X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_readv), int64((*TFILE)(unsafe.Pointer(f)).Ffd), int64(bp), int64(Int32FromInt32(2))))) + } else { + v1 = X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_read), int64((*TFILE)(unsafe.Pointer(f)).Ffd), int64((**(**[2]Tiovec)(__ccgo_up(bp)))[int32(1)].Fiov_base), Int64FromUint64((**(**[2]Tiovec)(__ccgo_up(bp)))[int32(1)].Fiov_len)))) + } + cnt = v1 + if cnt <= 0 { + if cnt != 0 { + v2 = int32(F_ERR) + } else { + v2 = int32(F_EOF) + } + **(**uint32)(__ccgo_up(f)) |= Uint32FromInt32(v2) + return uint64(0) + } + if Uint64FromInt64(cnt) <= (**(**[2]Tiovec)(__ccgo_up(bp)))[0].Fiov_len { + return Uint64FromInt64(cnt) + } + cnt = Int64FromUint64(uint64(cnt) - (**(**[2]Tiovec)(__ccgo_up(bp)))[0].Fiov_len) + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Frend = (*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr(cnt) + if (*TFILE)(unsafe.Pointer(f)).Fbuf_size != 0 { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + **(**uint8)(__ccgo_up(buf + uintptr(len1-uint64(1)))) = **(**uint8)(__ccgo_up(v3)) + } + return len1 +} + +func X__stdio_seek(tls *TLS, f uintptr, off Toff_t, whence int32) (r Toff_t) { + if __ccgo_strace { + trc("tls=%v f=%v off=%v whence=%v, (%v:)", tls, f, off, whence, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lseek(tls, (*TFILE)(unsafe.Pointer(f)).Ffd, off, whence) +} + +func X__stdio_write(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v f=%v buf=%v len1=%v, (%v:)", tls, f, buf, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var cnt Tssize_t + var iov, v2, v3 uintptr + var iovcnt int32 + var rem Tsize_t + var v5 uint64 + var _ /* iovs at bp+0 */ [2]Tiovec + _, _, _, _, _, _, _ = cnt, iov, iovcnt, rem, v2, v3, v5 + **(**[2]Tiovec)(__ccgo_up(bp)) = [2]Tiovec{ + 0: { + Fiov_base: (*TFILE)(unsafe.Pointer(f)).Fwbase, + Fiov_len: Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Fwpos) - int64((*TFILE)(unsafe.Pointer(f)).Fwbase)), + }, + 1: { + Fiov_base: buf, + Fiov_len: len1, + }, + } + iov = bp + rem = (**(**Tiovec)(__ccgo_up(iov))).Fiov_len + (**(**Tiovec)(__ccgo_up(iov + 1*16))).Fiov_len + iovcnt = int32(2) + for { + cnt = X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_writev), int64((*TFILE)(unsafe.Pointer(f)).Ffd), int64(iov), int64(iovcnt)))) + if Uint64FromInt64(cnt) == rem { + (*TFILE)(unsafe.Pointer(f)).Fwend = (*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr((*TFILE)(unsafe.Pointer(f)).Fbuf_size) + v2 = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Fwbase = v2 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v2 + return len1 + } + if cnt < 0 { + v3 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Fwend = v3 + v2 = v3 + (*TFILE)(unsafe.Pointer(f)).Fwbase = v2 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v2 + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) + if iovcnt == int32(2) { + v5 = uint64(0) + } else { + v5 = len1 - (**(**Tiovec)(__ccgo_up(iov))).Fiov_len + } + return v5 + } + rem = rem - Uint64FromInt64(cnt) + if Uint64FromInt64(cnt) > (**(**Tiovec)(__ccgo_up(iov))).Fiov_len { + cnt = Int64FromUint64(uint64(cnt) - (**(**Tiovec)(__ccgo_up(iov))).Fiov_len) + iov += 16 + iovcnt = iovcnt - 1 + } + (**(**Tiovec)(__ccgo_up(iov))).Fiov_base = (**(**Tiovec)(__ccgo_up(iov))).Fiov_base + uintptr(cnt) + (**(**Tiovec)(__ccgo_up(iov))).Fiov_len -= Uint64FromInt64(cnt) + goto _1 + _1: + } + return r +} + +func X__stdout_write(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v f=%v buf=%v len1=%v, (%v:)", tls, f, buf, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* wsz at bp+0 */ Twinsize + (*TFILE)(unsafe.Pointer(f)).Fwrite = __ccgo_fp(X__stdio_write) + if !((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_SVB) != 0) && X__syscall3(tls, int64(SYS_ioctl), int64((*TFILE)(unsafe.Pointer(f)).Ffd), int64(Int32FromInt32(TIOCGWINSZ)), int64(bp)) != 0 { + (*TFILE)(unsafe.Pointer(f)).Flbf = -int32(1) + } + return X__stdio_write(tls, f, buf, len1) +} + +func X__toread(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1, v2 uintptr + var v4 int32 + _, _, _ = v1, v2, v4 + **(**int32)(__ccgo_up(f + 136)) |= (*TFILE)(unsafe.Pointer(f)).Fmode - int32(1) + if (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwbase { + (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tsize_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fwrite})))(tls, f, uintptr(0), uint64(0)) + } + v2 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Fwend = v2 + v1 = v2 + (*TFILE)(unsafe.Pointer(f)).Fwbase = v1 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v1 + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_NORD) != 0 { + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) + return -int32(1) + } + v1 = (*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr((*TFILE)(unsafe.Pointer(f)).Fbuf_size) + (*TFILE)(unsafe.Pointer(f)).Frend = v1 + (*TFILE)(unsafe.Pointer(f)).Frpos = v1 + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_EOF) != 0 { + v4 = -int32(1) + } else { + v4 = 0 + } + return v4 +} + +func X__toread_needs_stdio_exit(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + X__stdio_exit_needed(tls) +} + +func X__towrite(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 uintptr + _ = v1 + **(**int32)(__ccgo_up(f + 136)) |= (*TFILE)(unsafe.Pointer(f)).Fmode - int32(1) + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_NOWR) != 0 { + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) + return -int32(1) + } + /* Clear read buffer (easier than summoning nasal demons) */ + v1 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Frend = v1 + (*TFILE)(unsafe.Pointer(f)).Frpos = v1 + /* Activate write through the buffer. */ + v1 = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Fwbase = v1 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v1 + (*TFILE)(unsafe.Pointer(f)).Fwend = (*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr((*TFILE)(unsafe.Pointer(f)).Fbuf_size) + return 0 +} + +func X__towrite_needs_stdio_exit(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + X__stdio_exit_needed(tls) +} + +/* This function assumes it will never be called if there is already + * data buffered for reading. */ + +func X__uflow(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* c at bp+0 */ uint8 + if !(X__toread(tls, f) != 0) && (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tsize_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fread})))(tls, f, bp, uint64(1)) == uint64(1) { + return Int32FromUint8(**(**uint8)(__ccgo_up(bp))) + } + return -int32(1) +} + +func Xasprintf(tls *TLS, s uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v va=%v, (%v:)", tls, s, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvasprintf(tls, s, fmt, ap) + _ = ap + return ret +} + +func Xclearerr(tls *TLS, f uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } + var __need_unlock, v1 int32 + _, _ = __need_unlock, v1 + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + **(**uint32)(__ccgo_up(f)) &= Uint32FromInt32(^(Int32FromInt32(F_EOF) | Int32FromInt32(F_ERR))) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } +} + +func Xclearerr_unlocked(tls *TLS, f uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } + Xclearerr(tls, f) +} + +func Xdprintf(tls *TLS, fd int32, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v fmt=%v va=%v, (%v:)", tls, fd, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvdprintf(tls, fd, fmt, ap) + _ = ap + return ret +} + +const FSETLOCKING_BYCALLER = 2 +const FSETLOCKING_INTERNAL = 1 +const FSETLOCKING_QUERY = 0 + +func X_flushlbf(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + Xfflush(tls, uintptr(0)) +} + +func X__fsetlocking(tls *TLS, f uintptr, type1 int32) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v type1=%v, (%v:)", tls, f, type1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return 0 +} + +func X__fwriting(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32((*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_NORD) != 0 || (*TFILE)(unsafe.Pointer(f)).Fwend != 0) +} + +func X__freading(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32((*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_NOWR) != 0 || (*TFILE)(unsafe.Pointer(f)).Frend != 0) +} + +func X__freadable(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(!((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_NORD) != 0)) +} + +func X__fwritable(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(!((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_NOWR) != 0)) +} + +func X__flbf(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32((*TFILE)(unsafe.Pointer(f)).Flbf >= 0) +} + +func X__fbufsize(tls *TLS, f uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return (*TFILE)(unsafe.Pointer(f)).Fbuf_size +} + +func X__fpending(tls *TLS, f uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int64 + _ = v1 + if (*TFILE)(unsafe.Pointer(f)).Fwend != 0 { + v1 = int64((*TFILE)(unsafe.Pointer(f)).Fwpos) - int64((*TFILE)(unsafe.Pointer(f)).Fwbase) + } else { + v1 = 0 + } + return Uint64FromInt64(v1) +} + +func X__fpurge(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1, v2 uintptr + _, _ = v1, v2 + if !(f != 0) { // libbsd fpurge test fails w/o this. + return int32(1) + } + v2 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Fwend = v2 + v1 = v2 + (*TFILE)(unsafe.Pointer(f)).Fwbase = v1 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v1 + v1 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Frend = v1 + (*TFILE)(unsafe.Pointer(f)).Frpos = v1 + return 0 +} + +func Xfpurge(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fpurge(tls, f) +} + +func X__freadahead(tls *TLS, f uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int64 + _ = v1 + if (*TFILE)(unsafe.Pointer(f)).Frend != 0 { + v1 = int64((*TFILE)(unsafe.Pointer(f)).Frend) - int64((*TFILE)(unsafe.Pointer(f)).Frpos) + } else { + v1 = 0 + } + return Uint64FromInt64(v1) +} + +func X__freadptr(tls *TLS, f uintptr, sizep uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v sizep=%v, (%v:)", tls, f, sizep, origin(2)) + defer func() { trc("-> %v", r) }() + } + if (*TFILE)(unsafe.Pointer(f)).Frpos == (*TFILE)(unsafe.Pointer(f)).Frend { + return uintptr(0) + } + **(**Tsize_t)(__ccgo_up(sizep)) = Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Frend) - int64((*TFILE)(unsafe.Pointer(f)).Frpos)) + return (*TFILE)(unsafe.Pointer(f)).Frpos +} + +func X__freadptrinc(tls *TLS, f uintptr, inc Tsize_t) { + if __ccgo_strace { + trc("tls=%v f=%v inc=%v, (%v:)", tls, f, inc, origin(2)) + } + **(**uintptr)(__ccgo_up(f + 8)) += uintptr(inc) +} + +func X__fseterr(tls *TLS, f uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) +} + +func _dummy10(tls *TLS, f uintptr) { +} + +func Xfclose(tls *TLS, f uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var __need_unlock, r, v1 int32 + var head uintptr + _, _, _, _ = __need_unlock, head, r, v1 + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + r = Xfflush(tls, f) + r = r | (*(*func(*TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fclose1})))(tls, f) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + /* Past this point, f is closed and any further explict access + * to it is undefined. However, it still exists as an entry in + * the open file list and possibly in the thread's locked files + * list, if it was closed while explicitly locked. Functions + * which process these lists must tolerate dead FILE objects + * (which necessarily have inactive buffer pointers) without + * producing any side effects. */ + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_PERM) != 0 { + return r + } + X__unlist_locked_file(tls, f) + head = X__ofl_lock(tls) + if (*TFILE)(unsafe.Pointer(f)).Fprev != 0 { + (*TFILE)(unsafe.Pointer((*TFILE)(unsafe.Pointer(f)).Fprev)).Fnext = (*TFILE)(unsafe.Pointer(f)).Fnext + } + if (*TFILE)(unsafe.Pointer(f)).Fnext != 0 { + (*TFILE)(unsafe.Pointer((*TFILE)(unsafe.Pointer(f)).Fnext)).Fprev = (*TFILE)(unsafe.Pointer(f)).Fprev + } + if **(**uintptr)(__ccgo_up(head)) == f { + **(**uintptr)(__ccgo_up(head)) = (*TFILE)(unsafe.Pointer(f)).Fnext + } + X__ofl_unlock(tls) + Xfree(tls, (*TFILE)(unsafe.Pointer(f)).Fgetln_buf) + Xfree(tls, f) + return r +} + +func Xfeof(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, ret, v1 int32 + _, _, _ = __need_unlock, ret, v1 + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + ret = BoolInt32(!!((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_EOF) != 0)) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return ret +} + +func X_IO_feof_unlocked(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfeof(tls, f) +} + +func Xfeof_unlocked(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfeof(tls, f) +} + +func Xferror(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, ret, v1 int32 + _, _, _ = __need_unlock, ret, v1 + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + ret = BoolInt32(!!((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_ERR) != 0)) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return ret +} + +func X_IO_ferror_unlocked(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xferror(tls, f) +} + +func Xferror_unlocked(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xferror(tls, f) +} + +// C documentation +// +// /* stdout.c will override this if linked */ +var _dummy11 = uintptr(0) + +func Xfflush(tls *TLS, f uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var __need_unlock, __need_unlock1, r, v2 int32 + var v4, v5 uintptr + _, _, _, _, _, _ = __need_unlock, __need_unlock1, r, v2, v4, v5 + if !(f != 0) { + r = 0 + if AtomicLoadPUintptr(uintptr(unsafe.Pointer(&X__stdout_used))) != 0 { + r = r | Xfflush(tls, AtomicLoadPUintptr(uintptr(unsafe.Pointer(&X__stdout_used)))) + } + if AtomicLoadPUintptr(uintptr(unsafe.Pointer(&X__stderr_used))) != 0 { + r = r | Xfflush(tls, AtomicLoadPUintptr(uintptr(unsafe.Pointer(&X__stderr_used)))) + } + f = **(**uintptr)(__ccgo_up(X__ofl_lock(tls))) + for { + if !(f != 0) { + break + } + if AtomicLoadPInt32(f+140) >= 0 { + v2 = ___lockfile(tls, f) + } else { + v2 = 0 + } + __need_unlock = v2 + if (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwbase { + r = r | Xfflush(tls, f) + } + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + goto _1 + _1: + ; + f = (*TFILE)(unsafe.Pointer(f)).Fnext + } + X__ofl_unlock(tls) + return r + } + if AtomicLoadPInt32(f+140) >= 0 { + v2 = ___lockfile(tls, f) + } else { + v2 = 0 + } + __need_unlock1 = v2 + /* If writing, flush output */ + if (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwbase { + (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tsize_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fwrite})))(tls, f, uintptr(0), uint64(0)) + if !((*TFILE)(unsafe.Pointer(f)).Fwpos != 0) { + if __need_unlock1 != 0 { + ___unlockfile(tls, f) + } + return -int32(1) + } + } + /* If reading, sync position, per POSIX */ + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + (*(*func(*TLS, uintptr, Toff_t, int32) Toff_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fseek})))(tls, f, int64((*TFILE)(unsafe.Pointer(f)).Frpos)-int64((*TFILE)(unsafe.Pointer(f)).Frend), int32(1)) + } + /* Clear read and write modes */ + v5 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Fwend = v5 + v4 = v5 + (*TFILE)(unsafe.Pointer(f)).Fwbase = v4 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v4 + v4 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Frend = v4 + (*TFILE)(unsafe.Pointer(f)).Frpos = v4 + if __need_unlock1 != 0 { + ___unlockfile(tls, f) + } + return 0 +} + +func Xfflush_unlocked(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfflush(tls, f) +} + +func _locking_getc(tls *TLS, f uintptr) (r1 int32) { + var c, old, old1, r, v, v13, v16, v2, v5, v7, v9 int32 + var v1, v10, v11, v12 uintptr + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = c, old, old1, r, v, v1, v10, v11, v12, v13, v16, v2, v5, v7, v9 + v1 = f + 140 + for { + // __asm__ __volatile__ ("ldaxr %w0,%1" : "=r"(v) : "Q"(*p)); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 5, __ccgo_ts+1508) + v5 = v + goto _6 + _6: + old = v5 + if old != 0 { + // __asm__ __volatile__ ("dmb ish" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 20, __ccgo_ts+1508) + break + } + goto _4 + _4: + ; + // __asm__ __volatile__ ("stlxr %w0,%w2,%1" : "=&r"(r), "=Q"(*p) : "r"(v) : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 13, __ccgo_ts+1508) + v2 = BoolInt32(!(r != 0)) + goto _3 + _3: + ; + if !!(v2 != 0) { + break + } + } + v7 = old + goto _8 +_8: + if v7 != 0 { + ___lockfile(tls, f) + } + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + v10 = f + 8 + v1 = *(*uintptr)(unsafe.Pointer(v10)) + *(*uintptr)(unsafe.Pointer(v10)) = *(*uintptr)(unsafe.Pointer(v10)) + 1 + v2 = Int32FromUint8(**(**uint8)(__ccgo_up(v1))) + } else { + v2 = X__uflow(tls, f) + } + c = v2 + v11 = f + 140 + for { + // __asm__ __volatile__ ("ldaxr %w0,%1" : "=r"(v) : "Q"(*p)); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 5, __ccgo_ts+1508) + v7 = v + goto _17 + _17: + old1 = v7 + goto _15 + _15: + ; + // __asm__ __volatile__ ("stlxr %w0,%w2,%1" : "=&r"(r), "=Q"(*p) : "r"(v) : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 13, __ccgo_ts+1508) + v5 = BoolInt32(!(r != 0)) + goto _14 + _14: + ; + if !!(v5 != 0) { + break + } + } + v9 = old1 + goto _19 +_19: + if v9&int32(MAYBE_WAITERS) != 0 { + v12 = f + 140 + v13 = int32(1) + v16 = int32(1) + if v16 != 0 { + v16 = int32(FUTEX_PRIVATE) + } + if v13 < Int32FromInt32(0) { + v13 = int32(INT_MAX) + } + _ = X__syscall3(tls, int64(SYS_futex), int64(v12), int64(Int32FromInt32(FUTEX_WAKE)|v16), int64(v13)) != int64(-int32(ENOSYS)) || X__syscall3(tls, int64(SYS_futex), int64(v12), int64(Int32FromInt32(FUTEX_WAKE)), int64(v13)) != 0 + } + return c +} + +func Xfgetc(tls *TLS, f1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f1=%v, (%v:)", tls, f1, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l, v2, v4 int32 + var v1, v5, v6 uintptr + _, _, _, _, _, _ = l, v1, v2, v4, v5, v6 + v1 = f1 + l = AtomicLoadPInt32(v1 + 140) + if l < 0 || l != 0 && l & ^Int32FromInt32(MAYBE_WAITERS) == (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Ftid { + if (*TFILE)(unsafe.Pointer(v1)).Frpos != (*TFILE)(unsafe.Pointer(v1)).Frend { + v6 = v1 + 8 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + v4 = Int32FromUint8(**(**uint8)(__ccgo_up(v5))) + } else { + v4 = X__uflow(tls, v1) + } + v2 = v4 + goto _3 + } + v2 = _locking_getc(tls, v1) + goto _3 +_3: + return v2 +} + +func Xfgetln(tls *TLS, f uintptr, plen uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v plen=%v, (%v:)", tls, f, plen, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var __need_unlock, v1, v2 int32 + var l, v8 Tssize_t + var ret, z, v3, v4 uintptr + var v6 bool + _, _, _, _, _, _, _, _, _, _ = __need_unlock, l, ret, z, v1, v2, v3, v4, v6, v8 + ret = uintptr(0) + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v2 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v2 = X__uflow(tls, f) + } + Xungetc(tls, v2, f) + if v6 = (*TFILE)(unsafe.Pointer(f)).Frend != 0; v6 { + v3 = Xmemchr(tls, (*TFILE)(unsafe.Pointer(f)).Frpos, int32('\n'), Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Frend)-int64((*TFILE)(unsafe.Pointer(f)).Frpos))) + z = v3 + } + if v6 && v3 != 0 { + ret = (*TFILE)(unsafe.Pointer(f)).Frpos + z = z + 1 + v3 = z + **(**Tsize_t)(__ccgo_up(plen)) = Uint64FromInt64(int64(v3) - int64(ret)) + (*TFILE)(unsafe.Pointer(f)).Frpos = z + } else { + *(*[1]Tsize_t)(unsafe.Pointer(bp)) = [1]Tsize_t{} + v8 = Xgetline(tls, f+168, bp, f) + l = v8 + if v8 > 0 { + **(**Tsize_t)(__ccgo_up(plen)) = Uint64FromInt64(l) + ret = (*TFILE)(unsafe.Pointer(f)).Fgetln_buf + } + } + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return ret +} + +func Xfgetpos(tls *TLS, f uintptr, pos uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v pos=%v, (%v:)", tls, f, pos, origin(2)) + defer func() { trc("-> %v", r) }() + } + var off Toff_t + _ = off + off = X__ftello(tls, f) + if off < 0 { + return -int32(1) + } + **(**int64)(__ccgo_up(pos)) = off + return 0 +} + +func Xfgets(tls *TLS, s uintptr, n int32, f uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v f=%v, (%v:)", tls, s, n, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, c, v1, v4 int32 + var k Tsize_t + var p, z, v6, v7 uintptr + var v2 int64 + var v3 uint64 + var v8 uint8 + _, _, _, _, _, _, _, _, _, _, _, _ = __need_unlock, c, k, p, z, v1, v2, v3, v4, v6, v7, v8 + p = s + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + if n <= int32(1) { + **(**int32)(__ccgo_up(f + 136)) |= (*TFILE)(unsafe.Pointer(f)).Fmode - int32(1) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + if n < int32(1) { + return uintptr(0) + } + **(**uint8)(__ccgo_up(s)) = uint8(0) + return s + } + n = n - 1 + for n != 0 { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + z = Xmemchr(tls, (*TFILE)(unsafe.Pointer(f)).Frpos, int32('\n'), Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Frend)-int64((*TFILE)(unsafe.Pointer(f)).Frpos))) + if z != 0 { + v2 = int64(z) - int64((*TFILE)(unsafe.Pointer(f)).Frpos) + int64(1) + } else { + v2 = int64((*TFILE)(unsafe.Pointer(f)).Frend) - int64((*TFILE)(unsafe.Pointer(f)).Frpos) + } + k = Uint64FromInt64(v2) + if k < Uint64FromInt32(n) { + v3 = k + } else { + v3 = Uint64FromInt32(n) + } + k = v3 + Xmemcpy(tls, p, (*TFILE)(unsafe.Pointer(f)).Frpos, k) + **(**uintptr)(__ccgo_up(f + 8)) += uintptr(k) + p = p + uintptr(k) + n = Int32FromUint64(uint64(n) - k) + if z != 0 || !(n != 0) { + break + } + } + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + v7 = f + 8 + v6 = *(*uintptr)(unsafe.Pointer(v7)) + *(*uintptr)(unsafe.Pointer(v7)) = *(*uintptr)(unsafe.Pointer(v7)) + 1 + v4 = Int32FromUint8(**(**uint8)(__ccgo_up(v6))) + } else { + v4 = X__uflow(tls, f) + } + v1 = v4 + c = v1 + if v1 < 0 { + if p == s || !((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_EOF) != 0) { + s = uintptr(0) + } + break + } + n = n - 1 + v8 = Uint8FromInt32(c) + v6 = p + p = p + 1 + **(**uint8)(__ccgo_up(v6)) = v8 + if Int32FromUint8(v8) == int32('\n') { + break + } + } + if s != 0 { + **(**uint8)(__ccgo_up(p)) = uint8(0) + } + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return s +} + +func Xfgets_unlocked(tls *TLS, s uintptr, n int32, f uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v f=%v, (%v:)", tls, s, n, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfgets(tls, s, n, f) +} + +func ___fgetwc_unlocked_internal(tls *TLS, f uintptr) (r Twint_t) { + bp := tls.Alloc(32) + defer tls.Free(32) + var c, first, v1, v2 int32 + var l Tsize_t + var v3, v4 uintptr + var _ /* b at bp+16 */ uint8 + var _ /* st at bp+8 */ Tmbstate_t + var _ /* wc at bp+0 */ Twchar_t + _, _, _, _, _, _, _ = c, first, l, v1, v2, v3, v4 + /* Convert character from buffer if possible */ + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + l = Uint64FromInt32(Xmbtowc(tls, bp, (*TFILE)(unsafe.Pointer(f)).Frpos, Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Frend)-int64((*TFILE)(unsafe.Pointer(f)).Frpos)))) + if l+uint64(1) >= uint64(1) { + **(**uintptr)(__ccgo_up(f + 8)) += uintptr(l + BoolUint64(!(l != 0))) /* l==0 means 1 byte, null */ + return **(**Twchar_t)(__ccgo_up(bp)) + } + } + /* Convert character byte-by-byte */ + **(**Tmbstate_t)(__ccgo_up(bp + 8)) = Tmbstate_t{} + first = int32(1) + for cond := true; cond; cond = l == Uint64FromInt32(-Int32FromInt32(2)) { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v2 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v2 = X__uflow(tls, f) + } + v1 = v2 + c = v1 + **(**uint8)(__ccgo_up(bp + 16)) = Uint8FromInt32(v1) + if c < 0 { + if !(first != 0) { + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EILSEQ) + } + return uint32(0xffffffff) + } + l = Xmbrtowc(tls, bp, bp+16, uint64(1), bp+8) + if l == Uint64FromInt32(-Int32FromInt32(1)) { + if !(first != 0) { + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) + Xungetc(tls, Int32FromUint8(**(**uint8)(__ccgo_up(bp + 16))), f) + } + return uint32(0xffffffff) + } + first = 0 + } + return **(**Twchar_t)(__ccgo_up(bp)) +} + +func X__fgetwc_unlocked(tls *TLS, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var loc Tlocale_t + var ploc uintptr + var wc Twchar_t + _, _, _ = loc, ploc, wc + ploc = uintptr(___get_tp(tls)) + 152 + loc = **(**Tlocale_t)(__ccgo_up(ploc)) + if (*TFILE)(unsafe.Pointer(f)).Fmode <= 0 { + Xfwide(tls, f, int32(1)) + } + **(**Tlocale_t)(__ccgo_up(ploc)) = (*TFILE)(unsafe.Pointer(f)).Flocale + wc = ___fgetwc_unlocked_internal(tls, f) + **(**Tlocale_t)(__ccgo_up(ploc)) = loc + return wc +} + +func Xfgetwc(tls *TLS, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, v1 int32 + var c Twint_t + _, _, _ = __need_unlock, c, v1 + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + c = X__fgetwc_unlocked(tls, f) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return c +} + +func Xfgetwc_unlocked(tls *TLS, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fgetwc_unlocked(tls, f) +} + +func Xgetwc_unlocked(tls *TLS, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fgetwc_unlocked(tls, f) +} + +func Xfgetws(tls *TLS, s uintptr, n int32, f uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v f=%v, (%v:)", tls, s, n, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, v1 int32 + var c Twint_t + var p, v4 uintptr + _, _, _, _, _ = __need_unlock, c, p, v1, v4 + p = s + v1 = n + n = n - 1 + if !(v1 != 0) { + return s + } + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + for { + if !(n != 0) { + break + } + c = X__fgetwc_unlocked(tls, f) + if c == uint32(0xffffffff) { + break + } + v4 = p + p += 4 + **(**Twchar_t)(__ccgo_up(v4)) = c + if c == uint32('\n') { + break + } + goto _3 + _3: + ; + n = n - 1 + } + **(**Twchar_t)(__ccgo_up(p)) = uint32(0) + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_ERR) != 0 { + p = s + } + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + if p == s { + v4 = UintptrFromInt32(0) + } else { + v4 = s + } + return v4 +} + +func Xfgetws_unlocked(tls *TLS, s uintptr, n int32, f uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v f=%v, (%v:)", tls, s, n, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfgetws(tls, s, n, f) +} + +func Xfileno(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, fd, v1 int32 + _, _, _ = __need_unlock, fd, v1 + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + fd = (*TFILE)(unsafe.Pointer(f)).Ffd + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + if fd < 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EBADF) + return -int32(1) + } + return fd +} + +func Xfileno_unlocked(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfileno(tls, f) +} + +func Xflockfile(tls *TLS, f uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } + if !(Xftrylockfile(tls, f) != 0) { + return + } + ___lockfile(tls, f) + X__register_locked_file(tls, f, uintptr(___get_tp(tls))) +} + +type Tcookie = struct { + Fpos Tsize_t + Flen1 Tsize_t + Fsize Tsize_t + Fbuf uintptr + Fmode int32 +} + +type Tmem_FILE = struct { + Ff TFILE + Fc Tcookie + Fbuf [1032]uint8 +} + +func _mseek(tls *TLS, f uintptr, off Toff_t, whence int32) (r Toff_t) { + bp := tls.Alloc(32) + defer tls.Free(32) + var base Tssize_t + var c uintptr + var v2 Tsize_t + _, _, _ = base, c, v2 + c = (*TFILE)(unsafe.Pointer(f)).Fcookie + if !(Uint32FromInt32(whence) > uint32(2)) { + goto _1 + } + goto fail +fail: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return int64(-int32(1)) +_1: + ; + *(*[3]Tsize_t)(unsafe.Pointer(bp)) = [3]Tsize_t{ + 1: (*Tcookie)(unsafe.Pointer(c)).Fpos, + 2: (*Tcookie)(unsafe.Pointer(c)).Flen1, + } + base = Int64FromUint64(**(**Tsize_t)(__ccgo_up(bp + uintptr(whence)*8))) + if off < -base || off > Int64FromUint64((*Tcookie)(unsafe.Pointer(c)).Fsize)-base { + goto fail + } + v2 = Uint64FromInt64(base + off) + (*Tcookie)(unsafe.Pointer(c)).Fpos = v2 + return Int64FromUint64(v2) +} + +func _mread(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + var c uintptr + var rem Tsize_t + _, _ = c, rem + c = (*TFILE)(unsafe.Pointer(f)).Fcookie + rem = (*Tcookie)(unsafe.Pointer(c)).Flen1 - (*Tcookie)(unsafe.Pointer(c)).Fpos + if (*Tcookie)(unsafe.Pointer(c)).Fpos > (*Tcookie)(unsafe.Pointer(c)).Flen1 { + rem = uint64(0) + } + if len1 > rem { + len1 = rem + **(**uint32)(__ccgo_up(f)) |= uint32(F_EOF) + } + Xmemcpy(tls, buf, (*Tcookie)(unsafe.Pointer(c)).Fbuf+uintptr((*Tcookie)(unsafe.Pointer(c)).Fpos), len1) + **(**Tsize_t)(__ccgo_up(c)) += len1 + rem = rem - len1 + if rem > (*TFILE)(unsafe.Pointer(f)).Fbuf_size { + rem = (*TFILE)(unsafe.Pointer(f)).Fbuf_size + } + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Frend = (*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr(rem) + Xmemcpy(tls, (*TFILE)(unsafe.Pointer(f)).Frpos, (*Tcookie)(unsafe.Pointer(c)).Fbuf+uintptr((*Tcookie)(unsafe.Pointer(c)).Fpos), rem) + **(**Tsize_t)(__ccgo_up(c)) += rem + return len1 +} + +func _mwrite(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + var c uintptr + var len2, rem Tsize_t + _, _, _ = c, len2, rem + c = (*TFILE)(unsafe.Pointer(f)).Fcookie + len2 = Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Fwpos) - int64((*TFILE)(unsafe.Pointer(f)).Fwbase)) + if len2 != 0 { + (*TFILE)(unsafe.Pointer(f)).Fwpos = (*TFILE)(unsafe.Pointer(f)).Fwbase + if _mwrite(tls, f, (*TFILE)(unsafe.Pointer(f)).Fwpos, len2) < len2 { + return uint64(0) + } + } + if (*Tcookie)(unsafe.Pointer(c)).Fmode == int32('a') { + (*Tcookie)(unsafe.Pointer(c)).Fpos = (*Tcookie)(unsafe.Pointer(c)).Flen1 + } + rem = (*Tcookie)(unsafe.Pointer(c)).Fsize - (*Tcookie)(unsafe.Pointer(c)).Fpos + if len1 > rem { + len1 = rem + } + Xmemcpy(tls, (*Tcookie)(unsafe.Pointer(c)).Fbuf+uintptr((*Tcookie)(unsafe.Pointer(c)).Fpos), buf, len1) + **(**Tsize_t)(__ccgo_up(c)) += len1 + if (*Tcookie)(unsafe.Pointer(c)).Fpos > (*Tcookie)(unsafe.Pointer(c)).Flen1 { + (*Tcookie)(unsafe.Pointer(c)).Flen1 = (*Tcookie)(unsafe.Pointer(c)).Fpos + if (*Tcookie)(unsafe.Pointer(c)).Flen1 < (*Tcookie)(unsafe.Pointer(c)).Fsize { + **(**uint8)(__ccgo_up((*Tcookie)(unsafe.Pointer(c)).Fbuf + uintptr((*Tcookie)(unsafe.Pointer(c)).Flen1))) = uint8(0) + } else { + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_NORD) != 0 && (*Tcookie)(unsafe.Pointer(c)).Fsize != 0 { + **(**uint8)(__ccgo_up((*Tcookie)(unsafe.Pointer(c)).Fbuf + uintptr((*Tcookie)(unsafe.Pointer(c)).Fsize-uint64(1)))) = uint8(0) + } + } + } + return len1 +} + +func _mclose(tls *TLS, m uintptr) (r int32) { + return 0 +} + +func Xfmemopen(tls *TLS, buf uintptr, size Tsize_t, mode uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v buf=%v size=%v mode=%v, (%v:)", tls, buf, size, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + var f uintptr + var plus, v2 int32 + var v1 uint64 + var v3 Tsize_t + _, _, _, _, _ = f, plus, v1, v2, v3 + plus = BoolInt32(!!(Xstrchr(tls, mode, int32('+')) != 0)) + if !(Xstrchr(tls, __ccgo_ts+1504, Int32FromUint8(**(**uint8)(__ccgo_up(mode)))) != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(0) + } + if !(buf != 0) && size > Uint64FromInt64(Int64FromInt64(INT64_MAX)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOMEM) + return uintptr(0) + } + if buf != 0 { + v1 = uint64(0) + } else { + v1 = size + } + f = Xmalloc(tls, uint64(1304)+v1) + if !(f != 0) { + return uintptr(0) + } + Xmemset(tls, f, 0, uint64(UintptrFromInt32(0)+272)) + (*Tmem_FILE)(unsafe.Pointer(f)).Ff.Fcookie = f + 232 + (*Tmem_FILE)(unsafe.Pointer(f)).Ff.Ffd = -int32(1) + (*Tmem_FILE)(unsafe.Pointer(f)).Ff.Flbf = -int32(1) + (*Tmem_FILE)(unsafe.Pointer(f)).Ff.Fbuf = f + 272 + uintptr(UNGET) + (*Tmem_FILE)(unsafe.Pointer(f)).Ff.Fbuf_size = Uint64FromInt64(1032) - Uint64FromInt32(UNGET) + if !(buf != 0) { + buf = f + 1304 + Xmemset(tls, buf, 0, size) + } + (*Tmem_FILE)(unsafe.Pointer(f)).Fc.Fbuf = buf + (*Tmem_FILE)(unsafe.Pointer(f)).Fc.Fsize = size + (*Tmem_FILE)(unsafe.Pointer(f)).Fc.Fmode = Int32FromUint8(**(**uint8)(__ccgo_up(mode))) + if !(plus != 0) { + if Int32FromUint8(**(**uint8)(__ccgo_up(mode))) == int32('r') { + v2 = int32(F_NOWR) + } else { + v2 = int32(F_NORD) + } + (*Tmem_FILE)(unsafe.Pointer(f)).Ff.Fflags = Uint32FromInt32(v2) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(mode))) == int32('r') { + (*Tmem_FILE)(unsafe.Pointer(f)).Fc.Flen1 = size + } else { + if Int32FromUint8(**(**uint8)(__ccgo_up(mode))) == int32('a') { + v3 = Xstrnlen(tls, buf, size) + (*Tmem_FILE)(unsafe.Pointer(f)).Fc.Fpos = v3 + (*Tmem_FILE)(unsafe.Pointer(f)).Fc.Flen1 = v3 + } else { + if plus != 0 { + **(**uint8)(__ccgo_up((*Tmem_FILE)(unsafe.Pointer(f)).Fc.Fbuf)) = uint8(0) + } + } + } + (*Tmem_FILE)(unsafe.Pointer(f)).Ff.Fread = __ccgo_fp(_mread) + (*Tmem_FILE)(unsafe.Pointer(f)).Ff.Fwrite = __ccgo_fp(_mwrite) + (*Tmem_FILE)(unsafe.Pointer(f)).Ff.Fseek = __ccgo_fp(_mseek) + (*Tmem_FILE)(unsafe.Pointer(f)).Ff.Fclose1 = __ccgo_fp(_mclose) + if !(X__libc.Fthreaded != 0) { + AtomicStorePInt32(f+140, -int32(1)) + } + return X__ofl_add(tls, f) +} + +func Xfopen(tls *TLS, filename uintptr, mode uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v filename=%v mode=%v, (%v:)", tls, filename, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + var f uintptr + var fd, flags int32 + _, _, _ = f, fd, flags + /* Check for valid initial mode character */ + if !(Xstrchr(tls, __ccgo_ts+1504, Int32FromUint8(**(**uint8)(__ccgo_up(mode)))) != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(0) + } + /* Compute the flags to pass to open() */ + flags = X__fmodeflags(tls, mode) + fd = int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_openat), int64(-Int32FromInt32(100)), int64(filename), int64(flags|Int32FromInt32(O_LARGEFILE)), int64(Int32FromInt32(0666)))))) + if fd < 0 { + return uintptr(0) + } + if flags&int32(O_CLOEXEC) != 0 { + X__syscall3(tls, int64(SYS_fcntl), int64(fd), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + } + f = X__fdopen(tls, fd, mode) + if f != 0 { + return f + } + X__syscall1(tls, int64(SYS_close), int64(fd)) + return uintptr(0) +} + +type Tfcookie = struct { + Fcookie uintptr + Fiofuncs Tcookie_io_functions_t +} + +type Tcookie_FILE = struct { + Ff TFILE + Ffc Tfcookie + Fbuf [1032]uint8 +} + +func _cookieread(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + var fc, v2, v3 uintptr + var len2, readlen, remain, v1 Tsize_t + var ret Tssize_t + var v4 int32 + _, _, _, _, _, _, _, _, _ = fc, len2, readlen, remain, ret, v1, v2, v3, v4 + fc = (*TFILE)(unsafe.Pointer(f)).Fcookie + ret = int64(-int32(1)) + remain = len1 + readlen = uint64(0) + len2 = len1 - BoolUint64(!!((*TFILE)(unsafe.Pointer(f)).Fbuf_size != 0)) + if !((*Tfcookie)(unsafe.Pointer(fc)).Fiofuncs.Fread != 0) { + goto bail + } + if len2 != 0 { + ret = (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tssize_t)(unsafe.Pointer(&struct{ uintptr }{(*Tfcookie)(unsafe.Pointer(fc)).Fiofuncs.Fread})))(tls, (*Tfcookie)(unsafe.Pointer(fc)).Fcookie, buf, len2) + if ret <= 0 { + goto bail + } + readlen = readlen + Uint64FromInt64(ret) + remain = remain - Uint64FromInt64(ret) + } + if !((*TFILE)(unsafe.Pointer(f)).Fbuf_size != 0) || remain > BoolUint64(!!((*TFILE)(unsafe.Pointer(f)).Fbuf_size != 0)) { + return readlen + } + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Fbuf + ret = (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tssize_t)(unsafe.Pointer(&struct{ uintptr }{(*Tfcookie)(unsafe.Pointer(fc)).Fiofuncs.Fread})))(tls, (*Tfcookie)(unsafe.Pointer(fc)).Fcookie, (*TFILE)(unsafe.Pointer(f)).Frpos, (*TFILE)(unsafe.Pointer(f)).Fbuf_size) + if ret <= 0 { + goto bail + } + (*TFILE)(unsafe.Pointer(f)).Frend = (*TFILE)(unsafe.Pointer(f)).Frpos + uintptr(ret) + v1 = readlen + readlen = readlen + 1 + v3 = f + 8 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + **(**uint8)(__ccgo_up(buf + uintptr(v1))) = **(**uint8)(__ccgo_up(v2)) + return readlen + goto bail +bail: + ; + if ret == 0 { + v4 = int32(F_EOF) + } else { + v4 = int32(F_ERR) + } + **(**uint32)(__ccgo_up(f)) |= Uint32FromInt32(v4) + v2 = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Frend = v2 + (*TFILE)(unsafe.Pointer(f)).Frpos = v2 + return readlen +} + +func _cookiewrite(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + var fc, v1, v2 uintptr + var len2 Tsize_t + var ret Tssize_t + _, _, _, _, _ = fc, len2, ret, v1, v2 + fc = (*TFILE)(unsafe.Pointer(f)).Fcookie + len2 = Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Fwpos) - int64((*TFILE)(unsafe.Pointer(f)).Fwbase)) + if !((*Tfcookie)(unsafe.Pointer(fc)).Fiofuncs.Fwrite != 0) { + return len1 + } + if len2 != 0 { + (*TFILE)(unsafe.Pointer(f)).Fwpos = (*TFILE)(unsafe.Pointer(f)).Fwbase + if _cookiewrite(tls, f, (*TFILE)(unsafe.Pointer(f)).Fwpos, len2) < len2 { + return uint64(0) + } + } + ret = (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tssize_t)(unsafe.Pointer(&struct{ uintptr }{(*Tfcookie)(unsafe.Pointer(fc)).Fiofuncs.Fwrite})))(tls, (*Tfcookie)(unsafe.Pointer(fc)).Fcookie, buf, len1) + if ret < 0 { + v2 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Fwend = v2 + v1 = v2 + (*TFILE)(unsafe.Pointer(f)).Fwbase = v1 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v1 + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) + return uint64(0) + } + return Uint64FromInt64(ret) +} + +func _cookieseek(tls *TLS, f uintptr, _off Toff_t, whence int32) (r Toff_t) { + bp := tls.Alloc(16) + defer tls.Free(16) + *(*Toff_t)(unsafe.Pointer(bp)) = _off + var fc uintptr + var res int32 + _, _ = fc, res + fc = (*TFILE)(unsafe.Pointer(f)).Fcookie + if Uint32FromInt32(whence) > uint32(2) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return int64(-int32(1)) + } + if !((*Tfcookie)(unsafe.Pointer(fc)).Fiofuncs.Fseek != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOPNOTSUPP) + return int64(-int32(1)) + } + res = (*(*func(*TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(&struct{ uintptr }{(*Tfcookie)(unsafe.Pointer(fc)).Fiofuncs.Fseek})))(tls, (*Tfcookie)(unsafe.Pointer(fc)).Fcookie, bp, whence) + if res < 0 { + return int64(res) + } + return **(**Toff_t)(__ccgo_up(bp)) +} + +func _cookieclose(tls *TLS, f uintptr) (r int32) { + var fc uintptr + _ = fc + fc = (*TFILE)(unsafe.Pointer(f)).Fcookie + if (*Tfcookie)(unsafe.Pointer(fc)).Fiofuncs.Fclose1 != 0 { + return (*(*func(*TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*Tfcookie)(unsafe.Pointer(fc)).Fiofuncs.Fclose1})))(tls, (*Tfcookie)(unsafe.Pointer(fc)).Fcookie) + } + return 0 +} + +func Xfopencookie(tls *TLS, cookie uintptr, mode uintptr, iofuncs Tcookie_io_functions_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v cookie=%v mode=%v iofuncs=%v, (%v:)", tls, cookie, mode, iofuncs, origin(2)) + defer func() { trc("-> %v", r) }() + } + var f, v1 uintptr + var v2 int32 + _, _, _ = f, v1, v2 + /* Check for valid initial mode character */ + if !(Xstrchr(tls, __ccgo_ts+1504, Int32FromUint8(**(**uint8)(__ccgo_up(mode)))) != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(0) + } + /* Allocate FILE+fcookie+buffer or fail */ + v1 = Xmalloc(tls, uint64(1304)) + f = v1 + if !(v1 != 0) { + return uintptr(0) + } + /* Zero-fill only the struct, not the buffer */ + Xmemset(tls, f, 0, uint64(232)) + /* Impose mode restrictions */ + if !(Xstrchr(tls, mode, int32('+')) != 0) { + if Int32FromUint8(**(**uint8)(__ccgo_up(mode))) == int32('r') { + v2 = int32(F_NOWR) + } else { + v2 = int32(F_NORD) + } + (*Tcookie_FILE)(unsafe.Pointer(f)).Ff.Fflags = Uint32FromInt32(v2) + } + /* Set up our fcookie */ + (*Tcookie_FILE)(unsafe.Pointer(f)).Ffc.Fcookie = cookie + (*Tcookie_FILE)(unsafe.Pointer(f)).Ffc.Fiofuncs = iofuncs + (*Tcookie_FILE)(unsafe.Pointer(f)).Ff.Ffd = -int32(1) + (*Tcookie_FILE)(unsafe.Pointer(f)).Ff.Fcookie = f + 232 + (*Tcookie_FILE)(unsafe.Pointer(f)).Ff.Fbuf = f + 272 + uintptr(UNGET) + (*Tcookie_FILE)(unsafe.Pointer(f)).Ff.Fbuf_size = Uint64FromInt64(1032) - Uint64FromInt32(UNGET) + (*Tcookie_FILE)(unsafe.Pointer(f)).Ff.Flbf = -int32(1) + /* Initialize op ptrs. No problem if some are unneeded. */ + (*Tcookie_FILE)(unsafe.Pointer(f)).Ff.Fread = __ccgo_fp(_cookieread) + (*Tcookie_FILE)(unsafe.Pointer(f)).Ff.Fwrite = __ccgo_fp(_cookiewrite) + (*Tcookie_FILE)(unsafe.Pointer(f)).Ff.Fseek = __ccgo_fp(_cookieseek) + (*Tcookie_FILE)(unsafe.Pointer(f)).Ff.Fclose1 = __ccgo_fp(_cookieclose) + /* Add new FILE to open file list */ + return X__ofl_add(tls, f) +} + +func Xfprintf(tls *TLS, f uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v va=%v, (%v:)", tls, f, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvfprintf(tls, f, fmt, ap) + _ = ap + return ret +} + +func _locking_putc(tls *TLS, c int32, f uintptr) (r1 int32) { + var old, old1, r, v, v14, v2, v5, v7, v9 int32 + var v1, v11 uintptr + var v10 uint8 + _, _, _, _, _, _, _, _, _, _, _, _ = old, old1, r, v, v1, v10, v11, v14, v2, v5, v7, v9 + v1 = f + 140 + for { + // __asm__ __volatile__ ("ldaxr %w0,%1" : "=r"(v) : "Q"(*p)); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 5, __ccgo_ts+1521) + v5 = v + goto _6 + _6: + old = v5 + if old != 0 { + // __asm__ __volatile__ ("dmb ish" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 20, __ccgo_ts+1521) + break + } + goto _4 + _4: + ; + // __asm__ __volatile__ ("stlxr %w0,%w2,%1" : "=&r"(r), "=Q"(*p) : "r"(v) : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 13, __ccgo_ts+1521) + v2 = BoolInt32(!(r != 0)) + goto _3 + _3: + ; + if !!(v2 != 0) { + break + } + } + v7 = old + goto _8 +_8: + if v7 != 0 { + ___lockfile(tls, f) + } + if Int32FromUint8(Uint8FromInt32(c)) != (*TFILE)(unsafe.Pointer(f)).Flbf && (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwend { + v10 = Uint8FromInt32(c) + v11 = f + 40 + v1 = *(*uintptr)(unsafe.Pointer(v11)) + *(*uintptr)(unsafe.Pointer(v11)) = *(*uintptr)(unsafe.Pointer(v11)) + 1 + **(**uint8)(__ccgo_up(v1)) = v10 + v2 = Int32FromUint8(v10) + } else { + v2 = X__overflow(tls, f, Int32FromUint8(Uint8FromInt32(c))) + } + c = v2 + v1 = f + 140 + for { + // __asm__ __volatile__ ("ldaxr %w0,%1" : "=r"(v) : "Q"(*p)); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 5, __ccgo_ts+1521) + v5 = v + goto _18 + _18: + old1 = v5 + goto _16 + _16: + ; + // __asm__ __volatile__ ("stlxr %w0,%w2,%1" : "=&r"(r), "=Q"(*p) : "r"(v) : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 13, __ccgo_ts+1521) + v2 = BoolInt32(!(r != 0)) + goto _15 + _15: + ; + if !!(v2 != 0) { + break + } + } + v7 = old1 + goto _20 +_20: + if v7&int32(MAYBE_WAITERS) != 0 { + v11 = f + 140 + v9 = int32(1) + v14 = int32(1) + if v14 != 0 { + v14 = int32(FUTEX_PRIVATE) + } + if v9 < Int32FromInt32(0) { + v9 = int32(INT_MAX) + } + _ = X__syscall3(tls, int64(SYS_futex), int64(v11), int64(Int32FromInt32(FUTEX_WAKE)|v14), int64(v9)) != int64(-int32(ENOSYS)) || X__syscall3(tls, int64(SYS_futex), int64(v11), int64(Int32FromInt32(FUTEX_WAKE)), int64(v9)) != 0 + } + return c +} + +func Xfputc(tls *TLS, c1 int32, f1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v c1=%v f1=%v, (%v:)", tls, c1, f1, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l, v1, v3, v5 int32 + var v2, v7, v8 uintptr + var v6 uint8 + _, _, _, _, _, _, _, _ = l, v1, v2, v3, v5, v6, v7, v8 + v1 = c1 + v2 = f1 + l = AtomicLoadPInt32(v2 + 140) + if l < 0 || l != 0 && l & ^Int32FromInt32(MAYBE_WAITERS) == (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Ftid { + if Int32FromUint8(Uint8FromInt32(v1)) != (*TFILE)(unsafe.Pointer(v2)).Flbf && (*TFILE)(unsafe.Pointer(v2)).Fwpos != (*TFILE)(unsafe.Pointer(v2)).Fwend { + v6 = Uint8FromInt32(v1) + v8 = v2 + 40 + v7 = *(*uintptr)(unsafe.Pointer(v8)) + *(*uintptr)(unsafe.Pointer(v8)) = *(*uintptr)(unsafe.Pointer(v8)) + 1 + **(**uint8)(__ccgo_up(v7)) = v6 + v5 = Int32FromUint8(v6) + } else { + v5 = X__overflow(tls, v2, Int32FromUint8(Uint8FromInt32(v1))) + } + v3 = v5 + goto _4 + } + v3 = _locking_putc(tls, v1, v2) + goto _4 +_4: + return v3 +} + +func Xfputs(tls *TLS, s uintptr, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v f=%v, (%v:)", tls, s, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l Tsize_t + _ = l + l = _strlen(tls, s) + return BoolInt32(Xfwrite(tls, s, uint64(1), l, f) == l) - int32(1) +} + +func Xfputs_unlocked(tls *TLS, s uintptr, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v f=%v, (%v:)", tls, s, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfputs(tls, s, f) +} + +func X__fputwc_unlocked(tls *TLS, c Twchar_t, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v f=%v, (%v:)", tls, c, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var l, v1 int32 + var loc Tlocale_t + var ploc, v3, v4 uintptr + var v2 uint8 + var _ /* mbc at bp+0 */ [4]uint8 + _, _, _, _, _, _, _ = l, loc, ploc, v1, v2, v3, v4 + ploc = uintptr(___get_tp(tls)) + 152 + loc = **(**Tlocale_t)(__ccgo_up(ploc)) + if (*TFILE)(unsafe.Pointer(f)).Fmode <= 0 { + Xfwide(tls, f, int32(1)) + } + **(**Tlocale_t)(__ccgo_up(ploc)) = (*TFILE)(unsafe.Pointer(f)).Flocale + if BoolInt32(c < uint32(128)) != 0 { + if Int32FromUint8(uint8(c)) != (*TFILE)(unsafe.Pointer(f)).Flbf && (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwend { + v2 = uint8(c) + v4 = f + 40 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + **(**uint8)(__ccgo_up(v3)) = v2 + v1 = Int32FromUint8(v2) + } else { + v1 = X__overflow(tls, f, Int32FromUint8(uint8(c))) + } + c = Uint32FromInt32(v1) + } else { + if (*TFILE)(unsafe.Pointer(f)).Fwpos+uintptr(MB_LEN_MAX) < (*TFILE)(unsafe.Pointer(f)).Fwend { + l = Xwctomb(tls, (*TFILE)(unsafe.Pointer(f)).Fwpos, c) + if l < 0 { + c = uint32(0xffffffff) + } else { + **(**uintptr)(__ccgo_up(f + 40)) += uintptr(l) + } + } else { + l = Xwctomb(tls, bp, c) + if l < 0 || X__fwritex(tls, bp, Uint64FromInt32(l), f) < Uint64FromInt32(l) { + c = uint32(0xffffffff) + } + } + } + if c == uint32(0xffffffff) { + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) + } + **(**Tlocale_t)(__ccgo_up(ploc)) = loc + return c +} + +func Xfputwc(tls *TLS, c Twchar_t, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v f=%v, (%v:)", tls, c, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, v1 int32 + _, _ = __need_unlock, v1 + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + c = X__fputwc_unlocked(tls, c, f) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return c +} + +func Xfputwc_unlocked(tls *TLS, c Twchar_t, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v f=%v, (%v:)", tls, c, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fputwc_unlocked(tls, c, f) +} + +func Xputwc_unlocked(tls *TLS, c Twchar_t, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v f=%v, (%v:)", tls, c, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fputwc_unlocked(tls, c, f) +} + +func Xfputws(tls *TLS, _ws uintptr, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v _ws=%v f=%v, (%v:)", tls, _ws, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(1040) + defer tls.Free(1040) + *(*uintptr)(unsafe.Pointer(bp)) = _ws + var __need_unlock, v1 int32 + var l, v2 Tsize_t + var loc Tlocale_t + var ploc uintptr + var v3 bool + var _ /* buf at bp+8 */ [1024]uint8 + _, _, _, _, _, _, _ = __need_unlock, l, loc, ploc, v1, v2, v3 + l = uint64(0) + ploc = uintptr(___get_tp(tls)) + 152 + loc = **(**Tlocale_t)(__ccgo_up(ploc)) + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + Xfwide(tls, f, int32(1)) + **(**Tlocale_t)(__ccgo_up(ploc)) = (*TFILE)(unsafe.Pointer(f)).Flocale + for { + if v3 = **(**uintptr)(__ccgo_up(bp)) != 0; v3 { + v2 = Xwcsrtombs(tls, bp+8, bp, uint64(1024), uintptr(0)) + l = v2 + } + if !(v3 && v2+uint64(1) > uint64(1)) { + break + } + if X__fwritex(tls, bp+8, l, f) < l { + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + **(**Tlocale_t)(__ccgo_up(ploc)) = loc + return -int32(1) + } + } + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + **(**Tlocale_t)(__ccgo_up(ploc)) = loc + return Int32FromUint64(l) /* 0 or -1 */ +} + +func Xfputws_unlocked(tls *TLS, _ws uintptr, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v _ws=%v f=%v, (%v:)", tls, _ws, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfputws(tls, _ws, f) +} + +func Xfread(tls *TLS, destv uintptr, size Tsize_t, nmemb Tsize_t, f uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v destv=%v size=%v nmemb=%v f=%v, (%v:)", tls, destv, size, nmemb, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, v1 int32 + var dest uintptr + var k, l, len1 Tsize_t + var v2 uint64 + _, _, _, _, _, _, _ = __need_unlock, dest, k, l, len1, v1, v2 + dest = destv + len1 = size * nmemb + l = len1 + if !(size != 0) { + nmemb = uint64(0) + } + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + **(**int32)(__ccgo_up(f + 136)) |= (*TFILE)(unsafe.Pointer(f)).Fmode - int32(1) + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + /* First exhaust the buffer. */ + if Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Frend)-int64((*TFILE)(unsafe.Pointer(f)).Frpos)) < l { + v2 = Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Frend) - int64((*TFILE)(unsafe.Pointer(f)).Frpos)) + } else { + v2 = l + } + k = v2 + Xmemcpy(tls, dest, (*TFILE)(unsafe.Pointer(f)).Frpos, k) + **(**uintptr)(__ccgo_up(f + 8)) += uintptr(k) + dest = dest + uintptr(k) + l = l - k + } + /* Read the remainder directly */ + for { + if !(l != 0) { + break + } + if X__toread(tls, f) != 0 { + v2 = uint64(0) + } else { + v2 = (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tsize_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fread})))(tls, f, dest, l) + } + k = v2 + if !(k != 0) { + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return (len1 - l) / size + } + goto _3 + _3: + ; + l = l - k + dest = dest + uintptr(k) + } + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return nmemb +} + +func Xfread_unlocked(tls *TLS, destv uintptr, size Tsize_t, nmemb Tsize_t, f uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v destv=%v size=%v nmemb=%v f=%v, (%v:)", tls, destv, size, nmemb, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfread(tls, destv, size, nmemb, f) +} + +/* The basic idea of this implementation is to open a new FILE, + * hack the necessary parts of the new FILE into the old one, then + * close the new FILE. */ + +/* Locking IS necessary because another thread may provably hold the + * lock, via flockfile or otherwise, when freopen is called, and in that + * case, freopen cannot act until the lock is released. */ + +func Xfreopen(tls *TLS, filename uintptr, mode uintptr, f uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v filename=%v mode=%v f=%v, (%v:)", tls, filename, mode, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, fl, v1 int32 + var f2 uintptr + _, _, _, _ = __need_unlock, f2, fl, v1 + fl = X__fmodeflags(tls, mode) + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + Xfflush(tls, f) + if !(filename != 0) { + if fl&int32(O_CLOEXEC) != 0 { + X__syscall3(tls, int64(SYS_fcntl), int64((*TFILE)(unsafe.Pointer(f)).Ffd), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + } + fl = fl & ^(Int32FromInt32(O_CREAT) | Int32FromInt32(O_EXCL) | Int32FromInt32(O_CLOEXEC)) + if X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_fcntl), int64((*TFILE)(unsafe.Pointer(f)).Ffd), int64(Int32FromInt32(F_SETFL)), int64(fl)))) < 0 { + goto fail + } + } else { + f2 = Xfopen(tls, filename, mode) + if !(f2 != 0) { + goto fail + } + if (*TFILE)(unsafe.Pointer(f2)).Ffd == (*TFILE)(unsafe.Pointer(f)).Ffd { + (*TFILE)(unsafe.Pointer(f2)).Ffd = -int32(1) + } else { + if X__dup3(tls, (*TFILE)(unsafe.Pointer(f2)).Ffd, (*TFILE)(unsafe.Pointer(f)).Ffd, fl&int32(O_CLOEXEC)) < 0 { + goto fail2 + } + } + (*TFILE)(unsafe.Pointer(f)).Fflags = (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_PERM) | (*TFILE)(unsafe.Pointer(f2)).Fflags + (*TFILE)(unsafe.Pointer(f)).Fread = (*TFILE)(unsafe.Pointer(f2)).Fread + (*TFILE)(unsafe.Pointer(f)).Fwrite = (*TFILE)(unsafe.Pointer(f2)).Fwrite + (*TFILE)(unsafe.Pointer(f)).Fseek = (*TFILE)(unsafe.Pointer(f2)).Fseek + (*TFILE)(unsafe.Pointer(f)).Fclose1 = (*TFILE)(unsafe.Pointer(f2)).Fclose1 + Xfclose(tls, f2) + } + (*TFILE)(unsafe.Pointer(f)).Fmode = 0 + (*TFILE)(unsafe.Pointer(f)).Flocale = uintptr(0) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return f + goto fail2 +fail2: + ; + Xfclose(tls, f2) + goto fail +fail: + ; + Xfclose(tls, f) + return UintptrFromInt32(0) +} + +func Xfscanf(tls *TLS, f uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v va=%v, (%v:)", tls, f, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvfscanf(tls, f, fmt, ap) + _ = ap + return ret +} + +func X__isoc99_fscanf(tls *TLS, f uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v va=%v, (%v:)", tls, f, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfscanf(tls, f, fmt, va) +} + +func X__fseeko_unlocked(tls *TLS, f uintptr, off Toff_t, whence int32) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v off=%v whence=%v, (%v:)", tls, f, off, whence, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1, v2 uintptr + _, _ = v1, v2 + /* Fail immediately for invalid whence argument. */ + if whence != int32(1) && whence != 0 && whence != int32(2) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + /* Adjust relative offset for unread data in buffer, if any. */ + if whence == int32(1) && (*TFILE)(unsafe.Pointer(f)).Frend != 0 { + off = off - (int64((*TFILE)(unsafe.Pointer(f)).Frend) - int64((*TFILE)(unsafe.Pointer(f)).Frpos)) + } + /* Flush write buffer, and report error on failure. */ + if (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwbase { + (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tsize_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fwrite})))(tls, f, uintptr(0), uint64(0)) + if !((*TFILE)(unsafe.Pointer(f)).Fwpos != 0) { + return -int32(1) + } + } + /* Leave writing mode */ + v2 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Fwend = v2 + v1 = v2 + (*TFILE)(unsafe.Pointer(f)).Fwbase = v1 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v1 + /* Perform the underlying seek. */ + if (*(*func(*TLS, uintptr, Toff_t, int32) Toff_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fseek})))(tls, f, off, whence) < 0 { + return -int32(1) + } + /* If seek succeeded, file is seekable and we discard read buffer. */ + v1 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Frend = v1 + (*TFILE)(unsafe.Pointer(f)).Frpos = v1 + **(**uint32)(__ccgo_up(f)) &= Uint32FromInt32(^Int32FromInt32(F_EOF)) + return 0 +} + +func X__fseeko(tls *TLS, f uintptr, off Toff_t, whence int32) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v off=%v whence=%v, (%v:)", tls, f, off, whence, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, result, v1 int32 + _, _, _ = __need_unlock, result, v1 + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + result = X__fseeko_unlocked(tls, f, off, whence) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return result +} + +func Xfseek(tls *TLS, f uintptr, off int64, whence int32) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v off=%v whence=%v, (%v:)", tls, f, off, whence, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fseeko(tls, f, off, whence) +} + +func Xfseeko(tls *TLS, f uintptr, off Toff_t, whence int32) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v off=%v whence=%v, (%v:)", tls, f, off, whence, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fseeko(tls, f, off, whence) +} + +func Xfsetpos(tls *TLS, f uintptr, pos uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v pos=%v, (%v:)", tls, f, pos, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fseeko(tls, f, int64(**(**int64)(__ccgo_up(pos))), 0) +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func X__ftello_unlocked(tls *TLS, f uintptr) (r Toff_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var pos Toff_t + var v1 int32 + _, _ = pos, v1 + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_APP) != 0 && (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwbase { + v1 = int32(2) + } else { + v1 = int32(1) + } + pos = (*(*func(*TLS, uintptr, Toff_t, int32) Toff_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fseek})))(tls, f, 0, v1) + if pos < 0 { + return pos + } + /* Adjust for data in buffer. */ + if (*TFILE)(unsafe.Pointer(f)).Frend != 0 { + pos = pos + (int64((*TFILE)(unsafe.Pointer(f)).Frpos) - int64((*TFILE)(unsafe.Pointer(f)).Frend)) + } else { + if (*TFILE)(unsafe.Pointer(f)).Fwbase != 0 { + pos = pos + (int64((*TFILE)(unsafe.Pointer(f)).Fwpos) - int64((*TFILE)(unsafe.Pointer(f)).Fwbase)) + } + } + return pos +} + +func X__ftello(tls *TLS, f uintptr) (r Toff_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, v1 int32 + var pos Toff_t + _, _, _ = __need_unlock, pos, v1 + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + pos = X__ftello_unlocked(tls, f) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return pos +} + +func Xftell(tls *TLS, f uintptr) (r int64) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var pos Toff_t + _ = pos + pos = X__ftello(tls, f) + if pos > int64(0x7fffffffffffffff) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOVERFLOW) + return int64(-int32(1)) + } + return pos +} + +func Xftello(tls *TLS, f uintptr) (r Toff_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__ftello(tls, f) +} + +func X__do_orphaned_stdio_locks(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + var f uintptr + _ = f + f = (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Fstdio_locks + for { + if !(f != 0) { + break + } + // __asm__ __volatile__ ("dmb ish" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 20, __ccgo_ts+1534) + AtomicStorePInt32(f+140, int32(0x40000000)) + // __asm__ __volatile__ ("dmb ish" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 20, __ccgo_ts+1534) + goto _1 + _1: + ; + f = (*TFILE)(unsafe.Pointer(f)).Fnext_locked + } +} + +func X__unlist_locked_file(tls *TLS, f uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } + if (*TFILE)(unsafe.Pointer(f)).Flockcount != 0 { + if (*TFILE)(unsafe.Pointer(f)).Fnext_locked != 0 { + (*TFILE)(unsafe.Pointer((*TFILE)(unsafe.Pointer(f)).Fnext_locked)).Fprev_locked = (*TFILE)(unsafe.Pointer(f)).Fprev_locked + } + if (*TFILE)(unsafe.Pointer(f)).Fprev_locked != 0 { + (*TFILE)(unsafe.Pointer((*TFILE)(unsafe.Pointer(f)).Fprev_locked)).Fnext_locked = (*TFILE)(unsafe.Pointer(f)).Fnext_locked + } else { + (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Fstdio_locks = (*TFILE)(unsafe.Pointer(f)).Fnext_locked + } + } +} + +func X__register_locked_file(tls *TLS, f uintptr, self Tpthread_t) { + if __ccgo_strace { + trc("tls=%v f=%v self=%v, (%v:)", tls, f, self, origin(2)) + } + (*TFILE)(unsafe.Pointer(f)).Flockcount = int64(1) + (*TFILE)(unsafe.Pointer(f)).Fprev_locked = uintptr(0) + (*TFILE)(unsafe.Pointer(f)).Fnext_locked = (*t__pthread)(unsafe.Pointer(self)).Fstdio_locks + if (*TFILE)(unsafe.Pointer(f)).Fnext_locked != 0 { + (*TFILE)(unsafe.Pointer((*TFILE)(unsafe.Pointer(f)).Fnext_locked)).Fprev_locked = f + } + (*t__pthread)(unsafe.Pointer(self)).Fstdio_locks = f +} + +func Xftrylockfile(tls *TLS, f uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var old, owner, r, tid, v, v1, v3, v6 int32 + var self Tpthread_t + var v10 bool + var v2 uintptr + _, _, _, _, _, _, _, _, _, _, _ = old, owner, r, self, tid, v, v1, v10, v2, v3, v6 + self = uintptr(___get_tp(tls)) + tid = (*t__pthread)(unsafe.Pointer(self)).Ftid + owner = AtomicLoadPInt32(f + 140) + if owner & ^Int32FromInt32(MAYBE_WAITERS) == tid { + if (*TFILE)(unsafe.Pointer(f)).Flockcount == int64(0x7fffffffffffffff) { + return -int32(1) + } + (*TFILE)(unsafe.Pointer(f)).Flockcount = (*TFILE)(unsafe.Pointer(f)).Flockcount + 1 + return 0 + } + if owner < 0 { + v1 = Int32FromInt32(0) + owner = v1 + AtomicStorePInt32(f+140, v1) + } + if v10 = owner != 0; !v10 { + v2 = f + 140 + for { + // __asm__ __volatile__ ("ldaxr %w0,%1" : "=r"(v) : "Q"(*p)); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 5, __ccgo_ts+1560) + v3 = v + goto _7 + _7: + old = v3 + if old != 0 { + // __asm__ __volatile__ ("dmb ish" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 20, __ccgo_ts+1560) + break + } + goto _5 + _5: + ; + // __asm__ __volatile__ ("stlxr %w0,%w2,%1" : "=&r"(r), "=Q"(*p) : "r"(v) : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 13, __ccgo_ts+1560) + v1 = BoolInt32(!(r != 0)) + goto _4 + _4: + ; + if !!(v1 != 0) { + break + } + } + v6 = old + goto _9 + _9: + } + if v10 || v6 != 0 { + return -int32(1) + } + X__register_locked_file(tls, f, self) + return 0 +} + +func Xfunlockfile(tls *TLS, f uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } + if (*TFILE)(unsafe.Pointer(f)).Flockcount == int64(1) { + X__unlist_locked_file(tls, f) + (*TFILE)(unsafe.Pointer(f)).Flockcount = 0 + ___unlockfile(tls, f) + } else { + (*TFILE)(unsafe.Pointer(f)).Flockcount = (*TFILE)(unsafe.Pointer(f)).Flockcount - 1 + } +} + +func Xfwide(tls *TLS, f uintptr, mode int32) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v mode=%v, (%v:)", tls, f, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, v1, v3 int32 + var v2 Tlocale_t + _, _, _, _ = __need_unlock, v1, v2, v3 + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + if mode != 0 { + if !((*TFILE)(unsafe.Pointer(f)).Flocale != 0) { + if !!(**(**uintptr)(__ccgo_up((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale)) != 0) { + v3 = int32(4) + } else { + v3 = int32(1) + } + if v3 == int32(1) { + v2 = uintptr(unsafe.Pointer(&X__c_locale)) + } else { + v2 = uintptr(unsafe.Pointer(&X__c_dot_utf8_locale)) + } + (*TFILE)(unsafe.Pointer(f)).Flocale = v2 + } + if !((*TFILE)(unsafe.Pointer(f)).Fmode != 0) { + if mode > 0 { + v1 = int32(1) + } else { + v1 = -int32(1) + } + (*TFILE)(unsafe.Pointer(f)).Fmode = v1 + } + } + mode = (*TFILE)(unsafe.Pointer(f)).Fmode + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return mode +} + +func Xfwprintf(tls *TLS, f uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v va=%v, (%v:)", tls, f, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvfwprintf(tls, f, fmt, ap) + _ = ap + return ret +} + +func X__fwritex(tls *TLS, s uintptr, l Tsize_t, f uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v l=%v f=%v, (%v:)", tls, s, l, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var i, n Tsize_t + _, _ = i, n + i = uint64(0) + if !((*TFILE)(unsafe.Pointer(f)).Fwend != 0) && X__towrite(tls, f) != 0 { + return uint64(0) + } + if l > Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Fwend)-int64((*TFILE)(unsafe.Pointer(f)).Fwpos)) { + return (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tsize_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fwrite})))(tls, f, s, l) + } + if (*TFILE)(unsafe.Pointer(f)).Flbf >= 0 { + /* Match /^(.*\n|)/ */ + i = l + for { + if !(i != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(i-uint64(1))))) != int32('\n')) { + break + } + goto _1 + _1: + ; + i = i - 1 + } + if i != 0 { + n = (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tsize_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fwrite})))(tls, f, s, i) + if n < i { + return n + } + s = s + uintptr(i) + l = l - i + } + } + Xmemcpy(tls, (*TFILE)(unsafe.Pointer(f)).Fwpos, s, l) + **(**uintptr)(__ccgo_up(f + 40)) += uintptr(l) + return l + i +} + +func Xfwrite(tls *TLS, src uintptr, size Tsize_t, nmemb Tsize_t, f uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v src=%v size=%v nmemb=%v f=%v, (%v:)", tls, src, size, nmemb, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, v1 int32 + var k, l Tsize_t + var v2 uint64 + _, _, _, _, _ = __need_unlock, k, l, v1, v2 + l = size * nmemb + if !(size != 0) { + nmemb = uint64(0) + } + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + k = X__fwritex(tls, src, l, f) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + if k == l { + v2 = nmemb + } else { + v2 = k / size + } + return v2 +} + +func Xfwrite_unlocked(tls *TLS, src uintptr, size Tsize_t, nmemb Tsize_t, f uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v src=%v size=%v nmemb=%v f=%v, (%v:)", tls, src, size, nmemb, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfwrite(tls, src, size, nmemb, f) +} + +func Xfwscanf(tls *TLS, f uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v va=%v, (%v:)", tls, f, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvfwscanf(tls, f, fmt, ap) + _ = ap + return ret +} + +func X__isoc99_fwscanf(tls *TLS, f uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v va=%v, (%v:)", tls, f, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfwscanf(tls, f, fmt, va) +} + +func _locking_getc1(tls *TLS, f uintptr) (r1 int32) { + var c, old, old1, r, v, v13, v16, v2, v5, v7, v9 int32 + var v1, v10, v11, v12 uintptr + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = c, old, old1, r, v, v1, v10, v11, v12, v13, v16, v2, v5, v7, v9 + v1 = f + 140 + for { + // __asm__ __volatile__ ("ldaxr %w0,%1" : "=r"(v) : "Q"(*p)); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 5, __ccgo_ts+1508) + v5 = v + goto _6 + _6: + old = v5 + if old != 0 { + // __asm__ __volatile__ ("dmb ish" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 20, __ccgo_ts+1508) + break + } + goto _4 + _4: + ; + // __asm__ __volatile__ ("stlxr %w0,%w2,%1" : "=&r"(r), "=Q"(*p) : "r"(v) : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 13, __ccgo_ts+1508) + v2 = BoolInt32(!(r != 0)) + goto _3 + _3: + ; + if !!(v2 != 0) { + break + } + } + v7 = old + goto _8 +_8: + if v7 != 0 { + ___lockfile(tls, f) + } + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + v10 = f + 8 + v1 = *(*uintptr)(unsafe.Pointer(v10)) + *(*uintptr)(unsafe.Pointer(v10)) = *(*uintptr)(unsafe.Pointer(v10)) + 1 + v2 = Int32FromUint8(**(**uint8)(__ccgo_up(v1))) + } else { + v2 = X__uflow(tls, f) + } + c = v2 + v11 = f + 140 + for { + // __asm__ __volatile__ ("ldaxr %w0,%1" : "=r"(v) : "Q"(*p)); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 5, __ccgo_ts+1508) + v7 = v + goto _17 + _17: + old1 = v7 + goto _15 + _15: + ; + // __asm__ __volatile__ ("stlxr %w0,%w2,%1" : "=&r"(r), "=Q"(*p) : "r"(v) : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 13, __ccgo_ts+1508) + v5 = BoolInt32(!(r != 0)) + goto _14 + _14: + ; + if !!(v5 != 0) { + break + } + } + v9 = old1 + goto _19 +_19: + if v9&int32(MAYBE_WAITERS) != 0 { + v12 = f + 140 + v13 = int32(1) + v16 = int32(1) + if v16 != 0 { + v16 = int32(FUTEX_PRIVATE) + } + if v13 < Int32FromInt32(0) { + v13 = int32(INT_MAX) + } + _ = X__syscall3(tls, int64(SYS_futex), int64(v12), int64(Int32FromInt32(FUTEX_WAKE)|v16), int64(v13)) != int64(-int32(ENOSYS)) || X__syscall3(tls, int64(SYS_futex), int64(v12), int64(Int32FromInt32(FUTEX_WAKE)), int64(v13)) != 0 + } + return c +} + +func Xgetc(tls *TLS, f1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f1=%v, (%v:)", tls, f1, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l, v2, v4 int32 + var v1, v5, v6 uintptr + _, _, _, _, _, _ = l, v1, v2, v4, v5, v6 + v1 = f1 + l = AtomicLoadPInt32(v1 + 140) + if l < 0 || l != 0 && l & ^Int32FromInt32(MAYBE_WAITERS) == (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Ftid { + if (*TFILE)(unsafe.Pointer(v1)).Frpos != (*TFILE)(unsafe.Pointer(v1)).Frend { + v6 = v1 + 8 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + v4 = Int32FromUint8(**(**uint8)(__ccgo_up(v5))) + } else { + v4 = X__uflow(tls, v1) + } + v2 = v4 + goto _3 + } + v2 = _locking_getc1(tls, v1) + goto _3 +_3: + return v2 +} + +func X_IO_getc(tls *TLS, f1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f1=%v, (%v:)", tls, f1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetc(tls, f1) +} + +func Xgetc_unlocked(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + var v2, v3 uintptr + _, _, _ = v1, v2, v3 + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + v3 = f + 8 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__uflow(tls, f) + } + return v1 +} + +func X_IO_getc_unlocked(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetc_unlocked(tls, f) +} + +func Xfgetc_unlocked(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetc_unlocked(tls, f) +} + +func _locking_getc2(tls *TLS, f uintptr) (r1 int32) { + var c, old, old1, r, v, v13, v16, v2, v5, v7, v9 int32 + var v1, v10, v11, v12 uintptr + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = c, old, old1, r, v, v1, v10, v11, v12, v13, v16, v2, v5, v7, v9 + v1 = f + 140 + for { + // __asm__ __volatile__ ("ldaxr %w0,%1" : "=r"(v) : "Q"(*p)); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 5, __ccgo_ts+1508) + v5 = v + goto _6 + _6: + old = v5 + if old != 0 { + // __asm__ __volatile__ ("dmb ish" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 20, __ccgo_ts+1508) + break + } + goto _4 + _4: + ; + // __asm__ __volatile__ ("stlxr %w0,%w2,%1" : "=&r"(r), "=Q"(*p) : "r"(v) : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 13, __ccgo_ts+1508) + v2 = BoolInt32(!(r != 0)) + goto _3 + _3: + ; + if !!(v2 != 0) { + break + } + } + v7 = old + goto _8 +_8: + if v7 != 0 { + ___lockfile(tls, f) + } + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + v10 = f + 8 + v1 = *(*uintptr)(unsafe.Pointer(v10)) + *(*uintptr)(unsafe.Pointer(v10)) = *(*uintptr)(unsafe.Pointer(v10)) + 1 + v2 = Int32FromUint8(**(**uint8)(__ccgo_up(v1))) + } else { + v2 = X__uflow(tls, f) + } + c = v2 + v11 = f + 140 + for { + // __asm__ __volatile__ ("ldaxr %w0,%1" : "=r"(v) : "Q"(*p)); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 5, __ccgo_ts+1508) + v7 = v + goto _17 + _17: + old1 = v7 + goto _15 + _15: + ; + // __asm__ __volatile__ ("stlxr %w0,%w2,%1" : "=&r"(r), "=Q"(*p) : "r"(v) : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 13, __ccgo_ts+1508) + v5 = BoolInt32(!(r != 0)) + goto _14 + _14: + ; + if !!(v5 != 0) { + break + } + } + v9 = old1 + goto _19 +_19: + if v9&int32(MAYBE_WAITERS) != 0 { + v12 = f + 140 + v13 = int32(1) + v16 = int32(1) + if v16 != 0 { + v16 = int32(FUTEX_PRIVATE) + } + if v13 < Int32FromInt32(0) { + v13 = int32(INT_MAX) + } + _ = X__syscall3(tls, int64(SYS_futex), int64(v12), int64(Int32FromInt32(FUTEX_WAKE)|v16), int64(v13)) != int64(-int32(ENOSYS)) || X__syscall3(tls, int64(SYS_futex), int64(v12), int64(Int32FromInt32(FUTEX_WAKE)), int64(v13)) != 0 + } + return c +} + +func Xgetchar(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l, v2, v4 int32 + var v1, v5, v6 uintptr + _, _, _, _, _, _ = l, v1, v2, v4, v5, v6 + v1 = uintptr(unsafe.Pointer(&X__stdin_FILE)) + l = AtomicLoadPInt32(v1 + 140) + if l < 0 || l != 0 && l & ^Int32FromInt32(MAYBE_WAITERS) == (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Ftid { + if (*TFILE)(unsafe.Pointer(v1)).Frpos != (*TFILE)(unsafe.Pointer(v1)).Frend { + v6 = v1 + 8 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + v4 = Int32FromUint8(**(**uint8)(__ccgo_up(v5))) + } else { + v4 = X__uflow(tls, v1) + } + v2 = v4 + goto _3 + } + v2 = _locking_getc2(tls, v1) + goto _3 +_3: + return v2 +} + +func Xgetchar_unlocked(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + var v2, v3 uintptr + _, _, _ = v1, v2, v3 + if (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdin_FILE)))).Frpos != (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdin_FILE)))).Frend { + v3 = uintptr(unsafe.Pointer(&X__stdin_FILE)) + 8 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__uflow(tls, uintptr(unsafe.Pointer(&X__stdin_FILE))) + } + return v1 +} + +func Xgetdelim(tls *TLS, s uintptr, n uintptr, delim int32, f uintptr) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v delim=%v f=%v, (%v:)", tls, s, n, delim, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, c, v1, v4 int32 + var i, k, m, v11 Tsize_t + var tmp, z, v6, v7 uintptr + var v10 uint8 + var v3 int64 + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = __need_unlock, c, i, k, m, tmp, z, v1, v10, v11, v3, v4, v6, v7 + i = uint64(0) + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + if !(n != 0) || !(s != 0) { + **(**int32)(__ccgo_up(f + 136)) |= (*TFILE)(unsafe.Pointer(f)).Fmode - int32(1) + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return int64(-int32(1)) + } + if !(**(**uintptr)(__ccgo_up(s)) != 0) { + **(**Tsize_t)(__ccgo_up(n)) = uint64(0) + } + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + z = Xmemchr(tls, (*TFILE)(unsafe.Pointer(f)).Frpos, delim, Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Frend)-int64((*TFILE)(unsafe.Pointer(f)).Frpos))) + if z != 0 { + v3 = int64(z) - int64((*TFILE)(unsafe.Pointer(f)).Frpos) + int64(1) + } else { + v3 = int64((*TFILE)(unsafe.Pointer(f)).Frend) - int64((*TFILE)(unsafe.Pointer(f)).Frpos) + } + k = Uint64FromInt64(v3) + } else { + z = uintptr(0) + k = uint64(0) + } + if i+k >= **(**Tsize_t)(__ccgo_up(n)) { + m = i + k + uint64(2) + if !(z != 0) && m < Uint64FromUint64(0xffffffffffffffff)/Uint64FromInt32(4) { + m = m + m/uint64(2) + } + tmp = Xrealloc(tls, **(**uintptr)(__ccgo_up(s)), m) + if !(tmp != 0) { + m = i + k + uint64(2) + tmp = Xrealloc(tls, **(**uintptr)(__ccgo_up(s)), m) + if !(tmp != 0) { + /* Copy as much as fits and ensure no + * pushback remains in the FILE buf. */ + k = **(**Tsize_t)(__ccgo_up(n)) - i + Xmemcpy(tls, **(**uintptr)(__ccgo_up(s))+uintptr(i), (*TFILE)(unsafe.Pointer(f)).Frpos, k) + **(**uintptr)(__ccgo_up(f + 8)) += uintptr(k) + **(**int32)(__ccgo_up(f + 136)) |= (*TFILE)(unsafe.Pointer(f)).Fmode - int32(1) + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOMEM) + return int64(-int32(1)) + } + } + **(**uintptr)(__ccgo_up(s)) = tmp + **(**Tsize_t)(__ccgo_up(n)) = m + } + if k != 0 { + Xmemcpy(tls, **(**uintptr)(__ccgo_up(s))+uintptr(i), (*TFILE)(unsafe.Pointer(f)).Frpos, k) + **(**uintptr)(__ccgo_up(f + 8)) += uintptr(k) + i = i + k + } + if z != 0 { + break + } + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + v7 = f + 8 + v6 = *(*uintptr)(unsafe.Pointer(v7)) + *(*uintptr)(unsafe.Pointer(v7)) = *(*uintptr)(unsafe.Pointer(v7)) + 1 + v4 = Int32FromUint8(**(**uint8)(__ccgo_up(v6))) + } else { + v4 = X__uflow(tls, f) + } + v1 = v4 + c = v1 + if v1 == -int32(1) { + if !(i != 0) || !((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_EOF) != 0) { + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return int64(-int32(1)) + } + break + } + /* If the byte read by getc won't fit without growing the + * output buffer, push it back for next iteration. */ + if i+uint64(1) >= **(**Tsize_t)(__ccgo_up(n)) { + v7 = f + 8 + *(*uintptr)(unsafe.Pointer(v7)) = *(*uintptr)(unsafe.Pointer(v7)) - 1 + v6 = *(*uintptr)(unsafe.Pointer(v7)) + **(**uint8)(__ccgo_up(v6)) = Uint8FromInt32(c) + } else { + v10 = Uint8FromInt32(c) + v11 = i + i = i + 1 + **(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(s)) + uintptr(v11))) = v10 + if Int32FromUint8(v10) == delim { + break + } + } + goto _2 + _2: + } + **(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(s)) + uintptr(i))) = uint8(0) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return Int64FromUint64(i) +} + +func X__getdelim(tls *TLS, s uintptr, n uintptr, delim int32, f uintptr) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v delim=%v f=%v, (%v:)", tls, s, n, delim, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetdelim(tls, s, n, delim, f) +} + +func Xgetline(tls *TLS, s uintptr, n uintptr, f uintptr) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v f=%v, (%v:)", tls, s, n, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetdelim(tls, s, n, int32('\n'), f) +} + +func Xgets(tls *TLS, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, c, v1, v2, v3 int32 + var i, v6 Tsize_t + var v4, v5 uintptr + _, _, _, _, _, _, _, _, _ = __need_unlock, c, i, v1, v2, v3, v4, v5, v6 + i = uint64(0) + if AtomicLoadPInt32(uintptr(unsafe.Pointer(&X__stdin_FILE))+140) >= 0 { + v1 = ___lockfile(tls, uintptr(unsafe.Pointer(&X__stdin_FILE))) + } else { + v1 = 0 + } + __need_unlock = v1 + for { + if (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdin_FILE)))).Frpos != (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdin_FILE)))).Frend { + v5 = uintptr(unsafe.Pointer(&X__stdin_FILE)) + 8 + v4 = *(*uintptr)(unsafe.Pointer(v5)) + *(*uintptr)(unsafe.Pointer(v5)) = *(*uintptr)(unsafe.Pointer(v5)) + 1 + v3 = Int32FromUint8(**(**uint8)(__ccgo_up(v4))) + } else { + v3 = X__uflow(tls, uintptr(unsafe.Pointer(&X__stdin_FILE))) + } + v2 = v3 + c = v2 + if !(v2 != -int32(1) && c != int32('\n')) { + break + } + v6 = i + i = i + 1 + **(**uint8)(__ccgo_up(s + uintptr(v6))) = Uint8FromInt32(c) + } + **(**uint8)(__ccgo_up(s + uintptr(i))) = uint8(0) + if c != int32('\n') && (!((*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdin_FILE)))).Fflags&Uint32FromInt32(F_EOF) != 0) || !(i != 0)) { + s = uintptr(0) + } + if __need_unlock != 0 { + ___unlockfile(tls, uintptr(unsafe.Pointer(&X__stdin_FILE))) + } + return s +} + +func Xgetw(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 int32 + var _ /* x at bp+0 */ int32 + _ = v1 + if Xfread(tls, bp, uint64(4), uint64(1), f) != 0 { + v1 = **(**int32)(__ccgo_up(bp)) + } else { + v1 = -int32(1) + } + return v1 +} + +func Xgetwc(tls *TLS, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfgetwc(tls, f) +} + +func Xgetwchar(tls *TLS) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfgetwc(tls, uintptr(unsafe.Pointer(&X__stdin_FILE))) +} + +func Xgetwchar_unlocked(tls *TLS) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetwchar(tls) +} + +var _ofl_head uintptr +var _ofl_lock [1]int32 + +func X__ofl_lock(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + ___lock(tls, uintptr(unsafe.Pointer(&_ofl_lock))) + return uintptr(unsafe.Pointer(&_ofl_head)) +} + +func X__ofl_unlock(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + ___unlock(tls, uintptr(unsafe.Pointer(&_ofl_lock))) +} + +func X__ofl_add(tls *TLS, f uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var head uintptr + _ = head + head = X__ofl_lock(tls) + (*TFILE)(unsafe.Pointer(f)).Fnext = **(**uintptr)(__ccgo_up(head)) + if **(**uintptr)(__ccgo_up(head)) != 0 { + (*TFILE)(unsafe.Pointer(**(**uintptr)(__ccgo_up(head)))).Fprev = f + } + **(**uintptr)(__ccgo_up(head)) = f + X__ofl_unlock(tls) + return f +} + +type Tcookie1 = struct { + Fbufp uintptr + Fsizep uintptr + Fpos Tsize_t + Fbuf uintptr + Flen1 Tsize_t + Fspace Tsize_t +} + +type Tms_FILE = struct { + Ff TFILE + Fc Tcookie1 + Fbuf [1024]uint8 +} + +func _ms_seek(tls *TLS, f uintptr, off Toff_t, whence int32) (r Toff_t) { + bp := tls.Alloc(32) + defer tls.Free(32) + var base Tssize_t + var c uintptr + var v2 Tsize_t + _, _, _ = base, c, v2 + c = (*TFILE)(unsafe.Pointer(f)).Fcookie + if !(Uint32FromInt32(whence) > uint32(2)) { + goto _1 + } + goto fail +fail: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return int64(-int32(1)) +_1: + ; + *(*[3]Tsize_t)(unsafe.Pointer(bp)) = [3]Tsize_t{ + 1: (*Tcookie1)(unsafe.Pointer(c)).Fpos, + 2: (*Tcookie1)(unsafe.Pointer(c)).Flen1, + } + base = Int64FromUint64(**(**Tsize_t)(__ccgo_up(bp + uintptr(whence)*8))) + if off < -base || off > int64(0x7fffffffffffffff)-base { + goto fail + } + v2 = Uint64FromInt64(base + off) + (*Tcookie1)(unsafe.Pointer(c)).Fpos = v2 + return Int64FromUint64(v2) +} + +func _ms_write(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + var c, newbuf, v1 uintptr + var len2 Tsize_t + _, _, _, _ = c, len2, newbuf, v1 + c = (*TFILE)(unsafe.Pointer(f)).Fcookie + len2 = Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Fwpos) - int64((*TFILE)(unsafe.Pointer(f)).Fwbase)) + if len2 != 0 { + (*TFILE)(unsafe.Pointer(f)).Fwpos = (*TFILE)(unsafe.Pointer(f)).Fwbase + if _ms_write(tls, f, (*TFILE)(unsafe.Pointer(f)).Fwbase, len2) < len2 { + return uint64(0) + } + } + if len1+(*Tcookie1)(unsafe.Pointer(c)).Fpos >= (*Tcookie1)(unsafe.Pointer(c)).Fspace { + len2 = uint64(2)*(*Tcookie1)(unsafe.Pointer(c)).Fspace + uint64(1) | ((*Tcookie1)(unsafe.Pointer(c)).Fpos + len1 + uint64(1)) + newbuf = Xrealloc(tls, (*Tcookie1)(unsafe.Pointer(c)).Fbuf, len2) + if !(newbuf != 0) { + return uint64(0) + } + v1 = newbuf + (*Tcookie1)(unsafe.Pointer(c)).Fbuf = v1 + **(**uintptr)(__ccgo_up((*Tcookie1)(unsafe.Pointer(c)).Fbufp)) = v1 + Xmemset(tls, (*Tcookie1)(unsafe.Pointer(c)).Fbuf+uintptr((*Tcookie1)(unsafe.Pointer(c)).Fspace), 0, len2-(*Tcookie1)(unsafe.Pointer(c)).Fspace) + (*Tcookie1)(unsafe.Pointer(c)).Fspace = len2 + } + Xmemcpy(tls, (*Tcookie1)(unsafe.Pointer(c)).Fbuf+uintptr((*Tcookie1)(unsafe.Pointer(c)).Fpos), buf, len1) + **(**Tsize_t)(__ccgo_up(c + 16)) += len1 + if (*Tcookie1)(unsafe.Pointer(c)).Fpos >= (*Tcookie1)(unsafe.Pointer(c)).Flen1 { + (*Tcookie1)(unsafe.Pointer(c)).Flen1 = (*Tcookie1)(unsafe.Pointer(c)).Fpos + } + **(**Tsize_t)(__ccgo_up((*Tcookie1)(unsafe.Pointer(c)).Fsizep)) = (*Tcookie1)(unsafe.Pointer(c)).Fpos + return len1 +} + +func _ms_close(tls *TLS, f uintptr) (r int32) { + return 0 +} + +func Xopen_memstream(tls *TLS, bufp uintptr, sizep uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v bufp=%v sizep=%v, (%v:)", tls, bufp, sizep, origin(2)) + defer func() { trc("-> %v", r) }() + } + var buf, f, v1 uintptr + var v3, v4, v5 Tsize_t + _, _, _, _, _, _ = buf, f, v1, v3, v4, v5 + v1 = Xmalloc(tls, uint64(1304)) + f = v1 + if !(v1 != 0) { + return uintptr(0) + } + v1 = Xmalloc(tls, uint64(1)) + buf = v1 + if !(v1 != 0) { + Xfree(tls, f) + return uintptr(0) + } + Xmemset(tls, f, 0, uint64(232)) + Xmemset(tls, f+232, 0, uint64(48)) + (*Tms_FILE)(unsafe.Pointer(f)).Ff.Fcookie = f + 232 + (*Tms_FILE)(unsafe.Pointer(f)).Fc.Fbufp = bufp + (*Tms_FILE)(unsafe.Pointer(f)).Fc.Fsizep = sizep + v5 = Uint64FromInt32(0) + **(**Tsize_t)(__ccgo_up(sizep)) = v5 + v4 = v5 + (*Tms_FILE)(unsafe.Pointer(f)).Fc.Fspace = v4 + v3 = v4 + (*Tms_FILE)(unsafe.Pointer(f)).Fc.Flen1 = v3 + (*Tms_FILE)(unsafe.Pointer(f)).Fc.Fpos = v3 + v1 = buf + **(**uintptr)(__ccgo_up(bufp)) = v1 + (*Tms_FILE)(unsafe.Pointer(f)).Fc.Fbuf = v1 + **(**uint8)(__ccgo_up(buf)) = uint8(0) + (*Tms_FILE)(unsafe.Pointer(f)).Ff.Fflags = uint32(F_NORD) + (*Tms_FILE)(unsafe.Pointer(f)).Ff.Ffd = -int32(1) + (*Tms_FILE)(unsafe.Pointer(f)).Ff.Fbuf = f + 280 + (*Tms_FILE)(unsafe.Pointer(f)).Ff.Fbuf_size = uint64(1024) + (*Tms_FILE)(unsafe.Pointer(f)).Ff.Flbf = -int32(1) + (*Tms_FILE)(unsafe.Pointer(f)).Ff.Fwrite = __ccgo_fp(_ms_write) + (*Tms_FILE)(unsafe.Pointer(f)).Ff.Fseek = __ccgo_fp(_ms_seek) + (*Tms_FILE)(unsafe.Pointer(f)).Ff.Fclose1 = __ccgo_fp(_ms_close) + (*Tms_FILE)(unsafe.Pointer(f)).Ff.Fmode = -int32(1) + if !(X__libc.Fthreaded != 0) { + AtomicStorePInt32(f+140, -int32(1)) + } + return X__ofl_add(tls, f) +} + +type Tcookie2 = struct { + Fbufp uintptr + Fsizep uintptr + Fpos Tsize_t + Fbuf uintptr + Flen1 Tsize_t + Fspace Tsize_t + Fmbs Tmbstate_t +} + +type Twms_FILE = struct { + Ff TFILE + Fc Tcookie2 + Fbuf [1]uint8 +} + +func _wms_seek(tls *TLS, f uintptr, off Toff_t, whence int32) (r Toff_t) { + bp := tls.Alloc(32) + defer tls.Free(32) + var base Tssize_t + var c uintptr + var v2 Tsize_t + _, _, _ = base, c, v2 + c = (*TFILE)(unsafe.Pointer(f)).Fcookie + if !(Uint32FromInt32(whence) > uint32(2)) { + goto _1 + } + goto fail +fail: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return int64(-int32(1)) +_1: + ; + *(*[3]Tsize_t)(unsafe.Pointer(bp)) = [3]Tsize_t{ + 1: (*Tcookie2)(unsafe.Pointer(c)).Fpos, + 2: (*Tcookie2)(unsafe.Pointer(c)).Flen1, + } + base = Int64FromUint64(**(**Tsize_t)(__ccgo_up(bp + uintptr(whence)*8))) + if off < -base || off > Int64FromInt64(0x7fffffffffffffff)/Int64FromInt32(4)-base { + goto fail + } + Xmemset(tls, c+48, 0, uint64(8)) + v2 = Uint64FromInt64(base + off) + (*Tcookie2)(unsafe.Pointer(c)).Fpos = v2 + return Int64FromUint64(v2) +} + +func _wms_write(tls *TLS, f uintptr, _buf uintptr, len1 Tsize_t) (r Tsize_t) { + bp := tls.Alloc(16) + defer tls.Free(16) + *(*uintptr)(unsafe.Pointer(bp)) = _buf + var c, newbuf, v1 uintptr + var len2 Tsize_t + _, _, _, _ = c, len2, newbuf, v1 + c = (*TFILE)(unsafe.Pointer(f)).Fcookie + len2 = Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Fwpos) - int64((*TFILE)(unsafe.Pointer(f)).Fwbase)) + if len2 != 0 { + (*TFILE)(unsafe.Pointer(f)).Fwpos = (*TFILE)(unsafe.Pointer(f)).Fwbase + if _wms_write(tls, f, (*TFILE)(unsafe.Pointer(f)).Fwbase, len2) < len2 { + return uint64(0) + } + } + if len1+(*Tcookie2)(unsafe.Pointer(c)).Fpos >= (*Tcookie2)(unsafe.Pointer(c)).Fspace { + len2 = uint64(2)*(*Tcookie2)(unsafe.Pointer(c)).Fspace + uint64(1) | ((*Tcookie2)(unsafe.Pointer(c)).Fpos + len1 + uint64(1)) + if len2 > Uint64FromInt64(Int64FromInt64(0x7fffffffffffffff)/Int64FromInt32(4)) { + return uint64(0) + } + newbuf = Xrealloc(tls, (*Tcookie2)(unsafe.Pointer(c)).Fbuf, len2*uint64(4)) + if !(newbuf != 0) { + return uint64(0) + } + v1 = newbuf + (*Tcookie2)(unsafe.Pointer(c)).Fbuf = v1 + **(**uintptr)(__ccgo_up((*Tcookie2)(unsafe.Pointer(c)).Fbufp)) = v1 + Xmemset(tls, (*Tcookie2)(unsafe.Pointer(c)).Fbuf+uintptr((*Tcookie2)(unsafe.Pointer(c)).Fspace)*4, 0, uint64(4)*(len2-(*Tcookie2)(unsafe.Pointer(c)).Fspace)) + (*Tcookie2)(unsafe.Pointer(c)).Fspace = len2 + } + len2 = Xmbsnrtowcs(tls, (*Tcookie2)(unsafe.Pointer(c)).Fbuf+uintptr((*Tcookie2)(unsafe.Pointer(c)).Fpos)*4, bp, len1, (*Tcookie2)(unsafe.Pointer(c)).Fspace-(*Tcookie2)(unsafe.Pointer(c)).Fpos, c+48) + if len2 == Uint64FromInt32(-Int32FromInt32(1)) { + return uint64(0) + } + **(**Tsize_t)(__ccgo_up(c + 16)) += len2 + if (*Tcookie2)(unsafe.Pointer(c)).Fpos >= (*Tcookie2)(unsafe.Pointer(c)).Flen1 { + (*Tcookie2)(unsafe.Pointer(c)).Flen1 = (*Tcookie2)(unsafe.Pointer(c)).Fpos + } + **(**Tsize_t)(__ccgo_up((*Tcookie2)(unsafe.Pointer(c)).Fsizep)) = (*Tcookie2)(unsafe.Pointer(c)).Fpos + return len1 +} + +func _wms_close(tls *TLS, f uintptr) (r int32) { + return 0 +} + +func Xopen_wmemstream(tls *TLS, bufp uintptr, sizep uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v bufp=%v sizep=%v, (%v:)", tls, bufp, sizep, origin(2)) + defer func() { trc("-> %v", r) }() + } + var buf, f, v1 uintptr + var v3, v4, v5 Tsize_t + _, _, _, _, _, _ = buf, f, v1, v3, v4, v5 + v1 = Xmalloc(tls, uint64(296)) + f = v1 + if !(v1 != 0) { + return uintptr(0) + } + v1 = Xmalloc(tls, uint64(4)) + buf = v1 + if !(v1 != 0) { + Xfree(tls, f) + return uintptr(0) + } + Xmemset(tls, f, 0, uint64(232)) + Xmemset(tls, f+232, 0, uint64(56)) + (*Twms_FILE)(unsafe.Pointer(f)).Ff.Fcookie = f + 232 + (*Twms_FILE)(unsafe.Pointer(f)).Fc.Fbufp = bufp + (*Twms_FILE)(unsafe.Pointer(f)).Fc.Fsizep = sizep + v5 = Uint64FromInt32(0) + **(**Tsize_t)(__ccgo_up(sizep)) = v5 + v4 = v5 + (*Twms_FILE)(unsafe.Pointer(f)).Fc.Fspace = v4 + v3 = v4 + (*Twms_FILE)(unsafe.Pointer(f)).Fc.Flen1 = v3 + (*Twms_FILE)(unsafe.Pointer(f)).Fc.Fpos = v3 + v1 = buf + **(**uintptr)(__ccgo_up(bufp)) = v1 + (*Twms_FILE)(unsafe.Pointer(f)).Fc.Fbuf = v1 + **(**Twchar_t)(__ccgo_up(buf)) = uint32(0) + (*Twms_FILE)(unsafe.Pointer(f)).Ff.Fflags = uint32(F_NORD) + (*Twms_FILE)(unsafe.Pointer(f)).Ff.Ffd = -int32(1) + (*Twms_FILE)(unsafe.Pointer(f)).Ff.Fbuf = f + 288 + (*Twms_FILE)(unsafe.Pointer(f)).Ff.Fbuf_size = uint64(0) + (*Twms_FILE)(unsafe.Pointer(f)).Ff.Flbf = -int32(1) + (*Twms_FILE)(unsafe.Pointer(f)).Ff.Fwrite = __ccgo_fp(_wms_write) + (*Twms_FILE)(unsafe.Pointer(f)).Ff.Fseek = __ccgo_fp(_wms_seek) + (*Twms_FILE)(unsafe.Pointer(f)).Ff.Fclose1 = __ccgo_fp(_wms_close) + if !(X__libc.Fthreaded != 0) { + AtomicStorePInt32(f+140, -int32(1)) + } + Xfwide(tls, f, int32(1)) + return X__ofl_add(tls, f) +} + +func Xpclose(tls *TLS, f uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var pid Tpid_t + var r, v1 int32 + var _ /* status at bp+0 */ int32 + _, _, _ = pid, r, v1 + pid = (*TFILE)(unsafe.Pointer(f)).Fpipe_pid + Xfclose(tls, f) + for { + v1 = int32(X__syscall4(tls, int64(SYS_wait4), int64(pid), int64(bp), int64(Int32FromInt32(0)), int64(Int32FromInt32(0)))) + r = v1 + if !(v1 == -int32(EINTR)) { + break + } + } + if r < 0 { + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) + } + return **(**int32)(__ccgo_up(bp)) +} + +func Xperror(tls *TLS, msg uintptr) { + if __ccgo_strace { + trc("tls=%v msg=%v, (%v:)", tls, msg, origin(2)) + } + var __need_unlock, old_mode, v1 int32 + var errstr, f, old_locale uintptr + _, _, _, _, _, _ = __need_unlock, errstr, f, old_locale, old_mode, v1 + f = uintptr(unsafe.Pointer(&X__stderr_FILE)) + errstr = Xstrerror(tls, **(**int32)(__ccgo_up(X__errno_location(tls)))) + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + /* Save stderr's orientation and encoding rule, since perror is not + * permitted to change them. */ + old_locale = (*TFILE)(unsafe.Pointer(f)).Flocale + old_mode = (*TFILE)(unsafe.Pointer(f)).Fmode + if msg != 0 && **(**uint8)(__ccgo_up(msg)) != 0 { + Xfwrite(tls, msg, _strlen(tls, msg), uint64(1), f) + Xfputc(tls, int32(':'), f) + Xfputc(tls, int32(' '), f) + } + Xfwrite(tls, errstr, _strlen(tls, errstr), uint64(1), f) + Xfputc(tls, int32('\n'), f) + (*TFILE)(unsafe.Pointer(f)).Fmode = old_mode + (*TFILE)(unsafe.Pointer(f)).Flocale = old_locale + if __need_unlock != 0 { + ___unlockfile(tls, f) + } +} + +func Xprintf(tls *TLS, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v va=%v, (%v:)", tls, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvfprintf(tls, uintptr(unsafe.Pointer(&X__stdout_FILE)), fmt, ap) + _ = ap + return ret +} + +func _locking_putc1(tls *TLS, c int32, f uintptr) (r1 int32) { + var old, old1, r, v, v14, v2, v5, v7, v9 int32 + var v1, v11 uintptr + var v10 uint8 + _, _, _, _, _, _, _, _, _, _, _, _ = old, old1, r, v, v1, v10, v11, v14, v2, v5, v7, v9 + v1 = f + 140 + for { + // __asm__ __volatile__ ("ldaxr %w0,%1" : "=r"(v) : "Q"(*p)); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 5, __ccgo_ts+1521) + v5 = v + goto _6 + _6: + old = v5 + if old != 0 { + // __asm__ __volatile__ ("dmb ish" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 20, __ccgo_ts+1521) + break + } + goto _4 + _4: + ; + // __asm__ __volatile__ ("stlxr %w0,%w2,%1" : "=&r"(r), "=Q"(*p) : "r"(v) : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 13, __ccgo_ts+1521) + v2 = BoolInt32(!(r != 0)) + goto _3 + _3: + ; + if !!(v2 != 0) { + break + } + } + v7 = old + goto _8 +_8: + if v7 != 0 { + ___lockfile(tls, f) + } + if Int32FromUint8(Uint8FromInt32(c)) != (*TFILE)(unsafe.Pointer(f)).Flbf && (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwend { + v10 = Uint8FromInt32(c) + v11 = f + 40 + v1 = *(*uintptr)(unsafe.Pointer(v11)) + *(*uintptr)(unsafe.Pointer(v11)) = *(*uintptr)(unsafe.Pointer(v11)) + 1 + **(**uint8)(__ccgo_up(v1)) = v10 + v2 = Int32FromUint8(v10) + } else { + v2 = X__overflow(tls, f, Int32FromUint8(Uint8FromInt32(c))) + } + c = v2 + v1 = f + 140 + for { + // __asm__ __volatile__ ("ldaxr %w0,%1" : "=r"(v) : "Q"(*p)); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 5, __ccgo_ts+1521) + v5 = v + goto _18 + _18: + old1 = v5 + goto _16 + _16: + ; + // __asm__ __volatile__ ("stlxr %w0,%w2,%1" : "=&r"(r), "=Q"(*p) : "r"(v) : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 13, __ccgo_ts+1521) + v2 = BoolInt32(!(r != 0)) + goto _15 + _15: + ; + if !!(v2 != 0) { + break + } + } + v7 = old1 + goto _20 +_20: + if v7&int32(MAYBE_WAITERS) != 0 { + v11 = f + 140 + v9 = int32(1) + v14 = int32(1) + if v14 != 0 { + v14 = int32(FUTEX_PRIVATE) + } + if v9 < Int32FromInt32(0) { + v9 = int32(INT_MAX) + } + _ = X__syscall3(tls, int64(SYS_futex), int64(v11), int64(Int32FromInt32(FUTEX_WAKE)|v14), int64(v9)) != int64(-int32(ENOSYS)) || X__syscall3(tls, int64(SYS_futex), int64(v11), int64(Int32FromInt32(FUTEX_WAKE)), int64(v9)) != 0 + } + return c +} + +func Xputc(tls *TLS, c1 int32, f1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v c1=%v f1=%v, (%v:)", tls, c1, f1, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l, v1, v3, v5 int32 + var v2, v7, v8 uintptr + var v6 uint8 + _, _, _, _, _, _, _, _ = l, v1, v2, v3, v5, v6, v7, v8 + v1 = c1 + v2 = f1 + l = AtomicLoadPInt32(v2 + 140) + if l < 0 || l != 0 && l & ^Int32FromInt32(MAYBE_WAITERS) == (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Ftid { + if Int32FromUint8(Uint8FromInt32(v1)) != (*TFILE)(unsafe.Pointer(v2)).Flbf && (*TFILE)(unsafe.Pointer(v2)).Fwpos != (*TFILE)(unsafe.Pointer(v2)).Fwend { + v6 = Uint8FromInt32(v1) + v8 = v2 + 40 + v7 = *(*uintptr)(unsafe.Pointer(v8)) + *(*uintptr)(unsafe.Pointer(v8)) = *(*uintptr)(unsafe.Pointer(v8)) + 1 + **(**uint8)(__ccgo_up(v7)) = v6 + v5 = Int32FromUint8(v6) + } else { + v5 = X__overflow(tls, v2, Int32FromUint8(Uint8FromInt32(v1))) + } + v3 = v5 + goto _4 + } + v3 = _locking_putc1(tls, v1, v2) + goto _4 +_4: + return v3 +} + +func X_IO_putc(tls *TLS, c1 int32, f1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v c1=%v f1=%v, (%v:)", tls, c1, f1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xputc(tls, c1, f1) +} + +func Xputc_unlocked(tls *TLS, c int32, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v f=%v, (%v:)", tls, c, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + var v2 uint8 + var v3, v4 uintptr + _, _, _, _ = v1, v2, v3, v4 + if Int32FromUint8(Uint8FromInt32(c)) != (*TFILE)(unsafe.Pointer(f)).Flbf && (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwend { + v2 = Uint8FromInt32(c) + v4 = f + 40 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + **(**uint8)(__ccgo_up(v3)) = v2 + v1 = Int32FromUint8(v2) + } else { + v1 = X__overflow(tls, f, Int32FromUint8(Uint8FromInt32(c))) + } + return v1 +} + +func X_IO_putc_unlocked(tls *TLS, c int32, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v f=%v, (%v:)", tls, c, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xputc_unlocked(tls, c, f) +} + +func Xfputc_unlocked(tls *TLS, c int32, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v f=%v, (%v:)", tls, c, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xputc_unlocked(tls, c, f) +} + +func _locking_putc2(tls *TLS, c int32, f uintptr) (r1 int32) { + var old, old1, r, v, v14, v2, v5, v7, v9 int32 + var v1, v11 uintptr + var v10 uint8 + _, _, _, _, _, _, _, _, _, _, _, _ = old, old1, r, v, v1, v10, v11, v14, v2, v5, v7, v9 + v1 = f + 140 + for { + // __asm__ __volatile__ ("ldaxr %w0,%1" : "=r"(v) : "Q"(*p)); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 5, __ccgo_ts+1521) + v5 = v + goto _6 + _6: + old = v5 + if old != 0 { + // __asm__ __volatile__ ("dmb ish" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 20, __ccgo_ts+1521) + break + } + goto _4 + _4: + ; + // __asm__ __volatile__ ("stlxr %w0,%w2,%1" : "=&r"(r), "=Q"(*p) : "r"(v) : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 13, __ccgo_ts+1521) + v2 = BoolInt32(!(r != 0)) + goto _3 + _3: + ; + if !!(v2 != 0) { + break + } + } + v7 = old + goto _8 +_8: + if v7 != 0 { + ___lockfile(tls, f) + } + if Int32FromUint8(Uint8FromInt32(c)) != (*TFILE)(unsafe.Pointer(f)).Flbf && (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwend { + v10 = Uint8FromInt32(c) + v11 = f + 40 + v1 = *(*uintptr)(unsafe.Pointer(v11)) + *(*uintptr)(unsafe.Pointer(v11)) = *(*uintptr)(unsafe.Pointer(v11)) + 1 + **(**uint8)(__ccgo_up(v1)) = v10 + v2 = Int32FromUint8(v10) + } else { + v2 = X__overflow(tls, f, Int32FromUint8(Uint8FromInt32(c))) + } + c = v2 + v1 = f + 140 + for { + // __asm__ __volatile__ ("ldaxr %w0,%1" : "=r"(v) : "Q"(*p)); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 5, __ccgo_ts+1521) + v5 = v + goto _18 + _18: + old1 = v5 + goto _16 + _16: + ; + // __asm__ __volatile__ ("stlxr %w0,%w2,%1" : "=&r"(r), "=Q"(*p) : "r"(v) : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 13, __ccgo_ts+1521) + v2 = BoolInt32(!(r != 0)) + goto _15 + _15: + ; + if !!(v2 != 0) { + break + } + } + v7 = old1 + goto _20 +_20: + if v7&int32(MAYBE_WAITERS) != 0 { + v11 = f + 140 + v9 = int32(1) + v14 = int32(1) + if v14 != 0 { + v14 = int32(FUTEX_PRIVATE) + } + if v9 < Int32FromInt32(0) { + v9 = int32(INT_MAX) + } + _ = X__syscall3(tls, int64(SYS_futex), int64(v11), int64(Int32FromInt32(FUTEX_WAKE)|v14), int64(v9)) != int64(-int32(ENOSYS)) || X__syscall3(tls, int64(SYS_futex), int64(v11), int64(Int32FromInt32(FUTEX_WAKE)), int64(v9)) != 0 + } + return c +} + +func Xputchar(tls *TLS, c1 int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c1=%v, (%v:)", tls, c1, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l, v1, v3, v5 int32 + var v2, v7, v8 uintptr + var v6 uint8 + _, _, _, _, _, _, _, _ = l, v1, v2, v3, v5, v6, v7, v8 + v1 = c1 + v2 = uintptr(unsafe.Pointer(&X__stdout_FILE)) + l = AtomicLoadPInt32(v2 + 140) + if l < 0 || l != 0 && l & ^Int32FromInt32(MAYBE_WAITERS) == (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Ftid { + if Int32FromUint8(Uint8FromInt32(v1)) != (*TFILE)(unsafe.Pointer(v2)).Flbf && (*TFILE)(unsafe.Pointer(v2)).Fwpos != (*TFILE)(unsafe.Pointer(v2)).Fwend { + v6 = Uint8FromInt32(v1) + v8 = v2 + 40 + v7 = *(*uintptr)(unsafe.Pointer(v8)) + *(*uintptr)(unsafe.Pointer(v8)) = *(*uintptr)(unsafe.Pointer(v8)) + 1 + **(**uint8)(__ccgo_up(v7)) = v6 + v5 = Int32FromUint8(v6) + } else { + v5 = X__overflow(tls, v2, Int32FromUint8(Uint8FromInt32(v1))) + } + v3 = v5 + goto _4 + } + v3 = _locking_putc2(tls, v1, v2) + goto _4 +_4: + return v3 +} + +func Xputchar_unlocked(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + var v2 uint8 + var v3, v4 uintptr + _, _, _, _ = v1, v2, v3, v4 + if Int32FromUint8(Uint8FromInt32(c)) != (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdout_FILE)))).Flbf && (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdout_FILE)))).Fwpos != (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdout_FILE)))).Fwend { + v2 = Uint8FromInt32(c) + v4 = uintptr(unsafe.Pointer(&X__stdout_FILE)) + 40 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + **(**uint8)(__ccgo_up(v3)) = v2 + v1 = Int32FromUint8(v2) + } else { + v1 = X__overflow(tls, uintptr(unsafe.Pointer(&X__stdout_FILE)), Int32FromUint8(Uint8FromInt32(c))) + } + return v1 +} + +func Xputs(tls *TLS, s uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var __need_unlock, r, v1, v2 int32 + var v3 uint8 + var v4, v5 uintptr + var v6 bool + _, _, _, _, _, _, _, _ = __need_unlock, r, v1, v2, v3, v4, v5, v6 + if AtomicLoadPInt32(uintptr(unsafe.Pointer(&X__stdout_FILE))+140) >= 0 { + v1 = ___lockfile(tls, uintptr(unsafe.Pointer(&X__stdout_FILE))) + } else { + v1 = 0 + } + __need_unlock = v1 + if v6 = Xfputs(tls, s, uintptr(unsafe.Pointer(&X__stdout_FILE))) < 0; !v6 { + if Int32FromUint8(Uint8FromInt32(Int32FromUint8('\n'))) != (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdout_FILE)))).Flbf && (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdout_FILE)))).Fwpos != (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdout_FILE)))).Fwend { + v3 = Uint8FromInt32(Int32FromUint8('\n')) + v5 = uintptr(unsafe.Pointer(&X__stdout_FILE)) + 40 + v4 = *(*uintptr)(unsafe.Pointer(v5)) + *(*uintptr)(unsafe.Pointer(v5)) = *(*uintptr)(unsafe.Pointer(v5)) + 1 + **(**uint8)(__ccgo_up(v4)) = v3 + v2 = Int32FromUint8(v3) + } else { + v2 = X__overflow(tls, uintptr(unsafe.Pointer(&X__stdout_FILE)), Int32FromUint8(Uint8FromInt32(Int32FromUint8('\n')))) + } + } + r = -BoolInt32(v6 || v2 < 0) + if __need_unlock != 0 { + ___unlockfile(tls, uintptr(unsafe.Pointer(&X__stdout_FILE))) + } + return r +} + +func Xputw(tls *TLS, _x int32, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v _x=%v f=%v, (%v:)", tls, _x, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + *(*int32)(unsafe.Pointer(bp)) = _x + return Int32FromUint64(Xfwrite(tls, bp, uint64(4), uint64(1), f)) - int32(1) +} + +func Xputwc(tls *TLS, c Twchar_t, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v f=%v, (%v:)", tls, c, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfputwc(tls, c, f) +} + +func Xputwchar(tls *TLS, c Twchar_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfputwc(tls, c, uintptr(unsafe.Pointer(&X__stdout_FILE))) +} + +func Xputwchar_unlocked(tls *TLS, c Twchar_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xputwchar(tls, c) +} + +func Xremove(tls *TLS, path uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v path=%v, (%v:)", tls, path, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + r = int32(X__syscall3(tls, int64(SYS_unlinkat), int64(-Int32FromInt32(100)), int64(path), int64(Int32FromInt32(0)))) + if r == -int32(EISDIR) { + r = int32(X__syscall3(tls, int64(SYS_unlinkat), int64(-Int32FromInt32(100)), int64(path), int64(Int32FromInt32(AT_REMOVEDIR)))) + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func Xrename(tls *TLS, old uintptr, new1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v old=%v new1=%v, (%v:)", tls, old, new1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_renameat), int64(-Int32FromInt32(100)), int64(old), int64(-Int32FromInt32(100)), int64(new1))))) +} + +func Xrewind(tls *TLS, f uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } + var __need_unlock, v1 int32 + _, _ = __need_unlock, v1 + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + X__fseeko_unlocked(tls, f, 0, 0) + **(**uint32)(__ccgo_up(f)) &= Uint32FromInt32(^Int32FromInt32(F_ERR)) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } +} + +func Xscanf(tls *TLS, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v va=%v, (%v:)", tls, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvscanf(tls, fmt, ap) + _ = ap + return ret +} + +func X__isoc99_scanf(tls *TLS, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v va=%v, (%v:)", tls, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xscanf(tls, fmt, va) +} + +func Xsetbuf(tls *TLS, f uintptr, buf uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v buf=%v, (%v:)", tls, f, buf, origin(2)) + } + var v1 int32 + _ = v1 + if buf != 0 { + v1 = _IOFBF + } else { + v1 = int32(_IONBF) + } + Xsetvbuf(tls, f, buf, v1, uint64(BUFSIZ)) +} + +func Xsetbuffer(tls *TLS, f uintptr, buf uintptr, size Tsize_t) { + if __ccgo_strace { + trc("tls=%v f=%v buf=%v size=%v, (%v:)", tls, f, buf, size, origin(2)) + } + var v1 int32 + _ = v1 + if buf != 0 { + v1 = _IOFBF + } else { + v1 = int32(_IONBF) + } + Xsetvbuf(tls, f, buf, v1, size) +} + +func Xsetlinebuf(tls *TLS, f uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } + Xsetvbuf(tls, f, uintptr(0), int32(_IOLBF), uint64(0)) +} + +/* The behavior of this function is undefined except when it is the first + * operation on the stream, so the presence or absence of locking is not + * observable in a program whose behavior is defined. Thus no locking is + * performed here. No allocation of buffers is performed, but a buffer + * provided by the caller is used as long as it is suitably sized. */ + +func Xsetvbuf(tls *TLS, f uintptr, buf uintptr, type1 int32, size Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v buf=%v type1=%v size=%v, (%v:)", tls, f, buf, type1, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + (*TFILE)(unsafe.Pointer(f)).Flbf = -int32(1) + if type1 == int32(_IONBF) { + (*TFILE)(unsafe.Pointer(f)).Fbuf_size = uint64(0) + } else { + if type1 == int32(_IOLBF) || type1 == _IOFBF { + if buf != 0 && size >= uint64(UNGET) { + (*TFILE)(unsafe.Pointer(f)).Fbuf = buf + UintptrFromInt32(UNGET) + (*TFILE)(unsafe.Pointer(f)).Fbuf_size = size - uint64(UNGET) + } + if type1 == int32(_IOLBF) && (*TFILE)(unsafe.Pointer(f)).Fbuf_size != 0 { + (*TFILE)(unsafe.Pointer(f)).Flbf = int32('\n') + } + } else { + return -int32(1) + } + } + **(**uint32)(__ccgo_up(f)) |= uint32(F_SVB) + return 0 +} + +func Xsnprintf(tls *TLS, s uintptr, n Tsize_t, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v fmt=%v va=%v, (%v:)", tls, s, n, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvsnprintf(tls, s, n, fmt, ap) + _ = ap + return ret +} + +func Xsprintf(tls *TLS, s uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v va=%v, (%v:)", tls, s, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvsprintf(tls, s, fmt, ap) + _ = ap + return ret +} + +func Xsscanf(tls *TLS, s uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v va=%v, (%v:)", tls, s, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvsscanf(tls, s, fmt, ap) + _ = ap + return ret +} + +func X__isoc99_sscanf(tls *TLS, s uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v va=%v, (%v:)", tls, s, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xsscanf(tls, s, fmt, va) +} + +var _buf5 [8]uint8 + +func init() { + p := unsafe.Pointer(&X__stderr_FILE) + *(*uintptr)(unsafe.Add(p, 24)) = __ccgo_fp(X__stdio_close) + *(*uintptr)(unsafe.Add(p, 72)) = __ccgo_fp(X__stdio_write) + *(*uintptr)(unsafe.Add(p, 80)) = __ccgo_fp(X__stdio_seek) +} + +var _buf6 [1032]uint8 + +func init() { + p := unsafe.Pointer(&X__stdin_FILE) + *(*uintptr)(unsafe.Add(p, 24)) = __ccgo_fp(X__stdio_close) + *(*uintptr)(unsafe.Add(p, 64)) = __ccgo_fp(X__stdio_read) + *(*uintptr)(unsafe.Add(p, 80)) = __ccgo_fp(X__stdio_seek) +} + +var _buf7 [1032]uint8 + +func init() { + p := unsafe.Pointer(&X__stdout_FILE) + *(*uintptr)(unsafe.Add(p, 24)) = __ccgo_fp(X__stdio_close) + *(*uintptr)(unsafe.Add(p, 72)) = __ccgo_fp(X__stdout_write) + *(*uintptr)(unsafe.Add(p, 80)) = __ccgo_fp(X__stdio_seek) +} + +func Xswprintf(tls *TLS, s uintptr, n Tsize_t, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v fmt=%v va=%v, (%v:)", tls, s, n, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvswprintf(tls, s, n, fmt, ap) + _ = ap + return ret +} + +func Xswscanf(tls *TLS, s uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v va=%v, (%v:)", tls, s, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvswscanf(tls, s, fmt, ap) + _ = ap + return ret +} + +func X__isoc99_swscanf(tls *TLS, s uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v va=%v, (%v:)", tls, s, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xswscanf(tls, s, fmt, va) +} + +const MAXTRIES = 100 + +func Xtempnam(tls *TLS, dir uintptr, pfx uintptr) (r1 uintptr) { + if __ccgo_strace { + trc("tls=%v dir=%v pfx=%v, (%v:)", tls, dir, pfx, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(4112) + defer tls.Free(4112) + var dl, l, pl Tsize_t + var r, try int32 + var _ /* s at bp+1 */ [4096]uint8 + _, _, _, _, _ = dl, l, pl, r, try + if !(dir != 0) { + dir = __ccgo_ts + 1573 + } + if !(pfx != 0) { + pfx = __ccgo_ts + 1578 + } + dl = _strlen(tls, dir) + pl = _strlen(tls, pfx) + l = dl + uint64(1) + pl + uint64(1) + uint64(6) + if l >= uint64(PATH_MAX) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENAMETOOLONG) + return uintptr(0) + } + Xmemcpy(tls, bp+1, dir, dl) + (**(**[4096]uint8)(__ccgo_up(bp + 1)))[dl] = uint8('/') + Xmemcpy(tls, bp+1+uintptr(dl)+uintptr(1), pfx, pl) + (**(**[4096]uint8)(__ccgo_up(bp + 1)))[dl+uint64(1)+pl] = uint8('_') + (**(**[4096]uint8)(__ccgo_up(bp + 1)))[l] = uint8(0) + try = 0 + for { + if !(try < int32(MAXTRIES)) { + break + } + ___randname(tls, bp+1+uintptr(l)-uintptr(6)) + *(*[1]uint8)(unsafe.Pointer(bp)) = [1]uint8{} + r = int32(X__syscall4(tls, int64(SYS_readlinkat), int64(-Int32FromInt32(100)), int64(bp+1), int64(bp), int64(Int32FromInt32(1)))) + if r == -int32(ENOENT) { + return Xstrdup(tls, bp+1) + } + goto _1 + _1: + ; + try = try + 1 + } + return uintptr(0) +} + +func Xtmpfile(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var f uintptr + var fd, try int32 + var _ /* s at bp+0 */ [20]uint8 + _, _, _ = f, fd, try + **(**[20]uint8)(__ccgo_up(bp)) = [20]uint8{'/', 't', 'm', 'p', '/', 't', 'm', 'p', 'f', 'i', 'l', 'e', '_', 'X', 'X', 'X', 'X', 'X', 'X'} + try = 0 + for { + if !(try < int32(MAXTRIES)) { + break + } + ___randname(tls, bp+uintptr(13)) + fd = int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_openat), int64(-Int32FromInt32(100)), int64(bp), int64(Int32FromInt32(O_RDWR)|Int32FromInt32(O_CREAT)|Int32FromInt32(O_EXCL)|Int32FromInt32(O_LARGEFILE)), int64(Int32FromInt32(0600)))))) + if fd >= 0 { + X__syscall3(tls, int64(SYS_unlinkat), int64(-Int32FromInt32(100)), int64(bp), int64(Int32FromInt32(0))) + f = X__fdopen(tls, fd, __ccgo_ts+1583) + if !(f != 0) { + X__syscall1(tls, int64(SYS_close), int64(fd)) + } + return f + } + goto _1 + _1: + ; + try = try + 1 + } + return uintptr(0) +} + +func Xtmpnam(tls *TLS, buf uintptr) (r1 uintptr) { + if __ccgo_strace { + trc("tls=%v buf=%v, (%v:)", tls, buf, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var r, try int32 + var v2 uintptr + var _ /* s at bp+1 */ [19]uint8 + _, _, _ = r, try, v2 + **(**[19]uint8)(__ccgo_up(bp + 1)) = [19]uint8{'/', 't', 'm', 'p', '/', 't', 'm', 'p', 'n', 'a', 'm', '_', 'X', 'X', 'X', 'X', 'X', 'X'} + try = 0 + for { + if !(try < int32(MAXTRIES)) { + break + } + ___randname(tls, bp+1+uintptr(12)) + *(*[1]uint8)(unsafe.Pointer(bp)) = [1]uint8{} + r = int32(X__syscall4(tls, int64(SYS_readlinkat), int64(-Int32FromInt32(100)), int64(bp+1), int64(bp), int64(Int32FromInt32(1)))) + if r == -int32(ENOENT) { + if buf != 0 { + v2 = buf + } else { + v2 = uintptr(unsafe.Pointer(&_internal1)) + } + return Xstrcpy(tls, v2, bp+1) + } + goto _1 + _1: + ; + try = try + 1 + } + return uintptr(0) +} + +var _internal1 [20]uint8 + +func Xungetc(tls *TLS, c int32, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v f=%v, (%v:)", tls, c, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, v1 int32 + var v2, v3 uintptr + _, _, _, _ = __need_unlock, v1, v2, v3 + if c == -int32(1) { + return c + } + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + if !((*TFILE)(unsafe.Pointer(f)).Frpos != 0) { + X__toread(tls, f) + } + if !((*TFILE)(unsafe.Pointer(f)).Frpos != 0) || (*TFILE)(unsafe.Pointer(f)).Frpos <= (*TFILE)(unsafe.Pointer(f)).Fbuf-uintptr(UNGET) { + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return -int32(1) + } + v3 = f + 8 + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) - 1 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + **(**uint8)(__ccgo_up(v2)) = Uint8FromInt32(c) + **(**uint32)(__ccgo_up(f)) &= Uint32FromInt32(^Int32FromInt32(F_EOF)) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return Int32FromUint8(Uint8FromInt32(c)) +} + +func Xungetwc(tls *TLS, c Twint_t, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v f=%v, (%v:)", tls, c, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var __need_unlock, l, v1 int32 + var loc Tlocale_t + var ploc, v4, v5 uintptr + var v3 bool + var _ /* mbc at bp+0 */ [4]uint8 + _, _, _, _, _, _, _, _ = __need_unlock, l, loc, ploc, v1, v3, v4, v5 + ploc = uintptr(___get_tp(tls)) + 152 + loc = **(**Tlocale_t)(__ccgo_up(ploc)) + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + if (*TFILE)(unsafe.Pointer(f)).Fmode <= 0 { + Xfwide(tls, f, int32(1)) + } + **(**Tlocale_t)(__ccgo_up(ploc)) = (*TFILE)(unsafe.Pointer(f)).Flocale + if !((*TFILE)(unsafe.Pointer(f)).Frpos != 0) { + X__toread(tls, f) + } + if v3 = !((*TFILE)(unsafe.Pointer(f)).Frpos != 0) || c == uint32(0xffffffff); !v3 { + v1 = Int32FromUint64(Xwcrtomb(tls, bp, c, uintptr(0))) + l = v1 + } + if v3 || v1 < 0 || (*TFILE)(unsafe.Pointer(f)).Frpos < (*TFILE)(unsafe.Pointer(f)).Fbuf-uintptr(UNGET)+uintptr(l) { + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + **(**Tlocale_t)(__ccgo_up(ploc)) = loc + return uint32(0xffffffff) + } + if BoolInt32(c < uint32(128)) != 0 { + v5 = f + 8 + *(*uintptr)(unsafe.Pointer(v5)) = *(*uintptr)(unsafe.Pointer(v5)) - 1 + v4 = *(*uintptr)(unsafe.Pointer(v5)) + **(**uint8)(__ccgo_up(v4)) = uint8(c) + } else { + v4 = f + 8 + *(*uintptr)(unsafe.Pointer(v4)) -= uintptr(l) + Xmemcpy(tls, *(*uintptr)(unsafe.Pointer(v4)), bp, Uint64FromInt32(l)) + } + **(**uint32)(__ccgo_up(f)) &= Uint32FromInt32(^Int32FromInt32(F_EOF)) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + **(**Tlocale_t)(__ccgo_up(ploc)) = loc + return c +} + +func Xvasprintf(tls *TLS, s uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v ap=%v, (%v:)", tls, s, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap2 Tva_list + var l int32 + var v1 uintptr + var v2 bool + _, _, _, _ = ap2, l, v1, v2 + ap2 = ap + l = Xvsnprintf(tls, uintptr(0), uint64(0), fmt, ap2) + _ = ap2 + if v2 = l < 0; !v2 { + v1 = Xmalloc(tls, uint64(Uint32FromInt32(l)+uint32(1))) + **(**uintptr)(__ccgo_up(s)) = v1 + } + if v2 || !(v1 != 0) { + return -int32(1) + } + return Xvsnprintf(tls, **(**uintptr)(__ccgo_up(s)), uint64(Uint32FromInt32(l)+uint32(1)), fmt, ap) +} + +func Xvdprintf(tls *TLS, fd int32, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v fmt=%v ap=%v, (%v:)", tls, fd, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(240) + defer tls.Free(240) + var _ /* f at bp+0 */ TFILE + **(**TFILE)(__ccgo_up(bp)) = TFILE{ + Fwrite: __ccgo_fp(X__stdio_write), + Fbuf: fmt, + Ffd: fd, + Flock: -int32(1), + Flbf: -int32(1), + } + return Xvfprintf(tls, bp, fmt, ap) +} + +const ALT_FORM = 8 +const FLAGMASK = 75913 +const GROUPED = 128 +const LDBL_EPSILON3 = 2.22044604925031308085e-16 +const LEFT_ADJ = 8192 +const MARK_POS = 2048 +const PAD_POS = 1 +const ZERO_PAD = 65536 + +const _BARE = 0 +const _LPRE = 1 +const _LLPRE = 2 +const _HPRE = 3 +const _HHPRE = 4 +const _BIGLPRE = 5 +const _ZTPRE = 6 +const _JPRE = 7 +const _STOP = 8 +const _PTR = 9 +const _INT = 10 +const _UINT = 11 +const _ULLONG = 12 +const _LONG = 13 +const _ULONG = 14 +const _SHORT = 15 +const _USHORT = 16 +const _CHAR = 17 +const _UCHAR = 18 +const _LLONG = 19 +const _SIZET = 20 +const _IMAX = 21 +const _UMAX = 22 +const _PDIFF = 23 +const _UIPTR = 24 +const _DBL = 25 +const _LDBL = 26 +const _NOARG = 27 +const _MAXSTATE = 28 + +var _states = [8][58]uint8{ + 0: { + 0: uint8(_DBL), + 2: uint8(_UINT), + 4: uint8(_DBL), + 5: uint8(_DBL), + 6: uint8(_DBL), + 11: uint8(_BIGLPRE), + 18: uint8(_PTR), + 23: uint8(_UINT), + 32: uint8(_DBL), + 34: uint8(_INT), + 35: uint8(_INT), + 36: uint8(_DBL), + 37: uint8(_DBL), + 38: uint8(_DBL), + 39: uint8(_HPRE), + 40: uint8(_INT), + 41: uint8(_JPRE), + 43: uint8(_LPRE), + 44: uint8(_NOARG), + 45: uint8(_PTR), + 46: uint8(_UINT), + 47: uint8(_UIPTR), + 50: uint8(_PTR), + 51: uint8(_ZTPRE), + 52: uint8(_UINT), + 55: uint8(_UINT), + 57: uint8(_ZTPRE), + }, + 1: { + 0: uint8(_DBL), + 4: uint8(_DBL), + 5: uint8(_DBL), + 6: uint8(_DBL), + 23: uint8(_ULONG), + 32: uint8(_DBL), + 34: uint8(_UINT), + 35: uint8(_LONG), + 36: uint8(_DBL), + 37: uint8(_DBL), + 38: uint8(_DBL), + 40: uint8(_LONG), + 43: uint8(_LLPRE), + 45: uint8(_PTR), + 46: uint8(_ULONG), + 50: uint8(_PTR), + 52: uint8(_ULONG), + 55: uint8(_ULONG), + }, + 2: { + 23: uint8(_ULLONG), + 35: uint8(_LLONG), + 40: uint8(_LLONG), + 45: uint8(_PTR), + 46: uint8(_ULLONG), + 52: uint8(_ULLONG), + 55: uint8(_ULLONG), + }, + 3: { + 23: uint8(_USHORT), + 35: uint8(_SHORT), + 39: uint8(_HHPRE), + 40: uint8(_SHORT), + 45: uint8(_PTR), + 46: uint8(_USHORT), + 52: uint8(_USHORT), + 55: uint8(_USHORT), + }, + 4: { + 23: uint8(_UCHAR), + 35: uint8(_CHAR), + 40: uint8(_CHAR), + 45: uint8(_PTR), + 46: uint8(_UCHAR), + 52: uint8(_UCHAR), + 55: uint8(_UCHAR), + }, + 5: { + 0: uint8(_LDBL), + 4: uint8(_LDBL), + 5: uint8(_LDBL), + 6: uint8(_LDBL), + 32: uint8(_LDBL), + 36: uint8(_LDBL), + 37: uint8(_LDBL), + 38: uint8(_LDBL), + 45: uint8(_PTR), + }, + 6: { + 23: uint8(_SIZET), + 35: uint8(_PDIFF), + 40: uint8(_PDIFF), + 45: uint8(_PTR), + 46: uint8(_SIZET), + 52: uint8(_SIZET), + 55: uint8(_SIZET), + }, + 7: { + 23: uint8(_UMAX), + 35: uint8(_IMAX), + 40: uint8(_IMAX), + 45: uint8(_PTR), + 46: uint8(_UMAX), + 52: uint8(_UMAX), + 55: uint8(_UMAX), + }, +} + +type Targ = struct { + Ff [0]float64 + Fp [0]uintptr + Fi Tuintmax_t +} + +func _pop_arg(tls *TLS, arg uintptr, type1 int32, ap uintptr) { + switch type1 { + case int32(_PTR): + *(*uintptr)(unsafe.Pointer(arg)) = VaUintptr(&**(**Tva_list)(__ccgo_up(ap))) + case int32(_INT): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt32(VaInt32(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_UINT): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(VaUint32(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_LONG): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt64(VaInt64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_ULONG): + (*Targ)(unsafe.Pointer(arg)).Fi = VaUint64(&**(**Tva_list)(__ccgo_up(ap))) + case int32(_ULLONG): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(VaUint64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_SHORT): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt16(int16(VaInt32(&**(**Tva_list)(__ccgo_up(ap))))) + case int32(_USHORT): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(Uint16FromInt32(VaInt32(&**(**Tva_list)(__ccgo_up(ap))))) + case int32(_CHAR): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt8(int8(VaInt32(&**(**Tva_list)(__ccgo_up(ap))))) + case int32(_UCHAR): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(Uint8FromInt32(VaInt32(&**(**Tva_list)(__ccgo_up(ap))))) + case int32(_LLONG): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt64(VaInt64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_SIZET): + (*Targ)(unsafe.Pointer(arg)).Fi = VaUint64(&**(**Tva_list)(__ccgo_up(ap))) + case int32(_IMAX): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt64(VaInt64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_UMAX): + (*Targ)(unsafe.Pointer(arg)).Fi = VaUint64(&**(**Tva_list)(__ccgo_up(ap))) + case int32(_PDIFF): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt64(VaInt64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_UIPTR): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(VaUintptr(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_DBL): + *(*float64)(unsafe.Pointer(arg)) = float64(VaFloat64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_LDBL): + *(*float64)(unsafe.Pointer(arg)) = VaFloat64(&**(**Tva_list)(__ccgo_up(ap))) + } +} + +func _out(tls *TLS, f uintptr, s uintptr, l Tsize_t) { + if !((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_ERR) != 0) { + X__fwritex(tls, s, l, f) + } +} + +func _pad3(tls *TLS, f uintptr, c uint8, w int32, l int32, fl int32) { + bp := tls.Alloc(256) + defer tls.Free(256) + var v1 uint64 + var _ /* pad at bp+0 */ [256]uint8 + _ = v1 + if Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8('0')-Int32FromUint8(' '))) != 0 || l >= w { + return + } + l = w - l + if Uint64FromInt32(l) > uint64(256) { + v1 = uint64(256) + } else { + v1 = Uint64FromInt32(l) + } + Xmemset(tls, bp, Int32FromUint8(c), v1) + for { + if !(Uint64FromInt32(l) >= uint64(256)) { + break + } + _out(tls, f, bp, uint64(256)) + goto _2 + _2: + ; + l = Int32FromUint64(uint64(l) - Uint64FromInt64(256)) + } + _out(tls, f, bp, Uint64FromInt32(l)) +} + +var _xdigits1 = [16]uint8{'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'} + +func _fmt_x(tls *TLS, x Tuintmax_t, s uintptr, lower int32) (r uintptr) { + var v2 uintptr + _ = v2 + for { + if !(x != 0) { + break + } + s = s - 1 + v2 = s + **(**uint8)(__ccgo_up(v2)) = Uint8FromInt32(Int32FromUint8(_xdigits1[x&uint64(15)]) | lower) + goto _1 + _1: + ; + x = x >> uint64(4) + } + return s +} + +func _fmt_o(tls *TLS, x Tuintmax_t, s uintptr) (r uintptr) { + var v2 uintptr + _ = v2 + for { + if !(x != 0) { + break + } + s = s - 1 + v2 = s + **(**uint8)(__ccgo_up(v2)) = uint8(uint64('0') + x&uint64(7)) + goto _1 + _1: + ; + x = x >> uint64(3) + } + return s +} + +func _fmt_u(tls *TLS, x Tuintmax_t, s uintptr) (r uintptr) { + var y uint64 + var v2 uintptr + _, _ = y, v2 + for { + if !(x > Uint64FromUint64(2)*Uint64FromInt64(0x7fffffffffffffff)+Uint64FromInt32(1)) { + break + } + s = s - 1 + v2 = s + **(**uint8)(__ccgo_up(v2)) = uint8(uint64('0') + x%uint64(10)) + goto _1 + _1: + ; + x = x / uint64(10) + } + y = x + for { + if !(y != 0) { + break + } + s = s - 1 + v2 = s + **(**uint8)(__ccgo_up(v2)) = uint8(uint64('0') + y%uint64(10)) + goto _3 + _3: + ; + y = y / uint64(10) + } + return s +} + +// C documentation +// +// /* Do not override this check. The floating point printing code below +// * depends on the float.h constants being right. If they are wrong, it +// * may overflow the stack. */ +type Tcompiler_defines_long_double_incorrectly = [1]uint8 + +func _fmt_fp(tls *TLS, f uintptr, y float64, w int32, p int32, fl int32, t int32) (r1 int32) { + bp := tls.Alloc(560) + defer tls.Free(560) + var a, b, d, ebuf, estr, prefix, r, s, s1, s2, s3, s4, z, v5, v6 uintptr + var carry, carry1, rm, x2 Tuint32_t + var e, i, j, l, need, pl, re, sh, sh1, x, v7 int32 + var round, round1, small float64 + var x1 Tuint64_t + var v1 uint64 + var v36, v37, v38 int64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + var _ /* big at bp+8 */ [126]Tuint32_t + var _ /* buf at bp+516 */ [22]uint8 + var _ /* e2 at bp+512 */ int32 + var _ /* ebuf0 at bp+538 */ [12]uint8 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = a, b, carry, carry1, d, e, ebuf, estr, i, j, l, need, pl, prefix, r, re, rm, round, round1, s, s1, s2, s3, s4, sh, sh1, small, x, x1, x2, z, v1, v36, v37, v38, v5, v6, v7 + **(**int32)(__ccgo_up(bp + 512)) = 0 + prefix = __ccgo_ts + 1586 + ebuf = bp + 538 + uintptr(Uint64FromInt32(3)*Uint64FromInt64(4)) + pl = int32(1) + *(*float64)(unsafe.Pointer(bp)) = y + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + if Int32FromUint64(v1>>Int32FromInt32(63)) != 0 { + y = -y + } else { + if Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('+')-Int32FromUint8(' '))) != 0 { + prefix = prefix + uintptr(3) + } else { + if Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8(' ')-Int32FromUint8(' '))) != 0 { + prefix = prefix + uintptr(6) + } else { + prefix = prefix + 1 + pl = Int32FromInt32(0) + } + } + } + *(*float64)(unsafe.Pointer(bp)) = y + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _4 +_4: + if !(BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) < Uint64FromUint64(0x7ff)< int32(3)+pl { + v7 = w + } else { + v7 = int32(3) + pl + } + return v7 + } + y = float64(Xfrexpl(tls, y, bp+512) * Float64FromInt32(2)) + if y != 0 { + **(**int32)(__ccgo_up(bp + 512)) = **(**int32)(__ccgo_up(bp + 512)) - 1 + } + if t|int32(32) == int32('a') { + round = Float64FromFloat64(8) + if t&int32(32) != 0 { + prefix = prefix + uintptr(9) + } + pl = pl + int32(2) + if p < 0 || p >= Int32FromInt32(LDBL_MANT_DIG)/Int32FromInt32(4)-Int32FromInt32(1) { + re = 0 + } else { + re = Int32FromInt32(LDBL_MANT_DIG)/Int32FromInt32(4) - Int32FromInt32(1) - p + } + if re != 0 { + round = round * float64(Int32FromInt32(1)<<(Int32FromInt32(LDBL_MANT_DIG)%Int32FromInt32(4))) + for { + v7 = re + re = re - 1 + if !(v7 != 0) { + break + } + round = round * Float64FromInt32(16) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(prefix))) == int32('-') { + y = -y + y = y - round + y = y + round + y = -y + } else { + y = y + round + y = y - round + } + } + if **(**int32)(__ccgo_up(bp + 512)) < 0 { + v7 = -**(**int32)(__ccgo_up(bp + 512)) + } else { + v7 = **(**int32)(__ccgo_up(bp + 512)) + } + estr = _fmt_u(tls, Uint64FromInt32(v7), ebuf) + if estr == ebuf { + estr = estr - 1 + v5 = estr + **(**uint8)(__ccgo_up(v5)) = uint8('0') + } + estr = estr - 1 + v5 = estr + if **(**int32)(__ccgo_up(bp + 512)) < 0 { + v7 = int32('-') + } else { + v7 = int32('+') + } + **(**uint8)(__ccgo_up(v5)) = Uint8FromInt32(v7) + estr = estr - 1 + v5 = estr + **(**uint8)(__ccgo_up(v5)) = Uint8FromInt32(t + (Int32FromUint8('p') - Int32FromUint8('a'))) + s = bp + 516 + for cond := true; cond; cond = y != 0 { + x = int32(y) + v5 = s + s = s + 1 + **(**uint8)(__ccgo_up(v5)) = Uint8FromInt32(Int32FromUint8(_xdigits1[x]) | t&int32(32)) + y = float64(Float64FromInt32(16) * (y - float64(x))) + if int64(s)-t__predefined_ptrdiff_t(bp+516) == int64(1) && (y != 0 || p > 0 || Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0) { + v5 = s + s = s + 1 + **(**uint8)(__ccgo_up(v5)) = uint8('.') + } + } + if int64(p) > int64(Int32FromInt32(INT_MAX)-Int32FromInt32(2))-(int64(ebuf)-int64(estr))-int64(pl) { + return -int32(1) + } + if p != 0 && int64(s)-t__predefined_ptrdiff_t(bp+516)-int64(2) < int64(p) { + l = int32(int64(p+Int32FromInt32(2)) + (int64(ebuf) - int64(estr))) + } else { + l = int32(int64(s) - t__predefined_ptrdiff_t(bp+516) + (int64(ebuf) - int64(estr))) + } + _pad3(tls, f, uint8(' '), w, pl+l, fl) + _out(tls, f, prefix, Uint64FromInt32(pl)) + _pad3(tls, f, uint8('0'), w, pl+l, Int32FromUint32(Uint32FromInt32(fl)^Uint32FromUint32(1)<<(Int32FromUint8('0')-Int32FromUint8(' ')))) + _out(tls, f, bp+516, Uint64FromInt64(int64(s)-t__predefined_ptrdiff_t(bp+516))) + _pad3(tls, f, uint8('0'), int32(int64(l)-(int64(ebuf)-int64(estr))-(int64(s)-t__predefined_ptrdiff_t(bp+516))), 0, 0) + _out(tls, f, estr, Uint64FromInt64(int64(ebuf)-int64(estr))) + _pad3(tls, f, uint8(' '), w, pl+l, Int32FromUint32(Uint32FromInt32(fl)^Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' ')))) + if w > pl+l { + v7 = w + } else { + v7 = pl + l + } + return v7 + } + if p < 0 { + p = int32(6) + } + if y != 0 { + y = y * Float64FromFloat64(2.68435456e+08) + **(**int32)(__ccgo_up(bp + 512)) = **(**int32)(__ccgo_up(bp + 512)) - int32(28) + } + if **(**int32)(__ccgo_up(bp + 512)) < 0 { + v6 = bp + 8 + z = v6 + v5 = v6 + r = v5 + a = v5 + } else { + v6 = bp + 8 + uintptr(Uint64FromInt64(504)/Uint64FromInt64(4))*4 - UintptrFromInt32(LDBL_MANT_DIG)*4 - UintptrFromInt32(1)*4 + z = v6 + v5 = v6 + r = v5 + a = v5 + } + for cond := true; cond; cond = y != 0 { + **(**Tuint32_t)(__ccgo_up(z)) = uint32(y) + v5 = z + z += 4 + y = float64(Float64FromInt32(1000000000) * (y - float64(**(**Tuint32_t)(__ccgo_up(v5))))) + } + for **(**int32)(__ccgo_up(bp + 512)) > 0 { + carry = uint32(0) + if int32(29) < **(**int32)(__ccgo_up(bp + 512)) { + v7 = int32(29) + } else { + v7 = **(**int32)(__ccgo_up(bp + 512)) + } + sh = v7 + d = z - uintptr(1)*4 + for { + if !(d >= a) { + break + } + x1 = uint64(**(**Tuint32_t)(__ccgo_up(d)))< a && !(**(**Tuint32_t)(__ccgo_up(z + uintptr(-Int32FromInt32(1))*4)) != 0) { + z -= 4 + } + **(**int32)(__ccgo_up(bp + 512)) = **(**int32)(__ccgo_up(bp + 512)) - sh + } + for **(**int32)(__ccgo_up(bp + 512)) < 0 { + carry1 = uint32(0) + if int32(9) < -**(**int32)(__ccgo_up(bp + 512)) { + v7 = int32(9) + } else { + v7 = -**(**int32)(__ccgo_up(bp + 512)) + } + sh1 = v7 + need = Int32FromUint32(uint32(1) + (Uint32FromInt32(p)+Uint32FromInt32(LDBL_MANT_DIG)/Uint32FromUint32(3)+uint32(8))/uint32(9)) + d = a + for { + if !(d < z) { + break + } + rm = **(**Tuint32_t)(__ccgo_up(d)) & Uint32FromInt32(int32(1)<>sh1 + carry1 + carry1 = Uint32FromInt32(Int32FromInt32(1000000000)>>sh1) * rm + goto _26 + _26: + ; + d += 4 + } + if !(**(**Tuint32_t)(__ccgo_up(a)) != 0) { + a += 4 + } + if carry1 != 0 { + v5 = z + z += 4 + **(**Tuint32_t)(__ccgo_up(v5)) = carry1 + } + /* Avoid (slow!) computation past requested precision */ + if t|int32(32) == int32('f') { + v5 = r + } else { + v5 = a + } + b = v5 + if (int64(z)-int64(b))/4 > int64(need) { + z = b + uintptr(need)*4 + } + **(**int32)(__ccgo_up(bp + 512)) = **(**int32)(__ccgo_up(bp + 512)) + sh1 + } + if a < z { + i = int32(10) + e = int32(Int64FromInt32(9) * ((int64(r) - int64(a)) / 4)) + for { + if !(**(**Tuint32_t)(__ccgo_up(a)) >= Uint32FromInt32(i)) { + break + } + goto _29 + _29: + ; + i = i * int32(10) + e = e + 1 + } + } else { + e = 0 + } + /* Perform rounding: j is precision after the radix (possibly neg) */ + j = p - BoolInt32(t|int32(32) != int32('f'))*e - BoolInt32(t|int32(32) == int32('g') && p != 0) + if int64(j) < int64(9)*((int64(z)-int64(r))/4-int64(1)) { + /* We avoid C's broken division of negative numbers */ + d = r + uintptr(1)*4 + uintptr((j+Int32FromInt32(9)*Int32FromInt32(LDBL_MAX_EXP))/Int32FromInt32(9)-Int32FromInt32(LDBL_MAX_EXP))*4 + j = j + Int32FromInt32(9)*Int32FromInt32(LDBL_MAX_EXP) + j = j % int32(9) + i = int32(10) + j = j + 1 + for { + if !(j < int32(9)) { + break + } + goto _30 + _30: + ; + i = i * int32(10) + j = j + 1 + } + x2 = **(**Tuint32_t)(__ccgo_up(d)) % Uint32FromInt32(i) + /* Are there any significant digits past j? */ + if x2 != 0 || d+uintptr(1)*4 != z { + round1 = Float64FromInt32(2) / Float64FromFloat64(2.22044604925031308085e-16) + if **(**Tuint32_t)(__ccgo_up(d))/Uint32FromInt32(i)&uint32(1) != 0 || i == int32(1000000000) && d > a && **(**Tuint32_t)(__ccgo_up(d + uintptr(-Int32FromInt32(1))*4))&uint32(1) != 0 { + round1 = round1 + Float64FromInt32(2) + } + if x2 < Uint32FromInt32(i/int32(2)) { + small = Float64FromFloat64(0.5) + } else { + if x2 == Uint32FromInt32(i/int32(2)) && d+uintptr(1)*4 == z { + small = Float64FromFloat64(1) + } else { + small = Float64FromFloat64(1.5) + } + } + if pl != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(prefix))) == int32('-') { + round1 = round1 * float64(-Int32FromInt32(1)) + small = small * float64(-Int32FromInt32(1)) + } + **(**Tuint32_t)(__ccgo_up(d)) -= x2 + /* Decide whether to round by probing round+small */ + if round1+small != round1 { + **(**Tuint32_t)(__ccgo_up(d)) = **(**Tuint32_t)(__ccgo_up(d)) + Uint32FromInt32(i) + for **(**Tuint32_t)(__ccgo_up(d)) > uint32(999999999) { + v5 = d + d -= 4 + **(**Tuint32_t)(__ccgo_up(v5)) = uint32(0) + if d < a { + a -= 4 + v5 = a + **(**Tuint32_t)(__ccgo_up(v5)) = uint32(0) + } + **(**Tuint32_t)(__ccgo_up(d)) = **(**Tuint32_t)(__ccgo_up(d)) + 1 + } + i = int32(10) + e = int32(Int64FromInt32(9) * ((int64(r) - int64(a)) / 4)) + for { + if !(**(**Tuint32_t)(__ccgo_up(a)) >= Uint32FromInt32(i)) { + break + } + goto _33 + _33: + ; + i = i * int32(10) + e = e + 1 + } + } + } + if z > d+uintptr(1)*4 { + z = d + uintptr(1)*4 + } + } + for { + if !(z > a && !(**(**Tuint32_t)(__ccgo_up(z + uintptr(-Int32FromInt32(1))*4)) != 0)) { + break + } + goto _34 + _34: + ; + z -= 4 + } + if t|int32(32) == int32('g') { + if !(p != 0) { + p = p + 1 + } + if p > e && e >= -int32(4) { + t = t - 1 + p = p - (e + int32(1)) + } else { + t = t - int32(2) + p = p - 1 + } + if !(Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0) { + /* Count trailing zeros in last place */ + if z > a && **(**Tuint32_t)(__ccgo_up(z + uintptr(-Int32FromInt32(1))*4)) != 0 { + i = int32(10) + j = Int32FromInt32(0) + for { + if !(**(**Tuint32_t)(__ccgo_up(z + uintptr(-Int32FromInt32(1))*4))%Uint32FromInt32(i) == uint32(0)) { + break + } + goto _35 + _35: + ; + i = i * int32(10) + j = j + 1 + } + } else { + j = int32(9) + } + if t|int32(32) == int32('f') { + if int64(Int32FromInt32(0)) > int64(9)*((int64(z)-int64(r))/4-int64(1))-int64(j) { + v37 = int64(Int32FromInt32(0)) + } else { + v37 = int64(9)*((int64(z)-int64(r))/4-int64(1)) - int64(j) + } + if int64(p) < v37 { + v36 = int64(p) + } else { + if int64(Int32FromInt32(0)) > int64(9)*((int64(z)-int64(r))/4-int64(1))-int64(j) { + v38 = int64(Int32FromInt32(0)) + } else { + v38 = int64(9)*((int64(z)-int64(r))/4-int64(1)) - int64(j) + } + v36 = v38 + } + p = int32(v36) + } else { + if int64(Int32FromInt32(0)) > int64(9)*((int64(z)-int64(r))/4-int64(1))+int64(e)-int64(j) { + v37 = int64(Int32FromInt32(0)) + } else { + v37 = int64(9)*((int64(z)-int64(r))/4-int64(1)) + int64(e) - int64(j) + } + if int64(p) < v37 { + v36 = int64(p) + } else { + if int64(Int32FromInt32(0)) > int64(9)*((int64(z)-int64(r))/4-int64(1))+int64(e)-int64(j) { + v38 = int64(Int32FromInt32(0)) + } else { + v38 = int64(9)*((int64(z)-int64(r))/4-int64(1)) + int64(e) - int64(j) + } + v36 = v38 + } + p = int32(v36) + } + } + } + if p > Int32FromInt32(INT_MAX)-Int32FromInt32(1)-BoolInt32(p != 0 || Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0) { + return -int32(1) + } + l = int32(1) + p + BoolInt32(p != 0 || Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0) + if t|int32(32) == int32('f') { + if e > int32(INT_MAX)-l { + return -int32(1) + } + if e > 0 { + l = l + e + } + } else { + if e < 0 { + v7 = -e + } else { + v7 = e + } + estr = _fmt_u(tls, Uint64FromInt32(v7), ebuf) + for int64(ebuf)-int64(estr) < int64(2) { + estr = estr - 1 + v5 = estr + **(**uint8)(__ccgo_up(v5)) = uint8('0') + } + estr = estr - 1 + v5 = estr + if e < 0 { + v7 = int32('-') + } else { + v7 = int32('+') + } + **(**uint8)(__ccgo_up(v5)) = Uint8FromInt32(v7) + estr = estr - 1 + v5 = estr + **(**uint8)(__ccgo_up(v5)) = Uint8FromInt32(t) + if int64(ebuf)-int64(estr) > int64(int32(INT_MAX)-l) { + return -int32(1) + } + l = int32(int64(l) + (int64(ebuf) - int64(estr))) + } + if l > int32(INT_MAX)-pl { + return -int32(1) + } + _pad3(tls, f, uint8(' '), w, pl+l, fl) + _out(tls, f, prefix, Uint64FromInt32(pl)) + _pad3(tls, f, uint8('0'), w, pl+l, Int32FromUint32(Uint32FromInt32(fl)^Uint32FromUint32(1)<<(Int32FromUint8('0')-Int32FromUint8(' ')))) + if t|int32(32) == int32('f') { + if a > r { + a = r + } + d = a + for { + if !(d <= r) { + break + } + s2 = _fmt_u(tls, uint64(**(**Tuint32_t)(__ccgo_up(d))), bp+516+uintptr(9)) + if d != a { + for s2 > bp+516 { + s2 = s2 - 1 + v5 = s2 + **(**uint8)(__ccgo_up(v5)) = uint8('0') + } + } else { + if s2 == bp+516+uintptr(9) { + s2 = s2 - 1 + v5 = s2 + **(**uint8)(__ccgo_up(v5)) = uint8('0') + } + } + _out(tls, f, s2, Uint64FromInt64(int64(bp+516+uintptr(9))-int64(s2))) + goto _47 + _47: + ; + d += 4 + } + if p != 0 || Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0 { + _out(tls, f, __ccgo_ts+558, uint64(1)) + } + for { + if !(d < z && p > 0) { + break + } + s3 = _fmt_u(tls, uint64(**(**Tuint32_t)(__ccgo_up(d))), bp+516+uintptr(9)) + for s3 > bp+516 { + s3 = s3 - 1 + v5 = s3 + **(**uint8)(__ccgo_up(v5)) = uint8('0') + } + if int32(9) < p { + v7 = int32(9) + } else { + v7 = p + } + _out(tls, f, s3, Uint64FromInt32(v7)) + goto _50 + _50: + ; + d += 4 + p = p - int32(9) + } + _pad3(tls, f, uint8('0'), p+int32(9), int32(9), 0) + } else { + if z <= a { + z = a + uintptr(1)*4 + } + d = a + for { + if !(d < z && p >= 0) { + break + } + s4 = _fmt_u(tls, uint64(**(**Tuint32_t)(__ccgo_up(d))), bp+516+uintptr(9)) + if s4 == bp+516+uintptr(9) { + s4 = s4 - 1 + v5 = s4 + **(**uint8)(__ccgo_up(v5)) = uint8('0') + } + if d != a { + for s4 > bp+516 { + s4 = s4 - 1 + v5 = s4 + **(**uint8)(__ccgo_up(v5)) = uint8('0') + } + } else { + v5 = s4 + s4 = s4 + 1 + _out(tls, f, v5, uint64(1)) + if p > 0 || Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0 { + _out(tls, f, __ccgo_ts+558, uint64(1)) + } + } + if int64(bp+516+UintptrFromInt32(9))-int64(s4) < int64(p) { + v36 = int64(bp+516+UintptrFromInt32(9)) - int64(s4) + } else { + v36 = int64(p) + } + _out(tls, f, s4, Uint64FromInt64(v36)) + p = int32(int64(p) - (int64(bp+516+UintptrFromInt32(9)) - int64(s4))) + goto _53 + _53: + ; + d += 4 + } + _pad3(tls, f, uint8('0'), p+int32(18), int32(18), 0) + _out(tls, f, estr, Uint64FromInt64(int64(ebuf)-int64(estr))) + } + _pad3(tls, f, uint8(' '), w, pl+l, Int32FromUint32(Uint32FromInt32(fl)^Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' ')))) + if w > pl+l { + v7 = w + } else { + v7 = pl + l + } + return v7 +} + +func _getint(tls *TLS, s uintptr) (r int32) { + var i int32 + _ = i + i = 0 + for { + if !(BoolInt32(uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(s)))))-uint32('0') < uint32(10)) != 0) { + break + } + if Uint32FromInt32(i) > Uint32FromInt32(INT_MAX)/Uint32FromUint32(10) || Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(s)))))-int32('0') > int32(INT_MAX)-int32(10)*i { + i = -int32(1) + } else { + i = int32(10)*i + (Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(s))))) - int32('0')) + } + goto _1 + _1: + ; + **(**uintptr)(__ccgo_up(s)) = **(**uintptr)(__ccgo_up(s)) + 1 + } + return i +} + +func _printf_core(tls *TLS, f uintptr, fmt uintptr, ap uintptr, nl_arg uintptr, nl_type uintptr) (r int32) { + bp := tls.Alloc(64) + defer tls.Free(64) + var a, prefix, ws, z, v8 uintptr + var argpos, cnt, l, p, pl, t, w, xp, v5, v6 int32 + var fl, l10n, ps, st uint32 + var i Tsize_t + var v31 uint64 + var v34 int64 + var v45 bool + var _ /* arg at bp+8 */ Targ + var _ /* buf at bp+16 */ [24]uint8 + var _ /* mb at bp+48 */ [4]uint8 + var _ /* s at bp+0 */ uintptr + var _ /* wc at bp+40 */ [2]Twchar_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = a, argpos, cnt, fl, i, l, l10n, p, pl, prefix, ps, st, t, w, ws, xp, z, v31, v34, v45, v5, v6, v8 + **(**uintptr)(__ccgo_up(bp)) = fmt + l10n = uint32(0) + cnt = 0 + l = 0 + for { + /* This error is only specified for snprintf, but since it's + * unspecified for other forms, do the same. Stop immediately + * on overflow; otherwise %n could produce wrong results. */ + if l > int32(INT_MAX)-cnt { + goto overflow + } + /* Update output count, end loop when fmt is exhausted */ + cnt = cnt + l + if !(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)))) != 0) { + break + } + /* Handle literal text and %% format specifiers */ + a = **(**uintptr)(__ccgo_up(bp)) + for { + if !(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)))) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp))))) != int32('%')) { + break + } + goto _2 + _2: + ; + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + } + z = **(**uintptr)(__ccgo_up(bp)) + for { + if !(Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp))))) == int32('%') && Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 1))) == int32('%')) { + break + } + goto _3 + _3: + ; + z = z + 1 + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + uintptr(2) + } + if int64(z)-int64(a) > int64(int32(INT_MAX)-cnt) { + goto overflow + } + l = int32(int64(z) - int64(a)) + if f != 0 { + _out(tls, f, a, Uint64FromInt32(l)) + } + if l != 0 { + goto _1 + } + if BoolInt32(uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 1)))-uint32('0') < uint32(10)) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 2))) == int32('$') { + l10n = uint32(1) + argpos = Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 1))) - int32('0') + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + uintptr(3) + } else { + argpos = -int32(1) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + } + /* Read modifier flags */ + fl = uint32(0) + for { + if !(uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)))))-uint32(' ') < uint32(32) && (Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8('0')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8(' ')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8('+')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8('\'')-Int32FromUint8(' ')))&(uint32(1)<<(Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)))))-int32(' '))) != 0) { + break + } + fl = fl | uint32(1)<<(Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)))))-int32(' ')) + goto _4 + _4: + ; + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + } + /* Read field width */ + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp))))) == int32('*') { + if BoolInt32(uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 1)))-uint32('0') < uint32(10)) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 2))) == int32('$') { + l10n = uint32(1) + if !(f != 0) { + **(**int32)(__ccgo_up(nl_type + uintptr(Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 1)))-int32('0'))*4)) = int32(_INT) + w = Int32FromInt32(0) + } else { + w = Int32FromUint64(*(*Tuintmax_t)(unsafe.Pointer(nl_arg + uintptr(Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 1)))-int32('0'))*8))) + } + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + uintptr(3) + } else { + if !(l10n != 0) { + if f != 0 { + v5 = VaInt32(&**(**Tva_list)(__ccgo_up(ap))) + } else { + v5 = 0 + } + w = v5 + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + } else { + goto inval + } + } + if w < 0 { + fl = fl | Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' ')) + w = -w + } + } else { + v5 = _getint(tls, bp) + w = v5 + if v5 < 0 { + goto overflow + } + } + /* Read precision */ + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp))))) == int32('.') && Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 1))) == int32('*') { + if BoolInt32(uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 2)))-uint32('0') < uint32(10)) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 3))) == int32('$') { + if !(f != 0) { + **(**int32)(__ccgo_up(nl_type + uintptr(Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 2)))-int32('0'))*4)) = int32(_INT) + p = Int32FromInt32(0) + } else { + p = Int32FromUint64(*(*Tuintmax_t)(unsafe.Pointer(nl_arg + uintptr(Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 2)))-int32('0'))*8))) + } + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + uintptr(4) + } else { + if !(l10n != 0) { + if f != 0 { + v5 = VaInt32(&**(**Tva_list)(__ccgo_up(ap))) + } else { + v5 = 0 + } + p = v5 + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + uintptr(2) + } else { + goto inval + } + } + xp = BoolInt32(p >= 0) + } else { + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp))))) == int32('.') { + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + p = _getint(tls, bp) + xp = int32(1) + } else { + p = -int32(1) + xp = 0 + } + } + /* Format specifier state machine */ + st = uint32(0) + for cond := true; cond; cond = st-uint32(1) < uint32(_STOP) { + if uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)))))-uint32('A') > Uint32FromInt32(Int32FromUint8('z')-Int32FromUint8('A')) { + goto inval + } + ps = st + v8 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + st = uint32(**(**uint8)(__ccgo_up(uintptr(unsafe.Pointer(&_states)) + uintptr(st)*58 + uintptr(Int32FromUint8(**(**uint8)(__ccgo_up(v8)))-int32('A'))))) + } + if !(st != 0) { + goto inval + } + /* Check validity of argument type (nl/normal) */ + if st == uint32(_NOARG) { + if argpos >= 0 { + goto inval + } + } else { + if argpos >= 0 { + if !(f != 0) { + **(**int32)(__ccgo_up(nl_type + uintptr(argpos)*4)) = Int32FromUint32(st) + } else { + **(**Targ)(__ccgo_up(bp + 8)) = **(**Targ)(__ccgo_up(nl_arg + uintptr(argpos)*8)) + } + } else { + if f != 0 { + _pop_arg(tls, bp+8, Int32FromUint32(st), ap) + } else { + return 0 + } + } + } + if !(f != 0) { + goto _1 + } + /* Do not process any new directives once in error state. */ + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_ERR) != 0 { + return -int32(1) + } + z = bp + 16 + uintptr(24) + prefix = __ccgo_ts + 1617 + pl = 0 + t = Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + uintptr(-Int32FromInt32(1))))) + /* Transform ls,lc -> S,C */ + if ps != 0 && t&int32(15) == int32(3) { + t = t & ^Int32FromInt32(32) + } + /* - and 0 flags are mutually exclusive */ + if fl&(Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' '))) != 0 { + fl = fl & ^(Uint32FromUint32(1) << (Int32FromUint8('0') - Int32FromUint8(' '))) + } + switch t { + case int32('n'): + goto _9 + case int32('p'): + goto _10 + case int32('X'): + goto _11 + case int32('x'): + goto _12 + case int32('o'): + goto _13 + case int32('i'): + goto _14 + case int32('d'): + goto _15 + case int32('u'): + goto _16 + case int32('c'): + goto _17 + case int32('s'): + goto _18 + case int32('m'): + goto _19 + case int32('C'): + goto _20 + case int32('S'): + goto _21 + case int32('A'): + goto _22 + case int32('G'): + goto _23 + case int32('F'): + goto _24 + case int32('E'): + goto _25 + case int32('a'): + goto _26 + case int32('g'): + goto _27 + case int32('f'): + goto _28 + case int32('e'): + goto _29 + } + goto _30 + _9: + ; + switch ps { + case uint32(_BARE): + **(**int32)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 8)))) = cnt + case uint32(_LPRE): + **(**int64)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 8)))) = int64(cnt) + case uint32(_LLPRE): + **(**int64)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 8)))) = int64(cnt) + case uint32(_HPRE): + **(**uint16)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 8)))) = Uint16FromInt32(cnt) + case uint32(_HHPRE): + **(**uint8)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 8)))) = Uint8FromInt32(cnt) + case uint32(_ZTPRE): + **(**Tsize_t)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 8)))) = Uint64FromInt32(cnt) + case uint32(_JPRE): + **(**Tuintmax_t)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 8)))) = Uint64FromInt32(cnt) + break + } + goto _1 + _10: + ; + if Uint64FromInt32(p) > Uint64FromInt32(2)*Uint64FromInt64(8) { + v31 = Uint64FromInt32(p) + } else { + v31 = Uint64FromInt32(2) * Uint64FromInt64(8) + } + p = Int32FromUint64(v31) + t = int32('x') + fl = fl | Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' ')) + _12: + ; + _11: + ; + a = _fmt_x(tls, *(*Tuintmax_t)(unsafe.Pointer(bp + 8)), z, t&int32(32)) + if *(*Tuintmax_t)(unsafe.Pointer(bp + 8)) != 0 && fl&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0 { + prefix = prefix + uintptr(t>>Int32FromInt32(4)) + pl = Int32FromInt32(2) + } + if !(0 != 0) { + goto _32 + } + _13: + ; + a = _fmt_o(tls, *(*Tuintmax_t)(unsafe.Pointer(bp + 8)), z) + if fl&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0 && int64(p) < int64(z)-int64(a)+int64(1) { + p = int32(int64(z) - int64(a) + int64(1)) + } + _32: + ; + if !(0 != 0) { + goto _33 + } + _15: + ; + _14: + ; + pl = int32(1) + if *(*Tuintmax_t)(unsafe.Pointer(bp + 8)) > Uint64FromInt64(Int64FromInt64(INT64_MAX)) { + *(*Tuintmax_t)(unsafe.Pointer(bp + 8)) = -*(*Tuintmax_t)(unsafe.Pointer(bp + 8)) + } else { + if fl&(Uint32FromUint32(1)<<(Int32FromUint8('+')-Int32FromUint8(' '))) != 0 { + prefix = prefix + 1 + } else { + if fl&(Uint32FromUint32(1)<<(Int32FromUint8(' ')-Int32FromUint8(' '))) != 0 { + prefix = prefix + uintptr(2) + } else { + pl = 0 + } + } + } + _16: + ; + a = _fmt_u(tls, *(*Tuintmax_t)(unsafe.Pointer(bp + 8)), z) + _33: + ; + if xp != 0 && p < 0 { + goto overflow + } + if xp != 0 { + fl = fl & ^(Uint32FromUint32(1) << (Int32FromUint8('0') - Int32FromUint8(' '))) + } + if !(*(*Tuintmax_t)(unsafe.Pointer(bp + 8)) != 0) && !(p != 0) { + a = z + goto _30 + } + if int64(p) > int64(z)-int64(a)+BoolInt64(!(*(*Tuintmax_t)(unsafe.Pointer(bp + 8)) != 0)) { + v34 = int64(p) + } else { + v34 = int64(z) - int64(a) + BoolInt64(!(*(*Tuintmax_t)(unsafe.Pointer(bp + 8)) != 0)) + } + p = int32(v34) + goto _30 + goto narrow_c + narrow_c: + ; + _17: + ; + v5 = Int32FromInt32(1) + p = v5 + v8 = z - uintptr(v5) + a = v8 + **(**uint8)(__ccgo_up(v8)) = uint8(*(*Tuintmax_t)(unsafe.Pointer(bp + 8))) + fl = fl & ^(Uint32FromUint32(1) << (Int32FromUint8('0') - Int32FromUint8(' '))) + goto _30 + _19: + ; + if !(int32(1) != 0) { + goto _37 + } + a = Xstrerror(tls, **(**int32)(__ccgo_up(X__errno_location(tls)))) + goto _38 + _37: + ; + _18: + ; + if *(*uintptr)(unsafe.Pointer(bp + 8)) != 0 { + v8 = *(*uintptr)(unsafe.Pointer(bp + 8)) + } else { + v8 = __ccgo_ts + 1627 + } + a = v8 + _38: + ; + if p < 0 { + v5 = int32(INT_MAX) + } else { + v5 = p + } + z = a + uintptr(Xstrnlen(tls, a, Uint64FromInt32(v5))) + if p < 0 && **(**uint8)(__ccgo_up(z)) != 0 { + goto overflow + } + p = int32(int64(z) - int64(a)) + fl = fl & ^(Uint32FromUint32(1) << (Int32FromUint8('0') - Int32FromUint8(' '))) + goto _30 + _20: + ; + if !(*(*Tuintmax_t)(unsafe.Pointer(bp + 8)) != 0) { + goto narrow_c + } + (**(**[2]Twchar_t)(__ccgo_up(bp + 40)))[0] = uint32(*(*Tuintmax_t)(unsafe.Pointer(bp + 8))) + (**(**[2]Twchar_t)(__ccgo_up(bp + 40)))[int32(1)] = uint32(0) + *(*uintptr)(unsafe.Pointer(bp + 8)) = bp + 40 + p = -int32(1) + _21: + ; + ws = *(*uintptr)(unsafe.Pointer(bp + 8)) + v5 = Int32FromInt32(0) + l = v5 + i = Uint64FromInt32(v5) + for { + if v45 = i < Uint64FromInt32(p) && **(**Twchar_t)(__ccgo_up(ws)) != 0; v45 { + v8 = ws + ws += 4 + v6 = Xwctomb(tls, bp+48, **(**Twchar_t)(__ccgo_up(v8))) + l = v6 + } + if !(v45 && v6 >= 0 && Uint64FromInt32(l) <= Uint64FromInt32(p)-i) { + break + } + goto _41 + _41: + ; + i = i + Uint64FromInt32(l) + } + if l < 0 { + return -int32(1) + } + if i > uint64(INT_MAX) { + goto overflow + } + p = Int32FromUint64(i) + _pad3(tls, f, uint8(' '), w, p, Int32FromUint32(fl)) + ws = *(*uintptr)(unsafe.Pointer(bp + 8)) + i = uint64(0) + for { + if v45 = i < uint64(0+Uint32FromInt32(p)) && **(**Twchar_t)(__ccgo_up(ws)) != 0; v45 { + v8 = ws + ws += 4 + v5 = Xwctomb(tls, bp+48, **(**Twchar_t)(__ccgo_up(v8))) + l = v5 + } + if !(v45 && i+Uint64FromInt32(v5) <= Uint64FromInt32(p)) { + break + } + _out(tls, f, bp+48, Uint64FromInt32(l)) + goto _46 + _46: + ; + i = i + Uint64FromInt32(l) + } + _pad3(tls, f, uint8(' '), w, p, Int32FromUint32(fl^Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' ')))) + if w > p { + v5 = w + } else { + v5 = p + } + l = v5 + goto _1 + _29: + ; + _28: + ; + _27: + ; + _26: + ; + _25: + ; + _24: + ; + _23: + ; + _22: + ; + if xp != 0 && p < 0 { + goto overflow + } + l = _fmt_fp(tls, f, *(*float64)(unsafe.Pointer(bp + 8)), w, p, Int32FromUint32(fl), t) + if l < 0 { + goto overflow + } + goto _1 + _30: + ; + if int64(p) < int64(z)-int64(a) { + p = int32(int64(z) - int64(a)) + } + if p > int32(INT_MAX)-pl { + goto overflow + } + if w < pl+p { + w = pl + p + } + if w > int32(INT_MAX)-cnt { + goto overflow + } + _pad3(tls, f, uint8(' '), w, pl+p, Int32FromUint32(fl)) + _out(tls, f, prefix, Uint64FromInt32(pl)) + _pad3(tls, f, uint8('0'), w, pl+p, Int32FromUint32(fl^Uint32FromUint32(1)<<(Int32FromUint8('0')-Int32FromUint8(' ')))) + _pad3(tls, f, uint8('0'), p, int32(int64(z)-int64(a)), 0) + _out(tls, f, a, Uint64FromInt64(int64(z)-int64(a))) + _pad3(tls, f, uint8(' '), w, pl+p, Int32FromUint32(fl^Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' ')))) + l = w + goto _1 + _1: + } + if f != 0 { + return cnt + } + if !(l10n != 0) { + return 0 + } + i = uint64(1) + for { + if !(i <= uint64(NL_ARGMAX) && **(**int32)(__ccgo_up(nl_type + uintptr(i)*4)) != 0) { + break + } + _pop_arg(tls, nl_arg+uintptr(i)*8, **(**int32)(__ccgo_up(nl_type + uintptr(i)*4)), ap) + goto _51 + _51: + ; + i = i + 1 + } + for { + if !(i <= uint64(NL_ARGMAX) && !(**(**int32)(__ccgo_up(nl_type + uintptr(i)*4)) != 0)) { + break + } + goto _52 + _52: + ; + i = i + 1 + } + if i <= uint64(NL_ARGMAX) { + goto inval + } + return int32(1) + goto inval +inval: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + goto overflow +overflow: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOVERFLOW) + return -int32(1) +} + +func Xvfprintf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v ap=%v, (%v:)", tls, f, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(208) + defer tls.Free(208) + var __need_unlock, olderr, ret, v1 int32 + var saved_buf, v2, v3 uintptr + var _ /* ap2 at bp+0 */ Tva_list + var _ /* internal_buf at bp+128 */ [80]uint8 + var _ /* nl_arg at bp+48 */ [10]Targ + var _ /* nl_type at bp+8 */ [10]int32 + _, _, _, _, _, _, _ = __need_unlock, olderr, ret, saved_buf, v1, v2, v3 + **(**[10]int32)(__ccgo_up(bp + 8)) = [10]int32{} + saved_buf = uintptr(0) + /* the copy allows passing va_list* even if va_list is an array */ + **(**Tva_list)(__ccgo_up(bp)) = ap + if _printf_core(tls, uintptr(0), fmt, bp, bp+48, bp+8) < 0 { + _ = **(**Tva_list)(__ccgo_up(bp)) + return -int32(1) + } + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + olderr = Int32FromUint32((*TFILE)(unsafe.Pointer(f)).Fflags & uint32(F_ERR)) + **(**uint32)(__ccgo_up(f)) &= Uint32FromInt32(^Int32FromInt32(F_ERR)) + if !((*TFILE)(unsafe.Pointer(f)).Fbuf_size != 0) { + saved_buf = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Fbuf = bp + 128 + (*TFILE)(unsafe.Pointer(f)).Fbuf_size = uint64(80) + v3 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Fwend = v3 + v2 = v3 + (*TFILE)(unsafe.Pointer(f)).Fwbase = v2 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v2 + } + if !((*TFILE)(unsafe.Pointer(f)).Fwend != 0) && X__towrite(tls, f) != 0 { + ret = -int32(1) + } else { + ret = _printf_core(tls, f, fmt, bp, bp+48, bp+8) + } + if saved_buf != 0 { + (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tsize_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fwrite})))(tls, f, uintptr(0), uint64(0)) + if !((*TFILE)(unsafe.Pointer(f)).Fwpos != 0) { + ret = -int32(1) + } + (*TFILE)(unsafe.Pointer(f)).Fbuf = saved_buf + (*TFILE)(unsafe.Pointer(f)).Fbuf_size = uint64(0) + v3 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Fwend = v3 + v2 = v3 + (*TFILE)(unsafe.Pointer(f)).Fwbase = v2 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v2 + } + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_ERR) != 0 { + ret = -int32(1) + } + **(**uint32)(__ccgo_up(f)) |= Uint32FromInt32(olderr) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + _ = **(**Tva_list)(__ccgo_up(bp)) + return ret +} + +const SIZE_L = 2 +const SIZE_def = 0 +const SIZE_h = -1 +const SIZE_hh = -2 +const SIZE_l = 1 +const SIZE_ll = 3 + +func _store_int(tls *TLS, dest uintptr, size int32, i uint64) { + if !(dest != 0) { + return + } + switch size { + case -int32(2): + **(**uint8)(__ccgo_up(dest)) = uint8(i) + case -int32(1): + **(**int16)(__ccgo_up(dest)) = Int16FromUint64(i) + case SIZE_def: + **(**int32)(__ccgo_up(dest)) = Int32FromUint64(i) + case int32(SIZE_l): + **(**int64)(__ccgo_up(dest)) = Int64FromUint64(i) + case int32(SIZE_ll): + **(**int64)(__ccgo_up(dest)) = Int64FromUint64(i) + break + } +} + +func _arg_n(tls *TLS, ap Tva_list, n uint32) (r uintptr) { + var ap2 Tva_list + var i uint32 + var p uintptr + _, _, _ = ap2, i, p + ap2 = ap + i = n + for { + if !(i > uint32(1)) { + break + } + _ = VaUintptr(&ap2) + goto _1 + _1: + ; + i = i - 1 + } + p = VaUintptr(&ap2) + _ = ap2 + return p +} + +func Xvfscanf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v ap=%v, (%v:)", tls, f, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(288) + defer tls.Free(288) + var __need_unlock, alloc, base, c, invert, matches, size, t, width, v1, v3, v4, v6 int32 + var dest, p, s, tmp, tmp1, wcs, v10, v11, v17 uintptr + var i, k, v64 Tsize_t + var pos Toff_t + var x uint64 + var y float64 + var v59 uint32 + var _ /* scanset at bp+16 */ [257]uint8 + var _ /* st at bp+8 */ Tmbstate_t + var _ /* wc at bp+276 */ Twchar_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = __need_unlock, alloc, base, c, dest, i, invert, k, matches, p, pos, s, size, t, tmp, tmp1, wcs, width, x, y, v1, v10, v11, v17, v3, v4, v59, v6, v64 + alloc = 0 + dest = UintptrFromInt32(0) + matches = 0 + pos = 0 + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + if !((*TFILE)(unsafe.Pointer(f)).Frpos != 0) { + X__toread(tls, f) + } + if !((*TFILE)(unsafe.Pointer(f)).Frpos != 0) { + goto input_fail + } + p = fmt + for { + if !(**(**uint8)(__ccgo_up(p)) != 0) { + break + } + alloc = 0 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(p))) + v3 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _5 + _5: + if v3 != 0 { + for { + v4 = Int32FromUint8(**(**uint8)(__ccgo_up(p + 1))) + v6 = BoolInt32(v4 == int32(' ') || Uint32FromInt32(v4)-uint32('\t') < uint32(5)) + goto _8 + _8: + if !(v6 != 0) { + break + } + p = p + 1 + } + X__shlim(tls, f, int64(Int32FromInt32(0))) + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v11 = f + 8 + v10 = *(*uintptr)(unsafe.Pointer(v11)) + *(*uintptr)(unsafe.Pointer(v11)) = *(*uintptr)(unsafe.Pointer(v11)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v10))) + } else { + v1 = X__shgetc(tls, f) + } + v3 = v1 + v4 = BoolInt32(v3 == int32(' ') || Uint32FromInt32(v3)-uint32('\t') < uint32(5)) + goto _14 + _14: + if !(v4 != 0) { + break + } + } + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + pos = pos + ((*TFILE)(unsafe.Pointer(f)).Fshcnt + (int64((*TFILE)(unsafe.Pointer(f)).Frpos) - int64((*TFILE)(unsafe.Pointer(f)).Fbuf))) + goto _2 + } + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) != int32('%') || Int32FromUint8(**(**uint8)(__ccgo_up(p + 1))) == int32('%') { + X__shlim(tls, f, int64(Int32FromInt32(0))) + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('%') { + p = p + 1 + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v11 = f + 8 + v10 = *(*uintptr)(unsafe.Pointer(v11)) + *(*uintptr)(unsafe.Pointer(v11)) = *(*uintptr)(unsafe.Pointer(v11)) + 1 + v3 = Int32FromUint8(**(**uint8)(__ccgo_up(v10))) + } else { + v3 = X__shgetc(tls, f) + } + v1 = v3 + c = v1 + v4 = v1 + v6 = BoolInt32(v4 == int32(' ') || Uint32FromInt32(v4)-uint32('\t') < uint32(5)) + goto _21 + _21: + if !(v6 != 0) { + break + } + } + } else { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v11 = f + 8 + v10 = *(*uintptr)(unsafe.Pointer(v11)) + *(*uintptr)(unsafe.Pointer(v11)) = *(*uintptr)(unsafe.Pointer(v11)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v10))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + if c != Int32FromUint8(**(**uint8)(__ccgo_up(p))) { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + if c < 0 { + goto input_fail + } + goto match_fail + } + pos = pos + ((*TFILE)(unsafe.Pointer(f)).Fshcnt + (int64((*TFILE)(unsafe.Pointer(f)).Frpos) - int64((*TFILE)(unsafe.Pointer(f)).Fbuf))) + goto _2 + } + p = p + 1 + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('*') { + dest = uintptr(0) + p = p + 1 + } else { + if BoolInt32(uint32(**(**uint8)(__ccgo_up(p)))-uint32('0') < uint32(10)) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(p + 1))) == int32('$') { + dest = _arg_n(tls, ap, Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(p)))-int32('0'))) + p = p + uintptr(2) + } else { + dest = VaUintptr(&ap) + } + } + width = 0 + for { + if !(BoolInt32(uint32(**(**uint8)(__ccgo_up(p)))-uint32('0') < uint32(10)) != 0) { + break + } + width = int32(10)*width + Int32FromUint8(**(**uint8)(__ccgo_up(p))) - int32('0') + goto _25 + _25: + ; + p = p + 1 + } + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('m') { + wcs = uintptr(0) + s = uintptr(0) + alloc = BoolInt32(!!(dest != 0)) + p = p + 1 + } else { + alloc = 0 + } + size = SIZE_def + v10 = p + p = p + 1 + switch Int32FromUint8(**(**uint8)(__ccgo_up(v10))) { + case int32('h'): + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('h') { + p = p + 1 + size = -Int32FromInt32(2) + } else { + size = -int32(1) + } + case int32('l'): + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('l') { + p = p + 1 + size = Int32FromInt32(SIZE_ll) + } else { + size = int32(SIZE_l) + } + case int32('j'): + size = int32(SIZE_ll) + case int32('z'): + fallthrough + case int32('t'): + size = int32(SIZE_l) + case int32('L'): + size = int32(SIZE_L) + case int32('d'): + fallthrough + case int32('i'): + fallthrough + case int32('o'): + fallthrough + case int32('u'): + fallthrough + case int32('x'): + fallthrough + case int32('a'): + fallthrough + case int32('e'): + fallthrough + case int32('f'): + fallthrough + case int32('g'): + fallthrough + case int32('A'): + fallthrough + case int32('E'): + fallthrough + case int32('F'): + fallthrough + case int32('G'): + fallthrough + case int32('X'): + fallthrough + case int32('s'): + fallthrough + case int32('c'): + fallthrough + case int32('['): + fallthrough + case int32('S'): + fallthrough + case int32('C'): + fallthrough + case int32('p'): + fallthrough + case int32('n'): + p = p - 1 + default: + goto fmt_fail + } + t = Int32FromUint8(**(**uint8)(__ccgo_up(p))) + /* C or S */ + if t&int32(0x2f) == int32(3) { + t = t | int32(32) + size = int32(SIZE_l) + } + switch t { + case int32('c'): + if width < int32(1) { + width = int32(1) + } + fallthrough + case int32('['): + case int32('n'): + _store_int(tls, dest, size, Uint64FromInt64(pos)) + /* do not increment match count, etc! */ + goto _2 + default: + X__shlim(tls, f, int64(Int32FromInt32(0))) + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v11 = f + 8 + v10 = *(*uintptr)(unsafe.Pointer(v11)) + *(*uintptr)(unsafe.Pointer(v11)) = *(*uintptr)(unsafe.Pointer(v11)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v10))) + } else { + v1 = X__shgetc(tls, f) + } + v3 = v1 + v4 = BoolInt32(v3 == int32(' ') || Uint32FromInt32(v3)-uint32('\t') < uint32(5)) + goto _32 + _32: + if !(v4 != 0) { + break + } + } + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + pos = pos + ((*TFILE)(unsafe.Pointer(f)).Fshcnt + (int64((*TFILE)(unsafe.Pointer(f)).Frpos) - int64((*TFILE)(unsafe.Pointer(f)).Fbuf))) + } + X__shlim(tls, f, int64(width)) + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v11 = f + 8 + v10 = *(*uintptr)(unsafe.Pointer(v11)) + *(*uintptr)(unsafe.Pointer(v11)) = *(*uintptr)(unsafe.Pointer(v11)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v10))) + } else { + v1 = X__shgetc(tls, f) + } + if v1 < 0 { + goto input_fail + } + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + switch t { + case int32('['): + goto _36 + case int32('c'): + goto _37 + case int32('s'): + goto _38 + case int32('x'): + goto _39 + case int32('X'): + goto _40 + case int32('p'): + goto _41 + case int32('o'): + goto _42 + case int32('u'): + goto _43 + case int32('d'): + goto _44 + case int32('i'): + goto _45 + case int32('G'): + goto _46 + case int32('g'): + goto _47 + case int32('F'): + goto _48 + case int32('f'): + goto _49 + case int32('E'): + goto _50 + case int32('e'): + goto _51 + case int32('A'): + goto _52 + case int32('a'): + goto _53 + } + goto _54 + _38: + ; + _37: + ; + _36: + ; + if t == int32('c') || t == int32('s') { + Xmemset(tls, bp+16, -int32(1), uint64(257)) + (**(**[257]uint8)(__ccgo_up(bp + 16)))[0] = uint8(0) + if t == int32('s') { + (**(**[257]uint8)(__ccgo_up(bp + 16)))[Int32FromInt32(1)+Int32FromUint8('\t')] = uint8(0) + (**(**[257]uint8)(__ccgo_up(bp + 16)))[Int32FromInt32(1)+Int32FromUint8('\n')] = uint8(0) + (**(**[257]uint8)(__ccgo_up(bp + 16)))[Int32FromInt32(1)+Int32FromUint8('\v')] = uint8(0) + (**(**[257]uint8)(__ccgo_up(bp + 16)))[Int32FromInt32(1)+Int32FromUint8('\f')] = uint8(0) + (**(**[257]uint8)(__ccgo_up(bp + 16)))[Int32FromInt32(1)+Int32FromUint8('\r')] = uint8(0) + (**(**[257]uint8)(__ccgo_up(bp + 16)))[Int32FromInt32(1)+Int32FromUint8(' ')] = uint8(0) + } + } else { + p = p + 1 + v10 = p + if Int32FromUint8(**(**uint8)(__ccgo_up(v10))) == int32('^') { + p = p + 1 + invert = Int32FromInt32(1) + } else { + invert = 0 + } + Xmemset(tls, bp+16, invert, uint64(257)) + (**(**[257]uint8)(__ccgo_up(bp + 16)))[0] = uint8(0) + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('-') { + p = p + 1 + (**(**[257]uint8)(__ccgo_up(bp + 16)))[Int32FromInt32(1)+Int32FromUint8('-')] = Uint8FromInt32(Int32FromInt32(1) - invert) + } else { + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32(']') { + p = p + 1 + (**(**[257]uint8)(__ccgo_up(bp + 16)))[Int32FromInt32(1)+Int32FromUint8(']')] = Uint8FromInt32(Int32FromInt32(1) - invert) + } + } + for { + if !(Int32FromUint8(**(**uint8)(__ccgo_up(p))) != int32(']')) { + break + } + if !(**(**uint8)(__ccgo_up(p)) != 0) { + goto fmt_fail + } + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('-') && **(**uint8)(__ccgo_up(p + 1)) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(p + 1))) != int32(']') { + v10 = p + p = p + 1 + c = Int32FromUint8(**(**uint8)(__ccgo_up(v10 + uintptr(-Int32FromInt32(1))))) + for { + if !(c < Int32FromUint8(**(**uint8)(__ccgo_up(p)))) { + break + } + (**(**[257]uint8)(__ccgo_up(bp + 16)))[int32(1)+c] = Uint8FromInt32(int32(1) - invert) + goto _57 + _57: + ; + c = c + 1 + } + } + (**(**[257]uint8)(__ccgo_up(bp + 16)))[int32(1)+Int32FromUint8(**(**uint8)(__ccgo_up(p)))] = Uint8FromInt32(int32(1) - invert) + goto _56 + _56: + ; + p = p + 1 + } + } + wcs = uintptr(0) + s = uintptr(0) + i = uint64(0) + if t == int32('c') { + v59 = Uint32FromInt32(width) + uint32(1) + } else { + v59 = uint32(31) + } + k = uint64(v59) + if size == int32(SIZE_l) { + if alloc != 0 { + wcs = Xmalloc(tls, k*uint64(4)) + if !(wcs != 0) { + goto alloc_fail + } + } else { + wcs = dest + } + **(**Tmbstate_t)(__ccgo_up(bp + 8)) = Tmbstate_t{} + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v11 = f + 8 + v10 = *(*uintptr)(unsafe.Pointer(v11)) + *(*uintptr)(unsafe.Pointer(v11)) = *(*uintptr)(unsafe.Pointer(v11)) + 1 + v3 = Int32FromUint8(**(**uint8)(__ccgo_up(v10))) + } else { + v3 = X__shgetc(tls, f) + } + v1 = v3 + c = v1 + if !((**(**[257]uint8)(__ccgo_up(bp + 16)))[v1+int32(1)] != 0) { + break + } + *(*uint8)(unsafe.Pointer(bp)) = Uint8FromInt32(c) + switch Xmbrtowc(tls, bp+276, bp, uint64(1), bp+8) { + case Uint64FromInt32(-Int32FromInt32(1)): + goto input_fail + case Uint64FromInt32(-Int32FromInt32(2)): + continue + } + if wcs != 0 { + v64 = i + i = i + 1 + **(**Twchar_t)(__ccgo_up(wcs + uintptr(v64)*4)) = **(**Twchar_t)(__ccgo_up(bp + 276)) + } + if alloc != 0 && i == k { + k = k + (k + uint64(1)) + tmp = Xrealloc(tls, wcs, k*uint64(4)) + if !(tmp != 0) { + goto alloc_fail + } + wcs = tmp + } + } + if !(Xmbsinit(tls, bp+8) != 0) { + goto input_fail + } + } else { + if alloc != 0 { + s = Xmalloc(tls, k) + if !(s != 0) { + goto alloc_fail + } + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v11 = f + 8 + v10 = *(*uintptr)(unsafe.Pointer(v11)) + *(*uintptr)(unsafe.Pointer(v11)) = *(*uintptr)(unsafe.Pointer(v11)) + 1 + v3 = Int32FromUint8(**(**uint8)(__ccgo_up(v10))) + } else { + v3 = X__shgetc(tls, f) + } + v1 = v3 + c = v1 + if !((**(**[257]uint8)(__ccgo_up(bp + 16)))[v1+int32(1)] != 0) { + break + } + v64 = i + i = i + 1 + **(**uint8)(__ccgo_up(s + uintptr(v64))) = Uint8FromInt32(c) + if i == k { + k = k + (k + uint64(1)) + tmp1 = Xrealloc(tls, s, k) + if !(tmp1 != 0) { + goto alloc_fail + } + s = tmp1 + } + } + } else { + v10 = dest + s = v10 + if v10 != 0 { + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v17 = f + 8 + v11 = *(*uintptr)(unsafe.Pointer(v17)) + *(*uintptr)(unsafe.Pointer(v17)) = *(*uintptr)(unsafe.Pointer(v17)) + 1 + v3 = Int32FromUint8(**(**uint8)(__ccgo_up(v11))) + } else { + v3 = X__shgetc(tls, f) + } + v1 = v3 + c = v1 + if !((**(**[257]uint8)(__ccgo_up(bp + 16)))[v1+int32(1)] != 0) { + break + } + v64 = i + i = i + 1 + **(**uint8)(__ccgo_up(s + uintptr(v64))) = Uint8FromInt32(c) + } + } else { + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v11 = f + 8 + v10 = *(*uintptr)(unsafe.Pointer(v11)) + *(*uintptr)(unsafe.Pointer(v11)) = *(*uintptr)(unsafe.Pointer(v11)) + 1 + v3 = Int32FromUint8(**(**uint8)(__ccgo_up(v10))) + } else { + v3 = X__shgetc(tls, f) + } + v1 = v3 + c = v1 + if !((**(**[257]uint8)(__ccgo_up(bp + 16)))[v1+int32(1)] != 0) { + break + } + } + } + } + } + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + if !((*TFILE)(unsafe.Pointer(f)).Fshcnt+(int64((*TFILE)(unsafe.Pointer(f)).Frpos)-int64((*TFILE)(unsafe.Pointer(f)).Fbuf)) != 0) { + goto match_fail + } + if t == int32('c') && (*TFILE)(unsafe.Pointer(f)).Fshcnt+(int64((*TFILE)(unsafe.Pointer(f)).Frpos)-int64((*TFILE)(unsafe.Pointer(f)).Fbuf)) != int64(width) { + goto match_fail + } + if alloc != 0 { + if size == int32(SIZE_l) { + **(**uintptr)(__ccgo_up(dest)) = wcs + } else { + **(**uintptr)(__ccgo_up(dest)) = s + } + } + if t != int32('c') { + if wcs != 0 { + **(**Twchar_t)(__ccgo_up(wcs + uintptr(i)*4)) = uint32(0) + } + if s != 0 { + **(**uint8)(__ccgo_up(s + uintptr(i))) = uint8(0) + } + } + goto _54 + _41: + ; + _40: + ; + _39: + ; + base = int32(16) + goto int_common + _42: + ; + base = int32(8) + goto int_common + _44: + ; + _43: + ; + base = int32(10) + goto int_common + _45: + ; + base = 0 + goto int_common + int_common: + ; + x = X__intscan(tls, f, Uint32FromInt32(base), 0, Uint64FromUint64(2)*Uint64FromInt64(0x7fffffffffffffff)+Uint64FromInt32(1)) + if !((*TFILE)(unsafe.Pointer(f)).Fshcnt+(int64((*TFILE)(unsafe.Pointer(f)).Frpos)-int64((*TFILE)(unsafe.Pointer(f)).Fbuf)) != 0) { + goto match_fail + } + if t == int32('p') && dest != 0 { + **(**uintptr)(__ccgo_up(dest)) = uintptr(x) + } else { + _store_int(tls, dest, size, x) + } + goto _54 + _53: + ; + _52: + ; + _51: + ; + _50: + ; + _49: + ; + _48: + ; + _47: + ; + _46: + ; + y = X__floatscan(tls, f, size, 0) + if !((*TFILE)(unsafe.Pointer(f)).Fshcnt+(int64((*TFILE)(unsafe.Pointer(f)).Frpos)-int64((*TFILE)(unsafe.Pointer(f)).Fbuf)) != 0) { + goto match_fail + } + if dest != 0 { + switch size { + case SIZE_def: + **(**float32)(__ccgo_up(dest)) = float32(y) + case int32(SIZE_l): + **(**float64)(__ccgo_up(dest)) = y + case int32(SIZE_L): + **(**float64)(__ccgo_up(dest)) = y + break + } + } + goto _54 + _54: + ; + pos = pos + ((*TFILE)(unsafe.Pointer(f)).Fshcnt + (int64((*TFILE)(unsafe.Pointer(f)).Frpos) - int64((*TFILE)(unsafe.Pointer(f)).Fbuf))) + if dest != 0 { + matches = matches + 1 + } + goto _2 + _2: + ; + p = p + 1 + } + if !(0 != 0) { + goto _80 + } + goto fmt_fail +fmt_fail: + ; + goto alloc_fail +alloc_fail: + ; + goto input_fail +input_fail: + ; + if !(matches != 0) { + matches = matches - 1 + } + goto match_fail +match_fail: + ; + if alloc != 0 { + Xfree(tls, s) + Xfree(tls, wcs) + } +_80: + ; + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return matches +} + +func X__isoc99_vfscanf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v ap=%v, (%v:)", tls, f, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvfscanf(tls, f, fmt, ap) +} + +var _states1 = [8][58]uint8{ + 0: { + 0: uint8(_DBL), + 2: uint8(_UINT), + 4: uint8(_DBL), + 5: uint8(_DBL), + 6: uint8(_DBL), + 11: uint8(_BIGLPRE), + 18: uint8(_PTR), + 23: uint8(_UINT), + 32: uint8(_DBL), + 34: uint8(_INT), + 35: uint8(_INT), + 36: uint8(_DBL), + 37: uint8(_DBL), + 38: uint8(_DBL), + 39: uint8(_HPRE), + 40: uint8(_INT), + 41: uint8(_JPRE), + 43: uint8(_LPRE), + 44: uint8(_NOARG), + 45: uint8(_PTR), + 46: uint8(_UINT), + 47: uint8(_UIPTR), + 50: uint8(_PTR), + 51: uint8(_ZTPRE), + 52: uint8(_UINT), + 55: uint8(_UINT), + 57: uint8(_ZTPRE), + }, + 1: { + 0: uint8(_DBL), + 4: uint8(_DBL), + 5: uint8(_DBL), + 6: uint8(_DBL), + 23: uint8(_ULONG), + 32: uint8(_DBL), + 34: uint8(_UINT), + 35: uint8(_LONG), + 36: uint8(_DBL), + 37: uint8(_DBL), + 38: uint8(_DBL), + 40: uint8(_LONG), + 43: uint8(_LLPRE), + 45: uint8(_PTR), + 46: uint8(_ULONG), + 50: uint8(_PTR), + 52: uint8(_ULONG), + 55: uint8(_ULONG), + }, + 2: { + 23: uint8(_ULLONG), + 35: uint8(_LLONG), + 40: uint8(_LLONG), + 45: uint8(_PTR), + 46: uint8(_ULLONG), + 52: uint8(_ULLONG), + 55: uint8(_ULLONG), + }, + 3: { + 23: uint8(_USHORT), + 35: uint8(_SHORT), + 39: uint8(_HHPRE), + 40: uint8(_SHORT), + 45: uint8(_PTR), + 46: uint8(_USHORT), + 52: uint8(_USHORT), + 55: uint8(_USHORT), + }, + 4: { + 23: uint8(_UCHAR), + 35: uint8(_CHAR), + 40: uint8(_CHAR), + 45: uint8(_PTR), + 46: uint8(_UCHAR), + 52: uint8(_UCHAR), + 55: uint8(_UCHAR), + }, + 5: { + 0: uint8(_LDBL), + 4: uint8(_LDBL), + 5: uint8(_LDBL), + 6: uint8(_LDBL), + 32: uint8(_LDBL), + 36: uint8(_LDBL), + 37: uint8(_LDBL), + 38: uint8(_LDBL), + 45: uint8(_PTR), + }, + 6: { + 23: uint8(_SIZET), + 35: uint8(_PDIFF), + 40: uint8(_PDIFF), + 45: uint8(_PTR), + 46: uint8(_SIZET), + 52: uint8(_SIZET), + 55: uint8(_SIZET), + }, + 7: { + 23: uint8(_UMAX), + 35: uint8(_IMAX), + 40: uint8(_IMAX), + 45: uint8(_PTR), + 46: uint8(_UMAX), + 52: uint8(_UMAX), + 55: uint8(_UMAX), + }, +} + +func _pop_arg1(tls *TLS, arg uintptr, type1 int32, ap uintptr) { + switch type1 { + case int32(_PTR): + *(*uintptr)(unsafe.Pointer(arg)) = VaUintptr(&**(**Tva_list)(__ccgo_up(ap))) + case int32(_INT): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt32(VaInt32(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_UINT): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(VaUint32(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_LONG): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt64(VaInt64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_ULONG): + (*Targ)(unsafe.Pointer(arg)).Fi = VaUint64(&**(**Tva_list)(__ccgo_up(ap))) + case int32(_ULLONG): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(VaUint64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_SHORT): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt16(int16(VaInt32(&**(**Tva_list)(__ccgo_up(ap))))) + case int32(_USHORT): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(Uint16FromInt32(VaInt32(&**(**Tva_list)(__ccgo_up(ap))))) + case int32(_CHAR): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt8(int8(VaInt32(&**(**Tva_list)(__ccgo_up(ap))))) + case int32(_UCHAR): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(Uint8FromInt32(VaInt32(&**(**Tva_list)(__ccgo_up(ap))))) + case int32(_LLONG): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt64(VaInt64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_SIZET): + (*Targ)(unsafe.Pointer(arg)).Fi = VaUint64(&**(**Tva_list)(__ccgo_up(ap))) + case int32(_IMAX): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt64(VaInt64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_UMAX): + (*Targ)(unsafe.Pointer(arg)).Fi = VaUint64(&**(**Tva_list)(__ccgo_up(ap))) + case int32(_PDIFF): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt64(VaInt64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_UIPTR): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(VaUintptr(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_DBL): + *(*float64)(unsafe.Pointer(arg)) = float64(VaFloat64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_LDBL): + *(*float64)(unsafe.Pointer(arg)) = VaFloat64(&**(**Tva_list)(__ccgo_up(ap))) + } +} + +func _out1(tls *TLS, f uintptr, s uintptr, l Tsize_t) { + var v1 Tsize_t + var v2 uintptr + _, _ = v1, v2 + for { + v1 = l + l = l - 1 + if !(v1 != 0 && !((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_ERR) != 0)) { + break + } + v2 = s + s += 4 + Xfputwc(tls, **(**Twchar_t)(__ccgo_up(v2)), f) + } +} + +func _pad4(tls *TLS, f uintptr, n int32, fl int32) { + bp := tls.Alloc(32) + defer tls.Free(32) + if Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' '))) != 0 || !(n != 0) || (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_ERR) != 0 { + return + } + Xfprintf(tls, f, __ccgo_ts+1634, VaList(bp+8, n, __ccgo_ts)) +} + +func _getint1(tls *TLS, s uintptr) (r int32) { + var i int32 + _ = i + i = 0 + for { + if !(BoolInt32(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(s))))-uint32('0') < uint32(10)) != 0) { + break + } + if Uint32FromInt32(i) > Uint32FromInt32(INT_MAX)/Uint32FromUint32(10) || **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(s))))-uint32('0') > Uint32FromInt32(int32(INT_MAX)-int32(10)*i) { + i = -int32(1) + } else { + i = Int32FromUint32(Uint32FromInt32(int32(10)*i) + (**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(s)))) - uint32('0'))) + } + goto _1 + _1: + ; + **(**uintptr)(__ccgo_up(s)) += 4 + } + return i +} + +var _sizeprefix = [24]uint8{ + 0: uint8('L'), + 3: uint8('j'), + 4: uint8('L'), + 5: uint8('L'), + 6: uint8('L'), + 8: uint8('j'), + 14: uint8('j'), + 15: uint8('j'), + 20: uint8('j'), + 23: uint8('j'), +} + +func _wprintf_core(tls *TLS, f uintptr, fmt uintptr, ap uintptr, nl_arg uintptr, nl_type uintptr) (r int32) { + bp := tls.Alloc(112) + defer tls.Free(112) + var a, bs, z, v8 uintptr + var argpos, cnt, i, l, p, t, w, xp, v5, v6, v7 int32 + var fl, l10n, ps, st uint32 + var v15 bool + var v9 uint64 + var _ /* arg at bp+16 */ Targ + var _ /* charfmt at bp+24 */ [16]uint8 + var _ /* s at bp+8 */ uintptr + var _ /* wc at bp+40 */ Twchar_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = a, argpos, bs, cnt, fl, i, l, l10n, p, ps, st, t, w, xp, z, v15, v5, v6, v7, v8, v9 + **(**uintptr)(__ccgo_up(bp + 8)) = fmt + l10n = uint32(0) + cnt = 0 + l = 0 + for { + /* This error is only specified for snprintf, but since it's + * unspecified for other forms, do the same. Stop immediately + * on overflow; otherwise %n could produce wrong results. */ + if l > int32(INT_MAX)-cnt { + goto overflow + } + /* Update output count, end loop when fmt is exhausted */ + cnt = cnt + l + if !(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)))) != 0) { + break + } + /* Handle literal text and %% format specifiers */ + a = **(**uintptr)(__ccgo_up(bp + 8)) + for { + if !(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)))) != 0 && **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)))) != uint32('%')) { + break + } + goto _2 + _2: + ; + **(**uintptr)(__ccgo_up(bp + 8)) += 4 + } + z = **(**uintptr)(__ccgo_up(bp + 8)) + for { + if !(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)))) == uint32('%') && **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + 1*4)) == uint32('%')) { + break + } + goto _3 + _3: + ; + z += 4 + **(**uintptr)(__ccgo_up(bp + 8)) = **(**uintptr)(__ccgo_up(bp + 8)) + uintptr(2)*4 + } + if (int64(z)-int64(a))/4 > int64(int32(INT_MAX)-cnt) { + goto overflow + } + l = int32((int64(z) - int64(a)) / 4) + if f != 0 { + _out1(tls, f, a, Uint64FromInt32(l)) + } + if l != 0 { + goto _1 + } + if BoolInt32(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + 1*4))-uint32('0') < uint32(10)) != 0 && **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + 2*4)) == uint32('$') { + l10n = uint32(1) + argpos = Int32FromUint32(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + 1*4)) - uint32('0')) + **(**uintptr)(__ccgo_up(bp + 8)) = **(**uintptr)(__ccgo_up(bp + 8)) + uintptr(3)*4 + } else { + argpos = -int32(1) + **(**uintptr)(__ccgo_up(bp + 8)) += 4 + } + /* Read modifier flags */ + fl = uint32(0) + for { + if !(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8))))-uint32(' ') < uint32(32) && (Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8('0')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8(' ')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8('+')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8('\'')-Int32FromUint8(' ')))&(uint32(1)<<(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8))))-uint32(' '))) != 0) { + break + } + fl = fl | uint32(1)<<(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8))))-uint32(' ')) + goto _4 + _4: + ; + **(**uintptr)(__ccgo_up(bp + 8)) += 4 + } + /* Read field width */ + if **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)))) == uint32('*') { + if BoolInt32(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + 1*4))-uint32('0') < uint32(10)) != 0 && **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + 2*4)) == uint32('$') { + l10n = uint32(1) + **(**int32)(__ccgo_up(nl_type + uintptr(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + 1*4))-uint32('0'))*4)) = int32(_INT) + w = Int32FromUint64(*(*Tuintmax_t)(unsafe.Pointer(nl_arg + uintptr(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + 1*4))-uint32('0'))*8))) + **(**uintptr)(__ccgo_up(bp + 8)) = **(**uintptr)(__ccgo_up(bp + 8)) + uintptr(3)*4 + } else { + if !(l10n != 0) { + if f != 0 { + v5 = VaInt32(&**(**Tva_list)(__ccgo_up(ap))) + } else { + v5 = 0 + } + w = v5 + **(**uintptr)(__ccgo_up(bp + 8)) += 4 + } else { + goto inval + } + } + if w < 0 { + fl = fl | Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' ')) + w = -w + } + } else { + v5 = _getint1(tls, bp+8) + w = v5 + if v5 < 0 { + goto overflow + } + } + /* Read precision */ + if **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)))) == uint32('.') && **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + 1*4)) == uint32('*') { + if BoolInt32(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + 2*4))-uint32('0') < uint32(10)) != 0 && **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + 3*4)) == uint32('$') { + **(**int32)(__ccgo_up(nl_type + uintptr(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + 2*4))-uint32('0'))*4)) = int32(_INT) + p = Int32FromUint64(*(*Tuintmax_t)(unsafe.Pointer(nl_arg + uintptr(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + 2*4))-uint32('0'))*8))) + **(**uintptr)(__ccgo_up(bp + 8)) = **(**uintptr)(__ccgo_up(bp + 8)) + uintptr(4)*4 + } else { + if !(l10n != 0) { + if f != 0 { + v5 = VaInt32(&**(**Tva_list)(__ccgo_up(ap))) + } else { + v5 = 0 + } + p = v5 + **(**uintptr)(__ccgo_up(bp + 8)) = **(**uintptr)(__ccgo_up(bp + 8)) + uintptr(2)*4 + } else { + goto inval + } + } + xp = BoolInt32(p >= 0) + } else { + if **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)))) == uint32('.') { + **(**uintptr)(__ccgo_up(bp + 8)) += 4 + p = _getint1(tls, bp+8) + xp = int32(1) + } else { + p = -int32(1) + xp = 0 + } + } + /* Format specifier state machine */ + st = uint32(0) + for cond := true; cond; cond = st-uint32(1) < uint32(_STOP) { + if **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8))))-uint32('A') > Uint32FromInt32(Int32FromUint8('z')-Int32FromUint8('A')) { + goto inval + } + ps = st + v8 = **(**uintptr)(__ccgo_up(bp + 8)) + **(**uintptr)(__ccgo_up(bp + 8)) += 4 + st = uint32(**(**uint8)(__ccgo_up(uintptr(unsafe.Pointer(&_states1)) + uintptr(st)*58 + uintptr(**(**Twchar_t)(__ccgo_up(v8))-uint32('A'))))) + } + if !(st != 0) { + goto inval + } + /* Check validity of argument type (nl/normal) */ + if st == uint32(_NOARG) { + if argpos >= 0 { + goto inval + } + } else { + if argpos >= 0 { + **(**int32)(__ccgo_up(nl_type + uintptr(argpos)*4)) = Int32FromUint32(st) + **(**Targ)(__ccgo_up(bp + 16)) = **(**Targ)(__ccgo_up(nl_arg + uintptr(argpos)*8)) + } else { + if f != 0 { + _pop_arg1(tls, bp+16, Int32FromUint32(st), ap) + } else { + return 0 + } + } + } + if !(f != 0) { + goto _1 + } + /* Do not process any new directives once in error state. */ + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_ERR) != 0 { + return -int32(1) + } + t = Int32FromUint32(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + uintptr(-Int32FromInt32(1))*4))) + if ps != 0 && t&int32(15) == int32(3) { + t = t & ^Int32FromInt32(32) + } + switch t { + case int32('n'): + switch ps { + case uint32(_BARE): + **(**int32)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 16)))) = cnt + case uint32(_LPRE): + **(**int64)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 16)))) = int64(cnt) + case uint32(_LLPRE): + **(**int64)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 16)))) = int64(cnt) + case uint32(_HPRE): + **(**uint16)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 16)))) = Uint16FromInt32(cnt) + case uint32(_HHPRE): + **(**uint8)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 16)))) = Uint8FromInt32(cnt) + case uint32(_ZTPRE): + **(**Tsize_t)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 16)))) = Uint64FromInt32(cnt) + case uint32(_JPRE): + **(**Tuintmax_t)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 16)))) = Uint64FromInt32(cnt) + break + } + goto _1 + case int32('c'): + fallthrough + case int32('C'): + if w < int32(1) { + w = int32(1) + } + _pad4(tls, f, w-int32(1), Int32FromUint32(fl)) + if t == int32('C') { + v9 = *(*Tuintmax_t)(unsafe.Pointer(bp + 16)) + } else { + v9 = uint64(Xbtowc(tls, Int32FromUint64(*(*Tuintmax_t)(unsafe.Pointer(bp + 16))))) + } + *(*Twchar_t)(unsafe.Pointer(bp)) = uint32(v9) + _out1(tls, f, bp, uint64(1)) + _pad4(tls, f, w-int32(1), Int32FromUint32(fl^Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' ')))) + l = w + goto _1 + case int32('S'): + a = *(*uintptr)(unsafe.Pointer(bp + 16)) + if p < 0 { + v5 = int32(INT_MAX) + } else { + v5 = p + } + z = a + uintptr(Xwcsnlen(tls, a, Uint64FromInt32(v5)))*4 + if p < 0 && **(**Twchar_t)(__ccgo_up(z)) != 0 { + goto overflow + } + p = int32((int64(z) - int64(a)) / 4) + if w < p { + w = p + } + _pad4(tls, f, w-p, Int32FromUint32(fl)) + _out1(tls, f, a, Uint64FromInt32(p)) + _pad4(tls, f, w-p, Int32FromUint32(fl^Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' ')))) + l = w + goto _1 + case int32('m'): + *(*uintptr)(unsafe.Pointer(bp + 16)) = Xstrerror(tls, **(**int32)(__ccgo_up(X__errno_location(tls)))) + fallthrough + case int32('s'): + if !(*(*uintptr)(unsafe.Pointer(bp + 16)) != 0) { + *(*uintptr)(unsafe.Pointer(bp + 16)) = __ccgo_ts + 1627 + } + bs = *(*uintptr)(unsafe.Pointer(bp + 16)) + v5 = Int32FromInt32(0) + l = v5 + i = v5 + for { + if p < 0 { + v6 = int32(INT_MAX) + } else { + v6 = p + } + if v15 = l < v6; v15 { + v7 = Xmbtowc(tls, bp+40, bs, uint64(MB_LEN_MAX)) + i = v7 + } + if !(v15 && v7 > 0) { + break + } + goto _11 + _11: + ; + bs = bs + uintptr(i) + l = l + 1 + } + if i < 0 { + return -int32(1) + } + if p < 0 && **(**uint8)(__ccgo_up(bs)) != 0 { + goto overflow + } + p = l + if w < p { + w = p + } + _pad4(tls, f, w-p, Int32FromUint32(fl)) + bs = *(*uintptr)(unsafe.Pointer(bp + 16)) + for { + v5 = l + l = l - 1 + if !(v5 != 0) { + break + } + i = Xmbtowc(tls, bp+40, bs, uint64(MB_LEN_MAX)) + bs = bs + uintptr(i) + _out1(tls, f, bp+40, uint64(1)) + } + _pad4(tls, f, w-p, Int32FromUint32(fl^Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' ')))) + l = w + goto _1 + } + if xp != 0 && p < 0 { + goto overflow + } + Xsnprintf(tls, bp+24, uint64(16), __ccgo_ts+1638, VaList(bp+56, __ccgo_ts+1658+BoolUintptr(!(fl&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0)), __ccgo_ts+1660+BoolUintptr(!(fl&(Uint32FromUint32(1)<<(Int32FromUint8('+')-Int32FromUint8(' '))) != 0)), __ccgo_ts+1662+BoolUintptr(!(fl&(Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' '))) != 0)), __ccgo_ts+672+BoolUintptr(!(fl&(Uint32FromUint32(1)<<(Int32FromUint8(' ')-Int32FromUint8(' '))) != 0)), __ccgo_ts+1664+BoolUintptr(!(fl&(Uint32FromUint32(1)<<(Int32FromUint8('0')-Int32FromUint8(' '))) != 0)), Int32FromUint8(_sizeprefix[t|int32(32)-int32('a')]), t)) + switch t | Int32FromInt32(32) { + case int32('a'): + fallthrough + case int32('e'): + fallthrough + case int32('f'): + fallthrough + case int32('g'): + l = Xfprintf(tls, f, bp+24, VaList(bp+56, w, p, *(*float64)(unsafe.Pointer(bp + 16)))) + case int32('d'): + fallthrough + case int32('i'): + fallthrough + case int32('o'): + fallthrough + case int32('u'): + fallthrough + case int32('x'): + fallthrough + case int32('p'): + l = Xfprintf(tls, f, bp+24, VaList(bp+56, w, p, *(*Tuintmax_t)(unsafe.Pointer(bp + 16)))) + break + } + goto _1 + _1: + } + if f != 0 { + return cnt + } + if !(l10n != 0) { + return 0 + } + i = int32(1) + for { + if !(i <= int32(NL_ARGMAX) && **(**int32)(__ccgo_up(nl_type + uintptr(i)*4)) != 0) { + break + } + _pop_arg1(tls, nl_arg+uintptr(i)*8, **(**int32)(__ccgo_up(nl_type + uintptr(i)*4)), ap) + goto _17 + _17: + ; + i = i + 1 + } + for { + if !(i <= int32(NL_ARGMAX) && !(**(**int32)(__ccgo_up(nl_type + uintptr(i)*4)) != 0)) { + break + } + goto _18 + _18: + ; + i = i + 1 + } + if i <= int32(NL_ARGMAX) { + return -int32(1) + } + return int32(1) + goto inval +inval: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + goto overflow +overflow: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOVERFLOW) + return -int32(1) +} + +func Xvfwprintf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v ap=%v, (%v:)", tls, f, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(128) + defer tls.Free(128) + var __need_unlock, olderr, ret, v1 int32 + var _ /* ap2 at bp+0 */ Tva_list + var _ /* nl_arg at bp+48 */ [10]Targ + var _ /* nl_type at bp+8 */ [10]int32 + _, _, _, _ = __need_unlock, olderr, ret, v1 + **(**[10]int32)(__ccgo_up(bp + 8)) = [10]int32{} + /* the copy allows passing va_list* even if va_list is an array */ + **(**Tva_list)(__ccgo_up(bp)) = ap + if _wprintf_core(tls, uintptr(0), fmt, bp, bp+48, bp+8) < 0 { + _ = **(**Tva_list)(__ccgo_up(bp)) + return -int32(1) + } + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + Xfwide(tls, f, int32(1)) + olderr = Int32FromUint32((*TFILE)(unsafe.Pointer(f)).Fflags & uint32(F_ERR)) + **(**uint32)(__ccgo_up(f)) &= Uint32FromInt32(^Int32FromInt32(F_ERR)) + ret = _wprintf_core(tls, f, fmt, bp, bp+48, bp+8) + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_ERR) != 0 { + ret = -int32(1) + } + **(**uint32)(__ccgo_up(f)) |= Uint32FromInt32(olderr) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + _ = **(**Tva_list)(__ccgo_up(bp)) + return ret +} + +func _store_int1(tls *TLS, dest uintptr, size int32, i uint64) { + if !(dest != 0) { + return + } + switch size { + case -int32(2): + **(**uint8)(__ccgo_up(dest)) = uint8(i) + case -int32(1): + **(**int16)(__ccgo_up(dest)) = Int16FromUint64(i) + case SIZE_def: + **(**int32)(__ccgo_up(dest)) = Int32FromUint64(i) + case int32(SIZE_l): + **(**int64)(__ccgo_up(dest)) = Int64FromUint64(i) + case int32(SIZE_ll): + **(**int64)(__ccgo_up(dest)) = Int64FromUint64(i) + break + } +} + +func _arg_n1(tls *TLS, ap Tva_list, n uint32) (r uintptr) { + var ap2 Tva_list + var i uint32 + var p uintptr + _, _, _ = ap2, i, p + ap2 = ap + i = n + for { + if !(i > uint32(1)) { + break + } + _ = VaUintptr(&ap2) + goto _1 + _1: + ; + i = i - 1 + } + p = VaUintptr(&ap2) + _ = ap2 + return p +} + +func _in_set(tls *TLS, set uintptr, c int32) (r int32) { + var j int32 + var p, v3 uintptr + _, _, _ = j, p, v3 + p = set + if **(**Twchar_t)(__ccgo_up(p)) == uint32('-') { + if c == int32('-') { + return int32(1) + } + p += 4 + } else { + if **(**Twchar_t)(__ccgo_up(p)) == uint32(']') { + if c == int32(']') { + return int32(1) + } + p += 4 + } + } + for { + if !(**(**Twchar_t)(__ccgo_up(p)) != 0 && **(**Twchar_t)(__ccgo_up(p)) != uint32(']')) { + break + } + if **(**Twchar_t)(__ccgo_up(p)) == uint32('-') && **(**Twchar_t)(__ccgo_up(p + 1*4)) != 0 && **(**Twchar_t)(__ccgo_up(p + 1*4)) != uint32(']') { + v3 = p + p += 4 + j = Int32FromUint32(**(**Twchar_t)(__ccgo_up(v3 + uintptr(-Int32FromInt32(1))*4))) + for { + if !(Uint32FromInt32(j) < **(**Twchar_t)(__ccgo_up(p))) { + break + } + if c == j { + return int32(1) + } + goto _2 + _2: + ; + j = j + 1 + } + } + if Uint32FromInt32(c) == **(**Twchar_t)(__ccgo_up(p)) { + return int32(1) + } + goto _1 + _1: + ; + p += 4 + } + return 0 +} + +func Xvfwscanf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v ap=%v, (%v:)", tls, f, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(80) + defer tls.Free(80) + var __need_unlock, alloc, c, gotmatch, invert, l, matches, size, t, width, v1 int32 + var dest, p, s, set, tmp1, tmp2, wcs, v5, v6 uintptr + var i, k, v37 Tsize_t + var pos Toff_t + var v4 uint32 + var _ /* cnt at bp+0 */ Toff_t + var _ /* tmp at bp+8 */ [22]uint8 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = __need_unlock, alloc, c, dest, gotmatch, i, invert, k, l, matches, p, pos, s, set, size, t, tmp1, tmp2, wcs, width, v1, v37, v4, v5, v6 + dest = UintptrFromInt32(0) + matches = 0 + pos = 0 + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + Xfwide(tls, f, int32(1)) + p = fmt + for { + if !(**(**Twchar_t)(__ccgo_up(p)) != 0) { + break + } + alloc = 0 + if Xiswspace(tls, **(**Twchar_t)(__ccgo_up(p))) != 0 { + for Xiswspace(tls, **(**Twchar_t)(__ccgo_up(p + 1*4))) != 0 { + p += 4 + } + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend && Int32FromUint8(**(**uint8)(__ccgo_up((*TFILE)(unsafe.Pointer(f)).Frpos))) < int32(128) { + v6 = f + 8 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + v4 = uint32(**(**uint8)(__ccgo_up(v5))) + } else { + v4 = Xgetwc(tls, f) + } + v1 = Int32FromUint32(v4) + c = v1 + if !(Xiswspace(tls, Uint32FromInt32(v1)) != 0) { + break + } + pos = pos + 1 + } + if (*TFILE)(unsafe.Pointer(f)).Frend != 0 && Uint32FromInt32(c) < uint32(128) { + v6 = f + 8 + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) - 1 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + _ = **(**uint8)(__ccgo_up(v5)) + } else { + Xungetwc(tls, Uint32FromInt32(c), f) + } + goto _2 + } + if **(**Twchar_t)(__ccgo_up(p)) != uint32('%') || **(**Twchar_t)(__ccgo_up(p + 1*4)) == uint32('%') { + if **(**Twchar_t)(__ccgo_up(p)) == uint32('%') { + p += 4 + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend && Int32FromUint8(**(**uint8)(__ccgo_up((*TFILE)(unsafe.Pointer(f)).Frpos))) < int32(128) { + v6 = f + 8 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + v4 = uint32(**(**uint8)(__ccgo_up(v5))) + } else { + v4 = Xgetwc(tls, f) + } + v1 = Int32FromUint32(v4) + c = v1 + if !(Xiswspace(tls, Uint32FromInt32(v1)) != 0) { + break + } + pos = pos + 1 + } + } else { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend && Int32FromUint8(**(**uint8)(__ccgo_up((*TFILE)(unsafe.Pointer(f)).Frpos))) < int32(128) { + v6 = f + 8 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + v4 = uint32(**(**uint8)(__ccgo_up(v5))) + } else { + v4 = Xgetwc(tls, f) + } + c = Int32FromUint32(v4) + } + if Uint32FromInt32(c) != **(**Twchar_t)(__ccgo_up(p)) { + if (*TFILE)(unsafe.Pointer(f)).Frend != 0 && Uint32FromInt32(c) < uint32(128) { + v6 = f + 8 + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) - 1 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + _ = **(**uint8)(__ccgo_up(v5)) + } else { + Xungetwc(tls, Uint32FromInt32(c), f) + } + if c < 0 { + goto input_fail + } + goto match_fail + } + pos = pos + 1 + goto _2 + } + p += 4 + if **(**Twchar_t)(__ccgo_up(p)) == uint32('*') { + dest = uintptr(0) + p += 4 + } else { + if BoolInt32(**(**Twchar_t)(__ccgo_up(p))-uint32('0') < uint32(10)) != 0 && **(**Twchar_t)(__ccgo_up(p + 1*4)) == uint32('$') { + dest = _arg_n1(tls, ap, **(**Twchar_t)(__ccgo_up(p))-uint32('0')) + p = p + uintptr(2)*4 + } else { + dest = VaUintptr(&ap) + } + } + width = 0 + for { + if !(BoolInt32(**(**Twchar_t)(__ccgo_up(p))-uint32('0') < uint32(10)) != 0) { + break + } + width = Int32FromUint32(Uint32FromInt32(int32(10)*width) + **(**Twchar_t)(__ccgo_up(p)) - uint32('0')) + goto _18 + _18: + ; + p += 4 + } + if **(**Twchar_t)(__ccgo_up(p)) == uint32('m') { + wcs = uintptr(0) + s = uintptr(0) + alloc = BoolInt32(!!(dest != 0)) + p += 4 + } else { + alloc = 0 + } + size = SIZE_def + v5 = p + p += 4 + switch **(**Twchar_t)(__ccgo_up(v5)) { + case uint32('h'): + if **(**Twchar_t)(__ccgo_up(p)) == uint32('h') { + p += 4 + size = -Int32FromInt32(2) + } else { + size = -int32(1) + } + case uint32('l'): + if **(**Twchar_t)(__ccgo_up(p)) == uint32('l') { + p += 4 + size = Int32FromInt32(SIZE_ll) + } else { + size = int32(SIZE_l) + } + case uint32('j'): + size = int32(SIZE_ll) + case uint32('z'): + fallthrough + case uint32('t'): + size = int32(SIZE_l) + case uint32('L'): + size = int32(SIZE_L) + case uint32('d'): + fallthrough + case uint32('i'): + fallthrough + case uint32('o'): + fallthrough + case uint32('u'): + fallthrough + case uint32('x'): + fallthrough + case uint32('a'): + fallthrough + case uint32('e'): + fallthrough + case uint32('f'): + fallthrough + case uint32('g'): + fallthrough + case uint32('A'): + fallthrough + case uint32('E'): + fallthrough + case uint32('F'): + fallthrough + case uint32('G'): + fallthrough + case uint32('X'): + fallthrough + case uint32('s'): + fallthrough + case uint32('c'): + fallthrough + case uint32('['): + fallthrough + case uint32('S'): + fallthrough + case uint32('C'): + fallthrough + case uint32('p'): + fallthrough + case uint32('n'): + p -= 4 + default: + goto fmt_fail + } + t = Int32FromUint32(**(**Twchar_t)(__ccgo_up(p))) + /* Transform S,C -> ls,lc */ + if t&int32(0x2f) == int32(3) { + size = int32(SIZE_l) + t = t | int32(32) + } + if t != int32('n') { + if t != int32('[') && t|int32(32) != int32('c') { + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend && Int32FromUint8(**(**uint8)(__ccgo_up((*TFILE)(unsafe.Pointer(f)).Frpos))) < int32(128) { + v6 = f + 8 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + v4 = uint32(**(**uint8)(__ccgo_up(v5))) + } else { + v4 = Xgetwc(tls, f) + } + v1 = Int32FromUint32(v4) + c = v1 + if !(Xiswspace(tls, Uint32FromInt32(v1)) != 0) { + break + } + pos = pos + 1 + } + } else { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend && Int32FromUint8(**(**uint8)(__ccgo_up((*TFILE)(unsafe.Pointer(f)).Frpos))) < int32(128) { + v6 = f + 8 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + v4 = uint32(**(**uint8)(__ccgo_up(v5))) + } else { + v4 = Xgetwc(tls, f) + } + c = Int32FromUint32(v4) + } + if c < 0 { + goto input_fail + } + if (*TFILE)(unsafe.Pointer(f)).Frend != 0 && Uint32FromInt32(c) < uint32(128) { + v6 = f + 8 + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) - 1 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + _ = **(**uint8)(__ccgo_up(v5)) + } else { + Xungetwc(tls, Uint32FromInt32(c), f) + } + } + switch t { + case int32('n'): + _store_int1(tls, dest, size, Uint64FromInt64(pos)) + /* do not increment match count, etc! */ + goto _2 + case int32('s'): + fallthrough + case int32('c'): + fallthrough + case int32('['): + if t == int32('c') { + if width < int32(1) { + width = int32(1) + } + invert = int32(1) + set = __ccgo_ts + 1666 + } else { + if t == int32('s') { + invert = int32(1) + set = uintptr(unsafe.Pointer(&_spaces1)) + } else { + p += 4 + v5 = p + if **(**Twchar_t)(__ccgo_up(v5)) == uint32('^') { + p += 4 + invert = Int32FromInt32(1) + } else { + invert = 0 + } + set = p + if **(**Twchar_t)(__ccgo_up(p)) == uint32(']') { + p += 4 + } + for **(**Twchar_t)(__ccgo_up(p)) != uint32(']') { + if !(**(**Twchar_t)(__ccgo_up(p)) != 0) { + goto fmt_fail + } + p += 4 + } + } + } + if size == SIZE_def { + v5 = dest + } else { + v5 = uintptr(0) + } + s = v5 + if size == int32(SIZE_l) { + v5 = dest + } else { + v5 = uintptr(0) + } + wcs = v5 + gotmatch = 0 + if width < int32(1) { + width = -int32(1) + } + i = uint64(0) + if alloc != 0 { + if t == int32('c') { + v4 = Uint32FromInt32(width) + uint32(1) + } else { + v4 = uint32(31) + } + k = uint64(v4) + if size == int32(SIZE_l) { + wcs = Xmalloc(tls, k*uint64(4)) + if !(wcs != 0) { + goto alloc_fail + } + } else { + s = Xmalloc(tls, k) + if !(s != 0) { + goto alloc_fail + } + } + } + for width != 0 { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend && Int32FromUint8(**(**uint8)(__ccgo_up((*TFILE)(unsafe.Pointer(f)).Frpos))) < int32(128) { + v6 = f + 8 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + v4 = uint32(**(**uint8)(__ccgo_up(v5))) + } else { + v4 = Xgetwc(tls, f) + } + v1 = Int32FromUint32(v4) + c = v1 + if v1 < 0 { + break + } + if _in_set(tls, set, c) == invert { + break + } + if wcs != 0 { + v37 = i + i = i + 1 + **(**Twchar_t)(__ccgo_up(wcs + uintptr(v37)*4)) = Uint32FromInt32(c) + if alloc != 0 && i == k { + k = k + (k + uint64(1)) + tmp1 = Xrealloc(tls, wcs, k*uint64(4)) + if !(tmp1 != 0) { + goto alloc_fail + } + wcs = tmp1 + } + } else { + if size != int32(SIZE_l) { + if s != 0 { + v5 = s + uintptr(i) + } else { + v5 = bp + 8 + } + l = Xwctomb(tls, v5, Uint32FromInt32(c)) + if l < 0 { + goto input_fail + } + i = i + Uint64FromInt32(l) + if alloc != 0 && i > k-uint64(4) { + k = k + (k + uint64(1)) + tmp2 = Xrealloc(tls, s, k) + if !(tmp2 != 0) { + goto alloc_fail + } + s = tmp2 + } + } + } + pos = pos + 1 + width = width - BoolInt32(width > 0) + gotmatch = int32(1) + } + if width != 0 { + if (*TFILE)(unsafe.Pointer(f)).Frend != 0 && Uint32FromInt32(c) < uint32(128) { + v6 = f + 8 + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) - 1 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + _ = **(**uint8)(__ccgo_up(v5)) + } else { + Xungetwc(tls, Uint32FromInt32(c), f) + } + if t == int32('c') || !(gotmatch != 0) { + goto match_fail + } + } + if alloc != 0 { + if size == int32(SIZE_l) { + **(**uintptr)(__ccgo_up(dest)) = wcs + } else { + **(**uintptr)(__ccgo_up(dest)) = s + } + } + if t != int32('c') { + if wcs != 0 { + **(**Twchar_t)(__ccgo_up(wcs + uintptr(i)*4)) = uint32(0) + } + if s != 0 { + **(**uint8)(__ccgo_up(s + uintptr(i))) = uint8(0) + } + } + case int32('d'): + fallthrough + case int32('i'): + fallthrough + case int32('o'): + fallthrough + case int32('u'): + fallthrough + case int32('x'): + fallthrough + case int32('a'): + fallthrough + case int32('e'): + fallthrough + case int32('f'): + fallthrough + case int32('g'): + fallthrough + case int32('A'): + fallthrough + case int32('E'): + fallthrough + case int32('F'): + fallthrough + case int32('G'): + fallthrough + case int32('X'): + fallthrough + case int32('p'): + if width < int32(1) { + width = 0 + } + Xsnprintf(tls, bp+8, uint64(22), __ccgo_ts+1670, VaList(bp+40, int32(1)+BoolInt32(!(dest != 0)), __ccgo_ts+1688, width, uintptr(unsafe.Pointer(&_size_pfx))+uintptr(size+int32(2))*3, t)) + **(**Toff_t)(__ccgo_up(bp)) = 0 + if dest != 0 { + v5 = dest + } else { + v5 = bp + } + if Xfscanf(tls, f, bp+8, VaList(bp+40, v5, bp)) == -int32(1) { + goto input_fail + } else { + if !(**(**Toff_t)(__ccgo_up(bp)) != 0) { + goto match_fail + } + } + pos = pos + **(**Toff_t)(__ccgo_up(bp)) + default: + goto fmt_fail + } + if dest != 0 { + matches = matches + 1 + } + goto _2 + _2: + ; + p += 4 + } + if !(0 != 0) { + goto _42 + } + goto fmt_fail +fmt_fail: + ; + goto alloc_fail +alloc_fail: + ; + goto input_fail +input_fail: + ; + if !(matches != 0) { + matches = matches - 1 + } + goto match_fail +match_fail: + ; + if alloc != 0 { + Xfree(tls, s) + Xfree(tls, wcs) + } +_42: + ; + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return matches +} + +var _size_pfx = [6][3]uint8{ + 0: {'h', 'h'}, + 1: {'h'}, + 2: {}, + 3: {'l'}, + 4: {'L'}, + 5: {'l', 'l'}, +} + +var _spaces1 = [22]Twchar_t{ + 0: uint32(' '), + 1: uint32('\t'), + 2: uint32('\n'), + 3: uint32('\r'), + 4: uint32(11), + 5: uint32(12), + 6: uint32(0x0085), + 7: uint32(0x2000), + 8: uint32(0x2001), + 9: uint32(0x2002), + 10: uint32(0x2003), + 11: uint32(0x2004), + 12: uint32(0x2005), + 13: uint32(0x2006), + 14: uint32(0x2008), + 15: uint32(0x2009), + 16: uint32(0x200a), + 17: uint32(0x2028), + 18: uint32(0x2029), + 19: uint32(0x205f), + 20: uint32(0x3000), +} + +func X__isoc99_vfwscanf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v ap=%v, (%v:)", tls, f, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvfwscanf(tls, f, fmt, ap) +} + +func Xvprintf(tls *TLS, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v ap=%v, (%v:)", tls, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvfprintf(tls, uintptr(unsafe.Pointer(&X__stdout_FILE)), fmt, ap) +} + +func Xvscanf(tls *TLS, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v ap=%v, (%v:)", tls, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvfscanf(tls, uintptr(unsafe.Pointer(&X__stdin_FILE)), fmt, ap) +} + +func X__isoc99_vscanf(tls *TLS, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v ap=%v, (%v:)", tls, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvscanf(tls, fmt, ap) +} + +type Tcookie3 = struct { + Fs uintptr + Fn Tsize_t +} + +func _sn_write(tls *TLS, f uintptr, s uintptr, l Tsize_t) (r Tsize_t) { + var c, v3 uintptr + var k Tsize_t + var v1 uint64 + _, _, _, _ = c, k, v1, v3 + c = (*TFILE)(unsafe.Pointer(f)).Fcookie + if (*Tcookie3)(unsafe.Pointer(c)).Fn < Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Fwpos)-int64((*TFILE)(unsafe.Pointer(f)).Fwbase)) { + v1 = (*Tcookie3)(unsafe.Pointer(c)).Fn + } else { + v1 = Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Fwpos) - int64((*TFILE)(unsafe.Pointer(f)).Fwbase)) + } + k = v1 + if k != 0 { + Xmemcpy(tls, (*Tcookie3)(unsafe.Pointer(c)).Fs, (*TFILE)(unsafe.Pointer(f)).Fwbase, k) + **(**uintptr)(__ccgo_up(c)) += uintptr(k) + **(**Tsize_t)(__ccgo_up(c + 8)) -= k + } + if (*Tcookie3)(unsafe.Pointer(c)).Fn < l { + v1 = (*Tcookie3)(unsafe.Pointer(c)).Fn + } else { + v1 = l + } + k = v1 + if k != 0 { + Xmemcpy(tls, (*Tcookie3)(unsafe.Pointer(c)).Fs, s, k) + **(**uintptr)(__ccgo_up(c)) += uintptr(k) + **(**Tsize_t)(__ccgo_up(c + 8)) -= k + } + **(**uint8)(__ccgo_up((*Tcookie3)(unsafe.Pointer(c)).Fs)) = uint8(0) + v3 = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Fwbase = v3 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v3 + /* pretend to succeed, even if we discarded extra data */ + return l +} + +func Xvsnprintf(tls *TLS, s uintptr, n Tsize_t, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v fmt=%v ap=%v, (%v:)", tls, s, n, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(256) + defer tls.Free(256) + var v1 uintptr + var v2 uint64 + var _ /* buf at bp+0 */ [1]uint8 + var _ /* c at bp+8 */ Tcookie3 + var _ /* dummy at bp+1 */ [1]uint8 + var _ /* f at bp+24 */ TFILE + _, _ = v1, v2 + if n != 0 { + v1 = s + } else { + v1 = bp + 1 + } + if n != 0 { + v2 = n - uint64(1) + } else { + v2 = uint64(0) + } + **(**Tcookie3)(__ccgo_up(bp + 8)) = Tcookie3{ + Fs: v1, + Fn: v2, + } + **(**TFILE)(__ccgo_up(bp + 24)) = TFILE{ + Fwrite: __ccgo_fp(_sn_write), + Fbuf: bp, + Flock: -int32(1), + Flbf: -int32(1), + Fcookie: bp + 8, + } + **(**uint8)(__ccgo_up((**(**Tcookie3)(__ccgo_up(bp + 8))).Fs)) = uint8(0) + return Xvfprintf(tls, bp+24, fmt, ap) +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xvsprintf(tls *TLS, s uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v ap=%v, (%v:)", tls, s, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvsnprintf(tls, s, uint64(INT_MAX), fmt, ap) +} + +func _string_read(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + var end, src uintptr + var k Tsize_t + _, _, _ = end, k, src + src = (*TFILE)(unsafe.Pointer(f)).Fcookie + k = len1 + uint64(256) + end = Xmemchr(tls, src, 0, k) + if end != 0 { + k = Uint64FromInt64(int64(end) - int64(src)) + } + if k < len1 { + len1 = k + } + Xmemcpy(tls, buf, src, len1) + (*TFILE)(unsafe.Pointer(f)).Frpos = src + uintptr(len1) + (*TFILE)(unsafe.Pointer(f)).Frend = src + uintptr(k) + (*TFILE)(unsafe.Pointer(f)).Fcookie = src + uintptr(k) + return len1 +} + +func Xvsscanf(tls *TLS, s uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v ap=%v, (%v:)", tls, s, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(240) + defer tls.Free(240) + var _ /* f at bp+0 */ TFILE + **(**TFILE)(__ccgo_up(bp)) = TFILE{ + Fread: __ccgo_fp(_string_read), + Fbuf: s, + Flock: -int32(1), + Fcookie: s, + } + return Xvfscanf(tls, bp, fmt, ap) +} + +func X__isoc99_vsscanf(tls *TLS, s uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v ap=%v, (%v:)", tls, s, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvsscanf(tls, s, fmt, ap) +} + +type Tcookie4 = struct { + Fws uintptr + Fl Tsize_t +} + +func _sw_write(tls *TLS, f uintptr, s uintptr, l Tsize_t) (r Tsize_t) { + var c, v3, v4 uintptr + var i, v1 int32 + var l0 Tsize_t + var v2 bool + _, _, _, _, _, _, _ = c, i, l0, v1, v2, v3, v4 + l0 = l + i = 0 + c = (*TFILE)(unsafe.Pointer(f)).Fcookie + if s != (*TFILE)(unsafe.Pointer(f)).Fwbase && _sw_write(tls, f, (*TFILE)(unsafe.Pointer(f)).Fwbase, Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Fwpos)-int64((*TFILE)(unsafe.Pointer(f)).Fwbase))) == Uint64FromInt32(-Int32FromInt32(1)) { + return Uint64FromInt32(-Int32FromInt32(1)) + } + for { + if v2 = (*Tcookie4)(unsafe.Pointer(c)).Fl != 0 && l != 0; v2 { + v1 = Xmbtowc(tls, (*Tcookie4)(unsafe.Pointer(c)).Fws, s, l) + i = v1 + } + if !(v2 && v1 >= 0) { + break + } + if !(i != 0) { + i = int32(1) + } + s = s + uintptr(i) + l = l - Uint64FromInt32(i) + (*Tcookie4)(unsafe.Pointer(c)).Fl = (*Tcookie4)(unsafe.Pointer(c)).Fl - 1 + (*Tcookie4)(unsafe.Pointer(c)).Fws += 4 + } + **(**Twchar_t)(__ccgo_up((*Tcookie4)(unsafe.Pointer(c)).Fws)) = uint32(0) + if i < 0 { + v4 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Fwend = v4 + v3 = v4 + (*TFILE)(unsafe.Pointer(f)).Fwbase = v3 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v3 + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) + return Uint64FromInt32(i) + } + (*TFILE)(unsafe.Pointer(f)).Fwend = (*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr((*TFILE)(unsafe.Pointer(f)).Fbuf_size) + v3 = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Fwbase = v3 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v3 + return l0 +} + +func Xvswprintf(tls *TLS, s uintptr, n Tsize_t, fmt uintptr, ap Tva_list) (r1 int32) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v fmt=%v ap=%v, (%v:)", tls, s, n, fmt, ap, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(512) + defer tls.Free(512) + var r, v1 int32 + var _ /* buf at bp+0 */ [256]uint8 + var _ /* c at bp+256 */ Tcookie4 + var _ /* f at bp+272 */ TFILE + _, _ = r, v1 + **(**Tcookie4)(__ccgo_up(bp + 256)) = Tcookie4{ + Fws: s, + Fl: n - uint64(1), + } + **(**TFILE)(__ccgo_up(bp + 272)) = TFILE{ + Fwrite: __ccgo_fp(_sw_write), + Fbuf: bp, + Fbuf_size: uint64(256), + Flock: -int32(1), + Flbf: -int32(1), + Fcookie: bp + 256, + } + if !(n != 0) { + return -int32(1) + } + r = Xvfwprintf(tls, bp+272, fmt, ap) + _sw_write(tls, bp+272, uintptr(0), uint64(0)) + if Uint64FromInt32(r) >= n { + v1 = -int32(1) + } else { + v1 = r + } + return v1 +} + +func _wstring_read(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + bp := tls.Alloc(16) + defer tls.Free(16) + var k Tsize_t + var v1, v2 uintptr + var _ /* src at bp+0 */ uintptr + _, _, _ = k, v1, v2 + **(**uintptr)(__ccgo_up(bp)) = (*TFILE)(unsafe.Pointer(f)).Fcookie + if !(**(**uintptr)(__ccgo_up(bp)) != 0) { + return uint64(0) + } + k = Xwcsrtombs(tls, (*TFILE)(unsafe.Pointer(f)).Fbuf, bp, (*TFILE)(unsafe.Pointer(f)).Fbuf_size, uintptr(0)) + if k == Uint64FromInt32(-Int32FromInt32(1)) { + v1 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Frend = v1 + (*TFILE)(unsafe.Pointer(f)).Frpos = v1 + return uint64(0) + } + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Frend = (*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr(k) + (*TFILE)(unsafe.Pointer(f)).Fcookie = **(**uintptr)(__ccgo_up(bp)) + if !(len1 != 0) || !(k != 0) { + return uint64(0) + } + v2 = f + 8 + v1 = *(*uintptr)(unsafe.Pointer(v2)) + *(*uintptr)(unsafe.Pointer(v2)) = *(*uintptr)(unsafe.Pointer(v2)) + 1 + **(**uint8)(__ccgo_up(buf)) = **(**uint8)(__ccgo_up(v1)) + return uint64(1) +} + +func Xvswscanf(tls *TLS, s uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v ap=%v, (%v:)", tls, s, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(496) + defer tls.Free(496) + var _ /* buf at bp+0 */ [256]uint8 + var _ /* f at bp+256 */ TFILE + **(**TFILE)(__ccgo_up(bp + 256)) = TFILE{ + Fread: __ccgo_fp(_wstring_read), + Fbuf: bp, + Fbuf_size: uint64(256), + Flock: -int32(1), + Fcookie: s, + } + return Xvfwscanf(tls, bp+256, fmt, ap) +} + +func X__isoc99_vswscanf(tls *TLS, s uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v ap=%v, (%v:)", tls, s, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvswscanf(tls, s, fmt, ap) +} + +func Xvwprintf(tls *TLS, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v ap=%v, (%v:)", tls, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvfwprintf(tls, uintptr(unsafe.Pointer(&X__stdout_FILE)), fmt, ap) +} + +func Xvwscanf(tls *TLS, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v ap=%v, (%v:)", tls, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvfwscanf(tls, uintptr(unsafe.Pointer(&X__stdin_FILE)), fmt, ap) +} + +func X__isoc99_vwscanf(tls *TLS, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v ap=%v, (%v:)", tls, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvwscanf(tls, fmt, ap) +} + +func Xwprintf(tls *TLS, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v va=%v, (%v:)", tls, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvwprintf(tls, fmt, ap) + _ = ap + return ret +} + +func Xwscanf(tls *TLS, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v va=%v, (%v:)", tls, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvwscanf(tls, fmt, ap) + _ = ap + return ret +} + +func X__isoc99_wscanf(tls *TLS, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v va=%v, (%v:)", tls, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwscanf(tls, fmt, va) +} + +func Xabs(tls *TLS, a int32) (r int32) { + if __ccgo_strace { + trc("tls=%v a=%v, (%v:)", tls, a, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + _ = v1 + if a > 0 { + v1 = a + } else { + v1 = -a + } + return v1 +} + +func Xatof(tls *TLS, s uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtod(tls, s, uintptr(0)) +} + +func Xatoi(tls *TLS, s uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var n, neg, v1, v2 int32 + var v4 uintptr + _, _, _, _, _ = n, neg, v1, v2, v4 + n = 0 + neg = 0 + for { + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(s))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _3 + _3: + if !(v2 != 0) { + break + } + s = s + 1 + } + switch Int32FromUint8(**(**uint8)(__ccgo_up(s))) { + case int32('-'): + neg = int32(1) + fallthrough + case int32('+'): + s = s + 1 + } + /* Compute n as a negative number to avoid overflow on INT_MIN */ + for BoolInt32(uint32(**(**uint8)(__ccgo_up(s)))-uint32('0') < uint32(10)) != 0 { + v4 = s + s = s + 1 + n = int32(10)*n - (Int32FromUint8(**(**uint8)(__ccgo_up(v4))) - int32('0')) + } + if neg != 0 { + v1 = n + } else { + v1 = -n + } + return v1 +} + +func Xatol(tls *TLS, s uintptr) (r int64) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var n, v5 int64 + var neg, v1, v2 int32 + var v4 uintptr + _, _, _, _, _, _ = n, neg, v1, v2, v4, v5 + n = 0 + neg = 0 + for { + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(s))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _3 + _3: + if !(v2 != 0) { + break + } + s = s + 1 + } + switch Int32FromUint8(**(**uint8)(__ccgo_up(s))) { + case int32('-'): + neg = int32(1) + fallthrough + case int32('+'): + s = s + 1 + } + /* Compute n as a negative number to avoid overflow on LONG_MIN */ + for BoolInt32(uint32(**(**uint8)(__ccgo_up(s)))-uint32('0') < uint32(10)) != 0 { + v4 = s + s = s + 1 + n = int64(10)*n - int64(Int32FromUint8(**(**uint8)(__ccgo_up(v4)))-Int32FromUint8('0')) + } + if neg != 0 { + v5 = n + } else { + v5 = -n + } + return v5 +} + +func Xatoll(tls *TLS, s uintptr) (r int64) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var n, v5 int64 + var neg, v1, v2 int32 + var v4 uintptr + _, _, _, _, _, _ = n, neg, v1, v2, v4, v5 + n = 0 + neg = 0 + for { + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(s))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _3 + _3: + if !(v2 != 0) { + break + } + s = s + 1 + } + switch Int32FromUint8(**(**uint8)(__ccgo_up(s))) { + case int32('-'): + neg = int32(1) + fallthrough + case int32('+'): + s = s + 1 + } + /* Compute n as a negative number to avoid overflow on LLONG_MIN */ + for BoolInt32(uint32(**(**uint8)(__ccgo_up(s)))-uint32('0') < uint32(10)) != 0 { + v4 = s + s = s + 1 + n = int64(10)*n - int64(Int32FromUint8(**(**uint8)(__ccgo_up(v4)))-Int32FromUint8('0')) + } + if neg != 0 { + v5 = n + } else { + v5 = -n + } + return v5 +} + +type t__ccgo_fp__Xbsearch_4 = func(*TLS, uintptr, uintptr) int32 + +func Xbsearch(tls *TLS, key uintptr, base uintptr, nel Tsize_t, width Tsize_t, __ccgo_fp_cmp uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v base=%v nel=%v width=%v __ccgo_fp_cmp=%v, (%v:)", tls, key, base, nel, width, __ccgo_fp_cmp, origin(2)) + defer func() { trc("-> %v", r) }() + } + var sign int32 + var try uintptr + _, _ = sign, try + for nel > uint64(0) { + try = base + uintptr(width*(nel/uint64(2))) + sign = (*(*func(*TLS, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cmp})))(tls, key, try) + if sign < 0 { + nel = nel / uint64(2) + } else { + if sign > 0 { + base = try + uintptr(width) + nel = nel - (nel/uint64(2) + uint64(1)) + } else { + return try + } + } + } + return UintptrFromInt32(0) +} + +func Xdiv(tls *TLS, num int32, den int32) (r Tdiv_t) { + if __ccgo_strace { + trc("tls=%v num=%v den=%v, (%v:)", tls, num, den, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Tdiv_t{ + Fquot: num / den, + Frem: num % den, + } +} + +func Xecvt(tls *TLS, x float64, n int32, dp uintptr, sign uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v dp=%v sign=%v, (%v:)", tls, x, n, dp, sign, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var i, j, v1 int32 + var _ /* tmp at bp+0 */ [32]uint8 + _, _, _ = i, j, v1 + if Uint32FromInt32(n)-uint32(1) > uint32(15) { + n = int32(15) + } + Xsprintf(tls, bp, __ccgo_ts+1691, VaList(bp+40, n-int32(1), x)) + v1 = BoolInt32(Int32FromUint8((**(**[32]uint8)(__ccgo_up(bp)))[0]) == Int32FromUint8('-')) + **(**int32)(__ccgo_up(sign)) = v1 + i = v1 + j = 0 + for { + if !(Int32FromUint8((**(**[32]uint8)(__ccgo_up(bp)))[i]) != int32('e')) { + break + } + _buf8[j] = (**(**[32]uint8)(__ccgo_up(bp)))[i] + goto _2 + _2: + ; + v1 = i + i = i + 1 + j = j + BoolInt32(Int32FromUint8((**(**[32]uint8)(__ccgo_up(bp)))[v1]) != int32('.')) + } + _buf8[j] = uint8(0) + **(**int32)(__ccgo_up(dp)) = Xatoi(tls, bp+uintptr(i)+uintptr(1)) + int32(1) + return uintptr(unsafe.Pointer(&_buf8)) +} + +var _buf8 [16]uint8 + +func Xfcvt(tls *TLS, x float64, n int32, dp uintptr, sign uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v dp=%v sign=%v, (%v:)", tls, x, n, dp, sign, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(1536) + defer tls.Free(1536) + var i, lz int32 + var _ /* tmp at bp+0 */ [1500]uint8 + _, _ = i, lz + if Uint32FromInt32(n) > uint32(1400) { + n = int32(1400) + } + Xsprintf(tls, bp, __ccgo_ts+1696, VaList(bp+1512, n, x)) + i = BoolInt32(Int32FromUint8((**(**[1500]uint8)(__ccgo_up(bp)))[0]) == int32('-')) + if Int32FromUint8((**(**[1500]uint8)(__ccgo_up(bp)))[i]) == int32('0') { + lz = Int32FromUint64(Xstrspn(tls, bp+uintptr(i)+uintptr(2), __ccgo_ts+1664)) + } else { + lz = -Int32FromUint64(Xstrcspn(tls, bp+uintptr(i), __ccgo_ts+558)) + } + if n <= lz { + **(**int32)(__ccgo_up(sign)) = i + **(**int32)(__ccgo_up(dp)) = int32(1) + if Uint32FromInt32(n) > uint32(14) { + n = int32(14) + } + return __ccgo_ts + 1701 + UintptrFromInt32(14) - uintptr(n) + } + return Xecvt(tls, x, n-lz, dp, sign) +} + +func Xgcvt(tls *TLS, x float64, n int32, b uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v b=%v, (%v:)", tls, x, n, b, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + Xsprintf(tls, b, __ccgo_ts+1717, VaList(bp+8, n, x)) + return b +} + +func Ximaxabs(tls *TLS, a Tintmax_t) (r Tintmax_t) { + if __ccgo_strace { + trc("tls=%v a=%v, (%v:)", tls, a, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int64 + _ = v1 + if a > 0 { + v1 = a + } else { + v1 = -a + } + return v1 +} + +func Ximaxdiv(tls *TLS, num Tintmax_t, den Tintmax_t) (r Timaxdiv_t) { + if __ccgo_strace { + trc("tls=%v num=%v den=%v, (%v:)", tls, num, den, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Timaxdiv_t{ + Fquot: num / den, + Frem: num % den, + } +} + +func Xlabs(tls *TLS, a int64) (r int64) { + if __ccgo_strace { + trc("tls=%v a=%v, (%v:)", tls, a, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int64 + _ = v1 + if a > 0 { + v1 = a + } else { + v1 = -a + } + return v1 +} + +func Xldiv(tls *TLS, num int64, den int64) (r Tldiv_t) { + if __ccgo_strace { + trc("tls=%v num=%v den=%v, (%v:)", tls, num, den, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Tldiv_t{ + Fquot: num / den, + Frem: num % den, + } +} + +func Xllabs(tls *TLS, a int64) (r int64) { + if __ccgo_strace { + trc("tls=%v a=%v, (%v:)", tls, a, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int64 + _ = v1 + if a > 0 { + v1 = a + } else { + v1 = -a + } + return v1 +} + +func Xlldiv(tls *TLS, num int64, den int64) (r Tlldiv_t) { + if __ccgo_strace { + trc("tls=%v num=%v den=%v, (%v:)", tls, num, den, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Tlldiv_t{ + Fquot: num / den, + Frem: num % den, + } +} + +type Tcmpfun = uintptr + +func _pntz(tls *TLS, p uintptr) (r1 int32) { + var r, v1 int32 + var v2 bool + _, _, _ = r, v1, v2 + r = _a_ctz_l(tls, **(**Tsize_t)(__ccgo_up(p))-uint64(1)) + if v2 = r != 0; !v2 { + v1 = Int32FromUint64(Uint64FromInt32(8)*Uint64FromInt64(8) + Uint64FromInt32(_a_ctz_l(tls, **(**Tsize_t)(__ccgo_up(p + 1*8))))) + r = v1 + } + if v2 || Uint64FromInt32(v1) != Uint64FromInt32(8)*Uint64FromInt64(8) { + return r + } + return 0 +} + +func _cycle(tls *TLS, width Tsize_t, ar uintptr, n int32) { + bp := tls.Alloc(256) + defer tls.Free(256) + var i int32 + var l Tsize_t + var v1 uint64 + var _ /* tmp at bp+0 */ [256]uint8 + _, _, _ = i, l, v1 + if n < int32(2) { + return + } + **(**uintptr)(__ccgo_up(ar + uintptr(n)*8)) = bp + for width != 0 { + if uint64(256) < width { + v1 = uint64(256) + } else { + v1 = width + } + l = v1 + Xmemcpy(tls, **(**uintptr)(__ccgo_up(ar + uintptr(n)*8)), **(**uintptr)(__ccgo_up(ar)), l) + i = 0 + for { + if !(i < n) { + break + } + Xmemcpy(tls, **(**uintptr)(__ccgo_up(ar + uintptr(i)*8)), **(**uintptr)(__ccgo_up(ar + uintptr(i+int32(1))*8)), l) + **(**uintptr)(__ccgo_up(ar + uintptr(i)*8)) += uintptr(l) + goto _2 + _2: + ; + i = i + 1 + } + width = width - l + } +} + +// C documentation +// +// /* shl() and shr() need n > 0 */ +func _shl(tls *TLS, p uintptr, n int32) { + if Uint64FromInt32(n) >= Uint64FromInt32(8)*Uint64FromInt64(8) { + n = Int32FromUint64(uint64(n) - Uint64FromInt32(8)*Uint64FromInt64(8)) + **(**Tsize_t)(__ccgo_up(p + 1*8)) = **(**Tsize_t)(__ccgo_up(p)) + **(**Tsize_t)(__ccgo_up(p)) = uint64(0) + } + **(**Tsize_t)(__ccgo_up(p + 1*8)) <<= Uint64FromInt32(n) + **(**Tsize_t)(__ccgo_up(p + 1*8)) |= **(**Tsize_t)(__ccgo_up(p)) >> (Uint64FromInt64(8)*Uint64FromInt32(8) - Uint64FromInt32(n)) + **(**Tsize_t)(__ccgo_up(p)) <<= Uint64FromInt32(n) +} + +func _shr(tls *TLS, p uintptr, n int32) { + if Uint64FromInt32(n) >= Uint64FromInt32(8)*Uint64FromInt64(8) { + n = Int32FromUint64(uint64(n) - Uint64FromInt32(8)*Uint64FromInt64(8)) + **(**Tsize_t)(__ccgo_up(p)) = **(**Tsize_t)(__ccgo_up(p + 1*8)) + **(**Tsize_t)(__ccgo_up(p + 1*8)) = uint64(0) + } + **(**Tsize_t)(__ccgo_up(p)) >>= Uint64FromInt32(n) + **(**Tsize_t)(__ccgo_up(p)) |= **(**Tsize_t)(__ccgo_up(p + 1*8)) << (Uint64FromInt64(8)*Uint64FromInt32(8) - Uint64FromInt32(n)) + **(**Tsize_t)(__ccgo_up(p + 1*8)) >>= Uint64FromInt32(n) +} + +func _sift(tls *TLS, head uintptr, width Tsize_t, __ccgo_fp_cmp Tcmpfun, arg uintptr, pshift int32, lp uintptr) { + bp := tls.Alloc(912) + defer tls.Free(912) + var i, v1 int32 + var lf, rt uintptr + var _ /* ar at bp+0 */ [113]uintptr + _, _, _, _ = i, lf, rt, v1 + i = int32(1) + (**(**[113]uintptr)(__ccgo_up(bp)))[0] = head + for pshift > int32(1) { + rt = head - uintptr(width) + lf = head - uintptr(width) - uintptr(**(**Tsize_t)(__ccgo_up(lp + uintptr(pshift-int32(2))*8))) + if (*(*func(*TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cmp})))(tls, (**(**[113]uintptr)(__ccgo_up(bp)))[0], lf, arg) >= 0 && (*(*func(*TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cmp})))(tls, (**(**[113]uintptr)(__ccgo_up(bp)))[0], rt, arg) >= 0 { + break + } + if (*(*func(*TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cmp})))(tls, lf, rt, arg) >= 0 { + v1 = i + i = i + 1 + (**(**[113]uintptr)(__ccgo_up(bp)))[v1] = lf + head = lf + pshift = pshift - int32(1) + } else { + v1 = i + i = i + 1 + (**(**[113]uintptr)(__ccgo_up(bp)))[v1] = rt + head = rt + pshift = pshift - int32(2) + } + } + _cycle(tls, width, bp, i) +} + +func _trinkle(tls *TLS, head uintptr, width Tsize_t, __ccgo_fp_cmp Tcmpfun, arg uintptr, pp uintptr, pshift int32, trusty int32, lp uintptr) { + bp := tls.Alloc(928) + defer tls.Free(928) + var i, trail, v1 int32 + var lf, rt, stepson uintptr + var _ /* ar at bp+16 */ [113]uintptr + var _ /* p at bp+0 */ [2]Tsize_t + _, _, _, _, _, _ = i, lf, rt, stepson, trail, v1 + i = int32(1) + (**(**[2]Tsize_t)(__ccgo_up(bp)))[0] = **(**Tsize_t)(__ccgo_up(pp)) + (**(**[2]Tsize_t)(__ccgo_up(bp)))[int32(1)] = **(**Tsize_t)(__ccgo_up(pp + 1*8)) + (**(**[113]uintptr)(__ccgo_up(bp + 16)))[0] = head + for (**(**[2]Tsize_t)(__ccgo_up(bp)))[0] != uint64(1) || (**(**[2]Tsize_t)(__ccgo_up(bp)))[int32(1)] != uint64(0) { + stepson = head - uintptr(**(**Tsize_t)(__ccgo_up(lp + uintptr(pshift)*8))) + if (*(*func(*TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cmp})))(tls, stepson, (**(**[113]uintptr)(__ccgo_up(bp + 16)))[0], arg) <= 0 { + break + } + if !(trusty != 0) && pshift > int32(1) { + rt = head - uintptr(width) + lf = head - uintptr(width) - uintptr(**(**Tsize_t)(__ccgo_up(lp + uintptr(pshift-int32(2))*8))) + if (*(*func(*TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cmp})))(tls, rt, stepson, arg) >= 0 || (*(*func(*TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cmp})))(tls, lf, stepson, arg) >= 0 { + break + } + } + v1 = i + i = i + 1 + (**(**[113]uintptr)(__ccgo_up(bp + 16)))[v1] = stepson + head = stepson + trail = _pntz(tls, bp) + _shr(tls, bp, trail) + pshift = pshift + trail + trusty = 0 + } + if !(trusty != 0) { + _cycle(tls, width, bp+16, i) + _sift(tls, head, width, __ccgo_fp_cmp, arg, pshift, lp) + } +} + +type t__ccgo_fp__X__qsort_r_3 = func(*TLS, uintptr, uintptr, uintptr) int32 + +func X__qsort_r(tls *TLS, base uintptr, nel Tsize_t, width Tsize_t, __ccgo_fp_cmp Tcmpfun, arg uintptr) { + if __ccgo_strace { + trc("tls=%v base=%v nel=%v width=%v __ccgo_fp_cmp=%v arg=%v, (%v:)", tls, base, nel, width, __ccgo_fp_cmp, arg, origin(2)) + } + bp := tls.Alloc(784) + defer tls.Free(784) + var head, high uintptr + var i, size, v2, v3 Tsize_t + var pshift, trail int32 + var _ /* lp at bp+0 */ [96]Tsize_t + var _ /* p at bp+768 */ [2]Tsize_t + _, _, _, _, _, _, _, _ = head, high, i, pshift, size, trail, v2, v3 + size = width * nel + **(**[2]Tsize_t)(__ccgo_up(bp + 768)) = [2]Tsize_t{ + 0: uint64(1), + } + pshift = int32(1) + if !(size != 0) { + return + } + head = base + high = head + uintptr(size) - uintptr(width) + /* Precompute Leonardo numbers, scaled by element width */ + v2 = width + (**(**[96]Tsize_t)(__ccgo_up(bp)))[int32(1)] = v2 + (**(**[96]Tsize_t)(__ccgo_up(bp)))[0] = v2 + i = Uint64FromInt32(2) + for { + v3 = (**(**[96]Tsize_t)(__ccgo_up(bp)))[i-uint64(2)] + (**(**[96]Tsize_t)(__ccgo_up(bp)))[i-uint64(1)] + width + (**(**[96]Tsize_t)(__ccgo_up(bp)))[i] = v3 + if !(v3 < size) { + break + } + goto _1 + _1: + ; + i = i + 1 + } + for head < high { + if (**(**[2]Tsize_t)(__ccgo_up(bp + 768)))[0]&uint64(3) == uint64(3) { + _sift(tls, head, width, __ccgo_fp_cmp, arg, pshift, bp) + _shr(tls, bp+768, int32(2)) + pshift = pshift + int32(2) + } else { + if (**(**[96]Tsize_t)(__ccgo_up(bp)))[pshift-int32(1)] >= Uint64FromInt64(int64(high)-int64(head)) { + _trinkle(tls, head, width, __ccgo_fp_cmp, arg, bp+768, pshift, 0, bp) + } else { + _sift(tls, head, width, __ccgo_fp_cmp, arg, pshift, bp) + } + if pshift == int32(1) { + _shl(tls, bp+768, int32(1)) + pshift = 0 + } else { + _shl(tls, bp+768, pshift-int32(1)) + pshift = int32(1) + } + } + **(**Tsize_t)(__ccgo_up(bp + 768)) |= uint64(1) + head = head + uintptr(width) + } + _trinkle(tls, head, width, __ccgo_fp_cmp, arg, bp+768, pshift, 0, bp) + for pshift != int32(1) || (**(**[2]Tsize_t)(__ccgo_up(bp + 768)))[0] != uint64(1) || (**(**[2]Tsize_t)(__ccgo_up(bp + 768)))[int32(1)] != uint64(0) { + if pshift <= int32(1) { + trail = _pntz(tls, bp+768) + _shr(tls, bp+768, trail) + pshift = pshift + trail + } else { + _shl(tls, bp+768, int32(2)) + pshift = pshift - int32(2) + **(**Tsize_t)(__ccgo_up(bp + 768)) ^= uint64(7) + _shr(tls, bp+768, int32(1)) + _trinkle(tls, head-uintptr((**(**[96]Tsize_t)(__ccgo_up(bp)))[pshift])-uintptr(width), width, __ccgo_fp_cmp, arg, bp+768, pshift+int32(1), int32(1), bp) + _shl(tls, bp+768, int32(1)) + **(**Tsize_t)(__ccgo_up(bp + 768)) |= uint64(1) + _trinkle(tls, head-uintptr(width), width, __ccgo_fp_cmp, arg, bp+768, pshift, int32(1), bp) + } + head = head - uintptr(width) + } +} + +type t__ccgo_fp__Xqsort_r_3 = func(*TLS, uintptr, uintptr, uintptr) int32 + +func Xqsort_r(tls *TLS, base uintptr, nel Tsize_t, width Tsize_t, __ccgo_fp_cmp Tcmpfun, arg uintptr) { + if __ccgo_strace { + trc("tls=%v base=%v nel=%v width=%v __ccgo_fp_cmp=%v arg=%v, (%v:)", tls, base, nel, width, __ccgo_fp_cmp, arg, origin(2)) + } + X__qsort_r(tls, base, nel, width, __ccgo_fp_cmp, arg) +} + +func _wrapper_cmp(tls *TLS, v1 uintptr, v2 uintptr, cmp uintptr) (r int32) { + return (*(*func(*TLS, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{cmp})))(tls, v1, v2) +} + +type t__ccgo_fp__Xqsort_3 = func(*TLS, uintptr, uintptr) int32 + +func Xqsort(tls *TLS, base uintptr, nel Tsize_t, width Tsize_t, __ccgo_fp_cmp Tcmpfun) { + if __ccgo_strace { + trc("tls=%v base=%v nel=%v width=%v __ccgo_fp_cmp=%v, (%v:)", tls, base, nel, width, __ccgo_fp_cmp, origin(2)) + } + X__qsort_r(tls, base, nel, width, __ccgo_fp(_wrapper_cmp), __ccgo_fp_cmp) +} + +func _strtox(tls *TLS, s uintptr, p uintptr, prec int32) (r float64) { + bp := tls.Alloc(240) + defer tls.Free(240) + var cnt Toff_t + var y float64 + var v1 uintptr + var _ /* f at bp+0 */ TFILE + _, _, _ = cnt, y, v1 + v1 = s + (*TFILE)(unsafe.Pointer(bp)).Frpos = v1 + (*TFILE)(unsafe.Pointer(bp)).Fbuf = v1 + (*TFILE)(unsafe.Pointer(bp)).Frend = uintptr(-Int32FromInt32(1)) + X__shlim(tls, bp, int64(Int32FromInt32(0))) + y = X__floatscan(tls, bp, prec, int32(1)) + cnt = (*TFILE)(unsafe.Pointer(bp)).Fshcnt + (int64((*TFILE)(unsafe.Pointer(bp)).Frpos) - int64((*TFILE)(unsafe.Pointer(bp)).Fbuf)) + if p != 0 { + if cnt != 0 { + v1 = s + uintptr(cnt) + } else { + v1 = s + } + **(**uintptr)(__ccgo_up(p)) = v1 + } + return y +} + +func Xstrtof(tls *TLS, s uintptr, p uintptr) (r float32) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + return float32(_strtox(tls, s, p, 0)) +} + +func Xstrtod(tls *TLS, s uintptr, p uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _strtox(tls, s, p, int32(1)) +} + +func Xstrtold(tls *TLS, s uintptr, p uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _strtox(tls, s, p, int32(2)) +} + +func _strtox1(tls *TLS, s uintptr, p uintptr, base int32, lim uint64) (r uint64) { + bp := tls.Alloc(240) + defer tls.Free(240) + var cnt Tsize_t + var y uint64 + var v1 uintptr + var _ /* f at bp+0 */ TFILE + _, _, _ = cnt, y, v1 + v1 = s + (*TFILE)(unsafe.Pointer(bp)).Frpos = v1 + (*TFILE)(unsafe.Pointer(bp)).Fbuf = v1 + (*TFILE)(unsafe.Pointer(bp)).Frend = uintptr(-Int32FromInt32(1)) + X__shlim(tls, bp, int64(Int32FromInt32(0))) + y = X__intscan(tls, bp, Uint32FromInt32(base), int32(1), lim) + if p != 0 { + cnt = Uint64FromInt64((*TFILE)(unsafe.Pointer(bp)).Fshcnt + (int64((*TFILE)(unsafe.Pointer(bp)).Frpos) - int64((*TFILE)(unsafe.Pointer(bp)).Fbuf))) + **(**uintptr)(__ccgo_up(p)) = s + uintptr(cnt) + } + return y +} + +func Xstrtoull(tls *TLS, s uintptr, p uintptr, base int32) (r uint64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _strtox1(tls, s, p, base, Uint64FromUint64(2)*Uint64FromInt64(0x7fffffffffffffff)+Uint64FromInt32(1)) +} + +func Xstrtoll(tls *TLS, s uintptr, p uintptr, base int32) (r int64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Int64FromUint64(_strtox1(tls, s, p, base, Uint64FromInt64(-Int64FromInt64(0x7fffffffffffffff)-Int64FromInt32(1)))) +} + +func Xstrtoul(tls *TLS, s uintptr, p uintptr, base int32) (r uint64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _strtox1(tls, s, p, base, uint64(Uint64FromUint64(2)*Uint64FromInt64(0x7fffffffffffffff)+Uint64FromInt32(1))) +} + +func Xstrtol(tls *TLS, s uintptr, p uintptr, base int32) (r int64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Int64FromUint64(_strtox1(tls, s, p, base, uint64(Uint64FromUint64(0)+Uint64FromInt64(-Int64FromInt64(0x7fffffffffffffff)-Int64FromInt32(1))))) +} + +func Xstrtoimax(tls *TLS, s uintptr, p uintptr, base int32) (r Tintmax_t) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtoll(tls, s, p, base) +} + +func Xstrtoumax(tls *TLS, s uintptr, p uintptr, base int32) (r Tuintmax_t) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtoull(tls, s, p, base) +} + +func X__strtoimax_internal(tls *TLS, s uintptr, p uintptr, base int32) (r Tintmax_t) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtoimax(tls, s, p, base) +} + +func X__strtol_internal(tls *TLS, s uintptr, p uintptr, base int32) (r int64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtol(tls, s, p, base) +} + +func X__strtoll_internal(tls *TLS, s uintptr, p uintptr, base int32) (r int64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtoll(tls, s, p, base) +} + +func X__strtoul_internal(tls *TLS, s uintptr, p uintptr, base int32) (r uint64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtoul(tls, s, p, base) +} + +func X__strtoull_internal(tls *TLS, s uintptr, p uintptr, base int32) (r uint64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtoull(tls, s, p, base) +} + +func X__strtoumax_internal(tls *TLS, s uintptr, p uintptr, base int32) (r Tuintmax_t) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtoumax(tls, s, p, base) +} + +/* This read function heavily cheats. It knows: + * (1) len will always be 1 + * (2) non-ascii characters don't matter */ + +func _do_read(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + var i Tsize_t + var wcs, v3, v4 uintptr + var v2 uint32 + _, _, _, _, _ = i, wcs, v2, v3, v4 + wcs = (*TFILE)(unsafe.Pointer(f)).Fcookie + if !(**(**Twchar_t)(__ccgo_up(wcs)) != 0) { + wcs = __ccgo_ts + 1722 + } + i = uint64(0) + for { + if !(i < (*TFILE)(unsafe.Pointer(f)).Fbuf_size && **(**Twchar_t)(__ccgo_up(wcs + uintptr(i)*4)) != 0) { + break + } + if **(**Twchar_t)(__ccgo_up(wcs + uintptr(i)*4)) < uint32(128) { + v2 = **(**Twchar_t)(__ccgo_up(wcs + uintptr(i)*4)) + } else { + v2 = uint32('@') + } + **(**uint8)(__ccgo_up((*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr(i))) = uint8(v2) + goto _1 + _1: + ; + i = i + 1 + } + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Frend = (*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr(i) + (*TFILE)(unsafe.Pointer(f)).Fcookie = wcs + uintptr(i)*4 + if i != 0 && len1 != 0 { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + **(**uint8)(__ccgo_up(buf)) = **(**uint8)(__ccgo_up(v3)) + return uint64(1) + } + return uint64(0) +} + +func _wcstox(tls *TLS, s uintptr, p uintptr, prec int32) (r float64) { + bp := tls.Alloc(304) + defer tls.Free(304) + var cnt Tsize_t + var t, v1, v2 uintptr + var y float64 + var _ /* buf at bp+0 */ [64]uint8 + var _ /* f at bp+64 */ TFILE + _, _, _, _, _ = cnt, t, y, v1, v2 + t = s + **(**TFILE)(__ccgo_up(bp + 64)) = TFILE{} + (**(**TFILE)(__ccgo_up(bp + 64))).Fflags = uint32(0) + v2 = bp + UintptrFromInt32(4) + (**(**TFILE)(__ccgo_up(bp + 64))).Fbuf = v2 + v1 = v2 + (**(**TFILE)(__ccgo_up(bp + 64))).Frend = v1 + (**(**TFILE)(__ccgo_up(bp + 64))).Frpos = v1 + (**(**TFILE)(__ccgo_up(bp + 64))).Fbuf_size = Uint64FromInt64(64) - Uint64FromInt32(4) + AtomicStorePInt32(bp+64+140, -int32(1)) + (**(**TFILE)(__ccgo_up(bp + 64))).Fread = __ccgo_fp(_do_read) + for Xiswspace(tls, **(**Twchar_t)(__ccgo_up(t))) != 0 { + t += 4 + } + (**(**TFILE)(__ccgo_up(bp + 64))).Fcookie = t + X__shlim(tls, bp+64, int64(Int32FromInt32(0))) + y = X__floatscan(tls, bp+64, prec, int32(1)) + if p != 0 { + cnt = Uint64FromInt64((*TFILE)(unsafe.Pointer(bp+64)).Fshcnt + (int64((*TFILE)(unsafe.Pointer(bp+64)).Frpos) - int64((*TFILE)(unsafe.Pointer(bp+64)).Fbuf))) + if cnt != 0 { + v1 = t + uintptr(cnt)*4 + } else { + v1 = s + } + **(**uintptr)(__ccgo_up(p)) = v1 + } + return y +} + +func Xwcstof(tls *TLS, s uintptr, p uintptr) (r float32) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + return float32(_wcstox(tls, s, p, 0)) +} + +func Xwcstod(tls *TLS, s uintptr, p uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _wcstox(tls, s, p, int32(1)) +} + +func Xwcstold(tls *TLS, s uintptr, p uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _wcstox(tls, s, p, int32(2)) +} + +/* This read function heavily cheats. It knows: + * (1) len will always be 1 + * (2) non-ascii characters don't matter */ + +func _do_read1(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + var i Tsize_t + var wcs, v3, v4 uintptr + var v2 uint32 + _, _, _, _, _ = i, wcs, v2, v3, v4 + wcs = (*TFILE)(unsafe.Pointer(f)).Fcookie + if !(**(**Twchar_t)(__ccgo_up(wcs)) != 0) { + wcs = __ccgo_ts + 1722 + } + i = uint64(0) + for { + if !(i < (*TFILE)(unsafe.Pointer(f)).Fbuf_size && **(**Twchar_t)(__ccgo_up(wcs + uintptr(i)*4)) != 0) { + break + } + if **(**Twchar_t)(__ccgo_up(wcs + uintptr(i)*4)) < uint32(128) { + v2 = **(**Twchar_t)(__ccgo_up(wcs + uintptr(i)*4)) + } else { + v2 = uint32('@') + } + **(**uint8)(__ccgo_up((*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr(i))) = uint8(v2) + goto _1 + _1: + ; + i = i + 1 + } + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Frend = (*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr(i) + (*TFILE)(unsafe.Pointer(f)).Fcookie = wcs + uintptr(i)*4 + if i != 0 && len1 != 0 { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + **(**uint8)(__ccgo_up(buf)) = **(**uint8)(__ccgo_up(v3)) + return uint64(1) + } + return uint64(0) +} + +func _wcstox1(tls *TLS, s uintptr, p uintptr, base int32, lim uint64) (r uint64) { + bp := tls.Alloc(304) + defer tls.Free(304) + var cnt Tsize_t + var t, v1, v2 uintptr + var y uint64 + var _ /* buf at bp+0 */ [64]uint8 + var _ /* f at bp+64 */ TFILE + _, _, _, _, _ = cnt, t, y, v1, v2 + t = s + **(**TFILE)(__ccgo_up(bp + 64)) = TFILE{} + (**(**TFILE)(__ccgo_up(bp + 64))).Fflags = uint32(0) + v2 = bp + UintptrFromInt32(4) + (**(**TFILE)(__ccgo_up(bp + 64))).Fbuf = v2 + v1 = v2 + (**(**TFILE)(__ccgo_up(bp + 64))).Frend = v1 + (**(**TFILE)(__ccgo_up(bp + 64))).Frpos = v1 + (**(**TFILE)(__ccgo_up(bp + 64))).Fbuf_size = Uint64FromInt64(64) - Uint64FromInt32(4) + AtomicStorePInt32(bp+64+140, -int32(1)) + (**(**TFILE)(__ccgo_up(bp + 64))).Fread = __ccgo_fp(_do_read1) + for Xiswspace(tls, **(**Twchar_t)(__ccgo_up(t))) != 0 { + t += 4 + } + (**(**TFILE)(__ccgo_up(bp + 64))).Fcookie = t + X__shlim(tls, bp+64, int64(Int32FromInt32(0))) + y = X__intscan(tls, bp+64, Uint32FromInt32(base), int32(1), lim) + if p != 0 { + cnt = Uint64FromInt64((*TFILE)(unsafe.Pointer(bp+64)).Fshcnt + (int64((*TFILE)(unsafe.Pointer(bp+64)).Frpos) - int64((*TFILE)(unsafe.Pointer(bp+64)).Fbuf))) + if cnt != 0 { + v1 = t + uintptr(cnt)*4 + } else { + v1 = s + } + **(**uintptr)(__ccgo_up(p)) = v1 + } + return y +} + +func Xwcstoull(tls *TLS, s uintptr, p uintptr, base int32) (r uint64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _wcstox1(tls, s, p, base, Uint64FromUint64(2)*Uint64FromInt64(0x7fffffffffffffff)+Uint64FromInt32(1)) +} + +func Xwcstoll(tls *TLS, s uintptr, p uintptr, base int32) (r int64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Int64FromUint64(_wcstox1(tls, s, p, base, Uint64FromInt64(-Int64FromInt64(0x7fffffffffffffff)-Int64FromInt32(1)))) +} + +func Xwcstoul(tls *TLS, s uintptr, p uintptr, base int32) (r uint64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _wcstox1(tls, s, p, base, uint64(Uint64FromUint64(2)*Uint64FromInt64(0x7fffffffffffffff)+Uint64FromInt32(1))) +} + +func Xwcstol(tls *TLS, s uintptr, p uintptr, base int32) (r int64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Int64FromUint64(_wcstox1(tls, s, p, base, uint64(Uint64FromUint64(0)+Uint64FromInt64(-Int64FromInt64(0x7fffffffffffffff)-Int64FromInt32(1))))) +} + +func Xwcstoimax(tls *TLS, s uintptr, p uintptr, base int32) (r Tintmax_t) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwcstoll(tls, s, p, base) +} + +func Xwcstoumax(tls *TLS, s uintptr, p uintptr, base int32) (r Tuintmax_t) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwcstoull(tls, s, p, base) +} + +func Xbcmp(tls *TLS, s1 uintptr, s2 uintptr, n Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v s1=%v s2=%v n=%v, (%v:)", tls, s1, s2, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xmemcmp(tls, s1, s2, n) +} + +func Xbcopy(tls *TLS, s1 uintptr, s2 uintptr, n Tsize_t) { + if __ccgo_strace { + trc("tls=%v s1=%v s2=%v n=%v, (%v:)", tls, s1, s2, n, origin(2)) + } + Xmemmove(tls, s2, s1, n) +} + +func Xbzero(tls *TLS, s uintptr, n Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v, (%v:)", tls, s, n, origin(2)) + } + Xmemset(tls, s, 0, n) +} + +func Xexplicit_bzero(tls *TLS, d uintptr, n Tsize_t) { + if __ccgo_strace { + trc("tls=%v d=%v n=%v, (%v:)", tls, d, n, origin(2)) + } + d = Xmemset(tls, d, 0, n) +} + +func Xindex(tls *TLS, s uintptr, c int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrchr(tls, s, c) +} + +const ALIGN1 = -1 +const HIGHS = 0 +const ONES = 0 + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xmemccpy(tls *TLS, dest uintptr, src uintptr, c int32, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v c=%v n=%v, (%v:)", tls, dest, src, c, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var d, s, wd, ws uintptr + var k Tsize_t + var v2 uint8 + var v3 bool + _, _, _, _, _, _, _ = d, k, s, wd, ws, v2, v3 + d = dest + s = src + c = Int32FromUint8(Uint8FromInt32(c)) + if uint64(s)&(Uint64FromInt64(8)-Uint64FromInt32(1)) == uint64(d)&(Uint64FromInt64(8)-Uint64FromInt32(1)) { + for { + if v3 = uint64(s)&(Uint64FromInt64(8)-Uint64FromInt32(1)) != 0 && n != 0; v3 { + v2 = **(**uint8)(__ccgo_up(s)) + **(**uint8)(__ccgo_up(d)) = v2 + } + if !(v3 && Int32FromUint8(v2) != c) { + break + } + goto _1 + _1: + ; + n = n - 1 + s = s + 1 + d = d + 1 + } + if uint64(s)&(Uint64FromInt64(8)-Uint64FromInt32(1)) != 0 { + goto tail + } + k = Uint64FromInt32(-Int32FromInt32(1)) / Uint64FromInt32(UCHAR_MAX) * Uint64FromInt32(c) + wd = d + ws = s + for { + if !(n >= uint64(8) && !((**(**uint64)(__ccgo_up(ws))^k-Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)) & ^(**(**uint64)(__ccgo_up(ws))^k) & (Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)*Uint64FromInt32(Int32FromInt32(UCHAR_MAX)/Int32FromInt32(2)+Int32FromInt32(1))) != 0)) { + break + } + **(**uint64)(__ccgo_up(wd)) = **(**uint64)(__ccgo_up(ws)) + goto _4 + _4: + ; + n = n - uint64(8) + ws += 8 + wd += 8 + } + d = wd + s = ws + } + for { + if v3 = n != 0; v3 { + v2 = **(**uint8)(__ccgo_up(s)) + **(**uint8)(__ccgo_up(d)) = v2 + } + if !(v3 && Int32FromUint8(v2) != c) { + break + } + goto _5 + _5: + ; + n = n - 1 + s = s + 1 + d = d + 1 + } + goto tail +tail: + ; + if n != 0 { + return d + uintptr(1) + } + return uintptr(0) +} + +const SS = 0 + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xmemchr(tls *TLS, src uintptr, c int32, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v src=%v c=%v n=%v, (%v:)", tls, src, c, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var k Tsize_t + var s, w, v4 uintptr + _, _, _, _ = k, s, w, v4 + s = src + c = Int32FromUint8(Uint8FromInt32(c)) + for { + if !(uint64(s)&(Uint64FromInt64(8)-Uint64FromInt32(1)) != 0 && n != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(s))) != c) { + break + } + goto _1 + _1: + ; + s = s + 1 + n = n - 1 + } + if n != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(s))) != c { + k = Uint64FromInt32(-Int32FromInt32(1)) / Uint64FromInt32(UCHAR_MAX) * Uint64FromInt32(c) + w = s + for { + if !(n >= Uint64FromInt64(8) && !((**(**uint64)(__ccgo_up(w))^k-Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)) & ^(**(**uint64)(__ccgo_up(w))^k) & (Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)*Uint64FromInt32(Int32FromInt32(UCHAR_MAX)/Int32FromInt32(2)+Int32FromInt32(1))) != 0)) { + break + } + goto _2 + _2: + ; + w += 8 + n = n - Uint64FromInt64(8) + } + s = w + } + for { + if !(n != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(s))) != c) { + break + } + goto _3 + _3: + ; + s = s + 1 + n = n - 1 + } + if n != 0 { + v4 = s + } else { + v4 = uintptr(0) + } + return v4 +} + +func Xmemcmp(tls *TLS, vl uintptr, vr uintptr, n Tsize_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v vl=%v vr=%v n=%v, (%v:)", tls, vl, vr, n, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var l, r uintptr + var v2 int32 + _, _, _ = l, r, v2 + l = vl + r = vr + for { + if !(n != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(l))) == Int32FromUint8(**(**uint8)(__ccgo_up(r)))) { + break + } + goto _1 + _1: + ; + n = n - 1 + l = l + 1 + r = r + 1 + } + if n != 0 { + v2 = Int32FromUint8(**(**uint8)(__ccgo_up(l))) - Int32FromUint8(**(**uint8)(__ccgo_up(r))) + } else { + v2 = 0 + } + return v2 +} + +const LS = 0 +const RS = 0 + +func Xmemcpy(tls *TLS, dest uintptr, src uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v n=%v, (%v:)", tls, dest, src, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var d, s, v2, v3 uintptr + var w, x Tuint32_t + _, _, _, _, _, _ = d, s, w, x, v2, v3 + d = dest + s = src + for { + if !(uint64(s)%uint64(4) != 0 && n != 0) { + break + } + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + goto _1 + _1: + ; + n = n - 1 + } + if uint64(d)%uint64(4) == uint64(0) { + for { + if !(n >= uint64(16)) { + break + } + **(**uint32)(__ccgo_up(d + UintptrFromInt32(0))) = **(**uint32)(__ccgo_up(s + UintptrFromInt32(0))) + **(**uint32)(__ccgo_up(d + UintptrFromInt32(4))) = **(**uint32)(__ccgo_up(s + UintptrFromInt32(4))) + **(**uint32)(__ccgo_up(d + UintptrFromInt32(8))) = **(**uint32)(__ccgo_up(s + UintptrFromInt32(8))) + **(**uint32)(__ccgo_up(d + UintptrFromInt32(12))) = **(**uint32)(__ccgo_up(s + UintptrFromInt32(12))) + goto _4 + _4: + ; + s = s + uintptr(16) + d = d + uintptr(16) + n = n - uint64(16) + } + if n&uint64(8) != 0 { + **(**uint32)(__ccgo_up(d + UintptrFromInt32(0))) = **(**uint32)(__ccgo_up(s + UintptrFromInt32(0))) + **(**uint32)(__ccgo_up(d + UintptrFromInt32(4))) = **(**uint32)(__ccgo_up(s + UintptrFromInt32(4))) + d = d + uintptr(8) + s = s + uintptr(8) + } + if n&uint64(4) != 0 { + **(**uint32)(__ccgo_up(d + UintptrFromInt32(0))) = **(**uint32)(__ccgo_up(s + UintptrFromInt32(0))) + d = d + uintptr(4) + s = s + uintptr(4) + } + if n&uint64(2) != 0 { + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + } + if n&uint64(1) != 0 { + **(**uint8)(__ccgo_up(d)) = **(**uint8)(__ccgo_up(s)) + } + return dest + } + if n >= uint64(32) { + switch uint64(d) % Uint64FromInt32(4) { + case uint64(1): + w = **(**uint32)(__ccgo_up(s)) + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + n = n - uint64(3) + for { + if !(n >= uint64(17)) { + break + } + x = **(**uint32)(__ccgo_up(s + UintptrFromInt32(1))) + **(**uint32)(__ccgo_up(d + UintptrFromInt32(0))) = w>>Int32FromInt32(24) | x<>Int32FromInt32(24) | w<>Int32FromInt32(24) | x<>Int32FromInt32(24) | w<= uint64(18)) { + break + } + x = **(**uint32)(__ccgo_up(s + UintptrFromInt32(2))) + **(**uint32)(__ccgo_up(d + UintptrFromInt32(0))) = w>>Int32FromInt32(16) | x<>Int32FromInt32(16) | w<>Int32FromInt32(16) | x<>Int32FromInt32(16) | w<= uint64(19)) { + break + } + x = **(**uint32)(__ccgo_up(s + UintptrFromInt32(3))) + **(**uint32)(__ccgo_up(d + UintptrFromInt32(0))) = w>>Int32FromInt32(8) | x<>Int32FromInt32(8) | w<>Int32FromInt32(8) | x<>Int32FromInt32(8) | w< Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(jp+k)))) { + jp = jp + k + k = uint64(1) + p = jp - ip + } else { + v2 = jp + jp = jp + 1 + ip = v2 + v2 = Uint64FromInt32(1) + p = v2 + k = v2 + } + } + } + ms = ip + p0 = p + /* And with the opposite comparison */ + ip = Uint64FromInt32(-Int32FromInt32(1)) + jp = uint64(0) + v2 = Uint64FromInt32(1) + p = v2 + k = v2 + for jp+k < l { + if Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(ip+k)))) == Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(jp+k)))) { + if k == p { + jp = jp + p + k = uint64(1) + } else { + k = k + 1 + } + } else { + if Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(ip+k)))) < Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(jp+k)))) { + jp = jp + k + k = uint64(1) + p = jp - ip + } else { + v2 = jp + jp = jp + 1 + ip = v2 + v2 = Uint64FromInt32(1) + p = v2 + k = v2 + } + } + } + if ip+uint64(1) > ms+uint64(1) { + ms = ip + } else { + p = p0 + } + /* Periodic needle? */ + if Xmemcmp(tls, n, n+uintptr(p), ms+uint64(1)) != 0 { + mem0 = uint64(0) + if ms > l-ms-uint64(1) { + v8 = ms + } else { + v8 = l - ms - uint64(1) + } + p = v8 + uint64(1) + } else { + mem0 = l - p + } + mem = uint64(0) + /* Search loop */ + for { + /* If remainder of haystack is shorter than needle, done */ + if Uint64FromInt64(int64(z)-int64(h)) < l { + return uintptr(0) + } + /* Check last byte first; advance by shift on mismatch */ + if (**(**[4]Tsize_t)(__ccgo_up(bp)))[uint64(**(**uint8)(__ccgo_up(h + uintptr(l-uint64(1)))))/(Uint64FromInt32(8)*Uint64FromInt64(8))]&(Uint64FromInt32(1)<<(uint64(**(**uint8)(__ccgo_up(h + uintptr(l-uint64(1)))))%(Uint64FromInt32(8)*Uint64FromInt64(8)))) != 0 { + k = l - shift[**(**uint8)(__ccgo_up(h + uintptr(l-uint64(1))))] + if k != 0 { + if k < mem { + k = mem + } + h = h + uintptr(k) + mem = uint64(0) + goto _9 + } + } else { + h = h + uintptr(l) + mem = uint64(0) + goto _9 + } + /* Compare right half */ + if ms+uint64(1) > mem { + v8 = ms + uint64(1) + } else { + v8 = mem + } + k = v8 + for { + if !(k < l && Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(k)))) == Int32FromUint8(**(**uint8)(__ccgo_up(h + uintptr(k))))) { + break + } + goto _10 + _10: + ; + k = k + 1 + } + if k < l { + h = h + uintptr(k-ms) + mem = uint64(0) + goto _9 + } + /* Compare left half */ + k = ms + uint64(1) + for { + if !(k > mem && Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(k-uint64(1))))) == Int32FromUint8(**(**uint8)(__ccgo_up(h + uintptr(k-uint64(1)))))) { + break + } + goto _12 + _12: + ; + k = k - 1 + } + if k <= mem { + return h + } + h = h + uintptr(p) + mem = mem0 + goto _9 + _9: + } + return r +} + +func Xmemmem(tls *TLS, h0 uintptr, k Tsize_t, n0 uintptr, l Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v h0=%v k=%v n0=%v l=%v, (%v:)", tls, h0, k, n0, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + var h, n uintptr + _, _ = h, n + h = h0 + n = n0 + /* Return immediately on empty needle */ + if !(l != 0) { + return h + } + /* Return immediately when needle is longer than haystack */ + if k < l { + return uintptr(0) + } + /* Use faster algorithms for short needles */ + h = Xmemchr(tls, h0, Int32FromUint8(**(**uint8)(__ccgo_up(n))), k) + if !(h != 0) || l == uint64(1) { + return h + } + k = k - Uint64FromInt64(int64(h)-int64(h0)) + if k < l { + return uintptr(0) + } + if l == uint64(2) { + return _twobyte_memmem(tls, h, k, n) + } + if l == uint64(3) { + return _threebyte_memmem(tls, h, k, n) + } + if l == uint64(4) { + return _fourbyte_memmem(tls, h, k, n) + } + return _twoway_memmem(tls, h, h+uintptr(k), n, l) +} + +const WS = 0 + +type TWT = uint64 + +func Xmemmove(tls *TLS, dest uintptr, src uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v n=%v, (%v:)", tls, dest, src, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var d, s, v2, v3 uintptr + var v1 Tsize_t + _, _, _, _, _ = d, s, v1, v2, v3 + d = dest + s = src + if d == s { + return d + } + if uint64(s)-uint64(d)-n <= Uint64FromInt32(-Int32FromInt32(2))*n { + return Xmemcpy(tls, d, s, n) + } + if d < s { + if uint64(s)%Uint64FromInt64(8) == uint64(d)%Uint64FromInt64(8) { + for uint64(d)%Uint64FromInt64(8) != 0 { + v1 = n + n = n - 1 + if !(v1 != 0) { + return dest + } + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + } + for { + if !(n >= Uint64FromInt64(8)) { + break + } + **(**TWT)(__ccgo_up(d)) = **(**TWT)(__ccgo_up(s)) + goto _4 + _4: + ; + n = n - Uint64FromInt64(8) + d = d + uintptr(Uint64FromInt64(8)) + s = s + uintptr(Uint64FromInt64(8)) + } + } + for { + if !(n != 0) { + break + } + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + goto _5 + _5: + ; + n = n - 1 + } + } else { + if uint64(s)%Uint64FromInt64(8) == uint64(d)%Uint64FromInt64(8) { + for uint64(d+uintptr(n))%Uint64FromInt64(8) != 0 { + v1 = n + n = n - 1 + if !(v1 != 0) { + return dest + } + **(**uint8)(__ccgo_up(d + uintptr(n))) = **(**uint8)(__ccgo_up(s + uintptr(n))) + } + for n >= Uint64FromInt64(8) { + n = n - Uint64FromInt64(8) + **(**TWT)(__ccgo_up(d + uintptr(n))) = **(**TWT)(__ccgo_up(s + uintptr(n))) + } + } + for n != 0 { + n = n - 1 + **(**uint8)(__ccgo_up(d + uintptr(n))) = **(**uint8)(__ccgo_up(s + uintptr(n))) + } + } + return dest +} + +func Xmempcpy(tls *TLS, dest uintptr, src uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v n=%v, (%v:)", tls, dest, src, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xmemcpy(tls, dest, src, n) + uintptr(n) +} + +func X__memrchr(tls *TLS, m uintptr, c int32, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v m=%v c=%v n=%v, (%v:)", tls, m, c, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var s uintptr + var v1 Tsize_t + _, _ = s, v1 + s = m + c = Int32FromUint8(Uint8FromInt32(c)) + for { + v1 = n + n = n - 1 + if !(v1 != 0) { + break + } + if Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(n)))) == c { + return s + uintptr(n) + } + } + return uintptr(0) +} + +func Xmemrchr(tls *TLS, m uintptr, c int32, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v m=%v c=%v n=%v, (%v:)", tls, m, c, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__memrchr(tls, m, c, n) +} + +func Xmemset(tls *TLS, dest uintptr, c int32, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v dest=%v c=%v n=%v, (%v:)", tls, dest, c, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var c32 uint32 + var c64 uint64 + var k Tsize_t + var s uintptr + _, _, _, _ = c32, c64, k, s + s = dest + /* Fill head and tail with minimal branching. Each + * conditional ensures that all the subsequently used + * offsets are well-defined and in the dest region. */ + if !(n != 0) { + return dest + } + **(**uint8)(__ccgo_up(s)) = Uint8FromInt32(c) + **(**uint8)(__ccgo_up(s + uintptr(n-uint64(1)))) = Uint8FromInt32(c) + if n <= uint64(2) { + return dest + } + **(**uint8)(__ccgo_up(s + 1)) = Uint8FromInt32(c) + **(**uint8)(__ccgo_up(s + 2)) = Uint8FromInt32(c) + **(**uint8)(__ccgo_up(s + uintptr(n-uint64(2)))) = Uint8FromInt32(c) + **(**uint8)(__ccgo_up(s + uintptr(n-uint64(3)))) = Uint8FromInt32(c) + if n <= uint64(6) { + return dest + } + **(**uint8)(__ccgo_up(s + 3)) = Uint8FromInt32(c) + **(**uint8)(__ccgo_up(s + uintptr(n-uint64(4)))) = Uint8FromInt32(c) + if n <= uint64(8) { + return dest + } + /* Advance pointer to align it at a 4-byte boundary, + * and truncate n to a multiple of 4. The previous code + * already took care of any head/tail that get cut off + * by the alignment. */ + k = -uint64(s) & uint64(3) + s = s + uintptr(k) + n = n - k + n = n & Uint64FromInt32(-Int32FromInt32(4)) + c32 = Uint32FromInt32(-Int32FromInt32(1)) / Uint32FromInt32(255) * uint32(Uint8FromInt32(c)) + /* In preparation to copy 32 bytes at a time, aligned on + * an 8-byte bounary, fill head/tail up to 28 bytes each. + * As in the initial byte-based head/tail fill, each + * conditional below ensures that the subsequent offsets + * are valid (e.g. !(n<=24) implies n>=28). */ + **(**uint32)(__ccgo_up(s + UintptrFromInt32(0))) = c32 + **(**uint32)(__ccgo_up(s + uintptr(n) - UintptrFromInt32(4))) = c32 + if n <= uint64(8) { + return dest + } + **(**uint32)(__ccgo_up(s + UintptrFromInt32(4))) = c32 + **(**uint32)(__ccgo_up(s + UintptrFromInt32(8))) = c32 + **(**uint32)(__ccgo_up(s + uintptr(n) - UintptrFromInt32(12))) = c32 + **(**uint32)(__ccgo_up(s + uintptr(n) - UintptrFromInt32(8))) = c32 + if n <= uint64(24) { + return dest + } + **(**uint32)(__ccgo_up(s + UintptrFromInt32(12))) = c32 + **(**uint32)(__ccgo_up(s + UintptrFromInt32(16))) = c32 + **(**uint32)(__ccgo_up(s + UintptrFromInt32(20))) = c32 + **(**uint32)(__ccgo_up(s + UintptrFromInt32(24))) = c32 + **(**uint32)(__ccgo_up(s + uintptr(n) - UintptrFromInt32(28))) = c32 + **(**uint32)(__ccgo_up(s + uintptr(n) - UintptrFromInt32(24))) = c32 + **(**uint32)(__ccgo_up(s + uintptr(n) - UintptrFromInt32(20))) = c32 + **(**uint32)(__ccgo_up(s + uintptr(n) - UintptrFromInt32(16))) = c32 + /* Align to a multiple of 8 so we can fill 64 bits at a time, + * and avoid writing the same bytes twice as much as is + * practical without introducing additional branching. */ + k = uint64(24) + uint64(s)&uint64(4) + s = s + uintptr(k) + n = n - k + /* If this loop is reached, 28 tail bytes have already been + * filled, so any remainder when n drops below 32 can be + * safely ignored. */ + c64 = uint64(c32) | uint64(c32)<= uint64(32)) { + break + } + **(**uint64)(__ccgo_up(s + UintptrFromInt32(0))) = c64 + **(**uint64)(__ccgo_up(s + UintptrFromInt32(8))) = c64 + **(**uint64)(__ccgo_up(s + UintptrFromInt32(16))) = c64 + **(**uint64)(__ccgo_up(s + UintptrFromInt32(24))) = c64 + goto _1 + _1: + ; + n = n - uint64(32) + s = s + uintptr(32) + } + return dest +} + +func Xrindex(tls *TLS, s uintptr, c int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrrchr(tls, s, c) +} + +const ALIGN2 = 0 + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func X__stpcpy(tls *TLS, d uintptr, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v, (%v:)", tls, d, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var wd, ws, v4, v5 uintptr + var v2 uint8 + _, _, _, _, _ = wd, ws, v2, v4, v5 + if uint64(s)%Uint64FromInt64(8) == uint64(d)%Uint64FromInt64(8) { + for { + if !(uint64(s)%Uint64FromInt64(8) != 0) { + break + } + v2 = **(**uint8)(__ccgo_up(s)) + **(**uint8)(__ccgo_up(d)) = v2 + if !(v2 != 0) { + return d + } + goto _1 + _1: + ; + s = s + 1 + d = d + 1 + } + wd = d + ws = s + for { + if !!((**(**uint64)(__ccgo_up(ws))-Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)) & ^**(**uint64)(__ccgo_up(ws)) & (Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)*Uint64FromInt32(Int32FromInt32(UCHAR_MAX)/Int32FromInt32(2)+Int32FromInt32(1))) != 0) { + break + } + goto _3 + _3: + ; + v4 = wd + wd += 8 + v5 = ws + ws += 8 + **(**uint64)(__ccgo_up(v4)) = **(**uint64)(__ccgo_up(v5)) + } + d = wd + s = ws + } + for { + v2 = **(**uint8)(__ccgo_up(s)) + **(**uint8)(__ccgo_up(d)) = v2 + if !(v2 != 0) { + break + } + goto _6 + _6: + ; + s = s + 1 + d = d + 1 + } + return d +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xstpcpy(tls *TLS, d uintptr, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v, (%v:)", tls, d, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__stpcpy(tls, d, s) +} + +const ALIGN3 = -1 + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func X__stpncpy(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var wd, ws uintptr + var v2 uint8 + var v3 bool + _, _, _, _ = wd, ws, v2, v3 + if uint64(s)&(Uint64FromInt64(8)-Uint64FromInt32(1)) == uint64(d)&(Uint64FromInt64(8)-Uint64FromInt32(1)) { + for { + if v3 = uint64(s)&(Uint64FromInt64(8)-Uint64FromInt32(1)) != 0 && n != 0; v3 { + v2 = **(**uint8)(__ccgo_up(s)) + **(**uint8)(__ccgo_up(d)) = v2 + } + if !(v3 && v2 != 0) { + break + } + goto _1 + _1: + ; + n = n - 1 + s = s + 1 + d = d + 1 + } + if !(n != 0) || !(**(**uint8)(__ccgo_up(s)) != 0) { + goto tail + } + wd = d + ws = s + for { + if !(n >= uint64(8) && !((**(**uint64)(__ccgo_up(ws))-Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)) & ^**(**uint64)(__ccgo_up(ws)) & (Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)*Uint64FromInt32(Int32FromInt32(UCHAR_MAX)/Int32FromInt32(2)+Int32FromInt32(1))) != 0)) { + break + } + **(**uint64)(__ccgo_up(wd)) = **(**uint64)(__ccgo_up(ws)) + goto _4 + _4: + ; + n = n - uint64(8) + ws += 8 + wd += 8 + } + d = wd + s = ws + } + for { + if v3 = n != 0; v3 { + v2 = **(**uint8)(__ccgo_up(s)) + **(**uint8)(__ccgo_up(d)) = v2 + } + if !(v3 && v2 != 0) { + break + } + goto _5 + _5: + ; + n = n - 1 + s = s + 1 + d = d + 1 + } + goto tail +tail: + ; + Xmemset(tls, d, 0, n) + return d +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xstpncpy(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__stpncpy(tls, d, s, n) +} + +func Xstrcasecmp(tls *TLS, _l uintptr, _r uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v _l=%v _r=%v, (%v:)", tls, _l, _r, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var l, r uintptr + _, _ = l, r + l = _l + r = _r + for { + if !(**(**uint8)(__ccgo_up(l)) != 0 && **(**uint8)(__ccgo_up(r)) != 0 && (Int32FromUint8(**(**uint8)(__ccgo_up(l))) == Int32FromUint8(**(**uint8)(__ccgo_up(r))) || Xtolower(tls, Int32FromUint8(**(**uint8)(__ccgo_up(l)))) == Xtolower(tls, Int32FromUint8(**(**uint8)(__ccgo_up(r)))))) { + break + } + goto _1 + _1: + ; + l = l + 1 + r = r + 1 + } + return Xtolower(tls, Int32FromUint8(**(**uint8)(__ccgo_up(l)))) - Xtolower(tls, Int32FromUint8(**(**uint8)(__ccgo_up(r)))) +} + +func X__strcasecmp_l(tls *TLS, l uintptr, r uintptr, loc Tlocale_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v loc=%v, (%v:)", tls, l, r, loc, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return Xstrcasecmp(tls, l, r) +} + +func Xstrcasecmp_l(tls *TLS, l uintptr, r uintptr, loc Tlocale_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v loc=%v, (%v:)", tls, l, r, loc, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return X__strcasecmp_l(tls, l, r, loc) +} + +func Xstrcasestr(tls *TLS, h uintptr, n uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v h=%v n=%v, (%v:)", tls, h, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l Tsize_t + _ = l + l = _strlen(tls, n) + for { + if !(**(**uint8)(__ccgo_up(h)) != 0) { + break + } + if !(Xstrncasecmp(tls, h, n, l) != 0) { + return h + } + goto _1 + _1: + ; + h = h + 1 + } + return uintptr(0) +} + +func Xstrcat(tls *TLS, dest uintptr, src uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v, (%v:)", tls, dest, src, origin(2)) + defer func() { trc("-> %v", r) }() + } + Xstrcpy(tls, dest+uintptr(_strlen(tls, dest)), src) + return dest +} + +func Xstrchr(tls *TLS, s uintptr, c int32) (r1 uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v1 uintptr + _, _ = r, v1 + r = X__strchrnul(tls, s, c) + if Int32FromUint8(**(**uint8)(__ccgo_up(r))) == Int32FromUint8(Uint8FromInt32(c)) { + v1 = r + } else { + v1 = uintptr(0) + } + return v1 +} + +const ALIGN4 = 0 + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func X__strchrnul(tls *TLS, s uintptr, c int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + var k Tsize_t + var w uintptr + _, _ = k, w + c = Int32FromUint8(Uint8FromInt32(c)) + if !(c != 0) { + return s + uintptr(_strlen(tls, s)) + } + for { + if !(uint64(s)%Uint64FromInt64(8) != 0) { + break + } + if !(**(**uint8)(__ccgo_up(s)) != 0) || Int32FromUint8(**(**uint8)(__ccgo_up(s))) == c { + return s + } + goto _1 + _1: + ; + s = s + 1 + } + k = Uint64FromInt32(-Int32FromInt32(1)) / Uint64FromInt32(UCHAR_MAX) * Uint64FromInt32(c) + w = s + for { + if !(!((**(**uint64)(__ccgo_up(w))-Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)) & ^**(**uint64)(__ccgo_up(w)) & (Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)*Uint64FromInt32(Int32FromInt32(UCHAR_MAX)/Int32FromInt32(2)+Int32FromInt32(1))) != 0) && !((**(**uint64)(__ccgo_up(w))^k-Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)) & ^(**(**uint64)(__ccgo_up(w))^k) & (Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)*Uint64FromInt32(Int32FromInt32(UCHAR_MAX)/Int32FromInt32(2)+Int32FromInt32(1))) != 0)) { + break + } + goto _2 + _2: + ; + w += 8 + } + s = w + for { + if !(**(**uint8)(__ccgo_up(s)) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(s))) != c) { + break + } + goto _3 + _3: + ; + s = s + 1 + } + return s +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xstrchrnul(tls *TLS, s uintptr, c int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__strchrnul(tls, s, c) +} + +func Xstrcmp(tls *TLS, l uintptr, r uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v, (%v:)", tls, l, r, origin(2)) + defer func() { trc("-> %v", r1) }() + } + for { + if !(Int32FromUint8(**(**uint8)(__ccgo_up(l))) == Int32FromUint8(**(**uint8)(__ccgo_up(r))) && **(**uint8)(__ccgo_up(l)) != 0) { + break + } + goto _1 + _1: + ; + l = l + 1 + r = r + 1 + } + return Int32FromUint8(**(**uint8)(__ccgo_up(l))) - Int32FromUint8(**(**uint8)(__ccgo_up(r))) +} + +func Xstrcpy(tls *TLS, dest uintptr, src uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v, (%v:)", tls, dest, src, origin(2)) + defer func() { trc("-> %v", r) }() + } + X__stpcpy(tls, dest, src) + return dest +} + +func Xstrcspn(tls *TLS, s uintptr, c uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var a, v2 uintptr + var v3 bool + var _ /* byteset at bp+0 */ [4]Tsize_t + _, _, _ = a, v2, v3 + a = s + if !(**(**uint8)(__ccgo_up(c)) != 0) || !(**(**uint8)(__ccgo_up(c + 1)) != 0) { + return Uint64FromInt64(int64(X__strchrnul(tls, s, Int32FromUint8(**(**uint8)(__ccgo_up(c))))) - int64(a)) + } + Xmemset(tls, bp, 0, uint64(32)) + for { + if v3 = **(**uint8)(__ccgo_up(c)) != 0; v3 { + v2 = bp + uintptr(uint64(**(**uint8)(__ccgo_up(c)))/(Uint64FromInt32(8)*Uint64FromInt64(8)))*8 + *(*Tsize_t)(unsafe.Pointer(v2)) |= Uint64FromInt32(1) << (uint64(**(**uint8)(__ccgo_up(c))) % (Uint64FromInt32(8) * Uint64FromInt64(8))) + } + if !(v3 && *(*Tsize_t)(unsafe.Pointer(v2)) != 0) { + break + } + goto _1 + _1: + ; + c = c + 1 + } + for { + if !(**(**uint8)(__ccgo_up(s)) != 0 && !((**(**[4]Tsize_t)(__ccgo_up(bp)))[uint64(**(**uint8)(__ccgo_up(s)))/(Uint64FromInt32(8)*Uint64FromInt64(8))]&(Uint64FromInt32(1)<<(uint64(**(**uint8)(__ccgo_up(s)))%(Uint64FromInt32(8)*Uint64FromInt64(8)))) != 0)) { + break + } + goto _4 + _4: + ; + s = s + 1 + } + return Uint64FromInt64(int64(s) - int64(a)) +} + +func Xstrdup(tls *TLS, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var d uintptr + var l Tsize_t + _, _ = d, l + l = _strlen(tls, s) + d = Xmalloc(tls, l+uint64(1)) + if !(d != 0) { + return UintptrFromInt32(0) + } + return Xmemcpy(tls, d, s, l+uint64(1)) +} + +func Xstrerror_r(tls *TLS, err int32, buf uintptr, buflen Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v err=%v buf=%v buflen=%v, (%v:)", tls, err, buf, buflen, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l Tsize_t + var msg uintptr + _, _ = l, msg + msg = Xstrerror(tls, err) + l = _strlen(tls, msg) + if l >= buflen { + if buflen != 0 { + Xmemcpy(tls, buf, msg, buflen-uint64(1)) + **(**uint8)(__ccgo_up(buf + uintptr(buflen-uint64(1)))) = uint8(0) + } + return int32(ERANGE) + } + Xmemcpy(tls, buf, msg, l+uint64(1)) + return 0 +} + +func X__xpg_strerror_r(tls *TLS, err int32, buf uintptr, buflen Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v err=%v buf=%v buflen=%v, (%v:)", tls, err, buf, buflen, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrerror_r(tls, err, buf, buflen) +} + +func Xstrlcat(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l Tsize_t + _ = l + l = Xstrnlen(tls, d, n) + if l == n { + return l + _strlen(tls, s) + } + return l + Xstrlcpy(tls, d+uintptr(l), s, n-l) +} + +const ALIGN5 = -1 + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xstrlcpy(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var d0, wd, ws uintptr + var v1 Tsize_t + var v3 uint8 + var v4 bool + _, _, _, _, _, _ = d0, wd, ws, v1, v3, v4 + d0 = d + v1 = n + n = n - 1 + if !(v1 != 0) { + goto finish + } + if uint64(s)&(Uint64FromInt64(8)-Uint64FromInt32(1)) == uint64(d)&(Uint64FromInt64(8)-Uint64FromInt32(1)) { + for { + if v4 = uint64(s)&(Uint64FromInt64(8)-Uint64FromInt32(1)) != 0 && n != 0; v4 { + v3 = **(**uint8)(__ccgo_up(s)) + **(**uint8)(__ccgo_up(d)) = v3 + } + if !(v4 && v3 != 0) { + break + } + goto _2 + _2: + ; + n = n - 1 + s = s + 1 + d = d + 1 + } + if n != 0 && **(**uint8)(__ccgo_up(s)) != 0 { + wd = d + ws = s + for { + if !(n >= uint64(8) && !((**(**uint64)(__ccgo_up(ws))-Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)) & ^**(**uint64)(__ccgo_up(ws)) & (Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)*Uint64FromInt32(Int32FromInt32(UCHAR_MAX)/Int32FromInt32(2)+Int32FromInt32(1))) != 0)) { + break + } + **(**Tsize_t)(__ccgo_up(wd)) = **(**uint64)(__ccgo_up(ws)) + goto _5 + _5: + ; + n = n - uint64(8) + ws += 8 + wd += 8 + } + d = wd + s = ws + } + } + for { + if v4 = n != 0; v4 { + v3 = **(**uint8)(__ccgo_up(s)) + **(**uint8)(__ccgo_up(d)) = v3 + } + if !(v4 && v3 != 0) { + break + } + goto _6 + _6: + ; + n = n - 1 + s = s + 1 + d = d + 1 + } + **(**uint8)(__ccgo_up(d)) = uint8(0) + goto finish +finish: + ; + return Uint64FromInt64(int64(d)-int64(d0)) + _strlen(tls, s) + return r +} + +const ALIGN6 = 0 + +func Xstrncasecmp(tls *TLS, _l uintptr, _r uintptr, n Tsize_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v _l=%v _r=%v n=%v, (%v:)", tls, _l, _r, n, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var l, r uintptr + var v1 Tsize_t + _, _, _ = l, r, v1 + l = _l + r = _r + v1 = n + n = n - 1 + if !(v1 != 0) { + return 0 + } + for { + if !(**(**uint8)(__ccgo_up(l)) != 0 && **(**uint8)(__ccgo_up(r)) != 0 && n != 0 && (Int32FromUint8(**(**uint8)(__ccgo_up(l))) == Int32FromUint8(**(**uint8)(__ccgo_up(r))) || Xtolower(tls, Int32FromUint8(**(**uint8)(__ccgo_up(l)))) == Xtolower(tls, Int32FromUint8(**(**uint8)(__ccgo_up(r)))))) { + break + } + goto _2 + _2: + ; + l = l + 1 + r = r + 1 + n = n - 1 + } + return Xtolower(tls, Int32FromUint8(**(**uint8)(__ccgo_up(l)))) - Xtolower(tls, Int32FromUint8(**(**uint8)(__ccgo_up(r)))) +} + +func X__strncasecmp_l(tls *TLS, l uintptr, r uintptr, n Tsize_t, loc Tlocale_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v n=%v loc=%v, (%v:)", tls, l, r, n, loc, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return Xstrncasecmp(tls, l, r, n) +} + +func Xstrncasecmp_l(tls *TLS, l uintptr, r uintptr, n Tsize_t, loc Tlocale_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v n=%v loc=%v, (%v:)", tls, l, r, n, loc, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return X__strncasecmp_l(tls, l, r, n, loc) +} + +func Xstrncat(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, v1, v2 uintptr + _, _, _ = a, v1, v2 + a = d + d = d + uintptr(_strlen(tls, d)) + for n != 0 && **(**uint8)(__ccgo_up(s)) != 0 { + n = n - 1 + v1 = d + d = d + 1 + v2 = s + s = s + 1 + **(**uint8)(__ccgo_up(v1)) = **(**uint8)(__ccgo_up(v2)) + } + v1 = d + d = d + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(0) + return a +} + +func Xstrncmp(tls *TLS, _l uintptr, _r uintptr, n Tsize_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v _l=%v _r=%v n=%v, (%v:)", tls, _l, _r, n, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var l, r uintptr + var v1 Tsize_t + _, _, _ = l, r, v1 + l = _l + r = _r + v1 = n + n = n - 1 + if !(v1 != 0) { + return 0 + } + for { + if !(**(**uint8)(__ccgo_up(l)) != 0 && **(**uint8)(__ccgo_up(r)) != 0 && n != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(l))) == Int32FromUint8(**(**uint8)(__ccgo_up(r)))) { + break + } + goto _2 + _2: + ; + l = l + 1 + r = r + 1 + n = n - 1 + } + return Int32FromUint8(**(**uint8)(__ccgo_up(l))) - Int32FromUint8(**(**uint8)(__ccgo_up(r))) +} + +func Xstrncpy(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + X__stpncpy(tls, d, s, n) + return d +} + +func Xstrndup(tls *TLS, s uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v, (%v:)", tls, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var d uintptr + var l Tsize_t + _, _ = d, l + l = Xstrnlen(tls, s, n) + d = Xmalloc(tls, l+uint64(1)) + if !(d != 0) { + return UintptrFromInt32(0) + } + Xmemcpy(tls, d, s, l) + **(**uint8)(__ccgo_up(d + uintptr(l))) = uint8(0) + return d +} + +func Xstrnlen(tls *TLS, s uintptr, n Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v, (%v:)", tls, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var p uintptr + var v1 uint64 + _, _ = p, v1 + p = Xmemchr(tls, s, 0, n) + if p != 0 { + v1 = Uint64FromInt64(int64(p) - int64(s)) + } else { + v1 = n + } + return v1 +} + +func Xstrpbrk(tls *TLS, s uintptr, b uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v b=%v, (%v:)", tls, s, b, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 uintptr + _ = v1 + s = s + uintptr(Xstrcspn(tls, s, b)) + if **(**uint8)(__ccgo_up(s)) != 0 { + v1 = s + } else { + v1 = uintptr(0) + } + return v1 +} + +func Xstrrchr(tls *TLS, s uintptr, c int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__memrchr(tls, s, c, _strlen(tls, s)+uint64(1)) +} + +func Xstrsep(tls *TLS, str uintptr, sep uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v str=%v sep=%v, (%v:)", tls, str, sep, origin(2)) + defer func() { trc("-> %v", r) }() + } + var end, s, v1 uintptr + _, _, _ = end, s, v1 + s = **(**uintptr)(__ccgo_up(str)) + if !(s != 0) { + return UintptrFromInt32(0) + } + end = s + uintptr(Xstrcspn(tls, s, sep)) + if **(**uint8)(__ccgo_up(end)) != 0 { + v1 = end + end = end + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(0) + } else { + end = uintptr(0) + } + **(**uintptr)(__ccgo_up(str)) = end + return s +} + +var _strings = [671]uint8{'U', 'n', 'k', 'n', 'o', 'w', 'n', ' ', 's', 'i', 'g', 'n', 'a', 'l', 0, 'H', 'a', 'n', 'g', 'u', 'p', 0, 'I', 'n', 't', 'e', 'r', 'r', 'u', 'p', 't', 0, 'Q', 'u', 'i', 't', 0, 'I', 'l', 'l', 'e', 'g', 'a', 'l', ' ', 'i', 'n', 's', 't', 'r', 'u', 'c', 't', 'i', 'o', 'n', 0, 'T', 'r', 'a', 'c', 'e', '/', 'b', 'r', 'e', 'a', 'k', 'p', 'o', 'i', 'n', 't', ' ', 't', 'r', 'a', 'p', 0, 'A', 'b', 'o', 'r', 't', 'e', 'd', 0, 'B', 'u', 's', ' ', 'e', 'r', 'r', 'o', 'r', 0, 'A', 'r', 'i', 't', 'h', 'm', 'e', 't', 'i', 'c', ' ', 'e', 'x', 'c', 'e', 'p', 't', 'i', 'o', 'n', 0, 'K', 'i', 'l', 'l', 'e', 'd', 0, 'U', 's', 'e', 'r', ' ', 'd', 'e', 'f', 'i', 'n', 'e', 'd', ' ', 's', 'i', 'g', 'n', 'a', 'l', ' ', '1', 0, 'S', 'e', 'g', 'm', 'e', 'n', 't', 'a', 't', 'i', 'o', 'n', ' ', 'f', 'a', 'u', 'l', 't', 0, 'U', 's', 'e', 'r', ' ', 'd', 'e', 'f', 'i', 'n', 'e', 'd', ' ', 's', 'i', 'g', 'n', 'a', 'l', ' ', '2', 0, 'B', 'r', 'o', 'k', 'e', 'n', ' ', 'p', 'i', 'p', 'e', 0, 'A', 'l', 'a', 'r', 'm', ' ', 'c', 'l', 'o', 'c', 'k', 0, 'T', 'e', 'r', 'm', 'i', 'n', 'a', 't', 'e', 'd', 0, 'S', 't', 'a', 'c', 'k', ' ', 'f', 'a', 'u', 'l', 't', 0, 'C', 'h', 'i', 'l', 'd', ' ', 'p', 'r', 'o', 'c', 'e', 's', 's', ' ', 's', 't', 'a', 't', 'u', 's', 0, 'C', 'o', 'n', 't', 'i', 'n', 'u', 'e', 'd', 0, 'S', 't', 'o', 'p', 'p', 'e', 'd', ' ', '(', 's', 'i', 'g', 'n', 'a', 'l', ')', 0, 'S', 't', 'o', 'p', 'p', 'e', 'd', 0, 'S', 't', 'o', 'p', 'p', 'e', 'd', ' ', '(', 't', 't', 'y', ' ', 'i', 'n', 'p', 'u', 't', ')', 0, 'S', 't', 'o', 'p', 'p', 'e', 'd', ' ', '(', 't', 't', 'y', ' ', 'o', 'u', 't', 'p', 'u', 't', ')', 0, 'U', 'r', 'g', 'e', 'n', 't', ' ', 'I', '/', 'O', ' ', 'c', 'o', 'n', 'd', 'i', 't', 'i', 'o', 'n', 0, 'C', 'P', 'U', ' ', 't', 'i', 'm', 'e', ' ', 'l', 'i', 'm', 'i', 't', ' ', 'e', 'x', 'c', 'e', 'e', 'd', 'e', 'd', 0, 'F', 'i', 'l', 'e', ' ', 's', 'i', 'z', 'e', ' ', 'l', 'i', 'm', 'i', 't', ' ', 'e', 'x', 'c', 'e', 'e', 'd', 'e', 'd', 0, 'V', 'i', 'r', 't', 'u', 'a', 'l', ' ', 't', 'i', 'm', 'e', 'r', ' ', 'e', 'x', 'p', 'i', 'r', 'e', 'd', 0, 'P', 'r', 'o', 'f', 'i', 'l', 'i', 'n', 'g', ' ', 't', 'i', 'm', 'e', 'r', ' ', 'e', 'x', 'p', 'i', 'r', 'e', 'd', 0, 'W', 'i', 'n', 'd', 'o', 'w', ' ', 'c', 'h', 'a', 'n', 'g', 'e', 'd', 0, 'I', '/', 'O', ' ', 'p', 'o', 's', 's', 'i', 'b', 'l', 'e', 0, 'P', 'o', 'w', 'e', 'r', ' ', 'f', 'a', 'i', 'l', 'u', 'r', 'e', 0, 'B', 'a', 'd', ' ', 's', 'y', 's', 't', 'e', 'm', ' ', 'c', 'a', 'l', 'l', 0, 'R', 'T', '3', '2', 0, 'R', 'T', '3', '3', 0, 'R', 'T', '3', '4', 0, 'R', 'T', '3', '5', 0, 'R', 'T', '3', '6', 0, 'R', 'T', '3', '7', 0, 'R', 'T', '3', '8', 0, 'R', 'T', '3', '9', 0, 'R', 'T', '4', '0', 0, 'R', 'T', '4', '1', 0, 'R', 'T', '4', '2', 0, 'R', 'T', '4', '3', 0, 'R', 'T', '4', '4', 0, 'R', 'T', '4', '5', 0, 'R', 'T', '4', '6', 0, 'R', 'T', '4', '7', 0, 'R', 'T', '4', '8', 0, 'R', 'T', '4', '9', 0, 'R', 'T', '5', '0', 0, 'R', 'T', '5', '1', 0, 'R', 'T', '5', '2', 0, 'R', 'T', '5', '3', 0, 'R', 'T', '5', '4', 0, 'R', 'T', '5', '5', 0, 'R', 'T', '5', '6', 0, 'R', 'T', '5', '7', 0, 'R', 'T', '5', '8', 0, 'R', 'T', '5', '9', 0, 'R', 'T', '6', '0', 0, 'R', 'T', '6', '1', 0, 'R', 'T', '6', '2', 0, 'R', 'T', '6', '3', 0, 'R', 'T', '6', '4'} + +func Xstrsignal(tls *TLS, signum int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v signum=%v, (%v:)", tls, signum, origin(2)) + defer func() { trc("-> %v", r) }() + } + var s uintptr + var v2 int32 + _, _ = s, v2 + s = uintptr(unsafe.Pointer(&_strings)) + signum = signum + if Uint32FromInt32(signum)-uint32(1) >= Uint32FromInt32(Int32FromInt32(_NSIG)-Int32FromInt32(1)) { + signum = 0 + } + for { + v2 = signum + signum = signum - 1 + if !(v2 != 0) { + break + } + for { + if !(**(**uint8)(__ccgo_up(s)) != 0) { + break + } + goto _3 + _3: + ; + s = s + 1 + } + goto _1 + _1: + ; + s = s + 1 + } + return X__lctrans_cur(tls, s) +} + +func Xstrspn(tls *TLS, s uintptr, c uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var a, v3 uintptr + var v4 bool + var _ /* byteset at bp+0 */ [4]Tsize_t + _, _, _ = a, v3, v4 + a = s + **(**[4]Tsize_t)(__ccgo_up(bp)) = [4]Tsize_t{} + if !(**(**uint8)(__ccgo_up(c)) != 0) { + return uint64(0) + } + if !(**(**uint8)(__ccgo_up(c + 1)) != 0) { + for { + if !(Int32FromUint8(**(**uint8)(__ccgo_up(s))) == Int32FromUint8(**(**uint8)(__ccgo_up(c)))) { + break + } + goto _1 + _1: + ; + s = s + 1 + } + return Uint64FromInt64(int64(s) - int64(a)) + } + for { + if v4 = **(**uint8)(__ccgo_up(c)) != 0; v4 { + v3 = bp + uintptr(uint64(**(**uint8)(__ccgo_up(c)))/(Uint64FromInt32(8)*Uint64FromInt64(8)))*8 + *(*Tsize_t)(unsafe.Pointer(v3)) |= Uint64FromInt32(1) << (uint64(**(**uint8)(__ccgo_up(c))) % (Uint64FromInt32(8) * Uint64FromInt64(8))) + } + if !(v4 && *(*Tsize_t)(unsafe.Pointer(v3)) != 0) { + break + } + goto _2 + _2: + ; + c = c + 1 + } + for { + if !(**(**uint8)(__ccgo_up(s)) != 0 && (**(**[4]Tsize_t)(__ccgo_up(bp)))[uint64(**(**uint8)(__ccgo_up(s)))/(Uint64FromInt32(8)*Uint64FromInt64(8))]&(Uint64FromInt32(1)<<(uint64(**(**uint8)(__ccgo_up(s)))%(Uint64FromInt32(8)*Uint64FromInt64(8)))) != 0) { + break + } + goto _5 + _5: + ; + s = s + 1 + } + return Uint64FromInt64(int64(s) - int64(a)) +} + +func _twobyte_strstr(tls *TLS, h uintptr, n uintptr) (r uintptr) { + var hw, nw Tuint16_t + var v2 uintptr + _, _, _ = hw, nw, v2 + nw = Uint16FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(n)))< Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(jp+k)))) { + jp = jp + k + k = uint64(1) + p = jp - ip + } else { + v2 = jp + jp = jp + 1 + ip = v2 + v2 = Uint64FromInt32(1) + p = v2 + k = v2 + } + } + } + ms = ip + p0 = p + /* And with the opposite comparison */ + ip = Uint64FromInt32(-Int32FromInt32(1)) + jp = uint64(0) + v2 = Uint64FromInt32(1) + p = v2 + k = v2 + for jp+k < l { + if Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(ip+k)))) == Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(jp+k)))) { + if k == p { + jp = jp + p + k = uint64(1) + } else { + k = k + 1 + } + } else { + if Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(ip+k)))) < Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(jp+k)))) { + jp = jp + k + k = uint64(1) + p = jp - ip + } else { + v2 = jp + jp = jp + 1 + ip = v2 + v2 = Uint64FromInt32(1) + p = v2 + k = v2 + } + } + } + if ip+uint64(1) > ms+uint64(1) { + ms = ip + } else { + p = p0 + } + /* Periodic needle? */ + if Xmemcmp(tls, n, n+uintptr(p), ms+uint64(1)) != 0 { + mem0 = uint64(0) + if ms > l-ms-uint64(1) { + v8 = ms + } else { + v8 = l - ms - uint64(1) + } + p = v8 + uint64(1) + } else { + mem0 = l - p + } + mem = uint64(0) + /* Initialize incremental end-of-haystack pointer */ + z = h + /* Search loop */ + for { + /* Update incremental end-of-haystack pointer */ + if Uint64FromInt64(int64(z)-int64(h)) < l { + /* Fast estimate for MAX(l,63) */ + grow = l | uint64(63) + z2 = Xmemchr(tls, z, 0, grow) + if z2 != 0 { + z = z2 + if Uint64FromInt64(int64(z)-int64(h)) < l { + return uintptr(0) + } + } else { + z = z + uintptr(grow) + } + } + /* Check last byte first; advance by shift on mismatch */ + if (**(**[4]Tsize_t)(__ccgo_up(bp)))[uint64(**(**uint8)(__ccgo_up(h + uintptr(l-uint64(1)))))/(Uint64FromInt32(8)*Uint64FromInt64(8))]&(Uint64FromInt32(1)<<(uint64(**(**uint8)(__ccgo_up(h + uintptr(l-uint64(1)))))%(Uint64FromInt32(8)*Uint64FromInt64(8)))) != 0 { + k = l - shift[**(**uint8)(__ccgo_up(h + uintptr(l-uint64(1))))] + if k != 0 { + if k < mem { + k = mem + } + h = h + uintptr(k) + mem = uint64(0) + goto _9 + } + } else { + h = h + uintptr(l) + mem = uint64(0) + goto _9 + } + /* Compare right half */ + if ms+uint64(1) > mem { + v8 = ms + uint64(1) + } else { + v8 = mem + } + k = v8 + for { + if !(**(**uint8)(__ccgo_up(n + uintptr(k))) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(k)))) == Int32FromUint8(**(**uint8)(__ccgo_up(h + uintptr(k))))) { + break + } + goto _10 + _10: + ; + k = k + 1 + } + if **(**uint8)(__ccgo_up(n + uintptr(k))) != 0 { + h = h + uintptr(k-ms) + mem = uint64(0) + goto _9 + } + /* Compare left half */ + k = ms + uint64(1) + for { + if !(k > mem && Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(k-uint64(1))))) == Int32FromUint8(**(**uint8)(__ccgo_up(h + uintptr(k-uint64(1)))))) { + break + } + goto _12 + _12: + ; + k = k - 1 + } + if k <= mem { + return h + } + h = h + uintptr(p) + mem = mem0 + goto _9 + _9: + } + return r +} + +func Xstrstr(tls *TLS, h uintptr, n uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v h=%v n=%v, (%v:)", tls, h, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + /* Return immediately on empty needle */ + if !(**(**uint8)(__ccgo_up(n)) != 0) { + return h + } + /* Use faster algorithms for short needles */ + h = Xstrchr(tls, h, Int32FromUint8(**(**uint8)(__ccgo_up(n)))) + if !(h != 0) || !(**(**uint8)(__ccgo_up(n + 1)) != 0) { + return h + } + if !(**(**uint8)(__ccgo_up(h + 1)) != 0) { + return uintptr(0) + } + if !(**(**uint8)(__ccgo_up(n + 2)) != 0) { + return _twobyte_strstr(tls, h, n) + } + if !(**(**uint8)(__ccgo_up(h + 2)) != 0) { + return uintptr(0) + } + if !(**(**uint8)(__ccgo_up(n + 3)) != 0) { + return _threebyte_strstr(tls, h, n) + } + if !(**(**uint8)(__ccgo_up(h + 3)) != 0) { + return uintptr(0) + } + if !(**(**uint8)(__ccgo_up(n + 4)) != 0) { + return _fourbyte_strstr(tls, h, n) + } + return _twoway_strstr(tls, h, n) +} + +func Xstrtok(tls *TLS, s uintptr, sep uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v sep=%v, (%v:)", tls, s, sep, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 uintptr + var v2 bool + _, _ = v1, v2 + if v2 = !(s != 0); v2 { + v1 = _p2 + s = v1 + } + if v2 && !(v1 != 0) { + return UintptrFromInt32(0) + } + s = s + uintptr(Xstrspn(tls, s, sep)) + if !(**(**uint8)(__ccgo_up(s)) != 0) { + v1 = UintptrFromInt32(0) + _p2 = v1 + return v1 + } + _p2 = s + uintptr(Xstrcspn(tls, s, sep)) + if **(**uint8)(__ccgo_up(_p2)) != 0 { + v1 = _p2 + _p2 = _p2 + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(0) + } else { + _p2 = uintptr(0) + } + return s +} + +var _p2 uintptr + +func Xstrtok_r(tls *TLS, s uintptr, sep uintptr, p uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v sep=%v p=%v, (%v:)", tls, s, sep, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1, v3 uintptr + var v2 bool + _, _, _ = v1, v2, v3 + if v2 = !(s != 0); v2 { + v1 = **(**uintptr)(__ccgo_up(p)) + s = v1 + } + if v2 && !(v1 != 0) { + return UintptrFromInt32(0) + } + s = s + uintptr(Xstrspn(tls, s, sep)) + if !(**(**uint8)(__ccgo_up(s)) != 0) { + v1 = UintptrFromInt32(0) + **(**uintptr)(__ccgo_up(p)) = v1 + return v1 + } + **(**uintptr)(__ccgo_up(p)) = s + uintptr(Xstrcspn(tls, s, sep)) + if **(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(p)))) != 0 { + v3 = p + v1 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(0) + } else { + **(**uintptr)(__ccgo_up(p)) = uintptr(0) + } + return s +} + +func Xstrverscmp(tls *TLS, l0 uintptr, r0 uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l0=%v r0=%v, (%v:)", tls, l0, r0, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var c, z int32 + var dp, i, j, v2 Tsize_t + var l, r uintptr + _, _, _, _, _, _, _, _ = c, dp, i, j, l, r, z, v2 + l = l0 + r = r0 + z = int32(1) + /* Find maximal matching prefix and track its maximal digit + * suffix and whether those digits are all zeros. */ + v2 = Uint64FromInt32(0) + i = v2 + dp = v2 + for { + if !(Int32FromUint8(**(**uint8)(__ccgo_up(l + uintptr(i)))) == Int32FromUint8(**(**uint8)(__ccgo_up(r + uintptr(i))))) { + break + } + c = Int32FromUint8(**(**uint8)(__ccgo_up(l + uintptr(i)))) + if !(c != 0) { + return 0 + } + if !(BoolInt32(Uint32FromInt32(c)-Uint32FromUint8('0') < Uint32FromInt32(10)) != 0) { + dp = i + uint64(1) + z = Int32FromInt32(1) + } else { + if c != int32('0') { + z = 0 + } + } + goto _1 + _1: + ; + i = i + 1 + } + if Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(l + uintptr(dp))))-int32('1')) < uint32(9) && Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(r + uintptr(dp))))-int32('1')) < uint32(9) { + /* If we're looking at non-degenerate digit sequences starting + * with nonzero digits, longest digit string is greater. */ + j = i + for { + if !(BoolInt32(uint32(**(**uint8)(__ccgo_up(l + uintptr(j))))-uint32('0') < uint32(10)) != 0) { + break + } + if !(BoolInt32(uint32(**(**uint8)(__ccgo_up(r + uintptr(j))))-Uint32FromUint8('0') < Uint32FromInt32(10)) != 0) { + return int32(1) + } + goto _3 + _3: + ; + j = j + 1 + } + if BoolInt32(uint32(**(**uint8)(__ccgo_up(r + uintptr(j))))-uint32('0') < uint32(10)) != 0 { + return -int32(1) + } + } else { + if z != 0 && dp < i && (BoolInt32(uint32(**(**uint8)(__ccgo_up(l + uintptr(i))))-uint32('0') < uint32(10)) != 0 || BoolInt32(uint32(**(**uint8)(__ccgo_up(r + uintptr(i))))-uint32('0') < uint32(10)) != 0) { + /* Otherwise, if common prefix of digit sequence is + * all zeros, digits order less than non-digits. */ + return Int32FromUint8(Uint8FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(l + uintptr(i))))-Int32FromUint8('0'))) - Int32FromUint8(Uint8FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(r + uintptr(i))))-Int32FromUint8('0'))) + } + } + return Int32FromUint8(**(**uint8)(__ccgo_up(l + uintptr(i)))) - Int32FromUint8(**(**uint8)(__ccgo_up(r + uintptr(i)))) +} + +func Xswab(tls *TLS, _src uintptr, _dest uintptr, n Tssize_t) { + if __ccgo_strace { + trc("tls=%v _src=%v _dest=%v n=%v, (%v:)", tls, _src, _dest, n, origin(2)) + } + var dest, src uintptr + _, _ = dest, src + src = _src + dest = _dest + for { + if !(n > int64(1)) { + break + } + **(**uint8)(__ccgo_up(dest)) = **(**uint8)(__ccgo_up(src + 1)) + **(**uint8)(__ccgo_up(dest + 1)) = **(**uint8)(__ccgo_up(src)) + dest = dest + uintptr(2) + src = src + uintptr(2) + goto _1 + _1: + ; + n = n - int64(2) + } +} + +func Xwcpcpy(tls *TLS, d uintptr, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v, (%v:)", tls, d, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwcscpy(tls, d, s) + uintptr(Xwcslen(tls, s))*4 +} + +func Xwcpncpy(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwcsncpy(tls, d, s, n) + uintptr(Xwcsnlen(tls, s, n))*4 +} + +func Xwcscasecmp(tls *TLS, l uintptr, r uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v, (%v:)", tls, l, r, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return Xwcsncasecmp(tls, l, r, Uint64FromInt32(-Int32FromInt32(1))) +} + +func Xwcscasecmp_l(tls *TLS, l uintptr, r uintptr, locale Tlocale_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v locale=%v, (%v:)", tls, l, r, locale, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return Xwcscasecmp(tls, l, r) +} + +func Xwcscat(tls *TLS, dest uintptr, src uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v, (%v:)", tls, dest, src, origin(2)) + defer func() { trc("-> %v", r) }() + } + Xwcscpy(tls, dest+uintptr(Xwcslen(tls, dest))*4, src) + return dest +} + +func Xwcschr(tls *TLS, s uintptr, c Twchar_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v2 uintptr + _ = v2 + if !(c != 0) { + return s + uintptr(Xwcslen(tls, s))*4 + } + for { + if !(**(**Twchar_t)(__ccgo_up(s)) != 0 && **(**Twchar_t)(__ccgo_up(s)) != c) { + break + } + goto _1 + _1: + ; + s += 4 + } + if **(**Twchar_t)(__ccgo_up(s)) != 0 { + v2 = s + } else { + v2 = uintptr(0) + } + return v2 +} + +func Xwcscmp(tls *TLS, l uintptr, r uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v, (%v:)", tls, l, r, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var v2 int32 + _ = v2 + for { + if !(**(**Twchar_t)(__ccgo_up(l)) == **(**Twchar_t)(__ccgo_up(r)) && **(**Twchar_t)(__ccgo_up(l)) != 0 && **(**Twchar_t)(__ccgo_up(r)) != 0) { + break + } + goto _1 + _1: + ; + l += 4 + r += 4 + } + if **(**Twchar_t)(__ccgo_up(l)) < **(**Twchar_t)(__ccgo_up(r)) { + v2 = -int32(1) + } else { + v2 = BoolInt32(**(**Twchar_t)(__ccgo_up(l)) > **(**Twchar_t)(__ccgo_up(r))) + } + return v2 +} + +func Xwcscpy(tls *TLS, d uintptr, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v, (%v:)", tls, d, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, v2, v3 uintptr + var v1 Twchar_t + _, _, _, _ = a, v1, v2, v3 + a = d + for { + v2 = s + s += 4 + v1 = **(**Twchar_t)(__ccgo_up(v2)) + v3 = d + d += 4 + **(**Twchar_t)(__ccgo_up(v3)) = v1 + if !(v1 != 0) { + break + } + } + return a +} + +func Xwcscspn(tls *TLS, s uintptr, c uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, v2, v3 uintptr + var v1 uint64 + _, _, _, _ = a, v1, v2, v3 + if !(**(**Twchar_t)(__ccgo_up(c)) != 0) { + return Xwcslen(tls, s) + } + if !(**(**Twchar_t)(__ccgo_up(c + 1*4)) != 0) { + v3 = s + a = v3 + v2 = Xwcschr(tls, v3, **(**Twchar_t)(__ccgo_up(c))) + s = v2 + if v2 != 0 { + v1 = Uint64FromInt64((int64(s) - int64(a)) / 4) + } else { + v1 = Xwcslen(tls, a) + } + return v1 + } + a = s + for { + if !(**(**Twchar_t)(__ccgo_up(s)) != 0 && !(Xwcschr(tls, c, **(**Twchar_t)(__ccgo_up(s))) != 0)) { + break + } + goto _4 + _4: + ; + s += 4 + } + return Uint64FromInt64((int64(s) - int64(a)) / 4) +} + +func Xwcsdup(tls *TLS, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var d uintptr + var l Tsize_t + _, _ = d, l + l = Xwcslen(tls, s) + d = Xmalloc(tls, (l+uint64(1))*uint64(4)) + if !(d != 0) { + return UintptrFromInt32(0) + } + return Xwmemcpy(tls, d, s, l+uint64(1)) +} + +func Xwcslen(tls *TLS, s uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a uintptr + _ = a + a = s + for { + if !(**(**Twchar_t)(__ccgo_up(s)) != 0) { + break + } + goto _1 + _1: + ; + s += 4 + } + return Uint64FromInt64((int64(s) - int64(a)) / 4) +} + +func Xwcsncasecmp(tls *TLS, l uintptr, r uintptr, n Tsize_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v n=%v, (%v:)", tls, l, r, n, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var v1 Tsize_t + _ = v1 + v1 = n + n = n - 1 + if !(v1 != 0) { + return 0 + } + for { + if !(**(**Twchar_t)(__ccgo_up(l)) != 0 && **(**Twchar_t)(__ccgo_up(r)) != 0 && n != 0 && (**(**Twchar_t)(__ccgo_up(l)) == **(**Twchar_t)(__ccgo_up(r)) || Xtowlower(tls, **(**Twchar_t)(__ccgo_up(l))) == Xtowlower(tls, **(**Twchar_t)(__ccgo_up(r))))) { + break + } + goto _2 + _2: + ; + l += 4 + r += 4 + n = n - 1 + } + return Int32FromUint32(Xtowlower(tls, **(**Twchar_t)(__ccgo_up(l))) - Xtowlower(tls, **(**Twchar_t)(__ccgo_up(r)))) +} + +func Xwcsncasecmp_l(tls *TLS, l uintptr, r uintptr, n Tsize_t, locale Tlocale_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v n=%v locale=%v, (%v:)", tls, l, r, n, locale, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return Xwcsncasecmp(tls, l, r, n) +} + +func Xwcsncat(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, v1, v2 uintptr + _, _, _ = a, v1, v2 + a = d + d = d + uintptr(Xwcslen(tls, d))*4 + for n != 0 && **(**Twchar_t)(__ccgo_up(s)) != 0 { + n = n - 1 + v1 = d + d += 4 + v2 = s + s += 4 + **(**Twchar_t)(__ccgo_up(v1)) = **(**Twchar_t)(__ccgo_up(v2)) + } + v1 = d + d += 4 + **(**Twchar_t)(__ccgo_up(v1)) = uint32(0) + return a +} + +func Xwcsncmp(tls *TLS, l uintptr, r uintptr, n Tsize_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v n=%v, (%v:)", tls, l, r, n, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var v2, v3 int32 + _, _ = v2, v3 + for { + if !(n != 0 && **(**Twchar_t)(__ccgo_up(l)) == **(**Twchar_t)(__ccgo_up(r)) && **(**Twchar_t)(__ccgo_up(l)) != 0 && **(**Twchar_t)(__ccgo_up(r)) != 0) { + break + } + goto _1 + _1: + ; + n = n - 1 + l += 4 + r += 4 + } + if n != 0 { + if **(**Twchar_t)(__ccgo_up(l)) < **(**Twchar_t)(__ccgo_up(r)) { + v3 = -int32(1) + } else { + v3 = BoolInt32(**(**Twchar_t)(__ccgo_up(l)) > **(**Twchar_t)(__ccgo_up(r))) + } + v2 = v3 + } else { + v2 = 0 + } + return v2 +} + +func Xwcsncpy(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, v1, v2 uintptr + _, _, _ = a, v1, v2 + a = d + for n != 0 && **(**Twchar_t)(__ccgo_up(s)) != 0 { + n = n - 1 + v1 = d + d += 4 + v2 = s + s += 4 + **(**Twchar_t)(__ccgo_up(v1)) = **(**Twchar_t)(__ccgo_up(v2)) + } + Xwmemset(tls, d, uint32(0), n) + return a +} + +func Xwcsnlen(tls *TLS, s uintptr, n Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v, (%v:)", tls, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var z uintptr + _ = z + z = Xwmemchr(tls, s, uint32(0), n) + if z != 0 { + n = Uint64FromInt64((int64(z) - int64(s)) / 4) + } + return n +} + +func Xwcspbrk(tls *TLS, s uintptr, b uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v b=%v, (%v:)", tls, s, b, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 uintptr + _ = v1 + s = s + uintptr(Xwcscspn(tls, s, b))*4 + if **(**Twchar_t)(__ccgo_up(s)) != 0 { + v1 = s + } else { + v1 = UintptrFromInt32(0) + } + return v1 +} + +func Xwcsrchr(tls *TLS, s uintptr, c Twchar_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + var p, v2 uintptr + _, _ = p, v2 + p = s + uintptr(Xwcslen(tls, s))*4 + for { + if !(p >= s && **(**Twchar_t)(__ccgo_up(p)) != c) { + break + } + goto _1 + _1: + ; + p -= 4 + } + if p >= s { + v2 = p + } else { + v2 = uintptr(0) + } + return v2 +} + +func Xwcsspn(tls *TLS, s uintptr, c uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a uintptr + _ = a + a = s + for { + if !(**(**Twchar_t)(__ccgo_up(s)) != 0 && Xwcschr(tls, c, **(**Twchar_t)(__ccgo_up(s))) != 0) { + break + } + goto _1 + _1: + ; + s += 4 + } + return Uint64FromInt64((int64(s) - int64(a)) / 4) +} + +func _twoway_wcsstr(tls *TLS, h uintptr, n uintptr) (r uintptr) { + var grow, ip, jp, k, l, mem, mem0, ms, p, p0, v2 Tsize_t + var z, z2 uintptr + var v8 uint64 + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = grow, ip, jp, k, l, mem, mem0, ms, p, p0, z, z2, v2, v8 + /* Computing length of needle */ + l = uint64(0) + for { + if !(**(**Twchar_t)(__ccgo_up(n + uintptr(l)*4)) != 0 && **(**Twchar_t)(__ccgo_up(h + uintptr(l)*4)) != 0) { + break + } + goto _1 + _1: + ; + l = l + 1 + } + if **(**Twchar_t)(__ccgo_up(n + uintptr(l)*4)) != 0 { + return uintptr(0) + } /* hit the end of h */ + /* Compute maximal suffix */ + ip = Uint64FromInt32(-Int32FromInt32(1)) + jp = uint64(0) + v2 = Uint64FromInt32(1) + p = v2 + k = v2 + for jp+k < l { + if **(**Twchar_t)(__ccgo_up(n + uintptr(ip+k)*4)) == **(**Twchar_t)(__ccgo_up(n + uintptr(jp+k)*4)) { + if k == p { + jp = jp + p + k = uint64(1) + } else { + k = k + 1 + } + } else { + if **(**Twchar_t)(__ccgo_up(n + uintptr(ip+k)*4)) > **(**Twchar_t)(__ccgo_up(n + uintptr(jp+k)*4)) { + jp = jp + k + k = uint64(1) + p = jp - ip + } else { + v2 = jp + jp = jp + 1 + ip = v2 + v2 = Uint64FromInt32(1) + p = v2 + k = v2 + } + } + } + ms = ip + p0 = p + /* And with the opposite comparison */ + ip = Uint64FromInt32(-Int32FromInt32(1)) + jp = uint64(0) + v2 = Uint64FromInt32(1) + p = v2 + k = v2 + for jp+k < l { + if **(**Twchar_t)(__ccgo_up(n + uintptr(ip+k)*4)) == **(**Twchar_t)(__ccgo_up(n + uintptr(jp+k)*4)) { + if k == p { + jp = jp + p + k = uint64(1) + } else { + k = k + 1 + } + } else { + if **(**Twchar_t)(__ccgo_up(n + uintptr(ip+k)*4)) < **(**Twchar_t)(__ccgo_up(n + uintptr(jp+k)*4)) { + jp = jp + k + k = uint64(1) + p = jp - ip + } else { + v2 = jp + jp = jp + 1 + ip = v2 + v2 = Uint64FromInt32(1) + p = v2 + k = v2 + } + } + } + if ip+uint64(1) > ms+uint64(1) { + ms = ip + } else { + p = p0 + } + /* Periodic needle? */ + if Xwmemcmp(tls, n, n+uintptr(p)*4, ms+uint64(1)) != 0 { + mem0 = uint64(0) + if ms > l-ms-uint64(1) { + v8 = ms + } else { + v8 = l - ms - uint64(1) + } + p = v8 + uint64(1) + } else { + mem0 = l - p + } + mem = uint64(0) + /* Initialize incremental end-of-haystack pointer */ + z = h + /* Search loop */ + for { + /* Update incremental end-of-haystack pointer */ + if Uint64FromInt64((int64(z)-int64(h))/4) < l { + /* Fast estimate for MIN(l,63) */ + grow = l | uint64(63) + z2 = Xwmemchr(tls, z, uint32(0), grow) + if z2 != 0 { + z = z2 + if Uint64FromInt64((int64(z)-int64(h))/4) < l { + return uintptr(0) + } + } else { + z = z + uintptr(grow)*4 + } + } + /* Compare right half */ + if ms+uint64(1) > mem { + v8 = ms + uint64(1) + } else { + v8 = mem + } + k = v8 + for { + if !(**(**Twchar_t)(__ccgo_up(n + uintptr(k)*4)) != 0 && **(**Twchar_t)(__ccgo_up(n + uintptr(k)*4)) == **(**Twchar_t)(__ccgo_up(h + uintptr(k)*4))) { + break + } + goto _10 + _10: + ; + k = k + 1 + } + if **(**Twchar_t)(__ccgo_up(n + uintptr(k)*4)) != 0 { + h = h + uintptr(k-ms)*4 + mem = uint64(0) + goto _9 + } + /* Compare left half */ + k = ms + uint64(1) + for { + if !(k > mem && **(**Twchar_t)(__ccgo_up(n + uintptr(k-uint64(1))*4)) == **(**Twchar_t)(__ccgo_up(h + uintptr(k-uint64(1))*4))) { + break + } + goto _12 + _12: + ; + k = k - 1 + } + if k <= mem { + return h + } + h = h + uintptr(p)*4 + mem = mem0 + goto _9 + _9: + } + return r +} + +func Xwcsstr(tls *TLS, h uintptr, n uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v h=%v n=%v, (%v:)", tls, h, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + /* Return immediately on empty needle or haystack */ + if !(**(**Twchar_t)(__ccgo_up(n)) != 0) { + return h + } + if !(**(**Twchar_t)(__ccgo_up(h)) != 0) { + return uintptr(0) + } + /* Use faster algorithms for short needles */ + h = Xwcschr(tls, h, **(**Twchar_t)(__ccgo_up(n))) + if !(h != 0) || !(**(**Twchar_t)(__ccgo_up(n + 1*4)) != 0) { + return h + } + if !(**(**Twchar_t)(__ccgo_up(h + 1*4)) != 0) { + return uintptr(0) + } + return _twoway_wcsstr(tls, h, n) +} + +func Xwcstok(tls *TLS, s uintptr, sep uintptr, p uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v sep=%v p=%v, (%v:)", tls, s, sep, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1, v3 uintptr + var v2 bool + _, _, _ = v1, v2, v3 + if v2 = !(s != 0); v2 { + v1 = **(**uintptr)(__ccgo_up(p)) + s = v1 + } + if v2 && !(v1 != 0) { + return UintptrFromInt32(0) + } + s = s + uintptr(Xwcsspn(tls, s, sep))*4 + if !(**(**Twchar_t)(__ccgo_up(s)) != 0) { + v1 = UintptrFromInt32(0) + **(**uintptr)(__ccgo_up(p)) = v1 + return v1 + } + **(**uintptr)(__ccgo_up(p)) = s + uintptr(Xwcscspn(tls, s, sep))*4 + if **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(p)))) != 0 { + v3 = p + v1 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) += 4 + **(**Twchar_t)(__ccgo_up(v1)) = uint32(0) + } else { + **(**uintptr)(__ccgo_up(p)) = uintptr(0) + } + return s +} + +func Xwcswcs(tls *TLS, haystack uintptr, needle uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v haystack=%v needle=%v, (%v:)", tls, haystack, needle, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwcsstr(tls, haystack, needle) +} + +func Xwmemchr(tls *TLS, s uintptr, c Twchar_t, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v n=%v, (%v:)", tls, s, c, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v2 uintptr + _ = v2 + for { + if !(n != 0 && **(**Twchar_t)(__ccgo_up(s)) != c) { + break + } + goto _1 + _1: + ; + n = n - 1 + s += 4 + } + if n != 0 { + v2 = s + } else { + v2 = uintptr(0) + } + return v2 +} + +func Xwmemcmp(tls *TLS, l uintptr, r uintptr, n Tsize_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v n=%v, (%v:)", tls, l, r, n, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var v2, v3 int32 + _, _ = v2, v3 + for { + if !(n != 0 && **(**Twchar_t)(__ccgo_up(l)) == **(**Twchar_t)(__ccgo_up(r))) { + break + } + goto _1 + _1: + ; + n = n - 1 + l += 4 + r += 4 + } + if n != 0 { + if **(**Twchar_t)(__ccgo_up(l)) < **(**Twchar_t)(__ccgo_up(r)) { + v3 = -int32(1) + } else { + v3 = BoolInt32(**(**Twchar_t)(__ccgo_up(l)) > **(**Twchar_t)(__ccgo_up(r))) + } + v2 = v3 + } else { + v2 = 0 + } + return v2 +} + +func Xwmemcpy(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, v2, v3 uintptr + var v1 Tsize_t + _, _, _, _ = a, v1, v2, v3 + a = d + for { + v1 = n + n = n - 1 + if !(v1 != 0) { + break + } + v2 = d + d += 4 + v3 = s + s += 4 + **(**Twchar_t)(__ccgo_up(v2)) = **(**Twchar_t)(__ccgo_up(v3)) + } + return a +} + +func Xwmemmove(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var d0, v3, v4 uintptr + var v1 Tsize_t + _, _, _, _ = d0, v1, v3, v4 + d0 = d + if d == s { + return d + } + if uint64(d)-uint64(s) < n*uint64(4) { + for { + v1 = n + n = n - 1 + if !(v1 != 0) { + break + } + **(**Twchar_t)(__ccgo_up(d + uintptr(n)*4)) = **(**Twchar_t)(__ccgo_up(s + uintptr(n)*4)) + } + } else { + for { + v1 = n + n = n - 1 + if !(v1 != 0) { + break + } + v3 = d + d += 4 + v4 = s + s += 4 + **(**Twchar_t)(__ccgo_up(v3)) = **(**Twchar_t)(__ccgo_up(v4)) + } + } + return d0 +} + +func Xwmemset(tls *TLS, d uintptr, c Twchar_t, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v c=%v n=%v, (%v:)", tls, d, c, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret, v2 uintptr + var v1 Tsize_t + _, _, _ = ret, v1, v2 + ret = d + for { + v1 = n + n = n - 1 + if !(v1 != 0) { + break + } + v2 = d + d += 4 + **(**Twchar_t)(__ccgo_up(v2)) = c + } + return ret +} + +func Xmkdtemp(tls *TLS, template uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v template=%v, (%v:)", tls, template, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l Tsize_t + var retries, v1 int32 + _, _, _ = l, retries, v1 + l = _strlen(tls, template) + retries = int32(100) + if l < uint64(6) || Xmemcmp(tls, template+uintptr(l)-uintptr(6), __ccgo_ts+1730, uint64(6)) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(0) + } + for { + ___randname(tls, template+uintptr(l)-uintptr(6)) + if !(Xmkdir(tls, template, uint32(0700)) != 0) { + return template + } + goto _2 + _2: + ; + retries = retries - 1 + v1 = retries + if !(v1 != 0 && **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EEXIST)) { + break + } + } + Xmemcpy(tls, template+uintptr(l)-uintptr(6), __ccgo_ts+1730, uint64(6)) + return uintptr(0) +} + +func Xmkostemp(tls *TLS, template uintptr, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v template=%v flags=%v, (%v:)", tls, template, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__mkostemps(tls, template, 0, flags) +} + +func X__mkostemps(tls *TLS, template uintptr, len1 int32, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v template=%v len1=%v flags=%v, (%v:)", tls, template, len1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var fd, retries, v1 int32 + var l Tsize_t + _, _, _, _ = fd, l, retries, v1 + l = _strlen(tls, template) + if l < uint64(6) || Uint64FromInt32(len1) > l-uint64(6) || Xmemcmp(tls, template+uintptr(l)-uintptr(len1)-uintptr(6), __ccgo_ts+1730, uint64(6)) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + flags = flags - flags&(Int32FromInt32(03)|Int32FromInt32(O_PATH)) + retries = int32(100) + for { + ___randname(tls, template+uintptr(l)-uintptr(len1)-uintptr(6)) + v1 = Xopen(tls, template, flags|int32(O_RDWR)|int32(O_CREAT)|int32(O_EXCL), VaList(bp+8, int32(0600))) + fd = v1 + if v1 >= 0 { + return fd + } + goto _2 + _2: + ; + retries = retries - 1 + v1 = retries + if !(v1 != 0 && **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EEXIST)) { + break + } + } + Xmemcpy(tls, template+uintptr(l)-uintptr(len1)-uintptr(6), __ccgo_ts+1730, uint64(6)) + return -int32(1) +} + +func Xmkostemps(tls *TLS, template uintptr, len1 int32, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v template=%v len1=%v flags=%v, (%v:)", tls, template, len1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__mkostemps(tls, template, len1, flags) +} + +func Xmkstemp(tls *TLS, template uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v template=%v, (%v:)", tls, template, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__mkostemps(tls, template, 0, 0) +} + +func Xmkstemps(tls *TLS, template uintptr, len1 int32) (r int32) { + if __ccgo_strace { + trc("tls=%v template=%v len1=%v, (%v:)", tls, template, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__mkostemps(tls, template, len1, 0) +} + +func Xmktemp(tls *TLS, template uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v template=%v, (%v:)", tls, template, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(128) + defer tls.Free(128) + var l Tsize_t + var retries, v1 int32 + var _ /* st at bp+0 */ Tstat + _, _, _ = l, retries, v1 + l = _strlen(tls, template) + retries = int32(100) + if l < uint64(6) || Xmemcmp(tls, template+uintptr(l)-uintptr(6), __ccgo_ts+1730, uint64(6)) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + **(**uint8)(__ccgo_up(template)) = uint8(0) + return template + } + for { + ___randname(tls, template+uintptr(l)-uintptr(6)) + if Xstat(tls, template, bp) != 0 { + if **(**int32)(__ccgo_up(X__errno_location(tls))) != int32(ENOENT) { + **(**uint8)(__ccgo_up(template)) = uint8(0) + } + return template + } + goto _2 + _2: + ; + retries = retries - 1 + v1 = retries + if !(v1 != 0) { + break + } + } + **(**uint8)(__ccgo_up(template)) = uint8(0) + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EEXIST) + return template +} + +func Xcfgetospeed(tls *TLS, tio uintptr) (r Tspeed_t) { + if __ccgo_strace { + trc("tls=%v tio=%v, (%v:)", tls, tio, origin(2)) + defer func() { trc("-> %v", r) }() + } + return (*Ttermios)(unsafe.Pointer(tio)).Fc_cflag & uint32(CBAUD) +} + +func Xcfgetispeed(tls *TLS, tio uintptr) (r Tspeed_t) { + if __ccgo_strace { + trc("tls=%v tio=%v, (%v:)", tls, tio, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xcfgetospeed(tls, tio) +} + +func Xcfmakeraw(tls *TLS, t uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v, (%v:)", tls, t, origin(2)) + } + **(**Ttcflag_t)(__ccgo_up(t)) &= Uint32FromInt32(^(Int32FromInt32(IGNBRK) | Int32FromInt32(BRKINT) | Int32FromInt32(PARMRK) | Int32FromInt32(ISTRIP) | Int32FromInt32(INLCR) | Int32FromInt32(IGNCR) | Int32FromInt32(ICRNL) | Int32FromInt32(IXON))) + **(**Ttcflag_t)(__ccgo_up(t + 4)) &= Uint32FromInt32(^Int32FromInt32(OPOST)) + **(**Ttcflag_t)(__ccgo_up(t + 12)) &= Uint32FromInt32(^(Int32FromInt32(ECHO) | Int32FromInt32(ECHONL) | Int32FromInt32(ICANON) | Int32FromInt32(ISIG) | Int32FromInt32(IEXTEN))) + **(**Ttcflag_t)(__ccgo_up(t + 8)) &= Uint32FromInt32(^(Int32FromInt32(CSIZE) | Int32FromInt32(PARENB))) + **(**Ttcflag_t)(__ccgo_up(t + 8)) |= uint32(CS8) + **(**Tcc_t)(__ccgo_up(t + 17 + 6)) = uint8(1) + **(**Tcc_t)(__ccgo_up(t + 17 + 5)) = uint8(0) +} + +func Xcfsetospeed(tls *TLS, tio uintptr, speed Tspeed_t) (r int32) { + if __ccgo_strace { + trc("tls=%v tio=%v speed=%v, (%v:)", tls, tio, speed, origin(2)) + defer func() { trc("-> %v", r) }() + } + if speed&Uint32FromInt32(^Int32FromInt32(CBAUD)) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + **(**Ttcflag_t)(__ccgo_up(tio + 8)) &= Uint32FromInt32(^Int32FromInt32(CBAUD)) + **(**Ttcflag_t)(__ccgo_up(tio + 8)) |= speed + return 0 +} + +func Xcfsetispeed(tls *TLS, tio uintptr, speed Tspeed_t) (r int32) { + if __ccgo_strace { + trc("tls=%v tio=%v speed=%v, (%v:)", tls, tio, speed, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + _ = v1 + if speed != 0 { + v1 = Xcfsetospeed(tls, tio, speed) + } else { + v1 = 0 + } + return v1 +} + +func Xcfsetspeed(tls *TLS, tio uintptr, speed Tspeed_t) (r int32) { + if __ccgo_strace { + trc("tls=%v tio=%v speed=%v, (%v:)", tls, tio, speed, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xcfsetospeed(tls, tio, speed) +} + +func Xtcdrain(tls *TLS, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_ioctl), int64(fd), int64(Int32FromInt32(TCSBRK)), int64(Int32FromInt32(1)), 0, 0, 0)))) +} + +func Xtcflow(tls *TLS, fd int32, action int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v action=%v, (%v:)", tls, fd, action, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + return Xioctl(tls, fd, int32(TCXONC), VaList(bp+8, action)) +} + +func Xtcflush(tls *TLS, fd int32, queue int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v queue=%v, (%v:)", tls, fd, queue, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + return Xioctl(tls, fd, int32(TCFLSH), VaList(bp+8, queue)) +} + +func Xtcgetattr(tls *TLS, fd int32, tio uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v tio=%v, (%v:)", tls, fd, tio, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + if Xioctl(tls, fd, int32(TCGETS), VaList(bp+8, tio)) != 0 { + return -int32(1) + } + return 0 +} + +func Xtcgetsid(tls *TLS, fd int32) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var _ /* sid at bp+0 */ int32 + if Xioctl(tls, fd, int32(TIOCGSID), VaList(bp+16, bp)) < 0 { + return -int32(1) + } + return **(**int32)(__ccgo_up(bp)) +} + +func Xtcgetwinsize(tls *TLS, fd int32, wsz uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v wsz=%v, (%v:)", tls, fd, wsz, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_ioctl), int64(fd), int64(Int32FromInt32(TIOCGWINSZ)), int64(wsz))))) +} + +func Xtcsendbreak(tls *TLS, fd int32, dur int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v dur=%v, (%v:)", tls, fd, dur, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + /* nonzero duration is implementation-defined, so ignore it */ + return Xioctl(tls, fd, int32(TCSBRK), VaList(bp+8, 0)) +} + +func Xtcsetattr(tls *TLS, fd int32, act int32, tio uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v act=%v tio=%v, (%v:)", tls, fd, act, tio, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + if act < 0 || act > int32(2) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + return Xioctl(tls, fd, int32(TCSETS)+act, VaList(bp+8, tio)) +} + +func Xtcsetwinsize(tls *TLS, fd int32, wsz uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v wsz=%v, (%v:)", tls, fd, wsz, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_ioctl), int64(fd), int64(Int32FromInt32(TIOCSWINSZ)), int64(wsz))))) +} + +func X__map_file(tls *TLS, pathname uintptr, size uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v pathname=%v size=%v, (%v:)", tls, pathname, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(128) + defer tls.Free(128) + var fd int32 + var map1, v1 uintptr + var _ /* st at bp+0 */ Tstat + _, _, _ = fd, map1, v1 + map1 = uintptr(-Int32FromInt32(1)) + fd = int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_openat), int64(-Int32FromInt32(100)), int64(pathname), int64(Int32FromInt32(O_RDONLY)|Int32FromInt32(O_CLOEXEC)|Int32FromInt32(O_NONBLOCK)|Int32FromInt32(O_LARGEFILE)))))) + if fd < 0 { + return uintptr(0) + } + if !(X__fstat(tls, fd, bp) != 0) { + map1 = X__mmap(tls, uintptr(0), Uint64FromInt64((**(**Tstat)(__ccgo_up(bp))).Fst_size), int32(PROT_READ), int32(MAP_SHARED), fd, 0) + **(**Tsize_t)(__ccgo_up(size)) = Uint64FromInt64((**(**Tstat)(__ccgo_up(bp))).Fst_size) + } + X__syscall1(tls, int64(SYS_close), int64(fd)) + if map1 == uintptr(-Int32FromInt32(1)) { + v1 = uintptr(0) + } else { + v1 = map1 + } + return v1 +} + +func X__month_to_secs(tls *TLS, month int32, is_leap int32) (r int32) { + if __ccgo_strace { + trc("tls=%v month=%v is_leap=%v, (%v:)", tls, month, is_leap, origin(2)) + defer func() { trc("-> %v", r) }() + } + var t int32 + _ = t + t = _secs_through_month[month] + if is_leap != 0 && month >= int32(2) { + t = t + int32(86400) + } + return t +} + +var _secs_through_month = [12]int32{ + 1: Int32FromInt32(31) * Int32FromInt32(86400), + 2: Int32FromInt32(59) * Int32FromInt32(86400), + 3: Int32FromInt32(90) * Int32FromInt32(86400), + 4: Int32FromInt32(120) * Int32FromInt32(86400), + 5: Int32FromInt32(151) * Int32FromInt32(86400), + 6: Int32FromInt32(181) * Int32FromInt32(86400), + 7: Int32FromInt32(212) * Int32FromInt32(86400), + 8: Int32FromInt32(243) * Int32FromInt32(86400), + 9: Int32FromInt32(273) * Int32FromInt32(86400), + 10: Int32FromInt32(304) * Int32FromInt32(86400), + 11: Int32FromInt32(334) * Int32FromInt32(86400), +} + +const DAYS_PER_100Y = 36524 +const DAYS_PER_400Y = 146097 +const DAYS_PER_4Y = 1461 +const LEAPOCH = 951868800 + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +/* 2000-03-01 (mod 400 year, immediately after feb29 */ + +func X__secs_to_tm(tls *TLS, t int64, tm uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v t=%v tm=%v, (%v:)", tls, t, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + var c_cycles, leap, months, q_cycles, qc_cycles, remdays, remsecs, remyears, wday, yday int32 + var days, secs, years int64 + _, _, _, _, _, _, _, _, _, _, _, _, _ = c_cycles, days, leap, months, q_cycles, qc_cycles, remdays, remsecs, remyears, secs, wday, yday, years + /* Reject time_t values whose year would overflow int */ + if t < int64(-Int32FromInt32(1)-Int32FromInt32(0x7fffffff))*Int64FromInt64(31622400) || t > Int64FromInt32(INT_MAX)*Int64FromInt64(31622400) { + return -int32(1) + } + secs = t - (Int64FromInt64(946684800) + int64(Int32FromInt32(86400)*(Int32FromInt32(31)+Int32FromInt32(29)))) + days = secs / int64(86400) + remsecs = int32(secs % int64(86400)) + if remsecs < 0 { + remsecs = remsecs + int32(86400) + days = days - 1 + } + wday = int32((int64(3) + days) % int64(7)) + if wday < 0 { + wday = wday + int32(7) + } + qc_cycles = int32(days / int64(Int32FromInt32(365)*Int32FromInt32(400)+Int32FromInt32(97))) + remdays = int32(days % int64(Int32FromInt32(365)*Int32FromInt32(400)+Int32FromInt32(97))) + if remdays < 0 { + remdays = remdays + (Int32FromInt32(365)*Int32FromInt32(400) + Int32FromInt32(97)) + qc_cycles = qc_cycles - 1 + } + c_cycles = remdays / (Int32FromInt32(365)*Int32FromInt32(100) + Int32FromInt32(24)) + if c_cycles == int32(4) { + c_cycles = c_cycles - 1 + } + remdays = remdays - c_cycles*(Int32FromInt32(365)*Int32FromInt32(100)+Int32FromInt32(24)) + q_cycles = remdays / (Int32FromInt32(365)*Int32FromInt32(4) + Int32FromInt32(1)) + if q_cycles == int32(25) { + q_cycles = q_cycles - 1 + } + remdays = remdays - q_cycles*(Int32FromInt32(365)*Int32FromInt32(4)+Int32FromInt32(1)) + remyears = remdays / int32(365) + if remyears == int32(4) { + remyears = remyears - 1 + } + remdays = remdays - remyears*int32(365) + leap = BoolInt32(!(remyears != 0) && (q_cycles != 0 || !(c_cycles != 0))) + yday = remdays + int32(31) + int32(28) + leap + if yday >= int32(365)+leap { + yday = yday - (int32(365) + leap) + } + years = int64(remyears+int32(4)*q_cycles+int32(100)*c_cycles) + int64(400)*int64(qc_cycles) + months = 0 + for { + if !(Int32FromUint8(_days_in_month[months]) <= remdays) { + break + } + remdays = remdays - Int32FromUint8(_days_in_month[months]) + goto _1 + _1: + ; + months = months + 1 + } + if months >= int32(10) { + months = months - int32(12) + years = years + 1 + } + if years+int64(100) > int64(INT_MAX) || years+int64(100) < int64(-Int32FromInt32(1)-Int32FromInt32(0x7fffffff)) { + return -int32(1) + } + (*Ttm)(unsafe.Pointer(tm)).Ftm_year = int32(years + int64(100)) + (*Ttm)(unsafe.Pointer(tm)).Ftm_mon = months + int32(2) + (*Ttm)(unsafe.Pointer(tm)).Ftm_mday = remdays + int32(1) + (*Ttm)(unsafe.Pointer(tm)).Ftm_wday = wday + (*Ttm)(unsafe.Pointer(tm)).Ftm_yday = yday + (*Ttm)(unsafe.Pointer(tm)).Ftm_hour = remsecs / int32(3600) + (*Ttm)(unsafe.Pointer(tm)).Ftm_min = remsecs / int32(60) % int32(60) + (*Ttm)(unsafe.Pointer(tm)).Ftm_sec = remsecs % int32(60) + return 0 +} + +var _days_in_month = [12]uint8{ + 0: uint8(31), + 1: uint8(30), + 2: uint8(31), + 3: uint8(30), + 4: uint8(31), + 5: uint8(31), + 6: uint8(30), + 7: uint8(31), + 8: uint8(30), + 9: uint8(31), + 10: uint8(31), + 11: uint8(29), +} + +func X__tm_to_secs(tls *TLS, tm uintptr) (r int64) { + if __ccgo_strace { + trc("tls=%v tm=%v, (%v:)", tls, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var adj, month int32 + var t, year int64 + var _ /* is_leap at bp+0 */ int32 + _, _, _, _ = adj, month, t, year + year = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_year) + month = (*Ttm)(unsafe.Pointer(tm)).Ftm_mon + if month >= int32(12) || month < 0 { + adj = month / int32(12) + month = month % int32(12) + if month < 0 { + adj = adj - 1 + month = month + int32(12) + } + year = year + int64(adj) + } + t = X__year_to_secs(tls, year, bp) + t = t + int64(X__month_to_secs(tls, month, **(**int32)(__ccgo_up(bp)))) + t = t + int64(86400)*int64((*Ttm)(unsafe.Pointer(tm)).Ftm_mday-Int32FromInt32(1)) + t = t + int64(3600)*int64((*Ttm)(unsafe.Pointer(tm)).Ftm_hour) + t = t + int64(60)*int64((*Ttm)(unsafe.Pointer(tm)).Ftm_min) + t = t + int64((*Ttm)(unsafe.Pointer(tm)).Ftm_sec) + return t +} + +var _std_name [7]uint8 +var _dst_name [7]uint8 + +var _dst_off int32 +var _r0 [5]int32 +var _r12 [5]int32 + +var _zi uintptr +var _trans uintptr +var _index uintptr +var _types uintptr +var _abbrevs uintptr +var _abbrevs_end uintptr +var _map_size Tsize_t + +var _old_tz_buf [32]uint8 +var _old_tz = uintptr(unsafe.Pointer(&_old_tz_buf)) +var _old_tz_size = uint64(32) + +var _lock4 [1]int32 + +func _getint2(tls *TLS, p uintptr) (r int32) { + var x uint32 + _ = x + x = uint32(0) + for { + if !(Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(p)))))-int32('0')) < uint32(10)) { + break + } + x = Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(p)))))-int32('0')) + uint32(10)*x + goto _1 + _1: + ; + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + } + return Int32FromUint32(x) +} + +func _getoff(tls *TLS, p uintptr) (r int32) { + var neg, off, v1 int32 + _, _, _ = neg, off, v1 + neg = 0 + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(p))))) == int32('-') { + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + neg = int32(1) + } else { + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(p))))) == int32('+') { + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + } + } + off = int32(3600) * _getint2(tls, p) + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(p))))) == int32(':') { + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + off = off + int32(60)*_getint2(tls, p) + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(p))))) == int32(':') { + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + off = off + _getint2(tls, p) + } + } + if neg != 0 { + v1 = -off + } else { + v1 = off + } + return v1 +} + +func _getrule(tls *TLS, p uintptr, rule uintptr) { + var r, v1 int32 + _, _ = r, v1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(p))))) + **(**int32)(__ccgo_up(rule)) = v1 + r = v1 + if r != int32('M') { + if r == int32('J') { + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + } else { + **(**int32)(__ccgo_up(rule)) = 0 + } + **(**int32)(__ccgo_up(rule + 1*4)) = _getint2(tls, p) + } else { + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + **(**int32)(__ccgo_up(rule + 1*4)) = _getint2(tls, p) + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + **(**int32)(__ccgo_up(rule + 2*4)) = _getint2(tls, p) + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + **(**int32)(__ccgo_up(rule + 3*4)) = _getint2(tls, p) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(p))))) == int32('/') { + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + **(**int32)(__ccgo_up(rule + 4*4)) = _getoff(tls, p) + } else { + **(**int32)(__ccgo_up(rule + 4*4)) = int32(7200) + } +} + +func _getname(tls *TLS, d uintptr, p uintptr) { + var i, v3 int32 + _, _ = i, v3 + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(p))))) == int32('<') { + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + i = 0 + for { + if !(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(p)) + uintptr(i))) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(p)) + uintptr(i)))) != int32('>')) { + break + } + if i < int32(TZNAME_MAX) { + **(**uint8)(__ccgo_up(d + uintptr(i))) = **(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(p)) + uintptr(i))) + } + goto _1 + _1: + ; + i = i + 1 + } + if **(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(p)) + uintptr(i))) != 0 { + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + } + } else { + i = 0 + for { + if !(Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(p)) + uintptr(i))))|int32(32)-int32('a')) < uint32(26)) { + break + } + if i < int32(TZNAME_MAX) { + **(**uint8)(__ccgo_up(d + uintptr(i))) = **(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(p)) + uintptr(i))) + } + goto _2 + _2: + ; + i = i + 1 + } + } + **(**uintptr)(__ccgo_up(p)) += uintptr(i) + if i < int32(TZNAME_MAX) { + v3 = i + } else { + v3 = int32(TZNAME_MAX) + } + **(**uint8)(__ccgo_up(d + uintptr(v3))) = uint8(0) +} + +func _zi_read32(tls *TLS, z uintptr) (r Tuint32_t) { + return uint32(**(**uint8)(__ccgo_up(z)))< Uint64FromInt32(Int32FromInt32(PATH_MAX)+Int32FromInt32(1)) { + **(**uintptr)(__ccgo_up(bp + 288)) = uintptr(unsafe.Pointer(&X__utc)) + i = Uint64FromInt32(3) + } + if i >= _old_tz_size { + _old_tz_size = _old_tz_size * uint64(2) + if i >= _old_tz_size { + _old_tz_size = i + uint64(1) + } + if _old_tz_size > Uint64FromInt32(Int32FromInt32(PATH_MAX)+Int32FromInt32(2)) { + _old_tz_size = Uint64FromInt32(Int32FromInt32(PATH_MAX) + Int32FromInt32(2)) + } + _old_tz = Xmalloc(tls, _old_tz_size) + } + if _old_tz != 0 { + Xmemcpy(tls, _old_tz, **(**uintptr)(__ccgo_up(bp + 288)), i+uint64(1)) + } + posix_form = 0 + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 288))))) != int32(':') { + **(**uintptr)(__ccgo_up(bp + 296)) = **(**uintptr)(__ccgo_up(bp + 288)) + _getname(tls, bp+308, bp+296) + if **(**uintptr)(__ccgo_up(bp + 296)) != **(**uintptr)(__ccgo_up(bp + 288)) && (Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 296))))) == int32('+') || Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 296))))) == int32('-') || BoolInt32(uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 296)))))-uint32('0') < uint32(10)) != 0 || !(Xstrcmp(tls, bp+308, __ccgo_ts+1755) != 0) || !(Xstrcmp(tls, bp+308, __ccgo_ts+1759) != 0)) { + posix_form = int32(1) + } + } + /* Non-suid can use an absolute tzfile pathname or a relative + * pathame beginning with "."; in secure mode, only the + * standard path will be searched. */ + if !(posix_form != 0) { + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 288))))) == int32(':') { + **(**uintptr)(__ccgo_up(bp + 288)) = **(**uintptr)(__ccgo_up(bp + 288)) + 1 + } + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 288))))) == int32('/') || Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 288))))) == int32('.') { + if !(X__libc.Fsecure != 0) || !(Xstrcmp(tls, **(**uintptr)(__ccgo_up(bp + 288)), __ccgo_ts+1740) != 0) { + map1 = X__map_file(tls, **(**uintptr)(__ccgo_up(bp + 288)), uintptr(unsafe.Pointer(&_map_size))) + } + } else { + l = _strlen(tls, **(**uintptr)(__ccgo_up(bp + 288))) + if l <= uint64(NAME_MAX) && !(Xstrchr(tls, **(**uintptr)(__ccgo_up(bp + 288)), int32('.')) != 0) { + Xmemcpy(tls, pathname, **(**uintptr)(__ccgo_up(bp + 288)), l+uint64(1)) + **(**uint8)(__ccgo_up(pathname + uintptr(l))) = uint8(0) + try = uintptr(unsafe.Pointer(&_search)) + for { + if !(!(map1 != 0) && **(**uint8)(__ccgo_up(try)) != 0) { + break + } + l = _strlen(tls, try) + Xmemcpy(tls, pathname-uintptr(l), try, l) + map1 = X__map_file(tls, pathname-uintptr(l), uintptr(unsafe.Pointer(&_map_size))) + goto _3 + _3: + ; + try = try + uintptr(l+uint64(1)) + } + } + } + if !(map1 != 0) { + **(**uintptr)(__ccgo_up(bp + 288)) = uintptr(unsafe.Pointer(&X__utc)) + } + } + if map1 != 0 && (_map_size < uint64(44) || Xmemcmp(tls, map1, __ccgo_ts+1763, uint64(4)) != 0) { + X__munmap(tls, map1, _map_size) + map1 = uintptr(0) + **(**uintptr)(__ccgo_up(bp + 288)) = uintptr(unsafe.Pointer(&X__utc)) + } + _zi = map1 + if map1 != 0 { + scale = int32(2) + if Int32FromUint8(**(**uint8)(__ccgo_up(map1 + 4))) != int32('1') { + *(*[6]uint8)(unsafe.Pointer(bp)) = [6]uint8{ + 0: uint8(1), + 1: uint8(1), + 2: uint8(8), + 3: uint8(5), + 4: uint8(6), + 5: uint8(1), + } + skip = _zi_dotprod(tls, _zi+uintptr(20), bp, uint64(6)) + _trans = _zi + uintptr(skip) + uintptr(44) + uintptr(44) + scale = scale + 1 + } else { + _trans = _zi + uintptr(44) + } + _index = _trans + uintptr(_zi_read32(tls, _trans-uintptr(12))<> scale) + if !(n != 0) { + if alt != 0 { + **(**Tsize_t)(__ccgo_up(alt)) = uint64(0) + } + return uint64(0) + } + /* Binary search for 'most-recent rule before t'. */ + for n > uint64(1) { + m = a + n/uint64(2) + x = uint64(_zi_read32(tls, _trans+uintptr(m<> scale) + if a == n-uint64(1) { + return Uint64FromInt32(-Int32FromInt32(1)) + } + if a == uint64(0) { + x = uint64(_zi_read32(tls, _trans)) + if scale == int32(3) { + x = x<>(m-int32(1))&int32(1) + } + return r +} + +/* Convert a POSIX DST rule plus year to seconds since epoch. */ + +func _rule_to_secs(tls *TLS, rule uintptr, year int32) (r int64) { + bp := tls.Alloc(16) + defer tls.Free(16) + var d, days, m, n, wday, x int32 + var t int64 + var _ /* is_leap at bp+0 */ int32 + _, _, _, _, _, _, _ = d, days, m, n, t, wday, x + t = X__year_to_secs(tls, int64(year), bp) + if **(**int32)(__ccgo_up(rule)) != int32('M') { + x = **(**int32)(__ccgo_up(rule + 1*4)) + if **(**int32)(__ccgo_up(rule)) == int32('J') && (x < int32(60) || !(**(**int32)(__ccgo_up(bp)) != 0)) { + x = x - 1 + } + t = t + int64(int32(86400)*x) + } else { + m = **(**int32)(__ccgo_up(rule + 1*4)) + n = **(**int32)(__ccgo_up(rule + 2*4)) + d = **(**int32)(__ccgo_up(rule + 3*4)) + t = t + int64(X__month_to_secs(tls, m-int32(1), **(**int32)(__ccgo_up(bp)))) + wday = int32((t+int64(Int32FromInt32(4)*Int32FromInt32(86400)))%int64(Int32FromInt32(7)*Int32FromInt32(86400))) / int32(86400) + days = d - wday + if days < 0 { + days = days + int32(7) + } + if n == int32(5) && days+int32(28) >= _days_in_month1(tls, m, **(**int32)(__ccgo_up(bp))) { + n = int32(4) + } + t = t + int64(int32(86400)*(days+int32(7)*(n-int32(1)))) + } + t = t + int64(**(**int32)(__ccgo_up(rule + 4*4))) + return t +} + +/* Determine the time zone in effect for a given time in seconds since the + * epoch. It can be given in local or universal time. The results will + * indicate whether DST is in effect at the queried time, and will give both + * the GMT offset for the active zone/DST rule and the opposite DST. This + * enables a caller to efficiently adjust for the case where an explicit + * DST specification mismatches what would be in effect at the time. */ + +func X__secs_to_zone(tls *TLS, t int64, local int32, isdst uintptr, offset uintptr, oppoff uintptr, zonename uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v local=%v isdst=%v offset=%v oppoff=%v zonename=%v, (%v:)", tls, t, local, isdst, offset, oppoff, zonename, origin(2)) + } + bp := tls.Alloc(16) + defer tls.Free(16) + var i Tsize_t + var t0, t1, y int64 + var _ /* alt at bp+0 */ Tsize_t + _, _, _, _ = i, t0, t1, y + ___lock(tls, uintptr(unsafe.Pointer(&_lock4))) + _do_tzset(tls) + if _zi != 0 { + i = _scan_trans(tls, t, local, bp) + if i != Uint64FromInt32(-Int32FromInt32(1)) { + **(**int32)(__ccgo_up(isdst)) = Int32FromUint8(**(**uint8)(__ccgo_up(_types + uintptr(uint64(6)*i+uint64(4))))) + **(**int64)(__ccgo_up(offset)) = int64(Int32FromUint32(_zi_read32(tls, _types+uintptr(uint64(6)*i)))) + **(**uintptr)(__ccgo_up(zonename)) = _abbrevs + uintptr(**(**uint8)(__ccgo_up(_types + uintptr(uint64(6)*i+uint64(5))))) + if oppoff != 0 { + **(**int64)(__ccgo_up(oppoff)) = int64(Int32FromUint32(_zi_read32(tls, _types+uintptr(uint64(6)***(**Tsize_t)(__ccgo_up(bp)))))) + } + ___unlock(tls, uintptr(unsafe.Pointer(&_lock4))) + return + } + } + if !(Xdaylight != 0) { + goto std + } + /* FIXME: may be broken if DST changes right at year boundary? + * Also, this could be more efficient.*/ + y = t/int64(31556952) + int64(70) + for X__year_to_secs(tls, y, uintptr(0)) > t { + y = y - 1 + } + for X__year_to_secs(tls, y+int64(1), uintptr(0)) < t { + y = y + 1 + } + t0 = _rule_to_secs(tls, uintptr(unsafe.Pointer(&_r0)), int32(y)) + t1 = _rule_to_secs(tls, uintptr(unsafe.Pointer(&_r12)), int32(y)) + if !(local != 0) { + t0 = t0 + Xtimezone + t1 = t1 + int64(_dst_off) + } + if t0 < t1 { + if t >= t0 && t < t1 { + goto dst + } + goto std + } else { + if t >= t1 && t < t0 { + goto std + } + goto dst + } + goto std +std: + ; + **(**int32)(__ccgo_up(isdst)) = 0 + **(**int64)(__ccgo_up(offset)) = -Xtimezone + if oppoff != 0 { + **(**int64)(__ccgo_up(oppoff)) = int64(-_dst_off) + } + **(**uintptr)(__ccgo_up(zonename)) = Xtzname[0] + ___unlock(tls, uintptr(unsafe.Pointer(&_lock4))) + return + goto dst +dst: + ; + **(**int32)(__ccgo_up(isdst)) = int32(1) + **(**int64)(__ccgo_up(offset)) = int64(-_dst_off) + if oppoff != 0 { + **(**int64)(__ccgo_up(oppoff)) = -Xtimezone + } + **(**uintptr)(__ccgo_up(zonename)) = Xtzname[int32(1)] + ___unlock(tls, uintptr(unsafe.Pointer(&_lock4))) +} + +func ___tzset(tls *TLS) { + ___lock(tls, uintptr(unsafe.Pointer(&_lock4))) + _do_tzset(tls) + ___unlock(tls, uintptr(unsafe.Pointer(&_lock4))) +} + +func X__tm_to_tzname(tls *TLS, tm uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v tm=%v, (%v:)", tls, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + var p uintptr + _ = p + p = (*Ttm)(unsafe.Pointer(tm)).F__tm_zone + ___lock(tls, uintptr(unsafe.Pointer(&_lock4))) + _do_tzset(tls) + if p != uintptr(unsafe.Pointer(&X__utc)) && p != Xtzname[0] && p != Xtzname[int32(1)] && (!(_zi != 0) || uint64(p)-uint64(_abbrevs) >= Uint64FromInt64(int64(_abbrevs_end)-int64(_abbrevs))) { + p = __ccgo_ts + } + ___unlock(tls, uintptr(unsafe.Pointer(&_lock4))) + return p +} + +func X__year_to_secs(tls *TLS, year int64, is_leap uintptr) (r int64) { + if __ccgo_strace { + trc("tls=%v year=%v is_leap=%v, (%v:)", tls, year, is_leap, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var centuries, cycles, leaps, leaps1, rem, y int32 + var _ /* dummy at bp+0 */ int32 + _, _, _, _, _, _ = centuries, cycles, leaps, leaps1, rem, y + if Uint64FromInt64(year)-uint64(2) <= uint64(136) { + y = int32(year) + leaps = (y - int32(68)) >> int32(2) + if !((y-Int32FromInt32(68))&Int32FromInt32(3) != 0) { + leaps = leaps - 1 + if is_leap != 0 { + **(**int32)(__ccgo_up(is_leap)) = int32(1) + } + } else { + if is_leap != 0 { + **(**int32)(__ccgo_up(is_leap)) = 0 + } + } + return int64(int32(31536000)*(y-int32(70)) + int32(86400)*leaps) + } + if !(is_leap != 0) { + is_leap = bp + } + cycles = int32((year - int64(100)) / int64(400)) + rem = int32((year - int64(100)) % int64(400)) + if rem < 0 { + cycles = cycles - 1 + rem = rem + int32(400) + } + if !(rem != 0) { + **(**int32)(__ccgo_up(is_leap)) = int32(1) + centuries = 0 + leaps1 = 0 + } else { + if rem >= int32(200) { + if rem >= int32(300) { + centuries = int32(3) + rem = rem - int32(300) + } else { + centuries = int32(2) + rem = rem - int32(200) + } + } else { + if rem >= int32(100) { + centuries = int32(1) + rem = rem - int32(100) + } else { + centuries = 0 + } + } + if !(rem != 0) { + **(**int32)(__ccgo_up(is_leap)) = 0 + leaps1 = 0 + } else { + leaps1 = Int32FromUint32(Uint32FromInt32(rem) / uint32(4)) + rem = Int32FromUint32(uint32(rem) % Uint32FromUint32(4)) + **(**int32)(__ccgo_up(is_leap)) = BoolInt32(!(rem != 0)) + } + } + leaps1 = leaps1 + (int32(97)*cycles + int32(24)*centuries - **(**int32)(__ccgo_up(is_leap))) + return (year-int64(100))*int64(31536000) + int64(leaps1)*int64(86400) + int64(946684800) + int64(86400) +} + +func Xasctime(tls *TLS, tm uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v tm=%v, (%v:)", tls, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__asctime_r(tls, tm, uintptr(unsafe.Pointer(&_buf9))) +} + +var _buf9 [26]uint8 + +func X__asctime_r(tls *TLS, tm uintptr, buf uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v tm=%v buf=%v, (%v:)", tls, tm, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + if Xsnprintf(tls, buf, uint64(26), __ccgo_ts+1768, VaList(bp+8, X__nl_langinfo_l(tls, int32(ABDAY_1)+(*Ttm)(unsafe.Pointer(tm)).Ftm_wday, uintptr(unsafe.Pointer(&X__c_locale))), X__nl_langinfo_l(tls, int32(ABMON_1)+(*Ttm)(unsafe.Pointer(tm)).Ftm_mon, uintptr(unsafe.Pointer(&X__c_locale))), (*Ttm)(unsafe.Pointer(tm)).Ftm_mday, (*Ttm)(unsafe.Pointer(tm)).Ftm_hour, (*Ttm)(unsafe.Pointer(tm)).Ftm_min, (*Ttm)(unsafe.Pointer(tm)).Ftm_sec, int32(1900)+(*Ttm)(unsafe.Pointer(tm)).Ftm_year)) >= int32(26) { + /* ISO C requires us to use the above format string, + * even if it will not fit in the buffer. Thus asctime_r + * is _supposed_ to crash if the fields in tm are too large. + * We follow this behavior and crash "gracefully" to warn + * application developers that they may not be so lucky + * on other implementations (e.g. stack smashing..). + */ + **(**uint8)(__ccgo_up(UintptrFromInt32(0))) = uint8(0) + } + return buf +} + +func Xasctime_r(tls *TLS, tm uintptr, buf uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v tm=%v buf=%v, (%v:)", tls, tm, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__asctime_r(tls, tm, buf) +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xclock(tls *TLS) (r Tclock_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* ts at bp+0 */ Ttimespec + if X__clock_gettime(tls, int32(CLOCK_PROCESS_CPUTIME_ID), bp) != 0 { + return int64(-int32(1)) + } + if (**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec > Int64FromInt64(0x7fffffffffffffff)/Int64FromInt32(1000000) || (**(**Ttimespec)(__ccgo_up(bp))).Ftv_nsec/int64(1000) > int64(0x7fffffffffffffff)-int64(1000000)*(**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec { + return int64(-int32(1)) + } + return (**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec*int64(1000000) + (**(**Ttimespec)(__ccgo_up(bp))).Ftv_nsec/int64(1000) +} + +func Xclock_getcpuclockid(tls *TLS, pid Tpid_t, clk uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v pid=%v clk=%v, (%v:)", tls, pid, clk, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var id Tclockid_t + var ret int32 + var _ /* ts at bp+0 */ Ttimespec + _, _ = id, ret + id = Int32FromUint32(Uint32FromInt32(-pid-Int32FromInt32(1))*uint32(8) + uint32(2)) + ret = int32(X__syscall2(tls, int64(SYS_clock_getres), int64(id), int64(bp))) + if ret == -int32(EINVAL) { + ret = -int32(ESRCH) + } + if ret != 0 { + return -ret + } + **(**Tclockid_t)(__ccgo_up(clk)) = id + return 0 +} + +func Xclock_getres(tls *TLS, clk Tclockid_t, ts uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v clk=%v ts=%v, (%v:)", tls, clk, ts, origin(2)) + defer func() { trc("-> %v", r) }() + } + /* If reaching this point, it's a 64-bit arch or time64-only + * 32-bit arch and we can get result directly into timespec. */ + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_clock_getres), int64(clk), int64(ts))))) +} + +func X__clock_gettime(tls *TLS, clk Tclockid_t, ts uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v clk=%v ts=%v, (%v:)", tls, clk, ts, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + r = int32(X__syscall2(tls, int64(SYS_clock_gettime), int64(clk), int64(ts))) + if r == -int32(ENOSYS) { + if clk == CLOCK_REALTIME { + X__syscall2(tls, int64(SYS_gettimeofday), int64(ts), int64(Int32FromInt32(0))) + (*Ttimespec)(unsafe.Pointer(ts)).Ftv_nsec = int64(int32((*Ttimespec)(unsafe.Pointer(ts)).Ftv_nsec) * int32(1000)) + return 0 + } + r = -int32(EINVAL) + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func Xclock_gettime(tls *TLS, clk Tclockid_t, ts uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v clk=%v ts=%v, (%v:)", tls, clk, ts, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__clock_gettime(tls, clk, ts) +} + +func X__clock_nanosleep(tls *TLS, clk Tclockid_t, flags int32, req uintptr, rem uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v clk=%v flags=%v req=%v rem=%v, (%v:)", tls, clk, flags, req, rem, origin(2)) + defer func() { trc("-> %v", r) }() + } + if clk == int32(CLOCK_THREAD_CPUTIME_ID) { + return int32(EINVAL) + } + if clk == CLOCK_REALTIME && !(flags != 0) { + return int32(-___syscall_cp(tls, int64(SYS_nanosleep), int64(req), int64(rem), 0, 0, 0, 0)) + } + return int32(-___syscall_cp(tls, int64(SYS_clock_nanosleep), int64(clk), int64(flags), int64(req), int64(rem), 0, 0)) +} + +func Xclock_nanosleep(tls *TLS, clk Tclockid_t, flags int32, req uintptr, rem uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v clk=%v flags=%v req=%v rem=%v, (%v:)", tls, clk, flags, req, rem, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__clock_nanosleep(tls, clk, flags, req, rem) +} + +func Xclock_settime(tls *TLS, clk Tclockid_t, ts uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v clk=%v ts=%v, (%v:)", tls, clk, ts, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_clock_settime), int64(clk), int64(ts))))) +} + +func Xctime(tls *TLS, t uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v, (%v:)", tls, t, origin(2)) + defer func() { trc("-> %v", r) }() + } + var tm uintptr + _ = tm + tm = Xlocaltime(tls, t) + if !(tm != 0) { + return uintptr(0) + } + return Xasctime(tls, tm) +} + +func Xctime_r(tls *TLS, t uintptr, buf uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v buf=%v, (%v:)", tls, t, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var tm_p, v1 uintptr + var _ /* tm at bp+0 */ Ttm + _, _ = tm_p, v1 + tm_p = Xlocaltime_r(tls, t, bp) + if tm_p != 0 { + v1 = Xasctime_r(tls, tm_p, buf) + } else { + v1 = uintptr(0) + } + return v1 +} + +func Xdifftime(tls *TLS, t1 Ttime_t, t0 Ttime_t) (r float64) { + if __ccgo_strace { + trc("tls=%v t1=%v t0=%v, (%v:)", tls, t1, t0, origin(2)) + defer func() { trc("-> %v", r) }() + } + return float64(t1 - t0) +} + +type Ttimeb = struct { + Ftime Ttime_t + Fmillitm uint16 + Ftimezone int16 + Fdstflag int16 +} + +func Xftime(tls *TLS, tp uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v tp=%v, (%v:)", tls, tp, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 int16 + var _ /* ts at bp+0 */ Ttimespec + _ = v1 + Xclock_gettime(tls, CLOCK_REALTIME, bp) + (*Ttimeb)(unsafe.Pointer(tp)).Ftime = (**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec + (*Ttimeb)(unsafe.Pointer(tp)).Fmillitm = Uint16FromInt64((**(**Ttimespec)(__ccgo_up(bp))).Ftv_nsec / int64(1000000)) + v1 = Int16FromInt32(0) + (*Ttimeb)(unsafe.Pointer(tp)).Fdstflag = v1 + (*Ttimeb)(unsafe.Pointer(tp)).Ftimezone = v1 + return 0 +} + +func Xgetdate(tls *TLS, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(112) + defer tls.Free(112) + var datemsk, f, p, ret uintptr + var _ /* cs at bp+100 */ int32 + var _ /* fmt at bp+0 */ [100]uint8 + _, _, _, _ = datemsk, f, p, ret + ret = uintptr(0) + datemsk = Xgetenv(tls, __ccgo_ts+1800) + f = uintptr(0) + _pthread_setcancelstate(tls, PTHREAD_CANCEL_DEFERRED, bp+100) + if !(datemsk != 0) { + Xgetdate_err = int32(1) + goto out + } + f = Xfopen(tls, datemsk, __ccgo_ts+315) + if !(f != 0) { + if **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(ENOMEM) { + Xgetdate_err = int32(6) + } else { + Xgetdate_err = int32(2) + } + goto out + } + for Xfgets(tls, bp, int32(100), f) != 0 { + p = Xstrptime(tls, s, bp, uintptr(unsafe.Pointer(&_tmbuf))) + if p != 0 && !(**(**uint8)(__ccgo_up(p)) != 0) { + ret = uintptr(unsafe.Pointer(&_tmbuf)) + goto out + } + } + if Xferror(tls, f) != 0 { + Xgetdate_err = int32(5) + } else { + Xgetdate_err = int32(7) + } + goto out +out: + ; + if f != 0 { + Xfclose(tls, f) + } + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 100)), uintptr(0)) + return ret +} + +var _tmbuf Ttm + +func Xgettimeofday(tls *TLS, tv uintptr, tz uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v tv=%v tz=%v, (%v:)", tls, tv, tz, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* ts at bp+0 */ Ttimespec + if !(tv != 0) { + return 0 + } + Xclock_gettime(tls, CLOCK_REALTIME, bp) + (*Ttimeval)(unsafe.Pointer(tv)).Ftv_sec = (**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec + (*Ttimeval)(unsafe.Pointer(tv)).Ftv_usec = int64(int32((**(**Ttimespec)(__ccgo_up(bp))).Ftv_nsec) / int32(1000)) + return 0 +} + +func Xgmtime(tls *TLS, t uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v, (%v:)", tls, t, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__gmtime_r(tls, t, uintptr(unsafe.Pointer(&_tm))) +} + +var _tm Ttm + +func X__gmtime_r(tls *TLS, t uintptr, tm uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v tm=%v, (%v:)", tls, t, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + if X__secs_to_tm(tls, int64(**(**Ttime_t)(__ccgo_up(t))), tm) < 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOVERFLOW) + return uintptr(0) + } + (*Ttm)(unsafe.Pointer(tm)).Ftm_isdst = 0 + (*Ttm)(unsafe.Pointer(tm)).F__tm_gmtoff = 0 + (*Ttm)(unsafe.Pointer(tm)).F__tm_zone = uintptr(unsafe.Pointer(&X__utc)) + return tm +} + +func Xgmtime_r(tls *TLS, t uintptr, tm uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v tm=%v, (%v:)", tls, t, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__gmtime_r(tls, t, tm) +} + +func Xlocaltime(tls *TLS, t uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v, (%v:)", tls, t, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__localtime_r(tls, t, uintptr(unsafe.Pointer(&_tm1))) +} + +var _tm1 Ttm + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func X__localtime_r(tls *TLS, t uintptr, tm uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v tm=%v, (%v:)", tls, t, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + /* Reject time_t values whose year would overflow int because + * __secs_to_zone cannot safely handle them. */ + if int64(**(**Ttime_t)(__ccgo_up(t))) < int64(-Int32FromInt32(1)-Int32FromInt32(0x7fffffff))*Int64FromInt64(31622400) || int64(**(**Ttime_t)(__ccgo_up(t))) > Int64FromInt32(INT_MAX)*Int64FromInt64(31622400) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOVERFLOW) + return uintptr(0) + } + X__secs_to_zone(tls, int64(**(**Ttime_t)(__ccgo_up(t))), 0, tm+32, tm+40, uintptr(0), tm+48) + if X__secs_to_tm(tls, int64(**(**Ttime_t)(__ccgo_up(t)))+(*Ttm)(unsafe.Pointer(tm)).F__tm_gmtoff, tm) < 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOVERFLOW) + return uintptr(0) + } + return tm +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xlocaltime_r(tls *TLS, t uintptr, tm uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v tm=%v, (%v:)", tls, t, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__localtime_r(tls, t, tm) +} + +func Xmktime(tls *TLS, tm uintptr) (r Ttime_t) { + if __ccgo_strace { + trc("tls=%v tm=%v, (%v:)", tls, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var t int64 + var _ /* new at bp+0 */ Ttm + var _ /* opp at bp+56 */ int64 + _ = t + t = X__tm_to_secs(tls, tm) + X__secs_to_zone(tls, t, int32(1), bp+32, bp+40, bp+56, bp+48) + if (*Ttm)(unsafe.Pointer(tm)).Ftm_isdst >= 0 && (**(**Ttm)(__ccgo_up(bp))).Ftm_isdst != (*Ttm)(unsafe.Pointer(tm)).Ftm_isdst { + t = t - int64(**(**int64)(__ccgo_up(bp + 56))-(**(**Ttm)(__ccgo_up(bp))).F__tm_gmtoff) + } + t = t - int64((**(**Ttm)(__ccgo_up(bp))).F__tm_gmtoff) + if t != t { + goto error + } + X__secs_to_zone(tls, t, 0, bp+32, bp+40, bp+56, bp+48) + if X__secs_to_tm(tls, t+int64((**(**Ttm)(__ccgo_up(bp))).F__tm_gmtoff), bp) < 0 { + goto error + } + **(**Ttm)(__ccgo_up(tm)) = **(**Ttm)(__ccgo_up(bp)) + return t + goto error +error: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOVERFLOW) + return int64(-int32(1)) +} + +func Xnanosleep(tls *TLS, req uintptr, rem uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v req=%v rem=%v, (%v:)", tls, req, rem, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt32(-X__clock_nanosleep(tls, CLOCK_REALTIME, 0, req, rem)))) +} + +func _is_leap(tls *TLS, y int32) (r int32) { + /* Avoid overflow */ + if y > Int32FromInt32(INT_MAX)-Int32FromInt32(1900) { + y = y - int32(2000) + } + y = y + int32(1900) + return BoolInt32(!(y%Int32FromInt32(4) != 0) && (y%int32(100) != 0 || !(y%Int32FromInt32(400) != 0))) +} + +func _week_num(tls *TLS, tm uintptr) (r int32) { + var dec31, jan1, val int32 + _, _, _ = dec31, jan1, val + val = Int32FromUint32((Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_yday) + uint32(7) - (Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_wday)+uint32(6))%uint32(7)) / uint32(7)) + /* If 1 Jan is just 1-3 days past Monday, + * the previous week is also in this year. */ + if (Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_wday)+uint32(371)-Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_yday)-uint32(2))%uint32(7) <= uint32(2) { + val = val + 1 + } + if !(val != 0) { + val = int32(52) + /* If 31 December of prev year a Thursday, + * or Friday of a leap year, then the + * prev year has 53 weeks. */ + dec31 = Int32FromUint32((Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_wday) + uint32(7) - Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_yday) - uint32(1)) % uint32(7)) + if dec31 == int32(4) || dec31 == int32(5) && _is_leap(tls, (*Ttm)(unsafe.Pointer(tm)).Ftm_year%int32(400)-int32(1)) != 0 { + val = val + 1 + } + } else { + if val == int32(53) { + /* If 1 January is not a Thursday, and not + * a Wednesday of a leap year, then this + * year has only 52 weeks. */ + jan1 = Int32FromUint32((Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_wday) + uint32(371) - Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_yday)) % uint32(7)) + if jan1 != int32(4) && (jan1 != int32(3) || !(_is_leap(tls, (*Ttm)(unsafe.Pointer(tm)).Ftm_year) != 0)) { + val = int32(1) + } + } + } + return val +} + +func X__strftime_fmt_1(tls *TLS, s uintptr, l uintptr, f int32, tm uintptr, loc Tlocale_t, pad int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v l=%v f=%v tm=%v loc=%v pad=%v, (%v:)", tls, s, l, f, tm, loc, pad, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var d, fmt, v4, v5 uintptr + var def_pad, width, v1 int32 + var item Tnl_item + var val int64 + _, _, _, _, _, _, _, _, _ = d, def_pad, fmt, item, val, width, v1, v4, v5 + fmt = __ccgo_ts + 1662 + width = int32(2) + def_pad = int32('0') + switch f { + case int32('a'): + if Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_wday) > uint32(6) { + goto string + } + item = int32(ABDAY_1) + (*Ttm)(unsafe.Pointer(tm)).Ftm_wday + goto nl_strcat + case int32('A'): + if Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_wday) > uint32(6) { + goto string + } + item = int32(DAY_1) + (*Ttm)(unsafe.Pointer(tm)).Ftm_wday + goto nl_strcat + case int32('h'): + fallthrough + case int32('b'): + if Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_mon) > uint32(11) { + goto string + } + item = int32(ABMON_1) + (*Ttm)(unsafe.Pointer(tm)).Ftm_mon + goto nl_strcat + case int32('B'): + if Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_mon) > uint32(11) { + goto string + } + item = int32(MON_1) + (*Ttm)(unsafe.Pointer(tm)).Ftm_mon + goto nl_strcat + case int32('c'): + item = int32(D_T_FMT) + goto nl_strftime + case int32('C'): + val = (int64(1900) + int64((*Ttm)(unsafe.Pointer(tm)).Ftm_year)) / int64(100) + goto number + case int32('e'): + def_pad = int32('_') + fallthrough + case int32('d'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_mday) + goto number + case int32('D'): + fmt = __ccgo_ts + 1808 + goto recu_strftime + case int32('F'): + fmt = __ccgo_ts + 1817 + goto recu_strftime + case int32('g'): + fallthrough + case int32('G'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_year) + int64(1900) + if (*Ttm)(unsafe.Pointer(tm)).Ftm_yday < int32(3) && _week_num(tls, tm) != int32(1) { + val = val - 1 + } else { + if (*Ttm)(unsafe.Pointer(tm)).Ftm_yday > int32(360) && _week_num(tls, tm) == int32(1) { + val = val + 1 + } + } + if f == int32('g') { + val = val % int64(100) + } else { + width = int32(4) + } + goto number + case int32('H'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_hour) + goto number + case int32('l'): + def_pad = int32('_') + fallthrough + case int32('I'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_hour) + if !(val != 0) { + val = int64(12) + } else { + if val > int64(12) { + val = val - int64(12) + } + } + goto number + case int32('j'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_yday + int32(1)) + width = int32(3) + goto number + case int32('k'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_hour) + def_pad = int32('_') + goto number + case int32('m'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_mon + int32(1)) + goto number + case int32('M'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_min) + goto number + case int32('n'): + **(**Tsize_t)(__ccgo_up(l)) = uint64(1) + return __ccgo_ts + 301 + case int32('p'): + if (*Ttm)(unsafe.Pointer(tm)).Ftm_hour >= int32(12) { + v1 = int32(PM_STR) + } else { + v1 = int32(AM_STR) + } + item = v1 + goto nl_strcat + case int32('P'): + if (*Ttm)(unsafe.Pointer(tm)).Ftm_hour >= int32(12) { + v1 = int32(PM_STR) + } else { + v1 = int32(AM_STR) + } + item = v1 + fmt = X__nl_langinfo_l(tls, item, loc) + d = s + **(**Tsize_t)(__ccgo_up(l)) = uint64(0) + for { + if !(**(**uint8)(__ccgo_up(fmt)) != 0) { + break + } + v4 = d + d = d + 1 + v5 = fmt + fmt = fmt + 1 + **(**uint8)(__ccgo_up(v4)) = Uint8FromInt32(Xtolower(tls, Int32FromUint8(**(**uint8)(__ccgo_up(v5))))) + goto _3 + _3: + ; + **(**Tsize_t)(__ccgo_up(l)) = **(**Tsize_t)(__ccgo_up(l)) + 1 + } + return s + case int32('r'): + item = int32(T_FMT_AMPM) + goto nl_strftime + case int32('R'): + fmt = __ccgo_ts + 1826 + goto recu_strftime + case int32('s'): + val = X__tm_to_secs(tls, tm) - (*Ttm)(unsafe.Pointer(tm)).F__tm_gmtoff + width = int32(1) + goto number + case int32('S'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_sec) + goto number + case int32('t'): + **(**Tsize_t)(__ccgo_up(l)) = uint64(1) + return __ccgo_ts + 1400 + case int32('T'): + fmt = __ccgo_ts + 1832 + goto recu_strftime + case int32('u'): + if (*Ttm)(unsafe.Pointer(tm)).Ftm_wday != 0 { + v1 = (*Ttm)(unsafe.Pointer(tm)).Ftm_wday + } else { + v1 = int32(7) + } + val = int64(v1) + width = int32(1) + goto number + case int32('U'): + val = Int64FromUint32((Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_yday) + uint32(7) - Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_wday)) / uint32(7)) + goto number + case int32('W'): + val = Int64FromUint32((Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_yday) + uint32(7) - (Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_wday)+uint32(6))%uint32(7)) / uint32(7)) + goto number + case int32('V'): + val = int64(_week_num(tls, tm)) + goto number + case int32('w'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_wday) + width = int32(1) + goto number + case int32('x'): + item = int32(D_FMT) + goto nl_strftime + case int32('X'): + item = int32(T_FMT) + goto nl_strftime + case int32('y'): + val = (int64((*Ttm)(unsafe.Pointer(tm)).Ftm_year) + int64(1900)) % int64(100) + if val < 0 { + val = -val + } + goto number + case int32('Y'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_year) + int64(1900) + if val >= int64(10000) { + **(**Tsize_t)(__ccgo_up(l)) = Uint64FromInt32(Xsnprintf(tls, s, uint64(100), __ccgo_ts+1841, VaList(bp+8, val))) + return s + } + width = int32(4) + goto number + case int32('z'): + if (*Ttm)(unsafe.Pointer(tm)).Ftm_isdst < 0 { + **(**Tsize_t)(__ccgo_up(l)) = uint64(0) + return __ccgo_ts + } + **(**Tsize_t)(__ccgo_up(l)) = Uint64FromInt32(Xsnprintf(tls, s, uint64(100), __ccgo_ts+1847, VaList(bp+8, (*Ttm)(unsafe.Pointer(tm)).F__tm_gmtoff/int64(3600)*int64(100)+(*Ttm)(unsafe.Pointer(tm)).F__tm_gmtoff%int64(3600)/int64(60)))) + return s + case int32('Z'): + if (*Ttm)(unsafe.Pointer(tm)).Ftm_isdst < 0 { + **(**Tsize_t)(__ccgo_up(l)) = uint64(0) + return __ccgo_ts + } + fmt = X__tm_to_tzname(tls, tm) + goto string + case int32('%'): + **(**Tsize_t)(__ccgo_up(l)) = uint64(1) + return __ccgo_ts + 348 + default: + return uintptr(0) + } + goto number +number: + ; + if pad != 0 { + v1 = pad + } else { + v1 = def_pad + } + switch v1 { + case int32('-'): + **(**Tsize_t)(__ccgo_up(l)) = Uint64FromInt32(Xsnprintf(tls, s, uint64(100), __ccgo_ts+1854, VaList(bp+8, val))) + case int32('_'): + **(**Tsize_t)(__ccgo_up(l)) = Uint64FromInt32(Xsnprintf(tls, s, uint64(100), __ccgo_ts+1859, VaList(bp+8, width, val))) + case int32('0'): + fallthrough + default: + **(**Tsize_t)(__ccgo_up(l)) = Uint64FromInt32(Xsnprintf(tls, s, uint64(100), __ccgo_ts+1865, VaList(bp+8, width, val))) + break + } + return s + goto nl_strcat +nl_strcat: + ; + fmt = X__nl_langinfo_l(tls, item, loc) + goto string +string: + ; + **(**Tsize_t)(__ccgo_up(l)) = _strlen(tls, fmt) + return fmt + goto nl_strftime +nl_strftime: + ; + fmt = X__nl_langinfo_l(tls, item, loc) + goto recu_strftime +recu_strftime: + ; + **(**Tsize_t)(__ccgo_up(l)) = X__strftime_l(tls, s, uint64(100), fmt, tm, loc) + if !(**(**Tsize_t)(__ccgo_up(l)) != 0) { + return uintptr(0) + } + return s +} + +func X__strftime_l(tls *TLS, s uintptr, n Tsize_t, f uintptr, tm uintptr, loc Tlocale_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v f=%v tm=%v loc=%v, (%v:)", tls, s, n, f, tm, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(128) + defer tls.Free(128) + var d, l, v2 Tsize_t + var pad, plus, v4 int32 + var t, v3 uintptr + var width uint64 + var v9 bool + var _ /* buf at bp+8 */ [100]uint8 + var _ /* k at bp+0 */ Tsize_t + var _ /* p at bp+112 */ uintptr + _, _, _, _, _, _, _, _, _, _ = d, l, pad, plus, t, width, v2, v3, v4, v9 + l = uint64(0) + for { + if !(l < n) { + break + } + if !(**(**uint8)(__ccgo_up(f)) != 0) { + **(**uint8)(__ccgo_up(s + uintptr(l))) = uint8(0) + return l + } + if Int32FromUint8(**(**uint8)(__ccgo_up(f))) != int32('%') { + v2 = l + l = l + 1 + **(**uint8)(__ccgo_up(s + uintptr(v2))) = **(**uint8)(__ccgo_up(f)) + goto _1 + } + f = f + 1 + pad = 0 + if Int32FromUint8(**(**uint8)(__ccgo_up(f))) == int32('-') || Int32FromUint8(**(**uint8)(__ccgo_up(f))) == int32('_') || Int32FromUint8(**(**uint8)(__ccgo_up(f))) == int32('0') { + v3 = f + f = f + 1 + pad = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } + v4 = BoolInt32(Int32FromUint8(**(**uint8)(__ccgo_up(f))) == Int32FromUint8('+')) + plus = v4 + if v4 != 0 { + f = f + 1 + } + if BoolInt32(uint32(**(**uint8)(__ccgo_up(f)))-uint32('0') < uint32(10)) != 0 { + width = Xstrtoul(tls, f, bp+112, int32(10)) + } else { + width = uint64(0) + **(**uintptr)(__ccgo_up(bp + 112)) = f + } + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 112))))) == int32('C') || Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 112))))) == int32('F') || Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 112))))) == int32('G') || Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 112))))) == int32('Y') { + if !(width != 0) && **(**uintptr)(__ccgo_up(bp + 112)) != f { + width = uint64(1) + } + } else { + width = uint64(0) + } + f = **(**uintptr)(__ccgo_up(bp + 112)) + if Int32FromUint8(**(**uint8)(__ccgo_up(f))) == int32('E') || Int32FromUint8(**(**uint8)(__ccgo_up(f))) == int32('O') { + f = f + 1 + } + t = X__strftime_fmt_1(tls, bp+8, bp, Int32FromUint8(**(**uint8)(__ccgo_up(f))), tm, loc, pad) + if !(t != 0) { + break + } + if width != 0 { + /* Trim off any sign and leading zeros, then + * count remaining digits to determine behavior + * for the + flag. */ + if Int32FromUint8(**(**uint8)(__ccgo_up(t))) == int32('+') || Int32FromUint8(**(**uint8)(__ccgo_up(t))) == int32('-') { + t = t + 1 + **(**Tsize_t)(__ccgo_up(bp)) = **(**Tsize_t)(__ccgo_up(bp)) - 1 + } + for { + if !(Int32FromUint8(**(**uint8)(__ccgo_up(t))) == int32('0') && Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(t + 1)))-int32('0')) < uint32(10)) { + break + } + goto _5 + _5: + ; + t = t + 1 + **(**Tsize_t)(__ccgo_up(bp)) = **(**Tsize_t)(__ccgo_up(bp)) - 1 + } + if width < **(**Tsize_t)(__ccgo_up(bp)) { + width = **(**Tsize_t)(__ccgo_up(bp)) + } + d = uint64(0) + for { + if !(Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(t + uintptr(d))))-int32('0')) < uint32(10)) { + break + } + goto _6 + _6: + ; + d = d + 1 + } + if (*Ttm)(unsafe.Pointer(tm)).Ftm_year < -int32(1900) { + v2 = l + l = l + 1 + **(**uint8)(__ccgo_up(s + uintptr(v2))) = uint8('-') + width = width - 1 + } else { + if v9 = plus != 0; v9 { + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 112))))) == int32('C') { + v4 = int32(3) + } else { + v4 = int32(5) + } + } + if v9 && d+(width-**(**Tsize_t)(__ccgo_up(bp))) >= Uint64FromInt32(v4) { + v2 = l + l = l + 1 + **(**uint8)(__ccgo_up(s + uintptr(v2))) = uint8('+') + width = width - 1 + } + } + for { + if !(width > **(**Tsize_t)(__ccgo_up(bp)) && l < n) { + break + } + v2 = l + l = l + 1 + **(**uint8)(__ccgo_up(s + uintptr(v2))) = uint8('0') + goto _11 + _11: + ; + width = width - 1 + } + } + if **(**Tsize_t)(__ccgo_up(bp)) > n-l { + **(**Tsize_t)(__ccgo_up(bp)) = n - l + } + Xmemcpy(tls, s+uintptr(l), t, **(**Tsize_t)(__ccgo_up(bp))) + l = l + **(**Tsize_t)(__ccgo_up(bp)) + goto _1 + _1: + ; + f = f + 1 + } + if n != 0 { + if l == n { + l = n - uint64(1) + } + **(**uint8)(__ccgo_up(s + uintptr(l))) = uint8(0) + } + return uint64(0) +} + +func Xstrftime(tls *TLS, s uintptr, n Tsize_t, f uintptr, tm uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v f=%v tm=%v, (%v:)", tls, s, n, f, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__strftime_l(tls, s, n, f, tm, (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale) +} + +func Xstrftime_l(tls *TLS, s uintptr, n Tsize_t, f uintptr, tm uintptr, loc Tlocale_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v f=%v tm=%v loc=%v, (%v:)", tls, s, n, f, tm, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__strftime_l(tls, s, n, f, tm, loc) +} + +func Xstrptime(tls *TLS, s uintptr, f uintptr, tm uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v f=%v tm=%v, (%v:)", tls, s, f, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var adj, i, min, neg, range1, w, want_century, v1, v2, v5, v6 int32 + var dest, ex, v9 uintptr + var len1 Tsize_t + var v8 bool + var _ /* century at bp+4 */ int32 + var _ /* dummy at bp+0 */ int32 + var _ /* new_f at bp+16 */ uintptr + var _ /* relyear at bp+8 */ int32 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = adj, dest, ex, i, len1, min, neg, range1, w, want_century, v1, v2, v5, v6, v8, v9 + want_century = 0 + **(**int32)(__ccgo_up(bp + 4)) = 0 + **(**int32)(__ccgo_up(bp + 8)) = 0 + for **(**uint8)(__ccgo_up(f)) != 0 { + if Int32FromUint8(**(**uint8)(__ccgo_up(f))) != int32('%') { + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(f))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _3 + _3: + if v2 != 0 { + for { + if v8 = **(**uint8)(__ccgo_up(s)) != 0; v8 { + v5 = Int32FromUint8(**(**uint8)(__ccgo_up(s))) + v6 = BoolInt32(v5 == int32(' ') || Uint32FromInt32(v5)-uint32('\t') < uint32(5)) + goto _7 + _7: + } + if !(v8 && v6 != 0) { + break + } + goto _4 + _4: + ; + s = s + 1 + } + } else { + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) != Int32FromUint8(**(**uint8)(__ccgo_up(f))) { + return uintptr(0) + } else { + s = s + 1 + } + } + f = f + 1 + continue + } + f = f + 1 + if Int32FromUint8(**(**uint8)(__ccgo_up(f))) == int32('+') { + f = f + 1 + } + if BoolInt32(uint32(**(**uint8)(__ccgo_up(f)))-uint32('0') < uint32(10)) != 0 { + w = Int32FromUint64(Xstrtoul(tls, f, bp+16, int32(10))) + f = **(**uintptr)(__ccgo_up(bp + 16)) + } else { + w = -int32(1) + } + adj = 0 + v9 = f + f = f + 1 + switch Int32FromUint8(**(**uint8)(__ccgo_up(v9))) { + case int32('A'): + goto _10 + case int32('a'): + goto _11 + case int32('h'): + goto _12 + case int32('B'): + goto _13 + case int32('b'): + goto _14 + case int32('c'): + goto _15 + case int32('C'): + goto _16 + case int32('e'): + goto _17 + case int32('d'): + goto _18 + case int32('D'): + goto _19 + case int32('H'): + goto _20 + case int32('I'): + goto _21 + case int32('j'): + goto _22 + case int32('m'): + goto _23 + case int32('M'): + goto _24 + case int32('t'): + goto _25 + case int32('n'): + goto _26 + case int32('p'): + goto _27 + case int32('r'): + goto _28 + case int32('R'): + goto _29 + case int32('S'): + goto _30 + case int32('T'): + goto _31 + case int32('W'): + goto _32 + case int32('U'): + goto _33 + case int32('w'): + goto _34 + case int32('x'): + goto _35 + case int32('X'): + goto _36 + case int32('y'): + goto _37 + case int32('Y'): + goto _38 + case int32('%'): + goto _39 + default: + goto _40 + } + goto _41 + _11: + ; + _10: + ; + dest = tm + 24 + min = int32(ABDAY_1) + range1 = int32(7) + goto symbolic_range + _14: + ; + _13: + ; + _12: + ; + dest = tm + 16 + min = int32(ABMON_1) + range1 = int32(12) + goto symbolic_range + _15: + ; + s = Xstrptime(tls, s, Xnl_langinfo(tls, int32(D_T_FMT)), tm) + if !(s != 0) { + return uintptr(0) + } + goto _41 + _16: + ; + dest = bp + 4 + if w < 0 { + w = int32(2) + } + want_century = want_century | int32(2) + goto numeric_digits + _18: + ; + _17: + ; + dest = tm + 12 + min = int32(1) + range1 = int32(31) + goto numeric_range + _19: + ; + s = Xstrptime(tls, s, __ccgo_ts+1808, tm) + if !(s != 0) { + return uintptr(0) + } + goto _41 + _20: + ; + dest = tm + 8 + min = 0 + range1 = int32(24) + goto numeric_range + _21: + ; + dest = tm + 8 + min = int32(1) + range1 = int32(12) + goto numeric_range + _22: + ; + dest = tm + 28 + min = int32(1) + range1 = int32(366) + adj = int32(1) + goto numeric_range + _23: + ; + dest = tm + 16 + min = int32(1) + range1 = int32(12) + adj = int32(1) + goto numeric_range + _24: + ; + dest = tm + 4 + min = 0 + range1 = int32(60) + goto numeric_range + _26: + ; + _25: + ; + _44: + ; + if v8 = **(**uint8)(__ccgo_up(s)) != 0; v8 { + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(s))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _47 + _47: + } + if !(v8 && v2 != 0) { + goto _42 + } + goto _43 + _43: + ; + s = s + 1 + goto _44 + goto _42 + _42: + ; + goto _41 + _27: + ; + ex = Xnl_langinfo(tls, int32(AM_STR)) + len1 = _strlen(tls, ex) + if !(Xstrncasecmp(tls, s, ex, len1) != 0) { + **(**int32)(__ccgo_up(tm + 8)) %= int32(12) + s = s + uintptr(len1) + goto _41 + } + ex = Xnl_langinfo(tls, int32(PM_STR)) + len1 = _strlen(tls, ex) + if !(Xstrncasecmp(tls, s, ex, len1) != 0) { + **(**int32)(__ccgo_up(tm + 8)) %= int32(12) + **(**int32)(__ccgo_up(tm + 8)) += int32(12) + s = s + uintptr(len1) + goto _41 + } + return uintptr(0) + _28: + ; + s = Xstrptime(tls, s, Xnl_langinfo(tls, int32(T_FMT_AMPM)), tm) + if !(s != 0) { + return uintptr(0) + } + goto _41 + _29: + ; + s = Xstrptime(tls, s, __ccgo_ts+1826, tm) + if !(s != 0) { + return uintptr(0) + } + goto _41 + _30: + ; + dest = tm + min = 0 + range1 = int32(61) + goto numeric_range + _31: + ; + s = Xstrptime(tls, s, __ccgo_ts+1832, tm) + if !(s != 0) { + return uintptr(0) + } + goto _41 + _33: + ; + _32: + ; + /* Throw away result, for now. (FIXME?) */ + dest = bp + min = 0 + range1 = int32(54) + goto numeric_range + _34: + ; + dest = tm + 24 + min = 0 + range1 = int32(7) + goto numeric_range + _35: + ; + s = Xstrptime(tls, s, Xnl_langinfo(tls, int32(D_FMT)), tm) + if !(s != 0) { + return uintptr(0) + } + goto _41 + _36: + ; + s = Xstrptime(tls, s, Xnl_langinfo(tls, int32(T_FMT)), tm) + if !(s != 0) { + return uintptr(0) + } + goto _41 + _37: + ; + dest = bp + 8 + w = int32(2) + want_century = want_century | int32(1) + goto numeric_digits + _38: + ; + dest = tm + 20 + if w < 0 { + w = int32(4) + } + adj = int32(1900) + want_century = 0 + goto numeric_digits + _39: + ; + v9 = s + s = s + 1 + if Int32FromUint8(**(**uint8)(__ccgo_up(v9))) != int32('%') { + return uintptr(0) + } + goto _41 + _40: + ; + return uintptr(0) + goto numeric_range + numeric_range: + ; + if !(BoolInt32(uint32(**(**uint8)(__ccgo_up(s)))-Uint32FromUint8('0') < Uint32FromInt32(10)) != 0) { + return uintptr(0) + } + **(**int32)(__ccgo_up(dest)) = 0 + i = int32(1) + for { + if !(i <= min+range1 && BoolInt32(uint32(**(**uint8)(__ccgo_up(s)))-uint32('0') < uint32(10)) != 0) { + break + } + v9 = s + s = s + 1 + **(**int32)(__ccgo_up(dest)) = **(**int32)(__ccgo_up(dest))*int32(10) + Int32FromUint8(**(**uint8)(__ccgo_up(v9))) - int32('0') + goto _50 + _50: + ; + i = i * int32(10) + } + if Uint32FromInt32(**(**int32)(__ccgo_up(dest))-min) >= Uint32FromInt32(range1) { + return uintptr(0) + } + **(**int32)(__ccgo_up(dest)) -= adj + switch int64(dest) - int64(tm) { + case Int64FromUint64(uint64(UintptrFromInt32(0) + 28)): + } + goto update + goto numeric_digits + numeric_digits: + ; + neg = 0 + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('+') { + s = s + 1 + } else { + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('-') { + neg = int32(1) + s = s + 1 + } + } + if !(BoolInt32(uint32(**(**uint8)(__ccgo_up(s)))-Uint32FromUint8('0') < Uint32FromInt32(10)) != 0) { + return uintptr(0) + } + v1 = Int32FromInt32(0) + i = v1 + **(**int32)(__ccgo_up(dest)) = v1 + for { + if !(i < w && BoolInt32(uint32(**(**uint8)(__ccgo_up(s)))-uint32('0') < uint32(10)) != 0) { + break + } + v9 = s + s = s + 1 + **(**int32)(__ccgo_up(dest)) = **(**int32)(__ccgo_up(dest))*int32(10) + Int32FromUint8(**(**uint8)(__ccgo_up(v9))) - int32('0') + goto _52 + _52: + ; + i = i + 1 + } + if neg != 0 { + **(**int32)(__ccgo_up(dest)) = -**(**int32)(__ccgo_up(dest)) + } + **(**int32)(__ccgo_up(dest)) -= adj + goto update + goto symbolic_range + symbolic_range: + ; + i = int32(2)*range1 - int32(1) + for { + if !(i >= 0) { + break + } + ex = Xnl_langinfo(tls, min+i) + len1 = _strlen(tls, ex) + if Xstrncasecmp(tls, s, ex, len1) != 0 { + goto _55 + } + s = s + uintptr(len1) + **(**int32)(__ccgo_up(dest)) = i % range1 + break + goto _55 + _55: + ; + i = i - 1 + } + if i < 0 { + return uintptr(0) + } + goto update + goto update + update: + ; + //FIXME + _41: + } + if want_century != 0 { + (*Ttm)(unsafe.Pointer(tm)).Ftm_year = **(**int32)(__ccgo_up(bp + 8)) + if want_century&int32(2) != 0 { + **(**int32)(__ccgo_up(tm + 20)) += **(**int32)(__ccgo_up(bp + 4))*int32(100) - int32(1900) + } else { + if (*Ttm)(unsafe.Pointer(tm)).Ftm_year <= int32(68) { + **(**int32)(__ccgo_up(tm + 20)) += int32(100) + } + } + } + return s +} + +func Xtime(tls *TLS, t uintptr) (r Ttime_t) { + if __ccgo_strace { + trc("tls=%v t=%v, (%v:)", tls, t, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* ts at bp+0 */ Ttimespec + X__clock_gettime(tls, CLOCK_REALTIME, bp) + if t != 0 { + **(**Ttime_t)(__ccgo_up(t)) = (**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec + } + return (**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec +} + +func Xtimegm(tls *TLS, tm uintptr) (r Ttime_t) { + if __ccgo_strace { + trc("tls=%v tm=%v, (%v:)", tls, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var t int64 + var _ /* new at bp+0 */ Ttm1 + _ = t + t = X__tm_to_secs(tls, tm) + if X__secs_to_tm(tls, t, bp) < 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOVERFLOW) + return int64(-int32(1)) + } + **(**Ttm1)(__ccgo_up(tm)) = **(**Ttm1)(__ccgo_up(bp)) + (*Ttm1)(unsafe.Pointer(tm)).Ftm_isdst = 0 + (*Ttm1)(unsafe.Pointer(tm)).Ftm_gmtoff = 0 + (*Ttm1)(unsafe.Pointer(tm)).Ftm_zone = uintptr(unsafe.Pointer(&X__utc)) + return t +} + +func Xtimer_delete(tls *TLS, t Ttimer_t) (r int32) { + if __ccgo_strace { + trc("tls=%v t=%v, (%v:)", tls, t, origin(2)) + defer func() { trc("-> %v", r) }() + } + var td Tpthread_t + _ = td + if int64(t) < 0 { + td = uintptr(uint64(t) << Int32FromInt32(1)) + // __asm__ __volatile__ ("dmb ish" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 20, __ccgo_ts+1872) + AtomicStorePInt32(td+148, AtomicLoadPInt32(td+148)|(-Int32FromInt32(1)-Int32FromInt32(0x7fffffff))) + // __asm__ __volatile__ ("dmb ish" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 20, __ccgo_ts+1872) + X__syscall2(tls, int64(SYS_tkill), int64((*t__pthread)(unsafe.Pointer(td)).Ftid), int64(Int32FromInt32(SIGTIMER))) + return 0 + } + return int32(X__syscall1(tls, int64(SYS_timer_delete), int64(t))) +} + +func Xtimer_getoverrun(tls *TLS, t Ttimer_t) (r int32) { + if __ccgo_strace { + trc("tls=%v t=%v, (%v:)", tls, t, origin(2)) + defer func() { trc("-> %v", r) }() + } + var td Tpthread_t + _ = td + if int64(t) < 0 { + td = uintptr(uint64(t) << Int32FromInt32(1)) + t = uintptr(Uint64FromInt32(AtomicLoadPInt32(td+148) & Int32FromInt32(INT_MAX))) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_timer_getoverrun), int64(t))))) +} + +func Xtimer_gettime(tls *TLS, t Ttimer_t, val uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v t=%v val=%v, (%v:)", tls, t, val, origin(2)) + defer func() { trc("-> %v", r) }() + } + var td Tpthread_t + _ = td + if int64(t) < 0 { + td = uintptr(uint64(t) << Int32FromInt32(1)) + t = uintptr(Uint64FromInt32(AtomicLoadPInt32(td+148) & Int32FromInt32(INT_MAX))) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_timer_gettime), int64(t), int64(val))))) +} + +func Xtimer_settime(tls *TLS, t Ttimer_t, flags int32, val uintptr, old uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v t=%v flags=%v val=%v old=%v, (%v:)", tls, t, flags, val, old, origin(2)) + defer func() { trc("-> %v", r) }() + } + var td Tpthread_t + _ = td + if int64(t) < 0 { + td = uintptr(uint64(t) << Int32FromInt32(1)) + t = uintptr(Uint64FromInt32(AtomicLoadPInt32(td+148) & Int32FromInt32(INT_MAX))) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_timer_settime), int64(t), int64(flags), int64(val), int64(old))))) +} + +type Ttms = struct { + Ftms_utime Tclock_t + Ftms_stime Tclock_t + Ftms_cutime Tclock_t + Ftms_cstime Tclock_t +} + +func Xtimes(tls *TLS, tms uintptr) (r Tclock_t) { + if __ccgo_strace { + trc("tls=%v tms=%v, (%v:)", tls, tms, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall1(tls, int64(SYS_times), int64(tms)) +} + +// C documentation +// +// /* There is no other implemented value than TIME_UTC; all other values +// * are considered erroneous. */ +func Xtimespec_get(tls *TLS, ts uintptr, base int32) (r int32) { + if __ccgo_strace { + trc("tls=%v ts=%v base=%v, (%v:)", tls, ts, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret, v1 int32 + _, _ = ret, v1 + if base != int32(TIME_UTC) { + return 0 + } + ret = X__clock_gettime(tls, CLOCK_REALTIME, ts) + if ret < 0 { + v1 = 0 + } else { + v1 = base + } + return v1 +} + +type Tutimbuf = struct { + Factime Ttime_t + Fmodtime Ttime_t +} + +func Xutime(tls *TLS, path uintptr, times uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v times=%v, (%v:)", tls, path, times, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var v1 uintptr + _ = v1 + if times != 0 { + *(*[2]Ttimespec)(unsafe.Pointer(bp)) = [2]Ttimespec{ + 0: { + Ftv_sec: (*Tutimbuf)(unsafe.Pointer(times)).Factime, + }, + 1: { + Ftv_sec: (*Tutimbuf)(unsafe.Pointer(times)).Fmodtime, + }, + } + v1 = bp + } else { + v1 = uintptr(0) + } + return Xutimensat(tls, -int32(100), path, v1, 0) +} + +func X__wcsftime_l(tls *TLS, s uintptr, n Tsize_t, f uintptr, tm uintptr, loc Tlocale_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v f=%v tm=%v loc=%v, (%v:)", tls, s, n, f, tm, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(528) + defer tls.Free(528) + var l, v2 Tsize_t + var pad, plus, v4 int32 + var t, t_mb, v3 uintptr + var width uint64 + var _ /* buf at bp+8 */ [100]uint8 + var _ /* k at bp+0 */ Tsize_t + var _ /* p at bp+512 */ uintptr + var _ /* wbuf at bp+108 */ [100]Twchar_t + _, _, _, _, _, _, _, _, _ = l, pad, plus, t, t_mb, width, v2, v3, v4 + l = uint64(0) + for { + if !(l < n) { + break + } + if !(**(**Twchar_t)(__ccgo_up(f)) != 0) { + **(**Twchar_t)(__ccgo_up(s + uintptr(l)*4)) = uint32(0) + return l + } + if **(**Twchar_t)(__ccgo_up(f)) != uint32('%') { + v2 = l + l = l + 1 + **(**Twchar_t)(__ccgo_up(s + uintptr(v2)*4)) = **(**Twchar_t)(__ccgo_up(f)) + goto _1 + } + f += 4 + pad = 0 + if **(**Twchar_t)(__ccgo_up(f)) == uint32('-') || **(**Twchar_t)(__ccgo_up(f)) == uint32('_') || **(**Twchar_t)(__ccgo_up(f)) == uint32('0') { + v3 = f + f += 4 + pad = Int32FromUint32(**(**Twchar_t)(__ccgo_up(v3))) + } + v4 = BoolInt32(**(**Twchar_t)(__ccgo_up(f)) == Uint32FromUint8('+')) + plus = v4 + if v4 != 0 { + f += 4 + } + width = Xwcstoul(tls, f, bp+512, int32(10)) + if **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 512)))) == uint32('C') || **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 512)))) == uint32('F') || **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 512)))) == uint32('G') || **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 512)))) == uint32('Y') { + if !(width != 0) && **(**uintptr)(__ccgo_up(bp + 512)) != f { + width = uint64(1) + } + } else { + width = uint64(0) + } + f = **(**uintptr)(__ccgo_up(bp + 512)) + if **(**Twchar_t)(__ccgo_up(f)) == uint32('E') || **(**Twchar_t)(__ccgo_up(f)) == uint32('O') { + f += 4 + } + t_mb = X__strftime_fmt_1(tls, bp+8, bp, Int32FromUint32(**(**Twchar_t)(__ccgo_up(f))), tm, loc, pad) + if !(t_mb != 0) { + break + } + **(**Tsize_t)(__ccgo_up(bp)) = Xmbstowcs(tls, bp+108, t_mb, Uint64FromInt64(400)/Uint64FromInt64(4)) + if **(**Tsize_t)(__ccgo_up(bp)) == Uint64FromInt32(-Int32FromInt32(1)) { + return uint64(0) + } + t = bp + 108 + if width != 0 { + for { + if !(**(**Twchar_t)(__ccgo_up(t)) == uint32('+') || **(**Twchar_t)(__ccgo_up(t)) == uint32('-') || **(**Twchar_t)(__ccgo_up(t)) == uint32('0') && **(**Twchar_t)(__ccgo_up(t + 1*4)) != 0) { + break + } + goto _5 + _5: + ; + t += 4 + **(**Tsize_t)(__ccgo_up(bp)) = **(**Tsize_t)(__ccgo_up(bp)) - 1 + } + width = width - 1 + if plus != 0 && (*Ttm)(unsafe.Pointer(tm)).Ftm_year >= Int32FromInt32(10000)-Int32FromInt32(1900) { + v2 = l + l = l + 1 + **(**Twchar_t)(__ccgo_up(s + uintptr(v2)*4)) = uint32('+') + } else { + if (*Ttm)(unsafe.Pointer(tm)).Ftm_year < -int32(1900) { + v2 = l + l = l + 1 + **(**Twchar_t)(__ccgo_up(s + uintptr(v2)*4)) = uint32('-') + } else { + width = width + 1 + } + } + for { + if !(width > **(**Tsize_t)(__ccgo_up(bp)) && l < n) { + break + } + v2 = l + l = l + 1 + **(**Twchar_t)(__ccgo_up(s + uintptr(v2)*4)) = uint32('0') + goto _8 + _8: + ; + width = width - 1 + } + } + if **(**Tsize_t)(__ccgo_up(bp)) >= n-l { + **(**Tsize_t)(__ccgo_up(bp)) = n - l + } + Xwmemcpy(tls, s+uintptr(l)*4, t, **(**Tsize_t)(__ccgo_up(bp))) + l = l + **(**Tsize_t)(__ccgo_up(bp)) + goto _1 + _1: + ; + f += 4 + } + if n != 0 { + if l == n { + l = n - uint64(1) + } + **(**Twchar_t)(__ccgo_up(s + uintptr(l)*4)) = uint32(0) + } + return uint64(0) +} + +func Xwcsftime(tls *TLS, wcs uintptr, n Tsize_t, f uintptr, tm uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v wcs=%v n=%v f=%v tm=%v, (%v:)", tls, wcs, n, f, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__wcsftime_l(tls, wcs, n, f, tm, (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale) +} + +func Xwcsftime_l(tls *TLS, s uintptr, n Tsize_t, f uintptr, tm uintptr, loc Tlocale_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v f=%v tm=%v loc=%v, (%v:)", tls, s, n, f, tm, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__wcsftime_l(tls, s, n, f, tm, loc) +} + +func X_exit(tls *TLS, status int32) { + if __ccgo_strace { + trc("tls=%v status=%v, (%v:)", tls, status, origin(2)) + } + X_Exit(tls, status) +} + +func Xaccess(tls *TLS, filename uintptr, amode int32) (r int32) { + if __ccgo_strace { + trc("tls=%v filename=%v amode=%v, (%v:)", tls, filename, amode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_faccessat), int64(-Int32FromInt32(100)), int64(filename), int64(amode), int64(Int32FromInt32(0)))))) +} + +func Xacct(tls *TLS, filename uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v filename=%v, (%v:)", tls, filename, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_acct), int64(filename))))) +} + +func Xalarm(tls *TLS, seconds uint32) (r uint32) { + if __ccgo_strace { + trc("tls=%v seconds=%v, (%v:)", tls, seconds, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var _ /* it at bp+0 */ Titimerval + var _ /* old at bp+32 */ Titimerval + **(**Titimerval)(__ccgo_up(bp)) = Titimerval{ + Fit_value: Ttimeval{ + Ftv_sec: Int64FromUint32(seconds), + }, + } + **(**Titimerval)(__ccgo_up(bp + 32)) = Titimerval{} + Xsetitimer(tls, ITIMER_REAL, bp, bp+32) + return Uint32FromInt64((**(**Titimerval)(__ccgo_up(bp + 32))).Fit_value.Ftv_sec + BoolInt64(!!((**(**Titimerval)(__ccgo_up(bp + 32))).Fit_value.Ftv_usec != 0))) +} + +func Xchdir(tls *TLS, path uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v, (%v:)", tls, path, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_chdir), int64(path))))) +} + +func Xchown(tls *TLS, path uintptr, uid Tuid_t, gid Tgid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v uid=%v gid=%v, (%v:)", tls, path, uid, gid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_fchownat), int64(-Int32FromInt32(100)), int64(path), Int64FromUint32(uid), Int64FromUint32(gid), int64(Int32FromInt32(0)))))) +} + +func _dummy12(tls *TLS, fd int32) (r int32) { + return fd +} + +func Xclose(tls *TLS, fd int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + fd = _dummy12(tls, fd) + r = int32(___syscall_cp(tls, int64(SYS_close), int64(fd), 0, 0, 0, 0, 0)) + if r == -int32(EINTR) { + r = 0 + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func Xctermid(tls *TLS, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 uintptr + _ = v1 + if s != 0 { + v1 = Xstrcpy(tls, s, __ccgo_ts+292) + } else { + v1 = __ccgo_ts + 292 + } + return v1 +} + +func Xdup(tls *TLS, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_dup), int64(fd))))) +} + +func Xdup2(tls *TLS, old int32, new1 int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v old=%v new1=%v, (%v:)", tls, old, new1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v1 int32 + _, _ = r, v1 + if old == new1 { + r = int32(X__syscall2(tls, int64(SYS_fcntl), int64(old), int64(Int32FromInt32(F_GETFD)))) + if r >= 0 { + return old + } + } else { + for { + v1 = int32(X__syscall3(tls, int64(SYS_dup3), int64(old), int64(new1), int64(Int32FromInt32(0)))) + r = v1 + if !(v1 == -int32(EBUSY)) { + break + } + } + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func X__dup3(tls *TLS, old int32, new1 int32, flags int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v old=%v new1=%v flags=%v, (%v:)", tls, old, new1, flags, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v1 int32 + _, _ = r, v1 + for { + v1 = int32(X__syscall3(tls, int64(SYS_dup3), int64(old), int64(new1), int64(flags))) + r = v1 + if !(v1 == -int32(EBUSY)) { + break + } + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func Xdup3(tls *TLS, old int32, new1 int32, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v old=%v new1=%v flags=%v, (%v:)", tls, old, new1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__dup3(tls, old, new1, flags) +} + +type Tctx1 = struct { + Ffd int32 + Ffilename uintptr + Famode int32 + Fp int32 +} + +func _checker(tls *TLS, p uintptr) (r int32) { + bp := tls.Alloc(16) + defer tls.Free(16) + var c uintptr + var _ /* ret at bp+0 */ int32 + _ = c + c = p + if X__syscall2(tls, int64(SYS_setregid), X__syscall0(tls, int64(SYS_getegid)), int64(-Int32FromInt32(1))) != 0 || X__syscall2(tls, int64(SYS_setreuid), X__syscall0(tls, int64(SYS_geteuid)), int64(-Int32FromInt32(1))) != 0 { + X__syscall1(tls, int64(SYS_exit), int64(Int32FromInt32(1))) + } + **(**int32)(__ccgo_up(bp)) = int32(X__syscall4(tls, int64(SYS_faccessat), int64((*Tctx1)(unsafe.Pointer(c)).Ffd), int64((*Tctx1)(unsafe.Pointer(c)).Ffilename), int64((*Tctx1)(unsafe.Pointer(c)).Famode), int64(Int32FromInt32(0)))) + X__syscall3(tls, int64(SYS_write), int64((*Tctx1)(unsafe.Pointer(c)).Fp), int64(bp), Int64FromUint64(Uint64FromInt64(4))) + return 0 +} + +func Xfaccessat(tls *TLS, fd int32, filename uintptr, amode int32, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v filename=%v amode=%v flag=%v, (%v:)", tls, fd, filename, amode, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret int32 + _ = ret + if flag != 0 { + ret = int32(X__syscall4(tls, int64(SYS_faccessat2), int64(fd), int64(filename), int64(amode), int64(flag))) + if ret != -int32(ENOSYS) { + return int32(X__syscall_ret(tls, Uint64FromInt32(ret))) + } + } + if flag & ^Int32FromInt32(AT_EACCESS) != 0 { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL)))) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_faccessat), int64(fd), int64(filename), int64(amode))))) +} + +func Xfchdir(tls *TLS, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var ret int32 + var _ /* buf at bp+0 */ [27]uint8 + _ = ret + ret = int32(X__syscall1(tls, int64(SYS_fchdir), int64(fd))) + if ret != -int32(EBADF) || X__syscall2(tls, int64(SYS_fcntl), int64(fd), int64(Int32FromInt32(F_GETFD))) < 0 { + return int32(X__syscall_ret(tls, Uint64FromInt32(ret))) + } + X__procfdname(tls, bp, Uint32FromInt32(fd)) + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_chdir), int64(bp))))) +} + +func Xfchown(tls *TLS, fd int32, uid Tuid_t, gid Tgid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v uid=%v gid=%v, (%v:)", tls, fd, uid, gid, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var ret int32 + var _ /* buf at bp+0 */ [27]uint8 + _ = ret + ret = int32(X__syscall3(tls, int64(SYS_fchown), int64(fd), Int64FromUint32(uid), Int64FromUint32(gid))) + if ret != -int32(EBADF) || X__syscall2(tls, int64(SYS_fcntl), int64(fd), int64(Int32FromInt32(F_GETFD))) < 0 { + return int32(X__syscall_ret(tls, Uint64FromInt32(ret))) + } + X__procfdname(tls, bp, Uint32FromInt32(fd)) + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_fchownat), int64(-Int32FromInt32(100)), int64(bp), Int64FromUint32(uid), Int64FromUint32(gid), int64(Int32FromInt32(0)))))) +} + +func Xfchownat(tls *TLS, fd int32, path uintptr, uid Tuid_t, gid Tgid_t, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v path=%v uid=%v gid=%v flag=%v, (%v:)", tls, fd, path, uid, gid, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_fchownat), int64(fd), int64(path), Int64FromUint32(uid), Int64FromUint32(gid), int64(flag))))) +} + +func Xfdatasync(tls *TLS, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_fdatasync), int64(fd), 0, 0, 0, 0, 0)))) +} + +func Xfsync(tls *TLS, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_fsync), int64(fd), 0, 0, 0, 0, 0)))) +} + +func Xftruncate(tls *TLS, fd int32, length Toff_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v length=%v, (%v:)", tls, fd, length, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_ftruncate), int64(fd), length)))) +} + +func Xgetcwd(tls *TLS, buf uintptr, size Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v buf=%v size=%v, (%v:)", tls, buf, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret int64 + var tmp, v3 uintptr + var v1 t__predefined_size_t + var v2 int32 + _, _, _, _, _ = ret, tmp, v1, v2, v3 + defer func() { Xrealloc(tls, tmp, 0) }() + if buf != 0 { + v2 = int32(1) + } else { + v2 = int32(PATH_MAX) + } + v1 = Uint64FromInt32(v2) + tmp = Xrealloc(tls, tmp, v1) + if !(buf != 0) { + buf = tmp + size = v1 + } else { + if !(size != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(0) + } + } + ret = X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_getcwd), int64(buf), Int64FromUint64(size)))) + if ret < 0 { + return uintptr(0) + } + if ret == 0 || Int32FromUint8(**(**uint8)(__ccgo_up(buf))) != int32('/') { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOENT) + return uintptr(0) + } + if buf == tmp { + v3 = Xstrdup(tls, buf) + } else { + v3 = buf + } + return v3 +} + +func Xgetegid(tls *TLS) (r Tgid_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Uint32FromInt64(X__syscall0(tls, int64(SYS_getegid))) +} + +func Xgeteuid(tls *TLS) (r Tuid_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Uint32FromInt64(X__syscall0(tls, int64(SYS_geteuid))) +} + +func Xgetgid(tls *TLS) (r Tgid_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Uint32FromInt64(X__syscall0(tls, int64(SYS_getgid))) +} + +func Xgetgroups(tls *TLS, count int32, list uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v count=%v list=%v, (%v:)", tls, count, list, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_getgroups), int64(count), int64(list))))) +} + +func Xgethostname(tls *TLS, name uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v len1=%v, (%v:)", tls, name, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(400) + defer tls.Free(400) + var i Tsize_t + var v2 uint8 + var v3 bool + var _ /* uts at bp+0 */ Tutsname1 + _, _, _ = i, v2, v3 + if Xuname(tls, bp) != 0 { + return -int32(1) + } + if len1 > uint64(65) { + len1 = uint64(65) + } + i = uint64(0) + for { + if v3 = i < len1; v3 { + v2 = **(**uint8)(__ccgo_up(bp + 65 + uintptr(i))) + **(**uint8)(__ccgo_up(name + uintptr(i))) = v2 + } + if !(v3 && v2 != 0) { + break + } + goto _1 + _1: + ; + i = i + 1 + } + if i != 0 && i == len1 { + **(**uint8)(__ccgo_up(name + uintptr(i-uint64(1)))) = uint8(0) + } + return 0 +} + +func Xgetlogin(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetenv(tls, __ccgo_ts+1885) +} + +func Xgetlogin_r(tls *TLS, name uintptr, size Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v size=%v, (%v:)", tls, name, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + var logname uintptr + _ = logname + logname = Xgetlogin(tls) + if !(logname != 0) { + return int32(ENXIO) + } /* or...? */ + if _strlen(tls, logname) >= size { + return int32(ERANGE) + } + Xstrcpy(tls, name, logname) + return 0 +} + +func Xgetpgid(tls *TLS, pid Tpid_t) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v pid=%v, (%v:)", tls, pid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_getpgid), int64(pid))))) +} + +func Xgetpgrp(tls *TLS) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall1(tls, int64(SYS_getpgid), int64(Int32FromInt32(0)))) +} + +func Xgetpid(tls *TLS) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall0(tls, int64(SYS_getpid))) +} + +func Xgetppid(tls *TLS) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall0(tls, int64(SYS_getppid))) +} + +func Xgetsid(tls *TLS, pid Tpid_t) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v pid=%v, (%v:)", tls, pid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_getsid), int64(pid))))) +} + +func Xgetuid(tls *TLS) (r Tuid_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Uint32FromInt64(X__syscall0(tls, int64(SYS_getuid))) +} + +func Xisatty(tls *TLS, fd int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var r uint64 + var _ /* wsz at bp+0 */ Twinsize + _ = r + r = Uint64FromInt64(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_ioctl), int64(fd), int64(Int32FromInt32(TIOCGWINSZ)), int64(bp))))) + if r == uint64(0) { + return int32(1) + } + if **(**int32)(__ccgo_up(X__errno_location(tls))) != int32(EBADF) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOTTY) + } + return 0 +} + +func Xlchown(tls *TLS, path uintptr, uid Tuid_t, gid Tgid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v uid=%v gid=%v, (%v:)", tls, path, uid, gid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_fchownat), int64(-Int32FromInt32(100)), int64(path), Int64FromUint32(uid), Int64FromUint32(gid), int64(Int32FromInt32(AT_SYMLINK_NOFOLLOW)))))) +} + +func Xlink(tls *TLS, existing uintptr, new1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v existing=%v new1=%v, (%v:)", tls, existing, new1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_linkat), int64(-Int32FromInt32(100)), int64(existing), int64(-Int32FromInt32(100)), int64(new1), int64(Int32FromInt32(0)))))) +} + +func Xlinkat(tls *TLS, fd1 int32, existing uintptr, fd2 int32, new1 uintptr, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd1=%v existing=%v fd2=%v new1=%v flag=%v, (%v:)", tls, fd1, existing, fd2, new1, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_linkat), int64(fd1), int64(existing), int64(fd2), int64(new1), int64(flag))))) +} + +func X__lseek(tls *TLS, fd int32, offset Toff_t, whence int32) (r Toff_t) { + if __ccgo_strace { + trc("tls=%v fd=%v offset=%v whence=%v, (%v:)", tls, fd, offset, whence, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_lseek), int64(fd), offset, int64(whence)))) +} + +func Xlseek(tls *TLS, fd int32, offset Toff_t, whence int32) (r Toff_t) { + if __ccgo_strace { + trc("tls=%v fd=%v offset=%v whence=%v, (%v:)", tls, fd, offset, whence, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lseek(tls, fd, offset, whence) +} + +func Xnice(tls *TLS, inc int32) (r int32) { + if __ccgo_strace { + trc("tls=%v inc=%v, (%v:)", tls, inc, origin(2)) + defer func() { trc("-> %v", r) }() + } + var prio int32 + _ = prio + prio = inc + // Only query old priority if it can affect the result. + // This also avoids issues with integer overflow. + if inc > -Int32FromInt32(2)*Int32FromInt32(NZERO) && inc < Int32FromInt32(2)*Int32FromInt32(NZERO) { + prio = prio + Xgetpriority(tls, PRIO_PROCESS, uint32(0)) + } + if prio > Int32FromInt32(NZERO)-Int32FromInt32(1) { + prio = Int32FromInt32(NZERO) - Int32FromInt32(1) + } + if prio < -int32(NZERO) { + prio = -int32(NZERO) + } + if Xsetpriority(tls, PRIO_PROCESS, uint32(0), prio) != 0 { + if **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EACCES) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EPERM) + } + return -int32(1) + } else { + return prio + } + return r +} + +func Xpause(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_ppoll), int64(Int32FromInt32(0)), int64(Int32FromInt32(0)), int64(Int32FromInt32(0)), int64(Int32FromInt32(0)), 0, 0)))) +} + +func Xpipe(tls *TLS, fd uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_pipe2), int64(fd), int64(Int32FromInt32(0)))))) +} + +func Xpipe2(tls *TLS, fd uintptr, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v flag=%v, (%v:)", tls, fd, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret int32 + _ = ret + if !(flag != 0) { + return Xpipe(tls, fd) + } + ret = int32(X__syscall2(tls, int64(SYS_pipe2), int64(fd), int64(flag))) + if ret != -int32(ENOSYS) { + return int32(X__syscall_ret(tls, Uint64FromInt32(ret))) + } + if flag & ^(Int32FromInt32(O_CLOEXEC)|Int32FromInt32(O_NONBLOCK)) != 0 { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL)))) + } + ret = Xpipe(tls, fd) + if ret != 0 { + return ret + } + if flag&int32(O_CLOEXEC) != 0 { + X__syscall3(tls, int64(SYS_fcntl), int64(**(**int32)(__ccgo_up(fd))), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + X__syscall3(tls, int64(SYS_fcntl), int64(**(**int32)(__ccgo_up(fd + 1*4))), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + } + if flag&int32(O_NONBLOCK) != 0 { + X__syscall3(tls, int64(SYS_fcntl), int64(**(**int32)(__ccgo_up(fd))), int64(Int32FromInt32(F_SETFL)), int64(Int32FromInt32(O_NONBLOCK))) + X__syscall3(tls, int64(SYS_fcntl), int64(**(**int32)(__ccgo_up(fd + 1*4))), int64(Int32FromInt32(F_SETFL)), int64(Int32FromInt32(O_NONBLOCK))) + } + return 0 +} + +func Xposix_close(tls *TLS, fd int32, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v flags=%v, (%v:)", tls, fd, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xclose(tls, fd) +} + +func Xpread(tls *TLS, fd int32, buf uintptr, size Tsize_t, ofs Toff_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v size=%v ofs=%v, (%v:)", tls, fd, buf, size, ofs, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_pread64), int64(fd), int64(buf), Int64FromUint64(size), ofs, 0, 0))) +} + +func Xpreadv(tls *TLS, fd int32, iov uintptr, count int32, ofs Toff_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v iov=%v count=%v ofs=%v, (%v:)", tls, fd, iov, count, ofs, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_preadv), int64(fd), int64(iov), int64(count), ofs, ofs>>Int32FromInt32(32), 0))) +} + +func Xpwrite(tls *TLS, fd int32, buf uintptr, size Tsize_t, ofs Toff_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v size=%v ofs=%v, (%v:)", tls, fd, buf, size, ofs, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_pwrite64), int64(fd), int64(buf), Int64FromUint64(size), ofs, 0, 0))) +} + +func Xpwritev(tls *TLS, fd int32, iov uintptr, count int32, ofs Toff_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v iov=%v count=%v ofs=%v, (%v:)", tls, fd, iov, count, ofs, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_pwritev), int64(fd), int64(iov), int64(count), ofs, ofs>>Int32FromInt32(32), 0))) +} + +func Xread(tls *TLS, fd int32, buf uintptr, count Tsize_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v count=%v, (%v:)", tls, fd, buf, count, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_read), int64(fd), int64(buf), Int64FromUint64(count), 0, 0, 0))) +} + +func Xreadlink(tls *TLS, path uintptr, buf uintptr, bufsize Tsize_t) (r1 Tssize_t) { + if __ccgo_strace { + trc("tls=%v path=%v buf=%v bufsize=%v, (%v:)", tls, path, buf, bufsize, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var r int32 + var _ /* dummy at bp+0 */ [1]uint8 + _ = r + if !(bufsize != 0) { + buf = bp + bufsize = uint64(1) + } + r = int32(X__syscall4(tls, int64(SYS_readlinkat), int64(-Int32FromInt32(100)), int64(path), int64(buf), Int64FromUint64(bufsize))) + if buf == bp && r > 0 { + r = 0 + } + return X__syscall_ret(tls, Uint64FromInt32(r)) +} + +func Xreadlinkat(tls *TLS, fd int32, path uintptr, buf uintptr, bufsize Tsize_t) (r1 Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v path=%v buf=%v bufsize=%v, (%v:)", tls, fd, path, buf, bufsize, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var r int32 + var _ /* dummy at bp+0 */ [1]uint8 + _ = r + if !(bufsize != 0) { + buf = bp + bufsize = uint64(1) + } + r = int32(X__syscall4(tls, int64(SYS_readlinkat), int64(fd), int64(path), int64(buf), Int64FromUint64(bufsize))) + if buf == bp && r > 0 { + r = 0 + } + return X__syscall_ret(tls, Uint64FromInt32(r)) +} + +func Xreadv(tls *TLS, fd int32, iov uintptr, count int32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v iov=%v count=%v, (%v:)", tls, fd, iov, count, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_readv), int64(fd), int64(iov), int64(count), 0, 0, 0))) +} + +func Xrenameat(tls *TLS, oldfd int32, old uintptr, newfd int32, new1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v oldfd=%v old=%v newfd=%v new1=%v, (%v:)", tls, oldfd, old, newfd, new1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_renameat), int64(oldfd), int64(old), int64(newfd), int64(new1))))) +} + +func Xrmdir(tls *TLS, path uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v, (%v:)", tls, path, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_unlinkat), int64(-Int32FromInt32(100)), int64(path), int64(Int32FromInt32(AT_REMOVEDIR)))))) +} + +func Xsetgid(tls *TLS, gid Tgid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v gid=%v, (%v:)", tls, gid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__setxid(tls, int32(SYS_setgid), Int32FromUint32(gid), 0, 0) +} + +func Xsetpgid(tls *TLS, pid Tpid_t, pgid Tpid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v pid=%v pgid=%v, (%v:)", tls, pid, pgid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_setpgid), int64(pid), int64(pgid))))) +} + +func Xsetpgrp(tls *TLS) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xsetpgid(tls, 0, 0) +} + +func Xsetsid(tls *TLS) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall0(tls, int64(SYS_setsid))))) +} + +func Xsetuid(tls *TLS, uid Tuid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v uid=%v, (%v:)", tls, uid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__setxid(tls, int32(SYS_setuid), Int32FromUint32(uid), 0, 0) +} + +type Tctx2 = struct { + Fid int32 + Feid int32 + Fsid int32 + Fnr int32 + Fret int32 +} + +func _do_setxid(tls *TLS, p uintptr) { + var c uintptr + var ret int32 + _, _ = c, ret + c = p + if (*Tctx2)(unsafe.Pointer(c)).Fret < 0 { + return + } + ret = int32(X__syscall3(tls, int64((*Tctx2)(unsafe.Pointer(c)).Fnr), int64((*Tctx2)(unsafe.Pointer(c)).Fid), int64((*Tctx2)(unsafe.Pointer(c)).Feid), int64((*Tctx2)(unsafe.Pointer(c)).Fsid))) + if ret != 0 && !((*Tctx2)(unsafe.Pointer(c)).Fret != 0) { + /* If one thread fails to set ids after another has already + * succeeded, forcibly killing the process is the only safe + * thing to do. State is inconsistent and dangerous. Use + * SIGKILL because it is uncatchable. */ + X__block_all_sigs(tls, uintptr(0)) + X__syscall2(tls, int64(SYS_kill), X__syscall0(tls, int64(SYS_getpid)), int64(Int32FromInt32(SIGKILL))) + } + (*Tctx2)(unsafe.Pointer(c)).Fret = ret +} + +func X__setxid(tls *TLS, nr int32, id int32, eid int32, sid int32) (r int32) { + if __ccgo_strace { + trc("tls=%v nr=%v id=%v eid=%v sid=%v, (%v:)", tls, nr, id, eid, sid, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var v1 int32 + var _ /* c at bp+0 */ Tctx2 + _ = v1 + /* ret is initially nonzero so that failure of the first thread does not + * trigger the safety kill above. */ + **(**Tctx2)(__ccgo_up(bp)) = Tctx2{ + Fid: id, + Feid: eid, + Fsid: sid, + Fnr: nr, + Fret: int32(1), + } + ___synccall(tls, __ccgo_fp(_do_setxid), bp) + if (**(**Tctx2)(__ccgo_up(bp))).Fret > 0 { + v1 = -int32(EAGAIN) + } else { + v1 = (**(**Tctx2)(__ccgo_up(bp))).Fret + } + return int32(X__syscall_ret(tls, Uint64FromInt32(v1))) +} + +func Xsleep(tls *TLS, seconds uint32) (r uint32) { + if __ccgo_strace { + trc("tls=%v seconds=%v, (%v:)", tls, seconds, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* tv at bp+0 */ Ttimespec + **(**Ttimespec)(__ccgo_up(bp)) = Ttimespec{ + Ftv_sec: Int64FromUint32(seconds), + } + if Xnanosleep(tls, bp, bp) != 0 { + return Uint32FromInt64((**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec) + } + return uint32(0) +} + +func Xsymlink(tls *TLS, existing uintptr, new1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v existing=%v new1=%v, (%v:)", tls, existing, new1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_symlinkat), int64(existing), int64(-Int32FromInt32(100)), int64(new1))))) +} + +func Xsymlinkat(tls *TLS, existing uintptr, fd int32, new1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v existing=%v fd=%v new1=%v, (%v:)", tls, existing, fd, new1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_symlinkat), int64(existing), int64(fd), int64(new1))))) +} + +func Xsync(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + X__syscall0(tls, int64(SYS_sync)) +} + +func Xtcgetpgrp(tls *TLS, fd int32) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var _ /* pgrp at bp+0 */ int32 + if Xioctl(tls, fd, int32(TIOCGPGRP), VaList(bp+16, bp)) < 0 { + return -int32(1) + } + return **(**int32)(__ccgo_up(bp)) +} + +func Xtcsetpgrp(tls *TLS, fd int32, pgrp Tpid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v pgrp=%v, (%v:)", tls, fd, pgrp, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var _ /* pgrp_int at bp+0 */ int32 + **(**int32)(__ccgo_up(bp)) = pgrp + return Xioctl(tls, fd, int32(TIOCSPGRP), VaList(bp+16, bp)) +} + +func Xtruncate(tls *TLS, path uintptr, length Toff_t) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v length=%v, (%v:)", tls, path, length, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_truncate), int64(path), length)))) +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xttyname(tls *TLS, fd int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + var result, v1 int32 + _, _ = result, v1 + v1 = Xttyname_r(tls, fd, uintptr(unsafe.Pointer(&_buf10)), uint64(32)) + result = v1 + if v1 != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = result + return UintptrFromInt32(0) + } + return uintptr(unsafe.Pointer(&_buf10)) +} + +var _buf10 [32]uint8 + +func Xttyname_r(tls *TLS, fd int32, name uintptr, size Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v name=%v size=%v, (%v:)", tls, fd, name, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(288) + defer tls.Free(288) + var l Tssize_t + var _ /* procname at bp+256 */ [29]uint8 + var _ /* st1 at bp+0 */ Tstat + var _ /* st2 at bp+128 */ Tstat + _ = l + if !(Xisatty(tls, fd) != 0) { + return **(**int32)(__ccgo_up(X__errno_location(tls))) + } + X__procfdname(tls, bp+256, Uint32FromInt32(fd)) + l = Xreadlink(tls, bp+256, name, size) + if l < 0 { + return **(**int32)(__ccgo_up(X__errno_location(tls))) + } else { + if Uint64FromInt64(l) == size { + return int32(ERANGE) + } + } + **(**uint8)(__ccgo_up(name + uintptr(l))) = uint8(0) + if Xstat(tls, name, bp) != 0 || Xfstat(tls, fd, bp+128) != 0 { + return **(**int32)(__ccgo_up(X__errno_location(tls))) + } + if (**(**Tstat)(__ccgo_up(bp))).Fst_dev != (**(**Tstat)(__ccgo_up(bp + 128))).Fst_dev || (**(**Tstat)(__ccgo_up(bp))).Fst_ino != (**(**Tstat)(__ccgo_up(bp + 128))).Fst_ino { + return int32(ENODEV) + } + return 0 +} + +func Xualarm(tls *TLS, value uint32, interval uint32) (r uint32) { + if __ccgo_strace { + trc("tls=%v value=%v interval=%v, (%v:)", tls, value, interval, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var _ /* it at bp+0 */ Titimerval + var _ /* it_old at bp+32 */ Titimerval + **(**Titimerval)(__ccgo_up(bp)) = Titimerval{ + Fit_interval: Ttimeval{ + Ftv_usec: Int64FromUint32(interval), + }, + Fit_value: Ttimeval{ + Ftv_usec: Int64FromUint32(value), + }, + } + Xsetitimer(tls, ITIMER_REAL, bp, bp+32) + return Uint32FromInt64((**(**Titimerval)(__ccgo_up(bp + 32))).Fit_value.Ftv_sec*int64(1000000) + (**(**Titimerval)(__ccgo_up(bp + 32))).Fit_value.Ftv_usec) +} + +func Xunlink(tls *TLS, path uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v, (%v:)", tls, path, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_unlinkat), int64(-Int32FromInt32(100)), int64(path), int64(Int32FromInt32(0)))))) +} + +func Xunlinkat(tls *TLS, fd int32, path uintptr, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v path=%v flag=%v, (%v:)", tls, fd, path, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_unlinkat), int64(fd), int64(path), int64(flag))))) +} + +func Xusleep(tls *TLS, useconds uint32) (r int32) { + if __ccgo_strace { + trc("tls=%v useconds=%v, (%v:)", tls, useconds, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* tv at bp+0 */ Ttimespec + **(**Ttimespec)(__ccgo_up(bp)) = Ttimespec{ + Ftv_sec: Int64FromUint32(useconds / uint32(1000000)), + Ftv_nsec: Int64FromUint32(useconds % uint32(1000000) * uint32(1000)), + } + return Xnanosleep(tls, bp, bp) +} + +func Xwrite(tls *TLS, fd int32, buf uintptr, count Tsize_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v count=%v, (%v:)", tls, fd, buf, count, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_write), int64(fd), int64(buf), Int64FromUint64(count), 0, 0, 0))) +} + +func Xwritev(tls *TLS, fd int32, iov uintptr, count int32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v iov=%v count=%v, (%v:)", tls, fd, iov, count, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_writev), int64(fd), int64(iov), int64(count), 0, 0, 0))) +} + +func __ccgo_fp(f interface{}) uintptr { + type iface [2]uintptr + return (*iface)(unsafe.Pointer(&f))[1] +} + +func __ccgo_up(n uintptr) unsafe.Pointer { + return unsafe.Pointer(&n) +} + +var X__abort_lock [1]int32 + +var X__at_quick_exit_lockptr = uintptr(unsafe.Pointer(&_lock)) + +var X__c_dot_utf8 = t__locale_map{ + Fmap1: uintptr(unsafe.Pointer(&_empty_mo)), + Fmap_size: uint64(20), + Fname: [24]uint8{'C', '.', 'U', 'T', 'F', '-', '8'}, +} + +var X__c_dot_utf8_locale = t__locale_struct{ + Fcat: [6]uintptr{ + 0: uintptr(unsafe.Pointer(&X__c_dot_utf8)), + }, +} + +var X__c_locale = t__locale_struct{} + +var Xdaylight int32 + +var X__eintr_valid_flag int32 + +var Xenviron uintptr + +var X__exp2f_data = Texp2f_data{ + Ftab: [32]Tuint64_t{ + 0: uint64(0x3ff0000000000000), + 1: uint64(0x3fefd9b0d3158574), + 2: uint64(0x3fefb5586cf9890f), + 3: uint64(0x3fef9301d0125b51), + 4: uint64(0x3fef72b83c7d517b), + 5: uint64(0x3fef54873168b9aa), + 6: uint64(0x3fef387a6e756238), + 7: uint64(0x3fef1e9df51fdee1), + 8: uint64(0x3fef06fe0a31b715), + 9: uint64(0x3feef1a7373aa9cb), + 10: uint64(0x3feedea64c123422), + 11: uint64(0x3feece086061892d), + 12: uint64(0x3feebfdad5362a27), + 13: uint64(0x3feeb42b569d4f82), + 14: uint64(0x3feeab07dd485429), + 15: uint64(0x3feea47eb03a5585), + 16: uint64(0x3feea09e667f3bcd), + 17: uint64(0x3fee9f75e8ec5f74), + 18: uint64(0x3feea11473eb0187), + 19: uint64(0x3feea589994cce13), + 20: uint64(0x3feeace5422aa0db), + 21: uint64(0x3feeb737b0cdc5e5), + 22: uint64(0x3feec49182a3f090), + 23: uint64(0x3feed503b23e255d), + 24: uint64(0x3feee89f995ad3ad), + 25: uint64(0x3feeff76f2fb5e47), + 26: uint64(0x3fef199bdd85529c), + 27: uint64(0x3fef3720dcef9069), + 28: uint64(0x3fef5818dcfba487), + 29: uint64(0x3fef7c97337b9b5f), + 30: uint64(0x3fefa4afa2a490da), + 31: uint64(0x3fefd0765b6e4540), + }, + Fshift_scaled: Float64FromFloat64(6.755399441055744e+15) / float64(Int32FromInt32(1)<>Int32FromInt32(6) | Uint32FromInt32(0x0), + 31: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0x1), + 32: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0x2), + 33: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0x3), + 34: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0x4), + 35: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0x5), + 36: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0x6), + 37: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0x7), + 38: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0x8), + 39: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0x9), + 40: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0xa), + 41: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0xb), + 42: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0xc), + 43: (Uint32FromUint32(0x40)-Uint32FromInt32(0xa0))<>Int32FromInt32(6) | Uint32FromInt32(0xd), + 44: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0xe), + 45: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0xf), + 46: (Uint32FromUint32(0)-Uint32FromInt32(0x90))<>Int32FromInt32(6) | (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(12) | Uint32FromInt32(0x0), + 47: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(12) | Uint32FromInt32(0x1), + 48: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(12) | Uint32FromInt32(0x2), + 49: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(12) | Uint32FromInt32(0x3), + 50: (Uint32FromUint32(0x40)-Uint32FromInt32(0x90))<>Int32FromInt32(6) | (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(12) | Uint32FromInt32(0x4), +} + +var X__gettext_lockptr = uintptr(unsafe.Pointer(&_lock1)) + +var X__hwcap Tsize_t + +var X__libc t__libc + +var X__libc_version = [6]uint8{'1', '.', '2', '.', '5'} + +var X__locale_lock [1]int32 + +var X__locale_lockptr = uintptr(unsafe.Pointer(&X__locale_lock)) + +var X__log2_data = Tlog2_data{ + Finvln2hi: float64(1.4426950407214463), + Finvln2lo: float64(1.6751713164886512e-10), + Fpoly: [6]float64{ + 0: -Float64FromFloat64(0.7213475204444882), + 1: float64(0.4808983469629985), + 2: -Float64FromFloat64(0.36067375954075914), + 3: float64(0.2885390073180969), + 4: -Float64FromFloat64(0.2404693555628422), + 5: float64(0.2061202382173603), + }, + Fpoly1: [10]float64{ + 0: -Float64FromFloat64(0.7213475204444817), + 1: float64(0.48089834696298744), + 2: -Float64FromFloat64(0.360673760222145), + 3: float64(0.2885390081805197), + 4: -Float64FromFloat64(0.24044917405728863), + 5: float64(0.2060992861022954), + 6: -Float64FromFloat64(0.18033596705327856), + 7: float64(0.1603032746063156), + 8: -Float64FromFloat64(0.14483316576701266), + 9: float64(0.13046826811283835), + }, + Ftab: [64]struct { + Finvc float64 + Flogc float64 + }{ + 0: { + Finvc: float64(1.4463276106642393), + Flogc: -Float64FromFloat64(0.5323943771486483), + }, + 1: { + Finvc: float64(1.4301675812282968), + Flogc: -Float64FromFloat64(0.516184206053822), + }, + 2: { + Finvc: float64(1.4143648676229383), + Flogc: -Float64FromFloat64(0.5001543441974263), + }, + 3: { + Finvc: float64(1.3989068970611538), + Flogc: -Float64FromFloat64(0.4842999484799293), + }, + 4: { + Finvc: float64(1.3837838957784339), + Flogc: -Float64FromFloat64(0.46861865624623533), + }, + 5: { + Finvc: float64(1.368983882697786), + Flogc: -Float64FromFloat64(0.4531054615783887), + }, + 6: { + Finvc: float64(1.3544972916324536), + Flogc: -Float64FromFloat64(0.43775750882059583), + }, + 7: { + Finvc: float64(1.3403139676437443), + Flogc: -Float64FromFloat64(0.4225709906127122), + }, + 8: { + Finvc: float64(1.3264249304188642), + Flogc: -Float64FromFloat64(0.40754302793970965), + }, + 9: { + Finvc: float64(1.3128203652112156), + Flogc: -Float64FromFloat64(0.3926695240384106), + }, + 10: { + Finvc: float64(1.299492412370217), + Flogc: -Float64FromFloat64(0.3779482100565019), + }, + 11: { + Finvc: float64(1.28643198385998), + Flogc: -Float64FromFloat64(0.36337518101890964), + }, + 12: { + Finvc: float64(1.2736319291846832), + Flogc: -Float64FromFloat64(0.3489484089425332), + }, + 13: { + Finvc: float64(1.2610838968062879), + Flogc: -Float64FromFloat64(0.33466425780738973), + }, + 14: { + Finvc: float64(1.248780314313572), + Flogc: -Float64FromFloat64(0.3205197000629596), + }, + 15: { + Finvc: float64(1.2367150450059063), + Flogc: -Float64FromFloat64(0.3065131231801388), + }, + 16: { + Finvc: float64(1.2248804968401878), + Flogc: -Float64FromFloat64(0.2926410022678283), + }, + 17: { + Finvc: float64(1.2132702353497795), + Flogc: -Float64FromFloat64(0.2789009220805383), + }, + 18: { + Finvc: float64(1.2018780785715362), + Flogc: -Float64FromFloat64(0.2652905529862437), + }, + 19: { + Finvc: float64(1.190697765061355), + Flogc: -Float64FromFloat64(0.2518072602367738), + }, + 20: { + Finvc: float64(1.1797235410550593), + Flogc: -Float64FromFloat64(0.23844881494437686), + }, + 21: { + Finvc: float64(1.1689498986205256), + Flogc: -Float64FromFloat64(0.22521309705462045), + }, + 22: { + Finvc: float64(1.158371137408455), + Flogc: -Float64FromFloat64(0.21209756102439314), + }, + 23: { + Finvc: float64(1.1479820146386086), + Flogc: -Float64FromFloat64(0.1991000395789797), + }, + 24: { + Finvc: float64(1.1377775576851088), + Flogc: -Float64FromFloat64(0.18621852970682085), + }, + 25: { + Finvc: float64(1.127753150630225), + Flogc: -Float64FromFloat64(0.17345131655361), + }, + 26: { + Finvc: float64(1.1179037012282074), + Flogc: -Float64FromFloat64(0.16079591649577196), + }, + 27: { + Finvc: float64(1.1082251967632821), + Flogc: -Float64FromFloat64(0.14825107384353942), + }, + 28: { + Finvc: float64(1.098712461056607), + Flogc: -Float64FromFloat64(0.13581387465410444), + }, + 29: { + Finvc: float64(1.0893619091634283), + Flogc: -Float64FromFloat64(0.12348332762257996), + }, + 30: { + Finvc: float64(1.0801689912316736), + Flogc: -Float64FromFloat64(0.11125703807351783), + }, + 31: { + Finvc: float64(1.071129489697672), + Flogc: -Float64FromFloat64(0.09913289918449664), + }, + 32: { + Finvc: float64(1.0622406576750423), + Flogc: -Float64FromFloat64(0.08711065531497297), + }, + 33: { + Finvc: float64(1.0534977607927976), + Flogc: -Float64FromFloat64(0.07518724771330199), + }, + 34: { + Finvc: float64(1.044897877982342), + Flogc: -Float64FromFloat64(0.06336194888240243), + }, + 35: { + Finvc: float64(1.0364370289499079), + Flogc: -Float64FromFloat64(0.0516324649456692), + }, + 36: { + Finvc: float64(1.0281122132034575), + Flogc: -Float64FromFloat64(0.039997735929773626), + }, + 37: { + Finvc: float64(1.0199202450036955), + Flogc: -Float64FromFloat64(0.028456341769015125), + }, + 38: { + Finvc: float64(1.0118577522306755), + Flogc: -Float64FromFloat64(0.017006489068080555), + }, + 39: { + Finvc: float64(1.003921649236766), + Flogc: -Float64FromFloat64(0.005646678981520381), + }, + 40: { + Finvc: float64(0.9922480467550775), + Flogc: float64(0.011227277611396858), + }, + 41: { + Finvc: float64(0.9770993366178549), + Flogc: float64(0.033422853921138085), + }, + 42: { + Finvc: float64(0.9624059787315814), + Flogc: float64(0.05528248992573026), + }, + 43: { + Finvc: float64(0.9481480598286369), + Flogc: float64(0.07681573143713649), + }, + 44: { + Finvc: float64(0.9343065931261065), + Flogc: float64(0.09803204623631245), + }, + 45: { + Finvc: float64(0.9208633936884979), + Flogc: float64(0.11894094059630334), + }, + 46: { + Finvc: float64(0.9078013641840602), + Flogc: float64(0.13955143862290242), + }, + 47: { + Finvc: float64(0.8951048181512927), + Flogc: float64(0.15987146080919956), + }, + 48: { + Finvc: float64(0.882758574260473), + Flogc: float64(0.17990916589428707), + }, + 49: { + Finvc: float64(0.8707481902241709), + Flogc: float64(0.19967252559081317), + }, + 50: { + Finvc: float64(0.8590602881746972), + Flogc: float64(0.2191687127685782), + }, + 51: { + Finvc: float64(0.8476822044336688), + Flogc: float64(0.23840459427242422), + }, + 52: { + Finvc: float64(0.8366013284053287), + Flogc: float64(0.25738780610663525), + }, + 53: { + Finvc: float64(0.8258064913621258), + Flogc: float64(0.27612433583180973), + }, + 54: { + Finvc: float64(0.8152865101579193), + Flogc: float64(0.2946209507022104), + }, + 55: { + Finvc: float64(0.8050314363208223), + Flogc: float64(0.31288297359969874), + }, + 56: { + Finvc: float64(0.7950310492640542), + Flogc: float64(0.33091689015759584), + }, + 57: { + Finvc: float64(0.7852760432487271), + Flogc: float64(0.3487282100279572), + }, + 58: { + Finvc: float64(0.7757575660314712), + Flogc: float64(0.36632223233368677), + }, + 59: { + Finvc: float64(0.7664670566588946), + Flogc: float64(0.383704309808536), + }, + 60: { + Finvc: float64(0.7573965608078645), + Flogc: float64(0.4008792246509074), + }, + 61: { + Finvc: float64(0.7485380168514022), + Flogc: float64(0.41785250494945103), + }, + 62: { + Finvc: float64(0.7398844213755009), + Flogc: float64(0.4346281724315304), + }, + 63: { + Finvc: float64(0.7314286113178112), + Flogc: float64(0.45121103315341315), + }, + }, +} + +var X__log2f_data = Tlog2f_data{ + Ftab: [16]struct { + Finvc float64 + Flogc float64 + }{ + 0: { + Finvc: float64(1.398907162146528), + Flogc: -Float64FromFloat64(0.48430022186289673), + }, + 1: { + Finvc: float64(1.3403141896637998), + Flogc: -Float64FromFloat64(0.42257122959194704), + }, + 2: { + Finvc: float64(1.286432210124115), + Flogc: -Float64FromFloat64(0.3633754347673556), + }, + 3: { + Finvc: float64(1.2367150214269895), + Flogc: -Float64FromFloat64(0.30651309567405577), + }, + 4: { + Finvc: float64(1.1906977166711752), + Flogc: -Float64FromFloat64(0.25180720160537634), + }, + 5: { + Finvc: float64(1.1479821020556429), + Flogc: -Float64FromFloat64(0.19910014943794563), + }, + 6: { + Finvc: float64(1.1082251448272158), + Flogc: -Float64FromFloat64(0.14825100623281615), + }, + 7: { + Finvc: float64(1.0711297413057381), + Flogc: -Float64FromFloat64(0.09913323807318392), + }, + 8: { + Finvc: float64(1.036437278977283), + Flogc: -Float64FromFloat64(0.051632812977629436), + }, + 9: { + Finvc: float64(1), + }, + 10: { + Finvc: float64(0.9492859795739057), + Flogc: float64(0.07508531937943004), + }, + 11: { + Finvc: float64(0.8951049428609004), + Flogc: float64(0.15987125980713107), + }, + 12: { + Finvc: float64(0.8476821620351103), + Flogc: float64(0.2384046664317681), + }, + 13: { + Finvc: float64(0.8050314851692001), + Flogc: float64(0.31288288605863257), + }, + 14: { + Finvc: float64(0.7664671008843108), + Flogc: float64(0.38370422656453185), + }, + 15: { + Finvc: float64(0.731428603316328), + Flogc: float64(0.451211048935815), + }, + }, + Fpoly: [4]float64{ + 0: -Float64FromFloat64(0.36051725506874704), + 1: float64(0.4811247078767291), + 2: -Float64FromFloat64(0.7213476299867769), + 3: float64(1.4426950186867042), + }, +} + +var X__log_data = Tlog_data{ + Fln2hi: float64(0.6931471805598903), + Fln2lo: float64(5.497923018708371e-14), + Fpoly: [5]float64{ + 0: -Float64FromFloat64(0.5000000000000001), + 1: float64(0.33333333331825593), + 2: -Float64FromFloat64(0.2499999999622955), + 3: float64(0.20000304511814496), + 4: -Float64FromFloat64(0.16667054827627667), + }, + Fpoly1: [11]float64{ + 0: -Float64FromFloat64(0.5), + 1: float64(0.3333333333333352), + 2: -Float64FromFloat64(0.24999999999998432), + 3: float64(0.19999999999320328), + 4: -Float64FromFloat64(0.16666666669929706), + 5: float64(0.14285715076560868), + 6: -Float64FromFloat64(0.12499997863982555), + 7: float64(0.11110712032936046), + 8: -Float64FromFloat64(0.10000486757818193), + 9: float64(0.09181994006195467), + 10: -Float64FromFloat64(0.08328363062289341), + }, + Ftab: [128]struct { + Finvc float64 + Flogc float64 + }{ + 0: { + Finvc: float64(1.4504249240398293), + Flogc: -Float64FromFloat64(0.3718565645633589), + }, + 1: { + Finvc: float64(1.442253508327276), + Flogc: -Float64FromFloat64(0.36620682668944937), + }, + 2: { + Finvc: float64(1.4341736174350004), + Flogc: -Float64FromFloat64(0.3605888069791945), + }, + 3: { + Finvc: float64(1.426183816329995), + Flogc: -Float64FromFloat64(0.3550022171419869), + }, + 4: { + Finvc: float64(1.4182825527052965), + Flogc: -Float64FromFloat64(0.34944666968829097), + }, + 5: { + Finvc: float64(1.4104682921759335), + Flogc: -Float64FromFloat64(0.3439217713603284), + }, + 6: { + Finvc: float64(1.4027396147468003), + Flogc: -Float64FromFloat64(0.3384271921261188), + }, + 7: { + Finvc: float64(1.3950954438932313), + Flogc: -Float64FromFloat64(0.332962831494342), + }, + 8: { + Finvc: float64(1.3875338232485754), + Flogc: -Float64FromFloat64(0.32752794345742586), + }, + 9: { + Finvc: float64(1.3800539211058593), + Flogc: -Float64FromFloat64(0.32212257167088865), + }, + 10: { + Finvc: float64(1.3726542695419708), + Flogc: -Float64FromFloat64(0.3167462884799761), + }, + 11: { + Finvc: float64(1.3653332798446802), + Flogc: -Float64FromFloat64(0.3113985598928366), + }, + 12: { + Finvc: float64(1.358090204587874), + Flogc: -Float64FromFloat64(0.3060794515165526), + }, + 13: { + Finvc: float64(1.3509234892132138), + Flogc: -Float64FromFloat64(0.300788424667644), + }, + 14: { + Finvc: float64(1.3438320840699889), + Flogc: -Float64FromFloat64(0.2955252968476998), + }, + 15: { + Finvc: float64(1.3368146974742003), + Flogc: -Float64FromFloat64(0.29028969275850613), + }, + 16: { + Finvc: float64(1.329870114677736), + Flogc: -Float64FromFloat64(0.2850812793277555), + }, + 17: { + Finvc: float64(1.322997339161106), + Flogc: -Float64FromFloat64(0.27989987391470095), + }, + 18: { + Finvc: float64(1.316195352741367), + Flogc: -Float64FromFloat64(0.27474526621870154), + }, + 19: { + Finvc: float64(1.3094628125672239), + Flogc: -Float64FromFloat64(0.2696169863701243), + }, + 20: { + Finvc: float64(1.3027990455471041), + Flogc: -Float64FromFloat64(0.26451506180308115), + }, + 21: { + Finvc: float64(1.2962024229438942), + Flogc: -Float64FromFloat64(0.2594387762767383), + }, + 22: { + Finvc: float64(1.2896726275815547), + Flogc: -Float64FromFloat64(0.2543884090981692), + }, + 23: { + Finvc: float64(1.2832080305745537), + Flogc: -Float64FromFloat64(0.24936321635129843), + }, + 24: { + Finvc: float64(1.276807885983376), + Flogc: -Float64FromFloat64(0.24436312405975968), + }, + 25: { + Finvc: float64(1.2704714060687552), + Flogc: -Float64FromFloat64(0.23938801747897287), + }, + 26: { + Finvc: float64(1.2641976054949482), + Flogc: -Float64FromFloat64(0.23443761696705678), + }, + 27: { + Finvc: float64(1.257985357514882), + Flogc: -Float64FromFloat64(0.22951151871518505), + }, + 28: { + Finvc: float64(1.2518337750655457), + Flogc: -Float64FromFloat64(0.2246094963439873), + }, + 29: { + Finvc: float64(1.2457421919097305), + Flogc: -Float64FromFloat64(0.21973149037705753), + }, + 30: { + Finvc: float64(1.2397094966625508), + Flogc: -Float64FromFloat64(0.2148770752847895), + }, + 31: { + Finvc: float64(1.2337348463589233), + Flogc: -Float64FromFloat64(0.210046029103637), + }, + 32: { + Finvc: float64(1.2278176973028803), + Flogc: -Float64FromFloat64(0.20523836373934046), + }, + 33: { + Finvc: float64(1.2219570190618474), + Flogc: -Float64FromFloat64(0.20045368751368642), + }, + 34: { + Finvc: float64(1.2161519732977757), + Flogc: -Float64FromFloat64(0.1956917537758045), + }, + 35: { + Finvc: float64(1.2104018095009725), + Flogc: -Float64FromFloat64(0.19095237845203883), + }, + 36: { + Finvc: float64(1.204705805718973), + Flogc: -Float64FromFloat64(0.18623539250290833), + }, + 37: { + Finvc: float64(1.1990631185441964), + Flogc: -Float64FromFloat64(0.18154051731551135), + }, + 38: { + Finvc: float64(1.1934733004462308), + Flogc: -Float64FromFloat64(0.1768677957431919), + }, + 39: { + Finvc: float64(1.1879350812847385), + Flogc: -Float64FromFloat64(0.17221657406412305), + }, + 40: { + Finvc: float64(1.1824481322833125), + Flogc: -Float64FromFloat64(0.16758697765942543), + }, + 41: { + Finvc: float64(1.1770114976921955), + Flogc: -Float64FromFloat64(0.16297859687290384), + }, + 42: { + Finvc: float64(1.1716248121809465), + Flogc: -Float64FromFloat64(0.15839151377804228), + }, + 43: { + Finvc: float64(1.1662869231674715), + Flogc: -Float64FromFloat64(0.15382513241456763), + }, + 44: { + Finvc: float64(1.1609977486762766), + Flogc: -Float64FromFloat64(0.14927976358922024), + }, + 45: { + Finvc: float64(1.1557563220795803), + Flogc: -Float64FromFloat64(0.14475495398119165), + }, + 46: { + Finvc: float64(1.1505619105480347), + Flogc: -Float64FromFloat64(0.14025044090817573), + }, + 47: { + Finvc: float64(1.1454138888505974), + Flogc: -Float64FromFloat64(0.1357660466685502), + }, + 48: { + Finvc: float64(1.140311877374656), + Flogc: -Float64FromFloat64(0.1313018016355727), + }, + 49: { + Finvc: float64(1.1352550225747513), + Flogc: -Float64FromFloat64(0.12685731518763532), + }, + 50: { + Finvc: float64(1.1302429094831266), + Flogc: -Float64FromFloat64(0.1224325737671279), + }, + 51: { + Finvc: float64(1.1252747693068048), + Flogc: -Float64FromFloat64(0.11802724521862729), + }, + 52: { + Finvc: float64(1.1203501571039876), + Flogc: -Float64FromFloat64(0.11364127671663482), + }, + 53: { + Finvc: float64(1.1154683327680124), + Flogc: -Float64FromFloat64(0.10927434611278386), + }, + 54: { + Finvc: float64(1.1106291463292157), + Flogc: -Float64FromFloat64(0.10492665324943573), + }, + 55: { + Finvc: float64(1.1058315813301596), + Flogc: -Float64FromFloat64(0.10059761422644442), + }, + 56: { + Finvc: float64(1.1010752177696026), + Flogc: -Float64FromFloat64(0.09628717309055901), + }, + 57: { + Finvc: float64(1.0963597137952512), + Flogc: -Float64FromFloat64(0.09199534069557558), + }, + 58: { + Finvc: float64(1.0916844827550398), + Flogc: -Float64FromFloat64(0.08772190036688698), + }, + 59: { + Finvc: float64(1.0870487291277784), + Flogc: -Float64FromFloat64(0.08346643613867855), + }, + 60: { + Finvc: float64(1.082452357388312), + Flogc: -Float64FromFloat64(0.07922916827544668), + }, + 61: { + Finvc: float64(1.0778948225025884), + Flogc: -Float64FromFloat64(0.0750099004750382), + }, + 62: { + Finvc: float64(1.0733751731601076), + Flogc: -Float64FromFloat64(0.07080805133352897), + }, + 63: { + Finvc: float64(1.068893585073351), + Flogc: -Float64FromFloat64(0.06662408085151128), + }, + 64: { + Finvc: float64(1.0644491706655506), + Flogc: -Float64FromFloat64(0.06245745471915143), + }, + 65: { + Finvc: float64(1.0600414846328305), + Flogc: -Float64FromFloat64(0.0583080438042316), + }, + 66: { + Finvc: float64(1.0556701316181605), + Flogc: -Float64FromFloat64(0.05417576112313327), + }, + 67: { + Finvc: float64(1.051334750556926), + Flogc: -Float64FromFloat64(0.050060547896805474), + }, + 68: { + Finvc: float64(1.0470347288442157), + Flogc: -Float64FromFloat64(0.045962101199052086), + }, + 69: { + Finvc: float64(1.0427699229652954), + Flogc: -Float64FromFloat64(0.04188056008865715), + }, + 70: { + Finvc: float64(1.0385395013738175), + Flogc: -Float64FromFloat64(0.03781540056183985), + }, + 71: { + Finvc: float64(1.034343418940345), + Flogc: -Float64FromFloat64(0.03376684757915882), + }, + 72: { + Finvc: float64(1.0301811073173315), + Flogc: -Float64FromFloat64(0.029734619131772888), + }, + 73: { + Finvc: float64(1.026052043621297), + Flogc: -Float64FromFloat64(0.025718470239212365), + }, + 74: { + Finvc: float64(1.0219561082336197), + Flogc: -Float64FromFloat64(0.021718543925430822), + }, + 75: { + Finvc: float64(1.0178926505784922), + Flogc: -Float64FromFloat64(0.01773446126981071), + }, + 76: { + Finvc: float64(1.0138614436244586), + Flogc: -Float64FromFloat64(0.013766252464051831), + }, + 77: { + Finvc: float64(1.0098620186501341), + Flogc: -Float64FromFloat64(0.009813706322574944), + }, + 78: { + Finvc: float64(1.0058938559734134), + Flogc: -Float64FromFloat64(0.005876555150052809), + }, + 79: { + Finvc: float64(1.00195696235014), + Flogc: -Float64FromFloat64(0.0019550499938532084), + }, + 80: { + Finvc: float64(0.9961089923088509), + Flogc: float64(0.0038985973556009412), + }, + 81: { + Finvc: float64(0.9884170338185201), + Flogc: float64(0.011650571286395461), + }, + 82: { + Finvc: float64(0.9808429191005297), + Flogc: float64(0.019342955478919066), + }, + 83: { + Finvc: float64(0.9733840169987446), + Flogc: float64(0.0269766014846482), + }, + 84: { + Finvc: float64(0.9660377568876556), + Flogc: float64(0.034552359728422744), + }, + 85: { + Finvc: float64(0.9588014945307369), + Flogc: float64(0.04207121767183253), + }, + 86: { + Finvc: float64(0.9516728569073111), + Flogc: float64(0.049533940950141186), + }, + 87: { + Finvc: float64(0.9446494635965822), + Flogc: float64(0.056941358295944156), + }, + 88: { + Finvc: float64(0.9377288993026223), + Flogc: float64(0.06429439168346107), + }, + 89: { + Finvc: float64(0.9309091073790681), + Flogc: float64(0.0715936354946507), + }, + 90: { + Finvc: float64(0.924187681612722), + Flogc: float64(0.07884010933776153), + }, + 91: { + Finvc: float64(0.9175626765599192), + Flogc: float64(0.08603438905970506), + }, + 92: { + Finvc: float64(0.9110320403624034), + Flogc: float64(0.09317721180013905), + }, + 93: { + Finvc: float64(0.9045935839762024), + Flogc: float64(0.10026951462748457), + }, + 94: { + Finvc: float64(0.8982456375922825), + Flogc: float64(0.10731170956330516), + }, + 95: { + Finvc: float64(0.8919860966782501), + Flogc: float64(0.11430473320717738), + }, + 96: { + Finvc: float64(0.8858131121185129), + Flogc: float64(0.12124928503033061), + }, + 97: { + Finvc: float64(0.879725075760676), + Flogc: float64(0.12814583422959913), + }, + 98: { + Finvc: float64(0.8737201372634685), + Flogc: float64(0.1349951636851756), + }, + 99: { + Finvc: float64(0.8677966405782273), + Flogc: float64(0.1417978768189414), + }, + 100: { + Finvc: float64(0.8619528050060739), + Flogc: float64(0.14855476039031146), + }, + 101: { + Finvc: float64(0.8561872354420692), + Flogc: float64(0.1552661937658968), + }, + 102: { + Finvc: float64(0.8504983927816893), + Flogc: float64(0.16193275688146969), + }, + 103: { + Finvc: float64(0.8448844572790304), + Flogc: float64(0.16855539792220497), + }, + 104: { + Finvc: float64(0.8393442741575965), + Flogc: float64(0.1751343179947753), + }, + 105: { + Finvc: float64(0.8338762249349438), + Flogc: float64(0.1816702989864325), + }, + 106: { + Finvc: float64(0.8284789320557778), + Flogc: float64(0.18816387146023317), + }, + 107: { + Finvc: float64(0.8231510800065832), + Flogc: float64(0.1946155228479256), + }, + 108: { + Finvc: float64(0.8178913903778707), + Flogc: float64(0.20102572579389744), + }, + 109: { + Finvc: float64(0.8126984007245374), + Flogc: float64(0.2073952090795501), + }, + 110: { + Finvc: float64(0.8075710029460227), + Flogc: float64(0.21372429840596396), + }, + 111: { + Finvc: float64(0.8025078881160415), + Flogc: float64(0.2200135945981856), + }, + 112: { + Finvc: float64(0.7975077379364331), + Flogc: float64(0.22626374162859975), + }, + 113: { + Finvc: float64(0.792569604966373), + Flogc: float64(0.23247494747693054), + }, + 114: { + Finvc: float64(0.7876923641254114), + Flogc: float64(0.23864766620658884), + }, + 115: { + Finvc: float64(0.7828746724940998), + Flogc: float64(0.24478265647405806), + }, + 116: { + Finvc: float64(0.7781155388790811), + Flogc: float64(0.25088025827324145), + }, + 117: { + Finvc: float64(0.7734139557869777), + Flogc: float64(0.2569408552510595), + }, + 118: { + Finvc: float64(0.7687687179914933), + Flogc: float64(0.26296511155101143), + }, + 119: { + Finvc: float64(0.7641790698041854), + Flogc: float64(0.2689531327189343), + }, + 120: { + Finvc: float64(0.7596438763692399), + Flogc: float64(0.27490553924610595), + }, + 121: { + Finvc: float64(0.7551621951078668), + Flogc: float64(0.2808227248478943), + }, + 122: { + Finvc: float64(0.7507331780216866), + Flogc: float64(0.286704979267256), + }, + 123: { + Finvc: float64(0.7463557196361751), + Flogc: float64(0.29255295645509705), + }, + 124: { + Finvc: float64(0.7420289364869653), + Flogc: float64(0.2983670386142876), + }, + 125: { + Finvc: float64(0.7377521537065876), + Flogc: float64(0.30414734587282055), + }, + 126: { + Finvc: float64(0.7335242966002608), + Flogc: float64(0.30989455774829366), + }, + 127: { + Finvc: float64(0.729344777457841), + Flogc: float64(0.31560871301871884), + }, + }, +} + +var X__logf_data = Tlogf_data{ + Ftab: [16]struct { + Finvc float64 + Flogc float64 + }{ + 0: { + Finvc: float64(1.398907162146528), + Flogc: -Float64FromFloat64(0.33569133332882284), + }, + 1: { + Finvc: float64(1.3403141896637998), + Flogc: -Float64FromFloat64(0.2929040563774074), + }, + 2: { + Finvc: float64(1.286432210124115), + Flogc: -Float64FromFloat64(0.2518726580937369), + }, + 3: { + Finvc: float64(1.2367150214269895), + Flogc: -Float64FromFloat64(0.21245868807117255), + }, + 4: { + Finvc: float64(1.1906977166711752), + Flogc: -Float64FromFloat64(0.17453945183745634), + }, + 5: { + Finvc: float64(1.1479821020556429), + Flogc: -Float64FromFloat64(0.1380057072319758), + }, + 6: { + Finvc: float64(1.1082251448272158), + Flogc: -Float64FromFloat64(0.10275976698545139), + }, + 7: { + Finvc: float64(1.0711297413057381), + Flogc: -Float64FromFloat64(0.06871392447020525), + }, + 8: { + Finvc: float64(1.036437278977283), + Flogc: -Float64FromFloat64(0.0357891387398228), + }, + 9: { + Finvc: float64(1), + }, + 10: { + Finvc: float64(0.9492859795739057), + Flogc: float64(0.05204517742929496), + }, + 11: { + Finvc: float64(0.8951049428609004), + Flogc: float64(0.11081431298787942), + }, + 12: { + Finvc: float64(0.8476821620351103), + Flogc: float64(0.1652495223695143), + }, + 13: { + Finvc: float64(0.8050314851692001), + Flogc: float64(0.21687389031699977), + }, + 14: { + Finvc: float64(0.7664671008843108), + Flogc: float64(0.2659635028121397), + }, + 15: { + Finvc: float64(0.731428603316328), + Flogc: float64(0.3127556664073557), + }, + }, + Fln2: float64(0.6931471805599453), + Fpoly: [3]float64{ + 0: -Float64FromFloat64(0.25089342214237154), + 1: float64(0.333456765744066), + 2: -Float64FromFloat64(0.4999997485802103), + }, +} + +var X__optpos int32 + +var Xoptreset int32 + +var X__pow_log_data = Tpow_log_data{ + Fln2hi: float64(0.6931471805598903), + Fln2lo: float64(5.497923018708371e-14), + Fpoly: [7]float64{ + 0: -Float64FromFloat64(0.5), + 1: float64(Float64FromFloat64(0.3333333333333339) * float64(-Int32FromInt32(2))), + 2: float64(-Float64FromFloat64(0.25000000000000033) * float64(-Int32FromInt32(2))), + 3: float64(Float64FromFloat64(0.1999999998830994) * Float64FromInt32(4)), + 4: float64(-Float64FromFloat64(0.16666666658719348) * Float64FromInt32(4)), + 5: float64(Float64FromFloat64(0.14286370355743763) * float64(-Int32FromInt32(8))), + 6: float64(-Float64FromFloat64(0.12500519079594427) * float64(-Int32FromInt32(8))), + }, + Ftab: [128]struct { + Finvc float64 + Fpad float64 + Flogc float64 + Flogctail float64 + }{ + 0: { + Finvc: float64(1.4140625), + Flogc: -Float64FromFloat64(0.3464667673462145), + Flogctail: float64(5.929407345889625e-15), + }, + 1: { + Finvc: float64(1.40625), + Flogc: -Float64FromFloat64(0.34092658697056777), + Flogctail: -Float64FromFloat64(2.544157440035963e-14), + }, + 2: { + Finvc: float64(1.3984375), + Flogc: -Float64FromFloat64(0.3353555419211034), + Flogctail: -Float64FromFloat64(3.443525940775045e-14), + }, + 3: { + Finvc: float64(1.390625), + Flogc: -Float64FromFloat64(0.3297532863724655), + Flogctail: -Float64FromFloat64(2.500123826022799e-15), + }, + 4: { + Finvc: float64(1.3828125), + Flogc: -Float64FromFloat64(0.32411946865420305), + Flogctail: -Float64FromFloat64(8.929337133850617e-15), + }, + 5: { + Finvc: float64(1.375), + Flogc: -Float64FromFloat64(0.31845373111855224), + Flogctail: float64(1.7625431312172662e-14), + }, + 6: { + Finvc: float64(1.3671875), + Flogc: -Float64FromFloat64(0.31275571000389846), + Flogctail: float64(1.5688303180062087e-15), + }, + 7: { + Finvc: float64(1.359375), + Flogc: -Float64FromFloat64(0.3070250352949415), + Flogctail: float64(2.9655274673691784e-14), + }, + 8: { + Finvc: float64(1.3515625), + Flogc: -Float64FromFloat64(0.3012613305781997), + Flogctail: float64(3.7923164802093147e-14), + }, + 9: { + Finvc: float64(1.34375), + Flogc: -Float64FromFloat64(0.2954642128938758), + Flogctail: float64(3.993416384387844e-14), + }, + 10: { + Finvc: float64(1.3359375), + Flogc: -Float64FromFloat64(0.28963329258306203), + Flogctail: float64(1.9352855826489123e-14), + }, + 11: { + Finvc: float64(1.3359375), + Flogc: -Float64FromFloat64(0.28963329258306203), + Flogctail: float64(1.9352855826489123e-14), + }, + 12: { + Finvc: float64(1.328125), + Flogc: -Float64FromFloat64(0.28376817313062475), + Flogctail: -Float64FromFloat64(1.9852665484979036e-14), + }, + 13: { + Finvc: float64(1.3203125), + Flogc: -Float64FromFloat64(0.27786845100342816), + Flogctail: -Float64FromFloat64(2.814323765595281e-14), + }, + 14: { + Finvc: float64(1.3125), + Flogc: -Float64FromFloat64(0.2719337154836694), + Flogctail: float64(2.7643769993528702e-14), + }, + 15: { + Finvc: float64(1.3046875), + Flogc: -Float64FromFloat64(0.2659635484970977), + Flogctail: -Float64FromFloat64(4.025092402293806e-14), + }, + 16: { + Finvc: float64(1.296875), + Flogc: -Float64FromFloat64(0.25995752443691345), + Flogctail: -Float64FromFloat64(1.2621729398885316e-14), + }, + 17: { + Finvc: float64(1.2890625), + Flogc: -Float64FromFloat64(0.25391520998095984), + Flogctail: -Float64FromFloat64(3.600176732637335e-15), + }, + 18: { + Finvc: float64(1.2890625), + Flogc: -Float64FromFloat64(0.25391520998095984), + Flogctail: -Float64FromFloat64(3.600176732637335e-15), + }, + 19: { + Finvc: float64(1.28125), + Flogc: -Float64FromFloat64(0.2478361639045943), + Flogctail: float64(1.3029797173308663e-14), + }, + 20: { + Finvc: float64(1.2734375), + Flogc: -Float64FromFloat64(0.2417199368871934), + Flogctail: float64(4.8230289429940886e-14), + }, + 21: { + Finvc: float64(1.265625), + Flogc: -Float64FromFloat64(0.23556607131274632), + Flogctail: -Float64FromFloat64(2.0592242769647135e-14), + }, + 22: { + Finvc: float64(1.2578125), + Flogc: -Float64FromFloat64(0.22937410106487732), + Flogctail: float64(3.149265065191484e-14), + }, + 23: { + Finvc: float64(1.25), + Flogc: -Float64FromFloat64(0.22314355131425145), + Flogctail: float64(4.169796584527195e-14), + }, + 24: { + Finvc: float64(1.25), + Flogc: -Float64FromFloat64(0.22314355131425145), + Flogctail: float64(4.169796584527195e-14), + }, + 25: { + Finvc: float64(1.2421875), + Flogc: -Float64FromFloat64(0.21687393830063684), + Flogctail: float64(2.2477465222466186e-14), + }, + 26: { + Finvc: float64(1.234375), + Flogc: -Float64FromFloat64(0.21056476910735), + Flogctail: float64(3.6507188831790577e-16), + }, + 27: { + Finvc: float64(1.2265625), + Flogc: -Float64FromFloat64(0.2042155414286526), + Flogctail: -Float64FromFloat64(3.827767260205414e-14), + }, + 28: { + Finvc: float64(1.2265625), + Flogc: -Float64FromFloat64(0.2042155414286526), + Flogctail: -Float64FromFloat64(3.827767260205414e-14), + }, + 29: { + Finvc: float64(1.21875), + Flogc: -Float64FromFloat64(0.19782574332987224), + Flogctail: -Float64FromFloat64(4.7641388950792196e-14), + }, + 30: { + Finvc: float64(1.2109375), + Flogc: -Float64FromFloat64(0.19139485299967873), + Flogctail: float64(4.9278276214647115e-14), + }, + 31: { + Finvc: float64(1.203125), + Flogc: -Float64FromFloat64(0.18492233849406148), + Flogctail: float64(4.9485167661250996e-14), + }, + 32: { + Finvc: float64(1.203125), + Flogc: -Float64FromFloat64(0.18492233849406148), + Flogctail: float64(4.9485167661250996e-14), + }, + 33: { + Finvc: float64(1.1953125), + Flogc: -Float64FromFloat64(0.1784076574728033), + Flogctail: -Float64FromFloat64(1.5003333854266542e-14), + }, + 34: { + Finvc: float64(1.1875), + Flogc: -Float64FromFloat64(0.17185025692663203), + Flogctail: -Float64FromFloat64(2.7194441649495324e-14), + }, + 35: { + Finvc: float64(1.1875), + Flogc: -Float64FromFloat64(0.17185025692663203), + Flogctail: -Float64FromFloat64(2.7194441649495324e-14), + }, + 36: { + Finvc: float64(1.1796875), + Flogc: -Float64FromFloat64(0.1652495728952772), + Flogctail: -Float64FromFloat64(2.99659267292569e-14), + }, + 37: { + Finvc: float64(1.171875), + Flogc: -Float64FromFloat64(0.15860503017665906), + Flogctail: float64(2.0472357800461955e-14), + }, + 38: { + Finvc: float64(1.171875), + Flogc: -Float64FromFloat64(0.15860503017665906), + Flogctail: float64(2.0472357800461955e-14), + }, + 39: { + Finvc: float64(1.1640625), + Flogc: -Float64FromFloat64(0.15191604202584585), + Flogctail: float64(3.879296723063646e-15), + }, + 40: { + Finvc: float64(1.15625), + Flogc: -Float64FromFloat64(0.1451820098444614), + Flogctail: -Float64FromFloat64(3.6506824353335045e-14), + }, + 41: { + Finvc: float64(1.1484375), + Flogc: -Float64FromFloat64(0.13840232285906495), + Flogctail: -Float64FromFloat64(5.4183331379008994e-14), + }, + 42: { + Finvc: float64(1.1484375), + Flogc: -Float64FromFloat64(0.13840232285906495), + Flogctail: -Float64FromFloat64(5.4183331379008994e-14), + }, + 43: { + Finvc: float64(1.140625), + Flogc: -Float64FromFloat64(0.131576357788731), + Flogctail: float64(1.1729485484531301e-14), + }, + 44: { + Finvc: float64(1.140625), + Flogc: -Float64FromFloat64(0.131576357788731), + Flogctail: float64(1.1729485484531301e-14), + }, + 45: { + Finvc: float64(1.1328125), + Flogc: -Float64FromFloat64(0.12470347850091912), + Flogctail: -Float64FromFloat64(3.811763084710266e-14), + }, + 46: { + Finvc: float64(1.125), + Flogc: -Float64FromFloat64(0.11778303565643), + Flogctail: float64(4.654729747598445e-14), + }, + 47: { + Finvc: float64(1.125), + Flogc: -Float64FromFloat64(0.11778303565643), + Flogctail: float64(4.654729747598445e-14), + }, + 48: { + Finvc: float64(1.1171875), + Flogc: -Float64FromFloat64(0.11081436634026431), + Flogctail: -Float64FromFloat64(2.5799991283069902e-14), + }, + 49: { + Finvc: float64(1.109375), + Flogc: -Float64FromFloat64(0.10379679368168127), + Flogctail: float64(3.7700471749674615e-14), + }, + 50: { + Finvc: float64(1.109375), + Flogc: -Float64FromFloat64(0.10379679368168127), + Flogctail: float64(3.7700471749674615e-14), + }, + 51: { + Finvc: float64(1.1015625), + Flogc: -Float64FromFloat64(0.09672962645856842), + Flogctail: float64(1.7306161136093256e-14), + }, + 52: { + Finvc: float64(1.1015625), + Flogc: -Float64FromFloat64(0.09672962645856842), + Flogctail: float64(1.7306161136093256e-14), + }, + 53: { + Finvc: float64(1.09375), + Flogc: -Float64FromFloat64(0.089612158689647), + Flogctail: -Float64FromFloat64(4.012913552726574e-14), + }, + 54: { + Finvc: float64(1.0859375), + Flogc: -Float64FromFloat64(0.08244366921110213), + Flogctail: float64(2.7541708360737882e-14), + }, + 55: { + Finvc: float64(1.0859375), + Flogc: -Float64FromFloat64(0.08244366921110213), + Flogctail: float64(2.7541708360737882e-14), + }, + 56: { + Finvc: float64(1.078125), + Flogc: -Float64FromFloat64(0.07522342123763792), + Flogctail: float64(5.0396178134370583e-14), + }, + 57: { + Finvc: float64(1.078125), + Flogc: -Float64FromFloat64(0.07522342123763792), + Flogctail: float64(5.0396178134370583e-14), + }, + 58: { + Finvc: float64(1.0703125), + Flogc: -Float64FromFloat64(0.06795066190852594), + Flogctail: float64(1.8195060030168815e-14), + }, + 59: { + Finvc: float64(1.0625), + Flogc: -Float64FromFloat64(0.06062462181648698), + Flogctail: float64(5.213620639136504e-14), + }, + 60: { + Finvc: float64(1.0625), + Flogc: -Float64FromFloat64(0.06062462181648698), + Flogctail: float64(5.213620639136504e-14), + }, + 61: { + Finvc: float64(1.0546875), + Flogc: -Float64FromFloat64(0.053244514518837605), + Flogctail: float64(2.532168943117445e-14), + }, + 62: { + Finvc: float64(1.0546875), + Flogc: -Float64FromFloat64(0.053244514518837605), + Flogctail: float64(2.532168943117445e-14), + }, + 63: { + Finvc: float64(1.046875), + Flogc: -Float64FromFloat64(0.045809536031242715), + Flogctail: -Float64FromFloat64(5.148849572685811e-14), + }, + 64: { + Finvc: float64(1.046875), + Flogc: -Float64FromFloat64(0.045809536031242715), + Flogctail: -Float64FromFloat64(5.148849572685811e-14), + }, + 65: { + Finvc: float64(1.0390625), + Flogc: -Float64FromFloat64(0.038318864302141264), + Flogctail: float64(4.6652946995830086e-15), + }, + 66: { + Finvc: float64(1.0390625), + Flogc: -Float64FromFloat64(0.038318864302141264), + Flogctail: float64(4.6652946995830086e-15), + }, + 67: { + Finvc: float64(1.03125), + Flogc: -Float64FromFloat64(0.03077165866670839), + Flogctail: -Float64FromFloat64(4.529814257790929e-14), + }, + 68: { + Finvc: float64(1.03125), + Flogc: -Float64FromFloat64(0.03077165866670839), + Flogctail: -Float64FromFloat64(4.529814257790929e-14), + }, + 69: { + Finvc: float64(1.0234375), + Flogc: -Float64FromFloat64(0.023167059281490765), + Flogctail: -Float64FromFloat64(4.361324067851568e-14), + }, + 70: { + Finvc: float64(1.015625), + Flogc: -Float64FromFloat64(0.015504186535963527), + Flogctail: -Float64FromFloat64(1.7274567499706107e-15), + }, + 71: { + Finvc: float64(1.015625), + Flogc: -Float64FromFloat64(0.015504186535963527), + Flogctail: -Float64FromFloat64(1.7274567499706107e-15), + }, + 72: { + Finvc: float64(1.0078125), + Flogc: -Float64FromFloat64(0.0077821404420319595), + Flogctail: -Float64FromFloat64(2.298941004620351e-14), + }, + 73: { + Finvc: float64(1.0078125), + Flogc: -Float64FromFloat64(0.0077821404420319595), + Flogctail: -Float64FromFloat64(2.298941004620351e-14), + }, + 74: { + Finvc: float64(1), + }, + 75: { + Finvc: float64(1), + }, + 76: { + Finvc: float64(0.9921875), + Flogc: float64(0.007843177461040796), + Flogctail: -Float64FromFloat64(1.4902732911301337e-14), + }, + 77: { + Finvc: float64(0.984375), + Flogc: float64(0.01574835696817445), + Flogctail: -Float64FromFloat64(3.527980389655325e-14), + }, + 78: { + Finvc: float64(0.9765625), + Flogc: float64(0.023716526617363343), + Flogctail: -Float64FromFloat64(4.730054772033249e-14), + }, + 79: { + Finvc: float64(0.96875), + Flogc: float64(0.03174869831457272), + Flogctail: float64(7.580310369375161e-15), + }, + 80: { + Finvc: float64(0.9609375), + Flogc: float64(0.039845908547249564), + Flogctail: -Float64FromFloat64(4.9893776716773285e-14), + }, + 81: { + Finvc: float64(0.953125), + Flogc: float64(0.048009219186383234), + Flogctail: -Float64FromFloat64(2.262629393030674e-14), + }, + 82: { + Finvc: float64(0.9453125), + Flogc: float64(0.056239718322899535), + Flogctail: -Float64FromFloat64(2.345674491018699e-14), + }, + 83: { + Finvc: float64(0.94140625), + Flogc: float64(0.06038051098892083), + Flogctail: -Float64FromFloat64(1.3352588834854848e-14), + }, + 84: { + Finvc: float64(0.93359375), + Flogc: float64(0.06871389254808946), + Flogctail: -Float64FromFloat64(3.765296820388875e-14), + }, + 85: { + Finvc: float64(0.92578125), + Flogc: float64(0.07711730334438016), + Flogctail: float64(5.1128335719851986e-14), + }, + 86: { + Finvc: float64(0.91796875), + Flogc: float64(0.08559193033545398), + Flogctail: -Float64FromFloat64(5.046674438470119e-14), + }, + 87: { + Finvc: float64(0.9140625), + Flogc: float64(0.08985632912185793), + Flogctail: float64(3.1218748807418837e-15), + }, + 88: { + Finvc: float64(0.90625), + Flogc: float64(0.09844007281321865), + Flogctail: float64(3.3871241029241416e-14), + }, + 89: { + Finvc: float64(0.8984375), + Flogc: float64(0.10709813555638448), + Flogctail: -Float64FromFloat64(1.7376727386423858e-14), + }, + 90: { + Finvc: float64(0.89453125), + Flogc: float64(0.11145544092528326), + Flogctail: float64(3.957125899799804e-14), + }, + 91: { + Finvc: float64(0.88671875), + Flogc: float64(0.12022742699821265), + Flogctail: -Float64FromFloat64(5.2849453521890294e-14), + }, + 92: { + Finvc: float64(0.8828125), + Flogc: float64(0.12464244520731427), + Flogctail: -Float64FromFloat64(3.767012502308738e-14), + }, + 93: { + Finvc: float64(0.875), + Flogc: float64(0.13353139262449076), + Flogctail: float64(3.1859736349078334e-14), + }, + 94: { + Finvc: float64(0.87109375), + Flogc: float64(0.13800567301939282), + Flogctail: float64(5.0900642926060466e-14), + }, + 95: { + Finvc: float64(0.86328125), + Flogc: float64(0.14701474296180095), + Flogctail: float64(8.710783796122478e-15), + }, + 96: { + Finvc: float64(0.859375), + Flogc: float64(0.15154989812720032), + Flogctail: float64(6.157896229122976e-16), + }, + 97: { + Finvc: float64(0.8515625), + Flogc: float64(0.16068238169043525), + Flogctail: float64(3.821577743916796e-14), + }, + 98: { + Finvc: float64(0.84765625), + Flogc: float64(0.16528009093906348), + Flogctail: float64(3.9440046718453496e-14), + }, + 99: { + Finvc: float64(0.83984375), + Flogc: float64(0.17453941635187675), + Flogctail: float64(2.2924522154618074e-14), + }, + 100: { + Finvc: float64(0.8359375), + Flogc: float64(0.17920142945774842), + Flogctail: -Float64FromFloat64(3.742530094732263e-14), + }, + 101: { + Finvc: float64(0.83203125), + Flogc: float64(0.18388527877016259), + Flogctail: -Float64FromFloat64(2.5223102140407338e-14), + }, + 102: { + Finvc: float64(0.82421875), + Flogc: float64(0.1933193110035063), + Flogctail: -Float64FromFloat64(1.0320443688698849e-14), + }, + 103: { + Finvc: float64(0.8203125), + Flogc: float64(0.19806991376208316), + Flogctail: float64(1.0634128304268335e-14), + }, + 104: { + Finvc: float64(0.8125), + Flogc: float64(0.20763936477828793), + Flogctail: -Float64FromFloat64(4.3425422595242564e-14), + }, + 105: { + Finvc: float64(0.80859375), + Flogc: float64(0.21245865121420593), + Flogctail: -Float64FromFloat64(1.2527395755711364e-14), + }, + 106: { + Finvc: float64(0.8046875), + Flogc: float64(0.21730127569003344), + Flogctail: -Float64FromFloat64(5.204008743405884e-14), + }, + 107: { + Finvc: float64(0.80078125), + Flogc: float64(0.22216746534115828), + Flogctail: -Float64FromFloat64(3.979844515951702e-15), + }, + 108: { + Finvc: float64(0.79296875), + Flogc: float64(0.2319714654378231), + Flogctail: -Float64FromFloat64(4.7955860343296286e-14), + }, + 109: { + Finvc: float64(0.7890625), + Flogc: float64(0.2369097470783572), + Flogctail: float64(5.015686013791602e-16), + }, + 110: { + Finvc: float64(0.78515625), + Flogc: float64(0.24187253642048745), + Flogctail: -Float64FromFloat64(7.252318953240293e-16), + }, + 111: { + Finvc: float64(0.78125), + Flogc: float64(0.2468600779315011), + Flogctail: float64(2.4688324156011588e-14), + }, + 112: { + Finvc: float64(0.7734375), + Flogc: float64(0.2569104137850218), + Flogctail: float64(5.465121253624792e-15), + }, + 113: { + Finvc: float64(0.76953125), + Flogc: float64(0.26197371574153294), + Flogctail: float64(4.102651071698446e-14), + }, + 114: { + Finvc: float64(0.765625), + Flogc: float64(0.2670627852490952), + Flogctail: -Float64FromFloat64(4.996736502345936e-14), + }, + 115: { + Finvc: float64(0.76171875), + Flogc: float64(0.27217788591576664), + Flogctail: float64(4.903580708156347e-14), + }, + 116: { + Finvc: float64(0.7578125), + Flogc: float64(0.27731928541618345), + Flogctail: float64(5.089628039500759e-14), + }, + 117: { + Finvc: float64(0.75390625), + Flogc: float64(0.28248725557466514), + Flogctail: float64(1.1782016386565151e-14), + }, + 118: { + Finvc: float64(0.74609375), + Flogc: float64(0.29290401643288533), + Flogctail: float64(4.727452940514406e-14), + }, + 119: { + Finvc: float64(0.7421875), + Flogc: float64(0.29815337231912054), + Flogctail: -Float64FromFloat64(4.4204083338755686e-14), + }, + 120: { + Finvc: float64(0.73828125), + Flogc: float64(0.3034304294199046), + Flogctail: float64(1.548345993498083e-14), + }, + 121: { + Finvc: float64(0.734375), + Flogc: float64(0.30873548164959175), + Flogctail: float64(2.1522127491642888e-14), + }, + 122: { + Finvc: float64(0.73046875), + Flogc: float64(0.3140688276249648), + Flogctail: float64(1.1054030169005386e-14), + }, + 123: { + Finvc: float64(0.7265625), + Flogc: float64(0.31943077076641657), + Flogctail: -Float64FromFloat64(5.534326352070679e-14), + }, + 124: { + Finvc: float64(0.72265625), + Flogc: float64(0.3248216194012912), + Flogctail: -Float64FromFloat64(5.351646604259541e-14), + }, + 125: { + Finvc: float64(0.71875), + Flogc: float64(0.33024168687052224), + Flogctail: float64(5.4612144489920215e-14), + }, + 126: { + Finvc: float64(0.71484375), + Flogc: float64(0.3356912916381134), + Flogctail: float64(2.8136969901227338e-14), + }, + 127: { + Finvc: float64(0.7109375), + Flogc: float64(0.3411707574027787), + Flogctail: -Float64FromFloat64(1.156568624616423e-14), + }, + }, +} + +var X__powf_log2_data = Tpowf_log2_data{ + Ftab: [16]struct { + Finvc float64 + Flogc float64 + }{ + 0: { + Finvc: float64(1.398907162146528), + Flogc: float64(-Float64FromFloat64(0.48430022186289673) * float64(Int32FromInt32(1)<> int32(32)) + **(**int32)(__ccgo_up(expt)) = Int32FromUint32(hx>>Int32FromInt32(20) - Uint32FromInt32(Int32FromInt32(0x3ff)+Int32FromInt32(1023)) + _k) + v1 = uint64(hx&Uint32FromInt32(0xfffff)|Uint32FromInt32((Int32FromInt32(0x3ff)+Int32FromInt32(1023))<= ln(DBL_MAX)) +// * where care is needed to avoid overflow. +// * +// * The present implementation is narrowly tailored for our hyperbolic and +// * exponential functions. We assume expt is small (0 or -1), and the caller +// * has filtered out very large x, for which overflow would be inevitable. +// */ +func X__ldexp_cexp(tls *TLS, z complex128, expt int32) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v expt=%v, (%v:)", tls, z, expt, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var exp_x, scale1, scale2, x, y float64 + var half_expt int32 + var v1 Tuint64_t + var v3 [2]float64 + var _ /* ex_expt at bp+0 */ int32 + _, _, _, _, _, _, _, _ = exp_x, half_expt, scale1, scale2, x, y, v1, v3 + x = Float64FromComplex128(z) + y = +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] + exp_x = ___frexp_exp(tls, x, bp) + expt = expt + **(**int32)(__ccgo_up(bp)) + /* + * Arrange so that scale1 * scale2 == 2**expt. We use this to + * compensate for scalbn being horrendously slow. + */ + half_expt = expt / int32(2) + v1 = Uint64FromInt32((Int32FromInt32(0x3ff)+half_expt)<>Int32FromInt32(23) - Uint32FromInt32(Int32FromInt32(0x7f)+Int32FromInt32(127)) + _k1) + v1 = hx&uint32(0x7fffff) | Uint32FromInt32((Int32FromInt32(0x7f)+Int32FromInt32(127))< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var exp_x, scale1, scale2, x, y float32 + var half_expt int32 + var v1 Tuint32_t + var v3 [2]float32 + var _ /* ex_expt at bp+0 */ int32 + _, _, _, _, _, _, _, _ = exp_x, half_expt, scale1, scale2, x, y, v1, v3 + x = Float32FromComplex64(z) + y = +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] + exp_x = ___frexp_expf(tls, x, bp) + expt = expt + **(**int32)(__ccgo_up(bp)) + half_expt = expt / int32(2) + v1 = Uint32FromInt32((int32(0x7f) + half_expt) << int32(23)) + scale1 = *(*float32)(unsafe.Pointer(&v1)) + half_expt = expt - half_expt + v1 = Uint32FromInt32((int32(0x7f) + half_expt) << int32(23)) + scale2 = *(*float32)(unsafe.Pointer(&v1)) + v3 = [2]float32{ + 0: float32(float32(float32(Xcosf(tls, y)*exp_x)*scale1) * scale2), + 1: float32(float32(float32(Xsinf(tls, y)*exp_x)*scale1) * scale2), + } + return *(*complex64)(unsafe.Pointer(&v3)) +} + +func Xcabs(tls *TLS, z complex128) (r float64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xhypot(tls, Float64FromComplex128(z), +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)]) +} + +func Xcabsf(tls *TLS, z complex64) (r float32) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xhypotf(tls, Float32FromComplex64(z), +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)]) +} + +func Xcabsl(tls *TLS, z complex128) (r float64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xcabs(tls, Complex128FromComplex128(z)) +} + +const M_PI_21 = 1.5707963267948966 + +// FIXME: Hull et al. "Implementing the complex arcsine and arccosine functions using exception handling" 1997 + +/* acos(z) = pi/2 - asin(z) */ + +func Xcacos(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float64 + _ = v1 + z = Xcasin(tls, z) + v1 = [2]float64{ + 0: float64(1.5707963267948966) - Float64FromComplex128(z), + 1: -+(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +// FIXME + +var _float_pi_2 = float32(1.5707963267948966) + +func Xcacosf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float32 + _ = v1 + z = Xcasinf(tls, z) + v1 = [2]float32{ + 0: _float_pi_2 - Float32FromComplex64(z), + 1: -+(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + } + return *(*complex64)(unsafe.Pointer(&v1)) +} + +const M_PI_22 = 0 + +/* acosh(z) = i acos(z) */ + +func Xcacosh(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var zineg int32 + var v1 uint64 + var v3 [2]float64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _, _, _ = zineg, v1, v3 + *(*float64)(unsafe.Pointer(bp)) = +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + zineg = Int32FromUint64(v1 >> Int32FromInt32(63)) + z = Xcacos(tls, z) + if zineg != 0 { + v3 = [2]float64{ + 0: +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: -Float64FromComplex128(z), + } + return *(*complex128)(unsafe.Pointer(&v3)) + } else { + v3 = [2]float64{ + 0: -+(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: Float64FromComplex128(z), + } + return *(*complex128)(unsafe.Pointer(&v3)) + } + return r +} + +func Xcacoshf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var zineg int32 + var v1 uint32 + var v3 [2]float32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _, _, _ = zineg, v1, v3 + *(*float32)(unsafe.Pointer(bp)) = +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + zineg = Int32FromUint32(v1 >> Int32FromInt32(31)) + z = Xcacosf(tls, z) + if zineg != 0 { + v3 = [2]float32{ + 0: +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: -Float32FromComplex64(z), + } + return *(*complex64)(unsafe.Pointer(&v3)) + } else { + v3 = [2]float32{ + 0: -+(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: Float32FromComplex64(z), + } + return *(*complex64)(unsafe.Pointer(&v3)) + } + return r +} + +func Xcacoshl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcacosh(tls, Complex128FromComplex128(z))) +} + +func Xcacosl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcacos(tls, Complex128FromComplex128(z))) +} + +func Xcarg(tls *TLS, z complex128) (r float64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xatan2(tls, +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], Float64FromComplex128(z)) +} + +func Xcargf(tls *TLS, z complex64) (r float32) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xatan2f(tls, +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], Float32FromComplex64(z)) +} + +func Xcargl(tls *TLS, z complex128) (r float64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xcarg(tls, Complex128FromComplex128(z)) +} + +// FIXME + +/* asin(z) = -i log(i z + sqrt(1 - z*z)) */ + +func Xcasin(tls *TLS, z complex128) (r1 complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, w complex128 + var x, y float64 + var v1, v2 [2]float64 + _, _, _, _, _, _ = r, w, x, y, v1, v2 + x = Float64FromComplex128(z) + y = +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] + v1 = [2]float64{ + 0: float64(1) - float64((x-y)*(x+y)), + 1: float64(float64(-Float64FromFloat64(2)*x) * y), + } + w = *(*complex128)(unsafe.Pointer(&v1)) + v1 = [2]float64{ + 0: -y, + 1: x, + } + r = Xclog(tls, *(*complex128)(unsafe.Pointer(&v1))+Xcsqrt(tls, w)) + v2 = [2]float64{ + 0: +(*(*[2]float64)(unsafe.Pointer(&r)))[int32(1)], + 1: -Float64FromComplex128(r), + } + return *(*complex128)(unsafe.Pointer(&v2)) +} + +// FIXME + +func Xcasinf(tls *TLS, z complex64) (r1 complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, w complex64 + var x, y float32 + var v1, v2 [2]float32 + _, _, _, _, _, _ = r, w, x, y, v1, v2 + x = Float32FromComplex64(z) + y = +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] + v1 = [2]float32{ + 0: float32(Float64FromFloat64(1) - float64((x-y)*(x+y))), + 1: float32(float64(float64(-Float64FromFloat64(2)*float64(x)) * float64(y))), + } + w = *(*complex64)(unsafe.Pointer(&v1)) + v1 = [2]float32{ + 0: -y, + 1: x, + } + r = Xclogf(tls, *(*complex64)(unsafe.Pointer(&v1))+Xcsqrtf(tls, w)) + v2 = [2]float32{ + 0: +(*(*[2]float32)(unsafe.Pointer(&r)))[int32(1)], + 1: -Float32FromComplex64(r), + } + return *(*complex64)(unsafe.Pointer(&v2)) +} + +/* asinh(z) = -i asin(i z) */ + +func Xcasinh(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float64 + _ = v1 + v1 = [2]float64{ + 0: -+(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: Float64FromComplex128(z), + } + z = Xcasin(tls, *(*complex128)(unsafe.Pointer(&v1))) + v1 = [2]float64{ + 0: +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: -Float64FromComplex128(z), + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +func Xcasinhf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float32 + _ = v1 + v1 = [2]float32{ + 0: -+(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: Float32FromComplex64(z), + } + z = Xcasinf(tls, *(*complex64)(unsafe.Pointer(&v1))) + v1 = [2]float32{ + 0: +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: -Float32FromComplex64(z), + } + return *(*complex64)(unsafe.Pointer(&v1)) +} + +func Xcasinhl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcasinh(tls, Complex128FromComplex128(z))) +} + +func Xcasinl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcasin(tls, Complex128FromComplex128(z))) +} + +const MAXNUM = 0 +const M_PI1 = 3.141592653589793 + +var _DP1 = float64(3.141592651605606) +var _DP2 = float64(1.9841871479187034e-09) +var _DP3 = float64(1.1442377452219664e-17) + +func __redupi(tls *TLS, x float64) (r float64) { + var i int64 + var t float64 + _, _ = i, t + t = x / float64(3.141592653589793) + if t >= float64(0) { + t = t + float64(0.5) + } else { + t = t - float64(0.5) + } + i = int64(t) /* the multiple */ + t = float64(i) + t = x - float64(t*_DP1) - float64(t*_DP2) - float64(t*_DP3) + return t +} + +func Xcatan(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, t, x, x2, y float64 + var w complex128 + var v1 [2]float64 + _, _, _, _, _, _, _ = a, t, w, x, x2, y, v1 + x = Float64FromComplex128(z) + y = +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] + x2 = float64(x * x) + a = float64(1) - x2 - float64(y*y) + t = float64(float64(0.5) * Xatan2(tls, float64(float64(2)*x), a)) + w = Complex128FromFloat64(__redupi(tls, t)) + t = y - float64(1) + a = x2 + float64(t*t) + t = y + float64(1) + a = (x2 + float64(t*t)) / a + v1 = [2]float64{ + 0: Float64FromComplex128(w), + 1: float64(float64(0.25) * Xlog(tls, a)), + } + w = *(*complex128)(unsafe.Pointer(&v1)) + return w +} + +const MAXNUMF = 0 + +var _DP11 = float64(3.140625) +var _DP21 = float64(0.0009675025939941406) +var _DP31 = float64(1.5099579909783765e-07) + +var _float_pi = float32(3.141592653589793) + +func __redupif(tls *TLS, xx float32) (r float32) { + var i int64 + var t, x float32 + _, _, _ = i, t, x + x = xx + t = x / _float_pi + if t >= Float32FromFloat32(0) { + t = t + Float32FromFloat32(0.5) + } else { + t = t - Float32FromFloat32(0.5) + } + i = int64(t) /* the multiple */ + t = float32(i) + t = float32(float64(x) - float64(float64(t)*_DP11) - float64(float64(t)*_DP21) - float64(float64(t)*_DP31)) + return t +} + +func Xcatanf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, t, x, x2, y float32 + var w complex64 + var v1 [2]float32 + _, _, _, _, _, _, _ = a, t, w, x, x2, y, v1 + x = Float32FromComplex64(z) + y = +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] + x2 = float32(x * x) + a = Float32FromFloat32(1) - x2 - float32(y*y) + t = float32(Float32FromFloat32(0.5) * Xatan2f(tls, float32(Float32FromFloat32(2)*x), a)) + w = Complex64FromFloat32(__redupif(tls, t)) + t = y - Float32FromFloat32(1) + a = x2 + float32(t*t) + t = y + Float32FromFloat32(1) + a = (x2 + float32(t*t)) / a + v1 = [2]float32{ + 0: Float32FromComplex64(w), + 1: float32(Float32FromFloat32(0.25) * Xlogf(tls, a)), + } + w = *(*complex64)(unsafe.Pointer(&v1)) + return w +} + +const M_PI2 = 0 + +/* atanh = -i atan(i z) */ + +func Xcatanh(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float64 + _ = v1 + v1 = [2]float64{ + 0: -+(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: Float64FromComplex128(z), + } + z = Xcatan(tls, *(*complex128)(unsafe.Pointer(&v1))) + v1 = [2]float64{ + 0: +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: -Float64FromComplex128(z), + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +func Xcatanhf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float32 + _ = v1 + v1 = [2]float32{ + 0: -+(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: Float32FromComplex64(z), + } + z = Xcatanf(tls, *(*complex64)(unsafe.Pointer(&v1))) + v1 = [2]float32{ + 0: +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: -Float32FromComplex64(z), + } + return *(*complex64)(unsafe.Pointer(&v1)) +} + +func Xcatanhl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcatanh(tls, Complex128FromComplex128(z))) +} + +func Xcatanl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcatan(tls, Complex128FromComplex128(z))) +} + +/* cos(z) = cosh(i z) */ + +func Xccos(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float64 + _ = v1 + v1 = [2]float64{ + 0: -+(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: Float64FromComplex128(z), + } + return Xccosh(tls, *(*complex128)(unsafe.Pointer(&v1))) +} + +func Xccosf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float32 + _ = v1 + v1 = [2]float32{ + 0: -+(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: Float32FromComplex64(z), + } + return Xccoshf(tls, *(*complex64)(unsafe.Pointer(&v1))) +} + +var _huge = float64(8.98846567431158e+307) + +func Xccosh(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __u, __u1 Tuint64_t + var h, x, y float64 + var hx, hy, ix, iy, lx, ly Tint32_t + var v1 [2]float64 + _, _, _, _, _, _, _, _, _, _, _, _ = __u, __u1, h, hx, hy, ix, iy, lx, ly, x, y, v1 + x = Float64FromComplex128(z) + y = +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] + __u = *(*Tuint64_t)(unsafe.Pointer(&x)) + hx = Int32FromUint64(__u >> int32(32)) + lx = Int32FromUint32(uint32(__u)) + __u1 = *(*Tuint64_t)(unsafe.Pointer(&y)) + hy = Int32FromUint64(__u1 >> int32(32)) + ly = Int32FromUint32(uint32(__u1)) + ix = int32(0x7fffffff) & hx + iy = int32(0x7fffffff) & hy + /* Handle the nearly-non-exceptional cases where x and y are finite. */ + if ix < int32(0x7ff00000) && iy < int32(0x7ff00000) { + if iy|ly == 0 { + v1 = [2]float64{ + 0: Xcosh(tls, x), + 1: float64(x * y), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + if ix < int32(0x40360000) { /* small x: normal case */ + v1 = [2]float64{ + 0: float64(Xcosh(tls, x) * Xcos(tls, y)), + 1: float64(Xsinh(tls, x) * Xsin(tls, y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* |x| >= 22, so cosh(x) ~= exp(|x|) */ + if ix < int32(0x40862e42) { + /* x < 710: exp(|x|) won't overflow */ + h = float64(Xexp(tls, Xfabs(tls, x)) * float64(0.5)) + v1 = [2]float64{ + 0: float64(h * Xcos(tls, y)), + 1: float64(Xcopysign(tls, h, x) * Xsin(tls, y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } else { + if ix < int32(0x4096bbaa) { + /* x < 1455: scale to avoid overflow */ + v1 = [2]float64{ + 0: Xfabs(tls, x), + 1: y, + } + z = X__ldexp_cexp(tls, *(*complex128)(unsafe.Pointer(&v1)), -int32(1)) + v1 = [2]float64{ + 0: Float64FromComplex128(z), + 1: float64(+(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] * Xcopysign(tls, Float64FromInt32(1), x)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } else { + /* x >= 1455: the result always overflows */ + h = float64(_huge * x) + v1 = [2]float64{ + 0: float64(float64(h*h) * Xcos(tls, y)), + 1: float64(h * Xsin(tls, y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + } + } + /* + * cosh(+-0 +- I Inf) = dNaN + I sign(d(+-0, dNaN))0. + * The sign of 0 in the result is unspecified. Choice = normally + * the same as dNaN. Raise the invalid floating-point exception. + * + * cosh(+-0 +- I NaN) = d(NaN) + I sign(d(+-0, NaN))0. + * The sign of 0 in the result is unspecified. Choice = normally + * the same as d(NaN). + */ + if ix|lx == 0 && iy >= int32(0x7ff00000) { + v1 = [2]float64{ + 0: y - y, + 1: Xcopysign(tls, Float64FromInt32(0), float64(x*(y-y))), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* + * cosh(+-Inf +- I 0) = +Inf + I (+-)(+-)0. + * + * cosh(NaN +- I 0) = d(NaN) + I sign(d(NaN, +-0))0. + * The sign of 0 in the result is unspecified. + */ + if iy|ly == 0 && ix >= int32(0x7ff00000) { + if hx&int32(0xfffff)|lx == 0 { + v1 = [2]float64{ + 0: float64(x * x), + 1: float64(Xcopysign(tls, Float64FromInt32(0), x) * y), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + v1 = [2]float64{ + 0: float64(x * x), + 1: Xcopysign(tls, Float64FromInt32(0), float64((x+x)*y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* + * cosh(x +- I Inf) = dNaN + I dNaN. + * Raise the invalid floating-point exception for finite nonzero x. + * + * cosh(x + I NaN) = d(NaN) + I d(NaN). + * Optionally raises the invalid floating-point exception for finite + * nonzero x. Choice = don't raise (except for signaling NaNs). + */ + if ix < int32(0x7ff00000) && iy >= int32(0x7ff00000) { + v1 = [2]float64{ + 0: y - y, + 1: float64(x * (y - y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* + * cosh(+-Inf + I NaN) = +Inf + I d(NaN). + * + * cosh(+-Inf +- I Inf) = +Inf + I dNaN. + * The sign of Inf in the result is unspecified. Choice = always +. + * Raise the invalid floating-point exception. + * + * cosh(+-Inf + I y) = +Inf cos(y) +- I Inf sin(y) + */ + if ix >= int32(0x7ff00000) && hx&int32(0xfffff)|lx == 0 { + if iy >= int32(0x7ff00000) { + v1 = [2]float64{ + 0: float64(x * x), + 1: float64(x * (y - y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + v1 = [2]float64{ + 0: float64(float64(x*x) * Xcos(tls, y)), + 1: float64(x * Xsin(tls, y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* + * cosh(NaN + I NaN) = d(NaN) + I d(NaN). + * + * cosh(NaN +- I Inf) = d(NaN) + I d(NaN). + * Optionally raises the invalid floating-point exception. + * Choice = raise. + * + * cosh(NaN + I y) = d(NaN) + I d(NaN). + * Optionally raises the invalid floating-point exception for finite + * nonzero y. Choice = don't raise (except for signaling NaNs). + */ + v1 = [2]float64{ + 0: float64(float64(x*x) * (y - y)), + 1: float64((x + x) * (y - y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +var _huge1 = float32(1.7014118346046923e+38) + +func Xccoshf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var h, x, y float32 + var hx, hy, ix, iy Tint32_t + var v1 [2]float32 + _, _, _, _, _, _, _, _ = h, hx, hy, ix, iy, x, y, v1 + x = Float32FromComplex64(z) + y = +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] + hx = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(&x))) + hy = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(&y))) + ix = int32(0x7fffffff) & hx + iy = int32(0x7fffffff) & hy + if ix < int32(0x7f800000) && iy < int32(0x7f800000) { + if iy == 0 { + v1 = [2]float32{ + 0: Xcoshf(tls, x), + 1: float32(x * y), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + if ix < int32(0x41100000) { /* small x: normal case */ + v1 = [2]float32{ + 0: float32(Xcoshf(tls, x) * Xcosf(tls, y)), + 1: float32(Xsinhf(tls, x) * Xsinf(tls, y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + /* |x| >= 9, so cosh(x) ~= exp(|x|) */ + if ix < int32(0x42b17218) { + /* x < 88.7: expf(|x|) won't overflow */ + h = float32(Xexpf(tls, Xfabsf(tls, x)) * Float32FromFloat32(0.5)) + v1 = [2]float32{ + 0: float32(h * Xcosf(tls, y)), + 1: float32(Xcopysignf(tls, h, x) * Xsinf(tls, y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } else { + if ix < int32(0x4340b1e7) { + /* x < 192.7: scale to avoid overflow */ + v1 = [2]float32{ + 0: Xfabsf(tls, x), + 1: y, + } + z = X__ldexp_cexpf(tls, *(*complex64)(unsafe.Pointer(&v1)), -int32(1)) + v1 = [2]float32{ + 0: Float32FromComplex64(z), + 1: float32(+(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] * Xcopysignf(tls, Float32FromInt32(1), x)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } else { + /* x >= 192.7: the result always overflows */ + h = float32(_huge1 * x) + v1 = [2]float32{ + 0: float32(float32(h*h) * Xcosf(tls, y)), + 1: float32(h * Xsinf(tls, y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + } + } + if ix == 0 && iy >= int32(0x7f800000) { + v1 = [2]float32{ + 0: y - y, + 1: Xcopysignf(tls, Float32FromInt32(0), float32(x*(y-y))), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + if iy == 0 && ix >= int32(0x7f800000) { + if hx&int32(0x7fffff) == 0 { + v1 = [2]float32{ + 0: float32(x * x), + 1: float32(Xcopysignf(tls, Float32FromInt32(0), x) * y), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + v1 = [2]float32{ + 0: float32(x * x), + 1: Xcopysignf(tls, Float32FromInt32(0), float32((x+x)*y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + if ix < int32(0x7f800000) && iy >= int32(0x7f800000) { + v1 = [2]float32{ + 0: y - y, + 1: float32(x * (y - y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + if ix >= int32(0x7f800000) && hx&int32(0x7fffff) == 0 { + if iy >= int32(0x7f800000) { + v1 = [2]float32{ + 0: float32(x * x), + 1: float32(x * (y - y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + v1 = [2]float32{ + 0: float32(float32(x*x) * Xcosf(tls, y)), + 1: float32(x * Xsinf(tls, y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + v1 = [2]float32{ + 0: float32(float32(x*x) * (y - y)), + 1: float32((x + x) * (y - y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) +} + +// C documentation +// +// //FIXME +func Xccoshl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xccosh(tls, Complex128FromComplex128(z))) +} + +func Xccosl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xccos(tls, Complex128FromComplex128(z))) +} + +var _exp_ovfl = uint32(0x40862e42) /* high bits of MAX_EXP * ln2 ~= 710 */ +var _cexp_ovfl = uint32(0x4096b8e4) /* (MAX_EXP - MIN_DENORM_EXP) * ln2 */ + +func Xcexp(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __u, __u1 Tuint64_t + var exp_x, x, y float64 + var hx, hy, lx, ly Tuint32_t + var v1 [2]float64 + _, _, _, _, _, _, _, _, _, _ = __u, __u1, exp_x, hx, hy, lx, ly, x, y, v1 + x = Float64FromComplex128(z) + y = +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] + __u = *(*Tuint64_t)(unsafe.Pointer(&y)) + hy = uint32(__u >> int32(32)) + ly = uint32(__u) + hy = hy & uint32(0x7fffffff) + /* cexp(x + I 0) = exp(x) + I 0 */ + if hy|ly == uint32(0) { + v1 = [2]float64{ + 0: Xexp(tls, x), + 1: y, + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + __u1 = *(*Tuint64_t)(unsafe.Pointer(&x)) + hx = uint32(__u1 >> int32(32)) + lx = uint32(__u1) + /* cexp(0 + I y) = cos(y) + I sin(y) */ + if hx&uint32(0x7fffffff)|lx == uint32(0) { + v1 = [2]float64{ + 0: Xcos(tls, y), + 1: Xsin(tls, y), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + if hy >= uint32(0x7ff00000) { + if lx != uint32(0) || hx&uint32(0x7fffffff) != uint32(0x7ff00000) { + /* cexp(finite|NaN +- I Inf|NaN) = NaN + I NaN */ + v1 = [2]float64{ + 0: y - y, + 1: y - y, + } + return *(*complex128)(unsafe.Pointer(&v1)) + } else { + if hx&uint32(0x80000000) != 0 { + /* cexp(-Inf +- I Inf|NaN) = 0 + I 0 */ + v1 = [2]float64{} + return *(*complex128)(unsafe.Pointer(&v1)) + } else { + /* cexp(+Inf +- I Inf|NaN) = Inf + I NaN */ + v1 = [2]float64{ + 0: x, + 1: y - y, + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + } + } + if hx >= _exp_ovfl && hx <= _cexp_ovfl { + /* + * x is between 709.7 and 1454.3, so we must scale to avoid + * overflow in exp(x). + */ + return X__ldexp_cexp(tls, z, 0) + } else { + /* + * Cases covered here: + * - x < exp_ovfl and exp(x) won't overflow (common case) + * - x > cexp_ovfl, so exp(x) * s overflows for all s > 0 + * - x = +-Inf (generated by exp()) + * - x = NaN (spurious inexact exception from y) + */ + exp_x = Xexp(tls, x) + v1 = [2]float64{ + 0: float64(exp_x * Xcos(tls, y)), + 1: float64(exp_x * Xsin(tls, y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + return r +} + +var _exp_ovfl1 = uint32(0x42b17218) /* MAX_EXP * ln2 ~= 88.722839355 */ +var _cexp_ovfl1 = uint32(0x43400074) /* (MAX_EXP - MIN_DENORM_EXP) * ln2 */ + +func Xcexpf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var exp_x, x, y float32 + var hx, hy Tuint32_t + var v1 [2]float32 + _, _, _, _, _, _ = exp_x, hx, hy, x, y, v1 + x = Float32FromComplex64(z) + y = +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] + hy = *(*Tuint32_t)(unsafe.Pointer(&y)) + hy = hy & uint32(0x7fffffff) + /* cexp(x + I 0) = exp(x) + I 0 */ + if hy == uint32(0) { + v1 = [2]float32{ + 0: Xexpf(tls, x), + 1: y, + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + hx = *(*Tuint32_t)(unsafe.Pointer(&x)) + /* cexp(0 + I y) = cos(y) + I sin(y) */ + if hx&uint32(0x7fffffff) == uint32(0) { + v1 = [2]float32{ + 0: Xcosf(tls, y), + 1: Xsinf(tls, y), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + if hy >= uint32(0x7f800000) { + if hx&uint32(0x7fffffff) != uint32(0x7f800000) { + /* cexp(finite|NaN +- I Inf|NaN) = NaN + I NaN */ + v1 = [2]float32{ + 0: y - y, + 1: y - y, + } + return *(*complex64)(unsafe.Pointer(&v1)) + } else { + if hx&uint32(0x80000000) != 0 { + /* cexp(-Inf +- I Inf|NaN) = 0 + I 0 */ + v1 = [2]float32{} + return *(*complex64)(unsafe.Pointer(&v1)) + } else { + /* cexp(+Inf +- I Inf|NaN) = Inf + I NaN */ + v1 = [2]float32{ + 0: x, + 1: y - y, + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + } + } + if hx >= _exp_ovfl1 && hx <= _cexp_ovfl1 { + /* + * x is between 88.7 and 192, so we must scale to avoid + * overflow in expf(x). + */ + return X__ldexp_cexpf(tls, z, 0) + } else { + /* + * Cases covered here: + * - x < exp_ovfl and exp(x) won't overflow (common case) + * - x > cexp_ovfl, so exp(x) * s overflows for all s > 0 + * - x = +-Inf (generated by exp()) + * - x = NaN (spurious inexact exception from y) + */ + exp_x = Xexpf(tls, x) + v1 = [2]float32{ + 0: float32(exp_x * Xcosf(tls, y)), + 1: float32(exp_x * Xsinf(tls, y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + return r +} + +// C documentation +// +// //FIXME +func Xcexpl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcexp(tls, Complex128FromComplex128(z))) +} + +func Xcimag(tls *TLS, z complex128) (r float64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] +} + +func Xcimagf(tls *TLS, z complex64) (r float32) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] +} + +func Xcimagl(tls *TLS, z complex128) (r float64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] +} + +// FIXME + +/* log(z) = log(|z|) + i arg(z) */ + +func Xclog(tls *TLS, z complex128) (r1 complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var phi, r float64 + var v1 [2]float64 + _, _, _ = phi, r, v1 + r = Xcabs(tls, z) + phi = Xcarg(tls, z) + v1 = [2]float64{ + 0: Xlog(tls, r), + 1: phi, + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +// FIXME + +func Xclogf(tls *TLS, z complex64) (r1 complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var phi, r float32 + var v1 [2]float32 + _, _, _ = phi, r, v1 + r = Xcabsf(tls, z) + phi = Xcargf(tls, z) + v1 = [2]float32{ + 0: Xlogf(tls, r), + 1: phi, + } + return *(*complex64)(unsafe.Pointer(&v1)) +} + +func Xclogl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xclog(tls, Complex128FromComplex128(z))) +} + +func Xconj(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float64 + _ = v1 + v1 = [2]float64{ + 0: Float64FromComplex128(z), + 1: -+(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +func Xconjf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float32 + _ = v1 + v1 = [2]float32{ + 0: Float32FromComplex64(z), + 1: -+(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + } + return *(*complex64)(unsafe.Pointer(&v1)) +} + +func Xconjl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float64 + _ = v1 + v1 = [2]float64{ + 0: Float64FromComplex128(z), + 1: -+(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +/* pow(z, c) = exp(c log(z)), See C99 G.6.4.1 */ + +func Xcpow(tls *TLS, z complex128, c complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v c=%v, (%v:)", tls, z, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xcexp(tls, c*Xclog(tls, z)) +} + +func Xcpowf(tls *TLS, z complex64, c complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v c=%v, (%v:)", tls, z, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xcexpf(tls, c*Xclogf(tls, z)) +} + +func Xcpowl(tls *TLS, z complex128, c complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v c=%v, (%v:)", tls, z, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcpow(tls, Complex128FromComplex128(z), Complex128FromComplex128(c))) +} + +func Xcproj(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1, v3 uint64 + var v5 bool + var v6 [2]float64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _, _, _, _ = v1, v3, v5, v6 + *(*float64)(unsafe.Pointer(bp)) = Float64FromComplex128(z) + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + ; + if v5 = BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) == Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) == Uint64FromUint64(0x7ff)< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1, v3 uint32 + var v5 bool + var v6 [2]float32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _, _, _, _ = v1, v3, v5, v6 + *(*float32)(unsafe.Pointer(bp)) = Float32FromComplex64(z) + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + ; + if v5 = BoolInt32(v1&uint32(0x7fffffff) == uint32(0x7f800000)) != 0; !v5 { + *(*float32)(unsafe.Pointer(bp)) = +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] + v3 = *(*uint32)(unsafe.Pointer(bp)) + goto _4 + _4: + } + if v5 || BoolInt32(v3&uint32(0x7fffffff) == uint32(0x7f800000)) != 0 { + v6 = [2]float32{ + 0: X__builtin_inff(tls), + 1: Xcopysignf(tls, float32(0), +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)]), + } + return *(*complex64)(unsafe.Pointer(&v6)) + } + return z +} + +func Xcprojl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcproj(tls, Complex128FromComplex128(z))) +} + +func Xcreal(tls *TLS, z complex128) (r float64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Float64FromComplex128(z) +} + +func Xcrealf(tls *TLS, z complex64) (r float32) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Float32FromComplex64(z) +} + +func Xcreall(tls *TLS, z complex128) (r float64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Float64FromComplex128(z) +} + +/* sin(z) = -i sinh(i z) */ + +func Xcsin(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float64 + _ = v1 + v1 = [2]float64{ + 0: -+(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: Float64FromComplex128(z), + } + z = Xcsinh(tls, *(*complex128)(unsafe.Pointer(&v1))) + v1 = [2]float64{ + 0: +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: -Float64FromComplex128(z), + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +func Xcsinf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float32 + _ = v1 + v1 = [2]float32{ + 0: -+(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: Float32FromComplex64(z), + } + z = Xcsinhf(tls, *(*complex64)(unsafe.Pointer(&v1))) + v1 = [2]float32{ + 0: +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: -Float32FromComplex64(z), + } + return *(*complex64)(unsafe.Pointer(&v1)) +} + +var _huge2 = float64(8.98846567431158e+307) + +func Xcsinh(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __u, __u1 Tuint64_t + var h, x, y float64 + var hx, hy, ix, iy, lx, ly Tint32_t + var v1 [2]float64 + _, _, _, _, _, _, _, _, _, _, _, _ = __u, __u1, h, hx, hy, ix, iy, lx, ly, x, y, v1 + x = Float64FromComplex128(z) + y = +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] + __u = *(*Tuint64_t)(unsafe.Pointer(&x)) + hx = Int32FromUint64(__u >> int32(32)) + lx = Int32FromUint32(uint32(__u)) + __u1 = *(*Tuint64_t)(unsafe.Pointer(&y)) + hy = Int32FromUint64(__u1 >> int32(32)) + ly = Int32FromUint32(uint32(__u1)) + ix = int32(0x7fffffff) & hx + iy = int32(0x7fffffff) & hy + /* Handle the nearly-non-exceptional cases where x and y are finite. */ + if ix < int32(0x7ff00000) && iy < int32(0x7ff00000) { + if iy|ly == 0 { + v1 = [2]float64{ + 0: Xsinh(tls, x), + 1: y, + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + if ix < int32(0x40360000) { /* small x: normal case */ + v1 = [2]float64{ + 0: float64(Xsinh(tls, x) * Xcos(tls, y)), + 1: float64(Xcosh(tls, x) * Xsin(tls, y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* |x| >= 22, so cosh(x) ~= exp(|x|) */ + if ix < int32(0x40862e42) { + /* x < 710: exp(|x|) won't overflow */ + h = float64(Xexp(tls, Xfabs(tls, x)) * float64(0.5)) + v1 = [2]float64{ + 0: float64(Xcopysign(tls, h, x) * Xcos(tls, y)), + 1: float64(h * Xsin(tls, y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } else { + if ix < int32(0x4096bbaa) { + /* x < 1455: scale to avoid overflow */ + v1 = [2]float64{ + 0: Xfabs(tls, x), + 1: y, + } + z = X__ldexp_cexp(tls, *(*complex128)(unsafe.Pointer(&v1)), -int32(1)) + v1 = [2]float64{ + 0: float64(Float64FromComplex128(z) * Xcopysign(tls, Float64FromInt32(1), x)), + 1: +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + } + return *(*complex128)(unsafe.Pointer(&v1)) + } else { + /* x >= 1455: the result always overflows */ + h = float64(_huge2 * x) + v1 = [2]float64{ + 0: float64(h * Xcos(tls, y)), + 1: float64(float64(h*h) * Xsin(tls, y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + } + } + /* + * sinh(+-0 +- I Inf) = sign(d(+-0, dNaN))0 + I dNaN. + * The sign of 0 in the result is unspecified. Choice = normally + * the same as dNaN. Raise the invalid floating-point exception. + * + * sinh(+-0 +- I NaN) = sign(d(+-0, NaN))0 + I d(NaN). + * The sign of 0 in the result is unspecified. Choice = normally + * the same as d(NaN). + */ + if ix|lx == 0 && iy >= int32(0x7ff00000) { + v1 = [2]float64{ + 0: Xcopysign(tls, Float64FromInt32(0), float64(x*(y-y))), + 1: y - y, + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* + * sinh(+-Inf +- I 0) = +-Inf + I +-0. + * + * sinh(NaN +- I 0) = d(NaN) + I +-0. + */ + if iy|ly == 0 && ix >= int32(0x7ff00000) { + if hx&int32(0xfffff)|lx == 0 { + v1 = [2]float64{ + 0: x, + 1: y, + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + v1 = [2]float64{ + 0: x, + 1: Xcopysign(tls, Float64FromInt32(0), y), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* + * sinh(x +- I Inf) = dNaN + I dNaN. + * Raise the invalid floating-point exception for finite nonzero x. + * + * sinh(x + I NaN) = d(NaN) + I d(NaN). + * Optionally raises the invalid floating-point exception for finite + * nonzero x. Choice = don't raise (except for signaling NaNs). + */ + if ix < int32(0x7ff00000) && iy >= int32(0x7ff00000) { + v1 = [2]float64{ + 0: y - y, + 1: float64(x * (y - y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* + * sinh(+-Inf + I NaN) = +-Inf + I d(NaN). + * The sign of Inf in the result is unspecified. Choice = normally + * the same as d(NaN). + * + * sinh(+-Inf +- I Inf) = +Inf + I dNaN. + * The sign of Inf in the result is unspecified. Choice = always +. + * Raise the invalid floating-point exception. + * + * sinh(+-Inf + I y) = +-Inf cos(y) + I Inf sin(y) + */ + if ix >= int32(0x7ff00000) && hx&int32(0xfffff)|lx == 0 { + if iy >= int32(0x7ff00000) { + v1 = [2]float64{ + 0: float64(x * x), + 1: float64(x * (y - y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + v1 = [2]float64{ + 0: float64(x * Xcos(tls, y)), + 1: float64(float64(X__builtin_inff(tls)) * Xsin(tls, y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* + * sinh(NaN + I NaN) = d(NaN) + I d(NaN). + * + * sinh(NaN +- I Inf) = d(NaN) + I d(NaN). + * Optionally raises the invalid floating-point exception. + * Choice = raise. + * + * sinh(NaN + I y) = d(NaN) + I d(NaN). + * Optionally raises the invalid floating-point exception for finite + * nonzero y. Choice = don't raise (except for signaling NaNs). + */ + v1 = [2]float64{ + 0: float64(float64(x*x) * (y - y)), + 1: float64((x + x) * (y - y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +var _huge3 = float32(1.7014118346046923e+38) + +func Xcsinhf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var h, x, y float32 + var hx, hy, ix, iy Tint32_t + var v1 [2]float32 + _, _, _, _, _, _, _, _ = h, hx, hy, ix, iy, x, y, v1 + x = Float32FromComplex64(z) + y = +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] + hx = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(&x))) + hy = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(&y))) + ix = int32(0x7fffffff) & hx + iy = int32(0x7fffffff) & hy + if ix < int32(0x7f800000) && iy < int32(0x7f800000) { + if iy == 0 { + v1 = [2]float32{ + 0: Xsinhf(tls, x), + 1: y, + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + if ix < int32(0x41100000) { /* small x: normal case */ + v1 = [2]float32{ + 0: float32(Xsinhf(tls, x) * Xcosf(tls, y)), + 1: float32(Xcoshf(tls, x) * Xsinf(tls, y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + /* |x| >= 9, so cosh(x) ~= exp(|x|) */ + if ix < int32(0x42b17218) { + /* x < 88.7: expf(|x|) won't overflow */ + h = float32(Xexpf(tls, Xfabsf(tls, x)) * Float32FromFloat32(0.5)) + v1 = [2]float32{ + 0: float32(Xcopysignf(tls, h, x) * Xcosf(tls, y)), + 1: float32(h * Xsinf(tls, y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } else { + if ix < int32(0x4340b1e7) { + /* x < 192.7: scale to avoid overflow */ + v1 = [2]float32{ + 0: Xfabsf(tls, x), + 1: y, + } + z = X__ldexp_cexpf(tls, *(*complex64)(unsafe.Pointer(&v1)), -int32(1)) + v1 = [2]float32{ + 0: float32(Float32FromComplex64(z) * Xcopysignf(tls, Float32FromInt32(1), x)), + 1: +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + } + return *(*complex64)(unsafe.Pointer(&v1)) + } else { + /* x >= 192.7: the result always overflows */ + h = float32(_huge3 * x) + v1 = [2]float32{ + 0: float32(h * Xcosf(tls, y)), + 1: float32(float32(h*h) * Xsinf(tls, y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + } + } + if ix == 0 && iy >= int32(0x7f800000) { + v1 = [2]float32{ + 0: Xcopysignf(tls, Float32FromInt32(0), float32(x*(y-y))), + 1: y - y, + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + if iy == 0 && ix >= int32(0x7f800000) { + if hx&int32(0x7fffff) == 0 { + v1 = [2]float32{ + 0: x, + 1: y, + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + v1 = [2]float32{ + 0: x, + 1: Xcopysignf(tls, Float32FromInt32(0), y), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + if ix < int32(0x7f800000) && iy >= int32(0x7f800000) { + v1 = [2]float32{ + 0: y - y, + 1: float32(x * (y - y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + if ix >= int32(0x7f800000) && hx&int32(0x7fffff) == 0 { + if iy >= int32(0x7f800000) { + v1 = [2]float32{ + 0: float32(x * x), + 1: float32(x * (y - y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + v1 = [2]float32{ + 0: float32(x * Xcosf(tls, y)), + 1: float32(X__builtin_inff(tls) * Xsinf(tls, y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + v1 = [2]float32{ + 0: float32(float32(x*x) * (y - y)), + 1: float32((x + x) * (y - y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) +} + +// C documentation +// +// //FIXME +func Xcsinhl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcsinh(tls, Complex128FromComplex128(z))) +} + +func Xcsinl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcsin(tls, Complex128FromComplex128(z))) +} + +const THRESH = 7.446288774449766e+307 + +/* + * gcc doesn't implement complex multiplication or division correctly, + * so we need to handle infinities specially. We turn on this pragma to + * notify conforming c99 compilers that the fast-but-incorrect code that + * gcc generates is acceptable, since the special cases have already been + * handled. + */ + +/* We risk spurious overflow for components >= DBL_MAX / (1 + sqrt(2)). */ + +func Xcsqrt(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var a, b, t float64 + var result complex128 + var scale int32 + var v1 [2]float64 + var v2, v5 uint64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _, _, _, _, _, _, _, _ = a, b, result, scale, t, v1, v2, v5 + a = Float64FromComplex128(z) + b = +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] + /* Handle special cases. */ + if z == Complex128FromInt32(0) { + v1 = [2]float64{ + 1: b, + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + *(*float64)(unsafe.Pointer(bp)) = b + v2 = *(*uint64)(unsafe.Pointer(bp)) + goto _3 +_3: + if BoolInt32(v2&(-Uint64FromUint64(1)>>Int32FromInt32(1)) == Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) == Uint64FromUint64(0x7ff)<>Int32FromInt32(63)) != 0 { + v1 = [2]float64{ + 0: Xfabs(tls, b-b), + 1: Xcopysign(tls, a, b), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } else { + v1 = [2]float64{ + 0: a, + 1: Xcopysign(tls, b-b, b), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + } + /* + * The remaining special case (b is NaN) is handled just fine by + * the normal code path below. + */ + /* Scale to avoid overflow. */ + if Xfabs(tls, a) >= float64(7.446288774449766e+307) || Xfabs(tls, b) >= float64(7.446288774449766e+307) { + a = a * float64(0.25) + b = b * float64(0.25) + scale = int32(1) + } else { + scale = 0 + } + /* Algorithm 312, CACM vol 10, Oct 1967. */ + if a >= Float64FromInt32(0) { + t = Xsqrt(tls, float64((a+Xhypot(tls, a, b))*float64(0.5))) + v1 = [2]float64{ + 0: t, + 1: b / float64(Float64FromInt32(2)*t), + } + result = *(*complex128)(unsafe.Pointer(&v1)) + } else { + t = Xsqrt(tls, float64((-a+Xhypot(tls, a, b))*float64(0.5))) + v1 = [2]float64{ + 0: Xfabs(tls, b) / float64(Float64FromInt32(2)*t), + 1: Xcopysign(tls, t, b), + } + result = *(*complex128)(unsafe.Pointer(&v1)) + } + /* Rescale. */ + if scale != 0 { + result = result * Complex128FromInt32(2) + } + return result +} + +/* + * gcc doesn't implement complex multiplication or division correctly, + * so we need to handle infinities specially. We turn on this pragma to + * notify conforming c99 compilers that the fast-but-incorrect code that + * gcc generates is acceptable, since the special cases have already been + * handled. + */ + +func Xcsqrtf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var a, b float32 + var t float64 + var v1 [2]float32 + var v2, v5 uint32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _, _, _, _, _, _ = a, b, t, v1, v2, v5 + a = Float32FromComplex64(z) + b = +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] + /* Handle special cases. */ + if z == Complex64FromInt32(0) { + v1 = [2]float32{ + 1: b, + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + *(*float32)(unsafe.Pointer(bp)) = b + v2 = *(*uint32)(unsafe.Pointer(bp)) + goto _3 +_3: + if BoolInt32(v2&uint32(0x7fffffff) == uint32(0x7f800000)) != 0 { + v1 = [2]float32{ + 0: X__builtin_inff(tls), + 1: b, + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + *(*float32)(unsafe.Pointer(bp)) = a + v2 = *(*uint32)(unsafe.Pointer(bp)) + goto _6 +_6: + if BoolInt32(v2&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + t = float64((b - b) / (b - b)) /* raise invalid if b is not a NaN */ + v1 = [2]float32{ + 0: a, + 1: float32(t), + } + return *(*complex64)(unsafe.Pointer(&v1)) /* return NaN + NaN i */ + } + *(*float32)(unsafe.Pointer(bp)) = a + v2 = *(*uint32)(unsafe.Pointer(bp)) + goto _9 +_9: + if BoolInt32(v2&uint32(0x7fffffff) == uint32(0x7f800000)) != 0 { + /* + * csqrtf(inf + NaN i) = inf + NaN i + * csqrtf(inf + y i) = inf + 0 i + * csqrtf(-inf + NaN i) = NaN +- inf i + * csqrtf(-inf + y i) = 0 + inf i + */ + *(*float32)(unsafe.Pointer(bp)) = a + v5 = *(*uint32)(unsafe.Pointer(bp)) + goto _11 + _11: + if Int32FromUint32(v5>>Int32FromInt32(31)) != 0 { + v1 = [2]float32{ + 0: Xfabsf(tls, b-b), + 1: Xcopysignf(tls, a, b), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } else { + v1 = [2]float32{ + 0: a, + 1: Xcopysignf(tls, b-b, b), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + } + /* + * The remaining special case (b is NaN) is handled just fine by + * the normal code path below. + */ + /* + * We compute t in double precision to avoid overflow and to + * provide correct rounding in nearly all cases. + * This is Algorithm 312, CACM vol 10, Oct 1967. + */ + if a >= Float32FromInt32(0) { + t = Xsqrt(tls, float64((float64(a)+Xhypot(tls, float64(a), float64(b)))*float64(0.5))) + v1 = [2]float32{ + 0: float32(t), + 1: float32(float64(b) / float64(Float64FromFloat64(2)*t)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } else { + t = Xsqrt(tls, float64((float64(-a)+Xhypot(tls, float64(a), float64(b)))*float64(0.5))) + v1 = [2]float32{ + 0: float32(float64(Xfabsf(tls, b)) / float64(Float64FromFloat64(2)*t)), + 1: Xcopysignf(tls, float32(t), b), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + return r +} + +// C documentation +// +// //FIXME +func Xcsqrtl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcsqrt(tls, Complex128FromComplex128(z))) +} + +/* tan(z) = -i tanh(i z) */ + +func Xctan(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float64 + _ = v1 + v1 = [2]float64{ + 0: -+(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: Float64FromComplex128(z), + } + z = Xctanh(tls, *(*complex128)(unsafe.Pointer(&v1))) + v1 = [2]float64{ + 0: +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: -Float64FromComplex128(z), + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +func Xctanf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float32 + _ = v1 + v1 = [2]float32{ + 0: -+(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: Float32FromComplex64(z), + } + z = Xctanhf(tls, *(*complex64)(unsafe.Pointer(&v1))) + v1 = [2]float32{ + 0: +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: -Float32FromComplex64(z), + } + return *(*complex64)(unsafe.Pointer(&v1)) +} + +func Xctanh(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var __u1, v3 Tuint64_t + var beta, denom, exp_mx, rho, s, t, x, y, v2 float64 + var hx, ix, lx Tuint32_t + var v1 [2]float64 + var v6 uint64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = __u1, beta, denom, exp_mx, hx, ix, lx, rho, s, t, x, y, v1, v2, v3, v6 + x = Float64FromComplex128(z) + y = +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] + __u1 = *(*Tuint64_t)(unsafe.Pointer(&x)) + hx = uint32(__u1 >> int32(32)) + lx = uint32(__u1) + ix = hx & uint32(0x7fffffff) + /* + * ctanh(NaN + i 0) = NaN + i 0 + * + * ctanh(NaN + i y) = NaN + i NaN for y != 0 + * + * The imaginary part has the sign of x*sin(2*y), but there's no + * special effort to get this right. + * + * ctanh(+-Inf +- i Inf) = +-1 +- 0 + * + * ctanh(+-Inf + i y) = +-1 + 0 sin(2y) for y finite + * + * The imaginary part of the sign is unspecified. This special + * case is only needed to avoid a spurious invalid exception when + * y is infinite. + */ + if ix >= uint32(0x7ff00000) { + if ix&uint32(0xfffff)|lx != 0 { /* x is NaN */ + if y == Float64FromInt32(0) { + v2 = y + } else { + v2 = float64(x * y) + } + v1 = [2]float64{ + 0: x, + 1: v2, + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + v3 = uint64(hx-Uint32FromInt32(0x40000000))<>Int32FromInt32(1)) == Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) < Uint64FromUint64(0x7ff)<= uint32(0x40360000) { /* x >= 22 */ + exp_mx = Xexp(tls, -Xfabs(tls, x)) + v1 = [2]float64{ + 0: Xcopysign(tls, Float64FromInt32(1), x), + 1: float64(float64(float64(float64(Float64FromInt32(4)*Xsin(tls, y))*Xcos(tls, y))*exp_mx) * exp_mx), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* Kahan's algorithm */ + t = Xtan(tls, y) + beta = float64(1) + float64(t*t) /* = 1 / cos^2(y) */ + s = Xsinh(tls, x) + rho = Xsqrt(tls, Float64FromInt32(1)+float64(s*s)) /* = cosh(x) */ + denom = Float64FromInt32(1) + float64(float64(beta*s)*s) + v1 = [2]float64{ + 0: float64(float64(beta*rho)*s) / denom, + 1: t / denom, + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +func Xctanhf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var beta, denom, exp_mx, rho, s, t, x, y, v2 float32 + var hx, ix, v3 Tuint32_t + var v1 [2]float32 + var v6 uint32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = beta, denom, exp_mx, hx, ix, rho, s, t, x, y, v1, v2, v3, v6 + x = Float32FromComplex64(z) + y = +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] + hx = *(*Tuint32_t)(unsafe.Pointer(&x)) + ix = hx & uint32(0x7fffffff) + if ix >= uint32(0x7f800000) { + if ix&uint32(0x7fffff) != 0 { + if y == Float32FromInt32(0) { + v2 = y + } else { + v2 = float32(x * y) + } + v1 = [2]float32{ + 0: x, + 1: v2, + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + v3 = hx - uint32(0x40000000) + x = *(*float32)(unsafe.Pointer(&v3)) + *(*float32)(unsafe.Pointer(bp)) = y + v6 = *(*uint32)(unsafe.Pointer(bp)) + goto _7 + _7: + if BoolInt32(v6&uint32(0x7fffffff) == uint32(0x7f800000)) != 0 { + v2 = y + } else { + v2 = float32(Xsinf(tls, y) * Xcosf(tls, y)) + } + v1 = [2]float32{ + 0: x, + 1: Xcopysignf(tls, Float32FromInt32(0), v2), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + *(*float32)(unsafe.Pointer(bp)) = y + v6 = *(*uint32)(unsafe.Pointer(bp)) + goto _9 +_9: + if !(BoolInt32(v6&Uint32FromInt32(0x7fffffff) < Uint32FromInt32(0x7f800000)) != 0) { + if ix != 0 { + v2 = y - y + } else { + v2 = x + } + v1 = [2]float32{ + 0: v2, + 1: y - y, + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + if ix >= uint32(0x41300000) { /* x >= 11 */ + exp_mx = Xexpf(tls, -Xfabsf(tls, x)) + v1 = [2]float32{ + 0: Xcopysignf(tls, Float32FromInt32(1), x), + 1: float32(float32(float32(float32(Float32FromInt32(4)*Xsinf(tls, y))*Xcosf(tls, y))*exp_mx) * exp_mx), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + t = Xtanf(tls, y) + beta = float32(float64(1) + float64(t*t)) + s = Xsinhf(tls, x) + rho = Xsqrtf(tls, Float32FromInt32(1)+float32(s*s)) + denom = Float32FromInt32(1) + float32(float32(beta*s)*s) + v1 = [2]float32{ + 0: float32(float32(beta*rho)*s) / denom, + 1: t / denom, + } + return *(*complex64)(unsafe.Pointer(&v1)) +} + +// C documentation +// +// //FIXME +func Xctanhl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xctanh(tls, Complex128FromComplex128(z))) +} + +func Xctanl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xctan(tls, Complex128FromComplex128(z))) +} + +const BUFSIZ = 1024 +const E2BIG = 7 +const EACCES = 13 +const EADDRINUSE = 98 +const EADDRNOTAVAIL = 99 +const EADV = 68 +const EAFNOSUPPORT = 97 +const EAGAIN = 11 +const EALREADY = 114 +const EBADE = 52 +const EBADF = 9 +const EBADFD = 77 +const EBADMSG = 74 +const EBADR = 53 +const EBADRQC = 56 +const EBADSLT = 57 +const EBFONT = 59 +const EBUSY = 16 +const ECANCELED = 125 +const ECHILD = 10 +const ECHRNG = 44 +const ECOMM = 70 +const ECONNABORTED = 103 +const ECONNREFUSED = 111 +const ECONNRESET = 104 +const EDEADLK = 35 +const EDEADLOCK = 35 +const EDESTADDRREQ = 89 +const EDOM = 33 +const EDOTDOT = 73 +const EDQUOT = 122 +const EEXIST = 17 +const EFAULT = 14 +const EFBIG = 27 +const EHOSTDOWN = 112 +const EHOSTUNREACH = 113 +const EHWPOISON = 133 +const EIDRM = 43 +const EILSEQ = 84 +const EINPROGRESS = 115 +const EINTR = 4 +const EINVAL = 22 +const EIO = 5 +const EISCONN = 106 +const EISDIR = 21 +const EISNAM = 120 +const EKEYEXPIRED = 127 +const EKEYREJECTED = 129 +const EKEYREVOKED = 128 +const EL2HLT = 51 +const EL2NSYNC = 45 +const EL3HLT = 46 +const EL3RST = 47 +const ELIBACC = 79 +const ELIBBAD = 80 +const ELIBEXEC = 83 +const ELIBMAX = 82 +const ELIBSCN = 81 +const ELNRNG = 48 +const ELOOP = 40 +const EMEDIUMTYPE = 124 +const EMFILE = 24 +const EMLINK = 31 +const EMSGSIZE = 90 +const EMULTIHOP = 72 +const ENAMETOOLONG = 36 +const ENAVAIL = 119 +const ENETDOWN = 100 +const ENETRESET = 102 +const ENETUNREACH = 101 +const ENFILE = 23 +const ENOANO = 55 +const ENOBUFS = 105 +const ENOCSI = 50 +const ENODATA = 61 +const ENODEV = 19 +const ENOENT = 2 +const ENOEXEC = 8 +const ENOKEY = 126 +const ENOLCK = 37 +const ENOLINK = 67 +const ENOMEDIUM = 123 +const ENOMEM = 12 +const ENOMSG = 42 +const ENONET = 64 +const ENOPKG = 65 +const ENOPROTOOPT = 92 +const ENOSPC = 28 +const ENOSR = 63 +const ENOSTR = 60 +const ENOSYS = 38 +const ENOTBLK = 15 +const ENOTCONN = 107 +const ENOTDIR = 20 +const ENOTEMPTY = 39 +const ENOTNAM = 118 +const ENOTRECOVERABLE = 131 +const ENOTSOCK = 88 +const ENOTSUP = 95 +const ENOTTY = 25 +const ENOTUNIQ = 76 +const ENXIO = 6 +const EOPNOTSUPP = 95 +const EOVERFLOW = 75 +const EOWNERDEAD = 130 +const EPERM = 1 +const EPFNOSUPPORT = 96 +const EPIPE = 32 +const EPROTO = 71 +const EPROTONOSUPPORT = 93 +const EPROTOTYPE = 91 +const ERANGE = 34 +const EREMCHG = 78 +const EREMOTE = 66 +const EREMOTEIO = 121 +const ERESTART = 85 +const ERFKILL = 132 +const EROFS = 30 +const ESHUTDOWN = 108 +const ESOCKTNOSUPPORT = 94 +const ESPIPE = 29 +const ESRCH = 3 +const ESRMNT = 69 +const ESTALE = 116 +const ESTRPIPE = 86 +const ETIME = 62 +const ETIMEDOUT = 110 +const ETOOMANYREFS = 109 +const ETXTBSY = 26 +const EUCLEAN = 117 +const EUNATCH = 49 +const EUSERS = 87 +const EWOULDBLOCK = 11 +const EXDEV = 18 +const EXFULL = 54 +const FILENAME_MAX = 4096 +const FOPEN_MAX = 1000 +const F_LOCK = 1 +const F_OK = 0 +const F_TEST = 3 +const F_TLOCK = 2 +const F_ULOCK = 0 +const L_ctermid = 20 +const L_tmpnam = 20 +const POSIX_CLOSE_RESTART = 0 +const P_tmpdir = "/tmp" +const R_OK = 4 +const SEEK_DATA = 3 +const SEEK_HOLE = 4 +const STDERR_FILENO = 2 +const STDIN_FILENO = 0 +const STDOUT_FILENO = 1 +const TMP_MAX = 10000 +const W_OK = 2 +const X_OK = 1 +const _CS_GNU_LIBC_VERSION = 2 +const _CS_GNU_LIBPTHREAD_VERSION = 3 +const _CS_PATH = 0 +const _CS_POSIX_V5_WIDTH_RESTRICTED_ENVS = 4 +const _CS_POSIX_V6_ILP32_OFF32_CFLAGS = 1116 +const _CS_POSIX_V6_ILP32_OFF32_LDFLAGS = 1117 +const _CS_POSIX_V6_ILP32_OFF32_LIBS = 1118 +const _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS = 1119 +const _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS = 1120 +const _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS = 1121 +const _CS_POSIX_V6_ILP32_OFFBIG_LIBS = 1122 +const _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS = 1123 +const _CS_POSIX_V6_LP64_OFF64_CFLAGS = 1124 +const _CS_POSIX_V6_LP64_OFF64_LDFLAGS = 1125 +const _CS_POSIX_V6_LP64_OFF64_LIBS = 1126 +const _CS_POSIX_V6_LP64_OFF64_LINTFLAGS = 1127 +const _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS = 1128 +const _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS = 1129 +const _CS_POSIX_V6_LPBIG_OFFBIG_LIBS = 1130 +const _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS = 1131 +const _CS_POSIX_V6_WIDTH_RESTRICTED_ENVS = 1 +const _CS_POSIX_V7_ILP32_OFF32_CFLAGS = 1132 +const _CS_POSIX_V7_ILP32_OFF32_LDFLAGS = 1133 +const _CS_POSIX_V7_ILP32_OFF32_LIBS = 1134 +const _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS = 1135 +const _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS = 1136 +const _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS = 1137 +const _CS_POSIX_V7_ILP32_OFFBIG_LIBS = 1138 +const _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS = 1139 +const _CS_POSIX_V7_LP64_OFF64_CFLAGS = 1140 +const _CS_POSIX_V7_LP64_OFF64_LDFLAGS = 1141 +const _CS_POSIX_V7_LP64_OFF64_LIBS = 1142 +const _CS_POSIX_V7_LP64_OFF64_LINTFLAGS = 1143 +const _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS = 1144 +const _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS = 1145 +const _CS_POSIX_V7_LPBIG_OFFBIG_LIBS = 1146 +const _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS = 1147 +const _CS_POSIX_V7_THREADS_CFLAGS = 1150 +const _CS_POSIX_V7_THREADS_LDFLAGS = 1151 +const _CS_POSIX_V7_WIDTH_RESTRICTED_ENVS = 5 +const _CS_V6_ENV = 1148 +const _CS_V7_ENV = 1149 +const _IOFBF = 0 +const _IOLBF = 1 +const _IONBF = 2 +const _PC_2_SYMLINKS = 20 +const _PC_ALLOC_SIZE_MIN = 18 +const _PC_ASYNC_IO = 10 +const _PC_CHOWN_RESTRICTED = 6 +const _PC_FILESIZEBITS = 13 +const _PC_LINK_MAX = 0 +const _PC_MAX_CANON = 1 +const _PC_MAX_INPUT = 2 +const _PC_NAME_MAX = 3 +const _PC_NO_TRUNC = 7 +const _PC_PATH_MAX = 4 +const _PC_PIPE_BUF = 5 +const _PC_PRIO_IO = 11 +const _PC_REC_INCR_XFER_SIZE = 14 +const _PC_REC_MAX_XFER_SIZE = 15 +const _PC_REC_MIN_XFER_SIZE = 16 +const _PC_REC_XFER_ALIGN = 17 +const _PC_SOCK_MAXBUF = 12 +const _PC_SYMLINK_MAX = 19 +const _PC_SYNC_IO = 9 +const _PC_VDISABLE = 8 +const _POSIX2_C_BIND = 200809 +const _POSIX2_VERSION = 200809 +const _POSIX_ADVISORY_INFO = 200809 +const _POSIX_ASYNCHRONOUS_IO = 200809 +const _POSIX_BARRIERS = 200809 +const _POSIX_CHOWN_RESTRICTED = 1 +const _POSIX_CLOCK_SELECTION = 200809 +const _POSIX_CPUTIME = 200809 +const _POSIX_FSYNC = 200809 +const _POSIX_IPV6 = 200809 +const _POSIX_JOB_CONTROL = 1 +const _POSIX_MAPPED_FILES = 200809 +const _POSIX_MEMLOCK = 200809 +const _POSIX_MEMLOCK_RANGE = 200809 +const _POSIX_MEMORY_PROTECTION = 200809 +const _POSIX_MESSAGE_PASSING = 200809 +const _POSIX_MONOTONIC_CLOCK = 200809 +const _POSIX_NO_TRUNC = 1 +const _POSIX_RAW_SOCKETS = 200809 +const _POSIX_READER_WRITER_LOCKS = 200809 +const _POSIX_REALTIME_SIGNALS = 200809 +const _POSIX_REGEXP = 1 +const _POSIX_SAVED_IDS = 1 +const _POSIX_SEMAPHORES = 200809 +const _POSIX_SHARED_MEMORY_OBJECTS = 200809 +const _POSIX_SHELL = 1 +const _POSIX_SPAWN = 200809 +const _POSIX_SPIN_LOCKS = 200809 +const _POSIX_THREADS = 200809 +const _POSIX_THREAD_ATTR_STACKADDR = 200809 +const _POSIX_THREAD_ATTR_STACKSIZE = 200809 +const _POSIX_THREAD_CPUTIME = 200809 +const _POSIX_THREAD_PRIORITY_SCHEDULING = 200809 +const _POSIX_THREAD_PROCESS_SHARED = 200809 +const _POSIX_THREAD_SAFE_FUNCTIONS = 200809 +const _POSIX_TIMEOUTS = 200809 +const _POSIX_TIMERS = 200809 +const _POSIX_V6_LP64_OFF64 = 1 +const _POSIX_V7_LP64_OFF64 = 1 +const _POSIX_VDISABLE = 0 +const _POSIX_VERSION = 200809 +const _SC_2_CHAR_TERM = 95 +const _SC_2_C_BIND = 47 +const _SC_2_C_DEV = 48 +const _SC_2_FORT_DEV = 49 +const _SC_2_FORT_RUN = 50 +const _SC_2_LOCALEDEF = 52 +const _SC_2_PBS = 168 +const _SC_2_PBS_ACCOUNTING = 169 +const _SC_2_PBS_CHECKPOINT = 175 +const _SC_2_PBS_LOCATE = 170 +const _SC_2_PBS_MESSAGE = 171 +const _SC_2_PBS_TRACK = 172 +const _SC_2_SW_DEV = 51 +const _SC_2_UPE = 97 +const _SC_2_VERSION = 46 +const _SC_ADVISORY_INFO = 132 +const _SC_AIO_LISTIO_MAX = 23 +const _SC_AIO_MAX = 24 +const _SC_AIO_PRIO_DELTA_MAX = 25 +const _SC_ARG_MAX = 0 +const _SC_ASYNCHRONOUS_IO = 12 +const _SC_ATEXIT_MAX = 87 +const _SC_AVPHYS_PAGES = 86 +const _SC_BARRIERS = 133 +const _SC_BC_BASE_MAX = 36 +const _SC_BC_DIM_MAX = 37 +const _SC_BC_SCALE_MAX = 38 +const _SC_BC_STRING_MAX = 39 +const _SC_CHILD_MAX = 1 +const _SC_CLK_TCK = 2 +const _SC_CLOCK_SELECTION = 137 +const _SC_COLL_WEIGHTS_MAX = 40 +const _SC_CPUTIME = 138 +const _SC_DELAYTIMER_MAX = 26 +const _SC_EXPR_NEST_MAX = 42 +const _SC_FSYNC = 15 +const _SC_GETGR_R_SIZE_MAX = 69 +const _SC_GETPW_R_SIZE_MAX = 70 +const _SC_HOST_NAME_MAX = 180 +const _SC_IOV_MAX = 60 +const _SC_IPV6 = 235 +const _SC_JOB_CONTROL = 7 +const _SC_LINE_MAX = 43 +const _SC_LOGIN_NAME_MAX = 71 +const _SC_MAPPED_FILES = 16 +const _SC_MEMLOCK = 17 +const _SC_MEMLOCK_RANGE = 18 +const _SC_MEMORY_PROTECTION = 19 +const _SC_MESSAGE_PASSING = 20 +const _SC_MINSIGSTKSZ = 249 +const _SC_MONOTONIC_CLOCK = 149 +const _SC_MQ_OPEN_MAX = 27 +const _SC_MQ_PRIO_MAX = 28 +const _SC_NGROUPS_MAX = 3 +const _SC_NPROCESSORS_CONF = 83 +const _SC_NPROCESSORS_ONLN = 84 +const _SC_NZERO = 109 +const _SC_OPEN_MAX = 4 +const _SC_PAGESIZE = 30 +const _SC_PAGE_SIZE = 30 +const _SC_PASS_MAX = 88 +const _SC_PHYS_PAGES = 85 +const _SC_PRIORITIZED_IO = 13 +const _SC_PRIORITY_SCHEDULING = 10 +const _SC_RAW_SOCKETS = 236 +const _SC_READER_WRITER_LOCKS = 153 +const _SC_REALTIME_SIGNALS = 9 +const _SC_REGEXP = 155 +const _SC_RE_DUP_MAX = 44 +const _SC_RTSIG_MAX = 31 +const _SC_SAVED_IDS = 8 +const _SC_SEMAPHORES = 21 +const _SC_SEM_NSEMS_MAX = 32 +const _SC_SEM_VALUE_MAX = 33 +const _SC_SHARED_MEMORY_OBJECTS = 22 +const _SC_SHELL = 157 +const _SC_SIGQUEUE_MAX = 34 +const _SC_SIGSTKSZ = 250 +const _SC_SPAWN = 159 +const _SC_SPIN_LOCKS = 154 +const _SC_SPORADIC_SERVER = 160 +const _SC_SS_REPL_MAX = 241 +const _SC_STREAMS = 174 +const _SC_STREAM_MAX = 5 +const _SC_SYMLOOP_MAX = 173 +const _SC_SYNCHRONIZED_IO = 14 +const _SC_THREADS = 67 +const _SC_THREAD_ATTR_STACKADDR = 77 +const _SC_THREAD_ATTR_STACKSIZE = 78 +const _SC_THREAD_CPUTIME = 139 +const _SC_THREAD_DESTRUCTOR_ITERATIONS = 73 +const _SC_THREAD_KEYS_MAX = 74 +const _SC_THREAD_PRIORITY_SCHEDULING = 79 +const _SC_THREAD_PRIO_INHERIT = 80 +const _SC_THREAD_PRIO_PROTECT = 81 +const _SC_THREAD_PROCESS_SHARED = 82 +const _SC_THREAD_ROBUST_PRIO_INHERIT = 247 +const _SC_THREAD_ROBUST_PRIO_PROTECT = 248 +const _SC_THREAD_SAFE_FUNCTIONS = 68 +const _SC_THREAD_SPORADIC_SERVER = 161 +const _SC_THREAD_STACK_MIN = 75 +const _SC_THREAD_THREADS_MAX = 76 +const _SC_TIMEOUTS = 164 +const _SC_TIMERS = 11 +const _SC_TIMER_MAX = 35 +const _SC_TRACE = 181 +const _SC_TRACE_EVENT_FILTER = 182 +const _SC_TRACE_EVENT_NAME_MAX = 242 +const _SC_TRACE_INHERIT = 183 +const _SC_TRACE_LOG = 184 +const _SC_TRACE_NAME_MAX = 243 +const _SC_TRACE_SYS_MAX = 244 +const _SC_TRACE_USER_EVENT_MAX = 245 +const _SC_TTY_NAME_MAX = 72 +const _SC_TYPED_MEMORY_OBJECTS = 165 +const _SC_TZNAME_MAX = 6 +const _SC_UIO_MAXIOV = 60 +const _SC_V6_ILP32_OFF32 = 176 +const _SC_V6_ILP32_OFFBIG = 177 +const _SC_V6_LP64_OFF64 = 178 +const _SC_V6_LPBIG_OFFBIG = 179 +const _SC_V7_ILP32_OFF32 = 237 +const _SC_V7_ILP32_OFFBIG = 238 +const _SC_V7_LP64_OFF64 = 239 +const _SC_V7_LPBIG_OFFBIG = 240 +const _SC_VERSION = 29 +const _SC_XBS5_ILP32_OFF32 = 125 +const _SC_XBS5_ILP32_OFFBIG = 126 +const _SC_XBS5_LP64_OFF64 = 127 +const _SC_XBS5_LPBIG_OFFBIG = 128 +const _SC_XOPEN_CRYPT = 92 +const _SC_XOPEN_ENH_I18N = 93 +const _SC_XOPEN_LEGACY = 129 +const _SC_XOPEN_REALTIME = 130 +const _SC_XOPEN_REALTIME_THREADS = 131 +const _SC_XOPEN_SHM = 94 +const _SC_XOPEN_STREAMS = 246 +const _SC_XOPEN_UNIX = 91 +const _SC_XOPEN_VERSION = 89 +const _SC_XOPEN_XCU_VERSION = 90 +const _SC_XOPEN_XPG2 = 98 +const _SC_XOPEN_XPG3 = 99 +const _SC_XOPEN_XPG4 = 100 +const _XOPEN_ENH_I18N = 1 +const _XOPEN_UNIX = 1 +const _XOPEN_VERSION = 700 + +type Tsize_t = uint64 + +type Tssize_t = int64 + +type Toff_t = int64 + +type Tpid_t = int32 + +type Tuid_t = uint32 + +type Tgid_t = uint32 + +type Tuseconds_t = uint32 + +type Tva_list = uintptr + +type t__isoc_va_list = uintptr + +type Tfpos_t = struct { + F__lldata [0]int64 + F__align [0]float64 + F__opaque [16]int8 +} + +type T_G_fpos64_t = Tfpos_t + +func Xconfstr(tls *TLS, name int32, buf uintptr, len1 Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v name=%v buf=%v len1=%v, (%v:)", tls, name, buf, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var s uintptr + _ = s + s = __ccgo_ts + if !(name != 0) { + s = __ccgo_ts + 1 + } else { + if Uint32FromInt32(name) & ^Uint32FromUint32(4) != uint32(1) && Uint32FromInt32(name-int32(_CS_POSIX_V6_ILP32_OFF32_CFLAGS)) > uint32(35) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uint64(0) + } + } + // snprintf is overkill but avoid wasting code size to implement + // this completely useless function and its truncation semantics + return Uint64FromInt32(Xsnprintf(tls, buf, len1, __ccgo_ts+15, VaList(bp+8, s)) + int32(1)) +} + +const ARG_MAX = 131072 +const BC_BASE_MAX = 99 +const BC_DIM_MAX = 2048 +const BC_SCALE_MAX = 99 +const BC_STRING_MAX = 1000 +const CHARCLASS_NAME_MAX = 14 +const CHAR_BIT = 8 +const CHAR_MAX = 255 +const CHAR_MIN = 0 +const COLL_WEIGHTS_MAX = 2 +const DELAYTIMER_MAX = 2147483647 +const EXPR_NEST_MAX = 32 +const FILESIZEBITS = 64 +const HOST_NAME_MAX = 255 +const INT_MAX = 2147483647 +const INT_MIN = -2147483648 +const IOV_MAX = 1024 +const LINE_MAX = 4096 +const LLONG_MAX = 9223372036854775807 +const LLONG_MIN = -9223372036854775808 +const LOGIN_NAME_MAX = 256 +const LONG_BIT = 64 +const LONG_MAX = 9223372036854775807 +const LONG_MIN = -9223372036854775808 +const MB_LEN_MAX = 4 +const MQ_PRIO_MAX = 32768 +const NAME_MAX = 255 +const NGROUPS_MAX = 32 +const NL_ARGMAX = 9 +const NL_LANGMAX = 32 +const NL_MSGMAX = 32767 +const NL_SETMAX = 255 +const NL_TEXTMAX = 2048 +const NZERO = 20 +const PATH_MAX = 4096 +const PIPE_BUF = 4096 +const PTHREAD_DESTRUCTOR_ITERATIONS = 4 +const PTHREAD_KEYS_MAX = 128 +const PTHREAD_STACK_MIN = 2048 +const RE_DUP_MAX = 255 +const SCHAR_MAX = 127 +const SCHAR_MIN = -128 +const SEEK_CUR = 1 +const SEEK_END = 2 +const SEEK_SET = 0 +const SEM_NSEMS_MAX = 256 +const SEM_VALUE_MAX = 2147483647 +const SHRT_MAX = 32767 +const SHRT_MIN = -32768 +const SSIZE_MAX = 9223372036854775807 +const SYMLOOP_MAX = 40 +const TTY_NAME_MAX = 32 +const TZNAME_MAX = 6 +const UCHAR_MAX = 255 +const UINT_MAX = 4294967295 +const ULLONG_MAX = 18446744073709551615 +const ULONG_MAX = 18446744073709551615 +const USHRT_MAX = 65535 +const WORD_BIT = 32 +const _POSIX2_BC_BASE_MAX = 99 +const _POSIX2_BC_DIM_MAX = 2048 +const _POSIX2_BC_SCALE_MAX = 99 +const _POSIX2_BC_STRING_MAX = 1000 +const _POSIX2_CHARCLASS_NAME_MAX = 14 +const _POSIX2_COLL_WEIGHTS_MAX = 2 +const _POSIX2_EXPR_NEST_MAX = 32 +const _POSIX2_LINE_MAX = 2048 +const _POSIX2_RE_DUP_MAX = 255 +const _POSIX_AIO_LISTIO_MAX = 2 +const _POSIX_AIO_MAX = 1 +const _POSIX_ARG_MAX = 4096 +const _POSIX_CHILD_MAX = 25 +const _POSIX_CLOCKRES_MIN = 20000000 +const _POSIX_DELAYTIMER_MAX = 32 +const _POSIX_HOST_NAME_MAX = 255 +const _POSIX_LINK_MAX = 8 +const _POSIX_LOGIN_NAME_MAX = 9 +const _POSIX_MAX_CANON = 255 +const _POSIX_MAX_INPUT = 255 +const _POSIX_MQ_OPEN_MAX = 8 +const _POSIX_MQ_PRIO_MAX = 32 +const _POSIX_NAME_MAX = 14 +const _POSIX_NGROUPS_MAX = 8 +const _POSIX_OPEN_MAX = 20 +const _POSIX_PATH_MAX = 256 +const _POSIX_PIPE_BUF = 512 +const _POSIX_RE_DUP_MAX = 255 +const _POSIX_RTSIG_MAX = 8 +const _POSIX_SEM_NSEMS_MAX = 256 +const _POSIX_SEM_VALUE_MAX = 32767 +const _POSIX_SIGQUEUE_MAX = 32 +const _POSIX_SSIZE_MAX = 32767 +const _POSIX_SS_REPL_MAX = 4 +const _POSIX_STREAM_MAX = 8 +const _POSIX_SYMLINK_MAX = 255 +const _POSIX_SYMLOOP_MAX = 8 +const _POSIX_THREAD_DESTRUCTOR_ITERATIONS = 4 +const _POSIX_THREAD_KEYS_MAX = 128 +const _POSIX_THREAD_THREADS_MAX = 64 +const _POSIX_TIMER_MAX = 32 +const _POSIX_TRACE_EVENT_NAME_MAX = 30 +const _POSIX_TRACE_NAME_MAX = 8 +const _POSIX_TRACE_SYS_MAX = 8 +const _POSIX_TRACE_USER_EVENT_MAX = 32 +const _POSIX_TTY_NAME_MAX = 9 +const _POSIX_TZNAME_MAX = 6 +const _XOPEN_IOV_MAX = 16 +const _XOPEN_NAME_MAX = 255 +const _XOPEN_PATH_MAX = 1024 + +func Xfpathconf(tls *TLS, fd int32, name int32) (r int64) { + if __ccgo_strace { + trc("tls=%v fd=%v name=%v, (%v:)", tls, fd, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + if Uint64FromInt32(name) >= Uint64FromInt64(42)/Uint64FromInt64(2) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return int64(-int32(1)) + } + return int64(_values[name]) +} + +var _values = [21]int16{ + 0: int16(_POSIX_LINK_MAX), + 1: int16(_POSIX_MAX_CANON), + 2: int16(_POSIX_MAX_INPUT), + 3: int16(NAME_MAX), + 4: int16(PATH_MAX), + 5: int16(PIPE_BUF), + 6: int16(1), + 7: int16(1), + 9: int16(1), + 10: int16(-int32(1)), + 11: int16(-int32(1)), + 12: int16(-int32(1)), + 13: int16(FILESIZEBITS), + 14: int16(4096), + 15: int16(4096), + 16: int16(4096), + 17: int16(4096), + 18: int16(4096), + 19: int16(-int32(1)), + 20: int16(1), +} + +const SI_LOAD_SHIFT = 16 + +type Tsysinfo = struct { + Fuptime uint64 + Floads [3]uint64 + Ftotalram uint64 + Ffreeram uint64 + Fsharedram uint64 + Fbufferram uint64 + Ftotalswap uint64 + Ffreeswap uint64 + Fprocs uint16 + Fpad uint16 + Ftotalhigh uint64 + Ffreehigh uint64 + Fmem_unit uint32 + F__reserved [256]int8 +} + +func Xget_nprocs_conf(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(Xsysconf(tls, int32(_SC_NPROCESSORS_CONF))) +} + +func Xget_nprocs(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(Xsysconf(tls, int32(_SC_NPROCESSORS_ONLN))) +} + +func Xget_phys_pages(tls *TLS) (r int64) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xsysconf(tls, int32(_SC_PHYS_PAGES)) +} + +func Xget_avphys_pages(tls *TLS) (r int64) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xsysconf(tls, int32(_SC_AVPHYS_PAGES)) +} + +func Xpathconf(tls *TLS, path uintptr, name int32) (r int64) { + if __ccgo_strace { + trc("tls=%v path=%v name=%v, (%v:)", tls, path, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfpathconf(tls, -int32(1), name) +} + +const AT_BASE = 7 +const AT_BASE_PLATFORM = 24 +const AT_CLKTCK = 17 +const AT_DCACHEBSIZE = 19 +const AT_EGID = 14 +const AT_ENTRY = 9 +const AT_EUID = 12 +const AT_EXECFD = 2 +const AT_EXECFN = 31 +const AT_FLAGS = 8 +const AT_FPUCW = 18 +const AT_GID = 13 +const AT_HWCAP = 16 +const AT_HWCAP2 = 26 +const AT_ICACHEBSIZE = 20 +const AT_IGNORE = 1 +const AT_IGNOREPPC = 22 +const AT_L1D_CACHEGEOMETRY = 43 +const AT_L1D_CACHESHAPE = 35 +const AT_L1D_CACHESIZE = 42 +const AT_L1I_CACHEGEOMETRY = 41 +const AT_L1I_CACHESHAPE = 34 +const AT_L1I_CACHESIZE = 40 +const AT_L2_CACHEGEOMETRY = 45 +const AT_L2_CACHESHAPE = 36 +const AT_L2_CACHESIZE = 44 +const AT_L3_CACHEGEOMETRY = 47 +const AT_L3_CACHESHAPE = 37 +const AT_L3_CACHESIZE = 46 +const AT_MINSIGSTKSZ = 51 +const AT_NOTELF = 10 +const AT_NULL = 0 +const AT_PAGESZ = 6 +const AT_PHDR = 3 +const AT_PHENT = 4 +const AT_PHNUM = 5 +const AT_PLATFORM = 15 +const AT_RANDOM = 25 +const AT_SECURE = 23 +const AT_SYSINFO = 32 +const AT_SYSINFO_EHDR = 33 +const AT_UCACHEBSIZE = 21 +const AT_UID = 11 +const BUS_ADRALN = 1 +const BUS_ADRERR = 2 +const BUS_MCEERR_AO = 5 +const BUS_MCEERR_AR = 4 +const BUS_OBJERR = 3 +const CLD_CONTINUED = 6 +const CLD_DUMPED = 3 +const CLD_EXITED = 1 +const CLD_KILLED = 2 +const CLD_STOPPED = 5 +const CLD_TRAPPED = 4 +const DF_1_CONFALT = 8192 +const DF_1_DIRECT = 256 +const DF_1_DISPRELDNE = 32768 +const DF_1_DISPRELPND = 65536 +const DF_1_EDITED = 2097152 +const DF_1_ENDFILTEE = 16384 +const DF_1_GLOBAL = 2 +const DF_1_GLOBAUDIT = 16777216 +const DF_1_GROUP = 4 +const DF_1_IGNMULDEF = 262144 +const DF_1_INITFIRST = 32 +const DF_1_INTERPOSE = 1024 +const DF_1_LOADFLTR = 16 +const DF_1_NODEFLIB = 2048 +const DF_1_NODELETE = 8 +const DF_1_NODIRECT = 131072 +const DF_1_NODUMP = 4096 +const DF_1_NOHDR = 1048576 +const DF_1_NOKSYMS = 524288 +const DF_1_NOOPEN = 64 +const DF_1_NORELOC = 4194304 +const DF_1_NOW = 1 +const DF_1_ORIGIN = 128 +const DF_1_PIE = 134217728 +const DF_1_SINGLETON = 33554432 +const DF_1_STUB = 67108864 +const DF_1_SYMINTPOSE = 8388608 +const DF_1_TRANS = 512 +const DF_BIND_NOW = 8 +const DF_ORIGIN = 1 +const DF_P1_GROUPPERM = 2 +const DF_P1_LAZYLOAD = 1 +const DF_STATIC_TLS = 16 +const DF_SYMBOLIC = 2 +const DF_TEXTREL = 4 +const DTF_1_CONFEXP = 2 +const DTF_1_PARINIT = 1 +const DT_ADDRNUM = 11 +const DT_ADDRRNGHI = 1879047935 +const DT_ADDRRNGLO = 1879047680 +const DT_ALPHA_NUM = 1 +const DT_ALPHA_PLTRO = 1879048192 +const DT_AUDIT = 1879047932 +const DT_AUXILIARY = 2147483645 +const DT_BIND_NOW = 24 +const DT_CHECKSUM = 1879047672 +const DT_CONFIG = 1879047930 +const DT_DEBUG = 21 +const DT_DEPAUDIT = 1879047931 +const DT_ENCODING = 32 +const DT_EXTRANUM = 3 +const DT_FEATURE_1 = 1879047676 +const DT_FILTER = 2147483647 +const DT_FINI = 13 +const DT_FINI_ARRAY = 26 +const DT_FINI_ARRAYSZ = 28 +const DT_FLAGS = 30 +const DT_FLAGS_1 = 1879048187 +const DT_GNU_CONFLICT = 1879047928 +const DT_GNU_CONFLICTSZ = 1879047670 +const DT_GNU_HASH = 1879047925 +const DT_GNU_LIBLIST = 1879047929 +const DT_GNU_LIBLISTSZ = 1879047671 +const DT_GNU_PRELINKED = 1879047669 +const DT_HASH = 4 +const DT_HIOS = 1879044096 +const DT_HIPROC = 2147483647 +const DT_IA_64_NUM = 1 +const DT_IA_64_PLT_RESERVE = 1879048192 +const DT_INIT = 12 +const DT_INIT_ARRAY = 25 +const DT_INIT_ARRAYSZ = 27 +const DT_JMPREL = 23 +const DT_LOOS = 1610612749 +const DT_LOPROC = 1879048192 +const DT_MIPS_AUX_DYNAMIC = 1879048241 +const DT_MIPS_BASE_ADDRESS = 1879048198 +const DT_MIPS_COMPACT_SIZE = 1879048239 +const DT_MIPS_CONFLICT = 1879048200 +const DT_MIPS_CONFLICTNO = 1879048203 +const DT_MIPS_CXX_FLAGS = 1879048226 +const DT_MIPS_DELTA_CLASS = 1879048215 +const DT_MIPS_DELTA_CLASSSYM = 1879048224 +const DT_MIPS_DELTA_CLASSSYM_NO = 1879048225 +const DT_MIPS_DELTA_CLASS_NO = 1879048216 +const DT_MIPS_DELTA_INSTANCE = 1879048217 +const DT_MIPS_DELTA_INSTANCE_NO = 1879048218 +const DT_MIPS_DELTA_RELOC = 1879048219 +const DT_MIPS_DELTA_RELOC_NO = 1879048220 +const DT_MIPS_DELTA_SYM = 1879048221 +const DT_MIPS_DELTA_SYM_NO = 1879048222 +const DT_MIPS_DYNSTR_ALIGN = 1879048235 +const DT_MIPS_FLAGS = 1879048197 +const DT_MIPS_GOTSYM = 1879048211 +const DT_MIPS_GP_VALUE = 1879048240 +const DT_MIPS_HIDDEN_GOTIDX = 1879048231 +const DT_MIPS_HIPAGENO = 1879048212 +const DT_MIPS_ICHECKSUM = 1879048195 +const DT_MIPS_INTERFACE = 1879048234 +const DT_MIPS_INTERFACE_SIZE = 1879048236 +const DT_MIPS_IVERSION = 1879048196 +const DT_MIPS_LIBLIST = 1879048201 +const DT_MIPS_LIBLISTNO = 1879048208 +const DT_MIPS_LOCALPAGE_GOTIDX = 1879048229 +const DT_MIPS_LOCAL_GOTIDX = 1879048230 +const DT_MIPS_LOCAL_GOTNO = 1879048202 +const DT_MIPS_MSYM = 1879048199 +const DT_MIPS_NUM = 54 +const DT_MIPS_OPTIONS = 1879048233 +const DT_MIPS_PERF_SUFFIX = 1879048238 +const DT_MIPS_PIXIE_INIT = 1879048227 +const DT_MIPS_PLTGOT = 1879048242 +const DT_MIPS_PROTECTED_GOTIDX = 1879048232 +const DT_MIPS_RLD_MAP = 1879048214 +const DT_MIPS_RLD_MAP_REL = 1879048245 +const DT_MIPS_RLD_TEXT_RESOLVE_ADDR = 1879048237 +const DT_MIPS_RLD_VERSION = 1879048193 +const DT_MIPS_RWPLT = 1879048244 +const DT_MIPS_SYMBOL_LIB = 1879048228 +const DT_MIPS_SYMTABNO = 1879048209 +const DT_MIPS_TIME_STAMP = 1879048194 +const DT_MIPS_UNREFEXTNO = 1879048210 +const DT_MOVEENT = 1879047674 +const DT_MOVESZ = 1879047675 +const DT_MOVETAB = 1879047934 +const DT_NEEDED = 1 +const DT_NIOS2_GP = 1879048194 +const DT_NULL = 0 +const DT_NUM = 38 +const DT_PLTGOT = 3 +const DT_PLTPAD = 1879047933 +const DT_PLTPADSZ = 1879047673 +const DT_PLTREL = 20 +const DT_PLTRELSZ = 2 +const DT_POSFLAG_1 = 1879047677 +const DT_PPC64_GLINK = 1879048192 +const DT_PPC64_NUM = 4 +const DT_PPC64_OPD = 1879048193 +const DT_PPC64_OPDSZ = 1879048194 +const DT_PPC64_OPT = 1879048195 +const DT_PPC_GOT = 1879048192 +const DT_PPC_NUM = 2 +const DT_PPC_OPT = 1879048193 +const DT_PREINIT_ARRAY = 32 +const DT_PREINIT_ARRAYSZ = 33 +const DT_PROCNUM = 54 +const DT_REL = 17 +const DT_RELA = 7 +const DT_RELACOUNT = 1879048185 +const DT_RELAENT = 9 +const DT_RELASZ = 8 +const DT_RELCOUNT = 1879048186 +const DT_RELENT = 19 +const DT_RELR = 36 +const DT_RELRENT = 37 +const DT_RELRSZ = 35 +const DT_RELSZ = 18 +const DT_RPATH = 15 +const DT_RUNPATH = 29 +const DT_SONAME = 14 +const DT_SPARC_NUM = 2 +const DT_SPARC_REGISTER = 1879048193 +const DT_STRSZ = 10 +const DT_STRTAB = 5 +const DT_SYMBOLIC = 16 +const DT_SYMENT = 11 +const DT_SYMINENT = 1879047679 +const DT_SYMINFO = 1879047935 +const DT_SYMINSZ = 1879047678 +const DT_SYMTAB = 6 +const DT_SYMTAB_SHNDX = 34 +const DT_TEXTREL = 22 +const DT_TLSDESC_GOT = 1879047927 +const DT_TLSDESC_PLT = 1879047926 +const DT_VALNUM = 12 +const DT_VALRNGHI = 1879047679 +const DT_VALRNGLO = 1879047424 +const DT_VERDEF = 1879048188 +const DT_VERDEFNUM = 1879048189 +const DT_VERNEED = 1879048190 +const DT_VERNEEDNUM = 1879048191 +const DT_VERSIONTAGNUM = 16 +const DT_VERSYM = 1879048176 +const EFA_PARISC_1_0 = 523 +const EFA_PARISC_1_1 = 528 +const EFA_PARISC_2_0 = 532 +const EF_ALPHA_32BIT = 1 +const EF_ALPHA_CANRELAX = 2 +const EF_ARM_ABI_FLOAT_HARD = 1024 +const EF_ARM_ABI_FLOAT_SOFT = 512 +const EF_ARM_ALIGN8 = 64 +const EF_ARM_APCS_26 = 8 +const EF_ARM_APCS_FLOAT = 16 +const EF_ARM_BE8 = 8388608 +const EF_ARM_DYNSYMSUSESEGIDX = 8 +const EF_ARM_EABIMASK = 4278190080 +const EF_ARM_EABI_UNKNOWN = 0 +const EF_ARM_EABI_VER1 = 16777216 +const EF_ARM_EABI_VER2 = 33554432 +const EF_ARM_EABI_VER3 = 50331648 +const EF_ARM_EABI_VER4 = 67108864 +const EF_ARM_EABI_VER5 = 83886080 +const EF_ARM_HASENTRY = 2 +const EF_ARM_INTERWORK = 4 +const EF_ARM_LE8 = 4194304 +const EF_ARM_MAPSYMSFIRST = 16 +const EF_ARM_MAVERICK_FLOAT = 2048 +const EF_ARM_NEW_ABI = 128 +const EF_ARM_OLD_ABI = 256 +const EF_ARM_PIC = 32 +const EF_ARM_RELEXEC = 1 +const EF_ARM_SOFT_FLOAT = 512 +const EF_ARM_SYMSARESORTED = 4 +const EF_ARM_VFP_FLOAT = 1024 +const EF_CPU32 = 8454144 +const EF_IA_64_ABI64 = 16 +const EF_IA_64_ARCH = 4278190080 +const EF_IA_64_MASKOS = 15 +const EF_LARCH_ABI_DOUBLE_FLOAT = 3 +const EF_LARCH_ABI_MODIFIER_MASK = 7 +const EF_LARCH_ABI_SINGLE_FLOAT = 2 +const EF_LARCH_ABI_SOFT_FLOAT = 1 +const EF_LARCH_OBJABI_V1 = 64 +const EF_MIPS_64BIT_WHIRL = 16 +const EF_MIPS_ABI2 = 32 +const EF_MIPS_ABI_ON32 = 64 +const EF_MIPS_ARCH = 4026531840 +const EF_MIPS_ARCH_1 = 0 +const EF_MIPS_ARCH_2 = 268435456 +const EF_MIPS_ARCH_3 = 536870912 +const EF_MIPS_ARCH_32 = 1342177280 +const EF_MIPS_ARCH_32R2 = 1879048192 +const EF_MIPS_ARCH_4 = 805306368 +const EF_MIPS_ARCH_5 = 1073741824 +const EF_MIPS_ARCH_64 = 1610612736 +const EF_MIPS_ARCH_64R2 = 2147483648 +const EF_MIPS_CPIC = 4 +const EF_MIPS_FP64 = 512 +const EF_MIPS_NAN2008 = 1024 +const EF_MIPS_NOREORDER = 1 +const EF_MIPS_PIC = 2 +const EF_MIPS_XGOT = 8 +const EF_PARISC_ARCH = 65535 +const EF_PARISC_EXT = 131072 +const EF_PARISC_LAZYSWAP = 4194304 +const EF_PARISC_LSB = 262144 +const EF_PARISC_NO_KABP = 1048576 +const EF_PARISC_TRAPNIL = 65536 +const EF_PARISC_WIDE = 524288 +const EF_PPC64_ABI = 3 +const EF_PPC_EMB = 2147483648 +const EF_PPC_RELOCATABLE = 65536 +const EF_PPC_RELOCATABLE_LIB = 32768 +const EF_SH1 = 1 +const EF_SH2 = 2 +const EF_SH2A = 13 +const EF_SH2A_NOFPU = 19 +const EF_SH2A_SH3E = 24 +const EF_SH2A_SH3_NOFPU = 22 +const EF_SH2A_SH4 = 23 +const EF_SH2A_SH4_NOFPU = 21 +const EF_SH2E = 11 +const EF_SH3 = 3 +const EF_SH3E = 8 +const EF_SH3_DSP = 5 +const EF_SH3_NOMMU = 20 +const EF_SH4 = 9 +const EF_SH4A = 12 +const EF_SH4AL_DSP = 6 +const EF_SH4A_NOFPU = 17 +const EF_SH4_NOFPU = 16 +const EF_SH4_NOMMU_NOFPU = 18 +const EF_SH_DSP = 4 +const EF_SH_MACH_MASK = 31 +const EF_SH_UNKNOWN = 0 +const EF_SPARCV9_MM = 3 +const EF_SPARCV9_PSO = 1 +const EF_SPARCV9_RMO = 2 +const EF_SPARCV9_TSO = 0 +const EF_SPARC_32PLUS = 256 +const EF_SPARC_EXT_MASK = 16776960 +const EF_SPARC_HAL_R1 = 1024 +const EF_SPARC_LEDATA = 8388608 +const EF_SPARC_SUN_US1 = 512 +const EF_SPARC_SUN_US3 = 2048 +const EI_ABIVERSION = 8 +const EI_CLASS = 4 +const EI_DATA = 5 +const EI_MAG0 = 0 +const EI_MAG1 = 1 +const EI_MAG2 = 2 +const EI_MAG3 = 3 +const EI_NIDENT = 16 +const EI_OSABI = 7 +const EI_PAD = 9 +const EI_VERSION = 6 +const ELFCLASS32 = 1 +const ELFCLASS64 = 2 +const ELFCLASSNONE = 0 +const ELFCLASSNUM = 3 +const ELFCOMPRESS_HIOS = 1879048191 +const ELFCOMPRESS_HIPROC = 2147483647 +const ELFCOMPRESS_LOOS = 1610612736 +const ELFCOMPRESS_LOPROC = 1879048192 +const ELFCOMPRESS_ZLIB = 1 +const ELFCOMPRESS_ZSTD = 2 +const ELFDATA2LSB = 1 +const ELFDATA2MSB = 2 +const ELFDATANONE = 0 +const ELFDATANUM = 3 +const ELFMAG = "\\177ELF" +const ELFMAG0 = 127 +const ELFMAG1 = 69 +const ELFMAG2 = 76 +const ELFMAG3 = 70 +const ELFOSABI_AIX = 7 +const ELFOSABI_ARM = 97 +const ELFOSABI_FREEBSD = 9 +const ELFOSABI_GNU = 3 +const ELFOSABI_HPUX = 1 +const ELFOSABI_IRIX = 8 +const ELFOSABI_LINUX = 3 +const ELFOSABI_MODESTO = 11 +const ELFOSABI_NETBSD = 2 +const ELFOSABI_NONE = 0 +const ELFOSABI_OPENBSD = 12 +const ELFOSABI_SOLARIS = 6 +const ELFOSABI_STANDALONE = 255 +const ELFOSABI_SYSV = 0 +const ELFOSABI_TRU64 = 10 +const ELF_NOTE_ABI = 1 +const ELF_NOTE_GNU = "GNU" +const ELF_NOTE_OS_FREEBSD = 3 +const ELF_NOTE_OS_GNU = 1 +const ELF_NOTE_OS_LINUX = 0 +const ELF_NOTE_OS_SOLARIS2 = 2 +const ELF_NOTE_PAGESIZE_HINT = 1 +const ELF_NOTE_SOLARIS = "SUNW Solaris" +const EM_386 = 3 +const EM_56800EX = 200 +const EM_68HC05 = 72 +const EM_68HC08 = 71 +const EM_68HC11 = 70 +const EM_68HC12 = 53 +const EM_68HC16 = 69 +const EM_68K = 4 +const EM_78KOR = 199 +const EM_8051 = 165 +const EM_860 = 7 +const EM_88K = 5 +const EM_960 = 19 +const EM_AARCH64 = 183 +const EM_ALPHA = 36902 +const EM_ALTERA_NIOS2 = 113 +const EM_AMDGPU = 224 +const EM_ARC = 45 +const EM_ARCA = 109 +const EM_ARC_A5 = 93 +const EM_ARC_COMPACT = 93 +const EM_ARC_COMPACT2 = 195 +const EM_ARM = 40 +const EM_AVR = 83 +const EM_AVR32 = 185 +const EM_BA1 = 201 +const EM_BA2 = 202 +const EM_BLACKFIN = 106 +const EM_BPF = 247 +const EM_C166 = 116 +const EM_CDP = 215 +const EM_CE = 119 +const EM_CLOUDSHIELD = 192 +const EM_COGE = 216 +const EM_COLDFIRE = 52 +const EM_COOL = 217 +const EM_COREA_1ST = 193 +const EM_COREA_2ND = 194 +const EM_CR = 103 +const EM_CR16 = 177 +const EM_CRAYNV2 = 172 +const EM_CRIS = 76 +const EM_CRX = 114 +const EM_CSKY = 252 +const EM_CSR_KALIMBA = 219 +const EM_CUDA = 190 +const EM_CYPRESS_M8C = 161 +const EM_D10V = 85 +const EM_D30V = 86 +const EM_DSP24 = 136 +const EM_DSPIC30F = 118 +const EM_DXP = 112 +const EM_ECOG16 = 176 +const EM_ECOG1X = 168 +const EM_ECOG2 = 134 +const EM_EMX16 = 212 +const EM_EMX8 = 213 +const EM_ETPU = 178 +const EM_EXCESS = 111 +const EM_F2MC16 = 104 +const EM_FAKE_ALPHA = 41 +const EM_FIREPATH = 78 +const EM_FR20 = 37 +const EM_FR30 = 84 +const EM_FT32 = 222 +const EM_FX66 = 66 +const EM_H8S = 48 +const EM_H8_300 = 46 +const EM_H8_300H = 47 +const EM_H8_500 = 49 +const EM_HUANY = 81 +const EM_IA_64 = 50 +const EM_IP2K = 101 +const EM_JAVELIN = 77 +const EM_K10M = 181 +const EM_KM32 = 210 +const EM_KMX32 = 211 +const EM_KVARC = 214 +const EM_L10M = 180 +const EM_LATTICEMICO32 = 138 +const EM_LOONGARCH = 258 +const EM_M16C = 117 +const EM_M32 = 1 +const EM_M32C = 120 +const EM_M32R = 88 +const EM_MANIK = 171 +const EM_MAX = 102 +const EM_MAXQ30 = 169 +const EM_MCHP_PIC = 204 +const EM_MCST_ELBRUS = 175 +const EM_ME16 = 59 +const EM_METAG = 174 +const EM_MICROBLAZE = 189 +const EM_MIPS = 8 +const EM_MIPS_RS3_LE = 10 +const EM_MIPS_X = 51 +const EM_MMA = 54 +const EM_MMDSP_PLUS = 160 +const EM_MMIX = 80 +const EM_MN10200 = 90 +const EM_MN10300 = 89 +const EM_MOXIE = 223 +const EM_MSP430 = 105 +const EM_NCPU = 56 +const EM_NDR1 = 57 +const EM_NDS32 = 167 +const EM_NONE = 0 +const EM_NORC = 218 +const EM_NS32K = 97 +const EM_NUM = 259 +const EM_OPEN8 = 196 +const EM_OPENRISC = 92 +const EM_OR1K = 92 +const EM_PARISC = 15 +const EM_PCP = 55 +const EM_PDSP = 63 +const EM_PJ = 91 +const EM_PPC = 20 +const EM_PPC64 = 21 +const EM_PRISM = 82 +const EM_QDSP6 = 164 +const EM_R32C = 162 +const EM_RCE = 39 +const EM_RH32 = 38 +const EM_RISCV = 243 +const EM_RL78 = 197 +const EM_RS08 = 132 +const EM_RX = 173 +const EM_S370 = 9 +const EM_S390 = 22 +const EM_SCORE7 = 135 +const EM_SEP = 108 +const EM_SE_C17 = 139 +const EM_SE_C33 = 107 +const EM_SH = 42 +const EM_SHARC = 133 +const EM_SLE9X = 179 +const EM_SNP1K = 99 +const EM_SPARC = 2 +const EM_SPARC32PLUS = 18 +const EM_SPARCV9 = 43 +const EM_ST100 = 60 +const EM_ST19 = 74 +const EM_ST200 = 100 +const EM_ST7 = 68 +const EM_ST9PLUS = 67 +const EM_STARCORE = 58 +const EM_STM8 = 186 +const EM_STXP7X = 166 +const EM_SVX = 73 +const EM_TILE64 = 187 +const EM_TILEGX = 191 +const EM_TILEPRO = 188 +const EM_TINYJ = 61 +const EM_TI_ARP32 = 143 +const EM_TI_C2000 = 141 +const EM_TI_C5500 = 142 +const EM_TI_C6000 = 140 +const EM_TI_PRU = 144 +const EM_TMM_GPP = 96 +const EM_TPC = 98 +const EM_TRICORE = 44 +const EM_TRIMEDIA = 163 +const EM_TSK3000 = 131 +const EM_UNICORE = 110 +const EM_V800 = 36 +const EM_V850 = 87 +const EM_VAX = 75 +const EM_VIDEOCORE = 95 +const EM_VIDEOCORE3 = 137 +const EM_VIDEOCORE5 = 198 +const EM_VISIUM = 221 +const EM_VPP500 = 17 +const EM_X86_64 = 62 +const EM_XCORE = 203 +const EM_XGATE = 115 +const EM_XIMO16 = 170 +const EM_XTENSA = 94 +const EM_Z80 = 220 +const EM_ZSP = 79 +const ET_CORE = 4 +const ET_DYN = 3 +const ET_EXEC = 2 +const ET_HIOS = 65279 +const ET_HIPROC = 65535 +const ET_LOOS = 65024 +const ET_LOPROC = 65280 +const ET_NONE = 0 +const ET_NUM = 5 +const ET_REL = 1 +const EV_CURRENT = 1 +const EV_NONE = 0 +const EV_NUM = 2 +const EXIT_FAILURE = 1 +const EXIT_SUCCESS = 0 +const E_MIPS_ARCH_1 = 0 +const E_MIPS_ARCH_2 = 268435456 +const E_MIPS_ARCH_3 = 536870912 +const E_MIPS_ARCH_32 = 1342177280 +const E_MIPS_ARCH_4 = 805306368 +const E_MIPS_ARCH_5 = 1073741824 +const E_MIPS_ARCH_64 = 1610612736 +const FD_SETSIZE = 1024 +const FPE_FLTDIV = 3 +const FPE_FLTINV = 7 +const FPE_FLTOVF = 4 +const FPE_FLTRES = 6 +const FPE_FLTSUB = 8 +const FPE_FLTUND = 5 +const FPE_INTDIV = 1 +const FPE_INTOVF = 2 +const GRP_COMDAT = 1 +const ILL_BADSTK = 8 +const ILL_COPROC = 7 +const ILL_ILLADR = 3 +const ILL_ILLOPC = 1 +const ILL_ILLOPN = 2 +const ILL_ILLTRP = 4 +const ILL_PRVOPC = 5 +const ILL_PRVREG = 6 +const IPC_64 = 0 +const ITIMER_PROF = 2 +const ITIMER_REAL = 0 +const ITIMER_VIRTUAL = 1 +const JT_ARG_MAX = -254 +const JT_AVPHYS_PAGES = -247 +const JT_DELAYTIMER_MAX = -245 +const JT_MINSIGSTKSZ = -244 +const JT_MQ_PRIO_MAX = -253 +const JT_NPROCESSORS_CONF = -250 +const JT_NPROCESSORS_ONLN = -249 +const JT_PAGE_SIZE = -252 +const JT_PHYS_PAGES = -248 +const JT_SEM_VALUE_MAX = -251 +const JT_SIGSTKSZ = -243 +const JT_ZERO = -246 +const LITUSE_ALPHA_ADDR = 0 +const LITUSE_ALPHA_BASE = 1 +const LITUSE_ALPHA_BYTOFF = 2 +const LITUSE_ALPHA_JSR = 3 +const LITUSE_ALPHA_TLS_GD = 4 +const LITUSE_ALPHA_TLS_LDM = 5 +const LL_DELAY_LOAD = 16 +const LL_DELTA = 32 +const LL_EXACT_MATCH = 1 +const LL_EXPORTS = 8 +const LL_IGNORE_INT_VER = 2 +const LL_NONE = 0 +const LL_REQUIRE_MINOR = 4 +const MB_CUR_MAX = 0 +const MINSIGSTKSZ = 4096 +const MIPS_AFL_ASE_DSP = 1 +const MIPS_AFL_ASE_DSPR2 = 2 +const MIPS_AFL_ASE_EVA = 4 +const MIPS_AFL_ASE_MASK = 8191 +const MIPS_AFL_ASE_MCU = 8 +const MIPS_AFL_ASE_MDMX = 16 +const MIPS_AFL_ASE_MICROMIPS = 2048 +const MIPS_AFL_ASE_MIPS16 = 1024 +const MIPS_AFL_ASE_MIPS3D = 32 +const MIPS_AFL_ASE_MSA = 512 +const MIPS_AFL_ASE_MT = 64 +const MIPS_AFL_ASE_SMARTMIPS = 128 +const MIPS_AFL_ASE_VIRT = 256 +const MIPS_AFL_ASE_XPA = 4096 +const MIPS_AFL_EXT_10000 = 11 +const MIPS_AFL_EXT_3900 = 10 +const MIPS_AFL_EXT_4010 = 8 +const MIPS_AFL_EXT_4100 = 9 +const MIPS_AFL_EXT_4111 = 13 +const MIPS_AFL_EXT_4120 = 14 +const MIPS_AFL_EXT_4650 = 7 +const MIPS_AFL_EXT_5400 = 15 +const MIPS_AFL_EXT_5500 = 16 +const MIPS_AFL_EXT_5900 = 6 +const MIPS_AFL_EXT_LOONGSON_2E = 17 +const MIPS_AFL_EXT_LOONGSON_2F = 18 +const MIPS_AFL_EXT_LOONGSON_3A = 4 +const MIPS_AFL_EXT_OCTEON = 5 +const MIPS_AFL_EXT_OCTEON2 = 2 +const MIPS_AFL_EXT_OCTEONP = 3 +const MIPS_AFL_EXT_SB1 = 12 +const MIPS_AFL_EXT_XLR = 1 +const MIPS_AFL_FLAGS1_ODDSPREG = 1 +const MIPS_AFL_REG_128 = 3 +const MIPS_AFL_REG_32 = 1 +const MIPS_AFL_REG_64 = 2 +const MIPS_AFL_REG_NONE = 0 +const NT_386_IOPERM = 513 +const NT_386_TLS = 512 +const NT_ARC_V2 = 1536 +const NT_ARM_HW_BREAK = 1026 +const NT_ARM_HW_WATCH = 1027 +const NT_ARM_PACA_KEYS = 1031 +const NT_ARM_PACG_KEYS = 1032 +const NT_ARM_PAC_ENABLED_KEYS = 1034 +const NT_ARM_PAC_MASK = 1030 +const NT_ARM_SVE = 1029 +const NT_ARM_SYSTEM_CALL = 1028 +const NT_ARM_TAGGED_ADDR_CTRL = 1033 +const NT_ARM_TLS = 1025 +const NT_ARM_VFP = 1024 +const NT_ASRS = 8 +const NT_AUXV = 6 +const NT_FILE = 1179208773 +const NT_FPREGSET = 2 +const NT_GNU_ABI_TAG = 1 +const NT_GNU_BUILD_ID = 3 +const NT_GNU_GOLD_VERSION = 4 +const NT_GNU_PROPERTY_TYPE_0 = 5 +const NT_GWINDOWS = 7 +const NT_LOONGARCH_CPUCFG = 2560 +const NT_LOONGARCH_CSR = 2561 +const NT_LOONGARCH_LASX = 2563 +const NT_LOONGARCH_LBT = 2564 +const NT_LOONGARCH_LSX = 2562 +const NT_LWPSINFO = 17 +const NT_LWPSTATUS = 16 +const NT_METAG_CBUF = 1280 +const NT_METAG_RPIPE = 1281 +const NT_METAG_TLS = 1282 +const NT_MIPS_DSP = 2048 +const NT_MIPS_FP_MODE = 2049 +const NT_MIPS_MSA = 2050 +const NT_PLATFORM = 5 +const NT_PPC_DSCR = 261 +const NT_PPC_EBB = 262 +const NT_PPC_PMU = 263 +const NT_PPC_PPR = 260 +const NT_PPC_SPE = 257 +const NT_PPC_TAR = 259 +const NT_PPC_TM_CDSCR = 271 +const NT_PPC_TM_CFPR = 265 +const NT_PPC_TM_CGPR = 264 +const NT_PPC_TM_CPPR = 270 +const NT_PPC_TM_CTAR = 269 +const NT_PPC_TM_CVMX = 266 +const NT_PPC_TM_CVSX = 267 +const NT_PPC_TM_SPR = 268 +const NT_PPC_VMX = 256 +const NT_PPC_VSX = 258 +const NT_PRCRED = 14 +const NT_PRFPREG = 2 +const NT_PRFPXREG = 20 +const NT_PRPSINFO = 3 +const NT_PRSTATUS = 1 +const NT_PRXFPREG = 1189489535 +const NT_PRXREG = 4 +const NT_PSINFO = 13 +const NT_PSTATUS = 10 +const NT_RISCV_CSR = 2304 +const NT_RISCV_VECTOR = 2305 +const NT_S390_CTRS = 772 +const NT_S390_GS_BC = 780 +const NT_S390_GS_CB = 779 +const NT_S390_HIGH_GPRS = 768 +const NT_S390_LAST_BREAK = 774 +const NT_S390_PREFIX = 773 +const NT_S390_RI_CB = 781 +const NT_S390_SYSTEM_CALL = 775 +const NT_S390_TDB = 776 +const NT_S390_TIMER = 769 +const NT_S390_TODCMP = 770 +const NT_S390_TODPREG = 771 +const NT_S390_VXRS_HIGH = 778 +const NT_S390_VXRS_LOW = 777 +const NT_SIGINFO = 1397311305 +const NT_TASKSTRUCT = 4 +const NT_UTSNAME = 15 +const NT_VERSION = 1 +const NT_VMCOREDD = 1792 +const NT_X86_XSTATE = 514 +const ODK_EXCEPTIONS = 2 +const ODK_FILL = 5 +const ODK_HWAND = 7 +const ODK_HWOR = 8 +const ODK_HWPATCH = 4 +const ODK_NULL = 0 +const ODK_PAD = 3 +const ODK_REGINFO = 1 +const ODK_TAGS = 6 +const OEX_DISMISS = 524288 +const OEX_FPDBUG = 262144 +const OEX_FPU_DIV0 = 8 +const OEX_FPU_INEX = 1 +const OEX_FPU_INVAL = 16 +const OEX_FPU_MAX = 7936 +const OEX_FPU_MIN = 31 +const OEX_FPU_OFLO = 4 +const OEX_FPU_UFLO = 2 +const OEX_PAGE0 = 65536 +const OEX_PRECISEFP = 262144 +const OEX_SMM = 131072 +const OHWA0_R4KEOP_CHECKED = 1 +const OHWA1_R4KEOP_CLEAN = 2 +const OHW_R4KEOP = 1 +const OHW_R5KCVTL = 8 +const OHW_R5KEOP = 4 +const OHW_R8KPFETCH = 2 +const OPAD_POSTFIX = 2 +const OPAD_PREFIX = 1 +const OPAD_SYMBOL = 4 +const PF_ARM_ABS = 1073741824 +const PF_ARM_PI = 536870912 +const PF_ARM_SB = 268435456 +const PF_HP_CODE = 16777216 +const PF_HP_FAR_SHARED = 2097152 +const PF_HP_LAZYSWAP = 67108864 +const PF_HP_MODIFY = 33554432 +const PF_HP_NEAR_SHARED = 4194304 +const PF_HP_PAGE_SIZE = 1048576 +const PF_HP_SBP = 134217728 +const PF_IA_64_NORECOV = 2147483648 +const PF_MASKOS = 267386880 +const PF_MASKPROC = 4026531840 +const PF_MIPS_LOCAL = 268435456 +const PF_PARISC_SBP = 134217728 +const PF_R = 4 +const PF_W = 2 +const PF_X = 1 +const PN_XNUM = 65535 +const POLL_ERR = 4 +const POLL_HUP = 6 +const POLL_IN = 1 +const POLL_MSG = 3 +const POLL_OUT = 2 +const POLL_PRI = 5 +const PPC64_OPT_LOCALENTRY = 4 +const PPC64_OPT_MULTI_TOC = 2 +const PPC64_OPT_TLS = 1 +const PPC_OPT_TLS = 1 +const PRIO_MAX = 20 +const PRIO_MIN = -20 +const PRIO_PGRP = 1 +const PRIO_PROCESS = 0 +const PRIO_USER = 2 +const PT_ARM_EXIDX = 1879048193 +const PT_DYNAMIC = 2 +const PT_GNU_EH_FRAME = 1685382480 +const PT_GNU_PROPERTY = 1685382483 +const PT_GNU_RELRO = 1685382482 +const PT_GNU_STACK = 1685382481 +const PT_HIOS = 1879048191 +const PT_HIPROC = 2147483647 +const PT_HISUNW = 1879048191 +const PT_HP_CORE_COMM = 1610612740 +const PT_HP_CORE_KERNEL = 1610612739 +const PT_HP_CORE_LOADABLE = 1610612742 +const PT_HP_CORE_MMF = 1610612745 +const PT_HP_CORE_NONE = 1610612737 +const PT_HP_CORE_PROC = 1610612741 +const PT_HP_CORE_SHM = 1610612744 +const PT_HP_CORE_STACK = 1610612743 +const PT_HP_CORE_VERSION = 1610612738 +const PT_HP_FASTBIND = 1610612753 +const PT_HP_HSL_ANNOT = 1610612755 +const PT_HP_OPT_ANNOT = 1610612754 +const PT_HP_PARALLEL = 1610612752 +const PT_HP_STACK = 1610612756 +const PT_HP_TLS = 1610612736 +const PT_IA_64_ARCHEXT = 1879048192 +const PT_IA_64_HP_HSL_ANOT = 1610612755 +const PT_IA_64_HP_OPT_ANOT = 1610612754 +const PT_IA_64_HP_STACK = 1610612756 +const PT_IA_64_UNWIND = 1879048193 +const PT_INTERP = 3 +const PT_LOAD = 1 +const PT_LOOS = 1610612736 +const PT_LOPROC = 1879048192 +const PT_LOSUNW = 1879048186 +const PT_MIPS_ABIFLAGS = 1879048195 +const PT_MIPS_OPTIONS = 1879048194 +const PT_MIPS_REGINFO = 1879048192 +const PT_MIPS_RTPROC = 1879048193 +const PT_NOTE = 4 +const PT_NULL = 0 +const PT_NUM = 8 +const PT_PARISC_ARCHEXT = 1879048192 +const PT_PARISC_UNWIND = 1879048193 +const PT_PHDR = 6 +const PT_SHLIB = 5 +const PT_SUNWBSS = 1879048186 +const PT_SUNWSTACK = 1879048187 +const PT_TLS = 7 +const RAND_MAX = 2147483647 +const RHF_CORD = 4096 +const RHF_DEFAULT_DELAY_LOAD = 512 +const RHF_DELTA_C_PLUS_PLUS = 64 +const RHF_GUARANTEE_INIT = 32 +const RHF_GUARANTEE_START_INIT = 128 +const RHF_NONE = 0 +const RHF_NOTPOT = 2 +const RHF_NO_LIBRARY_REPLACEMENT = 4 +const RHF_NO_MOVE = 8 +const RHF_NO_UNRES_UNDEF = 8192 +const RHF_PIXIE = 256 +const RHF_QUICKSTART = 1 +const RHF_REQUICKSTART = 1024 +const RHF_REQUICKSTARTED = 2048 +const RHF_RLD_ORDER_SAFE = 16384 +const RHF_SGI_ONLY = 16 +const RLIMIT_AS = 9 +const RLIMIT_CORE = 4 +const RLIMIT_CPU = 0 +const RLIMIT_DATA = 2 +const RLIMIT_FSIZE = 1 +const RLIMIT_LOCKS = 10 +const RLIMIT_MEMLOCK = 8 +const RLIMIT_MSGQUEUE = 12 +const RLIMIT_NICE = 13 +const RLIMIT_NLIMITS = 16 +const RLIMIT_NOFILE = 7 +const RLIMIT_NPROC = 6 +const RLIMIT_RSS = 5 +const RLIMIT_RTPRIO = 14 +const RLIMIT_RTTIME = 15 +const RLIMIT_SIGPENDING = 11 +const RLIMIT_STACK = 3 +const RLIM_INFINITY = 18446744073709551615 +const RLIM_NLIMITS = 16 +const RLIM_SAVED_CUR = 18446744073709551615 +const RLIM_SAVED_MAX = 18446744073709551615 +const RUSAGE_CHILDREN = -1 +const RUSAGE_SELF = 0 +const RUSAGE_THREAD = 1 +const R_386_16 = 20 +const R_386_32 = 1 +const R_386_32PLT = 11 +const R_386_8 = 22 +const R_386_COPY = 5 +const R_386_GLOB_DAT = 6 +const R_386_GOT32 = 3 +const R_386_GOT32X = 43 +const R_386_GOTOFF = 9 +const R_386_GOTPC = 10 +const R_386_IRELATIVE = 42 +const R_386_JMP_SLOT = 7 +const R_386_NONE = 0 +const R_386_NUM = 44 +const R_386_PC16 = 21 +const R_386_PC32 = 2 +const R_386_PC8 = 23 +const R_386_PLT32 = 4 +const R_386_RELATIVE = 8 +const R_386_SIZE32 = 38 +const R_386_TLS_DESC = 41 +const R_386_TLS_DESC_CALL = 40 +const R_386_TLS_DTPMOD32 = 35 +const R_386_TLS_DTPOFF32 = 36 +const R_386_TLS_GD = 18 +const R_386_TLS_GD_32 = 24 +const R_386_TLS_GD_CALL = 26 +const R_386_TLS_GD_POP = 27 +const R_386_TLS_GD_PUSH = 25 +const R_386_TLS_GOTDESC = 39 +const R_386_TLS_GOTIE = 16 +const R_386_TLS_IE = 15 +const R_386_TLS_IE_32 = 33 +const R_386_TLS_LDM = 19 +const R_386_TLS_LDM_32 = 28 +const R_386_TLS_LDM_CALL = 30 +const R_386_TLS_LDM_POP = 31 +const R_386_TLS_LDM_PUSH = 29 +const R_386_TLS_LDO_32 = 32 +const R_386_TLS_LE = 17 +const R_386_TLS_LE_32 = 34 +const R_386_TLS_TPOFF = 14 +const R_386_TLS_TPOFF32 = 37 +const R_390_12 = 2 +const R_390_16 = 3 +const R_390_20 = 57 +const R_390_32 = 4 +const R_390_64 = 22 +const R_390_8 = 1 +const R_390_COPY = 9 +const R_390_GLOB_DAT = 10 +const R_390_GOT12 = 6 +const R_390_GOT16 = 15 +const R_390_GOT20 = 58 +const R_390_GOT32 = 7 +const R_390_GOT64 = 24 +const R_390_GOTENT = 26 +const R_390_GOTOFF16 = 27 +const R_390_GOTOFF32 = 13 +const R_390_GOTOFF64 = 28 +const R_390_GOTPC = 14 +const R_390_GOTPCDBL = 21 +const R_390_GOTPLT12 = 29 +const R_390_GOTPLT16 = 30 +const R_390_GOTPLT20 = 59 +const R_390_GOTPLT32 = 31 +const R_390_GOTPLT64 = 32 +const R_390_GOTPLTENT = 33 +const R_390_JMP_SLOT = 11 +const R_390_NONE = 0 +const R_390_NUM = 61 +const R_390_PC16 = 16 +const R_390_PC16DBL = 17 +const R_390_PC32 = 5 +const R_390_PC32DBL = 19 +const R_390_PC64 = 23 +const R_390_PLT16DBL = 18 +const R_390_PLT32 = 8 +const R_390_PLT32DBL = 20 +const R_390_PLT64 = 25 +const R_390_PLTOFF16 = 34 +const R_390_PLTOFF32 = 35 +const R_390_PLTOFF64 = 36 +const R_390_RELATIVE = 12 +const R_390_TLS_DTPMOD = 54 +const R_390_TLS_DTPOFF = 55 +const R_390_TLS_GD32 = 40 +const R_390_TLS_GD64 = 41 +const R_390_TLS_GDCALL = 38 +const R_390_TLS_GOTIE12 = 42 +const R_390_TLS_GOTIE20 = 60 +const R_390_TLS_GOTIE32 = 43 +const R_390_TLS_GOTIE64 = 44 +const R_390_TLS_IE32 = 47 +const R_390_TLS_IE64 = 48 +const R_390_TLS_IEENT = 49 +const R_390_TLS_LDCALL = 39 +const R_390_TLS_LDM32 = 45 +const R_390_TLS_LDM64 = 46 +const R_390_TLS_LDO32 = 52 +const R_390_TLS_LDO64 = 53 +const R_390_TLS_LE32 = 50 +const R_390_TLS_LE64 = 51 +const R_390_TLS_LOAD = 37 +const R_390_TLS_TPOFF = 56 +const R_68K_16 = 2 +const R_68K_32 = 1 +const R_68K_8 = 3 +const R_68K_COPY = 19 +const R_68K_GLOB_DAT = 20 +const R_68K_GOT16 = 8 +const R_68K_GOT16O = 11 +const R_68K_GOT32 = 7 +const R_68K_GOT32O = 10 +const R_68K_GOT8 = 9 +const R_68K_GOT8O = 12 +const R_68K_JMP_SLOT = 21 +const R_68K_NONE = 0 +const R_68K_NUM = 43 +const R_68K_PC16 = 5 +const R_68K_PC32 = 4 +const R_68K_PC8 = 6 +const R_68K_PLT16 = 14 +const R_68K_PLT16O = 17 +const R_68K_PLT32 = 13 +const R_68K_PLT32O = 16 +const R_68K_PLT8 = 15 +const R_68K_PLT8O = 18 +const R_68K_RELATIVE = 22 +const R_68K_TLS_DTPMOD32 = 40 +const R_68K_TLS_DTPREL32 = 41 +const R_68K_TLS_GD16 = 26 +const R_68K_TLS_GD32 = 25 +const R_68K_TLS_GD8 = 27 +const R_68K_TLS_IE16 = 35 +const R_68K_TLS_IE32 = 34 +const R_68K_TLS_IE8 = 36 +const R_68K_TLS_LDM16 = 29 +const R_68K_TLS_LDM32 = 28 +const R_68K_TLS_LDM8 = 30 +const R_68K_TLS_LDO16 = 32 +const R_68K_TLS_LDO32 = 31 +const R_68K_TLS_LDO8 = 33 +const R_68K_TLS_LE16 = 38 +const R_68K_TLS_LE32 = 37 +const R_68K_TLS_LE8 = 39 +const R_68K_TLS_TPREL32 = 42 +const R_AARCH64_ABS16 = 259 +const R_AARCH64_ABS32 = 258 +const R_AARCH64_ABS64 = 257 +const R_AARCH64_ADD_ABS_LO12_NC = 277 +const R_AARCH64_ADR_GOT_PAGE = 311 +const R_AARCH64_ADR_PREL_LO21 = 274 +const R_AARCH64_ADR_PREL_PG_HI21 = 275 +const R_AARCH64_ADR_PREL_PG_HI21_NC = 276 +const R_AARCH64_CALL26 = 283 +const R_AARCH64_CONDBR19 = 280 +const R_AARCH64_COPY = 1024 +const R_AARCH64_GLOB_DAT = 1025 +const R_AARCH64_GOTREL32 = 308 +const R_AARCH64_GOTREL64 = 307 +const R_AARCH64_GOT_LD_PREL19 = 309 +const R_AARCH64_JUMP26 = 282 +const R_AARCH64_JUMP_SLOT = 1026 +const R_AARCH64_LD64_GOTOFF_LO15 = 310 +const R_AARCH64_LD64_GOTPAGE_LO15 = 313 +const R_AARCH64_LD64_GOT_LO12_NC = 312 +const R_AARCH64_LDST128_ABS_LO12_NC = 299 +const R_AARCH64_LDST16_ABS_LO12_NC = 284 +const R_AARCH64_LDST32_ABS_LO12_NC = 285 +const R_AARCH64_LDST64_ABS_LO12_NC = 286 +const R_AARCH64_LDST8_ABS_LO12_NC = 278 +const R_AARCH64_LD_PREL_LO19 = 273 +const R_AARCH64_MOVW_GOTOFF_G0 = 300 +const R_AARCH64_MOVW_GOTOFF_G0_NC = 301 +const R_AARCH64_MOVW_GOTOFF_G1 = 302 +const R_AARCH64_MOVW_GOTOFF_G1_NC = 303 +const R_AARCH64_MOVW_GOTOFF_G2 = 304 +const R_AARCH64_MOVW_GOTOFF_G2_NC = 305 +const R_AARCH64_MOVW_GOTOFF_G3 = 306 +const R_AARCH64_MOVW_PREL_G0 = 287 +const R_AARCH64_MOVW_PREL_G0_NC = 288 +const R_AARCH64_MOVW_PREL_G1 = 289 +const R_AARCH64_MOVW_PREL_G1_NC = 290 +const R_AARCH64_MOVW_PREL_G2 = 291 +const R_AARCH64_MOVW_PREL_G2_NC = 292 +const R_AARCH64_MOVW_PREL_G3 = 293 +const R_AARCH64_MOVW_SABS_G0 = 270 +const R_AARCH64_MOVW_SABS_G1 = 271 +const R_AARCH64_MOVW_SABS_G2 = 272 +const R_AARCH64_MOVW_UABS_G0 = 263 +const R_AARCH64_MOVW_UABS_G0_NC = 264 +const R_AARCH64_MOVW_UABS_G1 = 265 +const R_AARCH64_MOVW_UABS_G1_NC = 266 +const R_AARCH64_MOVW_UABS_G2 = 267 +const R_AARCH64_MOVW_UABS_G2_NC = 268 +const R_AARCH64_MOVW_UABS_G3 = 269 +const R_AARCH64_NONE = 0 +const R_AARCH64_P32_ABS32 = 1 +const R_AARCH64_P32_COPY = 180 +const R_AARCH64_P32_GLOB_DAT = 181 +const R_AARCH64_P32_IRELATIVE = 188 +const R_AARCH64_P32_JUMP_SLOT = 182 +const R_AARCH64_P32_RELATIVE = 183 +const R_AARCH64_P32_TLSDESC = 187 +const R_AARCH64_P32_TLS_DTPMOD = 184 +const R_AARCH64_P32_TLS_DTPREL = 185 +const R_AARCH64_P32_TLS_TPREL = 186 +const R_AARCH64_PREL16 = 262 +const R_AARCH64_PREL32 = 261 +const R_AARCH64_PREL64 = 260 +const R_AARCH64_RELATIVE = 1027 +const R_AARCH64_TLSDESC = 1031 +const R_AARCH64_TLSDESC_ADD = 568 +const R_AARCH64_TLSDESC_ADD_LO12 = 564 +const R_AARCH64_TLSDESC_ADR_PAGE21 = 562 +const R_AARCH64_TLSDESC_ADR_PREL21 = 561 +const R_AARCH64_TLSDESC_CALL = 569 +const R_AARCH64_TLSDESC_LD64_LO12 = 563 +const R_AARCH64_TLSDESC_LDR = 567 +const R_AARCH64_TLSDESC_LD_PREL19 = 560 +const R_AARCH64_TLSDESC_OFF_G0_NC = 566 +const R_AARCH64_TLSDESC_OFF_G1 = 565 +const R_AARCH64_TLSGD_ADD_LO12_NC = 514 +const R_AARCH64_TLSGD_ADR_PAGE21 = 513 +const R_AARCH64_TLSGD_ADR_PREL21 = 512 +const R_AARCH64_TLSGD_MOVW_G0_NC = 516 +const R_AARCH64_TLSGD_MOVW_G1 = 515 +const R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21 = 541 +const R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC = 542 +const R_AARCH64_TLSIE_LD_GOTTPREL_PREL19 = 543 +const R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC = 540 +const R_AARCH64_TLSIE_MOVW_GOTTPREL_G1 = 539 +const R_AARCH64_TLSLD_ADD_DTPREL_HI12 = 528 +const R_AARCH64_TLSLD_ADD_DTPREL_LO12 = 529 +const R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC = 530 +const R_AARCH64_TLSLD_ADD_LO12_NC = 519 +const R_AARCH64_TLSLD_ADR_PAGE21 = 518 +const R_AARCH64_TLSLD_ADR_PREL21 = 517 +const R_AARCH64_TLSLD_LDST128_DTPREL_LO12 = 572 +const R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC = 573 +const R_AARCH64_TLSLD_LDST16_DTPREL_LO12 = 533 +const R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC = 534 +const R_AARCH64_TLSLD_LDST32_DTPREL_LO12 = 535 +const R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC = 536 +const R_AARCH64_TLSLD_LDST64_DTPREL_LO12 = 537 +const R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC = 538 +const R_AARCH64_TLSLD_LDST8_DTPREL_LO12 = 531 +const R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC = 532 +const R_AARCH64_TLSLD_LD_PREL19 = 522 +const R_AARCH64_TLSLD_MOVW_DTPREL_G0 = 526 +const R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC = 527 +const R_AARCH64_TLSLD_MOVW_DTPREL_G1 = 524 +const R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC = 525 +const R_AARCH64_TLSLD_MOVW_DTPREL_G2 = 523 +const R_AARCH64_TLSLD_MOVW_G0_NC = 521 +const R_AARCH64_TLSLD_MOVW_G1 = 520 +const R_AARCH64_TLSLE_ADD_TPREL_HI12 = 549 +const R_AARCH64_TLSLE_ADD_TPREL_LO12 = 550 +const R_AARCH64_TLSLE_ADD_TPREL_LO12_NC = 551 +const R_AARCH64_TLSLE_LDST128_TPREL_LO12 = 570 +const R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC = 571 +const R_AARCH64_TLSLE_LDST16_TPREL_LO12 = 554 +const R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC = 555 +const R_AARCH64_TLSLE_LDST32_TPREL_LO12 = 556 +const R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC = 557 +const R_AARCH64_TLSLE_LDST64_TPREL_LO12 = 558 +const R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC = 559 +const R_AARCH64_TLSLE_LDST8_TPREL_LO12 = 552 +const R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC = 553 +const R_AARCH64_TLSLE_MOVW_TPREL_G0 = 547 +const R_AARCH64_TLSLE_MOVW_TPREL_G0_NC = 548 +const R_AARCH64_TLSLE_MOVW_TPREL_G1 = 545 +const R_AARCH64_TLSLE_MOVW_TPREL_G1_NC = 546 +const R_AARCH64_TLSLE_MOVW_TPREL_G2 = 544 +const R_AARCH64_TLS_DTPMOD = 1028 +const R_AARCH64_TLS_DTPMOD64 = 1028 +const R_AARCH64_TLS_DTPREL = 1029 +const R_AARCH64_TLS_DTPREL64 = 1029 +const R_AARCH64_TLS_TPREL = 1030 +const R_AARCH64_TLS_TPREL64 = 1030 +const R_AARCH64_TSTBR14 = 279 +const R_ALPHA_BRADDR = 7 +const R_ALPHA_COPY = 24 +const R_ALPHA_DTPMOD64 = 31 +const R_ALPHA_DTPREL16 = 36 +const R_ALPHA_DTPREL64 = 33 +const R_ALPHA_DTPRELHI = 34 +const R_ALPHA_DTPRELLO = 35 +const R_ALPHA_GLOB_DAT = 25 +const R_ALPHA_GOTDTPREL = 32 +const R_ALPHA_GOTTPREL = 37 +const R_ALPHA_GPDISP = 6 +const R_ALPHA_GPREL16 = 19 +const R_ALPHA_GPREL32 = 3 +const R_ALPHA_GPRELHIGH = 17 +const R_ALPHA_GPRELLOW = 18 +const R_ALPHA_HINT = 8 +const R_ALPHA_JMP_SLOT = 26 +const R_ALPHA_LITERAL = 4 +const R_ALPHA_LITUSE = 5 +const R_ALPHA_NONE = 0 +const R_ALPHA_NUM = 46 +const R_ALPHA_REFLONG = 1 +const R_ALPHA_REFQUAD = 2 +const R_ALPHA_RELATIVE = 27 +const R_ALPHA_SREL16 = 9 +const R_ALPHA_SREL32 = 10 +const R_ALPHA_SREL64 = 11 +const R_ALPHA_TLSGD = 29 +const R_ALPHA_TLS_GD_HI = 28 +const R_ALPHA_TLS_LDM = 30 +const R_ALPHA_TPREL16 = 41 +const R_ALPHA_TPREL64 = 38 +const R_ALPHA_TPRELHI = 39 +const R_ALPHA_TPRELLO = 40 +const R_ARM_ABS12 = 6 +const R_ARM_ABS16 = 5 +const R_ARM_ABS32 = 2 +const R_ARM_ABS32_NOI = 55 +const R_ARM_ABS8 = 8 +const R_ARM_ALU_PCREL_15_8 = 33 +const R_ARM_ALU_PCREL_23_15 = 34 +const R_ARM_ALU_PCREL_7_0 = 32 +const R_ARM_ALU_PC_G0 = 58 +const R_ARM_ALU_PC_G0_NC = 57 +const R_ARM_ALU_PC_G1 = 60 +const R_ARM_ALU_PC_G1_NC = 59 +const R_ARM_ALU_PC_G2 = 61 +const R_ARM_ALU_SBREL_19_12 = 36 +const R_ARM_ALU_SBREL_27_20 = 37 +const R_ARM_ALU_SB_G0 = 71 +const R_ARM_ALU_SB_G0_NC = 70 +const R_ARM_ALU_SB_G1 = 73 +const R_ARM_ALU_SB_G1_NC = 72 +const R_ARM_ALU_SB_G2 = 74 +const R_ARM_AMP_VCALL9 = 12 +const R_ARM_BASE_ABS = 31 +const R_ARM_CALL = 28 +const R_ARM_COPY = 20 +const R_ARM_GLOB_DAT = 21 +const R_ARM_GNU_VTENTRY = 100 +const R_ARM_GNU_VTINHERIT = 101 +const R_ARM_GOT32 = 26 +const R_ARM_GOTOFF = 24 +const R_ARM_GOTOFF12 = 98 +const R_ARM_GOTPC = 25 +const R_ARM_GOTRELAX = 99 +const R_ARM_GOT_ABS = 95 +const R_ARM_GOT_BREL12 = 97 +const R_ARM_GOT_PREL = 96 +const R_ARM_IRELATIVE = 160 +const R_ARM_JUMP24 = 29 +const R_ARM_JUMP_SLOT = 22 +const R_ARM_LDC_PC_G0 = 67 +const R_ARM_LDC_PC_G1 = 68 +const R_ARM_LDC_PC_G2 = 69 +const R_ARM_LDC_SB_G0 = 81 +const R_ARM_LDC_SB_G1 = 82 +const R_ARM_LDC_SB_G2 = 83 +const R_ARM_LDRS_PC_G0 = 64 +const R_ARM_LDRS_PC_G1 = 65 +const R_ARM_LDRS_PC_G2 = 66 +const R_ARM_LDRS_SB_G0 = 78 +const R_ARM_LDRS_SB_G1 = 79 +const R_ARM_LDRS_SB_G2 = 80 +const R_ARM_LDR_PC_G1 = 62 +const R_ARM_LDR_PC_G2 = 63 +const R_ARM_LDR_SBREL_11_0 = 35 +const R_ARM_LDR_SB_G0 = 75 +const R_ARM_LDR_SB_G1 = 76 +const R_ARM_LDR_SB_G2 = 77 +const R_ARM_ME_TOO = 128 +const R_ARM_MOVT_ABS = 44 +const R_ARM_MOVT_BREL = 85 +const R_ARM_MOVT_PREL = 46 +const R_ARM_MOVW_ABS_NC = 43 +const R_ARM_MOVW_BREL = 86 +const R_ARM_MOVW_BREL_NC = 84 +const R_ARM_MOVW_PREL_NC = 45 +const R_ARM_NONE = 0 +const R_ARM_NUM = 256 +const R_ARM_PC13 = 4 +const R_ARM_PC24 = 1 +const R_ARM_PLT32 = 27 +const R_ARM_PLT32_ABS = 94 +const R_ARM_PREL31 = 42 +const R_ARM_RABS22 = 253 +const R_ARM_RBASE = 255 +const R_ARM_REL32 = 3 +const R_ARM_REL32_NOI = 56 +const R_ARM_RELATIVE = 23 +const R_ARM_RPC24 = 254 +const R_ARM_RREL32 = 252 +const R_ARM_RSBREL32 = 250 +const R_ARM_RXPC25 = 249 +const R_ARM_SBREL31 = 39 +const R_ARM_SBREL32 = 9 +const R_ARM_TARGET1 = 38 +const R_ARM_TARGET2 = 41 +const R_ARM_THM_ABS5 = 7 +const R_ARM_THM_ALU_PREL_11_0 = 53 +const R_ARM_THM_GOT_BREL12 = 131 +const R_ARM_THM_JUMP19 = 51 +const R_ARM_THM_JUMP24 = 30 +const R_ARM_THM_JUMP6 = 52 +const R_ARM_THM_MOVT_ABS = 48 +const R_ARM_THM_MOVT_BREL = 88 +const R_ARM_THM_MOVT_PREL = 50 +const R_ARM_THM_MOVW_ABS_NC = 47 +const R_ARM_THM_MOVW_BREL = 89 +const R_ARM_THM_MOVW_BREL_NC = 87 +const R_ARM_THM_MOVW_PREL_NC = 49 +const R_ARM_THM_PC11 = 102 +const R_ARM_THM_PC12 = 54 +const R_ARM_THM_PC22 = 10 +const R_ARM_THM_PC8 = 11 +const R_ARM_THM_PC9 = 103 +const R_ARM_THM_RPC22 = 251 +const R_ARM_THM_SWI8 = 14 +const R_ARM_THM_TLS_CALL = 93 +const R_ARM_THM_TLS_DESCSEQ = 129 +const R_ARM_THM_TLS_DESCSEQ16 = 129 +const R_ARM_THM_TLS_DESCSEQ32 = 130 +const R_ARM_THM_XPC22 = 16 +const R_ARM_TLS_CALL = 91 +const R_ARM_TLS_DESC = 13 +const R_ARM_TLS_DESCSEQ = 92 +const R_ARM_TLS_DTPMOD32 = 17 +const R_ARM_TLS_DTPOFF32 = 18 +const R_ARM_TLS_GD32 = 104 +const R_ARM_TLS_GOTDESC = 90 +const R_ARM_TLS_IE12GP = 111 +const R_ARM_TLS_IE32 = 107 +const R_ARM_TLS_LDM32 = 105 +const R_ARM_TLS_LDO12 = 109 +const R_ARM_TLS_LDO32 = 106 +const R_ARM_TLS_LE12 = 110 +const R_ARM_TLS_LE32 = 108 +const R_ARM_TLS_TPOFF32 = 19 +const R_ARM_V4BX = 40 +const R_ARM_XPC25 = 15 +const R_BPF_MAP_FD = 1 +const R_BPF_NONE = 0 +const R_CKCORE_ADDR32 = 1 +const R_CKCORE_ADDRGOT = 17 +const R_CKCORE_ADDRGOT_HI16 = 36 +const R_CKCORE_ADDRGOT_LO16 = 37 +const R_CKCORE_ADDRPLT = 18 +const R_CKCORE_ADDRPLT_HI16 = 38 +const R_CKCORE_ADDRPLT_LO16 = 39 +const R_CKCORE_ADDR_HI16 = 24 +const R_CKCORE_ADDR_LO16 = 25 +const R_CKCORE_COPY = 10 +const R_CKCORE_DOFFSET_IMM18 = 44 +const R_CKCORE_DOFFSET_IMM18BY2 = 45 +const R_CKCORE_DOFFSET_IMM18BY4 = 46 +const R_CKCORE_DOFFSET_LO16 = 42 +const R_CKCORE_GLOB_DAT = 11 +const R_CKCORE_GOT12 = 30 +const R_CKCORE_GOT32 = 15 +const R_CKCORE_GOTOFF = 13 +const R_CKCORE_GOTOFF_HI16 = 28 +const R_CKCORE_GOTOFF_LO16 = 29 +const R_CKCORE_GOTPC = 14 +const R_CKCORE_GOTPC_HI16 = 26 +const R_CKCORE_GOTPC_LO16 = 27 +const R_CKCORE_GOT_HI16 = 31 +const R_CKCORE_GOT_IMM18BY4 = 48 +const R_CKCORE_GOT_LO16 = 32 +const R_CKCORE_JUMP_SLOT = 12 +const R_CKCORE_NONE = 0 +const R_CKCORE_PCREL32 = 5 +const R_CKCORE_PCRELIMM11BY2 = 3 +const R_CKCORE_PCRELIMM8BY4 = 2 +const R_CKCORE_PCRELJSR_IMM11BY2 = 6 +const R_CKCORE_PCREL_IMM10BY2 = 22 +const R_CKCORE_PCREL_IMM10BY4 = 23 +const R_CKCORE_PCREL_IMM16BY2 = 20 +const R_CKCORE_PCREL_IMM16BY4 = 21 +const R_CKCORE_PCREL_IMM18BY2 = 43 +const R_CKCORE_PCREL_IMM26BY2 = 19 +const R_CKCORE_PCREL_IMM7BY4 = 50 +const R_CKCORE_PCREL_JSR_IMM26BY2 = 40 +const R_CKCORE_PLT12 = 33 +const R_CKCORE_PLT32 = 16 +const R_CKCORE_PLT_HI16 = 34 +const R_CKCORE_PLT_IMM18BY4 = 49 +const R_CKCORE_PLT_LO16 = 35 +const R_CKCORE_RELATIVE = 9 +const R_CKCORE_TLS_DTPMOD32 = 56 +const R_CKCORE_TLS_DTPOFF32 = 57 +const R_CKCORE_TLS_GD32 = 53 +const R_CKCORE_TLS_IE32 = 52 +const R_CKCORE_TLS_LDM32 = 54 +const R_CKCORE_TLS_LDO32 = 55 +const R_CKCORE_TLS_LE32 = 51 +const R_CKCORE_TLS_TPOFF32 = 58 +const R_CKCORE_TOFFSET_LO16 = 41 +const R_CRIS_16 = 2 +const R_CRIS_16_GOT = 13 +const R_CRIS_16_GOTPLT = 15 +const R_CRIS_16_PCREL = 5 +const R_CRIS_32 = 3 +const R_CRIS_32_GOT = 14 +const R_CRIS_32_GOTPLT = 16 +const R_CRIS_32_GOTREL = 17 +const R_CRIS_32_PCREL = 6 +const R_CRIS_32_PLT_GOTREL = 18 +const R_CRIS_32_PLT_PCREL = 19 +const R_CRIS_8 = 1 +const R_CRIS_8_PCREL = 4 +const R_CRIS_COPY = 9 +const R_CRIS_GLOB_DAT = 10 +const R_CRIS_GNU_VTENTRY = 8 +const R_CRIS_GNU_VTINHERIT = 7 +const R_CRIS_JUMP_SLOT = 11 +const R_CRIS_NONE = 0 +const R_CRIS_NUM = 20 +const R_CRIS_RELATIVE = 12 +const R_IA64_COPY = 132 +const R_IA64_DIR32LSB = 37 +const R_IA64_DIR32MSB = 36 +const R_IA64_DIR64LSB = 39 +const R_IA64_DIR64MSB = 38 +const R_IA64_DTPMOD64LSB = 167 +const R_IA64_DTPMOD64MSB = 166 +const R_IA64_DTPREL14 = 177 +const R_IA64_DTPREL22 = 178 +const R_IA64_DTPREL32LSB = 181 +const R_IA64_DTPREL32MSB = 180 +const R_IA64_DTPREL64I = 179 +const R_IA64_DTPREL64LSB = 183 +const R_IA64_DTPREL64MSB = 182 +const R_IA64_FPTR32LSB = 69 +const R_IA64_FPTR32MSB = 68 +const R_IA64_FPTR64I = 67 +const R_IA64_FPTR64LSB = 71 +const R_IA64_FPTR64MSB = 70 +const R_IA64_GPREL22 = 42 +const R_IA64_GPREL32LSB = 45 +const R_IA64_GPREL32MSB = 44 +const R_IA64_GPREL64I = 43 +const R_IA64_GPREL64LSB = 47 +const R_IA64_GPREL64MSB = 46 +const R_IA64_IMM14 = 33 +const R_IA64_IMM22 = 34 +const R_IA64_IMM64 = 35 +const R_IA64_IPLTLSB = 129 +const R_IA64_IPLTMSB = 128 +const R_IA64_LDXMOV = 135 +const R_IA64_LTOFF22 = 50 +const R_IA64_LTOFF22X = 134 +const R_IA64_LTOFF64I = 51 +const R_IA64_LTOFF_DTPMOD22 = 170 +const R_IA64_LTOFF_DTPREL22 = 186 +const R_IA64_LTOFF_FPTR22 = 82 +const R_IA64_LTOFF_FPTR32LSB = 85 +const R_IA64_LTOFF_FPTR32MSB = 84 +const R_IA64_LTOFF_FPTR64I = 83 +const R_IA64_LTOFF_FPTR64LSB = 87 +const R_IA64_LTOFF_FPTR64MSB = 86 +const R_IA64_LTOFF_TPREL22 = 154 +const R_IA64_LTV32LSB = 117 +const R_IA64_LTV32MSB = 116 +const R_IA64_LTV64LSB = 119 +const R_IA64_LTV64MSB = 118 +const R_IA64_NONE = 0 +const R_IA64_PCREL21B = 73 +const R_IA64_PCREL21BI = 121 +const R_IA64_PCREL21F = 75 +const R_IA64_PCREL21M = 74 +const R_IA64_PCREL22 = 122 +const R_IA64_PCREL32LSB = 77 +const R_IA64_PCREL32MSB = 76 +const R_IA64_PCREL60B = 72 +const R_IA64_PCREL64I = 123 +const R_IA64_PCREL64LSB = 79 +const R_IA64_PCREL64MSB = 78 +const R_IA64_PLTOFF22 = 58 +const R_IA64_PLTOFF64I = 59 +const R_IA64_PLTOFF64LSB = 63 +const R_IA64_PLTOFF64MSB = 62 +const R_IA64_REL32LSB = 109 +const R_IA64_REL32MSB = 108 +const R_IA64_REL64LSB = 111 +const R_IA64_REL64MSB = 110 +const R_IA64_SECREL32LSB = 101 +const R_IA64_SECREL32MSB = 100 +const R_IA64_SECREL64LSB = 103 +const R_IA64_SECREL64MSB = 102 +const R_IA64_SEGREL32LSB = 93 +const R_IA64_SEGREL32MSB = 92 +const R_IA64_SEGREL64LSB = 95 +const R_IA64_SEGREL64MSB = 94 +const R_IA64_SUB = 133 +const R_IA64_TPREL14 = 145 +const R_IA64_TPREL22 = 146 +const R_IA64_TPREL64I = 147 +const R_IA64_TPREL64LSB = 151 +const R_IA64_TPREL64MSB = 150 +const R_LARCH_32 = 1 +const R_LARCH_32_PCREL = 99 +const R_LARCH_64 = 2 +const R_LARCH_ABS64_HI12 = 70 +const R_LARCH_ABS64_LO20 = 69 +const R_LARCH_ABS_HI20 = 67 +const R_LARCH_ABS_LO12 = 68 +const R_LARCH_ADD16 = 48 +const R_LARCH_ADD24 = 49 +const R_LARCH_ADD32 = 50 +const R_LARCH_ADD64 = 51 +const R_LARCH_ADD8 = 47 +const R_LARCH_B16 = 64 +const R_LARCH_B21 = 65 +const R_LARCH_B26 = 66 +const R_LARCH_COPY = 4 +const R_LARCH_GNU_VTENTRY = 58 +const R_LARCH_GNU_VTINHERIT = 57 +const R_LARCH_GOT64_HI12 = 82 +const R_LARCH_GOT64_LO20 = 81 +const R_LARCH_GOT64_PC_HI12 = 78 +const R_LARCH_GOT64_PC_LO20 = 77 +const R_LARCH_GOT_HI20 = 79 +const R_LARCH_GOT_LO12 = 80 +const R_LARCH_GOT_PC_HI20 = 75 +const R_LARCH_GOT_PC_LO12 = 76 +const R_LARCH_IRELATIVE = 12 +const R_LARCH_JUMP_SLOT = 5 +const R_LARCH_MARK_LA = 20 +const R_LARCH_MARK_PCREL = 21 +const R_LARCH_NONE = 0 +const R_LARCH_PCALA64_HI12 = 74 +const R_LARCH_PCALA64_LO20 = 73 +const R_LARCH_PCALA_HI20 = 71 +const R_LARCH_PCALA_LO12 = 72 +const R_LARCH_RELATIVE = 3 +const R_LARCH_RELAX = 100 +const R_LARCH_SOP_ADD = 35 +const R_LARCH_SOP_AND = 36 +const R_LARCH_SOP_ASSERT = 30 +const R_LARCH_SOP_IF_ELSE = 37 +const R_LARCH_SOP_NOT = 31 +const R_LARCH_SOP_POP_32_S_0_10_10_16_S2 = 45 +const R_LARCH_SOP_POP_32_S_0_5_10_16_S2 = 44 +const R_LARCH_SOP_POP_32_S_10_12 = 40 +const R_LARCH_SOP_POP_32_S_10_16 = 41 +const R_LARCH_SOP_POP_32_S_10_16_S2 = 42 +const R_LARCH_SOP_POP_32_S_10_5 = 38 +const R_LARCH_SOP_POP_32_S_5_20 = 43 +const R_LARCH_SOP_POP_32_U = 46 +const R_LARCH_SOP_POP_32_U_10_12 = 39 +const R_LARCH_SOP_PUSH_ABSOLUTE = 23 +const R_LARCH_SOP_PUSH_DUP = 24 +const R_LARCH_SOP_PUSH_GPREL = 25 +const R_LARCH_SOP_PUSH_PCREL = 22 +const R_LARCH_SOP_PUSH_PLT_PCREL = 29 +const R_LARCH_SOP_PUSH_TLS_GD = 28 +const R_LARCH_SOP_PUSH_TLS_GOT = 27 +const R_LARCH_SOP_PUSH_TLS_TPREL = 26 +const R_LARCH_SOP_SL = 33 +const R_LARCH_SOP_SR = 34 +const R_LARCH_SOP_SUB = 32 +const R_LARCH_SUB16 = 53 +const R_LARCH_SUB24 = 54 +const R_LARCH_SUB32 = 55 +const R_LARCH_SUB64 = 56 +const R_LARCH_SUB8 = 52 +const R_LARCH_TLS_DTPMOD32 = 6 +const R_LARCH_TLS_DTPMOD64 = 7 +const R_LARCH_TLS_DTPREL32 = 8 +const R_LARCH_TLS_DTPREL64 = 9 +const R_LARCH_TLS_GD_HI20 = 98 +const R_LARCH_TLS_GD_PC_HI20 = 97 +const R_LARCH_TLS_IE64_HI12 = 94 +const R_LARCH_TLS_IE64_LO20 = 93 +const R_LARCH_TLS_IE64_PC_HI12 = 90 +const R_LARCH_TLS_IE64_PC_LO20 = 89 +const R_LARCH_TLS_IE_HI20 = 91 +const R_LARCH_TLS_IE_LO12 = 92 +const R_LARCH_TLS_IE_PC_HI20 = 87 +const R_LARCH_TLS_IE_PC_LO12 = 88 +const R_LARCH_TLS_LD_HI20 = 96 +const R_LARCH_TLS_LD_PC_HI20 = 95 +const R_LARCH_TLS_LE64_HI12 = 86 +const R_LARCH_TLS_LE64_LO20 = 85 +const R_LARCH_TLS_LE_HI20 = 83 +const R_LARCH_TLS_LE_LO12 = 84 +const R_LARCH_TLS_TPREL32 = 10 +const R_LARCH_TLS_TPREL64 = 11 +const R_M32R_10_PCREL = 4 +const R_M32R_10_PCREL_RELA = 36 +const R_M32R_16 = 1 +const R_M32R_16_RELA = 33 +const R_M32R_18_PCREL = 5 +const R_M32R_18_PCREL_RELA = 37 +const R_M32R_24 = 3 +const R_M32R_24_RELA = 35 +const R_M32R_26_PCREL = 6 +const R_M32R_26_PCREL_RELA = 38 +const R_M32R_26_PLTREL = 49 +const R_M32R_32 = 2 +const R_M32R_32_RELA = 34 +const R_M32R_COPY = 50 +const R_M32R_GLOB_DAT = 51 +const R_M32R_GNU_VTENTRY = 12 +const R_M32R_GNU_VTINHERIT = 11 +const R_M32R_GOT16_HI_SLO = 57 +const R_M32R_GOT16_HI_ULO = 56 +const R_M32R_GOT16_LO = 58 +const R_M32R_GOT24 = 48 +const R_M32R_GOTOFF = 54 +const R_M32R_GOTOFF_HI_SLO = 63 +const R_M32R_GOTOFF_HI_ULO = 62 +const R_M32R_GOTOFF_LO = 64 +const R_M32R_GOTPC24 = 55 +const R_M32R_GOTPC_HI_SLO = 60 +const R_M32R_GOTPC_HI_ULO = 59 +const R_M32R_GOTPC_LO = 61 +const R_M32R_HI16_SLO = 8 +const R_M32R_HI16_SLO_RELA = 40 +const R_M32R_HI16_ULO = 7 +const R_M32R_HI16_ULO_RELA = 39 +const R_M32R_JMP_SLOT = 52 +const R_M32R_LO16 = 9 +const R_M32R_LO16_RELA = 41 +const R_M32R_NONE = 0 +const R_M32R_NUM = 256 +const R_M32R_REL32 = 45 +const R_M32R_RELATIVE = 53 +const R_M32R_RELA_GNU_VTENTRY = 44 +const R_M32R_RELA_GNU_VTINHERIT = 43 +const R_M32R_SDA16 = 10 +const R_M32R_SDA16_RELA = 42 +const R_MICROBLAZE_32 = 1 +const R_MICROBLAZE_32_LO = 6 +const R_MICROBLAZE_32_PCREL = 2 +const R_MICROBLAZE_32_PCREL_LO = 4 +const R_MICROBLAZE_32_SYM_OP_SYM = 10 +const R_MICROBLAZE_64 = 5 +const R_MICROBLAZE_64_NONE = 9 +const R_MICROBLAZE_64_PCREL = 3 +const R_MICROBLAZE_COPY = 21 +const R_MICROBLAZE_GLOB_DAT = 18 +const R_MICROBLAZE_GNU_VTENTRY = 12 +const R_MICROBLAZE_GNU_VTINHERIT = 11 +const R_MICROBLAZE_GOTOFF_32 = 20 +const R_MICROBLAZE_GOTOFF_64 = 19 +const R_MICROBLAZE_GOTPC_64 = 13 +const R_MICROBLAZE_GOT_64 = 14 +const R_MICROBLAZE_JUMP_SLOT = 17 +const R_MICROBLAZE_NONE = 0 +const R_MICROBLAZE_PLT_64 = 15 +const R_MICROBLAZE_REL = 16 +const R_MICROBLAZE_SRO32 = 7 +const R_MICROBLAZE_SRW32 = 8 +const R_MICROBLAZE_TLS = 22 +const R_MICROBLAZE_TLSDTPMOD32 = 25 +const R_MICROBLAZE_TLSDTPREL32 = 26 +const R_MICROBLAZE_TLSDTPREL64 = 27 +const R_MICROBLAZE_TLSGD = 23 +const R_MICROBLAZE_TLSGOTTPREL32 = 28 +const R_MICROBLAZE_TLSLD = 24 +const R_MICROBLAZE_TLSTPREL32 = 29 +const R_MIPS_16 = 1 +const R_MIPS_26 = 4 +const R_MIPS_32 = 2 +const R_MIPS_64 = 18 +const R_MIPS_ADD_IMMEDIATE = 34 +const R_MIPS_CALL16 = 11 +const R_MIPS_CALL_HI16 = 30 +const R_MIPS_CALL_LO16 = 31 +const R_MIPS_COPY = 126 +const R_MIPS_DELETE = 27 +const R_MIPS_GLOB_DAT = 51 +const R_MIPS_GOT16 = 9 +const R_MIPS_GOT_DISP = 19 +const R_MIPS_GOT_HI16 = 22 +const R_MIPS_GOT_LO16 = 23 +const R_MIPS_GOT_OFST = 21 +const R_MIPS_GOT_PAGE = 20 +const R_MIPS_GPREL16 = 7 +const R_MIPS_GPREL32 = 12 +const R_MIPS_HI16 = 5 +const R_MIPS_HIGHER = 28 +const R_MIPS_HIGHEST = 29 +const R_MIPS_INSERT_A = 25 +const R_MIPS_INSERT_B = 26 +const R_MIPS_JALR = 37 +const R_MIPS_JUMP_SLOT = 127 +const R_MIPS_LITERAL = 8 +const R_MIPS_LO16 = 6 +const R_MIPS_NONE = 0 +const R_MIPS_NUM = 128 +const R_MIPS_PC16 = 10 +const R_MIPS_PJUMP = 35 +const R_MIPS_REL16 = 33 +const R_MIPS_REL32 = 3 +const R_MIPS_RELGOT = 36 +const R_MIPS_SCN_DISP = 32 +const R_MIPS_SHIFT5 = 16 +const R_MIPS_SHIFT6 = 17 +const R_MIPS_SUB = 24 +const R_MIPS_TLS_DTPMOD32 = 38 +const R_MIPS_TLS_DTPMOD64 = 40 +const R_MIPS_TLS_DTPREL32 = 39 +const R_MIPS_TLS_DTPREL64 = 41 +const R_MIPS_TLS_DTPREL_HI16 = 44 +const R_MIPS_TLS_DTPREL_LO16 = 45 +const R_MIPS_TLS_GD = 42 +const R_MIPS_TLS_GOTTPREL = 46 +const R_MIPS_TLS_LDM = 43 +const R_MIPS_TLS_TPREL32 = 47 +const R_MIPS_TLS_TPREL64 = 48 +const R_MIPS_TLS_TPREL_HI16 = 49 +const R_MIPS_TLS_TPREL_LO16 = 50 +const R_MN10300_16 = 2 +const R_MN10300_24 = 9 +const R_MN10300_32 = 1 +const R_MN10300_8 = 3 +const R_MN10300_COPY = 20 +const R_MN10300_GLOB_DAT = 21 +const R_MN10300_GNU_VTENTRY = 8 +const R_MN10300_GNU_VTINHERIT = 7 +const R_MN10300_GOT16 = 19 +const R_MN10300_GOT24 = 18 +const R_MN10300_GOT32 = 17 +const R_MN10300_GOTOFF16 = 14 +const R_MN10300_GOTOFF24 = 13 +const R_MN10300_GOTOFF32 = 12 +const R_MN10300_GOTPC16 = 11 +const R_MN10300_GOTPC32 = 10 +const R_MN10300_JMP_SLOT = 22 +const R_MN10300_NONE = 0 +const R_MN10300_NUM = 24 +const R_MN10300_PCREL16 = 5 +const R_MN10300_PCREL32 = 4 +const R_MN10300_PCREL8 = 6 +const R_MN10300_PLT16 = 16 +const R_MN10300_PLT32 = 15 +const R_MN10300_RELATIVE = 23 +const R_NIOS2_ALIGN = 21 +const R_NIOS2_BFD_RELOC_16 = 13 +const R_NIOS2_BFD_RELOC_32 = 12 +const R_NIOS2_BFD_RELOC_8 = 14 +const R_NIOS2_CACHE_OPX = 6 +const R_NIOS2_CALL16 = 23 +const R_NIOS2_CALL26 = 4 +const R_NIOS2_CALL26_NOAT = 41 +const R_NIOS2_CALLR = 20 +const R_NIOS2_CALL_HA = 45 +const R_NIOS2_CALL_LO = 44 +const R_NIOS2_CJMP = 19 +const R_NIOS2_COPY = 36 +const R_NIOS2_GLOB_DAT = 37 +const R_NIOS2_GNU_VTENTRY = 17 +const R_NIOS2_GNU_VTINHERIT = 16 +const R_NIOS2_GOT16 = 22 +const R_NIOS2_GOTOFF = 40 +const R_NIOS2_GOTOFF_HA = 25 +const R_NIOS2_GOTOFF_LO = 24 +const R_NIOS2_GOT_HA = 43 +const R_NIOS2_GOT_LO = 42 +const R_NIOS2_GPREL = 15 +const R_NIOS2_HI16 = 9 +const R_NIOS2_HIADJ16 = 11 +const R_NIOS2_IMM5 = 5 +const R_NIOS2_IMM6 = 7 +const R_NIOS2_IMM8 = 8 +const R_NIOS2_JUMP_SLOT = 38 +const R_NIOS2_LO16 = 10 +const R_NIOS2_NONE = 0 +const R_NIOS2_PCREL16 = 3 +const R_NIOS2_PCREL_HA = 27 +const R_NIOS2_PCREL_LO = 26 +const R_NIOS2_RELATIVE = 39 +const R_NIOS2_S16 = 1 +const R_NIOS2_TLS_DTPMOD = 33 +const R_NIOS2_TLS_DTPREL = 34 +const R_NIOS2_TLS_GD16 = 28 +const R_NIOS2_TLS_IE16 = 31 +const R_NIOS2_TLS_LDM16 = 29 +const R_NIOS2_TLS_LDO16 = 30 +const R_NIOS2_TLS_LE16 = 32 +const R_NIOS2_TLS_TPREL = 35 +const R_NIOS2_U16 = 2 +const R_NIOS2_UJMP = 18 +const R_OR1K_16 = 2 +const R_OR1K_16_PCREL = 10 +const R_OR1K_32 = 1 +const R_OR1K_32_PCREL = 9 +const R_OR1K_8 = 3 +const R_OR1K_8_PCREL = 11 +const R_OR1K_COPY = 18 +const R_OR1K_GLOB_DAT = 19 +const R_OR1K_GNU_VTENTRY = 7 +const R_OR1K_GNU_VTINHERIT = 8 +const R_OR1K_GOT16 = 14 +const R_OR1K_GOTOFF_HI16 = 16 +const R_OR1K_GOTOFF_LO16 = 17 +const R_OR1K_GOTPC_HI16 = 12 +const R_OR1K_GOTPC_LO16 = 13 +const R_OR1K_HI_16_IN_INSN = 5 +const R_OR1K_INSN_REL_26 = 6 +const R_OR1K_JMP_SLOT = 20 +const R_OR1K_LO_16_IN_INSN = 4 +const R_OR1K_NONE = 0 +const R_OR1K_PLT26 = 15 +const R_OR1K_RELATIVE = 21 +const R_OR1K_TLS_DTPMOD = 34 +const R_OR1K_TLS_DTPOFF = 33 +const R_OR1K_TLS_GD_HI16 = 22 +const R_OR1K_TLS_GD_LO16 = 23 +const R_OR1K_TLS_IE_HI16 = 28 +const R_OR1K_TLS_IE_LO16 = 29 +const R_OR1K_TLS_LDM_HI16 = 24 +const R_OR1K_TLS_LDM_LO16 = 25 +const R_OR1K_TLS_LDO_HI16 = 26 +const R_OR1K_TLS_LDO_LO16 = 27 +const R_OR1K_TLS_LE_HI16 = 30 +const R_OR1K_TLS_LE_LO16 = 31 +const R_OR1K_TLS_TPOFF = 32 +const R_PARISC_COPY = 128 +const R_PARISC_DIR14DR = 84 +const R_PARISC_DIR14R = 6 +const R_PARISC_DIR14WR = 83 +const R_PARISC_DIR16DF = 87 +const R_PARISC_DIR16F = 85 +const R_PARISC_DIR16WF = 86 +const R_PARISC_DIR17F = 4 +const R_PARISC_DIR17R = 3 +const R_PARISC_DIR21L = 2 +const R_PARISC_DIR32 = 1 +const R_PARISC_DIR64 = 80 +const R_PARISC_DPREL14R = 22 +const R_PARISC_DPREL21L = 18 +const R_PARISC_EPLT = 130 +const R_PARISC_FPTR64 = 64 +const R_PARISC_GNU_VTENTRY = 232 +const R_PARISC_GNU_VTINHERIT = 233 +const R_PARISC_GPREL14DR = 92 +const R_PARISC_GPREL14R = 30 +const R_PARISC_GPREL14WR = 91 +const R_PARISC_GPREL16DF = 95 +const R_PARISC_GPREL16F = 93 +const R_PARISC_GPREL16WF = 94 +const R_PARISC_GPREL21L = 26 +const R_PARISC_GPREL64 = 88 +const R_PARISC_HIRESERVE = 255 +const R_PARISC_IPLT = 129 +const R_PARISC_LORESERVE = 128 +const R_PARISC_LTOFF14DR = 100 +const R_PARISC_LTOFF14R = 38 +const R_PARISC_LTOFF14WR = 99 +const R_PARISC_LTOFF16DF = 103 +const R_PARISC_LTOFF16F = 101 +const R_PARISC_LTOFF16WF = 102 +const R_PARISC_LTOFF21L = 34 +const R_PARISC_LTOFF64 = 96 +const R_PARISC_LTOFF_FPTR14DR = 124 +const R_PARISC_LTOFF_FPTR14R = 62 +const R_PARISC_LTOFF_FPTR14WR = 123 +const R_PARISC_LTOFF_FPTR16DF = 127 +const R_PARISC_LTOFF_FPTR16F = 125 +const R_PARISC_LTOFF_FPTR16WF = 126 +const R_PARISC_LTOFF_FPTR21L = 58 +const R_PARISC_LTOFF_FPTR32 = 57 +const R_PARISC_LTOFF_FPTR64 = 120 +const R_PARISC_LTOFF_TP14DR = 228 +const R_PARISC_LTOFF_TP14F = 167 +const R_PARISC_LTOFF_TP14R = 166 +const R_PARISC_LTOFF_TP14WR = 227 +const R_PARISC_LTOFF_TP16DF = 231 +const R_PARISC_LTOFF_TP16F = 229 +const R_PARISC_LTOFF_TP16WF = 230 +const R_PARISC_LTOFF_TP21L = 162 +const R_PARISC_LTOFF_TP64 = 224 +const R_PARISC_NONE = 0 +const R_PARISC_PCREL14DR = 76 +const R_PARISC_PCREL14R = 14 +const R_PARISC_PCREL14WR = 75 +const R_PARISC_PCREL16DF = 79 +const R_PARISC_PCREL16F = 77 +const R_PARISC_PCREL16WF = 78 +const R_PARISC_PCREL17F = 12 +const R_PARISC_PCREL17R = 11 +const R_PARISC_PCREL21L = 10 +const R_PARISC_PCREL22F = 74 +const R_PARISC_PCREL32 = 9 +const R_PARISC_PCREL64 = 72 +const R_PARISC_PLABEL14R = 70 +const R_PARISC_PLABEL21L = 66 +const R_PARISC_PLABEL32 = 65 +const R_PARISC_PLTOFF14DR = 116 +const R_PARISC_PLTOFF14R = 54 +const R_PARISC_PLTOFF14WR = 115 +const R_PARISC_PLTOFF16DF = 119 +const R_PARISC_PLTOFF16F = 117 +const R_PARISC_PLTOFF16WF = 118 +const R_PARISC_PLTOFF21L = 50 +const R_PARISC_SECREL32 = 41 +const R_PARISC_SECREL64 = 104 +const R_PARISC_SEGBASE = 48 +const R_PARISC_SEGREL32 = 49 +const R_PARISC_SEGREL64 = 112 +const R_PARISC_TLS_DTPMOD32 = 242 +const R_PARISC_TLS_DTPMOD64 = 243 +const R_PARISC_TLS_DTPOFF32 = 244 +const R_PARISC_TLS_DTPOFF64 = 245 +const R_PARISC_TLS_GD14R = 235 +const R_PARISC_TLS_GD21L = 234 +const R_PARISC_TLS_GDCALL = 236 +const R_PARISC_TLS_IE14R = 166 +const R_PARISC_TLS_IE21L = 162 +const R_PARISC_TLS_LDM14R = 238 +const R_PARISC_TLS_LDM21L = 237 +const R_PARISC_TLS_LDMCALL = 239 +const R_PARISC_TLS_LDO14R = 241 +const R_PARISC_TLS_LDO21L = 240 +const R_PARISC_TLS_LE14R = 158 +const R_PARISC_TLS_LE21L = 154 +const R_PARISC_TLS_TPREL32 = 153 +const R_PARISC_TLS_TPREL64 = 216 +const R_PARISC_TPREL14DR = 220 +const R_PARISC_TPREL14R = 158 +const R_PARISC_TPREL14WR = 219 +const R_PARISC_TPREL16DF = 223 +const R_PARISC_TPREL16F = 221 +const R_PARISC_TPREL16WF = 222 +const R_PARISC_TPREL21L = 154 +const R_PARISC_TPREL32 = 153 +const R_PARISC_TPREL64 = 216 +const R_PPC64_ADDR14 = 7 +const R_PPC64_ADDR14_BRNTAKEN = 9 +const R_PPC64_ADDR14_BRTAKEN = 8 +const R_PPC64_ADDR16 = 3 +const R_PPC64_ADDR16_DS = 56 +const R_PPC64_ADDR16_HA = 6 +const R_PPC64_ADDR16_HI = 5 +const R_PPC64_ADDR16_HIGH = 110 +const R_PPC64_ADDR16_HIGHA = 111 +const R_PPC64_ADDR16_HIGHER = 39 +const R_PPC64_ADDR16_HIGHERA = 40 +const R_PPC64_ADDR16_HIGHEST = 41 +const R_PPC64_ADDR16_HIGHESTA = 42 +const R_PPC64_ADDR16_LO = 4 +const R_PPC64_ADDR16_LO_DS = 57 +const R_PPC64_ADDR24 = 2 +const R_PPC64_ADDR30 = 37 +const R_PPC64_ADDR32 = 1 +const R_PPC64_ADDR64 = 38 +const R_PPC64_COPY = 19 +const R_PPC64_DTPMOD64 = 68 +const R_PPC64_DTPREL16 = 74 +const R_PPC64_DTPREL16_DS = 101 +const R_PPC64_DTPREL16_HA = 77 +const R_PPC64_DTPREL16_HI = 76 +const R_PPC64_DTPREL16_HIGH = 114 +const R_PPC64_DTPREL16_HIGHA = 115 +const R_PPC64_DTPREL16_HIGHER = 103 +const R_PPC64_DTPREL16_HIGHERA = 104 +const R_PPC64_DTPREL16_HIGHEST = 105 +const R_PPC64_DTPREL16_HIGHESTA = 106 +const R_PPC64_DTPREL16_LO = 75 +const R_PPC64_DTPREL16_LO_DS = 102 +const R_PPC64_DTPREL64 = 78 +const R_PPC64_GLOB_DAT = 20 +const R_PPC64_GOT16 = 14 +const R_PPC64_GOT16_DS = 58 +const R_PPC64_GOT16_HA = 17 +const R_PPC64_GOT16_HI = 16 +const R_PPC64_GOT16_LO = 15 +const R_PPC64_GOT16_LO_DS = 59 +const R_PPC64_GOT_DTPREL16_DS = 91 +const R_PPC64_GOT_DTPREL16_HA = 94 +const R_PPC64_GOT_DTPREL16_HI = 93 +const R_PPC64_GOT_DTPREL16_LO_DS = 92 +const R_PPC64_GOT_TLSGD16 = 79 +const R_PPC64_GOT_TLSGD16_HA = 82 +const R_PPC64_GOT_TLSGD16_HI = 81 +const R_PPC64_GOT_TLSGD16_LO = 80 +const R_PPC64_GOT_TLSLD16 = 83 +const R_PPC64_GOT_TLSLD16_HA = 86 +const R_PPC64_GOT_TLSLD16_HI = 85 +const R_PPC64_GOT_TLSLD16_LO = 84 +const R_PPC64_GOT_TPREL16_DS = 87 +const R_PPC64_GOT_TPREL16_HA = 90 +const R_PPC64_GOT_TPREL16_HI = 89 +const R_PPC64_GOT_TPREL16_LO_DS = 88 +const R_PPC64_IRELATIVE = 248 +const R_PPC64_JMP_IREL = 247 +const R_PPC64_JMP_SLOT = 21 +const R_PPC64_NONE = 0 +const R_PPC64_PLT16_HA = 31 +const R_PPC64_PLT16_HI = 30 +const R_PPC64_PLT16_LO = 29 +const R_PPC64_PLT16_LO_DS = 60 +const R_PPC64_PLT32 = 27 +const R_PPC64_PLT64 = 45 +const R_PPC64_PLTGOT16 = 52 +const R_PPC64_PLTGOT16_DS = 65 +const R_PPC64_PLTGOT16_HA = 55 +const R_PPC64_PLTGOT16_HI = 54 +const R_PPC64_PLTGOT16_LO = 53 +const R_PPC64_PLTGOT16_LO_DS = 66 +const R_PPC64_PLTREL32 = 28 +const R_PPC64_PLTREL64 = 46 +const R_PPC64_REL14 = 11 +const R_PPC64_REL14_BRNTAKEN = 13 +const R_PPC64_REL14_BRTAKEN = 12 +const R_PPC64_REL16 = 249 +const R_PPC64_REL16_HA = 252 +const R_PPC64_REL16_HI = 251 +const R_PPC64_REL16_LO = 250 +const R_PPC64_REL24 = 10 +const R_PPC64_REL32 = 26 +const R_PPC64_REL64 = 44 +const R_PPC64_RELATIVE = 22 +const R_PPC64_SECTOFF = 33 +const R_PPC64_SECTOFF_DS = 61 +const R_PPC64_SECTOFF_HA = 36 +const R_PPC64_SECTOFF_HI = 35 +const R_PPC64_SECTOFF_LO = 34 +const R_PPC64_SECTOFF_LO_DS = 62 +const R_PPC64_TLS = 67 +const R_PPC64_TLSGD = 107 +const R_PPC64_TLSLD = 108 +const R_PPC64_TOC = 51 +const R_PPC64_TOC16 = 47 +const R_PPC64_TOC16_DS = 63 +const R_PPC64_TOC16_HA = 50 +const R_PPC64_TOC16_HI = 49 +const R_PPC64_TOC16_LO = 48 +const R_PPC64_TOC16_LO_DS = 64 +const R_PPC64_TOCSAVE = 109 +const R_PPC64_TPREL16 = 69 +const R_PPC64_TPREL16_DS = 95 +const R_PPC64_TPREL16_HA = 72 +const R_PPC64_TPREL16_HI = 71 +const R_PPC64_TPREL16_HIGH = 112 +const R_PPC64_TPREL16_HIGHA = 113 +const R_PPC64_TPREL16_HIGHER = 97 +const R_PPC64_TPREL16_HIGHERA = 98 +const R_PPC64_TPREL16_HIGHEST = 99 +const R_PPC64_TPREL16_HIGHESTA = 100 +const R_PPC64_TPREL16_LO = 70 +const R_PPC64_TPREL16_LO_DS = 96 +const R_PPC64_TPREL64 = 73 +const R_PPC64_UADDR16 = 25 +const R_PPC64_UADDR32 = 24 +const R_PPC64_UADDR64 = 43 +const R_PPC_ADDR14 = 7 +const R_PPC_ADDR14_BRNTAKEN = 9 +const R_PPC_ADDR14_BRTAKEN = 8 +const R_PPC_ADDR16 = 3 +const R_PPC_ADDR16_HA = 6 +const R_PPC_ADDR16_HI = 5 +const R_PPC_ADDR16_LO = 4 +const R_PPC_ADDR24 = 2 +const R_PPC_ADDR32 = 1 +const R_PPC_COPY = 19 +const R_PPC_DIAB_RELSDA_HA = 185 +const R_PPC_DIAB_RELSDA_HI = 184 +const R_PPC_DIAB_RELSDA_LO = 183 +const R_PPC_DIAB_SDA21_HA = 182 +const R_PPC_DIAB_SDA21_HI = 181 +const R_PPC_DIAB_SDA21_LO = 180 +const R_PPC_DTPMOD32 = 68 +const R_PPC_DTPREL16 = 74 +const R_PPC_DTPREL16_HA = 77 +const R_PPC_DTPREL16_HI = 76 +const R_PPC_DTPREL16_LO = 75 +const R_PPC_DTPREL32 = 78 +const R_PPC_EMB_BIT_FLD = 115 +const R_PPC_EMB_MRKREF = 110 +const R_PPC_EMB_NADDR16 = 102 +const R_PPC_EMB_NADDR16_HA = 105 +const R_PPC_EMB_NADDR16_HI = 104 +const R_PPC_EMB_NADDR16_LO = 103 +const R_PPC_EMB_NADDR32 = 101 +const R_PPC_EMB_RELSDA = 116 +const R_PPC_EMB_RELSEC16 = 111 +const R_PPC_EMB_RELST_HA = 114 +const R_PPC_EMB_RELST_HI = 113 +const R_PPC_EMB_RELST_LO = 112 +const R_PPC_EMB_SDA21 = 109 +const R_PPC_EMB_SDA2I16 = 107 +const R_PPC_EMB_SDA2REL = 108 +const R_PPC_EMB_SDAI16 = 106 +const R_PPC_GLOB_DAT = 20 +const R_PPC_GOT16 = 14 +const R_PPC_GOT16_HA = 17 +const R_PPC_GOT16_HI = 16 +const R_PPC_GOT16_LO = 15 +const R_PPC_GOT_DTPREL16 = 91 +const R_PPC_GOT_DTPREL16_HA = 94 +const R_PPC_GOT_DTPREL16_HI = 93 +const R_PPC_GOT_DTPREL16_LO = 92 +const R_PPC_GOT_TLSGD16 = 79 +const R_PPC_GOT_TLSGD16_HA = 82 +const R_PPC_GOT_TLSGD16_HI = 81 +const R_PPC_GOT_TLSGD16_LO = 80 +const R_PPC_GOT_TLSLD16 = 83 +const R_PPC_GOT_TLSLD16_HA = 86 +const R_PPC_GOT_TLSLD16_HI = 85 +const R_PPC_GOT_TLSLD16_LO = 84 +const R_PPC_GOT_TPREL16 = 87 +const R_PPC_GOT_TPREL16_HA = 90 +const R_PPC_GOT_TPREL16_HI = 89 +const R_PPC_GOT_TPREL16_LO = 88 +const R_PPC_IRELATIVE = 248 +const R_PPC_JMP_SLOT = 21 +const R_PPC_LOCAL24PC = 23 +const R_PPC_NONE = 0 +const R_PPC_PLT16_HA = 31 +const R_PPC_PLT16_HI = 30 +const R_PPC_PLT16_LO = 29 +const R_PPC_PLT32 = 27 +const R_PPC_PLTREL24 = 18 +const R_PPC_PLTREL32 = 28 +const R_PPC_REL14 = 11 +const R_PPC_REL14_BRNTAKEN = 13 +const R_PPC_REL14_BRTAKEN = 12 +const R_PPC_REL16 = 249 +const R_PPC_REL16_HA = 252 +const R_PPC_REL16_HI = 251 +const R_PPC_REL16_LO = 250 +const R_PPC_REL24 = 10 +const R_PPC_REL32 = 26 +const R_PPC_RELATIVE = 22 +const R_PPC_SDAREL16 = 32 +const R_PPC_SECTOFF = 33 +const R_PPC_SECTOFF_HA = 36 +const R_PPC_SECTOFF_HI = 35 +const R_PPC_SECTOFF_LO = 34 +const R_PPC_TLS = 67 +const R_PPC_TLSGD = 95 +const R_PPC_TLSLD = 96 +const R_PPC_TOC16 = 255 +const R_PPC_TPREL16 = 69 +const R_PPC_TPREL16_HA = 72 +const R_PPC_TPREL16_HI = 71 +const R_PPC_TPREL16_LO = 70 +const R_PPC_TPREL32 = 73 +const R_PPC_UADDR16 = 25 +const R_PPC_UADDR32 = 24 +const R_RISCV_32 = 1 +const R_RISCV_32_PCREL = 57 +const R_RISCV_64 = 2 +const R_RISCV_ADD16 = 34 +const R_RISCV_ADD32 = 35 +const R_RISCV_ADD64 = 36 +const R_RISCV_ADD8 = 33 +const R_RISCV_ALIGN = 43 +const R_RISCV_BRANCH = 16 +const R_RISCV_CALL = 18 +const R_RISCV_CALL_PLT = 19 +const R_RISCV_COPY = 4 +const R_RISCV_GOT32_PCREL = 41 +const R_RISCV_GOT_HI20 = 20 +const R_RISCV_HI20 = 26 +const R_RISCV_IRELATIVE = 58 +const R_RISCV_JAL = 17 +const R_RISCV_JUMP_SLOT = 5 +const R_RISCV_LO12_I = 27 +const R_RISCV_LO12_S = 28 +const R_RISCV_NONE = 0 +const R_RISCV_PCREL_HI20 = 23 +const R_RISCV_PCREL_LO12_I = 24 +const R_RISCV_PCREL_LO12_S = 25 +const R_RISCV_PLT32 = 59 +const R_RISCV_RELATIVE = 3 +const R_RISCV_RELAX = 51 +const R_RISCV_RVC_BRANCH = 44 +const R_RISCV_RVC_JUMP = 45 +const R_RISCV_RVC_LUI = 46 +const R_RISCV_SET16 = 55 +const R_RISCV_SET32 = 56 +const R_RISCV_SET6 = 53 +const R_RISCV_SET8 = 54 +const R_RISCV_SET_ULEB128 = 60 +const R_RISCV_SUB16 = 38 +const R_RISCV_SUB32 = 39 +const R_RISCV_SUB6 = 52 +const R_RISCV_SUB64 = 40 +const R_RISCV_SUB8 = 37 +const R_RISCV_SUB_ULEB128 = 61 +const R_RISCV_TLSDESC = 12 +const R_RISCV_TLSDESC_ADD_LO12 = 64 +const R_RISCV_TLSDESC_CALL = 65 +const R_RISCV_TLSDESC_HI20 = 62 +const R_RISCV_TLSDESC_LOAD_LO12 = 63 +const R_RISCV_TLS_DTPMOD32 = 6 +const R_RISCV_TLS_DTPMOD64 = 7 +const R_RISCV_TLS_DTPREL32 = 8 +const R_RISCV_TLS_DTPREL64 = 9 +const R_RISCV_TLS_GD_HI20 = 22 +const R_RISCV_TLS_GOT_HI20 = 21 +const R_RISCV_TLS_TPREL32 = 10 +const R_RISCV_TLS_TPREL64 = 11 +const R_RISCV_TPREL_ADD = 32 +const R_RISCV_TPREL_HI20 = 29 +const R_RISCV_TPREL_LO12_I = 30 +const R_RISCV_TPREL_LO12_S = 31 +const R_SH_ALIGN = 29 +const R_SH_CODE = 30 +const R_SH_COPY = 162 +const R_SH_COUNT = 28 +const R_SH_DATA = 31 +const R_SH_DIR32 = 1 +const R_SH_DIR8BP = 7 +const R_SH_DIR8L = 9 +const R_SH_DIR8W = 8 +const R_SH_DIR8WPL = 5 +const R_SH_DIR8WPN = 3 +const R_SH_DIR8WPZ = 6 +const R_SH_FUNCDESC = 207 +const R_SH_FUNCDESC_VALUE = 208 +const R_SH_GLOB_DAT = 163 +const R_SH_GNU_VTENTRY = 35 +const R_SH_GNU_VTINHERIT = 34 +const R_SH_GOT20 = 201 +const R_SH_GOT32 = 160 +const R_SH_GOTFUNCDESC = 203 +const R_SH_GOTFUNCDEST20 = 204 +const R_SH_GOTOFF = 166 +const R_SH_GOTOFF20 = 202 +const R_SH_GOTOFFFUNCDESC = 205 +const R_SH_GOTOFFFUNCDEST20 = 206 +const R_SH_GOTPC = 167 +const R_SH_IND12W = 4 +const R_SH_JMP_SLOT = 164 +const R_SH_LABEL = 32 +const R_SH_NONE = 0 +const R_SH_NUM = 256 +const R_SH_PLT32 = 161 +const R_SH_REL32 = 2 +const R_SH_RELATIVE = 165 +const R_SH_SWITCH16 = 25 +const R_SH_SWITCH32 = 26 +const R_SH_SWITCH8 = 33 +const R_SH_TLS_DTPMOD32 = 149 +const R_SH_TLS_DTPOFF32 = 150 +const R_SH_TLS_GD_32 = 144 +const R_SH_TLS_IE_32 = 147 +const R_SH_TLS_LDO_32 = 146 +const R_SH_TLS_LD_32 = 145 +const R_SH_TLS_LE_32 = 148 +const R_SH_TLS_TPOFF32 = 151 +const R_SH_USES = 27 +const R_SPARC_10 = 30 +const R_SPARC_11 = 31 +const R_SPARC_13 = 11 +const R_SPARC_16 = 2 +const R_SPARC_22 = 10 +const R_SPARC_32 = 3 +const R_SPARC_5 = 44 +const R_SPARC_6 = 45 +const R_SPARC_64 = 32 +const R_SPARC_7 = 43 +const R_SPARC_8 = 1 +const R_SPARC_COPY = 19 +const R_SPARC_DISP16 = 5 +const R_SPARC_DISP32 = 6 +const R_SPARC_DISP64 = 46 +const R_SPARC_DISP8 = 4 +const R_SPARC_GLOB_DAT = 20 +const R_SPARC_GLOB_JMP = 42 +const R_SPARC_GNU_VTENTRY = 251 +const R_SPARC_GNU_VTINHERIT = 250 +const R_SPARC_GOT10 = 13 +const R_SPARC_GOT13 = 14 +const R_SPARC_GOT22 = 15 +const R_SPARC_GOTDATA_HIX22 = 80 +const R_SPARC_GOTDATA_LOX10 = 81 +const R_SPARC_GOTDATA_OP = 84 +const R_SPARC_GOTDATA_OP_HIX22 = 82 +const R_SPARC_GOTDATA_OP_LOX10 = 83 +const R_SPARC_H34 = 85 +const R_SPARC_H44 = 50 +const R_SPARC_HH22 = 34 +const R_SPARC_HI22 = 9 +const R_SPARC_HIPLT22 = 25 +const R_SPARC_HIX22 = 48 +const R_SPARC_HM10 = 35 +const R_SPARC_JMP_SLOT = 21 +const R_SPARC_L44 = 52 +const R_SPARC_LM22 = 36 +const R_SPARC_LO10 = 12 +const R_SPARC_LOPLT10 = 26 +const R_SPARC_LOX10 = 49 +const R_SPARC_M44 = 51 +const R_SPARC_NONE = 0 +const R_SPARC_NUM = 253 +const R_SPARC_OLO10 = 33 +const R_SPARC_PC10 = 16 +const R_SPARC_PC22 = 17 +const R_SPARC_PCPLT10 = 29 +const R_SPARC_PCPLT22 = 28 +const R_SPARC_PCPLT32 = 27 +const R_SPARC_PC_HH22 = 37 +const R_SPARC_PC_HM10 = 38 +const R_SPARC_PC_LM22 = 39 +const R_SPARC_PLT32 = 24 +const R_SPARC_PLT64 = 47 +const R_SPARC_REGISTER = 53 +const R_SPARC_RELATIVE = 22 +const R_SPARC_REV32 = 252 +const R_SPARC_SIZE32 = 86 +const R_SPARC_SIZE64 = 87 +const R_SPARC_TLS_DTPMOD32 = 74 +const R_SPARC_TLS_DTPMOD64 = 75 +const R_SPARC_TLS_DTPOFF32 = 76 +const R_SPARC_TLS_DTPOFF64 = 77 +const R_SPARC_TLS_GD_ADD = 58 +const R_SPARC_TLS_GD_CALL = 59 +const R_SPARC_TLS_GD_HI22 = 56 +const R_SPARC_TLS_GD_LO10 = 57 +const R_SPARC_TLS_IE_ADD = 71 +const R_SPARC_TLS_IE_HI22 = 67 +const R_SPARC_TLS_IE_LD = 69 +const R_SPARC_TLS_IE_LDX = 70 +const R_SPARC_TLS_IE_LO10 = 68 +const R_SPARC_TLS_LDM_ADD = 62 +const R_SPARC_TLS_LDM_CALL = 63 +const R_SPARC_TLS_LDM_HI22 = 60 +const R_SPARC_TLS_LDM_LO10 = 61 +const R_SPARC_TLS_LDO_ADD = 66 +const R_SPARC_TLS_LDO_HIX22 = 64 +const R_SPARC_TLS_LDO_LOX10 = 65 +const R_SPARC_TLS_LE_HIX22 = 72 +const R_SPARC_TLS_LE_LOX10 = 73 +const R_SPARC_TLS_TPOFF32 = 78 +const R_SPARC_TLS_TPOFF64 = 79 +const R_SPARC_UA16 = 55 +const R_SPARC_UA32 = 23 +const R_SPARC_UA64 = 54 +const R_SPARC_WDISP16 = 40 +const R_SPARC_WDISP19 = 41 +const R_SPARC_WDISP22 = 8 +const R_SPARC_WDISP30 = 7 +const R_SPARC_WPLT30 = 18 +const R_X86_64_16 = 12 +const R_X86_64_32 = 10 +const R_X86_64_32S = 11 +const R_X86_64_64 = 1 +const R_X86_64_8 = 14 +const R_X86_64_COPY = 5 +const R_X86_64_DTPMOD64 = 16 +const R_X86_64_DTPOFF32 = 21 +const R_X86_64_DTPOFF64 = 17 +const R_X86_64_GLOB_DAT = 6 +const R_X86_64_GOT32 = 3 +const R_X86_64_GOT64 = 27 +const R_X86_64_GOTOFF64 = 25 +const R_X86_64_GOTPC32 = 26 +const R_X86_64_GOTPC32_TLSDESC = 34 +const R_X86_64_GOTPC64 = 29 +const R_X86_64_GOTPCREL = 9 +const R_X86_64_GOTPCREL64 = 28 +const R_X86_64_GOTPCRELX = 41 +const R_X86_64_GOTPLT64 = 30 +const R_X86_64_GOTTPOFF = 22 +const R_X86_64_IRELATIVE = 37 +const R_X86_64_JUMP_SLOT = 7 +const R_X86_64_NONE = 0 +const R_X86_64_NUM = 43 +const R_X86_64_PC16 = 13 +const R_X86_64_PC32 = 2 +const R_X86_64_PC64 = 24 +const R_X86_64_PC8 = 15 +const R_X86_64_PLT32 = 4 +const R_X86_64_PLTOFF64 = 31 +const R_X86_64_RELATIVE = 8 +const R_X86_64_RELATIVE64 = 38 +const R_X86_64_REX_GOTPCRELX = 42 +const R_X86_64_SIZE32 = 32 +const R_X86_64_SIZE64 = 33 +const R_X86_64_TLSDESC = 36 +const R_X86_64_TLSDESC_CALL = 35 +const R_X86_64_TLSGD = 19 +const R_X86_64_TLSLD = 20 +const R_X86_64_TPOFF32 = 23 +const R_X86_64_TPOFF64 = 18 +const SA_EXPOSE_TAGBITS = 2048 +const SA_NOCLDSTOP = 1 +const SA_NOCLDWAIT = 2 +const SA_NODEFER = 1073741824 +const SA_ONSTACK = 134217728 +const SA_RESETHAND = 2147483648 +const SA_RESTART = 268435456 +const SA_SIGINFO = 4 +const SA_UNSUPPORTED = 1024 +const SCM_TIMESTAMPING_OLD = 37 +const SCM_TIMESTAMPNS_OLD = 35 +const SCM_TIMESTAMP_OLD = 29 +const SEGV_ACCERR = 2 +const SEGV_BNDERR = 3 +const SEGV_MAPERR = 1 +const SEGV_MTEAERR = 8 +const SEGV_MTESERR = 9 +const SEGV_PKUERR = 4 +const SELFMAG = 4 +const SHF_ALLOC = 2 +const SHF_ALPHA_GPREL = 268435456 +const SHF_ARM_COMDEF = 2147483648 +const SHF_ARM_ENTRYSECT = 268435456 +const SHF_COMPRESSED = 2048 +const SHF_EXCLUDE = 2147483648 +const SHF_EXECINSTR = 4 +const SHF_GROUP = 512 +const SHF_IA_64_NORECOV = 536870912 +const SHF_IA_64_SHORT = 268435456 +const SHF_INFO_LINK = 64 +const SHF_LINK_ORDER = 128 +const SHF_MASKOS = 267386880 +const SHF_MASKPROC = 4026531840 +const SHF_MERGE = 16 +const SHF_MIPS_ADDR = 1073741824 +const SHF_MIPS_GPREL = 268435456 +const SHF_MIPS_LOCAL = 67108864 +const SHF_MIPS_MERGE = 536870912 +const SHF_MIPS_NAMES = 33554432 +const SHF_MIPS_NODUPE = 16777216 +const SHF_MIPS_NOSTRIP = 134217728 +const SHF_MIPS_STRINGS = 2147483648 +const SHF_ORDERED = 1073741824 +const SHF_OS_NONCONFORMING = 256 +const SHF_PARISC_HUGE = 1073741824 +const SHF_PARISC_SBP = 2147483648 +const SHF_PARISC_SHORT = 536870912 +const SHF_STRINGS = 32 +const SHF_TLS = 1024 +const SHF_WRITE = 1 +const SHN_ABS = 65521 +const SHN_AFTER = 65281 +const SHN_BEFORE = 65280 +const SHN_COMMON = 65522 +const SHN_HIOS = 65343 +const SHN_HIPROC = 65311 +const SHN_HIRESERVE = 65535 +const SHN_LOOS = 65312 +const SHN_LOPROC = 65280 +const SHN_LORESERVE = 65280 +const SHN_MIPS_ACOMMON = 65280 +const SHN_MIPS_DATA = 65282 +const SHN_MIPS_SCOMMON = 65283 +const SHN_MIPS_SUNDEFINED = 65284 +const SHN_MIPS_TEXT = 65281 +const SHN_PARISC_ANSI_COMMON = 65280 +const SHN_PARISC_HUGE_COMMON = 65281 +const SHN_UNDEF = 0 +const SHN_XINDEX = 65535 +const SHT_ALPHA_DEBUG = 1879048193 +const SHT_ALPHA_REGINFO = 1879048194 +const SHT_ARM_ATTRIBUTES = 1879048195 +const SHT_ARM_EXIDX = 1879048193 +const SHT_ARM_PREEMPTMAP = 1879048194 +const SHT_CHECKSUM = 1879048184 +const SHT_DYNAMIC = 6 +const SHT_DYNSYM = 11 +const SHT_FINI_ARRAY = 15 +const SHT_GNU_ATTRIBUTES = 1879048181 +const SHT_GNU_HASH = 1879048182 +const SHT_GNU_LIBLIST = 1879048183 +const SHT_GNU_verdef = 1879048189 +const SHT_GNU_verneed = 1879048190 +const SHT_GNU_versym = 1879048191 +const SHT_GROUP = 17 +const SHT_HASH = 5 +const SHT_HIOS = 1879048191 +const SHT_HIPROC = 2147483647 +const SHT_HISUNW = 1879048191 +const SHT_HIUSER = 2415919103 +const SHT_IA_64_EXT = 1879048192 +const SHT_IA_64_UNWIND = 1879048193 +const SHT_INIT_ARRAY = 14 +const SHT_LOOS = 1610612736 +const SHT_LOPROC = 1879048192 +const SHT_LOSUNW = 1879048186 +const SHT_LOUSER = 2147483648 +const SHT_MIPS_AUXSYM = 1879048214 +const SHT_MIPS_CONFLICT = 1879048194 +const SHT_MIPS_CONTENT = 1879048204 +const SHT_MIPS_DEBUG = 1879048197 +const SHT_MIPS_DELTACLASS = 1879048221 +const SHT_MIPS_DELTADECL = 1879048223 +const SHT_MIPS_DELTAINST = 1879048220 +const SHT_MIPS_DELTASYM = 1879048219 +const SHT_MIPS_DENSE = 1879048211 +const SHT_MIPS_DWARF = 1879048222 +const SHT_MIPS_EH_REGION = 1879048231 +const SHT_MIPS_EVENTS = 1879048225 +const SHT_MIPS_EXTSYM = 1879048210 +const SHT_MIPS_FDESC = 1879048209 +const SHT_MIPS_GPTAB = 1879048195 +const SHT_MIPS_IFACE = 1879048203 +const SHT_MIPS_LIBLIST = 1879048192 +const SHT_MIPS_LINE = 1879048217 +const SHT_MIPS_LOCSTR = 1879048216 +const SHT_MIPS_LOCSYM = 1879048213 +const SHT_MIPS_MSYM = 1879048193 +const SHT_MIPS_OPTIONS = 1879048205 +const SHT_MIPS_OPTSYM = 1879048215 +const SHT_MIPS_PACKAGE = 1879048199 +const SHT_MIPS_PACKSYM = 1879048200 +const SHT_MIPS_PDESC = 1879048212 +const SHT_MIPS_PDR_EXCEPTION = 1879048233 +const SHT_MIPS_PIXIE = 1879048227 +const SHT_MIPS_REGINFO = 1879048198 +const SHT_MIPS_RELD = 1879048201 +const SHT_MIPS_RFDESC = 1879048218 +const SHT_MIPS_SHDR = 1879048208 +const SHT_MIPS_SYMBOL_LIB = 1879048224 +const SHT_MIPS_TRANSLATE = 1879048226 +const SHT_MIPS_UCODE = 1879048196 +const SHT_MIPS_WHIRL = 1879048230 +const SHT_MIPS_XLATE = 1879048228 +const SHT_MIPS_XLATE_DEBUG = 1879048229 +const SHT_MIPS_XLATE_OLD = 1879048232 +const SHT_NOBITS = 8 +const SHT_NOTE = 7 +const SHT_NULL = 0 +const SHT_NUM = 20 +const SHT_PARISC_DOC = 1879048194 +const SHT_PARISC_EXT = 1879048192 +const SHT_PARISC_UNWIND = 1879048193 +const SHT_PREINIT_ARRAY = 16 +const SHT_PROGBITS = 1 +const SHT_REL = 9 +const SHT_RELA = 4 +const SHT_RELR = 19 +const SHT_SHLIB = 10 +const SHT_STRTAB = 3 +const SHT_SUNW_COMDAT = 1879048187 +const SHT_SUNW_move = 1879048186 +const SHT_SUNW_syminfo = 1879048188 +const SHT_SYMTAB = 2 +const SHT_SYMTAB_SHNDX = 18 +const SIGABRT = 6 +const SIGALRM = 14 +const SIGBUS = 7 +const SIGCHLD = 17 +const SIGCONT = 18 +const SIGEV_NONE = 1 +const SIGEV_SIGNAL = 0 +const SIGEV_THREAD = 2 +const SIGEV_THREAD_ID = 4 +const SIGFPE = 8 +const SIGHUP = 1 +const SIGILL = 4 +const SIGINT = 2 +const SIGIO = 29 +const SIGIOT = 6 +const SIGKILL = 9 +const SIGPIPE = 13 +const SIGPOLL = 29 +const SIGPROF = 27 +const SIGPWR = 30 +const SIGQUIT = 3 +const SIGRTMAX = 0 +const SIGRTMIN = 0 +const SIGSEGV = 11 +const SIGSTKFLT = 16 +const SIGSTKSZ = 16384 +const SIGSTOP = 19 +const SIGSYS = 31 +const SIGTERM = 15 +const SIGTRAP = 5 +const SIGTSTP = 20 +const SIGTTIN = 21 +const SIGTTOU = 22 +const SIGUNUSED = 31 +const SIGURG = 23 +const SIGUSR1 = 10 +const SIGUSR2 = 12 +const SIGVTALRM = 26 +const SIGWINCH = 28 +const SIGXCPU = 24 +const SIGXFSZ = 25 +const SIG_BLOCK = 0 +const SIG_SETMASK = 2 +const SIG_UNBLOCK = 1 +const SIOCGSTAMPNS_OLD = 35079 +const SIOCGSTAMP_OLD = 35078 +const SI_ASYNCIO = -4 +const SI_ASYNCNL = -60 +const SI_KERNEL = 128 +const SI_MESGQ = -3 +const SI_QUEUE = -1 +const SI_SIGIO = -5 +const SI_TIMER = -2 +const SI_TKILL = -6 +const SI_USER = 0 +const SO_RCVTIMEO_OLD = 20 +const SO_SNDTIMEO_OLD = 21 +const SO_TIMESTAMPING_OLD = 37 +const SO_TIMESTAMPNS_OLD = 35 +const SO_TIMESTAMP_OLD = 29 +const SS_AUTODISARM = 2147483648 +const SS_DISABLE = 2 +const SS_FLAG_BITS = 2147483648 +const SS_ONSTACK = 1 +const STB_GLOBAL = 1 +const STB_GNU_UNIQUE = 10 +const STB_HIOS = 12 +const STB_HIPROC = 15 +const STB_LOCAL = 0 +const STB_LOOS = 10 +const STB_LOPROC = 13 +const STB_MIPS_SPLIT_COMMON = 13 +const STB_NUM = 3 +const STB_WEAK = 2 +const STN_UNDEF = 0 +const STO_ALPHA_NOPV = 128 +const STO_ALPHA_STD_GPLOAD = 136 +const STO_MIPS_DEFAULT = 0 +const STO_MIPS_HIDDEN = 2 +const STO_MIPS_INTERNAL = 1 +const STO_MIPS_PLT = 8 +const STO_MIPS_PROTECTED = 3 +const STO_MIPS_SC_ALIGN_UNUSED = 255 +const STO_PPC64_LOCAL_BIT = 5 +const STO_PPC64_LOCAL_MASK = 224 +const STT_ARM_16BIT = 15 +const STT_ARM_TFUNC = 13 +const STT_COMMON = 5 +const STT_FILE = 4 +const STT_FUNC = 2 +const STT_GNU_IFUNC = 10 +const STT_HIOS = 12 +const STT_HIPROC = 15 +const STT_HP_OPAQUE = 11 +const STT_HP_STUB = 12 +const STT_LOOS = 10 +const STT_LOPROC = 13 +const STT_NOTYPE = 0 +const STT_NUM = 7 +const STT_OBJECT = 1 +const STT_PARISC_MILLICODE = 13 +const STT_SECTION = 3 +const STT_SPARC_REGISTER = 13 +const STT_TLS = 6 +const STV_DEFAULT = 0 +const STV_HIDDEN = 2 +const STV_INTERNAL = 1 +const STV_PROTECTED = 3 +const SYMINFO_BT_LOWRESERVE = 65280 +const SYMINFO_BT_PARENT = 65534 +const SYMINFO_BT_SELF = 65535 +const SYMINFO_CURRENT = 1 +const SYMINFO_FLG_COPY = 4 +const SYMINFO_FLG_DIRECT = 1 +const SYMINFO_FLG_LAZYLOAD = 8 +const SYMINFO_FLG_PASSTHRU = 2 +const SYMINFO_NONE = 0 +const SYMINFO_NUM = 2 +const SYSCALL_MMAP2_UNIT = 4096 +const SYSCALL_RLIM_INFINITY = 18446744073709551615 +const SYS_accept = 202 +const SYS_accept4 = 242 +const SYS_acct = 89 +const SYS_add_key = 217 +const SYS_adjtimex = 171 +const SYS_arch_specific_syscall = 244 +const SYS_bind = 200 +const SYS_bpf = 280 +const SYS_brk = 214 +const SYS_cachestat = 451 +const SYS_capget = 90 +const SYS_capset = 91 +const SYS_chdir = 49 +const SYS_chroot = 51 +const SYS_clock_adjtime = 266 +const SYS_clock_getres = 114 +const SYS_clock_gettime = 113 +const SYS_clock_nanosleep = 115 +const SYS_clock_settime = 112 +const SYS_clone = 220 +const SYS_clone3 = 435 +const SYS_close = 57 +const SYS_close_range = 436 +const SYS_connect = 203 +const SYS_copy_file_range = 285 +const SYS_delete_module = 106 +const SYS_dup = 23 +const SYS_dup3 = 24 +const SYS_epoll_create1 = 20 +const SYS_epoll_ctl = 21 +const SYS_epoll_pwait = 22 +const SYS_epoll_pwait2 = 441 +const SYS_eventfd2 = 19 +const SYS_execve = 221 +const SYS_execveat = 281 +const SYS_exit = 93 +const SYS_exit_group = 94 +const SYS_faccessat = 48 +const SYS_faccessat2 = 439 +const SYS_fadvise64 = 223 +const SYS_fallocate = 47 +const SYS_fanotify_init = 262 +const SYS_fanotify_mark = 263 +const SYS_fchdir = 50 +const SYS_fchmod = 52 +const SYS_fchmodat = 53 +const SYS_fchmodat2 = 452 +const SYS_fchown = 55 +const SYS_fchownat = 54 +const SYS_fcntl = 25 +const SYS_fdatasync = 83 +const SYS_fgetxattr = 10 +const SYS_finit_module = 273 +const SYS_flistxattr = 13 +const SYS_flock = 32 +const SYS_fremovexattr = 16 +const SYS_fsconfig = 431 +const SYS_fsetxattr = 7 +const SYS_fsmount = 432 +const SYS_fsopen = 430 +const SYS_fspick = 433 +const SYS_fstatfs = 44 +const SYS_fsync = 82 +const SYS_ftruncate = 46 +const SYS_futex = 98 +const SYS_futex_requeue = 456 +const SYS_futex_wait = 455 +const SYS_futex_waitv = 449 +const SYS_futex_wake = 454 +const SYS_get_mempolicy = 236 +const SYS_get_robust_list = 100 +const SYS_getcpu = 168 +const SYS_getcwd = 17 +const SYS_getdents64 = 61 +const SYS_getegid = 177 +const SYS_geteuid = 175 +const SYS_getgid = 176 +const SYS_getgroups = 158 +const SYS_getitimer = 102 +const SYS_getpeername = 205 +const SYS_getpgid = 155 +const SYS_getpid = 172 +const SYS_getppid = 173 +const SYS_getpriority = 141 +const SYS_getrandom = 278 +const SYS_getresgid = 150 +const SYS_getresuid = 148 +const SYS_getrusage = 165 +const SYS_getsid = 156 +const SYS_getsockname = 204 +const SYS_getsockopt = 209 +const SYS_gettid = 178 +const SYS_gettimeofday = 169 +const SYS_getuid = 174 +const SYS_getxattr = 8 +const SYS_init_module = 105 +const SYS_inotify_add_watch = 27 +const SYS_inotify_init1 = 26 +const SYS_inotify_rm_watch = 28 +const SYS_io_cancel = 3 +const SYS_io_destroy = 1 +const SYS_io_getevents = 4 +const SYS_io_pgetevents = 292 +const SYS_io_setup = 0 +const SYS_io_submit = 2 +const SYS_io_uring_enter = 426 +const SYS_io_uring_register = 427 +const SYS_io_uring_setup = 425 +const SYS_ioctl = 29 +const SYS_ioprio_get = 31 +const SYS_ioprio_set = 30 +const SYS_kcmp = 272 +const SYS_kexec_file_load = 294 +const SYS_kexec_load = 104 +const SYS_keyctl = 219 +const SYS_kill = 129 +const SYS_landlock_add_rule = 445 +const SYS_landlock_create_ruleset = 444 +const SYS_landlock_restrict_self = 446 +const SYS_lgetxattr = 9 +const SYS_linkat = 37 +const SYS_listen = 201 +const SYS_listxattr = 11 +const SYS_llistxattr = 12 +const SYS_lookup_dcookie = 18 +const SYS_lremovexattr = 15 +const SYS_lseek = 62 +const SYS_lsetxattr = 6 +const SYS_madvise = 233 +const SYS_map_shadow_stack = 453 +const SYS_mbind = 235 +const SYS_membarrier = 283 +const SYS_memfd_create = 279 +const SYS_migrate_pages = 238 +const SYS_mincore = 232 +const SYS_mkdirat = 34 +const SYS_mknodat = 33 +const SYS_mlock = 228 +const SYS_mlock2 = 284 +const SYS_mlockall = 230 +const SYS_mmap = 222 +const SYS_mount = 40 +const SYS_mount_setattr = 442 +const SYS_move_mount = 429 +const SYS_move_pages = 239 +const SYS_mprotect = 226 +const SYS_mq_getsetattr = 185 +const SYS_mq_notify = 184 +const SYS_mq_open = 180 +const SYS_mq_timedreceive = 183 +const SYS_mq_timedsend = 182 +const SYS_mq_unlink = 181 +const SYS_mremap = 216 +const SYS_msgctl = 187 +const SYS_msgget = 186 +const SYS_msgrcv = 188 +const SYS_msgsnd = 189 +const SYS_msync = 227 +const SYS_munlock = 229 +const SYS_munlockall = 231 +const SYS_munmap = 215 +const SYS_name_to_handle_at = 264 +const SYS_nanosleep = 101 +const SYS_nfsservctl = 42 +const SYS_open_by_handle_at = 265 +const SYS_open_tree = 428 +const SYS_openat = 56 +const SYS_openat2 = 437 +const SYS_perf_event_open = 241 +const SYS_personality = 92 +const SYS_pidfd_getfd = 438 +const SYS_pidfd_open = 434 +const SYS_pidfd_send_signal = 424 +const SYS_pipe2 = 59 +const SYS_pivot_root = 41 +const SYS_pkey_alloc = 289 +const SYS_pkey_free = 290 +const SYS_pkey_mprotect = 288 +const SYS_ppoll = 73 +const SYS_prctl = 167 +const SYS_pread64 = 67 +const SYS_preadv = 69 +const SYS_preadv2 = 286 +const SYS_prlimit64 = 261 +const SYS_process_madvise = 440 +const SYS_process_mrelease = 448 +const SYS_process_vm_readv = 270 +const SYS_process_vm_writev = 271 +const SYS_pselect6 = 72 +const SYS_ptrace = 117 +const SYS_pwrite64 = 68 +const SYS_pwritev = 70 +const SYS_pwritev2 = 287 +const SYS_quotactl = 60 +const SYS_quotactl_fd = 443 +const SYS_read = 63 +const SYS_readahead = 213 +const SYS_readlinkat = 78 +const SYS_readv = 65 +const SYS_reboot = 142 +const SYS_recvfrom = 207 +const SYS_recvmmsg = 243 +const SYS_recvmsg = 212 +const SYS_remap_file_pages = 234 +const SYS_removexattr = 14 +const SYS_renameat2 = 276 +const SYS_request_key = 218 +const SYS_restart_syscall = 128 +const SYS_rseq = 293 +const SYS_rt_sigaction = 134 +const SYS_rt_sigpending = 136 +const SYS_rt_sigprocmask = 135 +const SYS_rt_sigqueueinfo = 138 +const SYS_rt_sigreturn = 139 +const SYS_rt_sigsuspend = 133 +const SYS_rt_sigtimedwait = 137 +const SYS_rt_tgsigqueueinfo = 240 +const SYS_sched_get_priority_max = 125 +const SYS_sched_get_priority_min = 126 +const SYS_sched_getaffinity = 123 +const SYS_sched_getattr = 275 +const SYS_sched_getparam = 121 +const SYS_sched_getscheduler = 120 +const SYS_sched_rr_get_interval = 127 +const SYS_sched_setaffinity = 122 +const SYS_sched_setattr = 274 +const SYS_sched_setparam = 118 +const SYS_sched_setscheduler = 119 +const SYS_sched_yield = 124 +const SYS_seccomp = 277 +const SYS_semctl = 191 +const SYS_semget = 190 +const SYS_semop = 193 +const SYS_semtimedop = 192 +const SYS_sendfile = 71 +const SYS_sendmmsg = 269 +const SYS_sendmsg = 211 +const SYS_sendto = 206 +const SYS_set_mempolicy = 237 +const SYS_set_mempolicy_home_node = 450 +const SYS_set_robust_list = 99 +const SYS_set_tid_address = 96 +const SYS_setdomainname = 162 +const SYS_setfsgid = 152 +const SYS_setfsuid = 151 +const SYS_setgid = 144 +const SYS_setgroups = 159 +const SYS_sethostname = 161 +const SYS_setitimer = 103 +const SYS_setns = 268 +const SYS_setpgid = 154 +const SYS_setpriority = 140 +const SYS_setregid = 143 +const SYS_setresgid = 149 +const SYS_setresuid = 147 +const SYS_setreuid = 145 +const SYS_setsid = 157 +const SYS_setsockopt = 208 +const SYS_settimeofday = 170 +const SYS_setuid = 146 +const SYS_setxattr = 5 +const SYS_shmat = 196 +const SYS_shmctl = 195 +const SYS_shmdt = 197 +const SYS_shmget = 194 +const SYS_shutdown = 210 +const SYS_sigaltstack = 132 +const SYS_signalfd4 = 74 +const SYS_socket = 198 +const SYS_socketpair = 199 +const SYS_splice = 76 +const SYS_statfs = 43 +const SYS_statx = 291 +const SYS_swapoff = 225 +const SYS_swapon = 224 +const SYS_symlinkat = 36 +const SYS_sync = 81 +const SYS_sync_file_range = 84 +const SYS_syncfs = 267 +const SYS_sysinfo = 179 +const SYS_syslog = 116 +const SYS_tee = 77 +const SYS_tgkill = 131 +const SYS_timer_create = 107 +const SYS_timer_delete = 111 +const SYS_timer_getoverrun = 109 +const SYS_timer_gettime = 108 +const SYS_timer_settime = 110 +const SYS_timerfd_create = 85 +const SYS_timerfd_gettime = 87 +const SYS_timerfd_settime = 86 +const SYS_times = 153 +const SYS_tkill = 130 +const SYS_truncate = 45 +const SYS_umask = 166 +const SYS_umount2 = 39 +const SYS_uname = 160 +const SYS_unlinkat = 35 +const SYS_unshare = 97 +const SYS_userfaultfd = 282 +const SYS_utimensat = 88 +const SYS_vhangup = 58 +const SYS_vmsplice = 75 +const SYS_wait4 = 260 +const SYS_waitid = 95 +const SYS_write = 64 +const SYS_writev = 66 +const TRAP_BRANCH = 3 +const TRAP_BRKPT = 1 +const TRAP_HWBKPT = 4 +const TRAP_TRACE = 2 +const TRAP_UNK = 5 +const VER = -255 +const VER_DEF_CURRENT = 1 +const VER_DEF_NONE = 0 +const VER_DEF_NUM = 2 +const VER_FLG_BASE = 1 +const VER_FLG_WEAK = 2 +const VER_NDX_ELIMINATE = 65281 +const VER_NDX_GLOBAL = 1 +const VER_NDX_LOCAL = 0 +const VER_NDX_LORESERVE = 65280 +const VER_NEED_CURRENT = 1 +const VER_NEED_NONE = 0 +const VER_NEED_NUM = 2 +const WNOHANG = 1 +const WUNTRACED = 2 +const _NSIG = 65 +const __NR3264_fadvise64 = 223 +const __NR3264_fcntl = 25 +const __NR3264_fstatfs = 44 +const __NR3264_ftruncate = 46 +const __NR3264_lseek = 62 +const __NR3264_mmap = 222 +const __NR3264_sendfile = 71 +const __NR3264_statfs = 43 +const __NR3264_truncate = 45 +const __NR_accept = 202 +const __NR_accept4 = 242 +const __NR_acct = 89 +const __NR_add_key = 217 +const __NR_adjtimex = 171 +const __NR_arch_specific_syscall = 244 +const __NR_bind = 200 +const __NR_bpf = 280 +const __NR_brk = 214 +const __NR_cachestat = 451 +const __NR_capget = 90 +const __NR_capset = 91 +const __NR_chdir = 49 +const __NR_chroot = 51 +const __NR_clock_adjtime = 266 +const __NR_clock_getres = 114 +const __NR_clock_gettime = 113 +const __NR_clock_nanosleep = 115 +const __NR_clock_settime = 112 +const __NR_clone = 220 +const __NR_clone3 = 435 +const __NR_close = 57 +const __NR_close_range = 436 +const __NR_connect = 203 +const __NR_copy_file_range = 285 +const __NR_delete_module = 106 +const __NR_dup = 23 +const __NR_dup3 = 24 +const __NR_epoll_create1 = 20 +const __NR_epoll_ctl = 21 +const __NR_epoll_pwait = 22 +const __NR_epoll_pwait2 = 441 +const __NR_eventfd2 = 19 +const __NR_execve = 221 +const __NR_execveat = 281 +const __NR_exit = 93 +const __NR_exit_group = 94 +const __NR_faccessat = 48 +const __NR_faccessat2 = 439 +const __NR_fadvise64 = 223 +const __NR_fallocate = 47 +const __NR_fanotify_init = 262 +const __NR_fanotify_mark = 263 +const __NR_fchdir = 50 +const __NR_fchmod = 52 +const __NR_fchmodat = 53 +const __NR_fchmodat2 = 452 +const __NR_fchown = 55 +const __NR_fchownat = 54 +const __NR_fcntl = 25 +const __NR_fdatasync = 83 +const __NR_fgetxattr = 10 +const __NR_finit_module = 273 +const __NR_flistxattr = 13 +const __NR_flock = 32 +const __NR_fremovexattr = 16 +const __NR_fsconfig = 431 +const __NR_fsetxattr = 7 +const __NR_fsmount = 432 +const __NR_fsopen = 430 +const __NR_fspick = 433 +const __NR_fstatfs = 44 +const __NR_fsync = 82 +const __NR_ftruncate = 46 +const __NR_futex = 98 +const __NR_futex_requeue = 456 +const __NR_futex_wait = 455 +const __NR_futex_waitv = 449 +const __NR_futex_wake = 454 +const __NR_get_mempolicy = 236 +const __NR_get_robust_list = 100 +const __NR_getcpu = 168 +const __NR_getcwd = 17 +const __NR_getdents64 = 61 +const __NR_getegid = 177 +const __NR_geteuid = 175 +const __NR_getgid = 176 +const __NR_getgroups = 158 +const __NR_getitimer = 102 +const __NR_getpeername = 205 +const __NR_getpgid = 155 +const __NR_getpid = 172 +const __NR_getppid = 173 +const __NR_getpriority = 141 +const __NR_getrandom = 278 +const __NR_getresgid = 150 +const __NR_getresuid = 148 +const __NR_getrusage = 165 +const __NR_getsid = 156 +const __NR_getsockname = 204 +const __NR_getsockopt = 209 +const __NR_gettid = 178 +const __NR_gettimeofday = 169 +const __NR_getuid = 174 +const __NR_getxattr = 8 +const __NR_init_module = 105 +const __NR_inotify_add_watch = 27 +const __NR_inotify_init1 = 26 +const __NR_inotify_rm_watch = 28 +const __NR_io_cancel = 3 +const __NR_io_destroy = 1 +const __NR_io_getevents = 4 +const __NR_io_pgetevents = 292 +const __NR_io_setup = 0 +const __NR_io_submit = 2 +const __NR_io_uring_enter = 426 +const __NR_io_uring_register = 427 +const __NR_io_uring_setup = 425 +const __NR_ioctl = 29 +const __NR_ioprio_get = 31 +const __NR_ioprio_set = 30 +const __NR_kcmp = 272 +const __NR_kexec_file_load = 294 +const __NR_kexec_load = 104 +const __NR_keyctl = 219 +const __NR_kill = 129 +const __NR_landlock_add_rule = 445 +const __NR_landlock_create_ruleset = 444 +const __NR_landlock_restrict_self = 446 +const __NR_lgetxattr = 9 +const __NR_linkat = 37 +const __NR_listen = 201 +const __NR_listxattr = 11 +const __NR_llistxattr = 12 +const __NR_lookup_dcookie = 18 +const __NR_lremovexattr = 15 +const __NR_lseek = 62 +const __NR_lsetxattr = 6 +const __NR_madvise = 233 +const __NR_map_shadow_stack = 453 +const __NR_mbind = 235 +const __NR_membarrier = 283 +const __NR_memfd_create = 279 +const __NR_migrate_pages = 238 +const __NR_mincore = 232 +const __NR_mkdirat = 34 +const __NR_mknodat = 33 +const __NR_mlock = 228 +const __NR_mlock2 = 284 +const __NR_mlockall = 230 +const __NR_mmap = 222 +const __NR_mount = 40 +const __NR_mount_setattr = 442 +const __NR_move_mount = 429 +const __NR_move_pages = 239 +const __NR_mprotect = 226 +const __NR_mq_getsetattr = 185 +const __NR_mq_notify = 184 +const __NR_mq_open = 180 +const __NR_mq_timedreceive = 183 +const __NR_mq_timedsend = 182 +const __NR_mq_unlink = 181 +const __NR_mremap = 216 +const __NR_msgctl = 187 +const __NR_msgget = 186 +const __NR_msgrcv = 188 +const __NR_msgsnd = 189 +const __NR_msync = 227 +const __NR_munlock = 229 +const __NR_munlockall = 231 +const __NR_munmap = 215 +const __NR_name_to_handle_at = 264 +const __NR_nanosleep = 101 +const __NR_nfsservctl = 42 +const __NR_open_by_handle_at = 265 +const __NR_open_tree = 428 +const __NR_openat = 56 +const __NR_openat2 = 437 +const __NR_perf_event_open = 241 +const __NR_personality = 92 +const __NR_pidfd_getfd = 438 +const __NR_pidfd_open = 434 +const __NR_pidfd_send_signal = 424 +const __NR_pipe2 = 59 +const __NR_pivot_root = 41 +const __NR_pkey_alloc = 289 +const __NR_pkey_free = 290 +const __NR_pkey_mprotect = 288 +const __NR_ppoll = 73 +const __NR_prctl = 167 +const __NR_pread64 = 67 +const __NR_preadv = 69 +const __NR_preadv2 = 286 +const __NR_prlimit64 = 261 +const __NR_process_madvise = 440 +const __NR_process_mrelease = 448 +const __NR_process_vm_readv = 270 +const __NR_process_vm_writev = 271 +const __NR_pselect6 = 72 +const __NR_ptrace = 117 +const __NR_pwrite64 = 68 +const __NR_pwritev = 70 +const __NR_pwritev2 = 287 +const __NR_quotactl = 60 +const __NR_quotactl_fd = 443 +const __NR_read = 63 +const __NR_readahead = 213 +const __NR_readlinkat = 78 +const __NR_readv = 65 +const __NR_reboot = 142 +const __NR_recvfrom = 207 +const __NR_recvmmsg = 243 +const __NR_recvmsg = 212 +const __NR_remap_file_pages = 234 +const __NR_removexattr = 14 +const __NR_renameat2 = 276 +const __NR_request_key = 218 +const __NR_restart_syscall = 128 +const __NR_rseq = 293 +const __NR_rt_sigaction = 134 +const __NR_rt_sigpending = 136 +const __NR_rt_sigprocmask = 135 +const __NR_rt_sigqueueinfo = 138 +const __NR_rt_sigreturn = 139 +const __NR_rt_sigsuspend = 133 +const __NR_rt_sigtimedwait = 137 +const __NR_rt_tgsigqueueinfo = 240 +const __NR_sched_get_priority_max = 125 +const __NR_sched_get_priority_min = 126 +const __NR_sched_getaffinity = 123 +const __NR_sched_getattr = 275 +const __NR_sched_getparam = 121 +const __NR_sched_getscheduler = 120 +const __NR_sched_rr_get_interval = 127 +const __NR_sched_setaffinity = 122 +const __NR_sched_setattr = 274 +const __NR_sched_setparam = 118 +const __NR_sched_setscheduler = 119 +const __NR_sched_yield = 124 +const __NR_seccomp = 277 +const __NR_semctl = 191 +const __NR_semget = 190 +const __NR_semop = 193 +const __NR_semtimedop = 192 +const __NR_sendfile = 71 +const __NR_sendmmsg = 269 +const __NR_sendmsg = 211 +const __NR_sendto = 206 +const __NR_set_mempolicy = 237 +const __NR_set_mempolicy_home_node = 450 +const __NR_set_robust_list = 99 +const __NR_set_tid_address = 96 +const __NR_setdomainname = 162 +const __NR_setfsgid = 152 +const __NR_setfsuid = 151 +const __NR_setgid = 144 +const __NR_setgroups = 159 +const __NR_sethostname = 161 +const __NR_setitimer = 103 +const __NR_setns = 268 +const __NR_setpgid = 154 +const __NR_setpriority = 140 +const __NR_setregid = 143 +const __NR_setresgid = 149 +const __NR_setresuid = 147 +const __NR_setreuid = 145 +const __NR_setsid = 157 +const __NR_setsockopt = 208 +const __NR_settimeofday = 170 +const __NR_setuid = 146 +const __NR_setxattr = 5 +const __NR_shmat = 196 +const __NR_shmctl = 195 +const __NR_shmdt = 197 +const __NR_shmget = 194 +const __NR_shutdown = 210 +const __NR_sigaltstack = 132 +const __NR_signalfd4 = 74 +const __NR_socket = 198 +const __NR_socketpair = 199 +const __NR_splice = 76 +const __NR_statfs = 43 +const __NR_statx = 291 +const __NR_swapoff = 225 +const __NR_swapon = 224 +const __NR_symlinkat = 36 +const __NR_sync = 81 +const __NR_sync_file_range = 84 +const __NR_syncfs = 267 +const __NR_sysinfo = 179 +const __NR_syslog = 116 +const __NR_tee = 77 +const __NR_tgkill = 131 +const __NR_timer_create = 107 +const __NR_timer_delete = 111 +const __NR_timer_getoverrun = 109 +const __NR_timer_gettime = 108 +const __NR_timer_settime = 110 +const __NR_timerfd_create = 85 +const __NR_timerfd_gettime = 87 +const __NR_timerfd_settime = 86 +const __NR_times = 153 +const __NR_tkill = 130 +const __NR_truncate = 45 +const __NR_umask = 166 +const __NR_umount2 = 39 +const __NR_uname = 160 +const __NR_unlinkat = 35 +const __NR_unshare = 97 +const __NR_userfaultfd = 282 +const __NR_utimensat = 88 +const __NR_vhangup = 58 +const __NR_vmsplice = 75 +const __NR_wait4 = 260 +const __NR_waitid = 95 +const __NR_write = 64 +const __NR_writev = 66 +const __SC_accept = 5 +const __SC_accept4 = 18 +const __SC_bind = 2 +const __SC_connect = 3 +const __SC_getpeername = 7 +const __SC_getsockname = 6 +const __SC_getsockopt = 15 +const __SC_listen = 4 +const __SC_recv = 10 +const __SC_recvfrom = 12 +const __SC_recvmmsg = 19 +const __SC_recvmsg = 17 +const __SC_send = 9 +const __SC_sendmmsg = 20 +const __SC_sendmsg = 16 +const __SC_sendto = 11 +const __SC_setsockopt = 14 +const __SC_shutdown = 13 +const __SC_socket = 1 +const __SC_socketpair = 8 +const __uc_flags = 0 +const libc = 0 + +type Ttime_t = int64 + +type Tsuseconds_t = int64 + +type Ttimeval = struct { + Ftv_sec Ttime_t + Ftv_usec Tsuseconds_t +} + +type Ttimespec = struct { + Ftv_sec Ttime_t + Ftv_nsec int64 +} + +type Tsigset_t = struct { + F__bits [16]uint64 +} + +type t__sigset_t = Tsigset_t + +type Tfd_mask = uint64 + +type Tfd_set = struct { + Ffds_bits [16]uint64 +} + +type Titimerval = struct { + Fit_interval Ttimeval + Fit_value Ttimeval +} + +type Tid_t = uint32 + +type Trlim_t = uint64 + +type Trlimit = struct { + Frlim_cur Trlim_t + Frlim_max Trlim_t +} + +type Trusage = struct { + Fru_utime Ttimeval + Fru_stime Ttimeval + Fru_maxrss int64 + Fru_ixrss int64 + Fru_idrss int64 + Fru_isrss int64 + Fru_minflt int64 + Fru_majflt int64 + Fru_nswap int64 + Fru_inblock int64 + Fru_oublock int64 + Fru_msgsnd int64 + Fru_msgrcv int64 + Fru_nsignals int64 + Fru_nvcsw int64 + Fru_nivcsw int64 + F__reserved [16]int64 +} + +type Tclock_t = int64 + +type Tpthread_t = uintptr + +type Tpthread_attr_t = struct { + F__u struct { + F__vi [0][14]int32 + F__s [0][7]uint64 + F__i [14]int32 + } +} + +type Tstack_t = struct { + Fss_sp uintptr + Fss_flags int32 + Fss_size Tsize_t +} + +type Tsigaltstack = Tstack_t + +type Tmcontext_t = struct { + F__pc uint64 + F__gregs [32]uint64 + F__flags uint32 +} + +type Tucontext_t = struct { + Fuc_flags uint64 + Fuc_link uintptr + Fuc_stack Tstack_t + Fuc_sigmask Tsigset_t + F__uc_pad int64 + Fuc_mcontext Tmcontext_t +} + +type t__ucontext = Tucontext_t + +type Tsigval = struct { + Fsival_ptr [0]uintptr + Fsival_int int32 + F__ccgo_pad2 [4]byte +} + +type Tsiginfo_t = struct { + Fsi_signo int32 + Fsi_errno int32 + Fsi_code int32 + F__si_fields struct { + F__si_common [0]struct { + F__first struct { + F__timer [0]struct { + Fsi_timerid int32 + Fsi_overrun int32 + } + F__piduid struct { + Fsi_pid Tpid_t + Fsi_uid Tuid_t + } + } + F__second struct { + F__sigchld [0]struct { + Fsi_status int32 + Fsi_utime Tclock_t + Fsi_stime Tclock_t + } + Fsi_value Tsigval + F__ccgo_pad2 [16]byte + } + } + F__sigfault [0]struct { + Fsi_addr uintptr + Fsi_addr_lsb int16 + F__first struct { + Fsi_pkey [0]uint32 + F__addr_bnd struct { + Fsi_lower uintptr + Fsi_upper uintptr + } + } + } + F__sigpoll [0]struct { + Fsi_band int64 + Fsi_fd int32 + } + F__sigsys [0]struct { + Fsi_call_addr uintptr + Fsi_syscall int32 + Fsi_arch uint32 + } + F__pad [112]int8 + } +} + +type Tsigaction = struct { + F__sa_handler struct { + Fsa_sigaction [0]uintptr + Fsa_handler uintptr + } + Fsa_mask Tsigset_t + Fsa_flags int32 + Fsa_restorer uintptr +} + +type Tsigevent = struct { + Fsigev_value Tsigval + Fsigev_signo int32 + Fsigev_notify int32 + F__sev_fields struct { + Fsigev_notify_thread_id [0]Tpid_t + F__sev_thread [0]struct { + Fsigev_notify_function uintptr + Fsigev_notify_attributes uintptr + } + F__pad [48]int8 + } +} + +type Tsig_atomic_t = int32 + +type TElf32_Half = uint16 + +type TElf64_Half = uint16 + +type TElf32_Word = uint32 + +type TElf32_Sword = int32 + +type TElf64_Word = uint32 + +type TElf64_Sword = int32 + +type TElf32_Xword = uint64 + +type TElf32_Sxword = int64 + +type TElf64_Xword = uint64 + +type TElf64_Sxword = int64 + +type TElf32_Addr = uint32 + +type TElf64_Addr = uint64 + +type TElf32_Off = uint32 + +type TElf64_Off = uint64 + +type TElf32_Section = uint16 + +type TElf64_Section = uint16 + +type TElf32_Versym = uint16 + +type TElf64_Versym = uint16 + +type TElf32_Ehdr = struct { + Fe_ident [16]uint8 + Fe_type TElf32_Half + Fe_machine TElf32_Half + Fe_version TElf32_Word + Fe_entry TElf32_Addr + Fe_phoff TElf32_Off + Fe_shoff TElf32_Off + Fe_flags TElf32_Word + Fe_ehsize TElf32_Half + Fe_phentsize TElf32_Half + Fe_phnum TElf32_Half + Fe_shentsize TElf32_Half + Fe_shnum TElf32_Half + Fe_shstrndx TElf32_Half +} + +type TElf64_Ehdr = struct { + Fe_ident [16]uint8 + Fe_type TElf64_Half + Fe_machine TElf64_Half + Fe_version TElf64_Word + Fe_entry TElf64_Addr + Fe_phoff TElf64_Off + Fe_shoff TElf64_Off + Fe_flags TElf64_Word + Fe_ehsize TElf64_Half + Fe_phentsize TElf64_Half + Fe_phnum TElf64_Half + Fe_shentsize TElf64_Half + Fe_shnum TElf64_Half + Fe_shstrndx TElf64_Half +} + +type TElf32_Shdr = struct { + Fsh_name TElf32_Word + Fsh_type TElf32_Word + Fsh_flags TElf32_Word + Fsh_addr TElf32_Addr + Fsh_offset TElf32_Off + Fsh_size TElf32_Word + Fsh_link TElf32_Word + Fsh_info TElf32_Word + Fsh_addralign TElf32_Word + Fsh_entsize TElf32_Word +} + +type TElf64_Shdr = struct { + Fsh_name TElf64_Word + Fsh_type TElf64_Word + Fsh_flags TElf64_Xword + Fsh_addr TElf64_Addr + Fsh_offset TElf64_Off + Fsh_size TElf64_Xword + Fsh_link TElf64_Word + Fsh_info TElf64_Word + Fsh_addralign TElf64_Xword + Fsh_entsize TElf64_Xword +} + +type TElf32_Chdr = struct { + Fch_type TElf32_Word + Fch_size TElf32_Word + Fch_addralign TElf32_Word +} + +type TElf64_Chdr = struct { + Fch_type TElf64_Word + Fch_reserved TElf64_Word + Fch_size TElf64_Xword + Fch_addralign TElf64_Xword +} + +type TElf32_Sym = struct { + Fst_name TElf32_Word + Fst_value TElf32_Addr + Fst_size TElf32_Word + Fst_info uint8 + Fst_other uint8 + Fst_shndx TElf32_Section +} + +type TElf64_Sym = struct { + Fst_name TElf64_Word + Fst_info uint8 + Fst_other uint8 + Fst_shndx TElf64_Section + Fst_value TElf64_Addr + Fst_size TElf64_Xword +} + +type TElf32_Syminfo = struct { + Fsi_boundto TElf32_Half + Fsi_flags TElf32_Half +} + +type TElf64_Syminfo = struct { + Fsi_boundto TElf64_Half + Fsi_flags TElf64_Half +} + +type TElf32_Rel = struct { + Fr_offset TElf32_Addr + Fr_info TElf32_Word +} + +type TElf64_Rel = struct { + Fr_offset TElf64_Addr + Fr_info TElf64_Xword +} + +type TElf32_Rela = struct { + Fr_offset TElf32_Addr + Fr_info TElf32_Word + Fr_addend TElf32_Sword +} + +type TElf64_Rela = struct { + Fr_offset TElf64_Addr + Fr_info TElf64_Xword + Fr_addend TElf64_Sxword +} + +type TElf32_Relr = uint32 + +type TElf64_Relr = uint64 + +type TElf32_Phdr = struct { + Fp_type TElf32_Word + Fp_offset TElf32_Off + Fp_vaddr TElf32_Addr + Fp_paddr TElf32_Addr + Fp_filesz TElf32_Word + Fp_memsz TElf32_Word + Fp_flags TElf32_Word + Fp_align TElf32_Word +} + +type TElf64_Phdr = struct { + Fp_type TElf64_Word + Fp_flags TElf64_Word + Fp_offset TElf64_Off + Fp_vaddr TElf64_Addr + Fp_paddr TElf64_Addr + Fp_filesz TElf64_Xword + Fp_memsz TElf64_Xword + Fp_align TElf64_Xword +} + +type TElf32_Dyn = struct { + Fd_tag TElf32_Sword + Fd_un struct { + Fd_ptr [0]TElf32_Addr + Fd_val TElf32_Word + } +} + +type TElf64_Dyn = struct { + Fd_tag TElf64_Sxword + Fd_un struct { + Fd_ptr [0]TElf64_Addr + Fd_val TElf64_Xword + } +} + +type TElf32_Verdef = struct { + Fvd_version TElf32_Half + Fvd_flags TElf32_Half + Fvd_ndx TElf32_Half + Fvd_cnt TElf32_Half + Fvd_hash TElf32_Word + Fvd_aux TElf32_Word + Fvd_next TElf32_Word +} + +type TElf64_Verdef = struct { + Fvd_version TElf64_Half + Fvd_flags TElf64_Half + Fvd_ndx TElf64_Half + Fvd_cnt TElf64_Half + Fvd_hash TElf64_Word + Fvd_aux TElf64_Word + Fvd_next TElf64_Word +} + +type TElf32_Verdaux = struct { + Fvda_name TElf32_Word + Fvda_next TElf32_Word +} + +type TElf64_Verdaux = struct { + Fvda_name TElf64_Word + Fvda_next TElf64_Word +} + +type TElf32_Verneed = struct { + Fvn_version TElf32_Half + Fvn_cnt TElf32_Half + Fvn_file TElf32_Word + Fvn_aux TElf32_Word + Fvn_next TElf32_Word +} + +type TElf64_Verneed = struct { + Fvn_version TElf64_Half + Fvn_cnt TElf64_Half + Fvn_file TElf64_Word + Fvn_aux TElf64_Word + Fvn_next TElf64_Word +} + +type TElf32_Vernaux = struct { + Fvna_hash TElf32_Word + Fvna_flags TElf32_Half + Fvna_other TElf32_Half + Fvna_name TElf32_Word + Fvna_next TElf32_Word +} + +type TElf64_Vernaux = struct { + Fvna_hash TElf64_Word + Fvna_flags TElf64_Half + Fvna_other TElf64_Half + Fvna_name TElf64_Word + Fvna_next TElf64_Word +} + +type TElf32_auxv_t = struct { + Fa_type Tuint32_t + Fa_un struct { + Fa_val Tuint32_t + } +} + +type TElf64_auxv_t = struct { + Fa_type Tuint64_t + Fa_un struct { + Fa_val Tuint64_t + } +} + +type TElf32_Nhdr = struct { + Fn_namesz TElf32_Word + Fn_descsz TElf32_Word + Fn_type TElf32_Word +} + +type TElf64_Nhdr = struct { + Fn_namesz TElf64_Word + Fn_descsz TElf64_Word + Fn_type TElf64_Word +} + +type TElf32_Move = struct { + Fm_value TElf32_Xword + Fm_info TElf32_Word + Fm_poffset TElf32_Word + Fm_repeat TElf32_Half + Fm_stride TElf32_Half +} + +type TElf64_Move = struct { + Fm_value TElf64_Xword + Fm_info TElf64_Xword + Fm_poffset TElf64_Xword + Fm_repeat TElf64_Half + Fm_stride TElf64_Half +} + +type TElf32_gptab = struct { + Fgt_entry [0]struct { + Fgt_g_value TElf32_Word + Fgt_bytes TElf32_Word + } + Fgt_header struct { + Fgt_current_g_value TElf32_Word + Fgt_unused TElf32_Word + } +} + +type TElf32_RegInfo = struct { + Fri_gprmask TElf32_Word + Fri_cprmask [4]TElf32_Word + Fri_gp_value TElf32_Sword +} + +type TElf_Options = struct { + Fkind uint8 + Fsize uint8 + Fsection TElf32_Section + Finfo TElf32_Word +} + +type TElf_Options_Hw = struct { + Fhwp_flags1 TElf32_Word + Fhwp_flags2 TElf32_Word +} + +type TElf32_Lib = struct { + Fl_name TElf32_Word + Fl_time_stamp TElf32_Word + Fl_checksum TElf32_Word + Fl_version TElf32_Word + Fl_flags TElf32_Word +} + +type TElf64_Lib = struct { + Fl_name TElf64_Word + Fl_time_stamp TElf64_Word + Fl_checksum TElf64_Word + Fl_version TElf64_Word + Fl_flags TElf64_Word +} + +type TElf32_Conflict = uint32 + +type TElf_MIPS_ABIFlags_v0 = struct { + Fversion TElf32_Half + Fisa_level uint8 + Fisa_rev uint8 + Fgpr_size uint8 + Fcpr1_size uint8 + Fcpr2_size uint8 + Ffp_abi uint8 + Fisa_ext TElf32_Word + Fases TElf32_Word + Fflags1 TElf32_Word + Fflags2 TElf32_Word +} + +const _Val_GNU_MIPS_ABI_FP_ANY = 0 +const _Val_GNU_MIPS_ABI_FP_DOUBLE = 1 +const _Val_GNU_MIPS_ABI_FP_SINGLE = 2 +const _Val_GNU_MIPS_ABI_FP_SOFT = 3 +const _Val_GNU_MIPS_ABI_FP_OLD_64 = 4 +const _Val_GNU_MIPS_ABI_FP_XX = 5 +const _Val_GNU_MIPS_ABI_FP_64 = 6 +const _Val_GNU_MIPS_ABI_FP_64A = 7 +const _Val_GNU_MIPS_ABI_FP_MAX = 7 + +type Tsyscall_arg_t = int64 + +type Twchar_t = int32 + +type Tdiv_t = struct { + Fquot int32 + Frem int32 +} + +type Tldiv_t = struct { + Fquot int64 + Frem int64 +} + +type Tlldiv_t = struct { + Fquot int64 + Frem int64 +} + +type t__locale_struct = struct { + Fcat [6]uintptr +} + +type Ttls_module = struct { + Fnext uintptr + Fimage uintptr + Flen1 Tsize_t + Fsize Tsize_t + Falign Tsize_t + Foffset Tsize_t +} + +type t__libc = struct { + Fcan_do_threads int8 + Fthreaded int8 + Fsecure int8 + Fneed_locks int8 + Fthreads_minus_1 int32 + Fauxv uintptr + Ftls_head uintptr + Ftls_size Tsize_t + Ftls_align Tsize_t + Ftls_cnt Tsize_t + Fpage_size Tsize_t + Fglobal_locale t__locale_struct +} + +func Xsysconf(tls *TLS, name int32) (r int64) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(512) + defer tls.Free(512) + var cnt, i, v3 int32 + var mem, v1 uint64 + var val int64 + var v5 uintptr + var _ /* lim at bp+0 */ Trlimit + var _ /* set at bp+16 */ [128]uint8 + var _ /* si at bp+144 */ Tsysinfo + _, _, _, _, _, _, _ = cnt, i, mem, val, v1, v3, v5 + if Uint64FromInt32(name) >= Uint64FromInt64(502)/Uint64FromInt64(2) || !(_values1[name] != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return int64(-int32(1)) + } else { + if int32(_values1[name]) >= -int32(1) { + return int64(_values1[name]) + } else { + if int32(_values1[name]) < -int32(256) { + Xgetrlimit(tls, int32(_values1[name])&int32(16383), bp) + if (**(**Trlimit)(__ccgo_up(bp))).Frlim_cur == ^Uint64FromUint64(0) { + return int64(-int32(1)) + } + if (**(**Trlimit)(__ccgo_up(bp))).Frlim_cur > uint64(0x7fffffffffffffff) { + v1 = uint64(0x7fffffffffffffff) + } else { + v1 = (**(**Trlimit)(__ccgo_up(bp))).Frlim_cur + } + return Int64FromUint64(v1) + } + } + } + switch Int32FromUint8(Uint8FromInt16(_values1[name])) { + case (-Int32FromInt32(256) | Int32FromInt32(1)) & Int32FromInt32(255): + return int64(200809) + case (-Int32FromInt32(256) | Int32FromInt32(2)) & Int32FromInt32(255): + return int64(ARG_MAX) + case (-Int32FromInt32(256) | Int32FromInt32(3)) & Int32FromInt32(255): + return int64(MQ_PRIO_MAX) + case (-Int32FromInt32(256) | Int32FromInt32(4)) & Int32FromInt32(255): + return Int64FromUint64(X__libc.Fpage_size) + case (-Int32FromInt32(256) | Int32FromInt32(5)) & Int32FromInt32(255): + return int64(SEM_VALUE_MAX) + case (-Int32FromInt32(256) | Int32FromInt32(11)) & Int32FromInt32(255): + return int64(DELAYTIMER_MAX) + case (-Int32FromInt32(256) | Int32FromInt32(6)) & Int32FromInt32(255): + fallthrough + case (-Int32FromInt32(256) | Int32FromInt32(7)) & Int32FromInt32(255): + **(**[128]uint8)(__ccgo_up(bp + 16)) = [128]uint8{ + 0: uint8(1), + } + X__syscall3(tls, int64(SYS_sched_getaffinity), int64(Int32FromInt32(0)), Int64FromUint64(Uint64FromInt64(128)), int64(bp+16)) + v3 = Int32FromInt32(0) + cnt = v3 + i = v3 + for { + if !(Uint64FromInt32(i) < uint64(128)) { + break + } + for { + if !((**(**[128]uint8)(__ccgo_up(bp + 16)))[i] != 0) { + break + } + goto _4 + _4: + ; + v5 = bp + 16 + uintptr(i) + *(*uint8)(unsafe.Pointer(v5)) = uint8(int32(*(*uint8)(unsafe.Pointer(v5))) & (Int32FromUint8((**(**[128]uint8)(__ccgo_up(bp + 16)))[i]) - Int32FromInt32(1))) + cnt = cnt + 1 + } + goto _2 + _2: + ; + i = i + 1 + } + return int64(cnt) + case (-Int32FromInt32(256) | Int32FromInt32(8)) & Int32FromInt32(255): + fallthrough + case (-Int32FromInt32(256) | Int32FromInt32(9)) & Int32FromInt32(255): + X__lsysinfo(tls, bp+144) + if !((**(**Tsysinfo)(__ccgo_up(bp + 144))).Fmem_unit != 0) { + (**(**Tsysinfo)(__ccgo_up(bp + 144))).Fmem_unit = uint32(1) + } + if name == int32(_SC_PHYS_PAGES) { + mem = uint64((**(**Tsysinfo)(__ccgo_up(bp + 144))).Ftotalram) + } else { + mem = uint64((**(**Tsysinfo)(__ccgo_up(bp + 144))).Ffreeram + (**(**Tsysinfo)(__ccgo_up(bp + 144))).Fbufferram) + } + mem = mem * uint64((**(**Tsysinfo)(__ccgo_up(bp + 144))).Fmem_unit) + mem = mem / X__libc.Fpage_size + if mem > uint64(0x7fffffffffffffff) { + v1 = uint64(0x7fffffffffffffff) + } else { + v1 = mem + } + return Int64FromUint64(v1) + case (-Int32FromInt32(256) | Int32FromInt32(12)) & Int32FromInt32(255): + fallthrough + case (-Int32FromInt32(256) | Int32FromInt32(13)) & Int32FromInt32(255): + val = Int64FromUint64(X__getauxval(tls, uint64(AT_MINSIGSTKSZ))) + if val < int64(MINSIGSTKSZ) { + val = int64(MINSIGSTKSZ) + } + if int32(_values1[name]) == -Int32FromInt32(256)|Int32FromInt32(13) { + val = val + int64(Int32FromInt32(SIGSTKSZ)-Int32FromInt32(MINSIGSTKSZ)) + } + return val + case (-Int32FromInt32(256) | Int32FromInt32(10)) & Int32FromInt32(255): + return 0 + } + return int64(_values1[name]) +} + +var _values1 = [251]int16{ + 0: int16(-Int32FromInt32(256) | Int32FromInt32(2)), + 1: int16(-Int32FromInt32(32768) | Int32FromInt32(RLIMIT_NPROC)), + 2: int16(100), + 3: int16(32), + 4: int16(-Int32FromInt32(32768) | Int32FromInt32(RLIMIT_NOFILE)), + 5: int16(-int32(1)), + 6: int16(TZNAME_MAX), + 7: int16(1), + 8: int16(1), + 9: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 10: int16(-int32(1)), + 11: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 12: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 13: int16(-int32(1)), + 14: int16(-int32(1)), + 15: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 16: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 17: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 18: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 19: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 20: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 21: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 22: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 23: int16(-int32(1)), + 24: int16(-int32(1)), + 25: int16(-Int32FromInt32(256) | Int32FromInt32(10)), + 26: int16(-Int32FromInt32(256) | Int32FromInt32(11)), + 27: int16(-int32(1)), + 28: int16(-Int32FromInt32(256) | Int32FromInt32(3)), + 29: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 30: int16(-Int32FromInt32(256) | Int32FromInt32(4)), + 31: int16(Int32FromInt32(_NSIG) - Int32FromInt32(1) - Int32FromInt32(31) - Int32FromInt32(3)), + 32: int16(SEM_NSEMS_MAX), + 33: int16(-Int32FromInt32(256) | Int32FromInt32(5)), + 34: int16(-int32(1)), + 35: int16(-int32(1)), + 36: int16(_POSIX2_BC_BASE_MAX), + 37: int16(_POSIX2_BC_DIM_MAX), + 38: int16(_POSIX2_BC_SCALE_MAX), + 39: int16(_POSIX2_BC_STRING_MAX), + 40: int16(COLL_WEIGHTS_MAX), + 42: int16(-int32(1)), + 43: int16(-int32(1)), + 44: int16(RE_DUP_MAX), + 46: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 47: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 48: int16(-int32(1)), + 49: int16(-int32(1)), + 50: int16(-int32(1)), + 51: int16(-int32(1)), + 52: int16(-int32(1)), + 60: int16(IOV_MAX), + 67: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 68: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 69: int16(-int32(1)), + 70: int16(-int32(1)), + 71: int16(256), + 72: int16(TTY_NAME_MAX), + 73: int16(PTHREAD_DESTRUCTOR_ITERATIONS), + 74: int16(PTHREAD_KEYS_MAX), + 75: int16(PTHREAD_STACK_MIN), + 76: int16(-int32(1)), + 77: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 78: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 79: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 80: int16(-int32(1)), + 81: int16(-int32(1)), + 82: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 83: int16(-Int32FromInt32(256) | Int32FromInt32(6)), + 84: int16(-Int32FromInt32(256) | Int32FromInt32(7)), + 85: int16(-Int32FromInt32(256) | Int32FromInt32(8)), + 86: int16(-Int32FromInt32(256) | Int32FromInt32(9)), + 87: int16(-int32(1)), + 88: int16(-int32(1)), + 89: int16(_XOPEN_VERSION), + 90: int16(_XOPEN_VERSION), + 91: int16(1), + 92: int16(-int32(1)), + 93: int16(1), + 94: int16(1), + 95: int16(-int32(1)), + 97: int16(-int32(1)), + 98: int16(-int32(1)), + 99: int16(-int32(1)), + 100: int16(-int32(1)), + 109: int16(NZERO), + 125: int16(-int32(1)), + 126: int16(-int32(1)), + 127: int16(1), + 128: int16(-int32(1)), + 129: int16(-int32(1)), + 130: int16(-int32(1)), + 131: int16(-int32(1)), + 132: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 133: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 137: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 138: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 139: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 149: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 153: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 154: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 155: int16(1), + 157: int16(1), + 159: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 160: int16(-int32(1)), + 161: int16(-int32(1)), + 164: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 165: int16(-int32(1)), + 168: int16(-int32(1)), + 169: int16(-int32(1)), + 170: int16(-int32(1)), + 171: int16(-int32(1)), + 172: int16(-int32(1)), + 173: int16(SYMLOOP_MAX), + 174: int16(-Int32FromInt32(256) | Int32FromInt32(10)), + 175: int16(-int32(1)), + 176: int16(-int32(1)), + 177: int16(-int32(1)), + 178: int16(1), + 179: int16(-int32(1)), + 180: int16(HOST_NAME_MAX), + 181: int16(-int32(1)), + 182: int16(-int32(1)), + 183: int16(-int32(1)), + 184: int16(-int32(1)), + 235: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 236: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 237: int16(-int32(1)), + 238: int16(-int32(1)), + 239: int16(1), + 240: int16(-int32(1)), + 241: int16(-int32(1)), + 242: int16(-int32(1)), + 243: int16(-int32(1)), + 244: int16(-int32(1)), + 245: int16(-int32(1)), + 246: int16(-Int32FromInt32(256) | Int32FromInt32(10)), + 247: int16(-int32(1)), + 248: int16(-int32(1)), + 249: int16(-Int32FromInt32(256) | Int32FromInt32(12)), + 250: int16(-Int32FromInt32(256) | Int32FromInt32(13)), +} + +type Tcrypt_data = struct { + Finitialized int32 + F__buf [256]int8 +} + +func Xcrypt(tls *TLS, key uintptr, salt uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v salt=%v, (%v:)", tls, key, salt, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__crypt_r(tls, key, salt, uintptr(unsafe.Pointer(&_buf))) +} + +/* This buffer is sufficiently large for all + * currently-supported hash types. It needs to be updated if + * longer hashes are added. The cast to struct crypt_data * is + * purely to meet the public API requirements of the crypt_r + * function; the implementation of crypt_r uses the object + * purely as a char buffer. */ +var _buf [128]int8 + +const BF_N = 16 + +type Tlocale_t = uintptr + +type TBF_word = uint32 + +type TBF_word_signed = int32 + +/* Number of Blowfish rounds, this is also hardcoded into a few places */ + +type TBF_key = [18]TBF_word + +type TBF_ctx = struct { + FPS [0][1042]TBF_word + Fs struct { + FP TBF_key + FS [4][256]TBF_word + } +} + +// C documentation +// +// /* +// * Magic IV for 64 Blowfish encryptions that we do at the end. +// * The string is "OrpheanBeholderScryDoubt" on big-endian. +// */ +var _BF_magic_w = [6]TBF_word{ + 0: uint32(0x4F727068), + 1: uint32(0x65616E42), + 2: uint32(0x65686F6C), + 3: uint32(0x64657253), + 4: uint32(0x63727944), + 5: uint32(0x6F756274), +} + +// C documentation +// +// /* +// * P-box and S-box tables initialized with digits of Pi. +// */ +var _BF_init_state = *(*TBF_ctx)(unsafe.Pointer(&struct { + FP TBF_key + FS [4][256]TBF_word +}{ + FP: TBF_key{ + 0: uint32(0x243f6a88), + 1: uint32(0x85a308d3), + 2: uint32(0x13198a2e), + 3: uint32(0x03707344), + 4: uint32(0xa4093822), + 5: uint32(0x299f31d0), + 6: uint32(0x082efa98), + 7: uint32(0xec4e6c89), + 8: uint32(0x452821e6), + 9: uint32(0x38d01377), + 10: uint32(0xbe5466cf), + 11: uint32(0x34e90c6c), + 12: uint32(0xc0ac29b7), + 13: uint32(0xc97c50dd), + 14: uint32(0x3f84d5b5), + 15: uint32(0xb5470917), + 16: uint32(0x9216d5d9), + 17: uint32(0x8979fb1b), + }, + FS: [4][256]TBF_word{ + 0: { + 0: uint32(0xd1310ba6), + 1: uint32(0x98dfb5ac), + 2: uint32(0x2ffd72db), + 3: uint32(0xd01adfb7), + 4: uint32(0xb8e1afed), + 5: uint32(0x6a267e96), + 6: uint32(0xba7c9045), + 7: uint32(0xf12c7f99), + 8: uint32(0x24a19947), + 9: uint32(0xb3916cf7), + 10: uint32(0x0801f2e2), + 11: uint32(0x858efc16), + 12: uint32(0x636920d8), + 13: uint32(0x71574e69), + 14: uint32(0xa458fea3), + 15: uint32(0xf4933d7e), + 16: uint32(0x0d95748f), + 17: uint32(0x728eb658), + 18: uint32(0x718bcd58), + 19: uint32(0x82154aee), + 20: uint32(0x7b54a41d), + 21: uint32(0xc25a59b5), + 22: uint32(0x9c30d539), + 23: uint32(0x2af26013), + 24: uint32(0xc5d1b023), + 25: uint32(0x286085f0), + 26: uint32(0xca417918), + 27: uint32(0xb8db38ef), + 28: uint32(0x8e79dcb0), + 29: uint32(0x603a180e), + 30: uint32(0x6c9e0e8b), + 31: uint32(0xb01e8a3e), + 32: uint32(0xd71577c1), + 33: uint32(0xbd314b27), + 34: uint32(0x78af2fda), + 35: uint32(0x55605c60), + 36: uint32(0xe65525f3), + 37: uint32(0xaa55ab94), + 38: uint32(0x57489862), + 39: uint32(0x63e81440), + 40: uint32(0x55ca396a), + 41: uint32(0x2aab10b6), + 42: uint32(0xb4cc5c34), + 43: uint32(0x1141e8ce), + 44: uint32(0xa15486af), + 45: uint32(0x7c72e993), + 46: uint32(0xb3ee1411), + 47: uint32(0x636fbc2a), + 48: uint32(0x2ba9c55d), + 49: uint32(0x741831f6), + 50: uint32(0xce5c3e16), + 51: uint32(0x9b87931e), + 52: uint32(0xafd6ba33), + 53: uint32(0x6c24cf5c), + 54: uint32(0x7a325381), + 55: uint32(0x28958677), + 56: uint32(0x3b8f4898), + 57: uint32(0x6b4bb9af), + 58: uint32(0xc4bfe81b), + 59: uint32(0x66282193), + 60: uint32(0x61d809cc), + 61: uint32(0xfb21a991), + 62: uint32(0x487cac60), + 63: uint32(0x5dec8032), + 64: uint32(0xef845d5d), + 65: uint32(0xe98575b1), + 66: uint32(0xdc262302), + 67: uint32(0xeb651b88), + 68: uint32(0x23893e81), + 69: uint32(0xd396acc5), + 70: uint32(0x0f6d6ff3), + 71: uint32(0x83f44239), + 72: uint32(0x2e0b4482), + 73: uint32(0xa4842004), + 74: uint32(0x69c8f04a), + 75: uint32(0x9e1f9b5e), + 76: uint32(0x21c66842), + 77: uint32(0xf6e96c9a), + 78: uint32(0x670c9c61), + 79: uint32(0xabd388f0), + 80: uint32(0x6a51a0d2), + 81: uint32(0xd8542f68), + 82: uint32(0x960fa728), + 83: uint32(0xab5133a3), + 84: uint32(0x6eef0b6c), + 85: uint32(0x137a3be4), + 86: uint32(0xba3bf050), + 87: uint32(0x7efb2a98), + 88: uint32(0xa1f1651d), + 89: uint32(0x39af0176), + 90: uint32(0x66ca593e), + 91: uint32(0x82430e88), + 92: uint32(0x8cee8619), + 93: uint32(0x456f9fb4), + 94: uint32(0x7d84a5c3), + 95: uint32(0x3b8b5ebe), + 96: uint32(0xe06f75d8), + 97: uint32(0x85c12073), + 98: uint32(0x401a449f), + 99: uint32(0x56c16aa6), + 100: uint32(0x4ed3aa62), + 101: uint32(0x363f7706), + 102: uint32(0x1bfedf72), + 103: uint32(0x429b023d), + 104: uint32(0x37d0d724), + 105: uint32(0xd00a1248), + 106: uint32(0xdb0fead3), + 107: uint32(0x49f1c09b), + 108: uint32(0x075372c9), + 109: uint32(0x80991b7b), + 110: uint32(0x25d479d8), + 111: uint32(0xf6e8def7), + 112: uint32(0xe3fe501a), + 113: uint32(0xb6794c3b), + 114: uint32(0x976ce0bd), + 115: uint32(0x04c006ba), + 116: uint32(0xc1a94fb6), + 117: uint32(0x409f60c4), + 118: uint32(0x5e5c9ec2), + 119: uint32(0x196a2463), + 120: uint32(0x68fb6faf), + 121: uint32(0x3e6c53b5), + 122: uint32(0x1339b2eb), + 123: uint32(0x3b52ec6f), + 124: uint32(0x6dfc511f), + 125: uint32(0x9b30952c), + 126: uint32(0xcc814544), + 127: uint32(0xaf5ebd09), + 128: uint32(0xbee3d004), + 129: uint32(0xde334afd), + 130: uint32(0x660f2807), + 131: uint32(0x192e4bb3), + 132: uint32(0xc0cba857), + 133: uint32(0x45c8740f), + 134: uint32(0xd20b5f39), + 135: uint32(0xb9d3fbdb), + 136: uint32(0x5579c0bd), + 137: uint32(0x1a60320a), + 138: uint32(0xd6a100c6), + 139: uint32(0x402c7279), + 140: uint32(0x679f25fe), + 141: uint32(0xfb1fa3cc), + 142: uint32(0x8ea5e9f8), + 143: uint32(0xdb3222f8), + 144: uint32(0x3c7516df), + 145: uint32(0xfd616b15), + 146: uint32(0x2f501ec8), + 147: uint32(0xad0552ab), + 148: uint32(0x323db5fa), + 149: uint32(0xfd238760), + 150: uint32(0x53317b48), + 151: uint32(0x3e00df82), + 152: uint32(0x9e5c57bb), + 153: uint32(0xca6f8ca0), + 154: uint32(0x1a87562e), + 155: uint32(0xdf1769db), + 156: uint32(0xd542a8f6), + 157: uint32(0x287effc3), + 158: uint32(0xac6732c6), + 159: uint32(0x8c4f5573), + 160: uint32(0x695b27b0), + 161: uint32(0xbbca58c8), + 162: uint32(0xe1ffa35d), + 163: uint32(0xb8f011a0), + 164: uint32(0x10fa3d98), + 165: uint32(0xfd2183b8), + 166: uint32(0x4afcb56c), + 167: uint32(0x2dd1d35b), + 168: uint32(0x9a53e479), + 169: uint32(0xb6f84565), + 170: uint32(0xd28e49bc), + 171: uint32(0x4bfb9790), + 172: uint32(0xe1ddf2da), + 173: uint32(0xa4cb7e33), + 174: uint32(0x62fb1341), + 175: uint32(0xcee4c6e8), + 176: uint32(0xef20cada), + 177: uint32(0x36774c01), + 178: uint32(0xd07e9efe), + 179: uint32(0x2bf11fb4), + 180: uint32(0x95dbda4d), + 181: uint32(0xae909198), + 182: uint32(0xeaad8e71), + 183: uint32(0x6b93d5a0), + 184: uint32(0xd08ed1d0), + 185: uint32(0xafc725e0), + 186: uint32(0x8e3c5b2f), + 187: uint32(0x8e7594b7), + 188: uint32(0x8ff6e2fb), + 189: uint32(0xf2122b64), + 190: uint32(0x8888b812), + 191: uint32(0x900df01c), + 192: uint32(0x4fad5ea0), + 193: uint32(0x688fc31c), + 194: uint32(0xd1cff191), + 195: uint32(0xb3a8c1ad), + 196: uint32(0x2f2f2218), + 197: uint32(0xbe0e1777), + 198: uint32(0xea752dfe), + 199: uint32(0x8b021fa1), + 200: uint32(0xe5a0cc0f), + 201: uint32(0xb56f74e8), + 202: uint32(0x18acf3d6), + 203: uint32(0xce89e299), + 204: uint32(0xb4a84fe0), + 205: uint32(0xfd13e0b7), + 206: uint32(0x7cc43b81), + 207: uint32(0xd2ada8d9), + 208: uint32(0x165fa266), + 209: uint32(0x80957705), + 210: uint32(0x93cc7314), + 211: uint32(0x211a1477), + 212: uint32(0xe6ad2065), + 213: uint32(0x77b5fa86), + 214: uint32(0xc75442f5), + 215: uint32(0xfb9d35cf), + 216: uint32(0xebcdaf0c), + 217: uint32(0x7b3e89a0), + 218: uint32(0xd6411bd3), + 219: uint32(0xae1e7e49), + 220: uint32(0x00250e2d), + 221: uint32(0x2071b35e), + 222: uint32(0x226800bb), + 223: uint32(0x57b8e0af), + 224: uint32(0x2464369b), + 225: uint32(0xf009b91e), + 226: uint32(0x5563911d), + 227: uint32(0x59dfa6aa), + 228: uint32(0x78c14389), + 229: uint32(0xd95a537f), + 230: uint32(0x207d5ba2), + 231: uint32(0x02e5b9c5), + 232: uint32(0x83260376), + 233: uint32(0x6295cfa9), + 234: uint32(0x11c81968), + 235: uint32(0x4e734a41), + 236: uint32(0xb3472dca), + 237: uint32(0x7b14a94a), + 238: uint32(0x1b510052), + 239: uint32(0x9a532915), + 240: uint32(0xd60f573f), + 241: uint32(0xbc9bc6e4), + 242: uint32(0x2b60a476), + 243: uint32(0x81e67400), + 244: uint32(0x08ba6fb5), + 245: uint32(0x571be91f), + 246: uint32(0xf296ec6b), + 247: uint32(0x2a0dd915), + 248: uint32(0xb6636521), + 249: uint32(0xe7b9f9b6), + 250: uint32(0xff34052e), + 251: uint32(0xc5855664), + 252: uint32(0x53b02d5d), + 253: uint32(0xa99f8fa1), + 254: uint32(0x08ba4799), + 255: uint32(0x6e85076a), + }, + 1: { + 0: uint32(0x4b7a70e9), + 1: uint32(0xb5b32944), + 2: uint32(0xdb75092e), + 3: uint32(0xc4192623), + 4: uint32(0xad6ea6b0), + 5: uint32(0x49a7df7d), + 6: uint32(0x9cee60b8), + 7: uint32(0x8fedb266), + 8: uint32(0xecaa8c71), + 9: uint32(0x699a17ff), + 10: uint32(0x5664526c), + 11: uint32(0xc2b19ee1), + 12: uint32(0x193602a5), + 13: uint32(0x75094c29), + 14: uint32(0xa0591340), + 15: uint32(0xe4183a3e), + 16: uint32(0x3f54989a), + 17: uint32(0x5b429d65), + 18: uint32(0x6b8fe4d6), + 19: uint32(0x99f73fd6), + 20: uint32(0xa1d29c07), + 21: uint32(0xefe830f5), + 22: uint32(0x4d2d38e6), + 23: uint32(0xf0255dc1), + 24: uint32(0x4cdd2086), + 25: uint32(0x8470eb26), + 26: uint32(0x6382e9c6), + 27: uint32(0x021ecc5e), + 28: uint32(0x09686b3f), + 29: uint32(0x3ebaefc9), + 30: uint32(0x3c971814), + 31: uint32(0x6b6a70a1), + 32: uint32(0x687f3584), + 33: uint32(0x52a0e286), + 34: uint32(0xb79c5305), + 35: uint32(0xaa500737), + 36: uint32(0x3e07841c), + 37: uint32(0x7fdeae5c), + 38: uint32(0x8e7d44ec), + 39: uint32(0x5716f2b8), + 40: uint32(0xb03ada37), + 41: uint32(0xf0500c0d), + 42: uint32(0xf01c1f04), + 43: uint32(0x0200b3ff), + 44: uint32(0xae0cf51a), + 45: uint32(0x3cb574b2), + 46: uint32(0x25837a58), + 47: uint32(0xdc0921bd), + 48: uint32(0xd19113f9), + 49: uint32(0x7ca92ff6), + 50: uint32(0x94324773), + 51: uint32(0x22f54701), + 52: uint32(0x3ae5e581), + 53: uint32(0x37c2dadc), + 54: uint32(0xc8b57634), + 55: uint32(0x9af3dda7), + 56: uint32(0xa9446146), + 57: uint32(0x0fd0030e), + 58: uint32(0xecc8c73e), + 59: uint32(0xa4751e41), + 60: uint32(0xe238cd99), + 61: uint32(0x3bea0e2f), + 62: uint32(0x3280bba1), + 63: uint32(0x183eb331), + 64: uint32(0x4e548b38), + 65: uint32(0x4f6db908), + 66: uint32(0x6f420d03), + 67: uint32(0xf60a04bf), + 68: uint32(0x2cb81290), + 69: uint32(0x24977c79), + 70: uint32(0x5679b072), + 71: uint32(0xbcaf89af), + 72: uint32(0xde9a771f), + 73: uint32(0xd9930810), + 74: uint32(0xb38bae12), + 75: uint32(0xdccf3f2e), + 76: uint32(0x5512721f), + 77: uint32(0x2e6b7124), + 78: uint32(0x501adde6), + 79: uint32(0x9f84cd87), + 80: uint32(0x7a584718), + 81: uint32(0x7408da17), + 82: uint32(0xbc9f9abc), + 83: uint32(0xe94b7d8c), + 84: uint32(0xec7aec3a), + 85: uint32(0xdb851dfa), + 86: uint32(0x63094366), + 87: uint32(0xc464c3d2), + 88: uint32(0xef1c1847), + 89: uint32(0x3215d908), + 90: uint32(0xdd433b37), + 91: uint32(0x24c2ba16), + 92: uint32(0x12a14d43), + 93: uint32(0x2a65c451), + 94: uint32(0x50940002), + 95: uint32(0x133ae4dd), + 96: uint32(0x71dff89e), + 97: uint32(0x10314e55), + 98: uint32(0x81ac77d6), + 99: uint32(0x5f11199b), + 100: uint32(0x043556f1), + 101: uint32(0xd7a3c76b), + 102: uint32(0x3c11183b), + 103: uint32(0x5924a509), + 104: uint32(0xf28fe6ed), + 105: uint32(0x97f1fbfa), + 106: uint32(0x9ebabf2c), + 107: uint32(0x1e153c6e), + 108: uint32(0x86e34570), + 109: uint32(0xeae96fb1), + 110: uint32(0x860e5e0a), + 111: uint32(0x5a3e2ab3), + 112: uint32(0x771fe71c), + 113: uint32(0x4e3d06fa), + 114: uint32(0x2965dcb9), + 115: uint32(0x99e71d0f), + 116: uint32(0x803e89d6), + 117: uint32(0x5266c825), + 118: uint32(0x2e4cc978), + 119: uint32(0x9c10b36a), + 120: uint32(0xc6150eba), + 121: uint32(0x94e2ea78), + 122: uint32(0xa5fc3c53), + 123: uint32(0x1e0a2df4), + 124: uint32(0xf2f74ea7), + 125: uint32(0x361d2b3d), + 126: uint32(0x1939260f), + 127: uint32(0x19c27960), + 128: uint32(0x5223a708), + 129: uint32(0xf71312b6), + 130: uint32(0xebadfe6e), + 131: uint32(0xeac31f66), + 132: uint32(0xe3bc4595), + 133: uint32(0xa67bc883), + 134: uint32(0xb17f37d1), + 135: uint32(0x018cff28), + 136: uint32(0xc332ddef), + 137: uint32(0xbe6c5aa5), + 138: uint32(0x65582185), + 139: uint32(0x68ab9802), + 140: uint32(0xeecea50f), + 141: uint32(0xdb2f953b), + 142: uint32(0x2aef7dad), + 143: uint32(0x5b6e2f84), + 144: uint32(0x1521b628), + 145: uint32(0x29076170), + 146: uint32(0xecdd4775), + 147: uint32(0x619f1510), + 148: uint32(0x13cca830), + 149: uint32(0xeb61bd96), + 150: uint32(0x0334fe1e), + 151: uint32(0xaa0363cf), + 152: uint32(0xb5735c90), + 153: uint32(0x4c70a239), + 154: uint32(0xd59e9e0b), + 155: uint32(0xcbaade14), + 156: uint32(0xeecc86bc), + 157: uint32(0x60622ca7), + 158: uint32(0x9cab5cab), + 159: uint32(0xb2f3846e), + 160: uint32(0x648b1eaf), + 161: uint32(0x19bdf0ca), + 162: uint32(0xa02369b9), + 163: uint32(0x655abb50), + 164: uint32(0x40685a32), + 165: uint32(0x3c2ab4b3), + 166: uint32(0x319ee9d5), + 167: uint32(0xc021b8f7), + 168: uint32(0x9b540b19), + 169: uint32(0x875fa099), + 170: uint32(0x95f7997e), + 171: uint32(0x623d7da8), + 172: uint32(0xf837889a), + 173: uint32(0x97e32d77), + 174: uint32(0x11ed935f), + 175: uint32(0x16681281), + 176: uint32(0x0e358829), + 177: uint32(0xc7e61fd6), + 178: uint32(0x96dedfa1), + 179: uint32(0x7858ba99), + 180: uint32(0x57f584a5), + 181: uint32(0x1b227263), + 182: uint32(0x9b83c3ff), + 183: uint32(0x1ac24696), + 184: uint32(0xcdb30aeb), + 185: uint32(0x532e3054), + 186: uint32(0x8fd948e4), + 187: uint32(0x6dbc3128), + 188: uint32(0x58ebf2ef), + 189: uint32(0x34c6ffea), + 190: uint32(0xfe28ed61), + 191: uint32(0xee7c3c73), + 192: uint32(0x5d4a14d9), + 193: uint32(0xe864b7e3), + 194: uint32(0x42105d14), + 195: uint32(0x203e13e0), + 196: uint32(0x45eee2b6), + 197: uint32(0xa3aaabea), + 198: uint32(0xdb6c4f15), + 199: uint32(0xfacb4fd0), + 200: uint32(0xc742f442), + 201: uint32(0xef6abbb5), + 202: uint32(0x654f3b1d), + 203: uint32(0x41cd2105), + 204: uint32(0xd81e799e), + 205: uint32(0x86854dc7), + 206: uint32(0xe44b476a), + 207: uint32(0x3d816250), + 208: uint32(0xcf62a1f2), + 209: uint32(0x5b8d2646), + 210: uint32(0xfc8883a0), + 211: uint32(0xc1c7b6a3), + 212: uint32(0x7f1524c3), + 213: uint32(0x69cb7492), + 214: uint32(0x47848a0b), + 215: uint32(0x5692b285), + 216: uint32(0x095bbf00), + 217: uint32(0xad19489d), + 218: uint32(0x1462b174), + 219: uint32(0x23820e00), + 220: uint32(0x58428d2a), + 221: uint32(0x0c55f5ea), + 222: uint32(0x1dadf43e), + 223: uint32(0x233f7061), + 224: uint32(0x3372f092), + 225: uint32(0x8d937e41), + 226: uint32(0xd65fecf1), + 227: uint32(0x6c223bdb), + 228: uint32(0x7cde3759), + 229: uint32(0xcbee7460), + 230: uint32(0x4085f2a7), + 231: uint32(0xce77326e), + 232: uint32(0xa6078084), + 233: uint32(0x19f8509e), + 234: uint32(0xe8efd855), + 235: uint32(0x61d99735), + 236: uint32(0xa969a7aa), + 237: uint32(0xc50c06c2), + 238: uint32(0x5a04abfc), + 239: uint32(0x800bcadc), + 240: uint32(0x9e447a2e), + 241: uint32(0xc3453484), + 242: uint32(0xfdd56705), + 243: uint32(0x0e1e9ec9), + 244: uint32(0xdb73dbd3), + 245: uint32(0x105588cd), + 246: uint32(0x675fda79), + 247: uint32(0xe3674340), + 248: uint32(0xc5c43465), + 249: uint32(0x713e38d8), + 250: uint32(0x3d28f89e), + 251: uint32(0xf16dff20), + 252: uint32(0x153e21e7), + 253: uint32(0x8fb03d4a), + 254: uint32(0xe6e39f2b), + 255: uint32(0xdb83adf7), + }, + 2: { + 0: uint32(0xe93d5a68), + 1: uint32(0x948140f7), + 2: uint32(0xf64c261c), + 3: uint32(0x94692934), + 4: uint32(0x411520f7), + 5: uint32(0x7602d4f7), + 6: uint32(0xbcf46b2e), + 7: uint32(0xd4a20068), + 8: uint32(0xd4082471), + 9: uint32(0x3320f46a), + 10: uint32(0x43b7d4b7), + 11: uint32(0x500061af), + 12: uint32(0x1e39f62e), + 13: uint32(0x97244546), + 14: uint32(0x14214f74), + 15: uint32(0xbf8b8840), + 16: uint32(0x4d95fc1d), + 17: uint32(0x96b591af), + 18: uint32(0x70f4ddd3), + 19: uint32(0x66a02f45), + 20: uint32(0xbfbc09ec), + 21: uint32(0x03bd9785), + 22: uint32(0x7fac6dd0), + 23: uint32(0x31cb8504), + 24: uint32(0x96eb27b3), + 25: uint32(0x55fd3941), + 26: uint32(0xda2547e6), + 27: uint32(0xabca0a9a), + 28: uint32(0x28507825), + 29: uint32(0x530429f4), + 30: uint32(0x0a2c86da), + 31: uint32(0xe9b66dfb), + 32: uint32(0x68dc1462), + 33: uint32(0xd7486900), + 34: uint32(0x680ec0a4), + 35: uint32(0x27a18dee), + 36: uint32(0x4f3ffea2), + 37: uint32(0xe887ad8c), + 38: uint32(0xb58ce006), + 39: uint32(0x7af4d6b6), + 40: uint32(0xaace1e7c), + 41: uint32(0xd3375fec), + 42: uint32(0xce78a399), + 43: uint32(0x406b2a42), + 44: uint32(0x20fe9e35), + 45: uint32(0xd9f385b9), + 46: uint32(0xee39d7ab), + 47: uint32(0x3b124e8b), + 48: uint32(0x1dc9faf7), + 49: uint32(0x4b6d1856), + 50: uint32(0x26a36631), + 51: uint32(0xeae397b2), + 52: uint32(0x3a6efa74), + 53: uint32(0xdd5b4332), + 54: uint32(0x6841e7f7), + 55: uint32(0xca7820fb), + 56: uint32(0xfb0af54e), + 57: uint32(0xd8feb397), + 58: uint32(0x454056ac), + 59: uint32(0xba489527), + 60: uint32(0x55533a3a), + 61: uint32(0x20838d87), + 62: uint32(0xfe6ba9b7), + 63: uint32(0xd096954b), + 64: uint32(0x55a867bc), + 65: uint32(0xa1159a58), + 66: uint32(0xcca92963), + 67: uint32(0x99e1db33), + 68: uint32(0xa62a4a56), + 69: uint32(0x3f3125f9), + 70: uint32(0x5ef47e1c), + 71: uint32(0x9029317c), + 72: uint32(0xfdf8e802), + 73: uint32(0x04272f70), + 74: uint32(0x80bb155c), + 75: uint32(0x05282ce3), + 76: uint32(0x95c11548), + 77: uint32(0xe4c66d22), + 78: uint32(0x48c1133f), + 79: uint32(0xc70f86dc), + 80: uint32(0x07f9c9ee), + 81: uint32(0x41041f0f), + 82: uint32(0x404779a4), + 83: uint32(0x5d886e17), + 84: uint32(0x325f51eb), + 85: uint32(0xd59bc0d1), + 86: uint32(0xf2bcc18f), + 87: uint32(0x41113564), + 88: uint32(0x257b7834), + 89: uint32(0x602a9c60), + 90: uint32(0xdff8e8a3), + 91: uint32(0x1f636c1b), + 92: uint32(0x0e12b4c2), + 93: uint32(0x02e1329e), + 94: uint32(0xaf664fd1), + 95: uint32(0xcad18115), + 96: uint32(0x6b2395e0), + 97: uint32(0x333e92e1), + 98: uint32(0x3b240b62), + 99: uint32(0xeebeb922), + 100: uint32(0x85b2a20e), + 101: uint32(0xe6ba0d99), + 102: uint32(0xde720c8c), + 103: uint32(0x2da2f728), + 104: uint32(0xd0127845), + 105: uint32(0x95b794fd), + 106: uint32(0x647d0862), + 107: uint32(0xe7ccf5f0), + 108: uint32(0x5449a36f), + 109: uint32(0x877d48fa), + 110: uint32(0xc39dfd27), + 111: uint32(0xf33e8d1e), + 112: uint32(0x0a476341), + 113: uint32(0x992eff74), + 114: uint32(0x3a6f6eab), + 115: uint32(0xf4f8fd37), + 116: uint32(0xa812dc60), + 117: uint32(0xa1ebddf8), + 118: uint32(0x991be14c), + 119: uint32(0xdb6e6b0d), + 120: uint32(0xc67b5510), + 121: uint32(0x6d672c37), + 122: uint32(0x2765d43b), + 123: uint32(0xdcd0e804), + 124: uint32(0xf1290dc7), + 125: uint32(0xcc00ffa3), + 126: uint32(0xb5390f92), + 127: uint32(0x690fed0b), + 128: uint32(0x667b9ffb), + 129: uint32(0xcedb7d9c), + 130: uint32(0xa091cf0b), + 131: uint32(0xd9155ea3), + 132: uint32(0xbb132f88), + 133: uint32(0x515bad24), + 134: uint32(0x7b9479bf), + 135: uint32(0x763bd6eb), + 136: uint32(0x37392eb3), + 137: uint32(0xcc115979), + 138: uint32(0x8026e297), + 139: uint32(0xf42e312d), + 140: uint32(0x6842ada7), + 141: uint32(0xc66a2b3b), + 142: uint32(0x12754ccc), + 143: uint32(0x782ef11c), + 144: uint32(0x6a124237), + 145: uint32(0xb79251e7), + 146: uint32(0x06a1bbe6), + 147: uint32(0x4bfb6350), + 148: uint32(0x1a6b1018), + 149: uint32(0x11caedfa), + 150: uint32(0x3d25bdd8), + 151: uint32(0xe2e1c3c9), + 152: uint32(0x44421659), + 153: uint32(0x0a121386), + 154: uint32(0xd90cec6e), + 155: uint32(0xd5abea2a), + 156: uint32(0x64af674e), + 157: uint32(0xda86a85f), + 158: uint32(0xbebfe988), + 159: uint32(0x64e4c3fe), + 160: uint32(0x9dbc8057), + 161: uint32(0xf0f7c086), + 162: uint32(0x60787bf8), + 163: uint32(0x6003604d), + 164: uint32(0xd1fd8346), + 165: uint32(0xf6381fb0), + 166: uint32(0x7745ae04), + 167: uint32(0xd736fccc), + 168: uint32(0x83426b33), + 169: uint32(0xf01eab71), + 170: uint32(0xb0804187), + 171: uint32(0x3c005e5f), + 172: uint32(0x77a057be), + 173: uint32(0xbde8ae24), + 174: uint32(0x55464299), + 175: uint32(0xbf582e61), + 176: uint32(0x4e58f48f), + 177: uint32(0xf2ddfda2), + 178: uint32(0xf474ef38), + 179: uint32(0x8789bdc2), + 180: uint32(0x5366f9c3), + 181: uint32(0xc8b38e74), + 182: uint32(0xb475f255), + 183: uint32(0x46fcd9b9), + 184: uint32(0x7aeb2661), + 185: uint32(0x8b1ddf84), + 186: uint32(0x846a0e79), + 187: uint32(0x915f95e2), + 188: uint32(0x466e598e), + 189: uint32(0x20b45770), + 190: uint32(0x8cd55591), + 191: uint32(0xc902de4c), + 192: uint32(0xb90bace1), + 193: uint32(0xbb8205d0), + 194: uint32(0x11a86248), + 195: uint32(0x7574a99e), + 196: uint32(0xb77f19b6), + 197: uint32(0xe0a9dc09), + 198: uint32(0x662d09a1), + 199: uint32(0xc4324633), + 200: uint32(0xe85a1f02), + 201: uint32(0x09f0be8c), + 202: uint32(0x4a99a025), + 203: uint32(0x1d6efe10), + 204: uint32(0x1ab93d1d), + 205: uint32(0x0ba5a4df), + 206: uint32(0xa186f20f), + 207: uint32(0x2868f169), + 208: uint32(0xdcb7da83), + 209: uint32(0x573906fe), + 210: uint32(0xa1e2ce9b), + 211: uint32(0x4fcd7f52), + 212: uint32(0x50115e01), + 213: uint32(0xa70683fa), + 214: uint32(0xa002b5c4), + 215: uint32(0x0de6d027), + 216: uint32(0x9af88c27), + 217: uint32(0x773f8641), + 218: uint32(0xc3604c06), + 219: uint32(0x61a806b5), + 220: uint32(0xf0177a28), + 221: uint32(0xc0f586e0), + 222: uint32(0x006058aa), + 223: uint32(0x30dc7d62), + 224: uint32(0x11e69ed7), + 225: uint32(0x2338ea63), + 226: uint32(0x53c2dd94), + 227: uint32(0xc2c21634), + 228: uint32(0xbbcbee56), + 229: uint32(0x90bcb6de), + 230: uint32(0xebfc7da1), + 231: uint32(0xce591d76), + 232: uint32(0x6f05e409), + 233: uint32(0x4b7c0188), + 234: uint32(0x39720a3d), + 235: uint32(0x7c927c24), + 236: uint32(0x86e3725f), + 237: uint32(0x724d9db9), + 238: uint32(0x1ac15bb4), + 239: uint32(0xd39eb8fc), + 240: uint32(0xed545578), + 241: uint32(0x08fca5b5), + 242: uint32(0xd83d7cd3), + 243: uint32(0x4dad0fc4), + 244: uint32(0x1e50ef5e), + 245: uint32(0xb161e6f8), + 246: uint32(0xa28514d9), + 247: uint32(0x6c51133c), + 248: uint32(0x6fd5c7e7), + 249: uint32(0x56e14ec4), + 250: uint32(0x362abfce), + 251: uint32(0xddc6c837), + 252: uint32(0xd79a3234), + 253: uint32(0x92638212), + 254: uint32(0x670efa8e), + 255: uint32(0x406000e0), + }, + 3: { + 0: uint32(0x3a39ce37), + 1: uint32(0xd3faf5cf), + 2: uint32(0xabc27737), + 3: uint32(0x5ac52d1b), + 4: uint32(0x5cb0679e), + 5: uint32(0x4fa33742), + 6: uint32(0xd3822740), + 7: uint32(0x99bc9bbe), + 8: uint32(0xd5118e9d), + 9: uint32(0xbf0f7315), + 10: uint32(0xd62d1c7e), + 11: uint32(0xc700c47b), + 12: uint32(0xb78c1b6b), + 13: uint32(0x21a19045), + 14: uint32(0xb26eb1be), + 15: uint32(0x6a366eb4), + 16: uint32(0x5748ab2f), + 17: uint32(0xbc946e79), + 18: uint32(0xc6a376d2), + 19: uint32(0x6549c2c8), + 20: uint32(0x530ff8ee), + 21: uint32(0x468dde7d), + 22: uint32(0xd5730a1d), + 23: uint32(0x4cd04dc6), + 24: uint32(0x2939bbdb), + 25: uint32(0xa9ba4650), + 26: uint32(0xac9526e8), + 27: uint32(0xbe5ee304), + 28: uint32(0xa1fad5f0), + 29: uint32(0x6a2d519a), + 30: uint32(0x63ef8ce2), + 31: uint32(0x9a86ee22), + 32: uint32(0xc089c2b8), + 33: uint32(0x43242ef6), + 34: uint32(0xa51e03aa), + 35: uint32(0x9cf2d0a4), + 36: uint32(0x83c061ba), + 37: uint32(0x9be96a4d), + 38: uint32(0x8fe51550), + 39: uint32(0xba645bd6), + 40: uint32(0x2826a2f9), + 41: uint32(0xa73a3ae1), + 42: uint32(0x4ba99586), + 43: uint32(0xef5562e9), + 44: uint32(0xc72fefd3), + 45: uint32(0xf752f7da), + 46: uint32(0x3f046f69), + 47: uint32(0x77fa0a59), + 48: uint32(0x80e4a915), + 49: uint32(0x87b08601), + 50: uint32(0x9b09e6ad), + 51: uint32(0x3b3ee593), + 52: uint32(0xe990fd5a), + 53: uint32(0x9e34d797), + 54: uint32(0x2cf0b7d9), + 55: uint32(0x022b8b51), + 56: uint32(0x96d5ac3a), + 57: uint32(0x017da67d), + 58: uint32(0xd1cf3ed6), + 59: uint32(0x7c7d2d28), + 60: uint32(0x1f9f25cf), + 61: uint32(0xadf2b89b), + 62: uint32(0x5ad6b472), + 63: uint32(0x5a88f54c), + 64: uint32(0xe029ac71), + 65: uint32(0xe019a5e6), + 66: uint32(0x47b0acfd), + 67: uint32(0xed93fa9b), + 68: uint32(0xe8d3c48d), + 69: uint32(0x283b57cc), + 70: uint32(0xf8d56629), + 71: uint32(0x79132e28), + 72: uint32(0x785f0191), + 73: uint32(0xed756055), + 74: uint32(0xf7960e44), + 75: uint32(0xe3d35e8c), + 76: uint32(0x15056dd4), + 77: uint32(0x88f46dba), + 78: uint32(0x03a16125), + 79: uint32(0x0564f0bd), + 80: uint32(0xc3eb9e15), + 81: uint32(0x3c9057a2), + 82: uint32(0x97271aec), + 83: uint32(0xa93a072a), + 84: uint32(0x1b3f6d9b), + 85: uint32(0x1e6321f5), + 86: uint32(0xf59c66fb), + 87: uint32(0x26dcf319), + 88: uint32(0x7533d928), + 89: uint32(0xb155fdf5), + 90: uint32(0x03563482), + 91: uint32(0x8aba3cbb), + 92: uint32(0x28517711), + 93: uint32(0xc20ad9f8), + 94: uint32(0xabcc5167), + 95: uint32(0xccad925f), + 96: uint32(0x4de81751), + 97: uint32(0x3830dc8e), + 98: uint32(0x379d5862), + 99: uint32(0x9320f991), + 100: uint32(0xea7a90c2), + 101: uint32(0xfb3e7bce), + 102: uint32(0x5121ce64), + 103: uint32(0x774fbe32), + 104: uint32(0xa8b6e37e), + 105: uint32(0xc3293d46), + 106: uint32(0x48de5369), + 107: uint32(0x6413e680), + 108: uint32(0xa2ae0810), + 109: uint32(0xdd6db224), + 110: uint32(0x69852dfd), + 111: uint32(0x09072166), + 112: uint32(0xb39a460a), + 113: uint32(0x6445c0dd), + 114: uint32(0x586cdecf), + 115: uint32(0x1c20c8ae), + 116: uint32(0x5bbef7dd), + 117: uint32(0x1b588d40), + 118: uint32(0xccd2017f), + 119: uint32(0x6bb4e3bb), + 120: uint32(0xdda26a7e), + 121: uint32(0x3a59ff45), + 122: uint32(0x3e350a44), + 123: uint32(0xbcb4cdd5), + 124: uint32(0x72eacea8), + 125: uint32(0xfa6484bb), + 126: uint32(0x8d6612ae), + 127: uint32(0xbf3c6f47), + 128: uint32(0xd29be463), + 129: uint32(0x542f5d9e), + 130: uint32(0xaec2771b), + 131: uint32(0xf64e6370), + 132: uint32(0x740e0d8d), + 133: uint32(0xe75b1357), + 134: uint32(0xf8721671), + 135: uint32(0xaf537d5d), + 136: uint32(0x4040cb08), + 137: uint32(0x4eb4e2cc), + 138: uint32(0x34d2466a), + 139: uint32(0x0115af84), + 140: uint32(0xe1b00428), + 141: uint32(0x95983a1d), + 142: uint32(0x06b89fb4), + 143: uint32(0xce6ea048), + 144: uint32(0x6f3f3b82), + 145: uint32(0x3520ab82), + 146: uint32(0x011a1d4b), + 147: uint32(0x277227f8), + 148: uint32(0x611560b1), + 149: uint32(0xe7933fdc), + 150: uint32(0xbb3a792b), + 151: uint32(0x344525bd), + 152: uint32(0xa08839e1), + 153: uint32(0x51ce794b), + 154: uint32(0x2f32c9b7), + 155: uint32(0xa01fbac9), + 156: uint32(0xe01cc87e), + 157: uint32(0xbcc7d1f6), + 158: uint32(0xcf0111c3), + 159: uint32(0xa1e8aac7), + 160: uint32(0x1a908749), + 161: uint32(0xd44fbd9a), + 162: uint32(0xd0dadecb), + 163: uint32(0xd50ada38), + 164: uint32(0x0339c32a), + 165: uint32(0xc6913667), + 166: uint32(0x8df9317c), + 167: uint32(0xe0b12b4f), + 168: uint32(0xf79e59b7), + 169: uint32(0x43f5bb3a), + 170: uint32(0xf2d519ff), + 171: uint32(0x27d9459c), + 172: uint32(0xbf97222c), + 173: uint32(0x15e6fc2a), + 174: uint32(0x0f91fc71), + 175: uint32(0x9b941525), + 176: uint32(0xfae59361), + 177: uint32(0xceb69ceb), + 178: uint32(0xc2a86459), + 179: uint32(0x12baa8d1), + 180: uint32(0xb6c1075e), + 181: uint32(0xe3056a0c), + 182: uint32(0x10d25065), + 183: uint32(0xcb03a442), + 184: uint32(0xe0ec6e0e), + 185: uint32(0x1698db3b), + 186: uint32(0x4c98a0be), + 187: uint32(0x3278e964), + 188: uint32(0x9f1f9532), + 189: uint32(0xe0d392df), + 190: uint32(0xd3a0342b), + 191: uint32(0x8971f21e), + 192: uint32(0x1b0a7441), + 193: uint32(0x4ba3348c), + 194: uint32(0xc5be7120), + 195: uint32(0xc37632d8), + 196: uint32(0xdf359f8d), + 197: uint32(0x9b992f2e), + 198: uint32(0xe60b6f47), + 199: uint32(0x0fe3f11d), + 200: uint32(0xe54cda54), + 201: uint32(0x1edad891), + 202: uint32(0xce6279cf), + 203: uint32(0xcd3e7e6f), + 204: uint32(0x1618b166), + 205: uint32(0xfd2c1d05), + 206: uint32(0x848fd2c5), + 207: uint32(0xf6fb2299), + 208: uint32(0xf523f357), + 209: uint32(0xa6327623), + 210: uint32(0x93a83531), + 211: uint32(0x56cccd02), + 212: uint32(0xacf08162), + 213: uint32(0x5a75ebb5), + 214: uint32(0x6e163697), + 215: uint32(0x88d273cc), + 216: uint32(0xde966292), + 217: uint32(0x81b949d0), + 218: uint32(0x4c50901b), + 219: uint32(0x71c65614), + 220: uint32(0xe6c6c7bd), + 221: uint32(0x327a140a), + 222: uint32(0x45e1d006), + 223: uint32(0xc3f27b9a), + 224: uint32(0xc9aa53fd), + 225: uint32(0x62a80f00), + 226: uint32(0xbb25bfe2), + 227: uint32(0x35bdd2f6), + 228: uint32(0x71126905), + 229: uint32(0xb2040222), + 230: uint32(0xb6cbcf7c), + 231: uint32(0xcd769c2b), + 232: uint32(0x53113ec0), + 233: uint32(0x1640e3d3), + 234: uint32(0x38abbd60), + 235: uint32(0x2547adf0), + 236: uint32(0xba38209c), + 237: uint32(0xf746ce76), + 238: uint32(0x77afa1c5), + 239: uint32(0x20756060), + 240: uint32(0x85cbfe4e), + 241: uint32(0x8ae88dd8), + 242: uint32(0x7aaaf9b0), + 243: uint32(0x4cf9aa7e), + 244: uint32(0x1948c25c), + 245: uint32(0x02fb8a8c), + 246: uint32(0x01c36ae4), + 247: uint32(0xd6ebe1f9), + 248: uint32(0x90d4f869), + 249: uint32(0xa65cdea0), + 250: uint32(0x3f09252d), + 251: uint32(0xc208e69f), + 252: uint32(0xb74e6132), + 253: uint32(0xce77e25b), + 254: uint32(0x578fdfe3), + 255: uint32(0x3ac372e6), + }, + }, +})) + +var _BF_itoa64 = [65]uint8{'.', '/', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9'} + +var _BF_atoi64 = [96]uint8{ + 0: uint8(64), + 1: uint8(64), + 2: uint8(64), + 3: uint8(64), + 4: uint8(64), + 5: uint8(64), + 6: uint8(64), + 7: uint8(64), + 8: uint8(64), + 9: uint8(64), + 10: uint8(64), + 11: uint8(64), + 12: uint8(64), + 13: uint8(64), + 15: uint8(1), + 16: uint8(54), + 17: uint8(55), + 18: uint8(56), + 19: uint8(57), + 20: uint8(58), + 21: uint8(59), + 22: uint8(60), + 23: uint8(61), + 24: uint8(62), + 25: uint8(63), + 26: uint8(64), + 27: uint8(64), + 28: uint8(64), + 29: uint8(64), + 30: uint8(64), + 31: uint8(64), + 32: uint8(64), + 33: uint8(2), + 34: uint8(3), + 35: uint8(4), + 36: uint8(5), + 37: uint8(6), + 38: uint8(7), + 39: uint8(8), + 40: uint8(9), + 41: uint8(10), + 42: uint8(11), + 43: uint8(12), + 44: uint8(13), + 45: uint8(14), + 46: uint8(15), + 47: uint8(16), + 48: uint8(17), + 49: uint8(18), + 50: uint8(19), + 51: uint8(20), + 52: uint8(21), + 53: uint8(22), + 54: uint8(23), + 55: uint8(24), + 56: uint8(25), + 57: uint8(26), + 58: uint8(27), + 59: uint8(64), + 60: uint8(64), + 61: uint8(64), + 62: uint8(64), + 63: uint8(64), + 64: uint8(64), + 65: uint8(28), + 66: uint8(29), + 67: uint8(30), + 68: uint8(31), + 69: uint8(32), + 70: uint8(33), + 71: uint8(34), + 72: uint8(35), + 73: uint8(36), + 74: uint8(37), + 75: uint8(38), + 76: uint8(39), + 77: uint8(40), + 78: uint8(41), + 79: uint8(42), + 80: uint8(43), + 81: uint8(44), + 82: uint8(45), + 83: uint8(46), + 84: uint8(47), + 85: uint8(48), + 86: uint8(49), + 87: uint8(50), + 88: uint8(51), + 89: uint8(52), + 90: uint8(53), + 91: uint8(64), + 92: uint8(64), + 93: uint8(64), + 94: uint8(64), + 95: uint8(64), +} + +func _BF_decode(tls *TLS, dst uintptr, src uintptr, size int32) (r int32) { + var c1, c2, c3, c4, tmp uint32 + var dptr, end, sptr, v1 uintptr + _, _, _, _, _, _, _, _, _ = c1, c2, c3, c4, dptr, end, sptr, tmp, v1 + dptr = dst + end = dptr + uintptr(size) + sptr = src + for cond := true; cond; cond = dptr < end { + v1 = sptr + sptr = sptr + 1 + tmp = uint32(**(**uint8)(__ccgo_up(v1))) + tmp = tmp - uint32(0x20) + if tmp >= uint32(0x60) { + return -int32(1) + } + tmp = uint32(_BF_atoi64[tmp]) + if tmp > uint32(63) { + return -int32(1) + } + c1 = tmp + v1 = sptr + sptr = sptr + 1 + tmp = uint32(**(**uint8)(__ccgo_up(v1))) + tmp = tmp - uint32(0x20) + if tmp >= uint32(0x60) { + return -int32(1) + } + tmp = uint32(_BF_atoi64[tmp]) + if tmp > uint32(63) { + return -int32(1) + } + c2 = tmp + v1 = dptr + dptr = dptr + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(c1<>int32(4)) + if dptr >= end { + break + } + v1 = sptr + sptr = sptr + 1 + tmp = uint32(**(**uint8)(__ccgo_up(v1))) + tmp = tmp - uint32(0x20) + if tmp >= uint32(0x60) { + return -int32(1) + } + tmp = uint32(_BF_atoi64[tmp]) + if tmp > uint32(63) { + return -int32(1) + } + c3 = tmp + v1 = dptr + dptr = dptr + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(c2&uint32(0x0F)<>int32(2)) + if dptr >= end { + break + } + v1 = sptr + sptr = sptr + 1 + tmp = uint32(**(**uint8)(__ccgo_up(v1))) + tmp = tmp - uint32(0x20) + if tmp >= uint32(0x60) { + return -int32(1) + } + tmp = uint32(_BF_atoi64[tmp]) + if tmp > uint32(63) { + return -int32(1) + } + c4 = tmp + v1 = dptr + dptr = dptr + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(c3&uint32(0x03)<>int32(2)] + c1 = c1 & uint32(0x03) << int32(4) + if sptr >= end { + v1 = dptr + dptr = dptr + 1 + **(**uint8)(__ccgo_up(v1)) = _BF_itoa64[c1] + break + } + v1 = sptr + sptr = sptr + 1 + c2 = uint32(**(**uint8)(__ccgo_up(v1))) + c1 = c1 | c2>>int32(4) + v1 = dptr + dptr = dptr + 1 + **(**uint8)(__ccgo_up(v1)) = _BF_itoa64[c1] + c1 = c2 & uint32(0x0f) << int32(2) + if sptr >= end { + v1 = dptr + dptr = dptr + 1 + **(**uint8)(__ccgo_up(v1)) = _BF_itoa64[c1] + break + } + v1 = sptr + sptr = sptr + 1 + c2 = uint32(**(**uint8)(__ccgo_up(v1))) + c1 = c1 | c2>>int32(6) + v1 = dptr + dptr = dptr + 1 + **(**uint8)(__ccgo_up(v1)) = _BF_itoa64[c1] + v1 = dptr + dptr = dptr + 1 + **(**uint8)(__ccgo_up(v1)) = _BF_itoa64[c2&uint32(0x3f)] + } +} + +func _BF_swap(tls *TLS, x uintptr, count int32) { + var tmp TBF_word + var v1, v2 int32 + var v4 uintptr + _, _, _, _ = tmp, v1, v2, v4 + v1 = int32(1) + if *(*int8)(unsafe.Pointer(&v1)) != 0 { + for { + tmp = **(**TBF_word)(__ccgo_up(x)) + tmp = tmp<>Int32FromInt32(16) + v4 = x + x += 4 + **(**TBF_word)(__ccgo_up(v4)) = tmp&uint32(0x00FF00FF)<>Int32FromInt32(8)&uint32(0x00FF00FF) + goto _3 + _3: + ; + count = count - 1 + v2 = count + if !(v2 != 0) { + break + } + } + } +} + +func _BF_encrypt(tls *TLS, ctx uintptr, L TBF_word, R TBF_word, start uintptr, end uintptr) (r TBF_word) { + var i int32 + var ptr, v2 uintptr + var tmp1, tmp2, tmp3, tmp4 TBF_word + _, _, _, _, _, _, _ = i, ptr, tmp1, tmp2, tmp3, tmp4, v2 + ptr = start + for cond := true; cond; cond = ptr < end { + L = L ^ **(**TBF_word)(__ccgo_up(ctx)) + i = 0 + for { + if !(i < int32(16)) { + break + } + tmp1 = L & uint32(0xFF) + tmp2 = L >> int32(8) + tmp2 = tmp2 & uint32(0xFF) + tmp3 = L >> int32(16) + tmp3 = tmp3 & uint32(0xFF) + tmp4 = L >> int32(24) + tmp1 = **(**TBF_word)(__ccgo_up(ctx + 72 + 3*1024 + uintptr(tmp1)*4)) + tmp2 = **(**TBF_word)(__ccgo_up(ctx + 72 + 2*1024 + uintptr(tmp2)*4)) + tmp3 = **(**TBF_word)(__ccgo_up(ctx + 72 + 1*1024 + uintptr(tmp3)*4)) + tmp3 = tmp3 + **(**TBF_word)(__ccgo_up(ctx + 72 + uintptr(tmp4)*4)) + tmp3 = tmp3 ^ tmp2 + R = R ^ **(**TBF_word)(__ccgo_up(ctx + uintptr(i+int32(1))*4)) + tmp3 = tmp3 + tmp1 + R = R ^ tmp3 + tmp1 = R & uint32(0xFF) + tmp2 = R >> int32(8) + tmp2 = tmp2 & uint32(0xFF) + tmp3 = R >> int32(16) + tmp3 = tmp3 & uint32(0xFF) + tmp4 = R >> int32(24) + tmp1 = **(**TBF_word)(__ccgo_up(ctx + 72 + 3*1024 + uintptr(tmp1)*4)) + tmp2 = **(**TBF_word)(__ccgo_up(ctx + 72 + 2*1024 + uintptr(tmp2)*4)) + tmp3 = **(**TBF_word)(__ccgo_up(ctx + 72 + 1*1024 + uintptr(tmp3)*4)) + tmp3 = tmp3 + **(**TBF_word)(__ccgo_up(ctx + 72 + uintptr(tmp4)*4)) + tmp3 = tmp3 ^ tmp2 + L = L ^ **(**TBF_word)(__ccgo_up(ctx + uintptr(i+int32(1)+int32(1))*4)) + tmp3 = tmp3 + tmp1 + L = L ^ tmp3 + goto _1 + _1: + ; + i = i + int32(2) + } + tmp4 = R + R = L + L = tmp4 ^ **(**TBF_word)(__ccgo_up(ctx + uintptr(Int32FromInt32(BF_N)+Int32FromInt32(1))*4)) + v2 = ptr + ptr += 4 + **(**TBF_word)(__ccgo_up(v2)) = L + v2 = ptr + ptr += 4 + **(**TBF_word)(__ccgo_up(v2)) = R + } + return L +} + +func _BF_set_key(tls *TLS, key uintptr, expanded uintptr, initial uintptr, flags uint8) { + bp := tls.Alloc(16) + defer tls.Free(16) + var bug, i, j uint32 + var diff, safety, sign, v1 TBF_word + var ptr uintptr + var _ /* tmp at bp+0 */ [2]TBF_word + _, _, _, _, _, _, _, _ = bug, diff, i, j, ptr, safety, sign, v1 + ptr = key + /* + * There was a sign extension bug in older revisions of this function. While + * we would have liked to simply fix the bug and move on, we have to provide + * a backwards compatibility feature (essentially the bug) for some systems and + * a safety measure for some others. The latter is needed because for certain + * multiple inputs to the buggy algorithm there exist easily found inputs to + * the correct algorithm that produce the same hash. Thus, we optionally + * deviate from the correct algorithm just enough to avoid such collisions. + * While the bug itself affected the majority of passwords containing + * characters with the 8th bit set (although only a percentage of those in a + * collision-producing way), the anti-collision safety measure affects + * only a subset of passwords containing the '\xff' character (not even all of + * those passwords, just some of them). This character is not found in valid + * UTF-8 sequences and is rarely used in popular 8-bit character encodings. + * Thus, the safety measure is unlikely to cause much annoyance, and is a + * reasonable tradeoff to use when authenticating against existing hashes that + * are not reliably known to have been computed with the correct algorithm. + * + * We use an approach that tries to minimize side-channel leaks of password + * information - that is, we mostly use fixed-cost bitwise operations instead + * of branches or table lookups. (One conditional branch based on password + * length remains. It is not part of the bug aftermath, though, and is + * difficult and possibly unreasonable to avoid given the use of C strings by + * the caller, which results in similar timing leaks anyway.) + * + * For actual implementation, we set an array index in the variable "bug" + * (0 means no bug, 1 means sign extension bug emulation) and a flag in the + * variable "safety" (bit 16 is set when the safety measure is requested). + * Valid combinations of settings are: + * + * Prefix "$2a$": bug = 0, safety = 0x10000 + * Prefix "$2b$": bug = 0, safety = 0 + * Prefix "$2x$": bug = 1, safety = 0 + * Prefix "$2y$": bug = 0, safety = 0 + */ + bug = Uint32FromInt32(Int32FromUint8(flags) & int32(1)) + safety = uint32(flags) & uint32(2) << int32(15) + v1 = Uint32FromInt32(0) + diff = v1 + sign = v1 + i = uint32(0) + for { + if !(i < Uint32FromInt32(Int32FromInt32(BF_N)+Int32FromInt32(2))) { + break + } + v1 = Uint32FromInt32(0) + (**(**[2]TBF_word)(__ccgo_up(bp)))[int32(1)] = v1 + (**(**[2]TBF_word)(__ccgo_up(bp)))[0] = v1 + j = uint32(0) + for { + if !(j < uint32(4)) { + break + } + **(**TBF_word)(__ccgo_up(bp)) <<= uint32(8) + **(**TBF_word)(__ccgo_up(bp)) |= uint32(Uint8FromInt8(**(**int8)(__ccgo_up(ptr)))) /* correct */ + **(**TBF_word)(__ccgo_up(bp + 1*4)) <<= uint32(8) + **(**TBF_word)(__ccgo_up(bp + 1*4)) |= Uint32FromInt8(int8(**(**int8)(__ccgo_up(ptr)))) /* bug */ + /* + * Sign extension in the first char has no effect - nothing to overwrite yet, + * and those extra 24 bits will be fully shifted out of the 32-bit word. For + * chars 2, 3, 4 in each four-char block, we set bit 7 of "sign" if sign + * extension in tmp[1] occurs. Once this flag is set, it remains set. + */ + if j != 0 { + sign = sign | (**(**[2]TBF_word)(__ccgo_up(bp)))[int32(1)]&uint32(0x80) + } + if !(**(**int8)(__ccgo_up(ptr)) != 0) { + ptr = key + } else { + ptr = ptr + 1 + } + goto _4 + _4: + ; + j = j + 1 + } + diff = diff | ((**(**[2]TBF_word)(__ccgo_up(bp)))[0] ^ (**(**[2]TBF_word)(__ccgo_up(bp)))[int32(1)]) /* Non-zero on any differences */ + **(**TBF_word)(__ccgo_up(expanded + uintptr(i)*4)) = (**(**[2]TBF_word)(__ccgo_up(bp)))[bug] + **(**TBF_word)(__ccgo_up(initial + uintptr(i)*4)) = **(**TBF_word)(__ccgo_up(uintptr(unsafe.Pointer(&_BF_init_state)) + uintptr(i)*4)) ^ (**(**[2]TBF_word)(__ccgo_up(bp)))[bug] + goto _2 + _2: + ; + i = i + 1 + } + /* + * At this point, "diff" is zero iff the correct and buggy algorithms produced + * exactly the same result. If so and if "sign" is non-zero, which indicates + * that there was a non-benign sign extension, this means that we have a + * collision between the correctly computed hash for this password and a set of + * passwords that could be supplied to the buggy algorithm. Our safety measure + * is meant to protect from such many-buggy to one-correct collisions, by + * deviating from the correct algorithm in such cases. Let's check for this. + */ + diff = diff | diff>>int32(16) /* still zero iff exact match */ + diff = diff & uint32(0xffff) /* ditto */ + diff = diff + uint32(0xffff) /* bit 16 set iff "diff" was non-zero (on non-match) */ + sign = sign << uint32(9) /* move the non-benign sign extension flag to bit 16 */ + sign = sign & (^diff & safety) /* action needed? */ + /* + * If we have determined that we need to deviate from the correct algorithm, + * flip bit 16 in initial expanded key. (The choice of 16 is arbitrary, but + * let's stick to it now. It came out of the approach we used above, and it's + * not any worse than any other choice we could make.) + * + * It is crucial that we don't do the same to the expanded key used in the main + * Eksblowfish loop. By doing it to only one of these two, we deviate from a + * state that could be directly specified by a password to the buggy algorithm + * (and to the fully correct one as well, but that's a side-effect). + */ + **(**TBF_word)(__ccgo_up(initial)) ^= sign +} + +var _flags_by_subtype = [26]uint8{ + 0: uint8(2), + 1: uint8(4), + 23: uint8(1), + 24: uint8(4), +} + +func _BF_crypt(tls *TLS, key uintptr, setting uintptr, output uintptr, min TBF_word) (r uintptr) { + bp := tls.Alloc(4272) + defer tls.Free(4272) + var L, L1, R, count, tmp1, tmp2, tmp3, tmp4, v1 TBF_word + var done, i int32 + var ptr uintptr + var _ /* LR at bp+4264 */ [2]TBF_word + var _ /* data at bp+0 */ struct { + Fctx TBF_ctx + Fexpanded_key TBF_key + Fbinary struct { + Foutput [0][6]TBF_word + Fsalt [4]TBF_word + F__ccgo_pad2 [8]byte + } + } + _, _, _, _, _, _, _, _, _, _, _, _ = L, L1, R, count, done, i, ptr, tmp1, tmp2, tmp3, tmp4, v1 + if int32(**(**int8)(__ccgo_up(setting))) != int32('$') || int32(**(**int8)(__ccgo_up(setting + 1))) != int32('2') || Uint32FromInt32(int32(**(**int8)(__ccgo_up(setting + 2)))-int32('a')) > uint32(25) || !(_flags_by_subtype[int32(**(**int8)(__ccgo_up(setting + 2)))-int32('a')] != 0) || int32(**(**int8)(__ccgo_up(setting + 3))) != int32('$') || Uint32FromInt32(int32(**(**int8)(__ccgo_up(setting + 4)))-int32('0')) > uint32(1) || Uint32FromInt32(int32(**(**int8)(__ccgo_up(setting + 5)))-int32('0')) > uint32(9) || int32(**(**int8)(__ccgo_up(setting + 6))) != int32('$') { + return UintptrFromInt32(0) + } + count = Uint32FromInt32(1) << ((int32(**(**int8)(__ccgo_up(setting + 4)))-int32('0'))*int32(10) + (int32(**(**int8)(__ccgo_up(setting + 5))) - int32('0'))) + if count < min || _BF_decode(tls, bp+4240, setting+7, int32(16)) != 0 { + return UintptrFromInt32(0) + } + _BF_swap(tls, bp+4240, int32(4)) + _BF_set_key(tls, key, bp+4168, bp, _flags_by_subtype[int32(**(**int8)(__ccgo_up(setting + 2)))-int32('a')]) + Xmemcpy(tls, bp+72, uintptr(unsafe.Pointer(&_BF_init_state))+72, uint64(4096)) + L = uint32(0) + R = uint32(0) + ptr = bp + for cond := true; cond; cond = int32(1) != 0 { + L = _BF_encrypt(tls, bp, L^**(**TBF_word)(__ccgo_up(bp + 4240)), R^**(**TBF_word)(__ccgo_up(bp + 4240 + 1*4)), ptr, ptr) + R = **(**TBF_word)(__ccgo_up(ptr + UintptrFromInt32(1)*4)) + ptr = ptr + uintptr(2)*4 + if ptr >= bp+uintptr(Int32FromInt32(BF_N)+Int32FromInt32(2)+Int32FromInt32(4)*Int32FromInt32(0x100))*4 { + break + } + L = _BF_encrypt(tls, bp, L^**(**TBF_word)(__ccgo_up(bp + 4240 + 2*4)), R^**(**TBF_word)(__ccgo_up(bp + 4240 + 3*4)), ptr, ptr) + R = **(**TBF_word)(__ccgo_up(ptr + UintptrFromInt32(1)*4)) + ptr = ptr + uintptr(2)*4 + } + for { + i = 0 + for { + if !(i < Int32FromInt32(BF_N)+Int32FromInt32(2)) { + break + } + **(**TBF_word)(__ccgo_up(bp + uintptr(i)*4)) ^= **(**TBF_word)(__ccgo_up(bp + 4168 + uintptr(i)*4)) + **(**TBF_word)(__ccgo_up(bp + uintptr(i+int32(1))*4)) ^= **(**TBF_word)(__ccgo_up(bp + 4168 + uintptr(i+int32(1))*4)) + goto _3 + _3: + ; + i = i + int32(2) + } + done = 0 + for cond := true; cond; cond = int32(1) != 0 { + _BF_encrypt(tls, bp, uint32(0), uint32(0), bp, bp+uintptr(Int32FromInt32(BF_N)+Int32FromInt32(2)+Int32FromInt32(4)*Int32FromInt32(0x100))*4) + if done != 0 { + break + } + done = int32(1) + tmp1 = **(**TBF_word)(__ccgo_up(bp + 4240)) + tmp2 = **(**TBF_word)(__ccgo_up(bp + 4240 + 1*4)) + tmp3 = **(**TBF_word)(__ccgo_up(bp + 4240 + 2*4)) + tmp4 = **(**TBF_word)(__ccgo_up(bp + 4240 + 3*4)) + i = 0 + for { + if !(i < int32(BF_N)) { + break + } + **(**TBF_word)(__ccgo_up(bp + uintptr(i)*4)) ^= tmp1 + **(**TBF_word)(__ccgo_up(bp + uintptr(i+int32(1))*4)) ^= tmp2 + **(**TBF_word)(__ccgo_up(bp + uintptr(i+int32(2))*4)) ^= tmp3 + **(**TBF_word)(__ccgo_up(bp + uintptr(i+int32(3))*4)) ^= tmp4 + goto _4 + _4: + ; + i = i + int32(4) + } + **(**TBF_word)(__ccgo_up(bp + 16*4)) ^= tmp1 + **(**TBF_word)(__ccgo_up(bp + 17*4)) ^= tmp2 + } + goto _2 + _2: + ; + count = count - 1 + v1 = count + if !(v1 != 0) { + break + } + } + i = 0 + for { + if !(i < int32(6)) { + break + } + L1 = _BF_magic_w[i] + (**(**[2]TBF_word)(__ccgo_up(bp + 4264)))[int32(1)] = _BF_magic_w[i+int32(1)] + count = uint32(64) + for { + L1 = _BF_encrypt(tls, bp, L1, (**(**[2]TBF_word)(__ccgo_up(bp + 4264)))[int32(1)], bp+4264, bp+4264) + goto _7 + _7: + ; + count = count - 1 + v1 = count + if !(v1 != 0) { + break + } + } + **(**TBF_word)(__ccgo_up(bp + 4240 + uintptr(i)*4)) = L1 + **(**TBF_word)(__ccgo_up(bp + 4240 + uintptr(i+int32(1))*4)) = (**(**[2]TBF_word)(__ccgo_up(bp + 4264)))[int32(1)] + goto _5 + _5: + ; + i = i + int32(2) + } + Xmemcpy(tls, output, setting, Uint64FromInt32(Int32FromInt32(7)+Int32FromInt32(22)-Int32FromInt32(1))) + **(**int8)(__ccgo_up(output + uintptr(Int32FromInt32(7)+Int32FromInt32(22)-Int32FromInt32(1)))) = Int8FromUint8(_BF_itoa64[Int32FromUint8(_BF_atoi64[int32(**(**int8)(__ccgo_up(setting + uintptr(Int32FromInt32(7)+Int32FromInt32(22)-Int32FromInt32(1)))))-int32(0x20)])&int32(0x30)]) + /* This has to be bug-compatible with the original implementation, so + * only encode 23 of the 24 bytes. :-) */ + _BF_swap(tls, bp+4240, int32(6)) + _BF_encode(tls, output+uintptr(Int32FromInt32(7)+Int32FromInt32(22)), bp+4240, int32(23)) + **(**int8)(__ccgo_up(output + uintptr(Int32FromInt32(7)+Int32FromInt32(22)+Int32FromInt32(31)))) = int8('\000') + return output +} + +// C documentation +// +// /* +// * Please preserve the runtime self-test. It serves two purposes at once: +// * +// * 1. We really can't afford the risk of producing incompatible hashes e.g. +// * when there's something like gcc bug 26587 again, whereas an application or +// * library integrating this code might not also integrate our external tests or +// * it might not run them after every build. Even if it does, the miscompile +// * might only occur on the production build, but not on a testing build (such +// * as because of different optimization settings). It is painful to recover +// * from incorrectly-computed hashes - merely fixing whatever broke is not +// * enough. Thus, a proactive measure like this self-test is needed. +// * +// * 2. We don't want to leave sensitive data from our actual password hash +// * computation on the stack or in registers. Previous revisions of the code +// * would do explicit cleanups, but simply running the self-test after hash +// * computation is more reliable. +// * +// * The performance cost of this quick self-test is around 0.6% at the "$2a$08" +// * setting. +// */ +func X__crypt_blowfish(tls *TLS, key uintptr, setting uintptr, output uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v setting=%v output=%v, (%v:)", tls, key, setting, output, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(384) + defer tls.Free(384) + var flags uint32 + var k, p, retval, test_hash, test_key, test_setting uintptr + var ok int32 + var _ /* ae at bp+96 */ TBF_key + var _ /* ai at bp+168 */ TBF_key + var _ /* buf at bp+0 */ struct { + Fs [30]int8 + Fo [63]int8 + } + var _ /* ye at bp+240 */ TBF_key + var _ /* yi at bp+312 */ TBF_key + _, _, _, _, _, _, _, _ = flags, k, ok, p, retval, test_hash, test_key, test_setting + test_key = __ccgo_ts + 18 + test_setting = __ccgo_ts + 28 + test_hash = uintptr(unsafe.Pointer(&_test_hashes)) + /* Hash the supplied password */ + retval = _BF_crypt(tls, key, setting, output, uint32(16)) + /* + * Do a quick self-test. It is important that we make both calls to BF_crypt() + * from the same scope such that they likely use the same stack locations, + * which makes the second call overwrite the first call's sensitive data on the + * stack and makes it more likely that any alignment related issues would be + * detected by the self-test. + */ + Xmemcpy(tls, bp, test_setting, uint64(30)) + if retval != 0 { + flags = uint32(_flags_by_subtype[int32(**(**int8)(__ccgo_up(setting + 2)))-int32('a')]) + test_hash = uintptr(unsafe.Pointer(&_test_hashes)) + uintptr(flags&uint32(1))*34 + **(**int8)(__ccgo_up(bp + 2)) = **(**int8)(__ccgo_up(setting + 2)) + } + Xmemset(tls, bp+30, int32(0x55), uint64(63)) + **(**int8)(__ccgo_up(bp + 30 + uintptr(Uint64FromInt64(63)-Uint64FromInt32(1)))) = 0 + p = _BF_crypt(tls, test_key, bp, bp+30, uint32(1)) + ok = BoolInt32(p == bp+30 && !(Xmemcmp(tls, p, bp, Uint64FromInt32(Int32FromInt32(7)+Int32FromInt32(22))) != 0) && !(Xmemcmp(tls, p+uintptr(Int32FromInt32(7)+Int32FromInt32(22)), test_hash, Uint64FromInt32(Int32FromInt32(31)+Int32FromInt32(1)+Int32FromInt32(1)+Int32FromInt32(1))) != 0)) + k = __ccgo_ts + 58 + _BF_set_key(tls, k, bp+96, bp+168, uint8(2)) /* $2a$ */ + _BF_set_key(tls, k, bp+240, bp+312, uint8(4)) /* $2y$ */ + **(**TBF_word)(__ccgo_up(bp + 168)) ^= uint32(0x10000) /* undo the safety (for comparison) */ + ok = BoolInt32(ok != 0 && (**(**TBF_key)(__ccgo_up(bp + 168)))[0] == uint32(0xdb9c59bc) && (**(**TBF_key)(__ccgo_up(bp + 240)))[int32(17)] == uint32(0x33343500) && !(Xmemcmp(tls, bp+96, bp+240, uint64(72)) != 0) && !(Xmemcmp(tls, bp+168, bp+312, uint64(72)) != 0)) + if ok != 0 && retval != 0 { + return retval + } + return __ccgo_ts + 70 +} + +var _test_hashes = [2][34]int8{ + 0: {'i', '1', 'D', '7', '0', '9', 'v', 'f', 'a', 'm', 'u', 'l', 'i', 'm', 'l', 'G', 'c', 'q', '0', 'q', 'q', '3', 'U', 'v', 'u', 'U', 'a', 's', 'v', 'E', 'a', 0, 'U'}, + 1: {'V', 'U', 'r', 'P', 'm', 'X', 'D', '6', 'q', '/', 'n', 'V', 'S', 'S', 'p', '7', 'p', 'N', 'D', 'h', 'C', 'R', '9', '0', '7', '1', 'I', 'f', 'I', 'R', 'e', 0, 'U'}, +} + +const _PASSWORD_EFMT1 = 95 + +type Texpanded_key = struct { + Fl [16]Tuint32_t + Fr [16]Tuint32_t +} + +var _key_shifts = [16]uint8{ + 0: uint8(1), + 1: uint8(1), + 2: uint8(2), + 3: uint8(2), + 4: uint8(2), + 5: uint8(2), + 6: uint8(2), + 7: uint8(2), + 8: uint8(1), + 9: uint8(2), + 10: uint8(2), + 11: uint8(2), + 12: uint8(2), + 13: uint8(2), + 14: uint8(2), + 15: uint8(1), +} + +var _psbox = [8][64]Tuint32_t{ + 0: { + 0: uint32(0x00808200), + 2: uint32(0x00008000), + 3: uint32(0x00808202), + 4: uint32(0x00808002), + 5: uint32(0x00008202), + 6: uint32(0x00000002), + 7: uint32(0x00008000), + 8: uint32(0x00000200), + 9: uint32(0x00808200), + 10: uint32(0x00808202), + 11: uint32(0x00000200), + 12: uint32(0x00800202), + 13: uint32(0x00808002), + 14: uint32(0x00800000), + 15: uint32(0x00000002), + 16: uint32(0x00000202), + 17: uint32(0x00800200), + 18: uint32(0x00800200), + 19: uint32(0x00008200), + 20: uint32(0x00008200), + 21: uint32(0x00808000), + 22: uint32(0x00808000), + 23: uint32(0x00800202), + 24: uint32(0x00008002), + 25: uint32(0x00800002), + 26: uint32(0x00800002), + 27: uint32(0x00008002), + 29: uint32(0x00000202), + 30: uint32(0x00008202), + 31: uint32(0x00800000), + 32: uint32(0x00008000), + 33: uint32(0x00808202), + 34: uint32(0x00000002), + 35: uint32(0x00808000), + 36: uint32(0x00808200), + 37: uint32(0x00800000), + 38: uint32(0x00800000), + 39: uint32(0x00000200), + 40: uint32(0x00808002), + 41: uint32(0x00008000), + 42: uint32(0x00008200), + 43: uint32(0x00800002), + 44: uint32(0x00000200), + 45: uint32(0x00000002), + 46: uint32(0x00800202), + 47: uint32(0x00008202), + 48: uint32(0x00808202), + 49: uint32(0x00008002), + 50: uint32(0x00808000), + 51: uint32(0x00800202), + 52: uint32(0x00800002), + 53: uint32(0x00000202), + 54: uint32(0x00008202), + 55: uint32(0x00808200), + 56: uint32(0x00000202), + 57: uint32(0x00800200), + 58: uint32(0x00800200), + 60: uint32(0x00008002), + 61: uint32(0x00008200), + 63: uint32(0x00808002), + }, + 1: { + 0: uint32(0x40084010), + 1: uint32(0x40004000), + 2: uint32(0x00004000), + 3: uint32(0x00084010), + 4: uint32(0x00080000), + 5: uint32(0x00000010), + 6: uint32(0x40080010), + 7: uint32(0x40004010), + 8: uint32(0x40000010), + 9: uint32(0x40084010), + 10: uint32(0x40084000), + 11: uint32(0x40000000), + 12: uint32(0x40004000), + 13: uint32(0x00080000), + 14: uint32(0x00000010), + 15: uint32(0x40080010), + 16: uint32(0x00084000), + 17: uint32(0x00080010), + 18: uint32(0x40004010), + 20: uint32(0x40000000), + 21: uint32(0x00004000), + 22: uint32(0x00084010), + 23: uint32(0x40080000), + 24: uint32(0x00080010), + 25: uint32(0x40000010), + 27: uint32(0x00084000), + 28: uint32(0x00004010), + 29: uint32(0x40084000), + 30: uint32(0x40080000), + 31: uint32(0x00004010), + 33: uint32(0x00084010), + 34: uint32(0x40080010), + 35: uint32(0x00080000), + 36: uint32(0x40004010), + 37: uint32(0x40080000), + 38: uint32(0x40084000), + 39: uint32(0x00004000), + 40: uint32(0x40080000), + 41: uint32(0x40004000), + 42: uint32(0x00000010), + 43: uint32(0x40084010), + 44: uint32(0x00084010), + 45: uint32(0x00000010), + 46: uint32(0x00004000), + 47: uint32(0x40000000), + 48: uint32(0x00004010), + 49: uint32(0x40084000), + 50: uint32(0x00080000), + 51: uint32(0x40000010), + 52: uint32(0x00080010), + 53: uint32(0x40004010), + 54: uint32(0x40000010), + 55: uint32(0x00080010), + 56: uint32(0x00084000), + 58: uint32(0x40004000), + 59: uint32(0x00004010), + 60: uint32(0x40000000), + 61: uint32(0x40080010), + 62: uint32(0x40084010), + 63: uint32(0x00084000), + }, + 2: { + 0: uint32(0x00000104), + 1: uint32(0x04010100), + 3: uint32(0x04010004), + 4: uint32(0x04000100), + 6: uint32(0x00010104), + 7: uint32(0x04000100), + 8: uint32(0x00010004), + 9: uint32(0x04000004), + 10: uint32(0x04000004), + 11: uint32(0x00010000), + 12: uint32(0x04010104), + 13: uint32(0x00010004), + 14: uint32(0x04010000), + 15: uint32(0x00000104), + 16: uint32(0x04000000), + 17: uint32(0x00000004), + 18: uint32(0x04010100), + 19: uint32(0x00000100), + 20: uint32(0x00010100), + 21: uint32(0x04010000), + 22: uint32(0x04010004), + 23: uint32(0x00010104), + 24: uint32(0x04000104), + 25: uint32(0x00010100), + 26: uint32(0x00010000), + 27: uint32(0x04000104), + 28: uint32(0x00000004), + 29: uint32(0x04010104), + 30: uint32(0x00000100), + 31: uint32(0x04000000), + 32: uint32(0x04010100), + 33: uint32(0x04000000), + 34: uint32(0x00010004), + 35: uint32(0x00000104), + 36: uint32(0x00010000), + 37: uint32(0x04010100), + 38: uint32(0x04000100), + 40: uint32(0x00000100), + 41: uint32(0x00010004), + 42: uint32(0x04010104), + 43: uint32(0x04000100), + 44: uint32(0x04000004), + 45: uint32(0x00000100), + 47: uint32(0x04010004), + 48: uint32(0x04000104), + 49: uint32(0x00010000), + 50: uint32(0x04000000), + 51: uint32(0x04010104), + 52: uint32(0x00000004), + 53: uint32(0x00010104), + 54: uint32(0x00010100), + 55: uint32(0x04000004), + 56: uint32(0x04010000), + 57: uint32(0x04000104), + 58: uint32(0x00000104), + 59: uint32(0x04010000), + 60: uint32(0x00010104), + 61: uint32(0x00000004), + 62: uint32(0x04010004), + 63: uint32(0x00010100), + }, + 3: { + 0: uint32(0x80401000), + 1: uint32(0x80001040), + 2: uint32(0x80001040), + 3: uint32(0x00000040), + 4: uint32(0x00401040), + 5: uint32(0x80400040), + 6: uint32(0x80400000), + 7: uint32(0x80001000), + 9: uint32(0x00401000), + 10: uint32(0x00401000), + 11: uint32(0x80401040), + 12: uint32(0x80000040), + 14: uint32(0x00400040), + 15: uint32(0x80400000), + 16: uint32(0x80000000), + 17: uint32(0x00001000), + 18: uint32(0x00400000), + 19: uint32(0x80401000), + 20: uint32(0x00000040), + 21: uint32(0x00400000), + 22: uint32(0x80001000), + 23: uint32(0x00001040), + 24: uint32(0x80400040), + 25: uint32(0x80000000), + 26: uint32(0x00001040), + 27: uint32(0x00400040), + 28: uint32(0x00001000), + 29: uint32(0x00401040), + 30: uint32(0x80401040), + 31: uint32(0x80000040), + 32: uint32(0x00400040), + 33: uint32(0x80400000), + 34: uint32(0x00401000), + 35: uint32(0x80401040), + 36: uint32(0x80000040), + 39: uint32(0x00401000), + 40: uint32(0x00001040), + 41: uint32(0x00400040), + 42: uint32(0x80400040), + 43: uint32(0x80000000), + 44: uint32(0x80401000), + 45: uint32(0x80001040), + 46: uint32(0x80001040), + 47: uint32(0x00000040), + 48: uint32(0x80401040), + 49: uint32(0x80000040), + 50: uint32(0x80000000), + 51: uint32(0x00001000), + 52: uint32(0x80400000), + 53: uint32(0x80001000), + 54: uint32(0x00401040), + 55: uint32(0x80400040), + 56: uint32(0x80001000), + 57: uint32(0x00001040), + 58: uint32(0x00400000), + 59: uint32(0x80401000), + 60: uint32(0x00000040), + 61: uint32(0x00400000), + 62: uint32(0x00001000), + 63: uint32(0x00401040), + }, + 4: { + 0: uint32(0x00000080), + 1: uint32(0x01040080), + 2: uint32(0x01040000), + 3: uint32(0x21000080), + 4: uint32(0x00040000), + 5: uint32(0x00000080), + 6: uint32(0x20000000), + 7: uint32(0x01040000), + 8: uint32(0x20040080), + 9: uint32(0x00040000), + 10: uint32(0x01000080), + 11: uint32(0x20040080), + 12: uint32(0x21000080), + 13: uint32(0x21040000), + 14: uint32(0x00040080), + 15: uint32(0x20000000), + 16: uint32(0x01000000), + 17: uint32(0x20040000), + 18: uint32(0x20040000), + 20: uint32(0x20000080), + 21: uint32(0x21040080), + 22: uint32(0x21040080), + 23: uint32(0x01000080), + 24: uint32(0x21040000), + 25: uint32(0x20000080), + 27: uint32(0x21000000), + 28: uint32(0x01040080), + 29: uint32(0x01000000), + 30: uint32(0x21000000), + 31: uint32(0x00040080), + 32: uint32(0x00040000), + 33: uint32(0x21000080), + 34: uint32(0x00000080), + 35: uint32(0x01000000), + 36: uint32(0x20000000), + 37: uint32(0x01040000), + 38: uint32(0x21000080), + 39: uint32(0x20040080), + 40: uint32(0x01000080), + 41: uint32(0x20000000), + 42: uint32(0x21040000), + 43: uint32(0x01040080), + 44: uint32(0x20040080), + 45: uint32(0x00000080), + 46: uint32(0x01000000), + 47: uint32(0x21040000), + 48: uint32(0x21040080), + 49: uint32(0x00040080), + 50: uint32(0x21000000), + 51: uint32(0x21040080), + 52: uint32(0x01040000), + 54: uint32(0x20040000), + 55: uint32(0x21000000), + 56: uint32(0x00040080), + 57: uint32(0x01000080), + 58: uint32(0x20000080), + 59: uint32(0x00040000), + 61: uint32(0x20040000), + 62: uint32(0x01040080), + 63: uint32(0x20000080), + }, + 5: { + 0: uint32(0x10000008), + 1: uint32(0x10200000), + 2: uint32(0x00002000), + 3: uint32(0x10202008), + 4: uint32(0x10200000), + 5: uint32(0x00000008), + 6: uint32(0x10202008), + 7: uint32(0x00200000), + 8: uint32(0x10002000), + 9: uint32(0x00202008), + 10: uint32(0x00200000), + 11: uint32(0x10000008), + 12: uint32(0x00200008), + 13: uint32(0x10002000), + 14: uint32(0x10000000), + 15: uint32(0x00002008), + 17: uint32(0x00200008), + 18: uint32(0x10002008), + 19: uint32(0x00002000), + 20: uint32(0x00202000), + 21: uint32(0x10002008), + 22: uint32(0x00000008), + 23: uint32(0x10200008), + 24: uint32(0x10200008), + 26: uint32(0x00202008), + 27: uint32(0x10202000), + 28: uint32(0x00002008), + 29: uint32(0x00202000), + 30: uint32(0x10202000), + 31: uint32(0x10000000), + 32: uint32(0x10002000), + 33: uint32(0x00000008), + 34: uint32(0x10200008), + 35: uint32(0x00202000), + 36: uint32(0x10202008), + 37: uint32(0x00200000), + 38: uint32(0x00002008), + 39: uint32(0x10000008), + 40: uint32(0x00200000), + 41: uint32(0x10002000), + 42: uint32(0x10000000), + 43: uint32(0x00002008), + 44: uint32(0x10000008), + 45: uint32(0x10202008), + 46: uint32(0x00202000), + 47: uint32(0x10200000), + 48: uint32(0x00202008), + 49: uint32(0x10202000), + 51: uint32(0x10200008), + 52: uint32(0x00000008), + 53: uint32(0x00002000), + 54: uint32(0x10200000), + 55: uint32(0x00202008), + 56: uint32(0x00002000), + 57: uint32(0x00200008), + 58: uint32(0x10002008), + 60: uint32(0x10202000), + 61: uint32(0x10000000), + 62: uint32(0x00200008), + 63: uint32(0x10002008), + }, + 6: { + 0: uint32(0x00100000), + 1: uint32(0x02100001), + 2: uint32(0x02000401), + 4: uint32(0x00000400), + 5: uint32(0x02000401), + 6: uint32(0x00100401), + 7: uint32(0x02100400), + 8: uint32(0x02100401), + 9: uint32(0x00100000), + 11: uint32(0x02000001), + 12: uint32(0x00000001), + 13: uint32(0x02000000), + 14: uint32(0x02100001), + 15: uint32(0x00000401), + 16: uint32(0x02000400), + 17: uint32(0x00100401), + 18: uint32(0x00100001), + 19: uint32(0x02000400), + 20: uint32(0x02000001), + 21: uint32(0x02100000), + 22: uint32(0x02100400), + 23: uint32(0x00100001), + 24: uint32(0x02100000), + 25: uint32(0x00000400), + 26: uint32(0x00000401), + 27: uint32(0x02100401), + 28: uint32(0x00100400), + 29: uint32(0x00000001), + 30: uint32(0x02000000), + 31: uint32(0x00100400), + 32: uint32(0x02000000), + 33: uint32(0x00100400), + 34: uint32(0x00100000), + 35: uint32(0x02000401), + 36: uint32(0x02000401), + 37: uint32(0x02100001), + 38: uint32(0x02100001), + 39: uint32(0x00000001), + 40: uint32(0x00100001), + 41: uint32(0x02000000), + 42: uint32(0x02000400), + 43: uint32(0x00100000), + 44: uint32(0x02100400), + 45: uint32(0x00000401), + 46: uint32(0x00100401), + 47: uint32(0x02100400), + 48: uint32(0x00000401), + 49: uint32(0x02000001), + 50: uint32(0x02100401), + 51: uint32(0x02100000), + 52: uint32(0x00100400), + 54: uint32(0x00000001), + 55: uint32(0x02100401), + 57: uint32(0x00100401), + 58: uint32(0x02100000), + 59: uint32(0x00000400), + 60: uint32(0x02000001), + 61: uint32(0x02000400), + 62: uint32(0x00000400), + 63: uint32(0x00100001), + }, + 7: { + 0: uint32(0x08000820), + 1: uint32(0x00000800), + 2: uint32(0x00020000), + 3: uint32(0x08020820), + 4: uint32(0x08000000), + 5: uint32(0x08000820), + 6: uint32(0x00000020), + 7: uint32(0x08000000), + 8: uint32(0x00020020), + 9: uint32(0x08020000), + 10: uint32(0x08020820), + 11: uint32(0x00020800), + 12: uint32(0x08020800), + 13: uint32(0x00020820), + 14: uint32(0x00000800), + 15: uint32(0x00000020), + 16: uint32(0x08020000), + 17: uint32(0x08000020), + 18: uint32(0x08000800), + 19: uint32(0x00000820), + 20: uint32(0x00020800), + 21: uint32(0x00020020), + 22: uint32(0x08020020), + 23: uint32(0x08020800), + 24: uint32(0x00000820), + 27: uint32(0x08020020), + 28: uint32(0x08000020), + 29: uint32(0x08000800), + 30: uint32(0x00020820), + 31: uint32(0x00020000), + 32: uint32(0x00020820), + 33: uint32(0x00020000), + 34: uint32(0x08020800), + 35: uint32(0x00000800), + 36: uint32(0x00000020), + 37: uint32(0x08020020), + 38: uint32(0x00000800), + 39: uint32(0x00020820), + 40: uint32(0x08000800), + 41: uint32(0x00000020), + 42: uint32(0x08000020), + 43: uint32(0x08020000), + 44: uint32(0x08020020), + 45: uint32(0x08000000), + 46: uint32(0x00020000), + 47: uint32(0x08000820), + 49: uint32(0x08020820), + 50: uint32(0x00020020), + 51: uint32(0x08000020), + 52: uint32(0x08020000), + 53: uint32(0x08000800), + 54: uint32(0x08000820), + 56: uint32(0x08020820), + 57: uint32(0x00020800), + 58: uint32(0x00020800), + 59: uint32(0x00000820), + 60: uint32(0x00000820), + 61: uint32(0x00020020), + 62: uint32(0x08000000), + 63: uint32(0x08020800), + }, +} +var _ip_maskl = [16][16]Tuint32_t{ + 0: { + 1: uint32(0x00010000), + 3: uint32(0x00010000), + 4: uint32(0x01000000), + 5: uint32(0x01010000), + 6: uint32(0x01000000), + 7: uint32(0x01010000), + 9: uint32(0x00010000), + 11: uint32(0x00010000), + 12: uint32(0x01000000), + 13: uint32(0x01010000), + 14: uint32(0x01000000), + 15: uint32(0x01010000), + }, + 1: { + 1: uint32(0x00000001), + 3: uint32(0x00000001), + 4: uint32(0x00000100), + 5: uint32(0x00000101), + 6: uint32(0x00000100), + 7: uint32(0x00000101), + 9: uint32(0x00000001), + 11: uint32(0x00000001), + 12: uint32(0x00000100), + 13: uint32(0x00000101), + 14: uint32(0x00000100), + 15: uint32(0x00000101), + }, + 2: { + 1: uint32(0x00020000), + 3: uint32(0x00020000), + 4: uint32(0x02000000), + 5: uint32(0x02020000), + 6: uint32(0x02000000), + 7: uint32(0x02020000), + 9: uint32(0x00020000), + 11: uint32(0x00020000), + 12: uint32(0x02000000), + 13: uint32(0x02020000), + 14: uint32(0x02000000), + 15: uint32(0x02020000), + }, + 3: { + 1: uint32(0x00000002), + 3: uint32(0x00000002), + 4: uint32(0x00000200), + 5: uint32(0x00000202), + 6: uint32(0x00000200), + 7: uint32(0x00000202), + 9: uint32(0x00000002), + 11: uint32(0x00000002), + 12: uint32(0x00000200), + 13: uint32(0x00000202), + 14: uint32(0x00000200), + 15: uint32(0x00000202), + }, + 4: { + 1: uint32(0x00040000), + 3: uint32(0x00040000), + 4: uint32(0x04000000), + 5: uint32(0x04040000), + 6: uint32(0x04000000), + 7: uint32(0x04040000), + 9: uint32(0x00040000), + 11: uint32(0x00040000), + 12: uint32(0x04000000), + 13: uint32(0x04040000), + 14: uint32(0x04000000), + 15: uint32(0x04040000), + }, + 5: { + 1: uint32(0x00000004), + 3: uint32(0x00000004), + 4: uint32(0x00000400), + 5: uint32(0x00000404), + 6: uint32(0x00000400), + 7: uint32(0x00000404), + 9: uint32(0x00000004), + 11: uint32(0x00000004), + 12: uint32(0x00000400), + 13: uint32(0x00000404), + 14: uint32(0x00000400), + 15: uint32(0x00000404), + }, + 6: { + 1: uint32(0x00080000), + 3: uint32(0x00080000), + 4: uint32(0x08000000), + 5: uint32(0x08080000), + 6: uint32(0x08000000), + 7: uint32(0x08080000), + 9: uint32(0x00080000), + 11: uint32(0x00080000), + 12: uint32(0x08000000), + 13: uint32(0x08080000), + 14: uint32(0x08000000), + 15: uint32(0x08080000), + }, + 7: { + 1: uint32(0x00000008), + 3: uint32(0x00000008), + 4: uint32(0x00000800), + 5: uint32(0x00000808), + 6: uint32(0x00000800), + 7: uint32(0x00000808), + 9: uint32(0x00000008), + 11: uint32(0x00000008), + 12: uint32(0x00000800), + 13: uint32(0x00000808), + 14: uint32(0x00000800), + 15: uint32(0x00000808), + }, + 8: { + 1: uint32(0x00100000), + 3: uint32(0x00100000), + 4: uint32(0x10000000), + 5: uint32(0x10100000), + 6: uint32(0x10000000), + 7: uint32(0x10100000), + 9: uint32(0x00100000), + 11: uint32(0x00100000), + 12: uint32(0x10000000), + 13: uint32(0x10100000), + 14: uint32(0x10000000), + 15: uint32(0x10100000), + }, + 9: { + 1: uint32(0x00000010), + 3: uint32(0x00000010), + 4: uint32(0x00001000), + 5: uint32(0x00001010), + 6: uint32(0x00001000), + 7: uint32(0x00001010), + 9: uint32(0x00000010), + 11: uint32(0x00000010), + 12: uint32(0x00001000), + 13: uint32(0x00001010), + 14: uint32(0x00001000), + 15: uint32(0x00001010), + }, + 10: { + 1: uint32(0x00200000), + 3: uint32(0x00200000), + 4: uint32(0x20000000), + 5: uint32(0x20200000), + 6: uint32(0x20000000), + 7: uint32(0x20200000), + 9: uint32(0x00200000), + 11: uint32(0x00200000), + 12: uint32(0x20000000), + 13: uint32(0x20200000), + 14: uint32(0x20000000), + 15: uint32(0x20200000), + }, + 11: { + 1: uint32(0x00000020), + 3: uint32(0x00000020), + 4: uint32(0x00002000), + 5: uint32(0x00002020), + 6: uint32(0x00002000), + 7: uint32(0x00002020), + 9: uint32(0x00000020), + 11: uint32(0x00000020), + 12: uint32(0x00002000), + 13: uint32(0x00002020), + 14: uint32(0x00002000), + 15: uint32(0x00002020), + }, + 12: { + 1: uint32(0x00400000), + 3: uint32(0x00400000), + 4: uint32(0x40000000), + 5: uint32(0x40400000), + 6: uint32(0x40000000), + 7: uint32(0x40400000), + 9: uint32(0x00400000), + 11: uint32(0x00400000), + 12: uint32(0x40000000), + 13: uint32(0x40400000), + 14: uint32(0x40000000), + 15: uint32(0x40400000), + }, + 13: { + 1: uint32(0x00000040), + 3: uint32(0x00000040), + 4: uint32(0x00004000), + 5: uint32(0x00004040), + 6: uint32(0x00004000), + 7: uint32(0x00004040), + 9: uint32(0x00000040), + 11: uint32(0x00000040), + 12: uint32(0x00004000), + 13: uint32(0x00004040), + 14: uint32(0x00004000), + 15: uint32(0x00004040), + }, + 14: { + 1: uint32(0x00800000), + 3: uint32(0x00800000), + 4: uint32(0x80000000), + 5: uint32(0x80800000), + 6: uint32(0x80000000), + 7: uint32(0x80800000), + 9: uint32(0x00800000), + 11: uint32(0x00800000), + 12: uint32(0x80000000), + 13: uint32(0x80800000), + 14: uint32(0x80000000), + 15: uint32(0x80800000), + }, + 15: { + 1: uint32(0x00000080), + 3: uint32(0x00000080), + 4: uint32(0x00008000), + 5: uint32(0x00008080), + 6: uint32(0x00008000), + 7: uint32(0x00008080), + 9: uint32(0x00000080), + 11: uint32(0x00000080), + 12: uint32(0x00008000), + 13: uint32(0x00008080), + 14: uint32(0x00008000), + 15: uint32(0x00008080), + }, +} +var _ip_maskr = [16][16]Tuint32_t{ + 0: { + 2: uint32(0x00010000), + 3: uint32(0x00010000), + 6: uint32(0x00010000), + 7: uint32(0x00010000), + 8: uint32(0x01000000), + 9: uint32(0x01000000), + 10: uint32(0x01010000), + 11: uint32(0x01010000), + 12: uint32(0x01000000), + 13: uint32(0x01000000), + 14: uint32(0x01010000), + 15: uint32(0x01010000), + }, + 1: { + 2: uint32(0x00000001), + 3: uint32(0x00000001), + 6: uint32(0x00000001), + 7: uint32(0x00000001), + 8: uint32(0x00000100), + 9: uint32(0x00000100), + 10: uint32(0x00000101), + 11: uint32(0x00000101), + 12: uint32(0x00000100), + 13: uint32(0x00000100), + 14: uint32(0x00000101), + 15: uint32(0x00000101), + }, + 2: { + 2: uint32(0x00020000), + 3: uint32(0x00020000), + 6: uint32(0x00020000), + 7: uint32(0x00020000), + 8: uint32(0x02000000), + 9: uint32(0x02000000), + 10: uint32(0x02020000), + 11: uint32(0x02020000), + 12: uint32(0x02000000), + 13: uint32(0x02000000), + 14: uint32(0x02020000), + 15: uint32(0x02020000), + }, + 3: { + 2: uint32(0x00000002), + 3: uint32(0x00000002), + 6: uint32(0x00000002), + 7: uint32(0x00000002), + 8: uint32(0x00000200), + 9: uint32(0x00000200), + 10: uint32(0x00000202), + 11: uint32(0x00000202), + 12: uint32(0x00000200), + 13: uint32(0x00000200), + 14: uint32(0x00000202), + 15: uint32(0x00000202), + }, + 4: { + 2: uint32(0x00040000), + 3: uint32(0x00040000), + 6: uint32(0x00040000), + 7: uint32(0x00040000), + 8: uint32(0x04000000), + 9: uint32(0x04000000), + 10: uint32(0x04040000), + 11: uint32(0x04040000), + 12: uint32(0x04000000), + 13: uint32(0x04000000), + 14: uint32(0x04040000), + 15: uint32(0x04040000), + }, + 5: { + 2: uint32(0x00000004), + 3: uint32(0x00000004), + 6: uint32(0x00000004), + 7: uint32(0x00000004), + 8: uint32(0x00000400), + 9: uint32(0x00000400), + 10: uint32(0x00000404), + 11: uint32(0x00000404), + 12: uint32(0x00000400), + 13: uint32(0x00000400), + 14: uint32(0x00000404), + 15: uint32(0x00000404), + }, + 6: { + 2: uint32(0x00080000), + 3: uint32(0x00080000), + 6: uint32(0x00080000), + 7: uint32(0x00080000), + 8: uint32(0x08000000), + 9: uint32(0x08000000), + 10: uint32(0x08080000), + 11: uint32(0x08080000), + 12: uint32(0x08000000), + 13: uint32(0x08000000), + 14: uint32(0x08080000), + 15: uint32(0x08080000), + }, + 7: { + 2: uint32(0x00000008), + 3: uint32(0x00000008), + 6: uint32(0x00000008), + 7: uint32(0x00000008), + 8: uint32(0x00000800), + 9: uint32(0x00000800), + 10: uint32(0x00000808), + 11: uint32(0x00000808), + 12: uint32(0x00000800), + 13: uint32(0x00000800), + 14: uint32(0x00000808), + 15: uint32(0x00000808), + }, + 8: { + 2: uint32(0x00100000), + 3: uint32(0x00100000), + 6: uint32(0x00100000), + 7: uint32(0x00100000), + 8: uint32(0x10000000), + 9: uint32(0x10000000), + 10: uint32(0x10100000), + 11: uint32(0x10100000), + 12: uint32(0x10000000), + 13: uint32(0x10000000), + 14: uint32(0x10100000), + 15: uint32(0x10100000), + }, + 9: { + 2: uint32(0x00000010), + 3: uint32(0x00000010), + 6: uint32(0x00000010), + 7: uint32(0x00000010), + 8: uint32(0x00001000), + 9: uint32(0x00001000), + 10: uint32(0x00001010), + 11: uint32(0x00001010), + 12: uint32(0x00001000), + 13: uint32(0x00001000), + 14: uint32(0x00001010), + 15: uint32(0x00001010), + }, + 10: { + 2: uint32(0x00200000), + 3: uint32(0x00200000), + 6: uint32(0x00200000), + 7: uint32(0x00200000), + 8: uint32(0x20000000), + 9: uint32(0x20000000), + 10: uint32(0x20200000), + 11: uint32(0x20200000), + 12: uint32(0x20000000), + 13: uint32(0x20000000), + 14: uint32(0x20200000), + 15: uint32(0x20200000), + }, + 11: { + 2: uint32(0x00000020), + 3: uint32(0x00000020), + 6: uint32(0x00000020), + 7: uint32(0x00000020), + 8: uint32(0x00002000), + 9: uint32(0x00002000), + 10: uint32(0x00002020), + 11: uint32(0x00002020), + 12: uint32(0x00002000), + 13: uint32(0x00002000), + 14: uint32(0x00002020), + 15: uint32(0x00002020), + }, + 12: { + 2: uint32(0x00400000), + 3: uint32(0x00400000), + 6: uint32(0x00400000), + 7: uint32(0x00400000), + 8: uint32(0x40000000), + 9: uint32(0x40000000), + 10: uint32(0x40400000), + 11: uint32(0x40400000), + 12: uint32(0x40000000), + 13: uint32(0x40000000), + 14: uint32(0x40400000), + 15: uint32(0x40400000), + }, + 13: { + 2: uint32(0x00000040), + 3: uint32(0x00000040), + 6: uint32(0x00000040), + 7: uint32(0x00000040), + 8: uint32(0x00004000), + 9: uint32(0x00004000), + 10: uint32(0x00004040), + 11: uint32(0x00004040), + 12: uint32(0x00004000), + 13: uint32(0x00004000), + 14: uint32(0x00004040), + 15: uint32(0x00004040), + }, + 14: { + 2: uint32(0x00800000), + 3: uint32(0x00800000), + 6: uint32(0x00800000), + 7: uint32(0x00800000), + 8: uint32(0x80000000), + 9: uint32(0x80000000), + 10: uint32(0x80800000), + 11: uint32(0x80800000), + 12: uint32(0x80000000), + 13: uint32(0x80000000), + 14: uint32(0x80800000), + 15: uint32(0x80800000), + }, + 15: { + 2: uint32(0x00000080), + 3: uint32(0x00000080), + 6: uint32(0x00000080), + 7: uint32(0x00000080), + 8: uint32(0x00008000), + 9: uint32(0x00008000), + 10: uint32(0x00008080), + 11: uint32(0x00008080), + 12: uint32(0x00008000), + 13: uint32(0x00008000), + 14: uint32(0x00008080), + 15: uint32(0x00008080), + }, +} +var _fp_maskl = [8][16]Tuint32_t{ + 0: { + 1: uint32(0x40000000), + 2: uint32(0x00400000), + 3: uint32(0x40400000), + 4: uint32(0x00004000), + 5: uint32(0x40004000), + 6: uint32(0x00404000), + 7: uint32(0x40404000), + 8: uint32(0x00000040), + 9: uint32(0x40000040), + 10: uint32(0x00400040), + 11: uint32(0x40400040), + 12: uint32(0x00004040), + 13: uint32(0x40004040), + 14: uint32(0x00404040), + 15: uint32(0x40404040), + }, + 1: { + 1: uint32(0x10000000), + 2: uint32(0x00100000), + 3: uint32(0x10100000), + 4: uint32(0x00001000), + 5: uint32(0x10001000), + 6: uint32(0x00101000), + 7: uint32(0x10101000), + 8: uint32(0x00000010), + 9: uint32(0x10000010), + 10: uint32(0x00100010), + 11: uint32(0x10100010), + 12: uint32(0x00001010), + 13: uint32(0x10001010), + 14: uint32(0x00101010), + 15: uint32(0x10101010), + }, + 2: { + 1: uint32(0x04000000), + 2: uint32(0x00040000), + 3: uint32(0x04040000), + 4: uint32(0x00000400), + 5: uint32(0x04000400), + 6: uint32(0x00040400), + 7: uint32(0x04040400), + 8: uint32(0x00000004), + 9: uint32(0x04000004), + 10: uint32(0x00040004), + 11: uint32(0x04040004), + 12: uint32(0x00000404), + 13: uint32(0x04000404), + 14: uint32(0x00040404), + 15: uint32(0x04040404), + }, + 3: { + 1: uint32(0x01000000), + 2: uint32(0x00010000), + 3: uint32(0x01010000), + 4: uint32(0x00000100), + 5: uint32(0x01000100), + 6: uint32(0x00010100), + 7: uint32(0x01010100), + 8: uint32(0x00000001), + 9: uint32(0x01000001), + 10: uint32(0x00010001), + 11: uint32(0x01010001), + 12: uint32(0x00000101), + 13: uint32(0x01000101), + 14: uint32(0x00010101), + 15: uint32(0x01010101), + }, + 4: { + 1: uint32(0x80000000), + 2: uint32(0x00800000), + 3: uint32(0x80800000), + 4: uint32(0x00008000), + 5: uint32(0x80008000), + 6: uint32(0x00808000), + 7: uint32(0x80808000), + 8: uint32(0x00000080), + 9: uint32(0x80000080), + 10: uint32(0x00800080), + 11: uint32(0x80800080), + 12: uint32(0x00008080), + 13: uint32(0x80008080), + 14: uint32(0x00808080), + 15: uint32(0x80808080), + }, + 5: { + 1: uint32(0x20000000), + 2: uint32(0x00200000), + 3: uint32(0x20200000), + 4: uint32(0x00002000), + 5: uint32(0x20002000), + 6: uint32(0x00202000), + 7: uint32(0x20202000), + 8: uint32(0x00000020), + 9: uint32(0x20000020), + 10: uint32(0x00200020), + 11: uint32(0x20200020), + 12: uint32(0x00002020), + 13: uint32(0x20002020), + 14: uint32(0x00202020), + 15: uint32(0x20202020), + }, + 6: { + 1: uint32(0x08000000), + 2: uint32(0x00080000), + 3: uint32(0x08080000), + 4: uint32(0x00000800), + 5: uint32(0x08000800), + 6: uint32(0x00080800), + 7: uint32(0x08080800), + 8: uint32(0x00000008), + 9: uint32(0x08000008), + 10: uint32(0x00080008), + 11: uint32(0x08080008), + 12: uint32(0x00000808), + 13: uint32(0x08000808), + 14: uint32(0x00080808), + 15: uint32(0x08080808), + }, + 7: { + 1: uint32(0x02000000), + 2: uint32(0x00020000), + 3: uint32(0x02020000), + 4: uint32(0x00000200), + 5: uint32(0x02000200), + 6: uint32(0x00020200), + 7: uint32(0x02020200), + 8: uint32(0x00000002), + 9: uint32(0x02000002), + 10: uint32(0x00020002), + 11: uint32(0x02020002), + 12: uint32(0x00000202), + 13: uint32(0x02000202), + 14: uint32(0x00020202), + 15: uint32(0x02020202), + }, +} +var _fp_maskr = [8][16]Tuint32_t{ + 0: { + 1: uint32(0x40000000), + 2: uint32(0x00400000), + 3: uint32(0x40400000), + 4: uint32(0x00004000), + 5: uint32(0x40004000), + 6: uint32(0x00404000), + 7: uint32(0x40404000), + 8: uint32(0x00000040), + 9: uint32(0x40000040), + 10: uint32(0x00400040), + 11: uint32(0x40400040), + 12: uint32(0x00004040), + 13: uint32(0x40004040), + 14: uint32(0x00404040), + 15: uint32(0x40404040), + }, + 1: { + 1: uint32(0x10000000), + 2: uint32(0x00100000), + 3: uint32(0x10100000), + 4: uint32(0x00001000), + 5: uint32(0x10001000), + 6: uint32(0x00101000), + 7: uint32(0x10101000), + 8: uint32(0x00000010), + 9: uint32(0x10000010), + 10: uint32(0x00100010), + 11: uint32(0x10100010), + 12: uint32(0x00001010), + 13: uint32(0x10001010), + 14: uint32(0x00101010), + 15: uint32(0x10101010), + }, + 2: { + 1: uint32(0x04000000), + 2: uint32(0x00040000), + 3: uint32(0x04040000), + 4: uint32(0x00000400), + 5: uint32(0x04000400), + 6: uint32(0x00040400), + 7: uint32(0x04040400), + 8: uint32(0x00000004), + 9: uint32(0x04000004), + 10: uint32(0x00040004), + 11: uint32(0x04040004), + 12: uint32(0x00000404), + 13: uint32(0x04000404), + 14: uint32(0x00040404), + 15: uint32(0x04040404), + }, + 3: { + 1: uint32(0x01000000), + 2: uint32(0x00010000), + 3: uint32(0x01010000), + 4: uint32(0x00000100), + 5: uint32(0x01000100), + 6: uint32(0x00010100), + 7: uint32(0x01010100), + 8: uint32(0x00000001), + 9: uint32(0x01000001), + 10: uint32(0x00010001), + 11: uint32(0x01010001), + 12: uint32(0x00000101), + 13: uint32(0x01000101), + 14: uint32(0x00010101), + 15: uint32(0x01010101), + }, + 4: { + 1: uint32(0x80000000), + 2: uint32(0x00800000), + 3: uint32(0x80800000), + 4: uint32(0x00008000), + 5: uint32(0x80008000), + 6: uint32(0x00808000), + 7: uint32(0x80808000), + 8: uint32(0x00000080), + 9: uint32(0x80000080), + 10: uint32(0x00800080), + 11: uint32(0x80800080), + 12: uint32(0x00008080), + 13: uint32(0x80008080), + 14: uint32(0x00808080), + 15: uint32(0x80808080), + }, + 5: { + 1: uint32(0x20000000), + 2: uint32(0x00200000), + 3: uint32(0x20200000), + 4: uint32(0x00002000), + 5: uint32(0x20002000), + 6: uint32(0x00202000), + 7: uint32(0x20202000), + 8: uint32(0x00000020), + 9: uint32(0x20000020), + 10: uint32(0x00200020), + 11: uint32(0x20200020), + 12: uint32(0x00002020), + 13: uint32(0x20002020), + 14: uint32(0x00202020), + 15: uint32(0x20202020), + }, + 6: { + 1: uint32(0x08000000), + 2: uint32(0x00080000), + 3: uint32(0x08080000), + 4: uint32(0x00000800), + 5: uint32(0x08000800), + 6: uint32(0x00080800), + 7: uint32(0x08080800), + 8: uint32(0x00000008), + 9: uint32(0x08000008), + 10: uint32(0x00080008), + 11: uint32(0x08080008), + 12: uint32(0x00000808), + 13: uint32(0x08000808), + 14: uint32(0x00080808), + 15: uint32(0x08080808), + }, + 7: { + 1: uint32(0x02000000), + 2: uint32(0x00020000), + 3: uint32(0x02020000), + 4: uint32(0x00000200), + 5: uint32(0x02000200), + 6: uint32(0x00020200), + 7: uint32(0x02020200), + 8: uint32(0x00000002), + 9: uint32(0x02000002), + 10: uint32(0x00020002), + 11: uint32(0x02020002), + 12: uint32(0x00000202), + 13: uint32(0x02000202), + 14: uint32(0x00020202), + 15: uint32(0x02020202), + }, +} +var _key_perm_maskl = [8][16]Tuint32_t{ + 0: { + 2: uint32(0x00000010), + 3: uint32(0x00000010), + 4: uint32(0x00001000), + 5: uint32(0x00001000), + 6: uint32(0x00001010), + 7: uint32(0x00001010), + 8: uint32(0x00100000), + 9: uint32(0x00100000), + 10: uint32(0x00100010), + 11: uint32(0x00100010), + 12: uint32(0x00101000), + 13: uint32(0x00101000), + 14: uint32(0x00101010), + 15: uint32(0x00101010), + }, + 1: { + 2: uint32(0x00000020), + 3: uint32(0x00000020), + 4: uint32(0x00002000), + 5: uint32(0x00002000), + 6: uint32(0x00002020), + 7: uint32(0x00002020), + 8: uint32(0x00200000), + 9: uint32(0x00200000), + 10: uint32(0x00200020), + 11: uint32(0x00200020), + 12: uint32(0x00202000), + 13: uint32(0x00202000), + 14: uint32(0x00202020), + 15: uint32(0x00202020), + }, + 2: { + 2: uint32(0x00000040), + 3: uint32(0x00000040), + 4: uint32(0x00004000), + 5: uint32(0x00004000), + 6: uint32(0x00004040), + 7: uint32(0x00004040), + 8: uint32(0x00400000), + 9: uint32(0x00400000), + 10: uint32(0x00400040), + 11: uint32(0x00400040), + 12: uint32(0x00404000), + 13: uint32(0x00404000), + 14: uint32(0x00404040), + 15: uint32(0x00404040), + }, + 3: { + 2: uint32(0x00000080), + 3: uint32(0x00000080), + 4: uint32(0x00008000), + 5: uint32(0x00008000), + 6: uint32(0x00008080), + 7: uint32(0x00008080), + 8: uint32(0x00800000), + 9: uint32(0x00800000), + 10: uint32(0x00800080), + 11: uint32(0x00800080), + 12: uint32(0x00808000), + 13: uint32(0x00808000), + 14: uint32(0x00808080), + 15: uint32(0x00808080), + }, + 4: { + 1: uint32(0x00000001), + 2: uint32(0x00000100), + 3: uint32(0x00000101), + 4: uint32(0x00010000), + 5: uint32(0x00010001), + 6: uint32(0x00010100), + 7: uint32(0x00010101), + 8: uint32(0x01000000), + 9: uint32(0x01000001), + 10: uint32(0x01000100), + 11: uint32(0x01000101), + 12: uint32(0x01010000), + 13: uint32(0x01010001), + 14: uint32(0x01010100), + 15: uint32(0x01010101), + }, + 5: { + 1: uint32(0x00000002), + 2: uint32(0x00000200), + 3: uint32(0x00000202), + 4: uint32(0x00020000), + 5: uint32(0x00020002), + 6: uint32(0x00020200), + 7: uint32(0x00020202), + 8: uint32(0x02000000), + 9: uint32(0x02000002), + 10: uint32(0x02000200), + 11: uint32(0x02000202), + 12: uint32(0x02020000), + 13: uint32(0x02020002), + 14: uint32(0x02020200), + 15: uint32(0x02020202), + }, + 6: { + 1: uint32(0x00000004), + 2: uint32(0x00000400), + 3: uint32(0x00000404), + 4: uint32(0x00040000), + 5: uint32(0x00040004), + 6: uint32(0x00040400), + 7: uint32(0x00040404), + 8: uint32(0x04000000), + 9: uint32(0x04000004), + 10: uint32(0x04000400), + 11: uint32(0x04000404), + 12: uint32(0x04040000), + 13: uint32(0x04040004), + 14: uint32(0x04040400), + 15: uint32(0x04040404), + }, + 7: { + 1: uint32(0x00000008), + 2: uint32(0x00000800), + 3: uint32(0x00000808), + 4: uint32(0x00080000), + 5: uint32(0x00080008), + 6: uint32(0x00080800), + 7: uint32(0x00080808), + 8: uint32(0x08000000), + 9: uint32(0x08000008), + 10: uint32(0x08000800), + 11: uint32(0x08000808), + 12: uint32(0x08080000), + 13: uint32(0x08080008), + 14: uint32(0x08080800), + 15: uint32(0x08080808), + }, +} +var _key_perm_maskr = [12][16]Tuint32_t{ + 0: { + 1: uint32(0x00000001), + 3: uint32(0x00000001), + 5: uint32(0x00000001), + 7: uint32(0x00000001), + 9: uint32(0x00000001), + 11: uint32(0x00000001), + 13: uint32(0x00000001), + 15: uint32(0x00000001), + }, + 1: { + 2: uint32(0x00100000), + 3: uint32(0x00100000), + 4: uint32(0x00001000), + 5: uint32(0x00001000), + 6: uint32(0x00101000), + 7: uint32(0x00101000), + 8: uint32(0x00000010), + 9: uint32(0x00000010), + 10: uint32(0x00100010), + 11: uint32(0x00100010), + 12: uint32(0x00001010), + 13: uint32(0x00001010), + 14: uint32(0x00101010), + 15: uint32(0x00101010), + }, + 2: { + 1: uint32(0x00000002), + 3: uint32(0x00000002), + 5: uint32(0x00000002), + 7: uint32(0x00000002), + 9: uint32(0x00000002), + 11: uint32(0x00000002), + 13: uint32(0x00000002), + 15: uint32(0x00000002), + }, + 3: { + 2: uint32(0x00200000), + 3: uint32(0x00200000), + 4: uint32(0x00002000), + 5: uint32(0x00002000), + 6: uint32(0x00202000), + 7: uint32(0x00202000), + 8: uint32(0x00000020), + 9: uint32(0x00000020), + 10: uint32(0x00200020), + 11: uint32(0x00200020), + 12: uint32(0x00002020), + 13: uint32(0x00002020), + 14: uint32(0x00202020), + 15: uint32(0x00202020), + }, + 4: { + 1: uint32(0x00000004), + 3: uint32(0x00000004), + 5: uint32(0x00000004), + 7: uint32(0x00000004), + 9: uint32(0x00000004), + 11: uint32(0x00000004), + 13: uint32(0x00000004), + 15: uint32(0x00000004), + }, + 5: { + 2: uint32(0x00400000), + 3: uint32(0x00400000), + 4: uint32(0x00004000), + 5: uint32(0x00004000), + 6: uint32(0x00404000), + 7: uint32(0x00404000), + 8: uint32(0x00000040), + 9: uint32(0x00000040), + 10: uint32(0x00400040), + 11: uint32(0x00400040), + 12: uint32(0x00004040), + 13: uint32(0x00004040), + 14: uint32(0x00404040), + 15: uint32(0x00404040), + }, + 6: { + 1: uint32(0x00000008), + 3: uint32(0x00000008), + 5: uint32(0x00000008), + 7: uint32(0x00000008), + 9: uint32(0x00000008), + 11: uint32(0x00000008), + 13: uint32(0x00000008), + 15: uint32(0x00000008), + }, + 7: { + 2: uint32(0x00800000), + 3: uint32(0x00800000), + 4: uint32(0x00008000), + 5: uint32(0x00008000), + 6: uint32(0x00808000), + 7: uint32(0x00808000), + 8: uint32(0x00000080), + 9: uint32(0x00000080), + 10: uint32(0x00800080), + 11: uint32(0x00800080), + 12: uint32(0x00008080), + 13: uint32(0x00008080), + 14: uint32(0x00808080), + 15: uint32(0x00808080), + }, + 8: { + 2: uint32(0x01000000), + 3: uint32(0x01000000), + 4: uint32(0x00010000), + 5: uint32(0x00010000), + 6: uint32(0x01010000), + 7: uint32(0x01010000), + 8: uint32(0x00000100), + 9: uint32(0x00000100), + 10: uint32(0x01000100), + 11: uint32(0x01000100), + 12: uint32(0x00010100), + 13: uint32(0x00010100), + 14: uint32(0x01010100), + 15: uint32(0x01010100), + }, + 9: { + 2: uint32(0x02000000), + 3: uint32(0x02000000), + 4: uint32(0x00020000), + 5: uint32(0x00020000), + 6: uint32(0x02020000), + 7: uint32(0x02020000), + 8: uint32(0x00000200), + 9: uint32(0x00000200), + 10: uint32(0x02000200), + 11: uint32(0x02000200), + 12: uint32(0x00020200), + 13: uint32(0x00020200), + 14: uint32(0x02020200), + 15: uint32(0x02020200), + }, + 10: { + 2: uint32(0x04000000), + 3: uint32(0x04000000), + 4: uint32(0x00040000), + 5: uint32(0x00040000), + 6: uint32(0x04040000), + 7: uint32(0x04040000), + 8: uint32(0x00000400), + 9: uint32(0x00000400), + 10: uint32(0x04000400), + 11: uint32(0x04000400), + 12: uint32(0x00040400), + 13: uint32(0x00040400), + 14: uint32(0x04040400), + 15: uint32(0x04040400), + }, + 11: { + 2: uint32(0x08000000), + 3: uint32(0x08000000), + 4: uint32(0x00080000), + 5: uint32(0x00080000), + 6: uint32(0x08080000), + 7: uint32(0x08080000), + 8: uint32(0x00000800), + 9: uint32(0x00000800), + 10: uint32(0x08000800), + 11: uint32(0x08000800), + 12: uint32(0x00080800), + 13: uint32(0x00080800), + 14: uint32(0x08080800), + 15: uint32(0x08080800), + }, +} +var _comp_maskl0 = [4][8]Tuint32_t{ + 0: { + 1: uint32(0x00020000), + 2: uint32(0x00000001), + 3: uint32(0x00020001), + 4: uint32(0x00080000), + 5: uint32(0x000a0000), + 6: uint32(0x00080001), + 7: uint32(0x000a0001), + }, + 1: { + 1: uint32(0x00001000), + 3: uint32(0x00001000), + 4: uint32(0x00000040), + 5: uint32(0x00001040), + 6: uint32(0x00000040), + 7: uint32(0x00001040), + }, + 2: { + 1: uint32(0x00400000), + 2: uint32(0x00000020), + 3: uint32(0x00400020), + 4: uint32(0x00008000), + 5: uint32(0x00408000), + 6: uint32(0x00008020), + 7: uint32(0x00408020), + }, + 3: { + 1: uint32(0x00100000), + 2: uint32(0x00000800), + 3: uint32(0x00100800), + 5: uint32(0x00100000), + 6: uint32(0x00000800), + 7: uint32(0x00100800), + }, +} +var _comp_maskr0 = [4][8]Tuint32_t{ + 0: { + 1: uint32(0x00200000), + 2: uint32(0x00020000), + 3: uint32(0x00220000), + 4: uint32(0x00000002), + 5: uint32(0x00200002), + 6: uint32(0x00020002), + 7: uint32(0x00220002), + }, + 1: { + 2: uint32(0x00100000), + 3: uint32(0x00100000), + 4: uint32(0x00000004), + 5: uint32(0x00000004), + 6: uint32(0x00100004), + 7: uint32(0x00100004), + }, + 2: { + 1: uint32(0x00004000), + 2: uint32(0x00000800), + 3: uint32(0x00004800), + 5: uint32(0x00004000), + 6: uint32(0x00000800), + 7: uint32(0x00004800), + }, + 3: { + 1: uint32(0x00400000), + 2: uint32(0x00008000), + 3: uint32(0x00408000), + 4: uint32(0x00000008), + 5: uint32(0x00400008), + 6: uint32(0x00008008), + 7: uint32(0x00408008), + }, +} +var _comp_maskl1 = [4][16]Tuint32_t{ + 0: { + 1: uint32(0x00000010), + 2: uint32(0x00004000), + 3: uint32(0x00004010), + 4: uint32(0x00040000), + 5: uint32(0x00040010), + 6: uint32(0x00044000), + 7: uint32(0x00044010), + 8: uint32(0x00000100), + 9: uint32(0x00000110), + 10: uint32(0x00004100), + 11: uint32(0x00004110), + 12: uint32(0x00040100), + 13: uint32(0x00040110), + 14: uint32(0x00044100), + 15: uint32(0x00044110), + }, + 1: { + 1: uint32(0x00800000), + 2: uint32(0x00000002), + 3: uint32(0x00800002), + 4: uint32(0x00000200), + 5: uint32(0x00800200), + 6: uint32(0x00000202), + 7: uint32(0x00800202), + 8: uint32(0x00200000), + 9: uint32(0x00a00000), + 10: uint32(0x00200002), + 11: uint32(0x00a00002), + 12: uint32(0x00200200), + 13: uint32(0x00a00200), + 14: uint32(0x00200202), + 15: uint32(0x00a00202), + }, + 2: { + 1: uint32(0x00002000), + 2: uint32(0x00000004), + 3: uint32(0x00002004), + 4: uint32(0x00000400), + 5: uint32(0x00002400), + 6: uint32(0x00000404), + 7: uint32(0x00002404), + 9: uint32(0x00002000), + 10: uint32(0x00000004), + 11: uint32(0x00002004), + 12: uint32(0x00000400), + 13: uint32(0x00002400), + 14: uint32(0x00000404), + 15: uint32(0x00002404), + }, + 3: { + 1: uint32(0x00010000), + 2: uint32(0x00000008), + 3: uint32(0x00010008), + 4: uint32(0x00000080), + 5: uint32(0x00010080), + 6: uint32(0x00000088), + 7: uint32(0x00010088), + 9: uint32(0x00010000), + 10: uint32(0x00000008), + 11: uint32(0x00010008), + 12: uint32(0x00000080), + 13: uint32(0x00010080), + 14: uint32(0x00000088), + 15: uint32(0x00010088), + }, +} +var _comp_maskr1 = [4][16]Tuint32_t{ + 0: { + 2: uint32(0x00000080), + 3: uint32(0x00000080), + 4: uint32(0x00002000), + 5: uint32(0x00002000), + 6: uint32(0x00002080), + 7: uint32(0x00002080), + 8: uint32(0x00000001), + 9: uint32(0x00000001), + 10: uint32(0x00000081), + 11: uint32(0x00000081), + 12: uint32(0x00002001), + 13: uint32(0x00002001), + 14: uint32(0x00002081), + 15: uint32(0x00002081), + }, + 1: { + 1: uint32(0x00000010), + 2: uint32(0x00800000), + 3: uint32(0x00800010), + 4: uint32(0x00010000), + 5: uint32(0x00010010), + 6: uint32(0x00810000), + 7: uint32(0x00810010), + 8: uint32(0x00000200), + 9: uint32(0x00000210), + 10: uint32(0x00800200), + 11: uint32(0x00800210), + 12: uint32(0x00010200), + 13: uint32(0x00010210), + 14: uint32(0x00810200), + 15: uint32(0x00810210), + }, + 2: { + 1: uint32(0x00000400), + 2: uint32(0x00001000), + 3: uint32(0x00001400), + 4: uint32(0x00080000), + 5: uint32(0x00080400), + 6: uint32(0x00081000), + 7: uint32(0x00081400), + 8: uint32(0x00000020), + 9: uint32(0x00000420), + 10: uint32(0x00001020), + 11: uint32(0x00001420), + 12: uint32(0x00080020), + 13: uint32(0x00080420), + 14: uint32(0x00081020), + 15: uint32(0x00081420), + }, + 3: { + 1: uint32(0x00000100), + 2: uint32(0x00040000), + 3: uint32(0x00040100), + 5: uint32(0x00000100), + 6: uint32(0x00040000), + 7: uint32(0x00040100), + 8: uint32(0x00000040), + 9: uint32(0x00000140), + 10: uint32(0x00040040), + 11: uint32(0x00040140), + 12: uint32(0x00000040), + 13: uint32(0x00000140), + 14: uint32(0x00040040), + 15: uint32(0x00040140), + }, +} + +var _ascii64 = [65]uint8{'.', '/', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'} + +/* 0000000000111111111122222222223333333333444444444455555555556666 */ +/* 0123456789012345678901234567890123456789012345678901234567890123 */ + +// C documentation +// +// /* +// * We match the behavior of UFC-crypt on systems where "char" is signed by +// * default (the majority), regardless of char's signedness on our system. +// */ +func _ascii_to_bin(tls *TLS, ch int32) (r Tuint32_t) { + var retval, sch, v1 int32 + _, _, _ = retval, sch, v1 + if ch < int32(0x80) { + v1 = ch + } else { + v1 = -(int32(0x100) - ch) + } + sch = v1 + retval = sch - int32('.') + if sch >= int32('A') { + retval = sch - (Int32FromUint8('A') - Int32FromInt32(12)) + if sch >= int32('a') { + retval = sch - (Int32FromUint8('a') - Int32FromInt32(38)) + } + } + retval = retval & int32(0x3f) + return Uint32FromInt32(retval) +} + +// C documentation +// +// /* +// * When we choose to "support" invalid salts, nevertheless disallow those +// * containing characters that would violate the passwd file format. +// */ +func _ascii_is_unsafe(tls *TLS, ch uint8) (r int32) { + return BoolInt32(!(ch != 0) || Int32FromUint8(ch) == int32('\n') || Int32FromUint8(ch) == int32(':')) +} + +func _setup_salt(tls *TLS, salt Tuint32_t) (r Tuint32_t) { + var i uint32 + var obit, saltbit, saltbits Tuint32_t + _, _, _, _ = i, obit, saltbit, saltbits + saltbits = uint32(0) + saltbit = uint32(1) + obit = uint32(0x800000) + i = uint32(0) + for { + if !(i < uint32(24)) { + break + } + if salt&saltbit != 0 { + saltbits = saltbits | obit + } + saltbit = saltbit << uint32(1) + obit = obit >> uint32(1) + goto _1 + _1: + ; + i = i + 1 + } + return saltbits +} + +func X__des_setkey(tls *TLS, key uintptr, ekey uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v ekey=%v, (%v:)", tls, key, ekey, origin(2)) + } + var i, ibit, j, round, shifts uint32 + var k0, k1, kl, kr, rawkey0, rawkey1, t0, t1, v1 Tuint32_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = i, ibit, j, k0, k1, kl, kr, rawkey0, rawkey1, round, shifts, t0, t1, v1 + rawkey0 = uint32(**(**uint8)(__ccgo_up(key + 3))) | uint32(**(**uint8)(__ccgo_up(key + 2)))<>ibit&uint32(0xf))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_key_perm_maskl)) + uintptr(i+uint32(4))*64 + uintptr(rawkey1>>ibit&uint32(0xf))*4))) + k1 = k1 | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_key_perm_maskr)) + uintptr(j)*64 + uintptr(rawkey0>>ibit&uint32(0xf))*4)) + ibit = ibit - uint32(4) + k1 = k1 | (**(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_key_perm_maskr)) + uintptr(j+uint32(1))*64 + uintptr(rawkey0>>ibit&uint32(0xf))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_key_perm_maskr)) + uintptr(i+uint32(8))*64 + uintptr(rawkey1>>ibit&uint32(0xf))*4))) + goto _2 + _2: + ; + i = i + 1 + ibit = ibit - uint32(4) + } + /* + * Rotate subkeys and do compression permutation. + */ + shifts = uint32(0) + round = uint32(0) + for { + if !(round < uint32(16)) { + break + } + shifts = shifts + uint32(_key_shifts[round]) + t0 = k0<>(Uint32FromInt32(28)-shifts) + t1 = k1<>(Uint32FromInt32(28)-shifts) + v1 = Uint32FromInt32(0) + kr = v1 + kl = v1 + ibit = uint32(25) + i = uint32(0) + for { + if !(i < uint32(4)) { + break + } + kl = kl | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_comp_maskl0)) + uintptr(i)*32 + uintptr(t0>>ibit&uint32(7))*4)) + kr = kr | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_comp_maskr0)) + uintptr(i)*32 + uintptr(t1>>ibit&uint32(7))*4)) + ibit = ibit - uint32(4) + kl = kl | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_comp_maskl1)) + uintptr(i)*64 + uintptr(t0>>ibit&uint32(0xf))*4)) + kr = kr | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_comp_maskr1)) + uintptr(i)*64 + uintptr(t1>>ibit&uint32(0xf))*4)) + ibit = ibit - uint32(3) + goto _5 + _5: + ; + i = i + 1 + } + **(**Tuint32_t)(__ccgo_up(ekey + uintptr(round)*4)) = kl + **(**Tuint32_t)(__ccgo_up(ekey + 64 + uintptr(round)*4)) = kr + goto _3 + _3: + ; + round = round + 1 + } +} + +// C documentation +// +// /* +// * l_in, r_in, l_out, and r_out are in pseudo-"big-endian" format. +// */ +func X__do_des(tls *TLS, l_in Tuint32_t, r_in Tuint32_t, l_out uintptr, r_out uintptr, count Tuint32_t, saltbits Tuint32_t, ekey uintptr) { + if __ccgo_strace { + trc("tls=%v l_in=%v r_in=%v l_out=%v r_out=%v count=%v saltbits=%v ekey=%v, (%v:)", tls, l_in, r_in, l_out, r_out, count, saltbits, ekey, origin(2)) + } + var f, l, lo, r, r48l, r48r, ro, v1 Tuint32_t + var i, i1, ibit, ibit1, round, v4 uint32 + var kl, kr, v5 uintptr + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = f, i, i1, ibit, ibit1, kl, kr, l, lo, r, r48l, r48r, ro, round, v1, v4, v5 + /* + * Do initial permutation (IP). + */ + v1 = Uint32FromInt32(0) + r = v1 + l = v1 + if l_in|r_in != 0 { + i = uint32(0) + ibit = Uint32FromInt32(28) + for { + if !(i < uint32(8)) { + break + } + l = l | (**(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_ip_maskl)) + uintptr(i)*64 + uintptr(l_in>>ibit&uint32(0xf))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_ip_maskl)) + uintptr(i+uint32(8))*64 + uintptr(r_in>>ibit&uint32(0xf))*4))) + r = r | (**(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_ip_maskr)) + uintptr(i)*64 + uintptr(l_in>>ibit&uint32(0xf))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_ip_maskr)) + uintptr(i+uint32(8))*64 + uintptr(r_in>>ibit&uint32(0xf))*4))) + goto _2 + _2: + ; + i = i + 1 + ibit = ibit - uint32(4) + } + } + for { + v1 = count + count = count - 1 + if !(v1 != 0) { + break + } + /* + * Do each round. + */ + round = uint32(16) + kl = ekey + kr = ekey + 64 + for { + v4 = round + round = round - 1 + if !(v4 != 0) { + break + } + /* + * Expand R to 48 bits (simulate the E-box). + */ + r48l = r&uint32(0x00000001)<>int32(9) | r&uint32(0x1f800000)>>int32(11) | r&uint32(0x01f80000)>>int32(13) | r&uint32(0x001f8000)>>int32(15) + r48r = r&uint32(0x0001f800)<>int32(31) + /* + * Do salting for crypt() and friends, and + * XOR with the permuted key. + */ + f = (r48l ^ r48r) & saltbits + v5 = kl + kl += 4 + r48l = r48l ^ (f ^ **(**Tuint32_t)(__ccgo_up(v5))) + v5 = kr + kr += 4 + r48r = r48r ^ (f ^ **(**Tuint32_t)(__ccgo_up(v5))) + /* + * Do S-box lookups (which shrink it back to 32 bits) + * and do the P-box permutation at the same time. + */ + f = **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_psbox)) + uintptr(r48l>>int32(18))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_psbox)) + 1*256 + uintptr(r48l>>Int32FromInt32(12)&uint32(0x3f))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_psbox)) + 2*256 + uintptr(r48l>>Int32FromInt32(6)&uint32(0x3f))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_psbox)) + 3*256 + uintptr(r48l&uint32(0x3f))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_psbox)) + 4*256 + uintptr(r48r>>int32(18))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_psbox)) + 5*256 + uintptr(r48r>>Int32FromInt32(12)&uint32(0x3f))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_psbox)) + 6*256 + uintptr(r48r>>Int32FromInt32(6)&uint32(0x3f))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_psbox)) + 7*256 + uintptr(r48r&uint32(0x3f))*4)) + /* + * Now that we've permuted things, complete f(). + */ + f = f ^ l + l = r + r = f + } + r = l + l = f + } + /* + * Do final permutation (inverse of IP). + */ + v1 = Uint32FromInt32(0) + ro = v1 + lo = v1 + i1 = uint32(0) + ibit1 = Uint32FromInt32(28) + for { + if !(i1 < uint32(4)) { + break + } + ro = ro | (**(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_fp_maskr)) + uintptr(i1)*64 + uintptr(l>>ibit1&uint32(0xf))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_fp_maskr)) + uintptr(i1+uint32(4))*64 + uintptr(r>>ibit1&uint32(0xf))*4))) + ibit1 = ibit1 - uint32(4) + lo = lo | (**(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_fp_maskl)) + uintptr(i1)*64 + uintptr(l>>ibit1&uint32(0xf))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_fp_maskl)) + uintptr(i1+uint32(4))*64 + uintptr(r>>ibit1&uint32(0xf))*4))) + goto _8 + _8: + ; + i1 = i1 + 1 + ibit1 = ibit1 - uint32(4) + } + **(**Tuint32_t)(__ccgo_up(l_out)) = lo + **(**Tuint32_t)(__ccgo_up(r_out)) = ro +} + +func _des_cipher(tls *TLS, in uintptr, out uintptr, count Tuint32_t, saltbits Tuint32_t, ekey uintptr) { + bp := tls.Alloc(16) + defer tls.Free(16) + var rawl, rawr Tuint32_t + var _ /* l_out at bp+0 */ Tuint32_t + var _ /* r_out at bp+4 */ Tuint32_t + _, _ = rawl, rawr + rawl = uint32(**(**uint8)(__ccgo_up(in + 3))) | uint32(**(**uint8)(__ccgo_up(in + 2)))<> int32(24)) + **(**uint8)(__ccgo_up(out + 1)) = uint8(**(**Tuint32_t)(__ccgo_up(bp)) >> int32(16)) + **(**uint8)(__ccgo_up(out + 2)) = uint8(**(**Tuint32_t)(__ccgo_up(bp)) >> int32(8)) + **(**uint8)(__ccgo_up(out + 3)) = uint8(**(**Tuint32_t)(__ccgo_up(bp))) + **(**uint8)(__ccgo_up(out + 4)) = uint8(**(**Tuint32_t)(__ccgo_up(bp + 4)) >> int32(24)) + **(**uint8)(__ccgo_up(out + 5)) = uint8(**(**Tuint32_t)(__ccgo_up(bp + 4)) >> int32(16)) + **(**uint8)(__ccgo_up(out + 6)) = uint8(**(**Tuint32_t)(__ccgo_up(bp + 4)) >> int32(8)) + **(**uint8)(__ccgo_up(out + 7)) = uint8(**(**Tuint32_t)(__ccgo_up(bp + 4))) +} + +func __crypt_extended_r_uut(tls *TLS, _key uintptr, _setting uintptr, output uintptr) (r uintptr) { + bp := tls.Alloc(144) + defer tls.Free(144) + var count, l, salt, value, value1 Tuint32_t + var i uint32 + var key, p, q, setting, v1, v4, v5 uintptr + var _ /* ekey at bp+0 */ Texpanded_key + var _ /* keybuf at bp+128 */ [8]uint8 + var _ /* r0 at bp+136 */ Tuint32_t + var _ /* r1 at bp+140 */ Tuint32_t + _, _, _, _, _, _, _, _, _, _, _, _, _ = count, i, key, l, p, q, salt, setting, value, value1, v1, v4, v5 + key = _key + setting = _setting + /* + * Copy the key, shifting each character left by one bit and padding + * with zeroes. + */ + q = bp + 128 + for q <= bp+128+uintptr(Uint64FromInt64(8)-Uint64FromInt32(1)) { + v1 = q + q = q + 1 + **(**uint8)(__ccgo_up(v1)) = Uint8FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(key))) << int32(1)) + if **(**uint8)(__ccgo_up(key)) != 0 { + key = key + 1 + } + } + X__des_setkey(tls, bp+128, bp) + if Int32FromUint8(**(**uint8)(__ccgo_up(setting))) == int32('_') { + /* + * "new"-style: + * setting - underscore, 4 chars of count, 4 chars of salt + * key - unlimited characters + */ + i = uint32(1) + count = Uint32FromInt32(0) + for { + if !(i < uint32(5)) { + break + } + value = _ascii_to_bin(tls, Int32FromUint8(**(**uint8)(__ccgo_up(setting + uintptr(i))))) + if Int32FromUint8(_ascii64[value]) != Int32FromUint8(**(**uint8)(__ccgo_up(setting + uintptr(i)))) { + return UintptrFromInt32(0) + } + count = count | value<<((i-uint32(1))*uint32(6)) + goto _2 + _2: + ; + i = i + 1 + } + if !(count != 0) { + return UintptrFromInt32(0) + } + i = uint32(5) + salt = Uint32FromInt32(0) + for { + if !(i < uint32(9)) { + break + } + value1 = _ascii_to_bin(tls, Int32FromUint8(**(**uint8)(__ccgo_up(setting + uintptr(i))))) + if Int32FromUint8(_ascii64[value1]) != Int32FromUint8(**(**uint8)(__ccgo_up(setting + uintptr(i)))) { + return UintptrFromInt32(0) + } + salt = salt | value1<<((i-uint32(5))*uint32(6)) + goto _3 + _3: + ; + i = i + 1 + } + for **(**uint8)(__ccgo_up(key)) != 0 { + /* + * Encrypt the key with itself. + */ + _des_cipher(tls, bp+128, bp+128, uint32(1), uint32(0), bp) + /* + * And XOR with the next 8 characters of the key. + */ + q = bp + 128 + for q <= bp+128+uintptr(Uint64FromInt64(8)-Uint64FromInt32(1)) && **(**uint8)(__ccgo_up(key)) != 0 { + v4 = q + q = q + 1 + v1 = v4 + v5 = key + key = key + 1 + *(*uint8)(unsafe.Pointer(v1)) = uint8(int32(*(*uint8)(unsafe.Pointer(v1))) ^ Int32FromUint8(**(**uint8)(__ccgo_up(v5)))<> int32(8) + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l>>Int32FromInt32(18)&uint32(0x3f)] + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l>>Int32FromInt32(12)&uint32(0x3f)] + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l>>Int32FromInt32(6)&uint32(0x3f)] + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l&uint32(0x3f)] + l = **(**Tuint32_t)(__ccgo_up(bp + 136))<>Int32FromInt32(16)&uint32(0xffff) + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l>>Int32FromInt32(18)&uint32(0x3f)] + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l>>Int32FromInt32(12)&uint32(0x3f)] + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l>>Int32FromInt32(6)&uint32(0x3f)] + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l&uint32(0x3f)] + l = **(**Tuint32_t)(__ccgo_up(bp + 140)) << int32(2) + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l>>Int32FromInt32(12)&uint32(0x3f)] + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l>>Int32FromInt32(6)&uint32(0x3f)] + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l&uint32(0x3f)] + **(**uint8)(__ccgo_up(p)) = uint8(0) + return output +} + +func X__crypt_des(tls *TLS, key uintptr, setting uintptr, output uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v setting=%v output=%v, (%v:)", tls, key, setting, output, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var p, retval, test_hash, test_key, test_setting, v1 uintptr + var _ /* test_buf at bp+0 */ [21]int8 + _, _, _, _, _, _ = p, retval, test_hash, test_key, test_setting, v1 + test_key = __ccgo_ts + 72 + test_setting = __ccgo_ts + 93 + test_hash = __ccgo_ts + 103 + if int32(**(**int8)(__ccgo_up(setting))) != int32('_') { + test_setting = __ccgo_ts + 124 + test_hash = __ccgo_ts + 127 + } + /* + * Hash the supplied password. + */ + retval = __crypt_extended_r_uut(tls, key, setting, output) + /* + * Perform a quick self-test. It is important that we make both calls + * to _crypt_extended_r_uut() from the same scope such that they likely + * use the same stack locations, which makes the second call overwrite + * the first call's sensitive data on the stack and makes it more + * likely that any alignment related issues would be detected. + */ + p = __crypt_extended_r_uut(tls, test_key, test_setting, bp) + if p != 0 && !(Xstrcmp(tls, p, test_hash) != 0) && retval != 0 { + return retval + } + if int32(**(**int8)(__ccgo_up(setting))) == int32('*') { + v1 = __ccgo_ts + 141 + } else { + v1 = __ccgo_ts + 70 + } + return v1 +} + +const KEY_MAX = 30000 +const SALT_MAX = 8 + +/* public domain md5 implementation based on rfc1321 and libtomcrypt */ + +type Tmd5 = struct { + Flen1 Tuint64_t + Fh [4]Tuint32_t + Fbuf [64]Tuint8_t +} + +func _rol(tls *TLS, n Tuint32_t, k int32) (r Tuint32_t) { + return n<>(Int32FromInt32(32)-k) +} + +var _tab = [64]Tuint32_t{ + 0: uint32(0xd76aa478), + 1: uint32(0xe8c7b756), + 2: uint32(0x242070db), + 3: uint32(0xc1bdceee), + 4: uint32(0xf57c0faf), + 5: uint32(0x4787c62a), + 6: uint32(0xa8304613), + 7: uint32(0xfd469501), + 8: uint32(0x698098d8), + 9: uint32(0x8b44f7af), + 10: uint32(0xffff5bb1), + 11: uint32(0x895cd7be), + 12: uint32(0x6b901122), + 13: uint32(0xfd987193), + 14: uint32(0xa679438e), + 15: uint32(0x49b40821), + 16: uint32(0xf61e2562), + 17: uint32(0xc040b340), + 18: uint32(0x265e5a51), + 19: uint32(0xe9b6c7aa), + 20: uint32(0xd62f105d), + 21: uint32(0x02441453), + 22: uint32(0xd8a1e681), + 23: uint32(0xe7d3fbc8), + 24: uint32(0x21e1cde6), + 25: uint32(0xc33707d6), + 26: uint32(0xf4d50d87), + 27: uint32(0x455a14ed), + 28: uint32(0xa9e3e905), + 29: uint32(0xfcefa3f8), + 30: uint32(0x676f02d9), + 31: uint32(0x8d2a4c8a), + 32: uint32(0xfffa3942), + 33: uint32(0x8771f681), + 34: uint32(0x6d9d6122), + 35: uint32(0xfde5380c), + 36: uint32(0xa4beea44), + 37: uint32(0x4bdecfa9), + 38: uint32(0xf6bb4b60), + 39: uint32(0xbebfbc70), + 40: uint32(0x289b7ec6), + 41: uint32(0xeaa127fa), + 42: uint32(0xd4ef3085), + 43: uint32(0x04881d05), + 44: uint32(0xd9d4d039), + 45: uint32(0xe6db99e5), + 46: uint32(0x1fa27cf8), + 47: uint32(0xc4ac5665), + 48: uint32(0xf4292244), + 49: uint32(0x432aff97), + 50: uint32(0xab9423a7), + 51: uint32(0xfc93a039), + 52: uint32(0x655b59c3), + 53: uint32(0x8f0ccc92), + 54: uint32(0xffeff47d), + 55: uint32(0x85845dd1), + 56: uint32(0x6fa87e4f), + 57: uint32(0xfe2ce6e0), + 58: uint32(0xa3014314), + 59: uint32(0x4e0811a1), + 60: uint32(0xf7537e82), + 61: uint32(0xbd3af235), + 62: uint32(0x2ad7d2bb), + 63: uint32(0xeb86d391), +} + +func _processblock(tls *TLS, s uintptr, buf uintptr) { + bp := tls.Alloc(64) + defer tls.Free(64) + var a, b, c, d, i Tuint32_t + var _ /* W at bp+0 */ [16]Tuint32_t + _, _, _, _, _ = a, b, c, d, i + i = uint32(0) + for { + if !(i < uint32(16)) { + break + } + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[i] = uint32(**(**Tuint8_t)(__ccgo_up(buf + uintptr(uint32(4)*i)))) + **(**Tuint32_t)(__ccgo_up(bp + uintptr(i)*4)) |= uint32(**(**Tuint8_t)(__ccgo_up(buf + uintptr(uint32(4)*i+uint32(1))))) << int32(8) + **(**Tuint32_t)(__ccgo_up(bp + uintptr(i)*4)) |= uint32(**(**Tuint8_t)(__ccgo_up(buf + uintptr(uint32(4)*i+uint32(2))))) << int32(16) + **(**Tuint32_t)(__ccgo_up(bp + uintptr(i)*4)) |= uint32(**(**Tuint8_t)(__ccgo_up(buf + uintptr(uint32(4)*i+uint32(3))))) << int32(24) + goto _1 + _1: + ; + i = i + 1 + } + a = **(**Tuint32_t)(__ccgo_up(s + 8)) + b = **(**Tuint32_t)(__ccgo_up(s + 8 + 1*4)) + c = **(**Tuint32_t)(__ccgo_up(s + 8 + 2*4)) + d = **(**Tuint32_t)(__ccgo_up(s + 8 + 3*4)) + i = uint32(0) + for i < uint32(16) { + a = a + (d ^ b&(c^d) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[i] + _tab[i]) + a = _rol(tls, a, int32(7)) + b + i = i + 1 + d = d + (c ^ a&(b^c) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[i] + _tab[i]) + d = _rol(tls, d, int32(12)) + a + i = i + 1 + c = c + (b ^ d&(a^b) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[i] + _tab[i]) + c = _rol(tls, c, int32(17)) + d + i = i + 1 + b = b + (a ^ c&(d^a) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[i] + _tab[i]) + b = _rol(tls, b, int32(22)) + c + i = i + 1 + } + for i < uint32(32) { + a = a + (c ^ d&(c^b) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[(uint32(5)*i+uint32(1))%uint32(16)] + _tab[i]) + a = _rol(tls, a, int32(5)) + b + i = i + 1 + d = d + (b ^ c&(b^a) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[(uint32(5)*i+uint32(1))%uint32(16)] + _tab[i]) + d = _rol(tls, d, int32(9)) + a + i = i + 1 + c = c + (a ^ b&(a^d) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[(uint32(5)*i+uint32(1))%uint32(16)] + _tab[i]) + c = _rol(tls, c, int32(14)) + d + i = i + 1 + b = b + (d ^ a&(d^c) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[(uint32(5)*i+uint32(1))%uint32(16)] + _tab[i]) + b = _rol(tls, b, int32(20)) + c + i = i + 1 + } + for i < uint32(48) { + a = a + (b ^ c ^ d + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[(uint32(3)*i+uint32(5))%uint32(16)] + _tab[i]) + a = _rol(tls, a, int32(4)) + b + i = i + 1 + d = d + (a ^ b ^ c + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[(uint32(3)*i+uint32(5))%uint32(16)] + _tab[i]) + d = _rol(tls, d, int32(11)) + a + i = i + 1 + c = c + (d ^ a ^ b + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[(uint32(3)*i+uint32(5))%uint32(16)] + _tab[i]) + c = _rol(tls, c, int32(16)) + d + i = i + 1 + b = b + (c ^ d ^ a + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[(uint32(3)*i+uint32(5))%uint32(16)] + _tab[i]) + b = _rol(tls, b, int32(23)) + c + i = i + 1 + } + for i < uint32(64) { + a = a + (c ^ (b | ^d) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[uint32(7)*i%uint32(16)] + _tab[i]) + a = _rol(tls, a, int32(6)) + b + i = i + 1 + d = d + (b ^ (a | ^c) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[uint32(7)*i%uint32(16)] + _tab[i]) + d = _rol(tls, d, int32(10)) + a + i = i + 1 + c = c + (a ^ (d | ^b) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[uint32(7)*i%uint32(16)] + _tab[i]) + c = _rol(tls, c, int32(15)) + d + i = i + 1 + b = b + (d ^ (c | ^a) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[uint32(7)*i%uint32(16)] + _tab[i]) + b = _rol(tls, b, int32(21)) + c + i = i + 1 + } + **(**Tuint32_t)(__ccgo_up(s + 8)) += a + **(**Tuint32_t)(__ccgo_up(s + 8 + 1*4)) += b + **(**Tuint32_t)(__ccgo_up(s + 8 + 2*4)) += c + **(**Tuint32_t)(__ccgo_up(s + 8 + 3*4)) += d +} + +func _pad(tls *TLS, s uintptr) { + var r, v1 uint32 + _, _ = r, v1 + r = uint32((*Tmd5)(unsafe.Pointer(s)).Flen1 % uint64(64)) + v1 = r + r = r + 1 + **(**Tuint8_t)(__ccgo_up(s + 24 + uintptr(v1))) = uint8(0x80) + if r > uint32(56) { + Xmemset(tls, s+24+uintptr(r), 0, uint64(uint32(64)-r)) + r = uint32(0) + _processblock(tls, s, s+24) + } + Xmemset(tls, s+24+uintptr(r), 0, uint64(uint32(56)-r)) + **(**Tuint64_t)(__ccgo_up(s)) *= uint64(8) + **(**Tuint8_t)(__ccgo_up(s + 24 + 56)) = uint8((*Tmd5)(unsafe.Pointer(s)).Flen1) + **(**Tuint8_t)(__ccgo_up(s + 24 + 57)) = uint8((*Tmd5)(unsafe.Pointer(s)).Flen1 >> int32(8)) + **(**Tuint8_t)(__ccgo_up(s + 24 + 58)) = uint8((*Tmd5)(unsafe.Pointer(s)).Flen1 >> int32(16)) + **(**Tuint8_t)(__ccgo_up(s + 24 + 59)) = uint8((*Tmd5)(unsafe.Pointer(s)).Flen1 >> int32(24)) + **(**Tuint8_t)(__ccgo_up(s + 24 + 60)) = uint8((*Tmd5)(unsafe.Pointer(s)).Flen1 >> int32(32)) + **(**Tuint8_t)(__ccgo_up(s + 24 + 61)) = uint8((*Tmd5)(unsafe.Pointer(s)).Flen1 >> int32(40)) + **(**Tuint8_t)(__ccgo_up(s + 24 + 62)) = uint8((*Tmd5)(unsafe.Pointer(s)).Flen1 >> int32(48)) + **(**Tuint8_t)(__ccgo_up(s + 24 + 63)) = uint8((*Tmd5)(unsafe.Pointer(s)).Flen1 >> int32(56)) + _processblock(tls, s, s+24) +} + +func _md5_init(tls *TLS, s uintptr) { + (*Tmd5)(unsafe.Pointer(s)).Flen1 = uint64(0) + **(**Tuint32_t)(__ccgo_up(s + 8)) = uint32(0x67452301) + **(**Tuint32_t)(__ccgo_up(s + 8 + 1*4)) = uint32(0xefcdab89) + **(**Tuint32_t)(__ccgo_up(s + 8 + 2*4)) = uint32(0x98badcfe) + **(**Tuint32_t)(__ccgo_up(s + 8 + 3*4)) = uint32(0x10325476) +} + +func _md5_sum(tls *TLS, s uintptr, md uintptr) { + var i int32 + _ = i + _pad(tls, s) + i = 0 + for { + if !(i < int32(4)) { + break + } + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(4)*i))) = uint8(**(**Tuint32_t)(__ccgo_up(s + 8 + uintptr(i)*4))) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(4)*i+int32(1)))) = uint8(**(**Tuint32_t)(__ccgo_up(s + 8 + uintptr(i)*4)) >> int32(8)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(4)*i+int32(2)))) = uint8(**(**Tuint32_t)(__ccgo_up(s + 8 + uintptr(i)*4)) >> int32(16)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(4)*i+int32(3)))) = uint8(**(**Tuint32_t)(__ccgo_up(s + 8 + uintptr(i)*4)) >> int32(24)) + goto _1 + _1: + ; + i = i + 1 + } +} + +func _md5_update(tls *TLS, s uintptr, m uintptr, len1 uint64) { + var p uintptr + var r uint32 + _, _ = p, r + p = m + r = uint32((*Tmd5)(unsafe.Pointer(s)).Flen1 % uint64(64)) + **(**Tuint64_t)(__ccgo_up(s)) += len1 + if r != 0 { + if len1 < uint64(uint32(64)-r) { + Xmemcpy(tls, s+24+uintptr(r), p, len1) + return + } + Xmemcpy(tls, s+24+uintptr(r), p, uint64(uint32(64)-r)) + len1 = len1 - uint64(uint32(64)-r) + p = p + uintptr(uint32(64)-r) + _processblock(tls, s, s+24) + } + for { + if !(len1 >= uint64(64)) { + break + } + _processblock(tls, s, p) + goto _1 + _1: + ; + len1 = len1 - uint64(64) + p = p + uintptr(64) + } + Xmemcpy(tls, s+24, p, len1) +} + +/*- + * Copyright (c) 2003 Poul-Henning Kamp + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + */ + +/* key limit is not part of the original design, added for DoS protection */ + +var _b64 = [65]uint8{'.', '/', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'} + +func _to64(tls *TLS, s uintptr, u uint32, n int32) (r uintptr) { + var v1 int32 + var v2 uintptr + _, _ = v1, v2 + for { + n = n - 1 + v1 = n + if !(v1 >= 0) { + break + } + v2 = s + s = s + 1 + **(**int8)(__ccgo_up(v2)) = Int8FromUint8(_b64[u%uint32(64)]) + u = u / uint32(64) + } + return s +} + +func _md5crypt(tls *TLS, key uintptr, setting uintptr, output uintptr) (r uintptr) { + bp := tls.Alloc(112) + defer tls.Free(112) + var i, klen, slen uint32 + var p, salt, v5 uintptr + var _ /* ctx at bp+0 */ Tmd5 + var _ /* md at bp+88 */ [16]uint8 + _, _, _, _, _, _ = i, klen, p, salt, slen, v5 + /* reject large keys */ + klen = uint32(Xstrnlen(tls, key, Uint64FromInt32(Int32FromInt32(KEY_MAX)+Int32FromInt32(1)))) + if klen > uint32(KEY_MAX) { + return uintptr(0) + } + /* setting: $1$salt$ (closing $ is optional) */ + if Xstrncmp(tls, setting, __ccgo_ts+143, uint64(3)) != 0 { + return uintptr(0) + } + salt = setting + uintptr(3) + i = uint32(0) + for { + if !(i < uint32(SALT_MAX) && **(**int8)(__ccgo_up(salt + uintptr(i))) != 0 && int32(**(**int8)(__ccgo_up(salt + uintptr(i)))) != int32('$')) { + break + } + goto _1 + _1: + ; + i = i + 1 + } + slen = i + /* md5(key salt key) */ + _md5_init(tls, bp) + _md5_update(tls, bp, key, uint64(klen)) + _md5_update(tls, bp, salt, uint64(slen)) + _md5_update(tls, bp, key, uint64(klen)) + _md5_sum(tls, bp, bp+88) + /* md5(key $1$ salt repeated-md weird-key[0]-0) */ + _md5_init(tls, bp) + _md5_update(tls, bp, key, uint64(klen)) + _md5_update(tls, bp, setting, uint64(uint32(3)+slen)) + i = klen + for { + if !(uint64(i) > uint64(16)) { + break + } + _md5_update(tls, bp, bp+88, uint64(16)) + goto _2 + _2: + ; + i = uint32(uint64(i) - Uint64FromInt64(16)) + } + _md5_update(tls, bp, bp+88, uint64(i)) + (**(**[16]uint8)(__ccgo_up(bp + 88)))[0] = uint8(0) + i = klen + for { + if !(i != 0) { + break + } + if i&uint32(1) != 0 { + _md5_update(tls, bp, bp+88, uint64(1)) + } else { + _md5_update(tls, bp, key, uint64(1)) + } + goto _3 + _3: + ; + i = i >> uint32(1) + } + _md5_sum(tls, bp, bp+88) + /* md = f(md, key, salt) iteration */ + i = uint32(0) + for { + if !(i < uint32(1000)) { + break + } + _md5_init(tls, bp) + if i%uint32(2) != 0 { + _md5_update(tls, bp, key, uint64(klen)) + } else { + _md5_update(tls, bp, bp+88, uint64(16)) + } + if i%uint32(3) != 0 { + _md5_update(tls, bp, salt, uint64(slen)) + } + if i%uint32(7) != 0 { + _md5_update(tls, bp, key, uint64(klen)) + } + if i%uint32(2) != 0 { + _md5_update(tls, bp, bp+88, uint64(16)) + } else { + _md5_update(tls, bp, key, uint64(klen)) + } + _md5_sum(tls, bp, bp+88) + goto _4 + _4: + ; + i = i + 1 + } + /* output is $1$salt$hash */ + Xmemcpy(tls, output, setting, uint64(uint32(3)+slen)) + p = output + uintptr(3) + uintptr(slen) + v5 = p + p = p + 1 + **(**int8)(__ccgo_up(v5)) = int8('$') + i = uint32(0) + for { + if !(i < uint32(5)) { + break + } + p = _to64(tls, p, Uint32FromInt32(Int32FromUint8((**(**[16]uint8)(__ccgo_up(bp + 88)))[**(**uint8)(__ccgo_up(uintptr(unsafe.Pointer(&_perm)) + uintptr(i)*3))])< %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var p, q uintptr + var _ /* testbuf at bp+0 */ [64]int8 + _, _ = p, q + p = _md5crypt(tls, key, setting, output) + /* self test and stack cleanup */ + q = _md5crypt(tls, uintptr(unsafe.Pointer(&_testkey)), uintptr(unsafe.Pointer(&_testsetting)), bp) + if !(p != 0) || q != bp || Xmemcmp(tls, bp, uintptr(unsafe.Pointer(&_testhash)), uint64(35)) != 0 { + return __ccgo_ts + 70 + } + return p +} + +var _testkey = [18]int8{'X', 'y', '0', '1', '@', '#', 1, 2, -128, 127, -1, 13, 10, -127, 9, ' ', '!'} + +var _testsetting = [13]int8{'$', '1', '$', 'a', 'b', 'c', 'd', '0', '1', '2', '3', '$'} + +var _testhash = [35]int8{'$', '1', '$', 'a', 'b', 'c', 'd', '0', '1', '2', '3', '$', '9', 'Q', 'c', 'g', '8', 'D', 'y', 'v', 'i', 'e', 'k', 'V', '3', 't', 'D', 'G', 'M', 'Z', 'y', 'n', 'J', '1'} + +func X__crypt_r(tls *TLS, key uintptr, salt uintptr, data uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v salt=%v data=%v, (%v:)", tls, key, salt, data, origin(2)) + defer func() { trc("-> %v", r) }() + } + var output uintptr + _ = output + /* Per the crypt_r API, the caller has provided a pointer to + * struct crypt_data; however, this implementation does not + * use the structure to store any internal state, and treats + * it purely as a char buffer for storing the result. */ + output = data + if int32(**(**int8)(__ccgo_up(salt))) == int32('$') && **(**int8)(__ccgo_up(salt + 1)) != 0 && **(**int8)(__ccgo_up(salt + 2)) != 0 { + if int32(**(**int8)(__ccgo_up(salt + 1))) == int32('1') && int32(**(**int8)(__ccgo_up(salt + 2))) == int32('$') { + return X__crypt_md5(tls, key, salt, output) + } + if int32(**(**int8)(__ccgo_up(salt + 1))) == int32('2') && int32(**(**int8)(__ccgo_up(salt + 3))) == int32('$') { + return X__crypt_blowfish(tls, key, salt, output) + } + if int32(**(**int8)(__ccgo_up(salt + 1))) == int32('5') && int32(**(**int8)(__ccgo_up(salt + 2))) == int32('$') { + return X__crypt_sha256(tls, key, salt, output) + } + if int32(**(**int8)(__ccgo_up(salt + 1))) == int32('6') && int32(**(**int8)(__ccgo_up(salt + 2))) == int32('$') { + return X__crypt_sha512(tls, key, salt, output) + } + } + return X__crypt_des(tls, key, salt, output) +} + +func Xcrypt_r(tls *TLS, key uintptr, salt uintptr, data uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v salt=%v data=%v, (%v:)", tls, key, salt, data, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__crypt_r(tls, key, salt, data) +} + +const KEY_MAX1 = 256 +const ROUNDS_DEFAULT = 5000 +const ROUNDS_MAX = 9999999 +const ROUNDS_MIN = 1000 +const SALT_MAX1 = 16 + +/* public domain sha256 implementation based on fips180-3 */ + +type Tsha256 = struct { + Flen1 Tuint64_t + Fh [8]Tuint32_t + Fbuf [64]Tuint8_t +} + +func _ror(tls *TLS, n Tuint32_t, k int32) (r Tuint32_t) { + return n>>k | n<<(Int32FromInt32(32)-k) +} + +var _K = [64]Tuint32_t{ + 0: uint32(0x428a2f98), + 1: uint32(0x71374491), + 2: uint32(0xb5c0fbcf), + 3: uint32(0xe9b5dba5), + 4: uint32(0x3956c25b), + 5: uint32(0x59f111f1), + 6: uint32(0x923f82a4), + 7: uint32(0xab1c5ed5), + 8: uint32(0xd807aa98), + 9: uint32(0x12835b01), + 10: uint32(0x243185be), + 11: uint32(0x550c7dc3), + 12: uint32(0x72be5d74), + 13: uint32(0x80deb1fe), + 14: uint32(0x9bdc06a7), + 15: uint32(0xc19bf174), + 16: uint32(0xe49b69c1), + 17: uint32(0xefbe4786), + 18: uint32(0x0fc19dc6), + 19: uint32(0x240ca1cc), + 20: uint32(0x2de92c6f), + 21: uint32(0x4a7484aa), + 22: uint32(0x5cb0a9dc), + 23: uint32(0x76f988da), + 24: uint32(0x983e5152), + 25: uint32(0xa831c66d), + 26: uint32(0xb00327c8), + 27: uint32(0xbf597fc7), + 28: uint32(0xc6e00bf3), + 29: uint32(0xd5a79147), + 30: uint32(0x06ca6351), + 31: uint32(0x14292967), + 32: uint32(0x27b70a85), + 33: uint32(0x2e1b2138), + 34: uint32(0x4d2c6dfc), + 35: uint32(0x53380d13), + 36: uint32(0x650a7354), + 37: uint32(0x766a0abb), + 38: uint32(0x81c2c92e), + 39: uint32(0x92722c85), + 40: uint32(0xa2bfe8a1), + 41: uint32(0xa81a664b), + 42: uint32(0xc24b8b70), + 43: uint32(0xc76c51a3), + 44: uint32(0xd192e819), + 45: uint32(0xd6990624), + 46: uint32(0xf40e3585), + 47: uint32(0x106aa070), + 48: uint32(0x19a4c116), + 49: uint32(0x1e376c08), + 50: uint32(0x2748774c), + 51: uint32(0x34b0bcb5), + 52: uint32(0x391c0cb3), + 53: uint32(0x4ed8aa4a), + 54: uint32(0x5b9cca4f), + 55: uint32(0x682e6ff3), + 56: uint32(0x748f82ee), + 57: uint32(0x78a5636f), + 58: uint32(0x84c87814), + 59: uint32(0x8cc70208), + 60: uint32(0x90befffa), + 61: uint32(0xa4506ceb), + 62: uint32(0xbef9a3f7), + 63: uint32(0xc67178f2), +} + +func _processblock1(tls *TLS, s uintptr, buf uintptr) { + bp := tls.Alloc(256) + defer tls.Free(256) + var a, b, c, d, e, f, g, h, t1, t2 Tuint32_t + var i int32 + var _ /* W at bp+0 */ [64]Tuint32_t + _, _, _, _, _, _, _, _, _, _, _ = a, b, c, d, e, f, g, h, i, t1, t2 + i = 0 + for { + if !(i < int32(16)) { + break + } + (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i] = uint32(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(4)*i)))) << int32(24) + **(**Tuint32_t)(__ccgo_up(bp + uintptr(i)*4)) |= uint32(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(4)*i+int32(1))))) << int32(16) + **(**Tuint32_t)(__ccgo_up(bp + uintptr(i)*4)) |= uint32(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(4)*i+int32(2))))) << int32(8) + **(**Tuint32_t)(__ccgo_up(bp + uintptr(i)*4)) |= uint32(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(4)*i+int32(3))))) + goto _1 + _1: + ; + i = i + 1 + } + for { + if !(i < int32(64)) { + break + } + (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i] = _ror(tls, (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i-int32(2)], int32(17)) ^ _ror(tls, (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i-int32(2)], int32(19)) ^ (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i-int32(2)]>>Int32FromInt32(10) + (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i-int32(7)] + (_ror(tls, (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i-int32(15)], int32(7)) ^ _ror(tls, (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i-int32(15)], int32(18)) ^ (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i-int32(15)]>>Int32FromInt32(3)) + (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i-int32(16)] + goto _2 + _2: + ; + i = i + 1 + } + a = **(**Tuint32_t)(__ccgo_up(s + 8)) + b = **(**Tuint32_t)(__ccgo_up(s + 8 + 1*4)) + c = **(**Tuint32_t)(__ccgo_up(s + 8 + 2*4)) + d = **(**Tuint32_t)(__ccgo_up(s + 8 + 3*4)) + e = **(**Tuint32_t)(__ccgo_up(s + 8 + 4*4)) + f = **(**Tuint32_t)(__ccgo_up(s + 8 + 5*4)) + g = **(**Tuint32_t)(__ccgo_up(s + 8 + 6*4)) + h = **(**Tuint32_t)(__ccgo_up(s + 8 + 7*4)) + i = 0 + for { + if !(i < int32(64)) { + break + } + t1 = h + (_ror(tls, e, int32(6)) ^ _ror(tls, e, int32(11)) ^ _ror(tls, e, int32(25))) + (g ^ e&(f^g)) + _K[i] + (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i] + t2 = _ror(tls, a, int32(2)) ^ _ror(tls, a, int32(13)) ^ _ror(tls, a, int32(22)) + (a&b | c&(a|b)) + h = g + g = f + f = e + e = d + t1 + d = c + c = b + b = a + a = t1 + t2 + goto _3 + _3: + ; + i = i + 1 + } + **(**Tuint32_t)(__ccgo_up(s + 8)) += a + **(**Tuint32_t)(__ccgo_up(s + 8 + 1*4)) += b + **(**Tuint32_t)(__ccgo_up(s + 8 + 2*4)) += c + **(**Tuint32_t)(__ccgo_up(s + 8 + 3*4)) += d + **(**Tuint32_t)(__ccgo_up(s + 8 + 4*4)) += e + **(**Tuint32_t)(__ccgo_up(s + 8 + 5*4)) += f + **(**Tuint32_t)(__ccgo_up(s + 8 + 6*4)) += g + **(**Tuint32_t)(__ccgo_up(s + 8 + 7*4)) += h +} + +func _pad1(tls *TLS, s uintptr) { + var r, v1 uint32 + _, _ = r, v1 + r = uint32((*Tsha256)(unsafe.Pointer(s)).Flen1 % uint64(64)) + v1 = r + r = r + 1 + **(**Tuint8_t)(__ccgo_up(s + 40 + uintptr(v1))) = uint8(0x80) + if r > uint32(56) { + Xmemset(tls, s+40+uintptr(r), 0, uint64(uint32(64)-r)) + r = uint32(0) + _processblock1(tls, s, s+40) + } + Xmemset(tls, s+40+uintptr(r), 0, uint64(uint32(56)-r)) + **(**Tuint64_t)(__ccgo_up(s)) *= uint64(8) + **(**Tuint8_t)(__ccgo_up(s + 40 + 56)) = uint8((*Tsha256)(unsafe.Pointer(s)).Flen1 >> int32(56)) + **(**Tuint8_t)(__ccgo_up(s + 40 + 57)) = uint8((*Tsha256)(unsafe.Pointer(s)).Flen1 >> int32(48)) + **(**Tuint8_t)(__ccgo_up(s + 40 + 58)) = uint8((*Tsha256)(unsafe.Pointer(s)).Flen1 >> int32(40)) + **(**Tuint8_t)(__ccgo_up(s + 40 + 59)) = uint8((*Tsha256)(unsafe.Pointer(s)).Flen1 >> int32(32)) + **(**Tuint8_t)(__ccgo_up(s + 40 + 60)) = uint8((*Tsha256)(unsafe.Pointer(s)).Flen1 >> int32(24)) + **(**Tuint8_t)(__ccgo_up(s + 40 + 61)) = uint8((*Tsha256)(unsafe.Pointer(s)).Flen1 >> int32(16)) + **(**Tuint8_t)(__ccgo_up(s + 40 + 62)) = uint8((*Tsha256)(unsafe.Pointer(s)).Flen1 >> int32(8)) + **(**Tuint8_t)(__ccgo_up(s + 40 + 63)) = uint8((*Tsha256)(unsafe.Pointer(s)).Flen1) + _processblock1(tls, s, s+40) +} + +func _sha256_init(tls *TLS, s uintptr) { + (*Tsha256)(unsafe.Pointer(s)).Flen1 = uint64(0) + **(**Tuint32_t)(__ccgo_up(s + 8)) = uint32(0x6a09e667) + **(**Tuint32_t)(__ccgo_up(s + 8 + 1*4)) = uint32(0xbb67ae85) + **(**Tuint32_t)(__ccgo_up(s + 8 + 2*4)) = uint32(0x3c6ef372) + **(**Tuint32_t)(__ccgo_up(s + 8 + 3*4)) = uint32(0xa54ff53a) + **(**Tuint32_t)(__ccgo_up(s + 8 + 4*4)) = uint32(0x510e527f) + **(**Tuint32_t)(__ccgo_up(s + 8 + 5*4)) = uint32(0x9b05688c) + **(**Tuint32_t)(__ccgo_up(s + 8 + 6*4)) = uint32(0x1f83d9ab) + **(**Tuint32_t)(__ccgo_up(s + 8 + 7*4)) = uint32(0x5be0cd19) +} + +func _sha256_sum(tls *TLS, s uintptr, md uintptr) { + var i int32 + _ = i + _pad1(tls, s) + i = 0 + for { + if !(i < int32(8)) { + break + } + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(4)*i))) = uint8(**(**Tuint32_t)(__ccgo_up(s + 8 + uintptr(i)*4)) >> int32(24)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(4)*i+int32(1)))) = uint8(**(**Tuint32_t)(__ccgo_up(s + 8 + uintptr(i)*4)) >> int32(16)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(4)*i+int32(2)))) = uint8(**(**Tuint32_t)(__ccgo_up(s + 8 + uintptr(i)*4)) >> int32(8)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(4)*i+int32(3)))) = uint8(**(**Tuint32_t)(__ccgo_up(s + 8 + uintptr(i)*4))) + goto _1 + _1: + ; + i = i + 1 + } +} + +func _sha256_update(tls *TLS, s uintptr, m uintptr, len1 uint64) { + var p uintptr + var r uint32 + _, _ = p, r + p = m + r = uint32((*Tsha256)(unsafe.Pointer(s)).Flen1 % uint64(64)) + **(**Tuint64_t)(__ccgo_up(s)) += len1 + if r != 0 { + if len1 < uint64(uint32(64)-r) { + Xmemcpy(tls, s+40+uintptr(r), p, len1) + return + } + Xmemcpy(tls, s+40+uintptr(r), p, uint64(uint32(64)-r)) + len1 = len1 - uint64(uint32(64)-r) + p = p + uintptr(uint32(64)-r) + _processblock1(tls, s, s+40) + } + for { + if !(len1 >= uint64(64)) { + break + } + _processblock1(tls, s, p) + goto _1 + _1: + ; + len1 = len1 - uint64(64) + p = p + uintptr(64) + } + Xmemcpy(tls, s+40, p, len1) +} + +var _b641 = [65]uint8{'.', '/', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'} + +func _to641(tls *TLS, s uintptr, u uint32, n int32) (r uintptr) { + var v1 int32 + var v2 uintptr + _, _ = v1, v2 + for { + n = n - 1 + v1 = n + if !(v1 >= 0) { + break + } + v2 = s + s = s + 1 + **(**int8)(__ccgo_up(v2)) = Int8FromUint8(_b641[u%uint32(64)]) + u = u / uint32(64) + } + return s +} + +/* key limit is not part of the original design, added for DoS protection. + * rounds limit has been lowered (versus the reference/spec), also for DoS + * protection. runtime is O(klen^2 + klen*rounds) */ + +// C documentation +// +// /* hash n bytes of the repeated md message digest */ +func _hashmd(tls *TLS, s uintptr, n uint32, md uintptr) { + var i uint32 + _ = i + i = n + for { + if !(i > uint32(32)) { + break + } + _sha256_update(tls, s, md, uint64(32)) + goto _1 + _1: + ; + i = i - uint32(32) + } + _sha256_update(tls, s, md, uint64(i)) +} + +func _sha256crypt(tls *TLS, key uintptr, setting uintptr, output uintptr) (r1 uintptr) { + bp := tls.Alloc(272) + defer tls.Free(272) + var i, klen, r, slen uint32 + var p, salt uintptr + var u uint64 + var _ /* ctx at bp+0 */ Tsha256 + var _ /* end at bp+224 */ uintptr + var _ /* kmd at bp+136 */ [32]uint8 + var _ /* md at bp+104 */ [32]uint8 + var _ /* rounds at bp+200 */ [20]int8 + var _ /* smd at bp+168 */ [32]uint8 + _, _, _, _, _, _, _ = i, klen, p, r, salt, slen, u + **(**[20]int8)(__ccgo_up(bp + 200)) = [20]int8{} + /* reject large keys */ + klen = uint32(Xstrnlen(tls, key, Uint64FromInt32(Int32FromInt32(KEY_MAX1)+Int32FromInt32(1)))) + if klen > uint32(KEY_MAX1) { + return uintptr(0) + } + /* setting: $5$rounds=n$salt$ (rounds=n$ and closing $ are optional) */ + if Xstrncmp(tls, setting, __ccgo_ts+147, uint64(3)) != 0 { + return uintptr(0) + } + salt = setting + uintptr(3) + r = uint32(ROUNDS_DEFAULT) + if Xstrncmp(tls, salt, __ccgo_ts+151, Uint64FromInt64(8)-Uint64FromInt32(1)) == 0 { + /* + * this is a deviation from the reference: + * bad rounds setting is rejected if it is + * - empty + * - unterminated (missing '$') + * - begins with anything but a decimal digit + * the reference implementation treats these bad + * rounds as part of the salt or parse them with + * strtoul semantics which may cause problems + * including non-portable hashes that depend on + * the host's value of ULONG_MAX. + */ + salt = salt + uintptr(Uint64FromInt64(8)-Uint64FromInt32(1)) + if !(BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(salt)))-Uint32FromUint8('0') < Uint32FromInt32(10)) != 0) { + return uintptr(0) + } + u = Xstrtoul(tls, salt, bp+224, int32(10)) + if int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 224))))) != int32('$') { + return uintptr(0) + } + salt = **(**uintptr)(__ccgo_up(bp + 224)) + uintptr(1) + if u < uint64(ROUNDS_MIN) { + r = uint32(ROUNDS_MIN) + } else { + if u > uint64(ROUNDS_MAX) { + return uintptr(0) + } else { + r = uint32(u) + } + } + /* needed when rounds is zero prefixed or out of bounds */ + Xsprintf(tls, bp+200, __ccgo_ts+159, VaList(bp+240, r)) + } + i = uint32(0) + for { + if !(i < uint32(SALT_MAX1) && **(**int8)(__ccgo_up(salt + uintptr(i))) != 0 && int32(**(**int8)(__ccgo_up(salt + uintptr(i)))) != int32('$')) { + break + } + /* reject characters that interfere with /etc/shadow parsing */ + if int32(**(**int8)(__ccgo_up(salt + uintptr(i)))) == int32('\n') || int32(**(**int8)(__ccgo_up(salt + uintptr(i)))) == int32(':') { + return uintptr(0) + } + goto _1 + _1: + ; + i = i + 1 + } + slen = i + /* B = sha(key salt key) */ + _sha256_init(tls, bp) + _sha256_update(tls, bp, key, uint64(klen)) + _sha256_update(tls, bp, salt, uint64(slen)) + _sha256_update(tls, bp, key, uint64(klen)) + _sha256_sum(tls, bp, bp+104) + /* A = sha(key salt repeat-B alternate-B-key) */ + _sha256_init(tls, bp) + _sha256_update(tls, bp, key, uint64(klen)) + _sha256_update(tls, bp, salt, uint64(slen)) + _hashmd(tls, bp, klen, bp+104) + i = klen + for { + if !(i > uint32(0)) { + break + } + if i&uint32(1) != 0 { + _sha256_update(tls, bp, bp+104, uint64(32)) + } else { + _sha256_update(tls, bp, key, uint64(klen)) + } + goto _2 + _2: + ; + i = i >> uint32(1) + } + _sha256_sum(tls, bp, bp+104) + /* DP = sha(repeat-key), this step takes O(klen^2) time */ + _sha256_init(tls, bp) + i = uint32(0) + for { + if !(i < klen) { + break + } + _sha256_update(tls, bp, key, uint64(klen)) + goto _3 + _3: + ; + i = i + 1 + } + _sha256_sum(tls, bp, bp+136) + /* DS = sha(repeat-salt) */ + _sha256_init(tls, bp) + i = uint32(0) + for { + if !(i < Uint32FromInt32(int32(16)+Int32FromUint8((**(**[32]uint8)(__ccgo_up(bp + 104)))[0]))) { + break + } + _sha256_update(tls, bp, salt, uint64(slen)) + goto _4 + _4: + ; + i = i + 1 + } + _sha256_sum(tls, bp, bp+168) + /* iterate A = f(A,DP,DS), this step takes O(rounds*klen) time */ + i = uint32(0) + for { + if !(i < r) { + break + } + _sha256_init(tls, bp) + if i%uint32(2) != 0 { + _hashmd(tls, bp, klen, bp+136) + } else { + _sha256_update(tls, bp, bp+104, uint64(32)) + } + if i%uint32(3) != 0 { + _sha256_update(tls, bp, bp+168, uint64(slen)) + } + if i%uint32(7) != 0 { + _hashmd(tls, bp, klen, bp+136) + } + if i%uint32(2) != 0 { + _sha256_update(tls, bp, bp+104, uint64(32)) + } else { + _hashmd(tls, bp, klen, bp+136) + } + _sha256_sum(tls, bp, bp+104) + goto _5 + _5: + ; + i = i + 1 + } + /* output is $5$rounds=n$salt$hash */ + p = output + p = p + uintptr(Xsprintf(tls, p, __ccgo_ts+170, VaList(bp+240, bp+200, slen, salt))) + i = uint32(0) + for { + if !(i < uint32(10)) { + break + } + p = _to641(tls, p, Uint32FromInt32(Int32FromUint8((**(**[32]uint8)(__ccgo_up(bp + 104)))[**(**uint8)(__ccgo_up(uintptr(unsafe.Pointer(&_perm1)) + uintptr(i)*3))])< %v", r) }() + } + bp := tls.Alloc(128) + defer tls.Free(128) + var p, q uintptr + var _ /* testbuf at bp+0 */ [128]int8 + _, _ = p, q + p = _sha256crypt(tls, key, setting, output) + /* self test and stack cleanup */ + q = _sha256crypt(tls, uintptr(unsafe.Pointer(&_testkey1)), uintptr(unsafe.Pointer(&_testsetting1)), bp) + if !(p != 0) || q != bp || Xmemcmp(tls, bp, uintptr(unsafe.Pointer(&_testhash1)), uint64(73)) != 0 { + return __ccgo_ts + 70 + } + return p +} + +var _testkey1 = [18]int8{'X', 'y', '0', '1', '@', '#', 1, 2, -128, 127, -1, 13, 10, -127, 9, ' ', '!'} + +var _testsetting1 = [30]int8{'$', '5', '$', 'r', 'o', 'u', 'n', 'd', 's', '=', '1', '2', '3', '4', '$', 'a', 'b', 'c', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '$'} + +var _testhash1 = [73]int8{'$', '5', '$', 'r', 'o', 'u', 'n', 'd', 's', '=', '1', '2', '3', '4', '$', 'a', 'b', 'c', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '$', '3', 'V', 'f', 'D', 'j', 'P', 't', '0', '5', 'V', 'H', 'F', 'n', '4', '7', 'C', '/', 'o', 'j', 'F', 'Z', '6', 'K', 'R', 'P', 'Y', 'r', 'O', 'j', 'j', '1', 'l', 'L', 'b', 'H', '.', 'd', 'k', 'F', '3', 'b', 'Z', '6'} + +/* public domain sha512 implementation based on fips180-3 */ +/* >=2^64 bits messages are not supported (about 2000 peta bytes) */ + +type Tsha512 = struct { + Flen1 Tuint64_t + Fh [8]Tuint64_t + Fbuf [128]Tuint8_t +} + +func _ror1(tls *TLS, n Tuint64_t, k int32) (r Tuint64_t) { + return n>>k | n<<(Int32FromInt32(64)-k) +} + +var _K1 = [80]Tuint64_t{ + 0: uint64(0x428a2f98d728ae22), + 1: uint64(0x7137449123ef65cd), + 2: uint64(0xb5c0fbcfec4d3b2f), + 3: uint64(0xe9b5dba58189dbbc), + 4: uint64(0x3956c25bf348b538), + 5: uint64(0x59f111f1b605d019), + 6: uint64(0x923f82a4af194f9b), + 7: uint64(0xab1c5ed5da6d8118), + 8: uint64(0xd807aa98a3030242), + 9: uint64(0x12835b0145706fbe), + 10: uint64(0x243185be4ee4b28c), + 11: uint64(0x550c7dc3d5ffb4e2), + 12: uint64(0x72be5d74f27b896f), + 13: uint64(0x80deb1fe3b1696b1), + 14: uint64(0x9bdc06a725c71235), + 15: uint64(0xc19bf174cf692694), + 16: uint64(0xe49b69c19ef14ad2), + 17: uint64(0xefbe4786384f25e3), + 18: uint64(0x0fc19dc68b8cd5b5), + 19: uint64(0x240ca1cc77ac9c65), + 20: uint64(0x2de92c6f592b0275), + 21: uint64(0x4a7484aa6ea6e483), + 22: uint64(0x5cb0a9dcbd41fbd4), + 23: uint64(0x76f988da831153b5), + 24: uint64(0x983e5152ee66dfab), + 25: uint64(0xa831c66d2db43210), + 26: uint64(0xb00327c898fb213f), + 27: uint64(0xbf597fc7beef0ee4), + 28: uint64(0xc6e00bf33da88fc2), + 29: uint64(0xd5a79147930aa725), + 30: uint64(0x06ca6351e003826f), + 31: uint64(0x142929670a0e6e70), + 32: uint64(0x27b70a8546d22ffc), + 33: uint64(0x2e1b21385c26c926), + 34: uint64(0x4d2c6dfc5ac42aed), + 35: uint64(0x53380d139d95b3df), + 36: uint64(0x650a73548baf63de), + 37: uint64(0x766a0abb3c77b2a8), + 38: uint64(0x81c2c92e47edaee6), + 39: uint64(0x92722c851482353b), + 40: uint64(0xa2bfe8a14cf10364), + 41: uint64(0xa81a664bbc423001), + 42: uint64(0xc24b8b70d0f89791), + 43: uint64(0xc76c51a30654be30), + 44: uint64(0xd192e819d6ef5218), + 45: uint64(0xd69906245565a910), + 46: uint64(0xf40e35855771202a), + 47: uint64(0x106aa07032bbd1b8), + 48: uint64(0x19a4c116b8d2d0c8), + 49: uint64(0x1e376c085141ab53), + 50: uint64(0x2748774cdf8eeb99), + 51: uint64(0x34b0bcb5e19b48a8), + 52: uint64(0x391c0cb3c5c95a63), + 53: uint64(0x4ed8aa4ae3418acb), + 54: uint64(0x5b9cca4f7763e373), + 55: uint64(0x682e6ff3d6b2b8a3), + 56: uint64(0x748f82ee5defb2fc), + 57: uint64(0x78a5636f43172f60), + 58: uint64(0x84c87814a1f0ab72), + 59: uint64(0x8cc702081a6439ec), + 60: uint64(0x90befffa23631e28), + 61: uint64(0xa4506cebde82bde9), + 62: uint64(0xbef9a3f7b2c67915), + 63: uint64(0xc67178f2e372532b), + 64: uint64(0xca273eceea26619c), + 65: uint64(0xd186b8c721c0c207), + 66: uint64(0xeada7dd6cde0eb1e), + 67: uint64(0xf57d4f7fee6ed178), + 68: uint64(0x06f067aa72176fba), + 69: uint64(0x0a637dc5a2c898a6), + 70: uint64(0x113f9804bef90dae), + 71: uint64(0x1b710b35131c471b), + 72: uint64(0x28db77f523047d84), + 73: uint64(0x32caab7b40c72493), + 74: uint64(0x3c9ebe0a15c9bebc), + 75: uint64(0x431d67c49c100d4c), + 76: uint64(0x4cc5d4becb3e42b6), + 77: uint64(0x597f299cfc657e2a), + 78: uint64(0x5fcb6fab3ad6faec), + 79: uint64(0x6c44198c4a475817), +} + +func _processblock2(tls *TLS, s uintptr, buf uintptr) { + bp := tls.Alloc(640) + defer tls.Free(640) + var a, b, c, d, e, f, g, h, t1, t2 Tuint64_t + var i int32 + var _ /* W at bp+0 */ [80]Tuint64_t + _, _, _, _, _, _, _, _, _, _, _ = a, b, c, d, e, f, g, h, i, t1, t2 + i = 0 + for { + if !(i < int32(16)) { + break + } + (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i] = uint64(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(8)*i)))) << int32(56) + **(**Tuint64_t)(__ccgo_up(bp + uintptr(i)*8)) |= uint64(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(8)*i+int32(1))))) << int32(48) + **(**Tuint64_t)(__ccgo_up(bp + uintptr(i)*8)) |= uint64(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(8)*i+int32(2))))) << int32(40) + **(**Tuint64_t)(__ccgo_up(bp + uintptr(i)*8)) |= uint64(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(8)*i+int32(3))))) << int32(32) + **(**Tuint64_t)(__ccgo_up(bp + uintptr(i)*8)) |= uint64(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(8)*i+int32(4))))) << int32(24) + **(**Tuint64_t)(__ccgo_up(bp + uintptr(i)*8)) |= uint64(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(8)*i+int32(5))))) << int32(16) + **(**Tuint64_t)(__ccgo_up(bp + uintptr(i)*8)) |= uint64(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(8)*i+int32(6))))) << int32(8) + **(**Tuint64_t)(__ccgo_up(bp + uintptr(i)*8)) |= uint64(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(8)*i+int32(7))))) + goto _1 + _1: + ; + i = i + 1 + } + for { + if !(i < int32(80)) { + break + } + (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i] = _ror1(tls, (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i-int32(2)], int32(19)) ^ _ror1(tls, (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i-int32(2)], int32(61)) ^ (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i-int32(2)]>>Int32FromInt32(6) + (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i-int32(7)] + (_ror1(tls, (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i-int32(15)], int32(1)) ^ _ror1(tls, (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i-int32(15)], int32(8)) ^ (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i-int32(15)]>>Int32FromInt32(7)) + (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i-int32(16)] + goto _2 + _2: + ; + i = i + 1 + } + a = **(**Tuint64_t)(__ccgo_up(s + 8)) + b = **(**Tuint64_t)(__ccgo_up(s + 8 + 1*8)) + c = **(**Tuint64_t)(__ccgo_up(s + 8 + 2*8)) + d = **(**Tuint64_t)(__ccgo_up(s + 8 + 3*8)) + e = **(**Tuint64_t)(__ccgo_up(s + 8 + 4*8)) + f = **(**Tuint64_t)(__ccgo_up(s + 8 + 5*8)) + g = **(**Tuint64_t)(__ccgo_up(s + 8 + 6*8)) + h = **(**Tuint64_t)(__ccgo_up(s + 8 + 7*8)) + i = 0 + for { + if !(i < int32(80)) { + break + } + t1 = h + (_ror1(tls, e, int32(14)) ^ _ror1(tls, e, int32(18)) ^ _ror1(tls, e, int32(41))) + (g ^ e&(f^g)) + _K1[i] + (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i] + t2 = _ror1(tls, a, int32(28)) ^ _ror1(tls, a, int32(34)) ^ _ror1(tls, a, int32(39)) + (a&b | c&(a|b)) + h = g + g = f + f = e + e = d + t1 + d = c + c = b + b = a + a = t1 + t2 + goto _3 + _3: + ; + i = i + 1 + } + **(**Tuint64_t)(__ccgo_up(s + 8)) += a + **(**Tuint64_t)(__ccgo_up(s + 8 + 1*8)) += b + **(**Tuint64_t)(__ccgo_up(s + 8 + 2*8)) += c + **(**Tuint64_t)(__ccgo_up(s + 8 + 3*8)) += d + **(**Tuint64_t)(__ccgo_up(s + 8 + 4*8)) += e + **(**Tuint64_t)(__ccgo_up(s + 8 + 5*8)) += f + **(**Tuint64_t)(__ccgo_up(s + 8 + 6*8)) += g + **(**Tuint64_t)(__ccgo_up(s + 8 + 7*8)) += h +} + +func _pad2(tls *TLS, s uintptr) { + var r, v1 uint32 + _, _ = r, v1 + r = uint32((*Tsha512)(unsafe.Pointer(s)).Flen1 % uint64(128)) + v1 = r + r = r + 1 + **(**Tuint8_t)(__ccgo_up(s + 72 + uintptr(v1))) = uint8(0x80) + if r > uint32(112) { + Xmemset(tls, s+72+uintptr(r), 0, uint64(uint32(128)-r)) + r = uint32(0) + _processblock2(tls, s, s+72) + } + Xmemset(tls, s+72+uintptr(r), 0, uint64(uint32(120)-r)) + **(**Tuint64_t)(__ccgo_up(s)) *= uint64(8) + **(**Tuint8_t)(__ccgo_up(s + 72 + 120)) = uint8((*Tsha512)(unsafe.Pointer(s)).Flen1 >> int32(56)) + **(**Tuint8_t)(__ccgo_up(s + 72 + 121)) = uint8((*Tsha512)(unsafe.Pointer(s)).Flen1 >> int32(48)) + **(**Tuint8_t)(__ccgo_up(s + 72 + 122)) = uint8((*Tsha512)(unsafe.Pointer(s)).Flen1 >> int32(40)) + **(**Tuint8_t)(__ccgo_up(s + 72 + 123)) = uint8((*Tsha512)(unsafe.Pointer(s)).Flen1 >> int32(32)) + **(**Tuint8_t)(__ccgo_up(s + 72 + 124)) = uint8((*Tsha512)(unsafe.Pointer(s)).Flen1 >> int32(24)) + **(**Tuint8_t)(__ccgo_up(s + 72 + 125)) = uint8((*Tsha512)(unsafe.Pointer(s)).Flen1 >> int32(16)) + **(**Tuint8_t)(__ccgo_up(s + 72 + 126)) = uint8((*Tsha512)(unsafe.Pointer(s)).Flen1 >> int32(8)) + **(**Tuint8_t)(__ccgo_up(s + 72 + 127)) = uint8((*Tsha512)(unsafe.Pointer(s)).Flen1) + _processblock2(tls, s, s+72) +} + +func _sha512_init(tls *TLS, s uintptr) { + (*Tsha512)(unsafe.Pointer(s)).Flen1 = uint64(0) + **(**Tuint64_t)(__ccgo_up(s + 8)) = uint64(0x6a09e667f3bcc908) + **(**Tuint64_t)(__ccgo_up(s + 8 + 1*8)) = uint64(0xbb67ae8584caa73b) + **(**Tuint64_t)(__ccgo_up(s + 8 + 2*8)) = uint64(0x3c6ef372fe94f82b) + **(**Tuint64_t)(__ccgo_up(s + 8 + 3*8)) = uint64(0xa54ff53a5f1d36f1) + **(**Tuint64_t)(__ccgo_up(s + 8 + 4*8)) = uint64(0x510e527fade682d1) + **(**Tuint64_t)(__ccgo_up(s + 8 + 5*8)) = uint64(0x9b05688c2b3e6c1f) + **(**Tuint64_t)(__ccgo_up(s + 8 + 6*8)) = uint64(0x1f83d9abfb41bd6b) + **(**Tuint64_t)(__ccgo_up(s + 8 + 7*8)) = uint64(0x5be0cd19137e2179) +} + +func _sha512_sum(tls *TLS, s uintptr, md uintptr) { + var i int32 + _ = i + _pad2(tls, s) + i = 0 + for { + if !(i < int32(8)) { + break + } + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(8)*i))) = uint8(**(**Tuint64_t)(__ccgo_up(s + 8 + uintptr(i)*8)) >> int32(56)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(8)*i+int32(1)))) = uint8(**(**Tuint64_t)(__ccgo_up(s + 8 + uintptr(i)*8)) >> int32(48)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(8)*i+int32(2)))) = uint8(**(**Tuint64_t)(__ccgo_up(s + 8 + uintptr(i)*8)) >> int32(40)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(8)*i+int32(3)))) = uint8(**(**Tuint64_t)(__ccgo_up(s + 8 + uintptr(i)*8)) >> int32(32)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(8)*i+int32(4)))) = uint8(**(**Tuint64_t)(__ccgo_up(s + 8 + uintptr(i)*8)) >> int32(24)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(8)*i+int32(5)))) = uint8(**(**Tuint64_t)(__ccgo_up(s + 8 + uintptr(i)*8)) >> int32(16)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(8)*i+int32(6)))) = uint8(**(**Tuint64_t)(__ccgo_up(s + 8 + uintptr(i)*8)) >> int32(8)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(8)*i+int32(7)))) = uint8(**(**Tuint64_t)(__ccgo_up(s + 8 + uintptr(i)*8))) + goto _1 + _1: + ; + i = i + 1 + } +} + +func _sha512_update(tls *TLS, s uintptr, m uintptr, len1 uint64) { + var p uintptr + var r uint32 + _, _ = p, r + p = m + r = uint32((*Tsha512)(unsafe.Pointer(s)).Flen1 % uint64(128)) + **(**Tuint64_t)(__ccgo_up(s)) += len1 + if r != 0 { + if len1 < uint64(uint32(128)-r) { + Xmemcpy(tls, s+72+uintptr(r), p, len1) + return + } + Xmemcpy(tls, s+72+uintptr(r), p, uint64(uint32(128)-r)) + len1 = len1 - uint64(uint32(128)-r) + p = p + uintptr(uint32(128)-r) + _processblock2(tls, s, s+72) + } + for { + if !(len1 >= uint64(128)) { + break + } + _processblock2(tls, s, p) + goto _1 + _1: + ; + len1 = len1 - uint64(128) + p = p + uintptr(128) + } + Xmemcpy(tls, s+72, p, len1) +} + +var _b642 = [65]uint8{'.', '/', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'} + +func _to642(tls *TLS, s uintptr, u uint32, n int32) (r uintptr) { + var v1 int32 + var v2 uintptr + _, _ = v1, v2 + for { + n = n - 1 + v1 = n + if !(v1 >= 0) { + break + } + v2 = s + s = s + 1 + **(**int8)(__ccgo_up(v2)) = Int8FromUint8(_b642[u%uint32(64)]) + u = u / uint32(64) + } + return s +} + +/* key limit is not part of the original design, added for DoS protection. + * rounds limit has been lowered (versus the reference/spec), also for DoS + * protection. runtime is O(klen^2 + klen*rounds) */ + +// C documentation +// +// /* hash n bytes of the repeated md message digest */ +func _hashmd1(tls *TLS, s uintptr, n uint32, md uintptr) { + var i uint32 + _ = i + i = n + for { + if !(i > uint32(64)) { + break + } + _sha512_update(tls, s, md, uint64(64)) + goto _1 + _1: + ; + i = i - uint32(64) + } + _sha512_update(tls, s, md, uint64(i)) +} + +func _sha512crypt(tls *TLS, key uintptr, setting uintptr, output uintptr) (r1 uintptr) { + bp := tls.Alloc(464) + defer tls.Free(464) + var i, klen, r, slen uint32 + var p, salt uintptr + var u uint64 + var _ /* ctx at bp+0 */ Tsha512 + var _ /* end at bp+416 */ uintptr + var _ /* kmd at bp+264 */ [64]uint8 + var _ /* md at bp+200 */ [64]uint8 + var _ /* rounds at bp+392 */ [20]int8 + var _ /* smd at bp+328 */ [64]uint8 + _, _, _, _, _, _, _ = i, klen, p, r, salt, slen, u + **(**[20]int8)(__ccgo_up(bp + 392)) = [20]int8{} + /* reject large keys */ + i = uint32(0) + for { + if !(i <= uint32(KEY_MAX1) && **(**int8)(__ccgo_up(key + uintptr(i))) != 0) { + break + } + goto _1 + _1: + ; + i = i + 1 + } + if i > uint32(KEY_MAX1) { + return uintptr(0) + } + klen = i + /* setting: $6$rounds=n$salt$ (rounds=n$ and closing $ are optional) */ + if Xstrncmp(tls, setting, __ccgo_ts+181, uint64(3)) != 0 { + return uintptr(0) + } + salt = setting + uintptr(3) + r = uint32(ROUNDS_DEFAULT) + if Xstrncmp(tls, salt, __ccgo_ts+151, Uint64FromInt64(8)-Uint64FromInt32(1)) == 0 { + /* + * this is a deviation from the reference: + * bad rounds setting is rejected if it is + * - empty + * - unterminated (missing '$') + * - begins with anything but a decimal digit + * the reference implementation treats these bad + * rounds as part of the salt or parse them with + * strtoul semantics which may cause problems + * including non-portable hashes that depend on + * the host's value of ULONG_MAX. + */ + salt = salt + uintptr(Uint64FromInt64(8)-Uint64FromInt32(1)) + if !(BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(salt)))-Uint32FromUint8('0') < Uint32FromInt32(10)) != 0) { + return uintptr(0) + } + u = Xstrtoul(tls, salt, bp+416, int32(10)) + if int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 416))))) != int32('$') { + return uintptr(0) + } + salt = **(**uintptr)(__ccgo_up(bp + 416)) + uintptr(1) + if u < uint64(ROUNDS_MIN) { + r = uint32(ROUNDS_MIN) + } else { + if u > uint64(ROUNDS_MAX) { + return uintptr(0) + } else { + r = uint32(u) + } + } + /* needed when rounds is zero prefixed or out of bounds */ + Xsprintf(tls, bp+392, __ccgo_ts+159, VaList(bp+432, r)) + } + i = uint32(0) + for { + if !(i < uint32(SALT_MAX1) && **(**int8)(__ccgo_up(salt + uintptr(i))) != 0 && int32(**(**int8)(__ccgo_up(salt + uintptr(i)))) != int32('$')) { + break + } + /* reject characters that interfere with /etc/shadow parsing */ + if int32(**(**int8)(__ccgo_up(salt + uintptr(i)))) == int32('\n') || int32(**(**int8)(__ccgo_up(salt + uintptr(i)))) == int32(':') { + return uintptr(0) + } + goto _2 + _2: + ; + i = i + 1 + } + slen = i + /* B = sha(key salt key) */ + _sha512_init(tls, bp) + _sha512_update(tls, bp, key, uint64(klen)) + _sha512_update(tls, bp, salt, uint64(slen)) + _sha512_update(tls, bp, key, uint64(klen)) + _sha512_sum(tls, bp, bp+200) + /* A = sha(key salt repeat-B alternate-B-key) */ + _sha512_init(tls, bp) + _sha512_update(tls, bp, key, uint64(klen)) + _sha512_update(tls, bp, salt, uint64(slen)) + _hashmd1(tls, bp, klen, bp+200) + i = klen + for { + if !(i > uint32(0)) { + break + } + if i&uint32(1) != 0 { + _sha512_update(tls, bp, bp+200, uint64(64)) + } else { + _sha512_update(tls, bp, key, uint64(klen)) + } + goto _3 + _3: + ; + i = i >> uint32(1) + } + _sha512_sum(tls, bp, bp+200) + /* DP = sha(repeat-key), this step takes O(klen^2) time */ + _sha512_init(tls, bp) + i = uint32(0) + for { + if !(i < klen) { + break + } + _sha512_update(tls, bp, key, uint64(klen)) + goto _4 + _4: + ; + i = i + 1 + } + _sha512_sum(tls, bp, bp+264) + /* DS = sha(repeat-salt) */ + _sha512_init(tls, bp) + i = uint32(0) + for { + if !(i < Uint32FromInt32(int32(16)+Int32FromUint8((**(**[64]uint8)(__ccgo_up(bp + 200)))[0]))) { + break + } + _sha512_update(tls, bp, salt, uint64(slen)) + goto _5 + _5: + ; + i = i + 1 + } + _sha512_sum(tls, bp, bp+328) + /* iterate A = f(A,DP,DS), this step takes O(rounds*klen) time */ + i = uint32(0) + for { + if !(i < r) { + break + } + _sha512_init(tls, bp) + if i%uint32(2) != 0 { + _hashmd1(tls, bp, klen, bp+264) + } else { + _sha512_update(tls, bp, bp+200, uint64(64)) + } + if i%uint32(3) != 0 { + _sha512_update(tls, bp, bp+328, uint64(slen)) + } + if i%uint32(7) != 0 { + _hashmd1(tls, bp, klen, bp+264) + } + if i%uint32(2) != 0 { + _sha512_update(tls, bp, bp+200, uint64(64)) + } else { + _hashmd1(tls, bp, klen, bp+264) + } + _sha512_sum(tls, bp, bp+200) + goto _6 + _6: + ; + i = i + 1 + } + /* output is $6$rounds=n$salt$hash */ + p = output + p = p + uintptr(Xsprintf(tls, p, __ccgo_ts+185, VaList(bp+432, bp+392, slen, salt))) + i = uint32(0) + for { + if !(i < uint32(21)) { + break + } + p = _to642(tls, p, Uint32FromInt32(Int32FromUint8((**(**[64]uint8)(__ccgo_up(bp + 200)))[**(**uint8)(__ccgo_up(uintptr(unsafe.Pointer(&_perm2)) + uintptr(i)*3))])< %v", r) }() + } + bp := tls.Alloc(128) + defer tls.Free(128) + var p, q uintptr + var _ /* testbuf at bp+0 */ [128]int8 + _, _ = p, q + p = _sha512crypt(tls, key, setting, output) + /* self test and stack cleanup */ + q = _sha512crypt(tls, uintptr(unsafe.Pointer(&_testkey2)), uintptr(unsafe.Pointer(&_testsetting2)), bp) + if !(p != 0) || q != bp || Xmemcmp(tls, bp, uintptr(unsafe.Pointer(&_testhash2)), uint64(116)) != 0 { + return __ccgo_ts + 70 + } + return p +} + +var _testkey2 = [18]int8{'X', 'y', '0', '1', '@', '#', 1, 2, -128, 127, -1, 13, 10, -127, 9, ' ', '!'} + +var _testsetting2 = [30]int8{'$', '6', '$', 'r', 'o', 'u', 'n', 'd', 's', '=', '1', '2', '3', '4', '$', 'a', 'b', 'c', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '$'} + +var _testhash2 = [116]int8{'$', '6', '$', 'r', 'o', 'u', 'n', 'd', 's', '=', '1', '2', '3', '4', '$', 'a', 'b', 'c', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '$', 'B', 'C', 'p', 't', '8', 'z', 'L', 'r', 'c', '/', 'R', 'c', 'y', 'u', 'X', 'm', 'C', 'D', 'O', 'E', '1', 'A', 'L', 'q', 'M', 'X', 'B', '2', 'M', 'H', '6', 'n', '1', 'g', '8', '9', '1', 'H', 'h', 'F', 'j', '8', '.', 'w', '7', 'L', 'x', 'G', 'v', '.', 'F', 'T', 'k', 'q', 'q', '6', 'V', 'x', 'c', '/', 'k', 'm', '3', 'Y', '0', 'j', 'E', '0', 'j', '2', '4', 'j', 'Y', '5', 'P', 'I', 'v', '/', 'o', 'O', 'u', '6', 'r', 'e', 'g', '1'} + +var ___encrypt_key Texpanded_key + +func Xsetkey(tls *TLS, key uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v, (%v:)", tls, key, origin(2)) + } + bp := tls.Alloc(16) + defer tls.Free(16) + var i, j int32 + var v3 uintptr + var _ /* bkey at bp+0 */ [8]uint8 + _, _, _ = i, j, v3 + i = 0 + for { + if !(i < int32(8)) { + break + } + (**(**[8]uint8)(__ccgo_up(bp)))[i] = uint8(0) + j = int32(7) + for { + if !(j >= 0) { + break + } + v3 = bp + uintptr(i) + *(*uint8)(unsafe.Pointer(v3)) = uint8(uint32(*(*uint8)(unsafe.Pointer(v3))) | Uint32FromInt32(int32(**(**int8)(__ccgo_up(key)))&Int32FromInt32(1))<= 0) { + break + } + **(**Tuint32_t)(__ccgo_up(bp + 128 + uintptr(i)*4)) |= Uint32FromInt32(int32(**(**int8)(__ccgo_up(p)))&Int32FromInt32(1)) << j + goto _2 + _2: + ; + j = j - 1 + p = p + 1 + } + goto _1 + _1: + ; + i = i + 1 + } + key = uintptr(unsafe.Pointer(&___encrypt_key)) + if edflag != 0 { + key = bp + i = 0 + for { + if !(i < int32(16)) { + break + } + **(**Tuint32_t)(__ccgo_up(bp + uintptr(i)*4)) = **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&___encrypt_key)) + uintptr(int32(15)-i)*4)) + **(**Tuint32_t)(__ccgo_up(bp + 64 + uintptr(i)*4)) = **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&___encrypt_key)) + 64 + uintptr(int32(15)-i)*4)) + goto _3 + _3: + ; + i = i + 1 + } + } + X__do_des(tls, (**(**[2]Tuint32_t)(__ccgo_up(bp + 128)))[0], (**(**[2]Tuint32_t)(__ccgo_up(bp + 128)))[int32(1)], bp+128, bp+128+uintptr(1)*4, uint32(1), uint32(0), key) + p = block + i = 0 + for { + if !(i < int32(2)) { + break + } + j = int32(31) + for { + if !(j >= 0) { + break + } + v6 = p + p = p + 1 + **(**int8)(__ccgo_up(v6)) = Int8FromUint32((**(**[2]Tuint32_t)(__ccgo_up(bp + 128)))[i] >> j & uint32(1)) + goto _5 + _5: + ; + j = j - 1 + } + goto _4 + _4: + ; + i = i + 1 + } +} + +var _table = [384]uint16{ + 128: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 129: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 130: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 131: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 132: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 133: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 134: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 135: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 136: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 137: Uint16FromInt32((Int32FromInt32(0x320)/Int32FromInt32(256) | Int32FromInt32(0x320)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 138: Uint16FromInt32((Int32FromInt32(0x220)/Int32FromInt32(256) | Int32FromInt32(0x220)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 139: Uint16FromInt32((Int32FromInt32(0x220)/Int32FromInt32(256) | Int32FromInt32(0x220)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 140: Uint16FromInt32((Int32FromInt32(0x220)/Int32FromInt32(256) | Int32FromInt32(0x220)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 141: Uint16FromInt32((Int32FromInt32(0x220)/Int32FromInt32(256) | Int32FromInt32(0x220)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 142: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 143: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 144: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 145: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 146: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 147: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 148: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 149: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 150: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 151: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 152: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 153: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 154: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 155: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 156: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 157: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 158: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 159: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 160: Uint16FromInt32((Int32FromInt32(0x160)/Int32FromInt32(256) | Int32FromInt32(0x160)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 161: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 162: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 163: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 164: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 165: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 166: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 167: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 168: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 169: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 170: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 171: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 172: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 173: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 174: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 175: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 176: Uint16FromInt32((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 177: Uint16FromInt32((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 178: Uint16FromInt32((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 179: Uint16FromInt32((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 180: Uint16FromInt32((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 181: Uint16FromInt32((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 182: Uint16FromInt32((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 183: Uint16FromInt32((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 184: Uint16FromInt32((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 185: Uint16FromInt32((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 186: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 187: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 188: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 189: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 190: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 191: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 192: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 193: Uint16FromInt32((Int32FromInt32(0x8d5)/Int32FromInt32(256) | Int32FromInt32(0x8d5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 194: Uint16FromInt32((Int32FromInt32(0x8d5)/Int32FromInt32(256) | Int32FromInt32(0x8d5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 195: Uint16FromInt32((Int32FromInt32(0x8d5)/Int32FromInt32(256) | Int32FromInt32(0x8d5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 196: Uint16FromInt32((Int32FromInt32(0x8d5)/Int32FromInt32(256) | Int32FromInt32(0x8d5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 197: Uint16FromInt32((Int32FromInt32(0x8d5)/Int32FromInt32(256) | Int32FromInt32(0x8d5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 198: Uint16FromInt32((Int32FromInt32(0x8d5)/Int32FromInt32(256) | Int32FromInt32(0x8d5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 199: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 200: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 201: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 202: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 203: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 204: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 205: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 206: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 207: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 208: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 209: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 210: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 211: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 212: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 213: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 214: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 215: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 216: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 217: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 218: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 219: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 220: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 221: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 222: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 223: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 224: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 225: Uint16FromInt32((Int32FromInt32(0x8d6)/Int32FromInt32(256) | Int32FromInt32(0x8d6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 226: Uint16FromInt32((Int32FromInt32(0x8d6)/Int32FromInt32(256) | Int32FromInt32(0x8d6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 227: Uint16FromInt32((Int32FromInt32(0x8d6)/Int32FromInt32(256) | Int32FromInt32(0x8d6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 228: Uint16FromInt32((Int32FromInt32(0x8d6)/Int32FromInt32(256) | Int32FromInt32(0x8d6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 229: Uint16FromInt32((Int32FromInt32(0x8d6)/Int32FromInt32(256) | Int32FromInt32(0x8d6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 230: Uint16FromInt32((Int32FromInt32(0x8d6)/Int32FromInt32(256) | Int32FromInt32(0x8d6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 231: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 232: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 233: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 234: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 235: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 236: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 237: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 238: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 239: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 240: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 241: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 242: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 243: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 244: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 245: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 246: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 247: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 248: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 249: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 250: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 251: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 252: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 253: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 254: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 255: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), +} + +var _ptable = uintptr(unsafe.Pointer(&_table)) + uintptr(128)*2 + +func X__ctype_b_loc(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(unsafe.Pointer(&_ptable)) +} + +const CLOCKS_PER_SEC = 1000000 +const CLOCK_BOOTTIME = 7 +const CLOCK_BOOTTIME_ALARM = 9 +const CLOCK_MONOTONIC = 1 +const CLOCK_MONOTONIC_COARSE = 6 +const CLOCK_MONOTONIC_RAW = 4 +const CLOCK_PROCESS_CPUTIME_ID = 2 +const CLOCK_REALTIME = 0 +const CLOCK_REALTIME_ALARM = 8 +const CLOCK_REALTIME_COARSE = 5 +const CLOCK_SGI_CYCLE = 10 +const CLOCK_TAI = 11 +const CLOCK_THREAD_CPUTIME_ID = 3 +const C_LOCALE = 0 +const DEFAULT_GUARD_MAX = 1048576 +const DEFAULT_GUARD_SIZE = 8192 +const DEFAULT_STACK_MAX = 8388608 +const DEFAULT_STACK_SIZE = 131072 +const DTP_OFFSET = 0 +const FUTEX_CLOCK_REALTIME = 256 +const FUTEX_CMP_REQUEUE = 4 +const FUTEX_FD = 2 +const FUTEX_LOCK_PI = 6 +const FUTEX_PRIVATE = 128 +const FUTEX_REQUEUE = 3 +const FUTEX_TRYLOCK_PI = 8 +const FUTEX_UNLOCK_PI = 7 +const FUTEX_WAIT = 0 +const FUTEX_WAIT_BITSET = 9 +const FUTEX_WAKE = 1 +const FUTEX_WAKE_OP = 5 +const GAP_ABOVE_TP = 0 +const LC_ALL = 6 +const LC_ALL_MASK = 2147483647 +const LC_COLLATE = 3 +const LC_COLLATE_MASK = 8 +const LC_CTYPE = 0 +const LC_CTYPE_MASK = 1 +const LC_GLOBAL_LOCALE = -1 +const LC_MESSAGES = 5 +const LC_MESSAGES_MASK = 32 +const LC_MONETARY = 4 +const LC_MONETARY_MASK = 16 +const LC_NUMERIC = 1 +const LC_NUMERIC_MASK = 2 +const LC_TIME = 2 +const LC_TIME_MASK = 4 +const LOCALE_NAME_MAX = 23 +const MAP_ANON = 32 +const MAP_ANONYMOUS = 32 +const MAP_DENYWRITE = 2048 +const MAP_EXECUTABLE = 4096 +const MAP_FAILED = -1 +const MAP_FILE = 0 +const MAP_FIXED = 16 +const MAP_FIXED_NOREPLACE = 1048576 +const MAP_GROWSDOWN = 256 +const MAP_HUGETLB = 262144 +const MAP_HUGE_16GB = 2281701376 +const MAP_HUGE_16KB = 939524096 +const MAP_HUGE_16MB = 1610612736 +const MAP_HUGE_1GB = 2013265920 +const MAP_HUGE_1MB = 1342177280 +const MAP_HUGE_256MB = 1879048192 +const MAP_HUGE_2GB = 2080374784 +const MAP_HUGE_2MB = 1409286144 +const MAP_HUGE_32MB = 1677721600 +const MAP_HUGE_512KB = 1275068416 +const MAP_HUGE_512MB = 1946157056 +const MAP_HUGE_64KB = 1073741824 +const MAP_HUGE_8MB = 1543503872 +const MAP_HUGE_MASK = 63 +const MAP_HUGE_SHIFT = 26 +const MAP_LOCKED = 8192 +const MAP_NONBLOCK = 65536 +const MAP_NORESERVE = 16384 +const MAP_POPULATE = 32768 +const MAP_PRIVATE = 2 +const MAP_SHARED = 1 +const MAP_SHARED_VALIDATE = 3 +const MAP_STACK = 131072 +const MAP_SYNC = 524288 +const MAP_TYPE = 15 +const MCL_CURRENT = 1 +const MCL_FUTURE = 2 +const MCL_ONFAULT = 4 +const MC_PC = 0 +const MS_ASYNC = 1 +const MS_INVALIDATE = 2 +const MS_SYNC = 4 +const POSIX_MADV_DONTNEED = 4 +const POSIX_MADV_NORMAL = 0 +const POSIX_MADV_RANDOM = 1 +const POSIX_MADV_SEQUENTIAL = 2 +const POSIX_MADV_WILLNEED = 3 +const PROT_EXEC = 4 +const PROT_GROWSDOWN = 16777216 +const PROT_GROWSUP = 33554432 +const PROT_NONE = 0 +const PROT_READ = 1 +const PROT_WRITE = 2 +const PTHREAD_BARRIER_SERIAL_THREAD = -1 +const PTHREAD_CANCELED = -1 +const PTHREAD_CANCEL_ASYNCHRONOUS = 1 +const PTHREAD_CANCEL_DEFERRED = 0 +const PTHREAD_CANCEL_DISABLE = 1 +const PTHREAD_CANCEL_ENABLE = 0 +const PTHREAD_CANCEL_MASKED = 2 +const PTHREAD_CREATE_DETACHED = 1 +const PTHREAD_CREATE_JOINABLE = 0 +const PTHREAD_EXPLICIT_SCHED = 1 +const PTHREAD_INHERIT_SCHED = 0 +const PTHREAD_MUTEX_DEFAULT = 0 +const PTHREAD_MUTEX_ERRORCHECK = 2 +const PTHREAD_MUTEX_NORMAL = 0 +const PTHREAD_MUTEX_RECURSIVE = 1 +const PTHREAD_MUTEX_ROBUST = 1 +const PTHREAD_MUTEX_STALLED = 0 +const PTHREAD_ONCE_INIT = 0 +const PTHREAD_PRIO_INHERIT = 1 +const PTHREAD_PRIO_NONE = 0 +const PTHREAD_PRIO_PROTECT = 2 +const PTHREAD_PROCESS_PRIVATE = 0 +const PTHREAD_PROCESS_SHARED = 1 +const PTHREAD_SCOPE_PROCESS = 1 +const PTHREAD_SCOPE_SYSTEM = 0 +const SCHED_BATCH = 3 +const SCHED_DEADLINE = 6 +const SCHED_FIFO = 1 +const SCHED_IDLE = 5 +const SCHED_OTHER = 0 +const SCHED_RESET_ON_FORK = 1073741824 +const SCHED_RR = 2 +const SIGCANCEL = 33 +const SIGSYNCCALL = 34 +const SIGTIMER = 32 +const TIMER_ABSTIME = 1 +const TIME_UTC = 1 +const TP_OFFSET = 0 +const UTF8_LOCALE = 0 +const __CCGO_SIZEOF_GO_MUTEX = 8 +const __SU = 0 +const a_post_llsc = 0 +const a_pre_llsc = 0 +const a_spin = 0 +const pthread = 0 +const tls_mod_off_t = 0 + +type Tlconv = struct { + Fdecimal_point uintptr + Fthousands_sep uintptr + Fgrouping uintptr + Fint_curr_symbol uintptr + Fcurrency_symbol uintptr + Fmon_decimal_point uintptr + Fmon_thousands_sep uintptr + Fmon_grouping uintptr + Fpositive_sign uintptr + Fnegative_sign uintptr + Fint_frac_digits int8 + Ffrac_digits int8 + Fp_cs_precedes int8 + Fp_sep_by_space int8 + Fn_cs_precedes int8 + Fn_sep_by_space int8 + Fp_sign_posn int8 + Fn_sign_posn int8 + Fint_p_cs_precedes int8 + Fint_p_sep_by_space int8 + Fint_n_cs_precedes int8 + Fint_n_sep_by_space int8 + Fint_p_sign_posn int8 + Fint_n_sign_posn int8 +} + +type t__locale_map = struct { + Fmap1 uintptr + Fmap_size Tsize_t + Fname [24]int8 + Fnext uintptr +} + +type Tclockid_t = int32 + +type t__pthread = struct { + Fself uintptr + Fprev uintptr + Fnext uintptr + Fsysinfo Tuintptr_t + Ftid int32 + Ferrno_val int32 + Fdetach_state int32 + Fcancel int32 + Fcanceldisable uint8 + Fcancelasync uint8 + F__ccgo50 uint8 + Fmap_base uintptr + Fmap_size Tsize_t + Fstack uintptr + Fstack_size Tsize_t + Fguard_size Tsize_t + Fresult uintptr + Fcancelbuf uintptr + Ftsd uintptr + Frobust_list struct { + Fhead uintptr + Foff int64 + Fpending uintptr + } + Fh_errno_val int32 + Ftimer_id int32 + Flocale Tlocale_t + Fkilllock [1]int32 + Fdlerror_buf uintptr + Fstdio_locks uintptr + F__ccgo_join_mutex [1]int64 + Fcanary Tuintptr_t + Fdtv uintptr +} + +type Tpthread_once_t = int32 + +type Tpthread_key_t = uint32 + +type Tpthread_spinlock_t = int32 + +type Tpthread_mutexattr_t = struct { + F__attr uint32 +} + +type Tpthread_condattr_t = struct { + F__attr uint32 +} + +type Tpthread_barrierattr_t = struct { + F__attr uint32 +} + +type Tpthread_rwlockattr_t = struct { + F__attr [2]uint32 +} + +type Tpthread_mutex_t = struct { + F__u struct { + F__vi [0][10]int32 + F__p [0][5]uintptr + F__i [10]int32 + } +} + +type Tpthread_cond_t = struct { + F__u struct { + F__vi [0][12]int32 + F__p [0][6]uintptr + F__i [12]int32 + } +} + +type Tpthread_rwlock_t = struct { + F__u struct { + F__vi [0][14]int32 + F__p [0][7]uintptr + F__i [14]int32 + } +} + +type Tpthread_barrier_t = struct { + F__u struct { + F__vi [0][8]int32 + F__p [0][4]uintptr + F__i [8]int32 + } +} + +type Tsched_param = struct { + Fsched_priority int32 + F__reserved1 int32 + F__reserved2 [2]struct { + F__reserved1 Ttime_t + F__reserved2 int64 + } + F__reserved3 int32 +} + +type Ttimer_t = uintptr + +type Ttm = struct { + Ftm_sec int32 + Ftm_min int32 + Ftm_hour int32 + Ftm_mday int32 + Ftm_mon int32 + Ftm_year int32 + Ftm_wday int32 + Ftm_yday int32 + Ftm_isdst int32 + F__tm_gmtoff int64 + F__tm_zone uintptr +} + +type Titimerspec = struct { + Fit_interval Ttimespec + Fit_value Ttimespec +} + +type t__ptcb = struct { + F__f uintptr + F__x uintptr + F__next uintptr +} + +type Tmode_t = uint32 + +const _DT_EXITED = 0 +const _DT_EXITING = 1 +const _DT_JOINABLE = 2 +const _DT_DETACHED = 3 + +func X__ctype_get_mb_cur_max(tls *TLS) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + _ = v1 + if !!(**(**uintptr)(__ccgo_up((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale)) != 0) { + v1 = int32(4) + } else { + v1 = int32(1) + } + return Uint64FromInt32(v1) +} + +var _table1 = [384]Tint32_t{ + 129: int32(1), + 130: int32(2), + 131: int32(3), + 132: int32(4), + 133: int32(5), + 134: int32(6), + 135: int32(7), + 136: int32(8), + 137: int32(9), + 138: int32(10), + 139: int32(11), + 140: int32(12), + 141: int32(13), + 142: int32(14), + 143: int32(15), + 144: int32(16), + 145: int32(17), + 146: int32(18), + 147: int32(19), + 148: int32(20), + 149: int32(21), + 150: int32(22), + 151: int32(23), + 152: int32(24), + 153: int32(25), + 154: int32(26), + 155: int32(27), + 156: int32(28), + 157: int32(29), + 158: int32(30), + 159: int32(31), + 160: int32(32), + 161: int32(33), + 162: int32(34), + 163: int32(35), + 164: int32(36), + 165: int32(37), + 166: int32(38), + 167: int32(39), + 168: int32(40), + 169: int32(41), + 170: int32(42), + 171: int32(43), + 172: int32(44), + 173: int32(45), + 174: int32(46), + 175: int32(47), + 176: int32(48), + 177: int32(49), + 178: int32(50), + 179: int32(51), + 180: int32(52), + 181: int32(53), + 182: int32(54), + 183: int32(55), + 184: int32(56), + 185: int32(57), + 186: int32(58), + 187: int32(59), + 188: int32(60), + 189: int32(61), + 190: int32(62), + 191: int32(63), + 192: int32(64), + 193: int32('a'), + 194: int32('b'), + 195: int32('c'), + 196: int32('d'), + 197: int32('e'), + 198: int32('f'), + 199: int32('g'), + 200: int32('h'), + 201: int32('i'), + 202: int32('j'), + 203: int32('k'), + 204: int32('l'), + 205: int32('m'), + 206: int32('n'), + 207: int32('o'), + 208: int32('p'), + 209: int32('q'), + 210: int32('r'), + 211: int32('s'), + 212: int32('t'), + 213: int32('u'), + 214: int32('v'), + 215: int32('w'), + 216: int32('x'), + 217: int32('y'), + 218: int32('z'), + 219: int32(91), + 220: int32(92), + 221: int32(93), + 222: int32(94), + 223: int32(95), + 224: int32(96), + 225: int32('a'), + 226: int32('b'), + 227: int32('c'), + 228: int32('d'), + 229: int32('e'), + 230: int32('f'), + 231: int32('g'), + 232: int32('h'), + 233: int32('i'), + 234: int32('j'), + 235: int32('k'), + 236: int32('l'), + 237: int32('m'), + 238: int32('n'), + 239: int32('o'), + 240: int32('p'), + 241: int32('q'), + 242: int32('r'), + 243: int32('s'), + 244: int32('t'), + 245: int32('u'), + 246: int32('v'), + 247: int32('w'), + 248: int32('x'), + 249: int32('y'), + 250: int32('z'), + 251: int32(123), + 252: int32(124), + 253: int32(125), + 254: int32(126), + 255: int32(127), +} + +var _ptable1 = uintptr(unsafe.Pointer(&_table1)) + uintptr(128)*4 + +func X__ctype_tolower_loc(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(unsafe.Pointer(&_ptable1)) +} + +var _table2 = [384]Tint32_t{ + 129: int32(1), + 130: int32(2), + 131: int32(3), + 132: int32(4), + 133: int32(5), + 134: int32(6), + 135: int32(7), + 136: int32(8), + 137: int32(9), + 138: int32(10), + 139: int32(11), + 140: int32(12), + 141: int32(13), + 142: int32(14), + 143: int32(15), + 144: int32(16), + 145: int32(17), + 146: int32(18), + 147: int32(19), + 148: int32(20), + 149: int32(21), + 150: int32(22), + 151: int32(23), + 152: int32(24), + 153: int32(25), + 154: int32(26), + 155: int32(27), + 156: int32(28), + 157: int32(29), + 158: int32(30), + 159: int32(31), + 160: int32(32), + 161: int32(33), + 162: int32(34), + 163: int32(35), + 164: int32(36), + 165: int32(37), + 166: int32(38), + 167: int32(39), + 168: int32(40), + 169: int32(41), + 170: int32(42), + 171: int32(43), + 172: int32(44), + 173: int32(45), + 174: int32(46), + 175: int32(47), + 176: int32(48), + 177: int32(49), + 178: int32(50), + 179: int32(51), + 180: int32(52), + 181: int32(53), + 182: int32(54), + 183: int32(55), + 184: int32(56), + 185: int32(57), + 186: int32(58), + 187: int32(59), + 188: int32(60), + 189: int32(61), + 190: int32(62), + 191: int32(63), + 192: int32(64), + 193: int32('A'), + 194: int32('B'), + 195: int32('C'), + 196: int32('D'), + 197: int32('E'), + 198: int32('F'), + 199: int32('G'), + 200: int32('H'), + 201: int32('I'), + 202: int32('J'), + 203: int32('K'), + 204: int32('L'), + 205: int32('M'), + 206: int32('N'), + 207: int32('O'), + 208: int32('P'), + 209: int32('Q'), + 210: int32('R'), + 211: int32('S'), + 212: int32('T'), + 213: int32('U'), + 214: int32('V'), + 215: int32('W'), + 216: int32('X'), + 217: int32('Y'), + 218: int32('Z'), + 219: int32(91), + 220: int32(92), + 221: int32(93), + 222: int32(94), + 223: int32(95), + 224: int32(96), + 225: int32('A'), + 226: int32('B'), + 227: int32('C'), + 228: int32('D'), + 229: int32('E'), + 230: int32('F'), + 231: int32('G'), + 232: int32('H'), + 233: int32('I'), + 234: int32('J'), + 235: int32('K'), + 236: int32('L'), + 237: int32('M'), + 238: int32('N'), + 239: int32('O'), + 240: int32('P'), + 241: int32('Q'), + 242: int32('R'), + 243: int32('S'), + 244: int32('T'), + 245: int32('U'), + 246: int32('V'), + 247: int32('W'), + 248: int32('X'), + 249: int32('Y'), + 250: int32('Z'), + 251: int32(123), + 252: int32(124), + 253: int32(125), + 254: int32(126), + 255: int32(127), +} + +var _ptable2 = uintptr(unsafe.Pointer(&_table2)) + uintptr(128)*4 + +func X__ctype_toupper_loc(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(unsafe.Pointer(&_ptable2)) +} + +func Xisalnum(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(BoolInt32(Uint32FromInt32(c)|uint32(32)-uint32('a') < uint32(26)) != 0 || BoolInt32(Uint32FromInt32(c)-uint32('0') < uint32(10)) != 0) +} + +func X__isalnum_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xisalnum(tls, c) +} + +func Xisalnum_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__isalnum_l(tls, c, l) +} + +func Xisalpha(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(Uint32FromInt32(c)|uint32(32)-uint32('a') < uint32(26)) +} + +func X__isalpha_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xisalpha(tls, c) +} + +func Xisalpha_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__isalpha_l(tls, c, l) +} + +func Xisascii(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(!(c & ^Int32FromInt32(0x7f) != 0)) +} + +func Xisblank(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(c == int32(' ') || c == int32('\t')) +} + +func X__isblank_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xisblank(tls, c) +} + +func Xisblank_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__isblank_l(tls, c, l) +} + +func Xiscntrl(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(Uint32FromInt32(c) < uint32(0x20) || c == int32(0x7f)) +} + +func X__iscntrl_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiscntrl(tls, c) +} + +func Xiscntrl_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iscntrl_l(tls, c, l) +} + +func Xisdigit(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(Uint32FromInt32(c)-uint32('0') < uint32(10)) +} + +func X__isdigit_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xisdigit(tls, c) +} + +func Xisdigit_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__isdigit_l(tls, c, l) +} + +func Xisgraph(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(Uint32FromInt32(c)-uint32(0x21) < uint32(0x5e)) +} + +func X__isgraph_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xisgraph(tls, c) +} + +func Xisgraph_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__isgraph_l(tls, c, l) +} + +func Xislower(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(Uint32FromInt32(c)-uint32('a') < uint32(26)) +} + +func X__islower_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xislower(tls, c) +} + +func Xislower_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__islower_l(tls, c, l) +} + +func Xisprint(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(Uint32FromInt32(c)-uint32(0x20) < uint32(0x5f)) +} + +func X__isprint_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xisprint(tls, c) +} + +func Xisprint_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__isprint_l(tls, c, l) +} + +func Xispunct(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(BoolInt32(Uint32FromInt32(c)-uint32(0x21) < uint32(0x5e)) != 0 && !(Xisalnum(tls, c) != 0)) +} + +func X__ispunct_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xispunct(tls, c) +} + +func Xispunct_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__ispunct_l(tls, c, l) +} + +func Xisspace(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(c == int32(' ') || Uint32FromInt32(c)-uint32('\t') < uint32(5)) +} + +func X__isspace_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xisspace(tls, c) +} + +func Xisspace_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__isspace_l(tls, c, l) +} + +func Xisupper(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(Uint32FromInt32(c)-uint32('A') < uint32(26)) +} + +func X__isupper_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xisupper(tls, c) +} + +func Xisupper_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__isupper_l(tls, c, l) +} + +type Twint_t = uint32 + +type Twctype_t = uint64 + +type Twctrans_t = uintptr + +func Xiswalnum(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(BoolInt32(wc-uint32('0') < uint32(10)) != 0 || Xiswalpha(tls, wc) != 0) +} + +func X__iswalnum_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswalnum(tls, c) +} + +func Xiswalnum_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswalnum_l(tls, c, l) +} + +var _table3 = [3904]uint8{ + 0: uint8(18), + 1: uint8(17), + 2: uint8(19), + 3: uint8(20), + 4: uint8(21), + 5: uint8(22), + 6: uint8(23), + 7: uint8(24), + 8: uint8(25), + 9: uint8(26), + 10: uint8(27), + 11: uint8(28), + 12: uint8(29), + 13: uint8(30), + 14: uint8(31), + 15: uint8(32), + 16: uint8(33), + 17: uint8(17), + 18: uint8(34), + 19: uint8(35), + 20: uint8(36), + 21: uint8(17), + 22: uint8(37), + 23: uint8(38), + 24: uint8(39), + 25: uint8(40), + 26: uint8(41), + 27: uint8(42), + 28: uint8(43), + 29: uint8(44), + 30: uint8(17), + 31: uint8(45), + 32: uint8(46), + 33: uint8(47), + 34: uint8(16), + 35: uint8(16), + 36: uint8(48), + 37: uint8(16), + 38: uint8(16), + 39: uint8(16), + 40: uint8(16), + 41: uint8(16), + 42: uint8(16), + 43: uint8(16), + 44: uint8(49), + 45: uint8(50), + 46: uint8(51), + 47: uint8(16), + 48: uint8(52), + 49: uint8(53), + 50: uint8(16), + 51: uint8(16), + 52: uint8(17), + 53: uint8(17), + 54: uint8(17), + 55: uint8(17), + 56: uint8(17), + 57: uint8(17), + 58: uint8(17), + 59: uint8(17), + 60: uint8(17), + 61: uint8(17), + 62: uint8(17), + 63: uint8(17), + 64: uint8(17), + 65: uint8(17), + 66: uint8(17), + 67: uint8(17), + 68: uint8(17), + 69: uint8(17), + 70: uint8(17), + 71: uint8(17), + 72: uint8(17), + 73: uint8(17), + 74: uint8(17), + 75: uint8(17), + 76: uint8(17), + 77: uint8(54), + 78: uint8(17), + 79: uint8(17), + 80: uint8(17), + 81: uint8(17), + 82: uint8(17), + 83: uint8(17), + 84: uint8(17), + 85: uint8(17), + 86: uint8(17), + 87: uint8(17), + 88: uint8(17), + 89: uint8(17), + 90: uint8(17), + 91: uint8(17), + 92: uint8(17), + 93: uint8(17), + 94: uint8(17), + 95: uint8(17), + 96: uint8(17), + 97: uint8(17), + 98: uint8(17), + 99: uint8(17), + 100: uint8(17), + 101: uint8(17), + 102: uint8(17), + 103: uint8(17), + 104: uint8(17), + 105: uint8(17), + 106: uint8(17), + 107: uint8(17), + 108: uint8(17), + 109: uint8(17), + 110: uint8(17), + 111: uint8(17), + 112: uint8(17), + 113: uint8(17), + 114: uint8(17), + 115: uint8(17), + 116: uint8(17), + 117: uint8(17), + 118: uint8(17), + 119: uint8(17), + 120: uint8(17), + 121: uint8(17), + 122: uint8(17), + 123: uint8(17), + 124: uint8(17), + 125: uint8(17), + 126: uint8(17), + 127: uint8(17), + 128: uint8(17), + 129: uint8(17), + 130: uint8(17), + 131: uint8(17), + 132: uint8(17), + 133: uint8(17), + 134: uint8(17), + 135: uint8(17), + 136: uint8(17), + 137: uint8(17), + 138: uint8(17), + 139: uint8(17), + 140: uint8(17), + 141: uint8(17), + 142: uint8(17), + 143: uint8(17), + 144: uint8(17), + 145: uint8(17), + 146: uint8(17), + 147: uint8(17), + 148: uint8(17), + 149: uint8(17), + 150: uint8(17), + 151: uint8(17), + 152: uint8(17), + 153: uint8(17), + 154: uint8(17), + 155: uint8(17), + 156: uint8(17), + 157: uint8(17), + 158: uint8(17), + 159: uint8(55), + 160: uint8(17), + 161: uint8(17), + 162: uint8(17), + 163: uint8(17), + 164: uint8(56), + 165: uint8(17), + 166: uint8(57), + 167: uint8(58), + 168: uint8(59), + 169: uint8(60), + 170: uint8(61), + 171: uint8(62), + 172: uint8(17), + 173: uint8(17), + 174: uint8(17), + 175: uint8(17), + 176: uint8(17), + 177: uint8(17), + 178: uint8(17), + 179: uint8(17), + 180: uint8(17), + 181: uint8(17), + 182: uint8(17), + 183: uint8(17), + 184: uint8(17), + 185: uint8(17), + 186: uint8(17), + 187: uint8(17), + 188: uint8(17), + 189: uint8(17), + 190: uint8(17), + 191: uint8(17), + 192: uint8(17), + 193: uint8(17), + 194: uint8(17), + 195: uint8(17), + 196: uint8(17), + 197: uint8(17), + 198: uint8(17), + 199: uint8(17), + 200: uint8(17), + 201: uint8(17), + 202: uint8(17), + 203: uint8(17), + 204: uint8(17), + 205: uint8(17), + 206: uint8(17), + 207: uint8(17), + 208: uint8(17), + 209: uint8(17), + 210: uint8(17), + 211: uint8(17), + 212: uint8(17), + 213: uint8(17), + 214: uint8(17), + 215: uint8(63), + 216: uint8(16), + 217: uint8(16), + 218: uint8(16), + 219: uint8(16), + 220: uint8(16), + 221: uint8(16), + 222: uint8(16), + 223: uint8(16), + 224: uint8(16), + 225: uint8(16), + 226: uint8(16), + 227: uint8(16), + 228: uint8(16), + 229: uint8(16), + 230: uint8(16), + 231: uint8(16), + 232: uint8(16), + 233: uint8(16), + 234: uint8(16), + 235: uint8(16), + 236: uint8(16), + 237: uint8(16), + 238: uint8(16), + 239: uint8(16), + 240: uint8(16), + 241: uint8(16), + 242: uint8(16), + 243: uint8(16), + 244: uint8(16), + 245: uint8(16), + 246: uint8(16), + 247: uint8(16), + 248: uint8(16), + 249: uint8(17), + 250: uint8(64), + 251: uint8(65), + 252: uint8(17), + 253: uint8(66), + 254: uint8(67), + 255: uint8(68), + 256: uint8(69), + 257: uint8(70), + 258: uint8(71), + 259: uint8(72), + 260: uint8(73), + 261: uint8(74), + 262: uint8(17), + 263: uint8(75), + 264: uint8(76), + 265: uint8(77), + 266: uint8(78), + 267: uint8(79), + 268: uint8(80), + 269: uint8(81), + 270: uint8(16), + 271: uint8(82), + 272: uint8(83), + 273: uint8(84), + 274: uint8(85), + 275: uint8(86), + 276: uint8(87), + 277: uint8(88), + 278: uint8(89), + 279: uint8(90), + 280: uint8(91), + 281: uint8(92), + 282: uint8(93), + 283: uint8(16), + 284: uint8(94), + 285: uint8(95), + 286: uint8(96), + 287: uint8(16), + 288: uint8(17), + 289: uint8(17), + 290: uint8(17), + 291: uint8(97), + 292: uint8(98), + 293: uint8(99), + 294: uint8(16), + 295: uint8(16), + 296: uint8(16), + 297: uint8(16), + 298: uint8(16), + 299: uint8(16), + 300: uint8(16), + 301: uint8(16), + 302: uint8(16), + 303: uint8(16), + 304: uint8(17), + 305: uint8(17), + 306: uint8(17), + 307: uint8(17), + 308: uint8(100), + 309: uint8(16), + 310: uint8(16), + 311: uint8(16), + 312: uint8(16), + 313: uint8(16), + 314: uint8(16), + 315: uint8(16), + 316: uint8(16), + 317: uint8(16), + 318: uint8(16), + 319: uint8(16), + 320: uint8(16), + 321: uint8(16), + 322: uint8(16), + 323: uint8(16), + 324: uint8(17), + 325: uint8(17), + 326: uint8(101), + 327: uint8(16), + 328: uint8(16), + 329: uint8(16), + 330: uint8(16), + 331: uint8(16), + 332: uint8(16), + 333: uint8(16), + 334: uint8(16), + 335: uint8(16), + 336: uint8(16), + 337: uint8(16), + 338: uint8(16), + 339: uint8(16), + 340: uint8(16), + 341: uint8(16), + 342: uint8(16), + 343: uint8(16), + 344: uint8(16), + 345: uint8(16), + 346: uint8(16), + 347: uint8(16), + 348: uint8(16), + 349: uint8(16), + 350: uint8(16), + 351: uint8(16), + 352: uint8(16), + 353: uint8(16), + 354: uint8(16), + 355: uint8(16), + 356: uint8(16), + 357: uint8(16), + 358: uint8(16), + 359: uint8(16), + 360: uint8(17), + 361: uint8(17), + 362: uint8(102), + 363: uint8(103), + 364: uint8(16), + 365: uint8(16), + 366: uint8(104), + 367: uint8(105), + 368: uint8(17), + 369: uint8(17), + 370: uint8(17), + 371: uint8(17), + 372: uint8(17), + 373: uint8(17), + 374: uint8(17), + 375: uint8(17), + 376: uint8(17), + 377: uint8(17), + 378: uint8(17), + 379: uint8(17), + 380: uint8(17), + 381: uint8(17), + 382: uint8(17), + 383: uint8(17), + 384: uint8(17), + 385: uint8(17), + 386: uint8(17), + 387: uint8(17), + 388: uint8(17), + 389: uint8(17), + 390: uint8(17), + 391: uint8(106), + 392: uint8(17), + 393: uint8(17), + 394: uint8(107), + 395: uint8(16), + 396: uint8(16), + 397: uint8(16), + 398: uint8(16), + 399: uint8(16), + 400: uint8(16), + 401: uint8(16), + 402: uint8(16), + 403: uint8(16), + 404: uint8(16), + 405: uint8(16), + 406: uint8(16), + 407: uint8(16), + 408: uint8(16), + 409: uint8(16), + 410: uint8(16), + 411: uint8(16), + 412: uint8(16), + 413: uint8(16), + 414: uint8(16), + 415: uint8(16), + 416: uint8(16), + 417: uint8(16), + 418: uint8(16), + 419: uint8(16), + 420: uint8(16), + 421: uint8(16), + 422: uint8(16), + 423: uint8(16), + 424: uint8(16), + 425: uint8(16), + 426: uint8(16), + 427: uint8(16), + 428: uint8(16), + 429: uint8(16), + 430: uint8(16), + 431: uint8(16), + 432: uint8(17), + 433: uint8(108), + 434: uint8(109), + 435: uint8(16), + 436: uint8(16), + 437: uint8(16), + 438: uint8(16), + 439: uint8(16), + 440: uint8(16), + 441: uint8(16), + 442: uint8(16), + 443: uint8(16), + 444: uint8(110), + 445: uint8(16), + 446: uint8(16), + 447: uint8(16), + 448: uint8(16), + 449: uint8(16), + 450: uint8(16), + 451: uint8(16), + 452: uint8(16), + 453: uint8(16), + 454: uint8(16), + 455: uint8(16), + 456: uint8(16), + 457: uint8(16), + 458: uint8(16), + 459: uint8(16), + 460: uint8(16), + 461: uint8(16), + 462: uint8(16), + 463: uint8(16), + 464: uint8(16), + 465: uint8(16), + 466: uint8(16), + 467: uint8(16), + 468: uint8(111), + 469: uint8(112), + 470: uint8(113), + 471: uint8(114), + 472: uint8(16), + 473: uint8(16), + 474: uint8(16), + 475: uint8(16), + 476: uint8(16), + 477: uint8(16), + 478: uint8(16), + 479: uint8(16), + 480: uint8(115), + 481: uint8(116), + 482: uint8(117), + 483: uint8(16), + 484: uint8(16), + 485: uint8(16), + 486: uint8(16), + 487: uint8(16), + 488: uint8(118), + 489: uint8(119), + 490: uint8(16), + 491: uint8(16), + 492: uint8(16), + 493: uint8(16), + 494: uint8(120), + 495: uint8(16), + 496: uint8(16), + 497: uint8(121), + 498: uint8(16), + 499: uint8(16), + 500: uint8(16), + 501: uint8(16), + 502: uint8(16), + 503: uint8(16), + 504: uint8(16), + 505: uint8(16), + 506: uint8(16), + 507: uint8(16), + 508: uint8(16), + 509: uint8(16), + 510: uint8(16), + 511: uint8(16), + 544: uint8(255), + 545: uint8(255), + 546: uint8(255), + 547: uint8(255), + 548: uint8(255), + 549: uint8(255), + 550: uint8(255), + 551: uint8(255), + 552: uint8(255), + 553: uint8(255), + 554: uint8(255), + 555: uint8(255), + 556: uint8(255), + 557: uint8(255), + 558: uint8(255), + 559: uint8(255), + 560: uint8(255), + 561: uint8(255), + 562: uint8(255), + 563: uint8(255), + 564: uint8(255), + 565: uint8(255), + 566: uint8(255), + 567: uint8(255), + 568: uint8(255), + 569: uint8(255), + 570: uint8(255), + 571: uint8(255), + 572: uint8(255), + 573: uint8(255), + 574: uint8(255), + 575: uint8(255), + 584: uint8(254), + 585: uint8(255), + 586: uint8(255), + 587: uint8(7), + 588: uint8(254), + 589: uint8(255), + 590: uint8(255), + 591: uint8(7), + 597: uint8(4), + 598: uint8(32), + 599: uint8(4), + 600: uint8(255), + 601: uint8(255), + 602: uint8(127), + 603: uint8(255), + 604: uint8(255), + 605: uint8(255), + 606: uint8(127), + 607: uint8(255), + 608: uint8(255), + 609: uint8(255), + 610: uint8(255), + 611: uint8(255), + 612: uint8(255), + 613: uint8(255), + 614: uint8(255), + 615: uint8(255), + 616: uint8(255), + 617: uint8(255), + 618: uint8(255), + 619: uint8(255), + 620: uint8(255), + 621: uint8(255), + 622: uint8(255), + 623: uint8(255), + 624: uint8(255), + 625: uint8(255), + 626: uint8(255), + 627: uint8(255), + 628: uint8(255), + 629: uint8(255), + 630: uint8(255), + 631: uint8(255), + 632: uint8(195), + 633: uint8(255), + 634: uint8(3), + 636: uint8(31), + 637: uint8(80), + 648: uint8(32), + 654: uint8(223), + 655: uint8(188), + 656: uint8(64), + 657: uint8(215), + 658: uint8(255), + 659: uint8(255), + 660: uint8(251), + 661: uint8(255), + 662: uint8(255), + 663: uint8(255), + 664: uint8(255), + 665: uint8(255), + 666: uint8(255), + 667: uint8(255), + 668: uint8(255), + 669: uint8(255), + 670: uint8(191), + 671: uint8(255), + 672: uint8(255), + 673: uint8(255), + 674: uint8(255), + 675: uint8(255), + 676: uint8(255), + 677: uint8(255), + 678: uint8(255), + 679: uint8(255), + 680: uint8(255), + 681: uint8(255), + 682: uint8(255), + 683: uint8(255), + 684: uint8(255), + 685: uint8(255), + 686: uint8(255), + 687: uint8(255), + 688: uint8(3), + 689: uint8(252), + 690: uint8(255), + 691: uint8(255), + 692: uint8(255), + 693: uint8(255), + 694: uint8(255), + 695: uint8(255), + 696: uint8(255), + 697: uint8(255), + 698: uint8(255), + 699: uint8(255), + 700: uint8(255), + 701: uint8(255), + 702: uint8(255), + 703: uint8(255), + 704: uint8(255), + 705: uint8(255), + 706: uint8(255), + 707: uint8(255), + 708: uint8(255), + 709: uint8(255), + 710: uint8(254), + 711: uint8(255), + 712: uint8(255), + 713: uint8(255), + 714: uint8(127), + 715: uint8(2), + 716: uint8(255), + 717: uint8(255), + 718: uint8(255), + 719: uint8(255), + 720: uint8(255), + 721: uint8(1), + 726: uint8(255), + 727: uint8(191), + 728: uint8(182), + 730: uint8(255), + 731: uint8(255), + 732: uint8(255), + 733: uint8(135), + 734: uint8(7), + 738: uint8(255), + 739: uint8(7), + 740: uint8(255), + 741: uint8(255), + 742: uint8(255), + 743: uint8(255), + 744: uint8(255), + 745: uint8(255), + 746: uint8(255), + 747: uint8(254), + 748: uint8(255), + 749: uint8(195), + 750: uint8(255), + 751: uint8(255), + 752: uint8(255), + 753: uint8(255), + 754: uint8(255), + 755: uint8(255), + 756: uint8(255), + 757: uint8(255), + 758: uint8(255), + 759: uint8(255), + 760: uint8(255), + 761: uint8(255), + 762: uint8(239), + 763: uint8(31), + 764: uint8(254), + 765: uint8(225), + 766: uint8(255), + 767: uint8(159), + 770: uint8(255), + 771: uint8(255), + 772: uint8(255), + 773: uint8(255), + 774: uint8(255), + 775: uint8(255), + 777: uint8(224), + 778: uint8(255), + 779: uint8(255), + 780: uint8(255), + 781: uint8(255), + 782: uint8(255), + 783: uint8(255), + 784: uint8(255), + 785: uint8(255), + 786: uint8(255), + 787: uint8(255), + 788: uint8(255), + 789: uint8(255), + 790: uint8(3), + 792: uint8(255), + 793: uint8(255), + 794: uint8(255), + 795: uint8(255), + 796: uint8(255), + 797: uint8(7), + 798: uint8(48), + 799: uint8(4), + 800: uint8(255), + 801: uint8(255), + 802: uint8(255), + 803: uint8(252), + 804: uint8(255), + 805: uint8(31), + 808: uint8(255), + 809: uint8(255), + 810: uint8(255), + 811: uint8(1), + 812: uint8(255), + 813: uint8(7), + 820: uint8(255), + 821: uint8(255), + 822: uint8(223), + 823: uint8(63), + 826: uint8(240), + 827: uint8(255), + 828: uint8(248), + 829: uint8(3), + 830: uint8(255), + 831: uint8(255), + 832: uint8(255), + 833: uint8(255), + 834: uint8(255), + 835: uint8(255), + 836: uint8(255), + 837: uint8(255), + 838: uint8(255), + 839: uint8(239), + 840: uint8(255), + 841: uint8(223), + 842: uint8(225), + 843: uint8(255), + 844: uint8(207), + 845: uint8(255), + 846: uint8(254), + 847: uint8(255), + 848: uint8(239), + 849: uint8(159), + 850: uint8(249), + 851: uint8(255), + 852: uint8(255), + 853: uint8(253), + 854: uint8(197), + 855: uint8(227), + 856: uint8(159), + 857: uint8(89), + 858: uint8(128), + 859: uint8(176), + 860: uint8(207), + 861: uint8(255), + 862: uint8(3), + 863: uint8(16), + 864: uint8(238), + 865: uint8(135), + 866: uint8(249), + 867: uint8(255), + 868: uint8(255), + 869: uint8(253), + 870: uint8(109), + 871: uint8(195), + 872: uint8(135), + 873: uint8(25), + 874: uint8(2), + 875: uint8(94), + 876: uint8(192), + 877: uint8(255), + 878: uint8(63), + 880: uint8(238), + 881: uint8(191), + 882: uint8(251), + 883: uint8(255), + 884: uint8(255), + 885: uint8(253), + 886: uint8(237), + 887: uint8(227), + 888: uint8(191), + 889: uint8(27), + 890: uint8(1), + 892: uint8(207), + 893: uint8(255), + 895: uint8(30), + 896: uint8(238), + 897: uint8(159), + 898: uint8(249), + 899: uint8(255), + 900: uint8(255), + 901: uint8(253), + 902: uint8(237), + 903: uint8(227), + 904: uint8(159), + 905: uint8(25), + 906: uint8(192), + 907: uint8(176), + 908: uint8(207), + 909: uint8(255), + 910: uint8(2), + 912: uint8(236), + 913: uint8(199), + 914: uint8(61), + 915: uint8(214), + 916: uint8(24), + 917: uint8(199), + 918: uint8(255), + 919: uint8(195), + 920: uint8(199), + 921: uint8(29), + 922: uint8(129), + 924: uint8(192), + 925: uint8(255), + 928: uint8(239), + 929: uint8(223), + 930: uint8(253), + 931: uint8(255), + 932: uint8(255), + 933: uint8(253), + 934: uint8(255), + 935: uint8(227), + 936: uint8(223), + 937: uint8(29), + 938: uint8(96), + 939: uint8(7), + 940: uint8(207), + 941: uint8(255), + 944: uint8(239), + 945: uint8(223), + 946: uint8(253), + 947: uint8(255), + 948: uint8(255), + 949: uint8(253), + 950: uint8(239), + 951: uint8(227), + 952: uint8(223), + 953: uint8(29), + 954: uint8(96), + 955: uint8(64), + 956: uint8(207), + 957: uint8(255), + 958: uint8(6), + 960: uint8(239), + 961: uint8(223), + 962: uint8(253), + 963: uint8(255), + 964: uint8(255), + 965: uint8(255), + 966: uint8(255), + 967: uint8(231), + 968: uint8(223), + 969: uint8(93), + 970: uint8(240), + 971: uint8(128), + 972: uint8(207), + 973: uint8(255), + 975: uint8(252), + 976: uint8(236), + 977: uint8(255), + 978: uint8(127), + 979: uint8(252), + 980: uint8(255), + 981: uint8(255), + 982: uint8(251), + 983: uint8(47), + 984: uint8(127), + 985: uint8(128), + 986: uint8(95), + 987: uint8(255), + 988: uint8(192), + 989: uint8(255), + 990: uint8(12), + 992: uint8(254), + 993: uint8(255), + 994: uint8(255), + 995: uint8(255), + 996: uint8(255), + 997: uint8(127), + 998: uint8(255), + 999: uint8(7), + 1000: uint8(63), + 1001: uint8(32), + 1002: uint8(255), + 1003: uint8(3), + 1008: uint8(214), + 1009: uint8(247), + 1010: uint8(255), + 1011: uint8(255), + 1012: uint8(175), + 1013: uint8(255), + 1014: uint8(255), + 1015: uint8(59), + 1016: uint8(95), + 1017: uint8(32), + 1018: uint8(255), + 1019: uint8(243), + 1024: uint8(1), + 1028: uint8(255), + 1029: uint8(3), + 1032: uint8(255), + 1033: uint8(254), + 1034: uint8(255), + 1035: uint8(255), + 1036: uint8(255), + 1037: uint8(31), + 1038: uint8(254), + 1039: uint8(255), + 1040: uint8(3), + 1041: uint8(255), + 1042: uint8(255), + 1043: uint8(254), + 1044: uint8(255), + 1045: uint8(255), + 1046: uint8(255), + 1047: uint8(31), + 1056: uint8(255), + 1057: uint8(255), + 1058: uint8(255), + 1059: uint8(255), + 1060: uint8(255), + 1061: uint8(255), + 1062: uint8(127), + 1063: uint8(249), + 1064: uint8(255), + 1065: uint8(3), + 1066: uint8(255), + 1067: uint8(255), + 1068: uint8(255), + 1069: uint8(255), + 1070: uint8(255), + 1071: uint8(255), + 1072: uint8(255), + 1073: uint8(255), + 1074: uint8(255), + 1075: uint8(63), + 1076: uint8(255), + 1077: uint8(255), + 1078: uint8(255), + 1079: uint8(255), + 1080: uint8(191), + 1081: uint8(32), + 1082: uint8(255), + 1083: uint8(255), + 1084: uint8(255), + 1085: uint8(255), + 1086: uint8(255), + 1087: uint8(247), + 1088: uint8(255), + 1089: uint8(255), + 1090: uint8(255), + 1091: uint8(255), + 1092: uint8(255), + 1093: uint8(255), + 1094: uint8(255), + 1095: uint8(255), + 1096: uint8(255), + 1097: uint8(61), + 1098: uint8(127), + 1099: uint8(61), + 1100: uint8(255), + 1101: uint8(255), + 1102: uint8(255), + 1103: uint8(255), + 1104: uint8(255), + 1105: uint8(61), + 1106: uint8(255), + 1107: uint8(255), + 1108: uint8(255), + 1109: uint8(255), + 1110: uint8(61), + 1111: uint8(127), + 1112: uint8(61), + 1113: uint8(255), + 1114: uint8(127), + 1115: uint8(255), + 1116: uint8(255), + 1117: uint8(255), + 1118: uint8(255), + 1119: uint8(255), + 1120: uint8(255), + 1121: uint8(255), + 1122: uint8(61), + 1123: uint8(255), + 1124: uint8(255), + 1125: uint8(255), + 1126: uint8(255), + 1127: uint8(255), + 1128: uint8(255), + 1129: uint8(255), + 1130: uint8(255), + 1131: uint8(7), + 1136: uint8(255), + 1137: uint8(255), + 1140: uint8(255), + 1141: uint8(255), + 1142: uint8(255), + 1143: uint8(255), + 1144: uint8(255), + 1145: uint8(255), + 1146: uint8(255), + 1147: uint8(255), + 1148: uint8(255), + 1149: uint8(255), + 1150: uint8(63), + 1151: uint8(63), + 1152: uint8(254), + 1153: uint8(255), + 1154: uint8(255), + 1155: uint8(255), + 1156: uint8(255), + 1157: uint8(255), + 1158: uint8(255), + 1159: uint8(255), + 1160: uint8(255), + 1161: uint8(255), + 1162: uint8(255), + 1163: uint8(255), + 1164: uint8(255), + 1165: uint8(255), + 1166: uint8(255), + 1167: uint8(255), + 1168: uint8(255), + 1169: uint8(255), + 1170: uint8(255), + 1171: uint8(255), + 1172: uint8(255), + 1173: uint8(255), + 1174: uint8(255), + 1175: uint8(255), + 1176: uint8(255), + 1177: uint8(255), + 1178: uint8(255), + 1179: uint8(255), + 1180: uint8(255), + 1181: uint8(255), + 1182: uint8(255), + 1183: uint8(255), + 1184: uint8(255), + 1185: uint8(255), + 1186: uint8(255), + 1187: uint8(255), + 1188: uint8(255), + 1189: uint8(255), + 1190: uint8(255), + 1191: uint8(255), + 1192: uint8(255), + 1193: uint8(255), + 1194: uint8(255), + 1195: uint8(255), + 1196: uint8(255), + 1197: uint8(159), + 1198: uint8(255), + 1199: uint8(255), + 1200: uint8(254), + 1201: uint8(255), + 1202: uint8(255), + 1203: uint8(7), + 1204: uint8(255), + 1205: uint8(255), + 1206: uint8(255), + 1207: uint8(255), + 1208: uint8(255), + 1209: uint8(255), + 1210: uint8(255), + 1211: uint8(255), + 1212: uint8(255), + 1213: uint8(199), + 1214: uint8(255), + 1215: uint8(1), + 1216: uint8(255), + 1217: uint8(223), + 1218: uint8(15), + 1220: uint8(255), + 1221: uint8(255), + 1222: uint8(15), + 1224: uint8(255), + 1225: uint8(255), + 1226: uint8(15), + 1228: uint8(255), + 1229: uint8(223), + 1230: uint8(13), + 1232: uint8(255), + 1233: uint8(255), + 1234: uint8(255), + 1235: uint8(255), + 1236: uint8(255), + 1237: uint8(255), + 1238: uint8(207), + 1239: uint8(255), + 1240: uint8(255), + 1241: uint8(1), + 1242: uint8(128), + 1243: uint8(16), + 1244: uint8(255), + 1245: uint8(3), + 1250: uint8(255), + 1251: uint8(3), + 1252: uint8(255), + 1253: uint8(255), + 1254: uint8(255), + 1255: uint8(255), + 1256: uint8(255), + 1257: uint8(255), + 1258: uint8(255), + 1259: uint8(255), + 1260: uint8(255), + 1261: uint8(255), + 1262: uint8(255), + 1263: uint8(1), + 1264: uint8(255), + 1265: uint8(255), + 1266: uint8(255), + 1267: uint8(255), + 1268: uint8(255), + 1269: uint8(7), + 1270: uint8(255), + 1271: uint8(255), + 1272: uint8(255), + 1273: uint8(255), + 1274: uint8(255), + 1275: uint8(255), + 1276: uint8(255), + 1277: uint8(255), + 1278: uint8(63), + 1280: uint8(255), + 1281: uint8(255), + 1282: uint8(255), + 1283: uint8(127), + 1284: uint8(255), + 1285: uint8(15), + 1286: uint8(255), + 1287: uint8(1), + 1288: uint8(192), + 1289: uint8(255), + 1290: uint8(255), + 1291: uint8(255), + 1292: uint8(255), + 1293: uint8(63), + 1294: uint8(31), + 1296: uint8(255), + 1297: uint8(255), + 1298: uint8(255), + 1299: uint8(255), + 1300: uint8(255), + 1301: uint8(15), + 1302: uint8(255), + 1303: uint8(255), + 1304: uint8(255), + 1305: uint8(3), + 1306: uint8(255), + 1307: uint8(3), + 1312: uint8(255), + 1313: uint8(255), + 1314: uint8(255), + 1315: uint8(15), + 1316: uint8(255), + 1317: uint8(255), + 1318: uint8(255), + 1319: uint8(255), + 1320: uint8(255), + 1321: uint8(255), + 1322: uint8(255), + 1323: uint8(127), + 1324: uint8(254), + 1325: uint8(255), + 1326: uint8(31), + 1328: uint8(255), + 1329: uint8(3), + 1330: uint8(255), + 1331: uint8(3), + 1332: uint8(128), + 1344: uint8(255), + 1345: uint8(255), + 1346: uint8(255), + 1347: uint8(255), + 1348: uint8(255), + 1349: uint8(255), + 1350: uint8(239), + 1351: uint8(255), + 1352: uint8(239), + 1353: uint8(15), + 1354: uint8(255), + 1355: uint8(3), + 1360: uint8(255), + 1361: uint8(255), + 1362: uint8(255), + 1363: uint8(255), + 1364: uint8(255), + 1365: uint8(243), + 1366: uint8(255), + 1367: uint8(255), + 1368: uint8(255), + 1369: uint8(255), + 1370: uint8(255), + 1371: uint8(255), + 1372: uint8(191), + 1373: uint8(255), + 1374: uint8(3), + 1376: uint8(255), + 1377: uint8(255), + 1378: uint8(255), + 1379: uint8(255), + 1380: uint8(255), + 1381: uint8(255), + 1382: uint8(127), + 1384: uint8(255), + 1385: uint8(227), + 1386: uint8(255), + 1387: uint8(255), + 1388: uint8(255), + 1389: uint8(255), + 1390: uint8(255), + 1391: uint8(63), + 1392: uint8(255), + 1393: uint8(1), + 1394: uint8(255), + 1395: uint8(255), + 1396: uint8(255), + 1397: uint8(255), + 1398: uint8(255), + 1399: uint8(231), + 1405: uint8(222), + 1406: uint8(111), + 1407: uint8(4), + 1408: uint8(255), + 1409: uint8(255), + 1410: uint8(255), + 1411: uint8(255), + 1412: uint8(255), + 1413: uint8(255), + 1414: uint8(255), + 1415: uint8(255), + 1416: uint8(255), + 1417: uint8(255), + 1418: uint8(255), + 1419: uint8(255), + 1420: uint8(255), + 1421: uint8(255), + 1422: uint8(255), + 1423: uint8(255), + 1424: uint8(255), + 1425: uint8(255), + 1426: uint8(255), + 1427: uint8(255), + 1428: uint8(255), + 1429: uint8(255), + 1430: uint8(255), + 1431: uint8(255), + 1436: uint8(128), + 1437: uint8(255), + 1438: uint8(31), + 1440: uint8(255), + 1441: uint8(255), + 1442: uint8(63), + 1443: uint8(63), + 1444: uint8(255), + 1445: uint8(255), + 1446: uint8(255), + 1447: uint8(255), + 1448: uint8(63), + 1449: uint8(63), + 1450: uint8(255), + 1451: uint8(170), + 1452: uint8(255), + 1453: uint8(255), + 1454: uint8(255), + 1455: uint8(63), + 1456: uint8(255), + 1457: uint8(255), + 1458: uint8(255), + 1459: uint8(255), + 1460: uint8(255), + 1461: uint8(255), + 1462: uint8(223), + 1463: uint8(95), + 1464: uint8(220), + 1465: uint8(31), + 1466: uint8(207), + 1467: uint8(15), + 1468: uint8(255), + 1469: uint8(31), + 1470: uint8(220), + 1471: uint8(31), + 1486: uint8(2), + 1487: uint8(128), + 1490: uint8(255), + 1491: uint8(31), + 1504: uint8(132), + 1505: uint8(252), + 1506: uint8(47), + 1507: uint8(62), + 1508: uint8(80), + 1509: uint8(189), + 1510: uint8(255), + 1511: uint8(243), + 1512: uint8(224), + 1513: uint8(67), + 1516: uint8(255), + 1517: uint8(255), + 1518: uint8(255), + 1519: uint8(255), + 1520: uint8(255), + 1521: uint8(1), + 1558: uint8(192), + 1559: uint8(255), + 1560: uint8(255), + 1561: uint8(255), + 1562: uint8(255), + 1563: uint8(255), + 1564: uint8(255), + 1565: uint8(3), + 1568: uint8(255), + 1569: uint8(255), + 1570: uint8(255), + 1571: uint8(255), + 1572: uint8(255), + 1573: uint8(127), + 1574: uint8(255), + 1575: uint8(255), + 1576: uint8(255), + 1577: uint8(255), + 1578: uint8(255), + 1579: uint8(127), + 1580: uint8(255), + 1581: uint8(255), + 1582: uint8(255), + 1583: uint8(255), + 1584: uint8(255), + 1585: uint8(255), + 1586: uint8(255), + 1587: uint8(255), + 1588: uint8(255), + 1589: uint8(255), + 1590: uint8(255), + 1591: uint8(255), + 1592: uint8(255), + 1593: uint8(255), + 1594: uint8(255), + 1595: uint8(255), + 1596: uint8(31), + 1597: uint8(120), + 1598: uint8(12), + 1600: uint8(255), + 1601: uint8(255), + 1602: uint8(255), + 1603: uint8(255), + 1604: uint8(191), + 1605: uint8(32), + 1606: uint8(255), + 1607: uint8(255), + 1608: uint8(255), + 1609: uint8(255), + 1610: uint8(255), + 1611: uint8(255), + 1612: uint8(255), + 1613: uint8(128), + 1616: uint8(255), + 1617: uint8(255), + 1618: uint8(127), + 1620: uint8(127), + 1621: uint8(127), + 1622: uint8(127), + 1623: uint8(127), + 1624: uint8(127), + 1625: uint8(127), + 1626: uint8(127), + 1627: uint8(127), + 1628: uint8(255), + 1629: uint8(255), + 1630: uint8(255), + 1631: uint8(255), + 1637: uint8(128), + 1664: uint8(224), + 1668: uint8(254), + 1669: uint8(3), + 1670: uint8(62), + 1671: uint8(31), + 1672: uint8(254), + 1673: uint8(255), + 1674: uint8(255), + 1675: uint8(255), + 1676: uint8(255), + 1677: uint8(255), + 1678: uint8(255), + 1679: uint8(255), + 1680: uint8(255), + 1681: uint8(255), + 1682: uint8(127), + 1683: uint8(224), + 1684: uint8(254), + 1685: uint8(255), + 1686: uint8(255), + 1687: uint8(255), + 1688: uint8(255), + 1689: uint8(255), + 1690: uint8(255), + 1691: uint8(255), + 1692: uint8(255), + 1693: uint8(255), + 1694: uint8(255), + 1695: uint8(247), + 1696: uint8(224), + 1697: uint8(255), + 1698: uint8(255), + 1699: uint8(255), + 1700: uint8(255), + 1701: uint8(255), + 1702: uint8(254), + 1703: uint8(255), + 1704: uint8(255), + 1705: uint8(255), + 1706: uint8(255), + 1707: uint8(255), + 1708: uint8(255), + 1709: uint8(255), + 1710: uint8(255), + 1711: uint8(255), + 1712: uint8(255), + 1713: uint8(127), + 1716: uint8(255), + 1717: uint8(255), + 1718: uint8(255), + 1719: uint8(7), + 1726: uint8(255), + 1727: uint8(255), + 1728: uint8(255), + 1729: uint8(255), + 1730: uint8(255), + 1731: uint8(255), + 1732: uint8(255), + 1733: uint8(255), + 1734: uint8(255), + 1735: uint8(255), + 1736: uint8(255), + 1737: uint8(255), + 1738: uint8(255), + 1739: uint8(255), + 1740: uint8(255), + 1741: uint8(255), + 1742: uint8(255), + 1743: uint8(255), + 1744: uint8(255), + 1745: uint8(255), + 1746: uint8(255), + 1747: uint8(255), + 1748: uint8(255), + 1749: uint8(255), + 1750: uint8(63), + 1760: uint8(255), + 1761: uint8(255), + 1762: uint8(255), + 1763: uint8(255), + 1764: uint8(255), + 1765: uint8(255), + 1766: uint8(255), + 1767: uint8(255), + 1768: uint8(255), + 1769: uint8(255), + 1770: uint8(255), + 1771: uint8(255), + 1772: uint8(255), + 1773: uint8(255), + 1774: uint8(255), + 1775: uint8(255), + 1776: uint8(255), + 1777: uint8(255), + 1778: uint8(255), + 1779: uint8(255), + 1780: uint8(255), + 1781: uint8(255), + 1782: uint8(255), + 1783: uint8(255), + 1784: uint8(255), + 1785: uint8(255), + 1786: uint8(255), + 1787: uint8(255), + 1788: uint8(255), + 1789: uint8(255), + 1792: uint8(255), + 1793: uint8(255), + 1794: uint8(255), + 1795: uint8(255), + 1796: uint8(255), + 1797: uint8(255), + 1798: uint8(255), + 1799: uint8(255), + 1800: uint8(255), + 1801: uint8(255), + 1802: uint8(255), + 1803: uint8(255), + 1804: uint8(255), + 1805: uint8(255), + 1806: uint8(255), + 1807: uint8(255), + 1808: uint8(255), + 1809: uint8(31), + 1818: uint8(255), + 1819: uint8(255), + 1820: uint8(255), + 1821: uint8(255), + 1822: uint8(255), + 1823: uint8(63), + 1824: uint8(255), + 1825: uint8(31), + 1826: uint8(255), + 1827: uint8(255), + 1828: uint8(255), + 1829: uint8(15), + 1832: uint8(255), + 1833: uint8(255), + 1834: uint8(255), + 1835: uint8(255), + 1836: uint8(255), + 1837: uint8(127), + 1838: uint8(240), + 1839: uint8(143), + 1840: uint8(255), + 1841: uint8(255), + 1842: uint8(255), + 1843: uint8(255), + 1844: uint8(255), + 1845: uint8(255), + 1846: uint8(255), + 1847: uint8(255), + 1848: uint8(255), + 1849: uint8(255), + 1850: uint8(255), + 1851: uint8(255), + 1852: uint8(255), + 1853: uint8(255), + 1858: uint8(128), + 1859: uint8(255), + 1860: uint8(252), + 1861: uint8(255), + 1862: uint8(255), + 1863: uint8(255), + 1864: uint8(255), + 1865: uint8(255), + 1866: uint8(255), + 1867: uint8(255), + 1868: uint8(255), + 1869: uint8(255), + 1870: uint8(255), + 1871: uint8(255), + 1872: uint8(255), + 1873: uint8(249), + 1874: uint8(255), + 1875: uint8(255), + 1876: uint8(255), + 1877: uint8(255), + 1878: uint8(255), + 1879: uint8(255), + 1880: uint8(124), + 1886: uint8(128), + 1887: uint8(255), + 1888: uint8(191), + 1889: uint8(255), + 1890: uint8(255), + 1891: uint8(255), + 1892: uint8(255), + 1896: uint8(255), + 1897: uint8(255), + 1898: uint8(255), + 1899: uint8(255), + 1900: uint8(255), + 1901: uint8(255), + 1902: uint8(15), + 1904: uint8(255), + 1905: uint8(255), + 1906: uint8(255), + 1907: uint8(255), + 1908: uint8(255), + 1909: uint8(255), + 1910: uint8(255), + 1911: uint8(255), + 1912: uint8(47), + 1914: uint8(255), + 1915: uint8(3), + 1918: uint8(252), + 1919: uint8(232), + 1920: uint8(255), + 1921: uint8(255), + 1922: uint8(255), + 1923: uint8(255), + 1924: uint8(255), + 1925: uint8(7), + 1926: uint8(255), + 1927: uint8(255), + 1928: uint8(255), + 1929: uint8(255), + 1930: uint8(7), + 1932: uint8(255), + 1933: uint8(255), + 1934: uint8(255), + 1935: uint8(31), + 1936: uint8(255), + 1937: uint8(255), + 1938: uint8(255), + 1939: uint8(255), + 1940: uint8(255), + 1941: uint8(255), + 1942: uint8(247), + 1943: uint8(255), + 1945: uint8(128), + 1946: uint8(255), + 1947: uint8(3), + 1948: uint8(255), + 1949: uint8(255), + 1950: uint8(255), + 1951: uint8(127), + 1952: uint8(255), + 1953: uint8(255), + 1954: uint8(255), + 1955: uint8(255), + 1956: uint8(255), + 1957: uint8(255), + 1958: uint8(127), + 1960: uint8(255), + 1961: uint8(63), + 1962: uint8(255), + 1963: uint8(3), + 1964: uint8(255), + 1965: uint8(255), + 1966: uint8(127), + 1967: uint8(252), + 1968: uint8(255), + 1969: uint8(255), + 1970: uint8(255), + 1971: uint8(255), + 1972: uint8(255), + 1973: uint8(255), + 1974: uint8(255), + 1975: uint8(127), + 1976: uint8(5), + 1979: uint8(56), + 1980: uint8(255), + 1981: uint8(255), + 1982: uint8(60), + 1984: uint8(126), + 1985: uint8(126), + 1986: uint8(126), + 1988: uint8(127), + 1989: uint8(127), + 1990: uint8(255), + 1991: uint8(255), + 1992: uint8(255), + 1993: uint8(255), + 1994: uint8(255), + 1995: uint8(247), + 1996: uint8(255), + 1998: uint8(255), + 1999: uint8(255), + 2000: uint8(255), + 2001: uint8(255), + 2002: uint8(255), + 2003: uint8(255), + 2004: uint8(255), + 2005: uint8(255), + 2006: uint8(255), + 2007: uint8(255), + 2008: uint8(255), + 2009: uint8(255), + 2010: uint8(255), + 2011: uint8(255), + 2012: uint8(255), + 2013: uint8(7), + 2014: uint8(255), + 2015: uint8(3), + 2016: uint8(255), + 2017: uint8(255), + 2018: uint8(255), + 2019: uint8(255), + 2020: uint8(255), + 2021: uint8(255), + 2022: uint8(255), + 2023: uint8(255), + 2024: uint8(255), + 2025: uint8(255), + 2026: uint8(255), + 2027: uint8(255), + 2028: uint8(255), + 2029: uint8(255), + 2030: uint8(255), + 2031: uint8(255), + 2032: uint8(255), + 2033: uint8(255), + 2034: uint8(255), + 2035: uint8(255), + 2036: uint8(15), + 2038: uint8(255), + 2039: uint8(255), + 2040: uint8(127), + 2041: uint8(248), + 2042: uint8(255), + 2043: uint8(255), + 2044: uint8(255), + 2045: uint8(255), + 2046: uint8(255), + 2047: uint8(15), + 2048: uint8(255), + 2049: uint8(255), + 2050: uint8(255), + 2051: uint8(255), + 2052: uint8(255), + 2053: uint8(255), + 2054: uint8(255), + 2055: uint8(255), + 2056: uint8(255), + 2057: uint8(255), + 2058: uint8(255), + 2059: uint8(255), + 2060: uint8(255), + 2061: uint8(63), + 2062: uint8(255), + 2063: uint8(255), + 2064: uint8(255), + 2065: uint8(255), + 2066: uint8(255), + 2067: uint8(255), + 2068: uint8(255), + 2069: uint8(255), + 2070: uint8(255), + 2071: uint8(255), + 2072: uint8(255), + 2073: uint8(255), + 2074: uint8(255), + 2075: uint8(3), + 2080: uint8(127), + 2082: uint8(248), + 2083: uint8(224), + 2084: uint8(255), + 2085: uint8(253), + 2086: uint8(127), + 2087: uint8(95), + 2088: uint8(219), + 2089: uint8(255), + 2090: uint8(255), + 2091: uint8(255), + 2092: uint8(255), + 2093: uint8(255), + 2094: uint8(255), + 2095: uint8(255), + 2096: uint8(255), + 2097: uint8(255), + 2098: uint8(255), + 2099: uint8(255), + 2100: uint8(255), + 2101: uint8(255), + 2102: uint8(3), + 2106: uint8(248), + 2107: uint8(255), + 2108: uint8(255), + 2109: uint8(255), + 2110: uint8(255), + 2111: uint8(255), + 2112: uint8(255), + 2113: uint8(255), + 2114: uint8(255), + 2115: uint8(255), + 2116: uint8(255), + 2117: uint8(255), + 2118: uint8(255), + 2119: uint8(63), + 2122: uint8(255), + 2123: uint8(255), + 2124: uint8(255), + 2125: uint8(255), + 2126: uint8(255), + 2127: uint8(255), + 2128: uint8(255), + 2129: uint8(255), + 2130: uint8(252), + 2131: uint8(255), + 2132: uint8(255), + 2133: uint8(255), + 2134: uint8(255), + 2135: uint8(255), + 2136: uint8(255), + 2142: uint8(255), + 2143: uint8(15), + 2158: uint8(223), + 2159: uint8(255), + 2160: uint8(255), + 2161: uint8(255), + 2162: uint8(255), + 2163: uint8(255), + 2164: uint8(255), + 2165: uint8(255), + 2166: uint8(255), + 2167: uint8(255), + 2168: uint8(255), + 2169: uint8(255), + 2170: uint8(255), + 2171: uint8(255), + 2172: uint8(255), + 2173: uint8(255), + 2174: uint8(255), + 2175: uint8(31), + 2178: uint8(255), + 2179: uint8(3), + 2180: uint8(254), + 2181: uint8(255), + 2182: uint8(255), + 2183: uint8(7), + 2184: uint8(254), + 2185: uint8(255), + 2186: uint8(255), + 2187: uint8(7), + 2188: uint8(192), + 2189: uint8(255), + 2190: uint8(255), + 2191: uint8(255), + 2192: uint8(255), + 2193: uint8(255), + 2194: uint8(255), + 2195: uint8(255), + 2196: uint8(255), + 2197: uint8(255), + 2198: uint8(255), + 2199: uint8(127), + 2200: uint8(252), + 2201: uint8(252), + 2202: uint8(252), + 2203: uint8(28), + 2208: uint8(255), + 2209: uint8(239), + 2210: uint8(255), + 2211: uint8(255), + 2212: uint8(127), + 2213: uint8(255), + 2214: uint8(255), + 2215: uint8(183), + 2216: uint8(255), + 2217: uint8(63), + 2218: uint8(255), + 2219: uint8(63), + 2224: uint8(255), + 2225: uint8(255), + 2226: uint8(255), + 2227: uint8(255), + 2228: uint8(255), + 2229: uint8(255), + 2230: uint8(255), + 2231: uint8(255), + 2232: uint8(255), + 2233: uint8(255), + 2234: uint8(255), + 2235: uint8(255), + 2236: uint8(255), + 2237: uint8(255), + 2238: uint8(255), + 2239: uint8(7), + 2248: uint8(255), + 2249: uint8(255), + 2250: uint8(255), + 2251: uint8(255), + 2252: uint8(255), + 2253: uint8(255), + 2254: uint8(31), + 2288: uint8(255), + 2289: uint8(255), + 2290: uint8(255), + 2291: uint8(31), + 2292: uint8(255), + 2293: uint8(255), + 2294: uint8(255), + 2295: uint8(255), + 2296: uint8(255), + 2297: uint8(255), + 2298: uint8(1), + 2304: uint8(255), + 2305: uint8(255), + 2306: uint8(255), + 2307: uint8(255), + 2309: uint8(224), + 2310: uint8(255), + 2311: uint8(255), + 2312: uint8(255), + 2313: uint8(7), + 2314: uint8(255), + 2315: uint8(255), + 2316: uint8(255), + 2317: uint8(255), + 2318: uint8(255), + 2319: uint8(7), + 2320: uint8(255), + 2321: uint8(255), + 2322: uint8(255), + 2323: uint8(63), + 2324: uint8(255), + 2325: uint8(255), + 2326: uint8(255), + 2327: uint8(255), + 2328: uint8(15), + 2329: uint8(255), + 2330: uint8(62), + 2336: uint8(255), + 2337: uint8(255), + 2338: uint8(255), + 2339: uint8(255), + 2340: uint8(255), + 2341: uint8(255), + 2342: uint8(255), + 2343: uint8(255), + 2344: uint8(255), + 2345: uint8(255), + 2346: uint8(255), + 2347: uint8(255), + 2348: uint8(255), + 2349: uint8(255), + 2350: uint8(255), + 2351: uint8(255), + 2352: uint8(255), + 2353: uint8(255), + 2354: uint8(255), + 2355: uint8(63), + 2356: uint8(255), + 2357: uint8(3), + 2358: uint8(255), + 2359: uint8(255), + 2360: uint8(255), + 2361: uint8(255), + 2362: uint8(15), + 2363: uint8(255), + 2364: uint8(255), + 2365: uint8(255), + 2366: uint8(255), + 2367: uint8(15), + 2368: uint8(255), + 2369: uint8(255), + 2370: uint8(255), + 2371: uint8(255), + 2372: uint8(255), + 2374: uint8(255), + 2375: uint8(255), + 2376: uint8(255), + 2377: uint8(255), + 2378: uint8(255), + 2379: uint8(255), + 2380: uint8(15), + 2400: uint8(255), + 2401: uint8(255), + 2402: uint8(255), + 2403: uint8(255), + 2404: uint8(255), + 2405: uint8(255), + 2406: uint8(127), + 2408: uint8(255), + 2409: uint8(255), + 2410: uint8(63), + 2412: uint8(255), + 2432: uint8(63), + 2433: uint8(253), + 2434: uint8(255), + 2435: uint8(255), + 2436: uint8(255), + 2437: uint8(255), + 2438: uint8(191), + 2439: uint8(145), + 2440: uint8(255), + 2441: uint8(255), + 2442: uint8(63), + 2444: uint8(255), + 2445: uint8(255), + 2446: uint8(127), + 2448: uint8(255), + 2449: uint8(255), + 2450: uint8(255), + 2451: uint8(127), + 2460: uint8(255), + 2461: uint8(255), + 2462: uint8(55), + 2464: uint8(255), + 2465: uint8(255), + 2466: uint8(63), + 2468: uint8(255), + 2469: uint8(255), + 2470: uint8(255), + 2471: uint8(3), + 2480: uint8(255), + 2481: uint8(255), + 2482: uint8(255), + 2483: uint8(255), + 2484: uint8(255), + 2485: uint8(255), + 2486: uint8(255), + 2487: uint8(192), + 2496: uint8(111), + 2497: uint8(240), + 2498: uint8(239), + 2499: uint8(254), + 2500: uint8(255), + 2501: uint8(255), + 2502: uint8(63), + 2508: uint8(255), + 2509: uint8(255), + 2510: uint8(255), + 2511: uint8(31), + 2512: uint8(255), + 2513: uint8(255), + 2514: uint8(255), + 2515: uint8(31), + 2520: uint8(255), + 2521: uint8(254), + 2522: uint8(255), + 2523: uint8(255), + 2524: uint8(31), + 2528: uint8(255), + 2529: uint8(255), + 2530: uint8(255), + 2531: uint8(255), + 2532: uint8(255), + 2533: uint8(255), + 2534: uint8(63), + 2536: uint8(255), + 2537: uint8(255), + 2538: uint8(63), + 2540: uint8(255), + 2541: uint8(255), + 2542: uint8(7), + 2544: uint8(255), + 2545: uint8(255), + 2546: uint8(3), + 2560: uint8(255), + 2561: uint8(255), + 2562: uint8(255), + 2563: uint8(255), + 2564: uint8(255), + 2565: uint8(255), + 2566: uint8(255), + 2567: uint8(255), + 2568: uint8(255), + 2569: uint8(1), + 2576: uint8(255), + 2577: uint8(255), + 2578: uint8(255), + 2579: uint8(255), + 2580: uint8(255), + 2581: uint8(255), + 2582: uint8(7), + 2584: uint8(255), + 2585: uint8(255), + 2586: uint8(255), + 2587: uint8(255), + 2588: uint8(255), + 2589: uint8(255), + 2590: uint8(7), + 2592: uint8(255), + 2593: uint8(255), + 2594: uint8(255), + 2595: uint8(255), + 2596: uint8(255), + 2598: uint8(255), + 2599: uint8(3), + 2624: uint8(255), + 2625: uint8(255), + 2626: uint8(255), + 2627: uint8(31), + 2628: uint8(128), + 2630: uint8(255), + 2631: uint8(255), + 2632: uint8(63), + 2652: uint8(255), + 2653: uint8(255), + 2654: uint8(127), + 2656: uint8(255), + 2657: uint8(255), + 2658: uint8(255), + 2659: uint8(255), + 2660: uint8(255), + 2661: uint8(255), + 2662: uint8(255), + 2663: uint8(255), + 2664: uint8(63), + 2668: uint8(192), + 2669: uint8(255), + 2672: uint8(252), + 2673: uint8(255), + 2674: uint8(255), + 2675: uint8(255), + 2676: uint8(255), + 2677: uint8(255), + 2678: uint8(255), + 2679: uint8(1), + 2682: uint8(255), + 2683: uint8(255), + 2684: uint8(255), + 2685: uint8(1), + 2686: uint8(255), + 2687: uint8(3), + 2688: uint8(255), + 2689: uint8(255), + 2690: uint8(255), + 2691: uint8(255), + 2692: uint8(255), + 2693: uint8(255), + 2694: uint8(199), + 2695: uint8(255), + 2696: uint8(112), + 2698: uint8(255), + 2699: uint8(255), + 2700: uint8(255), + 2701: uint8(255), + 2702: uint8(71), + 2704: uint8(255), + 2705: uint8(255), + 2706: uint8(255), + 2707: uint8(255), + 2708: uint8(255), + 2709: uint8(255), + 2710: uint8(255), + 2711: uint8(255), + 2712: uint8(30), + 2714: uint8(255), + 2715: uint8(23), + 2720: uint8(255), + 2721: uint8(255), + 2722: uint8(251), + 2723: uint8(255), + 2724: uint8(255), + 2725: uint8(255), + 2726: uint8(159), + 2727: uint8(64), + 2736: uint8(127), + 2737: uint8(189), + 2738: uint8(255), + 2739: uint8(191), + 2740: uint8(255), + 2741: uint8(1), + 2742: uint8(255), + 2743: uint8(255), + 2744: uint8(255), + 2745: uint8(255), + 2746: uint8(255), + 2747: uint8(255), + 2748: uint8(255), + 2749: uint8(1), + 2750: uint8(255), + 2751: uint8(3), + 2752: uint8(239), + 2753: uint8(159), + 2754: uint8(249), + 2755: uint8(255), + 2756: uint8(255), + 2757: uint8(253), + 2758: uint8(237), + 2759: uint8(227), + 2760: uint8(159), + 2761: uint8(25), + 2762: uint8(129), + 2763: uint8(224), + 2764: uint8(15), + 2784: uint8(255), + 2785: uint8(255), + 2786: uint8(255), + 2787: uint8(255), + 2788: uint8(255), + 2789: uint8(255), + 2790: uint8(255), + 2791: uint8(255), + 2792: uint8(187), + 2793: uint8(7), + 2794: uint8(255), + 2795: uint8(131), + 2800: uint8(255), + 2801: uint8(255), + 2802: uint8(255), + 2803: uint8(255), + 2804: uint8(255), + 2805: uint8(255), + 2806: uint8(255), + 2807: uint8(255), + 2808: uint8(179), + 2810: uint8(255), + 2811: uint8(3), + 2832: uint8(255), + 2833: uint8(255), + 2834: uint8(255), + 2835: uint8(255), + 2836: uint8(255), + 2837: uint8(255), + 2838: uint8(63), + 2839: uint8(127), + 2843: uint8(63), + 2848: uint8(255), + 2849: uint8(255), + 2850: uint8(255), + 2851: uint8(255), + 2852: uint8(255), + 2853: uint8(255), + 2854: uint8(255), + 2855: uint8(127), + 2856: uint8(17), + 2858: uint8(255), + 2859: uint8(3), + 2864: uint8(255), + 2865: uint8(255), + 2866: uint8(255), + 2867: uint8(255), + 2868: uint8(255), + 2869: uint8(255), + 2870: uint8(63), + 2871: uint8(1), + 2872: uint8(255), + 2873: uint8(3), + 2880: uint8(255), + 2881: uint8(255), + 2882: uint8(255), + 2883: uint8(231), + 2884: uint8(255), + 2885: uint8(7), + 2886: uint8(255), + 2887: uint8(3), + 2912: uint8(255), + 2913: uint8(255), + 2914: uint8(255), + 2915: uint8(255), + 2916: uint8(255), + 2917: uint8(255), + 2918: uint8(255), + 2919: uint8(1), + 2932: uint8(255), + 2933: uint8(255), + 2934: uint8(255), + 2935: uint8(255), + 2936: uint8(255), + 2937: uint8(255), + 2938: uint8(255), + 2939: uint8(255), + 2940: uint8(255), + 2941: uint8(3), + 2943: uint8(128), + 2964: uint8(255), + 2965: uint8(252), + 2966: uint8(255), + 2967: uint8(255), + 2968: uint8(255), + 2969: uint8(255), + 2970: uint8(255), + 2971: uint8(252), + 2972: uint8(26), + 2976: uint8(255), + 2977: uint8(255), + 2978: uint8(255), + 2979: uint8(255), + 2980: uint8(255), + 2981: uint8(255), + 2982: uint8(231), + 2983: uint8(127), + 2986: uint8(255), + 2987: uint8(255), + 2988: uint8(255), + 2989: uint8(255), + 2990: uint8(255), + 2991: uint8(255), + 2992: uint8(255), + 2993: uint8(255), + 2994: uint8(255), + 2995: uint8(32), + 3000: uint8(255), + 3001: uint8(255), + 3002: uint8(255), + 3003: uint8(255), + 3004: uint8(255), + 3005: uint8(255), + 3006: uint8(255), + 3007: uint8(1), + 3008: uint8(255), + 3009: uint8(253), + 3010: uint8(255), + 3011: uint8(255), + 3012: uint8(255), + 3013: uint8(255), + 3014: uint8(127), + 3015: uint8(127), + 3016: uint8(1), + 3018: uint8(255), + 3019: uint8(3), + 3022: uint8(252), + 3023: uint8(255), + 3024: uint8(255), + 3025: uint8(255), + 3026: uint8(252), + 3027: uint8(255), + 3028: uint8(255), + 3029: uint8(254), + 3030: uint8(127), + 3040: uint8(127), + 3041: uint8(251), + 3042: uint8(255), + 3043: uint8(255), + 3044: uint8(255), + 3045: uint8(255), + 3046: uint8(127), + 3047: uint8(180), + 3048: uint8(203), + 3050: uint8(255), + 3051: uint8(3), + 3052: uint8(191), + 3053: uint8(253), + 3054: uint8(255), + 3055: uint8(255), + 3056: uint8(255), + 3057: uint8(127), + 3058: uint8(123), + 3059: uint8(1), + 3060: uint8(255), + 3061: uint8(3), + 3100: uint8(255), + 3101: uint8(255), + 3102: uint8(127), + 3104: uint8(255), + 3105: uint8(255), + 3106: uint8(255), + 3107: uint8(255), + 3108: uint8(255), + 3109: uint8(255), + 3110: uint8(255), + 3111: uint8(255), + 3112: uint8(255), + 3113: uint8(255), + 3114: uint8(255), + 3115: uint8(255), + 3116: uint8(255), + 3117: uint8(255), + 3118: uint8(255), + 3119: uint8(255), + 3120: uint8(255), + 3121: uint8(255), + 3122: uint8(255), + 3123: uint8(3), + 3136: uint8(255), + 3137: uint8(255), + 3138: uint8(255), + 3139: uint8(255), + 3140: uint8(255), + 3141: uint8(255), + 3142: uint8(255), + 3143: uint8(255), + 3144: uint8(255), + 3145: uint8(255), + 3146: uint8(255), + 3147: uint8(255), + 3148: uint8(255), + 3149: uint8(127), + 3152: uint8(255), + 3153: uint8(255), + 3154: uint8(255), + 3155: uint8(255), + 3156: uint8(255), + 3157: uint8(255), + 3158: uint8(255), + 3159: uint8(255), + 3160: uint8(255), + 3161: uint8(255), + 3162: uint8(255), + 3163: uint8(255), + 3164: uint8(255), + 3165: uint8(255), + 3166: uint8(255), + 3167: uint8(255), + 3168: uint8(255), + 3169: uint8(255), + 3170: uint8(255), + 3171: uint8(255), + 3172: uint8(255), + 3173: uint8(255), + 3174: uint8(255), + 3175: uint8(255), + 3176: uint8(15), + 3200: uint8(255), + 3201: uint8(255), + 3202: uint8(255), + 3203: uint8(255), + 3204: uint8(255), + 3205: uint8(127), + 3232: uint8(255), + 3233: uint8(255), + 3234: uint8(255), + 3235: uint8(255), + 3236: uint8(255), + 3237: uint8(255), + 3238: uint8(255), + 3239: uint8(255), + 3240: uint8(127), + 3264: uint8(255), + 3265: uint8(255), + 3266: uint8(255), + 3267: uint8(255), + 3268: uint8(255), + 3269: uint8(255), + 3270: uint8(255), + 3271: uint8(1), + 3272: uint8(255), + 3273: uint8(255), + 3274: uint8(255), + 3275: uint8(127), + 3276: uint8(255), + 3277: uint8(3), + 3290: uint8(255), + 3291: uint8(255), + 3292: uint8(255), + 3293: uint8(63), + 3296: uint8(255), + 3297: uint8(255), + 3298: uint8(255), + 3299: uint8(255), + 3300: uint8(255), + 3301: uint8(255), + 3304: uint8(15), + 3306: uint8(255), + 3307: uint8(3), + 3308: uint8(248), + 3309: uint8(255), + 3310: uint8(255), + 3311: uint8(224), + 3312: uint8(255), + 3313: uint8(255), + 3336: uint8(255), + 3337: uint8(255), + 3338: uint8(255), + 3339: uint8(255), + 3340: uint8(255), + 3341: uint8(255), + 3342: uint8(255), + 3343: uint8(255), + 3360: uint8(255), + 3361: uint8(255), + 3362: uint8(255), + 3363: uint8(255), + 3364: uint8(255), + 3365: uint8(255), + 3366: uint8(255), + 3367: uint8(255), + 3368: uint8(255), + 3369: uint8(135), + 3370: uint8(255), + 3371: uint8(255), + 3372: uint8(255), + 3373: uint8(255), + 3374: uint8(255), + 3375: uint8(255), + 3376: uint8(255), + 3377: uint8(128), + 3378: uint8(255), + 3379: uint8(255), + 3388: uint8(11), + 3392: uint8(255), + 3393: uint8(255), + 3394: uint8(255), + 3395: uint8(255), + 3396: uint8(255), + 3397: uint8(255), + 3398: uint8(255), + 3399: uint8(255), + 3400: uint8(255), + 3401: uint8(255), + 3402: uint8(255), + 3403: uint8(255), + 3404: uint8(255), + 3405: uint8(255), + 3406: uint8(255), + 3407: uint8(255), + 3408: uint8(255), + 3409: uint8(255), + 3410: uint8(255), + 3411: uint8(255), + 3412: uint8(255), + 3413: uint8(255), + 3414: uint8(255), + 3415: uint8(255), + 3416: uint8(255), + 3417: uint8(255), + 3418: uint8(255), + 3419: uint8(255), + 3420: uint8(255), + 3421: uint8(255), + 3422: uint8(255), + 3424: uint8(255), + 3425: uint8(255), + 3426: uint8(255), + 3427: uint8(255), + 3428: uint8(255), + 3429: uint8(255), + 3430: uint8(255), + 3431: uint8(255), + 3432: uint8(255), + 3433: uint8(255), + 3434: uint8(255), + 3435: uint8(255), + 3436: uint8(255), + 3437: uint8(255), + 3438: uint8(255), + 3439: uint8(255), + 3440: uint8(255), + 3441: uint8(255), + 3442: uint8(255), + 3443: uint8(255), + 3444: uint8(255), + 3445: uint8(255), + 3446: uint8(255), + 3447: uint8(255), + 3448: uint8(255), + 3449: uint8(255), + 3450: uint8(255), + 3451: uint8(255), + 3452: uint8(255), + 3453: uint8(255), + 3454: uint8(7), + 3456: uint8(255), + 3457: uint8(255), + 3458: uint8(255), + 3459: uint8(127), + 3466: uint8(7), + 3468: uint8(240), + 3470: uint8(255), + 3471: uint8(255), + 3472: uint8(255), + 3473: uint8(255), + 3474: uint8(255), + 3475: uint8(255), + 3476: uint8(255), + 3477: uint8(255), + 3478: uint8(255), + 3479: uint8(255), + 3480: uint8(255), + 3481: uint8(255), + 3482: uint8(255), + 3483: uint8(255), + 3484: uint8(255), + 3485: uint8(255), + 3486: uint8(255), + 3487: uint8(255), + 3488: uint8(255), + 3489: uint8(255), + 3490: uint8(255), + 3491: uint8(255), + 3492: uint8(255), + 3493: uint8(255), + 3494: uint8(255), + 3495: uint8(255), + 3496: uint8(255), + 3497: uint8(255), + 3498: uint8(255), + 3499: uint8(255), + 3500: uint8(255), + 3501: uint8(255), + 3502: uint8(255), + 3503: uint8(255), + 3504: uint8(255), + 3505: uint8(255), + 3506: uint8(255), + 3507: uint8(255), + 3508: uint8(255), + 3509: uint8(255), + 3510: uint8(255), + 3511: uint8(255), + 3512: uint8(255), + 3513: uint8(255), + 3514: uint8(255), + 3515: uint8(255), + 3516: uint8(255), + 3517: uint8(255), + 3518: uint8(255), + 3519: uint8(15), + 3520: uint8(255), + 3521: uint8(255), + 3522: uint8(255), + 3523: uint8(255), + 3524: uint8(255), + 3525: uint8(255), + 3526: uint8(255), + 3527: uint8(255), + 3528: uint8(255), + 3529: uint8(255), + 3530: uint8(255), + 3531: uint8(255), + 3532: uint8(255), + 3533: uint8(7), + 3534: uint8(255), + 3535: uint8(31), + 3536: uint8(255), + 3537: uint8(1), + 3538: uint8(255), + 3539: uint8(67), + 3552: uint8(255), + 3553: uint8(255), + 3554: uint8(255), + 3555: uint8(255), + 3556: uint8(255), + 3557: uint8(255), + 3558: uint8(255), + 3559: uint8(255), + 3560: uint8(255), + 3561: uint8(255), + 3562: uint8(223), + 3563: uint8(255), + 3564: uint8(255), + 3565: uint8(255), + 3566: uint8(255), + 3567: uint8(255), + 3568: uint8(255), + 3569: uint8(255), + 3570: uint8(255), + 3571: uint8(223), + 3572: uint8(100), + 3573: uint8(222), + 3574: uint8(255), + 3575: uint8(235), + 3576: uint8(239), + 3577: uint8(255), + 3578: uint8(255), + 3579: uint8(255), + 3580: uint8(255), + 3581: uint8(255), + 3582: uint8(255), + 3583: uint8(255), + 3584: uint8(191), + 3585: uint8(231), + 3586: uint8(223), + 3587: uint8(223), + 3588: uint8(255), + 3589: uint8(255), + 3590: uint8(255), + 3591: uint8(123), + 3592: uint8(95), + 3593: uint8(252), + 3594: uint8(253), + 3595: uint8(255), + 3596: uint8(255), + 3597: uint8(255), + 3598: uint8(255), + 3599: uint8(255), + 3600: uint8(255), + 3601: uint8(255), + 3602: uint8(255), + 3603: uint8(255), + 3604: uint8(255), + 3605: uint8(255), + 3606: uint8(255), + 3607: uint8(255), + 3608: uint8(255), + 3609: uint8(255), + 3610: uint8(255), + 3611: uint8(255), + 3612: uint8(255), + 3613: uint8(255), + 3614: uint8(255), + 3615: uint8(255), + 3616: uint8(255), + 3617: uint8(255), + 3618: uint8(255), + 3619: uint8(255), + 3620: uint8(255), + 3621: uint8(255), + 3622: uint8(255), + 3623: uint8(255), + 3624: uint8(255), + 3625: uint8(255), + 3626: uint8(255), + 3627: uint8(255), + 3628: uint8(255), + 3629: uint8(255), + 3630: uint8(255), + 3631: uint8(255), + 3632: uint8(255), + 3633: uint8(255), + 3634: uint8(255), + 3635: uint8(255), + 3636: uint8(63), + 3637: uint8(255), + 3638: uint8(255), + 3639: uint8(255), + 3640: uint8(253), + 3641: uint8(255), + 3642: uint8(255), + 3643: uint8(247), + 3644: uint8(255), + 3645: uint8(255), + 3646: uint8(255), + 3647: uint8(247), + 3648: uint8(255), + 3649: uint8(255), + 3650: uint8(223), + 3651: uint8(255), + 3652: uint8(255), + 3653: uint8(255), + 3654: uint8(223), + 3655: uint8(255), + 3656: uint8(255), + 3657: uint8(127), + 3658: uint8(255), + 3659: uint8(255), + 3660: uint8(255), + 3661: uint8(127), + 3662: uint8(255), + 3663: uint8(255), + 3664: uint8(255), + 3665: uint8(253), + 3666: uint8(255), + 3667: uint8(255), + 3668: uint8(255), + 3669: uint8(253), + 3670: uint8(255), + 3671: uint8(255), + 3672: uint8(247), + 3673: uint8(207), + 3674: uint8(255), + 3675: uint8(255), + 3676: uint8(255), + 3677: uint8(255), + 3678: uint8(255), + 3679: uint8(255), + 3680: uint8(127), + 3681: uint8(255), + 3682: uint8(255), + 3683: uint8(249), + 3684: uint8(219), + 3685: uint8(7), + 3712: uint8(255), + 3713: uint8(255), + 3714: uint8(255), + 3715: uint8(255), + 3716: uint8(255), + 3717: uint8(31), + 3718: uint8(128), + 3719: uint8(63), + 3720: uint8(255), + 3721: uint8(67), + 3768: uint8(255), + 3769: uint8(255), + 3770: uint8(255), + 3771: uint8(255), + 3772: uint8(255), + 3773: uint8(15), + 3774: uint8(255), + 3775: uint8(3), + 3776: uint8(255), + 3777: uint8(255), + 3778: uint8(255), + 3779: uint8(255), + 3780: uint8(255), + 3781: uint8(255), + 3782: uint8(255), + 3783: uint8(255), + 3784: uint8(255), + 3785: uint8(255), + 3786: uint8(255), + 3787: uint8(255), + 3788: uint8(255), + 3789: uint8(255), + 3790: uint8(255), + 3791: uint8(255), + 3792: uint8(255), + 3793: uint8(255), + 3794: uint8(255), + 3795: uint8(255), + 3796: uint8(255), + 3797: uint8(255), + 3798: uint8(255), + 3799: uint8(255), + 3800: uint8(31), + 3808: uint8(255), + 3809: uint8(255), + 3810: uint8(255), + 3811: uint8(255), + 3812: uint8(255), + 3813: uint8(255), + 3814: uint8(255), + 3815: uint8(255), + 3816: uint8(143), + 3817: uint8(8), + 3818: uint8(255), + 3819: uint8(3), + 3840: uint8(239), + 3841: uint8(255), + 3842: uint8(255), + 3843: uint8(255), + 3844: uint8(150), + 3845: uint8(254), + 3846: uint8(247), + 3847: uint8(10), + 3848: uint8(132), + 3849: uint8(234), + 3850: uint8(150), + 3851: uint8(170), + 3852: uint8(150), + 3853: uint8(247), + 3854: uint8(247), + 3855: uint8(94), + 3856: uint8(255), + 3857: uint8(251), + 3858: uint8(255), + 3859: uint8(15), + 3860: uint8(238), + 3861: uint8(251), + 3862: uint8(255), + 3863: uint8(15), + 3878: uint8(255), + 3879: uint8(255), + 3880: uint8(255), + 3881: uint8(3), + 3882: uint8(255), + 3883: uint8(255), + 3884: uint8(255), + 3885: uint8(3), + 3886: uint8(255), + 3887: uint8(255), + 3888: uint8(255), + 3889: uint8(3), +} + +func Xiswalpha(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + if wc < uint32(0x20000) { + return Int32FromUint8(_table3[Uint32FromInt32(Int32FromUint8(_table3[wc>>int32(8)])*int32(32))+wc&uint32(255)>>int32(3)]) >> (wc & uint32(7)) & int32(1) + } + if wc < uint32(0x2fffe) { + return int32(1) + } + return 0 +} + +func X__iswalpha_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswalpha(tls, c) +} + +func Xiswalpha_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswalpha_l(tls, c, l) +} + +func Xiswblank(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xisblank(tls, Int32FromUint32(wc)) +} + +func X__iswblank_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswblank(tls, c) +} + +func Xiswblank_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswblank_l(tls, c, l) +} + +func Xiswcntrl(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(wc < uint32(32) || wc-Uint32FromInt32(0x7f) < uint32(33) || wc-Uint32FromInt32(0x2028) < uint32(2) || wc-Uint32FromInt32(0xfff9) < uint32(3)) +} + +func X__iswcntrl_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswcntrl(tls, c) +} + +func Xiswcntrl_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswcntrl_l(tls, c, l) +} + +const WCTYPE_ALNUM = 1 +const WCTYPE_ALPHA = 2 +const WCTYPE_BLANK = 3 +const WCTYPE_CNTRL = 4 +const WCTYPE_DIGIT = 5 +const WCTYPE_GRAPH = 6 +const WCTYPE_LOWER = 7 +const WCTYPE_PRINT = 8 +const WCTYPE_PUNCT = 9 +const WCTYPE_SPACE = 10 +const WCTYPE_UPPER = 11 +const WCTYPE_XDIGIT = 12 + +func Xiswctype(tls *TLS, wc Twint_t, type1 Twctype_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v type1=%v, (%v:)", tls, wc, type1, origin(2)) + defer func() { trc("-> %v", r) }() + } + switch type1 { + case uint64(WCTYPE_ALNUM): + return Xiswalnum(tls, wc) + case uint64(WCTYPE_ALPHA): + return Xiswalpha(tls, wc) + case uint64(WCTYPE_BLANK): + return Xiswblank(tls, wc) + case uint64(WCTYPE_CNTRL): + return Xiswcntrl(tls, wc) + case uint64(WCTYPE_DIGIT): + return BoolInt32(wc-uint32('0') < uint32(10)) + case uint64(WCTYPE_GRAPH): + return Xiswgraph(tls, wc) + case uint64(WCTYPE_LOWER): + return Xiswlower(tls, wc) + case uint64(WCTYPE_PRINT): + return Xiswprint(tls, wc) + case uint64(WCTYPE_PUNCT): + return Xiswpunct(tls, wc) + case uint64(WCTYPE_SPACE): + return Xiswspace(tls, wc) + case uint64(WCTYPE_UPPER): + return Xiswupper(tls, wc) + case uint64(WCTYPE_XDIGIT): + return Xiswxdigit(tls, wc) + } + return 0 +} + +func Xwctype(tls *TLS, s uintptr) (r Twctype_t) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var i int32 + var p uintptr + _, _ = i, p + i = int32(1) + p = uintptr(unsafe.Pointer(&_names)) + for { + if !(**(**int8)(__ccgo_up(p)) != 0) { + break + } + if int32(**(**int8)(__ccgo_up(s))) == int32(**(**int8)(__ccgo_up(p))) && !(Xstrcmp(tls, s, p) != 0) { + return Uint64FromInt32(i) + } + goto _1 + _1: + ; + i = i + 1 + p = p + uintptr(6) + } + return uint64(0) +} + +/* order must match! */ +var _names = [73]int8{'a', 'l', 'n', 'u', 'm', 0, 'a', 'l', 'p', 'h', 'a', 0, 'b', 'l', 'a', 'n', 'k', 0, 'c', 'n', 't', 'r', 'l', 0, 'd', 'i', 'g', 'i', 't', 0, 'g', 'r', 'a', 'p', 'h', 0, 'l', 'o', 'w', 'e', 'r', 0, 'p', 'r', 'i', 'n', 't', 0, 'p', 'u', 'n', 'c', 't', 0, 's', 'p', 'a', 'c', 'e', 0, 'u', 'p', 'p', 'e', 'r', 0, 'x', 'd', 'i', 'g', 'i', 't'} + +func X__iswctype_l(tls *TLS, c Twint_t, t Twctype_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v t=%v l=%v, (%v:)", tls, c, t, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswctype(tls, c, t) +} + +func X__wctype_l(tls *TLS, s uintptr, l Tlocale_t) (r Twctype_t) { + if __ccgo_strace { + trc("tls=%v s=%v l=%v, (%v:)", tls, s, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwctype(tls, s) +} + +func Xiswctype_l(tls *TLS, c Twint_t, t Twctype_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v t=%v l=%v, (%v:)", tls, c, t, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswctype_l(tls, c, t, l) +} + +func Xwctype_l(tls *TLS, s uintptr, l Tlocale_t) (r Twctype_t) { + if __ccgo_strace { + trc("tls=%v s=%v l=%v, (%v:)", tls, s, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__wctype_l(tls, s, l) +} + +func Xiswdigit(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(wc-uint32('0') < uint32(10)) +} + +func X__iswdigit_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswdigit(tls, c) +} + +func Xiswdigit_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswdigit_l(tls, c, l) +} + +func Xiswgraph(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + /* ISO C defines this function as: */ + return BoolInt32(!(Xiswspace(tls, wc) != 0) && Xiswprint(tls, wc) != 0) +} + +func X__iswgraph_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswgraph(tls, c) +} + +func Xiswgraph_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswgraph_l(tls, c, l) +} + +func Xiswlower(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(Xtowupper(tls, wc) != wc) +} + +func X__iswlower_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswlower(tls, c) +} + +func Xiswlower_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswlower_l(tls, c, l) +} + +/* Consider all legal codepoints as printable except for: + * - C0 and C1 control characters + * - U+2028 and U+2029 (line/para break) + * - U+FFF9 through U+FFFB (interlinear annotation controls) + * The following code is optimized heavily to make hot paths for the + * expected printable characters. */ + +func Xiswprint(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + if wc < uint32(0xff) { + return BoolInt32((wc+uint32(1))&uint32(0x7f) >= uint32(0x21)) + } + if wc < uint32(0x2028) || wc-uint32(0x202a) < Uint32FromInt32(Int32FromInt32(0xd800)-Int32FromInt32(0x202a)) || wc-uint32(0xe000) < Uint32FromInt32(Int32FromInt32(0xfff9)-Int32FromInt32(0xe000)) { + return int32(1) + } + if wc-uint32(0xfffc) > Uint32FromInt32(Int32FromInt32(0x10ffff)-Int32FromInt32(0xfffc)) || wc&uint32(0xfffe) == uint32(0xfffe) { + return 0 + } + return int32(1) +} + +func X__iswprint_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswprint(tls, c) +} + +func Xiswprint_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswprint_l(tls, c, l) +} + +var _table4 = [4000]uint8{ + 0: uint8(18), + 1: uint8(16), + 2: uint8(19), + 3: uint8(20), + 4: uint8(21), + 5: uint8(22), + 6: uint8(23), + 7: uint8(24), + 8: uint8(25), + 9: uint8(26), + 10: uint8(27), + 11: uint8(28), + 12: uint8(29), + 13: uint8(30), + 14: uint8(31), + 15: uint8(32), + 16: uint8(33), + 17: uint8(16), + 18: uint8(16), + 19: uint8(34), + 20: uint8(35), + 21: uint8(16), + 22: uint8(36), + 23: uint8(37), + 24: uint8(38), + 25: uint8(39), + 26: uint8(40), + 27: uint8(41), + 28: uint8(42), + 29: uint8(43), + 30: uint8(16), + 31: uint8(44), + 32: uint8(45), + 33: uint8(46), + 34: uint8(17), + 35: uint8(17), + 36: uint8(47), + 37: uint8(17), + 38: uint8(17), + 39: uint8(17), + 40: uint8(17), + 41: uint8(17), + 42: uint8(17), + 43: uint8(48), + 44: uint8(49), + 45: uint8(50), + 46: uint8(51), + 47: uint8(52), + 48: uint8(53), + 49: uint8(54), + 50: uint8(55), + 51: uint8(17), + 52: uint8(16), + 53: uint8(16), + 54: uint8(16), + 55: uint8(16), + 56: uint8(16), + 57: uint8(16), + 58: uint8(16), + 59: uint8(16), + 60: uint8(16), + 61: uint8(16), + 62: uint8(16), + 63: uint8(16), + 64: uint8(16), + 65: uint8(16), + 66: uint8(16), + 67: uint8(16), + 68: uint8(16), + 69: uint8(16), + 70: uint8(16), + 71: uint8(16), + 72: uint8(16), + 73: uint8(16), + 74: uint8(16), + 75: uint8(16), + 76: uint8(16), + 77: uint8(56), + 78: uint8(16), + 79: uint8(16), + 80: uint8(16), + 81: uint8(16), + 82: uint8(16), + 83: uint8(16), + 84: uint8(16), + 85: uint8(16), + 86: uint8(16), + 87: uint8(16), + 88: uint8(16), + 89: uint8(16), + 90: uint8(16), + 91: uint8(16), + 92: uint8(16), + 93: uint8(16), + 94: uint8(16), + 95: uint8(16), + 96: uint8(16), + 97: uint8(16), + 98: uint8(16), + 99: uint8(16), + 100: uint8(16), + 101: uint8(16), + 102: uint8(16), + 103: uint8(16), + 104: uint8(16), + 105: uint8(16), + 106: uint8(16), + 107: uint8(16), + 108: uint8(16), + 109: uint8(16), + 110: uint8(16), + 111: uint8(16), + 112: uint8(16), + 113: uint8(16), + 114: uint8(16), + 115: uint8(16), + 116: uint8(16), + 117: uint8(16), + 118: uint8(16), + 119: uint8(16), + 120: uint8(16), + 121: uint8(16), + 122: uint8(16), + 123: uint8(16), + 124: uint8(16), + 125: uint8(16), + 126: uint8(16), + 127: uint8(16), + 128: uint8(16), + 129: uint8(16), + 130: uint8(16), + 131: uint8(16), + 132: uint8(16), + 133: uint8(16), + 134: uint8(16), + 135: uint8(16), + 136: uint8(16), + 137: uint8(16), + 138: uint8(16), + 139: uint8(16), + 140: uint8(16), + 141: uint8(16), + 142: uint8(16), + 143: uint8(16), + 144: uint8(16), + 145: uint8(16), + 146: uint8(16), + 147: uint8(16), + 148: uint8(16), + 149: uint8(16), + 150: uint8(16), + 151: uint8(16), + 152: uint8(16), + 153: uint8(16), + 154: uint8(16), + 155: uint8(16), + 156: uint8(16), + 157: uint8(16), + 158: uint8(16), + 159: uint8(16), + 160: uint8(16), + 161: uint8(16), + 162: uint8(16), + 163: uint8(16), + 164: uint8(57), + 165: uint8(16), + 166: uint8(58), + 167: uint8(59), + 168: uint8(60), + 169: uint8(61), + 170: uint8(62), + 171: uint8(63), + 172: uint8(16), + 173: uint8(16), + 174: uint8(16), + 175: uint8(16), + 176: uint8(16), + 177: uint8(16), + 178: uint8(16), + 179: uint8(16), + 180: uint8(16), + 181: uint8(16), + 182: uint8(16), + 183: uint8(16), + 184: uint8(16), + 185: uint8(16), + 186: uint8(16), + 187: uint8(16), + 188: uint8(16), + 189: uint8(16), + 190: uint8(16), + 191: uint8(16), + 192: uint8(16), + 193: uint8(16), + 194: uint8(16), + 195: uint8(16), + 196: uint8(16), + 197: uint8(16), + 198: uint8(16), + 199: uint8(16), + 200: uint8(16), + 201: uint8(16), + 202: uint8(16), + 203: uint8(16), + 204: uint8(16), + 205: uint8(16), + 206: uint8(16), + 207: uint8(16), + 208: uint8(16), + 209: uint8(16), + 210: uint8(16), + 211: uint8(16), + 212: uint8(16), + 213: uint8(16), + 214: uint8(16), + 215: uint8(16), + 216: uint8(16), + 217: uint8(16), + 218: uint8(16), + 219: uint8(16), + 220: uint8(16), + 221: uint8(16), + 222: uint8(16), + 223: uint8(16), + 224: uint8(64), + 225: uint8(16), + 226: uint8(16), + 227: uint8(16), + 228: uint8(16), + 229: uint8(16), + 230: uint8(16), + 231: uint8(16), + 232: uint8(16), + 233: uint8(16), + 234: uint8(16), + 235: uint8(16), + 236: uint8(16), + 237: uint8(16), + 238: uint8(16), + 239: uint8(16), + 240: uint8(16), + 241: uint8(16), + 242: uint8(16), + 243: uint8(16), + 244: uint8(16), + 245: uint8(16), + 246: uint8(16), + 247: uint8(16), + 248: uint8(65), + 249: uint8(16), + 250: uint8(16), + 251: uint8(66), + 252: uint8(16), + 253: uint8(67), + 254: uint8(68), + 255: uint8(69), + 256: uint8(16), + 257: uint8(70), + 258: uint8(71), + 259: uint8(72), + 260: uint8(16), + 261: uint8(73), + 262: uint8(16), + 263: uint8(16), + 264: uint8(74), + 265: uint8(75), + 266: uint8(76), + 267: uint8(77), + 268: uint8(78), + 269: uint8(16), + 270: uint8(79), + 271: uint8(80), + 272: uint8(81), + 273: uint8(82), + 274: uint8(83), + 275: uint8(84), + 276: uint8(85), + 277: uint8(86), + 278: uint8(87), + 279: uint8(88), + 280: uint8(89), + 281: uint8(90), + 282: uint8(91), + 283: uint8(16), + 284: uint8(92), + 285: uint8(93), + 286: uint8(94), + 287: uint8(95), + 288: uint8(16), + 289: uint8(16), + 290: uint8(16), + 291: uint8(16), + 292: uint8(96), + 293: uint8(16), + 294: uint8(16), + 295: uint8(16), + 296: uint8(16), + 297: uint8(16), + 298: uint8(16), + 299: uint8(16), + 300: uint8(16), + 301: uint8(16), + 302: uint8(16), + 303: uint8(16), + 304: uint8(16), + 305: uint8(16), + 306: uint8(16), + 307: uint8(16), + 308: uint8(97), + 309: uint8(16), + 310: uint8(16), + 311: uint8(16), + 312: uint8(16), + 313: uint8(16), + 314: uint8(16), + 315: uint8(16), + 316: uint8(16), + 317: uint8(16), + 318: uint8(16), + 319: uint8(16), + 320: uint8(16), + 321: uint8(16), + 322: uint8(16), + 323: uint8(16), + 324: uint8(16), + 325: uint8(16), + 326: uint8(16), + 327: uint8(16), + 328: uint8(16), + 329: uint8(16), + 330: uint8(16), + 331: uint8(16), + 332: uint8(16), + 333: uint8(16), + 334: uint8(16), + 335: uint8(16), + 336: uint8(16), + 337: uint8(16), + 338: uint8(16), + 339: uint8(16), + 340: uint8(16), + 341: uint8(16), + 342: uint8(16), + 343: uint8(16), + 344: uint8(16), + 345: uint8(16), + 346: uint8(16), + 347: uint8(16), + 348: uint8(16), + 349: uint8(16), + 350: uint8(16), + 351: uint8(16), + 352: uint8(16), + 353: uint8(16), + 354: uint8(16), + 355: uint8(16), + 356: uint8(16), + 357: uint8(16), + 358: uint8(16), + 359: uint8(16), + 360: uint8(16), + 361: uint8(16), + 362: uint8(98), + 363: uint8(99), + 364: uint8(16), + 365: uint8(16), + 366: uint8(100), + 367: uint8(101), + 368: uint8(16), + 369: uint8(16), + 370: uint8(16), + 371: uint8(16), + 372: uint8(16), + 373: uint8(16), + 374: uint8(16), + 375: uint8(16), + 376: uint8(16), + 377: uint8(16), + 378: uint8(16), + 379: uint8(16), + 380: uint8(16), + 381: uint8(16), + 382: uint8(16), + 383: uint8(16), + 384: uint8(16), + 385: uint8(16), + 386: uint8(16), + 387: uint8(16), + 388: uint8(16), + 389: uint8(16), + 390: uint8(16), + 391: uint8(16), + 392: uint8(16), + 393: uint8(16), + 394: uint8(16), + 395: uint8(16), + 396: uint8(16), + 397: uint8(16), + 398: uint8(16), + 399: uint8(16), + 400: uint8(16), + 401: uint8(16), + 402: uint8(16), + 403: uint8(16), + 404: uint8(16), + 405: uint8(16), + 406: uint8(16), + 407: uint8(16), + 408: uint8(16), + 409: uint8(16), + 410: uint8(16), + 411: uint8(16), + 412: uint8(16), + 413: uint8(16), + 414: uint8(16), + 415: uint8(16), + 416: uint8(16), + 417: uint8(16), + 418: uint8(16), + 419: uint8(16), + 420: uint8(16), + 421: uint8(16), + 422: uint8(16), + 423: uint8(16), + 424: uint8(16), + 425: uint8(16), + 426: uint8(16), + 427: uint8(16), + 428: uint8(16), + 429: uint8(16), + 430: uint8(16), + 431: uint8(16), + 432: uint8(16), + 433: uint8(16), + 434: uint8(16), + 435: uint8(16), + 436: uint8(16), + 437: uint8(16), + 438: uint8(16), + 439: uint8(16), + 440: uint8(16), + 441: uint8(16), + 442: uint8(16), + 443: uint8(16), + 444: uint8(102), + 445: uint8(16), + 446: uint8(16), + 447: uint8(16), + 448: uint8(16), + 449: uint8(16), + 450: uint8(16), + 451: uint8(16), + 452: uint8(16), + 453: uint8(16), + 454: uint8(16), + 455: uint8(16), + 456: uint8(16), + 457: uint8(16), + 458: uint8(16), + 459: uint8(16), + 460: uint8(16), + 461: uint8(16), + 462: uint8(16), + 463: uint8(16), + 464: uint8(103), + 465: uint8(104), + 466: uint8(105), + 467: uint8(106), + 468: uint8(16), + 469: uint8(16), + 470: uint8(107), + 471: uint8(108), + 472: uint8(17), + 473: uint8(17), + 474: uint8(109), + 475: uint8(16), + 476: uint8(16), + 477: uint8(16), + 478: uint8(16), + 479: uint8(16), + 480: uint8(16), + 481: uint8(110), + 482: uint8(111), + 483: uint8(16), + 484: uint8(16), + 485: uint8(16), + 486: uint8(16), + 487: uint8(16), + 488: uint8(112), + 489: uint8(113), + 490: uint8(16), + 491: uint8(16), + 492: uint8(114), + 493: uint8(115), + 494: uint8(116), + 495: uint8(16), + 496: uint8(117), + 497: uint8(118), + 498: uint8(119), + 499: uint8(17), + 500: uint8(17), + 501: uint8(17), + 502: uint8(120), + 503: uint8(121), + 504: uint8(122), + 505: uint8(123), + 506: uint8(124), + 507: uint8(16), + 508: uint8(16), + 509: uint8(16), + 510: uint8(16), + 511: uint8(16), + 544: uint8(255), + 545: uint8(255), + 546: uint8(255), + 547: uint8(255), + 548: uint8(255), + 549: uint8(255), + 550: uint8(255), + 551: uint8(255), + 552: uint8(255), + 553: uint8(255), + 554: uint8(255), + 555: uint8(255), + 556: uint8(255), + 557: uint8(255), + 558: uint8(255), + 559: uint8(255), + 560: uint8(255), + 561: uint8(255), + 562: uint8(255), + 563: uint8(255), + 564: uint8(255), + 565: uint8(255), + 566: uint8(255), + 567: uint8(255), + 568: uint8(255), + 569: uint8(255), + 570: uint8(255), + 571: uint8(255), + 572: uint8(255), + 573: uint8(255), + 574: uint8(255), + 575: uint8(255), + 580: uint8(254), + 581: uint8(255), + 583: uint8(252), + 584: uint8(1), + 587: uint8(248), + 588: uint8(1), + 591: uint8(120), + 596: uint8(255), + 597: uint8(251), + 598: uint8(223), + 599: uint8(251), + 602: uint8(128), + 606: uint8(128), + 632: uint8(60), + 634: uint8(252), + 635: uint8(255), + 636: uint8(224), + 637: uint8(175), + 638: uint8(255), + 639: uint8(255), + 640: uint8(255), + 641: uint8(255), + 642: uint8(255), + 643: uint8(255), + 644: uint8(255), + 645: uint8(255), + 646: uint8(255), + 647: uint8(255), + 648: uint8(223), + 649: uint8(255), + 650: uint8(255), + 651: uint8(255), + 652: uint8(255), + 653: uint8(255), + 654: uint8(32), + 655: uint8(64), + 656: uint8(176), + 670: uint8(64), + 688: uint8(252), + 689: uint8(3), + 715: uint8(252), + 721: uint8(230), + 722: uint8(254), + 723: uint8(255), + 724: uint8(255), + 725: uint8(255), + 727: uint8(64), + 728: uint8(73), + 734: uint8(24), + 736: uint8(255), + 737: uint8(255), + 739: uint8(216), + 747: uint8(1), + 749: uint8(60), + 762: uint8(16), + 763: uint8(224), + 764: uint8(1), + 765: uint8(30), + 767: uint8(96), + 768: uint8(255), + 769: uint8(191), + 776: uint8(255), + 777: uint8(7), + 797: uint8(248), + 798: uint8(207), + 799: uint8(227), + 803: uint8(3), + 805: uint8(32), + 806: uint8(255), + 807: uint8(127), + 811: uint8(78), + 826: uint8(8), + 828: uint8(7), + 829: uint8(252), + 839: uint8(16), + 841: uint8(32), + 842: uint8(30), + 844: uint8(48), + 846: uint8(1), + 855: uint8(16), + 857: uint8(32), + 862: uint8(252), + 863: uint8(111), + 871: uint8(16), + 873: uint8(32), + 878: uint8(64), + 887: uint8(16), + 889: uint8(32), + 894: uint8(3), + 895: uint8(224), + 903: uint8(16), + 905: uint8(32), + 910: uint8(253), + 921: uint8(32), + 926: uint8(255), + 927: uint8(7), + 928: uint8(16), + 937: uint8(32), + 942: uint8(128), + 943: uint8(255), + 944: uint8(16), + 951: uint8(16), + 953: uint8(32), + 967: uint8(24), + 969: uint8(160), + 971: uint8(127), + 974: uint8(255), + 975: uint8(3), + 985: uint8(4), + 990: uint8(16), + 997: uint8(128), + 999: uint8(128), + 1000: uint8(192), + 1001: uint8(223), + 1003: uint8(12), + 1015: uint8(4), + 1017: uint8(31), + 1024: uint8(254), + 1025: uint8(255), + 1026: uint8(255), + 1027: uint8(255), + 1029: uint8(252), + 1030: uint8(255), + 1031: uint8(255), + 1040: uint8(252), + 1047: uint8(192), + 1048: uint8(255), + 1049: uint8(223), + 1050: uint8(255), + 1051: uint8(7), + 1062: uint8(128), + 1063: uint8(6), + 1065: uint8(252), + 1075: uint8(192), + 1087: uint8(8), + 1099: uint8(224), + 1100: uint8(255), + 1101: uint8(255), + 1102: uint8(255), + 1103: uint8(31), + 1106: uint8(255), + 1107: uint8(3), + 1120: uint8(1), + 1165: uint8(96), + 1168: uint8(1), + 1171: uint8(24), + 1181: uint8(56), + 1186: uint8(16), + 1190: uint8(112), + 1206: uint8(48), + 1209: uint8(254), + 1210: uint8(127), + 1211: uint8(47), + 1214: uint8(255), + 1215: uint8(3), + 1216: uint8(255), + 1217: uint8(127), + 1255: uint8(14), + 1256: uint8(49), + 1275: uint8(196), + 1276: uint8(255), + 1277: uint8(255), + 1278: uint8(255), + 1279: uint8(255), + 1283: uint8(192), + 1292: uint8(1), + 1294: uint8(224), + 1295: uint8(159), + 1300: uint8(127), + 1301: uint8(63), + 1302: uint8(255), + 1303: uint8(127), + 1318: uint8(16), + 1320: uint8(16), + 1323: uint8(252), + 1324: uint8(255), + 1325: uint8(255), + 1326: uint8(255), + 1327: uint8(31), + 1333: uint8(12), + 1340: uint8(64), + 1342: uint8(12), + 1343: uint8(240), + 1350: uint8(128), + 1351: uint8(248), + 1359: uint8(192), + 1368: uint8(255), + 1370: uint8(255), + 1371: uint8(255), + 1372: uint8(255), + 1373: uint8(33), + 1374: uint8(144), + 1375: uint8(3), + 1400: uint8(255), + 1401: uint8(255), + 1402: uint8(255), + 1403: uint8(255), + 1404: uint8(127), + 1406: uint8(224), + 1407: uint8(251), + 1431: uint8(160), + 1432: uint8(3), + 1433: uint8(224), + 1435: uint8(224), + 1437: uint8(224), + 1439: uint8(96), + 1440: uint8(128), + 1441: uint8(248), + 1442: uint8(255), + 1443: uint8(255), + 1444: uint8(255), + 1445: uint8(252), + 1446: uint8(255), + 1447: uint8(255), + 1448: uint8(255), + 1449: uint8(255), + 1450: uint8(255), + 1451: uint8(127), + 1452: uint8(223), + 1453: uint8(255), + 1454: uint8(241), + 1455: uint8(127), + 1456: uint8(255), + 1457: uint8(127), + 1460: uint8(255), + 1461: uint8(255), + 1462: uint8(255), + 1463: uint8(255), + 1466: uint8(255), + 1467: uint8(255), + 1468: uint8(255), + 1469: uint8(255), + 1470: uint8(1), + 1472: uint8(123), + 1473: uint8(3), + 1474: uint8(208), + 1475: uint8(193), + 1476: uint8(175), + 1477: uint8(66), + 1479: uint8(12), + 1480: uint8(31), + 1481: uint8(188), + 1482: uint8(255), + 1483: uint8(255), + 1489: uint8(14), + 1490: uint8(255), + 1491: uint8(255), + 1492: uint8(255), + 1493: uint8(255), + 1494: uint8(255), + 1495: uint8(255), + 1496: uint8(255), + 1497: uint8(255), + 1498: uint8(255), + 1499: uint8(255), + 1500: uint8(255), + 1501: uint8(255), + 1502: uint8(255), + 1503: uint8(255), + 1504: uint8(255), + 1505: uint8(255), + 1506: uint8(255), + 1507: uint8(255), + 1508: uint8(127), + 1512: uint8(255), + 1513: uint8(7), + 1516: uint8(255), + 1517: uint8(255), + 1518: uint8(255), + 1519: uint8(255), + 1520: uint8(255), + 1521: uint8(255), + 1522: uint8(255), + 1523: uint8(255), + 1524: uint8(255), + 1525: uint8(255), + 1526: uint8(63), + 1533: uint8(252), + 1534: uint8(255), + 1535: uint8(255), + 1536: uint8(255), + 1537: uint8(255), + 1538: uint8(255), + 1539: uint8(255), + 1540: uint8(255), + 1541: uint8(255), + 1542: uint8(255), + 1543: uint8(255), + 1544: uint8(255), + 1545: uint8(255), + 1546: uint8(255), + 1547: uint8(255), + 1548: uint8(255), + 1549: uint8(255), + 1550: uint8(207), + 1551: uint8(255), + 1552: uint8(255), + 1553: uint8(255), + 1554: uint8(63), + 1555: uint8(255), + 1556: uint8(255), + 1557: uint8(255), + 1558: uint8(255), + 1559: uint8(255), + 1560: uint8(255), + 1561: uint8(255), + 1562: uint8(255), + 1563: uint8(255), + 1564: uint8(255), + 1565: uint8(255), + 1566: uint8(255), + 1567: uint8(255), + 1596: uint8(224), + 1597: uint8(135), + 1598: uint8(3), + 1599: uint8(254), + 1614: uint8(1), + 1615: uint8(128), + 1632: uint8(255), + 1633: uint8(255), + 1634: uint8(255), + 1635: uint8(255), + 1636: uint8(255), + 1637: uint8(127), + 1638: uint8(255), + 1639: uint8(255), + 1640: uint8(255), + 1641: uint8(255), + 1648: uint8(255), + 1649: uint8(255), + 1650: uint8(255), + 1651: uint8(251), + 1652: uint8(255), + 1653: uint8(255), + 1654: uint8(255), + 1655: uint8(255), + 1656: uint8(255), + 1657: uint8(255), + 1658: uint8(255), + 1659: uint8(255), + 1660: uint8(255), + 1661: uint8(255), + 1662: uint8(15), + 1664: uint8(255), + 1665: uint8(255), + 1666: uint8(255), + 1667: uint8(255), + 1668: uint8(255), + 1669: uint8(255), + 1670: uint8(255), + 1671: uint8(255), + 1672: uint8(255), + 1673: uint8(255), + 1674: uint8(255), + 1675: uint8(255), + 1676: uint8(255), + 1677: uint8(255), + 1678: uint8(255), + 1679: uint8(255), + 1680: uint8(255), + 1681: uint8(255), + 1682: uint8(255), + 1683: uint8(255), + 1684: uint8(255), + 1685: uint8(255), + 1686: uint8(255), + 1687: uint8(255), + 1688: uint8(255), + 1689: uint8(255), + 1690: uint8(63), + 1694: uint8(255), + 1695: uint8(15), + 1696: uint8(30), + 1697: uint8(255), + 1698: uint8(255), + 1699: uint8(255), + 1700: uint8(1), + 1701: uint8(252), + 1702: uint8(193), + 1703: uint8(224), + 1715: uint8(30), + 1716: uint8(1), + 1727: uint8(8), + 1746: uint8(255), + 1747: uint8(255), + 1752: uint8(255), + 1753: uint8(255), + 1754: uint8(255), + 1755: uint8(255), + 1756: uint8(15), + 1760: uint8(255), + 1761: uint8(255), + 1762: uint8(255), + 1763: uint8(127), + 1764: uint8(255), + 1765: uint8(255), + 1766: uint8(255), + 1767: uint8(255), + 1768: uint8(255), + 1769: uint8(255), + 1770: uint8(255), + 1771: uint8(255), + 1772: uint8(255), + 1773: uint8(255), + 1774: uint8(255), + 1775: uint8(255), + 1776: uint8(255), + 1777: uint8(255), + 1778: uint8(255), + 1779: uint8(255), + 1780: uint8(255), + 1781: uint8(255), + 1782: uint8(255), + 1783: uint8(255), + 1784: uint8(255), + 1785: uint8(255), + 1786: uint8(255), + 1787: uint8(255), + 1788: uint8(255), + 1789: uint8(255), + 1790: uint8(255), + 1791: uint8(255), + 1816: uint8(255), + 1817: uint8(255), + 1818: uint8(255), + 1819: uint8(255), + 1820: uint8(255), + 1821: uint8(255), + 1822: uint8(255), + 1823: uint8(255), + 1842: uint8(255), + 1843: uint8(255), + 1844: uint8(255), + 1845: uint8(255), + 1846: uint8(255), + 1847: uint8(255), + 1848: uint8(127), + 1855: uint8(192), + 1857: uint8(224), + 1869: uint8(128), + 1870: uint8(15), + 1871: uint8(112), + 1886: uint8(255), + 1888: uint8(255), + 1889: uint8(255), + 1890: uint8(127), + 1892: uint8(3), + 1905: uint8(6), + 1920: uint8(64), + 1925: uint8(15), + 1926: uint8(255), + 1927: uint8(3), + 1934: uint8(240), + 1944: uint8(16), + 1945: uint8(192), + 1948: uint8(255), + 1949: uint8(255), + 1950: uint8(3), + 1951: uint8(23), + 1957: uint8(248), + 1962: uint8(8), + 1963: uint8(128), + 1974: uint8(8), + 1976: uint8(255), + 1977: uint8(63), + 1979: uint8(192), + 1995: uint8(240), + 1998: uint8(128), + 1999: uint8(3), + 2007: uint8(128), + 2008: uint8(2), + 2011: uint8(192), + 2014: uint8(67), + 2027: uint8(8), + 2045: uint8(56), + 2048: uint8(1), + 2111: uint8(128), + 2117: uint8(2), + 2134: uint8(252), + 2135: uint8(255), + 2136: uint8(3), + 2151: uint8(192), + 2175: uint8(48), + 2176: uint8(255), + 2177: uint8(255), + 2178: uint8(255), + 2179: uint8(3), + 2180: uint8(255), + 2181: uint8(255), + 2182: uint8(255), + 2183: uint8(255), + 2184: uint8(255), + 2185: uint8(255), + 2186: uint8(247), + 2187: uint8(255), + 2188: uint8(127), + 2189: uint8(15), + 2207: uint8(128), + 2208: uint8(254), + 2209: uint8(255), + 2211: uint8(252), + 2212: uint8(1), + 2215: uint8(248), + 2216: uint8(1), + 2219: uint8(248), + 2220: uint8(63), + 2236: uint8(127), + 2237: uint8(127), + 2239: uint8(48), + 2240: uint8(135), + 2241: uint8(255), + 2242: uint8(255), + 2243: uint8(255), + 2244: uint8(255), + 2245: uint8(255), + 2246: uint8(143), + 2247: uint8(255), + 2254: uint8(224), + 2255: uint8(255), + 2256: uint8(255), + 2257: uint8(127), + 2258: uint8(255), + 2259: uint8(15), + 2260: uint8(1), + 2266: uint8(255), + 2267: uint8(255), + 2268: uint8(255), + 2269: uint8(255), + 2270: uint8(255), + 2271: uint8(63), + 2300: uint8(255), + 2301: uint8(255), + 2302: uint8(255), + 2303: uint8(15), + 2308: uint8(15), + 2323: uint8(128), + 2330: uint8(1), + 2349: uint8(128), + 2378: uint8(128), + 2379: uint8(255), + 2382: uint8(128), + 2383: uint8(255), + 2388: uint8(128), + 2389: uint8(255), + 2399: uint8(248), + 2402: uint8(192), + 2403: uint8(143), + 2407: uint8(128), + 2423: uint8(48), + 2424: uint8(255), + 2425: uint8(255), + 2426: uint8(252), + 2427: uint8(255), + 2428: uint8(255), + 2429: uint8(255), + 2430: uint8(255), + 2431: uint8(255), + 2439: uint8(135), + 2440: uint8(255), + 2441: uint8(1), + 2442: uint8(255), + 2443: uint8(1), + 2447: uint8(224), + 2451: uint8(224), + 2457: uint8(1), + 2460: uint8(96), + 2461: uint8(248), + 2462: uint8(127), + 2471: uint8(254), + 2475: uint8(255), + 2479: uint8(255), + 2483: uint8(30), + 2485: uint8(254), + 2527: uint8(252), + 2540: uint8(255), + 2541: uint8(255), + 2542: uint8(255), + 2543: uint8(127), + 2563: uint8(224), + 2564: uint8(127), + 2568: uint8(192), + 2569: uint8(255), + 2570: uint8(255), + 2571: uint8(3), + 2600: uint8(192), + 2601: uint8(63), + 2602: uint8(252), + 2603: uint8(255), + 2604: uint8(63), + 2607: uint8(128), + 2608: uint8(3), + 2615: uint8(254), + 2616: uint8(3), + 2617: uint8(32), + 2630: uint8(24), + 2632: uint8(15), + 2638: uint8(56), + 2648: uint8(225), + 2649: uint8(63), + 2651: uint8(232), + 2652: uint8(254), + 2653: uint8(255), + 2654: uint8(31), + 2662: uint8(96), + 2663: uint8(63), + 2677: uint8(2), + 2685: uint8(6), + 2695: uint8(24), + 2697: uint8(32), + 2700: uint8(192), + 2701: uint8(31), + 2702: uint8(31), + 2728: uint8(68), + 2729: uint8(248), + 2731: uint8(104), + 2744: uint8(76), + 2775: uint8(128), + 2776: uint8(255), + 2777: uint8(255), + 2778: uint8(255), + 2791: uint8(128), + 2792: uint8(14), + 2796: uint8(255), + 2797: uint8(31), + 2806: uint8(192), + 2821: uint8(8), + 2823: uint8(252), + 2855: uint8(14), + 2877: uint8(252), + 2878: uint8(7), + 2908: uint8(5), + 2918: uint8(24), + 2919: uint8(128), + 2920: uint8(255), + 2931: uint8(223), + 2932: uint8(7), + 2951: uint8(128), + 2952: uint8(62), + 2955: uint8(252), + 2956: uint8(255), + 2957: uint8(31), + 2958: uint8(3), + 2984: uint8(52), + 2994: uint8(128), + 3038: uint8(128), + 3039: uint8(1), + 3064: uint8(255), + 3065: uint8(255), + 3066: uint8(255), + 3067: uint8(255), + 3068: uint8(255), + 3069: uint8(255), + 3070: uint8(3), + 3071: uint8(128), + 3086: uint8(31), + 3110: uint8(255), + 3111: uint8(1), + 3149: uint8(192), + 3166: uint8(63), + 3174: uint8(255), + 3175: uint8(255), + 3176: uint8(48), + 3179: uint8(248), + 3180: uint8(3), + 3216: uint8(255), + 3217: uint8(255), + 3218: uint8(255), + 3219: uint8(7), + 3260: uint8(4), + 3283: uint8(176), + 3284: uint8(15), + 3296: uint8(255), + 3297: uint8(255), + 3298: uint8(255), + 3299: uint8(255), + 3300: uint8(255), + 3301: uint8(255), + 3302: uint8(255), + 3303: uint8(255), + 3304: uint8(255), + 3305: uint8(255), + 3306: uint8(255), + 3307: uint8(255), + 3308: uint8(255), + 3309: uint8(255), + 3310: uint8(255), + 3311: uint8(255), + 3312: uint8(255), + 3313: uint8(255), + 3314: uint8(255), + 3315: uint8(255), + 3316: uint8(255), + 3317: uint8(255), + 3318: uint8(255), + 3319: uint8(255), + 3320: uint8(255), + 3321: uint8(255), + 3322: uint8(255), + 3323: uint8(255), + 3324: uint8(255), + 3325: uint8(255), + 3326: uint8(63), + 3328: uint8(255), + 3329: uint8(255), + 3330: uint8(255), + 3331: uint8(255), + 3332: uint8(127), + 3333: uint8(254), + 3334: uint8(255), + 3335: uint8(255), + 3336: uint8(255), + 3337: uint8(255), + 3338: uint8(255), + 3339: uint8(255), + 3340: uint8(255), + 3341: uint8(255), + 3342: uint8(255), + 3343: uint8(255), + 3344: uint8(255), + 3345: uint8(255), + 3346: uint8(255), + 3347: uint8(255), + 3348: uint8(255), + 3349: uint8(255), + 3350: uint8(255), + 3351: uint8(255), + 3352: uint8(255), + 3353: uint8(255), + 3354: uint8(255), + 3355: uint8(255), + 3356: uint8(255), + 3357: uint8(1), + 3360: uint8(255), + 3361: uint8(255), + 3362: uint8(255), + 3363: uint8(255), + 3364: uint8(255), + 3365: uint8(255), + 3366: uint8(255), + 3367: uint8(255), + 3368: uint8(63), + 3388: uint8(255), + 3389: uint8(255), + 3390: uint8(15), + 3392: uint8(255), + 3393: uint8(255), + 3394: uint8(255), + 3395: uint8(255), + 3396: uint8(255), + 3397: uint8(255), + 3398: uint8(255), + 3399: uint8(255), + 3400: uint8(255), + 3401: uint8(255), + 3402: uint8(127), + 3404: uint8(255), + 3405: uint8(255), + 3406: uint8(255), + 3407: uint8(1), + 3448: uint8(2), + 3451: uint8(8), + 3455: uint8(8), + 3458: uint8(32), + 3462: uint8(32), + 3465: uint8(128), + 3469: uint8(128), + 3473: uint8(2), + 3477: uint8(2), + 3480: uint8(8), + 3488: uint8(255), + 3489: uint8(255), + 3490: uint8(255), + 3491: uint8(255), + 3492: uint8(255), + 3493: uint8(255), + 3494: uint8(255), + 3495: uint8(255), + 3496: uint8(255), + 3497: uint8(255), + 3498: uint8(255), + 3499: uint8(255), + 3500: uint8(255), + 3501: uint8(255), + 3502: uint8(255), + 3503: uint8(255), + 3504: uint8(255), + 3505: uint8(15), + 3507: uint8(248), + 3508: uint8(254), + 3509: uint8(255), + 3526: uint8(127), + 3529: uint8(128), + 3581: uint8(240), + 3583: uint8(128), + 3608: uint8(128), + 3609: uint8(255), + 3610: uint8(127), + 3624: uint8(112), + 3625: uint8(7), + 3627: uint8(192), + 3662: uint8(254), + 3663: uint8(255), + 3664: uint8(255), + 3665: uint8(255), + 3666: uint8(255), + 3667: uint8(255), + 3668: uint8(255), + 3669: uint8(255), + 3670: uint8(31), + 3680: uint8(254), + 3681: uint8(255), + 3682: uint8(255), + 3683: uint8(255), + 3684: uint8(255), + 3685: uint8(255), + 3686: uint8(255), + 3687: uint8(63), + 3742: uint8(3), + 3744: uint8(255), + 3745: uint8(255), + 3746: uint8(255), + 3747: uint8(255), + 3748: uint8(255), + 3749: uint8(15), + 3750: uint8(255), + 3751: uint8(255), + 3752: uint8(255), + 3753: uint8(255), + 3754: uint8(255), + 3755: uint8(255), + 3756: uint8(255), + 3757: uint8(255), + 3758: uint8(255), + 3759: uint8(255), + 3760: uint8(255), + 3761: uint8(255), + 3762: uint8(15), + 3764: uint8(255), + 3765: uint8(127), + 3766: uint8(254), + 3767: uint8(255), + 3768: uint8(254), + 3769: uint8(255), + 3770: uint8(254), + 3771: uint8(255), + 3772: uint8(255), + 3773: uint8(255), + 3774: uint8(63), + 3776: uint8(255), + 3777: uint8(31), + 3778: uint8(255), + 3779: uint8(255), + 3780: uint8(255), + 3781: uint8(255), + 3785: uint8(252), + 3789: uint8(28), + 3793: uint8(252), + 3794: uint8(255), + 3795: uint8(255), + 3796: uint8(255), + 3797: uint8(31), + 3804: uint8(192), + 3805: uint8(255), + 3806: uint8(255), + 3807: uint8(255), + 3808: uint8(7), + 3810: uint8(255), + 3811: uint8(255), + 3812: uint8(255), + 3813: uint8(255), + 3814: uint8(255), + 3815: uint8(15), + 3816: uint8(255), + 3817: uint8(1), + 3818: uint8(3), + 3820: uint8(63), + 3840: uint8(255), + 3841: uint8(255), + 3842: uint8(255), + 3843: uint8(255), + 3844: uint8(255), + 3845: uint8(255), + 3846: uint8(255), + 3847: uint8(255), + 3848: uint8(255), + 3849: uint8(255), + 3850: uint8(255), + 3851: uint8(255), + 3852: uint8(255), + 3853: uint8(255), + 3854: uint8(255), + 3855: uint8(255), + 3856: uint8(255), + 3857: uint8(255), + 3858: uint8(255), + 3859: uint8(255), + 3860: uint8(255), + 3861: uint8(255), + 3862: uint8(255), + 3863: uint8(255), + 3864: uint8(255), + 3865: uint8(255), + 3866: uint8(63), + 3868: uint8(255), + 3869: uint8(31), + 3870: uint8(255), + 3871: uint8(7), + 3872: uint8(255), + 3873: uint8(255), + 3874: uint8(255), + 3875: uint8(255), + 3876: uint8(255), + 3877: uint8(255), + 3878: uint8(255), + 3879: uint8(255), + 3880: uint8(255), + 3881: uint8(255), + 3882: uint8(255), + 3883: uint8(255), + 3884: uint8(255), + 3885: uint8(255), + 3886: uint8(15), + 3888: uint8(255), + 3889: uint8(255), + 3890: uint8(255), + 3891: uint8(255), + 3892: uint8(255), + 3893: uint8(255), + 3894: uint8(255), + 3895: uint8(255), + 3896: uint8(255), + 3897: uint8(255), + 3898: uint8(255), + 3899: uint8(1), + 3900: uint8(255), + 3901: uint8(15), + 3904: uint8(255), + 3905: uint8(15), + 3906: uint8(255), + 3907: uint8(255), + 3908: uint8(255), + 3909: uint8(255), + 3910: uint8(255), + 3911: uint8(255), + 3912: uint8(255), + 3914: uint8(255), + 3915: uint8(3), + 3916: uint8(255), + 3917: uint8(255), + 3918: uint8(255), + 3919: uint8(255), + 3920: uint8(255), + 3922: uint8(255), + 3923: uint8(255), + 3924: uint8(255), + 3925: uint8(63), + 3936: uint8(255), + 3937: uint8(239), + 3938: uint8(255), + 3939: uint8(255), + 3940: uint8(255), + 3941: uint8(255), + 3942: uint8(255), + 3943: uint8(255), + 3944: uint8(255), + 3945: uint8(255), + 3946: uint8(255), + 3947: uint8(255), + 3948: uint8(255), + 3949: uint8(255), + 3950: uint8(123), + 3951: uint8(252), + 3952: uint8(255), + 3953: uint8(255), + 3954: uint8(255), + 3955: uint8(255), + 3956: uint8(231), + 3957: uint8(199), + 3958: uint8(255), + 3959: uint8(255), + 3960: uint8(255), + 3961: uint8(231), + 3962: uint8(255), + 3963: uint8(255), + 3964: uint8(255), + 3965: uint8(255), + 3966: uint8(255), + 3967: uint8(255), + 3968: uint8(255), + 3969: uint8(255), + 3970: uint8(255), + 3971: uint8(255), + 3972: uint8(255), + 3973: uint8(255), + 3974: uint8(255), + 3975: uint8(255), + 3976: uint8(255), + 3977: uint8(255), + 3978: uint8(15), + 3980: uint8(255), + 3981: uint8(63), + 3982: uint8(15), + 3983: uint8(7), + 3984: uint8(7), + 3986: uint8(63), +} + +func Xiswpunct(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + if wc < uint32(0x20000) { + return Int32FromUint8(_table4[Uint32FromInt32(Int32FromUint8(_table4[wc>>int32(8)])*int32(32))+wc&uint32(255)>>int32(3)]) >> (wc & uint32(7)) & int32(1) + } + return 0 +} + +func X__iswpunct_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswpunct(tls, c) +} + +func Xiswpunct_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswpunct_l(tls, c, l) +} + +type Tmbstate_t = struct { + F__opaque1 uint32 + F__opaque2 uint32 +} + +type t__mbstate_t = Tmbstate_t + +/* Our definition of whitespace is the Unicode White_Space property, + * minus non-breaking spaces (U+00A0, U+2007, and U+202F) and script- + * specific characters with non-blank glyphs (U+1680 and U+180E). */ + +func Xiswspace(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(wc != 0 && Xwcschr(tls, uintptr(unsafe.Pointer(&_spaces)), Int32FromUint32(wc)) != 0) +} + +var _spaces = [22]Twchar_t{ + 0: int32(' '), + 1: int32('\t'), + 2: int32('\n'), + 3: int32('\r'), + 4: int32(11), + 5: int32(12), + 6: int32(0x0085), + 7: int32(0x2000), + 8: int32(0x2001), + 9: int32(0x2002), + 10: int32(0x2003), + 11: int32(0x2004), + 12: int32(0x2005), + 13: int32(0x2006), + 14: int32(0x2008), + 15: int32(0x2009), + 16: int32(0x200a), + 17: int32(0x2028), + 18: int32(0x2029), + 19: int32(0x205f), + 20: int32(0x3000), +} + +func X__iswspace_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswspace(tls, c) +} + +func Xiswspace_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswspace_l(tls, c, l) +} + +func Xiswupper(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(Xtowlower(tls, wc) != wc) +} + +func X__iswupper_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswupper(tls, c) +} + +func Xiswupper_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswupper_l(tls, c, l) +} + +func Xiswxdigit(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(wc-Uint32FromUint8('0') < uint32(10) || wc|Uint32FromInt32(32)-Uint32FromUint8('a') < uint32(6)) +} + +func X__iswxdigit_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswxdigit(tls, c) +} + +func Xiswxdigit_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswxdigit_l(tls, c, l) +} + +func Xisxdigit(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(BoolInt32(Uint32FromInt32(c)-uint32('0') < uint32(10)) != 0 || Uint32FromInt32(c)|uint32(32)-uint32('a') < uint32(6)) +} + +func X__isxdigit_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xisxdigit(tls, c) +} + +func Xisxdigit_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__isxdigit_l(tls, c, l) +} + +// C documentation +// +// /* nonsense function that should NEVER be used! */ +func Xtoascii(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return c & int32(0x7f) +} + +func Xtolower(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + if BoolInt32(Uint32FromInt32(c)-uint32('A') < uint32(26)) != 0 { + return c | int32(32) + } + return c +} + +func X__tolower_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xtolower(tls, c) +} + +func Xtolower_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__tolower_l(tls, c, l) +} + +func Xtoupper(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + if BoolInt32(Uint32FromInt32(c)-uint32('a') < uint32(26)) != 0 { + return c & int32(0x5f) + } + return c +} + +func X__toupper_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xtoupper(tls, c) +} + +func Xtoupper_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__toupper_l(tls, c, l) +} + +var _tab1 = [2666]uint8{ + 0: uint8(7), + 1: uint8(8), + 2: uint8(9), + 3: uint8(10), + 4: uint8(11), + 5: uint8(12), + 6: uint8(6), + 7: uint8(6), + 8: uint8(6), + 9: uint8(6), + 10: uint8(6), + 11: uint8(6), + 12: uint8(6), + 13: uint8(6), + 14: uint8(6), + 15: uint8(6), + 16: uint8(13), + 17: uint8(6), + 18: uint8(6), + 19: uint8(14), + 20: uint8(6), + 21: uint8(6), + 22: uint8(6), + 23: uint8(6), + 24: uint8(6), + 25: uint8(6), + 26: uint8(6), + 27: uint8(6), + 28: uint8(15), + 29: uint8(16), + 30: uint8(17), + 31: uint8(18), + 32: uint8(6), + 33: uint8(19), + 34: uint8(6), + 35: uint8(6), + 36: uint8(6), + 37: uint8(6), + 38: uint8(6), + 39: uint8(6), + 40: uint8(6), + 41: uint8(6), + 42: uint8(6), + 43: uint8(6), + 44: uint8(20), + 45: uint8(21), + 46: uint8(6), + 47: uint8(6), + 48: uint8(6), + 49: uint8(6), + 50: uint8(6), + 51: uint8(6), + 52: uint8(6), + 53: uint8(6), + 54: uint8(6), + 55: uint8(6), + 56: uint8(6), + 57: uint8(6), + 58: uint8(6), + 59: uint8(6), + 60: uint8(6), + 61: uint8(6), + 62: uint8(6), + 63: uint8(6), + 64: uint8(6), + 65: uint8(6), + 66: uint8(6), + 67: uint8(6), + 68: uint8(6), + 69: uint8(6), + 70: uint8(6), + 71: uint8(6), + 72: uint8(6), + 73: uint8(6), + 74: uint8(6), + 75: uint8(6), + 76: uint8(6), + 77: uint8(6), + 78: uint8(6), + 79: uint8(6), + 80: uint8(6), + 81: uint8(6), + 82: uint8(6), + 83: uint8(6), + 84: uint8(6), + 85: uint8(6), + 86: uint8(6), + 87: uint8(6), + 88: uint8(6), + 89: uint8(6), + 90: uint8(6), + 91: uint8(6), + 92: uint8(6), + 93: uint8(6), + 94: uint8(6), + 95: uint8(6), + 96: uint8(6), + 97: uint8(6), + 98: uint8(6), + 99: uint8(6), + 100: uint8(6), + 101: uint8(6), + 102: uint8(6), + 103: uint8(6), + 104: uint8(6), + 105: uint8(6), + 106: uint8(6), + 107: uint8(6), + 108: uint8(6), + 109: uint8(6), + 110: uint8(6), + 111: uint8(6), + 112: uint8(6), + 113: uint8(6), + 114: uint8(6), + 115: uint8(6), + 116: uint8(6), + 117: uint8(6), + 118: uint8(6), + 119: uint8(6), + 120: uint8(6), + 121: uint8(6), + 122: uint8(6), + 123: uint8(6), + 124: uint8(6), + 125: uint8(6), + 126: uint8(6), + 127: uint8(6), + 128: uint8(6), + 129: uint8(6), + 130: uint8(6), + 131: uint8(6), + 132: uint8(6), + 133: uint8(6), + 134: uint8(6), + 135: uint8(6), + 136: uint8(6), + 137: uint8(6), + 138: uint8(6), + 139: uint8(6), + 140: uint8(6), + 141: uint8(6), + 142: uint8(6), + 143: uint8(6), + 144: uint8(6), + 145: uint8(6), + 146: uint8(6), + 147: uint8(6), + 148: uint8(6), + 149: uint8(6), + 150: uint8(6), + 151: uint8(6), + 152: uint8(6), + 153: uint8(6), + 154: uint8(6), + 155: uint8(6), + 156: uint8(6), + 157: uint8(6), + 158: uint8(6), + 159: uint8(6), + 160: uint8(6), + 161: uint8(6), + 162: uint8(6), + 163: uint8(6), + 164: uint8(6), + 165: uint8(6), + 166: uint8(22), + 167: uint8(23), + 168: uint8(6), + 169: uint8(6), + 170: uint8(6), + 171: uint8(24), + 172: uint8(6), + 173: uint8(6), + 174: uint8(6), + 175: uint8(6), + 176: uint8(6), + 177: uint8(6), + 178: uint8(6), + 179: uint8(6), + 180: uint8(6), + 181: uint8(6), + 182: uint8(6), + 183: uint8(6), + 184: uint8(6), + 185: uint8(6), + 186: uint8(6), + 187: uint8(6), + 188: uint8(6), + 189: uint8(6), + 190: uint8(6), + 191: uint8(6), + 192: uint8(6), + 193: uint8(6), + 194: uint8(6), + 195: uint8(6), + 196: uint8(6), + 197: uint8(6), + 198: uint8(6), + 199: uint8(6), + 200: uint8(6), + 201: uint8(6), + 202: uint8(6), + 203: uint8(6), + 204: uint8(6), + 205: uint8(6), + 206: uint8(6), + 207: uint8(6), + 208: uint8(6), + 209: uint8(6), + 210: uint8(6), + 211: uint8(6), + 212: uint8(6), + 213: uint8(6), + 214: uint8(6), + 215: uint8(6), + 216: uint8(6), + 217: uint8(6), + 218: uint8(6), + 219: uint8(6), + 220: uint8(6), + 221: uint8(6), + 222: uint8(6), + 223: uint8(6), + 224: uint8(6), + 225: uint8(6), + 226: uint8(6), + 227: uint8(6), + 228: uint8(6), + 229: uint8(6), + 230: uint8(6), + 231: uint8(6), + 232: uint8(6), + 233: uint8(6), + 234: uint8(6), + 235: uint8(6), + 236: uint8(6), + 237: uint8(6), + 238: uint8(6), + 239: uint8(6), + 240: uint8(6), + 241: uint8(6), + 242: uint8(6), + 243: uint8(6), + 244: uint8(6), + 245: uint8(6), + 246: uint8(6), + 247: uint8(6), + 248: uint8(6), + 249: uint8(6), + 250: uint8(6), + 251: uint8(6), + 252: uint8(6), + 253: uint8(6), + 254: uint8(6), + 255: uint8(25), + 256: uint8(6), + 257: uint8(6), + 258: uint8(6), + 259: uint8(6), + 260: uint8(26), + 261: uint8(6), + 262: uint8(6), + 263: uint8(6), + 264: uint8(6), + 265: uint8(6), + 266: uint8(6), + 267: uint8(6), + 268: uint8(27), + 269: uint8(6), + 270: uint8(6), + 271: uint8(6), + 272: uint8(6), + 273: uint8(6), + 274: uint8(6), + 275: uint8(6), + 276: uint8(6), + 277: uint8(6), + 278: uint8(6), + 279: uint8(6), + 280: uint8(28), + 281: uint8(6), + 282: uint8(6), + 283: uint8(6), + 284: uint8(6), + 285: uint8(6), + 286: uint8(6), + 287: uint8(6), + 288: uint8(6), + 289: uint8(6), + 290: uint8(6), + 291: uint8(6), + 292: uint8(6), + 293: uint8(6), + 294: uint8(6), + 295: uint8(6), + 296: uint8(6), + 297: uint8(6), + 298: uint8(6), + 299: uint8(6), + 300: uint8(6), + 301: uint8(6), + 302: uint8(6), + 303: uint8(6), + 304: uint8(6), + 305: uint8(6), + 306: uint8(6), + 307: uint8(6), + 308: uint8(6), + 309: uint8(6), + 310: uint8(6), + 311: uint8(6), + 312: uint8(6), + 313: uint8(6), + 314: uint8(6), + 315: uint8(6), + 316: uint8(6), + 317: uint8(6), + 318: uint8(6), + 319: uint8(6), + 320: uint8(6), + 321: uint8(6), + 322: uint8(6), + 323: uint8(6), + 324: uint8(6), + 325: uint8(6), + 326: uint8(6), + 327: uint8(6), + 328: uint8(6), + 329: uint8(6), + 330: uint8(6), + 331: uint8(6), + 332: uint8(6), + 333: uint8(6), + 334: uint8(6), + 335: uint8(6), + 336: uint8(6), + 337: uint8(6), + 338: uint8(6), + 339: uint8(6), + 340: uint8(6), + 341: uint8(6), + 342: uint8(6), + 343: uint8(6), + 344: uint8(6), + 345: uint8(6), + 346: uint8(6), + 347: uint8(6), + 348: uint8(6), + 349: uint8(6), + 350: uint8(6), + 351: uint8(6), + 352: uint8(6), + 353: uint8(6), + 354: uint8(6), + 355: uint8(6), + 356: uint8(6), + 357: uint8(6), + 358: uint8(6), + 359: uint8(6), + 360: uint8(6), + 361: uint8(6), + 362: uint8(6), + 363: uint8(6), + 364: uint8(6), + 365: uint8(6), + 366: uint8(29), + 367: uint8(6), + 368: uint8(6), + 369: uint8(6), + 370: uint8(6), + 371: uint8(6), + 372: uint8(6), + 373: uint8(6), + 374: uint8(6), + 375: uint8(6), + 376: uint8(6), + 377: uint8(6), + 378: uint8(6), + 379: uint8(6), + 380: uint8(6), + 381: uint8(6), + 382: uint8(6), + 383: uint8(6), + 384: uint8(6), + 385: uint8(6), + 386: uint8(6), + 387: uint8(6), + 388: uint8(6), + 389: uint8(6), + 390: uint8(6), + 391: uint8(6), + 392: uint8(6), + 393: uint8(6), + 394: uint8(6), + 395: uint8(6), + 396: uint8(6), + 397: uint8(6), + 398: uint8(6), + 399: uint8(6), + 400: uint8(6), + 401: uint8(6), + 402: uint8(6), + 403: uint8(6), + 404: uint8(6), + 405: uint8(6), + 406: uint8(6), + 407: uint8(6), + 408: uint8(6), + 409: uint8(6), + 410: uint8(6), + 411: uint8(6), + 412: uint8(6), + 413: uint8(6), + 414: uint8(6), + 415: uint8(6), + 416: uint8(6), + 417: uint8(6), + 418: uint8(6), + 419: uint8(6), + 420: uint8(6), + 421: uint8(6), + 422: uint8(6), + 423: uint8(6), + 424: uint8(6), + 425: uint8(6), + 426: uint8(6), + 427: uint8(6), + 428: uint8(6), + 429: uint8(6), + 430: uint8(6), + 431: uint8(6), + 432: uint8(6), + 433: uint8(6), + 434: uint8(6), + 435: uint8(6), + 436: uint8(6), + 437: uint8(6), + 438: uint8(6), + 439: uint8(6), + 440: uint8(6), + 441: uint8(6), + 442: uint8(6), + 443: uint8(6), + 444: uint8(6), + 445: uint8(6), + 446: uint8(6), + 447: uint8(6), + 448: uint8(6), + 449: uint8(6), + 450: uint8(6), + 451: uint8(6), + 452: uint8(6), + 453: uint8(6), + 454: uint8(6), + 455: uint8(6), + 456: uint8(6), + 457: uint8(6), + 458: uint8(6), + 459: uint8(6), + 460: uint8(6), + 461: uint8(6), + 462: uint8(6), + 463: uint8(6), + 464: uint8(6), + 465: uint8(6), + 466: uint8(6), + 467: uint8(6), + 468: uint8(6), + 469: uint8(6), + 470: uint8(6), + 471: uint8(6), + 472: uint8(6), + 473: uint8(6), + 474: uint8(6), + 475: uint8(6), + 476: uint8(6), + 477: uint8(6), + 478: uint8(6), + 479: uint8(6), + 480: uint8(6), + 481: uint8(6), + 482: uint8(6), + 483: uint8(6), + 484: uint8(6), + 485: uint8(6), + 486: uint8(6), + 487: uint8(6), + 488: uint8(6), + 489: uint8(30), + 490: uint8(6), + 491: uint8(6), + 492: uint8(6), + 493: uint8(6), + 494: uint8(6), + 495: uint8(6), + 496: uint8(6), + 497: uint8(6), + 498: uint8(6), + 499: uint8(6), + 500: uint8(6), + 501: uint8(6), + 502: uint8(6), + 503: uint8(6), + 504: uint8(6), + 505: uint8(6), + 506: uint8(6), + 507: uint8(6), + 508: uint8(6), + 509: uint8(6), + 510: uint8(6), + 511: uint8(6), + 623: uint8(36), + 624: uint8(43), + 625: uint8(43), + 626: uint8(43), + 627: uint8(43), + 628: uint8(43), + 629: uint8(43), + 630: uint8(43), + 631: uint8(43), + 632: uint8(1), + 634: uint8(84), + 635: uint8(86), + 636: uint8(86), + 637: uint8(86), + 638: uint8(86), + 639: uint8(86), + 640: uint8(86), + 641: uint8(86), + 642: uint8(86), + 662: uint8(24), + 666: uint8(43), + 667: uint8(43), + 668: uint8(43), + 669: uint8(43), + 670: uint8(43), + 671: uint8(43), + 672: uint8(43), + 673: uint8(7), + 674: uint8(43), + 675: uint8(43), + 676: uint8(91), + 677: uint8(86), + 678: uint8(86), + 679: uint8(86), + 680: uint8(86), + 681: uint8(86), + 682: uint8(86), + 683: uint8(86), + 684: uint8(74), + 685: uint8(86), + 686: uint8(86), + 687: uint8(5), + 688: uint8(49), + 689: uint8(80), + 690: uint8(49), + 691: uint8(80), + 692: uint8(49), + 693: uint8(80), + 694: uint8(49), + 695: uint8(80), + 696: uint8(49), + 697: uint8(80), + 698: uint8(49), + 699: uint8(80), + 700: uint8(49), + 701: uint8(80), + 702: uint8(49), + 703: uint8(80), + 704: uint8(36), + 705: uint8(80), + 706: uint8(121), + 707: uint8(49), + 708: uint8(80), + 709: uint8(49), + 710: uint8(80), + 711: uint8(49), + 712: uint8(56), + 713: uint8(80), + 714: uint8(49), + 715: uint8(80), + 716: uint8(49), + 717: uint8(80), + 718: uint8(49), + 719: uint8(80), + 720: uint8(49), + 721: uint8(80), + 722: uint8(49), + 723: uint8(80), + 724: uint8(49), + 725: uint8(80), + 726: uint8(49), + 727: uint8(80), + 728: uint8(78), + 729: uint8(49), + 730: uint8(2), + 731: uint8(78), + 732: uint8(13), + 733: uint8(13), + 734: uint8(78), + 735: uint8(3), + 736: uint8(78), + 738: uint8(36), + 739: uint8(110), + 741: uint8(78), + 742: uint8(49), + 743: uint8(38), + 744: uint8(110), + 745: uint8(81), + 746: uint8(78), + 747: uint8(36), + 748: uint8(80), + 749: uint8(78), + 750: uint8(57), + 751: uint8(20), + 752: uint8(129), + 753: uint8(27), + 754: uint8(29), + 755: uint8(29), + 756: uint8(83), + 757: uint8(49), + 758: uint8(80), + 759: uint8(49), + 760: uint8(80), + 761: uint8(13), + 762: uint8(49), + 763: uint8(80), + 764: uint8(49), + 765: uint8(80), + 766: uint8(49), + 767: uint8(80), + 768: uint8(27), + 769: uint8(83), + 770: uint8(36), + 771: uint8(80), + 772: uint8(49), + 773: uint8(2), + 774: uint8(92), + 775: uint8(123), + 776: uint8(92), + 777: uint8(123), + 778: uint8(92), + 779: uint8(123), + 780: uint8(92), + 781: uint8(123), + 782: uint8(92), + 783: uint8(123), + 784: uint8(20), + 785: uint8(121), + 786: uint8(92), + 787: uint8(123), + 788: uint8(92), + 789: uint8(123), + 790: uint8(92), + 791: uint8(45), + 792: uint8(43), + 793: uint8(73), + 794: uint8(3), + 795: uint8(72), + 796: uint8(3), + 797: uint8(120), + 798: uint8(92), + 799: uint8(123), + 800: uint8(20), + 802: uint8(150), + 803: uint8(10), + 804: uint8(1), + 805: uint8(43), + 806: uint8(40), + 807: uint8(6), + 808: uint8(6), + 810: uint8(42), + 811: uint8(6), + 812: uint8(42), + 813: uint8(42), + 814: uint8(43), + 815: uint8(7), + 816: uint8(187), + 817: uint8(181), + 818: uint8(43), + 819: uint8(30), + 821: uint8(43), + 822: uint8(7), + 823: uint8(43), + 824: uint8(43), + 825: uint8(43), + 826: uint8(1), + 827: uint8(43), + 828: uint8(43), + 829: uint8(43), + 830: uint8(43), + 831: uint8(43), + 832: uint8(43), + 833: uint8(43), + 834: uint8(43), + 835: uint8(43), + 836: uint8(43), + 837: uint8(43), + 838: uint8(43), + 839: uint8(43), + 840: uint8(43), + 841: uint8(43), + 842: uint8(43), + 843: uint8(43), + 844: uint8(43), + 845: uint8(43), + 846: uint8(43), + 847: uint8(43), + 848: uint8(43), + 849: uint8(43), + 850: uint8(43), + 851: uint8(43), + 852: uint8(43), + 853: uint8(43), + 854: uint8(43), + 855: uint8(43), + 856: uint8(43), + 857: uint8(43), + 858: uint8(43), + 859: uint8(1), + 860: uint8(43), + 861: uint8(43), + 862: uint8(43), + 863: uint8(43), + 864: uint8(43), + 865: uint8(43), + 866: uint8(43), + 867: uint8(43), + 868: uint8(43), + 869: uint8(43), + 870: uint8(43), + 871: uint8(43), + 872: uint8(43), + 873: uint8(43), + 874: uint8(43), + 875: uint8(43), + 876: uint8(43), + 877: uint8(43), + 878: uint8(43), + 879: uint8(43), + 880: uint8(43), + 881: uint8(43), + 882: uint8(43), + 883: uint8(42), + 884: uint8(43), + 885: uint8(43), + 886: uint8(43), + 887: uint8(43), + 888: uint8(43), + 889: uint8(43), + 890: uint8(43), + 891: uint8(43), + 892: uint8(43), + 893: uint8(43), + 894: uint8(43), + 895: uint8(43), + 896: uint8(43), + 897: uint8(205), + 898: uint8(70), + 899: uint8(205), + 900: uint8(43), + 902: uint8(37), + 903: uint8(43), + 904: uint8(7), + 905: uint8(1), + 906: uint8(6), + 907: uint8(1), + 908: uint8(85), + 909: uint8(86), + 910: uint8(86), + 911: uint8(86), + 912: uint8(86), + 913: uint8(86), + 914: uint8(85), + 915: uint8(86), + 916: uint8(86), + 917: uint8(2), + 918: uint8(36), + 919: uint8(129), + 920: uint8(129), + 921: uint8(129), + 922: uint8(129), + 923: uint8(129), + 924: uint8(21), + 925: uint8(129), + 926: uint8(129), + 927: uint8(129), + 930: uint8(43), + 932: uint8(178), + 933: uint8(209), + 934: uint8(178), + 935: uint8(209), + 936: uint8(178), + 937: uint8(209), + 938: uint8(178), + 939: uint8(209), + 942: uint8(205), + 943: uint8(204), + 944: uint8(1), + 946: uint8(215), + 947: uint8(215), + 948: uint8(215), + 949: uint8(215), + 950: uint8(215), + 951: uint8(131), + 952: uint8(129), + 953: uint8(129), + 954: uint8(129), + 955: uint8(129), + 956: uint8(129), + 957: uint8(129), + 958: uint8(129), + 959: uint8(129), + 960: uint8(129), + 961: uint8(129), + 962: uint8(172), + 963: uint8(172), + 964: uint8(172), + 965: uint8(172), + 966: uint8(172), + 967: uint8(172), + 968: uint8(172), + 969: uint8(172), + 970: uint8(172), + 971: uint8(172), + 972: uint8(28), + 978: uint8(49), + 979: uint8(80), + 980: uint8(49), + 981: uint8(80), + 982: uint8(49), + 983: uint8(80), + 984: uint8(49), + 985: uint8(80), + 986: uint8(49), + 987: uint8(80), + 988: uint8(49), + 989: uint8(2), + 992: uint8(49), + 993: uint8(80), + 994: uint8(49), + 995: uint8(80), + 996: uint8(49), + 997: uint8(80), + 998: uint8(49), + 999: uint8(80), + 1000: uint8(49), + 1001: uint8(80), + 1002: uint8(49), + 1003: uint8(80), + 1004: uint8(49), + 1005: uint8(80), + 1006: uint8(49), + 1007: uint8(80), + 1008: uint8(49), + 1009: uint8(80), + 1010: uint8(78), + 1011: uint8(49), + 1012: uint8(80), + 1013: uint8(49), + 1014: uint8(80), + 1015: uint8(78), + 1016: uint8(49), + 1017: uint8(80), + 1018: uint8(49), + 1019: uint8(80), + 1020: uint8(49), + 1021: uint8(80), + 1022: uint8(49), + 1023: uint8(80), + 1024: uint8(49), + 1025: uint8(80), + 1026: uint8(49), + 1027: uint8(80), + 1028: uint8(49), + 1029: uint8(80), + 1030: uint8(49), + 1031: uint8(2), + 1032: uint8(135), + 1033: uint8(166), + 1034: uint8(135), + 1035: uint8(166), + 1036: uint8(135), + 1037: uint8(166), + 1038: uint8(135), + 1039: uint8(166), + 1040: uint8(135), + 1041: uint8(166), + 1042: uint8(135), + 1043: uint8(166), + 1044: uint8(135), + 1045: uint8(166), + 1046: uint8(135), + 1047: uint8(166), + 1048: uint8(42), + 1049: uint8(43), + 1050: uint8(43), + 1051: uint8(43), + 1052: uint8(43), + 1053: uint8(43), + 1054: uint8(43), + 1055: uint8(43), + 1056: uint8(43), + 1057: uint8(43), + 1058: uint8(43), + 1059: uint8(43), + 1060: uint8(43), + 1064: uint8(84), + 1065: uint8(86), + 1066: uint8(86), + 1067: uint8(86), + 1068: uint8(86), + 1069: uint8(86), + 1070: uint8(86), + 1071: uint8(86), + 1072: uint8(86), + 1073: uint8(86), + 1074: uint8(86), + 1075: uint8(86), + 1076: uint8(86), + 1171: uint8(84), + 1172: uint8(86), + 1173: uint8(86), + 1174: uint8(86), + 1175: uint8(86), + 1176: uint8(86), + 1177: uint8(86), + 1178: uint8(86), + 1179: uint8(86), + 1180: uint8(86), + 1181: uint8(86), + 1182: uint8(86), + 1183: uint8(86), + 1184: uint8(12), + 1186: uint8(12), + 1187: uint8(42), + 1188: uint8(43), + 1189: uint8(43), + 1190: uint8(43), + 1191: uint8(43), + 1192: uint8(43), + 1193: uint8(43), + 1194: uint8(43), + 1195: uint8(43), + 1196: uint8(43), + 1197: uint8(43), + 1198: uint8(43), + 1199: uint8(43), + 1200: uint8(43), + 1201: uint8(7), + 1202: uint8(42), + 1203: uint8(1), + 1257: uint8(42), + 1258: uint8(43), + 1259: uint8(43), + 1260: uint8(43), + 1261: uint8(43), + 1262: uint8(43), + 1263: uint8(43), + 1264: uint8(43), + 1265: uint8(43), + 1266: uint8(43), + 1267: uint8(43), + 1268: uint8(43), + 1269: uint8(43), + 1270: uint8(43), + 1271: uint8(43), + 1272: uint8(43), + 1273: uint8(43), + 1274: uint8(43), + 1275: uint8(43), + 1276: uint8(43), + 1277: uint8(43), + 1278: uint8(43), + 1279: uint8(43), + 1280: uint8(43), + 1281: uint8(43), + 1282: uint8(43), + 1283: uint8(43), + 1284: uint8(86), + 1285: uint8(86), + 1286: uint8(108), + 1287: uint8(129), + 1288: uint8(21), + 1290: uint8(43), + 1291: uint8(43), + 1292: uint8(43), + 1293: uint8(43), + 1294: uint8(43), + 1295: uint8(43), + 1296: uint8(43), + 1297: uint8(43), + 1298: uint8(43), + 1299: uint8(43), + 1300: uint8(43), + 1301: uint8(43), + 1302: uint8(43), + 1303: uint8(43), + 1304: uint8(43), + 1305: uint8(43), + 1306: uint8(43), + 1307: uint8(43), + 1308: uint8(43), + 1309: uint8(43), + 1310: uint8(43), + 1311: uint8(43), + 1312: uint8(43), + 1313: uint8(43), + 1314: uint8(43), + 1315: uint8(43), + 1316: uint8(43), + 1317: uint8(43), + 1318: uint8(43), + 1319: uint8(43), + 1320: uint8(43), + 1321: uint8(43), + 1322: uint8(43), + 1323: uint8(43), + 1324: uint8(43), + 1325: uint8(43), + 1326: uint8(43), + 1327: uint8(43), + 1328: uint8(43), + 1329: uint8(43), + 1330: uint8(43), + 1331: uint8(43), + 1332: uint8(7), + 1333: uint8(108), + 1334: uint8(3), + 1335: uint8(65), + 1336: uint8(43), + 1337: uint8(43), + 1338: uint8(86), + 1339: uint8(86), + 1340: uint8(86), + 1341: uint8(86), + 1342: uint8(86), + 1343: uint8(86), + 1344: uint8(86), + 1345: uint8(86), + 1346: uint8(86), + 1347: uint8(86), + 1348: uint8(86), + 1349: uint8(86), + 1350: uint8(86), + 1351: uint8(86), + 1352: uint8(44), + 1353: uint8(86), + 1354: uint8(43), + 1355: uint8(43), + 1356: uint8(43), + 1357: uint8(43), + 1358: uint8(43), + 1359: uint8(43), + 1360: uint8(43), + 1361: uint8(43), + 1362: uint8(43), + 1363: uint8(43), + 1364: uint8(43), + 1365: uint8(43), + 1366: uint8(43), + 1367: uint8(43), + 1368: uint8(43), + 1369: uint8(43), + 1370: uint8(43), + 1371: uint8(43), + 1372: uint8(43), + 1373: uint8(43), + 1374: uint8(43), + 1375: uint8(1), + 1416: uint8(12), + 1417: uint8(108), + 1423: uint8(6), + 1462: uint8(6), + 1463: uint8(37), + 1464: uint8(6), + 1465: uint8(37), + 1466: uint8(6), + 1467: uint8(37), + 1468: uint8(6), + 1469: uint8(37), + 1470: uint8(6), + 1471: uint8(37), + 1472: uint8(6), + 1473: uint8(37), + 1474: uint8(6), + 1475: uint8(37), + 1476: uint8(6), + 1477: uint8(37), + 1478: uint8(6), + 1479: uint8(37), + 1480: uint8(6), + 1481: uint8(37), + 1482: uint8(6), + 1483: uint8(37), + 1484: uint8(6), + 1485: uint8(37), + 1486: uint8(6), + 1487: uint8(37), + 1488: uint8(6), + 1489: uint8(37), + 1490: uint8(6), + 1491: uint8(37), + 1492: uint8(6), + 1493: uint8(37), + 1494: uint8(6), + 1495: uint8(37), + 1496: uint8(6), + 1497: uint8(37), + 1498: uint8(6), + 1499: uint8(37), + 1500: uint8(6), + 1501: uint8(37), + 1502: uint8(6), + 1503: uint8(37), + 1504: uint8(6), + 1505: uint8(37), + 1506: uint8(6), + 1507: uint8(37), + 1508: uint8(6), + 1509: uint8(37), + 1510: uint8(6), + 1511: uint8(37), + 1512: uint8(86), + 1513: uint8(122), + 1514: uint8(158), + 1515: uint8(38), + 1516: uint8(6), + 1517: uint8(37), + 1518: uint8(6), + 1519: uint8(37), + 1520: uint8(6), + 1521: uint8(37), + 1522: uint8(6), + 1523: uint8(37), + 1524: uint8(6), + 1525: uint8(37), + 1526: uint8(6), + 1527: uint8(37), + 1528: uint8(6), + 1529: uint8(37), + 1530: uint8(6), + 1531: uint8(37), + 1532: uint8(6), + 1533: uint8(37), + 1534: uint8(6), + 1535: uint8(37), + 1536: uint8(6), + 1537: uint8(37), + 1538: uint8(6), + 1539: uint8(37), + 1540: uint8(6), + 1541: uint8(37), + 1542: uint8(6), + 1543: uint8(37), + 1544: uint8(6), + 1545: uint8(37), + 1546: uint8(6), + 1547: uint8(1), + 1548: uint8(43), + 1549: uint8(43), + 1550: uint8(79), + 1551: uint8(86), + 1552: uint8(86), + 1553: uint8(44), + 1554: uint8(43), + 1555: uint8(127), + 1556: uint8(86), + 1557: uint8(86), + 1558: uint8(57), + 1559: uint8(43), + 1560: uint8(43), + 1561: uint8(85), + 1562: uint8(86), + 1563: uint8(86), + 1564: uint8(43), + 1565: uint8(43), + 1566: uint8(79), + 1567: uint8(86), + 1568: uint8(86), + 1569: uint8(44), + 1570: uint8(43), + 1571: uint8(127), + 1572: uint8(86), + 1573: uint8(86), + 1574: uint8(129), + 1575: uint8(55), + 1576: uint8(117), + 1577: uint8(91), + 1578: uint8(123), + 1579: uint8(92), + 1580: uint8(43), + 1581: uint8(43), + 1582: uint8(79), + 1583: uint8(86), + 1584: uint8(86), + 1585: uint8(2), + 1586: uint8(172), + 1587: uint8(4), + 1590: uint8(57), + 1591: uint8(43), + 1592: uint8(43), + 1593: uint8(85), + 1594: uint8(86), + 1595: uint8(86), + 1596: uint8(43), + 1597: uint8(43), + 1598: uint8(79), + 1599: uint8(86), + 1600: uint8(86), + 1601: uint8(44), + 1602: uint8(43), + 1603: uint8(43), + 1604: uint8(86), + 1605: uint8(86), + 1606: uint8(50), + 1607: uint8(19), + 1608: uint8(129), + 1609: uint8(87), + 1611: uint8(111), + 1612: uint8(129), + 1613: uint8(126), + 1614: uint8(201), + 1615: uint8(215), + 1616: uint8(126), + 1617: uint8(45), + 1618: uint8(129), + 1619: uint8(129), + 1620: uint8(14), + 1621: uint8(126), + 1622: uint8(57), + 1623: uint8(127), + 1624: uint8(111), + 1625: uint8(87), + 1627: uint8(129), + 1628: uint8(129), + 1629: uint8(126), + 1630: uint8(21), + 1632: uint8(126), + 1633: uint8(3), + 1634: uint8(43), + 1635: uint8(43), + 1636: uint8(43), + 1637: uint8(43), + 1638: uint8(43), + 1639: uint8(43), + 1640: uint8(43), + 1641: uint8(43), + 1642: uint8(43), + 1643: uint8(43), + 1644: uint8(43), + 1645: uint8(43), + 1646: uint8(7), + 1647: uint8(43), + 1648: uint8(36), + 1649: uint8(43), + 1650: uint8(151), + 1651: uint8(43), + 1652: uint8(43), + 1653: uint8(43), + 1654: uint8(43), + 1655: uint8(43), + 1656: uint8(43), + 1657: uint8(43), + 1658: uint8(43), + 1659: uint8(43), + 1660: uint8(42), + 1661: uint8(43), + 1662: uint8(43), + 1663: uint8(43), + 1664: uint8(43), + 1665: uint8(43), + 1666: uint8(86), + 1667: uint8(86), + 1668: uint8(86), + 1669: uint8(86), + 1670: uint8(86), + 1671: uint8(128), + 1672: uint8(129), + 1673: uint8(129), + 1674: uint8(129), + 1675: uint8(129), + 1676: uint8(57), + 1677: uint8(187), + 1678: uint8(42), + 1679: uint8(43), + 1680: uint8(43), + 1681: uint8(43), + 1682: uint8(43), + 1683: uint8(43), + 1684: uint8(43), + 1685: uint8(43), + 1686: uint8(43), + 1687: uint8(43), + 1688: uint8(43), + 1689: uint8(43), + 1690: uint8(43), + 1691: uint8(43), + 1692: uint8(43), + 1693: uint8(43), + 1694: uint8(43), + 1695: uint8(43), + 1696: uint8(43), + 1697: uint8(43), + 1698: uint8(43), + 1699: uint8(43), + 1700: uint8(43), + 1701: uint8(43), + 1702: uint8(43), + 1703: uint8(43), + 1704: uint8(43), + 1705: uint8(43), + 1706: uint8(43), + 1707: uint8(43), + 1708: uint8(43), + 1709: uint8(43), + 1710: uint8(43), + 1711: uint8(43), + 1712: uint8(43), + 1713: uint8(43), + 1714: uint8(43), + 1715: uint8(43), + 1716: uint8(43), + 1717: uint8(43), + 1718: uint8(43), + 1719: uint8(1), + 1720: uint8(129), + 1721: uint8(129), + 1722: uint8(129), + 1723: uint8(129), + 1724: uint8(129), + 1725: uint8(129), + 1726: uint8(129), + 1727: uint8(129), + 1728: uint8(129), + 1729: uint8(129), + 1730: uint8(129), + 1731: uint8(129), + 1732: uint8(129), + 1733: uint8(129), + 1734: uint8(129), + 1735: uint8(201), + 1736: uint8(172), + 1737: uint8(172), + 1738: uint8(172), + 1739: uint8(172), + 1740: uint8(172), + 1741: uint8(172), + 1742: uint8(172), + 1743: uint8(172), + 1744: uint8(172), + 1745: uint8(172), + 1746: uint8(172), + 1747: uint8(172), + 1748: uint8(172), + 1749: uint8(172), + 1750: uint8(172), + 1751: uint8(208), + 1752: uint8(13), + 1754: uint8(78), + 1755: uint8(49), + 1756: uint8(2), + 1757: uint8(180), + 1758: uint8(193), + 1759: uint8(193), + 1760: uint8(215), + 1761: uint8(215), + 1762: uint8(36), + 1763: uint8(80), + 1764: uint8(49), + 1765: uint8(80), + 1766: uint8(49), + 1767: uint8(80), + 1768: uint8(49), + 1769: uint8(80), + 1770: uint8(49), + 1771: uint8(80), + 1772: uint8(49), + 1773: uint8(80), + 1774: uint8(49), + 1775: uint8(80), + 1776: uint8(49), + 1777: uint8(80), + 1778: uint8(49), + 1779: uint8(80), + 1780: uint8(49), + 1781: uint8(80), + 1782: uint8(49), + 1783: uint8(80), + 1784: uint8(49), + 1785: uint8(80), + 1786: uint8(49), + 1787: uint8(80), + 1788: uint8(49), + 1789: uint8(80), + 1790: uint8(49), + 1791: uint8(80), + 1792: uint8(49), + 1793: uint8(80), + 1794: uint8(49), + 1795: uint8(80), + 1796: uint8(215), + 1797: uint8(215), + 1798: uint8(83), + 1799: uint8(193), + 1800: uint8(71), + 1801: uint8(212), + 1802: uint8(215), + 1803: uint8(215), + 1804: uint8(215), + 1805: uint8(5), + 1806: uint8(43), + 1807: uint8(43), + 1808: uint8(43), + 1809: uint8(43), + 1810: uint8(43), + 1811: uint8(43), + 1812: uint8(43), + 1813: uint8(43), + 1814: uint8(43), + 1815: uint8(43), + 1816: uint8(43), + 1817: uint8(43), + 1818: uint8(7), + 1819: uint8(1), + 1821: uint8(1), + 1913: uint8(78), + 1914: uint8(49), + 1915: uint8(80), + 1916: uint8(49), + 1917: uint8(80), + 1918: uint8(49), + 1919: uint8(80), + 1920: uint8(49), + 1921: uint8(80), + 1922: uint8(49), + 1923: uint8(80), + 1924: uint8(49), + 1925: uint8(80), + 1926: uint8(49), + 1927: uint8(80), + 1928: uint8(13), + 1934: uint8(36), + 1935: uint8(80), + 1936: uint8(49), + 1937: uint8(80), + 1938: uint8(49), + 1939: uint8(80), + 1940: uint8(49), + 1941: uint8(80), + 1942: uint8(49), + 1943: uint8(80), + 1978: uint8(43), + 1979: uint8(43), + 1980: uint8(43), + 1981: uint8(43), + 1982: uint8(43), + 1983: uint8(43), + 1984: uint8(43), + 1985: uint8(43), + 1986: uint8(43), + 1987: uint8(43), + 1988: uint8(43), + 1989: uint8(121), + 1990: uint8(92), + 1991: uint8(123), + 1992: uint8(92), + 1993: uint8(123), + 1994: uint8(79), + 1995: uint8(123), + 1996: uint8(92), + 1997: uint8(123), + 1998: uint8(92), + 1999: uint8(123), + 2000: uint8(92), + 2001: uint8(123), + 2002: uint8(92), + 2003: uint8(123), + 2004: uint8(92), + 2005: uint8(123), + 2006: uint8(92), + 2007: uint8(123), + 2008: uint8(92), + 2009: uint8(123), + 2010: uint8(92), + 2011: uint8(123), + 2012: uint8(92), + 2013: uint8(123), + 2014: uint8(92), + 2015: uint8(45), + 2016: uint8(43), + 2017: uint8(43), + 2018: uint8(121), + 2019: uint8(20), + 2020: uint8(92), + 2021: uint8(123), + 2022: uint8(92), + 2023: uint8(45), + 2024: uint8(121), + 2025: uint8(42), + 2026: uint8(92), + 2027: uint8(39), + 2028: uint8(92), + 2029: uint8(123), + 2030: uint8(92), + 2031: uint8(123), + 2032: uint8(92), + 2033: uint8(123), + 2034: uint8(164), + 2036: uint8(10), + 2037: uint8(180), + 2038: uint8(92), + 2039: uint8(123), + 2040: uint8(92), + 2041: uint8(123), + 2042: uint8(79), + 2043: uint8(3), + 2044: uint8(42), + 2045: uint8(43), + 2046: uint8(43), + 2047: uint8(43), + 2048: uint8(43), + 2049: uint8(43), + 2050: uint8(43), + 2051: uint8(43), + 2052: uint8(43), + 2053: uint8(43), + 2054: uint8(43), + 2055: uint8(43), + 2056: uint8(43), + 2057: uint8(43), + 2058: uint8(43), + 2059: uint8(43), + 2060: uint8(43), + 2061: uint8(43), + 2062: uint8(43), + 2063: uint8(1), + 2091: uint8(72), + 2101: uint8(42), + 2102: uint8(43), + 2103: uint8(43), + 2104: uint8(43), + 2105: uint8(43), + 2106: uint8(43), + 2107: uint8(43), + 2108: uint8(43), + 2109: uint8(43), + 2110: uint8(43), + 2111: uint8(43), + 2112: uint8(43), + 2113: uint8(43), + 2114: uint8(43), + 2115: uint8(43), + 2116: uint8(43), + 2117: uint8(43), + 2118: uint8(43), + 2119: uint8(43), + 2120: uint8(43), + 2121: uint8(43), + 2122: uint8(43), + 2123: uint8(43), + 2124: uint8(43), + 2125: uint8(43), + 2126: uint8(43), + 2127: uint8(43), + 2161: uint8(43), + 2162: uint8(43), + 2163: uint8(43), + 2164: uint8(43), + 2165: uint8(43), + 2166: uint8(43), + 2167: uint8(43), + 2168: uint8(43), + 2169: uint8(7), + 2171: uint8(72), + 2172: uint8(86), + 2173: uint8(86), + 2174: uint8(86), + 2175: uint8(86), + 2176: uint8(86), + 2177: uint8(86), + 2178: uint8(86), + 2179: uint8(86), + 2180: uint8(2), + 2236: uint8(43), + 2237: uint8(43), + 2238: uint8(43), + 2239: uint8(43), + 2240: uint8(43), + 2241: uint8(43), + 2242: uint8(43), + 2243: uint8(43), + 2244: uint8(43), + 2245: uint8(43), + 2246: uint8(43), + 2247: uint8(43), + 2248: uint8(43), + 2249: uint8(85), + 2250: uint8(86), + 2251: uint8(86), + 2252: uint8(86), + 2253: uint8(86), + 2254: uint8(86), + 2255: uint8(86), + 2256: uint8(86), + 2257: uint8(86), + 2258: uint8(86), + 2259: uint8(86), + 2260: uint8(86), + 2261: uint8(86), + 2262: uint8(14), + 2294: uint8(36), + 2295: uint8(43), + 2296: uint8(43), + 2297: uint8(43), + 2298: uint8(43), + 2299: uint8(43), + 2300: uint8(43), + 2301: uint8(43), + 2302: uint8(43), + 2303: uint8(43), + 2304: uint8(43), + 2305: uint8(43), + 2306: uint8(7), + 2308: uint8(86), + 2309: uint8(86), + 2310: uint8(86), + 2311: uint8(86), + 2312: uint8(86), + 2313: uint8(86), + 2314: uint8(86), + 2315: uint8(86), + 2316: uint8(86), + 2317: uint8(86), + 2318: uint8(86), + 2319: uint8(86), + 2364: uint8(36), + 2365: uint8(43), + 2366: uint8(43), + 2367: uint8(43), + 2368: uint8(43), + 2369: uint8(43), + 2370: uint8(43), + 2371: uint8(43), + 2372: uint8(43), + 2373: uint8(43), + 2374: uint8(43), + 2375: uint8(43), + 2376: uint8(43), + 2377: uint8(43), + 2378: uint8(43), + 2379: uint8(43), + 2380: uint8(43), + 2381: uint8(7), + 2386: uint8(86), + 2387: uint8(86), + 2388: uint8(86), + 2389: uint8(86), + 2390: uint8(86), + 2391: uint8(86), + 2392: uint8(86), + 2393: uint8(86), + 2394: uint8(86), + 2395: uint8(86), + 2396: uint8(86), + 2397: uint8(86), + 2398: uint8(86), + 2399: uint8(86), + 2400: uint8(86), + 2401: uint8(86), + 2402: uint8(86), + 2461: uint8(42), + 2462: uint8(43), + 2463: uint8(43), + 2464: uint8(43), + 2465: uint8(43), + 2466: uint8(43), + 2467: uint8(43), + 2468: uint8(43), + 2469: uint8(43), + 2470: uint8(43), + 2471: uint8(43), + 2472: uint8(86), + 2473: uint8(86), + 2474: uint8(86), + 2475: uint8(86), + 2476: uint8(86), + 2477: uint8(86), + 2478: uint8(86), + 2479: uint8(86), + 2480: uint8(86), + 2481: uint8(86), + 2482: uint8(14), + 2515: uint8(42), + 2516: uint8(43), + 2517: uint8(43), + 2518: uint8(43), + 2519: uint8(43), + 2520: uint8(43), + 2521: uint8(43), + 2522: uint8(43), + 2523: uint8(43), + 2524: uint8(43), + 2525: uint8(43), + 2526: uint8(86), + 2527: uint8(86), + 2528: uint8(86), + 2529: uint8(86), + 2530: uint8(86), + 2531: uint8(86), + 2532: uint8(86), + 2533: uint8(86), + 2534: uint8(86), + 2535: uint8(86), + 2536: uint8(14), + 2580: uint8(43), + 2581: uint8(43), + 2582: uint8(43), + 2583: uint8(43), + 2584: uint8(43), + 2585: uint8(43), + 2586: uint8(43), + 2587: uint8(43), + 2588: uint8(43), + 2589: uint8(43), + 2590: uint8(43), + 2591: uint8(85), + 2592: uint8(86), + 2593: uint8(86), + 2594: uint8(86), + 2595: uint8(86), + 2596: uint8(86), + 2597: uint8(86), + 2598: uint8(86), + 2599: uint8(86), + 2600: uint8(86), + 2601: uint8(86), + 2602: uint8(14), +} +var _rules = [240]int32{ + 1: int32(0x2001), + 2: -int32(0x2000), + 3: int32(0x1dbf00), + 4: int32(0x2e700), + 5: int32(0x7900), + 6: int32(0x2402), + 7: int32(0x101), + 8: -int32(0x100), + 10: int32(0x201), + 11: -int32(0x200), + 12: -int32(0xc6ff), + 13: -int32(0xe800), + 14: -int32(0x78ff), + 15: -int32(0x12c00), + 16: int32(0xc300), + 17: int32(0xd201), + 18: int32(0xce01), + 19: int32(0xcd01), + 20: int32(0x4f01), + 21: int32(0xca01), + 22: int32(0xcb01), + 23: int32(0xcf01), + 24: int32(0x6100), + 25: int32(0xd301), + 26: int32(0xd101), + 27: int32(0xa300), + 28: int32(0xd501), + 29: int32(0x8200), + 30: int32(0xd601), + 31: int32(0xda01), + 32: int32(0xd901), + 33: int32(0xdb01), + 34: int32(0x3800), + 35: int32(0x3), + 36: -int32(0x4f00), + 37: -int32(0x60ff), + 38: -int32(0x37ff), + 39: int32(0x242802), + 41: int32(0x101), + 42: -int32(0x100), + 43: -int32(0xcd00), + 44: -int32(0xda00), + 45: -int32(0x81ff), + 46: int32(0x2a2b01), + 47: -int32(0xa2ff), + 48: int32(0x2a2801), + 49: int32(0x2a3f00), + 50: -int32(0xc2ff), + 51: int32(0x4501), + 52: int32(0x4701), + 53: int32(0x2a1f00), + 54: int32(0x2a1c00), + 55: int32(0x2a1e00), + 56: -int32(0xd200), + 57: -int32(0xce00), + 58: -int32(0xca00), + 59: -int32(0xcb00), + 60: int32(0xa54f00), + 61: int32(0xa54b00), + 62: -int32(0xcf00), + 63: int32(0xa52800), + 64: int32(0xa54400), + 65: -int32(0xd100), + 66: -int32(0xd300), + 67: int32(0x29f700), + 68: int32(0xa54100), + 69: int32(0x29fd00), + 70: -int32(0xd500), + 71: -int32(0xd600), + 72: int32(0x29e700), + 73: int32(0xa54300), + 74: int32(0xa52a00), + 75: -int32(0x4500), + 76: -int32(0xd900), + 77: -int32(0x4700), + 78: -int32(0xdb00), + 79: int32(0xa51500), + 80: int32(0xa51200), + 81: int32(0x4c2402), + 83: int32(0x2001), + 84: -int32(0x2000), + 85: int32(0x101), + 86: -int32(0x100), + 87: int32(0x5400), + 88: int32(0x7401), + 89: int32(0x2601), + 90: int32(0x2501), + 91: int32(0x4001), + 92: int32(0x3f01), + 93: -int32(0x2600), + 94: -int32(0x2500), + 95: -int32(0x1f00), + 96: -int32(0x4000), + 97: -int32(0x3f00), + 98: int32(0x801), + 99: -int32(0x3e00), + 100: -int32(0x3900), + 101: -int32(0x2f00), + 102: -int32(0x3600), + 103: -int32(0x800), + 104: -int32(0x5600), + 105: -int32(0x5000), + 106: int32(0x700), + 107: -int32(0x7400), + 108: -int32(0x3bff), + 109: -int32(0x6000), + 110: -int32(0x6ff), + 111: int32(0x701a02), + 112: int32(0x101), + 113: -int32(0x100), + 114: int32(0x2001), + 115: -int32(0x2000), + 116: int32(0x5001), + 117: int32(0xf01), + 118: -int32(0xf00), + 120: int32(0x3001), + 121: -int32(0x3000), + 122: int32(0x101), + 123: -int32(0x100), + 125: int32(0xbc000), + 126: int32(0x1c6001), + 128: int32(0x97d001), + 129: int32(0x801), + 130: -int32(0x800), + 131: int32(0x8a0502), + 133: -int32(0xbbfff), + 134: -int32(0x186200), + 135: int32(0x89c200), + 136: -int32(0x182500), + 137: -int32(0x186e00), + 138: -int32(0x186d00), + 139: -int32(0x186400), + 140: -int32(0x186300), + 141: -int32(0x185c00), + 143: int32(0x8a3800), + 144: int32(0x8a0400), + 145: int32(0xee600), + 146: int32(0x101), + 147: -int32(0x100), + 149: -int32(0x3b00), + 150: -int32(0x1dbeff), + 151: int32(0x8f1d02), + 152: int32(0x800), + 153: -int32(0x7ff), + 155: int32(0x5600), + 156: -int32(0x55ff), + 157: int32(0x4a00), + 158: int32(0x6400), + 159: int32(0x8000), + 160: int32(0x7000), + 161: int32(0x7e00), + 162: int32(0x900), + 163: -int32(0x49ff), + 164: -int32(0x8ff), + 165: -int32(0x1c2500), + 166: -int32(0x63ff), + 167: -int32(0x6fff), + 168: -int32(0x7fff), + 169: -int32(0x7dff), + 170: int32(0xac0502), + 172: int32(0x1001), + 173: -int32(0x1000), + 174: int32(0x1c01), + 175: int32(0x101), + 176: -int32(0x1d5cff), + 177: -int32(0x20beff), + 178: -int32(0x2045ff), + 179: -int32(0x1c00), + 180: int32(0xb10b02), + 181: int32(0x101), + 182: -int32(0x100), + 183: int32(0x3001), + 184: -int32(0x3000), + 186: -int32(0x29f6ff), + 187: -int32(0xee5ff), + 188: -int32(0x29e6ff), + 189: -int32(0x2a2b00), + 190: -int32(0x2a2800), + 191: -int32(0x2a1bff), + 192: -int32(0x29fcff), + 193: -int32(0x2a1eff), + 194: -int32(0x2a1dff), + 195: -int32(0x2a3eff), + 197: -int32(0x1c6000), + 199: int32(0x101), + 200: -int32(0x100), + 201: int32(0xbc0c02), + 203: int32(0x101), + 204: -int32(0x100), + 205: -int32(0xa543ff), + 206: int32(0x3a001), + 207: -int32(0x8a03ff), + 208: -int32(0xa527ff), + 209: int32(0x3000), + 210: -int32(0xa54eff), + 211: -int32(0xa54aff), + 212: -int32(0xa540ff), + 213: -int32(0xa511ff), + 214: -int32(0xa529ff), + 215: -int32(0xa514ff), + 216: -int32(0x2fff), + 217: -int32(0xa542ff), + 218: -int32(0x8a37ff), + 220: -int32(0x97d000), + 221: -int32(0x3a000), + 223: int32(0x2001), + 224: -int32(0x2000), + 226: int32(0x2801), + 227: -int32(0x2800), + 229: int32(0x4001), + 230: -int32(0x4000), + 232: int32(0x2001), + 233: -int32(0x2000), + 235: int32(0x2001), + 236: -int32(0x2000), + 238: int32(0x2201), + 239: -int32(0x2200), +} +var _rulebases = [512]uint8{ + 1: uint8(6), + 2: uint8(39), + 3: uint8(81), + 4: uint8(111), + 5: uint8(119), + 16: uint8(124), + 19: uint8(127), + 28: uint8(131), + 29: uint8(142), + 30: uint8(146), + 31: uint8(151), + 33: uint8(170), + 44: uint8(180), + 45: uint8(196), + 166: uint8(198), + 167: uint8(201), + 171: uint8(219), + 255: uint8(222), + 260: uint8(225), + 268: uint8(228), + 280: uint8(231), + 366: uint8(234), + 489: uint8(237), +} +var _exceptions = [200][2]uint8{ + 0: { + 0: uint8(48), + 1: uint8(12), + }, + 1: { + 0: uint8(49), + 1: uint8(13), + }, + 2: { + 0: uint8(120), + 1: uint8(14), + }, + 3: { + 0: uint8(127), + 1: uint8(15), + }, + 4: { + 0: uint8(128), + 1: uint8(16), + }, + 5: { + 0: uint8(129), + 1: uint8(17), + }, + 6: { + 0: uint8(134), + 1: uint8(18), + }, + 7: { + 0: uint8(137), + 1: uint8(19), + }, + 8: { + 0: uint8(138), + 1: uint8(19), + }, + 9: { + 0: uint8(142), + 1: uint8(20), + }, + 10: { + 0: uint8(143), + 1: uint8(21), + }, + 11: { + 0: uint8(144), + 1: uint8(22), + }, + 12: { + 0: uint8(147), + 1: uint8(19), + }, + 13: { + 0: uint8(148), + 1: uint8(23), + }, + 14: { + 0: uint8(149), + 1: uint8(24), + }, + 15: { + 0: uint8(150), + 1: uint8(25), + }, + 16: { + 0: uint8(151), + 1: uint8(26), + }, + 17: { + 0: uint8(154), + 1: uint8(27), + }, + 18: { + 0: uint8(156), + 1: uint8(25), + }, + 19: { + 0: uint8(157), + 1: uint8(28), + }, + 20: { + 0: uint8(158), + 1: uint8(29), + }, + 21: { + 0: uint8(159), + 1: uint8(30), + }, + 22: { + 0: uint8(166), + 1: uint8(31), + }, + 23: { + 0: uint8(169), + 1: uint8(31), + }, + 24: { + 0: uint8(174), + 1: uint8(31), + }, + 25: { + 0: uint8(177), + 1: uint8(32), + }, + 26: { + 0: uint8(178), + 1: uint8(32), + }, + 27: { + 0: uint8(183), + 1: uint8(33), + }, + 28: { + 0: uint8(191), + 1: uint8(34), + }, + 29: { + 0: uint8(197), + 1: uint8(35), + }, + 30: { + 0: uint8(200), + 1: uint8(35), + }, + 31: { + 0: uint8(203), + 1: uint8(35), + }, + 32: { + 0: uint8(221), + 1: uint8(36), + }, + 33: { + 0: uint8(242), + 1: uint8(35), + }, + 34: { + 0: uint8(246), + 1: uint8(37), + }, + 35: { + 0: uint8(247), + 1: uint8(38), + }, + 36: { + 0: uint8(32), + 1: uint8(45), + }, + 37: { + 0: uint8(58), + 1: uint8(46), + }, + 38: { + 0: uint8(61), + 1: uint8(47), + }, + 39: { + 0: uint8(62), + 1: uint8(48), + }, + 40: { + 0: uint8(63), + 1: uint8(49), + }, + 41: { + 0: uint8(64), + 1: uint8(49), + }, + 42: { + 0: uint8(67), + 1: uint8(50), + }, + 43: { + 0: uint8(68), + 1: uint8(51), + }, + 44: { + 0: uint8(69), + 1: uint8(52), + }, + 45: { + 0: uint8(80), + 1: uint8(53), + }, + 46: { + 0: uint8(81), + 1: uint8(54), + }, + 47: { + 0: uint8(82), + 1: uint8(55), + }, + 48: { + 0: uint8(83), + 1: uint8(56), + }, + 49: { + 0: uint8(84), + 1: uint8(57), + }, + 50: { + 0: uint8(89), + 1: uint8(58), + }, + 51: { + 0: uint8(91), + 1: uint8(59), + }, + 52: { + 0: uint8(92), + 1: uint8(60), + }, + 53: { + 0: uint8(97), + 1: uint8(61), + }, + 54: { + 0: uint8(99), + 1: uint8(62), + }, + 55: { + 0: uint8(101), + 1: uint8(63), + }, + 56: { + 0: uint8(102), + 1: uint8(64), + }, + 57: { + 0: uint8(104), + 1: uint8(65), + }, + 58: { + 0: uint8(105), + 1: uint8(66), + }, + 59: { + 0: uint8(106), + 1: uint8(64), + }, + 60: { + 0: uint8(107), + 1: uint8(67), + }, + 61: { + 0: uint8(108), + 1: uint8(68), + }, + 62: { + 0: uint8(111), + 1: uint8(66), + }, + 63: { + 0: uint8(113), + 1: uint8(69), + }, + 64: { + 0: uint8(114), + 1: uint8(70), + }, + 65: { + 0: uint8(117), + 1: uint8(71), + }, + 66: { + 0: uint8(125), + 1: uint8(72), + }, + 67: { + 0: uint8(130), + 1: uint8(73), + }, + 68: { + 0: uint8(135), + 1: uint8(74), + }, + 69: { + 0: uint8(137), + 1: uint8(75), + }, + 70: { + 0: uint8(138), + 1: uint8(76), + }, + 71: { + 0: uint8(139), + 1: uint8(76), + }, + 72: { + 0: uint8(140), + 1: uint8(77), + }, + 73: { + 0: uint8(146), + 1: uint8(78), + }, + 74: { + 0: uint8(157), + 1: uint8(79), + }, + 75: { + 0: uint8(158), + 1: uint8(80), + }, + 76: { + 0: uint8(69), + 1: uint8(87), + }, + 77: { + 0: uint8(123), + 1: uint8(29), + }, + 78: { + 0: uint8(124), + 1: uint8(29), + }, + 79: { + 0: uint8(125), + 1: uint8(29), + }, + 80: { + 0: uint8(127), + 1: uint8(88), + }, + 81: { + 0: uint8(134), + 1: uint8(89), + }, + 82: { + 0: uint8(136), + 1: uint8(90), + }, + 83: { + 0: uint8(137), + 1: uint8(90), + }, + 84: { + 0: uint8(138), + 1: uint8(90), + }, + 85: { + 0: uint8(140), + 1: uint8(91), + }, + 86: { + 0: uint8(142), + 1: uint8(92), + }, + 87: { + 0: uint8(143), + 1: uint8(92), + }, + 88: { + 0: uint8(172), + 1: uint8(93), + }, + 89: { + 0: uint8(173), + 1: uint8(94), + }, + 90: { + 0: uint8(174), + 1: uint8(94), + }, + 91: { + 0: uint8(175), + 1: uint8(94), + }, + 92: { + 0: uint8(194), + 1: uint8(95), + }, + 93: { + 0: uint8(204), + 1: uint8(96), + }, + 94: { + 0: uint8(205), + 1: uint8(97), + }, + 95: { + 0: uint8(206), + 1: uint8(97), + }, + 96: { + 0: uint8(207), + 1: uint8(98), + }, + 97: { + 0: uint8(208), + 1: uint8(99), + }, + 98: { + 0: uint8(209), + 1: uint8(100), + }, + 99: { + 0: uint8(213), + 1: uint8(101), + }, + 100: { + 0: uint8(214), + 1: uint8(102), + }, + 101: { + 0: uint8(215), + 1: uint8(103), + }, + 102: { + 0: uint8(240), + 1: uint8(104), + }, + 103: { + 0: uint8(241), + 1: uint8(105), + }, + 104: { + 0: uint8(242), + 1: uint8(106), + }, + 105: { + 0: uint8(243), + 1: uint8(107), + }, + 106: { + 0: uint8(244), + 1: uint8(108), + }, + 107: { + 0: uint8(245), + 1: uint8(109), + }, + 108: { + 0: uint8(249), + 1: uint8(110), + }, + 109: { + 0: uint8(253), + 1: uint8(45), + }, + 110: { + 0: uint8(254), + 1: uint8(45), + }, + 111: { + 0: uint8(255), + 1: uint8(45), + }, + 112: { + 0: uint8(80), + 1: uint8(105), + }, + 113: { + 0: uint8(81), + 1: uint8(105), + }, + 114: { + 0: uint8(82), + 1: uint8(105), + }, + 115: { + 0: uint8(83), + 1: uint8(105), + }, + 116: { + 0: uint8(84), + 1: uint8(105), + }, + 117: { + 0: uint8(85), + 1: uint8(105), + }, + 118: { + 0: uint8(86), + 1: uint8(105), + }, + 119: { + 0: uint8(87), + 1: uint8(105), + }, + 120: { + 0: uint8(88), + 1: uint8(105), + }, + 121: { + 0: uint8(89), + 1: uint8(105), + }, + 122: { + 0: uint8(90), + 1: uint8(105), + }, + 123: { + 0: uint8(91), + 1: uint8(105), + }, + 124: { + 0: uint8(92), + 1: uint8(105), + }, + 125: { + 0: uint8(93), + 1: uint8(105), + }, + 126: { + 0: uint8(94), + 1: uint8(105), + }, + 127: { + 0: uint8(95), + 1: uint8(105), + }, + 128: { + 0: uint8(130), + }, + 129: { + 0: uint8(131), + }, + 130: { + 0: uint8(132), + }, + 131: { + 0: uint8(133), + }, + 132: { + 0: uint8(134), + }, + 133: { + 0: uint8(135), + }, + 134: { + 0: uint8(136), + }, + 135: { + 0: uint8(137), + }, + 136: { + 0: uint8(192), + 1: uint8(117), + }, + 137: { + 0: uint8(207), + 1: uint8(118), + }, + 138: { + 0: uint8(128), + 1: uint8(137), + }, + 139: { + 0: uint8(129), + 1: uint8(138), + }, + 140: { + 0: uint8(130), + 1: uint8(139), + }, + 141: { + 0: uint8(133), + 1: uint8(140), + }, + 142: { + 0: uint8(134), + 1: uint8(141), + }, + 143: { + 0: uint8(112), + 1: uint8(157), + }, + 144: { + 0: uint8(113), + 1: uint8(157), + }, + 145: { + 0: uint8(118), + 1: uint8(158), + }, + 146: { + 0: uint8(119), + 1: uint8(158), + }, + 147: { + 0: uint8(120), + 1: uint8(159), + }, + 148: { + 0: uint8(121), + 1: uint8(159), + }, + 149: { + 0: uint8(122), + 1: uint8(160), + }, + 150: { + 0: uint8(123), + 1: uint8(160), + }, + 151: { + 0: uint8(124), + 1: uint8(161), + }, + 152: { + 0: uint8(125), + 1: uint8(161), + }, + 153: { + 0: uint8(179), + 1: uint8(162), + }, + 154: { + 0: uint8(186), + 1: uint8(163), + }, + 155: { + 0: uint8(187), + 1: uint8(163), + }, + 156: { + 0: uint8(188), + 1: uint8(164), + }, + 157: { + 0: uint8(190), + 1: uint8(165), + }, + 158: { + 0: uint8(195), + 1: uint8(162), + }, + 159: { + 0: uint8(204), + 1: uint8(164), + }, + 160: { + 0: uint8(218), + 1: uint8(166), + }, + 161: { + 0: uint8(219), + 1: uint8(166), + }, + 162: { + 0: uint8(229), + 1: uint8(106), + }, + 163: { + 0: uint8(234), + 1: uint8(167), + }, + 164: { + 0: uint8(235), + 1: uint8(167), + }, + 165: { + 0: uint8(236), + 1: uint8(110), + }, + 166: { + 0: uint8(243), + 1: uint8(162), + }, + 167: { + 0: uint8(248), + 1: uint8(168), + }, + 168: { + 0: uint8(249), + 1: uint8(168), + }, + 169: { + 0: uint8(250), + 1: uint8(169), + }, + 170: { + 0: uint8(251), + 1: uint8(169), + }, + 171: { + 0: uint8(252), + 1: uint8(164), + }, + 172: { + 0: uint8(38), + 1: uint8(176), + }, + 173: { + 0: uint8(42), + 1: uint8(177), + }, + 174: { + 0: uint8(43), + 1: uint8(178), + }, + 175: { + 0: uint8(78), + 1: uint8(179), + }, + 176: { + 0: uint8(132), + 1: uint8(8), + }, + 177: { + 0: uint8(98), + 1: uint8(186), + }, + 178: { + 0: uint8(99), + 1: uint8(187), + }, + 179: { + 0: uint8(100), + 1: uint8(188), + }, + 180: { + 0: uint8(101), + 1: uint8(189), + }, + 181: { + 0: uint8(102), + 1: uint8(190), + }, + 182: { + 0: uint8(109), + 1: uint8(191), + }, + 183: { + 0: uint8(110), + 1: uint8(192), + }, + 184: { + 0: uint8(111), + 1: uint8(193), + }, + 185: { + 0: uint8(112), + 1: uint8(194), + }, + 186: { + 0: uint8(126), + 1: uint8(195), + }, + 187: { + 0: uint8(127), + 1: uint8(195), + }, + 188: { + 0: uint8(125), + 1: uint8(207), + }, + 189: { + 0: uint8(141), + 1: uint8(208), + }, + 190: { + 0: uint8(148), + 1: uint8(209), + }, + 191: { + 0: uint8(171), + 1: uint8(210), + }, + 192: { + 0: uint8(172), + 1: uint8(211), + }, + 193: { + 0: uint8(173), + 1: uint8(212), + }, + 194: { + 0: uint8(176), + 1: uint8(213), + }, + 195: { + 0: uint8(177), + 1: uint8(214), + }, + 196: { + 0: uint8(178), + 1: uint8(215), + }, + 197: { + 0: uint8(196), + 1: uint8(216), + }, + 198: { + 0: uint8(197), + 1: uint8(217), + }, + 199: { + 0: uint8(198), + 1: uint8(218), + }, +} + +func _casemap(tls *TLS, c uint32, dir int32) (r1 int32) { + var b, rt, try, v, x, xb, xn, y uint32 + var c0, r, rd, v1 int32 + _, _, _, _, _, _, _, _, _, _, _, _ = b, c0, r, rd, rt, try, v, x, xb, xn, y, v1 + c0 = Int32FromUint32(c) + if c >= uint32(0x20000) { + return Int32FromUint32(c) + } + b = c >> int32(8) + c = c & uint32(255) + x = c / uint32(3) + y = c % uint32(3) + /* lookup entry in two-level base-6 table */ + v = uint32(_tab1[Uint32FromInt32(Int32FromUint8(_tab1[b])*int32(86))+x]) + v = v * Uint32FromInt32(_mt[y]) >> int32(11) % uint32(6) + /* use the bit vector out of the tables as an index into + * a block-specific set of rules and decode the rule into + * a type and a case-mapping delta. */ + r = _rules[uint32(_rulebases[b])+v] + rt = Uint32FromInt32(r & int32(255)) + rd = r >> int32(8) + /* rules 0/1 are simple lower/upper case with a delta. + * apply according to desired mapping direction. */ + if rt < uint32(2) { + return Int32FromUint32(Uint32FromInt32(c0) + Uint32FromInt32(rd)&-(rt^Uint32FromInt32(dir))) + } + /* binary search. endpoints of the binary search for + * this block are stored in the rule delta field. */ + xn = Uint32FromInt32(rd & int32(0xff)) + xb = Uint32FromInt32(rd) >> int32(8) + for xn != 0 { + try = uint32(**(**uint8)(__ccgo_up(uintptr(unsafe.Pointer(&_exceptions)) + uintptr(xb+xn/uint32(2))*2))) + if try == c { + r = _rules[**(**uint8)(__ccgo_up(uintptr(unsafe.Pointer(&_exceptions)) + uintptr(xb+xn/uint32(2))*2 + 1))] + rt = Uint32FromInt32(r & int32(255)) + rd = r >> int32(8) + if rt < uint32(2) { + return Int32FromUint32(Uint32FromInt32(c0) + Uint32FromInt32(rd)&-(rt^Uint32FromInt32(dir))) + } + /* Hard-coded for the four exceptional titlecase */ + if dir != 0 { + v1 = -int32(1) + } else { + v1 = int32(1) + } + return c0 + v1 + } else { + if try > c { + xn = xn / uint32(2) + } else { + xb = xb + xn/uint32(2) + xn = xn - xn/uint32(2) + } + } + } + return c0 +} + +var _mt = [3]int32{ + 0: int32(2048), + 1: int32(342), + 2: int32(57), +} + +func Xtowlower(tls *TLS, wc Twint_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Uint32FromInt32(_casemap(tls, wc, 0)) +} + +func Xtowupper(tls *TLS, wc Twint_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Uint32FromInt32(_casemap(tls, wc, int32(1))) +} + +func X__towupper_l(tls *TLS, c Twint_t, l Tlocale_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xtowupper(tls, c) +} + +func X__towlower_l(tls *TLS, c Twint_t, l Tlocale_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xtowlower(tls, c) +} + +func Xtowlower_l(tls *TLS, c Twint_t, l Tlocale_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__towlower_l(tls, c, l) +} + +func Xtowupper_l(tls *TLS, c Twint_t, l Tlocale_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__towupper_l(tls, c, l) +} + +func Xwcswidth(tls *TLS, wcs uintptr, n Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wcs=%v n=%v, (%v:)", tls, wcs, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var k, l, v3 int32 + var v2 Tsize_t + var v4 bool + _, _, _, _, _ = k, l, v2, v3, v4 + l = 0 + k = 0 + for { + v2 = n + n = n - 1 + if v4 = v2 != 0 && **(**Twchar_t)(__ccgo_up(wcs)) != 0; v4 { + v3 = Xwcwidth(tls, **(**Twchar_t)(__ccgo_up(wcs))) + k = v3 + } + if !(v4 && v3 >= 0) { + break + } + goto _1 + _1: + ; + l = l + k + wcs += 4 + } + if k < 0 { + v3 = k + } else { + v3 = l + } + return v3 +} + +func Xwctrans(tls *TLS, class uintptr) (r Twctrans_t) { + if __ccgo_strace { + trc("tls=%v class=%v, (%v:)", tls, class, origin(2)) + defer func() { trc("-> %v", r) }() + } + if !(Xstrcmp(tls, class, __ccgo_ts+196) != 0) { + return UintptrFromInt32(1) + } + if !(Xstrcmp(tls, class, __ccgo_ts+204) != 0) { + return UintptrFromInt32(2) + } + return uintptr(0) +} + +func Xtowctrans(tls *TLS, wc Twint_t, trans Twctrans_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v wc=%v trans=%v, (%v:)", tls, wc, trans, origin(2)) + defer func() { trc("-> %v", r) }() + } + if trans == UintptrFromInt32(1) { + return Xtowupper(tls, wc) + } + if trans == UintptrFromInt32(2) { + return Xtowlower(tls, wc) + } + return wc +} + +func X__wctrans_l(tls *TLS, s uintptr, l Tlocale_t) (r Twctrans_t) { + if __ccgo_strace { + trc("tls=%v s=%v l=%v, (%v:)", tls, s, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwctrans(tls, s) +} + +func X__towctrans_l(tls *TLS, c Twint_t, t Twctrans_t, l Tlocale_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v t=%v l=%v, (%v:)", tls, c, t, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xtowctrans(tls, c, t) +} + +func Xtowctrans_l(tls *TLS, c Twint_t, t Twctrans_t, l Tlocale_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v t=%v l=%v, (%v:)", tls, c, t, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__towctrans_l(tls, c, t, l) +} + +func Xwctrans_l(tls *TLS, s uintptr, l Tlocale_t) (r Twctrans_t) { + if __ccgo_strace { + trc("tls=%v s=%v l=%v, (%v:)", tls, s, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__wctrans_l(tls, s, l) +} + +var _table5 = [2784]uint8{ + 0: uint8(16), + 1: uint8(16), + 2: uint8(16), + 3: uint8(18), + 4: uint8(19), + 5: uint8(20), + 6: uint8(21), + 7: uint8(22), + 8: uint8(23), + 9: uint8(24), + 10: uint8(25), + 11: uint8(26), + 12: uint8(27), + 13: uint8(28), + 14: uint8(29), + 15: uint8(30), + 16: uint8(31), + 17: uint8(32), + 18: uint8(16), + 19: uint8(33), + 20: uint8(16), + 21: uint8(16), + 22: uint8(16), + 23: uint8(34), + 24: uint8(35), + 25: uint8(36), + 26: uint8(37), + 27: uint8(38), + 28: uint8(39), + 29: uint8(40), + 30: uint8(16), + 31: uint8(16), + 32: uint8(41), + 33: uint8(16), + 34: uint8(16), + 35: uint8(16), + 36: uint8(16), + 37: uint8(16), + 38: uint8(16), + 39: uint8(16), + 40: uint8(16), + 41: uint8(16), + 42: uint8(16), + 43: uint8(16), + 44: uint8(42), + 45: uint8(43), + 46: uint8(16), + 47: uint8(16), + 48: uint8(44), + 49: uint8(16), + 50: uint8(16), + 51: uint8(16), + 52: uint8(16), + 53: uint8(16), + 54: uint8(16), + 55: uint8(16), + 56: uint8(16), + 57: uint8(16), + 58: uint8(16), + 59: uint8(16), + 60: uint8(16), + 61: uint8(16), + 62: uint8(16), + 63: uint8(16), + 64: uint8(16), + 65: uint8(16), + 66: uint8(16), + 67: uint8(16), + 68: uint8(16), + 69: uint8(16), + 70: uint8(16), + 71: uint8(16), + 72: uint8(16), + 73: uint8(16), + 74: uint8(16), + 75: uint8(16), + 76: uint8(16), + 77: uint8(16), + 78: uint8(16), + 79: uint8(16), + 80: uint8(16), + 81: uint8(16), + 82: uint8(16), + 83: uint8(16), + 84: uint8(16), + 85: uint8(16), + 86: uint8(16), + 87: uint8(16), + 88: uint8(16), + 89: uint8(16), + 90: uint8(16), + 91: uint8(16), + 92: uint8(16), + 93: uint8(16), + 94: uint8(16), + 95: uint8(16), + 96: uint8(16), + 97: uint8(16), + 98: uint8(16), + 99: uint8(16), + 100: uint8(16), + 101: uint8(16), + 102: uint8(16), + 103: uint8(16), + 104: uint8(16), + 105: uint8(16), + 106: uint8(16), + 107: uint8(16), + 108: uint8(16), + 109: uint8(16), + 110: uint8(16), + 111: uint8(16), + 112: uint8(16), + 113: uint8(16), + 114: uint8(16), + 115: uint8(16), + 116: uint8(16), + 117: uint8(16), + 118: uint8(16), + 119: uint8(16), + 120: uint8(16), + 121: uint8(16), + 122: uint8(16), + 123: uint8(16), + 124: uint8(16), + 125: uint8(16), + 126: uint8(16), + 127: uint8(16), + 128: uint8(16), + 129: uint8(16), + 130: uint8(16), + 131: uint8(16), + 132: uint8(16), + 133: uint8(16), + 134: uint8(16), + 135: uint8(16), + 136: uint8(16), + 137: uint8(16), + 138: uint8(16), + 139: uint8(16), + 140: uint8(16), + 141: uint8(16), + 142: uint8(16), + 143: uint8(16), + 144: uint8(16), + 145: uint8(16), + 146: uint8(16), + 147: uint8(16), + 148: uint8(16), + 149: uint8(16), + 150: uint8(16), + 151: uint8(16), + 152: uint8(16), + 153: uint8(16), + 154: uint8(16), + 155: uint8(16), + 156: uint8(16), + 157: uint8(16), + 158: uint8(16), + 159: uint8(16), + 160: uint8(16), + 161: uint8(16), + 162: uint8(16), + 163: uint8(16), + 164: uint8(16), + 165: uint8(16), + 166: uint8(45), + 167: uint8(16), + 168: uint8(46), + 169: uint8(47), + 170: uint8(48), + 171: uint8(49), + 172: uint8(16), + 173: uint8(16), + 174: uint8(16), + 175: uint8(16), + 176: uint8(16), + 177: uint8(16), + 178: uint8(16), + 179: uint8(16), + 180: uint8(16), + 181: uint8(16), + 182: uint8(16), + 183: uint8(16), + 184: uint8(16), + 185: uint8(16), + 186: uint8(16), + 187: uint8(16), + 188: uint8(16), + 189: uint8(16), + 190: uint8(16), + 191: uint8(16), + 192: uint8(16), + 193: uint8(16), + 194: uint8(16), + 195: uint8(16), + 196: uint8(16), + 197: uint8(16), + 198: uint8(16), + 199: uint8(16), + 200: uint8(16), + 201: uint8(16), + 202: uint8(16), + 203: uint8(16), + 204: uint8(16), + 205: uint8(16), + 206: uint8(16), + 207: uint8(16), + 208: uint8(16), + 209: uint8(16), + 210: uint8(16), + 211: uint8(16), + 212: uint8(16), + 213: uint8(16), + 214: uint8(16), + 215: uint8(50), + 216: uint8(16), + 217: uint8(16), + 218: uint8(16), + 219: uint8(16), + 220: uint8(16), + 221: uint8(16), + 222: uint8(16), + 223: uint8(16), + 224: uint8(16), + 225: uint8(16), + 226: uint8(16), + 227: uint8(16), + 228: uint8(16), + 229: uint8(16), + 230: uint8(16), + 231: uint8(16), + 232: uint8(16), + 233: uint8(16), + 234: uint8(16), + 235: uint8(16), + 236: uint8(16), + 237: uint8(16), + 238: uint8(16), + 239: uint8(16), + 240: uint8(16), + 241: uint8(16), + 242: uint8(16), + 243: uint8(16), + 244: uint8(16), + 245: uint8(16), + 246: uint8(16), + 247: uint8(16), + 248: uint8(16), + 249: uint8(16), + 250: uint8(16), + 251: uint8(51), + 252: uint8(16), + 253: uint8(16), + 254: uint8(52), + 255: uint8(53), + 256: uint8(16), + 257: uint8(54), + 258: uint8(55), + 259: uint8(56), + 260: uint8(16), + 261: uint8(16), + 262: uint8(16), + 263: uint8(16), + 264: uint8(16), + 265: uint8(16), + 266: uint8(57), + 267: uint8(16), + 268: uint8(16), + 269: uint8(58), + 270: uint8(16), + 271: uint8(59), + 272: uint8(60), + 273: uint8(61), + 274: uint8(62), + 275: uint8(63), + 276: uint8(64), + 277: uint8(65), + 278: uint8(66), + 279: uint8(67), + 280: uint8(68), + 281: uint8(69), + 282: uint8(70), + 283: uint8(16), + 284: uint8(71), + 285: uint8(72), + 286: uint8(73), + 287: uint8(16), + 288: uint8(16), + 289: uint8(16), + 290: uint8(16), + 291: uint8(16), + 292: uint8(16), + 293: uint8(16), + 294: uint8(16), + 295: uint8(16), + 296: uint8(16), + 297: uint8(16), + 298: uint8(16), + 299: uint8(16), + 300: uint8(16), + 301: uint8(16), + 302: uint8(16), + 303: uint8(16), + 304: uint8(16), + 305: uint8(16), + 306: uint8(16), + 307: uint8(16), + 308: uint8(74), + 309: uint8(16), + 310: uint8(16), + 311: uint8(16), + 312: uint8(16), + 313: uint8(16), + 314: uint8(16), + 315: uint8(16), + 316: uint8(16), + 317: uint8(16), + 318: uint8(16), + 319: uint8(16), + 320: uint8(16), + 321: uint8(16), + 322: uint8(16), + 323: uint8(16), + 324: uint8(16), + 325: uint8(16), + 326: uint8(16), + 327: uint8(16), + 328: uint8(16), + 329: uint8(16), + 330: uint8(16), + 331: uint8(16), + 332: uint8(16), + 333: uint8(16), + 334: uint8(16), + 335: uint8(16), + 336: uint8(16), + 337: uint8(16), + 338: uint8(16), + 339: uint8(16), + 340: uint8(16), + 341: uint8(16), + 342: uint8(16), + 343: uint8(16), + 344: uint8(16), + 345: uint8(16), + 346: uint8(16), + 347: uint8(16), + 348: uint8(16), + 349: uint8(16), + 350: uint8(16), + 351: uint8(16), + 352: uint8(16), + 353: uint8(16), + 354: uint8(16), + 355: uint8(16), + 356: uint8(16), + 357: uint8(16), + 358: uint8(16), + 359: uint8(16), + 360: uint8(16), + 361: uint8(16), + 362: uint8(75), + 363: uint8(76), + 364: uint8(16), + 365: uint8(16), + 366: uint8(16), + 367: uint8(77), + 368: uint8(16), + 369: uint8(16), + 370: uint8(16), + 371: uint8(16), + 372: uint8(16), + 373: uint8(16), + 374: uint8(16), + 375: uint8(16), + 376: uint8(16), + 377: uint8(16), + 378: uint8(16), + 379: uint8(16), + 380: uint8(16), + 381: uint8(16), + 382: uint8(16), + 383: uint8(16), + 384: uint8(16), + 385: uint8(16), + 386: uint8(16), + 387: uint8(16), + 388: uint8(16), + 389: uint8(16), + 390: uint8(16), + 391: uint8(16), + 392: uint8(16), + 393: uint8(16), + 394: uint8(16), + 395: uint8(16), + 396: uint8(16), + 397: uint8(16), + 398: uint8(16), + 399: uint8(16), + 400: uint8(16), + 401: uint8(16), + 402: uint8(16), + 403: uint8(16), + 404: uint8(16), + 405: uint8(16), + 406: uint8(16), + 407: uint8(16), + 408: uint8(16), + 409: uint8(16), + 410: uint8(16), + 411: uint8(16), + 412: uint8(16), + 413: uint8(16), + 414: uint8(16), + 415: uint8(16), + 416: uint8(16), + 417: uint8(16), + 418: uint8(16), + 419: uint8(16), + 420: uint8(16), + 421: uint8(16), + 422: uint8(16), + 423: uint8(16), + 424: uint8(16), + 425: uint8(16), + 426: uint8(16), + 427: uint8(16), + 428: uint8(16), + 429: uint8(16), + 430: uint8(16), + 431: uint8(16), + 432: uint8(16), + 433: uint8(16), + 434: uint8(16), + 435: uint8(16), + 436: uint8(16), + 437: uint8(16), + 438: uint8(16), + 439: uint8(16), + 440: uint8(16), + 441: uint8(16), + 442: uint8(16), + 443: uint8(16), + 444: uint8(78), + 445: uint8(16), + 446: uint8(16), + 447: uint8(16), + 448: uint8(16), + 449: uint8(16), + 450: uint8(16), + 451: uint8(16), + 452: uint8(16), + 453: uint8(16), + 454: uint8(16), + 455: uint8(16), + 456: uint8(16), + 457: uint8(16), + 458: uint8(16), + 459: uint8(16), + 460: uint8(16), + 461: uint8(16), + 462: uint8(16), + 463: uint8(16), + 464: uint8(16), + 465: uint8(79), + 466: uint8(80), + 467: uint8(16), + 468: uint8(16), + 469: uint8(16), + 470: uint8(16), + 471: uint8(16), + 472: uint8(16), + 473: uint8(16), + 474: uint8(81), + 475: uint8(16), + 476: uint8(16), + 477: uint8(16), + 478: uint8(16), + 479: uint8(16), + 480: uint8(82), + 481: uint8(83), + 482: uint8(84), + 483: uint8(16), + 484: uint8(16), + 485: uint8(16), + 486: uint8(16), + 487: uint8(16), + 488: uint8(85), + 489: uint8(86), + 490: uint8(16), + 491: uint8(16), + 492: uint8(16), + 493: uint8(16), + 494: uint8(16), + 495: uint8(16), + 496: uint8(16), + 497: uint8(16), + 498: uint8(16), + 499: uint8(16), + 500: uint8(16), + 501: uint8(16), + 502: uint8(16), + 503: uint8(16), + 504: uint8(16), + 505: uint8(16), + 506: uint8(16), + 507: uint8(16), + 508: uint8(16), + 509: uint8(16), + 510: uint8(16), + 511: uint8(16), + 544: uint8(255), + 545: uint8(255), + 546: uint8(255), + 547: uint8(255), + 548: uint8(255), + 549: uint8(255), + 550: uint8(255), + 551: uint8(255), + 552: uint8(255), + 553: uint8(255), + 554: uint8(255), + 555: uint8(255), + 556: uint8(255), + 557: uint8(255), + 558: uint8(255), + 559: uint8(255), + 560: uint8(255), + 561: uint8(255), + 562: uint8(255), + 563: uint8(255), + 564: uint8(255), + 565: uint8(255), + 566: uint8(255), + 567: uint8(255), + 568: uint8(255), + 569: uint8(255), + 570: uint8(255), + 571: uint8(255), + 572: uint8(255), + 573: uint8(255), + 574: uint8(255), + 575: uint8(255), + 576: uint8(255), + 577: uint8(255), + 578: uint8(255), + 579: uint8(255), + 580: uint8(255), + 581: uint8(255), + 582: uint8(255), + 583: uint8(255), + 584: uint8(255), + 585: uint8(255), + 586: uint8(255), + 587: uint8(255), + 588: uint8(255), + 589: uint8(255), + 624: uint8(248), + 625: uint8(3), + 658: uint8(254), + 659: uint8(255), + 660: uint8(255), + 661: uint8(255), + 662: uint8(255), + 663: uint8(191), + 664: uint8(182), + 672: uint8(63), + 674: uint8(255), + 675: uint8(23), + 681: uint8(248), + 682: uint8(255), + 683: uint8(255), + 686: uint8(1), + 698: uint8(192), + 699: uint8(191), + 700: uint8(159), + 701: uint8(61), + 705: uint8(128), + 706: uint8(2), + 710: uint8(255), + 711: uint8(255), + 712: uint8(255), + 713: uint8(7), + 724: uint8(192), + 725: uint8(255), + 726: uint8(1), + 733: uint8(248), + 734: uint8(15), + 735: uint8(32), + 738: uint8(192), + 739: uint8(251), + 740: uint8(239), + 741: uint8(62), + 747: uint8(14), + 762: uint8(248), + 763: uint8(255), + 764: uint8(255), + 765: uint8(255), + 766: uint8(255), + 767: uint8(255), + 768: uint8(7), + 775: uint8(20), + 776: uint8(254), + 777: uint8(33), + 778: uint8(254), + 780: uint8(12), + 784: uint8(2), + 791: uint8(16), + 792: uint8(30), + 793: uint8(32), + 796: uint8(12), + 799: uint8(64), + 800: uint8(6), + 807: uint8(16), + 808: uint8(134), + 809: uint8(57), + 810: uint8(2), + 814: uint8(35), + 816: uint8(6), + 823: uint8(16), + 824: uint8(190), + 825: uint8(33), + 828: uint8(12), + 831: uint8(252), + 832: uint8(2), + 839: uint8(144), + 840: uint8(30), + 841: uint8(32), + 842: uint8(64), + 844: uint8(12), + 848: uint8(4), + 856: uint8(1), + 857: uint8(32), + 864: uint8(17), + 871: uint8(192), + 872: uint8(193), + 873: uint8(61), + 874: uint8(96), + 876: uint8(12), + 880: uint8(2), + 887: uint8(144), + 888: uint8(64), + 889: uint8(48), + 892: uint8(12), + 896: uint8(3), + 903: uint8(24), + 904: uint8(30), + 905: uint8(32), + 908: uint8(12), + 921: uint8(4), + 922: uint8(92), + 934: uint8(242), + 935: uint8(7), + 936: uint8(128), + 937: uint8(127), + 950: uint8(242), + 951: uint8(31), + 953: uint8(63), + 963: uint8(3), + 966: uint8(160), + 967: uint8(2), + 974: uint8(254), + 975: uint8(127), + 976: uint8(223), + 977: uint8(224), + 978: uint8(255), + 979: uint8(254), + 980: uint8(255), + 981: uint8(255), + 982: uint8(255), + 983: uint8(31), + 984: uint8(64), + 997: uint8(224), + 998: uint8(253), + 999: uint8(102), + 1003: uint8(195), + 1004: uint8(1), + 1006: uint8(30), + 1008: uint8(100), + 1009: uint8(32), + 1011: uint8(32), + 1036: uint8(255), + 1037: uint8(255), + 1038: uint8(255), + 1039: uint8(255), + 1040: uint8(255), + 1041: uint8(255), + 1042: uint8(255), + 1043: uint8(255), + 1044: uint8(255), + 1045: uint8(255), + 1046: uint8(255), + 1047: uint8(255), + 1048: uint8(255), + 1049: uint8(255), + 1050: uint8(255), + 1051: uint8(255), + 1052: uint8(255), + 1053: uint8(255), + 1054: uint8(255), + 1055: uint8(255), + 1067: uint8(224), + 1090: uint8(28), + 1094: uint8(28), + 1098: uint8(12), + 1102: uint8(12), + 1110: uint8(176), + 1111: uint8(63), + 1112: uint8(64), + 1113: uint8(254), + 1114: uint8(15), + 1115: uint8(32), + 1121: uint8(120), + 1136: uint8(96), + 1141: uint8(2), + 1156: uint8(135), + 1157: uint8(1), + 1158: uint8(4), + 1159: uint8(14), + 1186: uint8(128), + 1187: uint8(9), + 1194: uint8(64), + 1195: uint8(127), + 1196: uint8(229), + 1197: uint8(31), + 1198: uint8(248), + 1199: uint8(159), + 1206: uint8(255), + 1207: uint8(127), + 1216: uint8(15), + 1222: uint8(208), + 1223: uint8(23), + 1224: uint8(4), + 1229: uint8(248), + 1230: uint8(15), + 1232: uint8(3), + 1236: uint8(60), + 1237: uint8(59), + 1244: uint8(64), + 1245: uint8(163), + 1246: uint8(3), + 1253: uint8(240), + 1254: uint8(207), + 1274: uint8(247), + 1275: uint8(255), + 1276: uint8(253), + 1277: uint8(33), + 1278: uint8(16), + 1279: uint8(3), + 1304: uint8(255), + 1305: uint8(255), + 1306: uint8(255), + 1307: uint8(255), + 1308: uint8(255), + 1309: uint8(255), + 1310: uint8(255), + 1311: uint8(251), + 1313: uint8(248), + 1317: uint8(124), + 1324: uint8(223), + 1325: uint8(255), + 1338: uint8(255), + 1339: uint8(255), + 1340: uint8(255), + 1341: uint8(255), + 1342: uint8(1), + 1373: uint8(128), + 1374: uint8(3), + 1391: uint8(128), + 1404: uint8(255), + 1405: uint8(255), + 1406: uint8(255), + 1407: uint8(255), + 1413: uint8(60), + 1427: uint8(6), + 1453: uint8(128), + 1454: uint8(247), + 1455: uint8(63), + 1459: uint8(192), + 1470: uint8(3), + 1472: uint8(68), + 1473: uint8(8), + 1476: uint8(96), + 1496: uint8(48), + 1500: uint8(255), + 1501: uint8(255), + 1502: uint8(3), + 1503: uint8(128), + 1508: uint8(192), + 1509: uint8(63), + 1512: uint8(128), + 1513: uint8(255), + 1514: uint8(3), + 1520: uint8(7), + 1526: uint8(200), + 1527: uint8(51), + 1532: uint8(32), + 1541: uint8(126), + 1542: uint8(102), + 1544: uint8(8), + 1545: uint8(16), + 1551: uint8(16), + 1558: uint8(157), + 1559: uint8(193), + 1560: uint8(2), + 1565: uint8(48), + 1566: uint8(64), + 1596: uint8(32), + 1597: uint8(33), + 1622: uint8(255), + 1623: uint8(255), + 1624: uint8(255), + 1625: uint8(255), + 1626: uint8(255), + 1627: uint8(255), + 1628: uint8(255), + 1629: uint8(255), + 1630: uint8(255), + 1631: uint8(255), + 1635: uint8(64), + 1664: uint8(255), + 1665: uint8(255), + 1668: uint8(255), + 1669: uint8(255), + 1695: uint8(128), + 1727: uint8(14), + 1759: uint8(32), + 1788: uint8(1), + 1806: uint8(192), + 1807: uint8(7), + 1824: uint8(110), + 1825: uint8(240), + 1831: uint8(135), + 1852: uint8(96), + 1860: uint8(240), + 1896: uint8(192), + 1897: uint8(255), + 1898: uint8(1), + 1920: uint8(2), + 1927: uint8(255), + 1928: uint8(127), + 1935: uint8(128), + 1936: uint8(3), + 1942: uint8(120), + 1943: uint8(38), + 1945: uint8(32), + 1952: uint8(7), + 1956: uint8(128), + 1957: uint8(239), + 1958: uint8(31), + 1966: uint8(8), + 1968: uint8(3), + 1974: uint8(192), + 1975: uint8(127), + 1977: uint8(30), + 1989: uint8(128), + 1990: uint8(211), + 1991: uint8(64), + 2011: uint8(128), + 2012: uint8(248), + 2013: uint8(7), + 2016: uint8(3), + 2023: uint8(24), + 2024: uint8(1), + 2028: uint8(192), + 2029: uint8(31), + 2030: uint8(31), + 2055: uint8(255), + 2056: uint8(92), + 2059: uint8(64), + 2070: uint8(248), + 2071: uint8(133), + 2072: uint8(13), + 2102: uint8(60), + 2103: uint8(176), + 2104: uint8(1), + 2107: uint8(48), + 2118: uint8(248), + 2119: uint8(167), + 2120: uint8(1), + 2133: uint8(40), + 2134: uint8(191), + 2147: uint8(224), + 2148: uint8(188), + 2149: uint8(15), + 2181: uint8(128), + 2182: uint8(255), + 2183: uint8(6), + 2234: uint8(240), + 2235: uint8(12), + 2236: uint8(1), + 2240: uint8(254), + 2241: uint8(7), + 2246: uint8(248), + 2247: uint8(121), + 2248: uint8(128), + 2250: uint8(126), + 2251: uint8(14), + 2257: uint8(252), + 2258: uint8(127), + 2259: uint8(3), + 2278: uint8(127), + 2279: uint8(191), + 2290: uint8(252), + 2291: uint8(255), + 2292: uint8(255), + 2293: uint8(252), + 2294: uint8(109), + 2310: uint8(126), + 2311: uint8(180), + 2312: uint8(191), + 2322: uint8(163), + 2366: uint8(24), + 2374: uint8(255), + 2375: uint8(1), + 2430: uint8(31), + 2438: uint8(127), + 2473: uint8(128), + 2481: uint8(128), + 2482: uint8(7), + 2515: uint8(96), + 2516: uint8(15), + 2540: uint8(128), + 2541: uint8(3), + 2542: uint8(248), + 2543: uint8(255), + 2544: uint8(231), + 2545: uint8(15), + 2549: uint8(60), + 2568: uint8(28), + 2592: uint8(255), + 2593: uint8(255), + 2594: uint8(255), + 2595: uint8(255), + 2596: uint8(255), + 2597: uint8(255), + 2598: uint8(127), + 2599: uint8(248), + 2600: uint8(255), + 2601: uint8(255), + 2602: uint8(255), + 2603: uint8(255), + 2604: uint8(255), + 2605: uint8(31), + 2606: uint8(32), + 2608: uint8(16), + 2611: uint8(248), + 2612: uint8(254), + 2613: uint8(255), + 2624: uint8(127), + 2625: uint8(255), + 2626: uint8(255), + 2627: uint8(249), + 2628: uint8(219), + 2629: uint8(7), + 2662: uint8(127), + 2717: uint8(240), + 2746: uint8(127), + 2760: uint8(240), + 2761: uint8(7), +} + +var _wtable = [1600]uint8{ + 0: uint8(16), + 1: uint8(16), + 2: uint8(16), + 3: uint8(16), + 4: uint8(16), + 5: uint8(16), + 6: uint8(16), + 7: uint8(16), + 8: uint8(16), + 9: uint8(16), + 10: uint8(16), + 11: uint8(16), + 12: uint8(16), + 13: uint8(16), + 14: uint8(16), + 15: uint8(16), + 16: uint8(16), + 17: uint8(18), + 18: uint8(16), + 19: uint8(16), + 20: uint8(16), + 21: uint8(16), + 22: uint8(16), + 23: uint8(16), + 24: uint8(16), + 25: uint8(16), + 26: uint8(16), + 27: uint8(16), + 28: uint8(16), + 29: uint8(16), + 30: uint8(16), + 31: uint8(16), + 32: uint8(16), + 33: uint8(16), + 34: uint8(16), + 35: uint8(19), + 36: uint8(16), + 37: uint8(20), + 38: uint8(21), + 39: uint8(22), + 40: uint8(16), + 41: uint8(16), + 42: uint8(16), + 43: uint8(23), + 44: uint8(16), + 45: uint8(16), + 46: uint8(24), + 47: uint8(25), + 48: uint8(26), + 49: uint8(27), + 50: uint8(28), + 51: uint8(17), + 52: uint8(17), + 53: uint8(17), + 54: uint8(17), + 55: uint8(17), + 56: uint8(17), + 57: uint8(17), + 58: uint8(17), + 59: uint8(17), + 60: uint8(17), + 61: uint8(17), + 62: uint8(17), + 63: uint8(17), + 64: uint8(17), + 65: uint8(17), + 66: uint8(17), + 67: uint8(17), + 68: uint8(17), + 69: uint8(17), + 70: uint8(17), + 71: uint8(17), + 72: uint8(17), + 73: uint8(17), + 74: uint8(17), + 75: uint8(17), + 76: uint8(17), + 77: uint8(29), + 78: uint8(17), + 79: uint8(17), + 80: uint8(17), + 81: uint8(17), + 82: uint8(17), + 83: uint8(17), + 84: uint8(17), + 85: uint8(17), + 86: uint8(17), + 87: uint8(17), + 88: uint8(17), + 89: uint8(17), + 90: uint8(17), + 91: uint8(17), + 92: uint8(17), + 93: uint8(17), + 94: uint8(17), + 95: uint8(17), + 96: uint8(17), + 97: uint8(17), + 98: uint8(17), + 99: uint8(17), + 100: uint8(17), + 101: uint8(17), + 102: uint8(17), + 103: uint8(17), + 104: uint8(17), + 105: uint8(17), + 106: uint8(17), + 107: uint8(17), + 108: uint8(17), + 109: uint8(17), + 110: uint8(17), + 111: uint8(17), + 112: uint8(17), + 113: uint8(17), + 114: uint8(17), + 115: uint8(17), + 116: uint8(17), + 117: uint8(17), + 118: uint8(17), + 119: uint8(17), + 120: uint8(17), + 121: uint8(17), + 122: uint8(17), + 123: uint8(17), + 124: uint8(17), + 125: uint8(17), + 126: uint8(17), + 127: uint8(17), + 128: uint8(17), + 129: uint8(17), + 130: uint8(17), + 131: uint8(17), + 132: uint8(17), + 133: uint8(17), + 134: uint8(17), + 135: uint8(17), + 136: uint8(17), + 137: uint8(17), + 138: uint8(17), + 139: uint8(17), + 140: uint8(17), + 141: uint8(17), + 142: uint8(17), + 143: uint8(17), + 144: uint8(17), + 145: uint8(17), + 146: uint8(17), + 147: uint8(17), + 148: uint8(17), + 149: uint8(17), + 150: uint8(17), + 151: uint8(17), + 152: uint8(17), + 153: uint8(17), + 154: uint8(17), + 155: uint8(17), + 156: uint8(17), + 157: uint8(17), + 158: uint8(17), + 159: uint8(17), + 160: uint8(17), + 161: uint8(17), + 162: uint8(17), + 163: uint8(17), + 164: uint8(30), + 165: uint8(16), + 166: uint8(16), + 167: uint8(16), + 168: uint8(16), + 169: uint8(31), + 170: uint8(16), + 171: uint8(16), + 172: uint8(17), + 173: uint8(17), + 174: uint8(17), + 175: uint8(17), + 176: uint8(17), + 177: uint8(17), + 178: uint8(17), + 179: uint8(17), + 180: uint8(17), + 181: uint8(17), + 182: uint8(17), + 183: uint8(17), + 184: uint8(17), + 185: uint8(17), + 186: uint8(17), + 187: uint8(17), + 188: uint8(17), + 189: uint8(17), + 190: uint8(17), + 191: uint8(17), + 192: uint8(17), + 193: uint8(17), + 194: uint8(17), + 195: uint8(17), + 196: uint8(17), + 197: uint8(17), + 198: uint8(17), + 199: uint8(17), + 200: uint8(17), + 201: uint8(17), + 202: uint8(17), + 203: uint8(17), + 204: uint8(17), + 205: uint8(17), + 206: uint8(17), + 207: uint8(17), + 208: uint8(17), + 209: uint8(17), + 210: uint8(17), + 211: uint8(17), + 212: uint8(17), + 213: uint8(17), + 214: uint8(17), + 215: uint8(32), + 216: uint8(16), + 217: uint8(16), + 218: uint8(16), + 219: uint8(16), + 220: uint8(16), + 221: uint8(16), + 222: uint8(16), + 223: uint8(16), + 224: uint8(16), + 225: uint8(16), + 226: uint8(16), + 227: uint8(16), + 228: uint8(16), + 229: uint8(16), + 230: uint8(16), + 231: uint8(16), + 232: uint8(16), + 233: uint8(16), + 234: uint8(16), + 235: uint8(16), + 236: uint8(16), + 237: uint8(16), + 238: uint8(16), + 239: uint8(16), + 240: uint8(16), + 241: uint8(16), + 242: uint8(16), + 243: uint8(16), + 244: uint8(16), + 245: uint8(16), + 246: uint8(16), + 247: uint8(16), + 248: uint8(16), + 249: uint8(17), + 250: uint8(17), + 251: uint8(16), + 252: uint8(16), + 253: uint8(16), + 254: uint8(33), + 255: uint8(34), + 256: uint8(16), + 257: uint8(16), + 258: uint8(16), + 259: uint8(16), + 260: uint8(16), + 261: uint8(16), + 262: uint8(16), + 263: uint8(16), + 264: uint8(16), + 265: uint8(16), + 266: uint8(16), + 267: uint8(16), + 268: uint8(16), + 269: uint8(16), + 270: uint8(16), + 271: uint8(16), + 272: uint8(16), + 273: uint8(16), + 274: uint8(16), + 275: uint8(16), + 276: uint8(16), + 277: uint8(16), + 278: uint8(16), + 279: uint8(16), + 280: uint8(16), + 281: uint8(16), + 282: uint8(16), + 283: uint8(16), + 284: uint8(16), + 285: uint8(16), + 286: uint8(16), + 287: uint8(16), + 288: uint8(16), + 289: uint8(16), + 290: uint8(16), + 291: uint8(16), + 292: uint8(16), + 293: uint8(16), + 294: uint8(16), + 295: uint8(16), + 296: uint8(16), + 297: uint8(16), + 298: uint8(16), + 299: uint8(16), + 300: uint8(16), + 301: uint8(16), + 302: uint8(16), + 303: uint8(16), + 304: uint8(16), + 305: uint8(16), + 306: uint8(16), + 307: uint8(16), + 308: uint8(16), + 309: uint8(16), + 310: uint8(16), + 311: uint8(16), + 312: uint8(16), + 313: uint8(16), + 314: uint8(16), + 315: uint8(16), + 316: uint8(16), + 317: uint8(16), + 318: uint8(16), + 319: uint8(16), + 320: uint8(16), + 321: uint8(16), + 322: uint8(16), + 323: uint8(16), + 324: uint8(16), + 325: uint8(16), + 326: uint8(16), + 327: uint8(16), + 328: uint8(16), + 329: uint8(16), + 330: uint8(16), + 331: uint8(16), + 332: uint8(16), + 333: uint8(16), + 334: uint8(16), + 335: uint8(16), + 336: uint8(16), + 337: uint8(16), + 338: uint8(16), + 339: uint8(16), + 340: uint8(16), + 341: uint8(16), + 342: uint8(16), + 343: uint8(16), + 344: uint8(16), + 345: uint8(16), + 346: uint8(16), + 347: uint8(16), + 348: uint8(16), + 349: uint8(16), + 350: uint8(16), + 351: uint8(16), + 352: uint8(16), + 353: uint8(16), + 354: uint8(16), + 355: uint8(16), + 356: uint8(16), + 357: uint8(16), + 358: uint8(16), + 359: uint8(16), + 360: uint8(16), + 361: uint8(16), + 362: uint8(16), + 363: uint8(16), + 364: uint8(16), + 365: uint8(16), + 366: uint8(16), + 367: uint8(35), + 368: uint8(17), + 369: uint8(17), + 370: uint8(17), + 371: uint8(17), + 372: uint8(17), + 373: uint8(17), + 374: uint8(17), + 375: uint8(17), + 376: uint8(17), + 377: uint8(17), + 378: uint8(17), + 379: uint8(17), + 380: uint8(17), + 381: uint8(17), + 382: uint8(17), + 383: uint8(17), + 384: uint8(17), + 385: uint8(17), + 386: uint8(17), + 387: uint8(17), + 388: uint8(17), + 389: uint8(17), + 390: uint8(17), + 391: uint8(36), + 392: uint8(17), + 393: uint8(17), + 394: uint8(37), + 395: uint8(16), + 396: uint8(16), + 397: uint8(16), + 398: uint8(16), + 399: uint8(16), + 400: uint8(16), + 401: uint8(16), + 402: uint8(16), + 403: uint8(16), + 404: uint8(16), + 405: uint8(16), + 406: uint8(16), + 407: uint8(16), + 408: uint8(16), + 409: uint8(16), + 410: uint8(16), + 411: uint8(16), + 412: uint8(16), + 413: uint8(16), + 414: uint8(16), + 415: uint8(16), + 416: uint8(16), + 417: uint8(16), + 418: uint8(16), + 419: uint8(16), + 420: uint8(16), + 421: uint8(16), + 422: uint8(16), + 423: uint8(16), + 424: uint8(16), + 425: uint8(16), + 426: uint8(16), + 427: uint8(16), + 428: uint8(16), + 429: uint8(16), + 430: uint8(16), + 431: uint8(16), + 432: uint8(17), + 433: uint8(38), + 434: uint8(39), + 435: uint8(16), + 436: uint8(16), + 437: uint8(16), + 438: uint8(16), + 439: uint8(16), + 440: uint8(16), + 441: uint8(16), + 442: uint8(16), + 443: uint8(16), + 444: uint8(16), + 445: uint8(16), + 446: uint8(16), + 447: uint8(16), + 448: uint8(16), + 449: uint8(16), + 450: uint8(16), + 451: uint8(16), + 452: uint8(16), + 453: uint8(16), + 454: uint8(16), + 455: uint8(16), + 456: uint8(16), + 457: uint8(16), + 458: uint8(16), + 459: uint8(16), + 460: uint8(16), + 461: uint8(16), + 462: uint8(16), + 463: uint8(16), + 464: uint8(16), + 465: uint8(16), + 466: uint8(16), + 467: uint8(16), + 468: uint8(16), + 469: uint8(16), + 470: uint8(16), + 471: uint8(16), + 472: uint8(16), + 473: uint8(16), + 474: uint8(16), + 475: uint8(16), + 476: uint8(16), + 477: uint8(16), + 478: uint8(16), + 479: uint8(16), + 480: uint8(16), + 481: uint8(16), + 482: uint8(16), + 483: uint8(16), + 484: uint8(16), + 485: uint8(16), + 486: uint8(16), + 487: uint8(16), + 488: uint8(16), + 489: uint8(16), + 490: uint8(16), + 491: uint8(16), + 492: uint8(16), + 493: uint8(16), + 494: uint8(16), + 495: uint8(16), + 496: uint8(40), + 497: uint8(41), + 498: uint8(42), + 499: uint8(43), + 500: uint8(44), + 501: uint8(45), + 502: uint8(46), + 503: uint8(47), + 504: uint8(16), + 505: uint8(48), + 506: uint8(49), + 507: uint8(16), + 508: uint8(16), + 509: uint8(16), + 510: uint8(16), + 511: uint8(16), + 544: uint8(255), + 545: uint8(255), + 546: uint8(255), + 547: uint8(255), + 548: uint8(255), + 549: uint8(255), + 550: uint8(255), + 551: uint8(255), + 552: uint8(255), + 553: uint8(255), + 554: uint8(255), + 555: uint8(255), + 556: uint8(255), + 557: uint8(255), + 558: uint8(255), + 559: uint8(255), + 560: uint8(255), + 561: uint8(255), + 562: uint8(255), + 563: uint8(255), + 564: uint8(255), + 565: uint8(255), + 566: uint8(255), + 567: uint8(255), + 568: uint8(255), + 569: uint8(255), + 570: uint8(255), + 571: uint8(255), + 572: uint8(255), + 573: uint8(255), + 574: uint8(255), + 575: uint8(255), + 576: uint8(255), + 577: uint8(255), + 578: uint8(255), + 579: uint8(255), + 580: uint8(255), + 581: uint8(255), + 582: uint8(255), + 583: uint8(255), + 584: uint8(255), + 585: uint8(255), + 586: uint8(255), + 587: uint8(255), + 611: uint8(12), + 613: uint8(6), + 637: uint8(30), + 638: uint8(9), + 671: uint8(96), + 674: uint8(48), + 681: uint8(255), + 682: uint8(15), + 687: uint8(128), + 690: uint8(8), + 692: uint8(2), + 693: uint8(12), + 695: uint8(96), + 696: uint8(48), + 697: uint8(64), + 698: uint8(16), + 701: uint8(4), + 702: uint8(44), + 703: uint8(36), + 704: uint8(32), + 705: uint8(12), + 709: uint8(1), + 713: uint8(80), + 714: uint8(184), + 722: uint8(224), + 726: uint8(1), + 727: uint8(128), + 739: uint8(24), + 746: uint8(33), + 784: uint8(255), + 785: uint8(255), + 786: uint8(255), + 787: uint8(251), + 788: uint8(255), + 789: uint8(255), + 790: uint8(255), + 791: uint8(255), + 792: uint8(255), + 793: uint8(255), + 794: uint8(255), + 795: uint8(255), + 796: uint8(255), + 797: uint8(255), + 798: uint8(15), + 800: uint8(255), + 801: uint8(255), + 802: uint8(255), + 803: uint8(255), + 804: uint8(255), + 805: uint8(255), + 806: uint8(255), + 807: uint8(255), + 808: uint8(255), + 809: uint8(255), + 810: uint8(255), + 811: uint8(255), + 812: uint8(255), + 813: uint8(255), + 814: uint8(255), + 815: uint8(255), + 816: uint8(255), + 817: uint8(255), + 818: uint8(255), + 819: uint8(255), + 820: uint8(255), + 821: uint8(255), + 822: uint8(255), + 823: uint8(255), + 824: uint8(255), + 825: uint8(255), + 826: uint8(63), + 830: uint8(255), + 831: uint8(15), + 832: uint8(255), + 833: uint8(255), + 834: uint8(255), + 835: uint8(255), + 836: uint8(255), + 837: uint8(255), + 838: uint8(255), + 839: uint8(127), + 840: uint8(254), + 841: uint8(255), + 842: uint8(255), + 843: uint8(255), + 844: uint8(255), + 845: uint8(255), + 846: uint8(255), + 847: uint8(255), + 848: uint8(255), + 849: uint8(255), + 850: uint8(127), + 851: uint8(254), + 852: uint8(255), + 853: uint8(255), + 854: uint8(255), + 855: uint8(255), + 856: uint8(255), + 857: uint8(255), + 858: uint8(255), + 859: uint8(255), + 860: uint8(255), + 861: uint8(255), + 862: uint8(255), + 863: uint8(255), + 864: uint8(224), + 865: uint8(255), + 866: uint8(255), + 867: uint8(255), + 868: uint8(255), + 869: uint8(255), + 870: uint8(254), + 871: uint8(255), + 872: uint8(255), + 873: uint8(255), + 874: uint8(255), + 875: uint8(255), + 876: uint8(255), + 877: uint8(255), + 878: uint8(255), + 879: uint8(255), + 880: uint8(255), + 881: uint8(127), + 882: uint8(255), + 883: uint8(255), + 884: uint8(255), + 885: uint8(255), + 886: uint8(255), + 887: uint8(7), + 888: uint8(255), + 889: uint8(255), + 890: uint8(255), + 891: uint8(255), + 892: uint8(15), + 894: uint8(255), + 895: uint8(255), + 896: uint8(255), + 897: uint8(255), + 898: uint8(255), + 899: uint8(127), + 900: uint8(255), + 901: uint8(255), + 902: uint8(255), + 903: uint8(255), + 904: uint8(255), + 906: uint8(255), + 907: uint8(255), + 908: uint8(255), + 909: uint8(255), + 910: uint8(255), + 911: uint8(255), + 912: uint8(255), + 913: uint8(255), + 914: uint8(255), + 915: uint8(255), + 916: uint8(255), + 917: uint8(255), + 918: uint8(255), + 919: uint8(255), + 920: uint8(255), + 921: uint8(255), + 922: uint8(255), + 923: uint8(255), + 924: uint8(255), + 925: uint8(255), + 926: uint8(255), + 927: uint8(255), + 928: uint8(255), + 929: uint8(255), + 930: uint8(255), + 931: uint8(255), + 932: uint8(255), + 933: uint8(255), + 934: uint8(255), + 935: uint8(255), + 936: uint8(255), + 937: uint8(255), + 938: uint8(255), + 939: uint8(255), + 940: uint8(255), + 941: uint8(255), + 942: uint8(255), + 943: uint8(255), + 944: uint8(255), + 945: uint8(255), + 946: uint8(255), + 947: uint8(255), + 948: uint8(255), + 949: uint8(255), + 950: uint8(255), + 951: uint8(255), + 960: uint8(255), + 961: uint8(255), + 962: uint8(255), + 963: uint8(255), + 964: uint8(255), + 965: uint8(255), + 966: uint8(255), + 967: uint8(255), + 968: uint8(255), + 969: uint8(255), + 970: uint8(255), + 971: uint8(255), + 972: uint8(255), + 973: uint8(255), + 974: uint8(255), + 975: uint8(255), + 976: uint8(255), + 977: uint8(31), + 978: uint8(255), + 979: uint8(255), + 980: uint8(255), + 981: uint8(255), + 982: uint8(255), + 983: uint8(255), + 984: uint8(127), + 1004: uint8(255), + 1005: uint8(255), + 1006: uint8(255), + 1007: uint8(31), + 1024: uint8(255), + 1025: uint8(255), + 1026: uint8(255), + 1027: uint8(255), + 1028: uint8(255), + 1029: uint8(255), + 1030: uint8(255), + 1031: uint8(255), + 1032: uint8(255), + 1033: uint8(255), + 1034: uint8(255), + 1035: uint8(255), + 1036: uint8(255), + 1037: uint8(255), + 1038: uint8(255), + 1039: uint8(255), + 1040: uint8(255), + 1041: uint8(255), + 1042: uint8(255), + 1043: uint8(255), + 1044: uint8(15), + 1058: uint8(255), + 1059: uint8(3), + 1062: uint8(255), + 1063: uint8(255), + 1064: uint8(255), + 1065: uint8(255), + 1066: uint8(247), + 1067: uint8(255), + 1068: uint8(127), + 1069: uint8(15), + 1088: uint8(254), + 1089: uint8(255), + 1090: uint8(255), + 1091: uint8(255), + 1092: uint8(255), + 1093: uint8(255), + 1094: uint8(255), + 1095: uint8(255), + 1096: uint8(255), + 1097: uint8(255), + 1098: uint8(255), + 1099: uint8(255), + 1100: uint8(1), + 1116: uint8(127), + 1148: uint8(15), + 1152: uint8(255), + 1153: uint8(255), + 1154: uint8(255), + 1155: uint8(255), + 1156: uint8(255), + 1157: uint8(255), + 1158: uint8(255), + 1159: uint8(255), + 1160: uint8(255), + 1161: uint8(255), + 1162: uint8(255), + 1163: uint8(255), + 1164: uint8(255), + 1165: uint8(255), + 1166: uint8(255), + 1167: uint8(255), + 1168: uint8(255), + 1169: uint8(255), + 1170: uint8(255), + 1171: uint8(255), + 1172: uint8(255), + 1173: uint8(255), + 1174: uint8(255), + 1175: uint8(255), + 1176: uint8(255), + 1177: uint8(255), + 1178: uint8(255), + 1179: uint8(255), + 1180: uint8(255), + 1181: uint8(255), + 1182: uint8(255), + 1184: uint8(255), + 1185: uint8(255), + 1186: uint8(255), + 1187: uint8(255), + 1188: uint8(255), + 1189: uint8(255), + 1190: uint8(255), + 1191: uint8(255), + 1192: uint8(255), + 1193: uint8(255), + 1194: uint8(255), + 1195: uint8(255), + 1196: uint8(255), + 1197: uint8(255), + 1198: uint8(255), + 1199: uint8(255), + 1200: uint8(255), + 1201: uint8(255), + 1202: uint8(255), + 1203: uint8(255), + 1204: uint8(255), + 1205: uint8(255), + 1206: uint8(255), + 1207: uint8(255), + 1208: uint8(255), + 1209: uint8(255), + 1210: uint8(255), + 1211: uint8(255), + 1212: uint8(255), + 1213: uint8(255), + 1214: uint8(7), + 1216: uint8(255), + 1217: uint8(255), + 1218: uint8(255), + 1219: uint8(127), + 1226: uint8(7), + 1228: uint8(240), + 1230: uint8(255), + 1231: uint8(255), + 1232: uint8(255), + 1233: uint8(255), + 1234: uint8(255), + 1235: uint8(255), + 1236: uint8(255), + 1237: uint8(255), + 1238: uint8(255), + 1239: uint8(255), + 1240: uint8(255), + 1241: uint8(255), + 1242: uint8(255), + 1243: uint8(255), + 1244: uint8(255), + 1245: uint8(255), + 1246: uint8(255), + 1247: uint8(255), + 1248: uint8(255), + 1249: uint8(255), + 1250: uint8(255), + 1251: uint8(255), + 1252: uint8(255), + 1253: uint8(255), + 1254: uint8(255), + 1255: uint8(255), + 1256: uint8(255), + 1257: uint8(255), + 1258: uint8(255), + 1259: uint8(255), + 1260: uint8(255), + 1261: uint8(255), + 1262: uint8(255), + 1263: uint8(255), + 1264: uint8(255), + 1265: uint8(255), + 1266: uint8(255), + 1267: uint8(255), + 1268: uint8(255), + 1269: uint8(255), + 1270: uint8(255), + 1271: uint8(255), + 1272: uint8(255), + 1273: uint8(255), + 1274: uint8(255), + 1275: uint8(255), + 1276: uint8(255), + 1277: uint8(255), + 1278: uint8(255), + 1279: uint8(15), + 1280: uint8(16), + 1305: uint8(128), + 1329: uint8(64), + 1330: uint8(254), + 1331: uint8(7), + 1344: uint8(7), + 1346: uint8(255), + 1347: uint8(255), + 1348: uint8(255), + 1349: uint8(255), + 1350: uint8(255), + 1351: uint8(15), + 1352: uint8(255), + 1353: uint8(1), + 1354: uint8(3), + 1356: uint8(63), + 1376: uint8(255), + 1377: uint8(255), + 1378: uint8(255), + 1379: uint8(255), + 1380: uint8(1), + 1381: uint8(224), + 1382: uint8(191), + 1383: uint8(255), + 1384: uint8(255), + 1385: uint8(255), + 1386: uint8(255), + 1387: uint8(255), + 1388: uint8(255), + 1389: uint8(255), + 1390: uint8(255), + 1391: uint8(223), + 1392: uint8(255), + 1393: uint8(255), + 1394: uint8(15), + 1396: uint8(255), + 1397: uint8(255), + 1398: uint8(255), + 1399: uint8(255), + 1400: uint8(255), + 1401: uint8(135), + 1402: uint8(15), + 1404: uint8(255), + 1405: uint8(255), + 1406: uint8(17), + 1407: uint8(255), + 1408: uint8(255), + 1409: uint8(255), + 1410: uint8(255), + 1411: uint8(255), + 1412: uint8(255), + 1413: uint8(255), + 1414: uint8(255), + 1415: uint8(127), + 1416: uint8(253), + 1417: uint8(255), + 1418: uint8(255), + 1419: uint8(255), + 1420: uint8(255), + 1421: uint8(255), + 1422: uint8(255), + 1423: uint8(255), + 1424: uint8(255), + 1425: uint8(255), + 1426: uint8(255), + 1427: uint8(255), + 1428: uint8(255), + 1429: uint8(255), + 1430: uint8(255), + 1431: uint8(255), + 1432: uint8(255), + 1433: uint8(255), + 1434: uint8(255), + 1435: uint8(255), + 1436: uint8(255), + 1437: uint8(255), + 1438: uint8(255), + 1439: uint8(159), + 1440: uint8(255), + 1441: uint8(255), + 1442: uint8(255), + 1443: uint8(255), + 1444: uint8(255), + 1445: uint8(255), + 1446: uint8(255), + 1447: uint8(63), + 1449: uint8(120), + 1450: uint8(255), + 1451: uint8(255), + 1452: uint8(255), + 1455: uint8(4), + 1458: uint8(96), + 1460: uint8(16), + 1471: uint8(248), + 1472: uint8(255), + 1473: uint8(255), + 1474: uint8(255), + 1475: uint8(255), + 1476: uint8(255), + 1477: uint8(255), + 1478: uint8(255), + 1479: uint8(255), + 1480: uint8(255), + 1481: uint8(255), + 1488: uint8(255), + 1489: uint8(255), + 1490: uint8(255), + 1491: uint8(255), + 1492: uint8(255), + 1493: uint8(255), + 1494: uint8(255), + 1495: uint8(255), + 1496: uint8(63), + 1497: uint8(16), + 1498: uint8(39), + 1501: uint8(24), + 1502: uint8(240), + 1503: uint8(7), + 1532: uint8(255), + 1533: uint8(15), + 1537: uint8(224), + 1538: uint8(255), + 1539: uint8(255), + 1540: uint8(255), + 1541: uint8(255), + 1542: uint8(255), + 1543: uint8(255), + 1544: uint8(255), + 1545: uint8(255), + 1546: uint8(255), + 1547: uint8(255), + 1548: uint8(255), + 1549: uint8(255), + 1550: uint8(123), + 1551: uint8(252), + 1552: uint8(255), + 1553: uint8(255), + 1554: uint8(255), + 1555: uint8(255), + 1556: uint8(231), + 1557: uint8(199), + 1558: uint8(255), + 1559: uint8(255), + 1560: uint8(255), + 1561: uint8(231), + 1562: uint8(255), + 1563: uint8(255), + 1564: uint8(255), + 1565: uint8(255), + 1566: uint8(255), + 1567: uint8(255), + 1582: uint8(15), + 1583: uint8(7), + 1584: uint8(7), + 1586: uint8(63), +} + +func Xwcwidth(tls *TLS, wc Twchar_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1, v2 int32 + _, _ = v1, v2 + if Uint32FromInt32(wc) < uint32(0xff) { + if (wc+int32(1))&int32(0x7f) >= int32(0x21) { + v1 = int32(1) + } else { + if wc != 0 { + v2 = -int32(1) + } else { + v2 = 0 + } + v1 = v2 + } + return v1 + } + if Uint32FromInt32(wc)&uint32(0xfffeffff) < uint32(0xfffe) { + if Int32FromUint8(_table5[Int32FromUint8(_table5[wc>>int32(8)])*int32(32)+wc&int32(255)>>int32(3)])>>(wc&int32(7))&int32(1) != 0 { + return 0 + } + if Int32FromUint8(_wtable[Int32FromUint8(_wtable[wc>>int32(8)])*int32(32)+wc&int32(255)>>int32(3)])>>(wc&int32(7))&int32(1) != 0 { + return int32(2) + } + return int32(1) + } + if wc&int32(0xfffe) == int32(0xfffe) { + return -int32(1) + } + if Uint32FromInt32(wc)-uint32(0x20000) < uint32(0x20000) { + return int32(2) + } + if wc == int32(0xe0001) || Uint32FromInt32(wc)-uint32(0xe0020) < uint32(0x5f) || Uint32FromInt32(wc)-uint32(0xe0100) < uint32(0xef) { + return 0 + } + return int32(1) +} + +const d_fileno = 0 + +type Tino_t = uint64 + +type Tdirent = struct { + Fd_ino Tino_t + Fd_off Toff_t + Fd_reclen uint16 + Fd_type uint8 + Fd_name [256]int8 +} + +func Xalphasort(tls *TLS, a uintptr, b uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v a=%v b=%v, (%v:)", tls, a, b, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrcoll(tls, **(**uintptr)(__ccgo_up(a))+19, **(**uintptr)(__ccgo_up(b))+19) +} + +type TDIR = struct { + Ftell Toff_t + Ffd int32 + Fbuf_pos int32 + Fbuf_end int32 + Flock [1]int32 + Fbuf [2048]int8 +} + +type t__dirstream = TDIR + +func Xclosedir(tls *TLS, dir uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v dir=%v, (%v:)", tls, dir, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret int32 + _ = ret + ret = Xclose(tls, (*TDIR)(unsafe.Pointer(dir)).Ffd) + Xfree(tls, dir) + return ret +} + +func Xdirfd(tls *TLS, d uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v d=%v, (%v:)", tls, d, origin(2)) + defer func() { trc("-> %v", r) }() + } + return (*TDIR)(unsafe.Pointer(d)).Ffd +} + +const AT_EACCESS = 512 +const AT_FDCWD = -100 +const AT_REMOVEDIR = 512 +const AT_SYMLINK_FOLLOW = 1024 +const AT_SYMLINK_NOFOLLOW = 256 +const FD_CLOEXEC = 1 +const F_DUPFD = 0 +const F_DUPFD_CLOEXEC = 1030 +const F_GETFD = 1 +const F_GETFL = 3 +const F_GETLK = 5 +const F_GETOWN = 9 +const F_GETOWNER_UIDS = 17 +const F_GETOWN_EX = 16 +const F_GETSIG = 11 +const F_OFD_GETLK = 36 +const F_OFD_SETLK = 37 +const F_OFD_SETLKW = 38 +const F_RDLCK = 0 +const F_SETFD = 2 +const F_SETFL = 4 +const F_SETLK = 6 +const F_SETLKW = 7 +const F_SETOWN = 8 +const F_SETOWN_EX = 15 +const F_SETSIG = 10 +const F_UNLCK = 2 +const F_WRLCK = 1 +const O_ACCMODE = 2097155 +const O_APPEND = 1024 +const O_ASYNC = 8192 +const O_CLOEXEC = 524288 +const O_CREAT = 64 +const O_DIRECT = 16384 +const O_DIRECTORY = 65536 +const O_DSYNC = 4096 +const O_EXCL = 128 +const O_EXEC = 2097152 +const O_LARGEFILE = 32768 +const O_NDELAY = 2048 +const O_NOATIME = 262144 +const O_NOCTTY = 256 +const O_NOFOLLOW = 131072 +const O_NONBLOCK = 2048 +const O_PATH = 2097152 +const O_RDONLY = 0 +const O_RDWR = 2 +const O_RSYNC = 1052672 +const O_SEARCH = 2097152 +const O_SYNC = 1052672 +const O_TMPFILE = 4259840 +const O_TRUNC = 512 +const O_TTY_INIT = 0 +const O_WRONLY = 1 +const POSIX_FADV_DONTNEED = 4 +const POSIX_FADV_NOREUSE = 5 +const POSIX_FADV_NORMAL = 0 +const POSIX_FADV_RANDOM = 1 +const POSIX_FADV_SEQUENTIAL = 2 +const POSIX_FADV_WILLNEED = 3 +const S_IFBLK = 24576 +const S_IFCHR = 8192 +const S_IFDIR = 16384 +const S_IFIFO = 4096 +const S_IFLNK = 40960 +const S_IFMT = 61440 +const S_IFREG = 32768 +const S_IFSOCK = 49152 +const S_IRGRP = 32 +const S_IROTH = 4 +const S_IRUSR = 256 +const S_IRWXG = 56 +const S_IRWXO = 7 +const S_IRWXU = 448 +const S_ISGID = 1024 +const S_ISUID = 2048 +const S_ISVTX = 512 +const S_IWGRP = 16 +const S_IWOTH = 2 +const S_IWUSR = 128 +const S_IXGRP = 8 +const S_IXOTH = 1 +const S_IXUSR = 64 +const UTIME_NOW = 1073741823 +const UTIME_OMIT = 1073741822 + +type Tflock = struct { + Fl_type int16 + Fl_whence int16 + Fl_start Toff_t + Fl_len Toff_t + Fl_pid Tpid_t +} + +type Tnlink_t = uint32 + +type Tblksize_t = int32 + +type Tdev_t = uint64 + +type Tblkcnt_t = int64 + +type Tstat = struct { + Fst_dev Tdev_t + Fst_ino Tino_t + Fst_mode Tmode_t + Fst_nlink Tnlink_t + Fst_uid Tuid_t + Fst_gid Tgid_t + Fst_rdev Tdev_t + F__pad uint64 + Fst_size Toff_t + Fst_blksize Tblksize_t + F__pad2 int32 + Fst_blocks Tblkcnt_t + Fst_atim Ttimespec + Fst_mtim Ttimespec + Fst_ctim Ttimespec + F__unused [2]uint32 +} + +func Xfdopendir(tls *TLS, fd int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(144) + defer tls.Free(144) + var dir, v1 uintptr + var _ /* st at bp+0 */ Tstat + _, _ = dir, v1 + if Xfstat(tls, fd, bp) < 0 { + return uintptr(0) + } + if Xfcntl(tls, fd, int32(F_GETFL), 0)&int32(O_PATH) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EBADF) + return uintptr(0) + } + if !((**(**Tstat)(__ccgo_up(bp))).Fst_mode&Uint32FromInt32(S_IFMT) == Uint32FromInt32(S_IFDIR)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOTDIR) + return uintptr(0) + } + v1 = Xcalloc(tls, uint64(1), uint64(2072)) + dir = v1 + if !(v1 != 0) { + return uintptr(0) + } + Xfcntl(tls, fd, int32(F_SETFD), VaList(bp+136, int32(FD_CLOEXEC))) + (*TDIR)(unsafe.Pointer(dir)).Ffd = fd + return dir +} + +const AT_EMPTY_PATH = 4096 +const AT_NO_AUTOMOUNT = 2048 +const AT_RECURSIVE = 32768 +const AT_STATX_DONT_SYNC = 16384 +const AT_STATX_FORCE_SYNC = 8192 +const AT_STATX_SYNC_AS_STAT = 0 +const AT_STATX_SYNC_TYPE = 24576 +const DN_ACCESS = 1 +const DN_ATTRIB = 32 +const DN_CREATE = 4 +const DN_DELETE = 8 +const DN_MODIFY = 2 +const DN_MULTISHOT = 2147483648 +const DN_RENAME = 16 +const DT_BLK = 6 +const DT_CHR = 2 +const DT_DIR = 4 +const DT_FIFO = 1 +const DT_LNK = 10 +const DT_REG = 8 +const DT_SOCK = 12 +const DT_UNKNOWN = 0 +const DT_WHT = 14 +const FALLOC_FL_KEEP_SIZE = 1 +const FALLOC_FL_PUNCH_HOLE = 2 +const FAPPEND = 1024 +const FASYNC = 8192 +const FFSYNC = 1052672 +const FNDELAY = 2048 +const FNONBLOCK = 2048 +const F_ADD_SEALS = 1033 +const F_CANCELLK = 1029 +const F_GETLEASE = 1025 +const F_GETPIPE_SZ = 1032 +const F_GET_FILE_RW_HINT = 1037 +const F_GET_RW_HINT = 1035 +const F_GET_SEALS = 1034 +const F_NOTIFY = 1026 +const F_OWNER_GID = 2 +const F_OWNER_PGRP = 2 +const F_OWNER_PID = 1 +const F_OWNER_TID = 0 +const F_SEAL_FUTURE_WRITE = 16 +const F_SEAL_GROW = 4 +const F_SEAL_SEAL = 1 +const F_SEAL_SHRINK = 2 +const F_SEAL_WRITE = 8 +const F_SETLEASE = 1024 +const F_SETPIPE_SZ = 1031 +const F_SET_FILE_RW_HINT = 1038 +const F_SET_RW_HINT = 1036 +const MAX_HANDLE_SZ = 128 +const RWF_WRITE_LIFE_NOT_SET = 0 +const RWH_WRITE_LIFE_EXTREME = 5 +const RWH_WRITE_LIFE_LONG = 4 +const RWH_WRITE_LIFE_MEDIUM = 3 +const RWH_WRITE_LIFE_NONE = 1 +const RWH_WRITE_LIFE_SHORT = 2 +const SPLICE_F_GIFT = 8 +const SPLICE_F_MORE = 4 +const SPLICE_F_MOVE = 1 +const SPLICE_F_NONBLOCK = 2 +const SYNC_FILE_RANGE_WAIT_AFTER = 4 +const SYNC_FILE_RANGE_WAIT_BEFORE = 1 +const SYNC_FILE_RANGE_WRITE = 2 +const alloca = 0 +const loff_t = 0 + +type Tiovec = struct { + Fiov_base uintptr + Fiov_len Tsize_t +} + +type Tfile_handle = struct { + Fhandle_bytes uint32 + Fhandle_type int32 +} + +type Tf_owner_ex = struct { + Ftype1 int32 + Fpid Tpid_t +} + +func Xopendir(tls *TLS, name uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + var dir, v2 uintptr + var fd, v1 int32 + _, _, _, _ = dir, fd, v1, v2 + v1 = Xopen(tls, name, Int32FromInt32(O_RDONLY)|Int32FromInt32(O_DIRECTORY)|Int32FromInt32(O_CLOEXEC), 0) + fd = v1 + if v1 < 0 { + return uintptr(0) + } + v2 = Xcalloc(tls, uint64(1), uint64(2072)) + dir = v2 + if !(v2 != 0) { + X__syscall1(tls, int64(SYS_close), int64(fd)) + return uintptr(0) + } + (*TDIR)(unsafe.Pointer(dir)).Ffd = fd + return dir +} + +type Tptrdiff_t = int64 + +type Tdirstream_buf_alignment_check = [1]int8 + +func Xreaddir(tls *TLS, dir uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v dir=%v, (%v:)", tls, dir, origin(2)) + defer func() { trc("-> %v", r) }() + } + var de uintptr + var len1 int32 + _, _ = de, len1 + if (*TDIR)(unsafe.Pointer(dir)).Fbuf_pos >= (*TDIR)(unsafe.Pointer(dir)).Fbuf_end { + len1 = int32(X__syscall3(tls, int64(SYS_getdents64), int64((*TDIR)(unsafe.Pointer(dir)).Ffd), int64(dir+24), Int64FromUint64(Uint64FromInt64(2048)))) + if len1 <= 0 { + if len1 < 0 && len1 != -int32(ENOENT) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = -len1 + } + return uintptr(0) + } + (*TDIR)(unsafe.Pointer(dir)).Fbuf_end = len1 + (*TDIR)(unsafe.Pointer(dir)).Fbuf_pos = 0 + } + de = dir + 24 + uintptr((*TDIR)(unsafe.Pointer(dir)).Fbuf_pos) + **(**int32)(__ccgo_up(dir + 12)) += Int32FromUint16((*Tdirent)(unsafe.Pointer(de)).Fd_reclen) + (*TDIR)(unsafe.Pointer(dir)).Ftell = (*Tdirent)(unsafe.Pointer(de)).Fd_off + return de +} + +func Xreaddir_r(tls *TLS, dir uintptr, buf uintptr, result uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v dir=%v buf=%v result=%v, (%v:)", tls, dir, buf, result, origin(2)) + defer func() { trc("-> %v", r) }() + } + var de uintptr + var errno_save, ret, v1 int32 + _, _, _, _ = de, errno_save, ret, v1 + errno_save = **(**int32)(__ccgo_up(X__errno_location(tls))) + ___lock(tls, dir+20) + **(**int32)(__ccgo_up(X__errno_location(tls))) = 0 + de = Xreaddir(tls, dir) + v1 = **(**int32)(__ccgo_up(X__errno_location(tls))) + ret = v1 + if v1 != 0 { + ___unlock(tls, dir+20) + return ret + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = errno_save + if de != 0 { + Xmemcpy(tls, buf, de, uint64((*Tdirent)(unsafe.Pointer(de)).Fd_reclen)) + } else { + buf = UintptrFromInt32(0) + } + ___unlock(tls, dir+20) + **(**uintptr)(__ccgo_up(result)) = buf + return 0 +} + +func Xrewinddir(tls *TLS, dir uintptr) { + if __ccgo_strace { + trc("tls=%v dir=%v, (%v:)", tls, dir, origin(2)) + } + var v1 int32 + _ = v1 + ___lock(tls, dir+20) + Xlseek(tls, (*TDIR)(unsafe.Pointer(dir)).Ffd, 0, SEEK_SET) + v1 = Int32FromInt32(0) + (*TDIR)(unsafe.Pointer(dir)).Fbuf_end = v1 + (*TDIR)(unsafe.Pointer(dir)).Fbuf_pos = v1 + (*TDIR)(unsafe.Pointer(dir)).Ftell = 0 + ___unlock(tls, dir+20) +} + +type t__ccgo_fp__Xscandir_2 = func(*TLS, uintptr) int32 + +type t__ccgo_fp__Xscandir_3 = func(*TLS, uintptr, uintptr) int32 + +func Xscandir(tls *TLS, path uintptr, res uintptr, __ccgo_fp_sel uintptr, __ccgo_fp_cmp uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v res=%v __ccgo_fp_sel=%v __ccgo_fp_cmp=%v, (%v:)", tls, path, res, __ccgo_fp_sel, __ccgo_fp_cmp, origin(2)) + defer func() { trc("-> %v", r) }() + } + var cnt, len1, v2 Tsize_t + var d, de, names, tmp, v1 uintptr + var old_errno int32 + _, _, _, _, _, _, _, _, _ = cnt, d, de, len1, names, old_errno, tmp, v1, v2 + d = Xopendir(tls, path) + names = uintptr(0) + cnt = uint64(0) + len1 = uint64(0) + old_errno = **(**int32)(__ccgo_up(X__errno_location(tls))) + if !(d != 0) { + return -int32(1) + } + for { + **(**int32)(__ccgo_up(X__errno_location(tls))) = 0 + v1 = Xreaddir(tls, d) + de = v1 + if !(v1 != 0) { + break + } + if __ccgo_fp_sel != 0 && !((*(*func(*TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_sel})))(tls, de) != 0) { + continue + } + if cnt >= len1 { + len1 = uint64(2)*len1 + uint64(1) + if len1 > Uint64FromUint64(0xffffffffffffffff)/Uint64FromInt64(8) { + break + } + tmp = Xrealloc(tls, names, len1*uint64(8)) + if !(tmp != 0) { + break + } + names = tmp + } + **(**uintptr)(__ccgo_up(names + uintptr(cnt)*8)) = Xmalloc(tls, uint64((*Tdirent)(unsafe.Pointer(de)).Fd_reclen)) + if !(**(**uintptr)(__ccgo_up(names + uintptr(cnt)*8)) != 0) { + break + } + v2 = cnt + cnt = cnt + 1 + Xmemcpy(tls, **(**uintptr)(__ccgo_up(names + uintptr(v2)*8)), de, uint64((*Tdirent)(unsafe.Pointer(de)).Fd_reclen)) + } + Xclosedir(tls, d) + if **(**int32)(__ccgo_up(X__errno_location(tls))) != 0 { + if names != 0 { + for { + v2 = cnt + cnt = cnt - 1 + if !(v2 > uint64(0)) { + break + } + Xfree(tls, **(**uintptr)(__ccgo_up(names + uintptr(cnt)*8))) + } + } + Xfree(tls, names) + return -int32(1) + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = old_errno + if __ccgo_fp_cmp != 0 { + Xqsort(tls, names, cnt, uint64(8), __ccgo_fp_cmp) + } + **(**uintptr)(__ccgo_up(res)) = names + return Int32FromUint64(cnt) +} + +func Xseekdir(tls *TLS, dir uintptr, off int64) { + if __ccgo_strace { + trc("tls=%v dir=%v off=%v, (%v:)", tls, dir, off, origin(2)) + } + var v1 int32 + _ = v1 + ___lock(tls, dir+20) + (*TDIR)(unsafe.Pointer(dir)).Ftell = Xlseek(tls, (*TDIR)(unsafe.Pointer(dir)).Ffd, off, SEEK_SET) + v1 = Int32FromInt32(0) + (*TDIR)(unsafe.Pointer(dir)).Fbuf_end = v1 + (*TDIR)(unsafe.Pointer(dir)).Fbuf_pos = v1 + ___unlock(tls, dir+20) +} + +func Xtelldir(tls *TLS, dir uintptr) (r int64) { + if __ccgo_strace { + trc("tls=%v dir=%v, (%v:)", tls, dir, origin(2)) + defer func() { trc("-> %v", r) }() + } + return (*TDIR)(unsafe.Pointer(dir)).Ftell +} + +func Xversionsort(tls *TLS, a uintptr, b uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v a=%v b=%v, (%v:)", tls, a, b, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrverscmp(tls, **(**uintptr)(__ccgo_up(a))+19, **(**uintptr)(__ccgo_up(b))+19) +} + +func X__reset_tls(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + var i, n Tsize_t + var mem, p uintptr + var self Tpthread_t + _, _, _, _, _ = i, mem, n, p, self + self = uintptr(___get_tp(tls)) + n = **(**Tuintptr_t)(__ccgo_up((*t__pthread)(unsafe.Pointer(self)).Fdtv)) + if n != 0 { + p = X__libc.Ftls_head + i = Uint64FromInt32(1) + for { + if !(i <= n) { + break + } + mem = uintptr(**(**Tuintptr_t)(__ccgo_up((*t__pthread)(unsafe.Pointer(self)).Fdtv + uintptr(i)*8)) - Uint64FromInt32(DTP_OFFSET)) + Xmemcpy(tls, mem, (*Ttls_module)(unsafe.Pointer(p)).Fimage, (*Ttls_module)(unsafe.Pointer(p)).Flen1) + Xmemset(tls, mem+uintptr((*Ttls_module)(unsafe.Pointer(p)).Flen1), 0, (*Ttls_module)(unsafe.Pointer(p)).Fsize-(*Ttls_module)(unsafe.Pointer(p)).Flen1) + goto _1 + _1: + ; + i = i + 1 + p = (*Ttls_module)(unsafe.Pointer(p)).Fnext + } + } +} + +func X__init_ssp(tls *TLS, entropy uintptr) { + if __ccgo_strace { + trc("tls=%v entropy=%v, (%v:)", tls, entropy, origin(2)) + } + if entropy != 0 { + Xmemcpy(tls, uintptr(unsafe.Pointer(&X__stack_chk_guard)), entropy, uint64(8)) + } else { + X__stack_chk_guard = Tuintptr_t(uintptr(unsafe.Pointer(&X__stack_chk_guard))) * uint64(1103515245) + } + /* Sacrifice 8 bits of entropy on 64bit to prevent leaking/ + * overwriting the canary via string-manipulation functions. + * The NULL byte is on the second byte so that off-by-ones can + * still be detected. Endianness is taken care of + * automatically. */ + **(**int8)(__ccgo_up(uintptr(unsafe.Pointer(&X__stack_chk_guard)) + 1)) = 0 + (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Fcanary = X__stack_chk_guard +} + +func X__stack_chk_fail(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + **(**int8)(__ccgo_up(UintptrFromInt32(0))) = 0 +} + +func X__stack_chk_fail_local(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + X__stack_chk_fail(tls) +} + +const L_INCR = 1 +const L_SET = 0 +const L_XTND = 2 + +func _dummy(tls *TLS, old uintptr, new1 uintptr) { +} + +func Xclearenv(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + var e, v1 uintptr + _, _ = e, v1 + e = Xenviron + Xenviron = uintptr(0) + if e != 0 { + for **(**uintptr)(__ccgo_up(e)) != 0 { + v1 = e + e += 8 + X__env_rm_add(tls, **(**uintptr)(__ccgo_up(v1)), uintptr(0)) + } + } + return 0 +} + +func Xgetenv(tls *TLS, name uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + var e uintptr + var l Tsize_t + _, _ = e, l + l = Uint64FromInt64(int64(X__strchrnul(tls, name, int32('='))) - int64(name)) + if l != 0 && !(**(**int8)(__ccgo_up(name + uintptr(l))) != 0) && Xenviron != 0 { + e = Xenviron + for { + if !(**(**uintptr)(__ccgo_up(e)) != 0) { + break + } + if !(Xstrncmp(tls, name, **(**uintptr)(__ccgo_up(e)), l) != 0) && int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(e)) + uintptr(l)))) == int32('=') { + return **(**uintptr)(__ccgo_up(e)) + uintptr(l) + uintptr(1) + } + goto _1 + _1: + ; + e += 8 + } + } + return uintptr(0) +} + +func _dummy1(tls *TLS, old uintptr, new1 uintptr) { +} + +func X__putenv(tls *TLS, s uintptr, l Tsize_t, r uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v s=%v l=%v r=%v, (%v:)", tls, s, l, r, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var e, newenv, tmp, v2 uintptr + var i Tsize_t + _, _, _, _, _ = e, i, newenv, tmp, v2 + i = uint64(0) + if Xenviron != 0 { + e = Xenviron + for { + if !(**(**uintptr)(__ccgo_up(e)) != 0) { + break + } + if !(Xstrncmp(tls, s, **(**uintptr)(__ccgo_up(e)), l+uint64(1)) != 0) { + tmp = **(**uintptr)(__ccgo_up(e)) + **(**uintptr)(__ccgo_up(e)) = s + X__env_rm_add(tls, tmp, r) + return 0 + } + goto _1 + _1: + ; + e += 8 + i = i + 1 + } + } + if Xenviron == _oldenv { + newenv = Xrealloc(tls, _oldenv, uint64(8)*(i+uint64(2))) + if !(newenv != 0) { + goto oom + } + } else { + newenv = Xmalloc(tls, uint64(8)*(i+uint64(2))) + if !(newenv != 0) { + goto oom + } + if i != 0 { + Xmemcpy(tls, newenv, Xenviron, uint64(8)*i) + } + Xfree(tls, _oldenv) + } + **(**uintptr)(__ccgo_up(newenv + uintptr(i)*8)) = s + **(**uintptr)(__ccgo_up(newenv + uintptr(i+uint64(1))*8)) = uintptr(0) + v2 = newenv + _oldenv = v2 + Xenviron = v2 + if r != 0 { + X__env_rm_add(tls, uintptr(0), r) + } + return 0 + goto oom +oom: + ; + Xfree(tls, r) + return -int32(1) +} + +var _oldenv uintptr + +func Xputenv(tls *TLS, s uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l Tsize_t + _ = l + l = Uint64FromInt64(int64(X__strchrnul(tls, s, int32('='))) - int64(s)) + if !(l != 0) || !(**(**int8)(__ccgo_up(s + uintptr(l))) != 0) { + return Xunsetenv(tls, s) + } + return X__putenv(tls, s, l, uintptr(0)) +} + +const L_cuserid = 20 +const NL_NMAX = 16 + +type Tcookie_io_functions_t = struct { + Fread uintptr + Fwrite uintptr + Fseek uintptr + Fclose1 uintptr +} + +type T_IO_cookie_io_functions_t = Tcookie_io_functions_t + +func Xsecure_getenv(tls *TLS, name uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 uintptr + _ = v1 + if X__libc.Fsecure != 0 { + v1 = UintptrFromInt32(0) + } else { + v1 = Xgetenv(tls, name) + } + return v1 +} + +func X__env_rm_add(tls *TLS, old uintptr, new1 uintptr) { + if __ccgo_strace { + trc("tls=%v old=%v new1=%v, (%v:)", tls, old, new1, origin(2)) + } + var i, v3 Tsize_t + var t, v2 uintptr + _, _, _, _ = i, t, v2, v3 + i = uint64(0) + for { + if !(i < _env_alloced_n) { + break + } + if **(**uintptr)(__ccgo_up(_env_alloced + uintptr(i)*8)) == old { + **(**uintptr)(__ccgo_up(_env_alloced + uintptr(i)*8)) = new1 + Xfree(tls, old) + return + } else { + if !(**(**uintptr)(__ccgo_up(_env_alloced + uintptr(i)*8)) != 0) && new1 != 0 { + **(**uintptr)(__ccgo_up(_env_alloced + uintptr(i)*8)) = new1 + new1 = uintptr(0) + } + } + goto _1 + _1: + ; + i = i + 1 + } + if !(new1 != 0) { + return + } + t = Xrealloc(tls, _env_alloced, uint64(8)*(_env_alloced_n+uint64(1))) + if !(t != 0) { + return + } + v2 = t + _env_alloced = v2 + v3 = _env_alloced_n + _env_alloced_n = _env_alloced_n + 1 + **(**uintptr)(__ccgo_up(v2 + uintptr(v3)*8)) = new1 +} + +var _env_alloced uintptr + +var _env_alloced_n Tsize_t + +func Xsetenv(tls *TLS, var1 uintptr, value uintptr, overwrite int32) (r int32) { + if __ccgo_strace { + trc("tls=%v var1=%v value=%v overwrite=%v, (%v:)", tls, var1, value, overwrite, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l1, l2, v1 Tsize_t + var s uintptr + var v2 bool + _, _, _, _, _ = l1, l2, s, v1, v2 + if v2 = !(var1 != 0); !v2 { + v1 = Uint64FromInt64(int64(X__strchrnul(tls, var1, int32('='))) - int64(var1)) + l1 = v1 + } + if v2 || !(v1 != 0) || **(**int8)(__ccgo_up(var1 + uintptr(l1))) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + if !(overwrite != 0) && Xgetenv(tls, var1) != 0 { + return 0 + } + l2 = _strlen(tls, value) + s = Xmalloc(tls, l1+l2+uint64(2)) + if !(s != 0) { + return -int32(1) + } + Xmemcpy(tls, s, var1, l1) + **(**int8)(__ccgo_up(s + uintptr(l1))) = int8('=') + Xmemcpy(tls, s+uintptr(l1)+uintptr(1), value, l2+uint64(1)) + return X__putenv(tls, s, l1, s) +} + +func _dummy2(tls *TLS, old uintptr, new1 uintptr) { +} + +func Xunsetenv(tls *TLS, name uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + var e, eo, v2 uintptr + var l Tsize_t + _, _, _, _ = e, eo, l, v2 + l = Uint64FromInt64(int64(X__strchrnul(tls, name, int32('='))) - int64(name)) + if !(l != 0) || **(**int8)(__ccgo_up(name + uintptr(l))) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + if Xenviron != 0 { + e = Xenviron + eo = e + for { + if !(**(**uintptr)(__ccgo_up(e)) != 0) { + break + } + if !(Xstrncmp(tls, name, **(**uintptr)(__ccgo_up(e)), l) != 0) && int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(e)) + uintptr(l)))) == int32('=') { + X__env_rm_add(tls, **(**uintptr)(__ccgo_up(e)), uintptr(0)) + } else { + if eo != e { + v2 = eo + eo += 8 + **(**uintptr)(__ccgo_up(v2)) = **(**uintptr)(__ccgo_up(e)) + } else { + eo += 8 + } + } + goto _1 + _1: + ; + e += 8 + } + if eo != e { + **(**uintptr)(__ccgo_up(eo)) = uintptr(0) + } + } + return 0 +} + +/* mips has one error code outside of the 8-bit range due to a + * historical typo, so we just remap it. */ + +type Terrmsgstr_t = struct { + Fstr0 [21]int8 + FstrEILSEQ [22]int8 + FstrEDOM [13]int8 + FstrERANGE [25]int8 + FstrENOTTY [10]int8 + FstrEACCES [18]int8 + FstrEPERM [24]int8 + FstrENOENT [26]int8 + FstrESRCH [16]int8 + FstrEEXIST [12]int8 + FstrEOVERFLOW [30]int8 + FstrENOSPC [24]int8 + FstrENOMEM [14]int8 + FstrEBUSY [14]int8 + FstrEINTR [24]int8 + FstrEAGAIN [33]int8 + FstrESPIPE [13]int8 + FstrEXDEV [18]int8 + FstrEROFS [22]int8 + FstrENOTEMPTY [20]int8 + FstrECONNRESET [25]int8 + FstrETIMEDOUT [20]int8 + FstrECONNREFUSED [19]int8 + FstrEHOSTDOWN [13]int8 + FstrEHOSTUNREACH [20]int8 + FstrEADDRINUSE [15]int8 + FstrEPIPE [12]int8 + FstrEIO [10]int8 + FstrENXIO [26]int8 + FstrENOTBLK [22]int8 + FstrENODEV [15]int8 + FstrENOTDIR [16]int8 + FstrEISDIR [15]int8 + FstrETXTBSY [15]int8 + FstrENOEXEC [18]int8 + FstrEINVAL [17]int8 + FstrE2BIG [23]int8 + FstrELOOP [19]int8 + FstrENAMETOOLONG [18]int8 + FstrENFILE [30]int8 + FstrEMFILE [30]int8 + FstrEBADF [20]int8 + FstrECHILD [17]int8 + FstrEFAULT [12]int8 + FstrEFBIG [15]int8 + FstrEMLINK [15]int8 + FstrENOLCK [19]int8 + FstrEDEADLK [30]int8 + FstrENOTRECOVERABLE [22]int8 + FstrEOWNERDEAD [20]int8 + FstrECANCELED [19]int8 + FstrENOSYS [25]int8 + FstrENOMSG [27]int8 + FstrEIDRM [19]int8 + FstrENOSTR [20]int8 + FstrENODATA [18]int8 + FstrETIME [15]int8 + FstrENOSR [25]int8 + FstrENOLINK [22]int8 + FstrEPROTO [15]int8 + FstrEBADMSG [12]int8 + FstrEBADFD [29]int8 + FstrENOTSOCK [13]int8 + FstrEDESTADDRREQ [29]int8 + FstrEMSGSIZE [18]int8 + FstrEPROTOTYPE [31]int8 + FstrENOPROTOOPT [23]int8 + FstrEPROTONOSUPPORT [23]int8 + FstrESOCKTNOSUPPORT [26]int8 + FstrENOTSUP [14]int8 + FstrEPFNOSUPPORT [30]int8 + FstrEAFNOSUPPORT [41]int8 + FstrEADDRNOTAVAIL [22]int8 + FstrENETDOWN [16]int8 + FstrENETUNREACH [20]int8 + FstrENETRESET [28]int8 + FstrECONNABORTED [19]int8 + FstrENOBUFS [26]int8 + FstrEISCONN [20]int8 + FstrENOTCONN [21]int8 + FstrESHUTDOWN [34]int8 + FstrEALREADY [30]int8 + FstrEINPROGRESS [22]int8 + FstrESTALE [18]int8 + FstrEREMOTEIO [17]int8 + FstrEDQUOT [15]int8 + FstrENOMEDIUM [16]int8 + FstrEMEDIUMTYPE [18]int8 + FstrEMULTIHOP [19]int8 + FstrENOKEY [27]int8 + FstrEKEYEXPIRED [16]int8 + FstrEKEYREVOKED [21]int8 + FstrEKEYREJECTED [28]int8 +} + +/* mips has one error code outside of the 8-bit range due to a + * historical typo, so we just remap it. */ + +var _errmsgstr = Terrmsgstr_t{ + Fstr0: [21]int8{'N', 'o', ' ', 'e', 'r', 'r', 'o', 'r', ' ', 'i', 'n', 'f', 'o', 'r', 'm', 'a', 't', 'i', 'o', 'n'}, + FstrEILSEQ: [22]int8{'I', 'l', 'l', 'e', 'g', 'a', 'l', ' ', 'b', 'y', 't', 'e', ' ', 's', 'e', 'q', 'u', 'e', 'n', 'c', 'e'}, + FstrEDOM: [13]int8{'D', 'o', 'm', 'a', 'i', 'n', ' ', 'e', 'r', 'r', 'o', 'r'}, + FstrERANGE: [25]int8{'R', 'e', 's', 'u', 'l', 't', ' ', 'n', 'o', 't', ' ', 'r', 'e', 'p', 'r', 'e', 's', 'e', 'n', 't', 'a', 'b', 'l', 'e'}, + FstrENOTTY: [10]int8{'N', 'o', 't', ' ', 'a', ' ', 't', 't', 'y'}, + FstrEACCES: [18]int8{'P', 'e', 'r', 'm', 'i', 's', 's', 'i', 'o', 'n', ' ', 'd', 'e', 'n', 'i', 'e', 'd'}, + FstrEPERM: [24]int8{'O', 'p', 'e', 'r', 'a', 't', 'i', 'o', 'n', ' ', 'n', 'o', 't', ' ', 'p', 'e', 'r', 'm', 'i', 't', 't', 'e', 'd'}, + FstrENOENT: [26]int8{'N', 'o', ' ', 's', 'u', 'c', 'h', ' ', 'f', 'i', 'l', 'e', ' ', 'o', 'r', ' ', 'd', 'i', 'r', 'e', 'c', 't', 'o', 'r', 'y'}, + FstrESRCH: [16]int8{'N', 'o', ' ', 's', 'u', 'c', 'h', ' ', 'p', 'r', 'o', 'c', 'e', 's', 's'}, + FstrEEXIST: [12]int8{'F', 'i', 'l', 'e', ' ', 'e', 'x', 'i', 's', 't', 's'}, + FstrEOVERFLOW: [30]int8{'V', 'a', 'l', 'u', 'e', ' ', 't', 'o', 'o', ' ', 'l', 'a', 'r', 'g', 'e', ' ', 'f', 'o', 'r', ' ', 'd', 'a', 't', 'a', ' ', 't', 'y', 'p', 'e'}, + FstrENOSPC: [24]int8{'N', 'o', ' ', 's', 'p', 'a', 'c', 'e', ' ', 'l', 'e', 'f', 't', ' ', 'o', 'n', ' ', 'd', 'e', 'v', 'i', 'c', 'e'}, + FstrENOMEM: [14]int8{'O', 'u', 't', ' ', 'o', 'f', ' ', 'm', 'e', 'm', 'o', 'r', 'y'}, + FstrEBUSY: [14]int8{'R', 'e', 's', 'o', 'u', 'r', 'c', 'e', ' ', 'b', 'u', 's', 'y'}, + FstrEINTR: [24]int8{'I', 'n', 't', 'e', 'r', 'r', 'u', 'p', 't', 'e', 'd', ' ', 's', 'y', 's', 't', 'e', 'm', ' ', 'c', 'a', 'l', 'l'}, + FstrEAGAIN: [33]int8{'R', 'e', 's', 'o', 'u', 'r', 'c', 'e', ' ', 't', 'e', 'm', 'p', 'o', 'r', 'a', 'r', 'i', 'l', 'y', ' ', 'u', 'n', 'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e'}, + FstrESPIPE: [13]int8{'I', 'n', 'v', 'a', 'l', 'i', 'd', ' ', 's', 'e', 'e', 'k'}, + FstrEXDEV: [18]int8{'C', 'r', 'o', 's', 's', '-', 'd', 'e', 'v', 'i', 'c', 'e', ' ', 'l', 'i', 'n', 'k'}, + FstrEROFS: [22]int8{'R', 'e', 'a', 'd', '-', 'o', 'n', 'l', 'y', ' ', 'f', 'i', 'l', 'e', ' ', 's', 'y', 's', 't', 'e', 'm'}, + FstrENOTEMPTY: [20]int8{'D', 'i', 'r', 'e', 'c', 't', 'o', 'r', 'y', ' ', 'n', 'o', 't', ' ', 'e', 'm', 'p', 't', 'y'}, + FstrECONNRESET: [25]int8{'C', 'o', 'n', 'n', 'e', 'c', 't', 'i', 'o', 'n', ' ', 'r', 'e', 's', 'e', 't', ' ', 'b', 'y', ' ', 'p', 'e', 'e', 'r'}, + FstrETIMEDOUT: [20]int8{'O', 'p', 'e', 'r', 'a', 't', 'i', 'o', 'n', ' ', 't', 'i', 'm', 'e', 'd', ' ', 'o', 'u', 't'}, + FstrECONNREFUSED: [19]int8{'C', 'o', 'n', 'n', 'e', 'c', 't', 'i', 'o', 'n', ' ', 'r', 'e', 'f', 'u', 's', 'e', 'd'}, + FstrEHOSTDOWN: [13]int8{'H', 'o', 's', 't', ' ', 'i', 's', ' ', 'd', 'o', 'w', 'n'}, + FstrEHOSTUNREACH: [20]int8{'H', 'o', 's', 't', ' ', 'i', 's', ' ', 'u', 'n', 'r', 'e', 'a', 'c', 'h', 'a', 'b', 'l', 'e'}, + FstrEADDRINUSE: [15]int8{'A', 'd', 'd', 'r', 'e', 's', 's', ' ', 'i', 'n', ' ', 'u', 's', 'e'}, + FstrEPIPE: [12]int8{'B', 'r', 'o', 'k', 'e', 'n', ' ', 'p', 'i', 'p', 'e'}, + FstrEIO: [10]int8{'I', '/', 'O', ' ', 'e', 'r', 'r', 'o', 'r'}, + FstrENXIO: [26]int8{'N', 'o', ' ', 's', 'u', 'c', 'h', ' ', 'd', 'e', 'v', 'i', 'c', 'e', ' ', 'o', 'r', ' ', 'a', 'd', 'd', 'r', 'e', 's', 's'}, + FstrENOTBLK: [22]int8{'B', 'l', 'o', 'c', 'k', ' ', 'd', 'e', 'v', 'i', 'c', 'e', ' ', 'r', 'e', 'q', 'u', 'i', 'r', 'e', 'd'}, + FstrENODEV: [15]int8{'N', 'o', ' ', 's', 'u', 'c', 'h', ' ', 'd', 'e', 'v', 'i', 'c', 'e'}, + FstrENOTDIR: [16]int8{'N', 'o', 't', ' ', 'a', ' ', 'd', 'i', 'r', 'e', 'c', 't', 'o', 'r', 'y'}, + FstrEISDIR: [15]int8{'I', 's', ' ', 'a', ' ', 'd', 'i', 'r', 'e', 'c', 't', 'o', 'r', 'y'}, + FstrETXTBSY: [15]int8{'T', 'e', 'x', 't', ' ', 'f', 'i', 'l', 'e', ' ', 'b', 'u', 's', 'y'}, + FstrENOEXEC: [18]int8{'E', 'x', 'e', 'c', ' ', 'f', 'o', 'r', 'm', 'a', 't', ' ', 'e', 'r', 'r', 'o', 'r'}, + FstrEINVAL: [17]int8{'I', 'n', 'v', 'a', 'l', 'i', 'd', ' ', 'a', 'r', 'g', 'u', 'm', 'e', 'n', 't'}, + FstrE2BIG: [23]int8{'A', 'r', 'g', 'u', 'm', 'e', 'n', 't', ' ', 'l', 'i', 's', 't', ' ', 't', 'o', 'o', ' ', 'l', 'o', 'n', 'g'}, + FstrELOOP: [19]int8{'S', 'y', 'm', 'b', 'o', 'l', 'i', 'c', ' ', 'l', 'i', 'n', 'k', ' ', 'l', 'o', 'o', 'p'}, + FstrENAMETOOLONG: [18]int8{'F', 'i', 'l', 'e', 'n', 'a', 'm', 'e', ' ', 't', 'o', 'o', ' ', 'l', 'o', 'n', 'g'}, + FstrENFILE: [30]int8{'T', 'o', 'o', ' ', 'm', 'a', 'n', 'y', ' ', 'o', 'p', 'e', 'n', ' ', 'f', 'i', 'l', 'e', 's', ' ', 'i', 'n', ' ', 's', 'y', 's', 't', 'e', 'm'}, + FstrEMFILE: [30]int8{'N', 'o', ' ', 'f', 'i', 'l', 'e', ' ', 'd', 'e', 's', 'c', 'r', 'i', 'p', 't', 'o', 'r', 's', ' ', 'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e'}, + FstrEBADF: [20]int8{'B', 'a', 'd', ' ', 'f', 'i', 'l', 'e', ' ', 'd', 'e', 's', 'c', 'r', 'i', 'p', 't', 'o', 'r'}, + FstrECHILD: [17]int8{'N', 'o', ' ', 'c', 'h', 'i', 'l', 'd', ' ', 'p', 'r', 'o', 'c', 'e', 's', 's'}, + FstrEFAULT: [12]int8{'B', 'a', 'd', ' ', 'a', 'd', 'd', 'r', 'e', 's', 's'}, + FstrEFBIG: [15]int8{'F', 'i', 'l', 'e', ' ', 't', 'o', 'o', ' ', 'l', 'a', 'r', 'g', 'e'}, + FstrEMLINK: [15]int8{'T', 'o', 'o', ' ', 'm', 'a', 'n', 'y', ' ', 'l', 'i', 'n', 'k', 's'}, + FstrENOLCK: [19]int8{'N', 'o', ' ', 'l', 'o', 'c', 'k', 's', ' ', 'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e'}, + FstrEDEADLK: [30]int8{'R', 'e', 's', 'o', 'u', 'r', 'c', 'e', ' ', 'd', 'e', 'a', 'd', 'l', 'o', 'c', 'k', ' ', 'w', 'o', 'u', 'l', 'd', ' ', 'o', 'c', 'c', 'u', 'r'}, + FstrENOTRECOVERABLE: [22]int8{'S', 't', 'a', 't', 'e', ' ', 'n', 'o', 't', ' ', 'r', 'e', 'c', 'o', 'v', 'e', 'r', 'a', 'b', 'l', 'e'}, + FstrEOWNERDEAD: [20]int8{'P', 'r', 'e', 'v', 'i', 'o', 'u', 's', ' ', 'o', 'w', 'n', 'e', 'r', ' ', 'd', 'i', 'e', 'd'}, + FstrECANCELED: [19]int8{'O', 'p', 'e', 'r', 'a', 't', 'i', 'o', 'n', ' ', 'c', 'a', 'n', 'c', 'e', 'l', 'e', 'd'}, + FstrENOSYS: [25]int8{'F', 'u', 'n', 'c', 't', 'i', 'o', 'n', ' ', 'n', 'o', 't', ' ', 'i', 'm', 'p', 'l', 'e', 'm', 'e', 'n', 't', 'e', 'd'}, + FstrENOMSG: [27]int8{'N', 'o', ' ', 'm', 'e', 's', 's', 'a', 'g', 'e', ' ', 'o', 'f', ' ', 'd', 'e', 's', 'i', 'r', 'e', 'd', ' ', 't', 'y', 'p', 'e'}, + FstrEIDRM: [19]int8{'I', 'd', 'e', 'n', 't', 'i', 'f', 'i', 'e', 'r', ' ', 'r', 'e', 'm', 'o', 'v', 'e', 'd'}, + FstrENOSTR: [20]int8{'D', 'e', 'v', 'i', 'c', 'e', ' ', 'n', 'o', 't', ' ', 'a', ' ', 's', 't', 'r', 'e', 'a', 'm'}, + FstrENODATA: [18]int8{'N', 'o', ' ', 'd', 'a', 't', 'a', ' ', 'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e'}, + FstrETIME: [15]int8{'D', 'e', 'v', 'i', 'c', 'e', ' ', 't', 'i', 'm', 'e', 'o', 'u', 't'}, + FstrENOSR: [25]int8{'O', 'u', 't', ' ', 'o', 'f', ' ', 's', 't', 'r', 'e', 'a', 'm', 's', ' ', 'r', 'e', 's', 'o', 'u', 'r', 'c', 'e', 's'}, + FstrENOLINK: [22]int8{'L', 'i', 'n', 'k', ' ', 'h', 'a', 's', ' ', 'b', 'e', 'e', 'n', ' ', 's', 'e', 'v', 'e', 'r', 'e', 'd'}, + FstrEPROTO: [15]int8{'P', 'r', 'o', 't', 'o', 'c', 'o', 'l', ' ', 'e', 'r', 'r', 'o', 'r'}, + FstrEBADMSG: [12]int8{'B', 'a', 'd', ' ', 'm', 'e', 's', 's', 'a', 'g', 'e'}, + FstrEBADFD: [29]int8{'F', 'i', 'l', 'e', ' ', 'd', 'e', 's', 'c', 'r', 'i', 'p', 't', 'o', 'r', ' ', 'i', 'n', ' ', 'b', 'a', 'd', ' ', 's', 't', 'a', 't', 'e'}, + FstrENOTSOCK: [13]int8{'N', 'o', 't', ' ', 'a', ' ', 's', 'o', 'c', 'k', 'e', 't'}, + FstrEDESTADDRREQ: [29]int8{'D', 'e', 's', 't', 'i', 'n', 'a', 't', 'i', 'o', 'n', ' ', 'a', 'd', 'd', 'r', 'e', 's', 's', ' ', 'r', 'e', 'q', 'u', 'i', 'r', 'e', 'd'}, + FstrEMSGSIZE: [18]int8{'M', 'e', 's', 's', 'a', 'g', 'e', ' ', 't', 'o', 'o', ' ', 'l', 'a', 'r', 'g', 'e'}, + FstrEPROTOTYPE: [31]int8{'P', 'r', 'o', 't', 'o', 'c', 'o', 'l', ' ', 'w', 'r', 'o', 'n', 'g', ' ', 't', 'y', 'p', 'e', ' ', 'f', 'o', 'r', ' ', 's', 'o', 'c', 'k', 'e', 't'}, + FstrENOPROTOOPT: [23]int8{'P', 'r', 'o', 't', 'o', 'c', 'o', 'l', ' ', 'n', 'o', 't', ' ', 'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e'}, + FstrEPROTONOSUPPORT: [23]int8{'P', 'r', 'o', 't', 'o', 'c', 'o', 'l', ' ', 'n', 'o', 't', ' ', 's', 'u', 'p', 'p', 'o', 'r', 't', 'e', 'd'}, + FstrESOCKTNOSUPPORT: [26]int8{'S', 'o', 'c', 'k', 'e', 't', ' ', 't', 'y', 'p', 'e', ' ', 'n', 'o', 't', ' ', 's', 'u', 'p', 'p', 'o', 'r', 't', 'e', 'd'}, + FstrENOTSUP: [14]int8{'N', 'o', 't', ' ', 's', 'u', 'p', 'p', 'o', 'r', 't', 'e', 'd'}, + FstrEPFNOSUPPORT: [30]int8{'P', 'r', 'o', 't', 'o', 'c', 'o', 'l', ' ', 'f', 'a', 'm', 'i', 'l', 'y', ' ', 'n', 'o', 't', ' ', 's', 'u', 'p', 'p', 'o', 'r', 't', 'e', 'd'}, + FstrEAFNOSUPPORT: [41]int8{'A', 'd', 'd', 'r', 'e', 's', 's', ' ', 'f', 'a', 'm', 'i', 'l', 'y', ' ', 'n', 'o', 't', ' ', 's', 'u', 'p', 'p', 'o', 'r', 't', 'e', 'd', ' ', 'b', 'y', ' ', 'p', 'r', 'o', 't', 'o', 'c', 'o', 'l'}, + FstrEADDRNOTAVAIL: [22]int8{'A', 'd', 'd', 'r', 'e', 's', 's', ' ', 'n', 'o', 't', ' ', 'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e'}, + FstrENETDOWN: [16]int8{'N', 'e', 't', 'w', 'o', 'r', 'k', ' ', 'i', 's', ' ', 'd', 'o', 'w', 'n'}, + FstrENETUNREACH: [20]int8{'N', 'e', 't', 'w', 'o', 'r', 'k', ' ', 'u', 'n', 'r', 'e', 'a', 'c', 'h', 'a', 'b', 'l', 'e'}, + FstrENETRESET: [28]int8{'C', 'o', 'n', 'n', 'e', 'c', 't', 'i', 'o', 'n', ' ', 'r', 'e', 's', 'e', 't', ' ', 'b', 'y', ' ', 'n', 'e', 't', 'w', 'o', 'r', 'k'}, + FstrECONNABORTED: [19]int8{'C', 'o', 'n', 'n', 'e', 'c', 't', 'i', 'o', 'n', ' ', 'a', 'b', 'o', 'r', 't', 'e', 'd'}, + FstrENOBUFS: [26]int8{'N', 'o', ' ', 'b', 'u', 'f', 'f', 'e', 'r', ' ', 's', 'p', 'a', 'c', 'e', ' ', 'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e'}, + FstrEISCONN: [20]int8{'S', 'o', 'c', 'k', 'e', 't', ' ', 'i', 's', ' ', 'c', 'o', 'n', 'n', 'e', 'c', 't', 'e', 'd'}, + FstrENOTCONN: [21]int8{'S', 'o', 'c', 'k', 'e', 't', ' ', 'n', 'o', 't', ' ', 'c', 'o', 'n', 'n', 'e', 'c', 't', 'e', 'd'}, + FstrESHUTDOWN: [34]int8{'C', 'a', 'n', 'n', 'o', 't', ' ', 's', 'e', 'n', 'd', ' ', 'a', 'f', 't', 'e', 'r', ' ', 's', 'o', 'c', 'k', 'e', 't', ' ', 's', 'h', 'u', 't', 'd', 'o', 'w', 'n'}, + FstrEALREADY: [30]int8{'O', 'p', 'e', 'r', 'a', 't', 'i', 'o', 'n', ' ', 'a', 'l', 'r', 'e', 'a', 'd', 'y', ' ', 'i', 'n', ' ', 'p', 'r', 'o', 'g', 'r', 'e', 's', 's'}, + FstrEINPROGRESS: [22]int8{'O', 'p', 'e', 'r', 'a', 't', 'i', 'o', 'n', ' ', 'i', 'n', ' ', 'p', 'r', 'o', 'g', 'r', 'e', 's', 's'}, + FstrESTALE: [18]int8{'S', 't', 'a', 'l', 'e', ' ', 'f', 'i', 'l', 'e', ' ', 'h', 'a', 'n', 'd', 'l', 'e'}, + FstrEREMOTEIO: [17]int8{'R', 'e', 'm', 'o', 't', 'e', ' ', 'I', '/', 'O', ' ', 'e', 'r', 'r', 'o', 'r'}, + FstrEDQUOT: [15]int8{'Q', 'u', 'o', 't', 'a', ' ', 'e', 'x', 'c', 'e', 'e', 'd', 'e', 'd'}, + FstrENOMEDIUM: [16]int8{'N', 'o', ' ', 'm', 'e', 'd', 'i', 'u', 'm', ' ', 'f', 'o', 'u', 'n', 'd'}, + FstrEMEDIUMTYPE: [18]int8{'W', 'r', 'o', 'n', 'g', ' ', 'm', 'e', 'd', 'i', 'u', 'm', ' ', 't', 'y', 'p', 'e'}, + FstrEMULTIHOP: [19]int8{'M', 'u', 'l', 't', 'i', 'h', 'o', 'p', ' ', 'a', 't', 't', 'e', 'm', 'p', 't', 'e', 'd'}, + FstrENOKEY: [27]int8{'R', 'e', 'q', 'u', 'i', 'r', 'e', 'd', ' ', 'k', 'e', 'y', ' ', 'n', 'o', 't', ' ', 'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e'}, + FstrEKEYEXPIRED: [16]int8{'K', 'e', 'y', ' ', 'h', 'a', 's', ' ', 'e', 'x', 'p', 'i', 'r', 'e', 'd'}, + FstrEKEYREVOKED: [21]int8{'K', 'e', 'y', ' ', 'h', 'a', 's', ' ', 'b', 'e', 'e', 'n', ' ', 'r', 'e', 'v', 'o', 'k', 'e', 'd'}, + FstrEKEYREJECTED: [28]int8{'K', 'e', 'y', ' ', 'w', 'a', 's', ' ', 'r', 'e', 'j', 'e', 'c', 't', 'e', 'd', ' ', 'b', 'y', ' ', 's', 'e', 'r', 'v', 'i', 'c', 'e'}, +} + +var _errmsgidx = [132]uint16{ + 1: uint16(uint64(UintptrFromInt32(0) + 109)), + 2: uint16(uint64(UintptrFromInt32(0) + 133)), + 3: uint16(uint64(UintptrFromInt32(0) + 159)), + 4: uint16(uint64(UintptrFromInt32(0) + 269)), + 5: uint16(uint64(UintptrFromInt32(0) + 523)), + 6: uint16(uint64(UintptrFromInt32(0) + 533)), + 7: uint16(uint64(UintptrFromInt32(0) + 677)), + 8: uint16(uint64(UintptrFromInt32(0) + 642)), + 9: uint16(uint64(UintptrFromInt32(0) + 797)), + 10: uint16(uint64(UintptrFromInt32(0) + 817)), + 11: uint16(uint64(UintptrFromInt32(0) + 293)), + 12: uint16(uint64(UintptrFromInt32(0) + 241)), + 13: uint16(uint64(UintptrFromInt32(0) + 91)), + 14: uint16(uint64(UintptrFromInt32(0) + 834)), + 15: uint16(uint64(UintptrFromInt32(0) + 559)), + 16: uint16(uint64(UintptrFromInt32(0) + 255)), + 17: uint16(uint64(UintptrFromInt32(0) + 175)), + 18: uint16(uint64(UintptrFromInt32(0) + 339)), + 19: uint16(uint64(UintptrFromInt32(0) + 581)), + 20: uint16(uint64(UintptrFromInt32(0) + 596)), + 21: uint16(uint64(UintptrFromInt32(0) + 612)), + 22: uint16(uint64(UintptrFromInt32(0) + 660)), + 23: uint16(uint64(UintptrFromInt32(0) + 737)), + 24: uint16(uint64(UintptrFromInt32(0) + 767)), + 25: uint16(uint64(UintptrFromInt32(0) + 81)), + 26: uint16(uint64(UintptrFromInt32(0) + 627)), + 27: uint16(uint64(UintptrFromInt32(0) + 846)), + 28: uint16(uint64(UintptrFromInt32(0) + 217)), + 29: uint16(uint64(UintptrFromInt32(0) + 326)), + 30: uint16(uint64(UintptrFromInt32(0) + 357)), + 31: uint16(uint64(UintptrFromInt32(0) + 861)), + 32: uint16(uint64(UintptrFromInt32(0) + 511)), + 33: uint16(uint64(UintptrFromInt32(0) + 43)), + 34: uint16(uint64(UintptrFromInt32(0) + 56)), + 35: uint16(uint64(UintptrFromInt32(0) + 895)), + 36: uint16(uint64(UintptrFromInt32(0) + 719)), + 37: uint16(uint64(UintptrFromInt32(0) + 876)), + 38: uint16(uint64(UintptrFromInt32(0) + 986)), + 39: uint16(uint64(UintptrFromInt32(0) + 379)), + 40: uint16(uint64(UintptrFromInt32(0) + 700)), + 42: uint16(uint64(UintptrFromInt32(0) + 1011)), + 43: uint16(uint64(UintptrFromInt32(0) + 1038)), + 60: uint16(uint64(UintptrFromInt32(0) + 1057)), + 61: uint16(uint64(UintptrFromInt32(0) + 1077)), + 62: uint16(uint64(UintptrFromInt32(0) + 1095)), + 63: uint16(uint64(UintptrFromInt32(0) + 1110)), + 67: uint16(uint64(UintptrFromInt32(0) + 1135)), + 71: uint16(uint64(UintptrFromInt32(0) + 1157)), + 72: uint16(uint64(UintptrFromInt32(0) + 1803)), + 74: uint16(uint64(UintptrFromInt32(0) + 1172)), + 75: uint16(uint64(UintptrFromInt32(0) + 187)), + 77: uint16(uint64(UintptrFromInt32(0) + 1184)), + 84: uint16(uint64(UintptrFromInt32(0) + 21)), + 88: uint16(uint64(UintptrFromInt32(0) + 1213)), + 89: uint16(uint64(UintptrFromInt32(0) + 1226)), + 90: uint16(uint64(UintptrFromInt32(0) + 1255)), + 91: uint16(uint64(UintptrFromInt32(0) + 1273)), + 92: uint16(uint64(UintptrFromInt32(0) + 1304)), + 93: uint16(uint64(UintptrFromInt32(0) + 1327)), + 94: uint16(uint64(UintptrFromInt32(0) + 1350)), + 95: uint16(uint64(UintptrFromInt32(0) + 1376)), + 96: uint16(uint64(UintptrFromInt32(0) + 1390)), + 97: uint16(uint64(UintptrFromInt32(0) + 1420)), + 98: uint16(uint64(UintptrFromInt32(0) + 496)), + 99: uint16(uint64(UintptrFromInt32(0) + 1461)), + 100: uint16(uint64(UintptrFromInt32(0) + 1483)), + 101: uint16(uint64(UintptrFromInt32(0) + 1499)), + 102: uint16(uint64(UintptrFromInt32(0) + 1519)), + 103: uint16(uint64(UintptrFromInt32(0) + 1547)), + 104: uint16(uint64(UintptrFromInt32(0) + 399)), + 105: uint16(uint64(UintptrFromInt32(0) + 1566)), + 106: uint16(uint64(UintptrFromInt32(0) + 1592)), + 107: uint16(uint64(UintptrFromInt32(0) + 1612)), + 108: uint16(uint64(UintptrFromInt32(0) + 1633)), + 110: uint16(uint64(UintptrFromInt32(0) + 424)), + 111: uint16(uint64(UintptrFromInt32(0) + 444)), + 112: uint16(uint64(UintptrFromInt32(0) + 463)), + 113: uint16(uint64(UintptrFromInt32(0) + 476)), + 114: uint16(uint64(UintptrFromInt32(0) + 1667)), + 115: uint16(uint64(UintptrFromInt32(0) + 1697)), + 116: uint16(uint64(UintptrFromInt32(0) + 1719)), + 121: uint16(uint64(UintptrFromInt32(0) + 1737)), + 122: uint16(uint64(UintptrFromInt32(0) + 1754)), + 123: uint16(uint64(UintptrFromInt32(0) + 1769)), + 124: uint16(uint64(UintptrFromInt32(0) + 1785)), + 125: uint16(uint64(UintptrFromInt32(0) + 967)), + 126: uint16(uint64(UintptrFromInt32(0) + 1822)), + 127: uint16(uint64(UintptrFromInt32(0) + 1849)), + 128: uint16(uint64(UintptrFromInt32(0) + 1865)), + 129: uint16(uint64(UintptrFromInt32(0) + 1886)), + 130: uint16(uint64(UintptrFromInt32(0) + 947)), + 131: uint16(uint64(UintptrFromInt32(0) + 925)), +} + +func X__strerror_l(tls *TLS, e int32, loc Tlocale_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v e=%v loc=%v, (%v:)", tls, e, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + var s uintptr + _ = s + if Uint64FromInt32(e) >= Uint64FromInt64(264)/Uint64FromInt64(2) { + e = 0 + } + s = uintptr(unsafe.Pointer(&_errmsgstr)) + uintptr(_errmsgidx[e]) + return X__lctrans(tls, s, **(**uintptr)(__ccgo_up(loc + 5*8))) +} + +func Xstrerror(tls *TLS, e int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v e=%v, (%v:)", tls, e, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__strerror_l(tls, e, (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale) +} + +func Xstrerror_l(tls *TLS, e int32, loc Tlocale_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v e=%v loc=%v, (%v:)", tls, e, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__strerror_l(tls, e, loc) +} + +func X_Exit(tls *TLS, ec int32) { + if __ccgo_strace { + trc("tls=%v ec=%v, (%v:)", tls, ec, origin(2)) + } + X__syscall1(tls, int64(SYS_exit_group), int64(ec)) + for { + X__syscall1(tls, int64(SYS_exit), int64(ec)) + goto _1 + _1: + } +} + +func X__assert_fail(tls *TLS, expr uintptr, file uintptr, line int32, func1 uintptr) { + if __ccgo_strace { + trc("tls=%v expr=%v file=%v line=%v func1=%v, (%v:)", tls, expr, file, line, func1, origin(2)) + } + bp := tls.Alloc(48) + defer tls.Free(48) + Xfprintf(tls, uintptr(unsafe.Pointer(&X__stderr_FILE)), __ccgo_ts+212, VaList(bp+8, expr, file, func1, line)) + Xabort(tls) +} + +const COUNT = 32 + +var _funcs [32]uintptr +var _count int32 +var _lock [1]int32 + +func X__funcs_on_quick_exit(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + var func1 uintptr + var v1 int32 + _, _ = func1, v1 + ___lock(tls, uintptr(unsafe.Pointer(&_lock))) + for _count > 0 { + _count = _count - 1 + v1 = _count + func1 = _funcs[v1] + ___unlock(tls, uintptr(unsafe.Pointer(&_lock))) + (*(*func(*TLS))(unsafe.Pointer(&struct{ uintptr }{func1})))(tls) + ___lock(tls, uintptr(unsafe.Pointer(&_lock))) + } +} + +type t__ccgo_fp__Xat_quick_exit_0 = func(*TLS) + +func Xat_quick_exit(tls *TLS, __ccgo_fp_func uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v __ccgo_fp_func=%v, (%v:)", tls, __ccgo_fp_func, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v1 int32 + _, _ = r, v1 + r = 0 + ___lock(tls, uintptr(unsafe.Pointer(&_lock))) + if _count == int32(32) { + r = -int32(1) + } else { + v1 = _count + _count = _count + 1 + _funcs[v1] = __ccgo_fp_func + } + ___unlock(tls, uintptr(unsafe.Pointer(&_lock))) + return r +} + +func _dummy3(tls *TLS) { +} + +func Xquick_exit(tls *TLS, code int32) { + if __ccgo_strace { + trc("tls=%v code=%v, (%v:)", tls, code, origin(2)) + } + X__funcs_on_quick_exit(tls) + X_Exit(tls, code) +} + +func Xcreat(tls *TLS, filename uintptr, mode Tmode_t) (r int32) { + if __ccgo_strace { + trc("tls=%v filename=%v mode=%v, (%v:)", tls, filename, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + return Xopen(tls, filename, Int32FromInt32(O_CREAT)|Int32FromInt32(O_WRONLY)|Int32FromInt32(O_TRUNC), VaList(bp+8, mode)) +} + +func Xfcntl(tls *TLS, fd int32, cmd int32, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v cmd=%v va=%v, (%v:)", tls, fd, cmd, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ap Tva_list + var arg uint64 + var ret, ret1, v1 int32 + var _ /* ex at bp+0 */ Tf_owner_ex + _, _, _, _, _ = ap, arg, ret, ret1, v1 + ap = va + arg = VaUint64(&ap) + _ = ap + if cmd == int32(F_SETFL) { + arg = arg | uint64(O_LARGEFILE) + } + if cmd == int32(F_SETLKW) { + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(__NR3264_fcntl), int64(fd), int64(cmd), int64(uintptr(arg)), 0, 0, 0)))) + } + if cmd == int32(F_GETOWN) { + ret = int32(X__syscall3(tls, int64(__NR3264_fcntl), int64(fd), int64(Int32FromInt32(F_GETOWN_EX)), int64(bp))) + if ret == -int32(EINVAL) { + return int32(X__syscall3(tls, int64(__NR3264_fcntl), int64(fd), int64(cmd), int64(uintptr(arg)))) + } + if ret != 0 { + return int32(X__syscall_ret(tls, Uint64FromInt32(ret))) + } + if (**(**Tf_owner_ex)(__ccgo_up(bp))).Ftype1 == int32(F_OWNER_PGRP) { + v1 = -(**(**Tf_owner_ex)(__ccgo_up(bp))).Fpid + } else { + v1 = (**(**Tf_owner_ex)(__ccgo_up(bp))).Fpid + } + return v1 + } + if cmd == int32(F_DUPFD_CLOEXEC) { + ret1 = int32(X__syscall3(tls, int64(__NR3264_fcntl), int64(fd), int64(Int32FromInt32(F_DUPFD_CLOEXEC)), Int64FromUint64(arg))) + if ret1 != -int32(EINVAL) { + if ret1 >= 0 { + X__syscall3(tls, int64(__NR3264_fcntl), int64(ret1), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + } + return int32(X__syscall_ret(tls, Uint64FromInt32(ret1))) + } + ret1 = int32(X__syscall3(tls, int64(__NR3264_fcntl), int64(fd), int64(Int32FromInt32(F_DUPFD_CLOEXEC)), int64(Int32FromInt32(0)))) + if ret1 != -int32(EINVAL) { + if ret1 >= 0 { + X__syscall1(tls, int64(SYS_close), int64(ret1)) + } + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL)))) + } + ret1 = int32(X__syscall3(tls, int64(__NR3264_fcntl), int64(fd), int64(Int32FromInt32(F_DUPFD)), Int64FromUint64(arg))) + if ret1 >= 0 { + X__syscall3(tls, int64(__NR3264_fcntl), int64(ret1), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + } + return int32(X__syscall_ret(tls, Uint64FromInt32(ret1))) + } + switch cmd { + case int32(F_SETLK): + fallthrough + case int32(F_GETLK): + fallthrough + case int32(F_GETOWN_EX): + fallthrough + case int32(F_SETOWN_EX): + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(__NR3264_fcntl), int64(fd), int64(cmd), int64(uintptr(arg)))))) + default: + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(__NR3264_fcntl), int64(fd), int64(cmd), Int64FromUint64(arg))))) + } + return r +} + +func Xopen(tls *TLS, filename uintptr, flags int32, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v filename=%v flags=%v va=%v, (%v:)", tls, filename, flags, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var fd int32 + var mode Tmode_t + _, _, _ = ap, fd, mode + mode = uint32(0) + if flags&int32(O_CREAT) != 0 || flags&int32(O_TMPFILE) == int32(O_TMPFILE) { + ap = va + mode = VaUint32(&ap) + _ = ap + } + fd = int32(___syscall_cp(tls, int64(SYS_openat), int64(-Int32FromInt32(100)), int64(filename), int64(flags|Int32FromInt32(O_LARGEFILE)), Int64FromUint32(mode), 0, 0)) + if fd >= 0 && flags&int32(O_CLOEXEC) != 0 { + X__syscall3(tls, int64(__NR3264_fcntl), int64(fd), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + } + return int32(X__syscall_ret(tls, Uint64FromInt32(fd))) +} + +func Xopenat(tls *TLS, fd int32, filename uintptr, flags int32, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v filename=%v flags=%v va=%v, (%v:)", tls, fd, filename, flags, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var mode Tmode_t + _, _ = ap, mode + mode = uint32(0) + if flags&int32(O_CREAT) != 0 || flags&int32(O_TMPFILE) == int32(O_TMPFILE) { + ap = va + mode = VaUint32(&ap) + _ = ap + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_openat), int64(fd), int64(filename), int64(flags|Int32FromInt32(O_LARGEFILE)), Int64FromUint32(mode), 0, 0)))) +} + +func Xposix_fadvise(tls *TLS, fd int32, base Toff_t, len1 Toff_t, advice int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v base=%v len1=%v advice=%v, (%v:)", tls, fd, base, len1, advice, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(-X__syscall4(tls, int64(__NR3264_fadvise64), int64(fd), base, len1, int64(advice))) +} + +func Xposix_fallocate(tls *TLS, fd int32, base Toff_t, len1 Toff_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v base=%v len1=%v, (%v:)", tls, fd, base, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(-X__syscall4(tls, int64(SYS_fallocate), int64(fd), int64(Int32FromInt32(0)), base, len1)) +} + +const WCONTINUED = 8 +const WEXITED = 4 +const WNOWAIT = 16777216 +const WSTOPPED = 2 +const __WALL = 1073741824 +const __WCLONE = 2147483648 +const __WNOTHREAD = 536870912 + +type Tidtype_t = int32 + +const _P_ALL = 0 +const _P_PID = 1 +const _P_PGID = 2 +const _P_PIDFD = 3 +const F_APP = 128 +const F_EOF = 16 +const F_ERR = 32 +const F_NORD = 4 +const F_NOWR = 8 +const F_PERM = 1 +const F_SVB = 64 +const KMAX = 128 +const LDBL_EPSILON1 = 2.22044604925031308085e-16 +const LDBL_MAX1 = 1.79769313486231570815e+308 +const LDBL_MIN1 = 2.22507385850720138309e-308 +const LD_B1B_DIG = 2 +const LD_B1B_MAX = 254740991 +const MASK = 127 +const MAYBE_WAITERS = 1073741824 +const UNGET = 8 + +type TFILE = struct { + Fflags uint32 + Frpos uintptr + Frend uintptr + Fclose1 uintptr + Fwend uintptr + Fwpos uintptr + Fmustbezero_1 uintptr + Fwbase uintptr + Fread uintptr + Fwrite uintptr + Fseek uintptr + Fbuf uintptr + Fbuf_size Tsize_t + Fprev uintptr + Fnext uintptr + Ffd int32 + Fpipe_pid int32 + Flockcount int64 + Fmode int32 + Flock int32 + Flbf int32 + Fcookie uintptr + Foff Toff_t + Fgetln_buf uintptr + Fmustbezero_2 uintptr + Fshend uintptr + Fshlim Toff_t + Fshcnt Toff_t + Fprev_locked uintptr + Fnext_locked uintptr + Flocale uintptr +} + +type T_IO_FILE = TFILE + +func _scanexp(tls *TLS, f uintptr, pok int32) (r int64) { + var c, neg, x, v1 int32 + var y, v19 int64 + var v2, v3 uintptr + _, _, _, _, _, _, _, _ = c, neg, x, y, v1, v19, v2, v3 + neg = 0 + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v3 = f + 8 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + if c == int32('+') || c == int32('-') { + neg = BoolInt32(c == int32('-')) + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v3 = f + 8 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + if Uint32FromInt32(c-int32('0')) >= uint32(10) && pok != 0 { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + } + } + if Uint32FromInt32(c-int32('0')) >= uint32(10) { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + return -Int64FromInt64(0x7fffffffffffffff) - Int64FromInt32(1) + } + x = 0 + for { + if !(Uint32FromInt32(c-int32('0')) < uint32(10) && x < Int32FromInt32(INT_MAX)/Int32FromInt32(10)) { + break + } + x = int32(10)*x + c - int32('0') + goto _7 + _7: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v3 = f + 8 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + y = int64(x) + for { + if !(Uint32FromInt32(c-int32('0')) < uint32(10) && y < Int64FromInt64(0x7fffffffffffffff)/Int64FromInt32(100)) { + break + } + y = int64(10)*y + int64(c) - int64('0') + goto _11 + _11: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v3 = f + 8 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + for { + if !(Uint32FromInt32(c-int32('0')) < uint32(10)) { + break + } + goto _15 + _15: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v3 = f + 8 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + if neg != 0 { + v19 = -y + } else { + v19 = y + } + return v19 +} + +func _decfloat(tls *TLS, f uintptr, c int32, bits int32, emin int32, sign int32, pok int32) (r float64) { + bp := tls.Alloc(512) + defer tls.Free(512) + var a, bitlim, denormal, e2, emax, gotdig, gotrad, i, j, k, lnz, p10, rp, rpm9, sh, z, v2, v6 int32 + var bias, frac, y float64 + var carry, carry1, carry2, t, tmp, tmp2 Tuint32_t + var dc, e10, lrp int64 + var tmp1 Tuint64_t + var v3, v4 uintptr + var _ /* x at bp+0 */ [128]Tuint32_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = a, bias, bitlim, carry, carry1, carry2, dc, denormal, e10, e2, emax, frac, gotdig, gotrad, i, j, k, lnz, lrp, p10, rp, rpm9, sh, t, tmp, tmp1, tmp2, y, z, v2, v3, v4, v6 + lrp = 0 + dc = 0 + e10 = 0 + lnz = 0 + gotdig = 0 + gotrad = 0 + emax = -emin - bits + int32(3) + denormal = 0 + frac = Float64FromInt32(0) + bias = Float64FromInt32(0) + j = 0 + k = 0 + /* Don't let leading zeros consume buffer space */ + for { + if !(c == int32('0')) { + break + } + gotdig = int32(1) + goto _1 + _1: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v2 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v2 = X__shgetc(tls, f) + } + c = v2 + } + if c == int32('.') { + gotrad = int32(1) + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v2 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v2 = X__shgetc(tls, f) + } + c = v2 + for { + if !(c == int32('0')) { + break + } + gotdig = int32(1) + lrp = lrp - 1 + goto _5 + _5: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v2 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v2 = X__shgetc(tls, f) + } + c = v2 + } + } + (**(**[128]Tuint32_t)(__ccgo_up(bp)))[0] = uint32(0) + for { + if !(Uint32FromInt32(c-int32('0')) < uint32(10) || c == int32('.')) { + break + } + if c == int32('.') { + if gotrad != 0 { + break + } + gotrad = int32(1) + lrp = dc + } else { + if k < Int32FromInt32(KMAX)-Int32FromInt32(3) { + dc = dc + 1 + if c != int32('0') { + lnz = int32(dc) + } + if j != 0 { + (**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] = (**(**[128]Tuint32_t)(__ccgo_up(bp)))[k]*uint32(10) + Uint32FromInt32(c) - uint32('0') + } else { + (**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] = Uint32FromInt32(c - int32('0')) + } + j = j + 1 + v2 = j + if v2 == int32(9) { + k = k + 1 + j = 0 + } + gotdig = int32(1) + } else { + dc = dc + 1 + if c != int32('0') { + lnz = (Int32FromInt32(KMAX) - Int32FromInt32(4)) * Int32FromInt32(9) + **(**Tuint32_t)(__ccgo_up(bp + uintptr(Int32FromInt32(KMAX)-Int32FromInt32(4))*4)) |= uint32(1) + } + } + } + goto _12 + _12: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v2 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v2 = X__shgetc(tls, f) + } + c = v2 + } + if !(gotrad != 0) { + lrp = dc + } + if gotdig != 0 && c|int32(32) == int32('e') { + e10 = _scanexp(tls, f, pok) + if e10 == -Int64FromInt64(0x7fffffffffffffff)-Int64FromInt32(1) { + if pok != 0 { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + } else { + X__shlim(tls, f, int64(Int32FromInt32(0))) + return Float64FromInt32(0) + } + e10 = 0 + } + lrp = lrp + e10 + } else { + if c >= 0 { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + } + } + if !(gotdig != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + X__shlim(tls, f, int64(Int32FromInt32(0))) + return Float64FromInt32(0) + } + /* Handle zero specially to avoid nasty special cases later */ + if !((**(**[128]Tuint32_t)(__ccgo_up(bp)))[0] != 0) { + return float64(float64(sign) * float64(0)) + } + /* Optimize small integers (w/no exponent) and over/under-flow */ + if lrp == dc && dc < int64(10) && (bits > int32(30) || (**(**[128]Tuint32_t)(__ccgo_up(bp)))[0]>>bits == uint32(0)) { + return float64(float64(sign) * float64((**(**[128]Tuint32_t)(__ccgo_up(bp)))[0])) + } + if lrp > int64(-emin/int32(2)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ERANGE) + return float64(float64(float64(sign)*Float64FromFloat64(1.79769313486231570815e+308)) * Float64FromFloat64(1.79769313486231570815e+308)) + } + if lrp < int64(emin-Int32FromInt32(2)*Int32FromInt32(LDBL_MANT_DIG)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ERANGE) + return float64(float64(float64(sign)*Float64FromFloat64(2.22507385850720138309e-308)) * Float64FromFloat64(2.22507385850720138309e-308)) + } + /* Align incomplete final B1B digit */ + if j != 0 { + for { + if !(j < int32(9)) { + break + } + **(**Tuint32_t)(__ccgo_up(bp + uintptr(k)*4)) *= uint32(10) + goto _17 + _17: + ; + j = j + 1 + } + k = k + 1 + j = 0 + } + a = 0 + z = k + e2 = 0 + rp = int32(lrp) + /* Optimize small to mid-size integers (even in exp. notation) */ + if lnz < int32(9) && lnz <= rp && rp < int32(18) { + if rp == int32(9) { + return float64(float64(sign) * float64((**(**[128]Tuint32_t)(__ccgo_up(bp)))[0])) + } + if rp < int32(9) { + return float64(float64(sign)*float64((**(**[128]Tuint32_t)(__ccgo_up(bp)))[0])) / float64(_p10s[int32(8)-rp]) + } + bitlim = bits - int32(3)*(rp-Int32FromInt32(9)) + if bitlim > int32(30) || (**(**[128]Tuint32_t)(__ccgo_up(bp)))[0]>>bitlim == uint32(0) { + return float64(float64(float64(sign)*float64((**(**[128]Tuint32_t)(__ccgo_up(bp)))[0])) * float64(_p10s[rp-int32(10)])) + } + } + /* Drop trailing zeros */ + for { + if !!((**(**[128]Tuint32_t)(__ccgo_up(bp)))[z-int32(1)] != 0) { + break + } + goto _18 + _18: + ; + z = z - 1 + } + /* Align radix point to B1B digit boundary */ + if rp%int32(9) != 0 { + if rp >= 0 { + v2 = rp % int32(9) + } else { + v2 = rp%int32(9) + int32(9) + } + rpm9 = v2 + p10 = _p10s[int32(8)-rpm9] + carry = uint32(0) + k = a + for { + if !(k != z) { + break + } + tmp = (**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] % Uint32FromInt32(p10) + (**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] = (**(**[128]Tuint32_t)(__ccgo_up(bp)))[k]/Uint32FromInt32(p10) + carry + carry = Uint32FromInt32(int32(1000000000)/p10) * tmp + if k == a && !((**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] != 0) { + a = (a + int32(1)) & (Int32FromInt32(KMAX) - Int32FromInt32(1)) + rp = rp - int32(9) + } + goto _20 + _20: + ; + k = k + 1 + } + if carry != 0 { + v2 = z + z = z + 1 + (**(**[128]Tuint32_t)(__ccgo_up(bp)))[v2] = carry + } + rp = rp + (int32(9) - rpm9) + } + /* Upscale until desired number of bits are left of radix point */ + for rp < Int32FromInt32(9)*Int32FromInt32(LD_B1B_DIG) || rp == Int32FromInt32(9)*Int32FromInt32(LD_B1B_DIG) && (**(**[128]Tuint32_t)(__ccgo_up(bp)))[a] < _th[0] { + carry1 = uint32(0) + e2 = e2 - int32(29) + k = (z - int32(1)) & (Int32FromInt32(KMAX) - Int32FromInt32(1)) + for { + tmp1 = uint64((**(**[128]Tuint32_t)(__ccgo_up(bp)))[k])< uint64(1000000000) { + carry1 = uint32(tmp1 / uint64(1000000000)) + (**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] = uint32(tmp1 % uint64(1000000000)) + } else { + carry1 = uint32(0) + (**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] = uint32(tmp1) + } + if k == (z-int32(1))&(Int32FromInt32(KMAX)-Int32FromInt32(1)) && k != a && !((**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] != 0) { + z = k + } + if k == a { + break + } + goto _22 + _22: + ; + k = (k - int32(1)) & (Int32FromInt32(KMAX) - Int32FromInt32(1)) + } + if carry1 != 0 { + rp = rp + int32(9) + a = (a - int32(1)) & (Int32FromInt32(KMAX) - Int32FromInt32(1)) + if a == z { + z = (z - int32(1)) & (Int32FromInt32(KMAX) - Int32FromInt32(1)) + **(**Tuint32_t)(__ccgo_up(bp + uintptr((z-int32(1))&(Int32FromInt32(KMAX)-Int32FromInt32(1)))*4)) |= (**(**[128]Tuint32_t)(__ccgo_up(bp)))[z] + } + (**(**[128]Tuint32_t)(__ccgo_up(bp)))[a] = carry1 + } + } + /* Downscale until exactly number of bits are left of radix point */ + for { + carry2 = uint32(0) + sh = int32(1) + i = 0 + for { + if !(i < int32(LD_B1B_DIG)) { + break + } + k = (a + i) & (Int32FromInt32(KMAX) - Int32FromInt32(1)) + if k == z || (**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] < _th[i] { + i = int32(LD_B1B_DIG) + break + } + if (**(**[128]Tuint32_t)(__ccgo_up(bp)))[(a+i)&(Int32FromInt32(KMAX)-Int32FromInt32(1))] > _th[i] { + break + } + goto _24 + _24: + ; + i = i + 1 + } + if i == int32(LD_B1B_DIG) && rp == Int32FromInt32(9)*Int32FromInt32(LD_B1B_DIG) { + break + } + /* FIXME: find a way to compute optimal sh */ + if rp > Int32FromInt32(9)+Int32FromInt32(9)*Int32FromInt32(LD_B1B_DIG) { + sh = int32(9) + } + e2 = e2 + sh + k = a + for { + if !(k != z) { + break + } + tmp2 = (**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] & Uint32FromInt32(int32(1)<>sh + carry2 + carry2 = Uint32FromInt32(Int32FromInt32(1000000000)>>sh) * tmp2 + if k == a && !((**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] != 0) { + a = (a + int32(1)) & (Int32FromInt32(KMAX) - Int32FromInt32(1)) + i = i - 1 + rp = rp - int32(9) + } + goto _25 + _25: + ; + k = (k + int32(1)) & (Int32FromInt32(KMAX) - Int32FromInt32(1)) + } + if carry2 != 0 { + if (z+int32(1))&(Int32FromInt32(KMAX)-Int32FromInt32(1)) != a { + (**(**[128]Tuint32_t)(__ccgo_up(bp)))[z] = carry2 + z = (z + int32(1)) & (Int32FromInt32(KMAX) - Int32FromInt32(1)) + } else { + **(**Tuint32_t)(__ccgo_up(bp + uintptr((z-int32(1))&(Int32FromInt32(KMAX)-Int32FromInt32(1)))*4)) |= uint32(1) + } + } + goto _23 + _23: + } + /* Assemble desired bits into floating point variable */ + v2 = Int32FromInt32(0) + i = v2 + y = float64(v2) + for { + if !(i < int32(LD_B1B_DIG)) { + break + } + if (a+i)&(Int32FromInt32(KMAX)-Int32FromInt32(1)) == z { + v6 = (z + Int32FromInt32(1)) & (Int32FromInt32(KMAX) - Int32FromInt32(1)) + z = v6 + (**(**[128]Tuint32_t)(__ccgo_up(bp)))[v6-int32(1)] = uint32(0) + } + y = float64(Float64FromFloat64(1e+09)*y) + float64((**(**[128]Tuint32_t)(__ccgo_up(bp)))[(a+i)&(Int32FromInt32(KMAX)-Int32FromInt32(1))]) + goto _26 + _26: + ; + i = i + 1 + } + y = y * float64(sign) + /* Limit precision for denormal results */ + if bits > int32(LDBL_MANT_DIG)+e2-emin { + bits = int32(LDBL_MANT_DIG) + e2 - emin + if bits < 0 { + bits = 0 + } + denormal = int32(1) + } + /* Calculate bias term to force rounding, move out lower bits */ + if bits < int32(LDBL_MANT_DIG) { + bias = Xcopysignl(tls, Xscalbn(tls, Float64FromInt32(1), Int32FromInt32(2)*Int32FromInt32(LDBL_MANT_DIG)-bits-int32(1)), y) + frac = Xfmodl(tls, y, Xscalbn(tls, Float64FromInt32(1), int32(LDBL_MANT_DIG)-bits)) + y = y - frac + y = y + bias + } + /* Process tail of decimal input so it can affect rounding */ + if (a+i)&(Int32FromInt32(KMAX)-Int32FromInt32(1)) != z { + t = (**(**[128]Tuint32_t)(__ccgo_up(bp)))[(a+i)&(Int32FromInt32(KMAX)-Int32FromInt32(1))] + if t < uint32(500000000) && (t != 0 || (a+i+int32(1))&(Int32FromInt32(KMAX)-Int32FromInt32(1)) != z) { + frac = frac + float64(float64(0.25)*float64(sign)) + } else { + if t > uint32(500000000) { + frac = frac + float64(float64(0.75)*float64(sign)) + } else { + if t == uint32(500000000) { + if (a+i+int32(1))&(Int32FromInt32(KMAX)-Int32FromInt32(1)) == z { + frac = frac + float64(float64(0.5)*float64(sign)) + } else { + frac = frac + float64(float64(0.75)*float64(sign)) + } + } + } + } + if int32(LDBL_MANT_DIG)-bits >= int32(2) && !(Xfmodl(tls, frac, Float64FromInt32(1)) != 0) { + frac = frac + 1 + } + } + y = y + frac + y = y - bias + if (e2+int32(LDBL_MANT_DIG))&int32(INT_MAX) > emax-int32(5) { + if Xfabsl(tls, y) >= Float64FromInt32(2)/Float64FromFloat64(2.22044604925031308085e-16) { + if denormal != 0 && bits == int32(LDBL_MANT_DIG)+e2-emin { + denormal = 0 + } + y = y * Float64FromFloat64(0.5) + e2 = e2 + 1 + } + if e2+int32(LDBL_MANT_DIG) > emax || denormal != 0 && frac != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ERANGE) + } + } + return Xscalbnl(tls, y, e2) +} + +var _th = [2]Tuint32_t{ + 0: uint32(9007199), + 1: uint32(254740991), +} + +var _p10s = [8]int32{ + 0: int32(10), + 1: int32(100), + 2: int32(1000), + 3: int32(10000), + 4: int32(100000), + 5: int32(1000000), + 6: int32(10000000), + 7: int32(100000000), +} + +func _hexfloat(tls *TLS, f uintptr, bits int32, emin int32, sign int32, pok int32) (r float64) { + var bias, scale, y float64 + var c, d, gotdig, gotrad, gottail, v1 int32 + var dc, e2, rp int64 + var x Tuint32_t + var v2, v3 uintptr + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = bias, c, d, dc, e2, gotdig, gotrad, gottail, rp, scale, x, y, v1, v2, v3 + x = uint32(0) + y = Float64FromInt32(0) + scale = Float64FromInt32(1) + bias = Float64FromInt32(0) + gottail = 0 + gotrad = 0 + gotdig = 0 + rp = 0 + dc = 0 + e2 = 0 + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v3 = f + 8 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + /* Skip leading zeros */ + for { + if !(c == int32('0')) { + break + } + gotdig = int32(1) + goto _4 + _4: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v3 = f + 8 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + if c == int32('.') { + gotrad = int32(1) + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v3 = f + 8 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + /* Count zeros after the radix point before significand */ + rp = 0 + for { + if !(c == int32('0')) { + break + } + gotdig = int32(1) + goto _11 + _11: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v3 = f + 8 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + rp = rp - 1 + } + } + for { + if !(Uint32FromInt32(c-int32('0')) < uint32(10) || Uint32FromInt32(c|int32(32)-int32('a')) < uint32(6) || c == int32('.')) { + break + } + if c == int32('.') { + if gotrad != 0 { + break + } + rp = dc + gotrad = int32(1) + } else { + gotdig = int32(1) + if c > int32('9') { + d = c | int32(32) + int32(10) - int32('a') + } else { + d = c - int32('0') + } + if dc < int64(8) { + x = x*uint32(16) + Uint32FromInt32(d) + } else { + if dc < int64(Int32FromInt32(LDBL_MANT_DIG)/Int32FromInt32(4)+Int32FromInt32(1)) { + scale = scale / Float64FromInt32(16) + y = y + float64(float64(d)*scale) + } else { + if d != 0 && !(gottail != 0) { + y = y + float64(Float64FromFloat64(0.5)*scale) + gottail = int32(1) + } + } + } + dc = dc + 1 + } + goto _15 + _15: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v3 = f + 8 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + if !(gotdig != 0) { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + if pok != 0 { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + if gotrad != 0 { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + } + } else { + X__shlim(tls, f, int64(Int32FromInt32(0))) + } + return float64(float64(sign) * float64(0)) + } + if !(gotrad != 0) { + rp = dc + } + for dc < int64(8) { + x = x * uint32(16) + dc = dc + 1 + } + if c|int32(32) == int32('p') { + e2 = _scanexp(tls, f, pok) + if e2 == -Int64FromInt64(0x7fffffffffffffff)-Int64FromInt32(1) { + if pok != 0 { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + } else { + X__shlim(tls, f, int64(Int32FromInt32(0))) + return Float64FromInt32(0) + } + e2 = 0 + } + } else { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + } + e2 = e2 + (int64(4)*rp - int64(32)) + if !(x != 0) { + return float64(float64(sign) * float64(0)) + } + if e2 > int64(-emin) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ERANGE) + return float64(float64(float64(sign)*Float64FromFloat64(1.79769313486231570815e+308)) * Float64FromFloat64(1.79769313486231570815e+308)) + } + if e2 < int64(emin-Int32FromInt32(2)*Int32FromInt32(LDBL_MANT_DIG)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ERANGE) + return float64(float64(float64(sign)*Float64FromFloat64(2.22507385850720138309e-308)) * Float64FromFloat64(2.22507385850720138309e-308)) + } + for x < uint32(0x80000000) { + if y >= Float64FromFloat64(0.5) { + x = x + (x + uint32(1)) + y = y + (y - Float64FromInt32(1)) + } else { + x = x + x + y = y + y + } + e2 = e2 - 1 + } + if int64(bits) > int64(32)+e2-int64(emin) { + bits = int32(int64(32) + e2 - int64(emin)) + if bits < 0 { + bits = 0 + } + } + if bits < int32(LDBL_MANT_DIG) { + bias = Xcopysignl(tls, Xscalbn(tls, Float64FromInt32(1), Int32FromInt32(32)+Int32FromInt32(LDBL_MANT_DIG)-bits-int32(1)), float64(sign)) + } + if bits < int32(32) && y != 0 && !(x&Uint32FromInt32(1) != 0) { + x = x + 1 + y = Float64FromInt32(0) + } + y = bias + float64(float64(sign)*float64(x)) + float64(float64(sign)*y) + y = y - bias + if !(y != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ERANGE) + } + return Xscalbnl(tls, y, int32(e2)) +} + +func X__floatscan(tls *TLS, f uintptr, prec int32, pok int32) (r float64) { + if __ccgo_strace { + trc("tls=%v f=%v prec=%v pok=%v, (%v:)", tls, f, prec, pok, origin(2)) + defer func() { trc("-> %v", r) }() + } + var bits, c, emin, sign, v1, v2, v5, v6 int32 + var i, v27 Tsize_t + var v3, v4 uintptr + _, _, _, _, _, _, _, _, _, _, _, _ = bits, c, emin, i, sign, v1, v2, v27, v3, v4, v5, v6 + sign = int32(1) + switch prec { + case 0: + bits = int32(FLT_MANT_DIG) + emin = -int32(125) - bits + case int32(1): + bits = int32(DBL_MANT_DIG) + emin = -int32(1021) - bits + case int32(2): + bits = int32(LDBL_MANT_DIG) + emin = -int32(1021) - bits + default: + return Float64FromInt32(0) + } + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v2 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v2 = X__shgetc(tls, f) + } + v1 = v2 + c = v1 + v5 = v1 + v6 = BoolInt32(v5 == int32(' ') || Uint32FromInt32(v5)-uint32('\t') < uint32(5)) + goto _7 + _7: + if !(v6 != 0) { + break + } + } + if c == int32('+') || c == int32('-') { + sign = sign - int32(2)*BoolInt32(c == int32('-')) + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + i = uint64(0) + for { + if !(i < uint64(8) && c|int32(32) == int32(**(**int8)(__ccgo_up(__ccgo_ts + 247 + uintptr(i))))) { + break + } + if i < uint64(7) { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + goto _11 + _11: + ; + i = i + 1 + } + if i == uint64(3) || i == uint64(8) || i > uint64(3) && pok != 0 { + if i != uint64(8) { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + if pok != 0 { + for { + if !(i > uint64(3)) { + break + } + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + goto _15 + _15: + ; + i = i - 1 + } + } + } + return float64(float32(sign) * X__builtin_inff(tls)) + } + if !(i != 0) { + i = uint64(0) + for { + if !(i < uint64(3) && c|int32(32) == int32(**(**int8)(__ccgo_up(__ccgo_ts + 256 + uintptr(i))))) { + break + } + if i < uint64(2) { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + goto _16 + _16: + ; + i = i + 1 + } + } + if i == uint64(3) { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + if v1 != int32('(') { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + return float64(X__builtin_nanf(tls, __ccgo_ts)) + } + i = uint64(1) + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + if Uint32FromInt32(c-int32('0')) < uint32(10) || Uint32FromInt32(c-int32('A')) < uint32(26) || Uint32FromInt32(c-int32('a')) < uint32(26) || c == int32('_') { + goto _23 + } + if c == int32(')') { + return float64(X__builtin_nanf(tls, __ccgo_ts)) + } + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + if !(pok != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + X__shlim(tls, f, int64(Int32FromInt32(0))) + return Float64FromInt32(0) + } + for { + v27 = i + i = i - 1 + if !(v27 != 0) { + break + } + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + } + return float64(X__builtin_nanf(tls, __ccgo_ts)) + goto _23 + _23: + ; + i = i + 1 + } + return float64(X__builtin_nanf(tls, __ccgo_ts)) + } + if i != 0 { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + X__shlim(tls, f, int64(Int32FromInt32(0))) + return Float64FromInt32(0) + } + if c == int32('0') { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + if c|int32(32) == int32('x') { + return _hexfloat(tls, f, bits, emin, sign, pok) + } + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + c = int32('0') + } + return _decfloat(tls, f, c, bits, emin, sign, pok) +} + +// C documentation +// +// /* Lookup table for digit values. -1==255>=36 -> invalid */ +var _table6 = [257]uint8{ + 0: Uint8FromInt32(-Int32FromInt32(1)), + 1: Uint8FromInt32(-Int32FromInt32(1)), + 2: Uint8FromInt32(-Int32FromInt32(1)), + 3: Uint8FromInt32(-Int32FromInt32(1)), + 4: Uint8FromInt32(-Int32FromInt32(1)), + 5: Uint8FromInt32(-Int32FromInt32(1)), + 6: Uint8FromInt32(-Int32FromInt32(1)), + 7: Uint8FromInt32(-Int32FromInt32(1)), + 8: Uint8FromInt32(-Int32FromInt32(1)), + 9: Uint8FromInt32(-Int32FromInt32(1)), + 10: Uint8FromInt32(-Int32FromInt32(1)), + 11: Uint8FromInt32(-Int32FromInt32(1)), + 12: Uint8FromInt32(-Int32FromInt32(1)), + 13: Uint8FromInt32(-Int32FromInt32(1)), + 14: Uint8FromInt32(-Int32FromInt32(1)), + 15: Uint8FromInt32(-Int32FromInt32(1)), + 16: Uint8FromInt32(-Int32FromInt32(1)), + 17: Uint8FromInt32(-Int32FromInt32(1)), + 18: Uint8FromInt32(-Int32FromInt32(1)), + 19: Uint8FromInt32(-Int32FromInt32(1)), + 20: Uint8FromInt32(-Int32FromInt32(1)), + 21: Uint8FromInt32(-Int32FromInt32(1)), + 22: Uint8FromInt32(-Int32FromInt32(1)), + 23: Uint8FromInt32(-Int32FromInt32(1)), + 24: Uint8FromInt32(-Int32FromInt32(1)), + 25: Uint8FromInt32(-Int32FromInt32(1)), + 26: Uint8FromInt32(-Int32FromInt32(1)), + 27: Uint8FromInt32(-Int32FromInt32(1)), + 28: Uint8FromInt32(-Int32FromInt32(1)), + 29: Uint8FromInt32(-Int32FromInt32(1)), + 30: Uint8FromInt32(-Int32FromInt32(1)), + 31: Uint8FromInt32(-Int32FromInt32(1)), + 32: Uint8FromInt32(-Int32FromInt32(1)), + 33: Uint8FromInt32(-Int32FromInt32(1)), + 34: Uint8FromInt32(-Int32FromInt32(1)), + 35: Uint8FromInt32(-Int32FromInt32(1)), + 36: Uint8FromInt32(-Int32FromInt32(1)), + 37: Uint8FromInt32(-Int32FromInt32(1)), + 38: Uint8FromInt32(-Int32FromInt32(1)), + 39: Uint8FromInt32(-Int32FromInt32(1)), + 40: Uint8FromInt32(-Int32FromInt32(1)), + 41: Uint8FromInt32(-Int32FromInt32(1)), + 42: Uint8FromInt32(-Int32FromInt32(1)), + 43: Uint8FromInt32(-Int32FromInt32(1)), + 44: Uint8FromInt32(-Int32FromInt32(1)), + 45: Uint8FromInt32(-Int32FromInt32(1)), + 46: Uint8FromInt32(-Int32FromInt32(1)), + 47: Uint8FromInt32(-Int32FromInt32(1)), + 48: Uint8FromInt32(-Int32FromInt32(1)), + 50: uint8(1), + 51: uint8(2), + 52: uint8(3), + 53: uint8(4), + 54: uint8(5), + 55: uint8(6), + 56: uint8(7), + 57: uint8(8), + 58: uint8(9), + 59: Uint8FromInt32(-Int32FromInt32(1)), + 60: Uint8FromInt32(-Int32FromInt32(1)), + 61: Uint8FromInt32(-Int32FromInt32(1)), + 62: Uint8FromInt32(-Int32FromInt32(1)), + 63: Uint8FromInt32(-Int32FromInt32(1)), + 64: Uint8FromInt32(-Int32FromInt32(1)), + 65: Uint8FromInt32(-Int32FromInt32(1)), + 66: uint8(10), + 67: uint8(11), + 68: uint8(12), + 69: uint8(13), + 70: uint8(14), + 71: uint8(15), + 72: uint8(16), + 73: uint8(17), + 74: uint8(18), + 75: uint8(19), + 76: uint8(20), + 77: uint8(21), + 78: uint8(22), + 79: uint8(23), + 80: uint8(24), + 81: uint8(25), + 82: uint8(26), + 83: uint8(27), + 84: uint8(28), + 85: uint8(29), + 86: uint8(30), + 87: uint8(31), + 88: uint8(32), + 89: uint8(33), + 90: uint8(34), + 91: uint8(35), + 92: Uint8FromInt32(-Int32FromInt32(1)), + 93: Uint8FromInt32(-Int32FromInt32(1)), + 94: Uint8FromInt32(-Int32FromInt32(1)), + 95: Uint8FromInt32(-Int32FromInt32(1)), + 96: Uint8FromInt32(-Int32FromInt32(1)), + 97: Uint8FromInt32(-Int32FromInt32(1)), + 98: uint8(10), + 99: uint8(11), + 100: uint8(12), + 101: uint8(13), + 102: uint8(14), + 103: uint8(15), + 104: uint8(16), + 105: uint8(17), + 106: uint8(18), + 107: uint8(19), + 108: uint8(20), + 109: uint8(21), + 110: uint8(22), + 111: uint8(23), + 112: uint8(24), + 113: uint8(25), + 114: uint8(26), + 115: uint8(27), + 116: uint8(28), + 117: uint8(29), + 118: uint8(30), + 119: uint8(31), + 120: uint8(32), + 121: uint8(33), + 122: uint8(34), + 123: uint8(35), + 124: Uint8FromInt32(-Int32FromInt32(1)), + 125: Uint8FromInt32(-Int32FromInt32(1)), + 126: Uint8FromInt32(-Int32FromInt32(1)), + 127: Uint8FromInt32(-Int32FromInt32(1)), + 128: Uint8FromInt32(-Int32FromInt32(1)), + 129: Uint8FromInt32(-Int32FromInt32(1)), + 130: Uint8FromInt32(-Int32FromInt32(1)), + 131: Uint8FromInt32(-Int32FromInt32(1)), + 132: Uint8FromInt32(-Int32FromInt32(1)), + 133: Uint8FromInt32(-Int32FromInt32(1)), + 134: Uint8FromInt32(-Int32FromInt32(1)), + 135: Uint8FromInt32(-Int32FromInt32(1)), + 136: Uint8FromInt32(-Int32FromInt32(1)), + 137: Uint8FromInt32(-Int32FromInt32(1)), + 138: Uint8FromInt32(-Int32FromInt32(1)), + 139: Uint8FromInt32(-Int32FromInt32(1)), + 140: Uint8FromInt32(-Int32FromInt32(1)), + 141: Uint8FromInt32(-Int32FromInt32(1)), + 142: Uint8FromInt32(-Int32FromInt32(1)), + 143: Uint8FromInt32(-Int32FromInt32(1)), + 144: Uint8FromInt32(-Int32FromInt32(1)), + 145: Uint8FromInt32(-Int32FromInt32(1)), + 146: Uint8FromInt32(-Int32FromInt32(1)), + 147: Uint8FromInt32(-Int32FromInt32(1)), + 148: Uint8FromInt32(-Int32FromInt32(1)), + 149: Uint8FromInt32(-Int32FromInt32(1)), + 150: Uint8FromInt32(-Int32FromInt32(1)), + 151: Uint8FromInt32(-Int32FromInt32(1)), + 152: Uint8FromInt32(-Int32FromInt32(1)), + 153: Uint8FromInt32(-Int32FromInt32(1)), + 154: Uint8FromInt32(-Int32FromInt32(1)), + 155: Uint8FromInt32(-Int32FromInt32(1)), + 156: Uint8FromInt32(-Int32FromInt32(1)), + 157: Uint8FromInt32(-Int32FromInt32(1)), + 158: Uint8FromInt32(-Int32FromInt32(1)), + 159: Uint8FromInt32(-Int32FromInt32(1)), + 160: Uint8FromInt32(-Int32FromInt32(1)), + 161: Uint8FromInt32(-Int32FromInt32(1)), + 162: Uint8FromInt32(-Int32FromInt32(1)), + 163: Uint8FromInt32(-Int32FromInt32(1)), + 164: Uint8FromInt32(-Int32FromInt32(1)), + 165: Uint8FromInt32(-Int32FromInt32(1)), + 166: Uint8FromInt32(-Int32FromInt32(1)), + 167: Uint8FromInt32(-Int32FromInt32(1)), + 168: Uint8FromInt32(-Int32FromInt32(1)), + 169: Uint8FromInt32(-Int32FromInt32(1)), + 170: Uint8FromInt32(-Int32FromInt32(1)), + 171: Uint8FromInt32(-Int32FromInt32(1)), + 172: Uint8FromInt32(-Int32FromInt32(1)), + 173: Uint8FromInt32(-Int32FromInt32(1)), + 174: Uint8FromInt32(-Int32FromInt32(1)), + 175: Uint8FromInt32(-Int32FromInt32(1)), + 176: Uint8FromInt32(-Int32FromInt32(1)), + 177: Uint8FromInt32(-Int32FromInt32(1)), + 178: Uint8FromInt32(-Int32FromInt32(1)), + 179: Uint8FromInt32(-Int32FromInt32(1)), + 180: Uint8FromInt32(-Int32FromInt32(1)), + 181: Uint8FromInt32(-Int32FromInt32(1)), + 182: Uint8FromInt32(-Int32FromInt32(1)), + 183: Uint8FromInt32(-Int32FromInt32(1)), + 184: Uint8FromInt32(-Int32FromInt32(1)), + 185: Uint8FromInt32(-Int32FromInt32(1)), + 186: Uint8FromInt32(-Int32FromInt32(1)), + 187: Uint8FromInt32(-Int32FromInt32(1)), + 188: Uint8FromInt32(-Int32FromInt32(1)), + 189: Uint8FromInt32(-Int32FromInt32(1)), + 190: Uint8FromInt32(-Int32FromInt32(1)), + 191: Uint8FromInt32(-Int32FromInt32(1)), + 192: Uint8FromInt32(-Int32FromInt32(1)), + 193: Uint8FromInt32(-Int32FromInt32(1)), + 194: Uint8FromInt32(-Int32FromInt32(1)), + 195: Uint8FromInt32(-Int32FromInt32(1)), + 196: Uint8FromInt32(-Int32FromInt32(1)), + 197: Uint8FromInt32(-Int32FromInt32(1)), + 198: Uint8FromInt32(-Int32FromInt32(1)), + 199: Uint8FromInt32(-Int32FromInt32(1)), + 200: Uint8FromInt32(-Int32FromInt32(1)), + 201: Uint8FromInt32(-Int32FromInt32(1)), + 202: Uint8FromInt32(-Int32FromInt32(1)), + 203: Uint8FromInt32(-Int32FromInt32(1)), + 204: Uint8FromInt32(-Int32FromInt32(1)), + 205: Uint8FromInt32(-Int32FromInt32(1)), + 206: Uint8FromInt32(-Int32FromInt32(1)), + 207: Uint8FromInt32(-Int32FromInt32(1)), + 208: Uint8FromInt32(-Int32FromInt32(1)), + 209: Uint8FromInt32(-Int32FromInt32(1)), + 210: Uint8FromInt32(-Int32FromInt32(1)), + 211: Uint8FromInt32(-Int32FromInt32(1)), + 212: Uint8FromInt32(-Int32FromInt32(1)), + 213: Uint8FromInt32(-Int32FromInt32(1)), + 214: Uint8FromInt32(-Int32FromInt32(1)), + 215: Uint8FromInt32(-Int32FromInt32(1)), + 216: Uint8FromInt32(-Int32FromInt32(1)), + 217: Uint8FromInt32(-Int32FromInt32(1)), + 218: Uint8FromInt32(-Int32FromInt32(1)), + 219: Uint8FromInt32(-Int32FromInt32(1)), + 220: Uint8FromInt32(-Int32FromInt32(1)), + 221: Uint8FromInt32(-Int32FromInt32(1)), + 222: Uint8FromInt32(-Int32FromInt32(1)), + 223: Uint8FromInt32(-Int32FromInt32(1)), + 224: Uint8FromInt32(-Int32FromInt32(1)), + 225: Uint8FromInt32(-Int32FromInt32(1)), + 226: Uint8FromInt32(-Int32FromInt32(1)), + 227: Uint8FromInt32(-Int32FromInt32(1)), + 228: Uint8FromInt32(-Int32FromInt32(1)), + 229: Uint8FromInt32(-Int32FromInt32(1)), + 230: Uint8FromInt32(-Int32FromInt32(1)), + 231: Uint8FromInt32(-Int32FromInt32(1)), + 232: Uint8FromInt32(-Int32FromInt32(1)), + 233: Uint8FromInt32(-Int32FromInt32(1)), + 234: Uint8FromInt32(-Int32FromInt32(1)), + 235: Uint8FromInt32(-Int32FromInt32(1)), + 236: Uint8FromInt32(-Int32FromInt32(1)), + 237: Uint8FromInt32(-Int32FromInt32(1)), + 238: Uint8FromInt32(-Int32FromInt32(1)), + 239: Uint8FromInt32(-Int32FromInt32(1)), + 240: Uint8FromInt32(-Int32FromInt32(1)), + 241: Uint8FromInt32(-Int32FromInt32(1)), + 242: Uint8FromInt32(-Int32FromInt32(1)), + 243: Uint8FromInt32(-Int32FromInt32(1)), + 244: Uint8FromInt32(-Int32FromInt32(1)), + 245: Uint8FromInt32(-Int32FromInt32(1)), + 246: Uint8FromInt32(-Int32FromInt32(1)), + 247: Uint8FromInt32(-Int32FromInt32(1)), + 248: Uint8FromInt32(-Int32FromInt32(1)), + 249: Uint8FromInt32(-Int32FromInt32(1)), + 250: Uint8FromInt32(-Int32FromInt32(1)), + 251: Uint8FromInt32(-Int32FromInt32(1)), + 252: Uint8FromInt32(-Int32FromInt32(1)), + 253: Uint8FromInt32(-Int32FromInt32(1)), + 254: Uint8FromInt32(-Int32FromInt32(1)), + 255: Uint8FromInt32(-Int32FromInt32(1)), + 256: Uint8FromInt32(-Int32FromInt32(1)), +} + +func X__intscan(tls *TLS, f uintptr, base uint32, pok int32, lim uint64) (r uint64) { + if __ccgo_strace { + trc("tls=%v f=%v base=%v pok=%v lim=%v, (%v:)", tls, f, base, pok, lim, origin(2)) + defer func() { trc("-> %v", r) }() + } + var bs, c, neg, v1, v2, v5, v6 int32 + var val, v3, v4 uintptr + var x uint32 + var y uint64 + _, _, _, _, _, _, _, _, _, _, _, _ = bs, c, neg, val, x, y, v1, v2, v3, v4, v5, v6 + val = uintptr(unsafe.Pointer(&_table6)) + uintptr(1) + neg = 0 + if base > uint32(36) || base == uint32(1) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uint64(0) + } + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v2 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v2 = X__shgetc(tls, f) + } + v1 = v2 + c = v1 + v5 = v1 + v6 = BoolInt32(v5 == int32(' ') || Uint32FromInt32(v5)-uint32('\t') < uint32(5)) + goto _7 + _7: + if !(v6 != 0) { + break + } + } + if c == int32('+') || c == int32('-') { + neg = -BoolInt32(c == int32('-')) + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + if (base == uint32(0) || base == uint32(16)) && c == int32('0') { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + if c|int32(32) == int32('x') { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + if Int32FromUint8(**(**uint8)(__ccgo_up(val + uintptr(c)))) >= int32(16) { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + if pok != 0 { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + } else { + X__shlim(tls, f, int64(Int32FromInt32(0))) + } + return uint64(0) + } + base = uint32(16) + } else { + if base == uint32(0) { + base = uint32(8) + } + } + } else { + if base == uint32(0) { + base = uint32(10) + } + if uint32(**(**uint8)(__ccgo_up(val + uintptr(c)))) >= base { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + X__shlim(tls, f, int64(Int32FromInt32(0))) + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uint64(0) + } + } + if base == uint32(10) { + x = uint32(0) + for { + if !(Uint32FromInt32(c-int32('0')) < uint32(10) && x <= Uint32FromUint32(0xffffffff)/Uint32FromInt32(10)-Uint32FromInt32(1)) { + break + } + x = x*uint32(10) + Uint32FromInt32(c-Int32FromUint8('0')) + goto _17 + _17: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + y = uint64(x) + for { + if !(Uint32FromInt32(c-int32('0')) < uint32(10) && y <= (Uint64FromUint64(2)*Uint64FromInt64(0x7fffffffffffffff)+Uint64FromInt32(1))/Uint64FromInt32(10) && uint64(10)*y <= Uint64FromUint64(2)*Uint64FromInt64(0x7fffffffffffffff)+Uint64FromInt32(1)-Uint64FromInt32(c-Int32FromUint8('0'))) { + break + } + y = y*uint64(10) + Uint64FromInt32(c-Int32FromUint8('0')) + goto _21 + _21: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + if Uint32FromInt32(c-int32('0')) >= uint32(10) { + goto done + } + } else { + if !(base&(base-Uint32FromInt32(1)) != 0) { + bs = int32(**(**int8)(__ccgo_up(__ccgo_ts + 260 + uintptr(uint32(0x17)*base>>int32(5)&uint32(7))))) + x = uint32(0) + for { + if !(uint32(**(**uint8)(__ccgo_up(val + uintptr(c)))) < base && x <= Uint32FromUint32(0xffffffff)/Uint32FromInt32(32)) { + break + } + x = x<>bs) { + break + } + y = y<= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + if y >= lim { + if !(lim&Uint64FromInt32(1) != 0) && !(neg != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ERANGE) + return lim - uint64(1) + } else { + if y > lim { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ERANGE) + return lim + } + } + } + return y ^ Uint64FromInt32(neg) - Uint64FromInt32(neg) +} + +func X__procfdname(tls *TLS, buf uintptr, fd uint32) { + if __ccgo_strace { + trc("tls=%v buf=%v fd=%v, (%v:)", tls, buf, fd, origin(2)) + } + var i, j, v5 uint32 + var v2 int8 + _, _, _, _ = i, j, v2, v5 + i = uint32(0) + for { + v2 = **(**int8)(__ccgo_up(__ccgo_ts + 269 + uintptr(i))) + **(**int8)(__ccgo_up(buf + uintptr(i))) = v2 + if !(v2 != 0) { + break + } + goto _1 + _1: + ; + i = i + 1 + } + if !(fd != 0) { + **(**int8)(__ccgo_up(buf + uintptr(i))) = int8('0') + **(**int8)(__ccgo_up(buf + uintptr(i+uint32(1)))) = 0 + return + } + j = fd + for { + if !(j != 0) { + break + } + goto _3 + _3: + ; + j = j / uint32(10) + i = i + 1 + } + **(**int8)(__ccgo_up(buf + uintptr(i))) = 0 + for { + if !(fd != 0) { + break + } + i = i - 1 + v5 = i + **(**int8)(__ccgo_up(buf + uintptr(v5))) = Int8FromUint32(uint32('0') + fd%uint32(10)) + goto _4 + _4: + ; + fd = fd / uint32(10) + } +} + +/* The shcnt field stores the number of bytes read so far, offset by + * the value of buf-rpos at the last function call (__shlim or __shgetc), + * so that between calls the inline shcnt macro can add rpos-buf to get + * the actual count. */ + +func X__shlim(tls *TLS, f uintptr, lim Toff_t) { + if __ccgo_strace { + trc("tls=%v f=%v lim=%v, (%v:)", tls, f, lim, origin(2)) + } + (*TFILE)(unsafe.Pointer(f)).Fshlim = lim + (*TFILE)(unsafe.Pointer(f)).Fshcnt = int64((*TFILE)(unsafe.Pointer(f)).Fbuf) - int64((*TFILE)(unsafe.Pointer(f)).Frpos) + /* If lim is nonzero, rend must be a valid pointer. */ + if lim != 0 && int64((*TFILE)(unsafe.Pointer(f)).Frend)-int64((*TFILE)(unsafe.Pointer(f)).Frpos) > lim { + (*TFILE)(unsafe.Pointer(f)).Fshend = (*TFILE)(unsafe.Pointer(f)).Frpos + uintptr(lim) + } else { + (*TFILE)(unsafe.Pointer(f)).Fshend = (*TFILE)(unsafe.Pointer(f)).Frend + } +} + +func X__shgetc(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var c, v1 int32 + var cnt Toff_t + var v2 bool + _, _, _, _ = c, cnt, v1, v2 + cnt = (*TFILE)(unsafe.Pointer(f)).Fshcnt + (int64((*TFILE)(unsafe.Pointer(f)).Frpos) - int64((*TFILE)(unsafe.Pointer(f)).Fbuf)) + if v2 = (*TFILE)(unsafe.Pointer(f)).Fshlim != 0 && cnt >= (*TFILE)(unsafe.Pointer(f)).Fshlim; !v2 { + v1 = X__uflow(tls, f) + c = v1 + } + if v2 || v1 < 0 { + (*TFILE)(unsafe.Pointer(f)).Fshcnt = int64((*TFILE)(unsafe.Pointer(f)).Fbuf) - int64((*TFILE)(unsafe.Pointer(f)).Frpos) + cnt + (*TFILE)(unsafe.Pointer(f)).Fshend = (*TFILE)(unsafe.Pointer(f)).Frpos + (*TFILE)(unsafe.Pointer(f)).Fshlim = int64(-int32(1)) + return -int32(1) + } + cnt = cnt + 1 + if (*TFILE)(unsafe.Pointer(f)).Fshlim != 0 && int64((*TFILE)(unsafe.Pointer(f)).Frend)-int64((*TFILE)(unsafe.Pointer(f)).Frpos) > (*TFILE)(unsafe.Pointer(f)).Fshlim-cnt { + (*TFILE)(unsafe.Pointer(f)).Fshend = (*TFILE)(unsafe.Pointer(f)).Frpos + uintptr((*TFILE)(unsafe.Pointer(f)).Fshlim-cnt) + } else { + (*TFILE)(unsafe.Pointer(f)).Fshend = (*TFILE)(unsafe.Pointer(f)).Frend + } + (*TFILE)(unsafe.Pointer(f)).Fshcnt = int64((*TFILE)(unsafe.Pointer(f)).Fbuf) - int64((*TFILE)(unsafe.Pointer(f)).Frpos) + cnt + if (*TFILE)(unsafe.Pointer(f)).Frpos <= (*TFILE)(unsafe.Pointer(f)).Fbuf { + **(**uint8)(__ccgo_up((*TFILE)(unsafe.Pointer(f)).Frpos + uintptr(-Int32FromInt32(1)))) = Uint8FromInt32(c) + } + return c +} + +func X__syscall_ret(tls *TLS, r uint64) (r1 int64) { + if __ccgo_strace { + trc("tls=%v r=%v, (%v:)", tls, r, origin(2)) + defer func() { trc("-> %v", r1) }() + } + if r > -Uint64FromUint64(4096) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = Int32FromUint64(-r) + return int64(-int32(1)) + } + return Int64FromUint64(r) +} + +type TElf_Symndx = uint32 + +type Tdl_phdr_info = struct { + Fdlpi_addr TElf64_Addr + Fdlpi_name uintptr + Fdlpi_phdr uintptr + Fdlpi_phnum TElf64_Half + Fdlpi_adds uint64 + Fdlpi_subs uint64 + Fdlpi_tls_modid Tsize_t + Fdlpi_tls_data uintptr +} + +type Tlink_map = struct { + Fl_addr TElf64_Addr + Fl_name uintptr + Fl_ld uintptr + Fl_next uintptr + Fl_prev uintptr +} + +type Tr_debug = struct { + Fr_version int32 + Fr_map uintptr + Fr_brk TElf64_Addr + Fr_state int32 + Fr_ldbase TElf64_Addr +} + +const _RT_CONSISTENT = 0 +const _RT_ADD = 1 +const _RT_DELETE = 2 +const VERSION = "1.2.5" + +const IPC_CREAT = 512 +const IPC_EXCL = 1024 +const IPC_INFO = 3 +const IPC_NOWAIT = 2048 +const IPC_RMID = 0 +const IPC_SET = 1 +const IPC_STAT = 2 +const __ipc_perm_key = 0 +const __ipc_perm_seq = 0 + +type Tkey_t = int32 + +type Tipc_perm = struct { + F__key Tkey_t + Fuid Tuid_t + Fgid Tgid_t + Fcuid Tuid_t + Fcgid Tgid_t + Fmode Tmode_t + F__seq int32 + F__pad1 int64 + F__pad2 int64 +} + +func Xftok(tls *TLS, path uintptr, id int32) (r Tkey_t) { + if __ccgo_strace { + trc("tls=%v path=%v id=%v, (%v:)", tls, path, id, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(128) + defer tls.Free(128) + var _ /* st at bp+0 */ Tstat + if Xstat(tls, path, bp) < 0 { + return -int32(1) + } + return Int32FromUint64((**(**Tstat)(__ccgo_up(bp))).Fst_ino&Uint64FromInt32(0xffff) | (**(**Tstat)(__ccgo_up(bp))).Fst_dev&Uint64FromInt32(0xff)< %v", r1) }() + } + var r int32 + _ = r + r = int32(X__syscall3(tls, int64(SYS_msgctl), int64(q), int64(cmd & ^(Int32FromInt32(IPC_STAT)&Int32FromInt32(0x100)) | Int32FromInt32(IPC_64)), int64(buf))) + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func Xmsgget(tls *TLS, k Tkey_t, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v k=%v flag=%v, (%v:)", tls, k, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_msgget), int64(k), int64(flag))))) +} + +func Xmsgrcv(tls *TLS, q int32, m uintptr, len1 Tsize_t, type1 int64, flag int32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v q=%v m=%v len1=%v type1=%v flag=%v, (%v:)", tls, q, m, len1, type1, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_msgrcv), int64(q), int64(m), Int64FromUint64(len1), type1, int64(flag), 0))) +} + +func Xmsgsnd(tls *TLS, q int32, m uintptr, len1 Tsize_t, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v q=%v m=%v len1=%v flag=%v, (%v:)", tls, q, m, len1, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_msgsnd), int64(q), int64(m), Int64FromUint64(len1), int64(flag), 0, 0)))) +} + +const GETALL = 13 +const GETNCNT = 14 +const GETPID = 11 +const GETVAL = 12 +const GETZCNT = 15 +const SEM_INFO = 19 +const SEM_STAT = 18 +const SEM_STAT_ANY = 20 +const SEM_UNDO = 4096 +const SETALL = 17 +const SETVAL = 16 +const _SEM_SEMUN_UNDEFINED = 1 + +type Tsemid_ds = struct { + Fsem_perm Tipc_perm + Fsem_otime Ttime_t + Fsem_ctime Ttime_t + Fsem_nsems uint16 + F__sem_nsems_pad [6]int8 + F__unused3 int64 + F__unused4 int64 +} + +type Tseminfo = struct { + Fsemmap int32 + Fsemmni int32 + Fsemmns int32 + Fsemmnu int32 + Fsemmsl int32 + Fsemopm int32 + Fsemume int32 + Fsemusz int32 + Fsemvmx int32 + Fsemaem int32 +} + +type Tsembuf = struct { + Fsem_num uint16 + Fsem_op int16 + Fsem_flg int16 +} + +type Tsemun = struct { + Fbuf [0]uintptr + Farray [0]uintptr + Fval int32 + F__ccgo_pad3 [4]byte +} + +func Xsemctl(tls *TLS, id int32, num int32, cmd int32, va uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v id=%v num=%v cmd=%v va=%v, (%v:)", tls, id, num, cmd, va, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ap Tva_list + var r int32 + var _ /* arg at bp+0 */ Tsemun + _, _ = ap, r + *(*Tsemun)(unsafe.Pointer(bp)) = Tsemun{} + *(*int32)(unsafe.Pointer(bp)) = 0 + switch cmd & ^(Int32FromInt32(IPC_STAT) & Int32FromInt32(0x100)) { + case int32(SETVAL): + fallthrough + case int32(GETALL): + fallthrough + case int32(SETALL): + fallthrough + case int32(IPC_SET): + fallthrough + case int32(IPC_INFO): + fallthrough + case int32(SEM_INFO): + fallthrough + case Int32FromInt32(IPC_STAT) & ^(Int32FromInt32(IPC_STAT) & Int32FromInt32(0x100)): + fallthrough + case (Int32FromInt32(18) | Int32FromInt32(IPC_STAT)&Int32FromInt32(0x100)) & ^(Int32FromInt32(IPC_STAT) & Int32FromInt32(0x100)): + fallthrough + case (Int32FromInt32(20) | Int32FromInt32(IPC_STAT)&Int32FromInt32(0x100)) & ^(Int32FromInt32(IPC_STAT) & Int32FromInt32(0x100)): + ap = va + **(**Tsemun)(__ccgo_up(bp)) = *(*Tsemun)(unsafe.Pointer(VaOther(&ap, 8))) + _ = ap + } + r = int32(X__syscall4(tls, int64(SYS_semctl), int64(id), int64(num), int64(cmd & ^(Int32FromInt32(IPC_STAT)&Int32FromInt32(0x100)) | Int32FromInt32(IPC_64)), int64(*(*uintptr)(unsafe.Pointer(bp))))) + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func Xsemget(tls *TLS, key Tkey_t, n int32, fl int32) (r int32) { + if __ccgo_strace { + trc("tls=%v key=%v n=%v fl=%v, (%v:)", tls, key, n, fl, origin(2)) + defer func() { trc("-> %v", r) }() + } + /* The kernel uses the wrong type for the sem_nsems member + * of struct semid_ds, and thus might not check that the + * n fits in the correct (per POSIX) userspace type, so + * we have to check here. */ + if n > int32(USHRT_MAX) { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL)))) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_semget), int64(key), int64(n), int64(fl))))) +} + +func Xsemop(tls *TLS, id int32, buf uintptr, n Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v id=%v buf=%v n=%v, (%v:)", tls, id, buf, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_semop), int64(id), int64(buf), Int64FromUint64(n))))) +} + +const NO_TIME32 = 0 +const __key = 0 +const __seq = 0 + +type Tipc_perm1 = struct { + Fkey Tkey_t + Fuid Tuid_t + Fgid Tgid_t + Fcuid Tuid_t + Fcgid Tgid_t + Fmode Tmode_t + Fseq int32 + F__pad1 int64 + F__pad2 int64 +} + +type Tsemid_ds1 = struct { + Fsem_perm Tipc_perm1 + Fsem_otime Ttime_t + Fsem_ctime Ttime_t + Fsem_nsems uint16 + F__sem_nsems_pad [6]int8 + F__unused3 int64 + F__unused4 int64 +} + +func Xsemtimedop(tls *TLS, id int32, buf uintptr, n Tsize_t, ts uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v id=%v buf=%v n=%v ts=%v, (%v:)", tls, id, buf, n, ts, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_semtimedop), int64(id), int64(buf), Int64FromUint64(n), int64(ts))))) +} + +const SHMLBA = 4096 +const SHM_DEST = 512 +const SHM_EXEC = 32768 +const SHM_HUGETLB = 2048 +const SHM_HUGE_16GB = 2281701376 +const SHM_HUGE_16MB = 1610612736 +const SHM_HUGE_1GB = 2013265920 +const SHM_HUGE_1MB = 1342177280 +const SHM_HUGE_256MB = 1879048192 +const SHM_HUGE_2GB = 2080374784 +const SHM_HUGE_2MB = 1409286144 +const SHM_HUGE_32MB = 1677721600 +const SHM_HUGE_512KB = 1275068416 +const SHM_HUGE_512MB = 1946157056 +const SHM_HUGE_64KB = 1073741824 +const SHM_HUGE_8MB = 1543503872 +const SHM_HUGE_MASK = 63 +const SHM_HUGE_SHIFT = 26 +const SHM_INFO = 14 +const SHM_LOCK = 11 +const SHM_LOCKED = 1024 +const SHM_NORESERVE = 4096 +const SHM_R = 256 +const SHM_RDONLY = 4096 +const SHM_REMAP = 16384 +const SHM_RND = 8192 +const SHM_STAT = 13 +const SHM_STAT_ANY = 15 +const SHM_UNLOCK = 12 +const SHM_W = 128 + +type Tshmid_ds = struct { + Fshm_perm Tipc_perm + Fshm_segsz Tsize_t + Fshm_atime Ttime_t + Fshm_dtime Ttime_t + Fshm_ctime Ttime_t + Fshm_cpid Tpid_t + Fshm_lpid Tpid_t + Fshm_nattch uint64 + F__pad1 uint64 + F__pad2 uint64 +} + +type Tshminfo = struct { + Fshmmax uint64 + Fshmmin uint64 + Fshmmni uint64 + Fshmseg uint64 + Fshmall uint64 + F__unused [4]uint64 +} + +type Tshm_info = struct { + F__used_ids int32 + Fshm_tot uint64 + Fshm_rss uint64 + Fshm_swp uint64 + F__swap_attempts uint64 + F__swap_successes uint64 +} + +type Tshmatt_t = uint64 + +func Xshmat(tls *TLS, id int32, addr uintptr, flag int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v id=%v addr=%v flag=%v, (%v:)", tls, id, addr, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_shmat), int64(id), int64(addr), int64(flag))))) +} + +func Xshmctl(tls *TLS, id int32, cmd int32, buf uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v id=%v cmd=%v buf=%v, (%v:)", tls, id, cmd, buf, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + r = int32(X__syscall3(tls, int64(SYS_shmctl), int64(id), int64(cmd & ^(Int32FromInt32(IPC_STAT)&Int32FromInt32(0x100)) | Int32FromInt32(IPC_64)), int64(buf))) + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func Xshmdt(tls *TLS, addr uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v, (%v:)", tls, addr, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_shmdt), int64(addr))))) +} + +func Xshmget(tls *TLS, key Tkey_t, size Tsize_t, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v key=%v size=%v flag=%v, (%v:)", tls, key, size, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + if size > Uint64FromInt64(Int64FromInt64(INT64_MAX)) { + size = Uint64FromUint64(0xffffffffffffffff) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_shmget), int64(key), Int64FromUint64(size), int64(flag))))) +} + +type Tpasswd = struct { + Fpw_name uintptr + Fpw_passwd uintptr + Fpw_uid Tuid_t + Fpw_gid Tgid_t + Fpw_gecos uintptr + Fpw_dir uintptr + Fpw_shell uintptr +} + +func Xcuserid(tls *TLS, buf uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v buf=%v, (%v:)", tls, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(2112) + defer tls.Free(2112) + var len1 Tsize_t + var _ /* ppw at bp+48 */ uintptr + var _ /* pw at bp+0 */ Tpasswd + var _ /* pwb at bp+56 */ [256]int64 + _ = len1 + if buf != 0 { + **(**int8)(__ccgo_up(buf)) = 0 + } + Xgetpwuid_r(tls, Xgeteuid(tls), bp, bp+56, uint64(2048), bp+48) + if !(**(**uintptr)(__ccgo_up(bp + 48)) != 0) { + return buf + } + len1 = Xstrnlen(tls, (**(**Tpasswd)(__ccgo_up(bp))).Fpw_name, uint64(L_cuserid)) + if len1 == uint64(L_cuserid) { + return buf + } + if !(buf != 0) { + buf = uintptr(unsafe.Pointer(&_usridbuf)) + } + Xmemcpy(tls, buf, (**(**Tpasswd)(__ccgo_up(bp))).Fpw_name, len1+uint64(1)) + return buf +} + +var _usridbuf [20]int8 + +func Xvwarn(tls *TLS, fmt uintptr, ap Tva_list) { + if __ccgo_strace { + trc("tls=%v fmt=%v ap=%v, (%v:)", tls, fmt, ap, origin(2)) + } + bp := tls.Alloc(16) + defer tls.Free(16) + Xfprintf(tls, uintptr(unsafe.Pointer(&X__stderr_FILE)), __ccgo_ts+284, VaList(bp+8, Xprogram_invocation_short_name)) + if fmt != 0 { + Xvfprintf(tls, uintptr(unsafe.Pointer(&X__stderr_FILE)), fmt, ap) + Xfputs(tls, __ccgo_ts+289, uintptr(unsafe.Pointer(&X__stderr_FILE))) + } + Xperror(tls, uintptr(0)) +} + +func Xvwarnx(tls *TLS, fmt uintptr, ap Tva_list) { + if __ccgo_strace { + trc("tls=%v fmt=%v ap=%v, (%v:)", tls, fmt, ap, origin(2)) + } + bp := tls.Alloc(16) + defer tls.Free(16) + Xfprintf(tls, uintptr(unsafe.Pointer(&X__stderr_FILE)), __ccgo_ts+284, VaList(bp+8, Xprogram_invocation_short_name)) + if fmt != 0 { + Xvfprintf(tls, uintptr(unsafe.Pointer(&X__stderr_FILE)), fmt, ap) + } + Xputc(tls, int32('\n'), uintptr(unsafe.Pointer(&X__stderr_FILE))) +} + +func Xverr(tls *TLS, status int32, fmt uintptr, ap Tva_list) { + if __ccgo_strace { + trc("tls=%v status=%v fmt=%v ap=%v, (%v:)", tls, status, fmt, ap, origin(2)) + } + Xvwarn(tls, fmt, ap) + _exit(tls, status) +} + +func Xverrx(tls *TLS, status int32, fmt uintptr, ap Tva_list) { + if __ccgo_strace { + trc("tls=%v status=%v fmt=%v ap=%v, (%v:)", tls, status, fmt, ap, origin(2)) + } + Xvwarnx(tls, fmt, ap) + _exit(tls, status) +} + +func Xwarn(tls *TLS, fmt uintptr, va uintptr) { + if __ccgo_strace { + trc("tls=%v fmt=%v va=%v, (%v:)", tls, fmt, va, origin(2)) + } + var ap Tva_list + _ = ap + ap = va + Xvwarn(tls, fmt, ap) + _ = ap +} + +func Xwarnx(tls *TLS, fmt uintptr, va uintptr) { + if __ccgo_strace { + trc("tls=%v fmt=%v va=%v, (%v:)", tls, fmt, va, origin(2)) + } + var ap Tva_list + _ = ap + ap = va + Xvwarnx(tls, fmt, ap) + _ = ap +} + +func Xerr(tls *TLS, status int32, fmt uintptr, va uintptr) { + if __ccgo_strace { + trc("tls=%v status=%v fmt=%v va=%v, (%v:)", tls, status, fmt, va, origin(2)) + } + var ap Tva_list + _ = ap + ap = va + Xverr(tls, status, fmt, ap) + _ = ap +} + +func Xerrx(tls *TLS, status int32, fmt uintptr, va uintptr) { + if __ccgo_strace { + trc("tls=%v status=%v fmt=%v va=%v, (%v:)", tls, status, fmt, va, origin(2)) + } + var ap Tva_list + _ = ap + ap = va + Xverrx(tls, status, fmt, ap) + _ = ap +} + +func Xeuidaccess(tls *TLS, filename uintptr, amode int32) (r int32) { + if __ccgo_strace { + trc("tls=%v filename=%v amode=%v, (%v:)", tls, filename, amode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfaccessat(tls, -int32(100), filename, amode, int32(AT_EACCESS)) +} + +func Xeaccess(tls *TLS, filename uintptr, amode int32) (r int32) { + if __ccgo_strace { + trc("tls=%v filename=%v amode=%v, (%v:)", tls, filename, amode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xeuidaccess(tls, filename, amode) +} + +const FTW_CHDIR = 4 +const FTW_D = 2 +const FTW_DEPTH = 8 +const FTW_DNR = 3 +const FTW_DP = 6 +const FTW_F = 1 +const FTW_MOUNT = 2 +const FTW_NS = 4 +const FTW_PHYS = 1 +const FTW_SL = 5 +const FTW_SLN = 7 + +type TFTW = struct { + Fbase int32 + Flevel int32 +} + +type t__ccgo_fp__Xftw_1 = func(*TLS, uintptr, uintptr, int32) int32 + +func Xftw(tls *TLS, path uintptr, __ccgo_fp_fn uintptr, fd_limit int32) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v __ccgo_fp_fn=%v fd_limit=%v, (%v:)", tls, path, __ccgo_fp_fn, fd_limit, origin(2)) + defer func() { trc("-> %v", r) }() + } + /* The following cast assumes that calling a function with one + * argument more than it needs behaves as expected. This is + * actually undefined, but works on all real-world machines. */ + return Xnftw(tls, path, __ccgo_fp_fn, fd_limit, int32(FTW_PHYS)) +} + +const STATX_ALL = 4095 +const STATX_ATIME = 32 +const STATX_BASIC_STATS = 2047 +const STATX_BLOCKS = 1024 +const STATX_BTIME = 2048 +const STATX_CTIME = 128 +const STATX_GID = 16 +const STATX_INO = 256 +const STATX_MODE = 2 +const STATX_MTIME = 64 +const STATX_NLINK = 4 +const STATX_SIZE = 512 +const STATX_TYPE = 1 +const STATX_UID = 8 +const S_IEXEC = 64 +const S_IREAD = 256 +const S_IWRITE = 128 + +type Tstatx_timestamp = struct { + Ftv_sec Tint64_t + Ftv_nsec Tuint32_t + F__pad Tuint32_t +} + +type Tstatx = struct { + Fstx_mask Tuint32_t + Fstx_blksize Tuint32_t + Fstx_attributes Tuint64_t + Fstx_nlink Tuint32_t + Fstx_uid Tuint32_t + Fstx_gid Tuint32_t + Fstx_mode Tuint16_t + F__pad0 [1]Tuint16_t + Fstx_ino Tuint64_t + Fstx_size Tuint64_t + Fstx_blocks Tuint64_t + Fstx_attributes_mask Tuint64_t + Fstx_atime Tstatx_timestamp + Fstx_btime Tstatx_timestamp + Fstx_ctime Tstatx_timestamp + Fstx_mtime Tstatx_timestamp + Fstx_rdev_major Tuint32_t + Fstx_rdev_minor Tuint32_t + Fstx_dev_major Tuint32_t + Fstx_dev_minor Tuint32_t + F__pad1 [14]Tuint64_t +} + +type Ttimezone = struct { + Ftz_minuteswest int32 + Ftz_dsttime int32 +} + +func Xfutimes(tls *TLS, fd int32, tv uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v tv=%v, (%v:)", tls, fd, tv, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var _ /* times at bp+0 */ [2]Ttimespec + if !(tv != 0) { + return Xfutimens(tls, fd, uintptr(0)) + } + (**(**[2]Ttimespec)(__ccgo_up(bp)))[0].Ftv_sec = (**(**Ttimeval)(__ccgo_up(tv))).Ftv_sec + (**(**[2]Ttimespec)(__ccgo_up(bp)))[0].Ftv_nsec = (**(**Ttimeval)(__ccgo_up(tv))).Ftv_usec * int64(1000) + (**(**[2]Ttimespec)(__ccgo_up(bp)))[int32(1)].Ftv_sec = (**(**Ttimeval)(__ccgo_up(tv + 1*16))).Ftv_sec + (**(**[2]Ttimespec)(__ccgo_up(bp)))[int32(1)].Ftv_nsec = (**(**Ttimeval)(__ccgo_up(tv + 1*16))).Ftv_usec * int64(1000) + return Xfutimens(tls, fd, bp) +} + +const prlimit64 = 0 + +func Xgetdtablesize(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uint64 + var _ /* rl at bp+0 */ Trlimit + _ = v1 + Xgetrlimit(tls, int32(RLIMIT_NOFILE), bp) + if (**(**Trlimit)(__ccgo_up(bp))).Frlim_cur < uint64(INT_MAX) { + v1 = (**(**Trlimit)(__ccgo_up(bp))).Frlim_cur + } else { + v1 = uint64(INT_MAX) + } + return Int32FromUint64(v1) +} + +func Xgetloadavg(tls *TLS, a uintptr, n int32) (r int32) { + if __ccgo_strace { + trc("tls=%v a=%v n=%v, (%v:)", tls, a, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(368) + defer tls.Free(368) + var i, v1 int32 + var _ /* si at bp+0 */ Tsysinfo + _, _ = i, v1 + if n <= 0 { + if n != 0 { + v1 = -int32(1) + } else { + v1 = 0 + } + return v1 + } + Xsysinfo(tls, bp) + if n > int32(3) { + n = int32(3) + } + i = 0 + for { + if !(i < n) { + break + } + **(**float64)(__ccgo_up(a + uintptr(i)*8)) = float64(Float64FromFloat64(1) / float64(Int32FromInt32(1)< %v", r) }() + } + return Int32FromUint64(X__libc.Fpage_size) +} + +const B0 = 0 +const B1000000 = 4104 +const B110 = 3 +const B115200 = 4098 +const B1152000 = 4105 +const B1200 = 9 +const B134 = 4 +const B150 = 5 +const B1500000 = 4106 +const B1800 = 10 +const B19200 = 14 +const B200 = 6 +const B2000000 = 4107 +const B230400 = 4099 +const B2400 = 11 +const B2500000 = 4108 +const B300 = 7 +const B3000000 = 4109 +const B3500000 = 4110 +const B38400 = 15 +const B4000000 = 4111 +const B460800 = 4100 +const B4800 = 12 +const B50 = 1 +const B500000 = 4101 +const B57600 = 4097 +const B576000 = 4102 +const B600 = 8 +const B75 = 2 +const B921600 = 4103 +const B9600 = 13 +const BRKINT = 2 +const BS0 = 0 +const BS1 = 8192 +const BSDLY = 8192 +const CBAUD = 4111 +const CBAUDEX = 4096 +const CIBAUD = 269418496 +const CLOCAL = 2048 +const CMSPAR = 1073741824 +const CR0 = 0 +const CR1 = 512 +const CR2 = 1024 +const CR3 = 1536 +const CRDLY = 1536 +const CREAD = 128 +const CRTSCTS = 2147483648 +const CS5 = 0 +const CS6 = 16 +const CS7 = 32 +const CS8 = 48 +const CSIZE = 48 +const CSTOPB = 64 +const ECHO = 8 +const ECHOCTL = 512 +const ECHOE = 16 +const ECHOK = 32 +const ECHOKE = 2048 +const ECHONL = 64 +const ECHOPRT = 1024 +const EXTA = 14 +const EXTB = 15 +const EXTPROC = 65536 +const FF0 = 0 +const FF1 = 32768 +const FFDLY = 32768 +const FLUSHO = 4096 +const HUPCL = 1024 +const ICANON = 2 +const ICRNL = 256 +const IEXTEN = 32768 +const IGNBRK = 1 +const IGNCR = 128 +const IGNPAR = 4 +const IMAXBEL = 8192 +const INLCR = 64 +const INPCK = 16 +const ISIG = 1 +const ISTRIP = 32 +const IUCLC = 512 +const IUTF8 = 16384 +const IXANY = 2048 +const IXOFF = 4096 +const IXON = 1024 +const NCCS = 32 +const NL0 = 0 +const NL1 = 256 +const NLDLY = 256 +const NOFLSH = 128 +const OCRNL = 8 +const OFDEL = 128 +const OFILL = 64 +const OLCUC = 2 +const ONLCR = 4 +const ONLRET = 32 +const ONOCR = 16 +const OPOST = 1 +const PARENB = 256 +const PARMRK = 8 +const PARODD = 512 +const PENDIN = 16384 +const TAB0 = 0 +const TAB1 = 2048 +const TAB2 = 4096 +const TAB3 = 6144 +const TABDLY = 6144 +const TCIFLUSH = 0 +const TCIOFF = 2 +const TCIOFLUSH = 2 +const TCION = 3 +const TCOFLUSH = 1 +const TCOOFF = 0 +const TCOON = 1 +const TCSADRAIN = 1 +const TCSAFLUSH = 2 +const TCSANOW = 0 +const TOSTOP = 256 +const VDISCARD = 13 +const VEOF = 4 +const VEOL = 11 +const VEOL2 = 16 +const VERASE = 2 +const VINTR = 0 +const VKILL = 3 +const VLNEXT = 15 +const VMIN = 6 +const VQUIT = 1 +const VREPRINT = 12 +const VSTART = 8 +const VSTOP = 9 +const VSUSP = 10 +const VSWTC = 7 +const VT0 = 0 +const VT1 = 16384 +const VTDLY = 16384 +const VTIME = 5 +const VWERASE = 14 +const XCASE = 4 +const XTABS = 6144 + +type Twinsize = struct { + Fws_row uint16 + Fws_col uint16 + Fws_xpixel uint16 + Fws_ypixel uint16 +} + +type Tcc_t = uint8 + +type Tspeed_t = uint32 + +type Ttcflag_t = uint32 + +type Ttermios = struct { + Fc_iflag Ttcflag_t + Fc_oflag Ttcflag_t + Fc_cflag Ttcflag_t + Fc_lflag Ttcflag_t + Fc_line Tcc_t + Fc_cc [32]Tcc_t + F__c_ispeed Tspeed_t + F__c_ospeed Tspeed_t +} + +func Xgetpass(tls *TLS, prompt uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v prompt=%v, (%v:)", tls, prompt, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(144) + defer tls.Free(144) + var fd, v1 int32 + var l Tssize_t + var v2 uintptr + var _ /* s at bp+0 */ Ttermios + var _ /* t at bp+60 */ Ttermios + _, _, _, _ = fd, l, v1, v2 + v1 = Xopen(tls, __ccgo_ts+292, Int32FromInt32(O_RDWR)|Int32FromInt32(O_NOCTTY)|Int32FromInt32(O_CLOEXEC), 0) + fd = v1 + if v1 < 0 { + return uintptr(0) + } + Xtcgetattr(tls, fd, bp+60) + **(**Ttermios)(__ccgo_up(bp)) = **(**Ttermios)(__ccgo_up(bp + 60)) + (**(**Ttermios)(__ccgo_up(bp + 60))).Fc_lflag &= Uint32FromInt32(^(Int32FromInt32(ECHO) | Int32FromInt32(ISIG))) + (**(**Ttermios)(__ccgo_up(bp + 60))).Fc_lflag |= uint32(ICANON) + (**(**Ttermios)(__ccgo_up(bp + 60))).Fc_iflag &= Uint32FromInt32(^(Int32FromInt32(INLCR) | Int32FromInt32(IGNCR))) + (**(**Ttermios)(__ccgo_up(bp + 60))).Fc_iflag |= uint32(ICRNL) + Xtcsetattr(tls, fd, int32(TCSAFLUSH), bp+60) + Xtcdrain(tls, fd) + Xdprintf(tls, fd, __ccgo_ts+15, VaList(bp+128, prompt)) + l = Xread(tls, fd, uintptr(unsafe.Pointer(&_password)), uint64(128)) + if l >= 0 { + if l > 0 && int32(_password[l-int64(1)]) == int32('\n') || Uint64FromInt64(l) == uint64(128) { + l = l - 1 + } + _password[l] = 0 + } + Xtcsetattr(tls, fd, int32(TCSAFLUSH), bp) + Xdprintf(tls, fd, __ccgo_ts+301, 0) + Xclose(tls, fd) + if l < 0 { + v2 = uintptr(0) + } else { + v2 = uintptr(unsafe.Pointer(&_password)) + } + return v2 +} + +var _password [128]int8 + +var _defshells = [18]int8{'/', 'b', 'i', 'n', '/', 's', 'h', 10, '/', 'b', 'i', 'n', '/', 'c', 's', 'h', 10} + +var _line uintptr +var _linesize Tsize_t +var _f uintptr + +func Xendusershell(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + if _f != 0 { + Xfclose(tls, _f) + } + _f = uintptr(0) +} + +func Xsetusershell(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + if !(_f != 0) { + _f = Xfopen(tls, __ccgo_ts+303, __ccgo_ts+315) + } + if !(_f != 0) { + _f = Xfmemopen(tls, uintptr(unsafe.Pointer(&_defshells)), Uint64FromInt64(18)-Uint64FromInt32(1), __ccgo_ts+319) + } +} + +func Xgetusershell(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l Tssize_t + _ = l + if !(_f != 0) { + Xsetusershell(tls) + } + if !(_f != 0) { + return uintptr(0) + } + l = Xgetline(tls, uintptr(unsafe.Pointer(&_line)), uintptr(unsafe.Pointer(&_linesize)), _f) + if l <= 0 { + return uintptr(0) + } + if int32(**(**int8)(__ccgo_up(_line + uintptr(l-int64(1))))) == int32('\n') { + **(**int8)(__ccgo_up(_line + uintptr(l-int64(1)))) = 0 + } + return _line +} + +const ANYMARK = 1 +const FLUSHBAND = 4 +const FLUSHR = 1 +const FLUSHRW = 3 +const FLUSHW = 2 +const FMNAMESZ = 8 +const I_ATMARK = 21279 +const I_CANPUT = 21282 +const I_CKBAND = 21277 +const I_FDINSERT = 21264 +const I_FIND = 21259 +const I_FLUSH = 21253 +const I_FLUSHBAND = 21276 +const I_GETBAND = 21278 +const I_GETCLTIME = 21281 +const I_GETSIG = 21258 +const I_GRDOPT = 21255 +const I_GWROPT = 21268 +const I_LINK = 21260 +const I_LIST = 21269 +const I_LOOK = 21252 +const I_NREAD = 21249 +const I_PEEK = 21263 +const I_PLINK = 21270 +const I_POP = 21251 +const I_PUNLINK = 21271 +const I_PUSH = 21250 +const I_RECVFD = 21262 +const I_SENDFD = 21265 +const I_SETCLTIME = 21280 +const I_SETSIG = 21257 +const I_SRDOPT = 21254 +const I_STR = 21256 +const I_SWROPT = 21267 +const I_UNLINK = 21261 +const LASTMARK = 2 +const MORECTL = 1 +const MOREDATA = 2 +const MSG_ANY = 2 +const MSG_BAND = 4 +const MSG_HIPRI = 1 +const MUXID_ALL = -1 +const RMSGD = 1 +const RMSGN = 2 +const RNORM = 0 +const RPROTDAT = 4 +const RPROTDIS = 8 +const RPROTMASK = 28 +const RPROTNORM = 16 +const RS_HIPRI = 1 +const SNDPIPE = 2 +const SNDZERO = 1 +const S_BANDURG = 512 +const S_ERROR = 16 +const S_HANGUP = 32 +const S_HIPRI = 2 +const S_INPUT = 1 +const S_MSG = 8 +const S_OUTPUT = 4 +const S_RDBAND = 128 +const S_RDNORM = 64 +const S_WRBAND = 256 +const S_WRNORM = 4 +const __SID = 21248 + +type Tbandinfo = struct { + Fbi_pri uint8 + Fbi_flag int32 +} + +type Tstrbuf = struct { + Fmaxlen int32 + Flen1 int32 + Fbuf uintptr +} + +type Tstrpeek = struct { + Fctlbuf Tstrbuf + Fdatabuf Tstrbuf + Fflags uint32 +} + +type Tstrfdinsert = struct { + Fctlbuf Tstrbuf + Fdatabuf Tstrbuf + Fflags uint32 + Ffildes int32 + Foffset int32 +} + +type Tstrioctl = struct { + Fic_cmd int32 + Fic_timout int32 + Fic_len int32 + Fic_dp uintptr +} + +type Tstrrecvfd = struct { + Ffd int32 + Fuid int32 + Fgid int32 + F__fill [8]int8 +} + +type Tstr_mlist = struct { + Fl_name [9]int8 +} + +type Tstr_list = struct { + Fsl_nmods int32 + Fsl_modlist uintptr +} + +func Xisastream(tls *TLS, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + _ = v1 + if Xfcntl(tls, fd, int32(F_GETFD), 0) < 0 { + v1 = -int32(1) + } else { + v1 = 0 + } + return v1 +} + +func Xlutimes(tls *TLS, filename uintptr, tv uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v filename=%v tv=%v, (%v:)", tls, filename, tv, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var v1 uintptr + var _ /* times at bp+0 */ [2]Ttimespec + _ = v1 + if tv != 0 { + (**(**[2]Ttimespec)(__ccgo_up(bp)))[0].Ftv_sec = (**(**Ttimeval)(__ccgo_up(tv))).Ftv_sec + (**(**[2]Ttimespec)(__ccgo_up(bp)))[0].Ftv_nsec = (**(**Ttimeval)(__ccgo_up(tv))).Ftv_usec * int64(1000) + (**(**[2]Ttimespec)(__ccgo_up(bp)))[int32(1)].Ftv_sec = (**(**Ttimeval)(__ccgo_up(tv + 1*16))).Ftv_sec + (**(**[2]Ttimespec)(__ccgo_up(bp)))[int32(1)].Ftv_nsec = (**(**Ttimeval)(__ccgo_up(tv + 1*16))).Ftv_usec * int64(1000) + } + if tv != 0 { + v1 = bp + } else { + v1 = uintptr(0) + } + return Xutimensat(tls, -int32(100), filename, v1, int32(AT_SYMLINK_NOFOLLOW)) +} + +const UL_GETFSIZE = 1 +const UL_SETFSIZE = 2 + +func Xulimit(tls *TLS, cmd int32, va uintptr) (r int64) { + if __ccgo_strace { + trc("tls=%v cmd=%v va=%v, (%v:)", tls, cmd, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ap Tva_list + var val int64 + var _ /* rl at bp+0 */ Trlimit + _, _ = ap, val + Xgetrlimit(tls, int32(RLIMIT_FSIZE), bp) + if cmd == int32(UL_SETFSIZE) { + ap = va + val = VaInt64(&ap) + _ = ap + (**(**Trlimit)(__ccgo_up(bp))).Frlim_cur = uint64(512) * Uint64FromInt64(val) + if Xsetrlimit(tls, int32(RLIMIT_FSIZE), bp) != 0 { + return int64(-int32(1)) + } + } + return Int64FromUint64((**(**Trlimit)(__ccgo_up(bp))).Frlim_cur / uint64(512)) +} + +const BOOT_TIME = 2 +const DEAD_PROCESS = 8 +const EMPTY = 0 +const INIT_PROCESS = 5 +const LOGIN_PROCESS = 6 +const NEW_TIME = 3 +const OLD_TIME = 4 +const RUN_LVL = 1 +const USER_PROCESS = 7 +const e_exit = 0 +const e_termination = 0 + +type Tutmpx = struct { + Fut_type int16 + F__ut_pad1 int16 + Fut_pid Tpid_t + Fut_line [32]int8 + Fut_id [4]int8 + Fut_user [32]int8 + Fut_host [256]int8 + Fut_exit struct { + F__e_termination int16 + F__e_exit int16 + } + Fut_session int32 + F__ut_pad2 int32 + Fut_tv Ttimeval + Fut_addr_v6 [4]uint32 + F__unused [20]int8 +} + +func Xendutxent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } +} + +func Xsetutxent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } +} + +func Xgetutxent(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return UintptrFromInt32(0) +} + +func Xgetutxid(tls *TLS, ut uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v ut=%v, (%v:)", tls, ut, origin(2)) + defer func() { trc("-> %v", r) }() + } + return UintptrFromInt32(0) +} + +func Xgetutxline(tls *TLS, ut uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v ut=%v, (%v:)", tls, ut, origin(2)) + defer func() { trc("-> %v", r) }() + } + return UintptrFromInt32(0) +} + +func Xpututxline(tls *TLS, ut uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v ut=%v, (%v:)", tls, ut, origin(2)) + defer func() { trc("-> %v", r) }() + } + return UintptrFromInt32(0) +} + +func Xupdwtmpx(tls *TLS, f uintptr, u uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v u=%v, (%v:)", tls, f, u, origin(2)) + } +} + +func ___utmpxname(tls *TLS, f uintptr) (r int32) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOPNOTSUPP) + return -int32(1) +} + +func Xendutent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + Xendutxent(tls) +} + +func Xgetutent(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetutxent(tls) +} + +func Xgetutid(tls *TLS, ut uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v ut=%v, (%v:)", tls, ut, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetutxid(tls, ut) +} + +func Xgetutline(tls *TLS, ut uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v ut=%v, (%v:)", tls, ut, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetutxline(tls, ut) +} + +func Xpututline(tls *TLS, ut uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v ut=%v, (%v:)", tls, ut, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xpututxline(tls, ut) +} + +func Xsetutent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + Xsetutxent(tls) +} + +func Xupdwtmp(tls *TLS, f uintptr, u uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v u=%v, (%v:)", tls, f, u, origin(2)) + } + Xupdwtmpx(tls, f, u) +} + +const ADJ_ESTERROR = 8 +const ADJ_FREQUENCY = 2 +const ADJ_MAXERROR = 4 +const ADJ_MICRO = 4096 +const ADJ_NANO = 8192 +const ADJ_OFFSET = 1 +const ADJ_OFFSET_SINGLESHOT = 32769 +const ADJ_OFFSET_SS_READ = 40961 +const ADJ_SETOFFSET = 256 +const ADJ_STATUS = 16 +const ADJ_TAI = 128 +const ADJ_TICK = 16384 +const ADJ_TIMECONST = 32 +const MAXTC = 6 +const MOD_CLKA = 32769 +const MOD_CLKB = 16384 +const MOD_ESTERROR = 8 +const MOD_FREQUENCY = 2 +const MOD_MAXERROR = 4 +const MOD_MICRO = 4096 +const MOD_NANO = 8192 +const MOD_OFFSET = 1 +const MOD_STATUS = 16 +const MOD_TAI = 128 +const MOD_TIMECONST = 32 +const STA_CLK = 32768 +const STA_CLOCKERR = 4096 +const STA_DEL = 32 +const STA_FLL = 8 +const STA_FREQHOLD = 128 +const STA_INS = 16 +const STA_MODE = 16384 +const STA_NANO = 8192 +const STA_PLL = 1 +const STA_PPSERROR = 2048 +const STA_PPSFREQ = 2 +const STA_PPSJITTER = 512 +const STA_PPSSIGNAL = 256 +const STA_PPSTIME = 4 +const STA_PPSWANDER = 1024 +const STA_RONLY = 65280 +const STA_UNSYNC = 64 +const TIME_BAD = 5 +const TIME_DEL = 2 +const TIME_ERROR = 5 +const TIME_INS = 1 +const TIME_OK = 0 +const TIME_OOP = 3 +const TIME_WAIT = 4 + +type Tntptimeval = struct { + Ftime Ttimeval + Fmaxerror int64 + Festerror int64 +} + +type Ttimex = struct { + Fmodes uint32 + Foffset int64 + Ffreq int64 + Fmaxerror int64 + Festerror int64 + Fstatus int32 + Fconstant int64 + Fprecision int64 + Ftolerance int64 + Ftime Ttimeval + Ftick int64 + Fppsfreq int64 + Fjitter int64 + Fshift int32 + Fstabil int64 + Fjitcnt int64 + Fcalcnt int64 + Ferrcnt int64 + Fstbcnt int64 + Ftai int32 + F__padding [11]int32 +} + +func Xadjtime(tls *TLS, in uintptr, out uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v in=%v out=%v, (%v:)", tls, in, out, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(208) + defer tls.Free(208) + var v1 Tsuseconds_t + var _ /* tx at bp+0 */ Ttimex + _ = v1 + **(**Ttimex)(__ccgo_up(bp)) = Ttimex{} + if in != 0 { + if (*Ttimeval)(unsafe.Pointer(in)).Ftv_sec > int64(1000) || (*Ttimeval)(unsafe.Pointer(in)).Ftv_usec > int64(1000000000) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + (**(**Ttimex)(__ccgo_up(bp))).Foffset = (*Ttimeval)(unsafe.Pointer(in)).Ftv_sec*int64(1000000) + (*Ttimeval)(unsafe.Pointer(in)).Ftv_usec + (**(**Ttimex)(__ccgo_up(bp))).Fmodes = uint32(ADJ_OFFSET_SINGLESHOT) + } + if Xadjtimex(tls, bp) < 0 { + return -int32(1) + } + if out != 0 { + (*Ttimeval)(unsafe.Pointer(out)).Ftv_sec = (**(**Ttimex)(__ccgo_up(bp))).Foffset / int64(1000000) + v1 = (**(**Ttimex)(__ccgo_up(bp))).Foffset % Int64FromInt32(1000000) + (*Ttimeval)(unsafe.Pointer(out)).Ftv_usec = v1 + if v1 < 0 { + (*Ttimeval)(unsafe.Pointer(out)).Ftv_sec = (*Ttimeval)(unsafe.Pointer(out)).Ftv_sec - 1 + **(**Tsuseconds_t)(__ccgo_up(out + 8)) += int64(1000000) + } + } + return 0 +} + +func Xadjtimex(tls *TLS, tx uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v tx=%v, (%v:)", tls, tx, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xclock_adjtime(tls, CLOCK_REALTIME, tx) +} + +func Xbrk(tls *TLS, end uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v end=%v, (%v:)", tls, end, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(ENOMEM)))) +} + +func Xcapset(tls *TLS, a uintptr, b uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v a=%v b=%v, (%v:)", tls, a, b, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_capset), int64(a), int64(b))))) +} + +func Xcapget(tls *TLS, a uintptr, b uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v a=%v b=%v, (%v:)", tls, a, b, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_capget), int64(a), int64(b))))) +} + +func Xchroot(tls *TLS, path uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v, (%v:)", tls, path, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_chroot), int64(path))))) +} + +type Tktimex64 = struct { + Fmodes uint32 + F__ccgo4 uint32 + Foffset int64 + Ffreq int64 + Fmaxerror int64 + Festerror int64 + Fstatus int32 + F__ccgo44 uint32 + Fconstant int64 + Fprecision int64 + Ftolerance int64 + Ftime_sec int64 + Ftime_usec int64 + Ftick int64 + Fppsfreq int64 + Fjitter int64 + Fshift int32 + F__ccgo116 uint32 + Fstabil int64 + Fjitcnt int64 + Fcalcnt int64 + Ferrcnt int64 + Fstbcnt int64 + Ftai int32 + F__padding [11]int32 +} + +type Tktimex = struct { + Fmodes uint32 + Foffset int64 + Ffreq int64 + Fmaxerror int64 + Festerror int64 + Fstatus int32 + Fconstant int64 + Fprecision int64 + Ftolerance int64 + Ftime_sec int64 + Ftime_usec int64 + Ftick int64 + Fppsfreq int64 + Fjitter int64 + Fshift int32 + Fstabil int64 + Fjitcnt int64 + Fcalcnt int64 + Ferrcnt int64 + Fstbcnt int64 + Ftai int32 + F__padding [11]int32 +} + +func Xclock_adjtime(tls *TLS, clock_id Tclockid_t, utx uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v clock_id=%v utx=%v, (%v:)", tls, clock_id, utx, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(208) + defer tls.Free(208) + var r int32 + var _ /* ktx at bp+0 */ Tktimex + _ = r + r = -int32(ENOSYS) + if uint64(8) > uint64(8) { + **(**Tktimex)(__ccgo_up(bp)) = Tktimex{ + Fmodes: (*Ttimex)(unsafe.Pointer(utx)).Fmodes, + Foffset: (*Ttimex)(unsafe.Pointer(utx)).Foffset, + Ffreq: (*Ttimex)(unsafe.Pointer(utx)).Ffreq, + Fmaxerror: (*Ttimex)(unsafe.Pointer(utx)).Fmaxerror, + Festerror: (*Ttimex)(unsafe.Pointer(utx)).Festerror, + Fstatus: (*Ttimex)(unsafe.Pointer(utx)).Fstatus, + Fconstant: (*Ttimex)(unsafe.Pointer(utx)).Fconstant, + Fprecision: (*Ttimex)(unsafe.Pointer(utx)).Fprecision, + Ftolerance: (*Ttimex)(unsafe.Pointer(utx)).Ftolerance, + Ftime_sec: (*Ttimex)(unsafe.Pointer(utx)).Ftime.Ftv_sec, + Ftime_usec: (*Ttimex)(unsafe.Pointer(utx)).Ftime.Ftv_usec, + Ftick: (*Ttimex)(unsafe.Pointer(utx)).Ftick, + Fppsfreq: (*Ttimex)(unsafe.Pointer(utx)).Fppsfreq, + Fjitter: (*Ttimex)(unsafe.Pointer(utx)).Fjitter, + Fshift: (*Ttimex)(unsafe.Pointer(utx)).Fshift, + Fstabil: (*Ttimex)(unsafe.Pointer(utx)).Fstabil, + Fjitcnt: (*Ttimex)(unsafe.Pointer(utx)).Fjitcnt, + Fcalcnt: (*Ttimex)(unsafe.Pointer(utx)).Fcalcnt, + Ferrcnt: (*Ttimex)(unsafe.Pointer(utx)).Ferrcnt, + Fstbcnt: (*Ttimex)(unsafe.Pointer(utx)).Fstbcnt, + Ftai: (*Ttimex)(unsafe.Pointer(utx)).Ftai, + } + if clock_id == CLOCK_REALTIME { + r = int32(X__syscall1(tls, int64(SYS_adjtimex), int64(bp))) + } else { + r = int32(X__syscall2(tls, int64(SYS_clock_adjtime), int64(clock_id), int64(bp))) + } + if r >= 0 { + (*Ttimex)(unsafe.Pointer(utx)).Fmodes = (**(**Tktimex)(__ccgo_up(bp))).Fmodes + (*Ttimex)(unsafe.Pointer(utx)).Foffset = (**(**Tktimex)(__ccgo_up(bp))).Foffset + (*Ttimex)(unsafe.Pointer(utx)).Ffreq = (**(**Tktimex)(__ccgo_up(bp))).Ffreq + (*Ttimex)(unsafe.Pointer(utx)).Fmaxerror = (**(**Tktimex)(__ccgo_up(bp))).Fmaxerror + (*Ttimex)(unsafe.Pointer(utx)).Festerror = (**(**Tktimex)(__ccgo_up(bp))).Festerror + (*Ttimex)(unsafe.Pointer(utx)).Fstatus = (**(**Tktimex)(__ccgo_up(bp))).Fstatus + (*Ttimex)(unsafe.Pointer(utx)).Fconstant = (**(**Tktimex)(__ccgo_up(bp))).Fconstant + (*Ttimex)(unsafe.Pointer(utx)).Fprecision = (**(**Tktimex)(__ccgo_up(bp))).Fprecision + (*Ttimex)(unsafe.Pointer(utx)).Ftolerance = (**(**Tktimex)(__ccgo_up(bp))).Ftolerance + (*Ttimex)(unsafe.Pointer(utx)).Ftime.Ftv_sec = (**(**Tktimex)(__ccgo_up(bp))).Ftime_sec + (*Ttimex)(unsafe.Pointer(utx)).Ftime.Ftv_usec = (**(**Tktimex)(__ccgo_up(bp))).Ftime_usec + (*Ttimex)(unsafe.Pointer(utx)).Ftick = (**(**Tktimex)(__ccgo_up(bp))).Ftick + (*Ttimex)(unsafe.Pointer(utx)).Fppsfreq = (**(**Tktimex)(__ccgo_up(bp))).Fppsfreq + (*Ttimex)(unsafe.Pointer(utx)).Fjitter = (**(**Tktimex)(__ccgo_up(bp))).Fjitter + (*Ttimex)(unsafe.Pointer(utx)).Fshift = (**(**Tktimex)(__ccgo_up(bp))).Fshift + (*Ttimex)(unsafe.Pointer(utx)).Fstabil = (**(**Tktimex)(__ccgo_up(bp))).Fstabil + (*Ttimex)(unsafe.Pointer(utx)).Fjitcnt = (**(**Tktimex)(__ccgo_up(bp))).Fjitcnt + (*Ttimex)(unsafe.Pointer(utx)).Fcalcnt = (**(**Tktimex)(__ccgo_up(bp))).Fcalcnt + (*Ttimex)(unsafe.Pointer(utx)).Ferrcnt = (**(**Tktimex)(__ccgo_up(bp))).Ferrcnt + (*Ttimex)(unsafe.Pointer(utx)).Fstbcnt = (**(**Tktimex)(__ccgo_up(bp))).Fstbcnt + (*Ttimex)(unsafe.Pointer(utx)).Ftai = (**(**Tktimex)(__ccgo_up(bp))).Ftai + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) + } + if clock_id == CLOCK_REALTIME { + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_adjtimex), int64(utx))))) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_clock_adjtime), int64(clock_id), int64(utx))))) +} + +func Xcopy_file_range(tls *TLS, fd_in int32, off_in uintptr, fd_out int32, off_out uintptr, len1 Tsize_t, flags uint32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd_in=%v off_in=%v fd_out=%v off_out=%v len1=%v flags=%v, (%v:)", tls, fd_in, off_in, fd_out, off_out, len1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall6(tls, int64(SYS_copy_file_range), int64(fd_in), int64(off_in), int64(fd_out), int64(off_out), Int64FromUint64(len1), Int64FromUint32(flags)))) +} + +const EPOLLERR = 8 +const EPOLLET = 2147483648 +const EPOLLEXCLUSIVE = 268435456 +const EPOLLHUP = 16 +const EPOLLIN = 1 +const EPOLLMSG = 1024 +const EPOLLNVAL = 32 +const EPOLLONESHOT = 1073741824 +const EPOLLOUT = 4 +const EPOLLPRI = 2 +const EPOLLRDBAND = 128 +const EPOLLRDHUP = 8192 +const EPOLLRDNORM = 64 +const EPOLLWAKEUP = 536870912 +const EPOLLWRBAND = 512 +const EPOLLWRNORM = 256 +const EPOLL_CLOEXEC = 524288 +const EPOLL_CTL_ADD = 1 +const EPOLL_CTL_DEL = 2 +const EPOLL_CTL_MOD = 3 +const EPOLL_NONBLOCK = 2048 + +type Tfsblkcnt_t = uint64 + +type Tfsfilcnt_t = uint64 + +type _EPOLL_EVENTS = int32 + +const ___EPOLL_DUMMY = 0 + +type Tepoll_data_t = struct { + Ffd [0]int32 + Fu32 [0]Tuint32_t + Fu64 [0]Tuint64_t + Fptr uintptr +} + +type Tepoll_data = Tepoll_data_t + +type Tepoll_event = struct { + Fevents Tuint32_t + Fdata Tepoll_data_t +} + +func Xepoll_create(tls *TLS, size int32) (r int32) { + if __ccgo_strace { + trc("tls=%v size=%v, (%v:)", tls, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + if size <= 0 { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL)))) + } + return Xepoll_create1(tls, 0) +} + +func Xepoll_create1(tls *TLS, flags int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v flags=%v, (%v:)", tls, flags, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + r = int32(X__syscall1(tls, int64(SYS_epoll_create1), int64(flags))) + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func Xepoll_ctl(tls *TLS, fd int32, op int32, fd2 int32, ev uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v op=%v fd2=%v ev=%v, (%v:)", tls, fd, op, fd2, ev, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_epoll_ctl), int64(fd), int64(op), int64(fd2), int64(ev))))) +} + +func Xepoll_pwait(tls *TLS, fd int32, ev uintptr, cnt int32, to int32, sigs uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v ev=%v cnt=%v to=%v sigs=%v, (%v:)", tls, fd, ev, cnt, to, sigs, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + r = int32(___syscall_cp(tls, int64(SYS_epoll_pwait), int64(fd), int64(ev), int64(cnt), int64(to), int64(sigs), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8)))) + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func Xepoll_wait(tls *TLS, fd int32, ev uintptr, cnt int32, to int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v ev=%v cnt=%v to=%v, (%v:)", tls, fd, ev, cnt, to, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xepoll_pwait(tls, fd, ev, cnt, to, uintptr(0)) +} + +const EFD_CLOEXEC = 524288 +const EFD_NONBLOCK = 2048 +const EFD_SEMAPHORE = 1 + +type Teventfd_t = uint64 + +func Xeventfd(tls *TLS, count uint32, flags int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v count=%v flags=%v, (%v:)", tls, count, flags, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + r = int32(X__syscall2(tls, int64(SYS_eventfd2), Int64FromUint32(count), int64(flags))) + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func Xeventfd_read(tls *TLS, fd int32, value uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v value=%v, (%v:)", tls, fd, value, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + _ = v1 + if uint64(8) == Uint64FromInt64(Xread(tls, fd, value, uint64(8))) { + v1 = 0 + } else { + v1 = -int32(1) + } + return v1 +} + +func Xeventfd_write(tls *TLS, fd int32, _value Teventfd_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v _value=%v, (%v:)", tls, fd, _value, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + *(*Teventfd_t)(unsafe.Pointer(bp)) = _value + var v1 int32 + _ = v1 + if uint64(8) == Uint64FromInt64(Xwrite(tls, fd, bp, uint64(8))) { + v1 = 0 + } else { + v1 = -int32(1) + } + return v1 +} + +func Xfallocate(tls *TLS, fd int32, mode int32, base Toff_t, len1 Toff_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v mode=%v base=%v len1=%v, (%v:)", tls, fd, mode, base, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_fallocate), int64(fd), int64(mode), base, len1)))) +} + +const FANOTIFY_METADATA_VERSION = 3 +const FAN_ACCESS = 1 +const FAN_ACCESS_PERM = 131072 +const FAN_ALLOW = 1 +const FAN_ALL_CLASS_BITS = 12 +const FAN_ALL_EVENTS = 59 +const FAN_ALL_INIT_FLAGS = 63 +const FAN_ALL_MARK_FLAGS = 255 +const FAN_ALL_OUTGOING_EVENTS = 213051 +const FAN_ALL_PERM_EVENTS = 196608 +const FAN_ATTRIB = 4 +const FAN_AUDIT = 16 +const FAN_CLASS_CONTENT = 4 +const FAN_CLASS_NOTIF = 0 +const FAN_CLASS_PRE_CONTENT = 8 +const FAN_CLOEXEC = 1 +const FAN_CLOSE = 24 +const FAN_CLOSE_NOWRITE = 16 +const FAN_CLOSE_WRITE = 8 +const FAN_CREATE = 256 +const FAN_DELETE = 512 +const FAN_DELETE_SELF = 1024 +const FAN_DENY = 2 +const FAN_DIR_MODIFY = 524288 +const FAN_ENABLE_AUDIT = 64 +const FAN_EVENT_INFO_TYPE_DFID = 3 +const FAN_EVENT_INFO_TYPE_DFID_NAME = 2 +const FAN_EVENT_INFO_TYPE_FID = 1 +const FAN_EVENT_METADATA_LEN = 0 +const FAN_EVENT_ON_CHILD = 134217728 +const FAN_MARK_ADD = 1 +const FAN_MARK_DONT_FOLLOW = 4 +const FAN_MARK_FILESYSTEM = 256 +const FAN_MARK_FLUSH = 128 +const FAN_MARK_IGNORED_MASK = 32 +const FAN_MARK_IGNORED_SURV_MODIFY = 64 +const FAN_MARK_INODE = 0 +const FAN_MARK_MOUNT = 16 +const FAN_MARK_ONLYDIR = 8 +const FAN_MARK_REMOVE = 2 +const FAN_MARK_TYPE_MASK = 272 +const FAN_MODIFY = 2 +const FAN_MOVE = 192 +const FAN_MOVED_FROM = 64 +const FAN_MOVED_TO = 128 +const FAN_MOVE_SELF = 2048 +const FAN_NOFD = -1 +const FAN_NONBLOCK = 2 +const FAN_ONDIR = 1073741824 +const FAN_OPEN = 32 +const FAN_OPEN_EXEC = 4096 +const FAN_OPEN_EXEC_PERM = 262144 +const FAN_OPEN_PERM = 65536 +const FAN_Q_OVERFLOW = 16384 +const FAN_REPORT_DFID_NAME = 3072 +const FAN_REPORT_DIR_FID = 1024 +const FAN_REPORT_FID = 512 +const FAN_REPORT_NAME = 2048 +const FAN_REPORT_TID = 256 +const FAN_UNLIMITED_MARKS = 32 +const FAN_UNLIMITED_QUEUE = 16 +const ST_APPEND = 256 +const ST_IMMUTABLE = 512 +const ST_MANDLOCK = 64 +const ST_NOATIME = 1024 +const ST_NODEV = 4 +const ST_NODIRATIME = 2048 +const ST_NOEXEC = 8 +const ST_NOSUID = 2 +const ST_RDONLY = 1 +const ST_RELATIME = 4096 +const ST_SYNCHRONOUS = 16 +const ST_WRITE = 128 + +type Tstatvfs = struct { + Ff_bsize uint64 + Ff_frsize uint64 + Ff_blocks Tfsblkcnt_t + Ff_bfree Tfsblkcnt_t + Ff_bavail Tfsblkcnt_t + Ff_files Tfsfilcnt_t + Ff_ffree Tfsfilcnt_t + Ff_favail Tfsfilcnt_t + Ff_fsid uint64 + Ff_flag uint64 + Ff_namemax uint64 + Ff_type uint32 + F__reserved [5]int32 +} + +type Tfsid_t = struct { + F__val [2]int32 +} + +type t__fsid_t = Tfsid_t + +type Tstatfs = struct { + Ff_type uint64 + Ff_bsize uint64 + Ff_blocks Tfsblkcnt_t + Ff_bfree Tfsblkcnt_t + Ff_bavail Tfsblkcnt_t + Ff_files Tfsfilcnt_t + Ff_ffree Tfsfilcnt_t + Ff_fsid Tfsid_t + Ff_namelen uint64 + Ff_frsize uint64 + Ff_flags uint64 + Ff_spare [4]uint64 +} + +type Tfanotify_event_metadata = struct { + Fevent_len uint32 + Fvers uint8 + Freserved uint8 + Fmetadata_len uint16 + Fmask uint64 + Ffd int32 + Fpid int32 +} + +type Tfanotify_event_info_header = struct { + Finfo_type uint8 + Fpad uint8 + Flen1 uint16 +} + +type Tfanotify_event_info_fid = struct { + Fhdr Tfanotify_event_info_header + Ffsid Tfsid_t +} + +type Tfanotify_response = struct { + Ffd int32 + Fresponse uint32 +} + +func Xfanotify_init(tls *TLS, flags uint32, event_f_flags uint32) (r int32) { + if __ccgo_strace { + trc("tls=%v flags=%v event_f_flags=%v, (%v:)", tls, flags, event_f_flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_fanotify_init), Int64FromUint32(flags), Int64FromUint32(event_f_flags))))) +} + +func Xfanotify_mark(tls *TLS, fanotify_fd int32, flags uint32, mask uint64, dfd int32, pathname uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fanotify_fd=%v flags=%v mask=%v dfd=%v pathname=%v, (%v:)", tls, fanotify_fd, flags, mask, dfd, pathname, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_fanotify_mark), int64(fanotify_fd), Int64FromUint32(flags), Int64FromUint64(mask), int64(dfd), int64(pathname))))) +} + +const LOCK_EX = 2 +const LOCK_NB = 4 +const LOCK_SH = 1 +const LOCK_UN = 8 + +func Xflock(tls *TLS, fd int32, op int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v op=%v, (%v:)", tls, fd, op, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_flock), int64(fd), int64(op))))) +} + +func Xgetdents(tls *TLS, fd int32, buf uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v len1=%v, (%v:)", tls, fd, buf, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + if len1 > uint64(INT_MAX) { + len1 = uint64(INT_MAX) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_getdents64), int64(fd), int64(buf), Int64FromUint64(len1))))) +} + +const GRND_INSECURE = 4 +const GRND_NONBLOCK = 1 +const GRND_RANDOM = 2 + +func Xgetrandom(tls *TLS, buf uintptr, buflen Tsize_t, flags uint32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v buf=%v buflen=%v flags=%v, (%v:)", tls, buf, buflen, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_getrandom), int64(buf), Int64FromUint64(buflen), Int64FromUint32(flags), 0, 0, 0))) +} + +const IN_ACCESS = 1 +const IN_ALL_EVENTS = 4095 +const IN_ATTRIB = 4 +const IN_CLOEXEC = 524288 +const IN_CLOSE = 24 +const IN_CLOSE_NOWRITE = 16 +const IN_CLOSE_WRITE = 8 +const IN_CREATE = 256 +const IN_DELETE = 512 +const IN_DELETE_SELF = 1024 +const IN_DONT_FOLLOW = 33554432 +const IN_EXCL_UNLINK = 67108864 +const IN_IGNORED = 32768 +const IN_ISDIR = 1073741824 +const IN_MASK_ADD = 536870912 +const IN_MASK_CREATE = 268435456 +const IN_MODIFY = 2 +const IN_MOVE = 192 +const IN_MOVED_FROM = 64 +const IN_MOVED_TO = 128 +const IN_MOVE_SELF = 2048 +const IN_NONBLOCK = 2048 +const IN_ONESHOT = 2147483648 +const IN_ONLYDIR = 16777216 +const IN_OPEN = 32 +const IN_Q_OVERFLOW = 16384 +const IN_UNMOUNT = 8192 + +type Tinotify_event = struct { + Fwd int32 + Fmask Tuint32_t + Fcookie Tuint32_t + Flen1 Tuint32_t +} + +func Xinotify_init(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xinotify_init1(tls, 0) +} + +func Xinotify_init1(tls *TLS, flags int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v flags=%v, (%v:)", tls, flags, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + r = int32(X__syscall1(tls, int64(SYS_inotify_init1), int64(flags))) + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func Xinotify_add_watch(tls *TLS, fd int32, pathname uintptr, mask Tuint32_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v pathname=%v mask=%v, (%v:)", tls, fd, pathname, mask, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_inotify_add_watch), int64(fd), int64(pathname), Int64FromUint32(mask))))) +} + +func Xinotify_rm_watch(tls *TLS, fd int32, wd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v wd=%v, (%v:)", tls, fd, wd, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_inotify_rm_watch), int64(fd), int64(wd))))) +} + +func Xklogctl(tls *TLS, type1 int32, buf uintptr, len1 int32) (r int32) { + if __ccgo_strace { + trc("tls=%v type1=%v buf=%v len1=%v, (%v:)", tls, type1, buf, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_syslog), int64(type1), int64(buf), int64(len1))))) +} + +const MADV_COLD = 20 +const MADV_DODUMP = 17 +const MADV_DOFORK = 11 +const MADV_DONTDUMP = 16 +const MADV_DONTFORK = 10 +const MADV_DONTNEED = 4 +const MADV_FREE = 8 +const MADV_HUGEPAGE = 14 +const MADV_HWPOISON = 100 +const MADV_KEEPONFORK = 19 +const MADV_MERGEABLE = 12 +const MADV_NOHUGEPAGE = 15 +const MADV_NORMAL = 0 +const MADV_PAGEOUT = 21 +const MADV_RANDOM = 1 +const MADV_REMOVE = 9 +const MADV_SEQUENTIAL = 2 +const MADV_SOFT_OFFLINE = 101 +const MADV_UNMERGEABLE = 13 +const MADV_WILLNEED = 3 +const MADV_WIPEONFORK = 18 +const MFD_ALLOW_SEALING = 2 +const MFD_CLOEXEC = 1 +const MFD_HUGETLB = 4 +const MLOCK_ONFAULT = 1 +const MREMAP_DONTUNMAP = 4 +const MREMAP_FIXED = 2 +const MREMAP_MAYMOVE = 1 +const _GNU_SOURCE = 1 + +func Xmemfd_create(tls *TLS, name uintptr, flags uint32) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v flags=%v, (%v:)", tls, name, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_memfd_create), int64(name), Int64FromUint32(flags))))) +} + +func Xmlock2(tls *TLS, addr uintptr, len1 Tsize_t, flags uint32) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v len1=%v flags=%v, (%v:)", tls, addr, len1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + if flags == uint32(0) { + return Xmlock(tls, addr, len1) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_mlock2), int64(addr), Int64FromUint64(len1), Int64FromUint32(flags))))) +} + +func Xinit_module(tls *TLS, a uintptr, b uint64, c uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v a=%v b=%v c=%v, (%v:)", tls, a, b, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_init_module), int64(a), Int64FromUint64(b), int64(c))))) +} + +func Xdelete_module(tls *TLS, a uintptr, b uint32) (r int32) { + if __ccgo_strace { + trc("tls=%v a=%v b=%v, (%v:)", tls, a, b, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_delete_module), int64(a), Int64FromUint32(b))))) +} + +const BLKBSZGET = 2147488368 +const BLKBSZSET = 1073746545 +const BLKFLSBUF = 4705 +const BLKFRAGET = 4709 +const BLKFRASET = 4708 +const BLKGETSIZE = 4704 +const BLKGETSIZE64 = 2147488370 +const BLKRAGET = 4707 +const BLKRASET = 4706 +const BLKROGET = 4702 +const BLKROSET = 4701 +const BLKRRPART = 4703 +const BLKSECTGET = 4711 +const BLKSECTSET = 4710 +const BLKSSZGET = 4712 +const FIOASYNC = 21586 +const FIOCLEX = 21585 +const FIOGETOWN = 35075 +const FIONBIO = 21537 +const FIONCLEX = 21584 +const FIONREAD = 21531 +const FIOQSIZE = 21600 +const FIOSETOWN = 35073 +const MNT_DETACH = 2 +const MNT_EXPIRE = 4 +const MNT_FORCE = 1 +const MS_ACTIVE = 1073741824 +const MS_BIND = 4096 +const MS_BORN = 536870912 +const MS_DIRSYNC = 128 +const MS_I_VERSION = 8388608 +const MS_KERNMOUNT = 4194304 +const MS_LAZYTIME = 33554432 +const MS_MANDLOCK = 64 +const MS_MGC_MSK = 4294901760 +const MS_MGC_VAL = 3236757504 +const MS_MOVE = 8192 +const MS_NOATIME = 1024 +const MS_NODEV = 4 +const MS_NODIRATIME = 2048 +const MS_NOEXEC = 8 +const MS_NOREMOTELOCK = 134217728 +const MS_NOSEC = 268435456 +const MS_NOSUID = 2 +const MS_NOSYMFOLLOW = 256 +const MS_NOUSER = 2147483648 +const MS_POSIXACL = 65536 +const MS_PRIVATE = 262144 +const MS_RDONLY = 1 +const MS_REC = 16384 +const MS_RELATIME = 2097152 +const MS_REMOUNT = 32 +const MS_RMT_MASK = 41943121 +const MS_SHARED = 1048576 +const MS_SILENT = 32768 +const MS_SLAVE = 524288 +const MS_STRICTATIME = 16777216 +const MS_SYNCHRONOUS = 16 +const MS_UNBINDABLE = 131072 +const N_6PACK = 7 +const N_AX25 = 5 +const N_CAIF = 20 +const N_GIGASET_M101 = 16 +const N_GSM0710 = 21 +const N_HCI = 15 +const N_HDLC = 13 +const N_IRDA = 11 +const N_MASC = 8 +const N_MOUSE = 2 +const N_NCI = 25 +const N_NULL = 27 +const N_PPP = 3 +const N_PPS = 18 +const N_PROFIBUS_FDL = 10 +const N_R3964 = 9 +const N_SLCAN = 17 +const N_SLIP = 1 +const N_SMSBLOCK = 12 +const N_SPEAKUP = 26 +const N_STRIP = 4 +const N_SYNC_PPP = 14 +const N_TI_WL = 22 +const N_TRACEROUTER = 24 +const N_TRACESINK = 23 +const N_TTY = 0 +const N_V253 = 19 +const N_X25 = 6 +const SIOCADDDLCI = 35200 +const SIOCADDMULTI = 35121 +const SIOCADDRT = 35083 +const SIOCATMARK = 35077 +const SIOCDARP = 35155 +const SIOCDELDLCI = 35201 +const SIOCDELMULTI = 35122 +const SIOCDELRT = 35084 +const SIOCDEVPRIVATE = 35312 +const SIOCDIFADDR = 35126 +const SIOCDRARP = 35168 +const SIOCGARP = 35156 +const SIOCGIFADDR = 35093 +const SIOCGIFBR = 35136 +const SIOCGIFBRDADDR = 35097 +const SIOCGIFCONF = 35090 +const SIOCGIFCOUNT = 35128 +const SIOCGIFDSTADDR = 35095 +const SIOCGIFENCAP = 35109 +const SIOCGIFFLAGS = 35091 +const SIOCGIFHWADDR = 35111 +const SIOCGIFINDEX = 35123 +const SIOCGIFMAP = 35184 +const SIOCGIFMEM = 35103 +const SIOCGIFMETRIC = 35101 +const SIOCGIFMTU = 35105 +const SIOCGIFNAME = 35088 +const SIOCGIFNETMASK = 35099 +const SIOCGIFPFLAGS = 35125 +const SIOCGIFSLAVE = 35113 +const SIOCGIFTXQLEN = 35138 +const SIOCGPGRP = 35076 +const SIOCGRARP = 35169 +const SIOCGSTAMP = 35078 +const SIOCGSTAMPNS = 35079 +const SIOCPROTOPRIVATE = 35296 +const SIOCRTMSG = 35085 +const SIOCSARP = 35157 +const SIOCSIFADDR = 35094 +const SIOCSIFBR = 35137 +const SIOCSIFBRDADDR = 35098 +const SIOCSIFDSTADDR = 35096 +const SIOCSIFENCAP = 35110 +const SIOCSIFFLAGS = 35092 +const SIOCSIFHWADDR = 35108 +const SIOCSIFHWBROADCAST = 35127 +const SIOCSIFLINK = 35089 +const SIOCSIFMAP = 35185 +const SIOCSIFMEM = 35104 +const SIOCSIFMETRIC = 35102 +const SIOCSIFMTU = 35106 +const SIOCSIFNAME = 35107 +const SIOCSIFNETMASK = 35100 +const SIOCSIFPFLAGS = 35124 +const SIOCSIFSLAVE = 35120 +const SIOCSIFTXQLEN = 35139 +const SIOCSPGRP = 35074 +const SIOCSRARP = 35170 +const SIOGIFINDEX = 35123 +const TCFLSH = 21515 +const TCGETA = 21509 +const TCGETS = 21505 +const TCGETX = 21554 +const TCSBRK = 21513 +const TCSBRKP = 21541 +const TCSETA = 21510 +const TCSETAF = 21512 +const TCSETAW = 21511 +const TCSETS = 21506 +const TCSETSF = 21508 +const TCSETSW = 21507 +const TCSETX = 21555 +const TCSETXF = 21556 +const TCSETXW = 21557 +const TCXONC = 21514 +const TIOCCBRK = 21544 +const TIOCCONS = 21533 +const TIOCEXCL = 21516 +const TIOCGDEV = 2147767346 +const TIOCGETD = 21540 +const TIOCGEXCL = 2147767360 +const TIOCGICOUNT = 21597 +const TIOCGISO7816 = 2150126658 +const TIOCGLCKTRMIOS = 21590 +const TIOCGPGRP = 21519 +const TIOCGPKT = 2147767352 +const TIOCGPTLCK = 2147767353 +const TIOCGPTN = 2147767344 +const TIOCGPTPEER = 21569 +const TIOCGRS485 = 21550 +const TIOCGSERIAL = 21534 +const TIOCGSID = 21545 +const TIOCGSOFTCAR = 21529 +const TIOCGWINSZ = 21523 +const TIOCINQ = 21531 +const TIOCLINUX = 21532 +const TIOCMBIC = 21527 +const TIOCMBIS = 21526 +const TIOCMGET = 21525 +const TIOCMIWAIT = 21596 +const TIOCMSET = 21528 +const TIOCM_CAR = 64 +const TIOCM_CD = 64 +const TIOCM_CTS = 32 +const TIOCM_DSR = 256 +const TIOCM_DTR = 2 +const TIOCM_LE = 1 +const TIOCM_LOOP = 32768 +const TIOCM_OUT1 = 8192 +const TIOCM_OUT2 = 16384 +const TIOCM_RI = 128 +const TIOCM_RNG = 128 +const TIOCM_RTS = 4 +const TIOCM_SR = 16 +const TIOCM_ST = 8 +const TIOCNOTTY = 21538 +const TIOCNXCL = 21517 +const TIOCOUTQ = 21521 +const TIOCPKT = 21536 +const TIOCPKT_DATA = 0 +const TIOCPKT_DOSTOP = 32 +const TIOCPKT_FLUSHREAD = 1 +const TIOCPKT_FLUSHWRITE = 2 +const TIOCPKT_IOCTL = 64 +const TIOCPKT_NOSTOP = 16 +const TIOCPKT_START = 8 +const TIOCPKT_STOP = 4 +const TIOCSBRK = 21543 +const TIOCSCTTY = 21518 +const TIOCSERCONFIG = 21587 +const TIOCSERGETLSR = 21593 +const TIOCSERGETMULTI = 21594 +const TIOCSERGSTRUCT = 21592 +const TIOCSERGWILD = 21588 +const TIOCSERSETMULTI = 21595 +const TIOCSERSWILD = 21589 +const TIOCSER_TEMT = 1 +const TIOCSETD = 21539 +const TIOCSIG = 1074025526 +const TIOCSISO7816 = 3223868483 +const TIOCSLCKTRMIOS = 21591 +const TIOCSPGRP = 21520 +const TIOCSPTLCK = 1074025521 +const TIOCSRS485 = 21551 +const TIOCSSERIAL = 21535 +const TIOCSSOFTCAR = 21530 +const TIOCSTI = 21522 +const TIOCSWINSZ = 21524 +const TIOCVHANGUP = 21559 +const UMOUNT_NOFOLLOW = 8 +const _IOC_NONE = 0 +const _IOC_READ = 2 +const _IOC_WRITE = 1 + +func Xmount(tls *TLS, special uintptr, dir uintptr, fstype uintptr, flags uint64, data uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v special=%v dir=%v fstype=%v flags=%v data=%v, (%v:)", tls, special, dir, fstype, flags, data, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_mount), int64(special), int64(dir), int64(fstype), Int64FromUint64(flags), int64(data))))) +} + +func Xumount(tls *TLS, special uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v special=%v, (%v:)", tls, special, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_umount2), int64(special), int64(Int32FromInt32(0)))))) +} + +func Xumount2(tls *TLS, special uintptr, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v special=%v flags=%v, (%v:)", tls, special, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_umount2), int64(special), int64(flags))))) +} + +func Xname_to_handle_at(tls *TLS, dirfd int32, pathname uintptr, handle uintptr, mount_id uintptr, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v dirfd=%v pathname=%v handle=%v mount_id=%v flags=%v, (%v:)", tls, dirfd, pathname, handle, mount_id, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_name_to_handle_at), int64(dirfd), int64(pathname), int64(handle), int64(mount_id), int64(flags))))) +} + +func Xopen_by_handle_at(tls *TLS, mount_fd int32, handle uintptr, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v mount_fd=%v handle=%v flags=%v, (%v:)", tls, mount_fd, handle, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_open_by_handle_at), int64(mount_fd), int64(handle), int64(flags))))) +} + +const ADDR_COMPAT_LAYOUT = 2097152 +const ADDR_LIMIT_32BIT = 8388608 +const ADDR_LIMIT_3GB = 134217728 +const ADDR_NO_RANDOMIZE = 262144 +const FDPIC_FUNCPTRS = 524288 +const MMAP_PAGE_ZERO = 1048576 +const PER_BSD = 6 +const PER_HPUX = 16 +const PER_IRIX32 = 67108873 +const PER_IRIX64 = 67108875 +const PER_IRIXN32 = 67108874 +const PER_ISCR4 = 67108869 +const PER_LINUX = 0 +const PER_LINUX32 = 8 +const PER_LINUX32_3GB = 134217736 +const PER_LINUX_32BIT = 8388608 +const PER_LINUX_FDPIC = 524288 +const PER_MASK = 255 +const PER_OSF4 = 15 +const PER_OSR5 = 100663299 +const PER_RISCOS = 12 +const PER_SCOSVR3 = 117440515 +const PER_SOLARIS = 67108877 +const PER_SUNOS = 67108870 +const PER_SVR3 = 83886082 +const PER_SVR4 = 68157441 +const PER_UW7 = 68157454 +const PER_WYSEV386 = 83886084 +const PER_XENIX = 83886087 +const READ_IMPLIES_EXEC = 4194304 +const SHORT_INODE = 16777216 +const STICKY_TIMEOUTS = 67108864 +const UNAME26 = 131072 +const WHOLE_SECONDS = 33554432 + +func Xpersonality(tls *TLS, persona uint64) (r int32) { + if __ccgo_strace { + trc("tls=%v persona=%v, (%v:)", tls, persona, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_personality), Int64FromUint64(persona))))) +} + +func Xpivot_root(tls *TLS, new1 uintptr, old uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v new1=%v old=%v, (%v:)", tls, new1, old, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_pivot_root), int64(new1), int64(old))))) +} + +const PR_CAPBSET_DROP = 24 +const PR_CAPBSET_READ = 23 +const PR_CAP_AMBIENT = 47 +const PR_CAP_AMBIENT_CLEAR_ALL = 4 +const PR_CAP_AMBIENT_IS_SET = 1 +const PR_CAP_AMBIENT_LOWER = 3 +const PR_CAP_AMBIENT_RAISE = 2 +const PR_ENDIAN_BIG = 0 +const PR_ENDIAN_LITTLE = 1 +const PR_ENDIAN_PPC_LITTLE = 2 +const PR_FPEMU_NOPRINT = 1 +const PR_FPEMU_SIGFPE = 2 +const PR_FP_EXC_ASYNC = 2 +const PR_FP_EXC_DISABLED = 0 +const PR_FP_EXC_DIV = 65536 +const PR_FP_EXC_INV = 1048576 +const PR_FP_EXC_NONRECOV = 1 +const PR_FP_EXC_OVF = 131072 +const PR_FP_EXC_PRECISE = 3 +const PR_FP_EXC_RES = 524288 +const PR_FP_EXC_SW_ENABLE = 128 +const PR_FP_EXC_UND = 262144 +const PR_FP_MODE_FR = 1 +const PR_FP_MODE_FRE = 2 +const PR_GET_CHILD_SUBREAPER = 37 +const PR_GET_DUMPABLE = 3 +const PR_GET_ENDIAN = 19 +const PR_GET_FPEMU = 9 +const PR_GET_FPEXC = 11 +const PR_GET_FP_MODE = 46 +const PR_GET_IO_FLUSHER = 58 +const PR_GET_KEEPCAPS = 7 +const PR_GET_NAME = 16 +const PR_GET_NO_NEW_PRIVS = 39 +const PR_GET_PDEATHSIG = 2 +const PR_GET_SECCOMP = 21 +const PR_GET_SECUREBITS = 27 +const PR_GET_SPECULATION_CTRL = 52 +const PR_GET_TAGGED_ADDR_CTRL = 56 +const PR_GET_THP_DISABLE = 42 +const PR_GET_TID_ADDRESS = 40 +const PR_GET_TIMERSLACK = 30 +const PR_GET_TIMING = 13 +const PR_GET_TSC = 25 +const PR_GET_UNALIGN = 5 +const PR_MCE_KILL = 33 +const PR_MCE_KILL_CLEAR = 0 +const PR_MCE_KILL_DEFAULT = 2 +const PR_MCE_KILL_EARLY = 1 +const PR_MCE_KILL_GET = 34 +const PR_MCE_KILL_LATE = 0 +const PR_MCE_KILL_SET = 1 +const PR_MPX_DISABLE_MANAGEMENT = 44 +const PR_MPX_ENABLE_MANAGEMENT = 43 +const PR_MTE_TAG_MASK = 524280 +const PR_MTE_TAG_SHIFT = 3 +const PR_MTE_TCF_ASYNC = 4 +const PR_MTE_TCF_MASK = 6 +const PR_MTE_TCF_NONE = 0 +const PR_MTE_TCF_SHIFT = 1 +const PR_MTE_TCF_SYNC = 2 +const PR_PAC_APDAKEY = 4 +const PR_PAC_APDBKEY = 8 +const PR_PAC_APGAKEY = 16 +const PR_PAC_APIAKEY = 1 +const PR_PAC_APIBKEY = 2 +const PR_PAC_GET_ENABLED_KEYS = 61 +const PR_PAC_RESET_KEYS = 54 +const PR_PAC_SET_ENABLED_KEYS = 60 +const PR_SET_CHILD_SUBREAPER = 36 +const PR_SET_DUMPABLE = 4 +const PR_SET_ENDIAN = 20 +const PR_SET_FPEMU = 10 +const PR_SET_FPEXC = 12 +const PR_SET_FP_MODE = 45 +const PR_SET_IO_FLUSHER = 57 +const PR_SET_KEEPCAPS = 8 +const PR_SET_MM = 35 +const PR_SET_MM_ARG_END = 9 +const PR_SET_MM_ARG_START = 8 +const PR_SET_MM_AUXV = 12 +const PR_SET_MM_BRK = 7 +const PR_SET_MM_END_CODE = 2 +const PR_SET_MM_END_DATA = 4 +const PR_SET_MM_ENV_END = 11 +const PR_SET_MM_ENV_START = 10 +const PR_SET_MM_EXE_FILE = 13 +const PR_SET_MM_MAP = 14 +const PR_SET_MM_MAP_SIZE = 15 +const PR_SET_MM_START_BRK = 6 +const PR_SET_MM_START_CODE = 1 +const PR_SET_MM_START_DATA = 3 +const PR_SET_MM_START_STACK = 5 +const PR_SET_NAME = 15 +const PR_SET_NO_NEW_PRIVS = 38 +const PR_SET_PDEATHSIG = 1 +const PR_SET_PTRACER = 1499557217 +const PR_SET_PTRACER_ANY = 18446744073709551615 +const PR_SET_SECCOMP = 22 +const PR_SET_SECUREBITS = 28 +const PR_SET_SPECULATION_CTRL = 53 +const PR_SET_SYSCALL_USER_DISPATCH = 59 +const PR_SET_TAGGED_ADDR_CTRL = 55 +const PR_SET_THP_DISABLE = 41 +const PR_SET_TIMERSLACK = 29 +const PR_SET_TIMING = 14 +const PR_SET_TSC = 26 +const PR_SET_UNALIGN = 6 +const PR_SPEC_DISABLE = 4 +const PR_SPEC_DISABLE_NOEXEC = 16 +const PR_SPEC_ENABLE = 2 +const PR_SPEC_FORCE_DISABLE = 8 +const PR_SPEC_INDIRECT_BRANCH = 1 +const PR_SPEC_NOT_AFFECTED = 0 +const PR_SPEC_PRCTL = 1 +const PR_SPEC_STORE_BYPASS = 0 +const PR_SVE_GET_VL = 51 +const PR_SVE_SET_VL = 50 +const PR_SVE_SET_VL_ONEXEC = 262144 +const PR_SVE_VL_INHERIT = 131072 +const PR_SVE_VL_LEN_MASK = 65535 +const PR_SYS_DISPATCH_OFF = 0 +const PR_SYS_DISPATCH_ON = 1 +const PR_TAGGED_ADDR_ENABLE = 1 +const PR_TASK_PERF_EVENTS_DISABLE = 31 +const PR_TASK_PERF_EVENTS_ENABLE = 32 +const PR_TIMING_STATISTICAL = 0 +const PR_TIMING_TIMESTAMP = 1 +const PR_TSC_ENABLE = 1 +const PR_TSC_SIGSEGV = 2 +const PR_UNALIGN_NOPRINT = 1 +const PR_UNALIGN_SIGBUS = 2 +const SYSCALL_DISPATCH_FILTER_ALLOW = 0 +const SYSCALL_DISPATCH_FILTER_BLOCK = 1 + +type Tprctl_mm_map = struct { + Fstart_code Tuint64_t + Fend_code Tuint64_t + Fstart_data Tuint64_t + Fend_data Tuint64_t + Fstart_brk Tuint64_t + Fbrk Tuint64_t + Fstart_stack Tuint64_t + Farg_start Tuint64_t + Farg_end Tuint64_t + Fenv_start Tuint64_t + Fenv_end Tuint64_t + Fauxv uintptr + Fauxv_size Tuint32_t + Fexe_fd Tuint32_t +} + +func Xprctl(tls *TLS, op int32, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v op=%v va=%v, (%v:)", tls, op, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var i int32 + var x [4]uint64 + _, _, _ = ap, i, x + ap = va + i = 0 + for { + if !(i < int32(4)) { + break + } + x[i] = VaUint64(&ap) + goto _1 + _1: + ; + i = i + 1 + } + _ = ap + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_prctl), int64(op), Int64FromUint64(x[0]), Int64FromUint64(x[int32(1)]), Int64FromUint64(x[int32(2)]), Int64FromUint64(x[int32(3)]))))) +} + +const RWF_APPEND = 16 +const RWF_DSYNC = 2 +const RWF_HIPRI = 1 +const RWF_NOWAIT = 8 +const RWF_SYNC = 4 +const UIO_MAXIOV = 1024 + +func Xpreadv2(tls *TLS, fd int32, iov uintptr, count int32, ofs Toff_t, flags int32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v iov=%v count=%v ofs=%v flags=%v, (%v:)", tls, fd, iov, count, ofs, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + if !(flags != 0) { + if ofs == int64(-int32(1)) { + return Xreadv(tls, fd, iov, count) + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_preadv), int64(fd), int64(iov), int64(count), ofs, ofs>>Int32FromInt32(32), 0))) + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_preadv2), int64(fd), int64(iov), int64(count), ofs, ofs>>Int32FromInt32(32), int64(flags)))) +} + +func Xprlimit(tls *TLS, pid Tpid_t, resource int32, new_limit uintptr, old_limit uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v pid=%v resource=%v new_limit=%v old_limit=%v, (%v:)", tls, pid, resource, new_limit, old_limit, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var r int32 + var _ /* tmp at bp+0 */ Trlimit + _ = r + if new_limit != 0 && Bool(^Uint64FromUint64(0) != ^Uint64FromUint64(0)) { + **(**Trlimit)(__ccgo_up(bp)) = **(**Trlimit)(__ccgo_up(new_limit)) + if (**(**Trlimit)(__ccgo_up(bp))).Frlim_cur >= ^Uint64FromUint64(0) { + (**(**Trlimit)(__ccgo_up(bp))).Frlim_cur = ^Uint64FromUint64(0) + } + if (**(**Trlimit)(__ccgo_up(bp))).Frlim_max >= ^Uint64FromUint64(0) { + (**(**Trlimit)(__ccgo_up(bp))).Frlim_max = ^Uint64FromUint64(0) + } + new_limit = bp + } + r = int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_prlimit64), int64(pid), int64(resource), int64(new_limit), int64(old_limit))))) + if !(r != 0) && old_limit != 0 && Bool(^Uint64FromUint64(0) != ^Uint64FromUint64(0)) { + if (*Trlimit)(unsafe.Pointer(old_limit)).Frlim_cur >= ^Uint64FromUint64(0) { + (*Trlimit)(unsafe.Pointer(old_limit)).Frlim_cur = ^Uint64FromUint64(0) + } + if (*Trlimit)(unsafe.Pointer(old_limit)).Frlim_max >= ^Uint64FromUint64(0) { + (*Trlimit)(unsafe.Pointer(old_limit)).Frlim_max = ^Uint64FromUint64(0) + } + } + return r +} + +func Xprocess_vm_writev(tls *TLS, pid Tpid_t, lvec uintptr, liovcnt uint64, rvec uintptr, riovcnt uint64, flags uint64) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v pid=%v lvec=%v liovcnt=%v rvec=%v riovcnt=%v flags=%v, (%v:)", tls, pid, lvec, liovcnt, rvec, riovcnt, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall6(tls, int64(SYS_process_vm_writev), int64(pid), int64(lvec), Int64FromUint64(liovcnt), int64(rvec), Int64FromUint64(riovcnt), Int64FromUint64(flags)))) +} + +func Xprocess_vm_readv(tls *TLS, pid Tpid_t, lvec uintptr, liovcnt uint64, rvec uintptr, riovcnt uint64, flags uint64) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v pid=%v lvec=%v liovcnt=%v rvec=%v riovcnt=%v flags=%v, (%v:)", tls, pid, lvec, liovcnt, rvec, riovcnt, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall6(tls, int64(SYS_process_vm_readv), int64(pid), int64(lvec), Int64FromUint64(liovcnt), int64(rvec), Int64FromUint64(riovcnt), Int64FromUint64(flags)))) +} + +const PTRACE_ATTACH = 16 +const PTRACE_CONT = 7 +const PTRACE_DETACH = 17 +const PTRACE_EVENT_CLONE = 3 +const PTRACE_EVENT_EXEC = 4 +const PTRACE_EVENT_EXIT = 6 +const PTRACE_EVENT_FORK = 1 +const PTRACE_EVENT_SECCOMP = 7 +const PTRACE_EVENT_STOP = 128 +const PTRACE_EVENT_VFORK = 2 +const PTRACE_EVENT_VFORK_DONE = 5 +const PTRACE_GETEVENTMSG = 16897 +const PTRACE_GETFPREGS = 14 +const PTRACE_GETFPXREGS = 18 +const PTRACE_GETREGS = 12 +const PTRACE_GETREGSET = 16900 +const PTRACE_GETSIGINFO = 16898 +const PTRACE_GETSIGMASK = 16906 +const PTRACE_GET_RSEQ_CONFIGURATION = 16911 +const PTRACE_GET_SYSCALL_INFO = 16910 +const PTRACE_INTERRUPT = 16903 +const PTRACE_KILL = 8 +const PTRACE_LISTEN = 16904 +const PTRACE_O_EXITKILL = 1048576 +const PTRACE_O_MASK = 3145983 +const PTRACE_O_SUSPEND_SECCOMP = 2097152 +const PTRACE_O_TRACECLONE = 8 +const PTRACE_O_TRACEEXEC = 16 +const PTRACE_O_TRACEEXIT = 64 +const PTRACE_O_TRACEFORK = 2 +const PTRACE_O_TRACESECCOMP = 128 +const PTRACE_O_TRACESYSGOOD = 1 +const PTRACE_O_TRACEVFORK = 4 +const PTRACE_O_TRACEVFORKDONE = 32 +const PTRACE_PEEKDATA = 2 +const PTRACE_PEEKSIGINFO = 16905 +const PTRACE_PEEKSIGINFO_SHARED = 1 +const PTRACE_PEEKTEXT = 1 +const PTRACE_PEEKUSER = 3 +const PTRACE_POKEDATA = 5 +const PTRACE_POKETEXT = 4 +const PTRACE_POKEUSER = 6 +const PTRACE_SECCOMP_GET_FILTER = 16908 +const PTRACE_SECCOMP_GET_METADATA = 16909 +const PTRACE_SEIZE = 16902 +const PTRACE_SETFPREGS = 15 +const PTRACE_SETFPXREGS = 19 +const PTRACE_SETOPTIONS = 16896 +const PTRACE_SETREGS = 13 +const PTRACE_SETREGSET = 16901 +const PTRACE_SETSIGINFO = 16899 +const PTRACE_SETSIGMASK = 16907 +const PTRACE_SINGLESTEP = 9 +const PTRACE_SYSCALL = 24 +const PTRACE_SYSCALL_INFO_ENTRY = 1 +const PTRACE_SYSCALL_INFO_EXIT = 2 +const PTRACE_SYSCALL_INFO_NONE = 0 +const PTRACE_SYSCALL_INFO_SECCOMP = 3 +const PTRACE_TRACEME = 0 +const PT_ATTACH = 16 +const PT_CONTINUE = 7 +const PT_DETACH = 17 +const PT_GETEVENTMSG = 16897 +const PT_GETFPREGS = 14 +const PT_GETFPXREGS = 18 +const PT_GETREGS = 12 +const PT_GETSIGINFO = 16898 +const PT_KILL = 8 +const PT_READ_D = 2 +const PT_READ_I = 1 +const PT_READ_U = 3 +const PT_SETFPREGS = 15 +const PT_SETFPXREGS = 19 +const PT_SETOPTIONS = 16896 +const PT_SETREGS = 13 +const PT_SETSIGINFO = 16899 +const PT_STEP = 9 +const PT_SYSCALL = 24 +const PT_TRACE_ME = 0 +const PT_WRITE_D = 5 +const PT_WRITE_I = 4 +const PT_WRITE_U = 6 + +type t__ptrace_peeksiginfo_args = struct { + Foff Tuint64_t + Fflags Tuint32_t + Fnr Tint32_t +} + +type t__ptrace_seccomp_metadata = struct { + Ffilter_off Tuint64_t + Fflags Tuint64_t +} + +type t__ptrace_syscall_info = struct { + Fop Tuint8_t + F__pad [3]Tuint8_t + Farch Tuint32_t + Finstruction_pointer Tuint64_t + Fstack_pointer Tuint64_t + F__ccgo5_24 struct { + Fexit [0]struct { + Frval Tint64_t + Fis_error Tuint8_t + } + Fseccomp [0]struct { + Fnr Tuint64_t + Fargs [6]Tuint64_t + Fret_data Tuint32_t + } + Fentry struct { + Fnr Tuint64_t + Fargs [6]Tuint64_t + } + F__ccgo_pad3 [8]byte + } +} + +type t__ptrace_rseq_configuration = struct { + Frseq_abi_pointer Tuint64_t + Frseq_abi_size Tuint32_t + Fsignature Tuint32_t + Fflags Tuint32_t + Fpad Tuint32_t +} + +func Xptrace(tls *TLS, req int32, va uintptr) (r int64) { + if __ccgo_strace { + trc("tls=%v req=%v va=%v, (%v:)", tls, req, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var addr, addr2, data uintptr + var ap Tva_list + var pid Tpid_t + var ret int64 + var _ /* result at bp+0 */ int64 + _, _, _, _, _, _ = addr, addr2, ap, data, pid, ret + addr2 = uintptr(0) + ap = va + pid = VaInt32(&ap) + addr = VaUintptr(&ap) + data = VaUintptr(&ap) + /* PTRACE_{READ,WRITE}{DATA,TEXT} (16...19) are specific to SPARC. */ + _ = ap + if Uint32FromInt32(req)-uint32(1) < uint32(3) { + data = bp + } + ret = X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_ptrace), int64(req), int64(pid), int64(addr), int64(data), int64(addr2)))) + if ret < 0 || Uint32FromInt32(req)-uint32(1) >= uint32(3) { + return ret + } + return **(**int64)(__ccgo_up(bp)) +} + +func Xpwritev2(tls *TLS, fd int32, iov uintptr, count int32, ofs Toff_t, flags int32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v iov=%v count=%v ofs=%v flags=%v, (%v:)", tls, fd, iov, count, ofs, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + if !(flags != 0) { + if ofs == int64(-int32(1)) { + return Xwritev(tls, fd, iov, count) + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_pwritev), int64(fd), int64(iov), int64(count), ofs, ofs>>Int32FromInt32(32), 0))) + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_pwritev2), int64(fd), int64(iov), int64(count), ofs, ofs>>Int32FromInt32(32), int64(flags)))) +} + +const GRPQUOTA = 1 +const IIF_ALL = 7 +const IIF_BGRACE = 1 +const IIF_FLAGS = 4 +const IIF_IGRACE = 2 +const MAXQUOTAS = 2 +const MAX_DQ_TIME = 604800 +const MAX_IQ_TIME = 604800 +const NR_DQHASH = 43 +const NR_DQUOTS = 256 +const QFMT_OCFS2 = 3 +const QFMT_VFS_OLD = 1 +const QFMT_VFS_V0 = 2 +const QFMT_VFS_V1 = 4 +const QIF_ALL = 63 +const QIF_BLIMITS = 1 +const QIF_BTIME = 16 +const QIF_ILIMITS = 4 +const QIF_INODES = 8 +const QIF_ITIME = 32 +const QIF_LIMITS = 5 +const QIF_SPACE = 2 +const QIF_TIMES = 48 +const QIF_USAGE = 10 +const QUOTAFILENAME = "quota" +const QUOTAGROUP = "staff" +const Q_GETFMT = 8388612 +const Q_GETINFO = 8388613 +const Q_GETQUOTA = 8388615 +const Q_QUOTAOFF = 8388611 +const Q_QUOTAON = 8388610 +const Q_SETINFO = 8388614 +const Q_SETQUOTA = 8388616 +const Q_SYNC = 8388609 +const SUBCMDMASK = 255 +const SUBCMDSHIFT = 8 +const USRQUOTA = 0 +const _LINUX_QUOTA_VERSION = 2 + +type Tdqblk = struct { + Fdqb_bhardlimit Tuint64_t + Fdqb_bsoftlimit Tuint64_t + Fdqb_curspace Tuint64_t + Fdqb_ihardlimit Tuint64_t + Fdqb_isoftlimit Tuint64_t + Fdqb_curinodes Tuint64_t + Fdqb_btime Tuint64_t + Fdqb_itime Tuint64_t + Fdqb_valid Tuint32_t +} + +type Tdqinfo = struct { + Fdqi_bgrace Tuint64_t + Fdqi_igrace Tuint64_t + Fdqi_flags Tuint32_t + Fdqi_valid Tuint32_t +} + +func Xquotactl(tls *TLS, cmd int32, special uintptr, id int32, addr uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v cmd=%v special=%v id=%v addr=%v, (%v:)", tls, cmd, special, id, addr, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_quotactl), int64(cmd), int64(special), int64(id), int64(addr))))) +} + +func Xreadahead(tls *TLS, fd int32, pos Toff_t, len1 Tsize_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v pos=%v len1=%v, (%v:)", tls, fd, pos, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_readahead), int64(fd), pos, Int64FromUint64(len1)))) +} + +const RB_AUTOBOOT = 19088743 +const RB_DISABLE_CAD = 0 +const RB_ENABLE_CAD = 2309737967 +const RB_HALT_SYSTEM = 3454992675 +const RB_KEXEC = 1163412803 +const RB_POWER_OFF = 1126301404 +const RB_SW_SUSPEND = 3489725666 + +func Xreboot(tls *TLS, type1 int32) (r int32) { + if __ccgo_strace { + trc("tls=%v type1=%v, (%v:)", tls, type1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_reboot), Int64FromUint32(Uint32FromUint32(0xfee1dead)), int64(Int32FromInt32(672274793)), int64(type1))))) +} + +func Xremap_file_pages(tls *TLS, addr uintptr, size Tsize_t, prot int32, pgoff Tsize_t, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v size=%v prot=%v pgoff=%v flags=%v, (%v:)", tls, addr, size, prot, pgoff, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_remap_file_pages), int64(addr), Int64FromUint64(size), int64(prot), Int64FromUint64(pgoff), int64(flags))))) +} + +func Xsbrk(tls *TLS, inc Tintptr_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v inc=%v, (%v:)", tls, inc, origin(2)) + defer func() { trc("-> %v", r) }() + } + if inc != 0 { + return uintptr(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(ENOMEM)))) + } + return uintptr(X__syscall1(tls, int64(SYS_brk), int64(Int32FromInt32(0)))) +} + +func Xsendfile(tls *TLS, out_fd int32, in_fd int32, ofs uintptr, count Tsize_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v out_fd=%v in_fd=%v ofs=%v count=%v, (%v:)", tls, out_fd, in_fd, ofs, count, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(__NR3264_sendfile), int64(out_fd), int64(in_fd), int64(ofs), Int64FromUint64(count)))) +} + +func Xsetfsgid(tls *TLS, gid Tgid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v gid=%v, (%v:)", tls, gid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_setfsgid), Int64FromUint32(gid))))) +} + +func Xsetfsuid(tls *TLS, uid Tuid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v uid=%v, (%v:)", tls, uid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_setfsuid), Int64FromUint32(uid))))) +} + +func Xsethostname(tls *TLS, name uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v len1=%v, (%v:)", tls, name, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_sethostname), int64(name), Int64FromUint64(len1))))) +} + +const CLONE_CHILD_CLEARTID = 2097152 +const CLONE_CHILD_SETTID = 16777216 +const CLONE_DETACHED = 4194304 +const CLONE_FILES = 1024 +const CLONE_FS = 512 +const CLONE_IO = 2147483648 +const CLONE_NEWCGROUP = 33554432 +const CLONE_NEWIPC = 134217728 +const CLONE_NEWNET = 1073741824 +const CLONE_NEWNS = 131072 +const CLONE_NEWPID = 536870912 +const CLONE_NEWTIME = 128 +const CLONE_NEWUSER = 268435456 +const CLONE_NEWUTS = 67108864 +const CLONE_PARENT = 32768 +const CLONE_PARENT_SETTID = 1048576 +const CLONE_PIDFD = 4096 +const CLONE_PTRACE = 8192 +const CLONE_SETTLS = 524288 +const CLONE_SIGHAND = 2048 +const CLONE_SYSVSEM = 262144 +const CLONE_THREAD = 65536 +const CLONE_UNTRACED = 8388608 +const CLONE_VFORK = 16384 +const CLONE_VM = 256 +const CPU_SETSIZE = 1024 +const CSIGNAL = 255 + +type Tcpu_set_t = struct { + F__bits [16]uint64 +} + +func Xsetns(tls *TLS, fd int32, nstype int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v nstype=%v, (%v:)", tls, fd, nstype, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_setns), int64(fd), int64(nstype))))) +} + +const __tm_gmtoff = 0 +const __tm_zone = 0 + +type Ttm1 = struct { + Ftm_sec int32 + Ftm_min int32 + Ftm_hour int32 + Ftm_mday int32 + Ftm_mon int32 + Ftm_year int32 + Ftm_wday int32 + Ftm_yday int32 + Ftm_isdst int32 + Ftm_gmtoff int64 + Ftm_zone uintptr +} + +func Xsettimeofday(tls *TLS, tv uintptr, tz uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v tv=%v tz=%v, (%v:)", tls, tv, tz, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + if !(tv != 0) { + return 0 + } + if Uint64FromInt64((*Ttimeval)(unsafe.Pointer(tv)).Ftv_usec) >= uint64(1000000) { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL)))) + } + *(*Ttimespec)(unsafe.Pointer(bp)) = Ttimespec{ + Ftv_sec: (*Ttimeval)(unsafe.Pointer(tv)).Ftv_sec, + Ftv_nsec: (*Ttimeval)(unsafe.Pointer(tv)).Ftv_usec * int64(1000), + } + return Xclock_settime(tls, CLOCK_REALTIME, bp) +} + +const SFD_CLOEXEC = 524288 +const SFD_NONBLOCK = 2048 + +type Tsignalfd_siginfo = struct { + Fssi_signo Tuint32_t + Fssi_errno Tint32_t + Fssi_code Tint32_t + Fssi_pid Tuint32_t + Fssi_uid Tuint32_t + Fssi_fd Tint32_t + Fssi_tid Tuint32_t + Fssi_band Tuint32_t + Fssi_overrun Tuint32_t + Fssi_trapno Tuint32_t + Fssi_status Tint32_t + Fssi_int Tint32_t + Fssi_ptr Tuint64_t + Fssi_utime Tuint64_t + Fssi_stime Tuint64_t + Fssi_addr Tuint64_t + Fssi_addr_lsb Tuint16_t + F__pad2 Tuint16_t + Fssi_syscall Tint32_t + Fssi_call_addr Tuint64_t + Fssi_arch Tuint32_t + F__pad [28]Tuint8_t +} + +func Xsignalfd(tls *TLS, fd int32, sigs uintptr, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v sigs=%v flags=%v, (%v:)", tls, fd, sigs, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret int32 + _ = ret + ret = int32(X__syscall4(tls, int64(SYS_signalfd4), int64(fd), int64(sigs), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8)), int64(flags))) + return int32(X__syscall_ret(tls, Uint64FromInt32(ret))) +} + +func Xsplice(tls *TLS, fd_in int32, off_in uintptr, fd_out int32, off_out uintptr, len1 Tsize_t, flags uint32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd_in=%v off_in=%v fd_out=%v off_out=%v len1=%v flags=%v, (%v:)", tls, fd_in, off_in, fd_out, off_out, len1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall6(tls, int64(SYS_splice), int64(fd_in), int64(off_in), int64(fd_out), int64(off_out), Int64FromUint64(len1), Int64FromUint32(flags)))) +} + +func Xstatx(tls *TLS, dirfd int32, path uintptr, flags int32, mask uint32, stx uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v dirfd=%v path=%v flags=%v mask=%v stx=%v, (%v:)", tls, dirfd, path, flags, mask, stx, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(128) + defer tls.Free(128) + var ret int32 + var _ /* st at bp+0 */ Tstat + _ = ret + ret = int32(X__syscall5(tls, int64(SYS_statx), int64(dirfd), int64(path), int64(flags), Int64FromUint32(mask), int64(stx))) + return int32(X__syscall_ret(tls, Uint64FromInt32(ret))) + if ret != -int32(ENOSYS) { + return int32(X__syscall_ret(tls, Uint64FromInt32(ret))) + } + ret = Xfstatat(tls, dirfd, path, bp, flags) + if ret != 0 { + return ret + } + (*Tstatx)(unsafe.Pointer(stx)).Fstx_dev_major = uint32((**(**Tstat)(__ccgo_up(bp))).Fst_dev>>Int32FromInt32(31)>>Int32FromInt32(1)&Uint64FromUint32(0xfffff000) | (**(**Tstat)(__ccgo_up(bp))).Fst_dev>>Int32FromInt32(8)&Uint64FromInt32(0x00000fff)) + (*Tstatx)(unsafe.Pointer(stx)).Fstx_dev_minor = uint32((**(**Tstat)(__ccgo_up(bp))).Fst_dev>>Int32FromInt32(12)&Uint64FromUint32(0xffffff00) | (**(**Tstat)(__ccgo_up(bp))).Fst_dev&Uint64FromInt32(0x000000ff)) + (*Tstatx)(unsafe.Pointer(stx)).Fstx_ino = (**(**Tstat)(__ccgo_up(bp))).Fst_ino + (*Tstatx)(unsafe.Pointer(stx)).Fstx_mode = uint16((**(**Tstat)(__ccgo_up(bp))).Fst_mode) + (*Tstatx)(unsafe.Pointer(stx)).Fstx_nlink = (**(**Tstat)(__ccgo_up(bp))).Fst_nlink + (*Tstatx)(unsafe.Pointer(stx)).Fstx_uid = (**(**Tstat)(__ccgo_up(bp))).Fst_uid + (*Tstatx)(unsafe.Pointer(stx)).Fstx_gid = (**(**Tstat)(__ccgo_up(bp))).Fst_gid + (*Tstatx)(unsafe.Pointer(stx)).Fstx_size = Uint64FromInt64((**(**Tstat)(__ccgo_up(bp))).Fst_size) + (*Tstatx)(unsafe.Pointer(stx)).Fstx_blksize = Uint32FromInt32((**(**Tstat)(__ccgo_up(bp))).Fst_blksize) + (*Tstatx)(unsafe.Pointer(stx)).Fstx_blocks = Uint64FromInt64((**(**Tstat)(__ccgo_up(bp))).Fst_blocks) + (*Tstatx)(unsafe.Pointer(stx)).Fstx_atime.Ftv_sec = (**(**Tstat)(__ccgo_up(bp))).Fst_atim.Ftv_sec + (*Tstatx)(unsafe.Pointer(stx)).Fstx_atime.Ftv_nsec = Uint32FromInt64((**(**Tstat)(__ccgo_up(bp))).Fst_atim.Ftv_nsec) + (*Tstatx)(unsafe.Pointer(stx)).Fstx_mtime.Ftv_sec = (**(**Tstat)(__ccgo_up(bp))).Fst_mtim.Ftv_sec + (*Tstatx)(unsafe.Pointer(stx)).Fstx_mtime.Ftv_nsec = Uint32FromInt64((**(**Tstat)(__ccgo_up(bp))).Fst_mtim.Ftv_nsec) + (*Tstatx)(unsafe.Pointer(stx)).Fstx_ctime.Ftv_sec = (**(**Tstat)(__ccgo_up(bp))).Fst_ctim.Ftv_sec + (*Tstatx)(unsafe.Pointer(stx)).Fstx_ctime.Ftv_nsec = Uint32FromInt64((**(**Tstat)(__ccgo_up(bp))).Fst_ctim.Ftv_nsec) + (*Tstatx)(unsafe.Pointer(stx)).Fstx_btime = Tstatx_timestamp{} + (*Tstatx)(unsafe.Pointer(stx)).Fstx_mask = uint32(0x7ff) + return 0 +} + +func Xstime(tls *TLS, t uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v t=%v, (%v:)", tls, t, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* tv at bp+0 */ Ttimeval + **(**Ttimeval)(__ccgo_up(bp)) = Ttimeval{ + Ftv_sec: **(**Ttime_t)(__ccgo_up(t)), + } + return Xsettimeofday(tls, bp, UintptrFromInt32(0)) +} + +const SWAP_FLAG_DISCARD = 65536 +const SWAP_FLAG_PREFER = 32768 +const SWAP_FLAG_PRIO_MASK = 32767 +const SWAP_FLAG_PRIO_SHIFT = 0 + +func Xswapon(tls *TLS, path uintptr, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v flags=%v, (%v:)", tls, path, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_swapon), int64(path), int64(flags))))) +} + +func Xswapoff(tls *TLS, path uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v, (%v:)", tls, path, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_swapoff), int64(path))))) +} + +func Xsync_file_range(tls *TLS, fd int32, pos Toff_t, len1 Toff_t, flags uint32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v pos=%v len1=%v flags=%v, (%v:)", tls, fd, pos, len1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_sync_file_range), int64(fd), pos, len1, Int64FromUint32(flags))))) +} + +func Xsyncfs(tls *TLS, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_syncfs), int64(fd))))) +} + +func X__lsysinfo(tls *TLS, info uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v info=%v, (%v:)", tls, info, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_sysinfo), int64(info))))) +} + +func Xsysinfo(tls *TLS, info uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v info=%v, (%v:)", tls, info, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lsysinfo(tls, info) +} + +func Xtee(tls *TLS, src int32, dest int32, len1 Tsize_t, flags uint32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v src=%v dest=%v len1=%v flags=%v, (%v:)", tls, src, dest, len1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_tee), int64(src), int64(dest), Int64FromUint64(len1), Int64FromUint32(flags)))) +} + +const TFD_CLOEXEC = 524288 +const TFD_NONBLOCK = 2048 +const TFD_TIMER_ABSTIME = 1 +const TFD_TIMER_CANCEL_ON_SET = 2 + +func Xtimerfd_create(tls *TLS, clockid int32, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v clockid=%v flags=%v, (%v:)", tls, clockid, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_timerfd_create), int64(clockid), int64(flags))))) +} + +func Xtimerfd_settime(tls *TLS, fd int32, flags int32, new1 uintptr, old uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v flags=%v new1=%v old=%v, (%v:)", tls, fd, flags, new1, old, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_timerfd_settime), int64(fd), int64(flags), int64(new1), int64(old))))) +} + +func Xtimerfd_gettime(tls *TLS, fd int32, cur uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v cur=%v, (%v:)", tls, fd, cur, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_timerfd_gettime), int64(fd), int64(cur))))) +} + +func Xunshare(tls *TLS, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v flags=%v, (%v:)", tls, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_unshare), int64(flags))))) +} + +func Xutimes(tls *TLS, path uintptr, times uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v times=%v, (%v:)", tls, path, times, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__futimesat(tls, -int32(100), path, times) +} + +func Xvhangup(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall0(tls, int64(SYS_vhangup))))) +} + +func Xvmsplice(tls *TLS, fd int32, iov uintptr, cnt Tsize_t, flags uint32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v iov=%v cnt=%v flags=%v, (%v:)", tls, fd, iov, cnt, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_vmsplice), int64(fd), int64(iov), Int64FromUint64(cnt), Int64FromUint32(flags)))) +} + +const LARCH_NGREG = 32 +const LARCH_REG_A0 = 4 +const LARCH_REG_NARGS = 8 +const LARCH_REG_RA = 1 +const LARCH_REG_S0 = 23 +const LARCH_REG_S1 = 24 +const LARCH_REG_S2 = 25 +const LARCH_REG_SP = 3 +const NSIG = 65 +const SA_NOMASK = 1073741824 +const SA_ONESHOT = 2147483648 +const SYS_SECCOMP = 1 +const SYS_USER_DISPATCH = 2 +const __ucontext = 0 + +type Tgreg_t = uint64 + +type Tgregset_t = [32]uint64 + +type Tsigcontext = struct { + Fsc_pc uint64 + Fsc_regs [32]uint64 + Fsc_flags uint32 +} + +type Tucontext = Tucontext_t + +type Tsig_t = uintptr + +type Tsighandler_t = uintptr + +func Xwait3(tls *TLS, status uintptr, options int32, usage uintptr) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v status=%v options=%v usage=%v, (%v:)", tls, status, options, usage, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwait4(tls, -int32(1), status, options, usage) +} + +func Xwait4(tls *TLS, pid Tpid_t, status uintptr, options int32, ru uintptr) (r1 Tpid_t) { + if __ccgo_strace { + trc("tls=%v pid=%v status=%v options=%v ru=%v, (%v:)", tls, pid, status, options, ru, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var dest, v1 uintptr + var r int32 + var _ /* kru at bp+0 */ [4]int64 + _, _, _ = dest, r, v1 + if ru != 0 { + v1 = ru + 32 - uintptr(Uint64FromInt32(4)*Uint64FromInt64(8)) + } else { + v1 = uintptr(0) + } + dest = v1 + r = int32(X__syscall4(tls, int64(SYS_wait4), int64(pid), int64(status), int64(options), int64(dest))) + if r > 0 && ru != 0 && Bool(uint64(8) > uint64(8)) { + Xmemcpy(tls, bp, dest, Uint64FromInt32(4)*Uint64FromInt64(8)) + (*Trusage)(unsafe.Pointer(ru)).Fru_utime = Ttimeval{ + Ftv_sec: (**(**[4]int64)(__ccgo_up(bp)))[0], + Ftv_usec: (**(**[4]int64)(__ccgo_up(bp)))[int32(1)], + } + (*Trusage)(unsafe.Pointer(ru)).Fru_stime = Ttimeval{ + Ftv_sec: (**(**[4]int64)(__ccgo_up(bp)))[int32(2)], + Ftv_usec: (**(**[4]int64)(__ccgo_up(bp)))[int32(3)], + } + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +const XATTR_CREATE = 1 +const XATTR_REPLACE = 2 +const __UAPI_DEF_XATTR = 0 + +func Xgetxattr(tls *TLS, path uintptr, name uintptr, value uintptr, size Tsize_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v path=%v name=%v value=%v size=%v, (%v:)", tls, path, name, value, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_getxattr), int64(path), int64(name), int64(value), Int64FromUint64(size)))) +} + +func Xlgetxattr(tls *TLS, path uintptr, name uintptr, value uintptr, size Tsize_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v path=%v name=%v value=%v size=%v, (%v:)", tls, path, name, value, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_lgetxattr), int64(path), int64(name), int64(value), Int64FromUint64(size)))) +} + +func Xfgetxattr(tls *TLS, filedes int32, name uintptr, value uintptr, size Tsize_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v filedes=%v name=%v value=%v size=%v, (%v:)", tls, filedes, name, value, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_fgetxattr), int64(filedes), int64(name), int64(value), Int64FromUint64(size)))) +} + +func Xlistxattr(tls *TLS, path uintptr, list uintptr, size Tsize_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v path=%v list=%v size=%v, (%v:)", tls, path, list, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_listxattr), int64(path), int64(list), Int64FromUint64(size)))) +} + +func Xllistxattr(tls *TLS, path uintptr, list uintptr, size Tsize_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v path=%v list=%v size=%v, (%v:)", tls, path, list, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_llistxattr), int64(path), int64(list), Int64FromUint64(size)))) +} + +func Xflistxattr(tls *TLS, filedes int32, list uintptr, size Tsize_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v filedes=%v list=%v size=%v, (%v:)", tls, filedes, list, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_flistxattr), int64(filedes), int64(list), Int64FromUint64(size)))) +} + +func Xsetxattr(tls *TLS, path uintptr, name uintptr, value uintptr, size Tsize_t, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v name=%v value=%v size=%v flags=%v, (%v:)", tls, path, name, value, size, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_setxattr), int64(path), int64(name), int64(value), Int64FromUint64(size), int64(flags))))) +} + +func Xlsetxattr(tls *TLS, path uintptr, name uintptr, value uintptr, size Tsize_t, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v name=%v value=%v size=%v flags=%v, (%v:)", tls, path, name, value, size, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_lsetxattr), int64(path), int64(name), int64(value), Int64FromUint64(size), int64(flags))))) +} + +func Xfsetxattr(tls *TLS, filedes int32, name uintptr, value uintptr, size Tsize_t, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v filedes=%v name=%v value=%v size=%v flags=%v, (%v:)", tls, filedes, name, value, size, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_fsetxattr), int64(filedes), int64(name), int64(value), Int64FromUint64(size), int64(flags))))) +} + +func Xremovexattr(tls *TLS, path uintptr, name uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v name=%v, (%v:)", tls, path, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_removexattr), int64(path), int64(name))))) +} + +func Xlremovexattr(tls *TLS, path uintptr, name uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v name=%v, (%v:)", tls, path, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_lremovexattr), int64(path), int64(name))))) +} + +func Xfremovexattr(tls *TLS, fd int32, name uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v name=%v, (%v:)", tls, fd, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_fremovexattr), int64(fd), int64(name))))) +} + +func _dummy4(tls *TLS, msg uintptr, lm uintptr) (r uintptr) { + return msg +} + +func X__lctrans(tls *TLS, msg uintptr, lm uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v msg=%v lm=%v, (%v:)", tls, msg, lm, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lctrans_impl(tls, msg, lm) +} + +func X__lctrans_cur(tls *TLS, msg uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v msg=%v, (%v:)", tls, msg, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lctrans_impl(tls, msg, **(**uintptr)(__ccgo_up((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale + 5*8))) +} + +func _swapc(tls *TLS, x Tuint32_t, c int32) (r Tuint32_t) { + var v1 uint32 + _ = v1 + if c != 0 { + v1 = x>>int32(24) | x>>int32(8)&uint32(0xff00) | x< %v", r) }() + } + var b, n, o, ol, os, t, tl, ts Tuint32_t + var mo uintptr + var sign, sw int32 + _, _, _, _, _, _, _, _, _, _, _ = b, mo, n, o, ol, os, sign, sw, t, tl, ts + mo = p + sw = Int32FromUint32(**(**Tuint32_t)(__ccgo_up(mo)) - uint32(0x950412de)) + b = uint32(0) + n = _swapc(tls, **(**Tuint32_t)(__ccgo_up(mo + 2*4)), sw) + o = _swapc(tls, **(**Tuint32_t)(__ccgo_up(mo + 3*4)), sw) + t = _swapc(tls, **(**Tuint32_t)(__ccgo_up(mo + 4*4)), sw) + if uint64(n) >= size/uint64(4) || uint64(o) >= size-uint64(uint32(4)*n) || uint64(t) >= size-uint64(uint32(4)*n) || (o|t)%uint32(4) != 0 { + return uintptr(0) + } + o = o / uint32(4) + t = t / uint32(4) + for { + ol = _swapc(tls, **(**Tuint32_t)(__ccgo_up(mo + uintptr(o+uint32(2)*(b+n/uint32(2)))*4)), sw) + os = _swapc(tls, **(**Tuint32_t)(__ccgo_up(mo + uintptr(o+uint32(2)*(b+n/uint32(2))+uint32(1))*4)), sw) + if uint64(os) >= size || uint64(ol) >= size-uint64(os) || **(**int8)(__ccgo_up(p + uintptr(os+ol))) != 0 { + return uintptr(0) + } + sign = Xstrcmp(tls, s, p+uintptr(os)) + if !(sign != 0) { + tl = _swapc(tls, **(**Tuint32_t)(__ccgo_up(mo + uintptr(t+uint32(2)*(b+n/uint32(2)))*4)), sw) + ts = _swapc(tls, **(**Tuint32_t)(__ccgo_up(mo + uintptr(t+uint32(2)*(b+n/uint32(2))+uint32(1))*4)), sw) + if uint64(ts) >= size || uint64(tl) >= size-uint64(ts) || **(**int8)(__ccgo_up(p + uintptr(ts+tl))) != 0 { + return uintptr(0) + } + return p + uintptr(ts) + } else { + if n == uint32(1) { + return uintptr(0) + } else { + if sign < 0 { + n = n / uint32(2) + } else { + b = b + n/uint32(2) + n = n - n/uint32(2) + } + } + } + goto _1 + _1: + } + return uintptr(0) +} + +const __USE_GNU_GETTEXT = 1 + +func Xbind_textdomain_codeset(tls *TLS, domainname uintptr, codeset uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v domainname=%v codeset=%v, (%v:)", tls, domainname, codeset, origin(2)) + defer func() { trc("-> %v", r) }() + } + if codeset != 0 && Xstrcasecmp(tls, codeset, __ccgo_ts+322) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + } + return UintptrFromInt32(0) +} + +var _empty_mo = [5]Tuint32_t{ + 0: uint32(0x950412de), + 2: Uint32FromInt32(-Int32FromInt32(1)), + 3: Uint32FromInt32(-Int32FromInt32(1)), + 4: Uint32FromInt32(-Int32FromInt32(1)), +} + +const NL_CAT_LOCALE = 1 +const NL_SETD = 1 + +type Tnl_item = int32 + +type Tnl_catd = uintptr + +func Xcatclose(tls *TLS, catd Tnl_catd) (r int32) { + if __ccgo_strace { + trc("tls=%v catd=%v, (%v:)", tls, catd, origin(2)) + defer func() { trc("-> %v", r) }() + } + var map1 uintptr + var v1, v2 Tuint32_t + _, _, _ = map1, v1, v2 + map1 = catd + v1 = **(**Tuint32_t)(__ccgo_up(map1 + UintptrFromInt32(8))) + v2 = v1>>int32(24) | v1>>int32(8)&uint32(0xff00) | v1<>int32(24) | v1>>int32(8)&uint32(0xff00) | v1<>int32(24) | v4>>int32(8)&uint32(0xff00) | v4< y { + v8 = int32(1) + } else { + v8 = 0 + } + v7 = v8 + } + return v7 +} + +func Xcatgets(tls *TLS, catd Tnl_catd, set_id int32, msg_id int32, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v catd=%v set_id=%v msg_id=%v s=%v, (%v:)", tls, catd, set_id, msg_id, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var map1, msg, msgs, set, sets, strings uintptr + var nmsgs, nsets, v1, v10, v11, v13, v14, v2, v4, v5, v7, v8 Tuint32_t + var _ /* msg_id_be at bp+4 */ Tuint32_t + var _ /* set_id_be at bp+0 */ Tuint32_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = map1, msg, msgs, nmsgs, nsets, set, sets, strings, v1, v10, v11, v13, v14, v2, v4, v5, v7, v8 + map1 = catd + v1 = **(**Tuint32_t)(__ccgo_up(map1 + UintptrFromInt32(4))) + v2 = v1>>int32(24) | v1>>int32(8)&uint32(0xff00) | v1<>int32(24) | v4>>int32(8)&uint32(0xff00) | v4<>int32(24) | v7>>int32(8)&uint32(0xff00) | v7<>int32(24) | v10>>int32(8)&uint32(0xff00) | v10<>int32(24) | v13>>int32(8)&uint32(0xff00) | v13<>int32(24) | v1>>int32(8)&uint32(0xff00) | v1<>int32(24) | v4>>int32(8)&uint32(0xff00) | v4<>int32(24) | v1>>int32(8)&uint32(0xff00) | v1<>int32(24) | v1>>int32(8)&uint32(0xff00) | v1<>int32(24) | v5>>int32(8)&uint32(0xff00) | v5< %v", r) }() + } + bp := tls.Alloc(4096) + defer tls.Free(4096) + var catd Tnl_catd + var i, l Tsize_t + var lang, p, path, v, z, v1 uintptr + var v2 bool + var _ /* buf at bp+0 */ [4096]int8 + _, _, _, _, _, _, _, _, _, _ = catd, i, l, lang, p, path, v, z, v1, v2 + if Xstrchr(tls, name, int32('/')) != 0 { + return _do_catopen(tls, name) + } + if v2 = X__libc.Fsecure != 0; !v2 { + v1 = Xgetenv(tls, __ccgo_ts+328) + path = v1 + } + if v2 || !(v1 != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOENT) + return uintptr(-Int32FromInt32(1)) + } + if oflag != 0 { + v1 = Xnl_langinfo(tls, Int32FromInt32(LC_MESSAGES)<= uint64(4096)-i { + break + } + Xmemcpy(tls, bp+uintptr(i), v, l) + i = i + l + goto _5 + _5: + ; + p = p + 1 + } + if !(**(**int8)(__ccgo_up(z)) != 0) && (p < z || !(i != 0)) { + break + } + if p < z { + goto _4 + } + if **(**int8)(__ccgo_up(z)) != 0 { + z = z + 1 + } + (**(**[4096]int8)(__ccgo_up(bp)))[i] = 0 + /* Leading : or :: in NLSPATH is same as %N */ + if i != 0 { + v1 = bp + } else { + v1 = name + } + catd = _do_catopen(tls, v1) + if catd != uintptr(-Int32FromInt32(1)) { + return catd + } + goto _4 + _4: + ; + p = z + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOENT) + return uintptr(-Int32FromInt32(1)) +} + +const calloc = 0 +const free = 0 +const malloc = 0 +const realloc = 0 + +type Tbinding = struct { + Fnext uintptr + Fdirlen int32 + Factive int32 + Fdomainname uintptr + Fdirname uintptr +} + +var _bindings uintptr + +func _gettextdir(tls *TLS, domainname uintptr, dirlen uintptr) (r uintptr) { + var p uintptr + _ = p + p = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_bindings))) + for { + if !(p != 0) { + break + } + if !(Xstrcmp(tls, (*Tbinding)(unsafe.Pointer(p)).Fdomainname, domainname) != 0) && AtomicLoadPInt32(p+12) != 0 { + **(**Tsize_t)(__ccgo_up(dirlen)) = Uint64FromInt32((*Tbinding)(unsafe.Pointer(p)).Fdirlen) + return (*Tbinding)(unsafe.Pointer(p)).Fdirname + } + goto _1 + _1: + ; + p = (*Tbinding)(unsafe.Pointer(p)).Fnext + } + return uintptr(0) +} + +var _lock1 [1]int32 + +func Xbindtextdomain(tls *TLS, domainname uintptr, dirname uintptr) (r1 uintptr) { + if __ccgo_strace { + trc("tls=%v domainname=%v dirname=%v, (%v:)", tls, domainname, dirname, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var dirlen, domlen Tsize_t + var old, p4, q, v, v2, v7 uintptr + var r int64 + var v3 int32 + var v5 bool + _, _, _, _, _, _, _, _, _, _, _ = dirlen, domlen, old, p4, q, r, v, v2, v3, v5, v7 + if !(domainname != 0) { + return uintptr(0) + } + if !(dirname != 0) { + *(*Tsize_t)(unsafe.Pointer(bp)) = uint64(0) + return _gettextdir(tls, domainname, bp) + } + domlen = Xstrnlen(tls, domainname, Uint64FromInt32(Int32FromInt32(NAME_MAX)+Int32FromInt32(1))) + dirlen = Xstrnlen(tls, dirname, uint64(PATH_MAX)) + if domlen > uint64(NAME_MAX) || dirlen >= uint64(PATH_MAX) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(0) + } + ___lock(tls, uintptr(unsafe.Pointer(&_lock1))) + p4 = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_bindings))) + for { + if !(p4 != 0) { + break + } + if !(Xstrcmp(tls, (*Tbinding)(unsafe.Pointer(p4)).Fdomainname, domainname) != 0) && !(Xstrcmp(tls, (*Tbinding)(unsafe.Pointer(p4)).Fdirname, dirname) != 0) { + break + } + goto _1 + _1: + ; + p4 = (*Tbinding)(unsafe.Pointer(p4)).Fnext + } + if !(p4 != 0) { + p4 = Xcalloc(tls, uint64(32)+domlen+dirlen+uint64(2), uint64(1)) + if !(p4 != 0) { + ___unlock(tls, uintptr(unsafe.Pointer(&_lock1))) + return uintptr(0) + } + (*Tbinding)(unsafe.Pointer(p4)).Fnext = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_bindings))) + (*Tbinding)(unsafe.Pointer(p4)).Fdirlen = Int32FromUint64(dirlen) + (*Tbinding)(unsafe.Pointer(p4)).Fdomainname = p4 + 32 + (*Tbinding)(unsafe.Pointer(p4)).Fdirname = p4 + 32 + uintptr(domlen) + uintptr(1) + Xmemcpy(tls, (*Tbinding)(unsafe.Pointer(p4)).Fdomainname, domainname, domlen+uint64(1)) + Xmemcpy(tls, (*Tbinding)(unsafe.Pointer(p4)).Fdirname, dirname, dirlen+uint64(1)) + v2 = uintptr(unsafe.Pointer(&_bindings)) + // __asm__ __volatile__ ("dbar 0" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 49, __ccgo_ts+399) + for { + // __asm__ __volatile__ ( + // + // "ll.d %0, %1" + // : "=r"(v) + // : "ZC"(*(void *volatile *)p)); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 27, __ccgo_ts+399) + v7 = v + goto _8 + _8: + old = v7 + goto _6 + _6: + ; + if v5 = old == AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_bindings))); v5 { + // __asm__ __volatile__ ( + // + // "sc.d %0, %1" + // : "=r"(r), "=ZC"(*(void *volatile *)p) + // : "0"(v) + // : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 38, __ccgo_ts+399) + v3 = int32(r) + goto _4 + _4: + } + if !(v5 && !(v3 != 0)) { + break + } + } + // __asm__ __volatile__ ("dbar 0" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 49, __ccgo_ts+399) + _ = old + goto _9 + _9: + } + // __asm__ __volatile__ ("dbar 0" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 49, __ccgo_ts+399) + AtomicStorePInt32(p4+12, int32(1)) + // __asm__ __volatile__ ("dbar 0" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 49, __ccgo_ts+399) + q = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_bindings))) + for { + if !(q != 0) { + break + } + if !(Xstrcmp(tls, (*Tbinding)(unsafe.Pointer(q)).Fdomainname, domainname) != 0) && q != p4 { + // __asm__ __volatile__ ("dbar 0" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 49, __ccgo_ts+399) + AtomicStorePInt32(q+12, 0) + // __asm__ __volatile__ ("dbar 0" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 49, __ccgo_ts+399) + } + goto _10 + _10: + ; + q = (*Tbinding)(unsafe.Pointer(q)).Fnext + } + ___unlock(tls, uintptr(unsafe.Pointer(&_lock1))) + return (*Tbinding)(unsafe.Pointer(p4)).Fdirname +} + +var _catnames = [6][12]int8{ + 0: {'L', 'C', '_', 'C', 'T', 'Y', 'P', 'E'}, + 1: {'L', 'C', '_', 'N', 'U', 'M', 'E', 'R', 'I', 'C'}, + 2: {'L', 'C', '_', 'T', 'I', 'M', 'E'}, + 3: {'L', 'C', '_', 'C', 'O', 'L', 'L', 'A', 'T', 'E'}, + 4: {'L', 'C', '_', 'M', 'O', 'N', 'E', 'T', 'A', 'R', 'Y'}, + 5: {'L', 'C', '_', 'M', 'E', 'S', 'S', 'A', 'G', 'E', 'S'}, +} + +var _catlens = [6]int8{ + 0: int8(8), + 1: int8(10), + 2: int8(7), + 3: int8(10), + 4: int8(11), + 5: int8(11), +} + +type Tmsgcat = struct { + Fnext uintptr + Fmap1 uintptr + Fmap_size Tsize_t + Fplural_rule uintptr + Fnplurals int32 + Fbinding uintptr + Flm uintptr + Fcat int32 +} + +func _dummy_gettextdomain(tls *TLS) (r uintptr) { + return __ccgo_ts + 414 +} + +func Xdcngettext(tls *TLS, domainname uintptr, msgid1 uintptr, msgid2 uintptr, n uint64, category int32) (r2 uintptr) { + if __ccgo_strace { + trc("tls=%v domainname=%v msgid1=%v msgid2=%v n=%v category=%v, (%v:)", tls, domainname, msgid1, msgid2, n, category, origin(2)) + defer func() { trc("-> %v", r2) }() + } + bp := tls.Alloc(80) + defer tls.Free(80) + var alt_modlen, catlen, dirlen, domlen, l, loclen, modlen, rem, v5 Tsize_t + var catname, csp, dirname, lm, loc, locname, locp, map1, modname, name, old, old_cats, p3, q, r1, rule, trans, v, v3, v8, v9 uintptr + var np, plural, v27 uint64 + var old_errno, v11, v12 int32 + var r int64 + var v20 bool + var v6 t__predefined_size_t + var _ /* map_size at bp+0 */ Tsize_t + var _ /* z at bp+8 */ uintptr + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = alt_modlen, catlen, catname, csp, dirlen, dirname, domlen, l, lm, loc, loclen, locname, locp, map1, modlen, modname, name, np, old, old_cats, old_errno, p3, plural, q, r, r1, rem, rule, trans, v, v11, v12, v20, v27, v3, v5, v6, v8, v9 + defer func() { Xrealloc(tls, name, 0) }() + loc = (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale + old_errno = **(**int32)(__ccgo_up(X__errno_location(tls))) + /* match gnu gettext behaviour */ + if !(msgid1 != 0) { + goto notrans + } + if Uint32FromInt32(category) >= uint32(LC_ALL) { + goto notrans + } + if !(domainname != 0) { + domainname = X__gettextdomain(tls) + } + domlen = Xstrnlen(tls, domainname, Uint64FromInt32(Int32FromInt32(NAME_MAX)+Int32FromInt32(1))) + if domlen > uint64(NAME_MAX) { + goto notrans + } + q = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_bindings))) + for { + if !(q != 0) { + break + } + if !(Xstrcmp(tls, (*Tbinding)(unsafe.Pointer(q)).Fdomainname, domainname) != 0) && AtomicLoadPInt32(q+12) != 0 { + break + } + goto _1 + _1: + ; + q = (*Tbinding)(unsafe.Pointer(q)).Fnext + } + if !(q != 0) { + goto notrans + } + lm = **(**uintptr)(__ccgo_up(loc + uintptr(category)*8)) + if !!(lm != 0) { + goto _2 + } + goto notrans +notrans: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = old_errno + if n == uint64(1) { + v3 = msgid1 + } else { + v3 = msgid2 + } + return v3 +_2: + ; + p3 = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_cats))) + for { + if !(p3 != 0) { + break + } + if (*Tmsgcat)(unsafe.Pointer(p3)).Fbinding == q && (*Tmsgcat)(unsafe.Pointer(p3)).Flm == lm && (*Tmsgcat)(unsafe.Pointer(p3)).Fcat == category { + break + } + goto _4 + _4: + ; + p3 = (*Tmsgcat)(unsafe.Pointer(p3)).Fnext + } + if !(p3 != 0) { + dirname = (*Tbinding)(unsafe.Pointer(q)).Fdirname + locname = lm + 16 + catname = uintptr(unsafe.Pointer(&_catnames)) + uintptr(category)*12 + dirlen = Uint64FromInt32((*Tbinding)(unsafe.Pointer(q)).Fdirlen) + loclen = _strlen(tls, locname) + catlen = Uint64FromInt8(_catlens[category]) + /* Logically split @mod suffix from locale name. */ + modname = Xmemchr(tls, locname, int32('@'), loclen) + if !(modname != 0) { + modname = locname + uintptr(loclen) + } + v5 = loclen - Uint64FromInt64(int64(modname)-int64(locname)) + modlen = v5 + alt_modlen = v5 + loclen = Uint64FromInt64(int64(modname) - int64(locname)) + /* Drop .charset identifier; it is not used. */ + csp = Xmemchr(tls, locname, int32('.'), loclen) + if csp != 0 { + loclen = Uint64FromInt64(int64(csp) - int64(locname)) + } + v6 = dirlen + uint64(1) + loclen + modlen + uint64(1) + catlen + uint64(1) + domlen + uint64(3) + uint64(1) + name = Xrealloc(tls, name, v6) + for { + Xsnprintf(tls, name, v6, __ccgo_ts+423, VaList(bp+24, dirname, Int32FromUint64(loclen), locname, Int32FromUint64(alt_modlen), modname, catname, domainname)) + v3 = X__map_file(tls, name, bp) + map1 = v3 + if v3 != 0 { + break + } + /* Try dropping @mod, _YY, then both. */ + if alt_modlen != 0 { + alt_modlen = uint64(0) + } else { + v3 = Xmemchr(tls, locname, int32('_'), loclen) + locp = v3 + if v3 != 0 { + loclen = Uint64FromInt64(int64(locp) - int64(locname)) + alt_modlen = modlen + } else { + break + } + } + goto _7 + _7: + } + if !(map1 != 0) { + goto notrans + } + p3 = Xcalloc(tls, uint64(64), uint64(1)) + if !(p3 != 0) { + X__munmap(tls, map1, **(**Tsize_t)(__ccgo_up(bp))) + goto notrans + } + (*Tmsgcat)(unsafe.Pointer(p3)).Fcat = category + (*Tmsgcat)(unsafe.Pointer(p3)).Fbinding = q + (*Tmsgcat)(unsafe.Pointer(p3)).Flm = lm + (*Tmsgcat)(unsafe.Pointer(p3)).Fmap1 = map1 + (*Tmsgcat)(unsafe.Pointer(p3)).Fmap_size = **(**Tsize_t)(__ccgo_up(bp)) + rule = __ccgo_ts + 445 + np = uint64(2) + r1 = X__mo_lookup(tls, (*Tmsgcat)(unsafe.Pointer(p3)).Fmap1, (*Tmsgcat)(unsafe.Pointer(p3)).Fmap_size, __ccgo_ts) + for r1 != 0 && Xstrncmp(tls, r1, __ccgo_ts+451, uint64(13)) != 0 { + **(**uintptr)(__ccgo_up(bp + 8)) = Xstrchr(tls, r1, int32('\n')) + if **(**uintptr)(__ccgo_up(bp + 8)) != 0 { + v3 = **(**uintptr)(__ccgo_up(bp + 8)) + uintptr(1) + } else { + v3 = uintptr(0) + } + r1 = v3 + } + if r1 != 0 { + r1 = r1 + uintptr(13) + for { + v11 = int32(**(**int8)(__ccgo_up(r1))) + v12 = BoolInt32(v11 == int32(' ') || Uint32FromInt32(v11)-uint32('\t') < uint32(5)) + goto _13 + _13: + if !(v12 != 0) { + break + } + r1 = r1 + 1 + } + if !(Xstrncmp(tls, r1, __ccgo_ts+465, uint64(9)) != 0) { + np = Xstrtoul(tls, r1+uintptr(9), bp+8, int32(10)) + r1 = **(**uintptr)(__ccgo_up(bp + 8)) + } + for **(**int8)(__ccgo_up(r1)) != 0 && int32(**(**int8)(__ccgo_up(r1))) != int32(';') { + r1 = r1 + 1 + } + if **(**int8)(__ccgo_up(r1)) != 0 { + r1 = r1 + 1 + for { + v11 = int32(**(**int8)(__ccgo_up(r1))) + v12 = BoolInt32(v11 == int32(' ') || Uint32FromInt32(v11)-uint32('\t') < uint32(5)) + goto _16 + _16: + if !(v12 != 0) { + break + } + r1 = r1 + 1 + } + if !(Xstrncmp(tls, r1, __ccgo_ts+475, uint64(7)) != 0) { + rule = r1 + uintptr(7) + } + } + } + (*Tmsgcat)(unsafe.Pointer(p3)).Fnplurals = Int32FromUint64(np) + (*Tmsgcat)(unsafe.Pointer(p3)).Fplural_rule = rule + for { + old_cats = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_cats))) + (*Tmsgcat)(unsafe.Pointer(p3)).Fnext = old_cats + goto _26 + _26: + ; + v3 = uintptr(unsafe.Pointer(&_cats)) + // __asm__ __volatile__ ("dbar 0" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 49, __ccgo_ts+483) + for { + // __asm__ __volatile__ ( + // + // "ll.d %0, %1" + // : "=r"(v) + // : "ZC"(*(void *volatile *)p)); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 27, __ccgo_ts+483) + v8 = v + goto _23 + _23: + old = v8 + goto _21 + _21: + ; + if v20 = old == old_cats; v20 { + // __asm__ __volatile__ ( + // + // "sc.d %0, %1" + // : "=r"(r), "=ZC"(*(void *volatile *)p) + // : "0"(v) + // : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 38, __ccgo_ts+483) + v11 = int32(r) + goto _19 + _19: + } + if !(v20 && !(v11 != 0)) { + break + } + } + // __asm__ __volatile__ ("dbar 0" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 49, __ccgo_ts+483) + v9 = old + goto _25 + _25: + ; + if !(v9 != old_cats) { + break + } + } + } + trans = X__mo_lookup(tls, (*Tmsgcat)(unsafe.Pointer(p3)).Fmap1, (*Tmsgcat)(unsafe.Pointer(p3)).Fmap_size, msgid1) + if !(trans != 0) { + goto notrans + } + /* Non-plural-processing gettext forms pass a null pointer as + * msgid2 to request that dcngettext suppress plural processing. */ + if msgid2 != 0 && (*Tmsgcat)(unsafe.Pointer(p3)).Fnplurals != 0 { + plural = X__pleval(tls, (*Tmsgcat)(unsafe.Pointer(p3)).Fplural_rule, n) + if plural > Uint64FromInt32((*Tmsgcat)(unsafe.Pointer(p3)).Fnplurals) { + goto notrans + } + for { + v27 = plural + plural = plural - 1 + if !(v27 != 0) { + break + } + rem = (*Tmsgcat)(unsafe.Pointer(p3)).Fmap_size - Uint64FromInt64(int64(trans)-int64((*Tmsgcat)(unsafe.Pointer(p3)).Fmap1)) + l = Xstrnlen(tls, trans, rem) + if l+uint64(1) >= rem { + goto notrans + } + trans = trans + uintptr(l+uint64(1)) + } + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = old_errno + return trans +} + +var _cats uintptr + +func Xdcgettext(tls *TLS, domainname uintptr, msgid uintptr, category int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v domainname=%v msgid=%v category=%v, (%v:)", tls, domainname, msgid, category, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xdcngettext(tls, domainname, msgid, uintptr(0), uint64(1), category) +} + +func Xdngettext(tls *TLS, domainname uintptr, msgid1 uintptr, msgid2 uintptr, n uint64) (r uintptr) { + if __ccgo_strace { + trc("tls=%v domainname=%v msgid1=%v msgid2=%v n=%v, (%v:)", tls, domainname, msgid1, msgid2, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xdcngettext(tls, domainname, msgid1, msgid2, n, int32(LC_MESSAGES)) +} + +func Xdgettext(tls *TLS, domainname uintptr, msgid uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v domainname=%v msgid=%v, (%v:)", tls, domainname, msgid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xdcngettext(tls, domainname, msgid, uintptr(0), uint64(1), int32(LC_MESSAGES)) +} + +func X__duplocale(tls *TLS, old Tlocale_t) (r Tlocale_t) { + if __ccgo_strace { + trc("tls=%v old=%v, (%v:)", tls, old, origin(2)) + defer func() { trc("-> %v", r) }() + } + var new1 Tlocale_t + _ = new1 + new1 = Xmalloc(tls, uint64(48)) + if !(new1 != 0) { + return uintptr(0) + } + if old == uintptr(-Int32FromInt32(1)) { + old = uintptr(unsafe.Pointer(&X__libc)) + 56 + } + **(**t__locale_struct)(__ccgo_up(new1)) = **(**t__locale_struct)(__ccgo_up(old)) + return new1 +} + +func Xduplocale(tls *TLS, old Tlocale_t) (r Tlocale_t) { + if __ccgo_strace { + trc("tls=%v old=%v, (%v:)", tls, old, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__duplocale(tls, old) +} + +func Xfreelocale(tls *TLS, l Tlocale_t) { + if __ccgo_strace { + trc("tls=%v l=%v, (%v:)", tls, l, origin(2)) + } + if X__loc_is_allocated(tls, l) != 0 { + Xfree(tls, l) + } +} + +func X__freelocale(tls *TLS, l Tlocale_t) { + if __ccgo_strace { + trc("tls=%v l=%v, (%v:)", tls, l, origin(2)) + } + Xfreelocale(tls, l) +} + +const BIG5 = 224 +const EUC_JP = 208 +const EUC_KR = 232 +const GB18030 = 216 +const GB2312 = 218 +const GBK = 217 +const ISO2022_JP = 210 +const SHIFT_JIS = 209 +const UCS2 = 204 +const UCS2BE = 196 +const UCS2LE = 197 +const US_ASCII = 199 +const UTF_16 = 202 +const UTF_16BE = 194 +const UTF_16LE = 193 +const UTF_32 = 203 +const UTF_32BE = 192 +const UTF_32LE = 195 +const UTF_8 = 200 +const WCHAR_T = 198 +const mbrtowc_utf8 = 0 +const wctomb_utf8 = 0 + +type Ticonv_t = uintptr + +/* Definitions of charmaps. Each charmap consists of: + * 1. Empty-string-terminated list of null-terminated aliases. + * 2. Special type code or number of elided quads of entries. + * 3. Character table (size determined by field 2), consisting + * of 5 bytes for every 4 characters, interpreted as 10-bit + * indices into the legacy_chars table. */ + +var _charmaps = [4907]uint8{'u', 't', 'f', '8', 0, 'c', 'h', 'a', 'r', 0, 0, 200, 'w', 'c', 'h', 'a', 'r', 't', 0, 0, 198, 'u', 'c', 's', '2', 'b', 'e', 0, 0, 196, 'u', 'c', 's', '2', 'l', 'e', 0, 0, 197, 'u', 't', 'f', '1', '6', 'b', 'e', 0, 0, 194, 'u', 't', 'f', '1', '6', 'l', 'e', 0, 0, 193, 'u', 'c', 's', '4', 'b', 'e', 0, 'u', 't', 'f', '3', '2', 'b', 'e', 0, 0, 192, 'u', 'c', 's', '4', 'l', 'e', 0, 'u', 't', 'f', '3', '2', 'l', 'e', 0, 0, 195, 'a', 's', 'c', 'i', 'i', 0, 'u', 's', 'a', 's', 'c', 'i', 'i', 0, 'i', 's', 'o', '6', '4', '6', 0, 'i', 's', 'o', '6', '4', '6', 'u', 's', 0, 0, 199, 'u', 't', 'f', '1', '6', 0, 0, 202, 'u', 'c', 's', '4', 0, 'u', 't', 'f', '3', '2', 0, 0, 203, 'u', 'c', 's', '2', 0, 0, 204, 'e', 'u', 'c', 'j', 'p', 0, 0, 208, 's', 'h', 'i', 'f', 't', 'j', 'i', 's', 0, 's', 'j', 'i', 's', 0, 'c', 'p', '9', '3', '2', 0, 0, 209, 'i', 's', 'o', '2', '0', '2', '2', 'j', 'p', 0, 0, 210, 'g', 'b', '1', '8', '0', '3', '0', 0, 0, 216, 'g', 'b', 'k', 0, 'c', 'p', '9', '3', '6', 0, 'w', 'i', 'n', 'd', 'o', 'w', 's', '9', '3', '6', 0, 0, 217, 'g', 'b', '2', '3', '1', '2', 0, 0, 218, 'b', 'i', 'g', '5', 0, 'b', 'i', 'g', 'f', 'i', 'v', 'e', 0, 'c', 'p', '9', '5', '0', 0, 'b', 'i', 'g', '5', 'h', 'k', 's', 'c', 's', 0, 0, 224, 'e', 'u', 'c', 'k', 'r', 0, 'k', 's', 'c', '5', '6', '0', '1', 0, 'k', 's', 'x', '1', '0', '0', '1', 0, 'c', 'p', '9', '4', '9', 0, 0, 232, 'i', 's', 'o', '8', '8', '5', '9', '1', 0, 'l', 'a', 't', 'i', 'n', '1', 0, 0, '@', 'i', 's', 'o', '8', '8', '5', '9', '2', 0, 0, '(', 160, 16, 244, 'W', 'N', 164, 220, 244, 212, ')', 168, 'T', '5', 'U', 'V', 'n', 181, '"', 23, '\\', 176, 20, 20, 152, 'N', 180, 224, 4, 149, '_', 184, 'X', 'E', 149, 'V', 'o', 13, '6', 'W', '\\', 'I', 5, '#', 140, '@', 196, 204, 'd', 208, '1', 12, '%', 'c', 209, '2', 24, '5', 227, 140, 'C', 16, 237, 244, 211, '4', 212, 20, 'e', 205, '5', 'M', 141, 165, 'M', 'Y', 220, 't', 's', 213, '7', 'J', 133, '#', 206, '@', 228, 208, 't', 208, '9', 13, 165, 's', 209, ':', 25, 181, 227, 206, 'C', 17, 241, 4, 212, '<', 244, 24, 'e', 207, '=', 'N', 145, 165, 143, 'Y', 252, 244, 131, 21, '`', 'i', 's', 'o', '8', '8', '5', '9', '3', 0, 0, '(', 160, 144, 244, 215, '(', 164, 0, ' ', 210, ')', 168, 176, '4', 21, 'G', '.', 181, 2, 0, '\\', 176, 148, '$', 203, ',', 180, 212, '2', 210, '-', 184, 180, 'D', 'U', 'G', '/', 245, 2, '@', '\\', 192, 4, '#', 12, 0, 196, '(', 132, 208, '1', 200, '$', 163, 204, '2', 204, '4', 227, 204, '3', 0, 'D', '#', 205, '4', 212, 'x', 'd', 205, '5', 26, 'e', 163, 205, '6', 220, 132, 21, 213, '7', 224, 132, '#', 14, 0, 228, ',', 148, 208, '9', 232, 164, 163, 206, ':', 236, 180, 227, 206, ';', 0, 196, '#', 207, '<', 244, '|', 'd', 207, '=', 27, 229, 163, 207, '>', 252, 136, '%', 21, '`', 'i', 's', 'o', '8', '8', '5', '9', '4', 0, 0, '(', 160, 16, '$', 211, 'R', 164, 152, 'T', 211, ')', 168, 'T', '%', 17, 'H', '[', 181, '"', 215, '+', 176, 20, 20, 24, 'S', 180, 156, 'd', 147, '_', 184, 'X', '5', 'Q', 'H', '\\', 5, '5', 151, 'P', 0, 5, '#', 204, '0', 196, 20, 'c', 140, 'J', 12, '%', 'c', 209, '2', 20, '5', 227, 12, 'J', 16, 245, '4', 20, 'L', 212, 'T', 'c', 205, '5', 216, 156, 165, 205, '6', 220, 't', 245, 213, '7', 1, 133, '#', 206, '8', 228, 148, 'c', 206, 'J', 13, 165, 's', 209, ':', 21, 181, 227, 'N', 'J', 17, 249, 'D', 'T', 'L', 244, 212, 'c', 207, '=', 248, 160, 165, 207, '>', 252, 'x', 5, 22, '`', 'i', 's', 'o', '8', '8', '5', '9', '5', 0, 0, '(', 160, 'D', '\'', 221, 't', 212, 'U', 'g', 221, 'u', 216, 'e', 167, 221, 'v', 220, 181, 210, 157, 'w', 223, 129, 23, 158, 'x', 227, 145, 'W', 158, 'y', 231, 161, 151, 158, 'z', 235, 177, 215, 158, '{', 239, 193, 23, 159, '|', 243, 209, 'W', 159, '}', 247, 225, 151, 159, '~', 251, 241, 215, 159, 127, 255, 1, 24, 160, 128, 3, 18, 'X', 160, 129, 7, '"', 152, 160, 130, 11, '2', 216, 160, 131, 15, 'B', 24, 161, 132, 19, 'R', 'X', 161, 133, 23, 'b', 152, 161, 134, 27, 'r', 216, 161, 135, '&', 127, 8, 'b', 136, '"', 142, 'H', 'b', 137, '&', 158, 136, 'b', 138, '*', 158, 178, '"', 139, 'i', 's', 'o', '8', '8', '5', '9', '6', 0, 0, '(', 160, 0, 0, 0, 0, 164, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'b', 182, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 192, 152, 0, 0, 0, 0, 153, 0, 148, 'i', 230, 153, 'h', 166, 169, 230, 154, 'l', 182, 233, 230, 155, 'p', 198, ')', 231, 156, 't', 214, 'i', 231, 157, 'x', 230, 169, 231, 158, '|', 246, 233, '\'', 0, 0, 0, 0, 0, 0, 127, 2, 26, 168, 160, 131, 18, 'Z', 168, 161, 135, '"', 154, 168, 162, 139, '2', 218, 168, 163, 143, 'B', 26, ')', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'i', 's', 'o', '8', '8', '5', '9', '7', 0, 0, '(', 160, 'L', 'L', 241, '(', '$', 151, 'l', 202, ')', 168, 164, 146, 216, '*', 172, 180, 2, '@', 196, 176, 196, '"', 203, ',', 138, '-', 198, 216, '-', 141, '9', 246, 216, '.', 144, 245, 18, 153, 'd', 147, 'Q', 'V', 153, 'e', 151, 'a', 150, 153, 'f', 155, 'q', 214, 153, 'g', 159, 129, 22, 154, 'h', 163, 145, 6, '@', 'i', 166, 157, 134, 'Z', 'j', 170, 173, 198, 'Z', 'k', 174, 189, 6, '[', 'l', 178, 205, 'F', '[', 'm', 182, 221, 134, '[', 'n', 186, 237, 198, '[', 'o', 190, 253, 6, '\\', 'p', 194, 13, 'G', '\\', 'q', 198, 29, 135, '\\', 'r', 202, '-', 199, '\\', 's', 206, '=', 7, 29, 0, 'i', 's', 'o', '8', '8', '5', '9', '8', 0, 0, '(', 160, 0, ' ', 202, '(', 164, 148, 'b', 202, ')', 168, 164, 'r', 205, '*', 172, 180, 226, 202, '+', 176, 196, '"', 203, ',', 180, 212, 'b', 203, '-', 184, 228, 'r', 207, '.', 188, 244, 226, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 128, 196, 'B', 14, 'I', 'd', 145, 'F', 30, 137, 'd', 146, 'J', '.', 201, 'd', 147, 'N', '>', 9, 'e', 148, 'R', 'N', 'I', 'e', 149, 'V', '^', 137, 'e', 150, 'Z', 'n', 201, '%', 0, 0, '4', 236, '0', 0, 'i', 's', 'o', '8', '8', '5', '9', '9', 0, 0, '4', 28, 'E', '#', 205, '4', 212, 'T', 'c', 205, '5', 216, 'd', 163, 205, '6', 220, 176, '4', 213, '7', 224, 132, '#', 206, '8', 228, 148, 'c', 206, '9', 232, 164, 163, 206, ':', 236, 180, 227, 206, ';', 29, 197, '#', 207, '<', 244, 212, 'c', 207, '=', 248, 228, 163, 207, '>', 252, 180, 'D', 213, '?', 'i', 's', 'o', '8', '8', '5', '9', '1', '0', 0, 0, '(', 160, 16, '$', 17, 'H', '(', 153, 4, 211, ')', '5', 'A', 'T', 213, 'V', 'r', 181, 242, 'U', 'P', 176, 20, '4', 'Q', 'H', ')', 157, 20, 211, '-', '6', 'E', 'd', 21, 'W', 's', 'E', 12, 150, 'P', 0, 5, '#', 204, '0', 196, 20, 'c', 140, 'J', 12, '%', 'c', 209, '2', 20, '5', 227, 204, '3', 208, 244, '4', 212, '4', 212, 'T', 'c', 'M', 'W', 216, 156, 165, 205, '6', 220, 't', 227, 205, '7', 1, 133, '#', 206, '8', 228, 148, 'c', 206, 'J', 13, 165, 's', 209, ':', 21, 181, 227, 206, ';', 240, 248, 'D', 212, '<', 244, 212, 'c', 143, 'W', 248, 160, 165, 207, '>', 252, 244, 227, 143, 'L', 'i', 's', 'o', '8', '8', '5', '9', '1', '1', 0, 't', 'i', 's', '6', '2', '0', 0, 0, '(', 160, 'x', 250, ')', 168, 161, 138, ':', '*', 169, 165, 154, 'z', '*', 170, 169, 170, 186, '*', 171, 173, 186, 250, '*', 172, 177, 202, ':', '+', 173, 181, 218, 'z', '+', 174, 185, 234, 186, '+', 175, 189, 250, 250, '+', 176, 193, 10, ';', ',', 177, 197, 26, '{', ',', 178, 201, '*', 187, ',', 179, 205, ':', 251, ',', 180, 209, 'J', ';', '-', 181, 213, 'Z', '{', '-', 0, 0, 0, 0, 0, 182, 217, 'j', 187, '-', 183, 221, 'z', 251, '-', 184, 225, 138, ';', '.', 185, 229, 154, '{', '.', 186, 233, 170, 187, '.', 187, 237, 186, 251, '.', 188, 241, 202, ';', '/', 189, 0, 0, 0, 0, 0, 'i', 's', 'o', '8', '8', '5', '9', '1', '3', 0, 0, '(', 160, '\\', ',', 202, '(', 164, '`', 'l', 202, ')', 216, 164, 178, 212, '*', 172, 180, 226, 138, '1', 176, 196, '"', 203, ',', 22, 215, 'b', 203, '-', 248, 228, 194, 212, '.', 188, 244, 226, 139, '9', 4, 169, 4, 144, 'A', 196, 20, 'c', 145, 'D', 12, '%', 227, 22, 'E', ' ', 193, 132, 'R', 'M', 'U', 237, 212, 211, '4', 'C', 'U', 'c', 205, '5', 'g', 229, 244, 212, 'W', 220, 192, '%', 215, '7', 5, 173, 20, 208, 'A', 228, 148, 's', 209, 'D', 13, 165, 243, 'V', 'E', '!', 197, 148, 146, 'M', 'V', 241, 228, 211, '<', 'D', 213, 'c', 207, '=', 'h', 233, 4, 21, 'X', 252, 196, '5', 23, 197, 'i', 's', 'o', '8', '8', '5', '9', '1', '4', 0, 0, '(', 160, 212, 'k', 239, '(', 10, '-', 't', 239, ')', 3, 167, 'R', '0', 190, 9, 183, 226, 'J', '[', 249, 234, 235, 209, 'G', 251, 242, 'k', 'K', 191, 4, 251, 'k', 240, 191, 10, 31, 140, '0', 192, 192, 4, '#', 204, '0', 196, 20, 'c', 204, '1', 200, '$', 163, 204, '2', 204, '4', 227, 204, '3', 'i', 'E', '#', 205, '4', 212, 'T', 'c', 'M', 192, 216, 'd', 163, 205, '6', 220, 't', 179, 214, '7', 224, 132, '#', 206, '8', 228, 148, 'c', 206, '9', 232, 164, 163, 206, ':', 236, 180, 227, 206, ';', 'j', 197, '#', 207, '<', 244, 212, 'c', 143, 192, 248, 228, 163, 207, '>', 252, 244, 195, 214, '?', 'i', 's', 'o', '8', '8', '5', '9', '1', '5', 0, 'l', 'a', 't', 'i', 'n', '9', 0, 0, ')', '$', 151, 'R', 213, ')', 'V', 165, 162, 202, '*', 172, 180, 226, 202, '+', 176, 196, '"', 203, ',', 'r', 213, 'b', 203, '-', 's', 229, 162, 203, '.', 'G', '!', 213, 214, '/', 192, 4, '#', 204, '0', 196, 20, 'c', 204, '1', 200, '$', 163, 204, '2', 204, '4', 227, 204, '3', 208, 'D', '#', 205, '4', 212, 'T', 'c', 205, '5', 216, 'd', 163, 205, '6', 220, 't', 227, 205, '7', 224, 132, '#', 206, '8', 228, 148, 'c', 206, '9', 232, 164, 163, 206, ':', 236, 180, 227, 206, ';', 240, 196, '#', 207, '<', 244, 212, 'c', 207, '=', 248, 228, 163, 207, '>', 252, 244, 227, 207, '?', 'i', 's', 'o', '8', '8', '5', '9', '1', '6', 0, 0, '(', 160, 16, 'T', 'P', 'N', '$', 'c', '\\', 213, ')', 'V', 165, 146, 215, '*', 'n', 181, 242, 22, '\\', 176, 196, 194, 144, 'N', 'r', ']', 'l', 203, '-', 's', '5', 164, 215, '.', 'G', '!', 213, 'V', '\\', 192, 4, '#', 140, '@', 196, 24, 'd', 204, '1', 200, '$', 163, 204, '2', 204, '4', 227, 204, '3', 16, 237, '$', 205, '4', 212, 20, 'e', 205, 'S', 'e', 'e', 163, 205, '6', 220, 'X', 180, 215, '7', 224, 132, '#', 206, '@', 228, 28, 'd', 206, '9', 232, 164, 163, 206, ':', 236, 180, 227, 206, ';', 17, 241, '$', 207, '<', 244, 24, 'e', 15, 'T', 'f', 229, 163, 207, '>', 252, '\\', 196, 215, '?', 'c', 'p', '1', '2', '5', '0', 0, 'w', 'i', 'n', 'd', 'o', 'w', 's', '1', '2', '5', '0', 0, 0, ' ', '$', 3, 'P', '1', 0, 24, 's', 156, 177, 198, 0, 't', '\\', 149, 199, 'O', 'e', '%', 151, '[', 0, 'L', 'L', 177, 197, 23, 'o', 252, '0', 196, 0, 156, 'l', 213, 199, 'P', 'i', '5', 215, '[', 160, 248, 245, 'W', 'N', 164, 16, 'd', 202, ')', 168, 164, '2', 213, '*', 172, 180, 226, 10, '\\', 176, 196, 18, 152, 'N', 180, 212, 'b', 203, '-', 184, 20, 'D', 213, '.', '7', 13, 134, 'S', '\\', 'I', 5, '#', 140, '@', 196, 204, 'd', 208, '1', 12, '%', 'c', 209, '2', 24, '5', 227, 140, 'C', 16, 237, 244, 211, '4', 212, 20, 'e', 205, '5', 'M', 141, 165, 'M', 'Y', 220, 't', 's', 213, '7', 'J', 133, '#', 206, '@', 228, 208, 't', 208, '9', 13, 165, 's', 209, ':', 25, 181, 227, 206, 'C', 17, 241, 4, 212, '<', 244, 24, 'e', 207, '=', 'N', 145, 165, 143, 'Y', 252, 244, 131, 21, '`', 'c', 'p', '1', '2', '5', '1', 0, 'w', 'i', 'n', 'd', 'o', 'w', 's', '1', '2', '5', '1', 0, 0, ' ', 210, 'M', 'W', 'q', 136, 24, 's', 156, 177, 198, '$', 'w', 156, 157, 199, 218, 'q', 183, 157, 'w', ' ', 'N', 'L', 177, 197, 23, 'o', 252, '0', 196, 0, 156, '|', 226, 199, '(', 170, 152, '"', 139, 160, 't', 183, '"', 'v', 164, 180, 'h', 202, ')', 209, 165, 'B', 221, '*', 172, 180, 226, 202, 'u', 176, 196, 'b', 29, 137, '.', 214, 'b', 203, '-', 31, 154, ',', 226, '.', '&', 'V', '7', 'b', 137, 223, 129, 23, 158, 'x', 227, 145, 'W', 158, 'y', 231, 161, 151, 158, 'z', 235, 177, 215, 158, '{', 239, 193, 23, 159, '|', 243, 209, 'W', 159, '}', 247, 225, 151, 159, '~', 251, 241, 215, 159, 127, 255, 1, 24, 160, 128, 3, 18, 'X', 160, 129, 7, '"', 152, 160, 130, 11, '2', 216, 160, 131, 15, 'B', 24, 161, 132, 19, 'R', 'X', 161, 133, 23, 'b', 152, 161, 134, 27, 'r', 216, 161, 135, 'c', 'p', '1', '2', '5', '2', 0, 'w', 'i', 'n', 'd', 'o', 'w', 's', '1', '2', '5', '2', 0, 0, ' ', '$', 3, 'P', '1', ']', 24, 's', 156, 177, 198, '}', 'u', '\\', 149, 199, 'G', 1, ' ', 23, 0, 0, 'L', 'L', 177, 197, 23, 'o', 252, '0', 196, 130, 157, 'l', 213, 199, 'H', 1, '0', 'W', '[', 160, 132, '"', 202, '(', 164, 148, 'b', 202, ')', 168, 164, 162, 202, '*', 172, 180, 226, 202, '+', 176, 196, '"', 203, ',', 180, 212, 'b', 203, '-', 184, 228, 162, 203, '.', 188, 244, 226, 203, '/', 192, 4, '#', 204, '0', 196, 20, 'c', 204, '1', 200, '$', 163, 204, '2', 204, '4', 227, 204, '3', 208, 'D', '#', 205, '4', 212, 'T', 'c', 205, '5', 216, 'd', 163, 205, '6', 220, 't', 227, 205, '7', 224, 132, '#', 206, '8', 228, 148, 'c', 206, '9', 232, 164, 163, 206, ':', 236, 180, 227, 206, ';', 240, 196, '#', 207, '<', 244, 212, 'c', 207, '=', 248, 228, 163, 207, '>', 252, 244, 227, 207, '?', 'c', 'p', '1', '2', '5', '3', 0, 'w', 'i', 'n', 'd', 'o', 'w', 's', '1', '2', '5', '3', 0, 0, ' ', '$', 3, 'P', '1', ']', 24, 's', 156, 177, 198, 0, 't', 12, 128, 199, 0, 0, 0, 0, 0, 0, 'L', 'L', 177, 197, 23, 'o', 252, '0', 196, 0, 156, 12, 192, 199, 0, 0, 0, 0, 0, 160, ',', 198, 216, '(', 164, 148, 'b', 202, ')', 168, 164, 2, 192, '*', 172, 180, 226, 'J', 196, 176, 196, '"', 203, ',', 138, 213, 'b', 203, '-', 141, '9', 246, 216, '.', 144, 245, 18, 153, 'd', 147, 'Q', 'V', 153, 'e', 151, 'a', 150, 153, 'f', 155, 'q', 214, 153, 'g', 159, 129, 22, 154, 'h', 163, 145, 6, '@', 'i', 166, 157, 134, 'Z', 'j', 170, 173, 198, 'Z', 'k', 174, 189, 6, '[', 'l', 178, 205, 'F', '[', 'm', 182, 221, 134, '[', 'n', 186, 237, 198, '[', 'o', 190, 253, 6, '\\', 'p', 194, 13, 'G', '\\', 'q', 198, 29, 135, '\\', 'r', 202, '-', 199, '\\', 's', 206, '=', 7, 29, 0, 'c', 'p', '1', '2', '5', '4', 0, 'w', 'i', 'n', 'd', 'o', 'w', 's', '1', '2', '5', '4', 0, 0, ' ', '$', 3, 'P', '1', ']', 24, 's', 156, 177, 198, '}', 'u', '\\', 149, 199, 'G', 1, 0, 0, 0, 0, 'L', 'L', 177, 197, 23, 'o', 252, '0', 196, 130, 157, 'l', 213, 199, 'H', 1, 0, '@', '[', 160, 132, '"', 202, '(', 164, 148, 'b', 202, ')', 168, 164, 162, 202, '*', 172, 180, 226, 202, '+', 176, 196, '"', 203, ',', 180, 212, 'b', 203, '-', 184, 228, 162, 203, '.', 188, 244, 226, 203, '/', 192, 4, '#', 204, '0', 196, 20, 'c', 204, '1', 200, '$', 163, 204, '2', 204, '4', 227, 204, '3', 28, 'E', '#', 205, '4', 212, 'T', 'c', 205, '5', 216, 'd', 163, 205, '6', 220, 176, '4', 213, '7', 224, 132, '#', 206, '8', 228, 148, 'c', 206, '9', 232, 164, 163, 206, ':', 236, 180, 227, 206, ';', 29, 197, '#', 207, '<', 244, 212, 'c', 207, '=', 248, 228, 163, 207, '>', 252, 180, 'D', 213, '?', 'c', 'p', '1', '2', '5', '5', 0, 'w', 'i', 'n', 'd', 'o', 'w', 's', '1', '2', '5', '5', 0, 0, ' ', '$', 3, 'P', '1', ']', 24, 's', 156, 177, 198, '}', 'u', 12, 128, 199, 0, 0, 0, 0, 0, 0, 'L', 'L', 177, 197, 23, 'o', 252, '0', 196, 130, 157, 12, 192, 199, 0, 0, 0, 0, 0, 160, 132, '"', 202, '(', '"', 151, 'b', 202, ')', 168, 164, 'r', 205, '*', 172, 180, 226, 202, '+', 176, 196, '"', 203, ',', 180, 212, 'b', 203, '-', 184, 228, 'r', 207, '.', 188, 244, 226, 203, '/', '/', 194, 24, 163, 140, '3', 210, 'X', 163, 141, '7', 226, 8, '@', 142, ':', 238, 200, 'c', 143, '>', 254, 8, 'd', 144, ']', 'z', 249, '%', 152, 'a', 2, 0, 0, 0, 0, 0, 0, 0, 0, 'B', 14, 'I', 'd', 145, 'F', 30, 137, 'd', 146, 'J', '.', 201, 'd', 147, 'N', '>', 9, 'e', 148, 'R', 'N', 'I', 'e', 149, 'V', '^', 137, 'e', 150, 'Z', 'n', 201, '%', 0, 0, '4', 236, '0', 0, 'c', 'p', '1', '2', '5', '6', 0, 'w', 'i', 'n', 'd', 'o', 'w', 's', '1', '2', '5', '6', 0, 0, ' ', '$', 'O', 'Z', '1', ']', 24, 's', 156, 177, 198, '}', 'u', ',', 169, 199, 'G', 'Q', 'z', 'i', 165, 153, 'N', 'L', 177, 197, 23, 'o', 252, '0', 196, 152, 158, 'l', 233, 199, 'H', '-', 204, 176, 166, 160, 136, ')', 202, '(', 164, 148, 'b', 202, ')', 168, 164, 178, 233, '*', 172, 180, 226, 202, '+', 176, 196, '"', 203, ',', 180, 212, 'b', 203, '-', 184, 228, '2', 230, '.', 188, 244, 226, 11, 153, 156, 150, 'i', 230, 153, 'h', 166, 169, 230, 154, 'l', 182, 233, 230, 155, 'p', 198, ')', 231, 156, 't', 214, 'i', 231, 157, 'x', 230, 169, 231, '5', '{', 242, 217, 167, 159, 127, 2, 26, 168, 160, 224, 12, '*', 14, 161, 133, 26, 'z', 232, '9', 232, 164, 163, 206, ':', 136, '&', 234, 206, ';', 138, '.', 202, 'h', 163, 244, '8', 250, 232, '=', 144, 230, 19, 233, '>', 252, '4', 236, 'p', 167, 'c', 'p', '1', '2', '5', '7', 0, 'w', 'i', 'n', 'd', 'o', 'w', 's', '1', '2', '5', '7', 0, 0, ' ', '$', 3, 'P', '1', 0, 24, 's', 156, 177, 198, 0, 't', 12, 128, 199, 0, 160, 226, 23, '.', 0, 'L', 'L', 177, 197, 23, 'o', 252, '0', 196, 0, 156, 12, 192, 199, 0, 188, 18, 24, 0, 160, 0, ' ', 202, '(', 164, 0, '`', 202, ')', 216, 164, 178, 212, '*', 172, 180, 226, 138, '1', 176, 196, '"', 203, ',', 180, 212, 'b', 203, '-', 248, 228, 194, 212, '.', 188, 244, 226, 139, '9', 4, 169, 4, 144, 'A', 196, 20, 'c', 145, 'D', 12, '%', 227, 22, 'E', ' ', 193, 132, 'R', 'M', 'U', 237, 212, 211, '4', 'C', 'U', 'c', 205, '5', 'g', 229, 244, 212, 'W', 220, 192, '%', 215, '7', 5, 173, 20, 208, 'A', 228, 148, 's', 209, 'D', 13, 165, 243, 'V', 'E', '!', 197, 148, 146, 'M', 'V', 241, 228, 211, '<', 'D', 213, 'c', 207, '=', 'h', 233, 4, 21, 'X', 252, 196, '5', 23, '`', 'c', 'p', '1', '2', '5', '8', 0, 'w', 'i', 'n', 'd', 'o', 'w', 's', '1', '2', '5', '8', 0, 0, ' ', '$', 3, 'P', '1', ']', 24, 's', 156, 177, 198, '}', 'u', 12, 128, 199, 'G', 1, 0, 0, 0, 0, 'L', 'L', 177, 197, 23, 'o', 252, '0', 196, 130, 157, 12, 192, 199, 'H', 1, 0, '@', '[', 160, 132, '"', 202, '(', 164, 148, 'b', 202, ')', 168, 164, 162, 202, '*', 172, 180, 226, 202, '+', 176, 196, '"', 203, ',', 180, 212, 'b', 203, '-', 184, 228, 162, 203, '.', 188, 244, 226, 203, '/', 192, 4, '#', 140, '@', 196, 20, 'c', 204, '1', 200, '$', 163, 204, '2', 132, '5', 227, 204, '3', 16, 'E', 's', 216, '4', 212, 212, 'e', 205, '5', 216, 'd', 163, 205, '6', 220, 220, 'e', 216, '7', 224, 132, '#', 206, '@', 228, 148, 'c', 206, '9', 232, 164, 163, 206, ':', 133, 181, 227, 206, ';', 17, 197, 131, 216, '<', 244, 216, 'e', 207, '=', 248, 228, 163, 207, '>', 252, 224, '5', 242, '?', 'k', 'o', 'i', '8', 'r', 0, 0, ' ', '3', 211, '\\', 179, 205, '7', 227, 156, 179, 206, ';', 243, 220, 243, 214, '\\', 'w', 237, 245, 215, '`', 135, '-', 'v', 204, 'c', 163, 156, '2', 203, '.', 191, 12, 138, 204, 176, 200, 'r', 203, '=', '>', 255, 12, 244, 135, 'A', 11, '=', '4', 209, 'E', 27, '}', '4', 210, 'I', '+', 189, '4', 211, 'M', ';', 253, 't', 't', 'P', 'G', '-', 245, 212, 'T', 'W', 'm', 245, 213, 'X', 'g', 173, 'u', '*', 29, 254, 7, '`', 133, 3, 18, '8', 161, 128, 20, 30, 136, '`', 130, 10, '.', 200, '`', 131, 14, 'z', 248, ' ', 132, 17, 'J', 'X', '`', 128, 27, 'j', 'h', 224, 133, 28, 'b', 'h', 'a', 134, 253, '}', 7, '^', '}', 227, 145, '7', 159, 'x', 244, 157, 135, '^', 'z', 234, 173, 199, '^', '{', 238, 249, 247, 30, '|', 241, 201, 'W', '^', 'x', 251, 233, 'g', 222, '}', 252, 225, 'g', '_', '~', 'k', 'o', 'i', '8', 'u', 0, 0, ' ', '3', 211, '\\', 179, 205, '7', 227, 156, 179, 206, ';', 243, 220, 243, 214, '\\', 'w', 237, 245, 215, '`', 135, '-', 'v', 204, 'c', 163, 156, '2', 203, '.', 191, 12, 138, 204, 176, 200, 'r', 203, '=', '>', 255, 12, 244, 135, '"', 10, 'M', 'b', 137, 'E', 27, '}', '4', 210, 'I', 187, 184, '4', 211, 'M', ';', 253, 't', 't', 212, 'E', 'm', 221, 'u', 'T', 'W', 'm', 245, 213, 'X', 183, 168, 'u', '*', 29, 254, 7, '`', 133, 3, 18, '8', 161, 128, 20, 30, 136, '`', 130, 10, '.', 200, '`', 131, 14, 'z', 248, ' ', 132, 17, 'J', 'X', '`', 128, 27, 'j', 'h', 224, 133, 28, 'b', 'h', 'a', 134, 253, '}', 7, '^', '}', 227, 145, '7', 159, 'x', 244, 157, 135, '^', 'z', 234, 173, 199, '^', '{', 238, 249, 247, 30, '|', 241, 201, 'W', '^', 'x', 251, 233, 'g', 222, '}', 252, 225, 'g', '_', '~', 'c', 'p', '4', '3', '7', 0, 0, ' ', 199, 240, 147, 142, '8', 228, 128, 'S', 206, '9', 234, 172, 131, 206, ';', 238, 176, 'C', 'L', '1', 201, 152, 'c', 12, '=', 246, 200, 179, 'O', '>', 255, 'X', 195, 141, '(', 163, 148, 18, '2', ']', 225, 180, '3', 143, '>', 241, 'D', 163, 138, '.', 191, 192, 204, 'J', '/', 188, 132, 178, 202, '.', '`', 135, '-', '6', 205, ':', '?', 13, '5', 209, 'C', 'G', 253, 's', 209, 'K', '+', 157, 180, 205, '7', 243, 188, 's', 206, '3', 247, 204, 't', 211, 'H', 11, '}', '5', 213, 'N', 251, 172, 'u', 213, 'V', 'K', '=', 245, 209, 'F', 3, 29, 't', 214, 'X', 227, '\\', 's', 215, '\\', '{', 253, 245, 214, 179, '}', 'c', 153, 'p', 165, 21, 'W', 139, 'q', 168, 'm', 182, 154, 'm', '*', '#', 'w', 219, 202, '-', 199, 242, 178, 203, '1', 203, '|', 15, 203, 176, 160, '|', 'K', 202, ' ', 203, '2', '6', '(', 'c', 'p', '8', '5', '0', 0, 0, ' ', 199, 240, 147, 142, '8', 228, 128, 'S', 206, '9', 234, 172, 131, 206, ';', 238, 176, 'C', 'L', '1', 201, 152, 'c', 12, '=', 246, 200, 179, 'O', '>', 255, 'X', 195, 13, '>', 163, '`', 's', 13, ']', 225, 180, '3', 143, '>', 241, 'D', 163, 138, '.', 191, 184, 194, 'J', '/', 188, 132, 178, 202, '.', '`', 135, '-', '6', 205, ':', 7, '#', 12, '0', 169, 'D', 253, 's', 209, 'K', 139, 'R', 138, 205, '7', 243, 188, 's', 206, '3', 247, '<', 206, '0', 'H', 11, '}', '5', 213, 'N', 251, 172, '5', ')', 240, '@', 163, 204, '2', 200, 180, 212, 140, '3', 207, 224, '\\', 's', 215, '\\', 155, 194, 204, 214, 211, '|', 'C', 141, '4', 245, 'T', 'S', 139, '?', 222, 'h', 179, 'M', '6', 253, 't', 243, 10, '-', 173, 196, '"', 177, '/', 182, 156, 'r', 15, '.', 176, 160, 'r', 'K', '.', 179, 200, '2', '6', '(', 'c', 'p', '8', '6', '6', 0, 0, ' ', 223, 129, 23, 158, 'x', 227, 145, 'W', 158, 'y', 231, 161, 151, 158, 'z', 235, 177, 215, 158, '{', 239, 193, 23, 159, '|', 243, 209, 'W', 159, '}', 247, 225, 151, 159, '~', 251, 241, 215, 159, 127, 255, 1, 24, 160, 128, 3, 18, 'X', 160, 129, 7, '"', 152, 160, 130, 11, '2', 216, 160, 131, '`', 135, '-', '6', 205, ':', '?', 13, '5', 209, 'C', 'G', 253, 's', 209, 'K', '+', 157, 180, 205, '7', 243, 188, 's', 206, '3', 247, 204, 't', 211, 'H', 11, '}', '5', 213, 'N', 251, 172, 'u', 213, 'V', 'K', '=', 245, 209, 'F', 3, 29, 't', 214, 'X', 227, '\\', 's', 215, '\\', '{', 253, 245, 214, 15, 'B', 24, 161, 132, 19, 'R', 'X', 161, 133, 23, 'b', 152, 161, 134, 27, 'r', 216, 161, 135, 209, '}', 'H', 157, 136, 215, 149, 216, 221, 138, 176, 160, '|', 'K', 202, '&', 147, '2', '6', '(', 'i', 'b', 'm', '1', '0', '4', '7', 0, 'c', 'p', '1', '0', '4', '7', 0, 0, 1, 156, '$', '`', 200, 31, 151, '4', 226, 200, 2, 12, '4', 224, 192, 3, 16, 'D', ' ', 193, 4, 157, 20, 130, 192, '!', 24, 'd', ' ', 201, '#', 28, 't', 224, 193, 7, 128, 4, '"', 200, ' ', 132, '(', 'p', 193, 6, 136, '$', 162, 200, '"', 140, 20, '`', 192, 1, 144, 'D', 'b', 193, '$', 148, 'T', 'b', 9, 1, 152, 'd', 162, 201, '&', 20, 'T', 224, 137, 6, ' ', 128, '"', 14, '9', 224, 132, '3', 'N', '9', 231, 196, '#', 138, 11, '<', 160, 176, 2, 31, '&', 164, 163, 206, ':', 232, 180, 227, 206, ';', 236, '|', 19, 2, 9, '*', 164, 176, 131, 23, '-', 188, ' ', 12, '1', 192, 4, '3', 'L', '1', 199, 'D', 'c', 10, 11, '%', '|', 225, 195, 15, 248, '$', 163, 204, '2', 200, '4', 227, 204, '3', 204, 128, 161, 195, 8, '@', 156, 208, 131, 8, 216, 132, '!', 198, 24, 'd', 148, 'a', 198, 25, 'h', 164, 177, 202, '.', 240, 244, 227, 'O', ',', 176, 168, 177, 6, 27, 'm', 184, 241, 6, 28, 'q', 200, 161, 138, '.', 230, 224, 'b', 12, ')', 181, 248, '1', 7, 29, 'u', 216, 'q', 7, 30, 'y', 232, 17, 202, '/', 208, 'l', 225, 141, '+', 172, 140, 'R', 202, '-', 169, 156, 'b', 11, '/', 189, 248, 210, 13, '*', 175, 't', 'A', 203, '5', '{', 4, '!', 196, 16, 'D', 20, 'a', 196, 17, 'H', '$', 209, 10, '=', 246, 200, '3', 'O', '=', '}', '(', 177, 4, 19, 'M', '8', 241, 4, 20, 'Q', 'H', 145, 203, '>', 252, 228, 163, 207, '?', '\\', 220, '3', 5, 21, 'U', 'X', 'q', 5, 22, 'Y', 'h', '!', 11, '5', 214, 'H', '3', 'M', '5', '0', 196, ' ', 195, 12, '4', 212, '`', 195, 13, '8', 228, '0', 203, '6', 220, 'd', 163, 205, '\''} + +// C documentation +// +// /* Table of characters that appear in legacy 8-bit codepages, +// * limited to 1024 slots (10 bit indices). The first 256 entries +// * are elided since those characters are obviously all included. */ +var _legacy_chars = [612]uint16{ + 0: uint16(256), + 1: uint16(257), + 2: uint16(258), + 3: uint16(259), + 4: uint16(260), + 5: uint16(261), + 6: uint16(262), + 7: uint16(263), + 8: uint16(264), + 9: uint16(265), + 10: uint16(266), + 11: uint16(267), + 12: uint16(268), + 13: uint16(269), + 14: uint16(270), + 15: uint16(271), + 16: uint16(272), + 17: uint16(273), + 18: uint16(274), + 19: uint16(275), + 20: uint16(278), + 21: uint16(279), + 22: uint16(280), + 23: uint16(281), + 24: uint16(282), + 25: uint16(283), + 26: uint16(284), + 27: uint16(285), + 28: uint16(286), + 29: uint16(287), + 30: uint16(288), + 31: uint16(289), + 32: uint16(290), + 33: uint16(291), + 34: uint16(292), + 35: uint16(293), + 36: uint16(294), + 37: uint16(295), + 38: uint16(296), + 39: uint16(297), + 40: uint16(298), + 41: uint16(299), + 42: uint16(302), + 43: uint16(303), + 44: uint16(304), + 45: uint16(305), + 46: uint16(308), + 47: uint16(309), + 48: uint16(310), + 49: uint16(311), + 50: uint16(312), + 51: uint16(313), + 52: uint16(314), + 53: uint16(315), + 54: uint16(316), + 55: uint16(317), + 56: uint16(318), + 57: uint16(321), + 58: uint16(322), + 59: uint16(323), + 60: uint16(324), + 61: uint16(325), + 62: uint16(326), + 63: uint16(327), + 64: uint16(328), + 65: uint16(330), + 66: uint16(331), + 67: uint16(332), + 68: uint16(333), + 69: uint16(336), + 70: uint16(337), + 71: uint16(338), + 72: uint16(339), + 73: uint16(340), + 74: uint16(341), + 75: uint16(342), + 76: uint16(343), + 77: uint16(344), + 78: uint16(345), + 79: uint16(346), + 80: uint16(347), + 81: uint16(348), + 82: uint16(349), + 83: uint16(350), + 84: uint16(351), + 85: uint16(352), + 86: uint16(353), + 87: uint16(354), + 88: uint16(355), + 89: uint16(356), + 90: uint16(357), + 91: uint16(358), + 92: uint16(359), + 93: uint16(360), + 94: uint16(361), + 95: uint16(362), + 96: uint16(363), + 97: uint16(364), + 98: uint16(365), + 99: uint16(366), + 100: uint16(367), + 101: uint16(368), + 102: uint16(369), + 103: uint16(370), + 104: uint16(371), + 105: uint16(372), + 106: uint16(373), + 107: uint16(374), + 108: uint16(375), + 109: uint16(376), + 110: uint16(377), + 111: uint16(378), + 112: uint16(379), + 113: uint16(380), + 114: uint16(381), + 115: uint16(382), + 116: uint16(402), + 117: uint16(416), + 118: uint16(417), + 119: uint16(431), + 120: uint16(432), + 121: uint16(536), + 122: uint16(537), + 123: uint16(538), + 124: uint16(539), + 125: uint16(710), + 126: uint16(711), + 127: uint16(728), + 128: uint16(729), + 129: uint16(731), + 130: uint16(732), + 131: uint16(733), + 132: uint16(768), + 133: uint16(769), + 134: uint16(771), + 135: uint16(777), + 136: uint16(803), + 137: uint16(890), + 138: uint16(900), + 139: uint16(901), + 140: uint16(902), + 141: uint16(904), + 142: uint16(905), + 143: uint16(906), + 144: uint16(908), + 145: uint16(910), + 146: uint16(911), + 147: uint16(912), + 148: uint16(913), + 149: uint16(914), + 150: uint16(915), + 151: uint16(916), + 152: uint16(917), + 153: uint16(918), + 154: uint16(919), + 155: uint16(920), + 156: uint16(921), + 157: uint16(922), + 158: uint16(923), + 159: uint16(924), + 160: uint16(925), + 161: uint16(926), + 162: uint16(927), + 163: uint16(928), + 164: uint16(929), + 165: uint16(931), + 166: uint16(932), + 167: uint16(933), + 168: uint16(934), + 169: uint16(935), + 170: uint16(936), + 171: uint16(937), + 172: uint16(938), + 173: uint16(939), + 174: uint16(940), + 175: uint16(941), + 176: uint16(942), + 177: uint16(943), + 178: uint16(944), + 179: uint16(945), + 180: uint16(946), + 181: uint16(947), + 182: uint16(948), + 183: uint16(949), + 184: uint16(950), + 185: uint16(951), + 186: uint16(952), + 187: uint16(953), + 188: uint16(954), + 189: uint16(955), + 190: uint16(956), + 191: uint16(957), + 192: uint16(958), + 193: uint16(959), + 194: uint16(960), + 195: uint16(961), + 196: uint16(962), + 197: uint16(963), + 198: uint16(964), + 199: uint16(965), + 200: uint16(966), + 201: uint16(967), + 202: uint16(968), + 203: uint16(969), + 204: uint16(970), + 205: uint16(971), + 206: uint16(972), + 207: uint16(973), + 208: uint16(974), + 209: uint16(1025), + 210: uint16(1026), + 211: uint16(1027), + 212: uint16(1028), + 213: uint16(1029), + 214: uint16(1030), + 215: uint16(1031), + 216: uint16(1032), + 217: uint16(1033), + 218: uint16(1034), + 219: uint16(1035), + 220: uint16(1036), + 221: uint16(1038), + 222: uint16(1039), + 223: uint16(1040), + 224: uint16(1041), + 225: uint16(1042), + 226: uint16(1043), + 227: uint16(1044), + 228: uint16(1045), + 229: uint16(1046), + 230: uint16(1047), + 231: uint16(1048), + 232: uint16(1049), + 233: uint16(1050), + 234: uint16(1051), + 235: uint16(1052), + 236: uint16(1053), + 237: uint16(1054), + 238: uint16(1055), + 239: uint16(1056), + 240: uint16(1057), + 241: uint16(1058), + 242: uint16(1059), + 243: uint16(1060), + 244: uint16(1061), + 245: uint16(1062), + 246: uint16(1063), + 247: uint16(1064), + 248: uint16(1065), + 249: uint16(1066), + 250: uint16(1067), + 251: uint16(1068), + 252: uint16(1069), + 253: uint16(1070), + 254: uint16(1071), + 255: uint16(1072), + 256: uint16(1073), + 257: uint16(1074), + 258: uint16(1075), + 259: uint16(1076), + 260: uint16(1077), + 261: uint16(1078), + 262: uint16(1079), + 263: uint16(1080), + 264: uint16(1081), + 265: uint16(1082), + 266: uint16(1083), + 267: uint16(1084), + 268: uint16(1085), + 269: uint16(1086), + 270: uint16(1087), + 271: uint16(1088), + 272: uint16(1089), + 273: uint16(1090), + 274: uint16(1091), + 275: uint16(1092), + 276: uint16(1093), + 277: uint16(1094), + 278: uint16(1095), + 279: uint16(1096), + 280: uint16(1097), + 281: uint16(1098), + 282: uint16(1099), + 283: uint16(1100), + 284: uint16(1101), + 285: uint16(1102), + 286: uint16(1103), + 287: uint16(1105), + 288: uint16(1106), + 289: uint16(1107), + 290: uint16(1108), + 291: uint16(1109), + 292: uint16(1110), + 293: uint16(1111), + 294: uint16(1112), + 295: uint16(1113), + 296: uint16(1114), + 297: uint16(1115), + 298: uint16(1116), + 299: uint16(1118), + 300: uint16(1119), + 301: uint16(1168), + 302: uint16(1169), + 303: uint16(1456), + 304: uint16(1457), + 305: uint16(1458), + 306: uint16(1459), + 307: uint16(1460), + 308: uint16(1461), + 309: uint16(1462), + 310: uint16(1463), + 311: uint16(1464), + 312: uint16(1465), + 313: uint16(1467), + 314: uint16(1468), + 315: uint16(1469), + 316: uint16(1470), + 317: uint16(1471), + 318: uint16(1472), + 319: uint16(1473), + 320: uint16(1474), + 321: uint16(1475), + 322: uint16(1488), + 323: uint16(1489), + 324: uint16(1490), + 325: uint16(1491), + 326: uint16(1492), + 327: uint16(1493), + 328: uint16(1494), + 329: uint16(1495), + 330: uint16(1496), + 331: uint16(1497), + 332: uint16(1498), + 333: uint16(1499), + 334: uint16(1500), + 335: uint16(1501), + 336: uint16(1502), + 337: uint16(1503), + 338: uint16(1504), + 339: uint16(1505), + 340: uint16(1506), + 341: uint16(1507), + 342: uint16(1508), + 343: uint16(1509), + 344: uint16(1510), + 345: uint16(1511), + 346: uint16(1512), + 347: uint16(1513), + 348: uint16(1514), + 349: uint16(1520), + 350: uint16(1521), + 351: uint16(1522), + 352: uint16(1523), + 353: uint16(1524), + 354: uint16(1548), + 355: uint16(1563), + 356: uint16(1567), + 357: uint16(1569), + 358: uint16(1570), + 359: uint16(1571), + 360: uint16(1572), + 361: uint16(1573), + 362: uint16(1574), + 363: uint16(1575), + 364: uint16(1576), + 365: uint16(1577), + 366: uint16(1578), + 367: uint16(1579), + 368: uint16(1580), + 369: uint16(1581), + 370: uint16(1582), + 371: uint16(1583), + 372: uint16(1584), + 373: uint16(1585), + 374: uint16(1586), + 375: uint16(1587), + 376: uint16(1588), + 377: uint16(1589), + 378: uint16(1590), + 379: uint16(1591), + 380: uint16(1592), + 381: uint16(1593), + 382: uint16(1594), + 383: uint16(1600), + 384: uint16(1601), + 385: uint16(1602), + 386: uint16(1603), + 387: uint16(1604), + 388: uint16(1605), + 389: uint16(1606), + 390: uint16(1607), + 391: uint16(1608), + 392: uint16(1609), + 393: uint16(1610), + 394: uint16(1611), + 395: uint16(1612), + 396: uint16(1613), + 397: uint16(1614), + 398: uint16(1615), + 399: uint16(1616), + 400: uint16(1617), + 401: uint16(1618), + 402: uint16(1657), + 403: uint16(1662), + 404: uint16(1670), + 405: uint16(1672), + 406: uint16(1681), + 407: uint16(1688), + 408: uint16(1705), + 409: uint16(1711), + 410: uint16(1722), + 411: uint16(1726), + 412: uint16(1729), + 413: uint16(1746), + 414: uint16(3585), + 415: uint16(3586), + 416: uint16(3587), + 417: uint16(3588), + 418: uint16(3589), + 419: uint16(3590), + 420: uint16(3591), + 421: uint16(3592), + 422: uint16(3593), + 423: uint16(3594), + 424: uint16(3595), + 425: uint16(3596), + 426: uint16(3597), + 427: uint16(3598), + 428: uint16(3599), + 429: uint16(3600), + 430: uint16(3601), + 431: uint16(3602), + 432: uint16(3603), + 433: uint16(3604), + 434: uint16(3605), + 435: uint16(3606), + 436: uint16(3607), + 437: uint16(3608), + 438: uint16(3609), + 439: uint16(3610), + 440: uint16(3611), + 441: uint16(3612), + 442: uint16(3613), + 443: uint16(3614), + 444: uint16(3615), + 445: uint16(3616), + 446: uint16(3617), + 447: uint16(3618), + 448: uint16(3619), + 449: uint16(3620), + 450: uint16(3621), + 451: uint16(3622), + 452: uint16(3623), + 453: uint16(3624), + 454: uint16(3625), + 455: uint16(3626), + 456: uint16(3627), + 457: uint16(3628), + 458: uint16(3629), + 459: uint16(3630), + 460: uint16(3631), + 461: uint16(3632), + 462: uint16(3633), + 463: uint16(3634), + 464: uint16(3635), + 465: uint16(3636), + 466: uint16(3637), + 467: uint16(3638), + 468: uint16(3639), + 469: uint16(3640), + 470: uint16(3641), + 471: uint16(3642), + 472: uint16(3647), + 473: uint16(3648), + 474: uint16(3649), + 475: uint16(3650), + 476: uint16(3651), + 477: uint16(3652), + 478: uint16(3653), + 479: uint16(3654), + 480: uint16(3655), + 481: uint16(3656), + 482: uint16(3657), + 483: uint16(3658), + 484: uint16(3659), + 485: uint16(3660), + 486: uint16(3661), + 487: uint16(3662), + 488: uint16(3663), + 489: uint16(3664), + 490: uint16(3665), + 491: uint16(3666), + 492: uint16(3667), + 493: uint16(3668), + 494: uint16(3669), + 495: uint16(3670), + 496: uint16(3671), + 497: uint16(3672), + 498: uint16(3673), + 499: uint16(3674), + 500: uint16(3675), + 501: uint16(7682), + 502: uint16(7683), + 503: uint16(7690), + 504: uint16(7691), + 505: uint16(7710), + 506: uint16(7711), + 507: uint16(7744), + 508: uint16(7745), + 509: uint16(7766), + 510: uint16(7767), + 511: uint16(7776), + 512: uint16(7777), + 513: uint16(7786), + 514: uint16(7787), + 515: uint16(7808), + 516: uint16(7809), + 517: uint16(7810), + 518: uint16(7811), + 519: uint16(7812), + 520: uint16(7813), + 521: uint16(7922), + 522: uint16(7923), + 523: uint16(8204), + 524: uint16(8205), + 525: uint16(8206), + 526: uint16(8207), + 527: uint16(8211), + 528: uint16(8212), + 529: uint16(8213), + 530: uint16(8215), + 531: uint16(8216), + 532: uint16(8217), + 533: uint16(8218), + 534: uint16(8220), + 535: uint16(8221), + 536: uint16(8222), + 537: uint16(8224), + 538: uint16(8225), + 539: uint16(8226), + 540: uint16(8230), + 541: uint16(8240), + 542: uint16(8249), + 543: uint16(8250), + 544: uint16(8319), + 545: uint16(8359), + 546: uint16(8362), + 547: uint16(8363), + 548: uint16(8364), + 549: uint16(8367), + 550: uint16(8470), + 551: uint16(8482), + 552: uint16(8729), + 553: uint16(8730), + 554: uint16(8734), + 555: uint16(8745), + 556: uint16(8776), + 557: uint16(8801), + 558: uint16(8804), + 559: uint16(8805), + 560: uint16(8976), + 561: uint16(8992), + 562: uint16(8993), + 563: uint16(9472), + 564: uint16(9474), + 565: uint16(9484), + 566: uint16(9488), + 567: uint16(9492), + 568: uint16(9496), + 569: uint16(9500), + 570: uint16(9508), + 571: uint16(9516), + 572: uint16(9524), + 573: uint16(9532), + 574: uint16(9552), + 575: uint16(9553), + 576: uint16(9554), + 577: uint16(9555), + 578: uint16(9556), + 579: uint16(9557), + 580: uint16(9558), + 581: uint16(9559), + 582: uint16(9560), + 583: uint16(9561), + 584: uint16(9562), + 585: uint16(9563), + 586: uint16(9564), + 587: uint16(9565), + 588: uint16(9566), + 589: uint16(9567), + 590: uint16(9568), + 591: uint16(9569), + 592: uint16(9570), + 593: uint16(9571), + 594: uint16(9572), + 595: uint16(9573), + 596: uint16(9574), + 597: uint16(9575), + 598: uint16(9576), + 599: uint16(9577), + 600: uint16(9578), + 601: uint16(9579), + 602: uint16(9580), + 603: uint16(9600), + 604: uint16(9604), + 605: uint16(9608), + 606: uint16(9612), + 607: uint16(9616), + 608: uint16(9617), + 609: uint16(9618), + 610: uint16(9619), + 611: uint16(9632), +} + +var _jis0208 = [84][94]uint16{ + 0: { + 0: uint16(12288), + 1: uint16(12289), + 2: uint16(12290), + 3: uint16(65292), + 4: uint16(65294), + 5: uint16(12539), + 6: uint16(65306), + 7: uint16(65307), + 8: uint16(65311), + 9: uint16(65281), + 10: uint16(12443), + 11: uint16(12444), + 12: uint16(180), + 13: uint16(65344), + 14: uint16(168), + 15: uint16(65342), + 16: uint16(65507), + 17: uint16(65343), + 18: uint16(12541), + 19: uint16(12542), + 20: uint16(12445), + 21: uint16(12446), + 22: uint16(12291), + 23: uint16(20189), + 24: uint16(12293), + 25: uint16(12294), + 26: uint16(12295), + 27: uint16(12540), + 28: uint16(8213), + 29: uint16(8208), + 30: uint16(65295), + 31: uint16(92), + 32: uint16(12316), + 33: uint16(8214), + 34: uint16(65372), + 35: uint16(8230), + 36: uint16(8229), + 37: uint16(8216), + 38: uint16(8217), + 39: uint16(8220), + 40: uint16(8221), + 41: uint16(65288), + 42: uint16(65289), + 43: uint16(12308), + 44: uint16(12309), + 45: uint16(65339), + 46: uint16(65341), + 47: uint16(65371), + 48: uint16(65373), + 49: uint16(12296), + 50: uint16(12297), + 51: uint16(12298), + 52: uint16(12299), + 53: uint16(12300), + 54: uint16(12301), + 55: uint16(12302), + 56: uint16(12303), + 57: uint16(12304), + 58: uint16(12305), + 59: uint16(65291), + 60: uint16(8722), + 61: uint16(177), + 62: uint16(215), + 63: uint16(247), + 64: uint16(65309), + 65: uint16(8800), + 66: uint16(65308), + 67: uint16(65310), + 68: uint16(8806), + 69: uint16(8807), + 70: uint16(8734), + 71: uint16(8756), + 72: uint16(9794), + 73: uint16(9792), + 74: uint16(176), + 75: uint16(8242), + 76: uint16(8243), + 77: uint16(8451), + 78: uint16(65509), + 79: uint16(65284), + 80: uint16(162), + 81: uint16(163), + 82: uint16(65285), + 83: uint16(65283), + 84: uint16(65286), + 85: uint16(65290), + 86: uint16(65312), + 87: uint16(167), + 88: uint16(9734), + 89: uint16(9733), + 90: uint16(9675), + 91: uint16(9679), + 92: uint16(9678), + 93: uint16(9671), + }, + 1: { + 0: uint16(9670), + 1: uint16(9633), + 2: uint16(9632), + 3: uint16(9651), + 4: uint16(9650), + 5: uint16(9661), + 6: uint16(9660), + 7: uint16(8251), + 8: uint16(12306), + 9: uint16(8594), + 10: uint16(8592), + 11: uint16(8593), + 12: uint16(8595), + 13: uint16(12307), + 25: uint16(8712), + 26: uint16(8715), + 27: uint16(8838), + 28: uint16(8839), + 29: uint16(8834), + 30: uint16(8835), + 31: uint16(8746), + 32: uint16(8745), + 41: uint16(8743), + 42: uint16(8744), + 43: uint16(172), + 44: uint16(8658), + 45: uint16(8660), + 46: uint16(8704), + 47: uint16(8707), + 59: uint16(8736), + 60: uint16(8869), + 61: uint16(8978), + 62: uint16(8706), + 63: uint16(8711), + 64: uint16(8801), + 65: uint16(8786), + 66: uint16(8810), + 67: uint16(8811), + 68: uint16(8730), + 69: uint16(8765), + 70: uint16(8733), + 71: uint16(8757), + 72: uint16(8747), + 73: uint16(8748), + 81: uint16(8491), + 82: uint16(8240), + 83: uint16(9839), + 84: uint16(9837), + 85: uint16(9834), + 86: uint16(8224), + 87: uint16(8225), + 88: uint16(182), + 93: uint16(9711), + }, + 2: { + 15: uint16(65296), + 16: uint16(65297), + 17: uint16(65298), + 18: uint16(65299), + 19: uint16(65300), + 20: uint16(65301), + 21: uint16(65302), + 22: uint16(65303), + 23: uint16(65304), + 24: uint16(65305), + 32: uint16(65313), + 33: uint16(65314), + 34: uint16(65315), + 35: uint16(65316), + 36: uint16(65317), + 37: uint16(65318), + 38: uint16(65319), + 39: uint16(65320), + 40: uint16(65321), + 41: uint16(65322), + 42: uint16(65323), + 43: uint16(65324), + 44: uint16(65325), + 45: uint16(65326), + 46: uint16(65327), + 47: uint16(65328), + 48: uint16(65329), + 49: uint16(65330), + 50: uint16(65331), + 51: uint16(65332), + 52: uint16(65333), + 53: uint16(65334), + 54: uint16(65335), + 55: uint16(65336), + 56: uint16(65337), + 57: uint16(65338), + 64: uint16(65345), + 65: uint16(65346), + 66: uint16(65347), + 67: uint16(65348), + 68: uint16(65349), + 69: uint16(65350), + 70: uint16(65351), + 71: uint16(65352), + 72: uint16(65353), + 73: uint16(65354), + 74: uint16(65355), + 75: uint16(65356), + 76: uint16(65357), + 77: uint16(65358), + 78: uint16(65359), + 79: uint16(65360), + 80: uint16(65361), + 81: uint16(65362), + 82: uint16(65363), + 83: uint16(65364), + 84: uint16(65365), + 85: uint16(65366), + 86: uint16(65367), + 87: uint16(65368), + 88: uint16(65369), + 89: uint16(65370), + }, + 3: { + 0: uint16(12353), + 1: uint16(12354), + 2: uint16(12355), + 3: uint16(12356), + 4: uint16(12357), + 5: uint16(12358), + 6: uint16(12359), + 7: uint16(12360), + 8: uint16(12361), + 9: uint16(12362), + 10: uint16(12363), + 11: uint16(12364), + 12: uint16(12365), + 13: uint16(12366), + 14: uint16(12367), + 15: uint16(12368), + 16: uint16(12369), + 17: uint16(12370), + 18: uint16(12371), + 19: uint16(12372), + 20: uint16(12373), + 21: uint16(12374), + 22: uint16(12375), + 23: uint16(12376), + 24: uint16(12377), + 25: uint16(12378), + 26: uint16(12379), + 27: uint16(12380), + 28: uint16(12381), + 29: uint16(12382), + 30: uint16(12383), + 31: uint16(12384), + 32: uint16(12385), + 33: uint16(12386), + 34: uint16(12387), + 35: uint16(12388), + 36: uint16(12389), + 37: uint16(12390), + 38: uint16(12391), + 39: uint16(12392), + 40: uint16(12393), + 41: uint16(12394), + 42: uint16(12395), + 43: uint16(12396), + 44: uint16(12397), + 45: uint16(12398), + 46: uint16(12399), + 47: uint16(12400), + 48: uint16(12401), + 49: uint16(12402), + 50: uint16(12403), + 51: uint16(12404), + 52: uint16(12405), + 53: uint16(12406), + 54: uint16(12407), + 55: uint16(12408), + 56: uint16(12409), + 57: uint16(12410), + 58: uint16(12411), + 59: uint16(12412), + 60: uint16(12413), + 61: uint16(12414), + 62: uint16(12415), + 63: uint16(12416), + 64: uint16(12417), + 65: uint16(12418), + 66: uint16(12419), + 67: uint16(12420), + 68: uint16(12421), + 69: uint16(12422), + 70: uint16(12423), + 71: uint16(12424), + 72: uint16(12425), + 73: uint16(12426), + 74: uint16(12427), + 75: uint16(12428), + 76: uint16(12429), + 77: uint16(12430), + 78: uint16(12431), + 79: uint16(12432), + 80: uint16(12433), + 81: uint16(12434), + 82: uint16(12435), + }, + 4: { + 0: uint16(12449), + 1: uint16(12450), + 2: uint16(12451), + 3: uint16(12452), + 4: uint16(12453), + 5: uint16(12454), + 6: uint16(12455), + 7: uint16(12456), + 8: uint16(12457), + 9: uint16(12458), + 10: uint16(12459), + 11: uint16(12460), + 12: uint16(12461), + 13: uint16(12462), + 14: uint16(12463), + 15: uint16(12464), + 16: uint16(12465), + 17: uint16(12466), + 18: uint16(12467), + 19: uint16(12468), + 20: uint16(12469), + 21: uint16(12470), + 22: uint16(12471), + 23: uint16(12472), + 24: uint16(12473), + 25: uint16(12474), + 26: uint16(12475), + 27: uint16(12476), + 28: uint16(12477), + 29: uint16(12478), + 30: uint16(12479), + 31: uint16(12480), + 32: uint16(12481), + 33: uint16(12482), + 34: uint16(12483), + 35: uint16(12484), + 36: uint16(12485), + 37: uint16(12486), + 38: uint16(12487), + 39: uint16(12488), + 40: uint16(12489), + 41: uint16(12490), + 42: uint16(12491), + 43: uint16(12492), + 44: uint16(12493), + 45: uint16(12494), + 46: uint16(12495), + 47: uint16(12496), + 48: uint16(12497), + 49: uint16(12498), + 50: uint16(12499), + 51: uint16(12500), + 52: uint16(12501), + 53: uint16(12502), + 54: uint16(12503), + 55: uint16(12504), + 56: uint16(12505), + 57: uint16(12506), + 58: uint16(12507), + 59: uint16(12508), + 60: uint16(12509), + 61: uint16(12510), + 62: uint16(12511), + 63: uint16(12512), + 64: uint16(12513), + 65: uint16(12514), + 66: uint16(12515), + 67: uint16(12516), + 68: uint16(12517), + 69: uint16(12518), + 70: uint16(12519), + 71: uint16(12520), + 72: uint16(12521), + 73: uint16(12522), + 74: uint16(12523), + 75: uint16(12524), + 76: uint16(12525), + 77: uint16(12526), + 78: uint16(12527), + 79: uint16(12528), + 80: uint16(12529), + 81: uint16(12530), + 82: uint16(12531), + 83: uint16(12532), + 84: uint16(12533), + 85: uint16(12534), + }, + 5: { + 0: uint16(913), + 1: uint16(914), + 2: uint16(915), + 3: uint16(916), + 4: uint16(917), + 5: uint16(918), + 6: uint16(919), + 7: uint16(920), + 8: uint16(921), + 9: uint16(922), + 10: uint16(923), + 11: uint16(924), + 12: uint16(925), + 13: uint16(926), + 14: uint16(927), + 15: uint16(928), + 16: uint16(929), + 17: uint16(931), + 18: uint16(932), + 19: uint16(933), + 20: uint16(934), + 21: uint16(935), + 22: uint16(936), + 23: uint16(937), + 32: uint16(945), + 33: uint16(946), + 34: uint16(947), + 35: uint16(948), + 36: uint16(949), + 37: uint16(950), + 38: uint16(951), + 39: uint16(952), + 40: uint16(953), + 41: uint16(954), + 42: uint16(955), + 43: uint16(956), + 44: uint16(957), + 45: uint16(958), + 46: uint16(959), + 47: uint16(960), + 48: uint16(961), + 49: uint16(963), + 50: uint16(964), + 51: uint16(965), + 52: uint16(966), + 53: uint16(967), + 54: uint16(968), + 55: uint16(969), + }, + 6: { + 0: uint16(1040), + 1: uint16(1041), + 2: uint16(1042), + 3: uint16(1043), + 4: uint16(1044), + 5: uint16(1045), + 6: uint16(1025), + 7: uint16(1046), + 8: uint16(1047), + 9: uint16(1048), + 10: uint16(1049), + 11: uint16(1050), + 12: uint16(1051), + 13: uint16(1052), + 14: uint16(1053), + 15: uint16(1054), + 16: uint16(1055), + 17: uint16(1056), + 18: uint16(1057), + 19: uint16(1058), + 20: uint16(1059), + 21: uint16(1060), + 22: uint16(1061), + 23: uint16(1062), + 24: uint16(1063), + 25: uint16(1064), + 26: uint16(1065), + 27: uint16(1066), + 28: uint16(1067), + 29: uint16(1068), + 30: uint16(1069), + 31: uint16(1070), + 32: uint16(1071), + 48: uint16(1072), + 49: uint16(1073), + 50: uint16(1074), + 51: uint16(1075), + 52: uint16(1076), + 53: uint16(1077), + 54: uint16(1105), + 55: uint16(1078), + 56: uint16(1079), + 57: uint16(1080), + 58: uint16(1081), + 59: uint16(1082), + 60: uint16(1083), + 61: uint16(1084), + 62: uint16(1085), + 63: uint16(1086), + 64: uint16(1087), + 65: uint16(1088), + 66: uint16(1089), + 67: uint16(1090), + 68: uint16(1091), + 69: uint16(1092), + 70: uint16(1093), + 71: uint16(1094), + 72: uint16(1095), + 73: uint16(1096), + 74: uint16(1097), + 75: uint16(1098), + 76: uint16(1099), + 77: uint16(1100), + 78: uint16(1101), + 79: uint16(1102), + 80: uint16(1103), + }, + 7: { + 0: uint16(9472), + 1: uint16(9474), + 2: uint16(9484), + 3: uint16(9488), + 4: uint16(9496), + 5: uint16(9492), + 6: uint16(9500), + 7: uint16(9516), + 8: uint16(9508), + 9: uint16(9524), + 10: uint16(9532), + 11: uint16(9473), + 12: uint16(9475), + 13: uint16(9487), + 14: uint16(9491), + 15: uint16(9499), + 16: uint16(9495), + 17: uint16(9507), + 18: uint16(9523), + 19: uint16(9515), + 20: uint16(9531), + 21: uint16(9547), + 22: uint16(9504), + 23: uint16(9519), + 24: uint16(9512), + 25: uint16(9527), + 26: uint16(9535), + 27: uint16(9501), + 28: uint16(9520), + 29: uint16(9509), + 30: uint16(9528), + 31: uint16(9538), + }, + 8: {}, + 9: {}, + 10: {}, + 11: {}, + 12: {}, + 13: {}, + 14: {}, + 15: { + 0: uint16(20124), + 1: uint16(21782), + 2: uint16(23043), + 3: uint16(38463), + 4: uint16(21696), + 5: uint16(24859), + 6: uint16(25384), + 7: uint16(23030), + 8: uint16(36898), + 9: uint16(33909), + 10: uint16(33564), + 11: uint16(31312), + 12: uint16(24746), + 13: uint16(25569), + 14: uint16(28197), + 15: uint16(26093), + 16: uint16(33894), + 17: uint16(33446), + 18: uint16(39925), + 19: uint16(26771), + 20: uint16(22311), + 21: uint16(26017), + 22: uint16(25201), + 23: uint16(23451), + 24: uint16(22992), + 25: uint16(34427), + 26: uint16(39156), + 27: uint16(32098), + 28: uint16(32190), + 29: uint16(39822), + 30: uint16(25110), + 31: uint16(31903), + 32: uint16(34999), + 33: uint16(23433), + 34: uint16(24245), + 35: uint16(25353), + 36: uint16(26263), + 37: uint16(26696), + 38: uint16(38343), + 39: uint16(38797), + 40: uint16(26447), + 41: uint16(20197), + 42: uint16(20234), + 43: uint16(20301), + 44: uint16(20381), + 45: uint16(20553), + 46: uint16(22258), + 47: uint16(22839), + 48: uint16(22996), + 49: uint16(23041), + 50: uint16(23561), + 51: uint16(24799), + 52: uint16(24847), + 53: uint16(24944), + 54: uint16(26131), + 55: uint16(26885), + 56: uint16(28858), + 57: uint16(30031), + 58: uint16(30064), + 59: uint16(31227), + 60: uint16(32173), + 61: uint16(32239), + 62: uint16(32963), + 63: uint16(33806), + 64: uint16(34915), + 65: uint16(35586), + 66: uint16(36949), + 67: uint16(36986), + 68: uint16(21307), + 69: uint16(20117), + 70: uint16(20133), + 71: uint16(22495), + 72: uint16(32946), + 73: uint16(37057), + 74: uint16(30959), + 75: uint16(19968), + 76: uint16(22769), + 77: uint16(28322), + 78: uint16(36920), + 79: uint16(31282), + 80: uint16(33576), + 81: uint16(33419), + 82: uint16(39983), + 83: uint16(20801), + 84: uint16(21360), + 85: uint16(21693), + 86: uint16(21729), + 87: uint16(22240), + 88: uint16(23035), + 89: uint16(24341), + 90: uint16(39154), + 91: uint16(28139), + 92: uint16(32996), + 93: uint16(34093), + }, + 16: { + 0: uint16(38498), + 1: uint16(38512), + 2: uint16(38560), + 3: uint16(38907), + 4: uint16(21515), + 5: uint16(21491), + 6: uint16(23431), + 7: uint16(28879), + 8: uint16(32701), + 9: uint16(36802), + 10: uint16(38632), + 11: uint16(21359), + 12: uint16(40284), + 13: uint16(31418), + 14: uint16(19985), + 15: uint16(30867), + 16: uint16(33276), + 17: uint16(28198), + 18: uint16(22040), + 19: uint16(21764), + 20: uint16(27421), + 21: uint16(34074), + 22: uint16(39995), + 23: uint16(23013), + 24: uint16(21417), + 25: uint16(28006), + 26: uint16(29916), + 27: uint16(38287), + 28: uint16(22082), + 29: uint16(20113), + 30: uint16(36939), + 31: uint16(38642), + 32: uint16(33615), + 33: uint16(39180), + 34: uint16(21473), + 35: uint16(21942), + 36: uint16(23344), + 37: uint16(24433), + 38: uint16(26144), + 39: uint16(26355), + 40: uint16(26628), + 41: uint16(27704), + 42: uint16(27891), + 43: uint16(27945), + 44: uint16(29787), + 45: uint16(30408), + 46: uint16(31310), + 47: uint16(38964), + 48: uint16(33521), + 49: uint16(34907), + 50: uint16(35424), + 51: uint16(37613), + 52: uint16(28082), + 53: uint16(30123), + 54: uint16(30410), + 55: uint16(39365), + 56: uint16(24742), + 57: uint16(35585), + 58: uint16(36234), + 59: uint16(38322), + 60: uint16(27022), + 61: uint16(21421), + 62: uint16(20870), + 63: uint16(22290), + 64: uint16(22576), + 65: uint16(22852), + 66: uint16(23476), + 67: uint16(24310), + 68: uint16(24616), + 69: uint16(25513), + 70: uint16(25588), + 71: uint16(27839), + 72: uint16(28436), + 73: uint16(28814), + 74: uint16(28948), + 75: uint16(29017), + 76: uint16(29141), + 77: uint16(29503), + 78: uint16(32257), + 79: uint16(33398), + 80: uint16(33489), + 81: uint16(34199), + 82: uint16(36960), + 83: uint16(37467), + 84: uint16(40219), + 85: uint16(22633), + 86: uint16(26044), + 87: uint16(27738), + 88: uint16(29989), + 89: uint16(20985), + 90: uint16(22830), + 91: uint16(22885), + 92: uint16(24448), + 93: uint16(24540), + }, + 17: { + 0: uint16(25276), + 1: uint16(26106), + 2: uint16(27178), + 3: uint16(27431), + 4: uint16(27572), + 5: uint16(29579), + 6: uint16(32705), + 7: uint16(35158), + 8: uint16(40236), + 9: uint16(40206), + 10: uint16(40644), + 11: uint16(23713), + 12: uint16(27798), + 13: uint16(33659), + 14: uint16(20740), + 15: uint16(23627), + 16: uint16(25014), + 17: uint16(33222), + 18: uint16(26742), + 19: uint16(29281), + 20: uint16(20057), + 21: uint16(20474), + 22: uint16(21368), + 23: uint16(24681), + 24: uint16(28201), + 25: uint16(31311), + 26: uint16(38899), + 27: uint16(19979), + 28: uint16(21270), + 29: uint16(20206), + 30: uint16(20309), + 31: uint16(20285), + 32: uint16(20385), + 33: uint16(20339), + 34: uint16(21152), + 35: uint16(21487), + 36: uint16(22025), + 37: uint16(22799), + 38: uint16(23233), + 39: uint16(23478), + 40: uint16(23521), + 41: uint16(31185), + 42: uint16(26247), + 43: uint16(26524), + 44: uint16(26550), + 45: uint16(27468), + 46: uint16(27827), + 47: uint16(28779), + 48: uint16(29634), + 49: uint16(31117), + 50: uint16(31166), + 51: uint16(31292), + 52: uint16(31623), + 53: uint16(33457), + 54: uint16(33499), + 55: uint16(33540), + 56: uint16(33655), + 57: uint16(33775), + 58: uint16(33747), + 59: uint16(34662), + 60: uint16(35506), + 61: uint16(22057), + 62: uint16(36008), + 63: uint16(36838), + 64: uint16(36942), + 65: uint16(38686), + 66: uint16(34442), + 67: uint16(20420), + 68: uint16(23784), + 69: uint16(25105), + 70: uint16(29273), + 71: uint16(30011), + 72: uint16(33253), + 73: uint16(33469), + 74: uint16(34558), + 75: uint16(36032), + 76: uint16(38597), + 77: uint16(39187), + 78: uint16(39381), + 79: uint16(20171), + 80: uint16(20250), + 81: uint16(35299), + 82: uint16(22238), + 83: uint16(22602), + 84: uint16(22730), + 85: uint16(24315), + 86: uint16(24555), + 87: uint16(24618), + 88: uint16(24724), + 89: uint16(24674), + 90: uint16(25040), + 91: uint16(25106), + 92: uint16(25296), + 93: uint16(25913), + }, + 18: { + 0: uint16(39745), + 1: uint16(26214), + 2: uint16(26800), + 3: uint16(28023), + 4: uint16(28784), + 5: uint16(30028), + 6: uint16(30342), + 7: uint16(32117), + 8: uint16(33445), + 9: uint16(34809), + 10: uint16(38283), + 11: uint16(38542), + 12: uint16(35997), + 13: uint16(20977), + 14: uint16(21182), + 15: uint16(22806), + 16: uint16(21683), + 17: uint16(23475), + 18: uint16(23830), + 19: uint16(24936), + 20: uint16(27010), + 21: uint16(28079), + 22: uint16(30861), + 23: uint16(33995), + 24: uint16(34903), + 25: uint16(35442), + 26: uint16(37799), + 27: uint16(39608), + 28: uint16(28012), + 29: uint16(39336), + 30: uint16(34521), + 31: uint16(22435), + 32: uint16(26623), + 33: uint16(34510), + 34: uint16(37390), + 35: uint16(21123), + 36: uint16(22151), + 37: uint16(21508), + 38: uint16(24275), + 39: uint16(25313), + 40: uint16(25785), + 41: uint16(26684), + 42: uint16(26680), + 43: uint16(27579), + 44: uint16(29554), + 45: uint16(30906), + 46: uint16(31339), + 47: uint16(35226), + 48: uint16(35282), + 49: uint16(36203), + 50: uint16(36611), + 51: uint16(37101), + 52: uint16(38307), + 53: uint16(38548), + 54: uint16(38761), + 55: uint16(23398), + 56: uint16(23731), + 57: uint16(27005), + 58: uint16(38989), + 59: uint16(38990), + 60: uint16(25499), + 61: uint16(31520), + 62: uint16(27179), + 63: uint16(27263), + 64: uint16(26806), + 65: uint16(39949), + 66: uint16(28511), + 67: uint16(21106), + 68: uint16(21917), + 69: uint16(24688), + 70: uint16(25324), + 71: uint16(27963), + 72: uint16(28167), + 73: uint16(28369), + 74: uint16(33883), + 75: uint16(35088), + 76: uint16(36676), + 77: uint16(19988), + 78: uint16(39993), + 79: uint16(21494), + 80: uint16(26907), + 81: uint16(27194), + 82: uint16(38788), + 83: uint16(26666), + 84: uint16(20828), + 85: uint16(31427), + 86: uint16(33970), + 87: uint16(37340), + 88: uint16(37772), + 89: uint16(22107), + 90: uint16(40232), + 91: uint16(26658), + 92: uint16(33541), + 93: uint16(33841), + }, + 19: { + 0: uint16(31909), + 1: uint16(21000), + 2: uint16(33477), + 3: uint16(29926), + 4: uint16(20094), + 5: uint16(20355), + 6: uint16(20896), + 7: uint16(23506), + 8: uint16(21002), + 9: uint16(21208), + 10: uint16(21223), + 11: uint16(24059), + 12: uint16(21914), + 13: uint16(22570), + 14: uint16(23014), + 15: uint16(23436), + 16: uint16(23448), + 17: uint16(23515), + 18: uint16(24178), + 19: uint16(24185), + 20: uint16(24739), + 21: uint16(24863), + 22: uint16(24931), + 23: uint16(25022), + 24: uint16(25563), + 25: uint16(25954), + 26: uint16(26577), + 27: uint16(26707), + 28: uint16(26874), + 29: uint16(27454), + 30: uint16(27475), + 31: uint16(27735), + 32: uint16(28450), + 33: uint16(28567), + 34: uint16(28485), + 35: uint16(29872), + 36: uint16(29976), + 37: uint16(30435), + 38: uint16(30475), + 39: uint16(31487), + 40: uint16(31649), + 41: uint16(31777), + 42: uint16(32233), + 43: uint16(32566), + 44: uint16(32752), + 45: uint16(32925), + 46: uint16(33382), + 47: uint16(33694), + 48: uint16(35251), + 49: uint16(35532), + 50: uint16(36011), + 51: uint16(36996), + 52: uint16(37969), + 53: uint16(38291), + 54: uint16(38289), + 55: uint16(38306), + 56: uint16(38501), + 57: uint16(38867), + 58: uint16(39208), + 59: uint16(33304), + 60: uint16(20024), + 61: uint16(21547), + 62: uint16(23736), + 63: uint16(24012), + 64: uint16(29609), + 65: uint16(30284), + 66: uint16(30524), + 67: uint16(23721), + 68: uint16(32747), + 69: uint16(36107), + 70: uint16(38593), + 71: uint16(38929), + 72: uint16(38996), + 73: uint16(39000), + 74: uint16(20225), + 75: uint16(20238), + 76: uint16(21361), + 77: uint16(21916), + 78: uint16(22120), + 79: uint16(22522), + 80: uint16(22855), + 81: uint16(23305), + 82: uint16(23492), + 83: uint16(23696), + 84: uint16(24076), + 85: uint16(24190), + 86: uint16(24524), + 87: uint16(25582), + 88: uint16(26426), + 89: uint16(26071), + 90: uint16(26082), + 91: uint16(26399), + 92: uint16(26827), + 93: uint16(26820), + }, + 20: { + 0: uint16(27231), + 1: uint16(24112), + 2: uint16(27589), + 3: uint16(27671), + 4: uint16(27773), + 5: uint16(30079), + 6: uint16(31048), + 7: uint16(23395), + 8: uint16(31232), + 9: uint16(32000), + 10: uint16(24509), + 11: uint16(35215), + 12: uint16(35352), + 13: uint16(36020), + 14: uint16(36215), + 15: uint16(36556), + 16: uint16(36637), + 17: uint16(39138), + 18: uint16(39438), + 19: uint16(39740), + 20: uint16(20096), + 21: uint16(20605), + 22: uint16(20736), + 23: uint16(22931), + 24: uint16(23452), + 25: uint16(25135), + 26: uint16(25216), + 27: uint16(25836), + 28: uint16(27450), + 29: uint16(29344), + 30: uint16(30097), + 31: uint16(31047), + 32: uint16(32681), + 33: uint16(34811), + 34: uint16(35516), + 35: uint16(35696), + 36: uint16(25516), + 37: uint16(33738), + 38: uint16(38816), + 39: uint16(21513), + 40: uint16(21507), + 41: uint16(21931), + 42: uint16(26708), + 43: uint16(27224), + 44: uint16(35440), + 45: uint16(30759), + 46: uint16(26485), + 47: uint16(40653), + 48: uint16(21364), + 49: uint16(23458), + 50: uint16(33050), + 51: uint16(34384), + 52: uint16(36870), + 53: uint16(19992), + 54: uint16(20037), + 55: uint16(20167), + 56: uint16(20241), + 57: uint16(21450), + 58: uint16(21560), + 59: uint16(23470), + 60: uint16(24339), + 61: uint16(24613), + 62: uint16(25937), + 63: uint16(26429), + 64: uint16(27714), + 65: uint16(27762), + 66: uint16(27875), + 67: uint16(28792), + 68: uint16(29699), + 69: uint16(31350), + 70: uint16(31406), + 71: uint16(31496), + 72: uint16(32026), + 73: uint16(31998), + 74: uint16(32102), + 75: uint16(26087), + 76: uint16(29275), + 77: uint16(21435), + 78: uint16(23621), + 79: uint16(24040), + 80: uint16(25298), + 81: uint16(25312), + 82: uint16(25369), + 83: uint16(28192), + 84: uint16(34394), + 85: uint16(35377), + 86: uint16(36317), + 87: uint16(37624), + 88: uint16(28417), + 89: uint16(31142), + 90: uint16(39770), + 91: uint16(20136), + 92: uint16(20139), + 93: uint16(20140), + }, + 21: { + 0: uint16(20379), + 1: uint16(20384), + 2: uint16(20689), + 3: uint16(20807), + 4: uint16(31478), + 5: uint16(20849), + 6: uint16(20982), + 7: uint16(21332), + 8: uint16(21281), + 9: uint16(21375), + 10: uint16(21483), + 11: uint16(21932), + 12: uint16(22659), + 13: uint16(23777), + 14: uint16(24375), + 15: uint16(24394), + 16: uint16(24623), + 17: uint16(24656), + 18: uint16(24685), + 19: uint16(25375), + 20: uint16(25945), + 21: uint16(27211), + 22: uint16(27841), + 23: uint16(29378), + 24: uint16(29421), + 25: uint16(30703), + 26: uint16(33016), + 27: uint16(33029), + 28: uint16(33288), + 29: uint16(34126), + 30: uint16(37111), + 31: uint16(37857), + 32: uint16(38911), + 33: uint16(39255), + 34: uint16(39514), + 35: uint16(20208), + 36: uint16(20957), + 37: uint16(23597), + 38: uint16(26241), + 39: uint16(26989), + 40: uint16(23616), + 41: uint16(26354), + 42: uint16(26997), + 43: uint16(29577), + 44: uint16(26704), + 45: uint16(31873), + 46: uint16(20677), + 47: uint16(21220), + 48: uint16(22343), + 49: uint16(24062), + 50: uint16(37670), + 51: uint16(26020), + 52: uint16(27427), + 53: uint16(27453), + 54: uint16(29748), + 55: uint16(31105), + 56: uint16(31165), + 57: uint16(31563), + 58: uint16(32202), + 59: uint16(33465), + 60: uint16(33740), + 61: uint16(34943), + 62: uint16(35167), + 63: uint16(35641), + 64: uint16(36817), + 65: uint16(37329), + 66: uint16(21535), + 67: uint16(37504), + 68: uint16(20061), + 69: uint16(20534), + 70: uint16(21477), + 71: uint16(21306), + 72: uint16(29399), + 73: uint16(29590), + 74: uint16(30697), + 75: uint16(33510), + 76: uint16(36527), + 77: uint16(39366), + 78: uint16(39368), + 79: uint16(39378), + 80: uint16(20855), + 81: uint16(24858), + 82: uint16(34398), + 83: uint16(21936), + 84: uint16(31354), + 85: uint16(20598), + 86: uint16(23507), + 87: uint16(36935), + 88: uint16(38533), + 89: uint16(20018), + 90: uint16(27355), + 91: uint16(37351), + 92: uint16(23633), + 93: uint16(23624), + }, + 22: { + 0: uint16(25496), + 1: uint16(31391), + 2: uint16(27795), + 3: uint16(38772), + 4: uint16(36705), + 5: uint16(31402), + 6: uint16(29066), + 7: uint16(38536), + 8: uint16(31874), + 9: uint16(26647), + 10: uint16(32368), + 11: uint16(26705), + 12: uint16(37740), + 13: uint16(21234), + 14: uint16(21531), + 15: uint16(34219), + 16: uint16(35347), + 17: uint16(32676), + 18: uint16(36557), + 19: uint16(37089), + 20: uint16(21350), + 21: uint16(34952), + 22: uint16(31041), + 23: uint16(20418), + 24: uint16(20670), + 25: uint16(21009), + 26: uint16(20804), + 27: uint16(21843), + 28: uint16(22317), + 29: uint16(29674), + 30: uint16(22411), + 31: uint16(22865), + 32: uint16(24418), + 33: uint16(24452), + 34: uint16(24693), + 35: uint16(24950), + 36: uint16(24935), + 37: uint16(25001), + 38: uint16(25522), + 39: uint16(25658), + 40: uint16(25964), + 41: uint16(26223), + 42: uint16(26690), + 43: uint16(28179), + 44: uint16(30054), + 45: uint16(31293), + 46: uint16(31995), + 47: uint16(32076), + 48: uint16(32153), + 49: uint16(32331), + 50: uint16(32619), + 51: uint16(33550), + 52: uint16(33610), + 53: uint16(34509), + 54: uint16(35336), + 55: uint16(35427), + 56: uint16(35686), + 57: uint16(36605), + 58: uint16(38938), + 59: uint16(40335), + 60: uint16(33464), + 61: uint16(36814), + 62: uint16(39912), + 63: uint16(21127), + 64: uint16(25119), + 65: uint16(25731), + 66: uint16(28608), + 67: uint16(38553), + 68: uint16(26689), + 69: uint16(20625), + 70: uint16(27424), + 71: uint16(27770), + 72: uint16(28500), + 73: uint16(31348), + 74: uint16(32080), + 75: uint16(34880), + 76: uint16(35363), + 77: uint16(26376), + 78: uint16(20214), + 79: uint16(20537), + 80: uint16(20518), + 81: uint16(20581), + 82: uint16(20860), + 83: uint16(21048), + 84: uint16(21091), + 85: uint16(21927), + 86: uint16(22287), + 87: uint16(22533), + 88: uint16(23244), + 89: uint16(24314), + 90: uint16(25010), + 91: uint16(25080), + 92: uint16(25331), + 93: uint16(25458), + }, + 23: { + 0: uint16(26908), + 1: uint16(27177), + 2: uint16(29309), + 3: uint16(29356), + 4: uint16(29486), + 5: uint16(30740), + 6: uint16(30831), + 7: uint16(32121), + 8: uint16(30476), + 9: uint16(32937), + 10: uint16(35211), + 11: uint16(35609), + 12: uint16(36066), + 13: uint16(36562), + 14: uint16(36963), + 15: uint16(37749), + 16: uint16(38522), + 17: uint16(38997), + 18: uint16(39443), + 19: uint16(40568), + 20: uint16(20803), + 21: uint16(21407), + 22: uint16(21427), + 23: uint16(24187), + 24: uint16(24358), + 25: uint16(28187), + 26: uint16(28304), + 27: uint16(29572), + 28: uint16(29694), + 29: uint16(32067), + 30: uint16(33335), + 31: uint16(35328), + 32: uint16(35578), + 33: uint16(38480), + 34: uint16(20046), + 35: uint16(20491), + 36: uint16(21476), + 37: uint16(21628), + 38: uint16(22266), + 39: uint16(22993), + 40: uint16(23396), + 41: uint16(24049), + 42: uint16(24235), + 43: uint16(24359), + 44: uint16(25144), + 45: uint16(25925), + 46: uint16(26543), + 47: uint16(28246), + 48: uint16(29392), + 49: uint16(31946), + 50: uint16(34996), + 51: uint16(32929), + 52: uint16(32993), + 53: uint16(33776), + 54: uint16(34382), + 55: uint16(35463), + 56: uint16(36328), + 57: uint16(37431), + 58: uint16(38599), + 59: uint16(39015), + 60: uint16(40723), + 61: uint16(20116), + 62: uint16(20114), + 63: uint16(20237), + 64: uint16(21320), + 65: uint16(21577), + 66: uint16(21566), + 67: uint16(23087), + 68: uint16(24460), + 69: uint16(24481), + 70: uint16(24735), + 71: uint16(26791), + 72: uint16(27278), + 73: uint16(29786), + 74: uint16(30849), + 75: uint16(35486), + 76: uint16(35492), + 77: uint16(35703), + 78: uint16(37264), + 79: uint16(20062), + 80: uint16(39881), + 81: uint16(20132), + 82: uint16(20348), + 83: uint16(20399), + 84: uint16(20505), + 85: uint16(20502), + 86: uint16(20809), + 87: uint16(20844), + 88: uint16(21151), + 89: uint16(21177), + 90: uint16(21246), + 91: uint16(21402), + 92: uint16(21475), + 93: uint16(21521), + }, + 24: { + 0: uint16(21518), + 1: uint16(21897), + 2: uint16(22353), + 3: uint16(22434), + 4: uint16(22909), + 5: uint16(23380), + 6: uint16(23389), + 7: uint16(23439), + 8: uint16(24037), + 9: uint16(24039), + 10: uint16(24055), + 11: uint16(24184), + 12: uint16(24195), + 13: uint16(24218), + 14: uint16(24247), + 15: uint16(24344), + 16: uint16(24658), + 17: uint16(24908), + 18: uint16(25239), + 19: uint16(25304), + 20: uint16(25511), + 21: uint16(25915), + 22: uint16(26114), + 23: uint16(26179), + 24: uint16(26356), + 25: uint16(26477), + 26: uint16(26657), + 27: uint16(26775), + 28: uint16(27083), + 29: uint16(27743), + 30: uint16(27946), + 31: uint16(28009), + 32: uint16(28207), + 33: uint16(28317), + 34: uint16(30002), + 35: uint16(30343), + 36: uint16(30828), + 37: uint16(31295), + 38: uint16(31968), + 39: uint16(32005), + 40: uint16(32024), + 41: uint16(32094), + 42: uint16(32177), + 43: uint16(32789), + 44: uint16(32771), + 45: uint16(32943), + 46: uint16(32945), + 47: uint16(33108), + 48: uint16(33167), + 49: uint16(33322), + 50: uint16(33618), + 51: uint16(34892), + 52: uint16(34913), + 53: uint16(35611), + 54: uint16(36002), + 55: uint16(36092), + 56: uint16(37066), + 57: uint16(37237), + 58: uint16(37489), + 59: uint16(30783), + 60: uint16(37628), + 61: uint16(38308), + 62: uint16(38477), + 63: uint16(38917), + 64: uint16(39321), + 65: uint16(39640), + 66: uint16(40251), + 67: uint16(21083), + 68: uint16(21163), + 69: uint16(21495), + 70: uint16(21512), + 71: uint16(22741), + 72: uint16(25335), + 73: uint16(28640), + 74: uint16(35946), + 75: uint16(36703), + 76: uint16(40633), + 77: uint16(20811), + 78: uint16(21051), + 79: uint16(21578), + 80: uint16(22269), + 81: uint16(31296), + 82: uint16(37239), + 83: uint16(40288), + 84: uint16(40658), + 85: uint16(29508), + 86: uint16(28425), + 87: uint16(33136), + 88: uint16(29969), + 89: uint16(24573), + 90: uint16(24794), + 91: uint16(39592), + 92: uint16(29403), + 93: uint16(36796), + }, + 25: { + 0: uint16(27492), + 1: uint16(38915), + 2: uint16(20170), + 3: uint16(22256), + 4: uint16(22372), + 5: uint16(22718), + 6: uint16(23130), + 7: uint16(24680), + 8: uint16(25031), + 9: uint16(26127), + 10: uint16(26118), + 11: uint16(26681), + 12: uint16(26801), + 13: uint16(28151), + 14: uint16(30165), + 15: uint16(32058), + 16: uint16(33390), + 17: uint16(39746), + 18: uint16(20123), + 19: uint16(20304), + 20: uint16(21449), + 21: uint16(21766), + 22: uint16(23919), + 23: uint16(24038), + 24: uint16(24046), + 25: uint16(26619), + 26: uint16(27801), + 27: uint16(29811), + 28: uint16(30722), + 29: uint16(35408), + 30: uint16(37782), + 31: uint16(35039), + 32: uint16(22352), + 33: uint16(24231), + 34: uint16(25387), + 35: uint16(20661), + 36: uint16(20652), + 37: uint16(20877), + 38: uint16(26368), + 39: uint16(21705), + 40: uint16(22622), + 41: uint16(22971), + 42: uint16(23472), + 43: uint16(24425), + 44: uint16(25165), + 45: uint16(25505), + 46: uint16(26685), + 47: uint16(27507), + 48: uint16(28168), + 49: uint16(28797), + 50: uint16(37319), + 51: uint16(29312), + 52: uint16(30741), + 53: uint16(30758), + 54: uint16(31085), + 55: uint16(25998), + 56: uint16(32048), + 57: uint16(33756), + 58: uint16(35009), + 59: uint16(36617), + 60: uint16(38555), + 61: uint16(21092), + 62: uint16(22312), + 63: uint16(26448), + 64: uint16(32618), + 65: uint16(36001), + 66: uint16(20916), + 67: uint16(22338), + 68: uint16(38442), + 69: uint16(22586), + 70: uint16(27018), + 71: uint16(32948), + 72: uint16(21682), + 73: uint16(23822), + 74: uint16(22524), + 75: uint16(30869), + 76: uint16(40442), + 77: uint16(20316), + 78: uint16(21066), + 79: uint16(21643), + 80: uint16(25662), + 81: uint16(26152), + 82: uint16(26388), + 83: uint16(26613), + 84: uint16(31364), + 85: uint16(31574), + 86: uint16(32034), + 87: uint16(37679), + 88: uint16(26716), + 89: uint16(39853), + 90: uint16(31545), + 91: uint16(21273), + 92: uint16(20874), + 93: uint16(21047), + }, + 26: { + 0: uint16(23519), + 1: uint16(25334), + 2: uint16(25774), + 3: uint16(25830), + 4: uint16(26413), + 5: uint16(27578), + 6: uint16(34217), + 7: uint16(38609), + 8: uint16(30352), + 9: uint16(39894), + 10: uint16(25420), + 11: uint16(37638), + 12: uint16(39851), + 13: uint16(30399), + 14: uint16(26194), + 15: uint16(19977), + 16: uint16(20632), + 17: uint16(21442), + 18: uint16(23665), + 19: uint16(24808), + 20: uint16(25746), + 21: uint16(25955), + 22: uint16(26719), + 23: uint16(29158), + 24: uint16(29642), + 25: uint16(29987), + 26: uint16(31639), + 27: uint16(32386), + 28: uint16(34453), + 29: uint16(35715), + 30: uint16(36059), + 31: uint16(37240), + 32: uint16(39184), + 33: uint16(26028), + 34: uint16(26283), + 35: uint16(27531), + 36: uint16(20181), + 37: uint16(20180), + 38: uint16(20282), + 39: uint16(20351), + 40: uint16(21050), + 41: uint16(21496), + 42: uint16(21490), + 43: uint16(21987), + 44: uint16(22235), + 45: uint16(22763), + 46: uint16(22987), + 47: uint16(22985), + 48: uint16(23039), + 49: uint16(23376), + 50: uint16(23629), + 51: uint16(24066), + 52: uint16(24107), + 53: uint16(24535), + 54: uint16(24605), + 55: uint16(25351), + 56: uint16(25903), + 57: uint16(23388), + 58: uint16(26031), + 59: uint16(26045), + 60: uint16(26088), + 61: uint16(26525), + 62: uint16(27490), + 63: uint16(27515), + 64: uint16(27663), + 65: uint16(29509), + 66: uint16(31049), + 67: uint16(31169), + 68: uint16(31992), + 69: uint16(32025), + 70: uint16(32043), + 71: uint16(32930), + 72: uint16(33026), + 73: uint16(33267), + 74: uint16(35222), + 75: uint16(35422), + 76: uint16(35433), + 77: uint16(35430), + 78: uint16(35468), + 79: uint16(35566), + 80: uint16(36039), + 81: uint16(36060), + 82: uint16(38604), + 83: uint16(39164), + 84: uint16(27503), + 85: uint16(20107), + 86: uint16(20284), + 87: uint16(20365), + 88: uint16(20816), + 89: uint16(23383), + 90: uint16(23546), + 91: uint16(24904), + 92: uint16(25345), + 93: uint16(26178), + }, + 27: { + 0: uint16(27425), + 1: uint16(28363), + 2: uint16(27835), + 3: uint16(29246), + 4: uint16(29885), + 5: uint16(30164), + 6: uint16(30913), + 7: uint16(31034), + 8: uint16(32780), + 9: uint16(32819), + 10: uint16(33258), + 11: uint16(33940), + 12: uint16(36766), + 13: uint16(27728), + 14: uint16(40575), + 15: uint16(24335), + 16: uint16(35672), + 17: uint16(40235), + 18: uint16(31482), + 19: uint16(36600), + 20: uint16(23437), + 21: uint16(38635), + 22: uint16(19971), + 23: uint16(21489), + 24: uint16(22519), + 25: uint16(22833), + 26: uint16(23241), + 27: uint16(23460), + 28: uint16(24713), + 29: uint16(28287), + 30: uint16(28422), + 31: uint16(30142), + 32: uint16(36074), + 33: uint16(23455), + 34: uint16(34048), + 35: uint16(31712), + 36: uint16(20594), + 37: uint16(26612), + 38: uint16(33437), + 39: uint16(23649), + 40: uint16(34122), + 41: uint16(32286), + 42: uint16(33294), + 43: uint16(20889), + 44: uint16(23556), + 45: uint16(25448), + 46: uint16(36198), + 47: uint16(26012), + 48: uint16(29038), + 49: uint16(31038), + 50: uint16(32023), + 51: uint16(32773), + 52: uint16(35613), + 53: uint16(36554), + 54: uint16(36974), + 55: uint16(34503), + 56: uint16(37034), + 57: uint16(20511), + 58: uint16(21242), + 59: uint16(23610), + 60: uint16(26451), + 61: uint16(28796), + 62: uint16(29237), + 63: uint16(37196), + 64: uint16(37320), + 65: uint16(37675), + 66: uint16(33509), + 67: uint16(23490), + 68: uint16(24369), + 69: uint16(24825), + 70: uint16(20027), + 71: uint16(21462), + 72: uint16(23432), + 73: uint16(25163), + 74: uint16(26417), + 75: uint16(27530), + 76: uint16(29417), + 77: uint16(29664), + 78: uint16(31278), + 79: uint16(33131), + 80: uint16(36259), + 81: uint16(37202), + 82: uint16(39318), + 83: uint16(20754), + 84: uint16(21463), + 85: uint16(21610), + 86: uint16(23551), + 87: uint16(25480), + 88: uint16(27193), + 89: uint16(32172), + 90: uint16(38656), + 91: uint16(22234), + 92: uint16(21454), + 93: uint16(21608), + }, + 28: { + 0: uint16(23447), + 1: uint16(23601), + 2: uint16(24030), + 3: uint16(20462), + 4: uint16(24833), + 5: uint16(25342), + 6: uint16(27954), + 7: uint16(31168), + 8: uint16(31179), + 9: uint16(32066), + 10: uint16(32333), + 11: uint16(32722), + 12: uint16(33261), + 13: uint16(33311), + 14: uint16(33936), + 15: uint16(34886), + 16: uint16(35186), + 17: uint16(35728), + 18: uint16(36468), + 19: uint16(36655), + 20: uint16(36913), + 21: uint16(37195), + 22: uint16(37228), + 23: uint16(38598), + 24: uint16(37276), + 25: uint16(20160), + 26: uint16(20303), + 27: uint16(20805), + 28: uint16(21313), + 29: uint16(24467), + 30: uint16(25102), + 31: uint16(26580), + 32: uint16(27713), + 33: uint16(28171), + 34: uint16(29539), + 35: uint16(32294), + 36: uint16(37325), + 37: uint16(37507), + 38: uint16(21460), + 39: uint16(22809), + 40: uint16(23487), + 41: uint16(28113), + 42: uint16(31069), + 43: uint16(32302), + 44: uint16(31899), + 45: uint16(22654), + 46: uint16(29087), + 47: uint16(20986), + 48: uint16(34899), + 49: uint16(36848), + 50: uint16(20426), + 51: uint16(23803), + 52: uint16(26149), + 53: uint16(30636), + 54: uint16(31459), + 55: uint16(33308), + 56: uint16(39423), + 57: uint16(20934), + 58: uint16(24490), + 59: uint16(26092), + 60: uint16(26991), + 61: uint16(27529), + 62: uint16(28147), + 63: uint16(28310), + 64: uint16(28516), + 65: uint16(30462), + 66: uint16(32020), + 67: uint16(24033), + 68: uint16(36981), + 69: uint16(37255), + 70: uint16(38918), + 71: uint16(20966), + 72: uint16(21021), + 73: uint16(25152), + 74: uint16(26257), + 75: uint16(26329), + 76: uint16(28186), + 77: uint16(24246), + 78: uint16(32210), + 79: uint16(32626), + 80: uint16(26360), + 81: uint16(34223), + 82: uint16(34295), + 83: uint16(35576), + 84: uint16(21161), + 85: uint16(21465), + 86: uint16(22899), + 87: uint16(24207), + 88: uint16(24464), + 89: uint16(24661), + 90: uint16(37604), + 91: uint16(38500), + 92: uint16(20663), + 93: uint16(20767), + }, + 29: { + 0: uint16(21213), + 1: uint16(21280), + 2: uint16(21319), + 3: uint16(21484), + 4: uint16(21736), + 5: uint16(21830), + 6: uint16(21809), + 7: uint16(22039), + 8: uint16(22888), + 9: uint16(22974), + 10: uint16(23100), + 11: uint16(23477), + 12: uint16(23558), + 13: uint16(23567), + 14: uint16(23569), + 15: uint16(23578), + 16: uint16(24196), + 17: uint16(24202), + 18: uint16(24288), + 19: uint16(24432), + 20: uint16(25215), + 21: uint16(25220), + 22: uint16(25307), + 23: uint16(25484), + 24: uint16(25463), + 25: uint16(26119), + 26: uint16(26124), + 27: uint16(26157), + 28: uint16(26230), + 29: uint16(26494), + 30: uint16(26786), + 31: uint16(27167), + 32: uint16(27189), + 33: uint16(27836), + 34: uint16(28040), + 35: uint16(28169), + 36: uint16(28248), + 37: uint16(28988), + 38: uint16(28966), + 39: uint16(29031), + 40: uint16(30151), + 41: uint16(30465), + 42: uint16(30813), + 43: uint16(30977), + 44: uint16(31077), + 45: uint16(31216), + 46: uint16(31456), + 47: uint16(31505), + 48: uint16(31911), + 49: uint16(32057), + 50: uint16(32918), + 51: uint16(33750), + 52: uint16(33931), + 53: uint16(34121), + 54: uint16(34909), + 55: uint16(35059), + 56: uint16(35359), + 57: uint16(35388), + 58: uint16(35412), + 59: uint16(35443), + 60: uint16(35937), + 61: uint16(36062), + 62: uint16(37284), + 63: uint16(37478), + 64: uint16(37758), + 65: uint16(37912), + 66: uint16(38556), + 67: uint16(38808), + 68: uint16(19978), + 69: uint16(19976), + 70: uint16(19998), + 71: uint16(20055), + 72: uint16(20887), + 73: uint16(21104), + 74: uint16(22478), + 75: uint16(22580), + 76: uint16(22732), + 77: uint16(23330), + 78: uint16(24120), + 79: uint16(24773), + 80: uint16(25854), + 81: uint16(26465), + 82: uint16(26454), + 83: uint16(27972), + 84: uint16(29366), + 85: uint16(30067), + 86: uint16(31331), + 87: uint16(33976), + 88: uint16(35698), + 89: uint16(37304), + 90: uint16(37664), + 91: uint16(22065), + 92: uint16(22516), + 93: uint16(39166), + }, + 30: { + 0: uint16(25325), + 1: uint16(26893), + 2: uint16(27542), + 3: uint16(29165), + 4: uint16(32340), + 5: uint16(32887), + 6: uint16(33394), + 7: uint16(35302), + 8: uint16(39135), + 9: uint16(34645), + 10: uint16(36785), + 11: uint16(23611), + 12: uint16(20280), + 13: uint16(20449), + 14: uint16(20405), + 15: uint16(21767), + 16: uint16(23072), + 17: uint16(23517), + 18: uint16(23529), + 19: uint16(24515), + 20: uint16(24910), + 21: uint16(25391), + 22: uint16(26032), + 23: uint16(26187), + 24: uint16(26862), + 25: uint16(27035), + 26: uint16(28024), + 27: uint16(28145), + 28: uint16(30003), + 29: uint16(30137), + 30: uint16(30495), + 31: uint16(31070), + 32: uint16(31206), + 33: uint16(32051), + 34: uint16(33251), + 35: uint16(33455), + 36: uint16(34218), + 37: uint16(35242), + 38: uint16(35386), + 39: uint16(36523), + 40: uint16(36763), + 41: uint16(36914), + 42: uint16(37341), + 43: uint16(38663), + 44: uint16(20154), + 45: uint16(20161), + 46: uint16(20995), + 47: uint16(22645), + 48: uint16(22764), + 49: uint16(23563), + 50: uint16(29978), + 51: uint16(23613), + 52: uint16(33102), + 53: uint16(35338), + 54: uint16(36805), + 55: uint16(38499), + 56: uint16(38765), + 57: uint16(31525), + 58: uint16(35535), + 59: uint16(38920), + 60: uint16(37218), + 61: uint16(22259), + 62: uint16(21416), + 63: uint16(36887), + 64: uint16(21561), + 65: uint16(22402), + 66: uint16(24101), + 67: uint16(25512), + 68: uint16(27700), + 69: uint16(28810), + 70: uint16(30561), + 71: uint16(31883), + 72: uint16(32736), + 73: uint16(34928), + 74: uint16(36930), + 75: uint16(37204), + 76: uint16(37648), + 77: uint16(37656), + 78: uint16(38543), + 79: uint16(29790), + 80: uint16(39620), + 81: uint16(23815), + 82: uint16(23913), + 83: uint16(25968), + 84: uint16(26530), + 85: uint16(36264), + 86: uint16(38619), + 87: uint16(25454), + 88: uint16(26441), + 89: uint16(26905), + 90: uint16(33733), + 91: uint16(38935), + 92: uint16(38592), + 93: uint16(35070), + }, + 31: { + 0: uint16(28548), + 1: uint16(25722), + 2: uint16(23544), + 3: uint16(19990), + 4: uint16(28716), + 5: uint16(30045), + 6: uint16(26159), + 7: uint16(20932), + 8: uint16(21046), + 9: uint16(21218), + 10: uint16(22995), + 11: uint16(24449), + 12: uint16(24615), + 13: uint16(25104), + 14: uint16(25919), + 15: uint16(25972), + 16: uint16(26143), + 17: uint16(26228), + 18: uint16(26866), + 19: uint16(26646), + 20: uint16(27491), + 21: uint16(28165), + 22: uint16(29298), + 23: uint16(29983), + 24: uint16(30427), + 25: uint16(31934), + 26: uint16(32854), + 27: uint16(22768), + 28: uint16(35069), + 29: uint16(35199), + 30: uint16(35488), + 31: uint16(35475), + 32: uint16(35531), + 33: uint16(36893), + 34: uint16(37266), + 35: uint16(38738), + 36: uint16(38745), + 37: uint16(25993), + 38: uint16(31246), + 39: uint16(33030), + 40: uint16(38587), + 41: uint16(24109), + 42: uint16(24796), + 43: uint16(25114), + 44: uint16(26021), + 45: uint16(26132), + 46: uint16(26512), + 47: uint16(30707), + 48: uint16(31309), + 49: uint16(31821), + 50: uint16(32318), + 51: uint16(33034), + 52: uint16(36012), + 53: uint16(36196), + 54: uint16(36321), + 55: uint16(36447), + 56: uint16(30889), + 57: uint16(20999), + 58: uint16(25305), + 59: uint16(25509), + 60: uint16(25666), + 61: uint16(25240), + 62: uint16(35373), + 63: uint16(31363), + 64: uint16(31680), + 65: uint16(35500), + 66: uint16(38634), + 67: uint16(32118), + 68: uint16(33292), + 69: uint16(34633), + 70: uint16(20185), + 71: uint16(20808), + 72: uint16(21315), + 73: uint16(21344), + 74: uint16(23459), + 75: uint16(23554), + 76: uint16(23574), + 77: uint16(24029), + 78: uint16(25126), + 79: uint16(25159), + 80: uint16(25776), + 81: uint16(26643), + 82: uint16(26676), + 83: uint16(27849), + 84: uint16(27973), + 85: uint16(27927), + 86: uint16(26579), + 87: uint16(28508), + 88: uint16(29006), + 89: uint16(29053), + 90: uint16(26059), + 91: uint16(31359), + 92: uint16(31661), + 93: uint16(32218), + }, + 32: { + 0: uint16(32330), + 1: uint16(32680), + 2: uint16(33146), + 3: uint16(33307), + 4: uint16(33337), + 5: uint16(34214), + 6: uint16(35438), + 7: uint16(36046), + 8: uint16(36341), + 9: uint16(36984), + 10: uint16(36983), + 11: uint16(37549), + 12: uint16(37521), + 13: uint16(38275), + 14: uint16(39854), + 15: uint16(21069), + 16: uint16(21892), + 17: uint16(28472), + 18: uint16(28982), + 19: uint16(20840), + 20: uint16(31109), + 21: uint16(32341), + 22: uint16(33203), + 23: uint16(31950), + 24: uint16(22092), + 25: uint16(22609), + 26: uint16(23720), + 27: uint16(25514), + 28: uint16(26366), + 29: uint16(26365), + 30: uint16(26970), + 31: uint16(29401), + 32: uint16(30095), + 33: uint16(30094), + 34: uint16(30990), + 35: uint16(31062), + 36: uint16(31199), + 37: uint16(31895), + 38: uint16(32032), + 39: uint16(32068), + 40: uint16(34311), + 41: uint16(35380), + 42: uint16(38459), + 43: uint16(36961), + 44: uint16(40736), + 45: uint16(20711), + 46: uint16(21109), + 47: uint16(21452), + 48: uint16(21474), + 49: uint16(20489), + 50: uint16(21930), + 51: uint16(22766), + 52: uint16(22863), + 53: uint16(29245), + 54: uint16(23435), + 55: uint16(23652), + 56: uint16(21277), + 57: uint16(24803), + 58: uint16(24819), + 59: uint16(25436), + 60: uint16(25475), + 61: uint16(25407), + 62: uint16(25531), + 63: uint16(25805), + 64: uint16(26089), + 65: uint16(26361), + 66: uint16(24035), + 67: uint16(27085), + 68: uint16(27133), + 69: uint16(28437), + 70: uint16(29157), + 71: uint16(20105), + 72: uint16(30185), + 73: uint16(30456), + 74: uint16(31379), + 75: uint16(31967), + 76: uint16(32207), + 77: uint16(32156), + 78: uint16(32865), + 79: uint16(33609), + 80: uint16(33624), + 81: uint16(33900), + 82: uint16(33980), + 83: uint16(34299), + 84: uint16(35013), + 85: uint16(36208), + 86: uint16(36865), + 87: uint16(36973), + 88: uint16(37783), + 89: uint16(38684), + 90: uint16(39442), + 91: uint16(20687), + 92: uint16(22679), + 93: uint16(24974), + }, + 33: { + 0: uint16(33235), + 1: uint16(34101), + 2: uint16(36104), + 3: uint16(36896), + 4: uint16(20419), + 5: uint16(20596), + 6: uint16(21063), + 7: uint16(21363), + 8: uint16(24687), + 9: uint16(25417), + 10: uint16(26463), + 11: uint16(28204), + 12: uint16(36275), + 13: uint16(36895), + 14: uint16(20439), + 15: uint16(23646), + 16: uint16(36042), + 17: uint16(26063), + 18: uint16(32154), + 19: uint16(21330), + 20: uint16(34966), + 21: uint16(20854), + 22: uint16(25539), + 23: uint16(23384), + 24: uint16(23403), + 25: uint16(23562), + 26: uint16(25613), + 27: uint16(26449), + 28: uint16(36956), + 29: uint16(20182), + 30: uint16(22810), + 31: uint16(22826), + 32: uint16(27760), + 33: uint16(35409), + 34: uint16(21822), + 35: uint16(22549), + 36: uint16(22949), + 37: uint16(24816), + 38: uint16(25171), + 39: uint16(26561), + 40: uint16(33333), + 41: uint16(26965), + 42: uint16(38464), + 43: uint16(39364), + 44: uint16(39464), + 45: uint16(20307), + 46: uint16(22534), + 47: uint16(23550), + 48: uint16(32784), + 49: uint16(23729), + 50: uint16(24111), + 51: uint16(24453), + 52: uint16(24608), + 53: uint16(24907), + 54: uint16(25140), + 55: uint16(26367), + 56: uint16(27888), + 57: uint16(28382), + 58: uint16(32974), + 59: uint16(33151), + 60: uint16(33492), + 61: uint16(34955), + 62: uint16(36024), + 63: uint16(36864), + 64: uint16(36910), + 65: uint16(38538), + 66: uint16(40667), + 67: uint16(39899), + 68: uint16(20195), + 69: uint16(21488), + 70: uint16(22823), + 71: uint16(31532), + 72: uint16(37261), + 73: uint16(38988), + 74: uint16(40441), + 75: uint16(28381), + 76: uint16(28711), + 77: uint16(21331), + 78: uint16(21828), + 79: uint16(23429), + 80: uint16(25176), + 81: uint16(25246), + 82: uint16(25299), + 83: uint16(27810), + 84: uint16(28655), + 85: uint16(29730), + 86: uint16(35351), + 87: uint16(37944), + 88: uint16(28609), + 89: uint16(35582), + 90: uint16(33592), + 91: uint16(20967), + 92: uint16(34552), + 93: uint16(21482), + }, + 34: { + 0: uint16(21481), + 1: uint16(20294), + 2: uint16(36948), + 3: uint16(36784), + 4: uint16(22890), + 5: uint16(33073), + 6: uint16(24061), + 7: uint16(31466), + 8: uint16(36799), + 9: uint16(26842), + 10: uint16(35895), + 11: uint16(29432), + 12: uint16(40008), + 13: uint16(27197), + 14: uint16(35504), + 15: uint16(20025), + 16: uint16(21336), + 17: uint16(22022), + 18: uint16(22374), + 19: uint16(25285), + 20: uint16(25506), + 21: uint16(26086), + 22: uint16(27470), + 23: uint16(28129), + 24: uint16(28251), + 25: uint16(28845), + 26: uint16(30701), + 27: uint16(31471), + 28: uint16(31658), + 29: uint16(32187), + 30: uint16(32829), + 31: uint16(32966), + 32: uint16(34507), + 33: uint16(35477), + 34: uint16(37723), + 35: uint16(22243), + 36: uint16(22727), + 37: uint16(24382), + 38: uint16(26029), + 39: uint16(26262), + 40: uint16(27264), + 41: uint16(27573), + 42: uint16(30007), + 43: uint16(35527), + 44: uint16(20516), + 45: uint16(30693), + 46: uint16(22320), + 47: uint16(24347), + 48: uint16(24677), + 49: uint16(26234), + 50: uint16(27744), + 51: uint16(30196), + 52: uint16(31258), + 53: uint16(32622), + 54: uint16(33268), + 55: uint16(34584), + 56: uint16(36933), + 57: uint16(39347), + 58: uint16(31689), + 59: uint16(30044), + 60: uint16(31481), + 61: uint16(31569), + 62: uint16(33988), + 63: uint16(36880), + 64: uint16(31209), + 65: uint16(31378), + 66: uint16(33590), + 67: uint16(23265), + 68: uint16(30528), + 69: uint16(20013), + 70: uint16(20210), + 71: uint16(23449), + 72: uint16(24544), + 73: uint16(25277), + 74: uint16(26172), + 75: uint16(26609), + 76: uint16(27880), + 77: uint16(34411), + 78: uint16(34935), + 79: uint16(35387), + 80: uint16(37198), + 81: uint16(37619), + 82: uint16(39376), + 83: uint16(27159), + 84: uint16(28710), + 85: uint16(29482), + 86: uint16(33511), + 87: uint16(33879), + 88: uint16(36015), + 89: uint16(19969), + 90: uint16(20806), + 91: uint16(20939), + 92: uint16(21899), + 93: uint16(23541), + }, + 35: { + 0: uint16(24086), + 1: uint16(24115), + 2: uint16(24193), + 3: uint16(24340), + 4: uint16(24373), + 5: uint16(24427), + 6: uint16(24500), + 7: uint16(25074), + 8: uint16(25361), + 9: uint16(26274), + 10: uint16(26397), + 11: uint16(28526), + 12: uint16(29266), + 13: uint16(30010), + 14: uint16(30522), + 15: uint16(32884), + 16: uint16(33081), + 17: uint16(33144), + 18: uint16(34678), + 19: uint16(35519), + 20: uint16(35548), + 21: uint16(36229), + 22: uint16(36339), + 23: uint16(37530), + 24: uint16(38263), + 25: uint16(38914), + 26: uint16(40165), + 27: uint16(21189), + 28: uint16(25431), + 29: uint16(30452), + 30: uint16(26389), + 31: uint16(27784), + 32: uint16(29645), + 33: uint16(36035), + 34: uint16(37806), + 35: uint16(38515), + 36: uint16(27941), + 37: uint16(22684), + 38: uint16(26894), + 39: uint16(27084), + 40: uint16(36861), + 41: uint16(37786), + 42: uint16(30171), + 43: uint16(36890), + 44: uint16(22618), + 45: uint16(26626), + 46: uint16(25524), + 47: uint16(27131), + 48: uint16(20291), + 49: uint16(28460), + 50: uint16(26584), + 51: uint16(36795), + 52: uint16(34086), + 53: uint16(32180), + 54: uint16(37716), + 55: uint16(26943), + 56: uint16(28528), + 57: uint16(22378), + 58: uint16(22775), + 59: uint16(23340), + 60: uint16(32044), + 61: uint16(29226), + 62: uint16(21514), + 63: uint16(37347), + 64: uint16(40372), + 65: uint16(20141), + 66: uint16(20302), + 67: uint16(20572), + 68: uint16(20597), + 69: uint16(21059), + 70: uint16(35998), + 71: uint16(21576), + 72: uint16(22564), + 73: uint16(23450), + 74: uint16(24093), + 75: uint16(24213), + 76: uint16(24237), + 77: uint16(24311), + 78: uint16(24351), + 79: uint16(24716), + 80: uint16(25269), + 81: uint16(25402), + 82: uint16(25552), + 83: uint16(26799), + 84: uint16(27712), + 85: uint16(30855), + 86: uint16(31118), + 87: uint16(31243), + 88: uint16(32224), + 89: uint16(33351), + 90: uint16(35330), + 91: uint16(35558), + 92: uint16(36420), + 93: uint16(36883), + }, + 36: { + 0: uint16(37048), + 1: uint16(37165), + 2: uint16(37336), + 3: uint16(40718), + 4: uint16(27877), + 5: uint16(25688), + 6: uint16(25826), + 7: uint16(25973), + 8: uint16(28404), + 9: uint16(30340), + 10: uint16(31515), + 11: uint16(36969), + 12: uint16(37841), + 13: uint16(28346), + 14: uint16(21746), + 15: uint16(24505), + 16: uint16(25764), + 17: uint16(36685), + 18: uint16(36845), + 19: uint16(37444), + 20: uint16(20856), + 21: uint16(22635), + 22: uint16(22825), + 23: uint16(23637), + 24: uint16(24215), + 25: uint16(28155), + 26: uint16(32399), + 27: uint16(29980), + 28: uint16(36028), + 29: uint16(36578), + 30: uint16(39003), + 31: uint16(28857), + 32: uint16(20253), + 33: uint16(27583), + 34: uint16(28593), + 35: uint16(30000), + 36: uint16(38651), + 37: uint16(20814), + 38: uint16(21520), + 39: uint16(22581), + 40: uint16(22615), + 41: uint16(22956), + 42: uint16(23648), + 43: uint16(24466), + 44: uint16(26007), + 45: uint16(26460), + 46: uint16(28193), + 47: uint16(30331), + 48: uint16(33759), + 49: uint16(36077), + 50: uint16(36884), + 51: uint16(37117), + 52: uint16(37709), + 53: uint16(30757), + 54: uint16(30778), + 55: uint16(21162), + 56: uint16(24230), + 57: uint16(22303), + 58: uint16(22900), + 59: uint16(24594), + 60: uint16(20498), + 61: uint16(20826), + 62: uint16(20908), + 63: uint16(20941), + 64: uint16(20992), + 65: uint16(21776), + 66: uint16(22612), + 67: uint16(22616), + 68: uint16(22871), + 69: uint16(23445), + 70: uint16(23798), + 71: uint16(23947), + 72: uint16(24764), + 73: uint16(25237), + 74: uint16(25645), + 75: uint16(26481), + 76: uint16(26691), + 77: uint16(26812), + 78: uint16(26847), + 79: uint16(30423), + 80: uint16(28120), + 81: uint16(28271), + 82: uint16(28059), + 83: uint16(28783), + 84: uint16(29128), + 85: uint16(24403), + 86: uint16(30168), + 87: uint16(31095), + 88: uint16(31561), + 89: uint16(31572), + 90: uint16(31570), + 91: uint16(31958), + 92: uint16(32113), + 93: uint16(21040), + }, + 37: { + 0: uint16(33891), + 1: uint16(34153), + 2: uint16(34276), + 3: uint16(35342), + 4: uint16(35588), + 5: uint16(35910), + 6: uint16(36367), + 7: uint16(36867), + 8: uint16(36879), + 9: uint16(37913), + 10: uint16(38518), + 11: uint16(38957), + 12: uint16(39472), + 13: uint16(38360), + 14: uint16(20685), + 15: uint16(21205), + 16: uint16(21516), + 17: uint16(22530), + 18: uint16(23566), + 19: uint16(24999), + 20: uint16(25758), + 21: uint16(27934), + 22: uint16(30643), + 23: uint16(31461), + 24: uint16(33012), + 25: uint16(33796), + 26: uint16(36947), + 27: uint16(37509), + 28: uint16(23776), + 29: uint16(40199), + 30: uint16(21311), + 31: uint16(24471), + 32: uint16(24499), + 33: uint16(28060), + 34: uint16(29305), + 35: uint16(30563), + 36: uint16(31167), + 37: uint16(31716), + 38: uint16(27602), + 39: uint16(29420), + 40: uint16(35501), + 41: uint16(26627), + 42: uint16(27233), + 43: uint16(20984), + 44: uint16(31361), + 45: uint16(26932), + 46: uint16(23626), + 47: uint16(40182), + 48: uint16(33515), + 49: uint16(23493), + 50: uint16(37193), + 51: uint16(28702), + 52: uint16(22136), + 53: uint16(23663), + 54: uint16(24775), + 55: uint16(25958), + 56: uint16(27788), + 57: uint16(35930), + 58: uint16(36929), + 59: uint16(38931), + 60: uint16(21585), + 61: uint16(26311), + 62: uint16(37389), + 63: uint16(22856), + 64: uint16(37027), + 65: uint16(20869), + 66: uint16(20045), + 67: uint16(20970), + 68: uint16(34201), + 69: uint16(35598), + 70: uint16(28760), + 71: uint16(25466), + 72: uint16(37707), + 73: uint16(26978), + 74: uint16(39348), + 75: uint16(32260), + 76: uint16(30071), + 77: uint16(21335), + 78: uint16(26976), + 79: uint16(36575), + 80: uint16(38627), + 81: uint16(27741), + 82: uint16(20108), + 83: uint16(23612), + 84: uint16(24336), + 85: uint16(36841), + 86: uint16(21250), + 87: uint16(36049), + 88: uint16(32905), + 89: uint16(34425), + 90: uint16(24319), + 91: uint16(26085), + 92: uint16(20083), + 93: uint16(20837), + }, + 38: { + 0: uint16(22914), + 1: uint16(23615), + 2: uint16(38894), + 3: uint16(20219), + 4: uint16(22922), + 5: uint16(24525), + 6: uint16(35469), + 7: uint16(28641), + 8: uint16(31152), + 9: uint16(31074), + 10: uint16(23527), + 11: uint16(33905), + 12: uint16(29483), + 13: uint16(29105), + 14: uint16(24180), + 15: uint16(24565), + 16: uint16(25467), + 17: uint16(25754), + 18: uint16(29123), + 19: uint16(31896), + 20: uint16(20035), + 21: uint16(24316), + 22: uint16(20043), + 23: uint16(22492), + 24: uint16(22178), + 25: uint16(24745), + 26: uint16(28611), + 27: uint16(32013), + 28: uint16(33021), + 29: uint16(33075), + 30: uint16(33215), + 31: uint16(36786), + 32: uint16(35223), + 33: uint16(34468), + 34: uint16(24052), + 35: uint16(25226), + 36: uint16(25773), + 37: uint16(35207), + 38: uint16(26487), + 39: uint16(27874), + 40: uint16(27966), + 41: uint16(29750), + 42: uint16(30772), + 43: uint16(23110), + 44: uint16(32629), + 45: uint16(33453), + 46: uint16(39340), + 47: uint16(20467), + 48: uint16(24259), + 49: uint16(25309), + 50: uint16(25490), + 51: uint16(25943), + 52: uint16(26479), + 53: uint16(30403), + 54: uint16(29260), + 55: uint16(32972), + 56: uint16(32954), + 57: uint16(36649), + 58: uint16(37197), + 59: uint16(20493), + 60: uint16(22521), + 61: uint16(23186), + 62: uint16(26757), + 63: uint16(26995), + 64: uint16(29028), + 65: uint16(29437), + 66: uint16(36023), + 67: uint16(22770), + 68: uint16(36064), + 69: uint16(38506), + 70: uint16(36889), + 71: uint16(34687), + 72: uint16(31204), + 73: uint16(30695), + 74: uint16(33833), + 75: uint16(20271), + 76: uint16(21093), + 77: uint16(21338), + 78: uint16(25293), + 79: uint16(26575), + 80: uint16(27850), + 81: uint16(30333), + 82: uint16(31636), + 83: uint16(31893), + 84: uint16(33334), + 85: uint16(34180), + 86: uint16(36843), + 87: uint16(26333), + 88: uint16(28448), + 89: uint16(29190), + 90: uint16(32283), + 91: uint16(33707), + 92: uint16(39361), + 93: uint16(40614), + }, + 39: { + 0: uint16(20989), + 1: uint16(31665), + 2: uint16(30834), + 3: uint16(31672), + 4: uint16(32903), + 5: uint16(31560), + 6: uint16(27368), + 7: uint16(24161), + 8: uint16(32908), + 9: uint16(30033), + 10: uint16(30048), + 11: uint16(20843), + 12: uint16(37474), + 13: uint16(28300), + 14: uint16(30330), + 15: uint16(37271), + 16: uint16(39658), + 17: uint16(20240), + 18: uint16(32624), + 19: uint16(25244), + 20: uint16(31567), + 21: uint16(38309), + 22: uint16(40169), + 23: uint16(22138), + 24: uint16(22617), + 25: uint16(34532), + 26: uint16(38588), + 27: uint16(20276), + 28: uint16(21028), + 29: uint16(21322), + 30: uint16(21453), + 31: uint16(21467), + 32: uint16(24070), + 33: uint16(25644), + 34: uint16(26001), + 35: uint16(26495), + 36: uint16(27710), + 37: uint16(27726), + 38: uint16(29256), + 39: uint16(29359), + 40: uint16(29677), + 41: uint16(30036), + 42: uint16(32321), + 43: uint16(33324), + 44: uint16(34281), + 45: uint16(36009), + 46: uint16(31684), + 47: uint16(37318), + 48: uint16(29033), + 49: uint16(38930), + 50: uint16(39151), + 51: uint16(25405), + 52: uint16(26217), + 53: uint16(30058), + 54: uint16(30436), + 55: uint16(30928), + 56: uint16(34115), + 57: uint16(34542), + 58: uint16(21290), + 59: uint16(21329), + 60: uint16(21542), + 61: uint16(22915), + 62: uint16(24199), + 63: uint16(24444), + 64: uint16(24754), + 65: uint16(25161), + 66: uint16(25209), + 67: uint16(25259), + 68: uint16(26000), + 69: uint16(27604), + 70: uint16(27852), + 71: uint16(30130), + 72: uint16(30382), + 73: uint16(30865), + 74: uint16(31192), + 75: uint16(32203), + 76: uint16(32631), + 77: uint16(32933), + 78: uint16(34987), + 79: uint16(35513), + 80: uint16(36027), + 81: uint16(36991), + 82: uint16(38750), + 83: uint16(39131), + 84: uint16(27147), + 85: uint16(31800), + 86: uint16(20633), + 87: uint16(23614), + 88: uint16(24494), + 89: uint16(26503), + 90: uint16(27608), + 91: uint16(29749), + 92: uint16(30473), + 93: uint16(32654), + }, + 40: { + 0: uint16(40763), + 1: uint16(26570), + 2: uint16(31255), + 3: uint16(21305), + 4: uint16(30091), + 5: uint16(39661), + 6: uint16(24422), + 7: uint16(33181), + 8: uint16(33777), + 9: uint16(32920), + 10: uint16(24380), + 11: uint16(24517), + 12: uint16(30050), + 13: uint16(31558), + 14: uint16(36924), + 15: uint16(26727), + 16: uint16(23019), + 17: uint16(23195), + 18: uint16(32016), + 19: uint16(30334), + 20: uint16(35628), + 21: uint16(20469), + 22: uint16(24426), + 23: uint16(27161), + 24: uint16(27703), + 25: uint16(28418), + 26: uint16(29922), + 27: uint16(31080), + 28: uint16(34920), + 29: uint16(35413), + 30: uint16(35961), + 31: uint16(24287), + 32: uint16(25551), + 33: uint16(30149), + 34: uint16(31186), + 35: uint16(33495), + 36: uint16(37672), + 37: uint16(37618), + 38: uint16(33948), + 39: uint16(34541), + 40: uint16(39981), + 41: uint16(21697), + 42: uint16(24428), + 43: uint16(25996), + 44: uint16(27996), + 45: uint16(28693), + 46: uint16(36007), + 47: uint16(36051), + 48: uint16(38971), + 49: uint16(25935), + 50: uint16(29942), + 51: uint16(19981), + 52: uint16(20184), + 53: uint16(22496), + 54: uint16(22827), + 55: uint16(23142), + 56: uint16(23500), + 57: uint16(20904), + 58: uint16(24067), + 59: uint16(24220), + 60: uint16(24598), + 61: uint16(25206), + 62: uint16(25975), + 63: uint16(26023), + 64: uint16(26222), + 65: uint16(28014), + 66: uint16(29238), + 67: uint16(31526), + 68: uint16(33104), + 69: uint16(33178), + 70: uint16(33433), + 71: uint16(35676), + 72: uint16(36000), + 73: uint16(36070), + 74: uint16(36212), + 75: uint16(38428), + 76: uint16(38468), + 77: uint16(20398), + 78: uint16(25771), + 79: uint16(27494), + 80: uint16(33310), + 81: uint16(33889), + 82: uint16(34154), + 83: uint16(37096), + 84: uint16(23553), + 85: uint16(26963), + 86: uint16(39080), + 87: uint16(33914), + 88: uint16(34135), + 89: uint16(20239), + 90: uint16(21103), + 91: uint16(24489), + 92: uint16(24133), + 93: uint16(26381), + }, + 41: { + 0: uint16(31119), + 1: uint16(33145), + 2: uint16(35079), + 3: uint16(35206), + 4: uint16(28149), + 5: uint16(24343), + 6: uint16(25173), + 7: uint16(27832), + 8: uint16(20175), + 9: uint16(29289), + 10: uint16(39826), + 11: uint16(20998), + 12: uint16(21563), + 13: uint16(22132), + 14: uint16(22707), + 15: uint16(24996), + 16: uint16(25198), + 17: uint16(28954), + 18: uint16(22894), + 19: uint16(31881), + 20: uint16(31966), + 21: uint16(32027), + 22: uint16(38640), + 23: uint16(25991), + 24: uint16(32862), + 25: uint16(19993), + 26: uint16(20341), + 27: uint16(20853), + 28: uint16(22592), + 29: uint16(24163), + 30: uint16(24179), + 31: uint16(24330), + 32: uint16(26564), + 33: uint16(20006), + 34: uint16(34109), + 35: uint16(38281), + 36: uint16(38491), + 37: uint16(31859), + 38: uint16(38913), + 39: uint16(20731), + 40: uint16(22721), + 41: uint16(30294), + 42: uint16(30887), + 43: uint16(21029), + 44: uint16(30629), + 45: uint16(34065), + 46: uint16(31622), + 47: uint16(20559), + 48: uint16(22793), + 49: uint16(29255), + 50: uint16(31687), + 51: uint16(32232), + 52: uint16(36794), + 53: uint16(36820), + 54: uint16(36941), + 55: uint16(20415), + 56: uint16(21193), + 57: uint16(23081), + 58: uint16(24321), + 59: uint16(38829), + 60: uint16(20445), + 61: uint16(33303), + 62: uint16(37610), + 63: uint16(22275), + 64: uint16(25429), + 65: uint16(27497), + 66: uint16(29995), + 67: uint16(35036), + 68: uint16(36628), + 69: uint16(31298), + 70: uint16(21215), + 71: uint16(22675), + 72: uint16(24917), + 73: uint16(25098), + 74: uint16(26286), + 75: uint16(27597), + 76: uint16(31807), + 77: uint16(33769), + 78: uint16(20515), + 79: uint16(20472), + 80: uint16(21253), + 81: uint16(21574), + 82: uint16(22577), + 83: uint16(22857), + 84: uint16(23453), + 85: uint16(23792), + 86: uint16(23791), + 87: uint16(23849), + 88: uint16(24214), + 89: uint16(25265), + 90: uint16(25447), + 91: uint16(25918), + 92: uint16(26041), + 93: uint16(26379), + }, + 42: { + 0: uint16(27861), + 1: uint16(27873), + 2: uint16(28921), + 3: uint16(30770), + 4: uint16(32299), + 5: uint16(32990), + 6: uint16(33459), + 7: uint16(33804), + 8: uint16(34028), + 9: uint16(34562), + 10: uint16(35090), + 11: uint16(35370), + 12: uint16(35914), + 13: uint16(37030), + 14: uint16(37586), + 15: uint16(39165), + 16: uint16(40179), + 17: uint16(40300), + 18: uint16(20047), + 19: uint16(20129), + 20: uint16(20621), + 21: uint16(21078), + 22: uint16(22346), + 23: uint16(22952), + 24: uint16(24125), + 25: uint16(24536), + 26: uint16(24537), + 27: uint16(25151), + 28: uint16(26292), + 29: uint16(26395), + 30: uint16(26576), + 31: uint16(26834), + 32: uint16(20882), + 33: uint16(32033), + 34: uint16(32938), + 35: uint16(33192), + 36: uint16(35584), + 37: uint16(35980), + 38: uint16(36031), + 39: uint16(37502), + 40: uint16(38450), + 41: uint16(21536), + 42: uint16(38956), + 43: uint16(21271), + 44: uint16(20693), + 45: uint16(21340), + 46: uint16(22696), + 47: uint16(25778), + 48: uint16(26420), + 49: uint16(29287), + 50: uint16(30566), + 51: uint16(31302), + 52: uint16(37350), + 53: uint16(21187), + 54: uint16(27809), + 55: uint16(27526), + 56: uint16(22528), + 57: uint16(24140), + 58: uint16(22868), + 59: uint16(26412), + 60: uint16(32763), + 61: uint16(20961), + 62: uint16(30406), + 63: uint16(25705), + 64: uint16(30952), + 65: uint16(39764), + 66: uint16(40635), + 67: uint16(22475), + 68: uint16(22969), + 69: uint16(26151), + 70: uint16(26522), + 71: uint16(27598), + 72: uint16(21737), + 73: uint16(27097), + 74: uint16(24149), + 75: uint16(33180), + 76: uint16(26517), + 77: uint16(39850), + 78: uint16(26622), + 79: uint16(40018), + 80: uint16(26717), + 81: uint16(20134), + 82: uint16(20451), + 83: uint16(21448), + 84: uint16(25273), + 85: uint16(26411), + 86: uint16(27819), + 87: uint16(36804), + 88: uint16(20397), + 89: uint16(32365), + 90: uint16(40639), + 91: uint16(19975), + 92: uint16(24930), + 93: uint16(28288), + }, + 43: { + 0: uint16(28459), + 1: uint16(34067), + 2: uint16(21619), + 3: uint16(26410), + 4: uint16(39749), + 5: uint16(24051), + 6: uint16(31637), + 7: uint16(23724), + 8: uint16(23494), + 9: uint16(34588), + 10: uint16(28234), + 11: uint16(34001), + 12: uint16(31252), + 13: uint16(33032), + 14: uint16(22937), + 15: uint16(31885), + 16: uint16(27665), + 17: uint16(30496), + 18: uint16(21209), + 19: uint16(22818), + 20: uint16(28961), + 21: uint16(29279), + 22: uint16(30683), + 23: uint16(38695), + 24: uint16(40289), + 25: uint16(26891), + 26: uint16(23167), + 27: uint16(23064), + 28: uint16(20901), + 29: uint16(21517), + 30: uint16(21629), + 31: uint16(26126), + 32: uint16(30431), + 33: uint16(36855), + 34: uint16(37528), + 35: uint16(40180), + 36: uint16(23018), + 37: uint16(29277), + 38: uint16(28357), + 39: uint16(20813), + 40: uint16(26825), + 41: uint16(32191), + 42: uint16(32236), + 43: uint16(38754), + 44: uint16(40634), + 45: uint16(25720), + 46: uint16(27169), + 47: uint16(33538), + 48: uint16(22916), + 49: uint16(23391), + 50: uint16(27611), + 51: uint16(29467), + 52: uint16(30450), + 53: uint16(32178), + 54: uint16(32791), + 55: uint16(33945), + 56: uint16(20786), + 57: uint16(26408), + 58: uint16(40665), + 59: uint16(30446), + 60: uint16(26466), + 61: uint16(21247), + 62: uint16(39173), + 63: uint16(23588), + 64: uint16(25147), + 65: uint16(31870), + 66: uint16(36016), + 67: uint16(21839), + 68: uint16(24758), + 69: uint16(32011), + 70: uint16(38272), + 71: uint16(21249), + 72: uint16(20063), + 73: uint16(20918), + 74: uint16(22812), + 75: uint16(29242), + 76: uint16(32822), + 77: uint16(37326), + 78: uint16(24357), + 79: uint16(30690), + 80: uint16(21380), + 81: uint16(24441), + 82: uint16(32004), + 83: uint16(34220), + 84: uint16(35379), + 85: uint16(36493), + 86: uint16(38742), + 87: uint16(26611), + 88: uint16(34222), + 89: uint16(37971), + 90: uint16(24841), + 91: uint16(24840), + 92: uint16(27833), + 93: uint16(30290), + }, + 44: { + 0: uint16(35565), + 1: uint16(36664), + 2: uint16(21807), + 3: uint16(20305), + 4: uint16(20778), + 5: uint16(21191), + 6: uint16(21451), + 7: uint16(23461), + 8: uint16(24189), + 9: uint16(24736), + 10: uint16(24962), + 11: uint16(25558), + 12: uint16(26377), + 13: uint16(26586), + 14: uint16(28263), + 15: uint16(28044), + 16: uint16(29494), + 17: uint16(29495), + 18: uint16(30001), + 19: uint16(31056), + 20: uint16(35029), + 21: uint16(35480), + 22: uint16(36938), + 23: uint16(37009), + 24: uint16(37109), + 25: uint16(38596), + 26: uint16(34701), + 27: uint16(22805), + 28: uint16(20104), + 29: uint16(20313), + 30: uint16(19982), + 31: uint16(35465), + 32: uint16(36671), + 33: uint16(38928), + 34: uint16(20653), + 35: uint16(24188), + 36: uint16(22934), + 37: uint16(23481), + 38: uint16(24248), + 39: uint16(25562), + 40: uint16(25594), + 41: uint16(25793), + 42: uint16(26332), + 43: uint16(26954), + 44: uint16(27096), + 45: uint16(27915), + 46: uint16(28342), + 47: uint16(29076), + 48: uint16(29992), + 49: uint16(31407), + 50: uint16(32650), + 51: uint16(32768), + 52: uint16(33865), + 53: uint16(33993), + 54: uint16(35201), + 55: uint16(35617), + 56: uint16(36362), + 57: uint16(36965), + 58: uint16(38525), + 59: uint16(39178), + 60: uint16(24958), + 61: uint16(25233), + 62: uint16(27442), + 63: uint16(27779), + 64: uint16(28020), + 65: uint16(32716), + 66: uint16(32764), + 67: uint16(28096), + 68: uint16(32645), + 69: uint16(34746), + 70: uint16(35064), + 71: uint16(26469), + 72: uint16(33713), + 73: uint16(38972), + 74: uint16(38647), + 75: uint16(27931), + 76: uint16(32097), + 77: uint16(33853), + 78: uint16(37226), + 79: uint16(20081), + 80: uint16(21365), + 81: uint16(23888), + 82: uint16(27396), + 83: uint16(28651), + 84: uint16(34253), + 85: uint16(34349), + 86: uint16(35239), + 87: uint16(21033), + 88: uint16(21519), + 89: uint16(23653), + 90: uint16(26446), + 91: uint16(26792), + 92: uint16(29702), + 93: uint16(29827), + }, + 45: { + 0: uint16(30178), + 1: uint16(35023), + 2: uint16(35041), + 3: uint16(37324), + 4: uint16(38626), + 5: uint16(38520), + 6: uint16(24459), + 7: uint16(29575), + 8: uint16(31435), + 9: uint16(33870), + 10: uint16(25504), + 11: uint16(30053), + 12: uint16(21129), + 13: uint16(27969), + 14: uint16(28316), + 15: uint16(29705), + 16: uint16(30041), + 17: uint16(30827), + 18: uint16(31890), + 19: uint16(38534), + 20: uint16(31452), + 21: uint16(40845), + 22: uint16(20406), + 23: uint16(24942), + 24: uint16(26053), + 25: uint16(34396), + 26: uint16(20102), + 27: uint16(20142), + 28: uint16(20698), + 29: uint16(20001), + 30: uint16(20940), + 31: uint16(23534), + 32: uint16(26009), + 33: uint16(26753), + 34: uint16(28092), + 35: uint16(29471), + 36: uint16(30274), + 37: uint16(30637), + 38: uint16(31260), + 39: uint16(31975), + 40: uint16(33391), + 41: uint16(35538), + 42: uint16(36988), + 43: uint16(37327), + 44: uint16(38517), + 45: uint16(38936), + 46: uint16(21147), + 47: uint16(32209), + 48: uint16(20523), + 49: uint16(21400), + 50: uint16(26519), + 51: uint16(28107), + 52: uint16(29136), + 53: uint16(29747), + 54: uint16(33256), + 55: uint16(36650), + 56: uint16(38563), + 57: uint16(40023), + 58: uint16(40607), + 59: uint16(29792), + 60: uint16(22593), + 61: uint16(28057), + 62: uint16(32047), + 63: uint16(39006), + 64: uint16(20196), + 65: uint16(20278), + 66: uint16(20363), + 67: uint16(20919), + 68: uint16(21169), + 69: uint16(23994), + 70: uint16(24604), + 71: uint16(29618), + 72: uint16(31036), + 73: uint16(33491), + 74: uint16(37428), + 75: uint16(38583), + 76: uint16(38646), + 77: uint16(38666), + 78: uint16(40599), + 79: uint16(40802), + 80: uint16(26278), + 81: uint16(27508), + 82: uint16(21015), + 83: uint16(21155), + 84: uint16(28872), + 85: uint16(35010), + 86: uint16(24265), + 87: uint16(24651), + 88: uint16(24976), + 89: uint16(28451), + 90: uint16(29001), + 91: uint16(31806), + 92: uint16(32244), + 93: uint16(32879), + }, + 46: { + 0: uint16(34030), + 1: uint16(36899), + 2: uint16(37676), + 3: uint16(21570), + 4: uint16(39791), + 5: uint16(27347), + 6: uint16(28809), + 7: uint16(36034), + 8: uint16(36335), + 9: uint16(38706), + 10: uint16(21172), + 11: uint16(23105), + 12: uint16(24266), + 13: uint16(24324), + 14: uint16(26391), + 15: uint16(27004), + 16: uint16(27028), + 17: uint16(28010), + 18: uint16(28431), + 19: uint16(29282), + 20: uint16(29436), + 21: uint16(31725), + 22: uint16(32769), + 23: uint16(32894), + 24: uint16(34635), + 25: uint16(37070), + 26: uint16(20845), + 27: uint16(40595), + 28: uint16(31108), + 29: uint16(32907), + 30: uint16(37682), + 31: uint16(35542), + 32: uint16(20525), + 33: uint16(21644), + 34: uint16(35441), + 35: uint16(27498), + 36: uint16(36036), + 37: uint16(33031), + 38: uint16(24785), + 39: uint16(26528), + 40: uint16(40434), + 41: uint16(20121), + 42: uint16(20120), + 43: uint16(39952), + 44: uint16(35435), + 45: uint16(34241), + 46: uint16(34152), + 47: uint16(26880), + 48: uint16(28286), + 49: uint16(30871), + 50: uint16(33109), + }, + 47: { + 0: uint16(24332), + 1: uint16(19984), + 2: uint16(19989), + 3: uint16(20010), + 4: uint16(20017), + 5: uint16(20022), + 6: uint16(20028), + 7: uint16(20031), + 8: uint16(20034), + 9: uint16(20054), + 10: uint16(20056), + 11: uint16(20098), + 12: uint16(20101), + 13: uint16(35947), + 14: uint16(20106), + 15: uint16(33298), + 16: uint16(24333), + 17: uint16(20110), + 18: uint16(20126), + 19: uint16(20127), + 20: uint16(20128), + 21: uint16(20130), + 22: uint16(20144), + 23: uint16(20147), + 24: uint16(20150), + 25: uint16(20174), + 26: uint16(20173), + 27: uint16(20164), + 28: uint16(20166), + 29: uint16(20162), + 30: uint16(20183), + 31: uint16(20190), + 32: uint16(20205), + 33: uint16(20191), + 34: uint16(20215), + 35: uint16(20233), + 36: uint16(20314), + 37: uint16(20272), + 38: uint16(20315), + 39: uint16(20317), + 40: uint16(20311), + 41: uint16(20295), + 42: uint16(20342), + 43: uint16(20360), + 44: uint16(20367), + 45: uint16(20376), + 46: uint16(20347), + 47: uint16(20329), + 48: uint16(20336), + 49: uint16(20369), + 50: uint16(20335), + 51: uint16(20358), + 52: uint16(20374), + 53: uint16(20760), + 54: uint16(20436), + 55: uint16(20447), + 56: uint16(20430), + 57: uint16(20440), + 58: uint16(20443), + 59: uint16(20433), + 60: uint16(20442), + 61: uint16(20432), + 62: uint16(20452), + 63: uint16(20453), + 64: uint16(20506), + 65: uint16(20520), + 66: uint16(20500), + 67: uint16(20522), + 68: uint16(20517), + 69: uint16(20485), + 70: uint16(20252), + 71: uint16(20470), + 72: uint16(20513), + 73: uint16(20521), + 74: uint16(20524), + 75: uint16(20478), + 76: uint16(20463), + 77: uint16(20497), + 78: uint16(20486), + 79: uint16(20547), + 80: uint16(20551), + 81: uint16(26371), + 82: uint16(20565), + 83: uint16(20560), + 84: uint16(20552), + 85: uint16(20570), + 86: uint16(20566), + 87: uint16(20588), + 88: uint16(20600), + 89: uint16(20608), + 90: uint16(20634), + 91: uint16(20613), + 92: uint16(20660), + 93: uint16(20658), + }, + 48: { + 0: uint16(20681), + 1: uint16(20682), + 2: uint16(20659), + 3: uint16(20674), + 4: uint16(20694), + 5: uint16(20702), + 6: uint16(20709), + 7: uint16(20717), + 8: uint16(20707), + 9: uint16(20718), + 10: uint16(20729), + 11: uint16(20725), + 12: uint16(20745), + 13: uint16(20737), + 14: uint16(20738), + 15: uint16(20758), + 16: uint16(20757), + 17: uint16(20756), + 18: uint16(20762), + 19: uint16(20769), + 20: uint16(20794), + 21: uint16(20791), + 22: uint16(20796), + 23: uint16(20795), + 24: uint16(20799), + 25: uint16(20800), + 26: uint16(20818), + 27: uint16(20812), + 28: uint16(20820), + 29: uint16(20834), + 30: uint16(31480), + 31: uint16(20841), + 32: uint16(20842), + 33: uint16(20846), + 34: uint16(20864), + 35: uint16(20866), + 36: uint16(22232), + 37: uint16(20876), + 38: uint16(20873), + 39: uint16(20879), + 40: uint16(20881), + 41: uint16(20883), + 42: uint16(20885), + 43: uint16(20886), + 44: uint16(20900), + 45: uint16(20902), + 46: uint16(20898), + 47: uint16(20905), + 48: uint16(20906), + 49: uint16(20907), + 50: uint16(20915), + 51: uint16(20913), + 52: uint16(20914), + 53: uint16(20912), + 54: uint16(20917), + 55: uint16(20925), + 56: uint16(20933), + 57: uint16(20937), + 58: uint16(20955), + 59: uint16(20960), + 60: uint16(34389), + 61: uint16(20969), + 62: uint16(20973), + 63: uint16(20976), + 64: uint16(20981), + 65: uint16(20990), + 66: uint16(20996), + 67: uint16(21003), + 68: uint16(21012), + 69: uint16(21006), + 70: uint16(21031), + 71: uint16(21034), + 72: uint16(21038), + 73: uint16(21043), + 74: uint16(21049), + 75: uint16(21071), + 76: uint16(21060), + 77: uint16(21067), + 78: uint16(21068), + 79: uint16(21086), + 80: uint16(21076), + 81: uint16(21098), + 82: uint16(21108), + 83: uint16(21097), + 84: uint16(21107), + 85: uint16(21119), + 86: uint16(21117), + 87: uint16(21133), + 88: uint16(21140), + 89: uint16(21138), + 90: uint16(21105), + 91: uint16(21128), + 92: uint16(21137), + 93: uint16(36776), + }, + 49: { + 0: uint16(36775), + 1: uint16(21164), + 2: uint16(21165), + 3: uint16(21180), + 4: uint16(21173), + 5: uint16(21185), + 6: uint16(21197), + 7: uint16(21207), + 8: uint16(21214), + 9: uint16(21219), + 10: uint16(21222), + 11: uint16(39149), + 12: uint16(21216), + 13: uint16(21235), + 14: uint16(21237), + 15: uint16(21240), + 16: uint16(21241), + 17: uint16(21254), + 18: uint16(21256), + 19: uint16(30008), + 20: uint16(21261), + 21: uint16(21264), + 22: uint16(21263), + 23: uint16(21269), + 24: uint16(21274), + 25: uint16(21283), + 26: uint16(21295), + 27: uint16(21297), + 28: uint16(21299), + 29: uint16(21304), + 30: uint16(21312), + 31: uint16(21318), + 32: uint16(21317), + 33: uint16(19991), + 34: uint16(21321), + 35: uint16(21325), + 36: uint16(20950), + 37: uint16(21342), + 38: uint16(21353), + 39: uint16(21358), + 40: uint16(22808), + 41: uint16(21371), + 42: uint16(21367), + 43: uint16(21378), + 44: uint16(21398), + 45: uint16(21408), + 46: uint16(21414), + 47: uint16(21413), + 48: uint16(21422), + 49: uint16(21424), + 50: uint16(21430), + 51: uint16(21443), + 52: uint16(31762), + 53: uint16(38617), + 54: uint16(21471), + 55: uint16(26364), + 56: uint16(29166), + 57: uint16(21486), + 58: uint16(21480), + 59: uint16(21485), + 60: uint16(21498), + 61: uint16(21505), + 62: uint16(21565), + 63: uint16(21568), + 64: uint16(21548), + 65: uint16(21549), + 66: uint16(21564), + 67: uint16(21550), + 68: uint16(21558), + 69: uint16(21545), + 70: uint16(21533), + 71: uint16(21582), + 72: uint16(21647), + 73: uint16(21621), + 74: uint16(21646), + 75: uint16(21599), + 76: uint16(21617), + 77: uint16(21623), + 78: uint16(21616), + 79: uint16(21650), + 80: uint16(21627), + 81: uint16(21632), + 82: uint16(21622), + 83: uint16(21636), + 84: uint16(21648), + 85: uint16(21638), + 86: uint16(21703), + 87: uint16(21666), + 88: uint16(21688), + 89: uint16(21669), + 90: uint16(21676), + 91: uint16(21700), + 92: uint16(21704), + 93: uint16(21672), + }, + 50: { + 0: uint16(21675), + 1: uint16(21698), + 2: uint16(21668), + 3: uint16(21694), + 4: uint16(21692), + 5: uint16(21720), + 6: uint16(21733), + 7: uint16(21734), + 8: uint16(21775), + 9: uint16(21780), + 10: uint16(21757), + 11: uint16(21742), + 12: uint16(21741), + 13: uint16(21754), + 14: uint16(21730), + 15: uint16(21817), + 16: uint16(21824), + 17: uint16(21859), + 18: uint16(21836), + 19: uint16(21806), + 20: uint16(21852), + 21: uint16(21829), + 22: uint16(21846), + 23: uint16(21847), + 24: uint16(21816), + 25: uint16(21811), + 26: uint16(21853), + 27: uint16(21913), + 28: uint16(21888), + 29: uint16(21679), + 30: uint16(21898), + 31: uint16(21919), + 32: uint16(21883), + 33: uint16(21886), + 34: uint16(21912), + 35: uint16(21918), + 36: uint16(21934), + 37: uint16(21884), + 38: uint16(21891), + 39: uint16(21929), + 40: uint16(21895), + 41: uint16(21928), + 42: uint16(21978), + 43: uint16(21957), + 44: uint16(21983), + 45: uint16(21956), + 46: uint16(21980), + 47: uint16(21988), + 48: uint16(21972), + 49: uint16(22036), + 50: uint16(22007), + 51: uint16(22038), + 52: uint16(22014), + 53: uint16(22013), + 54: uint16(22043), + 55: uint16(22009), + 56: uint16(22094), + 57: uint16(22096), + 58: uint16(29151), + 59: uint16(22068), + 60: uint16(22070), + 61: uint16(22066), + 62: uint16(22072), + 63: uint16(22123), + 64: uint16(22116), + 65: uint16(22063), + 66: uint16(22124), + 67: uint16(22122), + 68: uint16(22150), + 69: uint16(22144), + 70: uint16(22154), + 71: uint16(22176), + 72: uint16(22164), + 73: uint16(22159), + 74: uint16(22181), + 75: uint16(22190), + 76: uint16(22198), + 77: uint16(22196), + 78: uint16(22210), + 79: uint16(22204), + 80: uint16(22209), + 81: uint16(22211), + 82: uint16(22208), + 83: uint16(22216), + 84: uint16(22222), + 85: uint16(22225), + 86: uint16(22227), + 87: uint16(22231), + 88: uint16(22254), + 89: uint16(22265), + 90: uint16(22272), + 91: uint16(22271), + 92: uint16(22276), + 93: uint16(22281), + }, + 51: { + 0: uint16(22280), + 1: uint16(22283), + 2: uint16(22285), + 3: uint16(22291), + 4: uint16(22296), + 5: uint16(22294), + 6: uint16(21959), + 7: uint16(22300), + 8: uint16(22310), + 9: uint16(22327), + 10: uint16(22328), + 11: uint16(22350), + 12: uint16(22331), + 13: uint16(22336), + 14: uint16(22351), + 15: uint16(22377), + 16: uint16(22464), + 17: uint16(22408), + 18: uint16(22369), + 19: uint16(22399), + 20: uint16(22409), + 21: uint16(22419), + 22: uint16(22432), + 23: uint16(22451), + 24: uint16(22436), + 25: uint16(22442), + 26: uint16(22448), + 27: uint16(22467), + 28: uint16(22470), + 29: uint16(22484), + 30: uint16(22482), + 31: uint16(22483), + 32: uint16(22538), + 33: uint16(22486), + 34: uint16(22499), + 35: uint16(22539), + 36: uint16(22553), + 37: uint16(22557), + 38: uint16(22642), + 39: uint16(22561), + 40: uint16(22626), + 41: uint16(22603), + 42: uint16(22640), + 43: uint16(27584), + 44: uint16(22610), + 45: uint16(22589), + 46: uint16(22649), + 47: uint16(22661), + 48: uint16(22713), + 49: uint16(22687), + 50: uint16(22699), + 51: uint16(22714), + 52: uint16(22750), + 53: uint16(22715), + 54: uint16(22712), + 55: uint16(22702), + 56: uint16(22725), + 57: uint16(22739), + 58: uint16(22737), + 59: uint16(22743), + 60: uint16(22745), + 61: uint16(22744), + 62: uint16(22757), + 63: uint16(22748), + 64: uint16(22756), + 65: uint16(22751), + 66: uint16(22767), + 67: uint16(22778), + 68: uint16(22777), + 69: uint16(22779), + 70: uint16(22780), + 71: uint16(22781), + 72: uint16(22786), + 73: uint16(22794), + 74: uint16(22800), + 75: uint16(22811), + 76: uint16(26790), + 77: uint16(22821), + 78: uint16(22828), + 79: uint16(22829), + 80: uint16(22834), + 81: uint16(22840), + 82: uint16(22846), + 83: uint16(31442), + 84: uint16(22869), + 85: uint16(22864), + 86: uint16(22862), + 87: uint16(22874), + 88: uint16(22872), + 89: uint16(22882), + 90: uint16(22880), + 91: uint16(22887), + 92: uint16(22892), + 93: uint16(22889), + }, + 52: { + 0: uint16(22904), + 1: uint16(22913), + 2: uint16(22941), + 3: uint16(20318), + 4: uint16(20395), + 5: uint16(22947), + 6: uint16(22962), + 7: uint16(22982), + 8: uint16(23016), + 9: uint16(23004), + 10: uint16(22925), + 11: uint16(23001), + 12: uint16(23002), + 13: uint16(23077), + 14: uint16(23071), + 15: uint16(23057), + 16: uint16(23068), + 17: uint16(23049), + 18: uint16(23066), + 19: uint16(23104), + 20: uint16(23148), + 21: uint16(23113), + 22: uint16(23093), + 23: uint16(23094), + 24: uint16(23138), + 25: uint16(23146), + 26: uint16(23194), + 27: uint16(23228), + 28: uint16(23230), + 29: uint16(23243), + 30: uint16(23234), + 31: uint16(23229), + 32: uint16(23267), + 33: uint16(23255), + 34: uint16(23270), + 35: uint16(23273), + 36: uint16(23254), + 37: uint16(23290), + 38: uint16(23291), + 39: uint16(23308), + 40: uint16(23307), + 41: uint16(23318), + 42: uint16(23346), + 43: uint16(23248), + 44: uint16(23338), + 45: uint16(23350), + 46: uint16(23358), + 47: uint16(23363), + 48: uint16(23365), + 49: uint16(23360), + 50: uint16(23377), + 51: uint16(23381), + 52: uint16(23386), + 53: uint16(23387), + 54: uint16(23397), + 55: uint16(23401), + 56: uint16(23408), + 57: uint16(23411), + 58: uint16(23413), + 59: uint16(23416), + 60: uint16(25992), + 61: uint16(23418), + 62: uint16(23424), + 63: uint16(23427), + 64: uint16(23462), + 65: uint16(23480), + 66: uint16(23491), + 67: uint16(23495), + 68: uint16(23497), + 69: uint16(23508), + 70: uint16(23504), + 71: uint16(23524), + 72: uint16(23526), + 73: uint16(23522), + 74: uint16(23518), + 75: uint16(23525), + 76: uint16(23531), + 77: uint16(23536), + 78: uint16(23542), + 79: uint16(23539), + 80: uint16(23557), + 81: uint16(23559), + 82: uint16(23560), + 83: uint16(23565), + 84: uint16(23571), + 85: uint16(23584), + 86: uint16(23586), + 87: uint16(23592), + 88: uint16(23608), + 89: uint16(23609), + 90: uint16(23617), + 91: uint16(23622), + 92: uint16(23630), + 93: uint16(23635), + }, + 53: { + 0: uint16(23632), + 1: uint16(23631), + 2: uint16(23409), + 3: uint16(23660), + 4: uint16(23662), + 5: uint16(20066), + 6: uint16(23670), + 7: uint16(23673), + 8: uint16(23692), + 9: uint16(23697), + 10: uint16(23700), + 11: uint16(22939), + 12: uint16(23723), + 13: uint16(23739), + 14: uint16(23734), + 15: uint16(23740), + 16: uint16(23735), + 17: uint16(23749), + 18: uint16(23742), + 19: uint16(23751), + 20: uint16(23769), + 21: uint16(23785), + 22: uint16(23805), + 23: uint16(23802), + 24: uint16(23789), + 25: uint16(23948), + 26: uint16(23786), + 27: uint16(23819), + 28: uint16(23829), + 29: uint16(23831), + 30: uint16(23900), + 31: uint16(23839), + 32: uint16(23835), + 33: uint16(23825), + 34: uint16(23828), + 35: uint16(23842), + 36: uint16(23834), + 37: uint16(23833), + 38: uint16(23832), + 39: uint16(23884), + 40: uint16(23890), + 41: uint16(23886), + 42: uint16(23883), + 43: uint16(23916), + 44: uint16(23923), + 45: uint16(23926), + 46: uint16(23943), + 47: uint16(23940), + 48: uint16(23938), + 49: uint16(23970), + 50: uint16(23965), + 51: uint16(23980), + 52: uint16(23982), + 53: uint16(23997), + 54: uint16(23952), + 55: uint16(23991), + 56: uint16(23996), + 57: uint16(24009), + 58: uint16(24013), + 59: uint16(24019), + 60: uint16(24018), + 61: uint16(24022), + 62: uint16(24027), + 63: uint16(24043), + 64: uint16(24050), + 65: uint16(24053), + 66: uint16(24075), + 67: uint16(24090), + 68: uint16(24089), + 69: uint16(24081), + 70: uint16(24091), + 71: uint16(24118), + 72: uint16(24119), + 73: uint16(24132), + 74: uint16(24131), + 75: uint16(24128), + 76: uint16(24142), + 77: uint16(24151), + 78: uint16(24148), + 79: uint16(24159), + 80: uint16(24162), + 81: uint16(24164), + 82: uint16(24135), + 83: uint16(24181), + 84: uint16(24182), + 85: uint16(24186), + 86: uint16(40636), + 87: uint16(24191), + 88: uint16(24224), + 89: uint16(24257), + 90: uint16(24258), + 91: uint16(24264), + 92: uint16(24272), + 93: uint16(24271), + }, + 54: { + 0: uint16(24278), + 1: uint16(24291), + 2: uint16(24285), + 3: uint16(24282), + 4: uint16(24283), + 5: uint16(24290), + 6: uint16(24289), + 7: uint16(24296), + 8: uint16(24297), + 9: uint16(24300), + 10: uint16(24305), + 11: uint16(24307), + 12: uint16(24304), + 13: uint16(24308), + 14: uint16(24312), + 15: uint16(24318), + 16: uint16(24323), + 17: uint16(24329), + 18: uint16(24413), + 19: uint16(24412), + 20: uint16(24331), + 21: uint16(24337), + 22: uint16(24342), + 23: uint16(24361), + 24: uint16(24365), + 25: uint16(24376), + 26: uint16(24385), + 27: uint16(24392), + 28: uint16(24396), + 29: uint16(24398), + 30: uint16(24367), + 31: uint16(24401), + 32: uint16(24406), + 33: uint16(24407), + 34: uint16(24409), + 35: uint16(24417), + 36: uint16(24429), + 37: uint16(24435), + 38: uint16(24439), + 39: uint16(24451), + 40: uint16(24450), + 41: uint16(24447), + 42: uint16(24458), + 43: uint16(24456), + 44: uint16(24465), + 45: uint16(24455), + 46: uint16(24478), + 47: uint16(24473), + 48: uint16(24472), + 49: uint16(24480), + 50: uint16(24488), + 51: uint16(24493), + 52: uint16(24508), + 53: uint16(24534), + 54: uint16(24571), + 55: uint16(24548), + 56: uint16(24568), + 57: uint16(24561), + 58: uint16(24541), + 59: uint16(24755), + 60: uint16(24575), + 61: uint16(24609), + 62: uint16(24672), + 63: uint16(24601), + 64: uint16(24592), + 65: uint16(24617), + 66: uint16(24590), + 67: uint16(24625), + 68: uint16(24603), + 69: uint16(24597), + 70: uint16(24619), + 71: uint16(24614), + 72: uint16(24591), + 73: uint16(24634), + 74: uint16(24666), + 75: uint16(24641), + 76: uint16(24682), + 77: uint16(24695), + 78: uint16(24671), + 79: uint16(24650), + 80: uint16(24646), + 81: uint16(24653), + 82: uint16(24675), + 83: uint16(24643), + 84: uint16(24676), + 85: uint16(24642), + 86: uint16(24684), + 87: uint16(24683), + 88: uint16(24665), + 89: uint16(24705), + 90: uint16(24717), + 91: uint16(24807), + 92: uint16(24707), + 93: uint16(24730), + }, + 55: { + 0: uint16(24708), + 1: uint16(24731), + 2: uint16(24726), + 3: uint16(24727), + 4: uint16(24722), + 5: uint16(24743), + 6: uint16(24715), + 7: uint16(24801), + 8: uint16(24760), + 9: uint16(24800), + 10: uint16(24787), + 11: uint16(24756), + 12: uint16(24560), + 13: uint16(24765), + 14: uint16(24774), + 15: uint16(24757), + 16: uint16(24792), + 17: uint16(24909), + 18: uint16(24853), + 19: uint16(24838), + 20: uint16(24822), + 21: uint16(24823), + 22: uint16(24832), + 23: uint16(24820), + 24: uint16(24826), + 25: uint16(24835), + 26: uint16(24865), + 27: uint16(24827), + 28: uint16(24817), + 29: uint16(24845), + 30: uint16(24846), + 31: uint16(24903), + 32: uint16(24894), + 33: uint16(24872), + 34: uint16(24871), + 35: uint16(24906), + 36: uint16(24895), + 37: uint16(24892), + 38: uint16(24876), + 39: uint16(24884), + 40: uint16(24893), + 41: uint16(24898), + 42: uint16(24900), + 43: uint16(24947), + 44: uint16(24951), + 45: uint16(24920), + 46: uint16(24921), + 47: uint16(24922), + 48: uint16(24939), + 49: uint16(24948), + 50: uint16(24943), + 51: uint16(24933), + 52: uint16(24945), + 53: uint16(24927), + 54: uint16(24925), + 55: uint16(24915), + 56: uint16(24949), + 57: uint16(24985), + 58: uint16(24982), + 59: uint16(24967), + 60: uint16(25004), + 61: uint16(24980), + 62: uint16(24986), + 63: uint16(24970), + 64: uint16(24977), + 65: uint16(25003), + 66: uint16(25006), + 67: uint16(25036), + 68: uint16(25034), + 69: uint16(25033), + 70: uint16(25079), + 71: uint16(25032), + 72: uint16(25027), + 73: uint16(25030), + 74: uint16(25018), + 75: uint16(25035), + 76: uint16(32633), + 77: uint16(25037), + 78: uint16(25062), + 79: uint16(25059), + 80: uint16(25078), + 81: uint16(25082), + 82: uint16(25076), + 83: uint16(25087), + 84: uint16(25085), + 85: uint16(25084), + 86: uint16(25086), + 87: uint16(25088), + 88: uint16(25096), + 89: uint16(25097), + 90: uint16(25101), + 91: uint16(25100), + 92: uint16(25108), + 93: uint16(25115), + }, + 56: { + 0: uint16(25118), + 1: uint16(25121), + 2: uint16(25130), + 3: uint16(25134), + 4: uint16(25136), + 5: uint16(25138), + 6: uint16(25139), + 7: uint16(25153), + 8: uint16(25166), + 9: uint16(25182), + 10: uint16(25187), + 11: uint16(25179), + 12: uint16(25184), + 13: uint16(25192), + 14: uint16(25212), + 15: uint16(25218), + 16: uint16(25225), + 17: uint16(25214), + 18: uint16(25234), + 19: uint16(25235), + 20: uint16(25238), + 21: uint16(25300), + 22: uint16(25219), + 23: uint16(25236), + 24: uint16(25303), + 25: uint16(25297), + 26: uint16(25275), + 27: uint16(25295), + 28: uint16(25343), + 29: uint16(25286), + 30: uint16(25812), + 31: uint16(25288), + 32: uint16(25308), + 33: uint16(25292), + 34: uint16(25290), + 35: uint16(25282), + 36: uint16(25287), + 37: uint16(25243), + 38: uint16(25289), + 39: uint16(25356), + 40: uint16(25326), + 41: uint16(25329), + 42: uint16(25383), + 43: uint16(25346), + 44: uint16(25352), + 45: uint16(25327), + 46: uint16(25333), + 47: uint16(25424), + 48: uint16(25406), + 49: uint16(25421), + 50: uint16(25628), + 51: uint16(25423), + 52: uint16(25494), + 53: uint16(25486), + 54: uint16(25472), + 55: uint16(25515), + 56: uint16(25462), + 57: uint16(25507), + 58: uint16(25487), + 59: uint16(25481), + 60: uint16(25503), + 61: uint16(25525), + 62: uint16(25451), + 63: uint16(25449), + 64: uint16(25534), + 65: uint16(25577), + 66: uint16(25536), + 67: uint16(25542), + 68: uint16(25571), + 69: uint16(25545), + 70: uint16(25554), + 71: uint16(25590), + 72: uint16(25540), + 73: uint16(25622), + 74: uint16(25652), + 75: uint16(25606), + 76: uint16(25619), + 77: uint16(25638), + 78: uint16(25654), + 79: uint16(25885), + 80: uint16(25623), + 81: uint16(25640), + 82: uint16(25615), + 83: uint16(25703), + 84: uint16(25711), + 85: uint16(25718), + 86: uint16(25678), + 87: uint16(25898), + 88: uint16(25749), + 89: uint16(25747), + 90: uint16(25765), + 91: uint16(25769), + 92: uint16(25736), + 93: uint16(25788), + }, + 57: { + 0: uint16(25818), + 1: uint16(25810), + 2: uint16(25797), + 3: uint16(25799), + 4: uint16(25787), + 5: uint16(25816), + 6: uint16(25794), + 7: uint16(25841), + 8: uint16(25831), + 9: uint16(33289), + 10: uint16(25824), + 11: uint16(25825), + 12: uint16(25260), + 13: uint16(25827), + 14: uint16(25839), + 15: uint16(25900), + 16: uint16(25846), + 17: uint16(25844), + 18: uint16(25842), + 19: uint16(25850), + 20: uint16(25856), + 21: uint16(25853), + 22: uint16(25880), + 23: uint16(25884), + 24: uint16(25861), + 25: uint16(25892), + 26: uint16(25891), + 27: uint16(25899), + 28: uint16(25908), + 29: uint16(25909), + 30: uint16(25911), + 31: uint16(25910), + 32: uint16(25912), + 33: uint16(30027), + 34: uint16(25928), + 35: uint16(25942), + 36: uint16(25941), + 37: uint16(25933), + 38: uint16(25944), + 39: uint16(25950), + 40: uint16(25949), + 41: uint16(25970), + 42: uint16(25976), + 43: uint16(25986), + 44: uint16(25987), + 45: uint16(35722), + 46: uint16(26011), + 47: uint16(26015), + 48: uint16(26027), + 49: uint16(26039), + 50: uint16(26051), + 51: uint16(26054), + 52: uint16(26049), + 53: uint16(26052), + 54: uint16(26060), + 55: uint16(26066), + 56: uint16(26075), + 57: uint16(26073), + 58: uint16(26080), + 59: uint16(26081), + 60: uint16(26097), + 61: uint16(26482), + 62: uint16(26122), + 63: uint16(26115), + 64: uint16(26107), + 65: uint16(26483), + 66: uint16(26165), + 67: uint16(26166), + 68: uint16(26164), + 69: uint16(26140), + 70: uint16(26191), + 71: uint16(26180), + 72: uint16(26185), + 73: uint16(26177), + 74: uint16(26206), + 75: uint16(26205), + 76: uint16(26212), + 77: uint16(26215), + 78: uint16(26216), + 79: uint16(26207), + 80: uint16(26210), + 81: uint16(26224), + 82: uint16(26243), + 83: uint16(26248), + 84: uint16(26254), + 85: uint16(26249), + 86: uint16(26244), + 87: uint16(26264), + 88: uint16(26269), + 89: uint16(26305), + 90: uint16(26297), + 91: uint16(26313), + 92: uint16(26302), + 93: uint16(26300), + }, + 58: { + 0: uint16(26308), + 1: uint16(26296), + 2: uint16(26326), + 3: uint16(26330), + 4: uint16(26336), + 5: uint16(26175), + 6: uint16(26342), + 7: uint16(26345), + 8: uint16(26352), + 9: uint16(26357), + 10: uint16(26359), + 11: uint16(26383), + 12: uint16(26390), + 13: uint16(26398), + 14: uint16(26406), + 15: uint16(26407), + 16: uint16(38712), + 17: uint16(26414), + 18: uint16(26431), + 19: uint16(26422), + 20: uint16(26433), + 21: uint16(26424), + 22: uint16(26423), + 23: uint16(26438), + 24: uint16(26462), + 25: uint16(26464), + 26: uint16(26457), + 27: uint16(26467), + 28: uint16(26468), + 29: uint16(26505), + 30: uint16(26480), + 31: uint16(26537), + 32: uint16(26492), + 33: uint16(26474), + 34: uint16(26508), + 35: uint16(26507), + 36: uint16(26534), + 37: uint16(26529), + 38: uint16(26501), + 39: uint16(26551), + 40: uint16(26607), + 41: uint16(26548), + 42: uint16(26604), + 43: uint16(26547), + 44: uint16(26601), + 45: uint16(26552), + 46: uint16(26596), + 47: uint16(26590), + 48: uint16(26589), + 49: uint16(26594), + 50: uint16(26606), + 51: uint16(26553), + 52: uint16(26574), + 53: uint16(26566), + 54: uint16(26599), + 55: uint16(27292), + 56: uint16(26654), + 57: uint16(26694), + 58: uint16(26665), + 59: uint16(26688), + 60: uint16(26701), + 61: uint16(26674), + 62: uint16(26702), + 63: uint16(26803), + 64: uint16(26667), + 65: uint16(26713), + 66: uint16(26723), + 67: uint16(26743), + 68: uint16(26751), + 69: uint16(26783), + 70: uint16(26767), + 71: uint16(26797), + 72: uint16(26772), + 73: uint16(26781), + 74: uint16(26779), + 75: uint16(26755), + 76: uint16(27310), + 77: uint16(26809), + 78: uint16(26740), + 79: uint16(26805), + 80: uint16(26784), + 81: uint16(26810), + 82: uint16(26895), + 83: uint16(26765), + 84: uint16(26750), + 85: uint16(26881), + 86: uint16(26826), + 87: uint16(26888), + 88: uint16(26840), + 89: uint16(26914), + 90: uint16(26918), + 91: uint16(26849), + 92: uint16(26892), + 93: uint16(26829), + }, + 59: { + 0: uint16(26836), + 1: uint16(26855), + 2: uint16(26837), + 3: uint16(26934), + 4: uint16(26898), + 5: uint16(26884), + 6: uint16(26839), + 7: uint16(26851), + 8: uint16(26917), + 9: uint16(26873), + 10: uint16(26848), + 11: uint16(26863), + 12: uint16(26920), + 13: uint16(26922), + 14: uint16(26906), + 15: uint16(26915), + 16: uint16(26913), + 17: uint16(26822), + 18: uint16(27001), + 19: uint16(26999), + 20: uint16(26972), + 21: uint16(27000), + 22: uint16(26987), + 23: uint16(26964), + 24: uint16(27006), + 25: uint16(26990), + 26: uint16(26937), + 27: uint16(26996), + 28: uint16(26941), + 29: uint16(26969), + 30: uint16(26928), + 31: uint16(26977), + 32: uint16(26974), + 33: uint16(26973), + 34: uint16(27009), + 35: uint16(26986), + 36: uint16(27058), + 37: uint16(27054), + 38: uint16(27088), + 39: uint16(27071), + 40: uint16(27073), + 41: uint16(27091), + 42: uint16(27070), + 43: uint16(27086), + 44: uint16(23528), + 45: uint16(27082), + 46: uint16(27101), + 47: uint16(27067), + 48: uint16(27075), + 49: uint16(27047), + 50: uint16(27182), + 51: uint16(27025), + 52: uint16(27040), + 53: uint16(27036), + 54: uint16(27029), + 55: uint16(27060), + 56: uint16(27102), + 57: uint16(27112), + 58: uint16(27138), + 59: uint16(27163), + 60: uint16(27135), + 61: uint16(27402), + 62: uint16(27129), + 63: uint16(27122), + 64: uint16(27111), + 65: uint16(27141), + 66: uint16(27057), + 67: uint16(27166), + 68: uint16(27117), + 69: uint16(27156), + 70: uint16(27115), + 71: uint16(27146), + 72: uint16(27154), + 73: uint16(27329), + 74: uint16(27171), + 75: uint16(27155), + 76: uint16(27204), + 77: uint16(27148), + 78: uint16(27250), + 79: uint16(27190), + 80: uint16(27256), + 81: uint16(27207), + 82: uint16(27234), + 83: uint16(27225), + 84: uint16(27238), + 85: uint16(27208), + 86: uint16(27192), + 87: uint16(27170), + 88: uint16(27280), + 89: uint16(27277), + 90: uint16(27296), + 91: uint16(27268), + 92: uint16(27298), + 93: uint16(27299), + }, + 60: { + 0: uint16(27287), + 1: uint16(34327), + 2: uint16(27323), + 3: uint16(27331), + 4: uint16(27330), + 5: uint16(27320), + 6: uint16(27315), + 7: uint16(27308), + 8: uint16(27358), + 9: uint16(27345), + 10: uint16(27359), + 11: uint16(27306), + 12: uint16(27354), + 13: uint16(27370), + 14: uint16(27387), + 15: uint16(27397), + 16: uint16(34326), + 17: uint16(27386), + 18: uint16(27410), + 19: uint16(27414), + 20: uint16(39729), + 21: uint16(27423), + 22: uint16(27448), + 23: uint16(27447), + 24: uint16(30428), + 25: uint16(27449), + 26: uint16(39150), + 27: uint16(27463), + 28: uint16(27459), + 29: uint16(27465), + 30: uint16(27472), + 31: uint16(27481), + 32: uint16(27476), + 33: uint16(27483), + 34: uint16(27487), + 35: uint16(27489), + 36: uint16(27512), + 37: uint16(27513), + 38: uint16(27519), + 39: uint16(27520), + 40: uint16(27524), + 41: uint16(27523), + 42: uint16(27533), + 43: uint16(27544), + 44: uint16(27541), + 45: uint16(27550), + 46: uint16(27556), + 47: uint16(27562), + 48: uint16(27563), + 49: uint16(27567), + 50: uint16(27570), + 51: uint16(27569), + 52: uint16(27571), + 53: uint16(27575), + 54: uint16(27580), + 55: uint16(27590), + 56: uint16(27595), + 57: uint16(27603), + 58: uint16(27615), + 59: uint16(27628), + 60: uint16(27627), + 61: uint16(27635), + 62: uint16(27631), + 63: uint16(40638), + 64: uint16(27656), + 65: uint16(27667), + 66: uint16(27668), + 67: uint16(27675), + 68: uint16(27684), + 69: uint16(27683), + 70: uint16(27742), + 71: uint16(27733), + 72: uint16(27746), + 73: uint16(27754), + 74: uint16(27778), + 75: uint16(27789), + 76: uint16(27802), + 77: uint16(27777), + 78: uint16(27803), + 79: uint16(27774), + 80: uint16(27752), + 81: uint16(27763), + 82: uint16(27794), + 83: uint16(27792), + 84: uint16(27844), + 85: uint16(27889), + 86: uint16(27859), + 87: uint16(27837), + 88: uint16(27863), + 89: uint16(27845), + 90: uint16(27869), + 91: uint16(27822), + 92: uint16(27825), + 93: uint16(27838), + }, + 61: { + 0: uint16(27834), + 1: uint16(27867), + 2: uint16(27887), + 3: uint16(27865), + 4: uint16(27882), + 5: uint16(27935), + 6: uint16(34893), + 7: uint16(27958), + 8: uint16(27947), + 9: uint16(27965), + 10: uint16(27960), + 11: uint16(27929), + 12: uint16(27957), + 13: uint16(27955), + 14: uint16(27922), + 15: uint16(27916), + 16: uint16(28003), + 17: uint16(28051), + 18: uint16(28004), + 19: uint16(27994), + 20: uint16(28025), + 21: uint16(27993), + 22: uint16(28046), + 23: uint16(28053), + 24: uint16(28644), + 25: uint16(28037), + 26: uint16(28153), + 27: uint16(28181), + 28: uint16(28170), + 29: uint16(28085), + 30: uint16(28103), + 31: uint16(28134), + 32: uint16(28088), + 33: uint16(28102), + 34: uint16(28140), + 35: uint16(28126), + 36: uint16(28108), + 37: uint16(28136), + 38: uint16(28114), + 39: uint16(28101), + 40: uint16(28154), + 41: uint16(28121), + 42: uint16(28132), + 43: uint16(28117), + 44: uint16(28138), + 45: uint16(28142), + 46: uint16(28205), + 47: uint16(28270), + 48: uint16(28206), + 49: uint16(28185), + 50: uint16(28274), + 51: uint16(28255), + 52: uint16(28222), + 53: uint16(28195), + 54: uint16(28267), + 55: uint16(28203), + 56: uint16(28278), + 57: uint16(28237), + 58: uint16(28191), + 59: uint16(28227), + 60: uint16(28218), + 61: uint16(28238), + 62: uint16(28196), + 63: uint16(28415), + 64: uint16(28189), + 65: uint16(28216), + 66: uint16(28290), + 67: uint16(28330), + 68: uint16(28312), + 69: uint16(28361), + 70: uint16(28343), + 71: uint16(28371), + 72: uint16(28349), + 73: uint16(28335), + 74: uint16(28356), + 75: uint16(28338), + 76: uint16(28372), + 77: uint16(28373), + 78: uint16(28303), + 79: uint16(28325), + 80: uint16(28354), + 81: uint16(28319), + 82: uint16(28481), + 83: uint16(28433), + 84: uint16(28748), + 85: uint16(28396), + 86: uint16(28408), + 87: uint16(28414), + 88: uint16(28479), + 89: uint16(28402), + 90: uint16(28465), + 91: uint16(28399), + 92: uint16(28466), + 93: uint16(28364), + }, + 62: { + 0: uint16(28478), + 1: uint16(28435), + 2: uint16(28407), + 3: uint16(28550), + 4: uint16(28538), + 5: uint16(28536), + 6: uint16(28545), + 7: uint16(28544), + 8: uint16(28527), + 9: uint16(28507), + 10: uint16(28659), + 11: uint16(28525), + 12: uint16(28546), + 13: uint16(28540), + 14: uint16(28504), + 15: uint16(28558), + 16: uint16(28561), + 17: uint16(28610), + 18: uint16(28518), + 19: uint16(28595), + 20: uint16(28579), + 21: uint16(28577), + 22: uint16(28580), + 23: uint16(28601), + 24: uint16(28614), + 25: uint16(28586), + 26: uint16(28639), + 27: uint16(28629), + 28: uint16(28652), + 29: uint16(28628), + 30: uint16(28632), + 31: uint16(28657), + 32: uint16(28654), + 33: uint16(28635), + 34: uint16(28681), + 35: uint16(28683), + 36: uint16(28666), + 37: uint16(28689), + 38: uint16(28673), + 39: uint16(28687), + 40: uint16(28670), + 41: uint16(28699), + 42: uint16(28698), + 43: uint16(28532), + 44: uint16(28701), + 45: uint16(28696), + 46: uint16(28703), + 47: uint16(28720), + 48: uint16(28734), + 49: uint16(28722), + 50: uint16(28753), + 51: uint16(28771), + 52: uint16(28825), + 53: uint16(28818), + 54: uint16(28847), + 55: uint16(28913), + 56: uint16(28844), + 57: uint16(28856), + 58: uint16(28851), + 59: uint16(28846), + 60: uint16(28895), + 61: uint16(28875), + 62: uint16(28893), + 63: uint16(28889), + 64: uint16(28937), + 65: uint16(28925), + 66: uint16(28956), + 67: uint16(28953), + 68: uint16(29029), + 69: uint16(29013), + 70: uint16(29064), + 71: uint16(29030), + 72: uint16(29026), + 73: uint16(29004), + 74: uint16(29014), + 75: uint16(29036), + 76: uint16(29071), + 77: uint16(29179), + 78: uint16(29060), + 79: uint16(29077), + 80: uint16(29096), + 81: uint16(29100), + 82: uint16(29143), + 83: uint16(29113), + 84: uint16(29118), + 85: uint16(29138), + 86: uint16(29129), + 87: uint16(29140), + 88: uint16(29134), + 89: uint16(29152), + 90: uint16(29164), + 91: uint16(29159), + 92: uint16(29173), + 93: uint16(29180), + }, + 63: { + 0: uint16(29177), + 1: uint16(29183), + 2: uint16(29197), + 3: uint16(29200), + 4: uint16(29211), + 5: uint16(29224), + 6: uint16(29229), + 7: uint16(29228), + 8: uint16(29232), + 9: uint16(29234), + 10: uint16(29243), + 11: uint16(29244), + 12: uint16(29247), + 13: uint16(29248), + 14: uint16(29254), + 15: uint16(29259), + 16: uint16(29272), + 17: uint16(29300), + 18: uint16(29310), + 19: uint16(29314), + 20: uint16(29313), + 21: uint16(29319), + 22: uint16(29330), + 23: uint16(29334), + 24: uint16(29346), + 25: uint16(29351), + 26: uint16(29369), + 27: uint16(29362), + 28: uint16(29379), + 29: uint16(29382), + 30: uint16(29380), + 31: uint16(29390), + 32: uint16(29394), + 33: uint16(29410), + 34: uint16(29408), + 35: uint16(29409), + 36: uint16(29433), + 37: uint16(29431), + 38: uint16(20495), + 39: uint16(29463), + 40: uint16(29450), + 41: uint16(29468), + 42: uint16(29462), + 43: uint16(29469), + 44: uint16(29492), + 45: uint16(29487), + 46: uint16(29481), + 47: uint16(29477), + 48: uint16(29502), + 49: uint16(29518), + 50: uint16(29519), + 51: uint16(40664), + 52: uint16(29527), + 53: uint16(29546), + 54: uint16(29544), + 55: uint16(29552), + 56: uint16(29560), + 57: uint16(29557), + 58: uint16(29563), + 59: uint16(29562), + 60: uint16(29640), + 61: uint16(29619), + 62: uint16(29646), + 63: uint16(29627), + 64: uint16(29632), + 65: uint16(29669), + 66: uint16(29678), + 67: uint16(29662), + 68: uint16(29858), + 69: uint16(29701), + 70: uint16(29807), + 71: uint16(29733), + 72: uint16(29688), + 73: uint16(29746), + 74: uint16(29754), + 75: uint16(29781), + 76: uint16(29759), + 77: uint16(29791), + 78: uint16(29785), + 79: uint16(29761), + 80: uint16(29788), + 81: uint16(29801), + 82: uint16(29808), + 83: uint16(29795), + 84: uint16(29802), + 85: uint16(29814), + 86: uint16(29822), + 87: uint16(29835), + 88: uint16(29854), + 89: uint16(29863), + 90: uint16(29898), + 91: uint16(29903), + 92: uint16(29908), + 93: uint16(29681), + }, + 64: { + 0: uint16(29920), + 1: uint16(29923), + 2: uint16(29927), + 3: uint16(29929), + 4: uint16(29934), + 5: uint16(29938), + 6: uint16(29936), + 7: uint16(29937), + 8: uint16(29944), + 9: uint16(29943), + 10: uint16(29956), + 11: uint16(29955), + 12: uint16(29957), + 13: uint16(29964), + 14: uint16(29966), + 15: uint16(29965), + 16: uint16(29973), + 17: uint16(29971), + 18: uint16(29982), + 19: uint16(29990), + 20: uint16(29996), + 21: uint16(30012), + 22: uint16(30020), + 23: uint16(30029), + 24: uint16(30026), + 25: uint16(30025), + 26: uint16(30043), + 27: uint16(30022), + 28: uint16(30042), + 29: uint16(30057), + 30: uint16(30052), + 31: uint16(30055), + 32: uint16(30059), + 33: uint16(30061), + 34: uint16(30072), + 35: uint16(30070), + 36: uint16(30086), + 37: uint16(30087), + 38: uint16(30068), + 39: uint16(30090), + 40: uint16(30089), + 41: uint16(30082), + 42: uint16(30100), + 43: uint16(30106), + 44: uint16(30109), + 45: uint16(30117), + 46: uint16(30115), + 47: uint16(30146), + 48: uint16(30131), + 49: uint16(30147), + 50: uint16(30133), + 51: uint16(30141), + 52: uint16(30136), + 53: uint16(30140), + 54: uint16(30129), + 55: uint16(30157), + 56: uint16(30154), + 57: uint16(30162), + 58: uint16(30169), + 59: uint16(30179), + 60: uint16(30174), + 61: uint16(30206), + 62: uint16(30207), + 63: uint16(30204), + 64: uint16(30209), + 65: uint16(30192), + 66: uint16(30202), + 67: uint16(30194), + 68: uint16(30195), + 69: uint16(30219), + 70: uint16(30221), + 71: uint16(30217), + 72: uint16(30239), + 73: uint16(30247), + 74: uint16(30240), + 75: uint16(30241), + 76: uint16(30242), + 77: uint16(30244), + 78: uint16(30260), + 79: uint16(30256), + 80: uint16(30267), + 81: uint16(30279), + 82: uint16(30280), + 83: uint16(30278), + 84: uint16(30300), + 85: uint16(30296), + 86: uint16(30305), + 87: uint16(30306), + 88: uint16(30312), + 89: uint16(30313), + 90: uint16(30314), + 91: uint16(30311), + 92: uint16(30316), + 93: uint16(30320), + }, + 65: { + 0: uint16(30322), + 1: uint16(30326), + 2: uint16(30328), + 3: uint16(30332), + 4: uint16(30336), + 5: uint16(30339), + 6: uint16(30344), + 7: uint16(30347), + 8: uint16(30350), + 9: uint16(30358), + 10: uint16(30355), + 11: uint16(30361), + 12: uint16(30362), + 13: uint16(30384), + 14: uint16(30388), + 15: uint16(30392), + 16: uint16(30393), + 17: uint16(30394), + 18: uint16(30402), + 19: uint16(30413), + 20: uint16(30422), + 21: uint16(30418), + 22: uint16(30430), + 23: uint16(30433), + 24: uint16(30437), + 25: uint16(30439), + 26: uint16(30442), + 27: uint16(34351), + 28: uint16(30459), + 29: uint16(30472), + 30: uint16(30471), + 31: uint16(30468), + 32: uint16(30505), + 33: uint16(30500), + 34: uint16(30494), + 35: uint16(30501), + 36: uint16(30502), + 37: uint16(30491), + 38: uint16(30519), + 39: uint16(30520), + 40: uint16(30535), + 41: uint16(30554), + 42: uint16(30568), + 43: uint16(30571), + 44: uint16(30555), + 45: uint16(30565), + 46: uint16(30591), + 47: uint16(30590), + 48: uint16(30585), + 49: uint16(30606), + 50: uint16(30603), + 51: uint16(30609), + 52: uint16(30624), + 53: uint16(30622), + 54: uint16(30640), + 55: uint16(30646), + 56: uint16(30649), + 57: uint16(30655), + 58: uint16(30652), + 59: uint16(30653), + 60: uint16(30651), + 61: uint16(30663), + 62: uint16(30669), + 63: uint16(30679), + 64: uint16(30682), + 65: uint16(30684), + 66: uint16(30691), + 67: uint16(30702), + 68: uint16(30716), + 69: uint16(30732), + 70: uint16(30738), + 71: uint16(31014), + 72: uint16(30752), + 73: uint16(31018), + 74: uint16(30789), + 75: uint16(30862), + 76: uint16(30836), + 77: uint16(30854), + 78: uint16(30844), + 79: uint16(30874), + 80: uint16(30860), + 81: uint16(30883), + 82: uint16(30901), + 83: uint16(30890), + 84: uint16(30895), + 85: uint16(30929), + 86: uint16(30918), + 87: uint16(30923), + 88: uint16(30932), + 89: uint16(30910), + 90: uint16(30908), + 91: uint16(30917), + 92: uint16(30922), + 93: uint16(30956), + }, + 66: { + 0: uint16(30951), + 1: uint16(30938), + 2: uint16(30973), + 3: uint16(30964), + 4: uint16(30983), + 5: uint16(30994), + 6: uint16(30993), + 7: uint16(31001), + 8: uint16(31020), + 9: uint16(31019), + 10: uint16(31040), + 11: uint16(31072), + 12: uint16(31063), + 13: uint16(31071), + 14: uint16(31066), + 15: uint16(31061), + 16: uint16(31059), + 17: uint16(31098), + 18: uint16(31103), + 19: uint16(31114), + 20: uint16(31133), + 21: uint16(31143), + 22: uint16(40779), + 23: uint16(31146), + 24: uint16(31150), + 25: uint16(31155), + 26: uint16(31161), + 27: uint16(31162), + 28: uint16(31177), + 29: uint16(31189), + 30: uint16(31207), + 31: uint16(31212), + 32: uint16(31201), + 33: uint16(31203), + 34: uint16(31240), + 35: uint16(31245), + 36: uint16(31256), + 37: uint16(31257), + 38: uint16(31264), + 39: uint16(31263), + 40: uint16(31104), + 41: uint16(31281), + 42: uint16(31291), + 43: uint16(31294), + 44: uint16(31287), + 45: uint16(31299), + 46: uint16(31319), + 47: uint16(31305), + 48: uint16(31329), + 49: uint16(31330), + 50: uint16(31337), + 51: uint16(40861), + 52: uint16(31344), + 53: uint16(31353), + 54: uint16(31357), + 55: uint16(31368), + 56: uint16(31383), + 57: uint16(31381), + 58: uint16(31384), + 59: uint16(31382), + 60: uint16(31401), + 61: uint16(31432), + 62: uint16(31408), + 63: uint16(31414), + 64: uint16(31429), + 65: uint16(31428), + 66: uint16(31423), + 67: uint16(36995), + 68: uint16(31431), + 69: uint16(31434), + 70: uint16(31437), + 71: uint16(31439), + 72: uint16(31445), + 73: uint16(31443), + 74: uint16(31449), + 75: uint16(31450), + 76: uint16(31453), + 77: uint16(31457), + 78: uint16(31458), + 79: uint16(31462), + 80: uint16(31469), + 81: uint16(31472), + 82: uint16(31490), + 83: uint16(31503), + 84: uint16(31498), + 85: uint16(31494), + 86: uint16(31539), + 87: uint16(31512), + 88: uint16(31513), + 89: uint16(31518), + 90: uint16(31541), + 91: uint16(31528), + 92: uint16(31542), + 93: uint16(31568), + }, + 67: { + 0: uint16(31610), + 1: uint16(31492), + 2: uint16(31565), + 3: uint16(31499), + 4: uint16(31564), + 5: uint16(31557), + 6: uint16(31605), + 7: uint16(31589), + 8: uint16(31604), + 9: uint16(31591), + 10: uint16(31600), + 11: uint16(31601), + 12: uint16(31596), + 13: uint16(31598), + 14: uint16(31645), + 15: uint16(31640), + 16: uint16(31647), + 17: uint16(31629), + 18: uint16(31644), + 19: uint16(31642), + 20: uint16(31627), + 21: uint16(31634), + 22: uint16(31631), + 23: uint16(31581), + 24: uint16(31641), + 25: uint16(31691), + 26: uint16(31681), + 27: uint16(31692), + 28: uint16(31695), + 29: uint16(31668), + 30: uint16(31686), + 31: uint16(31709), + 32: uint16(31721), + 33: uint16(31761), + 34: uint16(31764), + 35: uint16(31718), + 36: uint16(31717), + 37: uint16(31840), + 38: uint16(31744), + 39: uint16(31751), + 40: uint16(31763), + 41: uint16(31731), + 42: uint16(31735), + 43: uint16(31767), + 44: uint16(31757), + 45: uint16(31734), + 46: uint16(31779), + 47: uint16(31783), + 48: uint16(31786), + 49: uint16(31775), + 50: uint16(31799), + 51: uint16(31787), + 52: uint16(31805), + 53: uint16(31820), + 54: uint16(31811), + 55: uint16(31828), + 56: uint16(31823), + 57: uint16(31808), + 58: uint16(31824), + 59: uint16(31832), + 60: uint16(31839), + 61: uint16(31844), + 62: uint16(31830), + 63: uint16(31845), + 64: uint16(31852), + 65: uint16(31861), + 66: uint16(31875), + 67: uint16(31888), + 68: uint16(31908), + 69: uint16(31917), + 70: uint16(31906), + 71: uint16(31915), + 72: uint16(31905), + 73: uint16(31912), + 74: uint16(31923), + 75: uint16(31922), + 76: uint16(31921), + 77: uint16(31918), + 78: uint16(31929), + 79: uint16(31933), + 80: uint16(31936), + 81: uint16(31941), + 82: uint16(31938), + 83: uint16(31960), + 84: uint16(31954), + 85: uint16(31964), + 86: uint16(31970), + 87: uint16(39739), + 88: uint16(31983), + 89: uint16(31986), + 90: uint16(31988), + 91: uint16(31990), + 92: uint16(31994), + 93: uint16(32006), + }, + 68: { + 0: uint16(32002), + 1: uint16(32028), + 2: uint16(32021), + 3: uint16(32010), + 4: uint16(32069), + 5: uint16(32075), + 6: uint16(32046), + 7: uint16(32050), + 8: uint16(32063), + 9: uint16(32053), + 10: uint16(32070), + 11: uint16(32115), + 12: uint16(32086), + 13: uint16(32078), + 14: uint16(32114), + 15: uint16(32104), + 16: uint16(32110), + 17: uint16(32079), + 18: uint16(32099), + 19: uint16(32147), + 20: uint16(32137), + 21: uint16(32091), + 22: uint16(32143), + 23: uint16(32125), + 24: uint16(32155), + 25: uint16(32186), + 26: uint16(32174), + 27: uint16(32163), + 28: uint16(32181), + 29: uint16(32199), + 30: uint16(32189), + 31: uint16(32171), + 32: uint16(32317), + 33: uint16(32162), + 34: uint16(32175), + 35: uint16(32220), + 36: uint16(32184), + 37: uint16(32159), + 38: uint16(32176), + 39: uint16(32216), + 40: uint16(32221), + 41: uint16(32228), + 42: uint16(32222), + 43: uint16(32251), + 44: uint16(32242), + 45: uint16(32225), + 46: uint16(32261), + 47: uint16(32266), + 48: uint16(32291), + 49: uint16(32289), + 50: uint16(32274), + 51: uint16(32305), + 52: uint16(32287), + 53: uint16(32265), + 54: uint16(32267), + 55: uint16(32290), + 56: uint16(32326), + 57: uint16(32358), + 58: uint16(32315), + 59: uint16(32309), + 60: uint16(32313), + 61: uint16(32323), + 62: uint16(32311), + 63: uint16(32306), + 64: uint16(32314), + 65: uint16(32359), + 66: uint16(32349), + 67: uint16(32342), + 68: uint16(32350), + 69: uint16(32345), + 70: uint16(32346), + 71: uint16(32377), + 72: uint16(32362), + 73: uint16(32361), + 74: uint16(32380), + 75: uint16(32379), + 76: uint16(32387), + 77: uint16(32213), + 78: uint16(32381), + 79: uint16(36782), + 80: uint16(32383), + 81: uint16(32392), + 82: uint16(32393), + 83: uint16(32396), + 84: uint16(32402), + 85: uint16(32400), + 86: uint16(32403), + 87: uint16(32404), + 88: uint16(32406), + 89: uint16(32398), + 90: uint16(32411), + 91: uint16(32412), + 92: uint16(32568), + 93: uint16(32570), + }, + 69: { + 0: uint16(32581), + 1: uint16(32588), + 2: uint16(32589), + 3: uint16(32590), + 4: uint16(32592), + 5: uint16(32593), + 6: uint16(32597), + 7: uint16(32596), + 8: uint16(32600), + 9: uint16(32607), + 10: uint16(32608), + 11: uint16(32616), + 12: uint16(32617), + 13: uint16(32615), + 14: uint16(32632), + 15: uint16(32642), + 16: uint16(32646), + 17: uint16(32643), + 18: uint16(32648), + 19: uint16(32647), + 20: uint16(32652), + 21: uint16(32660), + 22: uint16(32670), + 23: uint16(32669), + 24: uint16(32666), + 25: uint16(32675), + 26: uint16(32687), + 27: uint16(32690), + 28: uint16(32697), + 29: uint16(32686), + 30: uint16(32694), + 31: uint16(32696), + 32: uint16(35697), + 33: uint16(32709), + 34: uint16(32710), + 35: uint16(32714), + 36: uint16(32725), + 37: uint16(32724), + 38: uint16(32737), + 39: uint16(32742), + 40: uint16(32745), + 41: uint16(32755), + 42: uint16(32761), + 43: uint16(39132), + 44: uint16(32774), + 45: uint16(32772), + 46: uint16(32779), + 47: uint16(32786), + 48: uint16(32792), + 49: uint16(32793), + 50: uint16(32796), + 51: uint16(32801), + 52: uint16(32808), + 53: uint16(32831), + 54: uint16(32827), + 55: uint16(32842), + 56: uint16(32838), + 57: uint16(32850), + 58: uint16(32856), + 59: uint16(32858), + 60: uint16(32863), + 61: uint16(32866), + 62: uint16(32872), + 63: uint16(32883), + 64: uint16(32882), + 65: uint16(32880), + 66: uint16(32886), + 67: uint16(32889), + 68: uint16(32893), + 69: uint16(32895), + 70: uint16(32900), + 71: uint16(32902), + 72: uint16(32901), + 73: uint16(32923), + 74: uint16(32915), + 75: uint16(32922), + 76: uint16(32941), + 77: uint16(20880), + 78: uint16(32940), + 79: uint16(32987), + 80: uint16(32997), + 81: uint16(32985), + 82: uint16(32989), + 83: uint16(32964), + 84: uint16(32986), + 85: uint16(32982), + 86: uint16(33033), + 87: uint16(33007), + 88: uint16(33009), + 89: uint16(33051), + 90: uint16(33065), + 91: uint16(33059), + 92: uint16(33071), + 93: uint16(33099), + }, + 70: { + 0: uint16(38539), + 1: uint16(33094), + 2: uint16(33086), + 3: uint16(33107), + 4: uint16(33105), + 5: uint16(33020), + 6: uint16(33137), + 7: uint16(33134), + 8: uint16(33125), + 9: uint16(33126), + 10: uint16(33140), + 11: uint16(33155), + 12: uint16(33160), + 13: uint16(33162), + 14: uint16(33152), + 15: uint16(33154), + 16: uint16(33184), + 17: uint16(33173), + 18: uint16(33188), + 19: uint16(33187), + 20: uint16(33119), + 21: uint16(33171), + 22: uint16(33193), + 23: uint16(33200), + 24: uint16(33205), + 25: uint16(33214), + 26: uint16(33208), + 27: uint16(33213), + 28: uint16(33216), + 29: uint16(33218), + 30: uint16(33210), + 31: uint16(33225), + 32: uint16(33229), + 33: uint16(33233), + 34: uint16(33241), + 35: uint16(33240), + 36: uint16(33224), + 37: uint16(33242), + 38: uint16(33247), + 39: uint16(33248), + 40: uint16(33255), + 41: uint16(33274), + 42: uint16(33275), + 43: uint16(33278), + 44: uint16(33281), + 45: uint16(33282), + 46: uint16(33285), + 47: uint16(33287), + 48: uint16(33290), + 49: uint16(33293), + 50: uint16(33296), + 51: uint16(33302), + 52: uint16(33321), + 53: uint16(33323), + 54: uint16(33336), + 55: uint16(33331), + 56: uint16(33344), + 57: uint16(33369), + 58: uint16(33368), + 59: uint16(33373), + 60: uint16(33370), + 61: uint16(33375), + 62: uint16(33380), + 63: uint16(33378), + 64: uint16(33384), + 65: uint16(33386), + 66: uint16(33387), + 67: uint16(33326), + 68: uint16(33393), + 69: uint16(33399), + 70: uint16(33400), + 71: uint16(33406), + 72: uint16(33421), + 73: uint16(33426), + 74: uint16(33451), + 75: uint16(33439), + 76: uint16(33467), + 77: uint16(33452), + 78: uint16(33505), + 79: uint16(33507), + 80: uint16(33503), + 81: uint16(33490), + 82: uint16(33524), + 83: uint16(33523), + 84: uint16(33530), + 85: uint16(33683), + 86: uint16(33539), + 87: uint16(33531), + 88: uint16(33529), + 89: uint16(33502), + 90: uint16(33542), + 91: uint16(33500), + 92: uint16(33545), + 93: uint16(33497), + }, + 71: { + 0: uint16(33589), + 1: uint16(33588), + 2: uint16(33558), + 3: uint16(33586), + 4: uint16(33585), + 5: uint16(33600), + 6: uint16(33593), + 7: uint16(33616), + 8: uint16(33605), + 9: uint16(33583), + 10: uint16(33579), + 11: uint16(33559), + 12: uint16(33560), + 13: uint16(33669), + 14: uint16(33690), + 15: uint16(33706), + 16: uint16(33695), + 17: uint16(33698), + 18: uint16(33686), + 19: uint16(33571), + 20: uint16(33678), + 21: uint16(33671), + 22: uint16(33674), + 23: uint16(33660), + 24: uint16(33717), + 25: uint16(33651), + 26: uint16(33653), + 27: uint16(33696), + 28: uint16(33673), + 29: uint16(33704), + 30: uint16(33780), + 31: uint16(33811), + 32: uint16(33771), + 33: uint16(33742), + 34: uint16(33789), + 35: uint16(33795), + 36: uint16(33752), + 37: uint16(33803), + 38: uint16(33729), + 39: uint16(33783), + 40: uint16(33799), + 41: uint16(33760), + 42: uint16(33778), + 43: uint16(33805), + 44: uint16(33826), + 45: uint16(33824), + 46: uint16(33725), + 47: uint16(33848), + 48: uint16(34054), + 49: uint16(33787), + 50: uint16(33901), + 51: uint16(33834), + 52: uint16(33852), + 53: uint16(34138), + 54: uint16(33924), + 55: uint16(33911), + 56: uint16(33899), + 57: uint16(33965), + 58: uint16(33902), + 59: uint16(33922), + 60: uint16(33897), + 61: uint16(33862), + 62: uint16(33836), + 63: uint16(33903), + 64: uint16(33913), + 65: uint16(33845), + 66: uint16(33994), + 67: uint16(33890), + 68: uint16(33977), + 69: uint16(33983), + 70: uint16(33951), + 71: uint16(34009), + 72: uint16(33997), + 73: uint16(33979), + 74: uint16(34010), + 75: uint16(34000), + 76: uint16(33985), + 77: uint16(33990), + 78: uint16(34006), + 79: uint16(33953), + 80: uint16(34081), + 81: uint16(34047), + 82: uint16(34036), + 83: uint16(34071), + 84: uint16(34072), + 85: uint16(34092), + 86: uint16(34079), + 87: uint16(34069), + 88: uint16(34068), + 89: uint16(34044), + 90: uint16(34112), + 91: uint16(34147), + 92: uint16(34136), + 93: uint16(34120), + }, + 72: { + 0: uint16(34113), + 1: uint16(34306), + 2: uint16(34123), + 3: uint16(34133), + 4: uint16(34176), + 5: uint16(34212), + 6: uint16(34184), + 7: uint16(34193), + 8: uint16(34186), + 9: uint16(34216), + 10: uint16(34157), + 11: uint16(34196), + 12: uint16(34203), + 13: uint16(34282), + 14: uint16(34183), + 15: uint16(34204), + 16: uint16(34167), + 17: uint16(34174), + 18: uint16(34192), + 19: uint16(34249), + 20: uint16(34234), + 21: uint16(34255), + 22: uint16(34233), + 23: uint16(34256), + 24: uint16(34261), + 25: uint16(34269), + 26: uint16(34277), + 27: uint16(34268), + 28: uint16(34297), + 29: uint16(34314), + 30: uint16(34323), + 31: uint16(34315), + 32: uint16(34302), + 33: uint16(34298), + 34: uint16(34310), + 35: uint16(34338), + 36: uint16(34330), + 37: uint16(34352), + 38: uint16(34367), + 39: uint16(34381), + 40: uint16(20053), + 41: uint16(34388), + 42: uint16(34399), + 43: uint16(34407), + 44: uint16(34417), + 45: uint16(34451), + 46: uint16(34467), + 47: uint16(34473), + 48: uint16(34474), + 49: uint16(34443), + 50: uint16(34444), + 51: uint16(34486), + 52: uint16(34479), + 53: uint16(34500), + 54: uint16(34502), + 55: uint16(34480), + 56: uint16(34505), + 57: uint16(34851), + 58: uint16(34475), + 59: uint16(34516), + 60: uint16(34526), + 61: uint16(34537), + 62: uint16(34540), + 63: uint16(34527), + 64: uint16(34523), + 65: uint16(34543), + 66: uint16(34578), + 67: uint16(34566), + 68: uint16(34568), + 69: uint16(34560), + 70: uint16(34563), + 71: uint16(34555), + 72: uint16(34577), + 73: uint16(34569), + 74: uint16(34573), + 75: uint16(34553), + 76: uint16(34570), + 77: uint16(34612), + 78: uint16(34623), + 79: uint16(34615), + 80: uint16(34619), + 81: uint16(34597), + 82: uint16(34601), + 83: uint16(34586), + 84: uint16(34656), + 85: uint16(34655), + 86: uint16(34680), + 87: uint16(34636), + 88: uint16(34638), + 89: uint16(34676), + 90: uint16(34647), + 91: uint16(34664), + 92: uint16(34670), + 93: uint16(34649), + }, + 73: { + 0: uint16(34643), + 1: uint16(34659), + 2: uint16(34666), + 3: uint16(34821), + 4: uint16(34722), + 5: uint16(34719), + 6: uint16(34690), + 7: uint16(34735), + 8: uint16(34763), + 9: uint16(34749), + 10: uint16(34752), + 11: uint16(34768), + 12: uint16(38614), + 13: uint16(34731), + 14: uint16(34756), + 15: uint16(34739), + 16: uint16(34759), + 17: uint16(34758), + 18: uint16(34747), + 19: uint16(34799), + 20: uint16(34802), + 21: uint16(34784), + 22: uint16(34831), + 23: uint16(34829), + 24: uint16(34814), + 25: uint16(34806), + 26: uint16(34807), + 27: uint16(34830), + 28: uint16(34770), + 29: uint16(34833), + 30: uint16(34838), + 31: uint16(34837), + 32: uint16(34850), + 33: uint16(34849), + 34: uint16(34865), + 35: uint16(34870), + 36: uint16(34873), + 37: uint16(34855), + 38: uint16(34875), + 39: uint16(34884), + 40: uint16(34882), + 41: uint16(34898), + 42: uint16(34905), + 43: uint16(34910), + 44: uint16(34914), + 45: uint16(34923), + 46: uint16(34945), + 47: uint16(34942), + 48: uint16(34974), + 49: uint16(34933), + 50: uint16(34941), + 51: uint16(34997), + 52: uint16(34930), + 53: uint16(34946), + 54: uint16(34967), + 55: uint16(34962), + 56: uint16(34990), + 57: uint16(34969), + 58: uint16(34978), + 59: uint16(34957), + 60: uint16(34980), + 61: uint16(34992), + 62: uint16(35007), + 63: uint16(34993), + 64: uint16(35011), + 65: uint16(35012), + 66: uint16(35028), + 67: uint16(35032), + 68: uint16(35033), + 69: uint16(35037), + 70: uint16(35065), + 71: uint16(35074), + 72: uint16(35068), + 73: uint16(35060), + 74: uint16(35048), + 75: uint16(35058), + 76: uint16(35076), + 77: uint16(35084), + 78: uint16(35082), + 79: uint16(35091), + 80: uint16(35139), + 81: uint16(35102), + 82: uint16(35109), + 83: uint16(35114), + 84: uint16(35115), + 85: uint16(35137), + 86: uint16(35140), + 87: uint16(35131), + 88: uint16(35126), + 89: uint16(35128), + 90: uint16(35148), + 91: uint16(35101), + 92: uint16(35168), + 93: uint16(35166), + }, + 74: { + 0: uint16(35174), + 1: uint16(35172), + 2: uint16(35181), + 3: uint16(35178), + 4: uint16(35183), + 5: uint16(35188), + 6: uint16(35191), + 7: uint16(35198), + 8: uint16(35203), + 9: uint16(35208), + 10: uint16(35210), + 11: uint16(35219), + 12: uint16(35224), + 13: uint16(35233), + 14: uint16(35241), + 15: uint16(35238), + 16: uint16(35244), + 17: uint16(35247), + 18: uint16(35250), + 19: uint16(35258), + 20: uint16(35261), + 21: uint16(35263), + 22: uint16(35264), + 23: uint16(35290), + 24: uint16(35292), + 25: uint16(35293), + 26: uint16(35303), + 27: uint16(35316), + 28: uint16(35320), + 29: uint16(35331), + 30: uint16(35350), + 31: uint16(35344), + 32: uint16(35340), + 33: uint16(35355), + 34: uint16(35357), + 35: uint16(35365), + 36: uint16(35382), + 37: uint16(35393), + 38: uint16(35419), + 39: uint16(35410), + 40: uint16(35398), + 41: uint16(35400), + 42: uint16(35452), + 43: uint16(35437), + 44: uint16(35436), + 45: uint16(35426), + 46: uint16(35461), + 47: uint16(35458), + 48: uint16(35460), + 49: uint16(35496), + 50: uint16(35489), + 51: uint16(35473), + 52: uint16(35493), + 53: uint16(35494), + 54: uint16(35482), + 55: uint16(35491), + 56: uint16(35524), + 57: uint16(35533), + 58: uint16(35522), + 59: uint16(35546), + 60: uint16(35563), + 61: uint16(35571), + 62: uint16(35559), + 63: uint16(35556), + 64: uint16(35569), + 65: uint16(35604), + 66: uint16(35552), + 67: uint16(35554), + 68: uint16(35575), + 69: uint16(35550), + 70: uint16(35547), + 71: uint16(35596), + 72: uint16(35591), + 73: uint16(35610), + 74: uint16(35553), + 75: uint16(35606), + 76: uint16(35600), + 77: uint16(35607), + 78: uint16(35616), + 79: uint16(35635), + 80: uint16(38827), + 81: uint16(35622), + 82: uint16(35627), + 83: uint16(35646), + 84: uint16(35624), + 85: uint16(35649), + 86: uint16(35660), + 87: uint16(35663), + 88: uint16(35662), + 89: uint16(35657), + 90: uint16(35670), + 91: uint16(35675), + 92: uint16(35674), + 93: uint16(35691), + }, + 75: { + 0: uint16(35679), + 1: uint16(35692), + 2: uint16(35695), + 3: uint16(35700), + 4: uint16(35709), + 5: uint16(35712), + 6: uint16(35724), + 7: uint16(35726), + 8: uint16(35730), + 9: uint16(35731), + 10: uint16(35734), + 11: uint16(35737), + 12: uint16(35738), + 13: uint16(35898), + 14: uint16(35905), + 15: uint16(35903), + 16: uint16(35912), + 17: uint16(35916), + 18: uint16(35918), + 19: uint16(35920), + 20: uint16(35925), + 21: uint16(35938), + 22: uint16(35948), + 23: uint16(35960), + 24: uint16(35962), + 25: uint16(35970), + 26: uint16(35977), + 27: uint16(35973), + 28: uint16(35978), + 29: uint16(35981), + 30: uint16(35982), + 31: uint16(35988), + 32: uint16(35964), + 33: uint16(35992), + 34: uint16(25117), + 35: uint16(36013), + 36: uint16(36010), + 37: uint16(36029), + 38: uint16(36018), + 39: uint16(36019), + 40: uint16(36014), + 41: uint16(36022), + 42: uint16(36040), + 43: uint16(36033), + 44: uint16(36068), + 45: uint16(36067), + 46: uint16(36058), + 47: uint16(36093), + 48: uint16(36090), + 49: uint16(36091), + 50: uint16(36100), + 51: uint16(36101), + 52: uint16(36106), + 53: uint16(36103), + 54: uint16(36111), + 55: uint16(36109), + 56: uint16(36112), + 57: uint16(40782), + 58: uint16(36115), + 59: uint16(36045), + 60: uint16(36116), + 61: uint16(36118), + 62: uint16(36199), + 63: uint16(36205), + 64: uint16(36209), + 65: uint16(36211), + 66: uint16(36225), + 67: uint16(36249), + 68: uint16(36290), + 69: uint16(36286), + 70: uint16(36282), + 71: uint16(36303), + 72: uint16(36314), + 73: uint16(36310), + 74: uint16(36300), + 75: uint16(36315), + 76: uint16(36299), + 77: uint16(36330), + 78: uint16(36331), + 79: uint16(36319), + 80: uint16(36323), + 81: uint16(36348), + 82: uint16(36360), + 83: uint16(36361), + 84: uint16(36351), + 85: uint16(36381), + 86: uint16(36382), + 87: uint16(36368), + 88: uint16(36383), + 89: uint16(36418), + 90: uint16(36405), + 91: uint16(36400), + 92: uint16(36404), + 93: uint16(36426), + }, + 76: { + 0: uint16(36423), + 1: uint16(36425), + 2: uint16(36428), + 3: uint16(36432), + 4: uint16(36424), + 5: uint16(36441), + 6: uint16(36452), + 7: uint16(36448), + 8: uint16(36394), + 9: uint16(36451), + 10: uint16(36437), + 11: uint16(36470), + 12: uint16(36466), + 13: uint16(36476), + 14: uint16(36481), + 15: uint16(36487), + 16: uint16(36485), + 17: uint16(36484), + 18: uint16(36491), + 19: uint16(36490), + 20: uint16(36499), + 21: uint16(36497), + 22: uint16(36500), + 23: uint16(36505), + 24: uint16(36522), + 25: uint16(36513), + 26: uint16(36524), + 27: uint16(36528), + 28: uint16(36550), + 29: uint16(36529), + 30: uint16(36542), + 31: uint16(36549), + 32: uint16(36552), + 33: uint16(36555), + 34: uint16(36571), + 35: uint16(36579), + 36: uint16(36604), + 37: uint16(36603), + 38: uint16(36587), + 39: uint16(36606), + 40: uint16(36618), + 41: uint16(36613), + 42: uint16(36629), + 43: uint16(36626), + 44: uint16(36633), + 45: uint16(36627), + 46: uint16(36636), + 47: uint16(36639), + 48: uint16(36635), + 49: uint16(36620), + 50: uint16(36646), + 51: uint16(36659), + 52: uint16(36667), + 53: uint16(36665), + 54: uint16(36677), + 55: uint16(36674), + 56: uint16(36670), + 57: uint16(36684), + 58: uint16(36681), + 59: uint16(36678), + 60: uint16(36686), + 61: uint16(36695), + 62: uint16(36700), + 63: uint16(36706), + 64: uint16(36707), + 65: uint16(36708), + 66: uint16(36764), + 67: uint16(36767), + 68: uint16(36771), + 69: uint16(36781), + 70: uint16(36783), + 71: uint16(36791), + 72: uint16(36826), + 73: uint16(36837), + 74: uint16(36834), + 75: uint16(36842), + 76: uint16(36847), + 77: uint16(36999), + 78: uint16(36852), + 79: uint16(36869), + 80: uint16(36857), + 81: uint16(36858), + 82: uint16(36881), + 83: uint16(36885), + 84: uint16(36897), + 85: uint16(36877), + 86: uint16(36894), + 87: uint16(36886), + 88: uint16(36875), + 89: uint16(36903), + 90: uint16(36918), + 91: uint16(36917), + 92: uint16(36921), + 93: uint16(36856), + }, + 77: { + 0: uint16(36943), + 1: uint16(36944), + 2: uint16(36945), + 3: uint16(36946), + 4: uint16(36878), + 5: uint16(36937), + 6: uint16(36926), + 7: uint16(36950), + 8: uint16(36952), + 9: uint16(36958), + 10: uint16(36968), + 11: uint16(36975), + 12: uint16(36982), + 13: uint16(38568), + 14: uint16(36978), + 15: uint16(36994), + 16: uint16(36989), + 17: uint16(36993), + 18: uint16(36992), + 19: uint16(37002), + 20: uint16(37001), + 21: uint16(37007), + 22: uint16(37032), + 23: uint16(37039), + 24: uint16(37041), + 25: uint16(37045), + 26: uint16(37090), + 27: uint16(37092), + 28: uint16(25160), + 29: uint16(37083), + 30: uint16(37122), + 31: uint16(37138), + 32: uint16(37145), + 33: uint16(37170), + 34: uint16(37168), + 35: uint16(37194), + 36: uint16(37206), + 37: uint16(37208), + 38: uint16(37219), + 39: uint16(37221), + 40: uint16(37225), + 41: uint16(37235), + 42: uint16(37234), + 43: uint16(37259), + 44: uint16(37257), + 45: uint16(37250), + 46: uint16(37282), + 47: uint16(37291), + 48: uint16(37295), + 49: uint16(37290), + 50: uint16(37301), + 51: uint16(37300), + 52: uint16(37306), + 53: uint16(37312), + 54: uint16(37313), + 55: uint16(37321), + 56: uint16(37323), + 57: uint16(37328), + 58: uint16(37334), + 59: uint16(37343), + 60: uint16(37345), + 61: uint16(37339), + 62: uint16(37372), + 63: uint16(37365), + 64: uint16(37366), + 65: uint16(37406), + 66: uint16(37375), + 67: uint16(37396), + 68: uint16(37420), + 69: uint16(37397), + 70: uint16(37393), + 71: uint16(37470), + 72: uint16(37463), + 73: uint16(37445), + 74: uint16(37449), + 75: uint16(37476), + 76: uint16(37448), + 77: uint16(37525), + 78: uint16(37439), + 79: uint16(37451), + 80: uint16(37456), + 81: uint16(37532), + 82: uint16(37526), + 83: uint16(37523), + 84: uint16(37531), + 85: uint16(37466), + 86: uint16(37583), + 87: uint16(37561), + 88: uint16(37559), + 89: uint16(37609), + 90: uint16(37647), + 91: uint16(37626), + 92: uint16(37700), + 93: uint16(37678), + }, + 78: { + 0: uint16(37657), + 1: uint16(37666), + 2: uint16(37658), + 3: uint16(37667), + 4: uint16(37690), + 5: uint16(37685), + 6: uint16(37691), + 7: uint16(37724), + 8: uint16(37728), + 9: uint16(37756), + 10: uint16(37742), + 11: uint16(37718), + 12: uint16(37808), + 13: uint16(37804), + 14: uint16(37805), + 15: uint16(37780), + 16: uint16(37817), + 17: uint16(37846), + 18: uint16(37847), + 19: uint16(37864), + 20: uint16(37861), + 21: uint16(37848), + 22: uint16(37827), + 23: uint16(37853), + 24: uint16(37840), + 25: uint16(37832), + 26: uint16(37860), + 27: uint16(37914), + 28: uint16(37908), + 29: uint16(37907), + 30: uint16(37891), + 31: uint16(37895), + 32: uint16(37904), + 33: uint16(37942), + 34: uint16(37931), + 35: uint16(37941), + 36: uint16(37921), + 37: uint16(37946), + 38: uint16(37953), + 39: uint16(37970), + 40: uint16(37956), + 41: uint16(37979), + 42: uint16(37984), + 43: uint16(37986), + 44: uint16(37982), + 45: uint16(37994), + 46: uint16(37417), + 47: uint16(38000), + 48: uint16(38005), + 49: uint16(38007), + 50: uint16(38013), + 51: uint16(37978), + 52: uint16(38012), + 53: uint16(38014), + 54: uint16(38017), + 55: uint16(38015), + 56: uint16(38274), + 57: uint16(38279), + 58: uint16(38282), + 59: uint16(38292), + 60: uint16(38294), + 61: uint16(38296), + 62: uint16(38297), + 63: uint16(38304), + 64: uint16(38312), + 65: uint16(38311), + 66: uint16(38317), + 67: uint16(38332), + 68: uint16(38331), + 69: uint16(38329), + 70: uint16(38334), + 71: uint16(38346), + 72: uint16(28662), + 73: uint16(38339), + 74: uint16(38349), + 75: uint16(38348), + 76: uint16(38357), + 77: uint16(38356), + 78: uint16(38358), + 79: uint16(38364), + 80: uint16(38369), + 81: uint16(38373), + 82: uint16(38370), + 83: uint16(38433), + 84: uint16(38440), + 85: uint16(38446), + 86: uint16(38447), + 87: uint16(38466), + 88: uint16(38476), + 89: uint16(38479), + 90: uint16(38475), + 91: uint16(38519), + 92: uint16(38492), + 93: uint16(38494), + }, + 79: { + 0: uint16(38493), + 1: uint16(38495), + 2: uint16(38502), + 3: uint16(38514), + 4: uint16(38508), + 5: uint16(38541), + 6: uint16(38552), + 7: uint16(38549), + 8: uint16(38551), + 9: uint16(38570), + 10: uint16(38567), + 11: uint16(38577), + 12: uint16(38578), + 13: uint16(38576), + 14: uint16(38580), + 15: uint16(38582), + 16: uint16(38584), + 17: uint16(38585), + 18: uint16(38606), + 19: uint16(38603), + 20: uint16(38601), + 21: uint16(38605), + 22: uint16(35149), + 23: uint16(38620), + 24: uint16(38669), + 25: uint16(38613), + 26: uint16(38649), + 27: uint16(38660), + 28: uint16(38662), + 29: uint16(38664), + 30: uint16(38675), + 31: uint16(38670), + 32: uint16(38673), + 33: uint16(38671), + 34: uint16(38678), + 35: uint16(38681), + 36: uint16(38692), + 37: uint16(38698), + 38: uint16(38704), + 39: uint16(38713), + 40: uint16(38717), + 41: uint16(38718), + 42: uint16(38724), + 43: uint16(38726), + 44: uint16(38728), + 45: uint16(38722), + 46: uint16(38729), + 47: uint16(38748), + 48: uint16(38752), + 49: uint16(38756), + 50: uint16(38758), + 51: uint16(38760), + 52: uint16(21202), + 53: uint16(38763), + 54: uint16(38769), + 55: uint16(38777), + 56: uint16(38789), + 57: uint16(38780), + 58: uint16(38785), + 59: uint16(38778), + 60: uint16(38790), + 61: uint16(38795), + 62: uint16(38799), + 63: uint16(38800), + 64: uint16(38812), + 65: uint16(38824), + 66: uint16(38822), + 67: uint16(38819), + 68: uint16(38835), + 69: uint16(38836), + 70: uint16(38851), + 71: uint16(38854), + 72: uint16(38856), + 73: uint16(38859), + 74: uint16(38876), + 75: uint16(38893), + 76: uint16(40783), + 77: uint16(38898), + 78: uint16(31455), + 79: uint16(38902), + 80: uint16(38901), + 81: uint16(38927), + 82: uint16(38924), + 83: uint16(38968), + 84: uint16(38948), + 85: uint16(38945), + 86: uint16(38967), + 87: uint16(38973), + 88: uint16(38982), + 89: uint16(38991), + 90: uint16(38987), + 91: uint16(39019), + 92: uint16(39023), + 93: uint16(39024), + }, + 80: { + 0: uint16(39025), + 1: uint16(39028), + 2: uint16(39027), + 3: uint16(39082), + 4: uint16(39087), + 5: uint16(39089), + 6: uint16(39094), + 7: uint16(39108), + 8: uint16(39107), + 9: uint16(39110), + 10: uint16(39145), + 11: uint16(39147), + 12: uint16(39171), + 13: uint16(39177), + 14: uint16(39186), + 15: uint16(39188), + 16: uint16(39192), + 17: uint16(39201), + 18: uint16(39197), + 19: uint16(39198), + 20: uint16(39204), + 21: uint16(39200), + 22: uint16(39212), + 23: uint16(39214), + 24: uint16(39229), + 25: uint16(39230), + 26: uint16(39234), + 27: uint16(39241), + 28: uint16(39237), + 29: uint16(39248), + 30: uint16(39243), + 31: uint16(39249), + 32: uint16(39250), + 33: uint16(39244), + 34: uint16(39253), + 35: uint16(39319), + 36: uint16(39320), + 37: uint16(39333), + 38: uint16(39341), + 39: uint16(39342), + 40: uint16(39356), + 41: uint16(39391), + 42: uint16(39387), + 43: uint16(39389), + 44: uint16(39384), + 45: uint16(39377), + 46: uint16(39405), + 47: uint16(39406), + 48: uint16(39409), + 49: uint16(39410), + 50: uint16(39419), + 51: uint16(39416), + 52: uint16(39425), + 53: uint16(39439), + 54: uint16(39429), + 55: uint16(39394), + 56: uint16(39449), + 57: uint16(39467), + 58: uint16(39479), + 59: uint16(39493), + 60: uint16(39490), + 61: uint16(39488), + 62: uint16(39491), + 63: uint16(39486), + 64: uint16(39509), + 65: uint16(39501), + 66: uint16(39515), + 67: uint16(39511), + 68: uint16(39519), + 69: uint16(39522), + 70: uint16(39525), + 71: uint16(39524), + 72: uint16(39529), + 73: uint16(39531), + 74: uint16(39530), + 75: uint16(39597), + 76: uint16(39600), + 77: uint16(39612), + 78: uint16(39616), + 79: uint16(39631), + 80: uint16(39633), + 81: uint16(39635), + 82: uint16(39636), + 83: uint16(39646), + 84: uint16(39647), + 85: uint16(39650), + 86: uint16(39651), + 87: uint16(39654), + 88: uint16(39663), + 89: uint16(39659), + 90: uint16(39662), + 91: uint16(39668), + 92: uint16(39665), + 93: uint16(39671), + }, + 81: { + 0: uint16(39675), + 1: uint16(39686), + 2: uint16(39704), + 3: uint16(39706), + 4: uint16(39711), + 5: uint16(39714), + 6: uint16(39715), + 7: uint16(39717), + 8: uint16(39719), + 9: uint16(39720), + 10: uint16(39721), + 11: uint16(39722), + 12: uint16(39726), + 13: uint16(39727), + 14: uint16(39730), + 15: uint16(39748), + 16: uint16(39747), + 17: uint16(39759), + 18: uint16(39757), + 19: uint16(39758), + 20: uint16(39761), + 21: uint16(39768), + 22: uint16(39796), + 23: uint16(39827), + 24: uint16(39811), + 25: uint16(39825), + 26: uint16(39830), + 27: uint16(39831), + 28: uint16(39839), + 29: uint16(39840), + 30: uint16(39848), + 31: uint16(39860), + 32: uint16(39872), + 33: uint16(39882), + 34: uint16(39865), + 35: uint16(39878), + 36: uint16(39887), + 37: uint16(39889), + 38: uint16(39890), + 39: uint16(39907), + 40: uint16(39906), + 41: uint16(39908), + 42: uint16(39892), + 43: uint16(39905), + 44: uint16(39994), + 45: uint16(39922), + 46: uint16(39921), + 47: uint16(39920), + 48: uint16(39957), + 49: uint16(39956), + 50: uint16(39945), + 51: uint16(39955), + 52: uint16(39948), + 53: uint16(39942), + 54: uint16(39944), + 55: uint16(39954), + 56: uint16(39946), + 57: uint16(39940), + 58: uint16(39982), + 59: uint16(39963), + 60: uint16(39973), + 61: uint16(39972), + 62: uint16(39969), + 63: uint16(39984), + 64: uint16(40007), + 65: uint16(39986), + 66: uint16(40006), + 67: uint16(39998), + 68: uint16(40026), + 69: uint16(40032), + 70: uint16(40039), + 71: uint16(40054), + 72: uint16(40056), + 73: uint16(40167), + 74: uint16(40172), + 75: uint16(40176), + 76: uint16(40201), + 77: uint16(40200), + 78: uint16(40171), + 79: uint16(40195), + 80: uint16(40198), + 81: uint16(40234), + 82: uint16(40230), + 83: uint16(40367), + 84: uint16(40227), + 85: uint16(40223), + 86: uint16(40260), + 87: uint16(40213), + 88: uint16(40210), + 89: uint16(40257), + 90: uint16(40255), + 91: uint16(40254), + 92: uint16(40262), + 93: uint16(40264), + }, + 82: { + 0: uint16(40285), + 1: uint16(40286), + 2: uint16(40292), + 3: uint16(40273), + 4: uint16(40272), + 5: uint16(40281), + 6: uint16(40306), + 7: uint16(40329), + 8: uint16(40327), + 9: uint16(40363), + 10: uint16(40303), + 11: uint16(40314), + 12: uint16(40346), + 13: uint16(40356), + 14: uint16(40361), + 15: uint16(40370), + 16: uint16(40388), + 17: uint16(40385), + 18: uint16(40379), + 19: uint16(40376), + 20: uint16(40378), + 21: uint16(40390), + 22: uint16(40399), + 23: uint16(40386), + 24: uint16(40409), + 25: uint16(40403), + 26: uint16(40440), + 27: uint16(40422), + 28: uint16(40429), + 29: uint16(40431), + 30: uint16(40445), + 31: uint16(40474), + 32: uint16(40475), + 33: uint16(40478), + 34: uint16(40565), + 35: uint16(40569), + 36: uint16(40573), + 37: uint16(40577), + 38: uint16(40584), + 39: uint16(40587), + 40: uint16(40588), + 41: uint16(40594), + 42: uint16(40597), + 43: uint16(40593), + 44: uint16(40605), + 45: uint16(40613), + 46: uint16(40617), + 47: uint16(40632), + 48: uint16(40618), + 49: uint16(40621), + 50: uint16(38753), + 51: uint16(40652), + 52: uint16(40654), + 53: uint16(40655), + 54: uint16(40656), + 55: uint16(40660), + 56: uint16(40668), + 57: uint16(40670), + 58: uint16(40669), + 59: uint16(40672), + 60: uint16(40677), + 61: uint16(40680), + 62: uint16(40687), + 63: uint16(40692), + 64: uint16(40694), + 65: uint16(40695), + 66: uint16(40697), + 67: uint16(40699), + 68: uint16(40700), + 69: uint16(40701), + 70: uint16(40711), + 71: uint16(40712), + 72: uint16(30391), + 73: uint16(40725), + 74: uint16(40737), + 75: uint16(40748), + 76: uint16(40766), + 77: uint16(40778), + 78: uint16(40786), + 79: uint16(40788), + 80: uint16(40803), + 81: uint16(40799), + 82: uint16(40800), + 83: uint16(40801), + 84: uint16(40806), + 85: uint16(40807), + 86: uint16(40812), + 87: uint16(40810), + 88: uint16(40823), + 89: uint16(40818), + 90: uint16(40822), + 91: uint16(40853), + 92: uint16(40860), + 93: uint16(40864), + }, + 83: { + 0: uint16(22575), + 1: uint16(27079), + 2: uint16(36953), + 3: uint16(29796), + 4: uint16(20956), + 5: uint16(29081), + }, +} + +var _gb18030 = [126][190]uint16{ + 0: { + 0: uint16(19970), + 1: uint16(19972), + 2: uint16(19973), + 3: uint16(19974), + 4: uint16(19983), + 5: uint16(19986), + 6: uint16(19991), + 7: uint16(19999), + 8: uint16(20000), + 9: uint16(20001), + 10: uint16(20003), + 11: uint16(20006), + 12: uint16(20009), + 13: uint16(20014), + 14: uint16(20015), + 15: uint16(20017), + 16: uint16(20019), + 17: uint16(20021), + 18: uint16(20023), + 19: uint16(20028), + 20: uint16(20032), + 21: uint16(20033), + 22: uint16(20034), + 23: uint16(20036), + 24: uint16(20038), + 25: uint16(20042), + 26: uint16(20049), + 27: uint16(20053), + 28: uint16(20055), + 29: uint16(20058), + 30: uint16(20059), + 31: uint16(20066), + 32: uint16(20067), + 33: uint16(20068), + 34: uint16(20069), + 35: uint16(20071), + 36: uint16(20072), + 37: uint16(20074), + 38: uint16(20075), + 39: uint16(20076), + 40: uint16(20077), + 41: uint16(20078), + 42: uint16(20079), + 43: uint16(20082), + 44: uint16(20084), + 45: uint16(20085), + 46: uint16(20086), + 47: uint16(20087), + 48: uint16(20088), + 49: uint16(20089), + 50: uint16(20090), + 51: uint16(20091), + 52: uint16(20092), + 53: uint16(20093), + 54: uint16(20095), + 55: uint16(20096), + 56: uint16(20097), + 57: uint16(20098), + 58: uint16(20099), + 59: uint16(20100), + 60: uint16(20101), + 61: uint16(20103), + 62: uint16(20106), + 63: uint16(20112), + 64: uint16(20118), + 65: uint16(20119), + 66: uint16(20121), + 67: uint16(20124), + 68: uint16(20125), + 69: uint16(20126), + 70: uint16(20131), + 71: uint16(20138), + 72: uint16(20143), + 73: uint16(20144), + 74: uint16(20145), + 75: uint16(20148), + 76: uint16(20150), + 77: uint16(20151), + 78: uint16(20152), + 79: uint16(20153), + 80: uint16(20156), + 81: uint16(20157), + 82: uint16(20158), + 83: uint16(20168), + 84: uint16(20172), + 85: uint16(20175), + 86: uint16(20176), + 87: uint16(20178), + 88: uint16(20186), + 89: uint16(20187), + 90: uint16(20188), + 91: uint16(20192), + 92: uint16(20194), + 93: uint16(20198), + 94: uint16(20199), + 95: uint16(20201), + 96: uint16(20205), + 97: uint16(20206), + 98: uint16(20207), + 99: uint16(20209), + 100: uint16(20212), + 101: uint16(20216), + 102: uint16(20217), + 103: uint16(20218), + 104: uint16(20220), + 105: uint16(20222), + 106: uint16(20224), + 107: uint16(20226), + 108: uint16(20227), + 109: uint16(20228), + 110: uint16(20229), + 111: uint16(20230), + 112: uint16(20231), + 113: uint16(20232), + 114: uint16(20235), + 115: uint16(20236), + 116: uint16(20242), + 117: uint16(20243), + 118: uint16(20244), + 119: uint16(20245), + 120: uint16(20246), + 121: uint16(20252), + 122: uint16(20253), + 123: uint16(20257), + 124: uint16(20259), + 125: uint16(20264), + 126: uint16(20265), + 127: uint16(20268), + 128: uint16(20269), + 129: uint16(20270), + 130: uint16(20273), + 131: uint16(20275), + 132: uint16(20277), + 133: uint16(20279), + 134: uint16(20281), + 135: uint16(20283), + 136: uint16(20286), + 137: uint16(20287), + 138: uint16(20288), + 139: uint16(20289), + 140: uint16(20290), + 141: uint16(20292), + 142: uint16(20293), + 143: uint16(20295), + 144: uint16(20296), + 145: uint16(20297), + 146: uint16(20298), + 147: uint16(20299), + 148: uint16(20300), + 149: uint16(20306), + 150: uint16(20308), + 151: uint16(20310), + 152: uint16(20321), + 153: uint16(20322), + 154: uint16(20326), + 155: uint16(20328), + 156: uint16(20330), + 157: uint16(20331), + 158: uint16(20333), + 159: uint16(20334), + 160: uint16(20337), + 161: uint16(20338), + 162: uint16(20341), + 163: uint16(20343), + 164: uint16(20344), + 165: uint16(20345), + 166: uint16(20346), + 167: uint16(20349), + 168: uint16(20352), + 169: uint16(20353), + 170: uint16(20354), + 171: uint16(20357), + 172: uint16(20358), + 173: uint16(20359), + 174: uint16(20362), + 175: uint16(20364), + 176: uint16(20366), + 177: uint16(20368), + 178: uint16(20370), + 179: uint16(20371), + 180: uint16(20373), + 181: uint16(20374), + 182: uint16(20376), + 183: uint16(20377), + 184: uint16(20378), + 185: uint16(20380), + 186: uint16(20382), + 187: uint16(20383), + 188: uint16(20385), + 189: uint16(20386), + }, + 1: { + 0: uint16(20388), + 1: uint16(20395), + 2: uint16(20397), + 3: uint16(20400), + 4: uint16(20401), + 5: uint16(20402), + 6: uint16(20403), + 7: uint16(20404), + 8: uint16(20406), + 9: uint16(20407), + 10: uint16(20408), + 11: uint16(20409), + 12: uint16(20410), + 13: uint16(20411), + 14: uint16(20412), + 15: uint16(20413), + 16: uint16(20414), + 17: uint16(20416), + 18: uint16(20417), + 19: uint16(20418), + 20: uint16(20422), + 21: uint16(20423), + 22: uint16(20424), + 23: uint16(20425), + 24: uint16(20427), + 25: uint16(20428), + 26: uint16(20429), + 27: uint16(20434), + 28: uint16(20435), + 29: uint16(20436), + 30: uint16(20437), + 31: uint16(20438), + 32: uint16(20441), + 33: uint16(20443), + 34: uint16(20448), + 35: uint16(20450), + 36: uint16(20452), + 37: uint16(20453), + 38: uint16(20455), + 39: uint16(20459), + 40: uint16(20460), + 41: uint16(20464), + 42: uint16(20466), + 43: uint16(20468), + 44: uint16(20469), + 45: uint16(20470), + 46: uint16(20471), + 47: uint16(20473), + 48: uint16(20475), + 49: uint16(20476), + 50: uint16(20477), + 51: uint16(20479), + 52: uint16(20480), + 53: uint16(20481), + 54: uint16(20482), + 55: uint16(20483), + 56: uint16(20484), + 57: uint16(20485), + 58: uint16(20486), + 59: uint16(20487), + 60: uint16(20488), + 61: uint16(20489), + 62: uint16(20490), + 63: uint16(20491), + 64: uint16(20494), + 65: uint16(20496), + 66: uint16(20497), + 67: uint16(20499), + 68: uint16(20501), + 69: uint16(20502), + 70: uint16(20503), + 71: uint16(20507), + 72: uint16(20509), + 73: uint16(20510), + 74: uint16(20512), + 75: uint16(20514), + 76: uint16(20515), + 77: uint16(20516), + 78: uint16(20519), + 79: uint16(20523), + 80: uint16(20527), + 81: uint16(20528), + 82: uint16(20529), + 83: uint16(20530), + 84: uint16(20531), + 85: uint16(20532), + 86: uint16(20533), + 87: uint16(20534), + 88: uint16(20535), + 89: uint16(20536), + 90: uint16(20537), + 91: uint16(20539), + 92: uint16(20541), + 93: uint16(20543), + 94: uint16(20544), + 95: uint16(20545), + 96: uint16(20546), + 97: uint16(20548), + 98: uint16(20549), + 99: uint16(20550), + 100: uint16(20553), + 101: uint16(20554), + 102: uint16(20555), + 103: uint16(20557), + 104: uint16(20560), + 105: uint16(20561), + 106: uint16(20562), + 107: uint16(20563), + 108: uint16(20564), + 109: uint16(20566), + 110: uint16(20567), + 111: uint16(20568), + 112: uint16(20569), + 113: uint16(20571), + 114: uint16(20573), + 115: uint16(20574), + 116: uint16(20575), + 117: uint16(20576), + 118: uint16(20577), + 119: uint16(20578), + 120: uint16(20579), + 121: uint16(20580), + 122: uint16(20582), + 123: uint16(20583), + 124: uint16(20584), + 125: uint16(20585), + 126: uint16(20586), + 127: uint16(20587), + 128: uint16(20589), + 129: uint16(20590), + 130: uint16(20591), + 131: uint16(20592), + 132: uint16(20593), + 133: uint16(20594), + 134: uint16(20595), + 135: uint16(20596), + 136: uint16(20597), + 137: uint16(20600), + 138: uint16(20601), + 139: uint16(20602), + 140: uint16(20604), + 141: uint16(20605), + 142: uint16(20609), + 143: uint16(20610), + 144: uint16(20611), + 145: uint16(20612), + 146: uint16(20614), + 147: uint16(20615), + 148: uint16(20617), + 149: uint16(20618), + 150: uint16(20619), + 151: uint16(20620), + 152: uint16(20622), + 153: uint16(20623), + 154: uint16(20624), + 155: uint16(20625), + 156: uint16(20626), + 157: uint16(20627), + 158: uint16(20628), + 159: uint16(20629), + 160: uint16(20630), + 161: uint16(20631), + 162: uint16(20632), + 163: uint16(20633), + 164: uint16(20634), + 165: uint16(20635), + 166: uint16(20636), + 167: uint16(20637), + 168: uint16(20638), + 169: uint16(20639), + 170: uint16(20640), + 171: uint16(20641), + 172: uint16(20642), + 173: uint16(20644), + 174: uint16(20646), + 175: uint16(20650), + 176: uint16(20651), + 177: uint16(20653), + 178: uint16(20654), + 179: uint16(20655), + 180: uint16(20656), + 181: uint16(20657), + 182: uint16(20659), + 183: uint16(20660), + 184: uint16(20661), + 185: uint16(20662), + 186: uint16(20663), + 187: uint16(20664), + 188: uint16(20665), + 189: uint16(20668), + }, + 2: { + 0: uint16(20669), + 1: uint16(20670), + 2: uint16(20671), + 3: uint16(20672), + 4: uint16(20673), + 5: uint16(20674), + 6: uint16(20675), + 7: uint16(20676), + 8: uint16(20677), + 9: uint16(20678), + 10: uint16(20679), + 11: uint16(20680), + 12: uint16(20681), + 13: uint16(20682), + 14: uint16(20683), + 15: uint16(20684), + 16: uint16(20685), + 17: uint16(20686), + 18: uint16(20688), + 19: uint16(20689), + 20: uint16(20690), + 21: uint16(20691), + 22: uint16(20692), + 23: uint16(20693), + 24: uint16(20695), + 25: uint16(20696), + 26: uint16(20697), + 27: uint16(20699), + 28: uint16(20700), + 29: uint16(20701), + 30: uint16(20702), + 31: uint16(20703), + 32: uint16(20704), + 33: uint16(20705), + 34: uint16(20706), + 35: uint16(20707), + 36: uint16(20708), + 37: uint16(20709), + 38: uint16(20712), + 39: uint16(20713), + 40: uint16(20714), + 41: uint16(20715), + 42: uint16(20719), + 43: uint16(20720), + 44: uint16(20721), + 45: uint16(20722), + 46: uint16(20724), + 47: uint16(20726), + 48: uint16(20727), + 49: uint16(20728), + 50: uint16(20729), + 51: uint16(20730), + 52: uint16(20732), + 53: uint16(20733), + 54: uint16(20734), + 55: uint16(20735), + 56: uint16(20736), + 57: uint16(20737), + 58: uint16(20738), + 59: uint16(20739), + 60: uint16(20740), + 61: uint16(20741), + 62: uint16(20744), + 63: uint16(20745), + 64: uint16(20746), + 65: uint16(20748), + 66: uint16(20749), + 67: uint16(20750), + 68: uint16(20751), + 69: uint16(20752), + 70: uint16(20753), + 71: uint16(20755), + 72: uint16(20756), + 73: uint16(20757), + 74: uint16(20758), + 75: uint16(20759), + 76: uint16(20760), + 77: uint16(20761), + 78: uint16(20762), + 79: uint16(20763), + 80: uint16(20764), + 81: uint16(20765), + 82: uint16(20766), + 83: uint16(20767), + 84: uint16(20768), + 85: uint16(20770), + 86: uint16(20771), + 87: uint16(20772), + 88: uint16(20773), + 89: uint16(20774), + 90: uint16(20775), + 91: uint16(20776), + 92: uint16(20777), + 93: uint16(20778), + 94: uint16(20779), + 95: uint16(20780), + 96: uint16(20781), + 97: uint16(20782), + 98: uint16(20783), + 99: uint16(20784), + 100: uint16(20785), + 101: uint16(20786), + 102: uint16(20787), + 103: uint16(20788), + 104: uint16(20789), + 105: uint16(20790), + 106: uint16(20791), + 107: uint16(20792), + 108: uint16(20793), + 109: uint16(20794), + 110: uint16(20795), + 111: uint16(20796), + 112: uint16(20797), + 113: uint16(20798), + 114: uint16(20802), + 115: uint16(20807), + 116: uint16(20810), + 117: uint16(20812), + 118: uint16(20814), + 119: uint16(20815), + 120: uint16(20816), + 121: uint16(20818), + 122: uint16(20819), + 123: uint16(20823), + 124: uint16(20824), + 125: uint16(20825), + 126: uint16(20827), + 127: uint16(20829), + 128: uint16(20830), + 129: uint16(20831), + 130: uint16(20832), + 131: uint16(20833), + 132: uint16(20835), + 133: uint16(20836), + 134: uint16(20838), + 135: uint16(20839), + 136: uint16(20841), + 137: uint16(20842), + 138: uint16(20847), + 139: uint16(20850), + 140: uint16(20858), + 141: uint16(20862), + 142: uint16(20863), + 143: uint16(20867), + 144: uint16(20868), + 145: uint16(20870), + 146: uint16(20871), + 147: uint16(20874), + 148: uint16(20875), + 149: uint16(20878), + 150: uint16(20879), + 151: uint16(20880), + 152: uint16(20881), + 153: uint16(20883), + 154: uint16(20884), + 155: uint16(20888), + 156: uint16(20890), + 157: uint16(20893), + 158: uint16(20894), + 159: uint16(20895), + 160: uint16(20897), + 161: uint16(20899), + 162: uint16(20902), + 163: uint16(20903), + 164: uint16(20904), + 165: uint16(20905), + 166: uint16(20906), + 167: uint16(20909), + 168: uint16(20910), + 169: uint16(20916), + 170: uint16(20920), + 171: uint16(20921), + 172: uint16(20922), + 173: uint16(20926), + 174: uint16(20927), + 175: uint16(20929), + 176: uint16(20930), + 177: uint16(20931), + 178: uint16(20933), + 179: uint16(20936), + 180: uint16(20938), + 181: uint16(20941), + 182: uint16(20942), + 183: uint16(20944), + 184: uint16(20946), + 185: uint16(20947), + 186: uint16(20948), + 187: uint16(20949), + 188: uint16(20950), + 189: uint16(20951), + }, + 3: { + 0: uint16(20952), + 1: uint16(20953), + 2: uint16(20954), + 3: uint16(20956), + 4: uint16(20958), + 5: uint16(20959), + 6: uint16(20962), + 7: uint16(20963), + 8: uint16(20965), + 9: uint16(20966), + 10: uint16(20967), + 11: uint16(20968), + 12: uint16(20969), + 13: uint16(20970), + 14: uint16(20972), + 15: uint16(20974), + 16: uint16(20977), + 17: uint16(20978), + 18: uint16(20980), + 19: uint16(20983), + 20: uint16(20990), + 21: uint16(20996), + 22: uint16(20997), + 23: uint16(21001), + 24: uint16(21003), + 25: uint16(21004), + 26: uint16(21007), + 27: uint16(21008), + 28: uint16(21011), + 29: uint16(21012), + 30: uint16(21013), + 31: uint16(21020), + 32: uint16(21022), + 33: uint16(21023), + 34: uint16(21025), + 35: uint16(21026), + 36: uint16(21027), + 37: uint16(21029), + 38: uint16(21030), + 39: uint16(21031), + 40: uint16(21034), + 41: uint16(21036), + 42: uint16(21039), + 43: uint16(21041), + 44: uint16(21042), + 45: uint16(21044), + 46: uint16(21045), + 47: uint16(21052), + 48: uint16(21054), + 49: uint16(21060), + 50: uint16(21061), + 51: uint16(21062), + 52: uint16(21063), + 53: uint16(21064), + 54: uint16(21065), + 55: uint16(21067), + 56: uint16(21070), + 57: uint16(21071), + 58: uint16(21074), + 59: uint16(21075), + 60: uint16(21077), + 61: uint16(21079), + 62: uint16(21080), + 63: uint16(21081), + 64: uint16(21082), + 65: uint16(21083), + 66: uint16(21085), + 67: uint16(21087), + 68: uint16(21088), + 69: uint16(21090), + 70: uint16(21091), + 71: uint16(21092), + 72: uint16(21094), + 73: uint16(21096), + 74: uint16(21099), + 75: uint16(21100), + 76: uint16(21101), + 77: uint16(21102), + 78: uint16(21104), + 79: uint16(21105), + 80: uint16(21107), + 81: uint16(21108), + 82: uint16(21109), + 83: uint16(21110), + 84: uint16(21111), + 85: uint16(21112), + 86: uint16(21113), + 87: uint16(21114), + 88: uint16(21115), + 89: uint16(21116), + 90: uint16(21118), + 91: uint16(21120), + 92: uint16(21123), + 93: uint16(21124), + 94: uint16(21125), + 95: uint16(21126), + 96: uint16(21127), + 97: uint16(21129), + 98: uint16(21130), + 99: uint16(21131), + 100: uint16(21132), + 101: uint16(21133), + 102: uint16(21134), + 103: uint16(21135), + 104: uint16(21137), + 105: uint16(21138), + 106: uint16(21140), + 107: uint16(21141), + 108: uint16(21142), + 109: uint16(21143), + 110: uint16(21144), + 111: uint16(21145), + 112: uint16(21146), + 113: uint16(21148), + 114: uint16(21156), + 115: uint16(21157), + 116: uint16(21158), + 117: uint16(21159), + 118: uint16(21166), + 119: uint16(21167), + 120: uint16(21168), + 121: uint16(21172), + 122: uint16(21173), + 123: uint16(21174), + 124: uint16(21175), + 125: uint16(21176), + 126: uint16(21177), + 127: uint16(21178), + 128: uint16(21179), + 129: uint16(21180), + 130: uint16(21181), + 131: uint16(21184), + 132: uint16(21185), + 133: uint16(21186), + 134: uint16(21188), + 135: uint16(21189), + 136: uint16(21190), + 137: uint16(21192), + 138: uint16(21194), + 139: uint16(21196), + 140: uint16(21197), + 141: uint16(21198), + 142: uint16(21199), + 143: uint16(21201), + 144: uint16(21203), + 145: uint16(21204), + 146: uint16(21205), + 147: uint16(21207), + 148: uint16(21209), + 149: uint16(21210), + 150: uint16(21211), + 151: uint16(21212), + 152: uint16(21213), + 153: uint16(21214), + 154: uint16(21216), + 155: uint16(21217), + 156: uint16(21218), + 157: uint16(21219), + 158: uint16(21221), + 159: uint16(21222), + 160: uint16(21223), + 161: uint16(21224), + 162: uint16(21225), + 163: uint16(21226), + 164: uint16(21227), + 165: uint16(21228), + 166: uint16(21229), + 167: uint16(21230), + 168: uint16(21231), + 169: uint16(21233), + 170: uint16(21234), + 171: uint16(21235), + 172: uint16(21236), + 173: uint16(21237), + 174: uint16(21238), + 175: uint16(21239), + 176: uint16(21240), + 177: uint16(21243), + 178: uint16(21244), + 179: uint16(21245), + 180: uint16(21249), + 181: uint16(21250), + 182: uint16(21251), + 183: uint16(21252), + 184: uint16(21255), + 185: uint16(21257), + 186: uint16(21258), + 187: uint16(21259), + 188: uint16(21260), + 189: uint16(21262), + }, + 4: { + 0: uint16(21265), + 1: uint16(21266), + 2: uint16(21267), + 3: uint16(21268), + 4: uint16(21272), + 5: uint16(21275), + 6: uint16(21276), + 7: uint16(21278), + 8: uint16(21279), + 9: uint16(21282), + 10: uint16(21284), + 11: uint16(21285), + 12: uint16(21287), + 13: uint16(21288), + 14: uint16(21289), + 15: uint16(21291), + 16: uint16(21292), + 17: uint16(21293), + 18: uint16(21295), + 19: uint16(21296), + 20: uint16(21297), + 21: uint16(21298), + 22: uint16(21299), + 23: uint16(21300), + 24: uint16(21301), + 25: uint16(21302), + 26: uint16(21303), + 27: uint16(21304), + 28: uint16(21308), + 29: uint16(21309), + 30: uint16(21312), + 31: uint16(21314), + 32: uint16(21316), + 33: uint16(21318), + 34: uint16(21323), + 35: uint16(21324), + 36: uint16(21325), + 37: uint16(21328), + 38: uint16(21332), + 39: uint16(21336), + 40: uint16(21337), + 41: uint16(21339), + 42: uint16(21341), + 43: uint16(21349), + 44: uint16(21352), + 45: uint16(21354), + 46: uint16(21356), + 47: uint16(21357), + 48: uint16(21362), + 49: uint16(21366), + 50: uint16(21369), + 51: uint16(21371), + 52: uint16(21372), + 53: uint16(21373), + 54: uint16(21374), + 55: uint16(21376), + 56: uint16(21377), + 57: uint16(21379), + 58: uint16(21383), + 59: uint16(21384), + 60: uint16(21386), + 61: uint16(21390), + 62: uint16(21391), + 63: uint16(21392), + 64: uint16(21393), + 65: uint16(21394), + 66: uint16(21395), + 67: uint16(21396), + 68: uint16(21398), + 69: uint16(21399), + 70: uint16(21401), + 71: uint16(21403), + 72: uint16(21404), + 73: uint16(21406), + 74: uint16(21408), + 75: uint16(21409), + 76: uint16(21412), + 77: uint16(21415), + 78: uint16(21418), + 79: uint16(21419), + 80: uint16(21420), + 81: uint16(21421), + 82: uint16(21423), + 83: uint16(21424), + 84: uint16(21425), + 85: uint16(21426), + 86: uint16(21427), + 87: uint16(21428), + 88: uint16(21429), + 89: uint16(21431), + 90: uint16(21432), + 91: uint16(21433), + 92: uint16(21434), + 93: uint16(21436), + 94: uint16(21437), + 95: uint16(21438), + 96: uint16(21440), + 97: uint16(21443), + 98: uint16(21444), + 99: uint16(21445), + 100: uint16(21446), + 101: uint16(21447), + 102: uint16(21454), + 103: uint16(21455), + 104: uint16(21456), + 105: uint16(21458), + 106: uint16(21459), + 107: uint16(21461), + 108: uint16(21466), + 109: uint16(21468), + 110: uint16(21469), + 111: uint16(21470), + 112: uint16(21473), + 113: uint16(21474), + 114: uint16(21479), + 115: uint16(21492), + 116: uint16(21498), + 117: uint16(21502), + 118: uint16(21503), + 119: uint16(21504), + 120: uint16(21506), + 121: uint16(21509), + 122: uint16(21511), + 123: uint16(21515), + 124: uint16(21524), + 125: uint16(21528), + 126: uint16(21529), + 127: uint16(21530), + 128: uint16(21532), + 129: uint16(21538), + 130: uint16(21540), + 131: uint16(21541), + 132: uint16(21546), + 133: uint16(21552), + 134: uint16(21555), + 135: uint16(21558), + 136: uint16(21559), + 137: uint16(21562), + 138: uint16(21565), + 139: uint16(21567), + 140: uint16(21569), + 141: uint16(21570), + 142: uint16(21572), + 143: uint16(21573), + 144: uint16(21575), + 145: uint16(21577), + 146: uint16(21580), + 147: uint16(21581), + 148: uint16(21582), + 149: uint16(21583), + 150: uint16(21585), + 151: uint16(21594), + 152: uint16(21597), + 153: uint16(21598), + 154: uint16(21599), + 155: uint16(21600), + 156: uint16(21601), + 157: uint16(21603), + 158: uint16(21605), + 159: uint16(21607), + 160: uint16(21609), + 161: uint16(21610), + 162: uint16(21611), + 163: uint16(21612), + 164: uint16(21613), + 165: uint16(21614), + 166: uint16(21615), + 167: uint16(21616), + 168: uint16(21620), + 169: uint16(21625), + 170: uint16(21626), + 171: uint16(21630), + 172: uint16(21631), + 173: uint16(21633), + 174: uint16(21635), + 175: uint16(21637), + 176: uint16(21639), + 177: uint16(21640), + 178: uint16(21641), + 179: uint16(21642), + 180: uint16(21645), + 181: uint16(21649), + 182: uint16(21651), + 183: uint16(21655), + 184: uint16(21656), + 185: uint16(21660), + 186: uint16(21662), + 187: uint16(21663), + 188: uint16(21664), + 189: uint16(21665), + }, + 5: { + 0: uint16(21666), + 1: uint16(21669), + 2: uint16(21678), + 3: uint16(21680), + 4: uint16(21682), + 5: uint16(21685), + 6: uint16(21686), + 7: uint16(21687), + 8: uint16(21689), + 9: uint16(21690), + 10: uint16(21692), + 11: uint16(21694), + 12: uint16(21699), + 13: uint16(21701), + 14: uint16(21706), + 15: uint16(21707), + 16: uint16(21718), + 17: uint16(21720), + 18: uint16(21723), + 19: uint16(21728), + 20: uint16(21729), + 21: uint16(21730), + 22: uint16(21731), + 23: uint16(21732), + 24: uint16(21739), + 25: uint16(21740), + 26: uint16(21743), + 27: uint16(21744), + 28: uint16(21745), + 29: uint16(21748), + 30: uint16(21749), + 31: uint16(21750), + 32: uint16(21751), + 33: uint16(21752), + 34: uint16(21753), + 35: uint16(21755), + 36: uint16(21758), + 37: uint16(21760), + 38: uint16(21762), + 39: uint16(21763), + 40: uint16(21764), + 41: uint16(21765), + 42: uint16(21768), + 43: uint16(21770), + 44: uint16(21771), + 45: uint16(21772), + 46: uint16(21773), + 47: uint16(21774), + 48: uint16(21778), + 49: uint16(21779), + 50: uint16(21781), + 51: uint16(21782), + 52: uint16(21783), + 53: uint16(21784), + 54: uint16(21785), + 55: uint16(21786), + 56: uint16(21788), + 57: uint16(21789), + 58: uint16(21790), + 59: uint16(21791), + 60: uint16(21793), + 61: uint16(21797), + 62: uint16(21798), + 63: uint16(21800), + 64: uint16(21801), + 65: uint16(21803), + 66: uint16(21805), + 67: uint16(21810), + 68: uint16(21812), + 69: uint16(21813), + 70: uint16(21814), + 71: uint16(21816), + 72: uint16(21817), + 73: uint16(21818), + 74: uint16(21819), + 75: uint16(21821), + 76: uint16(21824), + 77: uint16(21826), + 78: uint16(21829), + 79: uint16(21831), + 80: uint16(21832), + 81: uint16(21835), + 82: uint16(21836), + 83: uint16(21837), + 84: uint16(21838), + 85: uint16(21839), + 86: uint16(21841), + 87: uint16(21842), + 88: uint16(21843), + 89: uint16(21844), + 90: uint16(21847), + 91: uint16(21848), + 92: uint16(21849), + 93: uint16(21850), + 94: uint16(21851), + 95: uint16(21853), + 96: uint16(21854), + 97: uint16(21855), + 98: uint16(21856), + 99: uint16(21858), + 100: uint16(21859), + 101: uint16(21864), + 102: uint16(21865), + 103: uint16(21867), + 104: uint16(21871), + 105: uint16(21872), + 106: uint16(21873), + 107: uint16(21874), + 108: uint16(21875), + 109: uint16(21876), + 110: uint16(21881), + 111: uint16(21882), + 112: uint16(21885), + 113: uint16(21887), + 114: uint16(21893), + 115: uint16(21894), + 116: uint16(21900), + 117: uint16(21901), + 118: uint16(21902), + 119: uint16(21904), + 120: uint16(21906), + 121: uint16(21907), + 122: uint16(21909), + 123: uint16(21910), + 124: uint16(21911), + 125: uint16(21914), + 126: uint16(21915), + 127: uint16(21918), + 128: uint16(21920), + 129: uint16(21921), + 130: uint16(21922), + 131: uint16(21923), + 132: uint16(21924), + 133: uint16(21925), + 134: uint16(21926), + 135: uint16(21928), + 136: uint16(21929), + 137: uint16(21930), + 138: uint16(21931), + 139: uint16(21932), + 140: uint16(21933), + 141: uint16(21934), + 142: uint16(21935), + 143: uint16(21936), + 144: uint16(21938), + 145: uint16(21940), + 146: uint16(21942), + 147: uint16(21944), + 148: uint16(21946), + 149: uint16(21948), + 150: uint16(21951), + 151: uint16(21952), + 152: uint16(21953), + 153: uint16(21954), + 154: uint16(21955), + 155: uint16(21958), + 156: uint16(21959), + 157: uint16(21960), + 158: uint16(21962), + 159: uint16(21963), + 160: uint16(21966), + 161: uint16(21967), + 162: uint16(21968), + 163: uint16(21973), + 164: uint16(21975), + 165: uint16(21976), + 166: uint16(21977), + 167: uint16(21978), + 168: uint16(21979), + 169: uint16(21982), + 170: uint16(21984), + 171: uint16(21986), + 172: uint16(21991), + 173: uint16(21993), + 174: uint16(21997), + 175: uint16(21998), + 176: uint16(22000), + 177: uint16(22001), + 178: uint16(22004), + 179: uint16(22006), + 180: uint16(22008), + 181: uint16(22009), + 182: uint16(22010), + 183: uint16(22011), + 184: uint16(22012), + 185: uint16(22015), + 186: uint16(22018), + 187: uint16(22019), + 188: uint16(22020), + 189: uint16(22021), + }, + 6: { + 0: uint16(22022), + 1: uint16(22023), + 2: uint16(22026), + 3: uint16(22027), + 4: uint16(22029), + 5: uint16(22032), + 6: uint16(22033), + 7: uint16(22034), + 8: uint16(22035), + 9: uint16(22036), + 10: uint16(22037), + 11: uint16(22038), + 12: uint16(22039), + 13: uint16(22041), + 14: uint16(22042), + 15: uint16(22044), + 16: uint16(22045), + 17: uint16(22048), + 18: uint16(22049), + 19: uint16(22050), + 20: uint16(22053), + 21: uint16(22054), + 22: uint16(22056), + 23: uint16(22057), + 24: uint16(22058), + 25: uint16(22059), + 26: uint16(22062), + 27: uint16(22063), + 28: uint16(22064), + 29: uint16(22067), + 30: uint16(22069), + 31: uint16(22071), + 32: uint16(22072), + 33: uint16(22074), + 34: uint16(22076), + 35: uint16(22077), + 36: uint16(22078), + 37: uint16(22080), + 38: uint16(22081), + 39: uint16(22082), + 40: uint16(22083), + 41: uint16(22084), + 42: uint16(22085), + 43: uint16(22086), + 44: uint16(22087), + 45: uint16(22088), + 46: uint16(22089), + 47: uint16(22090), + 48: uint16(22091), + 49: uint16(22095), + 50: uint16(22096), + 51: uint16(22097), + 52: uint16(22098), + 53: uint16(22099), + 54: uint16(22101), + 55: uint16(22102), + 56: uint16(22106), + 57: uint16(22107), + 58: uint16(22109), + 59: uint16(22110), + 60: uint16(22111), + 61: uint16(22112), + 62: uint16(22113), + 63: uint16(22115), + 64: uint16(22117), + 65: uint16(22118), + 66: uint16(22119), + 67: uint16(22125), + 68: uint16(22126), + 69: uint16(22127), + 70: uint16(22128), + 71: uint16(22130), + 72: uint16(22131), + 73: uint16(22132), + 74: uint16(22133), + 75: uint16(22135), + 76: uint16(22136), + 77: uint16(22137), + 78: uint16(22138), + 79: uint16(22141), + 80: uint16(22142), + 81: uint16(22143), + 82: uint16(22144), + 83: uint16(22145), + 84: uint16(22146), + 85: uint16(22147), + 86: uint16(22148), + 87: uint16(22151), + 88: uint16(22152), + 89: uint16(22153), + 90: uint16(22154), + 91: uint16(22155), + 92: uint16(22156), + 93: uint16(22157), + 94: uint16(22160), + 95: uint16(22161), + 96: uint16(22162), + 97: uint16(22164), + 98: uint16(22165), + 99: uint16(22166), + 100: uint16(22167), + 101: uint16(22168), + 102: uint16(22169), + 103: uint16(22170), + 104: uint16(22171), + 105: uint16(22172), + 106: uint16(22173), + 107: uint16(22174), + 108: uint16(22175), + 109: uint16(22176), + 110: uint16(22177), + 111: uint16(22178), + 112: uint16(22180), + 113: uint16(22181), + 114: uint16(22182), + 115: uint16(22183), + 116: uint16(22184), + 117: uint16(22185), + 118: uint16(22186), + 119: uint16(22187), + 120: uint16(22188), + 121: uint16(22189), + 122: uint16(22190), + 123: uint16(22192), + 124: uint16(22193), + 125: uint16(22194), + 126: uint16(22195), + 127: uint16(22196), + 128: uint16(22197), + 129: uint16(22198), + 130: uint16(22200), + 131: uint16(22201), + 132: uint16(22202), + 133: uint16(22203), + 134: uint16(22205), + 135: uint16(22206), + 136: uint16(22207), + 137: uint16(22208), + 138: uint16(22209), + 139: uint16(22210), + 140: uint16(22211), + 141: uint16(22212), + 142: uint16(22213), + 143: uint16(22214), + 144: uint16(22215), + 145: uint16(22216), + 146: uint16(22217), + 147: uint16(22219), + 148: uint16(22220), + 149: uint16(22221), + 150: uint16(22222), + 151: uint16(22223), + 152: uint16(22224), + 153: uint16(22225), + 154: uint16(22226), + 155: uint16(22227), + 156: uint16(22229), + 157: uint16(22230), + 158: uint16(22232), + 159: uint16(22233), + 160: uint16(22236), + 161: uint16(22243), + 162: uint16(22245), + 163: uint16(22246), + 164: uint16(22247), + 165: uint16(22248), + 166: uint16(22249), + 167: uint16(22250), + 168: uint16(22252), + 169: uint16(22254), + 170: uint16(22255), + 171: uint16(22258), + 172: uint16(22259), + 173: uint16(22262), + 174: uint16(22263), + 175: uint16(22264), + 176: uint16(22267), + 177: uint16(22268), + 178: uint16(22272), + 179: uint16(22273), + 180: uint16(22274), + 181: uint16(22277), + 182: uint16(22279), + 183: uint16(22283), + 184: uint16(22284), + 185: uint16(22285), + 186: uint16(22286), + 187: uint16(22287), + 188: uint16(22288), + 189: uint16(22289), + }, + 7: { + 0: uint16(22290), + 1: uint16(22291), + 2: uint16(22292), + 3: uint16(22293), + 4: uint16(22294), + 5: uint16(22295), + 6: uint16(22296), + 7: uint16(22297), + 8: uint16(22298), + 9: uint16(22299), + 10: uint16(22301), + 11: uint16(22302), + 12: uint16(22304), + 13: uint16(22305), + 14: uint16(22306), + 15: uint16(22308), + 16: uint16(22309), + 17: uint16(22310), + 18: uint16(22311), + 19: uint16(22315), + 20: uint16(22321), + 21: uint16(22322), + 22: uint16(22324), + 23: uint16(22325), + 24: uint16(22326), + 25: uint16(22327), + 26: uint16(22328), + 27: uint16(22332), + 28: uint16(22333), + 29: uint16(22335), + 30: uint16(22337), + 31: uint16(22339), + 32: uint16(22340), + 33: uint16(22341), + 34: uint16(22342), + 35: uint16(22344), + 36: uint16(22345), + 37: uint16(22347), + 38: uint16(22354), + 39: uint16(22355), + 40: uint16(22356), + 41: uint16(22357), + 42: uint16(22358), + 43: uint16(22360), + 44: uint16(22361), + 45: uint16(22370), + 46: uint16(22371), + 47: uint16(22373), + 48: uint16(22375), + 49: uint16(22380), + 50: uint16(22382), + 51: uint16(22384), + 52: uint16(22385), + 53: uint16(22386), + 54: uint16(22388), + 55: uint16(22389), + 56: uint16(22392), + 57: uint16(22393), + 58: uint16(22394), + 59: uint16(22397), + 60: uint16(22398), + 61: uint16(22399), + 62: uint16(22400), + 63: uint16(22401), + 64: uint16(22407), + 65: uint16(22408), + 66: uint16(22409), + 67: uint16(22410), + 68: uint16(22413), + 69: uint16(22414), + 70: uint16(22415), + 71: uint16(22416), + 72: uint16(22417), + 73: uint16(22420), + 74: uint16(22421), + 75: uint16(22422), + 76: uint16(22423), + 77: uint16(22424), + 78: uint16(22425), + 79: uint16(22426), + 80: uint16(22428), + 81: uint16(22429), + 82: uint16(22430), + 83: uint16(22431), + 84: uint16(22437), + 85: uint16(22440), + 86: uint16(22442), + 87: uint16(22444), + 88: uint16(22447), + 89: uint16(22448), + 90: uint16(22449), + 91: uint16(22451), + 92: uint16(22453), + 93: uint16(22454), + 94: uint16(22455), + 95: uint16(22457), + 96: uint16(22458), + 97: uint16(22459), + 98: uint16(22460), + 99: uint16(22461), + 100: uint16(22462), + 101: uint16(22463), + 102: uint16(22464), + 103: uint16(22465), + 104: uint16(22468), + 105: uint16(22469), + 106: uint16(22470), + 107: uint16(22471), + 108: uint16(22472), + 109: uint16(22473), + 110: uint16(22474), + 111: uint16(22476), + 112: uint16(22477), + 113: uint16(22480), + 114: uint16(22481), + 115: uint16(22483), + 116: uint16(22486), + 117: uint16(22487), + 118: uint16(22491), + 119: uint16(22492), + 120: uint16(22494), + 121: uint16(22497), + 122: uint16(22498), + 123: uint16(22499), + 124: uint16(22501), + 125: uint16(22502), + 126: uint16(22503), + 127: uint16(22504), + 128: uint16(22505), + 129: uint16(22506), + 130: uint16(22507), + 131: uint16(22508), + 132: uint16(22510), + 133: uint16(22512), + 134: uint16(22513), + 135: uint16(22514), + 136: uint16(22515), + 137: uint16(22517), + 138: uint16(22518), + 139: uint16(22519), + 140: uint16(22523), + 141: uint16(22524), + 142: uint16(22526), + 143: uint16(22527), + 144: uint16(22529), + 145: uint16(22531), + 146: uint16(22532), + 147: uint16(22533), + 148: uint16(22536), + 149: uint16(22537), + 150: uint16(22538), + 151: uint16(22540), + 152: uint16(22542), + 153: uint16(22543), + 154: uint16(22544), + 155: uint16(22546), + 156: uint16(22547), + 157: uint16(22548), + 158: uint16(22550), + 159: uint16(22551), + 160: uint16(22552), + 161: uint16(22554), + 162: uint16(22555), + 163: uint16(22556), + 164: uint16(22557), + 165: uint16(22559), + 166: uint16(22562), + 167: uint16(22563), + 168: uint16(22565), + 169: uint16(22566), + 170: uint16(22567), + 171: uint16(22568), + 172: uint16(22569), + 173: uint16(22571), + 174: uint16(22572), + 175: uint16(22573), + 176: uint16(22574), + 177: uint16(22575), + 178: uint16(22577), + 179: uint16(22578), + 180: uint16(22579), + 181: uint16(22580), + 182: uint16(22582), + 183: uint16(22583), + 184: uint16(22584), + 185: uint16(22585), + 186: uint16(22586), + 187: uint16(22587), + 188: uint16(22588), + 189: uint16(22589), + }, + 8: { + 0: uint16(22590), + 1: uint16(22591), + 2: uint16(22592), + 3: uint16(22593), + 4: uint16(22594), + 5: uint16(22595), + 6: uint16(22597), + 7: uint16(22598), + 8: uint16(22599), + 9: uint16(22600), + 10: uint16(22601), + 11: uint16(22602), + 12: uint16(22603), + 13: uint16(22606), + 14: uint16(22607), + 15: uint16(22608), + 16: uint16(22610), + 17: uint16(22611), + 18: uint16(22613), + 19: uint16(22614), + 20: uint16(22615), + 21: uint16(22617), + 22: uint16(22618), + 23: uint16(22619), + 24: uint16(22620), + 25: uint16(22621), + 26: uint16(22623), + 27: uint16(22624), + 28: uint16(22625), + 29: uint16(22626), + 30: uint16(22627), + 31: uint16(22628), + 32: uint16(22630), + 33: uint16(22631), + 34: uint16(22632), + 35: uint16(22633), + 36: uint16(22634), + 37: uint16(22637), + 38: uint16(22638), + 39: uint16(22639), + 40: uint16(22640), + 41: uint16(22641), + 42: uint16(22642), + 43: uint16(22643), + 44: uint16(22644), + 45: uint16(22645), + 46: uint16(22646), + 47: uint16(22647), + 48: uint16(22648), + 49: uint16(22649), + 50: uint16(22650), + 51: uint16(22651), + 52: uint16(22652), + 53: uint16(22653), + 54: uint16(22655), + 55: uint16(22658), + 56: uint16(22660), + 57: uint16(22662), + 58: uint16(22663), + 59: uint16(22664), + 60: uint16(22666), + 61: uint16(22667), + 62: uint16(22668), + 63: uint16(22669), + 64: uint16(22670), + 65: uint16(22671), + 66: uint16(22672), + 67: uint16(22673), + 68: uint16(22676), + 69: uint16(22677), + 70: uint16(22678), + 71: uint16(22679), + 72: uint16(22680), + 73: uint16(22683), + 74: uint16(22684), + 75: uint16(22685), + 76: uint16(22688), + 77: uint16(22689), + 78: uint16(22690), + 79: uint16(22691), + 80: uint16(22692), + 81: uint16(22693), + 82: uint16(22694), + 83: uint16(22695), + 84: uint16(22698), + 85: uint16(22699), + 86: uint16(22700), + 87: uint16(22701), + 88: uint16(22702), + 89: uint16(22703), + 90: uint16(22704), + 91: uint16(22705), + 92: uint16(22706), + 93: uint16(22707), + 94: uint16(22708), + 95: uint16(22709), + 96: uint16(22710), + 97: uint16(22711), + 98: uint16(22712), + 99: uint16(22713), + 100: uint16(22714), + 101: uint16(22715), + 102: uint16(22717), + 103: uint16(22718), + 104: uint16(22719), + 105: uint16(22720), + 106: uint16(22722), + 107: uint16(22723), + 108: uint16(22724), + 109: uint16(22726), + 110: uint16(22727), + 111: uint16(22728), + 112: uint16(22729), + 113: uint16(22730), + 114: uint16(22731), + 115: uint16(22732), + 116: uint16(22733), + 117: uint16(22734), + 118: uint16(22735), + 119: uint16(22736), + 120: uint16(22738), + 121: uint16(22739), + 122: uint16(22740), + 123: uint16(22742), + 124: uint16(22743), + 125: uint16(22744), + 126: uint16(22745), + 127: uint16(22746), + 128: uint16(22747), + 129: uint16(22748), + 130: uint16(22749), + 131: uint16(22750), + 132: uint16(22751), + 133: uint16(22752), + 134: uint16(22753), + 135: uint16(22754), + 136: uint16(22755), + 137: uint16(22757), + 138: uint16(22758), + 139: uint16(22759), + 140: uint16(22760), + 141: uint16(22761), + 142: uint16(22762), + 143: uint16(22765), + 144: uint16(22767), + 145: uint16(22769), + 146: uint16(22770), + 147: uint16(22772), + 148: uint16(22773), + 149: uint16(22775), + 150: uint16(22776), + 151: uint16(22778), + 152: uint16(22779), + 153: uint16(22780), + 154: uint16(22781), + 155: uint16(22782), + 156: uint16(22783), + 157: uint16(22784), + 158: uint16(22785), + 159: uint16(22787), + 160: uint16(22789), + 161: uint16(22790), + 162: uint16(22792), + 163: uint16(22793), + 164: uint16(22794), + 165: uint16(22795), + 166: uint16(22796), + 167: uint16(22798), + 168: uint16(22800), + 169: uint16(22801), + 170: uint16(22802), + 171: uint16(22803), + 172: uint16(22807), + 173: uint16(22808), + 174: uint16(22811), + 175: uint16(22813), + 176: uint16(22814), + 177: uint16(22816), + 178: uint16(22817), + 179: uint16(22818), + 180: uint16(22819), + 181: uint16(22822), + 182: uint16(22824), + 183: uint16(22828), + 184: uint16(22832), + 185: uint16(22834), + 186: uint16(22835), + 187: uint16(22837), + 188: uint16(22838), + 189: uint16(22843), + }, + 9: { + 0: uint16(22845), + 1: uint16(22846), + 2: uint16(22847), + 3: uint16(22848), + 4: uint16(22851), + 5: uint16(22853), + 6: uint16(22854), + 7: uint16(22858), + 8: uint16(22860), + 9: uint16(22861), + 10: uint16(22864), + 11: uint16(22866), + 12: uint16(22867), + 13: uint16(22873), + 14: uint16(22875), + 15: uint16(22876), + 16: uint16(22877), + 17: uint16(22878), + 18: uint16(22879), + 19: uint16(22881), + 20: uint16(22883), + 21: uint16(22884), + 22: uint16(22886), + 23: uint16(22887), + 24: uint16(22888), + 25: uint16(22889), + 26: uint16(22890), + 27: uint16(22891), + 28: uint16(22892), + 29: uint16(22893), + 30: uint16(22894), + 31: uint16(22895), + 32: uint16(22896), + 33: uint16(22897), + 34: uint16(22898), + 35: uint16(22901), + 36: uint16(22903), + 37: uint16(22906), + 38: uint16(22907), + 39: uint16(22908), + 40: uint16(22910), + 41: uint16(22911), + 42: uint16(22912), + 43: uint16(22917), + 44: uint16(22921), + 45: uint16(22923), + 46: uint16(22924), + 47: uint16(22926), + 48: uint16(22927), + 49: uint16(22928), + 50: uint16(22929), + 51: uint16(22932), + 52: uint16(22933), + 53: uint16(22936), + 54: uint16(22938), + 55: uint16(22939), + 56: uint16(22940), + 57: uint16(22941), + 58: uint16(22943), + 59: uint16(22944), + 60: uint16(22945), + 61: uint16(22946), + 62: uint16(22950), + 63: uint16(22951), + 64: uint16(22956), + 65: uint16(22957), + 66: uint16(22960), + 67: uint16(22961), + 68: uint16(22963), + 69: uint16(22964), + 70: uint16(22965), + 71: uint16(22966), + 72: uint16(22967), + 73: uint16(22968), + 74: uint16(22970), + 75: uint16(22972), + 76: uint16(22973), + 77: uint16(22975), + 78: uint16(22976), + 79: uint16(22977), + 80: uint16(22978), + 81: uint16(22979), + 82: uint16(22980), + 83: uint16(22981), + 84: uint16(22983), + 85: uint16(22984), + 86: uint16(22985), + 87: uint16(22988), + 88: uint16(22989), + 89: uint16(22990), + 90: uint16(22991), + 91: uint16(22997), + 92: uint16(22998), + 93: uint16(23001), + 94: uint16(23003), + 95: uint16(23006), + 96: uint16(23007), + 97: uint16(23008), + 98: uint16(23009), + 99: uint16(23010), + 100: uint16(23012), + 101: uint16(23014), + 102: uint16(23015), + 103: uint16(23017), + 104: uint16(23018), + 105: uint16(23019), + 106: uint16(23021), + 107: uint16(23022), + 108: uint16(23023), + 109: uint16(23024), + 110: uint16(23025), + 111: uint16(23026), + 112: uint16(23027), + 113: uint16(23028), + 114: uint16(23029), + 115: uint16(23030), + 116: uint16(23031), + 117: uint16(23032), + 118: uint16(23034), + 119: uint16(23036), + 120: uint16(23037), + 121: uint16(23038), + 122: uint16(23040), + 123: uint16(23042), + 124: uint16(23050), + 125: uint16(23051), + 126: uint16(23053), + 127: uint16(23054), + 128: uint16(23055), + 129: uint16(23056), + 130: uint16(23058), + 131: uint16(23060), + 132: uint16(23061), + 133: uint16(23062), + 134: uint16(23063), + 135: uint16(23065), + 136: uint16(23066), + 137: uint16(23067), + 138: uint16(23069), + 139: uint16(23070), + 140: uint16(23073), + 141: uint16(23074), + 142: uint16(23076), + 143: uint16(23078), + 144: uint16(23079), + 145: uint16(23080), + 146: uint16(23082), + 147: uint16(23083), + 148: uint16(23084), + 149: uint16(23085), + 150: uint16(23086), + 151: uint16(23087), + 152: uint16(23088), + 153: uint16(23091), + 154: uint16(23093), + 155: uint16(23095), + 156: uint16(23096), + 157: uint16(23097), + 158: uint16(23098), + 159: uint16(23099), + 160: uint16(23101), + 161: uint16(23102), + 162: uint16(23103), + 163: uint16(23105), + 164: uint16(23106), + 165: uint16(23107), + 166: uint16(23108), + 167: uint16(23109), + 168: uint16(23111), + 169: uint16(23112), + 170: uint16(23115), + 171: uint16(23116), + 172: uint16(23117), + 173: uint16(23118), + 174: uint16(23119), + 175: uint16(23120), + 176: uint16(23121), + 177: uint16(23122), + 178: uint16(23123), + 179: uint16(23124), + 180: uint16(23126), + 181: uint16(23127), + 182: uint16(23128), + 183: uint16(23129), + 184: uint16(23131), + 185: uint16(23132), + 186: uint16(23133), + 187: uint16(23134), + 188: uint16(23135), + 189: uint16(23136), + }, + 10: { + 0: uint16(23137), + 1: uint16(23139), + 2: uint16(23140), + 3: uint16(23141), + 4: uint16(23142), + 5: uint16(23144), + 6: uint16(23145), + 7: uint16(23147), + 8: uint16(23148), + 9: uint16(23149), + 10: uint16(23150), + 11: uint16(23151), + 12: uint16(23152), + 13: uint16(23153), + 14: uint16(23154), + 15: uint16(23155), + 16: uint16(23160), + 17: uint16(23161), + 18: uint16(23163), + 19: uint16(23164), + 20: uint16(23165), + 21: uint16(23166), + 22: uint16(23168), + 23: uint16(23169), + 24: uint16(23170), + 25: uint16(23171), + 26: uint16(23172), + 27: uint16(23173), + 28: uint16(23174), + 29: uint16(23175), + 30: uint16(23176), + 31: uint16(23177), + 32: uint16(23178), + 33: uint16(23179), + 34: uint16(23180), + 35: uint16(23181), + 36: uint16(23182), + 37: uint16(23183), + 38: uint16(23184), + 39: uint16(23185), + 40: uint16(23187), + 41: uint16(23188), + 42: uint16(23189), + 43: uint16(23190), + 44: uint16(23191), + 45: uint16(23192), + 46: uint16(23193), + 47: uint16(23196), + 48: uint16(23197), + 49: uint16(23198), + 50: uint16(23199), + 51: uint16(23200), + 52: uint16(23201), + 53: uint16(23202), + 54: uint16(23203), + 55: uint16(23204), + 56: uint16(23205), + 57: uint16(23206), + 58: uint16(23207), + 59: uint16(23208), + 60: uint16(23209), + 61: uint16(23211), + 62: uint16(23212), + 63: uint16(23213), + 64: uint16(23214), + 65: uint16(23215), + 66: uint16(23216), + 67: uint16(23217), + 68: uint16(23220), + 69: uint16(23222), + 70: uint16(23223), + 71: uint16(23225), + 72: uint16(23226), + 73: uint16(23227), + 74: uint16(23228), + 75: uint16(23229), + 76: uint16(23231), + 77: uint16(23232), + 78: uint16(23235), + 79: uint16(23236), + 80: uint16(23237), + 81: uint16(23238), + 82: uint16(23239), + 83: uint16(23240), + 84: uint16(23242), + 85: uint16(23243), + 86: uint16(23245), + 87: uint16(23246), + 88: uint16(23247), + 89: uint16(23248), + 90: uint16(23249), + 91: uint16(23251), + 92: uint16(23253), + 93: uint16(23255), + 94: uint16(23257), + 95: uint16(23258), + 96: uint16(23259), + 97: uint16(23261), + 98: uint16(23262), + 99: uint16(23263), + 100: uint16(23266), + 101: uint16(23268), + 102: uint16(23269), + 103: uint16(23271), + 104: uint16(23272), + 105: uint16(23274), + 106: uint16(23276), + 107: uint16(23277), + 108: uint16(23278), + 109: uint16(23279), + 110: uint16(23280), + 111: uint16(23282), + 112: uint16(23283), + 113: uint16(23284), + 114: uint16(23285), + 115: uint16(23286), + 116: uint16(23287), + 117: uint16(23288), + 118: uint16(23289), + 119: uint16(23290), + 120: uint16(23291), + 121: uint16(23292), + 122: uint16(23293), + 123: uint16(23294), + 124: uint16(23295), + 125: uint16(23296), + 126: uint16(23297), + 127: uint16(23298), + 128: uint16(23299), + 129: uint16(23300), + 130: uint16(23301), + 131: uint16(23302), + 132: uint16(23303), + 133: uint16(23304), + 134: uint16(23306), + 135: uint16(23307), + 136: uint16(23308), + 137: uint16(23309), + 138: uint16(23310), + 139: uint16(23311), + 140: uint16(23312), + 141: uint16(23313), + 142: uint16(23314), + 143: uint16(23315), + 144: uint16(23316), + 145: uint16(23317), + 146: uint16(23320), + 147: uint16(23321), + 148: uint16(23322), + 149: uint16(23323), + 150: uint16(23324), + 151: uint16(23325), + 152: uint16(23326), + 153: uint16(23327), + 154: uint16(23328), + 155: uint16(23329), + 156: uint16(23330), + 157: uint16(23331), + 158: uint16(23332), + 159: uint16(23333), + 160: uint16(23334), + 161: uint16(23335), + 162: uint16(23336), + 163: uint16(23337), + 164: uint16(23338), + 165: uint16(23339), + 166: uint16(23340), + 167: uint16(23341), + 168: uint16(23342), + 169: uint16(23343), + 170: uint16(23344), + 171: uint16(23345), + 172: uint16(23347), + 173: uint16(23349), + 174: uint16(23350), + 175: uint16(23352), + 176: uint16(23353), + 177: uint16(23354), + 178: uint16(23355), + 179: uint16(23356), + 180: uint16(23357), + 181: uint16(23358), + 182: uint16(23359), + 183: uint16(23361), + 184: uint16(23362), + 185: uint16(23363), + 186: uint16(23364), + 187: uint16(23365), + 188: uint16(23366), + 189: uint16(23367), + }, + 11: { + 0: uint16(23368), + 1: uint16(23369), + 2: uint16(23370), + 3: uint16(23371), + 4: uint16(23372), + 5: uint16(23373), + 6: uint16(23374), + 7: uint16(23375), + 8: uint16(23378), + 9: uint16(23382), + 10: uint16(23390), + 11: uint16(23392), + 12: uint16(23393), + 13: uint16(23399), + 14: uint16(23400), + 15: uint16(23403), + 16: uint16(23405), + 17: uint16(23406), + 18: uint16(23407), + 19: uint16(23410), + 20: uint16(23412), + 21: uint16(23414), + 22: uint16(23415), + 23: uint16(23416), + 24: uint16(23417), + 25: uint16(23419), + 26: uint16(23420), + 27: uint16(23422), + 28: uint16(23423), + 29: uint16(23426), + 30: uint16(23430), + 31: uint16(23434), + 32: uint16(23437), + 33: uint16(23438), + 34: uint16(23440), + 35: uint16(23441), + 36: uint16(23442), + 37: uint16(23444), + 38: uint16(23446), + 39: uint16(23455), + 40: uint16(23463), + 41: uint16(23464), + 42: uint16(23465), + 43: uint16(23468), + 44: uint16(23469), + 45: uint16(23470), + 46: uint16(23471), + 47: uint16(23473), + 48: uint16(23474), + 49: uint16(23479), + 50: uint16(23482), + 51: uint16(23483), + 52: uint16(23484), + 53: uint16(23488), + 54: uint16(23489), + 55: uint16(23491), + 56: uint16(23496), + 57: uint16(23497), + 58: uint16(23498), + 59: uint16(23499), + 60: uint16(23501), + 61: uint16(23502), + 62: uint16(23503), + 63: uint16(23505), + 64: uint16(23508), + 65: uint16(23509), + 66: uint16(23510), + 67: uint16(23511), + 68: uint16(23512), + 69: uint16(23513), + 70: uint16(23514), + 71: uint16(23515), + 72: uint16(23516), + 73: uint16(23520), + 74: uint16(23522), + 75: uint16(23523), + 76: uint16(23526), + 77: uint16(23527), + 78: uint16(23529), + 79: uint16(23530), + 80: uint16(23531), + 81: uint16(23532), + 82: uint16(23533), + 83: uint16(23535), + 84: uint16(23537), + 85: uint16(23538), + 86: uint16(23539), + 87: uint16(23540), + 88: uint16(23541), + 89: uint16(23542), + 90: uint16(23543), + 91: uint16(23549), + 92: uint16(23550), + 93: uint16(23552), + 94: uint16(23554), + 95: uint16(23555), + 96: uint16(23557), + 97: uint16(23559), + 98: uint16(23560), + 99: uint16(23563), + 100: uint16(23564), + 101: uint16(23565), + 102: uint16(23566), + 103: uint16(23568), + 104: uint16(23570), + 105: uint16(23571), + 106: uint16(23575), + 107: uint16(23577), + 108: uint16(23579), + 109: uint16(23582), + 110: uint16(23583), + 111: uint16(23584), + 112: uint16(23585), + 113: uint16(23587), + 114: uint16(23590), + 115: uint16(23592), + 116: uint16(23593), + 117: uint16(23594), + 118: uint16(23595), + 119: uint16(23597), + 120: uint16(23598), + 121: uint16(23599), + 122: uint16(23600), + 123: uint16(23602), + 124: uint16(23603), + 125: uint16(23605), + 126: uint16(23606), + 127: uint16(23607), + 128: uint16(23619), + 129: uint16(23620), + 130: uint16(23622), + 131: uint16(23623), + 132: uint16(23628), + 133: uint16(23629), + 134: uint16(23634), + 135: uint16(23635), + 136: uint16(23636), + 137: uint16(23638), + 138: uint16(23639), + 139: uint16(23640), + 140: uint16(23642), + 141: uint16(23643), + 142: uint16(23644), + 143: uint16(23645), + 144: uint16(23647), + 145: uint16(23650), + 146: uint16(23652), + 147: uint16(23655), + 148: uint16(23656), + 149: uint16(23657), + 150: uint16(23658), + 151: uint16(23659), + 152: uint16(23660), + 153: uint16(23661), + 154: uint16(23664), + 155: uint16(23666), + 156: uint16(23667), + 157: uint16(23668), + 158: uint16(23669), + 159: uint16(23670), + 160: uint16(23671), + 161: uint16(23672), + 162: uint16(23675), + 163: uint16(23676), + 164: uint16(23677), + 165: uint16(23678), + 166: uint16(23680), + 167: uint16(23683), + 168: uint16(23684), + 169: uint16(23685), + 170: uint16(23686), + 171: uint16(23687), + 172: uint16(23689), + 173: uint16(23690), + 174: uint16(23691), + 175: uint16(23694), + 176: uint16(23695), + 177: uint16(23698), + 178: uint16(23699), + 179: uint16(23701), + 180: uint16(23709), + 181: uint16(23710), + 182: uint16(23711), + 183: uint16(23712), + 184: uint16(23713), + 185: uint16(23716), + 186: uint16(23717), + 187: uint16(23718), + 188: uint16(23719), + 189: uint16(23720), + }, + 12: { + 0: uint16(23722), + 1: uint16(23726), + 2: uint16(23727), + 3: uint16(23728), + 4: uint16(23730), + 5: uint16(23732), + 6: uint16(23734), + 7: uint16(23737), + 8: uint16(23738), + 9: uint16(23739), + 10: uint16(23740), + 11: uint16(23742), + 12: uint16(23744), + 13: uint16(23746), + 14: uint16(23747), + 15: uint16(23749), + 16: uint16(23750), + 17: uint16(23751), + 18: uint16(23752), + 19: uint16(23753), + 20: uint16(23754), + 21: uint16(23756), + 22: uint16(23757), + 23: uint16(23758), + 24: uint16(23759), + 25: uint16(23760), + 26: uint16(23761), + 27: uint16(23763), + 28: uint16(23764), + 29: uint16(23765), + 30: uint16(23766), + 31: uint16(23767), + 32: uint16(23768), + 33: uint16(23770), + 34: uint16(23771), + 35: uint16(23772), + 36: uint16(23773), + 37: uint16(23774), + 38: uint16(23775), + 39: uint16(23776), + 40: uint16(23778), + 41: uint16(23779), + 42: uint16(23783), + 43: uint16(23785), + 44: uint16(23787), + 45: uint16(23788), + 46: uint16(23790), + 47: uint16(23791), + 48: uint16(23793), + 49: uint16(23794), + 50: uint16(23795), + 51: uint16(23796), + 52: uint16(23797), + 53: uint16(23798), + 54: uint16(23799), + 55: uint16(23800), + 56: uint16(23801), + 57: uint16(23802), + 58: uint16(23804), + 59: uint16(23805), + 60: uint16(23806), + 61: uint16(23807), + 62: uint16(23808), + 63: uint16(23809), + 64: uint16(23812), + 65: uint16(23813), + 66: uint16(23816), + 67: uint16(23817), + 68: uint16(23818), + 69: uint16(23819), + 70: uint16(23820), + 71: uint16(23821), + 72: uint16(23823), + 73: uint16(23824), + 74: uint16(23825), + 75: uint16(23826), + 76: uint16(23827), + 77: uint16(23829), + 78: uint16(23831), + 79: uint16(23832), + 80: uint16(23833), + 81: uint16(23834), + 82: uint16(23836), + 83: uint16(23837), + 84: uint16(23839), + 85: uint16(23840), + 86: uint16(23841), + 87: uint16(23842), + 88: uint16(23843), + 89: uint16(23845), + 90: uint16(23848), + 91: uint16(23850), + 92: uint16(23851), + 93: uint16(23852), + 94: uint16(23855), + 95: uint16(23856), + 96: uint16(23857), + 97: uint16(23858), + 98: uint16(23859), + 99: uint16(23861), + 100: uint16(23862), + 101: uint16(23863), + 102: uint16(23864), + 103: uint16(23865), + 104: uint16(23866), + 105: uint16(23867), + 106: uint16(23868), + 107: uint16(23871), + 108: uint16(23872), + 109: uint16(23873), + 110: uint16(23874), + 111: uint16(23875), + 112: uint16(23876), + 113: uint16(23877), + 114: uint16(23878), + 115: uint16(23880), + 116: uint16(23881), + 117: uint16(23885), + 118: uint16(23886), + 119: uint16(23887), + 120: uint16(23888), + 121: uint16(23889), + 122: uint16(23890), + 123: uint16(23891), + 124: uint16(23892), + 125: uint16(23893), + 126: uint16(23894), + 127: uint16(23895), + 128: uint16(23897), + 129: uint16(23898), + 130: uint16(23900), + 131: uint16(23902), + 132: uint16(23903), + 133: uint16(23904), + 134: uint16(23905), + 135: uint16(23906), + 136: uint16(23907), + 137: uint16(23908), + 138: uint16(23909), + 139: uint16(23910), + 140: uint16(23911), + 141: uint16(23912), + 142: uint16(23914), + 143: uint16(23917), + 144: uint16(23918), + 145: uint16(23920), + 146: uint16(23921), + 147: uint16(23922), + 148: uint16(23923), + 149: uint16(23925), + 150: uint16(23926), + 151: uint16(23927), + 152: uint16(23928), + 153: uint16(23929), + 154: uint16(23930), + 155: uint16(23931), + 156: uint16(23932), + 157: uint16(23933), + 158: uint16(23934), + 159: uint16(23935), + 160: uint16(23936), + 161: uint16(23937), + 162: uint16(23939), + 163: uint16(23940), + 164: uint16(23941), + 165: uint16(23942), + 166: uint16(23943), + 167: uint16(23944), + 168: uint16(23945), + 169: uint16(23946), + 170: uint16(23947), + 171: uint16(23948), + 172: uint16(23949), + 173: uint16(23950), + 174: uint16(23951), + 175: uint16(23952), + 176: uint16(23953), + 177: uint16(23954), + 178: uint16(23955), + 179: uint16(23956), + 180: uint16(23957), + 181: uint16(23958), + 182: uint16(23959), + 183: uint16(23960), + 184: uint16(23962), + 185: uint16(23963), + 186: uint16(23964), + 187: uint16(23966), + 188: uint16(23967), + 189: uint16(23968), + }, + 13: { + 0: uint16(23969), + 1: uint16(23970), + 2: uint16(23971), + 3: uint16(23972), + 4: uint16(23973), + 5: uint16(23974), + 6: uint16(23975), + 7: uint16(23976), + 8: uint16(23977), + 9: uint16(23978), + 10: uint16(23979), + 11: uint16(23980), + 12: uint16(23981), + 13: uint16(23982), + 14: uint16(23983), + 15: uint16(23984), + 16: uint16(23985), + 17: uint16(23986), + 18: uint16(23987), + 19: uint16(23988), + 20: uint16(23989), + 21: uint16(23990), + 22: uint16(23992), + 23: uint16(23993), + 24: uint16(23994), + 25: uint16(23995), + 26: uint16(23996), + 27: uint16(23997), + 28: uint16(23998), + 29: uint16(23999), + 30: uint16(24000), + 31: uint16(24001), + 32: uint16(24002), + 33: uint16(24003), + 34: uint16(24004), + 35: uint16(24006), + 36: uint16(24007), + 37: uint16(24008), + 38: uint16(24009), + 39: uint16(24010), + 40: uint16(24011), + 41: uint16(24012), + 42: uint16(24014), + 43: uint16(24015), + 44: uint16(24016), + 45: uint16(24017), + 46: uint16(24018), + 47: uint16(24019), + 48: uint16(24020), + 49: uint16(24021), + 50: uint16(24022), + 51: uint16(24023), + 52: uint16(24024), + 53: uint16(24025), + 54: uint16(24026), + 55: uint16(24028), + 56: uint16(24031), + 57: uint16(24032), + 58: uint16(24035), + 59: uint16(24036), + 60: uint16(24042), + 61: uint16(24044), + 62: uint16(24045), + 63: uint16(24048), + 64: uint16(24053), + 65: uint16(24054), + 66: uint16(24056), + 67: uint16(24057), + 68: uint16(24058), + 69: uint16(24059), + 70: uint16(24060), + 71: uint16(24063), + 72: uint16(24064), + 73: uint16(24068), + 74: uint16(24071), + 75: uint16(24073), + 76: uint16(24074), + 77: uint16(24075), + 78: uint16(24077), + 79: uint16(24078), + 80: uint16(24082), + 81: uint16(24083), + 82: uint16(24087), + 83: uint16(24094), + 84: uint16(24095), + 85: uint16(24096), + 86: uint16(24097), + 87: uint16(24098), + 88: uint16(24099), + 89: uint16(24100), + 90: uint16(24101), + 91: uint16(24104), + 92: uint16(24105), + 93: uint16(24106), + 94: uint16(24107), + 95: uint16(24108), + 96: uint16(24111), + 97: uint16(24112), + 98: uint16(24114), + 99: uint16(24115), + 100: uint16(24116), + 101: uint16(24117), + 102: uint16(24118), + 103: uint16(24121), + 104: uint16(24122), + 105: uint16(24126), + 106: uint16(24127), + 107: uint16(24128), + 108: uint16(24129), + 109: uint16(24131), + 110: uint16(24134), + 111: uint16(24135), + 112: uint16(24136), + 113: uint16(24137), + 114: uint16(24138), + 115: uint16(24139), + 116: uint16(24141), + 117: uint16(24142), + 118: uint16(24143), + 119: uint16(24144), + 120: uint16(24145), + 121: uint16(24146), + 122: uint16(24147), + 123: uint16(24150), + 124: uint16(24151), + 125: uint16(24152), + 126: uint16(24153), + 127: uint16(24154), + 128: uint16(24156), + 129: uint16(24157), + 130: uint16(24159), + 131: uint16(24160), + 132: uint16(24163), + 133: uint16(24164), + 134: uint16(24165), + 135: uint16(24166), + 136: uint16(24167), + 137: uint16(24168), + 138: uint16(24169), + 139: uint16(24170), + 140: uint16(24171), + 141: uint16(24172), + 142: uint16(24173), + 143: uint16(24174), + 144: uint16(24175), + 145: uint16(24176), + 146: uint16(24177), + 147: uint16(24181), + 148: uint16(24183), + 149: uint16(24185), + 150: uint16(24190), + 151: uint16(24193), + 152: uint16(24194), + 153: uint16(24195), + 154: uint16(24197), + 155: uint16(24200), + 156: uint16(24201), + 157: uint16(24204), + 158: uint16(24205), + 159: uint16(24206), + 160: uint16(24210), + 161: uint16(24216), + 162: uint16(24219), + 163: uint16(24221), + 164: uint16(24225), + 165: uint16(24226), + 166: uint16(24227), + 167: uint16(24228), + 168: uint16(24232), + 169: uint16(24233), + 170: uint16(24234), + 171: uint16(24235), + 172: uint16(24236), + 173: uint16(24238), + 174: uint16(24239), + 175: uint16(24240), + 176: uint16(24241), + 177: uint16(24242), + 178: uint16(24244), + 179: uint16(24250), + 180: uint16(24251), + 181: uint16(24252), + 182: uint16(24253), + 183: uint16(24255), + 184: uint16(24256), + 185: uint16(24257), + 186: uint16(24258), + 187: uint16(24259), + 188: uint16(24260), + 189: uint16(24261), + }, + 14: { + 0: uint16(24262), + 1: uint16(24263), + 2: uint16(24264), + 3: uint16(24267), + 4: uint16(24268), + 5: uint16(24269), + 6: uint16(24270), + 7: uint16(24271), + 8: uint16(24272), + 9: uint16(24276), + 10: uint16(24277), + 11: uint16(24279), + 12: uint16(24280), + 13: uint16(24281), + 14: uint16(24282), + 15: uint16(24284), + 16: uint16(24285), + 17: uint16(24286), + 18: uint16(24287), + 19: uint16(24288), + 20: uint16(24289), + 21: uint16(24290), + 22: uint16(24291), + 23: uint16(24292), + 24: uint16(24293), + 25: uint16(24294), + 26: uint16(24295), + 27: uint16(24297), + 28: uint16(24299), + 29: uint16(24300), + 30: uint16(24301), + 31: uint16(24302), + 32: uint16(24303), + 33: uint16(24304), + 34: uint16(24305), + 35: uint16(24306), + 36: uint16(24307), + 37: uint16(24309), + 38: uint16(24312), + 39: uint16(24313), + 40: uint16(24315), + 41: uint16(24316), + 42: uint16(24317), + 43: uint16(24325), + 44: uint16(24326), + 45: uint16(24327), + 46: uint16(24329), + 47: uint16(24332), + 48: uint16(24333), + 49: uint16(24334), + 50: uint16(24336), + 51: uint16(24338), + 52: uint16(24340), + 53: uint16(24342), + 54: uint16(24345), + 55: uint16(24346), + 56: uint16(24348), + 57: uint16(24349), + 58: uint16(24350), + 59: uint16(24353), + 60: uint16(24354), + 61: uint16(24355), + 62: uint16(24356), + 63: uint16(24360), + 64: uint16(24363), + 65: uint16(24364), + 66: uint16(24366), + 67: uint16(24368), + 68: uint16(24370), + 69: uint16(24371), + 70: uint16(24372), + 71: uint16(24373), + 72: uint16(24374), + 73: uint16(24375), + 74: uint16(24376), + 75: uint16(24379), + 76: uint16(24381), + 77: uint16(24382), + 78: uint16(24383), + 79: uint16(24385), + 80: uint16(24386), + 81: uint16(24387), + 82: uint16(24388), + 83: uint16(24389), + 84: uint16(24390), + 85: uint16(24391), + 86: uint16(24392), + 87: uint16(24393), + 88: uint16(24394), + 89: uint16(24395), + 90: uint16(24396), + 91: uint16(24397), + 92: uint16(24398), + 93: uint16(24399), + 94: uint16(24401), + 95: uint16(24404), + 96: uint16(24409), + 97: uint16(24410), + 98: uint16(24411), + 99: uint16(24412), + 100: uint16(24414), + 101: uint16(24415), + 102: uint16(24416), + 103: uint16(24419), + 104: uint16(24421), + 105: uint16(24423), + 106: uint16(24424), + 107: uint16(24427), + 108: uint16(24430), + 109: uint16(24431), + 110: uint16(24434), + 111: uint16(24436), + 112: uint16(24437), + 113: uint16(24438), + 114: uint16(24440), + 115: uint16(24442), + 116: uint16(24445), + 117: uint16(24446), + 118: uint16(24447), + 119: uint16(24451), + 120: uint16(24454), + 121: uint16(24461), + 122: uint16(24462), + 123: uint16(24463), + 124: uint16(24465), + 125: uint16(24467), + 126: uint16(24468), + 127: uint16(24470), + 128: uint16(24474), + 129: uint16(24475), + 130: uint16(24477), + 131: uint16(24478), + 132: uint16(24479), + 133: uint16(24480), + 134: uint16(24482), + 135: uint16(24483), + 136: uint16(24484), + 137: uint16(24485), + 138: uint16(24486), + 139: uint16(24487), + 140: uint16(24489), + 141: uint16(24491), + 142: uint16(24492), + 143: uint16(24495), + 144: uint16(24496), + 145: uint16(24497), + 146: uint16(24498), + 147: uint16(24499), + 148: uint16(24500), + 149: uint16(24502), + 150: uint16(24504), + 151: uint16(24505), + 152: uint16(24506), + 153: uint16(24507), + 154: uint16(24510), + 155: uint16(24511), + 156: uint16(24512), + 157: uint16(24513), + 158: uint16(24514), + 159: uint16(24519), + 160: uint16(24520), + 161: uint16(24522), + 162: uint16(24523), + 163: uint16(24526), + 164: uint16(24531), + 165: uint16(24532), + 166: uint16(24533), + 167: uint16(24538), + 168: uint16(24539), + 169: uint16(24540), + 170: uint16(24542), + 171: uint16(24543), + 172: uint16(24546), + 173: uint16(24547), + 174: uint16(24549), + 175: uint16(24550), + 176: uint16(24552), + 177: uint16(24553), + 178: uint16(24556), + 179: uint16(24559), + 180: uint16(24560), + 181: uint16(24562), + 182: uint16(24563), + 183: uint16(24564), + 184: uint16(24566), + 185: uint16(24567), + 186: uint16(24569), + 187: uint16(24570), + 188: uint16(24572), + 189: uint16(24583), + }, + 15: { + 0: uint16(24584), + 1: uint16(24585), + 2: uint16(24587), + 3: uint16(24588), + 4: uint16(24592), + 5: uint16(24593), + 6: uint16(24595), + 7: uint16(24599), + 8: uint16(24600), + 9: uint16(24602), + 10: uint16(24606), + 11: uint16(24607), + 12: uint16(24610), + 13: uint16(24611), + 14: uint16(24612), + 15: uint16(24620), + 16: uint16(24621), + 17: uint16(24622), + 18: uint16(24624), + 19: uint16(24625), + 20: uint16(24626), + 21: uint16(24627), + 22: uint16(24628), + 23: uint16(24630), + 24: uint16(24631), + 25: uint16(24632), + 26: uint16(24633), + 27: uint16(24634), + 28: uint16(24637), + 29: uint16(24638), + 30: uint16(24640), + 31: uint16(24644), + 32: uint16(24645), + 33: uint16(24646), + 34: uint16(24647), + 35: uint16(24648), + 36: uint16(24649), + 37: uint16(24650), + 38: uint16(24652), + 39: uint16(24654), + 40: uint16(24655), + 41: uint16(24657), + 42: uint16(24659), + 43: uint16(24660), + 44: uint16(24662), + 45: uint16(24663), + 46: uint16(24664), + 47: uint16(24667), + 48: uint16(24668), + 49: uint16(24670), + 50: uint16(24671), + 51: uint16(24672), + 52: uint16(24673), + 53: uint16(24677), + 54: uint16(24678), + 55: uint16(24686), + 56: uint16(24689), + 57: uint16(24690), + 58: uint16(24692), + 59: uint16(24693), + 60: uint16(24695), + 61: uint16(24702), + 62: uint16(24704), + 63: uint16(24705), + 64: uint16(24706), + 65: uint16(24709), + 66: uint16(24710), + 67: uint16(24711), + 68: uint16(24712), + 69: uint16(24714), + 70: uint16(24715), + 71: uint16(24718), + 72: uint16(24719), + 73: uint16(24720), + 74: uint16(24721), + 75: uint16(24723), + 76: uint16(24725), + 77: uint16(24727), + 78: uint16(24728), + 79: uint16(24729), + 80: uint16(24732), + 81: uint16(24734), + 82: uint16(24737), + 83: uint16(24738), + 84: uint16(24740), + 85: uint16(24741), + 86: uint16(24743), + 87: uint16(24745), + 88: uint16(24746), + 89: uint16(24750), + 90: uint16(24752), + 91: uint16(24755), + 92: uint16(24757), + 93: uint16(24758), + 94: uint16(24759), + 95: uint16(24761), + 96: uint16(24762), + 97: uint16(24765), + 98: uint16(24766), + 99: uint16(24767), + 100: uint16(24768), + 101: uint16(24769), + 102: uint16(24770), + 103: uint16(24771), + 104: uint16(24772), + 105: uint16(24775), + 106: uint16(24776), + 107: uint16(24777), + 108: uint16(24780), + 109: uint16(24781), + 110: uint16(24782), + 111: uint16(24783), + 112: uint16(24784), + 113: uint16(24786), + 114: uint16(24787), + 115: uint16(24788), + 116: uint16(24790), + 117: uint16(24791), + 118: uint16(24793), + 119: uint16(24795), + 120: uint16(24798), + 121: uint16(24801), + 122: uint16(24802), + 123: uint16(24803), + 124: uint16(24804), + 125: uint16(24805), + 126: uint16(24810), + 127: uint16(24817), + 128: uint16(24818), + 129: uint16(24821), + 130: uint16(24823), + 131: uint16(24824), + 132: uint16(24827), + 133: uint16(24828), + 134: uint16(24829), + 135: uint16(24830), + 136: uint16(24831), + 137: uint16(24834), + 138: uint16(24835), + 139: uint16(24836), + 140: uint16(24837), + 141: uint16(24839), + 142: uint16(24842), + 143: uint16(24843), + 144: uint16(24844), + 145: uint16(24848), + 146: uint16(24849), + 147: uint16(24850), + 148: uint16(24851), + 149: uint16(24852), + 150: uint16(24854), + 151: uint16(24855), + 152: uint16(24856), + 153: uint16(24857), + 154: uint16(24859), + 155: uint16(24860), + 156: uint16(24861), + 157: uint16(24862), + 158: uint16(24865), + 159: uint16(24866), + 160: uint16(24869), + 161: uint16(24872), + 162: uint16(24873), + 163: uint16(24874), + 164: uint16(24876), + 165: uint16(24877), + 166: uint16(24878), + 167: uint16(24879), + 168: uint16(24880), + 169: uint16(24881), + 170: uint16(24882), + 171: uint16(24883), + 172: uint16(24884), + 173: uint16(24885), + 174: uint16(24886), + 175: uint16(24887), + 176: uint16(24888), + 177: uint16(24889), + 178: uint16(24890), + 179: uint16(24891), + 180: uint16(24892), + 181: uint16(24893), + 182: uint16(24894), + 183: uint16(24896), + 184: uint16(24897), + 185: uint16(24898), + 186: uint16(24899), + 187: uint16(24900), + 188: uint16(24901), + 189: uint16(24902), + }, + 16: { + 0: uint16(24903), + 1: uint16(24905), + 2: uint16(24907), + 3: uint16(24909), + 4: uint16(24911), + 5: uint16(24912), + 6: uint16(24914), + 7: uint16(24915), + 8: uint16(24916), + 9: uint16(24918), + 10: uint16(24919), + 11: uint16(24920), + 12: uint16(24921), + 13: uint16(24922), + 14: uint16(24923), + 15: uint16(24924), + 16: uint16(24926), + 17: uint16(24927), + 18: uint16(24928), + 19: uint16(24929), + 20: uint16(24931), + 21: uint16(24932), + 22: uint16(24933), + 23: uint16(24934), + 24: uint16(24937), + 25: uint16(24938), + 26: uint16(24939), + 27: uint16(24940), + 28: uint16(24941), + 29: uint16(24942), + 30: uint16(24943), + 31: uint16(24945), + 32: uint16(24946), + 33: uint16(24947), + 34: uint16(24948), + 35: uint16(24950), + 36: uint16(24952), + 37: uint16(24953), + 38: uint16(24954), + 39: uint16(24955), + 40: uint16(24956), + 41: uint16(24957), + 42: uint16(24958), + 43: uint16(24959), + 44: uint16(24960), + 45: uint16(24961), + 46: uint16(24962), + 47: uint16(24963), + 48: uint16(24964), + 49: uint16(24965), + 50: uint16(24966), + 51: uint16(24967), + 52: uint16(24968), + 53: uint16(24969), + 54: uint16(24970), + 55: uint16(24972), + 56: uint16(24973), + 57: uint16(24975), + 58: uint16(24976), + 59: uint16(24977), + 60: uint16(24978), + 61: uint16(24979), + 62: uint16(24981), + 63: uint16(24982), + 64: uint16(24983), + 65: uint16(24984), + 66: uint16(24985), + 67: uint16(24986), + 68: uint16(24987), + 69: uint16(24988), + 70: uint16(24990), + 71: uint16(24991), + 72: uint16(24992), + 73: uint16(24993), + 74: uint16(24994), + 75: uint16(24995), + 76: uint16(24996), + 77: uint16(24997), + 78: uint16(24998), + 79: uint16(25002), + 80: uint16(25003), + 81: uint16(25005), + 82: uint16(25006), + 83: uint16(25007), + 84: uint16(25008), + 85: uint16(25009), + 86: uint16(25010), + 87: uint16(25011), + 88: uint16(25012), + 89: uint16(25013), + 90: uint16(25014), + 91: uint16(25016), + 92: uint16(25017), + 93: uint16(25018), + 94: uint16(25019), + 95: uint16(25020), + 96: uint16(25021), + 97: uint16(25023), + 98: uint16(25024), + 99: uint16(25025), + 100: uint16(25027), + 101: uint16(25028), + 102: uint16(25029), + 103: uint16(25030), + 104: uint16(25031), + 105: uint16(25033), + 106: uint16(25036), + 107: uint16(25037), + 108: uint16(25038), + 109: uint16(25039), + 110: uint16(25040), + 111: uint16(25043), + 112: uint16(25045), + 113: uint16(25046), + 114: uint16(25047), + 115: uint16(25048), + 116: uint16(25049), + 117: uint16(25050), + 118: uint16(25051), + 119: uint16(25052), + 120: uint16(25053), + 121: uint16(25054), + 122: uint16(25055), + 123: uint16(25056), + 124: uint16(25057), + 125: uint16(25058), + 126: uint16(25059), + 127: uint16(25060), + 128: uint16(25061), + 129: uint16(25063), + 130: uint16(25064), + 131: uint16(25065), + 132: uint16(25066), + 133: uint16(25067), + 134: uint16(25068), + 135: uint16(25069), + 136: uint16(25070), + 137: uint16(25071), + 138: uint16(25072), + 139: uint16(25073), + 140: uint16(25074), + 141: uint16(25075), + 142: uint16(25076), + 143: uint16(25078), + 144: uint16(25079), + 145: uint16(25080), + 146: uint16(25081), + 147: uint16(25082), + 148: uint16(25083), + 149: uint16(25084), + 150: uint16(25085), + 151: uint16(25086), + 152: uint16(25088), + 153: uint16(25089), + 154: uint16(25090), + 155: uint16(25091), + 156: uint16(25092), + 157: uint16(25093), + 158: uint16(25095), + 159: uint16(25097), + 160: uint16(25107), + 161: uint16(25108), + 162: uint16(25113), + 163: uint16(25116), + 164: uint16(25117), + 165: uint16(25118), + 166: uint16(25120), + 167: uint16(25123), + 168: uint16(25126), + 169: uint16(25127), + 170: uint16(25128), + 171: uint16(25129), + 172: uint16(25131), + 173: uint16(25133), + 174: uint16(25135), + 175: uint16(25136), + 176: uint16(25137), + 177: uint16(25138), + 178: uint16(25141), + 179: uint16(25142), + 180: uint16(25144), + 181: uint16(25145), + 182: uint16(25146), + 183: uint16(25147), + 184: uint16(25148), + 185: uint16(25154), + 186: uint16(25156), + 187: uint16(25157), + 188: uint16(25158), + 189: uint16(25162), + }, + 17: { + 0: uint16(25167), + 1: uint16(25168), + 2: uint16(25173), + 3: uint16(25174), + 4: uint16(25175), + 5: uint16(25177), + 6: uint16(25178), + 7: uint16(25180), + 8: uint16(25181), + 9: uint16(25182), + 10: uint16(25183), + 11: uint16(25184), + 12: uint16(25185), + 13: uint16(25186), + 14: uint16(25188), + 15: uint16(25189), + 16: uint16(25192), + 17: uint16(25201), + 18: uint16(25202), + 19: uint16(25204), + 20: uint16(25205), + 21: uint16(25207), + 22: uint16(25208), + 23: uint16(25210), + 24: uint16(25211), + 25: uint16(25213), + 26: uint16(25217), + 27: uint16(25218), + 28: uint16(25219), + 29: uint16(25221), + 30: uint16(25222), + 31: uint16(25223), + 32: uint16(25224), + 33: uint16(25227), + 34: uint16(25228), + 35: uint16(25229), + 36: uint16(25230), + 37: uint16(25231), + 38: uint16(25232), + 39: uint16(25236), + 40: uint16(25241), + 41: uint16(25244), + 42: uint16(25245), + 43: uint16(25246), + 44: uint16(25251), + 45: uint16(25254), + 46: uint16(25255), + 47: uint16(25257), + 48: uint16(25258), + 49: uint16(25261), + 50: uint16(25262), + 51: uint16(25263), + 52: uint16(25264), + 53: uint16(25266), + 54: uint16(25267), + 55: uint16(25268), + 56: uint16(25270), + 57: uint16(25271), + 58: uint16(25272), + 59: uint16(25274), + 60: uint16(25278), + 61: uint16(25280), + 62: uint16(25281), + 63: uint16(25283), + 64: uint16(25291), + 65: uint16(25295), + 66: uint16(25297), + 67: uint16(25301), + 68: uint16(25309), + 69: uint16(25310), + 70: uint16(25312), + 71: uint16(25313), + 72: uint16(25316), + 73: uint16(25322), + 74: uint16(25323), + 75: uint16(25328), + 76: uint16(25330), + 77: uint16(25333), + 78: uint16(25336), + 79: uint16(25337), + 80: uint16(25338), + 81: uint16(25339), + 82: uint16(25344), + 83: uint16(25347), + 84: uint16(25348), + 85: uint16(25349), + 86: uint16(25350), + 87: uint16(25354), + 88: uint16(25355), + 89: uint16(25356), + 90: uint16(25357), + 91: uint16(25359), + 92: uint16(25360), + 93: uint16(25362), + 94: uint16(25363), + 95: uint16(25364), + 96: uint16(25365), + 97: uint16(25367), + 98: uint16(25368), + 99: uint16(25369), + 100: uint16(25372), + 101: uint16(25382), + 102: uint16(25383), + 103: uint16(25385), + 104: uint16(25388), + 105: uint16(25389), + 106: uint16(25390), + 107: uint16(25392), + 108: uint16(25393), + 109: uint16(25395), + 110: uint16(25396), + 111: uint16(25397), + 112: uint16(25398), + 113: uint16(25399), + 114: uint16(25400), + 115: uint16(25403), + 116: uint16(25404), + 117: uint16(25406), + 118: uint16(25407), + 119: uint16(25408), + 120: uint16(25409), + 121: uint16(25412), + 122: uint16(25415), + 123: uint16(25416), + 124: uint16(25418), + 125: uint16(25425), + 126: uint16(25426), + 127: uint16(25427), + 128: uint16(25428), + 129: uint16(25430), + 130: uint16(25431), + 131: uint16(25432), + 132: uint16(25433), + 133: uint16(25434), + 134: uint16(25435), + 135: uint16(25436), + 136: uint16(25437), + 137: uint16(25440), + 138: uint16(25444), + 139: uint16(25445), + 140: uint16(25446), + 141: uint16(25448), + 142: uint16(25450), + 143: uint16(25451), + 144: uint16(25452), + 145: uint16(25455), + 146: uint16(25456), + 147: uint16(25458), + 148: uint16(25459), + 149: uint16(25460), + 150: uint16(25461), + 151: uint16(25464), + 152: uint16(25465), + 153: uint16(25468), + 154: uint16(25469), + 155: uint16(25470), + 156: uint16(25471), + 157: uint16(25473), + 158: uint16(25475), + 159: uint16(25476), + 160: uint16(25477), + 161: uint16(25478), + 162: uint16(25483), + 163: uint16(25485), + 164: uint16(25489), + 165: uint16(25491), + 166: uint16(25492), + 167: uint16(25493), + 168: uint16(25495), + 169: uint16(25497), + 170: uint16(25498), + 171: uint16(25499), + 172: uint16(25500), + 173: uint16(25501), + 174: uint16(25502), + 175: uint16(25503), + 176: uint16(25505), + 177: uint16(25508), + 178: uint16(25510), + 179: uint16(25515), + 180: uint16(25519), + 181: uint16(25521), + 182: uint16(25522), + 183: uint16(25525), + 184: uint16(25526), + 185: uint16(25529), + 186: uint16(25531), + 187: uint16(25533), + 188: uint16(25535), + 189: uint16(25536), + }, + 18: { + 0: uint16(25537), + 1: uint16(25538), + 2: uint16(25539), + 3: uint16(25541), + 4: uint16(25543), + 5: uint16(25544), + 6: uint16(25546), + 7: uint16(25547), + 8: uint16(25548), + 9: uint16(25553), + 10: uint16(25555), + 11: uint16(25556), + 12: uint16(25557), + 13: uint16(25559), + 14: uint16(25560), + 15: uint16(25561), + 16: uint16(25562), + 17: uint16(25563), + 18: uint16(25564), + 19: uint16(25565), + 20: uint16(25567), + 21: uint16(25570), + 22: uint16(25572), + 23: uint16(25573), + 24: uint16(25574), + 25: uint16(25575), + 26: uint16(25576), + 27: uint16(25579), + 28: uint16(25580), + 29: uint16(25582), + 30: uint16(25583), + 31: uint16(25584), + 32: uint16(25585), + 33: uint16(25587), + 34: uint16(25589), + 35: uint16(25591), + 36: uint16(25593), + 37: uint16(25594), + 38: uint16(25595), + 39: uint16(25596), + 40: uint16(25598), + 41: uint16(25603), + 42: uint16(25604), + 43: uint16(25606), + 44: uint16(25607), + 45: uint16(25608), + 46: uint16(25609), + 47: uint16(25610), + 48: uint16(25613), + 49: uint16(25614), + 50: uint16(25617), + 51: uint16(25618), + 52: uint16(25621), + 53: uint16(25622), + 54: uint16(25623), + 55: uint16(25624), + 56: uint16(25625), + 57: uint16(25626), + 58: uint16(25629), + 59: uint16(25631), + 60: uint16(25634), + 61: uint16(25635), + 62: uint16(25636), + 63: uint16(25637), + 64: uint16(25639), + 65: uint16(25640), + 66: uint16(25641), + 67: uint16(25643), + 68: uint16(25646), + 69: uint16(25647), + 70: uint16(25648), + 71: uint16(25649), + 72: uint16(25650), + 73: uint16(25651), + 74: uint16(25653), + 75: uint16(25654), + 76: uint16(25655), + 77: uint16(25656), + 78: uint16(25657), + 79: uint16(25659), + 80: uint16(25660), + 81: uint16(25662), + 82: uint16(25664), + 83: uint16(25666), + 84: uint16(25667), + 85: uint16(25673), + 86: uint16(25675), + 87: uint16(25676), + 88: uint16(25677), + 89: uint16(25678), + 90: uint16(25679), + 91: uint16(25680), + 92: uint16(25681), + 93: uint16(25683), + 94: uint16(25685), + 95: uint16(25686), + 96: uint16(25687), + 97: uint16(25689), + 98: uint16(25690), + 99: uint16(25691), + 100: uint16(25692), + 101: uint16(25693), + 102: uint16(25695), + 103: uint16(25696), + 104: uint16(25697), + 105: uint16(25698), + 106: uint16(25699), + 107: uint16(25700), + 108: uint16(25701), + 109: uint16(25702), + 110: uint16(25704), + 111: uint16(25706), + 112: uint16(25707), + 113: uint16(25708), + 114: uint16(25710), + 115: uint16(25711), + 116: uint16(25712), + 117: uint16(25713), + 118: uint16(25714), + 119: uint16(25715), + 120: uint16(25716), + 121: uint16(25717), + 122: uint16(25718), + 123: uint16(25719), + 124: uint16(25723), + 125: uint16(25724), + 126: uint16(25725), + 127: uint16(25726), + 128: uint16(25727), + 129: uint16(25728), + 130: uint16(25729), + 131: uint16(25731), + 132: uint16(25734), + 133: uint16(25736), + 134: uint16(25737), + 135: uint16(25738), + 136: uint16(25739), + 137: uint16(25740), + 138: uint16(25741), + 139: uint16(25742), + 140: uint16(25743), + 141: uint16(25744), + 142: uint16(25747), + 143: uint16(25748), + 144: uint16(25751), + 145: uint16(25752), + 146: uint16(25754), + 147: uint16(25755), + 148: uint16(25756), + 149: uint16(25757), + 150: uint16(25759), + 151: uint16(25760), + 152: uint16(25761), + 153: uint16(25762), + 154: uint16(25763), + 155: uint16(25765), + 156: uint16(25766), + 157: uint16(25767), + 158: uint16(25768), + 159: uint16(25770), + 160: uint16(25771), + 161: uint16(25775), + 162: uint16(25777), + 163: uint16(25778), + 164: uint16(25779), + 165: uint16(25780), + 166: uint16(25782), + 167: uint16(25785), + 168: uint16(25787), + 169: uint16(25789), + 170: uint16(25790), + 171: uint16(25791), + 172: uint16(25793), + 173: uint16(25795), + 174: uint16(25796), + 175: uint16(25798), + 176: uint16(25799), + 177: uint16(25800), + 178: uint16(25801), + 179: uint16(25802), + 180: uint16(25803), + 181: uint16(25804), + 182: uint16(25807), + 183: uint16(25809), + 184: uint16(25811), + 185: uint16(25812), + 186: uint16(25813), + 187: uint16(25814), + 188: uint16(25817), + 189: uint16(25818), + }, + 19: { + 0: uint16(25819), + 1: uint16(25820), + 2: uint16(25821), + 3: uint16(25823), + 4: uint16(25824), + 5: uint16(25825), + 6: uint16(25827), + 7: uint16(25829), + 8: uint16(25831), + 9: uint16(25832), + 10: uint16(25833), + 11: uint16(25834), + 12: uint16(25835), + 13: uint16(25836), + 14: uint16(25837), + 15: uint16(25838), + 16: uint16(25839), + 17: uint16(25840), + 18: uint16(25841), + 19: uint16(25842), + 20: uint16(25843), + 21: uint16(25844), + 22: uint16(25845), + 23: uint16(25846), + 24: uint16(25847), + 25: uint16(25848), + 26: uint16(25849), + 27: uint16(25850), + 28: uint16(25851), + 29: uint16(25852), + 30: uint16(25853), + 31: uint16(25854), + 32: uint16(25855), + 33: uint16(25857), + 34: uint16(25858), + 35: uint16(25859), + 36: uint16(25860), + 37: uint16(25861), + 38: uint16(25862), + 39: uint16(25863), + 40: uint16(25864), + 41: uint16(25866), + 42: uint16(25867), + 43: uint16(25868), + 44: uint16(25869), + 45: uint16(25870), + 46: uint16(25871), + 47: uint16(25872), + 48: uint16(25873), + 49: uint16(25875), + 50: uint16(25876), + 51: uint16(25877), + 52: uint16(25878), + 53: uint16(25879), + 54: uint16(25881), + 55: uint16(25882), + 56: uint16(25883), + 57: uint16(25884), + 58: uint16(25885), + 59: uint16(25886), + 60: uint16(25887), + 61: uint16(25888), + 62: uint16(25889), + 63: uint16(25890), + 64: uint16(25891), + 65: uint16(25892), + 66: uint16(25894), + 67: uint16(25895), + 68: uint16(25896), + 69: uint16(25897), + 70: uint16(25898), + 71: uint16(25900), + 72: uint16(25901), + 73: uint16(25904), + 74: uint16(25905), + 75: uint16(25906), + 76: uint16(25907), + 77: uint16(25911), + 78: uint16(25914), + 79: uint16(25916), + 80: uint16(25917), + 81: uint16(25920), + 82: uint16(25921), + 83: uint16(25922), + 84: uint16(25923), + 85: uint16(25924), + 86: uint16(25926), + 87: uint16(25927), + 88: uint16(25930), + 89: uint16(25931), + 90: uint16(25933), + 91: uint16(25934), + 92: uint16(25936), + 93: uint16(25938), + 94: uint16(25939), + 95: uint16(25940), + 96: uint16(25943), + 97: uint16(25944), + 98: uint16(25946), + 99: uint16(25948), + 100: uint16(25951), + 101: uint16(25952), + 102: uint16(25953), + 103: uint16(25956), + 104: uint16(25957), + 105: uint16(25959), + 106: uint16(25960), + 107: uint16(25961), + 108: uint16(25962), + 109: uint16(25965), + 110: uint16(25966), + 111: uint16(25967), + 112: uint16(25969), + 113: uint16(25971), + 114: uint16(25973), + 115: uint16(25974), + 116: uint16(25976), + 117: uint16(25977), + 118: uint16(25978), + 119: uint16(25979), + 120: uint16(25980), + 121: uint16(25981), + 122: uint16(25982), + 123: uint16(25983), + 124: uint16(25984), + 125: uint16(25985), + 126: uint16(25986), + 127: uint16(25987), + 128: uint16(25988), + 129: uint16(25989), + 130: uint16(25990), + 131: uint16(25992), + 132: uint16(25993), + 133: uint16(25994), + 134: uint16(25997), + 135: uint16(25998), + 136: uint16(25999), + 137: uint16(26002), + 138: uint16(26004), + 139: uint16(26005), + 140: uint16(26006), + 141: uint16(26008), + 142: uint16(26010), + 143: uint16(26013), + 144: uint16(26014), + 145: uint16(26016), + 146: uint16(26018), + 147: uint16(26019), + 148: uint16(26022), + 149: uint16(26024), + 150: uint16(26026), + 151: uint16(26028), + 152: uint16(26030), + 153: uint16(26033), + 154: uint16(26034), + 155: uint16(26035), + 156: uint16(26036), + 157: uint16(26037), + 158: uint16(26038), + 159: uint16(26039), + 160: uint16(26040), + 161: uint16(26042), + 162: uint16(26043), + 163: uint16(26046), + 164: uint16(26047), + 165: uint16(26048), + 166: uint16(26050), + 167: uint16(26055), + 168: uint16(26056), + 169: uint16(26057), + 170: uint16(26058), + 171: uint16(26061), + 172: uint16(26064), + 173: uint16(26065), + 174: uint16(26067), + 175: uint16(26068), + 176: uint16(26069), + 177: uint16(26072), + 178: uint16(26073), + 179: uint16(26074), + 180: uint16(26075), + 181: uint16(26076), + 182: uint16(26077), + 183: uint16(26078), + 184: uint16(26079), + 185: uint16(26081), + 186: uint16(26083), + 187: uint16(26084), + 188: uint16(26090), + 189: uint16(26091), + }, + 20: { + 0: uint16(26098), + 1: uint16(26099), + 2: uint16(26100), + 3: uint16(26101), + 4: uint16(26104), + 5: uint16(26105), + 6: uint16(26107), + 7: uint16(26108), + 8: uint16(26109), + 9: uint16(26110), + 10: uint16(26111), + 11: uint16(26113), + 12: uint16(26116), + 13: uint16(26117), + 14: uint16(26119), + 15: uint16(26120), + 16: uint16(26121), + 17: uint16(26123), + 18: uint16(26125), + 19: uint16(26128), + 20: uint16(26129), + 21: uint16(26130), + 22: uint16(26134), + 23: uint16(26135), + 24: uint16(26136), + 25: uint16(26138), + 26: uint16(26139), + 27: uint16(26140), + 28: uint16(26142), + 29: uint16(26145), + 30: uint16(26146), + 31: uint16(26147), + 32: uint16(26148), + 33: uint16(26150), + 34: uint16(26153), + 35: uint16(26154), + 36: uint16(26155), + 37: uint16(26156), + 38: uint16(26158), + 39: uint16(26160), + 40: uint16(26162), + 41: uint16(26163), + 42: uint16(26167), + 43: uint16(26168), + 44: uint16(26169), + 45: uint16(26170), + 46: uint16(26171), + 47: uint16(26173), + 48: uint16(26175), + 49: uint16(26176), + 50: uint16(26178), + 51: uint16(26180), + 52: uint16(26181), + 53: uint16(26182), + 54: uint16(26183), + 55: uint16(26184), + 56: uint16(26185), + 57: uint16(26186), + 58: uint16(26189), + 59: uint16(26190), + 60: uint16(26192), + 61: uint16(26193), + 62: uint16(26200), + 63: uint16(26201), + 64: uint16(26203), + 65: uint16(26204), + 66: uint16(26205), + 67: uint16(26206), + 68: uint16(26208), + 69: uint16(26210), + 70: uint16(26211), + 71: uint16(26213), + 72: uint16(26215), + 73: uint16(26217), + 74: uint16(26218), + 75: uint16(26219), + 76: uint16(26220), + 77: uint16(26221), + 78: uint16(26225), + 79: uint16(26226), + 80: uint16(26227), + 81: uint16(26229), + 82: uint16(26232), + 83: uint16(26233), + 84: uint16(26235), + 85: uint16(26236), + 86: uint16(26237), + 87: uint16(26239), + 88: uint16(26240), + 89: uint16(26241), + 90: uint16(26243), + 91: uint16(26245), + 92: uint16(26246), + 93: uint16(26248), + 94: uint16(26249), + 95: uint16(26250), + 96: uint16(26251), + 97: uint16(26253), + 98: uint16(26254), + 99: uint16(26255), + 100: uint16(26256), + 101: uint16(26258), + 102: uint16(26259), + 103: uint16(26260), + 104: uint16(26261), + 105: uint16(26264), + 106: uint16(26265), + 107: uint16(26266), + 108: uint16(26267), + 109: uint16(26268), + 110: uint16(26270), + 111: uint16(26271), + 112: uint16(26272), + 113: uint16(26273), + 114: uint16(26274), + 115: uint16(26275), + 116: uint16(26276), + 117: uint16(26277), + 118: uint16(26278), + 119: uint16(26281), + 120: uint16(26282), + 121: uint16(26283), + 122: uint16(26284), + 123: uint16(26285), + 124: uint16(26287), + 125: uint16(26288), + 126: uint16(26289), + 127: uint16(26290), + 128: uint16(26291), + 129: uint16(26293), + 130: uint16(26294), + 131: uint16(26295), + 132: uint16(26296), + 133: uint16(26298), + 134: uint16(26299), + 135: uint16(26300), + 136: uint16(26301), + 137: uint16(26303), + 138: uint16(26304), + 139: uint16(26305), + 140: uint16(26306), + 141: uint16(26307), + 142: uint16(26308), + 143: uint16(26309), + 144: uint16(26310), + 145: uint16(26311), + 146: uint16(26312), + 147: uint16(26313), + 148: uint16(26314), + 149: uint16(26315), + 150: uint16(26316), + 151: uint16(26317), + 152: uint16(26318), + 153: uint16(26319), + 154: uint16(26320), + 155: uint16(26321), + 156: uint16(26322), + 157: uint16(26323), + 158: uint16(26324), + 159: uint16(26325), + 160: uint16(26326), + 161: uint16(26327), + 162: uint16(26328), + 163: uint16(26330), + 164: uint16(26334), + 165: uint16(26335), + 166: uint16(26336), + 167: uint16(26337), + 168: uint16(26338), + 169: uint16(26339), + 170: uint16(26340), + 171: uint16(26341), + 172: uint16(26343), + 173: uint16(26344), + 174: uint16(26346), + 175: uint16(26347), + 176: uint16(26348), + 177: uint16(26349), + 178: uint16(26350), + 179: uint16(26351), + 180: uint16(26353), + 181: uint16(26357), + 182: uint16(26358), + 183: uint16(26360), + 184: uint16(26362), + 185: uint16(26363), + 186: uint16(26365), + 187: uint16(26369), + 188: uint16(26370), + 189: uint16(26371), + }, + 21: { + 0: uint16(26372), + 1: uint16(26373), + 2: uint16(26374), + 3: uint16(26375), + 4: uint16(26380), + 5: uint16(26382), + 6: uint16(26383), + 7: uint16(26385), + 8: uint16(26386), + 9: uint16(26387), + 10: uint16(26390), + 11: uint16(26392), + 12: uint16(26393), + 13: uint16(26394), + 14: uint16(26396), + 15: uint16(26398), + 16: uint16(26400), + 17: uint16(26401), + 18: uint16(26402), + 19: uint16(26403), + 20: uint16(26404), + 21: uint16(26405), + 22: uint16(26407), + 23: uint16(26409), + 24: uint16(26414), + 25: uint16(26416), + 26: uint16(26418), + 27: uint16(26419), + 28: uint16(26422), + 29: uint16(26423), + 30: uint16(26424), + 31: uint16(26425), + 32: uint16(26427), + 33: uint16(26428), + 34: uint16(26430), + 35: uint16(26431), + 36: uint16(26433), + 37: uint16(26436), + 38: uint16(26437), + 39: uint16(26439), + 40: uint16(26442), + 41: uint16(26443), + 42: uint16(26445), + 43: uint16(26450), + 44: uint16(26452), + 45: uint16(26453), + 46: uint16(26455), + 47: uint16(26456), + 48: uint16(26457), + 49: uint16(26458), + 50: uint16(26459), + 51: uint16(26461), + 52: uint16(26466), + 53: uint16(26467), + 54: uint16(26468), + 55: uint16(26470), + 56: uint16(26471), + 57: uint16(26475), + 58: uint16(26476), + 59: uint16(26478), + 60: uint16(26481), + 61: uint16(26484), + 62: uint16(26486), + 63: uint16(26488), + 64: uint16(26489), + 65: uint16(26490), + 66: uint16(26491), + 67: uint16(26493), + 68: uint16(26496), + 69: uint16(26498), + 70: uint16(26499), + 71: uint16(26501), + 72: uint16(26502), + 73: uint16(26504), + 74: uint16(26506), + 75: uint16(26508), + 76: uint16(26509), + 77: uint16(26510), + 78: uint16(26511), + 79: uint16(26513), + 80: uint16(26514), + 81: uint16(26515), + 82: uint16(26516), + 83: uint16(26518), + 84: uint16(26521), + 85: uint16(26523), + 86: uint16(26527), + 87: uint16(26528), + 88: uint16(26529), + 89: uint16(26532), + 90: uint16(26534), + 91: uint16(26537), + 92: uint16(26540), + 93: uint16(26542), + 94: uint16(26545), + 95: uint16(26546), + 96: uint16(26548), + 97: uint16(26553), + 98: uint16(26554), + 99: uint16(26555), + 100: uint16(26556), + 101: uint16(26557), + 102: uint16(26558), + 103: uint16(26559), + 104: uint16(26560), + 105: uint16(26562), + 106: uint16(26565), + 107: uint16(26566), + 108: uint16(26567), + 109: uint16(26568), + 110: uint16(26569), + 111: uint16(26570), + 112: uint16(26571), + 113: uint16(26572), + 114: uint16(26573), + 115: uint16(26574), + 116: uint16(26581), + 117: uint16(26582), + 118: uint16(26583), + 119: uint16(26587), + 120: uint16(26591), + 121: uint16(26593), + 122: uint16(26595), + 123: uint16(26596), + 124: uint16(26598), + 125: uint16(26599), + 126: uint16(26600), + 127: uint16(26602), + 128: uint16(26603), + 129: uint16(26605), + 130: uint16(26606), + 131: uint16(26610), + 132: uint16(26613), + 133: uint16(26614), + 134: uint16(26615), + 135: uint16(26616), + 136: uint16(26617), + 137: uint16(26618), + 138: uint16(26619), + 139: uint16(26620), + 140: uint16(26622), + 141: uint16(26625), + 142: uint16(26626), + 143: uint16(26627), + 144: uint16(26628), + 145: uint16(26630), + 146: uint16(26637), + 147: uint16(26640), + 148: uint16(26642), + 149: uint16(26644), + 150: uint16(26645), + 151: uint16(26648), + 152: uint16(26649), + 153: uint16(26650), + 154: uint16(26651), + 155: uint16(26652), + 156: uint16(26654), + 157: uint16(26655), + 158: uint16(26656), + 159: uint16(26658), + 160: uint16(26659), + 161: uint16(26660), + 162: uint16(26661), + 163: uint16(26662), + 164: uint16(26663), + 165: uint16(26664), + 166: uint16(26667), + 167: uint16(26668), + 168: uint16(26669), + 169: uint16(26670), + 170: uint16(26671), + 171: uint16(26672), + 172: uint16(26673), + 173: uint16(26676), + 174: uint16(26677), + 175: uint16(26678), + 176: uint16(26682), + 177: uint16(26683), + 178: uint16(26687), + 179: uint16(26695), + 180: uint16(26699), + 181: uint16(26701), + 182: uint16(26703), + 183: uint16(26706), + 184: uint16(26710), + 185: uint16(26711), + 186: uint16(26712), + 187: uint16(26713), + 188: uint16(26714), + 189: uint16(26715), + }, + 22: { + 0: uint16(26716), + 1: uint16(26717), + 2: uint16(26718), + 3: uint16(26719), + 4: uint16(26730), + 5: uint16(26732), + 6: uint16(26733), + 7: uint16(26734), + 8: uint16(26735), + 9: uint16(26736), + 10: uint16(26737), + 11: uint16(26738), + 12: uint16(26739), + 13: uint16(26741), + 14: uint16(26744), + 15: uint16(26745), + 16: uint16(26746), + 17: uint16(26747), + 18: uint16(26748), + 19: uint16(26749), + 20: uint16(26750), + 21: uint16(26751), + 22: uint16(26752), + 23: uint16(26754), + 24: uint16(26756), + 25: uint16(26759), + 26: uint16(26760), + 27: uint16(26761), + 28: uint16(26762), + 29: uint16(26763), + 30: uint16(26764), + 31: uint16(26765), + 32: uint16(26766), + 33: uint16(26768), + 34: uint16(26769), + 35: uint16(26770), + 36: uint16(26772), + 37: uint16(26773), + 38: uint16(26774), + 39: uint16(26776), + 40: uint16(26777), + 41: uint16(26778), + 42: uint16(26779), + 43: uint16(26780), + 44: uint16(26781), + 45: uint16(26782), + 46: uint16(26783), + 47: uint16(26784), + 48: uint16(26785), + 49: uint16(26787), + 50: uint16(26788), + 51: uint16(26789), + 52: uint16(26793), + 53: uint16(26794), + 54: uint16(26795), + 55: uint16(26796), + 56: uint16(26798), + 57: uint16(26801), + 58: uint16(26802), + 59: uint16(26804), + 60: uint16(26806), + 61: uint16(26807), + 62: uint16(26808), + 63: uint16(26809), + 64: uint16(26810), + 65: uint16(26811), + 66: uint16(26812), + 67: uint16(26813), + 68: uint16(26814), + 69: uint16(26815), + 70: uint16(26817), + 71: uint16(26819), + 72: uint16(26820), + 73: uint16(26821), + 74: uint16(26822), + 75: uint16(26823), + 76: uint16(26824), + 77: uint16(26826), + 78: uint16(26828), + 79: uint16(26830), + 80: uint16(26831), + 81: uint16(26832), + 82: uint16(26833), + 83: uint16(26835), + 84: uint16(26836), + 85: uint16(26838), + 86: uint16(26839), + 87: uint16(26841), + 88: uint16(26843), + 89: uint16(26844), + 90: uint16(26845), + 91: uint16(26846), + 92: uint16(26847), + 93: uint16(26849), + 94: uint16(26850), + 95: uint16(26852), + 96: uint16(26853), + 97: uint16(26854), + 98: uint16(26855), + 99: uint16(26856), + 100: uint16(26857), + 101: uint16(26858), + 102: uint16(26859), + 103: uint16(26860), + 104: uint16(26861), + 105: uint16(26863), + 106: uint16(26866), + 107: uint16(26867), + 108: uint16(26868), + 109: uint16(26870), + 110: uint16(26871), + 111: uint16(26872), + 112: uint16(26875), + 113: uint16(26877), + 114: uint16(26878), + 115: uint16(26879), + 116: uint16(26880), + 117: uint16(26882), + 118: uint16(26883), + 119: uint16(26884), + 120: uint16(26886), + 121: uint16(26887), + 122: uint16(26888), + 123: uint16(26889), + 124: uint16(26890), + 125: uint16(26892), + 126: uint16(26895), + 127: uint16(26897), + 128: uint16(26899), + 129: uint16(26900), + 130: uint16(26901), + 131: uint16(26902), + 132: uint16(26903), + 133: uint16(26904), + 134: uint16(26905), + 135: uint16(26906), + 136: uint16(26907), + 137: uint16(26908), + 138: uint16(26909), + 139: uint16(26910), + 140: uint16(26913), + 141: uint16(26914), + 142: uint16(26915), + 143: uint16(26917), + 144: uint16(26918), + 145: uint16(26919), + 146: uint16(26920), + 147: uint16(26921), + 148: uint16(26922), + 149: uint16(26923), + 150: uint16(26924), + 151: uint16(26926), + 152: uint16(26927), + 153: uint16(26929), + 154: uint16(26930), + 155: uint16(26931), + 156: uint16(26933), + 157: uint16(26934), + 158: uint16(26935), + 159: uint16(26936), + 160: uint16(26938), + 161: uint16(26939), + 162: uint16(26940), + 163: uint16(26942), + 164: uint16(26944), + 165: uint16(26945), + 166: uint16(26947), + 167: uint16(26948), + 168: uint16(26949), + 169: uint16(26950), + 170: uint16(26951), + 171: uint16(26952), + 172: uint16(26953), + 173: uint16(26954), + 174: uint16(26955), + 175: uint16(26956), + 176: uint16(26957), + 177: uint16(26958), + 178: uint16(26959), + 179: uint16(26960), + 180: uint16(26961), + 181: uint16(26962), + 182: uint16(26963), + 183: uint16(26965), + 184: uint16(26966), + 185: uint16(26968), + 186: uint16(26969), + 187: uint16(26971), + 188: uint16(26972), + 189: uint16(26975), + }, + 23: { + 0: uint16(26977), + 1: uint16(26978), + 2: uint16(26980), + 3: uint16(26981), + 4: uint16(26983), + 5: uint16(26984), + 6: uint16(26985), + 7: uint16(26986), + 8: uint16(26988), + 9: uint16(26989), + 10: uint16(26991), + 11: uint16(26992), + 12: uint16(26994), + 13: uint16(26995), + 14: uint16(26996), + 15: uint16(26997), + 16: uint16(26998), + 17: uint16(27002), + 18: uint16(27003), + 19: uint16(27005), + 20: uint16(27006), + 21: uint16(27007), + 22: uint16(27009), + 23: uint16(27011), + 24: uint16(27013), + 25: uint16(27018), + 26: uint16(27019), + 27: uint16(27020), + 28: uint16(27022), + 29: uint16(27023), + 30: uint16(27024), + 31: uint16(27025), + 32: uint16(27026), + 33: uint16(27027), + 34: uint16(27030), + 35: uint16(27031), + 36: uint16(27033), + 37: uint16(27034), + 38: uint16(27037), + 39: uint16(27038), + 40: uint16(27039), + 41: uint16(27040), + 42: uint16(27041), + 43: uint16(27042), + 44: uint16(27043), + 45: uint16(27044), + 46: uint16(27045), + 47: uint16(27046), + 48: uint16(27049), + 49: uint16(27050), + 50: uint16(27052), + 51: uint16(27054), + 52: uint16(27055), + 53: uint16(27056), + 54: uint16(27058), + 55: uint16(27059), + 56: uint16(27061), + 57: uint16(27062), + 58: uint16(27064), + 59: uint16(27065), + 60: uint16(27066), + 61: uint16(27068), + 62: uint16(27069), + 63: uint16(27070), + 64: uint16(27071), + 65: uint16(27072), + 66: uint16(27074), + 67: uint16(27075), + 68: uint16(27076), + 69: uint16(27077), + 70: uint16(27078), + 71: uint16(27079), + 72: uint16(27080), + 73: uint16(27081), + 74: uint16(27083), + 75: uint16(27085), + 76: uint16(27087), + 77: uint16(27089), + 78: uint16(27090), + 79: uint16(27091), + 80: uint16(27093), + 81: uint16(27094), + 82: uint16(27095), + 83: uint16(27096), + 84: uint16(27097), + 85: uint16(27098), + 86: uint16(27100), + 87: uint16(27101), + 88: uint16(27102), + 89: uint16(27105), + 90: uint16(27106), + 91: uint16(27107), + 92: uint16(27108), + 93: uint16(27109), + 94: uint16(27110), + 95: uint16(27111), + 96: uint16(27112), + 97: uint16(27113), + 98: uint16(27114), + 99: uint16(27115), + 100: uint16(27116), + 101: uint16(27118), + 102: uint16(27119), + 103: uint16(27120), + 104: uint16(27121), + 105: uint16(27123), + 106: uint16(27124), + 107: uint16(27125), + 108: uint16(27126), + 109: uint16(27127), + 110: uint16(27128), + 111: uint16(27129), + 112: uint16(27130), + 113: uint16(27131), + 114: uint16(27132), + 115: uint16(27134), + 116: uint16(27136), + 117: uint16(27137), + 118: uint16(27138), + 119: uint16(27139), + 120: uint16(27140), + 121: uint16(27141), + 122: uint16(27142), + 123: uint16(27143), + 124: uint16(27144), + 125: uint16(27145), + 126: uint16(27147), + 127: uint16(27148), + 128: uint16(27149), + 129: uint16(27150), + 130: uint16(27151), + 131: uint16(27152), + 132: uint16(27153), + 133: uint16(27154), + 134: uint16(27155), + 135: uint16(27156), + 136: uint16(27157), + 137: uint16(27158), + 138: uint16(27161), + 139: uint16(27162), + 140: uint16(27163), + 141: uint16(27164), + 142: uint16(27165), + 143: uint16(27166), + 144: uint16(27168), + 145: uint16(27170), + 146: uint16(27171), + 147: uint16(27172), + 148: uint16(27173), + 149: uint16(27174), + 150: uint16(27175), + 151: uint16(27177), + 152: uint16(27179), + 153: uint16(27180), + 154: uint16(27181), + 155: uint16(27182), + 156: uint16(27184), + 157: uint16(27186), + 158: uint16(27187), + 159: uint16(27188), + 160: uint16(27190), + 161: uint16(27191), + 162: uint16(27192), + 163: uint16(27193), + 164: uint16(27194), + 165: uint16(27195), + 166: uint16(27196), + 167: uint16(27199), + 168: uint16(27200), + 169: uint16(27201), + 170: uint16(27202), + 171: uint16(27203), + 172: uint16(27205), + 173: uint16(27206), + 174: uint16(27208), + 175: uint16(27209), + 176: uint16(27210), + 177: uint16(27211), + 178: uint16(27212), + 179: uint16(27213), + 180: uint16(27214), + 181: uint16(27215), + 182: uint16(27217), + 183: uint16(27218), + 184: uint16(27219), + 185: uint16(27220), + 186: uint16(27221), + 187: uint16(27222), + 188: uint16(27223), + 189: uint16(27226), + }, + 24: { + 0: uint16(27228), + 1: uint16(27229), + 2: uint16(27230), + 3: uint16(27231), + 4: uint16(27232), + 5: uint16(27234), + 6: uint16(27235), + 7: uint16(27236), + 8: uint16(27238), + 9: uint16(27239), + 10: uint16(27240), + 11: uint16(27241), + 12: uint16(27242), + 13: uint16(27243), + 14: uint16(27244), + 15: uint16(27245), + 16: uint16(27246), + 17: uint16(27247), + 18: uint16(27248), + 19: uint16(27250), + 20: uint16(27251), + 21: uint16(27252), + 22: uint16(27253), + 23: uint16(27254), + 24: uint16(27255), + 25: uint16(27256), + 26: uint16(27258), + 27: uint16(27259), + 28: uint16(27261), + 29: uint16(27262), + 30: uint16(27263), + 31: uint16(27265), + 32: uint16(27266), + 33: uint16(27267), + 34: uint16(27269), + 35: uint16(27270), + 36: uint16(27271), + 37: uint16(27272), + 38: uint16(27273), + 39: uint16(27274), + 40: uint16(27275), + 41: uint16(27276), + 42: uint16(27277), + 43: uint16(27279), + 44: uint16(27282), + 45: uint16(27283), + 46: uint16(27284), + 47: uint16(27285), + 48: uint16(27286), + 49: uint16(27288), + 50: uint16(27289), + 51: uint16(27290), + 52: uint16(27291), + 53: uint16(27292), + 54: uint16(27293), + 55: uint16(27294), + 56: uint16(27295), + 57: uint16(27297), + 58: uint16(27298), + 59: uint16(27299), + 60: uint16(27300), + 61: uint16(27301), + 62: uint16(27302), + 63: uint16(27303), + 64: uint16(27304), + 65: uint16(27306), + 66: uint16(27309), + 67: uint16(27310), + 68: uint16(27311), + 69: uint16(27312), + 70: uint16(27313), + 71: uint16(27314), + 72: uint16(27315), + 73: uint16(27316), + 74: uint16(27317), + 75: uint16(27318), + 76: uint16(27319), + 77: uint16(27320), + 78: uint16(27321), + 79: uint16(27322), + 80: uint16(27323), + 81: uint16(27324), + 82: uint16(27325), + 83: uint16(27326), + 84: uint16(27327), + 85: uint16(27328), + 86: uint16(27329), + 87: uint16(27330), + 88: uint16(27331), + 89: uint16(27332), + 90: uint16(27333), + 91: uint16(27334), + 92: uint16(27335), + 93: uint16(27336), + 94: uint16(27337), + 95: uint16(27338), + 96: uint16(27339), + 97: uint16(27340), + 98: uint16(27341), + 99: uint16(27342), + 100: uint16(27343), + 101: uint16(27344), + 102: uint16(27345), + 103: uint16(27346), + 104: uint16(27347), + 105: uint16(27348), + 106: uint16(27349), + 107: uint16(27350), + 108: uint16(27351), + 109: uint16(27352), + 110: uint16(27353), + 111: uint16(27354), + 112: uint16(27355), + 113: uint16(27356), + 114: uint16(27357), + 115: uint16(27358), + 116: uint16(27359), + 117: uint16(27360), + 118: uint16(27361), + 119: uint16(27362), + 120: uint16(27363), + 121: uint16(27364), + 122: uint16(27365), + 123: uint16(27366), + 124: uint16(27367), + 125: uint16(27368), + 126: uint16(27369), + 127: uint16(27370), + 128: uint16(27371), + 129: uint16(27372), + 130: uint16(27373), + 131: uint16(27374), + 132: uint16(27375), + 133: uint16(27376), + 134: uint16(27377), + 135: uint16(27378), + 136: uint16(27379), + 137: uint16(27380), + 138: uint16(27381), + 139: uint16(27382), + 140: uint16(27383), + 141: uint16(27384), + 142: uint16(27385), + 143: uint16(27386), + 144: uint16(27387), + 145: uint16(27388), + 146: uint16(27389), + 147: uint16(27390), + 148: uint16(27391), + 149: uint16(27392), + 150: uint16(27393), + 151: uint16(27394), + 152: uint16(27395), + 153: uint16(27396), + 154: uint16(27397), + 155: uint16(27398), + 156: uint16(27399), + 157: uint16(27400), + 158: uint16(27401), + 159: uint16(27402), + 160: uint16(27403), + 161: uint16(27404), + 162: uint16(27405), + 163: uint16(27406), + 164: uint16(27407), + 165: uint16(27408), + 166: uint16(27409), + 167: uint16(27410), + 168: uint16(27411), + 169: uint16(27412), + 170: uint16(27413), + 171: uint16(27414), + 172: uint16(27415), + 173: uint16(27416), + 174: uint16(27417), + 175: uint16(27418), + 176: uint16(27419), + 177: uint16(27420), + 178: uint16(27421), + 179: uint16(27422), + 180: uint16(27423), + 181: uint16(27429), + 182: uint16(27430), + 183: uint16(27432), + 184: uint16(27433), + 185: uint16(27434), + 186: uint16(27435), + 187: uint16(27436), + 188: uint16(27437), + 189: uint16(27438), + }, + 25: { + 0: uint16(27439), + 1: uint16(27440), + 2: uint16(27441), + 3: uint16(27443), + 4: uint16(27444), + 5: uint16(27445), + 6: uint16(27446), + 7: uint16(27448), + 8: uint16(27451), + 9: uint16(27452), + 10: uint16(27453), + 11: uint16(27455), + 12: uint16(27456), + 13: uint16(27457), + 14: uint16(27458), + 15: uint16(27460), + 16: uint16(27461), + 17: uint16(27464), + 18: uint16(27466), + 19: uint16(27467), + 20: uint16(27469), + 21: uint16(27470), + 22: uint16(27471), + 23: uint16(27472), + 24: uint16(27473), + 25: uint16(27474), + 26: uint16(27475), + 27: uint16(27476), + 28: uint16(27477), + 29: uint16(27478), + 30: uint16(27479), + 31: uint16(27480), + 32: uint16(27482), + 33: uint16(27483), + 34: uint16(27484), + 35: uint16(27485), + 36: uint16(27486), + 37: uint16(27487), + 38: uint16(27488), + 39: uint16(27489), + 40: uint16(27496), + 41: uint16(27497), + 42: uint16(27499), + 43: uint16(27500), + 44: uint16(27501), + 45: uint16(27502), + 46: uint16(27503), + 47: uint16(27504), + 48: uint16(27505), + 49: uint16(27506), + 50: uint16(27507), + 51: uint16(27508), + 52: uint16(27509), + 53: uint16(27510), + 54: uint16(27511), + 55: uint16(27512), + 56: uint16(27514), + 57: uint16(27517), + 58: uint16(27518), + 59: uint16(27519), + 60: uint16(27520), + 61: uint16(27525), + 62: uint16(27528), + 63: uint16(27532), + 64: uint16(27534), + 65: uint16(27535), + 66: uint16(27536), + 67: uint16(27537), + 68: uint16(27540), + 69: uint16(27541), + 70: uint16(27543), + 71: uint16(27544), + 72: uint16(27545), + 73: uint16(27548), + 74: uint16(27549), + 75: uint16(27550), + 76: uint16(27551), + 77: uint16(27552), + 78: uint16(27554), + 79: uint16(27555), + 80: uint16(27556), + 81: uint16(27557), + 82: uint16(27558), + 83: uint16(27559), + 84: uint16(27560), + 85: uint16(27561), + 86: uint16(27563), + 87: uint16(27564), + 88: uint16(27565), + 89: uint16(27566), + 90: uint16(27567), + 91: uint16(27568), + 92: uint16(27569), + 93: uint16(27570), + 94: uint16(27574), + 95: uint16(27576), + 96: uint16(27577), + 97: uint16(27578), + 98: uint16(27579), + 99: uint16(27580), + 100: uint16(27581), + 101: uint16(27582), + 102: uint16(27584), + 103: uint16(27587), + 104: uint16(27588), + 105: uint16(27590), + 106: uint16(27591), + 107: uint16(27592), + 108: uint16(27593), + 109: uint16(27594), + 110: uint16(27596), + 111: uint16(27598), + 112: uint16(27600), + 113: uint16(27601), + 114: uint16(27608), + 115: uint16(27610), + 116: uint16(27612), + 117: uint16(27613), + 118: uint16(27614), + 119: uint16(27615), + 120: uint16(27616), + 121: uint16(27618), + 122: uint16(27619), + 123: uint16(27620), + 124: uint16(27621), + 125: uint16(27622), + 126: uint16(27623), + 127: uint16(27624), + 128: uint16(27625), + 129: uint16(27628), + 130: uint16(27629), + 131: uint16(27630), + 132: uint16(27632), + 133: uint16(27633), + 134: uint16(27634), + 135: uint16(27636), + 136: uint16(27638), + 137: uint16(27639), + 138: uint16(27640), + 139: uint16(27642), + 140: uint16(27643), + 141: uint16(27644), + 142: uint16(27646), + 143: uint16(27647), + 144: uint16(27648), + 145: uint16(27649), + 146: uint16(27650), + 147: uint16(27651), + 148: uint16(27652), + 149: uint16(27656), + 150: uint16(27657), + 151: uint16(27658), + 152: uint16(27659), + 153: uint16(27660), + 154: uint16(27662), + 155: uint16(27666), + 156: uint16(27671), + 157: uint16(27676), + 158: uint16(27677), + 159: uint16(27678), + 160: uint16(27680), + 161: uint16(27683), + 162: uint16(27685), + 163: uint16(27691), + 164: uint16(27692), + 165: uint16(27693), + 166: uint16(27697), + 167: uint16(27699), + 168: uint16(27702), + 169: uint16(27703), + 170: uint16(27705), + 171: uint16(27706), + 172: uint16(27707), + 173: uint16(27708), + 174: uint16(27710), + 175: uint16(27711), + 176: uint16(27715), + 177: uint16(27716), + 178: uint16(27717), + 179: uint16(27720), + 180: uint16(27723), + 181: uint16(27724), + 182: uint16(27725), + 183: uint16(27726), + 184: uint16(27727), + 185: uint16(27729), + 186: uint16(27730), + 187: uint16(27731), + 188: uint16(27734), + 189: uint16(27736), + }, + 26: { + 0: uint16(27737), + 1: uint16(27738), + 2: uint16(27746), + 3: uint16(27747), + 4: uint16(27749), + 5: uint16(27750), + 6: uint16(27751), + 7: uint16(27755), + 8: uint16(27756), + 9: uint16(27757), + 10: uint16(27758), + 11: uint16(27759), + 12: uint16(27761), + 13: uint16(27763), + 14: uint16(27765), + 15: uint16(27767), + 16: uint16(27768), + 17: uint16(27770), + 18: uint16(27771), + 19: uint16(27772), + 20: uint16(27775), + 21: uint16(27776), + 22: uint16(27780), + 23: uint16(27783), + 24: uint16(27786), + 25: uint16(27787), + 26: uint16(27789), + 27: uint16(27790), + 28: uint16(27793), + 29: uint16(27794), + 30: uint16(27797), + 31: uint16(27798), + 32: uint16(27799), + 33: uint16(27800), + 34: uint16(27802), + 35: uint16(27804), + 36: uint16(27805), + 37: uint16(27806), + 38: uint16(27808), + 39: uint16(27810), + 40: uint16(27816), + 41: uint16(27820), + 42: uint16(27823), + 43: uint16(27824), + 44: uint16(27828), + 45: uint16(27829), + 46: uint16(27830), + 47: uint16(27831), + 48: uint16(27834), + 49: uint16(27840), + 50: uint16(27841), + 51: uint16(27842), + 52: uint16(27843), + 53: uint16(27846), + 54: uint16(27847), + 55: uint16(27848), + 56: uint16(27851), + 57: uint16(27853), + 58: uint16(27854), + 59: uint16(27855), + 60: uint16(27857), + 61: uint16(27858), + 62: uint16(27864), + 63: uint16(27865), + 64: uint16(27866), + 65: uint16(27868), + 66: uint16(27869), + 67: uint16(27871), + 68: uint16(27876), + 69: uint16(27878), + 70: uint16(27879), + 71: uint16(27881), + 72: uint16(27884), + 73: uint16(27885), + 74: uint16(27890), + 75: uint16(27892), + 76: uint16(27897), + 77: uint16(27903), + 78: uint16(27904), + 79: uint16(27906), + 80: uint16(27907), + 81: uint16(27909), + 82: uint16(27910), + 83: uint16(27912), + 84: uint16(27913), + 85: uint16(27914), + 86: uint16(27917), + 87: uint16(27919), + 88: uint16(27920), + 89: uint16(27921), + 90: uint16(27923), + 91: uint16(27924), + 92: uint16(27925), + 93: uint16(27926), + 94: uint16(27928), + 95: uint16(27932), + 96: uint16(27933), + 97: uint16(27935), + 98: uint16(27936), + 99: uint16(27937), + 100: uint16(27938), + 101: uint16(27939), + 102: uint16(27940), + 103: uint16(27942), + 104: uint16(27944), + 105: uint16(27945), + 106: uint16(27948), + 107: uint16(27949), + 108: uint16(27951), + 109: uint16(27952), + 110: uint16(27956), + 111: uint16(27958), + 112: uint16(27959), + 113: uint16(27960), + 114: uint16(27962), + 115: uint16(27967), + 116: uint16(27968), + 117: uint16(27970), + 118: uint16(27972), + 119: uint16(27977), + 120: uint16(27980), + 121: uint16(27984), + 122: uint16(27989), + 123: uint16(27990), + 124: uint16(27991), + 125: uint16(27992), + 126: uint16(27995), + 127: uint16(27997), + 128: uint16(27999), + 129: uint16(28001), + 130: uint16(28002), + 131: uint16(28004), + 132: uint16(28005), + 133: uint16(28007), + 134: uint16(28008), + 135: uint16(28011), + 136: uint16(28012), + 137: uint16(28013), + 138: uint16(28016), + 139: uint16(28017), + 140: uint16(28018), + 141: uint16(28019), + 142: uint16(28021), + 143: uint16(28022), + 144: uint16(28025), + 145: uint16(28026), + 146: uint16(28027), + 147: uint16(28029), + 148: uint16(28030), + 149: uint16(28031), + 150: uint16(28032), + 151: uint16(28033), + 152: uint16(28035), + 153: uint16(28036), + 154: uint16(28038), + 155: uint16(28039), + 156: uint16(28042), + 157: uint16(28043), + 158: uint16(28045), + 159: uint16(28047), + 160: uint16(28048), + 161: uint16(28050), + 162: uint16(28054), + 163: uint16(28055), + 164: uint16(28056), + 165: uint16(28057), + 166: uint16(28058), + 167: uint16(28060), + 168: uint16(28066), + 169: uint16(28069), + 170: uint16(28076), + 171: uint16(28077), + 172: uint16(28080), + 173: uint16(28081), + 174: uint16(28083), + 175: uint16(28084), + 176: uint16(28086), + 177: uint16(28087), + 178: uint16(28089), + 179: uint16(28090), + 180: uint16(28091), + 181: uint16(28092), + 182: uint16(28093), + 183: uint16(28094), + 184: uint16(28097), + 185: uint16(28098), + 186: uint16(28099), + 187: uint16(28104), + 188: uint16(28105), + 189: uint16(28106), + }, + 27: { + 0: uint16(28109), + 1: uint16(28110), + 2: uint16(28111), + 3: uint16(28112), + 4: uint16(28114), + 5: uint16(28115), + 6: uint16(28116), + 7: uint16(28117), + 8: uint16(28119), + 9: uint16(28122), + 10: uint16(28123), + 11: uint16(28124), + 12: uint16(28127), + 13: uint16(28130), + 14: uint16(28131), + 15: uint16(28133), + 16: uint16(28135), + 17: uint16(28136), + 18: uint16(28137), + 19: uint16(28138), + 20: uint16(28141), + 21: uint16(28143), + 22: uint16(28144), + 23: uint16(28146), + 24: uint16(28148), + 25: uint16(28149), + 26: uint16(28150), + 27: uint16(28152), + 28: uint16(28154), + 29: uint16(28157), + 30: uint16(28158), + 31: uint16(28159), + 32: uint16(28160), + 33: uint16(28161), + 34: uint16(28162), + 35: uint16(28163), + 36: uint16(28164), + 37: uint16(28166), + 38: uint16(28167), + 39: uint16(28168), + 40: uint16(28169), + 41: uint16(28171), + 42: uint16(28175), + 43: uint16(28178), + 44: uint16(28179), + 45: uint16(28181), + 46: uint16(28184), + 47: uint16(28185), + 48: uint16(28187), + 49: uint16(28188), + 50: uint16(28190), + 51: uint16(28191), + 52: uint16(28194), + 53: uint16(28198), + 54: uint16(28199), + 55: uint16(28200), + 56: uint16(28202), + 57: uint16(28204), + 58: uint16(28206), + 59: uint16(28208), + 60: uint16(28209), + 61: uint16(28211), + 62: uint16(28213), + 63: uint16(28214), + 64: uint16(28215), + 65: uint16(28217), + 66: uint16(28219), + 67: uint16(28220), + 68: uint16(28221), + 69: uint16(28222), + 70: uint16(28223), + 71: uint16(28224), + 72: uint16(28225), + 73: uint16(28226), + 74: uint16(28229), + 75: uint16(28230), + 76: uint16(28231), + 77: uint16(28232), + 78: uint16(28233), + 79: uint16(28234), + 80: uint16(28235), + 81: uint16(28236), + 82: uint16(28239), + 83: uint16(28240), + 84: uint16(28241), + 85: uint16(28242), + 86: uint16(28245), + 87: uint16(28247), + 88: uint16(28249), + 89: uint16(28250), + 90: uint16(28252), + 91: uint16(28253), + 92: uint16(28254), + 93: uint16(28256), + 94: uint16(28257), + 95: uint16(28258), + 96: uint16(28259), + 97: uint16(28260), + 98: uint16(28261), + 99: uint16(28262), + 100: uint16(28263), + 101: uint16(28264), + 102: uint16(28265), + 103: uint16(28266), + 104: uint16(28268), + 105: uint16(28269), + 106: uint16(28271), + 107: uint16(28272), + 108: uint16(28273), + 109: uint16(28274), + 110: uint16(28275), + 111: uint16(28276), + 112: uint16(28277), + 113: uint16(28278), + 114: uint16(28279), + 115: uint16(28280), + 116: uint16(28281), + 117: uint16(28282), + 118: uint16(28283), + 119: uint16(28284), + 120: uint16(28285), + 121: uint16(28288), + 122: uint16(28289), + 123: uint16(28290), + 124: uint16(28292), + 125: uint16(28295), + 126: uint16(28296), + 127: uint16(28298), + 128: uint16(28299), + 129: uint16(28300), + 130: uint16(28301), + 131: uint16(28302), + 132: uint16(28305), + 133: uint16(28306), + 134: uint16(28307), + 135: uint16(28308), + 136: uint16(28309), + 137: uint16(28310), + 138: uint16(28311), + 139: uint16(28313), + 140: uint16(28314), + 141: uint16(28315), + 142: uint16(28317), + 143: uint16(28318), + 144: uint16(28320), + 145: uint16(28321), + 146: uint16(28323), + 147: uint16(28324), + 148: uint16(28326), + 149: uint16(28328), + 150: uint16(28329), + 151: uint16(28331), + 152: uint16(28332), + 153: uint16(28333), + 154: uint16(28334), + 155: uint16(28336), + 156: uint16(28339), + 157: uint16(28341), + 158: uint16(28344), + 159: uint16(28345), + 160: uint16(28348), + 161: uint16(28350), + 162: uint16(28351), + 163: uint16(28352), + 164: uint16(28355), + 165: uint16(28356), + 166: uint16(28357), + 167: uint16(28358), + 168: uint16(28360), + 169: uint16(28361), + 170: uint16(28362), + 171: uint16(28364), + 172: uint16(28365), + 173: uint16(28366), + 174: uint16(28368), + 175: uint16(28370), + 176: uint16(28374), + 177: uint16(28376), + 178: uint16(28377), + 179: uint16(28379), + 180: uint16(28380), + 181: uint16(28381), + 182: uint16(28387), + 183: uint16(28391), + 184: uint16(28394), + 185: uint16(28395), + 186: uint16(28396), + 187: uint16(28397), + 188: uint16(28398), + 189: uint16(28399), + }, + 28: { + 0: uint16(28400), + 1: uint16(28401), + 2: uint16(28402), + 3: uint16(28403), + 4: uint16(28405), + 5: uint16(28406), + 6: uint16(28407), + 7: uint16(28408), + 8: uint16(28410), + 9: uint16(28411), + 10: uint16(28412), + 11: uint16(28413), + 12: uint16(28414), + 13: uint16(28415), + 14: uint16(28416), + 15: uint16(28417), + 16: uint16(28419), + 17: uint16(28420), + 18: uint16(28421), + 19: uint16(28423), + 20: uint16(28424), + 21: uint16(28426), + 22: uint16(28427), + 23: uint16(28428), + 24: uint16(28429), + 25: uint16(28430), + 26: uint16(28432), + 27: uint16(28433), + 28: uint16(28434), + 29: uint16(28438), + 30: uint16(28439), + 31: uint16(28440), + 32: uint16(28441), + 33: uint16(28442), + 34: uint16(28443), + 35: uint16(28444), + 36: uint16(28445), + 37: uint16(28446), + 38: uint16(28447), + 39: uint16(28449), + 40: uint16(28450), + 41: uint16(28451), + 42: uint16(28453), + 43: uint16(28454), + 44: uint16(28455), + 45: uint16(28456), + 46: uint16(28460), + 47: uint16(28462), + 48: uint16(28464), + 49: uint16(28466), + 50: uint16(28468), + 51: uint16(28469), + 52: uint16(28471), + 53: uint16(28472), + 54: uint16(28473), + 55: uint16(28474), + 56: uint16(28475), + 57: uint16(28476), + 58: uint16(28477), + 59: uint16(28479), + 60: uint16(28480), + 61: uint16(28481), + 62: uint16(28482), + 63: uint16(28483), + 64: uint16(28484), + 65: uint16(28485), + 66: uint16(28488), + 67: uint16(28489), + 68: uint16(28490), + 69: uint16(28492), + 70: uint16(28494), + 71: uint16(28495), + 72: uint16(28496), + 73: uint16(28497), + 74: uint16(28498), + 75: uint16(28499), + 76: uint16(28500), + 77: uint16(28501), + 78: uint16(28502), + 79: uint16(28503), + 80: uint16(28505), + 81: uint16(28506), + 82: uint16(28507), + 83: uint16(28509), + 84: uint16(28511), + 85: uint16(28512), + 86: uint16(28513), + 87: uint16(28515), + 88: uint16(28516), + 89: uint16(28517), + 90: uint16(28519), + 91: uint16(28520), + 92: uint16(28521), + 93: uint16(28522), + 94: uint16(28523), + 95: uint16(28524), + 96: uint16(28527), + 97: uint16(28528), + 98: uint16(28529), + 99: uint16(28531), + 100: uint16(28533), + 101: uint16(28534), + 102: uint16(28535), + 103: uint16(28537), + 104: uint16(28539), + 105: uint16(28541), + 106: uint16(28542), + 107: uint16(28543), + 108: uint16(28544), + 109: uint16(28545), + 110: uint16(28546), + 111: uint16(28547), + 112: uint16(28549), + 113: uint16(28550), + 114: uint16(28551), + 115: uint16(28554), + 116: uint16(28555), + 117: uint16(28559), + 118: uint16(28560), + 119: uint16(28561), + 120: uint16(28562), + 121: uint16(28563), + 122: uint16(28564), + 123: uint16(28565), + 124: uint16(28566), + 125: uint16(28567), + 126: uint16(28568), + 127: uint16(28569), + 128: uint16(28570), + 129: uint16(28571), + 130: uint16(28573), + 131: uint16(28574), + 132: uint16(28575), + 133: uint16(28576), + 134: uint16(28578), + 135: uint16(28579), + 136: uint16(28580), + 137: uint16(28581), + 138: uint16(28582), + 139: uint16(28584), + 140: uint16(28585), + 141: uint16(28586), + 142: uint16(28587), + 143: uint16(28588), + 144: uint16(28589), + 145: uint16(28590), + 146: uint16(28591), + 147: uint16(28592), + 148: uint16(28593), + 149: uint16(28594), + 150: uint16(28596), + 151: uint16(28597), + 152: uint16(28599), + 153: uint16(28600), + 154: uint16(28602), + 155: uint16(28603), + 156: uint16(28604), + 157: uint16(28605), + 158: uint16(28606), + 159: uint16(28607), + 160: uint16(28609), + 161: uint16(28611), + 162: uint16(28612), + 163: uint16(28613), + 164: uint16(28614), + 165: uint16(28615), + 166: uint16(28616), + 167: uint16(28618), + 168: uint16(28619), + 169: uint16(28620), + 170: uint16(28621), + 171: uint16(28622), + 172: uint16(28623), + 173: uint16(28624), + 174: uint16(28627), + 175: uint16(28628), + 176: uint16(28629), + 177: uint16(28630), + 178: uint16(28631), + 179: uint16(28632), + 180: uint16(28633), + 181: uint16(28634), + 182: uint16(28635), + 183: uint16(28636), + 184: uint16(28637), + 185: uint16(28639), + 186: uint16(28642), + 187: uint16(28643), + 188: uint16(28644), + 189: uint16(28645), + }, + 29: { + 0: uint16(28646), + 1: uint16(28647), + 2: uint16(28648), + 3: uint16(28649), + 4: uint16(28650), + 5: uint16(28651), + 6: uint16(28652), + 7: uint16(28653), + 8: uint16(28656), + 9: uint16(28657), + 10: uint16(28658), + 11: uint16(28659), + 12: uint16(28660), + 13: uint16(28661), + 14: uint16(28662), + 15: uint16(28663), + 16: uint16(28664), + 17: uint16(28665), + 18: uint16(28666), + 19: uint16(28667), + 20: uint16(28668), + 21: uint16(28669), + 22: uint16(28670), + 23: uint16(28671), + 24: uint16(28672), + 25: uint16(28673), + 26: uint16(28674), + 27: uint16(28675), + 28: uint16(28676), + 29: uint16(28677), + 30: uint16(28678), + 31: uint16(28679), + 32: uint16(28680), + 33: uint16(28681), + 34: uint16(28682), + 35: uint16(28683), + 36: uint16(28684), + 37: uint16(28685), + 38: uint16(28686), + 39: uint16(28687), + 40: uint16(28688), + 41: uint16(28690), + 42: uint16(28691), + 43: uint16(28692), + 44: uint16(28693), + 45: uint16(28694), + 46: uint16(28695), + 47: uint16(28696), + 48: uint16(28697), + 49: uint16(28700), + 50: uint16(28701), + 51: uint16(28702), + 52: uint16(28703), + 53: uint16(28704), + 54: uint16(28705), + 55: uint16(28706), + 56: uint16(28708), + 57: uint16(28709), + 58: uint16(28710), + 59: uint16(28711), + 60: uint16(28712), + 61: uint16(28713), + 62: uint16(28714), + 63: uint16(28715), + 64: uint16(28716), + 65: uint16(28717), + 66: uint16(28718), + 67: uint16(28719), + 68: uint16(28720), + 69: uint16(28721), + 70: uint16(28722), + 71: uint16(28723), + 72: uint16(28724), + 73: uint16(28726), + 74: uint16(28727), + 75: uint16(28728), + 76: uint16(28730), + 77: uint16(28731), + 78: uint16(28732), + 79: uint16(28733), + 80: uint16(28734), + 81: uint16(28735), + 82: uint16(28736), + 83: uint16(28737), + 84: uint16(28738), + 85: uint16(28739), + 86: uint16(28740), + 87: uint16(28741), + 88: uint16(28742), + 89: uint16(28743), + 90: uint16(28744), + 91: uint16(28745), + 92: uint16(28746), + 93: uint16(28747), + 94: uint16(28749), + 95: uint16(28750), + 96: uint16(28752), + 97: uint16(28753), + 98: uint16(28754), + 99: uint16(28755), + 100: uint16(28756), + 101: uint16(28757), + 102: uint16(28758), + 103: uint16(28759), + 104: uint16(28760), + 105: uint16(28761), + 106: uint16(28762), + 107: uint16(28763), + 108: uint16(28764), + 109: uint16(28765), + 110: uint16(28767), + 111: uint16(28768), + 112: uint16(28769), + 113: uint16(28770), + 114: uint16(28771), + 115: uint16(28772), + 116: uint16(28773), + 117: uint16(28774), + 118: uint16(28775), + 119: uint16(28776), + 120: uint16(28777), + 121: uint16(28778), + 122: uint16(28782), + 123: uint16(28785), + 124: uint16(28786), + 125: uint16(28787), + 126: uint16(28788), + 127: uint16(28791), + 128: uint16(28793), + 129: uint16(28794), + 130: uint16(28795), + 131: uint16(28797), + 132: uint16(28801), + 133: uint16(28802), + 134: uint16(28803), + 135: uint16(28804), + 136: uint16(28806), + 137: uint16(28807), + 138: uint16(28808), + 139: uint16(28811), + 140: uint16(28812), + 141: uint16(28813), + 142: uint16(28815), + 143: uint16(28816), + 144: uint16(28817), + 145: uint16(28819), + 146: uint16(28823), + 147: uint16(28824), + 148: uint16(28826), + 149: uint16(28827), + 150: uint16(28830), + 151: uint16(28831), + 152: uint16(28832), + 153: uint16(28833), + 154: uint16(28834), + 155: uint16(28835), + 156: uint16(28836), + 157: uint16(28837), + 158: uint16(28838), + 159: uint16(28839), + 160: uint16(28840), + 161: uint16(28841), + 162: uint16(28842), + 163: uint16(28848), + 164: uint16(28850), + 165: uint16(28852), + 166: uint16(28853), + 167: uint16(28854), + 168: uint16(28858), + 169: uint16(28862), + 170: uint16(28863), + 171: uint16(28868), + 172: uint16(28869), + 173: uint16(28870), + 174: uint16(28871), + 175: uint16(28873), + 176: uint16(28875), + 177: uint16(28876), + 178: uint16(28877), + 179: uint16(28878), + 180: uint16(28879), + 181: uint16(28880), + 182: uint16(28881), + 183: uint16(28882), + 184: uint16(28883), + 185: uint16(28884), + 186: uint16(28885), + 187: uint16(28886), + 188: uint16(28887), + 189: uint16(28890), + }, + 30: { + 0: uint16(28892), + 1: uint16(28893), + 2: uint16(28894), + 3: uint16(28896), + 4: uint16(28897), + 5: uint16(28898), + 6: uint16(28899), + 7: uint16(28901), + 8: uint16(28906), + 9: uint16(28910), + 10: uint16(28912), + 11: uint16(28913), + 12: uint16(28914), + 13: uint16(28915), + 14: uint16(28916), + 15: uint16(28917), + 16: uint16(28918), + 17: uint16(28920), + 18: uint16(28922), + 19: uint16(28923), + 20: uint16(28924), + 21: uint16(28926), + 22: uint16(28927), + 23: uint16(28928), + 24: uint16(28929), + 25: uint16(28930), + 26: uint16(28931), + 27: uint16(28932), + 28: uint16(28933), + 29: uint16(28934), + 30: uint16(28935), + 31: uint16(28936), + 32: uint16(28939), + 33: uint16(28940), + 34: uint16(28941), + 35: uint16(28942), + 36: uint16(28943), + 37: uint16(28945), + 38: uint16(28946), + 39: uint16(28948), + 40: uint16(28951), + 41: uint16(28955), + 42: uint16(28956), + 43: uint16(28957), + 44: uint16(28958), + 45: uint16(28959), + 46: uint16(28960), + 47: uint16(28961), + 48: uint16(28962), + 49: uint16(28963), + 50: uint16(28964), + 51: uint16(28965), + 52: uint16(28967), + 53: uint16(28968), + 54: uint16(28969), + 55: uint16(28970), + 56: uint16(28971), + 57: uint16(28972), + 58: uint16(28973), + 59: uint16(28974), + 60: uint16(28978), + 61: uint16(28979), + 62: uint16(28980), + 63: uint16(28981), + 64: uint16(28983), + 65: uint16(28984), + 66: uint16(28985), + 67: uint16(28986), + 68: uint16(28987), + 69: uint16(28988), + 70: uint16(28989), + 71: uint16(28990), + 72: uint16(28991), + 73: uint16(28992), + 74: uint16(28993), + 75: uint16(28994), + 76: uint16(28995), + 77: uint16(28996), + 78: uint16(28998), + 79: uint16(28999), + 80: uint16(29000), + 81: uint16(29001), + 82: uint16(29003), + 83: uint16(29005), + 84: uint16(29007), + 85: uint16(29008), + 86: uint16(29009), + 87: uint16(29010), + 88: uint16(29011), + 89: uint16(29012), + 90: uint16(29013), + 91: uint16(29014), + 92: uint16(29015), + 93: uint16(29016), + 94: uint16(29017), + 95: uint16(29018), + 96: uint16(29019), + 97: uint16(29021), + 98: uint16(29023), + 99: uint16(29024), + 100: uint16(29025), + 101: uint16(29026), + 102: uint16(29027), + 103: uint16(29029), + 104: uint16(29033), + 105: uint16(29034), + 106: uint16(29035), + 107: uint16(29036), + 108: uint16(29037), + 109: uint16(29039), + 110: uint16(29040), + 111: uint16(29041), + 112: uint16(29044), + 113: uint16(29045), + 114: uint16(29046), + 115: uint16(29047), + 116: uint16(29049), + 117: uint16(29051), + 118: uint16(29052), + 119: uint16(29054), + 120: uint16(29055), + 121: uint16(29056), + 122: uint16(29057), + 123: uint16(29058), + 124: uint16(29059), + 125: uint16(29061), + 126: uint16(29062), + 127: uint16(29063), + 128: uint16(29064), + 129: uint16(29065), + 130: uint16(29067), + 131: uint16(29068), + 132: uint16(29069), + 133: uint16(29070), + 134: uint16(29072), + 135: uint16(29073), + 136: uint16(29074), + 137: uint16(29075), + 138: uint16(29077), + 139: uint16(29078), + 140: uint16(29079), + 141: uint16(29082), + 142: uint16(29083), + 143: uint16(29084), + 144: uint16(29085), + 145: uint16(29086), + 146: uint16(29089), + 147: uint16(29090), + 148: uint16(29091), + 149: uint16(29092), + 150: uint16(29093), + 151: uint16(29094), + 152: uint16(29095), + 153: uint16(29097), + 154: uint16(29098), + 155: uint16(29099), + 156: uint16(29101), + 157: uint16(29102), + 158: uint16(29103), + 159: uint16(29104), + 160: uint16(29105), + 161: uint16(29106), + 162: uint16(29108), + 163: uint16(29110), + 164: uint16(29111), + 165: uint16(29112), + 166: uint16(29114), + 167: uint16(29115), + 168: uint16(29116), + 169: uint16(29117), + 170: uint16(29118), + 171: uint16(29119), + 172: uint16(29120), + 173: uint16(29121), + 174: uint16(29122), + 175: uint16(29124), + 176: uint16(29125), + 177: uint16(29126), + 178: uint16(29127), + 179: uint16(29128), + 180: uint16(29129), + 181: uint16(29130), + 182: uint16(29131), + 183: uint16(29132), + 184: uint16(29133), + 185: uint16(29135), + 186: uint16(29136), + 187: uint16(29137), + 188: uint16(29138), + 189: uint16(29139), + }, + 31: { + 0: uint16(29142), + 1: uint16(29143), + 2: uint16(29144), + 3: uint16(29145), + 4: uint16(29146), + 5: uint16(29147), + 6: uint16(29148), + 7: uint16(29149), + 8: uint16(29150), + 9: uint16(29151), + 10: uint16(29153), + 11: uint16(29154), + 12: uint16(29155), + 13: uint16(29156), + 14: uint16(29158), + 15: uint16(29160), + 16: uint16(29161), + 17: uint16(29162), + 18: uint16(29163), + 19: uint16(29164), + 20: uint16(29165), + 21: uint16(29167), + 22: uint16(29168), + 23: uint16(29169), + 24: uint16(29170), + 25: uint16(29171), + 26: uint16(29172), + 27: uint16(29173), + 28: uint16(29174), + 29: uint16(29175), + 30: uint16(29176), + 31: uint16(29178), + 32: uint16(29179), + 33: uint16(29180), + 34: uint16(29181), + 35: uint16(29182), + 36: uint16(29183), + 37: uint16(29184), + 38: uint16(29185), + 39: uint16(29186), + 40: uint16(29187), + 41: uint16(29188), + 42: uint16(29189), + 43: uint16(29191), + 44: uint16(29192), + 45: uint16(29193), + 46: uint16(29194), + 47: uint16(29195), + 48: uint16(29196), + 49: uint16(29197), + 50: uint16(29198), + 51: uint16(29199), + 52: uint16(29200), + 53: uint16(29201), + 54: uint16(29202), + 55: uint16(29203), + 56: uint16(29204), + 57: uint16(29205), + 58: uint16(29206), + 59: uint16(29207), + 60: uint16(29208), + 61: uint16(29209), + 62: uint16(29210), + 63: uint16(29211), + 64: uint16(29212), + 65: uint16(29214), + 66: uint16(29215), + 67: uint16(29216), + 68: uint16(29217), + 69: uint16(29218), + 70: uint16(29219), + 71: uint16(29220), + 72: uint16(29221), + 73: uint16(29222), + 74: uint16(29223), + 75: uint16(29225), + 76: uint16(29227), + 77: uint16(29229), + 78: uint16(29230), + 79: uint16(29231), + 80: uint16(29234), + 81: uint16(29235), + 82: uint16(29236), + 83: uint16(29242), + 84: uint16(29244), + 85: uint16(29246), + 86: uint16(29248), + 87: uint16(29249), + 88: uint16(29250), + 89: uint16(29251), + 90: uint16(29252), + 91: uint16(29253), + 92: uint16(29254), + 93: uint16(29257), + 94: uint16(29258), + 95: uint16(29259), + 96: uint16(29262), + 97: uint16(29263), + 98: uint16(29264), + 99: uint16(29265), + 100: uint16(29267), + 101: uint16(29268), + 102: uint16(29269), + 103: uint16(29271), + 104: uint16(29272), + 105: uint16(29274), + 106: uint16(29276), + 107: uint16(29278), + 108: uint16(29280), + 109: uint16(29283), + 110: uint16(29284), + 111: uint16(29285), + 112: uint16(29288), + 113: uint16(29290), + 114: uint16(29291), + 115: uint16(29292), + 116: uint16(29293), + 117: uint16(29296), + 118: uint16(29297), + 119: uint16(29299), + 120: uint16(29300), + 121: uint16(29302), + 122: uint16(29303), + 123: uint16(29304), + 124: uint16(29307), + 125: uint16(29308), + 126: uint16(29309), + 127: uint16(29314), + 128: uint16(29315), + 129: uint16(29317), + 130: uint16(29318), + 131: uint16(29319), + 132: uint16(29320), + 133: uint16(29321), + 134: uint16(29324), + 135: uint16(29326), + 136: uint16(29328), + 137: uint16(29329), + 138: uint16(29331), + 139: uint16(29332), + 140: uint16(29333), + 141: uint16(29334), + 142: uint16(29335), + 143: uint16(29336), + 144: uint16(29337), + 145: uint16(29338), + 146: uint16(29339), + 147: uint16(29340), + 148: uint16(29341), + 149: uint16(29342), + 150: uint16(29344), + 151: uint16(29345), + 152: uint16(29346), + 153: uint16(29347), + 154: uint16(29348), + 155: uint16(29349), + 156: uint16(29350), + 157: uint16(29351), + 158: uint16(29352), + 159: uint16(29353), + 160: uint16(29354), + 161: uint16(29355), + 162: uint16(29358), + 163: uint16(29361), + 164: uint16(29362), + 165: uint16(29363), + 166: uint16(29365), + 167: uint16(29370), + 168: uint16(29371), + 169: uint16(29372), + 170: uint16(29373), + 171: uint16(29374), + 172: uint16(29375), + 173: uint16(29376), + 174: uint16(29381), + 175: uint16(29382), + 176: uint16(29383), + 177: uint16(29385), + 178: uint16(29386), + 179: uint16(29387), + 180: uint16(29388), + 181: uint16(29391), + 182: uint16(29393), + 183: uint16(29395), + 184: uint16(29396), + 185: uint16(29397), + 186: uint16(29398), + 187: uint16(29400), + 188: uint16(29402), + 189: uint16(29403), + }, + 32: { + 0: uint16(58566), + 1: uint16(58567), + 2: uint16(58568), + 3: uint16(58569), + 4: uint16(58570), + 5: uint16(58571), + 6: uint16(58572), + 7: uint16(58573), + 8: uint16(58574), + 9: uint16(58575), + 10: uint16(58576), + 11: uint16(58577), + 12: uint16(58578), + 13: uint16(58579), + 14: uint16(58580), + 15: uint16(58581), + 16: uint16(58582), + 17: uint16(58583), + 18: uint16(58584), + 19: uint16(58585), + 20: uint16(58586), + 21: uint16(58587), + 22: uint16(58588), + 23: uint16(58589), + 24: uint16(58590), + 25: uint16(58591), + 26: uint16(58592), + 27: uint16(58593), + 28: uint16(58594), + 29: uint16(58595), + 30: uint16(58596), + 31: uint16(58597), + 32: uint16(58598), + 33: uint16(58599), + 34: uint16(58600), + 35: uint16(58601), + 36: uint16(58602), + 37: uint16(58603), + 38: uint16(58604), + 39: uint16(58605), + 40: uint16(58606), + 41: uint16(58607), + 42: uint16(58608), + 43: uint16(58609), + 44: uint16(58610), + 45: uint16(58611), + 46: uint16(58612), + 47: uint16(58613), + 48: uint16(58614), + 49: uint16(58615), + 50: uint16(58616), + 51: uint16(58617), + 52: uint16(58618), + 53: uint16(58619), + 54: uint16(58620), + 55: uint16(58621), + 56: uint16(58622), + 57: uint16(58623), + 58: uint16(58624), + 59: uint16(58625), + 60: uint16(58626), + 61: uint16(58627), + 62: uint16(58628), + 63: uint16(58629), + 64: uint16(58630), + 65: uint16(58631), + 66: uint16(58632), + 67: uint16(58633), + 68: uint16(58634), + 69: uint16(58635), + 70: uint16(58636), + 71: uint16(58637), + 72: uint16(58638), + 73: uint16(58639), + 74: uint16(58640), + 75: uint16(58641), + 76: uint16(58642), + 77: uint16(58643), + 78: uint16(58644), + 79: uint16(58645), + 80: uint16(58646), + 81: uint16(58647), + 82: uint16(58648), + 83: uint16(58649), + 84: uint16(58650), + 85: uint16(58651), + 86: uint16(58652), + 87: uint16(58653), + 88: uint16(58654), + 89: uint16(58655), + 90: uint16(58656), + 91: uint16(58657), + 92: uint16(58658), + 93: uint16(58659), + 94: uint16(58660), + 95: uint16(58661), + 96: uint16(12288), + 97: uint16(12289), + 98: uint16(12290), + 99: uint16(183), + 100: uint16(713), + 101: uint16(711), + 102: uint16(168), + 103: uint16(12291), + 104: uint16(12293), + 105: uint16(8212), + 106: uint16(65374), + 107: uint16(8214), + 108: uint16(8230), + 109: uint16(8216), + 110: uint16(8217), + 111: uint16(8220), + 112: uint16(8221), + 113: uint16(12308), + 114: uint16(12309), + 115: uint16(12296), + 116: uint16(12297), + 117: uint16(12298), + 118: uint16(12299), + 119: uint16(12300), + 120: uint16(12301), + 121: uint16(12302), + 122: uint16(12303), + 123: uint16(12310), + 124: uint16(12311), + 125: uint16(12304), + 126: uint16(12305), + 127: uint16(177), + 128: uint16(215), + 129: uint16(247), + 130: uint16(8758), + 131: uint16(8743), + 132: uint16(8744), + 133: uint16(8721), + 134: uint16(8719), + 135: uint16(8746), + 136: uint16(8745), + 137: uint16(8712), + 138: uint16(8759), + 139: uint16(8730), + 140: uint16(8869), + 141: uint16(8741), + 142: uint16(8736), + 143: uint16(8978), + 144: uint16(8857), + 145: uint16(8747), + 146: uint16(8750), + 147: uint16(8801), + 148: uint16(8780), + 149: uint16(8776), + 150: uint16(8765), + 151: uint16(8733), + 152: uint16(8800), + 153: uint16(8814), + 154: uint16(8815), + 155: uint16(8804), + 156: uint16(8805), + 157: uint16(8734), + 158: uint16(8757), + 159: uint16(8756), + 160: uint16(9794), + 161: uint16(9792), + 162: uint16(176), + 163: uint16(8242), + 164: uint16(8243), + 165: uint16(8451), + 166: uint16(65284), + 167: uint16(164), + 168: uint16(65504), + 169: uint16(65505), + 170: uint16(8240), + 171: uint16(167), + 172: uint16(8470), + 173: uint16(9734), + 174: uint16(9733), + 175: uint16(9675), + 176: uint16(9679), + 177: uint16(9678), + 178: uint16(9671), + 179: uint16(9670), + 180: uint16(9633), + 181: uint16(9632), + 182: uint16(9651), + 183: uint16(9650), + 184: uint16(8251), + 185: uint16(8594), + 186: uint16(8592), + 187: uint16(8593), + 188: uint16(8595), + 189: uint16(12307), + }, + 33: { + 0: uint16(58662), + 1: uint16(58663), + 2: uint16(58664), + 3: uint16(58665), + 4: uint16(58666), + 5: uint16(58667), + 6: uint16(58668), + 7: uint16(58669), + 8: uint16(58670), + 9: uint16(58671), + 10: uint16(58672), + 11: uint16(58673), + 12: uint16(58674), + 13: uint16(58675), + 14: uint16(58676), + 15: uint16(58677), + 16: uint16(58678), + 17: uint16(58679), + 18: uint16(58680), + 19: uint16(58681), + 20: uint16(58682), + 21: uint16(58683), + 22: uint16(58684), + 23: uint16(58685), + 24: uint16(58686), + 25: uint16(58687), + 26: uint16(58688), + 27: uint16(58689), + 28: uint16(58690), + 29: uint16(58691), + 30: uint16(58692), + 31: uint16(58693), + 32: uint16(58694), + 33: uint16(58695), + 34: uint16(58696), + 35: uint16(58697), + 36: uint16(58698), + 37: uint16(58699), + 38: uint16(58700), + 39: uint16(58701), + 40: uint16(58702), + 41: uint16(58703), + 42: uint16(58704), + 43: uint16(58705), + 44: uint16(58706), + 45: uint16(58707), + 46: uint16(58708), + 47: uint16(58709), + 48: uint16(58710), + 49: uint16(58711), + 50: uint16(58712), + 51: uint16(58713), + 52: uint16(58714), + 53: uint16(58715), + 54: uint16(58716), + 55: uint16(58717), + 56: uint16(58718), + 57: uint16(58719), + 58: uint16(58720), + 59: uint16(58721), + 60: uint16(58722), + 61: uint16(58723), + 62: uint16(58724), + 63: uint16(58725), + 64: uint16(58726), + 65: uint16(58727), + 66: uint16(58728), + 67: uint16(58729), + 68: uint16(58730), + 69: uint16(58731), + 70: uint16(58732), + 71: uint16(58733), + 72: uint16(58734), + 73: uint16(58735), + 74: uint16(58736), + 75: uint16(58737), + 76: uint16(58738), + 77: uint16(58739), + 78: uint16(58740), + 79: uint16(58741), + 80: uint16(58742), + 81: uint16(58743), + 82: uint16(58744), + 83: uint16(58745), + 84: uint16(58746), + 85: uint16(58747), + 86: uint16(58748), + 87: uint16(58749), + 88: uint16(58750), + 89: uint16(58751), + 90: uint16(58752), + 91: uint16(58753), + 92: uint16(58754), + 93: uint16(58755), + 94: uint16(58756), + 95: uint16(58757), + 96: uint16(8560), + 97: uint16(8561), + 98: uint16(8562), + 99: uint16(8563), + 100: uint16(8564), + 101: uint16(8565), + 102: uint16(8566), + 103: uint16(8567), + 104: uint16(8568), + 105: uint16(8569), + 106: uint16(59238), + 107: uint16(59239), + 108: uint16(59240), + 109: uint16(59241), + 110: uint16(59242), + 111: uint16(59243), + 112: uint16(9352), + 113: uint16(9353), + 114: uint16(9354), + 115: uint16(9355), + 116: uint16(9356), + 117: uint16(9357), + 118: uint16(9358), + 119: uint16(9359), + 120: uint16(9360), + 121: uint16(9361), + 122: uint16(9362), + 123: uint16(9363), + 124: uint16(9364), + 125: uint16(9365), + 126: uint16(9366), + 127: uint16(9367), + 128: uint16(9368), + 129: uint16(9369), + 130: uint16(9370), + 131: uint16(9371), + 132: uint16(9332), + 133: uint16(9333), + 134: uint16(9334), + 135: uint16(9335), + 136: uint16(9336), + 137: uint16(9337), + 138: uint16(9338), + 139: uint16(9339), + 140: uint16(9340), + 141: uint16(9341), + 142: uint16(9342), + 143: uint16(9343), + 144: uint16(9344), + 145: uint16(9345), + 146: uint16(9346), + 147: uint16(9347), + 148: uint16(9348), + 149: uint16(9349), + 150: uint16(9350), + 151: uint16(9351), + 152: uint16(9312), + 153: uint16(9313), + 154: uint16(9314), + 155: uint16(9315), + 156: uint16(9316), + 157: uint16(9317), + 158: uint16(9318), + 159: uint16(9319), + 160: uint16(9320), + 161: uint16(9321), + 162: uint16(8364), + 163: uint16(59245), + 164: uint16(12832), + 165: uint16(12833), + 166: uint16(12834), + 167: uint16(12835), + 168: uint16(12836), + 169: uint16(12837), + 170: uint16(12838), + 171: uint16(12839), + 172: uint16(12840), + 173: uint16(12841), + 174: uint16(59246), + 175: uint16(59247), + 176: uint16(8544), + 177: uint16(8545), + 178: uint16(8546), + 179: uint16(8547), + 180: uint16(8548), + 181: uint16(8549), + 182: uint16(8550), + 183: uint16(8551), + 184: uint16(8552), + 185: uint16(8553), + 186: uint16(8554), + 187: uint16(8555), + 188: uint16(59248), + 189: uint16(59249), + }, + 34: { + 0: uint16(58758), + 1: uint16(58759), + 2: uint16(58760), + 3: uint16(58761), + 4: uint16(58762), + 5: uint16(58763), + 6: uint16(58764), + 7: uint16(58765), + 8: uint16(58766), + 9: uint16(58767), + 10: uint16(58768), + 11: uint16(58769), + 12: uint16(58770), + 13: uint16(58771), + 14: uint16(58772), + 15: uint16(58773), + 16: uint16(58774), + 17: uint16(58775), + 18: uint16(58776), + 19: uint16(58777), + 20: uint16(58778), + 21: uint16(58779), + 22: uint16(58780), + 23: uint16(58781), + 24: uint16(58782), + 25: uint16(58783), + 26: uint16(58784), + 27: uint16(58785), + 28: uint16(58786), + 29: uint16(58787), + 30: uint16(58788), + 31: uint16(58789), + 32: uint16(58790), + 33: uint16(58791), + 34: uint16(58792), + 35: uint16(58793), + 36: uint16(58794), + 37: uint16(58795), + 38: uint16(58796), + 39: uint16(58797), + 40: uint16(58798), + 41: uint16(58799), + 42: uint16(58800), + 43: uint16(58801), + 44: uint16(58802), + 45: uint16(58803), + 46: uint16(58804), + 47: uint16(58805), + 48: uint16(58806), + 49: uint16(58807), + 50: uint16(58808), + 51: uint16(58809), + 52: uint16(58810), + 53: uint16(58811), + 54: uint16(58812), + 55: uint16(58813), + 56: uint16(58814), + 57: uint16(58815), + 58: uint16(58816), + 59: uint16(58817), + 60: uint16(58818), + 61: uint16(58819), + 62: uint16(58820), + 63: uint16(58821), + 64: uint16(58822), + 65: uint16(58823), + 66: uint16(58824), + 67: uint16(58825), + 68: uint16(58826), + 69: uint16(58827), + 70: uint16(58828), + 71: uint16(58829), + 72: uint16(58830), + 73: uint16(58831), + 74: uint16(58832), + 75: uint16(58833), + 76: uint16(58834), + 77: uint16(58835), + 78: uint16(58836), + 79: uint16(58837), + 80: uint16(58838), + 81: uint16(58839), + 82: uint16(58840), + 83: uint16(58841), + 84: uint16(58842), + 85: uint16(58843), + 86: uint16(58844), + 87: uint16(58845), + 88: uint16(58846), + 89: uint16(58847), + 90: uint16(58848), + 91: uint16(58849), + 92: uint16(58850), + 93: uint16(58851), + 94: uint16(58852), + 95: uint16(58853), + 96: uint16(65281), + 97: uint16(65282), + 98: uint16(65283), + 99: uint16(65509), + 100: uint16(65285), + 101: uint16(65286), + 102: uint16(65287), + 103: uint16(65288), + 104: uint16(65289), + 105: uint16(65290), + 106: uint16(65291), + 107: uint16(65292), + 108: uint16(65293), + 109: uint16(65294), + 110: uint16(65295), + 111: uint16(65296), + 112: uint16(65297), + 113: uint16(65298), + 114: uint16(65299), + 115: uint16(65300), + 116: uint16(65301), + 117: uint16(65302), + 118: uint16(65303), + 119: uint16(65304), + 120: uint16(65305), + 121: uint16(65306), + 122: uint16(65307), + 123: uint16(65308), + 124: uint16(65309), + 125: uint16(65310), + 126: uint16(65311), + 127: uint16(65312), + 128: uint16(65313), + 129: uint16(65314), + 130: uint16(65315), + 131: uint16(65316), + 132: uint16(65317), + 133: uint16(65318), + 134: uint16(65319), + 135: uint16(65320), + 136: uint16(65321), + 137: uint16(65322), + 138: uint16(65323), + 139: uint16(65324), + 140: uint16(65325), + 141: uint16(65326), + 142: uint16(65327), + 143: uint16(65328), + 144: uint16(65329), + 145: uint16(65330), + 146: uint16(65331), + 147: uint16(65332), + 148: uint16(65333), + 149: uint16(65334), + 150: uint16(65335), + 151: uint16(65336), + 152: uint16(65337), + 153: uint16(65338), + 154: uint16(65339), + 155: uint16(65340), + 156: uint16(65341), + 157: uint16(65342), + 158: uint16(65343), + 159: uint16(65344), + 160: uint16(65345), + 161: uint16(65346), + 162: uint16(65347), + 163: uint16(65348), + 164: uint16(65349), + 165: uint16(65350), + 166: uint16(65351), + 167: uint16(65352), + 168: uint16(65353), + 169: uint16(65354), + 170: uint16(65355), + 171: uint16(65356), + 172: uint16(65357), + 173: uint16(65358), + 174: uint16(65359), + 175: uint16(65360), + 176: uint16(65361), + 177: uint16(65362), + 178: uint16(65363), + 179: uint16(65364), + 180: uint16(65365), + 181: uint16(65366), + 182: uint16(65367), + 183: uint16(65368), + 184: uint16(65369), + 185: uint16(65370), + 186: uint16(65371), + 187: uint16(65372), + 188: uint16(65373), + 189: uint16(65507), + }, + 35: { + 0: uint16(58854), + 1: uint16(58855), + 2: uint16(58856), + 3: uint16(58857), + 4: uint16(58858), + 5: uint16(58859), + 6: uint16(58860), + 7: uint16(58861), + 8: uint16(58862), + 9: uint16(58863), + 10: uint16(58864), + 11: uint16(58865), + 12: uint16(58866), + 13: uint16(58867), + 14: uint16(58868), + 15: uint16(58869), + 16: uint16(58870), + 17: uint16(58871), + 18: uint16(58872), + 19: uint16(58873), + 20: uint16(58874), + 21: uint16(58875), + 22: uint16(58876), + 23: uint16(58877), + 24: uint16(58878), + 25: uint16(58879), + 26: uint16(58880), + 27: uint16(58881), + 28: uint16(58882), + 29: uint16(58883), + 30: uint16(58884), + 31: uint16(58885), + 32: uint16(58886), + 33: uint16(58887), + 34: uint16(58888), + 35: uint16(58889), + 36: uint16(58890), + 37: uint16(58891), + 38: uint16(58892), + 39: uint16(58893), + 40: uint16(58894), + 41: uint16(58895), + 42: uint16(58896), + 43: uint16(58897), + 44: uint16(58898), + 45: uint16(58899), + 46: uint16(58900), + 47: uint16(58901), + 48: uint16(58902), + 49: uint16(58903), + 50: uint16(58904), + 51: uint16(58905), + 52: uint16(58906), + 53: uint16(58907), + 54: uint16(58908), + 55: uint16(58909), + 56: uint16(58910), + 57: uint16(58911), + 58: uint16(58912), + 59: uint16(58913), + 60: uint16(58914), + 61: uint16(58915), + 62: uint16(58916), + 63: uint16(58917), + 64: uint16(58918), + 65: uint16(58919), + 66: uint16(58920), + 67: uint16(58921), + 68: uint16(58922), + 69: uint16(58923), + 70: uint16(58924), + 71: uint16(58925), + 72: uint16(58926), + 73: uint16(58927), + 74: uint16(58928), + 75: uint16(58929), + 76: uint16(58930), + 77: uint16(58931), + 78: uint16(58932), + 79: uint16(58933), + 80: uint16(58934), + 81: uint16(58935), + 82: uint16(58936), + 83: uint16(58937), + 84: uint16(58938), + 85: uint16(58939), + 86: uint16(58940), + 87: uint16(58941), + 88: uint16(58942), + 89: uint16(58943), + 90: uint16(58944), + 91: uint16(58945), + 92: uint16(58946), + 93: uint16(58947), + 94: uint16(58948), + 95: uint16(58949), + 96: uint16(12353), + 97: uint16(12354), + 98: uint16(12355), + 99: uint16(12356), + 100: uint16(12357), + 101: uint16(12358), + 102: uint16(12359), + 103: uint16(12360), + 104: uint16(12361), + 105: uint16(12362), + 106: uint16(12363), + 107: uint16(12364), + 108: uint16(12365), + 109: uint16(12366), + 110: uint16(12367), + 111: uint16(12368), + 112: uint16(12369), + 113: uint16(12370), + 114: uint16(12371), + 115: uint16(12372), + 116: uint16(12373), + 117: uint16(12374), + 118: uint16(12375), + 119: uint16(12376), + 120: uint16(12377), + 121: uint16(12378), + 122: uint16(12379), + 123: uint16(12380), + 124: uint16(12381), + 125: uint16(12382), + 126: uint16(12383), + 127: uint16(12384), + 128: uint16(12385), + 129: uint16(12386), + 130: uint16(12387), + 131: uint16(12388), + 132: uint16(12389), + 133: uint16(12390), + 134: uint16(12391), + 135: uint16(12392), + 136: uint16(12393), + 137: uint16(12394), + 138: uint16(12395), + 139: uint16(12396), + 140: uint16(12397), + 141: uint16(12398), + 142: uint16(12399), + 143: uint16(12400), + 144: uint16(12401), + 145: uint16(12402), + 146: uint16(12403), + 147: uint16(12404), + 148: uint16(12405), + 149: uint16(12406), + 150: uint16(12407), + 151: uint16(12408), + 152: uint16(12409), + 153: uint16(12410), + 154: uint16(12411), + 155: uint16(12412), + 156: uint16(12413), + 157: uint16(12414), + 158: uint16(12415), + 159: uint16(12416), + 160: uint16(12417), + 161: uint16(12418), + 162: uint16(12419), + 163: uint16(12420), + 164: uint16(12421), + 165: uint16(12422), + 166: uint16(12423), + 167: uint16(12424), + 168: uint16(12425), + 169: uint16(12426), + 170: uint16(12427), + 171: uint16(12428), + 172: uint16(12429), + 173: uint16(12430), + 174: uint16(12431), + 175: uint16(12432), + 176: uint16(12433), + 177: uint16(12434), + 178: uint16(12435), + 179: uint16(59250), + 180: uint16(59251), + 181: uint16(59252), + 182: uint16(59253), + 183: uint16(59254), + 184: uint16(59255), + 185: uint16(59256), + 186: uint16(59257), + 187: uint16(59258), + 188: uint16(59259), + 189: uint16(59260), + }, + 36: { + 0: uint16(58950), + 1: uint16(58951), + 2: uint16(58952), + 3: uint16(58953), + 4: uint16(58954), + 5: uint16(58955), + 6: uint16(58956), + 7: uint16(58957), + 8: uint16(58958), + 9: uint16(58959), + 10: uint16(58960), + 11: uint16(58961), + 12: uint16(58962), + 13: uint16(58963), + 14: uint16(58964), + 15: uint16(58965), + 16: uint16(58966), + 17: uint16(58967), + 18: uint16(58968), + 19: uint16(58969), + 20: uint16(58970), + 21: uint16(58971), + 22: uint16(58972), + 23: uint16(58973), + 24: uint16(58974), + 25: uint16(58975), + 26: uint16(58976), + 27: uint16(58977), + 28: uint16(58978), + 29: uint16(58979), + 30: uint16(58980), + 31: uint16(58981), + 32: uint16(58982), + 33: uint16(58983), + 34: uint16(58984), + 35: uint16(58985), + 36: uint16(58986), + 37: uint16(58987), + 38: uint16(58988), + 39: uint16(58989), + 40: uint16(58990), + 41: uint16(58991), + 42: uint16(58992), + 43: uint16(58993), + 44: uint16(58994), + 45: uint16(58995), + 46: uint16(58996), + 47: uint16(58997), + 48: uint16(58998), + 49: uint16(58999), + 50: uint16(59000), + 51: uint16(59001), + 52: uint16(59002), + 53: uint16(59003), + 54: uint16(59004), + 55: uint16(59005), + 56: uint16(59006), + 57: uint16(59007), + 58: uint16(59008), + 59: uint16(59009), + 60: uint16(59010), + 61: uint16(59011), + 62: uint16(59012), + 63: uint16(59013), + 64: uint16(59014), + 65: uint16(59015), + 66: uint16(59016), + 67: uint16(59017), + 68: uint16(59018), + 69: uint16(59019), + 70: uint16(59020), + 71: uint16(59021), + 72: uint16(59022), + 73: uint16(59023), + 74: uint16(59024), + 75: uint16(59025), + 76: uint16(59026), + 77: uint16(59027), + 78: uint16(59028), + 79: uint16(59029), + 80: uint16(59030), + 81: uint16(59031), + 82: uint16(59032), + 83: uint16(59033), + 84: uint16(59034), + 85: uint16(59035), + 86: uint16(59036), + 87: uint16(59037), + 88: uint16(59038), + 89: uint16(59039), + 90: uint16(59040), + 91: uint16(59041), + 92: uint16(59042), + 93: uint16(59043), + 94: uint16(59044), + 95: uint16(59045), + 96: uint16(12449), + 97: uint16(12450), + 98: uint16(12451), + 99: uint16(12452), + 100: uint16(12453), + 101: uint16(12454), + 102: uint16(12455), + 103: uint16(12456), + 104: uint16(12457), + 105: uint16(12458), + 106: uint16(12459), + 107: uint16(12460), + 108: uint16(12461), + 109: uint16(12462), + 110: uint16(12463), + 111: uint16(12464), + 112: uint16(12465), + 113: uint16(12466), + 114: uint16(12467), + 115: uint16(12468), + 116: uint16(12469), + 117: uint16(12470), + 118: uint16(12471), + 119: uint16(12472), + 120: uint16(12473), + 121: uint16(12474), + 122: uint16(12475), + 123: uint16(12476), + 124: uint16(12477), + 125: uint16(12478), + 126: uint16(12479), + 127: uint16(12480), + 128: uint16(12481), + 129: uint16(12482), + 130: uint16(12483), + 131: uint16(12484), + 132: uint16(12485), + 133: uint16(12486), + 134: uint16(12487), + 135: uint16(12488), + 136: uint16(12489), + 137: uint16(12490), + 138: uint16(12491), + 139: uint16(12492), + 140: uint16(12493), + 141: uint16(12494), + 142: uint16(12495), + 143: uint16(12496), + 144: uint16(12497), + 145: uint16(12498), + 146: uint16(12499), + 147: uint16(12500), + 148: uint16(12501), + 149: uint16(12502), + 150: uint16(12503), + 151: uint16(12504), + 152: uint16(12505), + 153: uint16(12506), + 154: uint16(12507), + 155: uint16(12508), + 156: uint16(12509), + 157: uint16(12510), + 158: uint16(12511), + 159: uint16(12512), + 160: uint16(12513), + 161: uint16(12514), + 162: uint16(12515), + 163: uint16(12516), + 164: uint16(12517), + 165: uint16(12518), + 166: uint16(12519), + 167: uint16(12520), + 168: uint16(12521), + 169: uint16(12522), + 170: uint16(12523), + 171: uint16(12524), + 172: uint16(12525), + 173: uint16(12526), + 174: uint16(12527), + 175: uint16(12528), + 176: uint16(12529), + 177: uint16(12530), + 178: uint16(12531), + 179: uint16(12532), + 180: uint16(12533), + 181: uint16(12534), + 182: uint16(59261), + 183: uint16(59262), + 184: uint16(59263), + 185: uint16(59264), + 186: uint16(59265), + 187: uint16(59266), + 188: uint16(59267), + 189: uint16(59268), + }, + 37: { + 0: uint16(59046), + 1: uint16(59047), + 2: uint16(59048), + 3: uint16(59049), + 4: uint16(59050), + 5: uint16(59051), + 6: uint16(59052), + 7: uint16(59053), + 8: uint16(59054), + 9: uint16(59055), + 10: uint16(59056), + 11: uint16(59057), + 12: uint16(59058), + 13: uint16(59059), + 14: uint16(59060), + 15: uint16(59061), + 16: uint16(59062), + 17: uint16(59063), + 18: uint16(59064), + 19: uint16(59065), + 20: uint16(59066), + 21: uint16(59067), + 22: uint16(59068), + 23: uint16(59069), + 24: uint16(59070), + 25: uint16(59071), + 26: uint16(59072), + 27: uint16(59073), + 28: uint16(59074), + 29: uint16(59075), + 30: uint16(59076), + 31: uint16(59077), + 32: uint16(59078), + 33: uint16(59079), + 34: uint16(59080), + 35: uint16(59081), + 36: uint16(59082), + 37: uint16(59083), + 38: uint16(59084), + 39: uint16(59085), + 40: uint16(59086), + 41: uint16(59087), + 42: uint16(59088), + 43: uint16(59089), + 44: uint16(59090), + 45: uint16(59091), + 46: uint16(59092), + 47: uint16(59093), + 48: uint16(59094), + 49: uint16(59095), + 50: uint16(59096), + 51: uint16(59097), + 52: uint16(59098), + 53: uint16(59099), + 54: uint16(59100), + 55: uint16(59101), + 56: uint16(59102), + 57: uint16(59103), + 58: uint16(59104), + 59: uint16(59105), + 60: uint16(59106), + 61: uint16(59107), + 62: uint16(59108), + 63: uint16(59109), + 64: uint16(59110), + 65: uint16(59111), + 66: uint16(59112), + 67: uint16(59113), + 68: uint16(59114), + 69: uint16(59115), + 70: uint16(59116), + 71: uint16(59117), + 72: uint16(59118), + 73: uint16(59119), + 74: uint16(59120), + 75: uint16(59121), + 76: uint16(59122), + 77: uint16(59123), + 78: uint16(59124), + 79: uint16(59125), + 80: uint16(59126), + 81: uint16(59127), + 82: uint16(59128), + 83: uint16(59129), + 84: uint16(59130), + 85: uint16(59131), + 86: uint16(59132), + 87: uint16(59133), + 88: uint16(59134), + 89: uint16(59135), + 90: uint16(59136), + 91: uint16(59137), + 92: uint16(59138), + 93: uint16(59139), + 94: uint16(59140), + 95: uint16(59141), + 96: uint16(913), + 97: uint16(914), + 98: uint16(915), + 99: uint16(916), + 100: uint16(917), + 101: uint16(918), + 102: uint16(919), + 103: uint16(920), + 104: uint16(921), + 105: uint16(922), + 106: uint16(923), + 107: uint16(924), + 108: uint16(925), + 109: uint16(926), + 110: uint16(927), + 111: uint16(928), + 112: uint16(929), + 113: uint16(931), + 114: uint16(932), + 115: uint16(933), + 116: uint16(934), + 117: uint16(935), + 118: uint16(936), + 119: uint16(937), + 120: uint16(59269), + 121: uint16(59270), + 122: uint16(59271), + 123: uint16(59272), + 124: uint16(59273), + 125: uint16(59274), + 126: uint16(59275), + 127: uint16(59276), + 128: uint16(945), + 129: uint16(946), + 130: uint16(947), + 131: uint16(948), + 132: uint16(949), + 133: uint16(950), + 134: uint16(951), + 135: uint16(952), + 136: uint16(953), + 137: uint16(954), + 138: uint16(955), + 139: uint16(956), + 140: uint16(957), + 141: uint16(958), + 142: uint16(959), + 143: uint16(960), + 144: uint16(961), + 145: uint16(963), + 146: uint16(964), + 147: uint16(965), + 148: uint16(966), + 149: uint16(967), + 150: uint16(968), + 151: uint16(969), + 152: uint16(59277), + 153: uint16(59278), + 154: uint16(59279), + 155: uint16(59280), + 156: uint16(59281), + 157: uint16(59282), + 158: uint16(59283), + 159: uint16(65077), + 160: uint16(65078), + 161: uint16(65081), + 162: uint16(65082), + 163: uint16(65087), + 164: uint16(65088), + 165: uint16(65085), + 166: uint16(65086), + 167: uint16(65089), + 168: uint16(65090), + 169: uint16(65091), + 170: uint16(65092), + 171: uint16(59284), + 172: uint16(59285), + 173: uint16(65083), + 174: uint16(65084), + 175: uint16(65079), + 176: uint16(65080), + 177: uint16(65073), + 178: uint16(59286), + 179: uint16(65075), + 180: uint16(65076), + 181: uint16(59287), + 182: uint16(59288), + 183: uint16(59289), + 184: uint16(59290), + 185: uint16(59291), + 186: uint16(59292), + 187: uint16(59293), + 188: uint16(59294), + 189: uint16(59295), + }, + 38: { + 0: uint16(59142), + 1: uint16(59143), + 2: uint16(59144), + 3: uint16(59145), + 4: uint16(59146), + 5: uint16(59147), + 6: uint16(59148), + 7: uint16(59149), + 8: uint16(59150), + 9: uint16(59151), + 10: uint16(59152), + 11: uint16(59153), + 12: uint16(59154), + 13: uint16(59155), + 14: uint16(59156), + 15: uint16(59157), + 16: uint16(59158), + 17: uint16(59159), + 18: uint16(59160), + 19: uint16(59161), + 20: uint16(59162), + 21: uint16(59163), + 22: uint16(59164), + 23: uint16(59165), + 24: uint16(59166), + 25: uint16(59167), + 26: uint16(59168), + 27: uint16(59169), + 28: uint16(59170), + 29: uint16(59171), + 30: uint16(59172), + 31: uint16(59173), + 32: uint16(59174), + 33: uint16(59175), + 34: uint16(59176), + 35: uint16(59177), + 36: uint16(59178), + 37: uint16(59179), + 38: uint16(59180), + 39: uint16(59181), + 40: uint16(59182), + 41: uint16(59183), + 42: uint16(59184), + 43: uint16(59185), + 44: uint16(59186), + 45: uint16(59187), + 46: uint16(59188), + 47: uint16(59189), + 48: uint16(59190), + 49: uint16(59191), + 50: uint16(59192), + 51: uint16(59193), + 52: uint16(59194), + 53: uint16(59195), + 54: uint16(59196), + 55: uint16(59197), + 56: uint16(59198), + 57: uint16(59199), + 58: uint16(59200), + 59: uint16(59201), + 60: uint16(59202), + 61: uint16(59203), + 62: uint16(59204), + 63: uint16(59205), + 64: uint16(59206), + 65: uint16(59207), + 66: uint16(59208), + 67: uint16(59209), + 68: uint16(59210), + 69: uint16(59211), + 70: uint16(59212), + 71: uint16(59213), + 72: uint16(59214), + 73: uint16(59215), + 74: uint16(59216), + 75: uint16(59217), + 76: uint16(59218), + 77: uint16(59219), + 78: uint16(59220), + 79: uint16(59221), + 80: uint16(59222), + 81: uint16(59223), + 82: uint16(59224), + 83: uint16(59225), + 84: uint16(59226), + 85: uint16(59227), + 86: uint16(59228), + 87: uint16(59229), + 88: uint16(59230), + 89: uint16(59231), + 90: uint16(59232), + 91: uint16(59233), + 92: uint16(59234), + 93: uint16(59235), + 94: uint16(59236), + 95: uint16(59237), + 96: uint16(1040), + 97: uint16(1041), + 98: uint16(1042), + 99: uint16(1043), + 100: uint16(1044), + 101: uint16(1045), + 102: uint16(1025), + 103: uint16(1046), + 104: uint16(1047), + 105: uint16(1048), + 106: uint16(1049), + 107: uint16(1050), + 108: uint16(1051), + 109: uint16(1052), + 110: uint16(1053), + 111: uint16(1054), + 112: uint16(1055), + 113: uint16(1056), + 114: uint16(1057), + 115: uint16(1058), + 116: uint16(1059), + 117: uint16(1060), + 118: uint16(1061), + 119: uint16(1062), + 120: uint16(1063), + 121: uint16(1064), + 122: uint16(1065), + 123: uint16(1066), + 124: uint16(1067), + 125: uint16(1068), + 126: uint16(1069), + 127: uint16(1070), + 128: uint16(1071), + 129: uint16(59296), + 130: uint16(59297), + 131: uint16(59298), + 132: uint16(59299), + 133: uint16(59300), + 134: uint16(59301), + 135: uint16(59302), + 136: uint16(59303), + 137: uint16(59304), + 138: uint16(59305), + 139: uint16(59306), + 140: uint16(59307), + 141: uint16(59308), + 142: uint16(59309), + 143: uint16(59310), + 144: uint16(1072), + 145: uint16(1073), + 146: uint16(1074), + 147: uint16(1075), + 148: uint16(1076), + 149: uint16(1077), + 150: uint16(1105), + 151: uint16(1078), + 152: uint16(1079), + 153: uint16(1080), + 154: uint16(1081), + 155: uint16(1082), + 156: uint16(1083), + 157: uint16(1084), + 158: uint16(1085), + 159: uint16(1086), + 160: uint16(1087), + 161: uint16(1088), + 162: uint16(1089), + 163: uint16(1090), + 164: uint16(1091), + 165: uint16(1092), + 166: uint16(1093), + 167: uint16(1094), + 168: uint16(1095), + 169: uint16(1096), + 170: uint16(1097), + 171: uint16(1098), + 172: uint16(1099), + 173: uint16(1100), + 174: uint16(1101), + 175: uint16(1102), + 176: uint16(1103), + 177: uint16(59311), + 178: uint16(59312), + 179: uint16(59313), + 180: uint16(59314), + 181: uint16(59315), + 182: uint16(59316), + 183: uint16(59317), + 184: uint16(59318), + 185: uint16(59319), + 186: uint16(59320), + 187: uint16(59321), + 188: uint16(59322), + 189: uint16(59323), + }, + 39: { + 0: uint16(714), + 1: uint16(715), + 2: uint16(729), + 3: uint16(8211), + 4: uint16(8213), + 5: uint16(8229), + 6: uint16(8245), + 7: uint16(8453), + 8: uint16(8457), + 9: uint16(8598), + 10: uint16(8599), + 11: uint16(8600), + 12: uint16(8601), + 13: uint16(8725), + 14: uint16(8735), + 15: uint16(8739), + 16: uint16(8786), + 17: uint16(8806), + 18: uint16(8807), + 19: uint16(8895), + 20: uint16(9552), + 21: uint16(9553), + 22: uint16(9554), + 23: uint16(9555), + 24: uint16(9556), + 25: uint16(9557), + 26: uint16(9558), + 27: uint16(9559), + 28: uint16(9560), + 29: uint16(9561), + 30: uint16(9562), + 31: uint16(9563), + 32: uint16(9564), + 33: uint16(9565), + 34: uint16(9566), + 35: uint16(9567), + 36: uint16(9568), + 37: uint16(9569), + 38: uint16(9570), + 39: uint16(9571), + 40: uint16(9572), + 41: uint16(9573), + 42: uint16(9574), + 43: uint16(9575), + 44: uint16(9576), + 45: uint16(9577), + 46: uint16(9578), + 47: uint16(9579), + 48: uint16(9580), + 49: uint16(9581), + 50: uint16(9582), + 51: uint16(9583), + 52: uint16(9584), + 53: uint16(9585), + 54: uint16(9586), + 55: uint16(9587), + 56: uint16(9601), + 57: uint16(9602), + 58: uint16(9603), + 59: uint16(9604), + 60: uint16(9605), + 61: uint16(9606), + 62: uint16(9607), + 63: uint16(9608), + 64: uint16(9609), + 65: uint16(9610), + 66: uint16(9611), + 67: uint16(9612), + 68: uint16(9613), + 69: uint16(9614), + 70: uint16(9615), + 71: uint16(9619), + 72: uint16(9620), + 73: uint16(9621), + 74: uint16(9660), + 75: uint16(9661), + 76: uint16(9698), + 77: uint16(9699), + 78: uint16(9700), + 79: uint16(9701), + 80: uint16(9737), + 81: uint16(8853), + 82: uint16(12306), + 83: uint16(12317), + 84: uint16(12318), + 85: uint16(59324), + 86: uint16(59325), + 87: uint16(59326), + 88: uint16(59327), + 89: uint16(59328), + 90: uint16(59329), + 91: uint16(59330), + 92: uint16(59331), + 93: uint16(59332), + 94: uint16(59333), + 95: uint16(59334), + 96: uint16(257), + 97: uint16(225), + 98: uint16(462), + 99: uint16(224), + 100: uint16(275), + 101: uint16(233), + 102: uint16(283), + 103: uint16(232), + 104: uint16(299), + 105: uint16(237), + 106: uint16(464), + 107: uint16(236), + 108: uint16(333), + 109: uint16(243), + 110: uint16(466), + 111: uint16(242), + 112: uint16(363), + 113: uint16(250), + 114: uint16(468), + 115: uint16(249), + 116: uint16(470), + 117: uint16(472), + 118: uint16(474), + 119: uint16(476), + 120: uint16(252), + 121: uint16(234), + 122: uint16(593), + 123: uint16(59335), + 124: uint16(324), + 125: uint16(328), + 126: uint16(505), + 127: uint16(609), + 128: uint16(59337), + 129: uint16(59338), + 130: uint16(59339), + 131: uint16(59340), + 132: uint16(12549), + 133: uint16(12550), + 134: uint16(12551), + 135: uint16(12552), + 136: uint16(12553), + 137: uint16(12554), + 138: uint16(12555), + 139: uint16(12556), + 140: uint16(12557), + 141: uint16(12558), + 142: uint16(12559), + 143: uint16(12560), + 144: uint16(12561), + 145: uint16(12562), + 146: uint16(12563), + 147: uint16(12564), + 148: uint16(12565), + 149: uint16(12566), + 150: uint16(12567), + 151: uint16(12568), + 152: uint16(12569), + 153: uint16(12570), + 154: uint16(12571), + 155: uint16(12572), + 156: uint16(12573), + 157: uint16(12574), + 158: uint16(12575), + 159: uint16(12576), + 160: uint16(12577), + 161: uint16(12578), + 162: uint16(12579), + 163: uint16(12580), + 164: uint16(12581), + 165: uint16(12582), + 166: uint16(12583), + 167: uint16(12584), + 168: uint16(12585), + 169: uint16(59341), + 170: uint16(59342), + 171: uint16(59343), + 172: uint16(59344), + 173: uint16(59345), + 174: uint16(59346), + 175: uint16(59347), + 176: uint16(59348), + 177: uint16(59349), + 178: uint16(59350), + 179: uint16(59351), + 180: uint16(59352), + 181: uint16(59353), + 182: uint16(59354), + 183: uint16(59355), + 184: uint16(59356), + 185: uint16(59357), + 186: uint16(59358), + 187: uint16(59359), + 188: uint16(59360), + 189: uint16(59361), + }, + 40: { + 0: uint16(12321), + 1: uint16(12322), + 2: uint16(12323), + 3: uint16(12324), + 4: uint16(12325), + 5: uint16(12326), + 6: uint16(12327), + 7: uint16(12328), + 8: uint16(12329), + 9: uint16(12963), + 10: uint16(13198), + 11: uint16(13199), + 12: uint16(13212), + 13: uint16(13213), + 14: uint16(13214), + 15: uint16(13217), + 16: uint16(13252), + 17: uint16(13262), + 18: uint16(13265), + 19: uint16(13266), + 20: uint16(13269), + 21: uint16(65072), + 22: uint16(65506), + 23: uint16(65508), + 24: uint16(59362), + 25: uint16(8481), + 26: uint16(12849), + 27: uint16(59363), + 28: uint16(8208), + 29: uint16(59364), + 30: uint16(59365), + 31: uint16(59366), + 32: uint16(12540), + 33: uint16(12443), + 34: uint16(12444), + 35: uint16(12541), + 36: uint16(12542), + 37: uint16(12294), + 38: uint16(12445), + 39: uint16(12446), + 40: uint16(65097), + 41: uint16(65098), + 42: uint16(65099), + 43: uint16(65100), + 44: uint16(65101), + 45: uint16(65102), + 46: uint16(65103), + 47: uint16(65104), + 48: uint16(65105), + 49: uint16(65106), + 50: uint16(65108), + 51: uint16(65109), + 52: uint16(65110), + 53: uint16(65111), + 54: uint16(65113), + 55: uint16(65114), + 56: uint16(65115), + 57: uint16(65116), + 58: uint16(65117), + 59: uint16(65118), + 60: uint16(65119), + 61: uint16(65120), + 62: uint16(65121), + 63: uint16(65122), + 64: uint16(65123), + 65: uint16(65124), + 66: uint16(65125), + 67: uint16(65126), + 68: uint16(65128), + 69: uint16(65129), + 70: uint16(65130), + 71: uint16(65131), + 72: uint16(12350), + 73: uint16(12272), + 74: uint16(12273), + 75: uint16(12274), + 76: uint16(12275), + 77: uint16(12276), + 78: uint16(12277), + 79: uint16(12278), + 80: uint16(12279), + 81: uint16(12280), + 82: uint16(12281), + 83: uint16(12282), + 84: uint16(12283), + 85: uint16(12295), + 86: uint16(59380), + 87: uint16(59381), + 88: uint16(59382), + 89: uint16(59383), + 90: uint16(59384), + 91: uint16(59385), + 92: uint16(59386), + 93: uint16(59387), + 94: uint16(59388), + 95: uint16(59389), + 96: uint16(59390), + 97: uint16(59391), + 98: uint16(59392), + 99: uint16(9472), + 100: uint16(9473), + 101: uint16(9474), + 102: uint16(9475), + 103: uint16(9476), + 104: uint16(9477), + 105: uint16(9478), + 106: uint16(9479), + 107: uint16(9480), + 108: uint16(9481), + 109: uint16(9482), + 110: uint16(9483), + 111: uint16(9484), + 112: uint16(9485), + 113: uint16(9486), + 114: uint16(9487), + 115: uint16(9488), + 116: uint16(9489), + 117: uint16(9490), + 118: uint16(9491), + 119: uint16(9492), + 120: uint16(9493), + 121: uint16(9494), + 122: uint16(9495), + 123: uint16(9496), + 124: uint16(9497), + 125: uint16(9498), + 126: uint16(9499), + 127: uint16(9500), + 128: uint16(9501), + 129: uint16(9502), + 130: uint16(9503), + 131: uint16(9504), + 132: uint16(9505), + 133: uint16(9506), + 134: uint16(9507), + 135: uint16(9508), + 136: uint16(9509), + 137: uint16(9510), + 138: uint16(9511), + 139: uint16(9512), + 140: uint16(9513), + 141: uint16(9514), + 142: uint16(9515), + 143: uint16(9516), + 144: uint16(9517), + 145: uint16(9518), + 146: uint16(9519), + 147: uint16(9520), + 148: uint16(9521), + 149: uint16(9522), + 150: uint16(9523), + 151: uint16(9524), + 152: uint16(9525), + 153: uint16(9526), + 154: uint16(9527), + 155: uint16(9528), + 156: uint16(9529), + 157: uint16(9530), + 158: uint16(9531), + 159: uint16(9532), + 160: uint16(9533), + 161: uint16(9534), + 162: uint16(9535), + 163: uint16(9536), + 164: uint16(9537), + 165: uint16(9538), + 166: uint16(9539), + 167: uint16(9540), + 168: uint16(9541), + 169: uint16(9542), + 170: uint16(9543), + 171: uint16(9544), + 172: uint16(9545), + 173: uint16(9546), + 174: uint16(9547), + 175: uint16(59393), + 176: uint16(59394), + 177: uint16(59395), + 178: uint16(59396), + 179: uint16(59397), + 180: uint16(59398), + 181: uint16(59399), + 182: uint16(59400), + 183: uint16(59401), + 184: uint16(59402), + 185: uint16(59403), + 186: uint16(59404), + 187: uint16(59405), + 188: uint16(59406), + 189: uint16(59407), + }, + 41: { + 0: uint16(29404), + 1: uint16(29405), + 2: uint16(29407), + 3: uint16(29410), + 4: uint16(29411), + 5: uint16(29412), + 6: uint16(29413), + 7: uint16(29414), + 8: uint16(29415), + 9: uint16(29418), + 10: uint16(29419), + 11: uint16(29429), + 12: uint16(29430), + 13: uint16(29433), + 14: uint16(29437), + 15: uint16(29438), + 16: uint16(29439), + 17: uint16(29440), + 18: uint16(29442), + 19: uint16(29444), + 20: uint16(29445), + 21: uint16(29446), + 22: uint16(29447), + 23: uint16(29448), + 24: uint16(29449), + 25: uint16(29451), + 26: uint16(29452), + 27: uint16(29453), + 28: uint16(29455), + 29: uint16(29456), + 30: uint16(29457), + 31: uint16(29458), + 32: uint16(29460), + 33: uint16(29464), + 34: uint16(29465), + 35: uint16(29466), + 36: uint16(29471), + 37: uint16(29472), + 38: uint16(29475), + 39: uint16(29476), + 40: uint16(29478), + 41: uint16(29479), + 42: uint16(29480), + 43: uint16(29485), + 44: uint16(29487), + 45: uint16(29488), + 46: uint16(29490), + 47: uint16(29491), + 48: uint16(29493), + 49: uint16(29494), + 50: uint16(29498), + 51: uint16(29499), + 52: uint16(29500), + 53: uint16(29501), + 54: uint16(29504), + 55: uint16(29505), + 56: uint16(29506), + 57: uint16(29507), + 58: uint16(29508), + 59: uint16(29509), + 60: uint16(29510), + 61: uint16(29511), + 62: uint16(29512), + 63: uint16(29513), + 64: uint16(29514), + 65: uint16(29515), + 66: uint16(29516), + 67: uint16(29518), + 68: uint16(29519), + 69: uint16(29521), + 70: uint16(29523), + 71: uint16(29524), + 72: uint16(29525), + 73: uint16(29526), + 74: uint16(29528), + 75: uint16(29529), + 76: uint16(29530), + 77: uint16(29531), + 78: uint16(29532), + 79: uint16(29533), + 80: uint16(29534), + 81: uint16(29535), + 82: uint16(29537), + 83: uint16(29538), + 84: uint16(29539), + 85: uint16(29540), + 86: uint16(29541), + 87: uint16(29542), + 88: uint16(29543), + 89: uint16(29544), + 90: uint16(29545), + 91: uint16(29546), + 92: uint16(29547), + 93: uint16(29550), + 94: uint16(29552), + 95: uint16(29553), + 96: uint16(57344), + 97: uint16(57345), + 98: uint16(57346), + 99: uint16(57347), + 100: uint16(57348), + 101: uint16(57349), + 102: uint16(57350), + 103: uint16(57351), + 104: uint16(57352), + 105: uint16(57353), + 106: uint16(57354), + 107: uint16(57355), + 108: uint16(57356), + 109: uint16(57357), + 110: uint16(57358), + 111: uint16(57359), + 112: uint16(57360), + 113: uint16(57361), + 114: uint16(57362), + 115: uint16(57363), + 116: uint16(57364), + 117: uint16(57365), + 118: uint16(57366), + 119: uint16(57367), + 120: uint16(57368), + 121: uint16(57369), + 122: uint16(57370), + 123: uint16(57371), + 124: uint16(57372), + 125: uint16(57373), + 126: uint16(57374), + 127: uint16(57375), + 128: uint16(57376), + 129: uint16(57377), + 130: uint16(57378), + 131: uint16(57379), + 132: uint16(57380), + 133: uint16(57381), + 134: uint16(57382), + 135: uint16(57383), + 136: uint16(57384), + 137: uint16(57385), + 138: uint16(57386), + 139: uint16(57387), + 140: uint16(57388), + 141: uint16(57389), + 142: uint16(57390), + 143: uint16(57391), + 144: uint16(57392), + 145: uint16(57393), + 146: uint16(57394), + 147: uint16(57395), + 148: uint16(57396), + 149: uint16(57397), + 150: uint16(57398), + 151: uint16(57399), + 152: uint16(57400), + 153: uint16(57401), + 154: uint16(57402), + 155: uint16(57403), + 156: uint16(57404), + 157: uint16(57405), + 158: uint16(57406), + 159: uint16(57407), + 160: uint16(57408), + 161: uint16(57409), + 162: uint16(57410), + 163: uint16(57411), + 164: uint16(57412), + 165: uint16(57413), + 166: uint16(57414), + 167: uint16(57415), + 168: uint16(57416), + 169: uint16(57417), + 170: uint16(57418), + 171: uint16(57419), + 172: uint16(57420), + 173: uint16(57421), + 174: uint16(57422), + 175: uint16(57423), + 176: uint16(57424), + 177: uint16(57425), + 178: uint16(57426), + 179: uint16(57427), + 180: uint16(57428), + 181: uint16(57429), + 182: uint16(57430), + 183: uint16(57431), + 184: uint16(57432), + 185: uint16(57433), + 186: uint16(57434), + 187: uint16(57435), + 188: uint16(57436), + 189: uint16(57437), + }, + 42: { + 0: uint16(29554), + 1: uint16(29555), + 2: uint16(29556), + 3: uint16(29557), + 4: uint16(29558), + 5: uint16(29559), + 6: uint16(29560), + 7: uint16(29561), + 8: uint16(29562), + 9: uint16(29563), + 10: uint16(29564), + 11: uint16(29565), + 12: uint16(29567), + 13: uint16(29568), + 14: uint16(29569), + 15: uint16(29570), + 16: uint16(29571), + 17: uint16(29573), + 18: uint16(29574), + 19: uint16(29576), + 20: uint16(29578), + 21: uint16(29580), + 22: uint16(29581), + 23: uint16(29583), + 24: uint16(29584), + 25: uint16(29586), + 26: uint16(29587), + 27: uint16(29588), + 28: uint16(29589), + 29: uint16(29591), + 30: uint16(29592), + 31: uint16(29593), + 32: uint16(29594), + 33: uint16(29596), + 34: uint16(29597), + 35: uint16(29598), + 36: uint16(29600), + 37: uint16(29601), + 38: uint16(29603), + 39: uint16(29604), + 40: uint16(29605), + 41: uint16(29606), + 42: uint16(29607), + 43: uint16(29608), + 44: uint16(29610), + 45: uint16(29612), + 46: uint16(29613), + 47: uint16(29617), + 48: uint16(29620), + 49: uint16(29621), + 50: uint16(29622), + 51: uint16(29624), + 52: uint16(29625), + 53: uint16(29628), + 54: uint16(29629), + 55: uint16(29630), + 56: uint16(29631), + 57: uint16(29633), + 58: uint16(29635), + 59: uint16(29636), + 60: uint16(29637), + 61: uint16(29638), + 62: uint16(29639), + 63: uint16(29643), + 64: uint16(29644), + 65: uint16(29646), + 66: uint16(29650), + 67: uint16(29651), + 68: uint16(29652), + 69: uint16(29653), + 70: uint16(29654), + 71: uint16(29655), + 72: uint16(29656), + 73: uint16(29658), + 74: uint16(29659), + 75: uint16(29660), + 76: uint16(29661), + 77: uint16(29663), + 78: uint16(29665), + 79: uint16(29666), + 80: uint16(29667), + 81: uint16(29668), + 82: uint16(29670), + 83: uint16(29672), + 84: uint16(29674), + 85: uint16(29675), + 86: uint16(29676), + 87: uint16(29678), + 88: uint16(29679), + 89: uint16(29680), + 90: uint16(29681), + 91: uint16(29683), + 92: uint16(29684), + 93: uint16(29685), + 94: uint16(29686), + 95: uint16(29687), + 96: uint16(57438), + 97: uint16(57439), + 98: uint16(57440), + 99: uint16(57441), + 100: uint16(57442), + 101: uint16(57443), + 102: uint16(57444), + 103: uint16(57445), + 104: uint16(57446), + 105: uint16(57447), + 106: uint16(57448), + 107: uint16(57449), + 108: uint16(57450), + 109: uint16(57451), + 110: uint16(57452), + 111: uint16(57453), + 112: uint16(57454), + 113: uint16(57455), + 114: uint16(57456), + 115: uint16(57457), + 116: uint16(57458), + 117: uint16(57459), + 118: uint16(57460), + 119: uint16(57461), + 120: uint16(57462), + 121: uint16(57463), + 122: uint16(57464), + 123: uint16(57465), + 124: uint16(57466), + 125: uint16(57467), + 126: uint16(57468), + 127: uint16(57469), + 128: uint16(57470), + 129: uint16(57471), + 130: uint16(57472), + 131: uint16(57473), + 132: uint16(57474), + 133: uint16(57475), + 134: uint16(57476), + 135: uint16(57477), + 136: uint16(57478), + 137: uint16(57479), + 138: uint16(57480), + 139: uint16(57481), + 140: uint16(57482), + 141: uint16(57483), + 142: uint16(57484), + 143: uint16(57485), + 144: uint16(57486), + 145: uint16(57487), + 146: uint16(57488), + 147: uint16(57489), + 148: uint16(57490), + 149: uint16(57491), + 150: uint16(57492), + 151: uint16(57493), + 152: uint16(57494), + 153: uint16(57495), + 154: uint16(57496), + 155: uint16(57497), + 156: uint16(57498), + 157: uint16(57499), + 158: uint16(57500), + 159: uint16(57501), + 160: uint16(57502), + 161: uint16(57503), + 162: uint16(57504), + 163: uint16(57505), + 164: uint16(57506), + 165: uint16(57507), + 166: uint16(57508), + 167: uint16(57509), + 168: uint16(57510), + 169: uint16(57511), + 170: uint16(57512), + 171: uint16(57513), + 172: uint16(57514), + 173: uint16(57515), + 174: uint16(57516), + 175: uint16(57517), + 176: uint16(57518), + 177: uint16(57519), + 178: uint16(57520), + 179: uint16(57521), + 180: uint16(57522), + 181: uint16(57523), + 182: uint16(57524), + 183: uint16(57525), + 184: uint16(57526), + 185: uint16(57527), + 186: uint16(57528), + 187: uint16(57529), + 188: uint16(57530), + 189: uint16(57531), + }, + 43: { + 0: uint16(29688), + 1: uint16(29689), + 2: uint16(29690), + 3: uint16(29691), + 4: uint16(29692), + 5: uint16(29693), + 6: uint16(29694), + 7: uint16(29695), + 8: uint16(29696), + 9: uint16(29697), + 10: uint16(29698), + 11: uint16(29700), + 12: uint16(29703), + 13: uint16(29704), + 14: uint16(29707), + 15: uint16(29708), + 16: uint16(29709), + 17: uint16(29710), + 18: uint16(29713), + 19: uint16(29714), + 20: uint16(29715), + 21: uint16(29716), + 22: uint16(29717), + 23: uint16(29718), + 24: uint16(29719), + 25: uint16(29720), + 26: uint16(29721), + 27: uint16(29724), + 28: uint16(29725), + 29: uint16(29726), + 30: uint16(29727), + 31: uint16(29728), + 32: uint16(29729), + 33: uint16(29731), + 34: uint16(29732), + 35: uint16(29735), + 36: uint16(29737), + 37: uint16(29739), + 38: uint16(29741), + 39: uint16(29743), + 40: uint16(29745), + 41: uint16(29746), + 42: uint16(29751), + 43: uint16(29752), + 44: uint16(29753), + 45: uint16(29754), + 46: uint16(29755), + 47: uint16(29757), + 48: uint16(29758), + 49: uint16(29759), + 50: uint16(29760), + 51: uint16(29762), + 52: uint16(29763), + 53: uint16(29764), + 54: uint16(29765), + 55: uint16(29766), + 56: uint16(29767), + 57: uint16(29768), + 58: uint16(29769), + 59: uint16(29770), + 60: uint16(29771), + 61: uint16(29772), + 62: uint16(29773), + 63: uint16(29774), + 64: uint16(29775), + 65: uint16(29776), + 66: uint16(29777), + 67: uint16(29778), + 68: uint16(29779), + 69: uint16(29780), + 70: uint16(29782), + 71: uint16(29784), + 72: uint16(29789), + 73: uint16(29792), + 74: uint16(29793), + 75: uint16(29794), + 76: uint16(29795), + 77: uint16(29796), + 78: uint16(29797), + 79: uint16(29798), + 80: uint16(29799), + 81: uint16(29800), + 82: uint16(29801), + 83: uint16(29802), + 84: uint16(29803), + 85: uint16(29804), + 86: uint16(29806), + 87: uint16(29807), + 88: uint16(29809), + 89: uint16(29810), + 90: uint16(29811), + 91: uint16(29812), + 92: uint16(29813), + 93: uint16(29816), + 94: uint16(29817), + 95: uint16(29818), + 96: uint16(57532), + 97: uint16(57533), + 98: uint16(57534), + 99: uint16(57535), + 100: uint16(57536), + 101: uint16(57537), + 102: uint16(57538), + 103: uint16(57539), + 104: uint16(57540), + 105: uint16(57541), + 106: uint16(57542), + 107: uint16(57543), + 108: uint16(57544), + 109: uint16(57545), + 110: uint16(57546), + 111: uint16(57547), + 112: uint16(57548), + 113: uint16(57549), + 114: uint16(57550), + 115: uint16(57551), + 116: uint16(57552), + 117: uint16(57553), + 118: uint16(57554), + 119: uint16(57555), + 120: uint16(57556), + 121: uint16(57557), + 122: uint16(57558), + 123: uint16(57559), + 124: uint16(57560), + 125: uint16(57561), + 126: uint16(57562), + 127: uint16(57563), + 128: uint16(57564), + 129: uint16(57565), + 130: uint16(57566), + 131: uint16(57567), + 132: uint16(57568), + 133: uint16(57569), + 134: uint16(57570), + 135: uint16(57571), + 136: uint16(57572), + 137: uint16(57573), + 138: uint16(57574), + 139: uint16(57575), + 140: uint16(57576), + 141: uint16(57577), + 142: uint16(57578), + 143: uint16(57579), + 144: uint16(57580), + 145: uint16(57581), + 146: uint16(57582), + 147: uint16(57583), + 148: uint16(57584), + 149: uint16(57585), + 150: uint16(57586), + 151: uint16(57587), + 152: uint16(57588), + 153: uint16(57589), + 154: uint16(57590), + 155: uint16(57591), + 156: uint16(57592), + 157: uint16(57593), + 158: uint16(57594), + 159: uint16(57595), + 160: uint16(57596), + 161: uint16(57597), + 162: uint16(57598), + 163: uint16(57599), + 164: uint16(57600), + 165: uint16(57601), + 166: uint16(57602), + 167: uint16(57603), + 168: uint16(57604), + 169: uint16(57605), + 170: uint16(57606), + 171: uint16(57607), + 172: uint16(57608), + 173: uint16(57609), + 174: uint16(57610), + 175: uint16(57611), + 176: uint16(57612), + 177: uint16(57613), + 178: uint16(57614), + 179: uint16(57615), + 180: uint16(57616), + 181: uint16(57617), + 182: uint16(57618), + 183: uint16(57619), + 184: uint16(57620), + 185: uint16(57621), + 186: uint16(57622), + 187: uint16(57623), + 188: uint16(57624), + 189: uint16(57625), + }, + 44: { + 0: uint16(29819), + 1: uint16(29820), + 2: uint16(29821), + 3: uint16(29823), + 4: uint16(29826), + 5: uint16(29828), + 6: uint16(29829), + 7: uint16(29830), + 8: uint16(29832), + 9: uint16(29833), + 10: uint16(29834), + 11: uint16(29836), + 12: uint16(29837), + 13: uint16(29839), + 14: uint16(29841), + 15: uint16(29842), + 16: uint16(29843), + 17: uint16(29844), + 18: uint16(29845), + 19: uint16(29846), + 20: uint16(29847), + 21: uint16(29848), + 22: uint16(29849), + 23: uint16(29850), + 24: uint16(29851), + 25: uint16(29853), + 26: uint16(29855), + 27: uint16(29856), + 28: uint16(29857), + 29: uint16(29858), + 30: uint16(29859), + 31: uint16(29860), + 32: uint16(29861), + 33: uint16(29862), + 34: uint16(29866), + 35: uint16(29867), + 36: uint16(29868), + 37: uint16(29869), + 38: uint16(29870), + 39: uint16(29871), + 40: uint16(29872), + 41: uint16(29873), + 42: uint16(29874), + 43: uint16(29875), + 44: uint16(29876), + 45: uint16(29877), + 46: uint16(29878), + 47: uint16(29879), + 48: uint16(29880), + 49: uint16(29881), + 50: uint16(29883), + 51: uint16(29884), + 52: uint16(29885), + 53: uint16(29886), + 54: uint16(29887), + 55: uint16(29888), + 56: uint16(29889), + 57: uint16(29890), + 58: uint16(29891), + 59: uint16(29892), + 60: uint16(29893), + 61: uint16(29894), + 62: uint16(29895), + 63: uint16(29896), + 64: uint16(29897), + 65: uint16(29898), + 66: uint16(29899), + 67: uint16(29900), + 68: uint16(29901), + 69: uint16(29902), + 70: uint16(29903), + 71: uint16(29904), + 72: uint16(29905), + 73: uint16(29907), + 74: uint16(29908), + 75: uint16(29909), + 76: uint16(29910), + 77: uint16(29911), + 78: uint16(29912), + 79: uint16(29913), + 80: uint16(29914), + 81: uint16(29915), + 82: uint16(29917), + 83: uint16(29919), + 84: uint16(29921), + 85: uint16(29925), + 86: uint16(29927), + 87: uint16(29928), + 88: uint16(29929), + 89: uint16(29930), + 90: uint16(29931), + 91: uint16(29932), + 92: uint16(29933), + 93: uint16(29936), + 94: uint16(29937), + 95: uint16(29938), + 96: uint16(57626), + 97: uint16(57627), + 98: uint16(57628), + 99: uint16(57629), + 100: uint16(57630), + 101: uint16(57631), + 102: uint16(57632), + 103: uint16(57633), + 104: uint16(57634), + 105: uint16(57635), + 106: uint16(57636), + 107: uint16(57637), + 108: uint16(57638), + 109: uint16(57639), + 110: uint16(57640), + 111: uint16(57641), + 112: uint16(57642), + 113: uint16(57643), + 114: uint16(57644), + 115: uint16(57645), + 116: uint16(57646), + 117: uint16(57647), + 118: uint16(57648), + 119: uint16(57649), + 120: uint16(57650), + 121: uint16(57651), + 122: uint16(57652), + 123: uint16(57653), + 124: uint16(57654), + 125: uint16(57655), + 126: uint16(57656), + 127: uint16(57657), + 128: uint16(57658), + 129: uint16(57659), + 130: uint16(57660), + 131: uint16(57661), + 132: uint16(57662), + 133: uint16(57663), + 134: uint16(57664), + 135: uint16(57665), + 136: uint16(57666), + 137: uint16(57667), + 138: uint16(57668), + 139: uint16(57669), + 140: uint16(57670), + 141: uint16(57671), + 142: uint16(57672), + 143: uint16(57673), + 144: uint16(57674), + 145: uint16(57675), + 146: uint16(57676), + 147: uint16(57677), + 148: uint16(57678), + 149: uint16(57679), + 150: uint16(57680), + 151: uint16(57681), + 152: uint16(57682), + 153: uint16(57683), + 154: uint16(57684), + 155: uint16(57685), + 156: uint16(57686), + 157: uint16(57687), + 158: uint16(57688), + 159: uint16(57689), + 160: uint16(57690), + 161: uint16(57691), + 162: uint16(57692), + 163: uint16(57693), + 164: uint16(57694), + 165: uint16(57695), + 166: uint16(57696), + 167: uint16(57697), + 168: uint16(57698), + 169: uint16(57699), + 170: uint16(57700), + 171: uint16(57701), + 172: uint16(57702), + 173: uint16(57703), + 174: uint16(57704), + 175: uint16(57705), + 176: uint16(57706), + 177: uint16(57707), + 178: uint16(57708), + 179: uint16(57709), + 180: uint16(57710), + 181: uint16(57711), + 182: uint16(57712), + 183: uint16(57713), + 184: uint16(57714), + 185: uint16(57715), + 186: uint16(57716), + 187: uint16(57717), + 188: uint16(57718), + 189: uint16(57719), + }, + 45: { + 0: uint16(29939), + 1: uint16(29941), + 2: uint16(29944), + 3: uint16(29945), + 4: uint16(29946), + 5: uint16(29947), + 6: uint16(29948), + 7: uint16(29949), + 8: uint16(29950), + 9: uint16(29952), + 10: uint16(29953), + 11: uint16(29954), + 12: uint16(29955), + 13: uint16(29957), + 14: uint16(29958), + 15: uint16(29959), + 16: uint16(29960), + 17: uint16(29961), + 18: uint16(29962), + 19: uint16(29963), + 20: uint16(29964), + 21: uint16(29966), + 22: uint16(29968), + 23: uint16(29970), + 24: uint16(29972), + 25: uint16(29973), + 26: uint16(29974), + 27: uint16(29975), + 28: uint16(29979), + 29: uint16(29981), + 30: uint16(29982), + 31: uint16(29984), + 32: uint16(29985), + 33: uint16(29986), + 34: uint16(29987), + 35: uint16(29988), + 36: uint16(29990), + 37: uint16(29991), + 38: uint16(29994), + 39: uint16(29998), + 40: uint16(30004), + 41: uint16(30006), + 42: uint16(30009), + 43: uint16(30012), + 44: uint16(30013), + 45: uint16(30015), + 46: uint16(30017), + 47: uint16(30018), + 48: uint16(30019), + 49: uint16(30020), + 50: uint16(30022), + 51: uint16(30023), + 52: uint16(30025), + 53: uint16(30026), + 54: uint16(30029), + 55: uint16(30032), + 56: uint16(30033), + 57: uint16(30034), + 58: uint16(30035), + 59: uint16(30037), + 60: uint16(30038), + 61: uint16(30039), + 62: uint16(30040), + 63: uint16(30045), + 64: uint16(30046), + 65: uint16(30047), + 66: uint16(30048), + 67: uint16(30049), + 68: uint16(30050), + 69: uint16(30051), + 70: uint16(30052), + 71: uint16(30055), + 72: uint16(30056), + 73: uint16(30057), + 74: uint16(30059), + 75: uint16(30060), + 76: uint16(30061), + 77: uint16(30062), + 78: uint16(30063), + 79: uint16(30064), + 80: uint16(30065), + 81: uint16(30067), + 82: uint16(30069), + 83: uint16(30070), + 84: uint16(30071), + 85: uint16(30074), + 86: uint16(30075), + 87: uint16(30076), + 88: uint16(30077), + 89: uint16(30078), + 90: uint16(30080), + 91: uint16(30081), + 92: uint16(30082), + 93: uint16(30084), + 94: uint16(30085), + 95: uint16(30087), + 96: uint16(57720), + 97: uint16(57721), + 98: uint16(57722), + 99: uint16(57723), + 100: uint16(57724), + 101: uint16(57725), + 102: uint16(57726), + 103: uint16(57727), + 104: uint16(57728), + 105: uint16(57729), + 106: uint16(57730), + 107: uint16(57731), + 108: uint16(57732), + 109: uint16(57733), + 110: uint16(57734), + 111: uint16(57735), + 112: uint16(57736), + 113: uint16(57737), + 114: uint16(57738), + 115: uint16(57739), + 116: uint16(57740), + 117: uint16(57741), + 118: uint16(57742), + 119: uint16(57743), + 120: uint16(57744), + 121: uint16(57745), + 122: uint16(57746), + 123: uint16(57747), + 124: uint16(57748), + 125: uint16(57749), + 126: uint16(57750), + 127: uint16(57751), + 128: uint16(57752), + 129: uint16(57753), + 130: uint16(57754), + 131: uint16(57755), + 132: uint16(57756), + 133: uint16(57757), + 134: uint16(57758), + 135: uint16(57759), + 136: uint16(57760), + 137: uint16(57761), + 138: uint16(57762), + 139: uint16(57763), + 140: uint16(57764), + 141: uint16(57765), + 142: uint16(57766), + 143: uint16(57767), + 144: uint16(57768), + 145: uint16(57769), + 146: uint16(57770), + 147: uint16(57771), + 148: uint16(57772), + 149: uint16(57773), + 150: uint16(57774), + 151: uint16(57775), + 152: uint16(57776), + 153: uint16(57777), + 154: uint16(57778), + 155: uint16(57779), + 156: uint16(57780), + 157: uint16(57781), + 158: uint16(57782), + 159: uint16(57783), + 160: uint16(57784), + 161: uint16(57785), + 162: uint16(57786), + 163: uint16(57787), + 164: uint16(57788), + 165: uint16(57789), + 166: uint16(57790), + 167: uint16(57791), + 168: uint16(57792), + 169: uint16(57793), + 170: uint16(57794), + 171: uint16(57795), + 172: uint16(57796), + 173: uint16(57797), + 174: uint16(57798), + 175: uint16(57799), + 176: uint16(57800), + 177: uint16(57801), + 178: uint16(57802), + 179: uint16(57803), + 180: uint16(57804), + 181: uint16(57805), + 182: uint16(57806), + 183: uint16(57807), + 184: uint16(57808), + 185: uint16(57809), + 186: uint16(57810), + 187: uint16(57811), + 188: uint16(57812), + 189: uint16(57813), + }, + 46: { + 0: uint16(30088), + 1: uint16(30089), + 2: uint16(30090), + 3: uint16(30092), + 4: uint16(30093), + 5: uint16(30094), + 6: uint16(30096), + 7: uint16(30099), + 8: uint16(30101), + 9: uint16(30104), + 10: uint16(30107), + 11: uint16(30108), + 12: uint16(30110), + 13: uint16(30114), + 14: uint16(30118), + 15: uint16(30119), + 16: uint16(30120), + 17: uint16(30121), + 18: uint16(30122), + 19: uint16(30125), + 20: uint16(30134), + 21: uint16(30135), + 22: uint16(30138), + 23: uint16(30139), + 24: uint16(30143), + 25: uint16(30144), + 26: uint16(30145), + 27: uint16(30150), + 28: uint16(30155), + 29: uint16(30156), + 30: uint16(30158), + 31: uint16(30159), + 32: uint16(30160), + 33: uint16(30161), + 34: uint16(30163), + 35: uint16(30167), + 36: uint16(30169), + 37: uint16(30170), + 38: uint16(30172), + 39: uint16(30173), + 40: uint16(30175), + 41: uint16(30176), + 42: uint16(30177), + 43: uint16(30181), + 44: uint16(30185), + 45: uint16(30188), + 46: uint16(30189), + 47: uint16(30190), + 48: uint16(30191), + 49: uint16(30194), + 50: uint16(30195), + 51: uint16(30197), + 52: uint16(30198), + 53: uint16(30199), + 54: uint16(30200), + 55: uint16(30202), + 56: uint16(30203), + 57: uint16(30205), + 58: uint16(30206), + 59: uint16(30210), + 60: uint16(30212), + 61: uint16(30214), + 62: uint16(30215), + 63: uint16(30216), + 64: uint16(30217), + 65: uint16(30219), + 66: uint16(30221), + 67: uint16(30222), + 68: uint16(30223), + 69: uint16(30225), + 70: uint16(30226), + 71: uint16(30227), + 72: uint16(30228), + 73: uint16(30230), + 74: uint16(30234), + 75: uint16(30236), + 76: uint16(30237), + 77: uint16(30238), + 78: uint16(30241), + 79: uint16(30243), + 80: uint16(30247), + 81: uint16(30248), + 82: uint16(30252), + 83: uint16(30254), + 84: uint16(30255), + 85: uint16(30257), + 86: uint16(30258), + 87: uint16(30262), + 88: uint16(30263), + 89: uint16(30265), + 90: uint16(30266), + 91: uint16(30267), + 92: uint16(30269), + 93: uint16(30273), + 94: uint16(30274), + 95: uint16(30276), + 96: uint16(57814), + 97: uint16(57815), + 98: uint16(57816), + 99: uint16(57817), + 100: uint16(57818), + 101: uint16(57819), + 102: uint16(57820), + 103: uint16(57821), + 104: uint16(57822), + 105: uint16(57823), + 106: uint16(57824), + 107: uint16(57825), + 108: uint16(57826), + 109: uint16(57827), + 110: uint16(57828), + 111: uint16(57829), + 112: uint16(57830), + 113: uint16(57831), + 114: uint16(57832), + 115: uint16(57833), + 116: uint16(57834), + 117: uint16(57835), + 118: uint16(57836), + 119: uint16(57837), + 120: uint16(57838), + 121: uint16(57839), + 122: uint16(57840), + 123: uint16(57841), + 124: uint16(57842), + 125: uint16(57843), + 126: uint16(57844), + 127: uint16(57845), + 128: uint16(57846), + 129: uint16(57847), + 130: uint16(57848), + 131: uint16(57849), + 132: uint16(57850), + 133: uint16(57851), + 134: uint16(57852), + 135: uint16(57853), + 136: uint16(57854), + 137: uint16(57855), + 138: uint16(57856), + 139: uint16(57857), + 140: uint16(57858), + 141: uint16(57859), + 142: uint16(57860), + 143: uint16(57861), + 144: uint16(57862), + 145: uint16(57863), + 146: uint16(57864), + 147: uint16(57865), + 148: uint16(57866), + 149: uint16(57867), + 150: uint16(57868), + 151: uint16(57869), + 152: uint16(57870), + 153: uint16(57871), + 154: uint16(57872), + 155: uint16(57873), + 156: uint16(57874), + 157: uint16(57875), + 158: uint16(57876), + 159: uint16(57877), + 160: uint16(57878), + 161: uint16(57879), + 162: uint16(57880), + 163: uint16(57881), + 164: uint16(57882), + 165: uint16(57883), + 166: uint16(57884), + 167: uint16(57885), + 168: uint16(57886), + 169: uint16(57887), + 170: uint16(57888), + 171: uint16(57889), + 172: uint16(57890), + 173: uint16(57891), + 174: uint16(57892), + 175: uint16(57893), + 176: uint16(57894), + 177: uint16(57895), + 178: uint16(57896), + 179: uint16(57897), + 180: uint16(57898), + 181: uint16(57899), + 182: uint16(57900), + 183: uint16(57901), + 184: uint16(57902), + 185: uint16(57903), + 186: uint16(57904), + 187: uint16(57905), + 188: uint16(57906), + 189: uint16(57907), + }, + 47: { + 0: uint16(30277), + 1: uint16(30278), + 2: uint16(30279), + 3: uint16(30280), + 4: uint16(30281), + 5: uint16(30282), + 6: uint16(30283), + 7: uint16(30286), + 8: uint16(30287), + 9: uint16(30288), + 10: uint16(30289), + 11: uint16(30290), + 12: uint16(30291), + 13: uint16(30293), + 14: uint16(30295), + 15: uint16(30296), + 16: uint16(30297), + 17: uint16(30298), + 18: uint16(30299), + 19: uint16(30301), + 20: uint16(30303), + 21: uint16(30304), + 22: uint16(30305), + 23: uint16(30306), + 24: uint16(30308), + 25: uint16(30309), + 26: uint16(30310), + 27: uint16(30311), + 28: uint16(30312), + 29: uint16(30313), + 30: uint16(30314), + 31: uint16(30316), + 32: uint16(30317), + 33: uint16(30318), + 34: uint16(30320), + 35: uint16(30321), + 36: uint16(30322), + 37: uint16(30323), + 38: uint16(30324), + 39: uint16(30325), + 40: uint16(30326), + 41: uint16(30327), + 42: uint16(30329), + 43: uint16(30330), + 44: uint16(30332), + 45: uint16(30335), + 46: uint16(30336), + 47: uint16(30337), + 48: uint16(30339), + 49: uint16(30341), + 50: uint16(30345), + 51: uint16(30346), + 52: uint16(30348), + 53: uint16(30349), + 54: uint16(30351), + 55: uint16(30352), + 56: uint16(30354), + 57: uint16(30356), + 58: uint16(30357), + 59: uint16(30359), + 60: uint16(30360), + 61: uint16(30362), + 62: uint16(30363), + 63: uint16(30364), + 64: uint16(30365), + 65: uint16(30366), + 66: uint16(30367), + 67: uint16(30368), + 68: uint16(30369), + 69: uint16(30370), + 70: uint16(30371), + 71: uint16(30373), + 72: uint16(30374), + 73: uint16(30375), + 74: uint16(30376), + 75: uint16(30377), + 76: uint16(30378), + 77: uint16(30379), + 78: uint16(30380), + 79: uint16(30381), + 80: uint16(30383), + 81: uint16(30384), + 82: uint16(30387), + 83: uint16(30389), + 84: uint16(30390), + 85: uint16(30391), + 86: uint16(30392), + 87: uint16(30393), + 88: uint16(30394), + 89: uint16(30395), + 90: uint16(30396), + 91: uint16(30397), + 92: uint16(30398), + 93: uint16(30400), + 94: uint16(30401), + 95: uint16(30403), + 96: uint16(21834), + 97: uint16(38463), + 98: uint16(22467), + 99: uint16(25384), + 100: uint16(21710), + 101: uint16(21769), + 102: uint16(21696), + 103: uint16(30353), + 104: uint16(30284), + 105: uint16(34108), + 106: uint16(30702), + 107: uint16(33406), + 108: uint16(30861), + 109: uint16(29233), + 110: uint16(38552), + 111: uint16(38797), + 112: uint16(27688), + 113: uint16(23433), + 114: uint16(20474), + 115: uint16(25353), + 116: uint16(26263), + 117: uint16(23736), + 118: uint16(33018), + 119: uint16(26696), + 120: uint16(32942), + 121: uint16(26114), + 122: uint16(30414), + 123: uint16(20985), + 124: uint16(25942), + 125: uint16(29100), + 126: uint16(32753), + 127: uint16(34948), + 128: uint16(20658), + 129: uint16(22885), + 130: uint16(25034), + 131: uint16(28595), + 132: uint16(33453), + 133: uint16(25420), + 134: uint16(25170), + 135: uint16(21485), + 136: uint16(21543), + 137: uint16(31494), + 138: uint16(20843), + 139: uint16(30116), + 140: uint16(24052), + 141: uint16(25300), + 142: uint16(36299), + 143: uint16(38774), + 144: uint16(25226), + 145: uint16(32793), + 146: uint16(22365), + 147: uint16(38712), + 148: uint16(32610), + 149: uint16(29240), + 150: uint16(30333), + 151: uint16(26575), + 152: uint16(30334), + 153: uint16(25670), + 154: uint16(20336), + 155: uint16(36133), + 156: uint16(25308), + 157: uint16(31255), + 158: uint16(26001), + 159: uint16(29677), + 160: uint16(25644), + 161: uint16(25203), + 162: uint16(33324), + 163: uint16(39041), + 164: uint16(26495), + 165: uint16(29256), + 166: uint16(25198), + 167: uint16(25292), + 168: uint16(20276), + 169: uint16(29923), + 170: uint16(21322), + 171: uint16(21150), + 172: uint16(32458), + 173: uint16(37030), + 174: uint16(24110), + 175: uint16(26758), + 176: uint16(27036), + 177: uint16(33152), + 178: uint16(32465), + 179: uint16(26834), + 180: uint16(30917), + 181: uint16(34444), + 182: uint16(38225), + 183: uint16(20621), + 184: uint16(35876), + 185: uint16(33502), + 186: uint16(32990), + 187: uint16(21253), + 188: uint16(35090), + 189: uint16(21093), + }, + 48: { + 0: uint16(30404), + 1: uint16(30407), + 2: uint16(30409), + 3: uint16(30411), + 4: uint16(30412), + 5: uint16(30419), + 6: uint16(30421), + 7: uint16(30425), + 8: uint16(30426), + 9: uint16(30428), + 10: uint16(30429), + 11: uint16(30430), + 12: uint16(30432), + 13: uint16(30433), + 14: uint16(30434), + 15: uint16(30435), + 16: uint16(30436), + 17: uint16(30438), + 18: uint16(30439), + 19: uint16(30440), + 20: uint16(30441), + 21: uint16(30442), + 22: uint16(30443), + 23: uint16(30444), + 24: uint16(30445), + 25: uint16(30448), + 26: uint16(30451), + 27: uint16(30453), + 28: uint16(30454), + 29: uint16(30455), + 30: uint16(30458), + 31: uint16(30459), + 32: uint16(30461), + 33: uint16(30463), + 34: uint16(30464), + 35: uint16(30466), + 36: uint16(30467), + 37: uint16(30469), + 38: uint16(30470), + 39: uint16(30474), + 40: uint16(30476), + 41: uint16(30478), + 42: uint16(30479), + 43: uint16(30480), + 44: uint16(30481), + 45: uint16(30482), + 46: uint16(30483), + 47: uint16(30484), + 48: uint16(30485), + 49: uint16(30486), + 50: uint16(30487), + 51: uint16(30488), + 52: uint16(30491), + 53: uint16(30492), + 54: uint16(30493), + 55: uint16(30494), + 56: uint16(30497), + 57: uint16(30499), + 58: uint16(30500), + 59: uint16(30501), + 60: uint16(30503), + 61: uint16(30506), + 62: uint16(30507), + 63: uint16(30508), + 64: uint16(30510), + 65: uint16(30512), + 66: uint16(30513), + 67: uint16(30514), + 68: uint16(30515), + 69: uint16(30516), + 70: uint16(30521), + 71: uint16(30523), + 72: uint16(30525), + 73: uint16(30526), + 74: uint16(30527), + 75: uint16(30530), + 76: uint16(30532), + 77: uint16(30533), + 78: uint16(30534), + 79: uint16(30536), + 80: uint16(30537), + 81: uint16(30538), + 82: uint16(30539), + 83: uint16(30540), + 84: uint16(30541), + 85: uint16(30542), + 86: uint16(30543), + 87: uint16(30546), + 88: uint16(30547), + 89: uint16(30548), + 90: uint16(30549), + 91: uint16(30550), + 92: uint16(30551), + 93: uint16(30552), + 94: uint16(30553), + 95: uint16(30556), + 96: uint16(34180), + 97: uint16(38649), + 98: uint16(20445), + 99: uint16(22561), + 100: uint16(39281), + 101: uint16(23453), + 102: uint16(25265), + 103: uint16(25253), + 104: uint16(26292), + 105: uint16(35961), + 106: uint16(40077), + 107: uint16(29190), + 108: uint16(26479), + 109: uint16(30865), + 110: uint16(24754), + 111: uint16(21329), + 112: uint16(21271), + 113: uint16(36744), + 114: uint16(32972), + 115: uint16(36125), + 116: uint16(38049), + 117: uint16(20493), + 118: uint16(29384), + 119: uint16(22791), + 120: uint16(24811), + 121: uint16(28953), + 122: uint16(34987), + 123: uint16(22868), + 124: uint16(33519), + 125: uint16(26412), + 126: uint16(31528), + 127: uint16(23849), + 128: uint16(32503), + 129: uint16(29997), + 130: uint16(27893), + 131: uint16(36454), + 132: uint16(36856), + 133: uint16(36924), + 134: uint16(40763), + 135: uint16(27604), + 136: uint16(37145), + 137: uint16(31508), + 138: uint16(24444), + 139: uint16(30887), + 140: uint16(34006), + 141: uint16(34109), + 142: uint16(27605), + 143: uint16(27609), + 144: uint16(27606), + 145: uint16(24065), + 146: uint16(24199), + 147: uint16(30201), + 148: uint16(38381), + 149: uint16(25949), + 150: uint16(24330), + 151: uint16(24517), + 152: uint16(36767), + 153: uint16(22721), + 154: uint16(33218), + 155: uint16(36991), + 156: uint16(38491), + 157: uint16(38829), + 158: uint16(36793), + 159: uint16(32534), + 160: uint16(36140), + 161: uint16(25153), + 162: uint16(20415), + 163: uint16(21464), + 164: uint16(21342), + 165: uint16(36776), + 166: uint16(36777), + 167: uint16(36779), + 168: uint16(36941), + 169: uint16(26631), + 170: uint16(24426), + 171: uint16(33176), + 172: uint16(34920), + 173: uint16(40150), + 174: uint16(24971), + 175: uint16(21035), + 176: uint16(30250), + 177: uint16(24428), + 178: uint16(25996), + 179: uint16(28626), + 180: uint16(28392), + 181: uint16(23486), + 182: uint16(25672), + 183: uint16(20853), + 184: uint16(20912), + 185: uint16(26564), + 186: uint16(19993), + 187: uint16(31177), + 188: uint16(39292), + 189: uint16(28851), + }, + 49: { + 0: uint16(30557), + 1: uint16(30558), + 2: uint16(30559), + 3: uint16(30560), + 4: uint16(30564), + 5: uint16(30567), + 6: uint16(30569), + 7: uint16(30570), + 8: uint16(30573), + 9: uint16(30574), + 10: uint16(30575), + 11: uint16(30576), + 12: uint16(30577), + 13: uint16(30578), + 14: uint16(30579), + 15: uint16(30580), + 16: uint16(30581), + 17: uint16(30582), + 18: uint16(30583), + 19: uint16(30584), + 20: uint16(30586), + 21: uint16(30587), + 22: uint16(30588), + 23: uint16(30593), + 24: uint16(30594), + 25: uint16(30595), + 26: uint16(30598), + 27: uint16(30599), + 28: uint16(30600), + 29: uint16(30601), + 30: uint16(30602), + 31: uint16(30603), + 32: uint16(30607), + 33: uint16(30608), + 34: uint16(30611), + 35: uint16(30612), + 36: uint16(30613), + 37: uint16(30614), + 38: uint16(30615), + 39: uint16(30616), + 40: uint16(30617), + 41: uint16(30618), + 42: uint16(30619), + 43: uint16(30620), + 44: uint16(30621), + 45: uint16(30622), + 46: uint16(30625), + 47: uint16(30627), + 48: uint16(30628), + 49: uint16(30630), + 50: uint16(30632), + 51: uint16(30635), + 52: uint16(30637), + 53: uint16(30638), + 54: uint16(30639), + 55: uint16(30641), + 56: uint16(30642), + 57: uint16(30644), + 58: uint16(30646), + 59: uint16(30647), + 60: uint16(30648), + 61: uint16(30649), + 62: uint16(30650), + 63: uint16(30652), + 64: uint16(30654), + 65: uint16(30656), + 66: uint16(30657), + 67: uint16(30658), + 68: uint16(30659), + 69: uint16(30660), + 70: uint16(30661), + 71: uint16(30662), + 72: uint16(30663), + 73: uint16(30664), + 74: uint16(30665), + 75: uint16(30666), + 76: uint16(30667), + 77: uint16(30668), + 78: uint16(30670), + 79: uint16(30671), + 80: uint16(30672), + 81: uint16(30673), + 82: uint16(30674), + 83: uint16(30675), + 84: uint16(30676), + 85: uint16(30677), + 86: uint16(30678), + 87: uint16(30680), + 88: uint16(30681), + 89: uint16(30682), + 90: uint16(30685), + 91: uint16(30686), + 92: uint16(30687), + 93: uint16(30688), + 94: uint16(30689), + 95: uint16(30692), + 96: uint16(30149), + 97: uint16(24182), + 98: uint16(29627), + 99: uint16(33760), + 100: uint16(25773), + 101: uint16(25320), + 102: uint16(38069), + 103: uint16(27874), + 104: uint16(21338), + 105: uint16(21187), + 106: uint16(25615), + 107: uint16(38082), + 108: uint16(31636), + 109: uint16(20271), + 110: uint16(24091), + 111: uint16(33334), + 112: uint16(33046), + 113: uint16(33162), + 114: uint16(28196), + 115: uint16(27850), + 116: uint16(39539), + 117: uint16(25429), + 118: uint16(21340), + 119: uint16(21754), + 120: uint16(34917), + 121: uint16(22496), + 122: uint16(19981), + 123: uint16(24067), + 124: uint16(27493), + 125: uint16(31807), + 126: uint16(37096), + 127: uint16(24598), + 128: uint16(25830), + 129: uint16(29468), + 130: uint16(35009), + 131: uint16(26448), + 132: uint16(25165), + 133: uint16(36130), + 134: uint16(30572), + 135: uint16(36393), + 136: uint16(37319), + 137: uint16(24425), + 138: uint16(33756), + 139: uint16(34081), + 140: uint16(39184), + 141: uint16(21442), + 142: uint16(34453), + 143: uint16(27531), + 144: uint16(24813), + 145: uint16(24808), + 146: uint16(28799), + 147: uint16(33485), + 148: uint16(33329), + 149: uint16(20179), + 150: uint16(27815), + 151: uint16(34255), + 152: uint16(25805), + 153: uint16(31961), + 154: uint16(27133), + 155: uint16(26361), + 156: uint16(33609), + 157: uint16(21397), + 158: uint16(31574), + 159: uint16(20391), + 160: uint16(20876), + 161: uint16(27979), + 162: uint16(23618), + 163: uint16(36461), + 164: uint16(25554), + 165: uint16(21449), + 166: uint16(33580), + 167: uint16(33590), + 168: uint16(26597), + 169: uint16(30900), + 170: uint16(25661), + 171: uint16(23519), + 172: uint16(23700), + 173: uint16(24046), + 174: uint16(35815), + 175: uint16(25286), + 176: uint16(26612), + 177: uint16(35962), + 178: uint16(25600), + 179: uint16(25530), + 180: uint16(34633), + 181: uint16(39307), + 182: uint16(35863), + 183: uint16(32544), + 184: uint16(38130), + 185: uint16(20135), + 186: uint16(38416), + 187: uint16(39076), + 188: uint16(26124), + 189: uint16(29462), + }, + 50: { + 0: uint16(30694), + 1: uint16(30696), + 2: uint16(30698), + 3: uint16(30703), + 4: uint16(30704), + 5: uint16(30705), + 6: uint16(30706), + 7: uint16(30708), + 8: uint16(30709), + 9: uint16(30711), + 10: uint16(30713), + 11: uint16(30714), + 12: uint16(30715), + 13: uint16(30716), + 14: uint16(30723), + 15: uint16(30724), + 16: uint16(30725), + 17: uint16(30726), + 18: uint16(30727), + 19: uint16(30728), + 20: uint16(30730), + 21: uint16(30731), + 22: uint16(30734), + 23: uint16(30735), + 24: uint16(30736), + 25: uint16(30739), + 26: uint16(30741), + 27: uint16(30745), + 28: uint16(30747), + 29: uint16(30750), + 30: uint16(30752), + 31: uint16(30753), + 32: uint16(30754), + 33: uint16(30756), + 34: uint16(30760), + 35: uint16(30762), + 36: uint16(30763), + 37: uint16(30766), + 38: uint16(30767), + 39: uint16(30769), + 40: uint16(30770), + 41: uint16(30771), + 42: uint16(30773), + 43: uint16(30774), + 44: uint16(30781), + 45: uint16(30783), + 46: uint16(30785), + 47: uint16(30786), + 48: uint16(30787), + 49: uint16(30788), + 50: uint16(30790), + 51: uint16(30792), + 52: uint16(30793), + 53: uint16(30794), + 54: uint16(30795), + 55: uint16(30797), + 56: uint16(30799), + 57: uint16(30801), + 58: uint16(30803), + 59: uint16(30804), + 60: uint16(30808), + 61: uint16(30809), + 62: uint16(30810), + 63: uint16(30811), + 64: uint16(30812), + 65: uint16(30814), + 66: uint16(30815), + 67: uint16(30816), + 68: uint16(30817), + 69: uint16(30818), + 70: uint16(30819), + 71: uint16(30820), + 72: uint16(30821), + 73: uint16(30822), + 74: uint16(30823), + 75: uint16(30824), + 76: uint16(30825), + 77: uint16(30831), + 78: uint16(30832), + 79: uint16(30833), + 80: uint16(30834), + 81: uint16(30835), + 82: uint16(30836), + 83: uint16(30837), + 84: uint16(30838), + 85: uint16(30840), + 86: uint16(30841), + 87: uint16(30842), + 88: uint16(30843), + 89: uint16(30845), + 90: uint16(30846), + 91: uint16(30847), + 92: uint16(30848), + 93: uint16(30849), + 94: uint16(30850), + 95: uint16(30851), + 96: uint16(22330), + 97: uint16(23581), + 98: uint16(24120), + 99: uint16(38271), + 100: uint16(20607), + 101: uint16(32928), + 102: uint16(21378), + 103: uint16(25950), + 104: uint16(30021), + 105: uint16(21809), + 106: uint16(20513), + 107: uint16(36229), + 108: uint16(25220), + 109: uint16(38046), + 110: uint16(26397), + 111: uint16(22066), + 112: uint16(28526), + 113: uint16(24034), + 114: uint16(21557), + 115: uint16(28818), + 116: uint16(36710), + 117: uint16(25199), + 118: uint16(25764), + 119: uint16(25507), + 120: uint16(24443), + 121: uint16(28552), + 122: uint16(37108), + 123: uint16(33251), + 124: uint16(36784), + 125: uint16(23576), + 126: uint16(26216), + 127: uint16(24561), + 128: uint16(27785), + 129: uint16(38472), + 130: uint16(36225), + 131: uint16(34924), + 132: uint16(25745), + 133: uint16(31216), + 134: uint16(22478), + 135: uint16(27225), + 136: uint16(25104), + 137: uint16(21576), + 138: uint16(20056), + 139: uint16(31243), + 140: uint16(24809), + 141: uint16(28548), + 142: uint16(35802), + 143: uint16(25215), + 144: uint16(36894), + 145: uint16(39563), + 146: uint16(31204), + 147: uint16(21507), + 148: uint16(30196), + 149: uint16(25345), + 150: uint16(21273), + 151: uint16(27744), + 152: uint16(36831), + 153: uint16(24347), + 154: uint16(39536), + 155: uint16(32827), + 156: uint16(40831), + 157: uint16(20360), + 158: uint16(23610), + 159: uint16(36196), + 160: uint16(32709), + 161: uint16(26021), + 162: uint16(28861), + 163: uint16(20805), + 164: uint16(20914), + 165: uint16(34411), + 166: uint16(23815), + 167: uint16(23456), + 168: uint16(25277), + 169: uint16(37228), + 170: uint16(30068), + 171: uint16(36364), + 172: uint16(31264), + 173: uint16(24833), + 174: uint16(31609), + 175: uint16(20167), + 176: uint16(32504), + 177: uint16(30597), + 178: uint16(19985), + 179: uint16(33261), + 180: uint16(21021), + 181: uint16(20986), + 182: uint16(27249), + 183: uint16(21416), + 184: uint16(36487), + 185: uint16(38148), + 186: uint16(38607), + 187: uint16(28353), + 188: uint16(38500), + 189: uint16(26970), + }, + 51: { + 0: uint16(30852), + 1: uint16(30853), + 2: uint16(30854), + 3: uint16(30856), + 4: uint16(30858), + 5: uint16(30859), + 6: uint16(30863), + 7: uint16(30864), + 8: uint16(30866), + 9: uint16(30868), + 10: uint16(30869), + 11: uint16(30870), + 12: uint16(30873), + 13: uint16(30877), + 14: uint16(30878), + 15: uint16(30880), + 16: uint16(30882), + 17: uint16(30884), + 18: uint16(30886), + 19: uint16(30888), + 20: uint16(30889), + 21: uint16(30890), + 22: uint16(30891), + 23: uint16(30892), + 24: uint16(30893), + 25: uint16(30894), + 26: uint16(30895), + 27: uint16(30901), + 28: uint16(30902), + 29: uint16(30903), + 30: uint16(30904), + 31: uint16(30906), + 32: uint16(30907), + 33: uint16(30908), + 34: uint16(30909), + 35: uint16(30911), + 36: uint16(30912), + 37: uint16(30914), + 38: uint16(30915), + 39: uint16(30916), + 40: uint16(30918), + 41: uint16(30919), + 42: uint16(30920), + 43: uint16(30924), + 44: uint16(30925), + 45: uint16(30926), + 46: uint16(30927), + 47: uint16(30929), + 48: uint16(30930), + 49: uint16(30931), + 50: uint16(30934), + 51: uint16(30935), + 52: uint16(30936), + 53: uint16(30938), + 54: uint16(30939), + 55: uint16(30940), + 56: uint16(30941), + 57: uint16(30942), + 58: uint16(30943), + 59: uint16(30944), + 60: uint16(30945), + 61: uint16(30946), + 62: uint16(30947), + 63: uint16(30948), + 64: uint16(30949), + 65: uint16(30950), + 66: uint16(30951), + 67: uint16(30953), + 68: uint16(30954), + 69: uint16(30955), + 70: uint16(30957), + 71: uint16(30958), + 72: uint16(30959), + 73: uint16(30960), + 74: uint16(30961), + 75: uint16(30963), + 76: uint16(30965), + 77: uint16(30966), + 78: uint16(30968), + 79: uint16(30969), + 80: uint16(30971), + 81: uint16(30972), + 82: uint16(30973), + 83: uint16(30974), + 84: uint16(30975), + 85: uint16(30976), + 86: uint16(30978), + 87: uint16(30979), + 88: uint16(30980), + 89: uint16(30982), + 90: uint16(30983), + 91: uint16(30984), + 92: uint16(30985), + 93: uint16(30986), + 94: uint16(30987), + 95: uint16(30988), + 96: uint16(30784), + 97: uint16(20648), + 98: uint16(30679), + 99: uint16(25616), + 100: uint16(35302), + 101: uint16(22788), + 102: uint16(25571), + 103: uint16(24029), + 104: uint16(31359), + 105: uint16(26941), + 106: uint16(20256), + 107: uint16(33337), + 108: uint16(21912), + 109: uint16(20018), + 110: uint16(30126), + 111: uint16(31383), + 112: uint16(24162), + 113: uint16(24202), + 114: uint16(38383), + 115: uint16(21019), + 116: uint16(21561), + 117: uint16(28810), + 118: uint16(25462), + 119: uint16(38180), + 120: uint16(22402), + 121: uint16(26149), + 122: uint16(26943), + 123: uint16(37255), + 124: uint16(21767), + 125: uint16(28147), + 126: uint16(32431), + 127: uint16(34850), + 128: uint16(25139), + 129: uint16(32496), + 130: uint16(30133), + 131: uint16(33576), + 132: uint16(30913), + 133: uint16(38604), + 134: uint16(36766), + 135: uint16(24904), + 136: uint16(29943), + 137: uint16(35789), + 138: uint16(27492), + 139: uint16(21050), + 140: uint16(36176), + 141: uint16(27425), + 142: uint16(32874), + 143: uint16(33905), + 144: uint16(22257), + 145: uint16(21254), + 146: uint16(20174), + 147: uint16(19995), + 148: uint16(20945), + 149: uint16(31895), + 150: uint16(37259), + 151: uint16(31751), + 152: uint16(20419), + 153: uint16(36479), + 154: uint16(31713), + 155: uint16(31388), + 156: uint16(25703), + 157: uint16(23828), + 158: uint16(20652), + 159: uint16(33030), + 160: uint16(30209), + 161: uint16(31929), + 162: uint16(28140), + 163: uint16(32736), + 164: uint16(26449), + 165: uint16(23384), + 166: uint16(23544), + 167: uint16(30923), + 168: uint16(25774), + 169: uint16(25619), + 170: uint16(25514), + 171: uint16(25387), + 172: uint16(38169), + 173: uint16(25645), + 174: uint16(36798), + 175: uint16(31572), + 176: uint16(30249), + 177: uint16(25171), + 178: uint16(22823), + 179: uint16(21574), + 180: uint16(27513), + 181: uint16(20643), + 182: uint16(25140), + 183: uint16(24102), + 184: uint16(27526), + 185: uint16(20195), + 186: uint16(36151), + 187: uint16(34955), + 188: uint16(24453), + 189: uint16(36910), + }, + 52: { + 0: uint16(30989), + 1: uint16(30990), + 2: uint16(30991), + 3: uint16(30992), + 4: uint16(30993), + 5: uint16(30994), + 6: uint16(30996), + 7: uint16(30997), + 8: uint16(30998), + 9: uint16(30999), + 10: uint16(31000), + 11: uint16(31001), + 12: uint16(31002), + 13: uint16(31003), + 14: uint16(31004), + 15: uint16(31005), + 16: uint16(31007), + 17: uint16(31008), + 18: uint16(31009), + 19: uint16(31010), + 20: uint16(31011), + 21: uint16(31013), + 22: uint16(31014), + 23: uint16(31015), + 24: uint16(31016), + 25: uint16(31017), + 26: uint16(31018), + 27: uint16(31019), + 28: uint16(31020), + 29: uint16(31021), + 30: uint16(31022), + 31: uint16(31023), + 32: uint16(31024), + 33: uint16(31025), + 34: uint16(31026), + 35: uint16(31027), + 36: uint16(31029), + 37: uint16(31030), + 38: uint16(31031), + 39: uint16(31032), + 40: uint16(31033), + 41: uint16(31037), + 42: uint16(31039), + 43: uint16(31042), + 44: uint16(31043), + 45: uint16(31044), + 46: uint16(31045), + 47: uint16(31047), + 48: uint16(31050), + 49: uint16(31051), + 50: uint16(31052), + 51: uint16(31053), + 52: uint16(31054), + 53: uint16(31055), + 54: uint16(31056), + 55: uint16(31057), + 56: uint16(31058), + 57: uint16(31060), + 58: uint16(31061), + 59: uint16(31064), + 60: uint16(31065), + 61: uint16(31073), + 62: uint16(31075), + 63: uint16(31076), + 64: uint16(31078), + 65: uint16(31081), + 66: uint16(31082), + 67: uint16(31083), + 68: uint16(31084), + 69: uint16(31086), + 70: uint16(31088), + 71: uint16(31089), + 72: uint16(31090), + 73: uint16(31091), + 74: uint16(31092), + 75: uint16(31093), + 76: uint16(31094), + 77: uint16(31097), + 78: uint16(31099), + 79: uint16(31100), + 80: uint16(31101), + 81: uint16(31102), + 82: uint16(31103), + 83: uint16(31106), + 84: uint16(31107), + 85: uint16(31110), + 86: uint16(31111), + 87: uint16(31112), + 88: uint16(31113), + 89: uint16(31115), + 90: uint16(31116), + 91: uint16(31117), + 92: uint16(31118), + 93: uint16(31120), + 94: uint16(31121), + 95: uint16(31122), + 96: uint16(24608), + 97: uint16(32829), + 98: uint16(25285), + 99: uint16(20025), + 100: uint16(21333), + 101: uint16(37112), + 102: uint16(25528), + 103: uint16(32966), + 104: uint16(26086), + 105: uint16(27694), + 106: uint16(20294), + 107: uint16(24814), + 108: uint16(28129), + 109: uint16(35806), + 110: uint16(24377), + 111: uint16(34507), + 112: uint16(24403), + 113: uint16(25377), + 114: uint16(20826), + 115: uint16(33633), + 116: uint16(26723), + 117: uint16(20992), + 118: uint16(25443), + 119: uint16(36424), + 120: uint16(20498), + 121: uint16(23707), + 122: uint16(31095), + 123: uint16(23548), + 124: uint16(21040), + 125: uint16(31291), + 126: uint16(24764), + 127: uint16(36947), + 128: uint16(30423), + 129: uint16(24503), + 130: uint16(24471), + 131: uint16(30340), + 132: uint16(36460), + 133: uint16(28783), + 134: uint16(30331), + 135: uint16(31561), + 136: uint16(30634), + 137: uint16(20979), + 138: uint16(37011), + 139: uint16(22564), + 140: uint16(20302), + 141: uint16(28404), + 142: uint16(36842), + 143: uint16(25932), + 144: uint16(31515), + 145: uint16(29380), + 146: uint16(28068), + 147: uint16(32735), + 148: uint16(23265), + 149: uint16(25269), + 150: uint16(24213), + 151: uint16(22320), + 152: uint16(33922), + 153: uint16(31532), + 154: uint16(24093), + 155: uint16(24351), + 156: uint16(36882), + 157: uint16(32532), + 158: uint16(39072), + 159: uint16(25474), + 160: uint16(28359), + 161: uint16(30872), + 162: uint16(28857), + 163: uint16(20856), + 164: uint16(38747), + 165: uint16(22443), + 166: uint16(30005), + 167: uint16(20291), + 168: uint16(30008), + 169: uint16(24215), + 170: uint16(24806), + 171: uint16(22880), + 172: uint16(28096), + 173: uint16(27583), + 174: uint16(30857), + 175: uint16(21500), + 176: uint16(38613), + 177: uint16(20939), + 178: uint16(20993), + 179: uint16(25481), + 180: uint16(21514), + 181: uint16(38035), + 182: uint16(35843), + 183: uint16(36300), + 184: uint16(29241), + 185: uint16(30879), + 186: uint16(34678), + 187: uint16(36845), + 188: uint16(35853), + 189: uint16(21472), + }, + 53: { + 0: uint16(31123), + 1: uint16(31124), + 2: uint16(31125), + 3: uint16(31126), + 4: uint16(31127), + 5: uint16(31128), + 6: uint16(31129), + 7: uint16(31131), + 8: uint16(31132), + 9: uint16(31133), + 10: uint16(31134), + 11: uint16(31135), + 12: uint16(31136), + 13: uint16(31137), + 14: uint16(31138), + 15: uint16(31139), + 16: uint16(31140), + 17: uint16(31141), + 18: uint16(31142), + 19: uint16(31144), + 20: uint16(31145), + 21: uint16(31146), + 22: uint16(31147), + 23: uint16(31148), + 24: uint16(31149), + 25: uint16(31150), + 26: uint16(31151), + 27: uint16(31152), + 28: uint16(31153), + 29: uint16(31154), + 30: uint16(31156), + 31: uint16(31157), + 32: uint16(31158), + 33: uint16(31159), + 34: uint16(31160), + 35: uint16(31164), + 36: uint16(31167), + 37: uint16(31170), + 38: uint16(31172), + 39: uint16(31173), + 40: uint16(31175), + 41: uint16(31176), + 42: uint16(31178), + 43: uint16(31180), + 44: uint16(31182), + 45: uint16(31183), + 46: uint16(31184), + 47: uint16(31187), + 48: uint16(31188), + 49: uint16(31190), + 50: uint16(31191), + 51: uint16(31193), + 52: uint16(31194), + 53: uint16(31195), + 54: uint16(31196), + 55: uint16(31197), + 56: uint16(31198), + 57: uint16(31200), + 58: uint16(31201), + 59: uint16(31202), + 60: uint16(31205), + 61: uint16(31208), + 62: uint16(31210), + 63: uint16(31212), + 64: uint16(31214), + 65: uint16(31217), + 66: uint16(31218), + 67: uint16(31219), + 68: uint16(31220), + 69: uint16(31221), + 70: uint16(31222), + 71: uint16(31223), + 72: uint16(31225), + 73: uint16(31226), + 74: uint16(31228), + 75: uint16(31230), + 76: uint16(31231), + 77: uint16(31233), + 78: uint16(31236), + 79: uint16(31237), + 80: uint16(31239), + 81: uint16(31240), + 82: uint16(31241), + 83: uint16(31242), + 84: uint16(31244), + 85: uint16(31247), + 86: uint16(31248), + 87: uint16(31249), + 88: uint16(31250), + 89: uint16(31251), + 90: uint16(31253), + 91: uint16(31254), + 92: uint16(31256), + 93: uint16(31257), + 94: uint16(31259), + 95: uint16(31260), + 96: uint16(19969), + 97: uint16(30447), + 98: uint16(21486), + 99: uint16(38025), + 100: uint16(39030), + 101: uint16(40718), + 102: uint16(38189), + 103: uint16(23450), + 104: uint16(35746), + 105: uint16(20002), + 106: uint16(19996), + 107: uint16(20908), + 108: uint16(33891), + 109: uint16(25026), + 110: uint16(21160), + 111: uint16(26635), + 112: uint16(20375), + 113: uint16(24683), + 114: uint16(20923), + 115: uint16(27934), + 116: uint16(20828), + 117: uint16(25238), + 118: uint16(26007), + 119: uint16(38497), + 120: uint16(35910), + 121: uint16(36887), + 122: uint16(30168), + 123: uint16(37117), + 124: uint16(30563), + 125: uint16(27602), + 126: uint16(29322), + 127: uint16(29420), + 128: uint16(35835), + 129: uint16(22581), + 130: uint16(30585), + 131: uint16(36172), + 132: uint16(26460), + 133: uint16(38208), + 134: uint16(32922), + 135: uint16(24230), + 136: uint16(28193), + 137: uint16(22930), + 138: uint16(31471), + 139: uint16(30701), + 140: uint16(38203), + 141: uint16(27573), + 142: uint16(26029), + 143: uint16(32526), + 144: uint16(22534), + 145: uint16(20817), + 146: uint16(38431), + 147: uint16(23545), + 148: uint16(22697), + 149: uint16(21544), + 150: uint16(36466), + 151: uint16(25958), + 152: uint16(39039), + 153: uint16(22244), + 154: uint16(38045), + 155: uint16(30462), + 156: uint16(36929), + 157: uint16(25479), + 158: uint16(21702), + 159: uint16(22810), + 160: uint16(22842), + 161: uint16(22427), + 162: uint16(36530), + 163: uint16(26421), + 164: uint16(36346), + 165: uint16(33333), + 166: uint16(21057), + 167: uint16(24816), + 168: uint16(22549), + 169: uint16(34558), + 170: uint16(23784), + 171: uint16(40517), + 172: uint16(20420), + 173: uint16(39069), + 174: uint16(35769), + 175: uint16(23077), + 176: uint16(24694), + 177: uint16(21380), + 178: uint16(25212), + 179: uint16(36943), + 180: uint16(37122), + 181: uint16(39295), + 182: uint16(24681), + 183: uint16(32780), + 184: uint16(20799), + 185: uint16(32819), + 186: uint16(23572), + 187: uint16(39285), + 188: uint16(27953), + 189: uint16(20108), + }, + 54: { + 0: uint16(31261), + 1: uint16(31263), + 2: uint16(31265), + 3: uint16(31266), + 4: uint16(31268), + 5: uint16(31269), + 6: uint16(31270), + 7: uint16(31271), + 8: uint16(31272), + 9: uint16(31273), + 10: uint16(31274), + 11: uint16(31275), + 12: uint16(31276), + 13: uint16(31277), + 14: uint16(31278), + 15: uint16(31279), + 16: uint16(31280), + 17: uint16(31281), + 18: uint16(31282), + 19: uint16(31284), + 20: uint16(31285), + 21: uint16(31286), + 22: uint16(31288), + 23: uint16(31290), + 24: uint16(31294), + 25: uint16(31296), + 26: uint16(31297), + 27: uint16(31298), + 28: uint16(31299), + 29: uint16(31300), + 30: uint16(31301), + 31: uint16(31303), + 32: uint16(31304), + 33: uint16(31305), + 34: uint16(31306), + 35: uint16(31307), + 36: uint16(31308), + 37: uint16(31309), + 38: uint16(31310), + 39: uint16(31311), + 40: uint16(31312), + 41: uint16(31314), + 42: uint16(31315), + 43: uint16(31316), + 44: uint16(31317), + 45: uint16(31318), + 46: uint16(31320), + 47: uint16(31321), + 48: uint16(31322), + 49: uint16(31323), + 50: uint16(31324), + 51: uint16(31325), + 52: uint16(31326), + 53: uint16(31327), + 54: uint16(31328), + 55: uint16(31329), + 56: uint16(31330), + 57: uint16(31331), + 58: uint16(31332), + 59: uint16(31333), + 60: uint16(31334), + 61: uint16(31335), + 62: uint16(31336), + 63: uint16(31337), + 64: uint16(31338), + 65: uint16(31339), + 66: uint16(31340), + 67: uint16(31341), + 68: uint16(31342), + 69: uint16(31343), + 70: uint16(31345), + 71: uint16(31346), + 72: uint16(31347), + 73: uint16(31349), + 74: uint16(31355), + 75: uint16(31356), + 76: uint16(31357), + 77: uint16(31358), + 78: uint16(31362), + 79: uint16(31365), + 80: uint16(31367), + 81: uint16(31369), + 82: uint16(31370), + 83: uint16(31371), + 84: uint16(31372), + 85: uint16(31374), + 86: uint16(31375), + 87: uint16(31376), + 88: uint16(31379), + 89: uint16(31380), + 90: uint16(31385), + 91: uint16(31386), + 92: uint16(31387), + 93: uint16(31390), + 94: uint16(31393), + 95: uint16(31394), + 96: uint16(36144), + 97: uint16(21457), + 98: uint16(32602), + 99: uint16(31567), + 100: uint16(20240), + 101: uint16(20047), + 102: uint16(38400), + 103: uint16(27861), + 104: uint16(29648), + 105: uint16(34281), + 106: uint16(24070), + 107: uint16(30058), + 108: uint16(32763), + 109: uint16(27146), + 110: uint16(30718), + 111: uint16(38034), + 112: uint16(32321), + 113: uint16(20961), + 114: uint16(28902), + 115: uint16(21453), + 116: uint16(36820), + 117: uint16(33539), + 118: uint16(36137), + 119: uint16(29359), + 120: uint16(39277), + 121: uint16(27867), + 122: uint16(22346), + 123: uint16(33459), + 124: uint16(26041), + 125: uint16(32938), + 126: uint16(25151), + 127: uint16(38450), + 128: uint16(22952), + 129: uint16(20223), + 130: uint16(35775), + 131: uint16(32442), + 132: uint16(25918), + 133: uint16(33778), + 134: uint16(38750), + 135: uint16(21857), + 136: uint16(39134), + 137: uint16(32933), + 138: uint16(21290), + 139: uint16(35837), + 140: uint16(21536), + 141: uint16(32954), + 142: uint16(24223), + 143: uint16(27832), + 144: uint16(36153), + 145: uint16(33452), + 146: uint16(37210), + 147: uint16(21545), + 148: uint16(27675), + 149: uint16(20998), + 150: uint16(32439), + 151: uint16(22367), + 152: uint16(28954), + 153: uint16(27774), + 154: uint16(31881), + 155: uint16(22859), + 156: uint16(20221), + 157: uint16(24575), + 158: uint16(24868), + 159: uint16(31914), + 160: uint16(20016), + 161: uint16(23553), + 162: uint16(26539), + 163: uint16(34562), + 164: uint16(23792), + 165: uint16(38155), + 166: uint16(39118), + 167: uint16(30127), + 168: uint16(28925), + 169: uint16(36898), + 170: uint16(20911), + 171: uint16(32541), + 172: uint16(35773), + 173: uint16(22857), + 174: uint16(20964), + 175: uint16(20315), + 176: uint16(21542), + 177: uint16(22827), + 178: uint16(25975), + 179: uint16(32932), + 180: uint16(23413), + 181: uint16(25206), + 182: uint16(25282), + 183: uint16(36752), + 184: uint16(24133), + 185: uint16(27679), + 186: uint16(31526), + 187: uint16(20239), + 188: uint16(20440), + 189: uint16(26381), + }, + 55: { + 0: uint16(31395), + 1: uint16(31396), + 2: uint16(31399), + 3: uint16(31401), + 4: uint16(31402), + 5: uint16(31403), + 6: uint16(31406), + 7: uint16(31407), + 8: uint16(31408), + 9: uint16(31409), + 10: uint16(31410), + 11: uint16(31412), + 12: uint16(31413), + 13: uint16(31414), + 14: uint16(31415), + 15: uint16(31416), + 16: uint16(31417), + 17: uint16(31418), + 18: uint16(31419), + 19: uint16(31420), + 20: uint16(31421), + 21: uint16(31422), + 22: uint16(31424), + 23: uint16(31425), + 24: uint16(31426), + 25: uint16(31427), + 26: uint16(31428), + 27: uint16(31429), + 28: uint16(31430), + 29: uint16(31431), + 30: uint16(31432), + 31: uint16(31433), + 32: uint16(31434), + 33: uint16(31436), + 34: uint16(31437), + 35: uint16(31438), + 36: uint16(31439), + 37: uint16(31440), + 38: uint16(31441), + 39: uint16(31442), + 40: uint16(31443), + 41: uint16(31444), + 42: uint16(31445), + 43: uint16(31447), + 44: uint16(31448), + 45: uint16(31450), + 46: uint16(31451), + 47: uint16(31452), + 48: uint16(31453), + 49: uint16(31457), + 50: uint16(31458), + 51: uint16(31460), + 52: uint16(31463), + 53: uint16(31464), + 54: uint16(31465), + 55: uint16(31466), + 56: uint16(31467), + 57: uint16(31468), + 58: uint16(31470), + 59: uint16(31472), + 60: uint16(31473), + 61: uint16(31474), + 62: uint16(31475), + 63: uint16(31476), + 64: uint16(31477), + 65: uint16(31478), + 66: uint16(31479), + 67: uint16(31480), + 68: uint16(31483), + 69: uint16(31484), + 70: uint16(31486), + 71: uint16(31488), + 72: uint16(31489), + 73: uint16(31490), + 74: uint16(31493), + 75: uint16(31495), + 76: uint16(31497), + 77: uint16(31500), + 78: uint16(31501), + 79: uint16(31502), + 80: uint16(31504), + 81: uint16(31506), + 82: uint16(31507), + 83: uint16(31510), + 84: uint16(31511), + 85: uint16(31512), + 86: uint16(31514), + 87: uint16(31516), + 88: uint16(31517), + 89: uint16(31519), + 90: uint16(31521), + 91: uint16(31522), + 92: uint16(31523), + 93: uint16(31527), + 94: uint16(31529), + 95: uint16(31533), + 96: uint16(28014), + 97: uint16(28074), + 98: uint16(31119), + 99: uint16(34993), + 100: uint16(24343), + 101: uint16(29995), + 102: uint16(25242), + 103: uint16(36741), + 104: uint16(20463), + 105: uint16(37340), + 106: uint16(26023), + 107: uint16(33071), + 108: uint16(33105), + 109: uint16(24220), + 110: uint16(33104), + 111: uint16(36212), + 112: uint16(21103), + 113: uint16(35206), + 114: uint16(36171), + 115: uint16(22797), + 116: uint16(20613), + 117: uint16(20184), + 118: uint16(38428), + 119: uint16(29238), + 120: uint16(33145), + 121: uint16(36127), + 122: uint16(23500), + 123: uint16(35747), + 124: uint16(38468), + 125: uint16(22919), + 126: uint16(32538), + 127: uint16(21648), + 128: uint16(22134), + 129: uint16(22030), + 130: uint16(35813), + 131: uint16(25913), + 132: uint16(27010), + 133: uint16(38041), + 134: uint16(30422), + 135: uint16(28297), + 136: uint16(24178), + 137: uint16(29976), + 138: uint16(26438), + 139: uint16(26577), + 140: uint16(31487), + 141: uint16(32925), + 142: uint16(36214), + 143: uint16(24863), + 144: uint16(31174), + 145: uint16(25954), + 146: uint16(36195), + 147: uint16(20872), + 148: uint16(21018), + 149: uint16(38050), + 150: uint16(32568), + 151: uint16(32923), + 152: uint16(32434), + 153: uint16(23703), + 154: uint16(28207), + 155: uint16(26464), + 156: uint16(31705), + 157: uint16(30347), + 158: uint16(39640), + 159: uint16(33167), + 160: uint16(32660), + 161: uint16(31957), + 162: uint16(25630), + 163: uint16(38224), + 164: uint16(31295), + 165: uint16(21578), + 166: uint16(21733), + 167: uint16(27468), + 168: uint16(25601), + 169: uint16(25096), + 170: uint16(40509), + 171: uint16(33011), + 172: uint16(30105), + 173: uint16(21106), + 174: uint16(38761), + 175: uint16(33883), + 176: uint16(26684), + 177: uint16(34532), + 178: uint16(38401), + 179: uint16(38548), + 180: uint16(38124), + 181: uint16(20010), + 182: uint16(21508), + 183: uint16(32473), + 184: uint16(26681), + 185: uint16(36319), + 186: uint16(32789), + 187: uint16(26356), + 188: uint16(24218), + 189: uint16(32697), + }, + 56: { + 0: uint16(31535), + 1: uint16(31536), + 2: uint16(31538), + 3: uint16(31540), + 4: uint16(31541), + 5: uint16(31542), + 6: uint16(31543), + 7: uint16(31545), + 8: uint16(31547), + 9: uint16(31549), + 10: uint16(31551), + 11: uint16(31552), + 12: uint16(31553), + 13: uint16(31554), + 14: uint16(31555), + 15: uint16(31556), + 16: uint16(31558), + 17: uint16(31560), + 18: uint16(31562), + 19: uint16(31565), + 20: uint16(31566), + 21: uint16(31571), + 22: uint16(31573), + 23: uint16(31575), + 24: uint16(31577), + 25: uint16(31580), + 26: uint16(31582), + 27: uint16(31583), + 28: uint16(31585), + 29: uint16(31587), + 30: uint16(31588), + 31: uint16(31589), + 32: uint16(31590), + 33: uint16(31591), + 34: uint16(31592), + 35: uint16(31593), + 36: uint16(31594), + 37: uint16(31595), + 38: uint16(31596), + 39: uint16(31597), + 40: uint16(31599), + 41: uint16(31600), + 42: uint16(31603), + 43: uint16(31604), + 44: uint16(31606), + 45: uint16(31608), + 46: uint16(31610), + 47: uint16(31612), + 48: uint16(31613), + 49: uint16(31615), + 50: uint16(31617), + 51: uint16(31618), + 52: uint16(31619), + 53: uint16(31620), + 54: uint16(31622), + 55: uint16(31623), + 56: uint16(31624), + 57: uint16(31625), + 58: uint16(31626), + 59: uint16(31627), + 60: uint16(31628), + 61: uint16(31630), + 62: uint16(31631), + 63: uint16(31633), + 64: uint16(31634), + 65: uint16(31635), + 66: uint16(31638), + 67: uint16(31640), + 68: uint16(31641), + 69: uint16(31642), + 70: uint16(31643), + 71: uint16(31646), + 72: uint16(31647), + 73: uint16(31648), + 74: uint16(31651), + 75: uint16(31652), + 76: uint16(31653), + 77: uint16(31662), + 78: uint16(31663), + 79: uint16(31664), + 80: uint16(31666), + 81: uint16(31667), + 82: uint16(31669), + 83: uint16(31670), + 84: uint16(31671), + 85: uint16(31673), + 86: uint16(31674), + 87: uint16(31675), + 88: uint16(31676), + 89: uint16(31677), + 90: uint16(31678), + 91: uint16(31679), + 92: uint16(31680), + 93: uint16(31682), + 94: uint16(31683), + 95: uint16(31684), + 96: uint16(22466), + 97: uint16(32831), + 98: uint16(26775), + 99: uint16(24037), + 100: uint16(25915), + 101: uint16(21151), + 102: uint16(24685), + 103: uint16(40858), + 104: uint16(20379), + 105: uint16(36524), + 106: uint16(20844), + 107: uint16(23467), + 108: uint16(24339), + 109: uint16(24041), + 110: uint16(27742), + 111: uint16(25329), + 112: uint16(36129), + 113: uint16(20849), + 114: uint16(38057), + 115: uint16(21246), + 116: uint16(27807), + 117: uint16(33503), + 118: uint16(29399), + 119: uint16(22434), + 120: uint16(26500), + 121: uint16(36141), + 122: uint16(22815), + 123: uint16(36764), + 124: uint16(33735), + 125: uint16(21653), + 126: uint16(31629), + 127: uint16(20272), + 128: uint16(27837), + 129: uint16(23396), + 130: uint16(22993), + 131: uint16(40723), + 132: uint16(21476), + 133: uint16(34506), + 134: uint16(39592), + 135: uint16(35895), + 136: uint16(32929), + 137: uint16(25925), + 138: uint16(39038), + 139: uint16(22266), + 140: uint16(38599), + 141: uint16(21038), + 142: uint16(29916), + 143: uint16(21072), + 144: uint16(23521), + 145: uint16(25346), + 146: uint16(35074), + 147: uint16(20054), + 148: uint16(25296), + 149: uint16(24618), + 150: uint16(26874), + 151: uint16(20851), + 152: uint16(23448), + 153: uint16(20896), + 154: uint16(35266), + 155: uint16(31649), + 156: uint16(39302), + 157: uint16(32592), + 158: uint16(24815), + 159: uint16(28748), + 160: uint16(36143), + 161: uint16(20809), + 162: uint16(24191), + 163: uint16(36891), + 164: uint16(29808), + 165: uint16(35268), + 166: uint16(22317), + 167: uint16(30789), + 168: uint16(24402), + 169: uint16(40863), + 170: uint16(38394), + 171: uint16(36712), + 172: uint16(39740), + 173: uint16(35809), + 174: uint16(30328), + 175: uint16(26690), + 176: uint16(26588), + 177: uint16(36330), + 178: uint16(36149), + 179: uint16(21053), + 180: uint16(36746), + 181: uint16(28378), + 182: uint16(26829), + 183: uint16(38149), + 184: uint16(37101), + 185: uint16(22269), + 186: uint16(26524), + 187: uint16(35065), + 188: uint16(36807), + 189: uint16(21704), + }, + 57: { + 0: uint16(31685), + 1: uint16(31688), + 2: uint16(31689), + 3: uint16(31690), + 4: uint16(31691), + 5: uint16(31693), + 6: uint16(31694), + 7: uint16(31695), + 8: uint16(31696), + 9: uint16(31698), + 10: uint16(31700), + 11: uint16(31701), + 12: uint16(31702), + 13: uint16(31703), + 14: uint16(31704), + 15: uint16(31707), + 16: uint16(31708), + 17: uint16(31710), + 18: uint16(31711), + 19: uint16(31712), + 20: uint16(31714), + 21: uint16(31715), + 22: uint16(31716), + 23: uint16(31719), + 24: uint16(31720), + 25: uint16(31721), + 26: uint16(31723), + 27: uint16(31724), + 28: uint16(31725), + 29: uint16(31727), + 30: uint16(31728), + 31: uint16(31730), + 32: uint16(31731), + 33: uint16(31732), + 34: uint16(31733), + 35: uint16(31734), + 36: uint16(31736), + 37: uint16(31737), + 38: uint16(31738), + 39: uint16(31739), + 40: uint16(31741), + 41: uint16(31743), + 42: uint16(31744), + 43: uint16(31745), + 44: uint16(31746), + 45: uint16(31747), + 46: uint16(31748), + 47: uint16(31749), + 48: uint16(31750), + 49: uint16(31752), + 50: uint16(31753), + 51: uint16(31754), + 52: uint16(31757), + 53: uint16(31758), + 54: uint16(31760), + 55: uint16(31761), + 56: uint16(31762), + 57: uint16(31763), + 58: uint16(31764), + 59: uint16(31765), + 60: uint16(31767), + 61: uint16(31768), + 62: uint16(31769), + 63: uint16(31770), + 64: uint16(31771), + 65: uint16(31772), + 66: uint16(31773), + 67: uint16(31774), + 68: uint16(31776), + 69: uint16(31777), + 70: uint16(31778), + 71: uint16(31779), + 72: uint16(31780), + 73: uint16(31781), + 74: uint16(31784), + 75: uint16(31785), + 76: uint16(31787), + 77: uint16(31788), + 78: uint16(31789), + 79: uint16(31790), + 80: uint16(31791), + 81: uint16(31792), + 82: uint16(31793), + 83: uint16(31794), + 84: uint16(31795), + 85: uint16(31796), + 86: uint16(31797), + 87: uint16(31798), + 88: uint16(31799), + 89: uint16(31801), + 90: uint16(31802), + 91: uint16(31803), + 92: uint16(31804), + 93: uint16(31805), + 94: uint16(31806), + 95: uint16(31810), + 96: uint16(39608), + 97: uint16(23401), + 98: uint16(28023), + 99: uint16(27686), + 100: uint16(20133), + 101: uint16(23475), + 102: uint16(39559), + 103: uint16(37219), + 104: uint16(25000), + 105: uint16(37039), + 106: uint16(38889), + 107: uint16(21547), + 108: uint16(28085), + 109: uint16(23506), + 110: uint16(20989), + 111: uint16(21898), + 112: uint16(32597), + 113: uint16(32752), + 114: uint16(25788), + 115: uint16(25421), + 116: uint16(26097), + 117: uint16(25022), + 118: uint16(24717), + 119: uint16(28938), + 120: uint16(27735), + 121: uint16(27721), + 122: uint16(22831), + 123: uint16(26477), + 124: uint16(33322), + 125: uint16(22741), + 126: uint16(22158), + 127: uint16(35946), + 128: uint16(27627), + 129: uint16(37085), + 130: uint16(22909), + 131: uint16(32791), + 132: uint16(21495), + 133: uint16(28009), + 134: uint16(21621), + 135: uint16(21917), + 136: uint16(33655), + 137: uint16(33743), + 138: uint16(26680), + 139: uint16(31166), + 140: uint16(21644), + 141: uint16(20309), + 142: uint16(21512), + 143: uint16(30418), + 144: uint16(35977), + 145: uint16(38402), + 146: uint16(27827), + 147: uint16(28088), + 148: uint16(36203), + 149: uint16(35088), + 150: uint16(40548), + 151: uint16(36154), + 152: uint16(22079), + 153: uint16(40657), + 154: uint16(30165), + 155: uint16(24456), + 156: uint16(29408), + 157: uint16(24680), + 158: uint16(21756), + 159: uint16(20136), + 160: uint16(27178), + 161: uint16(34913), + 162: uint16(24658), + 163: uint16(36720), + 164: uint16(21700), + 165: uint16(28888), + 166: uint16(34425), + 167: uint16(40511), + 168: uint16(27946), + 169: uint16(23439), + 170: uint16(24344), + 171: uint16(32418), + 172: uint16(21897), + 173: uint16(20399), + 174: uint16(29492), + 175: uint16(21564), + 176: uint16(21402), + 177: uint16(20505), + 178: uint16(21518), + 179: uint16(21628), + 180: uint16(20046), + 181: uint16(24573), + 182: uint16(29786), + 183: uint16(22774), + 184: uint16(33899), + 185: uint16(32993), + 186: uint16(34676), + 187: uint16(29392), + 188: uint16(31946), + 189: uint16(28246), + }, + 58: { + 0: uint16(31811), + 1: uint16(31812), + 2: uint16(31813), + 3: uint16(31814), + 4: uint16(31815), + 5: uint16(31816), + 6: uint16(31817), + 7: uint16(31818), + 8: uint16(31819), + 9: uint16(31820), + 10: uint16(31822), + 11: uint16(31823), + 12: uint16(31824), + 13: uint16(31825), + 14: uint16(31826), + 15: uint16(31827), + 16: uint16(31828), + 17: uint16(31829), + 18: uint16(31830), + 19: uint16(31831), + 20: uint16(31832), + 21: uint16(31833), + 22: uint16(31834), + 23: uint16(31835), + 24: uint16(31836), + 25: uint16(31837), + 26: uint16(31838), + 27: uint16(31839), + 28: uint16(31840), + 29: uint16(31841), + 30: uint16(31842), + 31: uint16(31843), + 32: uint16(31844), + 33: uint16(31845), + 34: uint16(31846), + 35: uint16(31847), + 36: uint16(31848), + 37: uint16(31849), + 38: uint16(31850), + 39: uint16(31851), + 40: uint16(31852), + 41: uint16(31853), + 42: uint16(31854), + 43: uint16(31855), + 44: uint16(31856), + 45: uint16(31857), + 46: uint16(31858), + 47: uint16(31861), + 48: uint16(31862), + 49: uint16(31863), + 50: uint16(31864), + 51: uint16(31865), + 52: uint16(31866), + 53: uint16(31870), + 54: uint16(31871), + 55: uint16(31872), + 56: uint16(31873), + 57: uint16(31874), + 58: uint16(31875), + 59: uint16(31876), + 60: uint16(31877), + 61: uint16(31878), + 62: uint16(31879), + 63: uint16(31880), + 64: uint16(31882), + 65: uint16(31883), + 66: uint16(31884), + 67: uint16(31885), + 68: uint16(31886), + 69: uint16(31887), + 70: uint16(31888), + 71: uint16(31891), + 72: uint16(31892), + 73: uint16(31894), + 74: uint16(31897), + 75: uint16(31898), + 76: uint16(31899), + 77: uint16(31904), + 78: uint16(31905), + 79: uint16(31907), + 80: uint16(31910), + 81: uint16(31911), + 82: uint16(31912), + 83: uint16(31913), + 84: uint16(31915), + 85: uint16(31916), + 86: uint16(31917), + 87: uint16(31919), + 88: uint16(31920), + 89: uint16(31924), + 90: uint16(31925), + 91: uint16(31926), + 92: uint16(31927), + 93: uint16(31928), + 94: uint16(31930), + 95: uint16(31931), + 96: uint16(24359), + 97: uint16(34382), + 98: uint16(21804), + 99: uint16(25252), + 100: uint16(20114), + 101: uint16(27818), + 102: uint16(25143), + 103: uint16(33457), + 104: uint16(21719), + 105: uint16(21326), + 106: uint16(29502), + 107: uint16(28369), + 108: uint16(30011), + 109: uint16(21010), + 110: uint16(21270), + 111: uint16(35805), + 112: uint16(27088), + 113: uint16(24458), + 114: uint16(24576), + 115: uint16(28142), + 116: uint16(22351), + 117: uint16(27426), + 118: uint16(29615), + 119: uint16(26707), + 120: uint16(36824), + 121: uint16(32531), + 122: uint16(25442), + 123: uint16(24739), + 124: uint16(21796), + 125: uint16(30186), + 126: uint16(35938), + 127: uint16(28949), + 128: uint16(28067), + 129: uint16(23462), + 130: uint16(24187), + 131: uint16(33618), + 132: uint16(24908), + 133: uint16(40644), + 134: uint16(30970), + 135: uint16(34647), + 136: uint16(31783), + 137: uint16(30343), + 138: uint16(20976), + 139: uint16(24822), + 140: uint16(29004), + 141: uint16(26179), + 142: uint16(24140), + 143: uint16(24653), + 144: uint16(35854), + 145: uint16(28784), + 146: uint16(25381), + 147: uint16(36745), + 148: uint16(24509), + 149: uint16(24674), + 150: uint16(34516), + 151: uint16(22238), + 152: uint16(27585), + 153: uint16(24724), + 154: uint16(24935), + 155: uint16(21321), + 156: uint16(24800), + 157: uint16(26214), + 158: uint16(36159), + 159: uint16(31229), + 160: uint16(20250), + 161: uint16(28905), + 162: uint16(27719), + 163: uint16(35763), + 164: uint16(35826), + 165: uint16(32472), + 166: uint16(33636), + 167: uint16(26127), + 168: uint16(23130), + 169: uint16(39746), + 170: uint16(27985), + 171: uint16(28151), + 172: uint16(35905), + 173: uint16(27963), + 174: uint16(20249), + 175: uint16(28779), + 176: uint16(33719), + 177: uint16(25110), + 178: uint16(24785), + 179: uint16(38669), + 180: uint16(36135), + 181: uint16(31096), + 182: uint16(20987), + 183: uint16(22334), + 184: uint16(22522), + 185: uint16(26426), + 186: uint16(30072), + 187: uint16(31293), + 188: uint16(31215), + 189: uint16(31637), + }, + 59: { + 0: uint16(31935), + 1: uint16(31936), + 2: uint16(31938), + 3: uint16(31939), + 4: uint16(31940), + 5: uint16(31942), + 6: uint16(31945), + 7: uint16(31947), + 8: uint16(31950), + 9: uint16(31951), + 10: uint16(31952), + 11: uint16(31953), + 12: uint16(31954), + 13: uint16(31955), + 14: uint16(31956), + 15: uint16(31960), + 16: uint16(31962), + 17: uint16(31963), + 18: uint16(31965), + 19: uint16(31966), + 20: uint16(31969), + 21: uint16(31970), + 22: uint16(31971), + 23: uint16(31972), + 24: uint16(31973), + 25: uint16(31974), + 26: uint16(31975), + 27: uint16(31977), + 28: uint16(31978), + 29: uint16(31979), + 30: uint16(31980), + 31: uint16(31981), + 32: uint16(31982), + 33: uint16(31984), + 34: uint16(31985), + 35: uint16(31986), + 36: uint16(31987), + 37: uint16(31988), + 38: uint16(31989), + 39: uint16(31990), + 40: uint16(31991), + 41: uint16(31993), + 42: uint16(31994), + 43: uint16(31996), + 44: uint16(31997), + 45: uint16(31998), + 46: uint16(31999), + 47: uint16(32000), + 48: uint16(32001), + 49: uint16(32002), + 50: uint16(32003), + 51: uint16(32004), + 52: uint16(32005), + 53: uint16(32006), + 54: uint16(32007), + 55: uint16(32008), + 56: uint16(32009), + 57: uint16(32011), + 58: uint16(32012), + 59: uint16(32013), + 60: uint16(32014), + 61: uint16(32015), + 62: uint16(32016), + 63: uint16(32017), + 64: uint16(32018), + 65: uint16(32019), + 66: uint16(32020), + 67: uint16(32021), + 68: uint16(32022), + 69: uint16(32023), + 70: uint16(32024), + 71: uint16(32025), + 72: uint16(32026), + 73: uint16(32027), + 74: uint16(32028), + 75: uint16(32029), + 76: uint16(32030), + 77: uint16(32031), + 78: uint16(32033), + 79: uint16(32035), + 80: uint16(32036), + 81: uint16(32037), + 82: uint16(32038), + 83: uint16(32040), + 84: uint16(32041), + 85: uint16(32042), + 86: uint16(32044), + 87: uint16(32045), + 88: uint16(32046), + 89: uint16(32048), + 90: uint16(32049), + 91: uint16(32050), + 92: uint16(32051), + 93: uint16(32052), + 94: uint16(32053), + 95: uint16(32054), + 96: uint16(32908), + 97: uint16(39269), + 98: uint16(36857), + 99: uint16(28608), + 100: uint16(35749), + 101: uint16(40481), + 102: uint16(23020), + 103: uint16(32489), + 104: uint16(32521), + 105: uint16(21513), + 106: uint16(26497), + 107: uint16(26840), + 108: uint16(36753), + 109: uint16(31821), + 110: uint16(38598), + 111: uint16(21450), + 112: uint16(24613), + 113: uint16(30142), + 114: uint16(27762), + 115: uint16(21363), + 116: uint16(23241), + 117: uint16(32423), + 118: uint16(25380), + 119: uint16(20960), + 120: uint16(33034), + 121: uint16(24049), + 122: uint16(34015), + 123: uint16(25216), + 124: uint16(20864), + 125: uint16(23395), + 126: uint16(20238), + 127: uint16(31085), + 128: uint16(21058), + 129: uint16(24760), + 130: uint16(27982), + 131: uint16(23492), + 132: uint16(23490), + 133: uint16(35745), + 134: uint16(35760), + 135: uint16(26082), + 136: uint16(24524), + 137: uint16(38469), + 138: uint16(22931), + 139: uint16(32487), + 140: uint16(32426), + 141: uint16(22025), + 142: uint16(26551), + 143: uint16(22841), + 144: uint16(20339), + 145: uint16(23478), + 146: uint16(21152), + 147: uint16(33626), + 148: uint16(39050), + 149: uint16(36158), + 150: uint16(30002), + 151: uint16(38078), + 152: uint16(20551), + 153: uint16(31292), + 154: uint16(20215), + 155: uint16(26550), + 156: uint16(39550), + 157: uint16(23233), + 158: uint16(27516), + 159: uint16(30417), + 160: uint16(22362), + 161: uint16(23574), + 162: uint16(31546), + 163: uint16(38388), + 164: uint16(29006), + 165: uint16(20860), + 166: uint16(32937), + 167: uint16(33392), + 168: uint16(22904), + 169: uint16(32516), + 170: uint16(33575), + 171: uint16(26816), + 172: uint16(26604), + 173: uint16(30897), + 174: uint16(30839), + 175: uint16(25315), + 176: uint16(25441), + 177: uint16(31616), + 178: uint16(20461), + 179: uint16(21098), + 180: uint16(20943), + 181: uint16(33616), + 182: uint16(27099), + 183: uint16(37492), + 184: uint16(36341), + 185: uint16(36145), + 186: uint16(35265), + 187: uint16(38190), + 188: uint16(31661), + 189: uint16(20214), + }, + 60: { + 0: uint16(32055), + 1: uint16(32056), + 2: uint16(32057), + 3: uint16(32058), + 4: uint16(32059), + 5: uint16(32060), + 6: uint16(32061), + 7: uint16(32062), + 8: uint16(32063), + 9: uint16(32064), + 10: uint16(32065), + 11: uint16(32066), + 12: uint16(32067), + 13: uint16(32068), + 14: uint16(32069), + 15: uint16(32070), + 16: uint16(32071), + 17: uint16(32072), + 18: uint16(32073), + 19: uint16(32074), + 20: uint16(32075), + 21: uint16(32076), + 22: uint16(32077), + 23: uint16(32078), + 24: uint16(32079), + 25: uint16(32080), + 26: uint16(32081), + 27: uint16(32082), + 28: uint16(32083), + 29: uint16(32084), + 30: uint16(32085), + 31: uint16(32086), + 32: uint16(32087), + 33: uint16(32088), + 34: uint16(32089), + 35: uint16(32090), + 36: uint16(32091), + 37: uint16(32092), + 38: uint16(32093), + 39: uint16(32094), + 40: uint16(32095), + 41: uint16(32096), + 42: uint16(32097), + 43: uint16(32098), + 44: uint16(32099), + 45: uint16(32100), + 46: uint16(32101), + 47: uint16(32102), + 48: uint16(32103), + 49: uint16(32104), + 50: uint16(32105), + 51: uint16(32106), + 52: uint16(32107), + 53: uint16(32108), + 54: uint16(32109), + 55: uint16(32111), + 56: uint16(32112), + 57: uint16(32113), + 58: uint16(32114), + 59: uint16(32115), + 60: uint16(32116), + 61: uint16(32117), + 62: uint16(32118), + 63: uint16(32120), + 64: uint16(32121), + 65: uint16(32122), + 66: uint16(32123), + 67: uint16(32124), + 68: uint16(32125), + 69: uint16(32126), + 70: uint16(32127), + 71: uint16(32128), + 72: uint16(32129), + 73: uint16(32130), + 74: uint16(32131), + 75: uint16(32132), + 76: uint16(32133), + 77: uint16(32134), + 78: uint16(32135), + 79: uint16(32136), + 80: uint16(32137), + 81: uint16(32138), + 82: uint16(32139), + 83: uint16(32140), + 84: uint16(32141), + 85: uint16(32142), + 86: uint16(32143), + 87: uint16(32144), + 88: uint16(32145), + 89: uint16(32146), + 90: uint16(32147), + 91: uint16(32148), + 92: uint16(32149), + 93: uint16(32150), + 94: uint16(32151), + 95: uint16(32152), + 96: uint16(20581), + 97: uint16(33328), + 98: uint16(21073), + 99: uint16(39279), + 100: uint16(28176), + 101: uint16(28293), + 102: uint16(28071), + 103: uint16(24314), + 104: uint16(20725), + 105: uint16(23004), + 106: uint16(23558), + 107: uint16(27974), + 108: uint16(27743), + 109: uint16(30086), + 110: uint16(33931), + 111: uint16(26728), + 112: uint16(22870), + 113: uint16(35762), + 114: uint16(21280), + 115: uint16(37233), + 116: uint16(38477), + 117: uint16(34121), + 118: uint16(26898), + 119: uint16(30977), + 120: uint16(28966), + 121: uint16(33014), + 122: uint16(20132), + 123: uint16(37066), + 124: uint16(27975), + 125: uint16(39556), + 126: uint16(23047), + 127: uint16(22204), + 128: uint16(25605), + 129: uint16(38128), + 130: uint16(30699), + 131: uint16(20389), + 132: uint16(33050), + 133: uint16(29409), + 134: uint16(35282), + 135: uint16(39290), + 136: uint16(32564), + 137: uint16(32478), + 138: uint16(21119), + 139: uint16(25945), + 140: uint16(37237), + 141: uint16(36735), + 142: uint16(36739), + 143: uint16(21483), + 144: uint16(31382), + 145: uint16(25581), + 146: uint16(25509), + 147: uint16(30342), + 148: uint16(31224), + 149: uint16(34903), + 150: uint16(38454), + 151: uint16(25130), + 152: uint16(21163), + 153: uint16(33410), + 154: uint16(26708), + 155: uint16(26480), + 156: uint16(25463), + 157: uint16(30571), + 158: uint16(31469), + 159: uint16(27905), + 160: uint16(32467), + 161: uint16(35299), + 162: uint16(22992), + 163: uint16(25106), + 164: uint16(34249), + 165: uint16(33445), + 166: uint16(30028), + 167: uint16(20511), + 168: uint16(20171), + 169: uint16(30117), + 170: uint16(35819), + 171: uint16(23626), + 172: uint16(24062), + 173: uint16(31563), + 174: uint16(26020), + 175: uint16(37329), + 176: uint16(20170), + 177: uint16(27941), + 178: uint16(35167), + 179: uint16(32039), + 180: uint16(38182), + 181: uint16(20165), + 182: uint16(35880), + 183: uint16(36827), + 184: uint16(38771), + 185: uint16(26187), + 186: uint16(31105), + 187: uint16(36817), + 188: uint16(28908), + 189: uint16(28024), + }, + 61: { + 0: uint16(32153), + 1: uint16(32154), + 2: uint16(32155), + 3: uint16(32156), + 4: uint16(32157), + 5: uint16(32158), + 6: uint16(32159), + 7: uint16(32160), + 8: uint16(32161), + 9: uint16(32162), + 10: uint16(32163), + 11: uint16(32164), + 12: uint16(32165), + 13: uint16(32167), + 14: uint16(32168), + 15: uint16(32169), + 16: uint16(32170), + 17: uint16(32171), + 18: uint16(32172), + 19: uint16(32173), + 20: uint16(32175), + 21: uint16(32176), + 22: uint16(32177), + 23: uint16(32178), + 24: uint16(32179), + 25: uint16(32180), + 26: uint16(32181), + 27: uint16(32182), + 28: uint16(32183), + 29: uint16(32184), + 30: uint16(32185), + 31: uint16(32186), + 32: uint16(32187), + 33: uint16(32188), + 34: uint16(32189), + 35: uint16(32190), + 36: uint16(32191), + 37: uint16(32192), + 38: uint16(32193), + 39: uint16(32194), + 40: uint16(32195), + 41: uint16(32196), + 42: uint16(32197), + 43: uint16(32198), + 44: uint16(32199), + 45: uint16(32200), + 46: uint16(32201), + 47: uint16(32202), + 48: uint16(32203), + 49: uint16(32204), + 50: uint16(32205), + 51: uint16(32206), + 52: uint16(32207), + 53: uint16(32208), + 54: uint16(32209), + 55: uint16(32210), + 56: uint16(32211), + 57: uint16(32212), + 58: uint16(32213), + 59: uint16(32214), + 60: uint16(32215), + 61: uint16(32216), + 62: uint16(32217), + 63: uint16(32218), + 64: uint16(32219), + 65: uint16(32220), + 66: uint16(32221), + 67: uint16(32222), + 68: uint16(32223), + 69: uint16(32224), + 70: uint16(32225), + 71: uint16(32226), + 72: uint16(32227), + 73: uint16(32228), + 74: uint16(32229), + 75: uint16(32230), + 76: uint16(32231), + 77: uint16(32232), + 78: uint16(32233), + 79: uint16(32234), + 80: uint16(32235), + 81: uint16(32236), + 82: uint16(32237), + 83: uint16(32238), + 84: uint16(32239), + 85: uint16(32240), + 86: uint16(32241), + 87: uint16(32242), + 88: uint16(32243), + 89: uint16(32244), + 90: uint16(32245), + 91: uint16(32246), + 92: uint16(32247), + 93: uint16(32248), + 94: uint16(32249), + 95: uint16(32250), + 96: uint16(23613), + 97: uint16(21170), + 98: uint16(33606), + 99: uint16(20834), + 100: uint16(33550), + 101: uint16(30555), + 102: uint16(26230), + 103: uint16(40120), + 104: uint16(20140), + 105: uint16(24778), + 106: uint16(31934), + 107: uint16(31923), + 108: uint16(32463), + 109: uint16(20117), + 110: uint16(35686), + 111: uint16(26223), + 112: uint16(39048), + 113: uint16(38745), + 114: uint16(22659), + 115: uint16(25964), + 116: uint16(38236), + 117: uint16(24452), + 118: uint16(30153), + 119: uint16(38742), + 120: uint16(31455), + 121: uint16(31454), + 122: uint16(20928), + 123: uint16(28847), + 124: uint16(31384), + 125: uint16(25578), + 126: uint16(31350), + 127: uint16(32416), + 128: uint16(29590), + 129: uint16(38893), + 130: uint16(20037), + 131: uint16(28792), + 132: uint16(20061), + 133: uint16(37202), + 134: uint16(21417), + 135: uint16(25937), + 136: uint16(26087), + 137: uint16(33276), + 138: uint16(33285), + 139: uint16(21646), + 140: uint16(23601), + 141: uint16(30106), + 142: uint16(38816), + 143: uint16(25304), + 144: uint16(29401), + 145: uint16(30141), + 146: uint16(23621), + 147: uint16(39545), + 148: uint16(33738), + 149: uint16(23616), + 150: uint16(21632), + 151: uint16(30697), + 152: uint16(20030), + 153: uint16(27822), + 154: uint16(32858), + 155: uint16(25298), + 156: uint16(25454), + 157: uint16(24040), + 158: uint16(20855), + 159: uint16(36317), + 160: uint16(36382), + 161: uint16(38191), + 162: uint16(20465), + 163: uint16(21477), + 164: uint16(24807), + 165: uint16(28844), + 166: uint16(21095), + 167: uint16(25424), + 168: uint16(40515), + 169: uint16(23071), + 170: uint16(20518), + 171: uint16(30519), + 172: uint16(21367), + 173: uint16(32482), + 174: uint16(25733), + 175: uint16(25899), + 176: uint16(25225), + 177: uint16(25496), + 178: uint16(20500), + 179: uint16(29237), + 180: uint16(35273), + 181: uint16(20915), + 182: uint16(35776), + 183: uint16(32477), + 184: uint16(22343), + 185: uint16(33740), + 186: uint16(38055), + 187: uint16(20891), + 188: uint16(21531), + 189: uint16(23803), + }, + 62: { + 0: uint16(32251), + 1: uint16(32252), + 2: uint16(32253), + 3: uint16(32254), + 4: uint16(32255), + 5: uint16(32256), + 6: uint16(32257), + 7: uint16(32258), + 8: uint16(32259), + 9: uint16(32260), + 10: uint16(32261), + 11: uint16(32262), + 12: uint16(32263), + 13: uint16(32264), + 14: uint16(32265), + 15: uint16(32266), + 16: uint16(32267), + 17: uint16(32268), + 18: uint16(32269), + 19: uint16(32270), + 20: uint16(32271), + 21: uint16(32272), + 22: uint16(32273), + 23: uint16(32274), + 24: uint16(32275), + 25: uint16(32276), + 26: uint16(32277), + 27: uint16(32278), + 28: uint16(32279), + 29: uint16(32280), + 30: uint16(32281), + 31: uint16(32282), + 32: uint16(32283), + 33: uint16(32284), + 34: uint16(32285), + 35: uint16(32286), + 36: uint16(32287), + 37: uint16(32288), + 38: uint16(32289), + 39: uint16(32290), + 40: uint16(32291), + 41: uint16(32292), + 42: uint16(32293), + 43: uint16(32294), + 44: uint16(32295), + 45: uint16(32296), + 46: uint16(32297), + 47: uint16(32298), + 48: uint16(32299), + 49: uint16(32300), + 50: uint16(32301), + 51: uint16(32302), + 52: uint16(32303), + 53: uint16(32304), + 54: uint16(32305), + 55: uint16(32306), + 56: uint16(32307), + 57: uint16(32308), + 58: uint16(32309), + 59: uint16(32310), + 60: uint16(32311), + 61: uint16(32312), + 62: uint16(32313), + 63: uint16(32314), + 64: uint16(32316), + 65: uint16(32317), + 66: uint16(32318), + 67: uint16(32319), + 68: uint16(32320), + 69: uint16(32322), + 70: uint16(32323), + 71: uint16(32324), + 72: uint16(32325), + 73: uint16(32326), + 74: uint16(32328), + 75: uint16(32329), + 76: uint16(32330), + 77: uint16(32331), + 78: uint16(32332), + 79: uint16(32333), + 80: uint16(32334), + 81: uint16(32335), + 82: uint16(32336), + 83: uint16(32337), + 84: uint16(32338), + 85: uint16(32339), + 86: uint16(32340), + 87: uint16(32341), + 88: uint16(32342), + 89: uint16(32343), + 90: uint16(32344), + 91: uint16(32345), + 92: uint16(32346), + 93: uint16(32347), + 94: uint16(32348), + 95: uint16(32349), + 96: uint16(20426), + 97: uint16(31459), + 98: uint16(27994), + 99: uint16(37089), + 100: uint16(39567), + 101: uint16(21888), + 102: uint16(21654), + 103: uint16(21345), + 104: uint16(21679), + 105: uint16(24320), + 106: uint16(25577), + 107: uint16(26999), + 108: uint16(20975), + 109: uint16(24936), + 110: uint16(21002), + 111: uint16(22570), + 112: uint16(21208), + 113: uint16(22350), + 114: uint16(30733), + 115: uint16(30475), + 116: uint16(24247), + 117: uint16(24951), + 118: uint16(31968), + 119: uint16(25179), + 120: uint16(25239), + 121: uint16(20130), + 122: uint16(28821), + 123: uint16(32771), + 124: uint16(25335), + 125: uint16(28900), + 126: uint16(38752), + 127: uint16(22391), + 128: uint16(33499), + 129: uint16(26607), + 130: uint16(26869), + 131: uint16(30933), + 132: uint16(39063), + 133: uint16(31185), + 134: uint16(22771), + 135: uint16(21683), + 136: uint16(21487), + 137: uint16(28212), + 138: uint16(20811), + 139: uint16(21051), + 140: uint16(23458), + 141: uint16(35838), + 142: uint16(32943), + 143: uint16(21827), + 144: uint16(22438), + 145: uint16(24691), + 146: uint16(22353), + 147: uint16(21549), + 148: uint16(31354), + 149: uint16(24656), + 150: uint16(23380), + 151: uint16(25511), + 152: uint16(25248), + 153: uint16(21475), + 154: uint16(25187), + 155: uint16(23495), + 156: uint16(26543), + 157: uint16(21741), + 158: uint16(31391), + 159: uint16(33510), + 160: uint16(37239), + 161: uint16(24211), + 162: uint16(35044), + 163: uint16(22840), + 164: uint16(22446), + 165: uint16(25358), + 166: uint16(36328), + 167: uint16(33007), + 168: uint16(22359), + 169: uint16(31607), + 170: uint16(20393), + 171: uint16(24555), + 172: uint16(23485), + 173: uint16(27454), + 174: uint16(21281), + 175: uint16(31568), + 176: uint16(29378), + 177: uint16(26694), + 178: uint16(30719), + 179: uint16(30518), + 180: uint16(26103), + 181: uint16(20917), + 182: uint16(20111), + 183: uint16(30420), + 184: uint16(23743), + 185: uint16(31397), + 186: uint16(33909), + 187: uint16(22862), + 188: uint16(39745), + 189: uint16(20608), + }, + 63: { + 0: uint16(32350), + 1: uint16(32351), + 2: uint16(32352), + 3: uint16(32353), + 4: uint16(32354), + 5: uint16(32355), + 6: uint16(32356), + 7: uint16(32357), + 8: uint16(32358), + 9: uint16(32359), + 10: uint16(32360), + 11: uint16(32361), + 12: uint16(32362), + 13: uint16(32363), + 14: uint16(32364), + 15: uint16(32365), + 16: uint16(32366), + 17: uint16(32367), + 18: uint16(32368), + 19: uint16(32369), + 20: uint16(32370), + 21: uint16(32371), + 22: uint16(32372), + 23: uint16(32373), + 24: uint16(32374), + 25: uint16(32375), + 26: uint16(32376), + 27: uint16(32377), + 28: uint16(32378), + 29: uint16(32379), + 30: uint16(32380), + 31: uint16(32381), + 32: uint16(32382), + 33: uint16(32383), + 34: uint16(32384), + 35: uint16(32385), + 36: uint16(32387), + 37: uint16(32388), + 38: uint16(32389), + 39: uint16(32390), + 40: uint16(32391), + 41: uint16(32392), + 42: uint16(32393), + 43: uint16(32394), + 44: uint16(32395), + 45: uint16(32396), + 46: uint16(32397), + 47: uint16(32398), + 48: uint16(32399), + 49: uint16(32400), + 50: uint16(32401), + 51: uint16(32402), + 52: uint16(32403), + 53: uint16(32404), + 54: uint16(32405), + 55: uint16(32406), + 56: uint16(32407), + 57: uint16(32408), + 58: uint16(32409), + 59: uint16(32410), + 60: uint16(32412), + 61: uint16(32413), + 62: uint16(32414), + 63: uint16(32430), + 64: uint16(32436), + 65: uint16(32443), + 66: uint16(32444), + 67: uint16(32470), + 68: uint16(32484), + 69: uint16(32492), + 70: uint16(32505), + 71: uint16(32522), + 72: uint16(32528), + 73: uint16(32542), + 74: uint16(32567), + 75: uint16(32569), + 76: uint16(32571), + 77: uint16(32572), + 78: uint16(32573), + 79: uint16(32574), + 80: uint16(32575), + 81: uint16(32576), + 82: uint16(32577), + 83: uint16(32579), + 84: uint16(32582), + 85: uint16(32583), + 86: uint16(32584), + 87: uint16(32585), + 88: uint16(32586), + 89: uint16(32587), + 90: uint16(32588), + 91: uint16(32589), + 92: uint16(32590), + 93: uint16(32591), + 94: uint16(32594), + 95: uint16(32595), + 96: uint16(39304), + 97: uint16(24871), + 98: uint16(28291), + 99: uint16(22372), + 100: uint16(26118), + 101: uint16(25414), + 102: uint16(22256), + 103: uint16(25324), + 104: uint16(25193), + 105: uint16(24275), + 106: uint16(38420), + 107: uint16(22403), + 108: uint16(25289), + 109: uint16(21895), + 110: uint16(34593), + 111: uint16(33098), + 112: uint16(36771), + 113: uint16(21862), + 114: uint16(33713), + 115: uint16(26469), + 116: uint16(36182), + 117: uint16(34013), + 118: uint16(23146), + 119: uint16(26639), + 120: uint16(25318), + 121: uint16(31726), + 122: uint16(38417), + 123: uint16(20848), + 124: uint16(28572), + 125: uint16(35888), + 126: uint16(25597), + 127: uint16(35272), + 128: uint16(25042), + 129: uint16(32518), + 130: uint16(28866), + 131: uint16(28389), + 132: uint16(29701), + 133: uint16(27028), + 134: uint16(29436), + 135: uint16(24266), + 136: uint16(37070), + 137: uint16(26391), + 138: uint16(28010), + 139: uint16(25438), + 140: uint16(21171), + 141: uint16(29282), + 142: uint16(32769), + 143: uint16(20332), + 144: uint16(23013), + 145: uint16(37226), + 146: uint16(28889), + 147: uint16(28061), + 148: uint16(21202), + 149: uint16(20048), + 150: uint16(38647), + 151: uint16(38253), + 152: uint16(34174), + 153: uint16(30922), + 154: uint16(32047), + 155: uint16(20769), + 156: uint16(22418), + 157: uint16(25794), + 158: uint16(32907), + 159: uint16(31867), + 160: uint16(27882), + 161: uint16(26865), + 162: uint16(26974), + 163: uint16(20919), + 164: uint16(21400), + 165: uint16(26792), + 166: uint16(29313), + 167: uint16(40654), + 168: uint16(31729), + 169: uint16(29432), + 170: uint16(31163), + 171: uint16(28435), + 172: uint16(29702), + 173: uint16(26446), + 174: uint16(37324), + 175: uint16(40100), + 176: uint16(31036), + 177: uint16(33673), + 178: uint16(33620), + 179: uint16(21519), + 180: uint16(26647), + 181: uint16(20029), + 182: uint16(21385), + 183: uint16(21169), + 184: uint16(30782), + 185: uint16(21382), + 186: uint16(21033), + 187: uint16(20616), + 188: uint16(20363), + 189: uint16(20432), + }, + 64: { + 0: uint16(32598), + 1: uint16(32601), + 2: uint16(32603), + 3: uint16(32604), + 4: uint16(32605), + 5: uint16(32606), + 6: uint16(32608), + 7: uint16(32611), + 8: uint16(32612), + 9: uint16(32613), + 10: uint16(32614), + 11: uint16(32615), + 12: uint16(32619), + 13: uint16(32620), + 14: uint16(32621), + 15: uint16(32623), + 16: uint16(32624), + 17: uint16(32627), + 18: uint16(32629), + 19: uint16(32630), + 20: uint16(32631), + 21: uint16(32632), + 22: uint16(32634), + 23: uint16(32635), + 24: uint16(32636), + 25: uint16(32637), + 26: uint16(32639), + 27: uint16(32640), + 28: uint16(32642), + 29: uint16(32643), + 30: uint16(32644), + 31: uint16(32645), + 32: uint16(32646), + 33: uint16(32647), + 34: uint16(32648), + 35: uint16(32649), + 36: uint16(32651), + 37: uint16(32653), + 38: uint16(32655), + 39: uint16(32656), + 40: uint16(32657), + 41: uint16(32658), + 42: uint16(32659), + 43: uint16(32661), + 44: uint16(32662), + 45: uint16(32663), + 46: uint16(32664), + 47: uint16(32665), + 48: uint16(32667), + 49: uint16(32668), + 50: uint16(32672), + 51: uint16(32674), + 52: uint16(32675), + 53: uint16(32677), + 54: uint16(32678), + 55: uint16(32680), + 56: uint16(32681), + 57: uint16(32682), + 58: uint16(32683), + 59: uint16(32684), + 60: uint16(32685), + 61: uint16(32686), + 62: uint16(32689), + 63: uint16(32691), + 64: uint16(32692), + 65: uint16(32693), + 66: uint16(32694), + 67: uint16(32695), + 68: uint16(32698), + 69: uint16(32699), + 70: uint16(32702), + 71: uint16(32704), + 72: uint16(32706), + 73: uint16(32707), + 74: uint16(32708), + 75: uint16(32710), + 76: uint16(32711), + 77: uint16(32712), + 78: uint16(32713), + 79: uint16(32715), + 80: uint16(32717), + 81: uint16(32719), + 82: uint16(32720), + 83: uint16(32721), + 84: uint16(32722), + 85: uint16(32723), + 86: uint16(32726), + 87: uint16(32727), + 88: uint16(32729), + 89: uint16(32730), + 90: uint16(32731), + 91: uint16(32732), + 92: uint16(32733), + 93: uint16(32734), + 94: uint16(32738), + 95: uint16(32739), + 96: uint16(30178), + 97: uint16(31435), + 98: uint16(31890), + 99: uint16(27813), + 100: uint16(38582), + 101: uint16(21147), + 102: uint16(29827), + 103: uint16(21737), + 104: uint16(20457), + 105: uint16(32852), + 106: uint16(33714), + 107: uint16(36830), + 108: uint16(38256), + 109: uint16(24265), + 110: uint16(24604), + 111: uint16(28063), + 112: uint16(24088), + 113: uint16(25947), + 114: uint16(33080), + 115: uint16(38142), + 116: uint16(24651), + 117: uint16(28860), + 118: uint16(32451), + 119: uint16(31918), + 120: uint16(20937), + 121: uint16(26753), + 122: uint16(31921), + 123: uint16(33391), + 124: uint16(20004), + 125: uint16(36742), + 126: uint16(37327), + 127: uint16(26238), + 128: uint16(20142), + 129: uint16(35845), + 130: uint16(25769), + 131: uint16(32842), + 132: uint16(20698), + 133: uint16(30103), + 134: uint16(29134), + 135: uint16(23525), + 136: uint16(36797), + 137: uint16(28518), + 138: uint16(20102), + 139: uint16(25730), + 140: uint16(38243), + 141: uint16(24278), + 142: uint16(26009), + 143: uint16(21015), + 144: uint16(35010), + 145: uint16(28872), + 146: uint16(21155), + 147: uint16(29454), + 148: uint16(29747), + 149: uint16(26519), + 150: uint16(30967), + 151: uint16(38678), + 152: uint16(20020), + 153: uint16(37051), + 154: uint16(40158), + 155: uint16(28107), + 156: uint16(20955), + 157: uint16(36161), + 158: uint16(21533), + 159: uint16(25294), + 160: uint16(29618), + 161: uint16(33777), + 162: uint16(38646), + 163: uint16(40836), + 164: uint16(38083), + 165: uint16(20278), + 166: uint16(32666), + 167: uint16(20940), + 168: uint16(28789), + 169: uint16(38517), + 170: uint16(23725), + 171: uint16(39046), + 172: uint16(21478), + 173: uint16(20196), + 174: uint16(28316), + 175: uint16(29705), + 176: uint16(27060), + 177: uint16(30827), + 178: uint16(39311), + 179: uint16(30041), + 180: uint16(21016), + 181: uint16(30244), + 182: uint16(27969), + 183: uint16(26611), + 184: uint16(20845), + 185: uint16(40857), + 186: uint16(32843), + 187: uint16(21657), + 188: uint16(31548), + 189: uint16(31423), + }, + 65: { + 0: uint16(32740), + 1: uint16(32743), + 2: uint16(32744), + 3: uint16(32746), + 4: uint16(32747), + 5: uint16(32748), + 6: uint16(32749), + 7: uint16(32751), + 8: uint16(32754), + 9: uint16(32756), + 10: uint16(32757), + 11: uint16(32758), + 12: uint16(32759), + 13: uint16(32760), + 14: uint16(32761), + 15: uint16(32762), + 16: uint16(32765), + 17: uint16(32766), + 18: uint16(32767), + 19: uint16(32770), + 20: uint16(32775), + 21: uint16(32776), + 22: uint16(32777), + 23: uint16(32778), + 24: uint16(32782), + 25: uint16(32783), + 26: uint16(32785), + 27: uint16(32787), + 28: uint16(32794), + 29: uint16(32795), + 30: uint16(32797), + 31: uint16(32798), + 32: uint16(32799), + 33: uint16(32801), + 34: uint16(32803), + 35: uint16(32804), + 36: uint16(32811), + 37: uint16(32812), + 38: uint16(32813), + 39: uint16(32814), + 40: uint16(32815), + 41: uint16(32816), + 42: uint16(32818), + 43: uint16(32820), + 44: uint16(32825), + 45: uint16(32826), + 46: uint16(32828), + 47: uint16(32830), + 48: uint16(32832), + 49: uint16(32833), + 50: uint16(32836), + 51: uint16(32837), + 52: uint16(32839), + 53: uint16(32840), + 54: uint16(32841), + 55: uint16(32846), + 56: uint16(32847), + 57: uint16(32848), + 58: uint16(32849), + 59: uint16(32851), + 60: uint16(32853), + 61: uint16(32854), + 62: uint16(32855), + 63: uint16(32857), + 64: uint16(32859), + 65: uint16(32860), + 66: uint16(32861), + 67: uint16(32862), + 68: uint16(32863), + 69: uint16(32864), + 70: uint16(32865), + 71: uint16(32866), + 72: uint16(32867), + 73: uint16(32868), + 74: uint16(32869), + 75: uint16(32870), + 76: uint16(32871), + 77: uint16(32872), + 78: uint16(32875), + 79: uint16(32876), + 80: uint16(32877), + 81: uint16(32878), + 82: uint16(32879), + 83: uint16(32880), + 84: uint16(32882), + 85: uint16(32883), + 86: uint16(32884), + 87: uint16(32885), + 88: uint16(32886), + 89: uint16(32887), + 90: uint16(32888), + 91: uint16(32889), + 92: uint16(32890), + 93: uint16(32891), + 94: uint16(32892), + 95: uint16(32893), + 96: uint16(38534), + 97: uint16(22404), + 98: uint16(25314), + 99: uint16(38471), + 100: uint16(27004), + 101: uint16(23044), + 102: uint16(25602), + 103: uint16(31699), + 104: uint16(28431), + 105: uint16(38475), + 106: uint16(33446), + 107: uint16(21346), + 108: uint16(39045), + 109: uint16(24208), + 110: uint16(28809), + 111: uint16(25523), + 112: uint16(21348), + 113: uint16(34383), + 114: uint16(40065), + 115: uint16(40595), + 116: uint16(30860), + 117: uint16(38706), + 118: uint16(36335), + 119: uint16(36162), + 120: uint16(40575), + 121: uint16(28510), + 122: uint16(31108), + 123: uint16(24405), + 124: uint16(38470), + 125: uint16(25134), + 126: uint16(39540), + 127: uint16(21525), + 128: uint16(38109), + 129: uint16(20387), + 130: uint16(26053), + 131: uint16(23653), + 132: uint16(23649), + 133: uint16(32533), + 134: uint16(34385), + 135: uint16(27695), + 136: uint16(24459), + 137: uint16(29575), + 138: uint16(28388), + 139: uint16(32511), + 140: uint16(23782), + 141: uint16(25371), + 142: uint16(23402), + 143: uint16(28390), + 144: uint16(21365), + 145: uint16(20081), + 146: uint16(25504), + 147: uint16(30053), + 148: uint16(25249), + 149: uint16(36718), + 150: uint16(20262), + 151: uint16(20177), + 152: uint16(27814), + 153: uint16(32438), + 154: uint16(35770), + 155: uint16(33821), + 156: uint16(34746), + 157: uint16(32599), + 158: uint16(36923), + 159: uint16(38179), + 160: uint16(31657), + 161: uint16(39585), + 162: uint16(35064), + 163: uint16(33853), + 164: uint16(27931), + 165: uint16(39558), + 166: uint16(32476), + 167: uint16(22920), + 168: uint16(40635), + 169: uint16(29595), + 170: uint16(30721), + 171: uint16(34434), + 172: uint16(39532), + 173: uint16(39554), + 174: uint16(22043), + 175: uint16(21527), + 176: uint16(22475), + 177: uint16(20080), + 178: uint16(40614), + 179: uint16(21334), + 180: uint16(36808), + 181: uint16(33033), + 182: uint16(30610), + 183: uint16(39314), + 184: uint16(34542), + 185: uint16(28385), + 186: uint16(34067), + 187: uint16(26364), + 188: uint16(24930), + 189: uint16(28459), + }, + 66: { + 0: uint16(32894), + 1: uint16(32897), + 2: uint16(32898), + 3: uint16(32901), + 4: uint16(32904), + 5: uint16(32906), + 6: uint16(32909), + 7: uint16(32910), + 8: uint16(32911), + 9: uint16(32912), + 10: uint16(32913), + 11: uint16(32914), + 12: uint16(32916), + 13: uint16(32917), + 14: uint16(32919), + 15: uint16(32921), + 16: uint16(32926), + 17: uint16(32931), + 18: uint16(32934), + 19: uint16(32935), + 20: uint16(32936), + 21: uint16(32940), + 22: uint16(32944), + 23: uint16(32947), + 24: uint16(32949), + 25: uint16(32950), + 26: uint16(32952), + 27: uint16(32953), + 28: uint16(32955), + 29: uint16(32965), + 30: uint16(32967), + 31: uint16(32968), + 32: uint16(32969), + 33: uint16(32970), + 34: uint16(32971), + 35: uint16(32975), + 36: uint16(32976), + 37: uint16(32977), + 38: uint16(32978), + 39: uint16(32979), + 40: uint16(32980), + 41: uint16(32981), + 42: uint16(32984), + 43: uint16(32991), + 44: uint16(32992), + 45: uint16(32994), + 46: uint16(32995), + 47: uint16(32998), + 48: uint16(33006), + 49: uint16(33013), + 50: uint16(33015), + 51: uint16(33017), + 52: uint16(33019), + 53: uint16(33022), + 54: uint16(33023), + 55: uint16(33024), + 56: uint16(33025), + 57: uint16(33027), + 58: uint16(33028), + 59: uint16(33029), + 60: uint16(33031), + 61: uint16(33032), + 62: uint16(33035), + 63: uint16(33036), + 64: uint16(33045), + 65: uint16(33047), + 66: uint16(33049), + 67: uint16(33051), + 68: uint16(33052), + 69: uint16(33053), + 70: uint16(33055), + 71: uint16(33056), + 72: uint16(33057), + 73: uint16(33058), + 74: uint16(33059), + 75: uint16(33060), + 76: uint16(33061), + 77: uint16(33062), + 78: uint16(33063), + 79: uint16(33064), + 80: uint16(33065), + 81: uint16(33066), + 82: uint16(33067), + 83: uint16(33069), + 84: uint16(33070), + 85: uint16(33072), + 86: uint16(33075), + 87: uint16(33076), + 88: uint16(33077), + 89: uint16(33079), + 90: uint16(33081), + 91: uint16(33082), + 92: uint16(33083), + 93: uint16(33084), + 94: uint16(33085), + 95: uint16(33087), + 96: uint16(35881), + 97: uint16(33426), + 98: uint16(33579), + 99: uint16(30450), + 100: uint16(27667), + 101: uint16(24537), + 102: uint16(33725), + 103: uint16(29483), + 104: uint16(33541), + 105: uint16(38170), + 106: uint16(27611), + 107: uint16(30683), + 108: uint16(38086), + 109: uint16(21359), + 110: uint16(33538), + 111: uint16(20882), + 112: uint16(24125), + 113: uint16(35980), + 114: uint16(36152), + 115: uint16(20040), + 116: uint16(29611), + 117: uint16(26522), + 118: uint16(26757), + 119: uint16(37238), + 120: uint16(38665), + 121: uint16(29028), + 122: uint16(27809), + 123: uint16(30473), + 124: uint16(23186), + 125: uint16(38209), + 126: uint16(27599), + 127: uint16(32654), + 128: uint16(26151), + 129: uint16(23504), + 130: uint16(22969), + 131: uint16(23194), + 132: uint16(38376), + 133: uint16(38391), + 134: uint16(20204), + 135: uint16(33804), + 136: uint16(33945), + 137: uint16(27308), + 138: uint16(30431), + 139: uint16(38192), + 140: uint16(29467), + 141: uint16(26790), + 142: uint16(23391), + 143: uint16(30511), + 144: uint16(37274), + 145: uint16(38753), + 146: uint16(31964), + 147: uint16(36855), + 148: uint16(35868), + 149: uint16(24357), + 150: uint16(31859), + 151: uint16(31192), + 152: uint16(35269), + 153: uint16(27852), + 154: uint16(34588), + 155: uint16(23494), + 156: uint16(24130), + 157: uint16(26825), + 158: uint16(30496), + 159: uint16(32501), + 160: uint16(20885), + 161: uint16(20813), + 162: uint16(21193), + 163: uint16(23081), + 164: uint16(32517), + 165: uint16(38754), + 166: uint16(33495), + 167: uint16(25551), + 168: uint16(30596), + 169: uint16(34256), + 170: uint16(31186), + 171: uint16(28218), + 172: uint16(24217), + 173: uint16(22937), + 174: uint16(34065), + 175: uint16(28781), + 176: uint16(27665), + 177: uint16(25279), + 178: uint16(30399), + 179: uint16(25935), + 180: uint16(24751), + 181: uint16(38397), + 182: uint16(26126), + 183: uint16(34719), + 184: uint16(40483), + 185: uint16(38125), + 186: uint16(21517), + 187: uint16(21629), + 188: uint16(35884), + 189: uint16(25720), + }, + 67: { + 0: uint16(33088), + 1: uint16(33089), + 2: uint16(33090), + 3: uint16(33091), + 4: uint16(33092), + 5: uint16(33093), + 6: uint16(33095), + 7: uint16(33097), + 8: uint16(33101), + 9: uint16(33102), + 10: uint16(33103), + 11: uint16(33106), + 12: uint16(33110), + 13: uint16(33111), + 14: uint16(33112), + 15: uint16(33115), + 16: uint16(33116), + 17: uint16(33117), + 18: uint16(33118), + 19: uint16(33119), + 20: uint16(33121), + 21: uint16(33122), + 22: uint16(33123), + 23: uint16(33124), + 24: uint16(33126), + 25: uint16(33128), + 26: uint16(33130), + 27: uint16(33131), + 28: uint16(33132), + 29: uint16(33135), + 30: uint16(33138), + 31: uint16(33139), + 32: uint16(33141), + 33: uint16(33142), + 34: uint16(33143), + 35: uint16(33144), + 36: uint16(33153), + 37: uint16(33155), + 38: uint16(33156), + 39: uint16(33157), + 40: uint16(33158), + 41: uint16(33159), + 42: uint16(33161), + 43: uint16(33163), + 44: uint16(33164), + 45: uint16(33165), + 46: uint16(33166), + 47: uint16(33168), + 48: uint16(33170), + 49: uint16(33171), + 50: uint16(33172), + 51: uint16(33173), + 52: uint16(33174), + 53: uint16(33175), + 54: uint16(33177), + 55: uint16(33178), + 56: uint16(33182), + 57: uint16(33183), + 58: uint16(33184), + 59: uint16(33185), + 60: uint16(33186), + 61: uint16(33188), + 62: uint16(33189), + 63: uint16(33191), + 64: uint16(33193), + 65: uint16(33195), + 66: uint16(33196), + 67: uint16(33197), + 68: uint16(33198), + 69: uint16(33199), + 70: uint16(33200), + 71: uint16(33201), + 72: uint16(33202), + 73: uint16(33204), + 74: uint16(33205), + 75: uint16(33206), + 76: uint16(33207), + 77: uint16(33208), + 78: uint16(33209), + 79: uint16(33212), + 80: uint16(33213), + 81: uint16(33214), + 82: uint16(33215), + 83: uint16(33220), + 84: uint16(33221), + 85: uint16(33223), + 86: uint16(33224), + 87: uint16(33225), + 88: uint16(33227), + 89: uint16(33229), + 90: uint16(33230), + 91: uint16(33231), + 92: uint16(33232), + 93: uint16(33233), + 94: uint16(33234), + 95: uint16(33235), + 96: uint16(25721), + 97: uint16(34321), + 98: uint16(27169), + 99: uint16(33180), + 100: uint16(30952), + 101: uint16(25705), + 102: uint16(39764), + 103: uint16(25273), + 104: uint16(26411), + 105: uint16(33707), + 106: uint16(22696), + 107: uint16(40664), + 108: uint16(27819), + 109: uint16(28448), + 110: uint16(23518), + 111: uint16(38476), + 112: uint16(35851), + 113: uint16(29279), + 114: uint16(26576), + 115: uint16(25287), + 116: uint16(29281), + 117: uint16(20137), + 118: uint16(22982), + 119: uint16(27597), + 120: uint16(22675), + 121: uint16(26286), + 122: uint16(24149), + 123: uint16(21215), + 124: uint16(24917), + 125: uint16(26408), + 126: uint16(30446), + 127: uint16(30566), + 128: uint16(29287), + 129: uint16(31302), + 130: uint16(25343), + 131: uint16(21738), + 132: uint16(21584), + 133: uint16(38048), + 134: uint16(37027), + 135: uint16(23068), + 136: uint16(32435), + 137: uint16(27670), + 138: uint16(20035), + 139: uint16(22902), + 140: uint16(32784), + 141: uint16(22856), + 142: uint16(21335), + 143: uint16(30007), + 144: uint16(38590), + 145: uint16(22218), + 146: uint16(25376), + 147: uint16(33041), + 148: uint16(24700), + 149: uint16(38393), + 150: uint16(28118), + 151: uint16(21602), + 152: uint16(39297), + 153: uint16(20869), + 154: uint16(23273), + 155: uint16(33021), + 156: uint16(22958), + 157: uint16(38675), + 158: uint16(20522), + 159: uint16(27877), + 160: uint16(23612), + 161: uint16(25311), + 162: uint16(20320), + 163: uint16(21311), + 164: uint16(33147), + 165: uint16(36870), + 166: uint16(28346), + 167: uint16(34091), + 168: uint16(25288), + 169: uint16(24180), + 170: uint16(30910), + 171: uint16(25781), + 172: uint16(25467), + 173: uint16(24565), + 174: uint16(23064), + 175: uint16(37247), + 176: uint16(40479), + 177: uint16(23615), + 178: uint16(25423), + 179: uint16(32834), + 180: uint16(23421), + 181: uint16(21870), + 182: uint16(38218), + 183: uint16(38221), + 184: uint16(28037), + 185: uint16(24744), + 186: uint16(26592), + 187: uint16(29406), + 188: uint16(20957), + 189: uint16(23425), + }, + 68: { + 0: uint16(33236), + 1: uint16(33237), + 2: uint16(33238), + 3: uint16(33239), + 4: uint16(33240), + 5: uint16(33241), + 6: uint16(33242), + 7: uint16(33243), + 8: uint16(33244), + 9: uint16(33245), + 10: uint16(33246), + 11: uint16(33247), + 12: uint16(33248), + 13: uint16(33249), + 14: uint16(33250), + 15: uint16(33252), + 16: uint16(33253), + 17: uint16(33254), + 18: uint16(33256), + 19: uint16(33257), + 20: uint16(33259), + 21: uint16(33262), + 22: uint16(33263), + 23: uint16(33264), + 24: uint16(33265), + 25: uint16(33266), + 26: uint16(33269), + 27: uint16(33270), + 28: uint16(33271), + 29: uint16(33272), + 30: uint16(33273), + 31: uint16(33274), + 32: uint16(33277), + 33: uint16(33279), + 34: uint16(33283), + 35: uint16(33287), + 36: uint16(33288), + 37: uint16(33289), + 38: uint16(33290), + 39: uint16(33291), + 40: uint16(33294), + 41: uint16(33295), + 42: uint16(33297), + 43: uint16(33299), + 44: uint16(33301), + 45: uint16(33302), + 46: uint16(33303), + 47: uint16(33304), + 48: uint16(33305), + 49: uint16(33306), + 50: uint16(33309), + 51: uint16(33312), + 52: uint16(33316), + 53: uint16(33317), + 54: uint16(33318), + 55: uint16(33319), + 56: uint16(33321), + 57: uint16(33326), + 58: uint16(33330), + 59: uint16(33338), + 60: uint16(33340), + 61: uint16(33341), + 62: uint16(33343), + 63: uint16(33344), + 64: uint16(33345), + 65: uint16(33346), + 66: uint16(33347), + 67: uint16(33349), + 68: uint16(33350), + 69: uint16(33352), + 70: uint16(33354), + 71: uint16(33356), + 72: uint16(33357), + 73: uint16(33358), + 74: uint16(33360), + 75: uint16(33361), + 76: uint16(33362), + 77: uint16(33363), + 78: uint16(33364), + 79: uint16(33365), + 80: uint16(33366), + 81: uint16(33367), + 82: uint16(33369), + 83: uint16(33371), + 84: uint16(33372), + 85: uint16(33373), + 86: uint16(33374), + 87: uint16(33376), + 88: uint16(33377), + 89: uint16(33378), + 90: uint16(33379), + 91: uint16(33380), + 92: uint16(33381), + 93: uint16(33382), + 94: uint16(33383), + 95: uint16(33385), + 96: uint16(25319), + 97: uint16(27870), + 98: uint16(29275), + 99: uint16(25197), + 100: uint16(38062), + 101: uint16(32445), + 102: uint16(33043), + 103: uint16(27987), + 104: uint16(20892), + 105: uint16(24324), + 106: uint16(22900), + 107: uint16(21162), + 108: uint16(24594), + 109: uint16(22899), + 110: uint16(26262), + 111: uint16(34384), + 112: uint16(30111), + 113: uint16(25386), + 114: uint16(25062), + 115: uint16(31983), + 116: uint16(35834), + 117: uint16(21734), + 118: uint16(27431), + 119: uint16(40485), + 120: uint16(27572), + 121: uint16(34261), + 122: uint16(21589), + 123: uint16(20598), + 124: uint16(27812), + 125: uint16(21866), + 126: uint16(36276), + 127: uint16(29228), + 128: uint16(24085), + 129: uint16(24597), + 130: uint16(29750), + 131: uint16(25293), + 132: uint16(25490), + 133: uint16(29260), + 134: uint16(24472), + 135: uint16(28227), + 136: uint16(27966), + 137: uint16(25856), + 138: uint16(28504), + 139: uint16(30424), + 140: uint16(30928), + 141: uint16(30460), + 142: uint16(30036), + 143: uint16(21028), + 144: uint16(21467), + 145: uint16(20051), + 146: uint16(24222), + 147: uint16(26049), + 148: uint16(32810), + 149: uint16(32982), + 150: uint16(25243), + 151: uint16(21638), + 152: uint16(21032), + 153: uint16(28846), + 154: uint16(34957), + 155: uint16(36305), + 156: uint16(27873), + 157: uint16(21624), + 158: uint16(32986), + 159: uint16(22521), + 160: uint16(35060), + 161: uint16(36180), + 162: uint16(38506), + 163: uint16(37197), + 164: uint16(20329), + 165: uint16(27803), + 166: uint16(21943), + 167: uint16(30406), + 168: uint16(30768), + 169: uint16(25256), + 170: uint16(28921), + 171: uint16(28558), + 172: uint16(24429), + 173: uint16(34028), + 174: uint16(26842), + 175: uint16(30844), + 176: uint16(31735), + 177: uint16(33192), + 178: uint16(26379), + 179: uint16(40527), + 180: uint16(25447), + 181: uint16(30896), + 182: uint16(22383), + 183: uint16(30738), + 184: uint16(38713), + 185: uint16(25209), + 186: uint16(25259), + 187: uint16(21128), + 188: uint16(29749), + 189: uint16(27607), + }, + 69: { + 0: uint16(33386), + 1: uint16(33387), + 2: uint16(33388), + 3: uint16(33389), + 4: uint16(33393), + 5: uint16(33397), + 6: uint16(33398), + 7: uint16(33399), + 8: uint16(33400), + 9: uint16(33403), + 10: uint16(33404), + 11: uint16(33408), + 12: uint16(33409), + 13: uint16(33411), + 14: uint16(33413), + 15: uint16(33414), + 16: uint16(33415), + 17: uint16(33417), + 18: uint16(33420), + 19: uint16(33424), + 20: uint16(33427), + 21: uint16(33428), + 22: uint16(33429), + 23: uint16(33430), + 24: uint16(33434), + 25: uint16(33435), + 26: uint16(33438), + 27: uint16(33440), + 28: uint16(33442), + 29: uint16(33443), + 30: uint16(33447), + 31: uint16(33458), + 32: uint16(33461), + 33: uint16(33462), + 34: uint16(33466), + 35: uint16(33467), + 36: uint16(33468), + 37: uint16(33471), + 38: uint16(33472), + 39: uint16(33474), + 40: uint16(33475), + 41: uint16(33477), + 42: uint16(33478), + 43: uint16(33481), + 44: uint16(33488), + 45: uint16(33494), + 46: uint16(33497), + 47: uint16(33498), + 48: uint16(33501), + 49: uint16(33506), + 50: uint16(33511), + 51: uint16(33512), + 52: uint16(33513), + 53: uint16(33514), + 54: uint16(33516), + 55: uint16(33517), + 56: uint16(33518), + 57: uint16(33520), + 58: uint16(33522), + 59: uint16(33523), + 60: uint16(33525), + 61: uint16(33526), + 62: uint16(33528), + 63: uint16(33530), + 64: uint16(33532), + 65: uint16(33533), + 66: uint16(33534), + 67: uint16(33535), + 68: uint16(33536), + 69: uint16(33546), + 70: uint16(33547), + 71: uint16(33549), + 72: uint16(33552), + 73: uint16(33554), + 74: uint16(33555), + 75: uint16(33558), + 76: uint16(33560), + 77: uint16(33561), + 78: uint16(33565), + 79: uint16(33566), + 80: uint16(33567), + 81: uint16(33568), + 82: uint16(33569), + 83: uint16(33570), + 84: uint16(33571), + 85: uint16(33572), + 86: uint16(33573), + 87: uint16(33574), + 88: uint16(33577), + 89: uint16(33578), + 90: uint16(33582), + 91: uint16(33584), + 92: uint16(33586), + 93: uint16(33591), + 94: uint16(33595), + 95: uint16(33597), + 96: uint16(21860), + 97: uint16(33086), + 98: uint16(30130), + 99: uint16(30382), + 100: uint16(21305), + 101: uint16(30174), + 102: uint16(20731), + 103: uint16(23617), + 104: uint16(35692), + 105: uint16(31687), + 106: uint16(20559), + 107: uint16(29255), + 108: uint16(39575), + 109: uint16(39128), + 110: uint16(28418), + 111: uint16(29922), + 112: uint16(31080), + 113: uint16(25735), + 114: uint16(30629), + 115: uint16(25340), + 116: uint16(39057), + 117: uint16(36139), + 118: uint16(21697), + 119: uint16(32856), + 120: uint16(20050), + 121: uint16(22378), + 122: uint16(33529), + 123: uint16(33805), + 124: uint16(24179), + 125: uint16(20973), + 126: uint16(29942), + 127: uint16(35780), + 128: uint16(23631), + 129: uint16(22369), + 130: uint16(27900), + 131: uint16(39047), + 132: uint16(23110), + 133: uint16(30772), + 134: uint16(39748), + 135: uint16(36843), + 136: uint16(31893), + 137: uint16(21078), + 138: uint16(25169), + 139: uint16(38138), + 140: uint16(20166), + 141: uint16(33670), + 142: uint16(33889), + 143: uint16(33769), + 144: uint16(33970), + 145: uint16(22484), + 146: uint16(26420), + 147: uint16(22275), + 148: uint16(26222), + 149: uint16(28006), + 150: uint16(35889), + 151: uint16(26333), + 152: uint16(28689), + 153: uint16(26399), + 154: uint16(27450), + 155: uint16(26646), + 156: uint16(25114), + 157: uint16(22971), + 158: uint16(19971), + 159: uint16(20932), + 160: uint16(28422), + 161: uint16(26578), + 162: uint16(27791), + 163: uint16(20854), + 164: uint16(26827), + 165: uint16(22855), + 166: uint16(27495), + 167: uint16(30054), + 168: uint16(23822), + 169: uint16(33040), + 170: uint16(40784), + 171: uint16(26071), + 172: uint16(31048), + 173: uint16(31041), + 174: uint16(39569), + 175: uint16(36215), + 176: uint16(23682), + 177: uint16(20062), + 178: uint16(20225), + 179: uint16(21551), + 180: uint16(22865), + 181: uint16(30732), + 182: uint16(22120), + 183: uint16(27668), + 184: uint16(36804), + 185: uint16(24323), + 186: uint16(27773), + 187: uint16(27875), + 188: uint16(35755), + 189: uint16(25488), + }, + 70: { + 0: uint16(33598), + 1: uint16(33599), + 2: uint16(33601), + 3: uint16(33602), + 4: uint16(33604), + 5: uint16(33605), + 6: uint16(33608), + 7: uint16(33610), + 8: uint16(33611), + 9: uint16(33612), + 10: uint16(33613), + 11: uint16(33614), + 12: uint16(33619), + 13: uint16(33621), + 14: uint16(33622), + 15: uint16(33623), + 16: uint16(33624), + 17: uint16(33625), + 18: uint16(33629), + 19: uint16(33634), + 20: uint16(33648), + 21: uint16(33649), + 22: uint16(33650), + 23: uint16(33651), + 24: uint16(33652), + 25: uint16(33653), + 26: uint16(33654), + 27: uint16(33657), + 28: uint16(33658), + 29: uint16(33662), + 30: uint16(33663), + 31: uint16(33664), + 32: uint16(33665), + 33: uint16(33666), + 34: uint16(33667), + 35: uint16(33668), + 36: uint16(33671), + 37: uint16(33672), + 38: uint16(33674), + 39: uint16(33675), + 40: uint16(33676), + 41: uint16(33677), + 42: uint16(33679), + 43: uint16(33680), + 44: uint16(33681), + 45: uint16(33684), + 46: uint16(33685), + 47: uint16(33686), + 48: uint16(33687), + 49: uint16(33689), + 50: uint16(33690), + 51: uint16(33693), + 52: uint16(33695), + 53: uint16(33697), + 54: uint16(33698), + 55: uint16(33699), + 56: uint16(33700), + 57: uint16(33701), + 58: uint16(33702), + 59: uint16(33703), + 60: uint16(33708), + 61: uint16(33709), + 62: uint16(33710), + 63: uint16(33711), + 64: uint16(33717), + 65: uint16(33723), + 66: uint16(33726), + 67: uint16(33727), + 68: uint16(33730), + 69: uint16(33731), + 70: uint16(33732), + 71: uint16(33734), + 72: uint16(33736), + 73: uint16(33737), + 74: uint16(33739), + 75: uint16(33741), + 76: uint16(33742), + 77: uint16(33744), + 78: uint16(33745), + 79: uint16(33746), + 80: uint16(33747), + 81: uint16(33749), + 82: uint16(33751), + 83: uint16(33753), + 84: uint16(33754), + 85: uint16(33755), + 86: uint16(33758), + 87: uint16(33762), + 88: uint16(33763), + 89: uint16(33764), + 90: uint16(33766), + 91: uint16(33767), + 92: uint16(33768), + 93: uint16(33771), + 94: uint16(33772), + 95: uint16(33773), + 96: uint16(24688), + 97: uint16(27965), + 98: uint16(29301), + 99: uint16(25190), + 100: uint16(38030), + 101: uint16(38085), + 102: uint16(21315), + 103: uint16(36801), + 104: uint16(31614), + 105: uint16(20191), + 106: uint16(35878), + 107: uint16(20094), + 108: uint16(40660), + 109: uint16(38065), + 110: uint16(38067), + 111: uint16(21069), + 112: uint16(28508), + 113: uint16(36963), + 114: uint16(27973), + 115: uint16(35892), + 116: uint16(22545), + 117: uint16(23884), + 118: uint16(27424), + 119: uint16(27465), + 120: uint16(26538), + 121: uint16(21595), + 122: uint16(33108), + 123: uint16(32652), + 124: uint16(22681), + 125: uint16(34103), + 126: uint16(24378), + 127: uint16(25250), + 128: uint16(27207), + 129: uint16(38201), + 130: uint16(25970), + 131: uint16(24708), + 132: uint16(26725), + 133: uint16(30631), + 134: uint16(20052), + 135: uint16(20392), + 136: uint16(24039), + 137: uint16(38808), + 138: uint16(25772), + 139: uint16(32728), + 140: uint16(23789), + 141: uint16(20431), + 142: uint16(31373), + 143: uint16(20999), + 144: uint16(33540), + 145: uint16(19988), + 146: uint16(24623), + 147: uint16(31363), + 148: uint16(38054), + 149: uint16(20405), + 150: uint16(20146), + 151: uint16(31206), + 152: uint16(29748), + 153: uint16(21220), + 154: uint16(33465), + 155: uint16(25810), + 156: uint16(31165), + 157: uint16(23517), + 158: uint16(27777), + 159: uint16(38738), + 160: uint16(36731), + 161: uint16(27682), + 162: uint16(20542), + 163: uint16(21375), + 164: uint16(28165), + 165: uint16(25806), + 166: uint16(26228), + 167: uint16(27696), + 168: uint16(24773), + 169: uint16(39031), + 170: uint16(35831), + 171: uint16(24198), + 172: uint16(29756), + 173: uint16(31351), + 174: uint16(31179), + 175: uint16(19992), + 176: uint16(37041), + 177: uint16(29699), + 178: uint16(27714), + 179: uint16(22234), + 180: uint16(37195), + 181: uint16(27845), + 182: uint16(36235), + 183: uint16(21306), + 184: uint16(34502), + 185: uint16(26354), + 186: uint16(36527), + 187: uint16(23624), + 188: uint16(39537), + 189: uint16(28192), + }, + 71: { + 0: uint16(33774), + 1: uint16(33775), + 2: uint16(33779), + 3: uint16(33780), + 4: uint16(33781), + 5: uint16(33782), + 6: uint16(33783), + 7: uint16(33786), + 8: uint16(33787), + 9: uint16(33788), + 10: uint16(33790), + 11: uint16(33791), + 12: uint16(33792), + 13: uint16(33794), + 14: uint16(33797), + 15: uint16(33799), + 16: uint16(33800), + 17: uint16(33801), + 18: uint16(33802), + 19: uint16(33808), + 20: uint16(33810), + 21: uint16(33811), + 22: uint16(33812), + 23: uint16(33813), + 24: uint16(33814), + 25: uint16(33815), + 26: uint16(33817), + 27: uint16(33818), + 28: uint16(33819), + 29: uint16(33822), + 30: uint16(33823), + 31: uint16(33824), + 32: uint16(33825), + 33: uint16(33826), + 34: uint16(33827), + 35: uint16(33833), + 36: uint16(33834), + 37: uint16(33835), + 38: uint16(33836), + 39: uint16(33837), + 40: uint16(33838), + 41: uint16(33839), + 42: uint16(33840), + 43: uint16(33842), + 44: uint16(33843), + 45: uint16(33844), + 46: uint16(33845), + 47: uint16(33846), + 48: uint16(33847), + 49: uint16(33849), + 50: uint16(33850), + 51: uint16(33851), + 52: uint16(33854), + 53: uint16(33855), + 54: uint16(33856), + 55: uint16(33857), + 56: uint16(33858), + 57: uint16(33859), + 58: uint16(33860), + 59: uint16(33861), + 60: uint16(33863), + 61: uint16(33864), + 62: uint16(33865), + 63: uint16(33866), + 64: uint16(33867), + 65: uint16(33868), + 66: uint16(33869), + 67: uint16(33870), + 68: uint16(33871), + 69: uint16(33872), + 70: uint16(33874), + 71: uint16(33875), + 72: uint16(33876), + 73: uint16(33877), + 74: uint16(33878), + 75: uint16(33880), + 76: uint16(33885), + 77: uint16(33886), + 78: uint16(33887), + 79: uint16(33888), + 80: uint16(33890), + 81: uint16(33892), + 82: uint16(33893), + 83: uint16(33894), + 84: uint16(33895), + 85: uint16(33896), + 86: uint16(33898), + 87: uint16(33902), + 88: uint16(33903), + 89: uint16(33904), + 90: uint16(33906), + 91: uint16(33908), + 92: uint16(33911), + 93: uint16(33913), + 94: uint16(33915), + 95: uint16(33916), + 96: uint16(21462), + 97: uint16(23094), + 98: uint16(40843), + 99: uint16(36259), + 100: uint16(21435), + 101: uint16(22280), + 102: uint16(39079), + 103: uint16(26435), + 104: uint16(37275), + 105: uint16(27849), + 106: uint16(20840), + 107: uint16(30154), + 108: uint16(25331), + 109: uint16(29356), + 110: uint16(21048), + 111: uint16(21149), + 112: uint16(32570), + 113: uint16(28820), + 114: uint16(30264), + 115: uint16(21364), + 116: uint16(40522), + 117: uint16(27063), + 118: uint16(30830), + 119: uint16(38592), + 120: uint16(35033), + 121: uint16(32676), + 122: uint16(28982), + 123: uint16(29123), + 124: uint16(20873), + 125: uint16(26579), + 126: uint16(29924), + 127: uint16(22756), + 128: uint16(25880), + 129: uint16(22199), + 130: uint16(35753), + 131: uint16(39286), + 132: uint16(25200), + 133: uint16(32469), + 134: uint16(24825), + 135: uint16(28909), + 136: uint16(22764), + 137: uint16(20161), + 138: uint16(20154), + 139: uint16(24525), + 140: uint16(38887), + 141: uint16(20219), + 142: uint16(35748), + 143: uint16(20995), + 144: uint16(22922), + 145: uint16(32427), + 146: uint16(25172), + 147: uint16(20173), + 148: uint16(26085), + 149: uint16(25102), + 150: uint16(33592), + 151: uint16(33993), + 152: uint16(33635), + 153: uint16(34701), + 154: uint16(29076), + 155: uint16(28342), + 156: uint16(23481), + 157: uint16(32466), + 158: uint16(20887), + 159: uint16(25545), + 160: uint16(26580), + 161: uint16(32905), + 162: uint16(33593), + 163: uint16(34837), + 164: uint16(20754), + 165: uint16(23418), + 166: uint16(22914), + 167: uint16(36785), + 168: uint16(20083), + 169: uint16(27741), + 170: uint16(20837), + 171: uint16(35109), + 172: uint16(36719), + 173: uint16(38446), + 174: uint16(34122), + 175: uint16(29790), + 176: uint16(38160), + 177: uint16(38384), + 178: uint16(28070), + 179: uint16(33509), + 180: uint16(24369), + 181: uint16(25746), + 182: uint16(27922), + 183: uint16(33832), + 184: uint16(33134), + 185: uint16(40131), + 186: uint16(22622), + 187: uint16(36187), + 188: uint16(19977), + 189: uint16(21441), + }, + 72: { + 0: uint16(33917), + 1: uint16(33918), + 2: uint16(33919), + 3: uint16(33920), + 4: uint16(33921), + 5: uint16(33923), + 6: uint16(33924), + 7: uint16(33925), + 8: uint16(33926), + 9: uint16(33930), + 10: uint16(33933), + 11: uint16(33935), + 12: uint16(33936), + 13: uint16(33937), + 14: uint16(33938), + 15: uint16(33939), + 16: uint16(33940), + 17: uint16(33941), + 18: uint16(33942), + 19: uint16(33944), + 20: uint16(33946), + 21: uint16(33947), + 22: uint16(33949), + 23: uint16(33950), + 24: uint16(33951), + 25: uint16(33952), + 26: uint16(33954), + 27: uint16(33955), + 28: uint16(33956), + 29: uint16(33957), + 30: uint16(33958), + 31: uint16(33959), + 32: uint16(33960), + 33: uint16(33961), + 34: uint16(33962), + 35: uint16(33963), + 36: uint16(33964), + 37: uint16(33965), + 38: uint16(33966), + 39: uint16(33968), + 40: uint16(33969), + 41: uint16(33971), + 42: uint16(33973), + 43: uint16(33974), + 44: uint16(33975), + 45: uint16(33979), + 46: uint16(33980), + 47: uint16(33982), + 48: uint16(33984), + 49: uint16(33986), + 50: uint16(33987), + 51: uint16(33989), + 52: uint16(33990), + 53: uint16(33991), + 54: uint16(33992), + 55: uint16(33995), + 56: uint16(33996), + 57: uint16(33998), + 58: uint16(33999), + 59: uint16(34002), + 60: uint16(34004), + 61: uint16(34005), + 62: uint16(34007), + 63: uint16(34008), + 64: uint16(34009), + 65: uint16(34010), + 66: uint16(34011), + 67: uint16(34012), + 68: uint16(34014), + 69: uint16(34017), + 70: uint16(34018), + 71: uint16(34020), + 72: uint16(34023), + 73: uint16(34024), + 74: uint16(34025), + 75: uint16(34026), + 76: uint16(34027), + 77: uint16(34029), + 78: uint16(34030), + 79: uint16(34031), + 80: uint16(34033), + 81: uint16(34034), + 82: uint16(34035), + 83: uint16(34036), + 84: uint16(34037), + 85: uint16(34038), + 86: uint16(34039), + 87: uint16(34040), + 88: uint16(34041), + 89: uint16(34042), + 90: uint16(34043), + 91: uint16(34045), + 92: uint16(34046), + 93: uint16(34048), + 94: uint16(34049), + 95: uint16(34050), + 96: uint16(20254), + 97: uint16(25955), + 98: uint16(26705), + 99: uint16(21971), + 100: uint16(20007), + 101: uint16(25620), + 102: uint16(39578), + 103: uint16(25195), + 104: uint16(23234), + 105: uint16(29791), + 106: uint16(33394), + 107: uint16(28073), + 108: uint16(26862), + 109: uint16(20711), + 110: uint16(33678), + 111: uint16(30722), + 112: uint16(26432), + 113: uint16(21049), + 114: uint16(27801), + 115: uint16(32433), + 116: uint16(20667), + 117: uint16(21861), + 118: uint16(29022), + 119: uint16(31579), + 120: uint16(26194), + 121: uint16(29642), + 122: uint16(33515), + 123: uint16(26441), + 124: uint16(23665), + 125: uint16(21024), + 126: uint16(29053), + 127: uint16(34923), + 128: uint16(38378), + 129: uint16(38485), + 130: uint16(25797), + 131: uint16(36193), + 132: uint16(33203), + 133: uint16(21892), + 134: uint16(27733), + 135: uint16(25159), + 136: uint16(32558), + 137: uint16(22674), + 138: uint16(20260), + 139: uint16(21830), + 140: uint16(36175), + 141: uint16(26188), + 142: uint16(19978), + 143: uint16(23578), + 144: uint16(35059), + 145: uint16(26786), + 146: uint16(25422), + 147: uint16(31245), + 148: uint16(28903), + 149: uint16(33421), + 150: uint16(21242), + 151: uint16(38902), + 152: uint16(23569), + 153: uint16(21736), + 154: uint16(37045), + 155: uint16(32461), + 156: uint16(22882), + 157: uint16(36170), + 158: uint16(34503), + 159: uint16(33292), + 160: uint16(33293), + 161: uint16(36198), + 162: uint16(25668), + 163: uint16(23556), + 164: uint16(24913), + 165: uint16(28041), + 166: uint16(31038), + 167: uint16(35774), + 168: uint16(30775), + 169: uint16(30003), + 170: uint16(21627), + 171: uint16(20280), + 172: uint16(36523), + 173: uint16(28145), + 174: uint16(23072), + 175: uint16(32453), + 176: uint16(31070), + 177: uint16(27784), + 178: uint16(23457), + 179: uint16(23158), + 180: uint16(29978), + 181: uint16(32958), + 182: uint16(24910), + 183: uint16(28183), + 184: uint16(22768), + 185: uint16(29983), + 186: uint16(29989), + 187: uint16(29298), + 188: uint16(21319), + 189: uint16(32499), + }, + 73: { + 0: uint16(34051), + 1: uint16(34052), + 2: uint16(34053), + 3: uint16(34054), + 4: uint16(34055), + 5: uint16(34056), + 6: uint16(34057), + 7: uint16(34058), + 8: uint16(34059), + 9: uint16(34061), + 10: uint16(34062), + 11: uint16(34063), + 12: uint16(34064), + 13: uint16(34066), + 14: uint16(34068), + 15: uint16(34069), + 16: uint16(34070), + 17: uint16(34072), + 18: uint16(34073), + 19: uint16(34075), + 20: uint16(34076), + 21: uint16(34077), + 22: uint16(34078), + 23: uint16(34080), + 24: uint16(34082), + 25: uint16(34083), + 26: uint16(34084), + 27: uint16(34085), + 28: uint16(34086), + 29: uint16(34087), + 30: uint16(34088), + 31: uint16(34089), + 32: uint16(34090), + 33: uint16(34093), + 34: uint16(34094), + 35: uint16(34095), + 36: uint16(34096), + 37: uint16(34097), + 38: uint16(34098), + 39: uint16(34099), + 40: uint16(34100), + 41: uint16(34101), + 42: uint16(34102), + 43: uint16(34110), + 44: uint16(34111), + 45: uint16(34112), + 46: uint16(34113), + 47: uint16(34114), + 48: uint16(34116), + 49: uint16(34117), + 50: uint16(34118), + 51: uint16(34119), + 52: uint16(34123), + 53: uint16(34124), + 54: uint16(34125), + 55: uint16(34126), + 56: uint16(34127), + 57: uint16(34128), + 58: uint16(34129), + 59: uint16(34130), + 60: uint16(34131), + 61: uint16(34132), + 62: uint16(34133), + 63: uint16(34135), + 64: uint16(34136), + 65: uint16(34138), + 66: uint16(34139), + 67: uint16(34140), + 68: uint16(34141), + 69: uint16(34143), + 70: uint16(34144), + 71: uint16(34145), + 72: uint16(34146), + 73: uint16(34147), + 74: uint16(34149), + 75: uint16(34150), + 76: uint16(34151), + 77: uint16(34153), + 78: uint16(34154), + 79: uint16(34155), + 80: uint16(34156), + 81: uint16(34157), + 82: uint16(34158), + 83: uint16(34159), + 84: uint16(34160), + 85: uint16(34161), + 86: uint16(34163), + 87: uint16(34165), + 88: uint16(34166), + 89: uint16(34167), + 90: uint16(34168), + 91: uint16(34172), + 92: uint16(34173), + 93: uint16(34175), + 94: uint16(34176), + 95: uint16(34177), + 96: uint16(30465), + 97: uint16(30427), + 98: uint16(21097), + 99: uint16(32988), + 100: uint16(22307), + 101: uint16(24072), + 102: uint16(22833), + 103: uint16(29422), + 104: uint16(26045), + 105: uint16(28287), + 106: uint16(35799), + 107: uint16(23608), + 108: uint16(34417), + 109: uint16(21313), + 110: uint16(30707), + 111: uint16(25342), + 112: uint16(26102), + 113: uint16(20160), + 114: uint16(39135), + 115: uint16(34432), + 116: uint16(23454), + 117: uint16(35782), + 118: uint16(21490), + 119: uint16(30690), + 120: uint16(20351), + 121: uint16(23630), + 122: uint16(39542), + 123: uint16(22987), + 124: uint16(24335), + 125: uint16(31034), + 126: uint16(22763), + 127: uint16(19990), + 128: uint16(26623), + 129: uint16(20107), + 130: uint16(25325), + 131: uint16(35475), + 132: uint16(36893), + 133: uint16(21183), + 134: uint16(26159), + 135: uint16(21980), + 136: uint16(22124), + 137: uint16(36866), + 138: uint16(20181), + 139: uint16(20365), + 140: uint16(37322), + 141: uint16(39280), + 142: uint16(27663), + 143: uint16(24066), + 144: uint16(24643), + 145: uint16(23460), + 146: uint16(35270), + 147: uint16(35797), + 148: uint16(25910), + 149: uint16(25163), + 150: uint16(39318), + 151: uint16(23432), + 152: uint16(23551), + 153: uint16(25480), + 154: uint16(21806), + 155: uint16(21463), + 156: uint16(30246), + 157: uint16(20861), + 158: uint16(34092), + 159: uint16(26530), + 160: uint16(26803), + 161: uint16(27530), + 162: uint16(25234), + 163: uint16(36755), + 164: uint16(21460), + 165: uint16(33298), + 166: uint16(28113), + 167: uint16(30095), + 168: uint16(20070), + 169: uint16(36174), + 170: uint16(23408), + 171: uint16(29087), + 172: uint16(34223), + 173: uint16(26257), + 174: uint16(26329), + 175: uint16(32626), + 176: uint16(34560), + 177: uint16(40653), + 178: uint16(40736), + 179: uint16(23646), + 180: uint16(26415), + 181: uint16(36848), + 182: uint16(26641), + 183: uint16(26463), + 184: uint16(25101), + 185: uint16(31446), + 186: uint16(22661), + 187: uint16(24246), + 188: uint16(25968), + 189: uint16(28465), + }, + 74: { + 0: uint16(34178), + 1: uint16(34179), + 2: uint16(34182), + 3: uint16(34184), + 4: uint16(34185), + 5: uint16(34186), + 6: uint16(34187), + 7: uint16(34188), + 8: uint16(34189), + 9: uint16(34190), + 10: uint16(34192), + 11: uint16(34193), + 12: uint16(34194), + 13: uint16(34195), + 14: uint16(34196), + 15: uint16(34197), + 16: uint16(34198), + 17: uint16(34199), + 18: uint16(34200), + 19: uint16(34201), + 20: uint16(34202), + 21: uint16(34205), + 22: uint16(34206), + 23: uint16(34207), + 24: uint16(34208), + 25: uint16(34209), + 26: uint16(34210), + 27: uint16(34211), + 28: uint16(34213), + 29: uint16(34214), + 30: uint16(34215), + 31: uint16(34217), + 32: uint16(34219), + 33: uint16(34220), + 34: uint16(34221), + 35: uint16(34225), + 36: uint16(34226), + 37: uint16(34227), + 38: uint16(34228), + 39: uint16(34229), + 40: uint16(34230), + 41: uint16(34232), + 42: uint16(34234), + 43: uint16(34235), + 44: uint16(34236), + 45: uint16(34237), + 46: uint16(34238), + 47: uint16(34239), + 48: uint16(34240), + 49: uint16(34242), + 50: uint16(34243), + 51: uint16(34244), + 52: uint16(34245), + 53: uint16(34246), + 54: uint16(34247), + 55: uint16(34248), + 56: uint16(34250), + 57: uint16(34251), + 58: uint16(34252), + 59: uint16(34253), + 60: uint16(34254), + 61: uint16(34257), + 62: uint16(34258), + 63: uint16(34260), + 64: uint16(34262), + 65: uint16(34263), + 66: uint16(34264), + 67: uint16(34265), + 68: uint16(34266), + 69: uint16(34267), + 70: uint16(34269), + 71: uint16(34270), + 72: uint16(34271), + 73: uint16(34272), + 74: uint16(34273), + 75: uint16(34274), + 76: uint16(34275), + 77: uint16(34277), + 78: uint16(34278), + 79: uint16(34279), + 80: uint16(34280), + 81: uint16(34282), + 82: uint16(34283), + 83: uint16(34284), + 84: uint16(34285), + 85: uint16(34286), + 86: uint16(34287), + 87: uint16(34288), + 88: uint16(34289), + 89: uint16(34290), + 90: uint16(34291), + 91: uint16(34292), + 92: uint16(34293), + 93: uint16(34294), + 94: uint16(34295), + 95: uint16(34296), + 96: uint16(24661), + 97: uint16(21047), + 98: uint16(32781), + 99: uint16(25684), + 100: uint16(34928), + 101: uint16(29993), + 102: uint16(24069), + 103: uint16(26643), + 104: uint16(25332), + 105: uint16(38684), + 106: uint16(21452), + 107: uint16(29245), + 108: uint16(35841), + 109: uint16(27700), + 110: uint16(30561), + 111: uint16(31246), + 112: uint16(21550), + 113: uint16(30636), + 114: uint16(39034), + 115: uint16(33308), + 116: uint16(35828), + 117: uint16(30805), + 118: uint16(26388), + 119: uint16(28865), + 120: uint16(26031), + 121: uint16(25749), + 122: uint16(22070), + 123: uint16(24605), + 124: uint16(31169), + 125: uint16(21496), + 126: uint16(19997), + 127: uint16(27515), + 128: uint16(32902), + 129: uint16(23546), + 130: uint16(21987), + 131: uint16(22235), + 132: uint16(20282), + 133: uint16(20284), + 134: uint16(39282), + 135: uint16(24051), + 136: uint16(26494), + 137: uint16(32824), + 138: uint16(24578), + 139: uint16(39042), + 140: uint16(36865), + 141: uint16(23435), + 142: uint16(35772), + 143: uint16(35829), + 144: uint16(25628), + 145: uint16(33368), + 146: uint16(25822), + 147: uint16(22013), + 148: uint16(33487), + 149: uint16(37221), + 150: uint16(20439), + 151: uint16(32032), + 152: uint16(36895), + 153: uint16(31903), + 154: uint16(20723), + 155: uint16(22609), + 156: uint16(28335), + 157: uint16(23487), + 158: uint16(35785), + 159: uint16(32899), + 160: uint16(37240), + 161: uint16(33948), + 162: uint16(31639), + 163: uint16(34429), + 164: uint16(38539), + 165: uint16(38543), + 166: uint16(32485), + 167: uint16(39635), + 168: uint16(30862), + 169: uint16(23681), + 170: uint16(31319), + 171: uint16(36930), + 172: uint16(38567), + 173: uint16(31071), + 174: uint16(23385), + 175: uint16(25439), + 176: uint16(31499), + 177: uint16(34001), + 178: uint16(26797), + 179: uint16(21766), + 180: uint16(32553), + 181: uint16(29712), + 182: uint16(32034), + 183: uint16(38145), + 184: uint16(25152), + 185: uint16(22604), + 186: uint16(20182), + 187: uint16(23427), + 188: uint16(22905), + 189: uint16(22612), + }, + 75: { + 0: uint16(34297), + 1: uint16(34298), + 2: uint16(34300), + 3: uint16(34301), + 4: uint16(34302), + 5: uint16(34304), + 6: uint16(34305), + 7: uint16(34306), + 8: uint16(34307), + 9: uint16(34308), + 10: uint16(34310), + 11: uint16(34311), + 12: uint16(34312), + 13: uint16(34313), + 14: uint16(34314), + 15: uint16(34315), + 16: uint16(34316), + 17: uint16(34317), + 18: uint16(34318), + 19: uint16(34319), + 20: uint16(34320), + 21: uint16(34322), + 22: uint16(34323), + 23: uint16(34324), + 24: uint16(34325), + 25: uint16(34327), + 26: uint16(34328), + 27: uint16(34329), + 28: uint16(34330), + 29: uint16(34331), + 30: uint16(34332), + 31: uint16(34333), + 32: uint16(34334), + 33: uint16(34335), + 34: uint16(34336), + 35: uint16(34337), + 36: uint16(34338), + 37: uint16(34339), + 38: uint16(34340), + 39: uint16(34341), + 40: uint16(34342), + 41: uint16(34344), + 42: uint16(34346), + 43: uint16(34347), + 44: uint16(34348), + 45: uint16(34349), + 46: uint16(34350), + 47: uint16(34351), + 48: uint16(34352), + 49: uint16(34353), + 50: uint16(34354), + 51: uint16(34355), + 52: uint16(34356), + 53: uint16(34357), + 54: uint16(34358), + 55: uint16(34359), + 56: uint16(34361), + 57: uint16(34362), + 58: uint16(34363), + 59: uint16(34365), + 60: uint16(34366), + 61: uint16(34367), + 62: uint16(34368), + 63: uint16(34369), + 64: uint16(34370), + 65: uint16(34371), + 66: uint16(34372), + 67: uint16(34373), + 68: uint16(34374), + 69: uint16(34375), + 70: uint16(34376), + 71: uint16(34377), + 72: uint16(34378), + 73: uint16(34379), + 74: uint16(34380), + 75: uint16(34386), + 76: uint16(34387), + 77: uint16(34389), + 78: uint16(34390), + 79: uint16(34391), + 80: uint16(34392), + 81: uint16(34393), + 82: uint16(34395), + 83: uint16(34396), + 84: uint16(34397), + 85: uint16(34399), + 86: uint16(34400), + 87: uint16(34401), + 88: uint16(34403), + 89: uint16(34404), + 90: uint16(34405), + 91: uint16(34406), + 92: uint16(34407), + 93: uint16(34408), + 94: uint16(34409), + 95: uint16(34410), + 96: uint16(29549), + 97: uint16(25374), + 98: uint16(36427), + 99: uint16(36367), + 100: uint16(32974), + 101: uint16(33492), + 102: uint16(25260), + 103: uint16(21488), + 104: uint16(27888), + 105: uint16(37214), + 106: uint16(22826), + 107: uint16(24577), + 108: uint16(27760), + 109: uint16(22349), + 110: uint16(25674), + 111: uint16(36138), + 112: uint16(30251), + 113: uint16(28393), + 114: uint16(22363), + 115: uint16(27264), + 116: uint16(30192), + 117: uint16(28525), + 118: uint16(35885), + 119: uint16(35848), + 120: uint16(22374), + 121: uint16(27631), + 122: uint16(34962), + 123: uint16(30899), + 124: uint16(25506), + 125: uint16(21497), + 126: uint16(28845), + 127: uint16(27748), + 128: uint16(22616), + 129: uint16(25642), + 130: uint16(22530), + 131: uint16(26848), + 132: uint16(33179), + 133: uint16(21776), + 134: uint16(31958), + 135: uint16(20504), + 136: uint16(36538), + 137: uint16(28108), + 138: uint16(36255), + 139: uint16(28907), + 140: uint16(25487), + 141: uint16(28059), + 142: uint16(28372), + 143: uint16(32486), + 144: uint16(33796), + 145: uint16(26691), + 146: uint16(36867), + 147: uint16(28120), + 148: uint16(38518), + 149: uint16(35752), + 150: uint16(22871), + 151: uint16(29305), + 152: uint16(34276), + 153: uint16(33150), + 154: uint16(30140), + 155: uint16(35466), + 156: uint16(26799), + 157: uint16(21076), + 158: uint16(36386), + 159: uint16(38161), + 160: uint16(25552), + 161: uint16(39064), + 162: uint16(36420), + 163: uint16(21884), + 164: uint16(20307), + 165: uint16(26367), + 166: uint16(22159), + 167: uint16(24789), + 168: uint16(28053), + 169: uint16(21059), + 170: uint16(23625), + 171: uint16(22825), + 172: uint16(28155), + 173: uint16(22635), + 174: uint16(30000), + 175: uint16(29980), + 176: uint16(24684), + 177: uint16(33300), + 178: uint16(33094), + 179: uint16(25361), + 180: uint16(26465), + 181: uint16(36834), + 182: uint16(30522), + 183: uint16(36339), + 184: uint16(36148), + 185: uint16(38081), + 186: uint16(24086), + 187: uint16(21381), + 188: uint16(21548), + 189: uint16(28867), + }, + 76: { + 0: uint16(34413), + 1: uint16(34415), + 2: uint16(34416), + 3: uint16(34418), + 4: uint16(34419), + 5: uint16(34420), + 6: uint16(34421), + 7: uint16(34422), + 8: uint16(34423), + 9: uint16(34424), + 10: uint16(34435), + 11: uint16(34436), + 12: uint16(34437), + 13: uint16(34438), + 14: uint16(34439), + 15: uint16(34440), + 16: uint16(34441), + 17: uint16(34446), + 18: uint16(34447), + 19: uint16(34448), + 20: uint16(34449), + 21: uint16(34450), + 22: uint16(34452), + 23: uint16(34454), + 24: uint16(34455), + 25: uint16(34456), + 26: uint16(34457), + 27: uint16(34458), + 28: uint16(34459), + 29: uint16(34462), + 30: uint16(34463), + 31: uint16(34464), + 32: uint16(34465), + 33: uint16(34466), + 34: uint16(34469), + 35: uint16(34470), + 36: uint16(34475), + 37: uint16(34477), + 38: uint16(34478), + 39: uint16(34482), + 40: uint16(34483), + 41: uint16(34487), + 42: uint16(34488), + 43: uint16(34489), + 44: uint16(34491), + 45: uint16(34492), + 46: uint16(34493), + 47: uint16(34494), + 48: uint16(34495), + 49: uint16(34497), + 50: uint16(34498), + 51: uint16(34499), + 52: uint16(34501), + 53: uint16(34504), + 54: uint16(34508), + 55: uint16(34509), + 56: uint16(34514), + 57: uint16(34515), + 58: uint16(34517), + 59: uint16(34518), + 60: uint16(34519), + 61: uint16(34522), + 62: uint16(34524), + 63: uint16(34525), + 64: uint16(34528), + 65: uint16(34529), + 66: uint16(34530), + 67: uint16(34531), + 68: uint16(34533), + 69: uint16(34534), + 70: uint16(34535), + 71: uint16(34536), + 72: uint16(34538), + 73: uint16(34539), + 74: uint16(34540), + 75: uint16(34543), + 76: uint16(34549), + 77: uint16(34550), + 78: uint16(34551), + 79: uint16(34554), + 80: uint16(34555), + 81: uint16(34556), + 82: uint16(34557), + 83: uint16(34559), + 84: uint16(34561), + 85: uint16(34564), + 86: uint16(34565), + 87: uint16(34566), + 88: uint16(34571), + 89: uint16(34572), + 90: uint16(34574), + 91: uint16(34575), + 92: uint16(34576), + 93: uint16(34577), + 94: uint16(34580), + 95: uint16(34582), + 96: uint16(27712), + 97: uint16(24311), + 98: uint16(20572), + 99: uint16(20141), + 100: uint16(24237), + 101: uint16(25402), + 102: uint16(33351), + 103: uint16(36890), + 104: uint16(26704), + 105: uint16(37230), + 106: uint16(30643), + 107: uint16(21516), + 108: uint16(38108), + 109: uint16(24420), + 110: uint16(31461), + 111: uint16(26742), + 112: uint16(25413), + 113: uint16(31570), + 114: uint16(32479), + 115: uint16(30171), + 116: uint16(20599), + 117: uint16(25237), + 118: uint16(22836), + 119: uint16(36879), + 120: uint16(20984), + 121: uint16(31171), + 122: uint16(31361), + 123: uint16(22270), + 124: uint16(24466), + 125: uint16(36884), + 126: uint16(28034), + 127: uint16(23648), + 128: uint16(22303), + 129: uint16(21520), + 130: uint16(20820), + 131: uint16(28237), + 132: uint16(22242), + 133: uint16(25512), + 134: uint16(39059), + 135: uint16(33151), + 136: uint16(34581), + 137: uint16(35114), + 138: uint16(36864), + 139: uint16(21534), + 140: uint16(23663), + 141: uint16(33216), + 142: uint16(25302), + 143: uint16(25176), + 144: uint16(33073), + 145: uint16(40501), + 146: uint16(38464), + 147: uint16(39534), + 148: uint16(39548), + 149: uint16(26925), + 150: uint16(22949), + 151: uint16(25299), + 152: uint16(21822), + 153: uint16(25366), + 154: uint16(21703), + 155: uint16(34521), + 156: uint16(27964), + 157: uint16(23043), + 158: uint16(29926), + 159: uint16(34972), + 160: uint16(27498), + 161: uint16(22806), + 162: uint16(35916), + 163: uint16(24367), + 164: uint16(28286), + 165: uint16(29609), + 166: uint16(39037), + 167: uint16(20024), + 168: uint16(28919), + 169: uint16(23436), + 170: uint16(30871), + 171: uint16(25405), + 172: uint16(26202), + 173: uint16(30358), + 174: uint16(24779), + 175: uint16(23451), + 176: uint16(23113), + 177: uint16(19975), + 178: uint16(33109), + 179: uint16(27754), + 180: uint16(29579), + 181: uint16(20129), + 182: uint16(26505), + 183: uint16(32593), + 184: uint16(24448), + 185: uint16(26106), + 186: uint16(26395), + 187: uint16(24536), + 188: uint16(22916), + 189: uint16(23041), + }, + 77: { + 0: uint16(34585), + 1: uint16(34587), + 2: uint16(34589), + 3: uint16(34591), + 4: uint16(34592), + 5: uint16(34596), + 6: uint16(34598), + 7: uint16(34599), + 8: uint16(34600), + 9: uint16(34602), + 10: uint16(34603), + 11: uint16(34604), + 12: uint16(34605), + 13: uint16(34607), + 14: uint16(34608), + 15: uint16(34610), + 16: uint16(34611), + 17: uint16(34613), + 18: uint16(34614), + 19: uint16(34616), + 20: uint16(34617), + 21: uint16(34618), + 22: uint16(34620), + 23: uint16(34621), + 24: uint16(34624), + 25: uint16(34625), + 26: uint16(34626), + 27: uint16(34627), + 28: uint16(34628), + 29: uint16(34629), + 30: uint16(34630), + 31: uint16(34634), + 32: uint16(34635), + 33: uint16(34637), + 34: uint16(34639), + 35: uint16(34640), + 36: uint16(34641), + 37: uint16(34642), + 38: uint16(34644), + 39: uint16(34645), + 40: uint16(34646), + 41: uint16(34648), + 42: uint16(34650), + 43: uint16(34651), + 44: uint16(34652), + 45: uint16(34653), + 46: uint16(34654), + 47: uint16(34655), + 48: uint16(34657), + 49: uint16(34658), + 50: uint16(34662), + 51: uint16(34663), + 52: uint16(34664), + 53: uint16(34665), + 54: uint16(34666), + 55: uint16(34667), + 56: uint16(34668), + 57: uint16(34669), + 58: uint16(34671), + 59: uint16(34673), + 60: uint16(34674), + 61: uint16(34675), + 62: uint16(34677), + 63: uint16(34679), + 64: uint16(34680), + 65: uint16(34681), + 66: uint16(34682), + 67: uint16(34687), + 68: uint16(34688), + 69: uint16(34689), + 70: uint16(34692), + 71: uint16(34694), + 72: uint16(34695), + 73: uint16(34697), + 74: uint16(34698), + 75: uint16(34700), + 76: uint16(34702), + 77: uint16(34703), + 78: uint16(34704), + 79: uint16(34705), + 80: uint16(34706), + 81: uint16(34708), + 82: uint16(34709), + 83: uint16(34710), + 84: uint16(34712), + 85: uint16(34713), + 86: uint16(34714), + 87: uint16(34715), + 88: uint16(34716), + 89: uint16(34717), + 90: uint16(34718), + 91: uint16(34720), + 92: uint16(34721), + 93: uint16(34722), + 94: uint16(34723), + 95: uint16(34724), + 96: uint16(24013), + 97: uint16(24494), + 98: uint16(21361), + 99: uint16(38886), + 100: uint16(36829), + 101: uint16(26693), + 102: uint16(22260), + 103: uint16(21807), + 104: uint16(24799), + 105: uint16(20026), + 106: uint16(28493), + 107: uint16(32500), + 108: uint16(33479), + 109: uint16(33806), + 110: uint16(22996), + 111: uint16(20255), + 112: uint16(20266), + 113: uint16(23614), + 114: uint16(32428), + 115: uint16(26410), + 116: uint16(34074), + 117: uint16(21619), + 118: uint16(30031), + 119: uint16(32963), + 120: uint16(21890), + 121: uint16(39759), + 122: uint16(20301), + 123: uint16(28205), + 124: uint16(35859), + 125: uint16(23561), + 126: uint16(24944), + 127: uint16(21355), + 128: uint16(30239), + 129: uint16(28201), + 130: uint16(34442), + 131: uint16(25991), + 132: uint16(38395), + 133: uint16(32441), + 134: uint16(21563), + 135: uint16(31283), + 136: uint16(32010), + 137: uint16(38382), + 138: uint16(21985), + 139: uint16(32705), + 140: uint16(29934), + 141: uint16(25373), + 142: uint16(34583), + 143: uint16(28065), + 144: uint16(31389), + 145: uint16(25105), + 146: uint16(26017), + 147: uint16(21351), + 148: uint16(25569), + 149: uint16(27779), + 150: uint16(24043), + 151: uint16(21596), + 152: uint16(38056), + 153: uint16(20044), + 154: uint16(27745), + 155: uint16(35820), + 156: uint16(23627), + 157: uint16(26080), + 158: uint16(33436), + 159: uint16(26791), + 160: uint16(21566), + 161: uint16(21556), + 162: uint16(27595), + 163: uint16(27494), + 164: uint16(20116), + 165: uint16(25410), + 166: uint16(21320), + 167: uint16(33310), + 168: uint16(20237), + 169: uint16(20398), + 170: uint16(22366), + 171: uint16(25098), + 172: uint16(38654), + 173: uint16(26212), + 174: uint16(29289), + 175: uint16(21247), + 176: uint16(21153), + 177: uint16(24735), + 178: uint16(35823), + 179: uint16(26132), + 180: uint16(29081), + 181: uint16(26512), + 182: uint16(35199), + 183: uint16(30802), + 184: uint16(30717), + 185: uint16(26224), + 186: uint16(22075), + 187: uint16(21560), + 188: uint16(38177), + 189: uint16(29306), + }, + 78: { + 0: uint16(34725), + 1: uint16(34726), + 2: uint16(34727), + 3: uint16(34729), + 4: uint16(34730), + 5: uint16(34734), + 6: uint16(34736), + 7: uint16(34737), + 8: uint16(34738), + 9: uint16(34740), + 10: uint16(34742), + 11: uint16(34743), + 12: uint16(34744), + 13: uint16(34745), + 14: uint16(34747), + 15: uint16(34748), + 16: uint16(34750), + 17: uint16(34751), + 18: uint16(34753), + 19: uint16(34754), + 20: uint16(34755), + 21: uint16(34756), + 22: uint16(34757), + 23: uint16(34759), + 24: uint16(34760), + 25: uint16(34761), + 26: uint16(34764), + 27: uint16(34765), + 28: uint16(34766), + 29: uint16(34767), + 30: uint16(34768), + 31: uint16(34772), + 32: uint16(34773), + 33: uint16(34774), + 34: uint16(34775), + 35: uint16(34776), + 36: uint16(34777), + 37: uint16(34778), + 38: uint16(34780), + 39: uint16(34781), + 40: uint16(34782), + 41: uint16(34783), + 42: uint16(34785), + 43: uint16(34786), + 44: uint16(34787), + 45: uint16(34788), + 46: uint16(34790), + 47: uint16(34791), + 48: uint16(34792), + 49: uint16(34793), + 50: uint16(34795), + 51: uint16(34796), + 52: uint16(34797), + 53: uint16(34799), + 54: uint16(34800), + 55: uint16(34801), + 56: uint16(34802), + 57: uint16(34803), + 58: uint16(34804), + 59: uint16(34805), + 60: uint16(34806), + 61: uint16(34807), + 62: uint16(34808), + 63: uint16(34810), + 64: uint16(34811), + 65: uint16(34812), + 66: uint16(34813), + 67: uint16(34815), + 68: uint16(34816), + 69: uint16(34817), + 70: uint16(34818), + 71: uint16(34820), + 72: uint16(34821), + 73: uint16(34822), + 74: uint16(34823), + 75: uint16(34824), + 76: uint16(34825), + 77: uint16(34827), + 78: uint16(34828), + 79: uint16(34829), + 80: uint16(34830), + 81: uint16(34831), + 82: uint16(34832), + 83: uint16(34833), + 84: uint16(34834), + 85: uint16(34836), + 86: uint16(34839), + 87: uint16(34840), + 88: uint16(34841), + 89: uint16(34842), + 90: uint16(34844), + 91: uint16(34845), + 92: uint16(34846), + 93: uint16(34847), + 94: uint16(34848), + 95: uint16(34851), + 96: uint16(31232), + 97: uint16(24687), + 98: uint16(24076), + 99: uint16(24713), + 100: uint16(33181), + 101: uint16(22805), + 102: uint16(24796), + 103: uint16(29060), + 104: uint16(28911), + 105: uint16(28330), + 106: uint16(27728), + 107: uint16(29312), + 108: uint16(27268), + 109: uint16(34989), + 110: uint16(24109), + 111: uint16(20064), + 112: uint16(23219), + 113: uint16(21916), + 114: uint16(38115), + 115: uint16(27927), + 116: uint16(31995), + 117: uint16(38553), + 118: uint16(25103), + 119: uint16(32454), + 120: uint16(30606), + 121: uint16(34430), + 122: uint16(21283), + 123: uint16(38686), + 124: uint16(36758), + 125: uint16(26247), + 126: uint16(23777), + 127: uint16(20384), + 128: uint16(29421), + 129: uint16(19979), + 130: uint16(21414), + 131: uint16(22799), + 132: uint16(21523), + 133: uint16(25472), + 134: uint16(38184), + 135: uint16(20808), + 136: uint16(20185), + 137: uint16(40092), + 138: uint16(32420), + 139: uint16(21688), + 140: uint16(36132), + 141: uint16(34900), + 142: uint16(33335), + 143: uint16(38386), + 144: uint16(28046), + 145: uint16(24358), + 146: uint16(23244), + 147: uint16(26174), + 148: uint16(38505), + 149: uint16(29616), + 150: uint16(29486), + 151: uint16(21439), + 152: uint16(33146), + 153: uint16(39301), + 154: uint16(32673), + 155: uint16(23466), + 156: uint16(38519), + 157: uint16(38480), + 158: uint16(32447), + 159: uint16(30456), + 160: uint16(21410), + 161: uint16(38262), + 162: uint16(39321), + 163: uint16(31665), + 164: uint16(35140), + 165: uint16(28248), + 166: uint16(20065), + 167: uint16(32724), + 168: uint16(31077), + 169: uint16(35814), + 170: uint16(24819), + 171: uint16(21709), + 172: uint16(20139), + 173: uint16(39033), + 174: uint16(24055), + 175: uint16(27233), + 176: uint16(20687), + 177: uint16(21521), + 178: uint16(35937), + 179: uint16(33831), + 180: uint16(30813), + 181: uint16(38660), + 182: uint16(21066), + 183: uint16(21742), + 184: uint16(22179), + 185: uint16(38144), + 186: uint16(28040), + 187: uint16(23477), + 188: uint16(28102), + 189: uint16(26195), + }, + 79: { + 0: uint16(34852), + 1: uint16(34853), + 2: uint16(34854), + 3: uint16(34855), + 4: uint16(34856), + 5: uint16(34857), + 6: uint16(34858), + 7: uint16(34859), + 8: uint16(34860), + 9: uint16(34861), + 10: uint16(34862), + 11: uint16(34863), + 12: uint16(34864), + 13: uint16(34865), + 14: uint16(34867), + 15: uint16(34868), + 16: uint16(34869), + 17: uint16(34870), + 18: uint16(34871), + 19: uint16(34872), + 20: uint16(34874), + 21: uint16(34875), + 22: uint16(34877), + 23: uint16(34878), + 24: uint16(34879), + 25: uint16(34881), + 26: uint16(34882), + 27: uint16(34883), + 28: uint16(34886), + 29: uint16(34887), + 30: uint16(34888), + 31: uint16(34889), + 32: uint16(34890), + 33: uint16(34891), + 34: uint16(34894), + 35: uint16(34895), + 36: uint16(34896), + 37: uint16(34897), + 38: uint16(34898), + 39: uint16(34899), + 40: uint16(34901), + 41: uint16(34902), + 42: uint16(34904), + 43: uint16(34906), + 44: uint16(34907), + 45: uint16(34908), + 46: uint16(34909), + 47: uint16(34910), + 48: uint16(34911), + 49: uint16(34912), + 50: uint16(34918), + 51: uint16(34919), + 52: uint16(34922), + 53: uint16(34925), + 54: uint16(34927), + 55: uint16(34929), + 56: uint16(34931), + 57: uint16(34932), + 58: uint16(34933), + 59: uint16(34934), + 60: uint16(34936), + 61: uint16(34937), + 62: uint16(34938), + 63: uint16(34939), + 64: uint16(34940), + 65: uint16(34944), + 66: uint16(34947), + 67: uint16(34950), + 68: uint16(34951), + 69: uint16(34953), + 70: uint16(34954), + 71: uint16(34956), + 72: uint16(34958), + 73: uint16(34959), + 74: uint16(34960), + 75: uint16(34961), + 76: uint16(34963), + 77: uint16(34964), + 78: uint16(34965), + 79: uint16(34967), + 80: uint16(34968), + 81: uint16(34969), + 82: uint16(34970), + 83: uint16(34971), + 84: uint16(34973), + 85: uint16(34974), + 86: uint16(34975), + 87: uint16(34976), + 88: uint16(34977), + 89: uint16(34979), + 90: uint16(34981), + 91: uint16(34982), + 92: uint16(34983), + 93: uint16(34984), + 94: uint16(34985), + 95: uint16(34986), + 96: uint16(23567), + 97: uint16(23389), + 98: uint16(26657), + 99: uint16(32918), + 100: uint16(21880), + 101: uint16(31505), + 102: uint16(25928), + 103: uint16(26964), + 104: uint16(20123), + 105: uint16(27463), + 106: uint16(34638), + 107: uint16(38795), + 108: uint16(21327), + 109: uint16(25375), + 110: uint16(25658), + 111: uint16(37034), + 112: uint16(26012), + 113: uint16(32961), + 114: uint16(35856), + 115: uint16(20889), + 116: uint16(26800), + 117: uint16(21368), + 118: uint16(34809), + 119: uint16(25032), + 120: uint16(27844), + 121: uint16(27899), + 122: uint16(35874), + 123: uint16(23633), + 124: uint16(34218), + 125: uint16(33455), + 126: uint16(38156), + 127: uint16(27427), + 128: uint16(36763), + 129: uint16(26032), + 130: uint16(24571), + 131: uint16(24515), + 132: uint16(20449), + 133: uint16(34885), + 134: uint16(26143), + 135: uint16(33125), + 136: uint16(29481), + 137: uint16(24826), + 138: uint16(20852), + 139: uint16(21009), + 140: uint16(22411), + 141: uint16(24418), + 142: uint16(37026), + 143: uint16(34892), + 144: uint16(37266), + 145: uint16(24184), + 146: uint16(26447), + 147: uint16(24615), + 148: uint16(22995), + 149: uint16(20804), + 150: uint16(20982), + 151: uint16(33016), + 152: uint16(21256), + 153: uint16(27769), + 154: uint16(38596), + 155: uint16(29066), + 156: uint16(20241), + 157: uint16(20462), + 158: uint16(32670), + 159: uint16(26429), + 160: uint16(21957), + 161: uint16(38152), + 162: uint16(31168), + 163: uint16(34966), + 164: uint16(32483), + 165: uint16(22687), + 166: uint16(25100), + 167: uint16(38656), + 168: uint16(34394), + 169: uint16(22040), + 170: uint16(39035), + 171: uint16(24464), + 172: uint16(35768), + 173: uint16(33988), + 174: uint16(37207), + 175: uint16(21465), + 176: uint16(26093), + 177: uint16(24207), + 178: uint16(30044), + 179: uint16(24676), + 180: uint16(32110), + 181: uint16(23167), + 182: uint16(32490), + 183: uint16(32493), + 184: uint16(36713), + 185: uint16(21927), + 186: uint16(23459), + 187: uint16(24748), + 188: uint16(26059), + 189: uint16(29572), + }, + 80: { + 0: uint16(34988), + 1: uint16(34990), + 2: uint16(34991), + 3: uint16(34992), + 4: uint16(34994), + 5: uint16(34995), + 6: uint16(34996), + 7: uint16(34997), + 8: uint16(34998), + 9: uint16(35000), + 10: uint16(35001), + 11: uint16(35002), + 12: uint16(35003), + 13: uint16(35005), + 14: uint16(35006), + 15: uint16(35007), + 16: uint16(35008), + 17: uint16(35011), + 18: uint16(35012), + 19: uint16(35015), + 20: uint16(35016), + 21: uint16(35018), + 22: uint16(35019), + 23: uint16(35020), + 24: uint16(35021), + 25: uint16(35023), + 26: uint16(35024), + 27: uint16(35025), + 28: uint16(35027), + 29: uint16(35030), + 30: uint16(35031), + 31: uint16(35034), + 32: uint16(35035), + 33: uint16(35036), + 34: uint16(35037), + 35: uint16(35038), + 36: uint16(35040), + 37: uint16(35041), + 38: uint16(35046), + 39: uint16(35047), + 40: uint16(35049), + 41: uint16(35050), + 42: uint16(35051), + 43: uint16(35052), + 44: uint16(35053), + 45: uint16(35054), + 46: uint16(35055), + 47: uint16(35058), + 48: uint16(35061), + 49: uint16(35062), + 50: uint16(35063), + 51: uint16(35066), + 52: uint16(35067), + 53: uint16(35069), + 54: uint16(35071), + 55: uint16(35072), + 56: uint16(35073), + 57: uint16(35075), + 58: uint16(35076), + 59: uint16(35077), + 60: uint16(35078), + 61: uint16(35079), + 62: uint16(35080), + 63: uint16(35081), + 64: uint16(35083), + 65: uint16(35084), + 66: uint16(35085), + 67: uint16(35086), + 68: uint16(35087), + 69: uint16(35089), + 70: uint16(35092), + 71: uint16(35093), + 72: uint16(35094), + 73: uint16(35095), + 74: uint16(35096), + 75: uint16(35100), + 76: uint16(35101), + 77: uint16(35102), + 78: uint16(35103), + 79: uint16(35104), + 80: uint16(35106), + 81: uint16(35107), + 82: uint16(35108), + 83: uint16(35110), + 84: uint16(35111), + 85: uint16(35112), + 86: uint16(35113), + 87: uint16(35116), + 88: uint16(35117), + 89: uint16(35118), + 90: uint16(35119), + 91: uint16(35121), + 92: uint16(35122), + 93: uint16(35123), + 94: uint16(35125), + 95: uint16(35127), + 96: uint16(36873), + 97: uint16(30307), + 98: uint16(30505), + 99: uint16(32474), + 100: uint16(38772), + 101: uint16(34203), + 102: uint16(23398), + 103: uint16(31348), + 104: uint16(38634), + 105: uint16(34880), + 106: uint16(21195), + 107: uint16(29071), + 108: uint16(24490), + 109: uint16(26092), + 110: uint16(35810), + 111: uint16(23547), + 112: uint16(39535), + 113: uint16(24033), + 114: uint16(27529), + 115: uint16(27739), + 116: uint16(35757), + 117: uint16(35759), + 118: uint16(36874), + 119: uint16(36805), + 120: uint16(21387), + 121: uint16(25276), + 122: uint16(40486), + 123: uint16(40493), + 124: uint16(21568), + 125: uint16(20011), + 126: uint16(33469), + 127: uint16(29273), + 128: uint16(34460), + 129: uint16(23830), + 130: uint16(34905), + 131: uint16(28079), + 132: uint16(38597), + 133: uint16(21713), + 134: uint16(20122), + 135: uint16(35766), + 136: uint16(28937), + 137: uint16(21693), + 138: uint16(38409), + 139: uint16(28895), + 140: uint16(28153), + 141: uint16(30416), + 142: uint16(20005), + 143: uint16(30740), + 144: uint16(34578), + 145: uint16(23721), + 146: uint16(24310), + 147: uint16(35328), + 148: uint16(39068), + 149: uint16(38414), + 150: uint16(28814), + 151: uint16(27839), + 152: uint16(22852), + 153: uint16(25513), + 154: uint16(30524), + 155: uint16(34893), + 156: uint16(28436), + 157: uint16(33395), + 158: uint16(22576), + 159: uint16(29141), + 160: uint16(21388), + 161: uint16(30746), + 162: uint16(38593), + 163: uint16(21761), + 164: uint16(24422), + 165: uint16(28976), + 166: uint16(23476), + 167: uint16(35866), + 168: uint16(39564), + 169: uint16(27523), + 170: uint16(22830), + 171: uint16(40495), + 172: uint16(31207), + 173: uint16(26472), + 174: uint16(25196), + 175: uint16(20335), + 176: uint16(30113), + 177: uint16(32650), + 178: uint16(27915), + 179: uint16(38451), + 180: uint16(27687), + 181: uint16(20208), + 182: uint16(30162), + 183: uint16(20859), + 184: uint16(26679), + 185: uint16(28478), + 186: uint16(36992), + 187: uint16(33136), + 188: uint16(22934), + 189: uint16(29814), + }, + 81: { + 0: uint16(35128), + 1: uint16(35129), + 2: uint16(35130), + 3: uint16(35131), + 4: uint16(35132), + 5: uint16(35133), + 6: uint16(35134), + 7: uint16(35135), + 8: uint16(35136), + 9: uint16(35138), + 10: uint16(35139), + 11: uint16(35141), + 12: uint16(35142), + 13: uint16(35143), + 14: uint16(35144), + 15: uint16(35145), + 16: uint16(35146), + 17: uint16(35147), + 18: uint16(35148), + 19: uint16(35149), + 20: uint16(35150), + 21: uint16(35151), + 22: uint16(35152), + 23: uint16(35153), + 24: uint16(35154), + 25: uint16(35155), + 26: uint16(35156), + 27: uint16(35157), + 28: uint16(35158), + 29: uint16(35159), + 30: uint16(35160), + 31: uint16(35161), + 32: uint16(35162), + 33: uint16(35163), + 34: uint16(35164), + 35: uint16(35165), + 36: uint16(35168), + 37: uint16(35169), + 38: uint16(35170), + 39: uint16(35171), + 40: uint16(35172), + 41: uint16(35173), + 42: uint16(35175), + 43: uint16(35176), + 44: uint16(35177), + 45: uint16(35178), + 46: uint16(35179), + 47: uint16(35180), + 48: uint16(35181), + 49: uint16(35182), + 50: uint16(35183), + 51: uint16(35184), + 52: uint16(35185), + 53: uint16(35186), + 54: uint16(35187), + 55: uint16(35188), + 56: uint16(35189), + 57: uint16(35190), + 58: uint16(35191), + 59: uint16(35192), + 60: uint16(35193), + 61: uint16(35194), + 62: uint16(35196), + 63: uint16(35197), + 64: uint16(35198), + 65: uint16(35200), + 66: uint16(35202), + 67: uint16(35204), + 68: uint16(35205), + 69: uint16(35207), + 70: uint16(35208), + 71: uint16(35209), + 72: uint16(35210), + 73: uint16(35211), + 74: uint16(35212), + 75: uint16(35213), + 76: uint16(35214), + 77: uint16(35215), + 78: uint16(35216), + 79: uint16(35217), + 80: uint16(35218), + 81: uint16(35219), + 82: uint16(35220), + 83: uint16(35221), + 84: uint16(35222), + 85: uint16(35223), + 86: uint16(35224), + 87: uint16(35225), + 88: uint16(35226), + 89: uint16(35227), + 90: uint16(35228), + 91: uint16(35229), + 92: uint16(35230), + 93: uint16(35231), + 94: uint16(35232), + 95: uint16(35233), + 96: uint16(25671), + 97: uint16(23591), + 98: uint16(36965), + 99: uint16(31377), + 100: uint16(35875), + 101: uint16(23002), + 102: uint16(21676), + 103: uint16(33280), + 104: uint16(33647), + 105: uint16(35201), + 106: uint16(32768), + 107: uint16(26928), + 108: uint16(22094), + 109: uint16(32822), + 110: uint16(29239), + 111: uint16(37326), + 112: uint16(20918), + 113: uint16(20063), + 114: uint16(39029), + 115: uint16(25494), + 116: uint16(19994), + 117: uint16(21494), + 118: uint16(26355), + 119: uint16(33099), + 120: uint16(22812), + 121: uint16(28082), + 122: uint16(19968), + 123: uint16(22777), + 124: uint16(21307), + 125: uint16(25558), + 126: uint16(38129), + 127: uint16(20381), + 128: uint16(20234), + 129: uint16(34915), + 130: uint16(39056), + 131: uint16(22839), + 132: uint16(36951), + 133: uint16(31227), + 134: uint16(20202), + 135: uint16(33008), + 136: uint16(30097), + 137: uint16(27778), + 138: uint16(23452), + 139: uint16(23016), + 140: uint16(24413), + 141: uint16(26885), + 142: uint16(34433), + 143: uint16(20506), + 144: uint16(24050), + 145: uint16(20057), + 146: uint16(30691), + 147: uint16(20197), + 148: uint16(33402), + 149: uint16(25233), + 150: uint16(26131), + 151: uint16(37009), + 152: uint16(23673), + 153: uint16(20159), + 154: uint16(24441), + 155: uint16(33222), + 156: uint16(36920), + 157: uint16(32900), + 158: uint16(30123), + 159: uint16(20134), + 160: uint16(35028), + 161: uint16(24847), + 162: uint16(27589), + 163: uint16(24518), + 164: uint16(20041), + 165: uint16(30410), + 166: uint16(28322), + 167: uint16(35811), + 168: uint16(35758), + 169: uint16(35850), + 170: uint16(35793), + 171: uint16(24322), + 172: uint16(32764), + 173: uint16(32716), + 174: uint16(32462), + 175: uint16(33589), + 176: uint16(33643), + 177: uint16(22240), + 178: uint16(27575), + 179: uint16(38899), + 180: uint16(38452), + 181: uint16(23035), + 182: uint16(21535), + 183: uint16(38134), + 184: uint16(28139), + 185: uint16(23493), + 186: uint16(39278), + 187: uint16(23609), + 188: uint16(24341), + 189: uint16(38544), + }, + 82: { + 0: uint16(35234), + 1: uint16(35235), + 2: uint16(35236), + 3: uint16(35237), + 4: uint16(35238), + 5: uint16(35239), + 6: uint16(35240), + 7: uint16(35241), + 8: uint16(35242), + 9: uint16(35243), + 10: uint16(35244), + 11: uint16(35245), + 12: uint16(35246), + 13: uint16(35247), + 14: uint16(35248), + 15: uint16(35249), + 16: uint16(35250), + 17: uint16(35251), + 18: uint16(35252), + 19: uint16(35253), + 20: uint16(35254), + 21: uint16(35255), + 22: uint16(35256), + 23: uint16(35257), + 24: uint16(35258), + 25: uint16(35259), + 26: uint16(35260), + 27: uint16(35261), + 28: uint16(35262), + 29: uint16(35263), + 30: uint16(35264), + 31: uint16(35267), + 32: uint16(35277), + 33: uint16(35283), + 34: uint16(35284), + 35: uint16(35285), + 36: uint16(35287), + 37: uint16(35288), + 38: uint16(35289), + 39: uint16(35291), + 40: uint16(35293), + 41: uint16(35295), + 42: uint16(35296), + 43: uint16(35297), + 44: uint16(35298), + 45: uint16(35300), + 46: uint16(35303), + 47: uint16(35304), + 48: uint16(35305), + 49: uint16(35306), + 50: uint16(35308), + 51: uint16(35309), + 52: uint16(35310), + 53: uint16(35312), + 54: uint16(35313), + 55: uint16(35314), + 56: uint16(35316), + 57: uint16(35317), + 58: uint16(35318), + 59: uint16(35319), + 60: uint16(35320), + 61: uint16(35321), + 62: uint16(35322), + 63: uint16(35323), + 64: uint16(35324), + 65: uint16(35325), + 66: uint16(35326), + 67: uint16(35327), + 68: uint16(35329), + 69: uint16(35330), + 70: uint16(35331), + 71: uint16(35332), + 72: uint16(35333), + 73: uint16(35334), + 74: uint16(35336), + 75: uint16(35337), + 76: uint16(35338), + 77: uint16(35339), + 78: uint16(35340), + 79: uint16(35341), + 80: uint16(35342), + 81: uint16(35343), + 82: uint16(35344), + 83: uint16(35345), + 84: uint16(35346), + 85: uint16(35347), + 86: uint16(35348), + 87: uint16(35349), + 88: uint16(35350), + 89: uint16(35351), + 90: uint16(35352), + 91: uint16(35353), + 92: uint16(35354), + 93: uint16(35355), + 94: uint16(35356), + 95: uint16(35357), + 96: uint16(21360), + 97: uint16(33521), + 98: uint16(27185), + 99: uint16(23156), + 100: uint16(40560), + 101: uint16(24212), + 102: uint16(32552), + 103: uint16(33721), + 104: uint16(33828), + 105: uint16(33829), + 106: uint16(33639), + 107: uint16(34631), + 108: uint16(36814), + 109: uint16(36194), + 110: uint16(30408), + 111: uint16(24433), + 112: uint16(39062), + 113: uint16(30828), + 114: uint16(26144), + 115: uint16(21727), + 116: uint16(25317), + 117: uint16(20323), + 118: uint16(33219), + 119: uint16(30152), + 120: uint16(24248), + 121: uint16(38605), + 122: uint16(36362), + 123: uint16(34553), + 124: uint16(21647), + 125: uint16(27891), + 126: uint16(28044), + 127: uint16(27704), + 128: uint16(24703), + 129: uint16(21191), + 130: uint16(29992), + 131: uint16(24189), + 132: uint16(20248), + 133: uint16(24736), + 134: uint16(24551), + 135: uint16(23588), + 136: uint16(30001), + 137: uint16(37038), + 138: uint16(38080), + 139: uint16(29369), + 140: uint16(27833), + 141: uint16(28216), + 142: uint16(37193), + 143: uint16(26377), + 144: uint16(21451), + 145: uint16(21491), + 146: uint16(20305), + 147: uint16(37321), + 148: uint16(35825), + 149: uint16(21448), + 150: uint16(24188), + 151: uint16(36802), + 152: uint16(28132), + 153: uint16(20110), + 154: uint16(30402), + 155: uint16(27014), + 156: uint16(34398), + 157: uint16(24858), + 158: uint16(33286), + 159: uint16(20313), + 160: uint16(20446), + 161: uint16(36926), + 162: uint16(40060), + 163: uint16(24841), + 164: uint16(28189), + 165: uint16(28180), + 166: uint16(38533), + 167: uint16(20104), + 168: uint16(23089), + 169: uint16(38632), + 170: uint16(19982), + 171: uint16(23679), + 172: uint16(31161), + 173: uint16(23431), + 174: uint16(35821), + 175: uint16(32701), + 176: uint16(29577), + 177: uint16(22495), + 178: uint16(33419), + 179: uint16(37057), + 180: uint16(21505), + 181: uint16(36935), + 182: uint16(21947), + 183: uint16(23786), + 184: uint16(24481), + 185: uint16(24840), + 186: uint16(27442), + 187: uint16(29425), + 188: uint16(32946), + 189: uint16(35465), + }, + 83: { + 0: uint16(35358), + 1: uint16(35359), + 2: uint16(35360), + 3: uint16(35361), + 4: uint16(35362), + 5: uint16(35363), + 6: uint16(35364), + 7: uint16(35365), + 8: uint16(35366), + 9: uint16(35367), + 10: uint16(35368), + 11: uint16(35369), + 12: uint16(35370), + 13: uint16(35371), + 14: uint16(35372), + 15: uint16(35373), + 16: uint16(35374), + 17: uint16(35375), + 18: uint16(35376), + 19: uint16(35377), + 20: uint16(35378), + 21: uint16(35379), + 22: uint16(35380), + 23: uint16(35381), + 24: uint16(35382), + 25: uint16(35383), + 26: uint16(35384), + 27: uint16(35385), + 28: uint16(35386), + 29: uint16(35387), + 30: uint16(35388), + 31: uint16(35389), + 32: uint16(35391), + 33: uint16(35392), + 34: uint16(35393), + 35: uint16(35394), + 36: uint16(35395), + 37: uint16(35396), + 38: uint16(35397), + 39: uint16(35398), + 40: uint16(35399), + 41: uint16(35401), + 42: uint16(35402), + 43: uint16(35403), + 44: uint16(35404), + 45: uint16(35405), + 46: uint16(35406), + 47: uint16(35407), + 48: uint16(35408), + 49: uint16(35409), + 50: uint16(35410), + 51: uint16(35411), + 52: uint16(35412), + 53: uint16(35413), + 54: uint16(35414), + 55: uint16(35415), + 56: uint16(35416), + 57: uint16(35417), + 58: uint16(35418), + 59: uint16(35419), + 60: uint16(35420), + 61: uint16(35421), + 62: uint16(35422), + 63: uint16(35423), + 64: uint16(35424), + 65: uint16(35425), + 66: uint16(35426), + 67: uint16(35427), + 68: uint16(35428), + 69: uint16(35429), + 70: uint16(35430), + 71: uint16(35431), + 72: uint16(35432), + 73: uint16(35433), + 74: uint16(35434), + 75: uint16(35435), + 76: uint16(35436), + 77: uint16(35437), + 78: uint16(35438), + 79: uint16(35439), + 80: uint16(35440), + 81: uint16(35441), + 82: uint16(35442), + 83: uint16(35443), + 84: uint16(35444), + 85: uint16(35445), + 86: uint16(35446), + 87: uint16(35447), + 88: uint16(35448), + 89: uint16(35450), + 90: uint16(35451), + 91: uint16(35452), + 92: uint16(35453), + 93: uint16(35454), + 94: uint16(35455), + 95: uint16(35456), + 96: uint16(28020), + 97: uint16(23507), + 98: uint16(35029), + 99: uint16(39044), + 100: uint16(35947), + 101: uint16(39533), + 102: uint16(40499), + 103: uint16(28170), + 104: uint16(20900), + 105: uint16(20803), + 106: uint16(22435), + 107: uint16(34945), + 108: uint16(21407), + 109: uint16(25588), + 110: uint16(36757), + 111: uint16(22253), + 112: uint16(21592), + 113: uint16(22278), + 114: uint16(29503), + 115: uint16(28304), + 116: uint16(32536), + 117: uint16(36828), + 118: uint16(33489), + 119: uint16(24895), + 120: uint16(24616), + 121: uint16(38498), + 122: uint16(26352), + 123: uint16(32422), + 124: uint16(36234), + 125: uint16(36291), + 126: uint16(38053), + 127: uint16(23731), + 128: uint16(31908), + 129: uint16(26376), + 130: uint16(24742), + 131: uint16(38405), + 132: uint16(32792), + 133: uint16(20113), + 134: uint16(37095), + 135: uint16(21248), + 136: uint16(38504), + 137: uint16(20801), + 138: uint16(36816), + 139: uint16(34164), + 140: uint16(37213), + 141: uint16(26197), + 142: uint16(38901), + 143: uint16(23381), + 144: uint16(21277), + 145: uint16(30776), + 146: uint16(26434), + 147: uint16(26685), + 148: uint16(21705), + 149: uint16(28798), + 150: uint16(23472), + 151: uint16(36733), + 152: uint16(20877), + 153: uint16(22312), + 154: uint16(21681), + 155: uint16(25874), + 156: uint16(26242), + 157: uint16(36190), + 158: uint16(36163), + 159: uint16(33039), + 160: uint16(33900), + 161: uint16(36973), + 162: uint16(31967), + 163: uint16(20991), + 164: uint16(34299), + 165: uint16(26531), + 166: uint16(26089), + 167: uint16(28577), + 168: uint16(34468), + 169: uint16(36481), + 170: uint16(22122), + 171: uint16(36896), + 172: uint16(30338), + 173: uint16(28790), + 174: uint16(29157), + 175: uint16(36131), + 176: uint16(25321), + 177: uint16(21017), + 178: uint16(27901), + 179: uint16(36156), + 180: uint16(24590), + 181: uint16(22686), + 182: uint16(24974), + 183: uint16(26366), + 184: uint16(36192), + 185: uint16(25166), + 186: uint16(21939), + 187: uint16(28195), + 188: uint16(26413), + 189: uint16(36711), + }, + 84: { + 0: uint16(35457), + 1: uint16(35458), + 2: uint16(35459), + 3: uint16(35460), + 4: uint16(35461), + 5: uint16(35462), + 6: uint16(35463), + 7: uint16(35464), + 8: uint16(35467), + 9: uint16(35468), + 10: uint16(35469), + 11: uint16(35470), + 12: uint16(35471), + 13: uint16(35472), + 14: uint16(35473), + 15: uint16(35474), + 16: uint16(35476), + 17: uint16(35477), + 18: uint16(35478), + 19: uint16(35479), + 20: uint16(35480), + 21: uint16(35481), + 22: uint16(35482), + 23: uint16(35483), + 24: uint16(35484), + 25: uint16(35485), + 26: uint16(35486), + 27: uint16(35487), + 28: uint16(35488), + 29: uint16(35489), + 30: uint16(35490), + 31: uint16(35491), + 32: uint16(35492), + 33: uint16(35493), + 34: uint16(35494), + 35: uint16(35495), + 36: uint16(35496), + 37: uint16(35497), + 38: uint16(35498), + 39: uint16(35499), + 40: uint16(35500), + 41: uint16(35501), + 42: uint16(35502), + 43: uint16(35503), + 44: uint16(35504), + 45: uint16(35505), + 46: uint16(35506), + 47: uint16(35507), + 48: uint16(35508), + 49: uint16(35509), + 50: uint16(35510), + 51: uint16(35511), + 52: uint16(35512), + 53: uint16(35513), + 54: uint16(35514), + 55: uint16(35515), + 56: uint16(35516), + 57: uint16(35517), + 58: uint16(35518), + 59: uint16(35519), + 60: uint16(35520), + 61: uint16(35521), + 62: uint16(35522), + 63: uint16(35523), + 64: uint16(35524), + 65: uint16(35525), + 66: uint16(35526), + 67: uint16(35527), + 68: uint16(35528), + 69: uint16(35529), + 70: uint16(35530), + 71: uint16(35531), + 72: uint16(35532), + 73: uint16(35533), + 74: uint16(35534), + 75: uint16(35535), + 76: uint16(35536), + 77: uint16(35537), + 78: uint16(35538), + 79: uint16(35539), + 80: uint16(35540), + 81: uint16(35541), + 82: uint16(35542), + 83: uint16(35543), + 84: uint16(35544), + 85: uint16(35545), + 86: uint16(35546), + 87: uint16(35547), + 88: uint16(35548), + 89: uint16(35549), + 90: uint16(35550), + 91: uint16(35551), + 92: uint16(35552), + 93: uint16(35553), + 94: uint16(35554), + 95: uint16(35555), + 96: uint16(38113), + 97: uint16(38392), + 98: uint16(30504), + 99: uint16(26629), + 100: uint16(27048), + 101: uint16(21643), + 102: uint16(20045), + 103: uint16(28856), + 104: uint16(35784), + 105: uint16(25688), + 106: uint16(25995), + 107: uint16(23429), + 108: uint16(31364), + 109: uint16(20538), + 110: uint16(23528), + 111: uint16(30651), + 112: uint16(27617), + 113: uint16(35449), + 114: uint16(31896), + 115: uint16(27838), + 116: uint16(30415), + 117: uint16(26025), + 118: uint16(36759), + 119: uint16(23853), + 120: uint16(23637), + 121: uint16(34360), + 122: uint16(26632), + 123: uint16(21344), + 124: uint16(25112), + 125: uint16(31449), + 126: uint16(28251), + 127: uint16(32509), + 128: uint16(27167), + 129: uint16(31456), + 130: uint16(24432), + 131: uint16(28467), + 132: uint16(24352), + 133: uint16(25484), + 134: uint16(28072), + 135: uint16(26454), + 136: uint16(19976), + 137: uint16(24080), + 138: uint16(36134), + 139: uint16(20183), + 140: uint16(32960), + 141: uint16(30260), + 142: uint16(38556), + 143: uint16(25307), + 144: uint16(26157), + 145: uint16(25214), + 146: uint16(27836), + 147: uint16(36213), + 148: uint16(29031), + 149: uint16(32617), + 150: uint16(20806), + 151: uint16(32903), + 152: uint16(21484), + 153: uint16(36974), + 154: uint16(25240), + 155: uint16(21746), + 156: uint16(34544), + 157: uint16(36761), + 158: uint16(32773), + 159: uint16(38167), + 160: uint16(34071), + 161: uint16(36825), + 162: uint16(27993), + 163: uint16(29645), + 164: uint16(26015), + 165: uint16(30495), + 166: uint16(29956), + 167: uint16(30759), + 168: uint16(33275), + 169: uint16(36126), + 170: uint16(38024), + 171: uint16(20390), + 172: uint16(26517), + 173: uint16(30137), + 174: uint16(35786), + 175: uint16(38663), + 176: uint16(25391), + 177: uint16(38215), + 178: uint16(38453), + 179: uint16(33976), + 180: uint16(25379), + 181: uint16(30529), + 182: uint16(24449), + 183: uint16(29424), + 184: uint16(20105), + 185: uint16(24596), + 186: uint16(25972), + 187: uint16(25327), + 188: uint16(27491), + 189: uint16(25919), + }, + 85: { + 0: uint16(35556), + 1: uint16(35557), + 2: uint16(35558), + 3: uint16(35559), + 4: uint16(35560), + 5: uint16(35561), + 6: uint16(35562), + 7: uint16(35563), + 8: uint16(35564), + 9: uint16(35565), + 10: uint16(35566), + 11: uint16(35567), + 12: uint16(35568), + 13: uint16(35569), + 14: uint16(35570), + 15: uint16(35571), + 16: uint16(35572), + 17: uint16(35573), + 18: uint16(35574), + 19: uint16(35575), + 20: uint16(35576), + 21: uint16(35577), + 22: uint16(35578), + 23: uint16(35579), + 24: uint16(35580), + 25: uint16(35581), + 26: uint16(35582), + 27: uint16(35583), + 28: uint16(35584), + 29: uint16(35585), + 30: uint16(35586), + 31: uint16(35587), + 32: uint16(35588), + 33: uint16(35589), + 34: uint16(35590), + 35: uint16(35592), + 36: uint16(35593), + 37: uint16(35594), + 38: uint16(35595), + 39: uint16(35596), + 40: uint16(35597), + 41: uint16(35598), + 42: uint16(35599), + 43: uint16(35600), + 44: uint16(35601), + 45: uint16(35602), + 46: uint16(35603), + 47: uint16(35604), + 48: uint16(35605), + 49: uint16(35606), + 50: uint16(35607), + 51: uint16(35608), + 52: uint16(35609), + 53: uint16(35610), + 54: uint16(35611), + 55: uint16(35612), + 56: uint16(35613), + 57: uint16(35614), + 58: uint16(35615), + 59: uint16(35616), + 60: uint16(35617), + 61: uint16(35618), + 62: uint16(35619), + 63: uint16(35620), + 64: uint16(35621), + 65: uint16(35623), + 66: uint16(35624), + 67: uint16(35625), + 68: uint16(35626), + 69: uint16(35627), + 70: uint16(35628), + 71: uint16(35629), + 72: uint16(35630), + 73: uint16(35631), + 74: uint16(35632), + 75: uint16(35633), + 76: uint16(35634), + 77: uint16(35635), + 78: uint16(35636), + 79: uint16(35637), + 80: uint16(35638), + 81: uint16(35639), + 82: uint16(35640), + 83: uint16(35641), + 84: uint16(35642), + 85: uint16(35643), + 86: uint16(35644), + 87: uint16(35645), + 88: uint16(35646), + 89: uint16(35647), + 90: uint16(35648), + 91: uint16(35649), + 92: uint16(35650), + 93: uint16(35651), + 94: uint16(35652), + 95: uint16(35653), + 96: uint16(24103), + 97: uint16(30151), + 98: uint16(37073), + 99: uint16(35777), + 100: uint16(33437), + 101: uint16(26525), + 102: uint16(25903), + 103: uint16(21553), + 104: uint16(34584), + 105: uint16(30693), + 106: uint16(32930), + 107: uint16(33026), + 108: uint16(27713), + 109: uint16(20043), + 110: uint16(32455), + 111: uint16(32844), + 112: uint16(30452), + 113: uint16(26893), + 114: uint16(27542), + 115: uint16(25191), + 116: uint16(20540), + 117: uint16(20356), + 118: uint16(22336), + 119: uint16(25351), + 120: uint16(27490), + 121: uint16(36286), + 122: uint16(21482), + 123: uint16(26088), + 124: uint16(32440), + 125: uint16(24535), + 126: uint16(25370), + 127: uint16(25527), + 128: uint16(33267), + 129: uint16(33268), + 130: uint16(32622), + 131: uint16(24092), + 132: uint16(23769), + 133: uint16(21046), + 134: uint16(26234), + 135: uint16(31209), + 136: uint16(31258), + 137: uint16(36136), + 138: uint16(28825), + 139: uint16(30164), + 140: uint16(28382), + 141: uint16(27835), + 142: uint16(31378), + 143: uint16(20013), + 144: uint16(30405), + 145: uint16(24544), + 146: uint16(38047), + 147: uint16(34935), + 148: uint16(32456), + 149: uint16(31181), + 150: uint16(32959), + 151: uint16(37325), + 152: uint16(20210), + 153: uint16(20247), + 154: uint16(33311), + 155: uint16(21608), + 156: uint16(24030), + 157: uint16(27954), + 158: uint16(35788), + 159: uint16(31909), + 160: uint16(36724), + 161: uint16(32920), + 162: uint16(24090), + 163: uint16(21650), + 164: uint16(30385), + 165: uint16(23449), + 166: uint16(26172), + 167: uint16(39588), + 168: uint16(29664), + 169: uint16(26666), + 170: uint16(34523), + 171: uint16(26417), + 172: uint16(29482), + 173: uint16(35832), + 174: uint16(35803), + 175: uint16(36880), + 176: uint16(31481), + 177: uint16(28891), + 178: uint16(29038), + 179: uint16(25284), + 180: uint16(30633), + 181: uint16(22065), + 182: uint16(20027), + 183: uint16(33879), + 184: uint16(26609), + 185: uint16(21161), + 186: uint16(34496), + 187: uint16(36142), + 188: uint16(38136), + 189: uint16(31569), + }, + 86: { + 0: uint16(35654), + 1: uint16(35655), + 2: uint16(35656), + 3: uint16(35657), + 4: uint16(35658), + 5: uint16(35659), + 6: uint16(35660), + 7: uint16(35661), + 8: uint16(35662), + 9: uint16(35663), + 10: uint16(35664), + 11: uint16(35665), + 12: uint16(35666), + 13: uint16(35667), + 14: uint16(35668), + 15: uint16(35669), + 16: uint16(35670), + 17: uint16(35671), + 18: uint16(35672), + 19: uint16(35673), + 20: uint16(35674), + 21: uint16(35675), + 22: uint16(35676), + 23: uint16(35677), + 24: uint16(35678), + 25: uint16(35679), + 26: uint16(35680), + 27: uint16(35681), + 28: uint16(35682), + 29: uint16(35683), + 30: uint16(35684), + 31: uint16(35685), + 32: uint16(35687), + 33: uint16(35688), + 34: uint16(35689), + 35: uint16(35690), + 36: uint16(35691), + 37: uint16(35693), + 38: uint16(35694), + 39: uint16(35695), + 40: uint16(35696), + 41: uint16(35697), + 42: uint16(35698), + 43: uint16(35699), + 44: uint16(35700), + 45: uint16(35701), + 46: uint16(35702), + 47: uint16(35703), + 48: uint16(35704), + 49: uint16(35705), + 50: uint16(35706), + 51: uint16(35707), + 52: uint16(35708), + 53: uint16(35709), + 54: uint16(35710), + 55: uint16(35711), + 56: uint16(35712), + 57: uint16(35713), + 58: uint16(35714), + 59: uint16(35715), + 60: uint16(35716), + 61: uint16(35717), + 62: uint16(35718), + 63: uint16(35719), + 64: uint16(35720), + 65: uint16(35721), + 66: uint16(35722), + 67: uint16(35723), + 68: uint16(35724), + 69: uint16(35725), + 70: uint16(35726), + 71: uint16(35727), + 72: uint16(35728), + 73: uint16(35729), + 74: uint16(35730), + 75: uint16(35731), + 76: uint16(35732), + 77: uint16(35733), + 78: uint16(35734), + 79: uint16(35735), + 80: uint16(35736), + 81: uint16(35737), + 82: uint16(35738), + 83: uint16(35739), + 84: uint16(35740), + 85: uint16(35741), + 86: uint16(35742), + 87: uint16(35743), + 88: uint16(35756), + 89: uint16(35761), + 90: uint16(35771), + 91: uint16(35783), + 92: uint16(35792), + 93: uint16(35818), + 94: uint16(35849), + 95: uint16(35870), + 96: uint16(20303), + 97: uint16(27880), + 98: uint16(31069), + 99: uint16(39547), + 100: uint16(25235), + 101: uint16(29226), + 102: uint16(25341), + 103: uint16(19987), + 104: uint16(30742), + 105: uint16(36716), + 106: uint16(25776), + 107: uint16(36186), + 108: uint16(31686), + 109: uint16(26729), + 110: uint16(24196), + 111: uint16(35013), + 112: uint16(22918), + 113: uint16(25758), + 114: uint16(22766), + 115: uint16(29366), + 116: uint16(26894), + 117: uint16(38181), + 118: uint16(36861), + 119: uint16(36184), + 120: uint16(22368), + 121: uint16(32512), + 122: uint16(35846), + 123: uint16(20934), + 124: uint16(25417), + 125: uint16(25305), + 126: uint16(21331), + 127: uint16(26700), + 128: uint16(29730), + 129: uint16(33537), + 130: uint16(37196), + 131: uint16(21828), + 132: uint16(30528), + 133: uint16(28796), + 134: uint16(27978), + 135: uint16(20857), + 136: uint16(21672), + 137: uint16(36164), + 138: uint16(23039), + 139: uint16(28363), + 140: uint16(28100), + 141: uint16(23388), + 142: uint16(32043), + 143: uint16(20180), + 144: uint16(31869), + 145: uint16(28371), + 146: uint16(23376), + 147: uint16(33258), + 148: uint16(28173), + 149: uint16(23383), + 150: uint16(39683), + 151: uint16(26837), + 152: uint16(36394), + 153: uint16(23447), + 154: uint16(32508), + 155: uint16(24635), + 156: uint16(32437), + 157: uint16(37049), + 158: uint16(36208), + 159: uint16(22863), + 160: uint16(25549), + 161: uint16(31199), + 162: uint16(36275), + 163: uint16(21330), + 164: uint16(26063), + 165: uint16(31062), + 166: uint16(35781), + 167: uint16(38459), + 168: uint16(32452), + 169: uint16(38075), + 170: uint16(32386), + 171: uint16(22068), + 172: uint16(37257), + 173: uint16(26368), + 174: uint16(32618), + 175: uint16(23562), + 176: uint16(36981), + 177: uint16(26152), + 178: uint16(24038), + 179: uint16(20304), + 180: uint16(26590), + 181: uint16(20570), + 182: uint16(20316), + 183: uint16(22352), + 184: uint16(24231), + 185: uint16(59408), + 186: uint16(59409), + 187: uint16(59410), + 188: uint16(59411), + 189: uint16(59412), + }, + 87: { + 0: uint16(35896), + 1: uint16(35897), + 2: uint16(35898), + 3: uint16(35899), + 4: uint16(35900), + 5: uint16(35901), + 6: uint16(35902), + 7: uint16(35903), + 8: uint16(35904), + 9: uint16(35906), + 10: uint16(35907), + 11: uint16(35908), + 12: uint16(35909), + 13: uint16(35912), + 14: uint16(35914), + 15: uint16(35915), + 16: uint16(35917), + 17: uint16(35918), + 18: uint16(35919), + 19: uint16(35920), + 20: uint16(35921), + 21: uint16(35922), + 22: uint16(35923), + 23: uint16(35924), + 24: uint16(35926), + 25: uint16(35927), + 26: uint16(35928), + 27: uint16(35929), + 28: uint16(35931), + 29: uint16(35932), + 30: uint16(35933), + 31: uint16(35934), + 32: uint16(35935), + 33: uint16(35936), + 34: uint16(35939), + 35: uint16(35940), + 36: uint16(35941), + 37: uint16(35942), + 38: uint16(35943), + 39: uint16(35944), + 40: uint16(35945), + 41: uint16(35948), + 42: uint16(35949), + 43: uint16(35950), + 44: uint16(35951), + 45: uint16(35952), + 46: uint16(35953), + 47: uint16(35954), + 48: uint16(35956), + 49: uint16(35957), + 50: uint16(35958), + 51: uint16(35959), + 52: uint16(35963), + 53: uint16(35964), + 54: uint16(35965), + 55: uint16(35966), + 56: uint16(35967), + 57: uint16(35968), + 58: uint16(35969), + 59: uint16(35971), + 60: uint16(35972), + 61: uint16(35974), + 62: uint16(35975), + 63: uint16(35976), + 64: uint16(35979), + 65: uint16(35981), + 66: uint16(35982), + 67: uint16(35983), + 68: uint16(35984), + 69: uint16(35985), + 70: uint16(35986), + 71: uint16(35987), + 72: uint16(35989), + 73: uint16(35990), + 74: uint16(35991), + 75: uint16(35993), + 76: uint16(35994), + 77: uint16(35995), + 78: uint16(35996), + 79: uint16(35997), + 80: uint16(35998), + 81: uint16(35999), + 82: uint16(36000), + 83: uint16(36001), + 84: uint16(36002), + 85: uint16(36003), + 86: uint16(36004), + 87: uint16(36005), + 88: uint16(36006), + 89: uint16(36007), + 90: uint16(36008), + 91: uint16(36009), + 92: uint16(36010), + 93: uint16(36011), + 94: uint16(36012), + 95: uint16(36013), + 96: uint16(20109), + 97: uint16(19980), + 98: uint16(20800), + 99: uint16(19984), + 100: uint16(24319), + 101: uint16(21317), + 102: uint16(19989), + 103: uint16(20120), + 104: uint16(19998), + 105: uint16(39730), + 106: uint16(23404), + 107: uint16(22121), + 108: uint16(20008), + 109: uint16(31162), + 110: uint16(20031), + 111: uint16(21269), + 112: uint16(20039), + 113: uint16(22829), + 114: uint16(29243), + 115: uint16(21358), + 116: uint16(27664), + 117: uint16(22239), + 118: uint16(32996), + 119: uint16(39319), + 120: uint16(27603), + 121: uint16(30590), + 122: uint16(40727), + 123: uint16(20022), + 124: uint16(20127), + 125: uint16(40720), + 126: uint16(20060), + 127: uint16(20073), + 128: uint16(20115), + 129: uint16(33416), + 130: uint16(23387), + 131: uint16(21868), + 132: uint16(22031), + 133: uint16(20164), + 134: uint16(21389), + 135: uint16(21405), + 136: uint16(21411), + 137: uint16(21413), + 138: uint16(21422), + 139: uint16(38757), + 140: uint16(36189), + 141: uint16(21274), + 142: uint16(21493), + 143: uint16(21286), + 144: uint16(21294), + 145: uint16(21310), + 146: uint16(36188), + 147: uint16(21350), + 148: uint16(21347), + 149: uint16(20994), + 150: uint16(21000), + 151: uint16(21006), + 152: uint16(21037), + 153: uint16(21043), + 154: uint16(21055), + 155: uint16(21056), + 156: uint16(21068), + 157: uint16(21086), + 158: uint16(21089), + 159: uint16(21084), + 160: uint16(33967), + 161: uint16(21117), + 162: uint16(21122), + 163: uint16(21121), + 164: uint16(21136), + 165: uint16(21139), + 166: uint16(20866), + 167: uint16(32596), + 168: uint16(20155), + 169: uint16(20163), + 170: uint16(20169), + 171: uint16(20162), + 172: uint16(20200), + 173: uint16(20193), + 174: uint16(20203), + 175: uint16(20190), + 176: uint16(20251), + 177: uint16(20211), + 178: uint16(20258), + 179: uint16(20324), + 180: uint16(20213), + 181: uint16(20261), + 182: uint16(20263), + 183: uint16(20233), + 184: uint16(20267), + 185: uint16(20318), + 186: uint16(20327), + 187: uint16(25912), + 188: uint16(20314), + 189: uint16(20317), + }, + 88: { + 0: uint16(36014), + 1: uint16(36015), + 2: uint16(36016), + 3: uint16(36017), + 4: uint16(36018), + 5: uint16(36019), + 6: uint16(36020), + 7: uint16(36021), + 8: uint16(36022), + 9: uint16(36023), + 10: uint16(36024), + 11: uint16(36025), + 12: uint16(36026), + 13: uint16(36027), + 14: uint16(36028), + 15: uint16(36029), + 16: uint16(36030), + 17: uint16(36031), + 18: uint16(36032), + 19: uint16(36033), + 20: uint16(36034), + 21: uint16(36035), + 22: uint16(36036), + 23: uint16(36037), + 24: uint16(36038), + 25: uint16(36039), + 26: uint16(36040), + 27: uint16(36041), + 28: uint16(36042), + 29: uint16(36043), + 30: uint16(36044), + 31: uint16(36045), + 32: uint16(36046), + 33: uint16(36047), + 34: uint16(36048), + 35: uint16(36049), + 36: uint16(36050), + 37: uint16(36051), + 38: uint16(36052), + 39: uint16(36053), + 40: uint16(36054), + 41: uint16(36055), + 42: uint16(36056), + 43: uint16(36057), + 44: uint16(36058), + 45: uint16(36059), + 46: uint16(36060), + 47: uint16(36061), + 48: uint16(36062), + 49: uint16(36063), + 50: uint16(36064), + 51: uint16(36065), + 52: uint16(36066), + 53: uint16(36067), + 54: uint16(36068), + 55: uint16(36069), + 56: uint16(36070), + 57: uint16(36071), + 58: uint16(36072), + 59: uint16(36073), + 60: uint16(36074), + 61: uint16(36075), + 62: uint16(36076), + 63: uint16(36077), + 64: uint16(36078), + 65: uint16(36079), + 66: uint16(36080), + 67: uint16(36081), + 68: uint16(36082), + 69: uint16(36083), + 70: uint16(36084), + 71: uint16(36085), + 72: uint16(36086), + 73: uint16(36087), + 74: uint16(36088), + 75: uint16(36089), + 76: uint16(36090), + 77: uint16(36091), + 78: uint16(36092), + 79: uint16(36093), + 80: uint16(36094), + 81: uint16(36095), + 82: uint16(36096), + 83: uint16(36097), + 84: uint16(36098), + 85: uint16(36099), + 86: uint16(36100), + 87: uint16(36101), + 88: uint16(36102), + 89: uint16(36103), + 90: uint16(36104), + 91: uint16(36105), + 92: uint16(36106), + 93: uint16(36107), + 94: uint16(36108), + 95: uint16(36109), + 96: uint16(20319), + 97: uint16(20311), + 98: uint16(20274), + 99: uint16(20285), + 100: uint16(20342), + 101: uint16(20340), + 102: uint16(20369), + 103: uint16(20361), + 104: uint16(20355), + 105: uint16(20367), + 106: uint16(20350), + 107: uint16(20347), + 108: uint16(20394), + 109: uint16(20348), + 110: uint16(20396), + 111: uint16(20372), + 112: uint16(20454), + 113: uint16(20456), + 114: uint16(20458), + 115: uint16(20421), + 116: uint16(20442), + 117: uint16(20451), + 118: uint16(20444), + 119: uint16(20433), + 120: uint16(20447), + 121: uint16(20472), + 122: uint16(20521), + 123: uint16(20556), + 124: uint16(20467), + 125: uint16(20524), + 126: uint16(20495), + 127: uint16(20526), + 128: uint16(20525), + 129: uint16(20478), + 130: uint16(20508), + 131: uint16(20492), + 132: uint16(20517), + 133: uint16(20520), + 134: uint16(20606), + 135: uint16(20547), + 136: uint16(20565), + 137: uint16(20552), + 138: uint16(20558), + 139: uint16(20588), + 140: uint16(20603), + 141: uint16(20645), + 142: uint16(20647), + 143: uint16(20649), + 144: uint16(20666), + 145: uint16(20694), + 146: uint16(20742), + 147: uint16(20717), + 148: uint16(20716), + 149: uint16(20710), + 150: uint16(20718), + 151: uint16(20743), + 152: uint16(20747), + 153: uint16(20189), + 154: uint16(27709), + 155: uint16(20312), + 156: uint16(20325), + 157: uint16(20430), + 158: uint16(40864), + 159: uint16(27718), + 160: uint16(31860), + 161: uint16(20846), + 162: uint16(24061), + 163: uint16(40649), + 164: uint16(39320), + 165: uint16(20865), + 166: uint16(22804), + 167: uint16(21241), + 168: uint16(21261), + 169: uint16(35335), + 170: uint16(21264), + 171: uint16(20971), + 172: uint16(22809), + 173: uint16(20821), + 174: uint16(20128), + 175: uint16(20822), + 176: uint16(20147), + 177: uint16(34926), + 178: uint16(34980), + 179: uint16(20149), + 180: uint16(33044), + 181: uint16(35026), + 182: uint16(31104), + 183: uint16(23348), + 184: uint16(34819), + 185: uint16(32696), + 186: uint16(20907), + 187: uint16(20913), + 188: uint16(20925), + 189: uint16(20924), + }, + 89: { + 0: uint16(36110), + 1: uint16(36111), + 2: uint16(36112), + 3: uint16(36113), + 4: uint16(36114), + 5: uint16(36115), + 6: uint16(36116), + 7: uint16(36117), + 8: uint16(36118), + 9: uint16(36119), + 10: uint16(36120), + 11: uint16(36121), + 12: uint16(36122), + 13: uint16(36123), + 14: uint16(36124), + 15: uint16(36128), + 16: uint16(36177), + 17: uint16(36178), + 18: uint16(36183), + 19: uint16(36191), + 20: uint16(36197), + 21: uint16(36200), + 22: uint16(36201), + 23: uint16(36202), + 24: uint16(36204), + 25: uint16(36206), + 26: uint16(36207), + 27: uint16(36209), + 28: uint16(36210), + 29: uint16(36216), + 30: uint16(36217), + 31: uint16(36218), + 32: uint16(36219), + 33: uint16(36220), + 34: uint16(36221), + 35: uint16(36222), + 36: uint16(36223), + 37: uint16(36224), + 38: uint16(36226), + 39: uint16(36227), + 40: uint16(36230), + 41: uint16(36231), + 42: uint16(36232), + 43: uint16(36233), + 44: uint16(36236), + 45: uint16(36237), + 46: uint16(36238), + 47: uint16(36239), + 48: uint16(36240), + 49: uint16(36242), + 50: uint16(36243), + 51: uint16(36245), + 52: uint16(36246), + 53: uint16(36247), + 54: uint16(36248), + 55: uint16(36249), + 56: uint16(36250), + 57: uint16(36251), + 58: uint16(36252), + 59: uint16(36253), + 60: uint16(36254), + 61: uint16(36256), + 62: uint16(36257), + 63: uint16(36258), + 64: uint16(36260), + 65: uint16(36261), + 66: uint16(36262), + 67: uint16(36263), + 68: uint16(36264), + 69: uint16(36265), + 70: uint16(36266), + 71: uint16(36267), + 72: uint16(36268), + 73: uint16(36269), + 74: uint16(36270), + 75: uint16(36271), + 76: uint16(36272), + 77: uint16(36274), + 78: uint16(36278), + 79: uint16(36279), + 80: uint16(36281), + 81: uint16(36283), + 82: uint16(36285), + 83: uint16(36288), + 84: uint16(36289), + 85: uint16(36290), + 86: uint16(36293), + 87: uint16(36295), + 88: uint16(36296), + 89: uint16(36297), + 90: uint16(36298), + 91: uint16(36301), + 92: uint16(36304), + 93: uint16(36306), + 94: uint16(36307), + 95: uint16(36308), + 96: uint16(20935), + 97: uint16(20886), + 98: uint16(20898), + 99: uint16(20901), + 100: uint16(35744), + 101: uint16(35750), + 102: uint16(35751), + 103: uint16(35754), + 104: uint16(35764), + 105: uint16(35765), + 106: uint16(35767), + 107: uint16(35778), + 108: uint16(35779), + 109: uint16(35787), + 110: uint16(35791), + 111: uint16(35790), + 112: uint16(35794), + 113: uint16(35795), + 114: uint16(35796), + 115: uint16(35798), + 116: uint16(35800), + 117: uint16(35801), + 118: uint16(35804), + 119: uint16(35807), + 120: uint16(35808), + 121: uint16(35812), + 122: uint16(35816), + 123: uint16(35817), + 124: uint16(35822), + 125: uint16(35824), + 126: uint16(35827), + 127: uint16(35830), + 128: uint16(35833), + 129: uint16(35836), + 130: uint16(35839), + 131: uint16(35840), + 132: uint16(35842), + 133: uint16(35844), + 134: uint16(35847), + 135: uint16(35852), + 136: uint16(35855), + 137: uint16(35857), + 138: uint16(35858), + 139: uint16(35860), + 140: uint16(35861), + 141: uint16(35862), + 142: uint16(35865), + 143: uint16(35867), + 144: uint16(35864), + 145: uint16(35869), + 146: uint16(35871), + 147: uint16(35872), + 148: uint16(35873), + 149: uint16(35877), + 150: uint16(35879), + 151: uint16(35882), + 152: uint16(35883), + 153: uint16(35886), + 154: uint16(35887), + 155: uint16(35890), + 156: uint16(35891), + 157: uint16(35893), + 158: uint16(35894), + 159: uint16(21353), + 160: uint16(21370), + 161: uint16(38429), + 162: uint16(38434), + 163: uint16(38433), + 164: uint16(38449), + 165: uint16(38442), + 166: uint16(38461), + 167: uint16(38460), + 168: uint16(38466), + 169: uint16(38473), + 170: uint16(38484), + 171: uint16(38495), + 172: uint16(38503), + 173: uint16(38508), + 174: uint16(38514), + 175: uint16(38516), + 176: uint16(38536), + 177: uint16(38541), + 178: uint16(38551), + 179: uint16(38576), + 180: uint16(37015), + 181: uint16(37019), + 182: uint16(37021), + 183: uint16(37017), + 184: uint16(37036), + 185: uint16(37025), + 186: uint16(37044), + 187: uint16(37043), + 188: uint16(37046), + 189: uint16(37050), + }, + 90: { + 0: uint16(36309), + 1: uint16(36312), + 2: uint16(36313), + 3: uint16(36316), + 4: uint16(36320), + 5: uint16(36321), + 6: uint16(36322), + 7: uint16(36325), + 8: uint16(36326), + 9: uint16(36327), + 10: uint16(36329), + 11: uint16(36333), + 12: uint16(36334), + 13: uint16(36336), + 14: uint16(36337), + 15: uint16(36338), + 16: uint16(36340), + 17: uint16(36342), + 18: uint16(36348), + 19: uint16(36350), + 20: uint16(36351), + 21: uint16(36352), + 22: uint16(36353), + 23: uint16(36354), + 24: uint16(36355), + 25: uint16(36356), + 26: uint16(36358), + 27: uint16(36359), + 28: uint16(36360), + 29: uint16(36363), + 30: uint16(36365), + 31: uint16(36366), + 32: uint16(36368), + 33: uint16(36369), + 34: uint16(36370), + 35: uint16(36371), + 36: uint16(36373), + 37: uint16(36374), + 38: uint16(36375), + 39: uint16(36376), + 40: uint16(36377), + 41: uint16(36378), + 42: uint16(36379), + 43: uint16(36380), + 44: uint16(36384), + 45: uint16(36385), + 46: uint16(36388), + 47: uint16(36389), + 48: uint16(36390), + 49: uint16(36391), + 50: uint16(36392), + 51: uint16(36395), + 52: uint16(36397), + 53: uint16(36400), + 54: uint16(36402), + 55: uint16(36403), + 56: uint16(36404), + 57: uint16(36406), + 58: uint16(36407), + 59: uint16(36408), + 60: uint16(36411), + 61: uint16(36412), + 62: uint16(36414), + 63: uint16(36415), + 64: uint16(36419), + 65: uint16(36421), + 66: uint16(36422), + 67: uint16(36428), + 68: uint16(36429), + 69: uint16(36430), + 70: uint16(36431), + 71: uint16(36432), + 72: uint16(36435), + 73: uint16(36436), + 74: uint16(36437), + 75: uint16(36438), + 76: uint16(36439), + 77: uint16(36440), + 78: uint16(36442), + 79: uint16(36443), + 80: uint16(36444), + 81: uint16(36445), + 82: uint16(36446), + 83: uint16(36447), + 84: uint16(36448), + 85: uint16(36449), + 86: uint16(36450), + 87: uint16(36451), + 88: uint16(36452), + 89: uint16(36453), + 90: uint16(36455), + 91: uint16(36456), + 92: uint16(36458), + 93: uint16(36459), + 94: uint16(36462), + 95: uint16(36465), + 96: uint16(37048), + 97: uint16(37040), + 98: uint16(37071), + 99: uint16(37061), + 100: uint16(37054), + 101: uint16(37072), + 102: uint16(37060), + 103: uint16(37063), + 104: uint16(37075), + 105: uint16(37094), + 106: uint16(37090), + 107: uint16(37084), + 108: uint16(37079), + 109: uint16(37083), + 110: uint16(37099), + 111: uint16(37103), + 112: uint16(37118), + 113: uint16(37124), + 114: uint16(37154), + 115: uint16(37150), + 116: uint16(37155), + 117: uint16(37169), + 118: uint16(37167), + 119: uint16(37177), + 120: uint16(37187), + 121: uint16(37190), + 122: uint16(21005), + 123: uint16(22850), + 124: uint16(21154), + 125: uint16(21164), + 126: uint16(21165), + 127: uint16(21182), + 128: uint16(21759), + 129: uint16(21200), + 130: uint16(21206), + 131: uint16(21232), + 132: uint16(21471), + 133: uint16(29166), + 134: uint16(30669), + 135: uint16(24308), + 136: uint16(20981), + 137: uint16(20988), + 138: uint16(39727), + 139: uint16(21430), + 140: uint16(24321), + 141: uint16(30042), + 142: uint16(24047), + 143: uint16(22348), + 144: uint16(22441), + 145: uint16(22433), + 146: uint16(22654), + 147: uint16(22716), + 148: uint16(22725), + 149: uint16(22737), + 150: uint16(22313), + 151: uint16(22316), + 152: uint16(22314), + 153: uint16(22323), + 154: uint16(22329), + 155: uint16(22318), + 156: uint16(22319), + 157: uint16(22364), + 158: uint16(22331), + 159: uint16(22338), + 160: uint16(22377), + 161: uint16(22405), + 162: uint16(22379), + 163: uint16(22406), + 164: uint16(22396), + 165: uint16(22395), + 166: uint16(22376), + 167: uint16(22381), + 168: uint16(22390), + 169: uint16(22387), + 170: uint16(22445), + 171: uint16(22436), + 172: uint16(22412), + 173: uint16(22450), + 174: uint16(22479), + 175: uint16(22439), + 176: uint16(22452), + 177: uint16(22419), + 178: uint16(22432), + 179: uint16(22485), + 180: uint16(22488), + 181: uint16(22490), + 182: uint16(22489), + 183: uint16(22482), + 184: uint16(22456), + 185: uint16(22516), + 186: uint16(22511), + 187: uint16(22520), + 188: uint16(22500), + 189: uint16(22493), + }, + 91: { + 0: uint16(36467), + 1: uint16(36469), + 2: uint16(36471), + 3: uint16(36472), + 4: uint16(36473), + 5: uint16(36474), + 6: uint16(36475), + 7: uint16(36477), + 8: uint16(36478), + 9: uint16(36480), + 10: uint16(36482), + 11: uint16(36483), + 12: uint16(36484), + 13: uint16(36486), + 14: uint16(36488), + 15: uint16(36489), + 16: uint16(36490), + 17: uint16(36491), + 18: uint16(36492), + 19: uint16(36493), + 20: uint16(36494), + 21: uint16(36497), + 22: uint16(36498), + 23: uint16(36499), + 24: uint16(36501), + 25: uint16(36502), + 26: uint16(36503), + 27: uint16(36504), + 28: uint16(36505), + 29: uint16(36506), + 30: uint16(36507), + 31: uint16(36509), + 32: uint16(36511), + 33: uint16(36512), + 34: uint16(36513), + 35: uint16(36514), + 36: uint16(36515), + 37: uint16(36516), + 38: uint16(36517), + 39: uint16(36518), + 40: uint16(36519), + 41: uint16(36520), + 42: uint16(36521), + 43: uint16(36522), + 44: uint16(36525), + 45: uint16(36526), + 46: uint16(36528), + 47: uint16(36529), + 48: uint16(36531), + 49: uint16(36532), + 50: uint16(36533), + 51: uint16(36534), + 52: uint16(36535), + 53: uint16(36536), + 54: uint16(36537), + 55: uint16(36539), + 56: uint16(36540), + 57: uint16(36541), + 58: uint16(36542), + 59: uint16(36543), + 60: uint16(36544), + 61: uint16(36545), + 62: uint16(36546), + 63: uint16(36547), + 64: uint16(36548), + 65: uint16(36549), + 66: uint16(36550), + 67: uint16(36551), + 68: uint16(36552), + 69: uint16(36553), + 70: uint16(36554), + 71: uint16(36555), + 72: uint16(36556), + 73: uint16(36557), + 74: uint16(36559), + 75: uint16(36560), + 76: uint16(36561), + 77: uint16(36562), + 78: uint16(36563), + 79: uint16(36564), + 80: uint16(36565), + 81: uint16(36566), + 82: uint16(36567), + 83: uint16(36568), + 84: uint16(36569), + 85: uint16(36570), + 86: uint16(36571), + 87: uint16(36572), + 88: uint16(36573), + 89: uint16(36574), + 90: uint16(36575), + 91: uint16(36576), + 92: uint16(36577), + 93: uint16(36578), + 94: uint16(36579), + 95: uint16(36580), + 96: uint16(22539), + 97: uint16(22541), + 98: uint16(22525), + 99: uint16(22509), + 100: uint16(22528), + 101: uint16(22558), + 102: uint16(22553), + 103: uint16(22596), + 104: uint16(22560), + 105: uint16(22629), + 106: uint16(22636), + 107: uint16(22657), + 108: uint16(22665), + 109: uint16(22682), + 110: uint16(22656), + 111: uint16(39336), + 112: uint16(40729), + 113: uint16(25087), + 114: uint16(33401), + 115: uint16(33405), + 116: uint16(33407), + 117: uint16(33423), + 118: uint16(33418), + 119: uint16(33448), + 120: uint16(33412), + 121: uint16(33422), + 122: uint16(33425), + 123: uint16(33431), + 124: uint16(33433), + 125: uint16(33451), + 126: uint16(33464), + 127: uint16(33470), + 128: uint16(33456), + 129: uint16(33480), + 130: uint16(33482), + 131: uint16(33507), + 132: uint16(33432), + 133: uint16(33463), + 134: uint16(33454), + 135: uint16(33483), + 136: uint16(33484), + 137: uint16(33473), + 138: uint16(33449), + 139: uint16(33460), + 140: uint16(33441), + 141: uint16(33450), + 142: uint16(33439), + 143: uint16(33476), + 144: uint16(33486), + 145: uint16(33444), + 146: uint16(33505), + 147: uint16(33545), + 148: uint16(33527), + 149: uint16(33508), + 150: uint16(33551), + 151: uint16(33543), + 152: uint16(33500), + 153: uint16(33524), + 154: uint16(33490), + 155: uint16(33496), + 156: uint16(33548), + 157: uint16(33531), + 158: uint16(33491), + 159: uint16(33553), + 160: uint16(33562), + 161: uint16(33542), + 162: uint16(33556), + 163: uint16(33557), + 164: uint16(33504), + 165: uint16(33493), + 166: uint16(33564), + 167: uint16(33617), + 168: uint16(33627), + 169: uint16(33628), + 170: uint16(33544), + 171: uint16(33682), + 172: uint16(33596), + 173: uint16(33588), + 174: uint16(33585), + 175: uint16(33691), + 176: uint16(33630), + 177: uint16(33583), + 178: uint16(33615), + 179: uint16(33607), + 180: uint16(33603), + 181: uint16(33631), + 182: uint16(33600), + 183: uint16(33559), + 184: uint16(33632), + 185: uint16(33581), + 186: uint16(33594), + 187: uint16(33587), + 188: uint16(33638), + 189: uint16(33637), + }, + 92: { + 0: uint16(36581), + 1: uint16(36582), + 2: uint16(36583), + 3: uint16(36584), + 4: uint16(36585), + 5: uint16(36586), + 6: uint16(36587), + 7: uint16(36588), + 8: uint16(36589), + 9: uint16(36590), + 10: uint16(36591), + 11: uint16(36592), + 12: uint16(36593), + 13: uint16(36594), + 14: uint16(36595), + 15: uint16(36596), + 16: uint16(36597), + 17: uint16(36598), + 18: uint16(36599), + 19: uint16(36600), + 20: uint16(36601), + 21: uint16(36602), + 22: uint16(36603), + 23: uint16(36604), + 24: uint16(36605), + 25: uint16(36606), + 26: uint16(36607), + 27: uint16(36608), + 28: uint16(36609), + 29: uint16(36610), + 30: uint16(36611), + 31: uint16(36612), + 32: uint16(36613), + 33: uint16(36614), + 34: uint16(36615), + 35: uint16(36616), + 36: uint16(36617), + 37: uint16(36618), + 38: uint16(36619), + 39: uint16(36620), + 40: uint16(36621), + 41: uint16(36622), + 42: uint16(36623), + 43: uint16(36624), + 44: uint16(36625), + 45: uint16(36626), + 46: uint16(36627), + 47: uint16(36628), + 48: uint16(36629), + 49: uint16(36630), + 50: uint16(36631), + 51: uint16(36632), + 52: uint16(36633), + 53: uint16(36634), + 54: uint16(36635), + 55: uint16(36636), + 56: uint16(36637), + 57: uint16(36638), + 58: uint16(36639), + 59: uint16(36640), + 60: uint16(36641), + 61: uint16(36642), + 62: uint16(36643), + 63: uint16(36644), + 64: uint16(36645), + 65: uint16(36646), + 66: uint16(36647), + 67: uint16(36648), + 68: uint16(36649), + 69: uint16(36650), + 70: uint16(36651), + 71: uint16(36652), + 72: uint16(36653), + 73: uint16(36654), + 74: uint16(36655), + 75: uint16(36656), + 76: uint16(36657), + 77: uint16(36658), + 78: uint16(36659), + 79: uint16(36660), + 80: uint16(36661), + 81: uint16(36662), + 82: uint16(36663), + 83: uint16(36664), + 84: uint16(36665), + 85: uint16(36666), + 86: uint16(36667), + 87: uint16(36668), + 88: uint16(36669), + 89: uint16(36670), + 90: uint16(36671), + 91: uint16(36672), + 92: uint16(36673), + 93: uint16(36674), + 94: uint16(36675), + 95: uint16(36676), + 96: uint16(33640), + 97: uint16(33563), + 98: uint16(33641), + 99: uint16(33644), + 100: uint16(33642), + 101: uint16(33645), + 102: uint16(33646), + 103: uint16(33712), + 104: uint16(33656), + 105: uint16(33715), + 106: uint16(33716), + 107: uint16(33696), + 108: uint16(33706), + 109: uint16(33683), + 110: uint16(33692), + 111: uint16(33669), + 112: uint16(33660), + 113: uint16(33718), + 114: uint16(33705), + 115: uint16(33661), + 116: uint16(33720), + 117: uint16(33659), + 118: uint16(33688), + 119: uint16(33694), + 120: uint16(33704), + 121: uint16(33722), + 122: uint16(33724), + 123: uint16(33729), + 124: uint16(33793), + 125: uint16(33765), + 126: uint16(33752), + 127: uint16(22535), + 128: uint16(33816), + 129: uint16(33803), + 130: uint16(33757), + 131: uint16(33789), + 132: uint16(33750), + 133: uint16(33820), + 134: uint16(33848), + 135: uint16(33809), + 136: uint16(33798), + 137: uint16(33748), + 138: uint16(33759), + 139: uint16(33807), + 140: uint16(33795), + 141: uint16(33784), + 142: uint16(33785), + 143: uint16(33770), + 144: uint16(33733), + 145: uint16(33728), + 146: uint16(33830), + 147: uint16(33776), + 148: uint16(33761), + 149: uint16(33884), + 150: uint16(33873), + 151: uint16(33882), + 152: uint16(33881), + 153: uint16(33907), + 154: uint16(33927), + 155: uint16(33928), + 156: uint16(33914), + 157: uint16(33929), + 158: uint16(33912), + 159: uint16(33852), + 160: uint16(33862), + 161: uint16(33897), + 162: uint16(33910), + 163: uint16(33932), + 164: uint16(33934), + 165: uint16(33841), + 166: uint16(33901), + 167: uint16(33985), + 168: uint16(33997), + 169: uint16(34000), + 170: uint16(34022), + 171: uint16(33981), + 172: uint16(34003), + 173: uint16(33994), + 174: uint16(33983), + 175: uint16(33978), + 176: uint16(34016), + 177: uint16(33953), + 178: uint16(33977), + 179: uint16(33972), + 180: uint16(33943), + 181: uint16(34021), + 182: uint16(34019), + 183: uint16(34060), + 184: uint16(29965), + 185: uint16(34104), + 186: uint16(34032), + 187: uint16(34105), + 188: uint16(34079), + 189: uint16(34106), + }, + 93: { + 0: uint16(36677), + 1: uint16(36678), + 2: uint16(36679), + 3: uint16(36680), + 4: uint16(36681), + 5: uint16(36682), + 6: uint16(36683), + 7: uint16(36684), + 8: uint16(36685), + 9: uint16(36686), + 10: uint16(36687), + 11: uint16(36688), + 12: uint16(36689), + 13: uint16(36690), + 14: uint16(36691), + 15: uint16(36692), + 16: uint16(36693), + 17: uint16(36694), + 18: uint16(36695), + 19: uint16(36696), + 20: uint16(36697), + 21: uint16(36698), + 22: uint16(36699), + 23: uint16(36700), + 24: uint16(36701), + 25: uint16(36702), + 26: uint16(36703), + 27: uint16(36704), + 28: uint16(36705), + 29: uint16(36706), + 30: uint16(36707), + 31: uint16(36708), + 32: uint16(36709), + 33: uint16(36714), + 34: uint16(36736), + 35: uint16(36748), + 36: uint16(36754), + 37: uint16(36765), + 38: uint16(36768), + 39: uint16(36769), + 40: uint16(36770), + 41: uint16(36772), + 42: uint16(36773), + 43: uint16(36774), + 44: uint16(36775), + 45: uint16(36778), + 46: uint16(36780), + 47: uint16(36781), + 48: uint16(36782), + 49: uint16(36783), + 50: uint16(36786), + 51: uint16(36787), + 52: uint16(36788), + 53: uint16(36789), + 54: uint16(36791), + 55: uint16(36792), + 56: uint16(36794), + 57: uint16(36795), + 58: uint16(36796), + 59: uint16(36799), + 60: uint16(36800), + 61: uint16(36803), + 62: uint16(36806), + 63: uint16(36809), + 64: uint16(36810), + 65: uint16(36811), + 66: uint16(36812), + 67: uint16(36813), + 68: uint16(36815), + 69: uint16(36818), + 70: uint16(36822), + 71: uint16(36823), + 72: uint16(36826), + 73: uint16(36832), + 74: uint16(36833), + 75: uint16(36835), + 76: uint16(36839), + 77: uint16(36844), + 78: uint16(36847), + 79: uint16(36849), + 80: uint16(36850), + 81: uint16(36852), + 82: uint16(36853), + 83: uint16(36854), + 84: uint16(36858), + 85: uint16(36859), + 86: uint16(36860), + 87: uint16(36862), + 88: uint16(36863), + 89: uint16(36871), + 90: uint16(36872), + 91: uint16(36876), + 92: uint16(36878), + 93: uint16(36883), + 94: uint16(36885), + 95: uint16(36888), + 96: uint16(34134), + 97: uint16(34107), + 98: uint16(34047), + 99: uint16(34044), + 100: uint16(34137), + 101: uint16(34120), + 102: uint16(34152), + 103: uint16(34148), + 104: uint16(34142), + 105: uint16(34170), + 106: uint16(30626), + 107: uint16(34115), + 108: uint16(34162), + 109: uint16(34171), + 110: uint16(34212), + 111: uint16(34216), + 112: uint16(34183), + 113: uint16(34191), + 114: uint16(34169), + 115: uint16(34222), + 116: uint16(34204), + 117: uint16(34181), + 118: uint16(34233), + 119: uint16(34231), + 120: uint16(34224), + 121: uint16(34259), + 122: uint16(34241), + 123: uint16(34268), + 124: uint16(34303), + 125: uint16(34343), + 126: uint16(34309), + 127: uint16(34345), + 128: uint16(34326), + 129: uint16(34364), + 130: uint16(24318), + 131: uint16(24328), + 132: uint16(22844), + 133: uint16(22849), + 134: uint16(32823), + 135: uint16(22869), + 136: uint16(22874), + 137: uint16(22872), + 138: uint16(21263), + 139: uint16(23586), + 140: uint16(23589), + 141: uint16(23596), + 142: uint16(23604), + 143: uint16(25164), + 144: uint16(25194), + 145: uint16(25247), + 146: uint16(25275), + 147: uint16(25290), + 148: uint16(25306), + 149: uint16(25303), + 150: uint16(25326), + 151: uint16(25378), + 152: uint16(25334), + 153: uint16(25401), + 154: uint16(25419), + 155: uint16(25411), + 156: uint16(25517), + 157: uint16(25590), + 158: uint16(25457), + 159: uint16(25466), + 160: uint16(25486), + 161: uint16(25524), + 162: uint16(25453), + 163: uint16(25516), + 164: uint16(25482), + 165: uint16(25449), + 166: uint16(25518), + 167: uint16(25532), + 168: uint16(25586), + 169: uint16(25592), + 170: uint16(25568), + 171: uint16(25599), + 172: uint16(25540), + 173: uint16(25566), + 174: uint16(25550), + 175: uint16(25682), + 176: uint16(25542), + 177: uint16(25534), + 178: uint16(25669), + 179: uint16(25665), + 180: uint16(25611), + 181: uint16(25627), + 182: uint16(25632), + 183: uint16(25612), + 184: uint16(25638), + 185: uint16(25633), + 186: uint16(25694), + 187: uint16(25732), + 188: uint16(25709), + 189: uint16(25750), + }, + 94: { + 0: uint16(36889), + 1: uint16(36892), + 2: uint16(36899), + 3: uint16(36900), + 4: uint16(36901), + 5: uint16(36903), + 6: uint16(36904), + 7: uint16(36905), + 8: uint16(36906), + 9: uint16(36907), + 10: uint16(36908), + 11: uint16(36912), + 12: uint16(36913), + 13: uint16(36914), + 14: uint16(36915), + 15: uint16(36916), + 16: uint16(36919), + 17: uint16(36921), + 18: uint16(36922), + 19: uint16(36925), + 20: uint16(36927), + 21: uint16(36928), + 22: uint16(36931), + 23: uint16(36933), + 24: uint16(36934), + 25: uint16(36936), + 26: uint16(36937), + 27: uint16(36938), + 28: uint16(36939), + 29: uint16(36940), + 30: uint16(36942), + 31: uint16(36948), + 32: uint16(36949), + 33: uint16(36950), + 34: uint16(36953), + 35: uint16(36954), + 36: uint16(36956), + 37: uint16(36957), + 38: uint16(36958), + 39: uint16(36959), + 40: uint16(36960), + 41: uint16(36961), + 42: uint16(36964), + 43: uint16(36966), + 44: uint16(36967), + 45: uint16(36969), + 46: uint16(36970), + 47: uint16(36971), + 48: uint16(36972), + 49: uint16(36975), + 50: uint16(36976), + 51: uint16(36977), + 52: uint16(36978), + 53: uint16(36979), + 54: uint16(36982), + 55: uint16(36983), + 56: uint16(36984), + 57: uint16(36985), + 58: uint16(36986), + 59: uint16(36987), + 60: uint16(36988), + 61: uint16(36990), + 62: uint16(36993), + 63: uint16(36996), + 64: uint16(36997), + 65: uint16(36998), + 66: uint16(36999), + 67: uint16(37001), + 68: uint16(37002), + 69: uint16(37004), + 70: uint16(37005), + 71: uint16(37006), + 72: uint16(37007), + 73: uint16(37008), + 74: uint16(37010), + 75: uint16(37012), + 76: uint16(37014), + 77: uint16(37016), + 78: uint16(37018), + 79: uint16(37020), + 80: uint16(37022), + 81: uint16(37023), + 82: uint16(37024), + 83: uint16(37028), + 84: uint16(37029), + 85: uint16(37031), + 86: uint16(37032), + 87: uint16(37033), + 88: uint16(37035), + 89: uint16(37037), + 90: uint16(37042), + 91: uint16(37047), + 92: uint16(37052), + 93: uint16(37053), + 94: uint16(37055), + 95: uint16(37056), + 96: uint16(25722), + 97: uint16(25783), + 98: uint16(25784), + 99: uint16(25753), + 100: uint16(25786), + 101: uint16(25792), + 102: uint16(25808), + 103: uint16(25815), + 104: uint16(25828), + 105: uint16(25826), + 106: uint16(25865), + 107: uint16(25893), + 108: uint16(25902), + 109: uint16(24331), + 110: uint16(24530), + 111: uint16(29977), + 112: uint16(24337), + 113: uint16(21343), + 114: uint16(21489), + 115: uint16(21501), + 116: uint16(21481), + 117: uint16(21480), + 118: uint16(21499), + 119: uint16(21522), + 120: uint16(21526), + 121: uint16(21510), + 122: uint16(21579), + 123: uint16(21586), + 124: uint16(21587), + 125: uint16(21588), + 126: uint16(21590), + 127: uint16(21571), + 128: uint16(21537), + 129: uint16(21591), + 130: uint16(21593), + 131: uint16(21539), + 132: uint16(21554), + 133: uint16(21634), + 134: uint16(21652), + 135: uint16(21623), + 136: uint16(21617), + 137: uint16(21604), + 138: uint16(21658), + 139: uint16(21659), + 140: uint16(21636), + 141: uint16(21622), + 142: uint16(21606), + 143: uint16(21661), + 144: uint16(21712), + 145: uint16(21677), + 146: uint16(21698), + 147: uint16(21684), + 148: uint16(21714), + 149: uint16(21671), + 150: uint16(21670), + 151: uint16(21715), + 152: uint16(21716), + 153: uint16(21618), + 154: uint16(21667), + 155: uint16(21717), + 156: uint16(21691), + 157: uint16(21695), + 158: uint16(21708), + 159: uint16(21721), + 160: uint16(21722), + 161: uint16(21724), + 162: uint16(21673), + 163: uint16(21674), + 164: uint16(21668), + 165: uint16(21725), + 166: uint16(21711), + 167: uint16(21726), + 168: uint16(21787), + 169: uint16(21735), + 170: uint16(21792), + 171: uint16(21757), + 172: uint16(21780), + 173: uint16(21747), + 174: uint16(21794), + 175: uint16(21795), + 176: uint16(21775), + 177: uint16(21777), + 178: uint16(21799), + 179: uint16(21802), + 180: uint16(21863), + 181: uint16(21903), + 182: uint16(21941), + 183: uint16(21833), + 184: uint16(21869), + 185: uint16(21825), + 186: uint16(21845), + 187: uint16(21823), + 188: uint16(21840), + 189: uint16(21820), + }, + 95: { + 0: uint16(37058), + 1: uint16(37059), + 2: uint16(37062), + 3: uint16(37064), + 4: uint16(37065), + 5: uint16(37067), + 6: uint16(37068), + 7: uint16(37069), + 8: uint16(37074), + 9: uint16(37076), + 10: uint16(37077), + 11: uint16(37078), + 12: uint16(37080), + 13: uint16(37081), + 14: uint16(37082), + 15: uint16(37086), + 16: uint16(37087), + 17: uint16(37088), + 18: uint16(37091), + 19: uint16(37092), + 20: uint16(37093), + 21: uint16(37097), + 22: uint16(37098), + 23: uint16(37100), + 24: uint16(37102), + 25: uint16(37104), + 26: uint16(37105), + 27: uint16(37106), + 28: uint16(37107), + 29: uint16(37109), + 30: uint16(37110), + 31: uint16(37111), + 32: uint16(37113), + 33: uint16(37114), + 34: uint16(37115), + 35: uint16(37116), + 36: uint16(37119), + 37: uint16(37120), + 38: uint16(37121), + 39: uint16(37123), + 40: uint16(37125), + 41: uint16(37126), + 42: uint16(37127), + 43: uint16(37128), + 44: uint16(37129), + 45: uint16(37130), + 46: uint16(37131), + 47: uint16(37132), + 48: uint16(37133), + 49: uint16(37134), + 50: uint16(37135), + 51: uint16(37136), + 52: uint16(37137), + 53: uint16(37138), + 54: uint16(37139), + 55: uint16(37140), + 56: uint16(37141), + 57: uint16(37142), + 58: uint16(37143), + 59: uint16(37144), + 60: uint16(37146), + 61: uint16(37147), + 62: uint16(37148), + 63: uint16(37149), + 64: uint16(37151), + 65: uint16(37152), + 66: uint16(37153), + 67: uint16(37156), + 68: uint16(37157), + 69: uint16(37158), + 70: uint16(37159), + 71: uint16(37160), + 72: uint16(37161), + 73: uint16(37162), + 74: uint16(37163), + 75: uint16(37164), + 76: uint16(37165), + 77: uint16(37166), + 78: uint16(37168), + 79: uint16(37170), + 80: uint16(37171), + 81: uint16(37172), + 82: uint16(37173), + 83: uint16(37174), + 84: uint16(37175), + 85: uint16(37176), + 86: uint16(37178), + 87: uint16(37179), + 88: uint16(37180), + 89: uint16(37181), + 90: uint16(37182), + 91: uint16(37183), + 92: uint16(37184), + 93: uint16(37185), + 94: uint16(37186), + 95: uint16(37188), + 96: uint16(21815), + 97: uint16(21846), + 98: uint16(21877), + 99: uint16(21878), + 100: uint16(21879), + 101: uint16(21811), + 102: uint16(21808), + 103: uint16(21852), + 104: uint16(21899), + 105: uint16(21970), + 106: uint16(21891), + 107: uint16(21937), + 108: uint16(21945), + 109: uint16(21896), + 110: uint16(21889), + 111: uint16(21919), + 112: uint16(21886), + 113: uint16(21974), + 114: uint16(21905), + 115: uint16(21883), + 116: uint16(21983), + 117: uint16(21949), + 118: uint16(21950), + 119: uint16(21908), + 120: uint16(21913), + 121: uint16(21994), + 122: uint16(22007), + 123: uint16(21961), + 124: uint16(22047), + 125: uint16(21969), + 126: uint16(21995), + 127: uint16(21996), + 128: uint16(21972), + 129: uint16(21990), + 130: uint16(21981), + 131: uint16(21956), + 132: uint16(21999), + 133: uint16(21989), + 134: uint16(22002), + 135: uint16(22003), + 136: uint16(21964), + 137: uint16(21965), + 138: uint16(21992), + 139: uint16(22005), + 140: uint16(21988), + 141: uint16(36756), + 142: uint16(22046), + 143: uint16(22024), + 144: uint16(22028), + 145: uint16(22017), + 146: uint16(22052), + 147: uint16(22051), + 148: uint16(22014), + 149: uint16(22016), + 150: uint16(22055), + 151: uint16(22061), + 152: uint16(22104), + 153: uint16(22073), + 154: uint16(22103), + 155: uint16(22060), + 156: uint16(22093), + 157: uint16(22114), + 158: uint16(22105), + 159: uint16(22108), + 160: uint16(22092), + 161: uint16(22100), + 162: uint16(22150), + 163: uint16(22116), + 164: uint16(22129), + 165: uint16(22123), + 166: uint16(22139), + 167: uint16(22140), + 168: uint16(22149), + 169: uint16(22163), + 170: uint16(22191), + 171: uint16(22228), + 172: uint16(22231), + 173: uint16(22237), + 174: uint16(22241), + 175: uint16(22261), + 176: uint16(22251), + 177: uint16(22265), + 178: uint16(22271), + 179: uint16(22276), + 180: uint16(22282), + 181: uint16(22281), + 182: uint16(22300), + 183: uint16(24079), + 184: uint16(24089), + 185: uint16(24084), + 186: uint16(24081), + 187: uint16(24113), + 188: uint16(24123), + 189: uint16(24124), + }, + 96: { + 0: uint16(37189), + 1: uint16(37191), + 2: uint16(37192), + 3: uint16(37201), + 4: uint16(37203), + 5: uint16(37204), + 6: uint16(37205), + 7: uint16(37206), + 8: uint16(37208), + 9: uint16(37209), + 10: uint16(37211), + 11: uint16(37212), + 12: uint16(37215), + 13: uint16(37216), + 14: uint16(37222), + 15: uint16(37223), + 16: uint16(37224), + 17: uint16(37227), + 18: uint16(37229), + 19: uint16(37235), + 20: uint16(37242), + 21: uint16(37243), + 22: uint16(37244), + 23: uint16(37248), + 24: uint16(37249), + 25: uint16(37250), + 26: uint16(37251), + 27: uint16(37252), + 28: uint16(37254), + 29: uint16(37256), + 30: uint16(37258), + 31: uint16(37262), + 32: uint16(37263), + 33: uint16(37267), + 34: uint16(37268), + 35: uint16(37269), + 36: uint16(37270), + 37: uint16(37271), + 38: uint16(37272), + 39: uint16(37273), + 40: uint16(37276), + 41: uint16(37277), + 42: uint16(37278), + 43: uint16(37279), + 44: uint16(37280), + 45: uint16(37281), + 46: uint16(37284), + 47: uint16(37285), + 48: uint16(37286), + 49: uint16(37287), + 50: uint16(37288), + 51: uint16(37289), + 52: uint16(37291), + 53: uint16(37292), + 54: uint16(37296), + 55: uint16(37297), + 56: uint16(37298), + 57: uint16(37299), + 58: uint16(37302), + 59: uint16(37303), + 60: uint16(37304), + 61: uint16(37305), + 62: uint16(37307), + 63: uint16(37308), + 64: uint16(37309), + 65: uint16(37310), + 66: uint16(37311), + 67: uint16(37312), + 68: uint16(37313), + 69: uint16(37314), + 70: uint16(37315), + 71: uint16(37316), + 72: uint16(37317), + 73: uint16(37318), + 74: uint16(37320), + 75: uint16(37323), + 76: uint16(37328), + 77: uint16(37330), + 78: uint16(37331), + 79: uint16(37332), + 80: uint16(37333), + 81: uint16(37334), + 82: uint16(37335), + 83: uint16(37336), + 84: uint16(37337), + 85: uint16(37338), + 86: uint16(37339), + 87: uint16(37341), + 88: uint16(37342), + 89: uint16(37343), + 90: uint16(37344), + 91: uint16(37345), + 92: uint16(37346), + 93: uint16(37347), + 94: uint16(37348), + 95: uint16(37349), + 96: uint16(24119), + 97: uint16(24132), + 98: uint16(24148), + 99: uint16(24155), + 100: uint16(24158), + 101: uint16(24161), + 102: uint16(23692), + 103: uint16(23674), + 104: uint16(23693), + 105: uint16(23696), + 106: uint16(23702), + 107: uint16(23688), + 108: uint16(23704), + 109: uint16(23705), + 110: uint16(23697), + 111: uint16(23706), + 112: uint16(23708), + 113: uint16(23733), + 114: uint16(23714), + 115: uint16(23741), + 116: uint16(23724), + 117: uint16(23723), + 118: uint16(23729), + 119: uint16(23715), + 120: uint16(23745), + 121: uint16(23735), + 122: uint16(23748), + 123: uint16(23762), + 124: uint16(23780), + 125: uint16(23755), + 126: uint16(23781), + 127: uint16(23810), + 128: uint16(23811), + 129: uint16(23847), + 130: uint16(23846), + 131: uint16(23854), + 132: uint16(23844), + 133: uint16(23838), + 134: uint16(23814), + 135: uint16(23835), + 136: uint16(23896), + 137: uint16(23870), + 138: uint16(23860), + 139: uint16(23869), + 140: uint16(23916), + 141: uint16(23899), + 142: uint16(23919), + 143: uint16(23901), + 144: uint16(23915), + 145: uint16(23883), + 146: uint16(23882), + 147: uint16(23913), + 148: uint16(23924), + 149: uint16(23938), + 150: uint16(23961), + 151: uint16(23965), + 152: uint16(35955), + 153: uint16(23991), + 154: uint16(24005), + 155: uint16(24435), + 156: uint16(24439), + 157: uint16(24450), + 158: uint16(24455), + 159: uint16(24457), + 160: uint16(24460), + 161: uint16(24469), + 162: uint16(24473), + 163: uint16(24476), + 164: uint16(24488), + 165: uint16(24493), + 166: uint16(24501), + 167: uint16(24508), + 168: uint16(34914), + 169: uint16(24417), + 170: uint16(29357), + 171: uint16(29360), + 172: uint16(29364), + 173: uint16(29367), + 174: uint16(29368), + 175: uint16(29379), + 176: uint16(29377), + 177: uint16(29390), + 178: uint16(29389), + 179: uint16(29394), + 180: uint16(29416), + 181: uint16(29423), + 182: uint16(29417), + 183: uint16(29426), + 184: uint16(29428), + 185: uint16(29431), + 186: uint16(29441), + 187: uint16(29427), + 188: uint16(29443), + 189: uint16(29434), + }, + 97: { + 0: uint16(37350), + 1: uint16(37351), + 2: uint16(37352), + 3: uint16(37353), + 4: uint16(37354), + 5: uint16(37355), + 6: uint16(37356), + 7: uint16(37357), + 8: uint16(37358), + 9: uint16(37359), + 10: uint16(37360), + 11: uint16(37361), + 12: uint16(37362), + 13: uint16(37363), + 14: uint16(37364), + 15: uint16(37365), + 16: uint16(37366), + 17: uint16(37367), + 18: uint16(37368), + 19: uint16(37369), + 20: uint16(37370), + 21: uint16(37371), + 22: uint16(37372), + 23: uint16(37373), + 24: uint16(37374), + 25: uint16(37375), + 26: uint16(37376), + 27: uint16(37377), + 28: uint16(37378), + 29: uint16(37379), + 30: uint16(37380), + 31: uint16(37381), + 32: uint16(37382), + 33: uint16(37383), + 34: uint16(37384), + 35: uint16(37385), + 36: uint16(37386), + 37: uint16(37387), + 38: uint16(37388), + 39: uint16(37389), + 40: uint16(37390), + 41: uint16(37391), + 42: uint16(37392), + 43: uint16(37393), + 44: uint16(37394), + 45: uint16(37395), + 46: uint16(37396), + 47: uint16(37397), + 48: uint16(37398), + 49: uint16(37399), + 50: uint16(37400), + 51: uint16(37401), + 52: uint16(37402), + 53: uint16(37403), + 54: uint16(37404), + 55: uint16(37405), + 56: uint16(37406), + 57: uint16(37407), + 58: uint16(37408), + 59: uint16(37409), + 60: uint16(37410), + 61: uint16(37411), + 62: uint16(37412), + 63: uint16(37413), + 64: uint16(37414), + 65: uint16(37415), + 66: uint16(37416), + 67: uint16(37417), + 68: uint16(37418), + 69: uint16(37419), + 70: uint16(37420), + 71: uint16(37421), + 72: uint16(37422), + 73: uint16(37423), + 74: uint16(37424), + 75: uint16(37425), + 76: uint16(37426), + 77: uint16(37427), + 78: uint16(37428), + 79: uint16(37429), + 80: uint16(37430), + 81: uint16(37431), + 82: uint16(37432), + 83: uint16(37433), + 84: uint16(37434), + 85: uint16(37435), + 86: uint16(37436), + 87: uint16(37437), + 88: uint16(37438), + 89: uint16(37439), + 90: uint16(37440), + 91: uint16(37441), + 92: uint16(37442), + 93: uint16(37443), + 94: uint16(37444), + 95: uint16(37445), + 96: uint16(29435), + 97: uint16(29463), + 98: uint16(29459), + 99: uint16(29473), + 100: uint16(29450), + 101: uint16(29470), + 102: uint16(29469), + 103: uint16(29461), + 104: uint16(29474), + 105: uint16(29497), + 106: uint16(29477), + 107: uint16(29484), + 108: uint16(29496), + 109: uint16(29489), + 110: uint16(29520), + 111: uint16(29517), + 112: uint16(29527), + 113: uint16(29536), + 114: uint16(29548), + 115: uint16(29551), + 116: uint16(29566), + 117: uint16(33307), + 118: uint16(22821), + 119: uint16(39143), + 120: uint16(22820), + 121: uint16(22786), + 122: uint16(39267), + 123: uint16(39271), + 124: uint16(39272), + 125: uint16(39273), + 126: uint16(39274), + 127: uint16(39275), + 128: uint16(39276), + 129: uint16(39284), + 130: uint16(39287), + 131: uint16(39293), + 132: uint16(39296), + 133: uint16(39300), + 134: uint16(39303), + 135: uint16(39306), + 136: uint16(39309), + 137: uint16(39312), + 138: uint16(39313), + 139: uint16(39315), + 140: uint16(39316), + 141: uint16(39317), + 142: uint16(24192), + 143: uint16(24209), + 144: uint16(24203), + 145: uint16(24214), + 146: uint16(24229), + 147: uint16(24224), + 148: uint16(24249), + 149: uint16(24245), + 150: uint16(24254), + 151: uint16(24243), + 152: uint16(36179), + 153: uint16(24274), + 154: uint16(24273), + 155: uint16(24283), + 156: uint16(24296), + 157: uint16(24298), + 158: uint16(33210), + 159: uint16(24516), + 160: uint16(24521), + 161: uint16(24534), + 162: uint16(24527), + 163: uint16(24579), + 164: uint16(24558), + 165: uint16(24580), + 166: uint16(24545), + 167: uint16(24548), + 168: uint16(24574), + 169: uint16(24581), + 170: uint16(24582), + 171: uint16(24554), + 172: uint16(24557), + 173: uint16(24568), + 174: uint16(24601), + 175: uint16(24629), + 176: uint16(24614), + 177: uint16(24603), + 178: uint16(24591), + 179: uint16(24589), + 180: uint16(24617), + 181: uint16(24619), + 182: uint16(24586), + 183: uint16(24639), + 184: uint16(24609), + 185: uint16(24696), + 186: uint16(24697), + 187: uint16(24699), + 188: uint16(24698), + 189: uint16(24642), + }, + 98: { + 0: uint16(37446), + 1: uint16(37447), + 2: uint16(37448), + 3: uint16(37449), + 4: uint16(37450), + 5: uint16(37451), + 6: uint16(37452), + 7: uint16(37453), + 8: uint16(37454), + 9: uint16(37455), + 10: uint16(37456), + 11: uint16(37457), + 12: uint16(37458), + 13: uint16(37459), + 14: uint16(37460), + 15: uint16(37461), + 16: uint16(37462), + 17: uint16(37463), + 18: uint16(37464), + 19: uint16(37465), + 20: uint16(37466), + 21: uint16(37467), + 22: uint16(37468), + 23: uint16(37469), + 24: uint16(37470), + 25: uint16(37471), + 26: uint16(37472), + 27: uint16(37473), + 28: uint16(37474), + 29: uint16(37475), + 30: uint16(37476), + 31: uint16(37477), + 32: uint16(37478), + 33: uint16(37479), + 34: uint16(37480), + 35: uint16(37481), + 36: uint16(37482), + 37: uint16(37483), + 38: uint16(37484), + 39: uint16(37485), + 40: uint16(37486), + 41: uint16(37487), + 42: uint16(37488), + 43: uint16(37489), + 44: uint16(37490), + 45: uint16(37491), + 46: uint16(37493), + 47: uint16(37494), + 48: uint16(37495), + 49: uint16(37496), + 50: uint16(37497), + 51: uint16(37498), + 52: uint16(37499), + 53: uint16(37500), + 54: uint16(37501), + 55: uint16(37502), + 56: uint16(37503), + 57: uint16(37504), + 58: uint16(37505), + 59: uint16(37506), + 60: uint16(37507), + 61: uint16(37508), + 62: uint16(37509), + 63: uint16(37510), + 64: uint16(37511), + 65: uint16(37512), + 66: uint16(37513), + 67: uint16(37514), + 68: uint16(37515), + 69: uint16(37516), + 70: uint16(37517), + 71: uint16(37519), + 72: uint16(37520), + 73: uint16(37521), + 74: uint16(37522), + 75: uint16(37523), + 76: uint16(37524), + 77: uint16(37525), + 78: uint16(37526), + 79: uint16(37527), + 80: uint16(37528), + 81: uint16(37529), + 82: uint16(37530), + 83: uint16(37531), + 84: uint16(37532), + 85: uint16(37533), + 86: uint16(37534), + 87: uint16(37535), + 88: uint16(37536), + 89: uint16(37537), + 90: uint16(37538), + 91: uint16(37539), + 92: uint16(37540), + 93: uint16(37541), + 94: uint16(37542), + 95: uint16(37543), + 96: uint16(24682), + 97: uint16(24701), + 98: uint16(24726), + 99: uint16(24730), + 100: uint16(24749), + 101: uint16(24733), + 102: uint16(24707), + 103: uint16(24722), + 104: uint16(24716), + 105: uint16(24731), + 106: uint16(24812), + 107: uint16(24763), + 108: uint16(24753), + 109: uint16(24797), + 110: uint16(24792), + 111: uint16(24774), + 112: uint16(24794), + 113: uint16(24756), + 114: uint16(24864), + 115: uint16(24870), + 116: uint16(24853), + 117: uint16(24867), + 118: uint16(24820), + 119: uint16(24832), + 120: uint16(24846), + 121: uint16(24875), + 122: uint16(24906), + 123: uint16(24949), + 124: uint16(25004), + 125: uint16(24980), + 126: uint16(24999), + 127: uint16(25015), + 128: uint16(25044), + 129: uint16(25077), + 130: uint16(24541), + 131: uint16(38579), + 132: uint16(38377), + 133: uint16(38379), + 134: uint16(38385), + 135: uint16(38387), + 136: uint16(38389), + 137: uint16(38390), + 138: uint16(38396), + 139: uint16(38398), + 140: uint16(38403), + 141: uint16(38404), + 142: uint16(38406), + 143: uint16(38408), + 144: uint16(38410), + 145: uint16(38411), + 146: uint16(38412), + 147: uint16(38413), + 148: uint16(38415), + 149: uint16(38418), + 150: uint16(38421), + 151: uint16(38422), + 152: uint16(38423), + 153: uint16(38425), + 154: uint16(38426), + 155: uint16(20012), + 156: uint16(29247), + 157: uint16(25109), + 158: uint16(27701), + 159: uint16(27732), + 160: uint16(27740), + 161: uint16(27722), + 162: uint16(27811), + 163: uint16(27781), + 164: uint16(27792), + 165: uint16(27796), + 166: uint16(27788), + 167: uint16(27752), + 168: uint16(27753), + 169: uint16(27764), + 170: uint16(27766), + 171: uint16(27782), + 172: uint16(27817), + 173: uint16(27856), + 174: uint16(27860), + 175: uint16(27821), + 176: uint16(27895), + 177: uint16(27896), + 178: uint16(27889), + 179: uint16(27863), + 180: uint16(27826), + 181: uint16(27872), + 182: uint16(27862), + 183: uint16(27898), + 184: uint16(27883), + 185: uint16(27886), + 186: uint16(27825), + 187: uint16(27859), + 188: uint16(27887), + 189: uint16(27902), + }, + 99: { + 0: uint16(37544), + 1: uint16(37545), + 2: uint16(37546), + 3: uint16(37547), + 4: uint16(37548), + 5: uint16(37549), + 6: uint16(37551), + 7: uint16(37552), + 8: uint16(37553), + 9: uint16(37554), + 10: uint16(37555), + 11: uint16(37556), + 12: uint16(37557), + 13: uint16(37558), + 14: uint16(37559), + 15: uint16(37560), + 16: uint16(37561), + 17: uint16(37562), + 18: uint16(37563), + 19: uint16(37564), + 20: uint16(37565), + 21: uint16(37566), + 22: uint16(37567), + 23: uint16(37568), + 24: uint16(37569), + 25: uint16(37570), + 26: uint16(37571), + 27: uint16(37572), + 28: uint16(37573), + 29: uint16(37574), + 30: uint16(37575), + 31: uint16(37577), + 32: uint16(37578), + 33: uint16(37579), + 34: uint16(37580), + 35: uint16(37581), + 36: uint16(37582), + 37: uint16(37583), + 38: uint16(37584), + 39: uint16(37585), + 40: uint16(37586), + 41: uint16(37587), + 42: uint16(37588), + 43: uint16(37589), + 44: uint16(37590), + 45: uint16(37591), + 46: uint16(37592), + 47: uint16(37593), + 48: uint16(37594), + 49: uint16(37595), + 50: uint16(37596), + 51: uint16(37597), + 52: uint16(37598), + 53: uint16(37599), + 54: uint16(37600), + 55: uint16(37601), + 56: uint16(37602), + 57: uint16(37603), + 58: uint16(37604), + 59: uint16(37605), + 60: uint16(37606), + 61: uint16(37607), + 62: uint16(37608), + 63: uint16(37609), + 64: uint16(37610), + 65: uint16(37611), + 66: uint16(37612), + 67: uint16(37613), + 68: uint16(37614), + 69: uint16(37615), + 70: uint16(37616), + 71: uint16(37617), + 72: uint16(37618), + 73: uint16(37619), + 74: uint16(37620), + 75: uint16(37621), + 76: uint16(37622), + 77: uint16(37623), + 78: uint16(37624), + 79: uint16(37625), + 80: uint16(37626), + 81: uint16(37627), + 82: uint16(37628), + 83: uint16(37629), + 84: uint16(37630), + 85: uint16(37631), + 86: uint16(37632), + 87: uint16(37633), + 88: uint16(37634), + 89: uint16(37635), + 90: uint16(37636), + 91: uint16(37637), + 92: uint16(37638), + 93: uint16(37639), + 94: uint16(37640), + 95: uint16(37641), + 96: uint16(27961), + 97: uint16(27943), + 98: uint16(27916), + 99: uint16(27971), + 100: uint16(27976), + 101: uint16(27911), + 102: uint16(27908), + 103: uint16(27929), + 104: uint16(27918), + 105: uint16(27947), + 106: uint16(27981), + 107: uint16(27950), + 108: uint16(27957), + 109: uint16(27930), + 110: uint16(27983), + 111: uint16(27986), + 112: uint16(27988), + 113: uint16(27955), + 114: uint16(28049), + 115: uint16(28015), + 116: uint16(28062), + 117: uint16(28064), + 118: uint16(27998), + 119: uint16(28051), + 120: uint16(28052), + 121: uint16(27996), + 122: uint16(28000), + 123: uint16(28028), + 124: uint16(28003), + 125: uint16(28186), + 126: uint16(28103), + 127: uint16(28101), + 128: uint16(28126), + 129: uint16(28174), + 130: uint16(28095), + 131: uint16(28128), + 132: uint16(28177), + 133: uint16(28134), + 134: uint16(28125), + 135: uint16(28121), + 136: uint16(28182), + 137: uint16(28075), + 138: uint16(28172), + 139: uint16(28078), + 140: uint16(28203), + 141: uint16(28270), + 142: uint16(28238), + 143: uint16(28267), + 144: uint16(28338), + 145: uint16(28255), + 146: uint16(28294), + 147: uint16(28243), + 148: uint16(28244), + 149: uint16(28210), + 150: uint16(28197), + 151: uint16(28228), + 152: uint16(28383), + 153: uint16(28337), + 154: uint16(28312), + 155: uint16(28384), + 156: uint16(28461), + 157: uint16(28386), + 158: uint16(28325), + 159: uint16(28327), + 160: uint16(28349), + 161: uint16(28347), + 162: uint16(28343), + 163: uint16(28375), + 164: uint16(28340), + 165: uint16(28367), + 166: uint16(28303), + 167: uint16(28354), + 168: uint16(28319), + 169: uint16(28514), + 170: uint16(28486), + 171: uint16(28487), + 172: uint16(28452), + 173: uint16(28437), + 174: uint16(28409), + 175: uint16(28463), + 176: uint16(28470), + 177: uint16(28491), + 178: uint16(28532), + 179: uint16(28458), + 180: uint16(28425), + 181: uint16(28457), + 182: uint16(28553), + 183: uint16(28557), + 184: uint16(28556), + 185: uint16(28536), + 186: uint16(28530), + 187: uint16(28540), + 188: uint16(28538), + 189: uint16(28625), + }, + 100: { + 0: uint16(37642), + 1: uint16(37643), + 2: uint16(37644), + 3: uint16(37645), + 4: uint16(37646), + 5: uint16(37647), + 6: uint16(37648), + 7: uint16(37649), + 8: uint16(37650), + 9: uint16(37651), + 10: uint16(37652), + 11: uint16(37653), + 12: uint16(37654), + 13: uint16(37655), + 14: uint16(37656), + 15: uint16(37657), + 16: uint16(37658), + 17: uint16(37659), + 18: uint16(37660), + 19: uint16(37661), + 20: uint16(37662), + 21: uint16(37663), + 22: uint16(37664), + 23: uint16(37665), + 24: uint16(37666), + 25: uint16(37667), + 26: uint16(37668), + 27: uint16(37669), + 28: uint16(37670), + 29: uint16(37671), + 30: uint16(37672), + 31: uint16(37673), + 32: uint16(37674), + 33: uint16(37675), + 34: uint16(37676), + 35: uint16(37677), + 36: uint16(37678), + 37: uint16(37679), + 38: uint16(37680), + 39: uint16(37681), + 40: uint16(37682), + 41: uint16(37683), + 42: uint16(37684), + 43: uint16(37685), + 44: uint16(37686), + 45: uint16(37687), + 46: uint16(37688), + 47: uint16(37689), + 48: uint16(37690), + 49: uint16(37691), + 50: uint16(37692), + 51: uint16(37693), + 52: uint16(37695), + 53: uint16(37696), + 54: uint16(37697), + 55: uint16(37698), + 56: uint16(37699), + 57: uint16(37700), + 58: uint16(37701), + 59: uint16(37702), + 60: uint16(37703), + 61: uint16(37704), + 62: uint16(37705), + 63: uint16(37706), + 64: uint16(37707), + 65: uint16(37708), + 66: uint16(37709), + 67: uint16(37710), + 68: uint16(37711), + 69: uint16(37712), + 70: uint16(37713), + 71: uint16(37714), + 72: uint16(37715), + 73: uint16(37716), + 74: uint16(37717), + 75: uint16(37718), + 76: uint16(37719), + 77: uint16(37720), + 78: uint16(37721), + 79: uint16(37722), + 80: uint16(37723), + 81: uint16(37724), + 82: uint16(37725), + 83: uint16(37726), + 84: uint16(37727), + 85: uint16(37728), + 86: uint16(37729), + 87: uint16(37730), + 88: uint16(37731), + 89: uint16(37732), + 90: uint16(37733), + 91: uint16(37734), + 92: uint16(37735), + 93: uint16(37736), + 94: uint16(37737), + 95: uint16(37739), + 96: uint16(28617), + 97: uint16(28583), + 98: uint16(28601), + 99: uint16(28598), + 100: uint16(28610), + 101: uint16(28641), + 102: uint16(28654), + 103: uint16(28638), + 104: uint16(28640), + 105: uint16(28655), + 106: uint16(28698), + 107: uint16(28707), + 108: uint16(28699), + 109: uint16(28729), + 110: uint16(28725), + 111: uint16(28751), + 112: uint16(28766), + 113: uint16(23424), + 114: uint16(23428), + 115: uint16(23445), + 116: uint16(23443), + 117: uint16(23461), + 118: uint16(23480), + 119: uint16(29999), + 120: uint16(39582), + 121: uint16(25652), + 122: uint16(23524), + 123: uint16(23534), + 124: uint16(35120), + 125: uint16(23536), + 126: uint16(36423), + 127: uint16(35591), + 128: uint16(36790), + 129: uint16(36819), + 130: uint16(36821), + 131: uint16(36837), + 132: uint16(36846), + 133: uint16(36836), + 134: uint16(36841), + 135: uint16(36838), + 136: uint16(36851), + 137: uint16(36840), + 138: uint16(36869), + 139: uint16(36868), + 140: uint16(36875), + 141: uint16(36902), + 142: uint16(36881), + 143: uint16(36877), + 144: uint16(36886), + 145: uint16(36897), + 146: uint16(36917), + 147: uint16(36918), + 148: uint16(36909), + 149: uint16(36911), + 150: uint16(36932), + 151: uint16(36945), + 152: uint16(36946), + 153: uint16(36944), + 154: uint16(36968), + 155: uint16(36952), + 156: uint16(36962), + 157: uint16(36955), + 158: uint16(26297), + 159: uint16(36980), + 160: uint16(36989), + 161: uint16(36994), + 162: uint16(37000), + 163: uint16(36995), + 164: uint16(37003), + 165: uint16(24400), + 166: uint16(24407), + 167: uint16(24406), + 168: uint16(24408), + 169: uint16(23611), + 170: uint16(21675), + 171: uint16(23632), + 172: uint16(23641), + 173: uint16(23409), + 174: uint16(23651), + 175: uint16(23654), + 176: uint16(32700), + 177: uint16(24362), + 178: uint16(24361), + 179: uint16(24365), + 180: uint16(33396), + 181: uint16(24380), + 182: uint16(39739), + 183: uint16(23662), + 184: uint16(22913), + 185: uint16(22915), + 186: uint16(22925), + 187: uint16(22953), + 188: uint16(22954), + 189: uint16(22947), + }, + 101: { + 0: uint16(37740), + 1: uint16(37741), + 2: uint16(37742), + 3: uint16(37743), + 4: uint16(37744), + 5: uint16(37745), + 6: uint16(37746), + 7: uint16(37747), + 8: uint16(37748), + 9: uint16(37749), + 10: uint16(37750), + 11: uint16(37751), + 12: uint16(37752), + 13: uint16(37753), + 14: uint16(37754), + 15: uint16(37755), + 16: uint16(37756), + 17: uint16(37757), + 18: uint16(37758), + 19: uint16(37759), + 20: uint16(37760), + 21: uint16(37761), + 22: uint16(37762), + 23: uint16(37763), + 24: uint16(37764), + 25: uint16(37765), + 26: uint16(37766), + 27: uint16(37767), + 28: uint16(37768), + 29: uint16(37769), + 30: uint16(37770), + 31: uint16(37771), + 32: uint16(37772), + 33: uint16(37773), + 34: uint16(37774), + 35: uint16(37776), + 36: uint16(37777), + 37: uint16(37778), + 38: uint16(37779), + 39: uint16(37780), + 40: uint16(37781), + 41: uint16(37782), + 42: uint16(37783), + 43: uint16(37784), + 44: uint16(37785), + 45: uint16(37786), + 46: uint16(37787), + 47: uint16(37788), + 48: uint16(37789), + 49: uint16(37790), + 50: uint16(37791), + 51: uint16(37792), + 52: uint16(37793), + 53: uint16(37794), + 54: uint16(37795), + 55: uint16(37796), + 56: uint16(37797), + 57: uint16(37798), + 58: uint16(37799), + 59: uint16(37800), + 60: uint16(37801), + 61: uint16(37802), + 62: uint16(37803), + 63: uint16(37804), + 64: uint16(37805), + 65: uint16(37806), + 66: uint16(37807), + 67: uint16(37808), + 68: uint16(37809), + 69: uint16(37810), + 70: uint16(37811), + 71: uint16(37812), + 72: uint16(37813), + 73: uint16(37814), + 74: uint16(37815), + 75: uint16(37816), + 76: uint16(37817), + 77: uint16(37818), + 78: uint16(37819), + 79: uint16(37820), + 80: uint16(37821), + 81: uint16(37822), + 82: uint16(37823), + 83: uint16(37824), + 84: uint16(37825), + 85: uint16(37826), + 86: uint16(37827), + 87: uint16(37828), + 88: uint16(37829), + 89: uint16(37830), + 90: uint16(37831), + 91: uint16(37832), + 92: uint16(37833), + 93: uint16(37835), + 94: uint16(37836), + 95: uint16(37837), + 96: uint16(22935), + 97: uint16(22986), + 98: uint16(22955), + 99: uint16(22942), + 100: uint16(22948), + 101: uint16(22994), + 102: uint16(22962), + 103: uint16(22959), + 104: uint16(22999), + 105: uint16(22974), + 106: uint16(23045), + 107: uint16(23046), + 108: uint16(23005), + 109: uint16(23048), + 110: uint16(23011), + 111: uint16(23000), + 112: uint16(23033), + 113: uint16(23052), + 114: uint16(23049), + 115: uint16(23090), + 116: uint16(23092), + 117: uint16(23057), + 118: uint16(23075), + 119: uint16(23059), + 120: uint16(23104), + 121: uint16(23143), + 122: uint16(23114), + 123: uint16(23125), + 124: uint16(23100), + 125: uint16(23138), + 126: uint16(23157), + 127: uint16(33004), + 128: uint16(23210), + 129: uint16(23195), + 130: uint16(23159), + 131: uint16(23162), + 132: uint16(23230), + 133: uint16(23275), + 134: uint16(23218), + 135: uint16(23250), + 136: uint16(23252), + 137: uint16(23224), + 138: uint16(23264), + 139: uint16(23267), + 140: uint16(23281), + 141: uint16(23254), + 142: uint16(23270), + 143: uint16(23256), + 144: uint16(23260), + 145: uint16(23305), + 146: uint16(23319), + 147: uint16(23318), + 148: uint16(23346), + 149: uint16(23351), + 150: uint16(23360), + 151: uint16(23573), + 152: uint16(23580), + 153: uint16(23386), + 154: uint16(23397), + 155: uint16(23411), + 156: uint16(23377), + 157: uint16(23379), + 158: uint16(23394), + 159: uint16(39541), + 160: uint16(39543), + 161: uint16(39544), + 162: uint16(39546), + 163: uint16(39551), + 164: uint16(39549), + 165: uint16(39552), + 166: uint16(39553), + 167: uint16(39557), + 168: uint16(39560), + 169: uint16(39562), + 170: uint16(39568), + 171: uint16(39570), + 172: uint16(39571), + 173: uint16(39574), + 174: uint16(39576), + 175: uint16(39579), + 176: uint16(39580), + 177: uint16(39581), + 178: uint16(39583), + 179: uint16(39584), + 180: uint16(39586), + 181: uint16(39587), + 182: uint16(39589), + 183: uint16(39591), + 184: uint16(32415), + 185: uint16(32417), + 186: uint16(32419), + 187: uint16(32421), + 188: uint16(32424), + 189: uint16(32425), + }, + 102: { + 0: uint16(37838), + 1: uint16(37839), + 2: uint16(37840), + 3: uint16(37841), + 4: uint16(37842), + 5: uint16(37843), + 6: uint16(37844), + 7: uint16(37845), + 8: uint16(37847), + 9: uint16(37848), + 10: uint16(37849), + 11: uint16(37850), + 12: uint16(37851), + 13: uint16(37852), + 14: uint16(37853), + 15: uint16(37854), + 16: uint16(37855), + 17: uint16(37856), + 18: uint16(37857), + 19: uint16(37858), + 20: uint16(37859), + 21: uint16(37860), + 22: uint16(37861), + 23: uint16(37862), + 24: uint16(37863), + 25: uint16(37864), + 26: uint16(37865), + 27: uint16(37866), + 28: uint16(37867), + 29: uint16(37868), + 30: uint16(37869), + 31: uint16(37870), + 32: uint16(37871), + 33: uint16(37872), + 34: uint16(37873), + 35: uint16(37874), + 36: uint16(37875), + 37: uint16(37876), + 38: uint16(37877), + 39: uint16(37878), + 40: uint16(37879), + 41: uint16(37880), + 42: uint16(37881), + 43: uint16(37882), + 44: uint16(37883), + 45: uint16(37884), + 46: uint16(37885), + 47: uint16(37886), + 48: uint16(37887), + 49: uint16(37888), + 50: uint16(37889), + 51: uint16(37890), + 52: uint16(37891), + 53: uint16(37892), + 54: uint16(37893), + 55: uint16(37894), + 56: uint16(37895), + 57: uint16(37896), + 58: uint16(37897), + 59: uint16(37898), + 60: uint16(37899), + 61: uint16(37900), + 62: uint16(37901), + 63: uint16(37902), + 64: uint16(37903), + 65: uint16(37904), + 66: uint16(37905), + 67: uint16(37906), + 68: uint16(37907), + 69: uint16(37908), + 70: uint16(37909), + 71: uint16(37910), + 72: uint16(37911), + 73: uint16(37912), + 74: uint16(37913), + 75: uint16(37914), + 76: uint16(37915), + 77: uint16(37916), + 78: uint16(37917), + 79: uint16(37918), + 80: uint16(37919), + 81: uint16(37920), + 82: uint16(37921), + 83: uint16(37922), + 84: uint16(37923), + 85: uint16(37924), + 86: uint16(37925), + 87: uint16(37926), + 88: uint16(37927), + 89: uint16(37928), + 90: uint16(37929), + 91: uint16(37930), + 92: uint16(37931), + 93: uint16(37932), + 94: uint16(37933), + 95: uint16(37934), + 96: uint16(32429), + 97: uint16(32432), + 98: uint16(32446), + 99: uint16(32448), + 100: uint16(32449), + 101: uint16(32450), + 102: uint16(32457), + 103: uint16(32459), + 104: uint16(32460), + 105: uint16(32464), + 106: uint16(32468), + 107: uint16(32471), + 108: uint16(32475), + 109: uint16(32480), + 110: uint16(32481), + 111: uint16(32488), + 112: uint16(32491), + 113: uint16(32494), + 114: uint16(32495), + 115: uint16(32497), + 116: uint16(32498), + 117: uint16(32525), + 118: uint16(32502), + 119: uint16(32506), + 120: uint16(32507), + 121: uint16(32510), + 122: uint16(32513), + 123: uint16(32514), + 124: uint16(32515), + 125: uint16(32519), + 126: uint16(32520), + 127: uint16(32523), + 128: uint16(32524), + 129: uint16(32527), + 130: uint16(32529), + 131: uint16(32530), + 132: uint16(32535), + 133: uint16(32537), + 134: uint16(32540), + 135: uint16(32539), + 136: uint16(32543), + 137: uint16(32545), + 138: uint16(32546), + 139: uint16(32547), + 140: uint16(32548), + 141: uint16(32549), + 142: uint16(32550), + 143: uint16(32551), + 144: uint16(32554), + 145: uint16(32555), + 146: uint16(32556), + 147: uint16(32557), + 148: uint16(32559), + 149: uint16(32560), + 150: uint16(32561), + 151: uint16(32562), + 152: uint16(32563), + 153: uint16(32565), + 154: uint16(24186), + 155: uint16(30079), + 156: uint16(24027), + 157: uint16(30014), + 158: uint16(37013), + 159: uint16(29582), + 160: uint16(29585), + 161: uint16(29614), + 162: uint16(29602), + 163: uint16(29599), + 164: uint16(29647), + 165: uint16(29634), + 166: uint16(29649), + 167: uint16(29623), + 168: uint16(29619), + 169: uint16(29632), + 170: uint16(29641), + 171: uint16(29640), + 172: uint16(29669), + 173: uint16(29657), + 174: uint16(39036), + 175: uint16(29706), + 176: uint16(29673), + 177: uint16(29671), + 178: uint16(29662), + 179: uint16(29626), + 180: uint16(29682), + 181: uint16(29711), + 182: uint16(29738), + 183: uint16(29787), + 184: uint16(29734), + 185: uint16(29733), + 186: uint16(29736), + 187: uint16(29744), + 188: uint16(29742), + 189: uint16(29740), + }, + 103: { + 0: uint16(37935), + 1: uint16(37936), + 2: uint16(37937), + 3: uint16(37938), + 4: uint16(37939), + 5: uint16(37940), + 6: uint16(37941), + 7: uint16(37942), + 8: uint16(37943), + 9: uint16(37944), + 10: uint16(37945), + 11: uint16(37946), + 12: uint16(37947), + 13: uint16(37948), + 14: uint16(37949), + 15: uint16(37951), + 16: uint16(37952), + 17: uint16(37953), + 18: uint16(37954), + 19: uint16(37955), + 20: uint16(37956), + 21: uint16(37957), + 22: uint16(37958), + 23: uint16(37959), + 24: uint16(37960), + 25: uint16(37961), + 26: uint16(37962), + 27: uint16(37963), + 28: uint16(37964), + 29: uint16(37965), + 30: uint16(37966), + 31: uint16(37967), + 32: uint16(37968), + 33: uint16(37969), + 34: uint16(37970), + 35: uint16(37971), + 36: uint16(37972), + 37: uint16(37973), + 38: uint16(37974), + 39: uint16(37975), + 40: uint16(37976), + 41: uint16(37977), + 42: uint16(37978), + 43: uint16(37979), + 44: uint16(37980), + 45: uint16(37981), + 46: uint16(37982), + 47: uint16(37983), + 48: uint16(37984), + 49: uint16(37985), + 50: uint16(37986), + 51: uint16(37987), + 52: uint16(37988), + 53: uint16(37989), + 54: uint16(37990), + 55: uint16(37991), + 56: uint16(37992), + 57: uint16(37993), + 58: uint16(37994), + 59: uint16(37996), + 60: uint16(37997), + 61: uint16(37998), + 62: uint16(37999), + 63: uint16(38000), + 64: uint16(38001), + 65: uint16(38002), + 66: uint16(38003), + 67: uint16(38004), + 68: uint16(38005), + 69: uint16(38006), + 70: uint16(38007), + 71: uint16(38008), + 72: uint16(38009), + 73: uint16(38010), + 74: uint16(38011), + 75: uint16(38012), + 76: uint16(38013), + 77: uint16(38014), + 78: uint16(38015), + 79: uint16(38016), + 80: uint16(38017), + 81: uint16(38018), + 82: uint16(38019), + 83: uint16(38020), + 84: uint16(38033), + 85: uint16(38038), + 86: uint16(38040), + 87: uint16(38087), + 88: uint16(38095), + 89: uint16(38099), + 90: uint16(38100), + 91: uint16(38106), + 92: uint16(38118), + 93: uint16(38139), + 94: uint16(38172), + 95: uint16(38176), + 96: uint16(29723), + 97: uint16(29722), + 98: uint16(29761), + 99: uint16(29788), + 100: uint16(29783), + 101: uint16(29781), + 102: uint16(29785), + 103: uint16(29815), + 104: uint16(29805), + 105: uint16(29822), + 106: uint16(29852), + 107: uint16(29838), + 108: uint16(29824), + 109: uint16(29825), + 110: uint16(29831), + 111: uint16(29835), + 112: uint16(29854), + 113: uint16(29864), + 114: uint16(29865), + 115: uint16(29840), + 116: uint16(29863), + 117: uint16(29906), + 118: uint16(29882), + 119: uint16(38890), + 120: uint16(38891), + 121: uint16(38892), + 122: uint16(26444), + 123: uint16(26451), + 124: uint16(26462), + 125: uint16(26440), + 126: uint16(26473), + 127: uint16(26533), + 128: uint16(26503), + 129: uint16(26474), + 130: uint16(26483), + 131: uint16(26520), + 132: uint16(26535), + 133: uint16(26485), + 134: uint16(26536), + 135: uint16(26526), + 136: uint16(26541), + 137: uint16(26507), + 138: uint16(26487), + 139: uint16(26492), + 140: uint16(26608), + 141: uint16(26633), + 142: uint16(26584), + 143: uint16(26634), + 144: uint16(26601), + 145: uint16(26544), + 146: uint16(26636), + 147: uint16(26585), + 148: uint16(26549), + 149: uint16(26586), + 150: uint16(26547), + 151: uint16(26589), + 152: uint16(26624), + 153: uint16(26563), + 154: uint16(26552), + 155: uint16(26594), + 156: uint16(26638), + 157: uint16(26561), + 158: uint16(26621), + 159: uint16(26674), + 160: uint16(26675), + 161: uint16(26720), + 162: uint16(26721), + 163: uint16(26702), + 164: uint16(26722), + 165: uint16(26692), + 166: uint16(26724), + 167: uint16(26755), + 168: uint16(26653), + 169: uint16(26709), + 170: uint16(26726), + 171: uint16(26689), + 172: uint16(26727), + 173: uint16(26688), + 174: uint16(26686), + 175: uint16(26698), + 176: uint16(26697), + 177: uint16(26665), + 178: uint16(26805), + 179: uint16(26767), + 180: uint16(26740), + 181: uint16(26743), + 182: uint16(26771), + 183: uint16(26731), + 184: uint16(26818), + 185: uint16(26990), + 186: uint16(26876), + 187: uint16(26911), + 188: uint16(26912), + 189: uint16(26873), + }, + 104: { + 0: uint16(38183), + 1: uint16(38195), + 2: uint16(38205), + 3: uint16(38211), + 4: uint16(38216), + 5: uint16(38219), + 6: uint16(38229), + 7: uint16(38234), + 8: uint16(38240), + 9: uint16(38254), + 10: uint16(38260), + 11: uint16(38261), + 12: uint16(38263), + 13: uint16(38264), + 14: uint16(38265), + 15: uint16(38266), + 16: uint16(38267), + 17: uint16(38268), + 18: uint16(38269), + 19: uint16(38270), + 20: uint16(38272), + 21: uint16(38273), + 22: uint16(38274), + 23: uint16(38275), + 24: uint16(38276), + 25: uint16(38277), + 26: uint16(38278), + 27: uint16(38279), + 28: uint16(38280), + 29: uint16(38281), + 30: uint16(38282), + 31: uint16(38283), + 32: uint16(38284), + 33: uint16(38285), + 34: uint16(38286), + 35: uint16(38287), + 36: uint16(38288), + 37: uint16(38289), + 38: uint16(38290), + 39: uint16(38291), + 40: uint16(38292), + 41: uint16(38293), + 42: uint16(38294), + 43: uint16(38295), + 44: uint16(38296), + 45: uint16(38297), + 46: uint16(38298), + 47: uint16(38299), + 48: uint16(38300), + 49: uint16(38301), + 50: uint16(38302), + 51: uint16(38303), + 52: uint16(38304), + 53: uint16(38305), + 54: uint16(38306), + 55: uint16(38307), + 56: uint16(38308), + 57: uint16(38309), + 58: uint16(38310), + 59: uint16(38311), + 60: uint16(38312), + 61: uint16(38313), + 62: uint16(38314), + 63: uint16(38315), + 64: uint16(38316), + 65: uint16(38317), + 66: uint16(38318), + 67: uint16(38319), + 68: uint16(38320), + 69: uint16(38321), + 70: uint16(38322), + 71: uint16(38323), + 72: uint16(38324), + 73: uint16(38325), + 74: uint16(38326), + 75: uint16(38327), + 76: uint16(38328), + 77: uint16(38329), + 78: uint16(38330), + 79: uint16(38331), + 80: uint16(38332), + 81: uint16(38333), + 82: uint16(38334), + 83: uint16(38335), + 84: uint16(38336), + 85: uint16(38337), + 86: uint16(38338), + 87: uint16(38339), + 88: uint16(38340), + 89: uint16(38341), + 90: uint16(38342), + 91: uint16(38343), + 92: uint16(38344), + 93: uint16(38345), + 94: uint16(38346), + 95: uint16(38347), + 96: uint16(26916), + 97: uint16(26864), + 98: uint16(26891), + 99: uint16(26881), + 100: uint16(26967), + 101: uint16(26851), + 102: uint16(26896), + 103: uint16(26993), + 104: uint16(26937), + 105: uint16(26976), + 106: uint16(26946), + 107: uint16(26973), + 108: uint16(27012), + 109: uint16(26987), + 110: uint16(27008), + 111: uint16(27032), + 112: uint16(27000), + 113: uint16(26932), + 114: uint16(27084), + 115: uint16(27015), + 116: uint16(27016), + 117: uint16(27086), + 118: uint16(27017), + 119: uint16(26982), + 120: uint16(26979), + 121: uint16(27001), + 122: uint16(27035), + 123: uint16(27047), + 124: uint16(27067), + 125: uint16(27051), + 126: uint16(27053), + 127: uint16(27092), + 128: uint16(27057), + 129: uint16(27073), + 130: uint16(27082), + 131: uint16(27103), + 132: uint16(27029), + 133: uint16(27104), + 134: uint16(27021), + 135: uint16(27135), + 136: uint16(27183), + 137: uint16(27117), + 138: uint16(27159), + 139: uint16(27160), + 140: uint16(27237), + 141: uint16(27122), + 142: uint16(27204), + 143: uint16(27198), + 144: uint16(27296), + 145: uint16(27216), + 146: uint16(27227), + 147: uint16(27189), + 148: uint16(27278), + 149: uint16(27257), + 150: uint16(27197), + 151: uint16(27176), + 152: uint16(27224), + 153: uint16(27260), + 154: uint16(27281), + 155: uint16(27280), + 156: uint16(27305), + 157: uint16(27287), + 158: uint16(27307), + 159: uint16(29495), + 160: uint16(29522), + 161: uint16(27521), + 162: uint16(27522), + 163: uint16(27527), + 164: uint16(27524), + 165: uint16(27538), + 166: uint16(27539), + 167: uint16(27533), + 168: uint16(27546), + 169: uint16(27547), + 170: uint16(27553), + 171: uint16(27562), + 172: uint16(36715), + 173: uint16(36717), + 174: uint16(36721), + 175: uint16(36722), + 176: uint16(36723), + 177: uint16(36725), + 178: uint16(36726), + 179: uint16(36728), + 180: uint16(36727), + 181: uint16(36729), + 182: uint16(36730), + 183: uint16(36732), + 184: uint16(36734), + 185: uint16(36737), + 186: uint16(36738), + 187: uint16(36740), + 188: uint16(36743), + 189: uint16(36747), + }, + 105: { + 0: uint16(38348), + 1: uint16(38349), + 2: uint16(38350), + 3: uint16(38351), + 4: uint16(38352), + 5: uint16(38353), + 6: uint16(38354), + 7: uint16(38355), + 8: uint16(38356), + 9: uint16(38357), + 10: uint16(38358), + 11: uint16(38359), + 12: uint16(38360), + 13: uint16(38361), + 14: uint16(38362), + 15: uint16(38363), + 16: uint16(38364), + 17: uint16(38365), + 18: uint16(38366), + 19: uint16(38367), + 20: uint16(38368), + 21: uint16(38369), + 22: uint16(38370), + 23: uint16(38371), + 24: uint16(38372), + 25: uint16(38373), + 26: uint16(38374), + 27: uint16(38375), + 28: uint16(38380), + 29: uint16(38399), + 30: uint16(38407), + 31: uint16(38419), + 32: uint16(38424), + 33: uint16(38427), + 34: uint16(38430), + 35: uint16(38432), + 36: uint16(38435), + 37: uint16(38436), + 38: uint16(38437), + 39: uint16(38438), + 40: uint16(38439), + 41: uint16(38440), + 42: uint16(38441), + 43: uint16(38443), + 44: uint16(38444), + 45: uint16(38445), + 46: uint16(38447), + 47: uint16(38448), + 48: uint16(38455), + 49: uint16(38456), + 50: uint16(38457), + 51: uint16(38458), + 52: uint16(38462), + 53: uint16(38465), + 54: uint16(38467), + 55: uint16(38474), + 56: uint16(38478), + 57: uint16(38479), + 58: uint16(38481), + 59: uint16(38482), + 60: uint16(38483), + 61: uint16(38486), + 62: uint16(38487), + 63: uint16(38488), + 64: uint16(38489), + 65: uint16(38490), + 66: uint16(38492), + 67: uint16(38493), + 68: uint16(38494), + 69: uint16(38496), + 70: uint16(38499), + 71: uint16(38501), + 72: uint16(38502), + 73: uint16(38507), + 74: uint16(38509), + 75: uint16(38510), + 76: uint16(38511), + 77: uint16(38512), + 78: uint16(38513), + 79: uint16(38515), + 80: uint16(38520), + 81: uint16(38521), + 82: uint16(38522), + 83: uint16(38523), + 84: uint16(38524), + 85: uint16(38525), + 86: uint16(38526), + 87: uint16(38527), + 88: uint16(38528), + 89: uint16(38529), + 90: uint16(38530), + 91: uint16(38531), + 92: uint16(38532), + 93: uint16(38535), + 94: uint16(38537), + 95: uint16(38538), + 96: uint16(36749), + 97: uint16(36750), + 98: uint16(36751), + 99: uint16(36760), + 100: uint16(36762), + 101: uint16(36558), + 102: uint16(25099), + 103: uint16(25111), + 104: uint16(25115), + 105: uint16(25119), + 106: uint16(25122), + 107: uint16(25121), + 108: uint16(25125), + 109: uint16(25124), + 110: uint16(25132), + 111: uint16(33255), + 112: uint16(29935), + 113: uint16(29940), + 114: uint16(29951), + 115: uint16(29967), + 116: uint16(29969), + 117: uint16(29971), + 118: uint16(25908), + 119: uint16(26094), + 120: uint16(26095), + 121: uint16(26096), + 122: uint16(26122), + 123: uint16(26137), + 124: uint16(26482), + 125: uint16(26115), + 126: uint16(26133), + 127: uint16(26112), + 128: uint16(28805), + 129: uint16(26359), + 130: uint16(26141), + 131: uint16(26164), + 132: uint16(26161), + 133: uint16(26166), + 134: uint16(26165), + 135: uint16(32774), + 136: uint16(26207), + 137: uint16(26196), + 138: uint16(26177), + 139: uint16(26191), + 140: uint16(26198), + 141: uint16(26209), + 142: uint16(26199), + 143: uint16(26231), + 144: uint16(26244), + 145: uint16(26252), + 146: uint16(26279), + 147: uint16(26269), + 148: uint16(26302), + 149: uint16(26331), + 150: uint16(26332), + 151: uint16(26342), + 152: uint16(26345), + 153: uint16(36146), + 154: uint16(36147), + 155: uint16(36150), + 156: uint16(36155), + 157: uint16(36157), + 158: uint16(36160), + 159: uint16(36165), + 160: uint16(36166), + 161: uint16(36168), + 162: uint16(36169), + 163: uint16(36167), + 164: uint16(36173), + 165: uint16(36181), + 166: uint16(36185), + 167: uint16(35271), + 168: uint16(35274), + 169: uint16(35275), + 170: uint16(35276), + 171: uint16(35278), + 172: uint16(35279), + 173: uint16(35280), + 174: uint16(35281), + 175: uint16(29294), + 176: uint16(29343), + 177: uint16(29277), + 178: uint16(29286), + 179: uint16(29295), + 180: uint16(29310), + 181: uint16(29311), + 182: uint16(29316), + 183: uint16(29323), + 184: uint16(29325), + 185: uint16(29327), + 186: uint16(29330), + 187: uint16(25352), + 188: uint16(25394), + 189: uint16(25520), + }, + 106: { + 0: uint16(38540), + 1: uint16(38542), + 2: uint16(38545), + 3: uint16(38546), + 4: uint16(38547), + 5: uint16(38549), + 6: uint16(38550), + 7: uint16(38554), + 8: uint16(38555), + 9: uint16(38557), + 10: uint16(38558), + 11: uint16(38559), + 12: uint16(38560), + 13: uint16(38561), + 14: uint16(38562), + 15: uint16(38563), + 16: uint16(38564), + 17: uint16(38565), + 18: uint16(38566), + 19: uint16(38568), + 20: uint16(38569), + 21: uint16(38570), + 22: uint16(38571), + 23: uint16(38572), + 24: uint16(38573), + 25: uint16(38574), + 26: uint16(38575), + 27: uint16(38577), + 28: uint16(38578), + 29: uint16(38580), + 30: uint16(38581), + 31: uint16(38583), + 32: uint16(38584), + 33: uint16(38586), + 34: uint16(38587), + 35: uint16(38591), + 36: uint16(38594), + 37: uint16(38595), + 38: uint16(38600), + 39: uint16(38602), + 40: uint16(38603), + 41: uint16(38608), + 42: uint16(38609), + 43: uint16(38611), + 44: uint16(38612), + 45: uint16(38614), + 46: uint16(38615), + 47: uint16(38616), + 48: uint16(38617), + 49: uint16(38618), + 50: uint16(38619), + 51: uint16(38620), + 52: uint16(38621), + 53: uint16(38622), + 54: uint16(38623), + 55: uint16(38625), + 56: uint16(38626), + 57: uint16(38627), + 58: uint16(38628), + 59: uint16(38629), + 60: uint16(38630), + 61: uint16(38631), + 62: uint16(38635), + 63: uint16(38636), + 64: uint16(38637), + 65: uint16(38638), + 66: uint16(38640), + 67: uint16(38641), + 68: uint16(38642), + 69: uint16(38644), + 70: uint16(38645), + 71: uint16(38648), + 72: uint16(38650), + 73: uint16(38651), + 74: uint16(38652), + 75: uint16(38653), + 76: uint16(38655), + 77: uint16(38658), + 78: uint16(38659), + 79: uint16(38661), + 80: uint16(38666), + 81: uint16(38667), + 82: uint16(38668), + 83: uint16(38672), + 84: uint16(38673), + 85: uint16(38674), + 86: uint16(38676), + 87: uint16(38677), + 88: uint16(38679), + 89: uint16(38680), + 90: uint16(38681), + 91: uint16(38682), + 92: uint16(38683), + 93: uint16(38685), + 94: uint16(38687), + 95: uint16(38688), + 96: uint16(25663), + 97: uint16(25816), + 98: uint16(32772), + 99: uint16(27626), + 100: uint16(27635), + 101: uint16(27645), + 102: uint16(27637), + 103: uint16(27641), + 104: uint16(27653), + 105: uint16(27655), + 106: uint16(27654), + 107: uint16(27661), + 108: uint16(27669), + 109: uint16(27672), + 110: uint16(27673), + 111: uint16(27674), + 112: uint16(27681), + 113: uint16(27689), + 114: uint16(27684), + 115: uint16(27690), + 116: uint16(27698), + 117: uint16(25909), + 118: uint16(25941), + 119: uint16(25963), + 120: uint16(29261), + 121: uint16(29266), + 122: uint16(29270), + 123: uint16(29232), + 124: uint16(34402), + 125: uint16(21014), + 126: uint16(32927), + 127: uint16(32924), + 128: uint16(32915), + 129: uint16(32956), + 130: uint16(26378), + 131: uint16(32957), + 132: uint16(32945), + 133: uint16(32939), + 134: uint16(32941), + 135: uint16(32948), + 136: uint16(32951), + 137: uint16(32999), + 138: uint16(33000), + 139: uint16(33001), + 140: uint16(33002), + 141: uint16(32987), + 142: uint16(32962), + 143: uint16(32964), + 144: uint16(32985), + 145: uint16(32973), + 146: uint16(32983), + 147: uint16(26384), + 148: uint16(32989), + 149: uint16(33003), + 150: uint16(33009), + 151: uint16(33012), + 152: uint16(33005), + 153: uint16(33037), + 154: uint16(33038), + 155: uint16(33010), + 156: uint16(33020), + 157: uint16(26389), + 158: uint16(33042), + 159: uint16(35930), + 160: uint16(33078), + 161: uint16(33054), + 162: uint16(33068), + 163: uint16(33048), + 164: uint16(33074), + 165: uint16(33096), + 166: uint16(33100), + 167: uint16(33107), + 168: uint16(33140), + 169: uint16(33113), + 170: uint16(33114), + 171: uint16(33137), + 172: uint16(33120), + 173: uint16(33129), + 174: uint16(33148), + 175: uint16(33149), + 176: uint16(33133), + 177: uint16(33127), + 178: uint16(22605), + 179: uint16(23221), + 180: uint16(33160), + 181: uint16(33154), + 182: uint16(33169), + 183: uint16(28373), + 184: uint16(33187), + 185: uint16(33194), + 186: uint16(33228), + 187: uint16(26406), + 188: uint16(33226), + 189: uint16(33211), + }, + 107: { + 0: uint16(38689), + 1: uint16(38690), + 2: uint16(38691), + 3: uint16(38692), + 4: uint16(38693), + 5: uint16(38694), + 6: uint16(38695), + 7: uint16(38696), + 8: uint16(38697), + 9: uint16(38699), + 10: uint16(38700), + 11: uint16(38702), + 12: uint16(38703), + 13: uint16(38705), + 14: uint16(38707), + 15: uint16(38708), + 16: uint16(38709), + 17: uint16(38710), + 18: uint16(38711), + 19: uint16(38714), + 20: uint16(38715), + 21: uint16(38716), + 22: uint16(38717), + 23: uint16(38719), + 24: uint16(38720), + 25: uint16(38721), + 26: uint16(38722), + 27: uint16(38723), + 28: uint16(38724), + 29: uint16(38725), + 30: uint16(38726), + 31: uint16(38727), + 32: uint16(38728), + 33: uint16(38729), + 34: uint16(38730), + 35: uint16(38731), + 36: uint16(38732), + 37: uint16(38733), + 38: uint16(38734), + 39: uint16(38735), + 40: uint16(38736), + 41: uint16(38737), + 42: uint16(38740), + 43: uint16(38741), + 44: uint16(38743), + 45: uint16(38744), + 46: uint16(38746), + 47: uint16(38748), + 48: uint16(38749), + 49: uint16(38751), + 50: uint16(38755), + 51: uint16(38756), + 52: uint16(38758), + 53: uint16(38759), + 54: uint16(38760), + 55: uint16(38762), + 56: uint16(38763), + 57: uint16(38764), + 58: uint16(38765), + 59: uint16(38766), + 60: uint16(38767), + 61: uint16(38768), + 62: uint16(38769), + 63: uint16(38770), + 64: uint16(38773), + 65: uint16(38775), + 66: uint16(38776), + 67: uint16(38777), + 68: uint16(38778), + 69: uint16(38779), + 70: uint16(38781), + 71: uint16(38782), + 72: uint16(38783), + 73: uint16(38784), + 74: uint16(38785), + 75: uint16(38786), + 76: uint16(38787), + 77: uint16(38788), + 78: uint16(38790), + 79: uint16(38791), + 80: uint16(38792), + 81: uint16(38793), + 82: uint16(38794), + 83: uint16(38796), + 84: uint16(38798), + 85: uint16(38799), + 86: uint16(38800), + 87: uint16(38803), + 88: uint16(38805), + 89: uint16(38806), + 90: uint16(38807), + 91: uint16(38809), + 92: uint16(38810), + 93: uint16(38811), + 94: uint16(38812), + 95: uint16(38813), + 96: uint16(33217), + 97: uint16(33190), + 98: uint16(27428), + 99: uint16(27447), + 100: uint16(27449), + 101: uint16(27459), + 102: uint16(27462), + 103: uint16(27481), + 104: uint16(39121), + 105: uint16(39122), + 106: uint16(39123), + 107: uint16(39125), + 108: uint16(39129), + 109: uint16(39130), + 110: uint16(27571), + 111: uint16(24384), + 112: uint16(27586), + 113: uint16(35315), + 114: uint16(26000), + 115: uint16(40785), + 116: uint16(26003), + 117: uint16(26044), + 118: uint16(26054), + 119: uint16(26052), + 120: uint16(26051), + 121: uint16(26060), + 122: uint16(26062), + 123: uint16(26066), + 124: uint16(26070), + 125: uint16(28800), + 126: uint16(28828), + 127: uint16(28822), + 128: uint16(28829), + 129: uint16(28859), + 130: uint16(28864), + 131: uint16(28855), + 132: uint16(28843), + 133: uint16(28849), + 134: uint16(28904), + 135: uint16(28874), + 136: uint16(28944), + 137: uint16(28947), + 138: uint16(28950), + 139: uint16(28975), + 140: uint16(28977), + 141: uint16(29043), + 142: uint16(29020), + 143: uint16(29032), + 144: uint16(28997), + 145: uint16(29042), + 146: uint16(29002), + 147: uint16(29048), + 148: uint16(29050), + 149: uint16(29080), + 150: uint16(29107), + 151: uint16(29109), + 152: uint16(29096), + 153: uint16(29088), + 154: uint16(29152), + 155: uint16(29140), + 156: uint16(29159), + 157: uint16(29177), + 158: uint16(29213), + 159: uint16(29224), + 160: uint16(28780), + 161: uint16(28952), + 162: uint16(29030), + 163: uint16(29113), + 164: uint16(25150), + 165: uint16(25149), + 166: uint16(25155), + 167: uint16(25160), + 168: uint16(25161), + 169: uint16(31035), + 170: uint16(31040), + 171: uint16(31046), + 172: uint16(31049), + 173: uint16(31067), + 174: uint16(31068), + 175: uint16(31059), + 176: uint16(31066), + 177: uint16(31074), + 178: uint16(31063), + 179: uint16(31072), + 180: uint16(31087), + 181: uint16(31079), + 182: uint16(31098), + 183: uint16(31109), + 184: uint16(31114), + 185: uint16(31130), + 186: uint16(31143), + 187: uint16(31155), + 188: uint16(24529), + 189: uint16(24528), + }, + 108: { + 0: uint16(38814), + 1: uint16(38815), + 2: uint16(38817), + 3: uint16(38818), + 4: uint16(38820), + 5: uint16(38821), + 6: uint16(38822), + 7: uint16(38823), + 8: uint16(38824), + 9: uint16(38825), + 10: uint16(38826), + 11: uint16(38828), + 12: uint16(38830), + 13: uint16(38832), + 14: uint16(38833), + 15: uint16(38835), + 16: uint16(38837), + 17: uint16(38838), + 18: uint16(38839), + 19: uint16(38840), + 20: uint16(38841), + 21: uint16(38842), + 22: uint16(38843), + 23: uint16(38844), + 24: uint16(38845), + 25: uint16(38846), + 26: uint16(38847), + 27: uint16(38848), + 28: uint16(38849), + 29: uint16(38850), + 30: uint16(38851), + 31: uint16(38852), + 32: uint16(38853), + 33: uint16(38854), + 34: uint16(38855), + 35: uint16(38856), + 36: uint16(38857), + 37: uint16(38858), + 38: uint16(38859), + 39: uint16(38860), + 40: uint16(38861), + 41: uint16(38862), + 42: uint16(38863), + 43: uint16(38864), + 44: uint16(38865), + 45: uint16(38866), + 46: uint16(38867), + 47: uint16(38868), + 48: uint16(38869), + 49: uint16(38870), + 50: uint16(38871), + 51: uint16(38872), + 52: uint16(38873), + 53: uint16(38874), + 54: uint16(38875), + 55: uint16(38876), + 56: uint16(38877), + 57: uint16(38878), + 58: uint16(38879), + 59: uint16(38880), + 60: uint16(38881), + 61: uint16(38882), + 62: uint16(38883), + 63: uint16(38884), + 64: uint16(38885), + 65: uint16(38888), + 66: uint16(38894), + 67: uint16(38895), + 68: uint16(38896), + 69: uint16(38897), + 70: uint16(38898), + 71: uint16(38900), + 72: uint16(38903), + 73: uint16(38904), + 74: uint16(38905), + 75: uint16(38906), + 76: uint16(38907), + 77: uint16(38908), + 78: uint16(38909), + 79: uint16(38910), + 80: uint16(38911), + 81: uint16(38912), + 82: uint16(38913), + 83: uint16(38914), + 84: uint16(38915), + 85: uint16(38916), + 86: uint16(38917), + 87: uint16(38918), + 88: uint16(38919), + 89: uint16(38920), + 90: uint16(38921), + 91: uint16(38922), + 92: uint16(38923), + 93: uint16(38924), + 94: uint16(38925), + 95: uint16(38926), + 96: uint16(24636), + 97: uint16(24669), + 98: uint16(24666), + 99: uint16(24679), + 100: uint16(24641), + 101: uint16(24665), + 102: uint16(24675), + 103: uint16(24747), + 104: uint16(24838), + 105: uint16(24845), + 106: uint16(24925), + 107: uint16(25001), + 108: uint16(24989), + 109: uint16(25035), + 110: uint16(25041), + 111: uint16(25094), + 112: uint16(32896), + 113: uint16(32895), + 114: uint16(27795), + 115: uint16(27894), + 116: uint16(28156), + 117: uint16(30710), + 118: uint16(30712), + 119: uint16(30720), + 120: uint16(30729), + 121: uint16(30743), + 122: uint16(30744), + 123: uint16(30737), + 124: uint16(26027), + 125: uint16(30765), + 126: uint16(30748), + 127: uint16(30749), + 128: uint16(30777), + 129: uint16(30778), + 130: uint16(30779), + 131: uint16(30751), + 132: uint16(30780), + 133: uint16(30757), + 134: uint16(30764), + 135: uint16(30755), + 136: uint16(30761), + 137: uint16(30798), + 138: uint16(30829), + 139: uint16(30806), + 140: uint16(30807), + 141: uint16(30758), + 142: uint16(30800), + 143: uint16(30791), + 144: uint16(30796), + 145: uint16(30826), + 146: uint16(30875), + 147: uint16(30867), + 148: uint16(30874), + 149: uint16(30855), + 150: uint16(30876), + 151: uint16(30881), + 152: uint16(30883), + 153: uint16(30898), + 154: uint16(30905), + 155: uint16(30885), + 156: uint16(30932), + 157: uint16(30937), + 158: uint16(30921), + 159: uint16(30956), + 160: uint16(30962), + 161: uint16(30981), + 162: uint16(30964), + 163: uint16(30995), + 164: uint16(31012), + 165: uint16(31006), + 166: uint16(31028), + 167: uint16(40859), + 168: uint16(40697), + 169: uint16(40699), + 170: uint16(40700), + 171: uint16(30449), + 172: uint16(30468), + 173: uint16(30477), + 174: uint16(30457), + 175: uint16(30471), + 176: uint16(30472), + 177: uint16(30490), + 178: uint16(30498), + 179: uint16(30489), + 180: uint16(30509), + 181: uint16(30502), + 182: uint16(30517), + 183: uint16(30520), + 184: uint16(30544), + 185: uint16(30545), + 186: uint16(30535), + 187: uint16(30531), + 188: uint16(30554), + 189: uint16(30568), + }, + 109: { + 0: uint16(38927), + 1: uint16(38928), + 2: uint16(38929), + 3: uint16(38930), + 4: uint16(38931), + 5: uint16(38932), + 6: uint16(38933), + 7: uint16(38934), + 8: uint16(38935), + 9: uint16(38936), + 10: uint16(38937), + 11: uint16(38938), + 12: uint16(38939), + 13: uint16(38940), + 14: uint16(38941), + 15: uint16(38942), + 16: uint16(38943), + 17: uint16(38944), + 18: uint16(38945), + 19: uint16(38946), + 20: uint16(38947), + 21: uint16(38948), + 22: uint16(38949), + 23: uint16(38950), + 24: uint16(38951), + 25: uint16(38952), + 26: uint16(38953), + 27: uint16(38954), + 28: uint16(38955), + 29: uint16(38956), + 30: uint16(38957), + 31: uint16(38958), + 32: uint16(38959), + 33: uint16(38960), + 34: uint16(38961), + 35: uint16(38962), + 36: uint16(38963), + 37: uint16(38964), + 38: uint16(38965), + 39: uint16(38966), + 40: uint16(38967), + 41: uint16(38968), + 42: uint16(38969), + 43: uint16(38970), + 44: uint16(38971), + 45: uint16(38972), + 46: uint16(38973), + 47: uint16(38974), + 48: uint16(38975), + 49: uint16(38976), + 50: uint16(38977), + 51: uint16(38978), + 52: uint16(38979), + 53: uint16(38980), + 54: uint16(38981), + 55: uint16(38982), + 56: uint16(38983), + 57: uint16(38984), + 58: uint16(38985), + 59: uint16(38986), + 60: uint16(38987), + 61: uint16(38988), + 62: uint16(38989), + 63: uint16(38990), + 64: uint16(38991), + 65: uint16(38992), + 66: uint16(38993), + 67: uint16(38994), + 68: uint16(38995), + 69: uint16(38996), + 70: uint16(38997), + 71: uint16(38998), + 72: uint16(38999), + 73: uint16(39000), + 74: uint16(39001), + 75: uint16(39002), + 76: uint16(39003), + 77: uint16(39004), + 78: uint16(39005), + 79: uint16(39006), + 80: uint16(39007), + 81: uint16(39008), + 82: uint16(39009), + 83: uint16(39010), + 84: uint16(39011), + 85: uint16(39012), + 86: uint16(39013), + 87: uint16(39014), + 88: uint16(39015), + 89: uint16(39016), + 90: uint16(39017), + 91: uint16(39018), + 92: uint16(39019), + 93: uint16(39020), + 94: uint16(39021), + 95: uint16(39022), + 96: uint16(30562), + 97: uint16(30565), + 98: uint16(30591), + 99: uint16(30605), + 100: uint16(30589), + 101: uint16(30592), + 102: uint16(30604), + 103: uint16(30609), + 104: uint16(30623), + 105: uint16(30624), + 106: uint16(30640), + 107: uint16(30645), + 108: uint16(30653), + 109: uint16(30010), + 110: uint16(30016), + 111: uint16(30030), + 112: uint16(30027), + 113: uint16(30024), + 114: uint16(30043), + 115: uint16(30066), + 116: uint16(30073), + 117: uint16(30083), + 118: uint16(32600), + 119: uint16(32609), + 120: uint16(32607), + 121: uint16(35400), + 122: uint16(32616), + 123: uint16(32628), + 124: uint16(32625), + 125: uint16(32633), + 126: uint16(32641), + 127: uint16(32638), + 128: uint16(30413), + 129: uint16(30437), + 130: uint16(34866), + 131: uint16(38021), + 132: uint16(38022), + 133: uint16(38023), + 134: uint16(38027), + 135: uint16(38026), + 136: uint16(38028), + 137: uint16(38029), + 138: uint16(38031), + 139: uint16(38032), + 140: uint16(38036), + 141: uint16(38039), + 142: uint16(38037), + 143: uint16(38042), + 144: uint16(38043), + 145: uint16(38044), + 146: uint16(38051), + 147: uint16(38052), + 148: uint16(38059), + 149: uint16(38058), + 150: uint16(38061), + 151: uint16(38060), + 152: uint16(38063), + 153: uint16(38064), + 154: uint16(38066), + 155: uint16(38068), + 156: uint16(38070), + 157: uint16(38071), + 158: uint16(38072), + 159: uint16(38073), + 160: uint16(38074), + 161: uint16(38076), + 162: uint16(38077), + 163: uint16(38079), + 164: uint16(38084), + 165: uint16(38088), + 166: uint16(38089), + 167: uint16(38090), + 168: uint16(38091), + 169: uint16(38092), + 170: uint16(38093), + 171: uint16(38094), + 172: uint16(38096), + 173: uint16(38097), + 174: uint16(38098), + 175: uint16(38101), + 176: uint16(38102), + 177: uint16(38103), + 178: uint16(38105), + 179: uint16(38104), + 180: uint16(38107), + 181: uint16(38110), + 182: uint16(38111), + 183: uint16(38112), + 184: uint16(38114), + 185: uint16(38116), + 186: uint16(38117), + 187: uint16(38119), + 188: uint16(38120), + 189: uint16(38122), + }, + 110: { + 0: uint16(39023), + 1: uint16(39024), + 2: uint16(39025), + 3: uint16(39026), + 4: uint16(39027), + 5: uint16(39028), + 6: uint16(39051), + 7: uint16(39054), + 8: uint16(39058), + 9: uint16(39061), + 10: uint16(39065), + 11: uint16(39075), + 12: uint16(39080), + 13: uint16(39081), + 14: uint16(39082), + 15: uint16(39083), + 16: uint16(39084), + 17: uint16(39085), + 18: uint16(39086), + 19: uint16(39087), + 20: uint16(39088), + 21: uint16(39089), + 22: uint16(39090), + 23: uint16(39091), + 24: uint16(39092), + 25: uint16(39093), + 26: uint16(39094), + 27: uint16(39095), + 28: uint16(39096), + 29: uint16(39097), + 30: uint16(39098), + 31: uint16(39099), + 32: uint16(39100), + 33: uint16(39101), + 34: uint16(39102), + 35: uint16(39103), + 36: uint16(39104), + 37: uint16(39105), + 38: uint16(39106), + 39: uint16(39107), + 40: uint16(39108), + 41: uint16(39109), + 42: uint16(39110), + 43: uint16(39111), + 44: uint16(39112), + 45: uint16(39113), + 46: uint16(39114), + 47: uint16(39115), + 48: uint16(39116), + 49: uint16(39117), + 50: uint16(39119), + 51: uint16(39120), + 52: uint16(39124), + 53: uint16(39126), + 54: uint16(39127), + 55: uint16(39131), + 56: uint16(39132), + 57: uint16(39133), + 58: uint16(39136), + 59: uint16(39137), + 60: uint16(39138), + 61: uint16(39139), + 62: uint16(39140), + 63: uint16(39141), + 64: uint16(39142), + 65: uint16(39145), + 66: uint16(39146), + 67: uint16(39147), + 68: uint16(39148), + 69: uint16(39149), + 70: uint16(39150), + 71: uint16(39151), + 72: uint16(39152), + 73: uint16(39153), + 74: uint16(39154), + 75: uint16(39155), + 76: uint16(39156), + 77: uint16(39157), + 78: uint16(39158), + 79: uint16(39159), + 80: uint16(39160), + 81: uint16(39161), + 82: uint16(39162), + 83: uint16(39163), + 84: uint16(39164), + 85: uint16(39165), + 86: uint16(39166), + 87: uint16(39167), + 88: uint16(39168), + 89: uint16(39169), + 90: uint16(39170), + 91: uint16(39171), + 92: uint16(39172), + 93: uint16(39173), + 94: uint16(39174), + 95: uint16(39175), + 96: uint16(38121), + 97: uint16(38123), + 98: uint16(38126), + 99: uint16(38127), + 100: uint16(38131), + 101: uint16(38132), + 102: uint16(38133), + 103: uint16(38135), + 104: uint16(38137), + 105: uint16(38140), + 106: uint16(38141), + 107: uint16(38143), + 108: uint16(38147), + 109: uint16(38146), + 110: uint16(38150), + 111: uint16(38151), + 112: uint16(38153), + 113: uint16(38154), + 114: uint16(38157), + 115: uint16(38158), + 116: uint16(38159), + 117: uint16(38162), + 118: uint16(38163), + 119: uint16(38164), + 120: uint16(38165), + 121: uint16(38166), + 122: uint16(38168), + 123: uint16(38171), + 124: uint16(38173), + 125: uint16(38174), + 126: uint16(38175), + 127: uint16(38178), + 128: uint16(38186), + 129: uint16(38187), + 130: uint16(38185), + 131: uint16(38188), + 132: uint16(38193), + 133: uint16(38194), + 134: uint16(38196), + 135: uint16(38198), + 136: uint16(38199), + 137: uint16(38200), + 138: uint16(38204), + 139: uint16(38206), + 140: uint16(38207), + 141: uint16(38210), + 142: uint16(38197), + 143: uint16(38212), + 144: uint16(38213), + 145: uint16(38214), + 146: uint16(38217), + 147: uint16(38220), + 148: uint16(38222), + 149: uint16(38223), + 150: uint16(38226), + 151: uint16(38227), + 152: uint16(38228), + 153: uint16(38230), + 154: uint16(38231), + 155: uint16(38232), + 156: uint16(38233), + 157: uint16(38235), + 158: uint16(38238), + 159: uint16(38239), + 160: uint16(38237), + 161: uint16(38241), + 162: uint16(38242), + 163: uint16(38244), + 164: uint16(38245), + 165: uint16(38246), + 166: uint16(38247), + 167: uint16(38248), + 168: uint16(38249), + 169: uint16(38250), + 170: uint16(38251), + 171: uint16(38252), + 172: uint16(38255), + 173: uint16(38257), + 174: uint16(38258), + 175: uint16(38259), + 176: uint16(38202), + 177: uint16(30695), + 178: uint16(30700), + 179: uint16(38601), + 180: uint16(31189), + 181: uint16(31213), + 182: uint16(31203), + 183: uint16(31211), + 184: uint16(31238), + 185: uint16(23879), + 186: uint16(31235), + 187: uint16(31234), + 188: uint16(31262), + 189: uint16(31252), + }, + 111: { + 0: uint16(39176), + 1: uint16(39177), + 2: uint16(39178), + 3: uint16(39179), + 4: uint16(39180), + 5: uint16(39182), + 6: uint16(39183), + 7: uint16(39185), + 8: uint16(39186), + 9: uint16(39187), + 10: uint16(39188), + 11: uint16(39189), + 12: uint16(39190), + 13: uint16(39191), + 14: uint16(39192), + 15: uint16(39193), + 16: uint16(39194), + 17: uint16(39195), + 18: uint16(39196), + 19: uint16(39197), + 20: uint16(39198), + 21: uint16(39199), + 22: uint16(39200), + 23: uint16(39201), + 24: uint16(39202), + 25: uint16(39203), + 26: uint16(39204), + 27: uint16(39205), + 28: uint16(39206), + 29: uint16(39207), + 30: uint16(39208), + 31: uint16(39209), + 32: uint16(39210), + 33: uint16(39211), + 34: uint16(39212), + 35: uint16(39213), + 36: uint16(39215), + 37: uint16(39216), + 38: uint16(39217), + 39: uint16(39218), + 40: uint16(39219), + 41: uint16(39220), + 42: uint16(39221), + 43: uint16(39222), + 44: uint16(39223), + 45: uint16(39224), + 46: uint16(39225), + 47: uint16(39226), + 48: uint16(39227), + 49: uint16(39228), + 50: uint16(39229), + 51: uint16(39230), + 52: uint16(39231), + 53: uint16(39232), + 54: uint16(39233), + 55: uint16(39234), + 56: uint16(39235), + 57: uint16(39236), + 58: uint16(39237), + 59: uint16(39238), + 60: uint16(39239), + 61: uint16(39240), + 62: uint16(39241), + 63: uint16(39242), + 64: uint16(39243), + 65: uint16(39244), + 66: uint16(39245), + 67: uint16(39246), + 68: uint16(39247), + 69: uint16(39248), + 70: uint16(39249), + 71: uint16(39250), + 72: uint16(39251), + 73: uint16(39254), + 74: uint16(39255), + 75: uint16(39256), + 76: uint16(39257), + 77: uint16(39258), + 78: uint16(39259), + 79: uint16(39260), + 80: uint16(39261), + 81: uint16(39262), + 82: uint16(39263), + 83: uint16(39264), + 84: uint16(39265), + 85: uint16(39266), + 86: uint16(39268), + 87: uint16(39270), + 88: uint16(39283), + 89: uint16(39288), + 90: uint16(39289), + 91: uint16(39291), + 92: uint16(39294), + 93: uint16(39298), + 94: uint16(39299), + 95: uint16(39305), + 96: uint16(31289), + 97: uint16(31287), + 98: uint16(31313), + 99: uint16(40655), + 100: uint16(39333), + 101: uint16(31344), + 102: uint16(30344), + 103: uint16(30350), + 104: uint16(30355), + 105: uint16(30361), + 106: uint16(30372), + 107: uint16(29918), + 108: uint16(29920), + 109: uint16(29996), + 110: uint16(40480), + 111: uint16(40482), + 112: uint16(40488), + 113: uint16(40489), + 114: uint16(40490), + 115: uint16(40491), + 116: uint16(40492), + 117: uint16(40498), + 118: uint16(40497), + 119: uint16(40502), + 120: uint16(40504), + 121: uint16(40503), + 122: uint16(40505), + 123: uint16(40506), + 124: uint16(40510), + 125: uint16(40513), + 126: uint16(40514), + 127: uint16(40516), + 128: uint16(40518), + 129: uint16(40519), + 130: uint16(40520), + 131: uint16(40521), + 132: uint16(40523), + 133: uint16(40524), + 134: uint16(40526), + 135: uint16(40529), + 136: uint16(40533), + 137: uint16(40535), + 138: uint16(40538), + 139: uint16(40539), + 140: uint16(40540), + 141: uint16(40542), + 142: uint16(40547), + 143: uint16(40550), + 144: uint16(40551), + 145: uint16(40552), + 146: uint16(40553), + 147: uint16(40554), + 148: uint16(40555), + 149: uint16(40556), + 150: uint16(40561), + 151: uint16(40557), + 152: uint16(40563), + 153: uint16(30098), + 154: uint16(30100), + 155: uint16(30102), + 156: uint16(30112), + 157: uint16(30109), + 158: uint16(30124), + 159: uint16(30115), + 160: uint16(30131), + 161: uint16(30132), + 162: uint16(30136), + 163: uint16(30148), + 164: uint16(30129), + 165: uint16(30128), + 166: uint16(30147), + 167: uint16(30146), + 168: uint16(30166), + 169: uint16(30157), + 170: uint16(30179), + 171: uint16(30184), + 172: uint16(30182), + 173: uint16(30180), + 174: uint16(30187), + 175: uint16(30183), + 176: uint16(30211), + 177: uint16(30193), + 178: uint16(30204), + 179: uint16(30207), + 180: uint16(30224), + 181: uint16(30208), + 182: uint16(30213), + 183: uint16(30220), + 184: uint16(30231), + 185: uint16(30218), + 186: uint16(30245), + 187: uint16(30232), + 188: uint16(30229), + 189: uint16(30233), + }, + 112: { + 0: uint16(39308), + 1: uint16(39310), + 2: uint16(39322), + 3: uint16(39323), + 4: uint16(39324), + 5: uint16(39325), + 6: uint16(39326), + 7: uint16(39327), + 8: uint16(39328), + 9: uint16(39329), + 10: uint16(39330), + 11: uint16(39331), + 12: uint16(39332), + 13: uint16(39334), + 14: uint16(39335), + 15: uint16(39337), + 16: uint16(39338), + 17: uint16(39339), + 18: uint16(39340), + 19: uint16(39341), + 20: uint16(39342), + 21: uint16(39343), + 22: uint16(39344), + 23: uint16(39345), + 24: uint16(39346), + 25: uint16(39347), + 26: uint16(39348), + 27: uint16(39349), + 28: uint16(39350), + 29: uint16(39351), + 30: uint16(39352), + 31: uint16(39353), + 32: uint16(39354), + 33: uint16(39355), + 34: uint16(39356), + 35: uint16(39357), + 36: uint16(39358), + 37: uint16(39359), + 38: uint16(39360), + 39: uint16(39361), + 40: uint16(39362), + 41: uint16(39363), + 42: uint16(39364), + 43: uint16(39365), + 44: uint16(39366), + 45: uint16(39367), + 46: uint16(39368), + 47: uint16(39369), + 48: uint16(39370), + 49: uint16(39371), + 50: uint16(39372), + 51: uint16(39373), + 52: uint16(39374), + 53: uint16(39375), + 54: uint16(39376), + 55: uint16(39377), + 56: uint16(39378), + 57: uint16(39379), + 58: uint16(39380), + 59: uint16(39381), + 60: uint16(39382), + 61: uint16(39383), + 62: uint16(39384), + 63: uint16(39385), + 64: uint16(39386), + 65: uint16(39387), + 66: uint16(39388), + 67: uint16(39389), + 68: uint16(39390), + 69: uint16(39391), + 70: uint16(39392), + 71: uint16(39393), + 72: uint16(39394), + 73: uint16(39395), + 74: uint16(39396), + 75: uint16(39397), + 76: uint16(39398), + 77: uint16(39399), + 78: uint16(39400), + 79: uint16(39401), + 80: uint16(39402), + 81: uint16(39403), + 82: uint16(39404), + 83: uint16(39405), + 84: uint16(39406), + 85: uint16(39407), + 86: uint16(39408), + 87: uint16(39409), + 88: uint16(39410), + 89: uint16(39411), + 90: uint16(39412), + 91: uint16(39413), + 92: uint16(39414), + 93: uint16(39415), + 94: uint16(39416), + 95: uint16(39417), + 96: uint16(30235), + 97: uint16(30268), + 98: uint16(30242), + 99: uint16(30240), + 100: uint16(30272), + 101: uint16(30253), + 102: uint16(30256), + 103: uint16(30271), + 104: uint16(30261), + 105: uint16(30275), + 106: uint16(30270), + 107: uint16(30259), + 108: uint16(30285), + 109: uint16(30302), + 110: uint16(30292), + 111: uint16(30300), + 112: uint16(30294), + 113: uint16(30315), + 114: uint16(30319), + 115: uint16(32714), + 116: uint16(31462), + 117: uint16(31352), + 118: uint16(31353), + 119: uint16(31360), + 120: uint16(31366), + 121: uint16(31368), + 122: uint16(31381), + 123: uint16(31398), + 124: uint16(31392), + 125: uint16(31404), + 126: uint16(31400), + 127: uint16(31405), + 128: uint16(31411), + 129: uint16(34916), + 130: uint16(34921), + 131: uint16(34930), + 132: uint16(34941), + 133: uint16(34943), + 134: uint16(34946), + 135: uint16(34978), + 136: uint16(35014), + 137: uint16(34999), + 138: uint16(35004), + 139: uint16(35017), + 140: uint16(35042), + 141: uint16(35022), + 142: uint16(35043), + 143: uint16(35045), + 144: uint16(35057), + 145: uint16(35098), + 146: uint16(35068), + 147: uint16(35048), + 148: uint16(35070), + 149: uint16(35056), + 150: uint16(35105), + 151: uint16(35097), + 152: uint16(35091), + 153: uint16(35099), + 154: uint16(35082), + 155: uint16(35124), + 156: uint16(35115), + 157: uint16(35126), + 158: uint16(35137), + 159: uint16(35174), + 160: uint16(35195), + 161: uint16(30091), + 162: uint16(32997), + 163: uint16(30386), + 164: uint16(30388), + 165: uint16(30684), + 166: uint16(32786), + 167: uint16(32788), + 168: uint16(32790), + 169: uint16(32796), + 170: uint16(32800), + 171: uint16(32802), + 172: uint16(32805), + 173: uint16(32806), + 174: uint16(32807), + 175: uint16(32809), + 176: uint16(32808), + 177: uint16(32817), + 178: uint16(32779), + 179: uint16(32821), + 180: uint16(32835), + 181: uint16(32838), + 182: uint16(32845), + 183: uint16(32850), + 184: uint16(32873), + 185: uint16(32881), + 186: uint16(35203), + 187: uint16(39032), + 188: uint16(39040), + 189: uint16(39043), + }, + 113: { + 0: uint16(39418), + 1: uint16(39419), + 2: uint16(39420), + 3: uint16(39421), + 4: uint16(39422), + 5: uint16(39423), + 6: uint16(39424), + 7: uint16(39425), + 8: uint16(39426), + 9: uint16(39427), + 10: uint16(39428), + 11: uint16(39429), + 12: uint16(39430), + 13: uint16(39431), + 14: uint16(39432), + 15: uint16(39433), + 16: uint16(39434), + 17: uint16(39435), + 18: uint16(39436), + 19: uint16(39437), + 20: uint16(39438), + 21: uint16(39439), + 22: uint16(39440), + 23: uint16(39441), + 24: uint16(39442), + 25: uint16(39443), + 26: uint16(39444), + 27: uint16(39445), + 28: uint16(39446), + 29: uint16(39447), + 30: uint16(39448), + 31: uint16(39449), + 32: uint16(39450), + 33: uint16(39451), + 34: uint16(39452), + 35: uint16(39453), + 36: uint16(39454), + 37: uint16(39455), + 38: uint16(39456), + 39: uint16(39457), + 40: uint16(39458), + 41: uint16(39459), + 42: uint16(39460), + 43: uint16(39461), + 44: uint16(39462), + 45: uint16(39463), + 46: uint16(39464), + 47: uint16(39465), + 48: uint16(39466), + 49: uint16(39467), + 50: uint16(39468), + 51: uint16(39469), + 52: uint16(39470), + 53: uint16(39471), + 54: uint16(39472), + 55: uint16(39473), + 56: uint16(39474), + 57: uint16(39475), + 58: uint16(39476), + 59: uint16(39477), + 60: uint16(39478), + 61: uint16(39479), + 62: uint16(39480), + 63: uint16(39481), + 64: uint16(39482), + 65: uint16(39483), + 66: uint16(39484), + 67: uint16(39485), + 68: uint16(39486), + 69: uint16(39487), + 70: uint16(39488), + 71: uint16(39489), + 72: uint16(39490), + 73: uint16(39491), + 74: uint16(39492), + 75: uint16(39493), + 76: uint16(39494), + 77: uint16(39495), + 78: uint16(39496), + 79: uint16(39497), + 80: uint16(39498), + 81: uint16(39499), + 82: uint16(39500), + 83: uint16(39501), + 84: uint16(39502), + 85: uint16(39503), + 86: uint16(39504), + 87: uint16(39505), + 88: uint16(39506), + 89: uint16(39507), + 90: uint16(39508), + 91: uint16(39509), + 92: uint16(39510), + 93: uint16(39511), + 94: uint16(39512), + 95: uint16(39513), + 96: uint16(39049), + 97: uint16(39052), + 98: uint16(39053), + 99: uint16(39055), + 100: uint16(39060), + 101: uint16(39066), + 102: uint16(39067), + 103: uint16(39070), + 104: uint16(39071), + 105: uint16(39073), + 106: uint16(39074), + 107: uint16(39077), + 108: uint16(39078), + 109: uint16(34381), + 110: uint16(34388), + 111: uint16(34412), + 112: uint16(34414), + 113: uint16(34431), + 114: uint16(34426), + 115: uint16(34428), + 116: uint16(34427), + 117: uint16(34472), + 118: uint16(34445), + 119: uint16(34443), + 120: uint16(34476), + 121: uint16(34461), + 122: uint16(34471), + 123: uint16(34467), + 124: uint16(34474), + 125: uint16(34451), + 126: uint16(34473), + 127: uint16(34486), + 128: uint16(34500), + 129: uint16(34485), + 130: uint16(34510), + 131: uint16(34480), + 132: uint16(34490), + 133: uint16(34481), + 134: uint16(34479), + 135: uint16(34505), + 136: uint16(34511), + 137: uint16(34484), + 138: uint16(34537), + 139: uint16(34545), + 140: uint16(34546), + 141: uint16(34541), + 142: uint16(34547), + 143: uint16(34512), + 144: uint16(34579), + 145: uint16(34526), + 146: uint16(34548), + 147: uint16(34527), + 148: uint16(34520), + 149: uint16(34513), + 150: uint16(34563), + 151: uint16(34567), + 152: uint16(34552), + 153: uint16(34568), + 154: uint16(34570), + 155: uint16(34573), + 156: uint16(34569), + 157: uint16(34595), + 158: uint16(34619), + 159: uint16(34590), + 160: uint16(34597), + 161: uint16(34606), + 162: uint16(34586), + 163: uint16(34622), + 164: uint16(34632), + 165: uint16(34612), + 166: uint16(34609), + 167: uint16(34601), + 168: uint16(34615), + 169: uint16(34623), + 170: uint16(34690), + 171: uint16(34594), + 172: uint16(34685), + 173: uint16(34686), + 174: uint16(34683), + 175: uint16(34656), + 176: uint16(34672), + 177: uint16(34636), + 178: uint16(34670), + 179: uint16(34699), + 180: uint16(34643), + 181: uint16(34659), + 182: uint16(34684), + 183: uint16(34660), + 184: uint16(34649), + 185: uint16(34661), + 186: uint16(34707), + 187: uint16(34735), + 188: uint16(34728), + 189: uint16(34770), + }, + 114: { + 0: uint16(39514), + 1: uint16(39515), + 2: uint16(39516), + 3: uint16(39517), + 4: uint16(39518), + 5: uint16(39519), + 6: uint16(39520), + 7: uint16(39521), + 8: uint16(39522), + 9: uint16(39523), + 10: uint16(39524), + 11: uint16(39525), + 12: uint16(39526), + 13: uint16(39527), + 14: uint16(39528), + 15: uint16(39529), + 16: uint16(39530), + 17: uint16(39531), + 18: uint16(39538), + 19: uint16(39555), + 20: uint16(39561), + 21: uint16(39565), + 22: uint16(39566), + 23: uint16(39572), + 24: uint16(39573), + 25: uint16(39577), + 26: uint16(39590), + 27: uint16(39593), + 28: uint16(39594), + 29: uint16(39595), + 30: uint16(39596), + 31: uint16(39597), + 32: uint16(39598), + 33: uint16(39599), + 34: uint16(39602), + 35: uint16(39603), + 36: uint16(39604), + 37: uint16(39605), + 38: uint16(39609), + 39: uint16(39611), + 40: uint16(39613), + 41: uint16(39614), + 42: uint16(39615), + 43: uint16(39619), + 44: uint16(39620), + 45: uint16(39622), + 46: uint16(39623), + 47: uint16(39624), + 48: uint16(39625), + 49: uint16(39626), + 50: uint16(39629), + 51: uint16(39630), + 52: uint16(39631), + 53: uint16(39632), + 54: uint16(39634), + 55: uint16(39636), + 56: uint16(39637), + 57: uint16(39638), + 58: uint16(39639), + 59: uint16(39641), + 60: uint16(39642), + 61: uint16(39643), + 62: uint16(39644), + 63: uint16(39645), + 64: uint16(39646), + 65: uint16(39648), + 66: uint16(39650), + 67: uint16(39651), + 68: uint16(39652), + 69: uint16(39653), + 70: uint16(39655), + 71: uint16(39656), + 72: uint16(39657), + 73: uint16(39658), + 74: uint16(39660), + 75: uint16(39662), + 76: uint16(39664), + 77: uint16(39665), + 78: uint16(39666), + 79: uint16(39667), + 80: uint16(39668), + 81: uint16(39669), + 82: uint16(39670), + 83: uint16(39671), + 84: uint16(39672), + 85: uint16(39674), + 86: uint16(39676), + 87: uint16(39677), + 88: uint16(39678), + 89: uint16(39679), + 90: uint16(39680), + 91: uint16(39681), + 92: uint16(39682), + 93: uint16(39684), + 94: uint16(39685), + 95: uint16(39686), + 96: uint16(34758), + 97: uint16(34696), + 98: uint16(34693), + 99: uint16(34733), + 100: uint16(34711), + 101: uint16(34691), + 102: uint16(34731), + 103: uint16(34789), + 104: uint16(34732), + 105: uint16(34741), + 106: uint16(34739), + 107: uint16(34763), + 108: uint16(34771), + 109: uint16(34749), + 110: uint16(34769), + 111: uint16(34752), + 112: uint16(34762), + 113: uint16(34779), + 114: uint16(34794), + 115: uint16(34784), + 116: uint16(34798), + 117: uint16(34838), + 118: uint16(34835), + 119: uint16(34814), + 120: uint16(34826), + 121: uint16(34843), + 122: uint16(34849), + 123: uint16(34873), + 124: uint16(34876), + 125: uint16(32566), + 126: uint16(32578), + 127: uint16(32580), + 128: uint16(32581), + 129: uint16(33296), + 130: uint16(31482), + 131: uint16(31485), + 132: uint16(31496), + 133: uint16(31491), + 134: uint16(31492), + 135: uint16(31509), + 136: uint16(31498), + 137: uint16(31531), + 138: uint16(31503), + 139: uint16(31559), + 140: uint16(31544), + 141: uint16(31530), + 142: uint16(31513), + 143: uint16(31534), + 144: uint16(31537), + 145: uint16(31520), + 146: uint16(31525), + 147: uint16(31524), + 148: uint16(31539), + 149: uint16(31550), + 150: uint16(31518), + 151: uint16(31576), + 152: uint16(31578), + 153: uint16(31557), + 154: uint16(31605), + 155: uint16(31564), + 156: uint16(31581), + 157: uint16(31584), + 158: uint16(31598), + 159: uint16(31611), + 160: uint16(31586), + 161: uint16(31602), + 162: uint16(31601), + 163: uint16(31632), + 164: uint16(31654), + 165: uint16(31655), + 166: uint16(31672), + 167: uint16(31660), + 168: uint16(31645), + 169: uint16(31656), + 170: uint16(31621), + 171: uint16(31658), + 172: uint16(31644), + 173: uint16(31650), + 174: uint16(31659), + 175: uint16(31668), + 176: uint16(31697), + 177: uint16(31681), + 178: uint16(31692), + 179: uint16(31709), + 180: uint16(31706), + 181: uint16(31717), + 182: uint16(31718), + 183: uint16(31722), + 184: uint16(31756), + 185: uint16(31742), + 186: uint16(31740), + 187: uint16(31759), + 188: uint16(31766), + 189: uint16(31755), + }, + 115: { + 0: uint16(39687), + 1: uint16(39689), + 2: uint16(39690), + 3: uint16(39691), + 4: uint16(39692), + 5: uint16(39693), + 6: uint16(39694), + 7: uint16(39696), + 8: uint16(39697), + 9: uint16(39698), + 10: uint16(39700), + 11: uint16(39701), + 12: uint16(39702), + 13: uint16(39703), + 14: uint16(39704), + 15: uint16(39705), + 16: uint16(39706), + 17: uint16(39707), + 18: uint16(39708), + 19: uint16(39709), + 20: uint16(39710), + 21: uint16(39712), + 22: uint16(39713), + 23: uint16(39714), + 24: uint16(39716), + 25: uint16(39717), + 26: uint16(39718), + 27: uint16(39719), + 28: uint16(39720), + 29: uint16(39721), + 30: uint16(39722), + 31: uint16(39723), + 32: uint16(39724), + 33: uint16(39725), + 34: uint16(39726), + 35: uint16(39728), + 36: uint16(39729), + 37: uint16(39731), + 38: uint16(39732), + 39: uint16(39733), + 40: uint16(39734), + 41: uint16(39735), + 42: uint16(39736), + 43: uint16(39737), + 44: uint16(39738), + 45: uint16(39741), + 46: uint16(39742), + 47: uint16(39743), + 48: uint16(39744), + 49: uint16(39750), + 50: uint16(39754), + 51: uint16(39755), + 52: uint16(39756), + 53: uint16(39758), + 54: uint16(39760), + 55: uint16(39762), + 56: uint16(39763), + 57: uint16(39765), + 58: uint16(39766), + 59: uint16(39767), + 60: uint16(39768), + 61: uint16(39769), + 62: uint16(39770), + 63: uint16(39771), + 64: uint16(39772), + 65: uint16(39773), + 66: uint16(39774), + 67: uint16(39775), + 68: uint16(39776), + 69: uint16(39777), + 70: uint16(39778), + 71: uint16(39779), + 72: uint16(39780), + 73: uint16(39781), + 74: uint16(39782), + 75: uint16(39783), + 76: uint16(39784), + 77: uint16(39785), + 78: uint16(39786), + 79: uint16(39787), + 80: uint16(39788), + 81: uint16(39789), + 82: uint16(39790), + 83: uint16(39791), + 84: uint16(39792), + 85: uint16(39793), + 86: uint16(39794), + 87: uint16(39795), + 88: uint16(39796), + 89: uint16(39797), + 90: uint16(39798), + 91: uint16(39799), + 92: uint16(39800), + 93: uint16(39801), + 94: uint16(39802), + 95: uint16(39803), + 96: uint16(31775), + 97: uint16(31786), + 98: uint16(31782), + 99: uint16(31800), + 100: uint16(31809), + 101: uint16(31808), + 102: uint16(33278), + 103: uint16(33281), + 104: uint16(33282), + 105: uint16(33284), + 106: uint16(33260), + 107: uint16(34884), + 108: uint16(33313), + 109: uint16(33314), + 110: uint16(33315), + 111: uint16(33325), + 112: uint16(33327), + 113: uint16(33320), + 114: uint16(33323), + 115: uint16(33336), + 116: uint16(33339), + 117: uint16(33331), + 118: uint16(33332), + 119: uint16(33342), + 120: uint16(33348), + 121: uint16(33353), + 122: uint16(33355), + 123: uint16(33359), + 124: uint16(33370), + 125: uint16(33375), + 126: uint16(33384), + 127: uint16(34942), + 128: uint16(34949), + 129: uint16(34952), + 130: uint16(35032), + 131: uint16(35039), + 132: uint16(35166), + 133: uint16(32669), + 134: uint16(32671), + 135: uint16(32679), + 136: uint16(32687), + 137: uint16(32688), + 138: uint16(32690), + 139: uint16(31868), + 140: uint16(25929), + 141: uint16(31889), + 142: uint16(31901), + 143: uint16(31900), + 144: uint16(31902), + 145: uint16(31906), + 146: uint16(31922), + 147: uint16(31932), + 148: uint16(31933), + 149: uint16(31937), + 150: uint16(31943), + 151: uint16(31948), + 152: uint16(31949), + 153: uint16(31944), + 154: uint16(31941), + 155: uint16(31959), + 156: uint16(31976), + 157: uint16(33390), + 158: uint16(26280), + 159: uint16(32703), + 160: uint16(32718), + 161: uint16(32725), + 162: uint16(32741), + 163: uint16(32737), + 164: uint16(32742), + 165: uint16(32745), + 166: uint16(32750), + 167: uint16(32755), + 168: uint16(31992), + 169: uint16(32119), + 170: uint16(32166), + 171: uint16(32174), + 172: uint16(32327), + 173: uint16(32411), + 174: uint16(40632), + 175: uint16(40628), + 176: uint16(36211), + 177: uint16(36228), + 178: uint16(36244), + 179: uint16(36241), + 180: uint16(36273), + 181: uint16(36199), + 182: uint16(36205), + 183: uint16(35911), + 184: uint16(35913), + 185: uint16(37194), + 186: uint16(37200), + 187: uint16(37198), + 188: uint16(37199), + 189: uint16(37220), + }, + 116: { + 0: uint16(39804), + 1: uint16(39805), + 2: uint16(39806), + 3: uint16(39807), + 4: uint16(39808), + 5: uint16(39809), + 6: uint16(39810), + 7: uint16(39811), + 8: uint16(39812), + 9: uint16(39813), + 10: uint16(39814), + 11: uint16(39815), + 12: uint16(39816), + 13: uint16(39817), + 14: uint16(39818), + 15: uint16(39819), + 16: uint16(39820), + 17: uint16(39821), + 18: uint16(39822), + 19: uint16(39823), + 20: uint16(39824), + 21: uint16(39825), + 22: uint16(39826), + 23: uint16(39827), + 24: uint16(39828), + 25: uint16(39829), + 26: uint16(39830), + 27: uint16(39831), + 28: uint16(39832), + 29: uint16(39833), + 30: uint16(39834), + 31: uint16(39835), + 32: uint16(39836), + 33: uint16(39837), + 34: uint16(39838), + 35: uint16(39839), + 36: uint16(39840), + 37: uint16(39841), + 38: uint16(39842), + 39: uint16(39843), + 40: uint16(39844), + 41: uint16(39845), + 42: uint16(39846), + 43: uint16(39847), + 44: uint16(39848), + 45: uint16(39849), + 46: uint16(39850), + 47: uint16(39851), + 48: uint16(39852), + 49: uint16(39853), + 50: uint16(39854), + 51: uint16(39855), + 52: uint16(39856), + 53: uint16(39857), + 54: uint16(39858), + 55: uint16(39859), + 56: uint16(39860), + 57: uint16(39861), + 58: uint16(39862), + 59: uint16(39863), + 60: uint16(39864), + 61: uint16(39865), + 62: uint16(39866), + 63: uint16(39867), + 64: uint16(39868), + 65: uint16(39869), + 66: uint16(39870), + 67: uint16(39871), + 68: uint16(39872), + 69: uint16(39873), + 70: uint16(39874), + 71: uint16(39875), + 72: uint16(39876), + 73: uint16(39877), + 74: uint16(39878), + 75: uint16(39879), + 76: uint16(39880), + 77: uint16(39881), + 78: uint16(39882), + 79: uint16(39883), + 80: uint16(39884), + 81: uint16(39885), + 82: uint16(39886), + 83: uint16(39887), + 84: uint16(39888), + 85: uint16(39889), + 86: uint16(39890), + 87: uint16(39891), + 88: uint16(39892), + 89: uint16(39893), + 90: uint16(39894), + 91: uint16(39895), + 92: uint16(39896), + 93: uint16(39897), + 94: uint16(39898), + 95: uint16(39899), + 96: uint16(37218), + 97: uint16(37217), + 98: uint16(37232), + 99: uint16(37225), + 100: uint16(37231), + 101: uint16(37245), + 102: uint16(37246), + 103: uint16(37234), + 104: uint16(37236), + 105: uint16(37241), + 106: uint16(37260), + 107: uint16(37253), + 108: uint16(37264), + 109: uint16(37261), + 110: uint16(37265), + 111: uint16(37282), + 112: uint16(37283), + 113: uint16(37290), + 114: uint16(37293), + 115: uint16(37294), + 116: uint16(37295), + 117: uint16(37301), + 118: uint16(37300), + 119: uint16(37306), + 120: uint16(35925), + 121: uint16(40574), + 122: uint16(36280), + 123: uint16(36331), + 124: uint16(36357), + 125: uint16(36441), + 126: uint16(36457), + 127: uint16(36277), + 128: uint16(36287), + 129: uint16(36284), + 130: uint16(36282), + 131: uint16(36292), + 132: uint16(36310), + 133: uint16(36311), + 134: uint16(36314), + 135: uint16(36318), + 136: uint16(36302), + 137: uint16(36303), + 138: uint16(36315), + 139: uint16(36294), + 140: uint16(36332), + 141: uint16(36343), + 142: uint16(36344), + 143: uint16(36323), + 144: uint16(36345), + 145: uint16(36347), + 146: uint16(36324), + 147: uint16(36361), + 148: uint16(36349), + 149: uint16(36372), + 150: uint16(36381), + 151: uint16(36383), + 152: uint16(36396), + 153: uint16(36398), + 154: uint16(36387), + 155: uint16(36399), + 156: uint16(36410), + 157: uint16(36416), + 158: uint16(36409), + 159: uint16(36405), + 160: uint16(36413), + 161: uint16(36401), + 162: uint16(36425), + 163: uint16(36417), + 164: uint16(36418), + 165: uint16(36433), + 166: uint16(36434), + 167: uint16(36426), + 168: uint16(36464), + 169: uint16(36470), + 170: uint16(36476), + 171: uint16(36463), + 172: uint16(36468), + 173: uint16(36485), + 174: uint16(36495), + 175: uint16(36500), + 176: uint16(36496), + 177: uint16(36508), + 178: uint16(36510), + 179: uint16(35960), + 180: uint16(35970), + 181: uint16(35978), + 182: uint16(35973), + 183: uint16(35992), + 184: uint16(35988), + 185: uint16(26011), + 186: uint16(35286), + 187: uint16(35294), + 188: uint16(35290), + 189: uint16(35292), + }, + 117: { + 0: uint16(39900), + 1: uint16(39901), + 2: uint16(39902), + 3: uint16(39903), + 4: uint16(39904), + 5: uint16(39905), + 6: uint16(39906), + 7: uint16(39907), + 8: uint16(39908), + 9: uint16(39909), + 10: uint16(39910), + 11: uint16(39911), + 12: uint16(39912), + 13: uint16(39913), + 14: uint16(39914), + 15: uint16(39915), + 16: uint16(39916), + 17: uint16(39917), + 18: uint16(39918), + 19: uint16(39919), + 20: uint16(39920), + 21: uint16(39921), + 22: uint16(39922), + 23: uint16(39923), + 24: uint16(39924), + 25: uint16(39925), + 26: uint16(39926), + 27: uint16(39927), + 28: uint16(39928), + 29: uint16(39929), + 30: uint16(39930), + 31: uint16(39931), + 32: uint16(39932), + 33: uint16(39933), + 34: uint16(39934), + 35: uint16(39935), + 36: uint16(39936), + 37: uint16(39937), + 38: uint16(39938), + 39: uint16(39939), + 40: uint16(39940), + 41: uint16(39941), + 42: uint16(39942), + 43: uint16(39943), + 44: uint16(39944), + 45: uint16(39945), + 46: uint16(39946), + 47: uint16(39947), + 48: uint16(39948), + 49: uint16(39949), + 50: uint16(39950), + 51: uint16(39951), + 52: uint16(39952), + 53: uint16(39953), + 54: uint16(39954), + 55: uint16(39955), + 56: uint16(39956), + 57: uint16(39957), + 58: uint16(39958), + 59: uint16(39959), + 60: uint16(39960), + 61: uint16(39961), + 62: uint16(39962), + 63: uint16(39963), + 64: uint16(39964), + 65: uint16(39965), + 66: uint16(39966), + 67: uint16(39967), + 68: uint16(39968), + 69: uint16(39969), + 70: uint16(39970), + 71: uint16(39971), + 72: uint16(39972), + 73: uint16(39973), + 74: uint16(39974), + 75: uint16(39975), + 76: uint16(39976), + 77: uint16(39977), + 78: uint16(39978), + 79: uint16(39979), + 80: uint16(39980), + 81: uint16(39981), + 82: uint16(39982), + 83: uint16(39983), + 84: uint16(39984), + 85: uint16(39985), + 86: uint16(39986), + 87: uint16(39987), + 88: uint16(39988), + 89: uint16(39989), + 90: uint16(39990), + 91: uint16(39991), + 92: uint16(39992), + 93: uint16(39993), + 94: uint16(39994), + 95: uint16(39995), + 96: uint16(35301), + 97: uint16(35307), + 98: uint16(35311), + 99: uint16(35390), + 100: uint16(35622), + 101: uint16(38739), + 102: uint16(38633), + 103: uint16(38643), + 104: uint16(38639), + 105: uint16(38662), + 106: uint16(38657), + 107: uint16(38664), + 108: uint16(38671), + 109: uint16(38670), + 110: uint16(38698), + 111: uint16(38701), + 112: uint16(38704), + 113: uint16(38718), + 114: uint16(40832), + 115: uint16(40835), + 116: uint16(40837), + 117: uint16(40838), + 118: uint16(40839), + 119: uint16(40840), + 120: uint16(40841), + 121: uint16(40842), + 122: uint16(40844), + 123: uint16(40702), + 124: uint16(40715), + 125: uint16(40717), + 126: uint16(38585), + 127: uint16(38588), + 128: uint16(38589), + 129: uint16(38606), + 130: uint16(38610), + 131: uint16(30655), + 132: uint16(38624), + 133: uint16(37518), + 134: uint16(37550), + 135: uint16(37576), + 136: uint16(37694), + 137: uint16(37738), + 138: uint16(37834), + 139: uint16(37775), + 140: uint16(37950), + 141: uint16(37995), + 142: uint16(40063), + 143: uint16(40066), + 144: uint16(40069), + 145: uint16(40070), + 146: uint16(40071), + 147: uint16(40072), + 148: uint16(31267), + 149: uint16(40075), + 150: uint16(40078), + 151: uint16(40080), + 152: uint16(40081), + 153: uint16(40082), + 154: uint16(40084), + 155: uint16(40085), + 156: uint16(40090), + 157: uint16(40091), + 158: uint16(40094), + 159: uint16(40095), + 160: uint16(40096), + 161: uint16(40097), + 162: uint16(40098), + 163: uint16(40099), + 164: uint16(40101), + 165: uint16(40102), + 166: uint16(40103), + 167: uint16(40104), + 168: uint16(40105), + 169: uint16(40107), + 170: uint16(40109), + 171: uint16(40110), + 172: uint16(40112), + 173: uint16(40113), + 174: uint16(40114), + 175: uint16(40115), + 176: uint16(40116), + 177: uint16(40117), + 178: uint16(40118), + 179: uint16(40119), + 180: uint16(40122), + 181: uint16(40123), + 182: uint16(40124), + 183: uint16(40125), + 184: uint16(40132), + 185: uint16(40133), + 186: uint16(40134), + 187: uint16(40135), + 188: uint16(40138), + 189: uint16(40139), + }, + 118: { + 0: uint16(39996), + 1: uint16(39997), + 2: uint16(39998), + 3: uint16(39999), + 4: uint16(40000), + 5: uint16(40001), + 6: uint16(40002), + 7: uint16(40003), + 8: uint16(40004), + 9: uint16(40005), + 10: uint16(40006), + 11: uint16(40007), + 12: uint16(40008), + 13: uint16(40009), + 14: uint16(40010), + 15: uint16(40011), + 16: uint16(40012), + 17: uint16(40013), + 18: uint16(40014), + 19: uint16(40015), + 20: uint16(40016), + 21: uint16(40017), + 22: uint16(40018), + 23: uint16(40019), + 24: uint16(40020), + 25: uint16(40021), + 26: uint16(40022), + 27: uint16(40023), + 28: uint16(40024), + 29: uint16(40025), + 30: uint16(40026), + 31: uint16(40027), + 32: uint16(40028), + 33: uint16(40029), + 34: uint16(40030), + 35: uint16(40031), + 36: uint16(40032), + 37: uint16(40033), + 38: uint16(40034), + 39: uint16(40035), + 40: uint16(40036), + 41: uint16(40037), + 42: uint16(40038), + 43: uint16(40039), + 44: uint16(40040), + 45: uint16(40041), + 46: uint16(40042), + 47: uint16(40043), + 48: uint16(40044), + 49: uint16(40045), + 50: uint16(40046), + 51: uint16(40047), + 52: uint16(40048), + 53: uint16(40049), + 54: uint16(40050), + 55: uint16(40051), + 56: uint16(40052), + 57: uint16(40053), + 58: uint16(40054), + 59: uint16(40055), + 60: uint16(40056), + 61: uint16(40057), + 62: uint16(40058), + 63: uint16(40059), + 64: uint16(40061), + 65: uint16(40062), + 66: uint16(40064), + 67: uint16(40067), + 68: uint16(40068), + 69: uint16(40073), + 70: uint16(40074), + 71: uint16(40076), + 72: uint16(40079), + 73: uint16(40083), + 74: uint16(40086), + 75: uint16(40087), + 76: uint16(40088), + 77: uint16(40089), + 78: uint16(40093), + 79: uint16(40106), + 80: uint16(40108), + 81: uint16(40111), + 82: uint16(40121), + 83: uint16(40126), + 84: uint16(40127), + 85: uint16(40128), + 86: uint16(40129), + 87: uint16(40130), + 88: uint16(40136), + 89: uint16(40137), + 90: uint16(40145), + 91: uint16(40146), + 92: uint16(40154), + 93: uint16(40155), + 94: uint16(40160), + 95: uint16(40161), + 96: uint16(40140), + 97: uint16(40141), + 98: uint16(40142), + 99: uint16(40143), + 100: uint16(40144), + 101: uint16(40147), + 102: uint16(40148), + 103: uint16(40149), + 104: uint16(40151), + 105: uint16(40152), + 106: uint16(40153), + 107: uint16(40156), + 108: uint16(40157), + 109: uint16(40159), + 110: uint16(40162), + 111: uint16(38780), + 112: uint16(38789), + 113: uint16(38801), + 114: uint16(38802), + 115: uint16(38804), + 116: uint16(38831), + 117: uint16(38827), + 118: uint16(38819), + 119: uint16(38834), + 120: uint16(38836), + 121: uint16(39601), + 122: uint16(39600), + 123: uint16(39607), + 124: uint16(40536), + 125: uint16(39606), + 126: uint16(39610), + 127: uint16(39612), + 128: uint16(39617), + 129: uint16(39616), + 130: uint16(39621), + 131: uint16(39618), + 132: uint16(39627), + 133: uint16(39628), + 134: uint16(39633), + 135: uint16(39749), + 136: uint16(39747), + 137: uint16(39751), + 138: uint16(39753), + 139: uint16(39752), + 140: uint16(39757), + 141: uint16(39761), + 142: uint16(39144), + 143: uint16(39181), + 144: uint16(39214), + 145: uint16(39253), + 146: uint16(39252), + 147: uint16(39647), + 148: uint16(39649), + 149: uint16(39654), + 150: uint16(39663), + 151: uint16(39659), + 152: uint16(39675), + 153: uint16(39661), + 154: uint16(39673), + 155: uint16(39688), + 156: uint16(39695), + 157: uint16(39699), + 158: uint16(39711), + 159: uint16(39715), + 160: uint16(40637), + 161: uint16(40638), + 162: uint16(32315), + 163: uint16(40578), + 164: uint16(40583), + 165: uint16(40584), + 166: uint16(40587), + 167: uint16(40594), + 168: uint16(37846), + 169: uint16(40605), + 170: uint16(40607), + 171: uint16(40667), + 172: uint16(40668), + 173: uint16(40669), + 174: uint16(40672), + 175: uint16(40671), + 176: uint16(40674), + 177: uint16(40681), + 178: uint16(40679), + 179: uint16(40677), + 180: uint16(40682), + 181: uint16(40687), + 182: uint16(40738), + 183: uint16(40748), + 184: uint16(40751), + 185: uint16(40761), + 186: uint16(40759), + 187: uint16(40765), + 188: uint16(40766), + 189: uint16(40772), + }, + 119: { + 0: uint16(40163), + 1: uint16(40164), + 2: uint16(40165), + 3: uint16(40166), + 4: uint16(40167), + 5: uint16(40168), + 6: uint16(40169), + 7: uint16(40170), + 8: uint16(40171), + 9: uint16(40172), + 10: uint16(40173), + 11: uint16(40174), + 12: uint16(40175), + 13: uint16(40176), + 14: uint16(40177), + 15: uint16(40178), + 16: uint16(40179), + 17: uint16(40180), + 18: uint16(40181), + 19: uint16(40182), + 20: uint16(40183), + 21: uint16(40184), + 22: uint16(40185), + 23: uint16(40186), + 24: uint16(40187), + 25: uint16(40188), + 26: uint16(40189), + 27: uint16(40190), + 28: uint16(40191), + 29: uint16(40192), + 30: uint16(40193), + 31: uint16(40194), + 32: uint16(40195), + 33: uint16(40196), + 34: uint16(40197), + 35: uint16(40198), + 36: uint16(40199), + 37: uint16(40200), + 38: uint16(40201), + 39: uint16(40202), + 40: uint16(40203), + 41: uint16(40204), + 42: uint16(40205), + 43: uint16(40206), + 44: uint16(40207), + 45: uint16(40208), + 46: uint16(40209), + 47: uint16(40210), + 48: uint16(40211), + 49: uint16(40212), + 50: uint16(40213), + 51: uint16(40214), + 52: uint16(40215), + 53: uint16(40216), + 54: uint16(40217), + 55: uint16(40218), + 56: uint16(40219), + 57: uint16(40220), + 58: uint16(40221), + 59: uint16(40222), + 60: uint16(40223), + 61: uint16(40224), + 62: uint16(40225), + 63: uint16(40226), + 64: uint16(40227), + 65: uint16(40228), + 66: uint16(40229), + 67: uint16(40230), + 68: uint16(40231), + 69: uint16(40232), + 70: uint16(40233), + 71: uint16(40234), + 72: uint16(40235), + 73: uint16(40236), + 74: uint16(40237), + 75: uint16(40238), + 76: uint16(40239), + 77: uint16(40240), + 78: uint16(40241), + 79: uint16(40242), + 80: uint16(40243), + 81: uint16(40244), + 82: uint16(40245), + 83: uint16(40246), + 84: uint16(40247), + 85: uint16(40248), + 86: uint16(40249), + 87: uint16(40250), + 88: uint16(40251), + 89: uint16(40252), + 90: uint16(40253), + 91: uint16(40254), + 92: uint16(40255), + 93: uint16(40256), + 94: uint16(40257), + 95: uint16(40258), + 96: uint16(57908), + 97: uint16(57909), + 98: uint16(57910), + 99: uint16(57911), + 100: uint16(57912), + 101: uint16(57913), + 102: uint16(57914), + 103: uint16(57915), + 104: uint16(57916), + 105: uint16(57917), + 106: uint16(57918), + 107: uint16(57919), + 108: uint16(57920), + 109: uint16(57921), + 110: uint16(57922), + 111: uint16(57923), + 112: uint16(57924), + 113: uint16(57925), + 114: uint16(57926), + 115: uint16(57927), + 116: uint16(57928), + 117: uint16(57929), + 118: uint16(57930), + 119: uint16(57931), + 120: uint16(57932), + 121: uint16(57933), + 122: uint16(57934), + 123: uint16(57935), + 124: uint16(57936), + 125: uint16(57937), + 126: uint16(57938), + 127: uint16(57939), + 128: uint16(57940), + 129: uint16(57941), + 130: uint16(57942), + 131: uint16(57943), + 132: uint16(57944), + 133: uint16(57945), + 134: uint16(57946), + 135: uint16(57947), + 136: uint16(57948), + 137: uint16(57949), + 138: uint16(57950), + 139: uint16(57951), + 140: uint16(57952), + 141: uint16(57953), + 142: uint16(57954), + 143: uint16(57955), + 144: uint16(57956), + 145: uint16(57957), + 146: uint16(57958), + 147: uint16(57959), + 148: uint16(57960), + 149: uint16(57961), + 150: uint16(57962), + 151: uint16(57963), + 152: uint16(57964), + 153: uint16(57965), + 154: uint16(57966), + 155: uint16(57967), + 156: uint16(57968), + 157: uint16(57969), + 158: uint16(57970), + 159: uint16(57971), + 160: uint16(57972), + 161: uint16(57973), + 162: uint16(57974), + 163: uint16(57975), + 164: uint16(57976), + 165: uint16(57977), + 166: uint16(57978), + 167: uint16(57979), + 168: uint16(57980), + 169: uint16(57981), + 170: uint16(57982), + 171: uint16(57983), + 172: uint16(57984), + 173: uint16(57985), + 174: uint16(57986), + 175: uint16(57987), + 176: uint16(57988), + 177: uint16(57989), + 178: uint16(57990), + 179: uint16(57991), + 180: uint16(57992), + 181: uint16(57993), + 182: uint16(57994), + 183: uint16(57995), + 184: uint16(57996), + 185: uint16(57997), + 186: uint16(57998), + 187: uint16(57999), + 188: uint16(58000), + 189: uint16(58001), + }, + 120: { + 0: uint16(40259), + 1: uint16(40260), + 2: uint16(40261), + 3: uint16(40262), + 4: uint16(40263), + 5: uint16(40264), + 6: uint16(40265), + 7: uint16(40266), + 8: uint16(40267), + 9: uint16(40268), + 10: uint16(40269), + 11: uint16(40270), + 12: uint16(40271), + 13: uint16(40272), + 14: uint16(40273), + 15: uint16(40274), + 16: uint16(40275), + 17: uint16(40276), + 18: uint16(40277), + 19: uint16(40278), + 20: uint16(40279), + 21: uint16(40280), + 22: uint16(40281), + 23: uint16(40282), + 24: uint16(40283), + 25: uint16(40284), + 26: uint16(40285), + 27: uint16(40286), + 28: uint16(40287), + 29: uint16(40288), + 30: uint16(40289), + 31: uint16(40290), + 32: uint16(40291), + 33: uint16(40292), + 34: uint16(40293), + 35: uint16(40294), + 36: uint16(40295), + 37: uint16(40296), + 38: uint16(40297), + 39: uint16(40298), + 40: uint16(40299), + 41: uint16(40300), + 42: uint16(40301), + 43: uint16(40302), + 44: uint16(40303), + 45: uint16(40304), + 46: uint16(40305), + 47: uint16(40306), + 48: uint16(40307), + 49: uint16(40308), + 50: uint16(40309), + 51: uint16(40310), + 52: uint16(40311), + 53: uint16(40312), + 54: uint16(40313), + 55: uint16(40314), + 56: uint16(40315), + 57: uint16(40316), + 58: uint16(40317), + 59: uint16(40318), + 60: uint16(40319), + 61: uint16(40320), + 62: uint16(40321), + 63: uint16(40322), + 64: uint16(40323), + 65: uint16(40324), + 66: uint16(40325), + 67: uint16(40326), + 68: uint16(40327), + 69: uint16(40328), + 70: uint16(40329), + 71: uint16(40330), + 72: uint16(40331), + 73: uint16(40332), + 74: uint16(40333), + 75: uint16(40334), + 76: uint16(40335), + 77: uint16(40336), + 78: uint16(40337), + 79: uint16(40338), + 80: uint16(40339), + 81: uint16(40340), + 82: uint16(40341), + 83: uint16(40342), + 84: uint16(40343), + 85: uint16(40344), + 86: uint16(40345), + 87: uint16(40346), + 88: uint16(40347), + 89: uint16(40348), + 90: uint16(40349), + 91: uint16(40350), + 92: uint16(40351), + 93: uint16(40352), + 94: uint16(40353), + 95: uint16(40354), + 96: uint16(58002), + 97: uint16(58003), + 98: uint16(58004), + 99: uint16(58005), + 100: uint16(58006), + 101: uint16(58007), + 102: uint16(58008), + 103: uint16(58009), + 104: uint16(58010), + 105: uint16(58011), + 106: uint16(58012), + 107: uint16(58013), + 108: uint16(58014), + 109: uint16(58015), + 110: uint16(58016), + 111: uint16(58017), + 112: uint16(58018), + 113: uint16(58019), + 114: uint16(58020), + 115: uint16(58021), + 116: uint16(58022), + 117: uint16(58023), + 118: uint16(58024), + 119: uint16(58025), + 120: uint16(58026), + 121: uint16(58027), + 122: uint16(58028), + 123: uint16(58029), + 124: uint16(58030), + 125: uint16(58031), + 126: uint16(58032), + 127: uint16(58033), + 128: uint16(58034), + 129: uint16(58035), + 130: uint16(58036), + 131: uint16(58037), + 132: uint16(58038), + 133: uint16(58039), + 134: uint16(58040), + 135: uint16(58041), + 136: uint16(58042), + 137: uint16(58043), + 138: uint16(58044), + 139: uint16(58045), + 140: uint16(58046), + 141: uint16(58047), + 142: uint16(58048), + 143: uint16(58049), + 144: uint16(58050), + 145: uint16(58051), + 146: uint16(58052), + 147: uint16(58053), + 148: uint16(58054), + 149: uint16(58055), + 150: uint16(58056), + 151: uint16(58057), + 152: uint16(58058), + 153: uint16(58059), + 154: uint16(58060), + 155: uint16(58061), + 156: uint16(58062), + 157: uint16(58063), + 158: uint16(58064), + 159: uint16(58065), + 160: uint16(58066), + 161: uint16(58067), + 162: uint16(58068), + 163: uint16(58069), + 164: uint16(58070), + 165: uint16(58071), + 166: uint16(58072), + 167: uint16(58073), + 168: uint16(58074), + 169: uint16(58075), + 170: uint16(58076), + 171: uint16(58077), + 172: uint16(58078), + 173: uint16(58079), + 174: uint16(58080), + 175: uint16(58081), + 176: uint16(58082), + 177: uint16(58083), + 178: uint16(58084), + 179: uint16(58085), + 180: uint16(58086), + 181: uint16(58087), + 182: uint16(58088), + 183: uint16(58089), + 184: uint16(58090), + 185: uint16(58091), + 186: uint16(58092), + 187: uint16(58093), + 188: uint16(58094), + 189: uint16(58095), + }, + 121: { + 0: uint16(40355), + 1: uint16(40356), + 2: uint16(40357), + 3: uint16(40358), + 4: uint16(40359), + 5: uint16(40360), + 6: uint16(40361), + 7: uint16(40362), + 8: uint16(40363), + 9: uint16(40364), + 10: uint16(40365), + 11: uint16(40366), + 12: uint16(40367), + 13: uint16(40368), + 14: uint16(40369), + 15: uint16(40370), + 16: uint16(40371), + 17: uint16(40372), + 18: uint16(40373), + 19: uint16(40374), + 20: uint16(40375), + 21: uint16(40376), + 22: uint16(40377), + 23: uint16(40378), + 24: uint16(40379), + 25: uint16(40380), + 26: uint16(40381), + 27: uint16(40382), + 28: uint16(40383), + 29: uint16(40384), + 30: uint16(40385), + 31: uint16(40386), + 32: uint16(40387), + 33: uint16(40388), + 34: uint16(40389), + 35: uint16(40390), + 36: uint16(40391), + 37: uint16(40392), + 38: uint16(40393), + 39: uint16(40394), + 40: uint16(40395), + 41: uint16(40396), + 42: uint16(40397), + 43: uint16(40398), + 44: uint16(40399), + 45: uint16(40400), + 46: uint16(40401), + 47: uint16(40402), + 48: uint16(40403), + 49: uint16(40404), + 50: uint16(40405), + 51: uint16(40406), + 52: uint16(40407), + 53: uint16(40408), + 54: uint16(40409), + 55: uint16(40410), + 56: uint16(40411), + 57: uint16(40412), + 58: uint16(40413), + 59: uint16(40414), + 60: uint16(40415), + 61: uint16(40416), + 62: uint16(40417), + 63: uint16(40418), + 64: uint16(40419), + 65: uint16(40420), + 66: uint16(40421), + 67: uint16(40422), + 68: uint16(40423), + 69: uint16(40424), + 70: uint16(40425), + 71: uint16(40426), + 72: uint16(40427), + 73: uint16(40428), + 74: uint16(40429), + 75: uint16(40430), + 76: uint16(40431), + 77: uint16(40432), + 78: uint16(40433), + 79: uint16(40434), + 80: uint16(40435), + 81: uint16(40436), + 82: uint16(40437), + 83: uint16(40438), + 84: uint16(40439), + 85: uint16(40440), + 86: uint16(40441), + 87: uint16(40442), + 88: uint16(40443), + 89: uint16(40444), + 90: uint16(40445), + 91: uint16(40446), + 92: uint16(40447), + 93: uint16(40448), + 94: uint16(40449), + 95: uint16(40450), + 96: uint16(58096), + 97: uint16(58097), + 98: uint16(58098), + 99: uint16(58099), + 100: uint16(58100), + 101: uint16(58101), + 102: uint16(58102), + 103: uint16(58103), + 104: uint16(58104), + 105: uint16(58105), + 106: uint16(58106), + 107: uint16(58107), + 108: uint16(58108), + 109: uint16(58109), + 110: uint16(58110), + 111: uint16(58111), + 112: uint16(58112), + 113: uint16(58113), + 114: uint16(58114), + 115: uint16(58115), + 116: uint16(58116), + 117: uint16(58117), + 118: uint16(58118), + 119: uint16(58119), + 120: uint16(58120), + 121: uint16(58121), + 122: uint16(58122), + 123: uint16(58123), + 124: uint16(58124), + 125: uint16(58125), + 126: uint16(58126), + 127: uint16(58127), + 128: uint16(58128), + 129: uint16(58129), + 130: uint16(58130), + 131: uint16(58131), + 132: uint16(58132), + 133: uint16(58133), + 134: uint16(58134), + 135: uint16(58135), + 136: uint16(58136), + 137: uint16(58137), + 138: uint16(58138), + 139: uint16(58139), + 140: uint16(58140), + 141: uint16(58141), + 142: uint16(58142), + 143: uint16(58143), + 144: uint16(58144), + 145: uint16(58145), + 146: uint16(58146), + 147: uint16(58147), + 148: uint16(58148), + 149: uint16(58149), + 150: uint16(58150), + 151: uint16(58151), + 152: uint16(58152), + 153: uint16(58153), + 154: uint16(58154), + 155: uint16(58155), + 156: uint16(58156), + 157: uint16(58157), + 158: uint16(58158), + 159: uint16(58159), + 160: uint16(58160), + 161: uint16(58161), + 162: uint16(58162), + 163: uint16(58163), + 164: uint16(58164), + 165: uint16(58165), + 166: uint16(58166), + 167: uint16(58167), + 168: uint16(58168), + 169: uint16(58169), + 170: uint16(58170), + 171: uint16(58171), + 172: uint16(58172), + 173: uint16(58173), + 174: uint16(58174), + 175: uint16(58175), + 176: uint16(58176), + 177: uint16(58177), + 178: uint16(58178), + 179: uint16(58179), + 180: uint16(58180), + 181: uint16(58181), + 182: uint16(58182), + 183: uint16(58183), + 184: uint16(58184), + 185: uint16(58185), + 186: uint16(58186), + 187: uint16(58187), + 188: uint16(58188), + 189: uint16(58189), + }, + 122: { + 0: uint16(40451), + 1: uint16(40452), + 2: uint16(40453), + 3: uint16(40454), + 4: uint16(40455), + 5: uint16(40456), + 6: uint16(40457), + 7: uint16(40458), + 8: uint16(40459), + 9: uint16(40460), + 10: uint16(40461), + 11: uint16(40462), + 12: uint16(40463), + 13: uint16(40464), + 14: uint16(40465), + 15: uint16(40466), + 16: uint16(40467), + 17: uint16(40468), + 18: uint16(40469), + 19: uint16(40470), + 20: uint16(40471), + 21: uint16(40472), + 22: uint16(40473), + 23: uint16(40474), + 24: uint16(40475), + 25: uint16(40476), + 26: uint16(40477), + 27: uint16(40478), + 28: uint16(40484), + 29: uint16(40487), + 30: uint16(40494), + 31: uint16(40496), + 32: uint16(40500), + 33: uint16(40507), + 34: uint16(40508), + 35: uint16(40512), + 36: uint16(40525), + 37: uint16(40528), + 38: uint16(40530), + 39: uint16(40531), + 40: uint16(40532), + 41: uint16(40534), + 42: uint16(40537), + 43: uint16(40541), + 44: uint16(40543), + 45: uint16(40544), + 46: uint16(40545), + 47: uint16(40546), + 48: uint16(40549), + 49: uint16(40558), + 50: uint16(40559), + 51: uint16(40562), + 52: uint16(40564), + 53: uint16(40565), + 54: uint16(40566), + 55: uint16(40567), + 56: uint16(40568), + 57: uint16(40569), + 58: uint16(40570), + 59: uint16(40571), + 60: uint16(40572), + 61: uint16(40573), + 62: uint16(40576), + 63: uint16(40577), + 64: uint16(40579), + 65: uint16(40580), + 66: uint16(40581), + 67: uint16(40582), + 68: uint16(40585), + 69: uint16(40586), + 70: uint16(40588), + 71: uint16(40589), + 72: uint16(40590), + 73: uint16(40591), + 74: uint16(40592), + 75: uint16(40593), + 76: uint16(40596), + 77: uint16(40597), + 78: uint16(40598), + 79: uint16(40599), + 80: uint16(40600), + 81: uint16(40601), + 82: uint16(40602), + 83: uint16(40603), + 84: uint16(40604), + 85: uint16(40606), + 86: uint16(40608), + 87: uint16(40609), + 88: uint16(40610), + 89: uint16(40611), + 90: uint16(40612), + 91: uint16(40613), + 92: uint16(40615), + 93: uint16(40616), + 94: uint16(40617), + 95: uint16(40618), + 96: uint16(58190), + 97: uint16(58191), + 98: uint16(58192), + 99: uint16(58193), + 100: uint16(58194), + 101: uint16(58195), + 102: uint16(58196), + 103: uint16(58197), + 104: uint16(58198), + 105: uint16(58199), + 106: uint16(58200), + 107: uint16(58201), + 108: uint16(58202), + 109: uint16(58203), + 110: uint16(58204), + 111: uint16(58205), + 112: uint16(58206), + 113: uint16(58207), + 114: uint16(58208), + 115: uint16(58209), + 116: uint16(58210), + 117: uint16(58211), + 118: uint16(58212), + 119: uint16(58213), + 120: uint16(58214), + 121: uint16(58215), + 122: uint16(58216), + 123: uint16(58217), + 124: uint16(58218), + 125: uint16(58219), + 126: uint16(58220), + 127: uint16(58221), + 128: uint16(58222), + 129: uint16(58223), + 130: uint16(58224), + 131: uint16(58225), + 132: uint16(58226), + 133: uint16(58227), + 134: uint16(58228), + 135: uint16(58229), + 136: uint16(58230), + 137: uint16(58231), + 138: uint16(58232), + 139: uint16(58233), + 140: uint16(58234), + 141: uint16(58235), + 142: uint16(58236), + 143: uint16(58237), + 144: uint16(58238), + 145: uint16(58239), + 146: uint16(58240), + 147: uint16(58241), + 148: uint16(58242), + 149: uint16(58243), + 150: uint16(58244), + 151: uint16(58245), + 152: uint16(58246), + 153: uint16(58247), + 154: uint16(58248), + 155: uint16(58249), + 156: uint16(58250), + 157: uint16(58251), + 158: uint16(58252), + 159: uint16(58253), + 160: uint16(58254), + 161: uint16(58255), + 162: uint16(58256), + 163: uint16(58257), + 164: uint16(58258), + 165: uint16(58259), + 166: uint16(58260), + 167: uint16(58261), + 168: uint16(58262), + 169: uint16(58263), + 170: uint16(58264), + 171: uint16(58265), + 172: uint16(58266), + 173: uint16(58267), + 174: uint16(58268), + 175: uint16(58269), + 176: uint16(58270), + 177: uint16(58271), + 178: uint16(58272), + 179: uint16(58273), + 180: uint16(58274), + 181: uint16(58275), + 182: uint16(58276), + 183: uint16(58277), + 184: uint16(58278), + 185: uint16(58279), + 186: uint16(58280), + 187: uint16(58281), + 188: uint16(58282), + 189: uint16(58283), + }, + 123: { + 0: uint16(40619), + 1: uint16(40620), + 2: uint16(40621), + 3: uint16(40622), + 4: uint16(40623), + 5: uint16(40624), + 6: uint16(40625), + 7: uint16(40626), + 8: uint16(40627), + 9: uint16(40629), + 10: uint16(40630), + 11: uint16(40631), + 12: uint16(40633), + 13: uint16(40634), + 14: uint16(40636), + 15: uint16(40639), + 16: uint16(40640), + 17: uint16(40641), + 18: uint16(40642), + 19: uint16(40643), + 20: uint16(40645), + 21: uint16(40646), + 22: uint16(40647), + 23: uint16(40648), + 24: uint16(40650), + 25: uint16(40651), + 26: uint16(40652), + 27: uint16(40656), + 28: uint16(40658), + 29: uint16(40659), + 30: uint16(40661), + 31: uint16(40662), + 32: uint16(40663), + 33: uint16(40665), + 34: uint16(40666), + 35: uint16(40670), + 36: uint16(40673), + 37: uint16(40675), + 38: uint16(40676), + 39: uint16(40678), + 40: uint16(40680), + 41: uint16(40683), + 42: uint16(40684), + 43: uint16(40685), + 44: uint16(40686), + 45: uint16(40688), + 46: uint16(40689), + 47: uint16(40690), + 48: uint16(40691), + 49: uint16(40692), + 50: uint16(40693), + 51: uint16(40694), + 52: uint16(40695), + 53: uint16(40696), + 54: uint16(40698), + 55: uint16(40701), + 56: uint16(40703), + 57: uint16(40704), + 58: uint16(40705), + 59: uint16(40706), + 60: uint16(40707), + 61: uint16(40708), + 62: uint16(40709), + 63: uint16(40710), + 64: uint16(40711), + 65: uint16(40712), + 66: uint16(40713), + 67: uint16(40714), + 68: uint16(40716), + 69: uint16(40719), + 70: uint16(40721), + 71: uint16(40722), + 72: uint16(40724), + 73: uint16(40725), + 74: uint16(40726), + 75: uint16(40728), + 76: uint16(40730), + 77: uint16(40731), + 78: uint16(40732), + 79: uint16(40733), + 80: uint16(40734), + 81: uint16(40735), + 82: uint16(40737), + 83: uint16(40739), + 84: uint16(40740), + 85: uint16(40741), + 86: uint16(40742), + 87: uint16(40743), + 88: uint16(40744), + 89: uint16(40745), + 90: uint16(40746), + 91: uint16(40747), + 92: uint16(40749), + 93: uint16(40750), + 94: uint16(40752), + 95: uint16(40753), + 96: uint16(58284), + 97: uint16(58285), + 98: uint16(58286), + 99: uint16(58287), + 100: uint16(58288), + 101: uint16(58289), + 102: uint16(58290), + 103: uint16(58291), + 104: uint16(58292), + 105: uint16(58293), + 106: uint16(58294), + 107: uint16(58295), + 108: uint16(58296), + 109: uint16(58297), + 110: uint16(58298), + 111: uint16(58299), + 112: uint16(58300), + 113: uint16(58301), + 114: uint16(58302), + 115: uint16(58303), + 116: uint16(58304), + 117: uint16(58305), + 118: uint16(58306), + 119: uint16(58307), + 120: uint16(58308), + 121: uint16(58309), + 122: uint16(58310), + 123: uint16(58311), + 124: uint16(58312), + 125: uint16(58313), + 126: uint16(58314), + 127: uint16(58315), + 128: uint16(58316), + 129: uint16(58317), + 130: uint16(58318), + 131: uint16(58319), + 132: uint16(58320), + 133: uint16(58321), + 134: uint16(58322), + 135: uint16(58323), + 136: uint16(58324), + 137: uint16(58325), + 138: uint16(58326), + 139: uint16(58327), + 140: uint16(58328), + 141: uint16(58329), + 142: uint16(58330), + 143: uint16(58331), + 144: uint16(58332), + 145: uint16(58333), + 146: uint16(58334), + 147: uint16(58335), + 148: uint16(58336), + 149: uint16(58337), + 150: uint16(58338), + 151: uint16(58339), + 152: uint16(58340), + 153: uint16(58341), + 154: uint16(58342), + 155: uint16(58343), + 156: uint16(58344), + 157: uint16(58345), + 158: uint16(58346), + 159: uint16(58347), + 160: uint16(58348), + 161: uint16(58349), + 162: uint16(58350), + 163: uint16(58351), + 164: uint16(58352), + 165: uint16(58353), + 166: uint16(58354), + 167: uint16(58355), + 168: uint16(58356), + 169: uint16(58357), + 170: uint16(58358), + 171: uint16(58359), + 172: uint16(58360), + 173: uint16(58361), + 174: uint16(58362), + 175: uint16(58363), + 176: uint16(58364), + 177: uint16(58365), + 178: uint16(58366), + 179: uint16(58367), + 180: uint16(58368), + 181: uint16(58369), + 182: uint16(58370), + 183: uint16(58371), + 184: uint16(58372), + 185: uint16(58373), + 186: uint16(58374), + 187: uint16(58375), + 188: uint16(58376), + 189: uint16(58377), + }, + 124: { + 0: uint16(40754), + 1: uint16(40755), + 2: uint16(40756), + 3: uint16(40757), + 4: uint16(40758), + 5: uint16(40760), + 6: uint16(40762), + 7: uint16(40764), + 8: uint16(40767), + 9: uint16(40768), + 10: uint16(40769), + 11: uint16(40770), + 12: uint16(40771), + 13: uint16(40773), + 14: uint16(40774), + 15: uint16(40775), + 16: uint16(40776), + 17: uint16(40777), + 18: uint16(40778), + 19: uint16(40779), + 20: uint16(40780), + 21: uint16(40781), + 22: uint16(40782), + 23: uint16(40783), + 24: uint16(40786), + 25: uint16(40787), + 26: uint16(40788), + 27: uint16(40789), + 28: uint16(40790), + 29: uint16(40791), + 30: uint16(40792), + 31: uint16(40793), + 32: uint16(40794), + 33: uint16(40795), + 34: uint16(40796), + 35: uint16(40797), + 36: uint16(40798), + 37: uint16(40799), + 38: uint16(40800), + 39: uint16(40801), + 40: uint16(40802), + 41: uint16(40803), + 42: uint16(40804), + 43: uint16(40805), + 44: uint16(40806), + 45: uint16(40807), + 46: uint16(40808), + 47: uint16(40809), + 48: uint16(40810), + 49: uint16(40811), + 50: uint16(40812), + 51: uint16(40813), + 52: uint16(40814), + 53: uint16(40815), + 54: uint16(40816), + 55: uint16(40817), + 56: uint16(40818), + 57: uint16(40819), + 58: uint16(40820), + 59: uint16(40821), + 60: uint16(40822), + 61: uint16(40823), + 62: uint16(40824), + 63: uint16(40825), + 64: uint16(40826), + 65: uint16(40827), + 66: uint16(40828), + 67: uint16(40829), + 68: uint16(40830), + 69: uint16(40833), + 70: uint16(40834), + 71: uint16(40845), + 72: uint16(40846), + 73: uint16(40847), + 74: uint16(40848), + 75: uint16(40849), + 76: uint16(40850), + 77: uint16(40851), + 78: uint16(40852), + 79: uint16(40853), + 80: uint16(40854), + 81: uint16(40855), + 82: uint16(40856), + 83: uint16(40860), + 84: uint16(40861), + 85: uint16(40862), + 86: uint16(40865), + 87: uint16(40866), + 88: uint16(40867), + 89: uint16(40868), + 90: uint16(40869), + 91: uint16(63788), + 92: uint16(63865), + 93: uint16(63893), + 94: uint16(63975), + 95: uint16(63985), + 96: uint16(58378), + 97: uint16(58379), + 98: uint16(58380), + 99: uint16(58381), + 100: uint16(58382), + 101: uint16(58383), + 102: uint16(58384), + 103: uint16(58385), + 104: uint16(58386), + 105: uint16(58387), + 106: uint16(58388), + 107: uint16(58389), + 108: uint16(58390), + 109: uint16(58391), + 110: uint16(58392), + 111: uint16(58393), + 112: uint16(58394), + 113: uint16(58395), + 114: uint16(58396), + 115: uint16(58397), + 116: uint16(58398), + 117: uint16(58399), + 118: uint16(58400), + 119: uint16(58401), + 120: uint16(58402), + 121: uint16(58403), + 122: uint16(58404), + 123: uint16(58405), + 124: uint16(58406), + 125: uint16(58407), + 126: uint16(58408), + 127: uint16(58409), + 128: uint16(58410), + 129: uint16(58411), + 130: uint16(58412), + 131: uint16(58413), + 132: uint16(58414), + 133: uint16(58415), + 134: uint16(58416), + 135: uint16(58417), + 136: uint16(58418), + 137: uint16(58419), + 138: uint16(58420), + 139: uint16(58421), + 140: uint16(58422), + 141: uint16(58423), + 142: uint16(58424), + 143: uint16(58425), + 144: uint16(58426), + 145: uint16(58427), + 146: uint16(58428), + 147: uint16(58429), + 148: uint16(58430), + 149: uint16(58431), + 150: uint16(58432), + 151: uint16(58433), + 152: uint16(58434), + 153: uint16(58435), + 154: uint16(58436), + 155: uint16(58437), + 156: uint16(58438), + 157: uint16(58439), + 158: uint16(58440), + 159: uint16(58441), + 160: uint16(58442), + 161: uint16(58443), + 162: uint16(58444), + 163: uint16(58445), + 164: uint16(58446), + 165: uint16(58447), + 166: uint16(58448), + 167: uint16(58449), + 168: uint16(58450), + 169: uint16(58451), + 170: uint16(58452), + 171: uint16(58453), + 172: uint16(58454), + 173: uint16(58455), + 174: uint16(58456), + 175: uint16(58457), + 176: uint16(58458), + 177: uint16(58459), + 178: uint16(58460), + 179: uint16(58461), + 180: uint16(58462), + 181: uint16(58463), + 182: uint16(58464), + 183: uint16(58465), + 184: uint16(58466), + 185: uint16(58467), + 186: uint16(58468), + 187: uint16(58469), + 188: uint16(58470), + 189: uint16(58471), + }, + 125: { + 0: uint16(64012), + 1: uint16(64013), + 2: uint16(64014), + 3: uint16(64015), + 4: uint16(64017), + 5: uint16(64019), + 6: uint16(64020), + 7: uint16(64024), + 8: uint16(64031), + 9: uint16(64032), + 10: uint16(64033), + 11: uint16(64035), + 12: uint16(64036), + 13: uint16(64039), + 14: uint16(64040), + 15: uint16(64041), + 16: uint16(11905), + 17: uint16(59414), + 18: uint16(59415), + 19: uint16(59416), + 20: uint16(11908), + 21: uint16(13427), + 22: uint16(13383), + 23: uint16(11912), + 24: uint16(11915), + 25: uint16(59422), + 26: uint16(13726), + 27: uint16(13850), + 28: uint16(13838), + 29: uint16(11916), + 30: uint16(11927), + 31: uint16(14702), + 32: uint16(14616), + 33: uint16(59430), + 34: uint16(14799), + 35: uint16(14815), + 36: uint16(14963), + 37: uint16(14800), + 38: uint16(59435), + 39: uint16(59436), + 40: uint16(15182), + 41: uint16(15470), + 42: uint16(15584), + 43: uint16(11943), + 44: uint16(59441), + 45: uint16(59442), + 46: uint16(11946), + 47: uint16(16470), + 48: uint16(16735), + 49: uint16(11950), + 50: uint16(17207), + 51: uint16(11955), + 52: uint16(11958), + 53: uint16(11959), + 54: uint16(59451), + 55: uint16(17329), + 56: uint16(17324), + 57: uint16(11963), + 58: uint16(17373), + 59: uint16(17622), + 60: uint16(18017), + 61: uint16(17996), + 62: uint16(59459), + 63: uint16(18211), + 64: uint16(18217), + 65: uint16(18300), + 66: uint16(18317), + 67: uint16(11978), + 68: uint16(18759), + 69: uint16(18810), + 70: uint16(18813), + 71: uint16(18818), + 72: uint16(18819), + 73: uint16(18821), + 74: uint16(18822), + 75: uint16(18847), + 76: uint16(18843), + 77: uint16(18871), + 78: uint16(18870), + 79: uint16(59476), + 80: uint16(59477), + 81: uint16(19619), + 82: uint16(19615), + 83: uint16(19616), + 84: uint16(19617), + 85: uint16(19575), + 86: uint16(19618), + 87: uint16(19731), + 88: uint16(19732), + 89: uint16(19733), + 90: uint16(19734), + 91: uint16(19735), + 92: uint16(19736), + 93: uint16(19737), + 94: uint16(19886), + 95: uint16(59492), + 96: uint16(58472), + 97: uint16(58473), + 98: uint16(58474), + 99: uint16(58475), + 100: uint16(58476), + 101: uint16(58477), + 102: uint16(58478), + 103: uint16(58479), + 104: uint16(58480), + 105: uint16(58481), + 106: uint16(58482), + 107: uint16(58483), + 108: uint16(58484), + 109: uint16(58485), + 110: uint16(58486), + 111: uint16(58487), + 112: uint16(58488), + 113: uint16(58489), + 114: uint16(58490), + 115: uint16(58491), + 116: uint16(58492), + 117: uint16(58493), + 118: uint16(58494), + 119: uint16(58495), + 120: uint16(58496), + 121: uint16(58497), + 122: uint16(58498), + 123: uint16(58499), + 124: uint16(58500), + 125: uint16(58501), + 126: uint16(58502), + 127: uint16(58503), + 128: uint16(58504), + 129: uint16(58505), + 130: uint16(58506), + 131: uint16(58507), + 132: uint16(58508), + 133: uint16(58509), + 134: uint16(58510), + 135: uint16(58511), + 136: uint16(58512), + 137: uint16(58513), + 138: uint16(58514), + 139: uint16(58515), + 140: uint16(58516), + 141: uint16(58517), + 142: uint16(58518), + 143: uint16(58519), + 144: uint16(58520), + 145: uint16(58521), + 146: uint16(58522), + 147: uint16(58523), + 148: uint16(58524), + 149: uint16(58525), + 150: uint16(58526), + 151: uint16(58527), + 152: uint16(58528), + 153: uint16(58529), + 154: uint16(58530), + 155: uint16(58531), + 156: uint16(58532), + 157: uint16(58533), + 158: uint16(58534), + 159: uint16(58535), + 160: uint16(58536), + 161: uint16(58537), + 162: uint16(58538), + 163: uint16(58539), + 164: uint16(58540), + 165: uint16(58541), + 166: uint16(58542), + 167: uint16(58543), + 168: uint16(58544), + 169: uint16(58545), + 170: uint16(58546), + 171: uint16(58547), + 172: uint16(58548), + 173: uint16(58549), + 174: uint16(58550), + 175: uint16(58551), + 176: uint16(58552), + 177: uint16(58553), + 178: uint16(58554), + 179: uint16(58555), + 180: uint16(58556), + 181: uint16(58557), + 182: uint16(58558), + 183: uint16(58559), + 184: uint16(58560), + 185: uint16(58561), + 186: uint16(58562), + 187: uint16(58563), + 188: uint16(58564), + 189: uint16(58565), + }, +} + +var _big5 = [89][157]uint16{ + 0: { + 0: uint16(12288), + 1: uint16(65292), + 2: uint16(12289), + 3: uint16(12290), + 4: uint16(65294), + 5: uint16(8231), + 6: uint16(65307), + 7: uint16(65306), + 8: uint16(65311), + 9: uint16(65281), + 10: uint16(65072), + 11: uint16(8230), + 12: uint16(8229), + 13: uint16(65104), + 14: uint16(65105), + 15: uint16(65106), + 16: uint16(183), + 17: uint16(65108), + 18: uint16(65109), + 19: uint16(65110), + 20: uint16(65111), + 21: uint16(65372), + 22: uint16(8211), + 23: uint16(65073), + 24: uint16(8212), + 25: uint16(65075), + 26: uint16(9588), + 27: uint16(65076), + 28: uint16(65103), + 29: uint16(65288), + 30: uint16(65289), + 31: uint16(65077), + 32: uint16(65078), + 33: uint16(65371), + 34: uint16(65373), + 35: uint16(65079), + 36: uint16(65080), + 37: uint16(12308), + 38: uint16(12309), + 39: uint16(65081), + 40: uint16(65082), + 41: uint16(12304), + 42: uint16(12305), + 43: uint16(65083), + 44: uint16(65084), + 45: uint16(12298), + 46: uint16(12299), + 47: uint16(65085), + 48: uint16(65086), + 49: uint16(12296), + 50: uint16(12297), + 51: uint16(65087), + 52: uint16(65088), + 53: uint16(12300), + 54: uint16(12301), + 55: uint16(65089), + 56: uint16(65090), + 57: uint16(12302), + 58: uint16(12303), + 59: uint16(65091), + 60: uint16(65092), + 61: uint16(65113), + 62: uint16(65114), + 63: uint16(65115), + 64: uint16(65116), + 65: uint16(65117), + 66: uint16(65118), + 67: uint16(8216), + 68: uint16(8217), + 69: uint16(8220), + 70: uint16(8221), + 71: uint16(12317), + 72: uint16(12318), + 73: uint16(8245), + 74: uint16(8242), + 75: uint16(65283), + 76: uint16(65286), + 77: uint16(65290), + 78: uint16(8251), + 79: uint16(167), + 80: uint16(12291), + 81: uint16(9675), + 82: uint16(9679), + 83: uint16(9651), + 84: uint16(9650), + 85: uint16(9678), + 86: uint16(9734), + 87: uint16(9733), + 88: uint16(9671), + 89: uint16(9670), + 90: uint16(9633), + 91: uint16(9632), + 92: uint16(9661), + 93: uint16(9660), + 94: uint16(12963), + 95: uint16(8453), + 96: uint16(175), + 97: uint16(65507), + 98: uint16(65343), + 99: uint16(717), + 100: uint16(65097), + 101: uint16(65098), + 102: uint16(65101), + 103: uint16(65102), + 104: uint16(65099), + 105: uint16(65100), + 106: uint16(65119), + 107: uint16(65120), + 108: uint16(65121), + 109: uint16(65291), + 110: uint16(65293), + 111: uint16(215), + 112: uint16(247), + 113: uint16(177), + 114: uint16(8730), + 115: uint16(65308), + 116: uint16(65310), + 117: uint16(65309), + 118: uint16(8806), + 119: uint16(8807), + 120: uint16(8800), + 121: uint16(8734), + 122: uint16(8786), + 123: uint16(8801), + 124: uint16(65122), + 125: uint16(65123), + 126: uint16(65124), + 127: uint16(65125), + 128: uint16(65126), + 129: uint16(65374), + 130: uint16(8745), + 131: uint16(8746), + 132: uint16(8869), + 133: uint16(8736), + 134: uint16(8735), + 135: uint16(8895), + 136: uint16(13266), + 137: uint16(13265), + 138: uint16(8747), + 139: uint16(8750), + 140: uint16(8757), + 141: uint16(8756), + 142: uint16(9792), + 143: uint16(9794), + 144: uint16(8853), + 145: uint16(8857), + 146: uint16(8593), + 147: uint16(8595), + 148: uint16(8592), + 149: uint16(8594), + 150: uint16(8598), + 151: uint16(8599), + 152: uint16(8601), + 153: uint16(8600), + 154: uint16(8741), + 155: uint16(8739), + 156: uint16(65295), + }, + 1: { + 0: uint16(65340), + 1: uint16(8725), + 2: uint16(65128), + 3: uint16(65284), + 4: uint16(65509), + 5: uint16(12306), + 6: uint16(65504), + 7: uint16(65505), + 8: uint16(65285), + 9: uint16(65312), + 10: uint16(8451), + 11: uint16(8457), + 12: uint16(65129), + 13: uint16(65130), + 14: uint16(65131), + 15: uint16(13269), + 16: uint16(13212), + 17: uint16(13213), + 18: uint16(13214), + 19: uint16(13262), + 20: uint16(13217), + 21: uint16(13198), + 22: uint16(13199), + 23: uint16(13252), + 24: uint16(176), + 25: uint16(20825), + 26: uint16(20827), + 27: uint16(20830), + 28: uint16(20829), + 29: uint16(20833), + 30: uint16(20835), + 31: uint16(21991), + 32: uint16(29929), + 33: uint16(31950), + 34: uint16(9601), + 35: uint16(9602), + 36: uint16(9603), + 37: uint16(9604), + 38: uint16(9605), + 39: uint16(9606), + 40: uint16(9607), + 41: uint16(9608), + 42: uint16(9615), + 43: uint16(9614), + 44: uint16(9613), + 45: uint16(9612), + 46: uint16(9611), + 47: uint16(9610), + 48: uint16(9609), + 49: uint16(9532), + 50: uint16(9524), + 51: uint16(9516), + 52: uint16(9508), + 53: uint16(9500), + 54: uint16(9620), + 55: uint16(9472), + 56: uint16(9474), + 57: uint16(9621), + 58: uint16(9484), + 59: uint16(9488), + 60: uint16(9492), + 61: uint16(9496), + 62: uint16(9581), + 63: uint16(9582), + 64: uint16(9584), + 65: uint16(9583), + 66: uint16(9552), + 67: uint16(9566), + 68: uint16(9578), + 69: uint16(9569), + 70: uint16(9698), + 71: uint16(9699), + 72: uint16(9701), + 73: uint16(9700), + 74: uint16(9585), + 75: uint16(9586), + 76: uint16(9587), + 77: uint16(65296), + 78: uint16(65297), + 79: uint16(65298), + 80: uint16(65299), + 81: uint16(65300), + 82: uint16(65301), + 83: uint16(65302), + 84: uint16(65303), + 85: uint16(65304), + 86: uint16(65305), + 87: uint16(8544), + 88: uint16(8545), + 89: uint16(8546), + 90: uint16(8547), + 91: uint16(8548), + 92: uint16(8549), + 93: uint16(8550), + 94: uint16(8551), + 95: uint16(8552), + 96: uint16(8553), + 97: uint16(12321), + 98: uint16(12322), + 99: uint16(12323), + 100: uint16(12324), + 101: uint16(12325), + 102: uint16(12326), + 103: uint16(12327), + 104: uint16(12328), + 105: uint16(12329), + 106: uint16(21313), + 107: uint16(21316), + 108: uint16(21317), + 109: uint16(65313), + 110: uint16(65314), + 111: uint16(65315), + 112: uint16(65316), + 113: uint16(65317), + 114: uint16(65318), + 115: uint16(65319), + 116: uint16(65320), + 117: uint16(65321), + 118: uint16(65322), + 119: uint16(65323), + 120: uint16(65324), + 121: uint16(65325), + 122: uint16(65326), + 123: uint16(65327), + 124: uint16(65328), + 125: uint16(65329), + 126: uint16(65330), + 127: uint16(65331), + 128: uint16(65332), + 129: uint16(65333), + 130: uint16(65334), + 131: uint16(65335), + 132: uint16(65336), + 133: uint16(65337), + 134: uint16(65338), + 135: uint16(65345), + 136: uint16(65346), + 137: uint16(65347), + 138: uint16(65348), + 139: uint16(65349), + 140: uint16(65350), + 141: uint16(65351), + 142: uint16(65352), + 143: uint16(65353), + 144: uint16(65354), + 145: uint16(65355), + 146: uint16(65356), + 147: uint16(65357), + 148: uint16(65358), + 149: uint16(65359), + 150: uint16(65360), + 151: uint16(65361), + 152: uint16(65362), + 153: uint16(65363), + 154: uint16(65364), + 155: uint16(65365), + 156: uint16(65366), + }, + 2: { + 0: uint16(65367), + 1: uint16(65368), + 2: uint16(65369), + 3: uint16(65370), + 4: uint16(913), + 5: uint16(914), + 6: uint16(915), + 7: uint16(916), + 8: uint16(917), + 9: uint16(918), + 10: uint16(919), + 11: uint16(920), + 12: uint16(921), + 13: uint16(922), + 14: uint16(923), + 15: uint16(924), + 16: uint16(925), + 17: uint16(926), + 18: uint16(927), + 19: uint16(928), + 20: uint16(929), + 21: uint16(931), + 22: uint16(932), + 23: uint16(933), + 24: uint16(934), + 25: uint16(935), + 26: uint16(936), + 27: uint16(937), + 28: uint16(945), + 29: uint16(946), + 30: uint16(947), + 31: uint16(948), + 32: uint16(949), + 33: uint16(950), + 34: uint16(951), + 35: uint16(952), + 36: uint16(953), + 37: uint16(954), + 38: uint16(955), + 39: uint16(956), + 40: uint16(957), + 41: uint16(958), + 42: uint16(959), + 43: uint16(960), + 44: uint16(961), + 45: uint16(963), + 46: uint16(964), + 47: uint16(965), + 48: uint16(966), + 49: uint16(967), + 50: uint16(968), + 51: uint16(969), + 52: uint16(12549), + 53: uint16(12550), + 54: uint16(12551), + 55: uint16(12552), + 56: uint16(12553), + 57: uint16(12554), + 58: uint16(12555), + 59: uint16(12556), + 60: uint16(12557), + 61: uint16(12558), + 62: uint16(12559), + 63: uint16(12560), + 64: uint16(12561), + 65: uint16(12562), + 66: uint16(12563), + 67: uint16(12564), + 68: uint16(12565), + 69: uint16(12566), + 70: uint16(12567), + 71: uint16(12568), + 72: uint16(12569), + 73: uint16(12570), + 74: uint16(12571), + 75: uint16(12572), + 76: uint16(12573), + 77: uint16(12574), + 78: uint16(12575), + 79: uint16(12576), + 80: uint16(12577), + 81: uint16(12578), + 82: uint16(12579), + 83: uint16(12580), + 84: uint16(12581), + 85: uint16(12582), + 86: uint16(12583), + 87: uint16(12584), + 88: uint16(12585), + 89: uint16(729), + 90: uint16(713), + 91: uint16(714), + 92: uint16(711), + 93: uint16(715), + 94: uint16(9216), + 95: uint16(9217), + 96: uint16(9218), + 97: uint16(9219), + 98: uint16(9220), + 99: uint16(9221), + 100: uint16(9222), + 101: uint16(9223), + 102: uint16(9224), + 103: uint16(9225), + 104: uint16(9226), + 105: uint16(9227), + 106: uint16(9228), + 107: uint16(9229), + 108: uint16(9230), + 109: uint16(9231), + 110: uint16(9232), + 111: uint16(9233), + 112: uint16(9234), + 113: uint16(9235), + 114: uint16(9236), + 115: uint16(9237), + 116: uint16(9238), + 117: uint16(9239), + 118: uint16(9240), + 119: uint16(9241), + 120: uint16(9242), + 121: uint16(9243), + 122: uint16(9244), + 123: uint16(9245), + 124: uint16(9246), + 125: uint16(9247), + 126: uint16(9249), + 127: uint16(8364), + }, + 3: { + 0: uint16(19968), + 1: uint16(20057), + 2: uint16(19969), + 3: uint16(19971), + 4: uint16(20035), + 5: uint16(20061), + 6: uint16(20102), + 7: uint16(20108), + 8: uint16(20154), + 9: uint16(20799), + 10: uint16(20837), + 11: uint16(20843), + 12: uint16(20960), + 13: uint16(20992), + 14: uint16(20993), + 15: uint16(21147), + 16: uint16(21269), + 17: uint16(21313), + 18: uint16(21340), + 19: uint16(21448), + 20: uint16(19977), + 21: uint16(19979), + 22: uint16(19976), + 23: uint16(19978), + 24: uint16(20011), + 25: uint16(20024), + 26: uint16(20961), + 27: uint16(20037), + 28: uint16(20040), + 29: uint16(20063), + 30: uint16(20062), + 31: uint16(20110), + 32: uint16(20129), + 33: uint16(20800), + 34: uint16(20995), + 35: uint16(21242), + 36: uint16(21315), + 37: uint16(21449), + 38: uint16(21475), + 39: uint16(22303), + 40: uint16(22763), + 41: uint16(22805), + 42: uint16(22823), + 43: uint16(22899), + 44: uint16(23376), + 45: uint16(23377), + 46: uint16(23379), + 47: uint16(23544), + 48: uint16(23567), + 49: uint16(23586), + 50: uint16(23608), + 51: uint16(23665), + 52: uint16(24029), + 53: uint16(24037), + 54: uint16(24049), + 55: uint16(24050), + 56: uint16(24051), + 57: uint16(24062), + 58: uint16(24178), + 59: uint16(24318), + 60: uint16(24331), + 61: uint16(24339), + 62: uint16(25165), + 63: uint16(19985), + 64: uint16(19984), + 65: uint16(19981), + 66: uint16(20013), + 67: uint16(20016), + 68: uint16(20025), + 69: uint16(20043), + 70: uint16(23609), + 71: uint16(20104), + 72: uint16(20113), + 73: uint16(20117), + 74: uint16(20114), + 75: uint16(20116), + 76: uint16(20130), + 77: uint16(20161), + 78: uint16(20160), + 79: uint16(20163), + 80: uint16(20166), + 81: uint16(20167), + 82: uint16(20173), + 83: uint16(20170), + 84: uint16(20171), + 85: uint16(20164), + 86: uint16(20803), + 87: uint16(20801), + 88: uint16(20839), + 89: uint16(20845), + 90: uint16(20846), + 91: uint16(20844), + 92: uint16(20887), + 93: uint16(20982), + 94: uint16(20998), + 95: uint16(20999), + 96: uint16(21000), + 97: uint16(21243), + 98: uint16(21246), + 99: uint16(21247), + 100: uint16(21270), + 101: uint16(21305), + 102: uint16(21320), + 103: uint16(21319), + 104: uint16(21317), + 105: uint16(21342), + 106: uint16(21380), + 107: uint16(21451), + 108: uint16(21450), + 109: uint16(21453), + 110: uint16(22764), + 111: uint16(22825), + 112: uint16(22827), + 113: uint16(22826), + 114: uint16(22829), + 115: uint16(23380), + 116: uint16(23569), + 117: uint16(23588), + 118: uint16(23610), + 119: uint16(23663), + 120: uint16(24052), + 121: uint16(24187), + 122: uint16(24319), + 123: uint16(24340), + 124: uint16(24341), + 125: uint16(24515), + 126: uint16(25096), + 127: uint16(25142), + 128: uint16(25163), + 129: uint16(25166), + 130: uint16(25903), + 131: uint16(25991), + 132: uint16(26007), + 133: uint16(26020), + 134: uint16(26041), + 135: uint16(26085), + 136: uint16(26352), + 137: uint16(26376), + 138: uint16(26408), + 139: uint16(27424), + 140: uint16(27490), + 141: uint16(27513), + 142: uint16(27595), + 143: uint16(27604), + 144: uint16(27611), + 145: uint16(27663), + 146: uint16(27700), + 147: uint16(28779), + 148: uint16(29226), + 149: uint16(29238), + 150: uint16(29243), + 151: uint16(29255), + 152: uint16(29273), + 153: uint16(29275), + 154: uint16(29356), + 155: uint16(29579), + 156: uint16(19993), + }, + 4: { + 0: uint16(19990), + 1: uint16(19989), + 2: uint16(19988), + 3: uint16(19992), + 4: uint16(20027), + 5: uint16(20045), + 6: uint16(20047), + 7: uint16(20046), + 8: uint16(20197), + 9: uint16(20184), + 10: uint16(20180), + 11: uint16(20181), + 12: uint16(20182), + 13: uint16(20183), + 14: uint16(20195), + 15: uint16(20196), + 16: uint16(20185), + 17: uint16(20190), + 18: uint16(20805), + 19: uint16(20804), + 20: uint16(20873), + 21: uint16(20874), + 22: uint16(20908), + 23: uint16(20985), + 24: uint16(20986), + 25: uint16(20984), + 26: uint16(21002), + 27: uint16(21152), + 28: uint16(21151), + 29: uint16(21253), + 30: uint16(21254), + 31: uint16(21271), + 32: uint16(21277), + 33: uint16(20191), + 34: uint16(21322), + 35: uint16(21321), + 36: uint16(21345), + 37: uint16(21344), + 38: uint16(21359), + 39: uint16(21358), + 40: uint16(21435), + 41: uint16(21487), + 42: uint16(21476), + 43: uint16(21491), + 44: uint16(21484), + 45: uint16(21486), + 46: uint16(21481), + 47: uint16(21480), + 48: uint16(21500), + 49: uint16(21496), + 50: uint16(21493), + 51: uint16(21483), + 52: uint16(21478), + 53: uint16(21482), + 54: uint16(21490), + 55: uint16(21489), + 56: uint16(21488), + 57: uint16(21477), + 58: uint16(21485), + 59: uint16(21499), + 60: uint16(22235), + 61: uint16(22234), + 62: uint16(22806), + 63: uint16(22830), + 64: uint16(22833), + 65: uint16(22900), + 66: uint16(22902), + 67: uint16(23381), + 68: uint16(23427), + 69: uint16(23612), + 70: uint16(24040), + 71: uint16(24039), + 72: uint16(24038), + 73: uint16(24066), + 74: uint16(24067), + 75: uint16(24179), + 76: uint16(24188), + 77: uint16(24321), + 78: uint16(24344), + 79: uint16(24343), + 80: uint16(24517), + 81: uint16(25098), + 82: uint16(25171), + 83: uint16(25172), + 84: uint16(25170), + 85: uint16(25169), + 86: uint16(26021), + 87: uint16(26086), + 88: uint16(26414), + 89: uint16(26412), + 90: uint16(26410), + 91: uint16(26411), + 92: uint16(26413), + 93: uint16(27491), + 94: uint16(27597), + 95: uint16(27665), + 96: uint16(27664), + 97: uint16(27704), + 98: uint16(27713), + 99: uint16(27712), + 100: uint16(27710), + 101: uint16(29359), + 102: uint16(29572), + 103: uint16(29577), + 104: uint16(29916), + 105: uint16(29926), + 106: uint16(29976), + 107: uint16(29983), + 108: uint16(29992), + 109: uint16(29993), + 110: uint16(30000), + 111: uint16(30001), + 112: uint16(30002), + 113: uint16(30003), + 114: uint16(30091), + 115: uint16(30333), + 116: uint16(30382), + 117: uint16(30399), + 118: uint16(30446), + 119: uint16(30683), + 120: uint16(30690), + 121: uint16(30707), + 122: uint16(31034), + 123: uint16(31166), + 124: uint16(31348), + 125: uint16(31435), + 126: uint16(19998), + 127: uint16(19999), + 128: uint16(20050), + 129: uint16(20051), + 130: uint16(20073), + 131: uint16(20121), + 132: uint16(20132), + 133: uint16(20134), + 134: uint16(20133), + 135: uint16(20223), + 136: uint16(20233), + 137: uint16(20249), + 138: uint16(20234), + 139: uint16(20245), + 140: uint16(20237), + 141: uint16(20240), + 142: uint16(20241), + 143: uint16(20239), + 144: uint16(20210), + 145: uint16(20214), + 146: uint16(20219), + 147: uint16(20208), + 148: uint16(20211), + 149: uint16(20221), + 150: uint16(20225), + 151: uint16(20235), + 152: uint16(20809), + 153: uint16(20807), + 154: uint16(20806), + 155: uint16(20808), + 156: uint16(20840), + }, + 5: { + 0: uint16(20849), + 1: uint16(20877), + 2: uint16(20912), + 3: uint16(21015), + 4: uint16(21009), + 5: uint16(21010), + 6: uint16(21006), + 7: uint16(21014), + 8: uint16(21155), + 9: uint16(21256), + 10: uint16(21281), + 11: uint16(21280), + 12: uint16(21360), + 13: uint16(21361), + 14: uint16(21513), + 15: uint16(21519), + 16: uint16(21516), + 17: uint16(21514), + 18: uint16(21520), + 19: uint16(21505), + 20: uint16(21515), + 21: uint16(21508), + 22: uint16(21521), + 23: uint16(21517), + 24: uint16(21512), + 25: uint16(21507), + 26: uint16(21518), + 27: uint16(21510), + 28: uint16(21522), + 29: uint16(22240), + 30: uint16(22238), + 31: uint16(22237), + 32: uint16(22323), + 33: uint16(22320), + 34: uint16(22312), + 35: uint16(22317), + 36: uint16(22316), + 37: uint16(22319), + 38: uint16(22313), + 39: uint16(22809), + 40: uint16(22810), + 41: uint16(22839), + 42: uint16(22840), + 43: uint16(22916), + 44: uint16(22904), + 45: uint16(22915), + 46: uint16(22909), + 47: uint16(22905), + 48: uint16(22914), + 49: uint16(22913), + 50: uint16(23383), + 51: uint16(23384), + 52: uint16(23431), + 53: uint16(23432), + 54: uint16(23429), + 55: uint16(23433), + 56: uint16(23546), + 57: uint16(23574), + 58: uint16(23673), + 59: uint16(24030), + 60: uint16(24070), + 61: uint16(24182), + 62: uint16(24180), + 63: uint16(24335), + 64: uint16(24347), + 65: uint16(24537), + 66: uint16(24534), + 67: uint16(25102), + 68: uint16(25100), + 69: uint16(25101), + 70: uint16(25104), + 71: uint16(25187), + 72: uint16(25179), + 73: uint16(25176), + 74: uint16(25910), + 75: uint16(26089), + 76: uint16(26088), + 77: uint16(26092), + 78: uint16(26093), + 79: uint16(26354), + 80: uint16(26355), + 81: uint16(26377), + 82: uint16(26429), + 83: uint16(26420), + 84: uint16(26417), + 85: uint16(26421), + 86: uint16(27425), + 87: uint16(27492), + 88: uint16(27515), + 89: uint16(27670), + 90: uint16(27741), + 91: uint16(27735), + 92: uint16(27737), + 93: uint16(27743), + 94: uint16(27744), + 95: uint16(27728), + 96: uint16(27733), + 97: uint16(27745), + 98: uint16(27739), + 99: uint16(27725), + 100: uint16(27726), + 101: uint16(28784), + 102: uint16(29279), + 103: uint16(29277), + 104: uint16(30334), + 105: uint16(31481), + 106: uint16(31859), + 107: uint16(31992), + 108: uint16(32566), + 109: uint16(32650), + 110: uint16(32701), + 111: uint16(32769), + 112: uint16(32771), + 113: uint16(32780), + 114: uint16(32786), + 115: uint16(32819), + 116: uint16(32895), + 117: uint16(32905), + 118: uint16(32907), + 119: uint16(32908), + 120: uint16(33251), + 121: uint16(33258), + 122: uint16(33267), + 123: uint16(33276), + 124: uint16(33292), + 125: uint16(33307), + 126: uint16(33311), + 127: uint16(33390), + 128: uint16(33394), + 129: uint16(33406), + 130: uint16(34411), + 131: uint16(34880), + 132: uint16(34892), + 133: uint16(34915), + 134: uint16(35199), + 135: uint16(38433), + 136: uint16(20018), + 137: uint16(20136), + 138: uint16(20301), + 139: uint16(20303), + 140: uint16(20295), + 141: uint16(20311), + 142: uint16(20318), + 143: uint16(20276), + 144: uint16(20315), + 145: uint16(20309), + 146: uint16(20272), + 147: uint16(20304), + 148: uint16(20305), + 149: uint16(20285), + 150: uint16(20282), + 151: uint16(20280), + 152: uint16(20291), + 153: uint16(20308), + 154: uint16(20284), + 155: uint16(20294), + 156: uint16(20323), + }, + 6: { + 0: uint16(20316), + 1: uint16(20320), + 2: uint16(20271), + 3: uint16(20302), + 4: uint16(20278), + 5: uint16(20313), + 6: uint16(20317), + 7: uint16(20296), + 8: uint16(20314), + 9: uint16(20812), + 10: uint16(20811), + 11: uint16(20813), + 12: uint16(20853), + 13: uint16(20918), + 14: uint16(20919), + 15: uint16(21029), + 16: uint16(21028), + 17: uint16(21033), + 18: uint16(21034), + 19: uint16(21032), + 20: uint16(21163), + 21: uint16(21161), + 22: uint16(21162), + 23: uint16(21164), + 24: uint16(21283), + 25: uint16(21363), + 26: uint16(21365), + 27: uint16(21533), + 28: uint16(21549), + 29: uint16(21534), + 30: uint16(21566), + 31: uint16(21542), + 32: uint16(21582), + 33: uint16(21543), + 34: uint16(21574), + 35: uint16(21571), + 36: uint16(21555), + 37: uint16(21576), + 38: uint16(21570), + 39: uint16(21531), + 40: uint16(21545), + 41: uint16(21578), + 42: uint16(21561), + 43: uint16(21563), + 44: uint16(21560), + 45: uint16(21550), + 46: uint16(21557), + 47: uint16(21558), + 48: uint16(21536), + 49: uint16(21564), + 50: uint16(21568), + 51: uint16(21553), + 52: uint16(21547), + 53: uint16(21535), + 54: uint16(21548), + 55: uint16(22250), + 56: uint16(22256), + 57: uint16(22244), + 58: uint16(22251), + 59: uint16(22346), + 60: uint16(22353), + 61: uint16(22336), + 62: uint16(22349), + 63: uint16(22343), + 64: uint16(22350), + 65: uint16(22334), + 66: uint16(22352), + 67: uint16(22351), + 68: uint16(22331), + 69: uint16(22767), + 70: uint16(22846), + 71: uint16(22941), + 72: uint16(22930), + 73: uint16(22952), + 74: uint16(22942), + 75: uint16(22947), + 76: uint16(22937), + 77: uint16(22934), + 78: uint16(22925), + 79: uint16(22948), + 80: uint16(22931), + 81: uint16(22922), + 82: uint16(22949), + 83: uint16(23389), + 84: uint16(23388), + 85: uint16(23386), + 86: uint16(23387), + 87: uint16(23436), + 88: uint16(23435), + 89: uint16(23439), + 90: uint16(23596), + 91: uint16(23616), + 92: uint16(23617), + 93: uint16(23615), + 94: uint16(23614), + 95: uint16(23696), + 96: uint16(23697), + 97: uint16(23700), + 98: uint16(23692), + 99: uint16(24043), + 100: uint16(24076), + 101: uint16(24207), + 102: uint16(24199), + 103: uint16(24202), + 104: uint16(24311), + 105: uint16(24324), + 106: uint16(24351), + 107: uint16(24420), + 108: uint16(24418), + 109: uint16(24439), + 110: uint16(24441), + 111: uint16(24536), + 112: uint16(24524), + 113: uint16(24535), + 114: uint16(24525), + 115: uint16(24561), + 116: uint16(24555), + 117: uint16(24568), + 118: uint16(24554), + 119: uint16(25106), + 120: uint16(25105), + 121: uint16(25220), + 122: uint16(25239), + 123: uint16(25238), + 124: uint16(25216), + 125: uint16(25206), + 126: uint16(25225), + 127: uint16(25197), + 128: uint16(25226), + 129: uint16(25212), + 130: uint16(25214), + 131: uint16(25209), + 132: uint16(25203), + 133: uint16(25234), + 134: uint16(25199), + 135: uint16(25240), + 136: uint16(25198), + 137: uint16(25237), + 138: uint16(25235), + 139: uint16(25233), + 140: uint16(25222), + 141: uint16(25913), + 142: uint16(25915), + 143: uint16(25912), + 144: uint16(26097), + 145: uint16(26356), + 146: uint16(26463), + 147: uint16(26446), + 148: uint16(26447), + 149: uint16(26448), + 150: uint16(26449), + 151: uint16(26460), + 152: uint16(26454), + 153: uint16(26462), + 154: uint16(26441), + 155: uint16(26438), + 156: uint16(26464), + }, + 7: { + 0: uint16(26451), + 1: uint16(26455), + 2: uint16(27493), + 3: uint16(27599), + 4: uint16(27714), + 5: uint16(27742), + 6: uint16(27801), + 7: uint16(27777), + 8: uint16(27784), + 9: uint16(27785), + 10: uint16(27781), + 11: uint16(27803), + 12: uint16(27754), + 13: uint16(27770), + 14: uint16(27792), + 15: uint16(27760), + 16: uint16(27788), + 17: uint16(27752), + 18: uint16(27798), + 19: uint16(27794), + 20: uint16(27773), + 21: uint16(27779), + 22: uint16(27762), + 23: uint16(27774), + 24: uint16(27764), + 25: uint16(27782), + 26: uint16(27766), + 27: uint16(27789), + 28: uint16(27796), + 29: uint16(27800), + 30: uint16(27778), + 31: uint16(28790), + 32: uint16(28796), + 33: uint16(28797), + 34: uint16(28792), + 35: uint16(29282), + 36: uint16(29281), + 37: uint16(29280), + 38: uint16(29380), + 39: uint16(29378), + 40: uint16(29590), + 41: uint16(29996), + 42: uint16(29995), + 43: uint16(30007), + 44: uint16(30008), + 45: uint16(30338), + 46: uint16(30447), + 47: uint16(30691), + 48: uint16(31169), + 49: uint16(31168), + 50: uint16(31167), + 51: uint16(31350), + 52: uint16(31995), + 53: uint16(32597), + 54: uint16(32918), + 55: uint16(32915), + 56: uint16(32925), + 57: uint16(32920), + 58: uint16(32923), + 59: uint16(32922), + 60: uint16(32946), + 61: uint16(33391), + 62: uint16(33426), + 63: uint16(33419), + 64: uint16(33421), + 65: uint16(35211), + 66: uint16(35282), + 67: uint16(35328), + 68: uint16(35895), + 69: uint16(35910), + 70: uint16(35925), + 71: uint16(35997), + 72: uint16(36196), + 73: uint16(36208), + 74: uint16(36275), + 75: uint16(36523), + 76: uint16(36554), + 77: uint16(36763), + 78: uint16(36784), + 79: uint16(36802), + 80: uint16(36806), + 81: uint16(36805), + 82: uint16(36804), + 83: uint16(24033), + 84: uint16(37009), + 85: uint16(37026), + 86: uint16(37034), + 87: uint16(37030), + 88: uint16(37027), + 89: uint16(37193), + 90: uint16(37318), + 91: uint16(37324), + 92: uint16(38450), + 93: uint16(38446), + 94: uint16(38449), + 95: uint16(38442), + 96: uint16(38444), + 97: uint16(20006), + 98: uint16(20054), + 99: uint16(20083), + 100: uint16(20107), + 101: uint16(20123), + 102: uint16(20126), + 103: uint16(20139), + 104: uint16(20140), + 105: uint16(20335), + 106: uint16(20381), + 107: uint16(20365), + 108: uint16(20339), + 109: uint16(20351), + 110: uint16(20332), + 111: uint16(20379), + 112: uint16(20363), + 113: uint16(20358), + 114: uint16(20355), + 115: uint16(20336), + 116: uint16(20341), + 117: uint16(20360), + 118: uint16(20329), + 119: uint16(20347), + 120: uint16(20374), + 121: uint16(20350), + 122: uint16(20367), + 123: uint16(20369), + 124: uint16(20346), + 125: uint16(20820), + 126: uint16(20818), + 127: uint16(20821), + 128: uint16(20841), + 129: uint16(20855), + 130: uint16(20854), + 131: uint16(20856), + 132: uint16(20925), + 133: uint16(20989), + 134: uint16(21051), + 135: uint16(21048), + 136: uint16(21047), + 137: uint16(21050), + 138: uint16(21040), + 139: uint16(21038), + 140: uint16(21046), + 141: uint16(21057), + 142: uint16(21182), + 143: uint16(21179), + 144: uint16(21330), + 145: uint16(21332), + 146: uint16(21331), + 147: uint16(21329), + 148: uint16(21350), + 149: uint16(21367), + 150: uint16(21368), + 151: uint16(21369), + 152: uint16(21462), + 153: uint16(21460), + 154: uint16(21463), + 155: uint16(21619), + 156: uint16(21621), + }, + 8: { + 0: uint16(21654), + 1: uint16(21624), + 2: uint16(21653), + 3: uint16(21632), + 4: uint16(21627), + 5: uint16(21623), + 6: uint16(21636), + 7: uint16(21650), + 8: uint16(21638), + 9: uint16(21628), + 10: uint16(21648), + 11: uint16(21617), + 12: uint16(21622), + 13: uint16(21644), + 14: uint16(21658), + 15: uint16(21602), + 16: uint16(21608), + 17: uint16(21643), + 18: uint16(21629), + 19: uint16(21646), + 20: uint16(22266), + 21: uint16(22403), + 22: uint16(22391), + 23: uint16(22378), + 24: uint16(22377), + 25: uint16(22369), + 26: uint16(22374), + 27: uint16(22372), + 28: uint16(22396), + 29: uint16(22812), + 30: uint16(22857), + 31: uint16(22855), + 32: uint16(22856), + 33: uint16(22852), + 34: uint16(22868), + 35: uint16(22974), + 36: uint16(22971), + 37: uint16(22996), + 38: uint16(22969), + 39: uint16(22958), + 40: uint16(22993), + 41: uint16(22982), + 42: uint16(22992), + 43: uint16(22989), + 44: uint16(22987), + 45: uint16(22995), + 46: uint16(22986), + 47: uint16(22959), + 48: uint16(22963), + 49: uint16(22994), + 50: uint16(22981), + 51: uint16(23391), + 52: uint16(23396), + 53: uint16(23395), + 54: uint16(23447), + 55: uint16(23450), + 56: uint16(23448), + 57: uint16(23452), + 58: uint16(23449), + 59: uint16(23451), + 60: uint16(23578), + 61: uint16(23624), + 62: uint16(23621), + 63: uint16(23622), + 64: uint16(23735), + 65: uint16(23713), + 66: uint16(23736), + 67: uint16(23721), + 68: uint16(23723), + 69: uint16(23729), + 70: uint16(23731), + 71: uint16(24088), + 72: uint16(24090), + 73: uint16(24086), + 74: uint16(24085), + 75: uint16(24091), + 76: uint16(24081), + 77: uint16(24184), + 78: uint16(24218), + 79: uint16(24215), + 80: uint16(24220), + 81: uint16(24213), + 82: uint16(24214), + 83: uint16(24310), + 84: uint16(24358), + 85: uint16(24359), + 86: uint16(24361), + 87: uint16(24448), + 88: uint16(24449), + 89: uint16(24447), + 90: uint16(24444), + 91: uint16(24541), + 92: uint16(24544), + 93: uint16(24573), + 94: uint16(24565), + 95: uint16(24575), + 96: uint16(24591), + 97: uint16(24596), + 98: uint16(24623), + 99: uint16(24629), + 100: uint16(24598), + 101: uint16(24618), + 102: uint16(24597), + 103: uint16(24609), + 104: uint16(24615), + 105: uint16(24617), + 106: uint16(24619), + 107: uint16(24603), + 108: uint16(25110), + 109: uint16(25109), + 110: uint16(25151), + 111: uint16(25150), + 112: uint16(25152), + 113: uint16(25215), + 114: uint16(25289), + 115: uint16(25292), + 116: uint16(25284), + 117: uint16(25279), + 118: uint16(25282), + 119: uint16(25273), + 120: uint16(25298), + 121: uint16(25307), + 122: uint16(25259), + 123: uint16(25299), + 124: uint16(25300), + 125: uint16(25291), + 126: uint16(25288), + 127: uint16(25256), + 128: uint16(25277), + 129: uint16(25276), + 130: uint16(25296), + 131: uint16(25305), + 132: uint16(25287), + 133: uint16(25293), + 134: uint16(25269), + 135: uint16(25306), + 136: uint16(25265), + 137: uint16(25304), + 138: uint16(25302), + 139: uint16(25303), + 140: uint16(25286), + 141: uint16(25260), + 142: uint16(25294), + 143: uint16(25918), + 144: uint16(26023), + 145: uint16(26044), + 146: uint16(26106), + 147: uint16(26132), + 148: uint16(26131), + 149: uint16(26124), + 150: uint16(26118), + 151: uint16(26114), + 152: uint16(26126), + 153: uint16(26112), + 154: uint16(26127), + 155: uint16(26133), + 156: uint16(26122), + }, + 9: { + 0: uint16(26119), + 1: uint16(26381), + 2: uint16(26379), + 3: uint16(26477), + 4: uint16(26507), + 5: uint16(26517), + 6: uint16(26481), + 7: uint16(26524), + 8: uint16(26483), + 9: uint16(26487), + 10: uint16(26503), + 11: uint16(26525), + 12: uint16(26519), + 13: uint16(26479), + 14: uint16(26480), + 15: uint16(26495), + 16: uint16(26505), + 17: uint16(26494), + 18: uint16(26512), + 19: uint16(26485), + 20: uint16(26522), + 21: uint16(26515), + 22: uint16(26492), + 23: uint16(26474), + 24: uint16(26482), + 25: uint16(27427), + 26: uint16(27494), + 27: uint16(27495), + 28: uint16(27519), + 29: uint16(27667), + 30: uint16(27675), + 31: uint16(27875), + 32: uint16(27880), + 33: uint16(27891), + 34: uint16(27825), + 35: uint16(27852), + 36: uint16(27877), + 37: uint16(27827), + 38: uint16(27837), + 39: uint16(27838), + 40: uint16(27836), + 41: uint16(27874), + 42: uint16(27819), + 43: uint16(27861), + 44: uint16(27859), + 45: uint16(27832), + 46: uint16(27844), + 47: uint16(27833), + 48: uint16(27841), + 49: uint16(27822), + 50: uint16(27863), + 51: uint16(27845), + 52: uint16(27889), + 53: uint16(27839), + 54: uint16(27835), + 55: uint16(27873), + 56: uint16(27867), + 57: uint16(27850), + 58: uint16(27820), + 59: uint16(27887), + 60: uint16(27868), + 61: uint16(27862), + 62: uint16(27872), + 63: uint16(28821), + 64: uint16(28814), + 65: uint16(28818), + 66: uint16(28810), + 67: uint16(28825), + 68: uint16(29228), + 69: uint16(29229), + 70: uint16(29240), + 71: uint16(29256), + 72: uint16(29287), + 73: uint16(29289), + 74: uint16(29376), + 75: uint16(29390), + 76: uint16(29401), + 77: uint16(29399), + 78: uint16(29392), + 79: uint16(29609), + 80: uint16(29608), + 81: uint16(29599), + 82: uint16(29611), + 83: uint16(29605), + 84: uint16(30013), + 85: uint16(30109), + 86: uint16(30105), + 87: uint16(30106), + 88: uint16(30340), + 89: uint16(30402), + 90: uint16(30450), + 91: uint16(30452), + 92: uint16(30693), + 93: uint16(30717), + 94: uint16(31038), + 95: uint16(31040), + 96: uint16(31041), + 97: uint16(31177), + 98: uint16(31176), + 99: uint16(31354), + 100: uint16(31353), + 101: uint16(31482), + 102: uint16(31998), + 103: uint16(32596), + 104: uint16(32652), + 105: uint16(32651), + 106: uint16(32773), + 107: uint16(32954), + 108: uint16(32933), + 109: uint16(32930), + 110: uint16(32945), + 111: uint16(32929), + 112: uint16(32939), + 113: uint16(32937), + 114: uint16(32948), + 115: uint16(32938), + 116: uint16(32943), + 117: uint16(33253), + 118: uint16(33278), + 119: uint16(33293), + 120: uint16(33459), + 121: uint16(33437), + 122: uint16(33433), + 123: uint16(33453), + 124: uint16(33469), + 125: uint16(33439), + 126: uint16(33465), + 127: uint16(33457), + 128: uint16(33452), + 129: uint16(33445), + 130: uint16(33455), + 131: uint16(33464), + 132: uint16(33443), + 133: uint16(33456), + 134: uint16(33470), + 135: uint16(33463), + 136: uint16(34382), + 137: uint16(34417), + 138: uint16(21021), + 139: uint16(34920), + 140: uint16(36555), + 141: uint16(36814), + 142: uint16(36820), + 143: uint16(36817), + 144: uint16(37045), + 145: uint16(37048), + 146: uint16(37041), + 147: uint16(37046), + 148: uint16(37319), + 149: uint16(37329), + 150: uint16(38263), + 151: uint16(38272), + 152: uint16(38428), + 153: uint16(38464), + 154: uint16(38463), + 155: uint16(38459), + 156: uint16(38468), + }, + 10: { + 0: uint16(38466), + 1: uint16(38585), + 2: uint16(38632), + 3: uint16(38738), + 4: uint16(38750), + 5: uint16(20127), + 6: uint16(20141), + 7: uint16(20142), + 8: uint16(20449), + 9: uint16(20405), + 10: uint16(20399), + 11: uint16(20415), + 12: uint16(20448), + 13: uint16(20433), + 14: uint16(20431), + 15: uint16(20445), + 16: uint16(20419), + 17: uint16(20406), + 18: uint16(20440), + 19: uint16(20447), + 20: uint16(20426), + 21: uint16(20439), + 22: uint16(20398), + 23: uint16(20432), + 24: uint16(20420), + 25: uint16(20418), + 26: uint16(20442), + 27: uint16(20430), + 28: uint16(20446), + 29: uint16(20407), + 30: uint16(20823), + 31: uint16(20882), + 32: uint16(20881), + 33: uint16(20896), + 34: uint16(21070), + 35: uint16(21059), + 36: uint16(21066), + 37: uint16(21069), + 38: uint16(21068), + 39: uint16(21067), + 40: uint16(21063), + 41: uint16(21191), + 42: uint16(21193), + 43: uint16(21187), + 44: uint16(21185), + 45: uint16(21261), + 46: uint16(21335), + 47: uint16(21371), + 48: uint16(21402), + 49: uint16(21467), + 50: uint16(21676), + 51: uint16(21696), + 52: uint16(21672), + 53: uint16(21710), + 54: uint16(21705), + 55: uint16(21688), + 56: uint16(21670), + 57: uint16(21683), + 58: uint16(21703), + 59: uint16(21698), + 60: uint16(21693), + 61: uint16(21674), + 62: uint16(21697), + 63: uint16(21700), + 64: uint16(21704), + 65: uint16(21679), + 66: uint16(21675), + 67: uint16(21681), + 68: uint16(21691), + 69: uint16(21673), + 70: uint16(21671), + 71: uint16(21695), + 72: uint16(22271), + 73: uint16(22402), + 74: uint16(22411), + 75: uint16(22432), + 76: uint16(22435), + 77: uint16(22434), + 78: uint16(22478), + 79: uint16(22446), + 80: uint16(22419), + 81: uint16(22869), + 82: uint16(22865), + 83: uint16(22863), + 84: uint16(22862), + 85: uint16(22864), + 86: uint16(23004), + 87: uint16(23000), + 88: uint16(23039), + 89: uint16(23011), + 90: uint16(23016), + 91: uint16(23043), + 92: uint16(23013), + 93: uint16(23018), + 94: uint16(23002), + 95: uint16(23014), + 96: uint16(23041), + 97: uint16(23035), + 98: uint16(23401), + 99: uint16(23459), + 100: uint16(23462), + 101: uint16(23460), + 102: uint16(23458), + 103: uint16(23461), + 104: uint16(23553), + 105: uint16(23630), + 106: uint16(23631), + 107: uint16(23629), + 108: uint16(23627), + 109: uint16(23769), + 110: uint16(23762), + 111: uint16(24055), + 112: uint16(24093), + 113: uint16(24101), + 114: uint16(24095), + 115: uint16(24189), + 116: uint16(24224), + 117: uint16(24230), + 118: uint16(24314), + 119: uint16(24328), + 120: uint16(24365), + 121: uint16(24421), + 122: uint16(24456), + 123: uint16(24453), + 124: uint16(24458), + 125: uint16(24459), + 126: uint16(24455), + 127: uint16(24460), + 128: uint16(24457), + 129: uint16(24594), + 130: uint16(24605), + 131: uint16(24608), + 132: uint16(24613), + 133: uint16(24590), + 134: uint16(24616), + 135: uint16(24653), + 136: uint16(24688), + 137: uint16(24680), + 138: uint16(24674), + 139: uint16(24646), + 140: uint16(24643), + 141: uint16(24684), + 142: uint16(24683), + 143: uint16(24682), + 144: uint16(24676), + 145: uint16(25153), + 146: uint16(25308), + 147: uint16(25366), + 148: uint16(25353), + 149: uint16(25340), + 150: uint16(25325), + 151: uint16(25345), + 152: uint16(25326), + 153: uint16(25341), + 154: uint16(25351), + 155: uint16(25329), + 156: uint16(25335), + }, + 11: { + 0: uint16(25327), + 1: uint16(25324), + 2: uint16(25342), + 3: uint16(25332), + 4: uint16(25361), + 5: uint16(25346), + 6: uint16(25919), + 7: uint16(25925), + 8: uint16(26027), + 9: uint16(26045), + 10: uint16(26082), + 11: uint16(26149), + 12: uint16(26157), + 13: uint16(26144), + 14: uint16(26151), + 15: uint16(26159), + 16: uint16(26143), + 17: uint16(26152), + 18: uint16(26161), + 19: uint16(26148), + 20: uint16(26359), + 21: uint16(26623), + 22: uint16(26579), + 23: uint16(26609), + 24: uint16(26580), + 25: uint16(26576), + 26: uint16(26604), + 27: uint16(26550), + 28: uint16(26543), + 29: uint16(26613), + 30: uint16(26601), + 31: uint16(26607), + 32: uint16(26564), + 33: uint16(26577), + 34: uint16(26548), + 35: uint16(26586), + 36: uint16(26597), + 37: uint16(26552), + 38: uint16(26575), + 39: uint16(26590), + 40: uint16(26611), + 41: uint16(26544), + 42: uint16(26585), + 43: uint16(26594), + 44: uint16(26589), + 45: uint16(26578), + 46: uint16(27498), + 47: uint16(27523), + 48: uint16(27526), + 49: uint16(27573), + 50: uint16(27602), + 51: uint16(27607), + 52: uint16(27679), + 53: uint16(27849), + 54: uint16(27915), + 55: uint16(27954), + 56: uint16(27946), + 57: uint16(27969), + 58: uint16(27941), + 59: uint16(27916), + 60: uint16(27953), + 61: uint16(27934), + 62: uint16(27927), + 63: uint16(27963), + 64: uint16(27965), + 65: uint16(27966), + 66: uint16(27958), + 67: uint16(27931), + 68: uint16(27893), + 69: uint16(27961), + 70: uint16(27943), + 71: uint16(27960), + 72: uint16(27945), + 73: uint16(27950), + 74: uint16(27957), + 75: uint16(27918), + 76: uint16(27947), + 77: uint16(28843), + 78: uint16(28858), + 79: uint16(28851), + 80: uint16(28844), + 81: uint16(28847), + 82: uint16(28845), + 83: uint16(28856), + 84: uint16(28846), + 85: uint16(28836), + 86: uint16(29232), + 87: uint16(29298), + 88: uint16(29295), + 89: uint16(29300), + 90: uint16(29417), + 91: uint16(29408), + 92: uint16(29409), + 93: uint16(29623), + 94: uint16(29642), + 95: uint16(29627), + 96: uint16(29618), + 97: uint16(29645), + 98: uint16(29632), + 99: uint16(29619), + 100: uint16(29978), + 101: uint16(29997), + 102: uint16(30031), + 103: uint16(30028), + 104: uint16(30030), + 105: uint16(30027), + 106: uint16(30123), + 107: uint16(30116), + 108: uint16(30117), + 109: uint16(30114), + 110: uint16(30115), + 111: uint16(30328), + 112: uint16(30342), + 113: uint16(30343), + 114: uint16(30344), + 115: uint16(30408), + 116: uint16(30406), + 117: uint16(30403), + 118: uint16(30405), + 119: uint16(30465), + 120: uint16(30457), + 121: uint16(30456), + 122: uint16(30473), + 123: uint16(30475), + 124: uint16(30462), + 125: uint16(30460), + 126: uint16(30471), + 127: uint16(30684), + 128: uint16(30722), + 129: uint16(30740), + 130: uint16(30732), + 131: uint16(30733), + 132: uint16(31046), + 133: uint16(31049), + 134: uint16(31048), + 135: uint16(31047), + 136: uint16(31161), + 137: uint16(31162), + 138: uint16(31185), + 139: uint16(31186), + 140: uint16(31179), + 141: uint16(31359), + 142: uint16(31361), + 143: uint16(31487), + 144: uint16(31485), + 145: uint16(31869), + 146: uint16(32002), + 147: uint16(32005), + 148: uint16(32000), + 149: uint16(32009), + 150: uint16(32007), + 151: uint16(32004), + 152: uint16(32006), + 153: uint16(32568), + 154: uint16(32654), + 155: uint16(32703), + 156: uint16(32772), + }, + 12: { + 0: uint16(32784), + 1: uint16(32781), + 2: uint16(32785), + 3: uint16(32822), + 4: uint16(32982), + 5: uint16(32997), + 6: uint16(32986), + 7: uint16(32963), + 8: uint16(32964), + 9: uint16(32972), + 10: uint16(32993), + 11: uint16(32987), + 12: uint16(32974), + 13: uint16(32990), + 14: uint16(32996), + 15: uint16(32989), + 16: uint16(33268), + 17: uint16(33314), + 18: uint16(33511), + 19: uint16(33539), + 20: uint16(33541), + 21: uint16(33507), + 22: uint16(33499), + 23: uint16(33510), + 24: uint16(33540), + 25: uint16(33509), + 26: uint16(33538), + 27: uint16(33545), + 28: uint16(33490), + 29: uint16(33495), + 30: uint16(33521), + 31: uint16(33537), + 32: uint16(33500), + 33: uint16(33492), + 34: uint16(33489), + 35: uint16(33502), + 36: uint16(33491), + 37: uint16(33503), + 38: uint16(33519), + 39: uint16(33542), + 40: uint16(34384), + 41: uint16(34425), + 42: uint16(34427), + 43: uint16(34426), + 44: uint16(34893), + 45: uint16(34923), + 46: uint16(35201), + 47: uint16(35284), + 48: uint16(35336), + 49: uint16(35330), + 50: uint16(35331), + 51: uint16(35998), + 52: uint16(36000), + 53: uint16(36212), + 54: uint16(36211), + 55: uint16(36276), + 56: uint16(36557), + 57: uint16(36556), + 58: uint16(36848), + 59: uint16(36838), + 60: uint16(36834), + 61: uint16(36842), + 62: uint16(36837), + 63: uint16(36845), + 64: uint16(36843), + 65: uint16(36836), + 66: uint16(36840), + 67: uint16(37066), + 68: uint16(37070), + 69: uint16(37057), + 70: uint16(37059), + 71: uint16(37195), + 72: uint16(37194), + 73: uint16(37325), + 74: uint16(38274), + 75: uint16(38480), + 76: uint16(38475), + 77: uint16(38476), + 78: uint16(38477), + 79: uint16(38754), + 80: uint16(38761), + 81: uint16(38859), + 82: uint16(38893), + 83: uint16(38899), + 84: uint16(38913), + 85: uint16(39080), + 86: uint16(39131), + 87: uint16(39135), + 88: uint16(39318), + 89: uint16(39321), + 90: uint16(20056), + 91: uint16(20147), + 92: uint16(20492), + 93: uint16(20493), + 94: uint16(20515), + 95: uint16(20463), + 96: uint16(20518), + 97: uint16(20517), + 98: uint16(20472), + 99: uint16(20521), + 100: uint16(20502), + 101: uint16(20486), + 102: uint16(20540), + 103: uint16(20511), + 104: uint16(20506), + 105: uint16(20498), + 106: uint16(20497), + 107: uint16(20474), + 108: uint16(20480), + 109: uint16(20500), + 110: uint16(20520), + 111: uint16(20465), + 112: uint16(20513), + 113: uint16(20491), + 114: uint16(20505), + 115: uint16(20504), + 116: uint16(20467), + 117: uint16(20462), + 118: uint16(20525), + 119: uint16(20522), + 120: uint16(20478), + 121: uint16(20523), + 122: uint16(20489), + 123: uint16(20860), + 124: uint16(20900), + 125: uint16(20901), + 126: uint16(20898), + 127: uint16(20941), + 128: uint16(20940), + 129: uint16(20934), + 130: uint16(20939), + 131: uint16(21078), + 132: uint16(21084), + 133: uint16(21076), + 134: uint16(21083), + 135: uint16(21085), + 136: uint16(21290), + 137: uint16(21375), + 138: uint16(21407), + 139: uint16(21405), + 140: uint16(21471), + 141: uint16(21736), + 142: uint16(21776), + 143: uint16(21761), + 144: uint16(21815), + 145: uint16(21756), + 146: uint16(21733), + 147: uint16(21746), + 148: uint16(21766), + 149: uint16(21754), + 150: uint16(21780), + 151: uint16(21737), + 152: uint16(21741), + 153: uint16(21729), + 154: uint16(21769), + 155: uint16(21742), + 156: uint16(21738), + }, + 13: { + 0: uint16(21734), + 1: uint16(21799), + 2: uint16(21767), + 3: uint16(21757), + 4: uint16(21775), + 5: uint16(22275), + 6: uint16(22276), + 7: uint16(22466), + 8: uint16(22484), + 9: uint16(22475), + 10: uint16(22467), + 11: uint16(22537), + 12: uint16(22799), + 13: uint16(22871), + 14: uint16(22872), + 15: uint16(22874), + 16: uint16(23057), + 17: uint16(23064), + 18: uint16(23068), + 19: uint16(23071), + 20: uint16(23067), + 21: uint16(23059), + 22: uint16(23020), + 23: uint16(23072), + 24: uint16(23075), + 25: uint16(23081), + 26: uint16(23077), + 27: uint16(23052), + 28: uint16(23049), + 29: uint16(23403), + 30: uint16(23640), + 31: uint16(23472), + 32: uint16(23475), + 33: uint16(23478), + 34: uint16(23476), + 35: uint16(23470), + 36: uint16(23477), + 37: uint16(23481), + 38: uint16(23480), + 39: uint16(23556), + 40: uint16(23633), + 41: uint16(23637), + 42: uint16(23632), + 43: uint16(23789), + 44: uint16(23805), + 45: uint16(23803), + 46: uint16(23786), + 47: uint16(23784), + 48: uint16(23792), + 49: uint16(23798), + 50: uint16(23809), + 51: uint16(23796), + 52: uint16(24046), + 53: uint16(24109), + 54: uint16(24107), + 55: uint16(24235), + 56: uint16(24237), + 57: uint16(24231), + 58: uint16(24369), + 59: uint16(24466), + 60: uint16(24465), + 61: uint16(24464), + 62: uint16(24665), + 63: uint16(24675), + 64: uint16(24677), + 65: uint16(24656), + 66: uint16(24661), + 67: uint16(24685), + 68: uint16(24681), + 69: uint16(24687), + 70: uint16(24708), + 71: uint16(24735), + 72: uint16(24730), + 73: uint16(24717), + 74: uint16(24724), + 75: uint16(24716), + 76: uint16(24709), + 77: uint16(24726), + 78: uint16(25159), + 79: uint16(25331), + 80: uint16(25352), + 81: uint16(25343), + 82: uint16(25422), + 83: uint16(25406), + 84: uint16(25391), + 85: uint16(25429), + 86: uint16(25410), + 87: uint16(25414), + 88: uint16(25423), + 89: uint16(25417), + 90: uint16(25402), + 91: uint16(25424), + 92: uint16(25405), + 93: uint16(25386), + 94: uint16(25387), + 95: uint16(25384), + 96: uint16(25421), + 97: uint16(25420), + 98: uint16(25928), + 99: uint16(25929), + 100: uint16(26009), + 101: uint16(26049), + 102: uint16(26053), + 103: uint16(26178), + 104: uint16(26185), + 105: uint16(26191), + 106: uint16(26179), + 107: uint16(26194), + 108: uint16(26188), + 109: uint16(26181), + 110: uint16(26177), + 111: uint16(26360), + 112: uint16(26388), + 113: uint16(26389), + 114: uint16(26391), + 115: uint16(26657), + 116: uint16(26680), + 117: uint16(26696), + 118: uint16(26694), + 119: uint16(26707), + 120: uint16(26681), + 121: uint16(26690), + 122: uint16(26708), + 123: uint16(26665), + 124: uint16(26803), + 125: uint16(26647), + 126: uint16(26700), + 127: uint16(26705), + 128: uint16(26685), + 129: uint16(26612), + 130: uint16(26704), + 131: uint16(26688), + 132: uint16(26684), + 133: uint16(26691), + 134: uint16(26666), + 135: uint16(26693), + 136: uint16(26643), + 137: uint16(26648), + 138: uint16(26689), + 139: uint16(27530), + 140: uint16(27529), + 141: uint16(27575), + 142: uint16(27683), + 143: uint16(27687), + 144: uint16(27688), + 145: uint16(27686), + 146: uint16(27684), + 147: uint16(27888), + 148: uint16(28010), + 149: uint16(28053), + 150: uint16(28040), + 151: uint16(28039), + 152: uint16(28006), + 153: uint16(28024), + 154: uint16(28023), + 155: uint16(27993), + 156: uint16(28051), + }, + 14: { + 0: uint16(28012), + 1: uint16(28041), + 2: uint16(28014), + 3: uint16(27994), + 4: uint16(28020), + 5: uint16(28009), + 6: uint16(28044), + 7: uint16(28042), + 8: uint16(28025), + 9: uint16(28037), + 10: uint16(28005), + 11: uint16(28052), + 12: uint16(28874), + 13: uint16(28888), + 14: uint16(28900), + 15: uint16(28889), + 16: uint16(28872), + 17: uint16(28879), + 18: uint16(29241), + 19: uint16(29305), + 20: uint16(29436), + 21: uint16(29433), + 22: uint16(29437), + 23: uint16(29432), + 24: uint16(29431), + 25: uint16(29574), + 26: uint16(29677), + 27: uint16(29705), + 28: uint16(29678), + 29: uint16(29664), + 30: uint16(29674), + 31: uint16(29662), + 32: uint16(30036), + 33: uint16(30045), + 34: uint16(30044), + 35: uint16(30042), + 36: uint16(30041), + 37: uint16(30142), + 38: uint16(30149), + 39: uint16(30151), + 40: uint16(30130), + 41: uint16(30131), + 42: uint16(30141), + 43: uint16(30140), + 44: uint16(30137), + 45: uint16(30146), + 46: uint16(30136), + 47: uint16(30347), + 48: uint16(30384), + 49: uint16(30410), + 50: uint16(30413), + 51: uint16(30414), + 52: uint16(30505), + 53: uint16(30495), + 54: uint16(30496), + 55: uint16(30504), + 56: uint16(30697), + 57: uint16(30768), + 58: uint16(30759), + 59: uint16(30776), + 60: uint16(30749), + 61: uint16(30772), + 62: uint16(30775), + 63: uint16(30757), + 64: uint16(30765), + 65: uint16(30752), + 66: uint16(30751), + 67: uint16(30770), + 68: uint16(31061), + 69: uint16(31056), + 70: uint16(31072), + 71: uint16(31071), + 72: uint16(31062), + 73: uint16(31070), + 74: uint16(31069), + 75: uint16(31063), + 76: uint16(31066), + 77: uint16(31204), + 78: uint16(31203), + 79: uint16(31207), + 80: uint16(31199), + 81: uint16(31206), + 82: uint16(31209), + 83: uint16(31192), + 84: uint16(31364), + 85: uint16(31368), + 86: uint16(31449), + 87: uint16(31494), + 88: uint16(31505), + 89: uint16(31881), + 90: uint16(32033), + 91: uint16(32023), + 92: uint16(32011), + 93: uint16(32010), + 94: uint16(32032), + 95: uint16(32034), + 96: uint16(32020), + 97: uint16(32016), + 98: uint16(32021), + 99: uint16(32026), + 100: uint16(32028), + 101: uint16(32013), + 102: uint16(32025), + 103: uint16(32027), + 104: uint16(32570), + 105: uint16(32607), + 106: uint16(32660), + 107: uint16(32709), + 108: uint16(32705), + 109: uint16(32774), + 110: uint16(32792), + 111: uint16(32789), + 112: uint16(32793), + 113: uint16(32791), + 114: uint16(32829), + 115: uint16(32831), + 116: uint16(33009), + 117: uint16(33026), + 118: uint16(33008), + 119: uint16(33029), + 120: uint16(33005), + 121: uint16(33012), + 122: uint16(33030), + 123: uint16(33016), + 124: uint16(33011), + 125: uint16(33032), + 126: uint16(33021), + 127: uint16(33034), + 128: uint16(33020), + 129: uint16(33007), + 130: uint16(33261), + 131: uint16(33260), + 132: uint16(33280), + 133: uint16(33296), + 134: uint16(33322), + 135: uint16(33323), + 136: uint16(33320), + 137: uint16(33324), + 138: uint16(33467), + 139: uint16(33579), + 140: uint16(33618), + 141: uint16(33620), + 142: uint16(33610), + 143: uint16(33592), + 144: uint16(33616), + 145: uint16(33609), + 146: uint16(33589), + 147: uint16(33588), + 148: uint16(33615), + 149: uint16(33586), + 150: uint16(33593), + 151: uint16(33590), + 152: uint16(33559), + 153: uint16(33600), + 154: uint16(33585), + 155: uint16(33576), + 156: uint16(33603), + }, + 15: { + 0: uint16(34388), + 1: uint16(34442), + 2: uint16(34474), + 3: uint16(34451), + 4: uint16(34468), + 5: uint16(34473), + 6: uint16(34444), + 7: uint16(34467), + 8: uint16(34460), + 9: uint16(34928), + 10: uint16(34935), + 11: uint16(34945), + 12: uint16(34946), + 13: uint16(34941), + 14: uint16(34937), + 15: uint16(35352), + 16: uint16(35344), + 17: uint16(35342), + 18: uint16(35340), + 19: uint16(35349), + 20: uint16(35338), + 21: uint16(35351), + 22: uint16(35347), + 23: uint16(35350), + 24: uint16(35343), + 25: uint16(35345), + 26: uint16(35912), + 27: uint16(35962), + 28: uint16(35961), + 29: uint16(36001), + 30: uint16(36002), + 31: uint16(36215), + 32: uint16(36524), + 33: uint16(36562), + 34: uint16(36564), + 35: uint16(36559), + 36: uint16(36785), + 37: uint16(36865), + 38: uint16(36870), + 39: uint16(36855), + 40: uint16(36864), + 41: uint16(36858), + 42: uint16(36852), + 43: uint16(36867), + 44: uint16(36861), + 45: uint16(36869), + 46: uint16(36856), + 47: uint16(37013), + 48: uint16(37089), + 49: uint16(37085), + 50: uint16(37090), + 51: uint16(37202), + 52: uint16(37197), + 53: uint16(37196), + 54: uint16(37336), + 55: uint16(37341), + 56: uint16(37335), + 57: uint16(37340), + 58: uint16(37337), + 59: uint16(38275), + 60: uint16(38498), + 61: uint16(38499), + 62: uint16(38497), + 63: uint16(38491), + 64: uint16(38493), + 65: uint16(38500), + 66: uint16(38488), + 67: uint16(38494), + 68: uint16(38587), + 69: uint16(39138), + 70: uint16(39340), + 71: uint16(39592), + 72: uint16(39640), + 73: uint16(39717), + 74: uint16(39730), + 75: uint16(39740), + 76: uint16(20094), + 77: uint16(20602), + 78: uint16(20605), + 79: uint16(20572), + 80: uint16(20551), + 81: uint16(20547), + 82: uint16(20556), + 83: uint16(20570), + 84: uint16(20553), + 85: uint16(20581), + 86: uint16(20598), + 87: uint16(20558), + 88: uint16(20565), + 89: uint16(20597), + 90: uint16(20596), + 91: uint16(20599), + 92: uint16(20559), + 93: uint16(20495), + 94: uint16(20591), + 95: uint16(20589), + 96: uint16(20828), + 97: uint16(20885), + 98: uint16(20976), + 99: uint16(21098), + 100: uint16(21103), + 101: uint16(21202), + 102: uint16(21209), + 103: uint16(21208), + 104: uint16(21205), + 105: uint16(21264), + 106: uint16(21263), + 107: uint16(21273), + 108: uint16(21311), + 109: uint16(21312), + 110: uint16(21310), + 111: uint16(21443), + 112: uint16(26364), + 113: uint16(21830), + 114: uint16(21866), + 115: uint16(21862), + 116: uint16(21828), + 117: uint16(21854), + 118: uint16(21857), + 119: uint16(21827), + 120: uint16(21834), + 121: uint16(21809), + 122: uint16(21846), + 123: uint16(21839), + 124: uint16(21845), + 125: uint16(21807), + 126: uint16(21860), + 127: uint16(21816), + 128: uint16(21806), + 129: uint16(21852), + 130: uint16(21804), + 131: uint16(21859), + 132: uint16(21811), + 133: uint16(21825), + 134: uint16(21847), + 135: uint16(22280), + 136: uint16(22283), + 137: uint16(22281), + 138: uint16(22495), + 139: uint16(22533), + 140: uint16(22538), + 141: uint16(22534), + 142: uint16(22496), + 143: uint16(22500), + 144: uint16(22522), + 145: uint16(22530), + 146: uint16(22581), + 147: uint16(22519), + 148: uint16(22521), + 149: uint16(22816), + 150: uint16(22882), + 151: uint16(23094), + 152: uint16(23105), + 153: uint16(23113), + 154: uint16(23142), + 155: uint16(23146), + 156: uint16(23104), + }, + 16: { + 0: uint16(23100), + 1: uint16(23138), + 2: uint16(23130), + 3: uint16(23110), + 4: uint16(23114), + 5: uint16(23408), + 6: uint16(23495), + 7: uint16(23493), + 8: uint16(23492), + 9: uint16(23490), + 10: uint16(23487), + 11: uint16(23494), + 12: uint16(23561), + 13: uint16(23560), + 14: uint16(23559), + 15: uint16(23648), + 16: uint16(23644), + 17: uint16(23645), + 18: uint16(23815), + 19: uint16(23814), + 20: uint16(23822), + 21: uint16(23835), + 22: uint16(23830), + 23: uint16(23842), + 24: uint16(23825), + 25: uint16(23849), + 26: uint16(23828), + 27: uint16(23833), + 28: uint16(23844), + 29: uint16(23847), + 30: uint16(23831), + 31: uint16(24034), + 32: uint16(24120), + 33: uint16(24118), + 34: uint16(24115), + 35: uint16(24119), + 36: uint16(24247), + 37: uint16(24248), + 38: uint16(24246), + 39: uint16(24245), + 40: uint16(24254), + 41: uint16(24373), + 42: uint16(24375), + 43: uint16(24407), + 44: uint16(24428), + 45: uint16(24425), + 46: uint16(24427), + 47: uint16(24471), + 48: uint16(24473), + 49: uint16(24478), + 50: uint16(24472), + 51: uint16(24481), + 52: uint16(24480), + 53: uint16(24476), + 54: uint16(24703), + 55: uint16(24739), + 56: uint16(24713), + 57: uint16(24736), + 58: uint16(24744), + 59: uint16(24779), + 60: uint16(24756), + 61: uint16(24806), + 62: uint16(24765), + 63: uint16(24773), + 64: uint16(24763), + 65: uint16(24757), + 66: uint16(24796), + 67: uint16(24764), + 68: uint16(24792), + 69: uint16(24789), + 70: uint16(24774), + 71: uint16(24799), + 72: uint16(24760), + 73: uint16(24794), + 74: uint16(24775), + 75: uint16(25114), + 76: uint16(25115), + 77: uint16(25160), + 78: uint16(25504), + 79: uint16(25511), + 80: uint16(25458), + 81: uint16(25494), + 82: uint16(25506), + 83: uint16(25509), + 84: uint16(25463), + 85: uint16(25447), + 86: uint16(25496), + 87: uint16(25514), + 88: uint16(25457), + 89: uint16(25513), + 90: uint16(25481), + 91: uint16(25475), + 92: uint16(25499), + 93: uint16(25451), + 94: uint16(25512), + 95: uint16(25476), + 96: uint16(25480), + 97: uint16(25497), + 98: uint16(25505), + 99: uint16(25516), + 100: uint16(25490), + 101: uint16(25487), + 102: uint16(25472), + 103: uint16(25467), + 104: uint16(25449), + 105: uint16(25448), + 106: uint16(25466), + 107: uint16(25949), + 108: uint16(25942), + 109: uint16(25937), + 110: uint16(25945), + 111: uint16(25943), + 112: uint16(21855), + 113: uint16(25935), + 114: uint16(25944), + 115: uint16(25941), + 116: uint16(25940), + 117: uint16(26012), + 118: uint16(26011), + 119: uint16(26028), + 120: uint16(26063), + 121: uint16(26059), + 122: uint16(26060), + 123: uint16(26062), + 124: uint16(26205), + 125: uint16(26202), + 126: uint16(26212), + 127: uint16(26216), + 128: uint16(26214), + 129: uint16(26206), + 130: uint16(26361), + 131: uint16(21207), + 132: uint16(26395), + 133: uint16(26753), + 134: uint16(26799), + 135: uint16(26786), + 136: uint16(26771), + 137: uint16(26805), + 138: uint16(26751), + 139: uint16(26742), + 140: uint16(26801), + 141: uint16(26791), + 142: uint16(26775), + 143: uint16(26800), + 144: uint16(26755), + 145: uint16(26820), + 146: uint16(26797), + 147: uint16(26758), + 148: uint16(26757), + 149: uint16(26772), + 150: uint16(26781), + 151: uint16(26792), + 152: uint16(26783), + 153: uint16(26785), + 154: uint16(26754), + 155: uint16(27442), + 156: uint16(27578), + }, + 17: { + 0: uint16(27627), + 1: uint16(27628), + 2: uint16(27691), + 3: uint16(28046), + 4: uint16(28092), + 5: uint16(28147), + 6: uint16(28121), + 7: uint16(28082), + 8: uint16(28129), + 9: uint16(28108), + 10: uint16(28132), + 11: uint16(28155), + 12: uint16(28154), + 13: uint16(28165), + 14: uint16(28103), + 15: uint16(28107), + 16: uint16(28079), + 17: uint16(28113), + 18: uint16(28078), + 19: uint16(28126), + 20: uint16(28153), + 21: uint16(28088), + 22: uint16(28151), + 23: uint16(28149), + 24: uint16(28101), + 25: uint16(28114), + 26: uint16(28186), + 27: uint16(28085), + 28: uint16(28122), + 29: uint16(28139), + 30: uint16(28120), + 31: uint16(28138), + 32: uint16(28145), + 33: uint16(28142), + 34: uint16(28136), + 35: uint16(28102), + 36: uint16(28100), + 37: uint16(28074), + 38: uint16(28140), + 39: uint16(28095), + 40: uint16(28134), + 41: uint16(28921), + 42: uint16(28937), + 43: uint16(28938), + 44: uint16(28925), + 45: uint16(28911), + 46: uint16(29245), + 47: uint16(29309), + 48: uint16(29313), + 49: uint16(29468), + 50: uint16(29467), + 51: uint16(29462), + 52: uint16(29459), + 53: uint16(29465), + 54: uint16(29575), + 55: uint16(29701), + 56: uint16(29706), + 57: uint16(29699), + 58: uint16(29702), + 59: uint16(29694), + 60: uint16(29709), + 61: uint16(29920), + 62: uint16(29942), + 63: uint16(29943), + 64: uint16(29980), + 65: uint16(29986), + 66: uint16(30053), + 67: uint16(30054), + 68: uint16(30050), + 69: uint16(30064), + 70: uint16(30095), + 71: uint16(30164), + 72: uint16(30165), + 73: uint16(30133), + 74: uint16(30154), + 75: uint16(30157), + 76: uint16(30350), + 77: uint16(30420), + 78: uint16(30418), + 79: uint16(30427), + 80: uint16(30519), + 81: uint16(30526), + 82: uint16(30524), + 83: uint16(30518), + 84: uint16(30520), + 85: uint16(30522), + 86: uint16(30827), + 87: uint16(30787), + 88: uint16(30798), + 89: uint16(31077), + 90: uint16(31080), + 91: uint16(31085), + 92: uint16(31227), + 93: uint16(31378), + 94: uint16(31381), + 95: uint16(31520), + 96: uint16(31528), + 97: uint16(31515), + 98: uint16(31532), + 99: uint16(31526), + 100: uint16(31513), + 101: uint16(31518), + 102: uint16(31534), + 103: uint16(31890), + 104: uint16(31895), + 105: uint16(31893), + 106: uint16(32070), + 107: uint16(32067), + 108: uint16(32113), + 109: uint16(32046), + 110: uint16(32057), + 111: uint16(32060), + 112: uint16(32064), + 113: uint16(32048), + 114: uint16(32051), + 115: uint16(32068), + 116: uint16(32047), + 117: uint16(32066), + 118: uint16(32050), + 119: uint16(32049), + 120: uint16(32573), + 121: uint16(32670), + 122: uint16(32666), + 123: uint16(32716), + 124: uint16(32718), + 125: uint16(32722), + 126: uint16(32796), + 127: uint16(32842), + 128: uint16(32838), + 129: uint16(33071), + 130: uint16(33046), + 131: uint16(33059), + 132: uint16(33067), + 133: uint16(33065), + 134: uint16(33072), + 135: uint16(33060), + 136: uint16(33282), + 137: uint16(33333), + 138: uint16(33335), + 139: uint16(33334), + 140: uint16(33337), + 141: uint16(33678), + 142: uint16(33694), + 143: uint16(33688), + 144: uint16(33656), + 145: uint16(33698), + 146: uint16(33686), + 147: uint16(33725), + 148: uint16(33707), + 149: uint16(33682), + 150: uint16(33674), + 151: uint16(33683), + 152: uint16(33673), + 153: uint16(33696), + 154: uint16(33655), + 155: uint16(33659), + 156: uint16(33660), + }, + 18: { + 0: uint16(33670), + 1: uint16(33703), + 2: uint16(34389), + 3: uint16(24426), + 4: uint16(34503), + 5: uint16(34496), + 6: uint16(34486), + 7: uint16(34500), + 8: uint16(34485), + 9: uint16(34502), + 10: uint16(34507), + 11: uint16(34481), + 12: uint16(34479), + 13: uint16(34505), + 14: uint16(34899), + 15: uint16(34974), + 16: uint16(34952), + 17: uint16(34987), + 18: uint16(34962), + 19: uint16(34966), + 20: uint16(34957), + 21: uint16(34955), + 22: uint16(35219), + 23: uint16(35215), + 24: uint16(35370), + 25: uint16(35357), + 26: uint16(35363), + 27: uint16(35365), + 28: uint16(35377), + 29: uint16(35373), + 30: uint16(35359), + 31: uint16(35355), + 32: uint16(35362), + 33: uint16(35913), + 34: uint16(35930), + 35: uint16(36009), + 36: uint16(36012), + 37: uint16(36011), + 38: uint16(36008), + 39: uint16(36010), + 40: uint16(36007), + 41: uint16(36199), + 42: uint16(36198), + 43: uint16(36286), + 44: uint16(36282), + 45: uint16(36571), + 46: uint16(36575), + 47: uint16(36889), + 48: uint16(36877), + 49: uint16(36890), + 50: uint16(36887), + 51: uint16(36899), + 52: uint16(36895), + 53: uint16(36893), + 54: uint16(36880), + 55: uint16(36885), + 56: uint16(36894), + 57: uint16(36896), + 58: uint16(36879), + 59: uint16(36898), + 60: uint16(36886), + 61: uint16(36891), + 62: uint16(36884), + 63: uint16(37096), + 64: uint16(37101), + 65: uint16(37117), + 66: uint16(37207), + 67: uint16(37326), + 68: uint16(37365), + 69: uint16(37350), + 70: uint16(37347), + 71: uint16(37351), + 72: uint16(37357), + 73: uint16(37353), + 74: uint16(38281), + 75: uint16(38506), + 76: uint16(38517), + 77: uint16(38515), + 78: uint16(38520), + 79: uint16(38512), + 80: uint16(38516), + 81: uint16(38518), + 82: uint16(38519), + 83: uint16(38508), + 84: uint16(38592), + 85: uint16(38634), + 86: uint16(38633), + 87: uint16(31456), + 88: uint16(31455), + 89: uint16(38914), + 90: uint16(38915), + 91: uint16(39770), + 92: uint16(40165), + 93: uint16(40565), + 94: uint16(40575), + 95: uint16(40613), + 96: uint16(40635), + 97: uint16(20642), + 98: uint16(20621), + 99: uint16(20613), + 100: uint16(20633), + 101: uint16(20625), + 102: uint16(20608), + 103: uint16(20630), + 104: uint16(20632), + 105: uint16(20634), + 106: uint16(26368), + 107: uint16(20977), + 108: uint16(21106), + 109: uint16(21108), + 110: uint16(21109), + 111: uint16(21097), + 112: uint16(21214), + 113: uint16(21213), + 114: uint16(21211), + 115: uint16(21338), + 116: uint16(21413), + 117: uint16(21883), + 118: uint16(21888), + 119: uint16(21927), + 120: uint16(21884), + 121: uint16(21898), + 122: uint16(21917), + 123: uint16(21912), + 124: uint16(21890), + 125: uint16(21916), + 126: uint16(21930), + 127: uint16(21908), + 128: uint16(21895), + 129: uint16(21899), + 130: uint16(21891), + 131: uint16(21939), + 132: uint16(21934), + 133: uint16(21919), + 134: uint16(21822), + 135: uint16(21938), + 136: uint16(21914), + 137: uint16(21947), + 138: uint16(21932), + 139: uint16(21937), + 140: uint16(21886), + 141: uint16(21897), + 142: uint16(21931), + 143: uint16(21913), + 144: uint16(22285), + 145: uint16(22575), + 146: uint16(22570), + 147: uint16(22580), + 148: uint16(22564), + 149: uint16(22576), + 150: uint16(22577), + 151: uint16(22561), + 152: uint16(22557), + 153: uint16(22560), + 154: uint16(22777), + 155: uint16(22778), + 156: uint16(22880), + }, + 19: { + 0: uint16(23159), + 1: uint16(23194), + 2: uint16(23167), + 3: uint16(23186), + 4: uint16(23195), + 5: uint16(23207), + 6: uint16(23411), + 7: uint16(23409), + 8: uint16(23506), + 9: uint16(23500), + 10: uint16(23507), + 11: uint16(23504), + 12: uint16(23562), + 13: uint16(23563), + 14: uint16(23601), + 15: uint16(23884), + 16: uint16(23888), + 17: uint16(23860), + 18: uint16(23879), + 19: uint16(24061), + 20: uint16(24133), + 21: uint16(24125), + 22: uint16(24128), + 23: uint16(24131), + 24: uint16(24190), + 25: uint16(24266), + 26: uint16(24257), + 27: uint16(24258), + 28: uint16(24260), + 29: uint16(24380), + 30: uint16(24429), + 31: uint16(24489), + 32: uint16(24490), + 33: uint16(24488), + 34: uint16(24785), + 35: uint16(24801), + 36: uint16(24754), + 37: uint16(24758), + 38: uint16(24800), + 39: uint16(24860), + 40: uint16(24867), + 41: uint16(24826), + 42: uint16(24853), + 43: uint16(24816), + 44: uint16(24827), + 45: uint16(24820), + 46: uint16(24936), + 47: uint16(24817), + 48: uint16(24846), + 49: uint16(24822), + 50: uint16(24841), + 51: uint16(24832), + 52: uint16(24850), + 53: uint16(25119), + 54: uint16(25161), + 55: uint16(25507), + 56: uint16(25484), + 57: uint16(25551), + 58: uint16(25536), + 59: uint16(25577), + 60: uint16(25545), + 61: uint16(25542), + 62: uint16(25549), + 63: uint16(25554), + 64: uint16(25571), + 65: uint16(25552), + 66: uint16(25569), + 67: uint16(25558), + 68: uint16(25581), + 69: uint16(25582), + 70: uint16(25462), + 71: uint16(25588), + 72: uint16(25578), + 73: uint16(25563), + 74: uint16(25682), + 75: uint16(25562), + 76: uint16(25593), + 77: uint16(25950), + 78: uint16(25958), + 79: uint16(25954), + 80: uint16(25955), + 81: uint16(26001), + 82: uint16(26000), + 83: uint16(26031), + 84: uint16(26222), + 85: uint16(26224), + 86: uint16(26228), + 87: uint16(26230), + 88: uint16(26223), + 89: uint16(26257), + 90: uint16(26234), + 91: uint16(26238), + 92: uint16(26231), + 93: uint16(26366), + 94: uint16(26367), + 95: uint16(26399), + 96: uint16(26397), + 97: uint16(26874), + 98: uint16(26837), + 99: uint16(26848), + 100: uint16(26840), + 101: uint16(26839), + 102: uint16(26885), + 103: uint16(26847), + 104: uint16(26869), + 105: uint16(26862), + 106: uint16(26855), + 107: uint16(26873), + 108: uint16(26834), + 109: uint16(26866), + 110: uint16(26851), + 111: uint16(26827), + 112: uint16(26829), + 113: uint16(26893), + 114: uint16(26898), + 115: uint16(26894), + 116: uint16(26825), + 117: uint16(26842), + 118: uint16(26990), + 119: uint16(26875), + 120: uint16(27454), + 121: uint16(27450), + 122: uint16(27453), + 123: uint16(27544), + 124: uint16(27542), + 125: uint16(27580), + 126: uint16(27631), + 127: uint16(27694), + 128: uint16(27695), + 129: uint16(27692), + 130: uint16(28207), + 131: uint16(28216), + 132: uint16(28244), + 133: uint16(28193), + 134: uint16(28210), + 135: uint16(28263), + 136: uint16(28234), + 137: uint16(28192), + 138: uint16(28197), + 139: uint16(28195), + 140: uint16(28187), + 141: uint16(28251), + 142: uint16(28248), + 143: uint16(28196), + 144: uint16(28246), + 145: uint16(28270), + 146: uint16(28205), + 147: uint16(28198), + 148: uint16(28271), + 149: uint16(28212), + 150: uint16(28237), + 151: uint16(28218), + 152: uint16(28204), + 153: uint16(28227), + 154: uint16(28189), + 155: uint16(28222), + 156: uint16(28363), + }, + 20: { + 0: uint16(28297), + 1: uint16(28185), + 2: uint16(28238), + 3: uint16(28259), + 4: uint16(28228), + 5: uint16(28274), + 6: uint16(28265), + 7: uint16(28255), + 8: uint16(28953), + 9: uint16(28954), + 10: uint16(28966), + 11: uint16(28976), + 12: uint16(28961), + 13: uint16(28982), + 14: uint16(29038), + 15: uint16(28956), + 16: uint16(29260), + 17: uint16(29316), + 18: uint16(29312), + 19: uint16(29494), + 20: uint16(29477), + 21: uint16(29492), + 22: uint16(29481), + 23: uint16(29754), + 24: uint16(29738), + 25: uint16(29747), + 26: uint16(29730), + 27: uint16(29733), + 28: uint16(29749), + 29: uint16(29750), + 30: uint16(29748), + 31: uint16(29743), + 32: uint16(29723), + 33: uint16(29734), + 34: uint16(29736), + 35: uint16(29989), + 36: uint16(29990), + 37: uint16(30059), + 38: uint16(30058), + 39: uint16(30178), + 40: uint16(30171), + 41: uint16(30179), + 42: uint16(30169), + 43: uint16(30168), + 44: uint16(30174), + 45: uint16(30176), + 46: uint16(30331), + 47: uint16(30332), + 48: uint16(30358), + 49: uint16(30355), + 50: uint16(30388), + 51: uint16(30428), + 52: uint16(30543), + 53: uint16(30701), + 54: uint16(30813), + 55: uint16(30828), + 56: uint16(30831), + 57: uint16(31245), + 58: uint16(31240), + 59: uint16(31243), + 60: uint16(31237), + 61: uint16(31232), + 62: uint16(31384), + 63: uint16(31383), + 64: uint16(31382), + 65: uint16(31461), + 66: uint16(31459), + 67: uint16(31561), + 68: uint16(31574), + 69: uint16(31558), + 70: uint16(31568), + 71: uint16(31570), + 72: uint16(31572), + 73: uint16(31565), + 74: uint16(31563), + 75: uint16(31567), + 76: uint16(31569), + 77: uint16(31903), + 78: uint16(31909), + 79: uint16(32094), + 80: uint16(32080), + 81: uint16(32104), + 82: uint16(32085), + 83: uint16(32043), + 84: uint16(32110), + 85: uint16(32114), + 86: uint16(32097), + 87: uint16(32102), + 88: uint16(32098), + 89: uint16(32112), + 90: uint16(32115), + 91: uint16(21892), + 92: uint16(32724), + 93: uint16(32725), + 94: uint16(32779), + 95: uint16(32850), + 96: uint16(32901), + 97: uint16(33109), + 98: uint16(33108), + 99: uint16(33099), + 100: uint16(33105), + 101: uint16(33102), + 102: uint16(33081), + 103: uint16(33094), + 104: uint16(33086), + 105: uint16(33100), + 106: uint16(33107), + 107: uint16(33140), + 108: uint16(33298), + 109: uint16(33308), + 110: uint16(33769), + 111: uint16(33795), + 112: uint16(33784), + 113: uint16(33805), + 114: uint16(33760), + 115: uint16(33733), + 116: uint16(33803), + 117: uint16(33729), + 118: uint16(33775), + 119: uint16(33777), + 120: uint16(33780), + 121: uint16(33879), + 122: uint16(33802), + 123: uint16(33776), + 124: uint16(33804), + 125: uint16(33740), + 126: uint16(33789), + 127: uint16(33778), + 128: uint16(33738), + 129: uint16(33848), + 130: uint16(33806), + 131: uint16(33796), + 132: uint16(33756), + 133: uint16(33799), + 134: uint16(33748), + 135: uint16(33759), + 136: uint16(34395), + 137: uint16(34527), + 138: uint16(34521), + 139: uint16(34541), + 140: uint16(34516), + 141: uint16(34523), + 142: uint16(34532), + 143: uint16(34512), + 144: uint16(34526), + 145: uint16(34903), + 146: uint16(35009), + 147: uint16(35010), + 148: uint16(34993), + 149: uint16(35203), + 150: uint16(35222), + 151: uint16(35387), + 152: uint16(35424), + 153: uint16(35413), + 154: uint16(35422), + 155: uint16(35388), + 156: uint16(35393), + }, + 21: { + 0: uint16(35412), + 1: uint16(35419), + 2: uint16(35408), + 3: uint16(35398), + 4: uint16(35380), + 5: uint16(35386), + 6: uint16(35382), + 7: uint16(35414), + 8: uint16(35937), + 9: uint16(35970), + 10: uint16(36015), + 11: uint16(36028), + 12: uint16(36019), + 13: uint16(36029), + 14: uint16(36033), + 15: uint16(36027), + 16: uint16(36032), + 17: uint16(36020), + 18: uint16(36023), + 19: uint16(36022), + 20: uint16(36031), + 21: uint16(36024), + 22: uint16(36234), + 23: uint16(36229), + 24: uint16(36225), + 25: uint16(36302), + 26: uint16(36317), + 27: uint16(36299), + 28: uint16(36314), + 29: uint16(36305), + 30: uint16(36300), + 31: uint16(36315), + 32: uint16(36294), + 33: uint16(36603), + 34: uint16(36600), + 35: uint16(36604), + 36: uint16(36764), + 37: uint16(36910), + 38: uint16(36917), + 39: uint16(36913), + 40: uint16(36920), + 41: uint16(36914), + 42: uint16(36918), + 43: uint16(37122), + 44: uint16(37109), + 45: uint16(37129), + 46: uint16(37118), + 47: uint16(37219), + 48: uint16(37221), + 49: uint16(37327), + 50: uint16(37396), + 51: uint16(37397), + 52: uint16(37411), + 53: uint16(37385), + 54: uint16(37406), + 55: uint16(37389), + 56: uint16(37392), + 57: uint16(37383), + 58: uint16(37393), + 59: uint16(38292), + 60: uint16(38287), + 61: uint16(38283), + 62: uint16(38289), + 63: uint16(38291), + 64: uint16(38290), + 65: uint16(38286), + 66: uint16(38538), + 67: uint16(38542), + 68: uint16(38539), + 69: uint16(38525), + 70: uint16(38533), + 71: uint16(38534), + 72: uint16(38541), + 73: uint16(38514), + 74: uint16(38532), + 75: uint16(38593), + 76: uint16(38597), + 77: uint16(38596), + 78: uint16(38598), + 79: uint16(38599), + 80: uint16(38639), + 81: uint16(38642), + 82: uint16(38860), + 83: uint16(38917), + 84: uint16(38918), + 85: uint16(38920), + 86: uint16(39143), + 87: uint16(39146), + 88: uint16(39151), + 89: uint16(39145), + 90: uint16(39154), + 91: uint16(39149), + 92: uint16(39342), + 93: uint16(39341), + 94: uint16(40643), + 95: uint16(40653), + 96: uint16(40657), + 97: uint16(20098), + 98: uint16(20653), + 99: uint16(20661), + 100: uint16(20658), + 101: uint16(20659), + 102: uint16(20677), + 103: uint16(20670), + 104: uint16(20652), + 105: uint16(20663), + 106: uint16(20667), + 107: uint16(20655), + 108: uint16(20679), + 109: uint16(21119), + 110: uint16(21111), + 111: uint16(21117), + 112: uint16(21215), + 113: uint16(21222), + 114: uint16(21220), + 115: uint16(21218), + 116: uint16(21219), + 117: uint16(21295), + 118: uint16(21983), + 119: uint16(21992), + 120: uint16(21971), + 121: uint16(21990), + 122: uint16(21966), + 123: uint16(21980), + 124: uint16(21959), + 125: uint16(21969), + 126: uint16(21987), + 127: uint16(21988), + 128: uint16(21999), + 129: uint16(21978), + 130: uint16(21985), + 131: uint16(21957), + 132: uint16(21958), + 133: uint16(21989), + 134: uint16(21961), + 135: uint16(22290), + 136: uint16(22291), + 137: uint16(22622), + 138: uint16(22609), + 139: uint16(22616), + 140: uint16(22615), + 141: uint16(22618), + 142: uint16(22612), + 143: uint16(22635), + 144: uint16(22604), + 145: uint16(22637), + 146: uint16(22602), + 147: uint16(22626), + 148: uint16(22610), + 149: uint16(22603), + 150: uint16(22887), + 151: uint16(23233), + 152: uint16(23241), + 153: uint16(23244), + 154: uint16(23230), + 155: uint16(23229), + 156: uint16(23228), + }, + 22: { + 0: uint16(23219), + 1: uint16(23234), + 2: uint16(23218), + 3: uint16(23913), + 4: uint16(23919), + 5: uint16(24140), + 6: uint16(24185), + 7: uint16(24265), + 8: uint16(24264), + 9: uint16(24338), + 10: uint16(24409), + 11: uint16(24492), + 12: uint16(24494), + 13: uint16(24858), + 14: uint16(24847), + 15: uint16(24904), + 16: uint16(24863), + 17: uint16(24819), + 18: uint16(24859), + 19: uint16(24825), + 20: uint16(24833), + 21: uint16(24840), + 22: uint16(24910), + 23: uint16(24908), + 24: uint16(24900), + 25: uint16(24909), + 26: uint16(24894), + 27: uint16(24884), + 28: uint16(24871), + 29: uint16(24845), + 30: uint16(24838), + 31: uint16(24887), + 32: uint16(25121), + 33: uint16(25122), + 34: uint16(25619), + 35: uint16(25662), + 36: uint16(25630), + 37: uint16(25642), + 38: uint16(25645), + 39: uint16(25661), + 40: uint16(25644), + 41: uint16(25615), + 42: uint16(25628), + 43: uint16(25620), + 44: uint16(25613), + 45: uint16(25654), + 46: uint16(25622), + 47: uint16(25623), + 48: uint16(25606), + 49: uint16(25964), + 50: uint16(26015), + 51: uint16(26032), + 52: uint16(26263), + 53: uint16(26249), + 54: uint16(26247), + 55: uint16(26248), + 56: uint16(26262), + 57: uint16(26244), + 58: uint16(26264), + 59: uint16(26253), + 60: uint16(26371), + 61: uint16(27028), + 62: uint16(26989), + 63: uint16(26970), + 64: uint16(26999), + 65: uint16(26976), + 66: uint16(26964), + 67: uint16(26997), + 68: uint16(26928), + 69: uint16(27010), + 70: uint16(26954), + 71: uint16(26984), + 72: uint16(26987), + 73: uint16(26974), + 74: uint16(26963), + 75: uint16(27001), + 76: uint16(27014), + 77: uint16(26973), + 78: uint16(26979), + 79: uint16(26971), + 80: uint16(27463), + 81: uint16(27506), + 82: uint16(27584), + 83: uint16(27583), + 84: uint16(27603), + 85: uint16(27645), + 86: uint16(28322), + 87: uint16(28335), + 88: uint16(28371), + 89: uint16(28342), + 90: uint16(28354), + 91: uint16(28304), + 92: uint16(28317), + 93: uint16(28359), + 94: uint16(28357), + 95: uint16(28325), + 96: uint16(28312), + 97: uint16(28348), + 98: uint16(28346), + 99: uint16(28331), + 100: uint16(28369), + 101: uint16(28310), + 102: uint16(28316), + 103: uint16(28356), + 104: uint16(28372), + 105: uint16(28330), + 106: uint16(28327), + 107: uint16(28340), + 108: uint16(29006), + 109: uint16(29017), + 110: uint16(29033), + 111: uint16(29028), + 112: uint16(29001), + 113: uint16(29031), + 114: uint16(29020), + 115: uint16(29036), + 116: uint16(29030), + 117: uint16(29004), + 118: uint16(29029), + 119: uint16(29022), + 120: uint16(28998), + 121: uint16(29032), + 122: uint16(29014), + 123: uint16(29242), + 124: uint16(29266), + 125: uint16(29495), + 126: uint16(29509), + 127: uint16(29503), + 128: uint16(29502), + 129: uint16(29807), + 130: uint16(29786), + 131: uint16(29781), + 132: uint16(29791), + 133: uint16(29790), + 134: uint16(29761), + 135: uint16(29759), + 136: uint16(29785), + 137: uint16(29787), + 138: uint16(29788), + 139: uint16(30070), + 140: uint16(30072), + 141: uint16(30208), + 142: uint16(30192), + 143: uint16(30209), + 144: uint16(30194), + 145: uint16(30193), + 146: uint16(30202), + 147: uint16(30207), + 148: uint16(30196), + 149: uint16(30195), + 150: uint16(30430), + 151: uint16(30431), + 152: uint16(30555), + 153: uint16(30571), + 154: uint16(30566), + 155: uint16(30558), + 156: uint16(30563), + }, + 23: { + 0: uint16(30585), + 1: uint16(30570), + 2: uint16(30572), + 3: uint16(30556), + 4: uint16(30565), + 5: uint16(30568), + 6: uint16(30562), + 7: uint16(30702), + 8: uint16(30862), + 9: uint16(30896), + 10: uint16(30871), + 11: uint16(30872), + 12: uint16(30860), + 13: uint16(30857), + 14: uint16(30844), + 15: uint16(30865), + 16: uint16(30867), + 17: uint16(30847), + 18: uint16(31098), + 19: uint16(31103), + 20: uint16(31105), + 21: uint16(33836), + 22: uint16(31165), + 23: uint16(31260), + 24: uint16(31258), + 25: uint16(31264), + 26: uint16(31252), + 27: uint16(31263), + 28: uint16(31262), + 29: uint16(31391), + 30: uint16(31392), + 31: uint16(31607), + 32: uint16(31680), + 33: uint16(31584), + 34: uint16(31598), + 35: uint16(31591), + 36: uint16(31921), + 37: uint16(31923), + 38: uint16(31925), + 39: uint16(32147), + 40: uint16(32121), + 41: uint16(32145), + 42: uint16(32129), + 43: uint16(32143), + 44: uint16(32091), + 45: uint16(32622), + 46: uint16(32617), + 47: uint16(32618), + 48: uint16(32626), + 49: uint16(32681), + 50: uint16(32680), + 51: uint16(32676), + 52: uint16(32854), + 53: uint16(32856), + 54: uint16(32902), + 55: uint16(32900), + 56: uint16(33137), + 57: uint16(33136), + 58: uint16(33144), + 59: uint16(33125), + 60: uint16(33134), + 61: uint16(33139), + 62: uint16(33131), + 63: uint16(33145), + 64: uint16(33146), + 65: uint16(33126), + 66: uint16(33285), + 67: uint16(33351), + 68: uint16(33922), + 69: uint16(33911), + 70: uint16(33853), + 71: uint16(33841), + 72: uint16(33909), + 73: uint16(33894), + 74: uint16(33899), + 75: uint16(33865), + 76: uint16(33900), + 77: uint16(33883), + 78: uint16(33852), + 79: uint16(33845), + 80: uint16(33889), + 81: uint16(33891), + 82: uint16(33897), + 83: uint16(33901), + 84: uint16(33862), + 85: uint16(34398), + 86: uint16(34396), + 87: uint16(34399), + 88: uint16(34553), + 89: uint16(34579), + 90: uint16(34568), + 91: uint16(34567), + 92: uint16(34560), + 93: uint16(34558), + 94: uint16(34555), + 95: uint16(34562), + 96: uint16(34563), + 97: uint16(34566), + 98: uint16(34570), + 99: uint16(34905), + 100: uint16(35039), + 101: uint16(35028), + 102: uint16(35033), + 103: uint16(35036), + 104: uint16(35032), + 105: uint16(35037), + 106: uint16(35041), + 107: uint16(35018), + 108: uint16(35029), + 109: uint16(35026), + 110: uint16(35228), + 111: uint16(35299), + 112: uint16(35435), + 113: uint16(35442), + 114: uint16(35443), + 115: uint16(35430), + 116: uint16(35433), + 117: uint16(35440), + 118: uint16(35463), + 119: uint16(35452), + 120: uint16(35427), + 121: uint16(35488), + 122: uint16(35441), + 123: uint16(35461), + 124: uint16(35437), + 125: uint16(35426), + 126: uint16(35438), + 127: uint16(35436), + 128: uint16(35449), + 129: uint16(35451), + 130: uint16(35390), + 131: uint16(35432), + 132: uint16(35938), + 133: uint16(35978), + 134: uint16(35977), + 135: uint16(36042), + 136: uint16(36039), + 137: uint16(36040), + 138: uint16(36036), + 139: uint16(36018), + 140: uint16(36035), + 141: uint16(36034), + 142: uint16(36037), + 143: uint16(36321), + 144: uint16(36319), + 145: uint16(36328), + 146: uint16(36335), + 147: uint16(36339), + 148: uint16(36346), + 149: uint16(36330), + 150: uint16(36324), + 151: uint16(36326), + 152: uint16(36530), + 153: uint16(36611), + 154: uint16(36617), + 155: uint16(36606), + 156: uint16(36618), + }, + 24: { + 0: uint16(36767), + 1: uint16(36786), + 2: uint16(36939), + 3: uint16(36938), + 4: uint16(36947), + 5: uint16(36930), + 6: uint16(36948), + 7: uint16(36924), + 8: uint16(36949), + 9: uint16(36944), + 10: uint16(36935), + 11: uint16(36943), + 12: uint16(36942), + 13: uint16(36941), + 14: uint16(36945), + 15: uint16(36926), + 16: uint16(36929), + 17: uint16(37138), + 18: uint16(37143), + 19: uint16(37228), + 20: uint16(37226), + 21: uint16(37225), + 22: uint16(37321), + 23: uint16(37431), + 24: uint16(37463), + 25: uint16(37432), + 26: uint16(37437), + 27: uint16(37440), + 28: uint16(37438), + 29: uint16(37467), + 30: uint16(37451), + 31: uint16(37476), + 32: uint16(37457), + 33: uint16(37428), + 34: uint16(37449), + 35: uint16(37453), + 36: uint16(37445), + 37: uint16(37433), + 38: uint16(37439), + 39: uint16(37466), + 40: uint16(38296), + 41: uint16(38552), + 42: uint16(38548), + 43: uint16(38549), + 44: uint16(38605), + 45: uint16(38603), + 46: uint16(38601), + 47: uint16(38602), + 48: uint16(38647), + 49: uint16(38651), + 50: uint16(38649), + 51: uint16(38646), + 52: uint16(38742), + 53: uint16(38772), + 54: uint16(38774), + 55: uint16(38928), + 56: uint16(38929), + 57: uint16(38931), + 58: uint16(38922), + 59: uint16(38930), + 60: uint16(38924), + 61: uint16(39164), + 62: uint16(39156), + 63: uint16(39165), + 64: uint16(39166), + 65: uint16(39347), + 66: uint16(39345), + 67: uint16(39348), + 68: uint16(39649), + 69: uint16(40169), + 70: uint16(40578), + 71: uint16(40718), + 72: uint16(40723), + 73: uint16(40736), + 74: uint16(20711), + 75: uint16(20718), + 76: uint16(20709), + 77: uint16(20694), + 78: uint16(20717), + 79: uint16(20698), + 80: uint16(20693), + 81: uint16(20687), + 82: uint16(20689), + 83: uint16(20721), + 84: uint16(20686), + 85: uint16(20713), + 86: uint16(20834), + 87: uint16(20979), + 88: uint16(21123), + 89: uint16(21122), + 90: uint16(21297), + 91: uint16(21421), + 92: uint16(22014), + 93: uint16(22016), + 94: uint16(22043), + 95: uint16(22039), + 96: uint16(22013), + 97: uint16(22036), + 98: uint16(22022), + 99: uint16(22025), + 100: uint16(22029), + 101: uint16(22030), + 102: uint16(22007), + 103: uint16(22038), + 104: uint16(22047), + 105: uint16(22024), + 106: uint16(22032), + 107: uint16(22006), + 108: uint16(22296), + 109: uint16(22294), + 110: uint16(22645), + 111: uint16(22654), + 112: uint16(22659), + 113: uint16(22675), + 114: uint16(22666), + 115: uint16(22649), + 116: uint16(22661), + 117: uint16(22653), + 118: uint16(22781), + 119: uint16(22821), + 120: uint16(22818), + 121: uint16(22820), + 122: uint16(22890), + 123: uint16(22889), + 124: uint16(23265), + 125: uint16(23270), + 126: uint16(23273), + 127: uint16(23255), + 128: uint16(23254), + 129: uint16(23256), + 130: uint16(23267), + 131: uint16(23413), + 132: uint16(23518), + 133: uint16(23527), + 134: uint16(23521), + 135: uint16(23525), + 136: uint16(23526), + 137: uint16(23528), + 138: uint16(23522), + 139: uint16(23524), + 140: uint16(23519), + 141: uint16(23565), + 142: uint16(23650), + 143: uint16(23940), + 144: uint16(23943), + 145: uint16(24155), + 146: uint16(24163), + 147: uint16(24149), + 148: uint16(24151), + 149: uint16(24148), + 150: uint16(24275), + 151: uint16(24278), + 152: uint16(24330), + 153: uint16(24390), + 154: uint16(24432), + 155: uint16(24505), + 156: uint16(24903), + }, + 25: { + 0: uint16(24895), + 1: uint16(24907), + 2: uint16(24951), + 3: uint16(24930), + 4: uint16(24931), + 5: uint16(24927), + 6: uint16(24922), + 7: uint16(24920), + 8: uint16(24949), + 9: uint16(25130), + 10: uint16(25735), + 11: uint16(25688), + 12: uint16(25684), + 13: uint16(25764), + 14: uint16(25720), + 15: uint16(25695), + 16: uint16(25722), + 17: uint16(25681), + 18: uint16(25703), + 19: uint16(25652), + 20: uint16(25709), + 21: uint16(25723), + 22: uint16(25970), + 23: uint16(26017), + 24: uint16(26071), + 25: uint16(26070), + 26: uint16(26274), + 27: uint16(26280), + 28: uint16(26269), + 29: uint16(27036), + 30: uint16(27048), + 31: uint16(27029), + 32: uint16(27073), + 33: uint16(27054), + 34: uint16(27091), + 35: uint16(27083), + 36: uint16(27035), + 37: uint16(27063), + 38: uint16(27067), + 39: uint16(27051), + 40: uint16(27060), + 41: uint16(27088), + 42: uint16(27085), + 43: uint16(27053), + 44: uint16(27084), + 45: uint16(27046), + 46: uint16(27075), + 47: uint16(27043), + 48: uint16(27465), + 49: uint16(27468), + 50: uint16(27699), + 51: uint16(28467), + 52: uint16(28436), + 53: uint16(28414), + 54: uint16(28435), + 55: uint16(28404), + 56: uint16(28457), + 57: uint16(28478), + 58: uint16(28448), + 59: uint16(28460), + 60: uint16(28431), + 61: uint16(28418), + 62: uint16(28450), + 63: uint16(28415), + 64: uint16(28399), + 65: uint16(28422), + 66: uint16(28465), + 67: uint16(28472), + 68: uint16(28466), + 69: uint16(28451), + 70: uint16(28437), + 71: uint16(28459), + 72: uint16(28463), + 73: uint16(28552), + 74: uint16(28458), + 75: uint16(28396), + 76: uint16(28417), + 77: uint16(28402), + 78: uint16(28364), + 79: uint16(28407), + 80: uint16(29076), + 81: uint16(29081), + 82: uint16(29053), + 83: uint16(29066), + 84: uint16(29060), + 85: uint16(29074), + 86: uint16(29246), + 87: uint16(29330), + 88: uint16(29334), + 89: uint16(29508), + 90: uint16(29520), + 91: uint16(29796), + 92: uint16(29795), + 93: uint16(29802), + 94: uint16(29808), + 95: uint16(29805), + 96: uint16(29956), + 97: uint16(30097), + 98: uint16(30247), + 99: uint16(30221), + 100: uint16(30219), + 101: uint16(30217), + 102: uint16(30227), + 103: uint16(30433), + 104: uint16(30435), + 105: uint16(30596), + 106: uint16(30589), + 107: uint16(30591), + 108: uint16(30561), + 109: uint16(30913), + 110: uint16(30879), + 111: uint16(30887), + 112: uint16(30899), + 113: uint16(30889), + 114: uint16(30883), + 115: uint16(31118), + 116: uint16(31119), + 117: uint16(31117), + 118: uint16(31278), + 119: uint16(31281), + 120: uint16(31402), + 121: uint16(31401), + 122: uint16(31469), + 123: uint16(31471), + 124: uint16(31649), + 125: uint16(31637), + 126: uint16(31627), + 127: uint16(31605), + 128: uint16(31639), + 129: uint16(31645), + 130: uint16(31636), + 131: uint16(31631), + 132: uint16(31672), + 133: uint16(31623), + 134: uint16(31620), + 135: uint16(31929), + 136: uint16(31933), + 137: uint16(31934), + 138: uint16(32187), + 139: uint16(32176), + 140: uint16(32156), + 141: uint16(32189), + 142: uint16(32190), + 143: uint16(32160), + 144: uint16(32202), + 145: uint16(32180), + 146: uint16(32178), + 147: uint16(32177), + 148: uint16(32186), + 149: uint16(32162), + 150: uint16(32191), + 151: uint16(32181), + 152: uint16(32184), + 153: uint16(32173), + 154: uint16(32210), + 155: uint16(32199), + 156: uint16(32172), + }, + 26: { + 0: uint16(32624), + 1: uint16(32736), + 2: uint16(32737), + 3: uint16(32735), + 4: uint16(32862), + 5: uint16(32858), + 6: uint16(32903), + 7: uint16(33104), + 8: uint16(33152), + 9: uint16(33167), + 10: uint16(33160), + 11: uint16(33162), + 12: uint16(33151), + 13: uint16(33154), + 14: uint16(33255), + 15: uint16(33274), + 16: uint16(33287), + 17: uint16(33300), + 18: uint16(33310), + 19: uint16(33355), + 20: uint16(33993), + 21: uint16(33983), + 22: uint16(33990), + 23: uint16(33988), + 24: uint16(33945), + 25: uint16(33950), + 26: uint16(33970), + 27: uint16(33948), + 28: uint16(33995), + 29: uint16(33976), + 30: uint16(33984), + 31: uint16(34003), + 32: uint16(33936), + 33: uint16(33980), + 34: uint16(34001), + 35: uint16(33994), + 36: uint16(34623), + 37: uint16(34588), + 38: uint16(34619), + 39: uint16(34594), + 40: uint16(34597), + 41: uint16(34612), + 42: uint16(34584), + 43: uint16(34645), + 44: uint16(34615), + 45: uint16(34601), + 46: uint16(35059), + 47: uint16(35074), + 48: uint16(35060), + 49: uint16(35065), + 50: uint16(35064), + 51: uint16(35069), + 52: uint16(35048), + 53: uint16(35098), + 54: uint16(35055), + 55: uint16(35494), + 56: uint16(35468), + 57: uint16(35486), + 58: uint16(35491), + 59: uint16(35469), + 60: uint16(35489), + 61: uint16(35475), + 62: uint16(35492), + 63: uint16(35498), + 64: uint16(35493), + 65: uint16(35496), + 66: uint16(35480), + 67: uint16(35473), + 68: uint16(35482), + 69: uint16(35495), + 70: uint16(35946), + 71: uint16(35981), + 72: uint16(35980), + 73: uint16(36051), + 74: uint16(36049), + 75: uint16(36050), + 76: uint16(36203), + 77: uint16(36249), + 78: uint16(36245), + 79: uint16(36348), + 80: uint16(36628), + 81: uint16(36626), + 82: uint16(36629), + 83: uint16(36627), + 84: uint16(36771), + 85: uint16(36960), + 86: uint16(36952), + 87: uint16(36956), + 88: uint16(36963), + 89: uint16(36953), + 90: uint16(36958), + 91: uint16(36962), + 92: uint16(36957), + 93: uint16(36955), + 94: uint16(37145), + 95: uint16(37144), + 96: uint16(37150), + 97: uint16(37237), + 98: uint16(37240), + 99: uint16(37239), + 100: uint16(37236), + 101: uint16(37496), + 102: uint16(37504), + 103: uint16(37509), + 104: uint16(37528), + 105: uint16(37526), + 106: uint16(37499), + 107: uint16(37523), + 108: uint16(37532), + 109: uint16(37544), + 110: uint16(37500), + 111: uint16(37521), + 112: uint16(38305), + 113: uint16(38312), + 114: uint16(38313), + 115: uint16(38307), + 116: uint16(38309), + 117: uint16(38308), + 118: uint16(38553), + 119: uint16(38556), + 120: uint16(38555), + 121: uint16(38604), + 122: uint16(38610), + 123: uint16(38656), + 124: uint16(38780), + 125: uint16(38789), + 126: uint16(38902), + 127: uint16(38935), + 128: uint16(38936), + 129: uint16(39087), + 130: uint16(39089), + 131: uint16(39171), + 132: uint16(39173), + 133: uint16(39180), + 134: uint16(39177), + 135: uint16(39361), + 136: uint16(39599), + 137: uint16(39600), + 138: uint16(39654), + 139: uint16(39745), + 140: uint16(39746), + 141: uint16(40180), + 142: uint16(40182), + 143: uint16(40179), + 144: uint16(40636), + 145: uint16(40763), + 146: uint16(40778), + 147: uint16(20740), + 148: uint16(20736), + 149: uint16(20731), + 150: uint16(20725), + 151: uint16(20729), + 152: uint16(20738), + 153: uint16(20744), + 154: uint16(20745), + 155: uint16(20741), + 156: uint16(20956), + }, + 27: { + 0: uint16(21127), + 1: uint16(21128), + 2: uint16(21129), + 3: uint16(21133), + 4: uint16(21130), + 5: uint16(21232), + 6: uint16(21426), + 7: uint16(22062), + 8: uint16(22075), + 9: uint16(22073), + 10: uint16(22066), + 11: uint16(22079), + 12: uint16(22068), + 13: uint16(22057), + 14: uint16(22099), + 15: uint16(22094), + 16: uint16(22103), + 17: uint16(22132), + 18: uint16(22070), + 19: uint16(22063), + 20: uint16(22064), + 21: uint16(22656), + 22: uint16(22687), + 23: uint16(22686), + 24: uint16(22707), + 25: uint16(22684), + 26: uint16(22702), + 27: uint16(22697), + 28: uint16(22694), + 29: uint16(22893), + 30: uint16(23305), + 31: uint16(23291), + 32: uint16(23307), + 33: uint16(23285), + 34: uint16(23308), + 35: uint16(23304), + 36: uint16(23534), + 37: uint16(23532), + 38: uint16(23529), + 39: uint16(23531), + 40: uint16(23652), + 41: uint16(23653), + 42: uint16(23965), + 43: uint16(23956), + 44: uint16(24162), + 45: uint16(24159), + 46: uint16(24161), + 47: uint16(24290), + 48: uint16(24282), + 49: uint16(24287), + 50: uint16(24285), + 51: uint16(24291), + 52: uint16(24288), + 53: uint16(24392), + 54: uint16(24433), + 55: uint16(24503), + 56: uint16(24501), + 57: uint16(24950), + 58: uint16(24935), + 59: uint16(24942), + 60: uint16(24925), + 61: uint16(24917), + 62: uint16(24962), + 63: uint16(24956), + 64: uint16(24944), + 65: uint16(24939), + 66: uint16(24958), + 67: uint16(24999), + 68: uint16(24976), + 69: uint16(25003), + 70: uint16(24974), + 71: uint16(25004), + 72: uint16(24986), + 73: uint16(24996), + 74: uint16(24980), + 75: uint16(25006), + 76: uint16(25134), + 77: uint16(25705), + 78: uint16(25711), + 79: uint16(25721), + 80: uint16(25758), + 81: uint16(25778), + 82: uint16(25736), + 83: uint16(25744), + 84: uint16(25776), + 85: uint16(25765), + 86: uint16(25747), + 87: uint16(25749), + 88: uint16(25769), + 89: uint16(25746), + 90: uint16(25774), + 91: uint16(25773), + 92: uint16(25771), + 93: uint16(25754), + 94: uint16(25772), + 95: uint16(25753), + 96: uint16(25762), + 97: uint16(25779), + 98: uint16(25973), + 99: uint16(25975), + 100: uint16(25976), + 101: uint16(26286), + 102: uint16(26283), + 103: uint16(26292), + 104: uint16(26289), + 105: uint16(27171), + 106: uint16(27167), + 107: uint16(27112), + 108: uint16(27137), + 109: uint16(27166), + 110: uint16(27161), + 111: uint16(27133), + 112: uint16(27169), + 113: uint16(27155), + 114: uint16(27146), + 115: uint16(27123), + 116: uint16(27138), + 117: uint16(27141), + 118: uint16(27117), + 119: uint16(27153), + 120: uint16(27472), + 121: uint16(27470), + 122: uint16(27556), + 123: uint16(27589), + 124: uint16(27590), + 125: uint16(28479), + 126: uint16(28540), + 127: uint16(28548), + 128: uint16(28497), + 129: uint16(28518), + 130: uint16(28500), + 131: uint16(28550), + 132: uint16(28525), + 133: uint16(28507), + 134: uint16(28536), + 135: uint16(28526), + 136: uint16(28558), + 137: uint16(28538), + 138: uint16(28528), + 139: uint16(28516), + 140: uint16(28567), + 141: uint16(28504), + 142: uint16(28373), + 143: uint16(28527), + 144: uint16(28512), + 145: uint16(28511), + 146: uint16(29087), + 147: uint16(29100), + 148: uint16(29105), + 149: uint16(29096), + 150: uint16(29270), + 151: uint16(29339), + 152: uint16(29518), + 153: uint16(29527), + 154: uint16(29801), + 155: uint16(29835), + 156: uint16(29827), + }, + 28: { + 0: uint16(29822), + 1: uint16(29824), + 2: uint16(30079), + 3: uint16(30240), + 4: uint16(30249), + 5: uint16(30239), + 6: uint16(30244), + 7: uint16(30246), + 8: uint16(30241), + 9: uint16(30242), + 10: uint16(30362), + 11: uint16(30394), + 12: uint16(30436), + 13: uint16(30606), + 14: uint16(30599), + 15: uint16(30604), + 16: uint16(30609), + 17: uint16(30603), + 18: uint16(30923), + 19: uint16(30917), + 20: uint16(30906), + 21: uint16(30922), + 22: uint16(30910), + 23: uint16(30933), + 24: uint16(30908), + 25: uint16(30928), + 26: uint16(31295), + 27: uint16(31292), + 28: uint16(31296), + 29: uint16(31293), + 30: uint16(31287), + 31: uint16(31291), + 32: uint16(31407), + 33: uint16(31406), + 34: uint16(31661), + 35: uint16(31665), + 36: uint16(31684), + 37: uint16(31668), + 38: uint16(31686), + 39: uint16(31687), + 40: uint16(31681), + 41: uint16(31648), + 42: uint16(31692), + 43: uint16(31946), + 44: uint16(32224), + 45: uint16(32244), + 46: uint16(32239), + 47: uint16(32251), + 48: uint16(32216), + 49: uint16(32236), + 50: uint16(32221), + 51: uint16(32232), + 52: uint16(32227), + 53: uint16(32218), + 54: uint16(32222), + 55: uint16(32233), + 56: uint16(32158), + 57: uint16(32217), + 58: uint16(32242), + 59: uint16(32249), + 60: uint16(32629), + 61: uint16(32631), + 62: uint16(32687), + 63: uint16(32745), + 64: uint16(32806), + 65: uint16(33179), + 66: uint16(33180), + 67: uint16(33181), + 68: uint16(33184), + 69: uint16(33178), + 70: uint16(33176), + 71: uint16(34071), + 72: uint16(34109), + 73: uint16(34074), + 74: uint16(34030), + 75: uint16(34092), + 76: uint16(34093), + 77: uint16(34067), + 78: uint16(34065), + 79: uint16(34083), + 80: uint16(34081), + 81: uint16(34068), + 82: uint16(34028), + 83: uint16(34085), + 84: uint16(34047), + 85: uint16(34054), + 86: uint16(34690), + 87: uint16(34676), + 88: uint16(34678), + 89: uint16(34656), + 90: uint16(34662), + 91: uint16(34680), + 92: uint16(34664), + 93: uint16(34649), + 94: uint16(34647), + 95: uint16(34636), + 96: uint16(34643), + 97: uint16(34907), + 98: uint16(34909), + 99: uint16(35088), + 100: uint16(35079), + 101: uint16(35090), + 102: uint16(35091), + 103: uint16(35093), + 104: uint16(35082), + 105: uint16(35516), + 106: uint16(35538), + 107: uint16(35527), + 108: uint16(35524), + 109: uint16(35477), + 110: uint16(35531), + 111: uint16(35576), + 112: uint16(35506), + 113: uint16(35529), + 114: uint16(35522), + 115: uint16(35519), + 116: uint16(35504), + 117: uint16(35542), + 118: uint16(35533), + 119: uint16(35510), + 120: uint16(35513), + 121: uint16(35547), + 122: uint16(35916), + 123: uint16(35918), + 124: uint16(35948), + 125: uint16(36064), + 126: uint16(36062), + 127: uint16(36070), + 128: uint16(36068), + 129: uint16(36076), + 130: uint16(36077), + 131: uint16(36066), + 132: uint16(36067), + 133: uint16(36060), + 134: uint16(36074), + 135: uint16(36065), + 136: uint16(36205), + 137: uint16(36255), + 138: uint16(36259), + 139: uint16(36395), + 140: uint16(36368), + 141: uint16(36381), + 142: uint16(36386), + 143: uint16(36367), + 144: uint16(36393), + 145: uint16(36383), + 146: uint16(36385), + 147: uint16(36382), + 148: uint16(36538), + 149: uint16(36637), + 150: uint16(36635), + 151: uint16(36639), + 152: uint16(36649), + 153: uint16(36646), + 154: uint16(36650), + 155: uint16(36636), + 156: uint16(36638), + }, + 29: { + 0: uint16(36645), + 1: uint16(36969), + 2: uint16(36974), + 3: uint16(36968), + 4: uint16(36973), + 5: uint16(36983), + 6: uint16(37168), + 7: uint16(37165), + 8: uint16(37159), + 9: uint16(37169), + 10: uint16(37255), + 11: uint16(37257), + 12: uint16(37259), + 13: uint16(37251), + 14: uint16(37573), + 15: uint16(37563), + 16: uint16(37559), + 17: uint16(37610), + 18: uint16(37548), + 19: uint16(37604), + 20: uint16(37569), + 21: uint16(37555), + 22: uint16(37564), + 23: uint16(37586), + 24: uint16(37575), + 25: uint16(37616), + 26: uint16(37554), + 27: uint16(38317), + 28: uint16(38321), + 29: uint16(38660), + 30: uint16(38662), + 31: uint16(38663), + 32: uint16(38665), + 33: uint16(38752), + 34: uint16(38797), + 35: uint16(38795), + 36: uint16(38799), + 37: uint16(38945), + 38: uint16(38955), + 39: uint16(38940), + 40: uint16(39091), + 41: uint16(39178), + 42: uint16(39187), + 43: uint16(39186), + 44: uint16(39192), + 45: uint16(39389), + 46: uint16(39376), + 47: uint16(39391), + 48: uint16(39387), + 49: uint16(39377), + 50: uint16(39381), + 51: uint16(39378), + 52: uint16(39385), + 53: uint16(39607), + 54: uint16(39662), + 55: uint16(39663), + 56: uint16(39719), + 57: uint16(39749), + 58: uint16(39748), + 59: uint16(39799), + 60: uint16(39791), + 61: uint16(40198), + 62: uint16(40201), + 63: uint16(40195), + 64: uint16(40617), + 65: uint16(40638), + 66: uint16(40654), + 67: uint16(22696), + 68: uint16(40786), + 69: uint16(20754), + 70: uint16(20760), + 71: uint16(20756), + 72: uint16(20752), + 73: uint16(20757), + 74: uint16(20864), + 75: uint16(20906), + 76: uint16(20957), + 77: uint16(21137), + 78: uint16(21139), + 79: uint16(21235), + 80: uint16(22105), + 81: uint16(22123), + 82: uint16(22137), + 83: uint16(22121), + 84: uint16(22116), + 85: uint16(22136), + 86: uint16(22122), + 87: uint16(22120), + 88: uint16(22117), + 89: uint16(22129), + 90: uint16(22127), + 91: uint16(22124), + 92: uint16(22114), + 93: uint16(22134), + 94: uint16(22721), + 95: uint16(22718), + 96: uint16(22727), + 97: uint16(22725), + 98: uint16(22894), + 99: uint16(23325), + 100: uint16(23348), + 101: uint16(23416), + 102: uint16(23536), + 103: uint16(23566), + 104: uint16(24394), + 105: uint16(25010), + 106: uint16(24977), + 107: uint16(25001), + 108: uint16(24970), + 109: uint16(25037), + 110: uint16(25014), + 111: uint16(25022), + 112: uint16(25034), + 113: uint16(25032), + 114: uint16(25136), + 115: uint16(25797), + 116: uint16(25793), + 117: uint16(25803), + 118: uint16(25787), + 119: uint16(25788), + 120: uint16(25818), + 121: uint16(25796), + 122: uint16(25799), + 123: uint16(25794), + 124: uint16(25805), + 125: uint16(25791), + 126: uint16(25810), + 127: uint16(25812), + 128: uint16(25790), + 129: uint16(25972), + 130: uint16(26310), + 131: uint16(26313), + 132: uint16(26297), + 133: uint16(26308), + 134: uint16(26311), + 135: uint16(26296), + 136: uint16(27197), + 137: uint16(27192), + 138: uint16(27194), + 139: uint16(27225), + 140: uint16(27243), + 141: uint16(27224), + 142: uint16(27193), + 143: uint16(27204), + 144: uint16(27234), + 145: uint16(27233), + 146: uint16(27211), + 147: uint16(27207), + 148: uint16(27189), + 149: uint16(27231), + 150: uint16(27208), + 151: uint16(27481), + 152: uint16(27511), + 153: uint16(27653), + 154: uint16(28610), + 155: uint16(28593), + 156: uint16(28577), + }, + 30: { + 0: uint16(28611), + 1: uint16(28580), + 2: uint16(28609), + 3: uint16(28583), + 4: uint16(28595), + 5: uint16(28608), + 6: uint16(28601), + 7: uint16(28598), + 8: uint16(28582), + 9: uint16(28576), + 10: uint16(28596), + 11: uint16(29118), + 12: uint16(29129), + 13: uint16(29136), + 14: uint16(29138), + 15: uint16(29128), + 16: uint16(29141), + 17: uint16(29113), + 18: uint16(29134), + 19: uint16(29145), + 20: uint16(29148), + 21: uint16(29123), + 22: uint16(29124), + 23: uint16(29544), + 24: uint16(29852), + 25: uint16(29859), + 26: uint16(29848), + 27: uint16(29855), + 28: uint16(29854), + 29: uint16(29922), + 30: uint16(29964), + 31: uint16(29965), + 32: uint16(30260), + 33: uint16(30264), + 34: uint16(30266), + 35: uint16(30439), + 36: uint16(30437), + 37: uint16(30624), + 38: uint16(30622), + 39: uint16(30623), + 40: uint16(30629), + 41: uint16(30952), + 42: uint16(30938), + 43: uint16(30956), + 44: uint16(30951), + 45: uint16(31142), + 46: uint16(31309), + 47: uint16(31310), + 48: uint16(31302), + 49: uint16(31308), + 50: uint16(31307), + 51: uint16(31418), + 52: uint16(31705), + 53: uint16(31761), + 54: uint16(31689), + 55: uint16(31716), + 56: uint16(31707), + 57: uint16(31713), + 58: uint16(31721), + 59: uint16(31718), + 60: uint16(31957), + 61: uint16(31958), + 62: uint16(32266), + 63: uint16(32273), + 64: uint16(32264), + 65: uint16(32283), + 66: uint16(32291), + 67: uint16(32286), + 68: uint16(32285), + 69: uint16(32265), + 70: uint16(32272), + 71: uint16(32633), + 72: uint16(32690), + 73: uint16(32752), + 74: uint16(32753), + 75: uint16(32750), + 76: uint16(32808), + 77: uint16(33203), + 78: uint16(33193), + 79: uint16(33192), + 80: uint16(33275), + 81: uint16(33288), + 82: uint16(33368), + 83: uint16(33369), + 84: uint16(34122), + 85: uint16(34137), + 86: uint16(34120), + 87: uint16(34152), + 88: uint16(34153), + 89: uint16(34115), + 90: uint16(34121), + 91: uint16(34157), + 92: uint16(34154), + 93: uint16(34142), + 94: uint16(34691), + 95: uint16(34719), + 96: uint16(34718), + 97: uint16(34722), + 98: uint16(34701), + 99: uint16(34913), + 100: uint16(35114), + 101: uint16(35122), + 102: uint16(35109), + 103: uint16(35115), + 104: uint16(35105), + 105: uint16(35242), + 106: uint16(35238), + 107: uint16(35558), + 108: uint16(35578), + 109: uint16(35563), + 110: uint16(35569), + 111: uint16(35584), + 112: uint16(35548), + 113: uint16(35559), + 114: uint16(35566), + 115: uint16(35582), + 116: uint16(35585), + 117: uint16(35586), + 118: uint16(35575), + 119: uint16(35565), + 120: uint16(35571), + 121: uint16(35574), + 122: uint16(35580), + 123: uint16(35947), + 124: uint16(35949), + 125: uint16(35987), + 126: uint16(36084), + 127: uint16(36420), + 128: uint16(36401), + 129: uint16(36404), + 130: uint16(36418), + 131: uint16(36409), + 132: uint16(36405), + 133: uint16(36667), + 134: uint16(36655), + 135: uint16(36664), + 136: uint16(36659), + 137: uint16(36776), + 138: uint16(36774), + 139: uint16(36981), + 140: uint16(36980), + 141: uint16(36984), + 142: uint16(36978), + 143: uint16(36988), + 144: uint16(36986), + 145: uint16(37172), + 146: uint16(37266), + 147: uint16(37664), + 148: uint16(37686), + 149: uint16(37624), + 150: uint16(37683), + 151: uint16(37679), + 152: uint16(37666), + 153: uint16(37628), + 154: uint16(37675), + 155: uint16(37636), + 156: uint16(37658), + }, + 31: { + 0: uint16(37648), + 1: uint16(37670), + 2: uint16(37665), + 3: uint16(37653), + 4: uint16(37678), + 5: uint16(37657), + 6: uint16(38331), + 7: uint16(38567), + 8: uint16(38568), + 9: uint16(38570), + 10: uint16(38613), + 11: uint16(38670), + 12: uint16(38673), + 13: uint16(38678), + 14: uint16(38669), + 15: uint16(38675), + 16: uint16(38671), + 17: uint16(38747), + 18: uint16(38748), + 19: uint16(38758), + 20: uint16(38808), + 21: uint16(38960), + 22: uint16(38968), + 23: uint16(38971), + 24: uint16(38967), + 25: uint16(38957), + 26: uint16(38969), + 27: uint16(38948), + 28: uint16(39184), + 29: uint16(39208), + 30: uint16(39198), + 31: uint16(39195), + 32: uint16(39201), + 33: uint16(39194), + 34: uint16(39405), + 35: uint16(39394), + 36: uint16(39409), + 37: uint16(39608), + 38: uint16(39612), + 39: uint16(39675), + 40: uint16(39661), + 41: uint16(39720), + 42: uint16(39825), + 43: uint16(40213), + 44: uint16(40227), + 45: uint16(40230), + 46: uint16(40232), + 47: uint16(40210), + 48: uint16(40219), + 49: uint16(40664), + 50: uint16(40660), + 51: uint16(40845), + 52: uint16(40860), + 53: uint16(20778), + 54: uint16(20767), + 55: uint16(20769), + 56: uint16(20786), + 57: uint16(21237), + 58: uint16(22158), + 59: uint16(22144), + 60: uint16(22160), + 61: uint16(22149), + 62: uint16(22151), + 63: uint16(22159), + 64: uint16(22741), + 65: uint16(22739), + 66: uint16(22737), + 67: uint16(22734), + 68: uint16(23344), + 69: uint16(23338), + 70: uint16(23332), + 71: uint16(23418), + 72: uint16(23607), + 73: uint16(23656), + 74: uint16(23996), + 75: uint16(23994), + 76: uint16(23997), + 77: uint16(23992), + 78: uint16(24171), + 79: uint16(24396), + 80: uint16(24509), + 81: uint16(25033), + 82: uint16(25026), + 83: uint16(25031), + 84: uint16(25062), + 85: uint16(25035), + 86: uint16(25138), + 87: uint16(25140), + 88: uint16(25806), + 89: uint16(25802), + 90: uint16(25816), + 91: uint16(25824), + 92: uint16(25840), + 93: uint16(25830), + 94: uint16(25836), + 95: uint16(25841), + 96: uint16(25826), + 97: uint16(25837), + 98: uint16(25986), + 99: uint16(25987), + 100: uint16(26329), + 101: uint16(26326), + 102: uint16(27264), + 103: uint16(27284), + 104: uint16(27268), + 105: uint16(27298), + 106: uint16(27292), + 107: uint16(27355), + 108: uint16(27299), + 109: uint16(27262), + 110: uint16(27287), + 111: uint16(27280), + 112: uint16(27296), + 113: uint16(27484), + 114: uint16(27566), + 115: uint16(27610), + 116: uint16(27656), + 117: uint16(28632), + 118: uint16(28657), + 119: uint16(28639), + 120: uint16(28640), + 121: uint16(28635), + 122: uint16(28644), + 123: uint16(28651), + 124: uint16(28655), + 125: uint16(28544), + 126: uint16(28652), + 127: uint16(28641), + 128: uint16(28649), + 129: uint16(28629), + 130: uint16(28654), + 131: uint16(28656), + 132: uint16(29159), + 133: uint16(29151), + 134: uint16(29166), + 135: uint16(29158), + 136: uint16(29157), + 137: uint16(29165), + 138: uint16(29164), + 139: uint16(29172), + 140: uint16(29152), + 141: uint16(29237), + 142: uint16(29254), + 143: uint16(29552), + 144: uint16(29554), + 145: uint16(29865), + 146: uint16(29872), + 147: uint16(29862), + 148: uint16(29864), + 149: uint16(30278), + 150: uint16(30274), + 151: uint16(30284), + 152: uint16(30442), + 153: uint16(30643), + 154: uint16(30634), + 155: uint16(30640), + 156: uint16(30636), + }, + 32: { + 0: uint16(30631), + 1: uint16(30637), + 2: uint16(30703), + 3: uint16(30967), + 4: uint16(30970), + 5: uint16(30964), + 6: uint16(30959), + 7: uint16(30977), + 8: uint16(31143), + 9: uint16(31146), + 10: uint16(31319), + 11: uint16(31423), + 12: uint16(31751), + 13: uint16(31757), + 14: uint16(31742), + 15: uint16(31735), + 16: uint16(31756), + 17: uint16(31712), + 18: uint16(31968), + 19: uint16(31964), + 20: uint16(31966), + 21: uint16(31970), + 22: uint16(31967), + 23: uint16(31961), + 24: uint16(31965), + 25: uint16(32302), + 26: uint16(32318), + 27: uint16(32326), + 28: uint16(32311), + 29: uint16(32306), + 30: uint16(32323), + 31: uint16(32299), + 32: uint16(32317), + 33: uint16(32305), + 34: uint16(32325), + 35: uint16(32321), + 36: uint16(32308), + 37: uint16(32313), + 38: uint16(32328), + 39: uint16(32309), + 40: uint16(32319), + 41: uint16(32303), + 42: uint16(32580), + 43: uint16(32755), + 44: uint16(32764), + 45: uint16(32881), + 46: uint16(32882), + 47: uint16(32880), + 48: uint16(32879), + 49: uint16(32883), + 50: uint16(33222), + 51: uint16(33219), + 52: uint16(33210), + 53: uint16(33218), + 54: uint16(33216), + 55: uint16(33215), + 56: uint16(33213), + 57: uint16(33225), + 58: uint16(33214), + 59: uint16(33256), + 60: uint16(33289), + 61: uint16(33393), + 62: uint16(34218), + 63: uint16(34180), + 64: uint16(34174), + 65: uint16(34204), + 66: uint16(34193), + 67: uint16(34196), + 68: uint16(34223), + 69: uint16(34203), + 70: uint16(34183), + 71: uint16(34216), + 72: uint16(34186), + 73: uint16(34407), + 74: uint16(34752), + 75: uint16(34769), + 76: uint16(34739), + 77: uint16(34770), + 78: uint16(34758), + 79: uint16(34731), + 80: uint16(34747), + 81: uint16(34746), + 82: uint16(34760), + 83: uint16(34763), + 84: uint16(35131), + 85: uint16(35126), + 86: uint16(35140), + 87: uint16(35128), + 88: uint16(35133), + 89: uint16(35244), + 90: uint16(35598), + 91: uint16(35607), + 92: uint16(35609), + 93: uint16(35611), + 94: uint16(35594), + 95: uint16(35616), + 96: uint16(35613), + 97: uint16(35588), + 98: uint16(35600), + 99: uint16(35905), + 100: uint16(35903), + 101: uint16(35955), + 102: uint16(36090), + 103: uint16(36093), + 104: uint16(36092), + 105: uint16(36088), + 106: uint16(36091), + 107: uint16(36264), + 108: uint16(36425), + 109: uint16(36427), + 110: uint16(36424), + 111: uint16(36426), + 112: uint16(36676), + 113: uint16(36670), + 114: uint16(36674), + 115: uint16(36677), + 116: uint16(36671), + 117: uint16(36991), + 118: uint16(36989), + 119: uint16(36996), + 120: uint16(36993), + 121: uint16(36994), + 122: uint16(36992), + 123: uint16(37177), + 124: uint16(37283), + 125: uint16(37278), + 126: uint16(37276), + 127: uint16(37709), + 128: uint16(37762), + 129: uint16(37672), + 130: uint16(37749), + 131: uint16(37706), + 132: uint16(37733), + 133: uint16(37707), + 134: uint16(37656), + 135: uint16(37758), + 136: uint16(37740), + 137: uint16(37723), + 138: uint16(37744), + 139: uint16(37722), + 140: uint16(37716), + 141: uint16(38346), + 142: uint16(38347), + 143: uint16(38348), + 144: uint16(38344), + 145: uint16(38342), + 146: uint16(38577), + 147: uint16(38584), + 148: uint16(38614), + 149: uint16(38684), + 150: uint16(38686), + 151: uint16(38816), + 152: uint16(38867), + 153: uint16(38982), + 154: uint16(39094), + 155: uint16(39221), + 156: uint16(39425), + }, + 33: { + 0: uint16(39423), + 1: uint16(39854), + 2: uint16(39851), + 3: uint16(39850), + 4: uint16(39853), + 5: uint16(40251), + 6: uint16(40255), + 7: uint16(40587), + 8: uint16(40655), + 9: uint16(40670), + 10: uint16(40668), + 11: uint16(40669), + 12: uint16(40667), + 13: uint16(40766), + 14: uint16(40779), + 15: uint16(21474), + 16: uint16(22165), + 17: uint16(22190), + 18: uint16(22745), + 19: uint16(22744), + 20: uint16(23352), + 21: uint16(24413), + 22: uint16(25059), + 23: uint16(25139), + 24: uint16(25844), + 25: uint16(25842), + 26: uint16(25854), + 27: uint16(25862), + 28: uint16(25850), + 29: uint16(25851), + 30: uint16(25847), + 31: uint16(26039), + 32: uint16(26332), + 33: uint16(26406), + 34: uint16(27315), + 35: uint16(27308), + 36: uint16(27331), + 37: uint16(27323), + 38: uint16(27320), + 39: uint16(27330), + 40: uint16(27310), + 41: uint16(27311), + 42: uint16(27487), + 43: uint16(27512), + 44: uint16(27567), + 45: uint16(28681), + 46: uint16(28683), + 47: uint16(28670), + 48: uint16(28678), + 49: uint16(28666), + 50: uint16(28689), + 51: uint16(28687), + 52: uint16(29179), + 53: uint16(29180), + 54: uint16(29182), + 55: uint16(29176), + 56: uint16(29559), + 57: uint16(29557), + 58: uint16(29863), + 59: uint16(29887), + 60: uint16(29973), + 61: uint16(30294), + 62: uint16(30296), + 63: uint16(30290), + 64: uint16(30653), + 65: uint16(30655), + 66: uint16(30651), + 67: uint16(30652), + 68: uint16(30990), + 69: uint16(31150), + 70: uint16(31329), + 71: uint16(31330), + 72: uint16(31328), + 73: uint16(31428), + 74: uint16(31429), + 75: uint16(31787), + 76: uint16(31783), + 77: uint16(31786), + 78: uint16(31774), + 79: uint16(31779), + 80: uint16(31777), + 81: uint16(31975), + 82: uint16(32340), + 83: uint16(32341), + 84: uint16(32350), + 85: uint16(32346), + 86: uint16(32353), + 87: uint16(32338), + 88: uint16(32345), + 89: uint16(32584), + 90: uint16(32761), + 91: uint16(32763), + 92: uint16(32887), + 93: uint16(32886), + 94: uint16(33229), + 95: uint16(33231), + 96: uint16(33290), + 97: uint16(34255), + 98: uint16(34217), + 99: uint16(34253), + 100: uint16(34256), + 101: uint16(34249), + 102: uint16(34224), + 103: uint16(34234), + 104: uint16(34233), + 105: uint16(34214), + 106: uint16(34799), + 107: uint16(34796), + 108: uint16(34802), + 109: uint16(34784), + 110: uint16(35206), + 111: uint16(35250), + 112: uint16(35316), + 113: uint16(35624), + 114: uint16(35641), + 115: uint16(35628), + 116: uint16(35627), + 117: uint16(35920), + 118: uint16(36101), + 119: uint16(36441), + 120: uint16(36451), + 121: uint16(36454), + 122: uint16(36452), + 123: uint16(36447), + 124: uint16(36437), + 125: uint16(36544), + 126: uint16(36681), + 127: uint16(36685), + 128: uint16(36999), + 129: uint16(36995), + 130: uint16(37000), + 131: uint16(37291), + 132: uint16(37292), + 133: uint16(37328), + 134: uint16(37780), + 135: uint16(37770), + 136: uint16(37782), + 137: uint16(37794), + 138: uint16(37811), + 139: uint16(37806), + 140: uint16(37804), + 141: uint16(37808), + 142: uint16(37784), + 143: uint16(37786), + 144: uint16(37783), + 145: uint16(38356), + 146: uint16(38358), + 147: uint16(38352), + 148: uint16(38357), + 149: uint16(38626), + 150: uint16(38620), + 151: uint16(38617), + 152: uint16(38619), + 153: uint16(38622), + 154: uint16(38692), + 155: uint16(38819), + 156: uint16(38822), + }, + 34: { + 0: uint16(38829), + 1: uint16(38905), + 2: uint16(38989), + 3: uint16(38991), + 4: uint16(38988), + 5: uint16(38990), + 6: uint16(38995), + 7: uint16(39098), + 8: uint16(39230), + 9: uint16(39231), + 10: uint16(39229), + 11: uint16(39214), + 12: uint16(39333), + 13: uint16(39438), + 14: uint16(39617), + 15: uint16(39683), + 16: uint16(39686), + 17: uint16(39759), + 18: uint16(39758), + 19: uint16(39757), + 20: uint16(39882), + 21: uint16(39881), + 22: uint16(39933), + 23: uint16(39880), + 24: uint16(39872), + 25: uint16(40273), + 26: uint16(40285), + 27: uint16(40288), + 28: uint16(40672), + 29: uint16(40725), + 30: uint16(40748), + 31: uint16(20787), + 32: uint16(22181), + 33: uint16(22750), + 34: uint16(22751), + 35: uint16(22754), + 36: uint16(23541), + 37: uint16(40848), + 38: uint16(24300), + 39: uint16(25074), + 40: uint16(25079), + 41: uint16(25078), + 42: uint16(25077), + 43: uint16(25856), + 44: uint16(25871), + 45: uint16(26336), + 46: uint16(26333), + 47: uint16(27365), + 48: uint16(27357), + 49: uint16(27354), + 50: uint16(27347), + 51: uint16(28699), + 52: uint16(28703), + 53: uint16(28712), + 54: uint16(28698), + 55: uint16(28701), + 56: uint16(28693), + 57: uint16(28696), + 58: uint16(29190), + 59: uint16(29197), + 60: uint16(29272), + 61: uint16(29346), + 62: uint16(29560), + 63: uint16(29562), + 64: uint16(29885), + 65: uint16(29898), + 66: uint16(29923), + 67: uint16(30087), + 68: uint16(30086), + 69: uint16(30303), + 70: uint16(30305), + 71: uint16(30663), + 72: uint16(31001), + 73: uint16(31153), + 74: uint16(31339), + 75: uint16(31337), + 76: uint16(31806), + 77: uint16(31807), + 78: uint16(31800), + 79: uint16(31805), + 80: uint16(31799), + 81: uint16(31808), + 82: uint16(32363), + 83: uint16(32365), + 84: uint16(32377), + 85: uint16(32361), + 86: uint16(32362), + 87: uint16(32645), + 88: uint16(32371), + 89: uint16(32694), + 90: uint16(32697), + 91: uint16(32696), + 92: uint16(33240), + 93: uint16(34281), + 94: uint16(34269), + 95: uint16(34282), + 96: uint16(34261), + 97: uint16(34276), + 98: uint16(34277), + 99: uint16(34295), + 100: uint16(34811), + 101: uint16(34821), + 102: uint16(34829), + 103: uint16(34809), + 104: uint16(34814), + 105: uint16(35168), + 106: uint16(35167), + 107: uint16(35158), + 108: uint16(35166), + 109: uint16(35649), + 110: uint16(35676), + 111: uint16(35672), + 112: uint16(35657), + 113: uint16(35674), + 114: uint16(35662), + 115: uint16(35663), + 116: uint16(35654), + 117: uint16(35673), + 118: uint16(36104), + 119: uint16(36106), + 120: uint16(36476), + 121: uint16(36466), + 122: uint16(36487), + 123: uint16(36470), + 124: uint16(36460), + 125: uint16(36474), + 126: uint16(36468), + 127: uint16(36692), + 128: uint16(36686), + 129: uint16(36781), + 130: uint16(37002), + 131: uint16(37003), + 132: uint16(37297), + 133: uint16(37294), + 134: uint16(37857), + 135: uint16(37841), + 136: uint16(37855), + 137: uint16(37827), + 138: uint16(37832), + 139: uint16(37852), + 140: uint16(37853), + 141: uint16(37846), + 142: uint16(37858), + 143: uint16(37837), + 144: uint16(37848), + 145: uint16(37860), + 146: uint16(37847), + 147: uint16(37864), + 148: uint16(38364), + 149: uint16(38580), + 150: uint16(38627), + 151: uint16(38698), + 152: uint16(38695), + 153: uint16(38753), + 154: uint16(38876), + 155: uint16(38907), + 156: uint16(39006), + }, + 35: { + 0: uint16(39000), + 1: uint16(39003), + 2: uint16(39100), + 3: uint16(39237), + 4: uint16(39241), + 5: uint16(39446), + 6: uint16(39449), + 7: uint16(39693), + 8: uint16(39912), + 9: uint16(39911), + 10: uint16(39894), + 11: uint16(39899), + 12: uint16(40329), + 13: uint16(40289), + 14: uint16(40306), + 15: uint16(40298), + 16: uint16(40300), + 17: uint16(40594), + 18: uint16(40599), + 19: uint16(40595), + 20: uint16(40628), + 21: uint16(21240), + 22: uint16(22184), + 23: uint16(22199), + 24: uint16(22198), + 25: uint16(22196), + 26: uint16(22204), + 27: uint16(22756), + 28: uint16(23360), + 29: uint16(23363), + 30: uint16(23421), + 31: uint16(23542), + 32: uint16(24009), + 33: uint16(25080), + 34: uint16(25082), + 35: uint16(25880), + 36: uint16(25876), + 37: uint16(25881), + 38: uint16(26342), + 39: uint16(26407), + 40: uint16(27372), + 41: uint16(28734), + 42: uint16(28720), + 43: uint16(28722), + 44: uint16(29200), + 45: uint16(29563), + 46: uint16(29903), + 47: uint16(30306), + 48: uint16(30309), + 49: uint16(31014), + 50: uint16(31018), + 51: uint16(31020), + 52: uint16(31019), + 53: uint16(31431), + 54: uint16(31478), + 55: uint16(31820), + 56: uint16(31811), + 57: uint16(31821), + 58: uint16(31983), + 59: uint16(31984), + 60: uint16(36782), + 61: uint16(32381), + 62: uint16(32380), + 63: uint16(32386), + 64: uint16(32588), + 65: uint16(32768), + 66: uint16(33242), + 67: uint16(33382), + 68: uint16(34299), + 69: uint16(34297), + 70: uint16(34321), + 71: uint16(34298), + 72: uint16(34310), + 73: uint16(34315), + 74: uint16(34311), + 75: uint16(34314), + 76: uint16(34836), + 77: uint16(34837), + 78: uint16(35172), + 79: uint16(35258), + 80: uint16(35320), + 81: uint16(35696), + 82: uint16(35692), + 83: uint16(35686), + 84: uint16(35695), + 85: uint16(35679), + 86: uint16(35691), + 87: uint16(36111), + 88: uint16(36109), + 89: uint16(36489), + 90: uint16(36481), + 91: uint16(36485), + 92: uint16(36482), + 93: uint16(37300), + 94: uint16(37323), + 95: uint16(37912), + 96: uint16(37891), + 97: uint16(37885), + 98: uint16(38369), + 99: uint16(38704), + 100: uint16(39108), + 101: uint16(39250), + 102: uint16(39249), + 103: uint16(39336), + 104: uint16(39467), + 105: uint16(39472), + 106: uint16(39479), + 107: uint16(39477), + 108: uint16(39955), + 109: uint16(39949), + 110: uint16(40569), + 111: uint16(40629), + 112: uint16(40680), + 113: uint16(40751), + 114: uint16(40799), + 115: uint16(40803), + 116: uint16(40801), + 117: uint16(20791), + 118: uint16(20792), + 119: uint16(22209), + 120: uint16(22208), + 121: uint16(22210), + 122: uint16(22804), + 123: uint16(23660), + 124: uint16(24013), + 125: uint16(25084), + 126: uint16(25086), + 127: uint16(25885), + 128: uint16(25884), + 129: uint16(26005), + 130: uint16(26345), + 131: uint16(27387), + 132: uint16(27396), + 133: uint16(27386), + 134: uint16(27570), + 135: uint16(28748), + 136: uint16(29211), + 137: uint16(29351), + 138: uint16(29910), + 139: uint16(29908), + 140: uint16(30313), + 141: uint16(30675), + 142: uint16(31824), + 143: uint16(32399), + 144: uint16(32396), + 145: uint16(32700), + 146: uint16(34327), + 147: uint16(34349), + 148: uint16(34330), + 149: uint16(34851), + 150: uint16(34850), + 151: uint16(34849), + 152: uint16(34847), + 153: uint16(35178), + 154: uint16(35180), + 155: uint16(35261), + 156: uint16(35700), + }, + 36: { + 0: uint16(35703), + 1: uint16(35709), + 2: uint16(36115), + 3: uint16(36490), + 4: uint16(36493), + 5: uint16(36491), + 6: uint16(36703), + 7: uint16(36783), + 8: uint16(37306), + 9: uint16(37934), + 10: uint16(37939), + 11: uint16(37941), + 12: uint16(37946), + 13: uint16(37944), + 14: uint16(37938), + 15: uint16(37931), + 16: uint16(38370), + 17: uint16(38712), + 18: uint16(38713), + 19: uint16(38706), + 20: uint16(38911), + 21: uint16(39015), + 22: uint16(39013), + 23: uint16(39255), + 24: uint16(39493), + 25: uint16(39491), + 26: uint16(39488), + 27: uint16(39486), + 28: uint16(39631), + 29: uint16(39764), + 30: uint16(39761), + 31: uint16(39981), + 32: uint16(39973), + 33: uint16(40367), + 34: uint16(40372), + 35: uint16(40386), + 36: uint16(40376), + 37: uint16(40605), + 38: uint16(40687), + 39: uint16(40729), + 40: uint16(40796), + 41: uint16(40806), + 42: uint16(40807), + 43: uint16(20796), + 44: uint16(20795), + 45: uint16(22216), + 46: uint16(22218), + 47: uint16(22217), + 48: uint16(23423), + 49: uint16(24020), + 50: uint16(24018), + 51: uint16(24398), + 52: uint16(25087), + 53: uint16(25892), + 54: uint16(27402), + 55: uint16(27489), + 56: uint16(28753), + 57: uint16(28760), + 58: uint16(29568), + 59: uint16(29924), + 60: uint16(30090), + 61: uint16(30318), + 62: uint16(30316), + 63: uint16(31155), + 64: uint16(31840), + 65: uint16(31839), + 66: uint16(32894), + 67: uint16(32893), + 68: uint16(33247), + 69: uint16(35186), + 70: uint16(35183), + 71: uint16(35324), + 72: uint16(35712), + 73: uint16(36118), + 74: uint16(36119), + 75: uint16(36497), + 76: uint16(36499), + 77: uint16(36705), + 78: uint16(37192), + 79: uint16(37956), + 80: uint16(37969), + 81: uint16(37970), + 82: uint16(38717), + 83: uint16(38718), + 84: uint16(38851), + 85: uint16(38849), + 86: uint16(39019), + 87: uint16(39253), + 88: uint16(39509), + 89: uint16(39501), + 90: uint16(39634), + 91: uint16(39706), + 92: uint16(40009), + 93: uint16(39985), + 94: uint16(39998), + 95: uint16(39995), + 96: uint16(40403), + 97: uint16(40407), + 98: uint16(40756), + 99: uint16(40812), + 100: uint16(40810), + 101: uint16(40852), + 102: uint16(22220), + 103: uint16(24022), + 104: uint16(25088), + 105: uint16(25891), + 106: uint16(25899), + 107: uint16(25898), + 108: uint16(26348), + 109: uint16(27408), + 110: uint16(29914), + 111: uint16(31434), + 112: uint16(31844), + 113: uint16(31843), + 114: uint16(31845), + 115: uint16(32403), + 116: uint16(32406), + 117: uint16(32404), + 118: uint16(33250), + 119: uint16(34360), + 120: uint16(34367), + 121: uint16(34865), + 122: uint16(35722), + 123: uint16(37008), + 124: uint16(37007), + 125: uint16(37987), + 126: uint16(37984), + 127: uint16(37988), + 128: uint16(38760), + 129: uint16(39023), + 130: uint16(39260), + 131: uint16(39514), + 132: uint16(39515), + 133: uint16(39511), + 134: uint16(39635), + 135: uint16(39636), + 136: uint16(39633), + 137: uint16(40020), + 138: uint16(40023), + 139: uint16(40022), + 140: uint16(40421), + 141: uint16(40607), + 142: uint16(40692), + 143: uint16(22225), + 144: uint16(22761), + 145: uint16(25900), + 146: uint16(28766), + 147: uint16(30321), + 148: uint16(30322), + 149: uint16(30679), + 150: uint16(32592), + 151: uint16(32648), + 152: uint16(34870), + 153: uint16(34873), + 154: uint16(34914), + 155: uint16(35731), + 156: uint16(35730), + }, + 37: { + 0: uint16(35734), + 1: uint16(33399), + 2: uint16(36123), + 3: uint16(37312), + 4: uint16(37994), + 5: uint16(38722), + 6: uint16(38728), + 7: uint16(38724), + 8: uint16(38854), + 9: uint16(39024), + 10: uint16(39519), + 11: uint16(39714), + 12: uint16(39768), + 13: uint16(40031), + 14: uint16(40441), + 15: uint16(40442), + 16: uint16(40572), + 17: uint16(40573), + 18: uint16(40711), + 19: uint16(40823), + 20: uint16(40818), + 21: uint16(24307), + 22: uint16(27414), + 23: uint16(28771), + 24: uint16(31852), + 25: uint16(31854), + 26: uint16(34875), + 27: uint16(35264), + 28: uint16(36513), + 29: uint16(37313), + 30: uint16(38002), + 31: uint16(38000), + 32: uint16(39025), + 33: uint16(39262), + 34: uint16(39638), + 35: uint16(39715), + 36: uint16(40652), + 37: uint16(28772), + 38: uint16(30682), + 39: uint16(35738), + 40: uint16(38007), + 41: uint16(38857), + 42: uint16(39522), + 43: uint16(39525), + 44: uint16(32412), + 45: uint16(35740), + 46: uint16(36522), + 47: uint16(37317), + 48: uint16(38013), + 49: uint16(38014), + 50: uint16(38012), + 51: uint16(40055), + 52: uint16(40056), + 53: uint16(40695), + 54: uint16(35924), + 55: uint16(38015), + 56: uint16(40474), + 57: uint16(29224), + 58: uint16(39530), + 59: uint16(39729), + 60: uint16(40475), + 61: uint16(40478), + 62: uint16(31858), + 63: uint16(9312), + 64: uint16(9313), + 65: uint16(9314), + 66: uint16(9315), + 67: uint16(9316), + 68: uint16(9317), + 69: uint16(9318), + 70: uint16(9319), + 71: uint16(9320), + 72: uint16(9321), + 73: uint16(9332), + 74: uint16(9333), + 75: uint16(9334), + 76: uint16(9335), + 77: uint16(9336), + 78: uint16(9337), + 79: uint16(9338), + 80: uint16(9339), + 81: uint16(9340), + 82: uint16(9341), + 83: uint16(8560), + 84: uint16(8561), + 85: uint16(8562), + 86: uint16(8563), + 87: uint16(8564), + 88: uint16(8565), + 89: uint16(8566), + 90: uint16(8567), + 91: uint16(8568), + 92: uint16(8569), + 93: uint16(20022), + 94: uint16(20031), + 95: uint16(20101), + 96: uint16(20128), + 97: uint16(20866), + 98: uint16(20886), + 99: uint16(20907), + 100: uint16(21241), + 101: uint16(21304), + 102: uint16(21353), + 103: uint16(21430), + 104: uint16(22794), + 105: uint16(23424), + 106: uint16(24027), + 107: uint16(24186), + 108: uint16(24191), + 109: uint16(24308), + 110: uint16(24400), + 111: uint16(24417), + 112: uint16(25908), + 113: uint16(26080), + 114: uint16(30098), + 115: uint16(30326), + 116: uint16(36789), + 117: uint16(38582), + 118: uint16(168), + 119: uint16(710), + 120: uint16(12541), + 121: uint16(12542), + 122: uint16(12445), + 123: uint16(12446), + 126: uint16(12293), + 127: uint16(12294), + 128: uint16(12295), + 129: uint16(12540), + 130: uint16(65339), + 131: uint16(65341), + 132: uint16(10045), + 133: uint16(12353), + 134: uint16(12354), + 135: uint16(12355), + 136: uint16(12356), + 137: uint16(12357), + 138: uint16(12358), + 139: uint16(12359), + 140: uint16(12360), + 141: uint16(12361), + 142: uint16(12362), + 143: uint16(12363), + 144: uint16(12364), + 145: uint16(12365), + 146: uint16(12366), + 147: uint16(12367), + 148: uint16(12368), + 149: uint16(12369), + 150: uint16(12370), + 151: uint16(12371), + 152: uint16(12372), + 153: uint16(12373), + 154: uint16(12374), + 155: uint16(12375), + 156: uint16(12376), + }, + 38: { + 0: uint16(12377), + 1: uint16(12378), + 2: uint16(12379), + 3: uint16(12380), + 4: uint16(12381), + 5: uint16(12382), + 6: uint16(12383), + 7: uint16(12384), + 8: uint16(12385), + 9: uint16(12386), + 10: uint16(12387), + 11: uint16(12388), + 12: uint16(12389), + 13: uint16(12390), + 14: uint16(12391), + 15: uint16(12392), + 16: uint16(12393), + 17: uint16(12394), + 18: uint16(12395), + 19: uint16(12396), + 20: uint16(12397), + 21: uint16(12398), + 22: uint16(12399), + 23: uint16(12400), + 24: uint16(12401), + 25: uint16(12402), + 26: uint16(12403), + 27: uint16(12404), + 28: uint16(12405), + 29: uint16(12406), + 30: uint16(12407), + 31: uint16(12408), + 32: uint16(12409), + 33: uint16(12410), + 34: uint16(12411), + 35: uint16(12412), + 36: uint16(12413), + 37: uint16(12414), + 38: uint16(12415), + 39: uint16(12416), + 40: uint16(12417), + 41: uint16(12418), + 42: uint16(12419), + 43: uint16(12420), + 44: uint16(12421), + 45: uint16(12422), + 46: uint16(12423), + 47: uint16(12424), + 48: uint16(12425), + 49: uint16(12426), + 50: uint16(12427), + 51: uint16(12428), + 52: uint16(12429), + 53: uint16(12430), + 54: uint16(12431), + 55: uint16(12432), + 56: uint16(12433), + 57: uint16(12434), + 58: uint16(12435), + 59: uint16(12449), + 60: uint16(12450), + 61: uint16(12451), + 62: uint16(12452), + 63: uint16(12453), + 64: uint16(12454), + 65: uint16(12455), + 66: uint16(12456), + 67: uint16(12457), + 68: uint16(12458), + 69: uint16(12459), + 70: uint16(12460), + 71: uint16(12461), + 72: uint16(12462), + 73: uint16(12463), + 74: uint16(12464), + 75: uint16(12465), + 76: uint16(12466), + 77: uint16(12467), + 78: uint16(12468), + 79: uint16(12469), + 80: uint16(12470), + 81: uint16(12471), + 82: uint16(12472), + 83: uint16(12473), + 84: uint16(12474), + 85: uint16(12475), + 86: uint16(12476), + 87: uint16(12477), + 88: uint16(12478), + 89: uint16(12479), + 90: uint16(12480), + 91: uint16(12481), + 92: uint16(12482), + 93: uint16(12483), + 94: uint16(12484), + 95: uint16(12485), + 96: uint16(12486), + 97: uint16(12487), + 98: uint16(12488), + 99: uint16(12489), + 100: uint16(12490), + 101: uint16(12491), + 102: uint16(12492), + 103: uint16(12493), + 104: uint16(12494), + 105: uint16(12495), + 106: uint16(12496), + 107: uint16(12497), + 108: uint16(12498), + 109: uint16(12499), + 110: uint16(12500), + 111: uint16(12501), + 112: uint16(12502), + 113: uint16(12503), + 114: uint16(12504), + 115: uint16(12505), + 116: uint16(12506), + 117: uint16(12507), + 118: uint16(12508), + 119: uint16(12509), + 120: uint16(12510), + 121: uint16(12511), + 122: uint16(12512), + 123: uint16(12513), + 124: uint16(12514), + 125: uint16(12515), + 126: uint16(12516), + 127: uint16(12517), + 128: uint16(12518), + 129: uint16(12519), + 130: uint16(12520), + 131: uint16(12521), + 132: uint16(12522), + 133: uint16(12523), + 134: uint16(12524), + 135: uint16(12525), + 136: uint16(12526), + 137: uint16(12527), + 138: uint16(12528), + 139: uint16(12529), + 140: uint16(12530), + 141: uint16(12531), + 142: uint16(12532), + 143: uint16(12533), + 144: uint16(12534), + 145: uint16(1040), + 146: uint16(1041), + 147: uint16(1042), + 148: uint16(1043), + 149: uint16(1044), + 150: uint16(1045), + 151: uint16(1025), + 152: uint16(1046), + 153: uint16(1047), + 154: uint16(1048), + 155: uint16(1049), + 156: uint16(1050), + }, + 39: { + 0: uint16(1051), + 1: uint16(1052), + 2: uint16(1053), + 3: uint16(1054), + 4: uint16(1055), + 5: uint16(1056), + 6: uint16(1057), + 7: uint16(1058), + 8: uint16(1059), + 9: uint16(1060), + 10: uint16(1061), + 11: uint16(1062), + 12: uint16(1063), + 13: uint16(1064), + 14: uint16(1065), + 15: uint16(1066), + 16: uint16(1067), + 17: uint16(1068), + 18: uint16(1069), + 19: uint16(1070), + 20: uint16(1071), + 21: uint16(1072), + 22: uint16(1073), + 23: uint16(1074), + 24: uint16(1075), + 25: uint16(1076), + 26: uint16(1077), + 27: uint16(1105), + 28: uint16(1078), + 29: uint16(1079), + 30: uint16(1080), + 31: uint16(1081), + 32: uint16(1082), + 33: uint16(1083), + 34: uint16(1084), + 35: uint16(1085), + 36: uint16(1086), + 37: uint16(1087), + 38: uint16(1088), + 39: uint16(1089), + 40: uint16(1090), + 41: uint16(1091), + 42: uint16(1092), + 43: uint16(1093), + 44: uint16(1094), + 45: uint16(1095), + 46: uint16(1096), + 47: uint16(1097), + 48: uint16(1098), + 49: uint16(1099), + 50: uint16(1100), + 51: uint16(1101), + 52: uint16(1102), + 53: uint16(1103), + 54: uint16(8679), + 55: uint16(8632), + 56: uint16(8633), + 57: uint16(12751), + 58: uint16(204), + 59: uint16(20058), + 60: uint16(138), + 61: uint16(20994), + 62: uint16(17553), + 63: uint16(40880), + 64: uint16(20872), + 65: uint16(40881), + 66: uint16(30215), + 107: uint16(65506), + 108: uint16(65508), + 109: uint16(65287), + 110: uint16(65282), + 111: uint16(12849), + 112: uint16(8470), + 113: uint16(8481), + 114: uint16(12443), + 115: uint16(12444), + 116: uint16(11904), + 117: uint16(11908), + 118: uint16(11910), + 119: uint16(11911), + 120: uint16(11912), + 121: uint16(11914), + 122: uint16(11916), + 123: uint16(11917), + 124: uint16(11925), + 125: uint16(11932), + 126: uint16(11933), + 127: uint16(11941), + 128: uint16(11943), + 129: uint16(11946), + 130: uint16(11948), + 131: uint16(11950), + 132: uint16(11958), + 133: uint16(11964), + 134: uint16(11966), + 135: uint16(11974), + 136: uint16(11978), + 137: uint16(11980), + 138: uint16(11981), + 139: uint16(11983), + 140: uint16(11990), + 141: uint16(11991), + 142: uint16(11998), + 143: uint16(12003), + 147: uint16(643), + 148: uint16(592), + 149: uint16(603), + 150: uint16(596), + 151: uint16(629), + 152: uint16(339), + 153: uint16(248), + 154: uint16(331), + 155: uint16(650), + 156: uint16(618), + }, + 40: { + 0: uint16(20034), + 1: uint16(20060), + 2: uint16(20981), + 3: uint16(21274), + 4: uint16(21378), + 5: uint16(19975), + 6: uint16(19980), + 7: uint16(20039), + 8: uint16(20109), + 9: uint16(22231), + 10: uint16(64012), + 11: uint16(23662), + 12: uint16(24435), + 13: uint16(19983), + 14: uint16(20871), + 15: uint16(19982), + 16: uint16(20014), + 17: uint16(20115), + 18: uint16(20162), + 19: uint16(20169), + 20: uint16(20168), + 21: uint16(20888), + 22: uint16(21244), + 23: uint16(21356), + 24: uint16(21433), + 25: uint16(22304), + 26: uint16(22787), + 27: uint16(22828), + 28: uint16(23568), + 29: uint16(24063), + 30: uint16(26081), + 31: uint16(27571), + 32: uint16(27596), + 33: uint16(27668), + 34: uint16(29247), + 35: uint16(20017), + 36: uint16(20028), + 37: uint16(20200), + 38: uint16(20188), + 39: uint16(20201), + 40: uint16(20193), + 41: uint16(20189), + 42: uint16(20186), + 43: uint16(21004), + 44: uint16(21276), + 45: uint16(21324), + 46: uint16(22306), + 47: uint16(22307), + 48: uint16(22807), + 49: uint16(22831), + 50: uint16(23425), + 51: uint16(23428), + 52: uint16(23570), + 53: uint16(23611), + 54: uint16(23668), + 55: uint16(23667), + 56: uint16(24068), + 57: uint16(24192), + 58: uint16(24194), + 59: uint16(24521), + 60: uint16(25097), + 61: uint16(25168), + 62: uint16(27669), + 63: uint16(27702), + 64: uint16(27715), + 65: uint16(27711), + 66: uint16(27707), + 67: uint16(29358), + 68: uint16(29360), + 69: uint16(29578), + 70: uint16(31160), + 71: uint16(32906), + 72: uint16(38430), + 73: uint16(20238), + 74: uint16(20248), + 75: uint16(20268), + 76: uint16(20213), + 77: uint16(20244), + 78: uint16(20209), + 79: uint16(20224), + 80: uint16(20215), + 81: uint16(20232), + 82: uint16(20253), + 83: uint16(20226), + 84: uint16(20229), + 85: uint16(20258), + 86: uint16(20243), + 87: uint16(20228), + 88: uint16(20212), + 89: uint16(20242), + 90: uint16(20913), + 91: uint16(21011), + 92: uint16(21001), + 93: uint16(21008), + 94: uint16(21158), + 95: uint16(21282), + 96: uint16(21279), + 97: uint16(21325), + 98: uint16(21386), + 99: uint16(21511), + 100: uint16(22241), + 101: uint16(22239), + 102: uint16(22318), + 103: uint16(22314), + 104: uint16(22324), + 105: uint16(22844), + 106: uint16(22912), + 107: uint16(22908), + 108: uint16(22917), + 109: uint16(22907), + 110: uint16(22910), + 111: uint16(22903), + 112: uint16(22911), + 113: uint16(23382), + 114: uint16(23573), + 115: uint16(23589), + 116: uint16(23676), + 117: uint16(23674), + 118: uint16(23675), + 119: uint16(23678), + 120: uint16(24031), + 121: uint16(24181), + 122: uint16(24196), + 123: uint16(24322), + 124: uint16(24346), + 125: uint16(24436), + 126: uint16(24533), + 127: uint16(24532), + 128: uint16(24527), + 129: uint16(25180), + 130: uint16(25182), + 131: uint16(25188), + 132: uint16(25185), + 133: uint16(25190), + 134: uint16(25186), + 135: uint16(25177), + 136: uint16(25184), + 137: uint16(25178), + 138: uint16(25189), + 139: uint16(26095), + 140: uint16(26094), + 141: uint16(26430), + 142: uint16(26425), + 143: uint16(26424), + 144: uint16(26427), + 145: uint16(26426), + 146: uint16(26431), + 147: uint16(26428), + 148: uint16(26419), + 149: uint16(27672), + 150: uint16(27718), + 151: uint16(27730), + 152: uint16(27740), + 153: uint16(27727), + 154: uint16(27722), + 155: uint16(27732), + 156: uint16(27723), + }, + 41: { + 0: uint16(27724), + 1: uint16(28785), + 2: uint16(29278), + 3: uint16(29364), + 4: uint16(29365), + 5: uint16(29582), + 6: uint16(29994), + 7: uint16(30335), + 8: uint16(31349), + 9: uint16(32593), + 10: uint16(33400), + 11: uint16(33404), + 12: uint16(33408), + 13: uint16(33405), + 14: uint16(33407), + 15: uint16(34381), + 16: uint16(35198), + 17: uint16(37017), + 18: uint16(37015), + 19: uint16(37016), + 20: uint16(37019), + 21: uint16(37012), + 22: uint16(38434), + 23: uint16(38436), + 24: uint16(38432), + 25: uint16(38435), + 26: uint16(20310), + 27: uint16(20283), + 28: uint16(20322), + 29: uint16(20297), + 30: uint16(20307), + 31: uint16(20324), + 32: uint16(20286), + 33: uint16(20327), + 34: uint16(20306), + 35: uint16(20319), + 36: uint16(20289), + 37: uint16(20312), + 38: uint16(20269), + 39: uint16(20275), + 40: uint16(20287), + 41: uint16(20321), + 42: uint16(20879), + 43: uint16(20921), + 44: uint16(21020), + 45: uint16(21022), + 46: uint16(21025), + 47: uint16(21165), + 48: uint16(21166), + 49: uint16(21257), + 50: uint16(21347), + 51: uint16(21362), + 52: uint16(21390), + 53: uint16(21391), + 54: uint16(21552), + 55: uint16(21559), + 56: uint16(21546), + 57: uint16(21588), + 58: uint16(21573), + 59: uint16(21529), + 60: uint16(21532), + 61: uint16(21541), + 62: uint16(21528), + 63: uint16(21565), + 64: uint16(21583), + 65: uint16(21569), + 66: uint16(21544), + 67: uint16(21540), + 68: uint16(21575), + 69: uint16(22254), + 70: uint16(22247), + 71: uint16(22245), + 72: uint16(22337), + 73: uint16(22341), + 74: uint16(22348), + 75: uint16(22345), + 76: uint16(22347), + 77: uint16(22354), + 78: uint16(22790), + 79: uint16(22848), + 80: uint16(22950), + 81: uint16(22936), + 82: uint16(22944), + 83: uint16(22935), + 84: uint16(22926), + 85: uint16(22946), + 86: uint16(22928), + 87: uint16(22927), + 88: uint16(22951), + 89: uint16(22945), + 90: uint16(23438), + 91: uint16(23442), + 92: uint16(23592), + 93: uint16(23594), + 94: uint16(23693), + 95: uint16(23695), + 96: uint16(23688), + 97: uint16(23691), + 98: uint16(23689), + 99: uint16(23698), + 100: uint16(23690), + 101: uint16(23686), + 102: uint16(23699), + 103: uint16(23701), + 104: uint16(24032), + 105: uint16(24074), + 106: uint16(24078), + 107: uint16(24203), + 108: uint16(24201), + 109: uint16(24204), + 110: uint16(24200), + 111: uint16(24205), + 112: uint16(24325), + 113: uint16(24349), + 114: uint16(24440), + 115: uint16(24438), + 116: uint16(24530), + 117: uint16(24529), + 118: uint16(24528), + 119: uint16(24557), + 120: uint16(24552), + 121: uint16(24558), + 122: uint16(24563), + 123: uint16(24545), + 124: uint16(24548), + 125: uint16(24547), + 126: uint16(24570), + 127: uint16(24559), + 128: uint16(24567), + 129: uint16(24571), + 130: uint16(24576), + 131: uint16(24564), + 132: uint16(25146), + 133: uint16(25219), + 134: uint16(25228), + 135: uint16(25230), + 136: uint16(25231), + 137: uint16(25236), + 138: uint16(25223), + 139: uint16(25201), + 140: uint16(25211), + 141: uint16(25210), + 142: uint16(25200), + 143: uint16(25217), + 144: uint16(25224), + 145: uint16(25207), + 146: uint16(25213), + 147: uint16(25202), + 148: uint16(25204), + 149: uint16(25911), + 150: uint16(26096), + 151: uint16(26100), + 152: uint16(26099), + 153: uint16(26098), + 154: uint16(26101), + 155: uint16(26437), + 156: uint16(26439), + }, + 42: { + 0: uint16(26457), + 1: uint16(26453), + 2: uint16(26444), + 3: uint16(26440), + 4: uint16(26461), + 5: uint16(26445), + 6: uint16(26458), + 7: uint16(26443), + 8: uint16(27600), + 9: uint16(27673), + 10: uint16(27674), + 11: uint16(27768), + 12: uint16(27751), + 13: uint16(27755), + 14: uint16(27780), + 15: uint16(27787), + 16: uint16(27791), + 17: uint16(27761), + 18: uint16(27759), + 19: uint16(27753), + 20: uint16(27802), + 21: uint16(27757), + 22: uint16(27783), + 23: uint16(27797), + 24: uint16(27804), + 25: uint16(27750), + 26: uint16(27763), + 27: uint16(27749), + 28: uint16(27771), + 29: uint16(27790), + 30: uint16(28788), + 31: uint16(28794), + 32: uint16(29283), + 33: uint16(29375), + 34: uint16(29373), + 35: uint16(29379), + 36: uint16(29382), + 37: uint16(29377), + 38: uint16(29370), + 39: uint16(29381), + 40: uint16(29589), + 41: uint16(29591), + 42: uint16(29587), + 43: uint16(29588), + 44: uint16(29586), + 45: uint16(30010), + 46: uint16(30009), + 47: uint16(30100), + 48: uint16(30101), + 49: uint16(30337), + 50: uint16(31037), + 51: uint16(32820), + 52: uint16(32917), + 53: uint16(32921), + 54: uint16(32912), + 55: uint16(32914), + 56: uint16(32924), + 57: uint16(33424), + 58: uint16(33423), + 59: uint16(33413), + 60: uint16(33422), + 61: uint16(33425), + 62: uint16(33427), + 63: uint16(33418), + 64: uint16(33411), + 65: uint16(33412), + 66: uint16(35960), + 67: uint16(36809), + 68: uint16(36799), + 69: uint16(37023), + 70: uint16(37025), + 71: uint16(37029), + 72: uint16(37022), + 73: uint16(37031), + 74: uint16(37024), + 75: uint16(38448), + 76: uint16(38440), + 77: uint16(38447), + 78: uint16(38445), + 79: uint16(20019), + 80: uint16(20376), + 81: uint16(20348), + 82: uint16(20357), + 83: uint16(20349), + 84: uint16(20352), + 85: uint16(20359), + 86: uint16(20342), + 87: uint16(20340), + 88: uint16(20361), + 89: uint16(20356), + 90: uint16(20343), + 91: uint16(20300), + 92: uint16(20375), + 93: uint16(20330), + 94: uint16(20378), + 95: uint16(20345), + 96: uint16(20353), + 97: uint16(20344), + 98: uint16(20368), + 99: uint16(20380), + 100: uint16(20372), + 101: uint16(20382), + 102: uint16(20370), + 103: uint16(20354), + 104: uint16(20373), + 105: uint16(20331), + 106: uint16(20334), + 107: uint16(20894), + 108: uint16(20924), + 109: uint16(20926), + 110: uint16(21045), + 111: uint16(21042), + 112: uint16(21043), + 113: uint16(21062), + 114: uint16(21041), + 115: uint16(21180), + 116: uint16(21258), + 117: uint16(21259), + 118: uint16(21308), + 119: uint16(21394), + 120: uint16(21396), + 121: uint16(21639), + 122: uint16(21631), + 123: uint16(21633), + 124: uint16(21649), + 125: uint16(21634), + 126: uint16(21640), + 127: uint16(21611), + 128: uint16(21626), + 129: uint16(21630), + 130: uint16(21605), + 131: uint16(21612), + 132: uint16(21620), + 133: uint16(21606), + 134: uint16(21645), + 135: uint16(21615), + 136: uint16(21601), + 137: uint16(21600), + 138: uint16(21656), + 139: uint16(21603), + 140: uint16(21607), + 141: uint16(21604), + 142: uint16(22263), + 143: uint16(22265), + 144: uint16(22383), + 145: uint16(22386), + 146: uint16(22381), + 147: uint16(22379), + 148: uint16(22385), + 149: uint16(22384), + 150: uint16(22390), + 151: uint16(22400), + 152: uint16(22389), + 153: uint16(22395), + 154: uint16(22387), + 155: uint16(22388), + 156: uint16(22370), + }, + 43: { + 0: uint16(22376), + 1: uint16(22397), + 2: uint16(22796), + 3: uint16(22853), + 4: uint16(22965), + 5: uint16(22970), + 6: uint16(22991), + 7: uint16(22990), + 8: uint16(22962), + 9: uint16(22988), + 10: uint16(22977), + 11: uint16(22966), + 12: uint16(22972), + 13: uint16(22979), + 14: uint16(22998), + 15: uint16(22961), + 16: uint16(22973), + 17: uint16(22976), + 18: uint16(22984), + 19: uint16(22964), + 20: uint16(22983), + 21: uint16(23394), + 22: uint16(23397), + 23: uint16(23443), + 24: uint16(23445), + 25: uint16(23620), + 26: uint16(23623), + 27: uint16(23726), + 28: uint16(23716), + 29: uint16(23712), + 30: uint16(23733), + 31: uint16(23727), + 32: uint16(23720), + 33: uint16(23724), + 34: uint16(23711), + 35: uint16(23715), + 36: uint16(23725), + 37: uint16(23714), + 38: uint16(23722), + 39: uint16(23719), + 40: uint16(23709), + 41: uint16(23717), + 42: uint16(23734), + 43: uint16(23728), + 44: uint16(23718), + 45: uint16(24087), + 46: uint16(24084), + 47: uint16(24089), + 48: uint16(24360), + 49: uint16(24354), + 50: uint16(24355), + 51: uint16(24356), + 52: uint16(24404), + 53: uint16(24450), + 54: uint16(24446), + 55: uint16(24445), + 56: uint16(24542), + 57: uint16(24549), + 58: uint16(24621), + 59: uint16(24614), + 60: uint16(24601), + 61: uint16(24626), + 62: uint16(24587), + 63: uint16(24628), + 64: uint16(24586), + 65: uint16(24599), + 66: uint16(24627), + 67: uint16(24602), + 68: uint16(24606), + 69: uint16(24620), + 70: uint16(24610), + 71: uint16(24589), + 72: uint16(24592), + 73: uint16(24622), + 74: uint16(24595), + 75: uint16(24593), + 76: uint16(24588), + 77: uint16(24585), + 78: uint16(24604), + 79: uint16(25108), + 80: uint16(25149), + 81: uint16(25261), + 82: uint16(25268), + 83: uint16(25297), + 84: uint16(25278), + 85: uint16(25258), + 86: uint16(25270), + 87: uint16(25290), + 88: uint16(25262), + 89: uint16(25267), + 90: uint16(25263), + 91: uint16(25275), + 92: uint16(25257), + 93: uint16(25264), + 94: uint16(25272), + 95: uint16(25917), + 96: uint16(26024), + 97: uint16(26043), + 98: uint16(26121), + 99: uint16(26108), + 100: uint16(26116), + 101: uint16(26130), + 102: uint16(26120), + 103: uint16(26107), + 104: uint16(26115), + 105: uint16(26123), + 106: uint16(26125), + 107: uint16(26117), + 108: uint16(26109), + 109: uint16(26129), + 110: uint16(26128), + 111: uint16(26358), + 112: uint16(26378), + 113: uint16(26501), + 114: uint16(26476), + 115: uint16(26510), + 116: uint16(26514), + 117: uint16(26486), + 118: uint16(26491), + 119: uint16(26520), + 120: uint16(26502), + 121: uint16(26500), + 122: uint16(26484), + 123: uint16(26509), + 124: uint16(26508), + 125: uint16(26490), + 126: uint16(26527), + 127: uint16(26513), + 128: uint16(26521), + 129: uint16(26499), + 130: uint16(26493), + 131: uint16(26497), + 132: uint16(26488), + 133: uint16(26489), + 134: uint16(26516), + 135: uint16(27429), + 136: uint16(27520), + 137: uint16(27518), + 138: uint16(27614), + 139: uint16(27677), + 140: uint16(27795), + 141: uint16(27884), + 142: uint16(27883), + 143: uint16(27886), + 144: uint16(27865), + 145: uint16(27830), + 146: uint16(27860), + 147: uint16(27821), + 148: uint16(27879), + 149: uint16(27831), + 150: uint16(27856), + 151: uint16(27842), + 152: uint16(27834), + 153: uint16(27843), + 154: uint16(27846), + 155: uint16(27885), + 156: uint16(27890), + }, + 44: { + 0: uint16(27858), + 1: uint16(27869), + 2: uint16(27828), + 3: uint16(27786), + 4: uint16(27805), + 5: uint16(27776), + 6: uint16(27870), + 7: uint16(27840), + 8: uint16(27952), + 9: uint16(27853), + 10: uint16(27847), + 11: uint16(27824), + 12: uint16(27897), + 13: uint16(27855), + 14: uint16(27881), + 15: uint16(27857), + 16: uint16(28820), + 17: uint16(28824), + 18: uint16(28805), + 19: uint16(28819), + 20: uint16(28806), + 21: uint16(28804), + 22: uint16(28817), + 23: uint16(28822), + 24: uint16(28802), + 25: uint16(28826), + 26: uint16(28803), + 27: uint16(29290), + 28: uint16(29398), + 29: uint16(29387), + 30: uint16(29400), + 31: uint16(29385), + 32: uint16(29404), + 33: uint16(29394), + 34: uint16(29396), + 35: uint16(29402), + 36: uint16(29388), + 37: uint16(29393), + 38: uint16(29604), + 39: uint16(29601), + 40: uint16(29613), + 41: uint16(29606), + 42: uint16(29602), + 43: uint16(29600), + 44: uint16(29612), + 45: uint16(29597), + 46: uint16(29917), + 47: uint16(29928), + 48: uint16(30015), + 49: uint16(30016), + 50: uint16(30014), + 51: uint16(30092), + 52: uint16(30104), + 53: uint16(30383), + 54: uint16(30451), + 55: uint16(30449), + 56: uint16(30448), + 57: uint16(30453), + 58: uint16(30712), + 59: uint16(30716), + 60: uint16(30713), + 61: uint16(30715), + 62: uint16(30714), + 63: uint16(30711), + 64: uint16(31042), + 65: uint16(31039), + 66: uint16(31173), + 67: uint16(31352), + 68: uint16(31355), + 69: uint16(31483), + 70: uint16(31861), + 71: uint16(31997), + 72: uint16(32821), + 73: uint16(32911), + 74: uint16(32942), + 75: uint16(32931), + 76: uint16(32952), + 77: uint16(32949), + 78: uint16(32941), + 79: uint16(33312), + 80: uint16(33440), + 81: uint16(33472), + 82: uint16(33451), + 83: uint16(33434), + 84: uint16(33432), + 85: uint16(33435), + 86: uint16(33461), + 87: uint16(33447), + 88: uint16(33454), + 89: uint16(33468), + 90: uint16(33438), + 91: uint16(33466), + 92: uint16(33460), + 93: uint16(33448), + 94: uint16(33441), + 95: uint16(33449), + 96: uint16(33474), + 97: uint16(33444), + 98: uint16(33475), + 99: uint16(33462), + 100: uint16(33442), + 101: uint16(34416), + 102: uint16(34415), + 103: uint16(34413), + 104: uint16(34414), + 105: uint16(35926), + 106: uint16(36818), + 107: uint16(36811), + 108: uint16(36819), + 109: uint16(36813), + 110: uint16(36822), + 111: uint16(36821), + 112: uint16(36823), + 113: uint16(37042), + 114: uint16(37044), + 115: uint16(37039), + 116: uint16(37043), + 117: uint16(37040), + 118: uint16(38457), + 119: uint16(38461), + 120: uint16(38460), + 121: uint16(38458), + 122: uint16(38467), + 123: uint16(20429), + 124: uint16(20421), + 125: uint16(20435), + 126: uint16(20402), + 127: uint16(20425), + 128: uint16(20427), + 129: uint16(20417), + 130: uint16(20436), + 131: uint16(20444), + 132: uint16(20441), + 133: uint16(20411), + 134: uint16(20403), + 135: uint16(20443), + 136: uint16(20423), + 137: uint16(20438), + 138: uint16(20410), + 139: uint16(20416), + 140: uint16(20409), + 141: uint16(20460), + 142: uint16(21060), + 143: uint16(21065), + 144: uint16(21184), + 145: uint16(21186), + 146: uint16(21309), + 147: uint16(21372), + 148: uint16(21399), + 149: uint16(21398), + 150: uint16(21401), + 151: uint16(21400), + 152: uint16(21690), + 153: uint16(21665), + 154: uint16(21677), + 155: uint16(21669), + 156: uint16(21711), + }, + 45: { + 0: uint16(21699), + 1: uint16(33549), + 2: uint16(21687), + 3: uint16(21678), + 4: uint16(21718), + 5: uint16(21686), + 6: uint16(21701), + 7: uint16(21702), + 8: uint16(21664), + 9: uint16(21616), + 10: uint16(21692), + 11: uint16(21666), + 12: uint16(21694), + 13: uint16(21618), + 14: uint16(21726), + 15: uint16(21680), + 16: uint16(22453), + 17: uint16(22430), + 18: uint16(22431), + 19: uint16(22436), + 20: uint16(22412), + 21: uint16(22423), + 22: uint16(22429), + 23: uint16(22427), + 24: uint16(22420), + 25: uint16(22424), + 26: uint16(22415), + 27: uint16(22425), + 28: uint16(22437), + 29: uint16(22426), + 30: uint16(22421), + 31: uint16(22772), + 32: uint16(22797), + 33: uint16(22867), + 34: uint16(23009), + 35: uint16(23006), + 36: uint16(23022), + 37: uint16(23040), + 38: uint16(23025), + 39: uint16(23005), + 40: uint16(23034), + 41: uint16(23037), + 42: uint16(23036), + 43: uint16(23030), + 44: uint16(23012), + 45: uint16(23026), + 46: uint16(23031), + 47: uint16(23003), + 48: uint16(23017), + 49: uint16(23027), + 50: uint16(23029), + 51: uint16(23008), + 52: uint16(23038), + 53: uint16(23028), + 54: uint16(23021), + 55: uint16(23464), + 56: uint16(23628), + 57: uint16(23760), + 58: uint16(23768), + 59: uint16(23756), + 60: uint16(23767), + 61: uint16(23755), + 62: uint16(23771), + 63: uint16(23774), + 64: uint16(23770), + 65: uint16(23753), + 66: uint16(23751), + 67: uint16(23754), + 68: uint16(23766), + 69: uint16(23763), + 70: uint16(23764), + 71: uint16(23759), + 72: uint16(23752), + 73: uint16(23750), + 74: uint16(23758), + 75: uint16(23775), + 76: uint16(23800), + 77: uint16(24057), + 78: uint16(24097), + 79: uint16(24098), + 80: uint16(24099), + 81: uint16(24096), + 82: uint16(24100), + 83: uint16(24240), + 84: uint16(24228), + 85: uint16(24226), + 86: uint16(24219), + 87: uint16(24227), + 88: uint16(24229), + 89: uint16(24327), + 90: uint16(24366), + 91: uint16(24406), + 92: uint16(24454), + 93: uint16(24631), + 94: uint16(24633), + 95: uint16(24660), + 96: uint16(24690), + 97: uint16(24670), + 98: uint16(24645), + 99: uint16(24659), + 100: uint16(24647), + 101: uint16(24649), + 102: uint16(24667), + 103: uint16(24652), + 104: uint16(24640), + 105: uint16(24642), + 106: uint16(24671), + 107: uint16(24612), + 108: uint16(24644), + 109: uint16(24664), + 110: uint16(24678), + 111: uint16(24686), + 112: uint16(25154), + 113: uint16(25155), + 114: uint16(25295), + 115: uint16(25357), + 116: uint16(25355), + 117: uint16(25333), + 118: uint16(25358), + 119: uint16(25347), + 120: uint16(25323), + 121: uint16(25337), + 122: uint16(25359), + 123: uint16(25356), + 124: uint16(25336), + 125: uint16(25334), + 126: uint16(25344), + 127: uint16(25363), + 128: uint16(25364), + 129: uint16(25338), + 130: uint16(25365), + 131: uint16(25339), + 132: uint16(25328), + 133: uint16(25921), + 134: uint16(25923), + 135: uint16(26026), + 136: uint16(26047), + 137: uint16(26166), + 138: uint16(26145), + 139: uint16(26162), + 140: uint16(26165), + 141: uint16(26140), + 142: uint16(26150), + 143: uint16(26146), + 144: uint16(26163), + 145: uint16(26155), + 146: uint16(26170), + 147: uint16(26141), + 148: uint16(26164), + 149: uint16(26169), + 150: uint16(26158), + 151: uint16(26383), + 152: uint16(26384), + 153: uint16(26561), + 154: uint16(26610), + 155: uint16(26568), + 156: uint16(26554), + }, + 46: { + 0: uint16(26588), + 1: uint16(26555), + 2: uint16(26616), + 3: uint16(26584), + 4: uint16(26560), + 5: uint16(26551), + 6: uint16(26565), + 7: uint16(26603), + 8: uint16(26596), + 9: uint16(26591), + 10: uint16(26549), + 11: uint16(26573), + 12: uint16(26547), + 13: uint16(26615), + 14: uint16(26614), + 15: uint16(26606), + 16: uint16(26595), + 17: uint16(26562), + 18: uint16(26553), + 19: uint16(26574), + 20: uint16(26599), + 21: uint16(26608), + 22: uint16(26546), + 23: uint16(26620), + 24: uint16(26566), + 25: uint16(26605), + 26: uint16(26572), + 27: uint16(26542), + 28: uint16(26598), + 29: uint16(26587), + 30: uint16(26618), + 31: uint16(26569), + 32: uint16(26570), + 33: uint16(26563), + 34: uint16(26602), + 35: uint16(26571), + 36: uint16(27432), + 37: uint16(27522), + 38: uint16(27524), + 39: uint16(27574), + 40: uint16(27606), + 41: uint16(27608), + 42: uint16(27616), + 43: uint16(27680), + 44: uint16(27681), + 45: uint16(27944), + 46: uint16(27956), + 47: uint16(27949), + 48: uint16(27935), + 49: uint16(27964), + 50: uint16(27967), + 51: uint16(27922), + 52: uint16(27914), + 53: uint16(27866), + 54: uint16(27955), + 55: uint16(27908), + 56: uint16(27929), + 57: uint16(27962), + 58: uint16(27930), + 59: uint16(27921), + 60: uint16(27904), + 61: uint16(27933), + 62: uint16(27970), + 63: uint16(27905), + 64: uint16(27928), + 65: uint16(27959), + 66: uint16(27907), + 67: uint16(27919), + 68: uint16(27968), + 69: uint16(27911), + 70: uint16(27936), + 71: uint16(27948), + 72: uint16(27912), + 73: uint16(27938), + 74: uint16(27913), + 75: uint16(27920), + 76: uint16(28855), + 77: uint16(28831), + 78: uint16(28862), + 79: uint16(28849), + 80: uint16(28848), + 81: uint16(28833), + 82: uint16(28852), + 83: uint16(28853), + 84: uint16(28841), + 85: uint16(29249), + 86: uint16(29257), + 87: uint16(29258), + 88: uint16(29292), + 89: uint16(29296), + 90: uint16(29299), + 91: uint16(29294), + 92: uint16(29386), + 93: uint16(29412), + 94: uint16(29416), + 95: uint16(29419), + 96: uint16(29407), + 97: uint16(29418), + 98: uint16(29414), + 99: uint16(29411), + 100: uint16(29573), + 101: uint16(29644), + 102: uint16(29634), + 103: uint16(29640), + 104: uint16(29637), + 105: uint16(29625), + 106: uint16(29622), + 107: uint16(29621), + 108: uint16(29620), + 109: uint16(29675), + 110: uint16(29631), + 111: uint16(29639), + 112: uint16(29630), + 113: uint16(29635), + 114: uint16(29638), + 115: uint16(29624), + 116: uint16(29643), + 117: uint16(29932), + 118: uint16(29934), + 119: uint16(29998), + 120: uint16(30023), + 121: uint16(30024), + 122: uint16(30119), + 123: uint16(30122), + 124: uint16(30329), + 125: uint16(30404), + 126: uint16(30472), + 127: uint16(30467), + 128: uint16(30468), + 129: uint16(30469), + 130: uint16(30474), + 131: uint16(30455), + 132: uint16(30459), + 133: uint16(30458), + 134: uint16(30695), + 135: uint16(30696), + 136: uint16(30726), + 137: uint16(30737), + 138: uint16(30738), + 139: uint16(30725), + 140: uint16(30736), + 141: uint16(30735), + 142: uint16(30734), + 143: uint16(30729), + 144: uint16(30723), + 145: uint16(30739), + 146: uint16(31050), + 147: uint16(31052), + 148: uint16(31051), + 149: uint16(31045), + 150: uint16(31044), + 151: uint16(31189), + 152: uint16(31181), + 153: uint16(31183), + 154: uint16(31190), + 155: uint16(31182), + 156: uint16(31360), + }, + 47: { + 0: uint16(31358), + 1: uint16(31441), + 2: uint16(31488), + 3: uint16(31489), + 4: uint16(31866), + 5: uint16(31864), + 6: uint16(31865), + 7: uint16(31871), + 8: uint16(31872), + 9: uint16(31873), + 10: uint16(32003), + 11: uint16(32008), + 12: uint16(32001), + 13: uint16(32600), + 14: uint16(32657), + 15: uint16(32653), + 16: uint16(32702), + 17: uint16(32775), + 18: uint16(32782), + 19: uint16(32783), + 20: uint16(32788), + 21: uint16(32823), + 22: uint16(32984), + 23: uint16(32967), + 24: uint16(32992), + 25: uint16(32977), + 26: uint16(32968), + 27: uint16(32962), + 28: uint16(32976), + 29: uint16(32965), + 30: uint16(32995), + 31: uint16(32985), + 32: uint16(32988), + 33: uint16(32970), + 34: uint16(32981), + 35: uint16(32969), + 36: uint16(32975), + 37: uint16(32983), + 38: uint16(32998), + 39: uint16(32973), + 40: uint16(33279), + 41: uint16(33313), + 42: uint16(33428), + 43: uint16(33497), + 44: uint16(33534), + 45: uint16(33529), + 46: uint16(33543), + 47: uint16(33512), + 48: uint16(33536), + 49: uint16(33493), + 50: uint16(33594), + 51: uint16(33515), + 52: uint16(33494), + 53: uint16(33524), + 54: uint16(33516), + 55: uint16(33505), + 56: uint16(33522), + 57: uint16(33525), + 58: uint16(33548), + 59: uint16(33531), + 60: uint16(33526), + 61: uint16(33520), + 62: uint16(33514), + 63: uint16(33508), + 64: uint16(33504), + 65: uint16(33530), + 66: uint16(33523), + 67: uint16(33517), + 68: uint16(34423), + 69: uint16(34420), + 70: uint16(34428), + 71: uint16(34419), + 72: uint16(34881), + 73: uint16(34894), + 74: uint16(34919), + 75: uint16(34922), + 76: uint16(34921), + 77: uint16(35283), + 78: uint16(35332), + 79: uint16(35335), + 80: uint16(36210), + 81: uint16(36835), + 82: uint16(36833), + 83: uint16(36846), + 84: uint16(36832), + 85: uint16(37105), + 86: uint16(37053), + 87: uint16(37055), + 88: uint16(37077), + 89: uint16(37061), + 90: uint16(37054), + 91: uint16(37063), + 92: uint16(37067), + 93: uint16(37064), + 94: uint16(37332), + 95: uint16(37331), + 96: uint16(38484), + 97: uint16(38479), + 98: uint16(38481), + 99: uint16(38483), + 100: uint16(38474), + 101: uint16(38478), + 102: uint16(20510), + 103: uint16(20485), + 104: uint16(20487), + 105: uint16(20499), + 106: uint16(20514), + 107: uint16(20528), + 108: uint16(20507), + 109: uint16(20469), + 110: uint16(20468), + 111: uint16(20531), + 112: uint16(20535), + 113: uint16(20524), + 114: uint16(20470), + 115: uint16(20471), + 116: uint16(20503), + 117: uint16(20508), + 118: uint16(20512), + 119: uint16(20519), + 120: uint16(20533), + 121: uint16(20527), + 122: uint16(20529), + 123: uint16(20494), + 124: uint16(20826), + 125: uint16(20884), + 126: uint16(20883), + 127: uint16(20938), + 128: uint16(20932), + 129: uint16(20933), + 130: uint16(20936), + 131: uint16(20942), + 132: uint16(21089), + 133: uint16(21082), + 134: uint16(21074), + 135: uint16(21086), + 136: uint16(21087), + 137: uint16(21077), + 138: uint16(21090), + 139: uint16(21197), + 140: uint16(21262), + 141: uint16(21406), + 142: uint16(21798), + 143: uint16(21730), + 144: uint16(21783), + 145: uint16(21778), + 146: uint16(21735), + 147: uint16(21747), + 148: uint16(21732), + 149: uint16(21786), + 150: uint16(21759), + 151: uint16(21764), + 152: uint16(21768), + 153: uint16(21739), + 154: uint16(21777), + 155: uint16(21765), + 156: uint16(21745), + }, + 48: { + 0: uint16(21770), + 1: uint16(21755), + 2: uint16(21751), + 3: uint16(21752), + 4: uint16(21728), + 5: uint16(21774), + 6: uint16(21763), + 7: uint16(21771), + 8: uint16(22273), + 9: uint16(22274), + 10: uint16(22476), + 11: uint16(22578), + 12: uint16(22485), + 13: uint16(22482), + 14: uint16(22458), + 15: uint16(22470), + 16: uint16(22461), + 17: uint16(22460), + 18: uint16(22456), + 19: uint16(22454), + 20: uint16(22463), + 21: uint16(22471), + 22: uint16(22480), + 23: uint16(22457), + 24: uint16(22465), + 25: uint16(22798), + 26: uint16(22858), + 27: uint16(23065), + 28: uint16(23062), + 29: uint16(23085), + 30: uint16(23086), + 31: uint16(23061), + 32: uint16(23055), + 33: uint16(23063), + 34: uint16(23050), + 35: uint16(23070), + 36: uint16(23091), + 37: uint16(23404), + 38: uint16(23463), + 39: uint16(23469), + 40: uint16(23468), + 41: uint16(23555), + 42: uint16(23638), + 43: uint16(23636), + 44: uint16(23788), + 45: uint16(23807), + 46: uint16(23790), + 47: uint16(23793), + 48: uint16(23799), + 49: uint16(23808), + 50: uint16(23801), + 51: uint16(24105), + 52: uint16(24104), + 53: uint16(24232), + 54: uint16(24238), + 55: uint16(24234), + 56: uint16(24236), + 57: uint16(24371), + 58: uint16(24368), + 59: uint16(24423), + 60: uint16(24669), + 61: uint16(24666), + 62: uint16(24679), + 63: uint16(24641), + 64: uint16(24738), + 65: uint16(24712), + 66: uint16(24704), + 67: uint16(24722), + 68: uint16(24705), + 69: uint16(24733), + 70: uint16(24707), + 71: uint16(24725), + 72: uint16(24731), + 73: uint16(24727), + 74: uint16(24711), + 75: uint16(24732), + 76: uint16(24718), + 77: uint16(25113), + 78: uint16(25158), + 79: uint16(25330), + 80: uint16(25360), + 81: uint16(25430), + 82: uint16(25388), + 83: uint16(25412), + 84: uint16(25413), + 85: uint16(25398), + 86: uint16(25411), + 87: uint16(25572), + 88: uint16(25401), + 89: uint16(25419), + 90: uint16(25418), + 91: uint16(25404), + 92: uint16(25385), + 93: uint16(25409), + 94: uint16(25396), + 95: uint16(25432), + 96: uint16(25428), + 97: uint16(25433), + 98: uint16(25389), + 99: uint16(25415), + 100: uint16(25395), + 101: uint16(25434), + 102: uint16(25425), + 103: uint16(25400), + 104: uint16(25431), + 105: uint16(25408), + 106: uint16(25416), + 107: uint16(25930), + 108: uint16(25926), + 109: uint16(26054), + 110: uint16(26051), + 111: uint16(26052), + 112: uint16(26050), + 113: uint16(26186), + 114: uint16(26207), + 115: uint16(26183), + 116: uint16(26193), + 117: uint16(26386), + 118: uint16(26387), + 119: uint16(26655), + 120: uint16(26650), + 121: uint16(26697), + 122: uint16(26674), + 123: uint16(26675), + 124: uint16(26683), + 125: uint16(26699), + 126: uint16(26703), + 127: uint16(26646), + 128: uint16(26673), + 129: uint16(26652), + 130: uint16(26677), + 131: uint16(26667), + 132: uint16(26669), + 133: uint16(26671), + 134: uint16(26702), + 135: uint16(26692), + 136: uint16(26676), + 137: uint16(26653), + 138: uint16(26642), + 139: uint16(26644), + 140: uint16(26662), + 141: uint16(26664), + 142: uint16(26670), + 143: uint16(26701), + 144: uint16(26682), + 145: uint16(26661), + 146: uint16(26656), + 147: uint16(27436), + 148: uint16(27439), + 149: uint16(27437), + 150: uint16(27441), + 151: uint16(27444), + 152: uint16(27501), + 153: uint16(32898), + 154: uint16(27528), + 155: uint16(27622), + 156: uint16(27620), + }, + 49: { + 0: uint16(27624), + 1: uint16(27619), + 2: uint16(27618), + 3: uint16(27623), + 4: uint16(27685), + 5: uint16(28026), + 6: uint16(28003), + 7: uint16(28004), + 8: uint16(28022), + 9: uint16(27917), + 10: uint16(28001), + 11: uint16(28050), + 12: uint16(27992), + 13: uint16(28002), + 14: uint16(28013), + 15: uint16(28015), + 16: uint16(28049), + 17: uint16(28045), + 18: uint16(28143), + 19: uint16(28031), + 20: uint16(28038), + 21: uint16(27998), + 22: uint16(28007), + 23: uint16(28000), + 24: uint16(28055), + 25: uint16(28016), + 26: uint16(28028), + 27: uint16(27999), + 28: uint16(28034), + 29: uint16(28056), + 30: uint16(27951), + 31: uint16(28008), + 32: uint16(28043), + 33: uint16(28030), + 34: uint16(28032), + 35: uint16(28036), + 36: uint16(27926), + 37: uint16(28035), + 38: uint16(28027), + 39: uint16(28029), + 40: uint16(28021), + 41: uint16(28048), + 42: uint16(28892), + 43: uint16(28883), + 44: uint16(28881), + 45: uint16(28893), + 46: uint16(28875), + 47: uint16(32569), + 48: uint16(28898), + 49: uint16(28887), + 50: uint16(28882), + 51: uint16(28894), + 52: uint16(28896), + 53: uint16(28884), + 54: uint16(28877), + 55: uint16(28869), + 56: uint16(28870), + 57: uint16(28871), + 58: uint16(28890), + 59: uint16(28878), + 60: uint16(28897), + 61: uint16(29250), + 62: uint16(29304), + 63: uint16(29303), + 64: uint16(29302), + 65: uint16(29440), + 66: uint16(29434), + 67: uint16(29428), + 68: uint16(29438), + 69: uint16(29430), + 70: uint16(29427), + 71: uint16(29435), + 72: uint16(29441), + 73: uint16(29651), + 74: uint16(29657), + 75: uint16(29669), + 76: uint16(29654), + 77: uint16(29628), + 78: uint16(29671), + 79: uint16(29667), + 80: uint16(29673), + 81: uint16(29660), + 82: uint16(29650), + 83: uint16(29659), + 84: uint16(29652), + 85: uint16(29661), + 86: uint16(29658), + 87: uint16(29655), + 88: uint16(29656), + 89: uint16(29672), + 90: uint16(29918), + 91: uint16(29919), + 92: uint16(29940), + 93: uint16(29941), + 94: uint16(29985), + 95: uint16(30043), + 96: uint16(30047), + 97: uint16(30128), + 98: uint16(30145), + 99: uint16(30139), + 100: uint16(30148), + 101: uint16(30144), + 102: uint16(30143), + 103: uint16(30134), + 104: uint16(30138), + 105: uint16(30346), + 106: uint16(30409), + 107: uint16(30493), + 108: uint16(30491), + 109: uint16(30480), + 110: uint16(30483), + 111: uint16(30482), + 112: uint16(30499), + 113: uint16(30481), + 114: uint16(30485), + 115: uint16(30489), + 116: uint16(30490), + 117: uint16(30498), + 118: uint16(30503), + 119: uint16(30755), + 120: uint16(30764), + 121: uint16(30754), + 122: uint16(30773), + 123: uint16(30767), + 124: uint16(30760), + 125: uint16(30766), + 126: uint16(30763), + 127: uint16(30753), + 128: uint16(30761), + 129: uint16(30771), + 130: uint16(30762), + 131: uint16(30769), + 132: uint16(31060), + 133: uint16(31067), + 134: uint16(31055), + 135: uint16(31068), + 136: uint16(31059), + 137: uint16(31058), + 138: uint16(31057), + 139: uint16(31211), + 140: uint16(31212), + 141: uint16(31200), + 142: uint16(31214), + 143: uint16(31213), + 144: uint16(31210), + 145: uint16(31196), + 146: uint16(31198), + 147: uint16(31197), + 148: uint16(31366), + 149: uint16(31369), + 150: uint16(31365), + 151: uint16(31371), + 152: uint16(31372), + 153: uint16(31370), + 154: uint16(31367), + 155: uint16(31448), + 156: uint16(31504), + }, + 50: { + 0: uint16(31492), + 1: uint16(31507), + 2: uint16(31493), + 3: uint16(31503), + 4: uint16(31496), + 5: uint16(31498), + 6: uint16(31502), + 7: uint16(31497), + 8: uint16(31506), + 9: uint16(31876), + 10: uint16(31889), + 11: uint16(31882), + 12: uint16(31884), + 13: uint16(31880), + 14: uint16(31885), + 15: uint16(31877), + 16: uint16(32030), + 17: uint16(32029), + 18: uint16(32017), + 19: uint16(32014), + 20: uint16(32024), + 21: uint16(32022), + 22: uint16(32019), + 23: uint16(32031), + 24: uint16(32018), + 25: uint16(32015), + 26: uint16(32012), + 27: uint16(32604), + 28: uint16(32609), + 29: uint16(32606), + 30: uint16(32608), + 31: uint16(32605), + 32: uint16(32603), + 33: uint16(32662), + 34: uint16(32658), + 35: uint16(32707), + 36: uint16(32706), + 37: uint16(32704), + 38: uint16(32790), + 39: uint16(32830), + 40: uint16(32825), + 41: uint16(33018), + 42: uint16(33010), + 43: uint16(33017), + 44: uint16(33013), + 45: uint16(33025), + 46: uint16(33019), + 47: uint16(33024), + 48: uint16(33281), + 49: uint16(33327), + 50: uint16(33317), + 51: uint16(33587), + 52: uint16(33581), + 53: uint16(33604), + 54: uint16(33561), + 55: uint16(33617), + 56: uint16(33573), + 57: uint16(33622), + 58: uint16(33599), + 59: uint16(33601), + 60: uint16(33574), + 61: uint16(33564), + 62: uint16(33570), + 63: uint16(33602), + 64: uint16(33614), + 65: uint16(33563), + 66: uint16(33578), + 67: uint16(33544), + 68: uint16(33596), + 69: uint16(33613), + 70: uint16(33558), + 71: uint16(33572), + 72: uint16(33568), + 73: uint16(33591), + 74: uint16(33583), + 75: uint16(33577), + 76: uint16(33607), + 77: uint16(33605), + 78: uint16(33612), + 79: uint16(33619), + 80: uint16(33566), + 81: uint16(33580), + 82: uint16(33611), + 83: uint16(33575), + 84: uint16(33608), + 85: uint16(34387), + 86: uint16(34386), + 87: uint16(34466), + 88: uint16(34472), + 89: uint16(34454), + 90: uint16(34445), + 91: uint16(34449), + 92: uint16(34462), + 93: uint16(34439), + 94: uint16(34455), + 95: uint16(34438), + 96: uint16(34443), + 97: uint16(34458), + 98: uint16(34437), + 99: uint16(34469), + 100: uint16(34457), + 101: uint16(34465), + 102: uint16(34471), + 103: uint16(34453), + 104: uint16(34456), + 105: uint16(34446), + 106: uint16(34461), + 107: uint16(34448), + 108: uint16(34452), + 109: uint16(34883), + 110: uint16(34884), + 111: uint16(34925), + 112: uint16(34933), + 113: uint16(34934), + 114: uint16(34930), + 115: uint16(34944), + 116: uint16(34929), + 117: uint16(34943), + 118: uint16(34927), + 119: uint16(34947), + 120: uint16(34942), + 121: uint16(34932), + 122: uint16(34940), + 123: uint16(35346), + 124: uint16(35911), + 125: uint16(35927), + 126: uint16(35963), + 127: uint16(36004), + 128: uint16(36003), + 129: uint16(36214), + 130: uint16(36216), + 131: uint16(36277), + 132: uint16(36279), + 133: uint16(36278), + 134: uint16(36561), + 135: uint16(36563), + 136: uint16(36862), + 137: uint16(36853), + 138: uint16(36866), + 139: uint16(36863), + 140: uint16(36859), + 141: uint16(36868), + 142: uint16(36860), + 143: uint16(36854), + 144: uint16(37078), + 145: uint16(37088), + 146: uint16(37081), + 147: uint16(37082), + 148: uint16(37091), + 149: uint16(37087), + 150: uint16(37093), + 151: uint16(37080), + 152: uint16(37083), + 153: uint16(37079), + 154: uint16(37084), + 155: uint16(37092), + 156: uint16(37200), + }, + 51: { + 0: uint16(37198), + 1: uint16(37199), + 2: uint16(37333), + 3: uint16(37346), + 4: uint16(37338), + 5: uint16(38492), + 6: uint16(38495), + 7: uint16(38588), + 8: uint16(39139), + 9: uint16(39647), + 10: uint16(39727), + 11: uint16(20095), + 12: uint16(20592), + 13: uint16(20586), + 14: uint16(20577), + 15: uint16(20574), + 16: uint16(20576), + 17: uint16(20563), + 18: uint16(20555), + 19: uint16(20573), + 20: uint16(20594), + 21: uint16(20552), + 22: uint16(20557), + 23: uint16(20545), + 24: uint16(20571), + 25: uint16(20554), + 26: uint16(20578), + 27: uint16(20501), + 28: uint16(20549), + 29: uint16(20575), + 30: uint16(20585), + 31: uint16(20587), + 32: uint16(20579), + 33: uint16(20580), + 34: uint16(20550), + 35: uint16(20544), + 36: uint16(20590), + 37: uint16(20595), + 38: uint16(20567), + 39: uint16(20561), + 40: uint16(20944), + 41: uint16(21099), + 42: uint16(21101), + 43: uint16(21100), + 44: uint16(21102), + 45: uint16(21206), + 46: uint16(21203), + 47: uint16(21293), + 48: uint16(21404), + 49: uint16(21877), + 50: uint16(21878), + 51: uint16(21820), + 52: uint16(21837), + 53: uint16(21840), + 54: uint16(21812), + 55: uint16(21802), + 56: uint16(21841), + 57: uint16(21858), + 58: uint16(21814), + 59: uint16(21813), + 60: uint16(21808), + 61: uint16(21842), + 62: uint16(21829), + 63: uint16(21772), + 64: uint16(21810), + 65: uint16(21861), + 66: uint16(21838), + 67: uint16(21817), + 68: uint16(21832), + 69: uint16(21805), + 70: uint16(21819), + 71: uint16(21824), + 72: uint16(21835), + 73: uint16(22282), + 74: uint16(22279), + 75: uint16(22523), + 76: uint16(22548), + 77: uint16(22498), + 78: uint16(22518), + 79: uint16(22492), + 80: uint16(22516), + 81: uint16(22528), + 82: uint16(22509), + 83: uint16(22525), + 84: uint16(22536), + 85: uint16(22520), + 86: uint16(22539), + 87: uint16(22515), + 88: uint16(22479), + 89: uint16(22535), + 90: uint16(22510), + 91: uint16(22499), + 92: uint16(22514), + 93: uint16(22501), + 94: uint16(22508), + 95: uint16(22497), + 96: uint16(22542), + 97: uint16(22524), + 98: uint16(22544), + 99: uint16(22503), + 100: uint16(22529), + 101: uint16(22540), + 102: uint16(22513), + 103: uint16(22505), + 104: uint16(22512), + 105: uint16(22541), + 106: uint16(22532), + 107: uint16(22876), + 108: uint16(23136), + 109: uint16(23128), + 110: uint16(23125), + 111: uint16(23143), + 112: uint16(23134), + 113: uint16(23096), + 114: uint16(23093), + 115: uint16(23149), + 116: uint16(23120), + 117: uint16(23135), + 118: uint16(23141), + 119: uint16(23148), + 120: uint16(23123), + 121: uint16(23140), + 122: uint16(23127), + 123: uint16(23107), + 124: uint16(23133), + 125: uint16(23122), + 126: uint16(23108), + 127: uint16(23131), + 128: uint16(23112), + 129: uint16(23182), + 130: uint16(23102), + 131: uint16(23117), + 132: uint16(23097), + 133: uint16(23116), + 134: uint16(23152), + 135: uint16(23145), + 136: uint16(23111), + 137: uint16(23121), + 138: uint16(23126), + 139: uint16(23106), + 140: uint16(23132), + 141: uint16(23410), + 142: uint16(23406), + 143: uint16(23489), + 144: uint16(23488), + 145: uint16(23641), + 146: uint16(23838), + 147: uint16(23819), + 148: uint16(23837), + 149: uint16(23834), + 150: uint16(23840), + 151: uint16(23820), + 152: uint16(23848), + 153: uint16(23821), + 154: uint16(23846), + 155: uint16(23845), + 156: uint16(23823), + }, + 52: { + 0: uint16(23856), + 1: uint16(23826), + 2: uint16(23843), + 3: uint16(23839), + 4: uint16(23854), + 5: uint16(24126), + 6: uint16(24116), + 7: uint16(24241), + 8: uint16(24244), + 9: uint16(24249), + 10: uint16(24242), + 11: uint16(24243), + 12: uint16(24374), + 13: uint16(24376), + 14: uint16(24475), + 15: uint16(24470), + 16: uint16(24479), + 17: uint16(24714), + 18: uint16(24720), + 19: uint16(24710), + 20: uint16(24766), + 21: uint16(24752), + 22: uint16(24762), + 23: uint16(24787), + 24: uint16(24788), + 25: uint16(24783), + 26: uint16(24804), + 27: uint16(24793), + 28: uint16(24797), + 29: uint16(24776), + 30: uint16(24753), + 31: uint16(24795), + 32: uint16(24759), + 33: uint16(24778), + 34: uint16(24767), + 35: uint16(24771), + 36: uint16(24781), + 37: uint16(24768), + 38: uint16(25394), + 39: uint16(25445), + 40: uint16(25482), + 41: uint16(25474), + 42: uint16(25469), + 43: uint16(25533), + 44: uint16(25502), + 45: uint16(25517), + 46: uint16(25501), + 47: uint16(25495), + 48: uint16(25515), + 49: uint16(25486), + 50: uint16(25455), + 51: uint16(25479), + 52: uint16(25488), + 53: uint16(25454), + 54: uint16(25519), + 55: uint16(25461), + 56: uint16(25500), + 57: uint16(25453), + 58: uint16(25518), + 59: uint16(25468), + 60: uint16(25508), + 61: uint16(25403), + 62: uint16(25503), + 63: uint16(25464), + 64: uint16(25477), + 65: uint16(25473), + 66: uint16(25489), + 67: uint16(25485), + 68: uint16(25456), + 69: uint16(25939), + 70: uint16(26061), + 71: uint16(26213), + 72: uint16(26209), + 73: uint16(26203), + 74: uint16(26201), + 75: uint16(26204), + 76: uint16(26210), + 77: uint16(26392), + 78: uint16(26745), + 79: uint16(26759), + 80: uint16(26768), + 81: uint16(26780), + 82: uint16(26733), + 83: uint16(26734), + 84: uint16(26798), + 85: uint16(26795), + 86: uint16(26966), + 87: uint16(26735), + 88: uint16(26787), + 89: uint16(26796), + 90: uint16(26793), + 91: uint16(26741), + 92: uint16(26740), + 93: uint16(26802), + 94: uint16(26767), + 95: uint16(26743), + 96: uint16(26770), + 97: uint16(26748), + 98: uint16(26731), + 99: uint16(26738), + 100: uint16(26794), + 101: uint16(26752), + 102: uint16(26737), + 103: uint16(26750), + 104: uint16(26779), + 105: uint16(26774), + 106: uint16(26763), + 107: uint16(26784), + 108: uint16(26761), + 109: uint16(26788), + 110: uint16(26744), + 111: uint16(26747), + 112: uint16(26769), + 113: uint16(26764), + 114: uint16(26762), + 115: uint16(26749), + 116: uint16(27446), + 117: uint16(27443), + 118: uint16(27447), + 119: uint16(27448), + 120: uint16(27537), + 121: uint16(27535), + 122: uint16(27533), + 123: uint16(27534), + 124: uint16(27532), + 125: uint16(27690), + 126: uint16(28096), + 127: uint16(28075), + 128: uint16(28084), + 129: uint16(28083), + 130: uint16(28276), + 131: uint16(28076), + 132: uint16(28137), + 133: uint16(28130), + 134: uint16(28087), + 135: uint16(28150), + 136: uint16(28116), + 137: uint16(28160), + 138: uint16(28104), + 139: uint16(28128), + 140: uint16(28127), + 141: uint16(28118), + 142: uint16(28094), + 143: uint16(28133), + 144: uint16(28124), + 145: uint16(28125), + 146: uint16(28123), + 147: uint16(28148), + 148: uint16(28106), + 149: uint16(28093), + 150: uint16(28141), + 151: uint16(28144), + 152: uint16(28090), + 153: uint16(28117), + 154: uint16(28098), + 155: uint16(28111), + 156: uint16(28105), + }, + 53: { + 0: uint16(28112), + 1: uint16(28146), + 2: uint16(28115), + 3: uint16(28157), + 4: uint16(28119), + 5: uint16(28109), + 6: uint16(28131), + 7: uint16(28091), + 8: uint16(28922), + 9: uint16(28941), + 10: uint16(28919), + 11: uint16(28951), + 12: uint16(28916), + 13: uint16(28940), + 14: uint16(28912), + 15: uint16(28932), + 16: uint16(28915), + 17: uint16(28944), + 18: uint16(28924), + 19: uint16(28927), + 20: uint16(28934), + 21: uint16(28947), + 22: uint16(28928), + 23: uint16(28920), + 24: uint16(28918), + 25: uint16(28939), + 26: uint16(28930), + 27: uint16(28942), + 28: uint16(29310), + 29: uint16(29307), + 30: uint16(29308), + 31: uint16(29311), + 32: uint16(29469), + 33: uint16(29463), + 34: uint16(29447), + 35: uint16(29457), + 36: uint16(29464), + 37: uint16(29450), + 38: uint16(29448), + 39: uint16(29439), + 40: uint16(29455), + 41: uint16(29470), + 42: uint16(29576), + 43: uint16(29686), + 44: uint16(29688), + 45: uint16(29685), + 46: uint16(29700), + 47: uint16(29697), + 48: uint16(29693), + 49: uint16(29703), + 50: uint16(29696), + 51: uint16(29690), + 52: uint16(29692), + 53: uint16(29695), + 54: uint16(29708), + 55: uint16(29707), + 56: uint16(29684), + 57: uint16(29704), + 58: uint16(30052), + 59: uint16(30051), + 60: uint16(30158), + 61: uint16(30162), + 62: uint16(30159), + 63: uint16(30155), + 64: uint16(30156), + 65: uint16(30161), + 66: uint16(30160), + 67: uint16(30351), + 68: uint16(30345), + 69: uint16(30419), + 70: uint16(30521), + 71: uint16(30511), + 72: uint16(30509), + 73: uint16(30513), + 74: uint16(30514), + 75: uint16(30516), + 76: uint16(30515), + 77: uint16(30525), + 78: uint16(30501), + 79: uint16(30523), + 80: uint16(30517), + 81: uint16(30792), + 82: uint16(30802), + 83: uint16(30793), + 84: uint16(30797), + 85: uint16(30794), + 86: uint16(30796), + 87: uint16(30758), + 88: uint16(30789), + 89: uint16(30800), + 90: uint16(31076), + 91: uint16(31079), + 92: uint16(31081), + 93: uint16(31082), + 94: uint16(31075), + 95: uint16(31083), + 96: uint16(31073), + 97: uint16(31163), + 98: uint16(31226), + 99: uint16(31224), + 100: uint16(31222), + 101: uint16(31223), + 102: uint16(31375), + 103: uint16(31380), + 104: uint16(31376), + 105: uint16(31541), + 106: uint16(31559), + 107: uint16(31540), + 108: uint16(31525), + 109: uint16(31536), + 110: uint16(31522), + 111: uint16(31524), + 112: uint16(31539), + 113: uint16(31512), + 114: uint16(31530), + 115: uint16(31517), + 116: uint16(31537), + 117: uint16(31531), + 118: uint16(31533), + 119: uint16(31535), + 120: uint16(31538), + 121: uint16(31544), + 122: uint16(31514), + 123: uint16(31523), + 124: uint16(31892), + 125: uint16(31896), + 126: uint16(31894), + 127: uint16(31907), + 128: uint16(32053), + 129: uint16(32061), + 130: uint16(32056), + 131: uint16(32054), + 132: uint16(32058), + 133: uint16(32069), + 134: uint16(32044), + 135: uint16(32041), + 136: uint16(32065), + 137: uint16(32071), + 138: uint16(32062), + 139: uint16(32063), + 140: uint16(32074), + 141: uint16(32059), + 142: uint16(32040), + 143: uint16(32611), + 144: uint16(32661), + 145: uint16(32668), + 146: uint16(32669), + 147: uint16(32667), + 148: uint16(32714), + 149: uint16(32715), + 150: uint16(32717), + 151: uint16(32720), + 152: uint16(32721), + 153: uint16(32711), + 154: uint16(32719), + 155: uint16(32713), + 156: uint16(32799), + }, + 54: { + 0: uint16(32798), + 1: uint16(32795), + 2: uint16(32839), + 3: uint16(32835), + 4: uint16(32840), + 5: uint16(33048), + 6: uint16(33061), + 7: uint16(33049), + 8: uint16(33051), + 9: uint16(33069), + 10: uint16(33055), + 11: uint16(33068), + 12: uint16(33054), + 13: uint16(33057), + 14: uint16(33045), + 15: uint16(33063), + 16: uint16(33053), + 17: uint16(33058), + 18: uint16(33297), + 19: uint16(33336), + 20: uint16(33331), + 21: uint16(33338), + 22: uint16(33332), + 23: uint16(33330), + 24: uint16(33396), + 25: uint16(33680), + 26: uint16(33699), + 27: uint16(33704), + 28: uint16(33677), + 29: uint16(33658), + 30: uint16(33651), + 31: uint16(33700), + 32: uint16(33652), + 33: uint16(33679), + 34: uint16(33665), + 35: uint16(33685), + 36: uint16(33689), + 37: uint16(33653), + 38: uint16(33684), + 39: uint16(33705), + 40: uint16(33661), + 41: uint16(33667), + 42: uint16(33676), + 43: uint16(33693), + 44: uint16(33691), + 45: uint16(33706), + 46: uint16(33675), + 47: uint16(33662), + 48: uint16(33701), + 49: uint16(33711), + 50: uint16(33672), + 51: uint16(33687), + 52: uint16(33712), + 53: uint16(33663), + 54: uint16(33702), + 55: uint16(33671), + 56: uint16(33710), + 57: uint16(33654), + 58: uint16(33690), + 59: uint16(34393), + 60: uint16(34390), + 61: uint16(34495), + 62: uint16(34487), + 63: uint16(34498), + 64: uint16(34497), + 65: uint16(34501), + 66: uint16(34490), + 67: uint16(34480), + 68: uint16(34504), + 69: uint16(34489), + 70: uint16(34483), + 71: uint16(34488), + 72: uint16(34508), + 73: uint16(34484), + 74: uint16(34491), + 75: uint16(34492), + 76: uint16(34499), + 77: uint16(34493), + 78: uint16(34494), + 79: uint16(34898), + 80: uint16(34953), + 81: uint16(34965), + 82: uint16(34984), + 83: uint16(34978), + 84: uint16(34986), + 85: uint16(34970), + 86: uint16(34961), + 87: uint16(34977), + 88: uint16(34975), + 89: uint16(34968), + 90: uint16(34983), + 91: uint16(34969), + 92: uint16(34971), + 93: uint16(34967), + 94: uint16(34980), + 95: uint16(34988), + 96: uint16(34956), + 97: uint16(34963), + 98: uint16(34958), + 99: uint16(35202), + 100: uint16(35286), + 101: uint16(35289), + 102: uint16(35285), + 103: uint16(35376), + 104: uint16(35367), + 105: uint16(35372), + 106: uint16(35358), + 107: uint16(35897), + 108: uint16(35899), + 109: uint16(35932), + 110: uint16(35933), + 111: uint16(35965), + 112: uint16(36005), + 113: uint16(36221), + 114: uint16(36219), + 115: uint16(36217), + 116: uint16(36284), + 117: uint16(36290), + 118: uint16(36281), + 119: uint16(36287), + 120: uint16(36289), + 121: uint16(36568), + 122: uint16(36574), + 123: uint16(36573), + 124: uint16(36572), + 125: uint16(36567), + 126: uint16(36576), + 127: uint16(36577), + 128: uint16(36900), + 129: uint16(36875), + 130: uint16(36881), + 131: uint16(36892), + 132: uint16(36876), + 133: uint16(36897), + 134: uint16(37103), + 135: uint16(37098), + 136: uint16(37104), + 137: uint16(37108), + 138: uint16(37106), + 139: uint16(37107), + 140: uint16(37076), + 141: uint16(37099), + 142: uint16(37100), + 143: uint16(37097), + 144: uint16(37206), + 145: uint16(37208), + 146: uint16(37210), + 147: uint16(37203), + 148: uint16(37205), + 149: uint16(37356), + 150: uint16(37364), + 151: uint16(37361), + 152: uint16(37363), + 153: uint16(37368), + 154: uint16(37348), + 155: uint16(37369), + 156: uint16(37354), + }, + 55: { + 0: uint16(37355), + 1: uint16(37367), + 2: uint16(37352), + 3: uint16(37358), + 4: uint16(38266), + 5: uint16(38278), + 6: uint16(38280), + 7: uint16(38524), + 8: uint16(38509), + 9: uint16(38507), + 10: uint16(38513), + 11: uint16(38511), + 12: uint16(38591), + 13: uint16(38762), + 14: uint16(38916), + 15: uint16(39141), + 16: uint16(39319), + 17: uint16(20635), + 18: uint16(20629), + 19: uint16(20628), + 20: uint16(20638), + 21: uint16(20619), + 22: uint16(20643), + 23: uint16(20611), + 24: uint16(20620), + 25: uint16(20622), + 26: uint16(20637), + 27: uint16(20584), + 28: uint16(20636), + 29: uint16(20626), + 30: uint16(20610), + 31: uint16(20615), + 32: uint16(20831), + 33: uint16(20948), + 34: uint16(21266), + 35: uint16(21265), + 36: uint16(21412), + 37: uint16(21415), + 38: uint16(21905), + 39: uint16(21928), + 40: uint16(21925), + 41: uint16(21933), + 42: uint16(21879), + 43: uint16(22085), + 44: uint16(21922), + 45: uint16(21907), + 46: uint16(21896), + 47: uint16(21903), + 48: uint16(21941), + 49: uint16(21889), + 50: uint16(21923), + 51: uint16(21906), + 52: uint16(21924), + 53: uint16(21885), + 54: uint16(21900), + 55: uint16(21926), + 56: uint16(21887), + 57: uint16(21909), + 58: uint16(21921), + 59: uint16(21902), + 60: uint16(22284), + 61: uint16(22569), + 62: uint16(22583), + 63: uint16(22553), + 64: uint16(22558), + 65: uint16(22567), + 66: uint16(22563), + 67: uint16(22568), + 68: uint16(22517), + 69: uint16(22600), + 70: uint16(22565), + 71: uint16(22556), + 72: uint16(22555), + 73: uint16(22579), + 74: uint16(22591), + 75: uint16(22582), + 76: uint16(22574), + 77: uint16(22585), + 78: uint16(22584), + 79: uint16(22573), + 80: uint16(22572), + 81: uint16(22587), + 82: uint16(22881), + 83: uint16(23215), + 84: uint16(23188), + 85: uint16(23199), + 86: uint16(23162), + 87: uint16(23202), + 88: uint16(23198), + 89: uint16(23160), + 90: uint16(23206), + 91: uint16(23164), + 92: uint16(23205), + 93: uint16(23212), + 94: uint16(23189), + 95: uint16(23214), + 96: uint16(23095), + 97: uint16(23172), + 98: uint16(23178), + 99: uint16(23191), + 100: uint16(23171), + 101: uint16(23179), + 102: uint16(23209), + 103: uint16(23163), + 104: uint16(23165), + 105: uint16(23180), + 106: uint16(23196), + 107: uint16(23183), + 108: uint16(23187), + 109: uint16(23197), + 110: uint16(23530), + 111: uint16(23501), + 112: uint16(23499), + 113: uint16(23508), + 114: uint16(23505), + 115: uint16(23498), + 116: uint16(23502), + 117: uint16(23564), + 118: uint16(23600), + 119: uint16(23863), + 120: uint16(23875), + 121: uint16(23915), + 122: uint16(23873), + 123: uint16(23883), + 124: uint16(23871), + 125: uint16(23861), + 126: uint16(23889), + 127: uint16(23886), + 128: uint16(23893), + 129: uint16(23859), + 130: uint16(23866), + 131: uint16(23890), + 132: uint16(23869), + 133: uint16(23857), + 134: uint16(23897), + 135: uint16(23874), + 136: uint16(23865), + 137: uint16(23881), + 138: uint16(23864), + 139: uint16(23868), + 140: uint16(23858), + 141: uint16(23862), + 142: uint16(23872), + 143: uint16(23877), + 144: uint16(24132), + 145: uint16(24129), + 146: uint16(24408), + 147: uint16(24486), + 148: uint16(24485), + 149: uint16(24491), + 150: uint16(24777), + 151: uint16(24761), + 152: uint16(24780), + 153: uint16(24802), + 154: uint16(24782), + 155: uint16(24772), + 156: uint16(24852), + }, + 56: { + 0: uint16(24818), + 1: uint16(24842), + 2: uint16(24854), + 3: uint16(24837), + 4: uint16(24821), + 5: uint16(24851), + 6: uint16(24824), + 7: uint16(24828), + 8: uint16(24830), + 9: uint16(24769), + 10: uint16(24835), + 11: uint16(24856), + 12: uint16(24861), + 13: uint16(24848), + 14: uint16(24831), + 15: uint16(24836), + 16: uint16(24843), + 17: uint16(25162), + 18: uint16(25492), + 19: uint16(25521), + 20: uint16(25520), + 21: uint16(25550), + 22: uint16(25573), + 23: uint16(25576), + 24: uint16(25583), + 25: uint16(25539), + 26: uint16(25757), + 27: uint16(25587), + 28: uint16(25546), + 29: uint16(25568), + 30: uint16(25590), + 31: uint16(25557), + 32: uint16(25586), + 33: uint16(25589), + 34: uint16(25697), + 35: uint16(25567), + 36: uint16(25534), + 37: uint16(25565), + 38: uint16(25564), + 39: uint16(25540), + 40: uint16(25560), + 41: uint16(25555), + 42: uint16(25538), + 43: uint16(25543), + 44: uint16(25548), + 45: uint16(25547), + 46: uint16(25544), + 47: uint16(25584), + 48: uint16(25559), + 49: uint16(25561), + 50: uint16(25906), + 51: uint16(25959), + 52: uint16(25962), + 53: uint16(25956), + 54: uint16(25948), + 55: uint16(25960), + 56: uint16(25957), + 57: uint16(25996), + 58: uint16(26013), + 59: uint16(26014), + 60: uint16(26030), + 61: uint16(26064), + 62: uint16(26066), + 63: uint16(26236), + 64: uint16(26220), + 65: uint16(26235), + 66: uint16(26240), + 67: uint16(26225), + 68: uint16(26233), + 69: uint16(26218), + 70: uint16(26226), + 71: uint16(26369), + 72: uint16(26892), + 73: uint16(26835), + 74: uint16(26884), + 75: uint16(26844), + 76: uint16(26922), + 77: uint16(26860), + 78: uint16(26858), + 79: uint16(26865), + 80: uint16(26895), + 81: uint16(26838), + 82: uint16(26871), + 83: uint16(26859), + 84: uint16(26852), + 85: uint16(26870), + 86: uint16(26899), + 87: uint16(26896), + 88: uint16(26867), + 89: uint16(26849), + 90: uint16(26887), + 91: uint16(26828), + 92: uint16(26888), + 93: uint16(26992), + 94: uint16(26804), + 95: uint16(26897), + 96: uint16(26863), + 97: uint16(26822), + 98: uint16(26900), + 99: uint16(26872), + 100: uint16(26832), + 101: uint16(26877), + 102: uint16(26876), + 103: uint16(26856), + 104: uint16(26891), + 105: uint16(26890), + 106: uint16(26903), + 107: uint16(26830), + 108: uint16(26824), + 109: uint16(26845), + 110: uint16(26846), + 111: uint16(26854), + 112: uint16(26868), + 113: uint16(26833), + 114: uint16(26886), + 115: uint16(26836), + 116: uint16(26857), + 117: uint16(26901), + 118: uint16(26917), + 119: uint16(26823), + 120: uint16(27449), + 121: uint16(27451), + 122: uint16(27455), + 123: uint16(27452), + 124: uint16(27540), + 125: uint16(27543), + 126: uint16(27545), + 127: uint16(27541), + 128: uint16(27581), + 129: uint16(27632), + 130: uint16(27634), + 131: uint16(27635), + 132: uint16(27696), + 133: uint16(28156), + 134: uint16(28230), + 135: uint16(28231), + 136: uint16(28191), + 137: uint16(28233), + 138: uint16(28296), + 139: uint16(28220), + 140: uint16(28221), + 141: uint16(28229), + 142: uint16(28258), + 143: uint16(28203), + 144: uint16(28223), + 145: uint16(28225), + 146: uint16(28253), + 147: uint16(28275), + 148: uint16(28188), + 149: uint16(28211), + 150: uint16(28235), + 151: uint16(28224), + 152: uint16(28241), + 153: uint16(28219), + 154: uint16(28163), + 155: uint16(28206), + 156: uint16(28254), + }, + 57: { + 0: uint16(28264), + 1: uint16(28252), + 2: uint16(28257), + 3: uint16(28209), + 4: uint16(28200), + 5: uint16(28256), + 6: uint16(28273), + 7: uint16(28267), + 8: uint16(28217), + 9: uint16(28194), + 10: uint16(28208), + 11: uint16(28243), + 12: uint16(28261), + 13: uint16(28199), + 14: uint16(28280), + 15: uint16(28260), + 16: uint16(28279), + 17: uint16(28245), + 18: uint16(28281), + 19: uint16(28242), + 20: uint16(28262), + 21: uint16(28213), + 22: uint16(28214), + 23: uint16(28250), + 24: uint16(28960), + 25: uint16(28958), + 26: uint16(28975), + 27: uint16(28923), + 28: uint16(28974), + 29: uint16(28977), + 30: uint16(28963), + 31: uint16(28965), + 32: uint16(28962), + 33: uint16(28978), + 34: uint16(28959), + 35: uint16(28968), + 36: uint16(28986), + 37: uint16(28955), + 38: uint16(29259), + 39: uint16(29274), + 40: uint16(29320), + 41: uint16(29321), + 42: uint16(29318), + 43: uint16(29317), + 44: uint16(29323), + 45: uint16(29458), + 46: uint16(29451), + 47: uint16(29488), + 48: uint16(29474), + 49: uint16(29489), + 50: uint16(29491), + 51: uint16(29479), + 52: uint16(29490), + 53: uint16(29485), + 54: uint16(29478), + 55: uint16(29475), + 56: uint16(29493), + 57: uint16(29452), + 58: uint16(29742), + 59: uint16(29740), + 60: uint16(29744), + 61: uint16(29739), + 62: uint16(29718), + 63: uint16(29722), + 64: uint16(29729), + 65: uint16(29741), + 66: uint16(29745), + 67: uint16(29732), + 68: uint16(29731), + 69: uint16(29725), + 70: uint16(29737), + 71: uint16(29728), + 72: uint16(29746), + 73: uint16(29947), + 74: uint16(29999), + 75: uint16(30063), + 76: uint16(30060), + 77: uint16(30183), + 78: uint16(30170), + 79: uint16(30177), + 80: uint16(30182), + 81: uint16(30173), + 82: uint16(30175), + 83: uint16(30180), + 84: uint16(30167), + 85: uint16(30357), + 86: uint16(30354), + 87: uint16(30426), + 88: uint16(30534), + 89: uint16(30535), + 90: uint16(30532), + 91: uint16(30541), + 92: uint16(30533), + 93: uint16(30538), + 94: uint16(30542), + 95: uint16(30539), + 96: uint16(30540), + 97: uint16(30686), + 98: uint16(30700), + 99: uint16(30816), + 100: uint16(30820), + 101: uint16(30821), + 102: uint16(30812), + 103: uint16(30829), + 104: uint16(30833), + 105: uint16(30826), + 106: uint16(30830), + 107: uint16(30832), + 108: uint16(30825), + 109: uint16(30824), + 110: uint16(30814), + 111: uint16(30818), + 112: uint16(31092), + 113: uint16(31091), + 114: uint16(31090), + 115: uint16(31088), + 116: uint16(31234), + 117: uint16(31242), + 118: uint16(31235), + 119: uint16(31244), + 120: uint16(31236), + 121: uint16(31385), + 122: uint16(31462), + 123: uint16(31460), + 124: uint16(31562), + 125: uint16(31547), + 126: uint16(31556), + 127: uint16(31560), + 128: uint16(31564), + 129: uint16(31566), + 130: uint16(31552), + 131: uint16(31576), + 132: uint16(31557), + 133: uint16(31906), + 134: uint16(31902), + 135: uint16(31912), + 136: uint16(31905), + 137: uint16(32088), + 138: uint16(32111), + 139: uint16(32099), + 140: uint16(32083), + 141: uint16(32086), + 142: uint16(32103), + 143: uint16(32106), + 144: uint16(32079), + 145: uint16(32109), + 146: uint16(32092), + 147: uint16(32107), + 148: uint16(32082), + 149: uint16(32084), + 150: uint16(32105), + 151: uint16(32081), + 152: uint16(32095), + 153: uint16(32078), + 154: uint16(32574), + 155: uint16(32575), + 156: uint16(32613), + }, + 58: { + 0: uint16(32614), + 1: uint16(32674), + 2: uint16(32672), + 3: uint16(32673), + 4: uint16(32727), + 5: uint16(32849), + 6: uint16(32847), + 7: uint16(32848), + 8: uint16(33022), + 9: uint16(32980), + 10: uint16(33091), + 11: uint16(33098), + 12: uint16(33106), + 13: uint16(33103), + 14: uint16(33095), + 15: uint16(33085), + 16: uint16(33101), + 17: uint16(33082), + 18: uint16(33254), + 19: uint16(33262), + 20: uint16(33271), + 21: uint16(33272), + 22: uint16(33273), + 23: uint16(33284), + 24: uint16(33340), + 25: uint16(33341), + 26: uint16(33343), + 27: uint16(33397), + 28: uint16(33595), + 29: uint16(33743), + 30: uint16(33785), + 31: uint16(33827), + 32: uint16(33728), + 33: uint16(33768), + 34: uint16(33810), + 35: uint16(33767), + 36: uint16(33764), + 37: uint16(33788), + 38: uint16(33782), + 39: uint16(33808), + 40: uint16(33734), + 41: uint16(33736), + 42: uint16(33771), + 43: uint16(33763), + 44: uint16(33727), + 45: uint16(33793), + 46: uint16(33757), + 47: uint16(33765), + 48: uint16(33752), + 49: uint16(33791), + 50: uint16(33761), + 51: uint16(33739), + 52: uint16(33742), + 53: uint16(33750), + 54: uint16(33781), + 55: uint16(33737), + 56: uint16(33801), + 57: uint16(33807), + 58: uint16(33758), + 59: uint16(33809), + 60: uint16(33798), + 61: uint16(33730), + 62: uint16(33779), + 63: uint16(33749), + 64: uint16(33786), + 65: uint16(33735), + 66: uint16(33745), + 67: uint16(33770), + 68: uint16(33811), + 69: uint16(33731), + 70: uint16(33772), + 71: uint16(33774), + 72: uint16(33732), + 73: uint16(33787), + 74: uint16(33751), + 75: uint16(33762), + 76: uint16(33819), + 77: uint16(33755), + 78: uint16(33790), + 79: uint16(34520), + 80: uint16(34530), + 81: uint16(34534), + 82: uint16(34515), + 83: uint16(34531), + 84: uint16(34522), + 85: uint16(34538), + 86: uint16(34525), + 87: uint16(34539), + 88: uint16(34524), + 89: uint16(34540), + 90: uint16(34537), + 91: uint16(34519), + 92: uint16(34536), + 93: uint16(34513), + 94: uint16(34888), + 95: uint16(34902), + 96: uint16(34901), + 97: uint16(35002), + 98: uint16(35031), + 99: uint16(35001), + 100: uint16(35000), + 101: uint16(35008), + 102: uint16(35006), + 103: uint16(34998), + 104: uint16(35004), + 105: uint16(34999), + 106: uint16(35005), + 107: uint16(34994), + 108: uint16(35073), + 109: uint16(35017), + 110: uint16(35221), + 111: uint16(35224), + 112: uint16(35223), + 113: uint16(35293), + 114: uint16(35290), + 115: uint16(35291), + 116: uint16(35406), + 117: uint16(35405), + 118: uint16(35385), + 119: uint16(35417), + 120: uint16(35392), + 121: uint16(35415), + 122: uint16(35416), + 123: uint16(35396), + 124: uint16(35397), + 125: uint16(35410), + 126: uint16(35400), + 127: uint16(35409), + 128: uint16(35402), + 129: uint16(35404), + 130: uint16(35407), + 131: uint16(35935), + 132: uint16(35969), + 133: uint16(35968), + 134: uint16(36026), + 135: uint16(36030), + 136: uint16(36016), + 137: uint16(36025), + 138: uint16(36021), + 139: uint16(36228), + 140: uint16(36224), + 141: uint16(36233), + 142: uint16(36312), + 143: uint16(36307), + 144: uint16(36301), + 145: uint16(36295), + 146: uint16(36310), + 147: uint16(36316), + 148: uint16(36303), + 149: uint16(36309), + 150: uint16(36313), + 151: uint16(36296), + 152: uint16(36311), + 153: uint16(36293), + 154: uint16(36591), + 155: uint16(36599), + 156: uint16(36602), + }, + 59: { + 0: uint16(36601), + 1: uint16(36582), + 2: uint16(36590), + 3: uint16(36581), + 4: uint16(36597), + 5: uint16(36583), + 6: uint16(36584), + 7: uint16(36598), + 8: uint16(36587), + 9: uint16(36593), + 10: uint16(36588), + 11: uint16(36596), + 12: uint16(36585), + 13: uint16(36909), + 14: uint16(36916), + 15: uint16(36911), + 16: uint16(37126), + 17: uint16(37164), + 18: uint16(37124), + 19: uint16(37119), + 20: uint16(37116), + 21: uint16(37128), + 22: uint16(37113), + 23: uint16(37115), + 24: uint16(37121), + 25: uint16(37120), + 26: uint16(37127), + 27: uint16(37125), + 28: uint16(37123), + 29: uint16(37217), + 30: uint16(37220), + 31: uint16(37215), + 32: uint16(37218), + 33: uint16(37216), + 34: uint16(37377), + 35: uint16(37386), + 36: uint16(37413), + 37: uint16(37379), + 38: uint16(37402), + 39: uint16(37414), + 40: uint16(37391), + 41: uint16(37388), + 42: uint16(37376), + 43: uint16(37394), + 44: uint16(37375), + 45: uint16(37373), + 46: uint16(37382), + 47: uint16(37380), + 48: uint16(37415), + 49: uint16(37378), + 50: uint16(37404), + 51: uint16(37412), + 52: uint16(37401), + 53: uint16(37399), + 54: uint16(37381), + 55: uint16(37398), + 56: uint16(38267), + 57: uint16(38285), + 58: uint16(38284), + 59: uint16(38288), + 60: uint16(38535), + 61: uint16(38526), + 62: uint16(38536), + 63: uint16(38537), + 64: uint16(38531), + 65: uint16(38528), + 66: uint16(38594), + 67: uint16(38600), + 68: uint16(38595), + 69: uint16(38641), + 70: uint16(38640), + 71: uint16(38764), + 72: uint16(38768), + 73: uint16(38766), + 74: uint16(38919), + 75: uint16(39081), + 76: uint16(39147), + 77: uint16(40166), + 78: uint16(40697), + 79: uint16(20099), + 80: uint16(20100), + 81: uint16(20150), + 82: uint16(20669), + 83: uint16(20671), + 84: uint16(20678), + 85: uint16(20654), + 86: uint16(20676), + 87: uint16(20682), + 88: uint16(20660), + 89: uint16(20680), + 90: uint16(20674), + 91: uint16(20656), + 92: uint16(20673), + 93: uint16(20666), + 94: uint16(20657), + 95: uint16(20683), + 96: uint16(20681), + 97: uint16(20662), + 98: uint16(20664), + 99: uint16(20951), + 100: uint16(21114), + 101: uint16(21112), + 102: uint16(21115), + 103: uint16(21116), + 104: uint16(21955), + 105: uint16(21979), + 106: uint16(21964), + 107: uint16(21968), + 108: uint16(21963), + 109: uint16(21962), + 110: uint16(21981), + 111: uint16(21952), + 112: uint16(21972), + 113: uint16(21956), + 114: uint16(21993), + 115: uint16(21951), + 116: uint16(21970), + 117: uint16(21901), + 118: uint16(21967), + 119: uint16(21973), + 120: uint16(21986), + 121: uint16(21974), + 122: uint16(21960), + 123: uint16(22002), + 124: uint16(21965), + 125: uint16(21977), + 126: uint16(21954), + 127: uint16(22292), + 128: uint16(22611), + 129: uint16(22632), + 130: uint16(22628), + 131: uint16(22607), + 132: uint16(22605), + 133: uint16(22601), + 134: uint16(22639), + 135: uint16(22613), + 136: uint16(22606), + 137: uint16(22621), + 138: uint16(22617), + 139: uint16(22629), + 140: uint16(22619), + 141: uint16(22589), + 142: uint16(22627), + 143: uint16(22641), + 144: uint16(22780), + 145: uint16(23239), + 146: uint16(23236), + 147: uint16(23243), + 148: uint16(23226), + 149: uint16(23224), + 150: uint16(23217), + 151: uint16(23221), + 152: uint16(23216), + 153: uint16(23231), + 154: uint16(23240), + 155: uint16(23227), + 156: uint16(23238), + }, + 60: { + 0: uint16(23223), + 1: uint16(23232), + 2: uint16(23242), + 3: uint16(23220), + 4: uint16(23222), + 5: uint16(23245), + 6: uint16(23225), + 7: uint16(23184), + 8: uint16(23510), + 9: uint16(23512), + 10: uint16(23513), + 11: uint16(23583), + 12: uint16(23603), + 13: uint16(23921), + 14: uint16(23907), + 15: uint16(23882), + 16: uint16(23909), + 17: uint16(23922), + 18: uint16(23916), + 19: uint16(23902), + 20: uint16(23912), + 21: uint16(23911), + 22: uint16(23906), + 23: uint16(24048), + 24: uint16(24143), + 25: uint16(24142), + 26: uint16(24138), + 27: uint16(24141), + 28: uint16(24139), + 29: uint16(24261), + 30: uint16(24268), + 31: uint16(24262), + 32: uint16(24267), + 33: uint16(24263), + 34: uint16(24384), + 35: uint16(24495), + 36: uint16(24493), + 37: uint16(24823), + 38: uint16(24905), + 39: uint16(24906), + 40: uint16(24875), + 41: uint16(24901), + 42: uint16(24886), + 43: uint16(24882), + 44: uint16(24878), + 45: uint16(24902), + 46: uint16(24879), + 47: uint16(24911), + 48: uint16(24873), + 49: uint16(24896), + 50: uint16(25120), + 51: uint16(37224), + 52: uint16(25123), + 53: uint16(25125), + 54: uint16(25124), + 55: uint16(25541), + 56: uint16(25585), + 57: uint16(25579), + 58: uint16(25616), + 59: uint16(25618), + 60: uint16(25609), + 61: uint16(25632), + 62: uint16(25636), + 63: uint16(25651), + 64: uint16(25667), + 65: uint16(25631), + 66: uint16(25621), + 67: uint16(25624), + 68: uint16(25657), + 69: uint16(25655), + 70: uint16(25634), + 71: uint16(25635), + 72: uint16(25612), + 73: uint16(25638), + 74: uint16(25648), + 75: uint16(25640), + 76: uint16(25665), + 77: uint16(25653), + 78: uint16(25647), + 79: uint16(25610), + 80: uint16(25626), + 81: uint16(25664), + 82: uint16(25637), + 83: uint16(25639), + 84: uint16(25611), + 85: uint16(25575), + 86: uint16(25627), + 87: uint16(25646), + 88: uint16(25633), + 89: uint16(25614), + 90: uint16(25967), + 91: uint16(26002), + 92: uint16(26067), + 93: uint16(26246), + 94: uint16(26252), + 95: uint16(26261), + 96: uint16(26256), + 97: uint16(26251), + 98: uint16(26250), + 99: uint16(26265), + 100: uint16(26260), + 101: uint16(26232), + 102: uint16(26400), + 103: uint16(26982), + 104: uint16(26975), + 105: uint16(26936), + 106: uint16(26958), + 107: uint16(26978), + 108: uint16(26993), + 109: uint16(26943), + 110: uint16(26949), + 111: uint16(26986), + 112: uint16(26937), + 113: uint16(26946), + 114: uint16(26967), + 115: uint16(26969), + 116: uint16(27002), + 117: uint16(26952), + 118: uint16(26953), + 119: uint16(26933), + 120: uint16(26988), + 121: uint16(26931), + 122: uint16(26941), + 123: uint16(26981), + 124: uint16(26864), + 125: uint16(27000), + 126: uint16(26932), + 127: uint16(26985), + 128: uint16(26944), + 129: uint16(26991), + 130: uint16(26948), + 131: uint16(26998), + 132: uint16(26968), + 133: uint16(26945), + 134: uint16(26996), + 135: uint16(26956), + 136: uint16(26939), + 137: uint16(26955), + 138: uint16(26935), + 139: uint16(26972), + 140: uint16(26959), + 141: uint16(26961), + 142: uint16(26930), + 143: uint16(26962), + 144: uint16(26927), + 145: uint16(27003), + 146: uint16(26940), + 147: uint16(27462), + 148: uint16(27461), + 149: uint16(27459), + 150: uint16(27458), + 151: uint16(27464), + 152: uint16(27457), + 153: uint16(27547), + 154: uint16(64013), + 155: uint16(27643), + 156: uint16(27644), + }, + 61: { + 0: uint16(27641), + 1: uint16(27639), + 2: uint16(27640), + 3: uint16(28315), + 4: uint16(28374), + 5: uint16(28360), + 6: uint16(28303), + 7: uint16(28352), + 8: uint16(28319), + 9: uint16(28307), + 10: uint16(28308), + 11: uint16(28320), + 12: uint16(28337), + 13: uint16(28345), + 14: uint16(28358), + 15: uint16(28370), + 16: uint16(28349), + 17: uint16(28353), + 18: uint16(28318), + 19: uint16(28361), + 20: uint16(28343), + 21: uint16(28336), + 22: uint16(28365), + 23: uint16(28326), + 24: uint16(28367), + 25: uint16(28338), + 26: uint16(28350), + 27: uint16(28355), + 28: uint16(28380), + 29: uint16(28376), + 30: uint16(28313), + 31: uint16(28306), + 32: uint16(28302), + 33: uint16(28301), + 34: uint16(28324), + 35: uint16(28321), + 36: uint16(28351), + 37: uint16(28339), + 38: uint16(28368), + 39: uint16(28362), + 40: uint16(28311), + 41: uint16(28334), + 42: uint16(28323), + 43: uint16(28999), + 44: uint16(29012), + 45: uint16(29010), + 46: uint16(29027), + 47: uint16(29024), + 48: uint16(28993), + 49: uint16(29021), + 50: uint16(29026), + 51: uint16(29042), + 52: uint16(29048), + 53: uint16(29034), + 54: uint16(29025), + 55: uint16(28994), + 56: uint16(29016), + 57: uint16(28995), + 58: uint16(29003), + 59: uint16(29040), + 60: uint16(29023), + 61: uint16(29008), + 62: uint16(29011), + 63: uint16(28996), + 64: uint16(29005), + 65: uint16(29018), + 66: uint16(29263), + 67: uint16(29325), + 68: uint16(29324), + 69: uint16(29329), + 70: uint16(29328), + 71: uint16(29326), + 72: uint16(29500), + 73: uint16(29506), + 74: uint16(29499), + 75: uint16(29498), + 76: uint16(29504), + 77: uint16(29514), + 78: uint16(29513), + 79: uint16(29764), + 80: uint16(29770), + 81: uint16(29771), + 82: uint16(29778), + 83: uint16(29777), + 84: uint16(29783), + 85: uint16(29760), + 86: uint16(29775), + 87: uint16(29776), + 88: uint16(29774), + 89: uint16(29762), + 90: uint16(29766), + 91: uint16(29773), + 92: uint16(29780), + 93: uint16(29921), + 94: uint16(29951), + 95: uint16(29950), + 96: uint16(29949), + 97: uint16(29981), + 98: uint16(30073), + 99: uint16(30071), + 100: uint16(27011), + 101: uint16(30191), + 102: uint16(30223), + 103: uint16(30211), + 104: uint16(30199), + 105: uint16(30206), + 106: uint16(30204), + 107: uint16(30201), + 108: uint16(30200), + 109: uint16(30224), + 110: uint16(30203), + 111: uint16(30198), + 112: uint16(30189), + 113: uint16(30197), + 114: uint16(30205), + 115: uint16(30361), + 116: uint16(30389), + 117: uint16(30429), + 118: uint16(30549), + 119: uint16(30559), + 120: uint16(30560), + 121: uint16(30546), + 122: uint16(30550), + 123: uint16(30554), + 124: uint16(30569), + 125: uint16(30567), + 126: uint16(30548), + 127: uint16(30553), + 128: uint16(30573), + 129: uint16(30688), + 130: uint16(30855), + 131: uint16(30874), + 132: uint16(30868), + 133: uint16(30863), + 134: uint16(30852), + 135: uint16(30869), + 136: uint16(30853), + 137: uint16(30854), + 138: uint16(30881), + 139: uint16(30851), + 140: uint16(30841), + 141: uint16(30873), + 142: uint16(30848), + 143: uint16(30870), + 144: uint16(30843), + 145: uint16(31100), + 146: uint16(31106), + 147: uint16(31101), + 148: uint16(31097), + 149: uint16(31249), + 150: uint16(31256), + 151: uint16(31257), + 152: uint16(31250), + 153: uint16(31255), + 154: uint16(31253), + 155: uint16(31266), + 156: uint16(31251), + }, + 62: { + 0: uint16(31259), + 1: uint16(31248), + 2: uint16(31395), + 3: uint16(31394), + 4: uint16(31390), + 5: uint16(31467), + 6: uint16(31590), + 7: uint16(31588), + 8: uint16(31597), + 9: uint16(31604), + 10: uint16(31593), + 11: uint16(31602), + 12: uint16(31589), + 13: uint16(31603), + 14: uint16(31601), + 15: uint16(31600), + 16: uint16(31585), + 17: uint16(31608), + 18: uint16(31606), + 19: uint16(31587), + 20: uint16(31922), + 21: uint16(31924), + 22: uint16(31919), + 23: uint16(32136), + 24: uint16(32134), + 25: uint16(32128), + 26: uint16(32141), + 27: uint16(32127), + 28: uint16(32133), + 29: uint16(32122), + 30: uint16(32142), + 31: uint16(32123), + 32: uint16(32131), + 33: uint16(32124), + 34: uint16(32140), + 35: uint16(32148), + 36: uint16(32132), + 37: uint16(32125), + 38: uint16(32146), + 39: uint16(32621), + 40: uint16(32619), + 41: uint16(32615), + 42: uint16(32616), + 43: uint16(32620), + 44: uint16(32678), + 45: uint16(32677), + 46: uint16(32679), + 47: uint16(32731), + 48: uint16(32732), + 49: uint16(32801), + 50: uint16(33124), + 51: uint16(33120), + 52: uint16(33143), + 53: uint16(33116), + 54: uint16(33129), + 55: uint16(33115), + 56: uint16(33122), + 57: uint16(33138), + 58: uint16(26401), + 59: uint16(33118), + 60: uint16(33142), + 61: uint16(33127), + 62: uint16(33135), + 63: uint16(33092), + 64: uint16(33121), + 65: uint16(33309), + 66: uint16(33353), + 67: uint16(33348), + 68: uint16(33344), + 69: uint16(33346), + 70: uint16(33349), + 71: uint16(34033), + 72: uint16(33855), + 73: uint16(33878), + 74: uint16(33910), + 75: uint16(33913), + 76: uint16(33935), + 77: uint16(33933), + 78: uint16(33893), + 79: uint16(33873), + 80: uint16(33856), + 81: uint16(33926), + 82: uint16(33895), + 83: uint16(33840), + 84: uint16(33869), + 85: uint16(33917), + 86: uint16(33882), + 87: uint16(33881), + 88: uint16(33908), + 89: uint16(33907), + 90: uint16(33885), + 91: uint16(34055), + 92: uint16(33886), + 93: uint16(33847), + 94: uint16(33850), + 95: uint16(33844), + 96: uint16(33914), + 97: uint16(33859), + 98: uint16(33912), + 99: uint16(33842), + 100: uint16(33861), + 101: uint16(33833), + 102: uint16(33753), + 103: uint16(33867), + 104: uint16(33839), + 105: uint16(33858), + 106: uint16(33837), + 107: uint16(33887), + 108: uint16(33904), + 109: uint16(33849), + 110: uint16(33870), + 111: uint16(33868), + 112: uint16(33874), + 113: uint16(33903), + 114: uint16(33989), + 115: uint16(33934), + 116: uint16(33851), + 117: uint16(33863), + 118: uint16(33846), + 119: uint16(33843), + 120: uint16(33896), + 121: uint16(33918), + 122: uint16(33860), + 123: uint16(33835), + 124: uint16(33888), + 125: uint16(33876), + 126: uint16(33902), + 127: uint16(33872), + 128: uint16(34571), + 129: uint16(34564), + 130: uint16(34551), + 131: uint16(34572), + 132: uint16(34554), + 133: uint16(34518), + 134: uint16(34549), + 135: uint16(34637), + 136: uint16(34552), + 137: uint16(34574), + 138: uint16(34569), + 139: uint16(34561), + 140: uint16(34550), + 141: uint16(34573), + 142: uint16(34565), + 143: uint16(35030), + 144: uint16(35019), + 145: uint16(35021), + 146: uint16(35022), + 147: uint16(35038), + 148: uint16(35035), + 149: uint16(35034), + 150: uint16(35020), + 151: uint16(35024), + 152: uint16(35205), + 153: uint16(35227), + 154: uint16(35295), + 155: uint16(35301), + 156: uint16(35300), + }, + 63: { + 0: uint16(35297), + 1: uint16(35296), + 2: uint16(35298), + 3: uint16(35292), + 4: uint16(35302), + 5: uint16(35446), + 6: uint16(35462), + 7: uint16(35455), + 8: uint16(35425), + 9: uint16(35391), + 10: uint16(35447), + 11: uint16(35458), + 12: uint16(35460), + 13: uint16(35445), + 14: uint16(35459), + 15: uint16(35457), + 16: uint16(35444), + 17: uint16(35450), + 18: uint16(35900), + 19: uint16(35915), + 20: uint16(35914), + 21: uint16(35941), + 22: uint16(35940), + 23: uint16(35942), + 24: uint16(35974), + 25: uint16(35972), + 26: uint16(35973), + 27: uint16(36044), + 28: uint16(36200), + 29: uint16(36201), + 30: uint16(36241), + 31: uint16(36236), + 32: uint16(36238), + 33: uint16(36239), + 34: uint16(36237), + 35: uint16(36243), + 36: uint16(36244), + 37: uint16(36240), + 38: uint16(36242), + 39: uint16(36336), + 40: uint16(36320), + 41: uint16(36332), + 42: uint16(36337), + 43: uint16(36334), + 44: uint16(36304), + 45: uint16(36329), + 46: uint16(36323), + 47: uint16(36322), + 48: uint16(36327), + 49: uint16(36338), + 50: uint16(36331), + 51: uint16(36340), + 52: uint16(36614), + 53: uint16(36607), + 54: uint16(36609), + 55: uint16(36608), + 56: uint16(36613), + 57: uint16(36615), + 58: uint16(36616), + 59: uint16(36610), + 60: uint16(36619), + 61: uint16(36946), + 62: uint16(36927), + 63: uint16(36932), + 64: uint16(36937), + 65: uint16(36925), + 66: uint16(37136), + 67: uint16(37133), + 68: uint16(37135), + 69: uint16(37137), + 70: uint16(37142), + 71: uint16(37140), + 72: uint16(37131), + 73: uint16(37134), + 74: uint16(37230), + 75: uint16(37231), + 76: uint16(37448), + 77: uint16(37458), + 78: uint16(37424), + 79: uint16(37434), + 80: uint16(37478), + 81: uint16(37427), + 82: uint16(37477), + 83: uint16(37470), + 84: uint16(37507), + 85: uint16(37422), + 86: uint16(37450), + 87: uint16(37446), + 88: uint16(37485), + 89: uint16(37484), + 90: uint16(37455), + 91: uint16(37472), + 92: uint16(37479), + 93: uint16(37487), + 94: uint16(37430), + 95: uint16(37473), + 96: uint16(37488), + 97: uint16(37425), + 98: uint16(37460), + 99: uint16(37475), + 100: uint16(37456), + 101: uint16(37490), + 102: uint16(37454), + 103: uint16(37459), + 104: uint16(37452), + 105: uint16(37462), + 106: uint16(37426), + 107: uint16(38303), + 108: uint16(38300), + 109: uint16(38302), + 110: uint16(38299), + 111: uint16(38546), + 112: uint16(38547), + 113: uint16(38545), + 114: uint16(38551), + 115: uint16(38606), + 116: uint16(38650), + 117: uint16(38653), + 118: uint16(38648), + 119: uint16(38645), + 120: uint16(38771), + 121: uint16(38775), + 122: uint16(38776), + 123: uint16(38770), + 124: uint16(38927), + 125: uint16(38925), + 126: uint16(38926), + 127: uint16(39084), + 128: uint16(39158), + 129: uint16(39161), + 130: uint16(39343), + 131: uint16(39346), + 132: uint16(39344), + 133: uint16(39349), + 134: uint16(39597), + 135: uint16(39595), + 136: uint16(39771), + 137: uint16(40170), + 138: uint16(40173), + 139: uint16(40167), + 140: uint16(40576), + 141: uint16(40701), + 142: uint16(20710), + 143: uint16(20692), + 144: uint16(20695), + 145: uint16(20712), + 146: uint16(20723), + 147: uint16(20699), + 148: uint16(20714), + 149: uint16(20701), + 150: uint16(20708), + 151: uint16(20691), + 152: uint16(20716), + 153: uint16(20720), + 154: uint16(20719), + 155: uint16(20707), + 156: uint16(20704), + }, + 64: { + 0: uint16(20952), + 1: uint16(21120), + 2: uint16(21121), + 3: uint16(21225), + 4: uint16(21227), + 5: uint16(21296), + 6: uint16(21420), + 7: uint16(22055), + 8: uint16(22037), + 9: uint16(22028), + 10: uint16(22034), + 11: uint16(22012), + 12: uint16(22031), + 13: uint16(22044), + 14: uint16(22017), + 15: uint16(22035), + 16: uint16(22018), + 17: uint16(22010), + 18: uint16(22045), + 19: uint16(22020), + 20: uint16(22015), + 21: uint16(22009), + 22: uint16(22665), + 23: uint16(22652), + 24: uint16(22672), + 25: uint16(22680), + 26: uint16(22662), + 27: uint16(22657), + 28: uint16(22655), + 29: uint16(22644), + 30: uint16(22667), + 31: uint16(22650), + 32: uint16(22663), + 33: uint16(22673), + 34: uint16(22670), + 35: uint16(22646), + 36: uint16(22658), + 37: uint16(22664), + 38: uint16(22651), + 39: uint16(22676), + 40: uint16(22671), + 41: uint16(22782), + 42: uint16(22891), + 43: uint16(23260), + 44: uint16(23278), + 45: uint16(23269), + 46: uint16(23253), + 47: uint16(23274), + 48: uint16(23258), + 49: uint16(23277), + 50: uint16(23275), + 51: uint16(23283), + 52: uint16(23266), + 53: uint16(23264), + 54: uint16(23259), + 55: uint16(23276), + 56: uint16(23262), + 57: uint16(23261), + 58: uint16(23257), + 59: uint16(23272), + 60: uint16(23263), + 61: uint16(23415), + 62: uint16(23520), + 63: uint16(23523), + 64: uint16(23651), + 65: uint16(23938), + 66: uint16(23936), + 67: uint16(23933), + 68: uint16(23942), + 69: uint16(23930), + 70: uint16(23937), + 71: uint16(23927), + 72: uint16(23946), + 73: uint16(23945), + 74: uint16(23944), + 75: uint16(23934), + 76: uint16(23932), + 77: uint16(23949), + 78: uint16(23929), + 79: uint16(23935), + 80: uint16(24152), + 81: uint16(24153), + 82: uint16(24147), + 83: uint16(24280), + 84: uint16(24273), + 85: uint16(24279), + 86: uint16(24270), + 87: uint16(24284), + 88: uint16(24277), + 89: uint16(24281), + 90: uint16(24274), + 91: uint16(24276), + 92: uint16(24388), + 93: uint16(24387), + 94: uint16(24431), + 95: uint16(24502), + 96: uint16(24876), + 97: uint16(24872), + 98: uint16(24897), + 99: uint16(24926), + 100: uint16(24945), + 101: uint16(24947), + 102: uint16(24914), + 103: uint16(24915), + 104: uint16(24946), + 105: uint16(24940), + 106: uint16(24960), + 107: uint16(24948), + 108: uint16(24916), + 109: uint16(24954), + 110: uint16(24923), + 111: uint16(24933), + 112: uint16(24891), + 113: uint16(24938), + 114: uint16(24929), + 115: uint16(24918), + 116: uint16(25129), + 117: uint16(25127), + 118: uint16(25131), + 119: uint16(25643), + 120: uint16(25677), + 121: uint16(25691), + 122: uint16(25693), + 123: uint16(25716), + 124: uint16(25718), + 125: uint16(25714), + 126: uint16(25715), + 127: uint16(25725), + 128: uint16(25717), + 129: uint16(25702), + 130: uint16(25766), + 131: uint16(25678), + 132: uint16(25730), + 133: uint16(25694), + 134: uint16(25692), + 135: uint16(25675), + 136: uint16(25683), + 137: uint16(25696), + 138: uint16(25680), + 139: uint16(25727), + 140: uint16(25663), + 141: uint16(25708), + 142: uint16(25707), + 143: uint16(25689), + 144: uint16(25701), + 145: uint16(25719), + 146: uint16(25971), + 147: uint16(26016), + 148: uint16(26273), + 149: uint16(26272), + 150: uint16(26271), + 151: uint16(26373), + 152: uint16(26372), + 153: uint16(26402), + 154: uint16(27057), + 155: uint16(27062), + 156: uint16(27081), + }, + 65: { + 0: uint16(27040), + 1: uint16(27086), + 2: uint16(27030), + 3: uint16(27056), + 4: uint16(27052), + 5: uint16(27068), + 6: uint16(27025), + 7: uint16(27033), + 8: uint16(27022), + 9: uint16(27047), + 10: uint16(27021), + 11: uint16(27049), + 12: uint16(27070), + 13: uint16(27055), + 14: uint16(27071), + 15: uint16(27076), + 16: uint16(27069), + 17: uint16(27044), + 18: uint16(27092), + 19: uint16(27065), + 20: uint16(27082), + 21: uint16(27034), + 22: uint16(27087), + 23: uint16(27059), + 24: uint16(27027), + 25: uint16(27050), + 26: uint16(27041), + 27: uint16(27038), + 28: uint16(27097), + 29: uint16(27031), + 30: uint16(27024), + 31: uint16(27074), + 32: uint16(27061), + 33: uint16(27045), + 34: uint16(27078), + 35: uint16(27466), + 36: uint16(27469), + 37: uint16(27467), + 38: uint16(27550), + 39: uint16(27551), + 40: uint16(27552), + 41: uint16(27587), + 42: uint16(27588), + 43: uint16(27646), + 44: uint16(28366), + 45: uint16(28405), + 46: uint16(28401), + 47: uint16(28419), + 48: uint16(28453), + 49: uint16(28408), + 50: uint16(28471), + 51: uint16(28411), + 52: uint16(28462), + 53: uint16(28425), + 54: uint16(28494), + 55: uint16(28441), + 56: uint16(28442), + 57: uint16(28455), + 58: uint16(28440), + 59: uint16(28475), + 60: uint16(28434), + 61: uint16(28397), + 62: uint16(28426), + 63: uint16(28470), + 64: uint16(28531), + 65: uint16(28409), + 66: uint16(28398), + 67: uint16(28461), + 68: uint16(28480), + 69: uint16(28464), + 70: uint16(28476), + 71: uint16(28469), + 72: uint16(28395), + 73: uint16(28423), + 74: uint16(28430), + 75: uint16(28483), + 76: uint16(28421), + 77: uint16(28413), + 78: uint16(28406), + 79: uint16(28473), + 80: uint16(28444), + 81: uint16(28412), + 82: uint16(28474), + 83: uint16(28447), + 84: uint16(28429), + 85: uint16(28446), + 86: uint16(28424), + 87: uint16(28449), + 88: uint16(29063), + 89: uint16(29072), + 90: uint16(29065), + 91: uint16(29056), + 92: uint16(29061), + 93: uint16(29058), + 94: uint16(29071), + 95: uint16(29051), + 96: uint16(29062), + 97: uint16(29057), + 98: uint16(29079), + 99: uint16(29252), + 100: uint16(29267), + 101: uint16(29335), + 102: uint16(29333), + 103: uint16(29331), + 104: uint16(29507), + 105: uint16(29517), + 106: uint16(29521), + 107: uint16(29516), + 108: uint16(29794), + 109: uint16(29811), + 110: uint16(29809), + 111: uint16(29813), + 112: uint16(29810), + 113: uint16(29799), + 114: uint16(29806), + 115: uint16(29952), + 116: uint16(29954), + 117: uint16(29955), + 118: uint16(30077), + 119: uint16(30096), + 120: uint16(30230), + 121: uint16(30216), + 122: uint16(30220), + 123: uint16(30229), + 124: uint16(30225), + 125: uint16(30218), + 126: uint16(30228), + 127: uint16(30392), + 128: uint16(30593), + 129: uint16(30588), + 130: uint16(30597), + 131: uint16(30594), + 132: uint16(30574), + 133: uint16(30592), + 134: uint16(30575), + 135: uint16(30590), + 136: uint16(30595), + 137: uint16(30898), + 138: uint16(30890), + 139: uint16(30900), + 140: uint16(30893), + 141: uint16(30888), + 142: uint16(30846), + 143: uint16(30891), + 144: uint16(30878), + 145: uint16(30885), + 146: uint16(30880), + 147: uint16(30892), + 148: uint16(30882), + 149: uint16(30884), + 150: uint16(31128), + 151: uint16(31114), + 152: uint16(31115), + 153: uint16(31126), + 154: uint16(31125), + 155: uint16(31124), + 156: uint16(31123), + }, + 66: { + 0: uint16(31127), + 1: uint16(31112), + 2: uint16(31122), + 3: uint16(31120), + 4: uint16(31275), + 5: uint16(31306), + 6: uint16(31280), + 7: uint16(31279), + 8: uint16(31272), + 9: uint16(31270), + 10: uint16(31400), + 11: uint16(31403), + 12: uint16(31404), + 13: uint16(31470), + 14: uint16(31624), + 15: uint16(31644), + 16: uint16(31626), + 17: uint16(31633), + 18: uint16(31632), + 19: uint16(31638), + 20: uint16(31629), + 21: uint16(31628), + 22: uint16(31643), + 23: uint16(31630), + 24: uint16(31621), + 25: uint16(31640), + 26: uint16(21124), + 27: uint16(31641), + 28: uint16(31652), + 29: uint16(31618), + 30: uint16(31931), + 31: uint16(31935), + 32: uint16(31932), + 33: uint16(31930), + 34: uint16(32167), + 35: uint16(32183), + 36: uint16(32194), + 37: uint16(32163), + 38: uint16(32170), + 39: uint16(32193), + 40: uint16(32192), + 41: uint16(32197), + 42: uint16(32157), + 43: uint16(32206), + 44: uint16(32196), + 45: uint16(32198), + 46: uint16(32203), + 47: uint16(32204), + 48: uint16(32175), + 49: uint16(32185), + 50: uint16(32150), + 51: uint16(32188), + 52: uint16(32159), + 53: uint16(32166), + 54: uint16(32174), + 55: uint16(32169), + 56: uint16(32161), + 57: uint16(32201), + 58: uint16(32627), + 59: uint16(32738), + 60: uint16(32739), + 61: uint16(32741), + 62: uint16(32734), + 63: uint16(32804), + 64: uint16(32861), + 65: uint16(32860), + 66: uint16(33161), + 67: uint16(33158), + 68: uint16(33155), + 69: uint16(33159), + 70: uint16(33165), + 71: uint16(33164), + 72: uint16(33163), + 73: uint16(33301), + 74: uint16(33943), + 75: uint16(33956), + 76: uint16(33953), + 77: uint16(33951), + 78: uint16(33978), + 79: uint16(33998), + 80: uint16(33986), + 81: uint16(33964), + 82: uint16(33966), + 83: uint16(33963), + 84: uint16(33977), + 85: uint16(33972), + 86: uint16(33985), + 87: uint16(33997), + 88: uint16(33962), + 89: uint16(33946), + 90: uint16(33969), + 91: uint16(34000), + 92: uint16(33949), + 93: uint16(33959), + 94: uint16(33979), + 95: uint16(33954), + 96: uint16(33940), + 97: uint16(33991), + 98: uint16(33996), + 99: uint16(33947), + 100: uint16(33961), + 101: uint16(33967), + 102: uint16(33960), + 103: uint16(34006), + 104: uint16(33944), + 105: uint16(33974), + 106: uint16(33999), + 107: uint16(33952), + 108: uint16(34007), + 109: uint16(34004), + 110: uint16(34002), + 111: uint16(34011), + 112: uint16(33968), + 113: uint16(33937), + 114: uint16(34401), + 115: uint16(34611), + 116: uint16(34595), + 117: uint16(34600), + 118: uint16(34667), + 119: uint16(34624), + 120: uint16(34606), + 121: uint16(34590), + 122: uint16(34593), + 123: uint16(34585), + 124: uint16(34587), + 125: uint16(34627), + 126: uint16(34604), + 127: uint16(34625), + 128: uint16(34622), + 129: uint16(34630), + 130: uint16(34592), + 131: uint16(34610), + 132: uint16(34602), + 133: uint16(34605), + 134: uint16(34620), + 135: uint16(34578), + 136: uint16(34618), + 137: uint16(34609), + 138: uint16(34613), + 139: uint16(34626), + 140: uint16(34598), + 141: uint16(34599), + 142: uint16(34616), + 143: uint16(34596), + 144: uint16(34586), + 145: uint16(34608), + 146: uint16(34577), + 147: uint16(35063), + 148: uint16(35047), + 149: uint16(35057), + 150: uint16(35058), + 151: uint16(35066), + 152: uint16(35070), + 153: uint16(35054), + 154: uint16(35068), + 155: uint16(35062), + 156: uint16(35067), + }, + 67: { + 0: uint16(35056), + 1: uint16(35052), + 2: uint16(35051), + 3: uint16(35229), + 4: uint16(35233), + 5: uint16(35231), + 6: uint16(35230), + 7: uint16(35305), + 8: uint16(35307), + 9: uint16(35304), + 10: uint16(35499), + 11: uint16(35481), + 12: uint16(35467), + 13: uint16(35474), + 14: uint16(35471), + 15: uint16(35478), + 16: uint16(35901), + 17: uint16(35944), + 18: uint16(35945), + 19: uint16(36053), + 20: uint16(36047), + 21: uint16(36055), + 22: uint16(36246), + 23: uint16(36361), + 24: uint16(36354), + 25: uint16(36351), + 26: uint16(36365), + 27: uint16(36349), + 28: uint16(36362), + 29: uint16(36355), + 30: uint16(36359), + 31: uint16(36358), + 32: uint16(36357), + 33: uint16(36350), + 34: uint16(36352), + 35: uint16(36356), + 36: uint16(36624), + 37: uint16(36625), + 38: uint16(36622), + 39: uint16(36621), + 40: uint16(37155), + 41: uint16(37148), + 42: uint16(37152), + 43: uint16(37154), + 44: uint16(37151), + 45: uint16(37149), + 46: uint16(37146), + 47: uint16(37156), + 48: uint16(37153), + 49: uint16(37147), + 50: uint16(37242), + 51: uint16(37234), + 52: uint16(37241), + 53: uint16(37235), + 54: uint16(37541), + 55: uint16(37540), + 56: uint16(37494), + 57: uint16(37531), + 58: uint16(37498), + 59: uint16(37536), + 60: uint16(37524), + 61: uint16(37546), + 62: uint16(37517), + 63: uint16(37542), + 64: uint16(37530), + 65: uint16(37547), + 66: uint16(37497), + 67: uint16(37527), + 68: uint16(37503), + 69: uint16(37539), + 70: uint16(37614), + 71: uint16(37518), + 72: uint16(37506), + 73: uint16(37525), + 74: uint16(37538), + 75: uint16(37501), + 76: uint16(37512), + 77: uint16(37537), + 78: uint16(37514), + 79: uint16(37510), + 80: uint16(37516), + 81: uint16(37529), + 82: uint16(37543), + 83: uint16(37502), + 84: uint16(37511), + 85: uint16(37545), + 86: uint16(37533), + 87: uint16(37515), + 88: uint16(37421), + 89: uint16(38558), + 90: uint16(38561), + 91: uint16(38655), + 92: uint16(38744), + 93: uint16(38781), + 94: uint16(38778), + 95: uint16(38782), + 96: uint16(38787), + 97: uint16(38784), + 98: uint16(38786), + 99: uint16(38779), + 100: uint16(38788), + 101: uint16(38785), + 102: uint16(38783), + 103: uint16(38862), + 104: uint16(38861), + 105: uint16(38934), + 106: uint16(39085), + 107: uint16(39086), + 108: uint16(39170), + 109: uint16(39168), + 110: uint16(39175), + 111: uint16(39325), + 112: uint16(39324), + 113: uint16(39363), + 114: uint16(39353), + 115: uint16(39355), + 116: uint16(39354), + 117: uint16(39362), + 118: uint16(39357), + 119: uint16(39367), + 120: uint16(39601), + 121: uint16(39651), + 122: uint16(39655), + 123: uint16(39742), + 124: uint16(39743), + 125: uint16(39776), + 126: uint16(39777), + 127: uint16(39775), + 128: uint16(40177), + 129: uint16(40178), + 130: uint16(40181), + 131: uint16(40615), + 132: uint16(20735), + 133: uint16(20739), + 134: uint16(20784), + 135: uint16(20728), + 136: uint16(20742), + 137: uint16(20743), + 138: uint16(20726), + 139: uint16(20734), + 140: uint16(20747), + 141: uint16(20748), + 142: uint16(20733), + 143: uint16(20746), + 144: uint16(21131), + 145: uint16(21132), + 146: uint16(21233), + 147: uint16(21231), + 148: uint16(22088), + 149: uint16(22082), + 150: uint16(22092), + 151: uint16(22069), + 152: uint16(22081), + 153: uint16(22090), + 154: uint16(22089), + 155: uint16(22086), + 156: uint16(22104), + }, + 68: { + 0: uint16(22106), + 1: uint16(22080), + 2: uint16(22067), + 3: uint16(22077), + 4: uint16(22060), + 5: uint16(22078), + 6: uint16(22072), + 7: uint16(22058), + 8: uint16(22074), + 9: uint16(22298), + 10: uint16(22699), + 11: uint16(22685), + 12: uint16(22705), + 13: uint16(22688), + 14: uint16(22691), + 15: uint16(22703), + 16: uint16(22700), + 17: uint16(22693), + 18: uint16(22689), + 19: uint16(22783), + 20: uint16(23295), + 21: uint16(23284), + 22: uint16(23293), + 23: uint16(23287), + 24: uint16(23286), + 25: uint16(23299), + 26: uint16(23288), + 27: uint16(23298), + 28: uint16(23289), + 29: uint16(23297), + 30: uint16(23303), + 31: uint16(23301), + 32: uint16(23311), + 33: uint16(23655), + 34: uint16(23961), + 35: uint16(23959), + 36: uint16(23967), + 37: uint16(23954), + 38: uint16(23970), + 39: uint16(23955), + 40: uint16(23957), + 41: uint16(23968), + 42: uint16(23964), + 43: uint16(23969), + 44: uint16(23962), + 45: uint16(23966), + 46: uint16(24169), + 47: uint16(24157), + 48: uint16(24160), + 49: uint16(24156), + 50: uint16(32243), + 51: uint16(24283), + 52: uint16(24286), + 53: uint16(24289), + 54: uint16(24393), + 55: uint16(24498), + 56: uint16(24971), + 57: uint16(24963), + 58: uint16(24953), + 59: uint16(25009), + 60: uint16(25008), + 61: uint16(24994), + 62: uint16(24969), + 63: uint16(24987), + 64: uint16(24979), + 65: uint16(25007), + 66: uint16(25005), + 67: uint16(24991), + 68: uint16(24978), + 69: uint16(25002), + 70: uint16(24993), + 71: uint16(24973), + 72: uint16(24934), + 73: uint16(25011), + 74: uint16(25133), + 75: uint16(25710), + 76: uint16(25712), + 77: uint16(25750), + 78: uint16(25760), + 79: uint16(25733), + 80: uint16(25751), + 81: uint16(25756), + 82: uint16(25743), + 83: uint16(25739), + 84: uint16(25738), + 85: uint16(25740), + 86: uint16(25763), + 87: uint16(25759), + 88: uint16(25704), + 89: uint16(25777), + 90: uint16(25752), + 91: uint16(25974), + 92: uint16(25978), + 93: uint16(25977), + 94: uint16(25979), + 95: uint16(26034), + 96: uint16(26035), + 97: uint16(26293), + 98: uint16(26288), + 99: uint16(26281), + 100: uint16(26290), + 101: uint16(26295), + 102: uint16(26282), + 103: uint16(26287), + 104: uint16(27136), + 105: uint16(27142), + 106: uint16(27159), + 107: uint16(27109), + 108: uint16(27128), + 109: uint16(27157), + 110: uint16(27121), + 111: uint16(27108), + 112: uint16(27168), + 113: uint16(27135), + 114: uint16(27116), + 115: uint16(27106), + 116: uint16(27163), + 117: uint16(27165), + 118: uint16(27134), + 119: uint16(27175), + 120: uint16(27122), + 121: uint16(27118), + 122: uint16(27156), + 123: uint16(27127), + 124: uint16(27111), + 125: uint16(27200), + 126: uint16(27144), + 127: uint16(27110), + 128: uint16(27131), + 129: uint16(27149), + 130: uint16(27132), + 131: uint16(27115), + 132: uint16(27145), + 133: uint16(27140), + 134: uint16(27160), + 135: uint16(27173), + 136: uint16(27151), + 137: uint16(27126), + 138: uint16(27174), + 139: uint16(27143), + 140: uint16(27124), + 141: uint16(27158), + 142: uint16(27473), + 143: uint16(27557), + 144: uint16(27555), + 145: uint16(27554), + 146: uint16(27558), + 147: uint16(27649), + 148: uint16(27648), + 149: uint16(27647), + 150: uint16(27650), + 151: uint16(28481), + 152: uint16(28454), + 153: uint16(28542), + 154: uint16(28551), + 155: uint16(28614), + 156: uint16(28562), + }, + 69: { + 0: uint16(28557), + 1: uint16(28553), + 2: uint16(28556), + 3: uint16(28514), + 4: uint16(28495), + 5: uint16(28549), + 6: uint16(28506), + 7: uint16(28566), + 8: uint16(28534), + 9: uint16(28524), + 10: uint16(28546), + 11: uint16(28501), + 12: uint16(28530), + 13: uint16(28498), + 14: uint16(28496), + 15: uint16(28503), + 16: uint16(28564), + 17: uint16(28563), + 18: uint16(28509), + 19: uint16(28416), + 20: uint16(28513), + 21: uint16(28523), + 22: uint16(28541), + 23: uint16(28519), + 24: uint16(28560), + 25: uint16(28499), + 26: uint16(28555), + 27: uint16(28521), + 28: uint16(28543), + 29: uint16(28565), + 30: uint16(28515), + 31: uint16(28535), + 32: uint16(28522), + 33: uint16(28539), + 34: uint16(29106), + 35: uint16(29103), + 36: uint16(29083), + 37: uint16(29104), + 38: uint16(29088), + 39: uint16(29082), + 40: uint16(29097), + 41: uint16(29109), + 42: uint16(29085), + 43: uint16(29093), + 44: uint16(29086), + 45: uint16(29092), + 46: uint16(29089), + 47: uint16(29098), + 48: uint16(29084), + 49: uint16(29095), + 50: uint16(29107), + 51: uint16(29336), + 52: uint16(29338), + 53: uint16(29528), + 54: uint16(29522), + 55: uint16(29534), + 56: uint16(29535), + 57: uint16(29536), + 58: uint16(29533), + 59: uint16(29531), + 60: uint16(29537), + 61: uint16(29530), + 62: uint16(29529), + 63: uint16(29538), + 64: uint16(29831), + 65: uint16(29833), + 66: uint16(29834), + 67: uint16(29830), + 68: uint16(29825), + 69: uint16(29821), + 70: uint16(29829), + 71: uint16(29832), + 72: uint16(29820), + 73: uint16(29817), + 74: uint16(29960), + 75: uint16(29959), + 76: uint16(30078), + 77: uint16(30245), + 78: uint16(30238), + 79: uint16(30233), + 80: uint16(30237), + 81: uint16(30236), + 82: uint16(30243), + 83: uint16(30234), + 84: uint16(30248), + 85: uint16(30235), + 86: uint16(30364), + 87: uint16(30365), + 88: uint16(30366), + 89: uint16(30363), + 90: uint16(30605), + 91: uint16(30607), + 92: uint16(30601), + 93: uint16(30600), + 94: uint16(30925), + 95: uint16(30907), + 96: uint16(30927), + 97: uint16(30924), + 98: uint16(30929), + 99: uint16(30926), + 100: uint16(30932), + 101: uint16(30920), + 102: uint16(30915), + 103: uint16(30916), + 104: uint16(30921), + 105: uint16(31130), + 106: uint16(31137), + 107: uint16(31136), + 108: uint16(31132), + 109: uint16(31138), + 110: uint16(31131), + 111: uint16(27510), + 112: uint16(31289), + 113: uint16(31410), + 114: uint16(31412), + 115: uint16(31411), + 116: uint16(31671), + 117: uint16(31691), + 118: uint16(31678), + 119: uint16(31660), + 120: uint16(31694), + 121: uint16(31663), + 122: uint16(31673), + 123: uint16(31690), + 124: uint16(31669), + 125: uint16(31941), + 126: uint16(31944), + 127: uint16(31948), + 128: uint16(31947), + 129: uint16(32247), + 130: uint16(32219), + 131: uint16(32234), + 132: uint16(32231), + 133: uint16(32215), + 134: uint16(32225), + 135: uint16(32259), + 136: uint16(32250), + 137: uint16(32230), + 138: uint16(32246), + 139: uint16(32241), + 140: uint16(32240), + 141: uint16(32238), + 142: uint16(32223), + 143: uint16(32630), + 144: uint16(32684), + 145: uint16(32688), + 146: uint16(32685), + 147: uint16(32749), + 148: uint16(32747), + 149: uint16(32746), + 150: uint16(32748), + 151: uint16(32742), + 152: uint16(32744), + 153: uint16(32868), + 154: uint16(32871), + 155: uint16(33187), + 156: uint16(33183), + }, + 70: { + 0: uint16(33182), + 1: uint16(33173), + 2: uint16(33186), + 3: uint16(33177), + 4: uint16(33175), + 5: uint16(33302), + 6: uint16(33359), + 7: uint16(33363), + 8: uint16(33362), + 9: uint16(33360), + 10: uint16(33358), + 11: uint16(33361), + 12: uint16(34084), + 13: uint16(34107), + 14: uint16(34063), + 15: uint16(34048), + 16: uint16(34089), + 17: uint16(34062), + 18: uint16(34057), + 19: uint16(34061), + 20: uint16(34079), + 21: uint16(34058), + 22: uint16(34087), + 23: uint16(34076), + 24: uint16(34043), + 25: uint16(34091), + 26: uint16(34042), + 27: uint16(34056), + 28: uint16(34060), + 29: uint16(34036), + 30: uint16(34090), + 31: uint16(34034), + 32: uint16(34069), + 33: uint16(34039), + 34: uint16(34027), + 35: uint16(34035), + 36: uint16(34044), + 37: uint16(34066), + 38: uint16(34026), + 39: uint16(34025), + 40: uint16(34070), + 41: uint16(34046), + 42: uint16(34088), + 43: uint16(34077), + 44: uint16(34094), + 45: uint16(34050), + 46: uint16(34045), + 47: uint16(34078), + 48: uint16(34038), + 49: uint16(34097), + 50: uint16(34086), + 51: uint16(34023), + 52: uint16(34024), + 53: uint16(34032), + 54: uint16(34031), + 55: uint16(34041), + 56: uint16(34072), + 57: uint16(34080), + 58: uint16(34096), + 59: uint16(34059), + 60: uint16(34073), + 61: uint16(34095), + 62: uint16(34402), + 63: uint16(34646), + 64: uint16(34659), + 65: uint16(34660), + 66: uint16(34679), + 67: uint16(34785), + 68: uint16(34675), + 69: uint16(34648), + 70: uint16(34644), + 71: uint16(34651), + 72: uint16(34642), + 73: uint16(34657), + 74: uint16(34650), + 75: uint16(34641), + 76: uint16(34654), + 77: uint16(34669), + 78: uint16(34666), + 79: uint16(34640), + 80: uint16(34638), + 81: uint16(34655), + 82: uint16(34653), + 83: uint16(34671), + 84: uint16(34668), + 85: uint16(34682), + 86: uint16(34670), + 87: uint16(34652), + 88: uint16(34661), + 89: uint16(34639), + 90: uint16(34683), + 91: uint16(34677), + 92: uint16(34658), + 93: uint16(34663), + 94: uint16(34665), + 95: uint16(34906), + 96: uint16(35077), + 97: uint16(35084), + 98: uint16(35092), + 99: uint16(35083), + 100: uint16(35095), + 101: uint16(35096), + 102: uint16(35097), + 103: uint16(35078), + 104: uint16(35094), + 105: uint16(35089), + 106: uint16(35086), + 107: uint16(35081), + 108: uint16(35234), + 109: uint16(35236), + 110: uint16(35235), + 111: uint16(35309), + 112: uint16(35312), + 113: uint16(35308), + 114: uint16(35535), + 115: uint16(35526), + 116: uint16(35512), + 117: uint16(35539), + 118: uint16(35537), + 119: uint16(35540), + 120: uint16(35541), + 121: uint16(35515), + 122: uint16(35543), + 123: uint16(35518), + 124: uint16(35520), + 125: uint16(35525), + 126: uint16(35544), + 127: uint16(35523), + 128: uint16(35514), + 129: uint16(35517), + 130: uint16(35545), + 131: uint16(35902), + 132: uint16(35917), + 133: uint16(35983), + 134: uint16(36069), + 135: uint16(36063), + 136: uint16(36057), + 137: uint16(36072), + 138: uint16(36058), + 139: uint16(36061), + 140: uint16(36071), + 141: uint16(36256), + 142: uint16(36252), + 143: uint16(36257), + 144: uint16(36251), + 145: uint16(36384), + 146: uint16(36387), + 147: uint16(36389), + 148: uint16(36388), + 149: uint16(36398), + 150: uint16(36373), + 151: uint16(36379), + 152: uint16(36374), + 153: uint16(36369), + 154: uint16(36377), + 155: uint16(36390), + 156: uint16(36391), + }, + 71: { + 0: uint16(36372), + 1: uint16(36370), + 2: uint16(36376), + 3: uint16(36371), + 4: uint16(36380), + 5: uint16(36375), + 6: uint16(36378), + 7: uint16(36652), + 8: uint16(36644), + 9: uint16(36632), + 10: uint16(36634), + 11: uint16(36640), + 12: uint16(36643), + 13: uint16(36630), + 14: uint16(36631), + 15: uint16(36979), + 16: uint16(36976), + 17: uint16(36975), + 18: uint16(36967), + 19: uint16(36971), + 20: uint16(37167), + 21: uint16(37163), + 22: uint16(37161), + 23: uint16(37162), + 24: uint16(37170), + 25: uint16(37158), + 26: uint16(37166), + 27: uint16(37253), + 28: uint16(37254), + 29: uint16(37258), + 30: uint16(37249), + 31: uint16(37250), + 32: uint16(37252), + 33: uint16(37248), + 34: uint16(37584), + 35: uint16(37571), + 36: uint16(37572), + 37: uint16(37568), + 38: uint16(37593), + 39: uint16(37558), + 40: uint16(37583), + 41: uint16(37617), + 42: uint16(37599), + 43: uint16(37592), + 44: uint16(37609), + 45: uint16(37591), + 46: uint16(37597), + 47: uint16(37580), + 48: uint16(37615), + 49: uint16(37570), + 50: uint16(37608), + 51: uint16(37578), + 52: uint16(37576), + 53: uint16(37582), + 54: uint16(37606), + 55: uint16(37581), + 56: uint16(37589), + 57: uint16(37577), + 58: uint16(37600), + 59: uint16(37598), + 60: uint16(37607), + 61: uint16(37585), + 62: uint16(37587), + 63: uint16(37557), + 64: uint16(37601), + 65: uint16(37574), + 66: uint16(37556), + 67: uint16(38268), + 68: uint16(38316), + 69: uint16(38315), + 70: uint16(38318), + 71: uint16(38320), + 72: uint16(38564), + 73: uint16(38562), + 74: uint16(38611), + 75: uint16(38661), + 76: uint16(38664), + 77: uint16(38658), + 78: uint16(38746), + 79: uint16(38794), + 80: uint16(38798), + 81: uint16(38792), + 82: uint16(38864), + 83: uint16(38863), + 84: uint16(38942), + 85: uint16(38941), + 86: uint16(38950), + 87: uint16(38953), + 88: uint16(38952), + 89: uint16(38944), + 90: uint16(38939), + 91: uint16(38951), + 92: uint16(39090), + 93: uint16(39176), + 94: uint16(39162), + 95: uint16(39185), + 96: uint16(39188), + 97: uint16(39190), + 98: uint16(39191), + 99: uint16(39189), + 100: uint16(39388), + 101: uint16(39373), + 102: uint16(39375), + 103: uint16(39379), + 104: uint16(39380), + 105: uint16(39374), + 106: uint16(39369), + 107: uint16(39382), + 108: uint16(39384), + 109: uint16(39371), + 110: uint16(39383), + 111: uint16(39372), + 112: uint16(39603), + 113: uint16(39660), + 114: uint16(39659), + 115: uint16(39667), + 116: uint16(39666), + 117: uint16(39665), + 118: uint16(39750), + 119: uint16(39747), + 120: uint16(39783), + 121: uint16(39796), + 122: uint16(39793), + 123: uint16(39782), + 124: uint16(39798), + 125: uint16(39797), + 126: uint16(39792), + 127: uint16(39784), + 128: uint16(39780), + 129: uint16(39788), + 130: uint16(40188), + 131: uint16(40186), + 132: uint16(40189), + 133: uint16(40191), + 134: uint16(40183), + 135: uint16(40199), + 136: uint16(40192), + 137: uint16(40185), + 138: uint16(40187), + 139: uint16(40200), + 140: uint16(40197), + 141: uint16(40196), + 142: uint16(40579), + 143: uint16(40659), + 144: uint16(40719), + 145: uint16(40720), + 146: uint16(20764), + 147: uint16(20755), + 148: uint16(20759), + 149: uint16(20762), + 150: uint16(20753), + 151: uint16(20958), + 152: uint16(21300), + 153: uint16(21473), + 154: uint16(22128), + 155: uint16(22112), + 156: uint16(22126), + }, + 72: { + 0: uint16(22131), + 1: uint16(22118), + 2: uint16(22115), + 3: uint16(22125), + 4: uint16(22130), + 5: uint16(22110), + 6: uint16(22135), + 7: uint16(22300), + 8: uint16(22299), + 9: uint16(22728), + 10: uint16(22717), + 11: uint16(22729), + 12: uint16(22719), + 13: uint16(22714), + 14: uint16(22722), + 15: uint16(22716), + 16: uint16(22726), + 17: uint16(23319), + 18: uint16(23321), + 19: uint16(23323), + 20: uint16(23329), + 21: uint16(23316), + 22: uint16(23315), + 23: uint16(23312), + 24: uint16(23318), + 25: uint16(23336), + 26: uint16(23322), + 27: uint16(23328), + 28: uint16(23326), + 29: uint16(23535), + 30: uint16(23980), + 31: uint16(23985), + 32: uint16(23977), + 33: uint16(23975), + 34: uint16(23989), + 35: uint16(23984), + 36: uint16(23982), + 37: uint16(23978), + 38: uint16(23976), + 39: uint16(23986), + 40: uint16(23981), + 41: uint16(23983), + 42: uint16(23988), + 43: uint16(24167), + 44: uint16(24168), + 45: uint16(24166), + 46: uint16(24175), + 47: uint16(24297), + 48: uint16(24295), + 49: uint16(24294), + 50: uint16(24296), + 51: uint16(24293), + 52: uint16(24395), + 53: uint16(24508), + 54: uint16(24989), + 55: uint16(25000), + 56: uint16(24982), + 57: uint16(25029), + 58: uint16(25012), + 59: uint16(25030), + 60: uint16(25025), + 61: uint16(25036), + 62: uint16(25018), + 63: uint16(25023), + 64: uint16(25016), + 65: uint16(24972), + 66: uint16(25815), + 67: uint16(25814), + 68: uint16(25808), + 69: uint16(25807), + 70: uint16(25801), + 71: uint16(25789), + 72: uint16(25737), + 73: uint16(25795), + 74: uint16(25819), + 75: uint16(25843), + 76: uint16(25817), + 77: uint16(25907), + 78: uint16(25983), + 79: uint16(25980), + 80: uint16(26018), + 81: uint16(26312), + 82: uint16(26302), + 83: uint16(26304), + 84: uint16(26314), + 85: uint16(26315), + 86: uint16(26319), + 87: uint16(26301), + 88: uint16(26299), + 89: uint16(26298), + 90: uint16(26316), + 91: uint16(26403), + 92: uint16(27188), + 93: uint16(27238), + 94: uint16(27209), + 95: uint16(27239), + 96: uint16(27186), + 97: uint16(27240), + 98: uint16(27198), + 99: uint16(27229), + 100: uint16(27245), + 101: uint16(27254), + 102: uint16(27227), + 103: uint16(27217), + 104: uint16(27176), + 105: uint16(27226), + 106: uint16(27195), + 107: uint16(27199), + 108: uint16(27201), + 109: uint16(27242), + 110: uint16(27236), + 111: uint16(27216), + 112: uint16(27215), + 113: uint16(27220), + 114: uint16(27247), + 115: uint16(27241), + 116: uint16(27232), + 117: uint16(27196), + 118: uint16(27230), + 119: uint16(27222), + 120: uint16(27221), + 121: uint16(27213), + 122: uint16(27214), + 123: uint16(27206), + 124: uint16(27477), + 125: uint16(27476), + 126: uint16(27478), + 127: uint16(27559), + 128: uint16(27562), + 129: uint16(27563), + 130: uint16(27592), + 131: uint16(27591), + 132: uint16(27652), + 133: uint16(27651), + 134: uint16(27654), + 135: uint16(28589), + 136: uint16(28619), + 137: uint16(28579), + 138: uint16(28615), + 139: uint16(28604), + 140: uint16(28622), + 141: uint16(28616), + 142: uint16(28510), + 143: uint16(28612), + 144: uint16(28605), + 145: uint16(28574), + 146: uint16(28618), + 147: uint16(28584), + 148: uint16(28676), + 149: uint16(28581), + 150: uint16(28590), + 151: uint16(28602), + 152: uint16(28588), + 153: uint16(28586), + 154: uint16(28623), + 155: uint16(28607), + 156: uint16(28600), + }, + 73: { + 0: uint16(28578), + 1: uint16(28617), + 2: uint16(28587), + 3: uint16(28621), + 4: uint16(28591), + 5: uint16(28594), + 6: uint16(28592), + 7: uint16(29125), + 8: uint16(29122), + 9: uint16(29119), + 10: uint16(29112), + 11: uint16(29142), + 12: uint16(29120), + 13: uint16(29121), + 14: uint16(29131), + 15: uint16(29140), + 16: uint16(29130), + 17: uint16(29127), + 18: uint16(29135), + 19: uint16(29117), + 20: uint16(29144), + 21: uint16(29116), + 22: uint16(29126), + 23: uint16(29146), + 24: uint16(29147), + 25: uint16(29341), + 26: uint16(29342), + 27: uint16(29545), + 28: uint16(29542), + 29: uint16(29543), + 30: uint16(29548), + 31: uint16(29541), + 32: uint16(29547), + 33: uint16(29546), + 34: uint16(29823), + 35: uint16(29850), + 36: uint16(29856), + 37: uint16(29844), + 38: uint16(29842), + 39: uint16(29845), + 40: uint16(29857), + 41: uint16(29963), + 42: uint16(30080), + 43: uint16(30255), + 44: uint16(30253), + 45: uint16(30257), + 46: uint16(30269), + 47: uint16(30259), + 48: uint16(30268), + 49: uint16(30261), + 50: uint16(30258), + 51: uint16(30256), + 52: uint16(30395), + 53: uint16(30438), + 54: uint16(30618), + 55: uint16(30621), + 56: uint16(30625), + 57: uint16(30620), + 58: uint16(30619), + 59: uint16(30626), + 60: uint16(30627), + 61: uint16(30613), + 62: uint16(30617), + 63: uint16(30615), + 64: uint16(30941), + 65: uint16(30953), + 66: uint16(30949), + 67: uint16(30954), + 68: uint16(30942), + 69: uint16(30947), + 70: uint16(30939), + 71: uint16(30945), + 72: uint16(30946), + 73: uint16(30957), + 74: uint16(30943), + 75: uint16(30944), + 76: uint16(31140), + 77: uint16(31300), + 78: uint16(31304), + 79: uint16(31303), + 80: uint16(31414), + 81: uint16(31416), + 82: uint16(31413), + 83: uint16(31409), + 84: uint16(31415), + 85: uint16(31710), + 86: uint16(31715), + 87: uint16(31719), + 88: uint16(31709), + 89: uint16(31701), + 90: uint16(31717), + 91: uint16(31706), + 92: uint16(31720), + 93: uint16(31737), + 94: uint16(31700), + 95: uint16(31722), + 96: uint16(31714), + 97: uint16(31708), + 98: uint16(31723), + 99: uint16(31704), + 100: uint16(31711), + 101: uint16(31954), + 102: uint16(31956), + 103: uint16(31959), + 104: uint16(31952), + 105: uint16(31953), + 106: uint16(32274), + 107: uint16(32289), + 108: uint16(32279), + 109: uint16(32268), + 110: uint16(32287), + 111: uint16(32288), + 112: uint16(32275), + 113: uint16(32270), + 114: uint16(32284), + 115: uint16(32277), + 116: uint16(32282), + 117: uint16(32290), + 118: uint16(32267), + 119: uint16(32271), + 120: uint16(32278), + 121: uint16(32269), + 122: uint16(32276), + 123: uint16(32293), + 124: uint16(32292), + 125: uint16(32579), + 126: uint16(32635), + 127: uint16(32636), + 128: uint16(32634), + 129: uint16(32689), + 130: uint16(32751), + 131: uint16(32810), + 132: uint16(32809), + 133: uint16(32876), + 134: uint16(33201), + 135: uint16(33190), + 136: uint16(33198), + 137: uint16(33209), + 138: uint16(33205), + 139: uint16(33195), + 140: uint16(33200), + 141: uint16(33196), + 142: uint16(33204), + 143: uint16(33202), + 144: uint16(33207), + 145: uint16(33191), + 146: uint16(33266), + 147: uint16(33365), + 148: uint16(33366), + 149: uint16(33367), + 150: uint16(34134), + 151: uint16(34117), + 152: uint16(34155), + 153: uint16(34125), + 154: uint16(34131), + 155: uint16(34145), + 156: uint16(34136), + }, + 74: { + 0: uint16(34112), + 1: uint16(34118), + 2: uint16(34148), + 3: uint16(34113), + 4: uint16(34146), + 5: uint16(34116), + 6: uint16(34129), + 7: uint16(34119), + 8: uint16(34147), + 9: uint16(34110), + 10: uint16(34139), + 11: uint16(34161), + 12: uint16(34126), + 13: uint16(34158), + 14: uint16(34165), + 15: uint16(34133), + 16: uint16(34151), + 17: uint16(34144), + 18: uint16(34188), + 19: uint16(34150), + 20: uint16(34141), + 21: uint16(34132), + 22: uint16(34149), + 23: uint16(34156), + 24: uint16(34403), + 25: uint16(34405), + 26: uint16(34404), + 27: uint16(34715), + 28: uint16(34703), + 29: uint16(34711), + 30: uint16(34707), + 31: uint16(34706), + 32: uint16(34696), + 33: uint16(34689), + 34: uint16(34710), + 35: uint16(34712), + 36: uint16(34681), + 37: uint16(34695), + 38: uint16(34723), + 39: uint16(34693), + 40: uint16(34704), + 41: uint16(34705), + 42: uint16(34717), + 43: uint16(34692), + 44: uint16(34708), + 45: uint16(34716), + 46: uint16(34714), + 47: uint16(34697), + 48: uint16(35102), + 49: uint16(35110), + 50: uint16(35120), + 51: uint16(35117), + 52: uint16(35118), + 53: uint16(35111), + 54: uint16(35121), + 55: uint16(35106), + 56: uint16(35113), + 57: uint16(35107), + 58: uint16(35119), + 59: uint16(35116), + 60: uint16(35103), + 61: uint16(35313), + 62: uint16(35552), + 63: uint16(35554), + 64: uint16(35570), + 65: uint16(35572), + 66: uint16(35573), + 67: uint16(35549), + 68: uint16(35604), + 69: uint16(35556), + 70: uint16(35551), + 71: uint16(35568), + 72: uint16(35528), + 73: uint16(35550), + 74: uint16(35553), + 75: uint16(35560), + 76: uint16(35583), + 77: uint16(35567), + 78: uint16(35579), + 79: uint16(35985), + 80: uint16(35986), + 81: uint16(35984), + 82: uint16(36085), + 83: uint16(36078), + 84: uint16(36081), + 85: uint16(36080), + 86: uint16(36083), + 87: uint16(36204), + 88: uint16(36206), + 89: uint16(36261), + 90: uint16(36263), + 91: uint16(36403), + 92: uint16(36414), + 93: uint16(36408), + 94: uint16(36416), + 95: uint16(36421), + 96: uint16(36406), + 97: uint16(36412), + 98: uint16(36413), + 99: uint16(36417), + 100: uint16(36400), + 101: uint16(36415), + 102: uint16(36541), + 103: uint16(36662), + 104: uint16(36654), + 105: uint16(36661), + 106: uint16(36658), + 107: uint16(36665), + 108: uint16(36663), + 109: uint16(36660), + 110: uint16(36982), + 111: uint16(36985), + 112: uint16(36987), + 113: uint16(36998), + 114: uint16(37114), + 115: uint16(37171), + 116: uint16(37173), + 117: uint16(37174), + 118: uint16(37267), + 119: uint16(37264), + 120: uint16(37265), + 121: uint16(37261), + 122: uint16(37263), + 123: uint16(37671), + 124: uint16(37662), + 125: uint16(37640), + 126: uint16(37663), + 127: uint16(37638), + 128: uint16(37647), + 129: uint16(37754), + 130: uint16(37688), + 131: uint16(37692), + 132: uint16(37659), + 133: uint16(37667), + 134: uint16(37650), + 135: uint16(37633), + 136: uint16(37702), + 137: uint16(37677), + 138: uint16(37646), + 139: uint16(37645), + 140: uint16(37579), + 141: uint16(37661), + 142: uint16(37626), + 143: uint16(37669), + 144: uint16(37651), + 145: uint16(37625), + 146: uint16(37623), + 147: uint16(37684), + 148: uint16(37634), + 149: uint16(37668), + 150: uint16(37631), + 151: uint16(37673), + 152: uint16(37689), + 153: uint16(37685), + 154: uint16(37674), + 155: uint16(37652), + 156: uint16(37644), + }, + 75: { + 0: uint16(37643), + 1: uint16(37630), + 2: uint16(37641), + 3: uint16(37632), + 4: uint16(37627), + 5: uint16(37654), + 6: uint16(38332), + 7: uint16(38349), + 8: uint16(38334), + 9: uint16(38329), + 10: uint16(38330), + 11: uint16(38326), + 12: uint16(38335), + 13: uint16(38325), + 14: uint16(38333), + 15: uint16(38569), + 16: uint16(38612), + 17: uint16(38667), + 18: uint16(38674), + 19: uint16(38672), + 20: uint16(38809), + 21: uint16(38807), + 22: uint16(38804), + 23: uint16(38896), + 24: uint16(38904), + 25: uint16(38965), + 26: uint16(38959), + 27: uint16(38962), + 28: uint16(39204), + 29: uint16(39199), + 30: uint16(39207), + 31: uint16(39209), + 32: uint16(39326), + 33: uint16(39406), + 34: uint16(39404), + 35: uint16(39397), + 36: uint16(39396), + 37: uint16(39408), + 38: uint16(39395), + 39: uint16(39402), + 40: uint16(39401), + 41: uint16(39399), + 42: uint16(39609), + 43: uint16(39615), + 44: uint16(39604), + 45: uint16(39611), + 46: uint16(39670), + 47: uint16(39674), + 48: uint16(39673), + 49: uint16(39671), + 50: uint16(39731), + 51: uint16(39808), + 52: uint16(39813), + 53: uint16(39815), + 54: uint16(39804), + 55: uint16(39806), + 56: uint16(39803), + 57: uint16(39810), + 58: uint16(39827), + 59: uint16(39826), + 60: uint16(39824), + 61: uint16(39802), + 62: uint16(39829), + 63: uint16(39805), + 64: uint16(39816), + 65: uint16(40229), + 66: uint16(40215), + 67: uint16(40224), + 68: uint16(40222), + 69: uint16(40212), + 70: uint16(40233), + 71: uint16(40221), + 72: uint16(40216), + 73: uint16(40226), + 74: uint16(40208), + 75: uint16(40217), + 76: uint16(40223), + 77: uint16(40584), + 78: uint16(40582), + 79: uint16(40583), + 80: uint16(40622), + 81: uint16(40621), + 82: uint16(40661), + 83: uint16(40662), + 84: uint16(40698), + 85: uint16(40722), + 86: uint16(40765), + 87: uint16(20774), + 88: uint16(20773), + 89: uint16(20770), + 90: uint16(20772), + 91: uint16(20768), + 92: uint16(20777), + 93: uint16(21236), + 94: uint16(22163), + 95: uint16(22156), + 96: uint16(22157), + 97: uint16(22150), + 98: uint16(22148), + 99: uint16(22147), + 100: uint16(22142), + 101: uint16(22146), + 102: uint16(22143), + 103: uint16(22145), + 104: uint16(22742), + 105: uint16(22740), + 106: uint16(22735), + 107: uint16(22738), + 108: uint16(23341), + 109: uint16(23333), + 110: uint16(23346), + 111: uint16(23331), + 112: uint16(23340), + 113: uint16(23335), + 114: uint16(23334), + 115: uint16(23343), + 116: uint16(23342), + 117: uint16(23419), + 118: uint16(23537), + 119: uint16(23538), + 120: uint16(23991), + 121: uint16(24172), + 122: uint16(24170), + 123: uint16(24510), + 124: uint16(24507), + 125: uint16(25027), + 126: uint16(25013), + 127: uint16(25020), + 128: uint16(25063), + 129: uint16(25056), + 130: uint16(25061), + 131: uint16(25060), + 132: uint16(25064), + 133: uint16(25054), + 134: uint16(25839), + 135: uint16(25833), + 136: uint16(25827), + 137: uint16(25835), + 138: uint16(25828), + 139: uint16(25832), + 140: uint16(25985), + 141: uint16(25984), + 142: uint16(26038), + 143: uint16(26074), + 144: uint16(26322), + 145: uint16(27277), + 146: uint16(27286), + 147: uint16(27265), + 148: uint16(27301), + 149: uint16(27273), + 150: uint16(27295), + 151: uint16(27291), + 152: uint16(27297), + 153: uint16(27294), + 154: uint16(27271), + 155: uint16(27283), + 156: uint16(27278), + }, + 76: { + 0: uint16(27285), + 1: uint16(27267), + 2: uint16(27304), + 3: uint16(27300), + 4: uint16(27281), + 5: uint16(27263), + 6: uint16(27302), + 7: uint16(27290), + 8: uint16(27269), + 9: uint16(27276), + 10: uint16(27282), + 11: uint16(27483), + 12: uint16(27565), + 13: uint16(27657), + 14: uint16(28620), + 15: uint16(28585), + 16: uint16(28660), + 17: uint16(28628), + 18: uint16(28643), + 19: uint16(28636), + 20: uint16(28653), + 21: uint16(28647), + 22: uint16(28646), + 23: uint16(28638), + 24: uint16(28658), + 25: uint16(28637), + 26: uint16(28642), + 27: uint16(28648), + 28: uint16(29153), + 29: uint16(29169), + 30: uint16(29160), + 31: uint16(29170), + 32: uint16(29156), + 33: uint16(29168), + 34: uint16(29154), + 35: uint16(29555), + 36: uint16(29550), + 37: uint16(29551), + 38: uint16(29847), + 39: uint16(29874), + 40: uint16(29867), + 41: uint16(29840), + 42: uint16(29866), + 43: uint16(29869), + 44: uint16(29873), + 45: uint16(29861), + 46: uint16(29871), + 47: uint16(29968), + 48: uint16(29969), + 49: uint16(29970), + 50: uint16(29967), + 51: uint16(30084), + 52: uint16(30275), + 53: uint16(30280), + 54: uint16(30281), + 55: uint16(30279), + 56: uint16(30372), + 57: uint16(30441), + 58: uint16(30645), + 59: uint16(30635), + 60: uint16(30642), + 61: uint16(30647), + 62: uint16(30646), + 63: uint16(30644), + 64: uint16(30641), + 65: uint16(30632), + 66: uint16(30704), + 67: uint16(30963), + 68: uint16(30973), + 69: uint16(30978), + 70: uint16(30971), + 71: uint16(30972), + 72: uint16(30962), + 73: uint16(30981), + 74: uint16(30969), + 75: uint16(30974), + 76: uint16(30980), + 77: uint16(31147), + 78: uint16(31144), + 79: uint16(31324), + 80: uint16(31323), + 81: uint16(31318), + 82: uint16(31320), + 83: uint16(31316), + 84: uint16(31322), + 85: uint16(31422), + 86: uint16(31424), + 87: uint16(31425), + 88: uint16(31749), + 89: uint16(31759), + 90: uint16(31730), + 91: uint16(31744), + 92: uint16(31743), + 93: uint16(31739), + 94: uint16(31758), + 95: uint16(31732), + 96: uint16(31755), + 97: uint16(31731), + 98: uint16(31746), + 99: uint16(31753), + 100: uint16(31747), + 101: uint16(31745), + 102: uint16(31736), + 103: uint16(31741), + 104: uint16(31750), + 105: uint16(31728), + 106: uint16(31729), + 107: uint16(31760), + 108: uint16(31754), + 109: uint16(31976), + 110: uint16(32301), + 111: uint16(32316), + 112: uint16(32322), + 113: uint16(32307), + 114: uint16(38984), + 115: uint16(32312), + 116: uint16(32298), + 117: uint16(32329), + 118: uint16(32320), + 119: uint16(32327), + 120: uint16(32297), + 121: uint16(32332), + 122: uint16(32304), + 123: uint16(32315), + 124: uint16(32310), + 125: uint16(32324), + 126: uint16(32314), + 127: uint16(32581), + 128: uint16(32639), + 129: uint16(32638), + 130: uint16(32637), + 131: uint16(32756), + 132: uint16(32754), + 133: uint16(32812), + 134: uint16(33211), + 135: uint16(33220), + 136: uint16(33228), + 137: uint16(33226), + 138: uint16(33221), + 139: uint16(33223), + 140: uint16(33212), + 141: uint16(33257), + 142: uint16(33371), + 143: uint16(33370), + 144: uint16(33372), + 145: uint16(34179), + 146: uint16(34176), + 147: uint16(34191), + 148: uint16(34215), + 149: uint16(34197), + 150: uint16(34208), + 151: uint16(34187), + 152: uint16(34211), + 153: uint16(34171), + 154: uint16(34212), + 155: uint16(34202), + 156: uint16(34206), + }, + 77: { + 0: uint16(34167), + 1: uint16(34172), + 2: uint16(34185), + 3: uint16(34209), + 4: uint16(34170), + 5: uint16(34168), + 6: uint16(34135), + 7: uint16(34190), + 8: uint16(34198), + 9: uint16(34182), + 10: uint16(34189), + 11: uint16(34201), + 12: uint16(34205), + 13: uint16(34177), + 14: uint16(34210), + 15: uint16(34178), + 16: uint16(34184), + 17: uint16(34181), + 18: uint16(34169), + 19: uint16(34166), + 20: uint16(34200), + 21: uint16(34192), + 22: uint16(34207), + 23: uint16(34408), + 24: uint16(34750), + 25: uint16(34730), + 26: uint16(34733), + 27: uint16(34757), + 28: uint16(34736), + 29: uint16(34732), + 30: uint16(34745), + 31: uint16(34741), + 32: uint16(34748), + 33: uint16(34734), + 34: uint16(34761), + 35: uint16(34755), + 36: uint16(34754), + 37: uint16(34764), + 38: uint16(34743), + 39: uint16(34735), + 40: uint16(34756), + 41: uint16(34762), + 42: uint16(34740), + 43: uint16(34742), + 44: uint16(34751), + 45: uint16(34744), + 46: uint16(34749), + 47: uint16(34782), + 48: uint16(34738), + 49: uint16(35125), + 50: uint16(35123), + 51: uint16(35132), + 52: uint16(35134), + 53: uint16(35137), + 54: uint16(35154), + 55: uint16(35127), + 56: uint16(35138), + 57: uint16(35245), + 58: uint16(35247), + 59: uint16(35246), + 60: uint16(35314), + 61: uint16(35315), + 62: uint16(35614), + 63: uint16(35608), + 64: uint16(35606), + 65: uint16(35601), + 66: uint16(35589), + 67: uint16(35595), + 68: uint16(35618), + 69: uint16(35599), + 70: uint16(35602), + 71: uint16(35605), + 72: uint16(35591), + 73: uint16(35597), + 74: uint16(35592), + 75: uint16(35590), + 76: uint16(35612), + 77: uint16(35603), + 78: uint16(35610), + 79: uint16(35919), + 80: uint16(35952), + 81: uint16(35954), + 82: uint16(35953), + 83: uint16(35951), + 84: uint16(35989), + 85: uint16(35988), + 86: uint16(36089), + 87: uint16(36207), + 88: uint16(36430), + 89: uint16(36429), + 90: uint16(36435), + 91: uint16(36432), + 92: uint16(36428), + 93: uint16(36423), + 94: uint16(36675), + 95: uint16(36672), + 96: uint16(36997), + 97: uint16(36990), + 98: uint16(37176), + 99: uint16(37274), + 100: uint16(37282), + 101: uint16(37275), + 102: uint16(37273), + 103: uint16(37279), + 104: uint16(37281), + 105: uint16(37277), + 106: uint16(37280), + 107: uint16(37793), + 108: uint16(37763), + 109: uint16(37807), + 110: uint16(37732), + 111: uint16(37718), + 112: uint16(37703), + 113: uint16(37756), + 114: uint16(37720), + 115: uint16(37724), + 116: uint16(37750), + 117: uint16(37705), + 118: uint16(37712), + 119: uint16(37713), + 120: uint16(37728), + 121: uint16(37741), + 122: uint16(37775), + 123: uint16(37708), + 124: uint16(37738), + 125: uint16(37753), + 126: uint16(37719), + 127: uint16(37717), + 128: uint16(37714), + 129: uint16(37711), + 130: uint16(37745), + 131: uint16(37751), + 132: uint16(37755), + 133: uint16(37729), + 134: uint16(37726), + 135: uint16(37731), + 136: uint16(37735), + 137: uint16(37760), + 138: uint16(37710), + 139: uint16(37721), + 140: uint16(38343), + 141: uint16(38336), + 142: uint16(38345), + 143: uint16(38339), + 144: uint16(38341), + 145: uint16(38327), + 146: uint16(38574), + 147: uint16(38576), + 148: uint16(38572), + 149: uint16(38688), + 150: uint16(38687), + 151: uint16(38680), + 152: uint16(38685), + 153: uint16(38681), + 154: uint16(38810), + 155: uint16(38817), + 156: uint16(38812), + }, + 78: { + 0: uint16(38814), + 1: uint16(38813), + 2: uint16(38869), + 3: uint16(38868), + 4: uint16(38897), + 5: uint16(38977), + 6: uint16(38980), + 7: uint16(38986), + 8: uint16(38985), + 9: uint16(38981), + 10: uint16(38979), + 11: uint16(39205), + 12: uint16(39211), + 13: uint16(39212), + 14: uint16(39210), + 15: uint16(39219), + 16: uint16(39218), + 17: uint16(39215), + 18: uint16(39213), + 19: uint16(39217), + 20: uint16(39216), + 21: uint16(39320), + 22: uint16(39331), + 23: uint16(39329), + 24: uint16(39426), + 25: uint16(39418), + 26: uint16(39412), + 27: uint16(39415), + 28: uint16(39417), + 29: uint16(39416), + 30: uint16(39414), + 31: uint16(39419), + 32: uint16(39421), + 33: uint16(39422), + 34: uint16(39420), + 35: uint16(39427), + 36: uint16(39614), + 37: uint16(39678), + 38: uint16(39677), + 39: uint16(39681), + 40: uint16(39676), + 41: uint16(39752), + 42: uint16(39834), + 43: uint16(39848), + 44: uint16(39838), + 45: uint16(39835), + 46: uint16(39846), + 47: uint16(39841), + 48: uint16(39845), + 49: uint16(39844), + 50: uint16(39814), + 51: uint16(39842), + 52: uint16(39840), + 53: uint16(39855), + 54: uint16(40243), + 55: uint16(40257), + 56: uint16(40295), + 57: uint16(40246), + 58: uint16(40238), + 59: uint16(40239), + 60: uint16(40241), + 61: uint16(40248), + 62: uint16(40240), + 63: uint16(40261), + 64: uint16(40258), + 65: uint16(40259), + 66: uint16(40254), + 67: uint16(40247), + 68: uint16(40256), + 69: uint16(40253), + 70: uint16(32757), + 71: uint16(40237), + 72: uint16(40586), + 73: uint16(40585), + 74: uint16(40589), + 75: uint16(40624), + 76: uint16(40648), + 77: uint16(40666), + 78: uint16(40699), + 79: uint16(40703), + 80: uint16(40740), + 81: uint16(40739), + 82: uint16(40738), + 83: uint16(40788), + 84: uint16(40864), + 85: uint16(20785), + 86: uint16(20781), + 87: uint16(20782), + 88: uint16(22168), + 89: uint16(22172), + 90: uint16(22167), + 91: uint16(22170), + 92: uint16(22173), + 93: uint16(22169), + 94: uint16(22896), + 95: uint16(23356), + 96: uint16(23657), + 97: uint16(23658), + 98: uint16(24000), + 99: uint16(24173), + 100: uint16(24174), + 101: uint16(25048), + 102: uint16(25055), + 103: uint16(25069), + 104: uint16(25070), + 105: uint16(25073), + 106: uint16(25066), + 107: uint16(25072), + 108: uint16(25067), + 109: uint16(25046), + 110: uint16(25065), + 111: uint16(25855), + 112: uint16(25860), + 113: uint16(25853), + 114: uint16(25848), + 115: uint16(25857), + 116: uint16(25859), + 117: uint16(25852), + 118: uint16(26004), + 119: uint16(26075), + 120: uint16(26330), + 121: uint16(26331), + 122: uint16(26328), + 123: uint16(27333), + 124: uint16(27321), + 125: uint16(27325), + 126: uint16(27361), + 127: uint16(27334), + 128: uint16(27322), + 129: uint16(27318), + 130: uint16(27319), + 131: uint16(27335), + 132: uint16(27316), + 133: uint16(27309), + 134: uint16(27486), + 135: uint16(27593), + 136: uint16(27659), + 137: uint16(28679), + 138: uint16(28684), + 139: uint16(28685), + 140: uint16(28673), + 141: uint16(28677), + 142: uint16(28692), + 143: uint16(28686), + 144: uint16(28671), + 145: uint16(28672), + 146: uint16(28667), + 147: uint16(28710), + 148: uint16(28668), + 149: uint16(28663), + 150: uint16(28682), + 151: uint16(29185), + 152: uint16(29183), + 153: uint16(29177), + 154: uint16(29187), + 155: uint16(29181), + 156: uint16(29558), + }, + 79: { + 0: uint16(29880), + 1: uint16(29888), + 2: uint16(29877), + 3: uint16(29889), + 4: uint16(29886), + 5: uint16(29878), + 6: uint16(29883), + 7: uint16(29890), + 8: uint16(29972), + 9: uint16(29971), + 10: uint16(30300), + 11: uint16(30308), + 12: uint16(30297), + 13: uint16(30288), + 14: uint16(30291), + 15: uint16(30295), + 16: uint16(30298), + 17: uint16(30374), + 18: uint16(30397), + 19: uint16(30444), + 20: uint16(30658), + 21: uint16(30650), + 22: uint16(30975), + 23: uint16(30988), + 24: uint16(30995), + 25: uint16(30996), + 26: uint16(30985), + 27: uint16(30992), + 28: uint16(30994), + 29: uint16(30993), + 30: uint16(31149), + 31: uint16(31148), + 32: uint16(31327), + 33: uint16(31772), + 34: uint16(31785), + 35: uint16(31769), + 36: uint16(31776), + 37: uint16(31775), + 38: uint16(31789), + 39: uint16(31773), + 40: uint16(31782), + 41: uint16(31784), + 42: uint16(31778), + 43: uint16(31781), + 44: uint16(31792), + 45: uint16(32348), + 46: uint16(32336), + 47: uint16(32342), + 48: uint16(32355), + 49: uint16(32344), + 50: uint16(32354), + 51: uint16(32351), + 52: uint16(32337), + 53: uint16(32352), + 54: uint16(32343), + 55: uint16(32339), + 56: uint16(32693), + 57: uint16(32691), + 58: uint16(32759), + 59: uint16(32760), + 60: uint16(32885), + 61: uint16(33233), + 62: uint16(33234), + 63: uint16(33232), + 64: uint16(33375), + 65: uint16(33374), + 66: uint16(34228), + 67: uint16(34246), + 68: uint16(34240), + 69: uint16(34243), + 70: uint16(34242), + 71: uint16(34227), + 72: uint16(34229), + 73: uint16(34237), + 74: uint16(34247), + 75: uint16(34244), + 76: uint16(34239), + 77: uint16(34251), + 78: uint16(34254), + 79: uint16(34248), + 80: uint16(34245), + 81: uint16(34225), + 82: uint16(34230), + 83: uint16(34258), + 84: uint16(34340), + 85: uint16(34232), + 86: uint16(34231), + 87: uint16(34238), + 88: uint16(34409), + 89: uint16(34791), + 90: uint16(34790), + 91: uint16(34786), + 92: uint16(34779), + 93: uint16(34795), + 94: uint16(34794), + 95: uint16(34789), + 96: uint16(34783), + 97: uint16(34803), + 98: uint16(34788), + 99: uint16(34772), + 100: uint16(34780), + 101: uint16(34771), + 102: uint16(34797), + 103: uint16(34776), + 104: uint16(34787), + 105: uint16(34724), + 106: uint16(34775), + 107: uint16(34777), + 108: uint16(34817), + 109: uint16(34804), + 110: uint16(34792), + 111: uint16(34781), + 112: uint16(35155), + 113: uint16(35147), + 114: uint16(35151), + 115: uint16(35148), + 116: uint16(35142), + 117: uint16(35152), + 118: uint16(35153), + 119: uint16(35145), + 120: uint16(35626), + 121: uint16(35623), + 122: uint16(35619), + 123: uint16(35635), + 124: uint16(35632), + 125: uint16(35637), + 126: uint16(35655), + 127: uint16(35631), + 128: uint16(35644), + 129: uint16(35646), + 130: uint16(35633), + 131: uint16(35621), + 132: uint16(35639), + 133: uint16(35622), + 134: uint16(35638), + 135: uint16(35630), + 136: uint16(35620), + 137: uint16(35643), + 138: uint16(35645), + 139: uint16(35642), + 140: uint16(35906), + 141: uint16(35957), + 142: uint16(35993), + 143: uint16(35992), + 144: uint16(35991), + 145: uint16(36094), + 146: uint16(36100), + 147: uint16(36098), + 148: uint16(36096), + 149: uint16(36444), + 150: uint16(36450), + 151: uint16(36448), + 152: uint16(36439), + 153: uint16(36438), + 154: uint16(36446), + 155: uint16(36453), + 156: uint16(36455), + }, + 80: { + 0: uint16(36443), + 1: uint16(36442), + 2: uint16(36449), + 3: uint16(36445), + 4: uint16(36457), + 5: uint16(36436), + 6: uint16(36678), + 7: uint16(36679), + 8: uint16(36680), + 9: uint16(36683), + 10: uint16(37160), + 11: uint16(37178), + 12: uint16(37179), + 13: uint16(37182), + 14: uint16(37288), + 15: uint16(37285), + 16: uint16(37287), + 17: uint16(37295), + 18: uint16(37290), + 19: uint16(37813), + 20: uint16(37772), + 21: uint16(37778), + 22: uint16(37815), + 23: uint16(37787), + 24: uint16(37789), + 25: uint16(37769), + 26: uint16(37799), + 27: uint16(37774), + 28: uint16(37802), + 29: uint16(37790), + 30: uint16(37798), + 31: uint16(37781), + 32: uint16(37768), + 33: uint16(37785), + 34: uint16(37791), + 35: uint16(37773), + 36: uint16(37809), + 37: uint16(37777), + 38: uint16(37810), + 39: uint16(37796), + 40: uint16(37800), + 41: uint16(37812), + 42: uint16(37795), + 43: uint16(37797), + 44: uint16(38354), + 45: uint16(38355), + 46: uint16(38353), + 47: uint16(38579), + 48: uint16(38615), + 49: uint16(38618), + 50: uint16(24002), + 51: uint16(38623), + 52: uint16(38616), + 53: uint16(38621), + 54: uint16(38691), + 55: uint16(38690), + 56: uint16(38693), + 57: uint16(38828), + 58: uint16(38830), + 59: uint16(38824), + 60: uint16(38827), + 61: uint16(38820), + 62: uint16(38826), + 63: uint16(38818), + 64: uint16(38821), + 65: uint16(38871), + 66: uint16(38873), + 67: uint16(38870), + 68: uint16(38872), + 69: uint16(38906), + 70: uint16(38992), + 71: uint16(38993), + 72: uint16(38994), + 73: uint16(39096), + 74: uint16(39233), + 75: uint16(39228), + 76: uint16(39226), + 77: uint16(39439), + 78: uint16(39435), + 79: uint16(39433), + 80: uint16(39437), + 81: uint16(39428), + 82: uint16(39441), + 83: uint16(39434), + 84: uint16(39429), + 85: uint16(39431), + 86: uint16(39430), + 87: uint16(39616), + 88: uint16(39644), + 89: uint16(39688), + 90: uint16(39684), + 91: uint16(39685), + 92: uint16(39721), + 93: uint16(39733), + 94: uint16(39754), + 95: uint16(39756), + 96: uint16(39755), + 97: uint16(39879), + 98: uint16(39878), + 99: uint16(39875), + 100: uint16(39871), + 101: uint16(39873), + 102: uint16(39861), + 103: uint16(39864), + 104: uint16(39891), + 105: uint16(39862), + 106: uint16(39876), + 107: uint16(39865), + 108: uint16(39869), + 109: uint16(40284), + 110: uint16(40275), + 111: uint16(40271), + 112: uint16(40266), + 113: uint16(40283), + 114: uint16(40267), + 115: uint16(40281), + 116: uint16(40278), + 117: uint16(40268), + 118: uint16(40279), + 119: uint16(40274), + 120: uint16(40276), + 121: uint16(40287), + 122: uint16(40280), + 123: uint16(40282), + 124: uint16(40590), + 125: uint16(40588), + 126: uint16(40671), + 127: uint16(40705), + 128: uint16(40704), + 129: uint16(40726), + 130: uint16(40741), + 131: uint16(40747), + 132: uint16(40746), + 133: uint16(40745), + 134: uint16(40744), + 135: uint16(40780), + 136: uint16(40789), + 137: uint16(20788), + 138: uint16(20789), + 139: uint16(21142), + 140: uint16(21239), + 141: uint16(21428), + 142: uint16(22187), + 143: uint16(22189), + 144: uint16(22182), + 145: uint16(22183), + 146: uint16(22186), + 147: uint16(22188), + 148: uint16(22746), + 149: uint16(22749), + 150: uint16(22747), + 151: uint16(22802), + 152: uint16(23357), + 153: uint16(23358), + 154: uint16(23359), + 155: uint16(24003), + 156: uint16(24176), + }, + 81: { + 0: uint16(24511), + 1: uint16(25083), + 2: uint16(25863), + 3: uint16(25872), + 4: uint16(25869), + 5: uint16(25865), + 6: uint16(25868), + 7: uint16(25870), + 8: uint16(25988), + 9: uint16(26078), + 10: uint16(26077), + 11: uint16(26334), + 12: uint16(27367), + 13: uint16(27360), + 14: uint16(27340), + 15: uint16(27345), + 16: uint16(27353), + 17: uint16(27339), + 18: uint16(27359), + 19: uint16(27356), + 20: uint16(27344), + 21: uint16(27371), + 22: uint16(27343), + 23: uint16(27341), + 24: uint16(27358), + 25: uint16(27488), + 26: uint16(27568), + 27: uint16(27660), + 28: uint16(28697), + 29: uint16(28711), + 30: uint16(28704), + 31: uint16(28694), + 32: uint16(28715), + 33: uint16(28705), + 34: uint16(28706), + 35: uint16(28707), + 36: uint16(28713), + 37: uint16(28695), + 38: uint16(28708), + 39: uint16(28700), + 40: uint16(28714), + 41: uint16(29196), + 42: uint16(29194), + 43: uint16(29191), + 44: uint16(29186), + 45: uint16(29189), + 46: uint16(29349), + 47: uint16(29350), + 48: uint16(29348), + 49: uint16(29347), + 50: uint16(29345), + 51: uint16(29899), + 52: uint16(29893), + 53: uint16(29879), + 54: uint16(29891), + 55: uint16(29974), + 56: uint16(30304), + 57: uint16(30665), + 58: uint16(30666), + 59: uint16(30660), + 60: uint16(30705), + 61: uint16(31005), + 62: uint16(31003), + 63: uint16(31009), + 64: uint16(31004), + 65: uint16(30999), + 66: uint16(31006), + 67: uint16(31152), + 68: uint16(31335), + 69: uint16(31336), + 70: uint16(31795), + 71: uint16(31804), + 72: uint16(31801), + 73: uint16(31788), + 74: uint16(31803), + 75: uint16(31980), + 76: uint16(31978), + 77: uint16(32374), + 78: uint16(32373), + 79: uint16(32376), + 80: uint16(32368), + 81: uint16(32375), + 82: uint16(32367), + 83: uint16(32378), + 84: uint16(32370), + 85: uint16(32372), + 86: uint16(32360), + 87: uint16(32587), + 88: uint16(32586), + 89: uint16(32643), + 90: uint16(32646), + 91: uint16(32695), + 92: uint16(32765), + 93: uint16(32766), + 94: uint16(32888), + 95: uint16(33239), + 96: uint16(33237), + 97: uint16(33380), + 98: uint16(33377), + 99: uint16(33379), + 100: uint16(34283), + 101: uint16(34289), + 102: uint16(34285), + 103: uint16(34265), + 104: uint16(34273), + 105: uint16(34280), + 106: uint16(34266), + 107: uint16(34263), + 108: uint16(34284), + 109: uint16(34290), + 110: uint16(34296), + 111: uint16(34264), + 112: uint16(34271), + 113: uint16(34275), + 114: uint16(34268), + 115: uint16(34257), + 116: uint16(34288), + 117: uint16(34278), + 118: uint16(34287), + 119: uint16(34270), + 120: uint16(34274), + 121: uint16(34816), + 122: uint16(34810), + 123: uint16(34819), + 124: uint16(34806), + 125: uint16(34807), + 126: uint16(34825), + 127: uint16(34828), + 128: uint16(34827), + 129: uint16(34822), + 130: uint16(34812), + 131: uint16(34824), + 132: uint16(34815), + 133: uint16(34826), + 134: uint16(34818), + 135: uint16(35170), + 136: uint16(35162), + 137: uint16(35163), + 138: uint16(35159), + 139: uint16(35169), + 140: uint16(35164), + 141: uint16(35160), + 142: uint16(35165), + 143: uint16(35161), + 144: uint16(35208), + 145: uint16(35255), + 146: uint16(35254), + 147: uint16(35318), + 148: uint16(35664), + 149: uint16(35656), + 150: uint16(35658), + 151: uint16(35648), + 152: uint16(35667), + 153: uint16(35670), + 154: uint16(35668), + 155: uint16(35659), + 156: uint16(35669), + }, + 82: { + 0: uint16(35665), + 1: uint16(35650), + 2: uint16(35666), + 3: uint16(35671), + 4: uint16(35907), + 5: uint16(35959), + 6: uint16(35958), + 7: uint16(35994), + 8: uint16(36102), + 9: uint16(36103), + 10: uint16(36105), + 11: uint16(36268), + 12: uint16(36266), + 13: uint16(36269), + 14: uint16(36267), + 15: uint16(36461), + 16: uint16(36472), + 17: uint16(36467), + 18: uint16(36458), + 19: uint16(36463), + 20: uint16(36475), + 21: uint16(36546), + 22: uint16(36690), + 23: uint16(36689), + 24: uint16(36687), + 25: uint16(36688), + 26: uint16(36691), + 27: uint16(36788), + 28: uint16(37184), + 29: uint16(37183), + 30: uint16(37296), + 31: uint16(37293), + 32: uint16(37854), + 33: uint16(37831), + 34: uint16(37839), + 35: uint16(37826), + 36: uint16(37850), + 37: uint16(37840), + 38: uint16(37881), + 39: uint16(37868), + 40: uint16(37836), + 41: uint16(37849), + 42: uint16(37801), + 43: uint16(37862), + 44: uint16(37834), + 45: uint16(37844), + 46: uint16(37870), + 47: uint16(37859), + 48: uint16(37845), + 49: uint16(37828), + 50: uint16(37838), + 51: uint16(37824), + 52: uint16(37842), + 53: uint16(37863), + 54: uint16(38269), + 55: uint16(38362), + 56: uint16(38363), + 57: uint16(38625), + 58: uint16(38697), + 59: uint16(38699), + 60: uint16(38700), + 61: uint16(38696), + 62: uint16(38694), + 63: uint16(38835), + 64: uint16(38839), + 65: uint16(38838), + 66: uint16(38877), + 67: uint16(38878), + 68: uint16(38879), + 69: uint16(39004), + 70: uint16(39001), + 71: uint16(39005), + 72: uint16(38999), + 73: uint16(39103), + 74: uint16(39101), + 75: uint16(39099), + 76: uint16(39102), + 77: uint16(39240), + 78: uint16(39239), + 79: uint16(39235), + 80: uint16(39334), + 81: uint16(39335), + 82: uint16(39450), + 83: uint16(39445), + 84: uint16(39461), + 85: uint16(39453), + 86: uint16(39460), + 87: uint16(39451), + 88: uint16(39458), + 89: uint16(39456), + 90: uint16(39463), + 91: uint16(39459), + 92: uint16(39454), + 93: uint16(39452), + 94: uint16(39444), + 95: uint16(39618), + 96: uint16(39691), + 97: uint16(39690), + 98: uint16(39694), + 99: uint16(39692), + 100: uint16(39735), + 101: uint16(39914), + 102: uint16(39915), + 103: uint16(39904), + 104: uint16(39902), + 105: uint16(39908), + 106: uint16(39910), + 107: uint16(39906), + 108: uint16(39920), + 109: uint16(39892), + 110: uint16(39895), + 111: uint16(39916), + 112: uint16(39900), + 113: uint16(39897), + 114: uint16(39909), + 115: uint16(39893), + 116: uint16(39905), + 117: uint16(39898), + 118: uint16(40311), + 119: uint16(40321), + 120: uint16(40330), + 121: uint16(40324), + 122: uint16(40328), + 123: uint16(40305), + 124: uint16(40320), + 125: uint16(40312), + 126: uint16(40326), + 127: uint16(40331), + 128: uint16(40332), + 129: uint16(40317), + 130: uint16(40299), + 131: uint16(40308), + 132: uint16(40309), + 133: uint16(40304), + 134: uint16(40297), + 135: uint16(40325), + 136: uint16(40307), + 137: uint16(40315), + 138: uint16(40322), + 139: uint16(40303), + 140: uint16(40313), + 141: uint16(40319), + 142: uint16(40327), + 143: uint16(40296), + 144: uint16(40596), + 145: uint16(40593), + 146: uint16(40640), + 147: uint16(40700), + 148: uint16(40749), + 149: uint16(40768), + 150: uint16(40769), + 151: uint16(40781), + 152: uint16(40790), + 153: uint16(40791), + 154: uint16(40792), + 155: uint16(21303), + 156: uint16(22194), + }, + 83: { + 0: uint16(22197), + 1: uint16(22195), + 2: uint16(22755), + 3: uint16(23365), + 4: uint16(24006), + 5: uint16(24007), + 6: uint16(24302), + 7: uint16(24303), + 8: uint16(24512), + 9: uint16(24513), + 10: uint16(25081), + 11: uint16(25879), + 12: uint16(25878), + 13: uint16(25877), + 14: uint16(25875), + 15: uint16(26079), + 16: uint16(26344), + 17: uint16(26339), + 18: uint16(26340), + 19: uint16(27379), + 20: uint16(27376), + 21: uint16(27370), + 22: uint16(27368), + 23: uint16(27385), + 24: uint16(27377), + 25: uint16(27374), + 26: uint16(27375), + 27: uint16(28732), + 28: uint16(28725), + 29: uint16(28719), + 30: uint16(28727), + 31: uint16(28724), + 32: uint16(28721), + 33: uint16(28738), + 34: uint16(28728), + 35: uint16(28735), + 36: uint16(28730), + 37: uint16(28729), + 38: uint16(28736), + 39: uint16(28731), + 40: uint16(28723), + 41: uint16(28737), + 42: uint16(29203), + 43: uint16(29204), + 44: uint16(29352), + 45: uint16(29565), + 46: uint16(29564), + 47: uint16(29882), + 48: uint16(30379), + 49: uint16(30378), + 50: uint16(30398), + 51: uint16(30445), + 52: uint16(30668), + 53: uint16(30670), + 54: uint16(30671), + 55: uint16(30669), + 56: uint16(30706), + 57: uint16(31013), + 58: uint16(31011), + 59: uint16(31015), + 60: uint16(31016), + 61: uint16(31012), + 62: uint16(31017), + 63: uint16(31154), + 64: uint16(31342), + 65: uint16(31340), + 66: uint16(31341), + 67: uint16(31479), + 68: uint16(31817), + 69: uint16(31816), + 70: uint16(31818), + 71: uint16(31815), + 72: uint16(31813), + 73: uint16(31982), + 74: uint16(32379), + 75: uint16(32382), + 76: uint16(32385), + 77: uint16(32384), + 78: uint16(32698), + 79: uint16(32767), + 80: uint16(32889), + 81: uint16(33243), + 82: uint16(33241), + 83: uint16(33291), + 84: uint16(33384), + 85: uint16(33385), + 86: uint16(34338), + 87: uint16(34303), + 88: uint16(34305), + 89: uint16(34302), + 90: uint16(34331), + 91: uint16(34304), + 92: uint16(34294), + 93: uint16(34308), + 94: uint16(34313), + 95: uint16(34309), + 96: uint16(34316), + 97: uint16(34301), + 98: uint16(34841), + 99: uint16(34832), + 100: uint16(34833), + 101: uint16(34839), + 102: uint16(34835), + 103: uint16(34838), + 104: uint16(35171), + 105: uint16(35174), + 106: uint16(35257), + 107: uint16(35319), + 108: uint16(35680), + 109: uint16(35690), + 110: uint16(35677), + 111: uint16(35688), + 112: uint16(35683), + 113: uint16(35685), + 114: uint16(35687), + 115: uint16(35693), + 116: uint16(36270), + 117: uint16(36486), + 118: uint16(36488), + 119: uint16(36484), + 120: uint16(36697), + 121: uint16(36694), + 122: uint16(36695), + 123: uint16(36693), + 124: uint16(36696), + 125: uint16(36698), + 126: uint16(37005), + 127: uint16(37187), + 128: uint16(37185), + 129: uint16(37303), + 130: uint16(37301), + 131: uint16(37298), + 132: uint16(37299), + 133: uint16(37899), + 134: uint16(37907), + 135: uint16(37883), + 136: uint16(37920), + 137: uint16(37903), + 138: uint16(37908), + 139: uint16(37886), + 140: uint16(37909), + 141: uint16(37904), + 142: uint16(37928), + 143: uint16(37913), + 144: uint16(37901), + 145: uint16(37877), + 146: uint16(37888), + 147: uint16(37879), + 148: uint16(37895), + 149: uint16(37902), + 150: uint16(37910), + 151: uint16(37906), + 152: uint16(37882), + 153: uint16(37897), + 154: uint16(37880), + 155: uint16(37898), + 156: uint16(37887), + }, + 84: { + 0: uint16(37884), + 1: uint16(37900), + 2: uint16(37878), + 3: uint16(37905), + 4: uint16(37894), + 5: uint16(38366), + 6: uint16(38368), + 7: uint16(38367), + 8: uint16(38702), + 9: uint16(38703), + 10: uint16(38841), + 11: uint16(38843), + 12: uint16(38909), + 13: uint16(38910), + 14: uint16(39008), + 15: uint16(39010), + 16: uint16(39011), + 17: uint16(39007), + 18: uint16(39105), + 19: uint16(39106), + 20: uint16(39248), + 21: uint16(39246), + 22: uint16(39257), + 23: uint16(39244), + 24: uint16(39243), + 25: uint16(39251), + 26: uint16(39474), + 27: uint16(39476), + 28: uint16(39473), + 29: uint16(39468), + 30: uint16(39466), + 31: uint16(39478), + 32: uint16(39465), + 33: uint16(39470), + 34: uint16(39480), + 35: uint16(39469), + 36: uint16(39623), + 37: uint16(39626), + 38: uint16(39622), + 39: uint16(39696), + 40: uint16(39698), + 41: uint16(39697), + 42: uint16(39947), + 43: uint16(39944), + 44: uint16(39927), + 45: uint16(39941), + 46: uint16(39954), + 47: uint16(39928), + 48: uint16(40000), + 49: uint16(39943), + 50: uint16(39950), + 51: uint16(39942), + 52: uint16(39959), + 53: uint16(39956), + 54: uint16(39945), + 55: uint16(40351), + 56: uint16(40345), + 57: uint16(40356), + 58: uint16(40349), + 59: uint16(40338), + 60: uint16(40344), + 61: uint16(40336), + 62: uint16(40347), + 63: uint16(40352), + 64: uint16(40340), + 65: uint16(40348), + 66: uint16(40362), + 67: uint16(40343), + 68: uint16(40353), + 69: uint16(40346), + 70: uint16(40354), + 71: uint16(40360), + 72: uint16(40350), + 73: uint16(40355), + 74: uint16(40383), + 75: uint16(40361), + 76: uint16(40342), + 77: uint16(40358), + 78: uint16(40359), + 79: uint16(40601), + 80: uint16(40603), + 81: uint16(40602), + 82: uint16(40677), + 83: uint16(40676), + 84: uint16(40679), + 85: uint16(40678), + 86: uint16(40752), + 87: uint16(40750), + 88: uint16(40795), + 89: uint16(40800), + 90: uint16(40798), + 91: uint16(40797), + 92: uint16(40793), + 93: uint16(40849), + 94: uint16(20794), + 95: uint16(20793), + 96: uint16(21144), + 97: uint16(21143), + 98: uint16(22211), + 99: uint16(22205), + 100: uint16(22206), + 101: uint16(23368), + 102: uint16(23367), + 103: uint16(24011), + 104: uint16(24015), + 105: uint16(24305), + 106: uint16(25085), + 107: uint16(25883), + 108: uint16(27394), + 109: uint16(27388), + 110: uint16(27395), + 111: uint16(27384), + 112: uint16(27392), + 113: uint16(28739), + 114: uint16(28740), + 115: uint16(28746), + 116: uint16(28744), + 117: uint16(28745), + 118: uint16(28741), + 119: uint16(28742), + 120: uint16(29213), + 121: uint16(29210), + 122: uint16(29209), + 123: uint16(29566), + 124: uint16(29975), + 125: uint16(30314), + 126: uint16(30672), + 127: uint16(31021), + 128: uint16(31025), + 129: uint16(31023), + 130: uint16(31828), + 131: uint16(31827), + 132: uint16(31986), + 133: uint16(32394), + 134: uint16(32391), + 135: uint16(32392), + 136: uint16(32395), + 137: uint16(32390), + 138: uint16(32397), + 139: uint16(32589), + 140: uint16(32699), + 141: uint16(32816), + 142: uint16(33245), + 143: uint16(34328), + 144: uint16(34346), + 145: uint16(34342), + 146: uint16(34335), + 147: uint16(34339), + 148: uint16(34332), + 149: uint16(34329), + 150: uint16(34343), + 151: uint16(34350), + 152: uint16(34337), + 153: uint16(34336), + 154: uint16(34345), + 155: uint16(34334), + 156: uint16(34341), + }, + 85: { + 0: uint16(34857), + 1: uint16(34845), + 2: uint16(34843), + 3: uint16(34848), + 4: uint16(34852), + 5: uint16(34844), + 6: uint16(34859), + 7: uint16(34890), + 8: uint16(35181), + 9: uint16(35177), + 10: uint16(35182), + 11: uint16(35179), + 12: uint16(35322), + 13: uint16(35705), + 14: uint16(35704), + 15: uint16(35653), + 16: uint16(35706), + 17: uint16(35707), + 18: uint16(36112), + 19: uint16(36116), + 20: uint16(36271), + 21: uint16(36494), + 22: uint16(36492), + 23: uint16(36702), + 24: uint16(36699), + 25: uint16(36701), + 26: uint16(37190), + 27: uint16(37188), + 28: uint16(37189), + 29: uint16(37305), + 30: uint16(37951), + 31: uint16(37947), + 32: uint16(37942), + 33: uint16(37929), + 34: uint16(37949), + 35: uint16(37948), + 36: uint16(37936), + 37: uint16(37945), + 38: uint16(37930), + 39: uint16(37943), + 40: uint16(37932), + 41: uint16(37952), + 42: uint16(37937), + 43: uint16(38373), + 44: uint16(38372), + 45: uint16(38371), + 46: uint16(38709), + 47: uint16(38714), + 48: uint16(38847), + 49: uint16(38881), + 50: uint16(39012), + 51: uint16(39113), + 52: uint16(39110), + 53: uint16(39104), + 54: uint16(39256), + 55: uint16(39254), + 56: uint16(39481), + 57: uint16(39485), + 58: uint16(39494), + 59: uint16(39492), + 60: uint16(39490), + 61: uint16(39489), + 62: uint16(39482), + 63: uint16(39487), + 64: uint16(39629), + 65: uint16(39701), + 66: uint16(39703), + 67: uint16(39704), + 68: uint16(39702), + 69: uint16(39738), + 70: uint16(39762), + 71: uint16(39979), + 72: uint16(39965), + 73: uint16(39964), + 74: uint16(39980), + 75: uint16(39971), + 76: uint16(39976), + 77: uint16(39977), + 78: uint16(39972), + 79: uint16(39969), + 80: uint16(40375), + 81: uint16(40374), + 82: uint16(40380), + 83: uint16(40385), + 84: uint16(40391), + 85: uint16(40394), + 86: uint16(40399), + 87: uint16(40382), + 88: uint16(40389), + 89: uint16(40387), + 90: uint16(40379), + 91: uint16(40373), + 92: uint16(40398), + 93: uint16(40377), + 94: uint16(40378), + 95: uint16(40364), + 96: uint16(40392), + 97: uint16(40369), + 98: uint16(40365), + 99: uint16(40396), + 100: uint16(40371), + 101: uint16(40397), + 102: uint16(40370), + 103: uint16(40570), + 104: uint16(40604), + 105: uint16(40683), + 106: uint16(40686), + 107: uint16(40685), + 108: uint16(40731), + 109: uint16(40728), + 110: uint16(40730), + 111: uint16(40753), + 112: uint16(40782), + 113: uint16(40805), + 114: uint16(40804), + 115: uint16(40850), + 116: uint16(20153), + 117: uint16(22214), + 118: uint16(22213), + 119: uint16(22219), + 120: uint16(22897), + 121: uint16(23371), + 122: uint16(23372), + 123: uint16(24021), + 124: uint16(24017), + 125: uint16(24306), + 126: uint16(25889), + 127: uint16(25888), + 128: uint16(25894), + 129: uint16(25890), + 130: uint16(27403), + 131: uint16(27400), + 132: uint16(27401), + 133: uint16(27661), + 134: uint16(28757), + 135: uint16(28758), + 136: uint16(28759), + 137: uint16(28754), + 138: uint16(29214), + 139: uint16(29215), + 140: uint16(29353), + 141: uint16(29567), + 142: uint16(29912), + 143: uint16(29909), + 144: uint16(29913), + 145: uint16(29911), + 146: uint16(30317), + 147: uint16(30381), + 148: uint16(31029), + 149: uint16(31156), + 150: uint16(31344), + 151: uint16(31345), + 152: uint16(31831), + 153: uint16(31836), + 154: uint16(31833), + 155: uint16(31835), + 156: uint16(31834), + }, + 86: { + 0: uint16(31988), + 1: uint16(31985), + 2: uint16(32401), + 3: uint16(32591), + 4: uint16(32647), + 5: uint16(33246), + 6: uint16(33387), + 7: uint16(34356), + 8: uint16(34357), + 9: uint16(34355), + 10: uint16(34348), + 11: uint16(34354), + 12: uint16(34358), + 13: uint16(34860), + 14: uint16(34856), + 15: uint16(34854), + 16: uint16(34858), + 17: uint16(34853), + 18: uint16(35185), + 19: uint16(35263), + 20: uint16(35262), + 21: uint16(35323), + 22: uint16(35710), + 23: uint16(35716), + 24: uint16(35714), + 25: uint16(35718), + 26: uint16(35717), + 27: uint16(35711), + 28: uint16(36117), + 29: uint16(36501), + 30: uint16(36500), + 31: uint16(36506), + 32: uint16(36498), + 33: uint16(36496), + 34: uint16(36502), + 35: uint16(36503), + 36: uint16(36704), + 37: uint16(36706), + 38: uint16(37191), + 39: uint16(37964), + 40: uint16(37968), + 41: uint16(37962), + 42: uint16(37963), + 43: uint16(37967), + 44: uint16(37959), + 45: uint16(37957), + 46: uint16(37960), + 47: uint16(37961), + 48: uint16(37958), + 49: uint16(38719), + 50: uint16(38883), + 51: uint16(39018), + 52: uint16(39017), + 53: uint16(39115), + 54: uint16(39252), + 55: uint16(39259), + 56: uint16(39502), + 57: uint16(39507), + 58: uint16(39508), + 59: uint16(39500), + 60: uint16(39503), + 61: uint16(39496), + 62: uint16(39498), + 63: uint16(39497), + 64: uint16(39506), + 65: uint16(39504), + 66: uint16(39632), + 67: uint16(39705), + 68: uint16(39723), + 69: uint16(39739), + 70: uint16(39766), + 71: uint16(39765), + 72: uint16(40006), + 73: uint16(40008), + 74: uint16(39999), + 75: uint16(40004), + 76: uint16(39993), + 77: uint16(39987), + 78: uint16(40001), + 79: uint16(39996), + 80: uint16(39991), + 81: uint16(39988), + 82: uint16(39986), + 83: uint16(39997), + 84: uint16(39990), + 85: uint16(40411), + 86: uint16(40402), + 87: uint16(40414), + 88: uint16(40410), + 89: uint16(40395), + 90: uint16(40400), + 91: uint16(40412), + 92: uint16(40401), + 93: uint16(40415), + 94: uint16(40425), + 95: uint16(40409), + 96: uint16(40408), + 97: uint16(40406), + 98: uint16(40437), + 99: uint16(40405), + 100: uint16(40413), + 101: uint16(40630), + 102: uint16(40688), + 103: uint16(40757), + 104: uint16(40755), + 105: uint16(40754), + 106: uint16(40770), + 107: uint16(40811), + 108: uint16(40853), + 109: uint16(40866), + 110: uint16(20797), + 111: uint16(21145), + 112: uint16(22760), + 113: uint16(22759), + 114: uint16(22898), + 115: uint16(23373), + 116: uint16(24024), + 117: uint16(34863), + 118: uint16(24399), + 119: uint16(25089), + 120: uint16(25091), + 121: uint16(25092), + 122: uint16(25897), + 123: uint16(25893), + 124: uint16(26006), + 125: uint16(26347), + 126: uint16(27409), + 127: uint16(27410), + 128: uint16(27407), + 129: uint16(27594), + 130: uint16(28763), + 131: uint16(28762), + 132: uint16(29218), + 133: uint16(29570), + 134: uint16(29569), + 135: uint16(29571), + 136: uint16(30320), + 137: uint16(30676), + 138: uint16(31847), + 139: uint16(31846), + 140: uint16(32405), + 141: uint16(33388), + 142: uint16(34362), + 143: uint16(34368), + 144: uint16(34361), + 145: uint16(34364), + 146: uint16(34353), + 147: uint16(34363), + 148: uint16(34366), + 149: uint16(34864), + 150: uint16(34866), + 151: uint16(34862), + 152: uint16(34867), + 153: uint16(35190), + 154: uint16(35188), + 155: uint16(35187), + 156: uint16(35326), + }, + 87: { + 0: uint16(35724), + 1: uint16(35726), + 2: uint16(35723), + 3: uint16(35720), + 4: uint16(35909), + 5: uint16(36121), + 6: uint16(36504), + 7: uint16(36708), + 8: uint16(36707), + 9: uint16(37308), + 10: uint16(37986), + 11: uint16(37973), + 12: uint16(37981), + 13: uint16(37975), + 14: uint16(37982), + 15: uint16(38852), + 16: uint16(38853), + 17: uint16(38912), + 18: uint16(39510), + 19: uint16(39513), + 20: uint16(39710), + 21: uint16(39711), + 22: uint16(39712), + 23: uint16(40018), + 24: uint16(40024), + 25: uint16(40016), + 26: uint16(40010), + 27: uint16(40013), + 28: uint16(40011), + 29: uint16(40021), + 30: uint16(40025), + 31: uint16(40012), + 32: uint16(40014), + 33: uint16(40443), + 34: uint16(40439), + 35: uint16(40431), + 36: uint16(40419), + 37: uint16(40427), + 38: uint16(40440), + 39: uint16(40420), + 40: uint16(40438), + 41: uint16(40417), + 42: uint16(40430), + 43: uint16(40422), + 44: uint16(40434), + 45: uint16(40432), + 46: uint16(40418), + 47: uint16(40428), + 48: uint16(40436), + 49: uint16(40435), + 50: uint16(40424), + 51: uint16(40429), + 52: uint16(40642), + 53: uint16(40656), + 54: uint16(40690), + 55: uint16(40691), + 56: uint16(40710), + 57: uint16(40732), + 58: uint16(40760), + 59: uint16(40759), + 60: uint16(40758), + 61: uint16(40771), + 62: uint16(40783), + 63: uint16(40817), + 64: uint16(40816), + 65: uint16(40814), + 66: uint16(40815), + 67: uint16(22227), + 68: uint16(22221), + 69: uint16(23374), + 70: uint16(23661), + 71: uint16(25901), + 72: uint16(26349), + 73: uint16(26350), + 74: uint16(27411), + 75: uint16(28767), + 76: uint16(28769), + 77: uint16(28765), + 78: uint16(28768), + 79: uint16(29219), + 80: uint16(29915), + 81: uint16(29925), + 82: uint16(30677), + 83: uint16(31032), + 84: uint16(31159), + 85: uint16(31158), + 86: uint16(31850), + 87: uint16(32407), + 88: uint16(32649), + 89: uint16(33389), + 90: uint16(34371), + 91: uint16(34872), + 92: uint16(34871), + 93: uint16(34869), + 94: uint16(34891), + 95: uint16(35732), + 96: uint16(35733), + 97: uint16(36510), + 98: uint16(36511), + 99: uint16(36512), + 100: uint16(36509), + 101: uint16(37310), + 102: uint16(37309), + 103: uint16(37314), + 104: uint16(37995), + 105: uint16(37992), + 106: uint16(37993), + 107: uint16(38629), + 108: uint16(38726), + 109: uint16(38723), + 110: uint16(38727), + 111: uint16(38855), + 112: uint16(38885), + 113: uint16(39518), + 114: uint16(39637), + 115: uint16(39769), + 116: uint16(40035), + 117: uint16(40039), + 118: uint16(40038), + 119: uint16(40034), + 120: uint16(40030), + 121: uint16(40032), + 122: uint16(40450), + 123: uint16(40446), + 124: uint16(40455), + 125: uint16(40451), + 126: uint16(40454), + 127: uint16(40453), + 128: uint16(40448), + 129: uint16(40449), + 130: uint16(40457), + 131: uint16(40447), + 132: uint16(40445), + 133: uint16(40452), + 134: uint16(40608), + 135: uint16(40734), + 136: uint16(40774), + 137: uint16(40820), + 138: uint16(40821), + 139: uint16(40822), + 140: uint16(22228), + 141: uint16(25902), + 142: uint16(26040), + 143: uint16(27416), + 144: uint16(27417), + 145: uint16(27415), + 146: uint16(27418), + 147: uint16(28770), + 148: uint16(29222), + 149: uint16(29354), + 150: uint16(30680), + 151: uint16(30681), + 152: uint16(31033), + 153: uint16(31849), + 154: uint16(31851), + 155: uint16(31990), + 156: uint16(32410), + }, + 88: { + 0: uint16(32408), + 1: uint16(32411), + 2: uint16(32409), + 3: uint16(33248), + 4: uint16(33249), + 5: uint16(34374), + 6: uint16(34375), + 7: uint16(34376), + 8: uint16(35193), + 9: uint16(35194), + 10: uint16(35196), + 11: uint16(35195), + 12: uint16(35327), + 13: uint16(35736), + 14: uint16(35737), + 15: uint16(36517), + 16: uint16(36516), + 17: uint16(36515), + 18: uint16(37998), + 19: uint16(37997), + 20: uint16(37999), + 21: uint16(38001), + 22: uint16(38003), + 23: uint16(38729), + 24: uint16(39026), + 25: uint16(39263), + 26: uint16(40040), + 27: uint16(40046), + 28: uint16(40045), + 29: uint16(40459), + 30: uint16(40461), + 31: uint16(40464), + 32: uint16(40463), + 33: uint16(40466), + 34: uint16(40465), + 35: uint16(40609), + 36: uint16(40693), + 37: uint16(40713), + 38: uint16(40775), + 39: uint16(40824), + 40: uint16(40827), + 41: uint16(40826), + 42: uint16(40825), + 43: uint16(22302), + 44: uint16(28774), + 45: uint16(31855), + 46: uint16(34876), + 47: uint16(36274), + 48: uint16(36518), + 49: uint16(37315), + 50: uint16(38004), + 51: uint16(38008), + 52: uint16(38006), + 53: uint16(38005), + 54: uint16(39520), + 55: uint16(40052), + 56: uint16(40051), + 57: uint16(40049), + 58: uint16(40053), + 59: uint16(40468), + 60: uint16(40467), + 61: uint16(40694), + 62: uint16(40714), + 63: uint16(40868), + 64: uint16(28776), + 65: uint16(28773), + 66: uint16(31991), + 67: uint16(34410), + 68: uint16(34878), + 69: uint16(34877), + 70: uint16(34879), + 71: uint16(35742), + 72: uint16(35996), + 73: uint16(36521), + 74: uint16(36553), + 75: uint16(38731), + 76: uint16(39027), + 77: uint16(39028), + 78: uint16(39116), + 79: uint16(39265), + 80: uint16(39339), + 81: uint16(39524), + 82: uint16(39526), + 83: uint16(39527), + 84: uint16(39716), + 85: uint16(40469), + 86: uint16(40471), + 87: uint16(40776), + 88: uint16(25095), + 89: uint16(27422), + 90: uint16(29223), + 91: uint16(34380), + 92: uint16(36520), + 93: uint16(38018), + 94: uint16(38016), + 95: uint16(38017), + 96: uint16(39529), + 97: uint16(39528), + 98: uint16(39726), + 99: uint16(40473), + 100: uint16(29225), + 101: uint16(34379), + 102: uint16(35743), + 103: uint16(38019), + 104: uint16(40057), + 105: uint16(40631), + 106: uint16(30325), + 107: uint16(39531), + 108: uint16(40058), + 109: uint16(40477), + 110: uint16(28777), + 111: uint16(28778), + 112: uint16(40612), + 113: uint16(40830), + 114: uint16(40777), + 115: uint16(40856), + 116: uint16(30849), + 117: uint16(37561), + 118: uint16(35023), + 119: uint16(22715), + 120: uint16(24658), + 121: uint16(31911), + 122: uint16(23290), + 123: uint16(9556), + 124: uint16(9574), + 125: uint16(9559), + 126: uint16(9568), + 127: uint16(9580), + 128: uint16(9571), + 129: uint16(9562), + 130: uint16(9577), + 131: uint16(9565), + 132: uint16(9554), + 133: uint16(9572), + 134: uint16(9557), + 135: uint16(9566), + 136: uint16(9578), + 137: uint16(9569), + 138: uint16(9560), + 139: uint16(9575), + 140: uint16(9563), + 141: uint16(9555), + 142: uint16(9573), + 143: uint16(9558), + 144: uint16(9567), + 145: uint16(9579), + 146: uint16(9570), + 147: uint16(9561), + 148: uint16(9576), + 149: uint16(9564), + 150: uint16(9553), + 151: uint16(9552), + 152: uint16(9581), + 153: uint16(9582), + 154: uint16(9584), + 155: uint16(9583), + 156: uint16(9619), + }, +} + +var _hkscs = [5172]uint16{ + 0: uint16(17392), + 1: uint16(19506), + 2: uint16(17923), + 3: uint16(17830), + 4: uint16(17784), + 5: uint16(29287), + 6: uint16(19831), + 7: uint16(17843), + 8: uint16(31921), + 9: uint16(19682), + 10: uint16(31941), + 11: uint16(15253), + 12: uint16(18230), + 13: uint16(18244), + 14: uint16(19527), + 15: uint16(19520), + 16: uint16(17087), + 17: uint16(13847), + 18: uint16(29522), + 19: uint16(28299), + 20: uint16(28882), + 21: uint16(19543), + 22: uint16(41809), + 23: uint16(18255), + 24: uint16(17882), + 25: uint16(19589), + 26: uint16(31852), + 27: uint16(19719), + 28: uint16(19108), + 29: uint16(18081), + 30: uint16(27427), + 31: uint16(29221), + 32: uint16(23124), + 33: uint16(6755), + 34: uint16(15878), + 35: uint16(16225), + 36: uint16(26189), + 37: uint16(22267), + 39: uint16(32149), + 40: uint16(22813), + 41: uint16(35769), + 42: uint16(15860), + 43: uint16(38708), + 44: uint16(31727), + 45: uint16(23515), + 46: uint16(7518), + 47: uint16(23204), + 48: uint16(13861), + 49: uint16(40624), + 50: uint16(23249), + 51: uint16(23479), + 52: uint16(23804), + 53: uint16(26478), + 54: uint16(34195), + 55: uint16(39237), + 56: uint16(29793), + 57: uint16(29853), + 58: uint16(14453), + 59: uint16(7507), + 60: uint16(13982), + 61: uint16(24609), + 62: uint16(16108), + 63: uint16(22750), + 64: uint16(15093), + 65: uint16(31484), + 66: uint16(40855), + 67: uint16(16737), + 68: uint16(35085), + 69: uint16(12778), + 70: uint16(2698), + 71: uint16(12894), + 72: uint16(17162), + 73: uint16(33924), + 74: uint16(40854), + 75: uint16(37935), + 76: uint16(18736), + 77: uint16(34323), + 78: uint16(22678), + 79: uint16(38730), + 80: uint16(37400), + 81: uint16(31184), + 82: uint16(31282), + 83: uint16(26208), + 84: uint16(27177), + 85: uint16(34973), + 86: uint16(29772), + 87: uint16(31685), + 88: uint16(26498), + 89: uint16(31276), + 90: uint16(21071), + 91: uint16(36934), + 92: uint16(13542), + 93: uint16(29636), + 94: uint16(23993), + 95: uint16(29894), + 96: uint16(40903), + 97: uint16(22451), + 98: uint16(18735), + 99: uint16(21580), + 100: uint16(16689), + 101: uint16(13966), + 102: uint16(22552), + 103: uint16(31346), + 104: uint16(31589), + 105: uint16(35727), + 106: uint16(18094), + 107: uint16(28296), + 108: uint16(16769), + 109: uint16(23961), + 110: uint16(31662), + 111: uint16(9404), + 112: uint16(40904), + 113: uint16(9409), + 114: uint16(9417), + 115: uint16(9420), + 116: uint16(40905), + 117: uint16(34052), + 118: uint16(13755), + 119: uint16(16564), + 120: uint16(40906), + 121: uint16(17633), + 122: uint16(44543), + 123: uint16(25281), + 124: uint16(28782), + 125: uint16(40907), + 157: uint16(12736), + 158: uint16(12737), + 159: uint16(12738), + 160: uint16(12739), + 161: uint16(12740), + 162: uint16(268), + 163: uint16(12741), + 164: uint16(209), + 165: uint16(205), + 166: uint16(12742), + 167: uint16(12743), + 168: uint16(203), + 169: uint16(8168), + 170: uint16(12744), + 171: uint16(202), + 172: uint16(12745), + 173: uint16(12746), + 174: uint16(12747), + 175: uint16(12748), + 176: uint16(270), + 177: uint16(12749), + 178: uint16(12750), + 179: uint16(256), + 180: uint16(193), + 181: uint16(461), + 182: uint16(192), + 183: uint16(274), + 184: uint16(201), + 185: uint16(282), + 186: uint16(200), + 187: uint16(332), + 188: uint16(211), + 189: uint16(465), + 190: uint16(210), + 191: uint16(56320), + 192: uint16(7870), + 193: uint16(56324), + 194: uint16(7872), + 195: uint16(202), + 196: uint16(257), + 197: uint16(225), + 198: uint16(462), + 199: uint16(224), + 200: uint16(593), + 201: uint16(275), + 202: uint16(233), + 203: uint16(283), + 204: uint16(232), + 205: uint16(299), + 206: uint16(237), + 207: uint16(464), + 208: uint16(236), + 209: uint16(333), + 210: uint16(243), + 211: uint16(466), + 212: uint16(242), + 213: uint16(363), + 214: uint16(250), + 215: uint16(468), + 216: uint16(249), + 217: uint16(470), + 218: uint16(472), + 219: uint16(474), + 220: uint16(476), + 221: uint16(252), + 222: uint16(56328), + 223: uint16(7871), + 224: uint16(56332), + 225: uint16(7873), + 226: uint16(234), + 227: uint16(609), + 228: uint16(9178), + 229: uint16(9179), + 314: uint16(41897), + 315: uint16(4421), + 317: uint16(25866), + 320: uint16(20029), + 321: uint16(28381), + 322: uint16(40270), + 323: uint16(37343), + 326: uint16(30517), + 327: uint16(25745), + 328: uint16(20250), + 329: uint16(20264), + 330: uint16(20392), + 331: uint16(20822), + 332: uint16(20852), + 333: uint16(20892), + 334: uint16(20964), + 335: uint16(21153), + 336: uint16(21160), + 337: uint16(21307), + 338: uint16(21326), + 339: uint16(21457), + 340: uint16(21464), + 341: uint16(22242), + 342: uint16(22768), + 343: uint16(22788), + 344: uint16(22791), + 345: uint16(22834), + 346: uint16(22836), + 347: uint16(23398), + 348: uint16(23454), + 349: uint16(23455), + 350: uint16(23706), + 351: uint16(24198), + 352: uint16(24635), + 353: uint16(25993), + 354: uint16(26622), + 355: uint16(26628), + 356: uint16(26725), + 357: uint16(27982), + 358: uint16(28860), + 359: uint16(30005), + 360: uint16(32420), + 361: uint16(32428), + 362: uint16(32442), + 363: uint16(32455), + 364: uint16(32463), + 365: uint16(32479), + 366: uint16(32518), + 367: uint16(32567), + 368: uint16(33402), + 369: uint16(33487), + 370: uint16(33647), + 371: uint16(35270), + 372: uint16(35774), + 373: uint16(35810), + 374: uint16(36710), + 375: uint16(36711), + 376: uint16(36718), + 377: uint16(29713), + 378: uint16(31996), + 379: uint16(32205), + 380: uint16(26950), + 381: uint16(31433), + 382: uint16(21031), + 387: uint16(37260), + 388: uint16(30904), + 389: uint16(37214), + 390: uint16(32956), + 392: uint16(36107), + 393: uint16(33014), + 394: uint16(2535), + 397: uint16(32927), + 398: uint16(40647), + 399: uint16(19661), + 400: uint16(40393), + 401: uint16(40460), + 402: uint16(19518), + 403: uint16(40438), + 404: uint16(28686), + 405: uint16(40458), + 406: uint16(41267), + 407: uint16(13761), + 409: uint16(28314), + 410: uint16(33342), + 411: uint16(29977), + 413: uint16(18705), + 414: uint16(39532), + 415: uint16(39567), + 416: uint16(40857), + 417: uint16(31111), + 418: uint16(33900), + 419: uint16(7626), + 420: uint16(1488), + 421: uint16(10982), + 422: uint16(20004), + 423: uint16(20097), + 424: uint16(20096), + 425: uint16(20103), + 426: uint16(20159), + 427: uint16(20203), + 428: uint16(20279), + 429: uint16(13388), + 430: uint16(20413), + 431: uint16(15944), + 432: uint16(20483), + 433: uint16(20616), + 434: uint16(13437), + 435: uint16(13459), + 436: uint16(13477), + 437: uint16(20870), + 438: uint16(22789), + 439: uint16(20955), + 440: uint16(20988), + 441: uint16(20997), + 442: uint16(20105), + 443: uint16(21113), + 444: uint16(21136), + 445: uint16(21287), + 446: uint16(13767), + 447: uint16(21417), + 448: uint16(13649), + 449: uint16(21424), + 450: uint16(13651), + 451: uint16(21442), + 452: uint16(21539), + 453: uint16(13677), + 454: uint16(13682), + 455: uint16(13953), + 456: uint16(21651), + 457: uint16(21667), + 458: uint16(21684), + 459: uint16(21689), + 460: uint16(21712), + 461: uint16(21743), + 462: uint16(21784), + 463: uint16(21795), + 464: uint16(21800), + 465: uint16(13720), + 466: uint16(21823), + 467: uint16(13733), + 468: uint16(13759), + 469: uint16(21975), + 470: uint16(13765), + 471: uint16(32132), + 472: uint16(21797), + 474: uint16(3138), + 475: uint16(3349), + 476: uint16(20779), + 477: uint16(21904), + 478: uint16(11462), + 479: uint16(14828), + 480: uint16(833), + 481: uint16(36422), + 482: uint16(19896), + 483: uint16(38117), + 484: uint16(16467), + 485: uint16(32958), + 486: uint16(30586), + 487: uint16(11320), + 488: uint16(14900), + 489: uint16(18389), + 490: uint16(33117), + 491: uint16(27122), + 492: uint16(19946), + 493: uint16(25821), + 494: uint16(3452), + 495: uint16(4020), + 496: uint16(3285), + 497: uint16(4340), + 498: uint16(25741), + 499: uint16(36478), + 500: uint16(3734), + 501: uint16(3083), + 502: uint16(3940), + 503: uint16(11433), + 504: uint16(33366), + 505: uint16(17619), + 507: uint16(3398), + 508: uint16(39501), + 509: uint16(33001), + 510: uint16(18420), + 511: uint16(20135), + 512: uint16(11458), + 513: uint16(39602), + 514: uint16(14951), + 515: uint16(38388), + 516: uint16(16365), + 517: uint16(13574), + 518: uint16(21191), + 519: uint16(38868), + 520: uint16(30920), + 521: uint16(11588), + 522: uint16(40302), + 523: uint16(38933), + 525: uint16(17369), + 526: uint16(24741), + 527: uint16(25780), + 528: uint16(21731), + 529: uint16(11596), + 530: uint16(11210), + 531: uint16(4215), + 532: uint16(14843), + 533: uint16(4207), + 534: uint16(26330), + 535: uint16(26390), + 536: uint16(31136), + 537: uint16(25834), + 538: uint16(20562), + 539: uint16(3139), + 540: uint16(36456), + 541: uint16(8609), + 542: uint16(35660), + 543: uint16(1841), + 545: uint16(18443), + 546: uint16(425), + 547: uint16(16378), + 548: uint16(22643), + 549: uint16(11661), + 551: uint16(17864), + 552: uint16(1276), + 553: uint16(24727), + 554: uint16(3916), + 555: uint16(3478), + 556: uint16(21881), + 557: uint16(16571), + 558: uint16(17338), + 560: uint16(19124), + 561: uint16(10854), + 562: uint16(4253), + 563: uint16(33194), + 564: uint16(39157), + 565: uint16(3484), + 566: uint16(25465), + 567: uint16(14846), + 568: uint16(10101), + 569: uint16(36288), + 570: uint16(22177), + 571: uint16(25724), + 572: uint16(15939), + 574: uint16(42497), + 575: uint16(3593), + 576: uint16(10959), + 577: uint16(11465), + 579: uint16(4296), + 580: uint16(14786), + 581: uint16(14738), + 582: uint16(14854), + 583: uint16(33435), + 584: uint16(13688), + 585: uint16(24137), + 586: uint16(8391), + 587: uint16(22098), + 588: uint16(3889), + 589: uint16(11442), + 590: uint16(38688), + 591: uint16(13500), + 592: uint16(27709), + 593: uint16(20027), + 596: uint16(30068), + 597: uint16(11915), + 598: uint16(8712), + 599: uint16(42587), + 600: uint16(36045), + 601: uint16(3706), + 602: uint16(3124), + 603: uint16(26652), + 604: uint16(32659), + 605: uint16(4303), + 606: uint16(10243), + 607: uint16(10553), + 608: uint16(13819), + 609: uint16(20963), + 610: uint16(3724), + 611: uint16(3981), + 612: uint16(3754), + 613: uint16(16275), + 614: uint16(3888), + 615: uint16(3399), + 616: uint16(4431), + 617: uint16(3660), + 619: uint16(3755), + 620: uint16(2985), + 621: uint16(3400), + 622: uint16(4288), + 623: uint16(4413), + 624: uint16(16377), + 625: uint16(9878), + 626: uint16(25650), + 627: uint16(4013), + 628: uint16(13300), + 629: uint16(30265), + 630: uint16(11214), + 631: uint16(3454), + 632: uint16(3455), + 633: uint16(11345), + 634: uint16(11349), + 635: uint16(14872), + 636: uint16(3736), + 637: uint16(4295), + 638: uint16(3886), + 639: uint16(42546), + 640: uint16(27472), + 641: uint16(36050), + 642: uint16(36249), + 643: uint16(36042), + 644: uint16(38314), + 645: uint16(21708), + 646: uint16(33476), + 647: uint16(21945), + 649: uint16(40643), + 650: uint16(39974), + 651: uint16(39606), + 652: uint16(30558), + 653: uint16(11758), + 654: uint16(28992), + 655: uint16(33133), + 656: uint16(33004), + 657: uint16(23580), + 658: uint16(25970), + 659: uint16(33076), + 660: uint16(14231), + 661: uint16(21343), + 662: uint16(32957), + 663: uint16(37302), + 664: uint16(3834), + 665: uint16(3599), + 666: uint16(3703), + 667: uint16(3835), + 668: uint16(13789), + 669: uint16(19947), + 670: uint16(13833), + 671: uint16(3286), + 672: uint16(22191), + 673: uint16(10165), + 674: uint16(4297), + 675: uint16(3600), + 676: uint16(3704), + 677: uint16(4216), + 678: uint16(4424), + 679: uint16(33287), + 680: uint16(5205), + 681: uint16(3705), + 682: uint16(20048), + 683: uint16(11684), + 684: uint16(23124), + 685: uint16(4125), + 686: uint16(4126), + 687: uint16(4341), + 688: uint16(4342), + 689: uint16(22428), + 690: uint16(3601), + 691: uint16(30356), + 692: uint16(33485), + 693: uint16(4021), + 694: uint16(3707), + 695: uint16(20862), + 696: uint16(14083), + 697: uint16(4022), + 698: uint16(4480), + 699: uint16(21208), + 700: uint16(41661), + 701: uint16(18906), + 702: uint16(6202), + 703: uint16(16759), + 704: uint16(33404), + 705: uint16(22681), + 706: uint16(21096), + 707: uint16(13850), + 708: uint16(22333), + 709: uint16(31666), + 710: uint16(23400), + 711: uint16(18432), + 712: uint16(19244), + 713: uint16(40743), + 714: uint16(18919), + 715: uint16(39967), + 716: uint16(39821), + 717: uint16(23412), + 718: uint16(12605), + 719: uint16(22011), + 720: uint16(13810), + 721: uint16(22153), + 722: uint16(20008), + 723: uint16(22786), + 724: uint16(7105), + 725: uint16(63608), + 726: uint16(38737), + 727: uint16(134), + 728: uint16(20059), + 729: uint16(20155), + 730: uint16(13630), + 731: uint16(23587), + 732: uint16(24401), + 733: uint16(24516), + 734: uint16(14586), + 735: uint16(25164), + 736: uint16(25909), + 737: uint16(27514), + 738: uint16(27701), + 739: uint16(27706), + 740: uint16(28780), + 741: uint16(29227), + 742: uint16(20012), + 743: uint16(29357), + 744: uint16(18665), + 745: uint16(32594), + 746: uint16(31035), + 747: uint16(31993), + 748: uint16(32595), + 749: uint16(25194), + 750: uint16(13505), + 752: uint16(25419), + 753: uint16(32770), + 754: uint16(32896), + 755: uint16(26130), + 756: uint16(26961), + 757: uint16(21341), + 758: uint16(34916), + 759: uint16(35265), + 760: uint16(30898), + 761: uint16(35744), + 762: uint16(36125), + 763: uint16(38021), + 764: uint16(38264), + 765: uint16(38271), + 766: uint16(38376), + 767: uint16(36367), + 768: uint16(38886), + 769: uint16(39029), + 770: uint16(39118), + 771: uint16(39134), + 772: uint16(39267), + 773: uint16(38928), + 774: uint16(40060), + 775: uint16(40479), + 776: uint16(40644), + 777: uint16(27503), + 778: uint16(63751), + 779: uint16(20023), + 780: uint16(135), + 781: uint16(38429), + 782: uint16(25143), + 783: uint16(38050), + 785: uint16(20539), + 786: uint16(28158), + 787: uint16(40051), + 788: uint16(40870), + 789: uint16(15817), + 790: uint16(34959), + 791: uint16(16718), + 792: uint16(28791), + 793: uint16(23797), + 794: uint16(19232), + 795: uint16(20941), + 796: uint16(13657), + 797: uint16(23856), + 798: uint16(24866), + 799: uint16(35378), + 800: uint16(36775), + 801: uint16(37366), + 802: uint16(29073), + 803: uint16(26393), + 804: uint16(29626), + 805: uint16(12929), + 806: uint16(41223), + 807: uint16(15499), + 808: uint16(6528), + 809: uint16(19216), + 810: uint16(30948), + 811: uint16(29698), + 812: uint16(20910), + 813: uint16(34575), + 814: uint16(16393), + 815: uint16(27235), + 816: uint16(41658), + 817: uint16(16931), + 818: uint16(34319), + 819: uint16(2671), + 820: uint16(31274), + 821: uint16(39239), + 822: uint16(35562), + 823: uint16(38741), + 824: uint16(28749), + 825: uint16(21284), + 826: uint16(8318), + 827: uint16(37876), + 828: uint16(30425), + 829: uint16(35299), + 830: uint16(40871), + 831: uint16(30685), + 832: uint16(20131), + 833: uint16(20464), + 834: uint16(20668), + 835: uint16(20015), + 836: uint16(20247), + 837: uint16(40872), + 838: uint16(21556), + 839: uint16(32139), + 840: uint16(22674), + 841: uint16(22736), + 842: uint16(7606), + 843: uint16(24210), + 844: uint16(24217), + 845: uint16(24514), + 846: uint16(10002), + 847: uint16(25995), + 848: uint16(13305), + 849: uint16(26905), + 850: uint16(27203), + 851: uint16(15459), + 852: uint16(27903), + 854: uint16(29184), + 855: uint16(17669), + 856: uint16(29580), + 857: uint16(16091), + 858: uint16(18963), + 859: uint16(23317), + 860: uint16(29881), + 861: uint16(35715), + 862: uint16(23716), + 863: uint16(22165), + 864: uint16(31379), + 865: uint16(31724), + 866: uint16(31939), + 867: uint16(32364), + 868: uint16(33528), + 869: uint16(34199), + 870: uint16(40873), + 871: uint16(34960), + 872: uint16(40874), + 873: uint16(36537), + 874: uint16(40875), + 875: uint16(36815), + 876: uint16(34143), + 877: uint16(39392), + 878: uint16(37409), + 879: uint16(40876), + 880: uint16(36281), + 881: uint16(5183), + 882: uint16(16497), + 883: uint16(17058), + 884: uint16(23066), + 888: uint16(39016), + 889: uint16(26475), + 890: uint16(17014), + 891: uint16(22333), + 893: uint16(34262), + 894: uint16(18811), + 895: uint16(33471), + 896: uint16(28941), + 897: uint16(19585), + 898: uint16(28020), + 899: uint16(23931), + 900: uint16(27413), + 901: uint16(28606), + 902: uint16(40877), + 903: uint16(40878), + 904: uint16(23446), + 905: uint16(40879), + 906: uint16(26343), + 907: uint16(32347), + 908: uint16(28247), + 909: uint16(31178), + 910: uint16(15752), + 911: uint16(17603), + 912: uint16(12886), + 913: uint16(10134), + 914: uint16(17306), + 915: uint16(17718), + 917: uint16(23765), + 918: uint16(15130), + 919: uint16(35577), + 920: uint16(23672), + 921: uint16(15634), + 922: uint16(13649), + 923: uint16(23928), + 924: uint16(40882), + 925: uint16(29015), + 926: uint16(17752), + 927: uint16(16620), + 928: uint16(7715), + 929: uint16(19575), + 930: uint16(14712), + 931: uint16(13386), + 932: uint16(420), + 933: uint16(27713), + 934: uint16(35532), + 935: uint16(20404), + 936: uint16(569), + 937: uint16(22975), + 938: uint16(33132), + 939: uint16(38998), + 940: uint16(39162), + 941: uint16(24379), + 942: uint16(2975), + 944: uint16(8641), + 945: uint16(35181), + 946: uint16(16642), + 947: uint16(18107), + 948: uint16(36985), + 949: uint16(16135), + 950: uint16(40883), + 951: uint16(41397), + 952: uint16(16632), + 953: uint16(14294), + 954: uint16(18167), + 955: uint16(27718), + 956: uint16(16764), + 957: uint16(34482), + 958: uint16(29695), + 959: uint16(17773), + 960: uint16(14548), + 961: uint16(21658), + 962: uint16(17761), + 963: uint16(17691), + 964: uint16(19849), + 965: uint16(19579), + 966: uint16(19830), + 967: uint16(17898), + 968: uint16(16328), + 969: uint16(19215), + 970: uint16(13921), + 971: uint16(17630), + 972: uint16(17597), + 973: uint16(16877), + 974: uint16(23870), + 975: uint16(23880), + 976: uint16(23894), + 977: uint16(15868), + 978: uint16(14351), + 979: uint16(23972), + 980: uint16(23993), + 981: uint16(14368), + 982: uint16(14392), + 983: uint16(24130), + 984: uint16(24253), + 985: uint16(24357), + 986: uint16(24451), + 987: uint16(14600), + 988: uint16(14612), + 989: uint16(14655), + 990: uint16(14669), + 991: uint16(24791), + 992: uint16(24893), + 993: uint16(23781), + 994: uint16(14729), + 995: uint16(25015), + 996: uint16(25017), + 997: uint16(25039), + 998: uint16(14776), + 999: uint16(25132), + 1000: uint16(25232), + 1001: uint16(25317), + 1002: uint16(25368), + 1003: uint16(14840), + 1004: uint16(22193), + 1005: uint16(14851), + 1006: uint16(25570), + 1007: uint16(25595), + 1008: uint16(25607), + 1009: uint16(25690), + 1010: uint16(14923), + 1011: uint16(25792), + 1012: uint16(23829), + 1013: uint16(22049), + 1014: uint16(40863), + 1015: uint16(14999), + 1016: uint16(25990), + 1017: uint16(15037), + 1018: uint16(26111), + 1019: uint16(26195), + 1020: uint16(15090), + 1021: uint16(26258), + 1022: uint16(15138), + 1023: uint16(26390), + 1024: uint16(15170), + 1025: uint16(26532), + 1026: uint16(26624), + 1027: uint16(15192), + 1028: uint16(26698), + 1029: uint16(26756), + 1030: uint16(15218), + 1031: uint16(15217), + 1032: uint16(15227), + 1033: uint16(26889), + 1034: uint16(26947), + 1035: uint16(29276), + 1036: uint16(26980), + 1037: uint16(27039), + 1038: uint16(27013), + 1039: uint16(15292), + 1040: uint16(27094), + 1041: uint16(15325), + 1042: uint16(27237), + 1043: uint16(27252), + 1044: uint16(27249), + 1045: uint16(27266), + 1046: uint16(15340), + 1047: uint16(27289), + 1048: uint16(15346), + 1049: uint16(27307), + 1050: uint16(27317), + 1051: uint16(27348), + 1052: uint16(27382), + 1053: uint16(27521), + 1054: uint16(27585), + 1055: uint16(27626), + 1056: uint16(27765), + 1057: uint16(27818), + 1058: uint16(15563), + 1059: uint16(27906), + 1060: uint16(27910), + 1061: uint16(27942), + 1062: uint16(28033), + 1063: uint16(15599), + 1064: uint16(28068), + 1065: uint16(28081), + 1066: uint16(28181), + 1067: uint16(28184), + 1068: uint16(28201), + 1069: uint16(28294), + 1070: uint16(35264), + 1071: uint16(28347), + 1072: uint16(28386), + 1073: uint16(28378), + 1074: uint16(40831), + 1075: uint16(28392), + 1076: uint16(28393), + 1077: uint16(28452), + 1078: uint16(28468), + 1079: uint16(15686), + 1080: uint16(16193), + 1081: uint16(28545), + 1082: uint16(28606), + 1083: uint16(15722), + 1084: uint16(15733), + 1085: uint16(29111), + 1086: uint16(23705), + 1087: uint16(15754), + 1088: uint16(28716), + 1089: uint16(15761), + 1090: uint16(28752), + 1091: uint16(28756), + 1092: uint16(28783), + 1093: uint16(28799), + 1094: uint16(28809), + 1095: uint16(805), + 1096: uint16(17345), + 1097: uint16(13809), + 1098: uint16(3800), + 1099: uint16(16087), + 1100: uint16(22462), + 1101: uint16(28371), + 1102: uint16(28990), + 1103: uint16(22496), + 1104: uint16(13902), + 1105: uint16(27042), + 1106: uint16(35817), + 1107: uint16(23412), + 1108: uint16(31305), + 1109: uint16(22753), + 1110: uint16(38105), + 1111: uint16(31333), + 1112: uint16(31357), + 1113: uint16(22956), + 1114: uint16(31419), + 1115: uint16(31408), + 1116: uint16(31426), + 1117: uint16(31427), + 1118: uint16(29137), + 1119: uint16(25741), + 1120: uint16(16842), + 1121: uint16(31450), + 1122: uint16(31453), + 1123: uint16(31466), + 1124: uint16(16879), + 1125: uint16(21682), + 1126: uint16(23553), + 1127: uint16(31499), + 1128: uint16(31573), + 1129: uint16(31529), + 1130: uint16(21262), + 1131: uint16(23806), + 1132: uint16(31650), + 1133: uint16(31599), + 1134: uint16(33692), + 1135: uint16(23476), + 1136: uint16(27775), + 1137: uint16(31696), + 1138: uint16(33825), + 1139: uint16(31634), + 1141: uint16(23840), + 1142: uint16(15789), + 1143: uint16(23653), + 1144: uint16(33938), + 1145: uint16(31738), + 1147: uint16(31797), + 1148: uint16(23745), + 1149: uint16(31812), + 1150: uint16(31875), + 1151: uint16(18562), + 1152: uint16(31910), + 1153: uint16(26237), + 1154: uint16(17784), + 1155: uint16(31945), + 1156: uint16(31943), + 1157: uint16(31974), + 1158: uint16(31860), + 1159: uint16(31987), + 1160: uint16(31989), + 1162: uint16(32359), + 1163: uint16(17693), + 1164: uint16(28228), + 1165: uint16(32093), + 1166: uint16(28374), + 1167: uint16(29837), + 1168: uint16(32137), + 1169: uint16(32171), + 1170: uint16(28981), + 1171: uint16(32179), + 1173: uint16(16471), + 1174: uint16(24617), + 1175: uint16(32228), + 1176: uint16(15635), + 1177: uint16(32245), + 1178: uint16(6137), + 1179: uint16(32229), + 1180: uint16(33645), + 1182: uint16(24865), + 1183: uint16(24922), + 1184: uint16(32366), + 1185: uint16(32402), + 1186: uint16(17195), + 1187: uint16(37996), + 1188: uint16(32295), + 1189: uint16(32576), + 1190: uint16(32577), + 1191: uint16(32583), + 1192: uint16(31030), + 1193: uint16(25296), + 1194: uint16(39393), + 1195: uint16(32663), + 1196: uint16(25425), + 1197: uint16(32675), + 1198: uint16(5729), + 1199: uint16(104), + 1200: uint16(17756), + 1201: uint16(14182), + 1202: uint16(17667), + 1203: uint16(33594), + 1204: uint16(32762), + 1205: uint16(25737), + 1207: uint16(32776), + 1208: uint16(32797), + 1210: uint16(32815), + 1211: uint16(41095), + 1212: uint16(27843), + 1213: uint16(32827), + 1214: uint16(32828), + 1215: uint16(32865), + 1216: uint16(10004), + 1217: uint16(18825), + 1218: uint16(26150), + 1219: uint16(15843), + 1220: uint16(26344), + 1221: uint16(26405), + 1222: uint16(32935), + 1223: uint16(35400), + 1224: uint16(33031), + 1225: uint16(33050), + 1226: uint16(22704), + 1227: uint16(9974), + 1228: uint16(27775), + 1229: uint16(25752), + 1230: uint16(20408), + 1231: uint16(25831), + 1232: uint16(5258), + 1233: uint16(33304), + 1234: uint16(6238), + 1235: uint16(27219), + 1236: uint16(19045), + 1237: uint16(19093), + 1238: uint16(17530), + 1239: uint16(33321), + 1240: uint16(2829), + 1241: uint16(27218), + 1242: uint16(15742), + 1243: uint16(20473), + 1244: uint16(5373), + 1245: uint16(34018), + 1246: uint16(33634), + 1247: uint16(27402), + 1248: uint16(18855), + 1249: uint16(13616), + 1250: uint16(6003), + 1251: uint16(15864), + 1252: uint16(33450), + 1253: uint16(26907), + 1254: uint16(63892), + 1255: uint16(16859), + 1256: uint16(34123), + 1257: uint16(33488), + 1258: uint16(33562), + 1259: uint16(3606), + 1260: uint16(6068), + 1261: uint16(14017), + 1262: uint16(12669), + 1263: uint16(13658), + 1264: uint16(33403), + 1265: uint16(33506), + 1266: uint16(33560), + 1267: uint16(16011), + 1268: uint16(28067), + 1269: uint16(27397), + 1270: uint16(27543), + 1271: uint16(13774), + 1272: uint16(15807), + 1273: uint16(33565), + 1274: uint16(21996), + 1275: uint16(33669), + 1276: uint16(17675), + 1277: uint16(28069), + 1278: uint16(33708), + 1280: uint16(33747), + 1281: uint16(13438), + 1282: uint16(28372), + 1283: uint16(27223), + 1284: uint16(34138), + 1285: uint16(13462), + 1286: uint16(28226), + 1287: uint16(12015), + 1288: uint16(33880), + 1289: uint16(23524), + 1290: uint16(33905), + 1291: uint16(15827), + 1292: uint16(17636), + 1293: uint16(27303), + 1294: uint16(33866), + 1295: uint16(15541), + 1296: uint16(31064), + 1298: uint16(27542), + 1299: uint16(28279), + 1300: uint16(28227), + 1301: uint16(34014), + 1303: uint16(33681), + 1304: uint16(17568), + 1305: uint16(33939), + 1306: uint16(34020), + 1307: uint16(23697), + 1308: uint16(16960), + 1309: uint16(23744), + 1310: uint16(17731), + 1311: uint16(34100), + 1312: uint16(23282), + 1313: uint16(28313), + 1314: uint16(17703), + 1315: uint16(34163), + 1316: uint16(17686), + 1317: uint16(26559), + 1318: uint16(34326), + 1319: uint16(34341), + 1320: uint16(34363), + 1321: uint16(34241), + 1322: uint16(28808), + 1323: uint16(34306), + 1324: uint16(5506), + 1325: uint16(28877), + 1326: uint16(63922), + 1327: uint16(17770), + 1328: uint16(34344), + 1329: uint16(13896), + 1330: uint16(6306), + 1331: uint16(21495), + 1332: uint16(29594), + 1333: uint16(34430), + 1334: uint16(34673), + 1335: uint16(41208), + 1336: uint16(34798), + 1337: uint16(11303), + 1338: uint16(34737), + 1339: uint16(34778), + 1340: uint16(34831), + 1341: uint16(22113), + 1342: uint16(34412), + 1343: uint16(26710), + 1344: uint16(17935), + 1345: uint16(34885), + 1346: uint16(34886), + 1347: uint16(30176), + 1348: uint16(15801), + 1349: uint16(30180), + 1350: uint16(34910), + 1351: uint16(34972), + 1352: uint16(18011), + 1353: uint16(34996), + 1354: uint16(34997), + 1355: uint16(25537), + 1356: uint16(35013), + 1357: uint16(30583), + 1358: uint16(30479), + 1359: uint16(35207), + 1360: uint16(35210), + 1363: uint16(35239), + 1364: uint16(35260), + 1365: uint16(35365), + 1366: uint16(35303), + 1367: uint16(31012), + 1368: uint16(31421), + 1369: uint16(35484), + 1370: uint16(30611), + 1371: uint16(37374), + 1372: uint16(35472), + 1373: uint16(31321), + 1374: uint16(31465), + 1375: uint16(31546), + 1376: uint16(16271), + 1377: uint16(18195), + 1378: uint16(31544), + 1379: uint16(29052), + 1380: uint16(35596), + 1381: uint16(35615), + 1382: uint16(21552), + 1383: uint16(21861), + 1384: uint16(35647), + 1385: uint16(35660), + 1386: uint16(35661), + 1387: uint16(35497), + 1388: uint16(19066), + 1389: uint16(35728), + 1390: uint16(35739), + 1391: uint16(35503), + 1392: uint16(5855), + 1393: uint16(17941), + 1394: uint16(34895), + 1395: uint16(35995), + 1396: uint16(32084), + 1397: uint16(32143), + 1398: uint16(63956), + 1399: uint16(14117), + 1400: uint16(32083), + 1401: uint16(36054), + 1402: uint16(32152), + 1403: uint16(32189), + 1404: uint16(36114), + 1405: uint16(36099), + 1406: uint16(6416), + 1407: uint16(36059), + 1408: uint16(28764), + 1409: uint16(36113), + 1410: uint16(19657), + 1411: uint16(16080), + 1413: uint16(36265), + 1414: uint16(32770), + 1415: uint16(4116), + 1416: uint16(18826), + 1417: uint16(15228), + 1418: uint16(33212), + 1419: uint16(28940), + 1420: uint16(31463), + 1421: uint16(36525), + 1422: uint16(36534), + 1423: uint16(36547), + 1424: uint16(37588), + 1425: uint16(36633), + 1426: uint16(36653), + 1427: uint16(33637), + 1428: uint16(33810), + 1429: uint16(36773), + 1430: uint16(37635), + 1431: uint16(41631), + 1432: uint16(2640), + 1433: uint16(36787), + 1434: uint16(18730), + 1435: uint16(35294), + 1436: uint16(34109), + 1437: uint16(15803), + 1438: uint16(24312), + 1439: uint16(12898), + 1440: uint16(36857), + 1441: uint16(40980), + 1442: uint16(34492), + 1443: uint16(34049), + 1444: uint16(8997), + 1445: uint16(14720), + 1446: uint16(28375), + 1447: uint16(36919), + 1448: uint16(34108), + 1449: uint16(31422), + 1450: uint16(36961), + 1451: uint16(34156), + 1452: uint16(34315), + 1453: uint16(37032), + 1454: uint16(34579), + 1455: uint16(37060), + 1456: uint16(34534), + 1457: uint16(37038), + 1459: uint16(37223), + 1460: uint16(15088), + 1461: uint16(37289), + 1462: uint16(37316), + 1463: uint16(31916), + 1464: uint16(35123), + 1465: uint16(7817), + 1466: uint16(37390), + 1467: uint16(27807), + 1468: uint16(37441), + 1469: uint16(37474), + 1470: uint16(21945), + 1472: uint16(35526), + 1473: uint16(15515), + 1474: uint16(35596), + 1475: uint16(21979), + 1476: uint16(3377), + 1477: uint16(37676), + 1478: uint16(37739), + 1479: uint16(35553), + 1480: uint16(35819), + 1481: uint16(28815), + 1482: uint16(23235), + 1483: uint16(35554), + 1484: uint16(35557), + 1485: uint16(18789), + 1486: uint16(37444), + 1487: uint16(35820), + 1488: uint16(35897), + 1489: uint16(35839), + 1490: uint16(37747), + 1491: uint16(37979), + 1492: uint16(36540), + 1493: uint16(38277), + 1494: uint16(38310), + 1495: uint16(37926), + 1496: uint16(38304), + 1497: uint16(28662), + 1498: uint16(17081), + 1499: uint16(9850), + 1500: uint16(34520), + 1501: uint16(4732), + 1502: uint16(15918), + 1503: uint16(18911), + 1504: uint16(27676), + 1505: uint16(38523), + 1506: uint16(38550), + 1507: uint16(16748), + 1508: uint16(38563), + 1509: uint16(28373), + 1510: uint16(25050), + 1511: uint16(38582), + 1512: uint16(30965), + 1513: uint16(35552), + 1514: uint16(38589), + 1515: uint16(21452), + 1516: uint16(18849), + 1517: uint16(27832), + 1518: uint16(628), + 1519: uint16(25616), + 1520: uint16(37039), + 1521: uint16(37093), + 1522: uint16(19153), + 1523: uint16(6421), + 1524: uint16(13066), + 1525: uint16(38705), + 1526: uint16(34370), + 1527: uint16(38710), + 1528: uint16(18959), + 1529: uint16(17725), + 1530: uint16(17797), + 1531: uint16(19177), + 1532: uint16(28789), + 1533: uint16(23361), + 1534: uint16(38683), + 1536: uint16(37333), + 1537: uint16(38743), + 1538: uint16(23370), + 1539: uint16(37355), + 1540: uint16(38751), + 1541: uint16(37925), + 1542: uint16(20688), + 1543: uint16(12471), + 1544: uint16(12476), + 1545: uint16(38793), + 1546: uint16(38815), + 1547: uint16(38833), + 1548: uint16(38846), + 1549: uint16(38848), + 1550: uint16(38866), + 1551: uint16(38880), + 1552: uint16(21612), + 1553: uint16(38894), + 1554: uint16(29724), + 1555: uint16(37939), + 1557: uint16(38901), + 1558: uint16(37917), + 1559: uint16(31098), + 1560: uint16(19153), + 1561: uint16(38964), + 1562: uint16(38963), + 1563: uint16(38987), + 1564: uint16(39014), + 1565: uint16(15118), + 1566: uint16(29045), + 1567: uint16(15697), + 1568: uint16(1584), + 1569: uint16(16732), + 1570: uint16(22278), + 1571: uint16(39114), + 1572: uint16(39095), + 1573: uint16(39112), + 1574: uint16(39111), + 1575: uint16(19199), + 1576: uint16(27943), + 1577: uint16(5843), + 1578: uint16(21936), + 1579: uint16(39137), + 1580: uint16(39142), + 1581: uint16(39148), + 1582: uint16(37752), + 1583: uint16(39225), + 1584: uint16(18985), + 1585: uint16(19314), + 1586: uint16(38999), + 1587: uint16(39173), + 1588: uint16(39413), + 1589: uint16(39436), + 1590: uint16(39483), + 1591: uint16(39440), + 1592: uint16(39512), + 1593: uint16(22309), + 1594: uint16(14020), + 1595: uint16(37041), + 1596: uint16(39893), + 1597: uint16(39648), + 1598: uint16(39650), + 1599: uint16(39685), + 1600: uint16(39668), + 1601: uint16(19470), + 1602: uint16(39700), + 1603: uint16(39725), + 1604: uint16(34304), + 1605: uint16(20532), + 1606: uint16(39732), + 1607: uint16(27048), + 1608: uint16(14531), + 1609: uint16(12413), + 1610: uint16(39760), + 1611: uint16(39744), + 1612: uint16(40254), + 1613: uint16(23109), + 1614: uint16(6243), + 1615: uint16(39822), + 1616: uint16(16971), + 1617: uint16(39938), + 1618: uint16(39935), + 1619: uint16(39948), + 1620: uint16(40552), + 1621: uint16(40404), + 1622: uint16(40887), + 1623: uint16(41362), + 1624: uint16(41387), + 1625: uint16(41185), + 1626: uint16(41251), + 1627: uint16(41439), + 1628: uint16(40318), + 1629: uint16(40323), + 1630: uint16(41268), + 1631: uint16(40462), + 1632: uint16(26760), + 1633: uint16(40388), + 1634: uint16(8539), + 1635: uint16(41363), + 1636: uint16(41504), + 1637: uint16(6459), + 1638: uint16(41523), + 1639: uint16(40249), + 1640: uint16(41145), + 1641: uint16(41652), + 1642: uint16(40592), + 1643: uint16(40597), + 1644: uint16(40606), + 1645: uint16(40610), + 1646: uint16(19764), + 1647: uint16(40618), + 1648: uint16(40623), + 1649: uint16(17252), + 1650: uint16(40641), + 1651: uint16(15200), + 1652: uint16(14821), + 1653: uint16(15645), + 1654: uint16(20274), + 1655: uint16(14270), + 1656: uint16(35883), + 1657: uint16(40706), + 1658: uint16(40712), + 1659: uint16(19350), + 1660: uint16(37924), + 1661: uint16(28066), + 1662: uint16(40727), + 1664: uint16(40761), + 1665: uint16(22175), + 1666: uint16(22154), + 1667: uint16(40773), + 1668: uint16(39352), + 1669: uint16(37003), + 1670: uint16(38898), + 1671: uint16(33919), + 1672: uint16(40802), + 1673: uint16(40809), + 1674: uint16(31452), + 1675: uint16(40846), + 1676: uint16(29206), + 1677: uint16(19390), + 1678: uint16(18805), + 1679: uint16(18875), + 1680: uint16(29047), + 1681: uint16(18936), + 1682: uint16(17224), + 1683: uint16(19025), + 1684: uint16(29598), + 1685: uint16(35802), + 1686: uint16(6394), + 1687: uint16(31135), + 1688: uint16(35198), + 1689: uint16(36406), + 1690: uint16(37737), + 1691: uint16(37875), + 1692: uint16(35396), + 1693: uint16(37612), + 1694: uint16(37761), + 1695: uint16(37835), + 1696: uint16(35180), + 1697: uint16(17593), + 1698: uint16(29207), + 1699: uint16(16107), + 1700: uint16(30578), + 1701: uint16(31299), + 1702: uint16(28880), + 1703: uint16(17523), + 1704: uint16(17400), + 1705: uint16(29054), + 1706: uint16(6127), + 1707: uint16(28835), + 1708: uint16(6334), + 1709: uint16(13721), + 1710: uint16(16071), + 1711: uint16(6277), + 1712: uint16(21551), + 1713: uint16(6136), + 1714: uint16(14114), + 1715: uint16(5883), + 1716: uint16(6201), + 1717: uint16(14049), + 1718: uint16(6004), + 1719: uint16(6353), + 1720: uint16(24395), + 1721: uint16(14115), + 1722: uint16(5824), + 1723: uint16(22363), + 1724: uint16(18981), + 1725: uint16(5118), + 1726: uint16(4776), + 1727: uint16(5062), + 1728: uint16(5302), + 1729: uint16(34051), + 1730: uint16(13990), + 1732: uint16(33877), + 1733: uint16(18836), + 1734: uint16(29029), + 1735: uint16(15921), + 1736: uint16(21852), + 1737: uint16(16123), + 1738: uint16(28754), + 1739: uint16(17652), + 1740: uint16(14062), + 1741: uint16(39325), + 1742: uint16(28454), + 1743: uint16(26617), + 1744: uint16(14131), + 1745: uint16(15381), + 1746: uint16(15847), + 1747: uint16(22636), + 1748: uint16(6434), + 1749: uint16(26640), + 1750: uint16(16471), + 1751: uint16(14143), + 1752: uint16(16609), + 1753: uint16(16523), + 1754: uint16(16655), + 1755: uint16(27681), + 1756: uint16(21707), + 1757: uint16(22174), + 1758: uint16(26289), + 1759: uint16(22162), + 1760: uint16(4063), + 1761: uint16(2984), + 1762: uint16(3597), + 1763: uint16(37830), + 1764: uint16(35603), + 1765: uint16(37788), + 1766: uint16(20216), + 1767: uint16(20779), + 1768: uint16(14361), + 1769: uint16(17462), + 1770: uint16(20156), + 1771: uint16(1125), + 1772: uint16(895), + 1773: uint16(20299), + 1774: uint16(20362), + 1775: uint16(22097), + 1776: uint16(23144), + 1777: uint16(427), + 1778: uint16(971), + 1779: uint16(14745), + 1780: uint16(778), + 1781: uint16(1044), + 1782: uint16(13365), + 1783: uint16(20265), + 1784: uint16(704), + 1785: uint16(36531), + 1786: uint16(629), + 1787: uint16(35546), + 1788: uint16(524), + 1789: uint16(20120), + 1790: uint16(20685), + 1791: uint16(20749), + 1792: uint16(20386), + 1793: uint16(20227), + 1794: uint16(18958), + 1795: uint16(16010), + 1796: uint16(20290), + 1797: uint16(20526), + 1798: uint16(20588), + 1799: uint16(20609), + 1800: uint16(20428), + 1801: uint16(20453), + 1802: uint16(20568), + 1803: uint16(20732), + 1808: uint16(28278), + 1809: uint16(13717), + 1810: uint16(15929), + 1811: uint16(16063), + 1812: uint16(28018), + 1813: uint16(6276), + 1814: uint16(16009), + 1815: uint16(20904), + 1816: uint16(20931), + 1817: uint16(1504), + 1818: uint16(17629), + 1819: uint16(1187), + 1820: uint16(1170), + 1821: uint16(1169), + 1822: uint16(36218), + 1823: uint16(35484), + 1824: uint16(1806), + 1825: uint16(21081), + 1826: uint16(21156), + 1827: uint16(2163), + 1828: uint16(21217), + 1830: uint16(18042), + 1831: uint16(29068), + 1832: uint16(17292), + 1833: uint16(3104), + 1834: uint16(18860), + 1835: uint16(4324), + 1836: uint16(27089), + 1837: uint16(3613), + 1839: uint16(16094), + 1840: uint16(29849), + 1841: uint16(29716), + 1842: uint16(29782), + 1843: uint16(29592), + 1844: uint16(19342), + 1845: uint16(19132), + 1846: uint16(16525), + 1847: uint16(21456), + 1848: uint16(13700), + 1849: uint16(29199), + 1850: uint16(16585), + 1851: uint16(21940), + 1852: uint16(837), + 1853: uint16(21709), + 1854: uint16(3014), + 1855: uint16(22301), + 1856: uint16(37469), + 1857: uint16(38644), + 1858: uint16(37734), + 1859: uint16(22493), + 1860: uint16(22413), + 1861: uint16(22399), + 1862: uint16(13886), + 1863: uint16(22731), + 1864: uint16(23193), + 1865: uint16(35398), + 1866: uint16(5882), + 1867: uint16(5999), + 1868: uint16(5904), + 1869: uint16(23084), + 1870: uint16(22968), + 1871: uint16(37519), + 1872: uint16(23166), + 1873: uint16(23247), + 1874: uint16(23058), + 1875: uint16(22854), + 1876: uint16(6643), + 1877: uint16(6241), + 1878: uint16(17045), + 1879: uint16(14069), + 1880: uint16(27909), + 1881: uint16(29763), + 1882: uint16(23073), + 1883: uint16(24195), + 1884: uint16(23169), + 1885: uint16(35799), + 1886: uint16(1043), + 1887: uint16(37856), + 1888: uint16(29836), + 1889: uint16(4867), + 1890: uint16(28933), + 1891: uint16(18802), + 1892: uint16(37896), + 1893: uint16(35323), + 1894: uint16(37821), + 1895: uint16(14240), + 1896: uint16(23582), + 1897: uint16(23710), + 1898: uint16(24158), + 1899: uint16(24136), + 1900: uint16(6550), + 1901: uint16(6524), + 1902: uint16(15086), + 1903: uint16(24269), + 1904: uint16(23375), + 1905: uint16(6403), + 1906: uint16(6404), + 1907: uint16(14081), + 1908: uint16(6304), + 1909: uint16(14045), + 1910: uint16(5886), + 1911: uint16(14035), + 1912: uint16(33066), + 1913: uint16(35399), + 1914: uint16(7610), + 1915: uint16(13426), + 1916: uint16(35240), + 1917: uint16(24332), + 1918: uint16(24334), + 1919: uint16(6439), + 1920: uint16(6059), + 1921: uint16(23147), + 1922: uint16(5947), + 1923: uint16(23364), + 1924: uint16(34324), + 1925: uint16(30205), + 1926: uint16(34912), + 1927: uint16(24702), + 1928: uint16(10336), + 1929: uint16(9771), + 1930: uint16(24539), + 1931: uint16(16056), + 1932: uint16(9647), + 1933: uint16(9662), + 1934: uint16(37000), + 1935: uint16(28531), + 1936: uint16(25024), + 1937: uint16(62), + 1938: uint16(70), + 1939: uint16(9755), + 1940: uint16(24985), + 1941: uint16(24984), + 1942: uint16(24693), + 1943: uint16(11419), + 1944: uint16(11527), + 1945: uint16(18132), + 1946: uint16(37197), + 1947: uint16(25713), + 1948: uint16(18021), + 1949: uint16(11114), + 1950: uint16(14889), + 1951: uint16(11042), + 1952: uint16(13392), + 1953: uint16(39146), + 1954: uint16(11896), + 1955: uint16(25399), + 1956: uint16(42075), + 1957: uint16(25782), + 1958: uint16(25393), + 1959: uint16(25553), + 1960: uint16(18915), + 1961: uint16(11623), + 1962: uint16(25252), + 1963: uint16(11425), + 1964: uint16(25659), + 1965: uint16(25963), + 1966: uint16(26994), + 1967: uint16(15348), + 1968: uint16(12430), + 1969: uint16(12973), + 1970: uint16(18825), + 1971: uint16(12971), + 1972: uint16(21773), + 1973: uint16(13024), + 1974: uint16(6361), + 1975: uint16(37951), + 1976: uint16(26318), + 1977: uint16(12937), + 1978: uint16(12723), + 1979: uint16(15072), + 1980: uint16(16784), + 1981: uint16(21892), + 1982: uint16(35618), + 1983: uint16(21903), + 1984: uint16(5884), + 1985: uint16(21851), + 1986: uint16(21541), + 1987: uint16(30958), + 1988: uint16(12547), + 1989: uint16(6186), + 1990: uint16(12852), + 1991: uint16(13412), + 1992: uint16(12815), + 1993: uint16(12674), + 1994: uint16(17097), + 1995: uint16(26254), + 1996: uint16(27940), + 1997: uint16(26219), + 1998: uint16(19347), + 1999: uint16(26160), + 2000: uint16(30832), + 2001: uint16(7659), + 2002: uint16(26211), + 2003: uint16(13010), + 2004: uint16(13025), + 2005: uint16(26142), + 2006: uint16(22642), + 2007: uint16(14545), + 2008: uint16(14394), + 2009: uint16(14268), + 2010: uint16(15257), + 2011: uint16(14242), + 2012: uint16(13310), + 2013: uint16(29904), + 2014: uint16(15254), + 2015: uint16(26511), + 2016: uint16(17962), + 2017: uint16(26806), + 2018: uint16(26654), + 2019: uint16(15300), + 2020: uint16(27326), + 2021: uint16(14435), + 2022: uint16(14293), + 2023: uint16(17543), + 2024: uint16(27187), + 2025: uint16(27218), + 2026: uint16(27337), + 2027: uint16(27397), + 2028: uint16(6418), + 2029: uint16(25873), + 2030: uint16(26776), + 2031: uint16(27212), + 2032: uint16(15319), + 2033: uint16(27258), + 2034: uint16(27479), + 2035: uint16(16320), + 2036: uint16(15514), + 2037: uint16(37792), + 2038: uint16(37618), + 2039: uint16(35818), + 2040: uint16(35531), + 2041: uint16(37513), + 2042: uint16(32798), + 2043: uint16(35292), + 2044: uint16(37991), + 2045: uint16(28069), + 2046: uint16(28427), + 2047: uint16(18924), + 2049: uint16(16255), + 2050: uint16(15759), + 2051: uint16(28164), + 2052: uint16(16444), + 2053: uint16(23101), + 2054: uint16(28170), + 2055: uint16(22599), + 2056: uint16(27940), + 2057: uint16(30786), + 2058: uint16(28987), + 2059: uint16(17178), + 2060: uint16(17014), + 2061: uint16(28913), + 2062: uint16(29264), + 2063: uint16(29319), + 2064: uint16(29332), + 2065: uint16(18319), + 2066: uint16(18213), + 2067: uint16(20857), + 2068: uint16(19108), + 2069: uint16(1515), + 2070: uint16(29818), + 2071: uint16(16120), + 2072: uint16(13919), + 2073: uint16(19018), + 2074: uint16(18711), + 2075: uint16(24545), + 2076: uint16(16134), + 2077: uint16(16049), + 2078: uint16(19167), + 2079: uint16(35875), + 2080: uint16(16181), + 2081: uint16(24743), + 2082: uint16(16115), + 2083: uint16(29900), + 2084: uint16(29756), + 2085: uint16(37767), + 2086: uint16(29751), + 2087: uint16(17567), + 2088: uint16(28138), + 2089: uint16(17745), + 2090: uint16(30083), + 2091: uint16(16227), + 2092: uint16(19673), + 2093: uint16(19718), + 2094: uint16(16216), + 2095: uint16(30037), + 2096: uint16(30323), + 2097: uint16(42438), + 2098: uint16(15129), + 2099: uint16(29800), + 2100: uint16(35532), + 2101: uint16(18859), + 2102: uint16(18830), + 2103: uint16(15099), + 2104: uint16(15821), + 2105: uint16(19022), + 2106: uint16(16127), + 2107: uint16(18885), + 2108: uint16(18675), + 2109: uint16(37370), + 2110: uint16(22322), + 2111: uint16(37698), + 2112: uint16(35555), + 2113: uint16(6244), + 2114: uint16(20703), + 2115: uint16(21025), + 2116: uint16(20967), + 2117: uint16(30584), + 2118: uint16(12850), + 2119: uint16(30478), + 2120: uint16(30479), + 2121: uint16(30587), + 2122: uint16(18071), + 2123: uint16(14209), + 2124: uint16(14942), + 2125: uint16(18672), + 2126: uint16(29752), + 2127: uint16(29851), + 2128: uint16(16063), + 2129: uint16(19130), + 2130: uint16(19143), + 2131: uint16(16584), + 2132: uint16(19094), + 2133: uint16(25006), + 2134: uint16(37639), + 2135: uint16(21889), + 2136: uint16(30750), + 2137: uint16(30861), + 2138: uint16(30856), + 2139: uint16(30930), + 2140: uint16(29648), + 2141: uint16(31065), + 2142: uint16(30529), + 2143: uint16(22243), + 2144: uint16(16654), + 2146: uint16(33942), + 2147: uint16(31141), + 2148: uint16(27181), + 2149: uint16(16122), + 2150: uint16(31290), + 2151: uint16(31220), + 2152: uint16(16750), + 2153: uint16(5862), + 2154: uint16(16690), + 2155: uint16(37429), + 2156: uint16(31217), + 2157: uint16(3404), + 2158: uint16(18828), + 2159: uint16(665), + 2160: uint16(15802), + 2161: uint16(5998), + 2162: uint16(13719), + 2163: uint16(21867), + 2164: uint16(13680), + 2165: uint16(13994), + 2166: uint16(468), + 2167: uint16(3085), + 2168: uint16(31458), + 2169: uint16(23129), + 2170: uint16(9973), + 2171: uint16(23215), + 2172: uint16(23196), + 2173: uint16(23053), + 2174: uint16(603), + 2175: uint16(30960), + 2176: uint16(23082), + 2177: uint16(23494), + 2178: uint16(31486), + 2179: uint16(16889), + 2180: uint16(31837), + 2181: uint16(31853), + 2182: uint16(16913), + 2183: uint16(23475), + 2184: uint16(24252), + 2185: uint16(24230), + 2186: uint16(31949), + 2187: uint16(18937), + 2188: uint16(6064), + 2189: uint16(31886), + 2190: uint16(31868), + 2191: uint16(31918), + 2192: uint16(27314), + 2193: uint16(32220), + 2194: uint16(32263), + 2195: uint16(32211), + 2196: uint16(32590), + 2197: uint16(25185), + 2198: uint16(24924), + 2199: uint16(31560), + 2200: uint16(32151), + 2201: uint16(24194), + 2202: uint16(17002), + 2203: uint16(27509), + 2204: uint16(2326), + 2205: uint16(26582), + 2206: uint16(78), + 2207: uint16(13775), + 2208: uint16(22468), + 2209: uint16(25618), + 2210: uint16(25592), + 2211: uint16(18786), + 2212: uint16(32733), + 2213: uint16(31527), + 2214: uint16(2092), + 2215: uint16(23273), + 2216: uint16(23875), + 2217: uint16(31500), + 2218: uint16(24078), + 2219: uint16(39398), + 2220: uint16(34373), + 2221: uint16(39523), + 2222: uint16(27164), + 2223: uint16(13375), + 2224: uint16(14818), + 2225: uint16(18935), + 2226: uint16(26029), + 2227: uint16(39455), + 2228: uint16(26016), + 2229: uint16(33920), + 2230: uint16(28967), + 2231: uint16(27857), + 2232: uint16(17642), + 2233: uint16(33079), + 2234: uint16(17410), + 2235: uint16(32966), + 2236: uint16(33033), + 2237: uint16(33090), + 2238: uint16(26548), + 2239: uint16(39107), + 2240: uint16(27202), + 2241: uint16(33378), + 2242: uint16(33381), + 2243: uint16(27217), + 2244: uint16(33875), + 2245: uint16(28071), + 2246: uint16(34320), + 2247: uint16(29211), + 2248: uint16(23174), + 2249: uint16(16767), + 2250: uint16(6208), + 2251: uint16(23339), + 2252: uint16(6305), + 2253: uint16(23268), + 2254: uint16(6360), + 2255: uint16(34464), + 2256: uint16(63932), + 2257: uint16(15759), + 2258: uint16(34861), + 2259: uint16(29730), + 2260: uint16(23042), + 2261: uint16(34926), + 2262: uint16(20293), + 2263: uint16(34951), + 2264: uint16(35007), + 2265: uint16(35046), + 2266: uint16(35173), + 2267: uint16(35149), + 2268: uint16(22147), + 2269: uint16(35156), + 2270: uint16(30597), + 2271: uint16(30596), + 2272: uint16(35829), + 2273: uint16(35801), + 2274: uint16(35740), + 2275: uint16(35321), + 2276: uint16(16045), + 2277: uint16(33955), + 2278: uint16(18165), + 2279: uint16(18127), + 2280: uint16(14322), + 2281: uint16(35389), + 2282: uint16(35356), + 2283: uint16(37960), + 2284: uint16(24397), + 2285: uint16(37419), + 2286: uint16(17028), + 2287: uint16(26068), + 2288: uint16(28969), + 2289: uint16(28868), + 2290: uint16(6213), + 2291: uint16(40301), + 2292: uint16(35999), + 2293: uint16(36073), + 2294: uint16(32220), + 2295: uint16(22938), + 2296: uint16(30659), + 2297: uint16(23024), + 2298: uint16(17262), + 2299: uint16(14036), + 2300: uint16(36394), + 2301: uint16(36519), + 2302: uint16(19465), + 2303: uint16(36656), + 2304: uint16(36682), + 2305: uint16(17140), + 2306: uint16(27736), + 2307: uint16(28603), + 2308: uint16(8993), + 2309: uint16(18587), + 2310: uint16(28537), + 2311: uint16(28299), + 2312: uint16(6106), + 2313: uint16(39913), + 2314: uint16(14005), + 2315: uint16(18735), + 2316: uint16(37051), + 2318: uint16(21873), + 2319: uint16(18694), + 2320: uint16(37307), + 2321: uint16(37892), + 2322: uint16(35403), + 2323: uint16(16482), + 2324: uint16(35580), + 2325: uint16(37927), + 2326: uint16(35869), + 2327: uint16(35899), + 2328: uint16(34021), + 2329: uint16(35371), + 2330: uint16(38297), + 2331: uint16(38311), + 2332: uint16(38295), + 2333: uint16(38294), + 2334: uint16(36148), + 2335: uint16(29765), + 2336: uint16(16066), + 2337: uint16(18687), + 2338: uint16(19010), + 2339: uint16(17386), + 2340: uint16(16103), + 2341: uint16(12837), + 2342: uint16(38543), + 2343: uint16(36583), + 2344: uint16(36454), + 2345: uint16(36453), + 2346: uint16(16076), + 2347: uint16(18925), + 2348: uint16(19064), + 2349: uint16(16366), + 2350: uint16(29714), + 2351: uint16(29803), + 2352: uint16(16124), + 2353: uint16(38721), + 2354: uint16(37040), + 2355: uint16(26695), + 2356: uint16(18973), + 2357: uint16(37011), + 2358: uint16(22495), + 2360: uint16(37736), + 2361: uint16(35209), + 2362: uint16(35878), + 2363: uint16(35631), + 2364: uint16(25534), + 2365: uint16(37562), + 2366: uint16(23313), + 2367: uint16(35689), + 2368: uint16(18748), + 2369: uint16(29689), + 2370: uint16(16923), + 2371: uint16(38811), + 2372: uint16(38769), + 2373: uint16(39224), + 2374: uint16(3878), + 2375: uint16(24001), + 2376: uint16(35781), + 2377: uint16(19122), + 2378: uint16(38943), + 2379: uint16(38106), + 2380: uint16(37622), + 2381: uint16(38359), + 2382: uint16(37349), + 2383: uint16(17600), + 2384: uint16(35664), + 2385: uint16(19047), + 2386: uint16(35684), + 2387: uint16(39132), + 2388: uint16(35397), + 2389: uint16(16128), + 2390: uint16(37418), + 2391: uint16(18725), + 2392: uint16(33812), + 2393: uint16(39227), + 2394: uint16(39245), + 2395: uint16(31494), + 2396: uint16(15869), + 2397: uint16(39323), + 2398: uint16(19311), + 2399: uint16(39338), + 2400: uint16(39516), + 2401: uint16(35685), + 2402: uint16(22728), + 2403: uint16(27279), + 2404: uint16(39457), + 2405: uint16(23294), + 2406: uint16(39471), + 2407: uint16(39153), + 2408: uint16(19344), + 2409: uint16(39240), + 2410: uint16(39356), + 2411: uint16(19389), + 2412: uint16(19351), + 2413: uint16(37757), + 2414: uint16(22642), + 2415: uint16(4866), + 2416: uint16(22562), + 2417: uint16(18872), + 2418: uint16(5352), + 2419: uint16(30788), + 2420: uint16(10015), + 2421: uint16(15800), + 2422: uint16(26821), + 2423: uint16(15741), + 2424: uint16(37976), + 2425: uint16(14631), + 2426: uint16(24912), + 2427: uint16(10113), + 2428: uint16(10603), + 2429: uint16(24839), + 2430: uint16(40015), + 2431: uint16(40019), + 2432: uint16(40059), + 2433: uint16(39989), + 2434: uint16(39952), + 2435: uint16(39807), + 2436: uint16(39887), + 2437: uint16(40493), + 2438: uint16(39839), + 2439: uint16(41461), + 2440: uint16(41214), + 2441: uint16(40225), + 2442: uint16(19630), + 2443: uint16(16644), + 2444: uint16(40472), + 2445: uint16(19632), + 2446: uint16(40204), + 2447: uint16(41396), + 2448: uint16(41197), + 2449: uint16(41203), + 2450: uint16(39215), + 2451: uint16(40357), + 2452: uint16(33981), + 2453: uint16(28178), + 2454: uint16(28639), + 2455: uint16(27522), + 2456: uint16(34300), + 2457: uint16(17715), + 2458: uint16(28068), + 2459: uint16(28292), + 2460: uint16(28144), + 2461: uint16(33824), + 2462: uint16(34286), + 2463: uint16(28160), + 2464: uint16(14295), + 2465: uint16(24676), + 2466: uint16(31202), + 2467: uint16(13724), + 2468: uint16(13888), + 2469: uint16(18733), + 2470: uint16(18910), + 2471: uint16(15714), + 2472: uint16(37851), + 2473: uint16(37566), + 2474: uint16(37704), + 2475: uint16(703), + 2476: uint16(30905), + 2477: uint16(37495), + 2478: uint16(37965), + 2479: uint16(20452), + 2480: uint16(13376), + 2481: uint16(36964), + 2482: uint16(21853), + 2483: uint16(30781), + 2484: uint16(30804), + 2485: uint16(30902), + 2486: uint16(30795), + 2487: uint16(5975), + 2488: uint16(12745), + 2489: uint16(18753), + 2490: uint16(13978), + 2491: uint16(20338), + 2492: uint16(28634), + 2493: uint16(28633), + 2495: uint16(28702), + 2496: uint16(21524), + 2497: uint16(16821), + 2498: uint16(22459), + 2499: uint16(22771), + 2500: uint16(22410), + 2501: uint16(40214), + 2502: uint16(22487), + 2503: uint16(28980), + 2504: uint16(13487), + 2505: uint16(16812), + 2506: uint16(29163), + 2507: uint16(27712), + 2508: uint16(20375), + 2510: uint16(6069), + 2511: uint16(35401), + 2512: uint16(24844), + 2513: uint16(23246), + 2514: uint16(23051), + 2515: uint16(17084), + 2516: uint16(17544), + 2517: uint16(14124), + 2518: uint16(19323), + 2519: uint16(35324), + 2520: uint16(37819), + 2521: uint16(37816), + 2522: uint16(6358), + 2523: uint16(3869), + 2524: uint16(33906), + 2525: uint16(27840), + 2526: uint16(5139), + 2527: uint16(17146), + 2528: uint16(11302), + 2529: uint16(17345), + 2530: uint16(22932), + 2531: uint16(15799), + 2532: uint16(26433), + 2533: uint16(32168), + 2534: uint16(24923), + 2535: uint16(24740), + 2536: uint16(18873), + 2537: uint16(18827), + 2538: uint16(35322), + 2539: uint16(37605), + 2540: uint16(29666), + 2541: uint16(16105), + 2542: uint16(29876), + 2543: uint16(35683), + 2544: uint16(6303), + 2545: uint16(16097), + 2546: uint16(19123), + 2547: uint16(27352), + 2548: uint16(29683), + 2549: uint16(29691), + 2550: uint16(16086), + 2551: uint16(19006), + 2552: uint16(19092), + 2553: uint16(6105), + 2554: uint16(19046), + 2555: uint16(935), + 2556: uint16(5156), + 2557: uint16(18917), + 2558: uint16(29768), + 2559: uint16(18710), + 2560: uint16(28837), + 2561: uint16(18806), + 2562: uint16(37508), + 2563: uint16(29670), + 2564: uint16(37727), + 2565: uint16(1278), + 2566: uint16(37681), + 2567: uint16(35534), + 2568: uint16(35350), + 2569: uint16(37766), + 2570: uint16(35815), + 2571: uint16(21973), + 2572: uint16(18741), + 2573: uint16(35458), + 2574: uint16(29035), + 2575: uint16(18755), + 2576: uint16(3327), + 2577: uint16(22180), + 2578: uint16(1562), + 2579: uint16(3051), + 2580: uint16(3256), + 2581: uint16(21762), + 2582: uint16(31172), + 2583: uint16(6138), + 2584: uint16(32254), + 2585: uint16(5826), + 2586: uint16(19024), + 2587: uint16(6226), + 2588: uint16(17710), + 2589: uint16(37889), + 2590: uint16(14090), + 2591: uint16(35520), + 2592: uint16(18861), + 2593: uint16(22960), + 2594: uint16(6335), + 2595: uint16(6275), + 2596: uint16(29828), + 2597: uint16(23201), + 2598: uint16(14050), + 2599: uint16(15707), + 2600: uint16(14000), + 2601: uint16(37471), + 2602: uint16(23161), + 2603: uint16(35457), + 2604: uint16(6242), + 2605: uint16(37748), + 2606: uint16(15565), + 2607: uint16(2740), + 2608: uint16(19094), + 2609: uint16(14730), + 2610: uint16(20724), + 2611: uint16(15721), + 2612: uint16(15692), + 2613: uint16(5020), + 2614: uint16(29045), + 2615: uint16(17147), + 2616: uint16(33304), + 2617: uint16(28175), + 2618: uint16(37092), + 2619: uint16(17643), + 2620: uint16(27991), + 2621: uint16(32335), + 2622: uint16(28775), + 2623: uint16(27823), + 2624: uint16(15574), + 2625: uint16(16365), + 2626: uint16(15917), + 2627: uint16(28162), + 2628: uint16(28428), + 2629: uint16(15727), + 2630: uint16(1013), + 2631: uint16(30033), + 2632: uint16(14012), + 2633: uint16(13512), + 2634: uint16(18048), + 2635: uint16(16090), + 2636: uint16(18545), + 2637: uint16(22980), + 2638: uint16(37486), + 2639: uint16(18750), + 2640: uint16(36673), + 2641: uint16(35868), + 2642: uint16(27584), + 2643: uint16(22546), + 2644: uint16(22472), + 2645: uint16(14038), + 2646: uint16(5202), + 2647: uint16(28926), + 2648: uint16(17250), + 2649: uint16(19057), + 2650: uint16(12259), + 2651: uint16(4784), + 2652: uint16(9149), + 2653: uint16(26809), + 2654: uint16(26983), + 2655: uint16(5016), + 2656: uint16(13541), + 2657: uint16(31732), + 2658: uint16(14047), + 2659: uint16(35459), + 2660: uint16(14294), + 2661: uint16(13306), + 2662: uint16(19615), + 2663: uint16(27162), + 2664: uint16(13997), + 2665: uint16(27831), + 2666: uint16(33854), + 2667: uint16(17631), + 2668: uint16(17614), + 2669: uint16(27942), + 2670: uint16(27985), + 2671: uint16(27778), + 2672: uint16(28638), + 2673: uint16(28439), + 2674: uint16(28937), + 2675: uint16(33597), + 2676: uint16(5946), + 2677: uint16(33773), + 2678: uint16(27776), + 2679: uint16(28755), + 2680: uint16(6107), + 2681: uint16(22921), + 2682: uint16(23170), + 2683: uint16(6067), + 2684: uint16(23137), + 2685: uint16(23153), + 2686: uint16(6405), + 2687: uint16(16892), + 2688: uint16(14125), + 2689: uint16(23023), + 2690: uint16(5948), + 2691: uint16(14023), + 2692: uint16(29070), + 2693: uint16(37776), + 2694: uint16(26266), + 2695: uint16(17061), + 2696: uint16(23150), + 2697: uint16(23083), + 2698: uint16(17043), + 2699: uint16(27179), + 2700: uint16(16121), + 2701: uint16(30518), + 2702: uint16(17499), + 2703: uint16(17098), + 2704: uint16(28957), + 2705: uint16(16985), + 2706: uint16(35297), + 2707: uint16(20400), + 2708: uint16(27944), + 2709: uint16(23746), + 2710: uint16(17614), + 2711: uint16(32333), + 2712: uint16(17341), + 2713: uint16(27148), + 2714: uint16(16982), + 2715: uint16(4868), + 2716: uint16(28838), + 2717: uint16(28979), + 2718: uint16(17385), + 2719: uint16(15781), + 2720: uint16(27871), + 2721: uint16(63525), + 2722: uint16(19023), + 2723: uint16(32357), + 2724: uint16(23019), + 2725: uint16(23855), + 2726: uint16(15859), + 2727: uint16(24412), + 2728: uint16(19037), + 2729: uint16(6111), + 2730: uint16(32164), + 2731: uint16(33830), + 2732: uint16(21637), + 2733: uint16(15098), + 2734: uint16(13056), + 2735: uint16(532), + 2736: uint16(22398), + 2737: uint16(2261), + 2738: uint16(1561), + 2739: uint16(16357), + 2740: uint16(8094), + 2741: uint16(41654), + 2742: uint16(28675), + 2743: uint16(37211), + 2744: uint16(23920), + 2745: uint16(29583), + 2746: uint16(31955), + 2747: uint16(35417), + 2748: uint16(37920), + 2749: uint16(20424), + 2750: uint16(32743), + 2751: uint16(29389), + 2752: uint16(29456), + 2753: uint16(31476), + 2754: uint16(29496), + 2755: uint16(29497), + 2756: uint16(22262), + 2757: uint16(29505), + 2758: uint16(29512), + 2759: uint16(16041), + 2760: uint16(31512), + 2761: uint16(36972), + 2762: uint16(29173), + 2763: uint16(18674), + 2764: uint16(29665), + 2765: uint16(33270), + 2766: uint16(16074), + 2767: uint16(30476), + 2768: uint16(16081), + 2769: uint16(27810), + 2770: uint16(22269), + 2771: uint16(29721), + 2772: uint16(29726), + 2773: uint16(29727), + 2774: uint16(16098), + 2775: uint16(16112), + 2776: uint16(16116), + 2777: uint16(16122), + 2778: uint16(29907), + 2779: uint16(16142), + 2780: uint16(16211), + 2781: uint16(30018), + 2782: uint16(30061), + 2783: uint16(30066), + 2784: uint16(30093), + 2785: uint16(16252), + 2786: uint16(30152), + 2787: uint16(30172), + 2788: uint16(16320), + 2789: uint16(30285), + 2790: uint16(16343), + 2791: uint16(30324), + 2792: uint16(16348), + 2793: uint16(30330), + 2794: uint16(20316), + 2795: uint16(29064), + 2796: uint16(22051), + 2797: uint16(35200), + 2798: uint16(22633), + 2799: uint16(16413), + 2800: uint16(30531), + 2801: uint16(16441), + 2802: uint16(26465), + 2803: uint16(16453), + 2804: uint16(13787), + 2805: uint16(30616), + 2806: uint16(16490), + 2807: uint16(16495), + 2808: uint16(23646), + 2809: uint16(30654), + 2810: uint16(30667), + 2811: uint16(22770), + 2812: uint16(30744), + 2813: uint16(28857), + 2814: uint16(30748), + 2815: uint16(16552), + 2816: uint16(30777), + 2817: uint16(30791), + 2818: uint16(30801), + 2819: uint16(30822), + 2820: uint16(33864), + 2821: uint16(21813), + 2822: uint16(31027), + 2823: uint16(26627), + 2824: uint16(31026), + 2825: uint16(16643), + 2826: uint16(16649), + 2827: uint16(31121), + 2828: uint16(31129), + 2829: uint16(36795), + 2830: uint16(31238), + 2831: uint16(36796), + 2832: uint16(16743), + 2833: uint16(31377), + 2834: uint16(16818), + 2835: uint16(31420), + 2836: uint16(33401), + 2837: uint16(16836), + 2838: uint16(31439), + 2839: uint16(31451), + 2840: uint16(16847), + 2841: uint16(20001), + 2842: uint16(31586), + 2843: uint16(31596), + 2844: uint16(31611), + 2845: uint16(31762), + 2846: uint16(31771), + 2847: uint16(16992), + 2848: uint16(17018), + 2849: uint16(31867), + 2850: uint16(31900), + 2851: uint16(17036), + 2852: uint16(31928), + 2853: uint16(17044), + 2854: uint16(31981), + 2855: uint16(36755), + 2856: uint16(28864), + 2857: uint16(3279), + 2858: uint16(32207), + 2859: uint16(32212), + 2860: uint16(32208), + 2861: uint16(32253), + 2862: uint16(32686), + 2863: uint16(32692), + 2864: uint16(29343), + 2865: uint16(17303), + 2866: uint16(32800), + 2867: uint16(32805), + 2868: uint16(31545), + 2869: uint16(32814), + 2870: uint16(32817), + 2871: uint16(32852), + 2872: uint16(15820), + 2873: uint16(22452), + 2874: uint16(28832), + 2875: uint16(32951), + 2876: uint16(33001), + 2877: uint16(17389), + 2878: uint16(33036), + 2879: uint16(29482), + 2880: uint16(33038), + 2881: uint16(33042), + 2882: uint16(30048), + 2883: uint16(33044), + 2884: uint16(17409), + 2885: uint16(15161), + 2886: uint16(33110), + 2887: uint16(33113), + 2888: uint16(33114), + 2889: uint16(17427), + 2890: uint16(22586), + 2891: uint16(33148), + 2892: uint16(33156), + 2893: uint16(17445), + 2894: uint16(33171), + 2895: uint16(17453), + 2896: uint16(33189), + 2897: uint16(22511), + 2898: uint16(33217), + 2899: uint16(33252), + 2900: uint16(33364), + 2901: uint16(17551), + 2902: uint16(33446), + 2903: uint16(33398), + 2904: uint16(33482), + 2905: uint16(33496), + 2906: uint16(33535), + 2907: uint16(17584), + 2908: uint16(33623), + 2909: uint16(38505), + 2910: uint16(27018), + 2911: uint16(33797), + 2912: uint16(28917), + 2913: uint16(33892), + 2914: uint16(24803), + 2915: uint16(33928), + 2916: uint16(17668), + 2917: uint16(33982), + 2918: uint16(34017), + 2919: uint16(34040), + 2920: uint16(34064), + 2921: uint16(34104), + 2922: uint16(34130), + 2923: uint16(17723), + 2924: uint16(34159), + 2925: uint16(34160), + 2926: uint16(34272), + 2927: uint16(17783), + 2928: uint16(34418), + 2929: uint16(34450), + 2930: uint16(34482), + 2931: uint16(34543), + 2932: uint16(38469), + 2933: uint16(34699), + 2934: uint16(17926), + 2935: uint16(17943), + 2936: uint16(34990), + 2937: uint16(35071), + 2938: uint16(35108), + 2939: uint16(35143), + 2940: uint16(35217), + 2941: uint16(31079), + 2942: uint16(35369), + 2943: uint16(35384), + 2944: uint16(35476), + 2945: uint16(35508), + 2946: uint16(35921), + 2947: uint16(36052), + 2948: uint16(36082), + 2949: uint16(36124), + 2950: uint16(18328), + 2951: uint16(22623), + 2952: uint16(36291), + 2953: uint16(18413), + 2954: uint16(20206), + 2955: uint16(36410), + 2956: uint16(21976), + 2957: uint16(22356), + 2958: uint16(36465), + 2959: uint16(22005), + 2960: uint16(36528), + 2961: uint16(18487), + 2962: uint16(36558), + 2963: uint16(36578), + 2964: uint16(36580), + 2965: uint16(36589), + 2966: uint16(36594), + 2967: uint16(36791), + 2968: uint16(36801), + 2969: uint16(36810), + 2970: uint16(36812), + 2971: uint16(36915), + 2972: uint16(39364), + 2973: uint16(18605), + 2974: uint16(39136), + 2975: uint16(37395), + 2976: uint16(18718), + 2977: uint16(37416), + 2978: uint16(37464), + 2979: uint16(37483), + 2980: uint16(37553), + 2981: uint16(37550), + 2982: uint16(37567), + 2983: uint16(37603), + 2984: uint16(37611), + 2985: uint16(37619), + 2986: uint16(37620), + 2987: uint16(37629), + 2988: uint16(37699), + 2989: uint16(37764), + 2990: uint16(37805), + 2991: uint16(18757), + 2992: uint16(18769), + 2993: uint16(40639), + 2994: uint16(37911), + 2995: uint16(21249), + 2996: uint16(37917), + 2997: uint16(37933), + 2998: uint16(37950), + 2999: uint16(18794), + 3000: uint16(37972), + 3001: uint16(38009), + 3002: uint16(38189), + 3003: uint16(38306), + 3004: uint16(18855), + 3005: uint16(38388), + 3006: uint16(38451), + 3007: uint16(18917), + 3008: uint16(26528), + 3009: uint16(18980), + 3010: uint16(38720), + 3011: uint16(18997), + 3012: uint16(38834), + 3013: uint16(38850), + 3014: uint16(22100), + 3015: uint16(19172), + 3016: uint16(24808), + 3017: uint16(39097), + 3018: uint16(19225), + 3019: uint16(39153), + 3020: uint16(22596), + 3021: uint16(39182), + 3022: uint16(39193), + 3023: uint16(20916), + 3024: uint16(39196), + 3025: uint16(39223), + 3026: uint16(39234), + 3027: uint16(39261), + 3028: uint16(39266), + 3029: uint16(19312), + 3030: uint16(39365), + 3031: uint16(19357), + 3032: uint16(39484), + 3033: uint16(39695), + 3034: uint16(31363), + 3035: uint16(39785), + 3036: uint16(39809), + 3037: uint16(39901), + 3038: uint16(39921), + 3039: uint16(39924), + 3040: uint16(19565), + 3041: uint16(39968), + 3042: uint16(14191), + 3043: uint16(7106), + 3044: uint16(40265), + 3045: uint16(39994), + 3046: uint16(40702), + 3047: uint16(22096), + 3048: uint16(40339), + 3049: uint16(40381), + 3050: uint16(40384), + 3051: uint16(40444), + 3052: uint16(38134), + 3053: uint16(36790), + 3054: uint16(40571), + 3055: uint16(40620), + 3056: uint16(40625), + 3057: uint16(40637), + 3058: uint16(40646), + 3059: uint16(38108), + 3060: uint16(40674), + 3061: uint16(40689), + 3062: uint16(40696), + 3063: uint16(31432), + 3064: uint16(40772), + 3065: uint16(148), + 3066: uint16(695), + 3067: uint16(928), + 3068: uint16(26906), + 3069: uint16(38083), + 3070: uint16(22956), + 3071: uint16(1239), + 3072: uint16(22592), + 3073: uint16(38081), + 3074: uint16(14265), + 3075: uint16(1493), + 3076: uint16(1557), + 3077: uint16(1654), + 3078: uint16(5818), + 3079: uint16(22359), + 3080: uint16(29043), + 3081: uint16(2754), + 3082: uint16(2765), + 3083: uint16(3007), + 3084: uint16(21610), + 3085: uint16(63547), + 3086: uint16(3019), + 3087: uint16(21662), + 3088: uint16(3067), + 3089: uint16(3131), + 3090: uint16(3155), + 3091: uint16(3173), + 3092: uint16(3196), + 3093: uint16(24807), + 3094: uint16(3213), + 3095: uint16(22138), + 3096: uint16(3253), + 3097: uint16(3293), + 3098: uint16(3309), + 3099: uint16(3439), + 3100: uint16(3506), + 3101: uint16(3528), + 3102: uint16(26965), + 3103: uint16(39983), + 3104: uint16(34725), + 3105: uint16(3588), + 3106: uint16(3598), + 3107: uint16(3799), + 3108: uint16(3984), + 3109: uint16(3885), + 3110: uint16(3699), + 3111: uint16(23584), + 3112: uint16(4028), + 3113: uint16(24075), + 3114: uint16(4188), + 3115: uint16(4175), + 3116: uint16(4214), + 3117: uint16(26398), + 3118: uint16(4219), + 3119: uint16(4232), + 3120: uint16(4246), + 3121: uint16(13895), + 3122: uint16(4287), + 3123: uint16(4307), + 3124: uint16(4399), + 3125: uint16(4411), + 3126: uint16(21348), + 3127: uint16(33965), + 3128: uint16(4835), + 3129: uint16(4981), + 3130: uint16(4918), + 3131: uint16(35713), + 3132: uint16(5495), + 3133: uint16(5657), + 3134: uint16(6083), + 3135: uint16(6087), + 3136: uint16(20088), + 3137: uint16(28859), + 3138: uint16(6189), + 3139: uint16(6506), + 3140: uint16(6701), + 3141: uint16(6725), + 3142: uint16(7210), + 3143: uint16(7280), + 3144: uint16(7340), + 3145: uint16(7880), + 3146: uint16(25283), + 3147: uint16(7893), + 3148: uint16(7957), + 3149: uint16(29080), + 3150: uint16(26709), + 3151: uint16(8261), + 3152: uint16(27113), + 3153: uint16(14024), + 3154: uint16(8828), + 3155: uint16(9175), + 3156: uint16(9210), + 3157: uint16(10026), + 3158: uint16(10353), + 3159: uint16(10575), + 3160: uint16(33533), + 3161: uint16(10599), + 3162: uint16(10643), + 3163: uint16(10965), + 3164: uint16(35237), + 3165: uint16(10984), + 3166: uint16(36768), + 3167: uint16(11022), + 3168: uint16(38840), + 3169: uint16(11071), + 3170: uint16(38983), + 3171: uint16(39613), + 3172: uint16(11340), + 3174: uint16(11400), + 3175: uint16(11447), + 3176: uint16(23528), + 3177: uint16(11528), + 3178: uint16(11538), + 3179: uint16(11703), + 3180: uint16(11669), + 3181: uint16(11842), + 3182: uint16(12148), + 3183: uint16(12236), + 3184: uint16(12339), + 3185: uint16(12390), + 3186: uint16(13087), + 3187: uint16(13278), + 3188: uint16(24497), + 3189: uint16(26184), + 3190: uint16(26303), + 3191: uint16(31353), + 3192: uint16(13671), + 3193: uint16(13811), + 3195: uint16(18874), + 3197: uint16(13850), + 3198: uint16(14102), + 3200: uint16(838), + 3201: uint16(22709), + 3202: uint16(26382), + 3203: uint16(26904), + 3204: uint16(15015), + 3205: uint16(30295), + 3206: uint16(24546), + 3207: uint16(15889), + 3208: uint16(16057), + 3209: uint16(30206), + 3210: uint16(8346), + 3211: uint16(18640), + 3212: uint16(19128), + 3213: uint16(16665), + 3214: uint16(35482), + 3215: uint16(17134), + 3216: uint16(17165), + 3217: uint16(16443), + 3218: uint16(17204), + 3219: uint16(17302), + 3220: uint16(19013), + 3221: uint16(1482), + 3222: uint16(20946), + 3223: uint16(1553), + 3224: uint16(22943), + 3225: uint16(7848), + 3226: uint16(15294), + 3227: uint16(15615), + 3228: uint16(17412), + 3229: uint16(17622), + 3230: uint16(22408), + 3231: uint16(18036), + 3232: uint16(14747), + 3233: uint16(18223), + 3234: uint16(34280), + 3235: uint16(39369), + 3236: uint16(14178), + 3237: uint16(8643), + 3238: uint16(35678), + 3239: uint16(35662), + 3241: uint16(18450), + 3242: uint16(18683), + 3243: uint16(18965), + 3244: uint16(29193), + 3245: uint16(19136), + 3246: uint16(3192), + 3247: uint16(22885), + 3248: uint16(20133), + 3249: uint16(20358), + 3250: uint16(1913), + 3251: uint16(36570), + 3252: uint16(20524), + 3253: uint16(21135), + 3254: uint16(22335), + 3255: uint16(29041), + 3256: uint16(21145), + 3257: uint16(21529), + 3258: uint16(16202), + 3259: uint16(19111), + 3260: uint16(21948), + 3261: uint16(21574), + 3262: uint16(21614), + 3263: uint16(27474), + 3265: uint16(13427), + 3266: uint16(21823), + 3267: uint16(30258), + 3268: uint16(21854), + 3269: uint16(18200), + 3270: uint16(21858), + 3271: uint16(21862), + 3272: uint16(22471), + 3273: uint16(18751), + 3274: uint16(22621), + 3275: uint16(20582), + 3276: uint16(13563), + 3277: uint16(13260), + 3279: uint16(22787), + 3280: uint16(18300), + 3281: uint16(35144), + 3282: uint16(23214), + 3283: uint16(23433), + 3284: uint16(23558), + 3285: uint16(7568), + 3286: uint16(22433), + 3287: uint16(29009), + 3289: uint16(24834), + 3290: uint16(31762), + 3291: uint16(36950), + 3292: uint16(25010), + 3293: uint16(20378), + 3294: uint16(35682), + 3295: uint16(25602), + 3296: uint16(25674), + 3297: uint16(23899), + 3298: uint16(27639), + 3300: uint16(25732), + 3301: uint16(6428), + 3302: uint16(35562), + 3303: uint16(18934), + 3304: uint16(25736), + 3305: uint16(16367), + 3306: uint16(25874), + 3307: uint16(19392), + 3308: uint16(26047), + 3309: uint16(26293), + 3310: uint16(10011), + 3311: uint16(37989), + 3312: uint16(22497), + 3313: uint16(24981), + 3314: uint16(23079), + 3315: uint16(63693), + 3317: uint16(22201), + 3318: uint16(17697), + 3319: uint16(26364), + 3320: uint16(20074), + 3321: uint16(18740), + 3322: uint16(38486), + 3323: uint16(28047), + 3324: uint16(27837), + 3325: uint16(13848), + 3326: uint16(35191), + 3327: uint16(26521), + 3328: uint16(26734), + 3329: uint16(25617), + 3330: uint16(26718), + 3332: uint16(26823), + 3333: uint16(31554), + 3334: uint16(37056), + 3335: uint16(2577), + 3336: uint16(26918), + 3338: uint16(26937), + 3339: uint16(31301), + 3341: uint16(27130), + 3342: uint16(39462), + 3343: uint16(27181), + 3344: uint16(13919), + 3345: uint16(25705), + 3346: uint16(33), + 3347: uint16(31107), + 3348: uint16(27188), + 3349: uint16(27483), + 3350: uint16(23852), + 3351: uint16(13593), + 3353: uint16(27549), + 3354: uint16(18128), + 3355: uint16(27812), + 3356: uint16(30011), + 3357: uint16(34917), + 3358: uint16(28078), + 3359: uint16(22710), + 3360: uint16(14108), + 3361: uint16(9613), + 3362: uint16(28747), + 3363: uint16(29133), + 3364: uint16(15444), + 3365: uint16(29312), + 3366: uint16(29317), + 3367: uint16(37505), + 3368: uint16(8570), + 3369: uint16(29323), + 3370: uint16(37680), + 3371: uint16(29414), + 3372: uint16(18896), + 3373: uint16(27705), + 3374: uint16(38047), + 3375: uint16(29776), + 3376: uint16(3832), + 3377: uint16(34855), + 3378: uint16(35061), + 3379: uint16(10534), + 3380: uint16(33907), + 3381: uint16(6065), + 3382: uint16(28344), + 3383: uint16(18986), + 3384: uint16(6176), + 3385: uint16(14756), + 3386: uint16(14009), + 3389: uint16(17727), + 3390: uint16(26294), + 3391: uint16(40109), + 3392: uint16(39076), + 3393: uint16(35139), + 3394: uint16(30668), + 3395: uint16(30808), + 3396: uint16(22230), + 3397: uint16(16607), + 3398: uint16(5642), + 3399: uint16(14753), + 3400: uint16(14127), + 3401: uint16(33000), + 3402: uint16(5061), + 3403: uint16(29101), + 3404: uint16(33638), + 3405: uint16(31197), + 3406: uint16(37288), + 3408: uint16(19639), + 3409: uint16(28847), + 3410: uint16(35243), + 3411: uint16(31229), + 3412: uint16(31242), + 3413: uint16(31499), + 3414: uint16(32102), + 3415: uint16(16762), + 3416: uint16(31555), + 3417: uint16(31102), + 3418: uint16(32777), + 3419: uint16(28597), + 3420: uint16(41695), + 3421: uint16(27139), + 3422: uint16(33560), + 3423: uint16(21410), + 3424: uint16(28167), + 3425: uint16(37823), + 3426: uint16(26678), + 3427: uint16(38749), + 3428: uint16(33135), + 3429: uint16(32803), + 3430: uint16(27061), + 3431: uint16(5101), + 3432: uint16(12847), + 3433: uint16(32840), + 3434: uint16(23941), + 3435: uint16(35888), + 3436: uint16(32899), + 3437: uint16(22293), + 3438: uint16(38947), + 3439: uint16(35145), + 3440: uint16(23979), + 3441: uint16(18824), + 3442: uint16(26046), + 3443: uint16(27093), + 3444: uint16(21458), + 3445: uint16(19109), + 3446: uint16(16257), + 3447: uint16(15377), + 3448: uint16(26422), + 3449: uint16(32912), + 3450: uint16(33012), + 3451: uint16(33070), + 3452: uint16(8097), + 3453: uint16(33103), + 3454: uint16(33161), + 3455: uint16(33199), + 3456: uint16(33306), + 3457: uint16(33542), + 3458: uint16(33583), + 3459: uint16(33674), + 3460: uint16(13770), + 3461: uint16(33896), + 3462: uint16(34474), + 3463: uint16(18682), + 3464: uint16(25574), + 3465: uint16(35158), + 3466: uint16(30728), + 3467: uint16(37461), + 3468: uint16(35256), + 3469: uint16(17394), + 3470: uint16(35303), + 3471: uint16(17375), + 3472: uint16(35304), + 3473: uint16(35654), + 3474: uint16(35796), + 3475: uint16(23032), + 3476: uint16(35849), + 3478: uint16(36805), + 3479: uint16(37100), + 3481: uint16(37136), + 3482: uint16(37180), + 3483: uint16(15863), + 3484: uint16(37214), + 3485: uint16(19146), + 3486: uint16(36816), + 3487: uint16(29327), + 3488: uint16(22155), + 3489: uint16(38119), + 3490: uint16(38377), + 3491: uint16(38320), + 3492: uint16(38328), + 3493: uint16(38706), + 3494: uint16(39121), + 3495: uint16(39241), + 3496: uint16(39274), + 3497: uint16(39363), + 3498: uint16(39464), + 3499: uint16(39694), + 3500: uint16(40282), + 3501: uint16(40347), + 3502: uint16(32415), + 3503: uint16(40696), + 3504: uint16(40739), + 3505: uint16(19620), + 3506: uint16(38215), + 3507: uint16(41619), + 3508: uint16(29090), + 3509: uint16(41727), + 3510: uint16(19857), + 3511: uint16(36882), + 3512: uint16(42443), + 3513: uint16(19868), + 3514: uint16(3228), + 3515: uint16(36798), + 3516: uint16(21953), + 3517: uint16(36794), + 3518: uint16(9392), + 3519: uint16(36793), + 3520: uint16(19091), + 3521: uint16(17673), + 3522: uint16(32383), + 3523: uint16(28502), + 3524: uint16(27313), + 3525: uint16(20202), + 3526: uint16(13540), + 3527: uint16(35628), + 3528: uint16(30877), + 3529: uint16(14138), + 3530: uint16(36480), + 3531: uint16(6133), + 3532: uint16(32804), + 3533: uint16(35692), + 3534: uint16(35737), + 3535: uint16(31294), + 3536: uint16(26287), + 3537: uint16(15851), + 3538: uint16(30293), + 3539: uint16(15543), + 3540: uint16(22069), + 3541: uint16(22870), + 3542: uint16(20122), + 3543: uint16(24193), + 3544: uint16(25176), + 3545: uint16(22207), + 3546: uint16(3693), + 3547: uint16(36366), + 3548: uint16(23405), + 3549: uint16(16008), + 3550: uint16(19614), + 3551: uint16(25566), + 3553: uint16(6134), + 3554: uint16(6267), + 3555: uint16(25904), + 3556: uint16(22061), + 3557: uint16(23626), + 3558: uint16(21530), + 3559: uint16(21265), + 3560: uint16(15814), + 3561: uint16(40344), + 3562: uint16(19581), + 3563: uint16(22050), + 3564: uint16(22046), + 3565: uint16(32585), + 3566: uint16(24280), + 3567: uint16(22901), + 3568: uint16(15680), + 3569: uint16(34672), + 3570: uint16(19996), + 3571: uint16(4074), + 3572: uint16(3401), + 3573: uint16(14010), + 3574: uint16(33047), + 3575: uint16(40286), + 3576: uint16(36120), + 3577: uint16(30267), + 3578: uint16(40005), + 3579: uint16(30286), + 3580: uint16(30649), + 3581: uint16(37701), + 3582: uint16(21554), + 3583: uint16(33096), + 3584: uint16(33527), + 3585: uint16(22053), + 3586: uint16(33074), + 3587: uint16(33816), + 3588: uint16(32957), + 3589: uint16(21994), + 3590: uint16(31074), + 3591: uint16(22083), + 3592: uint16(21526), + 3593: uint16(3741), + 3594: uint16(13774), + 3595: uint16(22021), + 3596: uint16(22001), + 3597: uint16(26353), + 3598: uint16(33506), + 3599: uint16(13869), + 3600: uint16(30004), + 3601: uint16(22000), + 3602: uint16(21946), + 3603: uint16(21655), + 3604: uint16(21874), + 3605: uint16(3137), + 3606: uint16(3222), + 3607: uint16(24272), + 3608: uint16(20808), + 3609: uint16(3702), + 3610: uint16(11362), + 3611: uint16(3746), + 3612: uint16(40619), + 3613: uint16(32090), + 3614: uint16(21982), + 3615: uint16(4213), + 3616: uint16(25245), + 3617: uint16(38765), + 3618: uint16(21652), + 3619: uint16(36045), + 3620: uint16(29174), + 3621: uint16(37238), + 3622: uint16(25596), + 3623: uint16(25529), + 3624: uint16(25598), + 3625: uint16(21865), + 3626: uint16(11075), + 3627: uint16(40050), + 3628: uint16(11955), + 3629: uint16(20890), + 3630: uint16(13535), + 3631: uint16(3495), + 3632: uint16(20903), + 3633: uint16(21581), + 3634: uint16(21790), + 3635: uint16(21779), + 3636: uint16(30310), + 3637: uint16(36397), + 3638: uint16(26762), + 3639: uint16(30129), + 3640: uint16(32950), + 3641: uint16(34820), + 3642: uint16(34694), + 3643: uint16(35015), + 3644: uint16(33206), + 3645: uint16(33820), + 3646: uint16(4289), + 3647: uint16(17644), + 3648: uint16(29444), + 3649: uint16(18182), + 3650: uint16(23440), + 3651: uint16(33547), + 3652: uint16(26771), + 3653: uint16(22139), + 3654: uint16(9972), + 3655: uint16(32047), + 3656: uint16(16803), + 3657: uint16(32115), + 3658: uint16(28368), + 3659: uint16(29366), + 3660: uint16(37232), + 3661: uint16(4569), + 3662: uint16(37384), + 3663: uint16(15612), + 3664: uint16(42665), + 3665: uint16(3756), + 3666: uint16(3833), + 3667: uint16(29286), + 3668: uint16(7330), + 3669: uint16(18254), + 3670: uint16(20418), + 3671: uint16(32761), + 3672: uint16(4075), + 3673: uint16(16634), + 3674: uint16(40029), + 3675: uint16(25887), + 3676: uint16(11680), + 3677: uint16(18675), + 3678: uint16(18400), + 3679: uint16(40316), + 3680: uint16(4076), + 3681: uint16(3594), + 3683: uint16(30115), + 3684: uint16(4077), + 3686: uint16(24648), + 3687: uint16(4487), + 3688: uint16(29091), + 3689: uint16(32398), + 3690: uint16(40272), + 3691: uint16(19994), + 3692: uint16(19972), + 3693: uint16(13687), + 3694: uint16(23309), + 3695: uint16(27826), + 3696: uint16(21351), + 3697: uint16(13996), + 3698: uint16(14812), + 3699: uint16(21373), + 3700: uint16(13989), + 3701: uint16(17944), + 3702: uint16(22682), + 3703: uint16(19310), + 3704: uint16(33325), + 3705: uint16(21579), + 3706: uint16(22442), + 3707: uint16(23189), + 3708: uint16(2425), + 3710: uint16(14930), + 3711: uint16(9317), + 3712: uint16(29556), + 3713: uint16(40620), + 3714: uint16(19721), + 3715: uint16(39917), + 3716: uint16(15614), + 3717: uint16(40752), + 3718: uint16(19547), + 3719: uint16(20393), + 3720: uint16(38302), + 3721: uint16(40926), + 3722: uint16(33884), + 3723: uint16(15798), + 3724: uint16(29362), + 3725: uint16(26547), + 3726: uint16(14112), + 3727: uint16(25390), + 3728: uint16(32037), + 3729: uint16(16119), + 3730: uint16(15916), + 3731: uint16(14890), + 3732: uint16(36872), + 3733: uint16(21196), + 3734: uint16(15988), + 3735: uint16(13946), + 3736: uint16(17897), + 3737: uint16(1166), + 3738: uint16(30272), + 3739: uint16(23280), + 3740: uint16(3766), + 3741: uint16(30842), + 3742: uint16(32558), + 3743: uint16(22695), + 3744: uint16(16575), + 3745: uint16(22140), + 3746: uint16(39819), + 3747: uint16(23924), + 3748: uint16(30292), + 3749: uint16(42036), + 3750: uint16(40581), + 3751: uint16(19681), + 3753: uint16(14331), + 3754: uint16(24857), + 3755: uint16(12506), + 3756: uint16(17394), + 3758: uint16(22109), + 3759: uint16(4777), + 3760: uint16(22439), + 3761: uint16(18787), + 3762: uint16(40454), + 3763: uint16(21044), + 3764: uint16(28846), + 3765: uint16(13741), + 3767: uint16(40316), + 3768: uint16(31830), + 3769: uint16(39737), + 3770: uint16(22494), + 3771: uint16(5996), + 3772: uint16(23635), + 3773: uint16(25811), + 3774: uint16(38096), + 3775: uint16(25397), + 3776: uint16(29028), + 3777: uint16(34477), + 3778: uint16(3368), + 3779: uint16(27938), + 3780: uint16(19170), + 3781: uint16(3441), + 3783: uint16(20990), + 3784: uint16(7951), + 3785: uint16(23950), + 3786: uint16(38659), + 3787: uint16(7633), + 3788: uint16(40577), + 3789: uint16(36940), + 3790: uint16(31519), + 3791: uint16(39682), + 3792: uint16(23761), + 3793: uint16(31651), + 3794: uint16(25192), + 3795: uint16(25397), + 3796: uint16(39679), + 3797: uint16(31695), + 3798: uint16(39722), + 3799: uint16(31870), + 3801: uint16(31810), + 3802: uint16(31878), + 3803: uint16(39957), + 3804: uint16(31740), + 3805: uint16(39689), + 3807: uint16(39963), + 3808: uint16(18750), + 3809: uint16(40794), + 3810: uint16(21875), + 3811: uint16(23491), + 3812: uint16(20477), + 3813: uint16(40600), + 3814: uint16(20466), + 3815: uint16(21088), + 3816: uint16(15878), + 3817: uint16(21201), + 3818: uint16(22375), + 3819: uint16(20566), + 3820: uint16(22967), + 3821: uint16(24082), + 3822: uint16(38856), + 3823: uint16(40363), + 3824: uint16(36700), + 3825: uint16(21609), + 3826: uint16(38836), + 3827: uint16(39232), + 3828: uint16(38842), + 3829: uint16(21292), + 3830: uint16(24880), + 3831: uint16(26924), + 3832: uint16(21466), + 3833: uint16(39946), + 3834: uint16(40194), + 3835: uint16(19515), + 3836: uint16(38465), + 3837: uint16(27008), + 3838: uint16(20646), + 3839: uint16(30022), + 3840: uint16(5997), + 3841: uint16(39386), + 3842: uint16(21107), + 3844: uint16(37209), + 3845: uint16(38529), + 3846: uint16(37212), + 3848: uint16(37201), + 3849: uint16(36503), + 3850: uint16(25471), + 3851: uint16(27939), + 3852: uint16(27338), + 3853: uint16(22033), + 3854: uint16(37262), + 3855: uint16(30074), + 3856: uint16(25221), + 3857: uint16(1020), + 3858: uint16(29519), + 3859: uint16(31856), + 3860: uint16(23585), + 3861: uint16(15613), + 3863: uint16(18713), + 3864: uint16(30422), + 3865: uint16(39837), + 3866: uint16(20010), + 3867: uint16(3284), + 3868: uint16(33726), + 3869: uint16(34882), + 3871: uint16(23626), + 3872: uint16(27072), + 3874: uint16(22394), + 3875: uint16(21023), + 3876: uint16(24053), + 3877: uint16(20174), + 3878: uint16(27697), + 3879: uint16(498), + 3880: uint16(20281), + 3881: uint16(21660), + 3882: uint16(21722), + 3883: uint16(21146), + 3884: uint16(36226), + 3885: uint16(13822), + 3887: uint16(13811), + 3889: uint16(27474), + 3890: uint16(37244), + 3891: uint16(40869), + 3892: uint16(39831), + 3893: uint16(38958), + 3894: uint16(39092), + 3895: uint16(39610), + 3896: uint16(40616), + 3897: uint16(40580), + 3898: uint16(29050), + 3899: uint16(31508), + 3901: uint16(27642), + 3902: uint16(34840), + 3903: uint16(32632), + 3905: uint16(22048), + 3906: uint16(42570), + 3907: uint16(36471), + 3908: uint16(40787), + 3910: uint16(36308), + 3911: uint16(36431), + 3912: uint16(40476), + 3913: uint16(36353), + 3914: uint16(25218), + 3915: uint16(33661), + 3916: uint16(36392), + 3917: uint16(36469), + 3918: uint16(31443), + 3919: uint16(19063), + 3920: uint16(31294), + 3921: uint16(30936), + 3922: uint16(27882), + 3923: uint16(35431), + 3924: uint16(30215), + 3925: uint16(35418), + 3926: uint16(40742), + 3927: uint16(27854), + 3928: uint16(34774), + 3929: uint16(30147), + 3930: uint16(41650), + 3931: uint16(30803), + 3932: uint16(63552), + 3933: uint16(36108), + 3934: uint16(29410), + 3935: uint16(29553), + 3936: uint16(35629), + 3937: uint16(29442), + 3938: uint16(29937), + 3939: uint16(36075), + 3940: uint16(19131), + 3941: uint16(34351), + 3942: uint16(24506), + 3943: uint16(34976), + 3944: uint16(17591), + 3946: uint16(6203), + 3947: uint16(28165), + 3949: uint16(35454), + 3950: uint16(9499), + 3952: uint16(24829), + 3953: uint16(30311), + 3954: uint16(39639), + 3955: uint16(40260), + 3956: uint16(37742), + 3957: uint16(39823), + 3958: uint16(34805), + 3961: uint16(36087), + 3962: uint16(29484), + 3963: uint16(38689), + 3964: uint16(39856), + 3965: uint16(13782), + 3966: uint16(29362), + 3967: uint16(19463), + 3968: uint16(31825), + 3969: uint16(39242), + 3970: uint16(24921), + 3971: uint16(24921), + 3972: uint16(19460), + 3973: uint16(40598), + 3974: uint16(24957), + 3976: uint16(22367), + 3977: uint16(24943), + 3978: uint16(25254), + 3979: uint16(25145), + 3981: uint16(14940), + 3982: uint16(25058), + 3983: uint16(21418), + 3984: uint16(13301), + 3985: uint16(25444), + 3986: uint16(26626), + 3987: uint16(13778), + 3988: uint16(23895), + 3989: uint16(35778), + 3990: uint16(36826), + 3991: uint16(36409), + 3993: uint16(20697), + 3994: uint16(7494), + 3995: uint16(30982), + 3996: uint16(21298), + 3997: uint16(38456), + 3998: uint16(3899), + 3999: uint16(16485), + 4001: uint16(30718), + 4003: uint16(31938), + 4004: uint16(24346), + 4005: uint16(31962), + 4006: uint16(31277), + 4007: uint16(32870), + 4008: uint16(32867), + 4009: uint16(32077), + 4010: uint16(29957), + 4011: uint16(29938), + 4012: uint16(35220), + 4013: uint16(33306), + 4014: uint16(26380), + 4015: uint16(32866), + 4016: uint16(29830), + 4017: uint16(32859), + 4018: uint16(29936), + 4019: uint16(33027), + 4020: uint16(30500), + 4021: uint16(35209), + 4022: uint16(26572), + 4023: uint16(30035), + 4024: uint16(28369), + 4025: uint16(34729), + 4026: uint16(34766), + 4027: uint16(33224), + 4028: uint16(34700), + 4029: uint16(35401), + 4030: uint16(36013), + 4031: uint16(35651), + 4032: uint16(30507), + 4033: uint16(29944), + 4034: uint16(34010), + 4035: uint16(13877), + 4036: uint16(27058), + 4037: uint16(36262), + 4039: uint16(35241), + 4041: uint16(28089), + 4042: uint16(34753), + 4043: uint16(16401), + 4044: uint16(29927), + 4045: uint16(15835), + 4046: uint16(29046), + 4047: uint16(24740), + 4048: uint16(24988), + 4049: uint16(15569), + 4051: uint16(24695), + 4053: uint16(32625), + 4054: uint16(35629), + 4056: uint16(24809), + 4057: uint16(19326), + 4058: uint16(21024), + 4059: uint16(15384), + 4060: uint16(15559), + 4061: uint16(24279), + 4062: uint16(30294), + 4063: uint16(21809), + 4064: uint16(6468), + 4065: uint16(4862), + 4066: uint16(39171), + 4067: uint16(28124), + 4068: uint16(28845), + 4069: uint16(23745), + 4070: uint16(25005), + 4071: uint16(35343), + 4072: uint16(13943), + 4073: uint16(238), + 4074: uint16(26694), + 4075: uint16(20238), + 4076: uint16(17762), + 4077: uint16(23327), + 4078: uint16(25420), + 4079: uint16(40784), + 4080: uint16(40614), + 4081: uint16(25195), + 4082: uint16(1351), + 4083: uint16(37595), + 4084: uint16(1503), + 4085: uint16(16325), + 4086: uint16(34124), + 4087: uint16(17077), + 4088: uint16(29679), + 4089: uint16(20917), + 4090: uint16(13897), + 4091: uint16(18754), + 4092: uint16(35300), + 4093: uint16(37700), + 4094: uint16(6619), + 4095: uint16(33518), + 4096: uint16(15560), + 4097: uint16(30780), + 4098: uint16(26436), + 4099: uint16(25311), + 4100: uint16(18739), + 4101: uint16(35242), + 4102: uint16(672), + 4103: uint16(27571), + 4104: uint16(4869), + 4105: uint16(20395), + 4106: uint16(9453), + 4107: uint16(20488), + 4108: uint16(27945), + 4109: uint16(31364), + 4110: uint16(13824), + 4111: uint16(19121), + 4112: uint16(9491), + 4114: uint16(894), + 4115: uint16(24484), + 4116: uint16(896), + 4117: uint16(839), + 4118: uint16(28379), + 4119: uint16(1055), + 4121: uint16(20737), + 4122: uint16(13434), + 4123: uint16(20750), + 4124: uint16(39020), + 4125: uint16(14147), + 4126: uint16(33814), + 4127: uint16(18852), + 4128: uint16(1159), + 4129: uint16(20832), + 4130: uint16(13236), + 4131: uint16(20842), + 4132: uint16(3071), + 4133: uint16(8444), + 4134: uint16(741), + 4135: uint16(9520), + 4136: uint16(1422), + 4137: uint16(12851), + 4138: uint16(6531), + 4139: uint16(23426), + 4140: uint16(34685), + 4141: uint16(1459), + 4142: uint16(15513), + 4143: uint16(20914), + 4144: uint16(20920), + 4145: uint16(40244), + 4146: uint16(20937), + 4147: uint16(20943), + 4148: uint16(20945), + 4149: uint16(15580), + 4150: uint16(20947), + 4151: uint16(19110), + 4152: uint16(20915), + 4153: uint16(20962), + 4154: uint16(21314), + 4155: uint16(20973), + 4156: uint16(33741), + 4157: uint16(26942), + 4158: uint16(14125), + 4159: uint16(24443), + 4160: uint16(21003), + 4161: uint16(21030), + 4162: uint16(21052), + 4163: uint16(21173), + 4164: uint16(21079), + 4165: uint16(21140), + 4166: uint16(21177), + 4167: uint16(21189), + 4168: uint16(31765), + 4169: uint16(34114), + 4170: uint16(21216), + 4171: uint16(34317), + 4172: uint16(27411), + 4174: uint16(35550), + 4175: uint16(21833), + 4176: uint16(28377), + 4177: uint16(16256), + 4178: uint16(2388), + 4179: uint16(16364), + 4180: uint16(21299), + 4182: uint16(3042), + 4183: uint16(27851), + 4184: uint16(5926), + 4185: uint16(26651), + 4186: uint16(29653), + 4187: uint16(24650), + 4188: uint16(16042), + 4189: uint16(14540), + 4190: uint16(5864), + 4191: uint16(29149), + 4192: uint16(17570), + 4193: uint16(21357), + 4194: uint16(21364), + 4195: uint16(34475), + 4196: uint16(21374), + 4198: uint16(5526), + 4199: uint16(5651), + 4200: uint16(30694), + 4201: uint16(21395), + 4202: uint16(35483), + 4203: uint16(21408), + 4204: uint16(21419), + 4205: uint16(21422), + 4206: uint16(29607), + 4207: uint16(22386), + 4208: uint16(16217), + 4209: uint16(29596), + 4210: uint16(21441), + 4211: uint16(21445), + 4212: uint16(27721), + 4213: uint16(20041), + 4214: uint16(22526), + 4215: uint16(21465), + 4216: uint16(15019), + 4217: uint16(2959), + 4218: uint16(21472), + 4219: uint16(16363), + 4220: uint16(11683), + 4221: uint16(21494), + 4222: uint16(3191), + 4223: uint16(21523), + 4224: uint16(28793), + 4225: uint16(21803), + 4226: uint16(26199), + 4227: uint16(27995), + 4228: uint16(21613), + 4229: uint16(27475), + 4230: uint16(3444), + 4231: uint16(21853), + 4232: uint16(21647), + 4233: uint16(21668), + 4234: uint16(18342), + 4235: uint16(5901), + 4236: uint16(3805), + 4237: uint16(15796), + 4238: uint16(3405), + 4239: uint16(35260), + 4240: uint16(9880), + 4241: uint16(21831), + 4242: uint16(19693), + 4243: uint16(21551), + 4244: uint16(29719), + 4245: uint16(21894), + 4246: uint16(21929), + 4248: uint16(6359), + 4249: uint16(16442), + 4250: uint16(17746), + 4251: uint16(17461), + 4252: uint16(26291), + 4253: uint16(4276), + 4254: uint16(22071), + 4255: uint16(26317), + 4256: uint16(12938), + 4257: uint16(26276), + 4258: uint16(26285), + 4259: uint16(22093), + 4260: uint16(22095), + 4261: uint16(30961), + 4262: uint16(22257), + 4263: uint16(38791), + 4264: uint16(21502), + 4265: uint16(22272), + 4266: uint16(22255), + 4267: uint16(22253), + 4268: uint16(35686), + 4269: uint16(13859), + 4270: uint16(4687), + 4271: uint16(22342), + 4272: uint16(16805), + 4273: uint16(27758), + 4274: uint16(28811), + 4275: uint16(22338), + 4276: uint16(14001), + 4277: uint16(27774), + 4278: uint16(22502), + 4279: uint16(5142), + 4280: uint16(22531), + 4281: uint16(5204), + 4282: uint16(17251), + 4283: uint16(22566), + 4284: uint16(19445), + 4285: uint16(22620), + 4286: uint16(22698), + 4287: uint16(13665), + 4288: uint16(22752), + 4289: uint16(22748), + 4290: uint16(4668), + 4291: uint16(22779), + 4292: uint16(23551), + 4293: uint16(22339), + 4294: uint16(41296), + 4295: uint16(17016), + 4296: uint16(37843), + 4297: uint16(13729), + 4298: uint16(22815), + 4299: uint16(26790), + 4300: uint16(14019), + 4301: uint16(28249), + 4302: uint16(5694), + 4303: uint16(23076), + 4304: uint16(21843), + 4305: uint16(5778), + 4306: uint16(34053), + 4307: uint16(22985), + 4308: uint16(3406), + 4309: uint16(27777), + 4310: uint16(27946), + 4311: uint16(6108), + 4312: uint16(23001), + 4313: uint16(6139), + 4314: uint16(6066), + 4315: uint16(28070), + 4316: uint16(28017), + 4317: uint16(6184), + 4318: uint16(5845), + 4319: uint16(23033), + 4320: uint16(28229), + 4321: uint16(23211), + 4322: uint16(23139), + 4323: uint16(14054), + 4324: uint16(18857), + 4326: uint16(14088), + 4327: uint16(23190), + 4328: uint16(29797), + 4329: uint16(23251), + 4330: uint16(28577), + 4331: uint16(9556), + 4332: uint16(15749), + 4333: uint16(6417), + 4334: uint16(14130), + 4335: uint16(5816), + 4336: uint16(24195), + 4337: uint16(21200), + 4338: uint16(23414), + 4339: uint16(25992), + 4340: uint16(23420), + 4341: uint16(31246), + 4342: uint16(16388), + 4343: uint16(18525), + 4344: uint16(516), + 4345: uint16(23509), + 4346: uint16(24928), + 4347: uint16(6708), + 4348: uint16(22988), + 4349: uint16(1445), + 4350: uint16(23539), + 4351: uint16(23453), + 4352: uint16(19728), + 4353: uint16(23557), + 4354: uint16(6980), + 4355: uint16(23571), + 4356: uint16(29646), + 4357: uint16(23572), + 4358: uint16(7333), + 4359: uint16(27432), + 4360: uint16(23625), + 4361: uint16(18653), + 4362: uint16(23685), + 4363: uint16(23785), + 4364: uint16(23791), + 4365: uint16(23947), + 4366: uint16(7673), + 4367: uint16(7735), + 4368: uint16(23824), + 4369: uint16(23832), + 4370: uint16(23878), + 4371: uint16(7844), + 4372: uint16(23738), + 4373: uint16(24023), + 4374: uint16(33532), + 4375: uint16(14381), + 4376: uint16(18689), + 4377: uint16(8265), + 4378: uint16(8563), + 4379: uint16(33415), + 4380: uint16(14390), + 4381: uint16(15298), + 4382: uint16(24110), + 4383: uint16(27274), + 4385: uint16(24186), + 4386: uint16(17596), + 4387: uint16(3283), + 4388: uint16(21414), + 4389: uint16(20151), + 4391: uint16(21416), + 4392: uint16(6001), + 4393: uint16(24073), + 4394: uint16(24308), + 4395: uint16(33922), + 4396: uint16(24313), + 4397: uint16(24315), + 4398: uint16(14496), + 4399: uint16(24316), + 4400: uint16(26686), + 4401: uint16(37915), + 4402: uint16(24333), + 4403: uint16(449), + 4404: uint16(63636), + 4405: uint16(15070), + 4406: uint16(18606), + 4407: uint16(4922), + 4408: uint16(24378), + 4409: uint16(26760), + 4410: uint16(9168), + 4412: uint16(9329), + 4413: uint16(24419), + 4414: uint16(38845), + 4415: uint16(28270), + 4416: uint16(24434), + 4417: uint16(37696), + 4418: uint16(35382), + 4419: uint16(24487), + 4420: uint16(23990), + 4421: uint16(15711), + 4422: uint16(21072), + 4423: uint16(8042), + 4424: uint16(28920), + 4425: uint16(9832), + 4426: uint16(37334), + 4427: uint16(670), + 4428: uint16(35369), + 4429: uint16(24625), + 4430: uint16(26245), + 4431: uint16(6263), + 4432: uint16(14691), + 4433: uint16(15815), + 4434: uint16(13881), + 4435: uint16(22416), + 4436: uint16(10164), + 4437: uint16(31089), + 4438: uint16(15936), + 4439: uint16(24734), + 4441: uint16(24755), + 4442: uint16(18818), + 4443: uint16(18831), + 4444: uint16(31315), + 4445: uint16(29860), + 4446: uint16(20705), + 4447: uint16(23200), + 4448: uint16(24932), + 4449: uint16(33828), + 4450: uint16(24898), + 4451: uint16(63654), + 4452: uint16(28370), + 4453: uint16(24961), + 4454: uint16(20980), + 4455: uint16(1622), + 4456: uint16(24967), + 4457: uint16(23466), + 4458: uint16(16311), + 4459: uint16(10335), + 4460: uint16(25043), + 4461: uint16(35741), + 4462: uint16(39261), + 4463: uint16(25040), + 4464: uint16(14642), + 4465: uint16(10624), + 4466: uint16(10433), + 4467: uint16(24611), + 4468: uint16(24924), + 4469: uint16(25886), + 4470: uint16(25483), + 4471: uint16(280), + 4472: uint16(25285), + 4473: uint16(6000), + 4474: uint16(25301), + 4475: uint16(11789), + 4476: uint16(25452), + 4477: uint16(18911), + 4478: uint16(14871), + 4479: uint16(25656), + 4480: uint16(25592), + 4481: uint16(5006), + 4482: uint16(6140), + 4484: uint16(28554), + 4485: uint16(11830), + 4486: uint16(38932), + 4487: uint16(16524), + 4488: uint16(22301), + 4489: uint16(25825), + 4490: uint16(25829), + 4491: uint16(38011), + 4492: uint16(14950), + 4493: uint16(25658), + 4494: uint16(14935), + 4495: uint16(25933), + 4496: uint16(28438), + 4497: uint16(18984), + 4498: uint16(18979), + 4499: uint16(25989), + 4500: uint16(25965), + 4501: uint16(25951), + 4502: uint16(12414), + 4503: uint16(26037), + 4504: uint16(18752), + 4505: uint16(19255), + 4506: uint16(26065), + 4507: uint16(16600), + 4508: uint16(6185), + 4509: uint16(26080), + 4510: uint16(26083), + 4511: uint16(24543), + 4512: uint16(13312), + 4513: uint16(26136), + 4514: uint16(12791), + 4515: uint16(12792), + 4516: uint16(26180), + 4517: uint16(12708), + 4518: uint16(12709), + 4519: uint16(26187), + 4520: uint16(3701), + 4521: uint16(26215), + 4522: uint16(20966), + 4523: uint16(26227), + 4525: uint16(7741), + 4526: uint16(12849), + 4527: uint16(34292), + 4528: uint16(12744), + 4529: uint16(21267), + 4530: uint16(30661), + 4531: uint16(10487), + 4532: uint16(39332), + 4533: uint16(26370), + 4534: uint16(17308), + 4535: uint16(18977), + 4536: uint16(15147), + 4537: uint16(27130), + 4538: uint16(14274), + 4540: uint16(26471), + 4541: uint16(26466), + 4542: uint16(16845), + 4543: uint16(37101), + 4544: uint16(26583), + 4545: uint16(17641), + 4546: uint16(26658), + 4547: uint16(28240), + 4548: uint16(37436), + 4549: uint16(26625), + 4550: uint16(13286), + 4551: uint16(28064), + 4552: uint16(26717), + 4553: uint16(13423), + 4554: uint16(27105), + 4555: uint16(27147), + 4556: uint16(35551), + 4557: uint16(26995), + 4558: uint16(26819), + 4559: uint16(13773), + 4560: uint16(26881), + 4561: uint16(26880), + 4562: uint16(15666), + 4563: uint16(14849), + 4564: uint16(13884), + 4565: uint16(15232), + 4566: uint16(26540), + 4567: uint16(26977), + 4568: uint16(35402), + 4569: uint16(17148), + 4570: uint16(26934), + 4571: uint16(27032), + 4572: uint16(15265), + 4573: uint16(969), + 4574: uint16(33635), + 4575: uint16(20624), + 4576: uint16(27129), + 4577: uint16(13913), + 4578: uint16(8490), + 4579: uint16(27205), + 4580: uint16(14083), + 4581: uint16(27293), + 4582: uint16(15347), + 4583: uint16(26545), + 4584: uint16(27336), + 4585: uint16(37276), + 4586: uint16(15373), + 4587: uint16(27421), + 4588: uint16(2339), + 4589: uint16(24798), + 4590: uint16(27445), + 4591: uint16(27508), + 4592: uint16(10189), + 4593: uint16(28341), + 4594: uint16(15067), + 4595: uint16(949), + 4596: uint16(6488), + 4597: uint16(14144), + 4598: uint16(21537), + 4599: uint16(15194), + 4600: uint16(27617), + 4601: uint16(16124), + 4602: uint16(27612), + 4603: uint16(27703), + 4604: uint16(9355), + 4605: uint16(18673), + 4606: uint16(27473), + 4607: uint16(27738), + 4608: uint16(33318), + 4609: uint16(27769), + 4610: uint16(15804), + 4611: uint16(17605), + 4612: uint16(15805), + 4613: uint16(16804), + 4614: uint16(18700), + 4615: uint16(18688), + 4616: uint16(15561), + 4617: uint16(14053), + 4618: uint16(15595), + 4619: uint16(3378), + 4620: uint16(39811), + 4621: uint16(12793), + 4622: uint16(9361), + 4623: uint16(32655), + 4624: uint16(26679), + 4625: uint16(27941), + 4626: uint16(28065), + 4627: uint16(28139), + 4628: uint16(28054), + 4629: uint16(27996), + 4630: uint16(28284), + 4631: uint16(28420), + 4632: uint16(18815), + 4633: uint16(16517), + 4634: uint16(28274), + 4635: uint16(34099), + 4636: uint16(28532), + 4637: uint16(20935), + 4640: uint16(33838), + 4641: uint16(35617), + 4643: uint16(15919), + 4644: uint16(29779), + 4645: uint16(16258), + 4646: uint16(31180), + 4647: uint16(28239), + 4648: uint16(23185), + 4649: uint16(12363), + 4650: uint16(28664), + 4651: uint16(14093), + 4652: uint16(28573), + 4653: uint16(15920), + 4654: uint16(28410), + 4655: uint16(5271), + 4656: uint16(16445), + 4657: uint16(17749), + 4658: uint16(37872), + 4659: uint16(28484), + 4660: uint16(28508), + 4661: uint16(15694), + 4662: uint16(28532), + 4663: uint16(37232), + 4664: uint16(15675), + 4665: uint16(28575), + 4666: uint16(16708), + 4667: uint16(28627), + 4668: uint16(16529), + 4669: uint16(16725), + 4670: uint16(16441), + 4671: uint16(16368), + 4672: uint16(16308), + 4673: uint16(16703), + 4674: uint16(20959), + 4675: uint16(16726), + 4676: uint16(16727), + 4677: uint16(16704), + 4678: uint16(25053), + 4679: uint16(28747), + 4680: uint16(28798), + 4681: uint16(28839), + 4682: uint16(28801), + 4683: uint16(28876), + 4684: uint16(28885), + 4685: uint16(28886), + 4686: uint16(28895), + 4687: uint16(16644), + 4688: uint16(15848), + 4689: uint16(29108), + 4690: uint16(29078), + 4691: uint16(17015), + 4692: uint16(28971), + 4693: uint16(28997), + 4694: uint16(23176), + 4695: uint16(29002), + 4697: uint16(23708), + 4698: uint16(17253), + 4699: uint16(29007), + 4700: uint16(37730), + 4701: uint16(17089), + 4702: uint16(28972), + 4703: uint16(17498), + 4704: uint16(18983), + 4705: uint16(18978), + 4706: uint16(29114), + 4707: uint16(35816), + 4708: uint16(28861), + 4709: uint16(29198), + 4710: uint16(37954), + 4711: uint16(29205), + 4712: uint16(22801), + 4713: uint16(37955), + 4714: uint16(29220), + 4715: uint16(37697), + 4716: uint16(22021), + 4717: uint16(29230), + 4718: uint16(29248), + 4719: uint16(18804), + 4720: uint16(26813), + 4721: uint16(29269), + 4722: uint16(29271), + 4723: uint16(15957), + 4724: uint16(12356), + 4725: uint16(26637), + 4726: uint16(28477), + 4727: uint16(29314), + 4729: uint16(29483), + 4730: uint16(18467), + 4731: uint16(34859), + 4732: uint16(18669), + 4733: uint16(34820), + 4734: uint16(29480), + 4735: uint16(29486), + 4736: uint16(29647), + 4737: uint16(29610), + 4738: uint16(3130), + 4739: uint16(27182), + 4740: uint16(29641), + 4741: uint16(29769), + 4742: uint16(16866), + 4743: uint16(5863), + 4744: uint16(18980), + 4745: uint16(26147), + 4746: uint16(14021), + 4747: uint16(18871), + 4748: uint16(18829), + 4749: uint16(18939), + 4750: uint16(29687), + 4751: uint16(29717), + 4752: uint16(26883), + 4753: uint16(18982), + 4754: uint16(29753), + 4755: uint16(1475), + 4756: uint16(16087), + 4758: uint16(10413), + 4759: uint16(29792), + 4760: uint16(36530), + 4761: uint16(29767), + 4762: uint16(29668), + 4763: uint16(29814), + 4764: uint16(33721), + 4765: uint16(29804), + 4766: uint16(14128), + 4767: uint16(29812), + 4768: uint16(37873), + 4769: uint16(27180), + 4770: uint16(29826), + 4771: uint16(18771), + 4772: uint16(19084), + 4773: uint16(16735), + 4774: uint16(19065), + 4775: uint16(35727), + 4776: uint16(23366), + 4777: uint16(35843), + 4778: uint16(6302), + 4779: uint16(29896), + 4780: uint16(6536), + 4781: uint16(29966), + 4783: uint16(29982), + 4784: uint16(36569), + 4785: uint16(6731), + 4786: uint16(23511), + 4787: uint16(36524), + 4788: uint16(37765), + 4789: uint16(30029), + 4790: uint16(30026), + 4791: uint16(30055), + 4792: uint16(30062), + 4793: uint16(20354), + 4794: uint16(16132), + 4795: uint16(19731), + 4796: uint16(30094), + 4797: uint16(29789), + 4798: uint16(30110), + 4799: uint16(30132), + 4800: uint16(30210), + 4801: uint16(30252), + 4802: uint16(30289), + 4803: uint16(30287), + 4804: uint16(30319), + 4805: uint16(30326), + 4806: uint16(25589), + 4807: uint16(30352), + 4808: uint16(33263), + 4809: uint16(14328), + 4810: uint16(26897), + 4811: uint16(26894), + 4812: uint16(30369), + 4813: uint16(30373), + 4814: uint16(30391), + 4815: uint16(30412), + 4816: uint16(28575), + 4817: uint16(33890), + 4818: uint16(20637), + 4819: uint16(20861), + 4820: uint16(7708), + 4821: uint16(30494), + 4822: uint16(30502), + 4823: uint16(30528), + 4824: uint16(25775), + 4825: uint16(21024), + 4826: uint16(30552), + 4827: uint16(12972), + 4828: uint16(30639), + 4829: uint16(35172), + 4830: uint16(35176), + 4831: uint16(5825), + 4832: uint16(30708), + 4834: uint16(4982), + 4835: uint16(18962), + 4836: uint16(26826), + 4837: uint16(30895), + 4838: uint16(30919), + 4839: uint16(30931), + 4840: uint16(38565), + 4841: uint16(31022), + 4842: uint16(21984), + 4843: uint16(30935), + 4844: uint16(31028), + 4845: uint16(30897), + 4846: uint16(30220), + 4847: uint16(36792), + 4848: uint16(34948), + 4849: uint16(35627), + 4850: uint16(24707), + 4851: uint16(9756), + 4852: uint16(31110), + 4853: uint16(35072), + 4854: uint16(26882), + 4855: uint16(31104), + 4856: uint16(22615), + 4857: uint16(31133), + 4858: uint16(31545), + 4859: uint16(31036), + 4860: uint16(31145), + 4861: uint16(28202), + 4862: uint16(28966), + 4863: uint16(16040), + 4864: uint16(31174), + 4865: uint16(37133), + 4866: uint16(31188), + 4867: uint16(1312), + 4868: uint16(17503), + 4869: uint16(21007), + 4870: uint16(47234), + 4871: uint16(248), + 4872: uint16(16384), + 4873: uint16(43296), + 4874: uint16(1102), + 4877: uint16(2868), + 4878: uint16(1), + 4886: uint16(3072), + 4887: uint16(64), + 4891: uint16(1024), + 4892: uint16(88), + 4893: uint16(60), + 4896: uint16(23680), + 4897: uint16(56493), + 4898: uint16(48115), + 4899: uint16(17353), + 4900: uint16(60910), + 4901: uint16(4004), + 4902: uint16(49446), + 4903: uint16(30363), + 4904: uint16(61426), + 4905: uint16(64478), + 4906: uint16(63482), + 4907: uint16(12815), + 4908: uint16(44868), + 4909: uint16(61438), + 4910: uint16(65277), + 4911: uint16(24593), + 4912: uint16(176), + 4913: uint16(8448), + 4914: uint16(33049), + 4915: uint16(4128), + 4916: uint16(43144), + 4917: uint16(8544), + 4918: uint16(9321), + 4919: uint16(17408), + 4920: uint16(50313), + 4922: uint16(16387), + 4923: uint16(53), + 4924: uint16(33859), + 4925: uint16(20785), + 4926: uint16(26771), + 4927: uint16(514), + 4933: uint16(16384), + 4934: uint16(256), + 4935: uint16(44160), + 4936: uint16(33380), + 4937: uint16(35904), + 4938: uint16(37025), + 4939: uint16(20484), + 4940: uint16(54368), + 4941: uint16(53760), + 4942: uint16(6186), + 4943: uint16(26781), + 4944: uint16(38709), + 4945: uint16(55375), + 4946: uint16(8440), + 4947: uint16(33476), + 4948: uint16(10268), + 4949: uint16(30082), + 4950: uint16(660), + 4951: uint16(16440), + 4952: uint16(41376), + 4953: uint16(4293), + 4954: uint16(19825), + 4955: uint16(3524), + 4956: uint16(47512), + 4957: uint16(23390), + 4958: uint16(17153), + 4959: uint16(39327), + 4960: uint16(30723), + 4961: uint16(57888), + 4962: uint16(2079), + 4963: uint16(393), + 4964: uint16(16585), + 4965: uint16(775), + 4966: uint16(39437), + 4967: uint16(21136), + 4968: uint16(20433), + 4969: uint16(892), + 4970: uint16(8450), + 4971: uint16(49184), + 4972: uint16(4974), + 4973: uint16(46467), + 4974: uint16(62939), + 4975: uint16(30693), + 4976: uint16(20368), + 4977: uint16(39447), + 4978: uint16(5942), + 4979: uint16(12), + 4980: uint16(47726), + 4981: uint16(12041), + 4982: uint16(21600), + 4983: uint16(7680), + 4984: uint16(26744), + 4985: uint16(28706), + 4986: uint16(40534), + 4987: uint16(62245), + 4988: uint16(46990), + 4989: uint16(2839), + 4990: uint16(59119), + 4991: uint16(6007), + 4992: uint16(7003), + 4993: uint16(4289), + 4994: uint16(36248), + 4995: uint16(6162), + 4996: uint16(53174), + 4997: uint16(12545), + 4998: uint16(6770), + 4999: uint16(11355), + 5000: uint16(49334), + 5001: uint16(57888), + 5002: uint16(23747), + 5003: uint16(7042), + 5004: uint16(56032), + 5005: uint16(34254), + 5006: uint16(16598), + 5007: uint16(21673), + 5008: uint16(53259), + 5009: uint16(18447), + 5010: uint16(16452), + 5011: uint16(2320), + 5012: uint16(16596), + 5013: uint16(15278), + 5014: uint16(7780), + 5015: uint16(11076), + 5016: uint16(2071), + 5017: uint16(33414), + 5018: uint16(6198), + 5019: uint16(35232), + 5020: uint16(40167), + 5021: uint16(2139), + 5022: uint16(900), + 5023: uint16(55810), + 5024: uint16(60560), + 5025: uint16(34779), + 5026: uint16(49029), + 5027: uint16(44450), + 5028: uint16(36509), + 5029: uint16(39069), + 5030: uint16(9504), + 5031: uint16(70), + 5032: uint16(40774), + 5033: uint16(58239), + 5034: uint16(51669), + 5035: uint16(62596), + 5036: uint16(19926), + 5037: uint16(58118), + 5038: uint16(6326), + 5039: uint16(2322), + 5041: uint16(1024), + 5043: uint16(32), + 5045: uint16(512), + 5050: uint16(8192), + 5057: uint16(8), + 5058: uint16(36352), + 5059: uint16(28280), + 5060: uint16(16223), + 5061: uint16(56702), + 5062: uint16(63293), + 5063: uint16(39932), + 5064: uint16(44796), + 5065: uint16(65490), + 5066: uint16(27535), + 5067: uint16(59377), + 5068: uint16(47807), + 5069: uint16(28334), + 5070: uint16(61207), + 5071: uint16(42972), + 5072: uint16(46654), + 5073: uint16(30645), + 5074: uint16(37577), + 5075: uint16(42455), + 5076: uint16(19126), + 5077: uint16(39790), + 5078: uint16(33209), + 5079: uint16(26445), + 5080: uint16(21758), + 5081: uint16(39921), + 5082: uint16(65122), + 5083: uint16(21103), + 5084: uint16(14039), + 5085: uint16(49150), + 5086: uint16(17705), + 5087: uint16(63873), + 5088: uint16(26045), + 5089: uint16(17062), + 5090: uint16(57), + 5091: uint16(16896), + 5092: uint16(36704), + 5093: uint16(37888), + 5094: uint16(16448), + 5095: uint16(45010), + 5096: uint16(53719), + 5097: uint16(219), + 5098: uint16(39072), + 5099: uint16(31666), + 5100: uint16(20998), + 5101: uint16(38944), + 5102: uint16(51222), + 5103: uint16(2365), + 5105: uint16(1), + 5107: uint16(2561), + 5108: uint16(2226), + 5109: uint16(128), + 5111: uint16(34820), + 5112: uint16(5152), + 5113: uint16(19472), + 5115: uint16(4), + 5116: uint16(17569), + 5117: uint16(16), + 5118: uint16(321), + 5119: uint16(2048), + 5120: uint16(61504), + 5121: uint16(20447), + 5122: uint16(22582), + 5123: uint16(62961), + 5124: uint16(32949), + 5125: uint16(26613), + 5126: uint16(16512), + 5127: uint16(20480), + 5128: uint16(16718), + 5129: uint16(33992), + 5130: uint16(23040), + 5131: uint16(55392), + 5132: uint16(11009), + 5133: uint16(20481), + 5134: uint16(5793), + 5135: uint16(16580), + 5136: uint16(28402), + 5137: uint16(44049), + 5138: uint16(14624), + 5139: uint16(49348), + 5140: uint16(1800), + 5141: uint16(2316), + 5142: uint16(38552), + 5143: uint16(39876), + 5144: uint16(7184), + 5145: uint16(27800), + 5146: uint16(10886), + 5147: uint16(422), + 5148: uint16(4422), + 5149: uint16(58733), + 5150: uint16(50379), + 5151: uint16(37568), + 5152: uint16(8464), + 5153: uint16(4630), + 5154: uint16(29341), + 5155: uint16(27124), + 5156: uint16(5902), + 5157: uint16(41514), + 5158: uint16(62593), + 5159: uint16(123), + 5160: uint16(41992), + 5161: uint16(36875), + 5162: uint16(11280), + 5163: uint16(14796), + 5164: uint16(330), + 5165: uint16(5872), + 5166: uint16(2571), + 5167: uint16(3136), + 5168: uint16(59933), + 5169: uint16(17420), + 5170: uint16(17678), + 5171: uint16(2), +} + +var _ksc = [93][94]uint16{ + 0: { + 0: uint16(12288), + 1: uint16(12289), + 2: uint16(12290), + 3: uint16(183), + 4: uint16(8229), + 5: uint16(8230), + 6: uint16(168), + 7: uint16(12291), + 8: uint16(173), + 9: uint16(8213), + 10: uint16(8741), + 11: uint16(65340), + 12: uint16(8764), + 13: uint16(8216), + 14: uint16(8217), + 15: uint16(8220), + 16: uint16(8221), + 17: uint16(12308), + 18: uint16(12309), + 19: uint16(12296), + 20: uint16(12297), + 21: uint16(12298), + 22: uint16(12299), + 23: uint16(12300), + 24: uint16(12301), + 25: uint16(12302), + 26: uint16(12303), + 27: uint16(12304), + 28: uint16(12305), + 29: uint16(177), + 30: uint16(215), + 31: uint16(247), + 32: uint16(8800), + 33: uint16(8804), + 34: uint16(8805), + 35: uint16(8734), + 36: uint16(8756), + 37: uint16(176), + 38: uint16(8242), + 39: uint16(8243), + 40: uint16(8451), + 41: uint16(8491), + 42: uint16(65504), + 43: uint16(65505), + 44: uint16(65509), + 45: uint16(9794), + 46: uint16(9792), + 47: uint16(8736), + 48: uint16(8869), + 49: uint16(8978), + 50: uint16(8706), + 51: uint16(8711), + 52: uint16(8801), + 53: uint16(8786), + 54: uint16(167), + 55: uint16(8251), + 56: uint16(9734), + 57: uint16(9733), + 58: uint16(9675), + 59: uint16(9679), + 60: uint16(9678), + 61: uint16(9671), + 62: uint16(9670), + 63: uint16(9633), + 64: uint16(9632), + 65: uint16(9651), + 66: uint16(9650), + 67: uint16(9661), + 68: uint16(9660), + 69: uint16(8594), + 70: uint16(8592), + 71: uint16(8593), + 72: uint16(8595), + 73: uint16(8596), + 74: uint16(12307), + 75: uint16(8810), + 76: uint16(8811), + 77: uint16(8730), + 78: uint16(8765), + 79: uint16(8733), + 80: uint16(8757), + 81: uint16(8747), + 82: uint16(8748), + 83: uint16(8712), + 84: uint16(8715), + 85: uint16(8838), + 86: uint16(8839), + 87: uint16(8834), + 88: uint16(8835), + 89: uint16(8746), + 90: uint16(8745), + 91: uint16(8743), + 92: uint16(8744), + 93: uint16(65506), + }, + 1: { + 0: uint16(8658), + 1: uint16(8660), + 2: uint16(8704), + 3: uint16(8707), + 4: uint16(180), + 5: uint16(65374), + 6: uint16(711), + 7: uint16(728), + 8: uint16(733), + 9: uint16(730), + 10: uint16(729), + 11: uint16(184), + 12: uint16(731), + 13: uint16(161), + 14: uint16(191), + 15: uint16(720), + 16: uint16(8750), + 17: uint16(8721), + 18: uint16(8719), + 19: uint16(164), + 20: uint16(8457), + 21: uint16(8240), + 22: uint16(9665), + 23: uint16(9664), + 24: uint16(9655), + 25: uint16(9654), + 26: uint16(9828), + 27: uint16(9824), + 28: uint16(9825), + 29: uint16(9829), + 30: uint16(9831), + 31: uint16(9827), + 32: uint16(8857), + 33: uint16(9672), + 34: uint16(9635), + 35: uint16(9680), + 36: uint16(9681), + 37: uint16(9618), + 38: uint16(9636), + 39: uint16(9637), + 40: uint16(9640), + 41: uint16(9639), + 42: uint16(9638), + 43: uint16(9641), + 44: uint16(9832), + 45: uint16(9743), + 46: uint16(9742), + 47: uint16(9756), + 48: uint16(9758), + 49: uint16(182), + 50: uint16(8224), + 51: uint16(8225), + 52: uint16(8597), + 53: uint16(8599), + 54: uint16(8601), + 55: uint16(8598), + 56: uint16(8600), + 57: uint16(9837), + 58: uint16(9833), + 59: uint16(9834), + 60: uint16(9836), + 61: uint16(12927), + 62: uint16(12828), + 63: uint16(8470), + 64: uint16(13255), + 65: uint16(8482), + 66: uint16(13250), + 67: uint16(13272), + 68: uint16(8481), + 69: uint16(8364), + 70: uint16(174), + }, + 2: { + 0: uint16(65281), + 1: uint16(65282), + 2: uint16(65283), + 3: uint16(65284), + 4: uint16(65285), + 5: uint16(65286), + 6: uint16(65287), + 7: uint16(65288), + 8: uint16(65289), + 9: uint16(65290), + 10: uint16(65291), + 11: uint16(65292), + 12: uint16(65293), + 13: uint16(65294), + 14: uint16(65295), + 15: uint16(65296), + 16: uint16(65297), + 17: uint16(65298), + 18: uint16(65299), + 19: uint16(65300), + 20: uint16(65301), + 21: uint16(65302), + 22: uint16(65303), + 23: uint16(65304), + 24: uint16(65305), + 25: uint16(65306), + 26: uint16(65307), + 27: uint16(65308), + 28: uint16(65309), + 29: uint16(65310), + 30: uint16(65311), + 31: uint16(65312), + 32: uint16(65313), + 33: uint16(65314), + 34: uint16(65315), + 35: uint16(65316), + 36: uint16(65317), + 37: uint16(65318), + 38: uint16(65319), + 39: uint16(65320), + 40: uint16(65321), + 41: uint16(65322), + 42: uint16(65323), + 43: uint16(65324), + 44: uint16(65325), + 45: uint16(65326), + 46: uint16(65327), + 47: uint16(65328), + 48: uint16(65329), + 49: uint16(65330), + 50: uint16(65331), + 51: uint16(65332), + 52: uint16(65333), + 53: uint16(65334), + 54: uint16(65335), + 55: uint16(65336), + 56: uint16(65337), + 57: uint16(65338), + 58: uint16(65339), + 59: uint16(65510), + 60: uint16(65341), + 61: uint16(65342), + 62: uint16(65343), + 63: uint16(65344), + 64: uint16(65345), + 65: uint16(65346), + 66: uint16(65347), + 67: uint16(65348), + 68: uint16(65349), + 69: uint16(65350), + 70: uint16(65351), + 71: uint16(65352), + 72: uint16(65353), + 73: uint16(65354), + 74: uint16(65355), + 75: uint16(65356), + 76: uint16(65357), + 77: uint16(65358), + 78: uint16(65359), + 79: uint16(65360), + 80: uint16(65361), + 81: uint16(65362), + 82: uint16(65363), + 83: uint16(65364), + 84: uint16(65365), + 85: uint16(65366), + 86: uint16(65367), + 87: uint16(65368), + 88: uint16(65369), + 89: uint16(65370), + 90: uint16(65371), + 91: uint16(65372), + 92: uint16(65373), + 93: uint16(65507), + }, + 3: { + 0: uint16(12593), + 1: uint16(12594), + 2: uint16(12595), + 3: uint16(12596), + 4: uint16(12597), + 5: uint16(12598), + 6: uint16(12599), + 7: uint16(12600), + 8: uint16(12601), + 9: uint16(12602), + 10: uint16(12603), + 11: uint16(12604), + 12: uint16(12605), + 13: uint16(12606), + 14: uint16(12607), + 15: uint16(12608), + 16: uint16(12609), + 17: uint16(12610), + 18: uint16(12611), + 19: uint16(12612), + 20: uint16(12613), + 21: uint16(12614), + 22: uint16(12615), + 23: uint16(12616), + 24: uint16(12617), + 25: uint16(12618), + 26: uint16(12619), + 27: uint16(12620), + 28: uint16(12621), + 29: uint16(12622), + 30: uint16(12623), + 31: uint16(12624), + 32: uint16(12625), + 33: uint16(12626), + 34: uint16(12627), + 35: uint16(12628), + 36: uint16(12629), + 37: uint16(12630), + 38: uint16(12631), + 39: uint16(12632), + 40: uint16(12633), + 41: uint16(12634), + 42: uint16(12635), + 43: uint16(12636), + 44: uint16(12637), + 45: uint16(12638), + 46: uint16(12639), + 47: uint16(12640), + 48: uint16(12641), + 49: uint16(12642), + 50: uint16(12643), + 51: uint16(12644), + 52: uint16(12645), + 53: uint16(12646), + 54: uint16(12647), + 55: uint16(12648), + 56: uint16(12649), + 57: uint16(12650), + 58: uint16(12651), + 59: uint16(12652), + 60: uint16(12653), + 61: uint16(12654), + 62: uint16(12655), + 63: uint16(12656), + 64: uint16(12657), + 65: uint16(12658), + 66: uint16(12659), + 67: uint16(12660), + 68: uint16(12661), + 69: uint16(12662), + 70: uint16(12663), + 71: uint16(12664), + 72: uint16(12665), + 73: uint16(12666), + 74: uint16(12667), + 75: uint16(12668), + 76: uint16(12669), + 77: uint16(12670), + 78: uint16(12671), + 79: uint16(12672), + 80: uint16(12673), + 81: uint16(12674), + 82: uint16(12675), + 83: uint16(12676), + 84: uint16(12677), + 85: uint16(12678), + 86: uint16(12679), + 87: uint16(12680), + 88: uint16(12681), + 89: uint16(12682), + 90: uint16(12683), + 91: uint16(12684), + 92: uint16(12685), + 93: uint16(12686), + }, + 4: { + 0: uint16(8560), + 1: uint16(8561), + 2: uint16(8562), + 3: uint16(8563), + 4: uint16(8564), + 5: uint16(8565), + 6: uint16(8566), + 7: uint16(8567), + 8: uint16(8568), + 9: uint16(8569), + 15: uint16(8544), + 16: uint16(8545), + 17: uint16(8546), + 18: uint16(8547), + 19: uint16(8548), + 20: uint16(8549), + 21: uint16(8550), + 22: uint16(8551), + 23: uint16(8552), + 24: uint16(8553), + 32: uint16(913), + 33: uint16(914), + 34: uint16(915), + 35: uint16(916), + 36: uint16(917), + 37: uint16(918), + 38: uint16(919), + 39: uint16(920), + 40: uint16(921), + 41: uint16(922), + 42: uint16(923), + 43: uint16(924), + 44: uint16(925), + 45: uint16(926), + 46: uint16(927), + 47: uint16(928), + 48: uint16(929), + 49: uint16(931), + 50: uint16(932), + 51: uint16(933), + 52: uint16(934), + 53: uint16(935), + 54: uint16(936), + 55: uint16(937), + 64: uint16(945), + 65: uint16(946), + 66: uint16(947), + 67: uint16(948), + 68: uint16(949), + 69: uint16(950), + 70: uint16(951), + 71: uint16(952), + 72: uint16(953), + 73: uint16(954), + 74: uint16(955), + 75: uint16(956), + 76: uint16(957), + 77: uint16(958), + 78: uint16(959), + 79: uint16(960), + 80: uint16(961), + 81: uint16(963), + 82: uint16(964), + 83: uint16(965), + 84: uint16(966), + 85: uint16(967), + 86: uint16(968), + 87: uint16(969), + }, + 5: { + 0: uint16(9472), + 1: uint16(9474), + 2: uint16(9484), + 3: uint16(9488), + 4: uint16(9496), + 5: uint16(9492), + 6: uint16(9500), + 7: uint16(9516), + 8: uint16(9508), + 9: uint16(9524), + 10: uint16(9532), + 11: uint16(9473), + 12: uint16(9475), + 13: uint16(9487), + 14: uint16(9491), + 15: uint16(9499), + 16: uint16(9495), + 17: uint16(9507), + 18: uint16(9523), + 19: uint16(9515), + 20: uint16(9531), + 21: uint16(9547), + 22: uint16(9504), + 23: uint16(9519), + 24: uint16(9512), + 25: uint16(9527), + 26: uint16(9535), + 27: uint16(9501), + 28: uint16(9520), + 29: uint16(9509), + 30: uint16(9528), + 31: uint16(9538), + 32: uint16(9490), + 33: uint16(9489), + 34: uint16(9498), + 35: uint16(9497), + 36: uint16(9494), + 37: uint16(9493), + 38: uint16(9486), + 39: uint16(9485), + 40: uint16(9502), + 41: uint16(9503), + 42: uint16(9505), + 43: uint16(9506), + 44: uint16(9510), + 45: uint16(9511), + 46: uint16(9513), + 47: uint16(9514), + 48: uint16(9517), + 49: uint16(9518), + 50: uint16(9521), + 51: uint16(9522), + 52: uint16(9525), + 53: uint16(9526), + 54: uint16(9529), + 55: uint16(9530), + 56: uint16(9533), + 57: uint16(9534), + 58: uint16(9536), + 59: uint16(9537), + 60: uint16(9539), + 61: uint16(9540), + 62: uint16(9541), + 63: uint16(9542), + 64: uint16(9543), + 65: uint16(9544), + 66: uint16(9545), + 67: uint16(9546), + }, + 6: { + 0: uint16(13205), + 1: uint16(13206), + 2: uint16(13207), + 3: uint16(8467), + 4: uint16(13208), + 5: uint16(13252), + 6: uint16(13219), + 7: uint16(13220), + 8: uint16(13221), + 9: uint16(13222), + 10: uint16(13209), + 11: uint16(13210), + 12: uint16(13211), + 13: uint16(13212), + 14: uint16(13213), + 15: uint16(13214), + 16: uint16(13215), + 17: uint16(13216), + 18: uint16(13217), + 19: uint16(13218), + 20: uint16(13258), + 21: uint16(13197), + 22: uint16(13198), + 23: uint16(13199), + 24: uint16(13263), + 25: uint16(13192), + 26: uint16(13193), + 27: uint16(13256), + 28: uint16(13223), + 29: uint16(13224), + 30: uint16(13232), + 31: uint16(13233), + 32: uint16(13234), + 33: uint16(13235), + 34: uint16(13236), + 35: uint16(13237), + 36: uint16(13238), + 37: uint16(13239), + 38: uint16(13240), + 39: uint16(13241), + 40: uint16(13184), + 41: uint16(13185), + 42: uint16(13186), + 43: uint16(13187), + 44: uint16(13188), + 45: uint16(13242), + 46: uint16(13243), + 47: uint16(13244), + 48: uint16(13245), + 49: uint16(13246), + 50: uint16(13247), + 51: uint16(13200), + 52: uint16(13201), + 53: uint16(13202), + 54: uint16(13203), + 55: uint16(13204), + 56: uint16(8486), + 57: uint16(13248), + 58: uint16(13249), + 59: uint16(13194), + 60: uint16(13195), + 61: uint16(13196), + 62: uint16(13270), + 63: uint16(13253), + 64: uint16(13229), + 65: uint16(13230), + 66: uint16(13231), + 67: uint16(13275), + 68: uint16(13225), + 69: uint16(13226), + 70: uint16(13227), + 71: uint16(13228), + 72: uint16(13277), + 73: uint16(13264), + 74: uint16(13267), + 75: uint16(13251), + 76: uint16(13257), + 77: uint16(13276), + 78: uint16(13254), + }, + 7: { + 0: uint16(198), + 1: uint16(208), + 2: uint16(170), + 3: uint16(294), + 5: uint16(306), + 7: uint16(319), + 8: uint16(321), + 9: uint16(216), + 10: uint16(338), + 11: uint16(186), + 12: uint16(222), + 13: uint16(358), + 14: uint16(330), + 16: uint16(12896), + 17: uint16(12897), + 18: uint16(12898), + 19: uint16(12899), + 20: uint16(12900), + 21: uint16(12901), + 22: uint16(12902), + 23: uint16(12903), + 24: uint16(12904), + 25: uint16(12905), + 26: uint16(12906), + 27: uint16(12907), + 28: uint16(12908), + 29: uint16(12909), + 30: uint16(12910), + 31: uint16(12911), + 32: uint16(12912), + 33: uint16(12913), + 34: uint16(12914), + 35: uint16(12915), + 36: uint16(12916), + 37: uint16(12917), + 38: uint16(12918), + 39: uint16(12919), + 40: uint16(12920), + 41: uint16(12921), + 42: uint16(12922), + 43: uint16(12923), + 44: uint16(9424), + 45: uint16(9425), + 46: uint16(9426), + 47: uint16(9427), + 48: uint16(9428), + 49: uint16(9429), + 50: uint16(9430), + 51: uint16(9431), + 52: uint16(9432), + 53: uint16(9433), + 54: uint16(9434), + 55: uint16(9435), + 56: uint16(9436), + 57: uint16(9437), + 58: uint16(9438), + 59: uint16(9439), + 60: uint16(9440), + 61: uint16(9441), + 62: uint16(9442), + 63: uint16(9443), + 64: uint16(9444), + 65: uint16(9445), + 66: uint16(9446), + 67: uint16(9447), + 68: uint16(9448), + 69: uint16(9449), + 70: uint16(9312), + 71: uint16(9313), + 72: uint16(9314), + 73: uint16(9315), + 74: uint16(9316), + 75: uint16(9317), + 76: uint16(9318), + 77: uint16(9319), + 78: uint16(9320), + 79: uint16(9321), + 80: uint16(9322), + 81: uint16(9323), + 82: uint16(9324), + 83: uint16(9325), + 84: uint16(9326), + 85: uint16(189), + 86: uint16(8531), + 87: uint16(8532), + 88: uint16(188), + 89: uint16(190), + 90: uint16(8539), + 91: uint16(8540), + 92: uint16(8541), + 93: uint16(8542), + }, + 8: { + 0: uint16(230), + 1: uint16(273), + 2: uint16(240), + 3: uint16(295), + 4: uint16(305), + 5: uint16(307), + 6: uint16(312), + 7: uint16(320), + 8: uint16(322), + 9: uint16(248), + 10: uint16(339), + 11: uint16(223), + 12: uint16(254), + 13: uint16(359), + 14: uint16(331), + 15: uint16(329), + 16: uint16(12800), + 17: uint16(12801), + 18: uint16(12802), + 19: uint16(12803), + 20: uint16(12804), + 21: uint16(12805), + 22: uint16(12806), + 23: uint16(12807), + 24: uint16(12808), + 25: uint16(12809), + 26: uint16(12810), + 27: uint16(12811), + 28: uint16(12812), + 29: uint16(12813), + 30: uint16(12814), + 31: uint16(12815), + 32: uint16(12816), + 33: uint16(12817), + 34: uint16(12818), + 35: uint16(12819), + 36: uint16(12820), + 37: uint16(12821), + 38: uint16(12822), + 39: uint16(12823), + 40: uint16(12824), + 41: uint16(12825), + 42: uint16(12826), + 43: uint16(12827), + 44: uint16(9372), + 45: uint16(9373), + 46: uint16(9374), + 47: uint16(9375), + 48: uint16(9376), + 49: uint16(9377), + 50: uint16(9378), + 51: uint16(9379), + 52: uint16(9380), + 53: uint16(9381), + 54: uint16(9382), + 55: uint16(9383), + 56: uint16(9384), + 57: uint16(9385), + 58: uint16(9386), + 59: uint16(9387), + 60: uint16(9388), + 61: uint16(9389), + 62: uint16(9390), + 63: uint16(9391), + 64: uint16(9392), + 65: uint16(9393), + 66: uint16(9394), + 67: uint16(9395), + 68: uint16(9396), + 69: uint16(9397), + 70: uint16(9332), + 71: uint16(9333), + 72: uint16(9334), + 73: uint16(9335), + 74: uint16(9336), + 75: uint16(9337), + 76: uint16(9338), + 77: uint16(9339), + 78: uint16(9340), + 79: uint16(9341), + 80: uint16(9342), + 81: uint16(9343), + 82: uint16(9344), + 83: uint16(9345), + 84: uint16(9346), + 85: uint16(185), + 86: uint16(178), + 87: uint16(179), + 88: uint16(8308), + 89: uint16(8319), + 90: uint16(8321), + 91: uint16(8322), + 92: uint16(8323), + 93: uint16(8324), + }, + 9: { + 0: uint16(12353), + 1: uint16(12354), + 2: uint16(12355), + 3: uint16(12356), + 4: uint16(12357), + 5: uint16(12358), + 6: uint16(12359), + 7: uint16(12360), + 8: uint16(12361), + 9: uint16(12362), + 10: uint16(12363), + 11: uint16(12364), + 12: uint16(12365), + 13: uint16(12366), + 14: uint16(12367), + 15: uint16(12368), + 16: uint16(12369), + 17: uint16(12370), + 18: uint16(12371), + 19: uint16(12372), + 20: uint16(12373), + 21: uint16(12374), + 22: uint16(12375), + 23: uint16(12376), + 24: uint16(12377), + 25: uint16(12378), + 26: uint16(12379), + 27: uint16(12380), + 28: uint16(12381), + 29: uint16(12382), + 30: uint16(12383), + 31: uint16(12384), + 32: uint16(12385), + 33: uint16(12386), + 34: uint16(12387), + 35: uint16(12388), + 36: uint16(12389), + 37: uint16(12390), + 38: uint16(12391), + 39: uint16(12392), + 40: uint16(12393), + 41: uint16(12394), + 42: uint16(12395), + 43: uint16(12396), + 44: uint16(12397), + 45: uint16(12398), + 46: uint16(12399), + 47: uint16(12400), + 48: uint16(12401), + 49: uint16(12402), + 50: uint16(12403), + 51: uint16(12404), + 52: uint16(12405), + 53: uint16(12406), + 54: uint16(12407), + 55: uint16(12408), + 56: uint16(12409), + 57: uint16(12410), + 58: uint16(12411), + 59: uint16(12412), + 60: uint16(12413), + 61: uint16(12414), + 62: uint16(12415), + 63: uint16(12416), + 64: uint16(12417), + 65: uint16(12418), + 66: uint16(12419), + 67: uint16(12420), + 68: uint16(12421), + 69: uint16(12422), + 70: uint16(12423), + 71: uint16(12424), + 72: uint16(12425), + 73: uint16(12426), + 74: uint16(12427), + 75: uint16(12428), + 76: uint16(12429), + 77: uint16(12430), + 78: uint16(12431), + 79: uint16(12432), + 80: uint16(12433), + 81: uint16(12434), + 82: uint16(12435), + }, + 10: { + 0: uint16(12449), + 1: uint16(12450), + 2: uint16(12451), + 3: uint16(12452), + 4: uint16(12453), + 5: uint16(12454), + 6: uint16(12455), + 7: uint16(12456), + 8: uint16(12457), + 9: uint16(12458), + 10: uint16(12459), + 11: uint16(12460), + 12: uint16(12461), + 13: uint16(12462), + 14: uint16(12463), + 15: uint16(12464), + 16: uint16(12465), + 17: uint16(12466), + 18: uint16(12467), + 19: uint16(12468), + 20: uint16(12469), + 21: uint16(12470), + 22: uint16(12471), + 23: uint16(12472), + 24: uint16(12473), + 25: uint16(12474), + 26: uint16(12475), + 27: uint16(12476), + 28: uint16(12477), + 29: uint16(12478), + 30: uint16(12479), + 31: uint16(12480), + 32: uint16(12481), + 33: uint16(12482), + 34: uint16(12483), + 35: uint16(12484), + 36: uint16(12485), + 37: uint16(12486), + 38: uint16(12487), + 39: uint16(12488), + 40: uint16(12489), + 41: uint16(12490), + 42: uint16(12491), + 43: uint16(12492), + 44: uint16(12493), + 45: uint16(12494), + 46: uint16(12495), + 47: uint16(12496), + 48: uint16(12497), + 49: uint16(12498), + 50: uint16(12499), + 51: uint16(12500), + 52: uint16(12501), + 53: uint16(12502), + 54: uint16(12503), + 55: uint16(12504), + 56: uint16(12505), + 57: uint16(12506), + 58: uint16(12507), + 59: uint16(12508), + 60: uint16(12509), + 61: uint16(12510), + 62: uint16(12511), + 63: uint16(12512), + 64: uint16(12513), + 65: uint16(12514), + 66: uint16(12515), + 67: uint16(12516), + 68: uint16(12517), + 69: uint16(12518), + 70: uint16(12519), + 71: uint16(12520), + 72: uint16(12521), + 73: uint16(12522), + 74: uint16(12523), + 75: uint16(12524), + 76: uint16(12525), + 77: uint16(12526), + 78: uint16(12527), + 79: uint16(12528), + 80: uint16(12529), + 81: uint16(12530), + 82: uint16(12531), + 83: uint16(12532), + 84: uint16(12533), + 85: uint16(12534), + }, + 11: { + 0: uint16(1040), + 1: uint16(1041), + 2: uint16(1042), + 3: uint16(1043), + 4: uint16(1044), + 5: uint16(1045), + 6: uint16(1025), + 7: uint16(1046), + 8: uint16(1047), + 9: uint16(1048), + 10: uint16(1049), + 11: uint16(1050), + 12: uint16(1051), + 13: uint16(1052), + 14: uint16(1053), + 15: uint16(1054), + 16: uint16(1055), + 17: uint16(1056), + 18: uint16(1057), + 19: uint16(1058), + 20: uint16(1059), + 21: uint16(1060), + 22: uint16(1061), + 23: uint16(1062), + 24: uint16(1063), + 25: uint16(1064), + 26: uint16(1065), + 27: uint16(1066), + 28: uint16(1067), + 29: uint16(1068), + 30: uint16(1069), + 31: uint16(1070), + 32: uint16(1071), + 48: uint16(1072), + 49: uint16(1073), + 50: uint16(1074), + 51: uint16(1075), + 52: uint16(1076), + 53: uint16(1077), + 54: uint16(1105), + 55: uint16(1078), + 56: uint16(1079), + 57: uint16(1080), + 58: uint16(1081), + 59: uint16(1082), + 60: uint16(1083), + 61: uint16(1084), + 62: uint16(1085), + 63: uint16(1086), + 64: uint16(1087), + 65: uint16(1088), + 66: uint16(1089), + 67: uint16(1090), + 68: uint16(1091), + 69: uint16(1092), + 70: uint16(1093), + 71: uint16(1094), + 72: uint16(1095), + 73: uint16(1096), + 74: uint16(1097), + 75: uint16(1098), + 76: uint16(1099), + 77: uint16(1100), + 78: uint16(1101), + 79: uint16(1102), + 80: uint16(1103), + }, + 12: {}, + 13: {}, + 14: {}, + 15: { + 0: uint16(44032), + 1: uint16(44033), + 2: uint16(44036), + 3: uint16(44039), + 4: uint16(44040), + 5: uint16(44041), + 6: uint16(44042), + 7: uint16(44048), + 8: uint16(44049), + 9: uint16(44050), + 10: uint16(44051), + 11: uint16(44052), + 12: uint16(44053), + 13: uint16(44054), + 14: uint16(44055), + 15: uint16(44057), + 16: uint16(44058), + 17: uint16(44059), + 18: uint16(44060), + 19: uint16(44061), + 20: uint16(44064), + 21: uint16(44068), + 22: uint16(44076), + 23: uint16(44077), + 24: uint16(44079), + 25: uint16(44080), + 26: uint16(44081), + 27: uint16(44088), + 28: uint16(44089), + 29: uint16(44092), + 30: uint16(44096), + 31: uint16(44107), + 32: uint16(44109), + 33: uint16(44116), + 34: uint16(44120), + 35: uint16(44124), + 36: uint16(44144), + 37: uint16(44145), + 38: uint16(44148), + 39: uint16(44151), + 40: uint16(44152), + 41: uint16(44154), + 42: uint16(44160), + 43: uint16(44161), + 44: uint16(44163), + 45: uint16(44164), + 46: uint16(44165), + 47: uint16(44166), + 48: uint16(44169), + 49: uint16(44170), + 50: uint16(44171), + 51: uint16(44172), + 52: uint16(44176), + 53: uint16(44180), + 54: uint16(44188), + 55: uint16(44189), + 56: uint16(44191), + 57: uint16(44192), + 58: uint16(44193), + 59: uint16(44200), + 60: uint16(44201), + 61: uint16(44202), + 62: uint16(44204), + 63: uint16(44207), + 64: uint16(44208), + 65: uint16(44216), + 66: uint16(44217), + 67: uint16(44219), + 68: uint16(44220), + 69: uint16(44221), + 70: uint16(44225), + 71: uint16(44228), + 72: uint16(44232), + 73: uint16(44236), + 74: uint16(44245), + 75: uint16(44247), + 76: uint16(44256), + 77: uint16(44257), + 78: uint16(44260), + 79: uint16(44263), + 80: uint16(44264), + 81: uint16(44266), + 82: uint16(44268), + 83: uint16(44271), + 84: uint16(44272), + 85: uint16(44273), + 86: uint16(44275), + 87: uint16(44277), + 88: uint16(44278), + 89: uint16(44284), + 90: uint16(44285), + 91: uint16(44288), + 92: uint16(44292), + 93: uint16(44294), + }, + 16: { + 0: uint16(44300), + 1: uint16(44301), + 2: uint16(44303), + 3: uint16(44305), + 4: uint16(44312), + 5: uint16(44316), + 6: uint16(44320), + 7: uint16(44329), + 8: uint16(44332), + 9: uint16(44333), + 10: uint16(44340), + 11: uint16(44341), + 12: uint16(44344), + 13: uint16(44348), + 14: uint16(44356), + 15: uint16(44357), + 16: uint16(44359), + 17: uint16(44361), + 18: uint16(44368), + 19: uint16(44372), + 20: uint16(44376), + 21: uint16(44385), + 22: uint16(44387), + 23: uint16(44396), + 24: uint16(44397), + 25: uint16(44400), + 26: uint16(44403), + 27: uint16(44404), + 28: uint16(44405), + 29: uint16(44406), + 30: uint16(44411), + 31: uint16(44412), + 32: uint16(44413), + 33: uint16(44415), + 34: uint16(44417), + 35: uint16(44418), + 36: uint16(44424), + 37: uint16(44425), + 38: uint16(44428), + 39: uint16(44432), + 40: uint16(44444), + 41: uint16(44445), + 42: uint16(44452), + 43: uint16(44471), + 44: uint16(44480), + 45: uint16(44481), + 46: uint16(44484), + 47: uint16(44488), + 48: uint16(44496), + 49: uint16(44497), + 50: uint16(44499), + 51: uint16(44508), + 52: uint16(44512), + 53: uint16(44516), + 54: uint16(44536), + 55: uint16(44537), + 56: uint16(44540), + 57: uint16(44543), + 58: uint16(44544), + 59: uint16(44545), + 60: uint16(44552), + 61: uint16(44553), + 62: uint16(44555), + 63: uint16(44557), + 64: uint16(44564), + 65: uint16(44592), + 66: uint16(44593), + 67: uint16(44596), + 68: uint16(44599), + 69: uint16(44600), + 70: uint16(44602), + 71: uint16(44608), + 72: uint16(44609), + 73: uint16(44611), + 74: uint16(44613), + 75: uint16(44614), + 76: uint16(44618), + 77: uint16(44620), + 78: uint16(44621), + 79: uint16(44622), + 80: uint16(44624), + 81: uint16(44628), + 82: uint16(44630), + 83: uint16(44636), + 84: uint16(44637), + 85: uint16(44639), + 86: uint16(44640), + 87: uint16(44641), + 88: uint16(44645), + 89: uint16(44648), + 90: uint16(44649), + 91: uint16(44652), + 92: uint16(44656), + 93: uint16(44664), + }, + 17: { + 0: uint16(44665), + 1: uint16(44667), + 2: uint16(44668), + 3: uint16(44669), + 4: uint16(44676), + 5: uint16(44677), + 6: uint16(44684), + 7: uint16(44732), + 8: uint16(44733), + 9: uint16(44734), + 10: uint16(44736), + 11: uint16(44740), + 12: uint16(44748), + 13: uint16(44749), + 14: uint16(44751), + 15: uint16(44752), + 16: uint16(44753), + 17: uint16(44760), + 18: uint16(44761), + 19: uint16(44764), + 20: uint16(44776), + 21: uint16(44779), + 22: uint16(44781), + 23: uint16(44788), + 24: uint16(44792), + 25: uint16(44796), + 26: uint16(44807), + 27: uint16(44808), + 28: uint16(44813), + 29: uint16(44816), + 30: uint16(44844), + 31: uint16(44845), + 32: uint16(44848), + 33: uint16(44850), + 34: uint16(44852), + 35: uint16(44860), + 36: uint16(44861), + 37: uint16(44863), + 38: uint16(44865), + 39: uint16(44866), + 40: uint16(44867), + 41: uint16(44872), + 42: uint16(44873), + 43: uint16(44880), + 44: uint16(44892), + 45: uint16(44893), + 46: uint16(44900), + 47: uint16(44901), + 48: uint16(44921), + 49: uint16(44928), + 50: uint16(44932), + 51: uint16(44936), + 52: uint16(44944), + 53: uint16(44945), + 54: uint16(44949), + 55: uint16(44956), + 56: uint16(44984), + 57: uint16(44985), + 58: uint16(44988), + 59: uint16(44992), + 60: uint16(44999), + 61: uint16(45000), + 62: uint16(45001), + 63: uint16(45003), + 64: uint16(45005), + 65: uint16(45006), + 66: uint16(45012), + 67: uint16(45020), + 68: uint16(45032), + 69: uint16(45033), + 70: uint16(45040), + 71: uint16(45041), + 72: uint16(45044), + 73: uint16(45048), + 74: uint16(45056), + 75: uint16(45057), + 76: uint16(45060), + 77: uint16(45068), + 78: uint16(45072), + 79: uint16(45076), + 80: uint16(45084), + 81: uint16(45085), + 82: uint16(45096), + 83: uint16(45124), + 84: uint16(45125), + 85: uint16(45128), + 86: uint16(45130), + 87: uint16(45132), + 88: uint16(45134), + 89: uint16(45139), + 90: uint16(45140), + 91: uint16(45141), + 92: uint16(45143), + 93: uint16(45145), + }, + 18: { + 0: uint16(45149), + 1: uint16(45180), + 2: uint16(45181), + 3: uint16(45184), + 4: uint16(45188), + 5: uint16(45196), + 6: uint16(45197), + 7: uint16(45199), + 8: uint16(45201), + 9: uint16(45208), + 10: uint16(45209), + 11: uint16(45210), + 12: uint16(45212), + 13: uint16(45215), + 14: uint16(45216), + 15: uint16(45217), + 16: uint16(45218), + 17: uint16(45224), + 18: uint16(45225), + 19: uint16(45227), + 20: uint16(45228), + 21: uint16(45229), + 22: uint16(45230), + 23: uint16(45231), + 24: uint16(45233), + 25: uint16(45235), + 26: uint16(45236), + 27: uint16(45237), + 28: uint16(45240), + 29: uint16(45244), + 30: uint16(45252), + 31: uint16(45253), + 32: uint16(45255), + 33: uint16(45256), + 34: uint16(45257), + 35: uint16(45264), + 36: uint16(45265), + 37: uint16(45268), + 38: uint16(45272), + 39: uint16(45280), + 40: uint16(45285), + 41: uint16(45320), + 42: uint16(45321), + 43: uint16(45323), + 44: uint16(45324), + 45: uint16(45328), + 46: uint16(45330), + 47: uint16(45331), + 48: uint16(45336), + 49: uint16(45337), + 50: uint16(45339), + 51: uint16(45340), + 52: uint16(45341), + 53: uint16(45347), + 54: uint16(45348), + 55: uint16(45349), + 56: uint16(45352), + 57: uint16(45356), + 58: uint16(45364), + 59: uint16(45365), + 60: uint16(45367), + 61: uint16(45368), + 62: uint16(45369), + 63: uint16(45376), + 64: uint16(45377), + 65: uint16(45380), + 66: uint16(45384), + 67: uint16(45392), + 68: uint16(45393), + 69: uint16(45396), + 70: uint16(45397), + 71: uint16(45400), + 72: uint16(45404), + 73: uint16(45408), + 74: uint16(45432), + 75: uint16(45433), + 76: uint16(45436), + 77: uint16(45440), + 78: uint16(45442), + 79: uint16(45448), + 80: uint16(45449), + 81: uint16(45451), + 82: uint16(45453), + 83: uint16(45458), + 84: uint16(45459), + 85: uint16(45460), + 86: uint16(45464), + 87: uint16(45468), + 88: uint16(45480), + 89: uint16(45516), + 90: uint16(45520), + 91: uint16(45524), + 92: uint16(45532), + 93: uint16(45533), + }, + 19: { + 0: uint16(45535), + 1: uint16(45544), + 2: uint16(45545), + 3: uint16(45548), + 4: uint16(45552), + 5: uint16(45561), + 6: uint16(45563), + 7: uint16(45565), + 8: uint16(45572), + 9: uint16(45573), + 10: uint16(45576), + 11: uint16(45579), + 12: uint16(45580), + 13: uint16(45588), + 14: uint16(45589), + 15: uint16(45591), + 16: uint16(45593), + 17: uint16(45600), + 18: uint16(45620), + 19: uint16(45628), + 20: uint16(45656), + 21: uint16(45660), + 22: uint16(45664), + 23: uint16(45672), + 24: uint16(45673), + 25: uint16(45684), + 26: uint16(45685), + 27: uint16(45692), + 28: uint16(45700), + 29: uint16(45701), + 30: uint16(45705), + 31: uint16(45712), + 32: uint16(45713), + 33: uint16(45716), + 34: uint16(45720), + 35: uint16(45721), + 36: uint16(45722), + 37: uint16(45728), + 38: uint16(45729), + 39: uint16(45731), + 40: uint16(45733), + 41: uint16(45734), + 42: uint16(45738), + 43: uint16(45740), + 44: uint16(45744), + 45: uint16(45748), + 46: uint16(45768), + 47: uint16(45769), + 48: uint16(45772), + 49: uint16(45776), + 50: uint16(45778), + 51: uint16(45784), + 52: uint16(45785), + 53: uint16(45787), + 54: uint16(45789), + 55: uint16(45794), + 56: uint16(45796), + 57: uint16(45797), + 58: uint16(45798), + 59: uint16(45800), + 60: uint16(45803), + 61: uint16(45804), + 62: uint16(45805), + 63: uint16(45806), + 64: uint16(45807), + 65: uint16(45811), + 66: uint16(45812), + 67: uint16(45813), + 68: uint16(45815), + 69: uint16(45816), + 70: uint16(45817), + 71: uint16(45818), + 72: uint16(45819), + 73: uint16(45823), + 74: uint16(45824), + 75: uint16(45825), + 76: uint16(45828), + 77: uint16(45832), + 78: uint16(45840), + 79: uint16(45841), + 80: uint16(45843), + 81: uint16(45844), + 82: uint16(45845), + 83: uint16(45852), + 84: uint16(45908), + 85: uint16(45909), + 86: uint16(45910), + 87: uint16(45912), + 88: uint16(45915), + 89: uint16(45916), + 90: uint16(45918), + 91: uint16(45919), + 92: uint16(45924), + 93: uint16(45925), + }, + 20: { + 0: uint16(45927), + 1: uint16(45929), + 2: uint16(45931), + 3: uint16(45934), + 4: uint16(45936), + 5: uint16(45937), + 6: uint16(45940), + 7: uint16(45944), + 8: uint16(45952), + 9: uint16(45953), + 10: uint16(45955), + 11: uint16(45956), + 12: uint16(45957), + 13: uint16(45964), + 14: uint16(45968), + 15: uint16(45972), + 16: uint16(45984), + 17: uint16(45985), + 18: uint16(45992), + 19: uint16(45996), + 20: uint16(46020), + 21: uint16(46021), + 22: uint16(46024), + 23: uint16(46027), + 24: uint16(46028), + 25: uint16(46030), + 26: uint16(46032), + 27: uint16(46036), + 28: uint16(46037), + 29: uint16(46039), + 30: uint16(46041), + 31: uint16(46043), + 32: uint16(46045), + 33: uint16(46048), + 34: uint16(46052), + 35: uint16(46056), + 36: uint16(46076), + 37: uint16(46096), + 38: uint16(46104), + 39: uint16(46108), + 40: uint16(46112), + 41: uint16(46120), + 42: uint16(46121), + 43: uint16(46123), + 44: uint16(46132), + 45: uint16(46160), + 46: uint16(46161), + 47: uint16(46164), + 48: uint16(46168), + 49: uint16(46176), + 50: uint16(46177), + 51: uint16(46179), + 52: uint16(46181), + 53: uint16(46188), + 54: uint16(46208), + 55: uint16(46216), + 56: uint16(46237), + 57: uint16(46244), + 58: uint16(46248), + 59: uint16(46252), + 60: uint16(46261), + 61: uint16(46263), + 62: uint16(46265), + 63: uint16(46272), + 64: uint16(46276), + 65: uint16(46280), + 66: uint16(46288), + 67: uint16(46293), + 68: uint16(46300), + 69: uint16(46301), + 70: uint16(46304), + 71: uint16(46307), + 72: uint16(46308), + 73: uint16(46310), + 74: uint16(46316), + 75: uint16(46317), + 76: uint16(46319), + 77: uint16(46321), + 78: uint16(46328), + 79: uint16(46356), + 80: uint16(46357), + 81: uint16(46360), + 82: uint16(46363), + 83: uint16(46364), + 84: uint16(46372), + 85: uint16(46373), + 86: uint16(46375), + 87: uint16(46376), + 88: uint16(46377), + 89: uint16(46378), + 90: uint16(46384), + 91: uint16(46385), + 92: uint16(46388), + 93: uint16(46392), + }, + 21: { + 0: uint16(46400), + 1: uint16(46401), + 2: uint16(46403), + 3: uint16(46404), + 4: uint16(46405), + 5: uint16(46411), + 6: uint16(46412), + 7: uint16(46413), + 8: uint16(46416), + 9: uint16(46420), + 10: uint16(46428), + 11: uint16(46429), + 12: uint16(46431), + 13: uint16(46432), + 14: uint16(46433), + 15: uint16(46496), + 16: uint16(46497), + 17: uint16(46500), + 18: uint16(46504), + 19: uint16(46506), + 20: uint16(46507), + 21: uint16(46512), + 22: uint16(46513), + 23: uint16(46515), + 24: uint16(46516), + 25: uint16(46517), + 26: uint16(46523), + 27: uint16(46524), + 28: uint16(46525), + 29: uint16(46528), + 30: uint16(46532), + 31: uint16(46540), + 32: uint16(46541), + 33: uint16(46543), + 34: uint16(46544), + 35: uint16(46545), + 36: uint16(46552), + 37: uint16(46572), + 38: uint16(46608), + 39: uint16(46609), + 40: uint16(46612), + 41: uint16(46616), + 42: uint16(46629), + 43: uint16(46636), + 44: uint16(46644), + 45: uint16(46664), + 46: uint16(46692), + 47: uint16(46696), + 48: uint16(46748), + 49: uint16(46749), + 50: uint16(46752), + 51: uint16(46756), + 52: uint16(46763), + 53: uint16(46764), + 54: uint16(46769), + 55: uint16(46804), + 56: uint16(46832), + 57: uint16(46836), + 58: uint16(46840), + 59: uint16(46848), + 60: uint16(46849), + 61: uint16(46853), + 62: uint16(46888), + 63: uint16(46889), + 64: uint16(46892), + 65: uint16(46895), + 66: uint16(46896), + 67: uint16(46904), + 68: uint16(46905), + 69: uint16(46907), + 70: uint16(46916), + 71: uint16(46920), + 72: uint16(46924), + 73: uint16(46932), + 74: uint16(46933), + 75: uint16(46944), + 76: uint16(46948), + 77: uint16(46952), + 78: uint16(46960), + 79: uint16(46961), + 80: uint16(46963), + 81: uint16(46965), + 82: uint16(46972), + 83: uint16(46973), + 84: uint16(46976), + 85: uint16(46980), + 86: uint16(46988), + 87: uint16(46989), + 88: uint16(46991), + 89: uint16(46992), + 90: uint16(46993), + 91: uint16(46994), + 92: uint16(46998), + 93: uint16(46999), + }, + 22: { + 0: uint16(47000), + 1: uint16(47001), + 2: uint16(47004), + 3: uint16(47008), + 4: uint16(47016), + 5: uint16(47017), + 6: uint16(47019), + 7: uint16(47020), + 8: uint16(47021), + 9: uint16(47028), + 10: uint16(47029), + 11: uint16(47032), + 12: uint16(47047), + 13: uint16(47049), + 14: uint16(47084), + 15: uint16(47085), + 16: uint16(47088), + 17: uint16(47092), + 18: uint16(47100), + 19: uint16(47101), + 20: uint16(47103), + 21: uint16(47104), + 22: uint16(47105), + 23: uint16(47111), + 24: uint16(47112), + 25: uint16(47113), + 26: uint16(47116), + 27: uint16(47120), + 28: uint16(47128), + 29: uint16(47129), + 30: uint16(47131), + 31: uint16(47133), + 32: uint16(47140), + 33: uint16(47141), + 34: uint16(47144), + 35: uint16(47148), + 36: uint16(47156), + 37: uint16(47157), + 38: uint16(47159), + 39: uint16(47160), + 40: uint16(47161), + 41: uint16(47168), + 42: uint16(47172), + 43: uint16(47185), + 44: uint16(47187), + 45: uint16(47196), + 46: uint16(47197), + 47: uint16(47200), + 48: uint16(47204), + 49: uint16(47212), + 50: uint16(47213), + 51: uint16(47215), + 52: uint16(47217), + 53: uint16(47224), + 54: uint16(47228), + 55: uint16(47245), + 56: uint16(47272), + 57: uint16(47280), + 58: uint16(47284), + 59: uint16(47288), + 60: uint16(47296), + 61: uint16(47297), + 62: uint16(47299), + 63: uint16(47301), + 64: uint16(47308), + 65: uint16(47312), + 66: uint16(47316), + 67: uint16(47325), + 68: uint16(47327), + 69: uint16(47329), + 70: uint16(47336), + 71: uint16(47337), + 72: uint16(47340), + 73: uint16(47344), + 74: uint16(47352), + 75: uint16(47353), + 76: uint16(47355), + 77: uint16(47357), + 78: uint16(47364), + 79: uint16(47384), + 80: uint16(47392), + 81: uint16(47420), + 82: uint16(47421), + 83: uint16(47424), + 84: uint16(47428), + 85: uint16(47436), + 86: uint16(47439), + 87: uint16(47441), + 88: uint16(47448), + 89: uint16(47449), + 90: uint16(47452), + 91: uint16(47456), + 92: uint16(47464), + 93: uint16(47465), + }, + 23: { + 0: uint16(47467), + 1: uint16(47469), + 2: uint16(47476), + 3: uint16(47477), + 4: uint16(47480), + 5: uint16(47484), + 6: uint16(47492), + 7: uint16(47493), + 8: uint16(47495), + 9: uint16(47497), + 10: uint16(47498), + 11: uint16(47501), + 12: uint16(47502), + 13: uint16(47532), + 14: uint16(47533), + 15: uint16(47536), + 16: uint16(47540), + 17: uint16(47548), + 18: uint16(47549), + 19: uint16(47551), + 20: uint16(47553), + 21: uint16(47560), + 22: uint16(47561), + 23: uint16(47564), + 24: uint16(47566), + 25: uint16(47567), + 26: uint16(47568), + 27: uint16(47569), + 28: uint16(47570), + 29: uint16(47576), + 30: uint16(47577), + 31: uint16(47579), + 32: uint16(47581), + 33: uint16(47582), + 34: uint16(47585), + 35: uint16(47587), + 36: uint16(47588), + 37: uint16(47589), + 38: uint16(47592), + 39: uint16(47596), + 40: uint16(47604), + 41: uint16(47605), + 42: uint16(47607), + 43: uint16(47608), + 44: uint16(47609), + 45: uint16(47610), + 46: uint16(47616), + 47: uint16(47617), + 48: uint16(47624), + 49: uint16(47637), + 50: uint16(47672), + 51: uint16(47673), + 52: uint16(47676), + 53: uint16(47680), + 54: uint16(47682), + 55: uint16(47688), + 56: uint16(47689), + 57: uint16(47691), + 58: uint16(47693), + 59: uint16(47694), + 60: uint16(47699), + 61: uint16(47700), + 62: uint16(47701), + 63: uint16(47704), + 64: uint16(47708), + 65: uint16(47716), + 66: uint16(47717), + 67: uint16(47719), + 68: uint16(47720), + 69: uint16(47721), + 70: uint16(47728), + 71: uint16(47729), + 72: uint16(47732), + 73: uint16(47736), + 74: uint16(47747), + 75: uint16(47748), + 76: uint16(47749), + 77: uint16(47751), + 78: uint16(47756), + 79: uint16(47784), + 80: uint16(47785), + 81: uint16(47787), + 82: uint16(47788), + 83: uint16(47792), + 84: uint16(47794), + 85: uint16(47800), + 86: uint16(47801), + 87: uint16(47803), + 88: uint16(47805), + 89: uint16(47812), + 90: uint16(47816), + 91: uint16(47832), + 92: uint16(47833), + 93: uint16(47868), + }, + 24: { + 0: uint16(47872), + 1: uint16(47876), + 2: uint16(47885), + 3: uint16(47887), + 4: uint16(47889), + 5: uint16(47896), + 6: uint16(47900), + 7: uint16(47904), + 8: uint16(47913), + 9: uint16(47915), + 10: uint16(47924), + 11: uint16(47925), + 12: uint16(47926), + 13: uint16(47928), + 14: uint16(47931), + 15: uint16(47932), + 16: uint16(47933), + 17: uint16(47934), + 18: uint16(47940), + 19: uint16(47941), + 20: uint16(47943), + 21: uint16(47945), + 22: uint16(47949), + 23: uint16(47951), + 24: uint16(47952), + 25: uint16(47956), + 26: uint16(47960), + 27: uint16(47969), + 28: uint16(47971), + 29: uint16(47980), + 30: uint16(48008), + 31: uint16(48012), + 32: uint16(48016), + 33: uint16(48036), + 34: uint16(48040), + 35: uint16(48044), + 36: uint16(48052), + 37: uint16(48055), + 38: uint16(48064), + 39: uint16(48068), + 40: uint16(48072), + 41: uint16(48080), + 42: uint16(48083), + 43: uint16(48120), + 44: uint16(48121), + 45: uint16(48124), + 46: uint16(48127), + 47: uint16(48128), + 48: uint16(48130), + 49: uint16(48136), + 50: uint16(48137), + 51: uint16(48139), + 52: uint16(48140), + 53: uint16(48141), + 54: uint16(48143), + 55: uint16(48145), + 56: uint16(48148), + 57: uint16(48149), + 58: uint16(48150), + 59: uint16(48151), + 60: uint16(48152), + 61: uint16(48155), + 62: uint16(48156), + 63: uint16(48157), + 64: uint16(48158), + 65: uint16(48159), + 66: uint16(48164), + 67: uint16(48165), + 68: uint16(48167), + 69: uint16(48169), + 70: uint16(48173), + 71: uint16(48176), + 72: uint16(48177), + 73: uint16(48180), + 74: uint16(48184), + 75: uint16(48192), + 76: uint16(48193), + 77: uint16(48195), + 78: uint16(48196), + 79: uint16(48197), + 80: uint16(48201), + 81: uint16(48204), + 82: uint16(48205), + 83: uint16(48208), + 84: uint16(48221), + 85: uint16(48260), + 86: uint16(48261), + 87: uint16(48264), + 88: uint16(48267), + 89: uint16(48268), + 90: uint16(48270), + 91: uint16(48276), + 92: uint16(48277), + 93: uint16(48279), + }, + 25: { + 0: uint16(48281), + 1: uint16(48282), + 2: uint16(48288), + 3: uint16(48289), + 4: uint16(48292), + 5: uint16(48295), + 6: uint16(48296), + 7: uint16(48304), + 8: uint16(48305), + 9: uint16(48307), + 10: uint16(48308), + 11: uint16(48309), + 12: uint16(48316), + 13: uint16(48317), + 14: uint16(48320), + 15: uint16(48324), + 16: uint16(48333), + 17: uint16(48335), + 18: uint16(48336), + 19: uint16(48337), + 20: uint16(48341), + 21: uint16(48344), + 22: uint16(48348), + 23: uint16(48372), + 24: uint16(48373), + 25: uint16(48374), + 26: uint16(48376), + 27: uint16(48380), + 28: uint16(48388), + 29: uint16(48389), + 30: uint16(48391), + 31: uint16(48393), + 32: uint16(48400), + 33: uint16(48404), + 34: uint16(48420), + 35: uint16(48428), + 36: uint16(48448), + 37: uint16(48456), + 38: uint16(48457), + 39: uint16(48460), + 40: uint16(48464), + 41: uint16(48472), + 42: uint16(48473), + 43: uint16(48484), + 44: uint16(48488), + 45: uint16(48512), + 46: uint16(48513), + 47: uint16(48516), + 48: uint16(48519), + 49: uint16(48520), + 50: uint16(48521), + 51: uint16(48522), + 52: uint16(48528), + 53: uint16(48529), + 54: uint16(48531), + 55: uint16(48533), + 56: uint16(48537), + 57: uint16(48538), + 58: uint16(48540), + 59: uint16(48548), + 60: uint16(48560), + 61: uint16(48568), + 62: uint16(48596), + 63: uint16(48597), + 64: uint16(48600), + 65: uint16(48604), + 66: uint16(48617), + 67: uint16(48624), + 68: uint16(48628), + 69: uint16(48632), + 70: uint16(48640), + 71: uint16(48643), + 72: uint16(48645), + 73: uint16(48652), + 74: uint16(48653), + 75: uint16(48656), + 76: uint16(48660), + 77: uint16(48668), + 78: uint16(48669), + 79: uint16(48671), + 80: uint16(48708), + 81: uint16(48709), + 82: uint16(48712), + 83: uint16(48716), + 84: uint16(48718), + 85: uint16(48724), + 86: uint16(48725), + 87: uint16(48727), + 88: uint16(48729), + 89: uint16(48730), + 90: uint16(48731), + 91: uint16(48736), + 92: uint16(48737), + 93: uint16(48740), + }, + 26: { + 0: uint16(48744), + 1: uint16(48746), + 2: uint16(48752), + 3: uint16(48753), + 4: uint16(48755), + 5: uint16(48756), + 6: uint16(48757), + 7: uint16(48763), + 8: uint16(48764), + 9: uint16(48765), + 10: uint16(48768), + 11: uint16(48772), + 12: uint16(48780), + 13: uint16(48781), + 14: uint16(48783), + 15: uint16(48784), + 16: uint16(48785), + 17: uint16(48792), + 18: uint16(48793), + 19: uint16(48808), + 20: uint16(48848), + 21: uint16(48849), + 22: uint16(48852), + 23: uint16(48855), + 24: uint16(48856), + 25: uint16(48864), + 26: uint16(48867), + 27: uint16(48868), + 28: uint16(48869), + 29: uint16(48876), + 30: uint16(48897), + 31: uint16(48904), + 32: uint16(48905), + 33: uint16(48920), + 34: uint16(48921), + 35: uint16(48923), + 36: uint16(48924), + 37: uint16(48925), + 38: uint16(48960), + 39: uint16(48961), + 40: uint16(48964), + 41: uint16(48968), + 42: uint16(48976), + 43: uint16(48977), + 44: uint16(48981), + 45: uint16(49044), + 46: uint16(49072), + 47: uint16(49093), + 48: uint16(49100), + 49: uint16(49101), + 50: uint16(49104), + 51: uint16(49108), + 52: uint16(49116), + 53: uint16(49119), + 54: uint16(49121), + 55: uint16(49212), + 56: uint16(49233), + 57: uint16(49240), + 58: uint16(49244), + 59: uint16(49248), + 60: uint16(49256), + 61: uint16(49257), + 62: uint16(49296), + 63: uint16(49297), + 64: uint16(49300), + 65: uint16(49304), + 66: uint16(49312), + 67: uint16(49313), + 68: uint16(49315), + 69: uint16(49317), + 70: uint16(49324), + 71: uint16(49325), + 72: uint16(49327), + 73: uint16(49328), + 74: uint16(49331), + 75: uint16(49332), + 76: uint16(49333), + 77: uint16(49334), + 78: uint16(49340), + 79: uint16(49341), + 80: uint16(49343), + 81: uint16(49344), + 82: uint16(49345), + 83: uint16(49349), + 84: uint16(49352), + 85: uint16(49353), + 86: uint16(49356), + 87: uint16(49360), + 88: uint16(49368), + 89: uint16(49369), + 90: uint16(49371), + 91: uint16(49372), + 92: uint16(49373), + 93: uint16(49380), + }, + 27: { + 0: uint16(49381), + 1: uint16(49384), + 2: uint16(49388), + 3: uint16(49396), + 4: uint16(49397), + 5: uint16(49399), + 6: uint16(49401), + 7: uint16(49408), + 8: uint16(49412), + 9: uint16(49416), + 10: uint16(49424), + 11: uint16(49429), + 12: uint16(49436), + 13: uint16(49437), + 14: uint16(49438), + 15: uint16(49439), + 16: uint16(49440), + 17: uint16(49443), + 18: uint16(49444), + 19: uint16(49446), + 20: uint16(49447), + 21: uint16(49452), + 22: uint16(49453), + 23: uint16(49455), + 24: uint16(49456), + 25: uint16(49457), + 26: uint16(49462), + 27: uint16(49464), + 28: uint16(49465), + 29: uint16(49468), + 30: uint16(49472), + 31: uint16(49480), + 32: uint16(49481), + 33: uint16(49483), + 34: uint16(49484), + 35: uint16(49485), + 36: uint16(49492), + 37: uint16(49493), + 38: uint16(49496), + 39: uint16(49500), + 40: uint16(49508), + 41: uint16(49509), + 42: uint16(49511), + 43: uint16(49512), + 44: uint16(49513), + 45: uint16(49520), + 46: uint16(49524), + 47: uint16(49528), + 48: uint16(49541), + 49: uint16(49548), + 50: uint16(49549), + 51: uint16(49550), + 52: uint16(49552), + 53: uint16(49556), + 54: uint16(49558), + 55: uint16(49564), + 56: uint16(49565), + 57: uint16(49567), + 58: uint16(49569), + 59: uint16(49573), + 60: uint16(49576), + 61: uint16(49577), + 62: uint16(49580), + 63: uint16(49584), + 64: uint16(49597), + 65: uint16(49604), + 66: uint16(49608), + 67: uint16(49612), + 68: uint16(49620), + 69: uint16(49623), + 70: uint16(49624), + 71: uint16(49632), + 72: uint16(49636), + 73: uint16(49640), + 74: uint16(49648), + 75: uint16(49649), + 76: uint16(49651), + 77: uint16(49660), + 78: uint16(49661), + 79: uint16(49664), + 80: uint16(49668), + 81: uint16(49676), + 82: uint16(49677), + 83: uint16(49679), + 84: uint16(49681), + 85: uint16(49688), + 86: uint16(49689), + 87: uint16(49692), + 88: uint16(49695), + 89: uint16(49696), + 90: uint16(49704), + 91: uint16(49705), + 92: uint16(49707), + 93: uint16(49709), + }, + 28: { + 0: uint16(49711), + 1: uint16(49713), + 2: uint16(49714), + 3: uint16(49716), + 4: uint16(49736), + 5: uint16(49744), + 6: uint16(49745), + 7: uint16(49748), + 8: uint16(49752), + 9: uint16(49760), + 10: uint16(49765), + 11: uint16(49772), + 12: uint16(49773), + 13: uint16(49776), + 14: uint16(49780), + 15: uint16(49788), + 16: uint16(49789), + 17: uint16(49791), + 18: uint16(49793), + 19: uint16(49800), + 20: uint16(49801), + 21: uint16(49808), + 22: uint16(49816), + 23: uint16(49819), + 24: uint16(49821), + 25: uint16(49828), + 26: uint16(49829), + 27: uint16(49832), + 28: uint16(49836), + 29: uint16(49837), + 30: uint16(49844), + 31: uint16(49845), + 32: uint16(49847), + 33: uint16(49849), + 34: uint16(49884), + 35: uint16(49885), + 36: uint16(49888), + 37: uint16(49891), + 38: uint16(49892), + 39: uint16(49899), + 40: uint16(49900), + 41: uint16(49901), + 42: uint16(49903), + 43: uint16(49905), + 44: uint16(49910), + 45: uint16(49912), + 46: uint16(49913), + 47: uint16(49915), + 48: uint16(49916), + 49: uint16(49920), + 50: uint16(49928), + 51: uint16(49929), + 52: uint16(49932), + 53: uint16(49933), + 54: uint16(49939), + 55: uint16(49940), + 56: uint16(49941), + 57: uint16(49944), + 58: uint16(49948), + 59: uint16(49956), + 60: uint16(49957), + 61: uint16(49960), + 62: uint16(49961), + 63: uint16(49989), + 64: uint16(50024), + 65: uint16(50025), + 66: uint16(50028), + 67: uint16(50032), + 68: uint16(50034), + 69: uint16(50040), + 70: uint16(50041), + 71: uint16(50044), + 72: uint16(50045), + 73: uint16(50052), + 74: uint16(50056), + 75: uint16(50060), + 76: uint16(50112), + 77: uint16(50136), + 78: uint16(50137), + 79: uint16(50140), + 80: uint16(50143), + 81: uint16(50144), + 82: uint16(50146), + 83: uint16(50152), + 84: uint16(50153), + 85: uint16(50157), + 86: uint16(50164), + 87: uint16(50165), + 88: uint16(50168), + 89: uint16(50184), + 90: uint16(50192), + 91: uint16(50212), + 92: uint16(50220), + 93: uint16(50224), + }, + 29: { + 0: uint16(50228), + 1: uint16(50236), + 2: uint16(50237), + 3: uint16(50248), + 4: uint16(50276), + 5: uint16(50277), + 6: uint16(50280), + 7: uint16(50284), + 8: uint16(50292), + 9: uint16(50293), + 10: uint16(50297), + 11: uint16(50304), + 12: uint16(50324), + 13: uint16(50332), + 14: uint16(50360), + 15: uint16(50364), + 16: uint16(50409), + 17: uint16(50416), + 18: uint16(50417), + 19: uint16(50420), + 20: uint16(50424), + 21: uint16(50426), + 22: uint16(50431), + 23: uint16(50432), + 24: uint16(50433), + 25: uint16(50444), + 26: uint16(50448), + 27: uint16(50452), + 28: uint16(50460), + 29: uint16(50472), + 30: uint16(50473), + 31: uint16(50476), + 32: uint16(50480), + 33: uint16(50488), + 34: uint16(50489), + 35: uint16(50491), + 36: uint16(50493), + 37: uint16(50500), + 38: uint16(50501), + 39: uint16(50504), + 40: uint16(50505), + 41: uint16(50506), + 42: uint16(50508), + 43: uint16(50509), + 44: uint16(50510), + 45: uint16(50515), + 46: uint16(50516), + 47: uint16(50517), + 48: uint16(50519), + 49: uint16(50520), + 50: uint16(50521), + 51: uint16(50525), + 52: uint16(50526), + 53: uint16(50528), + 54: uint16(50529), + 55: uint16(50532), + 56: uint16(50536), + 57: uint16(50544), + 58: uint16(50545), + 59: uint16(50547), + 60: uint16(50548), + 61: uint16(50549), + 62: uint16(50556), + 63: uint16(50557), + 64: uint16(50560), + 65: uint16(50564), + 66: uint16(50567), + 67: uint16(50572), + 68: uint16(50573), + 69: uint16(50575), + 70: uint16(50577), + 71: uint16(50581), + 72: uint16(50583), + 73: uint16(50584), + 74: uint16(50588), + 75: uint16(50592), + 76: uint16(50601), + 77: uint16(50612), + 78: uint16(50613), + 79: uint16(50616), + 80: uint16(50617), + 81: uint16(50619), + 82: uint16(50620), + 83: uint16(50621), + 84: uint16(50622), + 85: uint16(50628), + 86: uint16(50629), + 87: uint16(50630), + 88: uint16(50631), + 89: uint16(50632), + 90: uint16(50633), + 91: uint16(50634), + 92: uint16(50636), + 93: uint16(50638), + }, + 30: { + 0: uint16(50640), + 1: uint16(50641), + 2: uint16(50644), + 3: uint16(50648), + 4: uint16(50656), + 5: uint16(50657), + 6: uint16(50659), + 7: uint16(50661), + 8: uint16(50668), + 9: uint16(50669), + 10: uint16(50670), + 11: uint16(50672), + 12: uint16(50676), + 13: uint16(50678), + 14: uint16(50679), + 15: uint16(50684), + 16: uint16(50685), + 17: uint16(50686), + 18: uint16(50687), + 19: uint16(50688), + 20: uint16(50689), + 21: uint16(50693), + 22: uint16(50694), + 23: uint16(50695), + 24: uint16(50696), + 25: uint16(50700), + 26: uint16(50704), + 27: uint16(50712), + 28: uint16(50713), + 29: uint16(50715), + 30: uint16(50716), + 31: uint16(50724), + 32: uint16(50725), + 33: uint16(50728), + 34: uint16(50732), + 35: uint16(50733), + 36: uint16(50734), + 37: uint16(50736), + 38: uint16(50739), + 39: uint16(50740), + 40: uint16(50741), + 41: uint16(50743), + 42: uint16(50745), + 43: uint16(50747), + 44: uint16(50752), + 45: uint16(50753), + 46: uint16(50756), + 47: uint16(50760), + 48: uint16(50768), + 49: uint16(50769), + 50: uint16(50771), + 51: uint16(50772), + 52: uint16(50773), + 53: uint16(50780), + 54: uint16(50781), + 55: uint16(50784), + 56: uint16(50796), + 57: uint16(50799), + 58: uint16(50801), + 59: uint16(50808), + 60: uint16(50809), + 61: uint16(50812), + 62: uint16(50816), + 63: uint16(50824), + 64: uint16(50825), + 65: uint16(50827), + 66: uint16(50829), + 67: uint16(50836), + 68: uint16(50837), + 69: uint16(50840), + 70: uint16(50844), + 71: uint16(50852), + 72: uint16(50853), + 73: uint16(50855), + 74: uint16(50857), + 75: uint16(50864), + 76: uint16(50865), + 77: uint16(50868), + 78: uint16(50872), + 79: uint16(50873), + 80: uint16(50874), + 81: uint16(50880), + 82: uint16(50881), + 83: uint16(50883), + 84: uint16(50885), + 85: uint16(50892), + 86: uint16(50893), + 87: uint16(50896), + 88: uint16(50900), + 89: uint16(50908), + 90: uint16(50909), + 91: uint16(50912), + 92: uint16(50913), + 93: uint16(50920), + }, + 31: { + 0: uint16(50921), + 1: uint16(50924), + 2: uint16(50928), + 3: uint16(50936), + 4: uint16(50937), + 5: uint16(50941), + 6: uint16(50948), + 7: uint16(50949), + 8: uint16(50952), + 9: uint16(50956), + 10: uint16(50964), + 11: uint16(50965), + 12: uint16(50967), + 13: uint16(50969), + 14: uint16(50976), + 15: uint16(50977), + 16: uint16(50980), + 17: uint16(50984), + 18: uint16(50992), + 19: uint16(50993), + 20: uint16(50995), + 21: uint16(50997), + 22: uint16(50999), + 23: uint16(51004), + 24: uint16(51005), + 25: uint16(51008), + 26: uint16(51012), + 27: uint16(51018), + 28: uint16(51020), + 29: uint16(51021), + 30: uint16(51023), + 31: uint16(51025), + 32: uint16(51026), + 33: uint16(51027), + 34: uint16(51028), + 35: uint16(51029), + 36: uint16(51030), + 37: uint16(51031), + 38: uint16(51032), + 39: uint16(51036), + 40: uint16(51040), + 41: uint16(51048), + 42: uint16(51051), + 43: uint16(51060), + 44: uint16(51061), + 45: uint16(51064), + 46: uint16(51068), + 47: uint16(51069), + 48: uint16(51070), + 49: uint16(51075), + 50: uint16(51076), + 51: uint16(51077), + 52: uint16(51079), + 53: uint16(51080), + 54: uint16(51081), + 55: uint16(51082), + 56: uint16(51086), + 57: uint16(51088), + 58: uint16(51089), + 59: uint16(51092), + 60: uint16(51094), + 61: uint16(51095), + 62: uint16(51096), + 63: uint16(51098), + 64: uint16(51104), + 65: uint16(51105), + 66: uint16(51107), + 67: uint16(51108), + 68: uint16(51109), + 69: uint16(51110), + 70: uint16(51116), + 71: uint16(51117), + 72: uint16(51120), + 73: uint16(51124), + 74: uint16(51132), + 75: uint16(51133), + 76: uint16(51135), + 77: uint16(51136), + 78: uint16(51137), + 79: uint16(51144), + 80: uint16(51145), + 81: uint16(51148), + 82: uint16(51150), + 83: uint16(51152), + 84: uint16(51160), + 85: uint16(51165), + 86: uint16(51172), + 87: uint16(51176), + 88: uint16(51180), + 89: uint16(51200), + 90: uint16(51201), + 91: uint16(51204), + 92: uint16(51208), + 93: uint16(51210), + }, + 32: { + 0: uint16(51216), + 1: uint16(51217), + 2: uint16(51219), + 3: uint16(51221), + 4: uint16(51222), + 5: uint16(51228), + 6: uint16(51229), + 7: uint16(51232), + 8: uint16(51236), + 9: uint16(51244), + 10: uint16(51245), + 11: uint16(51247), + 12: uint16(51249), + 13: uint16(51256), + 14: uint16(51260), + 15: uint16(51264), + 16: uint16(51272), + 17: uint16(51273), + 18: uint16(51276), + 19: uint16(51277), + 20: uint16(51284), + 21: uint16(51312), + 22: uint16(51313), + 23: uint16(51316), + 24: uint16(51320), + 25: uint16(51322), + 26: uint16(51328), + 27: uint16(51329), + 28: uint16(51331), + 29: uint16(51333), + 30: uint16(51334), + 31: uint16(51335), + 32: uint16(51339), + 33: uint16(51340), + 34: uint16(51341), + 35: uint16(51348), + 36: uint16(51357), + 37: uint16(51359), + 38: uint16(51361), + 39: uint16(51368), + 40: uint16(51388), + 41: uint16(51389), + 42: uint16(51396), + 43: uint16(51400), + 44: uint16(51404), + 45: uint16(51412), + 46: uint16(51413), + 47: uint16(51415), + 48: uint16(51417), + 49: uint16(51424), + 50: uint16(51425), + 51: uint16(51428), + 52: uint16(51445), + 53: uint16(51452), + 54: uint16(51453), + 55: uint16(51456), + 56: uint16(51460), + 57: uint16(51461), + 58: uint16(51462), + 59: uint16(51468), + 60: uint16(51469), + 61: uint16(51471), + 62: uint16(51473), + 63: uint16(51480), + 64: uint16(51500), + 65: uint16(51508), + 66: uint16(51536), + 67: uint16(51537), + 68: uint16(51540), + 69: uint16(51544), + 70: uint16(51552), + 71: uint16(51553), + 72: uint16(51555), + 73: uint16(51564), + 74: uint16(51568), + 75: uint16(51572), + 76: uint16(51580), + 77: uint16(51592), + 78: uint16(51593), + 79: uint16(51596), + 80: uint16(51600), + 81: uint16(51608), + 82: uint16(51609), + 83: uint16(51611), + 84: uint16(51613), + 85: uint16(51648), + 86: uint16(51649), + 87: uint16(51652), + 88: uint16(51655), + 89: uint16(51656), + 90: uint16(51658), + 91: uint16(51664), + 92: uint16(51665), + 93: uint16(51667), + }, + 33: { + 0: uint16(51669), + 1: uint16(51670), + 2: uint16(51673), + 3: uint16(51674), + 4: uint16(51676), + 5: uint16(51677), + 6: uint16(51680), + 7: uint16(51682), + 8: uint16(51684), + 9: uint16(51687), + 10: uint16(51692), + 11: uint16(51693), + 12: uint16(51695), + 13: uint16(51696), + 14: uint16(51697), + 15: uint16(51704), + 16: uint16(51705), + 17: uint16(51708), + 18: uint16(51712), + 19: uint16(51720), + 20: uint16(51721), + 21: uint16(51723), + 22: uint16(51724), + 23: uint16(51725), + 24: uint16(51732), + 25: uint16(51736), + 26: uint16(51753), + 27: uint16(51788), + 28: uint16(51789), + 29: uint16(51792), + 30: uint16(51796), + 31: uint16(51804), + 32: uint16(51805), + 33: uint16(51807), + 34: uint16(51808), + 35: uint16(51809), + 36: uint16(51816), + 37: uint16(51837), + 38: uint16(51844), + 39: uint16(51864), + 40: uint16(51900), + 41: uint16(51901), + 42: uint16(51904), + 43: uint16(51908), + 44: uint16(51916), + 45: uint16(51917), + 46: uint16(51919), + 47: uint16(51921), + 48: uint16(51923), + 49: uint16(51928), + 50: uint16(51929), + 51: uint16(51936), + 52: uint16(51948), + 53: uint16(51956), + 54: uint16(51976), + 55: uint16(51984), + 56: uint16(51988), + 57: uint16(51992), + 58: uint16(52000), + 59: uint16(52001), + 60: uint16(52033), + 61: uint16(52040), + 62: uint16(52041), + 63: uint16(52044), + 64: uint16(52048), + 65: uint16(52056), + 66: uint16(52057), + 67: uint16(52061), + 68: uint16(52068), + 69: uint16(52088), + 70: uint16(52089), + 71: uint16(52124), + 72: uint16(52152), + 73: uint16(52180), + 74: uint16(52196), + 75: uint16(52199), + 76: uint16(52201), + 77: uint16(52236), + 78: uint16(52237), + 79: uint16(52240), + 80: uint16(52244), + 81: uint16(52252), + 82: uint16(52253), + 83: uint16(52257), + 84: uint16(52258), + 85: uint16(52263), + 86: uint16(52264), + 87: uint16(52265), + 88: uint16(52268), + 89: uint16(52270), + 90: uint16(52272), + 91: uint16(52280), + 92: uint16(52281), + 93: uint16(52283), + }, + 34: { + 0: uint16(52284), + 1: uint16(52285), + 2: uint16(52286), + 3: uint16(52292), + 4: uint16(52293), + 5: uint16(52296), + 6: uint16(52300), + 7: uint16(52308), + 8: uint16(52309), + 9: uint16(52311), + 10: uint16(52312), + 11: uint16(52313), + 12: uint16(52320), + 13: uint16(52324), + 14: uint16(52326), + 15: uint16(52328), + 16: uint16(52336), + 17: uint16(52341), + 18: uint16(52376), + 19: uint16(52377), + 20: uint16(52380), + 21: uint16(52384), + 22: uint16(52392), + 23: uint16(52393), + 24: uint16(52395), + 25: uint16(52396), + 26: uint16(52397), + 27: uint16(52404), + 28: uint16(52405), + 29: uint16(52408), + 30: uint16(52412), + 31: uint16(52420), + 32: uint16(52421), + 33: uint16(52423), + 34: uint16(52425), + 35: uint16(52432), + 36: uint16(52436), + 37: uint16(52452), + 38: uint16(52460), + 39: uint16(52464), + 40: uint16(52481), + 41: uint16(52488), + 42: uint16(52489), + 43: uint16(52492), + 44: uint16(52496), + 45: uint16(52504), + 46: uint16(52505), + 47: uint16(52507), + 48: uint16(52509), + 49: uint16(52516), + 50: uint16(52520), + 51: uint16(52524), + 52: uint16(52537), + 53: uint16(52572), + 54: uint16(52576), + 55: uint16(52580), + 56: uint16(52588), + 57: uint16(52589), + 58: uint16(52591), + 59: uint16(52593), + 60: uint16(52600), + 61: uint16(52616), + 62: uint16(52628), + 63: uint16(52629), + 64: uint16(52632), + 65: uint16(52636), + 66: uint16(52644), + 67: uint16(52645), + 68: uint16(52647), + 69: uint16(52649), + 70: uint16(52656), + 71: uint16(52676), + 72: uint16(52684), + 73: uint16(52688), + 74: uint16(52712), + 75: uint16(52716), + 76: uint16(52720), + 77: uint16(52728), + 78: uint16(52729), + 79: uint16(52731), + 80: uint16(52733), + 81: uint16(52740), + 82: uint16(52744), + 83: uint16(52748), + 84: uint16(52756), + 85: uint16(52761), + 86: uint16(52768), + 87: uint16(52769), + 88: uint16(52772), + 89: uint16(52776), + 90: uint16(52784), + 91: uint16(52785), + 92: uint16(52787), + 93: uint16(52789), + }, + 35: { + 0: uint16(52824), + 1: uint16(52825), + 2: uint16(52828), + 3: uint16(52831), + 4: uint16(52832), + 5: uint16(52833), + 6: uint16(52840), + 7: uint16(52841), + 8: uint16(52843), + 9: uint16(52845), + 10: uint16(52852), + 11: uint16(52853), + 12: uint16(52856), + 13: uint16(52860), + 14: uint16(52868), + 15: uint16(52869), + 16: uint16(52871), + 17: uint16(52873), + 18: uint16(52880), + 19: uint16(52881), + 20: uint16(52884), + 21: uint16(52888), + 22: uint16(52896), + 23: uint16(52897), + 24: uint16(52899), + 25: uint16(52900), + 26: uint16(52901), + 27: uint16(52908), + 28: uint16(52909), + 29: uint16(52929), + 30: uint16(52964), + 31: uint16(52965), + 32: uint16(52968), + 33: uint16(52971), + 34: uint16(52972), + 35: uint16(52980), + 36: uint16(52981), + 37: uint16(52983), + 38: uint16(52984), + 39: uint16(52985), + 40: uint16(52992), + 41: uint16(52993), + 42: uint16(52996), + 43: uint16(53000), + 44: uint16(53008), + 45: uint16(53009), + 46: uint16(53011), + 47: uint16(53013), + 48: uint16(53020), + 49: uint16(53024), + 50: uint16(53028), + 51: uint16(53036), + 52: uint16(53037), + 53: uint16(53039), + 54: uint16(53040), + 55: uint16(53041), + 56: uint16(53048), + 57: uint16(53076), + 58: uint16(53077), + 59: uint16(53080), + 60: uint16(53084), + 61: uint16(53092), + 62: uint16(53093), + 63: uint16(53095), + 64: uint16(53097), + 65: uint16(53104), + 66: uint16(53105), + 67: uint16(53108), + 68: uint16(53112), + 69: uint16(53120), + 70: uint16(53125), + 71: uint16(53132), + 72: uint16(53153), + 73: uint16(53160), + 74: uint16(53168), + 75: uint16(53188), + 76: uint16(53216), + 77: uint16(53217), + 78: uint16(53220), + 79: uint16(53224), + 80: uint16(53232), + 81: uint16(53233), + 82: uint16(53235), + 83: uint16(53237), + 84: uint16(53244), + 85: uint16(53248), + 86: uint16(53252), + 87: uint16(53265), + 88: uint16(53272), + 89: uint16(53293), + 90: uint16(53300), + 91: uint16(53301), + 92: uint16(53304), + 93: uint16(53308), + }, + 36: { + 0: uint16(53316), + 1: uint16(53317), + 2: uint16(53319), + 3: uint16(53321), + 4: uint16(53328), + 5: uint16(53332), + 6: uint16(53336), + 7: uint16(53344), + 8: uint16(53356), + 9: uint16(53357), + 10: uint16(53360), + 11: uint16(53364), + 12: uint16(53372), + 13: uint16(53373), + 14: uint16(53377), + 15: uint16(53412), + 16: uint16(53413), + 17: uint16(53416), + 18: uint16(53420), + 19: uint16(53428), + 20: uint16(53429), + 21: uint16(53431), + 22: uint16(53433), + 23: uint16(53440), + 24: uint16(53441), + 25: uint16(53444), + 26: uint16(53448), + 27: uint16(53449), + 28: uint16(53456), + 29: uint16(53457), + 30: uint16(53459), + 31: uint16(53460), + 32: uint16(53461), + 33: uint16(53468), + 34: uint16(53469), + 35: uint16(53472), + 36: uint16(53476), + 37: uint16(53484), + 38: uint16(53485), + 39: uint16(53487), + 40: uint16(53488), + 41: uint16(53489), + 42: uint16(53496), + 43: uint16(53517), + 44: uint16(53552), + 45: uint16(53553), + 46: uint16(53556), + 47: uint16(53560), + 48: uint16(53562), + 49: uint16(53568), + 50: uint16(53569), + 51: uint16(53571), + 52: uint16(53572), + 53: uint16(53573), + 54: uint16(53580), + 55: uint16(53581), + 56: uint16(53584), + 57: uint16(53588), + 58: uint16(53596), + 59: uint16(53597), + 60: uint16(53599), + 61: uint16(53601), + 62: uint16(53608), + 63: uint16(53612), + 64: uint16(53628), + 65: uint16(53636), + 66: uint16(53640), + 67: uint16(53664), + 68: uint16(53665), + 69: uint16(53668), + 70: uint16(53672), + 71: uint16(53680), + 72: uint16(53681), + 73: uint16(53683), + 74: uint16(53685), + 75: uint16(53690), + 76: uint16(53692), + 77: uint16(53696), + 78: uint16(53720), + 79: uint16(53748), + 80: uint16(53752), + 81: uint16(53767), + 82: uint16(53769), + 83: uint16(53776), + 84: uint16(53804), + 85: uint16(53805), + 86: uint16(53808), + 87: uint16(53812), + 88: uint16(53820), + 89: uint16(53821), + 90: uint16(53823), + 91: uint16(53825), + 92: uint16(53832), + 93: uint16(53852), + }, + 37: { + 0: uint16(53860), + 1: uint16(53888), + 2: uint16(53889), + 3: uint16(53892), + 4: uint16(53896), + 5: uint16(53904), + 6: uint16(53905), + 7: uint16(53909), + 8: uint16(53916), + 9: uint16(53920), + 10: uint16(53924), + 11: uint16(53932), + 12: uint16(53937), + 13: uint16(53944), + 14: uint16(53945), + 15: uint16(53948), + 16: uint16(53951), + 17: uint16(53952), + 18: uint16(53954), + 19: uint16(53960), + 20: uint16(53961), + 21: uint16(53963), + 22: uint16(53972), + 23: uint16(53976), + 24: uint16(53980), + 25: uint16(53988), + 26: uint16(53989), + 27: uint16(54000), + 28: uint16(54001), + 29: uint16(54004), + 30: uint16(54008), + 31: uint16(54016), + 32: uint16(54017), + 33: uint16(54019), + 34: uint16(54021), + 35: uint16(54028), + 36: uint16(54029), + 37: uint16(54030), + 38: uint16(54032), + 39: uint16(54036), + 40: uint16(54038), + 41: uint16(54044), + 42: uint16(54045), + 43: uint16(54047), + 44: uint16(54048), + 45: uint16(54049), + 46: uint16(54053), + 47: uint16(54056), + 48: uint16(54057), + 49: uint16(54060), + 50: uint16(54064), + 51: uint16(54072), + 52: uint16(54073), + 53: uint16(54075), + 54: uint16(54076), + 55: uint16(54077), + 56: uint16(54084), + 57: uint16(54085), + 58: uint16(54140), + 59: uint16(54141), + 60: uint16(54144), + 61: uint16(54148), + 62: uint16(54156), + 63: uint16(54157), + 64: uint16(54159), + 65: uint16(54160), + 66: uint16(54161), + 67: uint16(54168), + 68: uint16(54169), + 69: uint16(54172), + 70: uint16(54176), + 71: uint16(54184), + 72: uint16(54185), + 73: uint16(54187), + 74: uint16(54189), + 75: uint16(54196), + 76: uint16(54200), + 77: uint16(54204), + 78: uint16(54212), + 79: uint16(54213), + 80: uint16(54216), + 81: uint16(54217), + 82: uint16(54224), + 83: uint16(54232), + 84: uint16(54241), + 85: uint16(54243), + 86: uint16(54252), + 87: uint16(54253), + 88: uint16(54256), + 89: uint16(54260), + 90: uint16(54268), + 91: uint16(54269), + 92: uint16(54271), + 93: uint16(54273), + }, + 38: { + 0: uint16(54280), + 1: uint16(54301), + 2: uint16(54336), + 3: uint16(54340), + 4: uint16(54364), + 5: uint16(54368), + 6: uint16(54372), + 7: uint16(54381), + 8: uint16(54383), + 9: uint16(54392), + 10: uint16(54393), + 11: uint16(54396), + 12: uint16(54399), + 13: uint16(54400), + 14: uint16(54402), + 15: uint16(54408), + 16: uint16(54409), + 17: uint16(54411), + 18: uint16(54413), + 19: uint16(54420), + 20: uint16(54441), + 21: uint16(54476), + 22: uint16(54480), + 23: uint16(54484), + 24: uint16(54492), + 25: uint16(54495), + 26: uint16(54504), + 27: uint16(54508), + 28: uint16(54512), + 29: uint16(54520), + 30: uint16(54523), + 31: uint16(54525), + 32: uint16(54532), + 33: uint16(54536), + 34: uint16(54540), + 35: uint16(54548), + 36: uint16(54549), + 37: uint16(54551), + 38: uint16(54588), + 39: uint16(54589), + 40: uint16(54592), + 41: uint16(54596), + 42: uint16(54604), + 43: uint16(54605), + 44: uint16(54607), + 45: uint16(54609), + 46: uint16(54616), + 47: uint16(54617), + 48: uint16(54620), + 49: uint16(54624), + 50: uint16(54629), + 51: uint16(54632), + 52: uint16(54633), + 53: uint16(54635), + 54: uint16(54637), + 55: uint16(54644), + 56: uint16(54645), + 57: uint16(54648), + 58: uint16(54652), + 59: uint16(54660), + 60: uint16(54661), + 61: uint16(54663), + 62: uint16(54664), + 63: uint16(54665), + 64: uint16(54672), + 65: uint16(54693), + 66: uint16(54728), + 67: uint16(54729), + 68: uint16(54732), + 69: uint16(54736), + 70: uint16(54738), + 71: uint16(54744), + 72: uint16(54745), + 73: uint16(54747), + 74: uint16(54749), + 75: uint16(54756), + 76: uint16(54757), + 77: uint16(54760), + 78: uint16(54764), + 79: uint16(54772), + 80: uint16(54773), + 81: uint16(54775), + 82: uint16(54777), + 83: uint16(54784), + 84: uint16(54785), + 85: uint16(54788), + 86: uint16(54792), + 87: uint16(54800), + 88: uint16(54801), + 89: uint16(54803), + 90: uint16(54804), + 91: uint16(54805), + 92: uint16(54812), + 93: uint16(54816), + }, + 39: { + 0: uint16(54820), + 1: uint16(54829), + 2: uint16(54840), + 3: uint16(54841), + 4: uint16(54844), + 5: uint16(54848), + 6: uint16(54853), + 7: uint16(54856), + 8: uint16(54857), + 9: uint16(54859), + 10: uint16(54861), + 11: uint16(54865), + 12: uint16(54868), + 13: uint16(54869), + 14: uint16(54872), + 15: uint16(54876), + 16: uint16(54887), + 17: uint16(54889), + 18: uint16(54896), + 19: uint16(54897), + 20: uint16(54900), + 21: uint16(54915), + 22: uint16(54917), + 23: uint16(54924), + 24: uint16(54925), + 25: uint16(54928), + 26: uint16(54932), + 27: uint16(54941), + 28: uint16(54943), + 29: uint16(54945), + 30: uint16(54952), + 31: uint16(54956), + 32: uint16(54960), + 33: uint16(54969), + 34: uint16(54971), + 35: uint16(54980), + 36: uint16(54981), + 37: uint16(54984), + 38: uint16(54988), + 39: uint16(54993), + 40: uint16(54996), + 41: uint16(54999), + 42: uint16(55001), + 43: uint16(55008), + 44: uint16(55012), + 45: uint16(55016), + 46: uint16(55024), + 47: uint16(55029), + 48: uint16(55036), + 49: uint16(55037), + 50: uint16(55040), + 51: uint16(55044), + 52: uint16(55057), + 53: uint16(55064), + 54: uint16(55065), + 55: uint16(55068), + 56: uint16(55072), + 57: uint16(55080), + 58: uint16(55081), + 59: uint16(55083), + 60: uint16(55085), + 61: uint16(55092), + 62: uint16(55093), + 63: uint16(55096), + 64: uint16(55100), + 65: uint16(55108), + 66: uint16(55111), + 67: uint16(55113), + 68: uint16(55120), + 69: uint16(55121), + 70: uint16(55124), + 71: uint16(55126), + 72: uint16(55127), + 73: uint16(55128), + 74: uint16(55129), + 75: uint16(55136), + 76: uint16(55137), + 77: uint16(55139), + 78: uint16(55141), + 79: uint16(55145), + 80: uint16(55148), + 81: uint16(55152), + 82: uint16(55156), + 83: uint16(55164), + 84: uint16(55165), + 85: uint16(55169), + 86: uint16(55176), + 87: uint16(55177), + 88: uint16(55180), + 89: uint16(55184), + 90: uint16(55192), + 91: uint16(55193), + 92: uint16(55195), + 93: uint16(55197), + }, + 40: {}, + 41: { + 0: uint16(20285), + 1: uint16(20339), + 2: uint16(20551), + 3: uint16(20729), + 4: uint16(21152), + 5: uint16(21487), + 6: uint16(21621), + 7: uint16(21733), + 8: uint16(22025), + 9: uint16(23233), + 10: uint16(23478), + 11: uint16(26247), + 12: uint16(26550), + 13: uint16(26551), + 14: uint16(26607), + 15: uint16(27468), + 16: uint16(29634), + 17: uint16(30146), + 18: uint16(31292), + 19: uint16(33499), + 20: uint16(33540), + 21: uint16(34903), + 22: uint16(34952), + 23: uint16(35382), + 24: uint16(36040), + 25: uint16(36303), + 26: uint16(36603), + 27: uint16(36838), + 28: uint16(39381), + 29: uint16(21051), + 30: uint16(21364), + 31: uint16(21508), + 32: uint16(24682), + 33: uint16(24932), + 34: uint16(27580), + 35: uint16(29647), + 36: uint16(33050), + 37: uint16(35258), + 38: uint16(35282), + 39: uint16(38307), + 40: uint16(20355), + 41: uint16(21002), + 42: uint16(22718), + 43: uint16(22904), + 44: uint16(23014), + 45: uint16(24178), + 46: uint16(24185), + 47: uint16(25031), + 48: uint16(25536), + 49: uint16(26438), + 50: uint16(26604), + 51: uint16(26751), + 52: uint16(28567), + 53: uint16(30286), + 54: uint16(30475), + 55: uint16(30965), + 56: uint16(31240), + 57: uint16(31487), + 58: uint16(31777), + 59: uint16(32925), + 60: uint16(33390), + 61: uint16(33393), + 62: uint16(35563), + 63: uint16(38291), + 64: uint16(20075), + 65: uint16(21917), + 66: uint16(26359), + 67: uint16(28212), + 68: uint16(30883), + 69: uint16(31469), + 70: uint16(33883), + 71: uint16(35088), + 72: uint16(34638), + 73: uint16(38824), + 74: uint16(21208), + 75: uint16(22350), + 76: uint16(22570), + 77: uint16(23884), + 78: uint16(24863), + 79: uint16(25022), + 80: uint16(25121), + 81: uint16(25954), + 82: uint16(26577), + 83: uint16(27204), + 84: uint16(28187), + 85: uint16(29976), + 86: uint16(30131), + 87: uint16(30435), + 88: uint16(30640), + 89: uint16(32058), + 90: uint16(37039), + 91: uint16(37969), + 92: uint16(37970), + 93: uint16(40853), + }, + 42: { + 0: uint16(21283), + 1: uint16(23724), + 2: uint16(30002), + 3: uint16(32987), + 4: uint16(37440), + 5: uint16(38296), + 6: uint16(21083), + 7: uint16(22536), + 8: uint16(23004), + 9: uint16(23713), + 10: uint16(23831), + 11: uint16(24247), + 12: uint16(24378), + 13: uint16(24394), + 14: uint16(24951), + 15: uint16(27743), + 16: uint16(30074), + 17: uint16(30086), + 18: uint16(31968), + 19: uint16(32115), + 20: uint16(32177), + 21: uint16(32652), + 22: uint16(33108), + 23: uint16(33313), + 24: uint16(34193), + 25: uint16(35137), + 26: uint16(35611), + 27: uint16(37628), + 28: uint16(38477), + 29: uint16(40007), + 30: uint16(20171), + 31: uint16(20215), + 32: uint16(20491), + 33: uint16(20977), + 34: uint16(22607), + 35: uint16(24887), + 36: uint16(24894), + 37: uint16(24936), + 38: uint16(25913), + 39: uint16(27114), + 40: uint16(28433), + 41: uint16(30117), + 42: uint16(30342), + 43: uint16(30422), + 44: uint16(31623), + 45: uint16(33445), + 46: uint16(33995), + 47: uint16(63744), + 48: uint16(37799), + 49: uint16(38283), + 50: uint16(21888), + 51: uint16(23458), + 52: uint16(22353), + 53: uint16(63745), + 54: uint16(31923), + 55: uint16(32697), + 56: uint16(37301), + 57: uint16(20520), + 58: uint16(21435), + 59: uint16(23621), + 60: uint16(24040), + 61: uint16(25298), + 62: uint16(25454), + 63: uint16(25818), + 64: uint16(25831), + 65: uint16(28192), + 66: uint16(28844), + 67: uint16(31067), + 68: uint16(36317), + 69: uint16(36382), + 70: uint16(63746), + 71: uint16(36989), + 72: uint16(37445), + 73: uint16(37624), + 74: uint16(20094), + 75: uint16(20214), + 76: uint16(20581), + 77: uint16(24062), + 78: uint16(24314), + 79: uint16(24838), + 80: uint16(26967), + 81: uint16(33137), + 82: uint16(34388), + 83: uint16(36423), + 84: uint16(37749), + 85: uint16(39467), + 86: uint16(20062), + 87: uint16(20625), + 88: uint16(26480), + 89: uint16(26688), + 90: uint16(20745), + 91: uint16(21133), + 92: uint16(21138), + 93: uint16(27298), + }, + 43: { + 0: uint16(30652), + 1: uint16(37392), + 2: uint16(40660), + 3: uint16(21163), + 4: uint16(24623), + 5: uint16(36850), + 6: uint16(20552), + 7: uint16(25001), + 8: uint16(25581), + 9: uint16(25802), + 10: uint16(26684), + 11: uint16(27268), + 12: uint16(28608), + 13: uint16(33160), + 14: uint16(35233), + 15: uint16(38548), + 16: uint16(22533), + 17: uint16(29309), + 18: uint16(29356), + 19: uint16(29956), + 20: uint16(32121), + 21: uint16(32365), + 22: uint16(32937), + 23: uint16(35211), + 24: uint16(35700), + 25: uint16(36963), + 26: uint16(40273), + 27: uint16(25225), + 28: uint16(27770), + 29: uint16(28500), + 30: uint16(32080), + 31: uint16(32570), + 32: uint16(35363), + 33: uint16(20860), + 34: uint16(24906), + 35: uint16(31645), + 36: uint16(35609), + 37: uint16(37463), + 38: uint16(37772), + 39: uint16(20140), + 40: uint16(20435), + 41: uint16(20510), + 42: uint16(20670), + 43: uint16(20742), + 44: uint16(21185), + 45: uint16(21197), + 46: uint16(21375), + 47: uint16(22384), + 48: uint16(22659), + 49: uint16(24218), + 50: uint16(24465), + 51: uint16(24950), + 52: uint16(25004), + 53: uint16(25806), + 54: uint16(25964), + 55: uint16(26223), + 56: uint16(26299), + 57: uint16(26356), + 58: uint16(26775), + 59: uint16(28039), + 60: uint16(28805), + 61: uint16(28913), + 62: uint16(29855), + 63: uint16(29861), + 64: uint16(29898), + 65: uint16(30169), + 66: uint16(30828), + 67: uint16(30956), + 68: uint16(31455), + 69: uint16(31478), + 70: uint16(32069), + 71: uint16(32147), + 72: uint16(32789), + 73: uint16(32831), + 74: uint16(33051), + 75: uint16(33686), + 76: uint16(35686), + 77: uint16(36629), + 78: uint16(36885), + 79: uint16(37857), + 80: uint16(38915), + 81: uint16(38968), + 82: uint16(39514), + 83: uint16(39912), + 84: uint16(20418), + 85: uint16(21843), + 86: uint16(22586), + 87: uint16(22865), + 88: uint16(23395), + 89: uint16(23622), + 90: uint16(24760), + 91: uint16(25106), + 92: uint16(26690), + 93: uint16(26800), + }, + 44: { + 0: uint16(26856), + 1: uint16(28330), + 2: uint16(30028), + 3: uint16(30328), + 4: uint16(30926), + 5: uint16(31293), + 6: uint16(31995), + 7: uint16(32363), + 8: uint16(32380), + 9: uint16(35336), + 10: uint16(35489), + 11: uint16(35903), + 12: uint16(38542), + 13: uint16(40388), + 14: uint16(21476), + 15: uint16(21481), + 16: uint16(21578), + 17: uint16(21617), + 18: uint16(22266), + 19: uint16(22993), + 20: uint16(23396), + 21: uint16(23611), + 22: uint16(24235), + 23: uint16(25335), + 24: uint16(25911), + 25: uint16(25925), + 26: uint16(25970), + 27: uint16(26272), + 28: uint16(26543), + 29: uint16(27073), + 30: uint16(27837), + 31: uint16(30204), + 32: uint16(30352), + 33: uint16(30590), + 34: uint16(31295), + 35: uint16(32660), + 36: uint16(32771), + 37: uint16(32929), + 38: uint16(33167), + 39: uint16(33510), + 40: uint16(33533), + 41: uint16(33776), + 42: uint16(34241), + 43: uint16(34865), + 44: uint16(34996), + 45: uint16(35493), + 46: uint16(63747), + 47: uint16(36764), + 48: uint16(37678), + 49: uint16(38599), + 50: uint16(39015), + 51: uint16(39640), + 52: uint16(40723), + 53: uint16(21741), + 54: uint16(26011), + 55: uint16(26354), + 56: uint16(26767), + 57: uint16(31296), + 58: uint16(35895), + 59: uint16(40288), + 60: uint16(22256), + 61: uint16(22372), + 62: uint16(23825), + 63: uint16(26118), + 64: uint16(26801), + 65: uint16(26829), + 66: uint16(28414), + 67: uint16(29736), + 68: uint16(34974), + 69: uint16(39908), + 70: uint16(27752), + 71: uint16(63748), + 72: uint16(39592), + 73: uint16(20379), + 74: uint16(20844), + 75: uint16(20849), + 76: uint16(21151), + 77: uint16(23380), + 78: uint16(24037), + 79: uint16(24656), + 80: uint16(24685), + 81: uint16(25329), + 82: uint16(25511), + 83: uint16(25915), + 84: uint16(29657), + 85: uint16(31354), + 86: uint16(34467), + 87: uint16(36002), + 88: uint16(38799), + 89: uint16(20018), + 90: uint16(23521), + 91: uint16(25096), + 92: uint16(26524), + 93: uint16(29916), + }, + 45: { + 0: uint16(31185), + 1: uint16(33747), + 2: uint16(35463), + 3: uint16(35506), + 4: uint16(36328), + 5: uint16(36942), + 6: uint16(37707), + 7: uint16(38982), + 8: uint16(24275), + 9: uint16(27112), + 10: uint16(34303), + 11: uint16(37101), + 12: uint16(63749), + 13: uint16(20896), + 14: uint16(23448), + 15: uint16(23532), + 16: uint16(24931), + 17: uint16(26874), + 18: uint16(27454), + 19: uint16(28748), + 20: uint16(29743), + 21: uint16(29912), + 22: uint16(31649), + 23: uint16(32592), + 24: uint16(33733), + 25: uint16(35264), + 26: uint16(36011), + 27: uint16(38364), + 28: uint16(39208), + 29: uint16(21038), + 30: uint16(24669), + 31: uint16(25324), + 32: uint16(36866), + 33: uint16(20362), + 34: uint16(20809), + 35: uint16(21281), + 36: uint16(22745), + 37: uint16(24291), + 38: uint16(26336), + 39: uint16(27960), + 40: uint16(28826), + 41: uint16(29378), + 42: uint16(29654), + 43: uint16(31568), + 44: uint16(33009), + 45: uint16(37979), + 46: uint16(21350), + 47: uint16(25499), + 48: uint16(32619), + 49: uint16(20054), + 50: uint16(20608), + 51: uint16(22602), + 52: uint16(22750), + 53: uint16(24618), + 54: uint16(24871), + 55: uint16(25296), + 56: uint16(27088), + 57: uint16(39745), + 58: uint16(23439), + 59: uint16(32024), + 60: uint16(32945), + 61: uint16(36703), + 62: uint16(20132), + 63: uint16(20689), + 64: uint16(21676), + 65: uint16(21932), + 66: uint16(23308), + 67: uint16(23968), + 68: uint16(24039), + 69: uint16(25898), + 70: uint16(25934), + 71: uint16(26657), + 72: uint16(27211), + 73: uint16(29409), + 74: uint16(30350), + 75: uint16(30703), + 76: uint16(32094), + 77: uint16(32761), + 78: uint16(33184), + 79: uint16(34126), + 80: uint16(34527), + 81: uint16(36611), + 82: uint16(36686), + 83: uint16(37066), + 84: uint16(39171), + 85: uint16(39509), + 86: uint16(39851), + 87: uint16(19992), + 88: uint16(20037), + 89: uint16(20061), + 90: uint16(20167), + 91: uint16(20465), + 92: uint16(20855), + 93: uint16(21246), + }, + 46: { + 0: uint16(21312), + 1: uint16(21475), + 2: uint16(21477), + 3: uint16(21646), + 4: uint16(22036), + 5: uint16(22389), + 6: uint16(22434), + 7: uint16(23495), + 8: uint16(23943), + 9: uint16(24272), + 10: uint16(25084), + 11: uint16(25304), + 12: uint16(25937), + 13: uint16(26552), + 14: uint16(26601), + 15: uint16(27083), + 16: uint16(27472), + 17: uint16(27590), + 18: uint16(27628), + 19: uint16(27714), + 20: uint16(28317), + 21: uint16(28792), + 22: uint16(29399), + 23: uint16(29590), + 24: uint16(29699), + 25: uint16(30655), + 26: uint16(30697), + 27: uint16(31350), + 28: uint16(32127), + 29: uint16(32777), + 30: uint16(33276), + 31: uint16(33285), + 32: uint16(33290), + 33: uint16(33503), + 34: uint16(34914), + 35: uint16(35635), + 36: uint16(36092), + 37: uint16(36544), + 38: uint16(36881), + 39: uint16(37041), + 40: uint16(37476), + 41: uint16(37558), + 42: uint16(39378), + 43: uint16(39493), + 44: uint16(40169), + 45: uint16(40407), + 46: uint16(40860), + 47: uint16(22283), + 48: uint16(23616), + 49: uint16(33738), + 50: uint16(38816), + 51: uint16(38827), + 52: uint16(40628), + 53: uint16(21531), + 54: uint16(31384), + 55: uint16(32676), + 56: uint16(35033), + 57: uint16(36557), + 58: uint16(37089), + 59: uint16(22528), + 60: uint16(23624), + 61: uint16(25496), + 62: uint16(31391), + 63: uint16(23470), + 64: uint16(24339), + 65: uint16(31353), + 66: uint16(31406), + 67: uint16(33422), + 68: uint16(36524), + 69: uint16(20518), + 70: uint16(21048), + 71: uint16(21240), + 72: uint16(21367), + 73: uint16(22280), + 74: uint16(25331), + 75: uint16(25458), + 76: uint16(27402), + 77: uint16(28099), + 78: uint16(30519), + 79: uint16(21413), + 80: uint16(29527), + 81: uint16(34152), + 82: uint16(36470), + 83: uint16(38357), + 84: uint16(26426), + 85: uint16(27331), + 86: uint16(28528), + 87: uint16(35437), + 88: uint16(36556), + 89: uint16(39243), + 90: uint16(63750), + 91: uint16(26231), + 92: uint16(27512), + 93: uint16(36020), + }, + 47: { + 0: uint16(39740), + 1: uint16(63751), + 2: uint16(21483), + 3: uint16(22317), + 4: uint16(22862), + 5: uint16(25542), + 6: uint16(27131), + 7: uint16(29674), + 8: uint16(30789), + 9: uint16(31418), + 10: uint16(31429), + 11: uint16(31998), + 12: uint16(33909), + 13: uint16(35215), + 14: uint16(36211), + 15: uint16(36917), + 16: uint16(38312), + 17: uint16(21243), + 18: uint16(22343), + 19: uint16(30023), + 20: uint16(31584), + 21: uint16(33740), + 22: uint16(37406), + 23: uint16(63752), + 24: uint16(27224), + 25: uint16(20811), + 26: uint16(21067), + 27: uint16(21127), + 28: uint16(25119), + 29: uint16(26840), + 30: uint16(26997), + 31: uint16(38553), + 32: uint16(20677), + 33: uint16(21156), + 34: uint16(21220), + 35: uint16(25027), + 36: uint16(26020), + 37: uint16(26681), + 38: uint16(27135), + 39: uint16(29822), + 40: uint16(31563), + 41: uint16(33465), + 42: uint16(33771), + 43: uint16(35250), + 44: uint16(35641), + 45: uint16(36817), + 46: uint16(39241), + 47: uint16(63753), + 48: uint16(20170), + 49: uint16(22935), + 50: uint16(25810), + 51: uint16(26129), + 52: uint16(27278), + 53: uint16(29748), + 54: uint16(31105), + 55: uint16(31165), + 56: uint16(33449), + 57: uint16(34942), + 58: uint16(34943), + 59: uint16(35167), + 60: uint16(63754), + 61: uint16(37670), + 62: uint16(20235), + 63: uint16(21450), + 64: uint16(24613), + 65: uint16(25201), + 66: uint16(27762), + 67: uint16(32026), + 68: uint16(32102), + 69: uint16(20120), + 70: uint16(20834), + 71: uint16(30684), + 72: uint16(32943), + 73: uint16(20225), + 74: uint16(20238), + 75: uint16(20854), + 76: uint16(20864), + 77: uint16(21980), + 78: uint16(22120), + 79: uint16(22331), + 80: uint16(22522), + 81: uint16(22524), + 82: uint16(22804), + 83: uint16(22855), + 84: uint16(22931), + 85: uint16(23492), + 86: uint16(23696), + 87: uint16(23822), + 88: uint16(24049), + 89: uint16(24190), + 90: uint16(24524), + 91: uint16(25216), + 92: uint16(26071), + 93: uint16(26083), + }, + 48: { + 0: uint16(26398), + 1: uint16(26399), + 2: uint16(26462), + 3: uint16(26827), + 4: uint16(26820), + 5: uint16(27231), + 6: uint16(27450), + 7: uint16(27683), + 8: uint16(27773), + 9: uint16(27778), + 10: uint16(28103), + 11: uint16(29592), + 12: uint16(29734), + 13: uint16(29738), + 14: uint16(29826), + 15: uint16(29859), + 16: uint16(30072), + 17: uint16(30079), + 18: uint16(30849), + 19: uint16(30959), + 20: uint16(31041), + 21: uint16(31047), + 22: uint16(31048), + 23: uint16(31098), + 24: uint16(31637), + 25: uint16(32000), + 26: uint16(32186), + 27: uint16(32648), + 28: uint16(32774), + 29: uint16(32813), + 30: uint16(32908), + 31: uint16(35352), + 32: uint16(35663), + 33: uint16(35912), + 34: uint16(36215), + 35: uint16(37665), + 36: uint16(37668), + 37: uint16(39138), + 38: uint16(39249), + 39: uint16(39438), + 40: uint16(39439), + 41: uint16(39525), + 42: uint16(40594), + 43: uint16(32202), + 44: uint16(20342), + 45: uint16(21513), + 46: uint16(25326), + 47: uint16(26708), + 48: uint16(37329), + 49: uint16(21931), + 50: uint16(20794), + 51: uint16(63755), + 52: uint16(63756), + 53: uint16(23068), + 54: uint16(25062), + 55: uint16(63757), + 56: uint16(25295), + 57: uint16(25343), + 58: uint16(63758), + 59: uint16(63759), + 60: uint16(63760), + 61: uint16(63761), + 62: uint16(63762), + 63: uint16(63763), + 64: uint16(37027), + 65: uint16(63764), + 66: uint16(63765), + 67: uint16(63766), + 68: uint16(63767), + 69: uint16(63768), + 70: uint16(35582), + 71: uint16(63769), + 72: uint16(63770), + 73: uint16(63771), + 74: uint16(63772), + 75: uint16(26262), + 76: uint16(63773), + 77: uint16(29014), + 78: uint16(63774), + 79: uint16(63775), + 80: uint16(38627), + 81: uint16(63776), + 82: uint16(25423), + 83: uint16(25466), + 84: uint16(21335), + 85: uint16(63777), + 86: uint16(26511), + 87: uint16(26976), + 88: uint16(28275), + 89: uint16(63778), + 90: uint16(30007), + 91: uint16(63779), + 92: uint16(63780), + 93: uint16(63781), + }, + 49: { + 0: uint16(32013), + 1: uint16(63782), + 2: uint16(63783), + 3: uint16(34930), + 4: uint16(22218), + 5: uint16(23064), + 6: uint16(63784), + 7: uint16(63785), + 8: uint16(63786), + 9: uint16(63787), + 10: uint16(63788), + 11: uint16(20035), + 12: uint16(63789), + 13: uint16(20839), + 14: uint16(22856), + 15: uint16(26608), + 16: uint16(32784), + 17: uint16(63790), + 18: uint16(22899), + 19: uint16(24180), + 20: uint16(25754), + 21: uint16(31178), + 22: uint16(24565), + 23: uint16(24684), + 24: uint16(25288), + 25: uint16(25467), + 26: uint16(23527), + 27: uint16(23511), + 28: uint16(21162), + 29: uint16(63791), + 30: uint16(22900), + 31: uint16(24361), + 32: uint16(24594), + 33: uint16(63792), + 34: uint16(63793), + 35: uint16(63794), + 36: uint16(29785), + 37: uint16(63795), + 38: uint16(63796), + 39: uint16(63797), + 40: uint16(63798), + 41: uint16(63799), + 42: uint16(63800), + 43: uint16(39377), + 44: uint16(63801), + 45: uint16(63802), + 46: uint16(63803), + 47: uint16(63804), + 48: uint16(63805), + 49: uint16(63806), + 50: uint16(63807), + 51: uint16(63808), + 52: uint16(63809), + 53: uint16(63810), + 54: uint16(63811), + 55: uint16(28611), + 56: uint16(63812), + 57: uint16(63813), + 58: uint16(33215), + 59: uint16(36786), + 60: uint16(24817), + 61: uint16(63814), + 62: uint16(63815), + 63: uint16(33126), + 64: uint16(63816), + 65: uint16(63817), + 66: uint16(23615), + 67: uint16(63818), + 68: uint16(63819), + 69: uint16(63820), + 70: uint16(63821), + 71: uint16(63822), + 72: uint16(63823), + 73: uint16(63824), + 74: uint16(63825), + 75: uint16(23273), + 76: uint16(35365), + 77: uint16(26491), + 78: uint16(32016), + 79: uint16(63826), + 80: uint16(63827), + 81: uint16(63828), + 82: uint16(63829), + 83: uint16(63830), + 84: uint16(63831), + 85: uint16(33021), + 86: uint16(63832), + 87: uint16(63833), + 88: uint16(23612), + 89: uint16(27877), + 90: uint16(21311), + 91: uint16(28346), + 92: uint16(22810), + 93: uint16(33590), + }, + 50: { + 0: uint16(20025), + 1: uint16(20150), + 2: uint16(20294), + 3: uint16(21934), + 4: uint16(22296), + 5: uint16(22727), + 6: uint16(24406), + 7: uint16(26039), + 8: uint16(26086), + 9: uint16(27264), + 10: uint16(27573), + 11: uint16(28237), + 12: uint16(30701), + 13: uint16(31471), + 14: uint16(31774), + 15: uint16(32222), + 16: uint16(34507), + 17: uint16(34962), + 18: uint16(37170), + 19: uint16(37723), + 20: uint16(25787), + 21: uint16(28606), + 22: uint16(29562), + 23: uint16(30136), + 24: uint16(36948), + 25: uint16(21846), + 26: uint16(22349), + 27: uint16(25018), + 28: uint16(25812), + 29: uint16(26311), + 30: uint16(28129), + 31: uint16(28251), + 32: uint16(28525), + 33: uint16(28601), + 34: uint16(30192), + 35: uint16(32835), + 36: uint16(33213), + 37: uint16(34113), + 38: uint16(35203), + 39: uint16(35527), + 40: uint16(35674), + 41: uint16(37663), + 42: uint16(27795), + 43: uint16(30035), + 44: uint16(31572), + 45: uint16(36367), + 46: uint16(36957), + 47: uint16(21776), + 48: uint16(22530), + 49: uint16(22616), + 50: uint16(24162), + 51: uint16(25095), + 52: uint16(25758), + 53: uint16(26848), + 54: uint16(30070), + 55: uint16(31958), + 56: uint16(34739), + 57: uint16(40680), + 58: uint16(20195), + 59: uint16(22408), + 60: uint16(22382), + 61: uint16(22823), + 62: uint16(23565), + 63: uint16(23729), + 64: uint16(24118), + 65: uint16(24453), + 66: uint16(25140), + 67: uint16(25825), + 68: uint16(29619), + 69: uint16(33274), + 70: uint16(34955), + 71: uint16(36024), + 72: uint16(38538), + 73: uint16(40667), + 74: uint16(23429), + 75: uint16(24503), + 76: uint16(24755), + 77: uint16(20498), + 78: uint16(20992), + 79: uint16(21040), + 80: uint16(22294), + 81: uint16(22581), + 82: uint16(22615), + 83: uint16(23566), + 84: uint16(23648), + 85: uint16(23798), + 86: uint16(23947), + 87: uint16(24230), + 88: uint16(24466), + 89: uint16(24764), + 90: uint16(25361), + 91: uint16(25481), + 92: uint16(25623), + 93: uint16(26691), + }, + 51: { + 0: uint16(26873), + 1: uint16(27330), + 2: uint16(28120), + 3: uint16(28193), + 4: uint16(28372), + 5: uint16(28644), + 6: uint16(29182), + 7: uint16(30428), + 8: uint16(30585), + 9: uint16(31153), + 10: uint16(31291), + 11: uint16(33796), + 12: uint16(35241), + 13: uint16(36077), + 14: uint16(36339), + 15: uint16(36424), + 16: uint16(36867), + 17: uint16(36884), + 18: uint16(36947), + 19: uint16(37117), + 20: uint16(37709), + 21: uint16(38518), + 22: uint16(38876), + 23: uint16(27602), + 24: uint16(28678), + 25: uint16(29272), + 26: uint16(29346), + 27: uint16(29544), + 28: uint16(30563), + 29: uint16(31167), + 30: uint16(31716), + 31: uint16(32411), + 32: uint16(35712), + 33: uint16(22697), + 34: uint16(24775), + 35: uint16(25958), + 36: uint16(26109), + 37: uint16(26302), + 38: uint16(27788), + 39: uint16(28958), + 40: uint16(29129), + 41: uint16(35930), + 42: uint16(38931), + 43: uint16(20077), + 44: uint16(31361), + 45: uint16(20189), + 46: uint16(20908), + 47: uint16(20941), + 48: uint16(21205), + 49: uint16(21516), + 50: uint16(24999), + 51: uint16(26481), + 52: uint16(26704), + 53: uint16(26847), + 54: uint16(27934), + 55: uint16(28540), + 56: uint16(30140), + 57: uint16(30643), + 58: uint16(31461), + 59: uint16(33012), + 60: uint16(33891), + 61: uint16(37509), + 62: uint16(20828), + 63: uint16(26007), + 64: uint16(26460), + 65: uint16(26515), + 66: uint16(30168), + 67: uint16(31431), + 68: uint16(33651), + 69: uint16(63834), + 70: uint16(35910), + 71: uint16(36887), + 72: uint16(38957), + 73: uint16(23663), + 74: uint16(33216), + 75: uint16(33434), + 76: uint16(36929), + 77: uint16(36975), + 78: uint16(37389), + 79: uint16(24471), + 80: uint16(23965), + 81: uint16(27225), + 82: uint16(29128), + 83: uint16(30331), + 84: uint16(31561), + 85: uint16(34276), + 86: uint16(35588), + 87: uint16(37159), + 88: uint16(39472), + 89: uint16(21895), + 90: uint16(25078), + 91: uint16(63835), + 92: uint16(30313), + 93: uint16(32645), + }, + 52: { + 0: uint16(34367), + 1: uint16(34746), + 2: uint16(35064), + 3: uint16(37007), + 4: uint16(63836), + 5: uint16(27931), + 6: uint16(28889), + 7: uint16(29662), + 8: uint16(32097), + 9: uint16(33853), + 10: uint16(63837), + 11: uint16(37226), + 12: uint16(39409), + 13: uint16(63838), + 14: uint16(20098), + 15: uint16(21365), + 16: uint16(27396), + 17: uint16(27410), + 18: uint16(28734), + 19: uint16(29211), + 20: uint16(34349), + 21: uint16(40478), + 22: uint16(21068), + 23: uint16(36771), + 24: uint16(23888), + 25: uint16(25829), + 26: uint16(25900), + 27: uint16(27414), + 28: uint16(28651), + 29: uint16(31811), + 30: uint16(32412), + 31: uint16(34253), + 32: uint16(35172), + 33: uint16(35261), + 34: uint16(25289), + 35: uint16(33240), + 36: uint16(34847), + 37: uint16(24266), + 38: uint16(26391), + 39: uint16(28010), + 40: uint16(29436), + 41: uint16(29701), + 42: uint16(29807), + 43: uint16(34690), + 44: uint16(37086), + 45: uint16(20358), + 46: uint16(23821), + 47: uint16(24480), + 48: uint16(33802), + 49: uint16(20919), + 50: uint16(25504), + 51: uint16(30053), + 52: uint16(20142), + 53: uint16(20486), + 54: uint16(20841), + 55: uint16(20937), + 56: uint16(26753), + 57: uint16(27153), + 58: uint16(31918), + 59: uint16(31921), + 60: uint16(31975), + 61: uint16(33391), + 62: uint16(35538), + 63: uint16(36635), + 64: uint16(37327), + 65: uint16(20406), + 66: uint16(20791), + 67: uint16(21237), + 68: uint16(21570), + 69: uint16(24300), + 70: uint16(24942), + 71: uint16(25150), + 72: uint16(26053), + 73: uint16(27354), + 74: uint16(28670), + 75: uint16(31018), + 76: uint16(34268), + 77: uint16(34851), + 78: uint16(38317), + 79: uint16(39522), + 80: uint16(39530), + 81: uint16(40599), + 82: uint16(40654), + 83: uint16(21147), + 84: uint16(26310), + 85: uint16(27511), + 86: uint16(28701), + 87: uint16(31019), + 88: uint16(36706), + 89: uint16(38722), + 90: uint16(24976), + 91: uint16(25088), + 92: uint16(25891), + 93: uint16(28451), + }, + 53: { + 0: uint16(29001), + 1: uint16(29833), + 2: uint16(32244), + 3: uint16(32879), + 4: uint16(34030), + 5: uint16(36646), + 6: uint16(36899), + 7: uint16(37706), + 8: uint16(20925), + 9: uint16(21015), + 10: uint16(21155), + 11: uint16(27916), + 12: uint16(28872), + 13: uint16(35010), + 14: uint16(24265), + 15: uint16(25986), + 16: uint16(27566), + 17: uint16(28610), + 18: uint16(31806), + 19: uint16(29557), + 20: uint16(20196), + 21: uint16(20278), + 22: uint16(22265), + 23: uint16(63839), + 24: uint16(23738), + 25: uint16(23994), + 26: uint16(24604), + 27: uint16(29618), + 28: uint16(31533), + 29: uint16(32666), + 30: uint16(32718), + 31: uint16(32838), + 32: uint16(36894), + 33: uint16(37428), + 34: uint16(38646), + 35: uint16(38728), + 36: uint16(38936), + 37: uint16(40801), + 38: uint16(20363), + 39: uint16(28583), + 40: uint16(31150), + 41: uint16(37300), + 42: uint16(38583), + 43: uint16(21214), + 44: uint16(63840), + 45: uint16(25736), + 46: uint16(25796), + 47: uint16(27347), + 48: uint16(28510), + 49: uint16(28696), + 50: uint16(29200), + 51: uint16(30439), + 52: uint16(32769), + 53: uint16(34310), + 54: uint16(34396), + 55: uint16(36335), + 56: uint16(36613), + 57: uint16(38706), + 58: uint16(39791), + 59: uint16(40442), + 60: uint16(40565), + 61: uint16(30860), + 62: uint16(31103), + 63: uint16(32160), + 64: uint16(33737), + 65: uint16(37636), + 66: uint16(40575), + 67: uint16(40595), + 68: uint16(35542), + 69: uint16(22751), + 70: uint16(24324), + 71: uint16(26407), + 72: uint16(28711), + 73: uint16(29903), + 74: uint16(31840), + 75: uint16(32894), + 76: uint16(20769), + 77: uint16(28712), + 78: uint16(29282), + 79: uint16(30922), + 80: uint16(36034), + 81: uint16(36058), + 82: uint16(36084), + 83: uint16(38647), + 84: uint16(20102), + 85: uint16(20698), + 86: uint16(23534), + 87: uint16(24278), + 88: uint16(26009), + 89: uint16(29134), + 90: uint16(30274), + 91: uint16(30637), + 92: uint16(32842), + 93: uint16(34044), + }, + 54: { + 0: uint16(36988), + 1: uint16(39719), + 2: uint16(40845), + 3: uint16(22744), + 4: uint16(23105), + 5: uint16(23650), + 6: uint16(27155), + 7: uint16(28122), + 8: uint16(28431), + 9: uint16(30267), + 10: uint16(32047), + 11: uint16(32311), + 12: uint16(34078), + 13: uint16(35128), + 14: uint16(37860), + 15: uint16(38475), + 16: uint16(21129), + 17: uint16(26066), + 18: uint16(26611), + 19: uint16(27060), + 20: uint16(27969), + 21: uint16(28316), + 22: uint16(28687), + 23: uint16(29705), + 24: uint16(29792), + 25: uint16(30041), + 26: uint16(30244), + 27: uint16(30827), + 28: uint16(35628), + 29: uint16(39006), + 30: uint16(20845), + 31: uint16(25134), + 32: uint16(38520), + 33: uint16(20374), + 34: uint16(20523), + 35: uint16(23833), + 36: uint16(28138), + 37: uint16(32184), + 38: uint16(36650), + 39: uint16(24459), + 40: uint16(24900), + 41: uint16(26647), + 42: uint16(63841), + 43: uint16(38534), + 44: uint16(21202), + 45: uint16(32907), + 46: uint16(20956), + 47: uint16(20940), + 48: uint16(26974), + 49: uint16(31260), + 50: uint16(32190), + 51: uint16(33777), + 52: uint16(38517), + 53: uint16(20442), + 54: uint16(21033), + 55: uint16(21400), + 56: uint16(21519), + 57: uint16(21774), + 58: uint16(23653), + 59: uint16(24743), + 60: uint16(26446), + 61: uint16(26792), + 62: uint16(28012), + 63: uint16(29313), + 64: uint16(29432), + 65: uint16(29702), + 66: uint16(29827), + 67: uint16(63842), + 68: uint16(30178), + 69: uint16(31852), + 70: uint16(32633), + 71: uint16(32696), + 72: uint16(33673), + 73: uint16(35023), + 74: uint16(35041), + 75: uint16(37324), + 76: uint16(37328), + 77: uint16(38626), + 78: uint16(39881), + 79: uint16(21533), + 80: uint16(28542), + 81: uint16(29136), + 82: uint16(29848), + 83: uint16(34298), + 84: uint16(36522), + 85: uint16(38563), + 86: uint16(40023), + 87: uint16(40607), + 88: uint16(26519), + 89: uint16(28107), + 90: uint16(29747), + 91: uint16(33256), + 92: uint16(38678), + 93: uint16(30764), + }, + 55: { + 0: uint16(31435), + 1: uint16(31520), + 2: uint16(31890), + 3: uint16(25705), + 4: uint16(29802), + 5: uint16(30194), + 6: uint16(30908), + 7: uint16(30952), + 8: uint16(39340), + 9: uint16(39764), + 10: uint16(40635), + 11: uint16(23518), + 12: uint16(24149), + 13: uint16(28448), + 14: uint16(33180), + 15: uint16(33707), + 16: uint16(37000), + 17: uint16(19975), + 18: uint16(21325), + 19: uint16(23081), + 20: uint16(24018), + 21: uint16(24398), + 22: uint16(24930), + 23: uint16(25405), + 24: uint16(26217), + 25: uint16(26364), + 26: uint16(28415), + 27: uint16(28459), + 28: uint16(28771), + 29: uint16(30622), + 30: uint16(33836), + 31: uint16(34067), + 32: uint16(34875), + 33: uint16(36627), + 34: uint16(39237), + 35: uint16(39995), + 36: uint16(21788), + 37: uint16(25273), + 38: uint16(26411), + 39: uint16(27819), + 40: uint16(33545), + 41: uint16(35178), + 42: uint16(38778), + 43: uint16(20129), + 44: uint16(22916), + 45: uint16(24536), + 46: uint16(24537), + 47: uint16(26395), + 48: uint16(32178), + 49: uint16(32596), + 50: uint16(33426), + 51: uint16(33579), + 52: uint16(33725), + 53: uint16(36638), + 54: uint16(37017), + 55: uint16(22475), + 56: uint16(22969), + 57: uint16(23186), + 58: uint16(23504), + 59: uint16(26151), + 60: uint16(26522), + 61: uint16(26757), + 62: uint16(27599), + 63: uint16(29028), + 64: uint16(32629), + 65: uint16(36023), + 66: uint16(36067), + 67: uint16(36993), + 68: uint16(39749), + 69: uint16(33032), + 70: uint16(35978), + 71: uint16(38476), + 72: uint16(39488), + 73: uint16(40613), + 74: uint16(23391), + 75: uint16(27667), + 76: uint16(29467), + 77: uint16(30450), + 78: uint16(30431), + 79: uint16(33804), + 80: uint16(20906), + 81: uint16(35219), + 82: uint16(20813), + 83: uint16(20885), + 84: uint16(21193), + 85: uint16(26825), + 86: uint16(27796), + 87: uint16(30468), + 88: uint16(30496), + 89: uint16(32191), + 90: uint16(32236), + 91: uint16(38754), + 92: uint16(40629), + 93: uint16(28357), + }, + 56: { + 0: uint16(34065), + 1: uint16(20901), + 2: uint16(21517), + 3: uint16(21629), + 4: uint16(26126), + 5: uint16(26269), + 6: uint16(26919), + 7: uint16(28319), + 8: uint16(30399), + 9: uint16(30609), + 10: uint16(33559), + 11: uint16(33986), + 12: uint16(34719), + 13: uint16(37225), + 14: uint16(37528), + 15: uint16(40180), + 16: uint16(34946), + 17: uint16(20398), + 18: uint16(20882), + 19: uint16(21215), + 20: uint16(22982), + 21: uint16(24125), + 22: uint16(24917), + 23: uint16(25720), + 24: uint16(25721), + 25: uint16(26286), + 26: uint16(26576), + 27: uint16(27169), + 28: uint16(27597), + 29: uint16(27611), + 30: uint16(29279), + 31: uint16(29281), + 32: uint16(29761), + 33: uint16(30520), + 34: uint16(30683), + 35: uint16(32791), + 36: uint16(33468), + 37: uint16(33541), + 38: uint16(35584), + 39: uint16(35624), + 40: uint16(35980), + 41: uint16(26408), + 42: uint16(27792), + 43: uint16(29287), + 44: uint16(30446), + 45: uint16(30566), + 46: uint16(31302), + 47: uint16(40361), + 48: uint16(27519), + 49: uint16(27794), + 50: uint16(22818), + 51: uint16(26406), + 52: uint16(33945), + 53: uint16(21359), + 54: uint16(22675), + 55: uint16(22937), + 56: uint16(24287), + 57: uint16(25551), + 58: uint16(26164), + 59: uint16(26483), + 60: uint16(28218), + 61: uint16(29483), + 62: uint16(31447), + 63: uint16(33495), + 64: uint16(37672), + 65: uint16(21209), + 66: uint16(24043), + 67: uint16(25006), + 68: uint16(25035), + 69: uint16(25098), + 70: uint16(25287), + 71: uint16(25771), + 72: uint16(26080), + 73: uint16(26969), + 74: uint16(27494), + 75: uint16(27595), + 76: uint16(28961), + 77: uint16(29687), + 78: uint16(30045), + 79: uint16(32326), + 80: uint16(33310), + 81: uint16(33538), + 82: uint16(34154), + 83: uint16(35491), + 84: uint16(36031), + 85: uint16(38695), + 86: uint16(40289), + 87: uint16(22696), + 88: uint16(40664), + 89: uint16(20497), + 90: uint16(21006), + 91: uint16(21563), + 92: uint16(21839), + 93: uint16(25991), + }, + 57: { + 0: uint16(27766), + 1: uint16(32010), + 2: uint16(32011), + 3: uint16(32862), + 4: uint16(34442), + 5: uint16(38272), + 6: uint16(38639), + 7: uint16(21247), + 8: uint16(27797), + 9: uint16(29289), + 10: uint16(21619), + 11: uint16(23194), + 12: uint16(23614), + 13: uint16(23883), + 14: uint16(24396), + 15: uint16(24494), + 16: uint16(26410), + 17: uint16(26806), + 18: uint16(26979), + 19: uint16(28220), + 20: uint16(28228), + 21: uint16(30473), + 22: uint16(31859), + 23: uint16(32654), + 24: uint16(34183), + 25: uint16(35598), + 26: uint16(36855), + 27: uint16(38753), + 28: uint16(40692), + 29: uint16(23735), + 30: uint16(24758), + 31: uint16(24845), + 32: uint16(25003), + 33: uint16(25935), + 34: uint16(26107), + 35: uint16(26108), + 36: uint16(27665), + 37: uint16(27887), + 38: uint16(29599), + 39: uint16(29641), + 40: uint16(32225), + 41: uint16(38292), + 42: uint16(23494), + 43: uint16(34588), + 44: uint16(35600), + 45: uint16(21085), + 46: uint16(21338), + 47: uint16(25293), + 48: uint16(25615), + 49: uint16(25778), + 50: uint16(26420), + 51: uint16(27192), + 52: uint16(27850), + 53: uint16(29632), + 54: uint16(29854), + 55: uint16(31636), + 56: uint16(31893), + 57: uint16(32283), + 58: uint16(33162), + 59: uint16(33334), + 60: uint16(34180), + 61: uint16(36843), + 62: uint16(38649), + 63: uint16(39361), + 64: uint16(20276), + 65: uint16(21322), + 66: uint16(21453), + 67: uint16(21467), + 68: uint16(25292), + 69: uint16(25644), + 70: uint16(25856), + 71: uint16(26001), + 72: uint16(27075), + 73: uint16(27886), + 74: uint16(28504), + 75: uint16(29677), + 76: uint16(30036), + 77: uint16(30242), + 78: uint16(30436), + 79: uint16(30460), + 80: uint16(30928), + 81: uint16(30971), + 82: uint16(31020), + 83: uint16(32070), + 84: uint16(33324), + 85: uint16(34784), + 86: uint16(36820), + 87: uint16(38930), + 88: uint16(39151), + 89: uint16(21187), + 90: uint16(25300), + 91: uint16(25765), + 92: uint16(28196), + 93: uint16(28497), + }, + 58: { + 0: uint16(30332), + 1: uint16(36299), + 2: uint16(37297), + 3: uint16(37474), + 4: uint16(39662), + 5: uint16(39747), + 6: uint16(20515), + 7: uint16(20621), + 8: uint16(22346), + 9: uint16(22952), + 10: uint16(23592), + 11: uint16(24135), + 12: uint16(24439), + 13: uint16(25151), + 14: uint16(25918), + 15: uint16(26041), + 16: uint16(26049), + 17: uint16(26121), + 18: uint16(26507), + 19: uint16(27036), + 20: uint16(28354), + 21: uint16(30917), + 22: uint16(32033), + 23: uint16(32938), + 24: uint16(33152), + 25: uint16(33323), + 26: uint16(33459), + 27: uint16(33953), + 28: uint16(34444), + 29: uint16(35370), + 30: uint16(35607), + 31: uint16(37030), + 32: uint16(38450), + 33: uint16(40848), + 34: uint16(20493), + 35: uint16(20467), + 36: uint16(63843), + 37: uint16(22521), + 38: uint16(24472), + 39: uint16(25308), + 40: uint16(25490), + 41: uint16(26479), + 42: uint16(28227), + 43: uint16(28953), + 44: uint16(30403), + 45: uint16(32972), + 46: uint16(32986), + 47: uint16(35060), + 48: uint16(35061), + 49: uint16(35097), + 50: uint16(36064), + 51: uint16(36649), + 52: uint16(37197), + 53: uint16(38506), + 54: uint16(20271), + 55: uint16(20336), + 56: uint16(24091), + 57: uint16(26575), + 58: uint16(26658), + 59: uint16(30333), + 60: uint16(30334), + 61: uint16(39748), + 62: uint16(24161), + 63: uint16(27146), + 64: uint16(29033), + 65: uint16(29140), + 66: uint16(30058), + 67: uint16(63844), + 68: uint16(32321), + 69: uint16(34115), + 70: uint16(34281), + 71: uint16(39132), + 72: uint16(20240), + 73: uint16(31567), + 74: uint16(32624), + 75: uint16(38309), + 76: uint16(20961), + 77: uint16(24070), + 78: uint16(26805), + 79: uint16(27710), + 80: uint16(27726), + 81: uint16(27867), + 82: uint16(29359), + 83: uint16(31684), + 84: uint16(33539), + 85: uint16(27861), + 86: uint16(29754), + 87: uint16(20731), + 88: uint16(21128), + 89: uint16(22721), + 90: uint16(25816), + 91: uint16(27287), + 92: uint16(29863), + 93: uint16(30294), + }, + 59: { + 0: uint16(30887), + 1: uint16(34327), + 2: uint16(38370), + 3: uint16(38713), + 4: uint16(63845), + 5: uint16(21342), + 6: uint16(24321), + 7: uint16(35722), + 8: uint16(36776), + 9: uint16(36783), + 10: uint16(37002), + 11: uint16(21029), + 12: uint16(30629), + 13: uint16(40009), + 14: uint16(40712), + 15: uint16(19993), + 16: uint16(20482), + 17: uint16(20853), + 18: uint16(23643), + 19: uint16(24183), + 20: uint16(26142), + 21: uint16(26170), + 22: uint16(26564), + 23: uint16(26821), + 24: uint16(28851), + 25: uint16(29953), + 26: uint16(30149), + 27: uint16(31177), + 28: uint16(31453), + 29: uint16(36647), + 30: uint16(39200), + 31: uint16(39432), + 32: uint16(20445), + 33: uint16(22561), + 34: uint16(22577), + 35: uint16(23542), + 36: uint16(26222), + 37: uint16(27493), + 38: uint16(27921), + 39: uint16(28282), + 40: uint16(28541), + 41: uint16(29668), + 42: uint16(29995), + 43: uint16(33769), + 44: uint16(35036), + 45: uint16(35091), + 46: uint16(35676), + 47: uint16(36628), + 48: uint16(20239), + 49: uint16(20693), + 50: uint16(21264), + 51: uint16(21340), + 52: uint16(23443), + 53: uint16(24489), + 54: uint16(26381), + 55: uint16(31119), + 56: uint16(33145), + 57: uint16(33583), + 58: uint16(34068), + 59: uint16(35079), + 60: uint16(35206), + 61: uint16(36665), + 62: uint16(36667), + 63: uint16(39333), + 64: uint16(39954), + 65: uint16(26412), + 66: uint16(20086), + 67: uint16(20472), + 68: uint16(22857), + 69: uint16(23553), + 70: uint16(23791), + 71: uint16(23792), + 72: uint16(25447), + 73: uint16(26834), + 74: uint16(28925), + 75: uint16(29090), + 76: uint16(29739), + 77: uint16(32299), + 78: uint16(34028), + 79: uint16(34562), + 80: uint16(36898), + 81: uint16(37586), + 82: uint16(40179), + 83: uint16(19981), + 84: uint16(20184), + 85: uint16(20463), + 86: uint16(20613), + 87: uint16(21078), + 88: uint16(21103), + 89: uint16(21542), + 90: uint16(21648), + 91: uint16(22496), + 92: uint16(22827), + 93: uint16(23142), + }, + 60: { + 0: uint16(23386), + 1: uint16(23413), + 2: uint16(23500), + 3: uint16(24220), + 4: uint16(63846), + 5: uint16(25206), + 6: uint16(25975), + 7: uint16(26023), + 8: uint16(28014), + 9: uint16(28325), + 10: uint16(29238), + 11: uint16(31526), + 12: uint16(31807), + 13: uint16(32566), + 14: uint16(33104), + 15: uint16(33105), + 16: uint16(33178), + 17: uint16(33344), + 18: uint16(33433), + 19: uint16(33705), + 20: uint16(35331), + 21: uint16(36000), + 22: uint16(36070), + 23: uint16(36091), + 24: uint16(36212), + 25: uint16(36282), + 26: uint16(37096), + 27: uint16(37340), + 28: uint16(38428), + 29: uint16(38468), + 30: uint16(39385), + 31: uint16(40167), + 32: uint16(21271), + 33: uint16(20998), + 34: uint16(21545), + 35: uint16(22132), + 36: uint16(22707), + 37: uint16(22868), + 38: uint16(22894), + 39: uint16(24575), + 40: uint16(24996), + 41: uint16(25198), + 42: uint16(26128), + 43: uint16(27774), + 44: uint16(28954), + 45: uint16(30406), + 46: uint16(31881), + 47: uint16(31966), + 48: uint16(32027), + 49: uint16(33452), + 50: uint16(36033), + 51: uint16(38640), + 52: uint16(63847), + 53: uint16(20315), + 54: uint16(24343), + 55: uint16(24447), + 56: uint16(25282), + 57: uint16(23849), + 58: uint16(26379), + 59: uint16(26842), + 60: uint16(30844), + 61: uint16(32323), + 62: uint16(40300), + 63: uint16(19989), + 64: uint16(20633), + 65: uint16(21269), + 66: uint16(21290), + 67: uint16(21329), + 68: uint16(22915), + 69: uint16(23138), + 70: uint16(24199), + 71: uint16(24754), + 72: uint16(24970), + 73: uint16(25161), + 74: uint16(25209), + 75: uint16(26000), + 76: uint16(26503), + 77: uint16(27047), + 78: uint16(27604), + 79: uint16(27606), + 80: uint16(27607), + 81: uint16(27608), + 82: uint16(27832), + 83: uint16(63848), + 84: uint16(29749), + 85: uint16(30202), + 86: uint16(30738), + 87: uint16(30865), + 88: uint16(31189), + 89: uint16(31192), + 90: uint16(31875), + 91: uint16(32203), + 92: uint16(32737), + 93: uint16(32933), + }, + 61: { + 0: uint16(33086), + 1: uint16(33218), + 2: uint16(33778), + 3: uint16(34586), + 4: uint16(35048), + 5: uint16(35513), + 6: uint16(35692), + 7: uint16(36027), + 8: uint16(37145), + 9: uint16(38750), + 10: uint16(39131), + 11: uint16(40763), + 12: uint16(22188), + 13: uint16(23338), + 14: uint16(24428), + 15: uint16(25996), + 16: uint16(27315), + 17: uint16(27567), + 18: uint16(27996), + 19: uint16(28657), + 20: uint16(28693), + 21: uint16(29277), + 22: uint16(29613), + 23: uint16(36007), + 24: uint16(36051), + 25: uint16(38971), + 26: uint16(24977), + 27: uint16(27703), + 28: uint16(32856), + 29: uint16(39425), + 30: uint16(20045), + 31: uint16(20107), + 32: uint16(20123), + 33: uint16(20181), + 34: uint16(20282), + 35: uint16(20284), + 36: uint16(20351), + 37: uint16(20447), + 38: uint16(20735), + 39: uint16(21490), + 40: uint16(21496), + 41: uint16(21766), + 42: uint16(21987), + 43: uint16(22235), + 44: uint16(22763), + 45: uint16(22882), + 46: uint16(23057), + 47: uint16(23531), + 48: uint16(23546), + 49: uint16(23556), + 50: uint16(24051), + 51: uint16(24107), + 52: uint16(24473), + 53: uint16(24605), + 54: uint16(25448), + 55: uint16(26012), + 56: uint16(26031), + 57: uint16(26614), + 58: uint16(26619), + 59: uint16(26797), + 60: uint16(27515), + 61: uint16(27801), + 62: uint16(27863), + 63: uint16(28195), + 64: uint16(28681), + 65: uint16(29509), + 66: uint16(30722), + 67: uint16(31038), + 68: uint16(31040), + 69: uint16(31072), + 70: uint16(31169), + 71: uint16(31721), + 72: uint16(32023), + 73: uint16(32114), + 74: uint16(32902), + 75: uint16(33293), + 76: uint16(33678), + 77: uint16(34001), + 78: uint16(34503), + 79: uint16(35039), + 80: uint16(35408), + 81: uint16(35422), + 82: uint16(35613), + 83: uint16(36060), + 84: uint16(36198), + 85: uint16(36781), + 86: uint16(37034), + 87: uint16(39164), + 88: uint16(39391), + 89: uint16(40605), + 90: uint16(21066), + 91: uint16(63849), + 92: uint16(26388), + 93: uint16(63850), + }, + 62: { + 0: uint16(20632), + 1: uint16(21034), + 2: uint16(23665), + 3: uint16(25955), + 4: uint16(27733), + 5: uint16(29642), + 6: uint16(29987), + 7: uint16(30109), + 8: uint16(31639), + 9: uint16(33948), + 10: uint16(37240), + 11: uint16(38704), + 12: uint16(20087), + 13: uint16(25746), + 14: uint16(27578), + 15: uint16(29022), + 16: uint16(34217), + 17: uint16(19977), + 18: uint16(63851), + 19: uint16(26441), + 20: uint16(26862), + 21: uint16(28183), + 22: uint16(33439), + 23: uint16(34072), + 24: uint16(34923), + 25: uint16(25591), + 26: uint16(28545), + 27: uint16(37394), + 28: uint16(39087), + 29: uint16(19978), + 30: uint16(20663), + 31: uint16(20687), + 32: uint16(20767), + 33: uint16(21830), + 34: uint16(21930), + 35: uint16(22039), + 36: uint16(23360), + 37: uint16(23577), + 38: uint16(23776), + 39: uint16(24120), + 40: uint16(24202), + 41: uint16(24224), + 42: uint16(24258), + 43: uint16(24819), + 44: uint16(26705), + 45: uint16(27233), + 46: uint16(28248), + 47: uint16(29245), + 48: uint16(29248), + 49: uint16(29376), + 50: uint16(30456), + 51: uint16(31077), + 52: uint16(31665), + 53: uint16(32724), + 54: uint16(35059), + 55: uint16(35316), + 56: uint16(35443), + 57: uint16(35937), + 58: uint16(36062), + 59: uint16(38684), + 60: uint16(22622), + 61: uint16(29885), + 62: uint16(36093), + 63: uint16(21959), + 64: uint16(63852), + 65: uint16(31329), + 66: uint16(32034), + 67: uint16(33394), + 68: uint16(29298), + 69: uint16(29983), + 70: uint16(29989), + 71: uint16(63853), + 72: uint16(31513), + 73: uint16(22661), + 74: uint16(22779), + 75: uint16(23996), + 76: uint16(24207), + 77: uint16(24246), + 78: uint16(24464), + 79: uint16(24661), + 80: uint16(25234), + 81: uint16(25471), + 82: uint16(25933), + 83: uint16(26257), + 84: uint16(26329), + 85: uint16(26360), + 86: uint16(26646), + 87: uint16(26866), + 88: uint16(29312), + 89: uint16(29790), + 90: uint16(31598), + 91: uint16(32110), + 92: uint16(32214), + 93: uint16(32626), + }, + 63: { + 0: uint16(32997), + 1: uint16(33298), + 2: uint16(34223), + 3: uint16(35199), + 4: uint16(35475), + 5: uint16(36893), + 6: uint16(37604), + 7: uint16(40653), + 8: uint16(40736), + 9: uint16(22805), + 10: uint16(22893), + 11: uint16(24109), + 12: uint16(24796), + 13: uint16(26132), + 14: uint16(26227), + 15: uint16(26512), + 16: uint16(27728), + 17: uint16(28101), + 18: uint16(28511), + 19: uint16(30707), + 20: uint16(30889), + 21: uint16(33990), + 22: uint16(37323), + 23: uint16(37675), + 24: uint16(20185), + 25: uint16(20682), + 26: uint16(20808), + 27: uint16(21892), + 28: uint16(23307), + 29: uint16(23459), + 30: uint16(25159), + 31: uint16(25982), + 32: uint16(26059), + 33: uint16(28210), + 34: uint16(29053), + 35: uint16(29697), + 36: uint16(29764), + 37: uint16(29831), + 38: uint16(29887), + 39: uint16(30316), + 40: uint16(31146), + 41: uint16(32218), + 42: uint16(32341), + 43: uint16(32680), + 44: uint16(33146), + 45: uint16(33203), + 46: uint16(33337), + 47: uint16(34330), + 48: uint16(34796), + 49: uint16(35445), + 50: uint16(36323), + 51: uint16(36984), + 52: uint16(37521), + 53: uint16(37925), + 54: uint16(39245), + 55: uint16(39854), + 56: uint16(21352), + 57: uint16(23633), + 58: uint16(26964), + 59: uint16(27844), + 60: uint16(27945), + 61: uint16(28203), + 62: uint16(33292), + 63: uint16(34203), + 64: uint16(35131), + 65: uint16(35373), + 66: uint16(35498), + 67: uint16(38634), + 68: uint16(40807), + 69: uint16(21089), + 70: uint16(26297), + 71: uint16(27570), + 72: uint16(32406), + 73: uint16(34814), + 74: uint16(36109), + 75: uint16(38275), + 76: uint16(38493), + 77: uint16(25885), + 78: uint16(28041), + 79: uint16(29166), + 80: uint16(63854), + 81: uint16(22478), + 82: uint16(22995), + 83: uint16(23468), + 84: uint16(24615), + 85: uint16(24826), + 86: uint16(25104), + 87: uint16(26143), + 88: uint16(26207), + 89: uint16(29481), + 90: uint16(29689), + 91: uint16(30427), + 92: uint16(30465), + 93: uint16(31596), + }, + 64: { + 0: uint16(32854), + 1: uint16(32882), + 2: uint16(33125), + 3: uint16(35488), + 4: uint16(37266), + 5: uint16(19990), + 6: uint16(21218), + 7: uint16(27506), + 8: uint16(27927), + 9: uint16(31237), + 10: uint16(31545), + 11: uint16(32048), + 12: uint16(63855), + 13: uint16(36016), + 14: uint16(21484), + 15: uint16(22063), + 16: uint16(22609), + 17: uint16(23477), + 18: uint16(23567), + 19: uint16(23569), + 20: uint16(24034), + 21: uint16(25152), + 22: uint16(25475), + 23: uint16(25620), + 24: uint16(26157), + 25: uint16(26803), + 26: uint16(27836), + 27: uint16(28040), + 28: uint16(28335), + 29: uint16(28703), + 30: uint16(28836), + 31: uint16(29138), + 32: uint16(29990), + 33: uint16(30095), + 34: uint16(30094), + 35: uint16(30233), + 36: uint16(31505), + 37: uint16(31712), + 38: uint16(31787), + 39: uint16(32032), + 40: uint16(32057), + 41: uint16(34092), + 42: uint16(34157), + 43: uint16(34311), + 44: uint16(35380), + 45: uint16(36877), + 46: uint16(36961), + 47: uint16(37045), + 48: uint16(37559), + 49: uint16(38902), + 50: uint16(39479), + 51: uint16(20439), + 52: uint16(23660), + 53: uint16(26463), + 54: uint16(28049), + 55: uint16(31903), + 56: uint16(32396), + 57: uint16(35606), + 58: uint16(36118), + 59: uint16(36895), + 60: uint16(23403), + 61: uint16(24061), + 62: uint16(25613), + 63: uint16(33984), + 64: uint16(36956), + 65: uint16(39137), + 66: uint16(29575), + 67: uint16(23435), + 68: uint16(24730), + 69: uint16(26494), + 70: uint16(28126), + 71: uint16(35359), + 72: uint16(35494), + 73: uint16(36865), + 74: uint16(38924), + 75: uint16(21047), + 76: uint16(63856), + 77: uint16(28753), + 78: uint16(30862), + 79: uint16(37782), + 80: uint16(34928), + 81: uint16(37335), + 82: uint16(20462), + 83: uint16(21463), + 84: uint16(22013), + 85: uint16(22234), + 86: uint16(22402), + 87: uint16(22781), + 88: uint16(23234), + 89: uint16(23432), + 90: uint16(23723), + 91: uint16(23744), + 92: uint16(24101), + 93: uint16(24833), + }, + 65: { + 0: uint16(25101), + 1: uint16(25163), + 2: uint16(25480), + 3: uint16(25628), + 4: uint16(25910), + 5: uint16(25976), + 6: uint16(27193), + 7: uint16(27530), + 8: uint16(27700), + 9: uint16(27929), + 10: uint16(28465), + 11: uint16(29159), + 12: uint16(29417), + 13: uint16(29560), + 14: uint16(29703), + 15: uint16(29874), + 16: uint16(30246), + 17: uint16(30561), + 18: uint16(31168), + 19: uint16(31319), + 20: uint16(31466), + 21: uint16(31929), + 22: uint16(32143), + 23: uint16(32172), + 24: uint16(32353), + 25: uint16(32670), + 26: uint16(33065), + 27: uint16(33585), + 28: uint16(33936), + 29: uint16(34010), + 30: uint16(34282), + 31: uint16(34966), + 32: uint16(35504), + 33: uint16(35728), + 34: uint16(36664), + 35: uint16(36930), + 36: uint16(36995), + 37: uint16(37228), + 38: uint16(37526), + 39: uint16(37561), + 40: uint16(38539), + 41: uint16(38567), + 42: uint16(38568), + 43: uint16(38614), + 44: uint16(38656), + 45: uint16(38920), + 46: uint16(39318), + 47: uint16(39635), + 48: uint16(39706), + 49: uint16(21460), + 50: uint16(22654), + 51: uint16(22809), + 52: uint16(23408), + 53: uint16(23487), + 54: uint16(28113), + 55: uint16(28506), + 56: uint16(29087), + 57: uint16(29729), + 58: uint16(29881), + 59: uint16(32901), + 60: uint16(33789), + 61: uint16(24033), + 62: uint16(24455), + 63: uint16(24490), + 64: uint16(24642), + 65: uint16(26092), + 66: uint16(26642), + 67: uint16(26991), + 68: uint16(27219), + 69: uint16(27529), + 70: uint16(27957), + 71: uint16(28147), + 72: uint16(29667), + 73: uint16(30462), + 74: uint16(30636), + 75: uint16(31565), + 76: uint16(32020), + 77: uint16(33059), + 78: uint16(33308), + 79: uint16(33600), + 80: uint16(34036), + 81: uint16(34147), + 82: uint16(35426), + 83: uint16(35524), + 84: uint16(37255), + 85: uint16(37662), + 86: uint16(38918), + 87: uint16(39348), + 88: uint16(25100), + 89: uint16(34899), + 90: uint16(36848), + 91: uint16(37477), + 92: uint16(23815), + 93: uint16(23847), + }, + 66: { + 0: uint16(23913), + 1: uint16(29791), + 2: uint16(33181), + 3: uint16(34664), + 4: uint16(28629), + 5: uint16(25342), + 6: uint16(32722), + 7: uint16(35126), + 8: uint16(35186), + 9: uint16(19998), + 10: uint16(20056), + 11: uint16(20711), + 12: uint16(21213), + 13: uint16(21319), + 14: uint16(25215), + 15: uint16(26119), + 16: uint16(32361), + 17: uint16(34821), + 18: uint16(38494), + 19: uint16(20365), + 20: uint16(21273), + 21: uint16(22070), + 22: uint16(22987), + 23: uint16(23204), + 24: uint16(23608), + 25: uint16(23630), + 26: uint16(23629), + 27: uint16(24066), + 28: uint16(24337), + 29: uint16(24643), + 30: uint16(26045), + 31: uint16(26159), + 32: uint16(26178), + 33: uint16(26558), + 34: uint16(26612), + 35: uint16(29468), + 36: uint16(30690), + 37: uint16(31034), + 38: uint16(32709), + 39: uint16(33940), + 40: uint16(33997), + 41: uint16(35222), + 42: uint16(35430), + 43: uint16(35433), + 44: uint16(35553), + 45: uint16(35925), + 46: uint16(35962), + 47: uint16(22516), + 48: uint16(23508), + 49: uint16(24335), + 50: uint16(24687), + 51: uint16(25325), + 52: uint16(26893), + 53: uint16(27542), + 54: uint16(28252), + 55: uint16(29060), + 56: uint16(31698), + 57: uint16(34645), + 58: uint16(35672), + 59: uint16(36606), + 60: uint16(39135), + 61: uint16(39166), + 62: uint16(20280), + 63: uint16(20353), + 64: uint16(20449), + 65: uint16(21627), + 66: uint16(23072), + 67: uint16(23480), + 68: uint16(24892), + 69: uint16(26032), + 70: uint16(26216), + 71: uint16(29180), + 72: uint16(30003), + 73: uint16(31070), + 74: uint16(32051), + 75: uint16(33102), + 76: uint16(33251), + 77: uint16(33688), + 78: uint16(34218), + 79: uint16(34254), + 80: uint16(34563), + 81: uint16(35338), + 82: uint16(36523), + 83: uint16(36763), + 84: uint16(63857), + 85: uint16(36805), + 86: uint16(22833), + 87: uint16(23460), + 88: uint16(23526), + 89: uint16(24713), + 90: uint16(23529), + 91: uint16(23563), + 92: uint16(24515), + 93: uint16(27777), + }, + 67: { + 0: uint16(63858), + 1: uint16(28145), + 2: uint16(28683), + 3: uint16(29978), + 4: uint16(33455), + 5: uint16(35574), + 6: uint16(20160), + 7: uint16(21313), + 8: uint16(63859), + 9: uint16(38617), + 10: uint16(27663), + 11: uint16(20126), + 12: uint16(20420), + 13: uint16(20818), + 14: uint16(21854), + 15: uint16(23077), + 16: uint16(23784), + 17: uint16(25105), + 18: uint16(29273), + 19: uint16(33469), + 20: uint16(33706), + 21: uint16(34558), + 22: uint16(34905), + 23: uint16(35357), + 24: uint16(38463), + 25: uint16(38597), + 26: uint16(39187), + 27: uint16(40201), + 28: uint16(40285), + 29: uint16(22538), + 30: uint16(23731), + 31: uint16(23997), + 32: uint16(24132), + 33: uint16(24801), + 34: uint16(24853), + 35: uint16(25569), + 36: uint16(27138), + 37: uint16(28197), + 38: uint16(37122), + 39: uint16(37716), + 40: uint16(38990), + 41: uint16(39952), + 42: uint16(40823), + 43: uint16(23433), + 44: uint16(23736), + 45: uint16(25353), + 46: uint16(26191), + 47: uint16(26696), + 48: uint16(30524), + 49: uint16(38593), + 50: uint16(38797), + 51: uint16(38996), + 52: uint16(39839), + 53: uint16(26017), + 54: uint16(35585), + 55: uint16(36555), + 56: uint16(38332), + 57: uint16(21813), + 58: uint16(23721), + 59: uint16(24022), + 60: uint16(24245), + 61: uint16(26263), + 62: uint16(30284), + 63: uint16(33780), + 64: uint16(38343), + 65: uint16(22739), + 66: uint16(25276), + 67: uint16(29390), + 68: uint16(40232), + 69: uint16(20208), + 70: uint16(22830), + 71: uint16(24591), + 72: uint16(26171), + 73: uint16(27523), + 74: uint16(31207), + 75: uint16(40230), + 76: uint16(21395), + 77: uint16(21696), + 78: uint16(22467), + 79: uint16(23830), + 80: uint16(24859), + 81: uint16(26326), + 82: uint16(28079), + 83: uint16(30861), + 84: uint16(33406), + 85: uint16(38552), + 86: uint16(38724), + 87: uint16(21380), + 88: uint16(25212), + 89: uint16(25494), + 90: uint16(28082), + 91: uint16(32266), + 92: uint16(33099), + 93: uint16(38989), + }, + 68: { + 0: uint16(27387), + 1: uint16(32588), + 2: uint16(40367), + 3: uint16(40474), + 4: uint16(20063), + 5: uint16(20539), + 6: uint16(20918), + 7: uint16(22812), + 8: uint16(24825), + 9: uint16(25590), + 10: uint16(26928), + 11: uint16(29242), + 12: uint16(32822), + 13: uint16(63860), + 14: uint16(37326), + 15: uint16(24369), + 16: uint16(63861), + 17: uint16(63862), + 18: uint16(32004), + 19: uint16(33509), + 20: uint16(33903), + 21: uint16(33979), + 22: uint16(34277), + 23: uint16(36493), + 24: uint16(63863), + 25: uint16(20335), + 26: uint16(63864), + 27: uint16(63865), + 28: uint16(22756), + 29: uint16(23363), + 30: uint16(24665), + 31: uint16(25562), + 32: uint16(25880), + 33: uint16(25965), + 34: uint16(26264), + 35: uint16(63866), + 36: uint16(26954), + 37: uint16(27171), + 38: uint16(27915), + 39: uint16(28673), + 40: uint16(29036), + 41: uint16(30162), + 42: uint16(30221), + 43: uint16(31155), + 44: uint16(31344), + 45: uint16(63867), + 46: uint16(32650), + 47: uint16(63868), + 48: uint16(35140), + 49: uint16(63869), + 50: uint16(35731), + 51: uint16(37312), + 52: uint16(38525), + 53: uint16(63870), + 54: uint16(39178), + 55: uint16(22276), + 56: uint16(24481), + 57: uint16(26044), + 58: uint16(28417), + 59: uint16(30208), + 60: uint16(31142), + 61: uint16(35486), + 62: uint16(39341), + 63: uint16(39770), + 64: uint16(40812), + 65: uint16(20740), + 66: uint16(25014), + 67: uint16(25233), + 68: uint16(27277), + 69: uint16(33222), + 70: uint16(20547), + 71: uint16(22576), + 72: uint16(24422), + 73: uint16(28937), + 74: uint16(35328), + 75: uint16(35578), + 76: uint16(23420), + 77: uint16(34326), + 78: uint16(20474), + 79: uint16(20796), + 80: uint16(22196), + 81: uint16(22852), + 82: uint16(25513), + 83: uint16(28153), + 84: uint16(23978), + 85: uint16(26989), + 86: uint16(20870), + 87: uint16(20104), + 88: uint16(20313), + 89: uint16(63871), + 90: uint16(63872), + 91: uint16(63873), + 92: uint16(22914), + 93: uint16(63874), + }, + 69: { + 0: uint16(63875), + 1: uint16(27487), + 2: uint16(27741), + 3: uint16(63876), + 4: uint16(29877), + 5: uint16(30998), + 6: uint16(63877), + 7: uint16(33287), + 8: uint16(33349), + 9: uint16(33593), + 10: uint16(36671), + 11: uint16(36701), + 12: uint16(63878), + 13: uint16(39192), + 14: uint16(63879), + 15: uint16(63880), + 16: uint16(63881), + 17: uint16(20134), + 18: uint16(63882), + 19: uint16(22495), + 20: uint16(24441), + 21: uint16(26131), + 22: uint16(63883), + 23: uint16(63884), + 24: uint16(30123), + 25: uint16(32377), + 26: uint16(35695), + 27: uint16(63885), + 28: uint16(36870), + 29: uint16(39515), + 30: uint16(22181), + 31: uint16(22567), + 32: uint16(23032), + 33: uint16(23071), + 34: uint16(23476), + 35: uint16(63886), + 36: uint16(24310), + 37: uint16(63887), + 38: uint16(63888), + 39: uint16(25424), + 40: uint16(25403), + 41: uint16(63889), + 42: uint16(26941), + 43: uint16(27783), + 44: uint16(27839), + 45: uint16(28046), + 46: uint16(28051), + 47: uint16(28149), + 48: uint16(28436), + 49: uint16(63890), + 50: uint16(28895), + 51: uint16(28982), + 52: uint16(29017), + 53: uint16(63891), + 54: uint16(29123), + 55: uint16(29141), + 56: uint16(63892), + 57: uint16(30799), + 58: uint16(30831), + 59: uint16(63893), + 60: uint16(31605), + 61: uint16(32227), + 62: uint16(63894), + 63: uint16(32303), + 64: uint16(63895), + 65: uint16(34893), + 66: uint16(36575), + 67: uint16(63896), + 68: uint16(63897), + 69: uint16(63898), + 70: uint16(37467), + 71: uint16(63899), + 72: uint16(40182), + 73: uint16(63900), + 74: uint16(63901), + 75: uint16(63902), + 76: uint16(24709), + 77: uint16(28037), + 78: uint16(63903), + 79: uint16(29105), + 80: uint16(63904), + 81: uint16(63905), + 82: uint16(38321), + 83: uint16(21421), + 84: uint16(63906), + 85: uint16(63907), + 86: uint16(63908), + 87: uint16(26579), + 88: uint16(63909), + 89: uint16(28814), + 90: uint16(28976), + 91: uint16(29744), + 92: uint16(33398), + 93: uint16(33490), + }, + 70: { + 0: uint16(63910), + 1: uint16(38331), + 2: uint16(39653), + 3: uint16(40573), + 4: uint16(26308), + 5: uint16(63911), + 6: uint16(29121), + 7: uint16(33865), + 8: uint16(63912), + 9: uint16(63913), + 10: uint16(22603), + 11: uint16(63914), + 12: uint16(63915), + 13: uint16(23992), + 14: uint16(24433), + 15: uint16(63916), + 16: uint16(26144), + 17: uint16(26254), + 18: uint16(27001), + 19: uint16(27054), + 20: uint16(27704), + 21: uint16(27891), + 22: uint16(28214), + 23: uint16(28481), + 24: uint16(28634), + 25: uint16(28699), + 26: uint16(28719), + 27: uint16(29008), + 28: uint16(29151), + 29: uint16(29552), + 30: uint16(63917), + 31: uint16(29787), + 32: uint16(63918), + 33: uint16(29908), + 34: uint16(30408), + 35: uint16(31310), + 36: uint16(32403), + 37: uint16(63919), + 38: uint16(63920), + 39: uint16(33521), + 40: uint16(35424), + 41: uint16(36814), + 42: uint16(63921), + 43: uint16(37704), + 44: uint16(63922), + 45: uint16(38681), + 46: uint16(63923), + 47: uint16(63924), + 48: uint16(20034), + 49: uint16(20522), + 50: uint16(63925), + 51: uint16(21000), + 52: uint16(21473), + 53: uint16(26355), + 54: uint16(27757), + 55: uint16(28618), + 56: uint16(29450), + 57: uint16(30591), + 58: uint16(31330), + 59: uint16(33454), + 60: uint16(34269), + 61: uint16(34306), + 62: uint16(63926), + 63: uint16(35028), + 64: uint16(35427), + 65: uint16(35709), + 66: uint16(35947), + 67: uint16(63927), + 68: uint16(37555), + 69: uint16(63928), + 70: uint16(38675), + 71: uint16(38928), + 72: uint16(20116), + 73: uint16(20237), + 74: uint16(20425), + 75: uint16(20658), + 76: uint16(21320), + 77: uint16(21566), + 78: uint16(21555), + 79: uint16(21978), + 80: uint16(22626), + 81: uint16(22714), + 82: uint16(22887), + 83: uint16(23067), + 84: uint16(23524), + 85: uint16(24735), + 86: uint16(63929), + 87: uint16(25034), + 88: uint16(25942), + 89: uint16(26111), + 90: uint16(26212), + 91: uint16(26791), + 92: uint16(27738), + 93: uint16(28595), + }, + 71: { + 0: uint16(28879), + 1: uint16(29100), + 2: uint16(29522), + 3: uint16(31613), + 4: uint16(34568), + 5: uint16(35492), + 6: uint16(39986), + 7: uint16(40711), + 8: uint16(23627), + 9: uint16(27779), + 10: uint16(29508), + 11: uint16(29577), + 12: uint16(37434), + 13: uint16(28331), + 14: uint16(29797), + 15: uint16(30239), + 16: uint16(31337), + 17: uint16(32277), + 18: uint16(34314), + 19: uint16(20800), + 20: uint16(22725), + 21: uint16(25793), + 22: uint16(29934), + 23: uint16(29973), + 24: uint16(30320), + 25: uint16(32705), + 26: uint16(37013), + 27: uint16(38605), + 28: uint16(39252), + 29: uint16(28198), + 30: uint16(29926), + 31: uint16(31401), + 32: uint16(31402), + 33: uint16(33253), + 34: uint16(34521), + 35: uint16(34680), + 36: uint16(35355), + 37: uint16(23113), + 38: uint16(23436), + 39: uint16(23451), + 40: uint16(26785), + 41: uint16(26880), + 42: uint16(28003), + 43: uint16(29609), + 44: uint16(29715), + 45: uint16(29740), + 46: uint16(30871), + 47: uint16(32233), + 48: uint16(32747), + 49: uint16(33048), + 50: uint16(33109), + 51: uint16(33694), + 52: uint16(35916), + 53: uint16(38446), + 54: uint16(38929), + 55: uint16(26352), + 56: uint16(24448), + 57: uint16(26106), + 58: uint16(26505), + 59: uint16(27754), + 60: uint16(29579), + 61: uint16(20525), + 62: uint16(23043), + 63: uint16(27498), + 64: uint16(30702), + 65: uint16(22806), + 66: uint16(23916), + 67: uint16(24013), + 68: uint16(29477), + 69: uint16(30031), + 70: uint16(63930), + 71: uint16(63931), + 72: uint16(20709), + 73: uint16(20985), + 74: uint16(22575), + 75: uint16(22829), + 76: uint16(22934), + 77: uint16(23002), + 78: uint16(23525), + 79: uint16(63932), + 80: uint16(63933), + 81: uint16(23970), + 82: uint16(25303), + 83: uint16(25622), + 84: uint16(25747), + 85: uint16(25854), + 86: uint16(63934), + 87: uint16(26332), + 88: uint16(63935), + 89: uint16(27208), + 90: uint16(63936), + 91: uint16(29183), + 92: uint16(29796), + 93: uint16(63937), + }, + 72: { + 0: uint16(31368), + 1: uint16(31407), + 2: uint16(32327), + 3: uint16(32350), + 4: uint16(32768), + 5: uint16(33136), + 6: uint16(63938), + 7: uint16(34799), + 8: uint16(35201), + 9: uint16(35616), + 10: uint16(36953), + 11: uint16(63939), + 12: uint16(36992), + 13: uint16(39250), + 14: uint16(24958), + 15: uint16(27442), + 16: uint16(28020), + 17: uint16(32287), + 18: uint16(35109), + 19: uint16(36785), + 20: uint16(20433), + 21: uint16(20653), + 22: uint16(20887), + 23: uint16(21191), + 24: uint16(22471), + 25: uint16(22665), + 26: uint16(23481), + 27: uint16(24248), + 28: uint16(24898), + 29: uint16(27029), + 30: uint16(28044), + 31: uint16(28263), + 32: uint16(28342), + 33: uint16(29076), + 34: uint16(29794), + 35: uint16(29992), + 36: uint16(29996), + 37: uint16(32883), + 38: uint16(33592), + 39: uint16(33993), + 40: uint16(36362), + 41: uint16(37780), + 42: uint16(37854), + 43: uint16(63940), + 44: uint16(20110), + 45: uint16(20305), + 46: uint16(20598), + 47: uint16(20778), + 48: uint16(21448), + 49: uint16(21451), + 50: uint16(21491), + 51: uint16(23431), + 52: uint16(23507), + 53: uint16(23588), + 54: uint16(24858), + 55: uint16(24962), + 56: uint16(26100), + 57: uint16(29275), + 58: uint16(29591), + 59: uint16(29760), + 60: uint16(30402), + 61: uint16(31056), + 62: uint16(31121), + 63: uint16(31161), + 64: uint16(32006), + 65: uint16(32701), + 66: uint16(33419), + 67: uint16(34261), + 68: uint16(34398), + 69: uint16(36802), + 70: uint16(36935), + 71: uint16(37109), + 72: uint16(37354), + 73: uint16(38533), + 74: uint16(38632), + 75: uint16(38633), + 76: uint16(21206), + 77: uint16(24423), + 78: uint16(26093), + 79: uint16(26161), + 80: uint16(26671), + 81: uint16(29020), + 82: uint16(31286), + 83: uint16(37057), + 84: uint16(38922), + 85: uint16(20113), + 86: uint16(63941), + 87: uint16(27218), + 88: uint16(27550), + 89: uint16(28560), + 90: uint16(29065), + 91: uint16(32792), + 92: uint16(33464), + 93: uint16(34131), + }, + 73: { + 0: uint16(36939), + 1: uint16(38549), + 2: uint16(38642), + 3: uint16(38907), + 4: uint16(34074), + 5: uint16(39729), + 6: uint16(20112), + 7: uint16(29066), + 8: uint16(38596), + 9: uint16(20803), + 10: uint16(21407), + 11: uint16(21729), + 12: uint16(22291), + 13: uint16(22290), + 14: uint16(22435), + 15: uint16(23195), + 16: uint16(23236), + 17: uint16(23491), + 18: uint16(24616), + 19: uint16(24895), + 20: uint16(25588), + 21: uint16(27781), + 22: uint16(27961), + 23: uint16(28274), + 24: uint16(28304), + 25: uint16(29232), + 26: uint16(29503), + 27: uint16(29783), + 28: uint16(33489), + 29: uint16(34945), + 30: uint16(36677), + 31: uint16(36960), + 32: uint16(63942), + 33: uint16(38498), + 34: uint16(39000), + 35: uint16(40219), + 36: uint16(26376), + 37: uint16(36234), + 38: uint16(37470), + 39: uint16(20301), + 40: uint16(20553), + 41: uint16(20702), + 42: uint16(21361), + 43: uint16(22285), + 44: uint16(22996), + 45: uint16(23041), + 46: uint16(23561), + 47: uint16(24944), + 48: uint16(26256), + 49: uint16(28205), + 50: uint16(29234), + 51: uint16(29771), + 52: uint16(32239), + 53: uint16(32963), + 54: uint16(33806), + 55: uint16(33894), + 56: uint16(34111), + 57: uint16(34655), + 58: uint16(34907), + 59: uint16(35096), + 60: uint16(35586), + 61: uint16(36949), + 62: uint16(38859), + 63: uint16(39759), + 64: uint16(20083), + 65: uint16(20369), + 66: uint16(20754), + 67: uint16(20842), + 68: uint16(63943), + 69: uint16(21807), + 70: uint16(21929), + 71: uint16(23418), + 72: uint16(23461), + 73: uint16(24188), + 74: uint16(24189), + 75: uint16(24254), + 76: uint16(24736), + 77: uint16(24799), + 78: uint16(24840), + 79: uint16(24841), + 80: uint16(25540), + 81: uint16(25912), + 82: uint16(26377), + 83: uint16(63944), + 84: uint16(26580), + 85: uint16(26586), + 86: uint16(63945), + 87: uint16(26977), + 88: uint16(26978), + 89: uint16(27833), + 90: uint16(27943), + 91: uint16(63946), + 92: uint16(28216), + 93: uint16(63947), + }, + 74: { + 0: uint16(28641), + 1: uint16(29494), + 2: uint16(29495), + 3: uint16(63948), + 4: uint16(29788), + 5: uint16(30001), + 6: uint16(63949), + 7: uint16(30290), + 8: uint16(63950), + 9: uint16(63951), + 10: uint16(32173), + 11: uint16(33278), + 12: uint16(33848), + 13: uint16(35029), + 14: uint16(35480), + 15: uint16(35547), + 16: uint16(35565), + 17: uint16(36400), + 18: uint16(36418), + 19: uint16(36938), + 20: uint16(36926), + 21: uint16(36986), + 22: uint16(37193), + 23: uint16(37321), + 24: uint16(37742), + 25: uint16(63952), + 26: uint16(63953), + 27: uint16(22537), + 28: uint16(63954), + 29: uint16(27603), + 30: uint16(32905), + 31: uint16(32946), + 32: uint16(63955), + 33: uint16(63956), + 34: uint16(20801), + 35: uint16(22891), + 36: uint16(23609), + 37: uint16(63957), + 38: uint16(63958), + 39: uint16(28516), + 40: uint16(29607), + 41: uint16(32996), + 42: uint16(36103), + 43: uint16(63959), + 44: uint16(37399), + 45: uint16(38287), + 46: uint16(63960), + 47: uint16(63961), + 48: uint16(63962), + 49: uint16(63963), + 50: uint16(32895), + 51: uint16(25102), + 52: uint16(28700), + 53: uint16(32104), + 54: uint16(34701), + 55: uint16(63964), + 56: uint16(22432), + 57: uint16(24681), + 58: uint16(24903), + 59: uint16(27575), + 60: uint16(35518), + 61: uint16(37504), + 62: uint16(38577), + 63: uint16(20057), + 64: uint16(21535), + 65: uint16(28139), + 66: uint16(34093), + 67: uint16(38512), + 68: uint16(38899), + 69: uint16(39150), + 70: uint16(25558), + 71: uint16(27875), + 72: uint16(37009), + 73: uint16(20957), + 74: uint16(25033), + 75: uint16(33210), + 76: uint16(40441), + 77: uint16(20381), + 78: uint16(20506), + 79: uint16(20736), + 80: uint16(23452), + 81: uint16(24847), + 82: uint16(25087), + 83: uint16(25836), + 84: uint16(26885), + 85: uint16(27589), + 86: uint16(30097), + 87: uint16(30691), + 88: uint16(32681), + 89: uint16(33380), + 90: uint16(34191), + 91: uint16(34811), + 92: uint16(34915), + 93: uint16(35516), + }, + 75: { + 0: uint16(35696), + 1: uint16(37291), + 2: uint16(20108), + 3: uint16(20197), + 4: uint16(20234), + 5: uint16(63965), + 6: uint16(63966), + 7: uint16(22839), + 8: uint16(23016), + 9: uint16(63967), + 10: uint16(24050), + 11: uint16(24347), + 12: uint16(24411), + 13: uint16(24609), + 14: uint16(63968), + 15: uint16(63969), + 16: uint16(63970), + 17: uint16(63971), + 18: uint16(29246), + 19: uint16(29669), + 20: uint16(63972), + 21: uint16(30064), + 22: uint16(30157), + 23: uint16(63973), + 24: uint16(31227), + 25: uint16(63974), + 26: uint16(32780), + 27: uint16(32819), + 28: uint16(32900), + 29: uint16(33505), + 30: uint16(33617), + 31: uint16(63975), + 32: uint16(63976), + 33: uint16(36029), + 34: uint16(36019), + 35: uint16(36999), + 36: uint16(63977), + 37: uint16(63978), + 38: uint16(39156), + 39: uint16(39180), + 40: uint16(63979), + 41: uint16(63980), + 42: uint16(28727), + 43: uint16(30410), + 44: uint16(32714), + 45: uint16(32716), + 46: uint16(32764), + 47: uint16(35610), + 48: uint16(20154), + 49: uint16(20161), + 50: uint16(20995), + 51: uint16(21360), + 52: uint16(63981), + 53: uint16(21693), + 54: uint16(22240), + 55: uint16(23035), + 56: uint16(23493), + 57: uint16(24341), + 58: uint16(24525), + 59: uint16(28270), + 60: uint16(63982), + 61: uint16(63983), + 62: uint16(32106), + 63: uint16(33589), + 64: uint16(63984), + 65: uint16(34451), + 66: uint16(35469), + 67: uint16(63985), + 68: uint16(38765), + 69: uint16(38775), + 70: uint16(63986), + 71: uint16(63987), + 72: uint16(19968), + 73: uint16(20314), + 74: uint16(20350), + 75: uint16(22777), + 76: uint16(26085), + 77: uint16(28322), + 78: uint16(36920), + 79: uint16(37808), + 80: uint16(39353), + 81: uint16(20219), + 82: uint16(22764), + 83: uint16(22922), + 84: uint16(23001), + 85: uint16(24641), + 86: uint16(63988), + 87: uint16(63989), + 88: uint16(31252), + 89: uint16(63990), + 90: uint16(33615), + 91: uint16(36035), + 92: uint16(20837), + 93: uint16(21316), + }, + 76: { + 0: uint16(63991), + 1: uint16(63992), + 2: uint16(63993), + 3: uint16(20173), + 4: uint16(21097), + 5: uint16(23381), + 6: uint16(33471), + 7: uint16(20180), + 8: uint16(21050), + 9: uint16(21672), + 10: uint16(22985), + 11: uint16(23039), + 12: uint16(23376), + 13: uint16(23383), + 14: uint16(23388), + 15: uint16(24675), + 16: uint16(24904), + 17: uint16(28363), + 18: uint16(28825), + 19: uint16(29038), + 20: uint16(29574), + 21: uint16(29943), + 22: uint16(30133), + 23: uint16(30913), + 24: uint16(32043), + 25: uint16(32773), + 26: uint16(33258), + 27: uint16(33576), + 28: uint16(34071), + 29: uint16(34249), + 30: uint16(35566), + 31: uint16(36039), + 32: uint16(38604), + 33: uint16(20316), + 34: uint16(21242), + 35: uint16(22204), + 36: uint16(26027), + 37: uint16(26152), + 38: uint16(28796), + 39: uint16(28856), + 40: uint16(29237), + 41: uint16(32189), + 42: uint16(33421), + 43: uint16(37196), + 44: uint16(38592), + 45: uint16(40306), + 46: uint16(23409), + 47: uint16(26855), + 48: uint16(27544), + 49: uint16(28538), + 50: uint16(30430), + 51: uint16(23697), + 52: uint16(26283), + 53: uint16(28507), + 54: uint16(31668), + 55: uint16(31786), + 56: uint16(34870), + 57: uint16(38620), + 58: uint16(19976), + 59: uint16(20183), + 60: uint16(21280), + 61: uint16(22580), + 62: uint16(22715), + 63: uint16(22767), + 64: uint16(22892), + 65: uint16(23559), + 66: uint16(24115), + 67: uint16(24196), + 68: uint16(24373), + 69: uint16(25484), + 70: uint16(26290), + 71: uint16(26454), + 72: uint16(27167), + 73: uint16(27299), + 74: uint16(27404), + 75: uint16(28479), + 76: uint16(29254), + 77: uint16(63994), + 78: uint16(29520), + 79: uint16(29835), + 80: uint16(31456), + 81: uint16(31911), + 82: uint16(33144), + 83: uint16(33247), + 84: uint16(33255), + 85: uint16(33674), + 86: uint16(33900), + 87: uint16(34083), + 88: uint16(34196), + 89: uint16(34255), + 90: uint16(35037), + 91: uint16(36115), + 92: uint16(37292), + 93: uint16(38263), + }, + 77: { + 0: uint16(38556), + 1: uint16(20877), + 2: uint16(21705), + 3: uint16(22312), + 4: uint16(23472), + 5: uint16(25165), + 6: uint16(26448), + 7: uint16(26685), + 8: uint16(26771), + 9: uint16(28221), + 10: uint16(28371), + 11: uint16(28797), + 12: uint16(32289), + 13: uint16(35009), + 14: uint16(36001), + 15: uint16(36617), + 16: uint16(40779), + 17: uint16(40782), + 18: uint16(29229), + 19: uint16(31631), + 20: uint16(35533), + 21: uint16(37658), + 22: uint16(20295), + 23: uint16(20302), + 24: uint16(20786), + 25: uint16(21632), + 26: uint16(22992), + 27: uint16(24213), + 28: uint16(25269), + 29: uint16(26485), + 30: uint16(26990), + 31: uint16(27159), + 32: uint16(27822), + 33: uint16(28186), + 34: uint16(29401), + 35: uint16(29482), + 36: uint16(30141), + 37: uint16(31672), + 38: uint16(32053), + 39: uint16(33511), + 40: uint16(33785), + 41: uint16(33879), + 42: uint16(34295), + 43: uint16(35419), + 44: uint16(36015), + 45: uint16(36487), + 46: uint16(36889), + 47: uint16(37048), + 48: uint16(38606), + 49: uint16(40799), + 50: uint16(21219), + 51: uint16(21514), + 52: uint16(23265), + 53: uint16(23490), + 54: uint16(25688), + 55: uint16(25973), + 56: uint16(28404), + 57: uint16(29380), + 58: uint16(63995), + 59: uint16(30340), + 60: uint16(31309), + 61: uint16(31515), + 62: uint16(31821), + 63: uint16(32318), + 64: uint16(32735), + 65: uint16(33659), + 66: uint16(35627), + 67: uint16(36042), + 68: uint16(36196), + 69: uint16(36321), + 70: uint16(36447), + 71: uint16(36842), + 72: uint16(36857), + 73: uint16(36969), + 74: uint16(37841), + 75: uint16(20291), + 76: uint16(20346), + 77: uint16(20659), + 78: uint16(20840), + 79: uint16(20856), + 80: uint16(21069), + 81: uint16(21098), + 82: uint16(22625), + 83: uint16(22652), + 84: uint16(22880), + 85: uint16(23560), + 86: uint16(23637), + 87: uint16(24283), + 88: uint16(24731), + 89: uint16(25136), + 90: uint16(26643), + 91: uint16(27583), + 92: uint16(27656), + 93: uint16(28593), + }, + 78: { + 0: uint16(29006), + 1: uint16(29728), + 2: uint16(30000), + 3: uint16(30008), + 4: uint16(30033), + 5: uint16(30322), + 6: uint16(31564), + 7: uint16(31627), + 8: uint16(31661), + 9: uint16(31686), + 10: uint16(32399), + 11: uint16(35438), + 12: uint16(36670), + 13: uint16(36681), + 14: uint16(37439), + 15: uint16(37523), + 16: uint16(37666), + 17: uint16(37931), + 18: uint16(38651), + 19: uint16(39002), + 20: uint16(39019), + 21: uint16(39198), + 22: uint16(20999), + 23: uint16(25130), + 24: uint16(25240), + 25: uint16(27993), + 26: uint16(30308), + 27: uint16(31434), + 28: uint16(31680), + 29: uint16(32118), + 30: uint16(21344), + 31: uint16(23742), + 32: uint16(24215), + 33: uint16(28472), + 34: uint16(28857), + 35: uint16(31896), + 36: uint16(38673), + 37: uint16(39822), + 38: uint16(40670), + 39: uint16(25509), + 40: uint16(25722), + 41: uint16(34678), + 42: uint16(19969), + 43: uint16(20117), + 44: uint16(20141), + 45: uint16(20572), + 46: uint16(20597), + 47: uint16(21576), + 48: uint16(22979), + 49: uint16(23450), + 50: uint16(24128), + 51: uint16(24237), + 52: uint16(24311), + 53: uint16(24449), + 54: uint16(24773), + 55: uint16(25402), + 56: uint16(25919), + 57: uint16(25972), + 58: uint16(26060), + 59: uint16(26230), + 60: uint16(26232), + 61: uint16(26622), + 62: uint16(26984), + 63: uint16(27273), + 64: uint16(27491), + 65: uint16(27712), + 66: uint16(28096), + 67: uint16(28136), + 68: uint16(28191), + 69: uint16(28254), + 70: uint16(28702), + 71: uint16(28833), + 72: uint16(29582), + 73: uint16(29693), + 74: uint16(30010), + 75: uint16(30555), + 76: uint16(30855), + 77: uint16(31118), + 78: uint16(31243), + 79: uint16(31357), + 80: uint16(31934), + 81: uint16(32142), + 82: uint16(33351), + 83: uint16(35330), + 84: uint16(35562), + 85: uint16(35998), + 86: uint16(37165), + 87: uint16(37194), + 88: uint16(37336), + 89: uint16(37478), + 90: uint16(37580), + 91: uint16(37664), + 92: uint16(38662), + 93: uint16(38742), + }, + 79: { + 0: uint16(38748), + 1: uint16(38914), + 2: uint16(40718), + 3: uint16(21046), + 4: uint16(21137), + 5: uint16(21884), + 6: uint16(22564), + 7: uint16(24093), + 8: uint16(24351), + 9: uint16(24716), + 10: uint16(25552), + 11: uint16(26799), + 12: uint16(28639), + 13: uint16(31085), + 14: uint16(31532), + 15: uint16(33229), + 16: uint16(34234), + 17: uint16(35069), + 18: uint16(35576), + 19: uint16(36420), + 20: uint16(37261), + 21: uint16(38500), + 22: uint16(38555), + 23: uint16(38717), + 24: uint16(38988), + 25: uint16(40778), + 26: uint16(20430), + 27: uint16(20806), + 28: uint16(20939), + 29: uint16(21161), + 30: uint16(22066), + 31: uint16(24340), + 32: uint16(24427), + 33: uint16(25514), + 34: uint16(25805), + 35: uint16(26089), + 36: uint16(26177), + 37: uint16(26362), + 38: uint16(26361), + 39: uint16(26397), + 40: uint16(26781), + 41: uint16(26839), + 42: uint16(27133), + 43: uint16(28437), + 44: uint16(28526), + 45: uint16(29031), + 46: uint16(29157), + 47: uint16(29226), + 48: uint16(29866), + 49: uint16(30522), + 50: uint16(31062), + 51: uint16(31066), + 52: uint16(31199), + 53: uint16(31264), + 54: uint16(31381), + 55: uint16(31895), + 56: uint16(31967), + 57: uint16(32068), + 58: uint16(32368), + 59: uint16(32903), + 60: uint16(34299), + 61: uint16(34468), + 62: uint16(35412), + 63: uint16(35519), + 64: uint16(36249), + 65: uint16(36481), + 66: uint16(36896), + 67: uint16(36973), + 68: uint16(37347), + 69: uint16(38459), + 70: uint16(38613), + 71: uint16(40165), + 72: uint16(26063), + 73: uint16(31751), + 74: uint16(36275), + 75: uint16(37827), + 76: uint16(23384), + 77: uint16(23562), + 78: uint16(21330), + 79: uint16(25305), + 80: uint16(29469), + 81: uint16(20519), + 82: uint16(23447), + 83: uint16(24478), + 84: uint16(24752), + 85: uint16(24939), + 86: uint16(26837), + 87: uint16(28121), + 88: uint16(29742), + 89: uint16(31278), + 90: uint16(32066), + 91: uint16(32156), + 92: uint16(32305), + 93: uint16(33131), + }, + 80: { + 0: uint16(36394), + 1: uint16(36405), + 2: uint16(37758), + 3: uint16(37912), + 4: uint16(20304), + 5: uint16(22352), + 6: uint16(24038), + 7: uint16(24231), + 8: uint16(25387), + 9: uint16(32618), + 10: uint16(20027), + 11: uint16(20303), + 12: uint16(20367), + 13: uint16(20570), + 14: uint16(23005), + 15: uint16(32964), + 16: uint16(21610), + 17: uint16(21608), + 18: uint16(22014), + 19: uint16(22863), + 20: uint16(23449), + 21: uint16(24030), + 22: uint16(24282), + 23: uint16(26205), + 24: uint16(26417), + 25: uint16(26609), + 26: uint16(26666), + 27: uint16(27880), + 28: uint16(27954), + 29: uint16(28234), + 30: uint16(28557), + 31: uint16(28855), + 32: uint16(29664), + 33: uint16(30087), + 34: uint16(31820), + 35: uint16(32002), + 36: uint16(32044), + 37: uint16(32162), + 38: uint16(33311), + 39: uint16(34523), + 40: uint16(35387), + 41: uint16(35461), + 42: uint16(36208), + 43: uint16(36490), + 44: uint16(36659), + 45: uint16(36913), + 46: uint16(37198), + 47: uint16(37202), + 48: uint16(37956), + 49: uint16(39376), + 50: uint16(31481), + 51: uint16(31909), + 52: uint16(20426), + 53: uint16(20737), + 54: uint16(20934), + 55: uint16(22472), + 56: uint16(23535), + 57: uint16(23803), + 58: uint16(26201), + 59: uint16(27197), + 60: uint16(27994), + 61: uint16(28310), + 62: uint16(28652), + 63: uint16(28940), + 64: uint16(30063), + 65: uint16(31459), + 66: uint16(34850), + 67: uint16(36897), + 68: uint16(36981), + 69: uint16(38603), + 70: uint16(39423), + 71: uint16(33537), + 72: uint16(20013), + 73: uint16(20210), + 74: uint16(34886), + 75: uint16(37325), + 76: uint16(21373), + 77: uint16(27355), + 78: uint16(26987), + 79: uint16(27713), + 80: uint16(33914), + 81: uint16(22686), + 82: uint16(24974), + 83: uint16(26366), + 84: uint16(25327), + 85: uint16(28893), + 86: uint16(29969), + 87: uint16(30151), + 88: uint16(32338), + 89: uint16(33976), + 90: uint16(35657), + 91: uint16(36104), + 92: uint16(20043), + 93: uint16(21482), + }, + 81: { + 0: uint16(21675), + 1: uint16(22320), + 2: uint16(22336), + 3: uint16(24535), + 4: uint16(25345), + 5: uint16(25351), + 6: uint16(25711), + 7: uint16(25903), + 8: uint16(26088), + 9: uint16(26234), + 10: uint16(26525), + 11: uint16(26547), + 12: uint16(27490), + 13: uint16(27744), + 14: uint16(27802), + 15: uint16(28460), + 16: uint16(30693), + 17: uint16(30757), + 18: uint16(31049), + 19: uint16(31063), + 20: uint16(32025), + 21: uint16(32930), + 22: uint16(33026), + 23: uint16(33267), + 24: uint16(33437), + 25: uint16(33463), + 26: uint16(34584), + 27: uint16(35468), + 28: uint16(63996), + 29: uint16(36100), + 30: uint16(36286), + 31: uint16(36978), + 32: uint16(30452), + 33: uint16(31257), + 34: uint16(31287), + 35: uint16(32340), + 36: uint16(32887), + 37: uint16(21767), + 38: uint16(21972), + 39: uint16(22645), + 40: uint16(25391), + 41: uint16(25634), + 42: uint16(26185), + 43: uint16(26187), + 44: uint16(26733), + 45: uint16(27035), + 46: uint16(27524), + 47: uint16(27941), + 48: uint16(28337), + 49: uint16(29645), + 50: uint16(29800), + 51: uint16(29857), + 52: uint16(30043), + 53: uint16(30137), + 54: uint16(30433), + 55: uint16(30494), + 56: uint16(30603), + 57: uint16(31206), + 58: uint16(32265), + 59: uint16(32285), + 60: uint16(33275), + 61: uint16(34095), + 62: uint16(34967), + 63: uint16(35386), + 64: uint16(36049), + 65: uint16(36587), + 66: uint16(36784), + 67: uint16(36914), + 68: uint16(37805), + 69: uint16(38499), + 70: uint16(38515), + 71: uint16(38663), + 72: uint16(20356), + 73: uint16(21489), + 74: uint16(23018), + 75: uint16(23241), + 76: uint16(24089), + 77: uint16(26702), + 78: uint16(29894), + 79: uint16(30142), + 80: uint16(31209), + 81: uint16(31378), + 82: uint16(33187), + 83: uint16(34541), + 84: uint16(36074), + 85: uint16(36300), + 86: uint16(36845), + 87: uint16(26015), + 88: uint16(26389), + 89: uint16(63997), + 90: uint16(22519), + 91: uint16(28503), + 92: uint16(32221), + 93: uint16(36655), + }, + 82: { + 0: uint16(37878), + 1: uint16(38598), + 2: uint16(24501), + 3: uint16(25074), + 4: uint16(28548), + 5: uint16(19988), + 6: uint16(20376), + 7: uint16(20511), + 8: uint16(21449), + 9: uint16(21983), + 10: uint16(23919), + 11: uint16(24046), + 12: uint16(27425), + 13: uint16(27492), + 14: uint16(30923), + 15: uint16(31642), + 16: uint16(63998), + 17: uint16(36425), + 18: uint16(36554), + 19: uint16(36974), + 20: uint16(25417), + 21: uint16(25662), + 22: uint16(30528), + 23: uint16(31364), + 24: uint16(37679), + 25: uint16(38015), + 26: uint16(40810), + 27: uint16(25776), + 28: uint16(28591), + 29: uint16(29158), + 30: uint16(29864), + 31: uint16(29914), + 32: uint16(31428), + 33: uint16(31762), + 34: uint16(32386), + 35: uint16(31922), + 36: uint16(32408), + 37: uint16(35738), + 38: uint16(36106), + 39: uint16(38013), + 40: uint16(39184), + 41: uint16(39244), + 42: uint16(21049), + 43: uint16(23519), + 44: uint16(25830), + 45: uint16(26413), + 46: uint16(32046), + 47: uint16(20717), + 48: uint16(21443), + 49: uint16(22649), + 50: uint16(24920), + 51: uint16(24921), + 52: uint16(25082), + 53: uint16(26028), + 54: uint16(31449), + 55: uint16(35730), + 56: uint16(35734), + 57: uint16(20489), + 58: uint16(20513), + 59: uint16(21109), + 60: uint16(21809), + 61: uint16(23100), + 62: uint16(24288), + 63: uint16(24432), + 64: uint16(24884), + 65: uint16(25950), + 66: uint16(26124), + 67: uint16(26166), + 68: uint16(26274), + 69: uint16(27085), + 70: uint16(28356), + 71: uint16(28466), + 72: uint16(29462), + 73: uint16(30241), + 74: uint16(31379), + 75: uint16(33081), + 76: uint16(33369), + 77: uint16(33750), + 78: uint16(33980), + 79: uint16(20661), + 80: uint16(22512), + 81: uint16(23488), + 82: uint16(23528), + 83: uint16(24425), + 84: uint16(25505), + 85: uint16(30758), + 86: uint16(32181), + 87: uint16(33756), + 88: uint16(34081), + 89: uint16(37319), + 90: uint16(37365), + 91: uint16(20874), + 92: uint16(26613), + 93: uint16(31574), + }, + 83: { + 0: uint16(36012), + 1: uint16(20932), + 2: uint16(22971), + 3: uint16(24765), + 4: uint16(34389), + 5: uint16(20508), + 6: uint16(63999), + 7: uint16(21076), + 8: uint16(23610), + 9: uint16(24957), + 10: uint16(25114), + 11: uint16(25299), + 12: uint16(25842), + 13: uint16(26021), + 14: uint16(28364), + 15: uint16(30240), + 16: uint16(33034), + 17: uint16(36448), + 18: uint16(38495), + 19: uint16(38587), + 20: uint16(20191), + 21: uint16(21315), + 22: uint16(21912), + 23: uint16(22825), + 24: uint16(24029), + 25: uint16(25797), + 26: uint16(27849), + 27: uint16(28154), + 28: uint16(29588), + 29: uint16(31359), + 30: uint16(33307), + 31: uint16(34214), + 32: uint16(36068), + 33: uint16(36368), + 34: uint16(36983), + 35: uint16(37351), + 36: uint16(38369), + 37: uint16(38433), + 38: uint16(38854), + 39: uint16(20984), + 40: uint16(21746), + 41: uint16(21894), + 42: uint16(24505), + 43: uint16(25764), + 44: uint16(28552), + 45: uint16(32180), + 46: uint16(36639), + 47: uint16(36685), + 48: uint16(37941), + 49: uint16(20681), + 50: uint16(23574), + 51: uint16(27838), + 52: uint16(28155), + 53: uint16(29979), + 54: uint16(30651), + 55: uint16(31805), + 56: uint16(31844), + 57: uint16(35449), + 58: uint16(35522), + 59: uint16(22558), + 60: uint16(22974), + 61: uint16(24086), + 62: uint16(25463), + 63: uint16(29266), + 64: uint16(30090), + 65: uint16(30571), + 66: uint16(35548), + 67: uint16(36028), + 68: uint16(36626), + 69: uint16(24307), + 70: uint16(26228), + 71: uint16(28152), + 72: uint16(32893), + 73: uint16(33729), + 74: uint16(35531), + 75: uint16(38737), + 76: uint16(39894), + 77: uint16(64000), + 78: uint16(21059), + 79: uint16(26367), + 80: uint16(28053), + 81: uint16(28399), + 82: uint16(32224), + 83: uint16(35558), + 84: uint16(36910), + 85: uint16(36958), + 86: uint16(39636), + 87: uint16(21021), + 88: uint16(21119), + 89: uint16(21736), + 90: uint16(24980), + 91: uint16(25220), + 92: uint16(25307), + 93: uint16(26786), + }, + 84: { + 0: uint16(26898), + 1: uint16(26970), + 2: uint16(27189), + 3: uint16(28818), + 4: uint16(28966), + 5: uint16(30813), + 6: uint16(30977), + 7: uint16(30990), + 8: uint16(31186), + 9: uint16(31245), + 10: uint16(32918), + 11: uint16(33400), + 12: uint16(33493), + 13: uint16(33609), + 14: uint16(34121), + 15: uint16(35970), + 16: uint16(36229), + 17: uint16(37218), + 18: uint16(37259), + 19: uint16(37294), + 20: uint16(20419), + 21: uint16(22225), + 22: uint16(29165), + 23: uint16(30679), + 24: uint16(34560), + 25: uint16(35320), + 26: uint16(23544), + 27: uint16(24534), + 28: uint16(26449), + 29: uint16(37032), + 30: uint16(21474), + 31: uint16(22618), + 32: uint16(23541), + 33: uint16(24740), + 34: uint16(24961), + 35: uint16(25696), + 36: uint16(32317), + 37: uint16(32880), + 38: uint16(34085), + 39: uint16(37507), + 40: uint16(25774), + 41: uint16(20652), + 42: uint16(23828), + 43: uint16(26368), + 44: uint16(22684), + 45: uint16(25277), + 46: uint16(25512), + 47: uint16(26894), + 48: uint16(27000), + 49: uint16(27166), + 50: uint16(28267), + 51: uint16(30394), + 52: uint16(31179), + 53: uint16(33467), + 54: uint16(33833), + 55: uint16(35535), + 56: uint16(36264), + 57: uint16(36861), + 58: uint16(37138), + 59: uint16(37195), + 60: uint16(37276), + 61: uint16(37648), + 62: uint16(37656), + 63: uint16(37786), + 64: uint16(38619), + 65: uint16(39478), + 66: uint16(39949), + 67: uint16(19985), + 68: uint16(30044), + 69: uint16(31069), + 70: uint16(31482), + 71: uint16(31569), + 72: uint16(31689), + 73: uint16(32302), + 74: uint16(33988), + 75: uint16(36441), + 76: uint16(36468), + 77: uint16(36600), + 78: uint16(36880), + 79: uint16(26149), + 80: uint16(26943), + 81: uint16(29763), + 82: uint16(20986), + 83: uint16(26414), + 84: uint16(40668), + 85: uint16(20805), + 86: uint16(24544), + 87: uint16(27798), + 88: uint16(34802), + 89: uint16(34909), + 90: uint16(34935), + 91: uint16(24756), + 92: uint16(33205), + 93: uint16(33795), + }, + 85: { + 0: uint16(36101), + 1: uint16(21462), + 2: uint16(21561), + 3: uint16(22068), + 4: uint16(23094), + 5: uint16(23601), + 6: uint16(28810), + 7: uint16(32736), + 8: uint16(32858), + 9: uint16(33030), + 10: uint16(33261), + 11: uint16(36259), + 12: uint16(37257), + 13: uint16(39519), + 14: uint16(40434), + 15: uint16(20596), + 16: uint16(20164), + 17: uint16(21408), + 18: uint16(24827), + 19: uint16(28204), + 20: uint16(23652), + 21: uint16(20360), + 22: uint16(20516), + 23: uint16(21988), + 24: uint16(23769), + 25: uint16(24159), + 26: uint16(24677), + 27: uint16(26772), + 28: uint16(27835), + 29: uint16(28100), + 30: uint16(29118), + 31: uint16(30164), + 32: uint16(30196), + 33: uint16(30305), + 34: uint16(31258), + 35: uint16(31305), + 36: uint16(32199), + 37: uint16(32251), + 38: uint16(32622), + 39: uint16(33268), + 40: uint16(34473), + 41: uint16(36636), + 42: uint16(38601), + 43: uint16(39347), + 44: uint16(40786), + 45: uint16(21063), + 46: uint16(21189), + 47: uint16(39149), + 48: uint16(35242), + 49: uint16(19971), + 50: uint16(26578), + 51: uint16(28422), + 52: uint16(20405), + 53: uint16(23522), + 54: uint16(26517), + 55: uint16(27784), + 56: uint16(28024), + 57: uint16(29723), + 58: uint16(30759), + 59: uint16(37341), + 60: uint16(37756), + 61: uint16(34756), + 62: uint16(31204), + 63: uint16(31281), + 64: uint16(24555), + 65: uint16(20182), + 66: uint16(21668), + 67: uint16(21822), + 68: uint16(22702), + 69: uint16(22949), + 70: uint16(24816), + 71: uint16(25171), + 72: uint16(25302), + 73: uint16(26422), + 74: uint16(26965), + 75: uint16(33333), + 76: uint16(38464), + 77: uint16(39345), + 78: uint16(39389), + 79: uint16(20524), + 80: uint16(21331), + 81: uint16(21828), + 82: uint16(22396), + 83: uint16(64001), + 84: uint16(25176), + 85: uint16(64002), + 86: uint16(25826), + 87: uint16(26219), + 88: uint16(26589), + 89: uint16(28609), + 90: uint16(28655), + 91: uint16(29730), + 92: uint16(29752), + 93: uint16(35351), + }, + 86: { + 0: uint16(37944), + 1: uint16(21585), + 2: uint16(22022), + 3: uint16(22374), + 4: uint16(24392), + 5: uint16(24986), + 6: uint16(27470), + 7: uint16(28760), + 8: uint16(28845), + 9: uint16(32187), + 10: uint16(35477), + 11: uint16(22890), + 12: uint16(33067), + 13: uint16(25506), + 14: uint16(30472), + 15: uint16(32829), + 16: uint16(36010), + 17: uint16(22612), + 18: uint16(25645), + 19: uint16(27067), + 20: uint16(23445), + 21: uint16(24081), + 22: uint16(28271), + 23: uint16(64003), + 24: uint16(34153), + 25: uint16(20812), + 26: uint16(21488), + 27: uint16(22826), + 28: uint16(24608), + 29: uint16(24907), + 30: uint16(27526), + 31: uint16(27760), + 32: uint16(27888), + 33: uint16(31518), + 34: uint16(32974), + 35: uint16(33492), + 36: uint16(36294), + 37: uint16(37040), + 38: uint16(39089), + 39: uint16(64004), + 40: uint16(25799), + 41: uint16(28580), + 42: uint16(25745), + 43: uint16(25860), + 44: uint16(20814), + 45: uint16(21520), + 46: uint16(22303), + 47: uint16(35342), + 48: uint16(24927), + 49: uint16(26742), + 50: uint16(64005), + 51: uint16(30171), + 52: uint16(31570), + 53: uint16(32113), + 54: uint16(36890), + 55: uint16(22534), + 56: uint16(27084), + 57: uint16(33151), + 58: uint16(35114), + 59: uint16(36864), + 60: uint16(38969), + 61: uint16(20600), + 62: uint16(22871), + 63: uint16(22956), + 64: uint16(25237), + 65: uint16(36879), + 66: uint16(39722), + 67: uint16(24925), + 68: uint16(29305), + 69: uint16(38358), + 70: uint16(22369), + 71: uint16(23110), + 72: uint16(24052), + 73: uint16(25226), + 74: uint16(25773), + 75: uint16(25850), + 76: uint16(26487), + 77: uint16(27874), + 78: uint16(27966), + 79: uint16(29228), + 80: uint16(29750), + 81: uint16(30772), + 82: uint16(32631), + 83: uint16(33453), + 84: uint16(36315), + 85: uint16(38935), + 86: uint16(21028), + 87: uint16(22338), + 88: uint16(26495), + 89: uint16(29256), + 90: uint16(29923), + 91: uint16(36009), + 92: uint16(36774), + 93: uint16(37393), + }, + 87: { + 0: uint16(38442), + 1: uint16(20843), + 2: uint16(21485), + 3: uint16(25420), + 4: uint16(20329), + 5: uint16(21764), + 6: uint16(24726), + 7: uint16(25943), + 8: uint16(27803), + 9: uint16(28031), + 10: uint16(29260), + 11: uint16(29437), + 12: uint16(31255), + 13: uint16(35207), + 14: uint16(35997), + 15: uint16(24429), + 16: uint16(28558), + 17: uint16(28921), + 18: uint16(33192), + 19: uint16(24846), + 20: uint16(20415), + 21: uint16(20559), + 22: uint16(25153), + 23: uint16(29255), + 24: uint16(31687), + 25: uint16(32232), + 26: uint16(32745), + 27: uint16(36941), + 28: uint16(38829), + 29: uint16(39449), + 30: uint16(36022), + 31: uint16(22378), + 32: uint16(24179), + 33: uint16(26544), + 34: uint16(33805), + 35: uint16(35413), + 36: uint16(21536), + 37: uint16(23318), + 38: uint16(24163), + 39: uint16(24290), + 40: uint16(24330), + 41: uint16(25987), + 42: uint16(32954), + 43: uint16(34109), + 44: uint16(38281), + 45: uint16(38491), + 46: uint16(20296), + 47: uint16(21253), + 48: uint16(21261), + 49: uint16(21263), + 50: uint16(21638), + 51: uint16(21754), + 52: uint16(22275), + 53: uint16(24067), + 54: uint16(24598), + 55: uint16(25243), + 56: uint16(25265), + 57: uint16(25429), + 58: uint16(64006), + 59: uint16(27873), + 60: uint16(28006), + 61: uint16(30129), + 62: uint16(30770), + 63: uint16(32990), + 64: uint16(33071), + 65: uint16(33502), + 66: uint16(33889), + 67: uint16(33970), + 68: uint16(34957), + 69: uint16(35090), + 70: uint16(36875), + 71: uint16(37610), + 72: uint16(39165), + 73: uint16(39825), + 74: uint16(24133), + 75: uint16(26292), + 76: uint16(26333), + 77: uint16(28689), + 78: uint16(29190), + 79: uint16(64007), + 80: uint16(20469), + 81: uint16(21117), + 82: uint16(24426), + 83: uint16(24915), + 84: uint16(26451), + 85: uint16(27161), + 86: uint16(28418), + 87: uint16(29922), + 88: uint16(31080), + 89: uint16(34920), + 90: uint16(35961), + 91: uint16(39111), + 92: uint16(39108), + 93: uint16(39491), + }, + 88: { + 0: uint16(21697), + 1: uint16(31263), + 2: uint16(26963), + 3: uint16(35575), + 4: uint16(35914), + 5: uint16(39080), + 6: uint16(39342), + 7: uint16(24444), + 8: uint16(25259), + 9: uint16(30130), + 10: uint16(30382), + 11: uint16(34987), + 12: uint16(36991), + 13: uint16(38466), + 14: uint16(21305), + 15: uint16(24380), + 16: uint16(24517), + 17: uint16(27852), + 18: uint16(29644), + 19: uint16(30050), + 20: uint16(30091), + 21: uint16(31558), + 22: uint16(33534), + 23: uint16(39325), + 24: uint16(20047), + 25: uint16(36924), + 26: uint16(19979), + 27: uint16(20309), + 28: uint16(21414), + 29: uint16(22799), + 30: uint16(24264), + 31: uint16(26160), + 32: uint16(27827), + 33: uint16(29781), + 34: uint16(33655), + 35: uint16(34662), + 36: uint16(36032), + 37: uint16(36944), + 38: uint16(38686), + 39: uint16(39957), + 40: uint16(22737), + 41: uint16(23416), + 42: uint16(34384), + 43: uint16(35604), + 44: uint16(40372), + 45: uint16(23506), + 46: uint16(24680), + 47: uint16(24717), + 48: uint16(26097), + 49: uint16(27735), + 50: uint16(28450), + 51: uint16(28579), + 52: uint16(28698), + 53: uint16(32597), + 54: uint16(32752), + 55: uint16(38289), + 56: uint16(38290), + 57: uint16(38480), + 58: uint16(38867), + 59: uint16(21106), + 60: uint16(36676), + 61: uint16(20989), + 62: uint16(21547), + 63: uint16(21688), + 64: uint16(21859), + 65: uint16(21898), + 66: uint16(27323), + 67: uint16(28085), + 68: uint16(32216), + 69: uint16(33382), + 70: uint16(37532), + 71: uint16(38519), + 72: uint16(40569), + 73: uint16(21512), + 74: uint16(21704), + 75: uint16(30418), + 76: uint16(34532), + 77: uint16(38308), + 78: uint16(38356), + 79: uint16(38492), + 80: uint16(20130), + 81: uint16(20233), + 82: uint16(23022), + 83: uint16(23270), + 84: uint16(24055), + 85: uint16(24658), + 86: uint16(25239), + 87: uint16(26477), + 88: uint16(26689), + 89: uint16(27782), + 90: uint16(28207), + 91: uint16(32568), + 92: uint16(32923), + 93: uint16(33322), + }, + 89: { + 0: uint16(64008), + 1: uint16(64009), + 2: uint16(38917), + 3: uint16(20133), + 4: uint16(20565), + 5: uint16(21683), + 6: uint16(22419), + 7: uint16(22874), + 8: uint16(23401), + 9: uint16(23475), + 10: uint16(25032), + 11: uint16(26999), + 12: uint16(28023), + 13: uint16(28707), + 14: uint16(34809), + 15: uint16(35299), + 16: uint16(35442), + 17: uint16(35559), + 18: uint16(36994), + 19: uint16(39405), + 20: uint16(39608), + 21: uint16(21182), + 22: uint16(26680), + 23: uint16(20502), + 24: uint16(24184), + 25: uint16(26447), + 26: uint16(33607), + 27: uint16(34892), + 28: uint16(20139), + 29: uint16(21521), + 30: uint16(22190), + 31: uint16(29670), + 32: uint16(37141), + 33: uint16(38911), + 34: uint16(39177), + 35: uint16(39255), + 36: uint16(39321), + 37: uint16(22099), + 38: uint16(22687), + 39: uint16(34395), + 40: uint16(35377), + 41: uint16(25010), + 42: uint16(27382), + 43: uint16(29563), + 44: uint16(36562), + 45: uint16(27463), + 46: uint16(38570), + 47: uint16(39511), + 48: uint16(22869), + 49: uint16(29184), + 50: uint16(36203), + 51: uint16(38761), + 52: uint16(20436), + 53: uint16(23796), + 54: uint16(24358), + 55: uint16(25080), + 56: uint16(26203), + 57: uint16(27883), + 58: uint16(28843), + 59: uint16(29572), + 60: uint16(29625), + 61: uint16(29694), + 62: uint16(30505), + 63: uint16(30541), + 64: uint16(32067), + 65: uint16(32098), + 66: uint16(32291), + 67: uint16(33335), + 68: uint16(34898), + 69: uint16(64010), + 70: uint16(36066), + 71: uint16(37449), + 72: uint16(39023), + 73: uint16(23377), + 74: uint16(31348), + 75: uint16(34880), + 76: uint16(38913), + 77: uint16(23244), + 78: uint16(20448), + 79: uint16(21332), + 80: uint16(22846), + 81: uint16(23805), + 82: uint16(25406), + 83: uint16(28025), + 84: uint16(29433), + 85: uint16(33029), + 86: uint16(33031), + 87: uint16(33698), + 88: uint16(37583), + 89: uint16(38960), + 90: uint16(20136), + 91: uint16(20804), + 92: uint16(21009), + 93: uint16(22411), + }, + 90: { + 0: uint16(24418), + 1: uint16(27842), + 2: uint16(28366), + 3: uint16(28677), + 4: uint16(28752), + 5: uint16(28847), + 6: uint16(29074), + 7: uint16(29673), + 8: uint16(29801), + 9: uint16(33610), + 10: uint16(34722), + 11: uint16(34913), + 12: uint16(36872), + 13: uint16(37026), + 14: uint16(37795), + 15: uint16(39336), + 16: uint16(20846), + 17: uint16(24407), + 18: uint16(24800), + 19: uint16(24935), + 20: uint16(26291), + 21: uint16(34137), + 22: uint16(36426), + 23: uint16(37295), + 24: uint16(38795), + 25: uint16(20046), + 26: uint16(20114), + 27: uint16(21628), + 28: uint16(22741), + 29: uint16(22778), + 30: uint16(22909), + 31: uint16(23733), + 32: uint16(24359), + 33: uint16(25142), + 34: uint16(25160), + 35: uint16(26122), + 36: uint16(26215), + 37: uint16(27627), + 38: uint16(28009), + 39: uint16(28111), + 40: uint16(28246), + 41: uint16(28408), + 42: uint16(28564), + 43: uint16(28640), + 44: uint16(28649), + 45: uint16(28765), + 46: uint16(29392), + 47: uint16(29733), + 48: uint16(29786), + 49: uint16(29920), + 50: uint16(30355), + 51: uint16(31068), + 52: uint16(31946), + 53: uint16(32286), + 54: uint16(32993), + 55: uint16(33446), + 56: uint16(33899), + 57: uint16(33983), + 58: uint16(34382), + 59: uint16(34399), + 60: uint16(34676), + 61: uint16(35703), + 62: uint16(35946), + 63: uint16(37804), + 64: uint16(38912), + 65: uint16(39013), + 66: uint16(24785), + 67: uint16(25110), + 68: uint16(37239), + 69: uint16(23130), + 70: uint16(26127), + 71: uint16(28151), + 72: uint16(28222), + 73: uint16(29759), + 74: uint16(39746), + 75: uint16(24573), + 76: uint16(24794), + 77: uint16(31503), + 78: uint16(21700), + 79: uint16(24344), + 80: uint16(27742), + 81: uint16(27859), + 82: uint16(27946), + 83: uint16(28888), + 84: uint16(32005), + 85: uint16(34425), + 86: uint16(35340), + 87: uint16(40251), + 88: uint16(21270), + 89: uint16(21644), + 90: uint16(23301), + 91: uint16(27194), + 92: uint16(28779), + 93: uint16(30069), + }, + 91: { + 0: uint16(31117), + 1: uint16(31166), + 2: uint16(33457), + 3: uint16(33775), + 4: uint16(35441), + 5: uint16(35649), + 6: uint16(36008), + 7: uint16(38772), + 8: uint16(64011), + 9: uint16(25844), + 10: uint16(25899), + 11: uint16(30906), + 12: uint16(30907), + 13: uint16(31339), + 14: uint16(20024), + 15: uint16(21914), + 16: uint16(22864), + 17: uint16(23462), + 18: uint16(24187), + 19: uint16(24739), + 20: uint16(25563), + 21: uint16(27489), + 22: uint16(26213), + 23: uint16(26707), + 24: uint16(28185), + 25: uint16(29029), + 26: uint16(29872), + 27: uint16(32008), + 28: uint16(36996), + 29: uint16(39529), + 30: uint16(39973), + 31: uint16(27963), + 32: uint16(28369), + 33: uint16(29502), + 34: uint16(35905), + 35: uint16(38346), + 36: uint16(20976), + 37: uint16(24140), + 38: uint16(24488), + 39: uint16(24653), + 40: uint16(24822), + 41: uint16(24880), + 42: uint16(24908), + 43: uint16(26179), + 44: uint16(26180), + 45: uint16(27045), + 46: uint16(27841), + 47: uint16(28255), + 48: uint16(28361), + 49: uint16(28514), + 50: uint16(29004), + 51: uint16(29852), + 52: uint16(30343), + 53: uint16(31681), + 54: uint16(31783), + 55: uint16(33618), + 56: uint16(34647), + 57: uint16(36945), + 58: uint16(38541), + 59: uint16(40643), + 60: uint16(21295), + 61: uint16(22238), + 62: uint16(24315), + 63: uint16(24458), + 64: uint16(24674), + 65: uint16(24724), + 66: uint16(25079), + 67: uint16(26214), + 68: uint16(26371), + 69: uint16(27292), + 70: uint16(28142), + 71: uint16(28590), + 72: uint16(28784), + 73: uint16(29546), + 74: uint16(32362), + 75: uint16(33214), + 76: uint16(33588), + 77: uint16(34516), + 78: uint16(35496), + 79: uint16(36036), + 80: uint16(21123), + 81: uint16(29554), + 82: uint16(23446), + 83: uint16(27243), + 84: uint16(37892), + 85: uint16(21742), + 86: uint16(22150), + 87: uint16(23389), + 88: uint16(25928), + 89: uint16(25989), + 90: uint16(26313), + 91: uint16(26783), + 92: uint16(28045), + 93: uint16(28102), + }, + 92: { + 0: uint16(29243), + 1: uint16(32948), + 2: uint16(37237), + 3: uint16(39501), + 4: uint16(20399), + 5: uint16(20505), + 6: uint16(21402), + 7: uint16(21518), + 8: uint16(21564), + 9: uint16(21897), + 10: uint16(21957), + 11: uint16(24127), + 12: uint16(24460), + 13: uint16(26429), + 14: uint16(29030), + 15: uint16(29661), + 16: uint16(36869), + 17: uint16(21211), + 18: uint16(21235), + 19: uint16(22628), + 20: uint16(22734), + 21: uint16(28932), + 22: uint16(29071), + 23: uint16(29179), + 24: uint16(34224), + 25: uint16(35347), + 26: uint16(26248), + 27: uint16(34216), + 28: uint16(21927), + 29: uint16(26244), + 30: uint16(29002), + 31: uint16(33841), + 32: uint16(21321), + 33: uint16(21913), + 34: uint16(27585), + 35: uint16(24409), + 36: uint16(24509), + 37: uint16(25582), + 38: uint16(26249), + 39: uint16(28999), + 40: uint16(35569), + 41: uint16(36637), + 42: uint16(40638), + 43: uint16(20241), + 44: uint16(25658), + 45: uint16(28875), + 46: uint16(30054), + 47: uint16(34407), + 48: uint16(24676), + 49: uint16(35662), + 50: uint16(40440), + 51: uint16(20807), + 52: uint16(20982), + 53: uint16(21256), + 54: uint16(27958), + 55: uint16(33016), + 56: uint16(40657), + 57: uint16(26133), + 58: uint16(27427), + 59: uint16(28824), + 60: uint16(30165), + 61: uint16(21507), + 62: uint16(23673), + 63: uint16(32007), + 64: uint16(35350), + 65: uint16(27424), + 66: uint16(27453), + 67: uint16(27462), + 68: uint16(21560), + 69: uint16(24688), + 70: uint16(27965), + 71: uint16(32725), + 72: uint16(33288), + 73: uint16(20694), + 74: uint16(20958), + 75: uint16(21916), + 76: uint16(22123), + 77: uint16(22221), + 78: uint16(23020), + 79: uint16(23305), + 80: uint16(24076), + 81: uint16(24985), + 82: uint16(24984), + 83: uint16(25137), + 84: uint16(26206), + 85: uint16(26342), + 86: uint16(29081), + 87: uint16(29113), + 88: uint16(29114), + 89: uint16(29351), + 90: uint16(31143), + 91: uint16(31232), + 92: uint16(32690), + 93: uint16(35440), + }, +} + +var _rev_jis = [6879]uint16{ + 0: uint16(31), + 1: uint16(80), + 2: uint16(81), + 3: uint16(87), + 4: uint16(14), + 5: uint16(299), + 6: uint16(74), + 7: uint16(61), + 8: uint16(12), + 9: uint16(344), + 10: uint16(62), + 11: uint16(63), + 12: uint16(1280), + 13: uint16(1281), + 14: uint16(1282), + 15: uint16(1283), + 16: uint16(1284), + 17: uint16(1285), + 18: uint16(1286), + 19: uint16(1287), + 20: uint16(1288), + 21: uint16(1289), + 22: uint16(1290), + 23: uint16(1291), + 24: uint16(1292), + 25: uint16(1293), + 26: uint16(1294), + 27: uint16(1295), + 28: uint16(1296), + 29: uint16(1297), + 30: uint16(1298), + 31: uint16(1299), + 32: uint16(1300), + 33: uint16(1301), + 34: uint16(1302), + 35: uint16(1303), + 36: uint16(1312), + 37: uint16(1313), + 38: uint16(1314), + 39: uint16(1315), + 40: uint16(1316), + 41: uint16(1317), + 42: uint16(1318), + 43: uint16(1319), + 44: uint16(1320), + 45: uint16(1321), + 46: uint16(1322), + 47: uint16(1323), + 48: uint16(1324), + 49: uint16(1325), + 50: uint16(1326), + 51: uint16(1327), + 52: uint16(1328), + 53: uint16(1329), + 54: uint16(1330), + 55: uint16(1331), + 56: uint16(1332), + 57: uint16(1333), + 58: uint16(1334), + 59: uint16(1335), + 60: uint16(1542), + 61: uint16(1536), + 62: uint16(1537), + 63: uint16(1538), + 64: uint16(1539), + 65: uint16(1540), + 66: uint16(1541), + 67: uint16(1543), + 68: uint16(1544), + 69: uint16(1545), + 70: uint16(1546), + 71: uint16(1547), + 72: uint16(1548), + 73: uint16(1549), + 74: uint16(1550), + 75: uint16(1551), + 76: uint16(1552), + 77: uint16(1553), + 78: uint16(1554), + 79: uint16(1555), + 80: uint16(1556), + 81: uint16(1557), + 82: uint16(1558), + 83: uint16(1559), + 84: uint16(1560), + 85: uint16(1561), + 86: uint16(1562), + 87: uint16(1563), + 88: uint16(1564), + 89: uint16(1565), + 90: uint16(1566), + 91: uint16(1567), + 92: uint16(1568), + 93: uint16(1584), + 94: uint16(1585), + 95: uint16(1586), + 96: uint16(1587), + 97: uint16(1588), + 98: uint16(1589), + 99: uint16(1591), + 100: uint16(1592), + 101: uint16(1593), + 102: uint16(1594), + 103: uint16(1595), + 104: uint16(1596), + 105: uint16(1597), + 106: uint16(1598), + 107: uint16(1599), + 108: uint16(1600), + 109: uint16(1601), + 110: uint16(1602), + 111: uint16(1603), + 112: uint16(1604), + 113: uint16(1605), + 114: uint16(1606), + 115: uint16(1607), + 116: uint16(1608), + 117: uint16(1609), + 118: uint16(1610), + 119: uint16(1611), + 120: uint16(1612), + 121: uint16(1613), + 122: uint16(1614), + 123: uint16(1615), + 124: uint16(1616), + 125: uint16(1590), + 126: uint16(29), + 127: uint16(28), + 128: uint16(33), + 129: uint16(37), + 130: uint16(38), + 131: uint16(39), + 132: uint16(40), + 133: uint16(342), + 134: uint16(343), + 135: uint16(36), + 136: uint16(35), + 137: uint16(338), + 138: uint16(75), + 139: uint16(76), + 140: uint16(263), + 141: uint16(77), + 142: uint16(337), + 143: uint16(266), + 144: uint16(267), + 145: uint16(265), + 146: uint16(268), + 147: uint16(300), + 148: uint16(301), + 149: uint16(302), + 150: uint16(318), + 151: uint16(303), + 152: uint16(319), + 153: uint16(281), + 154: uint16(282), + 155: uint16(60), + 156: uint16(324), + 157: uint16(326), + 158: uint16(70), + 159: uint16(315), + 160: uint16(297), + 161: uint16(298), + 162: uint16(288), + 163: uint16(287), + 164: uint16(328), + 165: uint16(329), + 166: uint16(71), + 167: uint16(327), + 168: uint16(325), + 169: uint16(321), + 170: uint16(65), + 171: uint16(320), + 172: uint16(68), + 173: uint16(69), + 174: uint16(322), + 175: uint16(323), + 176: uint16(285), + 177: uint16(286), + 178: uint16(283), + 179: uint16(284), + 180: uint16(316), + 181: uint16(317), + 182: uint16(1792), + 183: uint16(1803), + 184: uint16(1793), + 185: uint16(1804), + 186: uint16(1794), + 187: uint16(1805), + 188: uint16(1795), + 189: uint16(1806), + 190: uint16(1797), + 191: uint16(1808), + 192: uint16(1796), + 193: uint16(1807), + 194: uint16(1798), + 195: uint16(1819), + 196: uint16(1814), + 197: uint16(1809), + 198: uint16(1800), + 199: uint16(1821), + 200: uint16(1816), + 201: uint16(1811), + 202: uint16(1799), + 203: uint16(1815), + 204: uint16(1820), + 205: uint16(1810), + 206: uint16(1801), + 207: uint16(1817), + 208: uint16(1822), + 209: uint16(1812), + 210: uint16(1802), + 211: uint16(1818), + 212: uint16(1823), + 213: uint16(1813), + 214: uint16(258), + 215: uint16(257), + 216: uint16(260), + 217: uint16(259), + 218: uint16(262), + 219: uint16(261), + 220: uint16(256), + 221: uint16(93), + 222: uint16(90), + 223: uint16(92), + 224: uint16(91), + 225: uint16(349), + 226: uint16(89), + 227: uint16(88), + 228: uint16(73), + 229: uint16(72), + 230: uint16(341), + 231: uint16(340), + 232: uint16(339), + 234: uint16(1), + 235: uint16(2), + 236: uint16(22), + 237: uint16(24), + 238: uint16(25), + 239: uint16(26), + 240: uint16(49), + 241: uint16(50), + 242: uint16(51), + 243: uint16(52), + 244: uint16(53), + 245: uint16(54), + 246: uint16(55), + 247: uint16(56), + 248: uint16(57), + 249: uint16(58), + 250: uint16(264), + 251: uint16(269), + 252: uint16(43), + 253: uint16(44), + 254: uint16(32), + 255: uint16(768), + 256: uint16(769), + 257: uint16(770), + 258: uint16(771), + 259: uint16(772), + 260: uint16(773), + 261: uint16(774), + 262: uint16(775), + 263: uint16(776), + 264: uint16(777), + 265: uint16(778), + 266: uint16(779), + 267: uint16(780), + 268: uint16(781), + 269: uint16(782), + 270: uint16(783), + 271: uint16(784), + 272: uint16(785), + 273: uint16(786), + 274: uint16(787), + 275: uint16(788), + 276: uint16(789), + 277: uint16(790), + 278: uint16(791), + 279: uint16(792), + 280: uint16(793), + 281: uint16(794), + 282: uint16(795), + 283: uint16(796), + 284: uint16(797), + 285: uint16(798), + 286: uint16(799), + 287: uint16(800), + 288: uint16(801), + 289: uint16(802), + 290: uint16(803), + 291: uint16(804), + 292: uint16(805), + 293: uint16(806), + 294: uint16(807), + 295: uint16(808), + 296: uint16(809), + 297: uint16(810), + 298: uint16(811), + 299: uint16(812), + 300: uint16(813), + 301: uint16(814), + 302: uint16(815), + 303: uint16(816), + 304: uint16(817), + 305: uint16(818), + 306: uint16(819), + 307: uint16(820), + 308: uint16(821), + 309: uint16(822), + 310: uint16(823), + 311: uint16(824), + 312: uint16(825), + 313: uint16(826), + 314: uint16(827), + 315: uint16(828), + 316: uint16(829), + 317: uint16(830), + 318: uint16(831), + 319: uint16(832), + 320: uint16(833), + 321: uint16(834), + 322: uint16(835), + 323: uint16(836), + 324: uint16(837), + 325: uint16(838), + 326: uint16(839), + 327: uint16(840), + 328: uint16(841), + 329: uint16(842), + 330: uint16(843), + 331: uint16(844), + 332: uint16(845), + 333: uint16(846), + 334: uint16(847), + 335: uint16(848), + 336: uint16(849), + 337: uint16(850), + 338: uint16(10), + 339: uint16(11), + 340: uint16(20), + 341: uint16(21), + 342: uint16(1024), + 343: uint16(1025), + 344: uint16(1026), + 345: uint16(1027), + 346: uint16(1028), + 347: uint16(1029), + 348: uint16(1030), + 349: uint16(1031), + 350: uint16(1032), + 351: uint16(1033), + 352: uint16(1034), + 353: uint16(1035), + 354: uint16(1036), + 355: uint16(1037), + 356: uint16(1038), + 357: uint16(1039), + 358: uint16(1040), + 359: uint16(1041), + 360: uint16(1042), + 361: uint16(1043), + 362: uint16(1044), + 363: uint16(1045), + 364: uint16(1046), + 365: uint16(1047), + 366: uint16(1048), + 367: uint16(1049), + 368: uint16(1050), + 369: uint16(1051), + 370: uint16(1052), + 371: uint16(1053), + 372: uint16(1054), + 373: uint16(1055), + 374: uint16(1056), + 375: uint16(1057), + 376: uint16(1058), + 377: uint16(1059), + 378: uint16(1060), + 379: uint16(1061), + 380: uint16(1062), + 381: uint16(1063), + 382: uint16(1064), + 383: uint16(1065), + 384: uint16(1066), + 385: uint16(1067), + 386: uint16(1068), + 387: uint16(1069), + 388: uint16(1070), + 389: uint16(1071), + 390: uint16(1072), + 391: uint16(1073), + 392: uint16(1074), + 393: uint16(1075), + 394: uint16(1076), + 395: uint16(1077), + 396: uint16(1078), + 397: uint16(1079), + 398: uint16(1080), + 399: uint16(1081), + 400: uint16(1082), + 401: uint16(1083), + 402: uint16(1084), + 403: uint16(1085), + 404: uint16(1086), + 405: uint16(1087), + 406: uint16(1088), + 407: uint16(1089), + 408: uint16(1090), + 409: uint16(1091), + 410: uint16(1092), + 411: uint16(1093), + 412: uint16(1094), + 413: uint16(1095), + 414: uint16(1096), + 415: uint16(1097), + 416: uint16(1098), + 417: uint16(1099), + 418: uint16(1100), + 419: uint16(1101), + 420: uint16(1102), + 421: uint16(1103), + 422: uint16(1104), + 423: uint16(1105), + 424: uint16(1106), + 425: uint16(1107), + 426: uint16(1108), + 427: uint16(1109), + 428: uint16(5), + 429: uint16(27), + 430: uint16(18), + 431: uint16(19), + 432: uint16(3915), + 433: uint16(8793), + 434: uint16(6934), + 435: uint16(10843), + 436: uint16(7493), + 437: uint16(6671), + 438: uint16(7492), + 439: uint16(4379), + 440: uint16(10291), + 441: uint16(11294), + 442: uint16(12033), + 443: uint16(4110), + 444: uint16(4685), + 445: uint16(12034), + 446: uint16(7939), + 447: uint16(12577), + 448: uint16(5173), + 449: uint16(10521), + 450: uint16(7494), + 451: uint16(11549), + 452: uint16(10529), + 453: uint16(12035), + 454: uint16(8773), + 455: uint16(12036), + 456: uint16(5465), + 457: uint16(12037), + 458: uint16(4924), + 459: uint16(8719), + 460: uint16(6982), + 461: uint16(12038), + 462: uint16(12039), + 463: uint16(12040), + 464: uint16(9748), + 465: uint16(5174), + 466: uint16(9750), + 467: uint16(9538), + 468: uint16(5922), + 469: uint16(10770), + 470: uint16(18472), + 471: uint16(12041), + 472: uint16(7495), + 473: uint16(12042), + 474: uint16(4372), + 475: uint16(5444), + 476: uint16(5967), + 477: uint16(11080), + 478: uint16(13573), + 479: uint16(11343), + 480: uint16(9564), + 481: uint16(4868), + 482: uint16(5140), + 483: uint16(12043), + 484: uint16(12044), + 485: uint16(11546), + 486: uint16(11292), + 487: uint16(8263), + 488: uint16(12046), + 489: uint16(6741), + 490: uint16(9554), + 491: uint16(12049), + 492: uint16(4125), + 493: uint16(5950), + 494: uint16(5949), + 495: uint16(3909), + 496: uint16(11818), + 497: uint16(11817), + 498: uint16(6418), + 499: uint16(3840), + 500: uint16(12050), + 501: uint16(12051), + 502: uint16(12052), + 503: uint16(10771), + 504: uint16(12053), + 505: uint16(5969), + 506: uint16(3910), + 507: uint16(10833), + 508: uint16(5211), + 509: uint16(5212), + 510: uint16(5213), + 511: uint16(9025), + 512: uint16(11547), + 513: uint16(12054), + 514: uint16(12055), + 515: uint16(12056), + 516: uint16(7724), + 517: uint16(7193), + 518: uint16(7725), + 519: uint16(12061), + 520: uint16(12059), + 521: uint16(12060), + 522: uint16(5175), + 523: uint16(6402), + 524: uint16(4431), + 525: uint16(12058), + 526: uint16(12057), + 527: uint16(10504), + 528: uint16(6693), + 529: uint16(6692), + 530: uint16(8477), + 531: uint16(12062), + 532: uint16(10292), + 533: uint16(8006), + 534: uint16(23), + 535: uint16(12063), + 536: uint16(12065), + 537: uint16(8516), + 538: uint16(11584), + 539: uint16(3881), + 540: uint16(12064), + 541: uint16(4381), + 542: uint16(5411), + 543: uint16(8774), + 544: uint16(5710), + 545: uint16(12066), + 546: uint16(9731), + 547: uint16(4938), + 548: uint16(12067), + 549: uint16(3882), + 550: uint16(5951), + 551: uint16(4939), + 552: uint16(10329), + 553: uint16(10001), + 554: uint16(5176), + 555: uint16(4432), + 556: uint16(12102), + 557: uint16(9248), + 558: uint16(9803), + 559: uint16(12069), + 560: uint16(10011), + 561: uint16(11585), + 562: uint16(7692), + 563: uint16(6694), + 564: uint16(6742), + 565: uint16(4383), + 566: uint16(9008), + 567: uint16(8705), + 568: uint16(12073), + 569: uint16(3883), + 570: uint16(9026), + 571: uint16(7194), + 572: uint16(6419), + 573: uint16(11267), + 574: uint16(8493), + 575: uint16(4382), + 576: uint16(12072), + 577: uint16(11293), + 578: uint16(12068), + 579: uint16(12070), + 580: uint16(6477), + 581: uint16(12071), + 582: uint16(13315), + 583: uint16(12079), + 584: uint16(12082), + 585: uint16(12080), + 586: uint16(4385), + 587: uint16(10522), + 588: uint16(12074), + 589: uint16(12078), + 590: uint16(5970), + 591: uint16(6695), + 592: uint16(4869), + 593: uint16(12083), + 594: uint16(12075), + 595: uint16(11586), + 596: uint16(6743), + 597: uint16(12076), + 598: uint16(12081), + 599: uint16(12084), + 600: uint16(12077), + 601: uint16(5376), + 602: uint16(3884), + 603: uint16(5377), + 604: uint16(4384), + 605: uint16(13316), + 606: uint16(10840), + 607: uint16(10317), + 608: uint16(5971), + 609: uint16(7694), + 610: uint16(11542), + 611: uint16(10551), + 612: uint16(5655), + 613: uint16(8452), + 614: uint16(4419), + 615: uint16(7218), + 616: uint16(12088), + 617: uint16(12093), + 618: uint16(12091), + 619: uint16(12086), + 620: uint16(8462), + 621: uint16(12089), + 622: uint16(12092), + 623: uint16(12090), + 624: uint16(10556), + 625: uint16(12087), + 626: uint16(7693), + 627: uint16(10834), + 628: uint16(12094), + 629: uint16(12095), + 630: uint16(7171), + 631: uint16(12108), + 632: uint16(9775), + 633: uint16(10261), + 634: uint16(12103), + 635: uint16(10575), + 636: uint16(4373), + 637: uint16(12107), + 638: uint16(12101), + 639: uint16(12110), + 640: uint16(8241), + 641: uint16(5923), + 642: uint16(9787), + 643: uint16(16166), + 644: uint16(12109), + 645: uint16(9276), + 646: uint16(12098), + 647: uint16(5973), + 648: uint16(5972), + 649: uint16(12096), + 650: uint16(6969), + 651: uint16(12104), + 652: uint16(10574), + 653: uint16(8748), + 654: uint16(12100), + 655: uint16(5712), + 656: uint16(12097), + 657: uint16(12105), + 658: uint16(12099), + 659: uint16(11568), + 660: uint16(12106), + 661: uint16(11808), + 662: uint16(5445), + 663: uint16(5711), + 664: uint16(12111), + 665: uint16(12112), + 666: uint16(12116), + 667: uint16(3885), + 668: uint16(10543), + 669: uint16(12115), + 670: uint16(12114), + 671: uint16(12118), + 672: uint16(12117), + 673: uint16(9027), + 674: uint16(5713), + 675: uint16(12119), + 676: uint16(6948), + 677: uint16(8453), + 678: uint16(9028), + 679: uint16(5461), + 680: uint16(12120), + 681: uint16(5141), + 682: uint16(12121), + 683: uint16(12123), + 684: uint16(10772), + 685: uint16(5701), + 686: uint16(6672), + 687: uint16(10070), + 688: uint16(12122), + 689: uint16(6436), + 690: uint16(11298), + 691: uint16(12125), + 692: uint16(12290), + 693: uint16(12124), + 694: uint16(6435), + 695: uint16(7260), + 696: uint16(5656), + 697: uint16(12291), + 698: uint16(5422), + 699: uint16(12288), + 700: uint16(12289), + 701: uint16(9486), + 702: uint16(8283), + 703: uint16(5378), + 704: uint16(10796), + 705: uint16(12292), + 706: uint16(11548), + 707: uint16(12293), + 708: uint16(12296), + 709: uint16(12294), + 710: uint16(8237), + 711: uint16(12295), + 712: uint16(12297), + 713: uint16(12299), + 714: uint16(12298), + 715: uint16(10535), + 716: uint16(5142), + 717: uint16(12301), + 718: uint16(12302), + 719: uint16(4366), + 720: uint16(12300), + 721: uint16(6995), + 722: uint16(12305), + 723: uint16(12304), + 724: uint16(12303), + 725: uint16(12085), + 726: uint16(12306), + 727: uint16(7261), + 728: uint16(12307), + 729: uint16(11268), + 730: uint16(11064), + 731: uint16(12309), + 732: uint16(12308), + 733: uint16(12311), + 734: uint16(12310), + 735: uint16(12312), + 736: uint16(12313), + 737: uint16(3923), + 738: uint16(5908), + 739: uint16(5658), + 740: uint16(7195), + 741: uint16(8794), + 742: uint16(5379), + 743: uint16(8007), + 744: uint16(5974), + 745: uint16(6221), + 746: uint16(12315), + 747: uint16(11047), + 748: uint16(9253), + 749: uint16(6744), + 750: uint16(12314), + 751: uint16(12316), + 752: uint16(9277), + 753: uint16(4692), + 754: uint16(12317), + 755: uint16(9565), + 756: uint16(8211), + 757: uint16(12319), + 758: uint16(12320), + 759: uint16(9995), + 760: uint16(5975), + 761: uint16(11802), + 762: uint16(12321), + 763: uint16(5381), + 764: uint16(10523), + 765: uint16(8469), + 766: uint16(5456), + 767: uint16(9236), + 768: uint16(5714), + 769: uint16(12322), + 770: uint16(12323), + 771: uint16(9537), + 772: uint16(4158), + 773: uint16(12326), + 774: uint16(6492), + 775: uint16(12325), + 776: uint16(6437), + 777: uint16(12327), + 778: uint16(17741), + 779: uint16(12328), + 780: uint16(10784), + 781: uint16(12329), + 782: uint16(12330), + 783: uint16(12331), + 784: uint16(7496), + 785: uint16(6955), + 786: uint16(4870), + 787: uint16(12334), + 788: uint16(12332), + 789: uint16(11036), + 790: uint16(12333), + 791: uint16(10297), + 792: uint16(12335), + 793: uint16(12336), + 794: uint16(12337), + 795: uint16(9278), + 796: uint16(12341), + 797: uint16(12339), + 798: uint16(12340), + 799: uint16(12338), + 800: uint16(6466), + 801: uint16(12342), + 802: uint16(11081), + 803: uint16(11587), + 804: uint16(12343), + 805: uint16(7943), + 806: uint16(12344), + 807: uint16(7225), + 808: uint16(12345), + 809: uint16(8795), + 810: uint16(11550), + 811: uint16(9279), + 812: uint16(12580), + 813: uint16(12346), + 814: uint16(21252), + 815: uint16(5412), + 816: uint16(12347), + 817: uint16(10813), + 818: uint16(7239), + 819: uint16(8539), + 820: uint16(12349), + 821: uint16(9539), + 822: uint16(12350), + 823: uint16(12351), + 824: uint16(4621), + 825: uint16(12352), + 826: uint16(5382), + 827: uint16(9515), + 828: uint16(4185), + 829: uint16(7215), + 830: uint16(9984), + 831: uint16(12353), + 832: uint16(9280), + 833: uint16(7726), + 834: uint16(12354), + 835: uint16(10507), + 836: uint16(7993), + 837: uint16(4865), + 838: uint16(4872), + 839: uint16(12355), + 840: uint16(12357), + 841: uint16(5657), + 842: uint16(12356), + 843: uint16(11602), + 844: uint16(7240), + 845: uint16(10012), + 846: uint16(10539), + 847: uint16(12358), + 848: uint16(11351), + 849: uint16(12359), + 850: uint16(12360), + 851: uint16(9309), + 852: uint16(12361), + 853: uint16(7944), + 854: uint16(6493), + 855: uint16(5715), + 856: uint16(12362), + 857: uint16(6696), + 858: uint16(6222), + 859: uint16(9029), + 860: uint16(12364), + 861: uint16(8454), + 862: uint16(6478), + 863: uint16(12365), + 864: uint16(12366), + 865: uint16(8207), + 866: uint16(12363), + 867: uint16(12368), + 868: uint16(10773), + 869: uint16(6211), + 870: uint16(12367), + 871: uint16(5716), + 872: uint16(6461), + 873: uint16(9804), + 874: uint16(12371), + 875: uint16(12369), + 876: uint16(10330), + 877: uint16(7497), + 878: uint16(12378), + 879: uint16(4675), + 880: uint16(12372), + 881: uint16(12370), + 882: uint16(8238), + 883: uint16(12374), + 884: uint16(12373), + 885: uint16(4643), + 886: uint16(5695), + 887: uint16(12379), + 888: uint16(11532), + 889: uint16(12375), + 890: uint16(12380), + 891: uint16(12377), + 892: uint16(12376), + 893: uint16(11566), + 894: uint16(5976), + 895: uint16(4386), + 896: uint16(11603), + 897: uint16(7252), + 898: uint16(9271), + 899: uint16(6212), + 900: uint16(12545), + 901: uint16(12546), + 902: uint16(11588), + 903: uint16(11786), + 904: uint16(12548), + 905: uint16(5977), + 906: uint16(12547), + 907: uint16(4622), + 908: uint16(12549), + 909: uint16(10805), + 910: uint16(8987), + 911: uint16(11269), + 912: uint16(10552), + 913: uint16(12550), + 914: uint16(20276), + 915: uint16(9487), + 916: uint16(12551), + 917: uint16(4873), + 918: uint16(11026), + 919: uint16(7424), + 920: uint16(12552), + 921: uint16(10566), + 922: uint16(12556), + 923: uint16(7945), + 924: uint16(12553), + 925: uint16(5423), + 926: uint16(12554), + 927: uint16(4874), + 928: uint16(5645), + 929: uint16(12557), + 930: uint16(12558), + 931: uint16(12559), + 932: uint16(12560), + 933: uint16(6970), + 934: uint16(5978), + 935: uint16(11069), + 936: uint16(11079), + 937: uint16(9558), + 938: uint16(10576), + 939: uint16(12561), + 940: uint16(12562), + 941: uint16(12564), + 942: uint16(12566), + 943: uint16(12565), + 944: uint16(12567), + 945: uint16(4380), + 946: uint16(10795), + 947: uint16(6491), + 948: uint16(12568), + 949: uint16(8248), + 950: uint16(7425), + 951: uint16(5384), + 952: uint16(12569), + 953: uint16(10042), + 954: uint16(12570), + 955: uint16(12571), + 956: uint16(12572), + 957: uint16(12573), + 958: uint16(10243), + 959: uint16(5447), + 960: uint16(3908), + 961: uint16(9502), + 962: uint16(12574), + 963: uint16(7196), + 964: uint16(8008), + 965: uint16(12576), + 966: uint16(12575), + 967: uint16(7426), + 968: uint16(5952), + 969: uint16(12578), + 970: uint16(10013), + 971: uint16(12579), + 972: uint16(10043), + 973: uint16(8467), + 974: uint16(8525), + 975: uint16(5383), + 976: uint16(9549), + 977: uint16(8720), + 978: uint16(9805), + 979: uint16(10797), + 980: uint16(12581), + 981: uint16(8009), + 982: uint16(5652), + 983: uint16(12582), + 984: uint16(12583), + 985: uint16(4107), + 986: uint16(3924), + 987: uint16(4940), + 988: uint16(8455), + 989: uint16(5168), + 990: uint16(11344), + 991: uint16(12586), + 992: uint16(4374), + 993: uint16(12585), + 994: uint16(5385), + 995: uint16(12587), + 996: uint16(11088), + 997: uint16(12588), + 998: uint16(11569), + 999: uint16(5979), + 1000: uint16(5909), + 1001: uint16(12589), + 1002: uint16(12591), + 1003: uint16(12590), + 1004: uint16(7742), + 1005: uint16(4120), + 1006: uint16(4157), + 1007: uint16(12592), + 1008: uint16(12593), + 1009: uint16(5910), + 1010: uint16(12594), + 1011: uint16(5197), + 1012: uint16(6673), + 1013: uint16(12595), + 1014: uint16(10835), + 1015: uint16(6420), + 1016: uint16(5177), + 1017: uint16(11270), + 1018: uint16(8239), + 1019: uint16(10014), + 1020: uint16(7004), + 1021: uint16(7206), + 1022: uint16(6983), + 1023: uint16(6996), + 1024: uint16(7253), + 1025: uint16(10015), + 1026: uint16(12598), + 1027: uint16(4130), + 1028: uint16(8240), + 1029: uint16(5980), + 1030: uint16(5924), + 1031: uint16(5446), + 1032: uint16(12602), + 1033: uint16(8704), + 1034: uint16(8541), + 1035: uint16(5386), + 1036: uint16(7427), + 1037: uint16(12603), + 1038: uint16(12601), + 1039: uint16(4387), + 1040: uint16(8517), + 1041: uint16(6935), + 1042: uint16(6698), + 1043: uint16(4101), + 1044: uint16(4687), + 1045: uint16(6213), + 1046: uint16(6697), + 1047: uint16(12604), + 1048: uint16(12605), + 1049: uint16(5160), + 1050: uint16(4645), + 1051: uint16(6214), + 1052: uint16(5159), + 1053: uint16(9022), + 1054: uint16(4100), + 1055: uint16(9488), + 1056: uint16(11037), + 1057: uint16(6144), + 1058: uint16(11352), + 1059: uint16(9254), + 1060: uint16(5981), + 1061: uint16(5646), + 1062: uint16(12614), + 1063: uint16(5442), + 1064: uint16(10793), + 1065: uint16(10044), + 1066: uint16(12613), + 1067: uint16(4925), + 1068: uint16(12608), + 1069: uint16(12609), + 1070: uint16(12611), + 1071: uint16(12612), + 1072: uint16(5178), + 1073: uint16(7744), + 1074: uint16(10508), + 1075: uint16(12610), + 1076: uint16(12606), + 1077: uint16(5954), + 1078: uint16(12607), + 1079: uint16(11779), + 1080: uint16(10577), + 1081: uint16(9031), + 1082: uint16(5953), + 1083: uint16(6223), + 1084: uint16(12615), + 1085: uint16(9532), + 1086: uint16(12619), + 1087: uint16(7005), + 1088: uint16(6997), + 1089: uint16(12622), + 1090: uint16(12620), + 1091: uint16(11010), + 1092: uint16(12617), + 1093: uint16(12626), + 1094: uint16(12621), + 1095: uint16(12624), + 1096: uint16(5925), + 1097: uint16(11038), + 1098: uint16(12625), + 1099: uint16(12627), + 1100: uint16(12629), + 1101: uint16(6479), + 1102: uint16(11809), + 1103: uint16(12618), + 1104: uint16(12616), + 1105: uint16(12628), + 1106: uint16(12623), + 1107: uint16(12631), + 1108: uint16(12802), + 1109: uint16(12633), + 1110: uint16(12637), + 1111: uint16(12800), + 1112: uint16(12634), + 1113: uint16(12829), + 1114: uint16(6472), + 1115: uint16(4624), + 1116: uint16(12632), + 1117: uint16(12804), + 1118: uint16(3925), + 1119: uint16(12803), + 1120: uint16(3844), + 1121: uint16(10281), + 1122: uint16(12801), + 1123: uint16(12635), + 1124: uint16(12630), + 1125: uint16(12636), + 1126: uint16(6439), + 1127: uint16(12805), + 1128: uint16(3926), + 1129: uint16(12814), + 1130: uint16(12806), + 1131: uint16(12807), + 1132: uint16(7428), + 1133: uint16(10824), + 1134: uint16(12812), + 1135: uint16(12811), + 1136: uint16(9230), + 1137: uint16(12813), + 1138: uint16(12810), + 1139: uint16(4115), + 1140: uint16(6421), + 1141: uint16(7695), + 1142: uint16(12808), + 1143: uint16(9281), + 1144: uint16(12809), + 1145: uint16(3841), + 1146: uint16(12819), + 1147: uint16(11266), + 1148: uint16(7430), + 1149: uint16(12825), + 1150: uint16(12824), + 1151: uint16(12815), + 1152: uint16(8482), + 1153: uint16(12816), + 1154: uint16(8526), + 1155: uint16(12821), + 1156: uint16(7429), + 1157: uint16(12818), + 1158: uint16(11075), + 1159: uint16(5659), + 1160: uint16(12822), + 1161: uint16(12823), + 1162: uint16(12820), + 1163: uint16(12826), + 1164: uint16(12817), + 1165: uint16(12832), + 1166: uint16(12837), + 1167: uint16(12833), + 1168: uint16(12828), + 1169: uint16(12838), + 1170: uint16(8208), + 1171: uint16(12840), + 1172: uint16(6145), + 1173: uint16(12830), + 1174: uint16(8796), + 1175: uint16(12834), + 1176: uint16(12827), + 1177: uint16(4876), + 1178: uint16(4941), + 1179: uint16(4676), + 1180: uint16(12835), + 1181: uint16(12831), + 1182: uint16(5717), + 1183: uint16(12841), + 1184: uint16(12839), + 1185: uint16(8242), + 1186: uint16(5161), + 1187: uint16(5387), + 1188: uint16(12836), + 1189: uint16(5459), + 1190: uint16(4131), + 1191: uint16(12845), + 1192: uint16(12843), + 1193: uint16(13062), + 1194: uint16(12848), + 1195: uint16(12842), + 1196: uint16(12846), + 1197: uint16(12844), + 1198: uint16(6699), + 1199: uint16(12847), + 1200: uint16(12850), + 1201: uint16(12855), + 1202: uint16(12853), + 1203: uint16(12852), + 1204: uint16(8721), + 1205: uint16(4388), + 1206: uint16(12849), + 1207: uint16(12851), + 1208: uint16(7431), + 1209: uint16(4114), + 1210: uint16(12854), + 1211: uint16(4413), + 1212: uint16(12865), + 1213: uint16(7515), + 1214: uint16(12861), + 1215: uint16(12859), + 1216: uint16(12860), + 1217: uint16(12862), + 1218: uint16(4124), + 1219: uint16(8216), + 1220: uint16(12856), + 1221: uint16(12857), + 1222: uint16(4697), + 1223: uint16(12864), + 1224: uint16(4942), + 1225: uint16(12867), + 1226: uint16(12863), + 1227: uint16(12866), + 1228: uint16(10509), + 1229: uint16(9524), + 1230: uint16(10007), + 1231: uint16(12869), + 1232: uint16(12868), + 1233: uint16(4644), + 1234: uint16(12870), + 1235: uint16(12873), + 1236: uint16(12872), + 1237: uint16(12871), + 1238: uint16(9752), + 1239: uint16(12874), + 1240: uint16(12875), + 1241: uint16(12877), + 1242: uint16(12876), + 1243: uint16(12879), + 1244: uint16(12882), + 1245: uint16(12880), + 1246: uint16(12878), + 1247: uint16(12881), + 1248: uint16(12883), + 1249: uint16(12884), + 1250: uint16(12885), + 1251: uint16(12886), + 1252: uint16(12887), + 1253: uint16(12324), + 1254: uint16(7003), + 1255: uint16(6700), + 1256: uint16(4434), + 1257: uint16(3927), + 1258: uint16(8739), + 1259: uint16(12888), + 1260: uint16(6403), + 1261: uint16(3886), + 1262: uint16(7741), + 1263: uint16(12889), + 1264: uint16(5926), + 1265: uint16(6224), + 1266: uint16(12891), + 1267: uint16(12890), + 1268: uint16(10559), + 1269: uint16(12892), + 1270: uint16(13056), + 1271: uint16(12893), + 1272: uint16(13057), + 1273: uint16(13058), + 1274: uint16(5718), + 1275: uint16(4159), + 1276: uint16(13059), + 1277: uint16(13061), + 1278: uint16(13060), + 1279: uint16(13063), + 1280: uint16(9273), + 1281: uint16(13064), + 1282: uint16(3860), + 1283: uint16(6462), + 1284: uint16(5660), + 1285: uint16(8750), + 1286: uint16(13065), + 1287: uint16(13066), + 1288: uint16(13068), + 1289: uint16(13069), + 1290: uint16(6467), + 1291: uint16(5424), + 1292: uint16(10774), + 1293: uint16(13067), + 1294: uint16(13070), + 1295: uint16(6432), + 1296: uint16(6146), + 1297: uint16(13074), + 1298: uint16(6404), + 1299: uint16(8722), + 1300: uint16(13071), + 1301: uint16(9017), + 1302: uint16(13075), + 1303: uint16(7745), + 1304: uint16(13073), + 1305: uint16(13076), + 1306: uint16(5662), + 1307: uint16(13077), + 1308: uint16(13078), + 1309: uint16(6147), + 1310: uint16(4639), + 1311: uint16(13080), + 1312: uint16(13081), + 1313: uint16(13082), + 1314: uint16(13079), + 1315: uint16(13072), + 1316: uint16(13083), + 1317: uint16(13084), + 1318: uint16(10819), + 1319: uint16(7498), + 1320: uint16(13086), + 1321: uint16(13087), + 1322: uint16(13085), + 1323: uint16(13089), + 1324: uint16(9751), + 1325: uint16(3911), + 1326: uint16(10293), + 1327: uint16(13090), + 1328: uint16(7516), + 1329: uint16(6936), + 1330: uint16(9788), + 1331: uint16(4943), + 1332: uint16(6474), + 1333: uint16(10808), + 1334: uint16(9489), + 1335: uint16(5719), + 1336: uint16(8494), + 1337: uint16(13088), + 1338: uint16(13091), + 1339: uint16(8483), + 1340: uint16(13092), + 1341: uint16(13093), + 1342: uint16(13095), + 1343: uint16(9032), + 1344: uint16(4877), + 1345: uint16(21248), + 1346: uint16(4160), + 1347: uint16(10578), + 1348: uint16(7499), + 1349: uint16(9255), + 1350: uint16(6469), + 1351: uint16(13101), + 1352: uint16(10524), + 1353: uint16(11580), + 1354: uint16(4435), + 1355: uint16(13097), + 1356: uint16(8217), + 1357: uint16(13100), + 1358: uint16(9282), + 1359: uint16(9256), + 1360: uint16(9283), + 1361: uint16(10008), + 1362: uint16(9004), + 1363: uint16(6440), + 1364: uint16(13096), + 1365: uint16(4181), + 1366: uint16(9237), + 1367: uint16(13098), + 1368: uint16(13094), + 1369: uint16(7727), + 1370: uint16(13102), + 1371: uint16(7213), + 1372: uint16(5388), + 1373: uint16(13103), + 1374: uint16(10567), + 1375: uint16(8284), + 1376: uint16(8997), + 1377: uint16(13105), + 1378: uint16(10798), + 1379: uint16(13106), + 1380: uint16(13111), + 1381: uint16(10510), + 1382: uint16(13110), + 1383: uint16(13104), + 1384: uint16(13107), + 1385: uint16(13109), + 1386: uint16(6405), + 1387: uint16(10536), + 1388: uint16(13112), + 1389: uint16(8740), + 1390: uint16(4436), + 1391: uint16(7500), + 1392: uint16(13114), + 1393: uint16(13113), + 1394: uint16(6215), + 1395: uint16(13115), + 1396: uint16(13117), + 1397: uint16(13116), + 1398: uint16(13119), + 1399: uint16(13108), + 1400: uint16(13121), + 1401: uint16(13120), + 1402: uint16(13118), + 1403: uint16(6701), + 1404: uint16(7728), + 1405: uint16(8243), + 1406: uint16(13122), + 1407: uint16(7963), + 1408: uint16(3916), + 1409: uint16(9795), + 1410: uint16(9018), + 1411: uint16(13124), + 1412: uint16(13123), + 1413: uint16(13125), + 1414: uint16(13126), + 1415: uint16(13127), + 1416: uint16(13128), + 1417: uint16(10544), + 1418: uint16(13129), + 1419: uint16(4389), + 1420: uint16(13130), + 1421: uint16(11291), + 1422: uint16(4623), + 1423: uint16(12584), + 1424: uint16(7207), + 1425: uint16(8478), + 1426: uint16(13131), + 1427: uint16(11082), + 1428: uint16(11027), + 1429: uint16(13133), + 1430: uint16(8518), + 1431: uint16(9238), + 1432: uint16(8479), + 1433: uint16(10294), + 1434: uint16(13134), + 1435: uint16(13135), + 1436: uint16(4186), + 1437: uint16(6937), + 1438: uint16(13136), + 1439: uint16(3887), + 1440: uint16(13137), + 1441: uint16(13138), + 1442: uint16(4161), + 1443: uint16(4944), + 1444: uint16(9535), + 1445: uint16(10579), + 1446: uint16(13142), + 1447: uint16(8244), + 1448: uint16(13141), + 1449: uint16(5663), + 1450: uint16(10810), + 1451: uint16(13140), + 1452: uint16(9284), + 1453: uint16(13144), + 1454: uint16(13143), + 1455: uint16(13146), + 1456: uint16(13145), + 1457: uint16(4187), + 1458: uint16(13147), + 1459: uint16(7432), + 1460: uint16(13149), + 1461: uint16(8708), + 1462: uint16(13148), + 1463: uint16(10514), + 1464: uint16(7254), + 1465: uint16(9274), + 1466: uint16(13312), + 1467: uint16(6148), + 1468: uint16(13313), + 1469: uint16(9728), + 1470: uint16(10045), + 1471: uint16(11056), + 1472: uint16(9732), + 1473: uint16(13322), + 1474: uint16(5143), + 1475: uint16(11300), + 1476: uint16(11022), + 1477: uint16(13579), + 1478: uint16(13314), + 1479: uint16(13317), + 1480: uint16(8484), + 1481: uint16(10775), + 1482: uint16(9257), + 1483: uint16(13318), + 1484: uint16(10820), + 1485: uint16(6441), + 1486: uint16(7433), + 1487: uint16(13319), + 1488: uint16(6703), + 1489: uint16(6702), + 1490: uint16(3864), + 1491: uint16(5927), + 1492: uint16(7946), + 1493: uint16(3888), + 1494: uint16(13323), + 1495: uint16(13324), + 1496: uint16(13321), + 1497: uint16(4119), + 1498: uint16(4878), + 1499: uint16(13320), + 1500: uint16(11044), + 1501: uint16(10256), + 1502: uint16(3847), + 1503: uint16(3928), + 1504: uint16(6704), + 1505: uint16(3889), + 1506: uint16(3842), + 1507: uint16(13329), + 1508: uint16(13327), + 1509: uint16(11035), + 1510: uint16(13330), + 1511: uint16(13328), + 1512: uint16(13326), + 1513: uint16(7696), + 1514: uint16(13325), + 1515: uint16(10553), + 1516: uint16(5955), + 1517: uint16(13334), + 1518: uint16(13335), + 1519: uint16(7434), + 1520: uint16(13331), + 1521: uint16(11787), + 1522: uint16(9771), + 1523: uint16(13333), + 1524: uint16(6406), + 1525: uint16(13336), + 1526: uint16(10295), + 1527: uint16(13337), + 1528: uint16(13332), + 1529: uint16(11034), + 1530: uint16(9789), + 1531: uint16(13338), + 1532: uint16(10257), + 1533: uint16(13339), + 1534: uint16(13343), + 1535: uint16(13340), + 1536: uint16(4390), + 1537: uint16(13342), + 1538: uint16(6938), + 1539: uint16(13341), + 1540: uint16(5720), + 1541: uint16(13355), + 1542: uint16(13348), + 1543: uint16(13345), + 1544: uint16(8771), + 1545: uint16(13344), + 1546: uint16(13346), + 1547: uint16(13347), + 1548: uint16(13349), + 1549: uint16(13350), + 1550: uint16(4945), + 1551: uint16(13352), + 1552: uint16(13351), + 1553: uint16(13353), + 1554: uint16(7501), + 1555: uint16(13356), + 1556: uint16(9019), + 1557: uint16(4132), + 1558: uint16(13354), + 1559: uint16(13357), + 1560: uint16(13358), + 1561: uint16(13361), + 1562: uint16(13359), + 1563: uint16(13360), + 1564: uint16(6705), + 1565: uint16(13362), + 1566: uint16(6149), + 1567: uint16(13363), + 1568: uint16(6745), + 1569: uint16(8471), + 1570: uint16(13364), + 1571: uint16(13365), + 1572: uint16(6713), + 1573: uint16(6150), + 1574: uint16(11057), + 1575: uint16(5127), + 1576: uint16(5928), + 1577: uint16(13366), + 1578: uint16(4663), + 1579: uint16(13367), + 1580: uint16(8472), + 1581: uint16(13368), + 1582: uint16(13570), + 1583: uint16(13369), + 1584: uint16(13370), + 1585: uint16(13371), + 1586: uint16(13373), + 1587: uint16(13374), + 1588: uint16(13375), + 1589: uint16(8527), + 1590: uint16(4102), + 1591: uint16(6984), + 1592: uint16(3873), + 1593: uint16(8246), + 1594: uint16(4879), + 1595: uint16(6932), + 1596: uint16(6151), + 1597: uint16(9285), + 1598: uint16(7168), + 1599: uint16(4880), + 1600: uint16(8775), + 1601: uint16(9033), + 1602: uint16(3863), + 1603: uint16(5144), + 1604: uint16(10580), + 1605: uint16(6945), + 1606: uint16(5169), + 1607: uint16(8010), + 1608: uint16(6939), + 1609: uint16(11271), + 1610: uint16(13376), + 1611: uint16(5179), + 1612: uint16(6442), + 1613: uint16(4625), + 1614: uint16(4162), + 1615: uint16(7435), + 1616: uint16(4391), + 1617: uint16(13377), + 1618: uint16(11301), + 1619: uint16(7208), + 1620: uint16(6979), + 1621: uint16(13378), + 1622: uint16(4946), + 1623: uint16(9521), + 1624: uint16(11016), + 1625: uint16(13379), + 1626: uint16(13380), + 1627: uint16(10296), + 1628: uint16(13382), + 1629: uint16(4871), + 1630: uint16(5462), + 1631: uint16(13381), + 1632: uint16(4881), + 1633: uint16(7697), + 1634: uint16(13386), + 1635: uint16(6656), + 1636: uint16(4392), + 1637: uint16(13385), + 1638: uint16(13383), + 1639: uint16(13387), + 1640: uint16(13384), + 1641: uint16(9738), + 1642: uint16(15148), + 1643: uint16(7698), + 1644: uint16(13388), + 1645: uint16(11551), + 1646: uint16(13389), + 1647: uint16(13391), + 1648: uint16(8797), + 1649: uint16(13390), + 1650: uint16(7938), + 1651: uint16(6746), + 1652: uint16(8495), + 1653: uint16(6998), + 1654: uint16(10324), + 1655: uint16(8011), + 1656: uint16(6956), + 1657: uint16(13392), + 1658: uint16(7436), + 1659: uint16(13393), + 1660: uint16(13394), + 1661: uint16(3890), + 1662: uint16(8473), + 1663: uint16(7729), + 1664: uint16(13395), + 1665: uint16(9490), + 1666: uint16(7437), + 1667: uint16(7438), + 1668: uint16(13396), + 1669: uint16(8012), + 1670: uint16(7439), + 1671: uint16(13397), + 1672: uint16(13398), + 1673: uint16(11071), + 1674: uint16(13399), + 1675: uint16(5413), + 1676: uint16(7169), + 1677: uint16(13400), + 1678: uint16(13401), + 1679: uint16(6971), + 1680: uint16(7691), + 1681: uint16(9555), + 1682: uint16(7731), + 1683: uint16(10071), + 1684: uint16(9729), + 1685: uint16(5416), + 1686: uint16(13402), + 1687: uint16(5198), + 1688: uint16(13403), + 1689: uint16(5469), + 1690: uint16(9518), + 1691: uint16(4367), + 1692: uint16(6706), + 1693: uint16(13404), + 1694: uint16(13569), + 1695: uint16(13568), + 1696: uint16(5468), + 1697: uint16(13405), + 1698: uint16(9239), + 1699: uint16(8463), + 1700: uint16(9258), + 1701: uint16(6951), + 1702: uint16(8247), + 1703: uint16(11353), + 1704: uint16(13571), + 1705: uint16(13572), + 1706: uint16(9525), + 1707: uint16(6674), + 1708: uint16(13574), + 1709: uint16(13575), + 1710: uint16(13576), + 1711: uint16(4947), + 1712: uint16(13577), + 1713: uint16(13578), + 1714: uint16(4363), + 1715: uint16(8218), + 1716: uint16(4931), + 1717: uint16(13580), + 1718: uint16(11015), + 1719: uint16(8497), + 1720: uint16(4664), + 1721: uint16(13582), + 1722: uint16(13584), + 1723: uint16(4926), + 1724: uint16(13581), + 1725: uint16(13583), + 1726: uint16(13586), + 1727: uint16(13585), + 1728: uint16(13587), + 1729: uint16(13588), + 1730: uint16(9500), + 1731: uint16(5389), + 1732: uint16(4420), + 1733: uint16(13589), + 1734: uint16(13594), + 1735: uint16(13592), + 1736: uint16(10582), + 1737: uint16(10581), + 1738: uint16(9286), + 1739: uint16(13591), + 1740: uint16(7219), + 1741: uint16(13590), + 1742: uint16(7761), + 1743: uint16(13595), + 1744: uint16(6473), + 1745: uint16(13601), + 1746: uint16(13602), + 1747: uint16(13596), + 1748: uint16(4626), + 1749: uint16(13597), + 1750: uint16(13606), + 1751: uint16(13605), + 1752: uint16(13604), + 1753: uint16(13600), + 1754: uint16(13599), + 1755: uint16(13603), + 1756: uint16(10583), + 1757: uint16(13610), + 1758: uint16(13607), + 1759: uint16(13609), + 1760: uint16(11345), + 1761: uint16(13608), + 1762: uint16(13598), + 1763: uint16(7762), + 1764: uint16(13611), + 1765: uint16(6422), + 1766: uint16(13612), + 1767: uint16(13613), + 1768: uint16(13616), + 1769: uint16(13615), + 1770: uint16(13614), + 1771: uint16(9287), + 1772: uint16(13593), + 1773: uint16(13622), + 1774: uint16(13618), + 1775: uint16(13617), + 1776: uint16(13619), + 1777: uint16(13620), + 1778: uint16(13623), + 1779: uint16(11589), + 1780: uint16(13624), + 1781: uint16(13621), + 1782: uint16(13625), + 1783: uint16(4927), + 1784: uint16(13626), + 1785: uint16(13628), + 1786: uint16(13627), + 1787: uint16(13629), + 1788: uint16(13630), + 1789: uint16(8013), + 1790: uint16(7170), + 1791: uint16(7235), + 1792: uint16(8258), + 1793: uint16(6152), + 1794: uint16(6423), + 1795: uint16(6153), + 1796: uint16(5199), + 1797: uint16(13631), + 1798: uint16(6424), + 1799: uint16(5929), + 1800: uint16(13632), + 1801: uint16(11013), + 1802: uint16(9762), + 1803: uint16(13633), + 1804: uint16(6154), + 1805: uint16(4875), + 1806: uint16(8710), + 1807: uint16(5425), + 1808: uint16(6707), + 1809: uint16(10298), + 1810: uint16(10016), + 1811: uint16(13634), + 1812: uint16(4948), + 1813: uint16(13637), + 1814: uint16(8960), + 1815: uint16(13636), + 1816: uint16(13635), + 1817: uint16(13638), + 1818: uint16(9034), + 1819: uint16(7746), + 1820: uint16(6708), + 1821: uint16(7977), + 1822: uint16(8498), + 1823: uint16(5121), + 1824: uint16(8961), + 1825: uint16(13639), + 1826: uint16(13640), + 1827: uint16(7502), + 1828: uint16(10776), + 1829: uint16(13643), + 1830: uint16(13642), + 1831: uint16(13641), + 1832: uint16(10332), + 1833: uint16(13650), + 1834: uint16(10809), + 1835: uint16(13644), + 1836: uint16(13646), + 1837: uint16(10826), + 1838: uint16(13645), + 1839: uint16(13647), + 1840: uint16(9991), + 1841: uint16(13648), + 1842: uint16(10525), + 1843: uint16(13649), + 1844: uint16(4882), + 1845: uint16(10526), + 1846: uint16(9742), + 1847: uint16(13651), + 1848: uint16(13652), + 1849: uint16(6155), + 1850: uint16(4883), + 1851: uint16(13653), + 1852: uint16(5911), + 1853: uint16(11299), + 1854: uint16(11272), + 1855: uint16(4949), + 1856: uint16(13655), + 1857: uint16(8962), + 1858: uint16(6156), + 1859: uint16(7440), + 1860: uint16(10046), + 1861: uint16(7441), + 1862: uint16(7255), + 1863: uint16(9035), + 1864: uint16(10584), + 1865: uint16(9240), + 1866: uint16(6157), + 1867: uint16(10299), + 1868: uint16(13656), + 1869: uint16(9272), + 1870: uint16(6433), + 1871: uint16(5930), + 1872: uint16(9036), + 1873: uint16(3874), + 1874: uint16(7245), + 1875: uint16(6158), + 1876: uint16(11302), + 1877: uint16(13657), + 1878: uint16(13658), + 1879: uint16(9776), + 1880: uint16(13659), + 1881: uint16(11606), + 1882: uint16(11788), + 1883: uint16(13661), + 1884: uint16(13660), + 1885: uint16(4646), + 1886: uint16(13824), + 1887: uint16(13827), + 1888: uint16(13828), + 1889: uint16(13826), + 1890: uint16(10271), + 1891: uint16(7442), + 1892: uint16(13830), + 1893: uint16(13829), + 1894: uint16(13825), + 1895: uint16(13831), + 1896: uint16(13832), + 1897: uint16(13833), + 1898: uint16(13836), + 1899: uint16(13834), + 1900: uint16(13835), + 1901: uint16(13837), + 1902: uint16(4163), + 1903: uint16(9037), + 1904: uint16(13838), + 1905: uint16(5721), + 1906: uint16(4437), + 1907: uint16(9749), + 1908: uint16(13839), + 1909: uint16(9562), + 1910: uint16(10554), + 1911: uint16(13840), + 1912: uint16(11789), + 1913: uint16(13841), + 1914: uint16(10527), + 1915: uint16(13844), + 1916: uint16(12032), + 1917: uint16(12048), + 1918: uint16(6927), + 1919: uint16(9556), + 1920: uint16(13845), + 1921: uint16(5180), + 1922: uint16(8963), + 1923: uint16(3929), + 1924: uint16(13846), + 1925: uint16(10501), + 1926: uint16(6159), + 1927: uint16(8751), + 1928: uint16(9038), + 1929: uint16(11086), + 1930: uint16(5912), + 1931: uint16(5931), + 1932: uint16(13847), + 1933: uint16(13848), + 1934: uint16(13854), + 1935: uint16(6980), + 1936: uint16(8964), + 1937: uint16(5390), + 1938: uint16(13849), + 1939: uint16(10250), + 1940: uint16(8741), + 1941: uint16(13850), + 1942: uint16(13851), + 1943: uint16(5391), + 1944: uint16(13852), + 1945: uint16(13853), + 1946: uint16(13855), + 1947: uint16(9301), + 1948: uint16(13856), + 1949: uint16(13857), + 1950: uint16(13858), + 1951: uint16(13843), + 1952: uint16(13842), + 1953: uint16(13859), + 1954: uint16(5664), + 1955: uint16(10246), + 1956: uint16(6443), + 1957: uint16(10262), + 1958: uint16(8965), + 1959: uint16(10282), + 1960: uint16(13860), + 1961: uint16(7443), + 1962: uint16(4133), + 1963: uint16(13861), + 1964: uint16(13862), + 1965: uint16(11089), + 1966: uint16(10047), + 1967: uint16(13865), + 1968: uint16(4188), + 1969: uint16(7947), + 1970: uint16(13864), + 1971: uint16(13863), + 1972: uint16(5665), + 1973: uint16(8499), + 1974: uint16(13869), + 1975: uint16(13867), + 1976: uint16(13866), + 1977: uint16(11526), + 1978: uint16(5956), + 1979: uint16(7256), + 1980: uint16(13868), + 1981: uint16(9259), + 1982: uint16(7197), + 1983: uint16(9503), + 1984: uint16(13872), + 1985: uint16(13871), + 1986: uint16(13870), + 1987: uint16(13873), + 1988: uint16(5957), + 1989: uint16(13874), + 1990: uint16(10331), + 1991: uint16(7226), + 1992: uint16(13875), + 1993: uint16(10072), + 1994: uint16(9504), + 1995: uint16(8966), + 1996: uint16(9231), + 1997: uint16(13876), + 1998: uint16(5130), + 1999: uint16(7699), + 2000: uint16(10251), + 2001: uint16(4950), + 2002: uint16(9733), + 2003: uint16(13877), + 2004: uint16(6709), + 2005: uint16(10777), + 2006: uint16(10778), + 2007: uint16(4189), + 2008: uint16(13882), + 2009: uint16(8776), + 2010: uint16(13879), + 2011: uint16(4438), + 2012: uint16(14092), + 2013: uint16(13881), + 2014: uint16(9743), + 2015: uint16(13880), + 2016: uint16(13878), + 2017: uint16(6233), + 2018: uint16(13884), + 2019: uint16(13890), + 2020: uint16(13896), + 2021: uint16(13888), + 2022: uint16(9275), + 2023: uint16(13893), + 2024: uint16(10300), + 2025: uint16(13887), + 2026: uint16(13892), + 2027: uint16(11590), + 2028: uint16(6710), + 2029: uint16(8500), + 2030: uint16(13885), + 2031: uint16(5181), + 2032: uint16(13895), + 2033: uint16(7948), + 2034: uint16(4164), + 2035: uint16(13889), + 2036: uint16(4439), + 2037: uint16(13894), + 2038: uint16(5392), + 2039: uint16(13891), + 2040: uint16(13897), + 2041: uint16(13899), + 2042: uint16(13909), + 2043: uint16(13907), + 2044: uint16(13904), + 2045: uint16(13903), + 2046: uint16(11607), + 2047: uint16(13905), + 2048: uint16(5393), + 2049: uint16(6160), + 2050: uint16(7257), + 2051: uint16(13912), + 2052: uint16(13898), + 2053: uint16(13902), + 2054: uint16(13886), + 2055: uint16(4441), + 2056: uint16(13906), + 2057: uint16(13908), + 2058: uint16(8752), + 2059: uint16(6407), + 2060: uint16(4375), + 2061: uint16(13900), + 2062: uint16(13911), + 2063: uint16(13910), + 2064: uint16(5394), + 2065: uint16(8456), + 2066: uint16(4677), + 2067: uint16(5666), + 2068: uint16(13901), + 2069: uint16(13913), + 2070: uint16(13916), + 2071: uint16(14080), + 2072: uint16(6940), + 2073: uint16(14086), + 2074: uint16(9039), + 2075: uint16(13914), + 2076: uint16(14084), + 2077: uint16(4440), + 2078: uint16(14082), + 2079: uint16(14083), + 2080: uint16(13917), + 2081: uint16(14081), + 2082: uint16(5958), + 2083: uint16(11273), + 2084: uint16(4884), + 2085: uint16(4152), + 2086: uint16(14085), + 2087: uint16(9753), + 2088: uint16(3852), + 2089: uint16(10048), + 2090: uint16(13883), + 2091: uint16(14091), + 2092: uint16(14095), + 2093: uint16(11076), + 2094: uint16(14088), + 2095: uint16(9288), + 2096: uint16(14093), + 2097: uint16(7503), + 2098: uint16(14094), + 2099: uint16(9526), + 2100: uint16(11814), + 2101: uint16(14090), + 2102: uint16(14096), + 2103: uint16(6234), + 2104: uint16(7978), + 2105: uint16(3891), + 2106: uint16(14089), + 2107: uint16(14087), + 2108: uint16(8249), + 2109: uint16(13915), + 2110: uint16(6675), + 2111: uint16(8485), + 2112: uint16(14108), + 2113: uint16(8250), + 2114: uint16(14103), + 2115: uint16(14100), + 2116: uint16(14101), + 2117: uint16(6981), + 2118: uint16(14104), + 2119: uint16(14107), + 2120: uint16(14102), + 2121: uint16(7172), + 2122: uint16(14105), + 2123: uint16(14099), + 2124: uint16(11099), + 2125: uint16(11098), + 2126: uint16(14109), + 2127: uint16(14110), + 2128: uint16(3892), + 2129: uint16(14098), + 2130: uint16(5457), + 2131: uint16(3845), + 2132: uint16(4885), + 2133: uint16(14106), + 2134: uint16(14114), + 2135: uint16(14113), + 2136: uint16(14118), + 2137: uint16(14119), + 2138: uint16(14117), + 2139: uint16(14120), + 2140: uint16(14112), + 2141: uint16(14116), + 2142: uint16(14121), + 2143: uint16(14122), + 2144: uint16(14111), + 2145: uint16(6747), + 2146: uint16(14115), + 2147: uint16(8501), + 2148: uint16(6161), + 2149: uint16(14097), + 2150: uint16(7700), + 2151: uint16(14135), + 2152: uint16(10568), + 2153: uint16(14125), + 2154: uint16(14126), + 2155: uint16(14127), + 2156: uint16(14134), + 2157: uint16(14133), + 2158: uint16(10844), + 2159: uint16(4886), + 2160: uint16(14131), + 2161: uint16(5668), + 2162: uint16(4627), + 2163: uint16(14128), + 2164: uint16(11543), + 2165: uint16(14130), + 2166: uint16(3893), + 2167: uint16(14132), + 2168: uint16(14123), + 2169: uint16(14129), + 2170: uint16(14136), + 2171: uint16(5667), + 2172: uint16(14124), + 2173: uint16(11324), + 2174: uint16(11274), + 2175: uint16(14139), + 2176: uint16(14143), + 2177: uint16(8285), + 2178: uint16(11608), + 2179: uint16(14144), + 2180: uint16(14141), + 2181: uint16(14138), + 2182: uint16(14137), + 2183: uint16(14142), + 2184: uint16(10511), + 2185: uint16(9491), + 2186: uint16(5669), + 2187: uint16(14145), + 2188: uint16(14140), + 2189: uint16(14146), + 2190: uint16(5722), + 2191: uint16(4368), + 2192: uint16(14154), + 2193: uint16(4887), + 2194: uint16(14152), + 2195: uint16(14153), + 2196: uint16(6408), + 2197: uint16(14151), + 2198: uint16(14149), + 2199: uint16(14148), + 2200: uint16(14155), + 2201: uint16(14147), + 2202: uint16(14157), + 2203: uint16(4442), + 2204: uint16(14159), + 2205: uint16(14158), + 2206: uint16(8967), + 2207: uint16(14162), + 2208: uint16(14160), + 2209: uint16(14150), + 2210: uint16(5723), + 2211: uint16(14161), + 2212: uint16(14165), + 2213: uint16(14164), + 2214: uint16(14166), + 2215: uint16(14163), + 2216: uint16(14167), + 2217: uint16(14168), + 2218: uint16(14169), + 2219: uint16(10569), + 2220: uint16(14171), + 2221: uint16(14170), + 2222: uint16(7198), + 2223: uint16(7949), + 2224: uint16(4421), + 2225: uint16(4443), + 2226: uint16(14172), + 2227: uint16(3870), + 2228: uint16(7979), + 2229: uint16(14173), + 2230: uint16(19234), + 2231: uint16(14336), + 2232: uint16(5696), + 2233: uint16(14337), + 2234: uint16(8014), + 2235: uint16(14338), + 2236: uint16(14339), + 2237: uint16(5145), + 2238: uint16(14340), + 2239: uint16(14341), + 2240: uint16(14342), + 2241: uint16(8502), + 2242: uint16(5932), + 2243: uint16(11072), + 2244: uint16(10779), + 2245: uint16(7241), + 2246: uint16(14343), + 2247: uint16(8015), + 2248: uint16(19740), + 2249: uint16(10049), + 2250: uint16(6985), + 2251: uint16(6444), + 2252: uint16(14344), + 2253: uint16(8486), + 2254: uint16(10502), + 2255: uint16(8528), + 2256: uint16(14347), + 2257: uint16(14345), + 2258: uint16(14348), + 2259: uint16(14346), + 2260: uint16(14349), + 2261: uint16(10512), + 2262: uint16(3862), + 2263: uint16(10301), + 2264: uint16(10050), + 2265: uint16(14350), + 2266: uint16(14353), + 2267: uint16(7444), + 2268: uint16(5146), + 2269: uint16(14351), + 2270: uint16(14358), + 2271: uint16(7445), + 2272: uint16(14352), + 2273: uint16(9763), + 2274: uint16(11325), + 2275: uint16(14354), + 2276: uint16(14355), + 2277: uint16(14359), + 2278: uint16(9289), + 2279: uint16(14356), + 2280: uint16(6162), + 2281: uint16(7997), + 2282: uint16(14373), + 2283: uint16(10003), + 2284: uint16(8529), + 2285: uint16(10051), + 2286: uint16(14604), + 2287: uint16(10585), + 2288: uint16(9040), + 2289: uint16(10836), + 2290: uint16(14362), + 2291: uint16(4352), + 2292: uint16(8777), + 2293: uint16(14371), + 2294: uint16(8723), + 2295: uint16(14365), + 2296: uint16(14372), + 2297: uint16(14367), + 2298: uint16(14374), + 2299: uint16(14370), + 2300: uint16(14369), + 2301: uint16(9806), + 2302: uint16(14363), + 2303: uint16(4444), + 2304: uint16(14361), + 2305: uint16(5200), + 2306: uint16(8530), + 2307: uint16(14357), + 2308: uint16(14360), + 2309: uint16(6163), + 2310: uint16(7994), + 2311: uint16(7446), + 2312: uint16(14368), + 2313: uint16(9777), + 2314: uint16(5201), + 2315: uint16(4647), + 2316: uint16(4678), + 2317: uint16(7680), + 2318: uint16(14376), + 2319: uint16(14381), + 2320: uint16(14377), + 2321: uint16(5724), + 2322: uint16(14382), + 2323: uint16(6657), + 2324: uint16(6216), + 2325: uint16(7173), + 2326: uint16(14364), + 2327: uint16(6748), + 2328: uint16(14379), + 2329: uint16(6711), + 2330: uint16(14380), + 2331: uint16(3875), + 2332: uint16(14375), + 2333: uint16(8968), + 2334: uint16(5202), + 2335: uint16(5395), + 2336: uint16(14378), + 2337: uint16(3846), + 2338: uint16(6434), + 2339: uint16(7701), + 2340: uint16(9041), + 2341: uint16(10035), + 2342: uint16(14384), + 2343: uint16(8253), + 2344: uint16(8457), + 2345: uint16(6666), + 2346: uint16(14385), + 2347: uint16(14387), + 2348: uint16(14383), + 2349: uint16(10560), + 2350: uint16(8988), + 2351: uint16(8251), + 2352: uint16(10586), + 2353: uint16(6957), + 2354: uint16(14399), + 2355: uint16(14398), + 2356: uint16(7767), + 2357: uint16(5725), + 2358: uint16(14392), + 2359: uint16(7448), + 2360: uint16(9543), + 2361: uint16(9744), + 2362: uint16(14390), + 2363: uint16(8252), + 2364: uint16(6999), + 2365: uint16(14395), + 2366: uint16(7447), + 2367: uint16(14389), + 2368: uint16(14394), + 2369: uint16(9778), + 2370: uint16(14388), + 2371: uint16(5632), + 2372: uint16(4668), + 2373: uint16(14396), + 2374: uint16(11530), + 2375: uint16(6445), + 2376: uint16(8724), + 2377: uint16(14393), + 2378: uint16(7995), + 2379: uint16(6164), + 2380: uint16(7747), + 2381: uint16(4165), + 2382: uint16(8219), + 2383: uint16(14391), + 2384: uint16(5156), + 2385: uint16(5670), + 2386: uint16(9006), + 2387: uint16(14397), + 2388: uint16(8254), + 2389: uint16(14400), + 2390: uint16(14402), + 2391: uint16(8470), + 2392: uint16(14408), + 2393: uint16(14403), + 2394: uint16(14405), + 2395: uint16(10272), + 2396: uint16(9042), + 2397: uint16(14406), + 2398: uint16(11275), + 2399: uint16(11303), + 2400: uint16(4888), + 2401: uint16(3853), + 2402: uint16(14404), + 2403: uint16(14401), + 2404: uint16(4951), + 2405: uint16(4166), + 2406: uint16(14407), + 2407: uint16(11304), + 2408: uint16(14411), + 2409: uint16(8474), + 2410: uint16(14418), + 2411: uint16(14412), + 2412: uint16(14409), + 2413: uint16(14416), + 2414: uint16(14386), + 2415: uint16(14413), + 2416: uint16(14417), + 2417: uint16(10017), + 2418: uint16(9290), + 2419: uint16(14410), + 2420: uint16(14414), + 2421: uint16(5671), + 2422: uint16(6480), + 2423: uint16(7996), + 2424: uint16(14422), + 2425: uint16(9221), + 2426: uint16(14419), + 2427: uint16(10815), + 2428: uint16(14420), + 2429: uint16(14421), + 2430: uint16(11053), + 2431: uint16(7937), + 2432: uint16(5697), + 2433: uint16(14428), + 2434: uint16(6676), + 2435: uint16(14425), + 2436: uint16(14424), + 2437: uint16(9745), + 2438: uint16(9492), + 2439: uint16(9232), + 2440: uint16(14426), + 2441: uint16(14427), + 2442: uint16(10318), + 2443: uint16(9764), + 2444: uint16(6658), + 2445: uint16(8016), + 2446: uint16(10799), + 2447: uint16(4648), + 2448: uint16(14596), + 2449: uint16(14429), + 2450: uint16(11305), + 2451: uint16(14598), + 2452: uint16(14594), + 2453: uint16(14595), + 2454: uint16(8255), + 2455: uint16(14593), + 2456: uint16(14366), + 2457: uint16(14597), + 2458: uint16(14592), + 2459: uint16(14602), + 2460: uint16(14603), + 2461: uint16(9222), + 2462: uint16(14605), + 2463: uint16(6659), + 2464: uint16(14600), + 2465: uint16(5147), + 2466: uint16(14606), + 2467: uint16(14599), + 2468: uint16(14610), + 2469: uint16(14609), + 2470: uint16(14608), + 2471: uint16(14611), + 2472: uint16(14613), + 2473: uint16(7504), + 2474: uint16(14612), + 2475: uint16(14616), + 2476: uint16(14614), + 2477: uint16(14615), + 2478: uint16(14415), + 2479: uint16(14618), + 2480: uint16(14617), + 2481: uint16(14423), + 2482: uint16(14619), + 2483: uint16(14607), + 2484: uint16(6712), + 2485: uint16(14620), + 2486: uint16(14621), + 2487: uint16(14623), + 2488: uint16(14622), + 2489: uint16(14624), + 2490: uint16(4445), + 2491: uint16(6165), + 2492: uint16(10587), + 2493: uint16(7950), + 2494: uint16(5933), + 2495: uint16(14626), + 2496: uint16(14629), + 2497: uint16(10289), + 2498: uint16(5182), + 2499: uint16(14628), + 2500: uint16(14627), + 2501: uint16(9779), + 2502: uint16(14630), + 2503: uint16(5396), + 2504: uint16(14632), + 2505: uint16(14631), + 2506: uint16(4889), + 2507: uint16(6677), + 2508: uint16(9527), + 2509: uint16(5672), + 2510: uint16(7763), + 2511: uint16(14633), + 2512: uint16(7951), + 2513: uint16(9223), + 2514: uint16(10302), + 2515: uint16(14634), + 2516: uint16(14635), + 2517: uint16(14636), + 2518: uint16(10519), + 2519: uint16(13372), + 2520: uint16(7973), + 2521: uint16(10283), + 2522: uint16(6455), + 2523: uint16(10052), + 2524: uint16(10018), + 2525: uint16(9260), + 2526: uint16(11552), + 2527: uint16(14638), + 2528: uint16(6959), + 2529: uint16(14639), + 2530: uint16(3861), + 2531: uint16(5427), + 2532: uint16(7980), + 2533: uint16(10303), + 2534: uint16(14640), + 2535: uint16(6689), + 2536: uint16(8742), + 2537: uint16(6714), + 2538: uint16(7702), + 2539: uint16(14641), + 2540: uint16(10588), + 2541: uint16(4182), + 2542: uint16(6715), + 2543: uint16(14644), + 2544: uint16(14642), + 2545: uint16(14645), + 2546: uint16(11544), + 2547: uint16(14643), + 2548: uint16(8026), + 2549: uint16(14646), + 2550: uint16(8465), + 2551: uint16(14647), + 2552: uint16(4953), + 2553: uint16(14649), + 2554: uint16(14648), + 2555: uint16(14650), + 2556: uint16(14651), + 2557: uint16(4954), + 2558: uint16(9563), + 2559: uint16(8725), + 2560: uint16(5195), + 2561: uint16(6716), + 2562: uint16(8256), + 2563: uint16(7227), + 2564: uint16(3855), + 2565: uint16(14652), + 2566: uint16(4353), + 2567: uint16(14656), + 2568: uint16(6166), + 2569: uint16(14655), + 2570: uint16(6410), + 2571: uint16(7449), + 2572: uint16(14654), + 2573: uint16(7450), + 2574: uint16(11039), + 2575: uint16(6409), + 2576: uint16(3894), + 2577: uint16(7981), + 2578: uint16(14661), + 2579: uint16(7952), + 2580: uint16(4134), + 2581: uint16(7220), + 2582: uint16(10821), + 2583: uint16(6481), + 2584: uint16(7451), + 2585: uint16(7942), + 2586: uint16(14660), + 2587: uint16(14658), + 2588: uint16(14659), + 2589: uint16(8778), + 2590: uint16(14853), + 2591: uint16(14665), + 2592: uint16(6749), + 2593: uint16(6167), + 2594: uint16(14663), + 2595: uint16(14664), + 2596: uint16(7703), + 2597: uint16(14662), + 2598: uint16(6670), + 2599: uint16(14667), + 2600: uint16(14666), + 2601: uint16(14671), + 2602: uint16(14672), + 2603: uint16(14668), + 2604: uint16(4609), + 2605: uint16(14669), + 2606: uint16(14670), + 2607: uint16(10036), + 2608: uint16(10304), + 2609: uint16(5673), + 2610: uint16(14673), + 2611: uint16(7953), + 2612: uint16(7452), + 2613: uint16(8753), + 2614: uint16(5414), + 2615: uint16(14674), + 2616: uint16(14678), + 2617: uint16(4394), + 2618: uint16(14675), + 2619: uint16(14677), + 2620: uint16(14676), + 2621: uint16(7242), + 2622: uint16(8743), + 2623: uint16(3876), + 2624: uint16(14679), + 2625: uint16(14680), + 2626: uint16(8969), + 2627: uint16(11600), + 2628: uint16(6690), + 2629: uint16(10570), + 2630: uint16(10780), + 2631: uint16(14849), + 2632: uint16(14682), + 2633: uint16(14685), + 2634: uint16(14684), + 2635: uint16(14681), + 2636: uint16(14848), + 2637: uint16(9533), + 2638: uint16(14683), + 2639: uint16(14850), + 2640: uint16(7243), + 2641: uint16(14851), + 2642: uint16(11306), + 2643: uint16(9815), + 2644: uint16(14852), + 2645: uint16(14854), + 2646: uint16(14855), + 2647: uint16(14856), + 2648: uint16(5417), + 2649: uint16(4135), + 2650: uint16(6168), + 2651: uint16(14857), + 2652: uint16(14858), + 2653: uint16(7248), + 2654: uint16(8257), + 2655: uint16(12599), + 2656: uint16(8221), + 2657: uint16(8220), + 2658: uint16(8503), + 2659: uint16(6438), + 2660: uint16(12113), + 2661: uint16(5709), + 2662: uint16(11276), + 2663: uint16(10589), + 2664: uint16(10333), + 2665: uint16(14859), + 2666: uint16(6482), + 2667: uint16(8990), + 2668: uint16(14860), + 2669: uint16(11790), + 2670: uint16(10781), + 2671: uint16(8970), + 2672: uint16(14861), + 2673: uint16(4955), + 2674: uint16(14862), + 2675: uint16(14863), + 2676: uint16(11065), + 2677: uint16(11011), + 2678: uint16(10837), + 2679: uint16(10811), + 2680: uint16(6660), + 2681: uint16(14865), + 2682: uint16(6986), + 2683: uint16(10800), + 2684: uint16(14867), + 2685: uint16(14870), + 2686: uint16(14869), + 2687: uint16(4952), + 2688: uint16(5183), + 2689: uint16(14866), + 2690: uint16(14868), + 2691: uint16(14871), + 2692: uint16(7768), + 2693: uint16(11354), + 2694: uint16(3880), + 2695: uint16(6463), + 2696: uint16(8475), + 2697: uint16(6972), + 2698: uint16(7506), + 2699: uint16(14874), + 2700: uint16(9261), + 2701: uint16(14872), + 2702: uint16(8458), + 2703: uint16(14873), + 2704: uint16(7505), + 2705: uint16(11068), + 2706: uint16(14875), + 2707: uint16(14876), + 2708: uint16(11335), + 2709: uint16(14881), + 2710: uint16(6169), + 2711: uint16(9780), + 2712: uint16(14878), + 2713: uint16(9291), + 2714: uint16(14653), + 2715: uint16(14657), + 2716: uint16(5166), + 2717: uint16(9766), + 2718: uint16(14880), + 2719: uint16(7453), + 2720: uint16(10019), + 2721: uint16(14886), + 2722: uint16(10073), + 2723: uint16(14877), + 2724: uint16(14883), + 2725: uint16(14882), + 2726: uint16(7982), + 2727: uint16(10828), + 2728: uint16(11570), + 2729: uint16(10822), + 2730: uint16(4395), + 2731: uint16(6717), + 2732: uint16(11815), + 2733: uint16(14885), + 2734: uint16(7764), + 2735: uint16(14884), + 2736: uint16(14879), + 2737: uint16(5934), + 2738: uint16(14891), + 2739: uint16(14889), + 2740: uint16(4396), + 2741: uint16(14887), + 2742: uint16(14893), + 2743: uint16(14899), + 2744: uint16(8487), + 2745: uint16(10528), + 2746: uint16(14901), + 2747: uint16(10241), + 2748: uint16(14900), + 2749: uint16(9807), + 2750: uint16(10782), + 2751: uint16(4890), + 2752: uint16(8022), + 2753: uint16(7199), + 2754: uint16(9010), + 2755: uint16(11277), + 2756: uint16(14896), + 2757: uint16(14895), + 2758: uint16(14897), + 2759: uint16(14894), + 2760: uint16(14902), + 2761: uint16(14892), + 2762: uint16(14890), + 2763: uint16(14898), + 2764: uint16(14888), + 2765: uint16(8779), + 2766: uint16(11095), + 2767: uint16(6949), + 2768: uint16(6483), + 2769: uint16(6425), + 2770: uint16(10830), + 2771: uint16(4640), + 2772: uint16(9005), + 2773: uint16(9513), + 2774: uint16(4136), + 2775: uint16(8017), + 2776: uint16(7955), + 2777: uint16(5641), + 2778: uint16(14904), + 2779: uint16(6170), + 2780: uint16(4699), + 2781: uint16(14906), + 2782: uint16(4691), + 2783: uint16(14912), + 2784: uint16(14909), + 2785: uint16(8018), + 2786: uint16(4650), + 2787: uint16(6411), + 2788: uint16(4649), + 2789: uint16(6446), + 2790: uint16(14907), + 2791: uint16(5700), + 2792: uint16(5674), + 2793: uint16(9292), + 2794: uint16(14905), + 2795: uint16(3877), + 2796: uint16(14908), + 2797: uint16(14910), + 2798: uint16(5420), + 2799: uint16(5643), + 2800: uint16(4891), + 2801: uint16(5162), + 2802: uint16(14913), + 2803: uint16(6488), + 2804: uint16(10832), + 2805: uint16(6678), + 2806: uint16(14914), + 2807: uint16(10255), + 2808: uint16(14926), + 2809: uint16(4370), + 2810: uint16(14915), + 2811: uint16(14932), + 2812: uint16(14916), + 2813: uint16(11553), + 2814: uint16(14923), + 2815: uint16(9790), + 2816: uint16(14931), + 2817: uint16(14918), + 2818: uint16(3859), + 2819: uint16(14920), + 2820: uint16(6171), + 2821: uint16(14922), + 2822: uint16(14921), + 2823: uint16(14917), + 2824: uint16(14928), + 2825: uint16(7454), + 2826: uint16(13132), + 2827: uint16(5959), + 2828: uint16(11355), + 2829: uint16(14919), + 2830: uint16(9043), + 2831: uint16(4610), + 2832: uint16(6412), + 2833: uint16(14911), + 2834: uint16(14927), + 2835: uint16(4672), + 2836: uint16(14925), + 2837: uint16(14929), + 2838: uint16(9293), + 2839: uint16(4957), + 2840: uint16(15121), + 2841: uint16(11048), + 2842: uint16(14934), + 2843: uint16(4956), + 2844: uint16(14941), + 2845: uint16(10783), + 2846: uint16(15104), + 2847: uint16(15106), + 2848: uint16(15110), + 2849: uint16(14936), + 2850: uint16(8713), + 2851: uint16(9294), + 2852: uint16(15114), + 2853: uint16(14939), + 2854: uint16(15111), + 2855: uint16(15105), + 2856: uint16(7704), + 2857: uint16(15115), + 2858: uint16(7954), + 2859: uint16(15113), + 2860: uint16(4892), + 2861: uint16(11823), + 2862: uint16(14933), + 2863: uint16(15109), + 2864: uint16(3895), + 2865: uint16(14935), + 2866: uint16(11033), + 2867: uint16(14940), + 2868: uint16(7681), + 2869: uint16(8998), + 2870: uint16(14930), + 2871: uint16(15108), + 2872: uint16(7769), + 2873: uint16(15118), + 2874: uint16(4688), + 2875: uint16(5888), + 2876: uint16(15120), + 2877: uint16(14937), + 2878: uint16(15119), + 2879: uint16(15112), + 2880: uint16(14938), + 2881: uint16(15116), + 2882: uint16(15117), + 2883: uint16(15134), + 2884: uint16(9517), + 2885: uint16(15107), + 2886: uint16(15130), + 2887: uint16(15132), + 2888: uint16(9015), + 2889: uint16(11307), + 2890: uint16(10325), + 2891: uint16(15127), + 2892: uint16(8489), + 2893: uint16(15133), + 2894: uint16(8222), + 2895: uint16(15124), + 2896: uint16(15137), + 2897: uint16(15136), + 2898: uint16(9550), + 2899: uint16(15135), + 2900: uint16(9545), + 2901: uint16(15139), + 2902: uint16(15126), + 2903: uint16(5415), + 2904: uint16(15129), + 2905: uint16(7228), + 2906: uint16(9791), + 2907: uint16(15131), + 2908: uint16(5418), + 2909: uint16(15123), + 2910: uint16(15125), + 2911: uint16(15122), + 2912: uint16(11791), + 2913: uint16(4665), + 2914: uint16(15128), + 2915: uint16(15138), + 2916: uint16(4628), + 2917: uint16(6470), + 2918: uint16(4156), + 2919: uint16(15155), + 2920: uint16(11792), + 2921: uint16(15158), + 2922: uint16(7705), + 2923: uint16(15157), + 2924: uint16(15156), + 2925: uint16(15153), + 2926: uint16(15141), + 2927: uint16(15170), + 2928: uint16(15140), + 2929: uint16(15159), + 2930: uint16(15151), + 2931: uint16(15146), + 2932: uint16(15143), + 2933: uint16(15144), + 2934: uint16(15152), + 2935: uint16(21249), + 2936: uint16(15149), + 2937: uint16(6172), + 2938: uint16(8999), + 2939: uint16(8259), + 2940: uint16(15147), + 2941: uint16(15142), + 2942: uint16(15145), + 2943: uint16(11308), + 2944: uint16(10825), + 2945: uint16(15150), + 2946: uint16(15160), + 2947: uint16(15168), + 2948: uint16(15161), + 2949: uint16(15174), + 2950: uint16(15172), + 2951: uint16(15167), + 2952: uint16(15166), + 2953: uint16(9007), + 2954: uint16(8260), + 2955: uint16(15164), + 2956: uint16(15162), + 2957: uint16(15169), + 2958: uint16(15175), + 2959: uint16(10068), + 2960: uint16(15181), + 2961: uint16(15176), + 2962: uint16(15179), + 2963: uint16(15173), + 2964: uint16(8787), + 2965: uint16(10263), + 2966: uint16(15163), + 2967: uint16(15171), + 2968: uint16(7455), + 2969: uint16(11054), + 2970: uint16(15191), + 2971: uint16(15178), + 2972: uint16(5889), + 2973: uint16(4354), + 2974: uint16(4670), + 2975: uint16(15154), + 2976: uint16(7456), + 2977: uint16(15183), + 2978: uint16(15190), + 2979: uint16(7000), + 2980: uint16(4689), + 2981: uint16(8717), + 2982: uint16(15180), + 2983: uint16(15185), + 2984: uint16(15189), + 2985: uint16(5397), + 2986: uint16(5163), + 2987: uint16(15187), + 2988: uint16(5120), + 2989: uint16(9514), + 2990: uint16(15186), + 2991: uint16(15188), + 2992: uint16(15182), + 2993: uint16(15184), + 2994: uint16(4671), + 2995: uint16(8744), + 2996: uint16(15195), + 2997: uint16(15193), + 2998: uint16(5960), + 2999: uint16(15192), + 3000: uint16(15360), + 3001: uint16(14903), + 3002: uint16(15194), + 3003: uint16(15196), + 3004: uint16(15197), + 3005: uint16(15371), + 3006: uint16(15367), + 3007: uint16(14924), + 3008: uint16(15366), + 3009: uint16(15365), + 3010: uint16(15362), + 3011: uint16(15177), + 3012: uint16(15364), + 3013: uint16(15363), + 3014: uint16(15369), + 3015: uint16(11781), + 3016: uint16(15372), + 3017: uint16(5466), + 3018: uint16(15368), + 3019: uint16(15370), + 3020: uint16(9990), + 3021: uint16(15373), + 3022: uint16(15377), + 3023: uint16(15374), + 3024: uint16(11346), + 3025: uint16(15375), + 3026: uint16(15165), + 3027: uint16(15378), + 3028: uint16(15379), + 3029: uint16(4116), + 3030: uint16(15381), + 3031: uint16(5702), + 3032: uint16(6912), + 3033: uint16(5428), + 3034: uint16(4355), + 3035: uint16(11326), + 3036: uint16(15383), + 3037: uint16(15382), + 3038: uint16(15385), + 3039: uint16(5148), + 3040: uint16(5429), + 3041: uint16(4893), + 3042: uint16(15388), + 3043: uint16(15387), + 3044: uint16(15389), + 3045: uint16(4397), + 3046: uint16(8726), + 3047: uint16(15390), + 3048: uint16(4894), + 3049: uint16(15392), + 3050: uint16(15391), + 3051: uint16(15393), + 3052: uint16(15394), + 3053: uint16(15395), + 3054: uint16(6718), + 3055: uint16(7956), + 3056: uint16(6400), + 3057: uint16(10319), + 3058: uint16(10561), + 3059: uint16(11811), + 3060: uint16(6740), + 3061: uint16(6447), + 3062: uint16(11601), + 3063: uint16(15396), + 3064: uint16(15397), + 3065: uint16(6719), + 3066: uint16(15398), + 3067: uint16(15399), + 3068: uint16(15401), + 3069: uint16(15400), + 3070: uint16(10807), + 3071: uint16(7229), + 3072: uint16(6987), + 3073: uint16(6691), + 3074: uint16(15402), + 3075: uint16(15404), + 3076: uint16(7682), + 3077: uint16(15403), + 3078: uint16(15405), + 3079: uint16(15406), + 3080: uint16(15407), + 3081: uint16(15408), + 3082: uint16(15409), + 3083: uint16(15411), + 3084: uint16(15410), + 3085: uint16(15412), + 3086: uint16(4356), + 3087: uint16(8745), + 3088: uint16(15413), + 3089: uint16(6661), + 3090: uint16(4651), + 3091: uint16(15414), + 3092: uint16(9249), + 3093: uint16(13099), + 3094: uint16(5122), + 3095: uint16(15415), + 3096: uint16(15416), + 3097: uint16(10571), + 3098: uint16(10823), + 3099: uint16(9510), + 3100: uint16(15417), + 3101: uint16(10053), + 3102: uint16(10074), + 3103: uint16(11058), + 3104: uint16(15418), + 3105: uint16(15420), + 3106: uint16(15419), + 3107: uint16(15422), + 3108: uint16(15421), + 3109: uint16(15424), + 3110: uint16(6720), + 3111: uint16(11024), + 3112: uint16(15425), + 3113: uint16(15426), + 3114: uint16(5123), + 3115: uint16(15427), + 3116: uint16(15429), + 3117: uint16(15428), + 3118: uint16(7748), + 3119: uint16(10264), + 3120: uint16(4137), + 3121: uint16(10020), + 3122: uint16(9044), + 3123: uint16(7200), + 3124: uint16(5184), + 3125: uint16(10021), + 3126: uint16(6925), + 3127: uint16(15431), + 3128: uint16(4895), + 3129: uint16(4183), + 3130: uint16(9553), + 3131: uint16(15430), + 3132: uint16(6173), + 3133: uint16(8754), + 3134: uint16(15432), + 3135: uint16(15440), + 3136: uint16(15433), + 3137: uint16(8480), + 3138: uint16(5185), + 3139: uint16(15441), + 3140: uint16(5703), + 3141: uint16(5124), + 3142: uint16(15439), + 3143: uint16(15437), + 3144: uint16(15434), + 3145: uint16(11327), + 3146: uint16(8991), + 3147: uint16(9528), + 3148: uint16(15435), + 3149: uint16(15443), + 3150: uint16(15442), + 3151: uint16(5634), + 3152: uint16(4364), + 3153: uint16(6426), + 3154: uint16(15436), + 3155: uint16(15438), + 3156: uint16(10806), + 3157: uint16(8531), + 3158: uint16(10838), + 3159: uint16(15451), + 3160: uint16(15452), + 3161: uint16(4398), + 3162: uint16(10503), + 3163: uint16(11100), + 3164: uint16(15616), + 3165: uint16(6914), + 3166: uint16(7457), + 3167: uint16(15447), + 3168: uint16(15453), + 3169: uint16(4167), + 3170: uint16(5398), + 3171: uint16(15444), + 3172: uint16(15449), + 3173: uint16(8019), + 3174: uint16(9808), + 3175: uint16(10054), + 3176: uint16(15446), + 3177: uint16(10752), + 3178: uint16(15448), + 3179: uint16(15619), + 3180: uint16(15617), + 3181: uint16(15450), + 3182: uint16(10753), + 3183: uint16(9767), + 3184: uint16(5186), + 3185: uint16(9220), + 3186: uint16(8780), + 3187: uint16(15620), + 3188: uint16(15618), + 3189: uint16(8504), + 3190: uint16(15445), + 3191: uint16(4138), + 3192: uint16(11309), + 3193: uint16(15631), + 3194: uint16(15630), + 3195: uint16(8021), + 3196: uint16(15627), + 3197: uint16(11339), + 3198: uint16(9493), + 3199: uint16(15621), + 3200: uint16(8996), + 3201: uint16(4139), + 3202: uint16(6174), + 3203: uint16(15624), + 3204: uint16(7174), + 3205: uint16(15629), + 3206: uint16(15628), + 3207: uint16(15623), + 3208: uint16(15626), + 3209: uint16(4679), + 3210: uint16(15625), + 3211: uint16(9768), + 3212: uint16(11533), + 3213: uint16(7507), + 3214: uint16(8020), + 3215: uint16(15637), + 3216: uint16(15635), + 3217: uint16(10284), + 3218: uint16(15632), + 3219: uint16(15634), + 3220: uint16(4121), + 3221: uint16(6175), + 3222: uint16(11793), + 3223: uint16(4636), + 3224: uint16(10305), + 3225: uint16(11328), + 3226: uint16(4611), + 3227: uint16(7706), + 3228: uint16(15636), + 3229: uint16(15641), + 3230: uint16(7458), + 3231: uint16(11279), + 3232: uint16(15638), + 3233: uint16(15633), + 3234: uint16(15639), + 3235: uint16(11581), + 3236: uint16(9298), + 3237: uint16(9505), + 3238: uint16(4629), + 3239: uint16(4148), + 3240: uint16(15645), + 3241: uint16(15648), + 3242: uint16(11554), + 3243: uint16(11331), + 3244: uint16(15655), + 3245: uint16(15649), + 3246: uint16(15646), + 3247: uint16(11571), + 3248: uint16(15652), + 3249: uint16(7209), + 3250: uint16(15654), + 3251: uint16(15659), + 3252: uint16(9296), + 3253: uint16(15657), + 3254: uint16(15651), + 3255: uint16(8727), + 3256: uint16(15658), + 3257: uint16(15647), + 3258: uint16(15653), + 3259: uint16(15660), + 3260: uint16(3931), + 3261: uint16(15650), + 3262: uint16(15661), + 3263: uint16(7707), + 3264: uint16(7230), + 3265: uint16(10500), + 3266: uint16(6413), + 3267: uint16(15642), + 3268: uint16(15656), + 3269: uint16(9241), + 3270: uint16(7957), + 3271: uint16(4680), + 3272: uint16(6448), + 3273: uint16(7459), + 3274: uint16(15644), + 3275: uint16(7201), + 3276: uint16(5675), + 3277: uint16(15643), + 3278: uint16(15665), + 3279: uint16(7244), + 3280: uint16(5913), + 3281: uint16(15680), + 3282: uint16(15674), + 3283: uint16(5203), + 3284: uint16(9262), + 3285: uint16(15669), + 3286: uint16(15678), + 3287: uint16(3854), + 3288: uint16(4113), + 3289: uint16(4376), + 3290: uint16(15671), + 3291: uint16(8459), + 3292: uint16(15662), + 3293: uint16(15664), + 3294: uint16(6176), + 3295: uint16(15681), + 3296: uint16(15676), + 3297: uint16(15668), + 3298: uint16(15675), + 3299: uint16(11018), + 3300: uint16(15673), + 3301: uint16(15677), + 3302: uint16(5935), + 3303: uint16(7460), + 3304: uint16(8728), + 3305: uint16(15667), + 3306: uint16(11278), + 3307: uint16(15670), + 3308: uint16(15663), + 3309: uint16(9297), + 3310: uint16(15666), + 3311: uint16(15672), + 3312: uint16(11824), + 3313: uint16(6941), + 3314: uint16(10845), + 3315: uint16(15682), + 3316: uint16(9997), + 3317: uint16(15694), + 3318: uint16(5914), + 3319: uint16(7231), + 3320: uint16(15684), + 3321: uint16(11534), + 3322: uint16(6177), + 3323: uint16(15697), + 3324: uint16(3917), + 3325: uint16(15695), + 3326: uint16(15683), + 3327: uint16(15689), + 3328: uint16(15691), + 3329: uint16(11310), + 3330: uint16(15686), + 3331: uint16(9229), + 3332: uint16(15688), + 3333: uint16(15696), + 3334: uint16(15690), + 3335: uint16(11046), + 3336: uint16(15685), + 3337: uint16(6913), + 3338: uint16(15709), + 3339: uint16(4681), + 3340: uint16(15687), + 3341: uint16(15692), + 3342: uint16(15693), + 3343: uint16(8523), + 3344: uint16(8505), + 3345: uint16(15701), + 3346: uint16(15707), + 3347: uint16(15705), + 3348: uint16(9224), + 3349: uint16(15874), + 3350: uint16(15702), + 3351: uint16(15703), + 3352: uint16(15679), + 3353: uint16(5208), + 3354: uint16(10265), + 3355: uint16(6942), + 3356: uint16(6230), + 3357: uint16(11794), + 3358: uint16(15699), + 3359: uint16(15873), + 3360: uint16(4168), + 3361: uint16(8261), + 3362: uint16(9816), + 3363: uint16(4896), + 3364: uint16(11609), + 3365: uint16(11008), + 3366: uint16(9009), + 3367: uint16(15706), + 3368: uint16(15708), + 3369: uint16(8209), + 3370: uint16(15872), + 3371: uint16(15704), + 3372: uint16(15698), + 3373: uint16(4898), + 3374: uint16(5704), + 3375: uint16(15886), + 3376: uint16(15881), + 3377: uint16(8023), + 3378: uint16(4674), + 3379: uint16(7232), + 3380: uint16(15890), + 3381: uint16(15883), + 3382: uint16(8971), + 3383: uint16(15880), + 3384: uint16(9016), + 3385: uint16(15915), + 3386: uint16(15877), + 3387: uint16(15876), + 3388: uint16(15885), + 3389: uint16(15879), + 3390: uint16(15878), + 3391: uint16(15884), + 3392: uint16(7936), + 3393: uint16(15875), + 3394: uint16(15887), + 3395: uint16(15888), + 3396: uint16(4897), + 3397: uint16(15893), + 3398: uint16(15892), + 3399: uint16(15894), + 3400: uint16(15897), + 3401: uint16(9250), + 3402: uint16(15891), + 3403: uint16(15895), + 3404: uint16(5698), + 3405: uint16(8536), + 3406: uint16(15889), + 3407: uint16(9754), + 3408: uint16(15896), + 3409: uint16(15901), + 3410: uint16(15899), + 3411: uint16(15902), + 3412: uint16(15905), + 3413: uint16(15898), + 3414: uint16(6217), + 3415: uint16(9735), + 3416: uint16(15640), + 3417: uint16(11347), + 3418: uint16(15900), + 3419: uint16(15904), + 3420: uint16(8532), + 3421: uint16(15903), + 3422: uint16(15882), + 3423: uint16(20040), + 3424: uint16(15908), + 3425: uint16(15912), + 3426: uint16(15910), + 3427: uint16(15906), + 3428: uint16(15907), + 3429: uint16(15911), + 3430: uint16(15909), + 3431: uint16(10285), + 3432: uint16(15917), + 3433: uint16(15914), + 3434: uint16(15913), + 3435: uint16(15916), + 3436: uint16(9523), + 3437: uint16(15918), + 3438: uint16(8788), + 3439: uint16(8524), + 3440: uint16(7940), + 3441: uint16(15919), + 3442: uint16(15921), + 3443: uint16(15920), + 3444: uint16(15700), + 3445: uint16(15922), + 3446: uint16(9542), + 3447: uint16(15923), + 3448: uint16(4399), + 3449: uint16(9299), + 3450: uint16(4612), + 3451: uint16(5187), + 3452: uint16(6973), + 3453: uint16(6449), + 3454: uint16(11782), + 3455: uint16(7749), + 3456: uint16(4169), + 3457: uint16(15925), + 3458: uint16(15924), + 3459: uint16(15928), + 3460: uint16(8729), + 3461: uint16(15931), + 3462: uint16(15926), + 3463: uint16(15930), + 3464: uint16(15929), + 3465: uint16(9247), + 3466: uint16(3896), + 3467: uint16(11604), + 3468: uint16(15933), + 3469: uint16(4103), + 3470: uint16(15935), + 3471: uint16(15934), + 3472: uint16(15932), + 3473: uint16(15927), + 3474: uint16(10754), + 3475: uint16(15937), + 3476: uint16(15936), + 3477: uint16(4170), + 3478: uint16(15939), + 3479: uint16(10513), + 3480: uint16(15938), + 3481: uint16(11028), + 3482: uint16(7462), + 3483: uint16(8210), + 3484: uint16(7461), + 3485: uint16(11610), + 3486: uint16(15945), + 3487: uint16(8024), + 3488: uint16(15941), + 3489: uint16(15946), + 3490: uint16(4171), + 3491: uint16(15944), + 3492: uint16(9792), + 3493: uint16(15940), + 3494: uint16(15943), + 3495: uint16(7463), + 3496: uint16(10032), + 3497: uint16(15947), + 3498: uint16(6960), + 3499: uint16(8025), + 3500: uint16(15950), + 3501: uint16(15942), + 3502: uint16(5638), + 3503: uint16(15948), + 3504: uint16(11311), + 3505: uint16(15951), + 3506: uint16(21253), + 3507: uint16(7214), + 3508: uint16(15952), + 3509: uint16(15953), + 3510: uint16(9741), + 3511: uint16(15955), + 3512: uint16(15956), + 3513: uint16(9746), + 3514: uint16(9300), + 3515: uint16(15958), + 3516: uint16(15960), + 3517: uint16(11572), + 3518: uint16(15957), + 3519: uint16(15959), + 3520: uint16(4172), + 3521: uint16(15954), + 3522: uint16(12858), + 3523: uint16(15961), + 3524: uint16(8262), + 3525: uint16(6679), + 3526: uint16(15963), + 3527: uint16(15962), + 3528: uint16(7683), + 3529: uint16(12600), + 3530: uint16(15964), + 3531: uint16(16128), + 3532: uint16(15949), + 3533: uint16(15965), + 3534: uint16(16129), + 3535: uint16(9817), + 3536: uint16(16130), + 3537: uint16(16131), + 3538: uint16(16132), + 3539: uint16(16133), + 3540: uint16(9021), + 3541: uint16(16135), + 3542: uint16(16134), + 3543: uint16(16136), + 3544: uint16(16137), + 3545: uint16(6974), + 3546: uint16(10306), + 3547: uint16(11083), + 3548: uint16(16138), + 3549: uint16(16139), + 3550: uint16(8245), + 3551: uint16(6915), + 3552: uint16(16140), + 3553: uint16(16141), + 3554: uint16(16142), + 3555: uint16(10545), + 3556: uint16(10022), + 3557: uint16(16143), + 3558: uint16(9782), + 3559: uint16(8972), + 3560: uint16(16144), + 3561: uint16(4422), + 3562: uint16(5196), + 3563: uint16(11045), + 3564: uint16(11029), + 3565: uint16(4371), + 3566: uint16(11795), + 3567: uint16(10801), + 3568: uint16(10505), + 3569: uint16(7958), + 3570: uint16(16145), + 3571: uint16(9506), + 3572: uint16(5890), + 3573: uint16(16146), + 3574: uint16(6451), + 3575: uint16(16148), + 3576: uint16(16147), + 3577: uint16(16149), + 3578: uint16(16150), + 3579: uint16(16151), + 3580: uint16(5149), + 3581: uint16(16152), + 3582: uint16(16153), + 3583: uint16(5891), + 3584: uint16(10023), + 3585: uint16(16155), + 3586: uint16(7508), + 3587: uint16(16154), + 3588: uint16(5399), + 3589: uint16(16156), + 3590: uint16(16158), + 3591: uint16(16157), + 3592: uint16(16159), + 3593: uint16(5936), + 3594: uint16(16160), + 3595: uint16(5448), + 3596: uint16(8223), + 3597: uint16(6236), + 3598: uint16(16162), + 3599: uint16(16163), + 3600: uint16(16161), + 3601: uint16(6988), + 3602: uint16(9511), + 3603: uint16(5400), + 3604: uint16(16165), + 3605: uint16(8715), + 3606: uint16(16164), + 3607: uint16(11796), + 3608: uint16(9793), + 3609: uint16(16168), + 3610: uint16(16170), + 3611: uint16(16167), + 3612: uint16(11059), + 3613: uint16(16169), + 3614: uint16(16171), + 3615: uint16(11555), + 3616: uint16(16175), + 3617: uint16(16174), + 3618: uint16(8789), + 3619: uint16(9740), + 3620: uint16(5892), + 3621: uint16(16173), + 3622: uint16(16172), + 3623: uint16(11280), + 3624: uint16(11281), + 3625: uint16(16176), + 3626: uint16(4173), + 3627: uint16(6229), + 3628: uint16(6721), + 3629: uint16(16177), + 3630: uint16(16178), + 3631: uint16(16180), + 3632: uint16(7202), + 3633: uint16(16182), + 3634: uint16(16181), + 3635: uint16(16183), + 3636: uint16(4652), + 3637: uint16(16185), + 3638: uint16(16184), + 3639: uint16(16187), + 3640: uint16(16186), + 3641: uint16(5915), + 3642: uint16(11527), + 3643: uint16(5419), + 3644: uint16(4357), + 3645: uint16(5449), + 3646: uint16(4928), + 3647: uint16(11591), + 3648: uint16(16189), + 3649: uint16(16191), + 3650: uint16(16192), + 3651: uint16(4400), + 3652: uint16(16188), + 3653: uint16(6680), + 3654: uint16(8992), + 3655: uint16(16190), + 3656: uint16(16195), + 3657: uint16(6989), + 3658: uint16(16193), + 3659: uint16(5661), + 3660: uint16(10024), + 3661: uint16(16194), + 3662: uint16(16221), + 3663: uint16(16200), + 3664: uint16(5916), + 3665: uint16(5188), + 3666: uint16(16197), + 3667: uint16(11356), + 3668: uint16(11535), + 3669: uint16(8533), + 3670: uint16(16199), + 3671: uint16(16201), + 3672: uint16(11573), + 3673: uint16(5430), + 3674: uint16(10075), + 3675: uint16(9769), + 3676: uint16(16202), + 3677: uint16(16204), + 3678: uint16(16207), + 3679: uint16(16203), + 3680: uint16(16206), + 3681: uint16(5961), + 3682: uint16(4140), + 3683: uint16(16208), + 3684: uint16(7759), + 3685: uint16(16205), + 3686: uint16(11579), + 3687: uint16(16211), + 3688: uint16(21251), + 3689: uint16(16209), + 3690: uint16(16212), + 3691: uint16(16198), + 3692: uint16(16210), + 3693: uint16(6427), + 3694: uint16(16213), + 3695: uint16(16214), + 3696: uint16(11357), + 3697: uint16(16215), + 3698: uint16(16216), + 3699: uint16(16196), + 3700: uint16(16217), + 3701: uint16(4899), + 3702: uint16(6916), + 3703: uint16(16218), + 3704: uint16(16219), + 3705: uint16(16220), + 3706: uint16(4122), + 3707: uint16(16384), + 3708: uint16(10266), + 3709: uint16(16385), + 3710: uint16(4867), + 3711: uint16(16386), + 3712: uint16(16387), + 3713: uint16(16388), + 3714: uint16(16390), + 3715: uint16(16391), + 3716: uint16(16389), + 3717: uint16(10290), + 3718: uint16(16393), + 3719: uint16(16392), + 3720: uint16(16395), + 3721: uint16(16394), + 3722: uint16(16396), + 3723: uint16(16397), + 3724: uint16(16399), + 3725: uint16(16398), + 3726: uint16(6232), + 3727: uint16(16401), + 3728: uint16(16400), + 3729: uint16(4900), + 3730: uint16(7730), + 3731: uint16(9243), + 3732: uint16(16402), + 3733: uint16(7959), + 3734: uint16(6681), + 3735: uint16(4184), + 3736: uint16(16403), + 3737: uint16(11312), + 3738: uint16(10562), + 3739: uint16(16404), + 3740: uint16(9251), + 3741: uint16(11282), + 3742: uint16(6178), + 3743: uint16(7708), + 3744: uint16(8746), + 3745: uint16(12563), + 3746: uint16(8973), + 3747: uint16(4423), + 3748: uint16(16405), + 3749: uint16(16406), + 3750: uint16(16411), + 3751: uint16(16409), + 3752: uint16(16408), + 3753: uint16(14625), + 3754: uint16(4613), + 3755: uint16(16407), + 3756: uint16(3897), + 3757: uint16(9993), + 3758: uint16(10025), + 3759: uint16(11536), + 3760: uint16(16412), + 3761: uint16(16410), + 3762: uint16(8763), + 3763: uint16(7941), + 3764: uint16(9994), + 3765: uint16(10252), + 3766: uint16(16414), + 3767: uint16(11531), + 3768: uint16(5676), + 3769: uint16(16415), + 3770: uint16(16413), + 3771: uint16(10037), + 3772: uint16(16416), + 3773: uint16(16417), + 3774: uint16(3898), + 3775: uint16(7509), + 3776: uint16(16422), + 3777: uint16(16419), + 3778: uint16(9548), + 3779: uint16(16418), + 3780: uint16(5125), + 3781: uint16(16425), + 3782: uint16(16420), + 3783: uint16(16421), + 3784: uint16(16424), + 3785: uint16(16423), + 3786: uint16(10244), + 3787: uint16(8225), + 3788: uint16(8224), + 3789: uint16(5150), + 3790: uint16(16426), + 3791: uint16(16427), + 3792: uint16(16428), + 3793: uint16(16430), + 3794: uint16(16429), + 3795: uint16(4149), + 3796: uint16(16438), + 3797: uint16(10055), + 3798: uint16(16432), + 3799: uint16(16434), + 3800: uint16(16436), + 3801: uint16(7709), + 3802: uint16(16437), + 3803: uint16(16435), + 3804: uint16(6943), + 3805: uint16(16431), + 3806: uint16(16433), + 3807: uint16(10273), + 3808: uint16(7464), + 3809: uint16(16440), + 3810: uint16(16439), + 3811: uint16(16441), + 3812: uint16(6917), + 3813: uint16(6414), + 3814: uint16(9302), + 3815: uint16(16442), + 3816: uint16(9002), + 3817: uint16(16444), + 3818: uint16(11520), + 3819: uint16(16443), + 3820: uint16(8264), + 3821: uint16(16449), + 3822: uint16(16451), + 3823: uint16(16452), + 3824: uint16(8755), + 3825: uint16(16450), + 3826: uint16(16447), + 3827: uint16(16445), + 3828: uint16(16446), + 3829: uint16(16448), + 3830: uint16(16455), + 3831: uint16(16453), + 3832: uint16(16454), + 3833: uint16(16456), + 3834: uint16(16458), + 3835: uint16(16459), + 3836: uint16(16460), + 3837: uint16(16461), + 3838: uint16(16457), + 3839: uint16(16463), + 3840: uint16(16462), + 3841: uint16(16464), + 3842: uint16(11556), + 3843: uint16(16467), + 3844: uint16(16465), + 3845: uint16(16466), + 3846: uint16(4929), + 3847: uint16(11101), + 3848: uint16(10537), + 3849: uint16(16469), + 3850: uint16(16468), + 3851: uint16(16470), + 3852: uint16(16471), + 3853: uint16(16475), + 3854: uint16(16472), + 3855: uint16(16473), + 3856: uint16(16474), + 3857: uint16(16476), + 3858: uint16(16477), + 3859: uint16(16640), + 3860: uint16(16641), + 3861: uint16(16642), + 3862: uint16(9998), + 3863: uint16(9263), + 3864: uint16(16643), + 3865: uint16(9809), + 3866: uint16(10259), + 3867: uint16(16644), + 3868: uint16(16645), + 3869: uint16(9225), + 3870: uint16(4614), + 3871: uint16(6179), + 3872: uint16(16646), + 3873: uint16(16647), + 3874: uint16(16648), + 3875: uint16(6664), + 3876: uint16(16650), + 3877: uint16(16649), + 3878: uint16(16651), + 3879: uint16(16652), + 3880: uint16(10056), + 3881: uint16(16653), + 3882: uint16(16654), + 3883: uint16(21064), + 3884: uint16(16655), + 3885: uint16(16656), + 3886: uint16(16657), + 3887: uint16(6669), + 3888: uint16(16658), + 3889: uint16(9781), + 3890: uint16(10814), + 3891: uint16(4141), + 3892: uint16(4150), + 3893: uint16(16659), + 3894: uint16(16661), + 3895: uint16(16660), + 3896: uint16(9295), + 3897: uint16(7960), + 3898: uint16(15384), + 3899: uint16(16662), + 3900: uint16(11040), + 3901: uint16(16663), + 3902: uint16(4901), + 3903: uint16(10038), + 3904: uint16(16664), + 3905: uint16(16665), + 3906: uint16(16666), + 3907: uint16(11067), + 3908: uint16(11060), + 3909: uint16(8989), + 3910: uint16(8265), + 3911: uint16(16668), + 3912: uint16(7233), + 3913: uint16(7465), + 3914: uint16(16671), + 3915: uint16(16670), + 3916: uint16(16669), + 3917: uint16(10076), + 3918: uint16(4902), + 3919: uint16(5896), + 3920: uint16(16677), + 3921: uint16(16674), + 3922: uint16(7710), + 3923: uint16(11025), + 3924: uint16(16673), + 3925: uint16(16675), + 3926: uint16(16676), + 3927: uint16(16672), + 3928: uint16(16678), + 3929: uint16(16679), + 3930: uint16(8974), + 3931: uint16(4930), + 3932: uint16(8772), + 3933: uint16(16680), + 3934: uint16(16681), + 3935: uint16(16684), + 3936: uint16(7750), + 3937: uint16(9507), + 3938: uint16(16685), + 3939: uint16(10802), + 3940: uint16(16682), + 3941: uint16(16683), + 3942: uint16(16688), + 3943: uint16(16687), + 3944: uint16(16686), + 3945: uint16(16690), + 3946: uint16(16689), + 3947: uint16(16691), + 3948: uint16(16693), + 3949: uint16(16692), + 3950: uint16(10540), + 3951: uint16(7221), + 3952: uint16(11557), + 3953: uint16(16694), + 3954: uint16(9494), + 3955: uint16(16695), + 3956: uint16(16696), + 3957: uint16(16700), + 3958: uint16(16698), + 3959: uint16(16699), + 3960: uint16(16697), + 3961: uint16(16701), + 3962: uint16(16702), + 3963: uint16(16703), + 3964: uint16(16704), + 3965: uint16(11030), + 3966: uint16(16705), + 3967: uint16(11087), + 3968: uint16(16706), + 3969: uint16(8749), + 3970: uint16(9801), + 3971: uint16(5450), + 3972: uint16(8730), + 3973: uint16(16707), + 3974: uint16(5401), + 3975: uint16(7983), + 3976: uint16(16708), + 3977: uint16(6428), + 3978: uint16(16709), + 3979: uint16(16710), + 3980: uint16(5893), + 3981: uint16(6452), + 3982: uint16(16712), + 3983: uint16(9269), + 3984: uint16(6453), + 3985: uint16(5165), + 3986: uint16(10755), + 3987: uint16(9770), + 3988: uint16(9270), + 3989: uint16(6203), + 3990: uint16(16714), + 3991: uint16(7466), + 3992: uint16(11537), + 3993: uint16(6180), + 3994: uint16(5894), + 3995: uint16(9986), + 3996: uint16(16716), + 3997: uint16(16718), + 3998: uint16(5962), + 3999: uint16(16717), + 4000: uint16(9045), + 4001: uint16(16720), + 4002: uint16(4630), + 4003: uint16(16715), + 4004: uint16(10057), + 4005: uint16(4111), + 4006: uint16(6475), + 4007: uint16(11825), + 4008: uint16(16719), + 4009: uint16(16721), + 4010: uint16(10538), + 4011: uint16(7992), + 4012: uint16(16723), + 4013: uint16(16724), + 4014: uint16(16722), + 4015: uint16(4653), + 4016: uint16(16730), + 4017: uint16(16729), + 4018: uint16(6918), + 4019: uint16(16731), + 4020: uint16(16726), + 4021: uint16(16732), + 4022: uint16(16727), + 4023: uint16(10039), + 4024: uint16(16725), + 4025: uint16(16728), + 4026: uint16(16897), + 4027: uint16(16896), + 4028: uint16(10816), + 4029: uint16(16733), + 4030: uint16(3914), + 4031: uint16(16899), + 4032: uint16(16898), + 4033: uint16(7467), + 4034: uint16(16900), + 4035: uint16(8226), + 4036: uint16(16902), + 4037: uint16(16901), + 4038: uint16(16903), + 4039: uint16(16711), + 4040: uint16(16713), + 4041: uint16(16905), + 4042: uint16(16904), + 4043: uint16(6919), + 4044: uint16(11592), + 4045: uint16(6961), + 4046: uint16(16906), + 4047: uint16(5654), + 4048: uint16(5151), + 4049: uint16(5126), + 4050: uint16(6722), + 4051: uint16(11283), + 4052: uint16(16912), + 4053: uint16(16911), + 4054: uint16(8227), + 4055: uint16(16908), + 4056: uint16(16910), + 4057: uint16(7210), + 4058: uint16(7711), + 4059: uint16(16909), + 4060: uint16(16907), + 4061: uint16(9737), + 4062: uint16(7468), + 4063: uint16(10267), + 4064: uint16(6454), + 4065: uint16(9303), + 4066: uint16(16913), + 4067: uint16(16914), + 4068: uint16(16936), + 4069: uint16(5431), + 4070: uint16(11804), + 4071: uint16(8212), + 4072: uint16(16915), + 4073: uint16(4401), + 4074: uint16(9046), + 4075: uint16(10496), + 4076: uint16(16916), + 4077: uint16(5209), + 4078: uint16(16917), + 4079: uint16(16919), + 4080: uint16(16920), + 4081: uint16(9736), + 4082: uint16(16921), + 4083: uint16(16922), + 4084: uint16(16923), + 4085: uint16(5432), + 4086: uint16(4402), + 4087: uint16(9508), + 4088: uint16(7175), + 4089: uint16(6723), + 4090: uint16(16924), + 4091: uint16(7176), + 4092: uint16(4393), + 4093: uint16(10274), + 4094: uint16(16925), + 4095: uint16(10058), + 4096: uint16(8228), + 4097: uint16(16928), + 4098: uint16(16929), + 4099: uint16(9800), + 4100: uint16(7712), + 4101: uint16(16926), + 4102: uint16(8768), + 4103: uint16(16927), + 4104: uint16(7469), + 4105: uint16(3899), + 4106: uint16(5128), + 4107: uint16(16930), + 4108: uint16(9047), + 4109: uint16(16931), + 4110: uint16(7974), + 4111: uint16(11020), + 4112: uint16(10242), + 4113: uint16(16932), + 4114: uint16(16933), + 4115: uint16(8756), + 4116: uint16(11558), + 4117: uint16(16935), + 4118: uint16(16934), + 4119: uint16(6990), + 4120: uint16(16937), + 4121: uint16(3919), + 4122: uint16(16940), + 4123: uint16(16938), + 4124: uint16(4403), + 4125: uint16(5677), + 4126: uint16(16939), + 4127: uint16(6181), + 4128: uint16(6225), + 4129: uint16(10565), + 4130: uint16(16941), + 4131: uint16(10803), + 4132: uint16(16943), + 4133: uint16(7984), + 4134: uint16(4142), + 4135: uint16(4377), + 4136: uint16(3851), + 4137: uint16(16942), + 4138: uint16(16944), + 4139: uint16(16945), + 4140: uint16(7510), + 4141: uint16(16946), + 4142: uint16(4654), + 4143: uint16(16948), + 4144: uint16(5705), + 4145: uint16(5189), + 4146: uint16(16949), + 4147: uint16(5460), + 4148: uint16(16950), + 4149: uint16(8027), + 4150: uint16(9516), + 4151: uint16(7999), + 4152: uint16(6484), + 4153: uint16(16951), + 4154: uint16(8769), + 4155: uint16(8266), + 4156: uint16(16953), + 4157: uint16(16955), + 4158: uint16(16952), + 4159: uint16(16954), + 4160: uint16(5633), + 4161: uint16(16956), + 4162: uint16(5637), + 4163: uint16(5190), + 4164: uint16(11313), + 4165: uint16(16958), + 4166: uint16(16959), + 4167: uint16(4109), + 4168: uint16(16962), + 4169: uint16(4693), + 4170: uint16(16961), + 4171: uint16(16960), + 4172: uint16(16964), + 4173: uint16(16957), + 4174: uint16(16965), + 4175: uint16(11528), + 4176: uint16(16966), + 4177: uint16(16967), + 4178: uint16(13139), + 4179: uint16(16969), + 4180: uint16(16968), + 4181: uint16(16970), + 4182: uint16(16971), + 4183: uint16(11540), + 4184: uint16(16972), + 4185: uint16(20302), + 4186: uint16(7470), + 4187: uint16(16973), + 4188: uint16(16974), + 4189: uint16(7222), + 4190: uint16(9495), + 4191: uint16(16975), + 4192: uint16(8711), + 4193: uint16(16976), + 4194: uint16(8731), + 4195: uint16(16977), + 4196: uint16(5380), + 4197: uint16(12318), + 4198: uint16(8764), + 4199: uint16(6930), + 4200: uint16(4903), + 4201: uint16(16978), + 4202: uint16(17153), + 4203: uint16(16981), + 4204: uint16(5191), + 4205: uint16(16980), + 4206: uint16(17155), + 4207: uint16(16979), + 4208: uint16(7471), + 4209: uint16(16983), + 4210: uint16(16984), + 4211: uint16(9226), + 4212: uint16(16985), + 4213: uint16(4669), + 4214: uint16(7737), + 4215: uint16(10307), + 4216: uint16(16987), + 4217: uint16(8519), + 4218: uint16(16982), + 4219: uint16(16986), + 4220: uint16(16988), + 4221: uint16(6490), + 4222: uint16(17157), + 4223: uint16(10253), + 4224: uint16(9989), + 4225: uint16(9304), + 4226: uint16(5433), + 4227: uint16(17156), + 4228: uint16(17154), + 4229: uint16(10004), + 4230: uint16(16989), + 4231: uint16(8765), + 4232: uint16(9306), + 4233: uint16(9305), + 4234: uint16(6485), + 4235: uint16(17175), + 4236: uint16(17159), + 4237: uint16(17161), + 4238: uint16(17164), + 4239: uint16(17165), + 4240: uint16(17162), + 4241: uint16(17163), + 4242: uint16(17160), + 4243: uint16(17158), + 4244: uint16(17152), + 4245: uint16(10542), + 4246: uint16(4404), + 4247: uint16(17172), + 4248: uint16(17169), + 4249: uint16(17174), + 4250: uint16(17173), + 4251: uint16(9810), + 4252: uint16(11014), + 4253: uint16(6682), + 4254: uint16(17167), + 4255: uint16(17176), + 4256: uint16(17171), + 4257: uint16(17170), + 4258: uint16(17166), + 4259: uint16(17168), + 4260: uint16(4904), + 4261: uint16(8732), + 4262: uint16(8028), + 4263: uint16(9985), + 4264: uint16(17181), + 4265: uint16(9987), + 4266: uint16(8000), + 4267: uint16(17178), + 4268: uint16(10030), + 4269: uint16(17182), + 4270: uint16(10546), + 4271: uint16(8762), + 4272: uint16(17177), + 4273: uint16(17179), + 4274: uint16(17180), + 4275: uint16(17183), + 4276: uint16(6947), + 4277: uint16(9509), + 4278: uint16(17188), + 4279: uint16(17187), + 4280: uint16(17184), + 4281: uint16(11797), + 4282: uint16(17193), + 4283: uint16(17197), + 4284: uint16(17194), + 4285: uint16(17190), + 4286: uint16(17191), + 4287: uint16(17196), + 4288: uint16(17185), + 4289: uint16(12596), + 4290: uint16(17192), + 4291: uint16(17186), + 4292: uint16(17195), + 4293: uint16(17201), + 4294: uint16(4905), + 4295: uint16(17198), + 4296: uint16(17199), + 4297: uint16(17200), + 4298: uint16(17203), + 4299: uint16(17202), + 4300: uint16(10069), + 4301: uint16(17204), + 4302: uint16(11611), + 4303: uint16(10572), + 4304: uint16(17209), + 4305: uint16(17206), + 4306: uint16(17205), + 4307: uint16(7985), + 4308: uint16(17208), + 4309: uint16(17210), + 4310: uint16(17207), + 4311: uint16(17214), + 4312: uint16(17211), + 4313: uint16(17212), + 4314: uint16(17189), + 4315: uint16(17213), + 4316: uint16(17215), + 4317: uint16(17216), + 4318: uint16(10533), + 4319: uint16(17217), + 4320: uint16(11073), + 4321: uint16(5421), + 4322: uint16(5640), + 4323: uint16(17218), + 4324: uint16(10515), + 4325: uint16(7751), + 4326: uint16(11023), + 4327: uint16(17219), + 4328: uint16(11538), + 4329: uint16(9811), + 4330: uint16(8229), + 4331: uint16(9747), + 4332: uint16(7212), + 4333: uint16(3871), + 4334: uint16(17224), + 4335: uint16(17222), + 4336: uint16(17220), + 4337: uint16(4864), + 4338: uint16(7472), + 4339: uint16(17225), + 4340: uint16(17223), + 4341: uint16(17221), + 4342: uint16(17229), + 4343: uint16(17228), + 4344: uint16(17227), + 4345: uint16(17226), + 4346: uint16(17230), + 4347: uint16(17231), + 4348: uint16(7961), + 4349: uint16(17232), + 4350: uint16(17234), + 4351: uint16(17233), + 4352: uint16(5937), + 4353: uint16(8215), + 4354: uint16(17236), + 4355: uint16(9307), + 4356: uint16(17235), + 4357: uint16(17237), + 4358: uint16(10516), + 4359: uint16(8267), + 4360: uint16(6182), + 4361: uint16(17238), + 4362: uint16(11559), + 4363: uint16(17240), + 4364: uint16(17241), + 4365: uint16(17242), + 4366: uint16(17243), + 4367: uint16(6724), + 4368: uint16(17244), + 4369: uint16(5678), + 4370: uint16(5193), + 4371: uint16(5129), + 4372: uint16(17408), + 4373: uint16(11090), + 4374: uint16(6183), + 4375: uint16(17245), + 4376: uint16(17411), + 4377: uint16(11077), + 4378: uint16(9755), + 4379: uint16(10258), + 4380: uint16(7234), + 4381: uint16(17410), + 4382: uint16(6962), + 4383: uint16(6184), + 4384: uint16(6725), + 4385: uint16(5192), + 4386: uint16(10517), + 4387: uint16(17409), + 4388: uint16(8230), + 4389: uint16(10785), + 4390: uint16(6486), + 4391: uint16(6726), + 4392: uint16(9020), + 4393: uint16(17414), + 4394: uint16(11582), + 4395: uint16(6456), + 4396: uint16(17415), + 4397: uint16(7713), + 4398: uint16(17417), + 4399: uint16(7473), + 4400: uint16(6415), + 4401: uint16(17416), + 4402: uint16(7177), + 4403: uint16(5917), + 4404: uint16(8231), + 4405: uint16(17412), + 4406: uint16(17418), + 4407: uint16(17413), + 4408: uint16(5679), + 4409: uint16(17421), + 4410: uint16(17425), + 4411: uint16(5706), + 4412: uint16(17420), + 4413: uint16(17429), + 4414: uint16(6185), + 4415: uint16(11340), + 4416: uint16(3867), + 4417: uint16(17426), + 4418: uint16(5194), + 4419: uint16(17423), + 4420: uint16(17424), + 4421: uint16(9308), + 4422: uint16(17422), + 4423: uint16(17419), + 4424: uint16(4615), + 4425: uint16(8003), + 4426: uint16(5895), + 4427: uint16(17431), + 4428: uint16(17428), + 4429: uint16(17430), + 4430: uint16(17427), + 4431: uint16(5680), + 4432: uint16(8466), + 4433: uint16(17432), + 4434: uint16(8269), + 4435: uint16(17445), + 4436: uint16(17441), + 4437: uint16(17435), + 4438: uint16(17439), + 4439: uint16(7001), + 4440: uint16(3900), + 4441: uint16(17434), + 4442: uint16(17442), + 4443: uint16(17446), + 4444: uint16(6186), + 4445: uint16(11061), + 4446: uint16(9013), + 4447: uint16(17436), + 4448: uint16(17444), + 4449: uint16(17433), + 4450: uint16(8733), + 4451: uint16(17438), + 4452: uint16(3868), + 4453: uint16(11049), + 4454: uint16(17437), + 4455: uint16(5434), + 4456: uint16(10059), + 4457: uint16(8268), + 4458: uint16(11567), + 4459: uint16(7246), + 4460: uint16(17485), + 4461: uint16(17447), + 4462: uint16(8029), + 4463: uint16(17443), + 4464: uint16(17448), + 4465: uint16(17450), + 4466: uint16(9048), + 4467: uint16(17453), + 4468: uint16(17449), + 4469: uint16(10547), + 4470: uint16(4906), + 4471: uint16(11050), + 4472: uint16(3901), + 4473: uint16(17452), + 4474: uint16(11612), + 4475: uint16(17451), + 4476: uint16(4174), + 4477: uint16(9547), + 4478: uint16(17454), + 4479: uint16(17461), + 4480: uint16(17455), + 4481: uint16(17462), + 4482: uint16(17458), + 4483: uint16(9818), + 4484: uint16(6953), + 4485: uint16(17460), + 4486: uint16(17457), + 4487: uint16(17463), + 4488: uint16(17456), + 4489: uint16(7203), + 4490: uint16(10756), + 4491: uint16(7211), + 4492: uint16(17459), + 4493: uint16(17471), + 4494: uint16(17467), + 4495: uint16(17470), + 4496: uint16(17468), + 4497: uint16(17472), + 4498: uint16(17466), + 4499: uint16(17440), + 4500: uint16(7986), + 4501: uint16(10026), + 4502: uint16(17469), + 4503: uint16(17464), + 4504: uint16(8192), + 4505: uint16(5681), + 4506: uint16(7178), + 4507: uint16(7684), + 4508: uint16(8213), + 4509: uint16(17475), + 4510: uint16(17477), + 4511: uint16(17478), + 4512: uint16(17474), + 4513: uint16(17476), + 4514: uint16(17465), + 4515: uint16(17473), + 4516: uint16(17481), + 4517: uint16(17480), + 4518: uint16(10841), + 4519: uint16(5642), + 4520: uint16(17479), + 4521: uint16(17483), + 4522: uint16(17482), + 4523: uint16(17486), + 4524: uint16(17488), + 4525: uint16(6683), + 4526: uint16(17484), + 4527: uint16(17489), + 4528: uint16(17490), + 4529: uint16(17491), + 4530: uint16(17497), + 4531: uint16(9242), + 4532: uint16(17493), + 4533: uint16(17492), + 4534: uint16(17494), + 4535: uint16(17495), + 4536: uint16(17496), + 4537: uint16(17498), + 4538: uint16(17499), + 4539: uint16(4907), + 4540: uint16(17500), + 4541: uint16(17501), + 4542: uint16(17664), + 4543: uint16(17665), + 4544: uint16(17666), + 4545: uint16(17667), + 4546: uint16(17668), + 4547: uint16(17669), + 4548: uint16(17671), + 4549: uint16(17670), + 4550: uint16(17672), + 4551: uint16(17673), + 4552: uint16(17674), + 4553: uint16(17677), + 4554: uint16(17675), + 4555: uint16(17676), + 4556: uint16(6464), + 4557: uint16(5682), + 4558: uint16(8757), + 4559: uint16(10002), + 4560: uint16(7247), + 4561: uint16(9772), + 4562: uint16(10060), + 4563: uint16(17678), + 4564: uint16(14156), + 4565: uint16(17679), + 4566: uint16(17681), + 4567: uint16(11332), + 4568: uint16(17680), + 4569: uint16(17683), + 4570: uint16(17682), + 4571: uint16(11314), + 4572: uint16(17684), + 4573: uint16(10077), + 4574: uint16(17685), + 4575: uint16(17688), + 4576: uint16(17687), + 4577: uint16(17686), + 4578: uint16(17689), + 4579: uint16(5649), + 4580: uint16(8193), + 4581: uint16(5152), + 4582: uint16(17693), + 4583: uint16(17690), + 4584: uint16(17691), + 4585: uint16(17694), + 4586: uint16(17695), + 4587: uint16(17692), + 4588: uint16(4104), + 4589: uint16(4358), + 4590: uint16(17697), + 4591: uint16(17698), + 4592: uint16(17699), + 4593: uint16(11329), + 4594: uint16(7179), + 4595: uint16(17701), + 4596: uint16(17700), + 4597: uint16(7752), + 4598: uint16(17702), + 4599: uint16(17703), + 4600: uint16(17704), + 4601: uint16(4932), + 4602: uint16(4908), + 4603: uint16(17705), + 4604: uint16(17706), + 4605: uint16(10812), + 4606: uint16(11330), + 4607: uint16(11315), + 4608: uint16(11798), + 4609: uint16(6188), + 4610: uint16(17709), + 4611: uint16(6963), + 4612: uint16(17708), + 4613: uint16(17710), + 4614: uint16(6920), + 4615: uint16(8496), + 4616: uint16(17711), + 4617: uint16(6187), + 4618: uint16(11062), + 4619: uint16(17712), + 4620: uint16(17713), + 4621: uint16(17714), + 4622: uint16(17715), + 4623: uint16(17716), + 4624: uint16(6921), + 4625: uint16(11084), + 4626: uint16(17718), + 4627: uint16(8734), + 4628: uint16(17717), + 4629: uint16(17720), + 4630: uint16(17719), + 4631: uint16(17721), + 4632: uint16(7962), + 4633: uint16(17722), + 4634: uint16(17723), + 4635: uint16(10520), + 4636: uint16(17724), + 4637: uint16(8270), + 4638: uint16(17725), + 4639: uint16(17726), + 4640: uint16(11613), + 4641: uint16(17729), + 4642: uint16(17728), + 4643: uint16(17727), + 4644: uint16(8975), + 4645: uint16(17730), + 4646: uint16(7685), + 4647: uint16(17731), + 4648: uint16(17732), + 4649: uint16(11799), + 4650: uint16(17733), + 4651: uint16(17734), + 4652: uint16(17736), + 4653: uint16(17735), + 4654: uint16(9988), + 4655: uint16(9560), + 4656: uint16(11805), + 4657: uint16(9992), + 4658: uint16(17738), + 4659: uint16(7474), + 4660: uint16(10249), + 4661: uint16(17739), + 4662: uint16(17737), + 4663: uint16(4909), + 4664: uint16(5939), + 4665: uint16(6727), + 4666: uint16(10061), + 4667: uint16(5897), + 4668: uint16(10786), + 4669: uint16(17742), + 4670: uint16(17740), + 4671: uint16(6189), + 4672: uint16(6190), + 4673: uint16(3912), + 4674: uint16(6471), + 4675: uint16(9784), + 4676: uint16(3902), + 4677: uint16(17747), + 4678: uint16(8735), + 4679: uint16(9783), + 4680: uint16(8506), + 4681: uint16(17749), + 4682: uint16(17745), + 4683: uint16(17748), + 4684: uint16(17743), + 4685: uint16(17746), + 4686: uint16(10757), + 4687: uint16(5940), + 4688: uint16(3932), + 4689: uint16(17744), + 4690: uint16(17751), + 4691: uint16(17752), + 4692: uint16(9496), + 4693: uint16(5402), + 4694: uint16(17925), + 4695: uint16(9756), + 4696: uint16(6728), + 4697: uint16(5403), + 4698: uint16(7975), + 4699: uint16(11813), + 4700: uint16(11021), + 4701: uint16(17750), + 4702: uint16(7987), + 4703: uint16(5170), + 4704: uint16(17753), + 4705: uint16(17755), + 4706: uint16(17754), + 4707: uint16(17756), + 4708: uint16(8709), + 4709: uint16(9757), + 4710: uint16(8976), + 4711: uint16(17922), + 4712: uint16(17921), + 4713: uint16(17757), + 4714: uint16(7732), + 4715: uint16(10308), + 4716: uint16(17924), + 4717: uint16(17923), + 4718: uint16(6191), + 4719: uint16(11826), + 4720: uint16(17940), + 4721: uint16(17928), + 4722: uint16(17929), + 4723: uint16(6991), + 4724: uint16(17927), + 4725: uint16(6231), + 4726: uint16(17926), + 4727: uint16(17930), + 4728: uint16(8977), + 4729: uint16(10497), + 4730: uint16(8194), + 4731: uint16(8507), + 4732: uint16(17934), + 4733: uint16(17935), + 4734: uint16(17931), + 4735: uint16(17932), + 4736: uint16(17933), + 4737: uint16(6192), + 4738: uint16(17941), + 4739: uint16(17937), + 4740: uint16(10309), + 4741: uint16(10827), + 4742: uint16(10247), + 4743: uint16(17936), + 4744: uint16(17939), + 4745: uint16(17938), + 4746: uint16(10787), + 4747: uint16(17942), + 4748: uint16(17943), + 4749: uint16(8214), + 4750: uint16(17944), + 4751: uint16(17946), + 4752: uint16(17950), + 4753: uint16(17947), + 4754: uint16(17945), + 4755: uint16(9758), + 4756: uint16(17948), + 4757: uint16(17949), + 4758: uint16(4369), + 4759: uint16(17956), + 4760: uint16(17951), + 4761: uint16(17952), + 4762: uint16(17953), + 4763: uint16(8448), + 4764: uint16(17955), + 4765: uint16(17954), + 4766: uint16(17957), + 4767: uint16(17958), + 4768: uint16(17959), + 4769: uint16(7714), + 4770: uint16(4424), + 4771: uint16(17960), + 4772: uint16(11574), + 4773: uint16(6922), + 4774: uint16(7180), + 4775: uint16(6729), + 4776: uint16(8758), + 4777: uint16(17961), + 4778: uint16(17962), + 4779: uint16(4112), + 4780: uint16(17963), + 4781: uint16(17964), + 4782: uint16(17965), + 4783: uint16(17966), + 4784: uint16(17967), + 4785: uint16(5404), + 4786: uint16(14601), + 4787: uint16(17968), + 4788: uint16(8004), + 4789: uint16(17969), + 4790: uint16(6954), + 4791: uint16(17970), + 4792: uint16(12047), + 4793: uint16(17971), + 4794: uint16(10557), + 4795: uint16(4923), + 4796: uint16(8195), + 4797: uint16(7223), + 4798: uint16(10320), + 4799: uint16(7181), + 4800: uint16(17972), + 4801: uint16(6193), + 4802: uint16(17973), + 4803: uint16(10027), + 4804: uint16(17987), + 4805: uint16(17975), + 4806: uint16(8488), + 4807: uint16(9812), + 4808: uint16(5918), + 4809: uint16(17974), + 4810: uint16(8196), + 4811: uint16(17976), + 4812: uint16(9049), + 4813: uint16(17978), + 4814: uint16(17977), + 4815: uint16(17980), + 4816: uint16(17979), + 4817: uint16(17981), + 4818: uint16(17983), + 4819: uint16(17982), + 4820: uint16(4910), + 4821: uint16(17984), + 4822: uint16(17985), + 4823: uint16(17986), + 4824: uint16(6416), + 4825: uint16(11560), + 4826: uint16(17988), + 4827: uint16(7686), + 4828: uint16(4175), + 4829: uint16(17989), + 4830: uint16(17990), + 4831: uint16(17991), + 4832: uint16(3921), + 4833: uint16(17992), + 4834: uint16(17993), + 4835: uint16(10310), + 4836: uint16(6950), + 4837: uint16(17995), + 4838: uint16(4616), + 4839: uint16(3857), + 4840: uint16(17994), + 4841: uint16(17997), + 4842: uint16(9773), + 4843: uint16(7715), + 4844: uint16(4405), + 4845: uint16(10758), + 4846: uint16(5692), + 4847: uint16(5435), + 4848: uint16(17996), + 4849: uint16(4425), + 4850: uint16(4866), + 4851: uint16(4176), + 4852: uint16(18001), + 4853: uint16(11593), + 4854: uint16(8508), + 4855: uint16(10275), + 4856: uint16(18013), + 4857: uint16(4406), + 4858: uint16(18011), + 4859: uint16(18009), + 4860: uint16(18000), + 4861: uint16(17998), + 4862: uint16(17999), + 4863: uint16(6978), + 4864: uint16(5451), + 4865: uint16(8790), + 4866: uint16(9520), + 4867: uint16(4144), + 4868: uint16(18003), + 4869: uint16(18002), + 4870: uint16(18008), + 4871: uint16(18004), + 4872: uint16(18007), + 4873: uint16(11055), + 4874: uint16(18006), + 4875: uint16(4407), + 4876: uint16(4700), + 4877: uint16(18010), + 4878: uint16(18012), + 4879: uint16(5683), + 4880: uint16(18178), + 4881: uint16(18187), + 4882: uint16(18188), + 4883: uint16(3850), + 4884: uint16(18195), + 4885: uint16(3920), + 4886: uint16(18186), + 4887: uint16(18185), + 4888: uint16(18180), + 4889: uint16(18179), + 4890: uint16(18177), + 4891: uint16(18176), + 4892: uint16(8770), + 4893: uint16(8538), + 4894: uint16(18182), + 4895: uint16(18181), + 4896: uint16(18184), + 4897: uint16(8271), + 4898: uint16(5684), + 4899: uint16(4128), + 4900: uint16(18183), + 4901: uint16(6194), + 4902: uint16(8272), + 4903: uint16(18201), + 4904: uint16(18202), + 4905: uint16(4408), + 4906: uint16(4365), + 4907: uint16(18199), + 4908: uint16(18189), + 4909: uint16(18197), + 4910: uint16(18204), + 4911: uint16(18198), + 4912: uint16(18196), + 4913: uint16(18005), + 4914: uint16(18194), + 4915: uint16(18190), + 4916: uint16(4911), + 4917: uint16(18192), + 4918: uint16(18203), + 4919: uint16(18193), + 4920: uint16(18205), + 4921: uint16(18191), + 4922: uint16(9819), + 4923: uint16(11336), + 4924: uint16(18200), + 4925: uint16(18222), + 4926: uint16(18214), + 4927: uint16(7770), + 4928: uint16(5157), + 4929: uint16(5436), + 4930: uint16(18209), + 4931: uint16(4410), + 4932: uint16(7475), + 4933: uint16(18212), + 4934: uint16(6457), + 4935: uint16(9264), + 4936: uint16(18217), + 4937: uint16(10573), + 4938: uint16(18208), + 4939: uint16(4409), + 4940: uint16(5941), + 4941: uint16(10248), + 4942: uint16(18218), + 4943: uint16(18206), + 4944: uint16(18215), + 4945: uint16(18225), + 4946: uint16(18210), + 4947: uint16(18211), + 4948: uint16(9497), + 4949: uint16(18216), + 4950: uint16(18213), + 4951: uint16(10759), + 4952: uint16(18219), + 4953: uint16(3903), + 4954: uint16(18207), + 4955: uint16(18221), + 4956: uint16(18220), + 4957: uint16(9802), + 4958: uint16(18227), + 4959: uint16(18238), + 4960: uint16(4701), + 4961: uint16(18241), + 4962: uint16(18223), + 4963: uint16(18228), + 4964: uint16(11341), + 4965: uint16(18237), + 4966: uint16(11316), + 4967: uint16(11529), + 4968: uint16(8791), + 4969: uint16(4682), + 4970: uint16(10321), + 4971: uint16(18243), + 4972: uint16(9472), + 4973: uint16(3856), + 4974: uint16(18236), + 4975: uint16(18232), + 4976: uint16(8273), + 4977: uint16(18226), + 4978: uint16(18234), + 4979: uint16(18239), + 4980: uint16(9739), + 4981: uint16(3849), + 4982: uint16(18231), + 4983: uint16(18240), + 4984: uint16(10327), + 4985: uint16(18235), + 4986: uint16(18230), + 4987: uint16(7476), + 4988: uint16(7182), + 4989: uint16(6923), + 4990: uint16(11063), + 4991: uint16(10278), + 4992: uint16(18246), + 4993: uint16(18255), + 4994: uint16(18233), + 4995: uint16(4694), + 4996: uint16(7511), + 4997: uint16(18244), + 4998: uint16(18249), + 4999: uint16(8274), + 5000: uint16(18245), + 5001: uint16(18252), + 5002: uint16(8766), + 5003: uint16(18253), + 5004: uint16(11317), + 5005: uint16(18242), + 5006: uint16(4631), + 5007: uint16(18248), + 5008: uint16(18251), + 5009: uint16(11019), + 5010: uint16(18254), + 5011: uint16(18247), + 5012: uint16(18250), + 5013: uint16(10760), + 5014: uint16(11776), + 5015: uint16(18258), + 5016: uint16(18265), + 5017: uint16(18257), + 5018: uint16(6946), + 5019: uint16(18224), + 5020: uint16(10541), + 5021: uint16(11009), + 5022: uint16(18264), + 5023: uint16(18263), + 5024: uint16(18259), + 5025: uint16(18260), + 5026: uint16(4117), + 5027: uint16(18262), + 5028: uint16(18256), + 5029: uint16(9012), + 5030: uint16(18261), + 5031: uint16(3933), + 5032: uint16(8449), + 5033: uint16(10530), + 5034: uint16(18266), + 5035: uint16(18432), + 5036: uint16(10040), + 5037: uint16(18269), + 5038: uint16(7477), + 5039: uint16(6952), + 5040: uint16(18434), + 5041: uint16(5405), + 5042: uint16(18435), + 5043: uint16(10328), + 5044: uint16(18268), + 5045: uint16(18229), + 5046: uint16(18267), + 5047: uint16(11822), + 5048: uint16(9473), + 5049: uint16(10322), + 5050: uint16(18442), + 5051: uint16(18448), + 5052: uint16(18449), + 5053: uint16(18436), + 5054: uint16(9813), + 5055: uint16(18446), + 5056: uint16(18438), + 5057: uint16(18440), + 5058: uint16(18450), + 5059: uint16(18439), + 5060: uint16(18443), + 5061: uint16(4177), + 5062: uint16(9540), + 5063: uint16(18444), + 5064: uint16(18447), + 5065: uint16(18437), + 5066: uint16(8197), + 5067: uint16(18441), + 5068: uint16(6662), + 5069: uint16(7716), + 5070: uint16(5647), + 5071: uint16(11091), + 5072: uint16(11096), + 5073: uint16(7249), + 5074: uint16(18454), + 5075: uint16(18452), + 5076: uint16(11821), + 5077: uint16(18451), + 5078: uint16(11348), + 5079: uint16(18453), + 5080: uint16(18455), + 5081: uint16(18456), + 5082: uint16(18459), + 5083: uint16(18457), + 5084: uint16(9474), + 5085: uint16(18458), + 5086: uint16(10028), + 5087: uint16(18445), + 5088: uint16(7250), + 5089: uint16(18460), + 5090: uint16(18465), + 5091: uint16(8275), + 5092: uint16(18464), + 5093: uint16(18433), + 5094: uint16(18466), + 5095: uint16(8232), + 5096: uint16(18461), + 5097: uint16(18463), + 5098: uint16(18462), + 5099: uint16(15376), + 5100: uint16(15361), + 5101: uint16(18468), + 5102: uint16(18467), + 5103: uint16(11349), + 5104: uint16(16667), + 5105: uint16(18469), + 5106: uint16(18470), + 5107: uint16(18471), + 5108: uint16(5942), + 5109: uint16(5171), + 5110: uint16(18473), + 5111: uint16(12348), + 5112: uint16(5204), + 5113: uint16(11545), + 5114: uint16(5458), + 5115: uint16(18474), + 5116: uint16(18475), + 5117: uint16(8781), + 5118: uint16(18476), + 5119: uint16(9561), + 5120: uint16(3865), + 5121: uint16(4418), + 5122: uint16(18481), + 5123: uint16(18482), + 5124: uint16(18477), + 5125: uint16(6684), + 5126: uint16(18478), + 5127: uint16(9761), + 5128: uint16(18479), + 5129: uint16(18480), + 5130: uint16(18490), + 5131: uint16(18484), + 5132: uint16(18487), + 5133: uint16(18483), + 5134: uint16(18485), + 5135: uint16(18486), + 5136: uint16(6967), + 5137: uint16(18488), + 5138: uint16(8736), + 5139: uint16(5685), + 5140: uint16(4641), + 5141: uint16(18491), + 5142: uint16(4638), + 5143: uint16(18496), + 5144: uint16(18492), + 5145: uint16(18495), + 5146: uint16(10009), + 5147: uint16(18493), + 5148: uint16(18494), + 5149: uint16(10279), + 5150: uint16(10041), + 5151: uint16(18497), + 5152: uint16(8540), + 5153: uint16(18507), + 5154: uint16(18503), + 5155: uint16(4426), + 5156: uint16(18501), + 5157: uint16(10761), + 5158: uint16(18502), + 5159: uint16(18499), + 5160: uint16(18500), + 5161: uint16(18505), + 5162: uint16(18508), + 5163: uint16(18506), + 5164: uint16(18504), + 5165: uint16(18498), + 5166: uint16(8759), + 5167: uint16(18515), + 5168: uint16(11017), + 5169: uint16(18513), + 5170: uint16(18514), + 5171: uint16(18509), + 5172: uint16(18511), + 5173: uint16(18512), + 5174: uint16(18510), + 5175: uint16(8005), + 5176: uint16(11800), + 5177: uint16(18519), + 5178: uint16(18520), + 5179: uint16(18688), + 5180: uint16(7689), + 5181: uint16(18522), + 5182: uint16(18525), + 5183: uint16(18517), + 5184: uint16(18516), + 5185: uint16(18689), + 5186: uint16(4411), + 5187: uint16(18523), + 5188: uint16(18690), + 5189: uint16(18524), + 5190: uint16(18521), + 5191: uint16(8978), + 5192: uint16(18518), + 5193: uint16(9799), + 5194: uint16(18694), + 5195: uint16(11290), + 5196: uint16(18693), + 5197: uint16(18692), + 5198: uint16(18701), + 5199: uint16(18695), + 5200: uint16(18703), + 5201: uint16(11333), + 5202: uint16(18706), + 5203: uint16(18697), + 5204: uint16(18698), + 5205: uint16(18702), + 5206: uint16(18705), + 5207: uint16(18704), + 5208: uint16(18696), + 5209: uint16(18699), + 5210: uint16(18716), + 5211: uint16(18709), + 5212: uint16(18707), + 5213: uint16(18708), + 5214: uint16(18713), + 5215: uint16(18714), + 5216: uint16(4617), + 5217: uint16(5153), + 5218: uint16(18712), + 5219: uint16(18691), + 5220: uint16(18711), + 5221: uint16(18715), + 5222: uint16(18710), + 5223: uint16(18717), + 5224: uint16(18719), + 5225: uint16(18718), + 5226: uint16(18721), + 5227: uint16(18720), + 5228: uint16(18489), + 5229: uint16(18725), + 5230: uint16(18722), + 5231: uint16(18723), + 5232: uint16(18724), + 5233: uint16(18726), + 5234: uint16(5707), + 5235: uint16(18728), + 5236: uint16(18727), + 5237: uint16(7183), + 5238: uint16(6195), + 5239: uint16(15622), + 5240: uint16(18729), + 5241: uint16(7216), + 5242: uint16(4632), + 5243: uint16(18730), + 5244: uint16(4145), + 5245: uint16(7478), + 5246: uint16(18731), + 5247: uint16(6196), + 5248: uint16(18732), + 5249: uint16(3904), + 5250: uint16(10268), + 5251: uint16(18733), + 5252: uint16(7753), + 5253: uint16(18740), + 5254: uint16(18737), + 5255: uint16(8782), + 5256: uint16(18738), + 5257: uint16(18735), + 5258: uint16(5437), + 5259: uint16(18734), + 5260: uint16(18741), + 5261: uint16(5653), + 5262: uint16(8509), + 5263: uint16(18747), + 5264: uint16(18743), + 5265: uint16(8468), + 5266: uint16(18742), + 5267: uint16(18745), + 5268: uint16(18736), + 5269: uint16(18746), + 5270: uint16(18748), + 5271: uint16(10062), + 5272: uint16(18744), + 5273: uint16(18749), + 5274: uint16(18751), + 5275: uint16(5938), + 5276: uint16(18739), + 5277: uint16(3872), + 5278: uint16(18750), + 5279: uint16(6458), + 5280: uint16(11605), + 5281: uint16(18752), + 5282: uint16(18753), + 5283: uint16(8276), + 5284: uint16(11521), + 5285: uint16(18754), + 5286: uint16(11284), + 5287: uint16(18755), + 5288: uint16(18756), + 5289: uint16(10563), + 5290: uint16(18757), + 5291: uint16(6431), + 5292: uint16(11522), + 5293: uint16(18762), + 5294: uint16(18763), + 5295: uint16(7479), + 5296: uint16(18761), + 5297: uint16(11334), + 5298: uint16(18758), + 5299: uint16(18760), + 5300: uint16(7964), + 5301: uint16(7773), + 5302: uint16(18759), + 5303: uint16(18764), + 5304: uint16(10498), + 5305: uint16(18766), + 5306: uint16(18765), + 5307: uint16(4683), + 5308: uint16(10762), + 5309: uint16(18767), + 5310: uint16(18779), + 5311: uint16(18769), + 5312: uint16(18770), + 5313: uint16(18771), + 5314: uint16(18772), + 5315: uint16(18776), + 5316: uint16(18777), + 5317: uint16(18775), + 5318: uint16(18773), + 5319: uint16(18768), + 5320: uint16(18774), + 5321: uint16(18778), + 5322: uint16(20246), + 5323: uint16(4359), + 5324: uint16(18781), + 5325: uint16(5438), + 5326: uint16(18780), + 5327: uint16(18945), + 5328: uint16(18944), + 5329: uint16(18947), + 5330: uint16(18946), + 5331: uint16(18948), + 5332: uint16(7184), + 5333: uint16(18949), + 5334: uint16(18950), + 5335: uint16(18951), + 5336: uint16(7965), + 5337: uint16(11318), + 5338: uint16(18952), + 5339: uint16(10499), + 5340: uint16(9765), + 5341: uint16(18953), + 5342: uint16(18954), + 5343: uint16(5898), + 5344: uint16(5131), + 5345: uint16(18955), + 5346: uint16(6730), + 5347: uint16(9760), + 5348: uint16(18956), + 5349: uint16(4655), + 5350: uint16(18957), + 5351: uint16(18959), + 5352: uint16(11350), + 5353: uint16(18958), + 5354: uint16(7717), + 5355: uint16(18960), + 5356: uint16(18961), + 5357: uint16(18962), + 5358: uint16(4912), + 5359: uint16(18963), + 5360: uint16(18964), + 5361: uint16(18965), + 5362: uint16(18966), + 5363: uint16(4656), + 5364: uint16(18967), + 5365: uint16(18968), + 5366: uint16(18969), + 5367: uint16(4433), + 5368: uint16(7687), + 5369: uint16(18970), + 5370: uint16(18971), + 5371: uint16(18972), + 5372: uint16(5919), + 5373: uint16(9050), + 5374: uint16(18973), + 5375: uint16(5686), + 5376: uint16(7733), + 5377: uint16(18976), + 5378: uint16(9475), + 5379: uint16(18975), + 5380: uint16(5648), + 5381: uint16(18974), + 5382: uint16(8534), + 5383: uint16(5132), + 5384: uint16(18977), + 5385: uint16(18978), + 5386: uint16(7480), + 5387: uint16(5708), + 5388: uint16(18979), + 5389: uint16(10763), + 5390: uint16(7998), + 5391: uint16(5205), + 5392: uint16(11092), + 5393: uint16(8233), + 5394: uint16(18980), + 5395: uint16(7718), + 5396: uint16(8783), + 5397: uint16(7481), + 5398: uint16(18981), + 5399: uint16(18984), + 5400: uint16(18985), + 5401: uint16(6429), + 5402: uint16(8481), + 5403: uint16(18983), + 5404: uint16(7482), + 5405: uint16(10269), + 5406: uint16(18982), + 5407: uint16(6731), + 5408: uint16(4146), + 5409: uint16(18989), + 5410: uint16(5687), + 5411: uint16(6733), + 5412: uint16(6732), + 5413: uint16(11820), + 5414: uint16(18988), + 5415: uint16(18987), + 5416: uint16(8198), + 5417: uint16(5164), + 5418: uint16(11810), + 5419: uint16(4633), + 5420: uint16(7483), + 5421: uint16(18986), + 5422: uint16(18991), + 5423: uint16(18992), + 5424: uint16(18990), + 5425: uint16(5943), + 5426: uint16(11295), + 5427: uint16(6734), + 5428: uint16(9734), + 5429: uint16(18995), + 5430: uint16(7967), + 5431: uint16(8737), + 5432: uint16(11285), + 5433: uint16(18998), + 5434: uint16(5963), + 5435: uint16(7966), + 5436: uint16(18994), + 5437: uint16(18999), + 5438: uint16(5964), + 5439: uint16(18996), + 5440: uint16(18997), + 5441: uint16(18993), + 5442: uint16(8001), + 5443: uint16(9512), + 5444: uint16(8718), + 5445: uint16(4412), + 5446: uint16(10063), + 5447: uint16(5154), + 5448: uint16(8979), + 5449: uint16(19002), + 5450: uint16(19000), + 5451: uint16(8747), + 5452: uint16(7968), + 5453: uint16(4913), + 5454: uint16(19001), + 5455: uint16(7738), + 5456: uint16(11561), + 5457: uint16(11807), + 5458: uint16(19003), + 5459: uint16(19014), + 5460: uint16(8980), + 5461: uint16(19013), + 5462: uint16(19010), + 5463: uint16(19018), + 5464: uint16(19011), + 5465: uint16(19007), + 5466: uint16(9051), + 5467: uint16(19006), + 5468: uint16(19004), + 5469: uint16(11264), + 5470: uint16(6735), + 5471: uint16(19008), + 5472: uint16(19005), + 5473: uint16(19012), + 5474: uint16(7251), + 5475: uint16(5920), + 5476: uint16(8537), + 5477: uint16(10788), + 5478: uint16(4153), + 5479: uint16(3905), + 5480: uint16(9476), + 5481: uint16(19016), + 5482: uint16(19015), + 5483: uint16(9541), + 5484: uint16(19020), + 5485: uint16(19009), + 5486: uint16(19019), + 5487: uint16(19021), + 5488: uint16(5899), + 5489: uint16(19017), + 5490: uint16(6197), + 5491: uint16(6964), + 5492: uint16(19022), + 5493: uint16(11319), + 5494: uint16(19025), + 5495: uint16(19028), + 5496: uint16(19026), + 5497: uint16(10260), + 5498: uint16(19023), + 5499: uint16(5439), + 5500: uint16(19027), + 5501: uint16(19029), + 5502: uint16(19033), + 5503: uint16(19030), + 5504: uint16(19032), + 5505: uint16(19031), + 5506: uint16(19034), + 5507: uint16(6928), + 5508: uint16(19036), + 5509: uint16(19035), + 5510: uint16(10311), + 5511: uint16(19200), + 5512: uint16(5688), + 5513: uint16(19037), + 5514: uint16(19201), + 5515: uint16(19202), + 5516: uint16(5155), + 5517: uint16(17696), + 5518: uint16(7512), + 5519: uint16(19203), + 5520: uint16(5965), + 5521: uint16(19204), + 5522: uint16(19205), + 5523: uint16(6685), + 5524: uint16(14637), + 5525: uint16(19206), + 5526: uint16(19207), + 5527: uint16(7185), + 5528: uint16(19208), + 5529: uint16(19209), + 5530: uint16(19210), + 5531: uint16(19211), + 5532: uint16(19212), + 5533: uint16(8714), + 5534: uint16(19213), + 5535: uint16(19215), + 5536: uint16(19214), + 5537: uint16(9477), + 5538: uint16(19216), + 5539: uint16(10764), + 5540: uint16(19217), + 5541: uint16(19218), + 5542: uint16(19219), + 5543: uint16(19220), + 5544: uint16(9529), + 5545: uint16(7484), + 5546: uint16(19221), + 5547: uint16(6218), + 5548: uint16(12045), + 5549: uint16(19222), + 5550: uint16(19223), + 5551: uint16(10270), + 5552: uint16(19224), + 5553: uint16(19232), + 5554: uint16(19225), + 5555: uint16(19227), + 5556: uint16(19226), + 5557: uint16(19228), + 5558: uint16(10789), + 5559: uint16(19229), + 5560: uint16(19230), + 5561: uint16(19231), + 5562: uint16(19233), + 5563: uint16(4620), + 5564: uint16(9030), + 5565: uint16(10312), + 5566: uint16(6465), + 5567: uint16(6198), + 5568: uint16(10286), + 5569: uint16(4414), + 5570: uint16(10029), + 5571: uint16(19236), + 5572: uint16(4914), + 5573: uint16(7988), + 5574: uint16(19235), + 5575: uint16(19240), + 5576: uint16(8792), + 5577: uint16(11074), + 5578: uint16(19238), + 5579: uint16(19239), + 5580: uint16(5133), + 5581: uint16(19241), + 5582: uint16(9794), + 5583: uint16(8510), + 5584: uint16(10064), + 5585: uint16(9244), + 5586: uint16(19237), + 5587: uint16(10790), + 5588: uint16(4427), + 5589: uint16(19243), + 5590: uint16(11783), + 5591: uint16(8993), + 5592: uint16(11812), + 5593: uint16(6736), + 5594: uint16(19242), + 5595: uint16(8464), + 5596: uint16(19259), + 5597: uint16(8199), + 5598: uint16(9559), + 5599: uint16(10287), + 5600: uint16(19246), + 5601: uint16(6686), + 5602: uint16(6737), + 5603: uint16(7485), + 5604: uint16(9796), + 5605: uint16(5900), + 5606: uint16(19245), + 5607: uint16(19244), + 5608: uint16(10313), + 5609: uint16(6944), + 5610: uint16(9265), + 5611: uint16(19248), + 5612: uint16(19249), + 5613: uint16(6199), + 5614: uint16(19247), + 5615: uint16(19250), + 5616: uint16(19251), + 5617: uint16(19253), + 5618: uint16(8450), + 5619: uint16(19252), + 5620: uint16(4933), + 5621: uint16(19255), + 5622: uint16(19254), + 5623: uint16(19256), + 5624: uint16(19258), + 5625: uint16(19260), + 5626: uint16(19261), + 5627: uint16(7989), + 5628: uint16(6958), + 5629: uint16(19262), + 5630: uint16(4657), + 5631: uint16(19263), + 5632: uint16(8277), + 5633: uint16(19264), + 5634: uint16(19265), + 5635: uint16(10314), + 5636: uint16(5134), + 5637: uint16(19266), + 5638: uint16(8981), + 5639: uint16(4154), + 5640: uint16(19267), + 5641: uint16(6992), + 5642: uint16(7765), + 5643: uint16(8460), + 5644: uint16(19270), + 5645: uint16(19269), + 5646: uint16(19268), + 5647: uint16(19276), + 5648: uint16(19274), + 5649: uint16(19271), + 5650: uint16(19273), + 5651: uint16(19272), + 5652: uint16(19275), + 5653: uint16(5206), + 5654: uint16(19279), + 5655: uint16(7990), + 5656: uint16(19280), + 5657: uint16(5944), + 5658: uint16(19277), + 5659: uint16(19278), + 5660: uint16(11784), + 5661: uint16(8982), + 5662: uint16(8200), + 5663: uint16(19281), + 5664: uint16(19284), + 5665: uint16(19282), + 5666: uint16(19283), + 5667: uint16(11320), + 5668: uint16(9478), + 5669: uint16(19287), + 5670: uint16(19285), + 5671: uint16(19286), + 5672: uint16(19288), + 5673: uint16(19464), + 5674: uint16(19291), + 5675: uint16(19292), + 5676: uint16(19290), + 5677: uint16(19289), + 5678: uint16(9052), + 5679: uint16(19456), + 5680: uint16(19460), + 5681: uint16(19457), + 5682: uint16(19293), + 5683: uint16(19458), + 5684: uint16(19459), + 5685: uint16(19466), + 5686: uint16(19461), + 5687: uint16(7991), + 5688: uint16(19463), + 5689: uint16(19465), + 5690: uint16(19462), + 5691: uint16(19468), + 5692: uint16(7186), + 5693: uint16(19467), + 5694: uint16(19469), + 5695: uint16(19470), + 5696: uint16(19473), + 5697: uint16(19472), + 5698: uint16(19471), + 5699: uint16(19475), + 5700: uint16(19474), + 5701: uint16(11093), + 5702: uint16(19477), + 5703: uint16(19476), + 5704: uint16(19478), + 5705: uint16(19479), + 5706: uint16(19481), + 5707: uint16(19480), + 5708: uint16(7719), + 5709: uint16(19482), + 5710: uint16(5452), + 5711: uint16(19483), + 5712: uint16(19485), + 5713: uint16(19486), + 5714: uint16(19487), + 5715: uint16(19484), + 5716: uint16(19488), + 5717: uint16(6965), + 5718: uint16(19489), + 5719: uint16(5135), + 5720: uint16(5650), + 5721: uint16(5901), + 5722: uint16(19490), + 5723: uint16(9551), + 5724: uint16(9245), + 5725: uint16(19491), + 5726: uint16(19494), + 5727: uint16(6931), + 5728: uint16(19493), + 5729: uint16(19492), + 5730: uint16(5689), + 5731: uint16(19495), + 5732: uint16(4658), + 5733: uint16(19497), + 5734: uint16(6459), + 5735: uint16(19496), + 5736: uint16(19505), + 5737: uint16(19499), + 5738: uint16(19501), + 5739: uint16(10564), + 5740: uint16(19498), + 5741: uint16(19500), + 5742: uint16(19504), + 5743: uint16(19502), + 5744: uint16(5136), + 5745: uint16(19503), + 5746: uint16(19506), + 5747: uint16(9785), + 5748: uint16(11575), + 5749: uint16(7187), + 5750: uint16(19507), + 5751: uint16(11265), + 5752: uint16(19509), + 5753: uint16(19508), + 5754: uint16(19512), + 5755: uint16(11296), + 5756: uint16(19511), + 5757: uint16(4684), + 5758: uint16(19510), + 5759: uint16(19515), + 5760: uint16(19514), + 5761: uint16(19513), + 5762: uint16(9233), + 5763: uint16(19516), + 5764: uint16(19517), + 5765: uint16(19518), + 5766: uint16(6219), + 5767: uint16(5636), + 5768: uint16(19519), + 5769: uint16(19520), + 5770: uint16(19521), + 5771: uint16(7720), + 5772: uint16(19522), + 5773: uint16(6924), + 5774: uint16(19523), + 5775: uint16(19524), + 5776: uint16(12544), + 5777: uint16(12381), + 5778: uint16(19525), + 5779: uint16(17487), + 5780: uint16(19526), + 5781: uint16(8707), + 5782: uint16(7690), + 5783: uint16(9759), + 5784: uint16(19527), + 5785: uint16(10548), + 5786: uint16(9011), + 5787: uint16(6237), + 5788: uint16(8712), + 5789: uint16(4105), + 5790: uint16(10839), + 5791: uint16(7734), + 5792: uint16(5693), + 5793: uint16(5440), + 5794: uint16(10549), + 5795: uint16(19528), + 5796: uint16(19530), + 5797: uint16(19529), + 5798: uint16(4415), + 5799: uint16(9557), + 5800: uint16(19531), + 5801: uint16(9814), + 5802: uint16(9234), + 5803: uint16(19532), + 5804: uint16(7217), + 5805: uint16(19534), + 5806: uint16(11041), + 5807: uint16(19549), + 5808: uint16(19536), + 5809: uint16(19537), + 5810: uint16(9000), + 5811: uint16(8511), + 5812: uint16(8278), + 5813: uint16(9479), + 5814: uint16(19535), + 5815: uint16(5172), + 5816: uint16(19544), + 5817: uint16(19541), + 5818: uint16(19716), + 5819: uint16(9480), + 5820: uint16(8767), + 5821: uint16(19538), + 5822: uint16(9053), + 5823: uint16(9266), + 5824: uint16(19539), + 5825: uint16(19543), + 5826: uint16(7743), + 5827: uint16(9798), + 5828: uint16(9003), + 5829: uint16(7969), + 5830: uint16(19542), + 5831: uint16(8461), + 5832: uint16(8451), + 5833: uint16(19540), + 5834: uint16(3848), + 5835: uint16(11777), + 5836: uint16(19545), + 5837: uint16(8512), + 5838: uint16(7188), + 5839: uint16(7721), + 5840: uint16(19547), + 5841: uint16(19546), + 5842: uint16(3918), + 5843: uint16(19548), + 5844: uint16(10254), + 5845: uint16(19718), + 5846: uint16(9530), + 5847: uint16(7754), + 5848: uint16(8760), + 5849: uint16(5463), + 5850: uint16(19717), + 5851: uint16(11286), + 5852: uint16(4126), + 5853: uint16(10550), + 5854: uint16(4416), + 5855: uint16(19712), + 5856: uint16(19713), + 5857: uint16(19714), + 5858: uint16(19715), + 5859: uint16(9498), + 5860: uint16(8706), + 5861: uint16(3906), + 5862: uint16(19719), + 5863: uint16(19720), + 5864: uint16(21250), + 5865: uint16(8476), + 5866: uint16(19721), + 5867: uint16(4178), + 5868: uint16(8235), + 5869: uint16(5902), + 5870: uint16(11321), + 5871: uint16(19722), + 5872: uint16(9227), + 5873: uint16(8279), + 5874: uint16(6966), + 5875: uint16(19723), + 5876: uint16(19726), + 5877: uint16(7236), + 5878: uint16(19724), + 5879: uint16(8202), + 5880: uint16(8201), + 5881: uint16(3907), + 5882: uint16(11562), + 5883: uint16(19728), + 5884: uint16(10065), + 5885: uint16(19730), + 5886: uint16(19729), + 5887: uint16(19727), + 5888: uint16(16963), + 5889: uint16(4915), + 5890: uint16(19533), + 5891: uint16(19732), + 5892: uint16(19731), + 5893: uint16(19733), + 5894: uint16(11287), + 5895: uint16(9536), + 5896: uint16(10765), + 5897: uint16(19734), + 5898: uint16(6968), + 5899: uint16(19735), + 5900: uint16(19736), + 5901: uint16(19737), + 5902: uint16(9216), + 5903: uint16(3913), + 5904: uint16(6200), + 5905: uint16(11801), + 5906: uint16(19741), + 5907: uint16(5651), + 5908: uint16(19738), + 5909: uint16(19739), + 5910: uint16(10323), + 5911: uint16(4659), + 5912: uint16(11288), + 5913: uint16(5406), + 5914: uint16(9267), + 5915: uint16(19742), + 5916: uint16(19743), + 5917: uint16(19744), + 5918: uint16(9217), + 5919: uint16(19746), + 5920: uint16(19745), + 5921: uint16(9522), + 5922: uint16(19747), + 5923: uint16(7189), + 5924: uint16(6975), + 5925: uint16(9786), + 5926: uint16(8784), + 5927: uint16(6993), + 5928: uint16(7755), + 5929: uint16(19748), + 5930: uint16(19749), + 5931: uint16(7740), + 5932: uint16(19750), + 5933: uint16(19751), + 5934: uint16(19752), + 5935: uint16(11342), + 5936: uint16(7190), + 5937: uint16(19754), + 5938: uint16(19753), + 5939: uint16(6201), + 5940: uint16(6226), + 5941: uint16(6687), + 5942: uint16(19757), + 5943: uint16(7237), + 5944: uint16(19756), + 5945: uint16(19755), + 5946: uint16(8520), + 5947: uint16(5966), + 5948: uint16(7970), + 5949: uint16(9999), + 5950: uint16(7192), + 5951: uint16(19758), + 5952: uint16(7486), + 5953: uint16(19761), + 5954: uint16(19759), + 5955: uint16(19760), + 5956: uint16(19763), + 5957: uint16(19762), + 5958: uint16(7513), + 5959: uint16(19764), + 5960: uint16(19765), + 5961: uint16(19766), + 5962: uint16(10031), + 5963: uint16(6450), + 5964: uint16(6976), + 5965: uint16(19767), + 5966: uint16(19768), + 5967: uint16(11523), + 5968: uint16(7204), + 5969: uint16(11085), + 5970: uint16(11563), + 5971: uint16(19769), + 5972: uint16(5441), + 5973: uint16(19770), + 5974: uint16(9218), + 5975: uint16(19773), + 5976: uint16(4695), + 5977: uint16(7722), + 5978: uint16(19771), + 5979: uint16(19772), + 5980: uint16(9023), + 5981: uint16(10804), + 5982: uint16(5467), + 5983: uint16(19775), + 5984: uint16(19776), + 5985: uint16(19774), + 5986: uint16(19778), + 5987: uint16(9534), + 5988: uint16(4642), + 5989: uint16(19782), + 5990: uint16(19779), + 5991: uint16(19781), + 5992: uint16(19777), + 5993: uint16(20014), + 5994: uint16(19780), + 5995: uint16(11594), + 5996: uint16(5945), + 5997: uint16(19790), + 5998: uint16(9235), + 5999: uint16(19785), + 6000: uint16(19788), + 6001: uint16(19786), + 6002: uint16(19791), + 6003: uint16(19792), + 6004: uint16(19784), + 6005: uint16(19797), + 6006: uint16(4179), + 6007: uint16(19783), + 6008: uint16(9996), + 6009: uint16(19787), + 6010: uint16(7487), + 6011: uint16(6202), + 6012: uint16(10791), + 6013: uint16(5443), + 6014: uint16(7205), + 6015: uint16(9499), + 6016: uint16(8204), + 6017: uint16(19795), + 6018: uint16(19789), + 6019: uint16(19794), + 6020: uint16(11042), + 6021: uint16(8983), + 6022: uint16(19796), + 6023: uint16(19793), + 6024: uint16(8203), + 6025: uint16(19800), + 6026: uint16(19799), + 6027: uint16(19798), + 6028: uint16(10766), + 6029: uint16(7258), + 6030: uint16(19801), + 6031: uint16(10558), + 6032: uint16(4147), + 6033: uint16(10277), + 6034: uint16(8785), + 6035: uint16(5207), + 6036: uint16(19803), + 6037: uint16(6204), + 6038: uint16(6667), + 6039: uint16(19802), + 6040: uint16(7756), + 6041: uint16(7757), + 6042: uint16(19968), + 6043: uint16(19970), + 6044: uint16(7514), + 6045: uint16(19969), + 6046: uint16(19971), + 6047: uint16(5426), + 6048: uint16(10276), + 6049: uint16(6977), + 6050: uint16(11778), + 6051: uint16(19805), + 6052: uint16(6487), + 6053: uint16(11806), + 6054: uint16(19973), + 6055: uint16(19972), + 6056: uint16(19974), + 6057: uint16(19804), + 6058: uint16(9544), + 6059: uint16(9268), + 6060: uint16(9014), + 6061: uint16(19979), + 6062: uint16(8738), + 6063: uint16(19975), + 6064: uint16(19976), + 6065: uint16(5644), + 6066: uint16(19978), + 6067: uint16(5903), + 6068: uint16(19977), + 6069: uint16(7488), + 6070: uint16(4696), + 6071: uint16(19983), + 6072: uint16(6430), + 6073: uint16(8280), + 6074: uint16(9001), + 6075: uint16(4634), + 6076: uint16(19981), + 6077: uint16(19982), + 6078: uint16(8994), + 6079: uint16(19980), + 6080: uint16(19984), + 6081: uint16(19990), + 6082: uint16(19993), + 6083: uint16(19992), + 6084: uint16(9228), + 6085: uint16(19985), + 6086: uint16(19986), + 6087: uint16(19989), + 6088: uint16(19991), + 6089: uint16(5407), + 6090: uint16(19994), + 6091: uint16(19988), + 6092: uint16(19987), + 6093: uint16(19998), + 6094: uint16(19999), + 6095: uint16(20000), + 6096: uint16(19997), + 6097: uint16(19996), + 6098: uint16(7489), + 6099: uint16(9481), + 6100: uint16(19995), + 6101: uint16(20004), + 6102: uint16(20002), + 6103: uint16(20003), + 6104: uint16(20001), + 6105: uint16(8535), + 6106: uint16(20005), + 6107: uint16(20006), + 6108: uint16(20008), + 6109: uint16(4916), + 6110: uint16(20007), + 6111: uint16(11097), + 6112: uint16(20019), + 6113: uint16(20009), + 6114: uint16(20012), + 6115: uint16(20010), + 6116: uint16(20011), + 6117: uint16(20013), + 6118: uint16(20015), + 6119: uint16(20016), + 6120: uint16(20017), + 6121: uint16(20020), + 6122: uint16(20018), + 6123: uint16(20021), + 6124: uint16(20023), + 6125: uint16(20022), + 6126: uint16(8984), + 6127: uint16(11078), + 6128: uint16(20024), + 6129: uint16(8205), + 6130: uint16(20025), + 6131: uint16(10531), + 6132: uint16(20026), + 6133: uint16(4618), + 6134: uint16(4123), + 6135: uint16(4918), + 6136: uint16(4917), + 6137: uint16(20027), + 6138: uint16(20028), + 6139: uint16(20029), + 6140: uint16(20030), + 6141: uint16(20031), + 6142: uint16(4919), + 6143: uint16(4660), + 6144: uint16(6205), + 6145: uint16(10005), + 6146: uint16(20033), + 6147: uint16(20032), + 6148: uint16(20034), + 6149: uint16(4155), + 6150: uint16(20037), + 6151: uint16(20036), + 6152: uint16(20035), + 6153: uint16(20038), + 6154: uint16(20041), + 6155: uint16(3878), + 6156: uint16(20039), + 6157: uint16(20043), + 6158: uint16(20042), + 6159: uint16(20045), + 6160: uint16(20044), + 6161: uint16(20046), + 6162: uint16(9485), + 6163: uint16(20047), + 6164: uint16(20048), + 6165: uint16(20050), + 6166: uint16(20049), + 6167: uint16(10315), + 6168: uint16(20051), + 6169: uint16(20052), + 6170: uint16(6468), + 6171: uint16(20053), + 6172: uint16(20054), + 6173: uint16(10792), + 6174: uint16(8234), + 6175: uint16(3843), + 6176: uint16(8490), + 6177: uint16(20055), + 6178: uint16(10316), + 6179: uint16(20058), + 6180: uint16(20056), + 6181: uint16(6206), + 6182: uint16(20057), + 6183: uint16(5921), + 6184: uint16(10532), + 6185: uint16(20060), + 6186: uint16(20224), + 6187: uint16(20061), + 6188: uint16(20225), + 6189: uint16(4096), + 6190: uint16(7735), + 6191: uint16(7259), + 6192: uint16(4920), + 6193: uint16(20226), + 6194: uint16(9797), + 6195: uint16(20228), + 6196: uint16(4097), + 6197: uint16(20227), + 6198: uint16(8995), + 6199: uint16(11564), + 6200: uint16(9482), + 6201: uint16(20059), + 6202: uint16(11525), + 6203: uint16(5904), + 6204: uint16(11322), + 6205: uint16(5464), + 6206: uint16(11539), + 6207: uint16(5639), + 6208: uint16(8513), + 6209: uint16(17920), + 6210: uint16(20229), + 6211: uint16(4619), + 6212: uint16(7758), + 6213: uint16(4661), + 6214: uint16(20231), + 6215: uint16(20232), + 6216: uint16(20230), + 6217: uint16(5699), + 6218: uint16(6460), + 6219: uint16(7490), + 6220: uint16(4098), + 6221: uint16(11576), + 6222: uint16(20234), + 6223: uint16(19725), + 6224: uint16(20233), + 6225: uint16(20237), + 6226: uint16(20235), + 6227: uint16(20236), + 6228: uint16(20238), + 6229: uint16(20239), + 6230: uint16(11595), + 6231: uint16(20240), + 6232: uint16(20241), + 6233: uint16(7976), + 6234: uint16(10010), + 6235: uint16(7772), + 6236: uint16(4934), + 6237: uint16(11289), + 6238: uint16(4428), + 6239: uint16(7191), + 6240: uint16(5946), + 6241: uint16(20244), + 6242: uint16(20243), + 6243: uint16(6738), + 6244: uint16(20245), + 6245: uint16(20242), + 6246: uint16(6663), + 6247: uint16(20249), + 6248: uint16(18700), + 6249: uint16(12597), + 6250: uint16(7766), + 6251: uint16(20247), + 6252: uint16(11524), + 6253: uint16(9552), + 6254: uint16(4106), + 6255: uint16(8002), + 6256: uint16(6933), + 6257: uint16(10518), + 6258: uint16(4127), + 6259: uint16(11596), + 6260: uint16(11338), + 6261: uint16(20250), + 6262: uint16(9252), + 6263: uint16(7002), + 6264: uint16(20251), + 6265: uint16(20252), + 6266: uint16(7723), + 6267: uint16(20253), + 6268: uint16(11597), + 6269: uint16(20248), + 6270: uint16(20255), + 6271: uint16(20257), + 6272: uint16(20256), + 6273: uint16(20254), + 6274: uint16(20258), + 6275: uint16(20259), + 6276: uint16(8281), + 6277: uint16(4417), + 6278: uint16(20260), + 6279: uint16(11031), + 6280: uint16(20261), + 6281: uint16(20262), + 6282: uint16(11785), + 6283: uint16(14864), + 6284: uint16(20263), + 6285: uint16(20264), + 6286: uint16(20265), + 6287: uint16(20269), + 6288: uint16(20266), + 6289: uint16(20267), + 6290: uint16(20268), + 6291: uint16(20270), + 6292: uint16(7971), + 6293: uint16(11094), + 6294: uint16(7972), + 6295: uint16(20271), + 6296: uint16(10066), + 6297: uint16(20272), + 6298: uint16(21042), + 6299: uint16(11051), + 6300: uint16(20273), + 6301: uint16(20274), + 6302: uint16(20275), + 6303: uint16(4662), + 6304: uint16(20277), + 6305: uint16(7736), + 6306: uint16(20278), + 6307: uint16(5635), + 6308: uint16(20279), + 6309: uint16(20283), + 6310: uint16(20281), + 6311: uint16(20282), + 6312: uint16(4690), + 6313: uint16(20280), + 6314: uint16(20284), + 6315: uint16(20285), + 6316: uint16(3879), + 6317: uint16(20286), + 6318: uint16(20287), + 6319: uint16(7491), + 6320: uint16(20288), + 6321: uint16(5158), + 6322: uint16(20291), + 6323: uint16(20290), + 6324: uint16(20289), + 6325: uint16(19024), + 6326: uint16(10555), + 6327: uint16(20292), + 6328: uint16(20293), + 6329: uint16(20294), + 6330: uint16(20295), + 6331: uint16(20296), + 6332: uint16(20297), + 6333: uint16(4921), + 6334: uint16(20298), + 6335: uint16(20299), + 6336: uint16(9730), + 6337: uint16(20301), + 6338: uint16(4378), + 6339: uint16(20304), + 6340: uint16(20303), + 6341: uint16(4099), + 6342: uint16(5408), + 6343: uint16(10534), + 6344: uint16(8985), + 6345: uint16(6401), + 6346: uint16(6207), + 6347: uint16(7238), + 6348: uint16(7739), + 6349: uint16(20306), + 6350: uint16(20305), + 6351: uint16(11297), + 6352: uint16(4935), + 6353: uint16(10033), + 6354: uint16(9531), + 6355: uint16(7771), + 6356: uint16(11565), + 6357: uint16(5690), + 6358: uint16(20309), + 6359: uint16(20308), + 6360: uint16(10794), + 6361: uint16(9483), + 6362: uint16(4143), + 6363: uint16(20310), + 6364: uint16(20307), + 6365: uint16(10288), + 6366: uint16(11337), + 6367: uint16(20311), + 6368: uint16(20312), + 6369: uint16(20314), + 6370: uint16(8521), + 6371: uint16(4666), + 6372: uint16(4667), + 6373: uint16(20313), + 6374: uint16(4936), + 6375: uint16(5905), + 6376: uint16(4937), + 6377: uint16(9246), + 6378: uint16(11583), + 6379: uint16(5947), + 6380: uint16(20315), + 6381: uint16(20316), + 6382: uint16(20317), + 6383: uint16(20480), + 6384: uint16(20482), + 6385: uint16(20481), + 6386: uint16(10326), + 6387: uint16(20483), + 6388: uint16(20484), + 6389: uint16(20485), + 6390: uint16(20486), + 6391: uint16(20488), + 6392: uint16(20487), + 6393: uint16(20489), + 6394: uint16(10067), + 6395: uint16(17707), + 6396: uint16(7688), + 6397: uint16(5137), + 6398: uint16(20490), + 6399: uint16(20491), + 6400: uint16(12555), + 6401: uint16(15386), + 6402: uint16(10034), + 6403: uint16(3930), + 6404: uint16(3866), + 6405: uint16(6739), + 6406: uint16(10767), + 6407: uint16(7517), + 6408: uint16(20492), + 6409: uint16(11070), + 6410: uint16(20493), + 6411: uint16(11323), + 6412: uint16(4129), + 6413: uint16(6688), + 6414: uint16(20494), + 6415: uint16(4429), + 6416: uint16(20495), + 6417: uint16(20496), + 6418: uint16(20498), + 6419: uint16(20499), + 6420: uint16(20501), + 6421: uint16(20497), + 6422: uint16(20500), + 6423: uint16(4922), + 6424: uint16(20502), + 6425: uint16(20503), + 6426: uint16(20504), + 6427: uint16(20505), + 6428: uint16(20506), + 6429: uint16(20508), + 6430: uint16(20507), + 6431: uint16(20510), + 6432: uint16(20513), + 6433: uint16(20509), + 6434: uint16(20511), + 6435: uint16(20512), + 6436: uint16(20514), + 6437: uint16(5409), + 6438: uint16(6994), + 6439: uint16(20515), + 6440: uint16(20516), + 6441: uint16(6208), + 6442: uint16(20517), + 6443: uint16(4637), + 6444: uint16(9774), + 6445: uint16(20518), + 6446: uint16(20519), + 6447: uint16(8761), + 6448: uint16(9546), + 6449: uint16(20520), + 6450: uint16(9820), + 6451: uint16(8491), + 6452: uint16(4151), + 6453: uint16(5453), + 6454: uint16(5454), + 6455: uint16(8786), + 6456: uint16(20525), + 6457: uint16(5455), + 6458: uint16(4430), + 6459: uint16(20524), + 6460: uint16(20522), + 6461: uint16(20523), + 6462: uint16(20521), + 6463: uint16(20535), + 6464: uint16(20526), + 6465: uint16(20527), + 6466: uint16(20528), + 6467: uint16(20529), + 6468: uint16(20531), + 6469: uint16(20530), + 6470: uint16(7224), + 6471: uint16(20532), + 6472: uint16(20534), + 6473: uint16(5138), + 6474: uint16(20533), + 6475: uint16(8282), + 6476: uint16(5906), + 6477: uint16(20536), + 6478: uint16(8492), + 6479: uint16(20537), + 6480: uint16(9484), + 6481: uint16(20538), + 6482: uint16(20543), + 6483: uint16(20541), + 6484: uint16(20540), + 6485: uint16(20542), + 6486: uint16(20539), + 6487: uint16(20545), + 6488: uint16(20544), + 6489: uint16(20547), + 6490: uint16(5410), + 6491: uint16(20546), + 6492: uint16(20548), + 6493: uint16(20549), + 6494: uint16(20551), + 6495: uint16(20550), + 6496: uint16(20552), + 6497: uint16(20554), + 6498: uint16(20553), + 6499: uint16(6235), + 6500: uint16(20555), + 6501: uint16(20556), + 6502: uint16(4635), + 6503: uint16(20557), + 6504: uint16(20558), + 6505: uint16(7760), + 6506: uint16(20559), + 6507: uint16(20560), + 6508: uint16(20561), + 6509: uint16(20562), + 6510: uint16(6209), + 6511: uint16(20563), + 6512: uint16(20564), + 6513: uint16(20565), + 6514: uint16(20566), + 6515: uint16(20567), + 6516: uint16(10000), + 6517: uint16(20569), + 6518: uint16(10245), + 6519: uint16(20570), + 6520: uint16(20568), + 6521: uint16(20572), + 6522: uint16(20571), + 6523: uint16(20573), + 6524: uint16(20736), + 6525: uint16(20737), + 6526: uint16(20738), + 6527: uint16(20739), + 6528: uint16(20740), + 6529: uint16(20741), + 6530: uint16(20742), + 6531: uint16(20743), + 6532: uint16(20744), + 6533: uint16(20745), + 6534: uint16(20746), + 6535: uint16(20747), + 6536: uint16(20748), + 6537: uint16(20749), + 6538: uint16(15380), + 6539: uint16(20750), + 6540: uint16(17239), + 6541: uint16(5139), + 6542: uint16(4608), + 6543: uint16(6417), + 6544: uint16(20752), + 6545: uint16(20751), + 6546: uint16(11012), + 6547: uint16(20754), + 6548: uint16(20755), + 6549: uint16(20753), + 6550: uint16(20756), + 6551: uint16(10817), + 6552: uint16(20757), + 6553: uint16(5210), + 6554: uint16(11780), + 6555: uint16(20758), + 6556: uint16(20760), + 6557: uint16(3869), + 6558: uint16(20761), + 6559: uint16(10506), + 6560: uint16(20759), + 6561: uint16(20762), + 6562: uint16(20763), + 6563: uint16(20764), + 6564: uint16(20765), + 6565: uint16(20766), + 6566: uint16(10829), + 6567: uint16(6668), + 6568: uint16(6489), + 6569: uint16(8206), + 6570: uint16(20767), + 6571: uint16(20770), + 6572: uint16(20768), + 6573: uint16(20771), + 6574: uint16(5968), + 6575: uint16(20769), + 6576: uint16(20772), + 6577: uint16(20773), + 6578: uint16(20774), + 6579: uint16(20778), + 6580: uint16(6665), + 6581: uint16(8515), + 6582: uint16(20779), + 6583: uint16(20776), + 6584: uint16(20775), + 6585: uint16(20777), + 6586: uint16(5694), + 6587: uint16(20783), + 6588: uint16(20782), + 6589: uint16(20781), + 6590: uint16(3858), + 6591: uint16(20793), + 6592: uint16(20789), + 6593: uint16(20790), + 6594: uint16(20786), + 6595: uint16(20792), + 6596: uint16(20788), + 6597: uint16(4673), + 6598: uint16(11819), + 6599: uint16(20791), + 6600: uint16(20787), + 6601: uint16(20785), + 6602: uint16(20784), + 6603: uint16(20795), + 6604: uint16(20798), + 6605: uint16(20797), + 6606: uint16(20796), + 6607: uint16(10280), + 6608: uint16(20794), + 6609: uint16(3922), + 6610: uint16(20799), + 6611: uint16(20801), + 6612: uint16(4686), + 6613: uint16(20780), + 6614: uint16(4118), + 6615: uint16(20803), + 6616: uint16(20802), + 6617: uint16(20800), + 6618: uint16(8716), + 6619: uint16(10831), + 6620: uint16(11577), + 6621: uint16(20804), + 6622: uint16(20805), + 6623: uint16(20806), + 6624: uint16(20807), + 6625: uint16(20808), + 6626: uint16(8986), + 6627: uint16(20809), + 6628: uint16(10006), + 6629: uint16(20814), + 6630: uint16(20810), + 6631: uint16(20811), + 6632: uint16(10768), + 6633: uint16(11043), + 6634: uint16(9519), + 6635: uint16(20815), + 6636: uint16(20816), + 6637: uint16(9501), + 6638: uint16(20813), + 6639: uint16(20812), + 6640: uint16(4361), + 6641: uint16(20824), + 6642: uint16(20823), + 6643: uint16(4180), + 6644: uint16(20821), + 6645: uint16(20820), + 6646: uint16(20818), + 6647: uint16(4698), + 6648: uint16(20817), + 6649: uint16(6929), + 6650: uint16(4360), + 6651: uint16(6210), + 6652: uint16(20827), + 6653: uint16(20826), + 6654: uint16(20825), + 6655: uint16(20822), + 6656: uint16(20828), + 6657: uint16(20829), + 6658: uint16(20996), + 6659: uint16(20995), + 6660: uint16(20997), + 6661: uint16(4108), + 6662: uint16(20992), + 6663: uint16(20993), + 6664: uint16(6227), + 6665: uint16(11032), + 6666: uint16(20994), + 6667: uint16(10769), + 6668: uint16(21002), + 6669: uint16(20998), + 6670: uint16(21003), + 6671: uint16(21000), + 6672: uint16(20999), + 6673: uint16(5691), + 6674: uint16(21004), + 6675: uint16(21005), + 6676: uint16(21006), + 6677: uint16(21001), + 6678: uint16(20819), + 6679: uint16(21007), + 6680: uint16(9024), + 6681: uint16(21011), + 6682: uint16(21012), + 6683: uint16(21010), + 6684: uint16(21009), + 6685: uint16(21015), + 6686: uint16(21008), + 6687: uint16(21013), + 6688: uint16(21014), + 6689: uint16(21017), + 6690: uint16(21016), + 6691: uint16(21019), + 6692: uint16(21020), + 6693: uint16(21021), + 6694: uint16(11816), + 6695: uint16(21018), + 6696: uint16(8522), + 6697: uint16(6476), + 6698: uint16(21022), + 6699: uint16(21023), + 6700: uint16(21024), + 6701: uint16(21025), + 6702: uint16(21026), + 6703: uint16(5907), + 6704: uint16(21027), + 6705: uint16(21028), + 6706: uint16(6926), + 6707: uint16(21029), + 6708: uint16(21030), + 6709: uint16(21031), + 6710: uint16(21032), + 6711: uint16(21035), + 6712: uint16(21033), + 6713: uint16(11803), + 6714: uint16(21034), + 6715: uint16(11598), + 6716: uint16(21036), + 6717: uint16(11578), + 6718: uint16(21037), + 6719: uint16(9821), + 6720: uint16(21038), + 6721: uint16(21040), + 6722: uint16(21041), + 6723: uint16(21039), + 6724: uint16(6220), + 6725: uint16(11052), + 6726: uint16(10818), + 6727: uint16(13654), + 6728: uint16(15423), + 6729: uint16(10842), + 6730: uint16(4362), + 6731: uint16(21043), + 6732: uint16(5167), + 6733: uint16(21044), + 6734: uint16(21045), + 6735: uint16(21046), + 6736: uint16(6228), + 6737: uint16(21047), + 6738: uint16(16179), + 6739: uint16(11066), + 6740: uint16(8514), + 6741: uint16(21048), + 6742: uint16(21050), + 6743: uint16(21049), + 6744: uint16(21051), + 6745: uint16(21052), + 6746: uint16(21053), + 6747: uint16(21054), + 6748: uint16(21055), + 6749: uint16(21056), + 6750: uint16(21057), + 6751: uint16(21058), + 6752: uint16(21059), + 6753: uint16(21060), + 6754: uint16(21061), + 6755: uint16(21062), + 6756: uint16(21063), + 6757: uint16(9219), + 6758: uint16(5948), + 6759: uint16(21065), + 6760: uint16(8236), + 6761: uint16(21066), + 6762: uint16(21067), + 6763: uint16(10240), + 6764: uint16(21068), + 6765: uint16(21069), + 6766: uint16(16918), + 6767: uint16(19257), + 6768: uint16(20300), + 6769: uint16(21070), + 6770: uint16(21071), + 6771: uint16(21073), + 6772: uint16(21074), + 6773: uint16(21075), + 6774: uint16(11599), + 6775: uint16(21072), + 6776: uint16(21076), + 6777: uint16(21077), + 6778: uint16(21079), + 6779: uint16(21078), + 6780: uint16(21081), + 6781: uint16(21082), + 6782: uint16(21080), + 6783: uint16(11541), + 6784: uint16(21083), + 6785: uint16(21084), + 6786: uint16(16947), + 6787: uint16(21085), + 6788: uint16(9), + 6789: uint16(83), + 6790: uint16(79), + 6791: uint16(82), + 6792: uint16(84), + 6793: uint16(41), + 6794: uint16(42), + 6795: uint16(85), + 6796: uint16(59), + 6797: uint16(3), + 6798: uint16(4), + 6799: uint16(30), + 6800: uint16(527), + 6801: uint16(528), + 6802: uint16(529), + 6803: uint16(530), + 6804: uint16(531), + 6805: uint16(532), + 6806: uint16(533), + 6807: uint16(534), + 6808: uint16(535), + 6809: uint16(536), + 6810: uint16(6), + 6811: uint16(7), + 6812: uint16(66), + 6813: uint16(64), + 6814: uint16(67), + 6815: uint16(8), + 6816: uint16(86), + 6817: uint16(544), + 6818: uint16(545), + 6819: uint16(546), + 6820: uint16(547), + 6821: uint16(548), + 6822: uint16(549), + 6823: uint16(550), + 6824: uint16(551), + 6825: uint16(552), + 6826: uint16(553), + 6827: uint16(554), + 6828: uint16(555), + 6829: uint16(556), + 6830: uint16(557), + 6831: uint16(558), + 6832: uint16(559), + 6833: uint16(560), + 6834: uint16(561), + 6835: uint16(562), + 6836: uint16(563), + 6837: uint16(564), + 6838: uint16(565), + 6839: uint16(566), + 6840: uint16(567), + 6841: uint16(568), + 6842: uint16(569), + 6843: uint16(45), + 6844: uint16(46), + 6845: uint16(15), + 6846: uint16(17), + 6847: uint16(13), + 6848: uint16(576), + 6849: uint16(577), + 6850: uint16(578), + 6851: uint16(579), + 6852: uint16(580), + 6853: uint16(581), + 6854: uint16(582), + 6855: uint16(583), + 6856: uint16(584), + 6857: uint16(585), + 6858: uint16(586), + 6859: uint16(587), + 6860: uint16(588), + 6861: uint16(589), + 6862: uint16(590), + 6863: uint16(591), + 6864: uint16(592), + 6865: uint16(593), + 6866: uint16(594), + 6867: uint16(595), + 6868: uint16(596), + 6869: uint16(597), + 6870: uint16(598), + 6871: uint16(599), + 6872: uint16(600), + 6873: uint16(601), + 6874: uint16(47), + 6875: uint16(34), + 6876: uint16(48), + 6877: uint16(16), + 6878: uint16(78), +} + +func _fuzzycmp(tls *TLS, a uintptr, b uintptr) (r int32) { + for { + if !(**(**uint8)(__ccgo_up(a)) != 0 && **(**uint8)(__ccgo_up(b)) != 0) { + break + } + for **(**uint8)(__ccgo_up(a)) != 0 && uint32(**(**uint8)(__ccgo_up(a)))|uint32(32)-uint32('a') > uint32(26) && Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(a)))-int32('0')) > uint32(10) { + a = a + 1 + } + if uint32(**(**uint8)(__ccgo_up(a)))|uint32(32) != uint32(**(**uint8)(__ccgo_up(b))) { + return int32(1) + } + goto _1 + _1: + ; + a = a + 1 + b = b + 1 + } + return BoolInt32(Int32FromUint8(**(**uint8)(__ccgo_up(a))) != Int32FromUint8(**(**uint8)(__ccgo_up(b)))) +} + +func _find_charmap(tls *TLS, name uintptr) (r Tsize_t) { + var s uintptr + _ = s + if !(**(**int8)(__ccgo_up(name)) != 0) { + name = uintptr(unsafe.Pointer(&_charmaps)) + } /* "utf8" */ + s = uintptr(unsafe.Pointer(&_charmaps)) + for { + if !(**(**uint8)(__ccgo_up(s)) != 0) { + break + } + if !(_fuzzycmp(tls, name, s) != 0) { + for { + if !(**(**uint8)(__ccgo_up(s)) != 0) { + break + } + goto _2 + _2: + ; + s = s + uintptr(_strlen(tls, s)+uint64(1)) + } + return Uint64FromInt64(int64(s+uintptr(1)) - t__predefined_ptrdiff_t(uintptr(unsafe.Pointer(&_charmaps)))) + } + s = s + uintptr(_strlen(tls, s)+uint64(1)) + if !(**(**uint8)(__ccgo_up(s)) != 0) { + if Int32FromUint8(**(**uint8)(__ccgo_up(s + 1))) > int32(0200) { + s = s + uintptr(2) + } else { + s = s + uintptr(uint32(2)+(uint32(64)-uint32(**(**uint8)(__ccgo_up(s + 1))))*uint32(5)) + } + } + goto _1 + _1: + } + return Uint64FromInt32(-Int32FromInt32(1)) +} + +type Tstateful_cd = struct { + Fbase_cd Ticonv_t + Fstate uint32 +} + +func _combine_to_from(tls *TLS, t Tsize_t, f Tsize_t) (r Ticonv_t) { + return uintptr(f<> int32(16) +} + +func _extract_to(tls *TLS, cd Ticonv_t) (r Tsize_t) { + return uint64(cd) >> int32(1) & uint64(0x7fff) +} + +func Xiconv_open(tls *TLS, to uintptr, from uintptr) (r Ticonv_t) { + if __ccgo_strace { + trc("tls=%v to=%v from=%v, (%v:)", tls, to, from, origin(2)) + defer func() { trc("-> %v", r) }() + } + var cd Ticonv_t + var f, t, v1, v2 Tsize_t + var scd uintptr + var v3 bool + _, _, _, _, _, _, _ = cd, f, scd, t, v1, v2, v3 + v1 = _find_charmap(tls, to) + t = v1 + if v3 = v1 == Uint64FromInt32(-Int32FromInt32(1)); !v3 { + v2 = _find_charmap(tls, from) + f = v2 + } + if v3 || v2 == Uint64FromInt32(-Int32FromInt32(1)) || Int32FromUint8(_charmaps[t]) >= int32(0330) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(-Int32FromInt32(1)) + } + cd = _combine_to_from(tls, t, f) + switch Int32FromUint8(_charmaps[f]) { + case int32(UTF_16): + fallthrough + case int32(UTF_32): + fallthrough + case int32(UCS2): + fallthrough + case int32(ISO2022_JP): + scd = Xmalloc(tls, uint64(16)) + if !(scd != 0) { + return uintptr(-Int32FromInt32(1)) + } + (*Tstateful_cd)(unsafe.Pointer(scd)).Fbase_cd = cd + (*Tstateful_cd)(unsafe.Pointer(scd)).Fstate = uint32(0) + cd = scd + } + return cd +} + +func _get_16(tls *TLS, s uintptr, e int32) (r uint32) { + e = e & int32(1) + return Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(e))))<> int32(8)) + **(**uint8)(__ccgo_up(s + uintptr(int32(1)-e))) = uint8(c) +} + +func _get_32(tls *TLS, s uintptr, e int32) (r uint32) { + e = e & int32(3) + return (uint32(**(**uint8)(__ccgo_up(s + uintptr(e))))+0)<> int32(24)) + **(**uint8)(__ccgo_up(s + uintptr(e^int32(1)))) = uint8(c >> int32(16)) + **(**uint8)(__ccgo_up(s + uintptr(e^int32(2)))) = uint8(c >> int32(8)) + **(**uint8)(__ccgo_up(s + uintptr(e^int32(3)))) = uint8(c) +} + +/* Adapt as needed */ + +func _legacy_map(tls *TLS, map1 uintptr, c uint32) (r uint32) { + var x, v1 uint32 + _, _ = x, v1 + if c < Uint32FromInt32(int32(4)*Int32FromUint8(**(**uint8)(__ccgo_up(map1 + uintptr(-Int32FromInt32(1)))))) { + return c + } + x = c - Uint32FromInt32(int32(4)*Int32FromUint8(**(**uint8)(__ccgo_up(map1 + uintptr(-Int32FromInt32(1)))))) + x = Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(map1 + uintptr(x*uint32(5)/uint32(4)))))>>(uint32(2)*x%uint32(8)) | Int32FromUint8(**(**uint8)(__ccgo_up(map1 + uintptr(x*uint32(5)/uint32(4)+uint32(1)))))<<(uint32(8)-uint32(2)*x%uint32(8))&int32(1023)) + if x < uint32(256) { + v1 = x + } else { + v1 = uint32(_legacy_chars[x-uint32(256)]) + } + return v1 +} + +func _uni_to_jis(tls *TLS, c uint32) (r uint32) { + var b, d, i, j, nel uint32 + _, _, _, _, _ = b, d, i, j, nel + nel = uint32(Uint64FromInt64(13758) / Uint64FromInt64(2)) + b = uint32(0) + for { + i = nel / uint32(2) + j = uint32(_rev_jis[b+i]) + d = uint32(**(**uint16)(__ccgo_up(uintptr(unsafe.Pointer(&_jis0208)) + uintptr(j/uint32(256))*188 + uintptr(j%uint32(256))*2))) + if d == c { + return j + uint32(0x2121) + } else { + if nel == uint32(1) { + return uint32(0) + } else { + if c < d { + nel = nel / uint32(2) + } else { + b = b + i + nel = nel - nel/uint32(2) + } + } + } + goto _1 + _1: + } + return r +} + +func Xiconv(tls *TLS, cd Ticonv_t, in uintptr, inb uintptr, out uintptr, outb uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v cd=%v in=%v inb=%v out=%v outb=%v, (%v:)", tls, cd, in, inb, out, outb, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var c, d, from, to, v62 uint32 + var err, i, i1, j, j1, v25, v26, v27 int32 + var k, l, tmplen, tmpx, x Tsize_t + var loc Tlocale_t + var map1, ploc, scd, tomap, v54, v55 uintptr + var totype, type1 uint8 + var _ /* ptmp at bp+48 */ uintptr + var _ /* st at bp+24 */ Tmbstate_t + var _ /* tmp at bp+40 */ struct { + Fwc [0][2]Twchar_t + Fc [8]int8 + } + var _ /* tmp at bp+56 */ [4]int8 + var _ /* wc at bp+32 */ Twchar_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = c, d, err, from, i, i1, j, j1, k, l, loc, map1, ploc, scd, tmplen, tmpx, to, tomap, totype, type1, x, v25, v26, v27, v54, v55, v62 + x = uint64(0) + scd = uintptr(0) + if !(uint64(cd)&Uint64FromInt32(1) != 0) { + scd = cd + cd = (*Tstateful_cd)(unsafe.Pointer(scd)).Fbase_cd + } + to = uint32(_extract_to(tls, cd)) + from = uint32(_extract_from(tls, cd)) + map1 = uintptr(unsafe.Pointer(&_charmaps)) + uintptr(from) + uintptr(1) + tomap = uintptr(unsafe.Pointer(&_charmaps)) + uintptr(to) + uintptr(1) + **(**Tmbstate_t)(__ccgo_up(bp + 24)) = Tmbstate_t{} + type1 = **(**uint8)(__ccgo_up(map1 + uintptr(-Int32FromInt32(1)))) + totype = **(**uint8)(__ccgo_up(tomap + uintptr(-Int32FromInt32(1)))) + ploc = uintptr(___get_tp(tls)) + 152 + loc = **(**Tlocale_t)(__ccgo_up(ploc)) + if !(in != 0) || !(**(**uintptr)(__ccgo_up(in)) != 0) || !(**(**Tsize_t)(__ccgo_up(inb)) != 0) { + return uint64(0) + } + **(**Tlocale_t)(__ccgo_up(ploc)) = uintptr(unsafe.Pointer(&X__c_dot_utf8_locale)) + for { + if !(**(**Tsize_t)(__ccgo_up(inb)) != 0) { + break + } + c = uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(in))))) + l = uint64(1) + switch Int32FromUint8(type1) { + case int32(UTF_8): + goto _2 + case int32(US_ASCII): + goto _3 + case int32(WCHAR_T): + goto _4 + case int32(UTF_32LE): + goto _5 + case int32(UTF_32BE): + goto _6 + case int32(UTF_16LE): + goto _7 + case int32(UTF_16BE): + goto _8 + case int32(UCS2LE): + goto _9 + case int32(UCS2BE): + goto _10 + case int32(UTF_16): + goto _11 + case int32(UCS2): + goto _12 + case int32(UTF_32): + goto _13 + case int32(SHIFT_JIS): + goto _14 + case int32(EUC_JP): + goto _15 + case int32(ISO2022_JP): + goto _16 + case int32(GB2312): + goto _17 + case int32(GBK): + goto _18 + case int32(GB18030): + goto _19 + case int32(BIG5): + goto _20 + case int32(EUC_KR): + goto _21 + default: + goto _22 + } + goto _23 + _2: + ; + if c < uint32(128) { + goto _23 + } + l = Xmbrtowc(tls, bp+32, **(**uintptr)(__ccgo_up(in)), **(**Tsize_t)(__ccgo_up(inb)), bp+24) + if l == Uint64FromInt32(-Int32FromInt32(1)) { + goto ilseq + } + if l == Uint64FromInt32(-Int32FromInt32(2)) { + goto starved + } + c = Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp + 32))) + goto _23 + _3: + ; + if c >= uint32(128) { + goto ilseq + } + goto _23 + _4: + ; + l = uint64(4) + if **(**Tsize_t)(__ccgo_up(inb)) < l { + goto starved + } + c = Uint32FromInt32(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(in))))) + if !(0 != 0) { + goto _24 + } + _6: + ; + _5: + ; + l = uint64(4) + if **(**Tsize_t)(__ccgo_up(inb)) < uint64(4) { + goto starved + } + c = _get_32(tls, **(**uintptr)(__ccgo_up(in)), Int32FromUint8(type1)) + _24: + ; + if c-uint32(0xd800) < uint32(0x800) || c >= uint32(0x110000) { + goto ilseq + } + goto _23 + _10: + ; + _9: + ; + _8: + ; + _7: + ; + l = uint64(2) + if **(**Tsize_t)(__ccgo_up(inb)) < uint64(2) { + goto starved + } + c = _get_16(tls, **(**uintptr)(__ccgo_up(in)), Int32FromUint8(type1)) + if c-Uint32FromInt32(0xdc00) < uint32(0x400) { + goto ilseq + } + if c-Uint32FromInt32(0xd800) < uint32(0x400) { + if Uint32FromInt32(Int32FromUint8(type1)-int32(UCS2BE)) < uint32(2) { + goto ilseq + } + l = uint64(4) + if **(**Tsize_t)(__ccgo_up(inb)) < uint64(4) { + goto starved + } + d = _get_16(tls, **(**uintptr)(__ccgo_up(in))+UintptrFromInt32(2), Int32FromUint8(type1)) + if d-Uint32FromInt32(0xdc00) >= uint32(0x400) { + goto ilseq + } + c = (c-uint32(0xd7c0))< uint32(127) { + d = d - 1 + } + d = d - uint32(64) + } else { + if d-uint32(159) <= Uint32FromInt32(Int32FromInt32(252)-Int32FromInt32(159)) { + c = c + 1 + d = d - uint32(159) + } + } + if c >= uint32(84) { + goto ilseq + } + c = uint32(**(**uint16)(__ccgo_up(uintptr(unsafe.Pointer(&_jis0208)) + uintptr(c)*188 + uintptr(d)*2))) + if !(c != 0) { + goto ilseq + } + goto _23 + _15: + ; + if c < uint32(128) { + goto _23 + } + l = uint64(2) + if **(**Tsize_t)(__ccgo_up(inb)) < uint64(2) { + goto starved + } + d = uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(in)) + UintptrFromInt32(1)))) + if c == uint32(0x8e) { + c = d + if c-uint32(0xa1) > Uint32FromInt32(Int32FromInt32(0xdf)-Int32FromInt32(0xa1)) { + goto ilseq + } + c = c + Uint32FromInt32(Int32FromInt32(0xff61)-Int32FromInt32(0xa1)) + goto _23 + } + c = c - uint32(0xa1) + d = d - uint32(0xa1) + if c >= uint32(84) || d >= uint32(94) { + goto ilseq + } + c = uint32(**(**uint16)(__ccgo_up(uintptr(unsafe.Pointer(&_jis0208)) + uintptr(c)*188 + uintptr(d)*2))) + if !(c != 0) { + goto ilseq + } + goto _23 + _16: + ; + if c >= uint32(128) { + goto ilseq + } + if c == uint32('\033') { + l = uint64(3) + if **(**Tsize_t)(__ccgo_up(inb)) < uint64(3) { + goto starved + } + c = uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(in)) + UintptrFromInt32(1)))) + d = uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(in)) + UintptrFromInt32(2)))) + if c != uint32('(') && c != uint32('$') { + goto ilseq + } + switch Uint32FromInt32(Int32FromInt32(128)*BoolInt32(c == Uint32FromUint8('$'))) + d { + case uint32('B'): + (*Tstateful_cd)(unsafe.Pointer(scd)).Fstate = uint32(0) + goto _1 + case uint32('J'): + (*Tstateful_cd)(unsafe.Pointer(scd)).Fstate = uint32(1) + goto _1 + case uint32('I'): + (*Tstateful_cd)(unsafe.Pointer(scd)).Fstate = uint32(4) + goto _1 + case Uint32FromInt32(Int32FromInt32(128) + Int32FromUint8('@')): + (*Tstateful_cd)(unsafe.Pointer(scd)).Fstate = uint32(2) + goto _1 + case Uint32FromInt32(Int32FromInt32(128) + Int32FromUint8('B')): + (*Tstateful_cd)(unsafe.Pointer(scd)).Fstate = uint32(3) + goto _1 + } + goto ilseq + } + switch (*Tstateful_cd)(unsafe.Pointer(scd)).Fstate { + case uint32(1): + if c == uint32('\\') { + c = uint32(0xa5) + } + if c == uint32('~') { + c = uint32(0x203e) + } + case uint32(2): + fallthrough + case uint32(3): + l = uint64(2) + if **(**Tsize_t)(__ccgo_up(inb)) < uint64(2) { + goto starved + } + d = uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(in)) + UintptrFromInt32(1)))) + c = c - uint32(0x21) + d = d - uint32(0x21) + if c >= uint32(84) || d >= uint32(94) { + goto ilseq + } + c = uint32(**(**uint16)(__ccgo_up(uintptr(unsafe.Pointer(&_jis0208)) + uintptr(c)*188 + uintptr(d)*2))) + if !(c != 0) { + goto ilseq + } + case uint32(4): + if c-uint32(0x60) < uint32(0x1f) { + goto ilseq + } + if c-uint32(0x21) < uint32(0x5e) { + c = c + Uint32FromInt32(Int32FromInt32(0xff61)-Int32FromInt32(0x21)) + } + break + } + goto _23 + _17: + ; + if c < uint32(128) { + goto _23 + } + if c < uint32(0xa1) { + goto ilseq + } + _18: + ; + if c == uint32(128) { + c = uint32(0x20ac) + goto _23 + } + _19: + ; + if c < uint32(128) { + goto _23 + } + c = c - uint32(0x81) + if c >= uint32(126) { + goto ilseq + } + l = uint64(2) + if **(**Tsize_t)(__ccgo_up(inb)) < uint64(2) { + goto starved + } + d = uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(in)) + UintptrFromInt32(1)))) + if d < uint32(0xa1) && Int32FromUint8(type1) == int32(GB2312) { + goto ilseq + } + if d-uint32(0x40) >= uint32(191) || d == uint32(127) { + if d-uint32('0') > uint32(9) || Int32FromUint8(type1) != int32(GB18030) { + goto ilseq + } + l = uint64(4) + if **(**Tsize_t)(__ccgo_up(inb)) < uint64(4) { + goto starved + } + c = (uint32(10)*c + d - uint32('0')) * uint32(1260) + d = uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(in)) + UintptrFromInt32(2)))) + if d-uint32(0x81) > uint32(126) { + goto ilseq + } + c = c + uint32(10)*(d-uint32(0x81)) + d = uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(in)) + UintptrFromInt32(3)))) + if d-uint32('0') > uint32(9) { + goto ilseq + } + c = c + (d - uint32('0')) + c = c + uint32(128) + d = uint32(0) + for { + if !(d <= c) { + break + } + k = uint64(0) + i = 0 + for { + if !(i < int32(126)) { + break + } + j = 0 + for { + if !(j < int32(190)) { + break + } + if uint32(**(**uint16)(__ccgo_up(uintptr(unsafe.Pointer(&_gb18030)) + uintptr(i)*380 + uintptr(j)*2)))-d <= c-d { + k = k + 1 + } + goto _31 + _31: + ; + j = j + 1 + } + goto _30 + _30: + ; + i = i + 1 + } + d = c + uint32(1) + c = uint32(uint64(c) + k) + goto _29 + _29: + } + goto _23 + } + d = d - uint32(0x40) + if d > uint32(63) { + d = d - 1 + } + c = uint32(**(**uint16)(__ccgo_up(uintptr(unsafe.Pointer(&_gb18030)) + uintptr(c)*380 + uintptr(d)*2))) + goto _23 + _20: + ; + if c < uint32(128) { + goto _23 + } + l = uint64(2) + if **(**Tsize_t)(__ccgo_up(inb)) < uint64(2) { + goto starved + } + d = uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(in)) + UintptrFromInt32(1)))) + if d-uint32(0x40) >= Uint32FromInt32(Int32FromInt32(0xff)-Int32FromInt32(0x40)) || d-uint32(0x7f) < Uint32FromInt32(Int32FromInt32(0xa1)-Int32FromInt32(0x7f)) { + goto ilseq + } + d = d - uint32(0x40) + if d > uint32(0x3e) { + d = d - uint32(0x22) + } + if c-uint32(0xa1) >= Uint32FromInt32(Int32FromInt32(0xfa)-Int32FromInt32(0xa1)) { + if c-uint32(0x87) >= Uint32FromInt32(Int32FromInt32(0xff)-Int32FromInt32(0x87)) { + goto ilseq + } + if c < uint32(0xa1) { + c = c - uint32(0x87) + } else { + c = c - Uint32FromInt32(Int32FromInt32(0x87)+(Int32FromInt32(0xfa)-Int32FromInt32(0xa1))) + } + c = Uint32FromInt32(Int32FromUint16(_hkscs[uint32(4867)+(c*uint32(157)+d)/uint32(16)])>>((c*uint32(157)+d)%uint32(16))%int32(2)< **(**Tsize_t)(__ccgo_up(outb)) { + goto toobig + } + if tmpx != 0 { + x = x + 1 + } + Xmemcpy(tls, **(**uintptr)(__ccgo_up(out)), bp+40, tmplen) + **(**uintptr)(__ccgo_up(out)) += uintptr(tmplen) + **(**Tsize_t)(__ccgo_up(outb)) -= tmplen + goto _1 + } + if !(c != 0) { + goto ilseq + } + goto _23 + } + c = c - uint32(0xa1) + c = Uint32FromInt32(Int32FromUint16(**(**uint16)(__ccgo_up(uintptr(unsafe.Pointer(&_big5)) + uintptr(c)*314 + uintptr(d)*2))) | BoolInt32(c == uint32(0x27) && (d == uint32(0x3a) || d == uint32(0x3c) || d == uint32(0x42)))<= uint32(93) || d >= uint32(94) { + c = c + Uint32FromInt32(Int32FromInt32(0xa1)-Int32FromInt32(0x81)) + d = d + uint32(0xa1) + if c >= uint32(93) || c >= Uint32FromInt32(Int32FromInt32(0xc6)-Int32FromInt32(0x81)) && d > uint32(0x52) { + goto ilseq + } + if d-uint32('A') < uint32(26) { + d = d - uint32('A') + } else { + if d-uint32('a') < uint32(26) { + d = d - uint32('a') + uint32(26) + } else { + if d-uint32(0x81) < Uint32FromInt32(Int32FromInt32(0xff)-Int32FromInt32(0x81)) { + d = d - uint32(0x81) + uint32(52) + } else { + goto ilseq + } + } + } + if c < uint32(0x20) { + c = uint32(178)*c + d + } else { + c = Uint32FromInt32(Int32FromInt32(178)*Int32FromInt32(0x20)) + uint32(84)*(c-uint32(0x20)) + d + } + c = c + uint32(0xac00) + d = uint32(0xac00) + for { + if !(d <= c) { + break + } + k = uint64(0) + i1 = 0 + for { + if !(i1 < int32(93)) { + break + } + j1 = 0 + for { + if !(j1 < int32(94)) { + break + } + if uint32(**(**uint16)(__ccgo_up(uintptr(unsafe.Pointer(&_ksc)) + uintptr(i1)*188 + uintptr(j1)*2)))-d <= c-d { + k = k + 1 + } + goto _34 + _34: + ; + j1 = j1 + 1 + } + goto _33 + _33: + ; + i1 = i1 + 1 + } + d = c + uint32(1) + c = uint32(uint64(c) + k) + goto _32 + _32: + } + goto _23 + } + c = uint32(**(**uint16)(__ccgo_up(uintptr(unsafe.Pointer(&_ksc)) + uintptr(c)*188 + uintptr(d)*2))) + if !(c != 0) { + goto ilseq + } + goto _23 + _22: + ; + if !(c != 0) { + goto _23 + } + c = _legacy_map(tls, map1, c) + if !(c != 0) { + goto ilseq + } + _23: + ; + switch Int32FromUint8(totype) { + case int32(WCHAR_T): + goto _35 + case int32(UTF_8): + goto _36 + case int32(US_ASCII): + goto _37 + default: + goto _38 + case int32(SHIFT_JIS): + goto _39 + case int32(EUC_JP): + goto _40 + case int32(ISO2022_JP): + goto _41 + case int32(UCS2): + goto _42 + case int32(UTF_16LE): + goto _43 + case int32(UTF_16BE): + goto _44 + case int32(UTF_16): + goto _45 + case int32(UCS2LE): + goto _46 + case int32(UCS2BE): + goto _47 + case int32(UTF_32): + goto _48 + case int32(UTF_32LE): + goto _49 + case int32(UTF_32BE): + goto _50 + } + goto _51 + _35: + ; + if **(**Tsize_t)(__ccgo_up(outb)) < uint64(4) { + goto toobig + } + **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(out)))) = Int32FromUint32(c) + **(**uintptr)(__ccgo_up(out)) += uintptr(4) + **(**Tsize_t)(__ccgo_up(outb)) -= uint64(4) + goto _51 + _36: + ; + if **(**Tsize_t)(__ccgo_up(outb)) < uint64(4) { + k = Uint64FromInt32(Xwctomb(tls, bp+56, Int32FromUint32(c))) + if **(**Tsize_t)(__ccgo_up(outb)) < k { + goto toobig + } + Xmemcpy(tls, **(**uintptr)(__ccgo_up(out)), bp+56, k) + } else { + k = Uint64FromInt32(Xwctomb(tls, **(**uintptr)(__ccgo_up(out)), Int32FromUint32(c))) + } + **(**uintptr)(__ccgo_up(out)) += uintptr(k) + **(**Tsize_t)(__ccgo_up(outb)) -= k + goto _51 + _37: + ; + if !(c > uint32(0x7f)) { + goto _52 + } + goto subst + subst: + ; + x = x + 1 + c = Uint32FromUint8('*') + _52: + ; + _38: + ; + if **(**Tsize_t)(__ccgo_up(outb)) < uint64(1) { + goto toobig + } + if !(c < uint32(256) && c == _legacy_map(tls, tomap, c)) { + goto _53 + } + goto revout + revout: + ; + if **(**Tsize_t)(__ccgo_up(outb)) < uint64(1) { + goto toobig + } + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**int8)(__ccgo_up(v54)) = Int8FromUint32(c) + **(**Tsize_t)(__ccgo_up(outb)) -= uint64(1) + goto _51 + _53: + ; + d = c + c = Uint32FromInt32(int32(4) * Int32FromUint8(totype)) + for { + if !(c < uint32(256)) { + break + } + if d == _legacy_map(tls, tomap, c) { + goto revout + } + goto _56 + _56: + ; + c = c + 1 + } + goto subst + _39: + ; + if c < uint32(128) { + goto revout + } + if c == uint32(0xa5) { + x = x + 1 + c = uint32('\\') + goto revout + } + if c == uint32(0x203e) { + x = x + 1 + c = uint32('~') + goto revout + } + if c-uint32(0xff61) <= Uint32FromInt32(Int32FromInt32(0xdf)-Int32FromInt32(0xa1)) { + c = c + Uint32FromInt32(Int32FromInt32(0xa1)-Int32FromInt32(0xff61)) + goto revout + } + c = _uni_to_jis(tls, c) + if !(c != 0) { + goto subst + } + if **(**Tsize_t)(__ccgo_up(outb)) < uint64(2) { + goto toobig + } + d = c % uint32(256) + c = c / uint32(256) + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + if c < uint32(95) { + v25 = int32(112) + } else { + v25 = int32(176) + } + **(**int8)(__ccgo_up(v54)) = Int8FromUint32((c+uint32(1))/uint32(2) + Uint32FromInt32(v25)) + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + if c%uint32(2) != 0 { + v62 = d + uint32(31) + d/uint32(96) + } else { + v62 = d + uint32(126) + } + **(**int8)(__ccgo_up(v54)) = Int8FromUint32(v62) + **(**Tsize_t)(__ccgo_up(outb)) -= uint64(2) + goto _51 + _40: + ; + if c < uint32(128) { + goto revout + } + if c-uint32(0xff61) <= Uint32FromInt32(Int32FromInt32(0xdf)-Int32FromInt32(0xa1)) { + c = c + Uint32FromInt32(Int32FromInt32(0x0e00)+Int32FromInt32(0x21)-Int32FromInt32(0xff61)) + } else { + c = _uni_to_jis(tls, c) + } + if !(c != 0) { + goto subst + } + if **(**Tsize_t)(__ccgo_up(outb)) < uint64(2) { + goto toobig + } + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**int8)(__ccgo_up(v54)) = Int8FromUint32(c/uint32(256) + uint32(0x80)) + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**int8)(__ccgo_up(v54)) = Int8FromUint32(c%uint32(256) + uint32(0x80)) + **(**Tsize_t)(__ccgo_up(outb)) -= uint64(2) + goto _51 + _41: + ; + if c < uint32(128) { + goto revout + } + if c-uint32(0xff61) <= Uint32FromInt32(Int32FromInt32(0xdf)-Int32FromInt32(0xa1)) || c == uint32(0xa5) || c == uint32(0x203e) { + if **(**Tsize_t)(__ccgo_up(outb)) < uint64(7) { + goto toobig + } + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**int8)(__ccgo_up(v54)) = int8('\033') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**int8)(__ccgo_up(v54)) = int8('(') + if c == uint32(0xa5) { + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**int8)(__ccgo_up(v54)) = int8('J') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**int8)(__ccgo_up(v54)) = int8('\\') + } else { + if c == uint32(0x203e) { + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**int8)(__ccgo_up(v54)) = int8('J') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**int8)(__ccgo_up(v54)) = int8('~') + } else { + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**int8)(__ccgo_up(v54)) = int8('I') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**int8)(__ccgo_up(v54)) = Int8FromUint32(c - uint32(0xff61) + uint32(0x21)) + } + } + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**int8)(__ccgo_up(v54)) = int8('\033') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**int8)(__ccgo_up(v54)) = int8('(') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**int8)(__ccgo_up(v54)) = int8('B') + **(**Tsize_t)(__ccgo_up(outb)) -= uint64(7) + goto _51 + } + c = _uni_to_jis(tls, c) + if !(c != 0) { + goto subst + } + if **(**Tsize_t)(__ccgo_up(outb)) < uint64(8) { + goto toobig + } + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**int8)(__ccgo_up(v54)) = int8('\033') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**int8)(__ccgo_up(v54)) = int8('$') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**int8)(__ccgo_up(v54)) = int8('B') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**int8)(__ccgo_up(v54)) = Int8FromUint32(c / uint32(256)) + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**int8)(__ccgo_up(v54)) = Int8FromUint32(c % uint32(256)) + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**int8)(__ccgo_up(v54)) = int8('\033') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**int8)(__ccgo_up(v54)) = int8('(') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**int8)(__ccgo_up(v54)) = int8('B') + **(**Tsize_t)(__ccgo_up(outb)) -= uint64(8) + goto _51 + _42: + ; + totype = uint8(UCS2BE) + _47: + ; + _46: + ; + _45: + ; + _44: + ; + _43: + ; + if c < uint32(0x10000) || Uint32FromInt32(Int32FromUint8(totype)-int32(UCS2BE)) < uint32(2) { + if c >= uint32(0x10000) { + c = uint32(0xFFFD) + } + if **(**Tsize_t)(__ccgo_up(outb)) < uint64(2) { + goto toobig + } + _put_16(tls, **(**uintptr)(__ccgo_up(out)), c, Int32FromUint8(totype)) + **(**uintptr)(__ccgo_up(out)) += uintptr(2) + **(**Tsize_t)(__ccgo_up(outb)) -= uint64(2) + goto _51 + } + if **(**Tsize_t)(__ccgo_up(outb)) < uint64(4) { + goto toobig + } + c = c - uint32(0x10000) + _put_16(tls, **(**uintptr)(__ccgo_up(out)), c>>int32(10)|uint32(0xd800), Int32FromUint8(totype)) + _put_16(tls, **(**uintptr)(__ccgo_up(out))+UintptrFromInt32(2), c&uint32(0x3ff)|uint32(0xdc00), Int32FromUint8(totype)) + **(**uintptr)(__ccgo_up(out)) += uintptr(4) + **(**Tsize_t)(__ccgo_up(outb)) -= uint64(4) + goto _51 + _48: + ; + totype = uint8(UTF_32BE) + _50: + ; + _49: + ; + if **(**Tsize_t)(__ccgo_up(outb)) < uint64(4) { + goto toobig + } + _put_32(tls, **(**uintptr)(__ccgo_up(out)), c, Int32FromUint8(totype)) + **(**uintptr)(__ccgo_up(out)) += uintptr(4) + **(**Tsize_t)(__ccgo_up(outb)) -= uint64(4) + goto _51 + _51: + ; + goto _1 + _1: + ; + **(**uintptr)(__ccgo_up(in)) += uintptr(l) + **(**Tsize_t)(__ccgo_up(inb)) -= l + } + **(**Tlocale_t)(__ccgo_up(ploc)) = loc + return x + goto ilseq +ilseq: + ; + err = int32(EILSEQ) + x = Uint64FromInt32(-Int32FromInt32(1)) + goto end + goto toobig +toobig: + ; + err = int32(E2BIG) + x = Uint64FromInt32(-Int32FromInt32(1)) + goto end + goto starved +starved: + ; + err = int32(EINVAL) + x = Uint64FromInt32(-Int32FromInt32(1)) + goto end +end: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = err + **(**Tlocale_t)(__ccgo_up(ploc)) = loc + return x +} + +func Xiconv_close(tls *TLS, cd Ticonv_t) (r int32) { + if __ccgo_strace { + trc("tls=%v cd=%v, (%v:)", tls, cd, origin(2)) + defer func() { trc("-> %v", r) }() + } + if !(uint64(cd)&Uint64FromInt32(1) != 0) { + Xfree(tls, cd) + } + return 0 +} + +var _c_time = [316]int8{'S', 'u', 'n', 0, 'M', 'o', 'n', 0, 'T', 'u', 'e', 0, 'W', 'e', 'd', 0, 'T', 'h', 'u', 0, 'F', 'r', 'i', 0, 'S', 'a', 't', 0, 'S', 'u', 'n', 'd', 'a', 'y', 0, 'M', 'o', 'n', 'd', 'a', 'y', 0, 'T', 'u', 'e', 's', 'd', 'a', 'y', 0, 'W', 'e', 'd', 'n', 'e', 's', 'd', 'a', 'y', 0, 'T', 'h', 'u', 'r', 's', 'd', 'a', 'y', 0, 'F', 'r', 'i', 'd', 'a', 'y', 0, 'S', 'a', 't', 'u', 'r', 'd', 'a', 'y', 0, 'J', 'a', 'n', 0, 'F', 'e', 'b', 0, 'M', 'a', 'r', 0, 'A', 'p', 'r', 0, 'M', 'a', 'y', 0, 'J', 'u', 'n', 0, 'J', 'u', 'l', 0, 'A', 'u', 'g', 0, 'S', 'e', 'p', 0, 'O', 'c', 't', 0, 'N', 'o', 'v', 0, 'D', 'e', 'c', 0, 'J', 'a', 'n', 'u', 'a', 'r', 'y', 0, 'F', 'e', 'b', 'r', 'u', 'a', 'r', 'y', 0, 'M', 'a', 'r', 'c', 'h', 0, 'A', 'p', 'r', 'i', 'l', 0, 'M', 'a', 'y', 0, 'J', 'u', 'n', 'e', 0, 'J', 'u', 'l', 'y', 0, 'A', 'u', 'g', 'u', 's', 't', 0, 'S', 'e', 'p', 't', 'e', 'm', 'b', 'e', 'r', 0, 'O', 'c', 't', 'o', 'b', 'e', 'r', 0, 'N', 'o', 'v', 'e', 'm', 'b', 'e', 'r', 0, 'D', 'e', 'c', 'e', 'm', 'b', 'e', 'r', 0, 'A', 'M', 0, 'P', 'M', 0, '%', 'a', ' ', '%', 'b', ' ', '%', 'e', ' ', '%', 'T', ' ', '%', 'Y', 0, '%', 'm', '/', '%', 'd', '/', '%', 'y', 0, '%', 'H', ':', '%', 'M', ':', '%', 'S', 0, '%', 'I', ':', '%', 'M', ':', '%', 'S', ' ', '%', 'p', 0, 0, 0, '%', 'm', '/', '%', 'd', '/', '%', 'y', 0, '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 0, '%', 'a', ' ', '%', 'b', ' ', '%', 'e', ' ', '%', 'T', ' ', '%', 'Y', 0, '%', 'H', ':', '%', 'M', ':', '%', 'S'} + +var _c_messages = [19]int8{'^', '[', 'y', 'Y', ']', 0, '^', '[', 'n', 'N', ']', 0, 'y', 'e', 's', 0, 'n', 'o'} +var _c_numeric = [3]int8{'.'} + +func X__nl_langinfo_l(tls *TLS, item Tnl_item, loc Tlocale_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v item=%v loc=%v, (%v:)", tls, item, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + var cat, idx int32 + var str, v1 uintptr + _, _, _, _ = cat, idx, str, v1 + cat = item >> int32(16) + idx = item & int32(65535) + if item == int32(CODESET) { + if **(**uintptr)(__ccgo_up(loc)) != 0 { + v1 = __ccgo_ts + 322 + } else { + v1 = __ccgo_ts + 516 + } + return v1 + } + /* _NL_LOCALE_NAME extension */ + if idx == int32(65535) && cat < int32(LC_ALL) { + if **(**uintptr)(__ccgo_up(loc + uintptr(cat)*8)) != 0 { + v1 = **(**uintptr)(__ccgo_up(loc + uintptr(cat)*8)) + 16 + } else { + v1 = __ccgo_ts + 522 + } + return v1 + } + switch cat { + case int32(LC_NUMERIC): + if idx > int32(1) { + return __ccgo_ts + } + str = uintptr(unsafe.Pointer(&_c_numeric)) + case int32(LC_TIME): + if idx > int32(0x31) { + return __ccgo_ts + } + str = uintptr(unsafe.Pointer(&_c_time)) + case int32(LC_MONETARY): + if idx > 0 { + return __ccgo_ts + } + str = __ccgo_ts + case int32(LC_MESSAGES): + if idx > int32(3) { + return __ccgo_ts + } + str = uintptr(unsafe.Pointer(&_c_messages)) + default: + return __ccgo_ts + } + for { + if !(idx != 0) { + break + } + for { + if !(**(**int8)(__ccgo_up(str)) != 0) { + break + } + goto _4 + _4: + ; + str = str + 1 + } + goto _3 + _3: + ; + idx = idx - 1 + str = str + 1 + } + if cat != int32(LC_NUMERIC) && **(**int8)(__ccgo_up(str)) != 0 { + str = X__lctrans(tls, str, **(**uintptr)(__ccgo_up(loc + uintptr(cat)*8))) + } + return str +} + +func X__nl_langinfo(tls *TLS, item Tnl_item) (r uintptr) { + if __ccgo_strace { + trc("tls=%v item=%v, (%v:)", tls, item, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__nl_langinfo_l(tls, item, (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale) +} + +func Xnl_langinfo(tls *TLS, item Tnl_item) (r uintptr) { + if __ccgo_strace { + trc("tls=%v item=%v, (%v:)", tls, item, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__nl_langinfo(tls, item) +} + +func Xnl_langinfo_l(tls *TLS, item Tnl_item, loc Tlocale_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v item=%v loc=%v, (%v:)", tls, item, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__nl_langinfo_l(tls, item, loc) +} + +func X__lctrans_impl(tls *TLS, msg uintptr, lm uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v msg=%v lm=%v, (%v:)", tls, msg, lm, origin(2)) + defer func() { trc("-> %v", r) }() + } + var trans, v1 uintptr + _, _ = trans, v1 + trans = uintptr(0) + if lm != 0 { + trans = X__mo_lookup(tls, (*t__locale_map)(unsafe.Pointer(lm)).Fmap1, (*t__locale_map)(unsafe.Pointer(lm)).Fmap_size, msg) + } + if trans != 0 { + v1 = trans + } else { + v1 = msg + } + return v1 +} + +var _envvars = [6][12]int8{ + 0: {'L', 'C', '_', 'C', 'T', 'Y', 'P', 'E'}, + 1: {'L', 'C', '_', 'N', 'U', 'M', 'E', 'R', 'I', 'C'}, + 2: {'L', 'C', '_', 'T', 'I', 'M', 'E'}, + 3: {'L', 'C', '_', 'C', 'O', 'L', 'L', 'A', 'T', 'E'}, + 4: {'L', 'C', '_', 'M', 'O', 'N', 'E', 'T', 'A', 'R', 'Y'}, + 5: {'L', 'C', '_', 'M', 'E', 'S', 'S', 'A', 'G', 'E', 'S'}, +} + +func X__get_locale(tls *TLS, cat int32, val uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v cat=%v val=%v, (%v:)", tls, cat, val, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(272) + defer tls.Free(272) + var builtin int32 + var l, n Tsize_t + var map1, new1, p, path, z, v1, v2, v4, v6 uintptr + var v3, v5, v7 bool + var _ /* buf at bp+0 */ [256]int8 + var _ /* map_size at bp+256 */ Tsize_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = builtin, l, map1, n, new1, p, path, z, v1, v2, v3, v4, v5, v6, v7 + new1 = uintptr(0) + path = uintptr(0) + if !(**(**int8)(__ccgo_up(val)) != 0) { + v1 = Xgetenv(tls, __ccgo_ts+524) + val = v1 + if v3 = v1 != 0 && **(**int8)(__ccgo_up(val)) != 0; !v3 { + v2 = Xgetenv(tls, uintptr(unsafe.Pointer(&_envvars))+uintptr(cat)*12) + val = v2 + } + if v5 = v3 || v2 != 0 && **(**int8)(__ccgo_up(val)) != 0; !v5 { + v4 = Xgetenv(tls, __ccgo_ts+336) + val = v4 + } + if v7 = v5 || v4 != 0 && **(**int8)(__ccgo_up(val)) != 0; !v7 { + v6 = __ccgo_ts + 531 + val = v6 + } + _ = v7 || v6 != 0 + } + /* Limit name length and forbid leading dot or any slashes. */ + n = uint64(0) + for { + if !(n < uint64(LOCALE_NAME_MAX) && **(**int8)(__ccgo_up(val + uintptr(n))) != 0 && int32(**(**int8)(__ccgo_up(val + uintptr(n)))) != int32('/')) { + break + } + goto _8 + _8: + ; + n = n + 1 + } + if int32(**(**int8)(__ccgo_up(val))) == int32('.') || **(**int8)(__ccgo_up(val + uintptr(n))) != 0 { + val = __ccgo_ts + 531 + } + builtin = BoolInt32(int32(**(**int8)(__ccgo_up(val))) == int32('C') && !(**(**int8)(__ccgo_up(val + 1)) != 0) || !(Xstrcmp(tls, val, __ccgo_ts+531) != 0) || !(Xstrcmp(tls, val, __ccgo_ts+539) != 0)) + if builtin != 0 { + if cat == LC_CTYPE && int32(**(**int8)(__ccgo_up(val + 1))) == int32('.') { + return uintptr(unsafe.Pointer(&X__c_dot_utf8)) + } + return uintptr(0) + } + p = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_loc_head))) + for { + if !(p != 0) { + break + } + if !(Xstrcmp(tls, val, p+16) != 0) { + return p + } + goto _9 + _9: + ; + p = (*t__locale_map)(unsafe.Pointer(p)).Fnext + } + if !(X__libc.Fsecure != 0) { + path = Xgetenv(tls, __ccgo_ts+545) + } + /* FIXME: add a default path? */ + if path != 0 { + for { + if !(**(**int8)(__ccgo_up(path)) != 0) { + break + } + z = X__strchrnul(tls, path, int32(':')) + l = Uint64FromInt64(int64(z) - int64(path)) + if l >= uint64(256)-n-uint64(2) { + goto _10 + } + Xmemcpy(tls, bp, path, l) + (**(**[256]int8)(__ccgo_up(bp)))[l] = int8('/') + Xmemcpy(tls, bp+uintptr(l)+uintptr(1), val, n) + (**(**[256]int8)(__ccgo_up(bp)))[l+uint64(1)+n] = 0 + map1 = X__map_file(tls, bp, bp+256) + if map1 != 0 { + new1 = Xmalloc(tls, uint64(48)) + if !(new1 != 0) { + X__munmap(tls, map1, **(**Tsize_t)(__ccgo_up(bp + 256))) + break + } + (*t__locale_map)(unsafe.Pointer(new1)).Fmap1 = map1 + (*t__locale_map)(unsafe.Pointer(new1)).Fmap_size = **(**Tsize_t)(__ccgo_up(bp + 256)) + Xmemcpy(tls, new1+16, val, n) + **(**int8)(__ccgo_up(new1 + 16 + uintptr(n))) = 0 + (*t__locale_map)(unsafe.Pointer(new1)).Fnext = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_loc_head))) + AtomicStorePUintptr(uintptr(unsafe.Pointer(&_loc_head)), new1) + break + } + goto _10 + _10: + ; + path = z + BoolUintptr(!!(**(**int8)(__ccgo_up(z)) != 0)) + } + } + /* If no locale definition was found, make a locale map + * object anyway to store the name, which is kept for the + * sake of being able to do message translations at the + * application level. */ + if v3 = !(new1 != 0); v3 { + v1 = Xmalloc(tls, uint64(48)) + new1 = v1 + } + if v3 && v1 != 0 { + (*t__locale_map)(unsafe.Pointer(new1)).Fmap1 = X__c_dot_utf8.Fmap1 + (*t__locale_map)(unsafe.Pointer(new1)).Fmap_size = X__c_dot_utf8.Fmap_size + Xmemcpy(tls, new1+16, val, n) + **(**int8)(__ccgo_up(new1 + 16 + uintptr(n))) = 0 + (*t__locale_map)(unsafe.Pointer(new1)).Fnext = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_loc_head))) + AtomicStorePUintptr(uintptr(unsafe.Pointer(&_loc_head)), new1) + } + /* For LC_CTYPE, never return a null pointer unless the + * requested name was "C" or "POSIX". */ + if !(new1 != 0) && cat == LC_CTYPE { + new1 = uintptr(unsafe.Pointer(&X__c_dot_utf8)) + } + return new1 +} + +var _loc_head uintptr + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +var _posix_lconv = Tlconv{ + Fdecimal_point: __ccgo_ts + 558, + Fthousands_sep: __ccgo_ts, + Fgrouping: __ccgo_ts, + Fint_curr_symbol: __ccgo_ts, + Fcurrency_symbol: __ccgo_ts, + Fmon_decimal_point: __ccgo_ts, + Fmon_thousands_sep: __ccgo_ts, + Fmon_grouping: __ccgo_ts, + Fpositive_sign: __ccgo_ts, + Fnegative_sign: __ccgo_ts, + Fint_frac_digits: Int8FromInt32(CHAR_MAX), + Ffrac_digits: Int8FromInt32(CHAR_MAX), + Fp_cs_precedes: Int8FromInt32(CHAR_MAX), + Fp_sep_by_space: Int8FromInt32(CHAR_MAX), + Fn_cs_precedes: Int8FromInt32(CHAR_MAX), + Fn_sep_by_space: Int8FromInt32(CHAR_MAX), + Fp_sign_posn: Int8FromInt32(CHAR_MAX), + Fn_sign_posn: Int8FromInt32(CHAR_MAX), + Fint_p_cs_precedes: Int8FromInt32(CHAR_MAX), + Fint_p_sep_by_space: Int8FromInt32(CHAR_MAX), + Fint_n_cs_precedes: Int8FromInt32(CHAR_MAX), + Fint_n_sep_by_space: Int8FromInt32(CHAR_MAX), + Fint_p_sign_posn: Int8FromInt32(CHAR_MAX), + Fint_n_sign_posn: Int8FromInt32(CHAR_MAX), +} + +func Xlocaleconv(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(unsafe.Pointer(&_posix_lconv)) +} + +var _default_locale_init_done int32 +var _default_locale t__locale_struct +var _default_ctype_locale t__locale_struct + +func X__loc_is_allocated(tls *TLS, loc Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v loc=%v, (%v:)", tls, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(loc != 0 && loc != uintptr(unsafe.Pointer(&X__c_locale)) && loc != uintptr(unsafe.Pointer(&X__c_dot_utf8_locale)) && loc != uintptr(unsafe.Pointer(&_default_locale)) && loc != uintptr(unsafe.Pointer(&_default_ctype_locale))) +} + +func _do_newlocale(tls *TLS, mask int32, name uintptr, loc Tlocale_t) (r Tlocale_t) { + bp := tls.Alloc(48) + defer tls.Free(48) + var i, i1 int32 + var v2, v3 uintptr + var v5 Tlocale_t + var _ /* tmp at bp+0 */ t__locale_struct + _, _, _, _, _ = i, i1, v2, v3, v5 + i = 0 + for { + if !(i < int32(LC_ALL)) { + break + } + if !(mask&(Int32FromInt32(1)< %v", r) }() + } + ___lock(tls, uintptr(unsafe.Pointer(&X__locale_lock))) + loc = _do_newlocale(tls, mask, name, loc) + ___unlock(tls, uintptr(unsafe.Pointer(&X__locale_lock))) + return loc +} + +func Xnewlocale(tls *TLS, mask int32, name uintptr, loc Tlocale_t) (r Tlocale_t) { + if __ccgo_strace { + trc("tls=%v mask=%v name=%v loc=%v, (%v:)", tls, mask, name, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__newlocale(tls, mask, name, loc) +} + +/* +grammar: + +Start = Expr ';' +Expr = Or | Or '?' Expr ':' Expr +Or = And | Or '||' And +And = Eq | And '&&' Eq +Eq = Rel | Eq '==' Rel | Eq '!=' Rel +Rel = Add | Rel '<=' Add | Rel '>=' Add | Rel '<' Add | Rel '>' Add +Add = Mul | Add '+' Mul | Add '-' Mul +Mul = Prim | Mul '*' Prim | Mul '/' Prim | Mul '%' Prim +Prim = '(' Expr ')' | '!' Prim | decimal | 'n' + +internals: + +recursive descent expression evaluator with stack depth limit. +for binary operators an operator-precedence parser is used. +eval* functions store the result of the parsed subexpression +and return a pointer to the next non-space character. +*/ + +type Tst = struct { + Fr uint64 + Fn uint64 + Fop int32 +} + +func _skipspace(tls *TLS, s uintptr) (r uintptr) { + var v1, v2 int32 + _, _ = v1, v2 + for { + v1 = int32(**(**int8)(__ccgo_up(s))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _3 + _3: + if !(v2 != 0) { + break + } + s = s + 1 + } + return s +} + +func _evalprim(tls *TLS, st uintptr, s uintptr, d int32) (r uintptr) { + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 int32 + var _ /* e at bp+0 */ uintptr + _ = v1 + d = d - 1 + v1 = d + if v1 < 0 { + return __ccgo_ts + } + s = _skipspace(tls, s) + if BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(s)))-uint32('0') < uint32(10)) != 0 { + (*Tst)(unsafe.Pointer(st)).Fr = Xstrtoul(tls, s, bp, int32(10)) + if **(**uintptr)(__ccgo_up(bp)) == s || (*Tst)(unsafe.Pointer(st)).Fr == Uint64FromInt32(-Int32FromInt32(1)) { + return __ccgo_ts + } + return _skipspace(tls, **(**uintptr)(__ccgo_up(bp))) + } + if int32(**(**int8)(__ccgo_up(s))) == int32('n') { + (*Tst)(unsafe.Pointer(st)).Fr = (*Tst)(unsafe.Pointer(st)).Fn + return _skipspace(tls, s+uintptr(1)) + } + if int32(**(**int8)(__ccgo_up(s))) == int32('(') { + s = _evalexpr(tls, st, s+uintptr(1), d) + if int32(**(**int8)(__ccgo_up(s))) != int32(')') { + return __ccgo_ts + } + return _skipspace(tls, s+uintptr(1)) + } + if int32(**(**int8)(__ccgo_up(s))) == int32('!') { + s = _evalprim(tls, st, s+uintptr(1), d) + (*Tst)(unsafe.Pointer(st)).Fr = BoolUint64(!((*Tst)(unsafe.Pointer(st)).Fr != 0)) + return s + } + return __ccgo_ts +} + +func _binop(tls *TLS, st uintptr, op int32, left uint64) (r int32) { + var a, b uint64 + _, _ = a, b + a = left + b = (*Tst)(unsafe.Pointer(st)).Fr + switch op { + case 0: + (*Tst)(unsafe.Pointer(st)).Fr = BoolUint64(a != 0 || b != 0) + return 0 + case int32(1): + (*Tst)(unsafe.Pointer(st)).Fr = BoolUint64(a != 0 && b != 0) + return 0 + case int32(2): + (*Tst)(unsafe.Pointer(st)).Fr = BoolUint64(a == b) + return 0 + case int32(3): + (*Tst)(unsafe.Pointer(st)).Fr = BoolUint64(a != b) + return 0 + case int32(4): + (*Tst)(unsafe.Pointer(st)).Fr = BoolUint64(a >= b) + return 0 + case int32(5): + (*Tst)(unsafe.Pointer(st)).Fr = BoolUint64(a <= b) + return 0 + case int32(6): + (*Tst)(unsafe.Pointer(st)).Fr = BoolUint64(a > b) + return 0 + case int32(7): + (*Tst)(unsafe.Pointer(st)).Fr = BoolUint64(a < b) + return 0 + case int32(8): + (*Tst)(unsafe.Pointer(st)).Fr = a + b + return 0 + case int32(9): + (*Tst)(unsafe.Pointer(st)).Fr = a - b + return 0 + case int32(10): + (*Tst)(unsafe.Pointer(st)).Fr = a * b + return 0 + case int32(11): + if b != 0 { + (*Tst)(unsafe.Pointer(st)).Fr = a % b + return 0 + } + return int32(1) + case int32(12): + if b != 0 { + (*Tst)(unsafe.Pointer(st)).Fr = a / b + return 0 + } + return int32(1) + } + return int32(1) +} + +func _parseop(tls *TLS, st uintptr, s uintptr) (r uintptr) { + var i int32 + _ = i + i = 0 + for { + if !(i < int32(11)) { + break + } + if int32(**(**int8)(__ccgo_up(s))) == int32(_opch[i]) { + /* note: >,< are accepted with or without = */ + if i < int32(6) && int32(**(**int8)(__ccgo_up(s + 1))) == int32(_opch2[i]) { + (*Tst)(unsafe.Pointer(st)).Fop = i + return s + uintptr(2) + } + if i >= int32(4) { + (*Tst)(unsafe.Pointer(st)).Fop = i + int32(2) + return s + uintptr(1) + } + break + } + goto _1 + _1: + ; + i = i + 1 + } + (*Tst)(unsafe.Pointer(st)).Fop = int32(13) + return s +} + +var _opch = [11]int8{'|', '&', '=', '!', '>', '<', '+', '-', '*', '%', '/'} + +var _opch2 = [6]int8{'|', '&', '=', '=', '=', '='} + +func _evalbinop(tls *TLS, st uintptr, s uintptr, minprec int32, d int32) (r uintptr) { + var left uint64 + var op int32 + _, _ = left, op + d = d - 1 + s = _evalprim(tls, st, s, d) + s = _parseop(tls, st, s) + for { + /* + st->r (left hand side value) and st->op are now set, + get the right hand side or back out if op has low prec, + if op was missing then prec[op]==0 + */ + op = (*Tst)(unsafe.Pointer(st)).Fop + if int32(_prec[op]) <= minprec { + return s + } + left = (*Tst)(unsafe.Pointer(st)).Fr + s = _evalbinop(tls, st, s, int32(_prec[op]), d) + if _binop(tls, st, op, left) != 0 { + return __ccgo_ts + } + goto _1 + _1: + } + return r +} + +var _prec = [14]int8{ + 0: int8(1), + 1: int8(2), + 2: int8(3), + 3: int8(3), + 4: int8(4), + 5: int8(4), + 6: int8(4), + 7: int8(4), + 8: int8(5), + 9: int8(5), + 10: int8(6), + 11: int8(6), + 12: int8(6), +} + +func _evalexpr(tls *TLS, st uintptr, s uintptr, d int32) (r uintptr) { + var a, b, v2 uint64 + var v1 int32 + _, _, _, _ = a, b, v1, v2 + d = d - 1 + v1 = d + if v1 < 0 { + return __ccgo_ts + } + s = _evalbinop(tls, st, s, 0, d) + if int32(**(**int8)(__ccgo_up(s))) != int32('?') { + return s + } + a = (*Tst)(unsafe.Pointer(st)).Fr + s = _evalexpr(tls, st, s+uintptr(1), d) + if int32(**(**int8)(__ccgo_up(s))) != int32(':') { + return __ccgo_ts + } + b = (*Tst)(unsafe.Pointer(st)).Fr + s = _evalexpr(tls, st, s+uintptr(1), d) + if a != 0 { + v2 = b + } else { + v2 = (*Tst)(unsafe.Pointer(st)).Fr + } + (*Tst)(unsafe.Pointer(st)).Fr = v2 + return s +} + +func X__pleval(tls *TLS, s uintptr, n uint64) (r uint64) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v, (%v:)", tls, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var v1 uint64 + var _ /* st at bp+0 */ Tst + _ = v1 + (**(**Tst)(__ccgo_up(bp))).Fn = n + s = _evalexpr(tls, bp, s, int32(100)) + if int32(**(**int8)(__ccgo_up(s))) == int32(';') { + v1 = (**(**Tst)(__ccgo_up(bp))).Fr + } else { + v1 = Uint64FromInt32(-Int32FromInt32(1)) + } + return v1 +} + +var _buf1 [144]int8 + +func Xsetlocale(tls *TLS, cat int32, name uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v cat=%v name=%v, (%v:)", tls, cat, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(80) + defer tls.Free(80) + var i, same int32 + var l Tsize_t + var lm, lm1, p, part1, ret, s, z, v3 uintptr + var _ /* part at bp+48 */ [24]int8 + var _ /* tmp_locale at bp+0 */ t__locale_struct + _, _, _, _, _, _, _, _, _, _, _ = i, l, lm, lm1, p, part1, ret, s, same, z, v3 + if Uint32FromInt32(cat) > uint32(LC_ALL) { + return uintptr(0) + } + ___lock(tls, uintptr(unsafe.Pointer(&X__locale_lock))) + /* For LC_ALL, setlocale is required to return a string which + * encodes the current setting for all categories. The format of + * this string is unspecified, and only the following code, which + * performs both the serialization and deserialization, depends + * on the format, so it can easily be changed if needed. */ + if cat == int32(LC_ALL) { + if name != 0 { + **(**[24]int8)(__ccgo_up(bp + 48)) = [24]int8{'C', '.', 'U', 'T', 'F', '-', '8'} + p = name + i = 0 + for { + if !(i < int32(LC_ALL)) { + break + } + z = X__strchrnul(tls, p, int32(';')) + if int64(z)-int64(p) <= int64(LOCALE_NAME_MAX) { + Xmemcpy(tls, bp+48, p, Uint64FromInt64(int64(z)-int64(p))) + (**(**[24]int8)(__ccgo_up(bp + 48)))[int64(z)-int64(p)] = 0 + if **(**int8)(__ccgo_up(z)) != 0 { + p = z + uintptr(1) + } + } + lm = X__get_locale(tls, i, bp+48) + if lm == uintptr(-Int32FromInt32(1)) { + ___unlock(tls, uintptr(unsafe.Pointer(&X__locale_lock))) + return uintptr(0) + } + **(**uintptr)(__ccgo_up(bp + uintptr(i)*8)) = lm + goto _1 + _1: + ; + i = i + 1 + } + X__libc.Fglobal_locale = **(**t__locale_struct)(__ccgo_up(bp)) + } + s = uintptr(unsafe.Pointer(&_buf1)) + same = 0 + i = 0 + for { + if !(i < int32(LC_ALL)) { + break + } + lm1 = **(**uintptr)(__ccgo_up(uintptr(unsafe.Pointer(&X__libc)) + 56 + uintptr(i)*8)) + if lm1 == **(**uintptr)(__ccgo_up(uintptr(unsafe.Pointer(&X__libc)) + 56)) { + same = same + 1 + } + if lm1 != 0 { + v3 = lm1 + 16 + } else { + v3 = __ccgo_ts + 522 + } + part1 = v3 + l = _strlen(tls, part1) + Xmemcpy(tls, s, part1, l) + **(**int8)(__ccgo_up(s + uintptr(l))) = int8(';') + s = s + uintptr(l+uint64(1)) + goto _2 + _2: + ; + i = i + 1 + } + s = s - 1 + v3 = s + **(**int8)(__ccgo_up(v3)) = 0 + ___unlock(tls, uintptr(unsafe.Pointer(&X__locale_lock))) + if same == int32(LC_ALL) { + v3 = part1 + } else { + v3 = uintptr(unsafe.Pointer(&_buf1)) + } + return v3 + } + if name != 0 { + lm = X__get_locale(tls, cat, name) + if lm == uintptr(-Int32FromInt32(1)) { + ___unlock(tls, uintptr(unsafe.Pointer(&X__locale_lock))) + return uintptr(0) + } + **(**uintptr)(__ccgo_up(uintptr(unsafe.Pointer(&X__libc)) + 56 + uintptr(cat)*8)) = lm + } else { + lm = **(**uintptr)(__ccgo_up(uintptr(unsafe.Pointer(&X__libc)) + 56 + uintptr(cat)*8)) + } + if lm != 0 { + v3 = lm + 16 + } else { + v3 = __ccgo_ts + 522 + } + ret = v3 + ___unlock(tls, uintptr(unsafe.Pointer(&X__locale_lock))) + return ret +} + +func X__strcoll_l(tls *TLS, l uintptr, r uintptr, loc Tlocale_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v loc=%v, (%v:)", tls, l, r, loc, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return Xstrcmp(tls, l, r) +} + +func Xstrcoll(tls *TLS, l uintptr, r uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v, (%v:)", tls, l, r, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return X__strcoll_l(tls, l, r, (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale) +} + +func Xstrcoll_l(tls *TLS, l uintptr, r uintptr, loc Tlocale_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v loc=%v, (%v:)", tls, l, r, loc, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return X__strcoll_l(tls, l, r, loc) +} + +func _vstrfmon_l(tls *TLS, s uintptr, n Tsize_t, loc Tlocale_t, fmt uintptr, ap Tva_list) (r Tssize_t) { + bp := tls.Alloc(32) + defer tls.Free(32) + var fill, fw, intl, left, lp, negpar, nogrp, nosym, rp, w int32 + var l Tsize_t + var s0, v5, v6 uintptr + var x float64 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = fill, fw, intl, l, left, lp, negpar, nogrp, nosym, rp, s0, w, x, v5, v6 + s0 = s +_3: + ; + if !(n != 0 && **(**int8)(__ccgo_up(fmt)) != 0) { + goto _1 + } + if !(int32(**(**int8)(__ccgo_up(fmt))) != int32('%')) { + goto _4 + } + goto literal +literal: + ; + v5 = s + s = s + 1 + v6 = fmt + fmt = fmt + 1 + **(**int8)(__ccgo_up(v5)) = **(**int8)(__ccgo_up(v6)) + n = n - 1 + goto _2 +_4: + ; + fmt = fmt + 1 + if int32(**(**int8)(__ccgo_up(fmt))) == int32('%') { + goto literal + } + fill = int32(' ') + nogrp = 0 + negpar = 0 + nosym = 0 + left = 0 + for { + switch int32(**(**int8)(__ccgo_up(fmt))) { + case int32('='): + fmt = fmt + 1 + v5 = fmt + fill = int32(**(**int8)(__ccgo_up(v5))) + goto _7 + case int32('^'): + nogrp = int32(1) + goto _7 + case int32('('): + negpar = int32(1) + fallthrough + case int32('+'): + goto _7 + case int32('!'): + nosym = int32(1) + goto _7 + case int32('-'): + left = int32(1) + goto _7 + } + break + goto _7 + _7: + ; + fmt = fmt + 1 + } + fw = 0 + for { + if !(BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(fmt)))-uint32('0') < uint32(10)) != 0) { + break + } + fw = int32(10)*fw + (int32(**(**int8)(__ccgo_up(fmt))) - int32('0')) + goto _9 + _9: + ; + fmt = fmt + 1 + } + lp = 0 + rp = int32(2) + if int32(**(**int8)(__ccgo_up(fmt))) == int32('#') { + lp = 0 + fmt = fmt + 1 + for { + if !(BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(fmt)))-uint32('0') < uint32(10)) != 0) { + break + } + lp = int32(10)*lp + (int32(**(**int8)(__ccgo_up(fmt))) - int32('0')) + goto _10 + _10: + ; + fmt = fmt + 1 + } + } + if int32(**(**int8)(__ccgo_up(fmt))) == int32('.') { + rp = 0 + fmt = fmt + 1 + for { + if !(BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(fmt)))-uint32('0') < uint32(10)) != 0) { + break + } + rp = int32(10)*rp + (int32(**(**int8)(__ccgo_up(fmt))) - int32('0')) + goto _11 + _11: + ; + fmt = fmt + 1 + } + } + v5 = fmt + fmt = fmt + 1 + intl = BoolInt32(int32(**(**int8)(__ccgo_up(v5))) == int32('i')) + w = lp + int32(1) + rp + if !(left != 0) && fw > w { + w = fw + } + x = VaFloat64(&ap) + l = Uint64FromInt32(Xsnprintf(tls, s, n, __ccgo_ts+560, VaList(bp+8, w, rp, x))) + if l >= n { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(E2BIG) + return int64(-int32(1)) + } + s = s + uintptr(l) + n = n - l + goto _2 +_2: + ; + goto _3 + goto _1 +_1: + ; + return int64(s) - int64(s0) +} + +func Xstrfmon_l(tls *TLS, s uintptr, n Tsize_t, loc Tlocale_t, fmt uintptr, va uintptr) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v loc=%v fmt=%v va=%v, (%v:)", tls, s, n, loc, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret Tssize_t + _, _ = ap, ret + ap = va + ret = _vstrfmon_l(tls, s, n, loc, fmt, ap) + _ = ap + return ret +} + +func Xstrfmon(tls *TLS, s uintptr, n Tsize_t, fmt uintptr, va uintptr) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v fmt=%v va=%v, (%v:)", tls, s, n, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret Tssize_t + _, _ = ap, ret + ap = va + ret = _vstrfmon_l(tls, s, n, (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale, fmt, ap) + _ = ap + return ret +} + +func Xstrtof_l(tls *TLS, s uintptr, p uintptr, l Tlocale_t) (r float32) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v l=%v, (%v:)", tls, s, p, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtof(tls, s, p) +} + +func Xstrtod_l(tls *TLS, s uintptr, p uintptr, l Tlocale_t) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v l=%v, (%v:)", tls, s, p, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtod(tls, s, p) +} + +func Xstrtold_l(tls *TLS, s uintptr, p uintptr, l Tlocale_t) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v l=%v, (%v:)", tls, s, p, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtold(tls, s, p) +} + +func X__strtod_l(tls *TLS, s uintptr, p uintptr, l Tlocale_t) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v l=%v, (%v:)", tls, s, p, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtod_l(tls, s, p, l) +} + +func X__strtof_l(tls *TLS, s uintptr, p uintptr, l Tlocale_t) (r float32) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v l=%v, (%v:)", tls, s, p, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtof_l(tls, s, p, l) +} + +func X__strtold_l(tls *TLS, s uintptr, p uintptr, l Tlocale_t) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v l=%v, (%v:)", tls, s, p, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtold_l(tls, s, p, l) +} + +// C documentation +// +// /* collate only by code points */ +func X__strxfrm_l(tls *TLS, dest uintptr, src uintptr, n Tsize_t, loc Tlocale_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v n=%v loc=%v, (%v:)", tls, dest, src, n, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l Tsize_t + _ = l + l = _strlen(tls, src) + if n > l { + Xstrcpy(tls, dest, src) + } + return l +} + +func Xstrxfrm(tls *TLS, dest uintptr, src uintptr, n Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v n=%v, (%v:)", tls, dest, src, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__strxfrm_l(tls, dest, src, n, (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale) +} + +// C documentation +// +// /* collate only by code points */ +func Xstrxfrm_l(tls *TLS, dest uintptr, src uintptr, n Tsize_t, loc Tlocale_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v n=%v loc=%v, (%v:)", tls, dest, src, n, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__strxfrm_l(tls, dest, src, n, loc) +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +var _current_domain uintptr + +func X__gettextdomain(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 uintptr + _ = v1 + if _current_domain != 0 { + v1 = _current_domain + } else { + v1 = __ccgo_ts + 414 + } + return v1 +} + +func Xtextdomain(tls *TLS, domainname uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v domainname=%v, (%v:)", tls, domainname, origin(2)) + defer func() { trc("-> %v", r) }() + } + var domlen Tsize_t + _ = domlen + if !(domainname != 0) { + return X__gettextdomain(tls) + } + domlen = _strlen(tls, domainname) + if domlen > uint64(NAME_MAX) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(0) + } + if !(_current_domain != 0) { + _current_domain = Xmalloc(tls, Uint64FromInt32(Int32FromInt32(NAME_MAX)+Int32FromInt32(1))) + if !(_current_domain != 0) { + return uintptr(0) + } + } + Xmemcpy(tls, _current_domain, domainname, domlen+uint64(1)) + return _current_domain +} + +func Xgettext(tls *TLS, msgid uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v msgid=%v, (%v:)", tls, msgid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xdgettext(tls, uintptr(0), msgid) +} + +func Xngettext(tls *TLS, msgid1 uintptr, msgid2 uintptr, n uint64) (r uintptr) { + if __ccgo_strace { + trc("tls=%v msgid1=%v msgid2=%v n=%v, (%v:)", tls, msgid1, msgid2, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xdngettext(tls, uintptr(0), msgid1, msgid2, n) +} + +func X__uselocale(tls *TLS, new1 Tlocale_t) (r Tlocale_t) { + if __ccgo_strace { + trc("tls=%v new1=%v, (%v:)", tls, new1, origin(2)) + defer func() { trc("-> %v", r) }() + } + var global, old, v1 Tlocale_t + var self Tpthread_t + _, _, _, _ = global, old, self, v1 + self = uintptr(___get_tp(tls)) + old = (*t__pthread)(unsafe.Pointer(self)).Flocale + global = uintptr(unsafe.Pointer(&X__libc)) + 56 + if new1 != 0 { + if new1 == uintptr(-Int32FromInt32(1)) { + v1 = global + } else { + v1 = new1 + } + (*t__pthread)(unsafe.Pointer(self)).Flocale = v1 + } + if old == global { + v1 = uintptr(-Int32FromInt32(1)) + } else { + v1 = old + } + return v1 +} + +func Xuselocale(tls *TLS, new1 Tlocale_t) (r Tlocale_t) { + if __ccgo_strace { + trc("tls=%v new1=%v, (%v:)", tls, new1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__uselocale(tls, new1) +} + +// C documentation +// +// /* FIXME: stub */ +func X__wcscoll_l(tls *TLS, l uintptr, r uintptr, locale Tlocale_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v locale=%v, (%v:)", tls, l, r, locale, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return Xwcscmp(tls, l, r) +} + +func Xwcscoll(tls *TLS, l uintptr, r uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v, (%v:)", tls, l, r, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return X__wcscoll_l(tls, l, r, (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale) +} + +// C documentation +// +// /* FIXME: stub */ +func Xwcscoll_l(tls *TLS, l uintptr, r uintptr, locale Tlocale_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v locale=%v, (%v:)", tls, l, r, locale, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return X__wcscoll_l(tls, l, r, locale) +} + +// C documentation +// +// /* collate only by code points */ +func X__wcsxfrm_l(tls *TLS, dest uintptr, src uintptr, n Tsize_t, loc Tlocale_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v n=%v loc=%v, (%v:)", tls, dest, src, n, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l Tsize_t + _ = l + l = Xwcslen(tls, src) + if l < n { + Xwmemcpy(tls, dest, src, l+uint64(1)) + } else { + if n != 0 { + Xwmemcpy(tls, dest, src, n-uint64(1)) + **(**Twchar_t)(__ccgo_up(dest + uintptr(n-uint64(1))*4)) = 0 + } + } + return l +} + +func Xwcsxfrm(tls *TLS, dest uintptr, src uintptr, n Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v n=%v, (%v:)", tls, dest, src, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__wcsxfrm_l(tls, dest, src, n, (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale) +} + +// C documentation +// +// /* collate only by code points */ +func Xwcsxfrm_l(tls *TLS, dest uintptr, src uintptr, n Tsize_t, loc Tlocale_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v n=%v loc=%v, (%v:)", tls, dest, src, n, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__wcsxfrm_l(tls, dest, src, n, loc) +} + +func Xreallocarray(tls *TLS, ptr uintptr, m Tsize_t, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v ptr=%v m=%v n=%v, (%v:)", tls, ptr, m, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + if n != 0 && m > Uint64FromInt32(-Int32FromInt32(1))/n { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOMEM) + return uintptr(0) + } + return Xrealloc(tls, ptr, m*n) +} + +const LDBL_EPSILON2 = 0 +const LDBL_MAX2 = 0 +const LDBL_MIN2 = 0 + +var _C1 = float64(0.0416666666666666) /* 0x3FA55555, 0x5555554C */ +var _C2 = -Float64FromFloat64(0.001388888888887411) /* 0xBF56C16C, 0x16C15177 */ +var _C3 = float64(2.480158728947673e-05) /* 0x3EFA01A0, 0x19CB1590 */ +var _C4 = -Float64FromFloat64(2.7557314351390663e-07) /* 0xBE927E4F, 0x809C52AD */ +var _C5 = float64(2.087572321298175e-09) /* 0x3E21EE9E, 0xBDB4B1C4 */ +var _C6 = -Float64FromFloat64(1.1359647557788195e-11) /* 0xBDA8FAE9, 0xBE8838D4 */ + +func X__cos(tls *TLS, x float64, y float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var hz, r, w, z Tdouble_t + _, _, _, _ = hz, r, w, z + z = Tdouble_t(x * x) + w = Tdouble_t(z * z) + r = Tdouble_t(z*(_C1+float64(z*(_C2+float64(z*_C3))))) + Tdouble_t(Tdouble_t(w*w)*(_C4+float64(z*(_C5+float64(z*_C6))))) + hz = Tdouble_t(float64(0.5) * z) + w = float64(1) - hz + return w + (Float64FromFloat64(1) - w - hz + (Tdouble_t(z*r) - Tdouble_t(x*y))) +} + +// C documentation +// +// /* |cos(x) - c(x)| < 2**-34.1 (~[-5.37e-11, 5.295e-11]). */ + +var _C0 = -Float64FromFloat64(0.499999997251031) /* -0.499999997251031003120 */ +var _C11 = float64(0.04166662332373906) /* 0.0416666233237390631894 */ +var _C21 = -Float64FromFloat64(0.001388676377460993) /* -0.00138867637746099294692 */ +var _C31 = float64(2.439044879627741e-05) /* 0.0000243904487962774090654 */ + +func X__cosdf(tls *TLS, x float64) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, w, z Tdouble_t + _, _, _ = r, w, z + /* Try to optimize for parallel evaluation as in __tandf.c. */ + z = Tdouble_t(x * x) + w = Tdouble_t(z * z) + r = _C21 + float64(z*_C31) + return float32(float64(1) + float64(z*_C0) + float64(w*_C11) + float64(Tdouble_t(w*z)*r)) +} + +// C documentation +// +// /* k is such that k*ln2 has minimal relative error and x - kln2 > log(DBL_MIN) */ +var _k2 = int32(2043) +var _kln22 = float64(1416.0996898839683) + +// C documentation +// +// /* exp(x)/2 for x >= log(DBL_MAX), slightly better than 0.5*exp(x/2)*exp(x/2) */ +func X__expo2(tls *TLS, x float64, sign float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v sign=%v, (%v:)", tls, x, sign, origin(2)) + defer func() { trc("-> %v", r) }() + } + var scale float64 + var v1 Tuint64_t + _, _ = scale, v1 + /* note that k is odd and scale*scale overflows */ + v1 = uint64(Uint32FromInt32(Int32FromInt32(0x3ff)+_k2/Int32FromInt32(2))< log(FLT_MIN) */ +var _k3 = int32(235) +var _kln23 = Float32FromFloat32(162.88958740234375) + +// C documentation +// +// /* expf(x)/2 for x >= log(FLT_MAX), slightly better than 0.5f*expf(x/2)*expf(x/2) */ +func X__expo2f(tls *TLS, x float32, sign float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v sign=%v, (%v:)", tls, x, sign, origin(2)) + defer func() { trc("-> %v", r) }() + } + var scale float32 + var v1 Tuint32_t + _, _ = scale, v1 + /* note that k is odd and scale*scale overflows */ + v1 = Uint32FromInt32(Int32FromInt32(0x7f)+_k3/Int32FromInt32(2)) << int32(23) + scale = *(*float32)(unsafe.Pointer(&v1)) + /* exp(x - k ln2) * 2**(k-1) */ + /* in directed rounding correct sign before rounding or overflow is important */ + return float32(float32(Xexpf(tls, x-_kln23)*float32(sign*scale)) * scale) +} + +func X__fpclassify(tls *TLS, x float64) (r int32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e, v1 int32 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _ = e, v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + e = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + if !(e != 0) { + if *(*Tuint64_t)(unsafe.Pointer(bp))< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e, v1 int32 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _ = e, v1 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + e = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(23) & uint32(0xff)) + if !(e != 0) { + if *(*Tuint32_t)(unsafe.Pointer(bp))< %v", r) }() + } + return X__fpclassify(tls, x) +} + +const pio2_hi = 0 +const pio2_lo = 0 + +func X__math_divzero(tls *TLS, sign Tuint32_t) (r float64) { + if __ccgo_strace { + trc("tls=%v sign=%v, (%v:)", tls, sign, origin(2)) + defer func() { trc("-> %v", r) }() + } + var y, v1, v2 float64 + _, _, _ = y, v1, v2 + if sign != 0 { + v1 = -Float64FromFloat64(1) + } else { + v1 = float64(1) + } + y = v1 + v2 = y + goto _3 +_3: + return v2 / float64(0) +} + +func X__math_divzerof(tls *TLS, sign Tuint32_t) (r float32) { + if __ccgo_strace { + trc("tls=%v sign=%v, (%v:)", tls, sign, origin(2)) + defer func() { trc("-> %v", r) }() + } + var y, v1, v2 float32 + _, _, _ = y, v1, v2 + if sign != 0 { + v1 = -Float32FromFloat32(1) + } else { + v1 = Float32FromFloat32(1) + } + y = v1 + v2 = y + goto _3 +_3: + return v2 / Float32FromFloat32(0) +} + +func X__math_invalid(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return (x - x) / (x - x) +} + +func X__math_invalidf(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return (x - x) / (x - x) +} + +func X__math_oflow(tls *TLS, sign Tuint32_t) (r float64) { + if __ccgo_strace { + trc("tls=%v sign=%v, (%v:)", tls, sign, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__math_xflow(tls, sign, float64(3.105036184601418e+231)) +} + +func X__math_oflowf(tls *TLS, sign Tuint32_t) (r float32) { + if __ccgo_strace { + trc("tls=%v sign=%v, (%v:)", tls, sign, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__math_xflowf(tls, sign, Float32FromFloat32(1.5845632502852868e+29)) +} + +func X__math_uflow(tls *TLS, sign Tuint32_t) (r float64) { + if __ccgo_strace { + trc("tls=%v sign=%v, (%v:)", tls, sign, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__math_xflow(tls, sign, float64(1.2882297539194267e-231)) +} + +func X__math_uflowf(tls *TLS, sign Tuint32_t) (r float32) { + if __ccgo_strace { + trc("tls=%v sign=%v, (%v:)", tls, sign, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__math_xflowf(tls, sign, Float32FromFloat32(2.524354896707238e-29)) +} + +func X__math_xflow(tls *TLS, sign Tuint32_t, y2 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v sign=%v y2=%v, (%v:)", tls, sign, y2, origin(2)) + defer func() { trc("-> %v", r) }() + } + var y, y1, v1, v2, v4 float64 + _, _, _, _, _ = y, y1, v1, v2, v4 + if sign != 0 { + v1 = -y2 + } else { + v1 = y2 + } + y1 = v1 + v2 = y1 + goto _3 +_3: + y = float64(v2 * y2) + v4 = y + goto _5 +_5: + return v4 +} + +func X__math_xflowf(tls *TLS, sign Tuint32_t, y2 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v sign=%v y2=%v, (%v:)", tls, sign, y2, origin(2)) + defer func() { trc("-> %v", r) }() + } + var y, y1, v1, v2, v4 float32 + _, _, _, _, _ = y, y1, v1, v2, v4 + if sign != 0 { + v1 = -y2 + } else { + v1 = y2 + } + y1 = v1 + v2 = y1 + goto _3 +_3: + y = float32(v2 * y2) + v4 = y + goto _5 +_5: + return v4 +} + +const DBL_EPSILON1 = 2.220446049250313e-16 +const EPS = 0 + +// C documentation +// +// /* +// * invpio2: 53 bits of 2/pi +// * pio2_1: first 33 bit of pi/2 +// * pio2_1t: pi/2 - pio2_1 +// * pio2_2: second 33 bit of pi/2 +// * pio2_2t: pi/2 - (pio2_1+pio2_2) +// * pio2_3: third 33 bit of pi/2 +// * pio2_3t: pi/2 - (pio2_1+pio2_2+pio2_3) +// */ + +var _toint = Float64FromFloat64(1.5) / Float64FromFloat64(2.220446049250313e-16) +var _pio4 = float64(0.7853981633974483) +var _invpio2 = float64(0.6366197723675814) /* 0x3FE45F30, 0x6DC9C883 */ +var _pio2_1 = float64(1.5707963267341256) /* 0x3FF921FB, 0x54400000 */ +var _pio2_1t = float64(6.077100506506192e-11) /* 0x3DD0B461, 0x1A626331 */ +var _pio2_2 = float64(6.077100506303966e-11) /* 0x3DD0B461, 0x1A600000 */ +var _pio2_2t = float64(2.0222662487959506e-21) /* 0x3BA3198A, 0x2E037073 */ +var _pio2_3 = float64(2.0222662487111665e-21) /* 0x3BA3198A, 0x2E000000 */ +var _pio2_3t = float64(8.4784276603689e-32) /* 0x397B839A, 0x252049C1 */ + +// C documentation +// +// /* caller must handle the case when reduction is not needed: |x| ~<= pi/4 */ +func X__rem_pio2(tls *TLS, x float64, y uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + var ex, ey, i, n, sign int32 + var fn, r, t, w, z Tdouble_t + var ix Tuint32_t + var v2 float64 + var _ /* tx at bp+8 */ [3]float64 + var _ /* ty at bp+32 */ [2]float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _, _, _, _, _, _ = ex, ey, fn, i, ix, n, r, sign, t, w, z, v2 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + sign = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(63)) + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32) & uint64(0x7fffffff)) + if ix <= uint32(0x400f6a7a) { /* |x| ~<= 5pi/4 */ + if ix&uint32(0xfffff) == uint32(0x921fb) { /* |x| ~= pi/2 or 2pi/2 */ + goto medium + } /* cancellation -- use medium case */ + if ix <= uint32(0x4002d97c) { /* |x| ~<= 3pi/4 */ + if !(sign != 0) { + z = x - _pio2_1 /* one round good to 85 bits */ + **(**float64)(__ccgo_up(y)) = z - _pio2_1t + **(**float64)(__ccgo_up(y + 1*8)) = z - **(**float64)(__ccgo_up(y)) - _pio2_1t + return int32(1) + } else { + z = x + _pio2_1 + **(**float64)(__ccgo_up(y)) = z + _pio2_1t + **(**float64)(__ccgo_up(y + 1*8)) = z - **(**float64)(__ccgo_up(y)) + _pio2_1t + return -int32(1) + } + } else { + if !(sign != 0) { + z = x - float64(Float64FromInt32(2)*_pio2_1) + **(**float64)(__ccgo_up(y)) = z - Tdouble_t(Float64FromInt32(2)*_pio2_1t) + **(**float64)(__ccgo_up(y + 1*8)) = z - **(**float64)(__ccgo_up(y)) - Tdouble_t(Float64FromInt32(2)*_pio2_1t) + return int32(2) + } else { + z = x + float64(Float64FromInt32(2)*_pio2_1) + **(**float64)(__ccgo_up(y)) = z + Tdouble_t(Float64FromInt32(2)*_pio2_1t) + **(**float64)(__ccgo_up(y + 1*8)) = z - **(**float64)(__ccgo_up(y)) + Tdouble_t(Float64FromInt32(2)*_pio2_1t) + return -int32(2) + } + } + } + if ix <= uint32(0x401c463b) { /* |x| ~<= 9pi/4 */ + if ix <= uint32(0x4015fdbc) { /* |x| ~<= 7pi/4 */ + if ix == uint32(0x4012d97c) { /* |x| ~= 3pi/2 */ + goto medium + } + if !(sign != 0) { + z = x - float64(Float64FromInt32(3)*_pio2_1) + **(**float64)(__ccgo_up(y)) = z - Tdouble_t(Float64FromInt32(3)*_pio2_1t) + **(**float64)(__ccgo_up(y + 1*8)) = z - **(**float64)(__ccgo_up(y)) - Tdouble_t(Float64FromInt32(3)*_pio2_1t) + return int32(3) + } else { + z = x + float64(Float64FromInt32(3)*_pio2_1) + **(**float64)(__ccgo_up(y)) = z + Tdouble_t(Float64FromInt32(3)*_pio2_1t) + **(**float64)(__ccgo_up(y + 1*8)) = z - **(**float64)(__ccgo_up(y)) + Tdouble_t(Float64FromInt32(3)*_pio2_1t) + return -int32(3) + } + } else { + if ix == uint32(0x401921fb) { /* |x| ~= 4pi/2 */ + goto medium + } + if !(sign != 0) { + z = x - float64(Float64FromInt32(4)*_pio2_1) + **(**float64)(__ccgo_up(y)) = z - Tdouble_t(Float64FromInt32(4)*_pio2_1t) + **(**float64)(__ccgo_up(y + 1*8)) = z - **(**float64)(__ccgo_up(y)) - Tdouble_t(Float64FromInt32(4)*_pio2_1t) + return int32(4) + } else { + z = x + float64(Float64FromInt32(4)*_pio2_1) + **(**float64)(__ccgo_up(y)) = z + Tdouble_t(Float64FromInt32(4)*_pio2_1t) + **(**float64)(__ccgo_up(y + 1*8)) = z - **(**float64)(__ccgo_up(y)) + Tdouble_t(Float64FromInt32(4)*_pio2_1t) + return -int32(4) + } + } + } + if !(ix < uint32(0x413921fb)) { + goto _1 + } /* |x| ~< 2^20*(pi/2), medium size */ + goto medium +medium: + ; + /* rint(x/(pi/2)) */ + fn = Tdouble_t(x*_invpio2) + _toint - _toint + n = int32(fn) + r = x - float64(fn*_pio2_1) + w = Tdouble_t(fn * _pio2_1t) /* 1st round, good to 85 bits */ + /* Matters with directed rounding. */ + if r-w < -_pio4 { + n = n - 1 + fn = fn - 1 + r = x - float64(fn*_pio2_1) + w = Tdouble_t(fn * _pio2_1t) + } else { + if r-w > _pio4 { + n = n + 1 + fn = fn + 1 + r = x - float64(fn*_pio2_1) + w = Tdouble_t(fn * _pio2_1t) + } + } + **(**float64)(__ccgo_up(y)) = r - w + *(*float64)(unsafe.Pointer(bp)) = **(**float64)(__ccgo_up(y)) + ey = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + ex = Int32FromUint32(ix >> int32(20)) + if ex-ey > int32(16) { /* 2nd round, good to 118 bits */ + t = r + w = Tdouble_t(fn * _pio2_2) + r = t - w + w = Tdouble_t(fn*_pio2_2t) - (t - r - w) + **(**float64)(__ccgo_up(y)) = r - w + *(*float64)(unsafe.Pointer(bp)) = **(**float64)(__ccgo_up(y)) + ey = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + if ex-ey > int32(49) { /* 3rd round, good to 151 bits, covers all cases */ + t = r + w = Tdouble_t(fn * _pio2_3) + r = t - w + w = Tdouble_t(fn*_pio2_3t) - (t - r - w) + **(**float64)(__ccgo_up(y)) = r - w + } + } + **(**float64)(__ccgo_up(y + 1*8)) = r - **(**float64)(__ccgo_up(y)) - w + return n +_1: + ; + /* + * all other (large) arguments + */ + if ix >= uint32(0x7ff00000) { /* x is inf or NaN */ + v2 = x - x + **(**float64)(__ccgo_up(y + 1*8)) = v2 + **(**float64)(__ccgo_up(y)) = v2 + return 0 + } + /* set z = scalbn(|x|,-ilogb(x)+23) */ + *(*float64)(unsafe.Pointer(bp)) = x + *(*Tuint64_t)(unsafe.Pointer(bp)) &= Uint64FromInt32(-Int32FromInt32(1)) >> Int32FromInt32(12) + *(*Tuint64_t)(unsafe.Pointer(bp)) |= Uint64FromInt32(Int32FromInt32(0x3ff)+Int32FromInt32(23)) << Int32FromInt32(52) + z = *(*float64)(unsafe.Pointer(bp)) + i = 0 + for { + if !(i < int32(2)) { + break + } + (**(**[3]float64)(__ccgo_up(bp + 8)))[i] = float64(int32(z)) + z = Tdouble_t((z - (**(**[3]float64)(__ccgo_up(bp + 8)))[i]) * float64(1.6777216e+07)) + goto _3 + _3: + ; + i = i + 1 + } + (**(**[3]float64)(__ccgo_up(bp + 8)))[i] = z + /* skip zero terms, first term is non-zero */ + for (**(**[3]float64)(__ccgo_up(bp + 8)))[i] == float64(0) { + i = i - 1 + } + n = X__rem_pio2_large(tls, bp+8, bp+32, Int32FromUint32(ix>>Int32FromInt32(20))-(Int32FromInt32(0x3ff)+Int32FromInt32(23)), i+int32(1), int32(1)) + if sign != 0 { + **(**float64)(__ccgo_up(y)) = -(**(**[2]float64)(__ccgo_up(bp + 32)))[0] + **(**float64)(__ccgo_up(y + 1*8)) = -(**(**[2]float64)(__ccgo_up(bp + 32)))[int32(1)] + return -n + } + **(**float64)(__ccgo_up(y)) = (**(**[2]float64)(__ccgo_up(bp + 32)))[0] + **(**float64)(__ccgo_up(y + 1*8)) = (**(**[2]float64)(__ccgo_up(bp + 32)))[int32(1)] + return n +} + +const DBL_EPSILON2 = 0 + +var _init_jk = [4]int32{ + 0: int32(3), + 1: int32(4), + 2: int32(4), + 3: int32(6), +} /* initial value for jk */ + +// C documentation +// +// /* +// * Table of constants for 2/pi, 396 Hex digits (476 decimal) of 2/pi +// * +// * integer array, contains the (24*i)-th to (24*i+23)-th +// * bit of 2/pi after binary point. The corresponding +// * floating value is +// * +// * ipio2[i] * 2^(-24(i+1)). +// * +// * NB: This table must have at least (e0-3)/24 + jk terms. +// * For quad precision (e0 <= 16360, jk = 6), this is 686. +// */ +var _ipio2 = [66]Tint32_t{ + 0: int32(0xA2F983), + 1: int32(0x6E4E44), + 2: int32(0x1529FC), + 3: int32(0x2757D1), + 4: int32(0xF534DD), + 5: int32(0xC0DB62), + 6: int32(0x95993C), + 7: int32(0x439041), + 8: int32(0xFE5163), + 9: int32(0xABDEBB), + 10: int32(0xC561B7), + 11: int32(0x246E3A), + 12: int32(0x424DD2), + 13: int32(0xE00649), + 14: int32(0x2EEA09), + 15: int32(0xD1921C), + 16: int32(0xFE1DEB), + 17: int32(0x1CB129), + 18: int32(0xA73EE8), + 19: int32(0x8235F5), + 20: int32(0x2EBB44), + 21: int32(0x84E99C), + 22: int32(0x7026B4), + 23: int32(0x5F7E41), + 24: int32(0x3991D6), + 25: int32(0x398353), + 26: int32(0x39F49C), + 27: int32(0x845F8B), + 28: int32(0xBDF928), + 29: int32(0x3B1FF8), + 30: int32(0x97FFDE), + 31: int32(0x05980F), + 32: int32(0xEF2F11), + 33: int32(0x8B5A0A), + 34: int32(0x6D1F6D), + 35: int32(0x367ECF), + 36: int32(0x27CB09), + 37: int32(0xB74F46), + 38: int32(0x3F669E), + 39: int32(0x5FEA2D), + 40: int32(0x7527BA), + 41: int32(0xC7EBE5), + 42: int32(0xF17B3D), + 43: int32(0x0739F7), + 44: int32(0x8A5292), + 45: int32(0xEA6BFB), + 46: int32(0x5FB11F), + 47: int32(0x8D5D08), + 48: int32(0x560330), + 49: int32(0x46FC7B), + 50: int32(0x6BABF0), + 51: int32(0xCFBC20), + 52: int32(0x9AF436), + 53: int32(0x1DA9E3), + 54: int32(0x91615E), + 55: int32(0xE61B08), + 56: int32(0x659985), + 57: int32(0x5F14A0), + 58: int32(0x68408D), + 59: int32(0xFFD880), + 60: int32(0x4D7327), + 61: int32(0x310606), + 62: int32(0x1556CA), + 63: int32(0x73A8C9), + 64: int32(0x60E27B), + 65: int32(0xC08C6B), +} + +var _PIo2 = [8]float64{ + 0: float64(1.570796251296997), + 1: float64(7.549789415861596e-08), + 2: float64(5.390302529957765e-15), + 3: float64(3.282003415807913e-22), + 4: float64(1.270655753080676e-29), + 5: float64(1.2293330898111133e-36), + 6: float64(2.7337005381646456e-44), + 7: float64(2.1674168387780482e-51), +} + +func X__rem_pio2_large(tls *TLS, x uintptr, y uintptr, e0 int32, nx int32, prec int32) (r int32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v e0=%v nx=%v prec=%v, (%v:)", tls, x, y, e0, nx, prec, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(240) + defer tls.Free(240) + var carry, i, ih, j, jk, jp, jv, jx, jz, k, m, n, q0 Tint32_t + var f, q [20]float64 + var fw, z, v2 float64 + var _ /* fq at bp+80 */ [20]float64 + var _ /* iq at bp+0 */ [20]Tint32_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = carry, f, fw, i, ih, j, jk, jp, jv, jx, jz, k, m, n, q, q0, z, v2 + /* initialize jk*/ + jk = _init_jk[prec] + jp = jk + /* determine jx,jv,q0, note that 3>q0 */ + jx = nx - int32(1) + jv = (e0 - int32(3)) / int32(24) + if jv < 0 { + jv = 0 + } + q0 = e0 - int32(24)*(jv+int32(1)) + /* set up f[0] to f[jx+jk] where f[jx+jk] = ipio2[jv+jk] */ + j = jv - jx + m = jx + jk + i = 0 + for { + if !(i <= m) { + break + } + if j < 0 { + v2 = float64(0) + } else { + v2 = float64(_ipio2[j]) + } + f[i] = v2 + goto _1 + _1: + ; + i = i + 1 + j = j + 1 + } + /* compute q[0],q[1],...q[jk] */ + i = 0 + for { + if !(i <= jk) { + break + } + j = 0 + fw = Float64FromFloat64(0) + for { + if !(j <= jx) { + break + } + fw = fw + float64(**(**float64)(__ccgo_up(x + uintptr(j)*8))*f[jx+i-j]) + goto _4 + _4: + ; + j = j + 1 + } + q[i] = fw + goto _3 + _3: + ; + i = i + 1 + } + jz = jk + goto recompute +recompute: + ; + /* distill q[] into iq[] reversingly */ + i = 0 + j = jz + z = q[jz] + for { + if !(j > 0) { + break + } + fw = float64(int32(float64(Float64FromFloat64(5.960464477539063e-08) * z))) + (**(**[20]Tint32_t)(__ccgo_up(bp)))[i] = int32(z - float64(Float64FromFloat64(1.6777216e+07)*fw)) + z = q[j-int32(1)] + fw + goto _5 + _5: + ; + i = i + 1 + j = j - 1 + } + /* compute n */ + z = Xscalbn(tls, z, q0) /* actual value of z */ + z = z - float64(float64(8)*Xfloor(tls, float64(z*float64(0.125)))) /* trim off integer >= 8 */ + n = int32(z) + z = z - float64(n) + ih = 0 + if q0 > 0 { /* need iq[jz-1] to determine n */ + i = (**(**[20]Tint32_t)(__ccgo_up(bp)))[jz-int32(1)] >> (int32(24) - q0) + n = n + i + **(**Tint32_t)(__ccgo_up(bp + uintptr(jz-int32(1))*4)) -= i << (int32(24) - q0) + ih = (**(**[20]Tint32_t)(__ccgo_up(bp)))[jz-int32(1)] >> (int32(23) - q0) + } else { + if q0 == 0 { + ih = (**(**[20]Tint32_t)(__ccgo_up(bp)))[jz-int32(1)] >> int32(23) + } else { + if z >= float64(0.5) { + ih = int32(2) + } + } + } + if ih > 0 { /* q > 0.5 */ + n = n + int32(1) + carry = 0 + i = 0 + for { + if !(i < jz) { + break + } /* compute 1-q */ + j = (**(**[20]Tint32_t)(__ccgo_up(bp)))[i] + if carry == 0 { + if j != 0 { + carry = int32(1) + (**(**[20]Tint32_t)(__ccgo_up(bp)))[i] = int32(0x1000000) - j + } + } else { + (**(**[20]Tint32_t)(__ccgo_up(bp)))[i] = int32(0xffffff) - j + } + goto _6 + _6: + ; + i = i + 1 + } + if q0 > 0 { /* rare case: chance is 1 in 12 */ + switch q0 { + case int32(1): + **(**Tint32_t)(__ccgo_up(bp + uintptr(jz-int32(1))*4)) &= int32(0x7fffff) + case int32(2): + **(**Tint32_t)(__ccgo_up(bp + uintptr(jz-int32(1))*4)) &= int32(0x3fffff) + break + } + } + if ih == int32(2) { + z = float64(1) - z + if carry != 0 { + z = z - Xscalbn(tls, float64(1), q0) + } + } + } + /* check if recomputation is needed */ + if z == float64(0) { + j = 0 + i = jz - int32(1) + for { + if !(i >= jk) { + break + } + j = j | (**(**[20]Tint32_t)(__ccgo_up(bp)))[i] + goto _7 + _7: + ; + i = i - 1 + } + if j == 0 { /* need recomputation */ + k = int32(1) + for { + if !((**(**[20]Tint32_t)(__ccgo_up(bp)))[jk-k] == 0) { + break + } + goto _8 + _8: + ; + k = k + 1 + } /* k = no. of terms needed */ + i = jz + int32(1) + for { + if !(i <= jz+k) { + break + } /* add q[jz+1] to q[jz+k] */ + f[jx+i] = float64(_ipio2[jv+i]) + j = 0 + fw = Float64FromFloat64(0) + for { + if !(j <= jx) { + break + } + fw = fw + float64(**(**float64)(__ccgo_up(x + uintptr(j)*8))*f[jx+i-j]) + goto _10 + _10: + ; + j = j + 1 + } + q[i] = fw + goto _9 + _9: + ; + i = i + 1 + } + jz = jz + k + goto recompute + } + } + /* chop off zero terms */ + if z == float64(0) { + jz = jz - int32(1) + q0 = q0 - int32(24) + for (**(**[20]Tint32_t)(__ccgo_up(bp)))[jz] == 0 { + jz = jz - 1 + q0 = q0 - int32(24) + } + } else { /* break z into 24-bit if necessary */ + z = Xscalbn(tls, z, -q0) + if z >= float64(1.6777216e+07) { + fw = float64(int32(float64(Float64FromFloat64(5.960464477539063e-08) * z))) + (**(**[20]Tint32_t)(__ccgo_up(bp)))[jz] = int32(z - float64(Float64FromFloat64(1.6777216e+07)*fw)) + jz = jz + int32(1) + q0 = q0 + int32(24) + (**(**[20]Tint32_t)(__ccgo_up(bp)))[jz] = int32(fw) + } else { + (**(**[20]Tint32_t)(__ccgo_up(bp)))[jz] = int32(z) + } + } + /* convert integer "bit" chunk to floating-point value */ + fw = Xscalbn(tls, float64(1), q0) + i = jz + for { + if !(i >= 0) { + break + } + q[i] = float64(fw * float64((**(**[20]Tint32_t)(__ccgo_up(bp)))[i])) + fw = fw * float64(5.960464477539063e-08) + goto _11 + _11: + ; + i = i - 1 + } + /* compute PIo2[0,...,jp]*q[jz,...,0] */ + i = jz + for { + if !(i >= 0) { + break + } + fw = float64(0) + k = Int32FromInt32(0) + for { + if !(k <= jp && k <= jz-i) { + break + } + fw = fw + float64(_PIo2[k]*q[i+k]) + goto _13 + _13: + ; + k = k + 1 + } + (**(**[20]float64)(__ccgo_up(bp + 80)))[jz-i] = fw + goto _12 + _12: + ; + i = i - 1 + } + /* compress fq[] into y[] */ + switch prec { + case 0: + goto _14 + case int32(2): + goto _15 + case int32(1): + goto _16 + case int32(3): + goto _17 + } + goto _18 +_14: + ; + fw = float64(0) + i = jz + for { + if !(i >= 0) { + break + } + fw = fw + (**(**[20]float64)(__ccgo_up(bp + 80)))[i] + goto _19 + _19: + ; + i = i - 1 + } + if ih == 0 { + v2 = fw + } else { + v2 = -fw + } + **(**float64)(__ccgo_up(y)) = v2 + goto _18 +_16: + ; +_15: + ; + fw = float64(0) + i = jz + for { + if !(i >= 0) { + break + } + fw = fw + (**(**[20]float64)(__ccgo_up(bp + 80)))[i] + goto _21 + _21: + ; + i = i - 1 + } + // TODO: drop excess precision here once double_t is used + fw = fw + if ih == 0 { + v2 = fw + } else { + v2 = -fw + } + **(**float64)(__ccgo_up(y)) = v2 + fw = (**(**[20]float64)(__ccgo_up(bp + 80)))[0] - fw + i = int32(1) + for { + if !(i <= jz) { + break + } + fw = fw + (**(**[20]float64)(__ccgo_up(bp + 80)))[i] + goto _23 + _23: + ; + i = i + 1 + } + if ih == 0 { + v2 = fw + } else { + v2 = -fw + } + **(**float64)(__ccgo_up(y + 1*8)) = v2 + goto _18 +_17: + ; /* painful */ + i = jz +_27: + ; + if !(i > 0) { + goto _25 + } + fw = (**(**[20]float64)(__ccgo_up(bp + 80)))[i-int32(1)] + (**(**[20]float64)(__ccgo_up(bp + 80)))[i] + **(**float64)(__ccgo_up(bp + 80 + uintptr(i)*8)) += (**(**[20]float64)(__ccgo_up(bp + 80)))[i-int32(1)] - fw + (**(**[20]float64)(__ccgo_up(bp + 80)))[i-int32(1)] = fw + goto _26 +_26: + ; + i = i - 1 + goto _27 + goto _25 +_25: + ; + i = jz + for { + if !(i > int32(1)) { + break + } + fw = (**(**[20]float64)(__ccgo_up(bp + 80)))[i-int32(1)] + (**(**[20]float64)(__ccgo_up(bp + 80)))[i] + **(**float64)(__ccgo_up(bp + 80 + uintptr(i)*8)) += (**(**[20]float64)(__ccgo_up(bp + 80)))[i-int32(1)] - fw + (**(**[20]float64)(__ccgo_up(bp + 80)))[i-int32(1)] = fw + goto _28 + _28: + ; + i = i - 1 + } + fw = float64(0) + i = jz + for { + if !(i >= int32(2)) { + break + } + fw = fw + (**(**[20]float64)(__ccgo_up(bp + 80)))[i] + goto _29 + _29: + ; + i = i - 1 + } + if ih == 0 { + **(**float64)(__ccgo_up(y)) = (**(**[20]float64)(__ccgo_up(bp + 80)))[0] + **(**float64)(__ccgo_up(y + 1*8)) = (**(**[20]float64)(__ccgo_up(bp + 80)))[int32(1)] + **(**float64)(__ccgo_up(y + 2*8)) = fw + } else { + **(**float64)(__ccgo_up(y)) = -(**(**[20]float64)(__ccgo_up(bp + 80)))[0] + **(**float64)(__ccgo_up(y + 1*8)) = -(**(**[20]float64)(__ccgo_up(bp + 80)))[int32(1)] + **(**float64)(__ccgo_up(y + 2*8)) = -fw + } +_18: + ; + return n & int32(7) +} + +const DBL_EPSILON3 = 2.220446049250313e-16 + +// C documentation +// +// /* +// * invpio2: 53 bits of 2/pi +// * pio2_1: first 25 bits of pi/2 +// * pio2_1t: pi/2 - pio2_1 +// */ + +var _toint1 = Float64FromFloat64(1.5) / Float64FromFloat64(2.220446049250313e-16) +var _pio41 = float64(0.7853981852531433) +var _invpio21 = float64(0.6366197723675814) /* 0x3FE45F30, 0x6DC9C883 */ +var _pio2_11 = float64(1.5707963109016418) /* 0x3FF921FB, 0x50000000 */ +var _pio2_1t1 = float64(1.5893254773528196e-08) /* 0x3E5110b4, 0x611A6263 */ + +func X__rem_pio2f(tls *TLS, x float32, y uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var e0, n, sign int32 + var fn Tdouble_t + var ix Tuint32_t + var _ /* tx at bp+8 */ [1]float64 + var _ /* ty at bp+16 */ [1]float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _ = e0, fn, ix, n, sign + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + ix = *(*Tuint32_t)(unsafe.Pointer(bp)) & uint32(0x7fffffff) + /* 25+53 bit pi is good enough for medium size */ + if ix < uint32(0x4dc90fdb) { /* |x| ~< 2^28*(pi/2), medium size */ + /* Use a specialized rint() to get fn. */ + fn = Tdouble_t(float64(x)*_invpio21) + _toint1 - _toint1 + n = int32(fn) + **(**float64)(__ccgo_up(y)) = float64(x) - Tdouble_t(fn*_pio2_11) - Tdouble_t(fn*_pio2_1t1) + /* Matters with directed rounding. */ + if **(**float64)(__ccgo_up(y)) < -_pio41 { + n = n - 1 + fn = fn - 1 + **(**float64)(__ccgo_up(y)) = float64(x) - Tdouble_t(fn*_pio2_11) - Tdouble_t(fn*_pio2_1t1) + } else { + if **(**float64)(__ccgo_up(y)) > _pio41 { + n = n + 1 + fn = fn + 1 + **(**float64)(__ccgo_up(y)) = float64(x) - Tdouble_t(fn*_pio2_11) - Tdouble_t(fn*_pio2_1t1) + } + } + return n + } + if ix >= uint32(0x7f800000) { /* x is inf or NaN */ + **(**float64)(__ccgo_up(y)) = float64(x - x) + return 0 + } + /* scale x into [2^23, 2^24-1] */ + sign = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(31)) + e0 = Int32FromUint32(ix>>Int32FromInt32(23) - Uint32FromInt32(Int32FromInt32(0x7f)+Int32FromInt32(23))) /* e0 = ilogb(|x|)-23, positive */ + *(*Tuint32_t)(unsafe.Pointer(bp)) = ix - Uint32FromInt32(e0< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* y at bp+0 */ struct { + Fi [0]Tuint64_t + Fd float64 + } + *(*struct { + Fi [0]Tuint64_t + Fd float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Fd float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + return Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(63)) +} + +// C documentation +// +// // FIXME: macro in math.h +func X__signbitf(tls *TLS, x float32) (r int32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* y at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + return Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(31)) +} + +func X__signbitl(tls *TLS, x float64) (r int32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__signbit(tls, x) +} + +var _S1 = -Float64FromFloat64(0.16666666666666632) /* 0xBFC55555, 0x55555549 */ +var _S2 = float64(0.00833333333332249) /* 0x3F811111, 0x1110F8A6 */ +var _S3 = -Float64FromFloat64(0.0001984126982985795) /* 0xBF2A01A0, 0x19C161D5 */ +var _S4 = float64(2.7557313707070068e-06) /* 0x3EC71DE3, 0x57B1FE7D */ +var _S5 = -Float64FromFloat64(2.5050760253406863e-08) /* 0xBE5AE5E6, 0x8A2B9CEB */ +var _S6 = float64(1.58969099521155e-10) /* 0x3DE5D93A, 0x5ACFD57C */ + +func X__sin(tls *TLS, x float64, y float64, iy int32) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v iy=%v, (%v:)", tls, x, y, iy, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v, w, z Tdouble_t + _, _, _, _ = r, v, w, z + z = Tdouble_t(x * x) + w = Tdouble_t(z * z) + r = _S2 + float64(z*(_S3+float64(z*_S4))) + float64(Tdouble_t(z*w)*(_S5+float64(z*_S6))) + v = Tdouble_t(z * x) + if iy == 0 { + return x + float64(v*(_S1+float64(z*r))) + } else { + return x - (Tdouble_t(z*(float64(Float64FromFloat64(0.5)*y)-float64(v*r))) - y - Tdouble_t(v*_S1)) + } + return r1 +} + +// C documentation +// +// /* |sin(x)/x - s(x)| < 2**-37.5 (~[-4.89e-12, 4.824e-12]). */ + +var _S11 = -Float64FromFloat64(0.16666666641626524) /* -0.166666666416265235595 */ +var _S21 = float64(0.008333329385889463) /* 0.0083333293858894631756 */ +var _S31 = -Float64FromFloat64(0.00019839334836096632) /* -0.000198393348360966317347 */ +var _S41 = float64(2.718311493989822e-06) /* 0.0000027183114939898219064 */ + +func X__sindf(tls *TLS, x float64) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, s, w, z Tdouble_t + _, _, _, _ = r, s, w, z + /* Try to optimize for parallel evaluation as in __tandf.c. */ + z = Tdouble_t(x * x) + w = Tdouble_t(z * z) + r = _S31 + float64(z*_S41) + s = Tdouble_t(z * x) + return float32(x + float64(s*(_S11+float64(z*_S21))) + float64(Tdouble_t(s*w)*r)) +} + +var _T = [13]float64{ + 0: float64(0.3333333333333341), + 1: float64(0.13333333333320124), + 2: float64(0.05396825397622605), + 3: float64(0.021869488294859542), + 4: float64(0.0088632398235993), + 5: float64(0.0035920791075913124), + 6: float64(0.0014562094543252903), + 7: float64(0.0005880412408202641), + 8: float64(0.0002464631348184699), + 9: float64(7.817944429395571e-05), + 10: float64(7.140724913826082e-05), + 11: -Float64FromFloat64(1.8558637485527546e-05), + 12: float64(2.590730518636337e-05), +} +var _pio42 = float64(0.7853981633974483) /* 3FE921FB, 54442D18 */ +var _pio4lo = float64(3.061616997868383e-17) /* 3C81A626, 33145C07 */ + +func X__tan(tls *TLS, x float64, y float64, odd int32) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v odd=%v, (%v:)", tls, x, y, odd, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var a, r, s, v, w, z, v1 Tdouble_t + var a0, w0 float64 + var big, sign int32 + var hx Tuint32_t + var v2 Tuint64_t + _, _, _, _, _, _, _, _, _, _, _, _, _ = a, a0, big, hx, r, s, sign, v, w, w0, z, v1, v2 + hx = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + big = BoolInt32(hx&uint32(0x7fffffff) >= uint32(0x3FE59428)) /* |x| >= 0.6744 */ + if big != 0 { + sign = Int32FromUint32(hx >> int32(31)) + if sign != 0 { + x = -x + y = -y + } + x = _pio42 - x + (_pio4lo - y) + y = float64(0) + } + z = Tdouble_t(x * x) + w = Tdouble_t(z * z) + /* + * Break x^5*(T[1]+x^2*T[2]+...) into + * x^5(T[1]+x^4*T[3]+...+x^20*T[11]) + + * x^5(x^2*(T[2]+x^4*T[4]+...+x^22*[T12])) + */ + r = _T[int32(1)] + float64(w*(_T[int32(3)]+float64(w*(_T[int32(5)]+float64(w*(_T[int32(7)]+float64(w*(_T[int32(9)]+float64(w*_T[int32(11)]))))))))) + v = Tdouble_t(z * (_T[int32(2)] + float64(w*(_T[int32(4)]+float64(w*(_T[int32(6)]+float64(w*(_T[int32(8)]+float64(w*(_T[int32(10)]+float64(w*_T[int32(12)]))))))))))) + s = Tdouble_t(z * x) + r = y + float64(z*(Tdouble_t(s*(r+v))+y)) + float64(s*_T[0]) + w = x + r + if big != 0 { + s = float64(int32(1) - int32(2)*odd) + v = s - Tdouble_t(float64(2)*(x+(r-Tdouble_t(w*w)/(w+s)))) + if sign != 0 { + v1 = -v + } else { + v1 = v + } + return v1 + } + if !(odd != 0) { + return w + } + /* -1.0/(x+r) has up to 2ulp error, so compute it accurately */ + w0 = w + v2 = *(*Tuint64_t)(unsafe.Pointer(&w0))>>Int32FromInt32(32)<>Int32FromInt32(32)< %v", r1) }() + } + var r, s, t, u, w, z Tdouble_t + var v1 float64 + _, _, _, _, _, _, _ = r, s, t, u, w, z, v1 + z = Tdouble_t(x * x) + /* + * Split up the polynomial into small independent terms to give + * opportunities for parallel evaluation. The chosen splitting is + * micro-optimized for Athlons (XP, X64). It costs 2 multiplications + * relative to Horner's method on sequential machines. + * + * We add the small terms from lowest degree up for efficiency on + * non-sequential machines (the lowest degree terms tend to be ready + * earlier). Apart from this, we don't care about order of + * operations, and don't need to to care since we have precision to + * spare. However, the chosen splitting is good for accuracy too, + * and would give results as accurate as Horner's method if the + * small terms were added from highest degree down. + */ + r = _T1[int32(4)] + float64(z*_T1[int32(5)]) + t = _T1[int32(2)] + float64(z*_T1[int32(3)]) + w = Tdouble_t(z * z) + s = Tdouble_t(z * x) + u = _T1[0] + float64(z*_T1[int32(1)]) + r = x + float64(s*u) + float64(Tdouble_t(s*w)*(t+Tdouble_t(w*r))) + if odd != 0 { + v1 = -Float64FromFloat64(1) / r + } else { + v1 = r + } + return float32(v1) +} + +var _pio2_hi = float64(1.5707963267948966) /* 0x3FF921FB, 0x54442D18 */ +var _pio2_lo = float64(6.123233995736766e-17) /* 0x3C91A626, 0x33145C07 */ +var _pS0 = float64(0.16666666666666666) /* 0x3FC55555, 0x55555555 */ +var _pS1 = -Float64FromFloat64(0.3255658186224009) /* 0xBFD4D612, 0x03EB6F7D */ +var _pS2 = float64(0.20121253213486293) /* 0x3FC9C155, 0x0E884455 */ +var _pS3 = -Float64FromFloat64(0.04005553450067941) /* 0xBFA48228, 0xB5688F3B */ +var _pS4 = float64(0.0007915349942898145) /* 0x3F49EFE0, 0x7501B288 */ +var _pS5 = float64(3.479331075960212e-05) /* 0x3F023DE1, 0x0DFDF709 */ +var _qS1 = -Float64FromFloat64(2.403394911734414) /* 0xC0033A27, 0x1C8A2D4B */ +var _qS2 = float64(2.0209457602335057) /* 0x40002AE5, 0x9C598AC8 */ +var _qS3 = -Float64FromFloat64(0.6882839716054533) /* 0xBFE6066C, 0x1B8D0159 */ +var _qS4 = float64(0.07703815055590194) /* 0x3FB3B8C5, 0xB12E9282 */ + +func _R(tls *TLS, z float64) (r float64) { + var p, q Tdouble_t + _, _ = p, q + p = Tdouble_t(z * (_pS0 + float64(z*(_pS1+float64(z*(_pS2+float64(z*(_pS3+float64(z*(_pS4+float64(z*_pS5))))))))))) + q = float64(1) + float64(z*(_qS1+float64(z*(_qS2+float64(z*(_qS3+float64(z*_qS4))))))) + return p / q +} + +func Xacos(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + var c, df, s, w, z float64 + var hx, ix, lx Tuint32_t + var v1 Tuint64_t + _, _, _, _, _, _, _, _, _ = c, df, hx, ix, lx, s, w, z, v1 + hx = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + ix = hx & uint32(0x7fffffff) + /* |x| >= 1 or nan */ + if ix >= uint32(0x3ff00000) { + lx = uint32(*(*Tuint64_t)(unsafe.Pointer(&x))) + if ix-uint32(0x3ff00000)|lx == uint32(0) { + /* acos(1)=0, acos(-1)=pi */ + if hx>>int32(31) != 0 { + return float64(Float64FromInt32(2)*_pio2_hi) + Float64FromFloat32(7.52316384526264e-37) + } + return Float64FromInt32(0) + } + return Float64FromInt32(0) / (x - x) + } + /* |x| < 0.5 */ + if ix < uint32(0x3fe00000) { + if ix <= uint32(0x3c600000) { /* |x| < 2**-57 */ + return _pio2_hi + Float64FromFloat32(7.52316384526264e-37) + } + return _pio2_hi - (x - (_pio2_lo - float64(x*_R(tls, float64(x*x))))) + } + /* x < -0.5 */ + if hx>>int32(31) != 0 { + z = float64((float64(1) + x) * float64(0.5)) + s = Xsqrt(tls, z) + w = float64(_R(tls, z)*s) - _pio2_lo + return float64(Float64FromInt32(2) * (_pio2_hi - (s + w))) + } + /* x > 0.5 */ + z = float64((float64(1) - x) * float64(0.5)) + s = Xsqrt(tls, z) + df = s + v1 = *(*Tuint64_t)(unsafe.Pointer(&df))>>Int32FromInt32(32)< %v", r) }() + } + var c, df, s, w, z float32 + var hx, ix, v1 Tuint32_t + _, _, _, _, _, _, _, _ = c, df, hx, ix, s, w, z, v1 + hx = *(*Tuint32_t)(unsafe.Pointer(&x)) + ix = hx & uint32(0x7fffffff) + /* |x| >= 1 or nan */ + if ix >= uint32(0x3f800000) { + if ix == uint32(0x3f800000) { + if hx>>int32(31) != 0 { + return float32(Float32FromInt32(2)*_pio2_hi1) + Float32FromFloat32(7.52316384526264e-37) + } + return Float32FromInt32(0) + } + return Float32FromInt32(0) / (x - x) + } + /* |x| < 0.5 */ + if ix < uint32(0x3f000000) { + if ix <= uint32(0x32800000) { /* |x| < 2**-26 */ + return _pio2_hi1 + Float32FromFloat32(7.52316384526264e-37) + } + return _pio2_hi1 - (x - (_pio2_lo1 - float32(x*_R1(tls, float32(x*x))))) + } + /* x < -0.5 */ + if hx>>int32(31) != 0 { + z = float32((Float32FromInt32(1) + x) * Float32FromFloat32(0.5)) + s = Xsqrtf(tls, z) + w = float32(_R1(tls, z)*s) - _pio2_lo1 + return float32(Float32FromInt32(2) * (_pio2_hi1 - (s + w))) + } + /* x > 0.5 */ + z = float32((Float32FromInt32(1) - x) * Float32FromFloat32(0.5)) + s = Xsqrtf(tls, z) + hx = *(*Tuint32_t)(unsafe.Pointer(&s)) + v1 = hx & uint32(0xfffff000) + df = *(*float32)(unsafe.Pointer(&v1)) + c = (z - float32(df*df)) / (s + df) + w = float32(_R1(tls, z)*s) + c + return float32(Float32FromInt32(2) * (df + w)) +} + +// C documentation +// +// /* acosh(x) = log(x + sqrt(x*x-1)) */ +func Xacosh(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e uint32 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _ = e + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + e = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + /* x < 1 domain error is handled in the called functions */ + if e < Uint32FromInt32(Int32FromInt32(0x3ff)+Int32FromInt32(1)) { + /* |x| < 2, up to 2ulp error in [1,1.125] */ + return Xlog1p(tls, x-Float64FromInt32(1)+Xsqrt(tls, float64((x-Float64FromInt32(1))*(x-Float64FromInt32(1)))+float64(Float64FromInt32(2)*(x-Float64FromInt32(1))))) + } + if e < Uint32FromInt32(Int32FromInt32(0x3ff)+Int32FromInt32(26)) { + /* |x| < 0x1p26 */ + return Xlog(tls, float64(Float64FromInt32(2)*x)-Float64FromInt32(1)/(x+Xsqrt(tls, float64(x*x)-Float64FromInt32(1)))) + } + /* |x| >= 0x1p26 or nan */ + return Xlog(tls, x) + float64(0.6931471805599453) +} + +// C documentation +// +// /* acosh(x) = log(x + sqrt(x*x-1)) */ +func Xacoshf(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var a Tuint32_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _ = a + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + a = *(*Tuint32_t)(unsafe.Pointer(bp)) & uint32(0x7fffffff) + if a < Uint32FromInt32(Int32FromInt32(0x3f800000)+Int32FromInt32(1)<= 0x1p12 or x <= -2 or nan */ + return Xlogf(tls, x) + Float32FromFloat32(0.6931471805599453) +} + +func Xacoshl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xacosh(tls, x) +} + +func Xacosl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xacos(tls, x) +} + +var _pio2_hi2 = float64(1.5707963267948966) /* 0x3FF921FB, 0x54442D18 */ +var _pio2_lo2 = float64(6.123233995736766e-17) /* 0x3C91A626, 0x33145C07 */ +/* coefficients for R(x^2) */ +var _pS02 = float64(0.16666666666666666) /* 0x3FC55555, 0x55555555 */ +var _pS12 = -Float64FromFloat64(0.3255658186224009) /* 0xBFD4D612, 0x03EB6F7D */ +var _pS22 = float64(0.20121253213486293) /* 0x3FC9C155, 0x0E884455 */ +var _pS31 = -Float64FromFloat64(0.04005553450067941) /* 0xBFA48228, 0xB5688F3B */ +var _pS41 = float64(0.0007915349942898145) /* 0x3F49EFE0, 0x7501B288 */ +var _pS51 = float64(3.479331075960212e-05) /* 0x3F023DE1, 0x0DFDF709 */ +var _qS12 = -Float64FromFloat64(2.403394911734414) /* 0xC0033A27, 0x1C8A2D4B */ +var _qS21 = float64(2.0209457602335057) /* 0x40002AE5, 0x9C598AC8 */ +var _qS31 = -Float64FromFloat64(0.6882839716054533) /* 0xBFE6066C, 0x1B8D0159 */ +var _qS41 = float64(0.07703815055590194) /* 0x3FB3B8C5, 0xB12E9282 */ + +func _R2(tls *TLS, z float64) (r float64) { + var p, q Tdouble_t + _, _ = p, q + p = Tdouble_t(z * (_pS02 + float64(z*(_pS12+float64(z*(_pS22+float64(z*(_pS31+float64(z*(_pS41+float64(z*_pS51))))))))))) + q = float64(1) + float64(z*(_qS12+float64(z*(_qS21+float64(z*(_qS31+float64(z*_qS41))))))) + return p / q +} + +func Xasin(tls *TLS, x float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var c, f, r, s, z float64 + var hx, ix, lx Tuint32_t + var v1 Tuint64_t + _, _, _, _, _, _, _, _, _ = c, f, hx, ix, lx, r, s, z, v1 + hx = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + ix = hx & uint32(0x7fffffff) + /* |x| >= 1 or nan */ + if ix >= uint32(0x3ff00000) { + lx = uint32(*(*Tuint64_t)(unsafe.Pointer(&x))) + if ix-uint32(0x3ff00000)|lx == uint32(0) { + /* asin(1) = +-pi/2 with inexact */ + return float64(x*_pio2_hi2) + Float64FromFloat32(7.52316384526264e-37) + } + return Float64FromInt32(0) / (x - x) + } + /* |x| < 0.5 */ + if ix < uint32(0x3fe00000) { + /* if 0x1p-1022 <= |x| < 0x1p-26, avoid raising underflow */ + if ix < uint32(0x3e500000) && ix >= uint32(0x00100000) { + return x + } + return x + float64(x*_R2(tls, float64(x*x))) + } + /* 1 > |x| >= 0.5 */ + z = float64((Float64FromInt32(1) - Xfabs(tls, x)) * float64(0.5)) + s = Xsqrt(tls, z) + r = _R2(tls, z) + if ix >= uint32(0x3fef3333) { /* if |x| > 0.975 */ + x = _pio2_hi2 - (float64(Float64FromInt32(2)*(s+float64(s*r))) - _pio2_lo2) + } else { + /* f+c = sqrt(z) */ + f = s + v1 = *(*Tuint64_t)(unsafe.Pointer(&f))>>Int32FromInt32(32)<>int32(31) != 0 { + return -x + } + return x +} + +var _pio2 = float64(1.5707963267948966) + +/* coefficients for R(x^2) */ +var _pS03 = float32(0.16666586697) +var _pS13 = float32(-Float64FromFloat64(0.042743422091)) +var _pS23 = float32(-Float64FromFloat64(0.008656363003)) +var _qS13 = float32(-Float64FromFloat64(0.7066296339)) + +func _R3(tls *TLS, z float32) (r float32) { + var p, q Tfloat_t + _, _ = p, q + p = Tfloat_t(z * (_pS03 + float32(z*(_pS13+float32(z*_pS23))))) + q = Float32FromFloat32(1) + float32(z*_qS13) + return p / q +} + +func Xasinf(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + var hx, ix Tuint32_t + var s float64 + var z float32 + _, _, _, _ = hx, ix, s, z + hx = *(*Tuint32_t)(unsafe.Pointer(&x)) + ix = hx & uint32(0x7fffffff) + if ix >= uint32(0x3f800000) { /* |x| >= 1 */ + if ix == uint32(0x3f800000) { /* |x| == 1 */ + return float32(float64(float64(x)*_pio2) + Float64FromFloat32(7.52316384526264e-37)) + } /* asin(+-1) = +-pi/2 with inexact */ + return Float32FromInt32(0) / (x - x) /* asin(|x|>1) is NaN */ + } + if ix < uint32(0x3f000000) { /* |x| < 0.5 */ + /* if 0x1p-126 <= |x| < 0x1p-12, avoid raising underflow */ + if ix < uint32(0x39800000) && ix >= uint32(0x00800000) { + return x + } + return x + float32(x*_R3(tls, float32(x*x))) + } + /* 1 > |x| >= 0.5 */ + z = float32((Float32FromInt32(1) - Xfabsf(tls, x)) * Float32FromFloat32(0.5)) + s = Xsqrt(tls, float64(z)) + x = float32(_pio2 - float64(Float64FromInt32(2)*(s+float64(s*float64(_R3(tls, z)))))) + if hx>>int32(31) != 0 { + return -x + } + return x +} + +// C documentation +// +// /* asinh(x) = sign(x)*log(|x|+sqrt(x*x+1)) ~= x - x^3/6 + o(x^5) */ +func Xasinh(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e, s uint32 + var y float32 + var y1, y2, v1 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _ = e, s, y, y1, y2, v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + e = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + s = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(63)) + /* |x| */ + *(*Tuint64_t)(unsafe.Pointer(bp)) &= Uint64FromInt32(-Int32FromInt32(1)) / Uint64FromInt32(2) + x3 = *(*float64)(unsafe.Pointer(bp)) + if e >= Uint32FromInt32(Int32FromInt32(0x3ff)+Int32FromInt32(26)) { + /* |x| >= 0x1p26 or inf or nan */ + x3 = Xlog(tls, x3) + float64(0.6931471805599453) + } else { + if e >= Uint32FromInt32(Int32FromInt32(0x3ff)+Int32FromInt32(1)) { + /* |x| >= 2 */ + x3 = Xlog(tls, float64(Float64FromInt32(2)*x3)+Float64FromInt32(1)/(Xsqrt(tls, float64(x3*x3)+Float64FromInt32(1))+x3)) + } else { + if e >= Uint32FromInt32(Int32FromInt32(0x3ff)-Int32FromInt32(26)) { + /* |x| >= 0x1p-26, up to 1.6ulp error in [0.125,0.5] */ + x3 = Xlog1p(tls, x3+float64(x3*x3)/(Xsqrt(tls, float64(x3*x3)+Float64FromInt32(1))+Float64FromInt32(1))) + } else { + /* |x| < 0x1p-26, raise inexact if x != 0 */ + if uint64(8) == uint64(4) { + y = float32(x3 + Float64FromFloat32(1.329227995784916e+36)) + } else { + if uint64(8) == uint64(8) { + y1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } else { + y2 = float64(x3 + Float64FromFloat32(1.329227995784916e+36)) + } + } + } + } + } + if s != 0 { + v1 = -x3 + } else { + v1 = x3 + } + return v1 +} + +// C documentation +// +// /* asinh(x) = sign(x)*log(|x|+sqrt(x*x+1)) ~= x - x^3/6 + o(x^5) */ +func Xasinhf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var i Tuint32_t + var s uint32 + var y, v1 float32 + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _ = i, s, y, y1, y2, v1 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + i = *(*Tuint32_t)(unsafe.Pointer(bp)) & uint32(0x7fffffff) + s = *(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(31) + /* |x| */ + *(*Tuint32_t)(unsafe.Pointer(bp)) = i + x3 = *(*float32)(unsafe.Pointer(bp)) + if i >= Uint32FromInt32(Int32FromInt32(0x3f800000)+Int32FromInt32(12)<= 0x1p12 or inf or nan */ + x3 = Xlogf(tls, x3) + Float32FromFloat32(0.6931471805599453) + } else { + if i >= Uint32FromInt32(Int32FromInt32(0x3f800000)+Int32FromInt32(1)<= 2 */ + x3 = Xlogf(tls, float32(Float32FromInt32(2)*x3)+Float32FromInt32(1)/(Xsqrtf(tls, float32(x3*x3)+Float32FromInt32(1))+x3)) + } else { + if i >= Uint32FromInt32(Int32FromInt32(0x3f800000)-Int32FromInt32(12)<= 0x1p-12, up to 1.6ulp error in [0.125,0.5] */ + x3 = Xlog1pf(tls, x3+float32(x3*x3)/(Xsqrtf(tls, float32(x3*x3)+Float32FromInt32(1))+Float32FromInt32(1))) + } else { + /* |x| < 0x1p-12, raise inexact if x!=0 */ + if uint64(4) == uint64(4) { + y = x3 + Float32FromFloat32(1.329227995784916e+36) + } else { + if uint64(4) == uint64(8) { + y1 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } else { + y2 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } + } + } + } + } + if s != 0 { + v1 = -x3 + } else { + v1 = x3 + } + return v1 +} + +func Xasinhl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xasinh(tls, x) +} + +func Xasinl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xasin(tls, x) +} + +var _atanhi = [4]float64{ + 0: float64(0.4636476090008061), + 1: float64(0.7853981633974483), + 2: float64(0.982793723247329), + 3: float64(1.5707963267948966), +} + +var _atanlo = [4]float64{ + 0: float64(2.2698777452961687e-17), + 1: float64(3.061616997868383e-17), + 2: float64(1.3903311031230998e-17), + 3: float64(6.123233995736766e-17), +} + +var _aT = [11]float64{ + 0: float64(0.3333333333333293), + 1: -Float64FromFloat64(0.19999999999876483), + 2: float64(0.14285714272503466), + 3: -Float64FromFloat64(0.11111110405462356), + 4: float64(0.09090887133436507), + 5: -Float64FromFloat64(0.0769187620504483), + 6: float64(0.06661073137387531), + 7: -Float64FromFloat64(0.058335701337905735), + 8: float64(0.049768779946159324), + 9: -Float64FromFloat64(0.036531572744216916), + 10: float64(0.016285820115365782), +} + +func Xatan(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var id int32 + var ix, sign Tuint32_t + var s1, s2, w, z, v3 Tdouble_t + var y float32 + var y1, y2 float64 + var v1 uint64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _, _, _, _, _, _, _, _, _, _, _, _ = id, ix, s1, s2, sign, w, y, y1, y2, z, v1, v3 + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x3)) >> int32(32)) + sign = ix >> int32(31) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x44100000) { /* if |x| >= 2^66 */ + *(*float64)(unsafe.Pointer(bp)) = x3 + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 + _2: + if BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var __u1, __u2 Tuint64_t + var ix, iy, lx, ly, m Tuint32_t + var z, v6 float64 + var v1, v3 uint64 + var v5 bool + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _, _, _, _, _, _, _, _, _, _, _, _ = __u1, __u2, ix, iy, lx, ly, m, z, v1, v3, v5, v6 + *(*float64)(unsafe.Pointer(bp)) = x + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + ; + if v5 = BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<> int32(32)) + lx = uint32(__u1) + __u2 = *(*Tuint64_t)(unsafe.Pointer(&y)) + iy = uint32(__u2 >> int32(32)) + ly = uint32(__u2) + if ix-uint32(0x3ff00000)|lx == uint32(0) { /* x = 1.0 */ + return Xatan(tls, y) + } + m = iy>>Int32FromInt32(31)&uint32(1) | ix>>Int32FromInt32(30)&uint32(2) /* 2*sign(x)+sign(y) */ + ix = ix & uint32(0x7fffffff) + iy = iy & uint32(0x7fffffff) + /* when y = 0 */ + if iy|ly == uint32(0) { + switch m { + case uint32(0): + fallthrough + case uint32(1): + return y /* atan(+-0,+anything)=+-0 */ + case uint32(2): + return _pi /* atan(+0,-anything) = pi */ + case uint32(3): + return -_pi /* atan(-0,-anything) =-pi */ + } + } + /* when x = 0 */ + if ix|lx == uint32(0) { + if m&uint32(1) != 0 { + v6 = -_pi / Float64FromInt32(2) + } else { + v6 = _pi / Float64FromInt32(2) + } + return v6 + } + /* when x is INF */ + if ix == uint32(0x7ff00000) { + if iy == uint32(0x7ff00000) { + switch m { + case uint32(0): + return _pi / Float64FromInt32(4) /* atan(+INF,+INF) */ + case uint32(1): + return -_pi / Float64FromInt32(4) /* atan(-INF,+INF) */ + case uint32(2): + return float64(Float64FromInt32(3)*_pi) / Float64FromInt32(4) /* atan(+INF,-INF) */ + case uint32(3): + return float64(float64(-Int32FromInt32(3))*_pi) / Float64FromInt32(4) /* atan(-INF,-INF) */ + } + } else { + switch m { + case uint32(0): + return float64(0) /* atan(+...,+INF) */ + case uint32(1): + return -Float64FromFloat64(0) /* atan(-...,+INF) */ + case uint32(2): + return _pi /* atan(+...,-INF) */ + case uint32(3): + return -_pi /* atan(-...,-INF) */ + } + } + } + /* |y/x| > 0x1p64 */ + if ix+Uint32FromInt32(Int32FromInt32(64)< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ix, iy, m Tuint32_t + var z, v6 float32 + var v1, v3 uint32 + var v5 bool + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _, _, _, _, _, _, _, _ = ix, iy, m, z, v1, v3, v5, v6 + *(*float32)(unsafe.Pointer(bp)) = x + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + ; + if v5 = BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0; !v5 { + *(*float32)(unsafe.Pointer(bp)) = y + v3 = *(*uint32)(unsafe.Pointer(bp)) + goto _4 + _4: + } + if v5 || BoolInt32(v3&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return x + y + } + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + iy = *(*Tuint32_t)(unsafe.Pointer(&y)) + if ix == uint32(0x3f800000) { /* x=1.0 */ + return Xatanf(tls, y) + } + m = iy>>Int32FromInt32(31)&uint32(1) | ix>>Int32FromInt32(30)&uint32(2) /* 2*sign(x)+sign(y) */ + ix = ix & uint32(0x7fffffff) + iy = iy & uint32(0x7fffffff) + /* when y = 0 */ + if iy == uint32(0) { + switch m { + case uint32(0): + fallthrough + case uint32(1): + return y /* atan(+-0,+anything)=+-0 */ + case uint32(2): + return _pi1 /* atan(+0,-anything) = pi */ + case uint32(3): + return -_pi1 /* atan(-0,-anything) =-pi */ + } + } + /* when x = 0 */ + if ix == uint32(0) { + if m&uint32(1) != 0 { + v6 = -_pi1 / Float32FromInt32(2) + } else { + v6 = _pi1 / Float32FromInt32(2) + } + return v6 + } + /* when x is INF */ + if ix == uint32(0x7f800000) { + if iy == uint32(0x7f800000) { + switch m { + case uint32(0): + return _pi1 / Float32FromInt32(4) /* atan(+INF,+INF) */ + case uint32(1): + return -_pi1 / Float32FromInt32(4) /* atan(-INF,+INF) */ + case uint32(2): + return float32(Float32FromInt32(3)*_pi1) / Float32FromInt32(4) /*atan(+INF,-INF)*/ + case uint32(3): + return float32(float32(-Int32FromInt32(3))*_pi1) / Float32FromInt32(4) /*atan(-INF,-INF)*/ + } + } else { + switch m { + case uint32(0): + return Float32FromFloat32(0) /* atan(+...,+INF) */ + case uint32(1): + return -Float32FromFloat32(0) /* atan(-...,+INF) */ + case uint32(2): + return _pi1 /* atan(+...,-INF) */ + case uint32(3): + return -_pi1 /* atan(-...,-INF) */ + } + } + } + /* |y/x| > 0x1p26 */ + if ix+Uint32FromInt32(Int32FromInt32(26)< %v", r) }() + } + return Xatan2(tls, y, x) +} + +var _atanhi1 = [4]float32{ + 0: float32(0.46364760399), + 1: float32(0.78539812565), + 2: float32(0.98279368877), + 3: float32(1.5707962513), +} + +var _atanlo1 = [4]float32{ + 0: float32(5.012158244e-09), + 1: float32(3.7748947079e-08), + 2: float32(3.447321717e-08), + 3: float32(7.5497894159e-08), +} + +var _aT1 = [5]float32{ + 0: float32(0.33333328366), + 1: float32(-Float64FromFloat64(0.19999158382)), + 2: float32(0.14253635705), + 3: float32(-Float64FromFloat64(0.10648017377)), + 4: float32(0.061687607318), +} + +func Xatanf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var id int32 + var ix, sign Tuint32_t + var s1, s2, w, z, v3 Tfloat_t + var y float32 + var y1, y2 float64 + var v1 uint32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _, _, _, _, _, _, _, _, _, _, _, _ = id, ix, s1, s2, sign, w, y, y1, y2, z, v1, v3 + ix = *(*Tuint32_t)(unsafe.Pointer(&x3)) + sign = ix >> int32(31) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x4c800000) { /* if |x| >= 2**26 */ + *(*float32)(unsafe.Pointer(bp)) = x3 + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 + _2: + if BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return x3 + } + z = _atanhi1[int32(3)] + Float32FromFloat32(7.52316384526264e-37) + if sign != 0 { + v3 = -z + } else { + v3 = z + } + return v3 + } + if ix < uint32(0x3ee00000) { /* |x| < 0.4375 */ + if ix < uint32(0x39800000) { /* |x| < 2**-12 */ + if ix < uint32(0x00800000) { + /* raise underflow for subnormal x */ + if uint64(4) == uint64(4) { + y = float32(x3 * x3) + } else { + if uint64(4) == uint64(8) { + y1 = float64(x3 * x3) + } else { + y2 = float64(x3 * x3) + } + } + } + return x3 + } + id = -int32(1) + } else { + x3 = Xfabsf(tls, x3) + if ix < uint32(0x3f980000) { /* |x| < 1.1875 */ + if ix < uint32(0x3f300000) { /* 7/16 <= |x| < 11/16 */ + id = 0 + x3 = (float32(Float32FromFloat32(2)*x3) - Float32FromFloat32(1)) / (Float32FromFloat32(2) + x3) + } else { /* 11/16 <= |x| < 19/16 */ + id = int32(1) + x3 = (x3 - Float32FromFloat32(1)) / (x3 + Float32FromFloat32(1)) + } + } else { + if ix < uint32(0x401c0000) { /* |x| < 2.4375 */ + id = int32(2) + x3 = (x3 - Float32FromFloat32(1.5)) / (Float32FromFloat32(1) + float32(Float32FromFloat32(1.5)*x3)) + } else { /* 2.4375 <= |x| < 2**26 */ + id = int32(3) + x3 = -Float32FromFloat32(1) / x3 + } + } + } + /* end of argument reduction */ + z = Tfloat_t(x3 * x3) + w = Tfloat_t(z * z) + /* break sum from i=0 to 10 aT[i]z**(i+1) into odd and even poly */ + s1 = Tfloat_t(z * (_aT1[0] + float32(w*(_aT1[int32(2)]+float32(w*_aT1[int32(4)]))))) + s2 = Tfloat_t(w * (_aT1[int32(1)] + float32(w*_aT1[int32(3)]))) + if id < 0 { + return x3 - float32(x3*(s1+s2)) + } + z = _atanhi1[id] - (float32(x3*(s1+s2)) - _atanlo1[id] - x3) + if sign != 0 { + v3 = -z + } else { + v3 = z + } + return v3 +} + +// C documentation +// +// /* atanh(x) = log((1+x)/(1-x))/2 = log1p(2x/(1-x))/2 ~= x + x^3/3 + o(x^5) */ +func Xatanh(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e, s uint32 + var y float32 + var y1, y2 float64 + var y3, v1 Tdouble_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _ = e, s, y, y1, y2, y3, v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + e = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + s = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(63)) + /* |x| */ + *(*Tuint64_t)(unsafe.Pointer(bp)) &= Uint64FromInt32(-Int32FromInt32(1)) / Uint64FromInt32(2) + y3 = *(*float64)(unsafe.Pointer(bp)) + if e < Uint32FromInt32(Int32FromInt32(0x3ff)-Int32FromInt32(1)) { + if e < Uint32FromInt32(Int32FromInt32(0x3ff)-Int32FromInt32(32)) { + /* handle underflow */ + if e == uint32(0) { + if uint64(4) == uint64(4) { + y = float32(y3) + } else { + if uint64(4) == uint64(8) { + y1 = float64(float32(y3)) + } else { + y2 = float64(float32(y3)) + } + } + } + } else { + /* |x| < 0.5, up to 1.7ulp error */ + y3 = Tdouble_t(float64(0.5) * Xlog1p(tls, Tdouble_t(Float64FromInt32(2)*y3)+Tdouble_t(Tdouble_t(Float64FromInt32(2)*y3)*y3)/(Float64FromInt32(1)-y3))) + } + } else { + /* avoid overflow */ + y3 = Tdouble_t(float64(0.5) * Xlog1p(tls, float64(Float64FromInt32(2)*(y3/(Float64FromInt32(1)-y3))))) + } + if s != 0 { + v1 = -y3 + } else { + v1 = y3 + } + return v1 +} + +// C documentation +// +// /* atanh(x) = log((1+x)/(1-x))/2 = log1p(2x/(1-x))/2 ~= x + x^3/3 + o(x^5) */ +func Xatanhf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var s uint32 + var y float32 + var y1, y2 float64 + var y3, v1 Tfloat_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _ = s, y, y1, y2, y3, v1 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + s = *(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(31) + /* |x| */ + *(*Tuint32_t)(unsafe.Pointer(bp)) &= uint32(0x7fffffff) + y3 = *(*float32)(unsafe.Pointer(bp)) + if *(*Tuint32_t)(unsafe.Pointer(bp)) < Uint32FromInt32(Int32FromInt32(0x3f800000)-Int32FromInt32(1)< %v", r) }() + } + return Xatanh(tls, x) +} + +func Xatanl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xatan(tls, x) +} + +var _B1 = uint32(715094163) /* B1 = (1023-1023/3-0.03306235651)*2**20 */ +var _B2 = uint32(696219795) /* B2 = (1023-1023/3-54/3-0.03306235651)*2**20 */ + +// C documentation +// +// /* |1/cbrt(x) - p(x)| < 2**-23.5 (~[-7.93e-8, 7.929e-8]). */ + +var _P0 = float64(1.87595182427177) /* 0x3ffe03e6, 0x0f61e692 */ +var _P1 = -Float64FromFloat64(1.8849797954337717) /* 0xbffe28e0, 0x92f02420 */ +var _P2 = float64(1.6214297201053545) /* 0x3ff9f160, 0x4a49d6c2 */ +var _P3 = -Float64FromFloat64(0.758397934778766) /* 0xbfe844cb, 0xbee751d9 */ +var _P4 = float64(0.14599619288661245) /* 0x3fc2b000, 0xd4e4edd7 */ + +func Xcbrt(tls *TLS, x float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var hx Tuint32_t + var r, s, t, w Tdouble_t + var v1 uintptr + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _ = hx, r, s, t, w, v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + hx = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32) & uint64(0x7fffffff)) + if hx >= uint32(0x7ff00000) { /* cbrt(NaN,INF) is itself */ + return x + x + } + /* + * Rough cbrt to 5 bits: + * cbrt(2**e*(1+m) ~= 2**(e/3)*(1+(e%3+m)/3) + * where e is integral and >= 0, m is real and in [0, 1), and "/" and + * "%" are integer division and modulus with rounding towards minus + * infinity. The RHS is always >= the LHS and has a maximum relative + * error of about 1 in 16. Adding a bias of -0.03306235651 to the + * (e%3+m)/3 term reduces the error to about 1 in 32. With the IEEE + * floating point representation, for finite positive normal values, + * ordinary integer divison of the value in bits magically gives + * almost exactly the RHS of the above provided we first subtract the + * exponent bias (1023 for doubles) and later add it back. We do the + * subtraction virtually to keep e >= 0 so that ordinary integer + * division rounds towards minus infinity; this is also efficient. + */ + if hx < uint32(0x00100000) { /* zero or subnormal? */ + *(*float64)(unsafe.Pointer(bp)) = float64(x * float64(1.8014398509481984e+16)) + hx = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32) & uint64(0x7fffffff)) + if hx == uint32(0) { + return x + } /* cbrt(0) is itself */ + hx = hx/uint32(3) + _B2 + } else { + hx = hx/uint32(3) + _B1 + } + v1 = bp + *(*Tuint64_t)(unsafe.Pointer(v1)) = Tuint64_t(*(*Tuint64_t)(unsafe.Pointer(v1)) & (Uint64FromUint64(1) << Int32FromInt32(63))) + *(*Tuint64_t)(unsafe.Pointer(bp)) |= uint64(hx) << int32(32) + t = *(*float64)(unsafe.Pointer(bp)) + /* + * New cbrt to 23 bits: + * cbrt(x) = t*cbrt(x/t**3) ~= t*P(t**3/x) + * where P(r) is a polynomial of degree 4 that approximates 1/cbrt(r) + * to within 2**-23.5 when |r - 1| < 1/10. The rough approximation + * has produced t such than |t/cbrt(x) - 1| ~< 1/32, and cubing this + * gives us bounds for r = t**3/x. + * + * Try to optimize for parallel evaluation as in __tanf.c. + */ + r = Tdouble_t(Tdouble_t(t*t) * (t / x)) + t = Tdouble_t(t * (_P0 + float64(r*(_P1+float64(r*_P2))) + float64(Tdouble_t(Tdouble_t(r*r)*r)*(_P3+float64(r*_P4))))) + /* + * Round t away from zero to 23 bits (sloppily except for ensuring that + * the result is larger in magnitude than cbrt(x) but not much more than + * 2 23-bit ulps larger). With rounding towards zero, the error bound + * would be ~5/6 instead of ~4/6. With a maximum error of 2 23-bit ulps + * in the rounded t, the infinite-precision error in the Newton + * approximation barely affects third digit in the final error + * 0.667; the error in the rounded t can be up to about 3 23-bit ulps + * before the final error is larger than 0.667 ulps. + */ + *(*float64)(unsafe.Pointer(bp)) = t + *(*Tuint64_t)(unsafe.Pointer(bp)) = uint64(*(*Tuint64_t)(unsafe.Pointer(bp))+Uint64FromUint32(0x80000000)) & uint64(0xffffffffc0000000) + t = *(*float64)(unsafe.Pointer(bp)) + /* one step Newton iteration to 53 bits with error < 0.667 ulps */ + s = Tdouble_t(t * t) /* t*t is exact */ + r = x / s /* error <= 0.5 ulps; |r| < |t| */ + w = t + t /* t+t is exact */ + r = (r - t) / (w + r) /* r-t is exact; w+r ~= 3*t */ + t = t + Tdouble_t(t*r) /* error <= 0.5 + 0.5/3 + epsilon */ + return t +} + +var _B11 = uint32(709958130) /* B1 = (127-127.0/3-0.03306235651)*2**23 */ +var _B21 = uint32(642849266) /* B2 = (127-127.0/3-24/3-0.03306235651)*2**23 */ + +func Xcbrtf(tls *TLS, x float32) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var T, r Tdouble_t + var hx Tuint32_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _ = T, hx, r + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + hx = *(*Tuint32_t)(unsafe.Pointer(bp)) & uint32(0x7fffffff) + if hx >= uint32(0x7f800000) { /* cbrt(NaN,INF) is itself */ + return x + x + } + /* rough cbrt to 5 bits */ + if hx < uint32(0x00800000) { /* zero or subnormal? */ + if hx == uint32(0) { + return x + } /* cbrt(+-0) is itself */ + *(*float32)(unsafe.Pointer(bp)) = float32(x * Float32FromFloat32(1.6777216e+07)) + hx = *(*Tuint32_t)(unsafe.Pointer(bp)) & uint32(0x7fffffff) + hx = hx/uint32(3) + _B21 + } else { + hx = hx/uint32(3) + _B11 + } + *(*Tuint32_t)(unsafe.Pointer(bp)) &= uint32(0x80000000) + *(*Tuint32_t)(unsafe.Pointer(bp)) |= hx + /* + * First step Newton iteration (solving t*t-x/t == 0) to 16 bits. In + * double precision so that its terms can be arranged for efficiency + * without causing overflow or underflow. + */ + T = float64(*(*float32)(unsafe.Pointer(bp))) + r = Tdouble_t(Tdouble_t(T*T) * T) + T = Tdouble_t(T*(float64(x)+float64(x)+r)) / (float64(x) + r + r) + /* + * Second step Newton iteration to 47 bits. In double precision for + * efficiency and accuracy. + */ + r = Tdouble_t(Tdouble_t(T*T) * T) + T = Tdouble_t(T*(float64(x)+float64(x)+r)) / (float64(x) + r + r) + /* rounding to 24 bits is perfect in round-to-nearest mode */ + return float32(T) +} + +func Xcbrtl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xcbrt(tls, x) +} + +const DBL_EPSILON5 = 2.220446049250313e-16 + +var _toint2 = Float64FromInt32(1) / Float64FromFloat64(2.220446049250313e-16) + +func Xceil(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e int32 + var y float32 + var y1, y2, v1 float64 + var y3 Tdouble_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _ = e, y, y1, y2, y3, v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + e = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + if e >= Int32FromInt32(0x3ff)+Int32FromInt32(52) || x3 == Float64FromInt32(0) { + return x3 + } + /* y = int(x) - x, where int(x) is an integer neighbor of x */ + if *(*Tuint64_t)(unsafe.Pointer(bp))>>int32(63) != 0 { + y3 = x3 - _toint2 + _toint2 - x3 + } else { + y3 = x3 + _toint2 - _toint2 - x3 + } + /* special case because of non-nearest rounding modes */ + if e <= Int32FromInt32(0x3ff)-Int32FromInt32(1) { + if uint64(8) == uint64(4) { + y = float32(y3) + } else { + if uint64(8) == uint64(8) { + y1 = y3 + } else { + y2 = y3 + } + } + if *(*Tuint64_t)(unsafe.Pointer(bp))>>int32(63) != 0 { + v1 = -Float64FromFloat64(0) + } else { + v1 = Float64FromInt32(1) + } + return v1 + } + if y3 < Float64FromInt32(0) { + return x3 + y3 + Float64FromInt32(1) + } + return x3 + y3 +} + +const DBL_EPSILON6 = 0 + +func Xceilf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e int32 + var m Tuint32_t + var y float32 + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _ = e, m, y, y1, y2 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + e = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp))>>Int32FromInt32(23)&Uint32FromInt32(0xff)) - int32(0x7f) + if e >= int32(23) { + return x3 + } + if e >= 0 { + m = Uint32FromInt32(int32(0x007fffff) >> e) + if *(*Tuint32_t)(unsafe.Pointer(bp))&m == uint32(0) { + return x3 + } + if uint64(4) == uint64(4) { + y = x3 + Float32FromFloat32(1.329227995784916e+36) + } else { + if uint64(4) == uint64(8) { + y1 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } else { + y2 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } + } + if *(*Tuint32_t)(unsafe.Pointer(bp))>>int32(31) == uint32(0) { + *(*Tuint32_t)(unsafe.Pointer(bp)) += m + } + *(*Tuint32_t)(unsafe.Pointer(bp)) &= ^m + } else { + if uint64(4) == uint64(4) { + y = x3 + Float32FromFloat32(1.329227995784916e+36) + } else { + if uint64(4) == uint64(8) { + y1 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } else { + y2 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } + } + if *(*Tuint32_t)(unsafe.Pointer(bp))>>int32(31) != 0 { + *(*float32)(unsafe.Pointer(bp)) = float32(-Float64FromFloat64(0)) + } else { + if *(*Tuint32_t)(unsafe.Pointer(bp))< %v", r) }() + } + return Xceil(tls, x) +} + +func Xcopysign(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uintptr + var _ /* ux at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + var _ /* uy at bp+8 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _ = v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp + 8)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp + 8)) = y + v1 = bp + *(*Tuint64_t)(unsafe.Pointer(v1)) = Tuint64_t(*(*Tuint64_t)(unsafe.Pointer(v1)) & (-Uint64FromUint64(1) / Uint64FromInt32(2))) + v1 = bp + *(*Tuint64_t)(unsafe.Pointer(v1)) = Tuint64_t(*(*Tuint64_t)(unsafe.Pointer(v1)) | *(*Tuint64_t)(unsafe.Pointer(bp + 8))&(Uint64FromUint64(1)< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* ux at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + var _ /* uy at bp+4 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp + 4)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp + 4)) = y + *(*Tuint32_t)(unsafe.Pointer(bp)) &= uint32(0x7fffffff) + *(*Tuint32_t)(unsafe.Pointer(bp)) |= *(*Tuint32_t)(unsafe.Pointer(bp + 4)) & uint32(0x80000000) + return *(*float32)(unsafe.Pointer(bp)) +} + +func Xcopysignl(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xcopysign(tls, x, y) +} + +func Xcos(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ix Tuint32_t + var n uint32 + var y float32 + var y1, y2 float64 + var _ /* y at bp+0 */ [2]float64 + _, _, _, _, _ = ix, n, y, y1, y2 + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x3)) >> int32(32)) + ix = ix & uint32(0x7fffffff) + /* |x| ~< pi/4 */ + if ix <= uint32(0x3fe921fb) { + if ix < uint32(0x3e46a09e) { /* |x| < 2**-27 * sqrt(2) */ + /* raise inexact if x!=0 */ + if uint64(8) == uint64(4) { + y = float32(x3 + Float64FromFloat32(1.329227995784916e+36)) + } else { + if uint64(8) == uint64(8) { + y1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } else { + y2 = float64(x3 + Float64FromFloat32(1.329227995784916e+36)) + } + } + return float64(1) + } + return X__cos(tls, x3, Float64FromInt32(0)) + } + /* cos(Inf or NaN) is NaN */ + if ix >= uint32(0x7ff00000) { + return x3 - x3 + } + /* argument reduction */ + n = Uint32FromInt32(X__rem_pio2(tls, x3, bp)) + switch n & Uint32FromInt32(3) { + case uint32(0): + return X__cos(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)]) + case uint32(1): + return -X__sin(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)], int32(1)) + case uint32(2): + return -X__cos(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)]) + default: + return X__sin(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)], int32(1)) + } + return r +} + +const M_PI_23 = 1.5707963267948966 + +// C documentation +// +// /* Small multiples of pi/2 rounded to double precision. */ + +var _c1pio2 = float64(Float64FromInt32(1) * Float64FromFloat64(1.5707963267948966)) /* 0x3FF921FB, 0x54442D18 */ +var _c2pio2 = float64(Float64FromInt32(2) * Float64FromFloat64(1.5707963267948966)) /* 0x400921FB, 0x54442D18 */ +var _c3pio2 = float64(Float64FromInt32(3) * Float64FromFloat64(1.5707963267948966)) /* 0x4012D97C, 0x7F3321D2 */ +var _c4pio2 = float64(Float64FromInt32(4) * Float64FromFloat64(1.5707963267948966)) /* 0x401921FB, 0x54442D18 */ + +func Xcosf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ix Tuint32_t + var n, sign uint32 + var y float32 + var y1, y2, v1 float64 + var _ /* y at bp+0 */ float64 + _, _, _, _, _, _, _ = ix, n, sign, y, y1, y2, v1 + ix = *(*Tuint32_t)(unsafe.Pointer(&x3)) + sign = ix >> int32(31) + ix = ix & uint32(0x7fffffff) + if ix <= uint32(0x3f490fda) { /* |x| ~<= pi/4 */ + if ix < uint32(0x39800000) { /* |x| < 2**-12 */ + /* raise inexact if x != 0 */ + if uint64(4) == uint64(4) { + y = x3 + Float32FromFloat32(1.329227995784916e+36) + } else { + if uint64(4) == uint64(8) { + y1 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } else { + y2 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } + } + return Float32FromFloat32(1) + } + return X__cosdf(tls, float64(x3)) + } + if ix <= uint32(0x407b53d1) { /* |x| ~<= 5*pi/4 */ + if ix > uint32(0x4016cbe3) { /* |x| ~> 3*pi/4 */ + if sign != 0 { + v1 = float64(x3) + _c2pio2 + } else { + v1 = float64(x3) - _c2pio2 + } + return -X__cosdf(tls, v1) + } else { + if sign != 0 { + return X__sindf(tls, float64(x3)+_c1pio2) + } else { + return X__sindf(tls, _c1pio2-float64(x3)) + } + } + } + if ix <= uint32(0x40e231d5) { /* |x| ~<= 9*pi/4 */ + if ix > uint32(0x40afeddf) { /* |x| ~> 7*pi/4 */ + if sign != 0 { + v1 = float64(x3) + _c4pio2 + } else { + v1 = float64(x3) - _c4pio2 + } + return X__cosdf(tls, v1) + } else { + if sign != 0 { + return X__sindf(tls, float64(-x3)-_c3pio2) + } else { + return X__sindf(tls, float64(x3)-_c3pio2) + } + } + } + /* cos(Inf or NaN) is NaN */ + if ix >= uint32(0x7f800000) { + return x3 - x3 + } + /* general argument reduction needed */ + n = Uint32FromInt32(X__rem_pio2f(tls, x3, bp)) + switch n & Uint32FromInt32(3) { + case uint32(0): + return X__cosdf(tls, **(**float64)(__ccgo_up(bp))) + case uint32(1): + return X__sindf(tls, -**(**float64)(__ccgo_up(bp))) + case uint32(2): + return -X__cosdf(tls, **(**float64)(__ccgo_up(bp))) + default: + return X__sindf(tls, **(**float64)(__ccgo_up(bp))) + } + return r +} + +const M_PI_24 = 0 + +// C documentation +// +// /* cosh(x) = (exp(x) + 1/exp(x))/2 +// * = 1 + 0.5*(exp(x)-1)*(exp(x)-1)/exp(x) +// * = 1 + x*x/2 + o(x^4) +// */ +func Xcosh(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var t, y1, y2 float64 + var w Tuint32_t + var y float32 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _ = t, w, y, y1, y2 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + /* |x| */ + *(*Tuint64_t)(unsafe.Pointer(bp)) &= Uint64FromInt32(-Int32FromInt32(1)) / Uint64FromInt32(2) + x3 = *(*float64)(unsafe.Pointer(bp)) + w = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32)) + /* |x| < log(2) */ + if w < uint32(0x3fe62e42) { + if w < Uint32FromInt32(Int32FromInt32(0x3ff00000)-Int32FromInt32(26)<log(0x1p26) then the 1/t is not needed */ + return float64(float64(0.5) * (t + Float64FromInt32(1)/t)) + } + /* |x| > log(DBL_MAX) or nan */ + /* note: the result is stored to handle overflow */ + t = X__expo2(tls, x3, float64(1)) + return t +} + +func Xcoshf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var t, y float32 + var w Tuint32_t + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _ = t, w, y, y1, y2 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + /* |x| */ + *(*Tuint32_t)(unsafe.Pointer(bp)) &= uint32(0x7fffffff) + x3 = *(*float32)(unsafe.Pointer(bp)) + w = *(*Tuint32_t)(unsafe.Pointer(bp)) + /* |x| < log(2) */ + if w < uint32(0x3f317217) { + if w < Uint32FromInt32(Int32FromInt32(0x3f800000)-Int32FromInt32(12)< log(FLT_MAX) or nan */ + t = X__expo2f(tls, x3, Float32FromFloat32(1)) + return t +} + +func Xcoshl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xcosh(tls, x) +} + +func Xcosl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xcos(tls, x) +} + +var _erx = float64(0.8450629115104675) /* 0x3FEB0AC1, 0x60000000 */ +/* + * Coefficients for approximation to erf on [0,0.84375] + */ +var _efx8 = float64(1.0270333367641007) /* 0x3FF06EBA, 0x8214DB69 */ +var _pp0 = float64(0.12837916709551256) /* 0x3FC06EBA, 0x8214DB68 */ +var _pp1 = -Float64FromFloat64(0.3250421072470015) /* 0xBFD4CD7D, 0x691CB913 */ +var _pp2 = -Float64FromFloat64(0.02848174957559851) /* 0xBF9D2A51, 0xDBD7194F */ +var _pp3 = -Float64FromFloat64(0.005770270296489442) /* 0xBF77A291, 0x236668E4 */ +var _pp4 = -Float64FromFloat64(2.3763016656650163e-05) /* 0xBEF8EAD6, 0x120016AC */ +var _qq1 = float64(0.39791722395915535) /* 0x3FD97779, 0xCDDADC09 */ +var _qq2 = float64(0.0650222499887673) /* 0x3FB0A54C, 0x5536CEBA */ +var _qq3 = float64(0.005081306281875766) /* 0x3F74D022, 0xC4D36B0F */ +var _qq4 = float64(0.00013249473800432164) /* 0x3F215DC9, 0x221C1A10 */ +var _qq5 = -Float64FromFloat64(3.960228278775368e-06) /* 0xBED09C43, 0x42A26120 */ +/* + * Coefficients for approximation to erf in [0.84375,1.25] + */ +var _pa0 = -Float64FromFloat64(0.0023621185607526594) /* 0xBF6359B8, 0xBEF77538 */ +var _pa1 = float64(0.41485611868374833) /* 0x3FDA8D00, 0xAD92B34D */ +var _pa2 = -Float64FromFloat64(0.3722078760357013) /* 0xBFD7D240, 0xFBB8C3F1 */ +var _pa3 = float64(0.31834661990116175) /* 0x3FD45FCA, 0x805120E4 */ +var _pa4 = -Float64FromFloat64(0.11089469428239668) /* 0xBFBC6398, 0x3D3E28EC */ +var _pa5 = float64(0.035478304325618236) /* 0x3FA22A36, 0x599795EB */ +var _pa6 = -Float64FromFloat64(0.002166375594868791) /* 0xBF61BF38, 0x0A96073F */ +var _qa1 = float64(0.10642088040084423) /* 0x3FBB3E66, 0x18EEE323 */ +var _qa2 = float64(0.540397917702171) /* 0x3FE14AF0, 0x92EB6F33 */ +var _qa3 = float64(0.07182865441419627) /* 0x3FB2635C, 0xD99FE9A7 */ +var _qa4 = float64(0.12617121980876164) /* 0x3FC02660, 0xE763351F */ +var _qa5 = float64(0.01363708391202905) /* 0x3F8BEDC2, 0x6B51DD1C */ +var _qa6 = float64(0.011984499846799107) /* 0x3F888B54, 0x5735151D */ +/* + * Coefficients for approximation to erfc in [1.25,1/0.35] + */ +var _ra0 = -Float64FromFloat64(0.009864944034847148) /* 0xBF843412, 0x600D6435 */ +var _ra1 = -Float64FromFloat64(0.6938585727071818) /* 0xBFE63416, 0xE4BA7360 */ +var _ra2 = -Float64FromFloat64(10.558626225323291) /* 0xC0251E04, 0x41B0E726 */ +var _ra3 = -Float64FromFloat64(62.375332450326006) /* 0xC04F300A, 0xE4CBA38D */ +var _ra4 = -Float64FromFloat64(162.39666946257347) /* 0xC0644CB1, 0x84282266 */ +var _ra5 = -Float64FromFloat64(184.60509290671104) /* 0xC067135C, 0xEBCCABB2 */ +var _ra6 = -Float64FromFloat64(81.2874355063066) /* 0xC0545265, 0x57E4D2F2 */ +var _ra7 = -Float64FromFloat64(9.814329344169145) /* 0xC023A0EF, 0xC69AC25C */ +var _sa1 = float64(19.651271667439257) /* 0x4033A6B9, 0xBD707687 */ +var _sa2 = float64(137.65775414351904) /* 0x4061350C, 0x526AE721 */ +var _sa3 = float64(434.56587747522923) /* 0x407B290D, 0xD58A1A71 */ +var _sa4 = float64(645.3872717332679) /* 0x40842B19, 0x21EC2868 */ +var _sa5 = float64(429.00814002756783) /* 0x407AD021, 0x57700314 */ +var _sa6 = float64(108.63500554177944) /* 0x405B28A3, 0xEE48AE2C */ +var _sa7 = float64(6.570249770319282) /* 0x401A47EF, 0x8E484A93 */ +var _sa8 = -Float64FromFloat64(0.0604244152148581) /* 0xBFAEEFF2, 0xEE749A62 */ +/* + * Coefficients for approximation to erfc in [1/.35,28] + */ +var _rb0 = -Float64FromFloat64(0.0098649429247001) /* 0xBF843412, 0x39E86F4A */ +var _rb1 = -Float64FromFloat64(0.799283237680523) /* 0xBFE993BA, 0x70C285DE */ +var _rb2 = -Float64FromFloat64(17.757954917754752) /* 0xC031C209, 0x555F995A */ +var _rb3 = -Float64FromFloat64(160.63638485582192) /* 0xC064145D, 0x43C5ED98 */ +var _rb4 = -Float64FromFloat64(637.5664433683896) /* 0xC083EC88, 0x1375F228 */ +var _rb5 = -Float64FromFloat64(1025.0951316110772) /* 0xC0900461, 0x6A2E5992 */ +var _rb6 = -Float64FromFloat64(483.5191916086514) /* 0xC07E384E, 0x9BDC383F */ +var _sb1 = float64(30.33806074348246) /* 0x403E568B, 0x261D5190 */ +var _sb2 = float64(325.7925129965739) /* 0x40745CAE, 0x221B9F0A */ +var _sb3 = float64(1536.729586084437) /* 0x409802EB, 0x189D5118 */ +var _sb4 = float64(3199.8582195085955) /* 0x40A8FFB7, 0x688C246A */ +var _sb5 = float64(2553.0504064331644) /* 0x40A3F219, 0xCEDF3BE6 */ +var _sb6 = float64(474.52854120695537) /* 0x407DA874, 0xE79FE763 */ +var _sb7 = -Float64FromFloat64(22.44095244658582) /* 0xC03670E2, 0x42712D62 */ + +func _erfc1(tls *TLS, x float64) (r float64) { + var P, Q, s Tdouble_t + _, _, _ = P, Q, s + s = Xfabs(tls, x) - Float64FromInt32(1) + P = _pa0 + float64(s*(_pa1+float64(s*(_pa2+float64(s*(_pa3+float64(s*(_pa4+float64(s*(_pa5+float64(s*_pa6))))))))))) + Q = Float64FromInt32(1) + Tdouble_t(s*(_qa1+float64(s*(_qa2+float64(s*(_qa3+float64(s*(_qa4+float64(s*(_qa5+float64(s*_qa6))))))))))) + return Float64FromInt32(1) - _erx - P/Q +} + +func _erfc2(tls *TLS, ix Tuint32_t, x float64) (r float64) { + var R, S, s Tdouble_t + var z float64 + var v1 Tuint64_t + _, _, _, _, _ = R, S, s, z, v1 + if ix < uint32(0x3ff40000) { /* |x| < 1.25 */ + return _erfc1(tls, x) + } + x = Xfabs(tls, x) + s = Float64FromInt32(1) / float64(x*x) + if ix < uint32(0x4006db6d) { /* |x| < 1/.35 ~ 2.85714 */ + R = _ra0 + float64(s*(_ra1+float64(s*(_ra2+float64(s*(_ra3+float64(s*(_ra4+float64(s*(_ra5+float64(s*(_ra6+float64(s*_ra7))))))))))))) + S = float64(1) + float64(s*(_sa1+float64(s*(_sa2+float64(s*(_sa3+float64(s*(_sa4+float64(s*(_sa5+float64(s*(_sa6+float64(s*(_sa7+float64(s*_sa8))))))))))))))) + } else { /* |x| > 1/.35 */ + R = _rb0 + float64(s*(_rb1+float64(s*(_rb2+float64(s*(_rb3+float64(s*(_rb4+float64(s*(_rb5+float64(s*_rb6))))))))))) + S = float64(1) + float64(s*(_sb1+float64(s*(_sb2+float64(s*(_sb3+float64(s*(_sb4+float64(s*(_sb5+float64(s*(_sb6+float64(s*_sb7))))))))))))) + } + z = x + v1 = *(*Tuint64_t)(unsafe.Pointer(&z))>>Int32FromInt32(32)< %v", r1) }() + } + var ix Tuint32_t + var r, s, y, z, v1 float64 + var sign int32 + _, _, _, _, _, _, _ = ix, r, s, sign, y, z, v1 + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x7ff00000) { + /* erf(nan)=nan, erf(+-inf)=+-1 */ + return float64(int32(1)-int32(2)*sign) + Float64FromInt32(1)/x + } + if ix < uint32(0x3feb0000) { /* |x| < 0.84375 */ + if ix < uint32(0x3e300000) { /* |x| < 2**-28 */ + /* avoid underflow */ + return float64(float64(0.125) * (float64(Float64FromInt32(8)*x) + float64(_efx8*x))) + } + z = float64(x * x) + r = _pp0 + float64(z*(_pp1+float64(z*(_pp2+float64(z*(_pp3+float64(z*_pp4))))))) + s = float64(1) + float64(z*(_qq1+float64(z*(_qq2+float64(z*(_qq3+float64(z*(_qq4+float64(z*_qq5))))))))) + y = r / s + return x + float64(x*y) + } + if ix < uint32(0x40180000) { /* 0.84375 <= |x| < 6 */ + y = Float64FromInt32(1) - _erfc2(tls, ix, x) + } else { + y = Float64FromInt32(1) - Float64FromFloat64(2.2250738585072014e-308) + } + if sign != 0 { + v1 = -y + } else { + v1 = y + } + return v1 +} + +func Xerfc(tls *TLS, x float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var ix Tuint32_t + var r, s, y, z, v1 float64 + var sign int32 + _, _, _, _, _, _, _ = ix, r, s, sign, y, z, v1 + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x7ff00000) { + /* erfc(nan)=nan, erfc(+-inf)=0,2 */ + return float64(int32(2)*sign) + Float64FromInt32(1)/x + } + if ix < uint32(0x3feb0000) { /* |x| < 0.84375 */ + if ix < uint32(0x3c700000) { /* |x| < 2**-56 */ + return float64(1) - x + } + z = float64(x * x) + r = _pp0 + float64(z*(_pp1+float64(z*(_pp2+float64(z*(_pp3+float64(z*_pp4))))))) + s = float64(1) + float64(z*(_qq1+float64(z*(_qq2+float64(z*(_qq3+float64(z*(_qq4+float64(z*_qq5))))))))) + y = r / s + if sign != 0 || ix < uint32(0x3fd00000) { /* x < 1/4 */ + return float64(1) - (x + float64(x*y)) + } + return float64(0.5) - (x - float64(0.5) + float64(x*y)) + } + if ix < uint32(0x403c0000) { /* 0.84375 <= |x| < 28 */ + if sign != 0 { + v1 = Float64FromInt32(2) - _erfc2(tls, ix, x) + } else { + v1 = _erfc2(tls, ix, x) + } + return v1 + } + if sign != 0 { + v1 = Float64FromInt32(2) - Float64FromFloat64(2.2250738585072014e-308) + } else { + v1 = float64(Float64FromFloat64(2.2250738585072014e-308) * Float64FromFloat64(2.2250738585072014e-308)) + } + return v1 +} + +var _erx1 = float32(0.84506291151) /* 0x3f58560b */ +/* + * Coefficients for approximation to erf on [0,0.84375] + */ +var _efx81 = float32(1.027033329) /* 0x3f8375d4 */ +var _pp01 = float32(0.12837916613) /* 0x3e0375d4 */ +var _pp11 = float32(-Float64FromFloat64(0.32504209876)) /* 0xbea66beb */ +var _pp21 = float32(-Float64FromFloat64(0.028481749818)) /* 0xbce9528f */ +var _pp31 = float32(-Float64FromFloat64(0.005770270247)) /* 0xbbbd1489 */ +var _pp41 = float32(-Float64FromFloat64(2.3763017452e-05)) /* 0xb7c756b1 */ +var _qq11 = float32(0.39791721106) /* 0x3ecbbbce */ +var _qq21 = float32(0.0650222525) /* 0x3d852a63 */ +var _qq31 = float32(0.0050813062117) /* 0x3ba68116 */ +var _qq41 = float32(0.00013249473704) /* 0x390aee49 */ +var _qq51 = float32(-Float64FromFloat64(3.9602282413e-06)) /* 0xb684e21a */ +/* + * Coefficients for approximation to erf in [0.84375,1.25] + */ +var _pa01 = float32(-Float64FromFloat64(0.0023621185683)) /* 0xbb1acdc6 */ +var _pa11 = float32(0.41485610604) /* 0x3ed46805 */ +var _pa21 = float32(-Float64FromFloat64(0.37220788002)) /* 0xbebe9208 */ +var _pa31 = float32(0.31834661961) /* 0x3ea2fe54 */ +var _pa41 = float32(-Float64FromFloat64(0.11089469492)) /* 0xbde31cc2 */ +var _pa51 = float32(0.035478305072) /* 0x3d1151b3 */ +var _pa61 = float32(-Float64FromFloat64(0.0021663755178)) /* 0xbb0df9c0 */ +var _qa11 = float32(0.10642088205) /* 0x3dd9f331 */ +var _qa21 = float32(0.54039794207) /* 0x3f0a5785 */ +var _qa31 = float32(0.071828655899) /* 0x3d931ae7 */ +var _qa41 = float32(0.12617121637) /* 0x3e013307 */ +var _qa51 = float32(0.013637083583) /* 0x3c5f6e13 */ +var _qa61 = float32(0.011984500103) /* 0x3c445aa3 */ +/* + * Coefficients for approximation to erfc in [1.25,1/0.35] + */ +var _ra01 = float32(-Float64FromFloat64(0.0098649440333)) /* 0xbc21a093 */ +var _ra11 = float32(-Float64FromFloat64(0.6938585639)) /* 0xbf31a0b7 */ +var _ra21 = float32(-Float64FromFloat64(10.558626175)) /* 0xc128f022 */ +var _ra31 = float32(-Float64FromFloat64(62.375331879)) /* 0xc2798057 */ +var _ra41 = float32(-Float64FromFloat64(162.39666748)) /* 0xc322658c */ +var _ra51 = float32(-Float64FromFloat64(184.60508728)) /* 0xc3389ae7 */ +var _ra61 = float32(-Float64FromFloat64(81.287437439)) /* 0xc2a2932b */ +var _ra71 = float32(-Float64FromFloat64(9.8143291473)) /* 0xc11d077e */ +var _sa11 = float32(19.65127182) /* 0x419d35ce */ +var _sa21 = float32(137.65776062) /* 0x4309a863 */ +var _sa31 = float32(434.56588745) /* 0x43d9486f */ +var _sa41 = float32(645.38726807) /* 0x442158c9 */ +var _sa51 = float32(429.00814819) /* 0x43d6810b */ +var _sa61 = float32(108.63500214) /* 0x42d9451f */ +var _sa71 = float32(6.5702495575) /* 0x40d23f7c */ +var _sa81 = float32(-Float64FromFloat64(0.060424413532)) /* 0xbd777f97 */ +/* + * Coefficients for approximation to erfc in [1/.35,28] + */ +var _rb01 = float32(-Float64FromFloat64(0.009864943102)) /* 0xbc21a092 */ +var _rb11 = float32(-Float64FromFloat64(0.79928326607)) /* 0xbf4c9dd4 */ +var _rb21 = float32(-Float64FromFloat64(17.757955551)) /* 0xc18e104b */ +var _rb31 = float32(-Float64FromFloat64(160.63638306)) /* 0xc320a2ea */ +var _rb41 = float32(-Float64FromFloat64(637.56646729)) /* 0xc41f6441 */ +var _rb51 = float32(-Float64FromFloat64(1025.0950928)) /* 0xc480230b */ +var _rb61 = float32(-Float64FromFloat64(483.51919556)) /* 0xc3f1c275 */ +var _sb11 = float32(30.338060379) /* 0x41f2b459 */ +var _sb21 = float32(325.79251099) /* 0x43a2e571 */ +var _sb31 = float32(1536.7296143) /* 0x44c01759 */ +var _sb41 = float32(3199.8581543) /* 0x4547fdbb */ +var _sb51 = float32(2553.050293) /* 0x451f90ce */ +var _sb61 = float32(474.52853394) /* 0x43ed43a7 */ +var _sb71 = float32(-Float64FromFloat64(22.440952301)) /* 0xc1b38712 */ + +func _erfc11(tls *TLS, x float32) (r float32) { + var P, Q, s Tfloat_t + _, _, _ = P, Q, s + s = Xfabsf(tls, x) - Float32FromInt32(1) + P = _pa01 + float32(s*(_pa11+float32(s*(_pa21+float32(s*(_pa31+float32(s*(_pa41+float32(s*(_pa51+float32(s*_pa61))))))))))) + Q = Float32FromInt32(1) + Tfloat_t(s*(_qa11+float32(s*(_qa21+float32(s*(_qa31+float32(s*(_qa41+float32(s*(_qa51+float32(s*_qa61))))))))))) + return Float32FromInt32(1) - _erx1 - P/Q +} + +func _erfc21(tls *TLS, ix Tuint32_t, x float32) (r float32) { + var R, S, s Tfloat_t + var z float32 + var v1 Tuint32_t + _, _, _, _, _ = R, S, s, z, v1 + if ix < uint32(0x3fa00000) { /* |x| < 1.25 */ + return _erfc11(tls, x) + } + x = Xfabsf(tls, x) + s = Float32FromInt32(1) / float32(x*x) + if ix < uint32(0x4036db6d) { /* |x| < 1/0.35 */ + R = _ra01 + float32(s*(_ra11+float32(s*(_ra21+float32(s*(_ra31+float32(s*(_ra41+float32(s*(_ra51+float32(s*(_ra61+float32(s*_ra71))))))))))))) + S = Float32FromFloat32(1) + float32(s*(_sa11+float32(s*(_sa21+float32(s*(_sa31+float32(s*(_sa41+float32(s*(_sa51+float32(s*(_sa61+float32(s*(_sa71+float32(s*_sa81))))))))))))))) + } else { /* |x| >= 1/0.35 */ + R = _rb01 + float32(s*(_rb11+float32(s*(_rb21+float32(s*(_rb31+float32(s*(_rb41+float32(s*(_rb51+float32(s*_rb61))))))))))) + S = Float32FromFloat32(1) + float32(s*(_sb11+float32(s*(_sb21+float32(s*(_sb31+float32(s*(_sb41+float32(s*(_sb51+float32(s*(_sb61+float32(s*_sb71))))))))))))) + } + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + v1 = ix & uint32(0xffffe000) + z = *(*float32)(unsafe.Pointer(&v1)) + return float32(Xexpf(tls, float32(-z*z)-Float32FromFloat32(0.5625))*Xexpf(tls, float32((z-x)*(z+x))+R/S)) / x +} + +func Xerff(tls *TLS, x float32) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var ix Tuint32_t + var r, s, y, z, v1 float32 + var sign int32 + _, _, _, _, _, _, _ = ix, r, s, sign, y, z, v1 + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x7f800000) { + /* erf(nan)=nan, erf(+-inf)=+-1 */ + return float32(int32(1)-int32(2)*sign) + Float32FromInt32(1)/x + } + if ix < uint32(0x3f580000) { /* |x| < 0.84375 */ + if ix < uint32(0x31800000) { /* |x| < 2**-28 */ + /*avoid underflow */ + return float32(Float32FromFloat32(0.125) * (float32(Float32FromInt32(8)*x) + float32(_efx81*x))) + } + z = float32(x * x) + r = _pp01 + float32(z*(_pp11+float32(z*(_pp21+float32(z*(_pp31+float32(z*_pp41))))))) + s = Float32FromInt32(1) + float32(z*(_qq11+float32(z*(_qq21+float32(z*(_qq31+float32(z*(_qq41+float32(z*_qq51))))))))) + y = r / s + return x + float32(x*y) + } + if ix < uint32(0x40c00000) { /* |x| < 6 */ + y = Float32FromInt32(1) - _erfc21(tls, ix, x) + } else { + y = Float32FromInt32(1) - Float32FromFloat32(7.52316384526264e-37) + } + if sign != 0 { + v1 = -y + } else { + v1 = y + } + return v1 +} + +func Xerfcf(tls *TLS, x float32) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var ix Tuint32_t + var r, s, y, z, v1 float32 + var sign int32 + _, _, _, _, _, _, _ = ix, r, s, sign, y, z, v1 + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x7f800000) { + /* erfc(nan)=nan, erfc(+-inf)=0,2 */ + return float32(int32(2)*sign) + Float32FromInt32(1)/x + } + if ix < uint32(0x3f580000) { /* |x| < 0.84375 */ + if ix < uint32(0x23800000) { /* |x| < 2**-56 */ + return Float32FromFloat32(1) - x + } + z = float32(x * x) + r = _pp01 + float32(z*(_pp11+float32(z*(_pp21+float32(z*(_pp31+float32(z*_pp41))))))) + s = Float32FromFloat32(1) + float32(z*(_qq11+float32(z*(_qq21+float32(z*(_qq31+float32(z*(_qq41+float32(z*_qq51))))))))) + y = r / s + if sign != 0 || ix < uint32(0x3e800000) { /* x < 1/4 */ + return Float32FromFloat32(1) - (x + float32(x*y)) + } + return Float32FromFloat32(0.5) - (x - Float32FromFloat32(0.5) + float32(x*y)) + } + if ix < uint32(0x41e00000) { /* |x| < 28 */ + if sign != 0 { + v1 = Float32FromInt32(2) - _erfc21(tls, ix, x) + } else { + v1 = _erfc21(tls, ix, x) + } + return v1 + } + if sign != 0 { + v1 = Float32FromInt32(2) - Float32FromFloat32(7.52316384526264e-37) + } else { + v1 = float32(Float32FromFloat32(7.52316384526264e-37) * Float32FromFloat32(7.52316384526264e-37)) + } + return v1 +} + +func Xerfl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xerf(tls, x) +} + +func Xerfcl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xerfc(tls, x) +} + +const EXP2_POLY_ORDER = 5 +const EXP_POLY_ORDER = 5 +const EXP_TABLE_BITS = 7 +const EXP_USE_TOINT_NARROW = 0 +const N = 128 + +// C documentation +// +// /* Handle cases that may overflow or underflow when computing the result that +// is scale*(1+TMP) without intermediate rounding. The bit representation of +// scale is in SBITS, however it has a computed exponent that may have +// overflown into the sign bit so that needs to be adjusted before using it as +// a double. (int32_t)KI is the k used in the argument reduction and exponent +// adjustment of scale, positive k here means the result may overflow and +// negative k means the result may underflow. */ +func _specialcase(tls *TLS, tmp Tdouble_t, sbits Tuint64_t, ki Tuint64_t) (r float64) { + var hi, lo, scale, y3 Tdouble_t + var y, y1, y2, v1 float64 + _, _, _, _, _, _, _, _ = hi, lo, scale, y, y1, y2, y3, v1 + if ki&uint64(0x80000000) == uint64(0) { + /* k > 0, the exponent of scale might have overflowed by <= 460. */ + sbits = uint64(sbits - Uint64FromUint64(1009)<> int32(52)) +} + +func Xexp(tls *TLS, x1 float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x1=%v, (%v:)", tls, x1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var abstop Tuint32_t + var idx, ki, sbits, top, v5 Tuint64_t + var kd, r, r2, scale, tail, tmp, z Tdouble_t + var y, v1 float64 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = abstop, idx, kd, ki, r, r2, sbits, scale, tail, tmp, top, y, z, v1, v5 + abstop = _top12(tls, x1) & uint32(0x7ff) + if abstop-_top12(tls, float64(5.551115123125783e-17)) >= _top12(tls, float64(512))-_top12(tls, float64(5.551115123125783e-17)) { + if abstop-_top12(tls, float64(5.551115123125783e-17)) >= uint32(0x80000000) { + /* Avoid spurious underflow for tiny x. */ + /* Note: 0 is common input. */ + return float64(1) + x1 + } + if abstop >= _top12(tls, float64(1024)) { + v1 = float64(-X__builtin_inff(tls)) + if *(*Tuint64_t)(unsafe.Pointer(&x1)) == *(*Tuint64_t)(unsafe.Pointer(&v1)) { + return float64(0) + } + if abstop >= _top12(tls, float64(X__builtin_inff(tls))) { + return float64(1) + x1 + } + if *(*Tuint64_t)(unsafe.Pointer(&x1))>>int32(63) != 0 { + return X__math_uflow(tls, uint32(0)) + } else { + return X__math_oflow(tls, uint32(0)) + } + } + /* Large x is special cased below. */ + abstop = uint32(0) + } + /* exp(x) = 2^(k/N) * exp(r), with exp(r) in [2^(-1/2N),2^(1/2N)]. */ + /* x = ln2/N*k + r, with int k and r in [-ln2/2N, ln2/2N]. */ + z = Tdouble_t(X__exp_data.Finvln2N * x1) + /* z - kd is in [-1, 1] in non-nearest rounding modes. */ + y = z + X__exp_data.Fshift + v1 = y + goto _3 +_3: + kd = v1 + v1 = kd + ki = *(*Tuint64_t)(unsafe.Pointer(&v1)) + kd = kd - X__exp_data.Fshift + r = x1 + float64(kd*X__exp_data.Fnegln2hiN) + float64(kd*X__exp_data.Fnegln2loN) + /* 2^(k/N) ~= scale * (1 + tail). */ + idx = uint64(2) * (ki % Uint64FromInt32(Int32FromInt32(1)< 2^-200 and scale > 2^-739, so there + is no spurious underflow here even without fma. */ + y = scale + Tdouble_t(scale*tmp) + v1 = y + goto _7 +_7: + return v1 +} + +const HUGE = 0 + +func Xexp10(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var y float64 + var _ /* n at bp+0 */ float64 + var _ /* u at bp+8 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _ = y + y = Xmodf(tls, x, bp) + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp + 8)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp + 8)) = **(**float64)(__ccgo_up(bp)) + /* fabs(n) < 16 without raising invalid on nan */ + if *(*Tuint64_t)(unsafe.Pointer(bp + 8))>>int32(52)&uint64(0x7ff) < Uint64FromInt32(Int32FromInt32(0x3ff)+Int32FromInt32(4)) { + if !(y != 0) { + return _p10[int32(**(**float64)(__ccgo_up(bp)))+int32(15)] + } + y = Xexp2(tls, float64(float64(3.321928094887362)*y)) + return float64(y * _p10[int32(**(**float64)(__ccgo_up(bp)))+int32(15)]) + } + return Xpow(tls, float64(10), x) +} + +var _p10 = [31]float64{ + 0: float64(1e-15), + 1: float64(1e-14), + 2: float64(1e-13), + 3: float64(1e-12), + 4: float64(1e-11), + 5: float64(1e-10), + 6: float64(1e-09), + 7: float64(1e-08), + 8: float64(1e-07), + 9: float64(1e-06), + 10: float64(1e-05), + 11: float64(0.0001), + 12: float64(0.001), + 13: float64(0.01), + 14: float64(0.1), + 15: Float64FromInt32(1), + 16: float64(10), + 17: float64(100), + 18: float64(1000), + 19: float64(10000), + 20: float64(100000), + 21: float64(1e+06), + 22: float64(1e+07), + 23: float64(1e+08), + 24: float64(1e+09), + 25: float64(1e+10), + 26: float64(1e+11), + 27: float64(1e+12), + 28: float64(1e+13), + 29: float64(1e+14), + 30: float64(1e+15), +} + +func Xpow10(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xexp10(tls, x) +} + +func Xexp10f(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var y float32 + var _ /* n at bp+0 */ float32 + var _ /* u at bp+4 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _ = y + y = Xmodff(tls, x, bp) + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp + 4)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp + 4)) = **(**float32)(__ccgo_up(bp)) + /* fabsf(n) < 8 without raising invalid on nan */ + if *(*Tuint32_t)(unsafe.Pointer(bp + 4))>>int32(23)&uint32(0xff) < Uint32FromInt32(Int32FromInt32(0x7f)+Int32FromInt32(3)) { + if !(y != 0) { + return _p101[int32(**(**float32)(__ccgo_up(bp)))+int32(7)] + } + y = Xexp2f(tls, float32(Float32FromFloat32(3.321928094887362)*y)) + return float32(y * _p101[int32(**(**float32)(__ccgo_up(bp)))+int32(7)]) + } + return float32(Xexp2(tls, float64(float64(3.321928094887362)*float64(x)))) +} + +var _p101 = [15]float32{ + 0: Float32FromFloat32(1e-07), + 1: Float32FromFloat32(1e-06), + 2: Float32FromFloat32(1e-05), + 3: Float32FromFloat32(0.0001), + 4: Float32FromFloat32(0.001), + 5: Float32FromFloat32(0.01), + 6: Float32FromFloat32(0.1), + 7: Float32FromInt32(1), + 8: float32(10), + 9: float32(100), + 10: float32(1000), + 11: float32(10000), + 12: float32(100000), + 13: float32(1e+06), + 14: float32(1e+07), +} + +func Xpow10f(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xexp10f(tls, x) +} + +func Xexp10l(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xexp10(tls, x) +} + +func Xpow10l(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xexp10l(tls, x) +} + +// C documentation +// +// /* Handle cases that may overflow or underflow when computing the result that +// is scale*(1+TMP) without intermediate rounding. The bit representation of +// scale is in SBITS, however it has a computed exponent that may have +// overflown into the sign bit so that needs to be adjusted before using it as +// a double. (int32_t)KI is the k used in the argument reduction and exponent +// adjustment of scale, positive k here means the result may overflow and +// negative k means the result may underflow. */ +func _specialcase1(tls *TLS, tmp Tdouble_t, sbits Tuint64_t, ki Tuint64_t) (r float64) { + var hi, lo, scale, y3 Tdouble_t + var y, y1, y2, v1 float64 + _, _, _, _, _, _, _, _ = hi, lo, scale, y, y1, y2, y3, v1 + if ki&uint64(0x80000000) == uint64(0) { + /* k > 0, the exponent of scale might have overflowed by 1. */ + sbits = uint64(sbits - Uint64FromUint64(1)<> int32(52)) +} + +func Xexp2(tls *TLS, x1 float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x1=%v, (%v:)", tls, x1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var abstop Tuint32_t + var idx, ki, sbits, top, v7 Tuint64_t + var kd, r, r2, scale, tail, tmp Tdouble_t + var y, v1 float64 + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = abstop, idx, kd, ki, r, r2, sbits, scale, tail, tmp, top, y, v1, v7 + abstop = _top121(tls, x1) & uint32(0x7ff) + if abstop-_top121(tls, float64(5.551115123125783e-17)) >= _top121(tls, float64(512))-_top121(tls, float64(5.551115123125783e-17)) { + if abstop-_top121(tls, float64(5.551115123125783e-17)) >= uint32(0x80000000) { + /* Avoid spurious underflow for tiny x. */ + /* Note: 0 is common input. */ + return float64(1) + x1 + } + if abstop >= _top121(tls, float64(1024)) { + v1 = float64(-X__builtin_inff(tls)) + if *(*Tuint64_t)(unsafe.Pointer(&x1)) == *(*Tuint64_t)(unsafe.Pointer(&v1)) { + return float64(0) + } + if abstop >= _top121(tls, float64(X__builtin_inff(tls))) { + return float64(1) + x1 + } + if !(*(*Tuint64_t)(unsafe.Pointer(&x1))>>Int32FromInt32(63) != 0) { + return X__math_oflow(tls, uint32(0)) + } else { + v1 = -Float64FromFloat64(1075) + if *(*Tuint64_t)(unsafe.Pointer(&x1)) >= *(*Tuint64_t)(unsafe.Pointer(&v1)) { + return X__math_uflow(tls, uint32(0)) + } + } + } + v1 = float64(928) + if uint64(2)**(*Tuint64_t)(unsafe.Pointer(&x1)) > uint64(2)**(*Tuint64_t)(unsafe.Pointer(&v1)) { + /* Large x is special cased below. */ + abstop = uint32(0) + } + } + /* exp2(x) = 2^(k/N) * 2^r, with 2^r in [2^(-1/2N),2^(1/2N)]. */ + /* x = k/N + r, with int k and r in [-1/2N, 1/2N]. */ + y = x1 + X__exp_data.Fexp2_shift + v1 = y + goto _5 +_5: + kd = v1 + v1 = kd + ki = *(*Tuint64_t)(unsafe.Pointer(&v1)) /* k. */ + kd = kd - X__exp_data.Fexp2_shift /* k/N for int k. */ + r = x1 - kd + /* 2^(k/N) ~= scale * (1 + tail). */ + idx = uint64(2) * (ki % Uint64FromInt32(Int32FromInt32(1)< 2^-65 and scale > 2^-928, so there + is no spurious underflow here even without fma. */ + y = scale + Tdouble_t(scale*tmp) + v1 = y + goto _9 +_9: + return v1 +} + +const EXP2F_POLY_ORDER = 3 +const EXP2F_TABLE_BITS = 5 +const N1 = 32 + +/* +EXP2F_TABLE_BITS = 5 +EXP2F_POLY_ORDER = 3 + +ULP error: 0.502 (nearest rounding.) +Relative error: 1.69 * 2^-34 in [-1/64, 1/64] (before rounding.) +Wrong count: 168353 (all nearest rounding wrong results with fma.) +Non-nearest ULP error: 1 (rounded ULP error) +*/ + +func _top122(tls *TLS, x float32) (r Tuint32_t) { + return *(*Tuint32_t)(unsafe.Pointer(&x)) >> int32(20) +} + +func Xexp2f(tls *TLS, x2 float32) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x2=%v, (%v:)", tls, x2, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var abstop Tuint32_t + var kd, r, r2, s, xd, y2, z Tdouble_t + var ki, t Tuint64_t + var y, v1 float32 + var y1, v2 float64 + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = abstop, kd, ki, r, r2, s, t, xd, y, y1, y2, z, v1, v2 + xd = float64(x2) + abstop = _top122(tls, x2) & uint32(0x7ff) + if abstop >= _top122(tls, Float32FromFloat32(128)) { + /* |x| >= 128 or x is nan. */ + v1 = -X__builtin_inff(tls) + if *(*Tuint32_t)(unsafe.Pointer(&x2)) == *(*Tuint32_t)(unsafe.Pointer(&v1)) { + return Float32FromFloat32(0) + } + if abstop >= _top122(tls, X__builtin_inff(tls)) { + return x2 + x2 + } + if x2 > Float32FromFloat32(0) { + return X__math_oflowf(tls, uint32(0)) + } + if x2 <= -Float32FromFloat32(150) { + return X__math_uflowf(tls, uint32(0)) + } + } + /* x = k/N + r with r in [-1/(2N), 1/(2N)] and int k. */ + y1 = xd + X__exp2f_data.Fshift_scaled + v2 = y1 + goto _3 +_3: + kd = v2 + v2 = kd + ki = *(*Tuint64_t)(unsafe.Pointer(&v2)) + kd = kd - X__exp2f_data.Fshift_scaled /* k/N for int k. */ + r = xd - kd + /* exp2(x) = 2^(k/N) * 2^r ~= s * (C0*r^3 + C1*r^2 + C2*r + 1) */ + t = **(**Tuint64_t)(__ccgo_up(uintptr(unsafe.Pointer(&X__exp2f_data)) + uintptr(ki%Uint64FromInt32(Int32FromInt32(1)< %v", r) }() + } + return Xexp2(tls, x) +} + +const N2 = 128 + +type Texp_data = struct { + Finvln2N float64 + Fshift float64 + Fnegln2hiN float64 + Fnegln2loN float64 + Fpoly [4]float64 + Fexp2_shift float64 + Fexp2_poly [5]float64 + Ftab [256]Tuint64_t +} + +const N3 = 32 + +/* +EXP2F_TABLE_BITS = 5 +EXP2F_POLY_ORDER = 3 + +ULP error: 0.502 (nearest rounding.) +Relative error: 1.69 * 2^-34 in [-ln2/64, ln2/64] (before rounding.) +Wrong count: 170635 (all nearest rounding wrong results with fma.) +Non-nearest ULP error: 1 (rounded ULP error) +*/ + +func _top123(tls *TLS, x float32) (r Tuint32_t) { + return *(*Tuint32_t)(unsafe.Pointer(&x)) >> int32(20) +} + +func Xexpf(tls *TLS, x2 float32) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x2=%v, (%v:)", tls, x2, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var abstop Tuint32_t + var kd, r, r2, s, xd, y2, z Tdouble_t + var ki, t Tuint64_t + var y, v1 float32 + var y1, v2 float64 + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = abstop, kd, ki, r, r2, s, t, xd, y, y1, y2, z, v1, v2 + xd = float64(x2) + abstop = _top123(tls, x2) & uint32(0x7ff) + if abstop >= _top123(tls, Float32FromFloat32(88)) { + /* |x| >= 88 or x is nan. */ + v1 = -X__builtin_inff(tls) + if *(*Tuint32_t)(unsafe.Pointer(&x2)) == *(*Tuint32_t)(unsafe.Pointer(&v1)) { + return Float32FromFloat32(0) + } + if abstop >= _top123(tls, X__builtin_inff(tls)) { + return x2 + x2 + } + if x2 > Float32FromFloat32(88.72283172607422) { /* x > log(0x1p128) ~= 88.72 */ + return X__math_oflowf(tls, uint32(0)) + } + if x2 < -Float32FromFloat32(103.97207641601562) { /* x < log(0x1p-150) ~= -103.97 */ + return X__math_uflowf(tls, uint32(0)) + } + } + /* x*N/Ln2 = k + r with r in [-1/2, 1/2] and int k. */ + z = Tdouble_t(X__exp2f_data.Finvln2_scaled * xd) + /* Round and convert z to int, the result is in [-150*N, 128*N] and + ideally ties-to-even rule is used, otherwise the magnitude of r + can be bigger which gives larger approximation error. */ + y1 = z + X__exp2f_data.Fshift + v2 = y1 + goto _3 +_3: + kd = v2 + v2 = kd + ki = *(*Tuint64_t)(unsafe.Pointer(&v2)) + kd = kd - X__exp2f_data.Fshift + r = z - kd + /* exp(x) = 2^(k/N) * 2^(r/N) ~= s * (C0*r^3 + C1*r^2 + C2*r + 1) */ + t = **(**Tuint64_t)(__ccgo_up(uintptr(unsafe.Pointer(&X__exp2f_data)) + uintptr(ki%Uint64FromInt32(Int32FromInt32(1)< %v", r) }() + } + return Xexp(tls, x) +} + +var _o_threshold = float64(709.782712893384) /* 0x40862E42, 0xFEFA39EF */ +var _ln2_hi = float64(0.6931471803691238) /* 0x3fe62e42, 0xfee00000 */ +var _ln2_lo = float64(1.9082149292705877e-10) /* 0x3dea39ef, 0x35793c76 */ +var _invln2 = float64(1.4426950408889634) /* 0x3ff71547, 0x652b82fe */ +/* Scaled Q's: Qn_here = 2**n * Qn_above, for R(2*z) where z = hxs = x*x/2: */ +var _Q1 = -Float64FromFloat64(0.03333333333333313) /* BFA11111 111110F4 */ +var _Q2 = float64(0.0015873015872548146) /* 3F5A01A0 19FE5585 */ +var _Q3 = -Float64FromFloat64(7.93650757867488e-05) /* BF14CE19 9EAADBB7 */ +var _Q4 = float64(4.008217827329362e-06) /* 3ED0CFCA 86E65239 */ +var _Q5 = -Float64FromFloat64(2.0109921818362437e-07) /* BE8AFDB7 6E09C32D */ + +func Xexpm1(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var c, e, hfx, hi, hxs, lo, r1, t, twopk, y3 Tdouble_t + var hx Tuint32_t + var k, sign int32 + var y float32 + var y1, y2, v3 float64 + var v1 uint64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + var _ /* u at bp+8 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = c, e, hfx, hi, hx, hxs, k, lo, r1, sign, t, twopk, y, y1, y2, y3, v1, v3 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp + 8)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp + 8)) = x3 + hx = uint32(*(*Tuint64_t)(unsafe.Pointer(bp + 8)) >> int32(32) & uint64(0x7fffffff)) + sign = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp + 8)) >> int32(63)) + /* filter out huge and non-finite argument */ + if hx >= uint32(0x4043687A) { /* if |x|>=56*ln2 */ + *(*float64)(unsafe.Pointer(bp)) = x3 + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 + _2: + if BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)< _o_threshold { + x3 = x3 * float64(8.98846567431158e+307) + return x3 + } + } + /* argument reduction */ + if hx > uint32(0x3fd62e42) { /* if |x| > 0.5 ln2 */ + if hx < uint32(0x3FF0A2B2) { /* and |x| < 1.5 ln2 */ + if !(sign != 0) { + hi = x3 - _ln2_hi + lo = _ln2_lo + k = int32(1) + } else { + hi = x3 + _ln2_hi + lo = -_ln2_lo + k = -int32(1) + } + } else { + if sign != 0 { + v3 = -Float64FromFloat64(0.5) + } else { + v3 = float64(0.5) + } + k = int32(float64(_invln2*x3) + v3) + t = float64(k) + hi = x3 - float64(t*_ln2_hi) /* t*ln2_hi is exact here */ + lo = Tdouble_t(t * _ln2_lo) + } + x3 = hi - lo + c = hi - x3 - lo + } else { + if hx < uint32(0x3c900000) { /* |x| < 2**-54, return x */ + if hx < uint32(0x00100000) { + if uint64(4) == uint64(4) { + y = float32(x3) + } else { + if uint64(4) == uint64(8) { + y1 = float64(float32(x3)) + } else { + y2 = float64(float32(x3)) + } + } + } + return x3 + } else { + k = 0 + } + } + /* x is now in primary range */ + hfx = Tdouble_t(float64(0.5) * x3) + hxs = Tdouble_t(x3 * hfx) + r1 = float64(1) + float64(hxs*(_Q1+float64(hxs*(_Q2+float64(hxs*(_Q3+float64(hxs*(_Q4+float64(hxs*_Q5))))))))) + t = float64(3) - float64(r1*hfx) + e = Tdouble_t(hxs * ((r1 - t) / (Float64FromFloat64(6) - float64(x3*t)))) + if k == 0 { /* c is 0 */ + return x3 - (float64(x3*e) - hxs) + } + e = float64(x3*(e-c)) - c + e = e - hxs + /* exp(x) ~ 2^k (Xreduced - e + 1) */ + if k == -int32(1) { + return float64(float64(0.5)*(x3-e)) - float64(0.5) + } + if k == int32(1) { + if x3 < -Float64FromFloat64(0.25) { + return float64(-Float64FromFloat64(2) * (e - (x3 + Float64FromFloat64(0.5)))) + } + return float64(1) + float64(float64(2)*(x3-e)) + } + *(*Tuint64_t)(unsafe.Pointer(bp + 8)) = Uint64FromInt32(Int32FromInt32(0x3ff)+k) << int32(52) /* 2^k */ + twopk = *(*float64)(unsafe.Pointer(bp + 8)) + if k < 0 || k > int32(56) { /* suffice to return exp(x)-1 */ + y3 = x3 - e + float64(1) + if k == int32(1024) { + y3 = Tdouble_t(Tdouble_t(y3*float64(2)) * float64(8.98846567431158e+307)) + } else { + y3 = Tdouble_t(y3 * twopk) + } + return y3 - float64(1) + } + *(*Tuint64_t)(unsafe.Pointer(bp + 8)) = Uint64FromInt32(Int32FromInt32(0x3ff)-k) << int32(52) /* 2^-k */ + if k < int32(20) { + y3 = Tdouble_t((x3 - e + (Float64FromInt32(1) - *(*float64)(unsafe.Pointer(bp + 8)))) * twopk) + } else { + y3 = Tdouble_t((x3 - (e + *(*float64)(unsafe.Pointer(bp + 8))) + Float64FromInt32(1)) * twopk) + } + return y3 +} + +var _ln2_hi1 = float32(0.69313812256) /* 0x3f317180 */ +var _ln2_lo1 = float32(9.0580006145e-06) /* 0x3717f7d1 */ +var _invln21 = float32(1.4426950216) /* 0x3fb8aa3b */ +/* + * Domain [-0.34568, 0.34568], range ~[-6.694e-10, 6.696e-10]: + * |6 / x * (1 + 2 * (1 / (exp(x) - 1) - 1 / x)) - q(x)| < 2**-30.04 + * Scaled coefficients: Qn_here = 2**n * Qn_for_q (see s_expm1.c): + */ +var _Q11 = float32(-Float64FromFloat64(0.033333212137)) /* -0x888868.0p-28 */ +var _Q21 = float32(0.0015807170421) /* 0xcf3010.0p-33 */ + +func Xexpm1f(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var c, e, hfx, hi, hxs, lo, r1, t, twopk, y3 Tfloat_t + var hx Tuint32_t + var k, sign int32 + var y, v1 float32 + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = c, e, hfx, hi, hx, hxs, k, lo, r1, sign, t, twopk, y, y1, y2, y3, v1 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + hx = *(*Tuint32_t)(unsafe.Pointer(bp)) & uint32(0x7fffffff) + sign = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(31)) + /* filter out huge and non-finite argument */ + if hx >= uint32(0x4195b844) { /* if |x|>=27*ln2 */ + if hx > uint32(0x7f800000) { /* NaN */ + return x3 + } + if sign != 0 { + return float32(-Int32FromInt32(1)) + } + if hx > uint32(0x42b17217) { /* x > log(FLT_MAX) */ + x3 = x3 * Float32FromFloat32(1.7014118346046923e+38) + return x3 + } + } + /* argument reduction */ + if hx > uint32(0x3eb17218) { /* if |x| > 0.5 ln2 */ + if hx < uint32(0x3F851592) { /* and |x| < 1.5 ln2 */ + if !(sign != 0) { + hi = x3 - _ln2_hi1 + lo = _ln2_lo1 + k = int32(1) + } else { + hi = x3 + _ln2_hi1 + lo = -_ln2_lo1 + k = -int32(1) + } + } else { + if sign != 0 { + v1 = -Float32FromFloat32(0.5) + } else { + v1 = Float32FromFloat32(0.5) + } + k = int32(float32(_invln21*x3) + v1) + t = float32(k) + hi = x3 - float32(t*_ln2_hi1) /* t*ln2_hi is exact here */ + lo = Tfloat_t(t * _ln2_lo1) + } + x3 = hi - lo + c = hi - x3 - lo + } else { + if hx < uint32(0x33000000) { /* when |x|<2**-25, return x */ + if hx < uint32(0x00800000) { + if uint64(4) == uint64(4) { + y = float32(x3 * x3) + } else { + if uint64(4) == uint64(8) { + y1 = float64(x3 * x3) + } else { + y2 = float64(x3 * x3) + } + } + } + return x3 + } else { + k = 0 + } + } + /* x is now in primary range */ + hfx = Tfloat_t(Float32FromFloat32(0.5) * x3) + hxs = Tfloat_t(x3 * hfx) + r1 = Float32FromFloat32(1) + float32(hxs*(_Q11+float32(hxs*_Q21))) + t = Float32FromFloat32(3) - float32(r1*hfx) + e = Tfloat_t(hxs * ((r1 - t) / (Float32FromFloat32(6) - float32(x3*t)))) + if k == 0 { /* c is 0 */ + return x3 - (float32(x3*e) - hxs) + } + e = float32(x3*(e-c)) - c + e = e - hxs + /* exp(x) ~ 2^k (Xreduced - e + 1) */ + if k == -int32(1) { + return float32(Float32FromFloat32(0.5)*(x3-e)) - Float32FromFloat32(0.5) + } + if k == int32(1) { + if x3 < -Float32FromFloat32(0.25) { + return float32(-Float32FromFloat32(2) * (e - (x3 + Float32FromFloat32(0.5)))) + } + return Float32FromFloat32(1) + float32(Float32FromFloat32(2)*(x3-e)) + } + *(*Tuint32_t)(unsafe.Pointer(bp)) = Uint32FromInt32((int32(0x7f) + k) << int32(23)) /* 2^k */ + twopk = *(*float32)(unsafe.Pointer(bp)) + if k < 0 || k > int32(56) { /* suffice to return exp(x)-1 */ + y3 = x3 - e + Float32FromFloat32(1) + if k == int32(128) { + y3 = Tfloat_t(Tfloat_t(y3*Float32FromFloat32(2)) * Float32FromFloat32(1.7014118346046923e+38)) + } else { + y3 = Tfloat_t(y3 * twopk) + } + return y3 - Float32FromFloat32(1) + } + *(*Tuint32_t)(unsafe.Pointer(bp)) = Uint32FromInt32((int32(0x7f) - k) << int32(23)) /* 2^-k */ + if k < int32(23) { + y3 = Tfloat_t((x3 - e + (Float32FromInt32(1) - *(*float32)(unsafe.Pointer(bp)))) * twopk) + } else { + y3 = Tfloat_t((x3 - (e + *(*float32)(unsafe.Pointer(bp))) + Float32FromInt32(1)) * twopk) + } + return y3 +} + +func Xexpm1l(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xexpm1(tls, x) +} + +func Xfabs(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uintptr + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _ = v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + v1 = bp + *(*Tuint64_t)(unsafe.Pointer(v1)) = Tuint64_t(*(*Tuint64_t)(unsafe.Pointer(v1)) & (-Uint64FromUint64(1) / Uint64FromInt32(2))) + return *(*float64)(unsafe.Pointer(bp)) +} + +func Xfabsf(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + *(*Tuint32_t)(unsafe.Pointer(bp)) &= uint32(0x7fffffff) + return *(*float32)(unsafe.Pointer(bp)) +} + +func Xfabsl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfabs(tls, x) +} + +func Xfdim(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uint64 + var v5 float64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _, _ = v1, v5 + *(*float64)(unsafe.Pointer(bp)) = x + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + if BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)< y { + v5 = x - y + } else { + v5 = Float64FromInt32(0) + } + return v5 +} + +func Xfdimf(tls *TLS, x float32, y float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uint32 + var v5 float32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _, _ = v1, v5 + *(*float32)(unsafe.Pointer(bp)) = x + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + if BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return x + } + *(*float32)(unsafe.Pointer(bp)) = y + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _4 +_4: + if BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return y + } + if x > y { + v5 = x - y + } else { + v5 = Float32FromInt32(0) + } + return v5 +} + +func Xfdiml(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfdim(tls, x, y) +} + +func Xfinite(tls *TLS, x float64) (r int32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uint64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _ = v1 + *(*float64)(unsafe.Pointer(bp)) = x + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + return BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) < Uint64FromUint64(0x7ff)< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uint32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _ = v1 + *(*float32)(unsafe.Pointer(bp)) = x + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + return BoolInt32(v1&uint32(0x7fffffff) < uint32(0x7f800000)) +} + +const DBL_EPSILON7 = 2.220446049250313e-16 + +var _toint3 = Float64FromInt32(1) / Float64FromFloat64(2.220446049250313e-16) + +func Xfloor(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e, v1 int32 + var y float32 + var y1, y2 float64 + var y3 Tdouble_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _ = e, y, y1, y2, y3, v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + e = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + if e >= Int32FromInt32(0x3ff)+Int32FromInt32(52) || x3 == Float64FromInt32(0) { + return x3 + } + /* y = int(x) - x, where int(x) is an integer neighbor of x */ + if *(*Tuint64_t)(unsafe.Pointer(bp))>>int32(63) != 0 { + y3 = x3 - _toint3 + _toint3 - x3 + } else { + y3 = x3 + _toint3 - _toint3 - x3 + } + /* special case because of non-nearest rounding modes */ + if e <= Int32FromInt32(0x3ff)-Int32FromInt32(1) { + if uint64(8) == uint64(4) { + y = float32(y3) + } else { + if uint64(8) == uint64(8) { + y1 = y3 + } else { + y2 = y3 + } + } + if *(*Tuint64_t)(unsafe.Pointer(bp))>>int32(63) != 0 { + v1 = -int32(1) + } else { + v1 = 0 + } + return float64(v1) + } + if y3 > Float64FromInt32(0) { + return x3 + y3 - Float64FromInt32(1) + } + return x3 + y3 +} + +const DBL_EPSILON8 = 0 + +func Xfloorf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e int32 + var m Tuint32_t + var y float32 + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _ = e, m, y, y1, y2 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + e = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp))>>Int32FromInt32(23)&Uint32FromInt32(0xff)) - int32(0x7f) + if e >= int32(23) { + return x3 + } + if e >= 0 { + m = Uint32FromInt32(int32(0x007fffff) >> e) + if *(*Tuint32_t)(unsafe.Pointer(bp))&m == uint32(0) { + return x3 + } + if uint64(4) == uint64(4) { + y = x3 + Float32FromFloat32(1.329227995784916e+36) + } else { + if uint64(4) == uint64(8) { + y1 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } else { + y2 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } + } + if *(*Tuint32_t)(unsafe.Pointer(bp))>>int32(31) != 0 { + *(*Tuint32_t)(unsafe.Pointer(bp)) += m + } + *(*Tuint32_t)(unsafe.Pointer(bp)) &= ^m + } else { + if uint64(4) == uint64(4) { + y = x3 + Float32FromFloat32(1.329227995784916e+36) + } else { + if uint64(4) == uint64(8) { + y1 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } else { + y2 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } + } + if *(*Tuint32_t)(unsafe.Pointer(bp))>>int32(31) == uint32(0) { + *(*Tuint32_t)(unsafe.Pointer(bp)) = uint32(0) + } else { + if *(*Tuint32_t)(unsafe.Pointer(bp))< %v", r) }() + } + return Xfloor(tls, x) +} + +const DBL_MIN1 = 2.2250738585072014e-308 +const FLT_MIN1 = 1.1754943508222875e-38 +const ZEROINFNAN = 971 + +type Tnum = struct { + Fm Tuint64_t + Fe int32 + Fsign int32 +} + +func _normalize(tls *TLS, x float64) (r Tnum) { + var e, sign, v2 int32 + var ix Tuint64_t + var v1 float64 + _, _, _, _, _ = e, ix, sign, v1, v2 + ix = *(*Tuint64_t)(unsafe.Pointer(&x)) + e = Int32FromUint64(ix >> int32(52)) + sign = e & int32(0x800) + e = e & int32(0x7ff) + if !(e != 0) { + v1 = float64(x * float64(9.223372036854776e+18)) + ix = *(*Tuint64_t)(unsafe.Pointer(&v1)) + e = Int32FromUint64(ix >> int32(52) & uint64(0x7ff)) + if e != 0 { + v2 = e - int32(63) + } else { + v2 = int32(0x800) + } + e = v2 + } + ix = uint64(ix & (Uint64FromUint64(1)<> int32(32) + ylo = uint64(uint32(y)) + yhi = y >> int32(32) + t1 = xlo * ylo + t2 = xlo*yhi + xhi*ylo + t3 = xhi * yhi + **(**Tuint64_t)(__ccgo_up(lo)) = t1 + t2<>Int32FromInt32(32) + BoolUint64(t1 > **(**Tuint64_t)(__ccgo_up(lo))) +} + +func Xfma(tls *TLS, x1 float64, y1 float64, z float64) (r2 float64) { + if __ccgo_strace { + trc("tls=%v x1=%v y1=%v z=%v, (%v:)", tls, x1, y1, z, origin(2)) + defer func() { trc("-> %v", r2) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var c, r1 float64 + var d, e, nonzero, r, samesign, sign, v2 int32 + var fltmin float32 + var i Tint64_t + var nx, ny, nz Tnum + var t, zhi, zlo, v1 Tuint64_t + var tiny Tdouble_t + var y Tuint32_t + var _ /* rhi at bp+0 */ Tuint64_t + var _ /* rlo at bp+8 */ Tuint64_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = c, d, e, fltmin, i, nonzero, nx, ny, nz, r, r1, samesign, sign, t, tiny, y, zhi, zlo, v1, v2 + nx = _normalize(tls, x1) + ny = _normalize(tls, y1) + nz = _normalize(tls, z) + if nx.Fe >= Int32FromInt32(0x7ff)-Int32FromInt32(0x3ff)-Int32FromInt32(52)-Int32FromInt32(1) || ny.Fe >= Int32FromInt32(0x7ff)-Int32FromInt32(0x3ff)-Int32FromInt32(52)-Int32FromInt32(1) { + return float64(x1*y1) + z + } + if nz.Fe >= Int32FromInt32(0x7ff)-Int32FromInt32(0x3ff)-Int32FromInt32(52)-Int32FromInt32(1) { + if nz.Fe > Int32FromInt32(0x7ff)-Int32FromInt32(0x3ff)-Int32FromInt32(52)-Int32FromInt32(1) { /* z==0 */ + return float64(x1*y1) + z + } + return z + } + _mul(tls, bp, bp+8, nx.Fm, ny.Fm) + /* either top 20 or 21 bits of rhi and last 2 bits of rlo are 0 */ + /* align exponents */ + e = nx.Fe + ny.Fe + d = nz.Fe - e + /* shift bits z<<=kz, r>>=kr, so kz+kr == d, set e = e+kr (== ez-kz) */ + if d > 0 { + if d < int32(64) { + zlo = nz.Fm << d + zhi = nz.Fm >> (int32(64) - d) + } else { + zlo = uint64(0) + zhi = nz.Fm + e = nz.Fe - int32(64) + d = d - int32(64) + if d == 0 { + } else { + if d < int32(64) { + **(**Tuint64_t)(__ccgo_up(bp + 8)) = **(**Tuint64_t)(__ccgo_up(bp))<<(int32(64)-d) | **(**Tuint64_t)(__ccgo_up(bp + 8))>>d | BoolUint64(!!(**(**Tuint64_t)(__ccgo_up(bp + 8))<<(Int32FromInt32(64)-d) != 0)) + **(**Tuint64_t)(__ccgo_up(bp)) = **(**Tuint64_t)(__ccgo_up(bp)) >> d + } else { + **(**Tuint64_t)(__ccgo_up(bp + 8)) = uint64(1) + **(**Tuint64_t)(__ccgo_up(bp)) = uint64(0) + } + } + } + } else { + zhi = uint64(0) + d = -d + if d == 0 { + zlo = nz.Fm + } else { + if d < int32(64) { + zlo = nz.Fm>>d | BoolUint64(!!(nz.Fm<<(Int32FromInt32(64)-d) != 0)) + } else { + zlo = uint64(1) + } + } + } + /* add */ + sign = nx.Fsign ^ ny.Fsign + samesign = BoolInt32(!(sign^nz.Fsign != 0)) + nonzero = int32(1) + if samesign != 0 { + /* r += z */ + **(**Tuint64_t)(__ccgo_up(bp + 8)) = **(**Tuint64_t)(__ccgo_up(bp + 8)) + zlo + **(**Tuint64_t)(__ccgo_up(bp)) = **(**Tuint64_t)(__ccgo_up(bp)) + (zhi + BoolUint64(**(**Tuint64_t)(__ccgo_up(bp + 8)) < zlo)) + } else { + /* r -= z */ + t = **(**Tuint64_t)(__ccgo_up(bp + 8)) + **(**Tuint64_t)(__ccgo_up(bp + 8)) = **(**Tuint64_t)(__ccgo_up(bp + 8)) - zlo + **(**Tuint64_t)(__ccgo_up(bp)) = **(**Tuint64_t)(__ccgo_up(bp)) - zhi - BoolUint64(t < **(**Tuint64_t)(__ccgo_up(bp + 8))) + if **(**Tuint64_t)(__ccgo_up(bp))>>int32(63) != 0 { + **(**Tuint64_t)(__ccgo_up(bp + 8)) = -**(**Tuint64_t)(__ccgo_up(bp + 8)) + **(**Tuint64_t)(__ccgo_up(bp)) = -**(**Tuint64_t)(__ccgo_up(bp)) - BoolUint64(!!(**(**Tuint64_t)(__ccgo_up(bp + 8)) != 0)) + sign = BoolInt32(!(sign != 0)) + } + nonzero = BoolInt32(!!(**(**Tuint64_t)(__ccgo_up(bp)) != 0)) + } + /* set rhi to top 63bit of the result (last bit is sticky) */ + if nonzero != 0 { + e = e + int32(64) + v1 = **(**Tuint64_t)(__ccgo_up(bp)) + if v1>>Int32FromInt32(32) != 0 { + y = uint32(v1 >> int32(32)) + r = Int32FromInt32(0) + } else { + y = uint32(v1) + r = Int32FromInt32(32) + } + if y>>Int32FromInt32(16) != 0 { + y = y >> uint32(16) + } else { + r = r | int32(16) + } + if y>>Int32FromInt32(8) != 0 { + y = y >> uint32(8) + } else { + r = r | int32(8) + } + if y>>Int32FromInt32(4) != 0 { + y = y >> uint32(4) + } else { + r = r | int32(4) + } + if y>>Int32FromInt32(2) != 0 { + y = y >> uint32(2) + } else { + r = r | int32(2) + } + v2 = r | BoolInt32(!(y>>Int32FromInt32(1) != 0)) + goto _3 + _3: + d = v2 - int32(1) + /* note: d > 0 */ + **(**Tuint64_t)(__ccgo_up(bp)) = **(**Tuint64_t)(__ccgo_up(bp))<>(int32(64)-d) | BoolUint64(!!(**(**Tuint64_t)(__ccgo_up(bp + 8))<>Int32FromInt32(32) != 0 { + y = uint32(v1 >> int32(32)) + r = Int32FromInt32(0) + } else { + y = uint32(v1) + r = Int32FromInt32(32) + } + if y>>Int32FromInt32(16) != 0 { + y = y >> uint32(16) + } else { + r = r | int32(16) + } + if y>>Int32FromInt32(8) != 0 { + y = y >> uint32(8) + } else { + r = r | int32(8) + } + if y>>Int32FromInt32(4) != 0 { + y = y >> uint32(4) + } else { + r = r | int32(4) + } + if y>>Int32FromInt32(2) != 0 { + y = y >> uint32(2) + } else { + r = r | int32(2) + } + v2 = r | BoolInt32(!(y>>Int32FromInt32(1) != 0)) + goto _6 + _6: + d = v2 - int32(1) + if d < 0 { + **(**Tuint64_t)(__ccgo_up(bp)) = **(**Tuint64_t)(__ccgo_up(bp + 8))>>int32(1) | **(**Tuint64_t)(__ccgo_up(bp + 8))&uint64(1) + } else { + **(**Tuint64_t)(__ccgo_up(bp)) = **(**Tuint64_t)(__ccgo_up(bp + 8)) << d + } + } else { + /* exact +-0 */ + return float64(x1*y1) + z + } + } + e = e - d + /* convert to double */ + i = Int64FromUint64(**(**Tuint64_t)(__ccgo_up(bp))) /* i is in [1<<62,(1<<63)-1] */ + if sign != 0 { + i = -i + } + r1 = float64(i) /* |r| is in [0x1p62,0x1p63] */ + if e < -Int32FromInt32(1022)-Int32FromInt32(62) { + /* result is subnormal before rounding */ + if e == -Int32FromInt32(1022)-Int32FromInt32(63) { + c = float64(9.223372036854776e+18) + if sign != 0 { + c = -c + } + if r1 == c { + /* min normal after rounding, underflow depends + on arch behaviour which can be imitated by + a double to float conversion */ + fltmin = float32(float64(Float64FromFloat64(1.0842021401737618e-19)*Float64FromFloat32(1.1754943508222875e-38)) * r1) + return float64(Float64FromFloat64(2.2250738585072014e-308) / Float64FromFloat32(1.1754943508222875e-38) * float64(fltmin)) + } + /* one bit is lost when scaled, add another top bit to + only round once at conversion if it is inexact */ + if **(**Tuint64_t)(__ccgo_up(bp))<>int32(1)|**(**Tuint64_t)(__ccgo_up(bp))&uint64(1)) | Uint64FromUint64(1)<>d | BoolUint64(!!(**(**Tuint64_t)(__ccgo_up(bp))<<(Int32FromInt32(64)-d) != 0))) << d) + if sign != 0 { + i = -i + } + r1 = float64(i) + } + } + return Xscalbn(tls, r1, e) +} + +const DBL_MIN2 = 0 +const FLT_MIN2 = 0 + +func Xfmal(tls *TLS, x float64, y float64, z float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v z=%v, (%v:)", tls, x, y, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfma(tls, x, y, z) +} + +func Xfmax(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1, v3, v5 uint64 + var v9 float64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _, _, _, _ = v1, v3, v5, v9 + *(*float64)(unsafe.Pointer(bp)) = x + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + if BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(63)) != Int32FromUint64(v3>>Int32FromInt32(63)) { + *(*float64)(unsafe.Pointer(bp)) = x + v5 = *(*uint64)(unsafe.Pointer(bp)) + goto _11 + _11: + if Int32FromUint64(v5>>Int32FromInt32(63)) != 0 { + v9 = y + } else { + v9 = x + } + return v9 + } + if x < y { + v9 = y + } else { + v9 = x + } + return v9 +} + +func Xfmaxf(tls *TLS, x float32, y float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1, v3, v5 uint32 + var v9 float32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _, _, _, _ = v1, v3, v5, v9 + *(*float32)(unsafe.Pointer(bp)) = x + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + if BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return y + } + *(*float32)(unsafe.Pointer(bp)) = y + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _4 +_4: + if BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return x + } + /* handle signed zeroes, see C99 Annex F.9.9.2 */ + *(*float32)(unsafe.Pointer(bp)) = x + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _6 +_6: + *(*float32)(unsafe.Pointer(bp)) = y + v3 = *(*uint32)(unsafe.Pointer(bp)) + goto _8 +_8: + if Int32FromUint32(v1>>Int32FromInt32(31)) != Int32FromUint32(v3>>Int32FromInt32(31)) { + *(*float32)(unsafe.Pointer(bp)) = x + v5 = *(*uint32)(unsafe.Pointer(bp)) + goto _11 + _11: + if Int32FromUint32(v5>>Int32FromInt32(31)) != 0 { + v9 = y + } else { + v9 = x + } + return v9 + } + if x < y { + v9 = y + } else { + v9 = x + } + return v9 +} + +func Xfmaxl(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfmax(tls, x, y) +} + +func Xfmin(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1, v3, v5 uint64 + var v9 float64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _, _, _, _ = v1, v3, v5, v9 + *(*float64)(unsafe.Pointer(bp)) = x + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + if BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(63)) != Int32FromUint64(v3>>Int32FromInt32(63)) { + *(*float64)(unsafe.Pointer(bp)) = x + v5 = *(*uint64)(unsafe.Pointer(bp)) + goto _11 + _11: + if Int32FromUint64(v5>>Int32FromInt32(63)) != 0 { + v9 = x + } else { + v9 = y + } + return v9 + } + if x < y { + v9 = x + } else { + v9 = y + } + return v9 +} + +func Xfminf(tls *TLS, x float32, y float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1, v3, v5 uint32 + var v9 float32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _, _, _, _ = v1, v3, v5, v9 + *(*float32)(unsafe.Pointer(bp)) = x + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + if BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return y + } + *(*float32)(unsafe.Pointer(bp)) = y + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _4 +_4: + if BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return x + } + /* handle signed zeros, see C99 Annex F.9.9.2 */ + *(*float32)(unsafe.Pointer(bp)) = x + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _6 +_6: + *(*float32)(unsafe.Pointer(bp)) = y + v3 = *(*uint32)(unsafe.Pointer(bp)) + goto _8 +_8: + if Int32FromUint32(v1>>Int32FromInt32(31)) != Int32FromUint32(v3>>Int32FromInt32(31)) { + *(*float32)(unsafe.Pointer(bp)) = x + v5 = *(*uint32)(unsafe.Pointer(bp)) + goto _11 + _11: + if Int32FromUint32(v5>>Int32FromInt32(31)) != 0 { + v9 = x + } else { + v9 = y + } + return v9 + } + if x < y { + v9 = x + } else { + v9 = y + } + return v9 +} + +func Xfminl(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfmin(tls, x, y) +} + +func Xfmod(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var ex, ey, sx int32 + var i, uxi Tuint64_t + var v1 uint64 + var v3 bool + var v6 uintptr + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + var _ /* ux at bp+8 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + var _ /* uy at bp+16 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _, _ = ex, ey, i, sx, uxi, v1, v3, v6 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp + 8)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp + 8)) = x + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp + 16)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp + 16)) = y + ex = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp + 8)) >> int32(52) & uint64(0x7ff)) + ey = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp + 16)) >> int32(52) & uint64(0x7ff)) + sx = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp + 8)) >> int32(63)) + /* in the followings uxi should be ux.i, but then gcc wrongly adds */ + /* float load/store to inner loops ruining performance and code size */ + uxi = *(*Tuint64_t)(unsafe.Pointer(bp + 8)) + if v3 = *(*Tuint64_t)(unsafe.Pointer(bp + 16))<>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>int32(63) == uint64(0)) { + break + } + goto _4 + _4: + ; + ex = ex - 1 + i = i << uint64(1) + } + uxi = uxi << Uint64FromInt32(-ex+int32(1)) + } else { + uxi = uint64(uxi & (-Uint64FromUint64(1) >> Int32FromInt32(12))) + uxi = uint64(uxi | Uint64FromUint64(1)<>int32(63) == uint64(0)) { + break + } + goto _5 + _5: + ; + ey = ey - 1 + i = i << uint64(1) + } + *(*Tuint64_t)(unsafe.Pointer(bp + 16)) <<= Uint64FromInt32(-ey + int32(1)) + } else { + v6 = bp + 16 + *(*Tuint64_t)(unsafe.Pointer(v6)) = Tuint64_t(*(*Tuint64_t)(unsafe.Pointer(v6)) & (-Uint64FromUint64(1) >> Int32FromInt32(12))) + v6 = bp + 16 + *(*Tuint64_t)(unsafe.Pointer(v6)) = Tuint64_t(*(*Tuint64_t)(unsafe.Pointer(v6)) | Uint64FromUint64(1)< ey) { + break + } + i = uxi - *(*Tuint64_t)(unsafe.Pointer(bp + 16)) + if i>>int32(63) == uint64(0) { + if i == uint64(0) { + return float64(Float64FromInt32(0) * x) + } + uxi = i + } + uxi = uxi << uint64(1) + goto _8 + _8: + ; + ex = ex - 1 + } + i = uxi - *(*Tuint64_t)(unsafe.Pointer(bp + 16)) + if i>>int32(63) == uint64(0) { + if i == uint64(0) { + return float64(Float64FromInt32(0) * x) + } + uxi = i + } + for { + if !(uxi>>int32(52) == uint64(0)) { + break + } + goto _9 + _9: + ; + uxi = uxi << uint64(1) + ex = ex - 1 + } + /* scale result */ + if ex > 0 { + uxi = uint64(uxi - Uint64FromUint64(1)<> Uint64FromInt32(-ex+int32(1)) + } + uxi = uxi | Uint64FromInt32(sx)< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ex, ey int32 + var i, sx, uxi Tuint32_t + var v1 uint32 + var v3 bool + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + var _ /* ux at bp+4 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + var _ /* uy at bp+8 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _, _ = ex, ey, i, sx, uxi, v1, v3 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp + 4)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp + 4)) = x + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp + 8)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp + 8)) = y + ex = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp + 4)) >> int32(23) & uint32(0xff)) + ey = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp + 8)) >> int32(23) & uint32(0xff)) + sx = *(*Tuint32_t)(unsafe.Pointer(bp + 4)) & uint32(0x80000000) + uxi = *(*Tuint32_t)(unsafe.Pointer(bp + 4)) + if v3 = *(*Tuint32_t)(unsafe.Pointer(bp + 8))< uint32(0x7f800000)) != 0 || ex == int32(0xff) { + return float32(x*y) / float32(x*y) + } + if uxi<>int32(31) == uint32(0)) { + break + } + goto _4 + _4: + ; + ex = ex - 1 + i = i << uint32(1) + } + uxi = uxi << Uint32FromInt32(-ex+int32(1)) + } else { + uxi = uxi & (-Uint32FromUint32(1) >> Int32FromInt32(9)) + uxi = uxi | Uint32FromUint32(1)<>int32(31) == uint32(0)) { + break + } + goto _5 + _5: + ; + ey = ey - 1 + i = i << uint32(1) + } + *(*Tuint32_t)(unsafe.Pointer(bp + 8)) <<= Uint32FromInt32(-ey + int32(1)) + } else { + *(*Tuint32_t)(unsafe.Pointer(bp + 8)) &= -Uint32FromUint32(1) >> Int32FromInt32(9) + *(*Tuint32_t)(unsafe.Pointer(bp + 8)) |= Uint32FromUint32(1) << Int32FromInt32(23) + } + /* x mod y */ + for { + if !(ex > ey) { + break + } + i = uxi - *(*Tuint32_t)(unsafe.Pointer(bp + 8)) + if i>>int32(31) == uint32(0) { + if i == uint32(0) { + return float32(Float32FromInt32(0) * x) + } + uxi = i + } + uxi = uxi << uint32(1) + goto _6 + _6: + ; + ex = ex - 1 + } + i = uxi - *(*Tuint32_t)(unsafe.Pointer(bp + 8)) + if i>>int32(31) == uint32(0) { + if i == uint32(0) { + return float32(Float32FromInt32(0) * x) + } + uxi = i + } + for { + if !(uxi>>int32(23) == uint32(0)) { + break + } + goto _7 + _7: + ; + uxi = uxi << uint32(1) + ex = ex - 1 + } + /* scale result up */ + if ex > 0 { + uxi = uxi - Uint32FromUint32(1)<> Uint32FromInt32(-ex+int32(1)) + } + uxi = uxi | sx + *(*Tuint32_t)(unsafe.Pointer(bp + 4)) = uxi + return *(*float32)(unsafe.Pointer(bp + 4)) +} + +func Xfmodl(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfmod(tls, x, y) +} + +func Xfrexp(tls *TLS, x float64, e uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v e=%v, (%v:)", tls, x, e, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ee int32 + var v1 uintptr + var _ /* y at bp+0 */ struct { + Fi [0]Tuint64_t + Fd float64 + } + _, _ = ee, v1 + *(*struct { + Fi [0]Tuint64_t + Fd float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Fd float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + ee = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + if !(ee != 0) { + if x != 0 { + x = Xfrexp(tls, float64(x*float64(1.8446744073709552e+19)), e) + **(**int32)(__ccgo_up(e)) -= int32(64) + } else { + **(**int32)(__ccgo_up(e)) = 0 + } + return x + } else { + if ee == int32(0x7ff) { + return x + } + } + **(**int32)(__ccgo_up(e)) = ee - int32(0x3fe) + v1 = bp + *(*Tuint64_t)(unsafe.Pointer(v1)) = Tuint64_t(*(*Tuint64_t)(unsafe.Pointer(v1)) & Uint64FromUint64(0x800fffffffffffff)) + v1 = bp + *(*Tuint64_t)(unsafe.Pointer(v1)) = Tuint64_t(*(*Tuint64_t)(unsafe.Pointer(v1)) | Uint64FromUint64(0x3fe0000000000000)) + return *(*float64)(unsafe.Pointer(bp)) +} + +func Xfrexpf(tls *TLS, x float32, e uintptr) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v e=%v, (%v:)", tls, x, e, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ee int32 + var v1 uintptr + var _ /* y at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _ = ee, v1 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + ee = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(23) & uint32(0xff)) + if !(ee != 0) { + if x != 0 { + x = Xfrexpf(tls, float32(float64(x)*float64(1.8446744073709552e+19)), e) + **(**int32)(__ccgo_up(e)) -= int32(64) + } else { + **(**int32)(__ccgo_up(e)) = 0 + } + return x + } else { + if ee == int32(0xff) { + return x + } + } + **(**int32)(__ccgo_up(e)) = ee - int32(0x7e) + v1 = bp + *(*Tuint32_t)(unsafe.Pointer(v1)) = Tuint32_t(uint64(*(*Tuint32_t)(unsafe.Pointer(v1))) & Uint64FromUint64(0x807fffff)) + v1 = bp + *(*Tuint32_t)(unsafe.Pointer(v1)) = Tuint32_t(uint64(*(*Tuint32_t)(unsafe.Pointer(v1))) | Uint64FromUint64(0x3f000000)) + return *(*float32)(unsafe.Pointer(bp)) +} + +func Xfrexpl(tls *TLS, x float64, e uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v e=%v, (%v:)", tls, x, e, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfrexp(tls, x, e) +} + +const SPLIT = 1 + +func _sq(tls *TLS, hi uintptr, lo uintptr, x float64) { + var xc, xh, xl Tdouble_t + _, _, _ = xc, xh, xl + xc = Tdouble_t(x * (Float64FromFloat64(1.34217728e+08) + Float64FromInt32(1))) + xh = x - xc + xc + xl = x - xh + **(**Tdouble_t)(__ccgo_up(hi)) = Tdouble_t(x * x) + **(**Tdouble_t)(__ccgo_up(lo)) = Tdouble_t(xh*xh) - **(**Tdouble_t)(__ccgo_up(hi)) + Tdouble_t(Tdouble_t(Float64FromInt32(2)*xh)*xl) + Tdouble_t(xl*xl) +} + +func Xhypot(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + var ex, ey int32 + var ut struct { + Fi [0]Tuint64_t + Ff float64 + } + var z Tdouble_t + var v1 uintptr + var _ /* hx at bp+16 */ Tdouble_t + var _ /* hy at bp+32 */ Tdouble_t + var _ /* lx at bp+24 */ Tdouble_t + var _ /* ly at bp+40 */ Tdouble_t + var _ /* ux at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + var _ /* uy at bp+8 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _ = ex, ey, ut, z, v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp + 8)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp + 8)) = y + /* arrange |x| >= |y| */ + v1 = bp + *(*Tuint64_t)(unsafe.Pointer(v1)) = Tuint64_t(*(*Tuint64_t)(unsafe.Pointer(v1)) & (-Uint64FromUint64(1) >> Int32FromInt32(1))) + v1 = bp + 8 + *(*Tuint64_t)(unsafe.Pointer(v1)) = Tuint64_t(*(*Tuint64_t)(unsafe.Pointer(v1)) & (-Uint64FromUint64(1) >> Int32FromInt32(1))) + if *(*Tuint64_t)(unsafe.Pointer(bp)) < *(*Tuint64_t)(unsafe.Pointer(bp + 8)) { + ut = **(**struct { + Fi [0]Tuint64_t + Ff float64 + })(__ccgo_up(bp)) + **(**struct { + Fi [0]Tuint64_t + Ff float64 + })(__ccgo_up(bp)) = **(**struct { + Fi [0]Tuint64_t + Ff float64 + })(__ccgo_up(bp + 8)) + **(**struct { + Fi [0]Tuint64_t + Ff float64 + })(__ccgo_up(bp + 8)) = ut + } + /* special cases */ + ex = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52)) + ey = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp + 8)) >> int32(52)) + x = *(*float64)(unsafe.Pointer(bp)) + y = *(*float64)(unsafe.Pointer(bp + 8)) + /* note: hypot(inf,nan) == inf */ + if ey == int32(0x7ff) { + return y + } + if ex == int32(0x7ff) || *(*Tuint64_t)(unsafe.Pointer(bp + 8)) == uint64(0) { + return x + } + /* note: hypot(x,y) ~= x + y*y/x/2 with inexact for small y/x */ + /* 64 difference is enough for ld80 double_t */ + if ex-ey > int32(64) { + return x + y + } + /* precise sqrt argument in nearest rounding mode without overflow */ + /* xh*xh must not overflow and xl*xl must not underflow in sq */ + z = Float64FromInt32(1) + if ex > Int32FromInt32(0x3ff)+Int32FromInt32(510) { + z = float64(5.260135901548374e+210) + x = x * float64(1.90109156629516e-211) + y = y * float64(1.90109156629516e-211) + } else { + if ey < Int32FromInt32(0x3ff)-Int32FromInt32(450) { + z = float64(1.90109156629516e-211) + x = x * float64(5.260135901548374e+210) + y = y * float64(5.260135901548374e+210) + } + } + _sq(tls, bp+16, bp+24, x) + _sq(tls, bp+32, bp+40, y) + return float64(z * Xsqrt(tls, **(**Tdouble_t)(__ccgo_up(bp + 40))+**(**Tdouble_t)(__ccgo_up(bp + 24))+**(**Tdouble_t)(__ccgo_up(bp + 32))+**(**Tdouble_t)(__ccgo_up(bp + 16)))) +} + +func Xhypotf(tls *TLS, x float32, y float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ut struct { + Fi [0]Tuint32_t + Ff float32 + } + var z Tfloat_t + var _ /* ux at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + var _ /* uy at bp+4 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _ = ut, z + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp + 4)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp + 4)) = y + *(*Tuint32_t)(unsafe.Pointer(bp)) &= -Uint32FromUint32(1) >> Int32FromInt32(1) + *(*Tuint32_t)(unsafe.Pointer(bp + 4)) &= -Uint32FromUint32(1) >> Int32FromInt32(1) + if *(*Tuint32_t)(unsafe.Pointer(bp)) < *(*Tuint32_t)(unsafe.Pointer(bp + 4)) { + ut = **(**struct { + Fi [0]Tuint32_t + Ff float32 + })(__ccgo_up(bp)) + **(**struct { + Fi [0]Tuint32_t + Ff float32 + })(__ccgo_up(bp)) = **(**struct { + Fi [0]Tuint32_t + Ff float32 + })(__ccgo_up(bp + 4)) + **(**struct { + Fi [0]Tuint32_t + Ff float32 + })(__ccgo_up(bp + 4)) = ut + } + x = *(*float32)(unsafe.Pointer(bp)) + y = *(*float32)(unsafe.Pointer(bp + 4)) + if *(*Tuint32_t)(unsafe.Pointer(bp + 4)) == Uint32FromInt32(Int32FromInt32(0xff)<= Uint32FromInt32(Int32FromInt32(0xff)<= Uint32FromInt32(Int32FromInt32(25)<= Uint32FromInt32((Int32FromInt32(0x7f)+Int32FromInt32(60))< %v", r) }() + } + return Xhypot(tls, x, y) +} + +func Xilogb(tls *TLS, x3 float64) (r int32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e, v2 int32 + var i Tuint64_t + var y float32 + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _ = e, i, y, y1, y2, v2 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + i = *(*Tuint64_t)(unsafe.Pointer(bp)) + e = Int32FromUint64(i >> int32(52) & uint64(0x7ff)) + if !(e != 0) { + i = i << uint64(12) + if i == uint64(0) { + if uint64(4) == uint64(4) { + y = Float32FromInt32(0) / Float32FromFloat32(0) + } else { + if uint64(4) == uint64(8) { + y1 = float64(Float32FromInt32(0) / Float32FromFloat32(0)) + } else { + y2 = float64(Float32FromInt32(0) / Float32FromFloat32(0)) + } + } + return -Int32FromInt32(1) - Int32FromInt32(0x7fffffff) + } + /* subnormal x */ + e = -int32(0x3ff) + for { + if !(i>>int32(63) == uint64(0)) { + break + } + goto _1 + _1: + ; + e = e - 1 + i = i << uint64(1) + } + return e + } + if e == int32(0x7ff) { + if uint64(4) == uint64(4) { + y = Float32FromInt32(0) / Float32FromFloat32(0) + } else { + if uint64(4) == uint64(8) { + y1 = float64(Float32FromInt32(0) / Float32FromFloat32(0)) + } else { + y2 = float64(Float32FromInt32(0) / Float32FromFloat32(0)) + } + } + if i< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e, v2 int32 + var i Tuint32_t + var y float32 + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _ = e, i, y, y1, y2, v2 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + i = *(*Tuint32_t)(unsafe.Pointer(bp)) + e = Int32FromUint32(i >> int32(23) & uint32(0xff)) + if !(e != 0) { + i = i << uint32(9) + if i == uint32(0) { + if uint64(4) == uint64(4) { + y = Float32FromInt32(0) / Float32FromFloat32(0) + } else { + if uint64(4) == uint64(8) { + y1 = float64(Float32FromInt32(0) / Float32FromFloat32(0)) + } else { + y2 = float64(Float32FromInt32(0) / Float32FromFloat32(0)) + } + } + return -Int32FromInt32(1) - Int32FromInt32(0x7fffffff) + } + /* subnormal x */ + e = -int32(0x7f) + for { + if !(i>>int32(31) == uint32(0)) { + break + } + goto _1 + _1: + ; + e = e - 1 + i = i << uint32(1) + } + return e + } + if e == int32(0xff) { + if uint64(4) == uint64(4) { + y = Float32FromInt32(0) / Float32FromFloat32(0) + } else { + if uint64(4) == uint64(8) { + y1 = float64(Float32FromInt32(0) / Float32FromFloat32(0)) + } else { + y2 = float64(Float32FromInt32(0) / Float32FromFloat32(0)) + } + } + if i< %v", r) }() + } + return Xilogb(tls, x) +} + +var _invsqrtpi = float64(0.5641895835477563) /* 0x3FE20DD7, 0x50429B6D */ +var _tpi = float64(0.6366197723675814) /* 0x3FE45F30, 0x6DC9C883 */ + +// C documentation +// +// /* common method when |x|>=2 */ +func _common(tls *TLS, ix Tuint32_t, x float64, y0 int32) (r float64) { + var c, cc, s, ss, z float64 + _, _, _, _, _ = c, cc, s, ss, z + /* + * j0(x) = sqrt(2/(pi*x))*(p0(x)*cos(x-pi/4)-q0(x)*sin(x-pi/4)) + * y0(x) = sqrt(2/(pi*x))*(p0(x)*sin(x-pi/4)+q0(x)*cos(x-pi/4)) + * + * sin(x-pi/4) = (sin(x) - cos(x))/sqrt(2) + * cos(x-pi/4) = (sin(x) + cos(x))/sqrt(2) + * sin(x) +- cos(x) = -cos(2x)/(sin(x) -+ cos(x)) + */ + s = Xsin(tls, x) + c = Xcos(tls, x) + if y0 != 0 { + c = -c + } + cc = s + c + /* avoid overflow in 2*x, big ulp error when x>=0x1p1023 */ + if ix < uint32(0x7fe00000) { + ss = s - c + z = -Xcos(tls, float64(Float64FromInt32(2)*x)) + if float64(s*c) < Float64FromInt32(0) { + cc = z / ss + } else { + ss = z / cc + } + if ix < uint32(0x48000000) { + if y0 != 0 { + ss = -ss + } + cc = float64(_pzero(tls, x)*cc) - float64(_qzero(tls, x)*ss) + } + } + return float64(_invsqrtpi*cc) / Xsqrt(tls, x) +} + +// C documentation +// +// /* R0/S0 on [0, 2.00] */ + +var _R02 = float64(0.015624999999999995) /* 0x3F8FFFFF, 0xFFFFFFFD */ +var _R03 = -Float64FromFloat64(0.00018997929423885472) /* 0xBF28E6A5, 0xB61AC6E9 */ +var _R04 = float64(1.8295404953270067e-06) /* 0x3EBEB1D1, 0x0C503919 */ +var _R05 = -Float64FromFloat64(4.618326885321032e-09) /* 0xBE33D5E7, 0x73D63FCE */ +var _S01 = float64(0.015619102946489001) /* 0x3F8FFCE8, 0x82C8C2A4 */ +var _S02 = float64(0.00011692678466333745) /* 0x3F1EA6D2, 0xDD57DBF4 */ +var _S03 = float64(5.135465502073181e-07) /* 0x3EA13B54, 0xCE84D5A9 */ +var _S04 = float64(1.1661400333379e-09) /* 0x3E1408BC, 0xF4745D8F */ + +func Xj0(tls *TLS, x float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var ix Tuint32_t + var r, s, z float64 + _, _, _, _ = ix, r, s, z + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + ix = ix & uint32(0x7fffffff) + /* j0(+-inf)=0, j0(nan)=nan */ + if ix >= uint32(0x7ff00000) { + return Float64FromInt32(1) / float64(x*x) + } + x = Xfabs(tls, x) + if ix >= uint32(0x40000000) { /* |x| >= 2 */ + /* large ulp error near zeros: 2.4, 5.52, 8.6537,.. */ + return _common(tls, ix, x, 0) + } + /* 1 - x*x/4 + x*x*R(x^2)/S(x^2) */ + if ix >= uint32(0x3f200000) { /* |x| >= 2**-13 */ + /* up to 4ulp error close to 2 */ + z = float64(x * x) + r = float64(z * (_R02 + float64(z*(_R03+float64(z*(_R04+float64(z*_R05))))))) + s = Float64FromInt32(1) + float64(z*(_S01+float64(z*(_S02+float64(z*(_S03+float64(z*_S04))))))) + return float64((Float64FromInt32(1)+x/Float64FromInt32(2))*(Float64FromInt32(1)-x/Float64FromInt32(2))) + float64(z*(r/s)) + } + /* 1 - x*x/4 */ + /* prevent underflow */ + /* inexact should be raised when x!=0, this is not done correctly */ + if ix >= uint32(0x38000000) { /* |x| >= 2**-127 */ + x = float64(float64(float64(0.25)*x) * x) + } + return Float64FromInt32(1) - x +} + +var _u00 = -Float64FromFloat64(0.07380429510868723) /* 0xBFB2E4D6, 0x99CBD01F */ +var _u01 = float64(0.17666645250918112) /* 0x3FC69D01, 0x9DE9E3FC */ +var _u02 = -Float64FromFloat64(0.01381856719455969) /* 0xBF8C4CE8, 0xB16CFA97 */ +var _u03 = float64(0.00034745343209368365) /* 0x3F36C54D, 0x20B29B6B */ +var _u04 = -Float64FromFloat64(3.8140705372436416e-06) /* 0xBECFFEA7, 0x73D25CAD */ +var _u05 = float64(1.9559013703502292e-08) /* 0x3E550057, 0x3B4EABD4 */ +var _u06 = -Float64FromFloat64(3.982051941321034e-11) /* 0xBDC5E43D, 0x693FB3C8 */ +var _v01 = float64(0.01273048348341237) /* 0x3F8A1270, 0x91C9C71A */ +var _v02 = float64(7.600686273503533e-05) /* 0x3F13ECBB, 0xF578C6C1 */ +var _v03 = float64(2.591508518404578e-07) /* 0x3E91642D, 0x7FF202FD */ +var _v04 = float64(4.4111031133267547e-10) /* 0x3DFE5018, 0x3BD6D9EF */ + +func Xy0(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __u Tuint64_t + var ix, lx Tuint32_t + var u, v, z float64 + _, _, _, _, _, _ = __u, ix, lx, u, v, z + __u = *(*Tuint64_t)(unsafe.Pointer(&x)) + ix = uint32(__u >> int32(32)) + lx = uint32(__u) + /* y0(nan)=nan, y0(<0)=nan, y0(0)=-inf, y0(inf)=0 */ + if ix<>int32(31) != 0 { + return Float64FromInt32(0) / Float64FromFloat64(0) + } + if ix >= uint32(0x7ff00000) { + return Float64FromInt32(1) / x + } + if ix >= uint32(0x40000000) { /* x >= 2 */ + /* large ulp errors near zeros: 3.958, 7.086,.. */ + return _common(tls, ix, x, int32(1)) + } + /* U(x^2)/V(x^2) + (2/pi)*j0(x)*log(x) */ + if ix >= uint32(0x3e400000) { /* x >= 2**-27 */ + /* large ulp error near the first zero, x ~= 0.89 */ + z = float64(x * x) + u = _u00 + float64(z*(_u01+float64(z*(_u02+float64(z*(_u03+float64(z*(_u04+float64(z*(_u05+float64(z*_u06))))))))))) + v = float64(1) + float64(z*(_v01+float64(z*(_v02+float64(z*(_v03+float64(z*_v04))))))) + return u/v + float64(_tpi*float64(Xj0(tls, x)*Xlog(tls, x))) + } + return _u00 + float64(_tpi*Xlog(tls, x)) +} + +// C documentation +// +// /* The asymptotic expansions of pzero is +// * 1 - 9/128 s^2 + 11025/98304 s^4 - ..., where s = 1/x. +// * For x >= 2, We approximate pzero by +// * pzero(x) = 1 + (R/S) +// * where R = pR0 + pR1*s^2 + pR2*s^4 + ... + pR5*s^10 +// * S = 1 + pS0*s^2 + ... + pS4*s^10 +// * and +// * | pzero(x)-1-R/S | <= 2 ** ( -60.26) +// */ +var _pR8 = [6]float64{ + 1: -Float64FromFloat64(0.07031249999999004), + 2: -Float64FromFloat64(8.081670412753498), + 3: -Float64FromFloat64(257.06310567970485), + 4: -Float64FromFloat64(2485.216410094288), + 5: -Float64FromFloat64(5253.043804907295), +} +var _pS8 = [5]float64{ + 0: float64(116.53436461966818), + 1: float64(3833.7447536412183), + 2: float64(40597.857264847255), + 3: float64(116752.97256437592), + 4: float64(47627.728414673096), +} + +var _pR5 = [6]float64{ + 0: -Float64FromFloat64(1.141254646918945e-11), + 1: -Float64FromFloat64(0.07031249408735993), + 2: -Float64FromFloat64(4.159610644705878), + 3: -Float64FromFloat64(67.67476522651673), + 4: -Float64FromFloat64(331.23129964917297), + 5: -Float64FromFloat64(346.4333883656049), +} +var _pS52 = [5]float64{ + 0: float64(60.753938269230034), + 1: float64(1051.2523059570458), + 2: float64(5978.970943338558), + 3: float64(9625.445143577745), + 4: float64(2406.058159229391), +} + +var _pR3 = [6]float64{ + 0: -Float64FromFloat64(2.547046017719519e-09), + 1: -Float64FromFloat64(0.07031196163814817), + 2: -Float64FromFloat64(2.409032215495296), + 3: -Float64FromFloat64(21.96597747348831), + 4: -Float64FromFloat64(58.07917047017376), + 5: -Float64FromFloat64(31.44794705948885), +} +var _pS32 = [5]float64{ + 0: float64(35.85603380552097), + 1: float64(361.51398305030386), + 2: float64(1193.6078379211153), + 3: float64(1127.9967985690741), + 4: float64(173.58093081333575), +} + +var _pR2 = [6]float64{ + 0: -Float64FromFloat64(8.875343330325264e-08), + 1: -Float64FromFloat64(0.07030309954836247), + 2: -Float64FromFloat64(1.4507384678095299), + 3: -Float64FromFloat64(7.635696138235278), + 4: -Float64FromFloat64(11.193166886035675), + 5: -Float64FromFloat64(3.2336457935133534), +} +var _pS24 = [5]float64{ + 0: float64(22.22029975320888), + 1: float64(136.2067942182152), + 2: float64(270.4702786580835), + 3: float64(153.87539420832033), + 4: float64(14.65761769482562), +} + +func _pzero(tls *TLS, x float64) (r1 float64) { + var ix Tuint32_t + var p, q uintptr + var r, s, z Tdouble_t + _, _, _, _, _, _ = ix, p, q, r, s, z + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x40200000) { + p = uintptr(unsafe.Pointer(&_pR8)) + q = uintptr(unsafe.Pointer(&_pS8)) + } else { + if ix >= uint32(0x40122E8B) { + p = uintptr(unsafe.Pointer(&_pR5)) + q = uintptr(unsafe.Pointer(&_pS52)) + } else { + if ix >= uint32(0x4006DB6D) { + p = uintptr(unsafe.Pointer(&_pR3)) + q = uintptr(unsafe.Pointer(&_pS32)) + } else { /*ix >= 0x40000000*/ + p = uintptr(unsafe.Pointer(&_pR2)) + q = uintptr(unsafe.Pointer(&_pS24)) + } + } + } + z = float64(1) / float64(x*x) + r = **(**float64)(__ccgo_up(p)) + float64(z*(**(**float64)(__ccgo_up(p + 1*8))+float64(z*(**(**float64)(__ccgo_up(p + 2*8))+float64(z*(**(**float64)(__ccgo_up(p + 3*8))+float64(z*(**(**float64)(__ccgo_up(p + 4*8))+float64(z***(**float64)(__ccgo_up(p + 5*8))))))))))) + s = float64(1) + float64(z*(**(**float64)(__ccgo_up(q))+float64(z*(**(**float64)(__ccgo_up(q + 1*8))+float64(z*(**(**float64)(__ccgo_up(q + 2*8))+float64(z*(**(**float64)(__ccgo_up(q + 3*8))+float64(z***(**float64)(__ccgo_up(q + 4*8))))))))))) + return float64(1) + r/s +} + +// C documentation +// +// /* For x >= 8, the asymptotic expansions of qzero is +// * -1/8 s + 75/1024 s^3 - ..., where s = 1/x. +// * We approximate pzero by +// * qzero(x) = s*(-1.25 + (R/S)) +// * where R = qR0 + qR1*s^2 + qR2*s^4 + ... + qR5*s^10 +// * S = 1 + qS0*s^2 + ... + qS5*s^12 +// * and +// * | qzero(x)/s +1.25-R/S | <= 2 ** ( -61.22) +// */ +var _qR8 = [6]float64{ + 1: float64(0.0732421874999935), + 2: float64(11.76820646822527), + 3: float64(557.6733802564019), + 4: float64(8859.197207564686), + 5: float64(37014.62677768878), +} +var _qS8 = [6]float64{ + 0: float64(163.77602689568982), + 1: float64(8098.344946564498), + 2: float64(142538.29141912048), + 3: float64(803309.2571195144), + 4: float64(840501.5798190605), + 5: -Float64FromFloat64(343899.2935378666), +} + +var _qR5 = [6]float64{ + 0: float64(1.8408596359451553e-11), + 1: float64(0.07324217666126848), + 2: float64(5.8356350896205695), + 3: float64(135.11157728644983), + 4: float64(1027.243765961641), + 5: float64(1989.9778586460538), +} +var _qS5 = [6]float64{ + 0: float64(82.77661022365378), + 1: float64(2077.81416421393), + 2: float64(18847.28877857181), + 3: float64(56751.11228949473), + 4: float64(35976.75384251145), + 5: -Float64FromFloat64(5354.342756019448), +} + +var _qR3 = [6]float64{ + 0: float64(4.377410140897386e-09), + 1: float64(0.07324111800429114), + 2: float64(3.344231375161707), + 3: float64(42.621844074541265), + 4: float64(170.8080913405656), + 5: float64(166.73394869665117), +} +var _qS32 = [6]float64{ + 0: float64(48.75887297245872), + 1: float64(709.689221056606), + 2: float64(3704.1482262011136), + 3: float64(6460.425167525689), + 4: float64(2516.3336892036896), + 5: -Float64FromFloat64(149.2474518361564), +} + +var _qR2 = [6]float64{ + 0: float64(1.5044444488698327e-07), + 1: float64(0.07322342659630793), + 2: float64(1.99819174093816), + 3: float64(14.495602934788574), + 4: float64(31.666231750478154), + 5: float64(16.252707571092927), +} +var _qS22 = [6]float64{ + 0: float64(30.36558483552192), + 1: float64(269.34811860804984), + 2: float64(844.7837575953201), + 3: float64(882.9358451124886), + 4: float64(212.66638851179883), + 5: -Float64FromFloat64(5.3109549388266695), +} + +func _qzero(tls *TLS, x float64) (r1 float64) { + var ix Tuint32_t + var p, q uintptr + var r, s, z Tdouble_t + _, _, _, _, _, _ = ix, p, q, r, s, z + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x40200000) { + p = uintptr(unsafe.Pointer(&_qR8)) + q = uintptr(unsafe.Pointer(&_qS8)) + } else { + if ix >= uint32(0x40122E8B) { + p = uintptr(unsafe.Pointer(&_qR5)) + q = uintptr(unsafe.Pointer(&_qS5)) + } else { + if ix >= uint32(0x4006DB6D) { + p = uintptr(unsafe.Pointer(&_qR3)) + q = uintptr(unsafe.Pointer(&_qS32)) + } else { /*ix >= 0x40000000*/ + p = uintptr(unsafe.Pointer(&_qR2)) + q = uintptr(unsafe.Pointer(&_qS22)) + } + } + } + z = float64(1) / float64(x*x) + r = **(**float64)(__ccgo_up(p)) + float64(z*(**(**float64)(__ccgo_up(p + 1*8))+float64(z*(**(**float64)(__ccgo_up(p + 2*8))+float64(z*(**(**float64)(__ccgo_up(p + 3*8))+float64(z*(**(**float64)(__ccgo_up(p + 4*8))+float64(z***(**float64)(__ccgo_up(p + 5*8))))))))))) + s = float64(1) + float64(z*(**(**float64)(__ccgo_up(q))+float64(z*(**(**float64)(__ccgo_up(q + 1*8))+float64(z*(**(**float64)(__ccgo_up(q + 2*8))+float64(z*(**(**float64)(__ccgo_up(q + 3*8))+float64(z*(**(**float64)(__ccgo_up(q + 4*8))+float64(z***(**float64)(__ccgo_up(q + 5*8))))))))))))) + return (-Float64FromFloat64(0.125) + r/s) / x +} + +var _invsqrtpi1 = float32(0.56418961287) /* 0x3f106ebb */ +var _tpi1 = float32(0.63661974669) /* 0x3f22f983 */ + +func _common1(tls *TLS, ix Tuint32_t, x float32, y0 int32) (r float32) { + var c, cc, s, ss, z float32 + _, _, _, _, _ = c, cc, s, ss, z + /* + * j0(x) = 1/sqrt(pi) * (P(0,x)*cc - Q(0,x)*ss) / sqrt(x) + * y0(x) = 1/sqrt(pi) * (P(0,x)*ss + Q(0,x)*cc) / sqrt(x) + */ + s = Xsinf(tls, x) + c = Xcosf(tls, x) + if y0 != 0 { + c = -c + } + cc = s + c + if ix < uint32(0x7f000000) { + ss = s - c + z = -Xcosf(tls, float32(Float32FromInt32(2)*x)) + if float32(s*c) < Float32FromInt32(0) { + cc = z / ss + } else { + ss = z / cc + } + if ix < uint32(0x58800000) { + if y0 != 0 { + ss = -ss + } + cc = float32(_pzerof(tls, x)*cc) - float32(_qzerof(tls, x)*ss) + } + } + return float32(_invsqrtpi1*cc) / Xsqrtf(tls, x) +} + +// C documentation +// +// /* R0/S0 on [0, 2.00] */ + +var _R021 = float32(0.015625) /* 0x3c800000 */ +var _R031 = float32(-Float64FromFloat64(0.00018997929874)) /* 0xb947352e */ +var _R041 = float32(1.8295404516e-06) /* 0x35f58e88 */ +var _R051 = float32(-Float64FromFloat64(4.6183270541e-09)) /* 0xb19eaf3c */ +var _S011 = float32(0.015619102865) /* 0x3c7fe744 */ +var _S021 = float32(0.00011692678527) /* 0x38f53697 */ +var _S031 = float32(5.1354652442e-07) /* 0x3509daa6 */ +var _S041 = float32(1.1661400734e-09) /* 0x30a045e8 */ + +func Xj0f(tls *TLS, x float32) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var ix Tuint32_t + var r, s, z float32 + _, _, _, _ = ix, r, s, z + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x7f800000) { + return Float32FromInt32(1) / float32(x*x) + } + x = Xfabsf(tls, x) + if ix >= uint32(0x40000000) { /* |x| >= 2 */ + /* large ulp error near zeros */ + return _common1(tls, ix, x, 0) + } + if ix >= uint32(0x3a000000) { /* |x| >= 2**-11 */ + /* up to 4ulp error near 2 */ + z = float32(x * x) + r = float32(z * (_R021 + float32(z*(_R031+float32(z*(_R041+float32(z*_R051))))))) + s = Float32FromInt32(1) + float32(z*(_S011+float32(z*(_S021+float32(z*(_S031+float32(z*_S041))))))) + return float32((Float32FromInt32(1)+x/Float32FromInt32(2))*(Float32FromInt32(1)-x/Float32FromInt32(2))) + float32(z*(r/s)) + } + if ix >= uint32(0x21800000) { /* |x| >= 2**-60 */ + x = float32(float32(Float32FromFloat32(0.25)*x) * x) + } + return Float32FromInt32(1) - x +} + +var _u001 = float32(-Float64FromFloat64(0.073804296553)) /* 0xbd9726b5 */ +var _u011 = float32(0.17666645348) /* 0x3e34e80d */ +var _u021 = float32(-Float64FromFloat64(0.013818567619)) /* 0xbc626746 */ +var _u031 = float32(0.00034745343146) /* 0x39b62a69 */ +var _u041 = float32(-Float64FromFloat64(3.8140706238e-06)) /* 0xb67ff53c */ +var _u051 = float32(1.9559013964e-08) /* 0x32a802ba */ +var _u061 = float32(-Float64FromFloat64(3.982051841e-11)) /* 0xae2f21eb */ +var _v011 = float32(0.012730483897) /* 0x3c509385 */ +var _v021 = float32(7.6006865129e-05) /* 0x389f65e0 */ +var _v031 = float32(2.5915085189e-07) /* 0x348b216c */ +var _v041 = float32(4.4111031494e-10) /* 0x2ff280c2 */ + +func Xy0f(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ix Tuint32_t + var u, v, z float32 + _, _, _, _ = ix, u, v, z + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + if ix&uint32(0x7fffffff) == uint32(0) { + return float32(-Int32FromInt32(1)) / Float32FromFloat32(0) + } + if ix>>int32(31) != 0 { + return Float32FromInt32(0) / Float32FromFloat32(0) + } + if ix >= uint32(0x7f800000) { + return Float32FromInt32(1) / x + } + if ix >= uint32(0x40000000) { /* |x| >= 2.0 */ + /* large ulp error near zeros */ + return _common1(tls, ix, x, int32(1)) + } + if ix >= uint32(0x39000000) { /* x >= 2**-13 */ + /* large ulp error at x ~= 0.89 */ + z = float32(x * x) + u = _u001 + float32(z*(_u011+float32(z*(_u021+float32(z*(_u031+float32(z*(_u041+float32(z*(_u051+float32(z*_u061))))))))))) + v = Float32FromInt32(1) + float32(z*(_v011+float32(z*(_v021+float32(z*(_v031+float32(z*_v041))))))) + return u/v + float32(_tpi1*float32(Xj0f(tls, x)*Xlogf(tls, x))) + } + return _u001 + float32(_tpi1*Xlogf(tls, x)) +} + +// C documentation +// +// /* The asymptotic expansions of pzero is +// * 1 - 9/128 s^2 + 11025/98304 s^4 - ..., where s = 1/x. +// * For x >= 2, We approximate pzero by +// * pzero(x) = 1 + (R/S) +// * where R = pR0 + pR1*s^2 + pR2*s^4 + ... + pR5*s^10 +// * S = 1 + pS0*s^2 + ... + pS4*s^10 +// * and +// * | pzero(x)-1-R/S | <= 2 ** ( -60.26) +// */ +var _pR81 = [6]float32{ + 1: float32(-Float64FromFloat64(0.0703125)), + 2: float32(-Float64FromFloat64(8.0816707611)), + 3: float32(-Float64FromFloat64(257.06311035)), + 4: float32(-Float64FromFloat64(2485.2163086)), + 5: float32(-Float64FromFloat64(5253.0439453)), +} +var _pS81 = [5]float32{ + 0: float32(116.53436279), + 1: float32(3833.744873), + 2: float32(40597.855469), + 3: float32(116752.96875), + 4: float32(47627.726562), +} +var _pR51 = [6]float32{ + 0: float32(-Float64FromFloat64(1.1412546255e-11)), + 1: float32(-Float64FromFloat64(0.070312492549)), + 2: float32(-Float64FromFloat64(4.1596107483)), + 3: float32(-Float64FromFloat64(67.674766541)), + 4: float32(-Float64FromFloat64(331.23129272)), + 5: float32(-Float64FromFloat64(346.43338013)), +} +var _pS53 = [5]float32{ + 0: float32(60.753936768), + 1: float32(1051.2523193), + 2: float32(5978.9707031), + 3: float32(9625.4453125), + 4: float32(2406.0581055), +} + +var _pR31 = [6]float32{ + 0: float32(-Float64FromFloat64(2.5470459075e-09)), + 1: float32(-Float64FromFloat64(0.070311963558)), + 2: float32(-Float64FromFloat64(2.4090321064)), + 3: float32(-Float64FromFloat64(21.965976715)), + 4: float32(-Float64FromFloat64(58.079170227)), + 5: float32(-Float64FromFloat64(31.447946548)), +} +var _pS33 = [5]float32{ + 0: float32(35.856033325), + 1: float32(361.51397705), + 2: float32(1193.6077881), + 3: float32(1127.9968262), + 4: float32(173.58093262), +} + +var _pR21 = [6]float32{ + 0: float32(-Float64FromFloat64(8.8753431271e-08)), + 1: float32(-Float64FromFloat64(0.070303097367)), + 2: float32(-Float64FromFloat64(1.45073843)), + 3: float32(-Float64FromFloat64(7.6356959343)), + 4: float32(-Float64FromFloat64(11.193166733)), + 5: float32(-Float64FromFloat64(3.2336456776)), +} +var _pS25 = [5]float32{ + 0: float32(22.220300674), + 1: float32(136.20678711), + 2: float32(270.47027588), + 3: float32(153.87539673), + 4: float32(14.657617569), +} + +func _pzerof(tls *TLS, x float32) (r1 float32) { + var ix Tuint32_t + var p, q uintptr + var r, s, z Tfloat_t + _, _, _, _, _, _ = ix, p, q, r, s, z + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x41000000) { + p = uintptr(unsafe.Pointer(&_pR81)) + q = uintptr(unsafe.Pointer(&_pS81)) + } else { + if ix >= uint32(0x409173eb) { + p = uintptr(unsafe.Pointer(&_pR51)) + q = uintptr(unsafe.Pointer(&_pS53)) + } else { + if ix >= uint32(0x4036d917) { + p = uintptr(unsafe.Pointer(&_pR31)) + q = uintptr(unsafe.Pointer(&_pS33)) + } else { /*ix >= 0x40000000*/ + p = uintptr(unsafe.Pointer(&_pR21)) + q = uintptr(unsafe.Pointer(&_pS25)) + } + } + } + z = Float32FromFloat32(1) / float32(x*x) + r = **(**float32)(__ccgo_up(p)) + float32(z*(**(**float32)(__ccgo_up(p + 1*4))+float32(z*(**(**float32)(__ccgo_up(p + 2*4))+float32(z*(**(**float32)(__ccgo_up(p + 3*4))+float32(z*(**(**float32)(__ccgo_up(p + 4*4))+float32(z***(**float32)(__ccgo_up(p + 5*4))))))))))) + s = Float32FromFloat32(1) + float32(z*(**(**float32)(__ccgo_up(q))+float32(z*(**(**float32)(__ccgo_up(q + 1*4))+float32(z*(**(**float32)(__ccgo_up(q + 2*4))+float32(z*(**(**float32)(__ccgo_up(q + 3*4))+float32(z***(**float32)(__ccgo_up(q + 4*4))))))))))) + return Float32FromFloat32(1) + r/s +} + +// C documentation +// +// /* For x >= 8, the asymptotic expansions of qzero is +// * -1/8 s + 75/1024 s^3 - ..., where s = 1/x. +// * We approximate pzero by +// * qzero(x) = s*(-1.25 + (R/S)) +// * where R = qR0 + qR1*s^2 + qR2*s^4 + ... + qR5*s^10 +// * S = 1 + qS0*s^2 + ... + qS5*s^12 +// * and +// * | qzero(x)/s +1.25-R/S | <= 2 ** ( -61.22) +// */ +var _qR81 = [6]float32{ + 1: float32(0.0732421875), + 2: float32(11.768206596), + 3: float32(557.67340088), + 4: float32(8859.1972656), + 5: float32(37014.625), +} +var _qS81 = [6]float32{ + 0: float32(163.77603149), + 1: float32(8098.3447266), + 2: float32(142538.29688), + 3: float32(803309.25), + 4: float32(840501.5625), + 5: float32(-Float64FromFloat64(343899.28125)), +} + +var _qR51 = [6]float32{ + 0: float32(1.8408595828e-11), + 1: float32(0.073242180049), + 2: float32(5.8356351852), + 3: float32(135.11157227), + 4: float32(1027.2437744), + 5: float32(1989.9779053), +} +var _qS51 = [6]float32{ + 0: float32(82.776611328), + 1: float32(2077.814209), + 2: float32(18847.289062), + 3: float32(56751.113281), + 4: float32(35976.753906), + 5: float32(-Float64FromFloat64(5354.3427734)), +} + +var _qR31 = [6]float32{ + 0: float32(4.37740999e-09), + 1: float32(0.073241114616), + 2: float32(3.3442313671), + 3: float32(42.621845245), + 4: float32(170.80809021), + 5: float32(166.73394775), +} +var _qS33 = [6]float32{ + 0: float32(48.758872986), + 1: float32(709.68920898), + 2: float32(3704.1481934), + 3: float32(6460.425293), + 4: float32(2516.3337402), + 5: float32(-Float64FromFloat64(149.24745178)), +} + +var _qR21 = [6]float32{ + 0: float32(1.5044444979e-07), + 1: float32(0.073223426938), + 2: float32(1.9981917143), + 3: float32(14.495602608), + 4: float32(31.666231155), + 5: float32(16.252708435), +} +var _qS23 = [6]float32{ + 0: float32(30.365585327), + 1: float32(269.34811401), + 2: float32(844.78375244), + 3: float32(882.93585205), + 4: float32(212.66638184), + 5: float32(-Float64FromFloat64(5.3109550476)), +} + +func _qzerof(tls *TLS, x float32) (r1 float32) { + var ix Tuint32_t + var p, q uintptr + var r, s, z Tfloat_t + _, _, _, _, _, _ = ix, p, q, r, s, z + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x41000000) { + p = uintptr(unsafe.Pointer(&_qR81)) + q = uintptr(unsafe.Pointer(&_qS81)) + } else { + if ix >= uint32(0x409173eb) { + p = uintptr(unsafe.Pointer(&_qR51)) + q = uintptr(unsafe.Pointer(&_qS51)) + } else { + if ix >= uint32(0x4036d917) { + p = uintptr(unsafe.Pointer(&_qR31)) + q = uintptr(unsafe.Pointer(&_qS33)) + } else { /*ix >= 0x40000000*/ + p = uintptr(unsafe.Pointer(&_qR21)) + q = uintptr(unsafe.Pointer(&_qS23)) + } + } + } + z = Float32FromFloat32(1) / float32(x*x) + r = **(**float32)(__ccgo_up(p)) + float32(z*(**(**float32)(__ccgo_up(p + 1*4))+float32(z*(**(**float32)(__ccgo_up(p + 2*4))+float32(z*(**(**float32)(__ccgo_up(p + 3*4))+float32(z*(**(**float32)(__ccgo_up(p + 4*4))+float32(z***(**float32)(__ccgo_up(p + 5*4))))))))))) + s = Float32FromFloat32(1) + float32(z*(**(**float32)(__ccgo_up(q))+float32(z*(**(**float32)(__ccgo_up(q + 1*4))+float32(z*(**(**float32)(__ccgo_up(q + 2*4))+float32(z*(**(**float32)(__ccgo_up(q + 3*4))+float32(z*(**(**float32)(__ccgo_up(q + 4*4))+float32(z***(**float32)(__ccgo_up(q + 5*4))))))))))))) + return (-Float32FromFloat32(0.125) + r/s) / x +} + +var _invsqrtpi2 = float64(0.5641895835477563) /* 0x3FE20DD7, 0x50429B6D */ +var _tpi2 = float64(0.6366197723675814) /* 0x3FE45F30, 0x6DC9C883 */ + +func _common2(tls *TLS, ix Tuint32_t, x float64, y1 int32, sign int32) (r float64) { + var c, cc, s, ss, z float64 + _, _, _, _, _ = c, cc, s, ss, z + /* + * j1(x) = sqrt(2/(pi*x))*(p1(x)*cos(x-3pi/4)-q1(x)*sin(x-3pi/4)) + * y1(x) = sqrt(2/(pi*x))*(p1(x)*sin(x-3pi/4)+q1(x)*cos(x-3pi/4)) + * + * sin(x-3pi/4) = -(sin(x) + cos(x))/sqrt(2) + * cos(x-3pi/4) = (sin(x) - cos(x))/sqrt(2) + * sin(x) +- cos(x) = -cos(2x)/(sin(x) -+ cos(x)) + */ + s = Xsin(tls, x) + if y1 != 0 { + s = -s + } + c = Xcos(tls, x) + cc = s - c + if ix < uint32(0x7fe00000) { + /* avoid overflow in 2*x */ + ss = -s - c + z = Xcos(tls, float64(Float64FromInt32(2)*x)) + if float64(s*c) > Float64FromInt32(0) { + cc = z / ss + } else { + ss = z / cc + } + if ix < uint32(0x48000000) { + if y1 != 0 { + ss = -ss + } + cc = float64(_pone(tls, x)*cc) - float64(_qone(tls, x)*ss) + } + } + if sign != 0 { + cc = -cc + } + return float64(_invsqrtpi2*cc) / Xsqrt(tls, x) +} + +// C documentation +// +// /* R0/S0 on [0,2] */ + +var _r00 = -Float64FromFloat64(0.0625) /* 0xBFB00000, 0x00000000 */ +var _r01 = float64(0.001407056669551897) /* 0x3F570D9F, 0x98472C61 */ +var _r02 = -Float64FromFloat64(1.599556310840356e-05) /* 0xBEF0C5C6, 0xBA169668 */ +var _r03 = float64(4.9672799960958445e-08) /* 0x3E6AAAFA, 0x46CA0BD9 */ +var _s01 = float64(0.019153759953836346) /* 0x3F939D0B, 0x12637E53 */ +var _s02 = float64(0.00018594678558863092) /* 0x3F285F56, 0xB9CDF664 */ +var _s03 = float64(1.1771846404262368e-06) /* 0x3EB3BFF8, 0x333F8498 */ +var _s04 = float64(5.0463625707621704e-09) /* 0x3E35AC88, 0xC97DFF2C */ +var _s05 = float64(1.2354227442613791e-11) /* 0x3DAB2ACF, 0xCFB97ED8 */ + +func Xj1(tls *TLS, x float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var ix Tuint32_t + var r, s, z float64 + var sign int32 + _, _, _, _, _ = ix, r, s, sign, z + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x7ff00000) { + return Float64FromInt32(1) / float64(x*x) + } + if ix >= uint32(0x40000000) { /* |x| >= 2 */ + return _common2(tls, ix, Xfabs(tls, x), 0, sign) + } + if ix >= uint32(0x38000000) { /* |x| >= 2**-127 */ + z = float64(x * x) + r = float64(z * (_r00 + float64(z*(_r01+float64(z*(_r02+float64(z*_r03))))))) + s = Float64FromInt32(1) + float64(z*(_s01+float64(z*(_s02+float64(z*(_s03+float64(z*(_s04+float64(z*_s05))))))))) + z = r / s + } else { + /* avoid underflow, raise inexact if x!=0 */ + z = x + } + return float64((float64(0.5) + z) * x) +} + +var _U0 = [5]float64{ + 0: -Float64FromFloat64(0.19605709064623894), + 1: float64(0.05044387166398113), + 2: -Float64FromFloat64(0.0019125689587576355), + 3: float64(2.352526005616105e-05), + 4: -Float64FromFloat64(9.190991580398789e-08), +} +var _V0 = [5]float64{ + 0: float64(0.01991673182366499), + 1: float64(0.00020255258102513517), + 2: float64(1.3560880109751623e-06), + 3: float64(6.227414523646215e-09), + 4: float64(1.6655924620799208e-11), +} + +func Xy1(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __u Tuint64_t + var ix, lx Tuint32_t + var u, v, z float64 + _, _, _, _, _, _ = __u, ix, lx, u, v, z + __u = *(*Tuint64_t)(unsafe.Pointer(&x)) + ix = uint32(__u >> int32(32)) + lx = uint32(__u) + /* y1(nan)=nan, y1(<0)=nan, y1(0)=-inf, y1(inf)=0 */ + if ix<>int32(31) != 0 { + return Float64FromInt32(0) / Float64FromFloat64(0) + } + if ix >= uint32(0x7ff00000) { + return Float64FromInt32(1) / x + } + if ix >= uint32(0x40000000) { /* x >= 2 */ + return _common2(tls, ix, x, int32(1), 0) + } + if ix < uint32(0x3c900000) { /* x < 2**-54 */ + return -_tpi2 / x + } + z = float64(x * x) + u = _U0[0] + float64(z*(_U0[int32(1)]+float64(z*(_U0[int32(2)]+float64(z*(_U0[int32(3)]+float64(z*_U0[int32(4)]))))))) + v = Float64FromInt32(1) + float64(z*(_V0[0]+float64(z*(_V0[int32(1)]+float64(z*(_V0[int32(2)]+float64(z*(_V0[int32(3)]+float64(z*_V0[int32(4)]))))))))) + return float64(x*(u/v)) + float64(_tpi2*(float64(Xj1(tls, x)*Xlog(tls, x))-Float64FromInt32(1)/x)) +} + +/* For x >= 8, the asymptotic expansions of pone is + * 1 + 15/128 s^2 - 4725/2^15 s^4 - ..., where s = 1/x. + * We approximate pone by + * pone(x) = 1 + (R/S) + * where R = pr0 + pr1*s^2 + pr2*s^4 + ... + pr5*s^10 + * S = 1 + ps0*s^2 + ... + ps4*s^10 + * and + * | pone(x)-1-R/S | <= 2 ** ( -60.06) + */ + +var _pr8 = [6]float64{ + 1: float64(0.11718749999998865), + 2: float64(13.239480659307358), + 3: float64(412.05185430737856), + 4: float64(3874.7453891396053), + 5: float64(7914.479540318917), +} +var _ps8 = [5]float64{ + 0: float64(114.20737037567841), + 1: float64(3650.9308342085346), + 2: float64(36956.206026903346), + 3: float64(97602.79359349508), + 4: float64(30804.27206278888), +} + +var _pr5 = [6]float64{ + 0: float64(1.3199051955624352e-11), + 1: float64(0.1171874931906141), + 2: float64(6.802751278684329), + 3: float64(108.30818299018911), + 4: float64(517.6361395331998), + 5: float64(528.7152013633375), +} +var _ps5 = [5]float64{ + 0: float64(59.28059872211313), + 1: float64(991.4014187336144), + 2: float64(5353.26695291488), + 3: float64(7844.690317495512), + 4: float64(1504.0468881036106), +} + +var _pr3 = [6]float64{ + 0: float64(3.025039161373736e-09), + 1: float64(0.11718686556725359), + 2: float64(3.9329775003331564), + 3: float64(35.11940355916369), + 4: float64(91.05501107507813), + 5: float64(48.55906851973649), +} +var _ps3 = [5]float64{ + 0: float64(34.79130950012515), + 1: float64(336.76245874782575), + 2: float64(1046.8713997577513), + 3: float64(890.8113463982564), + 4: float64(103.78793243963928), +} + +var _pr2 = [6]float64{ + 0: float64(1.0771083010687374e-07), + 1: float64(0.11717621946268335), + 2: float64(2.368514966676088), + 3: float64(12.242610914826123), + 4: float64(17.693971127168773), + 5: float64(5.073523125888185), +} +var _ps2 = [5]float64{ + 0: float64(21.43648593638214), + 1: float64(125.29022716840275), + 2: float64(232.2764690571628), + 3: float64(117.6793732871471), + 4: float64(8.364638933716183), +} + +func _pone(tls *TLS, x float64) (r1 float64) { + var ix Tuint32_t + var p, q uintptr + var r, s, z Tdouble_t + _, _, _, _, _, _ = ix, p, q, r, s, z + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x40200000) { + p = uintptr(unsafe.Pointer(&_pr8)) + q = uintptr(unsafe.Pointer(&_ps8)) + } else { + if ix >= uint32(0x40122E8B) { + p = uintptr(unsafe.Pointer(&_pr5)) + q = uintptr(unsafe.Pointer(&_ps5)) + } else { + if ix >= uint32(0x4006DB6D) { + p = uintptr(unsafe.Pointer(&_pr3)) + q = uintptr(unsafe.Pointer(&_ps3)) + } else { /*ix >= 0x40000000*/ + p = uintptr(unsafe.Pointer(&_pr2)) + q = uintptr(unsafe.Pointer(&_ps2)) + } + } + } + z = float64(1) / float64(x*x) + r = **(**float64)(__ccgo_up(p)) + float64(z*(**(**float64)(__ccgo_up(p + 1*8))+float64(z*(**(**float64)(__ccgo_up(p + 2*8))+float64(z*(**(**float64)(__ccgo_up(p + 3*8))+float64(z*(**(**float64)(__ccgo_up(p + 4*8))+float64(z***(**float64)(__ccgo_up(p + 5*8))))))))))) + s = float64(1) + float64(z*(**(**float64)(__ccgo_up(q))+float64(z*(**(**float64)(__ccgo_up(q + 1*8))+float64(z*(**(**float64)(__ccgo_up(q + 2*8))+float64(z*(**(**float64)(__ccgo_up(q + 3*8))+float64(z***(**float64)(__ccgo_up(q + 4*8))))))))))) + return float64(1) + r/s +} + +/* For x >= 8, the asymptotic expansions of qone is + * 3/8 s - 105/1024 s^3 - ..., where s = 1/x. + * We approximate pone by + * qone(x) = s*(0.375 + (R/S)) + * where R = qr1*s^2 + qr2*s^4 + ... + qr5*s^10 + * S = 1 + qs1*s^2 + ... + qs6*s^12 + * and + * | qone(x)/s -0.375-R/S | <= 2 ** ( -61.13) + */ + +var _qr8 = [6]float64{ + 1: -Float64FromFloat64(0.10253906249999271), + 2: -Float64FromFloat64(16.271753454459), + 3: -Float64FromFloat64(759.6017225139501), + 4: -Float64FromFloat64(11849.806670242959), + 5: -Float64FromFloat64(48438.512428575035), +} +var _qs8 = [6]float64{ + 0: float64(161.3953697007229), + 1: float64(7825.385999233485), + 2: float64(133875.33628724958), + 3: float64(719657.7236832409), + 4: float64(666601.2326177764), + 5: -Float64FromFloat64(294490.26430383464), +} + +var _qr5 = [6]float64{ + 0: -Float64FromFloat64(2.089799311417641e-11), + 1: -Float64FromFloat64(0.10253905024137543), + 2: -Float64FromFloat64(8.05644828123936), + 3: -Float64FromFloat64(183.66960747488838), + 4: -Float64FromFloat64(1373.1937606550816), + 5: -Float64FromFloat64(2612.4444045321566), +} +var _qs5 = [6]float64{ + 0: float64(81.27655013843358), + 1: float64(1991.7987346048596), + 2: float64(17468.48519249089), + 3: float64(49851.42709103523), + 4: float64(27948.075163891812), + 5: -Float64FromFloat64(4719.183547951285), +} + +var _qr3 = [6]float64{ + 0: -Float64FromFloat64(5.078312264617666e-09), + 1: -Float64FromFloat64(0.10253782982083709), + 2: -Float64FromFloat64(4.610115811394734), + 3: -Float64FromFloat64(57.847221656278364), + 4: -Float64FromFloat64(228.2445407376317), + 5: -Float64FromFloat64(219.21012847890933), +} +var _qs3 = [6]float64{ + 0: float64(47.66515503237295), + 1: float64(673.8651126766997), + 2: float64(3380.1528667952634), + 3: float64(5547.729097207228), + 4: float64(1903.119193388108), + 5: -Float64FromFloat64(135.20119144430734), +} + +var _qr2 = [6]float64{ + 0: -Float64FromFloat64(1.7838172751095887e-07), + 1: -Float64FromFloat64(0.10251704260798555), + 2: -Float64FromFloat64(2.7522056827818746), + 3: -Float64FromFloat64(19.663616264370372), + 4: -Float64FromFloat64(42.32531333728305), + 5: -Float64FromFloat64(21.371921170370406), +} +var _qs2 = [6]float64{ + 0: float64(29.533362906052385), + 1: float64(252.98154998219053), + 2: float64(757.5028348686454), + 3: float64(739.3932053204672), + 4: float64(155.94900333666612), + 5: -Float64FromFloat64(4.959498988226282), +} + +func _qone(tls *TLS, x float64) (r1 float64) { + var ix Tuint32_t + var p, q uintptr + var r, s, z Tdouble_t + _, _, _, _, _, _ = ix, p, q, r, s, z + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x40200000) { + p = uintptr(unsafe.Pointer(&_qr8)) + q = uintptr(unsafe.Pointer(&_qs8)) + } else { + if ix >= uint32(0x40122E8B) { + p = uintptr(unsafe.Pointer(&_qr5)) + q = uintptr(unsafe.Pointer(&_qs5)) + } else { + if ix >= uint32(0x4006DB6D) { + p = uintptr(unsafe.Pointer(&_qr3)) + q = uintptr(unsafe.Pointer(&_qs3)) + } else { /*ix >= 0x40000000*/ + p = uintptr(unsafe.Pointer(&_qr2)) + q = uintptr(unsafe.Pointer(&_qs2)) + } + } + } + z = float64(1) / float64(x*x) + r = **(**float64)(__ccgo_up(p)) + float64(z*(**(**float64)(__ccgo_up(p + 1*8))+float64(z*(**(**float64)(__ccgo_up(p + 2*8))+float64(z*(**(**float64)(__ccgo_up(p + 3*8))+float64(z*(**(**float64)(__ccgo_up(p + 4*8))+float64(z***(**float64)(__ccgo_up(p + 5*8))))))))))) + s = float64(1) + float64(z*(**(**float64)(__ccgo_up(q))+float64(z*(**(**float64)(__ccgo_up(q + 1*8))+float64(z*(**(**float64)(__ccgo_up(q + 2*8))+float64(z*(**(**float64)(__ccgo_up(q + 3*8))+float64(z*(**(**float64)(__ccgo_up(q + 4*8))+float64(z***(**float64)(__ccgo_up(q + 5*8))))))))))))) + return (float64(0.375) + r/s) / x +} + +var _invsqrtpi3 = float32(0.56418961287) /* 0x3f106ebb */ +var _tpi3 = float32(0.63661974669) /* 0x3f22f983 */ + +func _common3(tls *TLS, ix Tuint32_t, x float32, y1 int32, sign int32) (r float32) { + var c, cc, s, ss, z float64 + _, _, _, _, _ = c, cc, s, ss, z + s = float64(Xsinf(tls, x)) + if y1 != 0 { + s = -s + } + c = float64(Xcosf(tls, x)) + cc = s - c + if ix < uint32(0x7f000000) { + ss = -s - c + z = float64(Xcosf(tls, float32(Float32FromInt32(2)*x))) + if float64(s*c) > Float64FromInt32(0) { + cc = z / ss + } else { + ss = z / cc + } + if ix < uint32(0x58800000) { + if y1 != 0 { + ss = -ss + } + cc = float64(float64(_ponef(tls, x))*cc) - float64(float64(_qonef(tls, x))*ss) + } + } + if sign != 0 { + cc = -cc + } + return float32(float64(float64(_invsqrtpi3)*cc) / float64(Xsqrtf(tls, x))) +} + +// C documentation +// +// /* R0/S0 on [0,2] */ + +var _r001 = float32(-Float64FromFloat64(0.0625)) /* 0xbd800000 */ +var _r011 = float32(0.0014070566976) /* 0x3ab86cfd */ +var _r021 = float32(-Float64FromFloat64(1.5995563444e-05)) /* 0xb7862e36 */ +var _r031 = float32(4.9672799207e-08) /* 0x335557d2 */ +var _s011 = float32(0.019153760746) /* 0x3c9ce859 */ +var _s021 = float32(0.00018594678841) /* 0x3942fab6 */ +var _s031 = float32(1.1771846857e-06) /* 0x359dffc2 */ +var _s041 = float32(5.046362439e-09) /* 0x31ad6446 */ +var _s051 = float32(1.2354227016e-11) /* 0x2d59567e */ + +func Xj1f(tls *TLS, x float32) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var ix Tuint32_t + var r, s, z float32 + var sign int32 + _, _, _, _, _ = ix, r, s, sign, z + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x7f800000) { + return Float32FromInt32(1) / float32(x*x) + } + if ix >= uint32(0x40000000) { /* |x| >= 2 */ + return _common3(tls, ix, Xfabsf(tls, x), 0, sign) + } + if ix >= uint32(0x39000000) { /* |x| >= 2**-13 */ + z = float32(x * x) + r = float32(z * (_r001 + float32(z*(_r011+float32(z*(_r021+float32(z*_r031))))))) + s = Float32FromInt32(1) + float32(z*(_s011+float32(z*(_s021+float32(z*(_s031+float32(z*(_s041+float32(z*_s051))))))))) + z = Float32FromFloat32(0.5) + r/s + } else { + z = Float32FromFloat32(0.5) + } + return float32(z * x) +} + +var _U01 = [5]float32{ + 0: float32(-Float64FromFloat64(0.19605709612)), + 1: float32(0.050443872809), + 2: float32(-Float64FromFloat64(0.0019125689287)), + 3: float32(2.3525259166e-05), + 4: float32(-Float64FromFloat64(9.1909917899e-08)), +} +var _V01 = [5]float32{ + 0: float32(0.019916731864), + 1: float32(0.0002025525755), + 2: float32(1.3560879779e-06), + 3: float32(6.227414584e-09), + 4: float32(1.6655924903e-11), +} + +func Xy1f(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ix Tuint32_t + var u, v, z float32 + _, _, _, _ = ix, u, v, z + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + if ix&uint32(0x7fffffff) == uint32(0) { + return float32(-Int32FromInt32(1)) / Float32FromFloat32(0) + } + if ix>>int32(31) != 0 { + return Float32FromInt32(0) / Float32FromFloat32(0) + } + if ix >= uint32(0x7f800000) { + return Float32FromInt32(1) / x + } + if ix >= uint32(0x40000000) { /* |x| >= 2.0 */ + return _common3(tls, ix, x, int32(1), 0) + } + if ix < uint32(0x33000000) { /* x < 2**-25 */ + return -_tpi3 / x + } + z = float32(x * x) + u = _U01[0] + float32(z*(_U01[int32(1)]+float32(z*(_U01[int32(2)]+float32(z*(_U01[int32(3)]+float32(z*_U01[int32(4)]))))))) + v = Float32FromFloat32(1) + float32(z*(_V01[0]+float32(z*(_V01[int32(1)]+float32(z*(_V01[int32(2)]+float32(z*(_V01[int32(3)]+float32(z*_V01[int32(4)]))))))))) + return float32(x*(u/v)) + float32(_tpi3*(float32(Xj1f(tls, x)*Xlogf(tls, x))-Float32FromFloat32(1)/x)) +} + +/* For x >= 8, the asymptotic expansions of pone is + * 1 + 15/128 s^2 - 4725/2^15 s^4 - ..., where s = 1/x. + * We approximate pone by + * pone(x) = 1 + (R/S) + * where R = pr0 + pr1*s^2 + pr2*s^4 + ... + pr5*s^10 + * S = 1 + ps0*s^2 + ... + ps4*s^10 + * and + * | pone(x)-1-R/S | <= 2 ** ( -60.06) + */ + +var _pr81 = [6]float32{ + 1: float32(0.1171875), + 2: float32(13.239480972), + 3: float32(412.05184937), + 4: float32(3874.7453613), + 5: float32(7914.4794922), +} +var _ps81 = [5]float32{ + 0: float32(114.20736694), + 1: float32(3650.9309082), + 2: float32(36956.207031), + 3: float32(97602.796875), + 4: float32(30804.271484), +} + +var _pr51 = [6]float32{ + 0: float32(1.3199052094e-11), + 1: float32(0.11718749255), + 2: float32(6.8027510643), + 3: float32(108.30818176), + 4: float32(517.63616943), + 5: float32(528.71520996), +} +var _ps51 = [5]float32{ + 0: float32(59.280597687), + 1: float32(991.40142822), + 2: float32(5353.2670898), + 3: float32(7844.6904297), + 4: float32(1504.046875), +} + +var _pr31 = [6]float32{ + 0: float32(3.0250391081e-09), + 1: float32(0.1171868667), + 2: float32(3.932977438), + 3: float32(35.119403839), + 4: float32(91.055007935), + 5: float32(48.559066772), +} +var _ps31 = [5]float32{ + 0: float32(34.791309357), + 1: float32(336.76245117), + 2: float32(1046.87146), + 3: float32(890.81134033), + 4: float32(103.78793335), +} + +var _pr21 = [6]float32{ + 0: float32(1.0771083225e-07), + 1: float32(0.11717621982), + 2: float32(2.3685150146), + 3: float32(12.242610931), + 4: float32(17.693971634), + 5: float32(5.0735230446), +} +var _ps21 = [5]float32{ + 0: float32(21.436485291), + 1: float32(125.2902298), + 2: float32(232.276474), + 3: float32(117.67937469), + 4: float32(8.3646392822), +} + +func _ponef(tls *TLS, x float32) (r1 float32) { + var ix Tuint32_t + var p, q uintptr + var r, s, z Tfloat_t + _, _, _, _, _, _ = ix, p, q, r, s, z + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x41000000) { + p = uintptr(unsafe.Pointer(&_pr81)) + q = uintptr(unsafe.Pointer(&_ps81)) + } else { + if ix >= uint32(0x409173eb) { + p = uintptr(unsafe.Pointer(&_pr51)) + q = uintptr(unsafe.Pointer(&_ps51)) + } else { + if ix >= uint32(0x4036d917) { + p = uintptr(unsafe.Pointer(&_pr31)) + q = uintptr(unsafe.Pointer(&_ps31)) + } else { /*ix >= 0x40000000*/ + p = uintptr(unsafe.Pointer(&_pr21)) + q = uintptr(unsafe.Pointer(&_ps21)) + } + } + } + z = Float32FromFloat32(1) / float32(x*x) + r = **(**float32)(__ccgo_up(p)) + float32(z*(**(**float32)(__ccgo_up(p + 1*4))+float32(z*(**(**float32)(__ccgo_up(p + 2*4))+float32(z*(**(**float32)(__ccgo_up(p + 3*4))+float32(z*(**(**float32)(__ccgo_up(p + 4*4))+float32(z***(**float32)(__ccgo_up(p + 5*4))))))))))) + s = Float32FromFloat32(1) + float32(z*(**(**float32)(__ccgo_up(q))+float32(z*(**(**float32)(__ccgo_up(q + 1*4))+float32(z*(**(**float32)(__ccgo_up(q + 2*4))+float32(z*(**(**float32)(__ccgo_up(q + 3*4))+float32(z***(**float32)(__ccgo_up(q + 4*4))))))))))) + return Float32FromFloat32(1) + r/s +} + +/* For x >= 8, the asymptotic expansions of qone is + * 3/8 s - 105/1024 s^3 - ..., where s = 1/x. + * We approximate pone by + * qone(x) = s*(0.375 + (R/S)) + * where R = qr1*s^2 + qr2*s^4 + ... + qr5*s^10 + * S = 1 + qs1*s^2 + ... + qs6*s^12 + * and + * | qone(x)/s -0.375-R/S | <= 2 ** ( -61.13) + */ + +var _qr81 = [6]float32{ + 1: float32(-Float64FromFloat64(0.1025390625)), + 2: float32(-Float64FromFloat64(16.271753311)), + 3: float32(-Float64FromFloat64(759.60174561)), + 4: float32(-Float64FromFloat64(11849.806641)), + 5: float32(-Float64FromFloat64(48438.511719)), +} +var _qs81 = [6]float32{ + 0: float32(161.39537048), + 1: float32(7825.3862305), + 2: float32(133875.34375), + 3: float32(719657.75), + 4: float32(666601.25), + 5: float32(-Float64FromFloat64(294490.25)), +} + +var _qr51 = [6]float32{ + 0: float32(-Float64FromFloat64(2.0897993405e-11)), + 1: float32(-Float64FromFloat64(0.1025390476)), + 2: float32(-Float64FromFloat64(8.0564479828)), + 3: float32(-Float64FromFloat64(183.66960144)), + 4: float32(-Float64FromFloat64(1373.1937256)), + 5: float32(-Float64FromFloat64(2612.4443359)), +} +var _qs51 = [6]float32{ + 0: float32(81.276550293), + 1: float32(1991.7987061), + 2: float32(17468.484375), + 3: float32(49851.425781), + 4: float32(27948.074219), + 5: float32(-Float64FromFloat64(4719.1835938)), +} + +var _qr31 = [6]float32{ + 0: float32(-Float64FromFloat64(5.0783124372e-09)), + 1: float32(-Float64FromFloat64(0.10253783315)), + 2: float32(-Float64FromFloat64(4.6101160049)), + 3: float32(-Float64FromFloat64(57.847221375)), + 4: float32(-Float64FromFloat64(228.24453735)), + 5: float32(-Float64FromFloat64(219.21012878)), +} +var _qs31 = [6]float32{ + 0: float32(47.665153503), + 1: float32(673.8651123), + 2: float32(3380.152832), + 3: float32(5547.7290039), + 4: float32(1903.1191406), + 5: float32(-Float64FromFloat64(135.20118713)), +} + +var _qr21 = [6]float32{ + 0: float32(-Float64FromFloat64(1.7838172539e-07)), + 1: float32(-Float64FromFloat64(0.10251704603)), + 2: float32(-Float64FromFloat64(2.7522056103)), + 3: float32(-Float64FromFloat64(19.66361618)), + 4: float32(-Float64FromFloat64(42.325313568)), + 5: float32(-Float64FromFloat64(21.371921539)), +} +var _qs21 = [6]float32{ + 0: float32(29.533363342), + 1: float32(252.98155212), + 2: float32(757.50280762), + 3: float32(739.39318848), + 4: float32(155.94900513), + 5: float32(-Float64FromFloat64(4.9594988823)), +} + +func _qonef(tls *TLS, x float32) (r1 float32) { + var ix Tuint32_t + var p, q uintptr + var r, s, z Tfloat_t + _, _, _, _, _, _ = ix, p, q, r, s, z + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x41000000) { + p = uintptr(unsafe.Pointer(&_qr81)) + q = uintptr(unsafe.Pointer(&_qs81)) + } else { + if ix >= uint32(0x409173eb) { + p = uintptr(unsafe.Pointer(&_qr51)) + q = uintptr(unsafe.Pointer(&_qs51)) + } else { + if ix >= uint32(0x4036d917) { + p = uintptr(unsafe.Pointer(&_qr31)) + q = uintptr(unsafe.Pointer(&_qs31)) + } else { /*ix >= 0x40000000*/ + p = uintptr(unsafe.Pointer(&_qr21)) + q = uintptr(unsafe.Pointer(&_qs21)) + } + } + } + z = Float32FromFloat32(1) / float32(x*x) + r = **(**float32)(__ccgo_up(p)) + float32(z*(**(**float32)(__ccgo_up(p + 1*4))+float32(z*(**(**float32)(__ccgo_up(p + 2*4))+float32(z*(**(**float32)(__ccgo_up(p + 3*4))+float32(z*(**(**float32)(__ccgo_up(p + 4*4))+float32(z***(**float32)(__ccgo_up(p + 5*4))))))))))) + s = Float32FromFloat32(1) + float32(z*(**(**float32)(__ccgo_up(q))+float32(z*(**(**float32)(__ccgo_up(q + 1*4))+float32(z*(**(**float32)(__ccgo_up(q + 2*4))+float32(z*(**(**float32)(__ccgo_up(q + 3*4))+float32(z*(**(**float32)(__ccgo_up(q + 4*4))+float32(z***(**float32)(__ccgo_up(q + 5*4))))))))))))) + return (Float32FromFloat32(0.375) + r/s) / x +} + +var _invsqrtpi4 = float64(0.5641895835477563) /* 0x3FE20DD7, 0x50429B6D */ + +func Xjn(tls *TLS, n int32, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v n=%v x=%v, (%v:)", tls, n, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __u Tuint64_t + var a, b, h, nf, q0, q1, t, temp, tmp, w, z, v6 float64 + var i, k, nm1, sign int32 + var ix, lx Tuint32_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = __u, a, b, h, i, ix, k, lx, nf, nm1, q0, q1, sign, t, temp, tmp, w, z, v6 + __u = *(*Tuint64_t)(unsafe.Pointer(&x)) + ix = uint32(__u >> int32(32)) + lx = uint32(__u) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix|(lx|-lx)>>int32(31) > uint32(0x7ff00000) { /* nan */ + return x + } + /* J(-n,x) = (-1)^n * J(n, x), J(n, -x) = (-1)^n * J(n, x) + * Thus, J(-n,x) = J(n,-x) + */ + /* nm1 = |n|-1 is used instead of |n| to handle n==INT_MIN */ + if n == 0 { + return Xj0(tls, x) + } + if n < 0 { + nm1 = -(n + int32(1)) + x = -x + sign = sign ^ int32(1) + } else { + nm1 = n - int32(1) + } + if nm1 == 0 { + return Xj1(tls, x) + } + sign = sign & n /* even n: 0, odd n: signbit(x) */ + x = Xfabs(tls, x) + if ix|lx == uint32(0) || ix == uint32(0x7ff00000) { /* if x is 0 or inf */ + b = float64(0) + } else { + if float64(nm1) < x { + /* Safe to use J(n+1,x)=2n/x *J(n,x)-J(n-1,x) */ + if ix >= uint32(0x52d00000) { /* x > 2**302 */ + /* (x >> n**2) + * Jn(x) = cos(x-(2n+1)*pi/4)*sqrt(2/x*pi) + * Yn(x) = sin(x-(2n+1)*pi/4)*sqrt(2/x*pi) + * Let s=sin(x), c=cos(x), + * xn=x-(2n+1)*pi/4, sqt2 = sqrt(2),then + * + * n sin(xn)*sqt2 cos(xn)*sqt2 + * ---------------------------------- + * 0 s-c c+s + * 1 -s-c -c+s + * 2 -s+c -c-s + * 3 s+c c-s + */ + switch nm1 & Int32FromInt32(3) { + case 0: + temp = -Xcos(tls, x) + Xsin(tls, x) + case int32(1): + temp = -Xcos(tls, x) - Xsin(tls, x) + case int32(2): + temp = Xcos(tls, x) - Xsin(tls, x) + default: + fallthrough + case int32(3): + temp = Xcos(tls, x) + Xsin(tls, x) + break + } + b = float64(_invsqrtpi4*temp) / Xsqrt(tls, x) + } else { + a = Xj0(tls, x) + b = Xj1(tls, x) + i = 0 + for { + if !(i < nm1) { + break + } + i = i + 1 + temp = b + b = float64(b*(float64(float64(2)*float64(i))/x)) - a /* avoid underflow */ + a = temp + goto _1 + _1: + } + } + } else { + if ix < uint32(0x3e100000) { /* x < 2**-29 */ + /* x is tiny, return the first Taylor expansion of J(n,x) + * J(n,x) = 1/n!*(x/2)^n - ... + */ + if nm1 > int32(32) { /* underflow */ + b = float64(0) + } else { + temp = float64(x * float64(0.5)) + b = temp + a = float64(1) + i = int32(2) + for { + if !(i <= nm1+int32(1)) { + break + } + a = a * float64(i) /* a = n! */ + b = b * temp /* b = (x/2)^n */ + goto _2 + _2: + ; + i = i + 1 + } + b = b / a + } + } else { + nf = float64(nm1) + float64(1) + w = float64(Float64FromInt32(2)*nf) / x + h = Float64FromInt32(2) / x + z = w + h + q0 = w + q1 = float64(w*z) - float64(1) + k = int32(1) + for q1 < float64(1e+09) { + k = k + int32(1) + z = z + h + tmp = float64(z*q1) - q0 + q0 = q1 + q1 = tmp + } + t = float64(0) + i = k + for { + if !(i >= 0) { + break + } + t = Float64FromInt32(1) / (float64(Float64FromInt32(2)*(float64(i)+nf))/x - t) + goto _3 + _3: + ; + i = i - 1 + } + a = t + b = float64(1) + /* estimate log((2/x)^n*n!) = n*log(2/x)+n*ln(n) + * Hence, if n*(log(2n/x)) > ... + * single 8.8722839355e+01 + * double 7.09782712893383973096e+02 + * long double 1.1356523406294143949491931077970765006170e+04 + * then recurrent value may overflow and the result is + * likely underflow to zero + */ + tmp = float64(nf * Xlog(tls, Xfabs(tls, w))) + if tmp < float64(709.782712893384) { + i = nm1 + for { + if !(i > 0) { + break + } + temp = b + b = float64(b*float64(float64(2)*float64(i)))/x - a + a = temp + goto _4 + _4: + ; + i = i - 1 + } + } else { + i = nm1 + for { + if !(i > 0) { + break + } + temp = b + b = float64(b*float64(float64(2)*float64(i)))/x - a + a = temp + /* scale b to avoid spurious overflow */ + if b > float64(3.273390607896142e+150) { + a = a / b + t = t / b + b = float64(1) + } + goto _5 + _5: + ; + i = i - 1 + } + } + z = Xj0(tls, x) + w = Xj1(tls, x) + if Xfabs(tls, z) >= Xfabs(tls, w) { + b = float64(t*z) / b + } else { + b = float64(t*w) / a + } + } + } + } + if sign != 0 { + v6 = -b + } else { + v6 = b + } + return v6 +} + +func Xyn(tls *TLS, n int32, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v n=%v x=%v, (%v:)", tls, n, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __u Tuint64_t + var a, b, temp, v1 float64 + var i, nm1, sign int32 + var ib, ix, lx Tuint32_t + _, _, _, _, _, _, _, _, _, _, _ = __u, a, b, i, ib, ix, lx, nm1, sign, temp, v1 + __u = *(*Tuint64_t)(unsafe.Pointer(&x)) + ix = uint32(__u >> int32(32)) + lx = uint32(__u) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix|(lx|-lx)>>int32(31) > uint32(0x7ff00000) { /* nan */ + return x + } + if sign != 0 && ix|lx != uint32(0) { /* x < 0 */ + return Float64FromInt32(0) / Float64FromFloat64(0) + } + if ix == uint32(0x7ff00000) { + return float64(0) + } + if n == 0 { + return Xy0(tls, x) + } + if n < 0 { + nm1 = -(n + int32(1)) + sign = n & int32(1) + } else { + nm1 = n - int32(1) + sign = 0 + } + if nm1 == 0 { + if sign != 0 { + v1 = -Xy1(tls, x) + } else { + v1 = Xy1(tls, x) + } + return v1 + } + if ix >= uint32(0x52d00000) { /* x > 2**302 */ + /* (x >> n**2) + * Jn(x) = cos(x-(2n+1)*pi/4)*sqrt(2/x*pi) + * Yn(x) = sin(x-(2n+1)*pi/4)*sqrt(2/x*pi) + * Let s=sin(x), c=cos(x), + * xn=x-(2n+1)*pi/4, sqt2 = sqrt(2),then + * + * n sin(xn)*sqt2 cos(xn)*sqt2 + * ---------------------------------- + * 0 s-c c+s + * 1 -s-c -c+s + * 2 -s+c -c-s + * 3 s+c c-s + */ + switch nm1 & Int32FromInt32(3) { + case 0: + temp = -Xsin(tls, x) - Xcos(tls, x) + case int32(1): + temp = -Xsin(tls, x) + Xcos(tls, x) + case int32(2): + temp = Xsin(tls, x) + Xcos(tls, x) + default: + fallthrough + case int32(3): + temp = Xsin(tls, x) - Xcos(tls, x) + break + } + b = float64(_invsqrtpi4*temp) / Xsqrt(tls, x) + } else { + a = Xy0(tls, x) + b = Xy1(tls, x) + /* quit if b is -inf */ + ib = uint32(*(*Tuint64_t)(unsafe.Pointer(&b)) >> int32(32)) + i = 0 + for { + if !(i < nm1 && ib != uint32(0xfff00000)) { + break + } + i = i + 1 + temp = b + b = float64(float64(float64(2)*float64(i))/x*b) - a + ib = uint32(*(*Tuint64_t)(unsafe.Pointer(&b)) >> int32(32)) + a = temp + goto _2 + _2: + } + } + if sign != 0 { + v1 = -b + } else { + v1 = b + } + return v1 +} + +func Xjnf(tls *TLS, n int32, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v n=%v x=%v, (%v:)", tls, n, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, b, h, nf, q0, q1, t, temp, tmp, w, z, v6 float32 + var i, k, nm1, sign int32 + var ix Tuint32_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = a, b, h, i, ix, k, nf, nm1, q0, q1, sign, t, temp, tmp, w, z, v6 + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix > uint32(0x7f800000) { /* nan */ + return x + } + /* J(-n,x) = J(n,-x), use |n|-1 to avoid overflow in -n */ + if n == 0 { + return Xj0f(tls, x) + } + if n < 0 { + nm1 = -(n + int32(1)) + x = -x + sign = sign ^ int32(1) + } else { + nm1 = n - int32(1) + } + if nm1 == 0 { + return Xj1f(tls, x) + } + sign = sign & n /* even n: 0, odd n: signbit(x) */ + x = Xfabsf(tls, x) + if ix == uint32(0) || ix == uint32(0x7f800000) { /* if x is 0 or inf */ + b = Float32FromFloat32(0) + } else { + if float32(nm1) < x { + /* Safe to use J(n+1,x)=2n/x *J(n,x)-J(n-1,x) */ + a = Xj0f(tls, x) + b = Xj1f(tls, x) + i = 0 + for { + if !(i < nm1) { + break + } + i = i + 1 + temp = b + b = float32(b*(float32(Float32FromFloat32(2)*float32(i))/x)) - a + a = temp + goto _1 + _1: + } + } else { + if ix < uint32(0x35800000) { /* x < 2**-20 */ + /* x is tiny, return the first Taylor expansion of J(n,x) + * J(n,x) = 1/n!*(x/2)^n - ... + */ + if nm1 > int32(8) { /* underflow */ + nm1 = int32(8) + } + temp = float32(Float32FromFloat32(0.5) * x) + b = temp + a = Float32FromFloat32(1) + i = int32(2) + for { + if !(i <= nm1+int32(1)) { + break + } + a = a * float32(i) /* a = n! */ + b = b * temp /* b = (x/2)^n */ + goto _2 + _2: + ; + i = i + 1 + } + b = b / a + } else { + nf = float32(nm1) + Float32FromFloat32(1) + w = float32(Float32FromInt32(2)*nf) / x + h = Float32FromInt32(2) / x + z = w + h + q0 = w + q1 = float32(w*z) - Float32FromFloat32(1) + k = int32(1) + for q1 < Float32FromFloat32(10000) { + k = k + int32(1) + z = z + h + tmp = float32(z*q1) - q0 + q0 = q1 + q1 = tmp + } + t = Float32FromFloat32(0) + i = k + for { + if !(i >= 0) { + break + } + t = Float32FromFloat32(1) / (float32(Float32FromInt32(2)*(float32(i)+nf))/x - t) + goto _3 + _3: + ; + i = i - 1 + } + a = t + b = Float32FromFloat32(1) + /* estimate log((2/x)^n*n!) = n*log(2/x)+n*ln(n) + * Hence, if n*(log(2n/x)) > ... + * single 8.8722839355e+01 + * double 7.09782712893383973096e+02 + * long double 1.1356523406294143949491931077970765006170e+04 + * then recurrent value may overflow and the result is + * likely underflow to zero + */ + tmp = float32(nf * Xlogf(tls, Xfabsf(tls, w))) + if tmp < Float32FromFloat32(88.721679688) { + i = nm1 + for { + if !(i > 0) { + break + } + temp = b + b = float32(float32(Float32FromFloat32(2)*float32(i))*b)/x - a + a = temp + goto _4 + _4: + ; + i = i - 1 + } + } else { + i = nm1 + for { + if !(i > 0) { + break + } + temp = b + b = float32(float32(Float32FromFloat32(2)*float32(i))*b)/x - a + a = temp + /* scale b to avoid spurious overflow */ + if b > Float32FromFloat32(1.152921504606847e+18) { + a = a / b + t = t / b + b = Float32FromFloat32(1) + } + goto _5 + _5: + ; + i = i - 1 + } + } + z = Xj0f(tls, x) + w = Xj1f(tls, x) + if Xfabsf(tls, z) >= Xfabsf(tls, w) { + b = float32(t*z) / b + } else { + b = float32(t*w) / a + } + } + } + } + if sign != 0 { + v6 = -b + } else { + v6 = b + } + return v6 +} + +func Xynf(tls *TLS, n int32, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v n=%v x=%v, (%v:)", tls, n, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, b, temp, v1 float32 + var i, nm1, sign int32 + var ib, ix Tuint32_t + _, _, _, _, _, _, _, _, _ = a, b, i, ib, ix, nm1, sign, temp, v1 + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix > uint32(0x7f800000) { /* nan */ + return x + } + if sign != 0 && ix != uint32(0) { /* x < 0 */ + return Float32FromInt32(0) / Float32FromFloat32(0) + } + if ix == uint32(0x7f800000) { + return Float32FromFloat32(0) + } + if n == 0 { + return Xy0f(tls, x) + } + if n < 0 { + nm1 = -(n + int32(1)) + sign = n & int32(1) + } else { + nm1 = n - int32(1) + sign = 0 + } + if nm1 == 0 { + if sign != 0 { + v1 = -Xy1f(tls, x) + } else { + v1 = Xy1f(tls, x) + } + return v1 + } + a = Xy0f(tls, x) + b = Xy1f(tls, x) + /* quit if b is -inf */ + ib = *(*Tuint32_t)(unsafe.Pointer(&b)) + i = 0 + for { + if !(i < nm1 && ib != uint32(0xff800000)) { + break + } + i = i + 1 + temp = b + b = float32(float32(Float32FromFloat32(2)*float32(i))/x*b) - a + ib = *(*Tuint32_t)(unsafe.Pointer(&b)) + a = temp + goto _2 + _2: + } + if sign != 0 { + v1 = -b + } else { + v1 = b + } + return v1 +} + +func Xldexp(tls *TLS, x float64, n int32) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xscalbn(tls, x, n) +} + +func Xldexpf(tls *TLS, x float32, n int32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xscalbnf(tls, x, n) +} + +func Xldexpl(tls *TLS, x float64, n int32) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xscalbnl(tls, x, n) +} + +func Xlgamma(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lgamma_r(tls, x, uintptr(unsafe.Pointer(&Xsigngam))) +} + +var _pi2 = float64(3.141592653589793) /* 0x400921FB, 0x54442D18 */ +var _a0 = float64(0.07721566490153287) /* 0x3FB3C467, 0xE37DB0C8 */ +var _a1 = float64(0.3224670334241136) /* 0x3FD4A34C, 0xC4A60FAD */ +var _a2 = float64(0.06735230105312927) /* 0x3FB13E00, 0x1A5562A7 */ +var _a3 = float64(0.020580808432516733) /* 0x3F951322, 0xAC92547B */ +var _a4 = float64(0.007385550860814029) /* 0x3F7E404F, 0xB68FEFE8 */ +var _a5 = float64(0.0028905138367341563) /* 0x3F67ADD8, 0xCCB7926B */ +var _a6 = float64(0.0011927076318336207) /* 0x3F538A94, 0x116F3F5D */ +var _a7 = float64(0.0005100697921535113) /* 0x3F40B6C6, 0x89B99C00 */ +var _a8 = float64(0.00022086279071390839) /* 0x3F2CF2EC, 0xED10E54D */ +var _a9 = float64(0.00010801156724758394) /* 0x3F1C5088, 0x987DFB07 */ +var _a10 = float64(2.5214456545125733e-05) /* 0x3EFA7074, 0x428CFA52 */ +var _a11 = float64(4.4864094961891516e-05) /* 0x3F07858E, 0x90A45837 */ +var _tc = float64(1.4616321449683622) /* 0x3FF762D8, 0x6356BE3F */ +var _tf = -Float64FromFloat64(0.12148629053584961) /* 0xBFBF19B9, 0xBCC38A42 */ +/* tt = -(tail of tf) */ +var _tt = -Float64FromFloat64(3.638676997039505e-18) /* 0xBC50C7CA, 0xA48A971F */ +var _t0 = float64(0.48383612272381005) /* 0x3FDEF72B, 0xC8EE38A2 */ +var _t1 = -Float64FromFloat64(0.1475877229945939) /* 0xBFC2E427, 0x8DC6C509 */ +var _t2 = float64(0.06462494023913339) /* 0x3FB08B42, 0x94D5419B */ +var _t3 = -Float64FromFloat64(0.032788541075985965) /* 0xBFA0C9A8, 0xDF35B713 */ +var _t4 = float64(0.01797067508118204) /* 0x3F9266E7, 0x970AF9EC */ +var _t5 = -Float64FromFloat64(0.010314224129834144) /* 0xBF851F9F, 0xBA91EC6A */ +var _t6 = float64(0.006100538702462913) /* 0x3F78FCE0, 0xE370E344 */ +var _t7 = -Float64FromFloat64(0.0036845201678113826) /* 0xBF6E2EFF, 0xB3E914D7 */ +var _t8 = float64(0.0022596478090061247) /* 0x3F6282D3, 0x2E15C915 */ +var _t9 = -Float64FromFloat64(0.0014034646998923284) /* 0xBF56FE8E, 0xBF2D1AF1 */ +var _t10 = float64(0.000881081882437654) /* 0x3F4CDF0C, 0xEF61A8E9 */ +var _t11 = -Float64FromFloat64(0.0005385953053567405) /* 0xBF41A610, 0x9C73E0EC */ +var _t12 = float64(0.00031563207090362595) /* 0x3F34AF6D, 0x6C0EBBF7 */ +var _t13 = -Float64FromFloat64(0.00031275416837512086) /* 0xBF347F24, 0xECC38C38 */ +var _t14 = float64(0.0003355291926355191) /* 0x3F35FD3E, 0xE8C2D3F4 */ +var _u0 = -Float64FromFloat64(0.07721566490153287) /* 0xBFB3C467, 0xE37DB0C8 */ +var _u1 = float64(0.6328270640250934) /* 0x3FE4401E, 0x8B005DFF */ +var _u2 = float64(1.4549225013723477) /* 0x3FF7475C, 0xD119BD6F */ +var _u3 = float64(0.9777175279633727) /* 0x3FEF4976, 0x44EA8450 */ +var _u4 = float64(0.22896372806469245) /* 0x3FCD4EAE, 0xF6010924 */ +var _u5 = float64(0.013381091853678766) /* 0x3F8B678B, 0xBF2BAB09 */ +var _v1 = float64(2.4559779371304113) /* 0x4003A5D7, 0xC2BD619C */ +var _v2 = float64(2.128489763798934) /* 0x40010725, 0xA42B18F5 */ +var _v3 = float64(0.7692851504566728) /* 0x3FE89DFB, 0xE45050AF */ +var _v4 = float64(0.10422264559336913) /* 0x3FBAAE55, 0xD6537C88 */ +var _v5 = float64(0.003217092422824239) /* 0x3F6A5ABB, 0x57D0CF61 */ +var _s0 = -Float64FromFloat64(0.07721566490153287) /* 0xBFB3C467, 0xE37DB0C8 */ +var _s1 = float64(0.21498241596060885) /* 0x3FCB848B, 0x36E20878 */ +var _s2 = float64(0.325778796408931) /* 0x3FD4D98F, 0x4F139F59 */ +var _s3 = float64(0.14635047265246445) /* 0x3FC2BB9C, 0xBEE5F2F7 */ +var _s4 = float64(0.02664227030336386) /* 0x3F9B481C, 0x7E939961 */ +var _s5 = float64(0.0018402845140733772) /* 0x3F5E26B6, 0x7368F239 */ +var _s6 = float64(3.194753265841009e-05) /* 0x3F00BFEC, 0xDD17E945 */ +var _r1 = float64(1.3920053346762105) /* 0x3FF645A7, 0x62C4AB74 */ +var _r2 = float64(0.7219355475671381) /* 0x3FE71A18, 0x93D3DCDC */ +var _r3 = float64(0.17193386563280308) /* 0x3FC601ED, 0xCCFBDF27 */ +var _r4 = float64(0.01864591917156529) /* 0x3F9317EA, 0x742ED475 */ +var _r5 = float64(0.0007779424963818936) /* 0x3F497DDA, 0xCA41A95B */ +var _r6 = float64(7.326684307446256e-06) /* 0x3EDEBAF7, 0xA5B38140 */ +var _w0 = float64(0.4189385332046727) /* 0x3FDACFE3, 0x90C97D69 */ +var _w1 = float64(0.08333333333333297) /* 0x3FB55555, 0x5555553B */ +var _w2 = -Float64FromFloat64(0.0027777777772877554) /* 0xBF66C16C, 0x16B02E5C */ +var _w3 = float64(0.0007936505586430196) /* 0x3F4A019F, 0x98CF38B6 */ +var _w4 = -Float64FromFloat64(0.00059518755745034) /* 0xBF4380CB, 0x8C0FE741 */ +var _w5 = float64(0.0008363399189962821) /* 0x3F4B67BA, 0x4CDAD5D1 */ +var _w6 = -Float64FromFloat64(0.0016309293409657527) /* 0xBF5AB89D, 0x0B9E43E4 */ + +// C documentation +// +// /* sin(pi*x) assuming x > 2^-100, if sin(pi*x)==0 the sign is arbitrary */ +func _sin_pi(tls *TLS, x float64) (r float64) { + var n int32 + _ = n + /* spurious inexact if odd int */ + x = float64(float64(2) * (float64(x*float64(0.5)) - Xfloor(tls, float64(x*float64(0.5))))) /* x mod 2.0 */ + n = int32(float64(x * Float64FromFloat64(4))) + n = (n + int32(1)) / int32(2) + x = x - float64(float32(n)*Float32FromFloat32(0.5)) + x = x * _pi2 + switch n { + default: /* case 4: */ + fallthrough + case 0: + return X__sin(tls, x, float64(0), 0) + case int32(1): + return X__cos(tls, x, float64(0)) + case int32(2): + return X__sin(tls, -x, float64(0), 0) + case int32(3): + return -X__cos(tls, x, float64(0)) + } + return r +} + +func X__lgamma_r(tls *TLS, x float64, signgamp uintptr) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x=%v signgamp=%v, (%v:)", tls, x, signgamp, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var i, sign int32 + var ix Tuint32_t + var nadj, p, p1, p2, p3, q, r, t, w, y, z Tdouble_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = i, ix, nadj, p, p1, p2, p3, q, r, sign, t, w, y, z + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + /* purge off +-inf, NaN, +-0, tiny and negative arguments */ + **(**int32)(__ccgo_up(signgamp)) = int32(1) + sign = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(63)) + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32) & uint64(0x7fffffff)) + if ix >= uint32(0x7ff00000) { + return float64(x * x) + } + if ix < Uint32FromInt32((Int32FromInt32(0x3ff)-Int32FromInt32(70))< float64(0) { + **(**int32)(__ccgo_up(signgamp)) = -int32(1) + } else { + t = -t + } + nadj = Xlog(tls, _pi2/Tdouble_t(t*x)) + } + /* purge off 1 and 2 */ + if (ix == uint32(0x3ff00000) || ix == uint32(0x40000000)) && uint32(*(*Tuint64_t)(unsafe.Pointer(bp))) == uint32(0) { + r = Float64FromInt32(0) + } else { + if ix < uint32(0x40000000) { + if ix <= uint32(0x3feccccc) { /* lgamma(x) = lgamma(x+1)-log(x) */ + r = -Xlog(tls, x) + if ix >= uint32(0x3FE76944) { + y = float64(1) - x + i = 0 + } else { + if ix >= uint32(0x3FCDA661) { + y = x - (_tc - Float64FromFloat64(1)) + i = int32(1) + } else { + y = x + i = int32(2) + } + } + } else { + r = float64(0) + if ix >= uint32(0x3FFBB4C3) { /* [1.7316,2] */ + y = float64(2) - x + i = 0 + } else { + if ix >= uint32(0x3FF3B4C4) { /* [1.23,1.73] */ + y = x - _tc + i = int32(1) + } else { + y = x - float64(1) + i = int32(2) + } + } + } + switch i { + case 0: + z = Tdouble_t(y * y) + p1 = _a0 + float64(z*(_a2+float64(z*(_a4+float64(z*(_a6+float64(z*(_a8+float64(z*_a10))))))))) + p2 = Tdouble_t(z * (_a1 + float64(z*(_a3+float64(z*(_a5+float64(z*(_a7+float64(z*(_a9+float64(z*_a11))))))))))) + p = Tdouble_t(y*p1) + p2 + r = r + (p - Tdouble_t(float64(0.5)*y)) + case int32(1): + z = Tdouble_t(y * y) + w = Tdouble_t(z * y) + p1 = _t0 + float64(w*(_t3+float64(w*(_t6+float64(w*(_t9+float64(w*_t12))))))) /* parallel comp */ + p2 = _t1 + float64(w*(_t4+float64(w*(_t7+float64(w*(_t10+float64(w*_t13))))))) + p3 = _t2 + float64(w*(_t5+float64(w*(_t8+float64(w*(_t11+float64(w*_t14))))))) + p = Tdouble_t(z*p1) - (_tt - float64(w*(p2+Tdouble_t(y*p3)))) + r = r + (_tf + p) + case int32(2): + p1 = Tdouble_t(y * (_u0 + float64(y*(_u1+float64(y*(_u2+float64(y*(_u3+float64(y*(_u4+float64(y*_u5))))))))))) + p2 = float64(1) + float64(y*(_v1+float64(y*(_v2+float64(y*(_v3+float64(y*(_v4+float64(y*_v5))))))))) + r = r + (float64(-Float64FromFloat64(0.5)*y) + p1/p2) + } + } else { + if ix < uint32(0x40200000) { /* x < 8.0 */ + i = int32(x) + y = x - float64(i) + p = Tdouble_t(y * (_s0 + float64(y*(_s1+float64(y*(_s2+float64(y*(_s3+float64(y*(_s4+float64(y*(_s5+float64(y*_s6))))))))))))) + q = float64(1) + float64(y*(_r1+float64(y*(_r2+float64(y*(_r3+float64(y*(_r4+float64(y*(_r5+float64(y*_r6))))))))))) + r = float64(float64(0.5)*y) + p/q + z = float64(1) /* lgamma(1+s) = log(s) + lgamma(s) */ + switch i { + case int32(7): + z = z * (y + float64(6)) /* FALLTHRU */ + fallthrough + case int32(6): + z = z * (y + float64(5)) /* FALLTHRU */ + fallthrough + case int32(5): + z = z * (y + float64(4)) /* FALLTHRU */ + fallthrough + case int32(4): + z = z * (y + float64(3)) /* FALLTHRU */ + fallthrough + case int32(3): + z = z * (y + float64(2)) /* FALLTHRU */ + r = r + Xlog(tls, z) + break + } + } else { + if ix < uint32(0x43900000) { /* 8.0 <= x < 2**58 */ + t = Xlog(tls, x) + z = float64(1) / x + y = Tdouble_t(z * z) + w = _w0 + float64(z*(_w1+float64(y*(_w2+float64(y*(_w3+float64(y*(_w4+float64(y*(_w5+float64(y*_w6))))))))))) + r = float64((x-float64(0.5))*(t-Float64FromFloat64(1))) + w + } else { /* 2**58 <= x <= inf */ + r = Tdouble_t(x * (Xlog(tls, x) - float64(1))) + } + } + } + } + if sign != 0 { + r = nadj - r + } + return r +} + +func Xlgamma_r(tls *TLS, x float64, signgamp uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v signgamp=%v, (%v:)", tls, x, signgamp, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lgamma_r(tls, x, signgamp) +} + +func Xlgammaf(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lgammaf_r(tls, x, uintptr(unsafe.Pointer(&Xsigngam))) +} + +var _pi3 = float32(3.141592741) /* 0x40490fdb */ +var _a01 = float32(0.077215664089) /* 0x3d9e233f */ +var _a12 = float32(0.32246702909) /* 0x3ea51a66 */ +var _a21 = float32(0.067352302372) /* 0x3d89f001 */ +var _a31 = float32(0.020580807701) /* 0x3ca89915 */ +var _a41 = float32(0.0073855509982) /* 0x3bf2027e */ +var _a51 = float32(0.0028905137442) /* 0x3b3d6ec6 */ +var _a61 = float32(0.0011927076848) /* 0x3a9c54a1 */ +var _a71 = float32(0.00051006977446) /* 0x3a05b634 */ +var _a81 = float32(0.00022086278477) /* 0x39679767 */ +var _a91 = float32(0.00010801156895) /* 0x38e28445 */ +var _a101 = float32(2.52144564e-05) /* 0x37d383a2 */ +var _a111 = float32(4.4864096708e-05) /* 0x383c2c75 */ +var _tc1 = float32(1.4616321325) /* 0x3fbb16c3 */ +var _tf1 = float32(-Float64FromFloat64(0.12148628384)) /* 0xbdf8cdcd */ +/* tt = -(tail of tf) */ +var _tt1 = float32(6.6971006518e-09) /* 0x31e61c52 */ +var _t01 = float32(0.48383611441) /* 0x3ef7b95e */ +var _t15 = float32(-Float64FromFloat64(0.14758771658)) /* 0xbe17213c */ +var _t21 = float32(0.064624942839) /* 0x3d845a15 */ +var _t31 = float32(-Float64FromFloat64(0.032788541168)) /* 0xbd064d47 */ +var _t41 = float32(0.017970675603) /* 0x3c93373d */ +var _t51 = float32(-Float64FromFloat64(0.010314224288)) /* 0xbc28fcfe */ +var _t61 = float32(0.0061005386524) /* 0x3bc7e707 */ +var _t71 = float32(-Float64FromFloat64(0.0036845202558)) /* 0xbb7177fe */ +var _t81 = float32(0.0022596477065) /* 0x3b141699 */ +var _t91 = float32(-Float64FromFloat64(0.0014034647029)) /* 0xbab7f476 */ +var _t101 = float32(0.00088108185446) /* 0x3a66f867 */ +var _t111 = float32(-Float64FromFloat64(0.00053859531181)) /* 0xba0d3085 */ +var _t121 = float32(0.00031563205994) /* 0x39a57b6b */ +var _t131 = float32(-Float64FromFloat64(0.00031275415677)) /* 0xb9a3f927 */ +var _t141 = float32(0.00033552918467) /* 0x39afe9f7 */ +var _u07 = float32(-Float64FromFloat64(0.077215664089)) /* 0xbd9e233f */ +var _u11 = float32(0.63282704353) /* 0x3f2200f4 */ +var _u21 = float32(1.4549225569) /* 0x3fba3ae7 */ +var _u31 = float32(0.97771751881) /* 0x3f7a4bb2 */ +var _u41 = float32(0.22896373272) /* 0x3e6a7578 */ +var _u51 = float32(0.013381091878) /* 0x3c5b3c5e */ +var _v11 = float32(2.4559779167) /* 0x401d2ebe */ +var _v21 = float32(2.1284897327) /* 0x4008392d */ +var _v31 = float32(0.76928514242) /* 0x3f44efdf */ +var _v41 = float32(0.10422264785) /* 0x3dd572af */ +var _v51 = float32(0.0032170924824) /* 0x3b52d5db */ +var _s06 = float32(-Float64FromFloat64(0.077215664089)) /* 0xbd9e233f */ +var _s11 = float32(0.21498242021) /* 0x3e5c245a */ +var _s21 = float32(0.32577878237) /* 0x3ea6cc7a */ +var _s31 = float32(0.14635047317) /* 0x3e15dce6 */ +var _s41 = float32(0.026642270386) /* 0x3cda40e4 */ +var _s51 = float32(0.0018402845599) /* 0x3af135b4 */ +var _s61 = float32(3.1947532989e-05) /* 0x3805ff67 */ +var _r11 = float32(1.3920053244) /* 0x3fb22d3b */ +var _r21 = float32(0.72193557024) /* 0x3f38d0c5 */ +var _r31 = float32(0.17193385959) /* 0x3e300f6e */ +var _r41 = float32(0.018645919859) /* 0x3c98bf54 */ +var _r51 = float32(0.00077794247773) /* 0x3a4beed6 */ +var _r61 = float32(7.3266842264e-06) /* 0x36f5d7bd */ +var _w01 = float32(0.41893854737) /* 0x3ed67f1d */ +var _w11 = float32(0.083333335817) /* 0x3daaaaab */ +var _w21 = float32(-Float64FromFloat64(0.002777777845)) /* 0xbb360b61 */ +var _w31 = float32(0.00079365057172) /* 0x3a500cfd */ +var _w41 = float32(-Float64FromFloat64(0.00059518753551)) /* 0xba1c065c */ +var _w51 = float32(0.00083633989561) /* 0x3a5b3dd2 */ +var _w61 = float32(-Float64FromFloat64(0.0016309292987)) /* 0xbad5c4e8 */ + +// C documentation +// +// /* sin(pi*x) assuming x > 2^-100, if sin(pi*x)==0 the sign is arbitrary */ +func _sin_pi1(tls *TLS, x float32) (r float32) { + var n int32 + var y Tdouble_t + _, _ = n, y + /* spurious inexact if odd int */ + x = float32(Float32FromInt32(2) * (float32(x*Float32FromFloat32(0.5)) - Xfloorf(tls, float32(x*Float32FromFloat32(0.5))))) /* x mod 2.0 */ + n = int32(float32(x * Float32FromInt32(4))) + n = (n + int32(1)) / int32(2) + y = float64(x - float32(float32(n)*Float32FromFloat32(0.5))) + y = y * float64(3.141592653589793) + switch n { + default: /* case 4: */ + fallthrough + case 0: + return X__sindf(tls, y) + case int32(1): + return X__cosdf(tls, y) + case int32(2): + return X__sindf(tls, -y) + case int32(3): + return -X__cosdf(tls, y) + } + return r +} + +func X__lgammaf_r(tls *TLS, x float32, signgamp uintptr) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x=%v signgamp=%v, (%v:)", tls, x, signgamp, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var i, sign int32 + var ix Tuint32_t + var nadj, p, p1, p2, p3, q, r, t, w, y, z float32 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = i, ix, nadj, p, p1, p2, p3, q, r, sign, t, w, y, z + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + /* purge off +-inf, NaN, +-0, tiny and negative arguments */ + **(**int32)(__ccgo_up(signgamp)) = int32(1) + sign = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(31)) + ix = *(*Tuint32_t)(unsafe.Pointer(bp)) & uint32(0x7fffffff) + if ix >= uint32(0x7f800000) { + return float32(x * x) + } + if ix < uint32(0x35000000) { /* |x| < 2**-21, return -log(|x|) */ + if sign != 0 { + **(**int32)(__ccgo_up(signgamp)) = -int32(1) + x = -x + } + return -Xlogf(tls, x) + } + if sign != 0 { + x = -x + t = _sin_pi1(tls, x) + if t == Float32FromFloat32(0) { /* -integer */ + return Float32FromFloat32(1) / (x - x) + } + if t > Float32FromFloat32(0) { + **(**int32)(__ccgo_up(signgamp)) = -int32(1) + } else { + t = -t + } + nadj = Xlogf(tls, _pi3/float32(t*x)) + } + /* purge off 1 and 2 */ + if ix == uint32(0x3f800000) || ix == uint32(0x40000000) { + r = Float32FromInt32(0) + } else { + if ix < uint32(0x40000000) { + if ix <= uint32(0x3f666666) { /* lgamma(x) = lgamma(x+1)-log(x) */ + r = -Xlogf(tls, x) + if ix >= uint32(0x3f3b4a20) { + y = Float32FromFloat32(1) - x + i = 0 + } else { + if ix >= uint32(0x3e6d3308) { + y = x - (_tc1 - Float32FromFloat32(1)) + i = int32(1) + } else { + y = x + i = int32(2) + } + } + } else { + r = Float32FromFloat32(0) + if ix >= uint32(0x3fdda618) { /* [1.7316,2] */ + y = Float32FromFloat32(2) - x + i = 0 + } else { + if ix >= uint32(0x3F9da620) { /* [1.23,1.73] */ + y = x - _tc1 + i = int32(1) + } else { + y = x - Float32FromFloat32(1) + i = int32(2) + } + } + } + switch i { + case 0: + z = float32(y * y) + p1 = _a01 + float32(z*(_a21+float32(z*(_a41+float32(z*(_a61+float32(z*(_a81+float32(z*_a101))))))))) + p2 = float32(z * (_a12 + float32(z*(_a31+float32(z*(_a51+float32(z*(_a71+float32(z*(_a91+float32(z*_a111))))))))))) + p = float32(y*p1) + p2 + r = r + (p - float32(Float32FromFloat32(0.5)*y)) + case int32(1): + z = float32(y * y) + w = float32(z * y) + p1 = _t01 + float32(w*(_t31+float32(w*(_t61+float32(w*(_t91+float32(w*_t121))))))) /* parallel comp */ + p2 = _t15 + float32(w*(_t41+float32(w*(_t71+float32(w*(_t101+float32(w*_t131))))))) + p3 = _t21 + float32(w*(_t51+float32(w*(_t81+float32(w*(_t111+float32(w*_t141))))))) + p = float32(z*p1) - (_tt1 - float32(w*(p2+float32(y*p3)))) + r = r + (_tf1 + p) + case int32(2): + p1 = float32(y * (_u07 + float32(y*(_u11+float32(y*(_u21+float32(y*(_u31+float32(y*(_u41+float32(y*_u51))))))))))) + p2 = Float32FromFloat32(1) + float32(y*(_v11+float32(y*(_v21+float32(y*(_v31+float32(y*(_v41+float32(y*_v51))))))))) + r = r + (float32(-Float32FromFloat32(0.5)*y) + p1/p2) + } + } else { + if ix < uint32(0x41000000) { /* x < 8.0 */ + i = int32(x) + y = x - float32(i) + p = float32(y * (_s06 + float32(y*(_s11+float32(y*(_s21+float32(y*(_s31+float32(y*(_s41+float32(y*(_s51+float32(y*_s61))))))))))))) + q = Float32FromFloat32(1) + float32(y*(_r11+float32(y*(_r21+float32(y*(_r31+float32(y*(_r41+float32(y*(_r51+float32(y*_r61))))))))))) + r = float32(Float32FromFloat32(0.5)*y) + p/q + z = Float32FromFloat32(1) /* lgamma(1+s) = log(s) + lgamma(s) */ + switch i { + case int32(7): + z = z * (y + Float32FromFloat32(6)) /* FALLTHRU */ + fallthrough + case int32(6): + z = z * (y + Float32FromFloat32(5)) /* FALLTHRU */ + fallthrough + case int32(5): + z = z * (y + Float32FromFloat32(4)) /* FALLTHRU */ + fallthrough + case int32(4): + z = z * (y + Float32FromFloat32(3)) /* FALLTHRU */ + fallthrough + case int32(3): + z = z * (y + Float32FromFloat32(2)) /* FALLTHRU */ + r = r + Xlogf(tls, z) + break + } + } else { + if ix < uint32(0x5c800000) { /* 8.0 <= x < 2**58 */ + t = Xlogf(tls, x) + z = Float32FromFloat32(1) / x + y = float32(z * z) + w = _w01 + float32(z*(_w11+float32(y*(_w21+float32(y*(_w31+float32(y*(_w41+float32(y*(_w51+float32(y*_w61))))))))))) + r = float32((x-Float32FromFloat32(0.5))*(t-Float32FromFloat32(1))) + w + } else { /* 2**58 <= x <= inf */ + r = float32(x * (Xlogf(tls, x) - Float32FromFloat32(1))) + } + } + } + } + if sign != 0 { + r = nadj - r + } + return r +} + +func Xlgammaf_r(tls *TLS, x float32, signgamp uintptr) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v signgamp=%v, (%v:)", tls, x, signgamp, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lgammaf_r(tls, x, signgamp) +} + +func X__lgammal_r(tls *TLS, x float64, sg uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v sg=%v, (%v:)", tls, x, sg, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lgamma_r(tls, x, sg) +} + +func Xlgammal(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lgammal_r(tls, x, uintptr(unsafe.Pointer(&Xsigngam))) +} + +func Xlgammal_r(tls *TLS, x float64, sg uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v sg=%v, (%v:)", tls, x, sg, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lgammal_r(tls, x, sg) +} + +/* uses LLONG_MAX > 2^53, see comments in lrint.c */ + +func Xllrint(tls *TLS, x float64) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int64(Xrint(tls, x)) +} + +/* uses LLONG_MAX > 2^24, see comments in lrint.c */ + +func Xllrintf(tls *TLS, x float32) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int64(Xrintf(tls, x)) +} + +const FE_ALL_EXCEPT = 2031616 +const FE_DIVBYZERO = 524288 +const FE_DOWNWARD = 768 +const FE_INEXACT = 65536 +const FE_INVALID = 1048576 +const FE_OVERFLOW = 262144 +const FE_TONEAREST = 0 +const FE_TOWARDZERO = 256 +const FE_UNDERFLOW = 131072 +const FE_UPWARD = 512 + +type Tfexcept_t = uint32 + +type Tfenv_t = struct { + F__cw uint32 +} + +func Xllrintl(tls *TLS, x float64) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xllrint(tls, x) +} + +func Xllround(tls *TLS, x float64) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int64(Xround(tls, x)) +} + +func Xllroundf(tls *TLS, x float32) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int64(Xroundf(tls, x)) +} + +func Xllroundl(tls *TLS, x float64) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int64(Xroundl(tls, x)) +} + +const LOG_POLY1_ORDER = 12 +const LOG_POLY_ORDER = 6 +const LOG_TABLE_BITS = 7 +const N4 = 128 +const OFF = 4604367669032910848 + +// C documentation +// +// /* Top 16 bits of a double. */ +func _top16(tls *TLS, x float64) (r Tuint32_t) { + return uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(48)) +} + +func Xlog(tls *TLS, x1 float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x1=%v, (%v:)", tls, x1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var hi, invc, kd, lo, logc, r, r2, r3, rhi, rlo, w, y1, z Tdouble_t + var i, k int32 + var ix, iz, tmp Tuint64_t + var top Tuint32_t + var y, v1, v2, v3, v4 float64 + var v5 bool + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = hi, i, invc, ix, iz, k, kd, lo, logc, r, r2, r3, rhi, rlo, tmp, top, w, y, y1, z, v1, v2, v3, v4, v5 + ix = *(*Tuint64_t)(unsafe.Pointer(&x1)) + top = _top16(tls, x1) + v1 = Float64FromFloat64(1) - Float64FromFloat64(0.0625) + v2 = Float64FromFloat64(1) + Float64FromFloat64(0.064697265625) + v3 = Float64FromFloat64(1) - Float64FromFloat64(0.0625) + if ix-*(*Tuint64_t)(unsafe.Pointer(&v1)) < *(*Tuint64_t)(unsafe.Pointer(&v2))-*(*Tuint64_t)(unsafe.Pointer(&v3)) { + /* Handle close to 1.0 inputs separately. */ + /* Fix sign of zero with downward rounding when x==1. */ + if v5 = Bool(int32(WANT_ROUNDING) != 0); v5 { + v4 = float64(1) + } + if v5 && ix == *(*Tuint64_t)(unsafe.Pointer(&v4)) { + return Float64FromInt32(0) + } + r = x1 - float64(1) + r2 = Tdouble_t(r * r) + r3 = Tdouble_t(r * r2) + y1 = Tdouble_t(r3 * (**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56 + 1*8)) + float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56 + 2*8))) + float64(r2***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56 + 3*8))) + float64(r3*(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56 + 4*8))+float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56 + 5*8)))+float64(r2***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56 + 6*8)))+float64(r3*(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56 + 7*8))+float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56 + 8*8)))+float64(r2***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56 + 9*8)))+float64(r3***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56 + 10*8))))))))) + /* Worst-case error is around 0.507 ULP. */ + w = Tdouble_t(r * float64(1.34217728e+08)) + rhi = r + w - w + rlo = r - rhi + w = Tdouble_t(Tdouble_t(rhi*rhi) * **(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56))) /* B[0] == -0.5. */ + hi = r + w + lo = r - hi + w + lo = lo + Tdouble_t(float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56))*rlo)*(rhi+r)) + y1 = y1 + lo + y1 = y1 + hi + y = y1 + v1 = y + goto _7 + _7: + return v1 + } + if top-uint32(0x0010) >= Uint32FromInt32(Int32FromInt32(0x7ff0)-Int32FromInt32(0x0010)) { + /* x < 0x1p-1022 or inf or nan. */ + if ix*uint64(2) == uint64(0) { + return X__math_divzero(tls, uint32(1)) + } + v1 = float64(X__builtin_inff(tls)) + if ix == *(*Tuint64_t)(unsafe.Pointer(&v1)) { /* log(inf) == inf. */ + return x1 + } + if top&uint32(0x8000) != 0 || top&uint32(0x7ff0) == uint32(0x7ff0) { + return X__math_invalid(tls, x1) + } + /* x is subnormal, normalize it. */ + v1 = float64(x1 * float64(4.503599627370496e+15)) + ix = *(*Tuint64_t)(unsafe.Pointer(&v1)) + ix = uint64(ix - Uint64FromUint64(52)<> (Int32FromInt32(52) - Int32FromInt32(LOG_TABLE_BITS)) % Uint64FromInt32(Int32FromInt32(1)<> int32(52)) /* arithmetic shift */ + iz = uint64(ix - tmp&(Uint64FromUint64(0xfff)< 0x1p-5: + 0.5 + 4.13/N + abs-poly-error*2^57 ULP (+ 0.002 ULP without fma) + Worst case error if |y| > 0x1p-4: + 0.5 + 2.06/N + abs-poly-error*2^56 ULP (+ 0.001 ULP without fma). */ + y1 = lo + Tdouble_t(r2***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 16))) + Tdouble_t(Tdouble_t(r*r2)*(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 16 + 1*8))+float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 16 + 2*8)))+float64(r2*(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 16 + 3*8))+float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 16 + 4*8))))))) + hi + y = y1 + v1 = y + goto _11 +_11: + return v1 +} + +var _ivln10hi = float64(0.4342944818781689) /* 0x3fdbcb7b, 0x15200000 */ +var _ivln10lo = float64(2.5082946711645275e-11) /* 0x3dbb9438, 0xca9aadd5 */ +var _log10_2hi = float64(0.30102999566361177) /* 0x3FD34413, 0x509F6000 */ +var _log10_2lo = float64(3.694239077158931e-13) /* 0x3D59FEF3, 0x11F12B36 */ +var _Lg1 = float64(0.6666666666666735) /* 3FE55555 55555593 */ +var _Lg2 = float64(0.3999999999940942) /* 3FD99999 9997FA04 */ +var _Lg3 = float64(0.2857142874366239) /* 3FD24924 94229359 */ +var _Lg4 = float64(0.22222198432149784) /* 3FCC71C5 1D8E78AF */ +var _Lg5 = float64(0.1818357216161805) /* 3FC74664 96CB03DE */ +var _Lg6 = float64(0.15313837699209373) /* 3FC39A09 D078C69F */ +var _Lg7 = float64(0.14798198605116586) /* 3FC2F112 DF3E5244 */ + +func Xlog10(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var R, dk, f, hfsq, hi, lo, s, t1, t2, val_hi, val_lo, w, y, z Tdouble_t + var hx Tuint32_t + var k int32 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = R, dk, f, hfsq, hi, hx, k, lo, s, t1, t2, val_hi, val_lo, w, y, z + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + hx = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32)) + k = 0 + if hx < uint32(0x00100000) || hx>>int32(31) != 0 { + if *(*Tuint64_t)(unsafe.Pointer(bp))<>int32(31) != 0 { + return (x - x) / float64(0) + } /* log(-#) = NaN */ + /* subnormal number, scale x up */ + k = k - int32(54) + x = x * float64(1.8014398509481984e+16) + *(*float64)(unsafe.Pointer(bp)) = x + hx = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32)) + } else { + if hx >= uint32(0x7ff00000) { + return x + } else { + if hx == uint32(0x3ff00000) && *(*Tuint64_t)(unsafe.Pointer(bp))<>Int32FromInt32(20)) - int32(0x3ff)) + hx = hx&uint32(0x000fffff) + uint32(0x3fe6a09e) + *(*Tuint64_t)(unsafe.Pointer(bp)) = uint64(hx)< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var R, dk, f, hfsq, hi, lo, s, t1, t2, w, z Tfloat_t + var ix Tuint32_t + var k int32 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _, _, _, _, _, _, _, _ = R, dk, f, hfsq, hi, ix, k, lo, s, t1, t2, w, z + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + ix = *(*Tuint32_t)(unsafe.Pointer(bp)) + k = 0 + if ix < uint32(0x00800000) || ix>>int32(31) != 0 { /* x < 2**-126 */ + if ix<>int32(31) != 0 { + return (x - x) / Float32FromFloat32(0) + } /* log(-#) = NaN */ + /* subnormal number, scale up x */ + k = k - int32(25) + x = x * Float32FromFloat32(3.3554432e+07) + *(*float32)(unsafe.Pointer(bp)) = x + ix = *(*Tuint32_t)(unsafe.Pointer(bp)) + } else { + if ix >= uint32(0x7f800000) { + return x + } else { + if ix == uint32(0x3f800000) { + return Float32FromInt32(0) + } + } + } + /* reduce x into [sqrt(2)/2, sqrt(2)] */ + ix = ix + Uint32FromInt32(Int32FromInt32(0x3f800000)-Int32FromInt32(0x3f3504f3)) + k = k + (Int32FromUint32(ix>>Int32FromInt32(23)) - int32(0x7f)) + ix = ix&uint32(0x007fffff) + uint32(0x3f3504f3) + *(*Tuint32_t)(unsafe.Pointer(bp)) = ix + x = *(*float32)(unsafe.Pointer(bp)) + f = x - Float32FromFloat32(1) + s = f / (Float32FromFloat32(2) + f) + z = Tfloat_t(s * s) + w = Tfloat_t(z * z) + t1 = Tfloat_t(w * (_Lg21 + float32(w*_Lg41))) + t2 = Tfloat_t(z * (_Lg11 + float32(w*_Lg31))) + R = t2 + t1 + hfsq = Tfloat_t(float32(Float32FromFloat32(0.5)*f) * f) + hi = f - hfsq + *(*float32)(unsafe.Pointer(bp)) = hi + *(*Tuint32_t)(unsafe.Pointer(bp)) &= uint32(0xfffff000) + hi = *(*float32)(unsafe.Pointer(bp)) + lo = f - hi - hfsq + Tfloat_t(s*(hfsq+R)) + dk = float32(k) + return Tfloat_t(dk*_log10_2lo1) + Tfloat_t((lo+hi)*_ivln10lo1) + Tfloat_t(lo*_ivln10hi1) + Tfloat_t(hi*_ivln10hi1) + Tfloat_t(dk*_log10_2hi1) +} + +func Xlog10l(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xlog10(tls, x) +} + +var _ln2_hi2 = float64(0.6931471803691238) /* 3fe62e42 fee00000 */ +var _ln2_lo2 = float64(1.9082149292705877e-10) /* 3dea39ef 35793c76 */ +var _Lg12 = float64(0.6666666666666735) /* 3FE55555 55555593 */ +var _Lg22 = float64(0.3999999999940942) /* 3FD99999 9997FA04 */ +var _Lg32 = float64(0.2857142874366239) /* 3FD24924 94229359 */ +var _Lg42 = float64(0.22222198432149784) /* 3FCC71C5 1D8E78AF */ +var _Lg51 = float64(0.1818357216161805) /* 3FC74664 96CB03DE */ +var _Lg61 = float64(0.15313837699209373) /* 3FC39A09 D078C69F */ +var _Lg71 = float64(0.14798198605116586) /* 3FC2F112 DF3E5244 */ + +func Xlog1p(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var R, c, dk, f, hfsq, s, t1, t2, w, z Tdouble_t + var hu, hx Tuint32_t + var k int32 + var y float32 + var y1, y2, v1 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = R, c, dk, f, hfsq, hu, hx, k, s, t1, t2, w, y, y1, y2, z, v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + hx = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32)) + k = int32(1) + if hx < uint32(0x3fda827a) || hx>>int32(31) != 0 { /* 1+x < sqrt(2)+ */ + if hx >= uint32(0xbff00000) { /* x <= -1.0 */ + if x3 == float64(-Int32FromInt32(1)) { + return x3 / float64(0) + } /* log1p(-1) = -inf */ + return (x3 - x3) / float64(0) /* log1p(x<-1) = NaN */ + } + if hx<= uint32(0x7ff00000) { + return x3 + } + } + if k != 0 { + *(*float64)(unsafe.Pointer(bp)) = Float64FromInt32(1) + x3 + hu = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32)) + hu = hu + Uint32FromInt32(Int32FromInt32(0x3ff00000)-Int32FromInt32(0x3fe6a09e)) + k = Int32FromUint32(hu>>Int32FromInt32(20)) - int32(0x3ff) + /* correction term ~ log(1+x)-log(u), avoid underflow in c/u */ + if k < int32(54) { + if k >= int32(2) { + v1 = Float64FromInt32(1) - (*(*float64)(unsafe.Pointer(bp)) - x3) + } else { + v1 = x3 - (*(*float64)(unsafe.Pointer(bp)) - Float64FromInt32(1)) + } + c = v1 + c = c / *(*float64)(unsafe.Pointer(bp)) + } else { + c = Float64FromInt32(0) + } + /* reduce u into [sqrt(2)/2, sqrt(2)] */ + hu = hu&uint32(0x000fffff) + uint32(0x3fe6a09e) + *(*Tuint64_t)(unsafe.Pointer(bp)) = uint64(hu)< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var R, c, dk, f, hfsq, s, t1, t2, w, z Tfloat_t + var iu, ix Tuint32_t + var k int32 + var y, v1 float32 + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = R, c, dk, f, hfsq, iu, ix, k, s, t1, t2, w, y, y1, y2, z, v1 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + ix = *(*Tuint32_t)(unsafe.Pointer(bp)) + k = int32(1) + if ix < uint32(0x3ed413d0) || ix>>int32(31) != 0 { /* 1+x < sqrt(2)+ */ + if ix >= uint32(0xbf800000) { /* x <= -1.0 */ + if x3 == float32(-Int32FromInt32(1)) { + return x3 / Float32FromFloat32(0) + } /* log1p(-1)=+inf */ + return (x3 - x3) / Float32FromFloat32(0) /* log1p(x<-1)=NaN */ + } + if ix<= uint32(0x7f800000) { + return x3 + } + } + if k != 0 { + *(*float32)(unsafe.Pointer(bp)) = Float32FromInt32(1) + x3 + iu = *(*Tuint32_t)(unsafe.Pointer(bp)) + iu = iu + Uint32FromInt32(Int32FromInt32(0x3f800000)-Int32FromInt32(0x3f3504f3)) + k = Int32FromUint32(iu>>Int32FromInt32(23)) - int32(0x7f) + /* correction term ~ log(1+x)-log(u), avoid underflow in c/u */ + if k < int32(25) { + if k >= int32(2) { + v1 = Float32FromInt32(1) - (*(*float32)(unsafe.Pointer(bp)) - x3) + } else { + v1 = x3 - (*(*float32)(unsafe.Pointer(bp)) - Float32FromInt32(1)) + } + c = v1 + c = c / *(*float32)(unsafe.Pointer(bp)) + } else { + c = Float32FromInt32(0) + } + /* reduce u into [sqrt(2)/2, sqrt(2)] */ + iu = iu&uint32(0x007fffff) + uint32(0x3f3504f3) + *(*Tuint32_t)(unsafe.Pointer(bp)) = iu + f = *(*float32)(unsafe.Pointer(bp)) - Float32FromInt32(1) + } + s = f / (Float32FromFloat32(2) + f) + z = Tfloat_t(s * s) + w = Tfloat_t(z * z) + t1 = Tfloat_t(w * (_Lg23 + float32(w*_Lg43))) + t2 = Tfloat_t(z * (_Lg13 + float32(w*_Lg33))) + R = t2 + t1 + hfsq = Tfloat_t(float32(Float32FromFloat32(0.5)*f) * f) + dk = float32(k) + return Tfloat_t(s*(hfsq+R)) + (Tfloat_t(dk*_ln2_lo3) + c) - hfsq + f + Tfloat_t(dk*_ln2_hi3) +} + +func Xlog1pl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xlog1p(tls, x) +} + +const LOG2_POLY1_ORDER = 11 +const LOG2_POLY_ORDER = 7 +const LOG2_TABLE_BITS = 6 +const N5 = 64 + +// C documentation +// +// /* Top 16 bits of a double. */ +func _top161(tls *TLS, x float64) (r Tuint32_t) { + return uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(48)) +} + +func Xlog2(tls *TLS, x1 float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x1=%v, (%v:)", tls, x1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var hi, invc, kd, lo, logc, p, r, r2, r4, t1, t2, t3, y1, z Tdouble_t + var i, k int32 + var ix, iz, tmp Tuint64_t + var top Tuint32_t + var y, v1, v2, v3, v4 float64 + var v5 bool + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = hi, i, invc, ix, iz, k, kd, lo, logc, p, r, r2, r4, t1, t2, t3, tmp, top, y, y1, z, v1, v2, v3, v4, v5 + ix = *(*Tuint64_t)(unsafe.Pointer(&x1)) + top = _top161(tls, x1) + v1 = Float64FromFloat64(1) - Float64FromFloat64(0.04239702224731445) + v2 = Float64FromFloat64(1) + Float64FromFloat64(0.044274330139160156) + v3 = Float64FromFloat64(1) - Float64FromFloat64(0.04239702224731445) + if ix-*(*Tuint64_t)(unsafe.Pointer(&v1)) < *(*Tuint64_t)(unsafe.Pointer(&v2))-*(*Tuint64_t)(unsafe.Pointer(&v3)) { + /* Handle close to 1.0 inputs separately. */ + /* Fix sign of zero with downward rounding when x==1. */ + if v5 = Bool(int32(WANT_ROUNDING) != 0); v5 { + v4 = float64(1) + } + if v5 && ix == *(*Tuint64_t)(unsafe.Pointer(&v4)) { + return Float64FromInt32(0) + } + r = x1 - float64(1) + hi = Tdouble_t(r * X__log2_data.Finvln2hi) + lo = Tdouble_t(r*X__log2_data.Finvln2lo) + float64(X__builtin_fma(tls, r, X__log2_data.Finvln2hi, -hi)) + r2 = Tdouble_t(r * r) /* rounding error: 0x1p-62. */ + r4 = Tdouble_t(r2 * r2) + /* Worst-case error is less than 0.54 ULP (0.55 ULP without fma). */ + p = Tdouble_t(r2 * (**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 64)) + float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 64 + 1*8))))) + y1 = hi + p + lo = lo + (hi - y1 + p) + lo = lo + Tdouble_t(r4*(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 64 + 2*8))+float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 64 + 3*8)))+float64(r2*(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 64 + 4*8))+float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 64 + 5*8)))))+float64(r4*(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 64 + 6*8))+float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 64 + 7*8)))+float64(r2*(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 64 + 8*8))+float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 64 + 9*8))))))))) + y1 = y1 + lo + y = y1 + v1 = y + goto _7 + _7: + return v1 + } + if top-uint32(0x0010) >= Uint32FromInt32(Int32FromInt32(0x7ff0)-Int32FromInt32(0x0010)) { + /* x < 0x1p-1022 or inf or nan. */ + if ix*uint64(2) == uint64(0) { + return X__math_divzero(tls, uint32(1)) + } + v1 = float64(X__builtin_inff(tls)) + if ix == *(*Tuint64_t)(unsafe.Pointer(&v1)) { /* log(inf) == inf. */ + return x1 + } + if top&uint32(0x8000) != 0 || top&uint32(0x7ff0) == uint32(0x7ff0) { + return X__math_invalid(tls, x1) + } + /* x is subnormal, normalize it. */ + v1 = float64(x1 * float64(4.503599627370496e+15)) + ix = *(*Tuint64_t)(unsafe.Pointer(&v1)) + ix = uint64(ix - Uint64FromUint64(52)<> (Int32FromInt32(52) - Int32FromInt32(LOG2_TABLE_BITS)) % Uint64FromInt32(Int32FromInt32(1)<> int32(52)) /* arithmetic shift */ + iz = uint64(ix - tmp&(Uint64FromUint64(0xfff)< 0x1p-4: 0.547 ULP (0.550 ULP without fma). + ~ 0.5 + 2/N/ln2 + abs-poly-error*0x1p56 ULP (+ 0.003 ULP without fma). */ + p = **(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 16)) + float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 16 + 1*8))) + float64(r2*(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 16 + 2*8))+float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 16 + 3*8))))) + float64(r4*(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 16 + 4*8))+float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 16 + 5*8))))) + y1 = lo + Tdouble_t(r2*p) + hi + y = y1 + v1 = y + goto _11 +_11: + return v1 +} + +type Tlog2_data = struct { + Finvln2hi float64 + Finvln2lo float64 + Fpoly [6]float64 + Fpoly1 [10]float64 + Ftab [64]struct { + Finvc float64 + Flogc float64 + } +} + +const LOG2F_POLY_ORDER = 4 +const LOG2F_TABLE_BITS = 4 +const N6 = 16 +const OFF1 = 1060306944 + +/* +LOG2F_TABLE_BITS = 4 +LOG2F_POLY_ORDER = 4 + +ULP error: 0.752 (nearest rounding.) +Relative error: 1.9 * 2^-26 (before rounding.) +*/ + +func Xlog2f(tls *TLS, x1 float32) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x1=%v, (%v:)", tls, x1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var i, k int32 + var invc, logc, p, r, r2, y0, y1, z Tdouble_t + var ix, iz, tmp, top Tuint32_t + var y, v1 float32 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = i, invc, ix, iz, k, logc, p, r, r2, tmp, top, y, y0, y1, z, v1 + ix = *(*Tuint32_t)(unsafe.Pointer(&x1)) + /* Fix sign of zero with downward rounding when x==1. */ + if Bool(int32(WANT_ROUNDING) != 0) && ix == uint32(0x3f800000) { + return Float32FromInt32(0) + } + if ix-uint32(0x00800000) >= Uint32FromInt32(Int32FromInt32(0x7f800000)-Int32FromInt32(0x00800000)) { + /* x < 0x1p-126 or inf or nan. */ + if ix*uint32(2) == uint32(0) { + return X__math_divzerof(tls, uint32(1)) + } + if ix == uint32(0x7f800000) { /* log2(inf) == inf. */ + return x1 + } + if ix&uint32(0x80000000) != 0 || ix*uint32(2) >= uint32(0xff000000) { + return X__math_invalidf(tls, x1) + } + /* x is subnormal, normalize it. */ + v1 = float32(x1 * Float32FromFloat32(8.388608e+06)) + ix = *(*Tuint32_t)(unsafe.Pointer(&v1)) + ix = ix - Uint32FromInt32(Int32FromInt32(23)<> (Int32FromInt32(23) - Int32FromInt32(LOG2F_TABLE_BITS)) % Uint32FromInt32(Int32FromInt32(1)<> int32(23) /* arithmetic shift */ + invc = (**(**struct { + Finvc float64 + Flogc float64 + })(__ccgo_up(uintptr(unsafe.Pointer(&X__log2f_data)) + uintptr(i)*16))).Finvc + logc = (**(**struct { + Finvc float64 + Flogc float64 + })(__ccgo_up(uintptr(unsafe.Pointer(&X__log2f_data)) + uintptr(i)*16))).Flogc + z = float64(*(*float32)(unsafe.Pointer(&iz))) + /* log2(x) = log1p(z/c-1)/ln2 + log2(c) + k */ + r = Tdouble_t(z*invc) - Float64FromInt32(1) + y0 = logc + float64(k) + /* Pipelined polynomial evaluation to approximate log1p(r)/ln2. */ + r2 = Tdouble_t(r * r) + y1 = float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2f_data)) + 256 + 1*8))*r) + **(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2f_data)) + 256 + 2*8)) + y1 = float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2f_data)) + 256))*r2) + y1 + p = float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2f_data)) + 256 + 3*8))*r) + y0 + y1 = Tdouble_t(y1*r2) + p + y = float32(y1) + v1 = y + goto _3 +_3: + return v1 +} + +type Tlog2f_data = struct { + Ftab [16]struct { + Finvc float64 + Flogc float64 + } + Fpoly [4]float64 +} + +func Xlog2l(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xlog2(tls, x) +} + +const N7 = 128 + +type Tlog_data = struct { + Fln2hi float64 + Fln2lo float64 + Fpoly [5]float64 + Fpoly1 [11]float64 + Ftab [128]struct { + Finvc float64 + Flogc float64 + } +} + +/* +special cases: + logb(+-0) = -inf, and raise divbyzero + logb(+-inf) = +inf + logb(nan) = nan +*/ + +func Xlogb(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uint64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _ = v1 + *(*float64)(unsafe.Pointer(bp)) = x + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + if !(BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) < Uint64FromUint64(0x7ff)< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uint32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _ = v1 + *(*float32)(unsafe.Pointer(bp)) = x + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + if !(BoolInt32(v1&Uint32FromInt32(0x7fffffff) < Uint32FromInt32(0x7f800000)) != 0) { + return float32(x * x) + } + if x == Float32FromInt32(0) { + return float32(-Int32FromInt32(1)) / float32(x*x) + } + return float32(Xilogbf(tls, x)) +} + +func Xlogbl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uint64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _ = v1 + *(*float64)(unsafe.Pointer(bp)) = x + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + if !(BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) < Uint64FromUint64(0x7ff)< %v", r1) }() + } + var i, k int32 + var invc, logc, r, r2, y0, y1, z Tdouble_t + var ix, iz, tmp Tuint32_t + var y, v1 float32 + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = i, invc, ix, iz, k, logc, r, r2, tmp, y, y0, y1, z, v1 + ix = *(*Tuint32_t)(unsafe.Pointer(&x1)) + /* Fix sign of zero with downward rounding when x==1. */ + if Bool(int32(WANT_ROUNDING) != 0) && ix == uint32(0x3f800000) { + return Float32FromInt32(0) + } + if ix-uint32(0x00800000) >= Uint32FromInt32(Int32FromInt32(0x7f800000)-Int32FromInt32(0x00800000)) { + /* x < 0x1p-126 or inf or nan. */ + if ix*uint32(2) == uint32(0) { + return X__math_divzerof(tls, uint32(1)) + } + if ix == uint32(0x7f800000) { /* log(inf) == inf. */ + return x1 + } + if ix&uint32(0x80000000) != 0 || ix*uint32(2) >= uint32(0xff000000) { + return X__math_invalidf(tls, x1) + } + /* x is subnormal, normalize it. */ + v1 = float32(x1 * Float32FromFloat32(8.388608e+06)) + ix = *(*Tuint32_t)(unsafe.Pointer(&v1)) + ix = ix - Uint32FromInt32(Int32FromInt32(23)<> (Int32FromInt32(23) - Int32FromInt32(LOGF_TABLE_BITS)) % Uint32FromInt32(Int32FromInt32(1)<> int32(23) /* arithmetic shift */ + iz = ix - tmp&uint32(0xff800000) + invc = (**(**struct { + Finvc float64 + Flogc float64 + })(__ccgo_up(uintptr(unsafe.Pointer(&X__logf_data)) + uintptr(i)*16))).Finvc + logc = (**(**struct { + Finvc float64 + Flogc float64 + })(__ccgo_up(uintptr(unsafe.Pointer(&X__logf_data)) + uintptr(i)*16))).Flogc + z = float64(*(*float32)(unsafe.Pointer(&iz))) + /* log(x) = log1p(z/c-1) + log(c) + k*Ln2 */ + r = Tdouble_t(z*invc) - Float64FromInt32(1) + y0 = logc + Tdouble_t(float64(k)*X__logf_data.Fln2) + /* Pipelined polynomial evaluation to approximate log1p(r). */ + r2 = Tdouble_t(r * r) + y1 = float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__logf_data)) + 264 + 1*8))*r) + **(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__logf_data)) + 264 + 2*8)) + y1 = float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__logf_data)) + 264))*r2) + y1 + y1 = Tdouble_t(y1*r2) + (y0 + r) + y = float32(y1) + v1 = y + goto _3 +_3: + return v1 +} + +type Tlogf_data = struct { + Ftab [16]struct { + Finvc float64 + Flogc float64 + } + Fln2 float64 + Fpoly [3]float64 +} + +func Xlogl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xlog(tls, x) +} + +/* +If the result cannot be represented (overflow, nan), then +lrint raises the invalid exception. + +Otherwise if the input was not an integer then the inexact +exception is raised. + +C99 is a bit vague about whether inexact exception is +allowed to be raised when invalid is raised. +(F.9 explicitly allows spurious inexact exceptions, F.9.6.5 +does not make it clear if that rule applies to lrint, but +IEEE 754r 7.8 seems to forbid spurious inexact exception in +the ineger conversion functions) + +So we try to make sure that no spurious inexact exception is +raised in case of an overflow. + +If the bit size of long > precision of double, then there +cannot be inexact rounding in case the result overflows, +otherwise LONG_MAX and LONG_MIN can be represented exactly +as a double. +*/ + +func Xlrint(tls *TLS, x float64) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int64(Xrint(tls, x)) +} + +/* uses LONG_MAX > 2^24, see comments in lrint.c */ + +func Xlrintf(tls *TLS, x float32) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int64(Xrintf(tls, x)) +} + +func Xlrintl(tls *TLS, x float64) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xlrint(tls, x) +} + +func Xlround(tls *TLS, x float64) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int64(Xround(tls, x)) +} + +func Xlroundf(tls *TLS, x float32) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int64(Xroundf(tls, x)) +} + +func Xlroundl(tls *TLS, x float64) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int64(Xroundl(tls, x)) +} + +func Xmodf(tls *TLS, x float64, iptr uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v iptr=%v, (%v:)", tls, x, iptr, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e int32 + var mask Tuint64_t + var v1 uintptr + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _ = e, mask, v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + e = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp))>>Int32FromInt32(52)&Uint64FromInt32(0x7ff)) - int32(0x3ff) + /* no fractional part */ + if e >= int32(52) { + **(**float64)(__ccgo_up(iptr)) = x + if e == int32(0x400) && *(*Tuint64_t)(unsafe.Pointer(bp))<> Int32FromInt32(12) >> e) + if *(*Tuint64_t)(unsafe.Pointer(bp))&mask == uint64(0) { + **(**float64)(__ccgo_up(iptr)) = x + v1 = bp + *(*Tuint64_t)(unsafe.Pointer(v1)) = Tuint64_t(*(*Tuint64_t)(unsafe.Pointer(v1)) & (Uint64FromUint64(1) << Int32FromInt32(63))) + return *(*float64)(unsafe.Pointer(bp)) + } + *(*Tuint64_t)(unsafe.Pointer(bp)) &= ^mask + **(**float64)(__ccgo_up(iptr)) = *(*float64)(unsafe.Pointer(bp)) + return x - *(*float64)(unsafe.Pointer(bp)) +} + +func Xmodff(tls *TLS, x float32, iptr uintptr) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v iptr=%v, (%v:)", tls, x, iptr, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e int32 + var mask Tuint32_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _ = e, mask + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + e = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp))>>Int32FromInt32(23)&Uint32FromInt32(0xff)) - int32(0x7f) + /* no fractional part */ + if e >= int32(23) { + **(**float32)(__ccgo_up(iptr)) = x + if e == int32(0x80) && *(*Tuint32_t)(unsafe.Pointer(bp))<> e) + if *(*Tuint32_t)(unsafe.Pointer(bp))&mask == uint32(0) { + **(**float32)(__ccgo_up(iptr)) = x + *(*Tuint32_t)(unsafe.Pointer(bp)) &= uint32(0x80000000) + return *(*float32)(unsafe.Pointer(bp)) + } + *(*Tuint32_t)(unsafe.Pointer(bp)) &= ^mask + **(**float32)(__ccgo_up(iptr)) = *(*float32)(unsafe.Pointer(bp)) + return x - *(*float32)(unsafe.Pointer(bp)) +} + +func Xmodfl(tls *TLS, x float64, iptr uintptr) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x=%v iptr=%v, (%v:)", tls, x, iptr, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var r float64 + var _ /* d at bp+0 */ float64 + _ = r + r = Xmodf(tls, x, bp) + **(**float64)(__ccgo_up(iptr)) = float64(**(**float64)(__ccgo_up(bp))) + return r +} + +func Xnan(tls *TLS, s uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + return float64(X__builtin_nanf(tls, __ccgo_ts)) +} + +func Xnanf(tls *TLS, s uintptr) (r float32) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__builtin_nanf(tls, __ccgo_ts) +} + +func Xnanl(tls *TLS, s uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + return float64(X__builtin_nanf(tls, __ccgo_ts)) +} + +func Xnextafter(tls *TLS, x3 float64, y3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v y3=%v, (%v:)", tls, x3, y3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var ax, ay Tuint64_t + var e int32 + var y float32 + var y1, y2 float64 + var v1, v3 uint64 + var v5 bool + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + var _ /* ux at bp+8 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + var _ /* uy at bp+16 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _, _, _ = ax, ay, e, y, y1, y2, v1, v3, v5 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp + 8)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp + 8)) = x3 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp + 16)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp + 16)) = y3 + *(*float64)(unsafe.Pointer(bp)) = x3 + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + ; + if v5 = BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)< ay || (*(*Tuint64_t)(unsafe.Pointer(bp + 8))^*(*Tuint64_t)(unsafe.Pointer(bp + 16)))&(Uint64FromUint64(1)<> int32(52) & uint64(0x7ff)) + /* raise overflow if ux.f is infinite and x is finite */ + if e == int32(0x7ff) { + if uint64(8) == uint64(4) { + y = float32(x3 + x3) + } else { + if uint64(8) == uint64(8) { + y1 = x3 + x3 + } else { + y2 = x3 + x3 + } + } + } + /* raise underflow if ux.f is subnormal or zero */ + if e == 0 { + if uint64(8) == uint64(4) { + y = float32(float64(x3*x3) + float64(*(*float64)(unsafe.Pointer(bp + 8))**(*float64)(unsafe.Pointer(bp + 8)))) + } else { + if uint64(8) == uint64(8) { + y1 = float64(x3*x3) + float64(*(*float64)(unsafe.Pointer(bp + 8))**(*float64)(unsafe.Pointer(bp + 8))) + } else { + y2 = float64(x3*x3) + float64(*(*float64)(unsafe.Pointer(bp + 8))**(*float64)(unsafe.Pointer(bp + 8))) + } + } + } + return *(*float64)(unsafe.Pointer(bp + 8)) +} + +func Xnextafterf(tls *TLS, x3 float32, y3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v y3=%v, (%v:)", tls, x3, y3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ax, ay, e Tuint32_t + var y float32 + var y1, y2 float64 + var v1, v3 uint32 + var v5 bool + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + var _ /* ux at bp+4 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + var _ /* uy at bp+8 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _, _, _, _ = ax, ay, e, y, y1, y2, v1, v3, v5 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp + 4)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp + 4)) = x3 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp + 8)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp + 8)) = y3 + *(*float32)(unsafe.Pointer(bp)) = x3 + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + ; + if v5 = BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0; !v5 { + *(*float32)(unsafe.Pointer(bp)) = y3 + v3 = *(*uint32)(unsafe.Pointer(bp)) + goto _4 + _4: + } + if v5 || BoolInt32(v3&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return x3 + y3 + } + if *(*Tuint32_t)(unsafe.Pointer(bp + 4)) == *(*Tuint32_t)(unsafe.Pointer(bp + 8)) { + return y3 + } + ax = *(*Tuint32_t)(unsafe.Pointer(bp + 4)) & uint32(0x7fffffff) + ay = *(*Tuint32_t)(unsafe.Pointer(bp + 8)) & uint32(0x7fffffff) + if ax == uint32(0) { + if ay == uint32(0) { + return y3 + } + *(*Tuint32_t)(unsafe.Pointer(bp + 4)) = *(*Tuint32_t)(unsafe.Pointer(bp + 8))&uint32(0x80000000) | uint32(1) + } else { + if ax > ay || (*(*Tuint32_t)(unsafe.Pointer(bp + 4))^*(*Tuint32_t)(unsafe.Pointer(bp + 8)))&uint32(0x80000000) != 0 { + *(*Tuint32_t)(unsafe.Pointer(bp + 4)) = *(*Tuint32_t)(unsafe.Pointer(bp + 4)) - 1 + } else { + *(*Tuint32_t)(unsafe.Pointer(bp + 4)) = *(*Tuint32_t)(unsafe.Pointer(bp + 4)) + 1 + } + } + e = *(*Tuint32_t)(unsafe.Pointer(bp + 4)) & uint32(0x7f800000) + /* raise overflow if ux.f is infinite and x is finite */ + if e == uint32(0x7f800000) { + if uint64(4) == uint64(4) { + y = x3 + x3 + } else { + if uint64(4) == uint64(8) { + y1 = float64(x3 + x3) + } else { + y2 = float64(x3 + x3) + } + } + } + /* raise underflow if ux.f is subnormal or zero */ + if e == uint32(0) { + if uint64(4) == uint64(4) { + y = float32(x3*x3) + float32(*(*float32)(unsafe.Pointer(bp + 4))**(*float32)(unsafe.Pointer(bp + 4))) + } else { + if uint64(4) == uint64(8) { + y1 = float64(float32(x3*x3) + float32(*(*float32)(unsafe.Pointer(bp + 4))**(*float32)(unsafe.Pointer(bp + 4)))) + } else { + y2 = float64(float32(x3*x3) + float32(*(*float32)(unsafe.Pointer(bp + 4))**(*float32)(unsafe.Pointer(bp + 4)))) + } + } + } + return *(*float32)(unsafe.Pointer(bp + 4)) +} + +func Xnextafterl(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xnextafter(tls, x, y) +} + +func Xnexttoward(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xnextafter(tls, x, y) +} + +func Xnexttowardf(tls *TLS, x3 float32, y3 float64) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v y3=%v, (%v:)", tls, x3, y3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var e Tuint32_t + var y float32 + var y1, y2 float64 + var v1 uint32 + var v3 uint64 + var v5 bool + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + var _ /* __u at bp+8 */ struct { + F__i [0]uint64 + F__f float64 + } + var _ /* ux at bp+16 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _, _ = e, y, y1, y2, v1, v3, v5 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp + 16)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp + 16)) = x3 + *(*float32)(unsafe.Pointer(bp)) = x3 + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + ; + if v5 = BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0; !v5 { + *(*float64)(unsafe.Pointer(bp + 8)) = y3 + v3 = *(*uint64)(unsafe.Pointer(bp + 8)) + goto _4 + _4: + } + if v5 || BoolInt32(v3&(-Uint64FromUint64(1)>>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(63)) != 0 { + *(*Tuint32_t)(unsafe.Pointer(bp + 16)) |= uint32(0x80000000) + } + } else { + if float64(x3) < y3 { + *(*float32)(unsafe.Pointer(bp)) = x3 + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _9 + _9: + if Int32FromUint32(v1>>Int32FromInt32(31)) != 0 { + *(*Tuint32_t)(unsafe.Pointer(bp + 16)) = *(*Tuint32_t)(unsafe.Pointer(bp + 16)) - 1 + } else { + *(*Tuint32_t)(unsafe.Pointer(bp + 16)) = *(*Tuint32_t)(unsafe.Pointer(bp + 16)) + 1 + } + } else { + *(*float32)(unsafe.Pointer(bp)) = x3 + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _11 + _11: + if Int32FromUint32(v1>>Int32FromInt32(31)) != 0 { + *(*Tuint32_t)(unsafe.Pointer(bp + 16)) = *(*Tuint32_t)(unsafe.Pointer(bp + 16)) + 1 + } else { + *(*Tuint32_t)(unsafe.Pointer(bp + 16)) = *(*Tuint32_t)(unsafe.Pointer(bp + 16)) - 1 + } + } + } + e = *(*Tuint32_t)(unsafe.Pointer(bp + 16)) & uint32(0x7f800000) + /* raise overflow if ux.f is infinite and x is finite */ + if e == uint32(0x7f800000) { + if uint64(4) == uint64(4) { + y = x3 + x3 + } else { + if uint64(4) == uint64(8) { + y1 = float64(x3 + x3) + } else { + y2 = float64(x3 + x3) + } + } + } + /* raise underflow if ux.f is subnormal or zero */ + if e == uint32(0) { + if uint64(4) == uint64(4) { + y = float32(x3*x3) + float32(*(*float32)(unsafe.Pointer(bp + 16))**(*float32)(unsafe.Pointer(bp + 16))) + } else { + if uint64(4) == uint64(8) { + y1 = float64(float32(x3*x3) + float32(*(*float32)(unsafe.Pointer(bp + 16))**(*float32)(unsafe.Pointer(bp + 16)))) + } else { + y2 = float64(float32(x3*x3) + float32(*(*float32)(unsafe.Pointer(bp + 16))**(*float32)(unsafe.Pointer(bp + 16)))) + } + } + } + return *(*float32)(unsafe.Pointer(bp + 16)) +} + +func Xnexttowardl(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xnextafterl(tls, x, y) +} + +const OFF2 = 4604531861337669632 +const POW_LOG_POLY_ORDER = 8 +const POW_LOG_TABLE_BITS = 7 +const SIGN_BIAS = 262144 + +/* +Worst-case error: 0.54 ULP (~= ulperr_exp + 1024*Ln2*relerr_log*2^53) +relerr_log: 1.3 * 2^-68 (Relative error of log, 1.5 * 2^-68 without fma) +ulperr_exp: 0.509 ULP (ULP error of exp, 0.511 ULP without fma) +*/ + +// C documentation +// +// /* Top 12 bits of a double (sign and exponent bits). */ +func _top124(tls *TLS, x float64) (r Tuint32_t) { + return uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(52)) +} + +// C documentation +// +// /* Compute y+TAIL = log(x) where the rounded result is y and TAIL has about +// additional 15 bits precision. IX is the bit representation of x, but +// normalized in the subnormal range using the sign bit for the exponent. */ +func _log_inline(tls *TLS, ix Tuint64_t, tail uintptr) (r1 Tdouble_t) { + var ar, ar2, ar3, hi, invc, kd, lo, lo1, lo2, lo3, lo4, logc, logctail, p, r, t1, t2, y, z Tdouble_t + var i, k int32 + var iz, tmp Tuint64_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = ar, ar2, ar3, hi, i, invc, iz, k, kd, lo, lo1, lo2, lo3, lo4, logc, logctail, p, r, t1, t2, tmp, y, z + /* x = 2^k z; where z is in range [OFF,2*OFF) and exact. + The range is split into N subintervals. + The ith subinterval contains z and c is near its center. */ + tmp = ix - uint64(OFF2) + i = Int32FromUint64(tmp >> (Int32FromInt32(52) - Int32FromInt32(POW_LOG_TABLE_BITS)) % Uint64FromInt32(Int32FromInt32(1)<> int32(52)) /* arithmetic shift */ + iz = uint64(ix - tmp&(Uint64FromUint64(0xfff)< 0, the exponent of scale might have overflowed by <= 460. */ + sbits = uint64(sbits - Uint64FromUint64(1009)<= _top124(tls, float64(512))-_top124(tls, float64(5.551115123125783e-17)) { + if abstop-_top124(tls, float64(5.551115123125783e-17)) >= uint32(0x80000000) { + /* Avoid spurious underflow for tiny x. */ + /* Note: 0 is common input. */ + one = float64(1) + x1 + if sign_bias != 0 { + v1 = -one + } else { + v1 = one + } + return v1 + } + if abstop >= _top124(tls, float64(1024)) { + /* Note: inf and nan are already handled. */ + v2 = x1 + if *(*Tuint64_t)(unsafe.Pointer(&v2))>>int32(63) != 0 { + return X__math_uflow(tls, sign_bias) + } else { + return X__math_oflow(tls, sign_bias) + } + } + /* Large x is special cased below. */ + abstop = uint32(0) + } + /* exp(x) = 2^(k/N) * exp(r), with exp(r) in [2^(-1/2N),2^(1/2N)]. */ + /* x = ln2/N*k + r, with int k and r in [-ln2/2N, ln2/2N]. */ + z = Tdouble_t(X__exp_data.Finvln2N * x1) + /* z - kd is in [-1, 1] in non-nearest rounding modes. */ + y = z + X__exp_data.Fshift + v2 = y + goto _4 +_4: + kd = v2 + v2 = kd + ki = *(*Tuint64_t)(unsafe.Pointer(&v2)) + kd = kd - X__exp_data.Fshift + r = x1 + Tdouble_t(kd*X__exp_data.Fnegln2hiN) + Tdouble_t(kd*X__exp_data.Fnegln2loN) + /* The code assumes 2^-200 < |xtail| < 2^-8/N. */ + r = r + xtail + /* 2^(k/N) ~= scale * (1 + tail). */ + idx = uint64(2) * (ki % Uint64FromInt32(Int32FromInt32(1)< 2^-200 and scale > 2^-739, so there + is no spurious underflow here even without fma. */ + y = scale + Tdouble_t(scale*tmp) + v2 = y + goto _8 +_8: + return v2 +} + +// C documentation +// +// /* Returns 0 if not int, 1 if odd int, 2 if even int. The argument is +// the bit representation of a non-zero finite floating-point value. */ +func _checkint(tls *TLS, iy Tuint64_t) (r int32) { + var e int32 + _ = e + e = Int32FromUint64(iy >> int32(52) & uint64(0x7ff)) + if e < int32(0x3ff) { + return 0 + } + if e > Int32FromInt32(0x3ff)+Int32FromInt32(52) { + return int32(2) + } + if iy&(uint64(1)<<(Int32FromInt32(0x3ff)+Int32FromInt32(52)-e)-uint64(1)) != 0 { + return 0 + } + if iy&(uint64(1)<<(Int32FromInt32(0x3ff)+Int32FromInt32(52)-e)) != 0 { + return int32(1) + } + return int32(2) +} + +// C documentation +// +// /* Returns 1 if input is the bit representation of 0, infinity or nan. */ +func _zeroinfnan(tls *TLS, i Tuint64_t) (r int32) { + var v1 float64 + _ = v1 + v1 = float64(X__builtin_inff(tls)) + return BoolInt32(uint64(2)*i-uint64(1) >= uint64(2)**(*Tuint64_t)(unsafe.Pointer(&v1))-uint64(1)) +} + +func Xpow(tls *TLS, x1 float64, y1 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x1=%v y1=%v, (%v:)", tls, x1, y1, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ehi, elo, hi, x2 Tdouble_t + var ix, iy Tuint64_t + var sign_bias, topx, topy Tuint32_t + var y, v1, v2 float64 + var yint int32 + var v4 bool + var _ /* lo at bp+0 */ Tdouble_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = ehi, elo, hi, ix, iy, sign_bias, topx, topy, x2, y, yint, v1, v2, v4 + sign_bias = uint32(0) + ix = *(*Tuint64_t)(unsafe.Pointer(&x1)) + iy = *(*Tuint64_t)(unsafe.Pointer(&y1)) + topx = _top124(tls, x1) + topy = _top124(tls, y1) + if topx-uint32(0x001) >= Uint32FromInt32(Int32FromInt32(0x7ff)-Int32FromInt32(0x001)) || topy&uint32(0x7ff)-uint32(0x3be) >= Uint32FromInt32(Int32FromInt32(0x43e)-Int32FromInt32(0x3be)) { + /* Note: if |y| > 1075 * ln2 * 2^53 ~= 0x1.749p62 then pow(x,y) = inf/0 + and if |y| < 2^-54 / 1075 ~= 0x1.e7b6p-65 then pow(x,y) = +-1. */ + /* Special cases: (x < 0x1p-126 or inf or nan) or + (|y| < 0x1p-65 or |y| >= 0x1p63 or nan). */ + if _zeroinfnan(tls, iy) != 0 { + if uint64(2)*iy == uint64(0) { + return float64(1) + } + v1 = float64(1) + if ix == *(*Tuint64_t)(unsafe.Pointer(&v1)) { + return float64(1) + } + v1 = float64(X__builtin_inff(tls)) + if v4 = uint64(2)*ix > uint64(2)**(*Tuint64_t)(unsafe.Pointer(&v1)); !v4 { + v2 = float64(X__builtin_inff(tls)) + } + if v4 || uint64(2)*iy > uint64(2)**(*Tuint64_t)(unsafe.Pointer(&v2)) { + return x1 + y1 + } + v1 = float64(1) + if uint64(2)*ix == uint64(2)**(*Tuint64_t)(unsafe.Pointer(&v1)) { + return float64(1) + } + v1 = float64(1) + if BoolInt32(uint64(2)*ix < uint64(2)**(*Tuint64_t)(unsafe.Pointer(&v1))) == BoolInt32(!(iy>>Int32FromInt32(63) != 0)) { + return float64(0) + } /* |x|<1 && y==inf or |x|>1 && y==-inf. */ + return float64(y1 * y1) + } + if _zeroinfnan(tls, ix) != 0 { + x2 = Tdouble_t(x1 * x1) + if ix>>int32(63) != 0 && _checkint(tls, iy) == int32(1) { + x2 = -x2 + } + /* Without the barrier some versions of clang hoist the 1/x2 and + thus division by zero exception can be signaled spuriously. */ + if iy>>int32(63) != 0 { + y = Float64FromInt32(1) / x2 + v2 = y + goto _9 + _9: + v1 = v2 + } else { + v1 = x2 + } + return v1 + } + /* Here x and y are non-zero finite. */ + if ix>>int32(63) != 0 { + /* Finite x < 0. */ + yint = _checkint(tls, iy) + if yint == 0 { + return X__math_invalid(tls, x1) + } + if yint == int32(1) { + sign_bias = Uint32FromInt32(Int32FromInt32(0x800) << Int32FromInt32(EXP_TABLE_BITS)) + } + ix = ix & uint64(0x7fffffffffffffff) + topx = topx & uint32(0x7ff) + } + if topy&uint32(0x7ff)-uint32(0x3be) >= Uint32FromInt32(Int32FromInt32(0x43e)-Int32FromInt32(0x3be)) { + /* Note: sign_bias == 0 here because y is not odd. */ + v1 = float64(1) + if ix == *(*Tuint64_t)(unsafe.Pointer(&v1)) { + return float64(1) + } + if topy&uint32(0x7ff) < uint32(0x3be) { + /* |y| < 2^-65, x^y ~= 1 + y*log(x). */ + if int32(WANT_ROUNDING) != 0 { + v2 = float64(1) + if ix > *(*Tuint64_t)(unsafe.Pointer(&v2)) { + v1 = float64(1) + y1 + } else { + v1 = float64(1) - y1 + } + return v1 + } else { + return float64(1) + } + } + v2 = float64(1) + if BoolInt32(ix > *(*Tuint64_t)(unsafe.Pointer(&v2))) == BoolInt32(topy < uint32(0x800)) { + v1 = X__math_oflow(tls, uint32(0)) + } else { + v1 = X__math_uflow(tls, uint32(0)) + } + return v1 + } + if topx == uint32(0) { + /* Normalize subnormal x so exponent becomes negative. */ + v1 = float64(x1 * float64(4.503599627370496e+15)) + ix = *(*Tuint64_t)(unsafe.Pointer(&v1)) + ix = ix & uint64(0x7fffffffffffffff) + ix = uint64(ix - Uint64FromUint64(52)<> (Int32FromInt32(23) - Int32FromInt32(POWF_LOG2_TABLE_BITS)) % Uint32FromInt32(Int32FromInt32(1)<> (Int32FromInt32(23) - Int32FromInt32(POWF_SCALE_BITS)) /* arithmetic shift */ + invc = (**(**struct { + Finvc float64 + Flogc float64 + })(__ccgo_up(uintptr(unsafe.Pointer(&X__powf_log2_data)) + uintptr(i)*16))).Finvc + logc = (**(**struct { + Finvc float64 + Flogc float64 + })(__ccgo_up(uintptr(unsafe.Pointer(&X__powf_log2_data)) + uintptr(i)*16))).Flogc + z = float64(*(*float32)(unsafe.Pointer(&iz))) + /* log2(x) = log1p(z/c-1)/ln2 + log2(c) + k */ + r = Tdouble_t(z*invc) - Float64FromInt32(1) + y0 = logc + float64(k) + /* Pipelined polynomial evaluation to approximate log1p(r)/ln2. */ + r2 = Tdouble_t(r * r) + y = float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__powf_log2_data)) + 256))*r) + **(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__powf_log2_data)) + 256 + 1*8)) + p = float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__powf_log2_data)) + 256 + 2*8))*r) + **(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__powf_log2_data)) + 256 + 3*8)) + r4 = Tdouble_t(r2 * r2) + q = float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__powf_log2_data)) + 256 + 4*8))*r) + y0 + q = Tdouble_t(p*r2) + q + y = Tdouble_t(y*r4) + q + return y +} + +// C documentation +// +// /* The output of log2 and thus the input of exp2 is either scaled by N +// (in case of fast toint intrinsics) or not. The unscaled xd must be +// in [-1021,1023], sign_bias sets the sign of the result. */ +func _exp2_inline(tls *TLS, xd Tdouble_t, sign_bias Tuint32_t) (r1 float32) { + var kd, r, r2, s, y2, z Tdouble_t + var ki, ski, t Tuint64_t + var y, v4 float32 + var y1, v1 float64 + _, _, _, _, _, _, _, _, _, _, _, _, _ = kd, ki, r, r2, s, ski, t, y, y1, y2, z, v1, v4 + /* x = k/N + r with r in [-1/(2N), 1/(2N)] */ + y1 = xd + X__exp2f_data.Fshift_scaled + v1 = y1 + goto _2 +_2: + kd = v1 + v1 = kd + ki = *(*Tuint64_t)(unsafe.Pointer(&v1)) + kd = kd - X__exp2f_data.Fshift_scaled /* k/N */ + r = xd - kd + /* exp2(x) = 2^(k/N) * 2^r ~= s * (C0*r^3 + C1*r^2 + C2*r + 1) */ + t = **(**Tuint64_t)(__ccgo_up(uintptr(unsafe.Pointer(&X__exp2f_data)) + uintptr(ki%Uint64FromInt32(Int32FromInt32(1)<> int32(23) & uint32(0xff)) + if e < int32(0x7f) { + return 0 + } + if e > Int32FromInt32(0x7f)+Int32FromInt32(23) { + return int32(2) + } + if iy&Uint32FromInt32(Int32FromInt32(1)<<(Int32FromInt32(0x7f)+Int32FromInt32(23)-e)-Int32FromInt32(1)) != 0 { + return 0 + } + if iy&Uint32FromInt32(Int32FromInt32(1)<<(Int32FromInt32(0x7f)+Int32FromInt32(23)-e)) != 0 { + return int32(1) + } + return int32(2) +} + +func _zeroinfnan1(tls *TLS, ix Tuint32_t) (r int32) { + return BoolInt32(uint32(2)*ix-uint32(1) >= Uint32FromUint32(2)*Uint32FromInt32(0x7f800000)-Uint32FromInt32(1)) +} + +func Xpowf(tls *TLS, x1 float32, y1 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x1=%v y1=%v, (%v:)", tls, x1, y1, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ix, iy, sign_bias Tuint32_t + var logx, ylogx Tdouble_t + var x2 Tfloat_t + var y, v1, v2 float32 + var yint int32 + var v5, v6 float64 + _, _, _, _, _, _, _, _, _, _, _, _ = ix, iy, logx, sign_bias, x2, y, yint, ylogx, v1, v2, v5, v6 + sign_bias = uint32(0) + ix = *(*Tuint32_t)(unsafe.Pointer(&x1)) + iy = *(*Tuint32_t)(unsafe.Pointer(&y1)) + if ix-uint32(0x00800000) >= Uint32FromInt32(Int32FromInt32(0x7f800000)-Int32FromInt32(0x00800000)) || _zeroinfnan1(tls, iy) != 0 { + /* Either (x < 0x1p-126 or inf or nan) or (y is 0 or inf or nan). */ + if _zeroinfnan1(tls, iy) != 0 { + if uint32(2)*iy == uint32(0) { + return Float32FromFloat32(1) + } + if ix == uint32(0x3f800000) { + return Float32FromFloat32(1) + } + if uint32(2)*ix > Uint32FromUint32(2)*Uint32FromInt32(0x7f800000) || uint32(2)*iy > Uint32FromUint32(2)*Uint32FromInt32(0x7f800000) { + return x1 + y1 + } + if uint32(2)*ix == Uint32FromInt32(Int32FromInt32(2)*Int32FromInt32(0x3f800000)) { + return Float32FromFloat32(1) + } + if BoolInt32(uint32(2)*ix < Uint32FromInt32(Int32FromInt32(2)*Int32FromInt32(0x3f800000))) == BoolInt32(!(iy&Uint32FromUint32(0x80000000) != 0)) { + return Float32FromFloat32(0) + } /* |x|<1 && y==inf or |x|>1 && y==-inf. */ + return float32(y1 * y1) + } + if _zeroinfnan1(tls, ix) != 0 { + x2 = Tfloat_t(x1 * x1) + if ix&uint32(0x80000000) != 0 && _checkint1(tls, iy) == int32(1) { + x2 = -x2 + } + /* Without the barrier some versions of clang hoist the 1/x2 and + thus division by zero exception can be signaled spuriously. */ + if iy&uint32(0x80000000) != 0 { + y = Float32FromInt32(1) / x2 + v2 = y + goto _3 + _3: + v1 = v2 + } else { + v1 = x2 + } + return v1 + } + /* x and y are non-zero finite. */ + if ix&uint32(0x80000000) != 0 { + /* Finite x < 0. */ + yint = _checkint1(tls, iy) + if yint == 0 { + return X__math_invalidf(tls, x1) + } + if yint == int32(1) { + sign_bias = Uint32FromInt32(Int32FromInt32(1) << (Int32FromInt32(EXP2F_TABLE_BITS) + Int32FromInt32(11))) + } + ix = ix & uint32(0x7fffffff) + } + if ix < uint32(0x00800000) { + /* Normalize subnormal x so exponent becomes negative. */ + v1 = float32(x1 * Float32FromFloat32(8.388608e+06)) + ix = *(*Tuint32_t)(unsafe.Pointer(&v1)) + ix = ix & uint32(0x7fffffff) + ix = ix - Uint32FromInt32(Int32FromInt32(23)<>int32(47)&uint64(0xffff) >= *(*Tuint64_t)(unsafe.Pointer(&v6))>>int32(47) { + /* |y*log(x)| >= 126. */ + if ylogx > Tdouble_t(float64(127.99999995700433)*float64(Int32FromInt32(1)< %v", r) }() + } + return Xpow(tls, x, y) +} + +func Xremainder(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* q at bp+0 */ int32 + return Xremquo(tls, x, y, bp) +} + +func Xdrem(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xremainder(tls, x, y) +} + +func Xremainderf(tls *TLS, x float32, y float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* q at bp+0 */ int32 + return Xremquof(tls, x, y, bp) +} + +func Xdremf(tls *TLS, x float32, y float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xremainderf(tls, x, y) +} + +func Xremainderl(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xremainder(tls, x, y) +} + +func Xremquo(tls *TLS, x float64, y float64, quo uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v quo=%v, (%v:)", tls, x, y, quo, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var ex, ey, sx, sy, v10 int32 + var i, uxi Tuint64_t + var q Tuint32_t + var v1 uint64 + var v11 float64 + var v3 bool + var v6 uintptr + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + var _ /* ux at bp+8 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + var _ /* uy at bp+16 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _, _, _, _, _, _ = ex, ey, i, q, sx, sy, uxi, v1, v10, v11, v3, v6 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp + 8)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp + 8)) = x + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp + 16)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp + 16)) = y + ex = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp + 8)) >> int32(52) & uint64(0x7ff)) + ey = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp + 16)) >> int32(52) & uint64(0x7ff)) + sx = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp + 8)) >> int32(63)) + sy = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp + 16)) >> int32(63)) + uxi = *(*Tuint64_t)(unsafe.Pointer(bp + 8)) + **(**int32)(__ccgo_up(quo)) = 0 + if v3 = *(*Tuint64_t)(unsafe.Pointer(bp + 16))<>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>int32(63) == uint64(0)) { + break + } + goto _4 + _4: + ; + ex = ex - 1 + i = i << uint64(1) + } + uxi = uxi << Uint64FromInt32(-ex+int32(1)) + } else { + uxi = uint64(uxi & (-Uint64FromUint64(1) >> Int32FromInt32(12))) + uxi = uint64(uxi | Uint64FromUint64(1)<>int32(63) == uint64(0)) { + break + } + goto _5 + _5: + ; + ey = ey - 1 + i = i << uint64(1) + } + *(*Tuint64_t)(unsafe.Pointer(bp + 16)) <<= Uint64FromInt32(-ey + int32(1)) + } else { + v6 = bp + 16 + *(*Tuint64_t)(unsafe.Pointer(v6)) = Tuint64_t(*(*Tuint64_t)(unsafe.Pointer(v6)) & (-Uint64FromUint64(1) >> Int32FromInt32(12))) + v6 = bp + 16 + *(*Tuint64_t)(unsafe.Pointer(v6)) = Tuint64_t(*(*Tuint64_t)(unsafe.Pointer(v6)) | Uint64FromUint64(1)< ey) { + break + } + i = uxi - *(*Tuint64_t)(unsafe.Pointer(bp + 16)) + if i>>int32(63) == uint64(0) { + uxi = i + q = q + 1 + } + uxi = uxi << uint64(1) + q = q << uint32(1) + goto _8 + _8: + ; + ex = ex - 1 + } + i = uxi - *(*Tuint64_t)(unsafe.Pointer(bp + 16)) + if i>>int32(63) == uint64(0) { + uxi = i + q = q + 1 + } + if uxi == uint64(0) { + ex = -int32(60) + } else { + for { + if !(uxi>>int32(52) == uint64(0)) { + break + } + goto _9 + _9: + ; + uxi = uxi << uint64(1) + ex = ex - 1 + } + } + goto end +end: + ; + /* scale result and decide between |x| and |x|-|y| */ + if ex > 0 { + uxi = uint64(uxi - Uint64FromUint64(1)<> Uint64FromInt32(-ex+int32(1)) + } + *(*Tuint64_t)(unsafe.Pointer(bp + 8)) = uxi + x = *(*float64)(unsafe.Pointer(bp + 8)) + if sy != 0 { + y = -y + } + if ex == ey || ex+int32(1) == ey && (float64(Float64FromInt32(2)*x) > y || float64(Float64FromInt32(2)*x) == y && q%uint32(2) != 0) { + x = x - y + q = q + 1 + } + q = q & uint32(0x7fffffff) + if sx^sy != 0 { + v10 = -Int32FromUint32(q) + } else { + v10 = Int32FromUint32(q) + } + **(**int32)(__ccgo_up(quo)) = v10 + if sx != 0 { + v11 = -x + } else { + v11 = x + } + return v11 +} + +func Xremquof(tls *TLS, x float32, y float32, quo uintptr) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v quo=%v, (%v:)", tls, x, y, quo, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ex, ey, sx, sy, v8 int32 + var i, q, uxi Tuint32_t + var v1 uint32 + var v3 bool + var v9 float32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + var _ /* ux at bp+4 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + var _ /* uy at bp+8 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _, _, _, _, _, _ = ex, ey, i, q, sx, sy, uxi, v1, v3, v8, v9 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp + 4)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp + 4)) = x + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp + 8)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp + 8)) = y + ex = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp + 4)) >> int32(23) & uint32(0xff)) + ey = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp + 8)) >> int32(23) & uint32(0xff)) + sx = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp + 4)) >> int32(31)) + sy = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp + 8)) >> int32(31)) + uxi = *(*Tuint32_t)(unsafe.Pointer(bp + 4)) + **(**int32)(__ccgo_up(quo)) = 0 + if v3 = *(*Tuint32_t)(unsafe.Pointer(bp + 8))< uint32(0x7f800000)) != 0 || ex == int32(0xff) { + return float32(x*y) / float32(x*y) + } + if *(*Tuint32_t)(unsafe.Pointer(bp + 4))<>int32(31) == uint32(0)) { + break + } + goto _4 + _4: + ; + ex = ex - 1 + i = i << uint32(1) + } + uxi = uxi << Uint32FromInt32(-ex+int32(1)) + } else { + uxi = uxi & (-Uint32FromUint32(1) >> Int32FromInt32(9)) + uxi = uxi | Uint32FromUint32(1)<>int32(31) == uint32(0)) { + break + } + goto _5 + _5: + ; + ey = ey - 1 + i = i << uint32(1) + } + *(*Tuint32_t)(unsafe.Pointer(bp + 8)) <<= Uint32FromInt32(-ey + int32(1)) + } else { + *(*Tuint32_t)(unsafe.Pointer(bp + 8)) &= -Uint32FromUint32(1) >> Int32FromInt32(9) + *(*Tuint32_t)(unsafe.Pointer(bp + 8)) |= Uint32FromUint32(1) << Int32FromInt32(23) + } + q = uint32(0) + if ex < ey { + if ex+int32(1) == ey { + goto end + } + return x + } + /* x mod y */ + for { + if !(ex > ey) { + break + } + i = uxi - *(*Tuint32_t)(unsafe.Pointer(bp + 8)) + if i>>int32(31) == uint32(0) { + uxi = i + q = q + 1 + } + uxi = uxi << uint32(1) + q = q << uint32(1) + goto _6 + _6: + ; + ex = ex - 1 + } + i = uxi - *(*Tuint32_t)(unsafe.Pointer(bp + 8)) + if i>>int32(31) == uint32(0) { + uxi = i + q = q + 1 + } + if uxi == uint32(0) { + ex = -int32(30) + } else { + for { + if !(uxi>>int32(23) == uint32(0)) { + break + } + goto _7 + _7: + ; + uxi = uxi << uint32(1) + ex = ex - 1 + } + } + goto end +end: + ; + /* scale result and decide between |x| and |x|-|y| */ + if ex > 0 { + uxi = uxi - Uint32FromUint32(1)<> Uint32FromInt32(-ex+int32(1)) + } + *(*Tuint32_t)(unsafe.Pointer(bp + 4)) = uxi + x = *(*float32)(unsafe.Pointer(bp + 4)) + if sy != 0 { + y = -y + } + if ex == ey || ex+int32(1) == ey && (float32(Float32FromInt32(2)*x) > y || float32(Float32FromInt32(2)*x) == y && q%uint32(2) != 0) { + x = x - y + q = q + 1 + } + q = q & uint32(0x7fffffff) + if sx^sy != 0 { + v8 = -Int32FromUint32(q) + } else { + v8 = Int32FromUint32(q) + } + **(**int32)(__ccgo_up(quo)) = v8 + if sx != 0 { + v9 = -x + } else { + v9 = x + } + return v9 +} + +func Xremquol(tls *TLS, x float64, y float64, quo uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v quo=%v, (%v:)", tls, x, y, quo, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xremquo(tls, x, y, quo) +} + +const DBL_EPSILON9 = 2.220446049250313e-16 + +var _toint4 = Float64FromInt32(1) / Float64FromFloat64(2.220446049250313e-16) + +func Xrint(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e, s int32 + var y Tdouble_t + var v1 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _ = e, s, y, v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + e = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + s = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(63)) + if e >= Int32FromInt32(0x3ff)+Int32FromInt32(52) { + return x + } + if s != 0 { + y = x - _toint4 + _toint4 + } else { + y = x + _toint4 - _toint4 + } + if y == Float64FromInt32(0) { + if s != 0 { + v1 = -Float64FromFloat64(0) + } else { + v1 = Float64FromInt32(0) + } + return v1 + } + return y +} + +const DBL_EPSILON10 = 0 +const FLT_EPSILON1 = 1.1920928955078125e-07 + +var _toint5 = Float32FromInt32(1) / Float32FromFloat32(1.1920928955078125e-07) + +func Xrintf(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e, s int32 + var y Tfloat_t + var v1 float32 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _ = e, s, y, v1 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + e = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(23) & uint32(0xff)) + s = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(31)) + if e >= Int32FromInt32(0x7f)+Int32FromInt32(23) { + return x + } + if s != 0 { + y = x - _toint5 + _toint5 + } else { + y = x + _toint5 - _toint5 + } + if y == Float32FromInt32(0) { + if s != 0 { + v1 = -Float32FromFloat32(0) + } else { + v1 = Float32FromFloat32(0) + } + return v1 + } + return y +} + +const FLT_EPSILON2 = 0 + +func Xrintl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xrint(tls, x) +} + +const DBL_EPSILON11 = 2.220446049250313e-16 + +var _toint6 = Float64FromInt32(1) / Float64FromFloat64(2.220446049250313e-16) + +func Xround(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e int32 + var y float32 + var y1, y2 float64 + var y3 Tdouble_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _ = e, y, y1, y2, y3 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + e = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + if e >= Int32FromInt32(0x3ff)+Int32FromInt32(52) { + return x3 + } + if *(*Tuint64_t)(unsafe.Pointer(bp))>>int32(63) != 0 { + x3 = -x3 + } + if e < Int32FromInt32(0x3ff)-Int32FromInt32(1) { + /* raise inexact if x!=0 */ + if uint64(8) == uint64(4) { + y = float32(x3 + _toint6) + } else { + if uint64(8) == uint64(8) { + y1 = x3 + _toint6 + } else { + y2 = float64(x3 + _toint6) + } + } + return float64(Float64FromInt32(0) * *(*float64)(unsafe.Pointer(bp))) + } + y3 = x3 + _toint6 - _toint6 - x3 + if y3 > float64(0.5) { + y3 = y3 + x3 - Float64FromInt32(1) + } else { + if y3 <= -Float64FromFloat64(0.5) { + y3 = y3 + x3 + Float64FromInt32(1) + } else { + y3 = y3 + x3 + } + } + if *(*Tuint64_t)(unsafe.Pointer(bp))>>int32(63) != 0 { + y3 = -y3 + } + return y3 +} + +const DBL_EPSILON12 = 0 +const FLT_EPSILON3 = 1.1920928955078125e-07 + +var _toint7 = Float32FromInt32(1) / Float32FromFloat32(1.1920928955078125e-07) + +func Xroundf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e int32 + var y float32 + var y1, y2 float64 + var y3 Tfloat_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _ = e, y, y1, y2, y3 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + e = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(23) & uint32(0xff)) + if e >= Int32FromInt32(0x7f)+Int32FromInt32(23) { + return x3 + } + if *(*Tuint32_t)(unsafe.Pointer(bp))>>int32(31) != 0 { + x3 = -x3 + } + if e < Int32FromInt32(0x7f)-Int32FromInt32(1) { + if uint64(4) == uint64(4) { + y = x3 + _toint7 + } else { + if uint64(4) == uint64(8) { + y1 = float64(x3 + _toint7) + } else { + y2 = float64(x3 + _toint7) + } + } + return float32(Float32FromInt32(0) * *(*float32)(unsafe.Pointer(bp))) + } + y3 = x3 + _toint7 - _toint7 - x3 + if y3 > Float32FromFloat32(0.5) { + y3 = y3 + x3 - Float32FromInt32(1) + } else { + if y3 <= -Float32FromFloat32(0.5) { + y3 = y3 + x3 + Float32FromInt32(1) + } else { + y3 = y3 + x3 + } + } + if *(*Tuint32_t)(unsafe.Pointer(bp))>>int32(31) != 0 { + y3 = -y3 + } + return y3 +} + +const FLT_EPSILON4 = 0 + +func Xroundl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xround(tls, x) +} + +func Xscalb(tls *TLS, x float64, fn float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v fn=%v, (%v:)", tls, x, fn, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1, v3 uint64 + var v5 bool + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _, _, _ = v1, v3, v5 + *(*float64)(unsafe.Pointer(bp)) = x + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + ; + if v5 = BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) < Uint64FromUint64(0x7ff)< float64(0) { + return float64(x * fn) + } else { + return x / -fn + } + } + if Xrint(tls, fn) != fn { + return (fn - fn) / (fn - fn) + } + if fn > float64(65000) { + return Xscalbn(tls, x, int32(65000)) + } + if -fn > float64(65000) { + return Xscalbn(tls, x, -int32(65000)) + } + return Xscalbn(tls, x, int32(fn)) +} + +func Xscalbf(tls *TLS, x float32, fn float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v fn=%v, (%v:)", tls, x, fn, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1, v3 uint32 + var v5 bool + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _, _, _ = v1, v3, v5 + *(*float32)(unsafe.Pointer(bp)) = x + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + ; + if v5 = BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0; !v5 { + *(*float32)(unsafe.Pointer(bp)) = fn + v3 = *(*uint32)(unsafe.Pointer(bp)) + goto _4 + _4: + } + if v5 || BoolInt32(v3&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return float32(x * fn) + } + *(*float32)(unsafe.Pointer(bp)) = fn + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _7 +_7: + if !(BoolInt32(v1&Uint32FromInt32(0x7fffffff) < Uint32FromInt32(0x7f800000)) != 0) { + if fn > Float32FromFloat32(0) { + return float32(x * fn) + } else { + return x / -fn + } + } + if Xrintf(tls, fn) != fn { + return (fn - fn) / (fn - fn) + } + if fn > Float32FromFloat32(65000) { + return Xscalbnf(tls, x, int32(65000)) + } + if -fn > Float32FromFloat32(65000) { + return Xscalbnf(tls, x, -int32(65000)) + } + return Xscalbnf(tls, x, int32(fn)) +} + +func Xscalbln(tls *TLS, x float64, n int64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + if n > int64(INT_MAX) { + n = int64(INT_MAX) + } else { + if n < int64(-Int32FromInt32(1)-Int32FromInt32(0x7fffffff)) { + n = int64(-Int32FromInt32(1) - Int32FromInt32(0x7fffffff)) + } + } + return Xscalbn(tls, x, int32(n)) +} + +func Xscalblnf(tls *TLS, x float32, n int64) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + if n > int64(INT_MAX) { + n = int64(INT_MAX) + } else { + if n < int64(-Int32FromInt32(1)-Int32FromInt32(0x7fffffff)) { + n = int64(-Int32FromInt32(1) - Int32FromInt32(0x7fffffff)) + } + } + return Xscalbnf(tls, x, int32(n)) +} + +func Xscalblnl(tls *TLS, x float64, n int64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xscalbln(tls, x, n) +} + +func Xscalbn(tls *TLS, x float64, n int32) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var y Tdouble_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _ = y + y = x + if n > int32(1023) { + y = y * float64(8.98846567431158e+307) + n = n - int32(1023) + if n > int32(1023) { + y = y * float64(8.98846567431158e+307) + n = n - int32(1023) + if n > int32(1023) { + n = int32(1023) + } + } + } else { + if n < -int32(1022) { + /* make sure final n < -53 to avoid double + rounding in the subnormal range */ + y = y * Tdouble_t(Float64FromFloat64(2.2250738585072014e-308)*Float64FromFloat64(9.007199254740992e+15)) + n = n + (Int32FromInt32(1022) - Int32FromInt32(53)) + if n < -int32(1022) { + y = y * Tdouble_t(Float64FromFloat64(2.2250738585072014e-308)*Float64FromFloat64(9.007199254740992e+15)) + n = n + (Int32FromInt32(1022) - Int32FromInt32(53)) + if n < -int32(1022) { + n = -int32(1022) + } + } + } + } + *(*Tuint64_t)(unsafe.Pointer(bp)) = Uint64FromInt32(Int32FromInt32(0x3ff)+n) << int32(52) + x = float64(y * *(*float64)(unsafe.Pointer(bp))) + return x +} + +func Xscalbnf(tls *TLS, x float32, n int32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var y Tfloat_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _ = y + y = x + if n > int32(127) { + y = y * Float32FromFloat32(1.7014118346046923e+38) + n = n - int32(127) + if n > int32(127) { + y = y * Float32FromFloat32(1.7014118346046923e+38) + n = n - int32(127) + if n > int32(127) { + n = int32(127) + } + } + } else { + if n < -int32(126) { + y = y * Tfloat_t(Float32FromFloat32(1.1754943508222875e-38)*Float32FromFloat32(1.6777216e+07)) + n = n + (Int32FromInt32(126) - Int32FromInt32(24)) + if n < -int32(126) { + y = y * Tfloat_t(Float32FromFloat32(1.1754943508222875e-38)*Float32FromFloat32(1.6777216e+07)) + n = n + (Int32FromInt32(126) - Int32FromInt32(24)) + if n < -int32(126) { + n = -int32(126) + } + } + } + } + *(*Tuint32_t)(unsafe.Pointer(bp)) = Uint32FromInt32(Int32FromInt32(0x7f)+n) << int32(23) + x = float32(y * *(*float32)(unsafe.Pointer(bp))) + return x +} + +func Xscalbnl(tls *TLS, x float64, n int32) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xscalbn(tls, x, n) +} + +func Xsignificand(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xscalbn(tls, x, -Xilogb(tls, x)) +} + +func Xsignificandf(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xscalbnf(tls, x, -Xilogbf(tls, x)) +} + +func Xsin(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ix Tuint32_t + var n uint32 + var y float32 + var y1, y2, v1 float64 + var _ /* y at bp+0 */ [2]float64 + _, _, _, _, _, _ = ix, n, y, y1, y2, v1 + /* High word of x. */ + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x3)) >> int32(32)) + ix = ix & uint32(0x7fffffff) + /* |x| ~< pi/4 */ + if ix <= uint32(0x3fe921fb) { + if ix < uint32(0x3e500000) { /* |x| < 2**-26 */ + /* raise inexact if x != 0 and underflow if subnormal*/ + if uint64(8) == uint64(4) { + if ix < uint32(0x00100000) { + v1 = x3 / Float64FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } + y = float32(v1) + } else { + if uint64(8) == uint64(8) { + if ix < uint32(0x00100000) { + v1 = x3 / Float64FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } + y1 = v1 + } else { + if ix < uint32(0x00100000) { + v1 = x3 / Float64FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } + y2 = v1 + } + } + return x3 + } + return X__sin(tls, x3, float64(0), 0) + } + /* sin(Inf or NaN) is NaN */ + if ix >= uint32(0x7ff00000) { + return x3 - x3 + } + /* argument reduction needed */ + n = Uint32FromInt32(X__rem_pio2(tls, x3, bp)) + switch n & Uint32FromInt32(3) { + case uint32(0): + return X__sin(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)], int32(1)) + case uint32(1): + return X__cos(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)]) + case uint32(2): + return -X__sin(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)], int32(1)) + default: + return -X__cos(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)]) + } + return r +} + +func Xsincos(tls *TLS, x3 float64, sin uintptr, cos uintptr) { + if __ccgo_strace { + trc("tls=%v x3=%v sin=%v cos=%v, (%v:)", tls, x3, sin, cos, origin(2)) + } + bp := tls.Alloc(16) + defer tls.Free(16) + var c, s, y1, y2, v1 float64 + var ix Tuint32_t + var n uint32 + var y float32 + var _ /* y at bp+0 */ [2]float64 + _, _, _, _, _, _, _, _ = c, ix, n, s, y, y1, y2, v1 + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x3)) >> int32(32)) + ix = ix & uint32(0x7fffffff) + /* |x| ~< pi/4 */ + if ix <= uint32(0x3fe921fb) { + /* if |x| < 2**-27 * sqrt(2) */ + if ix < uint32(0x3e46a09e) { + /* raise inexact if x!=0 and underflow if subnormal */ + if uint64(8) == uint64(4) { + if ix < uint32(0x00100000) { + v1 = x3 / Float64FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } + y = float32(v1) + } else { + if uint64(8) == uint64(8) { + if ix < uint32(0x00100000) { + v1 = x3 / Float64FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } + y1 = v1 + } else { + if ix < uint32(0x00100000) { + v1 = x3 / Float64FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } + y2 = v1 + } + } + **(**float64)(__ccgo_up(sin)) = x3 + **(**float64)(__ccgo_up(cos)) = float64(1) + return + } + **(**float64)(__ccgo_up(sin)) = X__sin(tls, x3, float64(0), 0) + **(**float64)(__ccgo_up(cos)) = X__cos(tls, x3, float64(0)) + return + } + /* sincos(Inf or NaN) is NaN */ + if ix >= uint32(0x7ff00000) { + v1 = x3 - x3 + **(**float64)(__ccgo_up(cos)) = v1 + **(**float64)(__ccgo_up(sin)) = v1 + return + } + /* argument reduction needed */ + n = Uint32FromInt32(X__rem_pio2(tls, x3, bp)) + s = X__sin(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)], int32(1)) + c = X__cos(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)]) + switch n & Uint32FromInt32(3) { + case uint32(0): + **(**float64)(__ccgo_up(sin)) = s + **(**float64)(__ccgo_up(cos)) = c + case uint32(1): + **(**float64)(__ccgo_up(sin)) = c + **(**float64)(__ccgo_up(cos)) = -s + case uint32(2): + **(**float64)(__ccgo_up(sin)) = -s + **(**float64)(__ccgo_up(cos)) = -c + case uint32(3): + fallthrough + default: + **(**float64)(__ccgo_up(sin)) = -c + **(**float64)(__ccgo_up(cos)) = s + break + } +} + +const M_PI_25 = 1.5707963267948966 + +// C documentation +// +// /* Small multiples of pi/2 rounded to double precision. */ + +var _s1pio2 = float64(Float64FromInt32(1) * Float64FromFloat64(1.5707963267948966)) /* 0x3FF921FB, 0x54442D18 */ +var _s2pio2 = float64(Float64FromInt32(2) * Float64FromFloat64(1.5707963267948966)) /* 0x400921FB, 0x54442D18 */ +var _s3pio2 = float64(Float64FromInt32(3) * Float64FromFloat64(1.5707963267948966)) /* 0x4012D97C, 0x7F3321D2 */ +var _s4pio2 = float64(Float64FromInt32(4) * Float64FromFloat64(1.5707963267948966)) /* 0x401921FB, 0x54442D18 */ + +func Xsincosf(tls *TLS, x3 float32, sin uintptr, cos uintptr) { + if __ccgo_strace { + trc("tls=%v x3=%v sin=%v cos=%v, (%v:)", tls, x3, sin, cos, origin(2)) + } + bp := tls.Alloc(16) + defer tls.Free(16) + var c, s Tfloat_t + var ix Tuint32_t + var n, sign uint32 + var y, v1 float32 + var y1, y2, v4 float64 + var _ /* y at bp+0 */ float64 + _, _, _, _, _, _, _, _, _, _ = c, ix, n, s, sign, y, y1, y2, v1, v4 + ix = *(*Tuint32_t)(unsafe.Pointer(&x3)) + sign = ix >> int32(31) + ix = ix & uint32(0x7fffffff) + /* |x| ~<= pi/4 */ + if ix <= uint32(0x3f490fda) { + /* |x| < 2**-12 */ + if ix < uint32(0x39800000) { + /* raise inexact if x!=0 and underflow if subnormal */ + if uint64(4) == uint64(4) { + if ix < uint32(0x00100000) { + v1 = x3 / Float32FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float32FromFloat32(1.329227995784916e+36) + } + y = v1 + } else { + if uint64(4) == uint64(8) { + if ix < uint32(0x00100000) { + v1 = x3 / Float32FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float32FromFloat32(1.329227995784916e+36) + } + y1 = float64(v1) + } else { + if ix < uint32(0x00100000) { + v1 = x3 / Float32FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float32FromFloat32(1.329227995784916e+36) + } + y2 = float64(v1) + } + } + **(**float32)(__ccgo_up(sin)) = x3 + **(**float32)(__ccgo_up(cos)) = Float32FromFloat32(1) + return + } + **(**float32)(__ccgo_up(sin)) = X__sindf(tls, float64(x3)) + **(**float32)(__ccgo_up(cos)) = X__cosdf(tls, float64(x3)) + return + } + /* |x| ~<= 5*pi/4 */ + if ix <= uint32(0x407b53d1) { + if ix <= uint32(0x4016cbe3) { /* |x| ~<= 3pi/4 */ + if sign != 0 { + **(**float32)(__ccgo_up(sin)) = -X__cosdf(tls, float64(x3)+_s1pio2) + **(**float32)(__ccgo_up(cos)) = X__sindf(tls, float64(x3)+_s1pio2) + } else { + **(**float32)(__ccgo_up(sin)) = X__cosdf(tls, _s1pio2-float64(x3)) + **(**float32)(__ccgo_up(cos)) = X__sindf(tls, _s1pio2-float64(x3)) + } + return + } + /* -sin(x+c) is not correct if x+c could be 0: -0 vs +0 */ + if sign != 0 { + v4 = float64(x3) + _s2pio2 + } else { + v4 = float64(x3) - _s2pio2 + } + **(**float32)(__ccgo_up(sin)) = -X__sindf(tls, v4) + if sign != 0 { + v4 = float64(x3) + _s2pio2 + } else { + v4 = float64(x3) - _s2pio2 + } + **(**float32)(__ccgo_up(cos)) = -X__cosdf(tls, v4) + return + } + /* |x| ~<= 9*pi/4 */ + if ix <= uint32(0x40e231d5) { + if ix <= uint32(0x40afeddf) { /* |x| ~<= 7*pi/4 */ + if sign != 0 { + **(**float32)(__ccgo_up(sin)) = X__cosdf(tls, float64(x3)+_s3pio2) + **(**float32)(__ccgo_up(cos)) = -X__sindf(tls, float64(x3)+_s3pio2) + } else { + **(**float32)(__ccgo_up(sin)) = -X__cosdf(tls, float64(x3)-_s3pio2) + **(**float32)(__ccgo_up(cos)) = X__sindf(tls, float64(x3)-_s3pio2) + } + return + } + if sign != 0 { + v4 = float64(x3) + _s4pio2 + } else { + v4 = float64(x3) - _s4pio2 + } + **(**float32)(__ccgo_up(sin)) = X__sindf(tls, v4) + if sign != 0 { + v4 = float64(x3) + _s4pio2 + } else { + v4 = float64(x3) - _s4pio2 + } + **(**float32)(__ccgo_up(cos)) = X__cosdf(tls, v4) + return + } + /* sin(Inf or NaN) is NaN */ + if ix >= uint32(0x7f800000) { + v1 = x3 - x3 + **(**float32)(__ccgo_up(cos)) = v1 + **(**float32)(__ccgo_up(sin)) = v1 + return + } + /* general argument reduction needed */ + n = Uint32FromInt32(X__rem_pio2f(tls, x3, bp)) + s = X__sindf(tls, **(**float64)(__ccgo_up(bp))) + c = X__cosdf(tls, **(**float64)(__ccgo_up(bp))) + switch n & Uint32FromInt32(3) { + case uint32(0): + **(**float32)(__ccgo_up(sin)) = s + **(**float32)(__ccgo_up(cos)) = c + case uint32(1): + **(**float32)(__ccgo_up(sin)) = c + **(**float32)(__ccgo_up(cos)) = -s + case uint32(2): + **(**float32)(__ccgo_up(sin)) = -s + **(**float32)(__ccgo_up(cos)) = -c + case uint32(3): + fallthrough + default: + **(**float32)(__ccgo_up(sin)) = -c + **(**float32)(__ccgo_up(cos)) = s + break + } +} + +const M_PI_26 = 0 + +func Xsincosl(tls *TLS, x float64, sin uintptr, cos uintptr) { + if __ccgo_strace { + trc("tls=%v x=%v sin=%v cos=%v, (%v:)", tls, x, sin, cos, origin(2)) + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* cosd at bp+8 */ float64 + var _ /* sind at bp+0 */ float64 + Xsincos(tls, x, bp, bp+8) + **(**float64)(__ccgo_up(sin)) = float64(**(**float64)(__ccgo_up(bp))) + **(**float64)(__ccgo_up(cos)) = float64(**(**float64)(__ccgo_up(bp + 8))) +} + +const M_PI_27 = 1.5707963267948966 + +// C documentation +// +// /* Small multiples of pi/2 rounded to double precision. */ + +var _s1pio21 = float64(Float64FromInt32(1) * Float64FromFloat64(1.5707963267948966)) /* 0x3FF921FB, 0x54442D18 */ +var _s2pio21 = float64(Float64FromInt32(2) * Float64FromFloat64(1.5707963267948966)) /* 0x400921FB, 0x54442D18 */ +var _s3pio21 = float64(Float64FromInt32(3) * Float64FromFloat64(1.5707963267948966)) /* 0x4012D97C, 0x7F3321D2 */ +var _s4pio21 = float64(Float64FromInt32(4) * Float64FromFloat64(1.5707963267948966)) /* 0x401921FB, 0x54442D18 */ + +func Xsinf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ix Tuint32_t + var n, sign int32 + var y, v1 float32 + var y1, y2, v4 float64 + var _ /* y at bp+0 */ float64 + _, _, _, _, _, _, _, _ = ix, n, sign, y, y1, y2, v1, v4 + ix = *(*Tuint32_t)(unsafe.Pointer(&x3)) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix <= uint32(0x3f490fda) { /* |x| ~<= pi/4 */ + if ix < uint32(0x39800000) { /* |x| < 2**-12 */ + /* raise inexact if x!=0 and underflow if subnormal */ + if uint64(4) == uint64(4) { + if ix < uint32(0x00800000) { + v1 = x3 / Float32FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float32FromFloat32(1.329227995784916e+36) + } + y = v1 + } else { + if uint64(4) == uint64(8) { + if ix < uint32(0x00800000) { + v1 = x3 / Float32FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float32FromFloat32(1.329227995784916e+36) + } + y1 = float64(v1) + } else { + if ix < uint32(0x00800000) { + v1 = x3 / Float32FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float32FromFloat32(1.329227995784916e+36) + } + y2 = float64(v1) + } + } + return x3 + } + return X__sindf(tls, float64(x3)) + } + if ix <= uint32(0x407b53d1) { /* |x| ~<= 5*pi/4 */ + if ix <= uint32(0x4016cbe3) { /* |x| ~<= 3pi/4 */ + if sign != 0 { + return -X__cosdf(tls, float64(x3)+_s1pio21) + } else { + return X__cosdf(tls, float64(x3)-_s1pio21) + } + } + if sign != 0 { + v4 = -(float64(x3) + _s2pio21) + } else { + v4 = -(float64(x3) - _s2pio21) + } + return X__sindf(tls, v4) + } + if ix <= uint32(0x40e231d5) { /* |x| ~<= 9*pi/4 */ + if ix <= uint32(0x40afeddf) { /* |x| ~<= 7*pi/4 */ + if sign != 0 { + return X__cosdf(tls, float64(x3)+_s3pio21) + } else { + return -X__cosdf(tls, float64(x3)-_s3pio21) + } + } + if sign != 0 { + v4 = float64(x3) + _s4pio21 + } else { + v4 = float64(x3) - _s4pio21 + } + return X__sindf(tls, v4) + } + /* sin(Inf or NaN) is NaN */ + if ix >= uint32(0x7f800000) { + return x3 - x3 + } + /* general argument reduction needed */ + n = X__rem_pio2f(tls, x3, bp) + switch n & Int32FromInt32(3) { + case 0: + return X__sindf(tls, **(**float64)(__ccgo_up(bp))) + case int32(1): + return X__cosdf(tls, **(**float64)(__ccgo_up(bp))) + case int32(2): + return X__sindf(tls, -**(**float64)(__ccgo_up(bp))) + default: + return -X__cosdf(tls, **(**float64)(__ccgo_up(bp))) + } + return r +} + +const M_PI_28 = 0 + +// C documentation +// +// /* sinh(x) = (exp(x) - 1/exp(x))/2 +// * = (exp(x)-1 + (exp(x)-1)/exp(x))/2 +// * = x + x^3/6 + o(x^5) +// */ +func Xsinh(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var absx, h, t float64 + var w Tuint32_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _ = absx, h, t, w + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + h = float64(0.5) + if *(*Tuint64_t)(unsafe.Pointer(bp))>>int32(63) != 0 { + h = -h + } + /* |x| */ + *(*Tuint64_t)(unsafe.Pointer(bp)) &= Uint64FromInt32(-Int32FromInt32(1)) / Uint64FromInt32(2) + absx = *(*float64)(unsafe.Pointer(bp)) + w = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32)) + /* |x| < log(DBL_MAX) */ + if w < uint32(0x40862e42) { + t = Xexpm1(tls, absx) + if w < uint32(0x3ff00000) { + if w < Uint32FromInt32(Int32FromInt32(0x3ff00000)-Int32FromInt32(26)<log(0x1p26)+eps could be just h*exp(x) */ + return float64(h * (t + t/(t+Float64FromInt32(1)))) + } + /* |x| > log(DBL_MAX) or nan */ + /* note: the result is stored to handle overflow */ + t = X__expo2(tls, absx, float64(Float64FromInt32(2)*h)) + return t +} + +func Xsinhf(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var absx, h, t float32 + var w Tuint32_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _ = absx, h, t, w + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + h = float32(0.5) + if *(*Tuint32_t)(unsafe.Pointer(bp))>>int32(31) != 0 { + h = -h + } + /* |x| */ + *(*Tuint32_t)(unsafe.Pointer(bp)) &= uint32(0x7fffffff) + absx = *(*float32)(unsafe.Pointer(bp)) + w = *(*Tuint32_t)(unsafe.Pointer(bp)) + /* |x| < log(FLT_MAX) */ + if w < uint32(0x42b17217) { + t = Xexpm1f(tls, absx) + if w < uint32(0x3f800000) { + if w < Uint32FromInt32(Int32FromInt32(0x3f800000)-Int32FromInt32(12)< logf(FLT_MAX) or nan */ + t = X__expo2f(tls, absx, float32(Float32FromInt32(2)*h)) + return t +} + +func Xsinhl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xsinh(tls, x) +} + +func Xsinl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xsin(tls, x) +} + +const FENV_SUPPORT = 1 + +// C documentation +// +// /* returns a*b*2^-32 - e, with error 0 <= e < 1. */ +func _mul32(tls *TLS, a Tuint32_t, b Tuint32_t) (r Tuint32_t) { + return uint32(uint64(a) * uint64(b) >> int32(32)) +} + +// C documentation +// +// /* returns a*b*2^-64 - e, with error 0 <= e < 3. */ +func _mul64(tls *TLS, a Tuint64_t, b Tuint64_t) (r Tuint64_t) { + var ahi, alo, bhi, blo Tuint64_t + _, _, _, _ = ahi, alo, bhi, blo + ahi = a >> int32(32) + alo = a & uint64(0xffffffff) + bhi = b >> int32(32) + blo = b & uint64(0xffffffff) + return ahi*bhi + ahi*blo>>int32(32) + alo*bhi>>int32(32) +} + +func Xsqrt(tls *TLS, x1 float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x1=%v, (%v:)", tls, x1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var d, d0, d1, d2, i, ix, m, r, s, tiny, top, u Tuint64_t + var even int32 + var t, y, y1, v1 float64 + var v2 int64 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = d, d0, d1, d2, even, i, ix, m, r, s, t, tiny, top, u, y, y1, v1, v2 + /* special case handling. */ + ix = *(*Tuint64_t)(unsafe.Pointer(&x1)) + top = ix >> int32(52) + if top-uint64(0x001) >= Uint64FromInt32(Int32FromInt32(0x7ff)-Int32FromInt32(0x001)) { + /* x < 0x1p-1022 or inf or nan. */ + if ix*uint64(2) == uint64(0) { + return x1 + } + if ix == uint64(0x7ff0000000000000) { + return x1 + } + if ix > uint64(0x7ff0000000000000) { + return X__math_invalid(tls, x1) + } + /* x is subnormal, normalize it. */ + v1 = float64(x1 * float64(4.503599627370496e+15)) + ix = *(*Tuint64_t)(unsafe.Pointer(&v1)) + top = ix >> int32(52) + top = top - uint64(52) + } + /* argument reduction: + x = 4^e m; with integer e, and m in [1, 4) + m: fixed point representation [2.62] + 2^e is the exponent part of the result. */ + even = Int32FromUint64(top & uint64(1)) + m = ix<> uint64(1) + } + top = (top + uint64(0x3ff)) >> int32(1) + i = ix >> Int32FromInt32(46) % uint64(128) + r = uint64(uint32(X__rsqrt_tab[i]) << int32(16)) + /* |r sqrt(m) - 1| < 0x1.fdp-9 */ + s = uint64(_mul32(tls, uint32(m>>int32(32)), uint32(r))) + /* |s/sqrt(m) - 1| < 0x1.fdp-9 */ + d = uint64(_mul32(tls, uint32(s), uint32(r))) + u = _three - d + r = uint64(_mul32(tls, uint32(r), uint32(u)) << int32(1)) + /* |r sqrt(m) - 1| < 0x1.7bp-16 */ + s = uint64(_mul32(tls, uint32(s), uint32(u)) << int32(1)) + /* |s/sqrt(m) - 1| < 0x1.7bp-16 */ + d = uint64(_mul32(tls, uint32(s), uint32(r))) + u = _three - d + r = uint64(_mul32(tls, uint32(r), uint32(u)) << int32(1)) + /* |r sqrt(m) - 1| < 0x1.3704p-29 (measured worst-case) */ + r = r << int32(32) + s = _mul64(tls, m, r) + d = _mul64(tls, s, r) + u = _three<> int32(9) + d0 = m<>int32(63) + s = s & uint64(0x000fffffffffffff) + s = s | top<=13bit table would be needed (16k). + + a newton-raphson iteration for r is + w = r*r + u = 3 - m*w + r = r*u/2 + can use a goldschmidt iteration for s at the end or + s = m*r + + first goldschmidt iteration is + s = m*r + u = 3 - s*r + r = r*u/2 + s = s*u/2 + next goldschmidt iteration is + u = 3 - s*r + r = r*u/2 + s = s*u/2 + and at the end r is not computed only s. + + they use the same amount of operations and converge at the + same quadratic rate, i.e. if + r1 sqrt(m) - 1 = e, then + r2 sqrt(m) - 1 = -3/2 e^2 - 1/2 e^3 + the advantage of goldschmidt is that the mul for s and r + are independent (computed in parallel), however it is not + "self synchronizing": it only uses the input m in the + first iteration so rounding errors accumulate. at the end + or when switching to larger precision arithmetics rounding + errors dominate so the first iteration should be used. + + the fixed point representations are + m: 2.30 r: 0.32, s: 2.30, d: 2.30, u: 2.30, three: 2.30 + and after switching to 64 bit + m: 2.62 r: 0.64, s: 2.62, d: 2.62, u: 2.62, three: 2.62 */ + +var _three = uint64(0xc0000000) + +func _mul321(tls *TLS, a Tuint32_t, b Tuint32_t) (r Tuint32_t) { + return uint32(uint64(a) * uint64(b) >> int32(32)) +} + +/* see sqrt.c for more detailed comments. */ + +func Xsqrtf(tls *TLS, x1 float32) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x1=%v, (%v:)", tls, x1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var d, d0, d1, d2, even, ey, i, ix, m, m0, m1, r, s, tiny, u Tuint32_t + var t, y, y1, v1 float32 + var v2 uint32 + var v3 int32 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = d, d0, d1, d2, even, ey, i, ix, m, m0, m1, r, s, t, tiny, u, y, y1, v1, v2, v3 + ix = *(*Tuint32_t)(unsafe.Pointer(&x1)) + if ix-uint32(0x00800000) >= Uint32FromInt32(Int32FromInt32(0x7f800000)-Int32FromInt32(0x00800000)) { + /* x < 0x1p-126 or inf or nan. */ + if ix*uint32(2) == uint32(0) { + return x1 + } + if ix == uint32(0x7f800000) { + return x1 + } + if ix > uint32(0x7f800000) { + return X__math_invalidf(tls, x1) + } + /* x is subnormal, normalize it. */ + v1 = float32(x1 * Float32FromFloat32(8.388608e+06)) + ix = *(*Tuint32_t)(unsafe.Pointer(&v1)) + ix = ix - Uint32FromInt32(Int32FromInt32(23)<> int32(1) + ey = ey + Uint32FromInt32(Int32FromInt32(0x3f800000)>>Int32FromInt32(1)) + ey = ey & uint32(0x7f800000) + i = ix >> Int32FromInt32(17) % uint32(128) + r = uint32(X__rsqrt_tab[i]) << int32(16) + /* |r*sqrt(m) - 1| < 0x1p-8 */ + s = _mul321(tls, m, r) + /* |s/sqrt(m) - 1| < 0x1p-8 */ + d = _mul321(tls, s, r) + u = _three1 - d + r = _mul321(tls, r, u) << int32(1) + /* |r*sqrt(m) - 1| < 0x1.7bp-16 */ + s = _mul321(tls, s, u) << int32(1) + /* |s/sqrt(m) - 1| < 0x1.7bp-16 */ + d = _mul321(tls, s, r) + u = _three1 - d + s = _mul321(tls, s, u) + /* -0x1.03p-28 < s/sqrt(m) - 1 < 0x1.fp-31 */ + s = (s - uint32(1)) >> int32(6) + d0 = m<>int32(31) + s = s & uint32(0x007fffff) + s = s | ey + y1 = *(*float32)(unsafe.Pointer(&s)) + if int32(FENV_SUPPORT) != 0 { + if d2 == uint32(0) { + v3 = 0 + } else { + v3 = int32(0x01000000) + } + /* handle rounding and inexact exception. */ + tiny = Uint32FromInt32(v3) + tiny = tiny | (d1^d2)&uint32(0x80000000) + t = *(*float32)(unsafe.Pointer(&tiny)) + y = y1 + t + v1 = y + goto _5 + _5: + y1 = v1 + } + return y1 +} + +/* compute r ~ 1/sqrt(m), s ~ sqrt(m) with 2 goldschmidt iterations. */ +var _three1 = uint32(0xc0000000) + +func Xsqrtl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xsqrt(tls, x) +} + +func Xtan(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ix Tuint32_t + var n uint32 + var y float32 + var y1, y2, v1 float64 + var _ /* y at bp+0 */ [2]float64 + _, _, _, _, _, _ = ix, n, y, y1, y2, v1 + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x3)) >> int32(32)) + ix = ix & uint32(0x7fffffff) + /* |x| ~< pi/4 */ + if ix <= uint32(0x3fe921fb) { + if ix < uint32(0x3e400000) { /* |x| < 2**-27 */ + /* raise inexact if x!=0 and underflow if subnormal */ + if uint64(8) == uint64(4) { + if ix < uint32(0x00100000) { + v1 = x3 / Float64FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } + y = float32(v1) + } else { + if uint64(8) == uint64(8) { + if ix < uint32(0x00100000) { + v1 = x3 / Float64FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } + y1 = v1 + } else { + if ix < uint32(0x00100000) { + v1 = x3 / Float64FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } + y2 = v1 + } + } + return x3 + } + return X__tan(tls, x3, float64(0), 0) + } + /* tan(Inf or NaN) is NaN */ + if ix >= uint32(0x7ff00000) { + return x3 - x3 + } + /* argument reduction */ + n = Uint32FromInt32(X__rem_pio2(tls, x3, bp)) + return X__tan(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)], Int32FromUint32(n&uint32(1))) +} + +const M_PI_29 = 1.5707963267948966 + +// C documentation +// +// /* Small multiples of pi/2 rounded to double precision. */ + +var _t1pio2 = float64(Float64FromInt32(1) * Float64FromFloat64(1.5707963267948966)) /* 0x3FF921FB, 0x54442D18 */ +var _t2pio2 = float64(Float64FromInt32(2) * Float64FromFloat64(1.5707963267948966)) /* 0x400921FB, 0x54442D18 */ +var _t3pio2 = float64(Float64FromInt32(3) * Float64FromFloat64(1.5707963267948966)) /* 0x4012D97C, 0x7F3321D2 */ +var _t4pio2 = float64(Float64FromInt32(4) * Float64FromFloat64(1.5707963267948966)) /* 0x401921FB, 0x54442D18 */ + +func Xtanf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ix Tuint32_t + var n, sign uint32 + var y, v1 float32 + var y1, y2, v4 float64 + var _ /* y at bp+0 */ float64 + _, _, _, _, _, _, _, _ = ix, n, sign, y, y1, y2, v1, v4 + ix = *(*Tuint32_t)(unsafe.Pointer(&x3)) + sign = ix >> int32(31) + ix = ix & uint32(0x7fffffff) + if ix <= uint32(0x3f490fda) { /* |x| ~<= pi/4 */ + if ix < uint32(0x39800000) { /* |x| < 2**-12 */ + /* raise inexact if x!=0 and underflow if subnormal */ + if uint64(4) == uint64(4) { + if ix < uint32(0x00800000) { + v1 = x3 / Float32FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float32FromFloat32(1.329227995784916e+36) + } + y = v1 + } else { + if uint64(4) == uint64(8) { + if ix < uint32(0x00800000) { + v1 = x3 / Float32FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float32FromFloat32(1.329227995784916e+36) + } + y1 = float64(v1) + } else { + if ix < uint32(0x00800000) { + v1 = x3 / Float32FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float32FromFloat32(1.329227995784916e+36) + } + y2 = float64(v1) + } + } + return x3 + } + return X__tandf(tls, float64(x3), 0) + } + if ix <= uint32(0x407b53d1) { /* |x| ~<= 5*pi/4 */ + if ix <= uint32(0x4016cbe3) { /* |x| ~<= 3pi/4 */ + if sign != 0 { + v4 = float64(x3) + _t1pio2 + } else { + v4 = float64(x3) - _t1pio2 + } + return X__tandf(tls, v4, int32(1)) + } else { + if sign != 0 { + v4 = float64(x3) + _t2pio2 + } else { + v4 = float64(x3) - _t2pio2 + } + return X__tandf(tls, v4, 0) + } + } + if ix <= uint32(0x40e231d5) { /* |x| ~<= 9*pi/4 */ + if ix <= uint32(0x40afeddf) { /* |x| ~<= 7*pi/4 */ + if sign != 0 { + v4 = float64(x3) + _t3pio2 + } else { + v4 = float64(x3) - _t3pio2 + } + return X__tandf(tls, v4, int32(1)) + } else { + if sign != 0 { + v4 = float64(x3) + _t4pio2 + } else { + v4 = float64(x3) - _t4pio2 + } + return X__tandf(tls, v4, 0) + } + } + /* tan(Inf or NaN) is NaN */ + if ix >= uint32(0x7f800000) { + return x3 - x3 + } + /* argument reduction */ + n = Uint32FromInt32(X__rem_pio2f(tls, x3, bp)) + return X__tandf(tls, **(**float64)(__ccgo_up(bp)), Int32FromUint32(n&uint32(1))) +} + +const M_PI_210 = 0 + +// C documentation +// +// /* tanh(x) = (exp(x) - exp(-x))/(exp(x) + exp(-x)) +// * = (exp(2*x) - 1)/(exp(2*x) - 1 + 2) +// * = (1 - exp(-2*x))/(exp(-2*x) - 1 + 2) +// */ +func Xtanh(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var sign int32 + var t, v1 Tdouble_t + var w Tuint32_t + var y float32 + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _ = sign, t, w, y, y1, y2, v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + /* x = |x| */ + sign = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(63)) + *(*Tuint64_t)(unsafe.Pointer(bp)) &= Uint64FromInt32(-Int32FromInt32(1)) / Uint64FromInt32(2) + x3 = *(*float64)(unsafe.Pointer(bp)) + w = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32)) + if w > uint32(0x3fe193ea) { + /* |x| > log(3)/2 ~= 0.5493 or nan */ + if w > uint32(0x40340000) { + /* |x| > 20 or nan */ + /* note: this branch avoids raising overflow */ + t = Float64FromInt32(1) - Float64FromInt32(0)/x3 + } else { + t = Xexpm1(tls, float64(Float64FromInt32(2)*x3)) + t = Float64FromInt32(1) - Float64FromInt32(2)/(t+Float64FromInt32(2)) + } + } else { + if w > uint32(0x3fd058ae) { + /* |x| > log(5/3)/2 ~= 0.2554 */ + t = Xexpm1(tls, float64(Float64FromInt32(2)*x3)) + t = t / (t + Float64FromInt32(2)) + } else { + if w >= uint32(0x00100000) { + /* |x| >= 0x1p-1022, up to 2ulp error in [0.1,0.2554] */ + t = Xexpm1(tls, float64(float64(-Int32FromInt32(2))*x3)) + t = -t / (t + Float64FromInt32(2)) + } else { + /* |x| is subnormal */ + /* note: the branch above would not raise underflow in [0x1p-1023,0x1p-1022) */ + if uint64(4) == uint64(4) { + y = float32(x3) + } else { + if uint64(4) == uint64(8) { + y1 = float64(float32(x3)) + } else { + y2 = float64(float32(x3)) + } + } + t = x3 + } + } + } + if sign != 0 { + v1 = -t + } else { + v1 = t + } + return v1 +} + +func Xtanhf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var sign int32 + var t, y, v1 float32 + var w Tuint32_t + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _, _ = sign, t, w, y, y1, y2, v1 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + /* x = |x| */ + sign = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(31)) + *(*Tuint32_t)(unsafe.Pointer(bp)) &= uint32(0x7fffffff) + x3 = *(*float32)(unsafe.Pointer(bp)) + w = *(*Tuint32_t)(unsafe.Pointer(bp)) + if w > uint32(0x3f0c9f54) { + /* |x| > log(3)/2 ~= 0.5493 or nan */ + if w > uint32(0x41200000) { + /* |x| > 10 */ + t = Float32FromInt32(1) + Float32FromInt32(0)/x3 + } else { + t = Xexpm1f(tls, float32(Float32FromInt32(2)*x3)) + t = Float32FromInt32(1) - Float32FromInt32(2)/(t+Float32FromInt32(2)) + } + } else { + if w > uint32(0x3e82c578) { + /* |x| > log(5/3)/2 ~= 0.2554 */ + t = Xexpm1f(tls, float32(Float32FromInt32(2)*x3)) + t = t / (t + Float32FromInt32(2)) + } else { + if w >= uint32(0x00800000) { + /* |x| >= 0x1p-126 */ + t = Xexpm1f(tls, float32(float32(-Int32FromInt32(2))*x3)) + t = -t / (t + Float32FromInt32(2)) + } else { + /* |x| is subnormal */ + if uint64(4) == uint64(4) { + y = float32(x3 * x3) + } else { + if uint64(4) == uint64(8) { + y1 = float64(x3 * x3) + } else { + y2 = float64(x3 * x3) + } + } + t = x3 + } + } + } + if sign != 0 { + v1 = -t + } else { + v1 = t + } + return v1 +} + +func Xtanhl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xtanh(tls, x) +} + +func Xtanl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xtan(tls, x) +} + +const N10 = 12 + +var _pi4 = float64(3.141592653589793) + +// C documentation +// +// /* sin(pi x) with x > 0x1p-100, if sin(pi*x)==0 the sign is arbitrary */ +func _sinpi(tls *TLS, x float64) (r float64) { + var n int32 + _ = n + /* argument reduction: x = |x| mod 2 */ + /* spurious inexact when x is odd int */ + x = float64(x * float64(0.5)) + x = float64(Float64FromInt32(2) * (x - Xfloor(tls, x))) + /* reduce x into [-.25,.25] */ + n = int32(Float64FromInt32(4) * x) + n = (n + int32(1)) / int32(2) + x = x - float64(float64(n)*float64(0.5)) + x = x * _pi4 + switch n { + default: /* case 4 */ + fallthrough + case 0: + return X__sin(tls, x, Float64FromInt32(0), 0) + case int32(1): + return X__cos(tls, x, Float64FromInt32(0)) + case int32(2): + return X__sin(tls, -x, Float64FromInt32(0), 0) + case int32(3): + return -X__cos(tls, x, Float64FromInt32(0)) + } + return r +} + +// C documentation +// +// //static const double g = 6.024680040776729583740234375; +var _gmhalf = float64(5.52468004077673) +var _Snum = [13]float64{ + 0: float64(2.353137688041076e+10), + 1: float64(4.29198036426491e+10), + 2: float64(3.571195923735567e+10), + 3: float64(1.792103442603721e+10), + 4: float64(6.039542586352028e+09), + 5: float64(1.4397204073117216e+09), + 6: float64(2.4887455786205417e+08), + 7: float64(3.1426415585400194e+07), + 8: float64(2.8763706289353725e+06), + 9: float64(186056.26539522348), + 10: float64(8071.672002365816), + 11: float64(210.82427775157936), + 12: float64(2.5066282746310002), +} +var _Sden = [13]float64{ + 1: Float64FromInt32(39916800), + 2: Float64FromInt32(120543840), + 3: Float64FromInt32(150917976), + 4: Float64FromInt32(105258076), + 5: Float64FromInt32(45995730), + 6: Float64FromInt32(13339535), + 7: Float64FromInt32(2637558), + 8: Float64FromInt32(357423), + 9: Float64FromInt32(32670), + 10: Float64FromInt32(1925), + 11: Float64FromInt32(66), + 12: Float64FromInt32(1), +} + +// C documentation +// +// /* n! for small integer n */ +var _fact = [23]float64{ + 0: Float64FromInt32(1), + 1: Float64FromInt32(1), + 2: Float64FromInt32(2), + 3: Float64FromInt32(6), + 4: Float64FromInt32(24), + 5: Float64FromInt32(120), + 6: Float64FromInt32(720), + 7: float64(5040), + 8: float64(40320), + 9: float64(362880), + 10: float64(3.6288e+06), + 11: float64(3.99168e+07), + 12: float64(4.790016e+08), + 13: float64(6.2270208e+09), + 14: float64(8.71782912e+10), + 15: float64(1.307674368e+12), + 16: float64(2.0922789888e+13), + 17: float64(3.55687428096e+14), + 18: float64(6.402373705728e+15), + 19: float64(1.21645100408832e+17), + 20: float64(2.43290200817664e+18), + 21: float64(5.109094217170944e+19), + 22: float64(1.1240007277776077e+21), +} + +// C documentation +// +// /* S(x) rational function for positive x */ +func _S(tls *TLS, x float64) (r float64) { + var den, num Tdouble_t + var i int32 + _, _, _ = den, i, num + num = Float64FromInt32(0) + den = Float64FromInt32(0) + /* to avoid overflow handle large x differently */ + if x < Float64FromInt32(8) { + i = int32(N10) + for { + if !(i >= 0) { + break + } + num = Tdouble_t(num*x) + _Snum[i] + den = Tdouble_t(den*x) + _Sden[i] + goto _1 + _1: + ; + i = i - 1 + } + } else { + i = 0 + for { + if !(i <= int32(N10)) { + break + } + num = num/x + _Snum[i] + den = den/x + _Sden[i] + goto _2 + _2: + ; + i = i + 1 + } + } + return num / den +} + +func Xtgamma(tls *TLS, x3 float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var absx, y1, y2, y3, v1 float64 + var dy, r, z Tdouble_t + var ix Tuint32_t + var sign int32 + var y float32 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _, _, _, _, _ = absx, dy, ix, r, sign, y, y1, y2, y3, z, v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32) & uint64(0x7fffffff)) + sign = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(63)) + /* special cases */ + if ix >= uint32(0x7ff00000) { + /* tgamma(nan)=nan, tgamma(inf)=inf, tgamma(-inf)=nan with invalid */ + return x3 + float64(X__builtin_inff(tls)) + } + if ix < Uint32FromInt32((Int32FromInt32(0x3ff)-Int32FromInt32(54))<= 172: tgamma(x)=inf with overflow */ + /* x =< -184: tgamma(x)=+-0 with underflow */ + if ix >= uint32(0x40670000) { /* |x| >= 184 */ + if sign != 0 { + if uint64(4) == uint64(4) { + y = float32(Float64FromFloat64(1.1754943508222875e-38) / x3) + } else { + if uint64(4) == uint64(8) { + y1 = float64(float32(Float64FromFloat64(1.1754943508222875e-38) / x3)) + } else { + y2 = float64(float32(Float64FromFloat64(1.1754943508222875e-38) / x3)) + } + } + if float64(Xfloor(tls, x3)*float64(0.5)) == Xfloor(tls, float64(x3*float64(0.5))) { + return Float64FromInt32(0) + } + return -Float64FromFloat64(0) + } + x3 = x3 * float64(8.98846567431158e+307) + return x3 + } + if sign != 0 { + v1 = -x3 + } else { + v1 = x3 + } + absx = v1 + /* handle the error of x + g - 0.5 */ + y3 = absx + _gmhalf + if absx > _gmhalf { + dy = y3 - absx + dy = dy - _gmhalf + } else { + dy = y3 - _gmhalf + dy = dy - absx + } + z = absx - float64(0.5) + r = Tdouble_t(_S(tls, absx) * Xexp(tls, -y3)) + if x3 < Float64FromInt32(0) { + /* reflection formula for negative x */ + /* sinpi(absx) is not 0, integers are already handled */ + r = -_pi4 / float64(float64(_sinpi(tls, absx)*absx)*r) + dy = -dy + z = -z + } + r = r + Tdouble_t(Tdouble_t(dy*(_gmhalf+Float64FromFloat64(0.5)))*r)/y3 + z = Xpow(tls, y3, float64(float64(0.5)*z)) + y3 = float64(Tdouble_t(r*z) * z) + return y3 +} + +func Xtgammaf(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return float32(Xtgamma(tls, float64(x))) +} + +func Xtgammal(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xtgamma(tls, x) +} + +func Xtrunc(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e int32 + var m Tuint64_t + var y float32 + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _ = e, m, y, y1, y2 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + e = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp))>>Int32FromInt32(52)&Uint64FromInt32(0x7ff)) - int32(0x3ff) + int32(12) + if e >= Int32FromInt32(52)+Int32FromInt32(12) { + return x3 + } + if e < int32(12) { + e = int32(1) + } + m = uint64(-Uint64FromUint64(1) >> e) + if *(*Tuint64_t)(unsafe.Pointer(bp))&m == uint64(0) { + return x3 + } + if uint64(8) == uint64(4) { + y = float32(x3 + Float64FromFloat32(1.329227995784916e+36)) + } else { + if uint64(8) == uint64(8) { + y1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } else { + y2 = float64(x3 + Float64FromFloat32(1.329227995784916e+36)) + } + } + *(*Tuint64_t)(unsafe.Pointer(bp)) &= ^m + return *(*float64)(unsafe.Pointer(bp)) +} + +func Xtruncf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e int32 + var m Tuint32_t + var y float32 + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _ = e, m, y, y1, y2 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + e = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp))>>Int32FromInt32(23)&Uint32FromInt32(0xff)) - int32(0x7f) + int32(9) + if e >= Int32FromInt32(23)+Int32FromInt32(9) { + return x3 + } + if e < int32(9) { + e = int32(1) + } + m = -Uint32FromUint32(1) >> e + if *(*Tuint32_t)(unsafe.Pointer(bp))&m == uint32(0) { + return x3 + } + if uint64(4) == uint64(4) { + y = x3 + Float32FromFloat32(1.329227995784916e+36) + } else { + if uint64(4) == uint64(8) { + y1 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } else { + y2 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } + } + *(*Tuint32_t)(unsafe.Pointer(bp)) &= ^m + return *(*float32)(unsafe.Pointer(bp)) +} + +func Xtruncl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xtrunc(tls, x) +} + +var _digits = [65]int8{'.', '/', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'} + +func Xa64l(tls *TLS, s uintptr) (r int64) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var d uintptr + var e int32 + var x Tuint32_t + _, _, _ = d, e, x + x = uint32(0) + e = 0 + for { + if !(e < int32(36) && **(**int8)(__ccgo_up(s)) != 0) { + break + } + d = Xstrchr(tls, uintptr(unsafe.Pointer(&_digits)), int32(**(**int8)(__ccgo_up(s)))) + if !(d != 0) { + break + } + x = x | Uint32FromInt64(int64(d)-t__predefined_ptrdiff_t(uintptr(unsafe.Pointer(&_digits))))< %v", r) }() + } + var p uintptr + var x Tuint32_t + _, _ = p, x + x = Uint32FromInt64(x0) + p = uintptr(unsafe.Pointer(&_s)) + for { + if !(x != 0) { + break + } + **(**int8)(__ccgo_up(p)) = _digits[x&uint32(63)] + goto _1 + _1: + ; + p = p + 1 + x = x >> uint32(6) + } + **(**int8)(__ccgo_up(p)) = 0 + return uintptr(unsafe.Pointer(&_s)) +} + +var _s [7]int8 + +func Xbasename(tls *TLS, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var i Tsize_t + _ = i + if !(s != 0) || !(**(**int8)(__ccgo_up(s)) != 0) { + return __ccgo_ts + 558 + } + i = _strlen(tls, s) - uint64(1) + for { + if !(i != 0 && int32(**(**int8)(__ccgo_up(s + uintptr(i)))) == int32('/')) { + break + } + **(**int8)(__ccgo_up(s + uintptr(i))) = 0 + goto _1 + _1: + ; + i = i - 1 + } + for { + if !(i != 0 && int32(**(**int8)(__ccgo_up(s + uintptr(i-uint64(1))))) != int32('/')) { + break + } + goto _2 + _2: + ; + i = i - 1 + } + return s + uintptr(i) +} + +func X__xpg_basename(tls *TLS, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xbasename(tls, s) +} + +func Xdirname(tls *TLS, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var i Tsize_t + _ = i + if !(s != 0) || !(**(**int8)(__ccgo_up(s)) != 0) { + return __ccgo_ts + 558 + } + i = _strlen(tls, s) - uint64(1) + for { + if !(int32(**(**int8)(__ccgo_up(s + uintptr(i)))) == int32('/')) { + break + } + if !(i != 0) { + return __ccgo_ts + 566 + } + goto _1 + _1: + ; + i = i - 1 + } + for { + if !(int32(**(**int8)(__ccgo_up(s + uintptr(i)))) != int32('/')) { + break + } + if !(i != 0) { + return __ccgo_ts + 558 + } + goto _2 + _2: + ; + i = i - 1 + } + for { + if !(int32(**(**int8)(__ccgo_up(s + uintptr(i)))) == int32('/')) { + break + } + if !(i != 0) { + return __ccgo_ts + 566 + } + goto _3 + _3: + ; + i = i - 1 + } + **(**int8)(__ccgo_up(s + uintptr(i+uint64(1)))) = 0 + return s +} + +func Xffs(tls *TLS, i int32) (r int32) { + if __ccgo_strace { + trc("tls=%v i=%v, (%v:)", tls, i, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1, v3 int32 + var v2 uint64 + _, _, _ = v1, v2, v3 + if i != 0 { + v2 = Uint64FromInt32(i) + v3 = _a_ctz_64(tls, v2) + goto _4 + _4: + v1 = v3 + int32(1) + } else { + v1 = 0 + } + return v1 +} + +func Xffsl(tls *TLS, i int64) (r int32) { + if __ccgo_strace { + trc("tls=%v i=%v, (%v:)", tls, i, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1, v3 int32 + var v2 uint64 + _, _, _ = v1, v2, v3 + if i != 0 { + v2 = Uint64FromInt64(i) + v3 = _a_ctz_64(tls, v2) + goto _4 + _4: + v1 = v3 + int32(1) + } else { + v1 = 0 + } + return v1 +} + +func Xffsll(tls *TLS, i int64) (r int32) { + if __ccgo_strace { + trc("tls=%v i=%v, (%v:)", tls, i, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + _ = v1 + if i != 0 { + v1 = _a_ctz_64(tls, Uint64FromInt64(i)) + int32(1) + } else { + v1 = 0 + } + return v1 +} + +const MM_APPL = 8 +const MM_CONSOLE = 512 +const MM_ERROR = 2 +const MM_FIRM = 4 +const MM_HALT = 1 +const MM_HARD = 1 +const MM_INFO = 4 +const MM_NOCON = 4 +const MM_NOMSG = 1 +const MM_NOSEV = 0 +const MM_NOTOK = -1 +const MM_NRECOV = 128 +const MM_NULLMC = 0 +const MM_NULLSEV = 0 +const MM_OK = 0 +const MM_OPSYS = 32 +const MM_PRINT = 256 +const MM_RECOVER = 64 +const MM_SOFT = 2 +const MM_UTIL = 16 +const MM_WARNING = 3 + +// C documentation +// +// /* +// * If lstr is the first part of bstr, check that the next char in bstr +// * is either \0 or : +// */ +func __strcolcmp(tls *TLS, lstr uintptr, bstr uintptr) (r int32) { + var i Tsize_t + _ = i + i = uint64(0) + for **(**int8)(__ccgo_up(lstr + uintptr(i))) != 0 && **(**int8)(__ccgo_up(bstr + uintptr(i))) != 0 && int32(**(**int8)(__ccgo_up(bstr + uintptr(i)))) == int32(**(**int8)(__ccgo_up(lstr + uintptr(i)))) { + i = i + 1 + } + if **(**int8)(__ccgo_up(lstr + uintptr(i))) != 0 || **(**int8)(__ccgo_up(bstr + uintptr(i))) != 0 && int32(**(**int8)(__ccgo_up(bstr + uintptr(i)))) != int32(':') { + return int32(1) + } + return 0 +} + +func Xfmtmsg(tls *TLS, classification int64, label uintptr, severity int32, text uintptr, action uintptr, tag uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v classification=%v label=%v severity=%v text=%v action=%v tag=%v, (%v:)", tls, classification, label, severity, text, action, tag, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(80) + defer tls.Free(80) + var cmsg, errstring, v1, v2, v3, v4, v5, v6, v7, v8 uintptr + var consolefd, i, ret, verb int32 + var msgs [6]uintptr + var _ /* cs at bp+0 */ int32 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = cmsg, consolefd, errstring, i, msgs, ret, verb, v1, v2, v3, v4, v5, v6, v7, v8 + ret = 0 + verb = 0 + errstring = uintptr(MM_NULLSEV) + cmsg = Xgetenv(tls, __ccgo_ts+568) + msgs = [6]uintptr{ + 0: __ccgo_ts + 576, + 1: __ccgo_ts + 582, + 2: __ccgo_ts + 591, + 3: __ccgo_ts + 596, + 4: __ccgo_ts + 603, + 5: UintptrFromInt32(0), + } + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp) + if severity == int32(MM_HALT) { + errstring = __ccgo_ts + 607 + } else { + if severity == int32(MM_ERROR) { + errstring = __ccgo_ts + 614 + } else { + if severity == int32(MM_WARNING) { + errstring = __ccgo_ts + 622 + } else { + if severity == int32(MM_INFO) { + errstring = __ccgo_ts + 632 + } + } + } + } + if classification&int64(MM_CONSOLE) != 0 { + consolefd = Xopen(tls, __ccgo_ts+639, int32(O_WRONLY), 0) + if consolefd < 0 { + ret = int32(MM_NOCON) + } else { + if label != 0 { + v1 = label + } else { + v1 = __ccgo_ts + } + if label != 0 { + v2 = __ccgo_ts + 289 + } else { + v2 = __ccgo_ts + } + if severity != 0 { + v3 = errstring + } else { + v3 = __ccgo_ts + } + if text != 0 { + v4 = text + } else { + v4 = __ccgo_ts + } + if action != 0 { + v5 = __ccgo_ts + 652 + } else { + v5 = __ccgo_ts + } + if action != 0 { + v6 = action + } else { + v6 = __ccgo_ts + } + if action != 0 { + v7 = __ccgo_ts + 662 + } else { + v7 = __ccgo_ts + } + if tag != 0 { + v8 = tag + } else { + v8 = __ccgo_ts + } + if Xdprintf(tls, consolefd, __ccgo_ts+664, VaList(bp+16, v1, v2, v3, v4, v5, v6, v7, v8)) < int32(1) { + ret = int32(MM_NOCON) + } + Xclose(tls, consolefd) + } + } + if classification&int64(MM_PRINT) != 0 { + for cmsg != 0 && **(**int8)(__ccgo_up(cmsg)) != 0 { + i = 0 + for { + if !(msgs[i] != 0) { + break + } + if !(__strcolcmp(tls, msgs[i], cmsg) != 0) { + break + } + goto _9 + _9: + ; + i = i + 1 + } + if msgs[i] == UintptrFromInt32(0) { + //ignore MSGVERB-unrecognized component + verb = int32(0xFF) + break + } else { + verb = verb | int32(1)< %v", r) }() + } + bp := tls.Alloc(256) + defer tls.Free(256) + var res uintptr + var _ /* a at bp+0 */ Tstat + var _ /* b at bp+128 */ Tstat + _ = res + res = Xgetenv(tls, __ccgo_ts+682) + if res != 0 && **(**int8)(__ccgo_up(res)) != 0 && !(Xstat(tls, res, bp) != 0) && !(Xstat(tls, __ccgo_ts+558, bp+128) != 0) && (**(**Tstat)(__ccgo_up(bp))).Fst_dev == (**(**Tstat)(__ccgo_up(bp + 128))).Fst_dev && (**(**Tstat)(__ccgo_up(bp))).Fst_ino == (**(**Tstat)(__ccgo_up(bp + 128))).Fst_ino { + return Xstrdup(tls, res) + } + return Xgetcwd(tls, uintptr(0), uint64(0)) +} + +func X__getauxval(tls *TLS, item uint64) (r uint64) { + if __ccgo_strace { + trc("tls=%v item=%v, (%v:)", tls, item, origin(2)) + defer func() { trc("-> %v", r) }() + } + var auxv uintptr + _ = auxv + auxv = X__libc.Fauxv + if item == uint64(AT_SECURE) { + return Uint64FromInt8(X__libc.Fsecure) + } + for { + if !(**(**Tsize_t)(__ccgo_up(auxv)) != 0) { + break + } + if **(**Tsize_t)(__ccgo_up(auxv)) == item { + return **(**Tsize_t)(__ccgo_up(auxv + 1*8)) + } + goto _1 + _1: + ; + auxv = auxv + uintptr(2)*8 + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOENT) + return uint64(0) +} + +func Xgetauxval(tls *TLS, item uint64) (r uint64) { + if __ccgo_strace { + trc("tls=%v item=%v, (%v:)", tls, item, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__getauxval(tls, item) +} + +type Tutsname = struct { + Fsysname [65]int8 + Fnodename [65]int8 + Frelease [65]int8 + Fversion [65]int8 + Fmachine [65]int8 + Fdomainname [65]int8 +} + +func Xgetdomainname(tls *TLS, name uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v len1=%v, (%v:)", tls, name, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(400) + defer tls.Free(400) + var _ /* temp at bp+0 */ Tutsname + Xuname(tls, bp) + if !(len1 != 0) || _strlen(tls, bp+325) >= len1 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + Xstrcpy(tls, name, bp+325) + return 0 +} + +func Xgetentropy(tls *TLS, buffer uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v buffer=%v len1=%v, (%v:)", tls, buffer, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var pos uintptr + var ret int32 + var _ /* cs at bp+0 */ int32 + _, _ = pos, ret + ret = 0 + pos = buffer + if len1 > uint64(256) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EIO) + return -int32(1) + } + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp) + for len1 != 0 { + ret = int32(Xgetrandom(tls, pos, len1, uint32(0))) + if ret < 0 { + if **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EINTR) { + continue + } else { + break + } + } + pos = pos + uintptr(ret) + len1 = len1 - Uint64FromInt32(ret) + ret = 0 + } + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp)), uintptr(0)) + return ret +} + +func Xgethostid(tls *TLS) (r int64) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return 0 +} + +const optpos = 0 + +func X__getopt_msg(tls *TLS, a uintptr, b uintptr, c uintptr, l Tsize_t) { + if __ccgo_strace { + trc("tls=%v a=%v b=%v c=%v l=%v, (%v:)", tls, a, b, c, l, origin(2)) + } + var __need_unlock, v1 int32 + var f uintptr + _, _, _ = __need_unlock, f, v1 + f = uintptr(unsafe.Pointer(&X__stderr_FILE)) + b = X__lctrans_cur(tls, b) + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + _ = Xfputs(tls, a, f) >= 0 && Xfwrite(tls, b, _strlen(tls, b), uint64(1), f) != 0 && Xfwrite(tls, c, uint64(1), l, f) == l && Xputc(tls, int32('\n'), f) != 0 + if __need_unlock != 0 { + ___unlockfile(tls, f) + } +} + +func Xgetopt(tls *TLS, argc int32, argv uintptr, optstring uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v argc=%v argv=%v optstring=%v, (%v:)", tls, argc, argv, optstring, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var i, k, l, v1 int32 + var optchar uintptr + var _ /* c at bp+0 */ Twchar_t + var _ /* d at bp+4 */ Twchar_t + _, _, _, _, _ = i, k, l, optchar, v1 + if !(Xoptind != 0) || Xoptreset != 0 { + Xoptreset = 0 + X__optpos = 0 + Xoptind = int32(1) + } + if Xoptind >= argc || !(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) != 0) { + return -int32(1) + } + if int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8))))) != int32('-') { + if int32(**(**int8)(__ccgo_up(optstring))) == int32('-') { + v1 = Xoptind + Xoptind = Xoptind + 1 + Xoptarg = **(**uintptr)(__ccgo_up(argv + uintptr(v1)*8)) + return int32(1) + } + return -int32(1) + } + if !(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) + 1)) != 0) { + return -int32(1) + } + if int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) + 1))) == int32('-') && !(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) + 2)) != 0) { + Xoptind = Xoptind + 1 + return -Int32FromInt32(1) + } + if !(X__optpos != 0) { + X__optpos = X__optpos + 1 + } + v1 = Xmbtowc(tls, bp, **(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8))+uintptr(X__optpos), uint64(MB_LEN_MAX)) + k = v1 + if v1 < 0 { + k = int32(1) + **(**Twchar_t)(__ccgo_up(bp)) = int32(0xfffd) /* replacement char */ + } + optchar = **(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) + uintptr(X__optpos) + X__optpos = X__optpos + k + if !(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) + uintptr(X__optpos))) != 0) { + Xoptind = Xoptind + 1 + X__optpos = 0 + } + if int32(**(**int8)(__ccgo_up(optstring))) == int32('-') || int32(**(**int8)(__ccgo_up(optstring))) == int32('+') { + optstring = optstring + 1 + } + i = 0 + **(**Twchar_t)(__ccgo_up(bp + 4)) = 0 + for cond := true; cond; cond = l != 0 && **(**Twchar_t)(__ccgo_up(bp + 4)) != **(**Twchar_t)(__ccgo_up(bp)) { + l = Xmbtowc(tls, bp+4, optstring+uintptr(i), uint64(MB_LEN_MAX)) + if l > 0 { + i = i + l + } else { + i = i + 1 + } + } + if **(**Twchar_t)(__ccgo_up(bp + 4)) != **(**Twchar_t)(__ccgo_up(bp)) || **(**Twchar_t)(__ccgo_up(bp)) == int32(':') { + Xoptopt = **(**Twchar_t)(__ccgo_up(bp)) + if int32(**(**int8)(__ccgo_up(optstring))) != int32(':') && Xopterr != 0 { + X__getopt_msg(tls, **(**uintptr)(__ccgo_up(argv)), __ccgo_ts+686, optchar, Uint64FromInt32(k)) + } + return int32('?') + } + if int32(**(**int8)(__ccgo_up(optstring + uintptr(i)))) == int32(':') { + Xoptarg = uintptr(0) + if int32(**(**int8)(__ccgo_up(optstring + uintptr(i+int32(1))))) != int32(':') || X__optpos != 0 { + v1 = Xoptind + Xoptind = Xoptind + 1 + Xoptarg = **(**uintptr)(__ccgo_up(argv + uintptr(v1)*8)) + if X__optpos != 0 { + Xoptarg = Xoptarg + uintptr(X__optpos) + } + X__optpos = 0 + } + if Xoptind > argc { + Xoptopt = **(**Twchar_t)(__ccgo_up(bp)) + if int32(**(**int8)(__ccgo_up(optstring))) == int32(':') { + return int32(':') + } + if Xopterr != 0 { + X__getopt_msg(tls, **(**uintptr)(__ccgo_up(argv)), __ccgo_ts+710, optchar, Uint64FromInt32(k)) + } + return int32('?') + } + } + return **(**Twchar_t)(__ccgo_up(bp)) +} + +func X__posix_getopt(tls *TLS, argc int32, argv uintptr, optstring uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v argc=%v argv=%v optstring=%v, (%v:)", tls, argc, argv, optstring, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetopt(tls, argc, argv, optstring) +} + +const no_argument = 0 +const optional_argument = 2 +const required_argument = 1 + +type Toption = struct { + Fname uintptr + Fhas_arg int32 + Fflag uintptr + Fval int32 +} + +func _permute(tls *TLS, argv uintptr, dest int32, src int32) { + var av, tmp uintptr + var i int32 + _, _, _ = av, i, tmp + av = argv + tmp = **(**uintptr)(__ccgo_up(av + uintptr(src)*8)) + i = src + for { + if !(i > dest) { + break + } + **(**uintptr)(__ccgo_up(av + uintptr(i)*8)) = **(**uintptr)(__ccgo_up(av + uintptr(i-int32(1))*8)) + goto _1 + _1: + ; + i = i - 1 + } + **(**uintptr)(__ccgo_up(av + uintptr(dest)*8)) = tmp +} + +func ___getopt_long(tls *TLS, argc int32, argv uintptr, optstring uintptr, longopts uintptr, idx uintptr, longonly int32) (r int32) { + var cnt, i, i1, resumed, ret, skipped int32 + _, _, _, _, _, _ = cnt, i, i1, resumed, ret, skipped + if !(Xoptind != 0) || Xoptreset != 0 { + Xoptreset = 0 + X__optpos = 0 + Xoptind = int32(1) + } + if Xoptind >= argc || !(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) != 0) { + return -int32(1) + } + skipped = Xoptind + if int32(**(**int8)(__ccgo_up(optstring))) != int32('+') && int32(**(**int8)(__ccgo_up(optstring))) != int32('-') { + i = Xoptind + for { + if i >= argc || !(**(**uintptr)(__ccgo_up(argv + uintptr(i)*8)) != 0) { + return -int32(1) + } + if int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(i)*8))))) == int32('-') && **(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(i)*8)) + 1)) != 0 { + break + } + goto _1 + _1: + ; + i = i + 1 + } + Xoptind = i + } + resumed = Xoptind + ret = ___getopt_long_core(tls, argc, argv, optstring, longopts, idx, longonly) + if resumed > skipped { + cnt = Xoptind - resumed + i1 = 0 + for { + if !(i1 < cnt) { + break + } + _permute(tls, argv, skipped, Xoptind-int32(1)) + goto _2 + _2: + ; + i1 = i1 + 1 + } + Xoptind = skipped + cnt + } + return ret +} + +func ___getopt_long_core(tls *TLS, argc int32, argv uintptr, optstring uintptr, longopts uintptr, idx uintptr, longonly int32) (r int32) { + var arg, name, opt, start, v5 uintptr + var cnt, colon, i, j, l, match, v2 int32 + _, _, _, _, _, _, _, _, _, _, _, _ = arg, cnt, colon, i, j, l, match, name, opt, start, v2, v5 + Xoptarg = uintptr(0) + if longopts != 0 && int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8))))) == int32('-') && (longonly != 0 && **(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) + 1)) != 0 && int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) + 1))) != int32('-') || int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) + 1))) == int32('-') && **(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) + 2)) != 0) { + colon = BoolInt32(int32(**(**int8)(__ccgo_up(optstring + BoolUintptr(int32(**(**int8)(__ccgo_up(optstring))) == int32('+') || int32(**(**int8)(__ccgo_up(optstring))) == int32('-'))))) == int32(':')) + start = **(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) + uintptr(1) + v2 = Int32FromInt32(0) + i = v2 + cnt = v2 + for { + if !((**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fname != 0) { + break + } + name = (**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fname + opt = start + if int32(**(**int8)(__ccgo_up(opt))) == int32('-') { + opt = opt + 1 + } + for **(**int8)(__ccgo_up(opt)) != 0 && int32(**(**int8)(__ccgo_up(opt))) != int32('=') && int32(**(**int8)(__ccgo_up(opt))) == int32(**(**int8)(__ccgo_up(name))) { + name = name + 1 + opt = opt + 1 + } + if **(**int8)(__ccgo_up(opt)) != 0 && int32(**(**int8)(__ccgo_up(opt))) != int32('=') { + goto _1 + } + arg = opt + match = i + if !(**(**int8)(__ccgo_up(name)) != 0) { + cnt = int32(1) + break + } + cnt = cnt + 1 + goto _1 + _1: + ; + i = i + 1 + } + if cnt == int32(1) && longonly != 0 && int64(arg)-int64(start) == int64(Xmblen(tls, start, uint64(MB_LEN_MAX))) { + l = int32(int64(arg) - int64(start)) + i = 0 + for { + if !(**(**int8)(__ccgo_up(optstring + uintptr(i))) != 0) { + break + } + j = 0 + for { + if !(j < l && int32(**(**int8)(__ccgo_up(start + uintptr(j)))) == int32(**(**int8)(__ccgo_up(optstring + uintptr(i+j))))) { + break + } + goto _4 + _4: + ; + j = j + 1 + } + if j == l { + cnt = cnt + 1 + break + } + goto _3 + _3: + ; + i = i + 1 + } + } + if cnt == int32(1) { + i = match + opt = arg + Xoptind = Xoptind + 1 + if int32(**(**int8)(__ccgo_up(opt))) == int32('=') { + if !((**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fhas_arg != 0) { + Xoptopt = (**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fval + if colon != 0 || !(Xopterr != 0) { + return int32('?') + } + X__getopt_msg(tls, **(**uintptr)(__ccgo_up(argv)), __ccgo_ts+742, (**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fname, _strlen(tls, (**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fname)) + return int32('?') + } + Xoptarg = opt + uintptr(1) + } else { + if (**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fhas_arg == int32(required_argument) { + v5 = **(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) + Xoptarg = v5 + if !(v5 != 0) { + Xoptopt = (**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fval + if colon != 0 { + return int32(':') + } + if !(Xopterr != 0) { + return int32('?') + } + X__getopt_msg(tls, **(**uintptr)(__ccgo_up(argv)), __ccgo_ts+710, (**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fname, _strlen(tls, (**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fname)) + return int32('?') + } + Xoptind = Xoptind + 1 + } + } + if idx != 0 { + **(**int32)(__ccgo_up(idx)) = i + } + if (**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fflag != 0 { + **(**int32)(__ccgo_up((**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fflag)) = (**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fval + return 0 + } + return (**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fval + } + if int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) + 1))) == int32('-') { + Xoptopt = 0 + if !(colon != 0) && Xopterr != 0 { + if cnt != 0 { + v5 = __ccgo_ts + 779 + } else { + v5 = __ccgo_ts + 686 + } + X__getopt_msg(tls, **(**uintptr)(__ccgo_up(argv)), v5, **(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8))+uintptr(2), _strlen(tls, **(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8))+uintptr(2))) + } + Xoptind = Xoptind + 1 + return int32('?') + } + } + return Xgetopt(tls, argc, argv, optstring) +} + +func Xgetopt_long(tls *TLS, argc int32, argv uintptr, optstring uintptr, longopts uintptr, idx uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v argc=%v argv=%v optstring=%v longopts=%v idx=%v, (%v:)", tls, argc, argv, optstring, longopts, idx, origin(2)) + defer func() { trc("-> %v", r) }() + } + return ___getopt_long(tls, argc, argv, optstring, longopts, idx, 0) +} + +func Xgetopt_long_only(tls *TLS, argc int32, argv uintptr, optstring uintptr, longopts uintptr, idx uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v argc=%v argv=%v optstring=%v longopts=%v idx=%v, (%v:)", tls, argc, argv, optstring, longopts, idx, origin(2)) + defer func() { trc("-> %v", r) }() + } + return ___getopt_long(tls, argc, argv, optstring, longopts, idx, int32(1)) +} + +func Xgetpriority(tls *TLS, which int32, who Tid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v which=%v who=%v, (%v:)", tls, which, who, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret int32 + _ = ret + ret = int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_getpriority), int64(which), Int64FromUint32(who))))) + if ret < 0 { + return ret + } + return int32(20) - ret +} + +func Xgetresgid(tls *TLS, rgid uintptr, egid uintptr, sgid uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v rgid=%v egid=%v sgid=%v, (%v:)", tls, rgid, egid, sgid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_getresgid), int64(rgid), int64(egid), int64(sgid))))) +} + +func Xgetresuid(tls *TLS, ruid uintptr, euid uintptr, suid uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v ruid=%v euid=%v suid=%v, (%v:)", tls, ruid, euid, suid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_getresuid), int64(ruid), int64(euid), int64(suid))))) +} + +func Xgetrlimit(tls *TLS, resource int32, rlim uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v resource=%v rlim=%v, (%v:)", tls, resource, rlim, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret int32 + _ = ret + ret = int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_prlimit64), int64(Int32FromInt32(0)), int64(resource), int64(Int32FromInt32(0)), int64(rlim))))) + if !(ret != 0) { + if (*Trlimit)(unsafe.Pointer(rlim)).Frlim_cur >= ^Uint64FromUint64(0) { + (*Trlimit)(unsafe.Pointer(rlim)).Frlim_cur = ^Uint64FromUint64(0) + } + if (*Trlimit)(unsafe.Pointer(rlim)).Frlim_max >= ^Uint64FromUint64(0) { + (*Trlimit)(unsafe.Pointer(rlim)).Frlim_max = ^Uint64FromUint64(0) + } + } + return ret +} + +func Xgetrusage(tls *TLS, who int32, ru uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v who=%v ru=%v, (%v:)", tls, who, ru, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var dest uintptr + var r int32 + var _ /* kru at bp+0 */ [4]int64 + _, _ = dest, r + dest = ru + 32 - uintptr(Uint64FromInt32(4)*Uint64FromInt64(8)) + r = int32(X__syscall2(tls, int64(SYS_getrusage), int64(who), int64(dest))) + if !(r != 0) && Bool(uint64(8) > uint64(8)) { + Xmemcpy(tls, bp, dest, Uint64FromInt32(4)*Uint64FromInt64(8)) + (*Trusage)(unsafe.Pointer(ru)).Fru_utime = Ttimeval{ + Ftv_sec: (**(**[4]int64)(__ccgo_up(bp)))[0], + Ftv_usec: (**(**[4]int64)(__ccgo_up(bp)))[int32(1)], + } + (*Trusage)(unsafe.Pointer(ru)).Fru_stime = Ttimeval{ + Ftv_sec: (**(**[4]int64)(__ccgo_up(bp)))[int32(2)], + Ftv_usec: (**(**[4]int64)(__ccgo_up(bp)))[int32(3)], + } + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func Xgetsubopt(tls *TLS, opt uintptr, keys uintptr, val uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v opt=%v keys=%v val=%v, (%v:)", tls, opt, keys, val, origin(2)) + defer func() { trc("-> %v", r) }() + } + var i int32 + var l Tsize_t + var s, v1, v2 uintptr + _, _, _, _, _ = i, l, s, v1, v2 + s = **(**uintptr)(__ccgo_up(opt)) + **(**uintptr)(__ccgo_up(val)) = UintptrFromInt32(0) + **(**uintptr)(__ccgo_up(opt)) = Xstrchr(tls, s, int32(',')) + if **(**uintptr)(__ccgo_up(opt)) != 0 { + v2 = opt + v1 = *(*uintptr)(unsafe.Pointer(v2)) + *(*uintptr)(unsafe.Pointer(v2)) = *(*uintptr)(unsafe.Pointer(v2)) + 1 + **(**int8)(__ccgo_up(v1)) = 0 + } else { + **(**uintptr)(__ccgo_up(opt)) = s + uintptr(_strlen(tls, s)) + } + i = 0 + for { + if !(**(**uintptr)(__ccgo_up(keys + uintptr(i)*8)) != 0) { + break + } + l = _strlen(tls, **(**uintptr)(__ccgo_up(keys + uintptr(i)*8))) + if Xstrncmp(tls, **(**uintptr)(__ccgo_up(keys + uintptr(i)*8)), s, l) != 0 { + goto _3 + } + if int32(**(**int8)(__ccgo_up(s + uintptr(l)))) == int32('=') { + **(**uintptr)(__ccgo_up(val)) = s + uintptr(l) + uintptr(1) + } else { + if **(**int8)(__ccgo_up(s + uintptr(l))) != 0 { + goto _3 + } + } + return i + goto _3 + _3: + ; + i = i + 1 + } + return -int32(1) +} + +const R = 2 +const W = 1 +const WR = 3 + +type Tioctl_compat_map = struct { + Fnew_req int32 + Fold_req int32 + Fold_size uint8 + Fdir uint8 + Fforce_align uint8 + Fnoffs uint8 + Foffsets [8]uint8 +} + +/* yields a type for a struct with original size n, with a misaligned + * timeval/timespec expanded from 32- to 64-bit. for use with ioctl + * number producing macros; only size of result is meaningful. */ + +type Tv4l2_event = struct { + Fa Tuint32_t + Fb [8]Tuint64_t + Fc [2]Tuint32_t + Fts [2]Tuint32_t + Fd [9]Tuint32_t +} + +var _compat_map = [20]Tioctl_compat_map{ + 0: { + Fnew_req: int32(SIOCGSTAMP), + Fold_req: int32(SIOCGSTAMP_OLD), + Fold_size: uint8(8), + Fdir: uint8(R), + Fnoffs: uint8(2), + Foffsets: [8]uint8{ + 1: uint8(4), + }, + }, + 1: { + Fnew_req: int32(SIOCGSTAMPNS), + Fold_req: int32(SIOCGSTAMPNS_OLD), + Fold_size: uint8(8), + Fdir: uint8(R), + Fnoffs: uint8(2), + Foffsets: [8]uint8{ + 1: uint8(4), + }, + }, + 2: { + Fnew_req: Int32FromUint64(uint64(Uint32FromUint32(2)< %v", r1) }() + } + bp := tls.Alloc(256) + defer tls.Free(256) + var ap Tva_list + var arg uintptr + var i, r int32 + var _ /* u at bp+0 */ struct { + Fbuf [0][256]int8 + Falign int64 + F__ccgo_pad2 [248]byte + } + _, _, _, _ = ap, arg, i, r + ap = va + arg = VaUintptr(&ap) + _ = ap + r = int32(X__syscall3(tls, int64(SYS_ioctl), int64(fd), int64(req), int64(arg))) + if Bool(Bool(int32(SIOCGSTAMP) != int32(SIOCGSTAMP_OLD)) && req != 0) && r == -int32(ENOTTY) { + i = 0 + for { + if !(Uint64FromInt32(i) < Uint64FromInt64(400)/Uint64FromInt64(20)) { + break + } + if _compat_map[i].Fnew_req != req { + goto _1 + } + _convert_ioctl_struct(tls, uintptr(unsafe.Pointer(&_compat_map))+uintptr(i)*20, bp, arg, int32(W)) + r = int32(X__syscall3(tls, int64(SYS_ioctl), int64(fd), int64(_compat_map[i].Fold_req), int64(bp))) + if r < 0 { + break + } + _convert_ioctl_struct(tls, uintptr(unsafe.Pointer(&_compat_map))+uintptr(i)*20, bp, arg, int32(R)) + break + goto _1 + _1: + ; + i = i + 1 + } + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func Xissetugid(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__libc.Fsecure) +} + +func Xlockf(tls *TLS, fd int32, op int32, size Toff_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v op=%v size=%v, (%v:)", tls, fd, op, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + var _ /* l at bp+0 */ Tflock + **(**Tflock)(__ccgo_up(bp)) = Tflock{ + Fl_type: int16(F_WRLCK), + Fl_whence: int16(1), + Fl_len: size, + } + switch op { + case int32(F_TEST): + (**(**Tflock)(__ccgo_up(bp))).Fl_type = F_RDLCK + if Xfcntl(tls, fd, int32(F_GETLK), VaList(bp+40, bp)) < 0 { + return -int32(1) + } + if int32((**(**Tflock)(__ccgo_up(bp))).Fl_type) == int32(F_UNLCK) || (**(**Tflock)(__ccgo_up(bp))).Fl_pid == Xgetpid(tls) { + return 0 + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EACCES) + return -int32(1) + case F_ULOCK: + (**(**Tflock)(__ccgo_up(bp))).Fl_type = int16(F_UNLCK) + fallthrough + case int32(F_TLOCK): + return Xfcntl(tls, fd, int32(F_SETLK), VaList(bp+40, bp)) + case int32(F_LOCK): + return Xfcntl(tls, fd, int32(F_SETLKW), VaList(bp+40, bp)) + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) +} + +const ACCOUNTING = 9 +const UTMP_FILE = "_PATH_UTMP" +const UTMP_FILENAME = "_PATH_UTMP" +const UT_HOSTSIZE = 256 +const UT_LINESIZE = 32 +const UT_NAMESIZE = 32 +const WTMP_FILE = "_PATH_WTMP" +const WTMP_FILENAME = "_PATH_WTMP" +const _PATH_UTMP = "/dev/null/utmp" +const _PATH_WTMP = "/dev/null/wtmp" +const ut_name = 0 +const utmp = 0 + +type Tlastlog = struct { + Fll_time Ttime_t + Fll_line [32]int8 + Fll_host [256]int8 +} + +func Xlogin_tty(tls *TLS, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + Xsetsid(tls) + if Xioctl(tls, fd, int32(TIOCSCTTY), VaList(bp+8, UintptrFromInt32(0))) != 0 { + return -int32(1) + } + Xdup2(tls, fd, 0) + Xdup2(tls, fd, int32(1)) + Xdup2(tls, fd, int32(2)) + if fd > int32(2) { + Xclose(tls, fd) + } + return 0 +} + +const MNTOPT_DEFAULTS = "defaults" +const MNTOPT_NOAUTO = "noauto" +const MNTOPT_NOSUID = "nosuid" +const MNTOPT_RO = "ro" +const MNTOPT_RW = "rw" +const MNTOPT_SUID = "suid" +const MNTTYPE_IGNORE = "ignore" +const MNTTYPE_NFS = "nfs" +const MNTTYPE_SWAP = "swap" +const MOUNTED = "/etc/mtab" +const SENTINEL = 0 + +type Tmntent = struct { + Fmnt_fsname uintptr + Fmnt_dir uintptr + Fmnt_type uintptr + Fmnt_opts uintptr + Fmnt_freq int32 + Fmnt_passno int32 +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +var _internal_buf uintptr +var _internal_bufsize Tsize_t + +func Xsetmntent(tls *TLS, name uintptr, mode uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v mode=%v, (%v:)", tls, name, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfopen(tls, name, mode) +} + +func Xendmntent(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + if f != 0 { + Xfclose(tls, f) + } + return int32(1) +} + +func _unescape_ent(tls *TLS, beg uintptr) (r uintptr) { + var cval uint8 + var dest, src, val, v1, v2 uintptr + var i int32 + _, _, _, _, _, _, _ = cval, dest, i, src, val, v1, v2 + dest = beg + src = beg + for **(**int8)(__ccgo_up(src)) != 0 { + cval = uint8(0) + if int32(**(**int8)(__ccgo_up(src))) != int32('\\') { + v1 = dest + dest = dest + 1 + v2 = src + src = src + 1 + **(**int8)(__ccgo_up(v1)) = **(**int8)(__ccgo_up(v2)) + continue + } + if int32(**(**int8)(__ccgo_up(src + 1))) == int32('\\') { + src = src + 1 + v1 = dest + dest = dest + 1 + v2 = src + src = src + 1 + **(**int8)(__ccgo_up(v1)) = **(**int8)(__ccgo_up(v2)) + continue + } + val = src + uintptr(1) + i = 0 + for { + if !(i < int32(3)) { + break + } + if int32(**(**int8)(__ccgo_up(val))) >= int32('0') && int32(**(**int8)(__ccgo_up(val))) <= int32('7') { + cval = Uint8FromInt32(int32(cval) << Int32FromInt32(3)) + v1 = val + val = val + 1 + cval = Uint8FromInt32(int32(cval) + (int32(**(**int8)(__ccgo_up(v1))) - Int32FromUint8('0'))) + } else { + break + } + goto _5 + _5: + ; + i = i + 1 + } + if cval != 0 { + v1 = dest + dest = dest + 1 + **(**int8)(__ccgo_up(v1)) = Int8FromUint8(cval) + src = val + } else { + v1 = dest + dest = dest + 1 + v2 = src + src = src + 1 + **(**int8)(__ccgo_up(v1)) = **(**int8)(__ccgo_up(v2)) + } + } + **(**int8)(__ccgo_up(dest)) = 0 + return beg +} + +func Xgetmntent_r(tls *TLS, f uintptr, mnt uintptr, linebuf uintptr, buflen int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v mnt=%v linebuf=%v buflen=%v, (%v:)", tls, f, mnt, linebuf, buflen, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(128) + defer tls.Free(128) + var i, len1 Tsize_t + var use_internal int32 + var _ /* n at bp+0 */ [8]int32 + _, _, _ = i, len1, use_internal + use_internal = BoolInt32(linebuf == uintptr(unsafe.Pointer(&_internal_buf))) + (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_freq = 0 + (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_passno = 0 + for cond := true; cond; cond = int32(**(**int8)(__ccgo_up(linebuf + uintptr((**(**[8]int32)(__ccgo_up(bp)))[0])))) == int32('#') || Uint64FromInt32((**(**[8]int32)(__ccgo_up(bp)))[int32(1)]) == len1 { + if use_internal != 0 { + Xgetline(tls, uintptr(unsafe.Pointer(&_internal_buf)), uintptr(unsafe.Pointer(&_internal_bufsize)), f) + linebuf = _internal_buf + } else { + Xfgets(tls, linebuf, buflen, f) + } + if Xfeof(tls, f) != 0 || Xferror(tls, f) != 0 { + return uintptr(0) + } + if !(Xstrchr(tls, linebuf, int32('\n')) != 0) { + Xfscanf(tls, f, __ccgo_ts+803, 0) + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ERANGE) + return uintptr(0) + } + len1 = _strlen(tls, linebuf) + if len1 > uint64(INT_MAX) { + continue + } + i = uint64(0) + for { + if !(i < Uint64FromInt64(32)/Uint64FromInt64(4)) { + break + } + (**(**[8]int32)(__ccgo_up(bp)))[i] = Int32FromUint64(len1) + goto _1 + _1: + ; + i = i + 1 + } + Xsscanf(tls, linebuf, __ccgo_ts+815, VaList(bp+40, bp, bp+uintptr(1)*4, bp+uintptr(2)*4, bp+uintptr(3)*4, bp+uintptr(4)*4, bp+uintptr(5)*4, bp+uintptr(6)*4, bp+uintptr(7)*4, mnt+32, mnt+36)) + } + **(**int8)(__ccgo_up(linebuf + uintptr((**(**[8]int32)(__ccgo_up(bp)))[int32(1)]))) = 0 + **(**int8)(__ccgo_up(linebuf + uintptr((**(**[8]int32)(__ccgo_up(bp)))[int32(3)]))) = 0 + **(**int8)(__ccgo_up(linebuf + uintptr((**(**[8]int32)(__ccgo_up(bp)))[int32(5)]))) = 0 + **(**int8)(__ccgo_up(linebuf + uintptr((**(**[8]int32)(__ccgo_up(bp)))[int32(7)]))) = 0 + (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_fsname = _unescape_ent(tls, linebuf+uintptr((**(**[8]int32)(__ccgo_up(bp)))[0])) + (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_dir = _unescape_ent(tls, linebuf+uintptr((**(**[8]int32)(__ccgo_up(bp)))[int32(2)])) + (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_type = _unescape_ent(tls, linebuf+uintptr((**(**[8]int32)(__ccgo_up(bp)))[int32(4)])) + (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_opts = _unescape_ent(tls, linebuf+uintptr((**(**[8]int32)(__ccgo_up(bp)))[int32(6)])) + return mnt +} + +func Xgetmntent(tls *TLS, f uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetmntent_r(tls, f, uintptr(unsafe.Pointer(&_mnt)), uintptr(unsafe.Pointer(&_internal_buf)), 0) +} + +var _mnt Tmntent + +func Xaddmntent(tls *TLS, f uintptr, mnt uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v mnt=%v, (%v:)", tls, f, mnt, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + if Xfseek(tls, f, 0, int32(2)) != 0 { + return int32(1) + } + return BoolInt32(Xfprintf(tls, f, __ccgo_ts+870, VaList(bp+8, (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_fsname, (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_dir, (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_type, (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_opts, (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_freq, (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_passno)) < 0) +} + +func Xhasmntopt(tls *TLS, mnt uintptr, opt uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v mnt=%v opt=%v, (%v:)", tls, mnt, opt, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrstr(tls, (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_opts, opt) +} + +type Thistory = struct { + Fchain uintptr + Fdev Tdev_t + Fino Tino_t + Flevel int32 + Fbase int32 +} + +func _do_nftw(tls *TLS, path uintptr, __ccgo_fp_fn uintptr, fd_limit int32, flags int32, h uintptr) (r1 int32) { + bp := tls.Alloc(176) + defer tls.Free(176) + var d, de, v10 uintptr + var dfd, err, r, type1, v3 int32 + var j, k, l Tsize_t + var v1 uint64 + var v8 bool + var v2 Tino_t + var _ /* lev at bp+160 */ TFTW + var _ /* new at bp+128 */ Thistory + var _ /* st at bp+0 */ Tstat + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = d, de, dfd, err, j, k, l, r, type1, v1, v10, v2, v3, v8 + l = _strlen(tls, path) + if l != 0 && int32(**(**int8)(__ccgo_up(path + uintptr(l-uint64(1))))) == int32('/') { + v1 = l - uint64(1) + } else { + v1 = l + } + j = v1 + v2 = Uint64FromInt32(0) + (**(**Tstat)(__ccgo_up(bp))).Fst_ino = v2 + (**(**Tstat)(__ccgo_up(bp))).Fst_dev = v2 + if flags&int32(FTW_PHYS) != 0 { + v3 = Xlstat(tls, path, bp) + } else { + v3 = BoolInt32(Xstat(tls, path, bp) < 0) + } + if v3 != 0 { + if !(flags&Int32FromInt32(FTW_PHYS) != 0) && **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(ENOENT) && !(Xlstat(tls, path, bp) != 0) { + type1 = int32(FTW_SLN) + } else { + if **(**int32)(__ccgo_up(X__errno_location(tls))) != int32(EACCES) { + return -int32(1) + } else { + type1 = int32(FTW_NS) + } + } + } else { + if (**(**Tstat)(__ccgo_up(bp))).Fst_mode&uint32(S_IFMT) == uint32(S_IFDIR) { + if flags&int32(FTW_DEPTH) != 0 { + type1 = int32(FTW_DP) + } else { + type1 = int32(FTW_D) + } + } else { + if (**(**Tstat)(__ccgo_up(bp))).Fst_mode&uint32(S_IFMT) == uint32(S_IFLNK) { + if flags&int32(FTW_PHYS) != 0 { + type1 = int32(FTW_SL) + } else { + type1 = int32(FTW_SLN) + } + } else { + type1 = int32(FTW_F) + } + } + } + if flags&int32(FTW_MOUNT) != 0 && h != 0 && type1 != int32(FTW_NS) && (**(**Tstat)(__ccgo_up(bp))).Fst_dev != (*Thistory)(unsafe.Pointer(h)).Fdev { + return 0 + } + (**(**Thistory)(__ccgo_up(bp + 128))).Fchain = h + (**(**Thistory)(__ccgo_up(bp + 128))).Fdev = (**(**Tstat)(__ccgo_up(bp))).Fst_dev + (**(**Thistory)(__ccgo_up(bp + 128))).Fino = (**(**Tstat)(__ccgo_up(bp))).Fst_ino + if h != 0 { + v3 = (*Thistory)(unsafe.Pointer(h)).Flevel + int32(1) + } else { + v3 = 0 + } + (**(**Thistory)(__ccgo_up(bp + 128))).Flevel = v3 + (**(**Thistory)(__ccgo_up(bp + 128))).Fbase = Int32FromUint64(j + uint64(1)) + (**(**TFTW)(__ccgo_up(bp + 160))).Flevel = (**(**Thistory)(__ccgo_up(bp + 128))).Flevel + if h != 0 { + (**(**TFTW)(__ccgo_up(bp + 160))).Fbase = (*Thistory)(unsafe.Pointer(h)).Fbase + } else { + k = j + for { + if !(k != 0 && int32(**(**int8)(__ccgo_up(path + uintptr(k)))) == int32('/')) { + break + } + goto _5 + _5: + ; + k = k - 1 + } + for { + if !(k != 0 && int32(**(**int8)(__ccgo_up(path + uintptr(k-uint64(1))))) != int32('/')) { + break + } + goto _6 + _6: + ; + k = k - 1 + } + (**(**TFTW)(__ccgo_up(bp + 160))).Fbase = Int32FromUint64(k) + } + if type1 == int32(FTW_D) || type1 == int32(FTW_DP) { + dfd = Xopen(tls, path, O_RDONLY, 0) + err = **(**int32)(__ccgo_up(X__errno_location(tls))) + if dfd < 0 && err == int32(EACCES) { + type1 = int32(FTW_DNR) + } + if !(fd_limit != 0) { + Xclose(tls, dfd) + } + } + if v8 = !(flags&Int32FromInt32(FTW_DEPTH) != 0); v8 { + v3 = (*(*func(*TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_fn})))(tls, path, bp, type1, bp+160) + r = v3 + } + if v8 && v3 != 0 { + return r + } + for { + if !(h != 0) { + break + } + if (*Thistory)(unsafe.Pointer(h)).Fdev == (**(**Tstat)(__ccgo_up(bp))).Fst_dev && (*Thistory)(unsafe.Pointer(h)).Fino == (**(**Tstat)(__ccgo_up(bp))).Fst_ino { + return 0 + } + goto _9 + _9: + ; + h = (*Thistory)(unsafe.Pointer(h)).Fchain + } + if (type1 == int32(FTW_D) || type1 == int32(FTW_DP)) && fd_limit != 0 { + if dfd < 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = err + return -int32(1) + } + d = Xfdopendir(tls, dfd) + if d != 0 { + for { + v10 = Xreaddir(tls, d) + de = v10 + if !(v10 != 0) { + break + } + if int32(**(**int8)(__ccgo_up(de + 19))) == int32('.') && (!(**(**int8)(__ccgo_up(de + 19 + 1)) != 0) || int32(**(**int8)(__ccgo_up(de + 19 + 1))) == int32('.') && !(**(**int8)(__ccgo_up(de + 19 + 2)) != 0)) { + continue + } + if _strlen(tls, de+19) >= uint64(PATH_MAX)-l { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENAMETOOLONG) + Xclosedir(tls, d) + return -int32(1) + } + **(**int8)(__ccgo_up(path + uintptr(j))) = int8('/') + Xstrcpy(tls, path+uintptr(j)+uintptr(1), de+19) + v3 = _do_nftw(tls, path, __ccgo_fp_fn, fd_limit-int32(1), flags, bp+128) + r = v3 + if v3 != 0 { + Xclosedir(tls, d) + return r + } + } + Xclosedir(tls, d) + } else { + Xclose(tls, dfd) + return -int32(1) + } + } + **(**int8)(__ccgo_up(path + uintptr(l))) = 0 + if v8 = flags&int32(FTW_DEPTH) != 0; v8 { + v3 = (*(*func(*TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_fn})))(tls, path, bp, type1, bp+160) + r = v3 + } + if v8 && v3 != 0 { + return r + } + return 0 +} + +type t__ccgo_fp__Xnftw_1 = func(*TLS, uintptr, uintptr, int32, uintptr) int32 + +func Xnftw(tls *TLS, path uintptr, __ccgo_fp_fn uintptr, fd_limit int32, flags int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v path=%v __ccgo_fp_fn=%v fd_limit=%v flags=%v, (%v:)", tls, path, __ccgo_fp_fn, fd_limit, flags, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(4112) + defer tls.Free(4112) + var l Tsize_t + var r int32 + var _ /* cs at bp+0 */ int32 + var _ /* pathbuf at bp+4 */ [4097]int8 + _, _ = l, r + if fd_limit <= 0 { + return 0 + } + l = _strlen(tls, path) + if l > uint64(PATH_MAX) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENAMETOOLONG) + return -int32(1) + } + Xmemcpy(tls, bp+4, path, l+uint64(1)) + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp) + r = _do_nftw(tls, bp+4, __ccgo_fp_fn, fd_limit, flags, UintptrFromInt32(0)) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp)), uintptr(0)) + return r +} + +/* Nonstandard, but vastly superior to the standard functions */ + +func Xopenpty(tls *TLS, pm uintptr, ps uintptr, name uintptr, tio uintptr, ws uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v pm=%v ps=%v name=%v tio=%v ws=%v, (%v:)", tls, pm, ps, name, tio, ws, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + var m, s, v1 int32 + var _ /* buf at bp+8 */ [20]int8 + var _ /* cs at bp+4 */ int32 + var _ /* n at bp+0 */ int32 + _, _, _ = m, s, v1 + **(**int32)(__ccgo_up(bp)) = 0 + m = Xopen(tls, __ccgo_ts+889, Int32FromInt32(O_RDWR)|Int32FromInt32(O_NOCTTY), 0) + if m < 0 { + return -int32(1) + } + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp+4) + if Xioctl(tls, m, int32(TIOCSPTLCK), VaList(bp+40, bp)) != 0 || Xioctl(tls, m, Int32FromUint32(TIOCGPTN), VaList(bp+40, bp)) != 0 { + goto fail + } + if !(name != 0) { + name = bp + 8 + } + Xsnprintf(tls, name, uint64(20), __ccgo_ts+899, VaList(bp+40, **(**int32)(__ccgo_up(bp)))) + v1 = Xopen(tls, name, Int32FromInt32(O_RDWR)|Int32FromInt32(O_NOCTTY), 0) + s = v1 + if v1 < 0 { + goto fail + } + if tio != 0 { + Xtcsetattr(tls, s, TCSANOW, tio) + } + if ws != 0 { + Xioctl(tls, s, int32(TIOCSWINSZ), VaList(bp+40, ws)) + } + **(**int32)(__ccgo_up(pm)) = m + **(**int32)(__ccgo_up(ps)) = s + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 4)), uintptr(0)) + return 0 + goto fail +fail: + ; + Xclose(tls, m) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 4)), uintptr(0)) + return -int32(1) +} + +func Xptsname(tls *TLS, fd int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + var err int32 + _ = err + err = X__ptsname_r(tls, fd, uintptr(unsafe.Pointer(&_buf2)), uint64(22)) + if err != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = err + return uintptr(0) + } + return uintptr(unsafe.Pointer(&_buf2)) +} + +var _buf2 [22]int8 + +func Xposix_openpt(tls *TLS, flags int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v flags=%v, (%v:)", tls, flags, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + r = Xopen(tls, __ccgo_ts+889, flags, 0) + if r < 0 && **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(ENOSPC) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EAGAIN) + } + return r +} + +func Xgrantpt(tls *TLS, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + return 0 +} + +func Xunlockpt(tls *TLS, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var _ /* unlock at bp+0 */ int32 + **(**int32)(__ccgo_up(bp)) = 0 + return Xioctl(tls, fd, int32(TIOCSPTLCK), VaList(bp+16, bp)) +} + +func X__ptsname_r(tls *TLS, fd int32, buf uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v len1=%v, (%v:)", tls, fd, buf, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var err, v1 int32 + var _ /* pty at bp+0 */ int32 + _, _ = err, v1 + if !(buf != 0) { + len1 = uint64(0) + } + v1 = int32(X__syscall3(tls, int64(SYS_ioctl), int64(fd), Int64FromUint32(Uint32FromUint32(TIOCGPTN)), int64(bp))) + err = v1 + if v1 != 0 { + return -err + } + if Uint64FromInt32(Xsnprintf(tls, buf, len1, __ccgo_ts+899, VaList(bp+16, **(**int32)(__ccgo_up(bp))))) >= len1 { + return int32(ERANGE) + } + return 0 +} + +func Xptsname_r(tls *TLS, fd int32, buf uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v len1=%v, (%v:)", tls, fd, buf, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__ptsname_r(tls, fd, buf, len1) +} + +func _slash_len(tls *TLS, s uintptr) (r Tsize_t) { + var s0 uintptr + _ = s0 + s0 = s + for int32(**(**int8)(__ccgo_up(s))) == int32('/') { + s = s + 1 + } + return Uint64FromInt64(int64(s) - int64(s0)) +} + +func Xrealpath(tls *TLS, filename uintptr, resolved uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v filename=%v resolved=%v, (%v:)", tls, filename, resolved, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(8208) + defer tls.Free(8208) + var check_dir, up int32 + var cnt, l, l0, nup, p, q, v4 Tsize_t + var k Tssize_t + var z uintptr + var _ /* output at bp+4097 */ [4096]int8 + var _ /* stack at bp+0 */ [4097]int8 + _, _, _, _, _, _, _, _, _, _, _ = check_dir, cnt, k, l, l0, nup, p, q, up, z, v4 + cnt = uint64(0) + nup = uint64(0) + check_dir = 0 + if !(filename != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(0) + } + l = Xstrnlen(tls, filename, uint64(4097)) + if !(l != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOENT) + return uintptr(0) + } + if l >= uint64(PATH_MAX) { + goto toolong + } + p = uint64(4097) - l - uint64(1) + q = uint64(0) + Xmemcpy(tls, bp+uintptr(p), filename, l+uint64(1)) + /* Main loop. Each iteration pops the next part from stack of + * remaining path components and consumes any slashes that follow. + * If not a link, it's moved to output; if a link, contents are + * pushed to the stack. */ + goto restart +restart: + ; +_3: + ; + /* If stack starts with /, the whole component is / or // + * and the output state must be reset. */ + if int32((**(**[4097]int8)(__ccgo_up(bp)))[p]) == int32('/') { + check_dir = 0 + nup = uint64(0) + q = uint64(0) + v4 = q + q = q + 1 + (**(**[4096]int8)(__ccgo_up(bp + 4097)))[v4] = int8('/') + p = p + 1 + /* Initial // is special. */ + if int32((**(**[4097]int8)(__ccgo_up(bp)))[p]) == int32('/') && int32((**(**[4097]int8)(__ccgo_up(bp)))[p+uint64(1)]) != int32('/') { + v4 = q + q = q + 1 + (**(**[4096]int8)(__ccgo_up(bp + 4097)))[v4] = int8('/') + } + goto _2 + } + z = X__strchrnul(tls, bp+uintptr(p), int32('/')) + v4 = Uint64FromInt64(int64(z) - int64(bp+uintptr(p))) + l = v4 + l0 = v4 + if !(l != 0) && !(check_dir != 0) { + goto _1 + } + /* Skip any . component but preserve check_dir status. */ + if l == uint64(1) && int32((**(**[4097]int8)(__ccgo_up(bp)))[p]) == int32('.') { + p = p + l + goto _2 + } + /* Copy next component onto output at least temporarily, to + * call readlink, but wait to advance output position until + * determining it's not a link. */ + if q != 0 && int32((**(**[4096]int8)(__ccgo_up(bp + 4097)))[q-uint64(1)]) != int32('/') { + if !(p != 0) { + goto toolong + } + p = p - 1 + v4 = p + (**(**[4097]int8)(__ccgo_up(bp)))[v4] = int8('/') + l = l + 1 + } + if q+l >= uint64(PATH_MAX) { + goto toolong + } + Xmemcpy(tls, bp+4097+uintptr(q), bp+uintptr(p), l) + (**(**[4096]int8)(__ccgo_up(bp + 4097)))[q+l] = 0 + p = p + l + up = 0 + if l0 == uint64(2) && int32((**(**[4097]int8)(__ccgo_up(bp)))[p-uint64(2)]) == int32('.') && int32((**(**[4097]int8)(__ccgo_up(bp)))[p-uint64(1)]) == int32('.') { + up = int32(1) + /* Any non-.. path components we could cancel start + * after nup repetitions of the 3-byte string "../"; + * if there are none, accumulate .. components to + * later apply to cwd, if needed. */ + if q <= uint64(3)*nup { + nup = nup + 1 + q = q + l + goto _2 + } + /* When previous components are already known to be + * directories, processing .. can skip readlink. */ + if !(check_dir != 0) { + goto skip_readlink + } + } + k = Xreadlink(tls, bp+4097, bp, p) + if Uint64FromInt64(k) == p { + goto toolong + } + if !(k != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOENT) + return uintptr(0) + } + if !(k < 0) { + goto _8 + } + if **(**int32)(__ccgo_up(X__errno_location(tls))) != int32(EINVAL) { + return uintptr(0) + } + goto skip_readlink +skip_readlink: + ; + check_dir = 0 + if up != 0 { + for q != 0 && int32((**(**[4096]int8)(__ccgo_up(bp + 4097)))[q-uint64(1)]) != int32('/') { + q = q - 1 + } + if q > uint64(1) && (q > uint64(2) || int32((**(**[4096]int8)(__ccgo_up(bp + 4097)))[0]) != int32('/')) { + q = q - 1 + } + goto _2 + } + if l0 != 0 { + q = q + l + } + check_dir = int32((**(**[4097]int8)(__ccgo_up(bp)))[p]) + goto _2 +_8: + ; + cnt = cnt + 1 + v4 = cnt + if v4 == uint64(SYMLOOP_MAX) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ELOOP) + return uintptr(0) + } + /* If link contents end in /, strip any slashes already on + * stack to avoid /->// or //->/// or spurious toolong. */ + if int32((**(**[4097]int8)(__ccgo_up(bp)))[k-int64(1)]) == int32('/') { + for int32((**(**[4097]int8)(__ccgo_up(bp)))[p]) == int32('/') { + p = p + 1 + } + } + p = p - Uint64FromInt64(k) + Xmemmove(tls, bp+uintptr(p), bp, Uint64FromInt64(k)) + /* Skip the stack advancement in case we have a new + * absolute base path. */ + goto restart + goto _2 +_2: + ; + p = p + _slash_len(tls, bp+uintptr(p)) + goto _3 + goto _1 +_1: + ; + (**(**[4096]int8)(__ccgo_up(bp + 4097)))[q] = 0 + if int32((**(**[4096]int8)(__ccgo_up(bp + 4097)))[0]) != int32('/') { + if !(Xgetcwd(tls, bp, uint64(4097)) != 0) { + return uintptr(0) + } + l = _strlen(tls, bp) + /* Cancel any initial .. components. */ + p = uint64(0) + for { + v4 = nup + nup = nup - 1 + if !(v4 != 0) { + break + } + for l > uint64(1) && int32((**(**[4097]int8)(__ccgo_up(bp)))[l-uint64(1)]) != int32('/') { + l = l - 1 + } + if l > uint64(1) { + l = l - 1 + } + p = p + uint64(2) + if p < q { + p = p + 1 + } + } + if q-p != 0 && int32((**(**[4097]int8)(__ccgo_up(bp)))[l-uint64(1)]) != int32('/') { + v4 = l + l = l + 1 + (**(**[4097]int8)(__ccgo_up(bp)))[v4] = int8('/') + } + if l+(q-p)+uint64(1) >= uint64(PATH_MAX) { + goto toolong + } + Xmemmove(tls, bp+4097+uintptr(l), bp+4097+uintptr(p), q-p+uint64(1)) + Xmemcpy(tls, bp+4097, bp, l) + q = l + q - p + } + if resolved != 0 { + return Xmemcpy(tls, resolved, bp+4097, q+uint64(1)) + } else { + return Xstrdup(tls, bp+4097) + } + goto toolong +toolong: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENAMETOOLONG) + return uintptr(0) +} + +func Xsetdomainname(tls *TLS, name uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v len1=%v, (%v:)", tls, name, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_setdomainname), int64(name), Int64FromUint64(len1))))) +} + +func Xsetpriority(tls *TLS, which int32, who Tid_t, prio int32) (r int32) { + if __ccgo_strace { + trc("tls=%v which=%v who=%v prio=%v, (%v:)", tls, which, who, prio, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_setpriority), int64(which), Int64FromUint32(who), int64(prio))))) +} + +type Tctx = struct { + Flim [2]uint64 + Fres int32 + Ferr int32 +} + +func Xsetrlimit(tls *TLS, resource int32, rlim uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v resource=%v rlim=%v, (%v:)", tls, resource, rlim, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ret int32 + var _ /* tmp at bp+0 */ Trlimit + _ = ret + if ^Uint64FromUint64(0) != ^Uint64FromUint64(0) { + **(**Trlimit)(__ccgo_up(bp)) = **(**Trlimit)(__ccgo_up(rlim)) + if (**(**Trlimit)(__ccgo_up(bp))).Frlim_cur >= ^Uint64FromUint64(0) { + (**(**Trlimit)(__ccgo_up(bp))).Frlim_cur = ^Uint64FromUint64(0) + } + if (**(**Trlimit)(__ccgo_up(bp))).Frlim_max >= ^Uint64FromUint64(0) { + (**(**Trlimit)(__ccgo_up(bp))).Frlim_max = ^Uint64FromUint64(0) + } + rlim = bp + } + ret = int32(X__syscall4(tls, int64(SYS_prlimit64), int64(Int32FromInt32(0)), int64(resource), int64(rlim), int64(Int32FromInt32(0)))) + return int32(X__syscall_ret(tls, Uint64FromInt32(ret))) +} + +func Xsyscall(tls *TLS, n int64, va uintptr) (r int64) { + if __ccgo_strace { + trc("tls=%v n=%v va=%v, (%v:)", tls, n, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, b, c, d, e, f Tsyscall_arg_t + var ap Tva_list + _, _, _, _, _, _, _ = a, ap, b, c, d, e, f + ap = va + a = VaInt64(&ap) + b = VaInt64(&ap) + c = VaInt64(&ap) + d = VaInt64(&ap) + e = VaInt64(&ap) + f = VaInt64(&ap) + _ = ap + return X__syscall_ret(tls, Uint64FromInt64(X__syscall6(tls, n, a, b, c, d, e, f))) +} + +const AF_ALG = 38 +const AF_APPLETALK = 5 +const AF_ASH = 18 +const AF_ATMPVC = 8 +const AF_ATMSVC = 20 +const AF_AX25 = 3 +const AF_BLUETOOTH = 31 +const AF_BRIDGE = 7 +const AF_CAIF = 37 +const AF_CAN = 29 +const AF_DECnet = 12 +const AF_ECONET = 19 +const AF_FILE = 1 +const AF_IB = 27 +const AF_IEEE802154 = 36 +const AF_INET = 2 +const AF_INET6 = 10 +const AF_IPX = 4 +const AF_IRDA = 23 +const AF_ISDN = 34 +const AF_IUCV = 32 +const AF_KCM = 41 +const AF_KEY = 15 +const AF_LLC = 26 +const AF_LOCAL = 1 +const AF_MAX = 45 +const AF_MPLS = 28 +const AF_NETBEUI = 13 +const AF_NETLINK = 16 +const AF_NETROM = 6 +const AF_NFC = 39 +const AF_PACKET = 17 +const AF_PHONET = 35 +const AF_PPPOX = 24 +const AF_QIPCRTR = 42 +const AF_RDS = 21 +const AF_ROSE = 11 +const AF_ROUTE = 16 +const AF_RXRPC = 33 +const AF_SECURITY = 14 +const AF_SMC = 43 +const AF_SNA = 22 +const AF_TIPC = 30 +const AF_UNIX = 1 +const AF_UNSPEC = 0 +const AF_VSOCK = 40 +const AF_WANPIPE = 25 +const AF_X25 = 9 +const AF_XDP = 44 +const LOG_ALERT = 1 +const LOG_AUTH = 32 +const LOG_AUTHPRIV = 80 +const LOG_CONS = 2 +const LOG_CRIT = 2 +const LOG_CRON = 72 +const LOG_DAEMON = 24 +const LOG_DEBUG = 7 +const LOG_EMERG = 0 +const LOG_ERR = 3 +const LOG_FACMASK = 1016 +const LOG_FTP = 88 +const LOG_INFO = 6 +const LOG_KERN = 0 +const LOG_LOCAL0 = 128 +const LOG_LOCAL1 = 136 +const LOG_LOCAL2 = 144 +const LOG_LOCAL3 = 152 +const LOG_LOCAL4 = 160 +const LOG_LOCAL5 = 168 +const LOG_LOCAL6 = 176 +const LOG_LOCAL7 = 184 +const LOG_LPR = 48 +const LOG_MAIL = 16 +const LOG_NDELAY = 8 +const LOG_NEWS = 56 +const LOG_NFACILITIES = 24 +const LOG_NOTICE = 5 +const LOG_NOWAIT = 16 +const LOG_ODELAY = 4 +const LOG_PERROR = 32 +const LOG_PID = 1 +const LOG_PRIMASK = 7 +const LOG_SYSLOG = 40 +const LOG_USER = 8 +const LOG_UUCP = 64 +const LOG_WARNING = 4 +const MSG_BATCH = 262144 +const MSG_CMSG_CLOEXEC = 1073741824 +const MSG_CONFIRM = 2048 +const MSG_CTRUNC = 8 +const MSG_DONTROUTE = 4 +const MSG_DONTWAIT = 64 +const MSG_EOR = 128 +const MSG_ERRQUEUE = 8192 +const MSG_FASTOPEN = 536870912 +const MSG_FIN = 512 +const MSG_MORE = 32768 +const MSG_NOSIGNAL = 16384 +const MSG_OOB = 1 +const MSG_PEEK = 2 +const MSG_PROXY = 16 +const MSG_RST = 4096 +const MSG_SYN = 1024 +const MSG_TRUNC = 32 +const MSG_WAITALL = 256 +const MSG_WAITFORONE = 65536 +const MSG_ZEROCOPY = 67108864 +const PF_ALG = 38 +const PF_APPLETALK = 5 +const PF_ASH = 18 +const PF_ATMPVC = 8 +const PF_ATMSVC = 20 +const PF_AX25 = 3 +const PF_BLUETOOTH = 31 +const PF_BRIDGE = 7 +const PF_CAIF = 37 +const PF_CAN = 29 +const PF_DECnet = 12 +const PF_ECONET = 19 +const PF_FILE = 1 +const PF_IB = 27 +const PF_IEEE802154 = 36 +const PF_INET = 2 +const PF_INET6 = 10 +const PF_IPX = 4 +const PF_IRDA = 23 +const PF_ISDN = 34 +const PF_IUCV = 32 +const PF_KCM = 41 +const PF_KEY = 15 +const PF_LLC = 26 +const PF_LOCAL = 1 +const PF_MAX = 45 +const PF_MPLS = 28 +const PF_NETBEUI = 13 +const PF_NETLINK = 16 +const PF_NETROM = 6 +const PF_NFC = 39 +const PF_PACKET = 17 +const PF_PHONET = 35 +const PF_PPPOX = 24 +const PF_QIPCRTR = 42 +const PF_RDS = 21 +const PF_ROSE = 11 +const PF_ROUTE = 16 +const PF_RXRPC = 33 +const PF_SECURITY = 14 +const PF_SMC = 43 +const PF_SNA = 22 +const PF_TIPC = 30 +const PF_UNIX = 1 +const PF_UNSPEC = 0 +const PF_VSOCK = 40 +const PF_WANPIPE = 25 +const PF_X25 = 9 +const PF_XDP = 44 +const SCM_CREDENTIALS = 2 +const SCM_RIGHTS = 1 +const SCM_TIMESTAMP = 29 +const SCM_TIMESTAMPING = 37 +const SCM_TIMESTAMPING_OPT_STATS = 54 +const SCM_TIMESTAMPING_PKTINFO = 58 +const SCM_TIMESTAMPNS = 35 +const SCM_TXTIME = 61 +const SCM_WIFI_STATUS = 41 +const SHUT_RD = 0 +const SHUT_RDWR = 2 +const SHUT_WR = 1 +const SOCK_CLOEXEC = 524288 +const SOCK_DCCP = 6 +const SOCK_DGRAM = 2 +const SOCK_NONBLOCK = 2048 +const SOCK_PACKET = 10 +const SOCK_RAW = 3 +const SOCK_RDM = 4 +const SOCK_SEQPACKET = 5 +const SOCK_STREAM = 1 +const SOL_AAL = 265 +const SOL_ALG = 279 +const SOL_ATM = 264 +const SOL_BLUETOOTH = 274 +const SOL_CAIF = 278 +const SOL_DCCP = 269 +const SOL_DECNET = 261 +const SOL_ICMPV6 = 58 +const SOL_IP = 0 +const SOL_IPV6 = 41 +const SOL_IRDA = 266 +const SOL_IUCV = 277 +const SOL_KCM = 281 +const SOL_LLC = 268 +const SOL_NETBEUI = 267 +const SOL_NETLINK = 270 +const SOL_NFC = 280 +const SOL_PACKET = 263 +const SOL_PNPIPE = 275 +const SOL_PPPOL2TP = 273 +const SOL_RAW = 255 +const SOL_RDS = 276 +const SOL_RXRPC = 272 +const SOL_SOCKET = 1 +const SOL_TIPC = 271 +const SOL_TLS = 282 +const SOL_X25 = 262 +const SOL_XDP = 283 +const SOMAXCONN = 128 +const SO_ACCEPTCONN = 30 +const SO_ATTACH_BPF = 50 +const SO_ATTACH_FILTER = 26 +const SO_ATTACH_REUSEPORT_CBPF = 51 +const SO_ATTACH_REUSEPORT_EBPF = 52 +const SO_BINDTODEVICE = 25 +const SO_BINDTOIFINDEX = 62 +const SO_BPF_EXTENSIONS = 48 +const SO_BROADCAST = 6 +const SO_BSDCOMPAT = 14 +const SO_BUSY_POLL = 46 +const SO_BUSY_POLL_BUDGET = 70 +const SO_CNX_ADVICE = 53 +const SO_COOKIE = 57 +const SO_DEBUG = 1 +const SO_DETACH_BPF = 27 +const SO_DETACH_FILTER = 27 +const SO_DETACH_REUSEPORT_BPF = 68 +const SO_DOMAIN = 39 +const SO_DONTROUTE = 5 +const SO_ERROR = 4 +const SO_GET_FILTER = 26 +const SO_INCOMING_CPU = 49 +const SO_INCOMING_NAPI_ID = 56 +const SO_KEEPALIVE = 9 +const SO_LINGER = 13 +const SO_LOCK_FILTER = 44 +const SO_MARK = 36 +const SO_MAX_PACING_RATE = 47 +const SO_MEMINFO = 55 +const SO_NOFCS = 43 +const SO_NO_CHECK = 11 +const SO_OOBINLINE = 10 +const SO_PASSCRED = 16 +const SO_PASSSEC = 34 +const SO_PEEK_OFF = 42 +const SO_PEERCRED = 17 +const SO_PEERGROUPS = 59 +const SO_PEERNAME = 28 +const SO_PEERSEC = 31 +const SO_PREFER_BUSY_POLL = 69 +const SO_PRIORITY = 12 +const SO_PROTOCOL = 38 +const SO_RCVBUF = 8 +const SO_RCVBUFFORCE = 33 +const SO_RCVLOWAT = 18 +const SO_RCVTIMEO = 20 +const SO_REUSEADDR = 2 +const SO_REUSEPORT = 15 +const SO_RXQ_OVFL = 40 +const SO_SECURITY_AUTHENTICATION = 22 +const SO_SECURITY_ENCRYPTION_NETWORK = 24 +const SO_SECURITY_ENCRYPTION_TRANSPORT = 23 +const SO_SELECT_ERR_QUEUE = 45 +const SO_SNDBUF = 7 +const SO_SNDBUFFORCE = 32 +const SO_SNDLOWAT = 19 +const SO_SNDTIMEO = 21 +const SO_TIMESTAMP = 29 +const SO_TIMESTAMPING = 37 +const SO_TIMESTAMPNS = 35 +const SO_TXTIME = 61 +const SO_TYPE = 3 +const SO_WIFI_STATUS = 41 +const SO_ZEROCOPY = 60 + +type Tsocklen_t = uint32 + +type Tsa_family_t = uint16 + +type Tmsghdr = struct { + Fmsg_name uintptr + Fmsg_namelen Tsocklen_t + Fmsg_iov uintptr + Fmsg_iovlen int32 + F__pad1 int32 + Fmsg_control uintptr + Fmsg_controllen Tsocklen_t + F__pad2 int32 + Fmsg_flags int32 +} + +type Tcmsghdr = struct { + Fcmsg_len Tsocklen_t + F__pad1 int32 + Fcmsg_level int32 + Fcmsg_type int32 +} + +type Tlinger = struct { + Fl_onoff int32 + Fl_linger int32 +} + +type Tsockaddr = struct { + Fsa_family Tsa_family_t + Fsa_data [14]int8 +} + +type Tsockaddr_storage = struct { + Fss_family Tsa_family_t + F__ss_padding [118]int8 + F__ss_align uint64 +} + +var _lock2 [1]int32 +var _log_ident [32]int8 +var _log_opt int32 +var _log_facility = Int32FromInt32(1) << Int32FromInt32(3) +var _log_mask = int32(0xff) +var _log_fd = -int32(1) + +func Xsetlogmask(tls *TLS, maskpri int32) (r int32) { + if __ccgo_strace { + trc("tls=%v maskpri=%v, (%v:)", tls, maskpri, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret int32 + _ = ret + ___lock(tls, uintptr(unsafe.Pointer(&_lock2))) + ret = _log_mask + if maskpri != 0 { + _log_mask = maskpri + } + ___unlock(tls, uintptr(unsafe.Pointer(&_lock2))) + return ret +} + +var _log_addr = struct { + Fsun_family int16 + Fsun_path [9]int8 +}{ + Fsun_family: int16(PF_LOCAL), + Fsun_path: [9]int8{'/', 'd', 'e', 'v', '/', 'l', 'o', 'g'}, +} + +func Xcloselog(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* cs at bp+0 */ int32 + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp) + ___lock(tls, uintptr(unsafe.Pointer(&_lock2))) + Xclose(tls, _log_fd) + _log_fd = -int32(1) + ___unlock(tls, uintptr(unsafe.Pointer(&_lock2))) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp)), uintptr(0)) +} + +func ___openlog(tls *TLS) { + _log_fd = Xsocket(tls, int32(PF_LOCAL), Int32FromInt32(SOCK_DGRAM)|Int32FromInt32(SOCK_CLOEXEC), 0) + if _log_fd >= 0 { + Xconnect(tls, _log_fd, uintptr(unsafe.Pointer(&_log_addr)), uint32(12)) + } +} + +func Xopenlog(tls *TLS, ident uintptr, opt int32, facility int32) { + if __ccgo_strace { + trc("tls=%v ident=%v opt=%v facility=%v, (%v:)", tls, ident, opt, facility, origin(2)) + } + bp := tls.Alloc(16) + defer tls.Free(16) + var n Tsize_t + var _ /* cs at bp+0 */ int32 + _ = n + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp) + ___lock(tls, uintptr(unsafe.Pointer(&_lock2))) + if ident != 0 { + n = Xstrnlen(tls, ident, Uint64FromInt64(32)-Uint64FromInt32(1)) + Xmemcpy(tls, uintptr(unsafe.Pointer(&_log_ident)), ident, n) + _log_ident[n] = 0 + } else { + _log_ident[0] = 0 + } + _log_opt = opt + _log_facility = facility + if opt&int32(LOG_NDELAY) != 0 && _log_fd < 0 { + ___openlog(tls) + } + ___unlock(tls, uintptr(unsafe.Pointer(&_lock2))) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp)), uintptr(0)) +} + +func _is_lost_conn(tls *TLS, e int32) (r int32) { + return BoolInt32(e == int32(ECONNREFUSED) || e == int32(ECONNRESET) || e == int32(ENOTCONN) || e == int32(EPIPE)) +} + +func __vsyslog(tls *TLS, priority int32, message uintptr, ap Tva_list) { + bp := tls.Alloc(1184) + defer tls.Free(1184) + var errno_save, fd, l, l2, pid, v1 int32 + var _ /* buf at bp+80 */ [1024]int8 + var _ /* hlen at bp+1104 */ int32 + var _ /* now at bp+16 */ Ttime_t + var _ /* timebuf at bp+0 */ [16]int8 + var _ /* tm at bp+24 */ Ttm + _, _, _, _, _, _ = errno_save, fd, l, l2, pid, v1 + errno_save = **(**int32)(__ccgo_up(X__errno_location(tls))) + if _log_fd < 0 { + ___openlog(tls) + } + if !(priority&Int32FromInt32(LOG_FACMASK) != 0) { + priority = priority | _log_facility + } + **(**Ttime_t)(__ccgo_up(bp + 16)) = Xtime(tls, UintptrFromInt32(0)) + Xgmtime_r(tls, bp+16, bp+24) + Xstrftime_l(tls, bp, uint64(16), __ccgo_ts+911, bp+24, uintptr(unsafe.Pointer(&X__c_locale))) + if _log_opt&int32(LOG_PID) != 0 { + v1 = Xgetpid(tls) + } else { + v1 = 0 + } + pid = v1 + l = Xsnprintf(tls, bp+80, uint64(1024), __ccgo_ts+920, VaList(bp+1120, priority, bp, bp+1104, uintptr(unsafe.Pointer(&_log_ident)), __ccgo_ts+942+BoolUintptr(!(pid != 0)), pid, __ccgo_ts+944+BoolUintptr(!(pid != 0)))) + **(**int32)(__ccgo_up(X__errno_location(tls))) = errno_save + l2 = Xvsnprintf(tls, bp+80+uintptr(l), uint64(1024)-Uint64FromInt32(l), message, ap) + if l2 >= 0 { + if Uint64FromInt32(l2) >= uint64(1024)-Uint64FromInt32(l) { + l = Int32FromUint64(Uint64FromInt64(1024) - Uint64FromInt32(1)) + } else { + l = l + l2 + } + if int32((**(**[1024]int8)(__ccgo_up(bp + 80)))[l-int32(1)]) != int32('\n') { + v1 = l + l = l + 1 + (**(**[1024]int8)(__ccgo_up(bp + 80)))[v1] = int8('\n') + } + if Xsend(tls, _log_fd, bp+80, Uint64FromInt32(l), 0) < 0 && (!(_is_lost_conn(tls, **(**int32)(__ccgo_up(X__errno_location(tls)))) != 0) || Xconnect(tls, _log_fd, uintptr(unsafe.Pointer(&_log_addr)), uint32(12)) < 0 || Xsend(tls, _log_fd, bp+80, Uint64FromInt32(l), 0) < 0) && _log_opt&int32(LOG_CONS) != 0 { + fd = Xopen(tls, __ccgo_ts+639, Int32FromInt32(O_WRONLY)|Int32FromInt32(O_NOCTTY)|Int32FromInt32(O_CLOEXEC), 0) + if fd >= 0 { + Xdprintf(tls, fd, __ccgo_ts+946, VaList(bp+1120, l-**(**int32)(__ccgo_up(bp + 1104)), bp+80+uintptr(**(**int32)(__ccgo_up(bp + 1104))))) + Xclose(tls, fd) + } + } + if _log_opt&int32(LOG_PERROR) != 0 { + Xdprintf(tls, int32(2), __ccgo_ts+946, VaList(bp+1120, l-**(**int32)(__ccgo_up(bp + 1104)), bp+80+uintptr(**(**int32)(__ccgo_up(bp + 1104))))) + } + } +} + +func ___vsyslog(tls *TLS, priority int32, message uintptr, ap Tva_list) { + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* cs at bp+0 */ int32 + if !(_log_mask&(Int32FromInt32(1)<<(priority&Int32FromInt32(7))) != 0) || priority & ^Int32FromInt32(0x3ff) != 0 { + return + } + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp) + ___lock(tls, uintptr(unsafe.Pointer(&_lock2))) + __vsyslog(tls, priority, message, ap) + ___unlock(tls, uintptr(unsafe.Pointer(&_lock2))) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp)), uintptr(0)) +} + +func Xsyslog(tls *TLS, priority int32, message uintptr, va uintptr) { + if __ccgo_strace { + trc("tls=%v priority=%v message=%v va=%v, (%v:)", tls, priority, message, va, origin(2)) + } + var ap Tva_list + _ = ap + ap = va + ___vsyslog(tls, priority, message, ap) + _ = ap +} + +type Tutsname1 = struct { + Fsysname [65]int8 + Fnodename [65]int8 + Frelease [65]int8 + Fversion [65]int8 + Fmachine [65]int8 + F__domainname [65]int8 +} + +func Xuname(tls *TLS, uts uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v uts=%v, (%v:)", tls, uts, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_uname), int64(uts))))) +} + +func X__madvise(tls *TLS, addr uintptr, len1 Tsize_t, advice int32) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v len1=%v advice=%v, (%v:)", tls, addr, len1, advice, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_madvise), int64(addr), Int64FromUint64(len1), int64(advice))))) +} + +func Xmadvise(tls *TLS, addr uintptr, len1 Tsize_t, advice int32) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v len1=%v advice=%v, (%v:)", tls, addr, len1, advice, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__madvise(tls, addr, len1, advice) +} + +func Xmincore(tls *TLS, addr uintptr, len1 Tsize_t, vec uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v len1=%v vec=%v, (%v:)", tls, addr, len1, vec, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_mincore), int64(addr), Int64FromUint64(len1), int64(vec))))) +} + +func Xmlock(tls *TLS, addr uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v len1=%v, (%v:)", tls, addr, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_mlock), int64(addr), Int64FromUint64(len1))))) +} + +func Xmlockall(tls *TLS, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v flags=%v, (%v:)", tls, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_mlockall), int64(flags))))) +} + +const OFF_MASK = 4095 +const UNIT = 4096 + +func _dummy5(tls *TLS) { +} + +func X__mmap(tls *TLS, start uintptr, len1 Tsize_t, prot int32, flags int32, fd int32, off Toff_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v start=%v len1=%v prot=%v flags=%v fd=%v off=%v, (%v:)", tls, start, len1, prot, flags, fd, off, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret int64 + _ = ret + if Uint64FromInt64(off)&(-Uint64FromUint64(0x2000)<<(Uint64FromInt32(8)*Uint64FromInt64(8)-Uint64FromInt32(1))|(Uint64FromUint64(4096)-Uint64FromInt32(1))) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(-Int32FromInt32(1)) + } + if len1 >= Uint64FromInt64(Int64FromInt64(INT64_MAX)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOMEM) + return uintptr(-Int32FromInt32(1)) + } + if flags&int32(MAP_FIXED) != 0 { + _dummy5(tls) + } + ret = X__syscall6(tls, int64(__NR3264_mmap), int64(start), Int64FromUint64(len1), int64(prot), int64(flags), int64(fd), off) + /* Fixup incorrect EPERM from kernel. */ + if ret == int64(-int32(EPERM)) && !(start != 0) && flags&int32(MAP_ANON) != 0 && !(flags&Int32FromInt32(MAP_FIXED) != 0) { + ret = int64(-int32(ENOMEM)) + } + return uintptr(X__syscall_ret(tls, Uint64FromInt64(ret))) +} + +func Xmmap(tls *TLS, start uintptr, len1 Tsize_t, prot int32, flags int32, fd int32, off Toff_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v start=%v len1=%v prot=%v flags=%v fd=%v off=%v, (%v:)", tls, start, len1, prot, flags, fd, off, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__mmap(tls, start, len1, prot, flags, fd, off) +} + +func X__mprotect(tls *TLS, addr uintptr, len1 Tsize_t, prot int32) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v len1=%v prot=%v, (%v:)", tls, addr, len1, prot, origin(2)) + defer func() { trc("-> %v", r) }() + } + var end, start Tsize_t + _, _ = end, start + start = uint64(addr) & -X__libc.Fpage_size + end = uint64(addr+uintptr(len1)+uintptr(X__libc.Fpage_size)-UintptrFromInt32(1)) & -X__libc.Fpage_size + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_mprotect), Int64FromUint64(start), Int64FromUint64(end-start), int64(prot))))) +} + +func Xmprotect(tls *TLS, addr uintptr, len1 Tsize_t, prot int32) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v len1=%v prot=%v, (%v:)", tls, addr, len1, prot, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__mprotect(tls, addr, len1, prot) +} + +func _dummy6(tls *TLS) { +} + +func X__mremap(tls *TLS, old_addr uintptr, old_len Tsize_t, new_len Tsize_t, flags int32, va uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v old_addr=%v old_len=%v new_len=%v flags=%v va=%v, (%v:)", tls, old_addr, old_len, new_len, flags, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var new_addr uintptr + _, _ = ap, new_addr + new_addr = uintptr(0) + if new_len >= Uint64FromInt64(Int64FromInt64(INT64_MAX)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOMEM) + return uintptr(-Int32FromInt32(1)) + } + if flags&int32(MREMAP_FIXED) != 0 { + _dummy6(tls) + ap = va + new_addr = VaUintptr(&ap) + _ = ap + } + return uintptr(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_mremap), int64(old_addr), Int64FromUint64(old_len), Int64FromUint64(new_len), int64(flags), int64(new_addr))))) +} + +func Xmremap(tls *TLS, old_addr uintptr, old_len Tsize_t, new_len Tsize_t, flags int32, va uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v old_addr=%v old_len=%v new_len=%v flags=%v va=%v, (%v:)", tls, old_addr, old_len, new_len, flags, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__mremap(tls, old_addr, old_len, new_len, flags, va) +} + +func Xmsync(tls *TLS, start uintptr, len1 Tsize_t, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v start=%v len1=%v flags=%v, (%v:)", tls, start, len1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_msync), int64(start), Int64FromUint64(len1), int64(flags), 0, 0, 0)))) +} + +func Xmunlock(tls *TLS, addr uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v len1=%v, (%v:)", tls, addr, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_munlock), int64(addr), Int64FromUint64(len1))))) +} + +func Xmunlockall(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall0(tls, int64(SYS_munlockall))))) +} + +func _dummy7(tls *TLS) { +} + +func X__munmap(tls *TLS, start uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v start=%v len1=%v, (%v:)", tls, start, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + _dummy7(tls) + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_munmap), int64(start), Int64FromUint64(len1))))) +} + +func Xmunmap(tls *TLS, start uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v start=%v len1=%v, (%v:)", tls, start, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__munmap(tls, start, len1) +} + +func Xposix_madvise(tls *TLS, addr uintptr, len1 Tsize_t, advice int32) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v len1=%v advice=%v, (%v:)", tls, addr, len1, advice, origin(2)) + defer func() { trc("-> %v", r) }() + } + if advice == int32(MADV_DONTNEED) { + return 0 + } + return int32(-X__syscall3(tls, int64(SYS_madvise), int64(addr), Int64FromUint64(len1), int64(advice))) +} + +func X__shm_mapname(tls *TLS, name uintptr, buf uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v buf=%v, (%v:)", tls, name, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + var p, v1 uintptr + _, _ = p, v1 + for int32(**(**int8)(__ccgo_up(name))) == int32('/') { + name = name + 1 + } + v1 = X__strchrnul(tls, name, int32('/')) + p = v1 + if **(**int8)(__ccgo_up(v1)) != 0 || p == name || int64(p)-int64(name) <= int64(2) && int32(**(**int8)(__ccgo_up(name))) == int32('.') && int32(**(**int8)(__ccgo_up(p + uintptr(-Int32FromInt32(1))))) == int32('.') { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(0) + } + if int64(p)-int64(name) > int64(NAME_MAX) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENAMETOOLONG) + return uintptr(0) + } + Xmemcpy(tls, buf, __ccgo_ts+951, uint64(9)) + Xmemcpy(tls, buf+uintptr(9), name, Uint64FromInt64(int64(p)-int64(name)+int64(1))) + return buf +} + +func Xshm_open(tls *TLS, name uintptr, flag int32, mode Tmode_t) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v flag=%v mode=%v, (%v:)", tls, name, flag, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(288) + defer tls.Free(288) + var fd int32 + var v1 uintptr + var _ /* buf at bp+4 */ [265]int8 + var _ /* cs at bp+0 */ int32 + _, _ = fd, v1 + v1 = X__shm_mapname(tls, name, bp+4) + name = v1 + if !(v1 != 0) { + return -int32(1) + } + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp) + fd = Xopen(tls, name, flag|int32(O_NOFOLLOW)|int32(O_CLOEXEC)|int32(O_NONBLOCK), VaList(bp+280, mode)) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp)), uintptr(0)) + return fd +} + +func Xshm_unlink(tls *TLS, name uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(272) + defer tls.Free(272) + var v1 uintptr + var _ /* buf at bp+0 */ [265]int8 + _ = v1 + v1 = X__shm_mapname(tls, name, bp) + name = v1 + if !(v1 != 0) { + return -int32(1) + } + return Xunlink(tls, name) +} + +const SA = 194 +const SB = 244 +const bittab = 0 + +func Xbtowc(tls *TLS, c int32) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + var b, v3 int32 + var v1, v2 uint32 + _, _, _, _ = b, v1, v2, v3 + b = Int32FromUint8(Uint8FromInt32(c)) + if Uint32FromInt32(b) < uint32(128) { + v1 = Uint32FromInt32(b) + } else { + if !!(**(**uintptr)(__ccgo_up((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale)) != 0) { + v3 = int32(4) + } else { + v3 = int32(1) + } + if v3 == int32(1) && c != -int32(1) { + v2 = Uint32FromInt32(Int32FromInt32(0xdfff) & int32(int8(c))) + } else { + v2 = uint32(0xffffffff) + } + v1 = v2 + } + return v1 +} + +type Tchar16_t = uint16 + +type Tchar32_t = uint32 + +func Xc16rtomb(tls *TLS, s uintptr, c16 Tchar16_t, ps uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v c16=%v ps=%v, (%v:)", tls, s, c16, ps, origin(2)) + defer func() { trc("-> %v", r) }() + } + var wc Twchar_t + var x uintptr + _, _ = wc, x + if !(ps != 0) { + ps = uintptr(unsafe.Pointer(&_internal_state)) + } + x = ps + if !(s != 0) { + if **(**uint32)(__ccgo_up(x)) != 0 { + goto ilseq + } + return uint64(1) + } + if !(**(**uint32)(__ccgo_up(x)) != 0) && uint32(c16)-uint32(0xd800) < uint32(0x400) { + **(**uint32)(__ccgo_up(x)) = Uint32FromInt32((Int32FromUint16(c16) - int32(0xd7c0)) << int32(10)) + return uint64(0) + } + if **(**uint32)(__ccgo_up(x)) != 0 { + if uint32(c16)-uint32(0xdc00) >= uint32(0x400) { + goto ilseq + } else { + wc = Int32FromUint32(**(**uint32)(__ccgo_up(x)) + uint32(c16) - uint32(0xdc00)) + } + **(**uint32)(__ccgo_up(x)) = uint32(0) + } else { + wc = Int32FromUint16(c16) + } + return Xwcrtomb(tls, s, wc, uintptr(0)) + goto ilseq +ilseq: + ; + **(**uint32)(__ccgo_up(x)) = uint32(0) + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EILSEQ) + return Uint64FromInt32(-Int32FromInt32(1)) +} + +var _internal_state uint32 + +func Xc32rtomb(tls *TLS, s uintptr, c32 Tchar32_t, ps uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v c32=%v ps=%v, (%v:)", tls, s, c32, ps, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwcrtomb(tls, s, Int32FromUint32(c32), ps) +} + +func Xmblen(tls *TLS, s uintptr, n Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v, (%v:)", tls, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xmbtowc(tls, uintptr(0), s, n) +} + +func Xmbrlen(tls *TLS, s uintptr, n Tsize_t, st uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v st=%v, (%v:)", tls, s, n, st, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 uintptr + _ = v1 + if st != 0 { + v1 = st + } else { + v1 = uintptr(unsafe.Pointer(&_internal)) + } + return Xmbrtowc(tls, uintptr(0), s, n, v1) +} + +var _internal uint32 + +func Xmbrtoc16(tls *TLS, pc16 uintptr, s uintptr, n Tsize_t, ps uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v pc16=%v s=%v n=%v ps=%v, (%v:)", tls, pc16, s, n, ps, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var pending uintptr + var ret Tsize_t + var _ /* wc at bp+0 */ Twchar_t + _, _ = pending, ret + if !(ps != 0) { + ps = uintptr(unsafe.Pointer(&_internal_state1)) + } + pending = ps + if !(s != 0) { + return Xmbrtoc16(tls, uintptr(0), __ccgo_ts, uint64(1), ps) + } + /* mbrtowc states for partial UTF-8 characters have the high bit set; + * we use nonzero states without high bit for pending surrogates. */ + if Int32FromUint32(**(**uint32)(__ccgo_up(pending))) > 0 { + if pc16 != 0 { + **(**Tchar16_t)(__ccgo_up(pc16)) = uint16(**(**uint32)(__ccgo_up(pending))) + } + **(**uint32)(__ccgo_up(pending)) = uint32(0) + return Uint64FromInt32(-Int32FromInt32(3)) + } + ret = Xmbrtowc(tls, bp, s, n, ps) + if ret <= uint64(4) { + if **(**Twchar_t)(__ccgo_up(bp)) >= int32(0x10000) { + **(**uint32)(__ccgo_up(pending)) = Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp))&int32(0x3ff) + int32(0xdc00)) + **(**Twchar_t)(__ccgo_up(bp)) = int32(0xd7c0) + **(**Twchar_t)(__ccgo_up(bp))>>Int32FromInt32(10) + } + if pc16 != 0 { + **(**Tchar16_t)(__ccgo_up(pc16)) = Uint16FromInt32(**(**Twchar_t)(__ccgo_up(bp))) + } + } + return ret +} + +var _internal_state1 uint32 + +func Xmbrtoc32(tls *TLS, pc32 uintptr, s uintptr, n Tsize_t, ps uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v pc32=%v s=%v n=%v ps=%v, (%v:)", tls, pc32, s, n, ps, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ret Tsize_t + var _ /* wc at bp+0 */ Twchar_t + _ = ret + if !(ps != 0) { + ps = uintptr(unsafe.Pointer(&_internal_state2)) + } + if !(s != 0) { + return Xmbrtoc32(tls, uintptr(0), __ccgo_ts, uint64(1), ps) + } + ret = Xmbrtowc(tls, bp, s, n, ps) + if ret <= uint64(4) && pc32 != 0 { + **(**Tchar32_t)(__ccgo_up(pc32)) = Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp))) + } + return ret +} + +var _internal_state2 uint32 + +func Xmbrtowc(tls *TLS, wc uintptr, src uintptr, n Tsize_t, st uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v wc=%v src=%v n=%v st=%v, (%v:)", tls, wc, src, n, st, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var N Tsize_t + var c uint32 + var s, v3 uintptr + var v1 Twchar_t + var v2 int32 + var _ /* dummy at bp+0 */ Twchar_t + _, _, _, _, _, _ = N, c, s, v1, v2, v3 + s = src + N = n + if !(st != 0) { + st = uintptr(unsafe.Pointer(&_internal_state3)) + } + c = **(**uint32)(__ccgo_up(st)) + if !(s != 0) { + if c != 0 { + goto ilseq + } + return uint64(0) + } else { + if !(wc != 0) { + wc = bp + } + } + if !(n != 0) { + return Uint64FromInt32(-Int32FromInt32(2)) + } + if !(c != 0) { + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) < int32(0x80) { + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(s))) + **(**Twchar_t)(__ccgo_up(wc)) = v1 + return BoolUint64(!!(v1 != 0)) + } + if !!(**(**uintptr)(__ccgo_up((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale)) != 0) { + v2 = int32(4) + } else { + v2 = int32(1) + } + if v2 == int32(1) { + **(**Twchar_t)(__ccgo_up(wc)) = Int32FromInt32(0xdfff) & int32(Int8FromUint8(**(**uint8)(__ccgo_up(s)))) + return Uint64FromInt32(1) + } + if uint32(**(**uint8)(__ccgo_up(s)))-uint32(0xc2) > Uint32FromUint32(0xf4)-Uint32FromUint32(0xc2) { + goto ilseq + } + v3 = s + s = s + 1 + c = X__fsmu8[uint32(**(**uint8)(__ccgo_up(v3)))-uint32(0xc2)] + n = n - 1 + } + if n != 0 { + if (Int32FromUint8(**(**uint8)(__ccgo_up(s)))>>int32(3)-int32(0x10)|(Int32FromUint8(**(**uint8)(__ccgo_up(s)))>>int32(3)+Int32FromUint32(c)>>Int32FromInt32(26))) & ^Int32FromInt32(7) != 0 { + goto ilseq + } + goto loop + loop: + ; + v3 = s + s = s + 1 + c = c<= uint32(0x40) { + goto ilseq + } + goto loop + } + } + **(**uint32)(__ccgo_up(st)) = c + return Uint64FromInt32(-Int32FromInt32(2)) + goto ilseq +ilseq: + ; + **(**uint32)(__ccgo_up(st)) = uint32(0) + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EILSEQ) + return Uint64FromInt32(-Int32FromInt32(1)) +} + +var _internal_state3 uint32 + +func Xmbsinit(tls *TLS, st uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v st=%v, (%v:)", tls, st, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(!(st != 0) || !(**(**uint32)(__ccgo_up(st)) != 0)) +} + +func Xmbsnrtowcs(tls *TLS, wcs uintptr, src uintptr, n Tsize_t, wn Tsize_t, st uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v wcs=%v src=%v n=%v wn=%v st=%v, (%v:)", tls, wcs, src, n, wn, st, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(1040) + defer tls.Free(1040) + var cnt, l, n2, v1 Tsize_t + var tmp_s, ws uintptr + var v2 bool + var v3 uint64 + var _ /* s at bp+1024 */ uintptr + var _ /* wbuf at bp+0 */ [256]Twchar_t + _, _, _, _, _, _, _, _ = cnt, l, n2, tmp_s, ws, v1, v2, v3 + cnt = uint64(0) + **(**uintptr)(__ccgo_up(bp + 1024)) = **(**uintptr)(__ccgo_up(src)) + if !(wcs != 0) { + ws = bp + wn = Uint64FromInt64(1024) / Uint64FromInt64(4) + } else { + ws = wcs + } + /* making sure output buffer size is at most n/4 will ensure + * that mbsrtowcs never reads more than n input bytes. thus + * we can use mbsrtowcs as long as it's practical.. */ + for { + if v2 = **(**uintptr)(__ccgo_up(bp + 1024)) != 0 && wn != 0; v2 { + v1 = n / Uint64FromInt32(4) + n2 = v1 + } + if !(v2 && (v1 >= wn || n2 > uint64(32))) { + break + } + if n2 >= wn { + n2 = wn + } + tmp_s = **(**uintptr)(__ccgo_up(bp + 1024)) + l = Xmbsrtowcs(tls, ws, bp+1024, n2, st) + if !(l+Uint64FromInt32(1) != 0) { + cnt = l + wn = uint64(0) + break + } + if ws != bp { + ws = ws + uintptr(l)*4 + wn = wn - l + } + if **(**uintptr)(__ccgo_up(bp + 1024)) != 0 { + v3 = n - Uint64FromInt64(int64(**(**uintptr)(__ccgo_up(bp + 1024)))-int64(tmp_s)) + } else { + v3 = uint64(0) + } + n = v3 + cnt = cnt + l + } + if **(**uintptr)(__ccgo_up(bp + 1024)) != 0 { + for wn != 0 && n != 0 { + l = Xmbrtowc(tls, ws, **(**uintptr)(__ccgo_up(bp + 1024)), n, st) + if l+uint64(2) <= uint64(2) { + if !(l+Uint64FromInt32(1) != 0) { + cnt = l + break + } + if !(l != 0) { + **(**uintptr)(__ccgo_up(bp + 1024)) = uintptr(0) + break + } + /* have to roll back partial character */ + **(**uint32)(__ccgo_up(st)) = uint32(0) + break + } + **(**uintptr)(__ccgo_up(bp + 1024)) = **(**uintptr)(__ccgo_up(bp + 1024)) + uintptr(l) + n = n - l + /* safe - this loop runs fewer than sizeof(wbuf)/8 times */ + ws += 4 + wn = wn - 1 + cnt = cnt + 1 + } + } + if wcs != 0 { + **(**uintptr)(__ccgo_up(src)) = **(**uintptr)(__ccgo_up(bp + 1024)) + } + return cnt +} + +func Xmbsrtowcs(tls *TLS, ws uintptr, src uintptr, wn Tsize_t, st uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v ws=%v src=%v wn=%v st=%v, (%v:)", tls, ws, src, wn, st, origin(2)) + defer func() { trc("-> %v", r) }() + } + var c, v1 uint32 + var s, v5, v6 uintptr + var wn0 Tsize_t + var v2 bool + var v3 int32 + _, _, _, _, _, _, _, _ = c, s, wn0, v1, v2, v3, v5, v6 + s = **(**uintptr)(__ccgo_up(src)) + wn0 = wn + c = uint32(0) + if v2 = st != 0; v2 { + v1 = **(**uint32)(__ccgo_up(st)) + c = v1 + } + if v2 && v1 != 0 { + if ws != 0 { + **(**uint32)(__ccgo_up(st)) = uint32(0) + goto resume + } else { + goto resume0 + } + } + if !!(**(**uintptr)(__ccgo_up((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale)) != 0) { + v3 = int32(4) + } else { + v3 = int32(1) + } + if v3 == int32(1) { + if !(ws != 0) { + return _strlen(tls, s) + } + for { + if !(wn != 0) { + **(**uintptr)(__ccgo_up(src)) = s + return wn0 + } + if !(**(**uint8)(__ccgo_up(s)) != 0) { + break + } + v5 = s + s = s + 1 + c = uint32(**(**uint8)(__ccgo_up(v5))) + v5 = ws + ws += 4 + **(**Twchar_t)(__ccgo_up(v5)) = Int32FromInt32(0xdfff) & int32(Int8FromUint32(c)) + wn = wn - 1 + goto _4 + _4: + } + **(**Twchar_t)(__ccgo_up(ws)) = 0 + **(**uintptr)(__ccgo_up(src)) = uintptr(0) + return wn0 - wn + } + if !!(ws != 0) { + goto _7 + } +_11: + ; + if uint32(**(**uint8)(__ccgo_up(s)))-uint32(1) < uint32(0x7f) && uint64(s)%uint64(4) == uint64(0) { + for !((**(**uint32)(__ccgo_up(s))|(**(**uint32)(__ccgo_up(s))-Uint32FromInt32(0x01010101)))&Uint32FromUint32(0x80808080) != 0) { + s = s + uintptr(4) + wn = wn - uint64(4) + } + } + if uint32(**(**uint8)(__ccgo_up(s)))-uint32(1) < uint32(0x7f) { + s = s + 1 + wn = wn - 1 + goto _10 + } + if uint32(**(**uint8)(__ccgo_up(s)))-uint32(0xc2) > Uint32FromUint32(0xf4)-Uint32FromUint32(0xc2) { + goto _9 + } + v5 = s + s = s + 1 + c = X__fsmu8[uint32(**(**uint8)(__ccgo_up(v5)))-uint32(0xc2)] + goto resume0 +resume0: + ; + if (Int32FromUint8(**(**uint8)(__ccgo_up(s)))>>int32(3)-int32(0x10)|(Int32FromUint8(**(**uint8)(__ccgo_up(s)))>>int32(3)+Int32FromUint32(c)>>Int32FromInt32(26))) & ^Int32FromInt32(7) != 0 { + s = s - 1 + goto _9 + } + s = s + 1 + if c&(Uint32FromUint32(1)<= uint32(0x40) { + s = s - uintptr(2) + goto _9 + } + s = s + 1 + if c&(Uint32FromUint32(1)<= uint32(0x40) { + s = s - uintptr(3) + goto _9 + } + s = s + 1 + } + } + wn = wn - 1 + c = uint32(0) + goto _10 +_10: + ; + goto _11 + goto _9 +_9: + ; + goto _8 +_7: + ; +_15: + ; + if !(wn != 0) { + **(**uintptr)(__ccgo_up(src)) = s + return wn0 + } + if uint32(**(**uint8)(__ccgo_up(s)))-uint32(1) < uint32(0x7f) && uint64(s)%uint64(4) == uint64(0) { + for wn >= uint64(5) && !((**(**uint32)(__ccgo_up(s))|(**(**uint32)(__ccgo_up(s))-Uint32FromInt32(0x01010101)))&Uint32FromUint32(0x80808080) != 0) { + v5 = ws + ws += 4 + v6 = s + s = s + 1 + **(**Twchar_t)(__ccgo_up(v5)) = Int32FromUint8(**(**uint8)(__ccgo_up(v6))) + v5 = ws + ws += 4 + v6 = s + s = s + 1 + **(**Twchar_t)(__ccgo_up(v5)) = Int32FromUint8(**(**uint8)(__ccgo_up(v6))) + v5 = ws + ws += 4 + v6 = s + s = s + 1 + **(**Twchar_t)(__ccgo_up(v5)) = Int32FromUint8(**(**uint8)(__ccgo_up(v6))) + v5 = ws + ws += 4 + v6 = s + s = s + 1 + **(**Twchar_t)(__ccgo_up(v5)) = Int32FromUint8(**(**uint8)(__ccgo_up(v6))) + wn = wn - uint64(4) + } + } + if uint32(**(**uint8)(__ccgo_up(s)))-uint32(1) < uint32(0x7f) { + v5 = ws + ws += 4 + v6 = s + s = s + 1 + **(**Twchar_t)(__ccgo_up(v5)) = Int32FromUint8(**(**uint8)(__ccgo_up(v6))) + wn = wn - 1 + goto _14 + } + if uint32(**(**uint8)(__ccgo_up(s)))-uint32(0xc2) > Uint32FromUint32(0xf4)-Uint32FromUint32(0xc2) { + goto _13 + } + v5 = s + s = s + 1 + c = X__fsmu8[uint32(**(**uint8)(__ccgo_up(v5)))-uint32(0xc2)] + goto resume +resume: + ; + if (Int32FromUint8(**(**uint8)(__ccgo_up(s)))>>int32(3)-int32(0x10)|(Int32FromUint8(**(**uint8)(__ccgo_up(s)))>>int32(3)+Int32FromUint32(c)>>Int32FromInt32(26))) & ^Int32FromInt32(7) != 0 { + s = s - 1 + goto _13 + } + v5 = s + s = s + 1 + c = c<= uint32(0x40) { + s = s - uintptr(2) + goto _13 + } + v5 = s + s = s + 1 + c = c<= uint32(0x40) { + s = s - uintptr(3) + goto _13 + } + v5 = s + s = s + 1 + c = c< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + *(*uintptr)(unsafe.Pointer(bp)) = _s + return Xmbsrtowcs(tls, ws, bp, wn, uintptr(0)) +} + +func Xmbtowc(tls *TLS, wc uintptr, src uintptr, n Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v src=%v n=%v, (%v:)", tls, wc, src, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var c uint32 + var s, v3 uintptr + var v1 Twchar_t + var v2 int32 + var _ /* dummy at bp+0 */ Twchar_t + _, _, _, _, _ = c, s, v1, v2, v3 + s = src + if !(s != 0) { + return 0 + } + if !(n != 0) { + goto ilseq + } + if !(wc != 0) { + wc = bp + } + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) < int32(0x80) { + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(s))) + **(**Twchar_t)(__ccgo_up(wc)) = v1 + return BoolInt32(!!(v1 != 0)) + } + if !!(**(**uintptr)(__ccgo_up((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale)) != 0) { + v2 = int32(4) + } else { + v2 = int32(1) + } + if v2 == int32(1) { + **(**Twchar_t)(__ccgo_up(wc)) = Int32FromInt32(0xdfff) & int32(Int8FromUint8(**(**uint8)(__ccgo_up(s)))) + return Int32FromInt32(1) + } + if uint32(**(**uint8)(__ccgo_up(s)))-uint32(0xc2) > Uint32FromUint32(0xf4)-Uint32FromUint32(0xc2) { + goto ilseq + } + v3 = s + s = s + 1 + c = X__fsmu8[uint32(**(**uint8)(__ccgo_up(v3)))-uint32(0xc2)] + /* Avoid excessive checks against n: If shifting the state n-1 + * times does not clear the high bit, then the value of n is + * insufficient to read a character */ + if n < uint64(4) && c<<(uint64(6)*n-uint64(6))&(Uint32FromUint32(1)<>int32(3)-int32(0x10)|(Int32FromUint8(**(**uint8)(__ccgo_up(s)))>>int32(3)+Int32FromUint32(c)>>Int32FromInt32(26))) & ^Int32FromInt32(7) != 0 { + goto ilseq + } + v3 = s + s = s + 1 + c = c<= uint32(0x40) { + goto ilseq + } + v3 = s + s = s + 1 + c = c<= uint32(0x40) { + goto ilseq + } + v3 = s + s = s + 1 + **(**Twchar_t)(__ccgo_up(wc)) = Int32FromUint32(c< %v", r) }() + } + var v1 int32 + var v2 uintptr + _, _ = v1, v2 + if !(s != 0) { + return uint64(1) + } + if Uint32FromInt32(wc) < uint32(0x80) { + **(**int8)(__ccgo_up(s)) = int8(wc) + return uint64(1) + } else { + if !!(**(**uintptr)(__ccgo_up((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale)) != 0) { + v1 = int32(4) + } else { + v1 = int32(1) + } + if v1 == int32(1) { + if !(Uint32FromInt32(wc)-Uint32FromInt32(0xdf80) < Uint32FromInt32(0x80)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EILSEQ) + return Uint64FromInt32(-Int32FromInt32(1)) + } + **(**int8)(__ccgo_up(s)) = int8(wc) + return uint64(1) + } else { + if Uint32FromInt32(wc) < uint32(0x800) { + v2 = s + s = s + 1 + **(**int8)(__ccgo_up(v2)) = int8(int32(0xc0) | wc>>Int32FromInt32(6)) + **(**int8)(__ccgo_up(s)) = int8(int32(0x80) | wc&int32(0x3f)) + return uint64(2) + } else { + if Uint32FromInt32(wc) < uint32(0xd800) || Uint32FromInt32(wc)-uint32(0xe000) < uint32(0x2000) { + v2 = s + s = s + 1 + **(**int8)(__ccgo_up(v2)) = int8(int32(0xe0) | wc>>Int32FromInt32(12)) + v2 = s + s = s + 1 + **(**int8)(__ccgo_up(v2)) = int8(int32(0x80) | wc>>Int32FromInt32(6)&int32(0x3f)) + **(**int8)(__ccgo_up(s)) = int8(int32(0x80) | wc&int32(0x3f)) + return uint64(3) + } else { + if Uint32FromInt32(wc)-uint32(0x10000) < uint32(0x100000) { + v2 = s + s = s + 1 + **(**int8)(__ccgo_up(v2)) = int8(int32(0xf0) | wc>>Int32FromInt32(18)) + v2 = s + s = s + 1 + **(**int8)(__ccgo_up(v2)) = int8(int32(0x80) | wc>>Int32FromInt32(12)&int32(0x3f)) + v2 = s + s = s + 1 + **(**int8)(__ccgo_up(v2)) = int8(int32(0x80) | wc>>Int32FromInt32(6)&int32(0x3f)) + **(**int8)(__ccgo_up(s)) = int8(int32(0x80) | wc&int32(0x3f)) + return uint64(4) + } + } + } + } + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EILSEQ) + return Uint64FromInt32(-Int32FromInt32(1)) +} + +func Xwcsnrtombs(tls *TLS, dst uintptr, wcs uintptr, wn Tsize_t, n Tsize_t, st uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v dst=%v wcs=%v wn=%v n=%v st=%v, (%v:)", tls, dst, wcs, wn, n, st, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var cnt, l Tsize_t + var ws, v1 uintptr + var _ /* tmp at bp+0 */ [4]int8 + _, _, _, _ = cnt, l, ws, v1 + ws = **(**uintptr)(__ccgo_up(wcs)) + cnt = uint64(0) + if !(dst != 0) { + n = uint64(0) + } + for ws != 0 && wn != 0 { + if n < uint64(MB_LEN_MAX) { + v1 = bp + } else { + v1 = dst + } + l = Xwcrtomb(tls, v1, **(**Twchar_t)(__ccgo_up(ws)), uintptr(0)) + if l == Uint64FromInt32(-Int32FromInt32(1)) { + cnt = Uint64FromInt32(-Int32FromInt32(1)) + break + } + if dst != 0 { + if n < uint64(MB_LEN_MAX) { + if l > n { + break + } + Xmemcpy(tls, dst, bp, l) + } + dst = dst + uintptr(l) + n = n - l + } + if !(**(**Twchar_t)(__ccgo_up(ws)) != 0) { + ws = uintptr(0) + break + } + ws += 4 + wn = wn - 1 + cnt = cnt + l + } + if dst != 0 { + **(**uintptr)(__ccgo_up(wcs)) = ws + } + return cnt +} + +func Xwcsrtombs(tls *TLS, s uintptr, ws uintptr, n Tsize_t, st uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v ws=%v n=%v st=%v, (%v:)", tls, s, ws, n, st, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var N, l Tsize_t + var ws2, v2 uintptr + var _ /* buf at bp+0 */ [4]int8 + _, _, _, _ = N, l, ws2, v2 + N = n + if !(s != 0) { + n = uint64(0) + ws2 = **(**uintptr)(__ccgo_up(ws)) + for { + if !(**(**Twchar_t)(__ccgo_up(ws2)) != 0) { + break + } + if Uint32FromInt32(**(**Twchar_t)(__ccgo_up(ws2))) >= uint32(0x80) { + l = Xwcrtomb(tls, bp, **(**Twchar_t)(__ccgo_up(ws2)), uintptr(0)) + if !(l+Uint64FromInt32(1) != 0) { + return Uint64FromInt32(-Int32FromInt32(1)) + } + n = n + l + } else { + n = n + 1 + } + goto _1 + _1: + ; + ws2 += 4 + } + return n + } + for n >= uint64(4) { + if Uint32FromInt32(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(ws)))))-uint32(1) >= uint32(0x7f) { + if !(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(ws)))) != 0) { + **(**int8)(__ccgo_up(s)) = 0 + **(**uintptr)(__ccgo_up(ws)) = uintptr(0) + return N - n + } + l = Xwcrtomb(tls, s, **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(ws)))), uintptr(0)) + if !(l+Uint64FromInt32(1) != 0) { + return Uint64FromInt32(-Int32FromInt32(1)) + } + s = s + uintptr(l) + n = n - l + } else { + v2 = s + s = s + 1 + **(**int8)(__ccgo_up(v2)) = int8(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(ws))))) + n = n - 1 + } + **(**uintptr)(__ccgo_up(ws)) += 4 + } + for n != 0 { + if Uint32FromInt32(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(ws)))))-uint32(1) >= uint32(0x7f) { + if !(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(ws)))) != 0) { + **(**int8)(__ccgo_up(s)) = 0 + **(**uintptr)(__ccgo_up(ws)) = uintptr(0) + return N - n + } + l = Xwcrtomb(tls, bp, **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(ws)))), uintptr(0)) + if !(l+Uint64FromInt32(1) != 0) { + return Uint64FromInt32(-Int32FromInt32(1)) + } + if l > n { + return N - n + } + Xwcrtomb(tls, s, **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(ws)))), uintptr(0)) + s = s + uintptr(l) + n = n - l + } else { + v2 = s + s = s + 1 + **(**int8)(__ccgo_up(v2)) = int8(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(ws))))) + n = n - 1 + } + **(**uintptr)(__ccgo_up(ws)) += 4 + } + return N +} + +func Xwcstombs(tls *TLS, s uintptr, ws uintptr, n Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v ws=%v n=%v, (%v:)", tls, s, ws, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + *(*uintptr)(unsafe.Pointer(bp)) = ws + return Xwcsrtombs(tls, s, bp, n, uintptr(0)) +} + +func Xwctob(tls *TLS, c Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + _ = v1 + if c < uint32(128) { + return Int32FromUint32(c) + } + if !!(**(**uintptr)(__ccgo_up((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale)) != 0) { + v1 = int32(4) + } else { + v1 = int32(1) + } + if v1 == int32(1) && c-uint32(0xdf80) < uint32(0x80) { + return Int32FromUint8(uint8(c)) + } + return -int32(1) +} + +func Xwctomb(tls *TLS, s uintptr, wc Twchar_t) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v wc=%v, (%v:)", tls, s, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + if !(s != 0) { + return 0 + } + return Int32FromUint64(Xwcrtomb(tls, s, wc, uintptr(0))) +} + +func Xaccept(tls *TLS, fd int32, addr uintptr, len1 uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v addr=%v len1=%v, (%v:)", tls, fd, addr, len1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v8 int64 + var v1 int32 + var v2, v3, v4, v5, v6, v7 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _ = r, v1, v2, v3, v4, v5, v6, v7, v8 + v1 = int32(SYS_accept) + _ = int32(__SC_accept) + v2 = int64(fd) + v3 = int64(addr) + v4 = int64(len1) + v5 = int64(Int32FromInt32(0)) + v6 = int64(Int32FromInt32(0)) + v7 = int64(Int32FromInt32(0)) + if int32(1) != 0 { + r = ___syscall_cp(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _9 + } + v8 = r + goto _9 +_9: + return int32(X__syscall_ret(tls, Uint64FromInt64(v8))) +} + +type Tucred = struct { + Fpid Tpid_t + Fuid Tuid_t + Fgid Tgid_t +} + +type Tmmsghdr = struct { + Fmsg_hdr Tmsghdr + Fmsg_len uint32 +} + +func Xaccept4(tls *TLS, fd int32, addr uintptr, len1 uintptr, flg int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v addr=%v len1=%v flg=%v, (%v:)", tls, fd, addr, len1, flg, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v8 int64 + var ret, v1 int32 + var v2, v3, v4, v5, v6, v7 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _, _ = r, ret, v1, v2, v3, v4, v5, v6, v7, v8 + if !(flg != 0) { + return Xaccept(tls, fd, addr, len1) + } + v1 = int32(SYS_accept4) + _ = int32(__SC_accept4) + v2 = int64(fd) + v3 = int64(addr) + v4 = int64(len1) + v5 = int64(flg) + v6 = int64(Int32FromInt32(0)) + v7 = int64(Int32FromInt32(0)) + if int32(1) != 0 { + r = ___syscall_cp(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _9 + } + v8 = r + goto _9 +_9: + ret = int32(X__syscall_ret(tls, Uint64FromInt64(v8))) + if ret >= 0 || **(**int32)(__ccgo_up(X__errno_location(tls))) != int32(ENOSYS) && **(**int32)(__ccgo_up(X__errno_location(tls))) != int32(EINVAL) { + return ret + } + if flg & ^(Int32FromInt32(SOCK_CLOEXEC)|Int32FromInt32(SOCK_NONBLOCK)) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + ret = Xaccept(tls, fd, addr, len1) + if ret < 0 { + return ret + } + if flg&int32(SOCK_CLOEXEC) != 0 { + X__syscall3(tls, int64(__NR3264_fcntl), int64(ret), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + } + if flg&int32(SOCK_NONBLOCK) != 0 { + X__syscall3(tls, int64(__NR3264_fcntl), int64(ret), int64(Int32FromInt32(F_SETFL)), int64(Int32FromInt32(O_NONBLOCK))) + } + return ret +} + +func Xbind(tls *TLS, fd int32, addr uintptr, len1 Tsocklen_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v addr=%v len1=%v, (%v:)", tls, fd, addr, len1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v8 int64 + var v1 int32 + var v2, v3, v4, v5, v6, v7 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _ = r, v1, v2, v3, v4, v5, v6, v7, v8 + v1 = int32(SYS_bind) + _ = int32(__SC_bind) + v2 = int64(fd) + v3 = int64(addr) + v4 = Int64FromUint32(len1) + v5 = int64(Int32FromInt32(0)) + v6 = int64(Int32FromInt32(0)) + v7 = int64(Int32FromInt32(0)) + if 0 != 0 { + r = ___syscall_cp(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _9 + } + v8 = r + goto _9 +_9: + return int32(X__syscall_ret(tls, Uint64FromInt64(v8))) +} + +func Xconnect(tls *TLS, fd int32, addr uintptr, len1 Tsocklen_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v addr=%v len1=%v, (%v:)", tls, fd, addr, len1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v8 int64 + var v1 int32 + var v2, v3, v4, v5, v6, v7 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _ = r, v1, v2, v3, v4, v5, v6, v7, v8 + v1 = int32(SYS_connect) + _ = int32(__SC_connect) + v2 = int64(fd) + v3 = int64(addr) + v4 = Int64FromUint32(len1) + v5 = int64(Int32FromInt32(0)) + v6 = int64(Int32FromInt32(0)) + v7 = int64(Int32FromInt32(0)) + if int32(1) != 0 { + r = ___syscall_cp(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _9 + } + v8 = r + goto _9 +_9: + return int32(X__syscall_ret(tls, Uint64FromInt64(v8))) +} + +const ADD = 0 +const C_ANY = 0 +const C_CHAOS = 0 +const C_HS = 0 +const C_IN = 0 +const C_NONE = 0 +const DELETE = 0 +const FORMERR = 0 +const GETLONG = 0 +const GETSHORT = 0 +const HFIXEDSZ = 12 +const IN6ADDRSZ = 16 +const INADDRSZ = 4 +const INDIR_MASK = 192 +const INET6_ADDRSTRLEN = 46 +const INET_ADDRSTRLEN = 16 +const INT16SZ = 2 +const INT32SZ = 4 +const INT8SZ = 1 +const IN_CLASSA_HOST = 16777215 +const IN_CLASSA_MAX = 128 +const IN_CLASSA_NET = 4278190080 +const IN_CLASSA_NSHIFT = 24 +const IN_CLASSB_HOST = 65535 +const IN_CLASSB_MAX = 65536 +const IN_CLASSB_NET = 4294901760 +const IN_CLASSB_NSHIFT = 16 +const IN_CLASSC_HOST = 255 +const IN_CLASSC_NET = 4294967040 +const IN_CLASSC_NSHIFT = 8 +const IN_LOOPBACKNET = 127 +const IPPORT_RESERVED = 1024 +const IPPROTO_AH = 51 +const IPPROTO_BEETPH = 94 +const IPPROTO_COMP = 108 +const IPPROTO_DCCP = 33 +const IPPROTO_DSTOPTS = 60 +const IPPROTO_EGP = 8 +const IPPROTO_ENCAP = 98 +const IPPROTO_ESP = 50 +const IPPROTO_ETHERNET = 143 +const IPPROTO_FRAGMENT = 44 +const IPPROTO_GRE = 47 +const IPPROTO_HOPOPTS = 0 +const IPPROTO_ICMP = 1 +const IPPROTO_ICMPV6 = 58 +const IPPROTO_IDP = 22 +const IPPROTO_IGMP = 2 +const IPPROTO_IP = 0 +const IPPROTO_IPIP = 4 +const IPPROTO_IPV6 = 41 +const IPPROTO_MAX = 263 +const IPPROTO_MH = 135 +const IPPROTO_MPLS = 137 +const IPPROTO_MPTCP = 262 +const IPPROTO_MTP = 92 +const IPPROTO_NONE = 59 +const IPPROTO_PIM = 103 +const IPPROTO_PUP = 12 +const IPPROTO_RAW = 255 +const IPPROTO_ROUTING = 43 +const IPPROTO_RSVP = 46 +const IPPROTO_SCTP = 132 +const IPPROTO_TCP = 6 +const IPPROTO_TP = 29 +const IPPROTO_UDP = 17 +const IPPROTO_UDPLITE = 136 +const IPV6_2292DSTOPTS = 4 +const IPV6_2292HOPLIMIT = 8 +const IPV6_2292HOPOPTS = 3 +const IPV6_2292PKTINFO = 2 +const IPV6_2292PKTOPTIONS = 6 +const IPV6_2292RTHDR = 5 +const IPV6_ADDRFORM = 1 +const IPV6_ADDR_PREFERENCES = 72 +const IPV6_ADD_MEMBERSHIP = 20 +const IPV6_AUTHHDR = 10 +const IPV6_AUTOFLOWLABEL = 70 +const IPV6_CHECKSUM = 7 +const IPV6_DONTFRAG = 62 +const IPV6_DROP_MEMBERSHIP = 21 +const IPV6_DSTOPTS = 59 +const IPV6_FREEBIND = 78 +const IPV6_HDRINCL = 36 +const IPV6_HOPLIMIT = 52 +const IPV6_HOPOPTS = 54 +const IPV6_IPSEC_POLICY = 34 +const IPV6_JOIN_ANYCAST = 27 +const IPV6_JOIN_GROUP = 20 +const IPV6_LEAVE_ANYCAST = 28 +const IPV6_LEAVE_GROUP = 21 +const IPV6_MINHOPCOUNT = 73 +const IPV6_MTU = 24 +const IPV6_MTU_DISCOVER = 23 +const IPV6_MULTICAST_ALL = 29 +const IPV6_MULTICAST_HOPS = 18 +const IPV6_MULTICAST_IF = 17 +const IPV6_MULTICAST_LOOP = 19 +const IPV6_NEXTHOP = 9 +const IPV6_ORIGDSTADDR = 74 +const IPV6_PATHMTU = 61 +const IPV6_PKTINFO = 50 +const IPV6_PMTUDISC_DO = 2 +const IPV6_PMTUDISC_DONT = 0 +const IPV6_PMTUDISC_INTERFACE = 4 +const IPV6_PMTUDISC_OMIT = 5 +const IPV6_PMTUDISC_PROBE = 3 +const IPV6_PMTUDISC_WANT = 1 +const IPV6_PREFER_SRC_CGA = 8 +const IPV6_PREFER_SRC_COA = 4 +const IPV6_PREFER_SRC_HOME = 1024 +const IPV6_PREFER_SRC_NONCGA = 2048 +const IPV6_PREFER_SRC_PUBLIC = 2 +const IPV6_PREFER_SRC_PUBTMP_DEFAULT = 256 +const IPV6_PREFER_SRC_TMP = 1 +const IPV6_RECVDSTOPTS = 58 +const IPV6_RECVERR = 25 +const IPV6_RECVFRAGSIZE = 77 +const IPV6_RECVHOPLIMIT = 51 +const IPV6_RECVHOPOPTS = 53 +const IPV6_RECVORIGDSTADDR = 74 +const IPV6_RECVPATHMTU = 60 +const IPV6_RECVPKTINFO = 49 +const IPV6_RECVRTHDR = 56 +const IPV6_RECVTCLASS = 66 +const IPV6_ROUTER_ALERT = 22 +const IPV6_ROUTER_ALERT_ISOLATE = 30 +const IPV6_RTHDR = 57 +const IPV6_RTHDRDSTOPTS = 55 +const IPV6_RTHDR_LOOSE = 0 +const IPV6_RTHDR_STRICT = 1 +const IPV6_RTHDR_TYPE_0 = 0 +const IPV6_RXDSTOPTS = 59 +const IPV6_RXHOPOPTS = 54 +const IPV6_TCLASS = 67 +const IPV6_TRANSPARENT = 75 +const IPV6_UNICAST_HOPS = 16 +const IPV6_UNICAST_IF = 76 +const IPV6_V6ONLY = 26 +const IPV6_XFRM_POLICY = 35 +const IP_ADD_MEMBERSHIP = 35 +const IP_ADD_SOURCE_MEMBERSHIP = 39 +const IP_BIND_ADDRESS_NO_PORT = 24 +const IP_BLOCK_SOURCE = 38 +const IP_CHECKSUM = 23 +const IP_DEFAULT_MULTICAST_LOOP = 1 +const IP_DEFAULT_MULTICAST_TTL = 1 +const IP_DROP_MEMBERSHIP = 36 +const IP_DROP_SOURCE_MEMBERSHIP = 40 +const IP_FREEBIND = 15 +const IP_HDRINCL = 3 +const IP_IPSEC_POLICY = 16 +const IP_MAX_MEMBERSHIPS = 20 +const IP_MINTTL = 21 +const IP_MSFILTER = 41 +const IP_MTU = 14 +const IP_MTU_DISCOVER = 10 +const IP_MULTICAST_ALL = 49 +const IP_MULTICAST_IF = 32 +const IP_MULTICAST_LOOP = 34 +const IP_MULTICAST_TTL = 33 +const IP_NODEFRAG = 22 +const IP_OPTIONS = 4 +const IP_ORIGDSTADDR = 20 +const IP_PASSSEC = 18 +const IP_PKTINFO = 8 +const IP_PKTOPTIONS = 9 +const IP_PMTUDISC = 10 +const IP_PMTUDISC_DO = 2 +const IP_PMTUDISC_DONT = 0 +const IP_PMTUDISC_INTERFACE = 4 +const IP_PMTUDISC_OMIT = 5 +const IP_PMTUDISC_PROBE = 3 +const IP_PMTUDISC_WANT = 1 +const IP_RECVERR = 11 +const IP_RECVERR_RFC4884 = 26 +const IP_RECVFRAGSIZE = 25 +const IP_RECVOPTS = 6 +const IP_RECVORIGDSTADDR = 20 +const IP_RECVRETOPTS = 7 +const IP_RECVTOS = 13 +const IP_RECVTTL = 12 +const IP_RETOPTS = 7 +const IP_ROUTER_ALERT = 5 +const IP_TOS = 1 +const IP_TRANSPARENT = 19 +const IP_TTL = 2 +const IP_UNBLOCK_SOURCE = 37 +const IP_UNICAST_IF = 50 +const IP_XFRM_POLICY = 17 +const IQUERY = 0 +const LOCALDOMAINPARTS = 2 +const MAXCDNAME = 255 +const MAXDFLSRCH = 3 +const MAXDNAME = 1025 +const MAXDNSRCH = 6 +const MAXLABEL = 63 +const MAXNS = 3 +const MAXRESOLVSORT = 10 +const NAMESERVER_PORT = 53 +const NOERROR = 0 +const NOTAUTH = 0 +const NOTIMP = 0 +const NOTZONE = 0 +const NS_ALG_DH = 2 +const NS_ALG_DSA = 3 +const NS_ALG_DSS = 3 +const NS_ALG_EXPIRE_ONLY = 253 +const NS_ALG_MD5RSA = 1 +const NS_ALG_PRIVATE_OID = 254 +const NS_CMPRSFLGS = 192 +const NS_DEFAULTPORT = 53 +const NS_DSA_MAX_BYTES = 405 +const NS_DSA_MIN_SIZE = 213 +const NS_DSA_SIG_SIZE = 41 +const NS_HFIXEDSZ = 12 +const NS_IN6ADDRSZ = 16 +const NS_INADDRSZ = 4 +const NS_INT16SZ = 2 +const NS_INT32SZ = 4 +const NS_INT8SZ = 1 +const NS_KEY_EXTENDED_FLAGS = 4096 +const NS_KEY_NAME_ENTITY = 512 +const NS_KEY_NAME_RESERVED = 768 +const NS_KEY_NAME_TYPE = 768 +const NS_KEY_NAME_USER = 0 +const NS_KEY_NAME_ZONE = 256 +const NS_KEY_NO_AUTH = 32768 +const NS_KEY_NO_CONF = 16384 +const NS_KEY_PROT_ANY = 255 +const NS_KEY_PROT_DNSSEC = 3 +const NS_KEY_PROT_EMAIL = 2 +const NS_KEY_PROT_IPSEC = 4 +const NS_KEY_PROT_TLS = 1 +const NS_KEY_RESERVED10 = 32 +const NS_KEY_RESERVED11 = 16 +const NS_KEY_RESERVED2 = 8192 +const NS_KEY_RESERVED4 = 2048 +const NS_KEY_RESERVED5 = 1024 +const NS_KEY_RESERVED8 = 128 +const NS_KEY_RESERVED9 = 64 +const NS_KEY_RESERVED_BITMASK = 11504 +const NS_KEY_RESERVED_BITMASK2 = 65535 +const NS_KEY_SIGNATORYMASK = 15 +const NS_KEY_TYPEMASK = 49152 +const NS_KEY_TYPE_AUTH_CONF = 0 +const NS_KEY_TYPE_AUTH_ONLY = 16384 +const NS_KEY_TYPE_CONF_ONLY = 32768 +const NS_KEY_TYPE_NO_KEY = 49152 +const NS_MAXCDNAME = 255 +const NS_MAXDNAME = 1025 +const NS_MAXLABEL = 63 +const NS_MAXMSG = 65535 +const NS_MD5RSA_MAX_BASE64 = 10928 +const NS_MD5RSA_MAX_BITS = 4096 +const NS_MD5RSA_MAX_BYTES = 8195 +const NS_MD5RSA_MAX_SIZE = 512 +const NS_MD5RSA_MIN_BITS = 512 +const NS_MD5RSA_MIN_SIZE = 64 +const NS_NOTIFY_OP = 0 +const NS_NXT_BITS = 8 +const NS_NXT_MAX = 127 +const NS_OPT_DNSSEC_OK = 32768 +const NS_OPT_NSID = 3 +const NS_PACKETSZ = 512 +const NS_QFIXEDSZ = 4 +const NS_RRFIXEDSZ = 10 +const NS_SIG_ALG = 2 +const NS_SIG_EXPIR = 8 +const NS_SIG_FOOT = 16 +const NS_SIG_LABELS = 3 +const NS_SIG_OTTL = 4 +const NS_SIG_SIGNED = 12 +const NS_SIG_SIGNER = 18 +const NS_SIG_TYPE = 0 +const NS_TSIG_ALG_HMAC_MD5 = "HMAC-MD5.SIG-ALG.REG.INT" +const NS_TSIG_ERROR_FORMERR = -12 +const NS_TSIG_ERROR_NO_SPACE = -11 +const NS_TSIG_ERROR_NO_TSIG = -10 +const NS_TSIG_FUDGE = 300 +const NS_TSIG_TCP_COUNT = 100 +const NS_UPDATE_OP = 0 +const NXDOMAIN = 0 +const NXRRSET = 0 +const PACKETSZ = 512 +const PRIX16 = "X" +const PRIX32 = "X" +const PRIX8 = "X" +const PRIXFAST16 = "X" +const PRIXFAST32 = "X" +const PRIXFAST8 = "X" +const PRIXLEAST16 = "X" +const PRIXLEAST32 = "X" +const PRIXLEAST8 = "X" +const PRId16 = "d" +const PRId32 = "d" +const PRId8 = "d" +const PRIdFAST16 = "d" +const PRIdFAST32 = "d" +const PRIdFAST8 = "d" +const PRIdLEAST16 = "d" +const PRIdLEAST32 = "d" +const PRIdLEAST8 = "d" +const PRIi16 = "i" +const PRIi32 = "i" +const PRIi8 = "i" +const PRIiFAST16 = "i" +const PRIiFAST32 = "i" +const PRIiFAST8 = "i" +const PRIiLEAST16 = "i" +const PRIiLEAST32 = "i" +const PRIiLEAST8 = "i" +const PRIo16 = "o" +const PRIo32 = "o" +const PRIo8 = "o" +const PRIoFAST16 = "o" +const PRIoFAST32 = "o" +const PRIoFAST8 = "o" +const PRIoLEAST16 = "o" +const PRIoLEAST32 = "o" +const PRIoLEAST8 = "o" +const PRIu16 = "u" +const PRIu32 = "u" +const PRIu8 = "u" +const PRIuFAST16 = "u" +const PRIuFAST32 = "u" +const PRIuFAST8 = "u" +const PRIuLEAST16 = "u" +const PRIuLEAST32 = "u" +const PRIuLEAST8 = "u" +const PRIx16 = "x" +const PRIx32 = "x" +const PRIx8 = "x" +const PRIxFAST16 = "x" +const PRIxFAST32 = "x" +const PRIxFAST8 = "x" +const PRIxLEAST16 = "x" +const PRIxLEAST32 = "x" +const PRIxLEAST8 = "x" +const PUTLONG = 0 +const PUTSHORT = 0 +const QFIXEDSZ = 4 +const QUERY = 0 +const REFUSED = 0 +const RES_AAONLY = 4 +const RES_BLAST = 131072 +const RES_DEBUG = 2 +const RES_DEFAULT = 524992 +const RES_DEFNAMES = 128 +const RES_DFLRETRY = 2 +const RES_DNSRCH = 512 +const RES_EXHAUSTIVE = 1 +const RES_F_CONN = 2 +const RES_F_EDNS0ERR = 4 +const RES_F_VC = 1 +const RES_IGNTC = 32 +const RES_INIT = 1 +const RES_INSECURE1 = 1024 +const RES_INSECURE2 = 2048 +const RES_KEEPTSIG = 65536 +const RES_MAXNDOTS = 15 +const RES_MAXRETRANS = 30 +const RES_MAXRETRY = 5 +const RES_MAXTIME = 65535 +const RES_NOALIASES = 4096 +const RES_NOCHECKNAME = 32768 +const RES_NOIP6DOTINT = 524288 +const RES_PRF_ADD = 128 +const RES_PRF_ANS = 32 +const RES_PRF_AUTH = 64 +const RES_PRF_CLASS = 4 +const RES_PRF_CMD = 8 +const RES_PRF_HEAD1 = 256 +const RES_PRF_HEAD2 = 512 +const RES_PRF_HEADX = 2048 +const RES_PRF_INIT = 16384 +const RES_PRF_QUERY = 4096 +const RES_PRF_QUES = 16 +const RES_PRF_REPLY = 8192 +const RES_PRF_STATS = 1 +const RES_PRF_TTLID = 1024 +const RES_PRF_UPDATE = 2 +const RES_PRIMARY = 16 +const RES_RECURSE = 64 +const RES_ROTATE = 16384 +const RES_SNGLKUP = 2097152 +const RES_SNGLKUPREOP = 4194304 +const RES_STAYOPEN = 256 +const RES_TIMEOUT = 5 +const RES_USEBSTRING = 262144 +const RES_USEVC = 8 +const RES_USE_DNSSEC = 8388608 +const RES_USE_EDNS0 = 1048576 +const RES_USE_INET6 = 8192 +const RRFIXEDSZ = 10 +const SCNd16 = "hd" +const SCNd32 = "d" +const SCNd8 = "hhd" +const SCNdFAST16 = "d" +const SCNdFAST32 = "d" +const SCNdFAST8 = "hhd" +const SCNdLEAST16 = "hd" +const SCNdLEAST32 = "d" +const SCNdLEAST8 = "hhd" +const SCNi16 = "hi" +const SCNi32 = "i" +const SCNi8 = "hhi" +const SCNiFAST16 = "i" +const SCNiFAST32 = "i" +const SCNiFAST8 = "hhi" +const SCNiLEAST16 = "hi" +const SCNiLEAST32 = "i" +const SCNiLEAST8 = "hhi" +const SCNo16 = "ho" +const SCNo32 = "o" +const SCNo8 = "hho" +const SCNoFAST16 = "o" +const SCNoFAST32 = "o" +const SCNoFAST8 = "hho" +const SCNoLEAST16 = "ho" +const SCNoLEAST32 = "o" +const SCNoLEAST8 = "hho" +const SCNu16 = "hu" +const SCNu32 = "u" +const SCNu8 = "hhu" +const SCNuFAST16 = "u" +const SCNuFAST32 = "u" +const SCNuFAST8 = "hhu" +const SCNuLEAST16 = "hu" +const SCNuLEAST32 = "u" +const SCNuLEAST8 = "hhu" +const SCNx16 = "hx" +const SCNx32 = "x" +const SCNx8 = "hhx" +const SCNxFAST16 = "x" +const SCNxFAST32 = "x" +const SCNxFAST8 = "hhx" +const SCNxLEAST16 = "hx" +const SCNxLEAST32 = "x" +const SCNxLEAST8 = "hhx" +const SERVFAIL = 0 +const STATUS = 0 +const S_ADDT = 0 +const S_PREREQ = 0 +const S_UPDATE = 0 +const S_ZONE = 0 +const T_A = 0 +const T_A6 = 0 +const T_AAAA = 0 +const T_AFSDB = 0 +const T_ANY = 0 +const T_ATMA = 0 +const T_AVC = 0 +const T_AXFR = 0 +const T_CAA = 0 +const T_CDNSKEY = 0 +const T_CDS = 0 +const T_CNAME = 0 +const T_CSYNC = 0 +const T_DHCID = 0 +const T_DLV = 0 +const T_DNAME = 0 +const T_DNSKEY = 0 +const T_DS = 0 +const T_EID = 0 +const T_EUI48 = 0 +const T_EUI64 = 0 +const T_GID = 0 +const T_GPOS = 0 +const T_HINFO = 0 +const T_HIP = 0 +const T_IPSECKEY = 0 +const T_ISDN = 0 +const T_IXFR = 0 +const T_KEY = 0 +const T_L32 = 0 +const T_L64 = 0 +const T_LOC = 0 +const T_LP = 0 +const T_MAILA = 0 +const T_MAILB = 0 +const T_MB = 0 +const T_MD = 0 +const T_MF = 0 +const T_MG = 0 +const T_MINFO = 0 +const T_MR = 0 +const T_MX = 0 +const T_NAPTR = 0 +const T_NID = 0 +const T_NIMLOC = 0 +const T_NINFO = 0 +const T_NS = 0 +const T_NSAP = 0 +const T_NSAP_PTR = 0 +const T_NSEC = 0 +const T_NSEC3 = 0 +const T_NSEC3PARAM = 0 +const T_NULL = 0 +const T_NXT = 0 +const T_OPENPGPKEY = 0 +const T_PTR = 0 +const T_PX = 0 +const T_RKEY = 0 +const T_RP = 0 +const T_RRSIG = 0 +const T_RT = 0 +const T_SIG = 0 +const T_SMIMEA = 0 +const T_SOA = 0 +const T_SPF = 0 +const T_SRV = 0 +const T_SSHFP = 0 +const T_TA = 0 +const T_TALINK = 0 +const T_TKEY = 0 +const T_TLSA = 0 +const T_TSIG = 0 +const T_TXT = 0 +const T_UID = 0 +const T_UINFO = 0 +const T_UNSPEC = 0 +const T_URI = 0 +const T_WKS = 0 +const T_X25 = 0 +const YXDOMAIN = 0 +const YXRRSET = 0 +const _PATH_RESCONF = "/etc/resolv.conf" +const __BIND = 19950621 +const __NAMESER = 19991006 +const __PRI64 = "l" +const __PRIPTR = "l" +const __RES = 19960801 +const __UAPI_DEF_IN6_ADDR = 0 +const __UAPI_DEF_IN6_ADDR_ALT = 0 +const __UAPI_DEF_IN6_PKTINFO = 0 +const __UAPI_DEF_IN_ADDR = 0 +const __UAPI_DEF_IN_CLASS = 0 +const __UAPI_DEF_IN_IPPROTO = 0 +const __UAPI_DEF_IN_PKTINFO = 0 +const __UAPI_DEF_IP6_MTUINFO = 0 +const __UAPI_DEF_IPPROTO_V6 = 0 +const __UAPI_DEF_IPV6_MREQ = 0 +const __UAPI_DEF_IPV6_OPTIONS = 0 +const __UAPI_DEF_IP_MREQ = 0 +const __UAPI_DEF_SOCKADDR_IN = 0 +const __UAPI_DEF_SOCKADDR_IN6 = 0 +const _res = 0 + +type Tns_sect = int32 + +type ___ns_sect = int32 + +const _ns_s_qd = 0 +const _ns_s_zn = 0 +const _ns_s_an = 1 +const _ns_s_pr = 1 +const _ns_s_ns = 2 +const _ns_s_ud = 2 +const _ns_s_ar = 3 +const _ns_s_max = 4 + +type Tns_msg = struct { + F_msg uintptr + F_eom uintptr + F_id Tuint16_t + F_flags Tuint16_t + F_counts [4]Tuint16_t + F_sections [4]uintptr + F_sect Tns_sect + F_rrnum int32 + F_msg_ptr uintptr +} + +type t__ns_msg = Tns_msg + +type T_ns_flagdata = struct { + Fmask int32 + Fshift int32 +} + +type Tns_rr = struct { + Fname [1025]int8 + Ftype1 Tuint16_t + Frr_class Tuint16_t + Fttl Tuint32_t + Frdlength Tuint16_t + Frdata uintptr +} + +type t__ns_rr = Tns_rr + +type Tns_flag = int32 + +type ___ns_flag = int32 + +const _ns_f_qr = 0 +const _ns_f_opcode = 1 +const _ns_f_aa = 2 +const _ns_f_tc = 3 +const _ns_f_rd = 4 +const _ns_f_ra = 5 +const _ns_f_z = 6 +const _ns_f_ad = 7 +const _ns_f_cd = 8 +const _ns_f_rcode = 9 +const _ns_f_max = 10 + +type Tns_opcode = int32 + +type ___ns_opcode = int32 + +const _ns_o_query = 0 +const _ns_o_iquery = 1 +const _ns_o_status = 2 +const _ns_o_notify = 4 +const _ns_o_update = 5 +const _ns_o_max = 6 + +type Tns_rcode = int32 + +type ___ns_rcode = int32 + +const _ns_r_noerror = 0 +const _ns_r_formerr = 1 +const _ns_r_servfail = 2 +const _ns_r_nxdomain = 3 +const _ns_r_notimpl = 4 +const _ns_r_refused = 5 +const _ns_r_yxdomain = 6 +const _ns_r_yxrrset = 7 +const _ns_r_nxrrset = 8 +const _ns_r_notauth = 9 +const _ns_r_notzone = 10 +const _ns_r_max = 11 +const _ns_r_badvers = 16 +const _ns_r_badsig = 16 +const _ns_r_badkey = 17 +const _ns_r_badtime = 18 + +type Tns_update_operation = int32 + +type ___ns_update_operation = int32 + +const _ns_uop_delete = 0 +const _ns_uop_add = 1 +const _ns_uop_max = 2 + +type Tns_tsig_key = struct { + Fname [1025]int8 + Falg [1025]int8 + Fdata uintptr + Flen1 int32 +} + +type Tns_tcp_tsig_state = struct { + Fcounter int32 + Fkey uintptr + Fctx uintptr + Fsig [512]uint8 + Fsiglen int32 +} + +type Tns_type = int32 + +type ___ns_type = int32 + +const _ns_t_invalid = 0 +const _ns_t_a = 1 +const _ns_t_ns = 2 +const _ns_t_md = 3 +const _ns_t_mf = 4 +const _ns_t_cname = 5 +const _ns_t_soa = 6 +const _ns_t_mb = 7 +const _ns_t_mg = 8 +const _ns_t_mr = 9 +const _ns_t_null = 10 +const _ns_t_wks = 11 +const _ns_t_ptr = 12 +const _ns_t_hinfo = 13 +const _ns_t_minfo = 14 +const _ns_t_mx = 15 +const _ns_t_txt = 16 +const _ns_t_rp = 17 +const _ns_t_afsdb = 18 +const _ns_t_x25 = 19 +const _ns_t_isdn = 20 +const _ns_t_rt = 21 +const _ns_t_nsap = 22 +const _ns_t_nsap_ptr = 23 +const _ns_t_sig = 24 +const _ns_t_key = 25 +const _ns_t_px = 26 +const _ns_t_gpos = 27 +const _ns_t_aaaa = 28 +const _ns_t_loc = 29 +const _ns_t_nxt = 30 +const _ns_t_eid = 31 +const _ns_t_nimloc = 32 +const _ns_t_srv = 33 +const _ns_t_atma = 34 +const _ns_t_naptr = 35 +const _ns_t_kx = 36 +const _ns_t_cert = 37 +const _ns_t_a6 = 38 +const _ns_t_dname = 39 +const _ns_t_sink = 40 +const _ns_t_opt = 41 +const _ns_t_apl = 42 +const _ns_t_ds = 43 +const _ns_t_sshfp = 44 +const _ns_t_ipseckey = 45 +const _ns_t_rrsig = 46 +const _ns_t_nsec = 47 +const _ns_t_dnskey = 48 +const _ns_t_dhcid = 49 +const _ns_t_nsec3 = 50 +const _ns_t_nsec3param = 51 +const _ns_t_tlsa = 52 +const _ns_t_smimea = 53 +const _ns_t_hip = 55 +const _ns_t_ninfo = 56 +const _ns_t_rkey = 57 +const _ns_t_talink = 58 +const _ns_t_cds = 59 +const _ns_t_cdnskey = 60 +const _ns_t_openpgpkey = 61 +const _ns_t_csync = 62 +const _ns_t_spf = 99 +const _ns_t_uinfo = 100 +const _ns_t_uid = 101 +const _ns_t_gid = 102 +const _ns_t_unspec = 103 +const _ns_t_nid = 104 +const _ns_t_l32 = 105 +const _ns_t_l64 = 106 +const _ns_t_lp = 107 +const _ns_t_eui48 = 108 +const _ns_t_eui64 = 109 +const _ns_t_tkey = 249 +const _ns_t_tsig = 250 +const _ns_t_ixfr = 251 +const _ns_t_axfr = 252 +const _ns_t_mailb = 253 +const _ns_t_maila = 254 +const _ns_t_any = 255 +const _ns_t_zxfr = 256 +const _ns_t_uri = 256 +const _ns_t_caa = 257 +const _ns_t_avc = 258 +const _ns_t_ta = 32768 +const _ns_t_dlv = 32769 +const _ns_t_max = 65536 + +type Tns_class = int32 + +type ___ns_class = int32 + +const _ns_c_invalid = 0 +const _ns_c_in = 1 +const _ns_c_2 = 2 +const _ns_c_chaos = 3 +const _ns_c_hs = 4 +const _ns_c_none = 254 +const _ns_c_any = 255 +const _ns_c_max = 65536 + +type Tns_key_types = int32 + +type ___ns_key_types = int32 + +const _ns_kt_rsa = 1 +const _ns_kt_dh = 2 +const _ns_kt_dsa = 3 +const _ns_kt_private = 254 + +type Tns_cert_types = int32 + +type ___ns_cert_types = int32 + +const _cert_t_pkix = 1 +const _cert_t_spki = 2 +const _cert_t_pgp = 3 +const _cert_t_url = 253 +const _cert_t_oid = 254 + +type THEADER = struct { + F__ccgo0 uint32 + F__ccgo4 uint32 + F__ccgo8 uint32 +} + +type Timaxdiv_t = struct { + Fquot Tintmax_t + Frem Tintmax_t +} + +type Tin_port_t = uint16 + +type Tin_addr_t = uint32 + +type Tin_addr = struct { + Fs_addr Tin_addr_t +} + +type Tsockaddr_in = struct { + Fsin_family Tsa_family_t + Fsin_port Tin_port_t + Fsin_addr Tin_addr + Fsin_zero [8]Tuint8_t +} + +type Tin6_addr = struct { + F__in6_union struct { + F__s6_addr16 [0][8]Tuint16_t + F__s6_addr32 [0][4]Tuint32_t + F__s6_addr [16]Tuint8_t + } +} + +type Tsockaddr_in6 = struct { + Fsin6_family Tsa_family_t + Fsin6_port Tin_port_t + Fsin6_flowinfo Tuint32_t + Fsin6_addr Tin6_addr + Fsin6_scope_id Tuint32_t +} + +type Tipv6_mreq = struct { + Fipv6mr_multiaddr Tin6_addr + Fipv6mr_interface uint32 +} + +type Tip_opts = struct { + Fip_dst Tin_addr + Fip_opts [40]int8 +} + +type Tres_state = uintptr + +type t__res_state = struct { + Fretrans int32 + Fretry int32 + Foptions uint64 + Fnscount int32 + Fnsaddr_list [3]Tsockaddr_in + Fid uint16 + Fdnsrch [7]uintptr + Fdefdname [256]int8 + Fpfcode uint64 + F__ccgo392 uint32 + Fsort_list [10]struct { + Faddr Tin_addr + Fmask Tuint32_t + } + Fqhook uintptr + Frhook uintptr + Fres_h_errno int32 + F_vcsock int32 + F_flags uint32 + F_u struct { + F_ext [0]struct { + Fnscount Tuint16_t + Fnsmap [3]Tuint16_t + Fnssocks [3]int32 + Fnscount6 Tuint16_t + Fnsinit Tuint16_t + Fnsaddrs [3]uintptr + F_initstamp [2]uint32 + } + Fpad [52]int8 + F__ccgo_pad2 [4]byte + } +} + +type Tres_sym = struct { + Fnumber int32 + Fname uintptr + Fhumanname uintptr +} + +/* RFC 1035 message compression */ + +// C documentation +// +// /* label start offsets of a compressed domain name s */ +func _getoffs(tls *TLS, offs uintptr, base uintptr, s uintptr) (r int32) { + var i, v2 int32 + _, _ = i, v2 + i = 0 + for { + for Int32FromUint8(**(**uint8)(__ccgo_up(s)))&int32(0xc0) != 0 { + if Int32FromUint8(**(**uint8)(__ccgo_up(s)))&int32(0xc0) != int32(0xc0) { + return 0 + } + s = base + uintptr(Int32FromUint8(**(**uint8)(__ccgo_up(s)))&Int32FromInt32(0x3f)<= int64(0x4000) { + return 0 + } + v2 = i + i = i + 1 + **(**int16)(__ccgo_up(offs + uintptr(v2)*2)) = int16(int64(s) - int64(base)) + s = s + uintptr(Int32FromUint8(**(**uint8)(__ccgo_up(s)))+int32(1)) + goto _1 + _1: + } + return r +} + +// C documentation +// +// /* label lengths of an ascii domain name s */ +func _getlens(tls *TLS, lens uintptr, s uintptr, l int32) (r int32) { + var i, j, k, v3 int32 + _, _, _, _ = i, j, k, v3 + i = 0 + j = 0 + k = 0 + for { + for { + if !(j < l && int32(**(**int8)(__ccgo_up(s + uintptr(j)))) != int32('.')) { + break + } + goto _2 + _2: + ; + j = j + 1 + } + if Uint32FromInt32(j-k)-uint32(1) > uint32(62) { + return 0 + } + v3 = i + i = i + 1 + **(**uint8)(__ccgo_up(lens + uintptr(v3))) = Uint8FromInt32(j - k) + if j == l { + return i + } + j = j + 1 + v3 = j + k = v3 + goto _1 + _1: + } + return r +} + +// C documentation +// +// /* longest suffix match of an ascii domain with a compressed domain name dn */ +func _match(tls *TLS, offset uintptr, base uintptr, dn uintptr, end uintptr, lens uintptr, nlen int32) (r int32) { + bp := tls.Alloc(256) + defer tls.Free(256) + var l, m, noff, o, v2 int32 + var _ /* offs at bp+0 */ [128]int16 + _, _, _, _, _ = l, m, noff, o, v2 + m = 0 + noff = _getoffs(tls, bp, base, dn) + if !(noff != 0) { + return 0 + } + for { + nlen = nlen - 1 + v2 = nlen + l = Int32FromUint8(**(**uint8)(__ccgo_up(lens + uintptr(v2)))) + noff = noff - 1 + v2 = noff + o = int32((**(**[128]int16)(__ccgo_up(bp)))[v2]) + end = end - uintptr(l) + if l != Int32FromUint8(**(**uint8)(__ccgo_up(base + uintptr(o)))) || Xmemcmp(tls, base+uintptr(o)+uintptr(1), end, Uint64FromInt32(l)) != 0 { + return m + } + **(**int32)(__ccgo_up(offset)) = o + m = m + l + if nlen != 0 { + m = m + 1 + } + if !(nlen != 0) || !(noff != 0) { + return m + } + end = end - 1 + goto _1 + _1: + } + return r +} + +func Xdn_comp(tls *TLS, src uintptr, dst uintptr, space int32, dnptrs uintptr, lastdnptr uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v src=%v dst=%v space=%v dnptrs=%v lastdnptr=%v, (%v:)", tls, src, dst, space, dnptrs, lastdnptr, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(144) + defer tls.Free(144) + var bestlen, bestoff, i, j, m, n, v3 int32 + var end, p, v8 uintptr + var l Tsize_t + var _ /* lens at bp+4 */ [127]uint8 + var _ /* offset at bp+0 */ int32 + _, _, _, _, _, _, _, _, _, _, _ = bestlen, bestoff, end, i, j, l, m, n, p, v3, v8 + m = 0 + bestlen = 0 + l = Xstrnlen(tls, src, uint64(255)) + if l != 0 && int32(**(**int8)(__ccgo_up(src + uintptr(l-uint64(1))))) == int32('.') { + l = l - 1 + } + if l > uint64(253) || space <= 0 { + return -int32(1) + } + if !(l != 0) { + **(**uint8)(__ccgo_up(dst)) = uint8(0) + return int32(1) + } + end = src + uintptr(l) + n = _getlens(tls, bp+4, src, Int32FromUint64(l)) + if !(n != 0) { + return -int32(1) + } + p = dnptrs + if p != 0 && **(**uintptr)(__ccgo_up(p)) != 0 { + p += 8 + for { + if !(**(**uintptr)(__ccgo_up(p)) != 0) { + break + } + m = _match(tls, bp, **(**uintptr)(__ccgo_up(dnptrs)), **(**uintptr)(__ccgo_up(p)), end, bp+4, n) + if m > bestlen { + bestlen = m + bestoff = **(**int32)(__ccgo_up(bp)) + if Uint64FromInt32(m) == l { + break + } + } + goto _1 + _1: + ; + p += 8 + } + } + /* encode unmatched part */ + if Uint64FromInt32(space) < l-Uint64FromInt32(bestlen)+uint64(2)+BoolUint64(Uint64FromInt32(bestlen-Int32FromInt32(1)) < l-Uint64FromInt32(1)) { + return -int32(1) + } + Xmemcpy(tls, dst+uintptr(1), src, l-Uint64FromInt32(bestlen)) + v3 = Int32FromInt32(0) + j = v3 + i = v3 + for { + if !(Uint64FromInt32(i) < l-Uint64FromInt32(bestlen)) { + break + } + **(**uint8)(__ccgo_up(dst + uintptr(i))) = (**(**[127]uint8)(__ccgo_up(bp + 4)))[j] + goto _2 + _2: + ; + v3 = j + j = j + 1 + i = i + (Int32FromUint8((**(**[127]uint8)(__ccgo_up(bp + 4)))[v3]) + int32(1)) + } + /* add tail */ + if bestlen != 0 { + v3 = i + i = i + 1 + **(**uint8)(__ccgo_up(dst + uintptr(v3))) = Uint8FromInt32(int32(0xc0) | bestoff>>int32(8)) + v3 = i + i = i + 1 + **(**uint8)(__ccgo_up(dst + uintptr(v3))) = Uint8FromInt32(bestoff) + } else { + v3 = i + i = i + 1 + **(**uint8)(__ccgo_up(dst + uintptr(v3))) = uint8(0) + } + /* save dst pointer */ + if i > int32(2) && lastdnptr != 0 && dnptrs != 0 && **(**uintptr)(__ccgo_up(dnptrs)) != 0 { + for **(**uintptr)(__ccgo_up(p)) != 0 { + p += 8 + } + if p+uintptr(1)*8 < lastdnptr { + v8 = p + p += 8 + **(**uintptr)(__ccgo_up(v8)) = dst + **(**uintptr)(__ccgo_up(p)) = uintptr(0) + } + } + return i +} + +func X__dn_expand(tls *TLS, base uintptr, end uintptr, src uintptr, dest uintptr, space int32) (r int32) { + if __ccgo_strace { + trc("tls=%v base=%v end=%v src=%v dest=%v space=%v, (%v:)", tls, base, end, src, dest, space, origin(2)) + defer func() { trc("-> %v", r) }() + } + var dbegin, dend, p, v3, v4 uintptr + var i, j, len1, v1 int32 + _, _, _, _, _, _, _, _, _ = dbegin, dend, i, j, len1, p, v1, v3, v4 + p = src + dbegin = dest + len1 = -int32(1) + if p == end || space <= 0 { + return -int32(1) + } + if space > int32(254) { + v1 = int32(254) + } else { + v1 = space + } + dend = dest + uintptr(v1) + /* detect reference loop using an iteration counter */ + i = 0 + for { + if !(int64(i) < int64(end)-int64(base)) { + break + } + /* loop invariants: p= int64(end)-int64(base) { + return -int32(1) + } + p = base + uintptr(j) + } else { + if **(**uint8)(__ccgo_up(p)) != 0 { + if dest != dbegin { + v3 = dest + dest = dest + 1 + **(**int8)(__ccgo_up(v3)) = int8('.') + } + v3 = p + p = p + 1 + j = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + if int64(j) >= int64(end)-int64(p) || int64(j) >= int64(dend)-int64(dest) { + return -int32(1) + } + for { + v1 = j + j = j - 1 + if !(v1 != 0) { + break + } + v3 = dest + dest = dest + 1 + v4 = p + p = p + 1 + **(**int8)(__ccgo_up(v3)) = Int8FromUint8(**(**uint8)(__ccgo_up(v4))) + } + } else { + **(**int8)(__ccgo_up(dest)) = 0 + if len1 < 0 { + len1 = int32(int64(p+uintptr(1)) - int64(src)) + } + return len1 + } + } + goto _2 + _2: + ; + i = i + int32(2) + } + return -int32(1) +} + +func Xdn_expand(tls *TLS, base uintptr, end uintptr, src uintptr, dest uintptr, space int32) (r int32) { + if __ccgo_strace { + trc("tls=%v base=%v end=%v src=%v dest=%v space=%v, (%v:)", tls, base, end, src, dest, space, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__dn_expand(tls, base, end, src, dest, space) +} + +func Xdn_skipname(tls *TLS, s uintptr, end uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v end=%v, (%v:)", tls, s, end, origin(2)) + defer func() { trc("-> %v", r) }() + } + var p uintptr + _ = p + p = s + for p < end { + if !(**(**uint8)(__ccgo_up(p)) != 0) { + return int32(int64(p) - int64(s) + int64(1)) + } else { + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) >= int32(192) { + if p+uintptr(1) < end { + return int32(int64(p) - int64(s) + int64(2)) + } else { + break + } + } else { + if int64(end)-int64(p) < int64(Int32FromUint8(**(**uint8)(__ccgo_up(p)))+int32(1)) { + break + } else { + p = p + uintptr(Int32FromUint8(**(**uint8)(__ccgo_up(p)))+int32(1)) + } + } + } + } + return -int32(1) +} + +const AI_ADDRCONFIG = 32 +const AI_ALL = 16 +const AI_CANONNAME = 2 +const AI_NUMERICHOST = 4 +const AI_NUMERICSERV = 1024 +const AI_PASSIVE = 1 +const AI_V4MAPPED = 8 +const EAI_AGAIN = -3 +const EAI_BADFLAGS = -1 +const EAI_FAIL = -4 +const EAI_FAMILY = -6 +const EAI_MEMORY = -10 +const EAI_NODATA = -5 +const EAI_NONAME = -2 +const EAI_OVERFLOW = -12 +const EAI_SERVICE = -8 +const EAI_SOCKTYPE = -7 +const EAI_SYSTEM = -11 +const MAXADDRS = 48 +const MAXSERVS = 2 +const NI_DGRAM = 16 +const NI_NAMEREQD = 8 +const NI_NOFQDN = 4 +const NI_NUMERICHOST = 1 +const NI_NUMERICSCOPE = 256 +const NI_NUMERICSERV = 2 + +type Taddrinfo = struct { + Fai_flags int32 + Fai_family int32 + Fai_socktype int32 + Fai_protocol int32 + Fai_addrlen Tsocklen_t + Fai_addr uintptr + Fai_canonname uintptr + Fai_next uintptr +} + +type Tnetent = struct { + Fn_name uintptr + Fn_aliases uintptr + Fn_addrtype int32 + Fn_net Tuint32_t +} + +type Thostent = struct { + Fh_name uintptr + Fh_aliases uintptr + Fh_addrtype int32 + Fh_length int32 + Fh_addr_list uintptr +} + +type Tservent = struct { + Fs_name uintptr + Fs_aliases uintptr + Fs_port int32 + Fs_proto uintptr +} + +type Tprotoent = struct { + Fp_name uintptr + Fp_aliases uintptr + Fp_proto int32 +} + +type Taibuf = struct { + Fai Taddrinfo + Fsa Tsa + Flock [1]int32 + Fslot int16 + Fref int16 +} + +type Taddress = struct { + Ffamily int32 + Fscopeid uint32 + Faddr [16]Tuint8_t + Fsortkey int32 +} + +type Tservice = struct { + Fport Tuint16_t + Fproto uint8 + Fsocktype uint8 +} + +type Tresolvconf = struct { + Fns [3]Taddress + Fnns uint32 + Fattempts uint32 + Fndots uint32 + Ftimeout uint32 +} + +type t__ccgo_fp__X__dns_parse_2 = func(*TLS, uintptr, int32, uintptr, int32, uintptr, int32) int32 + +func X__dns_parse(tls *TLS, r uintptr, rlen int32, __ccgo_fp_callback uintptr, ctx uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v r=%v rlen=%v __ccgo_fp_callback=%v ctx=%v, (%v:)", tls, r, rlen, __ccgo_fp_callback, ctx, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var ancount, len1, qdcount, v1 int32 + var p uintptr + _, _, _, _, _ = ancount, len1, p, qdcount, v1 + if rlen < int32(12) { + return -int32(1) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(r + 3)))&int32(15) != 0 { + return 0 + } + p = r + uintptr(12) + qdcount = Int32FromUint8(**(**uint8)(__ccgo_up(r + 4)))*int32(256) + Int32FromUint8(**(**uint8)(__ccgo_up(r + 5))) + ancount = Int32FromUint8(**(**uint8)(__ccgo_up(r + 6)))*int32(256) + Int32FromUint8(**(**uint8)(__ccgo_up(r + 7))) + for { + v1 = qdcount + qdcount = qdcount - 1 + if !(v1 != 0) { + break + } + for int64(p)-int64(r) < int64(rlen) && uint32(**(**uint8)(__ccgo_up(p)))-uint32(1) < uint32(127) { + p = p + 1 + } + if p > r+uintptr(rlen)-uintptr(6) { + return -int32(1) + } + p = p + uintptr(int32(5)+BoolInt32(!!(**(**uint8)(__ccgo_up(p)) != 0))) + } + for { + v1 = ancount + ancount = ancount - 1 + if !(v1 != 0) { + break + } + for int64(p)-int64(r) < int64(rlen) && uint32(**(**uint8)(__ccgo_up(p)))-uint32(1) < uint32(127) { + p = p + 1 + } + if p > r+uintptr(rlen)-uintptr(12) { + return -int32(1) + } + p = p + uintptr(int32(1)+BoolInt32(!!(**(**uint8)(__ccgo_up(p)) != 0))) + len1 = Int32FromUint8(**(**uint8)(__ccgo_up(p + 8)))*int32(256) + Int32FromUint8(**(**uint8)(__ccgo_up(p + 9))) + if int64(len1+int32(10)) > int64(r+uintptr(rlen))-int64(p) { + return -int32(1) + } + if (*(*func(*TLS, uintptr, int32, uintptr, int32, uintptr, int32) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_callback})))(tls, ctx, Int32FromUint8(**(**uint8)(__ccgo_up(p + 1))), p+uintptr(10), len1, r, rlen) < 0 { + return -int32(1) + } + p = p + uintptr(int32(10)+len1) + } + return 0 +} + +type Tsa = struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte +} + +func Xsethostent(tls *TLS, x int32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + } +} + +func Xgethostent(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(0) +} + +func Xgetnetent(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(0) +} + +func Xendhostent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } +} + +func Xendnetent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + Xendhostent(tls) +} + +func Xsetnetent(tls *TLS, x int32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + } + Xsethostent(tls, x) +} + +const ARPD_FLUSH = 3 +const ARPD_LOOKUP = 2 +const ARPD_UPDATE = 1 +const ARPHRD_6LOWPAN = 825 +const ARPHRD_ADAPT = 264 +const ARPHRD_APPLETLK = 8 +const ARPHRD_ARCNET = 7 +const ARPHRD_ASH = 781 +const ARPHRD_ATM = 19 +const ARPHRD_AX25 = 3 +const ARPHRD_BIF = 775 +const ARPHRD_CAIF = 822 +const ARPHRD_CAN = 280 +const ARPHRD_CHAOS = 5 +const ARPHRD_CISCO = 513 +const ARPHRD_CSLIP = 257 +const ARPHRD_CSLIP6 = 259 +const ARPHRD_DDCMP = 517 +const ARPHRD_DLCI = 15 +const ARPHRD_ECONET = 782 +const ARPHRD_EETHER = 2 +const ARPHRD_ETHER = 1 +const ARPHRD_EUI64 = 27 +const ARPHRD_FCAL = 785 +const ARPHRD_FCFABRIC = 787 +const ARPHRD_FCPL = 786 +const ARPHRD_FCPP = 784 +const ARPHRD_FDDI = 774 +const ARPHRD_FRAD = 770 +const ARPHRD_HDLC = 513 +const ARPHRD_HIPPI = 780 +const ARPHRD_HWX25 = 272 +const ARPHRD_IEEE1394 = 24 +const ARPHRD_IEEE802 = 6 +const ARPHRD_IEEE80211 = 801 +const ARPHRD_IEEE80211_PRISM = 802 +const ARPHRD_IEEE80211_RADIOTAP = 803 +const ARPHRD_IEEE802154 = 804 +const ARPHRD_IEEE802154_MONITOR = 805 +const ARPHRD_IEEE802_TR = 800 +const ARPHRD_INFINIBAND = 32 +const ARPHRD_IP6GRE = 823 +const ARPHRD_IPDDP = 777 +const ARPHRD_IPGRE = 778 +const ARPHRD_IRDA = 783 +const ARPHRD_LAPB = 516 +const ARPHRD_LOCALTLK = 773 +const ARPHRD_LOOPBACK = 772 +const ARPHRD_METRICOM = 23 +const ARPHRD_NETLINK = 824 +const ARPHRD_NETROM = 0 +const ARPHRD_NONE = 65534 +const ARPHRD_PHONET = 820 +const ARPHRD_PHONET_PIPE = 821 +const ARPHRD_PIMREG = 779 +const ARPHRD_PPP = 512 +const ARPHRD_PRONET = 4 +const ARPHRD_RAWHDLC = 518 +const ARPHRD_RAWIP = 519 +const ARPHRD_ROSE = 270 +const ARPHRD_RSRVD = 260 +const ARPHRD_SIT = 776 +const ARPHRD_SKIP = 771 +const ARPHRD_SLIP = 256 +const ARPHRD_SLIP6 = 258 +const ARPHRD_TUNNEL = 768 +const ARPHRD_TUNNEL6 = 769 +const ARPHRD_VOID = 65535 +const ARPHRD_VSOCKMON = 826 +const ARPHRD_X25 = 271 +const ARPOP_InREPLY = 9 +const ARPOP_InREQUEST = 8 +const ARPOP_NAK = 10 +const ARPOP_REPLY = 2 +const ARPOP_REQUEST = 1 +const ARPOP_RREPLY = 4 +const ARPOP_RREQUEST = 3 +const ATF_COM = 2 +const ATF_DONTPUB = 64 +const ATF_MAGIC = 128 +const ATF_NETMASK = 32 +const ATF_PERM = 4 +const ATF_PUBL = 8 +const ATF_USETRAILERS = 16 +const ETHERMIN = 46 +const ETHERMTU = 1500 +const ETHERTYPE_AARP = 33011 +const ETHERTYPE_ARP = 2054 +const ETHERTYPE_AT = 32923 +const ETHERTYPE_IP = 2048 +const ETHERTYPE_IPV6 = 34525 +const ETHERTYPE_IPX = 33079 +const ETHERTYPE_LOOPBACK = 36864 +const ETHERTYPE_NTRAILER = 16 +const ETHERTYPE_PUP = 512 +const ETHERTYPE_REVARP = 32821 +const ETHERTYPE_SPRITE = 1280 +const ETHERTYPE_TRAIL = 4096 +const ETHERTYPE_VLAN = 33024 +const ETHER_ADDR_LEN = 6 +const ETHER_CRC_LEN = 4 +const ETHER_HDR_LEN = 14 +const ETHER_MAX_LEN = 1518 +const ETHER_MIN_LEN = 64 +const ETHER_TYPE_LEN = 2 +const ETH_ALEN = 6 +const ETH_DATA_LEN = 1500 +const ETH_FCS_LEN = 4 +const ETH_FRAME_LEN = 1514 +const ETH_HLEN = 14 +const ETH_MAX_MTU = 65535 +const ETH_MIN_MTU = 68 +const ETH_P_1588 = 35063 +const ETH_P_8021AD = 34984 +const ETH_P_8021AH = 35047 +const ETH_P_8021Q = 33024 +const ETH_P_80221 = 35095 +const ETH_P_802_2 = 4 +const ETH_P_802_3 = 1 +const ETH_P_802_3_MIN = 1536 +const ETH_P_802_EX1 = 34997 +const ETH_P_AARP = 33011 +const ETH_P_AF_IUCV = 64507 +const ETH_P_ALL = 3 +const ETH_P_AOE = 34978 +const ETH_P_ARCNET = 26 +const ETH_P_ARP = 2054 +const ETH_P_ATALK = 32923 +const ETH_P_ATMFATE = 34948 +const ETH_P_ATMMPOA = 34892 +const ETH_P_AX25 = 2 +const ETH_P_BATMAN = 17157 +const ETH_P_BPQ = 2303 +const ETH_P_CAIF = 247 +const ETH_P_CAN = 12 +const ETH_P_CANFD = 13 +const ETH_P_CFM = 35074 +const ETH_P_CONTROL = 22 +const ETH_P_CUST = 24582 +const ETH_P_DDCMP = 6 +const ETH_P_DEC = 24576 +const ETH_P_DIAG = 24581 +const ETH_P_DNA_DL = 24577 +const ETH_P_DNA_RC = 24578 +const ETH_P_DNA_RT = 24579 +const ETH_P_DSA = 27 +const ETH_P_DSA_8021Q = 56027 +const ETH_P_ECONET = 24 +const ETH_P_EDSA = 56026 +const ETH_P_ERSPAN = 35006 +const ETH_P_ERSPAN2 = 8939 +const ETH_P_FCOE = 35078 +const ETH_P_FIP = 35092 +const ETH_P_HDLC = 25 +const ETH_P_HSR = 35119 +const ETH_P_IBOE = 35093 +const ETH_P_IEEE802154 = 246 +const ETH_P_IEEEPUP = 2560 +const ETH_P_IEEEPUPAT = 2561 +const ETH_P_IFE = 60734 +const ETH_P_IP = 2048 +const ETH_P_IPV6 = 34525 +const ETH_P_IPX = 33079 +const ETH_P_IRDA = 23 +const ETH_P_LAT = 24580 +const ETH_P_LINK_CTL = 34924 +const ETH_P_LLDP = 35020 +const ETH_P_LOCALTALK = 9 +const ETH_P_LOOP = 96 +const ETH_P_LOOPBACK = 36864 +const ETH_P_MACSEC = 35045 +const ETH_P_MAP = 249 +const ETH_P_MOBITEX = 21 +const ETH_P_MPLS_MC = 34888 +const ETH_P_MPLS_UC = 34887 +const ETH_P_MRP = 35043 +const ETH_P_MVRP = 35061 +const ETH_P_NCSI = 35064 +const ETH_P_NSH = 35151 +const ETH_P_PAE = 34958 +const ETH_P_PAUSE = 34824 +const ETH_P_PHONET = 245 +const ETH_P_PPPTALK = 16 +const ETH_P_PPP_DISC = 34915 +const ETH_P_PPP_MP = 8 +const ETH_P_PPP_SES = 34916 +const ETH_P_PREAUTH = 35015 +const ETH_P_PRP = 35067 +const ETH_P_PUP = 512 +const ETH_P_PUPAT = 513 +const ETH_P_QINQ1 = 37120 +const ETH_P_QINQ2 = 37376 +const ETH_P_QINQ3 = 37632 +const ETH_P_RARP = 32821 +const ETH_P_SCA = 24583 +const ETH_P_SLOW = 34825 +const ETH_P_SNAP = 5 +const ETH_P_TDLS = 35085 +const ETH_P_TEB = 25944 +const ETH_P_TIPC = 35018 +const ETH_P_TRAILER = 28 +const ETH_P_TR_802_2 = 17 +const ETH_P_TSN = 8944 +const ETH_P_WAN_PPP = 7 +const ETH_P_WCCP = 34878 +const ETH_P_X25 = 2053 +const ETH_P_XDSA = 248 +const ETH_TLEN = 2 +const ETH_ZLEN = 60 +const MAX_ADDR_LEN = 7 +const __UAPI_DEF_ETHHDR = 0 + +type Tethhdr = struct { + Fh_dest [6]Tuint8_t + Fh_source [6]Tuint8_t + Fh_proto Tuint16_t +} + +type Tether_addr = struct { + Fether_addr_octet [6]Tuint8_t +} + +type Tether_header = struct { + Fether_dhost [6]Tuint8_t + Fether_shost [6]Tuint8_t + Fether_type Tuint16_t +} + +type Tarphdr = struct { + Far_hrd Tuint16_t + Far_pro Tuint16_t + Far_hln Tuint8_t + Far_pln Tuint8_t + Far_op Tuint16_t +} + +type Tarpreq = struct { + Farp_pa Tsockaddr + Farp_ha Tsockaddr + Farp_flags int32 + Farp_netmask Tsockaddr + Farp_dev [16]int8 +} + +type Tarpreq_old = struct { + Farp_pa Tsockaddr + Farp_ha Tsockaddr + Farp_flags int32 + Farp_netmask Tsockaddr +} + +type Tarpd_request = struct { + Freq uint16 + Fip Tuint32_t + Fdev uint64 + Fstamp uint64 + Fupdated uint64 + Fha [7]uint8 +} + +type Tether_arp = struct { + Fea_hdr Tarphdr + Farp_sha [6]Tuint8_t + Farp_spa [4]Tuint8_t + Farp_tha [6]Tuint8_t + Farp_tpa [4]Tuint8_t +} + +func Xether_aton_r(tls *TLS, x uintptr, p_a uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v x=%v p_a=%v, (%v:)", tls, x, p_a, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ii int32 + var n uint64 + var _ /* a at bp+0 */ Tether_addr + var _ /* y at bp+8 */ uintptr + _, _ = ii, n + ii = 0 + for { + if !(ii < int32(6)) { + break + } + if ii != 0 { + if int32(**(**int8)(__ccgo_up(x))) != int32(':') { + return uintptr(0) + } else { + x = x + 1 + } + } + n = Xstrtoul(tls, x, bp+8, int32(16)) + x = **(**uintptr)(__ccgo_up(bp + 8)) + if n > uint64(0xFF) { + return uintptr(0) + } /* bad byte */ + **(**Tuint8_t)(__ccgo_up(bp + uintptr(ii))) = uint8(n) + goto _1 + _1: + ; + ii = ii + 1 + } + if int32(**(**int8)(__ccgo_up(x))) != 0 { + return uintptr(0) + } /* bad format */ + **(**Tether_addr)(__ccgo_up(p_a)) = **(**Tether_addr)(__ccgo_up(bp)) + return p_a +} + +func Xether_aton(tls *TLS, x uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xether_aton_r(tls, x, uintptr(unsafe.Pointer(&_a))) +} + +var _a Tether_addr + +func Xether_ntoa_r(tls *TLS, p_a uintptr, x uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v p_a=%v x=%v, (%v:)", tls, p_a, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ii int32 + var y, v2 uintptr + _, _, _ = ii, y, v2 + y = x + ii = 0 + for { + if !(ii < int32(6)) { + break + } + if ii == 0 { + v2 = __ccgo_ts + 961 + } else { + v2 = __ccgo_ts + 966 + } + x = x + uintptr(Xsprintf(tls, x, v2, VaList(bp+8, Int32FromUint8(**(**Tuint8_t)(__ccgo_up(p_a + uintptr(ii))))))) + goto _1 + _1: + ; + ii = ii + 1 + } + return y +} + +func Xether_ntoa(tls *TLS, p_a uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v p_a=%v, (%v:)", tls, p_a, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xether_ntoa_r(tls, p_a, uintptr(unsafe.Pointer(&_x))) +} + +var _x [18]int8 + +func Xether_line(tls *TLS, l uintptr, e uintptr, hostname uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v l=%v e=%v hostname=%v, (%v:)", tls, l, e, hostname, origin(2)) + defer func() { trc("-> %v", r) }() + } + return -int32(1) +} + +func Xether_ntohost(tls *TLS, hostname uintptr, e uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v hostname=%v e=%v, (%v:)", tls, hostname, e, origin(2)) + defer func() { trc("-> %v", r) }() + } + return -int32(1) +} + +func Xether_hostton(tls *TLS, hostname uintptr, e uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v hostname=%v e=%v, (%v:)", tls, hostname, e, origin(2)) + defer func() { trc("-> %v", r) }() + } + return -int32(1) +} + +func Xfreeaddrinfo(tls *TLS, p uintptr) { + if __ccgo_strace { + trc("tls=%v p=%v, (%v:)", tls, p, origin(2)) + } + var b, v2 uintptr + var cnt Tsize_t + _, _, _ = b, cnt, v2 + cnt = uint64(1) + for { + if !((*Taddrinfo)(unsafe.Pointer(p)).Fai_next != 0) { + break + } + goto _1 + _1: + ; + cnt = cnt + 1 + p = (*Taddrinfo)(unsafe.Pointer(p)).Fai_next + } + b = p - uintptr(uint64(UintptrFromInt32(0))) + b = b - uintptr((*Taibuf)(unsafe.Pointer(b)).Fslot)*88 + ___lock(tls, b+76) + v2 = b + 82 + *(*int16)(unsafe.Pointer(v2)) = int16(uint64(*(*int16)(unsafe.Pointer(v2))) - cnt) + if !(*(*int16)(unsafe.Pointer(v2)) != 0) { + Xfree(tls, b) + } else { + ___unlock(tls, b+76) + } +} + +var _msgs = [252]int8{'I', 'n', 'v', 'a', 'l', 'i', 'd', ' ', 'f', 'l', 'a', 'g', 's', 0, 'N', 'a', 'm', 'e', ' ', 'd', 'o', 'e', 's', ' ', 'n', 'o', 't', ' ', 'r', 'e', 's', 'o', 'l', 'v', 'e', 0, 'T', 'r', 'y', ' ', 'a', 'g', 'a', 'i', 'n', 0, 'N', 'o', 'n', '-', 'r', 'e', 'c', 'o', 'v', 'e', 'r', 'a', 'b', 'l', 'e', ' ', 'e', 'r', 'r', 'o', 'r', 0, 'N', 'a', 'm', 'e', ' ', 'h', 'a', 's', ' ', 'n', 'o', ' ', 'u', 's', 'a', 'b', 'l', 'e', ' ', 'a', 'd', 'd', 'r', 'e', 's', 's', 0, 'U', 'n', 'r', 'e', 'c', 'o', 'g', 'n', 'i', 'z', 'e', 'd', ' ', 'a', 'd', 'd', 'r', 'e', 's', 's', ' ', 'f', 'a', 'm', 'i', 'l', 'y', ' ', 'o', 'r', ' ', 'i', 'n', 'v', 'a', 'l', 'i', 'd', ' ', 'l', 'e', 'n', 'g', 't', 'h', 0, 'U', 'n', 'r', 'e', 'c', 'o', 'g', 'n', 'i', 'z', 'e', 'd', ' ', 's', 'o', 'c', 'k', 'e', 't', ' ', 't', 'y', 'p', 'e', 0, 'U', 'n', 'r', 'e', 'c', 'o', 'g', 'n', 'i', 'z', 'e', 'd', ' ', 's', 'e', 'r', 'v', 'i', 'c', 'e', 0, 'U', 'n', 'k', 'n', 'o', 'w', 'n', ' ', 'e', 'r', 'r', 'o', 'r', 0, 'O', 'u', 't', ' ', 'o', 'f', ' ', 'm', 'e', 'm', 'o', 'r', 'y', 0, 'S', 'y', 's', 't', 'e', 'm', ' ', 'e', 'r', 'r', 'o', 'r', 0, 'O', 'v', 'e', 'r', 'f', 'l', 'o', 'w', 0, 0, 'U', 'n', 'k', 'n', 'o', 'w', 'n', ' ', 'e', 'r', 'r', 'o', 'r'} + +func Xgai_strerror(tls *TLS, ecode int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v ecode=%v, (%v:)", tls, ecode, origin(2)) + defer func() { trc("-> %v", r) }() + } + var s uintptr + _ = s + s = uintptr(unsafe.Pointer(&_msgs)) + ecode = ecode + 1 + for { + if !(ecode != 0 && **(**int8)(__ccgo_up(s)) != 0) { + break + } + for { + if !(**(**int8)(__ccgo_up(s)) != 0) { + break + } + goto _2 + _2: + ; + s = s + 1 + } + goto _1 + _1: + ; + ecode = ecode + 1 + s = s + 1 + } + if !(**(**int8)(__ccgo_up(s)) != 0) { + s = s + 1 + } + return X__lctrans_cur(tls, s) +} + +func Xgetaddrinfo(tls *TLS, host uintptr, serv uintptr, hint uintptr, res uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v host=%v serv=%v hint=%v res=%v, (%v:)", tls, host, serv, hint, res, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(1616) + defer tls.Free(1616) + var canon_len, family, flags, i, j, k, mask, naddrs, nais, no_family, nservs, proto, r, s, saved_errno, socktype, v3 int32 + var out, outcanon uintptr + var ta [2]uintptr + var tf [2]int32 + var tl [2]Tsocklen_t + var v5 uint64 + var _ /* addrs at bp+8 */ [48]Taddress + var _ /* canon at bp+1352 */ [256]int8 + var _ /* cs at bp+1608 */ int32 + var _ /* ports at bp+0 */ [2]Tservice + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = canon_len, family, flags, i, j, k, mask, naddrs, nais, no_family, nservs, out, outcanon, proto, r, s, saved_errno, socktype, ta, tf, tl, v3, v5 + family = PF_UNSPEC + flags = 0 + proto = 0 + socktype = 0 + no_family = 0 + if !(host != 0) && !(serv != 0) { + return -int32(2) + } + if hint != 0 { + family = (*Taddrinfo)(unsafe.Pointer(hint)).Fai_family + flags = (*Taddrinfo)(unsafe.Pointer(hint)).Fai_flags + proto = (*Taddrinfo)(unsafe.Pointer(hint)).Fai_protocol + socktype = (*Taddrinfo)(unsafe.Pointer(hint)).Fai_socktype + mask = Int32FromInt32(AI_PASSIVE) | Int32FromInt32(AI_CANONNAME) | Int32FromInt32(AI_NUMERICHOST) | Int32FromInt32(AI_V4MAPPED) | Int32FromInt32(AI_ALL) | Int32FromInt32(AI_ADDRCONFIG) | Int32FromInt32(AI_NUMERICSERV) + if flags&mask != flags { + return -int32(1) + } + switch family { + case int32(PF_INET): + fallthrough + case int32(PF_INET6): + fallthrough + case PF_UNSPEC: + default: + return -int32(6) + } + } + if flags&int32(AI_ADDRCONFIG) != 0 { + tf = [2]int32{ + 0: int32(PF_INET), + 1: int32(PF_INET6), + } + ta = [2]uintptr{ + 0: uintptr(unsafe.Pointer(&_lo4)), + 1: uintptr(unsafe.Pointer(&_lo6)), + } + tl = [2]Tsocklen_t{ + 0: uint32(16), + 1: uint32(28), + } + i = 0 + for { + if !(i < int32(2)) { + break + } + if family == tf[int32(1)-i] { + goto _1 + } + s = Xsocket(tls, tf[i], Int32FromInt32(SOCK_CLOEXEC)|Int32FromInt32(SOCK_DGRAM), int32(IPPROTO_UDP)) + if s >= 0 { + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp+1608) + r = Xconnect(tls, s, ta[i], tl[i]) + saved_errno = **(**int32)(__ccgo_up(X__errno_location(tls))) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 1608)), uintptr(0)) + Xclose(tls, s) + if !(r != 0) { + goto _1 + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = saved_errno + } + switch **(**int32)(__ccgo_up(X__errno_location(tls))) { + case int32(EADDRNOTAVAIL): + fallthrough + case int32(EAFNOSUPPORT): + fallthrough + case int32(EHOSTUNREACH): + fallthrough + case int32(ENETDOWN): + fallthrough + case int32(ENETUNREACH): + default: + return -int32(11) + } + if family == tf[i] { + no_family = int32(1) + } + family = tf[int32(1)-i] + goto _1 + _1: + ; + i = i + 1 + } + } + nservs = X__lookup_serv(tls, bp, serv, proto, socktype, flags) + if nservs < 0 { + return nservs + } + naddrs = X__lookup_name(tls, bp+8, bp+1352, host, family, flags) + if naddrs < 0 { + return naddrs + } + if no_family != 0 { + return -int32(5) + } + nais = nservs * naddrs + canon_len = Int32FromUint64(_strlen(tls, bp+1352)) + out = Xcalloc(tls, uint64(1), Uint64FromInt32(nais)*uint64(88)+Uint64FromInt32(canon_len)+uint64(1)) + if !(out != 0) { + return -int32(10) + } + if canon_len != 0 { + outcanon = out + uintptr(nais)*88 + Xmemcpy(tls, outcanon, bp+1352, Uint64FromInt32(canon_len+int32(1))) + } else { + outcanon = uintptr(0) + } + v3 = Int32FromInt32(0) + i = v3 + k = v3 + for { + if !(i < naddrs) { + break + } + j = 0 + for { + if !(j < nservs) { + break + } + (**(**Taibuf)(__ccgo_up(out + uintptr(k)*88))).Fslot = int16(k) + if (**(**[48]Taddress)(__ccgo_up(bp + 8)))[i].Ffamily == int32(PF_INET) { + v5 = uint64(16) + } else { + v5 = uint64(28) + } + (**(**Taibuf)(__ccgo_up(out + uintptr(k)*88))).Fai = Taddrinfo{ + Fai_family: (**(**[48]Taddress)(__ccgo_up(bp + 8)))[i].Ffamily, + Fai_socktype: Int32FromUint8((**(**[2]Tservice)(__ccgo_up(bp)))[j].Fsocktype), + Fai_protocol: Int32FromUint8((**(**[2]Tservice)(__ccgo_up(bp)))[j].Fproto), + Fai_addrlen: uint32(v5), + Fai_addr: out + uintptr(k)*88 + 48, + Fai_canonname: outcanon, + } + if k != 0 { + (**(**Taibuf)(__ccgo_up(out + uintptr(k-int32(1))*88))).Fai.Fai_next = out + uintptr(k)*88 + } + switch (**(**[48]Taddress)(__ccgo_up(bp + 8)))[i].Ffamily { + case int32(PF_INET): + *(*Tsa_family_t)(unsafe.Pointer(out + uintptr(k)*88 + 48)) = uint16(PF_INET) + *(*Tin_port_t)(unsafe.Pointer(out + uintptr(k)*88 + 48 + 2)) = Xhtons(tls, (**(**[2]Tservice)(__ccgo_up(bp)))[j].Fport) + Xmemcpy(tls, out+uintptr(k)*88+48+4, bp+8+uintptr(i)*28+8, uint64(4)) + case int32(PF_INET6): + *(*Tsa_family_t)(unsafe.Pointer(out + uintptr(k)*88 + 48)) = uint16(PF_INET6) + *(*Tin_port_t)(unsafe.Pointer(out + uintptr(k)*88 + 48 + 2)) = Xhtons(tls, (**(**[2]Tservice)(__ccgo_up(bp)))[j].Fport) + *(*Tuint32_t)(unsafe.Pointer(out + uintptr(k)*88 + 48 + 24)) = (**(**[48]Taddress)(__ccgo_up(bp + 8)))[i].Fscopeid + Xmemcpy(tls, out+uintptr(k)*88+48+8, bp+8+uintptr(i)*28+8, uint64(16)) + break + } + goto _4 + _4: + ; + j = j + 1 + k = k + 1 + } + goto _2 + _2: + ; + i = i + 1 + } + (**(**Taibuf)(__ccgo_up(out))).Fref = int16(nais) + **(**uintptr)(__ccgo_up(res)) = out + return 0 +} + +/* Define the "an address is configured" condition for address + * families via ability to create a socket for the family plus + * routability of the loopback address for the family. */ +var _lo4 = Tsockaddr_in{ + Fsin_family: uint16(PF_INET), + Fsin_port: uint16(65535), + Fsin_addr: Tin_addr{ + Fs_addr: uint32(0x0100007f), + }, +} + +var _lo6 = Tsockaddr_in6{ + Fsin6_family: uint16(PF_INET6), + Fsin6_port: uint16(65535), + Fsin6_addr: Tin6_addr{ + F__in6_union: *(*struct { + F__s6_addr16 [0][8]Tuint16_t + F__s6_addr32 [0][4]Tuint32_t + F__s6_addr [16]Tuint8_t + })(unsafe.Pointer(&[16]Tuint8_t{ + 15: uint8(1), + })), + }, +} + +const EAI_ADDRFAMILY = -9 +const EAI_ALLDONE = -103 +const EAI_CANCELED = -101 +const EAI_IDN_ENCODE = -105 +const EAI_INPROGRESS = -100 +const EAI_INTR = -104 +const EAI_NOTCANCELED = -102 +const HOST_NOT_FOUND = 1 +const MCAST_BLOCK_SOURCE = 43 +const MCAST_EXCLUDE = 0 +const MCAST_INCLUDE = 1 +const MCAST_JOIN_GROUP = 42 +const MCAST_JOIN_SOURCE_GROUP = 46 +const MCAST_LEAVE_GROUP = 45 +const MCAST_LEAVE_SOURCE_GROUP = 47 +const MCAST_MSFILTER = 48 +const MCAST_UNBLOCK_SOURCE = 44 +const NI_MAXHOST = 255 +const NI_MAXSERV = 32 +const NO_ADDRESS = 4 +const NO_DATA = 4 +const NO_RECOVERY = 3 +const TRY_AGAIN = 2 +const h_errno = 0 + +type Tip_mreq = struct { + Fimr_multiaddr Tin_addr + Fimr_interface Tin_addr +} + +type Tip_mreqn = struct { + Fimr_multiaddr Tin_addr + Fimr_address Tin_addr + Fimr_ifindex int32 +} + +type Tip_mreq_source = struct { + Fimr_multiaddr Tin_addr + Fimr_interface Tin_addr + Fimr_sourceaddr Tin_addr +} + +type Tip_msfilter = struct { + Fimsf_multiaddr Tin_addr + Fimsf_interface Tin_addr + Fimsf_fmode Tuint32_t + Fimsf_numsrc Tuint32_t + Fimsf_slist [1]Tin_addr +} + +type Tgroup_req = struct { + Fgr_interface Tuint32_t + Fgr_group Tsockaddr_storage +} + +type Tgroup_source_req = struct { + Fgsr_interface Tuint32_t + Fgsr_group Tsockaddr_storage + Fgsr_source Tsockaddr_storage +} + +type Tgroup_filter = struct { + Fgf_interface Tuint32_t + Fgf_group Tsockaddr_storage + Fgf_fmode Tuint32_t + Fgf_numsrc Tuint32_t + Fgf_slist [1]Tsockaddr_storage +} + +type Tin_pktinfo = struct { + Fipi_ifindex int32 + Fipi_spec_dst Tin_addr + Fipi_addr Tin_addr +} + +type Tin6_pktinfo = struct { + Fipi6_addr Tin6_addr + Fipi6_ifindex uint32 +} + +type Tip6_mtuinfo = struct { + Fip6m_addr Tsockaddr_in6 + Fip6m_mtu Tuint32_t +} + +func Xgethostbyaddr(tls *TLS, a uintptr, l Tsocklen_t, af int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v a=%v l=%v af=%v, (%v:)", tls, a, l, af, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var err int32 + var size Tsize_t + var _ /* res at bp+0 */ uintptr + _, _ = err, size + size = uint64(63) + for cond := true; cond; cond = err == int32(ERANGE) { + Xfree(tls, _h) + size = size + (size + uint64(1)) + _h = Xmalloc(tls, size) + if !(_h != 0) { + **(**int32)(__ccgo_up(X__h_errno_location(tls))) = int32(NO_RECOVERY) + return uintptr(0) + } + err = Xgethostbyaddr_r(tls, a, l, af, _h, _h+UintptrFromInt32(1)*32, size-uint64(32), bp, X__h_errno_location(tls)) + } + return **(**uintptr)(__ccgo_up(bp)) +} + +var _h uintptr + +func Xgethostbyaddr_r(tls *TLS, a uintptr, l Tsocklen_t, af int32, h uintptr, buf uintptr, buflen Tsize_t, res uintptr, err uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v a=%v l=%v af=%v h=%v buf=%v buflen=%v res=%v err=%v, (%v:)", tls, a, l, af, h, buf, buflen, res, err, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var i int32 + var sl Tsocklen_t + var v1 uint64 + var _ /* sa at bp+0 */ struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + } + _, _, _ = i, sl, v1 + *(*struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + })(unsafe.Pointer(bp)) = struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + }{} + *(*uint16)(unsafe.Pointer(bp)) = Uint16FromInt32(af) + if af == int32(PF_INET6) { + v1 = uint64(28) + } else { + v1 = uint64(16) + } + sl = uint32(v1) + **(**uintptr)(__ccgo_up(res)) = uintptr(0) + /* Load address argument into sockaddr structure */ + if af == int32(PF_INET6) && l == uint32(16) { + Xmemcpy(tls, bp+8, a, uint64(16)) + } else { + if af == int32(PF_INET) && l == uint32(4) { + Xmemcpy(tls, bp+4, a, uint64(4)) + } else { + **(**int32)(__ccgo_up(err)) = int32(NO_RECOVERY) + return int32(EINVAL) + } + } + /* Align buffer and check for space for pointers and ip address */ + i = Int32FromUint64(uint64(buf) & (Uint64FromInt64(8) - Uint64FromInt32(1))) + if !(i != 0) { + i = int32(8) + } + if buflen <= Uint64FromInt32(5)*Uint64FromInt64(8)-Uint64FromInt32(i)+uint64(l) { + return int32(ERANGE) + } + buf = buf + uintptr(uint64(8)-Uint64FromInt32(i)) + buflen = buflen - (Uint64FromInt32(5)*Uint64FromInt64(8) - Uint64FromInt32(i) + uint64(l)) + (*Thostent)(unsafe.Pointer(h)).Fh_addr_list = buf + buf = buf + uintptr(Uint64FromInt32(2)*Uint64FromInt64(8)) + (*Thostent)(unsafe.Pointer(h)).Fh_aliases = buf + buf = buf + uintptr(Uint64FromInt32(2)*Uint64FromInt64(8)) + **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_addr_list)) = buf + Xmemcpy(tls, **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_addr_list)), a, uint64(l)) + buf = buf + uintptr(l) + **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_addr_list + 1*8)) = uintptr(0) + **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_aliases)) = buf + **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_aliases + 1*8)) = uintptr(0) + switch Xgetnameinfo(tls, bp, sl, buf, uint32(buflen), uintptr(0), uint32(0), 0) { + case -int32(3): + **(**int32)(__ccgo_up(err)) = int32(TRY_AGAIN) + return int32(EAGAIN) + case -int32(12): + return int32(ERANGE) + default: + fallthrough + case -int32(4): + **(**int32)(__ccgo_up(err)) = int32(NO_RECOVERY) + return int32(EBADMSG) + case -int32(11): + **(**int32)(__ccgo_up(err)) = int32(NO_RECOVERY) + return **(**int32)(__ccgo_up(X__errno_location(tls))) + case 0: + break + } + (*Thostent)(unsafe.Pointer(h)).Fh_addrtype = af + (*Thostent)(unsafe.Pointer(h)).Fh_length = Int32FromUint32(l) + (*Thostent)(unsafe.Pointer(h)).Fh_name = **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_aliases)) + **(**uintptr)(__ccgo_up(res)) = h + return 0 +} + +func Xgethostbyname(tls *TLS, name uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgethostbyname2(tls, name, int32(PF_INET)) +} + +func Xgethostbyname2(tls *TLS, name uintptr, af int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v af=%v, (%v:)", tls, name, af, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var err int32 + var size Tsize_t + var _ /* res at bp+0 */ uintptr + _, _ = err, size + size = uint64(63) + for cond := true; cond; cond = err == int32(ERANGE) { + Xfree(tls, _h1) + size = size + (size + uint64(1)) + _h1 = Xmalloc(tls, size) + if !(_h1 != 0) { + **(**int32)(__ccgo_up(X__h_errno_location(tls))) = int32(NO_RECOVERY) + return uintptr(0) + } + err = Xgethostbyname2_r(tls, name, af, _h1, _h1+UintptrFromInt32(1)*32, size-uint64(32), bp, X__h_errno_location(tls)) + } + return **(**uintptr)(__ccgo_up(bp)) +} + +var _h1 uintptr + +func Xgethostbyname2_r(tls *TLS, name uintptr, af int32, h uintptr, buf uintptr, buflen Tsize_t, res uintptr, err uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v af=%v h=%v buf=%v buflen=%v res=%v err=%v, (%v:)", tls, name, af, h, buf, buflen, res, err, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(1600) + defer tls.Free(1600) + var align, need Tsize_t + var cnt, i, v1 int32 + var v3 uintptr + var _ /* addrs at bp+0 */ [48]Taddress + var _ /* canon at bp+1344 */ [256]int8 + _, _, _, _, _, _ = align, cnt, i, need, v1, v3 + **(**uintptr)(__ccgo_up(res)) = uintptr(0) + cnt = X__lookup_name(tls, bp, bp+1344, name, af, int32(AI_CANONNAME)) + if cnt < 0 { + switch cnt { + case -int32(2): + **(**int32)(__ccgo_up(err)) = int32(HOST_NOT_FOUND) + return 0 + case -int32(5): + **(**int32)(__ccgo_up(err)) = int32(NO_DATA) + return 0 + case -int32(3): + **(**int32)(__ccgo_up(err)) = int32(TRY_AGAIN) + return int32(EAGAIN) + default: + fallthrough + case -int32(4): + **(**int32)(__ccgo_up(err)) = int32(NO_RECOVERY) + return int32(EBADMSG) + case -int32(11): + **(**int32)(__ccgo_up(err)) = int32(NO_RECOVERY) + return **(**int32)(__ccgo_up(X__errno_location(tls))) + } + } + (*Thostent)(unsafe.Pointer(h)).Fh_addrtype = af + if af == int32(PF_INET6) { + v1 = int32(16) + } else { + v1 = int32(4) + } + (*Thostent)(unsafe.Pointer(h)).Fh_length = v1 + /* Align buffer */ + align = -uint64(buf) & (Uint64FromInt64(8) - Uint64FromInt32(1)) + need = Uint64FromInt32(4) * Uint64FromInt64(8) + need = need + Uint64FromInt32(cnt+Int32FromInt32(1))*(uint64(8)+Uint64FromInt32((*Thostent)(unsafe.Pointer(h)).Fh_length)) + need = need + (_strlen(tls, name) + uint64(1)) + need = need + (_strlen(tls, bp+1344) + uint64(1)) + need = need + align + if need > buflen { + return int32(ERANGE) + } + buf = buf + uintptr(align) + (*Thostent)(unsafe.Pointer(h)).Fh_aliases = buf + buf = buf + uintptr(Uint64FromInt32(3)*Uint64FromInt64(8)) + (*Thostent)(unsafe.Pointer(h)).Fh_addr_list = buf + buf = buf + uintptr(Uint64FromInt32(cnt+Int32FromInt32(1))*uint64(8)) + i = 0 + for { + if !(i < cnt) { + break + } + **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_addr_list + uintptr(i)*8)) = buf + buf = buf + uintptr((*Thostent)(unsafe.Pointer(h)).Fh_length) + Xmemcpy(tls, **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_addr_list + uintptr(i)*8)), bp+uintptr(i)*28+8, Uint64FromInt32((*Thostent)(unsafe.Pointer(h)).Fh_length)) + goto _2 + _2: + ; + i = i + 1 + } + **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_addr_list + uintptr(i)*8)) = uintptr(0) + v3 = buf + **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_aliases)) = v3 + (*Thostent)(unsafe.Pointer(h)).Fh_name = v3 + Xstrcpy(tls, (*Thostent)(unsafe.Pointer(h)).Fh_name, bp+1344) + buf = buf + uintptr(_strlen(tls, (*Thostent)(unsafe.Pointer(h)).Fh_name)+uint64(1)) + if Xstrcmp(tls, (*Thostent)(unsafe.Pointer(h)).Fh_name, name) != 0 { + **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_aliases + 1*8)) = buf + Xstrcpy(tls, **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_aliases + 1*8)), name) + buf = buf + uintptr(_strlen(tls, **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_aliases + 1*8)))+uint64(1)) + } else { + **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_aliases + 1*8)) = uintptr(0) + } + **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_aliases + 2*8)) = uintptr(0) + **(**uintptr)(__ccgo_up(res)) = h + return 0 +} + +func Xgethostbyname_r(tls *TLS, name uintptr, h uintptr, buf uintptr, buflen Tsize_t, res uintptr, err uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v h=%v buf=%v buflen=%v res=%v err=%v, (%v:)", tls, name, h, buf, buflen, res, err, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgethostbyname2_r(tls, name, int32(PF_INET), h, buf, buflen, res, err) +} + +const IFADDRS_HASH_SIZE = 64 +const IFA_ADDRESS = 1 +const IFA_BROADCAST = 4 +const IFA_LABEL = 3 +const IFA_LOCAL = 2 +const IFF_ALLMULTI = 512 +const IFF_AUTOMEDIA = 16384 +const IFF_BROADCAST = 2 +const IFF_DEBUG = 4 +const IFF_DORMANT = 131072 +const IFF_DYNAMIC = 32768 +const IFF_ECHO = 262144 +const IFF_LOOPBACK = 8 +const IFF_LOWER_UP = 65536 +const IFF_MASTER = 1024 +const IFF_MULTICAST = 4096 +const IFF_NOARP = 128 +const IFF_NOTRAILERS = 32 +const IFF_POINTOPOINT = 16 +const IFF_PORTSEL = 8192 +const IFF_PROMISC = 256 +const IFF_RUNNING = 64 +const IFF_SLAVE = 2048 +const IFF_UP = 1 +const IFF_VOLATILE = 461914 +const IFHWADDRLEN = 6 +const IFLA_ADDRESS = 1 +const IFLA_BROADCAST = 2 +const IFLA_IFNAME = 3 +const IFLA_STATS = 7 +const IFNAMSIZ = 16 +const IF_NAMESIZE = 16 +const NETLINK_ROUTE = 0 +const NLMSG_DONE = 3 +const NLMSG_ERROR = 2 +const NLMSG_NOOP = 1 +const NLMSG_OVERRUN = 4 +const NLM_F_ACK = 4 +const NLM_F_ATOMIC = 1024 +const NLM_F_DUMP = 768 +const NLM_F_MATCH = 512 +const NLM_F_MULTI = 2 +const NLM_F_REQUEST = 1 +const NLM_F_ROOT = 256 +const RTM_GETADDR = 22 +const RTM_GETLINK = 18 +const RTM_NEWADDR = 20 +const RTM_NEWLINK = 16 +const __UAPI_DEF_IF_IFCONF = 0 +const __UAPI_DEF_IF_IFMAP = 0 +const __UAPI_DEF_IF_IFNAMSIZ = 0 +const __UAPI_DEF_IF_IFREQ = 0 +const __UAPI_DEF_IF_NET_DEVICE_FLAGS = 0 +const __UAPI_DEF_IF_NET_DEVICE_FLAGS_LOWER_UP_DORMANT_ECHO = 0 + +type Tifaddrs = struct { + Fifa_next uintptr + Fifa_name uintptr + Fifa_flags uint32 + Fifa_addr uintptr + Fifa_netmask uintptr + Fifa_ifu struct { + Fifu_dstaddr [0]uintptr + Fifu_broadaddr uintptr + } + Fifa_data uintptr +} + +type Tif_nameindex = struct { + Fif_index uint32 + Fif_name uintptr +} + +type Tifaddr = struct { + Fifa_addr Tsockaddr + Fifa_ifu struct { + Fifu_dstaddr [0]Tsockaddr + Fifu_broadaddr Tsockaddr + } + Fifa_ifp uintptr + Fifa_next uintptr +} + +type Tifmap = struct { + Fmem_start uint64 + Fmem_end uint64 + Fbase_addr uint16 + Firq uint8 + Fdma uint8 + Fport uint8 +} + +type Tifreq = struct { + Fifr_ifrn struct { + Fifrn_name [16]int8 + } + Fifr_ifru struct { + Fifru_dstaddr [0]Tsockaddr + Fifru_broadaddr [0]Tsockaddr + Fifru_netmask [0]Tsockaddr + Fifru_hwaddr [0]Tsockaddr + Fifru_flags [0]int16 + Fifru_ivalue [0]int32 + Fifru_mtu [0]int32 + Fifru_map [0]Tifmap + Fifru_slave [0][16]int8 + Fifru_newname [0][16]int8 + Fifru_data [0]uintptr + Fifru_addr Tsockaddr + F__ccgo_pad12 [8]byte + } +} + +type Tifconf = struct { + Fifc_len int32 + Fifc_ifcu struct { + Fifcu_req [0]uintptr + Fifcu_buf uintptr + } +} + +type Tnlmsghdr = struct { + Fnlmsg_len Tuint32_t + Fnlmsg_type Tuint16_t + Fnlmsg_flags Tuint16_t + Fnlmsg_seq Tuint32_t + Fnlmsg_pid Tuint32_t +} + +type Trtattr = struct { + Frta_len uint16 + Frta_type uint16 +} + +type Trtgenmsg = struct { + Frtgen_family uint8 +} + +type Tifinfomsg = struct { + Fifi_family uint8 + F__ifi_pad uint8 + Fifi_type uint16 + Fifi_index int32 + Fifi_flags uint32 + Fifi_change uint32 +} + +type Tifaddrmsg = struct { + Fifa_family Tuint8_t + Fifa_prefixlen Tuint8_t + Fifa_flags Tuint8_t + Fifa_scope Tuint8_t + Fifa_index Tuint32_t +} + +/* getifaddrs() reports hardware addresses with PF_PACKET that implies + * struct sockaddr_ll. But e.g. Infiniband socket address length is + * longer than sockaddr_ll.ssl_addr[8] can hold. Use this hack struct + * to extend ssl_addr - callers should be able to still use it. */ +type Tsockaddr_ll_hack = struct { + Fsll_family uint16 + Fsll_protocol uint16 + Fsll_ifindex int32 + Fsll_hatype uint16 + Fsll_pkttype uint8 + Fsll_halen uint8 + Fsll_addr [24]uint8 +} + +type Tsockany = struct { + Fll [0]Tsockaddr_ll_hack + Fv4 [0]Tsockaddr_in + Fv6 [0]Tsockaddr_in6 + Fsa Tsockaddr + F__ccgo_pad4 [20]byte +} + +type Tifaddrs_storage = struct { + Fifa Tifaddrs + Fhash_next uintptr + Faddr Tsockany + Fnetmask Tsockany + Fifu Tsockany + Findex uint32 + Fname [17]int8 +} + +type Tifaddrs_ctx = struct { + Ffirst uintptr + Flast uintptr + Fhash [64]uintptr +} + +func Xfreeifaddrs(tls *TLS, ifp uintptr) { + if __ccgo_strace { + trc("tls=%v ifp=%v, (%v:)", tls, ifp, origin(2)) + } + var n uintptr + _ = n + for ifp != 0 { + n = (*Tifaddrs)(unsafe.Pointer(ifp)).Fifa_next + Xfree(tls, ifp) + ifp = n + } +} + +func _copy_addr(tls *TLS, r uintptr, af int32, sa uintptr, addr uintptr, addrlen Tsize_t, ifindex int32) { + var dst uintptr + var len1 int32 + _, _ = dst, len1 + switch af { + case int32(PF_INET): + dst = sa + 4 + len1 = int32(4) + case int32(PF_INET6): + dst = sa + 8 + len1 = int32(16) + if Int32FromUint8(**(**Tuint8_t)(__ccgo_up(addr))) == int32(0xfe) && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(addr + 1)))&int32(0xc0) == int32(0x80) || Int32FromUint8(**(**Tuint8_t)(__ccgo_up(addr))) == int32(0xff) && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(addr + 1)))&int32(0xf) == int32(0x2) { + (*(*Tsockaddr_in6)(unsafe.Pointer(sa))).Fsin6_scope_id = Uint32FromInt32(ifindex) + } + default: + return + } + if addrlen < Uint64FromInt32(len1) { + return + } + (*Tsockany)(unsafe.Pointer(sa)).Fsa.Fsa_family = Uint16FromInt32(af) + Xmemcpy(tls, dst, addr, Uint64FromInt32(len1)) + **(**uintptr)(__ccgo_up(r)) = sa +} + +func _gen_netmask(tls *TLS, r uintptr, af int32, sa uintptr, prefixlen int32) { + bp := tls.Alloc(16) + defer tls.Free(16) + var i, v1 int32 + var _ /* addr at bp+0 */ [16]Tuint8_t + _, _ = i, v1 + **(**[16]Tuint8_t)(__ccgo_up(bp)) = [16]Tuint8_t{} + if Uint64FromInt32(prefixlen) > Uint64FromInt32(8)*Uint64FromInt64(16) { + prefixlen = Int32FromUint64(Uint64FromInt32(8) * Uint64FromInt64(16)) + } + i = prefixlen / int32(8) + Xmemset(tls, bp, int32(0xff), Uint64FromInt32(i)) + if Uint64FromInt32(i) < uint64(16) { + v1 = i + i = i + 1 + (**(**[16]Tuint8_t)(__ccgo_up(bp)))[v1] = Uint8FromInt32(int32(0xff) << (int32(8) - prefixlen%int32(8))) + } + _copy_addr(tls, r, af, sa, bp, uint64(16), 0) +} + +func _copy_lladdr(tls *TLS, r uintptr, sa uintptr, addr uintptr, addrlen Tsize_t, ifindex int32, hatype uint16) { + if addrlen > uint64(24) { + return + } + (*(*Tsockaddr_ll_hack)(unsafe.Pointer(sa))).Fsll_family = uint16(PF_PACKET) + (*(*Tsockaddr_ll_hack)(unsafe.Pointer(sa))).Fsll_ifindex = ifindex + (*(*Tsockaddr_ll_hack)(unsafe.Pointer(sa))).Fsll_hatype = hatype + (*(*Tsockaddr_ll_hack)(unsafe.Pointer(sa))).Fsll_halen = uint8(addrlen) + Xmemcpy(tls, sa+12, addr, addrlen) + **(**uintptr)(__ccgo_up(r)) = sa +} + +func _netlink_msg_to_ifaddr(tls *TLS, pctx uintptr, h uintptr) (r int32) { + var bucket uint32 + var ctx, ifa, ifi, ifs, ifs0, rta uintptr + var stats_len int32 + _, _, _, _, _, _, _, _ = bucket, ctx, ifa, ifi, ifs, ifs0, rta, stats_len + ctx = pctx + ifi = h + UintptrFromInt64(16) + ifa = h + UintptrFromInt64(16) + stats_len = 0 + if Int32FromUint16((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_type) == int32(RTM_NEWLINK) { + rta = h + UintptrFromInt64(16) + uintptr((Uint64FromInt64(16)+Uint64FromInt32(3))&Uint64FromInt32(^Int32FromInt32(3))) + for { + if !(Uint64FromInt64(int64(h+uintptr((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_len))-int64(rta)) >= uint64(4)) { + break + } + if Int32FromUint16((*Trtattr)(unsafe.Pointer(rta)).Frta_type) != int32(IFLA_STATS) { + goto _1 + } + stats_len = Int32FromUint64(uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len) - Uint64FromInt64(4)) + break + goto _1 + _1: + ; + rta = rta + uintptr((Int32FromUint16((*Trtattr)(unsafe.Pointer(rta)).Frta_len)+Int32FromInt32(3)) & ^Int32FromInt32(3)) + } + } else { + ifs0 = **(**uintptr)(__ccgo_up(ctx + 16 + uintptr((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_index%uint32(IFADDRS_HASH_SIZE))*8)) + for { + if !(ifs0 != 0) { + break + } + if (*Tifaddrs_storage)(unsafe.Pointer(ifs0)).Findex == (*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_index { + break + } + goto _2 + _2: + ; + ifs0 = (*Tifaddrs_storage)(unsafe.Pointer(ifs0)).Fhash_next + } + if !(ifs0 != 0) { + return 0 + } + } + ifs = Xcalloc(tls, uint64(1), uint64(200)+Uint64FromInt32(stats_len)) + if ifs == uintptr(0) { + return -int32(1) + } + if Int32FromUint16((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_type) == int32(RTM_NEWLINK) { + (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Findex = Uint32FromInt32((*Tifinfomsg)(unsafe.Pointer(ifi)).Fifi_index) + (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_flags = (*Tifinfomsg)(unsafe.Pointer(ifi)).Fifi_flags + rta = h + UintptrFromInt64(16) + uintptr((Uint64FromInt64(16)+Uint64FromInt32(3))&Uint64FromInt32(^Int32FromInt32(3))) + for { + if !(Uint64FromInt64(int64(h+uintptr((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_len))-int64(rta)) >= uint64(4)) { + break + } + switch Int32FromUint16((*Trtattr)(unsafe.Pointer(rta)).Frta_type) { + case int32(IFLA_IFNAME): + if uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-uint64(4) < uint64(17) { + Xmemcpy(tls, ifs+176, rta+UintptrFromInt64(4), uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-Uint64FromInt64(4)) + (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_name = ifs + 176 + } + case int32(IFLA_ADDRESS): + _copy_lladdr(tls, ifs+24, ifs+64, rta+UintptrFromInt64(4), uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-Uint64FromInt64(4), (*Tifinfomsg)(unsafe.Pointer(ifi)).Fifi_index, (*Tifinfomsg)(unsafe.Pointer(ifi)).Fifi_type) + case int32(IFLA_BROADCAST): + _copy_lladdr(tls, ifs+40, ifs+136, rta+UintptrFromInt64(4), uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-Uint64FromInt64(4), (*Tifinfomsg)(unsafe.Pointer(ifi)).Fifi_index, (*Tifinfomsg)(unsafe.Pointer(ifi)).Fifi_type) + case int32(IFLA_STATS): + (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_data = ifs + UintptrFromInt32(1)*200 + Xmemcpy(tls, (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_data, rta+UintptrFromInt64(4), uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-Uint64FromInt64(4)) + break + } + goto _3 + _3: + ; + rta = rta + uintptr((Int32FromUint16((*Trtattr)(unsafe.Pointer(rta)).Frta_len)+Int32FromInt32(3)) & ^Int32FromInt32(3)) + } + if (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_name != 0 { + bucket = (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Findex % uint32(IFADDRS_HASH_SIZE) + (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fhash_next = **(**uintptr)(__ccgo_up(ctx + 16 + uintptr(bucket)*8)) + **(**uintptr)(__ccgo_up(ctx + 16 + uintptr(bucket)*8)) = ifs + } + } else { + (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_name = (*Tifaddrs_storage)(unsafe.Pointer(ifs0)).Fifa.Fifa_name + (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_flags = (*Tifaddrs_storage)(unsafe.Pointer(ifs0)).Fifa.Fifa_flags + rta = h + UintptrFromInt64(16) + uintptr((Uint64FromInt64(8)+Uint64FromInt32(3))&Uint64FromInt32(^Int32FromInt32(3))) + for { + if !(Uint64FromInt64(int64(h+uintptr((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_len))-int64(rta)) >= uint64(4)) { + break + } + switch Int32FromUint16((*Trtattr)(unsafe.Pointer(rta)).Frta_type) { + case int32(IFA_ADDRESS): + /* If ifa_addr is already set we, received an IFA_LOCAL before + * so treat this as destination address */ + if (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_addr != 0 { + _copy_addr(tls, ifs+40, Int32FromUint8((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_family), ifs+136, rta+UintptrFromInt64(4), uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-Uint64FromInt64(4), Int32FromUint32((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_index)) + } else { + _copy_addr(tls, ifs+24, Int32FromUint8((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_family), ifs+64, rta+UintptrFromInt64(4), uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-Uint64FromInt64(4), Int32FromUint32((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_index)) + } + case int32(IFA_BROADCAST): + _copy_addr(tls, ifs+40, Int32FromUint8((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_family), ifs+136, rta+UintptrFromInt64(4), uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-Uint64FromInt64(4), Int32FromUint32((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_index)) + case int32(IFA_LOCAL): + /* If ifa_addr is set and we get IFA_LOCAL, assume we have + * a point-to-point network. Move address to correct field. */ + if (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_addr != 0 { + (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifu = (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Faddr + *(*uintptr)(unsafe.Pointer(ifs + 40)) = ifs + 136 + Xmemset(tls, ifs+64, 0, uint64(36)) + } + _copy_addr(tls, ifs+24, Int32FromUint8((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_family), ifs+64, rta+UintptrFromInt64(4), uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-Uint64FromInt64(4), Int32FromUint32((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_index)) + case int32(IFA_LABEL): + if uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-uint64(4) < uint64(17) { + Xmemcpy(tls, ifs+176, rta+UintptrFromInt64(4), uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-Uint64FromInt64(4)) + (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_name = ifs + 176 + } + break + } + goto _4 + _4: + ; + rta = rta + uintptr((Int32FromUint16((*Trtattr)(unsafe.Pointer(rta)).Frta_len)+Int32FromInt32(3)) & ^Int32FromInt32(3)) + } + if (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_addr != 0 { + _gen_netmask(tls, ifs+32, Int32FromUint8((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_family), ifs+100, Int32FromUint8((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_prefixlen)) + } + } + if (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_name != 0 { + if !((*Tifaddrs_ctx)(unsafe.Pointer(ctx)).Ffirst != 0) { + (*Tifaddrs_ctx)(unsafe.Pointer(ctx)).Ffirst = ifs + } + if (*Tifaddrs_ctx)(unsafe.Pointer(ctx)).Flast != 0 { + (*Tifaddrs)(unsafe.Pointer((*Tifaddrs_ctx)(unsafe.Pointer(ctx)).Flast)).Fifa_next = ifs + } + (*Tifaddrs_ctx)(unsafe.Pointer(ctx)).Flast = ifs + } else { + Xfree(tls, ifs) + } + return 0 +} + +func Xgetifaddrs(tls *TLS, ifap uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v ifap=%v, (%v:)", tls, ifap, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(528) + defer tls.Free(528) + var ctx uintptr + var r int32 + var _ /* _ctx at bp+0 */ Tifaddrs_ctx + _, _ = ctx, r + ctx = bp + Xmemset(tls, ctx, 0, uint64(528)) + r = X__rtnetlink_enumerate(tls, PF_UNSPEC, PF_UNSPEC, __ccgo_fp(_netlink_msg_to_ifaddr), ctx) + if r == 0 { + **(**uintptr)(__ccgo_up(ifap)) = (*Tifaddrs_ctx)(unsafe.Pointer(ctx)).Ffirst + } else { + Xfreeifaddrs(tls, (*Tifaddrs_ctx)(unsafe.Pointer(ctx)).Ffirst) + } + return r +} + +const RR_PTR = 12 + +func _itoa(tls *TLS, p uintptr, x uint32) (r uintptr) { + var v1 uintptr + _ = v1 + p = p + uintptr(Uint64FromInt32(3)*Uint64FromInt64(4)) + p = p - 1 + v1 = p + **(**int8)(__ccgo_up(v1)) = 0 + for cond := true; cond; cond = x != 0 { + p = p - 1 + v1 = p + **(**int8)(__ccgo_up(v1)) = Int8FromUint32(uint32('0') + x%uint32(10)) + x = x / uint32(10) + } + return p +} + +func _mkptr4(tls *TLS, s uintptr, ip uintptr) { + bp := tls.Alloc(48) + defer tls.Free(48) + Xsprintf(tls, s, __ccgo_ts+972, VaList(bp+8, Int32FromUint8(**(**uint8)(__ccgo_up(ip + 3))), Int32FromUint8(**(**uint8)(__ccgo_up(ip + 2))), Int32FromUint8(**(**uint8)(__ccgo_up(ip + 1))), Int32FromUint8(**(**uint8)(__ccgo_up(ip))))) +} + +func _mkptr6(tls *TLS, s uintptr, ip uintptr) { + var i int32 + var v2 uintptr + _, _ = i, v2 + i = int32(15) + for { + if !(i >= 0) { + break + } + v2 = s + s = s + 1 + **(**int8)(__ccgo_up(v2)) = _xdigits[Int32FromUint8(**(**uint8)(__ccgo_up(ip + uintptr(i))))&int32(15)] + v2 = s + s = s + 1 + **(**int8)(__ccgo_up(v2)) = int8('.') + v2 = s + s = s + 1 + **(**int8)(__ccgo_up(v2)) = _xdigits[Int32FromUint8(**(**uint8)(__ccgo_up(ip + uintptr(i))))>>int32(4)] + v2 = s + s = s + 1 + **(**int8)(__ccgo_up(v2)) = int8('.') + goto _1 + _1: + ; + i = i - 1 + } + Xstrcpy(tls, s, __ccgo_ts+997) +} + +var _xdigits = [17]int8{'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'} + +func _reverse_hosts(tls *TLS, buf uintptr, a uintptr, scopeid uint32, family int32) { + bp := tls.Alloc(1824) + defer tls.Free(1824) + var f, p, z, v1, v2 uintptr + var v4, v5 int32 + var v7 bool + var _ /* _buf at bp+512 */ [1032]uint8 + var _ /* _f at bp+1592 */ TFILE + var _ /* atmp at bp+1544 */ [16]uint8 + var _ /* iplit at bp+1560 */ Taddress + var _ /* line at bp+0 */ [512]int8 + _, _, _, _, _, _, _, _ = f, p, z, v1, v2, v4, v5, v7 + f = X__fopen_rb_ca(tls, __ccgo_ts+1006, bp+1592, bp+512, uint64(1032)) + if !(f != 0) { + return + } + if family == int32(PF_INET) { + Xmemcpy(tls, bp+1544+uintptr(12), a, uint64(4)) + Xmemcpy(tls, bp+1544, __ccgo_ts+1017, uint64(12)) + a = bp + 1544 + } + for Xfgets(tls, bp, int32(512), f) != 0 { + v1 = Xstrchr(tls, bp, int32('#')) + p = v1 + if v1 != 0 { + v2 = p + p = p + 1 + **(**int8)(__ccgo_up(v2)) = int8('\n') + **(**int8)(__ccgo_up(p)) = Int8FromInt32(0) + } + p = bp + for { + if v7 = **(**int8)(__ccgo_up(p)) != 0; v7 { + v4 = int32(**(**int8)(__ccgo_up(p))) + v5 = BoolInt32(v4 == int32(' ') || Uint32FromInt32(v4)-uint32('\t') < uint32(5)) + goto _6 + _6: + } + if !(v7 && !(v5 != 0)) { + break + } + goto _3 + _3: + ; + p = p + 1 + } + if !(**(**int8)(__ccgo_up(p)) != 0) { + continue + } + v1 = p + p = p + 1 + **(**int8)(__ccgo_up(v1)) = 0 + if X__lookup_ipliteral(tls, bp+1560, bp, PF_UNSPEC) <= 0 { + continue + } + if (**(**Taddress)(__ccgo_up(bp + 1560))).Ffamily == int32(PF_INET) { + Xmemcpy(tls, bp+1560+8+uintptr(12), bp+1560+8, uint64(4)) + Xmemcpy(tls, bp+1560+8, __ccgo_ts+1017, uint64(12)) + (**(**Taddress)(__ccgo_up(bp + 1560))).Fscopeid = uint32(0) + } + if Xmemcmp(tls, a, bp+1560+8, uint64(16)) != 0 || (**(**Taddress)(__ccgo_up(bp + 1560))).Fscopeid != scopeid { + continue + } + for { + if v7 = **(**int8)(__ccgo_up(p)) != 0; v7 { + v4 = int32(**(**int8)(__ccgo_up(p))) + v5 = BoolInt32(v4 == int32(' ') || Uint32FromInt32(v4)-uint32('\t') < uint32(5)) + goto _12 + _12: + } + if !(v7 && v5 != 0) { + break + } + goto _9 + _9: + ; + p = p + 1 + } + z = p + for { + if v7 = **(**int8)(__ccgo_up(z)) != 0; v7 { + v4 = int32(**(**int8)(__ccgo_up(z))) + v5 = BoolInt32(v4 == int32(' ') || Uint32FromInt32(v4)-uint32('\t') < uint32(5)) + goto _17 + _17: + } + if !(v7 && !(v5 != 0)) { + break + } + goto _14 + _14: + ; + z = z + 1 + } + **(**int8)(__ccgo_up(z)) = 0 + if int64(z)-int64(p) < int64(256) { + Xmemcpy(tls, buf, p, Uint64FromInt64(int64(z)-int64(p)+int64(1))) + break + } + } + X__fclose_ca(tls, f) +} + +func _reverse_services(tls *TLS, buf uintptr, port int32, dgram int32) { + bp := tls.Alloc(1408) + defer tls.Free(1408) + var f, p, v1, v2 uintptr + var svport uint64 + var v4, v5 int32 + var v7 bool + var _ /* _buf at bp+136 */ [1032]uint8 + var _ /* _f at bp+1168 */ TFILE + var _ /* line at bp+0 */ [128]int8 + var _ /* z at bp+128 */ uintptr + _, _, _, _, _, _, _, _ = f, p, svport, v1, v2, v4, v5, v7 + f = X__fopen_rb_ca(tls, __ccgo_ts+1030, bp+1168, bp+136, uint64(1032)) + if !(f != 0) { + return + } + for Xfgets(tls, bp, int32(128), f) != 0 { + v1 = Xstrchr(tls, bp, int32('#')) + p = v1 + if v1 != 0 { + v2 = p + p = p + 1 + **(**int8)(__ccgo_up(v2)) = int8('\n') + **(**int8)(__ccgo_up(p)) = Int8FromInt32(0) + } + p = bp + for { + if v7 = **(**int8)(__ccgo_up(p)) != 0; v7 { + v4 = int32(**(**int8)(__ccgo_up(p))) + v5 = BoolInt32(v4 == int32(' ') || Uint32FromInt32(v4)-uint32('\t') < uint32(5)) + goto _6 + _6: + } + if !(v7 && !(v5 != 0)) { + break + } + goto _3 + _3: + ; + p = p + 1 + } + if !(**(**int8)(__ccgo_up(p)) != 0) { + continue + } + v1 = p + p = p + 1 + **(**int8)(__ccgo_up(v1)) = 0 + svport = Xstrtoul(tls, p, bp+128, int32(10)) + if svport != Uint64FromInt32(port) || **(**uintptr)(__ccgo_up(bp + 128)) == p { + continue + } + if dgram != 0 && Xstrncmp(tls, **(**uintptr)(__ccgo_up(bp + 128)), __ccgo_ts+1044, uint64(4)) != 0 { + continue + } + if !(dgram != 0) && Xstrncmp(tls, **(**uintptr)(__ccgo_up(bp + 128)), __ccgo_ts+1049, uint64(4)) != 0 { + continue + } + if int64(p)-t__predefined_ptrdiff_t(bp) > int64(32) { + continue + } + Xmemcpy(tls, buf, bp, Uint64FromInt64(int64(p)-t__predefined_ptrdiff_t(bp))) + break + } + X__fclose_ca(tls, f) +} + +func _dns_parse_callback(tls *TLS, c uintptr, rr int32, data uintptr, len1 int32, packet uintptr, plen int32) (r int32) { + if rr != int32(RR_PTR) { + return 0 + } + if X__dn_expand(tls, packet, packet+uintptr(plen), data, c, int32(256)) <= 0 { + **(**int8)(__ccgo_up(c)) = 0 + } + return 0 +} + +func Xgetnameinfo(tls *TLS, sa uintptr, sl Tsocklen_t, node uintptr, nodelen Tsocklen_t, serv uintptr, servlen Tsocklen_t, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v sa=%v sl=%v node=%v nodelen=%v serv=%v servlen=%v flags=%v, (%v:)", tls, sa, sl, node, nodelen, serv, servlen, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(976) + defer tls.Free(976) + var a, p, p1, v1 uintptr + var af, port, qlen, rlen int32 + var scopeid uint32 + var _ /* buf at bp+78 */ [256]int8 + var _ /* num at bp+334 */ [13]int8 + var _ /* ptr at bp+0 */ [78]int8 + var _ /* query at bp+347 */ [96]uint8 + var _ /* reply at bp+443 */ [512]uint8 + var _ /* tmp at bp+955 */ [17]int8 + _, _, _, _, _, _, _, _, _ = a, af, p, p1, port, qlen, rlen, scopeid, v1 + af = Int32FromUint16((*Tsockaddr)(unsafe.Pointer(sa)).Fsa_family) + switch af { + case int32(PF_INET): + a = sa + 4 + if uint64(sl) < uint64(16) { + return -int32(6) + } + _mkptr4(tls, bp, a) + scopeid = uint32(0) + case int32(PF_INET6): + a = sa + 8 + if uint64(sl) < uint64(28) { + return -int32(6) + } + if Xmemcmp(tls, a, __ccgo_ts+1017, uint64(12)) != 0 { + _mkptr6(tls, bp, a) + } else { + _mkptr4(tls, bp, a+uintptr(12)) + } + scopeid = (*Tsockaddr_in6)(unsafe.Pointer(sa)).Fsin6_scope_id + default: + return -int32(6) + } + if node != 0 && nodelen != 0 { + (**(**[256]int8)(__ccgo_up(bp + 78)))[0] = 0 + if !(flags&Int32FromInt32(NI_NUMERICHOST) != 0) { + _reverse_hosts(tls, bp+78, a, scopeid, af) + } + if !(**(**int8)(__ccgo_up(bp + 78)) != 0) && !(flags&Int32FromInt32(NI_NUMERICHOST) != 0) { + qlen = X__res_mkquery(tls, 0, bp, int32(1), int32(RR_PTR), uintptr(0), 0, uintptr(0), bp+347, int32(96)) + (**(**[96]uint8)(__ccgo_up(bp + 347)))[int32(3)] = uint8(0) /* don't need AD flag */ + rlen = X__res_send(tls, bp+347, qlen, bp+443, int32(512)) + (**(**[256]int8)(__ccgo_up(bp + 78)))[0] = 0 + if rlen > 0 { + if Uint64FromInt32(rlen) > uint64(512) { + rlen = int32(512) + } + X__dns_parse(tls, bp+443, rlen, __ccgo_fp(_dns_parse_callback), bp+78) + } + } + if !(**(**int8)(__ccgo_up(bp + 78)) != 0) { + if flags&int32(NI_NAMEREQD) != 0 { + return -int32(2) + } + Xinet_ntop(tls, af, a, bp+78, uint32(256)) + if scopeid != 0 { + p = uintptr(0) + if !(flags&Int32FromInt32(NI_NUMERICSCOPE) != 0) && (Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a))) == int32(0xfe) && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a + 1)))&int32(0xc0) == int32(0x80) || Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a))) == int32(0xff) && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a + 1)))&int32(0xf) == int32(0x2)) { + p = Xif_indextoname(tls, scopeid, bp+955+uintptr(1)) + } + if !(p != 0) { + p = _itoa(tls, bp+334, scopeid) + } + p = p - 1 + v1 = p + **(**int8)(__ccgo_up(v1)) = int8('%') + Xstrcat(tls, bp+78, p) + } + } + if _strlen(tls, bp+78) >= uint64(nodelen) { + return -int32(12) + } + Xstrcpy(tls, node, bp+78) + } + if serv != 0 && servlen != 0 { + p1 = bp + 78 + port = Int32FromUint16(Xntohs(tls, (*Tsockaddr_in)(unsafe.Pointer(sa)).Fsin_port)) + (**(**[256]int8)(__ccgo_up(bp + 78)))[0] = 0 + if !(flags&Int32FromInt32(NI_NUMERICSERV) != 0) { + _reverse_services(tls, bp+78, port, flags&int32(NI_DGRAM)) + } + if !(**(**int8)(__ccgo_up(p1)) != 0) { + p1 = _itoa(tls, bp+334, Uint32FromInt32(port)) + } + if _strlen(tls, p1) >= uint64(servlen) { + return -int32(12) + } + Xstrcpy(tls, serv, p1) + } + return 0 +} + +func Xgetpeername(tls *TLS, fd int32, addr uintptr, len1 uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v addr=%v len1=%v, (%v:)", tls, fd, addr, len1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v8 int64 + var v1 int32 + var v2, v3, v4, v5, v6, v7 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _ = r, v1, v2, v3, v4, v5, v6, v7, v8 + v1 = int32(SYS_getpeername) + _ = int32(__SC_getpeername) + v2 = int64(fd) + v3 = int64(addr) + v4 = int64(len1) + v5 = int64(Int32FromInt32(0)) + v6 = int64(Int32FromInt32(0)) + v7 = int64(Int32FromInt32(0)) + if 0 != 0 { + r = ___syscall_cp(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _9 + } + v8 = r + goto _9 +_9: + return int32(X__syscall_ret(tls, Uint64FromInt64(v8))) +} + +func Xgetservbyname(tls *TLS, name uintptr, prots uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v prots=%v, (%v:)", tls, name, prots, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* res at bp+0 */ uintptr + if Xgetservbyname_r(tls, name, prots, uintptr(unsafe.Pointer(&_se)), uintptr(unsafe.Pointer(&_buf3)), uint64(16), bp) != 0 { + return uintptr(0) + } + return uintptr(unsafe.Pointer(&_se)) +} + +var _se Tservent + +var _buf3 [2]uintptr + +const ALIGN = 0 + +func Xgetservbyname_r(tls *TLS, name uintptr, prots uintptr, se uintptr, buf uintptr, buflen Tsize_t, res uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v prots=%v se=%v buf=%v buflen=%v res=%v, (%v:)", tls, name, prots, se, buf, buflen, res, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var align, cnt, proto int32 + var v1 uintptr + var _ /* end at bp+8 */ uintptr + var _ /* servs at bp+0 */ [2]Tservice + _, _, _, _ = align, cnt, proto, v1 + **(**uintptr)(__ccgo_up(res)) = uintptr(0) + /* Don't treat numeric port number strings as service records. */ + **(**uintptr)(__ccgo_up(bp + 8)) = __ccgo_ts + Xstrtoul(tls, name, bp+8, int32(10)) + if !(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)))) != 0) { + return int32(ENOENT) + } + /* Align buffer */ + align = Int32FromUint64(-uint64(buf) & (Uint64FromInt64(16) - Uint64FromInt64(8) - Uint64FromInt32(1))) + if buflen < Uint64FromInt32(2)*Uint64FromInt64(8)+Uint64FromInt32(align) { + return int32(ERANGE) + } + buf = buf + uintptr(align) + if !(prots != 0) { + proto = 0 + } else { + if !(Xstrcmp(tls, prots, __ccgo_ts+1054) != 0) { + proto = int32(IPPROTO_TCP) + } else { + if !(Xstrcmp(tls, prots, __ccgo_ts+1058) != 0) { + proto = int32(IPPROTO_UDP) + } else { + return int32(EINVAL) + } + } + } + cnt = X__lookup_serv(tls, bp, name, proto, 0, 0) + if cnt < 0 { + switch cnt { + case -int32(10): + fallthrough + case -int32(11): + return int32(ENOMEM) + default: + return int32(ENOENT) + } + } + (*Tservent)(unsafe.Pointer(se)).Fs_name = name + (*Tservent)(unsafe.Pointer(se)).Fs_aliases = buf + **(**uintptr)(__ccgo_up((*Tservent)(unsafe.Pointer(se)).Fs_aliases)) = (*Tservent)(unsafe.Pointer(se)).Fs_name + **(**uintptr)(__ccgo_up((*Tservent)(unsafe.Pointer(se)).Fs_aliases + 1*8)) = uintptr(0) + (*Tservent)(unsafe.Pointer(se)).Fs_port = Int32FromUint16(Xhtons(tls, (**(**[2]Tservice)(__ccgo_up(bp)))[0].Fport)) + if Int32FromUint8((**(**[2]Tservice)(__ccgo_up(bp)))[0].Fproto) == int32(IPPROTO_TCP) { + v1 = __ccgo_ts + 1054 + } else { + v1 = __ccgo_ts + 1058 + } + (*Tservent)(unsafe.Pointer(se)).Fs_proto = v1 + **(**uintptr)(__ccgo_up(res)) = se + return 0 +} + +func Xgetsockname(tls *TLS, fd int32, addr uintptr, len1 uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v addr=%v len1=%v, (%v:)", tls, fd, addr, len1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v8 int64 + var v1 int32 + var v2, v3, v4, v5, v6, v7 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _ = r, v1, v2, v3, v4, v5, v6, v7, v8 + v1 = int32(SYS_getsockname) + _ = int32(__SC_getsockname) + v2 = int64(fd) + v3 = int64(addr) + v4 = int64(len1) + v5 = int64(Int32FromInt32(0)) + v6 = int64(Int32FromInt32(0)) + v7 = int64(Int32FromInt32(0)) + if 0 != 0 { + r = ___syscall_cp(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _9 + } + v8 = r + goto _9 +_9: + return int32(X__syscall_ret(tls, Uint64FromInt64(v8))) +} + +func Xgetsockopt(tls *TLS, fd int32, level int32, optname int32, optval uintptr, optlen uintptr) (r2 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v level=%v optname=%v optval=%v optlen=%v, (%v:)", tls, fd, level, optname, optval, optlen, origin(2)) + defer func() { trc("-> %v", r2) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var r, v8 int64 + var r1, v1 int32 + var tv uintptr + var v2, v3, v4, v5, v6, v7 Tsyscall_arg_t + var _ /* tv32 at bp+8 */ [2]int64 + _, _, _, _, _, _, _, _, _, _, _ = r, r1, tv, v1, v2, v3, v4, v5, v6, v7, v8 + v1 = int32(SYS_getsockopt) + _ = int32(__SC_getsockopt) + v2 = int64(fd) + v3 = int64(level) + v4 = int64(optname) + v5 = int64(optval) + v6 = int64(optlen) + v7 = int64(Int32FromInt32(0)) + if 0 != 0 { + r = ___syscall_cp(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _9 + } + v8 = r + goto _9 +_9: + r1 = int32(v8) + if r1 == -int32(ENOPROTOOPT) { + switch level { + case int32(SOL_SOCKET): + switch optname { + case int32(SO_RCVTIMEO): + fallthrough + case int32(SO_SNDTIMEO): + if true { + break + } + if uint64(**(**Tsocklen_t)(__ccgo_up(optlen))) < uint64(16) { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL)))) + } + if optname == int32(SO_RCVTIMEO) { + optname = int32(SO_RCVTIMEO_OLD) + } + if optname == int32(SO_SNDTIMEO) { + optname = int32(SO_SNDTIMEO_OLD) + } + *(*[1]Tsocklen_t)(unsafe.Pointer(bp)) = [1]Tsocklen_t{ + 0: uint32(16), + } + v1 = int32(SYS_getsockopt) + _ = int32(__SC_getsockopt) + v2 = int64(fd) + v3 = int64(level) + v4 = int64(optname) + v5 = int64(bp + 8) + v6 = int64(bp) + v7 = int64(Int32FromInt32(0)) + if 0 != 0 { + r = ___syscall_cp(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _18 + } + v8 = r + goto _18 + _18: + r1 = int32(v8) + if r1 < 0 { + break + } + tv = optval + (*Ttimeval)(unsafe.Pointer(tv)).Ftv_sec = (**(**[2]int64)(__ccgo_up(bp + 8)))[0] + (*Ttimeval)(unsafe.Pointer(tv)).Ftv_usec = (**(**[2]int64)(__ccgo_up(bp + 8)))[int32(1)] + **(**Tsocklen_t)(__ccgo_up(optlen)) = uint32(16) + case int32(SO_TIMESTAMP): + fallthrough + case int32(SO_TIMESTAMPNS): + if true { + break + } + if optname == int32(SO_TIMESTAMP) { + optname = int32(SO_TIMESTAMP_OLD) + } + if optname == int32(SO_TIMESTAMPNS) { + optname = int32(SO_TIMESTAMPNS_OLD) + } + v1 = int32(SYS_getsockopt) + _ = int32(__SC_getsockopt) + v2 = int64(fd) + v3 = int64(level) + v4 = int64(optname) + v5 = int64(optval) + v6 = int64(optlen) + v7 = int64(Int32FromInt32(0)) + if 0 != 0 { + r = ___syscall_cp(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _27 + } + v8 = r + goto _27 + _27: + r1 = int32(v8) + break + } + } + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r1))) +} + +func X__h_errno_location(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + if !((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Fstack != 0) { + return uintptr(unsafe.Pointer(&Xh_errno)) + } + return uintptr(___get_tp(tls)) + 144 +} + +func Xherror(tls *TLS, msg uintptr) { + if __ccgo_strace { + trc("tls=%v msg=%v, (%v:)", tls, msg, origin(2)) + } + bp := tls.Alloc(32) + defer tls.Free(32) + var v1, v2 uintptr + _, _ = v1, v2 + if msg != 0 { + v1 = msg + } else { + v1 = __ccgo_ts + } + if msg != 0 { + v2 = __ccgo_ts + 289 + } else { + v2 = __ccgo_ts + } + Xfprintf(tls, uintptr(unsafe.Pointer(&X__stderr_FILE)), __ccgo_ts+1062, VaList(bp+8, v1, v2, Xhstrerror(tls, **(**int32)(__ccgo_up(X__h_errno_location(tls)))))) +} + +var _msgs1 = [84]int8{'H', 'o', 's', 't', ' ', 'n', 'o', 't', ' ', 'f', 'o', 'u', 'n', 'd', 0, 'T', 'r', 'y', ' ', 'a', 'g', 'a', 'i', 'n', 0, 'N', 'o', 'n', '-', 'r', 'e', 'c', 'o', 'v', 'e', 'r', 'a', 'b', 'l', 'e', ' ', 'e', 'r', 'r', 'o', 'r', 0, 'A', 'd', 'd', 'r', 'e', 's', 's', ' ', 'n', 'o', 't', ' ', 'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e', 0, 0, 'U', 'n', 'k', 'n', 'o', 'w', 'n', ' ', 'e', 'r', 'r', 'o', 'r'} + +func Xhstrerror(tls *TLS, ecode int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v ecode=%v, (%v:)", tls, ecode, origin(2)) + defer func() { trc("-> %v", r) }() + } + var s uintptr + _ = s + s = uintptr(unsafe.Pointer(&_msgs1)) + ecode = ecode - 1 + for { + if !(ecode != 0 && **(**int8)(__ccgo_up(s)) != 0) { + break + } + for { + if !(**(**int8)(__ccgo_up(s)) != 0) { + break + } + goto _2 + _2: + ; + s = s + 1 + } + goto _1 + _1: + ; + ecode = ecode - 1 + s = s + 1 + } + if !(**(**int8)(__ccgo_up(s)) != 0) { + s = s + 1 + } + return X__lctrans_cur(tls, s) +} + +func Xhtonl(tls *TLS, n Tuint32_t) (r Tuint32_t) { + if __ccgo_strace { + trc("tls=%v n=%v, (%v:)", tls, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var u struct { + Fc [0]int8 + Fi int32 + } + var v1 uint32 + var v2, v3 Tuint32_t + _, _, _, _ = u, v1, v2, v3 + u = *(*struct { + Fc [0]int8 + Fi int32 + })(unsafe.Pointer(&struct{ f int32 }{f: int32(1)})) + if *(*int8)(unsafe.Pointer(&u)) != 0 { + v2 = n + v3 = v2>>int32(24) | v2>>int32(8)&uint32(0xff00) | v2< %v", r) }() + } + var u struct { + Fc [0]int8 + Fi int32 + } + var v1 int32 + var v2, v3 Tuint16_t + _, _, _, _ = u, v1, v2, v3 + u = *(*struct { + Fc [0]int8 + Fi int32 + })(unsafe.Pointer(&struct{ f int32 }{f: int32(1)})) + if *(*int8)(unsafe.Pointer(&u)) != 0 { + v2 = n + v3 = Uint16FromInt32(Int32FromUint16(v2)<>int32(8)) + goto _4 + _4: + v1 = Int32FromUint16(v3) + } else { + v1 = Int32FromUint16(n) + } + return Uint16FromInt32(v1) +} + +func Xif_freenameindex(tls *TLS, idx uintptr) { + if __ccgo_strace { + trc("tls=%v idx=%v, (%v:)", tls, idx, origin(2)) + } + Xfree(tls, idx) +} + +func Xif_indextoname(tls *TLS, index uint32, name uintptr) (r1 uintptr) { + if __ccgo_strace { + trc("tls=%v index=%v name=%v, (%v:)", tls, index, name, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var fd, r, v1 int32 + var _ /* ifr at bp+0 */ Tifreq + _, _, _ = fd, r, v1 + v1 = Xsocket(tls, int32(PF_LOCAL), Int32FromInt32(SOCK_DGRAM)|Int32FromInt32(SOCK_CLOEXEC), 0) + fd = v1 + if v1 < 0 { + return uintptr(0) + } + *(*int32)(unsafe.Pointer(bp + 16)) = Int32FromUint32(index) + r = Xioctl(tls, fd, int32(SIOCGIFNAME), VaList(bp+48, bp)) + X__syscall1(tls, int64(SYS_close), int64(fd)) + if r < 0 { + if **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(ENODEV) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENXIO) + } + return uintptr(0) + } + return Xstrncpy(tls, name, bp, uint64(IF_NAMESIZE)) +} + +type Tifnamemap = struct { + Fhash_next uint32 + Findex uint32 + Fnamelen uint8 + Fname [16]int8 +} + +type Tifnameindexctx = struct { + Fnum uint32 + Fallocated uint32 + Fstr_bytes uint32 + Flist uintptr + Fhash [64]uint32 +} + +func _netlink_msg_to_nameindex(tls *TLS, pctx uintptr, h uintptr) (r int32) { + var a Tsize_t + var bucket, index, namelen, type1 int32 + var ctx, ifa, ifi, map1, rta uintptr + var i, v2 uint32 + _, _, _, _, _, _, _, _, _, _, _, _ = a, bucket, ctx, i, ifa, ifi, index, map1, namelen, rta, type1, v2 + ctx = pctx + if Int32FromUint16((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_type) == int32(RTM_NEWLINK) { + ifi = h + UintptrFromInt64(16) + index = (*Tifinfomsg)(unsafe.Pointer(ifi)).Fifi_index + type1 = int32(IFLA_IFNAME) + rta = h + UintptrFromInt64(16) + uintptr((Uint64FromInt64(16)+Uint64FromInt32(3))&Uint64FromInt32(^Int32FromInt32(3))) + } else { + ifa = h + UintptrFromInt64(16) + index = Int32FromUint32((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_index) + type1 = int32(IFA_LABEL) + rta = h + UintptrFromInt64(16) + uintptr((Uint64FromInt64(8)+Uint64FromInt32(3))&Uint64FromInt32(^Int32FromInt32(3))) + } + for { + if !(Uint64FromInt64(int64(h+uintptr((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_len))-int64(rta)) >= uint64(4)) { + break + } + if Int32FromUint16((*Trtattr)(unsafe.Pointer(rta)).Frta_type) != type1 { + goto _1 + } + namelen = Int32FromUint64(uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len) - uint64(4) - uint64(1)) + if namelen > int32(IF_NAMESIZE) { + return 0 + } + /* suppress duplicates */ + bucket = index % int32(IFADDRS_HASH_SIZE) + i = **(**uint32)(__ccgo_up(ctx + 24 + uintptr(bucket)*4)) + for i != 0 { + map1 = (*Tifnameindexctx)(unsafe.Pointer(ctx)).Flist + uintptr(i-uint32(1))*28 + if (*Tifnamemap)(unsafe.Pointer(map1)).Findex == Uint32FromInt32(index) && Int32FromUint8((*Tifnamemap)(unsafe.Pointer(map1)).Fnamelen) == namelen && Xmemcmp(tls, map1+9, rta+UintptrFromInt64(4), Uint64FromInt32(namelen)) == 0 { + return 0 + } + i = (*Tifnamemap)(unsafe.Pointer(map1)).Fhash_next + } + if (*Tifnameindexctx)(unsafe.Pointer(ctx)).Fnum >= (*Tifnameindexctx)(unsafe.Pointer(ctx)).Fallocated { + if (*Tifnameindexctx)(unsafe.Pointer(ctx)).Fallocated != 0 { + v2 = (*Tifnameindexctx)(unsafe.Pointer(ctx)).Fallocated*uint32(2) + uint32(1) + } else { + v2 = uint32(8) + } + a = uint64(v2) + if a > Uint64FromUint64(0xffffffffffffffff)/Uint64FromInt64(28) { + return -int32(1) + } + map1 = Xrealloc(tls, (*Tifnameindexctx)(unsafe.Pointer(ctx)).Flist, a*uint64(28)) + if !(map1 != 0) { + return -int32(1) + } + (*Tifnameindexctx)(unsafe.Pointer(ctx)).Flist = map1 + (*Tifnameindexctx)(unsafe.Pointer(ctx)).Fallocated = uint32(a) + } + map1 = (*Tifnameindexctx)(unsafe.Pointer(ctx)).Flist + uintptr((*Tifnameindexctx)(unsafe.Pointer(ctx)).Fnum)*28 + (*Tifnamemap)(unsafe.Pointer(map1)).Findex = Uint32FromInt32(index) + (*Tifnamemap)(unsafe.Pointer(map1)).Fnamelen = Uint8FromInt32(namelen) + Xmemcpy(tls, map1+9, rta+UintptrFromInt64(4), Uint64FromInt32(namelen)) + **(**uint32)(__ccgo_up(ctx + 8)) += Uint32FromInt32(namelen + int32(1)) + (*Tifnameindexctx)(unsafe.Pointer(ctx)).Fnum = (*Tifnameindexctx)(unsafe.Pointer(ctx)).Fnum + 1 + (*Tifnamemap)(unsafe.Pointer(map1)).Fhash_next = **(**uint32)(__ccgo_up(ctx + 24 + uintptr(bucket)*4)) + **(**uint32)(__ccgo_up(ctx + 24 + uintptr(bucket)*4)) = (*Tifnameindexctx)(unsafe.Pointer(ctx)).Fnum + return 0 + goto _1 + _1: + ; + rta = rta + uintptr((Int32FromUint16((*Trtattr)(unsafe.Pointer(rta)).Frta_len)+Int32FromInt32(3)) & ^Int32FromInt32(3)) + } + return 0 +} + +func Xif_nameindex(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(288) + defer tls.Free(288) + var ctx, d, ifs, p, s, v2 uintptr + var i int32 + var _ /* _ctx at bp+0 */ Tifnameindexctx + var _ /* cs at bp+280 */ int32 + _, _, _, _, _, _, _ = ctx, d, i, ifs, p, s, v2 + ctx = bp + ifs = uintptr(0) + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp+280) + Xmemset(tls, ctx, 0, uint64(280)) + if X__rtnetlink_enumerate(tls, PF_UNSPEC, int32(PF_INET), __ccgo_fp(_netlink_msg_to_nameindex), ctx) < 0 { + goto err + } + ifs = Xmalloc(tls, uint64((*Tifnameindexctx)(unsafe.Pointer(ctx)).Fnum+Uint32FromInt32(1))*16+uint64((*Tifnameindexctx)(unsafe.Pointer(ctx)).Fstr_bytes)) + if !(ifs != 0) { + goto err + } + p = ifs + uintptr((*Tifnameindexctx)(unsafe.Pointer(ctx)).Fnum)*16 + UintptrFromInt32(1)*16 + i = Int32FromUint32((*Tifnameindexctx)(unsafe.Pointer(ctx)).Fnum) + d = ifs + s = (*Tifnameindexctx)(unsafe.Pointer(ctx)).Flist + for { + if !(i != 0) { + break + } + (*Tif_nameindex)(unsafe.Pointer(d)).Fif_index = (*Tifnamemap)(unsafe.Pointer(s)).Findex + (*Tif_nameindex)(unsafe.Pointer(d)).Fif_name = p + Xmemcpy(tls, p, s+9, uint64((*Tifnamemap)(unsafe.Pointer(s)).Fnamelen)) + p = p + uintptr((*Tifnamemap)(unsafe.Pointer(s)).Fnamelen) + v2 = p + p = p + 1 + **(**int8)(__ccgo_up(v2)) = 0 + goto _1 + _1: + ; + i = i - 1 + s += 28 + d += 16 + } + (*Tif_nameindex)(unsafe.Pointer(d)).Fif_index = uint32(0) + (*Tif_nameindex)(unsafe.Pointer(d)).Fif_name = uintptr(0) + goto err +err: + ; + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 280)), uintptr(0)) + Xfree(tls, (*Tifnameindexctx)(unsafe.Pointer(ctx)).Flist) + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOBUFS) + return ifs +} + +func Xif_nametoindex(tls *TLS, name uintptr) (r1 uint32) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var fd, r, v1 int32 + var _ /* ifr at bp+0 */ Tifreq + _, _, _ = fd, r, v1 + v1 = Xsocket(tls, int32(PF_LOCAL), Int32FromInt32(SOCK_DGRAM)|Int32FromInt32(SOCK_CLOEXEC), 0) + fd = v1 + if v1 < 0 { + return uint32(0) + } + Xstrncpy(tls, bp, name, uint64(16)) + r = Xioctl(tls, fd, int32(SIOCGIFINDEX), VaList(bp+48, bp)) + X__syscall1(tls, int64(SYS_close), int64(fd)) + if r < 0 { + v1 = 0 + } else { + v1 = *(*int32)(unsafe.Pointer(bp + 16)) + } + return Uint32FromInt32(v1) +} + +func Xinet_addr(tls *TLS, p uintptr) (r Tin_addr_t) { + if __ccgo_strace { + trc("tls=%v p=%v, (%v:)", tls, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* a at bp+0 */ Tin_addr + if !(X__inet_aton(tls, p, bp) != 0) { + return Uint32FromInt32(-Int32FromInt32(1)) + } + return (**(**Tin_addr)(__ccgo_up(bp))).Fs_addr +} + +func X__inet_aton(tls *TLS, s0 uintptr, dest uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s0=%v dest=%v, (%v:)", tls, s0, dest, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + var d, s uintptr + var i int32 + var _ /* a at bp+0 */ [4]uint64 + var _ /* z at bp+32 */ uintptr + _, _, _ = d, i, s + s = s0 + d = dest + **(**[4]uint64)(__ccgo_up(bp)) = [4]uint64{} + i = 0 + for { + if !(i < int32(4)) { + break + } + (**(**[4]uint64)(__ccgo_up(bp)))[i] = Xstrtoul(tls, s, bp+32, 0) + if **(**uintptr)(__ccgo_up(bp + 32)) == s || **(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 32)))) != 0 && int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 32))))) != int32('.') || !(BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(s)))-Uint32FromUint8('0') < Uint32FromInt32(10)) != 0) { + return 0 + } + if !(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 32)))) != 0) { + break + } + s = **(**uintptr)(__ccgo_up(bp + 32)) + uintptr(1) + goto _1 + _1: + ; + i = i + 1 + } + if i == int32(4) { + return 0 + } + switch i { + case 0: + (**(**[4]uint64)(__ccgo_up(bp)))[int32(1)] = (**(**[4]uint64)(__ccgo_up(bp)))[0] & uint64(0xffffff) + **(**uint64)(__ccgo_up(bp)) >>= uint64(24) + fallthrough + case int32(1): + (**(**[4]uint64)(__ccgo_up(bp)))[int32(2)] = (**(**[4]uint64)(__ccgo_up(bp)))[int32(1)] & uint64(0xffff) + **(**uint64)(__ccgo_up(bp + 1*8)) >>= uint64(16) + fallthrough + case int32(2): + (**(**[4]uint64)(__ccgo_up(bp)))[int32(3)] = (**(**[4]uint64)(__ccgo_up(bp)))[int32(2)] & uint64(0xff) + **(**uint64)(__ccgo_up(bp + 2*8)) >>= uint64(8) + } + i = 0 + for { + if !(i < int32(4)) { + break + } + if (**(**[4]uint64)(__ccgo_up(bp)))[i] > uint64(255) { + return 0 + } + **(**uint8)(__ccgo_up(d + uintptr(i))) = uint8((**(**[4]uint64)(__ccgo_up(bp)))[i]) + goto _2 + _2: + ; + i = i + 1 + } + return int32(1) +} + +func Xinet_aton(tls *TLS, s0 uintptr, dest uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s0=%v dest=%v, (%v:)", tls, s0, dest, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__inet_aton(tls, s0, dest) +} + +func Xinet_network(tls *TLS, p uintptr) (r Tin_addr_t) { + if __ccgo_strace { + trc("tls=%v p=%v, (%v:)", tls, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xntohl(tls, Xinet_addr(tls, p)) +} + +func Xinet_makeaddr(tls *TLS, n Tin_addr_t, h Tin_addr_t) (r Tin_addr) { + if __ccgo_strace { + trc("tls=%v n=%v h=%v, (%v:)", tls, n, h, origin(2)) + defer func() { trc("-> %v", r) }() + } + if n < uint32(256) { + h = h | n< %v", r) }() + } + var h Tuint32_t + _ = h + h = in.Fs_addr + if h>>int32(24) < uint32(128) { + return h & uint32(0xffffff) + } + if h>>int32(24) < uint32(192) { + return h & uint32(0xffff) + } + return h & uint32(0xff) +} + +func Xinet_netof(tls *TLS, in Tin_addr) (r Tin_addr_t) { + if __ccgo_strace { + trc("tls=%v in=%v, (%v:)", tls, in, origin(2)) + defer func() { trc("-> %v", r) }() + } + var h Tuint32_t + _ = h + h = in.Fs_addr + if h>>int32(24) < uint32(128) { + return h >> int32(24) + } + if h>>int32(24) < uint32(192) { + return h >> int32(16) + } + return h >> int32(8) +} + +func Xinet_ntoa(tls *TLS, _in Tin_addr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v _in=%v, (%v:)", tls, _in, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + *(*Tin_addr)(unsafe.Pointer(bp)) = _in + var a uintptr + _ = a + a = bp + Xsnprintf(tls, uintptr(unsafe.Pointer(&_buf4)), uint64(16), __ccgo_ts+1070, VaList(bp+16, Int32FromUint8(**(**uint8)(__ccgo_up(a))), Int32FromUint8(**(**uint8)(__ccgo_up(a + 1))), Int32FromUint8(**(**uint8)(__ccgo_up(a + 2))), Int32FromUint8(**(**uint8)(__ccgo_up(a + 3))))) + return uintptr(unsafe.Pointer(&_buf4)) +} + +var _buf4 [16]int8 + +func Xinet_ntop(tls *TLS, af int32, a0 uintptr, s uintptr, l Tsocklen_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v af=%v a0=%v s=%v l=%v, (%v:)", tls, af, a0, s, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(192) + defer tls.Free(192) + var a uintptr + var best, i, j, max, v2 int32 + var v3 int8 + var _ /* buf at bp+0 */ [100]int8 + _, _, _, _, _, _, _ = a, best, i, j, max, v2, v3 + a = a0 + switch af { + case int32(PF_INET): + if Uint32FromInt32(Xsnprintf(tls, s, uint64(l), __ccgo_ts+1070, VaList(bp+112, Int32FromUint8(**(**uint8)(__ccgo_up(a))), Int32FromUint8(**(**uint8)(__ccgo_up(a + 1))), Int32FromUint8(**(**uint8)(__ccgo_up(a + 2))), Int32FromUint8(**(**uint8)(__ccgo_up(a + 3)))))) < l { + return s + } + case int32(PF_INET6): + if Xmemcmp(tls, a, __ccgo_ts+1017, uint64(12)) != 0 { + Xsnprintf(tls, bp, uint64(100), __ccgo_ts+1082, VaList(bp+112, int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 1))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 2)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 3))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 4)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 5))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 6)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 7))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 8)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 9))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 10)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 11))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 12)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 13))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 14)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 15))))) + } else { + Xsnprintf(tls, bp, uint64(100), __ccgo_ts+1106, VaList(bp+112, int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 1))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 2)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 3))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 4)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 5))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 6)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 7))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 8)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 9))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 10)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 11))), Int32FromUint8(**(**uint8)(__ccgo_up(a + 12))), Int32FromUint8(**(**uint8)(__ccgo_up(a + 13))), Int32FromUint8(**(**uint8)(__ccgo_up(a + 14))), Int32FromUint8(**(**uint8)(__ccgo_up(a + 15))))) + } + /* Replace longest /(^0|:)[:0]{2,}/ with "::" */ + v2 = Int32FromInt32(0) + best = v2 + i = v2 + max = Int32FromInt32(2) + for { + if !((**(**[100]int8)(__ccgo_up(bp)))[i] != 0) { + break + } + if i != 0 && int32((**(**[100]int8)(__ccgo_up(bp)))[i]) != int32(':') { + goto _1 + } + j = Int32FromUint64(Xstrspn(tls, bp+uintptr(i), __ccgo_ts+1136)) + if j > max { + best = i + max = j + } + goto _1 + _1: + ; + i = i + 1 + } + if max > int32(3) { + v3 = Int8FromUint8(':') + (**(**[100]int8)(__ccgo_up(bp)))[best+int32(1)] = v3 + (**(**[100]int8)(__ccgo_up(bp)))[best] = v3 + Xmemmove(tls, bp+uintptr(best)+uintptr(2), bp+uintptr(best)+uintptr(max), Uint64FromInt32(i-best-max+int32(1))) + } + if _strlen(tls, bp) < uint64(l) { + Xstrcpy(tls, s, bp) + return s + } + default: + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EAFNOSUPPORT) + return uintptr(0) + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOSPC) + return uintptr(0) +} + +func _hexval(tls *TLS, c uint32) (r int32) { + if c-uint32('0') < uint32(10) { + return Int32FromUint32(c - uint32('0')) + } + c = c | uint32(32) + if c-uint32('a') < uint32(6) { + return Int32FromUint32(c - uint32('a') + uint32(10)) + } + return -int32(1) +} + +func Xinet_pton(tls *TLS, af int32, s uintptr, a0 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v af=%v s=%v a0=%v, (%v:)", tls, af, s, a0, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var a, v4 uintptr + var brk, d, i, j, need_v4, v, v3, v9 int32 + var v5 bool + var _ /* ip at bp+0 */ [8]Tuint16_t + _, _, _, _, _, _, _, _, _, _, _ = a, brk, d, i, j, need_v4, v, v3, v4, v5, v9 + a = a0 + brk = -int32(1) + need_v4 = 0 + if af == int32(PF_INET) { + i = 0 + for { + if !(i < int32(4)) { + break + } + v3 = Int32FromInt32(0) + j = v3 + v = v3 + for { + if !(j < int32(3) && BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(s + uintptr(j))))-uint32('0') < uint32(10)) != 0) { + break + } + v = int32(10)*v + int32(**(**int8)(__ccgo_up(s + uintptr(j)))) - int32('0') + goto _2 + _2: + ; + j = j + 1 + } + if j == 0 || j > int32(1) && int32(**(**int8)(__ccgo_up(s))) == int32('0') || v > int32(255) { + return 0 + } + **(**uint8)(__ccgo_up(a + uintptr(i))) = Uint8FromInt32(v) + if int32(**(**int8)(__ccgo_up(s + uintptr(j)))) == 0 && i == int32(3) { + return int32(1) + } + if int32(**(**int8)(__ccgo_up(s + uintptr(j)))) != int32('.') { + return 0 + } + s = s + uintptr(j+int32(1)) + goto _1 + _1: + ; + i = i + 1 + } + return 0 + } else { + if af != int32(PF_INET6) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EAFNOSUPPORT) + return -int32(1) + } + } + if v5 = int32(**(**int8)(__ccgo_up(s))) == int32(':'); v5 { + s = s + 1 + v4 = s + } + if v5 && int32(**(**int8)(__ccgo_up(v4))) != int32(':') { + return 0 + } + i = 0 + for { + if int32(**(**int8)(__ccgo_up(s))) == int32(':') && brk < 0 { + brk = i + (**(**[8]Tuint16_t)(__ccgo_up(bp)))[i&int32(7)] = uint16(0) + s = s + 1 + v4 = s + if !(**(**int8)(__ccgo_up(v4)) != 0) { + break + } + if i == int32(7) { + return 0 + } + goto _6 + } + v3 = Int32FromInt32(0) + j = v3 + v = v3 + for { + if v5 = j < int32(4); v5 { + v9 = _hexval(tls, Uint32FromInt8(**(**int8)(__ccgo_up(s + uintptr(j))))) + d = v9 + } + if !(v5 && v9 >= 0) { + break + } + v = int32(16)*v + d + goto _8 + _8: + ; + j = j + 1 + } + if j == 0 { + return 0 + } + (**(**[8]Tuint16_t)(__ccgo_up(bp)))[i&int32(7)] = Uint16FromInt32(v) + if !(**(**int8)(__ccgo_up(s + uintptr(j))) != 0) && (brk >= 0 || i == int32(7)) { + break + } + if i == int32(7) { + return 0 + } + if int32(**(**int8)(__ccgo_up(s + uintptr(j)))) != int32(':') { + if int32(**(**int8)(__ccgo_up(s + uintptr(j)))) != int32('.') || i < int32(6) && brk < 0 { + return 0 + } + need_v4 = int32(1) + i = i + 1 + (**(**[8]Tuint16_t)(__ccgo_up(bp)))[i&int32(7)] = uint16(0) + break + } + s = s + uintptr(j+int32(1)) + goto _6 + _6: + ; + i = i + 1 + } + if brk >= 0 { + Xmemmove(tls, bp+uintptr(brk)*2+uintptr(7)*2-uintptr(i)*2, bp+uintptr(brk)*2, Uint64FromInt32(int32(2)*(i+int32(1)-brk))) + j = 0 + for { + if !(j < int32(7)-i) { + break + } + (**(**[8]Tuint16_t)(__ccgo_up(bp)))[brk+j] = uint16(0) + goto _12 + _12: + ; + j = j + 1 + } + } + j = 0 + for { + if !(j < int32(8)) { + break + } + v4 = a + a = a + 1 + **(**uint8)(__ccgo_up(v4)) = Uint8FromInt32(Int32FromUint16((**(**[8]Tuint16_t)(__ccgo_up(bp)))[j]) >> int32(8)) + v4 = a + a = a + 1 + **(**uint8)(__ccgo_up(v4)) = uint8((**(**[8]Tuint16_t)(__ccgo_up(bp)))[j]) + goto _13 + _13: + ; + j = j + 1 + } + if need_v4 != 0 && Xinet_pton(tls, int32(PF_INET), s, a-uintptr(4)) <= 0 { + return 0 + } + return int32(1) +} + +func Xlisten(tls *TLS, fd int32, backlog int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v backlog=%v, (%v:)", tls, fd, backlog, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v8 int64 + var v1 int32 + var v2, v3, v4, v5, v6, v7 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _ = r, v1, v2, v3, v4, v5, v6, v7, v8 + v1 = int32(SYS_listen) + _ = int32(__SC_listen) + v2 = int64(fd) + v3 = int64(backlog) + v4 = int64(Int32FromInt32(0)) + v5 = int64(Int32FromInt32(0)) + v6 = int64(Int32FromInt32(0)) + v7 = int64(Int32FromInt32(0)) + if 0 != 0 { + r = ___syscall_cp(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _9 + } + v8 = r + goto _9 +_9: + return int32(X__syscall_ret(tls, Uint64FromInt64(v8))) +} + +func X__lookup_ipliteral(tls *TLS, buf uintptr, name uintptr, family int32) (r int32) { + if __ccgo_strace { + trc("tls=%v buf=%v name=%v family=%v, (%v:)", tls, buf, name, family, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(96) + defer tls.Free(96) + var p, v1 uintptr + var scopeid uint64 + var _ /* a4 at bp+0 */ Tin_addr + var _ /* a6 at bp+4 */ Tin6_addr + var _ /* tmp at bp+20 */ [64]int8 + var _ /* z at bp+88 */ uintptr + _, _, _ = p, scopeid, v1 + if X__inet_aton(tls, name, bp) > 0 { + if family == int32(PF_INET6) { /* wrong family */ + return -int32(5) + } + Xmemcpy(tls, buf+8, bp, uint64(4)) + (**(**Taddress)(__ccgo_up(buf))).Ffamily = int32(PF_INET) + (**(**Taddress)(__ccgo_up(buf))).Fscopeid = uint32(0) + return int32(1) + } + p = Xstrchr(tls, name, int32('%')) + scopeid = uint64(0) + if p != 0 && int64(p)-int64(name) < int64(64) { + Xmemcpy(tls, bp+20, name, Uint64FromInt64(int64(p)-int64(name))) + (**(**[64]int8)(__ccgo_up(bp + 20)))[int64(p)-int64(name)] = 0 + name = bp + 20 + } + if Xinet_pton(tls, int32(PF_INET6), name, bp+4) <= 0 { + return 0 + } + if family == int32(PF_INET) { /* wrong family */ + return -int32(5) + } + Xmemcpy(tls, buf+8, bp+4, uint64(16)) + (**(**Taddress)(__ccgo_up(buf))).Ffamily = int32(PF_INET6) + if p != 0 { + p = p + 1 + v1 = p + if BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(v1)))-uint32('0') < uint32(10)) != 0 { + scopeid = Xstrtoull(tls, p, bp+88, int32(10)) + } else { + **(**uintptr)(__ccgo_up(bp + 88)) = p - uintptr(1) + } + if **(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 88)))) != 0 { + if !(Int32FromUint8(**(**Tuint8_t)(__ccgo_up(bp + 4))) == int32(0xfe) && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(bp + 4 + 1)))&int32(0xc0) == int32(0x80)) && !(Int32FromUint8(**(**Tuint8_t)(__ccgo_up(bp + 4))) == int32(0xff) && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(bp + 4 + 1)))&int32(0xf) == int32(0x2)) { + return -int32(2) + } + scopeid = uint64(Xif_nametoindex(tls, p)) + if !(scopeid != 0) { + return -int32(2) + } + } + if scopeid > uint64(0xffffffff) { + return -int32(2) + } + } + (**(**Taddress)(__ccgo_up(buf))).Fscopeid = uint32(scopeid) + return int32(1) +} + +const ABUF_SIZE = 4800 +const DAS_MATCHINGLABEL = 268435456 +const DAS_MATCHINGSCOPE = 536870912 +const DAS_ORDER_SHIFT = 0 +const DAS_PREC_SHIFT = 20 +const DAS_PREFIX_SHIFT = 8 +const DAS_SCOPE_SHIFT = 16 +const DAS_USABLE = 1073741824 +const RR_A = 1 +const RR_AAAA = 28 +const RR_CNAME = 5 + +func _is_valid_hostname(tls *TLS, host uintptr) (r int32) { + var s uintptr + _ = s + if Xstrnlen(tls, host, uint64(255))-uint64(1) >= uint64(254) || Xmbstowcs(tls, uintptr(0), host, uint64(0)) == Uint64FromInt32(-Int32FromInt32(1)) { + return 0 + } + s = host + for { + if !(Int32FromUint8(**(**uint8)(__ccgo_up(s))) >= int32(0x80) || Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('.') || Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('-') || Xisalnum(tls, Int32FromUint8(**(**uint8)(__ccgo_up(s)))) != 0) { + break + } + goto _1 + _1: + ; + s = s + 1 + } + return BoolInt32(!(**(**uint8)(__ccgo_up(s)) != 0)) +} + +func _name_from_null(tls *TLS, buf uintptr, name uintptr, family int32, flags int32) (r int32) { + var cnt, v1 int32 + _, _ = cnt, v1 + cnt = 0 + if name != 0 { + return 0 + } + if flags&int32(AI_PASSIVE) != 0 { + if family != int32(PF_INET6) { + v1 = cnt + cnt = cnt + 1 + **(**Taddress)(__ccgo_up(buf + uintptr(v1)*28)) = Taddress{ + Ffamily: int32(PF_INET), + } + } + if family != int32(PF_INET) { + v1 = cnt + cnt = cnt + 1 + **(**Taddress)(__ccgo_up(buf + uintptr(v1)*28)) = Taddress{ + Ffamily: int32(PF_INET6), + } + } + } else { + if family != int32(PF_INET6) { + v1 = cnt + cnt = cnt + 1 + **(**Taddress)(__ccgo_up(buf + uintptr(v1)*28)) = Taddress{ + Ffamily: int32(PF_INET), + Faddr: [16]Tuint8_t{ + 0: uint8(127), + 3: uint8(1), + }, + } + } + if family != int32(PF_INET) { + v1 = cnt + cnt = cnt + 1 + **(**Taddress)(__ccgo_up(buf + uintptr(v1)*28)) = Taddress{ + Ffamily: int32(PF_INET6), + Faddr: [16]Tuint8_t{ + 15: uint8(1), + }, + } + } + } + return cnt +} + +func _name_from_numeric(tls *TLS, buf uintptr, name uintptr, family int32) (r int32) { + return X__lookup_ipliteral(tls, buf, name, family) +} + +func _name_from_hosts(tls *TLS, buf uintptr, canon uintptr, name uintptr, family int32) (r int32) { + bp := tls.Alloc(1776) + defer tls.Free(1776) + var badfam, cnt, have_canon, v5, v6, v8, v9 int32 + var f, p, z, v1, v2 uintptr + var l Tsize_t + var v11, v12 bool + var _ /* _buf at bp+512 */ [1032]uint8 + var _ /* _f at bp+1544 */ TFILE + var _ /* line at bp+0 */ [512]int8 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = badfam, cnt, f, have_canon, l, p, z, v1, v11, v12, v2, v5, v6, v8, v9 + l = _strlen(tls, name) + cnt = 0 + badfam = 0 + have_canon = 0 + f = X__fopen_rb_ca(tls, __ccgo_ts+1006, bp+1544, bp+512, uint64(1032)) + if !(f != 0) { + switch **(**int32)(__ccgo_up(X__errno_location(tls))) { + case int32(ENOENT): + fallthrough + case int32(ENOTDIR): + fallthrough + case int32(EACCES): + return 0 + default: + return -int32(11) + } + } + for Xfgets(tls, bp, int32(512), f) != 0 && cnt < int32(MAXADDRS) { + v1 = Xstrchr(tls, bp, int32('#')) + p = v1 + if v1 != 0 { + v2 = p + p = p + 1 + **(**int8)(__ccgo_up(v2)) = int8('\n') + **(**int8)(__ccgo_up(p)) = Int8FromInt32(0) + } + p = bp + uintptr(1) + for { + v1 = Xstrstr(tls, p, name) + p = v1 + if v12 = v1 != 0; v12 { + v5 = int32(**(**int8)(__ccgo_up(p + uintptr(-Int32FromInt32(1))))) + v6 = BoolInt32(v5 == int32(' ') || Uint32FromInt32(v5)-uint32('\t') < uint32(5)) + goto _7 + _7: + ; + if v11 = !(v6 != 0); !v11 { + v8 = int32(**(**int8)(__ccgo_up(p + uintptr(l)))) + v9 = BoolInt32(v8 == int32(' ') || Uint32FromInt32(v8)-uint32('\t') < uint32(5)) + goto _10 + _10: + } + } + if !(v12 && (v11 || !(v9 != 0))) { + break + } + goto _3 + _3: + ; + p = p + 1 + } + if !(p != 0) { + continue + } + /* Isolate IP address to parse */ + p = bp + for { + if v11 = **(**int8)(__ccgo_up(p)) != 0; v11 { + v5 = int32(**(**int8)(__ccgo_up(p))) + v6 = BoolInt32(v5 == int32(' ') || Uint32FromInt32(v5)-uint32('\t') < uint32(5)) + goto _16 + _16: + } + if !(v11 && !(v6 != 0)) { + break + } + goto _13 + _13: + ; + p = p + 1 + } + v1 = p + p = p + 1 + **(**int8)(__ccgo_up(v1)) = 0 + switch _name_from_numeric(tls, buf+uintptr(cnt)*28, bp, family) { + case int32(1): + cnt = cnt + 1 + case 0: + continue + default: + badfam = -int32(5) + break + } + if have_canon != 0 { + continue + } + /* Extract first name as canonical name */ + for { + if v11 = **(**int8)(__ccgo_up(p)) != 0; v11 { + v5 = int32(**(**int8)(__ccgo_up(p))) + v6 = BoolInt32(v5 == int32(' ') || Uint32FromInt32(v5)-uint32('\t') < uint32(5)) + goto _22 + _22: + } + if !(v11 && v6 != 0) { + break + } + goto _19 + _19: + ; + p = p + 1 + } + z = p + for { + if v11 = **(**int8)(__ccgo_up(z)) != 0; v11 { + v5 = int32(**(**int8)(__ccgo_up(z))) + v6 = BoolInt32(v5 == int32(' ') || Uint32FromInt32(v5)-uint32('\t') < uint32(5)) + goto _27 + _27: + } + if !(v11 && !(v6 != 0)) { + break + } + goto _24 + _24: + ; + z = z + 1 + } + **(**int8)(__ccgo_up(z)) = 0 + if _is_valid_hostname(tls, p) != 0 { + have_canon = int32(1) + Xmemcpy(tls, canon, p, Uint64FromInt64(int64(z)-int64(p)+int64(1))) + } + } + X__fclose_ca(tls, f) + if cnt != 0 { + v5 = cnt + } else { + v5 = badfam + } + return v5 +} + +type Tdpc_ctx = struct { + Faddrs uintptr + Fcanon uintptr + Fcnt int32 + Frrtype int32 +} + +func _dns_parse_callback1(tls *TLS, c uintptr, rr int32, data uintptr, len1 int32, packet uintptr, plen int32) (r int32) { + bp := tls.Alloc(256) + defer tls.Free(256) + var ctx, v2 uintptr + var family, v1 int32 + var _ /* tmp at bp+0 */ [256]int8 + _, _, _, _ = ctx, family, v1, v2 + ctx = c + if rr == int32(RR_CNAME) { + if X__dn_expand(tls, packet, packet+uintptr(plen), data, bp, int32(256)) > 0 && _is_valid_hostname(tls, bp) != 0 { + Xstrcpy(tls, (*Tdpc_ctx)(unsafe.Pointer(ctx)).Fcanon, bp) + } + return 0 + } + if (*Tdpc_ctx)(unsafe.Pointer(ctx)).Fcnt >= int32(MAXADDRS) { + return 0 + } + if rr != (*Tdpc_ctx)(unsafe.Pointer(ctx)).Frrtype { + return 0 + } + switch rr { + case int32(RR_A): + if len1 != int32(4) { + return -int32(1) + } + family = int32(PF_INET) + case int32(RR_AAAA): + if len1 != int32(16) { + return -int32(1) + } + family = int32(PF_INET6) + break + } + (**(**Taddress)(__ccgo_up((*Tdpc_ctx)(unsafe.Pointer(ctx)).Faddrs + uintptr((*Tdpc_ctx)(unsafe.Pointer(ctx)).Fcnt)*28))).Ffamily = family + (**(**Taddress)(__ccgo_up((*Tdpc_ctx)(unsafe.Pointer(ctx)).Faddrs + uintptr((*Tdpc_ctx)(unsafe.Pointer(ctx)).Fcnt)*28))).Fscopeid = uint32(0) + v2 = ctx + 16 + v1 = *(*int32)(unsafe.Pointer(v2)) + *(*int32)(unsafe.Pointer(v2)) = *(*int32)(unsafe.Pointer(v2)) + 1 + Xmemcpy(tls, (*Tdpc_ctx)(unsafe.Pointer(ctx)).Faddrs+uintptr(v1)*28+8, data, Uint64FromInt32(len1)) + return 0 +} + +func _name_from_dns(tls *TLS, buf uintptr, canon uintptr, name uintptr, family int32, conf uintptr) (r int32) { + bp := tls.Alloc(10240) + defer tls.Free(10240) + var i, nq int32 + var qtypes [2]int32 + var _ /* abuf at bp+560 */ [2][4800]uint8 + var _ /* alens at bp+10200 */ [2]int32 + var _ /* ap at bp+10176 */ [2]uintptr + var _ /* ctx at bp+10208 */ Tdpc_ctx + var _ /* qbuf at bp+0 */ [2][280]uint8 + var _ /* qlens at bp+10192 */ [2]int32 + var _ /* qp at bp+10160 */ [2]uintptr + _, _, _ = i, nq, qtypes + **(**[2]uintptr)(__ccgo_up(bp + 10160)) = [2]uintptr{ + 0: bp, + 1: bp + 1*280, + } + **(**[2]uintptr)(__ccgo_up(bp + 10176)) = [2]uintptr{ + 0: bp + 560, + 1: bp + 560 + 1*4800, + } + nq = 0 + **(**Tdpc_ctx)(__ccgo_up(bp + 10208)) = Tdpc_ctx{ + Faddrs: buf, + Fcanon: canon, + } + i = 0 + for { + if !(i < int32(2)) { + break + } + if family != _afrr[i].Faf { + (**(**[2]int32)(__ccgo_up(bp + 10192)))[nq] = X__res_mkquery(tls, 0, name, int32(1), _afrr[i].Frr, uintptr(0), 0, uintptr(0), bp+uintptr(nq)*280, int32(280)) + if (**(**[2]int32)(__ccgo_up(bp + 10192)))[nq] == -int32(1) { + return 0 + } + qtypes[nq] = _afrr[i].Frr + **(**uint8)(__ccgo_up(bp + uintptr(nq)*280 + 3)) = uint8(0) /* don't need AD flag */ + /* Ensure query IDs are distinct. */ + if nq != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(bp + uintptr(nq)*280))) == Int32FromUint8(**(**uint8)(__ccgo_up(bp))) { + **(**uint8)(__ccgo_up(bp + uintptr(nq)*280)) = **(**uint8)(__ccgo_up(bp + uintptr(nq)*280)) + 1 + } + nq = nq + 1 + } + goto _1 + _1: + ; + i = i + 1 + } + if X__res_msend_rc(tls, nq, bp+10160, bp+10192, bp+10176, bp+10200, int32(4800), conf) < 0 { + return -int32(11) + } + i = 0 + for { + if !(i < nq) { + break + } + if (**(**[2]int32)(__ccgo_up(bp + 10200)))[i] < int32(4) || Int32FromUint8(**(**uint8)(__ccgo_up(bp + 560 + uintptr(i)*4800 + 3)))&int32(15) == int32(2) { + return -int32(3) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(bp + 560 + uintptr(i)*4800 + 3)))&int32(15) == int32(3) { + return 0 + } + if Int32FromUint8(**(**uint8)(__ccgo_up(bp + 560 + uintptr(i)*4800 + 3)))&int32(15) != 0 { + return -int32(4) + } + goto _2 + _2: + ; + i = i + 1 + } + i = nq - int32(1) + for { + if !(i >= 0) { + break + } + (**(**Tdpc_ctx)(__ccgo_up(bp + 10208))).Frrtype = qtypes[i] + if Uint64FromInt32((**(**[2]int32)(__ccgo_up(bp + 10200)))[i]) > uint64(4800) { + (**(**[2]int32)(__ccgo_up(bp + 10200)))[i] = int32(4800) + } + X__dns_parse(tls, bp+560+uintptr(i)*4800, (**(**[2]int32)(__ccgo_up(bp + 10200)))[i], __ccgo_fp(_dns_parse_callback1), bp+10208) + goto _3 + _3: + ; + i = i - 1 + } + if (**(**Tdpc_ctx)(__ccgo_up(bp + 10208))).Fcnt != 0 { + return (**(**Tdpc_ctx)(__ccgo_up(bp + 10208))).Fcnt + } + return -int32(5) +} + +var _afrr = [2]struct { + Faf int32 + Frr int32 +}{ + 0: { + Faf: int32(PF_INET6), + Frr: int32(RR_A), + }, + 1: { + Faf: int32(PF_INET), + Frr: int32(RR_AAAA), + }, +} + +func _name_from_dns_search(tls *TLS, buf uintptr, canon uintptr, name uintptr, family int32) (r int32) { + bp := tls.Alloc(368) + defer tls.Free(368) + var cnt, v5, v6 int32 + var dots, l, v2 Tsize_t + var p, z uintptr + var v12 bool + var _ /* conf at bp+256 */ Tresolvconf + var _ /* search at bp+0 */ [256]int8 + _, _, _, _, _, _, _, _, _ = cnt, dots, l, p, z, v12, v2, v5, v6 + if X__get_resolv_conf(tls, bp+256, bp, uint64(256)) < 0 { + return -int32(1) + } + /* Count dots, suppress search when >=ndots or name ends in + * a dot, which is an explicit request for global scope. */ + v2 = Uint64FromInt32(0) + l = v2 + dots = v2 + for { + if !(**(**int8)(__ccgo_up(name + uintptr(l))) != 0) { + break + } + if int32(**(**int8)(__ccgo_up(name + uintptr(l)))) == int32('.') { + dots = dots + 1 + } + goto _1 + _1: + ; + l = l + 1 + } + if dots >= uint64((**(**Tresolvconf)(__ccgo_up(bp + 256))).Fndots) || int32(**(**int8)(__ccgo_up(name + uintptr(l-uint64(1))))) == int32('.') { + **(**int8)(__ccgo_up(bp)) = 0 + } + /* Strip final dot for canon, fail if multiple trailing dots. */ + if int32(**(**int8)(__ccgo_up(name + uintptr(l-uint64(1))))) == int32('.') { + l = l - 1 + } + if !(l != 0) || int32(**(**int8)(__ccgo_up(name + uintptr(l-uint64(1))))) == int32('.') { + return -int32(2) + } + /* This can never happen; the caller already checked length. */ + if l >= uint64(256) { + return -int32(2) + } + /* Name with search domain appended is setup in canon[]. This both + * provides the desired default canonical name (if the requested + * name is not a CNAME record) and serves as a buffer for passing + * the full requested name to name_from_dns. */ + Xmemcpy(tls, canon, name, l) + **(**int8)(__ccgo_up(canon + uintptr(l))) = int8('.') + p = bp + for { + if !(**(**int8)(__ccgo_up(p)) != 0) { + break + } + for { + v5 = int32(**(**int8)(__ccgo_up(p))) + v6 = BoolInt32(v5 == int32(' ') || Uint32FromInt32(v5)-uint32('\t') < uint32(5)) + goto _7 + _7: + if !(v6 != 0) { + break + } + goto _4 + _4: + ; + p = p + 1 + } + z = p + for { + if v12 = **(**int8)(__ccgo_up(z)) != 0; v12 { + v5 = int32(**(**int8)(__ccgo_up(z))) + v6 = BoolInt32(v5 == int32(' ') || Uint32FromInt32(v5)-uint32('\t') < uint32(5)) + goto _11 + _11: + } + if !(v12 && !(v6 != 0)) { + break + } + goto _8 + _8: + ; + z = z + 1 + } + if z == p { + break + } + if Uint64FromInt64(int64(z)-int64(p)) < uint64(256)-l-uint64(1) { + Xmemcpy(tls, canon+uintptr(l)+uintptr(1), p, Uint64FromInt64(int64(z)-int64(p))) + **(**int8)(__ccgo_up(canon + uintptr(Uint64FromInt64(int64(z)-int64(p)+int64(1))+l))) = 0 + cnt = _name_from_dns(tls, buf, canon, canon, family, bp+256) + if cnt != 0 { + return cnt + } + } + goto _3 + _3: + ; + p = z + } + **(**int8)(__ccgo_up(canon + uintptr(l))) = 0 + return _name_from_dns(tls, buf, canon, name, family, bp+256) +} + +type Tpolicy = struct { + Faddr [16]uint8 + Flen1 uint8 + Fmask uint8 + Fprec uint8 + Flabel uint8 +} + +var _defpolicy = [6]Tpolicy{ + 0: { + Faddr: [16]uint8{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1}, + Flen1: uint8(15), + Fmask: uint8(0xff), + Fprec: uint8(50), + }, + 1: { + Faddr: [16]uint8{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255}, + Flen1: uint8(11), + Fmask: uint8(0xff), + Fprec: uint8(35), + Flabel: uint8(4), + }, + 2: { + Faddr: [16]uint8{' ', 2}, + Flen1: uint8(1), + Fmask: uint8(0xff), + Fprec: uint8(30), + Flabel: uint8(2), + }, + 3: { + Faddr: [16]uint8{' ', 1}, + Flen1: uint8(3), + Fmask: uint8(0xff), + Fprec: uint8(5), + Flabel: uint8(5), + }, + 4: { + Faddr: [16]uint8{252}, + Fmask: uint8(0xfe), + Fprec: uint8(3), + Flabel: uint8(13), + }, + 5: { + Faddr: [16]uint8{}, + Fprec: uint8(40), + Flabel: uint8(1), + }, +} + +func _policyof(tls *TLS, a uintptr) (r uintptr) { + var i int32 + _ = i + i = 0 + for { + if Xmemcmp(tls, a, uintptr(unsafe.Pointer(&_defpolicy))+uintptr(i)*20, uint64(_defpolicy[i].Flen1)) != 0 { + goto _1 + } + if Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a + uintptr(_defpolicy[i].Flen1))))&Int32FromUint8(_defpolicy[i].Fmask) != Int32FromUint8(**(**uint8)(__ccgo_up(uintptr(unsafe.Pointer(&_defpolicy)) + uintptr(i)*20 + uintptr(_defpolicy[i].Flen1)))) { + goto _1 + } + return uintptr(unsafe.Pointer(&_defpolicy)) + uintptr(i)*20 + goto _1 + _1: + ; + i = i + 1 + } + return r +} + +func _labelof(tls *TLS, a uintptr) (r int32) { + return Int32FromUint8((*Tpolicy)(unsafe.Pointer(_policyof(tls, a))).Flabel) +} + +func _scopeof(tls *TLS, a uintptr) (r int32) { + if Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a))) == int32(0xff) { + return Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a + 1))) & int32(15) + } + if Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a))) == int32(0xfe) && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a + 1)))&int32(0xc0) == int32(0x80) { + return int32(2) + } + if **(**Tuint32_t)(__ccgo_up(a)) == uint32(0) && **(**Tuint32_t)(__ccgo_up(a + 1*4)) == uint32(0) && **(**Tuint32_t)(__ccgo_up(a + 2*4)) == uint32(0) && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a + 12))) == 0 && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a + 13))) == 0 && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a + 14))) == 0 && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a + 15))) == int32(1) { + return int32(2) + } + if Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a))) == int32(0xfe) && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a + 1)))&int32(0xc0) == int32(0xc0) { + return int32(5) + } + return int32(14) +} + +func _prefixmatch(tls *TLS, s uintptr, d uintptr) (r int32) { + var i uint32 + _ = i + i = uint32(0) + for { + if !(i < uint32(128) && !((Int32FromUint8(**(**Tuint8_t)(__ccgo_up(s + uintptr(i/uint32(8)))))^Int32FromUint8(**(**Tuint8_t)(__ccgo_up(d + uintptr(i/uint32(8))))))&(Int32FromInt32(128)>>(i%Uint32FromInt32(8))) != 0)) { + break + } + goto _1 + _1: + ; + i = i + 1 + } + return Int32FromUint32(i) +} + +func _addrcmp(tls *TLS, _a uintptr, _b uintptr) (r int32) { + var a, b uintptr + _, _ = a, b + a = _a + b = _b + return (*Taddress)(unsafe.Pointer(b)).Fsortkey - (*Taddress)(unsafe.Pointer(a)).Fsortkey +} + +func X__lookup_name(tls *TLS, buf uintptr, canon uintptr, name uintptr, family int32, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v buf=%v canon=%v name=%v family=%v flags=%v, (%v:)", tls, buf, canon, name, family, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(96) + defer tls.Free(96) + var cnt, dlabel, dprec, dscope, family1, fd, i, j, key, prefixlen, v1 int32 + var da, dpolicy, sa uintptr + var dalen Tsocklen_t + var l Tsize_t + var _ /* cs at bp+0 */ int32 + var _ /* da4 at bp+76 */ Tsockaddr_in + var _ /* da6 at bp+32 */ Tsockaddr_in6 + var _ /* sa4 at bp+60 */ Tsockaddr_in + var _ /* sa6 at bp+4 */ Tsockaddr_in6 + var _ /* salen at bp+92 */ Tsocklen_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = cnt, da, dalen, dlabel, dpolicy, dprec, dscope, family1, fd, i, j, key, l, prefixlen, sa, v1 + cnt = 0 + **(**int8)(__ccgo_up(canon)) = 0 + if name != 0 { + /* reject empty name and check len so it fits into temp bufs */ + l = Xstrnlen(tls, name, uint64(255)) + if l-uint64(1) >= uint64(254) { + return -int32(2) + } + Xmemcpy(tls, canon, name, l+uint64(1)) + } + /* Procedurally, a request for v6 addresses with the v4-mapped + * flag set is like a request for unspecified family, followed + * by filtering of the results. */ + if flags&int32(AI_V4MAPPED) != 0 { + if family == int32(PF_INET6) { + family = PF_UNSPEC + } else { + flags = flags - int32(AI_V4MAPPED) + } + } + /* Try each backend until there's at least one result. */ + cnt = _name_from_null(tls, buf, name, family, flags) + if !(cnt != 0) { + cnt = _name_from_numeric(tls, buf, name, family) + } + if !(cnt != 0) && !(flags&Int32FromInt32(AI_NUMERICHOST) != 0) { + cnt = _name_from_hosts(tls, buf, canon, name, family) + if !(cnt != 0) { + cnt = _name_from_dns_search(tls, buf, canon, name, family) + } + } + if cnt <= 0 { + if cnt != 0 { + v1 = cnt + } else { + v1 = -int32(2) + } + return v1 + } + /* Filter/transform results for v4-mapped lookup, if requested. */ + if flags&int32(AI_V4MAPPED) != 0 { + if !(flags&Int32FromInt32(AI_ALL) != 0) { + /* If any v6 results exist, remove v4 results. */ + i = 0 + for { + if !(i < cnt && (**(**Taddress)(__ccgo_up(buf + uintptr(i)*28))).Ffamily != int32(PF_INET6)) { + break + } + goto _2 + _2: + ; + i = i + 1 + } + if i < cnt { + j = 0 + for { + if !(i < cnt) { + break + } + if (**(**Taddress)(__ccgo_up(buf + uintptr(i)*28))).Ffamily == int32(PF_INET6) { + v1 = j + j = j + 1 + **(**Taddress)(__ccgo_up(buf + uintptr(v1)*28)) = **(**Taddress)(__ccgo_up(buf + uintptr(i)*28)) + } + goto _3 + _3: + ; + i = i + 1 + } + v1 = j + i = v1 + cnt = v1 + } + } + /* Translate any remaining v4 results to v6 */ + i = 0 + for { + if !(i < cnt) { + break + } + if (**(**Taddress)(__ccgo_up(buf + uintptr(i)*28))).Ffamily != int32(PF_INET) { + goto _6 + } + Xmemcpy(tls, buf+uintptr(i)*28+8+uintptr(12), buf+uintptr(i)*28+8, uint64(4)) + Xmemcpy(tls, buf+uintptr(i)*28+8, __ccgo_ts+1017, uint64(12)) + (**(**Taddress)(__ccgo_up(buf + uintptr(i)*28))).Ffamily = int32(PF_INET6) + goto _6 + _6: + ; + i = i + 1 + } + } + /* No further processing is needed if there are fewer than 2 + * results or if there are only IPv4 results. */ + if cnt < int32(2) || family == int32(PF_INET) { + return cnt + } + i = 0 + for { + if !(i < cnt) { + break + } + if (**(**Taddress)(__ccgo_up(buf + uintptr(i)*28))).Ffamily != int32(PF_INET) { + break + } + goto _7 + _7: + ; + i = i + 1 + } + if i == cnt { + return cnt + } + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp) + /* The following implements a subset of RFC 3484/6724 destination + * address selection by generating a single 31-bit sort key for + * each address. Rules 3, 4, and 7 are omitted for having + * excessive runtime and code size cost and dubious benefit. + * So far the label/precedence table cannot be customized. */ + i = 0 + for { + if !(i < cnt) { + break + } + family1 = (**(**Taddress)(__ccgo_up(buf + uintptr(i)*28))).Ffamily + key = 0 + **(**Tsockaddr_in6)(__ccgo_up(bp + 4)) = Tsockaddr_in6{} + **(**Tsockaddr_in6)(__ccgo_up(bp + 32)) = Tsockaddr_in6{ + Fsin6_family: uint16(PF_INET6), + Fsin6_port: uint16(65535), + Fsin6_scope_id: (**(**Taddress)(__ccgo_up(buf + uintptr(i)*28))).Fscopeid, + } + **(**Tsockaddr_in)(__ccgo_up(bp + 60)) = Tsockaddr_in{} + **(**Tsockaddr_in)(__ccgo_up(bp + 76)) = Tsockaddr_in{ + Fsin_family: uint16(PF_INET), + Fsin_port: uint16(65535), + } + if family1 == int32(PF_INET6) { + Xmemcpy(tls, bp+32+8, buf+uintptr(i)*28+8, uint64(16)) + da = bp + 32 + dalen = uint32(28) + sa = bp + 4 + **(**Tsocklen_t)(__ccgo_up(bp + 92)) = uint32(28) + } else { + Xmemcpy(tls, bp+4+8, __ccgo_ts+1017, uint64(12)) + Xmemcpy(tls, bp+32+8+uintptr(12), buf+uintptr(i)*28+8, uint64(4)) + Xmemcpy(tls, bp+32+8, __ccgo_ts+1017, uint64(12)) + Xmemcpy(tls, bp+32+8+uintptr(12), buf+uintptr(i)*28+8, uint64(4)) + Xmemcpy(tls, bp+76+4, buf+uintptr(i)*28+8, uint64(4)) + da = bp + 76 + dalen = uint32(16) + sa = bp + 60 + **(**Tsocklen_t)(__ccgo_up(bp + 92)) = uint32(16) + } + dpolicy = _policyof(tls, bp+32+8) + dscope = _scopeof(tls, bp+32+8) + dlabel = Int32FromUint8((*Tpolicy)(unsafe.Pointer(dpolicy)).Flabel) + dprec = Int32FromUint8((*Tpolicy)(unsafe.Pointer(dpolicy)).Fprec) + prefixlen = 0 + fd = Xsocket(tls, family1, Int32FromInt32(SOCK_DGRAM)|Int32FromInt32(SOCK_CLOEXEC), int32(IPPROTO_UDP)) + if fd >= 0 { + if !(Xconnect(tls, fd, da, dalen) != 0) { + key = key | int32(DAS_USABLE) + if !(Xgetsockname(tls, fd, sa, bp+92) != 0) { + if family1 == int32(PF_INET) { + Xmemcpy(tls, bp+4+8+uintptr(12), bp+60+4, uint64(4)) + } + if dscope == _scopeof(tls, bp+4+8) { + key = key | int32(DAS_MATCHINGSCOPE) + } + if dlabel == _labelof(tls, bp+4+8) { + key = key | int32(DAS_MATCHINGLABEL) + } + prefixlen = _prefixmatch(tls, bp+4+8, bp+32+8) + } + } + Xclose(tls, fd) + } + key = key | dprec< %v", r) }() + } + bp := tls.Alloc(1408) + defer tls.Free(1408) + var cnt, v1, v2 int32 + var f, p, v3, v4 uintptr + var l Tsize_t + var port uint64 + var v10 bool + var _ /* _buf at bp+136 */ [1032]uint8 + var _ /* _f at bp+1168 */ TFILE + var _ /* line at bp+0 */ [128]int8 + var _ /* z at bp+128 */ uintptr + _, _, _, _, _, _, _, _, _, _ = cnt, f, l, p, port, v1, v10, v2, v3, v4 + cnt = 0 + **(**uintptr)(__ccgo_up(bp + 128)) = __ccgo_ts + port = uint64(0) + switch socktype { + case int32(SOCK_STREAM): + switch proto { + case 0: + proto = int32(IPPROTO_TCP) + fallthrough + case int32(IPPROTO_TCP): + default: + return -int32(8) + } + case int32(SOCK_DGRAM): + switch proto { + case 0: + proto = int32(IPPROTO_UDP) + fallthrough + case int32(IPPROTO_UDP): + default: + return -int32(8) + } + fallthrough + case 0: + default: + if name != 0 { + return -int32(8) + } + (**(**Tservice)(__ccgo_up(buf))).Fport = uint16(0) + (**(**Tservice)(__ccgo_up(buf))).Fproto = Uint8FromInt32(proto) + (**(**Tservice)(__ccgo_up(buf))).Fsocktype = Uint8FromInt32(socktype) + return int32(1) + } + if name != 0 { + if !(**(**int8)(__ccgo_up(name)) != 0) { + return -int32(8) + } + port = Xstrtoul(tls, name, bp+128, int32(10)) + } + if !(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 128)))) != 0) { + if port > uint64(65535) { + return -int32(8) + } + if proto != int32(IPPROTO_UDP) { + (**(**Tservice)(__ccgo_up(buf + uintptr(cnt)*4))).Fport = uint16(port) + (**(**Tservice)(__ccgo_up(buf + uintptr(cnt)*4))).Fsocktype = uint8(SOCK_STREAM) + v1 = cnt + cnt = cnt + 1 + (**(**Tservice)(__ccgo_up(buf + uintptr(v1)*4))).Fproto = uint8(IPPROTO_TCP) + } + if proto != int32(IPPROTO_TCP) { + (**(**Tservice)(__ccgo_up(buf + uintptr(cnt)*4))).Fport = uint16(port) + (**(**Tservice)(__ccgo_up(buf + uintptr(cnt)*4))).Fsocktype = uint8(SOCK_DGRAM) + v1 = cnt + cnt = cnt + 1 + (**(**Tservice)(__ccgo_up(buf + uintptr(v1)*4))).Fproto = uint8(IPPROTO_UDP) + } + return cnt + } + if flags&int32(AI_NUMERICSERV) != 0 { + return -int32(2) + } + l = _strlen(tls, name) + f = X__fopen_rb_ca(tls, __ccgo_ts+1030, bp+1168, bp+136, uint64(1032)) + if !(f != 0) { + switch **(**int32)(__ccgo_up(X__errno_location(tls))) { + case int32(ENOENT): + fallthrough + case int32(ENOTDIR): + fallthrough + case int32(EACCES): + return -int32(8) + default: + return -int32(11) + } + } + for Xfgets(tls, bp, int32(128), f) != 0 && cnt < int32(MAXSERVS) { + v3 = Xstrchr(tls, bp, int32('#')) + p = v3 + if v3 != 0 { + v4 = p + p = p + 1 + **(**int8)(__ccgo_up(v4)) = int8('\n') + **(**int8)(__ccgo_up(p)) = Int8FromInt32(0) + } + /* Find service name */ + p = bp + for { + v3 = Xstrstr(tls, p, name) + p = v3 + if !(v3 != 0) { + break + } + if v10 = p > bp; v10 { + v1 = int32(**(**int8)(__ccgo_up(p + uintptr(-Int32FromInt32(1))))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _9 + _9: + } + if v10 && !(v2 != 0) { + goto _5 + } + if v10 = **(**int8)(__ccgo_up(p + uintptr(l))) != 0; v10 { + v1 = int32(**(**int8)(__ccgo_up(p + uintptr(l)))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _13 + _13: + } + if v10 && !(v2 != 0) { + goto _5 + } + break + goto _5 + _5: + ; + p = p + 1 + } + if !(p != 0) { + continue + } + /* Skip past canonical name at beginning of line */ + p = bp + for { + if v10 = **(**int8)(__ccgo_up(p)) != 0; v10 { + v1 = int32(**(**int8)(__ccgo_up(p))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _18 + _18: + } + if !(v10 && !(v2 != 0)) { + break + } + goto _15 + _15: + ; + p = p + 1 + } + port = Xstrtoul(tls, p, bp+128, int32(10)) + if port > uint64(65535) || **(**uintptr)(__ccgo_up(bp + 128)) == p { + continue + } + if !(Xstrncmp(tls, **(**uintptr)(__ccgo_up(bp + 128)), __ccgo_ts+1044, uint64(4)) != 0) { + if proto == int32(IPPROTO_TCP) { + continue + } + (**(**Tservice)(__ccgo_up(buf + uintptr(cnt)*4))).Fport = uint16(port) + (**(**Tservice)(__ccgo_up(buf + uintptr(cnt)*4))).Fsocktype = uint8(SOCK_DGRAM) + v1 = cnt + cnt = cnt + 1 + (**(**Tservice)(__ccgo_up(buf + uintptr(v1)*4))).Fproto = uint8(IPPROTO_UDP) + } + if !(Xstrncmp(tls, **(**uintptr)(__ccgo_up(bp + 128)), __ccgo_ts+1049, uint64(4)) != 0) { + if proto == int32(IPPROTO_UDP) { + continue + } + (**(**Tservice)(__ccgo_up(buf + uintptr(cnt)*4))).Fport = uint16(port) + (**(**Tservice)(__ccgo_up(buf + uintptr(cnt)*4))).Fsocktype = uint8(SOCK_STREAM) + v1 = cnt + cnt = cnt + 1 + (**(**Tservice)(__ccgo_up(buf + uintptr(v1)*4))).Fproto = uint8(IPPROTO_TCP) + } + } + X__fclose_ca(tls, f) + if cnt > 0 { + v1 = cnt + } else { + v1 = -int32(8) + } + return v1 +} + +func ___netlink_enumerate(tls *TLS, fd int32, seq uint32, type1 int32, af int32, __ccgo_fp_cb uintptr, ctx uintptr) (r1 int32) { + bp := tls.Alloc(8192) + defer tls.Free(8192) + var h uintptr + var r, ret int32 + var _ /* u at bp+0 */ struct { + Freq [0]struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + } + Freply [0]Tnlmsghdr + Fbuf [8192]Tuint8_t + } + _, _, _ = h, r, ret + Xmemset(tls, bp, 0, uint64(20)) + (*(*struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + })(unsafe.Pointer(&**(**struct { + Freq [0]struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + } + Freply [0]Tnlmsghdr + Fbuf [8192]Tuint8_t + })(__ccgo_up(bp))))).Fnlh.Fnlmsg_len = uint32(20) + (*(*struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + })(unsafe.Pointer(&**(**struct { + Freq [0]struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + } + Freply [0]Tnlmsghdr + Fbuf [8192]Tuint8_t + })(__ccgo_up(bp))))).Fnlh.Fnlmsg_type = Uint16FromInt32(type1) + (*(*struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + })(unsafe.Pointer(&**(**struct { + Freq [0]struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + } + Freply [0]Tnlmsghdr + Fbuf [8192]Tuint8_t + })(__ccgo_up(bp))))).Fnlh.Fnlmsg_flags = Uint16FromInt32(Int32FromInt32(NLM_F_ROOT) | Int32FromInt32(NLM_F_MATCH) | Int32FromInt32(NLM_F_REQUEST)) + (*(*struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + })(unsafe.Pointer(&**(**struct { + Freq [0]struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + } + Freply [0]Tnlmsghdr + Fbuf [8192]Tuint8_t + })(__ccgo_up(bp))))).Fnlh.Fnlmsg_seq = seq + (*(*struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + })(unsafe.Pointer(&**(**struct { + Freq [0]struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + } + Freply [0]Tnlmsghdr + Fbuf [8192]Tuint8_t + })(__ccgo_up(bp))))).Fg.Frtgen_family = Uint8FromInt32(af) + r = int32(Xsend(tls, fd, bp, uint64(20), 0)) + if r < 0 { + return r + } + for int32(1) != 0 { + r = int32(Xrecv(tls, fd, bp, uint64(8192), int32(MSG_DONTWAIT))) + if r <= 0 { + return -int32(1) + } + h = bp + for { + if !(Uint64FromInt64(int64(bp+uintptr(r))-int64(h)) >= uint64(16)) { + break + } + if Int32FromUint16((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_type) == int32(NLMSG_DONE) { + return 0 + } + if Int32FromUint16((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_type) == int32(NLMSG_ERROR) { + return -int32(1) + } + ret = (*(*func(*TLS, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cb})))(tls, ctx, h) + if ret != 0 { + return ret + } + goto _1 + _1: + ; + h = h + uintptr(((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_len+Uint32FromInt32(3))&Uint32FromInt32(^Int32FromInt32(3))) + } + } + return r1 +} + +type t__ccgo_fp__X__rtnetlink_enumerate_2 = func(*TLS, uintptr, uintptr) int32 + +func X__rtnetlink_enumerate(tls *TLS, link_af int32, addr_af int32, __ccgo_fp_cb uintptr, ctx uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v link_af=%v addr_af=%v __ccgo_fp_cb=%v ctx=%v, (%v:)", tls, link_af, addr_af, __ccgo_fp_cb, ctx, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var fd, r int32 + _, _ = fd, r + fd = Xsocket(tls, int32(PF_NETLINK), Int32FromInt32(SOCK_RAW)|Int32FromInt32(SOCK_CLOEXEC), NETLINK_ROUTE) + if fd < 0 { + return -int32(1) + } + r = ___netlink_enumerate(tls, fd, uint32(1), int32(RTM_GETLINK), link_af, __ccgo_fp_cb, ctx) + if !(r != 0) { + r = ___netlink_enumerate(tls, fd, uint32(2), int32(RTM_GETADDR), addr_af, __ccgo_fp_cb, ctx) + } + X__syscall1(tls, int64(SYS_close), int64(fd)) + return r +} + +func Xgetnetbyaddr(tls *TLS, net Tuint32_t, type1 int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v net=%v type1=%v, (%v:)", tls, net, type1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(0) +} + +func Xgetnetbyname(tls *TLS, name uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(0) +} + +func Xns_get16(tls *TLS, cp uintptr) (r uint32) { + if __ccgo_strace { + trc("tls=%v cp=%v, (%v:)", tls, cp, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(cp)))< %v", r) }() + } + return uint64(uint32(**(**uint8)(__ccgo_up(cp)))<> int32(8)) + v1 = cp + cp = cp + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(s) +} + +func Xns_put32(tls *TLS, l uint64, cp uintptr) { + if __ccgo_strace { + trc("tls=%v l=%v cp=%v, (%v:)", tls, l, cp, origin(2)) + } + var v1 uintptr + _ = v1 + v1 = cp + cp = cp + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(l >> int32(24)) + v1 = cp + cp = cp + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(l >> int32(16)) + v1 = cp + cp = cp + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(l >> int32(8)) + v1 = cp + cp = cp + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(l) +} + +func Xns_initparse(tls *TLS, msg uintptr, msglen int32, handle uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v msg=%v msglen=%v handle=%v, (%v:)", tls, msg, msglen, handle, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var i, r int32 + _, _ = i, r + (*Tns_msg)(unsafe.Pointer(handle)).F_msg = msg + (*Tns_msg)(unsafe.Pointer(handle)).F_eom = msg + uintptr(msglen) + if msglen < (Int32FromInt32(2)+int32(_ns_s_max))*Int32FromInt32(NS_INT16SZ) { + goto bad + } + msg = msg + uintptr(2) + (*Tns_msg)(unsafe.Pointer(handle)).F_id = uint16(Xns_get16(tls, msg-uintptr(2))) + msg = msg + uintptr(2) + (*Tns_msg)(unsafe.Pointer(handle)).F_flags = uint16(Xns_get16(tls, msg-uintptr(2))) + i = 0 + for { + if !(i < int32(_ns_s_max)) { + break + } + msg = msg + uintptr(2) + **(**Tuint16_t)(__ccgo_up(handle + 20 + uintptr(i)*2)) = uint16(Xns_get16(tls, msg-uintptr(2))) + goto _1 + _1: + ; + i = i + 1 + } + i = 0 + for { + if !(i < int32(_ns_s_max)) { + break + } + if **(**Tuint16_t)(__ccgo_up(handle + 20 + uintptr(i)*2)) != 0 { + **(**uintptr)(__ccgo_up(handle + 32 + uintptr(i)*8)) = msg + r = Xns_skiprr(tls, msg, (*Tns_msg)(unsafe.Pointer(handle)).F_eom, i, Int32FromUint16(**(**Tuint16_t)(__ccgo_up(handle + 20 + uintptr(i)*2)))) + if r < 0 { + return -int32(1) + } + msg = msg + uintptr(r) + } else { + **(**uintptr)(__ccgo_up(handle + 32 + uintptr(i)*8)) = UintptrFromInt32(0) + } + goto _2 + _2: + ; + i = i + 1 + } + if msg != (*Tns_msg)(unsafe.Pointer(handle)).F_eom { + goto bad + } + (*Tns_msg)(unsafe.Pointer(handle)).F_sect = int32(_ns_s_max) + (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum = -int32(1) + (*Tns_msg)(unsafe.Pointer(handle)).F_msg_ptr = UintptrFromInt32(0) + return 0 + goto bad +bad: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EMSGSIZE) + return -int32(1) +} + +func Xns_skiprr(tls *TLS, ptr uintptr, eom uintptr, section Tns_sect, count int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v ptr=%v eom=%v section=%v count=%v, (%v:)", tls, ptr, eom, section, count, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var p uintptr + var r, v1 int32 + _, _, _ = p, r, v1 + p = ptr + for { + v1 = count + count = count - 1 + if !(v1 != 0) { + break + } + r = Xdn_skipname(tls, p, eom) + if r < 0 { + goto bad + } + if int64(r+Int32FromInt32(2)*Int32FromInt32(NS_INT16SZ)) > int64(eom)-int64(p) { + goto bad + } + p = p + uintptr(r+Int32FromInt32(2)*Int32FromInt32(NS_INT16SZ)) + if section != int32(_ns_s_qd) { + if int64(Int32FromInt32(NS_INT32SZ)+Int32FromInt32(NS_INT16SZ)) > int64(eom)-int64(p) { + goto bad + } + p = p + uintptr(NS_INT32SZ) + p = p + uintptr(2) + r = Int32FromUint32(Xns_get16(tls, p-uintptr(2))) + if int64(r) > int64(eom)-int64(p) { + goto bad + } + p = p + uintptr(r) + } + } + return int32(int64(p) - int64(ptr)) + goto bad +bad: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EMSGSIZE) + return -int32(1) +} + +func Xns_parserr(tls *TLS, handle uintptr, section Tns_sect, rrnum int32, rr uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v handle=%v section=%v rrnum=%v rr=%v, (%v:)", tls, handle, section, rrnum, rr, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + var v1 uintptr + _, _ = r, v1 + if section < 0 || section >= int32(_ns_s_max) { + goto bad + } + if section != (*Tns_msg)(unsafe.Pointer(handle)).F_sect { + (*Tns_msg)(unsafe.Pointer(handle)).F_sect = section + (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum = 0 + (*Tns_msg)(unsafe.Pointer(handle)).F_msg_ptr = **(**uintptr)(__ccgo_up(handle + 32 + uintptr(section)*8)) + } + if rrnum == -int32(1) { + rrnum = (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum + } + if rrnum < 0 || rrnum >= Int32FromUint16(**(**Tuint16_t)(__ccgo_up(handle + 20 + uintptr(section)*2))) { + goto bad + } + if rrnum < (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum { + (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum = 0 + (*Tns_msg)(unsafe.Pointer(handle)).F_msg_ptr = **(**uintptr)(__ccgo_up(handle + 32 + uintptr(section)*8)) + } + if rrnum > (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum { + r = Xns_skiprr(tls, (*Tns_msg)(unsafe.Pointer(handle)).F_msg_ptr, (*Tns_msg)(unsafe.Pointer(handle)).F_eom, section, rrnum-(*Tns_msg)(unsafe.Pointer(handle)).F_rrnum) + if r < 0 { + return -int32(1) + } + **(**uintptr)(__ccgo_up(handle + 72)) += uintptr(r) + (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum = rrnum + } + r = Xns_name_uncompress(tls, (*Tns_msg)(unsafe.Pointer(handle)).F_msg, (*Tns_msg)(unsafe.Pointer(handle)).F_eom, (*Tns_msg)(unsafe.Pointer(handle)).F_msg_ptr, rr, uint64(NS_MAXDNAME)) + if r < 0 { + return -int32(1) + } + **(**uintptr)(__ccgo_up(handle + 72)) += uintptr(r) + if int64(Int32FromInt32(2)*Int32FromInt32(NS_INT16SZ)) > int64((*Tns_msg)(unsafe.Pointer(handle)).F_eom)-int64((*Tns_msg)(unsafe.Pointer(handle)).F_msg_ptr) { + goto size + } + v1 = handle + 72 + *(*uintptr)(unsafe.Pointer(v1)) += uintptr(2) + (*Tns_rr)(unsafe.Pointer(rr)).Ftype1 = uint16(Xns_get16(tls, *(*uintptr)(unsafe.Pointer(v1))-uintptr(2))) + v1 = handle + 72 + *(*uintptr)(unsafe.Pointer(v1)) += uintptr(2) + (*Tns_rr)(unsafe.Pointer(rr)).Frr_class = uint16(Xns_get16(tls, *(*uintptr)(unsafe.Pointer(v1))-uintptr(2))) + if section != int32(_ns_s_qd) { + if int64(Int32FromInt32(NS_INT32SZ)+Int32FromInt32(NS_INT16SZ)) > int64((*Tns_msg)(unsafe.Pointer(handle)).F_eom)-int64((*Tns_msg)(unsafe.Pointer(handle)).F_msg_ptr) { + goto size + } + v1 = handle + 72 + *(*uintptr)(unsafe.Pointer(v1)) += uintptr(4) + (*Tns_rr)(unsafe.Pointer(rr)).Fttl = uint32(Xns_get32(tls, *(*uintptr)(unsafe.Pointer(v1))-uintptr(4))) + v1 = handle + 72 + *(*uintptr)(unsafe.Pointer(v1)) += uintptr(2) + (*Tns_rr)(unsafe.Pointer(rr)).Frdlength = uint16(Xns_get16(tls, *(*uintptr)(unsafe.Pointer(v1))-uintptr(2))) + if Int64FromUint16((*Tns_rr)(unsafe.Pointer(rr)).Frdlength) > int64((*Tns_msg)(unsafe.Pointer(handle)).F_eom)-int64((*Tns_msg)(unsafe.Pointer(handle)).F_msg_ptr) { + goto size + } + (*Tns_rr)(unsafe.Pointer(rr)).Frdata = (*Tns_msg)(unsafe.Pointer(handle)).F_msg_ptr + **(**uintptr)(__ccgo_up(handle + 72)) += uintptr((*Tns_rr)(unsafe.Pointer(rr)).Frdlength) + } else { + (*Tns_rr)(unsafe.Pointer(rr)).Fttl = uint32(0) + (*Tns_rr)(unsafe.Pointer(rr)).Frdlength = uint16(0) + (*Tns_rr)(unsafe.Pointer(rr)).Frdata = UintptrFromInt32(0) + } + (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum = (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum + 1 + if (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum > Int32FromUint16(**(**Tuint16_t)(__ccgo_up(handle + 20 + uintptr(section)*2))) { + (*Tns_msg)(unsafe.Pointer(handle)).F_sect = section + int32(1) + if (*Tns_msg)(unsafe.Pointer(handle)).F_sect == int32(_ns_s_max) { + (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum = -int32(1) + (*Tns_msg)(unsafe.Pointer(handle)).F_msg_ptr = UintptrFromInt32(0) + } else { + (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum = 0 + } + } + return 0 + goto bad +bad: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENODEV) + return -int32(1) + goto size +size: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EMSGSIZE) + return -int32(1) +} + +func Xns_name_uncompress(tls *TLS, msg uintptr, eom uintptr, src uintptr, dst uintptr, dstsiz Tsize_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v msg=%v eom=%v src=%v dst=%v dstsiz=%v, (%v:)", tls, msg, eom, src, dst, dstsiz, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + r = Xdn_expand(tls, msg, eom, src, dst, Int32FromUint64(dstsiz)) + if r < 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EMSGSIZE) + } + return r +} + +func Xntohl(tls *TLS, n Tuint32_t) (r Tuint32_t) { + if __ccgo_strace { + trc("tls=%v n=%v, (%v:)", tls, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var u struct { + Fc [0]int8 + Fi int32 + } + var v1 uint32 + var v2, v3 Tuint32_t + _, _, _, _ = u, v1, v2, v3 + u = *(*struct { + Fc [0]int8 + Fi int32 + })(unsafe.Pointer(&struct{ f int32 }{f: int32(1)})) + if *(*int8)(unsafe.Pointer(&u)) != 0 { + v2 = n + v3 = v2>>int32(24) | v2>>int32(8)&uint32(0xff00) | v2< %v", r) }() + } + var u struct { + Fc [0]int8 + Fi int32 + } + var v1 int32 + var v2, v3 Tuint16_t + _, _, _, _ = u, v1, v2, v3 + u = *(*struct { + Fc [0]int8 + Fi int32 + })(unsafe.Pointer(&struct{ f int32 }{f: int32(1)})) + if *(*int8)(unsafe.Pointer(&u)) != 0 { + v2 = n + v3 = Uint16FromInt32(Int32FromUint16(v2)<>int32(8)) + goto _4 + _4: + v1 = Int32FromUint16(v3) + } else { + v1 = Int32FromUint16(n) + } + return Uint16FromInt32(v1) +} + +/* do we really need all these?? */ + +var _idx int32 +var _protos = [239]uint8{0, 'i', 'p', 0, 1, 'i', 'c', 'm', 'p', 0, 2, 'i', 'g', 'm', 'p', 0, 3, 'g', 'g', 'p', 0, 4, 'i', 'p', 'e', 'n', 'c', 'a', 'p', 0, 5, 's', 't', 0, 6, 't', 'c', 'p', 0, 8, 'e', 'g', 'p', 0, 12, 'p', 'u', 'p', 0, 17, 'u', 'd', 'p', 0, 20, 'h', 'm', 'p', 0, 22, 'x', 'n', 's', '-', 'i', 'd', 'p', 0, 27, 'r', 'd', 'p', 0, 29, 'i', 's', 'o', '-', 't', 'p', '4', 0, '$', 'x', 't', 'p', 0, '%', 'd', 'd', 'p', 0, '&', 'i', 'd', 'p', 'r', '-', 'c', 'm', 't', 'p', 0, ')', 'i', 'p', 'v', '6', 0, '+', 'i', 'p', 'v', '6', '-', 'r', 'o', 'u', 't', 'e', 0, ',', 'i', 'p', 'v', '6', '-', 'f', 'r', 'a', 'g', 0, '-', 'i', 'd', 'r', 'p', 0, '.', 'r', 's', 'v', 'p', 0, '/', 'g', 'r', 'e', 0, '2', 'e', 's', 'p', 0, '3', 'a', 'h', 0, '9', 's', 'k', 'i', 'p', 0, ':', 'i', 'p', 'v', '6', '-', 'i', 'c', 'm', 'p', 0, ';', 'i', 'p', 'v', '6', '-', 'n', 'o', 'n', 'x', 't', 0, '<', 'i', 'p', 'v', '6', '-', 'o', 'p', 't', 's', 0, 'I', 'r', 's', 'p', 'f', 0, 'Q', 'v', 'm', 't', 'p', 0, 'Y', 'o', 's', 'p', 'f', 0, '^', 'i', 'p', 'i', 'p', 0, 'b', 'e', 'n', 'c', 'a', 'p', 0, 'g', 'p', 'i', 'm', 0, 255, 'r', 'a', 'w'} + +func Xendprotoent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + _idx = 0 +} + +func Xsetprotoent(tls *TLS, stayopen int32) { + if __ccgo_strace { + trc("tls=%v stayopen=%v, (%v:)", tls, stayopen, origin(2)) + } + _idx = 0 +} + +func Xgetprotoent(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + if Uint64FromInt32(_idx) >= uint64(239) { + return UintptrFromInt32(0) + } + _p.Fp_proto = Int32FromUint8(_protos[_idx]) + _p.Fp_name = uintptr(unsafe.Pointer(&_protos)) + uintptr(_idx+int32(1)) + _p.Fp_aliases = uintptr(unsafe.Pointer(&_aliases)) + _idx = Int32FromUint64(uint64(_idx) + (_strlen(tls, _p.Fp_name) + Uint64FromInt32(2))) + return uintptr(unsafe.Pointer(&_p)) +} + +var _p Tprotoent + +var _aliases uintptr + +func Xgetprotobyname(tls *TLS, name uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + var p uintptr + _ = p + Xendprotoent(tls) + for cond := true; cond; cond = p != 0 && Xstrcmp(tls, name, (*Tprotoent)(unsafe.Pointer(p)).Fp_name) != 0 { + p = Xgetprotoent(tls) + } + return p +} + +func Xgetprotobynumber(tls *TLS, num int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v num=%v, (%v:)", tls, num, origin(2)) + defer func() { trc("-> %v", r) }() + } + var p uintptr + _ = p + Xendprotoent(tls) + for cond := true; cond; cond = p != 0 && (*Tprotoent)(unsafe.Pointer(p)).Fp_proto != num { + p = Xgetprotoent(tls) + } + return p +} + +func Xrecv(tls *TLS, fd int32, buf uintptr, len1 Tsize_t, flags int32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v len1=%v flags=%v, (%v:)", tls, fd, buf, len1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xrecvfrom(tls, fd, buf, len1, flags, uintptr(0), uintptr(0)) +} + +func Xrecvfrom(tls *TLS, fd int32, buf uintptr, len1 Tsize_t, flags int32, addr uintptr, alen uintptr) (r1 Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v len1=%v flags=%v addr=%v alen=%v, (%v:)", tls, fd, buf, len1, flags, addr, alen, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v8 int64 + var v1 int32 + var v2, v3, v4, v5, v6, v7 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _ = r, v1, v2, v3, v4, v5, v6, v7, v8 + v1 = int32(SYS_recvfrom) + _ = int32(__SC_recvfrom) + v2 = int64(fd) + v3 = int64(buf) + v4 = Int64FromUint64(len1) + v5 = int64(flags) + v6 = int64(addr) + v7 = int64(alen) + if int32(1) != 0 { + r = ___syscall_cp(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _9 + } + v8 = r + goto _9 +_9: + return X__syscall_ret(tls, Uint64FromInt64(v8)) +} + +func Xrecvmmsg(tls *TLS, fd int32, msgvec uintptr, vlen uint32, flags uint32, timeout uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v msgvec=%v vlen=%v flags=%v timeout=%v, (%v:)", tls, fd, msgvec, vlen, flags, timeout, origin(2)) + defer func() { trc("-> %v", r) }() + } + var i uint32 + var mh uintptr + var v2 int32 + _, _, _ = i, mh, v2 + mh = msgvec + i = vlen + for { + if !(i != 0) { + break + } + v2 = Int32FromInt32(0) + (*Tmmsghdr)(unsafe.Pointer(mh)).Fmsg_hdr.F__pad2 = v2 + (*Tmmsghdr)(unsafe.Pointer(mh)).Fmsg_hdr.F__pad1 = v2 + goto _1 + _1: + ; + i = i - 1 + mh += 64 + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_recvmmsg), int64(fd), int64(msgvec), Int64FromUint32(vlen), Int64FromUint32(flags), int64(timeout), 0)))) +} + +func X__convert_scm_timestamps(tls *TLS, msg uintptr, csize Tsocklen_t) { + if __ccgo_strace { + trc("tls=%v msg=%v csize=%v, (%v:)", tls, msg, csize, origin(2)) + } + bp := tls.Alloc(32) + defer tls.Free(32) + var cmsg, last, v2 uintptr + var type1 int32 + var _ /* tmp at bp+0 */ int64 + var _ /* tvts at bp+8 */ [2]int64 + _, _, _, _ = cmsg, last, type1, v2 + if true { + return + } + if !((*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_control != 0) || !((*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_controllen != 0) { + return + } + last = uintptr(0) + type1 = 0 + if uint64((*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_controllen) >= uint64(16) { + v2 = (*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_control + } else { + v2 = UintptrFromInt32(0) + } + cmsg = v2 + for { + if !(cmsg != 0) { + break + } + if (*Tcmsghdr)(unsafe.Pointer(cmsg)).Fcmsg_level == int32(SOL_SOCKET) { + switch (*Tcmsghdr)(unsafe.Pointer(cmsg)).Fcmsg_type { + case int32(SO_TIMESTAMP_OLD): + goto _3 + case int32(SO_TIMESTAMPNS_OLD): + goto _4 + } + goto _5 + _3: + ; + if type1 != 0 { + goto _5 + } + type1 = int32(SO_TIMESTAMP) + goto common + _4: + ; + type1 = int32(SO_TIMESTAMPNS) + goto common + common: + ; + Xmemcpy(tls, bp, cmsg+UintptrFromInt32(1)*16, uint64(8)) + (**(**[2]int64)(__ccgo_up(bp + 8)))[0] = int64(**(**int64)(__ccgo_up(bp))) + Xmemcpy(tls, bp, cmsg+UintptrFromInt32(1)*16+uintptr(8), uint64(8)) + (**(**[2]int64)(__ccgo_up(bp + 8)))[int32(1)] = int64(**(**int64)(__ccgo_up(bp))) + goto _5 + _5: + } + last = cmsg + goto _1 + _1: + ; + if uint64((*Tcmsghdr)(unsafe.Pointer(cmsg)).Fcmsg_len) < uint64(16) || (uint64((*Tcmsghdr)(unsafe.Pointer(cmsg)).Fcmsg_len)+uint64(8)-uint64(1))&Uint64FromInt64(^Int64FromUint64(Uint64FromInt64(8)-Uint64FromInt32(1)))+uint64(16) >= Uint64FromInt64(int64((*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_control+uintptr((*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_controllen))-int64(cmsg)) { + v2 = uintptr(0) + } else { + v2 = cmsg + uintptr((uint64((*Tcmsghdr)(unsafe.Pointer(cmsg)).Fcmsg_len)+Uint64FromInt64(8)-Uint64FromInt32(1))&Uint64FromInt64(^Int64FromUint64(Uint64FromInt64(8)-Uint64FromInt32(1)))) + } + cmsg = v2 + } + if !(last != 0) || !(type1 != 0) { + return + } + if (Uint64FromInt64(16)+Uint64FromInt64(8)-Uint64FromInt32(1)) & ^(Uint64FromInt64(8)-Uint64FromInt32(1)) + (Uint64FromInt64(16)+Uint64FromInt64(8)-Uint64FromInt32(1)) & ^(Uint64FromInt64(8)-Uint64FromInt32(1)) > uint64(csize-(*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_controllen) { + **(**int32)(__ccgo_up(msg + 48)) |= int32(MSG_CTRUNC) + return + } + v2 = msg + 40 + *(*Tsocklen_t)(unsafe.Pointer(v2)) = Tsocklen_t(uint64(*(*Tsocklen_t)(unsafe.Pointer(v2))) + ((Uint64FromInt64(16)+Uint64FromInt64(8)-Uint64FromInt32(1)) & ^(Uint64FromInt64(8)-Uint64FromInt32(1)) + (Uint64FromInt64(16)+Uint64FromInt64(8)-Uint64FromInt32(1)) & ^(Uint64FromInt64(8)-Uint64FromInt32(1)))) + if uint64((*Tcmsghdr)(unsafe.Pointer(last)).Fcmsg_len) < uint64(16) || (uint64((*Tcmsghdr)(unsafe.Pointer(last)).Fcmsg_len)+uint64(8)-uint64(1))&Uint64FromInt64(^Int64FromUint64(Uint64FromInt64(8)-Uint64FromInt32(1)))+uint64(16) >= Uint64FromInt64(int64((*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_control+uintptr((*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_controllen))-int64(last)) { + v2 = uintptr(0) + } else { + v2 = last + uintptr((uint64((*Tcmsghdr)(unsafe.Pointer(last)).Fcmsg_len)+Uint64FromInt64(8)-Uint64FromInt32(1))&Uint64FromInt64(^Int64FromUint64(Uint64FromInt64(8)-Uint64FromInt32(1)))) + } + cmsg = v2 + (*Tcmsghdr)(unsafe.Pointer(cmsg)).Fcmsg_level = int32(SOL_SOCKET) + (*Tcmsghdr)(unsafe.Pointer(cmsg)).Fcmsg_type = type1 + (*Tcmsghdr)(unsafe.Pointer(cmsg)).Fcmsg_len = uint32((Uint64FromInt64(16)+Uint64FromInt64(8)-Uint64FromInt32(1)) & ^(Uint64FromInt64(8)-Uint64FromInt32(1)) + Uint64FromInt64(16)) + Xmemcpy(tls, cmsg+UintptrFromInt32(1)*16, bp+8, uint64(16)) +} + +func Xrecvmsg(tls *TLS, fd int32, msg uintptr, flags int32) (r2 Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v msg=%v flags=%v, (%v:)", tls, fd, msg, flags, origin(2)) + defer func() { trc("-> %v", r2) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var orig uintptr + var orig_controllen Tsocklen_t + var r, v9 int64 + var r1 Tssize_t + var v1 int32 + var v3, v4, v5, v6, v7, v8 Tsyscall_arg_t + var _ /* h at bp+0 */ Tmsghdr + _, _, _, _, _, _, _, _, _, _, _, _ = orig, orig_controllen, r, r1, v1, v3, v4, v5, v6, v7, v8, v9 + orig_controllen = (*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_controllen + orig = msg + if msg != 0 { + **(**Tmsghdr)(__ccgo_up(bp)) = **(**Tmsghdr)(__ccgo_up(msg)) + v1 = Int32FromInt32(0) + (**(**Tmsghdr)(__ccgo_up(bp))).F__pad2 = v1 + (**(**Tmsghdr)(__ccgo_up(bp))).F__pad1 = v1 + msg = bp + } + v1 = int32(SYS_recvmsg) + _ = int32(__SC_recvmsg) + v3 = int64(fd) + v4 = int64(msg) + v5 = int64(flags) + v6 = int64(Int32FromInt32(0)) + v7 = int64(Int32FromInt32(0)) + v8 = int64(Int32FromInt32(0)) + if int32(1) != 0 { + r = ___syscall_cp(tls, int64(v1), v3, v4, v5, v6, v7, v8) + } else { + r = X__syscall6(tls, int64(v1), v3, v4, v5, v6, v7, v8) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v9 = r + goto _10 + } + v9 = r + goto _10 +_10: + r1 = X__syscall_ret(tls, Uint64FromInt64(v9)) + if r1 >= 0 { + X__convert_scm_timestamps(tls, msg, orig_controllen) + } + if orig != 0 { + **(**Tmsghdr)(__ccgo_up(orig)) = **(**Tmsghdr)(__ccgo_up(bp)) + } + return r1 +} + +func Xres_init(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return 0 +} + +func X__res_mkquery(tls *TLS, op int32, dname uintptr, class int32, type1 int32, data uintptr, datalen int32, newrr uintptr, buf uintptr, buflen int32) (r int32) { + if __ccgo_strace { + trc("tls=%v op=%v dname=%v class=%v type1=%v data=%v datalen=%v newrr=%v buf=%v buflen=%v, (%v:)", tls, op, dname, class, type1, data, datalen, newrr, buf, buflen, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(304) + defer tls.Free(304) + var i, id, j, n int32 + var l Tsize_t + var _ /* q at bp+0 */ [280]uint8 + var _ /* ts at bp+280 */ Ttimespec + _, _, _, _, _ = i, id, j, l, n + l = Xstrnlen(tls, dname, uint64(255)) + if l != 0 && int32(**(**int8)(__ccgo_up(dname + uintptr(l-uint64(1))))) == int32('.') { + l = l - 1 + } + if l != 0 && int32(**(**int8)(__ccgo_up(dname + uintptr(l-uint64(1))))) == int32('.') { + return -int32(1) + } + n = Int32FromUint64(uint64(17) + l + BoolUint64(!!(l != 0))) + if l > uint64(253) || buflen < n || Uint32FromInt32(op) > uint32(15) || Uint32FromInt32(class) > uint32(255) || Uint32FromInt32(type1) > uint32(255) { + return -int32(1) + } + /* Construct query template - ID will be filled later */ + Xmemset(tls, bp, 0, Uint64FromInt32(n)) + (**(**[280]uint8)(__ccgo_up(bp)))[int32(2)] = Uint8FromInt32(op*int32(8) + int32(1)) + (**(**[280]uint8)(__ccgo_up(bp)))[int32(3)] = uint8(32) /* AD */ + (**(**[280]uint8)(__ccgo_up(bp)))[int32(5)] = uint8(1) + Xmemcpy(tls, bp+uintptr(13), dname, l) + i = int32(13) + for { + if !((**(**[280]uint8)(__ccgo_up(bp)))[i] != 0) { + break + } + j = i + for { + if !((**(**[280]uint8)(__ccgo_up(bp)))[j] != 0 && Int32FromUint8((**(**[280]uint8)(__ccgo_up(bp)))[j]) != int32('.')) { + break + } + goto _2 + _2: + ; + j = j + 1 + } + if Uint32FromInt32(j-i)-uint32(1) > uint32(62) { + return -int32(1) + } + (**(**[280]uint8)(__ccgo_up(bp)))[i-int32(1)] = Uint8FromInt32(j - i) + goto _1 + _1: + ; + i = j + int32(1) + } + (**(**[280]uint8)(__ccgo_up(bp)))[i+int32(1)] = Uint8FromInt32(type1) + (**(**[280]uint8)(__ccgo_up(bp)))[i+int32(3)] = Uint8FromInt32(class) + /* Make a reasonably unpredictable id */ + Xclock_gettime(tls, CLOCK_REALTIME, bp+280) + id = Int32FromUint64((Uint64FromInt64((**(**Ttimespec)(__ccgo_up(bp + 280))).Ftv_nsec) + Uint64FromInt64((**(**Ttimespec)(__ccgo_up(bp + 280))).Ftv_nsec)/uint64(65536)) & uint64(0xffff)) + (**(**[280]uint8)(__ccgo_up(bp)))[0] = Uint8FromInt32(id / int32(256)) + (**(**[280]uint8)(__ccgo_up(bp)))[int32(1)] = Uint8FromInt32(id) + Xmemcpy(tls, buf, bp, Uint64FromInt32(n)) + return n +} + +func Xres_mkquery(tls *TLS, op int32, dname uintptr, class int32, type1 int32, data uintptr, datalen int32, newrr uintptr, buf uintptr, buflen int32) (r int32) { + if __ccgo_strace { + trc("tls=%v op=%v dname=%v class=%v type1=%v data=%v datalen=%v newrr=%v buf=%v buflen=%v, (%v:)", tls, op, dname, class, type1, data, datalen, newrr, buf, buflen, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__res_mkquery(tls, op, dname, class, type1, data, datalen, newrr, buf, buflen) +} + +const POLLERR = 8 +const POLLHUP = 16 +const POLLIN = 1 +const POLLMSG = 1024 +const POLLNVAL = 32 +const POLLOUT = 4 +const POLLPRI = 2 +const POLLRDBAND = 128 +const POLLRDHUP = 8192 +const POLLRDNORM = 64 +const POLLWRBAND = 512 +const POLLWRNORM = 256 +const TCP_CC_INFO = 26 +const TCP_CLOSE = 7 +const TCP_CLOSE_WAIT = 8 +const TCP_CLOSING = 11 +const TCP_CM_INQ = 36 +const TCP_CONGESTION = 13 +const TCP_CORK = 3 +const TCP_DEFER_ACCEPT = 9 +const TCP_ESTABLISHED = 1 +const TCP_FASTOPEN = 23 +const TCP_FASTOPEN_CONNECT = 30 +const TCP_FASTOPEN_KEY = 33 +const TCP_FASTOPEN_NO_COOKIE = 34 +const TCP_FIN_WAIT1 = 4 +const TCP_FIN_WAIT2 = 5 +const TCP_INFO = 11 +const TCP_INQ = 36 +const TCP_KEEPCNT = 6 +const TCP_KEEPIDLE = 4 +const TCP_KEEPINTVL = 5 +const TCP_LAST_ACK = 9 +const TCP_LINGER2 = 8 +const TCP_LISTEN = 10 +const TCP_MAXSEG = 2 +const TCP_MD5SIG = 14 +const TCP_MD5SIG_EXT = 32 +const TCP_NODELAY = 1 +const TCP_NOTSENT_LOWAT = 25 +const TCP_QUEUE_SEQ = 21 +const TCP_QUICKACK = 12 +const TCP_REPAIR = 19 +const TCP_REPAIR_OPTIONS = 22 +const TCP_REPAIR_QUEUE = 20 +const TCP_REPAIR_WINDOW = 29 +const TCP_SAVED_SYN = 28 +const TCP_SAVE_SYN = 27 +const TCP_SYNCNT = 7 +const TCP_SYN_RECV = 3 +const TCP_SYN_SENT = 2 +const TCP_THIN_DUPACK = 17 +const TCP_THIN_LINEAR_TIMEOUTS = 16 +const TCP_TIMESTAMP = 24 +const TCP_TIME_WAIT = 6 +const TCP_TX_DELAY = 37 +const TCP_ULP = 31 +const TCP_USER_TIMEOUT = 18 +const TCP_WINDOW_CLAMP = 10 +const TCP_ZEROCOPY_RECEIVE = 35 + +const _TCP_NLA_PAD = 0 +const _TCP_NLA_BUSY = 1 +const _TCP_NLA_RWND_LIMITED = 2 +const _TCP_NLA_SNDBUF_LIMITED = 3 +const _TCP_NLA_DATA_SEGS_OUT = 4 +const _TCP_NLA_TOTAL_RETRANS = 5 +const _TCP_NLA_PACING_RATE = 6 +const _TCP_NLA_DELIVERY_RATE = 7 +const _TCP_NLA_SND_CWND = 8 +const _TCP_NLA_REORDERING = 9 +const _TCP_NLA_MIN_RTT = 10 +const _TCP_NLA_RECUR_RETRANS = 11 +const _TCP_NLA_DELIVERY_RATE_APP_LMT = 12 +const _TCP_NLA_SNDQ_SIZE = 13 +const _TCP_NLA_CA_STATE = 14 +const _TCP_NLA_SND_SSTHRESH = 15 +const _TCP_NLA_DELIVERED = 16 +const _TCP_NLA_DELIVERED_CE = 17 +const _TCP_NLA_BYTES_SENT = 18 +const _TCP_NLA_BYTES_RETRANS = 19 +const _TCP_NLA_DSACK_DUPS = 20 +const _TCP_NLA_REORD_SEEN = 21 +const _TCP_NLA_SRTT = 22 +const _TCP_NLA_TIMEOUT_REHASH = 23 +const _TCP_NLA_BYTES_NOTSENT = 24 +const _TCP_NLA_EDT = 25 +const _TCP_NLA_TTL = 26 + +type Tnfds_t = uint64 + +type Tpollfd = struct { + Ffd int32 + Fevents int16 + Frevents int16 +} + +func _cleanup(tls *TLS, p uintptr) { + var i int32 + var pfd uintptr + _, _ = i, pfd + pfd = p + i = 0 + for { + if !((**(**Tpollfd)(__ccgo_up(pfd + uintptr(i)*8))).Ffd >= -int32(1)) { + break + } + if (**(**Tpollfd)(__ccgo_up(pfd + uintptr(i)*8))).Ffd >= 0 { + X__syscall1(tls, int64(SYS_close), int64((**(**Tpollfd)(__ccgo_up(pfd + uintptr(i)*8))).Ffd)) + } + goto _1 + _1: + ; + i = i + 1 + } +} + +func _mtime(tls *TLS) (r uint64) { + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* ts at bp+0 */ Ttimespec + if Xclock_gettime(tls, int32(CLOCK_MONOTONIC), bp) < 0 && **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(ENOSYS) { + Xclock_gettime(tls, CLOCK_REALTIME, bp) + } + return Uint64FromInt64((**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec)*uint64(1000) + Uint64FromInt64((**(**Ttimespec)(__ccgo_up(bp))).Ftv_nsec/int64(1000000)) +} + +func _start_tcp(tls *TLS, pfd uintptr, family int32, sa uintptr, sl Tsocklen_t, q uintptr, ql int32) (r1 int32) { + bp := tls.Alloc(96) + defer tls.Free(96) + var fd, r int32 + var _ /* mh at bp+40 */ Tmsghdr + _, _ = fd, r + *(*[2]Tuint8_t)(unsafe.Pointer(bp + 32)) = [2]Tuint8_t{ + 0: Uint8FromInt32(ql >> int32(8)), + 1: Uint8FromInt32(ql), + } + *(*[2]Tiovec)(unsafe.Pointer(bp)) = [2]Tiovec{ + 0: { + Fiov_base: bp + 32, + Fiov_len: uint64(2), + }, + 1: { + Fiov_base: q, + Fiov_len: Uint64FromInt32(ql), + }, + } + **(**Tmsghdr)(__ccgo_up(bp + 40)) = Tmsghdr{ + Fmsg_name: sa, + Fmsg_namelen: sl, + Fmsg_iov: bp, + Fmsg_iovlen: int32(2), + } + fd = Xsocket(tls, family, Int32FromInt32(SOCK_STREAM)|Int32FromInt32(SOCK_CLOEXEC)|Int32FromInt32(SOCK_NONBLOCK), 0) + (*Tpollfd)(unsafe.Pointer(pfd)).Ffd = fd + (*Tpollfd)(unsafe.Pointer(pfd)).Fevents = int16(POLLOUT) + *(*int32)(unsafe.Pointer(bp + 36)) = int32(1) + if !(Xsetsockopt(tls, fd, int32(IPPROTO_TCP), int32(TCP_FASTOPEN_CONNECT), bp+36, uint32(4)) != 0) { + r = int32(Xsendmsg(tls, fd, bp+40, Int32FromInt32(MSG_FASTOPEN)|Int32FromInt32(MSG_NOSIGNAL))) + if r == ql+int32(2) { + (*Tpollfd)(unsafe.Pointer(pfd)).Fevents = int16(POLLIN) + } + if r >= 0 { + return r + } + if **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EINPROGRESS) { + return 0 + } + } + r = Xconnect(tls, fd, sa, sl) + if !(r != 0) || **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EINPROGRESS) { + return 0 + } + Xclose(tls, fd) + (*Tpollfd)(unsafe.Pointer(pfd)).Ffd = -int32(1) + return -int32(1) +} + +func _step_mh(tls *TLS, mh uintptr, n Tsize_t) { + /* Adjust iovec in msghdr to skip first n bytes. */ + for (*Tmsghdr)(unsafe.Pointer(mh)).Fmsg_iovlen != 0 && n >= (*Tiovec)(unsafe.Pointer((*Tmsghdr)(unsafe.Pointer(mh)).Fmsg_iov)).Fiov_len { + n = n - (*Tiovec)(unsafe.Pointer((*Tmsghdr)(unsafe.Pointer(mh)).Fmsg_iov)).Fiov_len + (*Tmsghdr)(unsafe.Pointer(mh)).Fmsg_iov += 16 + (*Tmsghdr)(unsafe.Pointer(mh)).Fmsg_iovlen = (*Tmsghdr)(unsafe.Pointer(mh)).Fmsg_iovlen - 1 + } + if !((*Tmsghdr)(unsafe.Pointer(mh)).Fmsg_iovlen != 0) { + return + } + (*Tiovec)(unsafe.Pointer((*Tmsghdr)(unsafe.Pointer(mh)).Fmsg_iov)).Fiov_base = (*Tiovec)(unsafe.Pointer((*Tmsghdr)(unsafe.Pointer(mh)).Fmsg_iov)).Fiov_base + uintptr(n) + **(**Tsize_t)(__ccgo_up((*Tmsghdr)(unsafe.Pointer(mh)).Fmsg_iov + 8)) -= n +} + +/* Internal contract for __res_msend[_rc]: asize must be >=512, nqueries + * must be sufficiently small to be safe as VLA size. In practice it's + * either 1 or 2, anyway. */ + +func X__res_msend_rc(tls *TLS, nqueries int32, queries uintptr, qlens uintptr, answers uintptr, alens uintptr, asize int32, conf uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v nqueries=%v queries=%v qlens=%v answers=%v alens=%v asize=%v conf=%v, (%v:)", tls, nqueries, queries, qlens, answers, alens, asize, conf, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(400) + defer tls.Free(400) + var alen, attempts, family, fd, i, j, next, nns, r, rcode, retry_interval, rlen, servfail_retry, timeout, v6 int32 + var alen_buf, apos, iplit, pfd, qpos uintptr + var sl Tsocklen_t + var t0, t1, t2, v10 uint64 + var v1, v2, v3, v4 t__predefined_size_t + var v18 bool + var _ /* __cb at bp+208 */ t__ptcb + var _ /* cs at bp+200 */ int32 + var _ /* mh at bp+232 */ Tmsghdr + var _ /* mh at bp+288 */ Tmsghdr + var _ /* mh at bp+344 */ Tmsghdr + var _ /* ns at bp+116 */ [3]struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + } + var _ /* sa at bp+88 */ struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = alen, alen_buf, apos, attempts, family, fd, i, iplit, j, next, nns, pfd, qpos, r, rcode, retry_interval, rlen, servfail_retry, sl, t0, t1, t2, timeout, v1, v10, v18, v2, v3, v4, v6 + defer func() { + Xrealloc(tls, alen_buf, 0) + Xrealloc(tls, apos, 0) + Xrealloc(tls, pfd, 0) + Xrealloc(tls, qpos, 0) + }() + *(*struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + })(unsafe.Pointer(bp + 88)) = struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + }{} + *(*uint16)(unsafe.Pointer(bp + 88)) = uint16(0) + **(**[3]struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + })(__ccgo_up(bp + 116)) = [3]struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + }{} + sl = uint32(16) + nns = 0 + family = int32(PF_INET) + v1 = Uint64FromInt32(nqueries+int32(2)) * 8 + pfd = Xrealloc(tls, pfd, v1) + v2 = Uint64FromInt32(nqueries) * 4 + qpos = Xrealloc(tls, qpos, v2) + v3 = Uint64FromInt32(nqueries) * 4 + apos = Xrealloc(tls, apos, v3) + v4 = Uint64FromInt32(nqueries) * 2 + alen_buf = Xrealloc(tls, alen_buf, v4) + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp+200) + timeout = Int32FromUint32(uint32(1000) * (*Tresolvconf)(unsafe.Pointer(conf)).Ftimeout) + attempts = Int32FromUint32((*Tresolvconf)(unsafe.Pointer(conf)).Fattempts) + nns = 0 + for { + if !(Uint32FromInt32(nns) < (*Tresolvconf)(unsafe.Pointer(conf)).Fnns) { + break + } + iplit = conf + uintptr(nns)*28 + if (*Taddress)(unsafe.Pointer(iplit)).Ffamily == int32(PF_INET) { + Xmemcpy(tls, bp+116+uintptr(nns)*28+4, iplit+8, uint64(4)) + (**(**[3]struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + })(__ccgo_up(bp + 116)))[nns].Fsin.Fsin_port = Xhtons(tls, uint16(53)) + (**(**[3]struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + })(__ccgo_up(bp + 116)))[nns].Fsin.Fsin_family = uint16(PF_INET) + } else { + sl = uint32(28) + Xmemcpy(tls, bp+116+uintptr(nns)*28+8, iplit+8, uint64(16)) + (*(*Tsockaddr_in6)(unsafe.Pointer(bp + 116 + uintptr(nns)*28))).Fsin6_port = Xhtons(tls, uint16(53)) + (*(*Tsockaddr_in6)(unsafe.Pointer(bp + 116 + uintptr(nns)*28))).Fsin6_scope_id = (*Taddress)(unsafe.Pointer(iplit)).Fscopeid + v6 = Int32FromInt32(PF_INET6) + family = v6 + (*(*Tsockaddr_in6)(unsafe.Pointer(bp + 116 + uintptr(nns)*28))).Fsin6_family = Uint16FromInt32(v6) + } + goto _5 + _5: + ; + nns = nns + 1 + } + /* Get local address and open/bind a socket */ + fd = Xsocket(tls, family, Int32FromInt32(SOCK_DGRAM)|Int32FromInt32(SOCK_CLOEXEC)|Int32FromInt32(SOCK_NONBLOCK), 0) + /* Handle case where system lacks IPv6 support */ + if fd < 0 && family == int32(PF_INET6) && **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EAFNOSUPPORT) { + i = 0 + for { + if !(i < nns && (**(**Taddress)(__ccgo_up(conf + uintptr(nns)*28))).Ffamily == int32(PF_INET6)) { + break + } + goto _7 + _7: + ; + i = i + 1 + } + if i == nns { + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 200)), uintptr(0)) + return -int32(1) + } + fd = Xsocket(tls, int32(PF_INET), Int32FromInt32(SOCK_DGRAM)|Int32FromInt32(SOCK_CLOEXEC)|Int32FromInt32(SOCK_NONBLOCK), 0) + family = int32(PF_INET) + sl = uint32(16) + } + /* Convert any IPv4 addresses in a mixed environment to v4-mapped */ + if fd >= 0 && family == int32(PF_INET6) { + *(*int32)(unsafe.Pointer(bp)) = 0 + Xsetsockopt(tls, fd, int32(IPPROTO_IPV6), int32(IPV6_V6ONLY), bp, uint32(4)) + i = 0 + for { + if !(i < nns) { + break + } + if Int32FromUint16((**(**[3]struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + })(__ccgo_up(bp + 116)))[i].Fsin.Fsin_family) != int32(PF_INET) { + goto _8 + } + Xmemcpy(tls, bp+116+uintptr(i)*28+8+uintptr(12), bp+116+uintptr(i)*28+4, uint64(4)) + Xmemcpy(tls, bp+116+uintptr(i)*28+8, __ccgo_ts+1017, uint64(12)) + (*(*Tsockaddr_in6)(unsafe.Pointer(bp + 116 + uintptr(i)*28))).Fsin6_family = uint16(PF_INET6) + (*(*Tsockaddr_in6)(unsafe.Pointer(bp + 116 + uintptr(i)*28))).Fsin6_flowinfo = uint32(0) + (*(*Tsockaddr_in6)(unsafe.Pointer(bp + 116 + uintptr(i)*28))).Fsin6_scope_id = uint32(0) + goto _8 + _8: + ; + i = i + 1 + } + } + (**(**struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + })(__ccgo_up(bp + 88))).Fsin.Fsin_family = Uint16FromInt32(family) + if fd < 0 || Xbind(tls, fd, bp+88, sl) < 0 { + if fd >= 0 { + Xclose(tls, fd) + } + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 200)), uintptr(0)) + return -int32(1) + } + /* Past this point, there are no errors. Each individual query will + * yield either no reply (indicated by zero length) or an answer + * packet which is up to the caller to interpret. */ + i = 0 + for { + if !(i < nqueries) { + break + } + (*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), i*8))).Ffd = -int32(1) + goto _9 + _9: + ; + i = i + 1 + } + (*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), nqueries*8))).Ffd = fd + (*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), nqueries*8))).Fevents = int16(POLLIN) + (*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), (nqueries+int32(1))*8))).Ffd = -int32(2) + __pthread_cleanup_push(tls, bp+208, __ccgo_fp(_cleanup), pfd) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 200)), uintptr(0)) + Xmemset(tls, alens, 0, uint64(4)*Uint64FromInt32(nqueries)) + retry_interval = timeout / attempts + next = 0 + v10 = _mtime(tls) + t2 = v10 + t0 = v10 + t1 = t2 - Uint64FromInt32(retry_interval) + for { + if !(t2-t0 < Uint64FromInt32(timeout)) { + break + } + /* This is the loop exit condition: that all queries + * have an accepted answer. */ + i = 0 + for { + if !(i < nqueries && **(**int32)(__ccgo_up(alens + uintptr(i)*4)) > 0) { + break + } + goto _12 + _12: + ; + i = i + 1 + } + if i == nqueries { + break + } + if t2-t1 >= Uint64FromInt32(retry_interval) { + /* Query all configured namservers in parallel */ + i = 0 + for { + if !(i < nqueries) { + break + } + if !(**(**int32)(__ccgo_up(alens + uintptr(i)*4)) != 0) { + j = 0 + for { + if !(j < nns) { + break + } + Xsendto(tls, fd, **(**uintptr)(__ccgo_up(queries + uintptr(i)*8)), Uint64FromInt32(**(**int32)(__ccgo_up(qlens + uintptr(i)*4))), int32(MSG_NOSIGNAL), bp+116+uintptr(j)*28, sl) + goto _14 + _14: + ; + j = j + 1 + } + } + goto _13 + _13: + ; + i = i + 1 + } + t1 = t2 + servfail_retry = int32(2) * nqueries + } + /* Wait for a response, or until time to retry */ + if Xpoll(tls, pfd, Uint64FromInt32(nqueries+int32(1)), Int32FromUint64(t1+Uint64FromInt32(retry_interval)-t2)) <= 0 { + goto _11 + } + for next < nqueries { + *(*[1]Tiovec)(unsafe.Pointer(bp + 8)) = [1]Tiovec{ + 0: { + Fiov_base: **(**uintptr)(__ccgo_up(answers + uintptr(next)*8)), + Fiov_len: Uint64FromInt32(asize), + }, + } + **(**Tmsghdr)(__ccgo_up(bp + 232)) = Tmsghdr{ + Fmsg_name: bp + 88, + Fmsg_namelen: sl, + Fmsg_iov: bp + 8, + Fmsg_iovlen: int32(1), + } + rlen = int32(Xrecvmsg(tls, fd, bp+232, 0)) + if rlen < 0 { + break + } + /* Ignore non-identifiable packets */ + if rlen < int32(4) { + continue + } + /* Ignore replies from addresses we didn't send to */ + j = 0 + for { + if !(j < nns && Xmemcmp(tls, bp+116+uintptr(j)*28, bp+88, uint64(sl)) != 0) { + break + } + goto _15 + _15: + ; + j = j + 1 + } + if j == nns { + continue + } + /* Find which query this answer goes with, if any */ + i = next + for { + if !(i < nqueries && (Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(answers + uintptr(next)*8))))) != Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(queries + uintptr(i)*8))))) || Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(answers + uintptr(next)*8)) + 1))) != Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(queries + uintptr(i)*8)) + 1))))) { + break + } + goto _16 + _16: + ; + i = i + 1 + } + if i == nqueries { + continue + } + if **(**int32)(__ccgo_up(alens + uintptr(i)*4)) != 0 { + continue + } + /* Only accept positive or negative responses; + * retry immediately on server failure, and ignore + * all other codes such as refusal. */ + switch Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(answers + uintptr(next)*8)) + 3))) & Int32FromInt32(15) { + case 0: + fallthrough + case int32(3): + case int32(2): + if v18 = servfail_retry != 0; v18 { + v6 = servfail_retry + servfail_retry = servfail_retry - 1 + } + if v18 && v6 != 0 { + Xsendto(tls, fd, **(**uintptr)(__ccgo_up(queries + uintptr(i)*8)), Uint64FromInt32(**(**int32)(__ccgo_up(qlens + uintptr(i)*4))), int32(MSG_NOSIGNAL), bp+116+uintptr(j)*28, sl) + } + fallthrough + default: + continue + } + /* Store answer in the right slot, or update next + * available temp slot if it's already in place. */ + **(**int32)(__ccgo_up(alens + uintptr(i)*4)) = rlen + if i == next { + for { + if !(next < nqueries && **(**int32)(__ccgo_up(alens + uintptr(next)*4)) != 0) { + break + } + goto _19 + _19: + ; + next = next + 1 + } + } else { + Xmemcpy(tls, **(**uintptr)(__ccgo_up(answers + uintptr(i)*8)), **(**uintptr)(__ccgo_up(answers + uintptr(next)*8)), Uint64FromInt32(rlen)) + } + /* Ignore further UDP if all slots full or TCP-mode */ + if next == nqueries { + (*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), nqueries*8))).Fevents = 0 + } + /* If answer is truncated (TC bit), fallback to TCP */ + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(answers + uintptr(i)*8)) + 2)))&int32(2) != 0 || (**(**Tmsghdr)(__ccgo_up(bp + 232))).Fmsg_flags&int32(MSG_TRUNC) != 0 { + **(**int32)(__ccgo_up(alens + uintptr(i)*4)) = -int32(1) + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), uintptr(0)) + r = _start_tcp(tls, pfd+uintptr(i)*8, family, bp+116+uintptr(j)*28, sl, **(**uintptr)(__ccgo_up(queries + uintptr(i)*8)), **(**int32)(__ccgo_up(qlens + uintptr(i)*4))) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 200)), uintptr(0)) + if r >= 0 { + *(*int32)(unsafe.Add(unsafe.Pointer(qpos), i*4)) = r + *(*int32)(unsafe.Add(unsafe.Pointer(apos), i*4)) = 0 + } + continue + } + } + i = 0 + for { + if !(i < nqueries) { + break + } + if int32((*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), i*8))).Frevents)&int32(POLLOUT) != 0 { + *(*[2]Tuint8_t)(unsafe.Pointer(bp + 52)) = [2]Tuint8_t{ + 0: Uint8FromInt32(**(**int32)(__ccgo_up(qlens + uintptr(i)*4)) >> int32(8)), + 1: Uint8FromInt32(**(**int32)(__ccgo_up(qlens + uintptr(i)*4))), + } + *(*[2]Tiovec)(unsafe.Pointer(bp + 24)) = [2]Tiovec{ + 0: { + Fiov_base: bp + 52, + Fiov_len: uint64(2), + }, + 1: { + Fiov_base: **(**uintptr)(__ccgo_up(queries + uintptr(i)*8)), + Fiov_len: Uint64FromInt32(**(**int32)(__ccgo_up(qlens + uintptr(i)*4))), + }, + } + **(**Tmsghdr)(__ccgo_up(bp + 288)) = Tmsghdr{ + Fmsg_iov: bp + 24, + Fmsg_iovlen: int32(2), + } + _step_mh(tls, bp+288, Uint64FromInt32(*(*int32)(unsafe.Add(unsafe.Pointer(qpos), i*4)))) + r = int32(Xsendmsg(tls, (*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), i*8))).Ffd, bp+288, int32(MSG_NOSIGNAL))) + if r < 0 { + goto out + } + **(**int32)(__ccgo_up(qpos + uintptr(i)*4)) += r + if *(*int32)(unsafe.Add(unsafe.Pointer(qpos), i*4)) == **(**int32)(__ccgo_up(qlens + uintptr(i)*4))+int32(2) { + (*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), i*8))).Fevents = int16(POLLIN) + } + } + goto _20 + _20: + ; + i = i + 1 + } + i = 0 + for { + if !(i < nqueries) { + break + } + if int32((*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), i*8))).Frevents)&int32(POLLIN) != 0 { + *(*[2]Tiovec)(unsafe.Pointer(bp + 56)) = [2]Tiovec{ + 0: { + Fiov_base: alen_buf + uintptr(i)*2, + Fiov_len: uint64(2), + }, + 1: { + Fiov_base: **(**uintptr)(__ccgo_up(answers + uintptr(i)*8)), + Fiov_len: Uint64FromInt32(asize), + }, + } + **(**Tmsghdr)(__ccgo_up(bp + 344)) = Tmsghdr{ + Fmsg_iov: bp + 56, + Fmsg_iovlen: int32(2), + } + _step_mh(tls, bp+344, Uint64FromInt32(*(*int32)(unsafe.Add(unsafe.Pointer(apos), i*4)))) + r = int32(Xrecvmsg(tls, (*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), i*8))).Ffd, bp+344, 0)) + if r <= 0 { + goto out + } + **(**int32)(__ccgo_up(apos + uintptr(i)*4)) += r + if *(*int32)(unsafe.Add(unsafe.Pointer(apos), i*4)) < int32(2) { + goto _21 + } + alen = Int32FromUint8(**(**uint8)(__ccgo_up(alen_buf + uintptr(i)*2)))*int32(256) + Int32FromUint8(**(**uint8)(__ccgo_up(alen_buf + uintptr(i)*2 + 1))) + if alen < int32(13) { + goto out + } + if *(*int32)(unsafe.Add(unsafe.Pointer(apos), i*4)) < alen+int32(2) && *(*int32)(unsafe.Add(unsafe.Pointer(apos), i*4)) < asize+int32(2) { + goto _21 + } + rcode = Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(answers + uintptr(i)*8)) + 3))) & int32(15) + if rcode != 0 && rcode != int32(3) { + goto out + } + /* Storing the length here commits the accepted answer. + * Immediately close TCP socket so as not to consume + * resources we no longer need. */ + **(**int32)(__ccgo_up(alens + uintptr(i)*4)) = alen + X__syscall1(tls, int64(SYS_close), int64((*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), i*8))).Ffd)) + (*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), i*8))).Ffd = -int32(1) + } + goto _21 + _21: + ; + i = i + 1 + } + goto _11 + _11: + ; + t2 = _mtime(tls) + } + goto out +out: + ; + __pthread_cleanup_pop(tls, bp+208, int32(1)) + /* Disregard any incomplete TCP results */ + i = 0 + for { + if !(i < nqueries) { + break + } + if **(**int32)(__ccgo_up(alens + uintptr(i)*4)) < 0 { + **(**int32)(__ccgo_up(alens + uintptr(i)*4)) = 0 + } + goto _22 + _22: + ; + i = i + 1 + } + return 0 +} + +func X__res_msend(tls *TLS, nqueries int32, queries uintptr, qlens uintptr, answers uintptr, alens uintptr, asize int32) (r int32) { + if __ccgo_strace { + trc("tls=%v nqueries=%v queries=%v qlens=%v answers=%v alens=%v asize=%v, (%v:)", tls, nqueries, queries, qlens, answers, alens, asize, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(112) + defer tls.Free(112) + var _ /* conf at bp+0 */ Tresolvconf + if X__get_resolv_conf(tls, bp, uintptr(0), uint64(0)) < 0 { + return -int32(1) + } + return X__res_msend_rc(tls, nqueries, queries, qlens, answers, alens, asize, bp) +} + +func X__res_send(tls *TLS, _msg uintptr, _msglen int32, _answer uintptr, _anslen int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v _msg=%v _msglen=%v _answer=%v _anslen=%v, (%v:)", tls, _msg, _msglen, _answer, _anslen, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(544) + defer tls.Free(544) + *(*uintptr)(unsafe.Pointer(bp)) = _msg + *(*int32)(unsafe.Pointer(bp + 8)) = _msglen + *(*uintptr)(unsafe.Pointer(bp + 16)) = _answer + *(*int32)(unsafe.Pointer(bp + 24)) = _anslen + var r, v1 int32 + var _ /* buf at bp+28 */ [512]uint8 + _, _ = r, v1 + if **(**int32)(__ccgo_up(bp + 24)) < int32(512) { + r = X__res_send(tls, **(**uintptr)(__ccgo_up(bp)), **(**int32)(__ccgo_up(bp + 8)), bp+28, int32(512)) + if r >= 0 { + if r < **(**int32)(__ccgo_up(bp + 24)) { + v1 = r + } else { + v1 = **(**int32)(__ccgo_up(bp + 24)) + } + Xmemcpy(tls, **(**uintptr)(__ccgo_up(bp + 16)), bp+28, Uint64FromInt32(v1)) + } + return r + } + r = X__res_msend(tls, int32(1), bp, bp+8, bp+16, bp+24, **(**int32)(__ccgo_up(bp + 24))) + if r < 0 || !(**(**int32)(__ccgo_up(bp + 24)) != 0) { + v1 = -int32(1) + } else { + v1 = **(**int32)(__ccgo_up(bp + 24)) + } + return v1 +} + +func Xres_send(tls *TLS, _msg uintptr, _msglen int32, _answer uintptr, _anslen int32) (r int32) { + if __ccgo_strace { + trc("tls=%v _msg=%v _msglen=%v _answer=%v _anslen=%v, (%v:)", tls, _msg, _msglen, _answer, _anslen, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__res_send(tls, _msg, _msglen, _answer, _anslen) +} + +/* This is completely unused, and exists purely to satisfy broken apps. */ + +func X__res_state(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(unsafe.Pointer(&_res1)) +} + +var _res1 t__res_state + +func X__get_resolv_conf(tls *TLS, conf uintptr, search uintptr, search_sz Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v conf=%v search=%v search_sz=%v, (%v:)", tls, conf, search, search_sz, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(752) + defer tls.Free(752) + var c, nns, v1, v2 int32 + var f, p uintptr + var l Tsize_t + var x, x1, x2, v5 uint64 + var v4 bool + var _ /* _buf at bp+256 */ [256]uint8 + var _ /* _f at bp+512 */ TFILE + var _ /* line at bp+0 */ [256]int8 + var _ /* z at bp+744 */ uintptr + _, _, _, _, _, _, _, _, _, _, _, _ = c, f, l, nns, p, x, x1, x2, v1, v2, v4, v5 + nns = 0 + (*Tresolvconf)(unsafe.Pointer(conf)).Fndots = uint32(1) + (*Tresolvconf)(unsafe.Pointer(conf)).Ftimeout = uint32(5) + (*Tresolvconf)(unsafe.Pointer(conf)).Fattempts = uint32(2) + if search != 0 { + **(**int8)(__ccgo_up(search)) = 0 + } + f = X__fopen_rb_ca(tls, __ccgo_ts+1139, bp+512, bp+256, uint64(256)) + if !(f != 0) { + switch **(**int32)(__ccgo_up(X__errno_location(tls))) { + case int32(ENOENT): + fallthrough + case int32(ENOTDIR): + fallthrough + case int32(EACCES): + goto no_resolv_conf + default: + return -int32(1) + } + } + for Xfgets(tls, bp, int32(256), f) != 0 { + if !(Xstrchr(tls, bp, int32('\n')) != 0) && !((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_EOF) != 0) { + for cond := true; cond; cond = c != int32('\n') && c != -int32(1) { + c = Xgetc(tls, f) + } + continue + } + if v4 = !(Xstrncmp(tls, bp, __ccgo_ts+1156, uint64(7)) != 0); v4 { + v1 = int32((**(**[256]int8)(__ccgo_up(bp)))[int32(7)]) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _3 + _3: + } + if v4 && v2 != 0 { + p = Xstrstr(tls, bp, __ccgo_ts+1164) + if p != 0 && BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(p + 6)))-uint32('0') < uint32(10)) != 0 { + p = p + uintptr(6) + x = Xstrtoul(tls, p, bp+744, int32(10)) + if **(**uintptr)(__ccgo_up(bp + 744)) != p { + if x > uint64(15) { + v5 = uint64(15) + } else { + v5 = x + } + (*Tresolvconf)(unsafe.Pointer(conf)).Fndots = uint32(v5) + } + } + p = Xstrstr(tls, bp, __ccgo_ts+1171) + if p != 0 && BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(p + 9)))-uint32('0') < uint32(10)) != 0 { + p = p + uintptr(9) + x1 = Xstrtoul(tls, p, bp+744, int32(10)) + if **(**uintptr)(__ccgo_up(bp + 744)) != p { + if x1 > uint64(10) { + v5 = uint64(10) + } else { + v5 = x1 + } + (*Tresolvconf)(unsafe.Pointer(conf)).Fattempts = uint32(v5) + } + } + p = Xstrstr(tls, bp, __ccgo_ts+1181) + if p != 0 && (BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(p + 8)))-uint32('0') < uint32(10)) != 0 || int32(**(**int8)(__ccgo_up(p + 8))) == int32('.')) { + p = p + uintptr(8) + x2 = Xstrtoul(tls, p, bp+744, int32(10)) + if **(**uintptr)(__ccgo_up(bp + 744)) != p { + if x2 > uint64(60) { + v5 = uint64(60) + } else { + v5 = x2 + } + (*Tresolvconf)(unsafe.Pointer(conf)).Ftimeout = uint32(v5) + } + } + continue + } + if v4 = !(Xstrncmp(tls, bp, __ccgo_ts+1190, uint64(10)) != 0); v4 { + v1 = int32((**(**[256]int8)(__ccgo_up(bp)))[int32(10)]) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _10 + _10: + } + if v4 && v2 != 0 { + if nns >= int32(MAXNS) { + continue + } + p = bp + uintptr(11) + for { + v1 = int32(**(**int8)(__ccgo_up(p))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _15 + _15: + if !(v2 != 0) { + break + } + goto _12 + _12: + ; + p = p + 1 + } + **(**uintptr)(__ccgo_up(bp + 744)) = p + for { + if v4 = **(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 744)))) != 0; v4 { + v1 = int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 744))))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _19 + _19: + } + if !(v4 && !(v2 != 0)) { + break + } + goto _16 + _16: + ; + **(**uintptr)(__ccgo_up(bp + 744)) = **(**uintptr)(__ccgo_up(bp + 744)) + 1 + } + **(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 744)))) = 0 + if X__lookup_ipliteral(tls, conf+uintptr(nns)*28, p, PF_UNSPEC) > 0 { + nns = nns + 1 + } + continue + } + if !(search != 0) { + continue + } + if v4 = Xstrncmp(tls, bp, __ccgo_ts+1201, uint64(6)) != 0 && Xstrncmp(tls, bp, __ccgo_ts+1208, uint64(6)) != 0; !v4 { + v1 = int32((**(**[256]int8)(__ccgo_up(bp)))[int32(6)]) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _23 + _23: + } + if v4 || !(v2 != 0) { + continue + } + p = bp + uintptr(7) + for { + v1 = int32(**(**int8)(__ccgo_up(p))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _28 + _28: + if !(v2 != 0) { + break + } + goto _25 + _25: + ; + p = p + 1 + } + l = _strlen(tls, p) + /* This can never happen anyway with chosen buffer sizes. */ + if l >= search_sz { + continue + } + Xmemcpy(tls, search, p, l+uint64(1)) + } + X__fclose_ca(tls, f) + goto no_resolv_conf +no_resolv_conf: + ; + if !(nns != 0) { + X__lookup_ipliteral(tls, conf, __ccgo_ts+1215, PF_UNSPEC) + nns = int32(1) + } + (*Tresolvconf)(unsafe.Pointer(conf)).Fnns = Uint32FromInt32(nns) + return 0 +} + +func Xsend(tls *TLS, fd int32, buf uintptr, len1 Tsize_t, flags int32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v len1=%v flags=%v, (%v:)", tls, fd, buf, len1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xsendto(tls, fd, buf, len1, flags, uintptr(0), uint32(0)) +} + +func Xsendmmsg(tls *TLS, fd int32, msgvec uintptr, vlen uint32, flags uint32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v msgvec=%v vlen=%v flags=%v, (%v:)", tls, fd, msgvec, vlen, flags, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var i, v2 int32 + var r Tssize_t + _, _, _ = i, r, v2 + if vlen > uint32(IOV_MAX) { + vlen = uint32(IOV_MAX) + } /* This matches the kernel. */ + if !(vlen != 0) { + return 0 + } + i = 0 + for { + if !(Uint32FromInt32(i) < vlen) { + break + } + /* As an unfortunate inconsistency, the sendmmsg API uses + * unsigned int for the resulting msg_len, despite sendmsg + * returning ssize_t. However Linux limits the total bytes + * sent by sendmsg to INT_MAX, so the assignment is safe. */ + r = Xsendmsg(tls, fd, msgvec+uintptr(i)*64, Int32FromUint32(flags)) + if r < 0 { + goto error + } + (**(**Tmmsghdr)(__ccgo_up(msgvec + uintptr(i)*64))).Fmsg_len = Uint32FromInt64(r) + goto _1 + _1: + ; + i = i + 1 + } + goto error +error: + ; + if i != 0 { + v2 = i + } else { + v2 = -int32(1) + } + return v2 + return r1 +} + +func Xsendmsg(tls *TLS, fd int32, msg uintptr, flags int32) (r1 Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v msg=%v flags=%v, (%v:)", tls, fd, msg, flags, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(1120) + defer tls.Free(1120) + var c1, v3 uintptr + var r, v12 int64 + var v1 int32 + var v10, v11, v6, v7, v8, v9 Tsyscall_arg_t + var _ /* chbuf at bp+56 */ [66]Tcmsghdr + var _ /* h at bp+0 */ Tmsghdr + _, _, _, _, _, _, _, _, _, _, _ = c1, r, v1, v10, v11, v12, v3, v6, v7, v8, v9 + if msg != 0 { + **(**Tmsghdr)(__ccgo_up(bp)) = **(**Tmsghdr)(__ccgo_up(msg)) + v1 = Int32FromInt32(0) + (**(**Tmsghdr)(__ccgo_up(bp))).F__pad2 = v1 + (**(**Tmsghdr)(__ccgo_up(bp))).F__pad1 = v1 + msg = bp + if (**(**Tmsghdr)(__ccgo_up(bp))).Fmsg_controllen != 0 { + if uint64((**(**Tmsghdr)(__ccgo_up(bp))).Fmsg_controllen) > uint64(1056) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOMEM) + return int64(-int32(1)) + } + Xmemcpy(tls, bp+56, (**(**Tmsghdr)(__ccgo_up(bp))).Fmsg_control, uint64((**(**Tmsghdr)(__ccgo_up(bp))).Fmsg_controllen)) + (**(**Tmsghdr)(__ccgo_up(bp))).Fmsg_control = bp + 56 + if uint64((*Tmsghdr)(unsafe.Pointer(bp)).Fmsg_controllen) >= uint64(16) { + v3 = (*Tmsghdr)(unsafe.Pointer(bp)).Fmsg_control + } else { + v3 = UintptrFromInt32(0) + } + c1 = v3 + for { + if !(c1 != 0) { + break + } + (*Tcmsghdr)(unsafe.Pointer(c1)).F__pad1 = 0 + goto _2 + _2: + ; + if uint64((*Tcmsghdr)(unsafe.Pointer(c1)).Fcmsg_len) < uint64(16) || (uint64((*Tcmsghdr)(unsafe.Pointer(c1)).Fcmsg_len)+uint64(8)-uint64(1))&Uint64FromInt64(^Int64FromUint64(Uint64FromInt64(8)-Uint64FromInt32(1)))+uint64(16) >= Uint64FromInt64(int64((*Tmsghdr)(unsafe.Pointer(bp)).Fmsg_control+uintptr((*Tmsghdr)(unsafe.Pointer(bp)).Fmsg_controllen))-int64(c1)) { + v3 = uintptr(0) + } else { + v3 = c1 + uintptr((uint64((*Tcmsghdr)(unsafe.Pointer(c1)).Fcmsg_len)+Uint64FromInt64(8)-Uint64FromInt32(1))&Uint64FromInt64(^Int64FromUint64(Uint64FromInt64(8)-Uint64FromInt32(1)))) + } + c1 = v3 + } + } + } + v1 = int32(SYS_sendmsg) + _ = int32(__SC_sendmsg) + v6 = int64(fd) + v7 = int64(msg) + v8 = int64(flags) + v9 = int64(Int32FromInt32(0)) + v10 = int64(Int32FromInt32(0)) + v11 = int64(Int32FromInt32(0)) + if int32(1) != 0 { + r = ___syscall_cp(tls, int64(v1), v6, v7, v8, v9, v10, v11) + } else { + r = X__syscall6(tls, int64(v1), v6, v7, v8, v9, v10, v11) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v12 = r + goto _13 + } + v12 = r + goto _13 +_13: + return X__syscall_ret(tls, Uint64FromInt64(v12)) +} + +func Xsendto(tls *TLS, fd int32, buf uintptr, len1 Tsize_t, flags int32, addr uintptr, alen Tsocklen_t) (r1 Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v len1=%v flags=%v addr=%v alen=%v, (%v:)", tls, fd, buf, len1, flags, addr, alen, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v8 int64 + var v1 int32 + var v2, v3, v4, v5, v6, v7 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _ = r, v1, v2, v3, v4, v5, v6, v7, v8 + v1 = int32(SYS_sendto) + _ = int32(__SC_sendto) + v2 = int64(fd) + v3 = int64(buf) + v4 = Int64FromUint64(len1) + v5 = int64(flags) + v6 = int64(addr) + v7 = Int64FromUint32(alen) + if int32(1) != 0 { + r = ___syscall_cp(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _9 + } + v8 = r + goto _9 +_9: + return X__syscall_ret(tls, Uint64FromInt64(v8)) +} + +func Xendservent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } +} + +func Xsetservent(tls *TLS, stayopen int32) { + if __ccgo_strace { + trc("tls=%v stayopen=%v, (%v:)", tls, stayopen, origin(2)) + } +} + +func Xgetservent(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(0) +} + +func Xsetsockopt(tls *TLS, fd int32, level int32, optname int32, optval uintptr, optlen Tsocklen_t) (r2 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v level=%v optname=%v optval=%v optlen=%v, (%v:)", tls, fd, level, optname, optval, optlen, origin(2)) + defer func() { trc("-> %v", r2) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var r, v8 int64 + var r1, v1 int32 + var s Ttime_t + var tv uintptr + var us Tsuseconds_t + var v10 uint64 + var v2, v3, v4, v5, v6, v7 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = r, r1, s, tv, us, v1, v10, v2, v3, v4, v5, v6, v7, v8 + v1 = int32(SYS_setsockopt) + _ = int32(__SC_setsockopt) + v2 = int64(fd) + v3 = int64(level) + v4 = int64(optname) + v5 = int64(optval) + v6 = Int64FromUint32(optlen) + v7 = int64(Int32FromInt32(0)) + if 0 != 0 { + r = ___syscall_cp(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _9 + } + v8 = r + goto _9 +_9: + r1 = int32(v8) + if r1 == -int32(ENOPROTOOPT) { + switch level { + case int32(SOL_SOCKET): + switch optname { + case int32(SO_RCVTIMEO): + fallthrough + case int32(SO_SNDTIMEO): + if true { + break + } + if uint64(optlen) < uint64(16) { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL)))) + } + tv = optval + s = (*Ttimeval)(unsafe.Pointer(tv)).Ftv_sec + us = (*Ttimeval)(unsafe.Pointer(tv)).Ftv_usec + if !!((Uint64FromInt64(s)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EOPNOTSUPP)))) + } + if optname == int32(SO_RCVTIMEO) { + optname = int32(SO_RCVTIMEO_OLD) + } + if optname == int32(SO_SNDTIMEO) { + optname = int32(SO_SNDTIMEO_OLD) + } + if !((Uint64FromInt64(us)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) { + v10 = Uint64FromInt64(us) + } else { + v10 = uint64(0x7fffffff) + (0+Uint64FromInt64(us))>>int32(63) + } + *(*[2]int64)(unsafe.Pointer(bp)) = [2]int64{ + 0: s, + 1: int64(Int32FromUint64(v10)), + } + v1 = int32(SYS_setsockopt) + _ = int32(__SC_setsockopt) + v2 = int64(fd) + v3 = int64(level) + v4 = int64(optname) + v5 = int64(bp) + v6 = Int64FromUint64(Uint64FromInt32(2) * Uint64FromInt64(8)) + v7 = int64(Int32FromInt32(0)) + if 0 != 0 { + r = ___syscall_cp(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _19 + } + v8 = r + goto _19 + _19: + r1 = int32(v8) + case int32(SO_TIMESTAMP): + fallthrough + case int32(SO_TIMESTAMPNS): + if true { + break + } + if optname == int32(SO_TIMESTAMP) { + optname = int32(SO_TIMESTAMP_OLD) + } + if optname == int32(SO_TIMESTAMPNS) { + optname = int32(SO_TIMESTAMPNS_OLD) + } + v1 = int32(SYS_setsockopt) + _ = int32(__SC_setsockopt) + v2 = int64(fd) + v3 = int64(level) + v4 = int64(optname) + v5 = int64(optval) + v6 = Int64FromUint32(optlen) + v7 = int64(Int32FromInt32(0)) + if 0 != 0 { + r = ___syscall_cp(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _28 + } + v8 = r + goto _28 + _28: + r1 = int32(v8) + break + } + } + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r1))) +} + +func Xshutdown(tls *TLS, fd int32, how int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v how=%v, (%v:)", tls, fd, how, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v8 int64 + var v1 int32 + var v2, v3, v4, v5, v6, v7 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _ = r, v1, v2, v3, v4, v5, v6, v7, v8 + v1 = int32(SYS_shutdown) + _ = int32(__SC_shutdown) + v2 = int64(fd) + v3 = int64(how) + v4 = int64(Int32FromInt32(0)) + v5 = int64(Int32FromInt32(0)) + v6 = int64(Int32FromInt32(0)) + v7 = int64(Int32FromInt32(0)) + if 0 != 0 { + r = ___syscall_cp(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _9 + } + v8 = r + goto _9 +_9: + return int32(X__syscall_ret(tls, Uint64FromInt64(v8))) +} + +func Xsockatmark(tls *TLS, s int32) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var _ /* ret at bp+0 */ int32 + if Xioctl(tls, s, int32(SIOCATMARK), VaList(bp+16, bp)) < 0 { + return -int32(1) + } + return **(**int32)(__ccgo_up(bp)) +} + +func Xsocket(tls *TLS, domain int32, type1 int32, protocol int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v domain=%v type1=%v protocol=%v, (%v:)", tls, domain, type1, protocol, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v17, v8 int64 + var s, v1, v10 int32 + var v11, v12, v13, v14, v15, v16, v2, v3, v4, v5, v6, v7 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = r, s, v1, v10, v11, v12, v13, v14, v15, v16, v17, v2, v3, v4, v5, v6, v7, v8 + v1 = int32(SYS_socket) + _ = int32(__SC_socket) + v2 = int64(domain) + v3 = int64(type1) + v4 = int64(protocol) + v5 = int64(Int32FromInt32(0)) + v6 = int64(Int32FromInt32(0)) + v7 = int64(Int32FromInt32(0)) + if 0 != 0 { + r = ___syscall_cp(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _9 + } + v8 = r + goto _9 +_9: + s = int32(v8) + if (s == -int32(EINVAL) || s == -int32(EPROTONOSUPPORT)) && type1&(Int32FromInt32(SOCK_CLOEXEC)|Int32FromInt32(SOCK_NONBLOCK)) != 0 { + v10 = int32(SYS_socket) + _ = int32(__SC_socket) + v11 = int64(domain) + v12 = int64(type1 & ^(Int32FromInt32(SOCK_CLOEXEC) | Int32FromInt32(SOCK_NONBLOCK))) + v13 = int64(protocol) + v14 = int64(Int32FromInt32(0)) + v15 = int64(Int32FromInt32(0)) + v16 = int64(Int32FromInt32(0)) + if 0 != 0 { + r = ___syscall_cp(tls, int64(v10), v11, v12, v13, v14, v15, v16) + } else { + r = X__syscall6(tls, int64(v10), v11, v12, v13, v14, v15, v16) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v17 = r + goto _18 + } + v17 = r + goto _18 + _18: + s = int32(v17) + if s < 0 { + return int32(X__syscall_ret(tls, Uint64FromInt32(s))) + } + if type1&int32(SOCK_CLOEXEC) != 0 { + X__syscall3(tls, int64(__NR3264_fcntl), int64(s), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + } + if type1&int32(SOCK_NONBLOCK) != 0 { + X__syscall3(tls, int64(__NR3264_fcntl), int64(s), int64(Int32FromInt32(F_SETFL)), int64(Int32FromInt32(O_NONBLOCK))) + } + } + return int32(X__syscall_ret(tls, Uint64FromInt32(s))) +} + +func Xsocketpair(tls *TLS, domain int32, type1 int32, protocol int32, fd uintptr) (r2 int32) { + if __ccgo_strace { + trc("tls=%v domain=%v type1=%v protocol=%v fd=%v, (%v:)", tls, domain, type1, protocol, fd, origin(2)) + defer func() { trc("-> %v", r2) }() + } + var r, v17, v8 int64 + var r1, v1, v10 int32 + var v11, v12, v13, v14, v15, v16, v2, v3, v4, v5, v6, v7 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = r, r1, v1, v10, v11, v12, v13, v14, v15, v16, v17, v2, v3, v4, v5, v6, v7, v8 + v1 = int32(SYS_socketpair) + _ = int32(__SC_socketpair) + v2 = int64(domain) + v3 = int64(type1) + v4 = int64(protocol) + v5 = int64(fd) + v6 = int64(Int32FromInt32(0)) + v7 = int64(Int32FromInt32(0)) + if 0 != 0 { + r = ___syscall_cp(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _9 + } + v8 = r + goto _9 +_9: + r1 = int32(X__syscall_ret(tls, Uint64FromInt64(v8))) + if r1 < 0 && (**(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EINVAL) || **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EPROTONOSUPPORT)) && type1&(Int32FromInt32(SOCK_CLOEXEC)|Int32FromInt32(SOCK_NONBLOCK)) != 0 { + v10 = int32(SYS_socketpair) + _ = int32(__SC_socketpair) + v11 = int64(domain) + v12 = int64(type1 & ^(Int32FromInt32(SOCK_CLOEXEC) | Int32FromInt32(SOCK_NONBLOCK))) + v13 = int64(protocol) + v14 = int64(fd) + v15 = int64(Int32FromInt32(0)) + v16 = int64(Int32FromInt32(0)) + if 0 != 0 { + r = ___syscall_cp(tls, int64(v10), v11, v12, v13, v14, v15, v16) + } else { + r = X__syscall6(tls, int64(v10), v11, v12, v13, v14, v15, v16) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v17 = r + goto _18 + } + v17 = r + goto _18 + _18: + r1 = int32(X__syscall_ret(tls, Uint64FromInt64(v17))) + if r1 < 0 { + return r1 + } + if type1&int32(SOCK_CLOEXEC) != 0 { + X__syscall3(tls, int64(__NR3264_fcntl), int64(**(**int32)(__ccgo_up(fd))), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + X__syscall3(tls, int64(__NR3264_fcntl), int64(**(**int32)(__ccgo_up(fd + 1*4))), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + } + if type1&int32(SOCK_NONBLOCK) != 0 { + X__syscall3(tls, int64(__NR3264_fcntl), int64(**(**int32)(__ccgo_up(fd))), int64(Int32FromInt32(F_SETFL)), int64(Int32FromInt32(O_NONBLOCK))) + X__syscall3(tls, int64(__NR3264_fcntl), int64(**(**int32)(__ccgo_up(fd + 1*4))), int64(Int32FromInt32(F_SETFL)), int64(Int32FromInt32(O_NONBLOCK))) + } + } + return r1 +} + +const SHADOW = "/etc/shadow" + +type Tgroup = struct { + Fgr_name uintptr + Fgr_passwd uintptr + Fgr_gid Tgid_t + Fgr_mem uintptr +} + +type Tspwd = struct { + Fsp_namp uintptr + Fsp_pwdp uintptr + Fsp_lstchg int64 + Fsp_min int64 + Fsp_max int64 + Fsp_warn int64 + Fsp_inact int64 + Fsp_expire int64 + Fsp_flag uint64 +} + +func Xfgetgrent(tls *TLS, f uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var _ /* nmem at bp+16 */ Tsize_t + var _ /* res at bp+0 */ uintptr + var _ /* size at bp+8 */ Tsize_t + **(**Tsize_t)(__ccgo_up(bp + 8)) = uint64(0) + **(**Tsize_t)(__ccgo_up(bp + 16)) = uint64(0) + X__getgrent_a(tls, f, uintptr(unsafe.Pointer(&_gr)), uintptr(unsafe.Pointer(&_line1)), bp+8, uintptr(unsafe.Pointer(&_mem)), bp+16, bp) + return **(**uintptr)(__ccgo_up(bp)) +} + +var _line1 uintptr + +var _mem uintptr + +var _gr Tgroup + +func Xfgetpwent(tls *TLS, f uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* res at bp+8 */ uintptr + var _ /* size at bp+0 */ Tsize_t + **(**Tsize_t)(__ccgo_up(bp)) = uint64(0) + X__getpwent_a(tls, f, uintptr(unsafe.Pointer(&_pw)), uintptr(unsafe.Pointer(&_line2)), bp, bp+8) + return **(**uintptr)(__ccgo_up(bp + 8)) +} + +var _line2 uintptr + +var _pw Tpasswd + +const GETGRBYGID = 3 +const GETGRBYNAME = 2 +const GETINITGR = 15 +const GETPWBYNAME = 0 +const GETPWBYUID = 1 +const GRFOUND = 1 +const GRGID = 4 +const GRMEMCNT = 5 +const GRNAMELEN = 2 +const GRPASSWDLEN = 3 +const GRVERSION = 0 +const GR_LEN = 6 +const INITGRFOUND = 1 +const INITGRNGRPS = 2 +const INITGRVERSION = 0 +const INITGR_LEN = 3 +const NSCDVERSION = 2 +const PWDIRLEN = 7 +const PWFOUND = 1 +const PWGECOSLEN = 6 +const PWGID = 5 +const PWNAMELEN = 2 +const PWPASSWDLEN = 3 +const PWSHELLLEN = 8 +const PWUID = 4 +const PWVERSION = 0 +const PW_LEN = 9 +const REQKEYLEN = 2 +const REQTYPE = 1 +const REQVERSION = 0 +const REQ_LEN = 3 + +func _itoa1(tls *TLS, p uintptr, x Tuint32_t) (r uintptr) { + var v1 uintptr + _ = v1 + // number of digits in a uint32_t + NUL + p = p + uintptr(11) + p = p - 1 + v1 = p + **(**int8)(__ccgo_up(v1)) = 0 + for cond := true; cond; cond = x != 0 { + p = p - 1 + v1 = p + **(**int8)(__ccgo_up(v1)) = Int8FromUint32(uint32('0') + x%uint32(10)) + x = x / uint32(10) + } + return p +} + +func X__getgr_a(tls *TLS, name uintptr, gid Tgid_t, gr uintptr, buf uintptr, size uintptr, mem uintptr, nmem uintptr, res uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v gid=%v gr=%v buf=%v size=%v mem=%v nmem=%v res=%v, (%v:)", tls, name, gid, gr, buf, size, mem, nmem, res, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + var f, key, ptr, tmp, tmp1 uintptr + var grlist_len, len1 Tsize_t + var i, req, v10 Tint32_t + var rv, v1 int32 + var v5, v6 Tuint32_t + var _ /* cs at bp+0 */ int32 + var _ /* gidbuf at bp+28 */ [11]int8 + var _ /* groupbuf at bp+4 */ [6]Tint32_t + var _ /* name_len at bp+44 */ Tuint32_t + var _ /* swap at bp+40 */ int32 + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = f, grlist_len, i, key, len1, ptr, req, rv, tmp, tmp1, v1, v10, v5, v6 + rv = 0 + **(**uintptr)(__ccgo_up(res)) = uintptr(0) + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp) + f = Xfopen(tls, __ccgo_ts+1225, __ccgo_ts+315) + if !(f != 0) { + rv = **(**int32)(__ccgo_up(X__errno_location(tls))) + goto done + } + for { + v1 = X__getgrent_a(tls, f, gr, buf, size, mem, nmem, res) + rv = v1 + if !(!(v1 != 0) && **(**uintptr)(__ccgo_up(res)) != 0) { + break + } + if name != 0 && !(Xstrcmp(tls, name, (*Tgroup)(unsafe.Pointer(**(**uintptr)(__ccgo_up(res)))).Fgr_name) != 0) || !(name != 0) && (*Tgroup)(unsafe.Pointer(**(**uintptr)(__ccgo_up(res)))).Fgr_gid == gid { + break + } + } + Xfclose(tls, f) + if !(**(**uintptr)(__ccgo_up(res)) != 0) && (rv == 0 || rv == int32(ENOENT) || rv == int32(ENOTDIR)) { + if name != 0 { + v1 = int32(GETGRBYNAME) + } else { + v1 = int32(GETGRBYGID) + } + req = v1 + **(**[6]Tint32_t)(__ccgo_up(bp + 4)) = [6]Tint32_t{} + len1 = uint64(0) + grlist_len = uint64(0) + **(**[11]int8)(__ccgo_up(bp + 28)) = [11]int8{} + **(**int32)(__ccgo_up(bp + 40)) = 0 + if name != 0 { + key = name + } else { + if gid < uint32(0) || gid > uint32(0xffffffff) { + rv = 0 + goto done + } + key = _itoa1(tls, bp+28, gid) + } + f = X__nscd_query(tls, req, key, bp+4, uint64(24), bp+40) + if !(f != 0) { + rv = **(**int32)(__ccgo_up(X__errno_location(tls))) + goto done + } + if !((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRFOUND)] != 0) { + rv = 0 + goto cleanup_f + } + if !((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRNAMELEN)] != 0) || !((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRPASSWDLEN)] != 0) { + rv = int32(EIO) + goto cleanup_f + } + if Uint64FromInt32((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRNAMELEN)]) > uint64(0xffffffffffffffff)-Uint64FromInt32((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRPASSWDLEN)]) { + rv = int32(ENOMEM) + goto cleanup_f + } + len1 = Uint64FromInt32((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRNAMELEN)] + (**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRPASSWDLEN)]) + i = 0 + for { + if !(i < (**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRMEMCNT)]) { + break + } + if Xfread(tls, bp+44, uint64(4), uint64(1), f) < uint64(1) { + if Xferror(tls, f) != 0 { + v1 = **(**int32)(__ccgo_up(X__errno_location(tls))) + } else { + v1 = int32(EIO) + } + rv = v1 + goto cleanup_f + } + if **(**int32)(__ccgo_up(bp + 40)) != 0 { + v5 = **(**Tuint32_t)(__ccgo_up(bp + 44)) + v6 = v5>>int32(24) | v5>>int32(8)&uint32(0xff00) | v5< uint64(0xffffffffffffffff)-grlist_len || uint64(**(**Tuint32_t)(__ccgo_up(bp + 44))) > uint64(0xffffffffffffffff)-len1 { + rv = int32(ENOMEM) + goto cleanup_f + } + len1 = len1 + uint64(**(**Tuint32_t)(__ccgo_up(bp + 44))) + grlist_len = grlist_len + uint64(**(**Tuint32_t)(__ccgo_up(bp + 44))) + goto _3 + _3: + ; + i = i + 1 + } + if len1 > **(**Tsize_t)(__ccgo_up(size)) || !(**(**uintptr)(__ccgo_up(buf)) != 0) { + tmp = Xrealloc(tls, **(**uintptr)(__ccgo_up(buf)), len1) + if !(tmp != 0) { + rv = **(**int32)(__ccgo_up(X__errno_location(tls))) + goto cleanup_f + } + **(**uintptr)(__ccgo_up(buf)) = tmp + **(**Tsize_t)(__ccgo_up(size)) = len1 + } + if !(Xfread(tls, **(**uintptr)(__ccgo_up(buf)), len1, uint64(1), f) != 0) { + if Xferror(tls, f) != 0 { + v1 = **(**int32)(__ccgo_up(X__errno_location(tls))) + } else { + v1 = int32(EIO) + } + rv = v1 + goto cleanup_f + } + if Uint64FromInt32((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRMEMCNT)]+int32(1)) > **(**Tsize_t)(__ccgo_up(nmem)) { + if Uint64FromInt32((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRMEMCNT)]+int32(1)) > Uint64FromUint64(0xffffffffffffffff)/Uint64FromInt64(8) { + rv = int32(ENOMEM) + goto cleanup_f + } + tmp1 = Xrealloc(tls, **(**uintptr)(__ccgo_up(mem)), Uint64FromInt32((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRMEMCNT)]+Int32FromInt32(1))*uint64(8)) + if !(tmp1 != 0) { + rv = **(**int32)(__ccgo_up(X__errno_location(tls))) + goto cleanup_f + } + **(**uintptr)(__ccgo_up(mem)) = tmp1 + **(**Tsize_t)(__ccgo_up(nmem)) = Uint64FromInt32((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRMEMCNT)] + int32(1)) + } + if (**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRMEMCNT)] != 0 { + **(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(mem)))) = **(**uintptr)(__ccgo_up(buf)) + uintptr((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRNAMELEN)]) + uintptr((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRPASSWDLEN)]) + ptr = **(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(mem)))) + i = Int32FromInt32(0) + for { + if !(ptr != **(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(mem))))+uintptr(grlist_len)) { + break + } + if !(**(**int8)(__ccgo_up(ptr)) != 0) { + i = i + 1 + v10 = i + **(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(mem)) + uintptr(v10)*8)) = ptr + uintptr(1) + } + goto _9 + _9: + ; + ptr = ptr + 1 + } + **(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(mem)) + uintptr(i)*8)) = uintptr(0) + if i != (**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRMEMCNT)] { + rv = int32(EIO) + goto cleanup_f + } + } else { + **(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(mem)))) = uintptr(0) + } + (*Tgroup)(unsafe.Pointer(gr)).Fgr_name = **(**uintptr)(__ccgo_up(buf)) + (*Tgroup)(unsafe.Pointer(gr)).Fgr_passwd = (*Tgroup)(unsafe.Pointer(gr)).Fgr_name + uintptr((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRNAMELEN)]) + (*Tgroup)(unsafe.Pointer(gr)).Fgr_gid = Uint32FromInt32((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRGID)]) + (*Tgroup)(unsafe.Pointer(gr)).Fgr_mem = **(**uintptr)(__ccgo_up(mem)) + if **(**int8)(__ccgo_up((*Tgroup)(unsafe.Pointer(gr)).Fgr_passwd + uintptr(-Int32FromInt32(1)))) != 0 || **(**int8)(__ccgo_up((*Tgroup)(unsafe.Pointer(gr)).Fgr_passwd + uintptr((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRPASSWDLEN)]-int32(1)))) != 0 { + rv = int32(EIO) + goto cleanup_f + } + if name != 0 && Xstrcmp(tls, name, (*Tgroup)(unsafe.Pointer(gr)).Fgr_name) != 0 || !(name != 0) && gid != (*Tgroup)(unsafe.Pointer(gr)).Fgr_gid { + rv = int32(EIO) + goto cleanup_f + } + **(**uintptr)(__ccgo_up(res)) = gr + goto cleanup_f + cleanup_f: + ; + Xfclose(tls, f) + goto done + } + goto done +done: + ; + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp)), uintptr(0)) + if rv != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = rv + } + return rv +} + +func _getgr_r(tls *TLS, name uintptr, gid Tgid_t, gr uintptr, buf uintptr, size Tsize_t, res uintptr) (r int32) { + bp := tls.Alloc(48) + defer tls.Free(48) + var i Tsize_t + var rv int32 + var _ /* cs at bp+32 */ int32 + var _ /* len at bp+8 */ Tsize_t + var _ /* line at bp+0 */ uintptr + var _ /* mem at bp+16 */ uintptr + var _ /* nmem at bp+24 */ Tsize_t + _, _ = i, rv + **(**uintptr)(__ccgo_up(bp)) = uintptr(0) + **(**Tsize_t)(__ccgo_up(bp + 8)) = uint64(0) + **(**uintptr)(__ccgo_up(bp + 16)) = uintptr(0) + **(**Tsize_t)(__ccgo_up(bp + 24)) = uint64(0) + rv = 0 + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp+32) + rv = X__getgr_a(tls, name, gid, gr, bp, bp+8, bp+16, bp+24, res) + if **(**uintptr)(__ccgo_up(res)) != 0 && size < **(**Tsize_t)(__ccgo_up(bp + 8))+(**(**Tsize_t)(__ccgo_up(bp + 24))+uint64(1))*uint64(8)+uint64(32) { + **(**uintptr)(__ccgo_up(res)) = uintptr(0) + rv = int32(ERANGE) + } + if **(**uintptr)(__ccgo_up(res)) != 0 { + buf = buf + uintptr((uint64(16)-uint64(buf))%uint64(16)) + (*Tgroup)(unsafe.Pointer(gr)).Fgr_mem = buf + buf = buf + uintptr((**(**Tsize_t)(__ccgo_up(bp + 24))+uint64(1))*uint64(8)) + Xmemcpy(tls, buf, **(**uintptr)(__ccgo_up(bp)), **(**Tsize_t)(__ccgo_up(bp + 8))) + (*Tgroup)(unsafe.Pointer(gr)).Fgr_name = uintptr(int64((*Tgroup)(unsafe.Pointer(gr)).Fgr_name)-int64(**(**uintptr)(__ccgo_up(bp)))) + buf + (*Tgroup)(unsafe.Pointer(gr)).Fgr_passwd = uintptr(int64((*Tgroup)(unsafe.Pointer(gr)).Fgr_passwd)-int64(**(**uintptr)(__ccgo_up(bp)))) + buf + i = uint64(0) + for { + if !(**(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 16)) + uintptr(i)*8)) != 0) { + break + } + **(**uintptr)(__ccgo_up((*Tgroup)(unsafe.Pointer(gr)).Fgr_mem + uintptr(i)*8)) = uintptr(int64(**(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 16)) + uintptr(i)*8)))-int64(**(**uintptr)(__ccgo_up(bp)))) + buf + goto _1 + _1: + ; + i = i + 1 + } + **(**uintptr)(__ccgo_up((*Tgroup)(unsafe.Pointer(gr)).Fgr_mem + uintptr(i)*8)) = uintptr(0) + } + Xfree(tls, **(**uintptr)(__ccgo_up(bp + 16))) + Xfree(tls, **(**uintptr)(__ccgo_up(bp))) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 32)), uintptr(0)) + if rv != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = rv + } + return rv +} + +func Xgetgrnam_r(tls *TLS, name uintptr, gr uintptr, buf uintptr, size Tsize_t, res uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v gr=%v buf=%v size=%v res=%v, (%v:)", tls, name, gr, buf, size, res, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _getgr_r(tls, name, uint32(0), gr, buf, size, res) +} + +func Xgetgrgid_r(tls *TLS, gid Tgid_t, gr uintptr, buf uintptr, size Tsize_t, res uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v gid=%v gr=%v buf=%v size=%v res=%v, (%v:)", tls, gid, gr, buf, size, res, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _getgr_r(tls, uintptr(0), gid, gr, buf, size, res) +} + +var _f1 uintptr +var _line3 uintptr +var _mem1 uintptr +var _gr1 Tgroup + +func Xsetgrent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + if _f1 != 0 { + Xfclose(tls, _f1) + } + _f1 = uintptr(0) +} + +func Xgetgrent(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var _ /* nmem at bp+16 */ Tsize_t + var _ /* res at bp+0 */ uintptr + var _ /* size at bp+8 */ Tsize_t + **(**Tsize_t)(__ccgo_up(bp + 8)) = uint64(0) + **(**Tsize_t)(__ccgo_up(bp + 16)) = uint64(0) + if !(_f1 != 0) { + _f1 = Xfopen(tls, __ccgo_ts+1225, __ccgo_ts+315) + } + if !(_f1 != 0) { + return uintptr(0) + } + X__getgrent_a(tls, _f1, uintptr(unsafe.Pointer(&_gr1)), uintptr(unsafe.Pointer(&_line3)), bp+8, uintptr(unsafe.Pointer(&_mem1)), bp+16, bp) + return **(**uintptr)(__ccgo_up(bp)) +} + +func Xgetgrgid(tls *TLS, gid Tgid_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v gid=%v, (%v:)", tls, gid, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var _ /* nmem at bp+16 */ Tsize_t + var _ /* res at bp+0 */ uintptr + var _ /* size at bp+8 */ Tsize_t + **(**Tsize_t)(__ccgo_up(bp + 8)) = uint64(0) + **(**Tsize_t)(__ccgo_up(bp + 16)) = uint64(0) + X__getgr_a(tls, uintptr(0), gid, uintptr(unsafe.Pointer(&_gr1)), uintptr(unsafe.Pointer(&_line3)), bp+8, uintptr(unsafe.Pointer(&_mem1)), bp+16, bp) + return **(**uintptr)(__ccgo_up(bp)) +} + +func Xgetgrnam(tls *TLS, name uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var _ /* nmem at bp+16 */ Tsize_t + var _ /* res at bp+0 */ uintptr + var _ /* size at bp+8 */ Tsize_t + **(**Tsize_t)(__ccgo_up(bp + 8)) = uint64(0) + **(**Tsize_t)(__ccgo_up(bp + 16)) = uint64(0) + X__getgr_a(tls, name, uint32(0), uintptr(unsafe.Pointer(&_gr1)), uintptr(unsafe.Pointer(&_line3)), bp+8, uintptr(unsafe.Pointer(&_mem1)), bp+16, bp) + return **(**uintptr)(__ccgo_up(bp)) +} + +func Xendgrent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + Xsetgrent(tls) +} + +func _atou(tls *TLS, s uintptr) (r uint32) { + var x uint32 + _ = x + x = uint32(0) + for { + if !(Uint32FromInt32(int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(s)))))-int32('0')) < uint32(10)) { + break + } + x = uint32(10)*x + Uint32FromInt32(int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(s)))))-Int32FromUint8('0')) + goto _1 + _1: + ; + **(**uintptr)(__ccgo_up(s)) = **(**uintptr)(__ccgo_up(s)) + 1 + } + return x +} + +func X__getgrent_a(tls *TLS, f uintptr, gr uintptr, line uintptr, size uintptr, mem uintptr, nmem uintptr, res uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v gr=%v line=%v size=%v mem=%v nmem=%v res=%v, (%v:)", tls, f, gr, line, size, mem, nmem, res, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var i, v13 Tsize_t + var l, v2 Tssize_t + var mems, v4 uintptr + var rv, v3 int32 + var _ /* cs at bp+8 */ int32 + var _ /* s at bp+0 */ uintptr + _, _, _, _, _, _, _, _ = i, l, mems, rv, v13, v2, v3, v4 + rv = 0 + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp+8) + for { + v2 = Xgetline(tls, line, size, f) + l = v2 + if v2 < 0 { + if Xferror(tls, f) != 0 { + v3 = **(**int32)(__ccgo_up(X__errno_location(tls))) + } else { + v3 = 0 + } + rv = v3 + Xfree(tls, **(**uintptr)(__ccgo_up(line))) + **(**uintptr)(__ccgo_up(line)) = uintptr(0) + gr = uintptr(0) + goto end + } + **(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(line)) + uintptr(l-int64(1)))) = 0 + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(line)) + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + (*Tgroup)(unsafe.Pointer(gr)).Fgr_name = v4 + v4 = Xstrchr(tls, **(**uintptr)(__ccgo_up(bp)), int32(':')) + **(**uintptr)(__ccgo_up(bp)) = v4 + if !(v4 != 0) { + goto _1 + } + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + **(**int8)(__ccgo_up(v4)) = 0 + (*Tgroup)(unsafe.Pointer(gr)).Fgr_passwd = **(**uintptr)(__ccgo_up(bp)) + v4 = Xstrchr(tls, **(**uintptr)(__ccgo_up(bp)), int32(':')) + **(**uintptr)(__ccgo_up(bp)) = v4 + if !(v4 != 0) { + goto _1 + } + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + **(**int8)(__ccgo_up(v4)) = 0 + (*Tgroup)(unsafe.Pointer(gr)).Fgr_gid = _atou(tls, bp) + if int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp))))) != int32(':') { + goto _1 + } + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + **(**int8)(__ccgo_up(v4)) = 0 + mems = **(**uintptr)(__ccgo_up(bp)) + break + goto _1 + _1: + } + **(**Tsize_t)(__ccgo_up(nmem)) = BoolUint64(!!(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)))) != 0)) + for { + if !(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)))) != 0) { + break + } + if int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp))))) == int32(',') { + **(**Tsize_t)(__ccgo_up(nmem)) = **(**Tsize_t)(__ccgo_up(nmem)) + 1 + } + goto _10 + _10: + ; + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + } + Xfree(tls, **(**uintptr)(__ccgo_up(mem))) + **(**uintptr)(__ccgo_up(mem)) = Xcalloc(tls, uint64(8), **(**Tsize_t)(__ccgo_up(nmem))+uint64(1)) + if !(**(**uintptr)(__ccgo_up(mem)) != 0) { + rv = **(**int32)(__ccgo_up(X__errno_location(tls))) + Xfree(tls, **(**uintptr)(__ccgo_up(line))) + **(**uintptr)(__ccgo_up(line)) = uintptr(0) + gr = uintptr(0) + goto end + } + if **(**int8)(__ccgo_up(mems)) != 0 { + **(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(mem)))) = mems + **(**uintptr)(__ccgo_up(bp)) = mems + i = Uint64FromInt32(0) + for { + if !(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)))) != 0) { + break + } + if int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp))))) == int32(',') { + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + **(**int8)(__ccgo_up(v4)) = 0 + i = i + 1 + v13 = i + **(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(mem)) + uintptr(v13)*8)) = **(**uintptr)(__ccgo_up(bp)) + } + goto _11 + _11: + ; + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + } + i = i + 1 + v13 = i + **(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(mem)) + uintptr(v13)*8)) = uintptr(0) + } else { + **(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(mem)))) = uintptr(0) + } + (*Tgroup)(unsafe.Pointer(gr)).Fgr_mem = **(**uintptr)(__ccgo_up(mem)) + goto end +end: + ; + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 8)), uintptr(0)) + **(**uintptr)(__ccgo_up(res)) = gr + if rv != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = rv + } + return rv +} + +func Xgetgrouplist(tls *TLS, user uintptr, gid Tgid_t, groups uintptr, ngroups uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v user=%v gid=%v groups=%v ngroups=%v, (%v:)", tls, user, gid, groups, ngroups, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(96) + defer tls.Free(96) + var f, nscdbuf, v1 uintptr + var i, n, v9 Tssize_t + var nbytes Tsize_t + var nlim, ret, rv, v6 int32 + var v14 int64 + var v3, v4 Tuint32_t + var _ /* buf at bp+56 */ uintptr + var _ /* gr at bp+0 */ Tgroup + var _ /* mem at bp+64 */ uintptr + var _ /* nmem at bp+72 */ Tsize_t + var _ /* res at bp+32 */ uintptr + var _ /* resp at bp+44 */ [3]Tint32_t + var _ /* size at bp+80 */ Tsize_t + var _ /* swap at bp+40 */ int32 + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = f, i, n, nbytes, nlim, nscdbuf, ret, rv, v1, v14, v3, v4, v6, v9 + ret = -int32(1) + n = int64(1) + **(**int32)(__ccgo_up(bp + 40)) = 0 + nscdbuf = uintptr(0) + **(**uintptr)(__ccgo_up(bp + 56)) = uintptr(0) + **(**uintptr)(__ccgo_up(bp + 64)) = uintptr(0) + **(**Tsize_t)(__ccgo_up(bp + 72)) = uint64(0) + nlim = **(**int32)(__ccgo_up(ngroups)) + if nlim >= int32(1) { + v1 = groups + groups += 4 + **(**Tgid_t)(__ccgo_up(v1)) = gid + } + f = X__nscd_query(tls, int32(GETINITGR), user, bp+44, uint64(12), bp+40) + if !(f != 0) { + goto cleanup + } + if (**(**[3]Tint32_t)(__ccgo_up(bp + 44)))[int32(INITGRFOUND)] != 0 { + nscdbuf = Xcalloc(tls, Uint64FromInt32((**(**[3]Tint32_t)(__ccgo_up(bp + 44)))[int32(INITGRNGRPS)]), uint64(4)) + if !(nscdbuf != 0) { + goto cleanup + } + nbytes = uint64(4) * Uint64FromInt32((**(**[3]Tint32_t)(__ccgo_up(bp + 44)))[int32(INITGRNGRPS)]) + if nbytes != 0 && !(Xfread(tls, nscdbuf, nbytes, uint64(1), f) != 0) { + if !(Xferror(tls, f) != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EIO) + } + goto cleanup + } + if **(**int32)(__ccgo_up(bp + 40)) != 0 { + i = 0 + for { + if !(i < int64((**(**[3]Tint32_t)(__ccgo_up(bp + 44)))[int32(INITGRNGRPS)])) { + break + } + v3 = **(**Tuint32_t)(__ccgo_up(nscdbuf + uintptr(i)*4)) + v4 = v3>>int32(24) | v3>>int32(8)&uint32(0xff00) | v3< int64(nlim) { + v14 = int64(-int32(1)) + } else { + v14 = n + } + ret = int32(v14) + **(**int32)(__ccgo_up(ngroups)) = int32(n) + goto cleanup +cleanup: + ; + if f != 0 { + Xfclose(tls, f) + } + Xfree(tls, nscdbuf) + Xfree(tls, **(**uintptr)(__ccgo_up(bp + 56))) + Xfree(tls, **(**uintptr)(__ccgo_up(bp + 64))) + return ret +} + +func _itoa2(tls *TLS, p uintptr, x Tuint32_t) (r uintptr) { + var v1 uintptr + _ = v1 + // number of digits in a uint32_t + NUL + p = p + uintptr(11) + p = p - 1 + v1 = p + **(**int8)(__ccgo_up(v1)) = 0 + for cond := true; cond; cond = x != 0 { + p = p - 1 + v1 = p + **(**int8)(__ccgo_up(v1)) = Int8FromUint32(uint32('0') + x%uint32(10)) + x = x / uint32(10) + } + return p +} + +func X__getpw_a(tls *TLS, name uintptr, uid Tuid_t, pw uintptr, buf uintptr, size uintptr, res uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v uid=%v pw=%v buf=%v size=%v res=%v, (%v:)", tls, name, uid, pw, buf, size, res, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var f, key, tmp uintptr + var len1 Tsize_t + var req Tint32_t + var rv, v1 int32 + var _ /* cs at bp+4 */ int32 + var _ /* passwdbuf at bp+8 */ [9]Tint32_t + var _ /* uidbuf at bp+44 */ [11]int8 + _, _, _, _, _, _, _ = f, key, len1, req, rv, tmp, v1 + rv = 0 + **(**uintptr)(__ccgo_up(res)) = uintptr(0) + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp+4) + f = Xfopen(tls, __ccgo_ts+1236, __ccgo_ts+315) + if !(f != 0) { + rv = **(**int32)(__ccgo_up(X__errno_location(tls))) + goto done + } + for { + v1 = X__getpwent_a(tls, f, pw, buf, size, res) + rv = v1 + if !(!(v1 != 0) && **(**uintptr)(__ccgo_up(res)) != 0) { + break + } + if name != 0 && !(Xstrcmp(tls, name, (*Tpasswd)(unsafe.Pointer(**(**uintptr)(__ccgo_up(res)))).Fpw_name) != 0) || !(name != 0) && (*Tpasswd)(unsafe.Pointer(**(**uintptr)(__ccgo_up(res)))).Fpw_uid == uid { + break + } + } + Xfclose(tls, f) + if !(**(**uintptr)(__ccgo_up(res)) != 0) && (rv == 0 || rv == int32(ENOENT) || rv == int32(ENOTDIR)) { + if name != 0 { + v1 = GETPWBYNAME + } else { + v1 = int32(GETPWBYUID) + } + req = v1 + **(**[9]Tint32_t)(__ccgo_up(bp + 8)) = [9]Tint32_t{} + len1 = uint64(0) + **(**[11]int8)(__ccgo_up(bp + 44)) = [11]int8{} + if name != 0 { + key = name + } else { + /* uid outside of this range can't be queried with the + * nscd interface, but might happen if uid_t ever + * happens to be a larger type (this is not true as of + * now) + */ + if uid < uint32(0) || uid > uint32(0xffffffff) { + rv = 0 + goto done + } + key = _itoa2(tls, bp+44, uid) + } + *(*[1]int32)(unsafe.Pointer(bp)) = [1]int32{} + f = X__nscd_query(tls, req, key, bp+8, uint64(36), bp) + if !(f != 0) { + rv = **(**int32)(__ccgo_up(X__errno_location(tls))) + goto done + } + if !((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWFOUND)] != 0) { + rv = 0 + goto cleanup_f + } + /* A zero length response from nscd is invalid. We ignore + * invalid responses and just report an error, rather than + * trying to do something with them. + */ + if !((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWNAMELEN)] != 0) || !((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWPASSWDLEN)] != 0) || !((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWGECOSLEN)] != 0) || !((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWDIRLEN)] != 0) || !((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWSHELLLEN)] != 0) { + rv = int32(EIO) + goto cleanup_f + } + if Uint64FromInt32((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWNAMELEN)]|(**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWPASSWDLEN)]|(**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWGECOSLEN)]|(**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWDIRLEN)]|(**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWSHELLLEN)]) >= Uint64FromUint64(0xffffffffffffffff)/Uint64FromInt32(8) { + rv = int32(ENOMEM) + goto cleanup_f + } + len1 = Uint64FromInt32((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWNAMELEN)] + (**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWPASSWDLEN)] + (**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWGECOSLEN)] + (**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWDIRLEN)] + (**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWSHELLLEN)]) + if len1 > **(**Tsize_t)(__ccgo_up(size)) || !(**(**uintptr)(__ccgo_up(buf)) != 0) { + tmp = Xrealloc(tls, **(**uintptr)(__ccgo_up(buf)), len1) + if !(tmp != 0) { + rv = **(**int32)(__ccgo_up(X__errno_location(tls))) + goto cleanup_f + } + **(**uintptr)(__ccgo_up(buf)) = tmp + **(**Tsize_t)(__ccgo_up(size)) = len1 + } + if !(Xfread(tls, **(**uintptr)(__ccgo_up(buf)), len1, uint64(1), f) != 0) { + if Xferror(tls, f) != 0 { + v1 = **(**int32)(__ccgo_up(X__errno_location(tls))) + } else { + v1 = int32(EIO) + } + rv = v1 + goto cleanup_f + } + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_name = **(**uintptr)(__ccgo_up(buf)) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_passwd = (*Tpasswd)(unsafe.Pointer(pw)).Fpw_name + uintptr((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWNAMELEN)]) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_gecos = (*Tpasswd)(unsafe.Pointer(pw)).Fpw_passwd + uintptr((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWPASSWDLEN)]) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_dir = (*Tpasswd)(unsafe.Pointer(pw)).Fpw_gecos + uintptr((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWGECOSLEN)]) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_shell = (*Tpasswd)(unsafe.Pointer(pw)).Fpw_dir + uintptr((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWDIRLEN)]) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_uid = Uint32FromInt32((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWUID)]) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_gid = Uint32FromInt32((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWGID)]) + /* Don't assume that nscd made sure to null terminate strings. + * It's supposed to, but malicious nscd should be ignored + * rather than causing a crash. + */ + if **(**int8)(__ccgo_up((*Tpasswd)(unsafe.Pointer(pw)).Fpw_passwd + uintptr(-Int32FromInt32(1)))) != 0 || **(**int8)(__ccgo_up((*Tpasswd)(unsafe.Pointer(pw)).Fpw_gecos + uintptr(-Int32FromInt32(1)))) != 0 || **(**int8)(__ccgo_up((*Tpasswd)(unsafe.Pointer(pw)).Fpw_dir + uintptr(-Int32FromInt32(1)))) != 0 || **(**int8)(__ccgo_up((*Tpasswd)(unsafe.Pointer(pw)).Fpw_shell + uintptr((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWSHELLLEN)]-int32(1)))) != 0 { + rv = int32(EIO) + goto cleanup_f + } + if name != 0 && Xstrcmp(tls, name, (*Tpasswd)(unsafe.Pointer(pw)).Fpw_name) != 0 || !(name != 0) && uid != (*Tpasswd)(unsafe.Pointer(pw)).Fpw_uid { + rv = int32(EIO) + goto cleanup_f + } + **(**uintptr)(__ccgo_up(res)) = pw + goto cleanup_f + cleanup_f: + ; + Xfclose(tls, f) + goto done + } + goto done +done: + ; + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 4)), uintptr(0)) + if rv != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = rv + } + return rv +} + +func _getpw_r(tls *TLS, name uintptr, uid Tuid_t, pw uintptr, buf uintptr, size Tsize_t, res uintptr) (r int32) { + bp := tls.Alloc(32) + defer tls.Free(32) + var rv int32 + var _ /* cs at bp+16 */ int32 + var _ /* len at bp+8 */ Tsize_t + var _ /* line at bp+0 */ uintptr + _ = rv + **(**uintptr)(__ccgo_up(bp)) = uintptr(0) + **(**Tsize_t)(__ccgo_up(bp + 8)) = uint64(0) + rv = 0 + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp+16) + rv = X__getpw_a(tls, name, uid, pw, bp, bp+8, res) + if **(**uintptr)(__ccgo_up(res)) != 0 && size < **(**Tsize_t)(__ccgo_up(bp + 8)) { + **(**uintptr)(__ccgo_up(res)) = uintptr(0) + rv = int32(ERANGE) + } + if **(**uintptr)(__ccgo_up(res)) != 0 { + Xmemcpy(tls, buf, **(**uintptr)(__ccgo_up(bp)), **(**Tsize_t)(__ccgo_up(bp + 8))) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_name = uintptr(int64((*Tpasswd)(unsafe.Pointer(pw)).Fpw_name)-int64(**(**uintptr)(__ccgo_up(bp)))) + buf + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_passwd = uintptr(int64((*Tpasswd)(unsafe.Pointer(pw)).Fpw_passwd)-int64(**(**uintptr)(__ccgo_up(bp)))) + buf + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_gecos = uintptr(int64((*Tpasswd)(unsafe.Pointer(pw)).Fpw_gecos)-int64(**(**uintptr)(__ccgo_up(bp)))) + buf + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_dir = uintptr(int64((*Tpasswd)(unsafe.Pointer(pw)).Fpw_dir)-int64(**(**uintptr)(__ccgo_up(bp)))) + buf + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_shell = uintptr(int64((*Tpasswd)(unsafe.Pointer(pw)).Fpw_shell)-int64(**(**uintptr)(__ccgo_up(bp)))) + buf + } + Xfree(tls, **(**uintptr)(__ccgo_up(bp))) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 16)), uintptr(0)) + if rv != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = rv + } + return rv +} + +func Xgetpwnam_r(tls *TLS, name uintptr, pw uintptr, buf uintptr, size Tsize_t, res uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v pw=%v buf=%v size=%v res=%v, (%v:)", tls, name, pw, buf, size, res, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _getpw_r(tls, name, uint32(0), pw, buf, size, res) +} + +func Xgetpwuid_r(tls *TLS, uid Tuid_t, pw uintptr, buf uintptr, size Tsize_t, res uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v uid=%v pw=%v buf=%v size=%v res=%v, (%v:)", tls, uid, pw, buf, size, res, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _getpw_r(tls, uintptr(0), uid, pw, buf, size, res) +} + +var _f2 uintptr +var _line4 uintptr +var _pw1 Tpasswd +var _size Tsize_t + +func Xsetpwent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + if _f2 != 0 { + Xfclose(tls, _f2) + } + _f2 = uintptr(0) +} + +func Xgetpwent(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* res at bp+0 */ uintptr + if !(_f2 != 0) { + _f2 = Xfopen(tls, __ccgo_ts+1236, __ccgo_ts+315) + } + if !(_f2 != 0) { + return uintptr(0) + } + X__getpwent_a(tls, _f2, uintptr(unsafe.Pointer(&_pw1)), uintptr(unsafe.Pointer(&_line4)), uintptr(unsafe.Pointer(&_size)), bp) + return **(**uintptr)(__ccgo_up(bp)) +} + +func Xgetpwuid(tls *TLS, uid Tuid_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v uid=%v, (%v:)", tls, uid, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* res at bp+0 */ uintptr + X__getpw_a(tls, uintptr(0), uid, uintptr(unsafe.Pointer(&_pw1)), uintptr(unsafe.Pointer(&_line4)), uintptr(unsafe.Pointer(&_size)), bp) + return **(**uintptr)(__ccgo_up(bp)) +} + +func Xgetpwnam(tls *TLS, name uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* res at bp+0 */ uintptr + X__getpw_a(tls, name, uint32(0), uintptr(unsafe.Pointer(&_pw1)), uintptr(unsafe.Pointer(&_line4)), uintptr(unsafe.Pointer(&_size)), bp) + return **(**uintptr)(__ccgo_up(bp)) +} + +func Xendpwent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + Xsetpwent(tls) +} + +func _atou1(tls *TLS, s uintptr) (r uint32) { + var x uint32 + _ = x + x = uint32(0) + for { + if !(Uint32FromInt32(int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(s)))))-int32('0')) < uint32(10)) { + break + } + x = uint32(10)*x + Uint32FromInt32(int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(s)))))-Int32FromUint8('0')) + goto _1 + _1: + ; + **(**uintptr)(__ccgo_up(s)) = **(**uintptr)(__ccgo_up(s)) + 1 + } + return x +} + +func X__getpwent_a(tls *TLS, f uintptr, pw uintptr, line uintptr, size uintptr, res uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v pw=%v line=%v size=%v res=%v, (%v:)", tls, f, pw, line, size, res, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var l, v2 Tssize_t + var rv, v3 int32 + var v4 uintptr + var _ /* cs at bp+8 */ int32 + var _ /* s at bp+0 */ uintptr + _, _, _, _, _ = l, rv, v2, v3, v4 + rv = 0 + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp+8) + for { + v2 = Xgetline(tls, line, size, f) + l = v2 + if v2 < 0 { + if Xferror(tls, f) != 0 { + v3 = **(**int32)(__ccgo_up(X__errno_location(tls))) + } else { + v3 = 0 + } + rv = v3 + Xfree(tls, **(**uintptr)(__ccgo_up(line))) + **(**uintptr)(__ccgo_up(line)) = uintptr(0) + pw = uintptr(0) + break + } + **(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(line)) + uintptr(l-int64(1)))) = 0 + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(line)) + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_name = v4 + v4 = Xstrchr(tls, **(**uintptr)(__ccgo_up(bp)), int32(':')) + **(**uintptr)(__ccgo_up(bp)) = v4 + if !(v4 != 0) { + goto _1 + } + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + **(**int8)(__ccgo_up(v4)) = 0 + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_passwd = **(**uintptr)(__ccgo_up(bp)) + v4 = Xstrchr(tls, **(**uintptr)(__ccgo_up(bp)), int32(':')) + **(**uintptr)(__ccgo_up(bp)) = v4 + if !(v4 != 0) { + goto _1 + } + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + **(**int8)(__ccgo_up(v4)) = 0 + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_uid = _atou1(tls, bp) + if int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp))))) != int32(':') { + goto _1 + } + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + **(**int8)(__ccgo_up(v4)) = 0 + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_gid = _atou1(tls, bp) + if int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp))))) != int32(':') { + goto _1 + } + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + **(**int8)(__ccgo_up(v4)) = 0 + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_gecos = **(**uintptr)(__ccgo_up(bp)) + v4 = Xstrchr(tls, **(**uintptr)(__ccgo_up(bp)), int32(':')) + **(**uintptr)(__ccgo_up(bp)) = v4 + if !(v4 != 0) { + goto _1 + } + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + **(**int8)(__ccgo_up(v4)) = 0 + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_dir = **(**uintptr)(__ccgo_up(bp)) + v4 = Xstrchr(tls, **(**uintptr)(__ccgo_up(bp)), int32(':')) + **(**uintptr)(__ccgo_up(bp)) = v4 + if !(v4 != 0) { + goto _1 + } + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + **(**int8)(__ccgo_up(v4)) = 0 + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_shell = **(**uintptr)(__ccgo_up(bp)) + break + goto _1 + _1: + } + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 8)), uintptr(0)) + **(**uintptr)(__ccgo_up(res)) = pw + if rv != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = rv + } + return rv +} + +func Xsetspent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } +} + +func Xendspent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } +} + +func Xgetspent(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(0) +} + +func Xlckpwdf(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return 0 +} + +func Xulckpwdf(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return 0 +} + +var _addr = struct { + Fsun_family int16 + Fsun_path [21]int8 +}{ + Fsun_family: int16(PF_LOCAL), + Fsun_path: [21]int8{'/', 'v', 'a', 'r', '/', 'r', 'u', 'n', '/', 'n', 's', 'c', 'd', '/', 's', 'o', 'c', 'k', 'e', 't'}, +} + +func X__nscd_query(tls *TLS, req Tint32_t, key uintptr, buf uintptr, len1 Tsize_t, swap uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v req=%v key=%v buf=%v len1=%v swap=%v, (%v:)", tls, req, key, buf, len1, swap, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(112) + defer tls.Free(112) + var errno_save, fd int32 + var f, v1 uintptr + var i Tsize_t + var v3, v4 Tuint32_t + var _ /* msg at bp+48 */ Tmsghdr + var _ /* req_buf at bp+32 */ [3]Tint32_t + _, _, _, _, _, _, _ = errno_save, f, fd, i, v1, v3, v4 + f = uintptr(0) + **(**[3]Tint32_t)(__ccgo_up(bp + 32)) = [3]Tint32_t{ + 0: int32(NSCDVERSION), + 1: req, + 2: Int32FromUint64(Xstrnlen(tls, key, uint64(LOGIN_NAME_MAX)) + uint64(1)), + } + *(*[2]Tiovec)(unsafe.Pointer(bp)) = [2]Tiovec{ + 0: { + Fiov_base: bp + 32, + Fiov_len: uint64(12), + }, + 1: { + Fiov_base: key, + Fiov_len: _strlen(tls, key) + uint64(1), + }, + } + **(**Tmsghdr)(__ccgo_up(bp + 48)) = Tmsghdr{ + Fmsg_iov: bp, + Fmsg_iovlen: int32(2), + } + errno_save = **(**int32)(__ccgo_up(X__errno_location(tls))) + **(**int32)(__ccgo_up(swap)) = 0 + goto retry +retry: + ; + Xmemset(tls, buf, 0, len1) + **(**Tint32_t)(__ccgo_up(buf)) = int32(NSCDVERSION) + fd = Xsocket(tls, int32(PF_LOCAL), Int32FromInt32(SOCK_STREAM)|Int32FromInt32(SOCK_CLOEXEC), 0) + if fd < 0 { + if **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EAFNOSUPPORT) { + f = Xfopen(tls, __ccgo_ts+1248, __ccgo_ts+1258) + if f != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = errno_save + } + return f + } + return uintptr(0) + } + v1 = Xfdopen(tls, fd, __ccgo_ts+1261) + f = v1 + if !(v1 != 0) { + Xclose(tls, fd) + return uintptr(0) + } + if (**(**[3]Tint32_t)(__ccgo_up(bp + 32)))[int32(2)] > int32(LOGIN_NAME_MAX) { + return f + } + if Xconnect(tls, fd, uintptr(unsafe.Pointer(&_addr)), uint32(24)) < 0 { + /* If there isn't a running nscd we simulate a "not found" + * result and the caller is responsible for calling + * fclose on the (unconnected) socket. The value of + * errno must be left unchanged in this case. */ + if **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EACCES) || **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(ECONNREFUSED) || **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(ENOENT) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = errno_save + return f + } + goto error + } + if Xsendmsg(tls, fd, bp+48, int32(MSG_NOSIGNAL)) < 0 { + goto error + } + if !(Xfread(tls, buf, len1, uint64(1), f) != 0) { + /* If the VERSION entry mismatches nscd will disconnect. The + * most likely cause is that the endianness mismatched. So, we + * byteswap and try once more. (if we already swapped, just + * fail out) + */ + if Xferror(tls, f) != 0 { + goto error + } + if !(**(**int32)(__ccgo_up(swap)) != 0) { + Xfclose(tls, f) + i = uint64(0) + for { + if !(i < Uint64FromInt64(12)/Uint64FromInt64(4)) { + break + } + v3 = Uint32FromInt32((**(**[3]Tint32_t)(__ccgo_up(bp + 32)))[i]) + v4 = v3>>int32(24) | v3>>int32(8)&uint32(0xff00) | v3<>int32(24) | v3>>int32(8)&uint32(0xff00) | v3< %v", r1) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var i Tsize_t + var r, v1 int32 + var v4 uintptr + _, _, _, _ = i, r, v1, v4 + Xflockfile(tls, f) + v1 = Xfprintf(tls, f, __ccgo_ts+1263, VaList(bp+8, (*Tgroup)(unsafe.Pointer(gr)).Fgr_name, (*Tgroup)(unsafe.Pointer(gr)).Fgr_passwd, (*Tgroup)(unsafe.Pointer(gr)).Fgr_gid)) + r = v1 + if v1 < 0 { + goto done + } + if (*Tgroup)(unsafe.Pointer(gr)).Fgr_mem != 0 { + i = uint64(0) + for { + if !(**(**uintptr)(__ccgo_up((*Tgroup)(unsafe.Pointer(gr)).Fgr_mem + uintptr(i)*8)) != 0) { + break + } + if i != 0 { + v4 = __ccgo_ts + 1273 + } else { + v4 = __ccgo_ts + } + v1 = Xfprintf(tls, f, __ccgo_ts+1275, VaList(bp+8, v4, **(**uintptr)(__ccgo_up((*Tgroup)(unsafe.Pointer(gr)).Fgr_mem + uintptr(i)*8)))) + r = v1 + if v1 < 0 { + goto done + } + goto _2 + _2: + ; + i = i + 1 + } + } + r = Xfputc(tls, int32('\n'), f) + goto done +done: + ; + Xfunlockfile(tls, f) + if r < 0 { + v1 = -int32(1) + } else { + v1 = 0 + } + return v1 +} + +func Xputpwent(tls *TLS, pw uintptr, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v pw=%v f=%v, (%v:)", tls, pw, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var v1 int32 + _ = v1 + if Xfprintf(tls, f, __ccgo_ts+1280, VaList(bp+8, (*Tpasswd)(unsafe.Pointer(pw)).Fpw_name, (*Tpasswd)(unsafe.Pointer(pw)).Fpw_passwd, (*Tpasswd)(unsafe.Pointer(pw)).Fpw_uid, (*Tpasswd)(unsafe.Pointer(pw)).Fpw_gid, (*Tpasswd)(unsafe.Pointer(pw)).Fpw_gecos, (*Tpasswd)(unsafe.Pointer(pw)).Fpw_dir, (*Tpasswd)(unsafe.Pointer(pw)).Fpw_shell)) < 0 { + v1 = -int32(1) + } else { + v1 = 0 + } + return v1 +} + +func Xputspent(tls *TLS, sp uintptr, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v sp=%v f=%v, (%v:)", tls, sp, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(144) + defer tls.Free(144) + var v1, v10, v12, v14, v16, v4, v6, v8 int32 + var v11, v13, v15, v5, v7, v9 int64 + var v17 uint64 + var v2, v3 uintptr + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = v1, v10, v11, v12, v13, v14, v15, v16, v17, v2, v3, v4, v5, v6, v7, v8, v9 + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_namp != 0 { + v2 = (*Tspwd)(unsafe.Pointer(sp)).Fsp_namp + } else { + v2 = __ccgo_ts + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_pwdp != 0 { + v3 = (*Tspwd)(unsafe.Pointer(sp)).Fsp_pwdp + } else { + v3 = __ccgo_ts + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_lstchg == int64(-int32(1)) { + v4 = 0 + } else { + v4 = -int32(1) + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_lstchg == int64(-int32(1)) { + v5 = 0 + } else { + v5 = (*Tspwd)(unsafe.Pointer(sp)).Fsp_lstchg + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_min == int64(-int32(1)) { + v6 = 0 + } else { + v6 = -int32(1) + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_min == int64(-int32(1)) { + v7 = 0 + } else { + v7 = (*Tspwd)(unsafe.Pointer(sp)).Fsp_min + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_max == int64(-int32(1)) { + v8 = 0 + } else { + v8 = -int32(1) + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_max == int64(-int32(1)) { + v9 = 0 + } else { + v9 = (*Tspwd)(unsafe.Pointer(sp)).Fsp_max + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_warn == int64(-int32(1)) { + v10 = 0 + } else { + v10 = -int32(1) + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_warn == int64(-int32(1)) { + v11 = 0 + } else { + v11 = (*Tspwd)(unsafe.Pointer(sp)).Fsp_warn + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_inact == int64(-int32(1)) { + v12 = 0 + } else { + v12 = -int32(1) + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_inact == int64(-int32(1)) { + v13 = 0 + } else { + v13 = (*Tspwd)(unsafe.Pointer(sp)).Fsp_inact + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_expire == int64(-int32(1)) { + v14 = 0 + } else { + v14 = -int32(1) + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_expire == int64(-int32(1)) { + v15 = 0 + } else { + v15 = (*Tspwd)(unsafe.Pointer(sp)).Fsp_expire + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_flag == Uint64FromInt32(-Int32FromInt32(1)) { + v16 = 0 + } else { + v16 = -int32(1) + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_flag == Uint64FromInt32(-Int32FromInt32(1)) { + v17 = uint64(0) + } else { + v17 = (*Tspwd)(unsafe.Pointer(sp)).Fsp_flag + } + if Xfprintf(tls, f, __ccgo_ts+1302, VaList(bp+8, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17)) < 0 { + v1 = -int32(1) + } else { + v1 = 0 + } + return v1 +} + +func X__rand48_step(tls *TLS, xi uintptr, lc uintptr) (r Tuint64_t) { + if __ccgo_strace { + trc("tls=%v xi=%v lc=%v, (%v:)", tls, xi, lc, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, x Tuint64_t + _, _ = a, x + x = uint64(uint32(**(**uint16)(__ccgo_up(xi)))|(uint32(**(**uint16)(__ccgo_up(xi + 1*2)))+0)<> int32(16)) + **(**uint16)(__ccgo_up(xi + 2*2)) = uint16(x >> int32(32)) + return x & uint64(0xffffffffffff) +} + +func Xerand48(tls *TLS, s uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* x at bp+0 */ struct { + Ff [0]float64 + Fu Tuint64_t + } + *(*struct { + Ff [0]float64 + Fu Tuint64_t + })(unsafe.Pointer(bp)) = struct { + Ff [0]float64 + Fu Tuint64_t + }{} + *(*uint64)(unsafe.Pointer(bp)) = uint64(0x3ff0000000000000) | X__rand48_step(tls, s, uintptr(unsafe.Pointer(&X__seed48))+uintptr(3)*2)< %v", r) }() + } + return Xerand48(tls, uintptr(unsafe.Pointer(&X__seed48))) +} + +func Xlcong48(tls *TLS, p uintptr) { + if __ccgo_strace { + trc("tls=%v p=%v, (%v:)", tls, p, origin(2)) + } + Xmemcpy(tls, uintptr(unsafe.Pointer(&X__seed48)), p, uint64(14)) +} + +func Xnrand48(tls *TLS, s uintptr) (r int64) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Int64FromUint64(X__rand48_step(tls, s, uintptr(unsafe.Pointer(&X__seed48))+uintptr(3)*2) >> int32(17)) +} + +func Xlrand48(tls *TLS) (r int64) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xnrand48(tls, uintptr(unsafe.Pointer(&X__seed48))) +} + +func Xjrand48(tls *TLS, s uintptr) (r int64) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int64(Int32FromUint64(X__rand48_step(tls, s, uintptr(unsafe.Pointer(&X__seed48))+uintptr(3)*2) >> Int32FromInt32(16))) +} + +func Xmrand48(tls *TLS) (r int64) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xjrand48(tls, uintptr(unsafe.Pointer(&X__seed48))) +} + +var _seed Tuint64_t + +func Xsrand(tls *TLS, s uint32) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + } + _seed = uint64(s - uint32(1)) +} + +func Xrand(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + _seed = uint64(6364136223846793005)*_seed + uint64(1) + return Int32FromUint64(_seed >> int32(33)) +} + +func _temper(tls *TLS, x uint32) (r uint32) { + x = x ^ x>>int32(11) + x = x ^ x<>int32(18) + return x +} + +func Xrand_r(tls *TLS, seed uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v seed=%v, (%v:)", tls, seed, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 uint32 + _ = v1 + v1 = **(**uint32)(__ccgo_up(seed))*Uint32FromInt32(1103515245) + Uint32FromInt32(12345) + **(**uint32)(__ccgo_up(seed)) = v1 + return Int32FromUint32(_temper(tls, v1) / uint32(2)) +} + +/* +this code uses the same lagged fibonacci generator as the +original bsd random implementation except for the seeding +which was broken in the original +*/ + +var _init = [32]Tuint32_t{ + 1: uint32(0x5851f42d), + 2: uint32(0xc0b18ccf), + 3: uint32(0xcbb5f646), + 4: uint32(0xc7033129), + 5: uint32(0x30705b04), + 6: uint32(0x20fd5db4), + 7: uint32(0x9a8b7f78), + 8: uint32(0x502959d8), + 9: uint32(0xab894868), + 10: uint32(0x6c0356a7), + 11: uint32(0x88cdb7ff), + 12: uint32(0xb477d43f), + 13: uint32(0x70a3a52b), + 14: uint32(0xa8e4baf1), + 15: uint32(0xfd8341fc), + 16: uint32(0x8ae16fd9), + 17: uint32(0x742d2f7a), + 18: uint32(0x0d1f0796), + 19: uint32(0x76035e09), + 20: uint32(0x40f7702c), + 21: uint32(0x6fa72ca5), + 22: uint32(0xaaa84157), + 23: uint32(0x58a0df74), + 24: uint32(0xc74a0364), + 25: uint32(0xae533cc4), + 26: uint32(0x04185faf), + 27: uint32(0x6de3b115), + 28: uint32(0x0cab8628), + 29: uint32(0xf043bfa4), + 30: uint32(0x398150e9), + 31: uint32(0x37521657), +} + +var _n = int32(31) +var _i = int32(3) +var _j = int32(0) +var _x1 = uintptr(unsafe.Pointer(&_init)) + uintptr(1)*4 +var _lock3 [1]int32 + +func _lcg31(tls *TLS, x Tuint32_t) (r Tuint32_t) { + return (uint32(1103515245)*x + uint32(12345)) & uint32(0x7fffffff) +} + +func _lcg64(tls *TLS, x Tuint64_t) (r Tuint64_t) { + return uint64(6364136223846793005)*x + uint64(1) +} + +func _savestate(tls *TLS) (r uintptr) { + **(**Tuint32_t)(__ccgo_up(_x1 + uintptr(-Int32FromInt32(1))*4)) = Uint32FromInt32(_n<> int32(16)) + _i = Int32FromUint32(**(**Tuint32_t)(__ccgo_up(_x1 + uintptr(-Int32FromInt32(1))*4)) >> Int32FromInt32(8) & uint32(0xff)) + _j = Int32FromUint32(**(**Tuint32_t)(__ccgo_up(_x1 + uintptr(-Int32FromInt32(1))*4)) & uint32(0xff)) +} + +func ___srandom(tls *TLS, seed uint32) { + var k, v1 int32 + var s Tuint64_t + _, _, _ = k, s, v1 + s = uint64(seed) + if _n == 0 { + **(**Tuint32_t)(__ccgo_up(_x1)) = uint32(s) + return + } + if _n == int32(31) || _n == int32(7) { + v1 = int32(3) + } else { + v1 = int32(1) + } + _i = v1 + _j = 0 + k = 0 + for { + if !(k < _n) { + break + } + s = _lcg64(tls, s) + **(**Tuint32_t)(__ccgo_up(_x1 + uintptr(k)*4)) = uint32(s >> int32(32)) + goto _2 + _2: + ; + k = k + 1 + } + /* make sure x contains at least one odd number */ + **(**Tuint32_t)(__ccgo_up(_x1)) |= uint32(1) +} + +func Xsrandom(tls *TLS, seed uint32) { + if __ccgo_strace { + trc("tls=%v seed=%v, (%v:)", tls, seed, origin(2)) + } + ___lock(tls, uintptr(unsafe.Pointer(&_lock3))) + ___srandom(tls, seed) + ___unlock(tls, uintptr(unsafe.Pointer(&_lock3))) +} + +func Xinitstate(tls *TLS, seed uint32, state uintptr, size Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v seed=%v state=%v size=%v, (%v:)", tls, seed, state, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + var old uintptr + _ = old + if size < uint64(8) { + return uintptr(0) + } + ___lock(tls, uintptr(unsafe.Pointer(&_lock3))) + old = _savestate(tls) + if size < uint64(32) { + _n = 0 + } else { + if size < uint64(64) { + _n = int32(7) + } else { + if size < uint64(128) { + _n = int32(15) + } else { + if size < uint64(256) { + _n = int32(31) + } else { + _n = int32(63) + } + } + } + } + _x1 = state + uintptr(1)*4 + ___srandom(tls, seed) + _savestate(tls) + ___unlock(tls, uintptr(unsafe.Pointer(&_lock3))) + return old +} + +func Xsetstate(tls *TLS, state uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v state=%v, (%v:)", tls, state, origin(2)) + defer func() { trc("-> %v", r) }() + } + var old uintptr + _ = old + ___lock(tls, uintptr(unsafe.Pointer(&_lock3))) + old = _savestate(tls) + _loadstate(tls, state) + ___unlock(tls, uintptr(unsafe.Pointer(&_lock3))) + return old +} + +func Xrandom(tls *TLS) (r int64) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + var k int64 + var v1 Tuint32_t + var v2 int32 + _, _, _ = k, v1, v2 + ___lock(tls, uintptr(unsafe.Pointer(&_lock3))) + if _n == 0 { + v1 = _lcg31(tls, **(**Tuint32_t)(__ccgo_up(_x1))) + **(**Tuint32_t)(__ccgo_up(_x1)) = v1 + k = Int64FromUint32(v1) + goto end + } + **(**Tuint32_t)(__ccgo_up(_x1 + uintptr(_i)*4)) += **(**Tuint32_t)(__ccgo_up(_x1 + uintptr(_j)*4)) + k = Int64FromUint32(**(**Tuint32_t)(__ccgo_up(_x1 + uintptr(_i)*4)) >> int32(1)) + _i = _i + 1 + v2 = _i + if v2 == _n { + _i = 0 + } + _j = _j + 1 + v2 = _j + if v2 == _n { + _j = 0 + } + goto end +end: + ; + ___unlock(tls, uintptr(unsafe.Pointer(&_lock3))) + return k +} + +func Xseed48(tls *TLS, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + Xmemcpy(tls, uintptr(unsafe.Pointer(&_p1)), uintptr(unsafe.Pointer(&X__seed48)), uint64(6)) + Xmemcpy(tls, uintptr(unsafe.Pointer(&X__seed48)), s, uint64(6)) + return uintptr(unsafe.Pointer(&_p1)) +} + +var _p1 [3]uint16 + +func Xsrand48(tls *TLS, seed int64) { + if __ccgo_strace { + trc("tls=%v seed=%v, (%v:)", tls, seed, origin(2)) + } + bp := tls.Alloc(16) + defer tls.Free(16) + *(*[3]uint16)(unsafe.Pointer(bp)) = [3]uint16{ + 0: uint16(0x330e), + 1: Uint16FromInt64(seed), + 2: Uint16FromInt64(seed >> int32(16)), + } + Xseed48(tls, bp) +} + +func Xexecl(tls *TLS, path uintptr, argv0 uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v argv0=%v va=%v, (%v:)", tls, path, argv0, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var argc, i int32 + var argv uintptr + var v2 t__predefined_size_t + _, _, _, _, _ = ap, argc, argv, i, v2 + defer func() { Xrealloc(tls, argv, 0) }() + ap = va + argc = int32(1) + for { + if !(VaUintptr(&ap) != 0) { + break + } + goto _1 + _1: + ; + argc = argc + 1 + } + _ = ap + v2 = Uint64FromInt32(argc+int32(1)) * 8 + argv = Xrealloc(tls, argv, v2) + ap = va + *(*uintptr)(unsafe.Add(unsafe.Pointer(argv), 0*8)) = argv0 + i = int32(1) + for { + if !(i < argc) { + break + } + *(*uintptr)(unsafe.Add(unsafe.Pointer(argv), i*8)) = VaUintptr(&ap) + goto _3 + _3: + ; + i = i + 1 + } + *(*uintptr)(unsafe.Add(unsafe.Pointer(argv), i*8)) = UintptrFromInt32(0) + _ = ap + return Xexecv(tls, path, argv) + return r +} + +func Xexecle(tls *TLS, path uintptr, argv0 uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v argv0=%v va=%v, (%v:)", tls, path, argv0, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var argc, i int32 + var argv, envp uintptr + var v2 t__predefined_size_t + _, _, _, _, _, _ = ap, argc, argv, envp, i, v2 + defer func() { Xrealloc(tls, argv, 0) }() + ap = va + argc = int32(1) + for { + if !(VaUintptr(&ap) != 0) { + break + } + goto _1 + _1: + ; + argc = argc + 1 + } + _ = ap + v2 = Uint64FromInt32(argc+int32(1)) * 8 + argv = Xrealloc(tls, argv, v2) + ap = va + *(*uintptr)(unsafe.Add(unsafe.Pointer(argv), 0*8)) = argv0 + i = int32(1) + for { + if !(i <= argc) { + break + } + *(*uintptr)(unsafe.Add(unsafe.Pointer(argv), i*8)) = VaUintptr(&ap) + goto _3 + _3: + ; + i = i + 1 + } + envp = VaUintptr(&ap) + _ = ap + return Xexecve(tls, path, argv, envp) + return r +} + +func Xexeclp(tls *TLS, file uintptr, argv0 uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v file=%v argv0=%v va=%v, (%v:)", tls, file, argv0, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var argc, i int32 + var argv uintptr + var v2 t__predefined_size_t + _, _, _, _, _ = ap, argc, argv, i, v2 + defer func() { Xrealloc(tls, argv, 0) }() + ap = va + argc = int32(1) + for { + if !(VaUintptr(&ap) != 0) { + break + } + goto _1 + _1: + ; + argc = argc + 1 + } + _ = ap + v2 = Uint64FromInt32(argc+int32(1)) * 8 + argv = Xrealloc(tls, argv, v2) + ap = va + *(*uintptr)(unsafe.Add(unsafe.Pointer(argv), 0*8)) = argv0 + i = int32(1) + for { + if !(i < argc) { + break + } + *(*uintptr)(unsafe.Add(unsafe.Pointer(argv), i*8)) = VaUintptr(&ap) + goto _3 + _3: + ; + i = i + 1 + } + *(*uintptr)(unsafe.Add(unsafe.Pointer(argv), i*8)) = UintptrFromInt32(0) + _ = ap + return Xexecvp(tls, file, argv) + return r +} + +func Xexecv(tls *TLS, path uintptr, argv uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v argv=%v, (%v:)", tls, path, argv, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xexecve(tls, path, argv, Xenviron) +} + +func Xexecve(tls *TLS, path uintptr, argv uintptr, envp uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v argv=%v envp=%v, (%v:)", tls, path, argv, envp, origin(2)) + defer func() { trc("-> %v", r) }() + } + /* do we need to use environ if envp is null? */ + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_execve), int64(path), int64(argv), int64(envp))))) +} + +func X__execvpe(tls *TLS, file uintptr, argv uintptr, envp uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v file=%v argv=%v envp=%v, (%v:)", tls, file, argv, envp, origin(2)) + defer func() { trc("-> %v", r) }() + } + var b, p, path, z, v3 uintptr + var k, l Tsize_t + var seen_eacces int32 + var v2 t__predefined_size_t + _, _, _, _, _, _, _, _, _ = b, k, l, p, path, seen_eacces, z, v2, v3 + defer func() { Xrealloc(tls, b, 0) }() + path = Xgetenv(tls, __ccgo_ts+1351) + seen_eacces = 0 + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOENT) + if !(**(**int8)(__ccgo_up(file)) != 0) { + return -int32(1) + } + if Xstrchr(tls, file, int32('/')) != 0 { + return Xexecve(tls, file, argv, envp) + } + if !(path != 0) { + path = __ccgo_ts + 1356 + } + k = Xstrnlen(tls, file, Uint64FromInt32(Int32FromInt32(NAME_MAX)+Int32FromInt32(1))) + if k > uint64(NAME_MAX) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENAMETOOLONG) + return -int32(1) + } + l = Xstrnlen(tls, path, Uint64FromInt32(Int32FromInt32(PATH_MAX)-Int32FromInt32(1))) + uint64(1) + p = path + for { + v2 = l + k + uint64(1) + b = Xrealloc(tls, b, v2) + z = X__strchrnul(tls, p, int32(':')) + if Uint64FromInt64(int64(z)-int64(p)) >= l { + v3 = z + z = z + 1 + if !(**(**int8)(__ccgo_up(v3)) != 0) { + break + } + goto _1 + } + Xmemcpy(tls, b, p, Uint64FromInt64(int64(z)-int64(p))) + *(*int8)(unsafe.Add(unsafe.Pointer(b), int64(z)-int64(p))) = int8('/') + Xmemcpy(tls, b+uintptr(int64(z)-int64(p))+BoolUintptr(z > p), file, k+uint64(1)) + Xexecve(tls, b, argv, envp) + switch **(**int32)(__ccgo_up(X__errno_location(tls))) { + case int32(EACCES): + seen_eacces = int32(1) + fallthrough + case int32(ENOENT): + fallthrough + case int32(ENOTDIR): + default: + return -int32(1) + } + v3 = z + z = z + 1 + if !(**(**int8)(__ccgo_up(v3)) != 0) { + break + } + goto _1 + _1: + ; + p = z + } + if seen_eacces != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EACCES) + } + return -int32(1) +} + +func Xexecvp(tls *TLS, file uintptr, argv uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v file=%v argv=%v, (%v:)", tls, file, argv, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__execvpe(tls, file, argv, Xenviron) +} + +func Xexecvpe(tls *TLS, file uintptr, argv uintptr, envp uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v file=%v argv=%v envp=%v, (%v:)", tls, file, argv, envp, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__execvpe(tls, file, argv, envp) +} + +func Xfexecve(tls *TLS, fd int32, argv uintptr, envp uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v argv=%v envp=%v, (%v:)", tls, fd, argv, envp, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var r int32 + var _ /* buf at bp+0 */ [27]int8 + _ = r + r = int32(X__syscall5(tls, int64(SYS_execveat), int64(fd), int64(__ccgo_ts), int64(argv), int64(envp), int64(Int32FromInt32(AT_EMPTY_PATH)))) + if r != -int32(ENOSYS) { + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) + } + X__procfdname(tls, bp, Uint32FromInt32(fd)) + Xexecve(tls, bp, argv, envp) + if **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(ENOENT) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EBADF) + } + return -int32(1) +} + +var _dummy_lockptr = uintptr(0) + +var _atfork_locks = [10]uintptr{ + 0: uintptr(unsafe.Pointer(&X__at_quick_exit_lockptr)), + 1: uintptr(unsafe.Pointer(&_dummy_lockptr)), + 2: uintptr(unsafe.Pointer(&X__gettext_lockptr)), + 3: uintptr(unsafe.Pointer(&X__locale_lockptr)), + 4: uintptr(unsafe.Pointer(&X__random_lockptr)), + 5: uintptr(unsafe.Pointer(&_dummy_lockptr)), + 6: uintptr(unsafe.Pointer(&X__stdio_ofl_lockptr)), + 7: uintptr(unsafe.Pointer(&X__syslog_lockptr)), + 8: uintptr(unsafe.Pointer(&X__timezone_lockptr)), + 9: uintptr(unsafe.Pointer(&_dummy_lockptr)), +} + +func _dummy8(tls *TLS, x int32) { +} + +func _dummy_0(tls *TLS) { +} + +const FDOP_CHDIR = 4 +const FDOP_CLOSE = 1 +const FDOP_DUP2 = 2 +const FDOP_FCHDIR = 5 +const FDOP_OPEN = 3 +const POSIX_SPAWN_RESETIDS = 1 +const POSIX_SPAWN_SETPGROUP = 2 +const POSIX_SPAWN_SETSCHEDPARAM = 16 +const POSIX_SPAWN_SETSCHEDULER = 32 +const POSIX_SPAWN_SETSID = 128 +const POSIX_SPAWN_SETSIGDEF = 4 +const POSIX_SPAWN_SETSIGMASK = 8 +const POSIX_SPAWN_USEVFORK = 64 + +type Tposix_spawnattr_t = struct { + F__flags int32 + F__pgrp Tpid_t + F__def Tsigset_t + F__mask Tsigset_t + F__prio int32 + F__pol int32 + F__fn uintptr + F__pad [56]int8 +} + +type Tposix_spawn_file_actions_t = struct { + F__pad0 [2]int32 + F__actions uintptr + F__pad [16]int32 +} + +type Tfdop = struct { + Fnext uintptr + Fprev uintptr + Fcmd int32 + Ffd int32 + Fsrcfd int32 + Foflag int32 + Fmode Tmode_t +} + +func Xposix_spawn_file_actions_addchdir_np(tls *TLS, fa uintptr, path uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fa=%v path=%v, (%v:)", tls, fa, path, origin(2)) + defer func() { trc("-> %v", r) }() + } + var op, v1 uintptr + _, _ = op, v1 + op = Xmalloc(tls, uint64(40)+_strlen(tls, path)+uint64(1)) + if !(op != 0) { + return int32(ENOMEM) + } + (*Tfdop)(unsafe.Pointer(op)).Fcmd = int32(FDOP_CHDIR) + (*Tfdop)(unsafe.Pointer(op)).Ffd = -int32(1) + Xstrcpy(tls, op+36, path) + v1 = (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions + (*Tfdop)(unsafe.Pointer(op)).Fnext = v1 + if v1 != 0 { + (*Tfdop)(unsafe.Pointer((*Tfdop)(unsafe.Pointer(op)).Fnext)).Fprev = op + } + (*Tfdop)(unsafe.Pointer(op)).Fprev = uintptr(0) + (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions = op + return 0 +} + +func Xposix_spawn_file_actions_addclose(tls *TLS, fa uintptr, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fa=%v fd=%v, (%v:)", tls, fa, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + var op, v1 uintptr + _, _ = op, v1 + if fd < 0 { + return int32(EBADF) + } + op = Xmalloc(tls, uint64(40)) + if !(op != 0) { + return int32(ENOMEM) + } + (*Tfdop)(unsafe.Pointer(op)).Fcmd = int32(FDOP_CLOSE) + (*Tfdop)(unsafe.Pointer(op)).Ffd = fd + v1 = (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions + (*Tfdop)(unsafe.Pointer(op)).Fnext = v1 + if v1 != 0 { + (*Tfdop)(unsafe.Pointer((*Tfdop)(unsafe.Pointer(op)).Fnext)).Fprev = op + } + (*Tfdop)(unsafe.Pointer(op)).Fprev = uintptr(0) + (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions = op + return 0 +} + +func Xposix_spawn_file_actions_adddup2(tls *TLS, fa uintptr, srcfd int32, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fa=%v srcfd=%v fd=%v, (%v:)", tls, fa, srcfd, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + var op, v1 uintptr + _, _ = op, v1 + if srcfd < 0 || fd < 0 { + return int32(EBADF) + } + op = Xmalloc(tls, uint64(40)) + if !(op != 0) { + return int32(ENOMEM) + } + (*Tfdop)(unsafe.Pointer(op)).Fcmd = int32(FDOP_DUP2) + (*Tfdop)(unsafe.Pointer(op)).Fsrcfd = srcfd + (*Tfdop)(unsafe.Pointer(op)).Ffd = fd + v1 = (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions + (*Tfdop)(unsafe.Pointer(op)).Fnext = v1 + if v1 != 0 { + (*Tfdop)(unsafe.Pointer((*Tfdop)(unsafe.Pointer(op)).Fnext)).Fprev = op + } + (*Tfdop)(unsafe.Pointer(op)).Fprev = uintptr(0) + (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions = op + return 0 +} + +func Xposix_spawn_file_actions_addfchdir_np(tls *TLS, fa uintptr, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fa=%v fd=%v, (%v:)", tls, fa, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + var op, v1 uintptr + _, _ = op, v1 + if fd < 0 { + return int32(EBADF) + } + op = Xmalloc(tls, uint64(40)) + if !(op != 0) { + return int32(ENOMEM) + } + (*Tfdop)(unsafe.Pointer(op)).Fcmd = int32(FDOP_FCHDIR) + (*Tfdop)(unsafe.Pointer(op)).Ffd = fd + v1 = (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions + (*Tfdop)(unsafe.Pointer(op)).Fnext = v1 + if v1 != 0 { + (*Tfdop)(unsafe.Pointer((*Tfdop)(unsafe.Pointer(op)).Fnext)).Fprev = op + } + (*Tfdop)(unsafe.Pointer(op)).Fprev = uintptr(0) + (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions = op + return 0 +} + +func Xposix_spawn_file_actions_addopen(tls *TLS, fa uintptr, fd int32, path uintptr, flags int32, mode Tmode_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fa=%v fd=%v path=%v flags=%v mode=%v, (%v:)", tls, fa, fd, path, flags, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + var op, v1 uintptr + _, _ = op, v1 + if fd < 0 { + return int32(EBADF) + } + op = Xmalloc(tls, uint64(40)+_strlen(tls, path)+uint64(1)) + if !(op != 0) { + return int32(ENOMEM) + } + (*Tfdop)(unsafe.Pointer(op)).Fcmd = int32(FDOP_OPEN) + (*Tfdop)(unsafe.Pointer(op)).Ffd = fd + (*Tfdop)(unsafe.Pointer(op)).Foflag = flags + (*Tfdop)(unsafe.Pointer(op)).Fmode = mode + Xstrcpy(tls, op+36, path) + v1 = (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions + (*Tfdop)(unsafe.Pointer(op)).Fnext = v1 + if v1 != 0 { + (*Tfdop)(unsafe.Pointer((*Tfdop)(unsafe.Pointer(op)).Fnext)).Fprev = op + } + (*Tfdop)(unsafe.Pointer(op)).Fprev = uintptr(0) + (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions = op + return 0 +} + +func Xposix_spawn_file_actions_destroy(tls *TLS, fa uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fa=%v, (%v:)", tls, fa, origin(2)) + defer func() { trc("-> %v", r) }() + } + var next, op uintptr + _, _ = next, op + op = (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions + for op != 0 { + next = (*Tfdop)(unsafe.Pointer(op)).Fnext + Xfree(tls, op) + op = next + } + return 0 +} + +func Xposix_spawn_file_actions_init(tls *TLS, fa uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fa=%v, (%v:)", tls, fa, origin(2)) + defer func() { trc("-> %v", r) }() + } + (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions = uintptr(0) + return 0 +} + +func Xposix_spawnattr_destroy(tls *TLS, attr uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v, (%v:)", tls, attr, origin(2)) + defer func() { trc("-> %v", r) }() + } + return 0 +} + +func Xposix_spawnattr_getflags(tls *TLS, attr uintptr, flags uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v flags=%v, (%v:)", tls, attr, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + **(**int16)(__ccgo_up(flags)) = int16((*Tposix_spawnattr_t)(unsafe.Pointer(attr)).F__flags) + return 0 +} + +func Xposix_spawnattr_getpgroup(tls *TLS, attr uintptr, pgrp uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v pgrp=%v, (%v:)", tls, attr, pgrp, origin(2)) + defer func() { trc("-> %v", r) }() + } + **(**Tpid_t)(__ccgo_up(pgrp)) = (*Tposix_spawnattr_t)(unsafe.Pointer(attr)).F__pgrp + return 0 +} + +func Xposix_spawnattr_getsigdefault(tls *TLS, attr uintptr, def uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v def=%v, (%v:)", tls, attr, def, origin(2)) + defer func() { trc("-> %v", r) }() + } + **(**Tsigset_t)(__ccgo_up(def)) = (*Tposix_spawnattr_t)(unsafe.Pointer(attr)).F__def + return 0 +} + +func Xposix_spawnattr_getsigmask(tls *TLS, attr uintptr, mask uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v mask=%v, (%v:)", tls, attr, mask, origin(2)) + defer func() { trc("-> %v", r) }() + } + **(**Tsigset_t)(__ccgo_up(mask)) = (*Tposix_spawnattr_t)(unsafe.Pointer(attr)).F__mask + return 0 +} + +func Xposix_spawnattr_init(tls *TLS, attr uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v, (%v:)", tls, attr, origin(2)) + defer func() { trc("-> %v", r) }() + } + **(**Tposix_spawnattr_t)(__ccgo_up(attr)) = Tposix_spawnattr_t{} + return 0 +} + +func Xposix_spawnattr_getschedparam(tls *TLS, attr uintptr, schedparam uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v schedparam=%v, (%v:)", tls, attr, schedparam, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(ENOSYS) +} + +func Xposix_spawnattr_setschedparam(tls *TLS, attr uintptr, schedparam uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v schedparam=%v, (%v:)", tls, attr, schedparam, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(ENOSYS) +} + +func Xposix_spawnattr_getschedpolicy(tls *TLS, attr uintptr, policy uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v policy=%v, (%v:)", tls, attr, policy, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(ENOSYS) +} + +func Xposix_spawnattr_setschedpolicy(tls *TLS, attr uintptr, policy int32) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v policy=%v, (%v:)", tls, attr, policy, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(ENOSYS) +} + +func Xposix_spawnattr_setflags(tls *TLS, attr uintptr, flags int16) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v flags=%v, (%v:)", tls, attr, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + var all_flags uint32 + _ = all_flags + all_flags = Uint32FromInt32(Int32FromInt32(POSIX_SPAWN_RESETIDS) | Int32FromInt32(POSIX_SPAWN_SETPGROUP) | Int32FromInt32(POSIX_SPAWN_SETSIGDEF) | Int32FromInt32(POSIX_SPAWN_SETSIGMASK) | Int32FromInt32(POSIX_SPAWN_SETSCHEDPARAM) | Int32FromInt32(POSIX_SPAWN_SETSCHEDULER) | Int32FromInt32(POSIX_SPAWN_USEVFORK) | Int32FromInt32(POSIX_SPAWN_SETSID)) + if Uint32FromInt16(flags) & ^all_flags != 0 { + return int32(EINVAL) + } + (*Tposix_spawnattr_t)(unsafe.Pointer(attr)).F__flags = int32(flags) + return 0 +} + +func Xposix_spawnattr_setpgroup(tls *TLS, attr uintptr, pgrp Tpid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v pgrp=%v, (%v:)", tls, attr, pgrp, origin(2)) + defer func() { trc("-> %v", r) }() + } + (*Tposix_spawnattr_t)(unsafe.Pointer(attr)).F__pgrp = pgrp + return 0 +} + +func Xposix_spawnattr_setsigdefault(tls *TLS, attr uintptr, def uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v def=%v, (%v:)", tls, attr, def, origin(2)) + defer func() { trc("-> %v", r) }() + } + (*Tposix_spawnattr_t)(unsafe.Pointer(attr)).F__def = **(**Tsigset_t)(__ccgo_up(def)) + return 0 +} + +func Xposix_spawnattr_setsigmask(tls *TLS, attr uintptr, mask uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v mask=%v, (%v:)", tls, attr, mask, origin(2)) + defer func() { trc("-> %v", r) }() + } + (*Tposix_spawnattr_t)(unsafe.Pointer(attr)).F__mask = **(**Tsigset_t)(__ccgo_up(mask)) + return 0 +} + +func Xvfork(tls *TLS) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + /* vfork syscall cannot be made from C code */ + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_clone), int64(Int32FromInt32(SIGCHLD)), int64(Int32FromInt32(0)))))) +} + +func Xwait(tls *TLS, status uintptr) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v status=%v, (%v:)", tls, status, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwaitpid(tls, -Int32FromInt32(1), status, 0) +} + +func Xwaitid(tls *TLS, type1 Tidtype_t, id Tid_t, info uintptr, options int32) (r int32) { + if __ccgo_strace { + trc("tls=%v type1=%v id=%v info=%v options=%v, (%v:)", tls, type1, id, info, options, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_waitid), int64(type1), Int64FromUint32(id), int64(info), int64(options), int64(Int32FromInt32(0)), 0)))) +} + +func Xwaitpid(tls *TLS, pid Tpid_t, status uintptr, options int32) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v pid=%v status=%v options=%v, (%v:)", tls, pid, status, options, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_wait4), int64(pid), int64(status), int64(options), int64(Int32FromInt32(0)), 0, 0)))) +} + +const BRACKET = -3 +const END = 0 +const FNM_CASEFOLD = 16 +const FNM_FILE_NAME = 1 +const FNM_LEADING_DIR = 8 +const FNM_NOESCAPE = 2 +const FNM_NOMATCH = 1 +const FNM_NOSYS = -1 +const FNM_PATHNAME = 1 +const FNM_PERIOD = 4 +const QUESTION = -4 +const STAR = -5 +const UNMATCHABLE = -2 + +func _str_next(tls *TLS, str uintptr, n Tsize_t, step uintptr) (r int32) { + bp := tls.Alloc(16) + defer tls.Free(16) + var k int32 + var _ /* wc at bp+0 */ Twchar_t + _ = k + if !(n != 0) { + **(**Tsize_t)(__ccgo_up(step)) = uint64(0) + return 0 + } + if Uint32FromInt8(**(**int8)(__ccgo_up(str))) >= uint32(128) { + k = Xmbtowc(tls, bp, str, n) + if k < 0 { + **(**Tsize_t)(__ccgo_up(step)) = uint64(1) + return -int32(1) + } + **(**Tsize_t)(__ccgo_up(step)) = Uint64FromInt32(k) + return **(**Twchar_t)(__ccgo_up(bp)) + } + **(**Tsize_t)(__ccgo_up(step)) = uint64(1) + return int32(**(**int8)(__ccgo_up(str))) +} + +func _pat_next(tls *TLS, pat uintptr, m Tsize_t, step uintptr, flags int32) (r int32) { + bp := tls.Alloc(16) + defer tls.Free(16) + var esc, k1, z int32 + var k Tsize_t + var _ /* wc at bp+0 */ Twchar_t + _, _, _, _ = esc, k, k1, z + esc = 0 + if !(m != 0) || !(**(**int8)(__ccgo_up(pat)) != 0) { + **(**Tsize_t)(__ccgo_up(step)) = uint64(0) + return END + } + **(**Tsize_t)(__ccgo_up(step)) = uint64(1) + if int32(**(**int8)(__ccgo_up(pat))) == int32('\\') && **(**int8)(__ccgo_up(pat + 1)) != 0 && !(flags&Int32FromInt32(FNM_NOESCAPE) != 0) { + **(**Tsize_t)(__ccgo_up(step)) = uint64(2) + pat = pat + 1 + esc = int32(1) + goto escaped + } + if int32(**(**int8)(__ccgo_up(pat))) == int32('[') { + k = uint64(1) + if k < m { + if int32(**(**int8)(__ccgo_up(pat + uintptr(k)))) == int32('^') || int32(**(**int8)(__ccgo_up(pat + uintptr(k)))) == int32('!') { + k = k + 1 + } + } + if k < m { + if int32(**(**int8)(__ccgo_up(pat + uintptr(k)))) == int32(']') { + k = k + 1 + } + } + for { + if !(k < m && **(**int8)(__ccgo_up(pat + uintptr(k))) != 0 && int32(**(**int8)(__ccgo_up(pat + uintptr(k)))) != int32(']')) { + break + } + if k+uint64(1) < m && **(**int8)(__ccgo_up(pat + uintptr(k+uint64(1)))) != 0 && int32(**(**int8)(__ccgo_up(pat + uintptr(k)))) == int32('[') && (int32(**(**int8)(__ccgo_up(pat + uintptr(k+uint64(1))))) == int32(':') || int32(**(**int8)(__ccgo_up(pat + uintptr(k+uint64(1))))) == int32('.') || int32(**(**int8)(__ccgo_up(pat + uintptr(k+uint64(1))))) == int32('=')) { + z = int32(**(**int8)(__ccgo_up(pat + uintptr(k+uint64(1))))) + k = k + uint64(2) + if k < m && **(**int8)(__ccgo_up(pat + uintptr(k))) != 0 { + k = k + 1 + } + for k < m && **(**int8)(__ccgo_up(pat + uintptr(k))) != 0 && (int32(**(**int8)(__ccgo_up(pat + uintptr(k-uint64(1))))) != z || int32(**(**int8)(__ccgo_up(pat + uintptr(k)))) != int32(']')) { + k = k + 1 + } + if k == m || !(**(**int8)(__ccgo_up(pat + uintptr(k))) != 0) { + break + } + } + goto _1 + _1: + ; + k = k + 1 + } + if k == m || !(**(**int8)(__ccgo_up(pat + uintptr(k))) != 0) { + **(**Tsize_t)(__ccgo_up(step)) = uint64(1) + return int32('[') + } + **(**Tsize_t)(__ccgo_up(step)) = k + uint64(1) + return -int32(3) + } + if int32(**(**int8)(__ccgo_up(pat))) == int32('*') { + return -int32(5) + } + if int32(**(**int8)(__ccgo_up(pat))) == int32('?') { + return -int32(4) + } + goto escaped +escaped: + ; + if Uint32FromInt8(**(**int8)(__ccgo_up(pat))) >= uint32(128) { + k1 = Xmbtowc(tls, bp, pat, m) + if k1 < 0 { + **(**Tsize_t)(__ccgo_up(step)) = uint64(0) + return -int32(2) + } + **(**Tsize_t)(__ccgo_up(step)) = Uint64FromInt32(k1 + esc) + return **(**Twchar_t)(__ccgo_up(bp)) + } + return int32(**(**int8)(__ccgo_up(pat))) +} + +func _casefold(tls *TLS, k int32) (r int32) { + var c int32 + var v1 uint32 + _, _ = c, v1 + c = Int32FromUint32(Xtowupper(tls, Uint32FromInt32(k))) + if c == k { + v1 = Xtowlower(tls, Uint32FromInt32(k)) + } else { + v1 = Uint32FromInt32(c) + } + return Int32FromUint32(v1) +} + +func _match_bracket(tls *TLS, p uintptr, k int32, kfold int32) (r int32) { + bp := tls.Alloc(32) + defer tls.Free(32) + var inv, l, l1, z int32 + var p0 uintptr + var _ /* buf at bp+8 */ [16]int8 + var _ /* wc at bp+0 */ Twchar_t + var _ /* wc2 at bp+4 */ Twchar_t + _, _, _, _, _ = inv, l, l1, p0, z + inv = 0 + p = p + 1 + if int32(**(**int8)(__ccgo_up(p))) == int32('^') || int32(**(**int8)(__ccgo_up(p))) == int32('!') { + inv = int32(1) + p = p + 1 + } + if int32(**(**int8)(__ccgo_up(p))) == int32(']') { + if k == int32(']') { + return BoolInt32(!(inv != 0)) + } + p = p + 1 + } else { + if int32(**(**int8)(__ccgo_up(p))) == int32('-') { + if k == int32('-') { + return BoolInt32(!(inv != 0)) + } + p = p + 1 + } + } + **(**Twchar_t)(__ccgo_up(bp)) = int32(**(**int8)(__ccgo_up(p + uintptr(-Int32FromInt32(1))))) + for { + if !(int32(**(**int8)(__ccgo_up(p))) != int32(']')) { + break + } + if int32(**(**int8)(__ccgo_up(p))) == int32('-') && int32(**(**int8)(__ccgo_up(p + 1))) != int32(']') { + l = Xmbtowc(tls, bp+4, p+uintptr(1), uint64(4)) + if l < 0 { + return 0 + } + if **(**Twchar_t)(__ccgo_up(bp)) <= **(**Twchar_t)(__ccgo_up(bp + 4)) { + if Uint32FromInt32(k)-Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp))) <= Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp + 4))-**(**Twchar_t)(__ccgo_up(bp))) || Uint32FromInt32(kfold)-Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp))) <= Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp + 4))-**(**Twchar_t)(__ccgo_up(bp))) { + return BoolInt32(!(inv != 0)) + } + } + p = p + uintptr(l-int32(1)) + goto _1 + } + if int32(**(**int8)(__ccgo_up(p))) == int32('[') && (int32(**(**int8)(__ccgo_up(p + 1))) == int32(':') || int32(**(**int8)(__ccgo_up(p + 1))) == int32('.') || int32(**(**int8)(__ccgo_up(p + 1))) == int32('=')) { + p0 = p + uintptr(2) + z = int32(**(**int8)(__ccgo_up(p + 1))) + p = p + uintptr(3) + for int32(**(**int8)(__ccgo_up(p + uintptr(-Int32FromInt32(1))))) != z || int32(**(**int8)(__ccgo_up(p))) != int32(']') { + p = p + 1 + } + if z == int32(':') && int64(p-uintptr(1))-int64(p0) < int64(16) { + Xmemcpy(tls, bp+8, p0, Uint64FromInt64(int64(p-uintptr(1))-int64(p0))) + (**(**[16]int8)(__ccgo_up(bp + 8)))[int64(p-uintptr(1))-int64(p0)] = 0 + if Xiswctype(tls, Uint32FromInt32(k), Xwctype(tls, bp+8)) != 0 || Xiswctype(tls, Uint32FromInt32(kfold), Xwctype(tls, bp+8)) != 0 { + return BoolInt32(!(inv != 0)) + } + } + goto _1 + } + if Uint32FromInt8(**(**int8)(__ccgo_up(p))) < uint32(128) { + **(**Twchar_t)(__ccgo_up(bp)) = Int32FromUint8(Uint8FromInt8(**(**int8)(__ccgo_up(p)))) + } else { + l1 = Xmbtowc(tls, bp, p, uint64(4)) + if l1 < 0 { + return 0 + } + p = p + uintptr(l1-int32(1)) + } + if **(**Twchar_t)(__ccgo_up(bp)) == k || **(**Twchar_t)(__ccgo_up(bp)) == kfold { + return BoolInt32(!(inv != 0)) + } + goto _1 + _1: + ; + p = p + 1 + } + return inv +} + +func _fnmatch_internal(tls *TLS, pat uintptr, m Tsize_t, str uintptr, n Tsize_t, flags int32) (r int32) { + bp := tls.Alloc(16) + defer tls.Free(16) + var c, k, kfold, v2 int32 + var endpat, endstr, p, ptail, s, stail, v6 uintptr + var tailcnt Tsize_t + var v9 bool + var _ /* pinc at bp+0 */ Tsize_t + var _ /* sinc at bp+8 */ Tsize_t + _, _, _, _, _, _, _, _, _, _, _, _, _ = c, endpat, endstr, k, kfold, p, ptail, s, stail, tailcnt, v2, v6, v9 + tailcnt = uint64(0) + if flags&int32(FNM_PERIOD) != 0 { + if int32(**(**int8)(__ccgo_up(str))) == int32('.') && int32(**(**int8)(__ccgo_up(pat))) != int32('.') { + return int32(FNM_NOMATCH) + } + } + for { + v2 = _pat_next(tls, pat, m, bp, flags) + c = v2 + switch v2 { + case -int32(2): + return int32(FNM_NOMATCH) + case -int32(5): + pat = pat + 1 + m = m - 1 + default: + k = _str_next(tls, str, n, bp+8) + if k <= 0 { + if c == END { + v2 = 0 + } else { + v2 = int32(FNM_NOMATCH) + } + return v2 + } + str = str + uintptr(**(**Tsize_t)(__ccgo_up(bp + 8))) + n = n - **(**Tsize_t)(__ccgo_up(bp + 8)) + if flags&int32(FNM_CASEFOLD) != 0 { + v2 = _casefold(tls, k) + } else { + v2 = k + } + kfold = v2 + if c == -int32(3) { + if !(_match_bracket(tls, pat, k, kfold) != 0) { + return int32(FNM_NOMATCH) + } + } else { + if c != -int32(4) && k != c && kfold != c { + return int32(FNM_NOMATCH) + } + } + pat = pat + uintptr(**(**Tsize_t)(__ccgo_up(bp))) + m = m - **(**Tsize_t)(__ccgo_up(bp)) + goto _1 + } + break + goto _1 + _1: + } + /* Compute real pat length if it was initially unknown/-1 */ + m = Xstrnlen(tls, pat, m) + endpat = pat + uintptr(m) + /* Find the last * in pat and count chars needed after it */ + v6 = pat + ptail = v6 + p = v6 + for { + if !(p < endpat) { + break + } + switch _pat_next(tls, p, Uint64FromInt64(int64(endpat)-int64(p)), bp, flags) { + case -int32(2): + return int32(FNM_NOMATCH) + case -int32(5): + tailcnt = uint64(0) + ptail = p + uintptr(1) + default: + tailcnt = tailcnt + 1 + break + } + goto _5 + _5: + ; + p = p + uintptr(**(**Tsize_t)(__ccgo_up(bp))) + } + /* Past this point we need not check for UNMATCHABLE in pat, + * because all of pat has already been parsed once. */ + /* Compute real str length if it was initially unknown/-1 */ + n = Xstrnlen(tls, str, n) + endstr = str + uintptr(n) + if n < tailcnt { + return int32(FNM_NOMATCH) + } + /* Find the final tailcnt chars of str, accounting for UTF-8. + * On illegal sequences we may get it wrong, but in that case + * we necessarily have a matching failure anyway. */ + s = endstr + for { + if !(s > str && tailcnt != 0) { + break + } + if v9 = Uint32FromInt8(**(**int8)(__ccgo_up(s + uintptr(-Int32FromInt32(1))))) < uint32(128); !v9 { + if !!(**(**uintptr)(__ccgo_up((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale)) != 0) { + v2 = int32(4) + } else { + v2 = int32(1) + } + } + if v9 || v2 == int32(1) { + s = s - 1 + } else { + for { + s = s - 1 + v6 = s + if !(uint32(Uint8FromInt8(**(**int8)(__ccgo_up(v6))))-uint32(0x80) < uint32(0x40) && s > str) { + break + } + } + } + goto _7 + _7: + ; + tailcnt = tailcnt - 1 + } + if tailcnt != 0 { + return int32(FNM_NOMATCH) + } + stail = s + /* Check that the pat and str tails match */ + p = ptail + for { + c = _pat_next(tls, p, Uint64FromInt64(int64(endpat)-int64(p)), bp, flags) + p = p + uintptr(**(**Tsize_t)(__ccgo_up(bp))) + v2 = _str_next(tls, s, Uint64FromInt64(int64(endstr)-int64(s)), bp+8) + k = v2 + if v2 <= 0 { + if c != END { + return int32(FNM_NOMATCH) + } + break + } + s = s + uintptr(**(**Tsize_t)(__ccgo_up(bp + 8))) + if flags&int32(FNM_CASEFOLD) != 0 { + v2 = _casefold(tls, k) + } else { + v2 = k + } + kfold = v2 + if c == -int32(3) { + if !(_match_bracket(tls, p-uintptr(**(**Tsize_t)(__ccgo_up(bp))), k, kfold) != 0) { + return int32(FNM_NOMATCH) + } + } else { + if c != -int32(4) && k != c && kfold != c { + return int32(FNM_NOMATCH) + } + } + goto _11 + _11: + } + /* We're all done with the tails now, so throw them out */ + endstr = stail + endpat = ptail + /* Match pattern components until there are none left */ + for pat < endpat { + p = pat + s = str + for { + c = _pat_next(tls, p, Uint64FromInt64(int64(endpat)-int64(p)), bp, flags) + p = p + uintptr(**(**Tsize_t)(__ccgo_up(bp))) + /* Encountering * completes/commits a component */ + if c == -int32(5) { + pat = p + str = s + break + } + k = _str_next(tls, s, Uint64FromInt64(int64(endstr)-int64(s)), bp+8) + if !(k != 0) { + return int32(FNM_NOMATCH) + } + if flags&int32(FNM_CASEFOLD) != 0 { + v2 = _casefold(tls, k) + } else { + v2 = k + } + kfold = v2 + if c == -int32(3) { + if !(_match_bracket(tls, p-uintptr(**(**Tsize_t)(__ccgo_up(bp))), k, kfold) != 0) { + break + } + } else { + if c != -int32(4) && k != c && kfold != c { + break + } + } + s = s + uintptr(**(**Tsize_t)(__ccgo_up(bp + 8))) + goto _14 + _14: + } + if c == -int32(5) { + continue + } + /* If we failed, advance str, by 1 char if it's a valid + * char, or past all invalid bytes otherwise. */ + k = _str_next(tls, str, Uint64FromInt64(int64(endstr)-int64(str)), bp+8) + if k > 0 { + str = str + uintptr(**(**Tsize_t)(__ccgo_up(bp + 8))) + } else { + str = str + 1 + for { + if !(_str_next(tls, str, Uint64FromInt64(int64(endstr)-int64(str)), bp+8) < 0) { + break + } + goto _16 + _16: + ; + str = str + 1 + } + } + } + return 0 +} + +func Xfnmatch(tls *TLS, pat uintptr, str uintptr, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v pat=%v str=%v flags=%v, (%v:)", tls, pat, str, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var c, v4 int32 + var p, s uintptr + var _ /* inc at bp+0 */ Tsize_t + _, _, _, _ = c, p, s, v4 + if flags&int32(FNM_PATHNAME) != 0 { + for { + s = str + for { + if !(**(**int8)(__ccgo_up(s)) != 0 && int32(**(**int8)(__ccgo_up(s))) != int32('/')) { + break + } + goto _2 + _2: + ; + s = s + 1 + } + p = pat + for { + v4 = _pat_next(tls, p, Uint64FromInt32(-Int32FromInt32(1)), bp, flags) + c = v4 + if !(v4 != END && c != int32('/')) { + break + } + goto _3 + _3: + ; + p = p + uintptr(**(**Tsize_t)(__ccgo_up(bp))) + } + if c != int32(**(**int8)(__ccgo_up(s))) && (!(**(**int8)(__ccgo_up(s)) != 0) || !(flags&Int32FromInt32(FNM_LEADING_DIR) != 0)) { + return int32(FNM_NOMATCH) + } + if _fnmatch_internal(tls, pat, Uint64FromInt64(int64(p)-int64(pat)), str, Uint64FromInt64(int64(s)-int64(str)), flags) != 0 { + return int32(FNM_NOMATCH) + } + if !(c != 0) { + return 0 + } + str = s + uintptr(1) + pat = p + uintptr(**(**Tsize_t)(__ccgo_up(bp))) + goto _1 + _1: + } + } else { + if flags&int32(FNM_LEADING_DIR) != 0 { + s = str + for { + if !(**(**int8)(__ccgo_up(s)) != 0) { + break + } + if int32(**(**int8)(__ccgo_up(s))) != int32('/') { + goto _5 + } + if !(_fnmatch_internal(tls, pat, Uint64FromInt32(-Int32FromInt32(1)), str, Uint64FromInt64(int64(s)-int64(str)), flags) != 0) { + return 0 + } + goto _5 + _5: + ; + s = s + 1 + } + } + } + return _fnmatch_internal(tls, pat, Uint64FromInt32(-Int32FromInt32(1)), str, Uint64FromInt32(-Int32FromInt32(1)), flags) +} + +const GLOB_ABORTED = 2 +const GLOB_APPEND = 32 +const GLOB_DOOFFS = 8 +const GLOB_ERR = 1 +const GLOB_MARK = 2 +const GLOB_NOCHECK = 16 +const GLOB_NOESCAPE = 64 +const GLOB_NOMATCH = 3 +const GLOB_NOSORT = 4 +const GLOB_NOSPACE = 1 +const GLOB_NOSYS = 4 +const GLOB_PERIOD = 128 +const GLOB_TILDE = 4096 +const GLOB_TILDE_CHECK = 16384 + +type Tglob_t = struct { + Fgl_pathc Tsize_t + Fgl_pathv uintptr + Fgl_offs Tsize_t + F__dummy1 int32 + F__dummy2 [5]uintptr +} + +type Tmatch = struct { + Fnext uintptr +} + +func _append(tls *TLS, tail uintptr, name uintptr, len1 Tsize_t, mark int32) (r int32) { + var new1 uintptr + _ = new1 + new1 = Xmalloc(tls, uint64(8)+len1+uint64(2)) + if !(new1 != 0) { + return -int32(1) + } + (*Tmatch)(unsafe.Pointer(**(**uintptr)(__ccgo_up(tail)))).Fnext = new1 + (*Tmatch)(unsafe.Pointer(new1)).Fnext = UintptrFromInt32(0) + Xmemcpy(tls, new1+8, name, len1+uint64(1)) + if mark != 0 && len1 != 0 && int32(**(**int8)(__ccgo_up(name + uintptr(len1-uint64(1))))) != int32('/') { + *(*int8)(unsafe.Pointer(new1 + 8 + uintptr(len1))) = int8('/') + *(*int8)(unsafe.Pointer(new1 + 8 + uintptr(len1+uint64(1)))) = 0 + } + **(**uintptr)(__ccgo_up(tail)) = new1 + return 0 +} + +func _do_glob(tls *TLS, buf uintptr, pos Tsize_t, type1 int32, pat uintptr, flags int32, __ccgo_fp_errfunc uintptr, tail uintptr) (r1 int32) { + bp := tls.Alloc(128) + defer tls.Free(128) + var de, dir, p, p2, v2 uintptr + var fnm_flags, in_bracket, old_errno, overflow, r, readerr, v10, v9 int32 + var i, j, v4 Tptrdiff_t + var l, v1 Tsize_t + var saved_sep int8 + var _ /* st at bp+0 */ Tstat + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = de, dir, fnm_flags, i, in_bracket, j, l, old_errno, overflow, p, p2, r, readerr, saved_sep, v1, v10, v2, v4, v9 + /* If GLOB_MARK is unused, we don't care about type. */ + if !(type1 != 0) && !(flags&Int32FromInt32(GLOB_MARK) != 0) { + type1 = int32(DT_REG) + } + /* Special-case the remaining pattern being all slashes, in + * which case we can use caller-passed type if it's a dir. */ + if **(**int8)(__ccgo_up(pat)) != 0 && type1 != int32(DT_DIR) { + type1 = 0 + } + for pos+uint64(1) < uint64(PATH_MAX) && int32(**(**int8)(__ccgo_up(pat))) == int32('/') { + v1 = pos + pos = pos + 1 + v2 = pat + pat = pat + 1 + **(**int8)(__ccgo_up(buf + uintptr(v1))) = **(**int8)(__ccgo_up(v2)) + } + /* Consume maximal [escaped-]literal prefix of pattern, copying + * and un-escaping it to the running buffer as we go. */ + i = 0 + j = 0 + in_bracket = 0 + overflow = 0 + for { + if !(int32(**(**int8)(__ccgo_up(pat + uintptr(i)))) != int32('*') && int32(**(**int8)(__ccgo_up(pat + uintptr(i)))) != int32('?') && (!(in_bracket != 0) || int32(**(**int8)(__ccgo_up(pat + uintptr(i)))) != int32(']'))) { + break + } + if !(**(**int8)(__ccgo_up(pat + uintptr(i))) != 0) { + if overflow != 0 { + return 0 + } + pat = pat + uintptr(i) + pos = pos + Uint64FromInt64(j) + v4 = Int64FromInt32(0) + j = v4 + i = v4 + break + } else { + if int32(**(**int8)(__ccgo_up(pat + uintptr(i)))) == int32('[') { + in_bracket = int32(1) + } else { + if int32(**(**int8)(__ccgo_up(pat + uintptr(i)))) == int32('\\') && !(flags&Int32FromInt32(GLOB_NOESCAPE) != 0) { + /* Backslashes inside a bracket are (at least by + * our interpretation) non-special, so if next + * char is ']' we have a complete expression. */ + if in_bracket != 0 && int32(**(**int8)(__ccgo_up(pat + uintptr(i+int64(1))))) == int32(']') { + break + } + /* Unpaired final backslash never matches. */ + if !(**(**int8)(__ccgo_up(pat + uintptr(i+int64(1)))) != 0) { + return 0 + } + i = i + 1 + } + } + } + if int32(**(**int8)(__ccgo_up(pat + uintptr(i)))) == int32('/') { + if overflow != 0 { + return 0 + } + in_bracket = 0 + pat = pat + uintptr(i+int64(1)) + i = int64(-int32(1)) + pos = pos + Uint64FromInt64(j+int64(1)) + j = int64(-int32(1)) + } + /* Only store a character if it fits in the buffer, but if + * a potential bracket expression is open, the overflow + * must be remembered and handled later only if the bracket + * is unterminated (and thereby a literal), so as not to + * disallow long bracket expressions with short matches. */ + if pos+Uint64FromInt64(j+Int64FromInt32(1)) < uint64(PATH_MAX) { + v4 = j + j = j + 1 + **(**int8)(__ccgo_up(buf + uintptr(pos+Uint64FromInt64(v4)))) = **(**int8)(__ccgo_up(pat + uintptr(i))) + } else { + if in_bracket != 0 { + overflow = int32(1) + } else { + return 0 + } + } + /* If we consume any new components, the caller-passed type + * or dummy type from above is no longer valid. */ + type1 = 0 + goto _3 + _3: + ; + i = i + 1 + } + **(**int8)(__ccgo_up(buf + uintptr(pos))) = 0 + if !(**(**int8)(__ccgo_up(pat)) != 0) { + if flags&int32(GLOB_MARK) != 0 && (!(type1 != 0) || type1 == int32(DT_LNK)) && !(Xstat(tls, buf, bp) != 0) { + if (**(**Tstat)(__ccgo_up(bp))).Fst_mode&uint32(S_IFMT) == uint32(S_IFDIR) { + type1 = int32(DT_DIR) + } else { + type1 = int32(DT_REG) + } + } + if !(type1 != 0) && Xlstat(tls, buf, bp) != 0 { + if **(**int32)(__ccgo_up(X__errno_location(tls))) != int32(ENOENT) && ((*(*func(*TLS, uintptr, int32) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_errfunc})))(tls, buf, **(**int32)(__ccgo_up(X__errno_location(tls)))) != 0 || flags&int32(GLOB_ERR) != 0) { + return int32(GLOB_ABORTED) + } + return 0 + } + if _append(tls, tail, buf, pos, BoolInt32(flags&int32(GLOB_MARK) != 0 && type1 == int32(DT_DIR))) != 0 { + return int32(GLOB_NOSPACE) + } + return 0 + } + p2 = Xstrchr(tls, pat, int32('/')) + saved_sep = int8('/') + /* Check if the '/' was escaped and, if so, remove the escape char + * so that it will not be unpaired when passed to fnmatch. */ + if p2 != 0 && !(flags&Int32FromInt32(GLOB_NOESCAPE) != 0) { + p = p2 + for { + if !(p > pat && int32(**(**int8)(__ccgo_up(p + uintptr(-Int32FromInt32(1))))) == int32('\\')) { + break + } + goto _6 + _6: + ; + p = p - 1 + } + if (int64(p2)-int64(p))%int64(2) != 0 { + p2 = p2 - 1 + saved_sep = int8('\\') + } + } + if pos != 0 { + v2 = buf + } else { + v2 = __ccgo_ts + 558 + } + dir = Xopendir(tls, v2) + if !(dir != 0) { + if (*(*func(*TLS, uintptr, int32) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_errfunc})))(tls, buf, **(**int32)(__ccgo_up(X__errno_location(tls)))) != 0 || flags&int32(GLOB_ERR) != 0 { + return int32(GLOB_ABORTED) + } + return 0 + } + old_errno = **(**int32)(__ccgo_up(X__errno_location(tls))) + for { + **(**int32)(__ccgo_up(X__errno_location(tls))) = 0 + v2 = Xreaddir(tls, dir) + de = v2 + if !(v2 != 0) { + break + } + /* Quickly skip non-directories when there's pattern left. */ + if p2 != 0 && (*Tdirent)(unsafe.Pointer(de)).Fd_type != 0 && Int32FromUint8((*Tdirent)(unsafe.Pointer(de)).Fd_type) != int32(DT_DIR) && Int32FromUint8((*Tdirent)(unsafe.Pointer(de)).Fd_type) != int32(DT_LNK) { + continue + } + l = _strlen(tls, de+19) + if l >= uint64(PATH_MAX)-pos { + continue + } + if p2 != 0 { + **(**int8)(__ccgo_up(p2)) = 0 + } + if flags&int32(GLOB_NOESCAPE) != 0 { + v9 = int32(FNM_NOESCAPE) + } else { + v9 = 0 + } + if !(flags&Int32FromInt32(GLOB_PERIOD) != 0) { + v10 = int32(FNM_PERIOD) + } else { + v10 = 0 + } + fnm_flags = v9 | v10 + if Xfnmatch(tls, pat, de+19, fnm_flags) != 0 { + continue + } + /* With GLOB_PERIOD, don't allow matching . or .. unless + * fnmatch would match them with FNM_PERIOD rules in effect. */ + if p2 != 0 && flags&int32(GLOB_PERIOD) != 0 && int32(**(**int8)(__ccgo_up(de + 19))) == int32('.') && (!(**(**int8)(__ccgo_up(de + 19 + 1)) != 0) || int32(**(**int8)(__ccgo_up(de + 19 + 1))) == int32('.') && !(**(**int8)(__ccgo_up(de + 19 + 2)) != 0)) && Xfnmatch(tls, pat, de+19, fnm_flags|int32(FNM_PERIOD)) != 0 { + continue + } + Xmemcpy(tls, buf+uintptr(pos), de+19, l+uint64(1)) + if p2 != 0 { + **(**int8)(__ccgo_up(p2)) = saved_sep + } + if p2 != 0 { + v2 = p2 + } else { + v2 = __ccgo_ts + } + r = _do_glob(tls, buf, pos+l, Int32FromUint8((*Tdirent)(unsafe.Pointer(de)).Fd_type), v2, flags, __ccgo_fp_errfunc, tail) + if r != 0 { + Xclosedir(tls, dir) + return r + } + } + readerr = **(**int32)(__ccgo_up(X__errno_location(tls))) + if p2 != 0 { + **(**int8)(__ccgo_up(p2)) = saved_sep + } + Xclosedir(tls, dir) + if readerr != 0 && ((*(*func(*TLS, uintptr, int32) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_errfunc})))(tls, buf, **(**int32)(__ccgo_up(X__errno_location(tls)))) != 0 || flags&int32(GLOB_ERR) != 0) { + return int32(GLOB_ABORTED) + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = old_errno + return 0 +} + +func _ignore_err(tls *TLS, path uintptr, err int32) (r int32) { + return 0 +} + +func _freelist(tls *TLS, head uintptr) { + var match, next uintptr + _, _ = match, next + match = (*Tmatch)(unsafe.Pointer(head)).Fnext + for { + if !(match != 0) { + break + } + next = (*Tmatch)(unsafe.Pointer(match)).Fnext + Xfree(tls, match) + goto _1 + _1: + ; + match = next + } +} + +func _sort(tls *TLS, a uintptr, b uintptr) (r int32) { + return Xstrcmp(tls, **(**uintptr)(__ccgo_up(a)), **(**uintptr)(__ccgo_up(b))) +} + +func _expand_tilde(tls *TLS, pat uintptr, buf uintptr, pos uintptr) (r int32) { + bp := tls.Alloc(64) + defer tls.Free(64) + var delim, v1 int8 + var home, name_end, p, v2 uintptr + var i, v10 Tsize_t + var v4 int32 + var _ /* pw at bp+0 */ Tpasswd + var _ /* res at bp+48 */ uintptr + _, _, _, _, _, _, _, _, _ = delim, home, i, name_end, p, v1, v10, v2, v4 + p = **(**uintptr)(__ccgo_up(pat)) + uintptr(1) + i = uint64(0) + name_end = X__strchrnul(tls, p, int32('/')) + v1 = **(**int8)(__ccgo_up(name_end)) + delim = v1 + if v1 != 0 { + v2 = name_end + name_end = name_end + 1 + **(**int8)(__ccgo_up(v2)) = 0 + } + **(**uintptr)(__ccgo_up(pat)) = name_end + if **(**int8)(__ccgo_up(p)) != 0 { + v2 = UintptrFromInt32(0) + } else { + v2 = Xgetenv(tls, __ccgo_ts+1385) + } + home = v2 + if !(home != 0) { + if **(**int8)(__ccgo_up(p)) != 0 { + v4 = Xgetpwnam_r(tls, p, bp, buf, uint64(PATH_MAX), bp+48) + } else { + v4 = Xgetpwuid_r(tls, Xgetuid(tls), bp, buf, uint64(PATH_MAX), bp+48) + } + switch v4 { + case int32(ENOMEM): + goto _5 + default: + goto _6 + case 0: + goto _7 + } + goto _8 + _5: + ; + return int32(GLOB_NOSPACE) + _7: + ; + if !!(**(**uintptr)(__ccgo_up(bp + 48)) != 0) { + goto _9 + } + _6: + ; + return int32(GLOB_NOMATCH) + _9: + ; + _8: + ; + home = (**(**Tpasswd)(__ccgo_up(bp))).Fpw_dir + } + for i < Uint64FromInt32(Int32FromInt32(PATH_MAX)-Int32FromInt32(2)) && **(**int8)(__ccgo_up(home)) != 0 { + v10 = i + i = i + 1 + v2 = home + home = home + 1 + **(**int8)(__ccgo_up(buf + uintptr(v10))) = **(**int8)(__ccgo_up(v2)) + } + if **(**int8)(__ccgo_up(home)) != 0 { + return int32(GLOB_NOMATCH) + } + v1 = delim + **(**int8)(__ccgo_up(buf + uintptr(i))) = v1 + if v1 != 0 { + i = i + 1 + v10 = i + **(**int8)(__ccgo_up(buf + uintptr(v10))) = 0 + } + **(**Tsize_t)(__ccgo_up(pos)) = i + return 0 +} + +type t__ccgo_fp__Xglob_2 = func(*TLS, uintptr, int32) int32 + +func Xglob(tls *TLS, pat uintptr, flags int32, __ccgo_fp_errfunc uintptr, g uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v pat=%v flags=%v __ccgo_fp_errfunc=%v g=%v, (%v:)", tls, pat, flags, __ccgo_fp_errfunc, g, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(4128) + defer tls.Free(4128) + var cnt, i, offs Tsize_t + var error1 int32 + var p, pathv uintptr + var v1 uint64 + var _ /* buf at bp+16 */ [4096]int8 + var _ /* head at bp+0 */ Tmatch + var _ /* pos at bp+4112 */ Tsize_t + var _ /* s at bp+4120 */ uintptr + var _ /* tail at bp+8 */ uintptr + _, _, _, _, _, _, _ = cnt, error1, i, offs, p, pathv, v1 + **(**Tmatch)(__ccgo_up(bp)) = struct { + Fnext uintptr + }{} + **(**uintptr)(__ccgo_up(bp + 8)) = bp + if flags&int32(GLOB_DOOFFS) != 0 { + v1 = (*Tglob_t)(unsafe.Pointer(g)).Fgl_offs + } else { + v1 = uint64(0) + } + offs = v1 + error1 = 0 + if !(__ccgo_fp_errfunc != 0) { + __ccgo_fp_errfunc = __ccgo_fp(_ignore_err) + } + if !(flags&Int32FromInt32(GLOB_APPEND) != 0) { + (*Tglob_t)(unsafe.Pointer(g)).Fgl_offs = offs + (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathc = uint64(0) + (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv = UintptrFromInt32(0) + } + if **(**int8)(__ccgo_up(pat)) != 0 { + p = Xstrdup(tls, pat) + if !(p != 0) { + return int32(GLOB_NOSPACE) + } + (**(**[4096]int8)(__ccgo_up(bp + 16)))[0] = 0 + **(**Tsize_t)(__ccgo_up(bp + 4112)) = uint64(0) + **(**uintptr)(__ccgo_up(bp + 4120)) = p + if flags&(Int32FromInt32(GLOB_TILDE)|Int32FromInt32(GLOB_TILDE_CHECK)) != 0 && int32(**(**int8)(__ccgo_up(p))) == int32('~') { + error1 = _expand_tilde(tls, bp+4120, bp+16, bp+4112) + } + if !(error1 != 0) { + error1 = _do_glob(tls, bp+16, **(**Tsize_t)(__ccgo_up(bp + 4112)), 0, **(**uintptr)(__ccgo_up(bp + 4120)), flags, __ccgo_fp_errfunc, bp+8) + } + Xfree(tls, p) + } + if error1 == int32(GLOB_NOSPACE) { + _freelist(tls, bp) + return error1 + } + cnt = uint64(0) + **(**uintptr)(__ccgo_up(bp + 8)) = (**(**Tmatch)(__ccgo_up(bp))).Fnext + for { + if !(**(**uintptr)(__ccgo_up(bp + 8)) != 0) { + break + } + goto _2 + _2: + ; + **(**uintptr)(__ccgo_up(bp + 8)) = (*Tmatch)(unsafe.Pointer(**(**uintptr)(__ccgo_up(bp + 8)))).Fnext + cnt = cnt + 1 + } + if !(cnt != 0) { + if flags&int32(GLOB_NOCHECK) != 0 { + **(**uintptr)(__ccgo_up(bp + 8)) = bp + if _append(tls, bp+8, pat, _strlen(tls, pat), 0) != 0 { + return int32(GLOB_NOSPACE) + } + cnt = cnt + 1 + } else { + if !(error1 != 0) { + return int32(GLOB_NOMATCH) + } + } + } + if flags&int32(GLOB_APPEND) != 0 { + pathv = Xrealloc(tls, (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv, (offs+(*Tglob_t)(unsafe.Pointer(g)).Fgl_pathc+cnt+uint64(1))*uint64(8)) + if !(pathv != 0) { + _freelist(tls, bp) + return int32(GLOB_NOSPACE) + } + (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv = pathv + offs = offs + (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathc + } else { + (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv = Xmalloc(tls, (offs+cnt+uint64(1))*uint64(8)) + if !((*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv != 0) { + _freelist(tls, bp) + return int32(GLOB_NOSPACE) + } + i = uint64(0) + for { + if !(i < offs) { + break + } + **(**uintptr)(__ccgo_up((*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv + uintptr(i)*8)) = UintptrFromInt32(0) + goto _3 + _3: + ; + i = i + 1 + } + } + i = uint64(0) + **(**uintptr)(__ccgo_up(bp + 8)) = (**(**Tmatch)(__ccgo_up(bp))).Fnext + for { + if !(i < cnt) { + break + } + **(**uintptr)(__ccgo_up((*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv + uintptr(offs+i)*8)) = **(**uintptr)(__ccgo_up(bp + 8)) + 8 + goto _4 + _4: + ; + **(**uintptr)(__ccgo_up(bp + 8)) = (*Tmatch)(unsafe.Pointer(**(**uintptr)(__ccgo_up(bp + 8)))).Fnext + i = i + 1 + } + **(**uintptr)(__ccgo_up((*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv + uintptr(offs+i)*8)) = UintptrFromInt32(0) + **(**Tsize_t)(__ccgo_up(g)) += cnt + if !(flags&Int32FromInt32(GLOB_NOSORT) != 0) { + Xqsort(tls, (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv+uintptr(offs)*8, cnt, uint64(8), __ccgo_fp(_sort)) + } + return error1 +} + +func Xglobfree(tls *TLS, g uintptr) { + if __ccgo_strace { + trc("tls=%v g=%v, (%v:)", tls, g, origin(2)) + } + var i Tsize_t + _ = i + i = uint64(0) + for { + if !(i < (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathc) { + break + } + Xfree(tls, **(**uintptr)(__ccgo_up((*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv + uintptr((*Tglob_t)(unsafe.Pointer(g)).Fgl_offs+i)*8))-uintptr(uint64(UintptrFromInt32(0)+8))) + goto _1 + _1: + ; + i = i + 1 + } + Xfree(tls, (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv) + (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathc = uint64(0) + (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv = UintptrFromInt32(0) +} + +const ASSERTION = -2 +const ASSERT_AT_BOL = 1 +const ASSERT_AT_BOW = 16 +const ASSERT_AT_EOL = 2 +const ASSERT_AT_EOW = 32 +const ASSERT_AT_WB = 64 +const ASSERT_AT_WB_NEG = 128 +const ASSERT_BACKREF = 256 +const ASSERT_CHAR_CLASS = 4 +const ASSERT_CHAR_CLASS_NEG = 8 +const ASSERT_LAST = 256 +const BACKREF = -4 +const COPY_MAXIMIZE_FIRST_TAG = 2 +const COPY_REMOVE_TAGS = 1 +const EMPTY1 = -1 +const MAX_NEG_CLASSES = 64 +const REG_BADBR = 10 +const REG_BADPAT = 2 +const REG_BADRPT = 13 +const REG_EBRACE = 9 +const REG_EBRACK = 7 +const REG_ECOLLATE = 3 +const REG_ECTYPE = 4 +const REG_EESCAPE = 5 +const REG_ENOSYS = -1 +const REG_EPAREN = 8 +const REG_ERANGE = 11 +const REG_ESPACE = 12 +const REG_ESUBREG = 6 +const REG_EXTENDED = 1 +const REG_ICASE = 2 +const REG_NEWLINE = 4 +const REG_NOMATCH = 1 +const REG_NOSUB = 8 +const REG_NOTBOL = 1 +const REG_NOTEOL = 2 +const REG_OK = 0 +const TAG = -3 +const TRE_CHAR_MAX = 1114111 +const TRE_MEM_BLOCK_SIZE = 1024 +const TRE_REGEX_T_FIELD = 0 +const tre_ctype = 0 +const tre_isalnum = 0 +const tre_isalpha = 0 +const tre_isblank = 0 +const tre_iscntrl = 0 +const tre_isctype = 0 +const tre_isdigit = 0 +const tre_isgraph = 0 +const tre_islower = 0 +const tre_isprint = 0 +const tre_ispunct = 0 +const tre_isspace = 0 +const tre_isupper = 0 +const tre_isxdigit = 0 +const tre_mem_alloc_impl = 0 +const tre_mem_destroy = 0 +const tre_mem_new_impl = 0 +const tre_strlen = 0 +const tre_tolower = 0 +const tre_toupper = 0 +const xcalloc = 0 +const xfree = 0 +const xmalloc = 0 +const xrealloc = 0 + +type Tregoff_t = int64 + +type Tregex_t = struct { + Fre_nsub Tsize_t + F__opaque uintptr + F__padding [4]uintptr + F__nsub2 Tsize_t + F__padding2 int8 +} + +type Tre_pattern_buffer = Tregex_t + +type Tregmatch_t = struct { + Frm_so Tregoff_t + Frm_eo Tregoff_t +} + +type Treg_errcode_t = int32 + +type Ttre_char_t = int32 + +type Ttre_cint_t = uint32 + +type Ttre_ctype_t = uint64 + +type Ttre_tnfa_transition_t = struct { + Fcode_min Ttre_cint_t + Fcode_max Ttre_cint_t + Fstate uintptr + Fstate_id int32 + Ftags uintptr + Fassertions int32 + Fu struct { + Fbackref [0]int32 + Fclass Ttre_ctype_t + } + Fneg_classes uintptr +} + +type Ttnfa_transition = Ttre_tnfa_transition_t + +type Ttre_tag_direction_t = int32 + +const _TRE_TAG_MINIMIZE = 0 +const _TRE_TAG_MAXIMIZE = 1 + +type Ttre_submatch_data = struct { + Fso_tag int32 + Feo_tag int32 + Fparents uintptr +} + +type Ttre_submatch_data_t = struct { + Fso_tag int32 + Feo_tag int32 + Fparents uintptr +} + +type Ttre_tnfa_t = struct { + Ftransitions uintptr + Fnum_transitions uint32 + Finitial uintptr + Ffinal uintptr + Fsubmatch_data uintptr + Ffirstpos_chars uintptr + Ffirst_char int32 + Fnum_submatches uint32 + Ftag_directions uintptr + Fminimal_tags uintptr + Fnum_tags int32 + Fnum_minimals int32 + Fend_tag int32 + Fnum_states int32 + Fcflags int32 + Fhave_backrefs int32 + Fhave_approx int32 +} + +type Ttnfa = Ttre_tnfa_t + +type Ttre_list_t = struct { + Fdata uintptr + Fnext uintptr +} + +type Ttre_list = Ttre_list_t + +type Ttre_mem_t = uintptr + +type Ttre_mem_struct = struct { + Fblocks uintptr + Fcurrent uintptr + Fptr uintptr + Fn Tsize_t + Ffailed int32 + Fprovided uintptr +} + +/*********************************************************************** + from tre-compile.h +***********************************************************************/ + +type Ttre_pos_and_tags_t = struct { + Fposition int32 + Fcode_min int32 + Fcode_max int32 + Ftags uintptr + Fassertions int32 + Fclass Ttre_ctype_t + Fneg_classes uintptr + Fbackref int32 +} + +/*********************************************************************** + from tre-ast.c and tre-ast.h +***********************************************************************/ + +// C documentation +// +// /* The different AST node types. */ +type Ttre_ast_type_t = int32 + +const _LITERAL = 0 +const _CATENATION = 1 +const _ITERATION = 2 +const _UNION = 3 + +/* Special subtypes of TRE_LITERAL. */ + +// C documentation +// +// /* A generic AST node. All AST nodes consist of this node on the top +// level with `obj' pointing to the actual content. */ +type Ttre_ast_node_t = struct { + Ftype1 Ttre_ast_type_t + Fobj uintptr + Fnullable int32 + Fsubmatch_id int32 + Fnum_submatches int32 + Fnum_tags int32 + Ffirstpos uintptr + Flastpos uintptr +} + +// C documentation +// +// /* A "literal" node. These are created for assertions, back references, +// tags, matching parameter settings, and all expressions that match one +// character. */ +type Ttre_literal_t = struct { + Fcode_min int64 + Fcode_max int64 + Fposition int32 + Fclass Ttre_ctype_t + Fneg_classes uintptr +} + +// C documentation +// +// /* A "catenation" node. These are created when two regexps are concatenated. +// If there are more than one subexpressions in sequence, the `left' part +// holds all but the last, and `right' part holds the last subexpression +// (catenation is left associative). */ +type Ttre_catenation_t = struct { + Fleft uintptr + Fright uintptr +} + +// C documentation +// +// /* An "iteration" node. These are created for the "*", "+", "?", and "{m,n}" +// operators. */ +type Ttre_iteration_t = struct { + Farg uintptr + Fmin int32 + Fmax int32 + F__ccgo16 uint8 +} + +// C documentation +// +// /* An "union" node. These are created for the "|" operator. */ +type Ttre_union_t = struct { + Fleft uintptr + Fright uintptr +} + +func _tre_ast_new_node(tls *TLS, mem Ttre_mem_t, type1 int32, obj uintptr) (r uintptr) { + var node uintptr + _ = node + node = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), int32(1), uint64(48)) + if !(node != 0) || !(obj != 0) { + return uintptr(0) + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj = obj + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 = type1 + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnullable = -int32(1) + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fsubmatch_id = -int32(1) + return node +} + +func _tre_ast_new_literal(tls *TLS, mem Ttre_mem_t, code_min int32, code_max int32, position int32) (r uintptr) { + var lit, node uintptr + _, _ = lit, node + lit = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), int32(1), uint64(40)) + node = _tre_ast_new_node(tls, mem, int32(_LITERAL), lit) + if !(node != 0) { + return uintptr(0) + } + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min = int64(code_min) + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max = int64(code_max) + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition = position + return node +} + +func _tre_ast_new_iter(tls *TLS, mem Ttre_mem_t, arg uintptr, min int32, max int32, minimal int32) (r uintptr) { + var iter, node uintptr + _, _ = iter, node + iter = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), int32(1), uint64(24)) + node = _tre_ast_new_node(tls, mem, int32(_ITERATION), iter) + if !(node != 0) { + return uintptr(0) + } + (*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg = arg + (*Ttre_iteration_t)(unsafe.Pointer(iter)).Fmin = min + (*Ttre_iteration_t)(unsafe.Pointer(iter)).Fmax = max + SetBitFieldPtr8Uint32(iter+16, Uint32FromInt32(minimal), 0, 0x1) + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_submatches = (*Ttre_ast_node_t)(unsafe.Pointer(arg)).Fnum_submatches + return node +} + +func _tre_ast_new_union(tls *TLS, mem Ttre_mem_t, left uintptr, right uintptr) (r uintptr) { + var node, un uintptr + _, _ = node, un + if !(left != 0) { + return right + } + un = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), int32(1), uint64(16)) + node = _tre_ast_new_node(tls, mem, int32(_UNION), un) + if !(node != 0) || !(right != 0) { + return uintptr(0) + } + (*Ttre_union_t)(unsafe.Pointer(un)).Fleft = left + (*Ttre_union_t)(unsafe.Pointer(un)).Fright = right + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_submatches = (*Ttre_ast_node_t)(unsafe.Pointer(left)).Fnum_submatches + (*Ttre_ast_node_t)(unsafe.Pointer(right)).Fnum_submatches + return node +} + +func _tre_ast_new_catenation(tls *TLS, mem Ttre_mem_t, left uintptr, right uintptr) (r uintptr) { + var cat, node uintptr + _, _ = cat, node + if !(left != 0) { + return right + } + cat = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), int32(1), uint64(16)) + node = _tre_ast_new_node(tls, mem, int32(_CATENATION), cat) + if !(node != 0) { + return uintptr(0) + } + (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft = left + (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright = right + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_submatches = (*Ttre_ast_node_t)(unsafe.Pointer(left)).Fnum_submatches + (*Ttre_ast_node_t)(unsafe.Pointer(right)).Fnum_submatches + return node +} + +/*********************************************************************** + from tre-stack.c and tre-stack.h +***********************************************************************/ + +type Ttre_stack_t = struct { + Fsize int32 + Fmax_size int32 + Fincrement int32 + Fptr int32 + Fstack uintptr +} + +/*********************************************************************** + from tre-stack.c and tre-stack.h +***********************************************************************/ + +type Ttre_stack_rec = Ttre_stack_t + +/* Just to save some typing. */ + +type Ttre_stack_item = struct { + Fint_value [0]int32 + Fvoidptr_value uintptr +} + +func _tre_stack_new(tls *TLS, size int32, max_size int32, increment int32) (r uintptr) { + var s uintptr + _ = s + s = Xmalloc(tls, uint64(24)) + if s != UintptrFromInt32(0) { + (*Ttre_stack_t)(unsafe.Pointer(s)).Fstack = Xmalloc(tls, uint64(8)*Uint64FromInt32(size)) + if (*Ttre_stack_t)(unsafe.Pointer(s)).Fstack == UintptrFromInt32(0) { + Xfree(tls, s) + return UintptrFromInt32(0) + } + (*Ttre_stack_t)(unsafe.Pointer(s)).Fsize = size + (*Ttre_stack_t)(unsafe.Pointer(s)).Fmax_size = max_size + (*Ttre_stack_t)(unsafe.Pointer(s)).Fincrement = increment + (*Ttre_stack_t)(unsafe.Pointer(s)).Fptr = 0 + } + return s +} + +func _tre_stack_destroy(tls *TLS, s uintptr) { + Xfree(tls, (*Ttre_stack_t)(unsafe.Pointer(s)).Fstack) + Xfree(tls, s) +} + +func _tre_stack_num_objects(tls *TLS, s uintptr) (r int32) { + return (*Ttre_stack_t)(unsafe.Pointer(s)).Fptr +} + +func _tre_stack_push(tls *TLS, s uintptr, value Ttre_stack_item) (r Treg_errcode_t) { + var new_buffer uintptr + var new_size int32 + _, _ = new_buffer, new_size + if (*Ttre_stack_t)(unsafe.Pointer(s)).Fptr < (*Ttre_stack_t)(unsafe.Pointer(s)).Fsize { + **(**Ttre_stack_item)(__ccgo_up((*Ttre_stack_t)(unsafe.Pointer(s)).Fstack + uintptr((*Ttre_stack_t)(unsafe.Pointer(s)).Fptr)*8)) = value + (*Ttre_stack_t)(unsafe.Pointer(s)).Fptr = (*Ttre_stack_t)(unsafe.Pointer(s)).Fptr + 1 + } else { + if (*Ttre_stack_t)(unsafe.Pointer(s)).Fsize >= (*Ttre_stack_t)(unsafe.Pointer(s)).Fmax_size { + return int32(REG_ESPACE) + } else { + new_size = (*Ttre_stack_t)(unsafe.Pointer(s)).Fsize + (*Ttre_stack_t)(unsafe.Pointer(s)).Fincrement + if new_size > (*Ttre_stack_t)(unsafe.Pointer(s)).Fmax_size { + new_size = (*Ttre_stack_t)(unsafe.Pointer(s)).Fmax_size + } + new_buffer = Xrealloc(tls, (*Ttre_stack_t)(unsafe.Pointer(s)).Fstack, uint64(8)*Uint64FromInt32(new_size)) + if new_buffer == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + (*Ttre_stack_t)(unsafe.Pointer(s)).Fsize = new_size + (*Ttre_stack_t)(unsafe.Pointer(s)).Fstack = new_buffer + _tre_stack_push(tls, s, value) + } + } + return REG_OK +} + +func _tre_stack_push_int(tls *TLS, s uintptr, value int32) (r Treg_errcode_t) { + var item Ttre_stack_item + _ = item + *(*int32)(unsafe.Pointer(&item)) = value + return _tre_stack_push(tls, s, item) +} + +func _tre_stack_push_voidptr(tls *TLS, s uintptr, value uintptr) (r Treg_errcode_t) { + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* item at bp+0 */ Ttre_stack_item + *(*uintptr)(unsafe.Pointer(bp)) = value + return _tre_stack_push(tls, s, **(**Ttre_stack_item)(__ccgo_up(bp))) +} + +func _tre_stack_pop_int(tls *TLS, s uintptr) (r int32) { + var v1 int32 + var v2 uintptr + _, _ = v1, v2 + v2 = s + 12 + *(*int32)(unsafe.Pointer(v2)) = *(*int32)(unsafe.Pointer(v2)) - 1 + v1 = *(*int32)(unsafe.Pointer(v2)) + return *(*int32)(unsafe.Pointer(&**(**Ttre_stack_item)(__ccgo_up((*Ttre_stack_t)(unsafe.Pointer(s)).Fstack + uintptr(v1)*8)))) +} + +func _tre_stack_pop_voidptr(tls *TLS, s uintptr) (r uintptr) { + var v1 int32 + var v2 uintptr + _, _ = v1, v2 + v2 = s + 12 + *(*int32)(unsafe.Pointer(v2)) = *(*int32)(unsafe.Pointer(v2)) - 1 + v1 = *(*int32)(unsafe.Pointer(v2)) + return *(*uintptr)(unsafe.Pointer((*Ttre_stack_t)(unsafe.Pointer(s)).Fstack + uintptr(v1)*8)) +} + +/*********************************************************************** + from tre-parse.c and tre-parse.h +***********************************************************************/ + +// C documentation +// +// /* Parse context. */ +type Ttre_parse_ctx_t = struct { + Fmem Ttre_mem_t + Fstack uintptr + Fn uintptr + Fs uintptr + Fstart uintptr + Fsubmatch_id int32 + Fposition int32 + Fmax_backref int32 + Fcflags int32 +} + +// C documentation +// +// /* Some macros for expanding \w, \s, etc. */ +var _tre_macros = [13]struct { + Fc int8 + Fexpansion uintptr +}{ + 0: { + Fc: int8('t'), + Fexpansion: __ccgo_ts + 1390, + }, + 1: { + Fc: int8('n'), + Fexpansion: __ccgo_ts + 301, + }, + 2: { + Fc: int8('r'), + Fexpansion: __ccgo_ts + 1392, + }, + 3: { + Fc: int8('f'), + Fexpansion: __ccgo_ts + 1394, + }, + 4: { + Fc: int8('a'), + Fexpansion: __ccgo_ts + 1396, + }, + 5: { + Fc: int8('e'), + Fexpansion: __ccgo_ts + 1398, + }, + 6: { + Fc: int8('w'), + Fexpansion: __ccgo_ts + 1400, + }, + 7: { + Fc: int8('W'), + Fexpansion: __ccgo_ts + 1413, + }, + 8: { + Fc: int8('s'), + Fexpansion: __ccgo_ts + 1427, + }, + 9: { + Fc: int8('S'), + Fexpansion: __ccgo_ts + 1439, + }, + 10: { + Fc: int8('d'), + Fexpansion: __ccgo_ts + 1452, + }, + 11: { + Fc: int8('D'), + Fexpansion: __ccgo_ts + 1464, + }, + 12: {}, +} + +// C documentation +// +// /* Expands a macro delimited by `regex' and `regex_end' to `buf', which +// must have at least `len' items. Sets buf[0] to zero if the there +// is no match in `tre_macros'. */ +func _tre_expand_macro(tls *TLS, s uintptr) (r uintptr) { + var i int32 + _ = i + i = 0 + for { + if !(_tre_macros[i].Fc != 0 && int32(_tre_macros[i].Fc) != int32(**(**int8)(__ccgo_up(s)))) { + break + } + goto _1 + _1: + ; + i = i + 1 + } + return _tre_macros[i].Fexpansion +} + +func _tre_compare_lit(tls *TLS, a uintptr, b uintptr) (r int32) { + var la, lb uintptr + _, _ = la, lb + la = a + lb = b + /* assumes the range of valid code_min is < INT_MAX */ + return int32((*Ttre_literal_t)(unsafe.Pointer(**(**uintptr)(__ccgo_up(la)))).Fcode_min - (*Ttre_literal_t)(unsafe.Pointer(**(**uintptr)(__ccgo_up(lb)))).Fcode_min) +} + +type Tliterals = struct { + Fmem Ttre_mem_t + Fa uintptr + Flen1 int32 + Fcap1 int32 +} + +func _tre_new_lit(tls *TLS, p uintptr) (r uintptr) { + var a, v2 uintptr + var v1 int32 + _, _, _ = a, v1, v2 + if (*Tliterals)(unsafe.Pointer(p)).Flen1 >= (*Tliterals)(unsafe.Pointer(p)).Fcap1 { + if (*Tliterals)(unsafe.Pointer(p)).Fcap1 >= Int32FromInt32(1)< max { + return int32(REG_ERANGE) + } + s = s + uintptr(len1) + } + } + if class != 0 && (*Tneg)(unsafe.Pointer(neg)).Fnegate != 0 { + if (*Tneg)(unsafe.Pointer(neg)).Flen1 >= int32(MAX_NEG_CLASSES) { + return int32(REG_ESPACE) + } + v6 = neg + 4 + v2 = *(*int32)(unsafe.Pointer(v6)) + *(*int32)(unsafe.Pointer(v6)) = *(*int32)(unsafe.Pointer(v6)) + 1 + **(**Ttre_ctype_t)(__ccgo_up(neg + 8 + uintptr(v2)*8)) = class + } else { + lit = _tre_new_lit(tls, ls) + if !(lit != 0) { + return int32(REG_ESPACE) + } + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min = int64(min) + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max = int64(max) + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fclass = class + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition = -int32(1) + /* Add opposite-case codepoints if REG_ICASE is present. + It seems that POSIX requires that bracket negation + should happen before case-folding, but most practical + implementations do it the other way around. Changing + the order would need efficient representation of + case-fold ranges and bracket range sets even with + simple patterns so this is ok for now. */ + if (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fcflags&int32(REG_ICASE) != 0 && !(class != 0) { + if _add_icase_literals(tls, ls, min, max) != 0 { + return int32(REG_ESPACE) + } + } + } + goto _1 + _1: + } + return r +} + +func _parse_bracket(tls *TLS, ctx uintptr, s uintptr) (r Treg_errcode_t) { + bp := tls.Alloc(544) + defer tls.Free(544) + var err Treg_errcode_t + var i, max, min, negmax, negmin, v1 int32 + var lit, n, nc, node uintptr + var _ /* ls at bp+0 */ Tliterals + var _ /* neg at bp+24 */ Tneg + _, _, _, _, _, _, _, _, _, _, _ = err, i, lit, max, min, n, nc, negmax, negmin, node, v1 + node = uintptr(0) + nc = uintptr(0) + (**(**Tliterals)(__ccgo_up(bp))).Fmem = (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem + (**(**Tliterals)(__ccgo_up(bp))).Flen1 = 0 + (**(**Tliterals)(__ccgo_up(bp))).Fcap1 = int32(32) + (**(**Tliterals)(__ccgo_up(bp))).Fa = Xmalloc(tls, Uint64FromInt32((**(**Tliterals)(__ccgo_up(bp))).Fcap1)*uint64(8)) + if !((**(**Tliterals)(__ccgo_up(bp))).Fa != 0) { + return int32(REG_ESPACE) + } + (**(**Tneg)(__ccgo_up(bp + 24))).Flen1 = 0 + (**(**Tneg)(__ccgo_up(bp + 24))).Fnegate = BoolInt32(int32(**(**int8)(__ccgo_up(s))) == int32('^')) + if (**(**Tneg)(__ccgo_up(bp + 24))).Fnegate != 0 { + s = s + 1 + } + err = _parse_bracket_terms(tls, ctx, s, bp, bp+24) + if err != REG_OK { + goto parse_bracket_done + } + if (**(**Tneg)(__ccgo_up(bp + 24))).Fnegate != 0 { + /* + * With REG_NEWLINE, POSIX requires that newlines are not matched by + * any form of a non-matching list. + */ + if (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fcflags&int32(REG_NEWLINE) != 0 { + lit = _tre_new_lit(tls, bp) + if !(lit != 0) { + err = int32(REG_ESPACE) + goto parse_bracket_done + } + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min = int64('\n') + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max = int64('\n') + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition = -int32(1) + } + /* Sort the array if we need to negate it. */ + Xqsort(tls, (**(**Tliterals)(__ccgo_up(bp))).Fa, Uint64FromInt32((**(**Tliterals)(__ccgo_up(bp))).Flen1), uint64(8), __ccgo_fp(_tre_compare_lit)) + /* extra lit for the last negated range */ + lit = _tre_new_lit(tls, bp) + if !(lit != 0) { + err = int32(REG_ESPACE) + goto parse_bracket_done + } + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min = int64(Int32FromInt32(TRE_CHAR_MAX) + Int32FromInt32(1)) + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max = int64(Int32FromInt32(TRE_CHAR_MAX) + Int32FromInt32(1)) + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition = -int32(1) + /* negated classes */ + if (**(**Tneg)(__ccgo_up(bp + 24))).Flen1 != 0 { + nc = X__tre_mem_alloc_impl(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, 0, UintptrFromInt32(0), 0, Uint64FromInt32((**(**Tneg)(__ccgo_up(bp + 24))).Flen1+Int32FromInt32(1))*uint64(8)) + if !(nc != 0) { + err = int32(REG_ESPACE) + goto parse_bracket_done + } + Xmemcpy(tls, nc, bp+24+8, Uint64FromInt32((**(**Tneg)(__ccgo_up(bp + 24))).Flen1)*uint64(8)) + **(**Ttre_ctype_t)(__ccgo_up(nc + uintptr((**(**Tneg)(__ccgo_up(bp + 24))).Flen1)*8)) = uint64(0) + } + } + /* Build a union of the items in the array, negated if necessary. */ + v1 = Int32FromInt32(0) + negmin = v1 + negmax = v1 + i = 0 + for { + if !(i < (**(**Tliterals)(__ccgo_up(bp))).Flen1) { + break + } + lit = **(**uintptr)(__ccgo_up((**(**Tliterals)(__ccgo_up(bp))).Fa + uintptr(i)*8)) + min = int32((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min) + max = int32((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max) + if (**(**Tneg)(__ccgo_up(bp + 24))).Fnegate != 0 { + if min <= negmin { + /* Overlap. */ + if max+int32(1) >= negmin { + v1 = max + int32(1) + } else { + v1 = negmin + } + negmin = v1 + goto _2 + } + negmax = min - int32(1) + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min = int64(negmin) + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max = int64(negmax) + negmin = max + int32(1) + } + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition = (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fposition + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fneg_classes = nc + n = _tre_ast_new_node(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, int32(_LITERAL), lit) + node = _tre_ast_new_union(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, node, n) + if !(node != 0) { + err = int32(REG_ESPACE) + break + } + goto _2 + _2: + ; + i = i + 1 + } + goto parse_bracket_done +parse_bracket_done: + ; + Xfree(tls, (**(**Tliterals)(__ccgo_up(bp))).Fa) + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fposition = (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fposition + 1 + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fn = node + return err +} + +func _parse_dup_count(tls *TLS, s uintptr, n uintptr) (r uintptr) { + **(**int32)(__ccgo_up(n)) = -int32(1) + if !(BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(s)))-Uint32FromUint8('0') < Uint32FromInt32(10)) != 0) { + return s + } + **(**int32)(__ccgo_up(n)) = 0 + for { + **(**int32)(__ccgo_up(n)) = int32(10)***(**int32)(__ccgo_up(n)) + (int32(**(**int8)(__ccgo_up(s))) - int32('0')) + s = s + 1 + if !(BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(s)))-Uint32FromUint8('0') < Uint32FromInt32(10)) != 0) || **(**int32)(__ccgo_up(n)) > int32(RE_DUP_MAX) { + break + } + goto _1 + _1: + } + return s +} + +func _parse_dup(tls *TLS, s uintptr, ere int32, pmin uintptr, pmax uintptr) (r uintptr) { + bp := tls.Alloc(16) + defer tls.Free(16) + var v1, v4 uintptr + var v2, v3, v5 bool + var _ /* max at bp+4 */ int32 + var _ /* min at bp+0 */ int32 + _, _, _, _, _ = v1, v2, v3, v4, v5 + s = _parse_dup_count(tls, s, bp) + if int32(**(**int8)(__ccgo_up(s))) == int32(',') { + s = _parse_dup_count(tls, s+uintptr(1), bp+4) + } else { + **(**int32)(__ccgo_up(bp + 4)) = **(**int32)(__ccgo_up(bp)) + } + if v3 = **(**int32)(__ccgo_up(bp + 4)) < **(**int32)(__ccgo_up(bp)) && **(**int32)(__ccgo_up(bp + 4)) >= 0 || **(**int32)(__ccgo_up(bp + 4)) > int32(RE_DUP_MAX) || **(**int32)(__ccgo_up(bp)) > int32(RE_DUP_MAX) || **(**int32)(__ccgo_up(bp)) < 0; !v3 { + if v2 = !(ere != 0); v2 { + v1 = s + s = s + 1 + } + } + if v5 = v3 || v2 && int32(**(**int8)(__ccgo_up(v1))) != int32('\\'); !v5 { + v4 = s + s = s + 1 + } + if v5 || int32(**(**int8)(__ccgo_up(v4))) != int32('}') { + return uintptr(0) + } + **(**int32)(__ccgo_up(pmin)) = **(**int32)(__ccgo_up(bp)) + **(**int32)(__ccgo_up(pmax)) = **(**int32)(__ccgo_up(bp + 4)) + return s +} + +func _hexval1(tls *TLS, c uint32) (r int32) { + if c-uint32('0') < uint32(10) { + return Int32FromUint32(c - uint32('0')) + } + c = c | uint32(32) + if c-uint32('a') < uint32(6) { + return Int32FromUint32(c - uint32('a') + uint32(10)) + } + return -int32(1) +} + +func _marksub(tls *TLS, ctx uintptr, node uintptr, subid int32) (r Treg_errcode_t) { + var n uintptr + _ = n + if (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fsubmatch_id >= 0 { + n = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(1), -int32(1), -int32(1)) + if !(n != 0) { + return int32(REG_ESPACE) + } + n = _tre_ast_new_catenation(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, n, node) + if !(n != 0) { + return int32(REG_ESPACE) + } + (*Ttre_ast_node_t)(unsafe.Pointer(n)).Fnum_submatches = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_submatches + node = n + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fsubmatch_id = subid + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_submatches = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_submatches + 1 + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fn = node + return REG_OK +} + +/* +BRE grammar: +Regex = Branch | '^' | '$' | '^$' | '^' Branch | Branch '$' | '^' Branch '$' +Branch = Atom | Branch Atom +Atom = char | quoted_char | '.' | Bracket | Atom Dup | '\(' Branch '\)' | back_ref +Dup = '*' | '\{' Count '\}' | '\{' Count ',\}' | '\{' Count ',' Count '\}' + +(leading ^ and trailing $ in a sub expr may be an anchor or literal as well) + +ERE grammar: +Regex = Branch | Regex '|' Branch +Branch = Atom | Branch Atom +Atom = char | quoted_char | '.' | Bracket | Atom Dup | '(' Regex ')' | '^' | '$' +Dup = '*' | '+' | '?' | '{' Count '}' | '{' Count ',}' | '{' Count ',' Count '}' + +(a*+?, ^*, $+, \X, {, (|a) are unspecified) +*/ + +func _parse_atom(tls *TLS, ctx uintptr, s uintptr) (r Treg_errcode_t) { + bp := tls.Alloc(16) + defer tls.Free(16) + var c, ere, i, len1, v, val, v16 int32 + var err Treg_errcode_t + var node, p, tmp1, tmp11, tmp2, tmp21, v14 uintptr + var _ /* wc at bp+0 */ Twchar_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = c, ere, err, i, len1, node, p, tmp1, tmp11, tmp2, tmp21, v, val, v14, v16 + ere = (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fcflags & int32(REG_EXTENDED) + switch int32(**(**int8)(__ccgo_up(s))) { + case int32('['): + goto _1 + case int32('\\'): + goto _2 + case int32('.'): + goto _3 + case int32('^'): + goto _4 + case int32('$'): + goto _5 + case int32('?'): + goto _6 + case int32('+'): + goto _7 + case int32('{'): + goto _8 + case int32('*'): + goto _9 + case int32('|'): + goto _10 + case 0: + goto _11 + default: + goto _12 + } + goto _13 +_1: + ; + return _parse_bracket(tls, ctx, s+uintptr(1)) +_2: + ; + p = _tre_expand_macro(tls, s+uintptr(1)) + if p != 0 { + /* assume \X expansion is a single atom */ + err = _parse_atom(tls, ctx, p) + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fs = s + uintptr(2) + return err + } + /* extensions: \b, \B, \<, \>, \xHH \x{HHHH} */ + s = s + 1 + v14 = s + switch int32(**(**int8)(__ccgo_up(v14))) { + case 0: + return int32(REG_EESCAPE) + case int32('b'): + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(2), int32(ASSERT_AT_WB), -int32(1)) + case int32('B'): + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(2), int32(ASSERT_AT_WB_NEG), -int32(1)) + case int32('<'): + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(2), int32(ASSERT_AT_BOW), -int32(1)) + case int32('>'): + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(2), int32(ASSERT_AT_EOW), -int32(1)) + case int32('x'): + s = s + 1 + v = 0 + len1 = int32(2) + if int32(**(**int8)(__ccgo_up(s))) == int32('{') { + len1 = int32(8) + s = s + 1 + } + i = 0 + for { + if !(i < len1 && v < int32(0x110000)) { + break + } + c = _hexval1(tls, Uint32FromInt8(**(**int8)(__ccgo_up(s + uintptr(i))))) + if c < 0 { + break + } + v = int32(16)*v + c + goto _15 + _15: + ; + i = i + 1 + } + s = s + uintptr(i) + if len1 == int32(8) { + if int32(**(**int8)(__ccgo_up(s))) != int32('}') { + return int32(REG_EBRACE) + } + s = s + 1 + } + v14 = ctx + 44 + v16 = *(*int32)(unsafe.Pointer(v14)) + *(*int32)(unsafe.Pointer(v14)) = *(*int32)(unsafe.Pointer(v14)) + 1 + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, v, v, v16) + s = s - 1 + case int32('{'): + fallthrough + case int32('+'): + fallthrough + case int32('?'): + /* extension: treat \+, \? as repetitions in BRE */ + /* reject repetitions after empty expression in BRE */ + if !(ere != 0) { + return int32(REG_BADRPT) + } + fallthrough + case int32('|'): + /* extension: treat \| as alternation in BRE */ + if !(ere != 0) { + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(1), -int32(1), -int32(1)) + s = s - 1 + goto end + } + /* fallthrough */ + fallthrough + default: + if !(ere != 0) && Uint32FromInt8(**(**int8)(__ccgo_up(s)))-uint32('1') < uint32(9) { + /* back reference */ + val = int32(**(**int8)(__ccgo_up(s))) - int32('0') + v14 = ctx + 44 + v16 = *(*int32)(unsafe.Pointer(v14)) + *(*int32)(unsafe.Pointer(v14)) = *(*int32)(unsafe.Pointer(v14)) + 1 + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(4), val, v16) + if val >= (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmax_backref { + v16 = val + } else { + v16 = (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmax_backref + } + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmax_backref = v16 + } else { + /* extension: accept unknown escaped char + as a literal */ + goto parse_literal + } + } + s = s + 1 + goto _13 +_3: + ; + if (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fcflags&int32(REG_NEWLINE) != 0 { + v14 = ctx + 44 + v16 = *(*int32)(unsafe.Pointer(v14)) + *(*int32)(unsafe.Pointer(v14)) = *(*int32)(unsafe.Pointer(v14)) + 1 + tmp1 = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, 0, Int32FromUint8('\n')-Int32FromInt32(1), v16) + v14 = ctx + 44 + v16 = *(*int32)(unsafe.Pointer(v14)) + *(*int32)(unsafe.Pointer(v14)) = *(*int32)(unsafe.Pointer(v14)) + 1 + tmp2 = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, Int32FromUint8('\n')+Int32FromInt32(1), int32(TRE_CHAR_MAX), v16) + if tmp1 != 0 && tmp2 != 0 { + node = _tre_ast_new_union(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, tmp1, tmp2) + } else { + node = uintptr(0) + } + } else { + v14 = ctx + 44 + v16 = *(*int32)(unsafe.Pointer(v14)) + *(*int32)(unsafe.Pointer(v14)) = *(*int32)(unsafe.Pointer(v14)) + 1 + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, 0, int32(TRE_CHAR_MAX), v16) + } + s = s + 1 + goto _13 +_4: + ; + /* '^' has a special meaning everywhere in EREs, and at beginning of BRE. */ + if !(ere != 0) && s != (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fstart { + goto parse_literal + } + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(2), int32(ASSERT_AT_BOL), -int32(1)) + s = s + 1 + goto _13 +_5: + ; + /* '$' is special everywhere in EREs, and at the end of a BRE subexpression. */ + if !(ere != 0) && **(**int8)(__ccgo_up(s + 1)) != 0 && (int32(**(**int8)(__ccgo_up(s + 1))) != int32('\\') || int32(**(**int8)(__ccgo_up(s + 2))) != int32(')') && int32(**(**int8)(__ccgo_up(s + 2))) != int32('|')) { + goto parse_literal + } + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(2), int32(ASSERT_AT_EOL), -int32(1)) + s = s + 1 + goto _13 +_9: + ; +_8: + ; +_7: + ; +_6: + ; + /* reject repetitions after empty expression in ERE */ + if ere != 0 { + return int32(REG_BADRPT) + } +_10: + ; + if !(ere != 0) { + goto parse_literal + } +_11: + ; + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(1), -int32(1), -int32(1)) + goto _13 +_12: + ; + goto parse_literal +parse_literal: + ; + len1 = Xmbtowc(tls, bp, s, Uint64FromInt32(-Int32FromInt32(1))) + if len1 < 0 { + return int32(REG_BADPAT) + } + if (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fcflags&int32(REG_ICASE) != 0 && (Xiswupper(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp)))) != 0 || Xiswlower(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp)))) != 0) { + /* multiple opposite case characters are not supported */ + tmp11 = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, Int32FromUint32(Xtowupper(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp))))), Int32FromUint32(Xtowupper(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp))))), (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fposition) + tmp21 = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, Int32FromUint32(Xtowlower(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp))))), Int32FromUint32(Xtowlower(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp))))), (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fposition) + if tmp11 != 0 && tmp21 != 0 { + node = _tre_ast_new_union(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, tmp11, tmp21) + } else { + node = uintptr(0) + } + } else { + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, **(**Twchar_t)(__ccgo_up(bp)), **(**Twchar_t)(__ccgo_up(bp)), (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fposition) + } + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fposition = (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fposition + 1 + s = s + uintptr(len1) + goto _13 +_13: + ; + goto end +end: + ; + if !(node != 0) { + return int32(REG_ESPACE) + } + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fn = node + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fs = s + return REG_OK +} + +func _tre_parse(tls *TLS, ctx uintptr) (r Treg_errcode_t) { + bp := tls.Alloc(16) + defer tls.Free(16) + var c, depth, ere, subid, v2 int32 + var err, v1 Treg_errcode_t + var nbranch, nunion, s, stack, v8 uintptr + var _ /* max at bp+4 */ int32 + var _ /* min at bp+0 */ int32 + _, _, _, _, _, _, _, _, _, _, _, _ = c, depth, ere, err, nbranch, nunion, s, stack, subid, v1, v2, v8 + nbranch = uintptr(0) + nunion = uintptr(0) + ere = (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fcflags & int32(REG_EXTENDED) + s = (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fstart + subid = 0 + depth = 0 + stack = (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fstack + v2 = subid + subid = subid + 1 + v1 = _tre_stack_push_int(tls, stack, v2) + err = v1 + if v1 != REG_OK { + return err + } + for { + if !(ere != 0) && int32(**(**int8)(__ccgo_up(s))) == int32('\\') && int32(**(**int8)(__ccgo_up(s + 1))) == int32('(') || ere != 0 && int32(**(**int8)(__ccgo_up(s))) == int32('(') { + v1 = _tre_stack_push_voidptr(tls, stack, nunion) + err = v1 + if v1 != REG_OK { + return err + } + v1 = _tre_stack_push_voidptr(tls, stack, nbranch) + err = v1 + if v1 != REG_OK { + return err + } + v2 = subid + subid = subid + 1 + v1 = _tre_stack_push_int(tls, stack, v2) + err = v1 + if v1 != REG_OK { + return err + } + s = s + 1 + if !(ere != 0) { + s = s + 1 + } + depth = depth + 1 + v8 = UintptrFromInt32(0) + nunion = v8 + nbranch = v8 + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fstart = s + goto _3 + } + if !(ere != 0) && int32(**(**int8)(__ccgo_up(s))) == int32('\\') && int32(**(**int8)(__ccgo_up(s + 1))) == int32(')') || ere != 0 && int32(**(**int8)(__ccgo_up(s))) == int32(')') && depth != 0 { + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fn = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(1), -int32(1), -int32(1)) + if !((*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fn != 0) { + return int32(REG_ESPACE) + } + } else { + err = _parse_atom(tls, ctx, s) + if err != REG_OK { + return err + } + s = (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fs + } + goto parse_iter + parse_iter: + ; + for { + if int32(**(**int8)(__ccgo_up(s))) != int32('\\') && int32(**(**int8)(__ccgo_up(s))) != int32('*') { + if !(ere != 0) { + break + } + if int32(**(**int8)(__ccgo_up(s))) != int32('+') && int32(**(**int8)(__ccgo_up(s))) != int32('?') && int32(**(**int8)(__ccgo_up(s))) != int32('{') { + break + } + } + if int32(**(**int8)(__ccgo_up(s))) == int32('\\') && ere != 0 { + break + } + /* extension: treat \+, \? as repetitions in BRE */ + if int32(**(**int8)(__ccgo_up(s))) == int32('\\') && int32(**(**int8)(__ccgo_up(s + 1))) != int32('+') && int32(**(**int8)(__ccgo_up(s + 1))) != int32('?') && int32(**(**int8)(__ccgo_up(s + 1))) != int32('{') { + break + } + if int32(**(**int8)(__ccgo_up(s))) == int32('\\') { + s = s + 1 + } + /* handle ^* at the start of a BRE. */ + if !(ere != 0) && s == (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fstart+uintptr(1) && int32(**(**int8)(__ccgo_up(s + uintptr(-Int32FromInt32(1))))) == int32('^') { + break + } + /* extension: multiple consecutive *+?{,} is unspecified, + but (a+)+ has to be supported so accepting a++ makes + sense, note however that the RE_DUP_MAX limit can be + circumvented: (a{255}){255} uses a lot of memory.. */ + if int32(**(**int8)(__ccgo_up(s))) == int32('{') { + s = _parse_dup(tls, s+uintptr(1), ere, bp, bp+4) + if !(s != 0) { + return int32(REG_BADBR) + } + } else { + **(**int32)(__ccgo_up(bp)) = 0 + **(**int32)(__ccgo_up(bp + 4)) = -int32(1) + if int32(**(**int8)(__ccgo_up(s))) == int32('+') { + **(**int32)(__ccgo_up(bp)) = int32(1) + } + if int32(**(**int8)(__ccgo_up(s))) == int32('?') { + **(**int32)(__ccgo_up(bp + 4)) = int32(1) + } + s = s + 1 + } + if **(**int32)(__ccgo_up(bp + 4)) == 0 { + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fn = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(1), -int32(1), -int32(1)) + } else { + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fn = _tre_ast_new_iter(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fn, **(**int32)(__ccgo_up(bp)), **(**int32)(__ccgo_up(bp + 4)), 0) + } + if !((*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fn != 0) { + return int32(REG_ESPACE) + } + goto _9 + _9: + } + nbranch = _tre_ast_new_catenation(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, nbranch, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fn) + if ere != 0 && int32(**(**int8)(__ccgo_up(s))) == int32('|') || ere != 0 && int32(**(**int8)(__ccgo_up(s))) == int32(')') && depth != 0 || !(ere != 0) && int32(**(**int8)(__ccgo_up(s))) == int32('\\') && int32(**(**int8)(__ccgo_up(s + 1))) == int32(')') || !(ere != 0) && int32(**(**int8)(__ccgo_up(s))) == int32('\\') && int32(**(**int8)(__ccgo_up(s + 1))) == int32('|') || !(**(**int8)(__ccgo_up(s)) != 0) { + /* extension: empty branch is unspecified (), (|a), (a|) + here they are not rejected but match on empty string */ + c = int32(**(**int8)(__ccgo_up(s))) + nunion = _tre_ast_new_union(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, nunion, nbranch) + nbranch = uintptr(0) + if c == int32('\\') && int32(**(**int8)(__ccgo_up(s + 1))) == int32('|') { + s = s + uintptr(2) + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fstart = s + } else { + if c == int32('|') { + s = s + 1 + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fstart = s + } else { + if c == int32('\\') { + if !(depth != 0) { + return int32(REG_EPAREN) + } + s = s + uintptr(2) + } else { + if c == int32(')') { + s = s + 1 + } + } + depth = depth - 1 + err = _marksub(tls, ctx, nunion, _tre_stack_pop_int(tls, stack)) + if err != REG_OK { + return err + } + if !(c != 0) && depth < 0 { + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fsubmatch_id = subid + return REG_OK + } + if !(c != 0) || depth < 0 { + return int32(REG_EPAREN) + } + nbranch = _tre_stack_pop_voidptr(tls, stack) + nunion = _tre_stack_pop_voidptr(tls, stack) + goto parse_iter + } + } + } + goto _3 + _3: + } + return r +} + +/*********************************************************************** + from tre-compile.c +***********************************************************************/ + +/* + TODO: + - Fix tre_ast_to_tnfa() to recurse using a stack instead of recursive + function calls. +*/ + +/* + Algorithms to setup tags so that submatch addressing can be done. +*/ + +// C documentation +// +// /* Inserts a catenation node to the root of the tree given in `node'. +// As the left child a new tag with number `tag_id' to `node' is added, +// and the right child is the old root. */ +func _tre_add_tag_left(tls *TLS, mem Ttre_mem_t, node uintptr, tag_id int32) (r Treg_errcode_t) { + var c uintptr + _ = c + c = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint64(16)) + if c == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + (*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft = _tre_ast_new_literal(tls, mem, -int32(3), tag_id, -int32(1)) + if (*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + (*Ttre_catenation_t)(unsafe.Pointer(c)).Fright = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint64(48)) + if (*Ttre_catenation_t)(unsafe.Pointer(c)).Fright == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fright)).Fobj = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fright)).Ftype1 = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fright)).Fnullable = -int32(1) + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fright)).Fsubmatch_id = -int32(1) + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fright)).Ffirstpos = UintptrFromInt32(0) + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fright)).Flastpos = UintptrFromInt32(0) + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fright)).Fnum_tags = 0 + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fright)).Fnum_submatches = 0 + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj = c + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 = int32(_CATENATION) + return REG_OK +} + +// C documentation +// +// /* Inserts a catenation node to the root of the tree given in `node'. +// As the right child a new tag with number `tag_id' to `node' is added, +// and the left child is the old root. */ +func _tre_add_tag_right(tls *TLS, mem Ttre_mem_t, node uintptr, tag_id int32) (r Treg_errcode_t) { + var c uintptr + _ = c + c = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint64(16)) + if c == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + (*Ttre_catenation_t)(unsafe.Pointer(c)).Fright = _tre_ast_new_literal(tls, mem, -int32(3), tag_id, -int32(1)) + if (*Ttre_catenation_t)(unsafe.Pointer(c)).Fright == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + (*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint64(48)) + if (*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft)).Fobj = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft)).Ftype1 = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft)).Fnullable = -int32(1) + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft)).Fsubmatch_id = -int32(1) + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft)).Ffirstpos = UintptrFromInt32(0) + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft)).Flastpos = UintptrFromInt32(0) + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft)).Fnum_tags = 0 + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft)).Fnum_submatches = 0 + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj = c + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 = int32(_CATENATION) + return REG_OK +} + +type Ttre_addtags_symbol_t = int32 + +const _ADDTAGS_RECURSE = 0 +const _ADDTAGS_AFTER_ITERATION = 1 +const _ADDTAGS_AFTER_UNION_LEFT = 2 +const _ADDTAGS_AFTER_UNION_RIGHT = 3 +const _ADDTAGS_AFTER_CAT_LEFT = 4 +const _ADDTAGS_AFTER_CAT_RIGHT = 5 +const _ADDTAGS_SET_SUBMATCH_END = 6 + +type Ttre_tag_states_t = struct { + Ftag int32 + Fnext_tag int32 +} + +// C documentation +// +// /* Go through `regset' and set submatch data for submatches that are +// using this tag. */ +func _tre_purge_regset(tls *TLS, regset uintptr, tnfa uintptr, tag int32) { + var i, id, start int32 + _, _, _ = i, id, start + i = 0 + for { + if !(**(**int32)(__ccgo_up(regset + uintptr(i)*4)) >= 0) { + break + } + id = **(**int32)(__ccgo_up(regset + uintptr(i)*4)) / int32(2) + start = BoolInt32(!(**(**int32)(__ccgo_up(regset + uintptr(i)*4))%Int32FromInt32(2) != 0)) + if start != 0 { + (**(**Ttre_submatch_data_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fsubmatch_data + uintptr(id)*16))).Fso_tag = tag + } else { + (**(**Ttre_submatch_data_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fsubmatch_data + uintptr(id)*16))).Feo_tag = tag + } + goto _1 + _1: + ; + i = i + 1 + } + **(**int32)(__ccgo_up(regset)) = -int32(1) +} + +// C documentation +// +// /* Adds tags to appropriate locations in the parse tree in `tree', so that +// subexpressions marked for submatch addressing can be traced. */ +func _tre_add_tags(tls *TLS, mem Ttre_mem_t, stack uintptr, tree uintptr, tnfa uintptr) (r Treg_errcode_t) { + var added_tags, bottom, enter_tag, first_pass, i1, i2, i3, i4, i5, i6, i7, id, id1, left_tag, minimal, minimal_tag, new_tag, next_tag, num_minimals, num_tags, reserved_tag, right_tag, tag, tag_left, tag_right, v22 int32 + var cat, iter, left, left1, left2, lit, node, orig_regset, p, parents, regset, right, right1, right2, saved_states, uni uintptr + var direction Ttre_tag_direction_t + var i uint32 + var status Treg_errcode_t + var symbol Ttre_addtags_symbol_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = added_tags, bottom, cat, direction, enter_tag, first_pass, i, i1, i2, i3, i4, i5, i6, i7, id, id1, iter, left, left1, left2, left_tag, lit, minimal, minimal_tag, new_tag, next_tag, node, num_minimals, num_tags, orig_regset, p, parents, regset, reserved_tag, right, right1, right2, right_tag, saved_states, status, symbol, tag, tag_left, tag_right, uni, v22 + status = REG_OK + node = tree /* Tree node we are currently looking at. */ + bottom = _tre_stack_num_objects(tls, stack) + /* True for first pass (counting number of needed tags) */ + first_pass = BoolInt32(mem == UintptrFromInt32(0) || tnfa == UintptrFromInt32(0)) + num_tags = 0 /* Total number of tags. */ + num_minimals = 0 /* Number of special minimal tags. */ + tag = 0 /* The tag that is to be added next. */ + next_tag = int32(1) /* Stack of submatches the current submatch is + contained in. */ + minimal_tag = -int32(1) + direction = int32(_TRE_TAG_MINIMIZE) + if !(first_pass != 0) { + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fend_tag = 0 + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags)) = -int32(1) + } + regset = Xmalloc(tls, uint64(4)*uint64(((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_submatches+Uint32FromInt32(1))*Uint32FromInt32(2))) + if regset == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + **(**int32)(__ccgo_up(regset)) = -int32(1) + orig_regset = regset + parents = Xmalloc(tls, uint64(4)*uint64((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_submatches+Uint32FromInt32(1))) + if parents == UintptrFromInt32(0) { + Xfree(tls, regset) + return int32(REG_ESPACE) + } + **(**int32)(__ccgo_up(parents)) = -int32(1) + saved_states = Xmalloc(tls, uint64(8)*uint64((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_submatches+Uint32FromInt32(1))) + if saved_states == UintptrFromInt32(0) { + Xfree(tls, regset) + Xfree(tls, parents) + return int32(REG_ESPACE) + } else { + i = uint32(0) + for { + if !(i <= (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_submatches) { + break + } + (**(**Ttre_tag_states_t)(__ccgo_up(saved_states + uintptr(i)*8))).Ftag = -int32(1) + goto _1 + _1: + ; + i = i + 1 + } + } + status = _tre_stack_push_voidptr(tls, stack, node) + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_RECURSE)) + for _tre_stack_num_objects(tls, stack) > bottom { + if status != REG_OK { + break + } + symbol = _tre_stack_pop_int(tls, stack) + switch symbol { + case int32(_ADDTAGS_SET_SUBMATCH_END): + goto _2 + case int32(_ADDTAGS_RECURSE): + goto _3 + case int32(_ADDTAGS_AFTER_ITERATION): + goto _4 + case int32(_ADDTAGS_AFTER_CAT_LEFT): + goto _5 + case int32(_ADDTAGS_AFTER_CAT_RIGHT): + goto _6 + case int32(_ADDTAGS_AFTER_UNION_LEFT): + goto _7 + case int32(_ADDTAGS_AFTER_UNION_RIGHT): + goto _8 + default: + goto _9 + } + goto _10 + _2: + ; + id = _tre_stack_pop_int(tls, stack) + /* Add end of this submatch to regset. */ + i1 = 0 + for { + if !(**(**int32)(__ccgo_up(regset + uintptr(i1)*4)) >= 0) { + break + } + goto _11 + _11: + ; + i1 = i1 + 1 + } + **(**int32)(__ccgo_up(regset + uintptr(i1)*4)) = id*int32(2) + int32(1) + **(**int32)(__ccgo_up(regset + uintptr(i1+int32(1))*4)) = -int32(1) + /* Pop this submatch from the parents stack. */ + i1 = 0 + for { + if !(**(**int32)(__ccgo_up(parents + uintptr(i1)*4)) >= 0) { + break + } + goto _12 + _12: + ; + i1 = i1 + 1 + } + **(**int32)(__ccgo_up(parents + uintptr(i1-int32(1))*4)) = -int32(1) + goto _10 + _3: + ; + node = _tre_stack_pop_voidptr(tls, stack) + if (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fsubmatch_id >= 0 { + id1 = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fsubmatch_id + /* Add start of this submatch to regset. */ + i2 = 0 + for { + if !(**(**int32)(__ccgo_up(regset + uintptr(i2)*4)) >= 0) { + break + } + goto _13 + _13: + ; + i2 = i2 + 1 + } + **(**int32)(__ccgo_up(regset + uintptr(i2)*4)) = id1 * int32(2) + **(**int32)(__ccgo_up(regset + uintptr(i2+int32(1))*4)) = -int32(1) + if !(first_pass != 0) { + i2 = 0 + for { + if !(**(**int32)(__ccgo_up(parents + uintptr(i2)*4)) >= 0) { + break + } + goto _14 + _14: + ; + i2 = i2 + 1 + } + (**(**Ttre_submatch_data_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fsubmatch_data + uintptr(id1)*16))).Fparents = UintptrFromInt32(0) + if i2 > 0 { + p = Xmalloc(tls, uint64(4)*Uint64FromInt32(i2+Int32FromInt32(1))) + if p == UintptrFromInt32(0) { + status = int32(REG_ESPACE) + goto _10 + } + (**(**Ttre_submatch_data_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fsubmatch_data + uintptr(id1)*16))).Fparents = p + i2 = 0 + for { + if !(**(**int32)(__ccgo_up(parents + uintptr(i2)*4)) >= 0) { + break + } + **(**int32)(__ccgo_up(p + uintptr(i2)*4)) = **(**int32)(__ccgo_up(parents + uintptr(i2)*4)) + goto _15 + _15: + ; + i2 = i2 + 1 + } + **(**int32)(__ccgo_up(p + uintptr(i2)*4)) = -int32(1) + } + } + /* Add end of this submatch to regset after processing this + node. */ + status = _tre_stack_push_int(tls, stack, (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fsubmatch_id) + if status != REG_OK { + goto _10 + } + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_SET_SUBMATCH_END)) + if status != REG_OK { + goto _10 + } + } + switch (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 { + case int32(_LITERAL): + lit = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + if !((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min < Int64FromInt32(0)) || (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min == int64(-int32(4)) { + if **(**int32)(__ccgo_up(regset)) >= 0 { + /* Regset is not empty, so add a tag before the + literal or backref. */ + if !(first_pass != 0) { + status = _tre_add_tag_left(tls, mem, node, tag) + **(**Ttre_tag_direction_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions + uintptr(tag)*4)) = direction + if minimal_tag >= 0 { + i3 = 0 + for { + if !(**(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i3)*4)) >= 0) { + break + } + goto _16 + _16: + ; + i3 = i3 + 1 + } + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i3)*4)) = tag + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i3+int32(1))*4)) = minimal_tag + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i3+int32(2))*4)) = -int32(1) + minimal_tag = -int32(1) + num_minimals = num_minimals + 1 + } + _tre_purge_regset(tls, regset, tnfa, tag) + } else { + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_tags = int32(1) + } + **(**int32)(__ccgo_up(regset)) = -int32(1) + tag = next_tag + num_tags = num_tags + 1 + next_tag = next_tag + 1 + } + } else { + } + case int32(_CATENATION): + cat = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + left = (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft + right = (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright + reserved_tag = -int32(1) + /* After processing right child. */ + status = _tre_stack_push_voidptr(tls, stack, node) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_AFTER_CAT_RIGHT)) + if status != REG_OK { + break + } + /* Process right child. */ + status = _tre_stack_push_voidptr(tls, stack, right) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_RECURSE)) + if status != REG_OK { + break + } + /* After processing left child. */ + status = _tre_stack_push_int(tls, stack, next_tag+(*Ttre_ast_node_t)(unsafe.Pointer(left)).Fnum_tags) + if status != REG_OK { + break + } + if (*Ttre_ast_node_t)(unsafe.Pointer(left)).Fnum_tags > 0 && (*Ttre_ast_node_t)(unsafe.Pointer(right)).Fnum_tags > 0 { + /* Reserve the next tag to the right child. */ + reserved_tag = next_tag + next_tag = next_tag + 1 + } + status = _tre_stack_push_int(tls, stack, reserved_tag) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_AFTER_CAT_LEFT)) + if status != REG_OK { + break + } + /* Process left child. */ + status = _tre_stack_push_voidptr(tls, stack, left) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_RECURSE)) + if status != REG_OK { + break + } + case int32(_ITERATION): + iter = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + if first_pass != 0 { + status = _tre_stack_push_int(tls, stack, BoolInt32(**(**int32)(__ccgo_up(regset)) >= 0 || int32(uint32(*(*uint8)(unsafe.Pointer(iter + 16))&0x1>>0)) != 0)) + if status != REG_OK { + break + } + } else { + status = _tre_stack_push_int(tls, stack, tag) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(uint32(*(*uint8)(unsafe.Pointer(iter + 16))&0x1>>0))) + if status != REG_OK { + break + } + } + status = _tre_stack_push_voidptr(tls, stack, node) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_AFTER_ITERATION)) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_RECURSE)) + if status != REG_OK { + break + } + /* Regset is not empty, so add a tag here. */ + if **(**int32)(__ccgo_up(regset)) >= 0 || int32(uint32(*(*uint8)(unsafe.Pointer(iter + 16))&0x1>>0)) != 0 { + if !(first_pass != 0) { + status = _tre_add_tag_left(tls, mem, node, tag) + if int32(uint32(*(*uint8)(unsafe.Pointer(iter + 16))&0x1>>0)) != 0 { + **(**Ttre_tag_direction_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions + uintptr(tag)*4)) = int32(_TRE_TAG_MAXIMIZE) + } else { + **(**Ttre_tag_direction_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions + uintptr(tag)*4)) = direction + } + if minimal_tag >= 0 { + i4 = 0 + for { + if !(**(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i4)*4)) >= 0) { + break + } + goto _17 + _17: + ; + i4 = i4 + 1 + } + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i4)*4)) = tag + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i4+int32(1))*4)) = minimal_tag + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i4+int32(2))*4)) = -int32(1) + minimal_tag = -int32(1) + num_minimals = num_minimals + 1 + } + _tre_purge_regset(tls, regset, tnfa, tag) + } + **(**int32)(__ccgo_up(regset)) = -int32(1) + tag = next_tag + num_tags = num_tags + 1 + next_tag = next_tag + 1 + } + direction = int32(_TRE_TAG_MINIMIZE) + case int32(_UNION): + uni = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + left1 = (*Ttre_union_t)(unsafe.Pointer(uni)).Fleft + right1 = (*Ttre_union_t)(unsafe.Pointer(uni)).Fright + if **(**int32)(__ccgo_up(regset)) >= 0 { + left_tag = next_tag + right_tag = next_tag + int32(1) + } else { + left_tag = tag + right_tag = next_tag + } + /* After processing right child. */ + status = _tre_stack_push_int(tls, stack, right_tag) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, left_tag) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, regset) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, BoolInt32(**(**int32)(__ccgo_up(regset)) >= 0)) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, node) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, right1) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, left1) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_AFTER_UNION_RIGHT)) + if status != REG_OK { + break + } + /* Process right child. */ + status = _tre_stack_push_voidptr(tls, stack, right1) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_RECURSE)) + if status != REG_OK { + break + } + /* After processing left child. */ + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_AFTER_UNION_LEFT)) + if status != REG_OK { + break + } + /* Process left child. */ + status = _tre_stack_push_voidptr(tls, stack, left1) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_RECURSE)) + if status != REG_OK { + break + } + /* Regset is not empty, so add a tag here. */ + if **(**int32)(__ccgo_up(regset)) >= 0 { + if !(first_pass != 0) { + status = _tre_add_tag_left(tls, mem, node, tag) + **(**Ttre_tag_direction_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions + uintptr(tag)*4)) = direction + if minimal_tag >= 0 { + i5 = 0 + for { + if !(**(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i5)*4)) >= 0) { + break + } + goto _18 + _18: + ; + i5 = i5 + 1 + } + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i5)*4)) = tag + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i5+int32(1))*4)) = minimal_tag + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i5+int32(2))*4)) = -int32(1) + minimal_tag = -int32(1) + num_minimals = num_minimals + 1 + } + _tre_purge_regset(tls, regset, tnfa, tag) + } + **(**int32)(__ccgo_up(regset)) = -int32(1) + tag = next_tag + num_tags = num_tags + 1 + next_tag = next_tag + 1 + } + if (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_submatches > 0 { + /* The next two tags are reserved for markers. */ + next_tag = next_tag + 1 + tag = next_tag + next_tag = next_tag + 1 + } + break + } + if (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fsubmatch_id >= 0 { + /* Push this submatch on the parents stack. */ + i6 = 0 + for { + if !(**(**int32)(__ccgo_up(parents + uintptr(i6)*4)) >= 0) { + break + } + goto _19 + _19: + ; + i6 = i6 + 1 + } + **(**int32)(__ccgo_up(parents + uintptr(i6)*4)) = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fsubmatch_id + **(**int32)(__ccgo_up(parents + uintptr(i6+int32(1))*4)) = -int32(1) + } + goto _10 /* end case: ADDTAGS_RECURSE */ + _4: + ; + minimal = 0 + node = _tre_stack_pop_voidptr(tls, stack) + if first_pass != 0 { + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_tags = (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_iteration_t)(unsafe.Pointer((*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj)).Farg)).Fnum_tags + _tre_stack_pop_int(tls, stack) + minimal_tag = -int32(1) + } else { + minimal = _tre_stack_pop_int(tls, stack) + enter_tag = _tre_stack_pop_int(tls, stack) + if minimal != 0 { + minimal_tag = enter_tag + } + } + if !(first_pass != 0) { + if minimal != 0 { + direction = int32(_TRE_TAG_MINIMIZE) + } else { + direction = int32(_TRE_TAG_MAXIMIZE) + } + } + goto _10 + _5: + ; + new_tag = _tre_stack_pop_int(tls, stack) + next_tag = _tre_stack_pop_int(tls, stack) + if new_tag >= 0 { + tag = new_tag + } + goto _10 + _6: + ; + node = _tre_stack_pop_voidptr(tls, stack) + if first_pass != 0 { + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_tags = (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer((*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj)).Fleft)).Fnum_tags + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer((*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj)).Fright)).Fnum_tags + } + goto _10 + _7: + ; + /* Lift the bottom of the `regset' array so that when processing + the right operand the items currently in the array are + invisible. The original bottom was saved at ADDTAGS_UNION and + will be restored at ADDTAGS_AFTER_UNION_RIGHT below. */ + _21: + ; + if !(**(**int32)(__ccgo_up(regset)) >= 0) { + goto _20 + } + regset += 4 + goto _21 + _20: + ; + goto _10 + _8: + ; + left2 = _tre_stack_pop_voidptr(tls, stack) + right2 = _tre_stack_pop_voidptr(tls, stack) + node = _tre_stack_pop_voidptr(tls, stack) + added_tags = _tre_stack_pop_int(tls, stack) + if first_pass != 0 { + if (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_submatches > 0 { + v22 = int32(2) + } else { + v22 = 0 + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_tags = (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_union_t)(unsafe.Pointer((*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj)).Fleft)).Fnum_tags + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_union_t)(unsafe.Pointer((*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj)).Fright)).Fnum_tags + added_tags + v22 + } + regset = _tre_stack_pop_voidptr(tls, stack) + tag_left = _tre_stack_pop_int(tls, stack) + tag_right = _tre_stack_pop_int(tls, stack) + /* Add tags after both children, the left child gets a smaller + tag than the right child. This guarantees that we prefer + the left child over the right child. */ + /* XXX - This is not always necessary (if the children have + tags which must be seen for every match of that child). */ + /* XXX - Check if this is the only place where tre_add_tag_right + is used. If so, use tre_add_tag_left (putting the tag before + the child as opposed after the child) and throw away + tre_add_tag_right. */ + if (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_submatches > 0 { + if !(first_pass != 0) { + status = _tre_add_tag_right(tls, mem, left2, tag_left) + **(**Ttre_tag_direction_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions + uintptr(tag_left)*4)) = int32(_TRE_TAG_MAXIMIZE) + if status == REG_OK { + status = _tre_add_tag_right(tls, mem, right2, tag_right) + } + **(**Ttre_tag_direction_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions + uintptr(tag_right)*4)) = int32(_TRE_TAG_MAXIMIZE) + } + num_tags = num_tags + int32(2) + } + direction = int32(_TRE_TAG_MAXIMIZE) + goto _10 + _9: + ; + goto _10 + _10: + /* end switch(symbol) */ + } /* end while(tre_stack_num_objects(stack) > bottom) */ + if !(first_pass != 0) { + _tre_purge_regset(tls, regset, tnfa, tag) + } + if !(first_pass != 0) && minimal_tag >= 0 { + i7 = 0 + for { + if !(**(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i7)*4)) >= 0) { + break + } + goto _23 + _23: + ; + i7 = i7 + 1 + } + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i7)*4)) = tag + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i7+int32(1))*4)) = minimal_tag + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i7+int32(2))*4)) = -int32(1) + minimal_tag = -int32(1) + num_minimals = num_minimals + 1 + } + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fend_tag = num_tags + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags = num_tags + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_minimals = num_minimals + Xfree(tls, orig_regset) + Xfree(tls, parents) + Xfree(tls, saved_states) + return status +} + +/* + AST to TNFA compilation routines. +*/ + +type Ttre_copyast_symbol_t = int32 + +const _COPY_RECURSE = 0 +const _COPY_SET_RESULT_PTR = 1 + +/* Flags for tre_copy_ast(). */ + +func _tre_copy_ast(tls *TLS, mem Ttre_mem_t, stack uintptr, ast uintptr, flags int32, pos_add uintptr, tag_directions uintptr, copy1 uintptr, max_pos uintptr) (r Treg_errcode_t) { + var bottom, first_tag, max, min, num_copied, pos, v1 int32 + var cat, iter, lit, node, p, result, tmp, tmp1, uni uintptr + var status Treg_errcode_t + var symbol Ttre_copyast_symbol_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = bottom, cat, first_tag, iter, lit, max, min, node, num_copied, p, pos, result, status, symbol, tmp, tmp1, uni, v1 + status = REG_OK + bottom = _tre_stack_num_objects(tls, stack) + num_copied = 0 + first_tag = int32(1) + result = copy1 + status = _tre_stack_push_voidptr(tls, stack, ast) + status = _tre_stack_push_int(tls, stack, int32(_COPY_RECURSE)) + for status == REG_OK && _tre_stack_num_objects(tls, stack) > bottom { + if status != REG_OK { + break + } + symbol = _tre_stack_pop_int(tls, stack) + switch symbol { + case int32(_COPY_SET_RESULT_PTR): + result = _tre_stack_pop_voidptr(tls, stack) + case int32(_COPY_RECURSE): + node = _tre_stack_pop_voidptr(tls, stack) + switch (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 { + case int32(_LITERAL): + lit = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + pos = (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition + min = int32((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min) + max = int32((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max) + if !((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min < Int64FromInt32(0)) || (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min == int64(-int32(4)) { + /* XXX - e.g. [ab] has only one position but two + nodes, so we are creating holes in the state space + here. Not fatal, just wastes memory. */ + pos = pos + **(**int32)(__ccgo_up(pos_add)) + num_copied = num_copied + 1 + } else { + if (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min == int64(-int32(3)) && flags&int32(COPY_REMOVE_TAGS) != 0 { + /* Change this tag to empty. */ + min = -int32(1) + v1 = -Int32FromInt32(1) + pos = v1 + max = v1 + } else { + if (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min == int64(-int32(3)) && flags&int32(COPY_MAXIMIZE_FIRST_TAG) != 0 && first_tag != 0 { + /* Maximize the first tag. */ + **(**Ttre_tag_direction_t)(__ccgo_up(tag_directions + uintptr(max)*4)) = int32(_TRE_TAG_MAXIMIZE) + first_tag = 0 + } + } + } + **(**uintptr)(__ccgo_up(result)) = _tre_ast_new_literal(tls, mem, min, max, pos) + if **(**uintptr)(__ccgo_up(result)) == UintptrFromInt32(0) { + status = int32(REG_ESPACE) + } else { + p = (*Ttre_ast_node_t)(unsafe.Pointer(**(**uintptr)(__ccgo_up(result)))).Fobj + (*Ttre_literal_t)(unsafe.Pointer(p)).Fclass = (*Ttre_literal_t)(unsafe.Pointer(lit)).Fclass + (*Ttre_literal_t)(unsafe.Pointer(p)).Fneg_classes = (*Ttre_literal_t)(unsafe.Pointer(lit)).Fneg_classes + } + if pos > **(**int32)(__ccgo_up(max_pos)) { + **(**int32)(__ccgo_up(max_pos)) = pos + } + case int32(_UNION): + uni = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + **(**uintptr)(__ccgo_up(result)) = _tre_ast_new_union(tls, mem, (*Ttre_union_t)(unsafe.Pointer(uni)).Fleft, (*Ttre_union_t)(unsafe.Pointer(uni)).Fright) + if **(**uintptr)(__ccgo_up(result)) == UintptrFromInt32(0) { + status = int32(REG_ESPACE) + break + } + tmp = (*Ttre_ast_node_t)(unsafe.Pointer(**(**uintptr)(__ccgo_up(result)))).Fobj + result = tmp + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_union_t)(unsafe.Pointer(uni)).Fright) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_COPY_RECURSE)) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, tmp+8) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_COPY_SET_RESULT_PTR)) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_union_t)(unsafe.Pointer(uni)).Fleft) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_COPY_RECURSE)) + if status != REG_OK { + break + } + case int32(_CATENATION): + cat = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + **(**uintptr)(__ccgo_up(result)) = _tre_ast_new_catenation(tls, mem, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright) + if **(**uintptr)(__ccgo_up(result)) == UintptrFromInt32(0) { + status = int32(REG_ESPACE) + break + } + tmp1 = (*Ttre_ast_node_t)(unsafe.Pointer(**(**uintptr)(__ccgo_up(result)))).Fobj + (*Ttre_catenation_t)(unsafe.Pointer(tmp1)).Fleft = UintptrFromInt32(0) + (*Ttre_catenation_t)(unsafe.Pointer(tmp1)).Fright = UintptrFromInt32(0) + result = tmp1 + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_COPY_RECURSE)) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, tmp1+8) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_COPY_SET_RESULT_PTR)) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_COPY_RECURSE)) + if status != REG_OK { + break + } + case int32(_ITERATION): + iter = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_COPY_RECURSE)) + if status != REG_OK { + break + } + **(**uintptr)(__ccgo_up(result)) = _tre_ast_new_iter(tls, mem, (*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg, (*Ttre_iteration_t)(unsafe.Pointer(iter)).Fmin, (*Ttre_iteration_t)(unsafe.Pointer(iter)).Fmax, int32(uint32(*(*uint8)(unsafe.Pointer(iter + 16))&0x1>>0))) + if **(**uintptr)(__ccgo_up(result)) == UintptrFromInt32(0) { + status = int32(REG_ESPACE) + break + } + iter = (*Ttre_ast_node_t)(unsafe.Pointer(**(**uintptr)(__ccgo_up(result)))).Fobj + result = iter + default: + break + } + break + } + } + **(**int32)(__ccgo_up(pos_add)) += num_copied + return status +} + +type Ttre_expand_ast_symbol_t = int32 + +const _EXPAND_RECURSE = 0 +const _EXPAND_AFTER_ITER = 1 + +// C documentation +// +// /* Expands each iteration node that has a finite nonzero minimum or maximum +// iteration count to a catenated sequence of copies of the node. */ +func _tre_expand_ast(tls *TLS, mem Ttre_mem_t, stack uintptr, ast uintptr, position uintptr, tag_directions uintptr) (r Treg_errcode_t) { + bp := tls.Alloc(32) + defer tls.Free(32) + var _status, _status1, status Treg_errcode_t + var bottom, flags, iter_depth, j, pos_add_last, pos_add_save, pos_add_total, v2 int32 + var cat, iter, iter1, lit, node, seq1, tmp, uni uintptr + var symbol Ttre_expand_ast_symbol_t + var _ /* copy at bp+16 */ uintptr + var _ /* copy at bp+24 */ uintptr + var _ /* max_pos at bp+4 */ int32 + var _ /* pos_add at bp+0 */ int32 + var _ /* seq2 at bp+8 */ uintptr + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = _status, _status1, bottom, cat, flags, iter, iter1, iter_depth, j, lit, node, pos_add_last, pos_add_save, pos_add_total, seq1, status, symbol, tmp, uni, v2 + status = REG_OK + bottom = _tre_stack_num_objects(tls, stack) + **(**int32)(__ccgo_up(bp)) = 0 + pos_add_total = 0 + **(**int32)(__ccgo_up(bp + 4)) = 0 + iter_depth = 0 + _status = _tre_stack_push_voidptr(tls, stack, ast) + if _status != REG_OK { + return _status + } + _status1 = _tre_stack_push_int(tls, stack, int32(_EXPAND_RECURSE)) + if _status1 != REG_OK { + return _status1 + } + for status == REG_OK && _tre_stack_num_objects(tls, stack) > bottom { + if status != REG_OK { + break + } + symbol = _tre_stack_pop_int(tls, stack) + node = _tre_stack_pop_voidptr(tls, stack) + switch symbol { + case int32(_EXPAND_RECURSE): + switch (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 { + case int32(_LITERAL): + lit = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + if !((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min < Int64FromInt32(0)) || (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min == int64(-int32(4)) { + **(**int32)(__ccgo_up(lit + 16)) += **(**int32)(__ccgo_up(bp)) + if (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition > **(**int32)(__ccgo_up(bp + 4)) { + **(**int32)(__ccgo_up(bp + 4)) = (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition + } + } + case int32(_UNION): + uni = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_union_t)(unsafe.Pointer(uni)).Fright) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_EXPAND_RECURSE)) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_union_t)(unsafe.Pointer(uni)).Fleft) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_EXPAND_RECURSE)) + if status != REG_OK { + break + } + case int32(_CATENATION): + cat = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_EXPAND_RECURSE)) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_EXPAND_RECURSE)) + if status != REG_OK { + break + } + case int32(_ITERATION): + iter = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + status = _tre_stack_push_int(tls, stack, **(**int32)(__ccgo_up(bp))) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, node) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_EXPAND_AFTER_ITER)) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_EXPAND_RECURSE)) + if status != REG_OK { + break + } + /* If we are going to expand this node at EXPAND_AFTER_ITER + then don't increase the `pos' fields of the nodes now, it + will get done when expanding. */ + if (*Ttre_iteration_t)(unsafe.Pointer(iter)).Fmin > int32(1) || (*Ttre_iteration_t)(unsafe.Pointer(iter)).Fmax > int32(1) { + **(**int32)(__ccgo_up(bp)) = 0 + } + iter_depth = iter_depth + 1 + default: + break + } + case int32(_EXPAND_AFTER_ITER): + iter1 = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + **(**int32)(__ccgo_up(bp)) = _tre_stack_pop_int(tls, stack) + pos_add_last = **(**int32)(__ccgo_up(bp)) + if (*Ttre_iteration_t)(unsafe.Pointer(iter1)).Fmin > int32(1) || (*Ttre_iteration_t)(unsafe.Pointer(iter1)).Fmax > int32(1) { + seq1 = UintptrFromInt32(0) + **(**uintptr)(__ccgo_up(bp + 8)) = UintptrFromInt32(0) + pos_add_save = **(**int32)(__ccgo_up(bp)) + /* Create a catenated sequence of copies of the node. */ + j = 0 + for { + if !(j < (*Ttre_iteration_t)(unsafe.Pointer(iter1)).Fmin) { + break + } + if j+int32(1) < (*Ttre_iteration_t)(unsafe.Pointer(iter1)).Fmin { + v2 = int32(COPY_REMOVE_TAGS) + } else { + v2 = int32(COPY_MAXIMIZE_FIRST_TAG) + } + /* Remove tags from all but the last copy. */ + flags = v2 + pos_add_save = **(**int32)(__ccgo_up(bp)) + status = _tre_copy_ast(tls, mem, stack, (*Ttre_iteration_t)(unsafe.Pointer(iter1)).Farg, flags, bp, tag_directions, bp+16, bp+4) + if status != REG_OK { + return status + } + if seq1 != UintptrFromInt32(0) { + seq1 = _tre_ast_new_catenation(tls, mem, seq1, **(**uintptr)(__ccgo_up(bp + 16))) + } else { + seq1 = **(**uintptr)(__ccgo_up(bp + 16)) + } + if seq1 == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + goto _1 + _1: + ; + j = j + 1 + } + if (*Ttre_iteration_t)(unsafe.Pointer(iter1)).Fmax == -int32(1) { + /* No upper limit. */ + pos_add_save = **(**int32)(__ccgo_up(bp)) + status = _tre_copy_ast(tls, mem, stack, (*Ttre_iteration_t)(unsafe.Pointer(iter1)).Farg, 0, bp, UintptrFromInt32(0), bp+8, bp+4) + if status != REG_OK { + return status + } + **(**uintptr)(__ccgo_up(bp + 8)) = _tre_ast_new_iter(tls, mem, **(**uintptr)(__ccgo_up(bp + 8)), 0, -int32(1), 0) + if **(**uintptr)(__ccgo_up(bp + 8)) == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + } else { + j = (*Ttre_iteration_t)(unsafe.Pointer(iter1)).Fmin + for { + if !(j < (*Ttre_iteration_t)(unsafe.Pointer(iter1)).Fmax) { + break + } + pos_add_save = **(**int32)(__ccgo_up(bp)) + status = _tre_copy_ast(tls, mem, stack, (*Ttre_iteration_t)(unsafe.Pointer(iter1)).Farg, 0, bp, UintptrFromInt32(0), bp+24, bp+4) + if status != REG_OK { + return status + } + if **(**uintptr)(__ccgo_up(bp + 8)) != UintptrFromInt32(0) { + **(**uintptr)(__ccgo_up(bp + 8)) = _tre_ast_new_catenation(tls, mem, **(**uintptr)(__ccgo_up(bp + 24)), **(**uintptr)(__ccgo_up(bp + 8))) + } else { + **(**uintptr)(__ccgo_up(bp + 8)) = **(**uintptr)(__ccgo_up(bp + 24)) + } + if **(**uintptr)(__ccgo_up(bp + 8)) == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + tmp = _tre_ast_new_literal(tls, mem, -int32(1), -int32(1), -int32(1)) + if tmp == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + **(**uintptr)(__ccgo_up(bp + 8)) = _tre_ast_new_union(tls, mem, tmp, **(**uintptr)(__ccgo_up(bp + 8))) + if **(**uintptr)(__ccgo_up(bp + 8)) == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + goto _3 + _3: + ; + j = j + 1 + } + } + **(**int32)(__ccgo_up(bp)) = pos_add_save + if seq1 == UintptrFromInt32(0) { + seq1 = **(**uintptr)(__ccgo_up(bp + 8)) + } else { + if **(**uintptr)(__ccgo_up(bp + 8)) != UintptrFromInt32(0) { + seq1 = _tre_ast_new_catenation(tls, mem, seq1, **(**uintptr)(__ccgo_up(bp + 8))) + } + } + if seq1 == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj = (*Ttre_ast_node_t)(unsafe.Pointer(seq1)).Fobj + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 = (*Ttre_ast_node_t)(unsafe.Pointer(seq1)).Ftype1 + } + iter_depth = iter_depth - 1 + pos_add_total = pos_add_total + (**(**int32)(__ccgo_up(bp)) - pos_add_last) + if iter_depth == 0 { + **(**int32)(__ccgo_up(bp)) = pos_add_total + } + default: + break + } + } + **(**int32)(__ccgo_up(position)) += pos_add_total + /* `max_pos' should never be larger than `*position' if the above + code works, but just an extra safeguard let's make sure + `*position' is set large enough so enough memory will be + allocated for the transition table. */ + if **(**int32)(__ccgo_up(bp + 4)) > **(**int32)(__ccgo_up(position)) { + **(**int32)(__ccgo_up(position)) = **(**int32)(__ccgo_up(bp + 4)) + } + return status +} + +func _tre_set_empty(tls *TLS, mem Ttre_mem_t) (r uintptr) { + var new_set uintptr + _ = new_set + new_set = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), int32(1), uint64(56)) + if new_set == UintptrFromInt32(0) { + return UintptrFromInt32(0) + } + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set))).Fposition = -int32(1) + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set))).Fcode_min = -int32(1) + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set))).Fcode_max = -int32(1) + return new_set +} + +func _tre_set_one(tls *TLS, mem Ttre_mem_t, position int32, code_min int32, code_max int32, class Ttre_ctype_t, neg_classes uintptr, backref int32) (r uintptr) { + var new_set uintptr + _ = new_set + new_set = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), int32(1), Uint64FromInt64(56)*Uint64FromInt32(2)) + if new_set == UintptrFromInt32(0) { + return UintptrFromInt32(0) + } + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set))).Fposition = position + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set))).Fcode_min = code_min + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set))).Fcode_max = code_max + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set))).Fclass = class + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set))).Fneg_classes = neg_classes + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set))).Fbackref = backref + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + 1*56))).Fposition = -int32(1) + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + 1*56))).Fcode_min = -int32(1) + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + 1*56))).Fcode_max = -int32(1) + return new_set +} + +func _tre_set_union(tls *TLS, mem Ttre_mem_t, set1 uintptr, set2 uintptr, tags uintptr, assertions int32) (r uintptr) { + var i, j, num_tags, s1, s2 int32 + var new_set, new_tags uintptr + _, _, _, _, _, _, _ = i, j, new_set, new_tags, num_tags, s1, s2 + num_tags = 0 + for { + if !(tags != UintptrFromInt32(0) && **(**int32)(__ccgo_up(tags + uintptr(num_tags)*4)) >= 0) { + break + } + goto _1 + _1: + ; + num_tags = num_tags + 1 + } + s1 = 0 + for { + if !((**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*56))).Fposition >= 0) { + break + } + goto _2 + _2: + ; + s1 = s1 + 1 + } + s2 = 0 + for { + if !((**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*56))).Fposition >= 0) { + break + } + goto _3 + _3: + ; + s2 = s2 + 1 + } + new_set = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), int32(1), uint64(56)*Uint64FromInt32(s1+s2+Int32FromInt32(1))) + if !(new_set != 0) { + return UintptrFromInt32(0) + } + s1 = 0 + for { + if !((**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*56))).Fposition >= 0) { + break + } + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1)*56))).Fposition = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*56))).Fposition + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1)*56))).Fcode_min = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*56))).Fcode_min + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1)*56))).Fcode_max = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*56))).Fcode_max + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1)*56))).Fassertions = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*56))).Fassertions | assertions + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1)*56))).Fclass = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*56))).Fclass + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1)*56))).Fneg_classes = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*56))).Fneg_classes + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1)*56))).Fbackref = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*56))).Fbackref + if (**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*56))).Ftags == UintptrFromInt32(0) && tags == UintptrFromInt32(0) { + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1)*56))).Ftags = UintptrFromInt32(0) + } else { + i = 0 + for { + if !((**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*56))).Ftags != UintptrFromInt32(0) && **(**int32)(__ccgo_up((**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*56))).Ftags + uintptr(i)*4)) >= 0) { + break + } + goto _5 + _5: + ; + i = i + 1 + } + new_tags = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, Uint64FromInt64(4)*Uint64FromInt32(i+num_tags+Int32FromInt32(1))) + if new_tags == UintptrFromInt32(0) { + return UintptrFromInt32(0) + } + j = 0 + for { + if !(j < i) { + break + } + **(**int32)(__ccgo_up(new_tags + uintptr(j)*4)) = **(**int32)(__ccgo_up((**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*56))).Ftags + uintptr(j)*4)) + goto _6 + _6: + ; + j = j + 1 + } + i = 0 + for { + if !(i < num_tags) { + break + } + **(**int32)(__ccgo_up(new_tags + uintptr(j+i)*4)) = **(**int32)(__ccgo_up(tags + uintptr(i)*4)) + goto _7 + _7: + ; + i = i + 1 + } + **(**int32)(__ccgo_up(new_tags + uintptr(j+i)*4)) = -int32(1) + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1)*56))).Ftags = new_tags + } + goto _4 + _4: + ; + s1 = s1 + 1 + } + s2 = 0 + for { + if !((**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*56))).Fposition >= 0) { + break + } + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1+s2)*56))).Fposition = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*56))).Fposition + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1+s2)*56))).Fcode_min = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*56))).Fcode_min + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1+s2)*56))).Fcode_max = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*56))).Fcode_max + /* XXX - why not | assertions here as well? */ + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1+s2)*56))).Fassertions = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*56))).Fassertions + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1+s2)*56))).Fclass = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*56))).Fclass + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1+s2)*56))).Fneg_classes = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*56))).Fneg_classes + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1+s2)*56))).Fbackref = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*56))).Fbackref + if (**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*56))).Ftags == UintptrFromInt32(0) { + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1+s2)*56))).Ftags = UintptrFromInt32(0) + } else { + i = 0 + for { + if !(**(**int32)(__ccgo_up((**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*56))).Ftags + uintptr(i)*4)) >= 0) { + break + } + goto _9 + _9: + ; + i = i + 1 + } + new_tags = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint64(4)*Uint64FromInt32(i+Int32FromInt32(1))) + if new_tags == UintptrFromInt32(0) { + return UintptrFromInt32(0) + } + j = 0 + for { + if !(j < i) { + break + } + **(**int32)(__ccgo_up(new_tags + uintptr(j)*4)) = **(**int32)(__ccgo_up((**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*56))).Ftags + uintptr(j)*4)) + goto _10 + _10: + ; + j = j + 1 + } + **(**int32)(__ccgo_up(new_tags + uintptr(j)*4)) = -int32(1) + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1+s2)*56))).Ftags = new_tags + } + goto _8 + _8: + ; + s2 = s2 + 1 + } + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1+s2)*56))).Fposition = -int32(1) + return new_set +} + +// C documentation +// +// /* Finds the empty path through `node' which is the one that should be +// taken according to POSIX.2 rules, and adds the tags on that path to +// `tags'. `tags' may be NULL. If `num_tags_seen' is not NULL, it is +// set to the number of tags seen on the path. */ +func _tre_match_empty(tls *TLS, stack uintptr, node uintptr, tags uintptr, assertions uintptr, num_tags_seen uintptr) (r Treg_errcode_t) { + var bottom, i int32 + var cat, iter, lit, uni, v2 uintptr + var status Treg_errcode_t + _, _, _, _, _, _, _, _ = bottom, cat, i, iter, lit, status, uni, v2 + bottom = _tre_stack_num_objects(tls, stack) + status = REG_OK + if num_tags_seen != 0 { + **(**int32)(__ccgo_up(num_tags_seen)) = 0 + } + status = _tre_stack_push_voidptr(tls, stack, node) + /* Walk through the tree recursively. */ + for status == REG_OK && _tre_stack_num_objects(tls, stack) > bottom { + node = _tre_stack_pop_voidptr(tls, stack) + switch (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 { + case int32(_LITERAL): + lit = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + switch (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min { + case int64(-int32(3)): + if (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max >= 0 { + if tags != UintptrFromInt32(0) { + /* Add the tag to `tags'. */ + i = 0 + for { + if !(**(**int32)(__ccgo_up(tags + uintptr(i)*4)) >= 0) { + break + } + if int64(**(**int32)(__ccgo_up(tags + uintptr(i)*4))) == (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max { + break + } + goto _1 + _1: + ; + i = i + 1 + } + if **(**int32)(__ccgo_up(tags + uintptr(i)*4)) < 0 { + **(**int32)(__ccgo_up(tags + uintptr(i)*4)) = int32((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max) + **(**int32)(__ccgo_up(tags + uintptr(i+int32(1))*4)) = -int32(1) + } + } + if num_tags_seen != 0 { + **(**int32)(__ccgo_up(num_tags_seen)) = **(**int32)(__ccgo_up(num_tags_seen)) + 1 + } + } + case int64(-int32(2)): + if assertions != UintptrFromInt32(0) { + v2 = assertions + *(*int32)(unsafe.Pointer(v2)) = int32(int64(*(*int32)(unsafe.Pointer(v2))) | (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max) + } + case int64(-int32(1)): + default: + break + } + case int32(_UNION): + /* Subexpressions starting earlier take priority over ones + starting later, so we prefer the left subexpression over the + right subexpression. */ + uni = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + if (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_union_t)(unsafe.Pointer(uni)).Fleft)).Fnullable != 0 { + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_union_t)(unsafe.Pointer(uni)).Fleft) + if status != REG_OK { + break + } + } else { + if (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_union_t)(unsafe.Pointer(uni)).Fright)).Fnullable != 0 { + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_union_t)(unsafe.Pointer(uni)).Fright) + if status != REG_OK { + break + } + } else { + } + } + case int32(_CATENATION): + /* The path must go through both children. */ + cat = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright) + if status != REG_OK { + break + } + case int32(_ITERATION): + /* A match with an empty string is preferred over no match at + all, so we go through the argument if possible. */ + iter = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + if (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg)).Fnullable != 0 { + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg) + if status != REG_OK { + break + } + } + default: + break + } + } + return status +} + +type Ttre_nfl_stack_symbol_t = int32 + +const _NFL_RECURSE = 0 +const _NFL_POST_UNION = 1 +const _NFL_POST_CATENATION = 2 +const _NFL_POST_ITERATION = 3 + +// C documentation +// +// /* Computes and fills in the fields `nullable', `firstpos', and `lastpos' for +// the nodes of the AST `tree'. */ +func _tre_compute_nfl(tls *TLS, mem Ttre_mem_t, stack uintptr, tree uintptr) (r Treg_errcode_t) { + bp := tls.Alloc(16) + defer tls.Free(16) + var _status, _status1, _status10, _status11, _status12, _status13, _status14, _status15, _status16, _status17, _status2, _status3, _status4, _status5, _status6, _status7, _status8, _status9, status Treg_errcode_t + var bottom int32 + var cat, iter, lit, node, tags, uni uintptr + var symbol Ttre_nfl_stack_symbol_t + var _ /* assertions at bp+4 */ int32 + var _ /* num_tags at bp+0 */ int32 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = _status, _status1, _status10, _status11, _status12, _status13, _status14, _status15, _status16, _status17, _status2, _status3, _status4, _status5, _status6, _status7, _status8, _status9, bottom, cat, iter, lit, node, status, symbol, tags, uni + bottom = _tre_stack_num_objects(tls, stack) + _status = _tre_stack_push_voidptr(tls, stack, tree) + if _status != REG_OK { + return _status + } + _status1 = _tre_stack_push_int(tls, stack, int32(_NFL_RECURSE)) + if _status1 != REG_OK { + return _status1 + } + for _tre_stack_num_objects(tls, stack) > bottom { + symbol = _tre_stack_pop_int(tls, stack) + node = _tre_stack_pop_voidptr(tls, stack) + switch symbol { + case int32(_NFL_RECURSE): + switch (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 { + case int32(_LITERAL): + lit = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + if (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min == int64(-int32(4)) { + /* Back references: nullable = false, firstpos = {i}, + lastpos = {i}. */ + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnullable = 0 + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos = _tre_set_one(tls, mem, (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition, 0, int32(TRE_CHAR_MAX), uint64(0), UintptrFromInt32(0), -int32(1)) + if !((*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos != 0) { + return int32(REG_ESPACE) + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos = _tre_set_one(tls, mem, (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition, 0, int32(TRE_CHAR_MAX), uint64(0), UintptrFromInt32(0), int32((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max)) + if !((*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos != 0) { + return int32(REG_ESPACE) + } + } else { + if (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min < 0 { + /* Tags, empty strings, params, and zero width assertions: + nullable = true, firstpos = {}, and lastpos = {}. */ + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnullable = int32(1) + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos = _tre_set_empty(tls, mem) + if !((*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos != 0) { + return int32(REG_ESPACE) + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos = _tre_set_empty(tls, mem) + if !((*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos != 0) { + return int32(REG_ESPACE) + } + } else { + /* Literal at position i: nullable = false, firstpos = {i}, + lastpos = {i}. */ + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnullable = 0 + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos = _tre_set_one(tls, mem, (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition, int32((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min), int32((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max), uint64(0), UintptrFromInt32(0), -int32(1)) + if !((*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos != 0) { + return int32(REG_ESPACE) + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos = _tre_set_one(tls, mem, (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition, int32((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min), int32((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max), (*Ttre_literal_t)(unsafe.Pointer(lit)).Fclass, (*Ttre_literal_t)(unsafe.Pointer(lit)).Fneg_classes, -int32(1)) + if !((*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos != 0) { + return int32(REG_ESPACE) + } + } + } + case int32(_UNION): + /* Compute the attributes for the two subtrees, and after that + for this node. */ + _status2 = _tre_stack_push_voidptr(tls, stack, node) + if _status2 != REG_OK { + return _status2 + } + _status3 = _tre_stack_push_int(tls, stack, int32(_NFL_POST_UNION)) + if _status3 != REG_OK { + return _status3 + } + _status4 = _tre_stack_push_voidptr(tls, stack, (*Ttre_union_t)(unsafe.Pointer((*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj)).Fright) + if _status4 != REG_OK { + return _status4 + } + _status5 = _tre_stack_push_int(tls, stack, int32(_NFL_RECURSE)) + if _status5 != REG_OK { + return _status5 + } + _status6 = _tre_stack_push_voidptr(tls, stack, (*Ttre_union_t)(unsafe.Pointer((*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj)).Fleft) + if _status6 != REG_OK { + return _status6 + } + _status7 = _tre_stack_push_int(tls, stack, int32(_NFL_RECURSE)) + if _status7 != REG_OK { + return _status7 + } + case int32(_CATENATION): + /* Compute the attributes for the two subtrees, and after that + for this node. */ + _status8 = _tre_stack_push_voidptr(tls, stack, node) + if _status8 != REG_OK { + return _status8 + } + _status9 = _tre_stack_push_int(tls, stack, int32(_NFL_POST_CATENATION)) + if _status9 != REG_OK { + return _status9 + } + _status10 = _tre_stack_push_voidptr(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer((*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj)).Fright) + if _status10 != REG_OK { + return _status10 + } + _status11 = _tre_stack_push_int(tls, stack, int32(_NFL_RECURSE)) + if _status11 != REG_OK { + return _status11 + } + _status12 = _tre_stack_push_voidptr(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer((*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj)).Fleft) + if _status12 != REG_OK { + return _status12 + } + _status13 = _tre_stack_push_int(tls, stack, int32(_NFL_RECURSE)) + if _status13 != REG_OK { + return _status13 + } + case int32(_ITERATION): + /* Compute the attributes for the subtree, and after that for + this node. */ + _status14 = _tre_stack_push_voidptr(tls, stack, node) + if _status14 != REG_OK { + return _status14 + } + _status15 = _tre_stack_push_int(tls, stack, int32(_NFL_POST_ITERATION)) + if _status15 != REG_OK { + return _status15 + } + _status16 = _tre_stack_push_voidptr(tls, stack, (*Ttre_iteration_t)(unsafe.Pointer((*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj)).Farg) + if _status16 != REG_OK { + return _status16 + } + _status17 = _tre_stack_push_int(tls, stack, int32(_NFL_RECURSE)) + if _status17 != REG_OK { + return _status17 + } + break + } + case int32(_NFL_POST_UNION): + uni = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnullable = BoolInt32((*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_union_t)(unsafe.Pointer(uni)).Fleft)).Fnullable != 0 || (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_union_t)(unsafe.Pointer(uni)).Fright)).Fnullable != 0) + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos = _tre_set_union(tls, mem, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_union_t)(unsafe.Pointer(uni)).Fleft)).Ffirstpos, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_union_t)(unsafe.Pointer(uni)).Fright)).Ffirstpos, UintptrFromInt32(0), 0) + if !((*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos != 0) { + return int32(REG_ESPACE) + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos = _tre_set_union(tls, mem, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_union_t)(unsafe.Pointer(uni)).Fleft)).Flastpos, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_union_t)(unsafe.Pointer(uni)).Fright)).Flastpos, UintptrFromInt32(0), 0) + if !((*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos != 0) { + return int32(REG_ESPACE) + } + case int32(_NFL_POST_ITERATION): + iter = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + if (*Ttre_iteration_t)(unsafe.Pointer(iter)).Fmin == 0 || (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg)).Fnullable != 0 { + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnullable = int32(1) + } else { + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnullable = 0 + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos = (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg)).Ffirstpos + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos = (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg)).Flastpos + case int32(_NFL_POST_CATENATION): + cat = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnullable = BoolInt32((*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft)).Fnullable != 0 && (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright)).Fnullable != 0) + /* Compute firstpos. */ + if (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft)).Fnullable != 0 { + /* The left side matches the empty string. Make a first pass + with tre_match_empty() to get the number of tags and + parameters. */ + status = _tre_match_empty(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft, UintptrFromInt32(0), UintptrFromInt32(0), bp) + if status != REG_OK { + return status + } + /* Allocate arrays for the tags and parameters. */ + tags = Xmalloc(tls, uint64(4)*Uint64FromInt32(**(**int32)(__ccgo_up(bp))+Int32FromInt32(1))) + if !(tags != 0) { + return int32(REG_ESPACE) + } + **(**int32)(__ccgo_up(tags)) = -int32(1) + **(**int32)(__ccgo_up(bp + 4)) = 0 + /* Second pass with tre_mach_empty() to get the list of + tags and parameters. */ + status = _tre_match_empty(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft, tags, bp+4, UintptrFromInt32(0)) + if status != REG_OK { + Xfree(tls, tags) + return status + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos = _tre_set_union(tls, mem, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright)).Ffirstpos, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft)).Ffirstpos, tags, **(**int32)(__ccgo_up(bp + 4))) + Xfree(tls, tags) + if !((*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos != 0) { + return int32(REG_ESPACE) + } + } else { + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos = (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft)).Ffirstpos + } + /* Compute lastpos. */ + if (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright)).Fnullable != 0 { + /* The right side matches the empty string. Make a first pass + with tre_match_empty() to get the number of tags and + parameters. */ + status = _tre_match_empty(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright, UintptrFromInt32(0), UintptrFromInt32(0), bp) + if status != REG_OK { + return status + } + /* Allocate arrays for the tags and parameters. */ + tags = Xmalloc(tls, uint64(4)*Uint64FromInt32(**(**int32)(__ccgo_up(bp))+Int32FromInt32(1))) + if !(tags != 0) { + return int32(REG_ESPACE) + } + **(**int32)(__ccgo_up(tags)) = -int32(1) + **(**int32)(__ccgo_up(bp + 4)) = 0 + /* Second pass with tre_mach_empty() to get the list of + tags and parameters. */ + status = _tre_match_empty(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright, tags, bp+4, UintptrFromInt32(0)) + if status != REG_OK { + Xfree(tls, tags) + return status + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos = _tre_set_union(tls, mem, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft)).Flastpos, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright)).Flastpos, tags, **(**int32)(__ccgo_up(bp + 4))) + Xfree(tls, tags) + if !((*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos != 0) { + return int32(REG_ESPACE) + } + } else { + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos = (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright)).Flastpos + } + default: + break + } + } + return REG_OK +} + +// C documentation +// +// /* Adds a transition from each position in `p1' to each position in `p2'. */ +func _tre_make_trans(tls *TLS, p1 uintptr, p2 uintptr, transitions uintptr, counts uintptr, offs uintptr) (r Treg_errcode_t) { + var dup, i, j, k, l, prev_p2_pos, v1, v2 int32 + var orig_p2, trans uintptr + _, _, _, _, _, _, _, _, _, _ = dup, i, j, k, l, orig_p2, prev_p2_pos, trans, v1, v2 + orig_p2 = p2 + if transitions != UintptrFromInt32(0) { + for (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fposition >= 0 { + p2 = orig_p2 + prev_p2_pos = -int32(1) + for (*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Fposition >= 0 { + /* Optimization: if this position was already handled, skip it. */ + if (*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Fposition == prev_p2_pos { + p2 += 56 + continue + } + prev_p2_pos = (*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Fposition + /* Set `trans' to point to the next unused transition from + position `p1->position'. */ + trans = transitions + uintptr(**(**int32)(__ccgo_up(offs + uintptr((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fposition)*4)))*56 + for (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fstate != UintptrFromInt32(0) { + trans += 56 + } + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fstate == UintptrFromInt32(0) { + (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans + UintptrFromInt32(1)*56)).Fstate = UintptrFromInt32(0) + } + /* Use the character ranges, assertions, etc. from `p1' for + the transition from `p1' to `p2'. */ + (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fcode_min = Uint32FromInt32((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fcode_min) + (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fcode_max = Uint32FromInt32((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fcode_max) + (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fstate = transitions + uintptr(**(**int32)(__ccgo_up(offs + uintptr((*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Fposition)*4)))*56 + (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fstate_id = (*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Fposition + if (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fclass != 0 { + v1 = int32(ASSERT_CHAR_CLASS) + } else { + v1 = 0 + } + if (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fneg_classes != UintptrFromInt32(0) { + v2 = int32(ASSERT_CHAR_CLASS_NEG) + } else { + v2 = 0 + } + (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fassertions = (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fassertions | (*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Fassertions | v1 | v2 + if (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fbackref >= 0 { + *(*int32)(unsafe.Pointer(&(*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fu)) = (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fbackref + **(**int32)(__ccgo_up(trans + 32)) |= int32(ASSERT_BACKREF) + } else { + *(*Ttre_ctype_t)(unsafe.Pointer(trans + 40)) = (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fclass + } + if (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fneg_classes != UintptrFromInt32(0) { + i = 0 + for { + if !(**(**Ttre_ctype_t)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fneg_classes + uintptr(i)*8)) != Uint64FromInt32(0)) { + break + } + goto _3 + _3: + ; + i = i + 1 + } + (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fneg_classes = Xmalloc(tls, uint64(8)*Uint64FromInt32(i+Int32FromInt32(1))) + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fneg_classes == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + i = 0 + for { + if !(**(**Ttre_ctype_t)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fneg_classes + uintptr(i)*8)) != Uint64FromInt32(0)) { + break + } + **(**Ttre_ctype_t)(__ccgo_up((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fneg_classes + uintptr(i)*8)) = **(**Ttre_ctype_t)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fneg_classes + uintptr(i)*8)) + goto _4 + _4: + ; + i = i + 1 + } + **(**Ttre_ctype_t)(__ccgo_up((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fneg_classes + uintptr(i)*8)) = Uint64FromInt32(0) + } else { + (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fneg_classes = UintptrFromInt32(0) + } + /* Find out how many tags this transition has. */ + i = 0 + if (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Ftags != UintptrFromInt32(0) { + for **(**int32)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Ftags + uintptr(i)*4)) >= 0 { + i = i + 1 + } + } + j = 0 + if (*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Ftags != UintptrFromInt32(0) { + for **(**int32)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Ftags + uintptr(j)*4)) >= 0 { + j = j + 1 + } + } + /* If we are overwriting a transition, free the old tag array. */ + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags != UintptrFromInt32(0) { + Xfree(tls, (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags) + } + (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags = UintptrFromInt32(0) + /* If there were any tags, allocate an array and fill it. */ + if i+j > 0 { + (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags = Xmalloc(tls, uint64(4)*Uint64FromInt32(i+j+Int32FromInt32(1))) + if !((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags != 0) { + return int32(REG_ESPACE) + } + i = 0 + if (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Ftags != UintptrFromInt32(0) { + for **(**int32)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Ftags + uintptr(i)*4)) >= 0 { + **(**int32)(__ccgo_up((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags + uintptr(i)*4)) = **(**int32)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Ftags + uintptr(i)*4)) + i = i + 1 + } + } + l = i + j = 0 + if (*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Ftags != UintptrFromInt32(0) { + for **(**int32)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Ftags + uintptr(j)*4)) >= 0 { + /* Don't add duplicates. */ + dup = 0 + k = 0 + for { + if !(k < i) { + break + } + if **(**int32)(__ccgo_up((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags + uintptr(k)*4)) == **(**int32)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Ftags + uintptr(j)*4)) { + dup = int32(1) + break + } + goto _5 + _5: + ; + k = k + 1 + } + if !(dup != 0) { + v1 = l + l = l + 1 + **(**int32)(__ccgo_up((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags + uintptr(v1)*4)) = **(**int32)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Ftags + uintptr(j)*4)) + } + j = j + 1 + } + } + **(**int32)(__ccgo_up((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags + uintptr(l)*4)) = -int32(1) + } + p2 += 56 + } + p1 += 56 + } + } else { + /* Compute a maximum limit for the number of transitions leaving + from each state. */ + for (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fposition >= 0 { + p2 = orig_p2 + for (*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Fposition >= 0 { + **(**int32)(__ccgo_up(counts + uintptr((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fposition)*4)) = **(**int32)(__ccgo_up(counts + uintptr((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fposition)*4)) + 1 + p2 += 56 + } + p1 += 56 + } + } + return REG_OK +} + +// C documentation +// +// /* Converts the syntax tree to a TNFA. All the transitions in the TNFA are +// labelled with one character range (there are no transitions on empty +// strings). The TNFA takes O(n^2) space in the worst case, `n' is size of +// the regexp. */ +func _tre_ast_to_tnfa(tls *TLS, node uintptr, transitions uintptr, counts uintptr, offs uintptr) (r Treg_errcode_t) { + var cat, iter, uni uintptr + var errcode Treg_errcode_t + _, _, _, _ = cat, errcode, iter, uni + errcode = REG_OK + /* XXX - recurse using a stack!. */ + switch (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 { + case int32(_LITERAL): + case int32(_UNION): + uni = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + errcode = _tre_ast_to_tnfa(tls, (*Ttre_union_t)(unsafe.Pointer(uni)).Fleft, transitions, counts, offs) + if errcode != REG_OK { + return errcode + } + errcode = _tre_ast_to_tnfa(tls, (*Ttre_union_t)(unsafe.Pointer(uni)).Fright, transitions, counts, offs) + case int32(_CATENATION): + cat = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + /* Add a transition from each position in cat->left->lastpos + to each position in cat->right->firstpos. */ + errcode = _tre_make_trans(tls, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft)).Flastpos, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright)).Ffirstpos, transitions, counts, offs) + if errcode != REG_OK { + return errcode + } + errcode = _tre_ast_to_tnfa(tls, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft, transitions, counts, offs) + if errcode != REG_OK { + return errcode + } + errcode = _tre_ast_to_tnfa(tls, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright, transitions, counts, offs) + case int32(_ITERATION): + iter = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + if (*Ttre_iteration_t)(unsafe.Pointer(iter)).Fmax == -int32(1) { + /* Add a transition from each last position in the iterated + expression to each first position. */ + errcode = _tre_make_trans(tls, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg)).Flastpos, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg)).Ffirstpos, transitions, counts, offs) + if errcode != REG_OK { + return errcode + } + } + errcode = _tre_ast_to_tnfa(tls, (*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg, transitions, counts, offs) + break + } + return errcode +} + +func Xregcomp(tls *TLS, preg uintptr, regex uintptr, cflags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v preg=%v regex=%v cflags=%v, (%v:)", tls, preg, regex, cflags, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var add, i, j, v1 int32 + var counts, initial, offs, p, stack, submatch_data, tag_directions, tmp_ast_l, tmp_ast_r, tnfa, transitions, tree, v2 uintptr + var errcode Treg_errcode_t + var mem Ttre_mem_t + var _ /* parse_ctx at bp+0 */ Ttre_parse_ctx_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = add, counts, errcode, i, initial, j, mem, offs, p, stack, submatch_data, tag_directions, tmp_ast_l, tmp_ast_r, tnfa, transitions, tree, v1, v2 + counts = UintptrFromInt32(0) + offs = UintptrFromInt32(0) + add = 0 + tnfa = UintptrFromInt32(0) + tag_directions = UintptrFromInt32(0) + /* Allocate a stack used throughout the compilation process for various + purposes. */ + stack = _tre_stack_new(tls, int32(512), int32(1024000), int32(128)) + if !(stack != 0) { + return int32(REG_ESPACE) + } + /* Allocate a fast memory allocator. */ + mem = X__tre_mem_new_impl(tls, 0, UintptrFromInt32(0)) + if !(mem != 0) { + _tre_stack_destroy(tls, stack) + return int32(REG_ESPACE) + } + /* Parse the regexp. */ + Xmemset(tls, bp, 0, uint64(56)) + (**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fmem = mem + (**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fstack = stack + (**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fstart = regex + (**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fcflags = cflags + (**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fmax_backref = -int32(1) + errcode = _tre_parse(tls, bp) + if errcode != REG_OK { + errcode = errcode + if int32(1) != 0 { + goto error_exit + } + } + (*Tregex_t)(unsafe.Pointer(preg)).Fre_nsub = Uint64FromInt32((**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fsubmatch_id - int32(1)) + tree = (**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fn + /* Referring to nonexistent subexpressions is illegal. */ + if (**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fmax_backref > Int32FromUint64((*Tregex_t)(unsafe.Pointer(preg)).Fre_nsub) { + errcode = int32(REG_ESUBREG) + if int32(1) != 0 { + goto error_exit + } + } + /* Allocate the TNFA struct. */ + tnfa = Xcalloc(tls, uint64(1), uint64(104)) + if tnfa == UintptrFromInt32(0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fhave_backrefs = BoolInt32((**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fmax_backref >= 0) + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fhave_approx = 0 + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_submatches = Uint32FromInt32((**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fsubmatch_id) + /* Set up tags for submatch addressing. If REG_NOSUB is set and the + regexp does not have back references, this can be skipped. */ + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fhave_backrefs != 0 || !(cflags&Int32FromInt32(REG_NOSUB) != 0) { + /* Figure out how many tags we will need. */ + errcode = _tre_add_tags(tls, UintptrFromInt32(0), stack, tree, tnfa) + if errcode != REG_OK { + errcode = errcode + if int32(1) != 0 { + goto error_exit + } + } + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags > 0 { + tag_directions = Xmalloc(tls, uint64(4)*Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags+Int32FromInt32(1))) + if tag_directions == UintptrFromInt32(0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions = tag_directions + Xmemset(tls, tag_directions, -int32(1), uint64(4)*Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags+Int32FromInt32(1))) + } + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags = Xcalloc(tls, uint64(Uint32FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags)*uint32(2)+uint32(1)), uint64(4)) + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags == UintptrFromInt32(0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + submatch_data = Xcalloc(tls, uint64(Uint32FromInt32((**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fsubmatch_id)), uint64(16)) + if submatch_data == UintptrFromInt32(0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fsubmatch_data = submatch_data + errcode = _tre_add_tags(tls, mem, stack, tree, tnfa) + if errcode != REG_OK { + errcode = errcode + if int32(1) != 0 { + goto error_exit + } + } + } + /* Expand iteration nodes. */ + errcode = _tre_expand_ast(tls, mem, stack, tree, bp+44, tag_directions) + if errcode != REG_OK { + errcode = errcode + if int32(1) != 0 { + goto error_exit + } + } + /* Add a dummy node for the final state. + XXX - For certain patterns this dummy node can be optimized away, + for example "a*" or "ab*". Figure out a simple way to detect + this possibility. */ + tmp_ast_l = tree + v2 = bp + 44 + v1 = *(*int32)(unsafe.Pointer(v2)) + *(*int32)(unsafe.Pointer(v2)) = *(*int32)(unsafe.Pointer(v2)) + 1 + tmp_ast_r = _tre_ast_new_literal(tls, mem, 0, 0, v1) + if tmp_ast_r == UintptrFromInt32(0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + tree = _tre_ast_new_catenation(tls, mem, tmp_ast_l, tmp_ast_r) + if tree == UintptrFromInt32(0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + errcode = _tre_compute_nfl(tls, mem, stack, tree) + if errcode != REG_OK { + errcode = errcode + if int32(1) != 0 { + goto error_exit + } + } + counts = Xmalloc(tls, uint64(4)*Uint64FromInt32((**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fposition)) + if counts == UintptrFromInt32(0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + offs = Xmalloc(tls, uint64(4)*Uint64FromInt32((**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fposition)) + if offs == UintptrFromInt32(0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + i = 0 + for { + if !(i < (**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fposition) { + break + } + **(**int32)(__ccgo_up(counts + uintptr(i)*4)) = 0 + goto _3 + _3: + ; + i = i + 1 + } + _tre_ast_to_tnfa(tls, tree, UintptrFromInt32(0), counts, UintptrFromInt32(0)) + add = 0 + i = 0 + for { + if !(i < (**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fposition) { + break + } + **(**int32)(__ccgo_up(offs + uintptr(i)*4)) = add + add = add + (**(**int32)(__ccgo_up(counts + uintptr(i)*4)) + int32(1)) + **(**int32)(__ccgo_up(counts + uintptr(i)*4)) = 0 + goto _4 + _4: + ; + i = i + 1 + } + transitions = Xcalloc(tls, uint64(Uint32FromInt32(add)+uint32(1)), uint64(56)) + if transitions == UintptrFromInt32(0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftransitions = transitions + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_transitions = Uint32FromInt32(add) + errcode = _tre_ast_to_tnfa(tls, tree, transitions, counts, offs) + if errcode != REG_OK { + errcode = errcode + if int32(1) != 0 { + goto error_exit + } + } + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ffirstpos_chars = UintptrFromInt32(0) + p = (*Ttre_ast_node_t)(unsafe.Pointer(tree)).Ffirstpos + i = 0 + for (*Ttre_pos_and_tags_t)(unsafe.Pointer(p)).Fposition >= 0 { + i = i + 1 + p += 56 + } + initial = Xcalloc(tls, uint64(Uint32FromInt32(i)+uint32(1)), uint64(56)) + if initial == UintptrFromInt32(0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Finitial = initial + i = 0 + p = (*Ttre_ast_node_t)(unsafe.Pointer(tree)).Ffirstpos + for { + if !((*Ttre_pos_and_tags_t)(unsafe.Pointer(p)).Fposition >= 0) { + break + } + (**(**Ttre_tnfa_transition_t)(__ccgo_up(initial + uintptr(i)*56))).Fstate = transitions + uintptr(**(**int32)(__ccgo_up(offs + uintptr((*Ttre_pos_and_tags_t)(unsafe.Pointer(p)).Fposition)*4)))*56 + (**(**Ttre_tnfa_transition_t)(__ccgo_up(initial + uintptr(i)*56))).Fstate_id = (*Ttre_pos_and_tags_t)(unsafe.Pointer(p)).Fposition + (**(**Ttre_tnfa_transition_t)(__ccgo_up(initial + uintptr(i)*56))).Ftags = UintptrFromInt32(0) + /* Copy the arrays p->tags, and p->params, they are allocated + from a tre_mem object. */ + if (*Ttre_pos_and_tags_t)(unsafe.Pointer(p)).Ftags != 0 { + j = 0 + for { + if !(**(**int32)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p)).Ftags + uintptr(j)*4)) >= 0) { + break + } + goto _6 + _6: + ; + j = j + 1 + } + (**(**Ttre_tnfa_transition_t)(__ccgo_up(initial + uintptr(i)*56))).Ftags = Xmalloc(tls, uint64(4)*Uint64FromInt32(j+Int32FromInt32(1))) + if !((**(**Ttre_tnfa_transition_t)(__ccgo_up(initial + uintptr(i)*56))).Ftags != 0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + Xmemcpy(tls, (**(**Ttre_tnfa_transition_t)(__ccgo_up(initial + uintptr(i)*56))).Ftags, (*Ttre_pos_and_tags_t)(unsafe.Pointer(p)).Ftags, uint64(4)*Uint64FromInt32(j+Int32FromInt32(1))) + } + (**(**Ttre_tnfa_transition_t)(__ccgo_up(initial + uintptr(i)*56))).Fassertions = (*Ttre_pos_and_tags_t)(unsafe.Pointer(p)).Fassertions + i = i + 1 + goto _5 + _5: + ; + p += 56 + } + (**(**Ttre_tnfa_transition_t)(__ccgo_up(initial + uintptr(i)*56))).Fstate = UintptrFromInt32(0) + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_transitions = Uint32FromInt32(add) + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ffinal = transitions + uintptr(**(**int32)(__ccgo_up(offs + uintptr((**(**Ttre_pos_and_tags_t)(__ccgo_up((*Ttre_ast_node_t)(unsafe.Pointer(tree)).Flastpos))).Fposition)*4)))*56 + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states = (**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fposition + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags = cflags + X__tre_mem_destroy(tls, mem) + _tre_stack_destroy(tls, stack) + Xfree(tls, counts) + Xfree(tls, offs) + (*Tregex_t)(unsafe.Pointer(preg)).F__opaque = tnfa + return REG_OK + goto error_exit +error_exit: + ; + /* Free everything that was allocated and return the error code. */ + X__tre_mem_destroy(tls, mem) + if stack != UintptrFromInt32(0) { + _tre_stack_destroy(tls, stack) + } + if counts != UintptrFromInt32(0) { + Xfree(tls, counts) + } + if offs != UintptrFromInt32(0) { + Xfree(tls, offs) + } + (*Tregex_t)(unsafe.Pointer(preg)).F__opaque = tnfa + Xregfree(tls, preg) + return errcode +} + +func Xregfree(tls *TLS, preg uintptr) { + if __ccgo_strace { + trc("tls=%v preg=%v, (%v:)", tls, preg, origin(2)) + } + var i uint32 + var tnfa, trans uintptr + _, _, _ = i, tnfa, trans + tnfa = (*Tregex_t)(unsafe.Pointer(preg)).F__opaque + if !(tnfa != 0) { + return + } + i = uint32(0) + for { + if !(i < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_transitions) { + break + } + if (**(**Ttre_tnfa_transition_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftransitions + uintptr(i)*56))).Fstate != 0 { + if (**(**Ttre_tnfa_transition_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftransitions + uintptr(i)*56))).Ftags != 0 { + Xfree(tls, (**(**Ttre_tnfa_transition_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftransitions + uintptr(i)*56))).Ftags) + } + if (**(**Ttre_tnfa_transition_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftransitions + uintptr(i)*56))).Fneg_classes != 0 { + Xfree(tls, (**(**Ttre_tnfa_transition_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftransitions + uintptr(i)*56))).Fneg_classes) + } + } + goto _1 + _1: + ; + i = i + 1 + } + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftransitions != 0 { + Xfree(tls, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftransitions) + } + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Finitial != 0 { + trans = (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Finitial + for { + if !((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fstate != 0) { + break + } + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags != 0 { + Xfree(tls, (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags) + } + goto _2 + _2: + ; + trans += 56 + } + Xfree(tls, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Finitial) + } + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fsubmatch_data != 0 { + i = uint32(0) + for { + if !(i < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_submatches) { + break + } + if (**(**Ttre_submatch_data_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fsubmatch_data + uintptr(i)*16))).Fparents != 0 { + Xfree(tls, (**(**Ttre_submatch_data_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fsubmatch_data + uintptr(i)*16))).Fparents) + } + goto _3 + _3: + ; + i = i + 1 + } + Xfree(tls, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fsubmatch_data) + } + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions != 0 { + Xfree(tls, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions) + } + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ffirstpos_chars != 0 { + Xfree(tls, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ffirstpos_chars) + } + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags != 0 { + Xfree(tls, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags) + } + Xfree(tls, tnfa) +} + +/* Error message strings for error codes listed in `regex.h'. This list + needs to be in sync with the codes listed there, naturally. */ + +/* Converted to single string by Rich Felker to remove the need for + * data relocations at runtime, 27 Feb 2006. */ + +var _messages = [286]int8{'N', 'o', ' ', 'e', 'r', 'r', 'o', 'r', 0, 'N', 'o', ' ', 'm', 'a', 't', 'c', 'h', 0, 'I', 'n', 'v', 'a', 'l', 'i', 'd', ' ', 'r', 'e', 'g', 'e', 'x', 'p', 0, 'U', 'n', 'k', 'n', 'o', 'w', 'n', ' ', 'c', 'o', 'l', 'l', 'a', 't', 'i', 'n', 'g', ' ', 'e', 'l', 'e', 'm', 'e', 'n', 't', 0, 'U', 'n', 'k', 'n', 'o', 'w', 'n', ' ', 'c', 'h', 'a', 'r', 'a', 'c', 't', 'e', 'r', ' ', 'c', 'l', 'a', 's', 's', ' ', 'n', 'a', 'm', 'e', 0, 'T', 'r', 'a', 'i', 'l', 'i', 'n', 'g', ' ', 'b', 'a', 'c', 'k', 's', 'l', 'a', 's', 'h', 0, 'I', 'n', 'v', 'a', 'l', 'i', 'd', ' ', 'b', 'a', 'c', 'k', ' ', 'r', 'e', 'f', 'e', 'r', 'e', 'n', 'c', 'e', 0, 'M', 'i', 's', 's', 'i', 'n', 'g', ' ', '\'', ']', '\'', 0, 'M', 'i', 's', 's', 'i', 'n', 'g', ' ', '\'', ')', '\'', 0, 'M', 'i', 's', 's', 'i', 'n', 'g', ' ', '\'', '}', '\'', 0, 'I', 'n', 'v', 'a', 'l', 'i', 'd', ' ', 'c', 'o', 'n', 't', 'e', 'n', 't', 's', ' ', 'o', 'f', ' ', '{', '}', 0, 'I', 'n', 'v', 'a', 'l', 'i', 'd', ' ', 'c', 'h', 'a', 'r', 'a', 'c', 't', 'e', 'r', ' ', 'r', 'a', 'n', 'g', 'e', 0, 'O', 'u', 't', ' ', 'o', 'f', ' ', 'm', 'e', 'm', 'o', 'r', 'y', 0, 'R', 'e', 'p', 'e', 't', 'i', 't', 'i', 'o', 'n', ' ', 'n', 'o', 't', ' ', 'p', 'r', 'e', 'c', 'e', 'd', 'e', 'd', ' ', 'b', 'y', ' ', 'v', 'a', 'l', 'i', 'd', ' ', 'e', 'x', 'p', 'r', 'e', 's', 's', 'i', 'o', 'n', 0, 0, 'U', 'n', 'k', 'n', 'o', 'w', 'n', ' ', 'e', 'r', 'r', 'o', 'r'} + +func Xregerror(tls *TLS, e int32, preg uintptr, buf uintptr, size Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v e=%v preg=%v buf=%v size=%v, (%v:)", tls, e, preg, buf, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var s uintptr + _ = s + s = uintptr(unsafe.Pointer(&_messages)) + for { + if !(e != 0 && **(**int8)(__ccgo_up(s)) != 0) { + break + } + goto _1 + _1: + ; + e = e - 1 + s = s + uintptr(_strlen(tls, s)+uint64(1)) + } + if !(**(**int8)(__ccgo_up(s)) != 0) { + s = s + 1 + } + s = X__lctrans_cur(tls, s) + return Uint64FromInt32(int32(1) + Xsnprintf(tls, buf, size, __ccgo_ts+15, VaList(bp+8, s))) +} + +const tre_bt_mem_alloc = 0 +const tre_bt_mem_destroy = 0 +const tre_bt_mem_new = 0 + +/*********************************************************************** + from tre-match-utils.h +***********************************************************************/ + +// C documentation +// +// /* Returns 1 if `t1' wins `t2', 0 otherwise. */ +func _tre_tag_order(tls *TLS, num_tags int32, tag_directions uintptr, t1 uintptr, t2 uintptr) (r int32) { + var i int32 + _ = i + i = 0 + for { + if !(i < num_tags) { + break + } + if **(**Ttre_tag_direction_t)(__ccgo_up(tag_directions + uintptr(i)*4)) == int32(_TRE_TAG_MINIMIZE) { + if **(**Tregoff_t)(__ccgo_up(t1 + uintptr(i)*8)) < **(**Tregoff_t)(__ccgo_up(t2 + uintptr(i)*8)) { + return int32(1) + } + if **(**Tregoff_t)(__ccgo_up(t1 + uintptr(i)*8)) > **(**Tregoff_t)(__ccgo_up(t2 + uintptr(i)*8)) { + return 0 + } + } else { + if **(**Tregoff_t)(__ccgo_up(t1 + uintptr(i)*8)) > **(**Tregoff_t)(__ccgo_up(t2 + uintptr(i)*8)) { + return int32(1) + } + if **(**Tregoff_t)(__ccgo_up(t1 + uintptr(i)*8)) < **(**Tregoff_t)(__ccgo_up(t2 + uintptr(i)*8)) { + return 0 + } + } + goto _1 + _1: + ; + i = i + 1 + } + /* assert(0);*/ + return 0 +} + +func _tre_neg_char_classes_match(tls *TLS, classes uintptr, wc Ttre_cint_t, icase int32) (r int32) { + for **(**Ttre_ctype_t)(__ccgo_up(classes)) != Uint64FromInt32(0) { + if !(icase != 0) && Xiswctype(tls, wc, **(**Ttre_ctype_t)(__ccgo_up(classes))) != 0 || icase != 0 && (Xiswctype(tls, Xtowupper(tls, wc), **(**Ttre_ctype_t)(__ccgo_up(classes))) != 0 || Xiswctype(tls, Xtowlower(tls, wc), **(**Ttre_ctype_t)(__ccgo_up(classes))) != 0) { + return int32(1) + } else { + classes += 8 + } + } + return 0 /* No match. */ +} + +/*********************************************************************** + from tre-match-parallel.c +***********************************************************************/ + +/* + This algorithm searches for matches basically by reading characters + in the searched string one by one, starting at the beginning. All + matching paths in the TNFA are traversed in parallel. When two or + more paths reach the same state, exactly one is chosen according to + tag ordering rules; if returning submatches is not required it does + not matter which path is chosen. + + The worst case time required for finding the leftmost and longest + match, or determining that there is no match, is always linearly + dependent on the length of the text being searched. + + This algorithm cannot handle TNFAs with back referencing nodes. + See `tre-match-backtrack.c'. +*/ + +type Ttre_tnfa_reach_t = struct { + Fstate uintptr + Ftags uintptr +} + +type Ttre_reach_pos_t = struct { + Fpos Tregoff_t + Ftags uintptr +} + +func _tre_tnfa_run_parallel(tls *TLS, tnfa uintptr, string1 uintptr, match_tags uintptr, eflags int32, match_end_ofs uintptr) (r Treg_errcode_t) { + bp := tls.Alloc(16) + defer tls.Free(16) + var buf, reach, reach_i, reach_next, reach_next_i, reach_pos, str_byte, tag_i, tmp_buf, tmp_iptr, tmp_tags, trans_i uintptr + var end, i, new_match, num_tags, reg_newline, reg_notbol, reg_noteol, skip, start, v18 int32 + var match_eo, pos, pos_add_next, v7 Tregoff_t + var pbytes, rbytes, tbytes, total_bytes, xbytes Tsize_t + var prev_c Ttre_char_t + var ret Treg_errcode_t + var v1 uint64 + var _ /* next_c at bp+0 */ Ttre_char_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = buf, end, i, match_eo, new_match, num_tags, pbytes, pos, pos_add_next, prev_c, rbytes, reach, reach_i, reach_next, reach_next_i, reach_pos, reg_newline, reg_notbol, reg_noteol, ret, skip, start, str_byte, tag_i, tbytes, tmp_buf, tmp_iptr, tmp_tags, total_bytes, trans_i, xbytes, v1, v18, v7 + /* State variables required by GET_NEXT_WCHAR. */ + prev_c = 0 + **(**Ttre_char_t)(__ccgo_up(bp)) = 0 + str_byte = string1 + pos = int64(-int32(1)) + pos_add_next = int64(1) + reg_notbol = eflags & int32(REG_NOTBOL) + reg_noteol = eflags & int32(REG_NOTEOL) + reg_newline = (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags & int32(REG_NEWLINE) + match_eo = int64(-int32(1)) /* end offset of match (-1 if no match found yet) */ + new_match = 0 + tmp_tags = UintptrFromInt32(0) + if !(match_tags != 0) { + num_tags = 0 + } else { + num_tags = (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags + } + /* Allocate memory for temporary data required for matching. This needs to + be done for every matching operation to be thread safe. This allocates + everything in a single large block with calloc(). */ + /* Ensure that tbytes and xbytes*num_states cannot overflow, and that + * they don't contribute more than 1/8 of SIZE_MAX to total_bytes. */ + if Uint64FromInt32(num_tags) > uint64(0xffffffffffffffff)/(Uint64FromInt32(8)*Uint64FromInt64(8)*Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states)) { + return int32(REG_ESPACE) + } + /* Likewise check rbytes. */ + if Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states+int32(1)) > Uint64FromUint64(0xffffffffffffffff)/(Uint64FromInt32(8)*Uint64FromInt64(16)) { + return int32(REG_ESPACE) + } + /* Likewise check pbytes. */ + if Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states) > Uint64FromUint64(0xffffffffffffffff)/(Uint64FromInt32(8)*Uint64FromInt64(16)) { + return int32(REG_ESPACE) + } + /* Compute the length of the block we need. */ + tbytes = uint64(8) * Uint64FromInt32(num_tags) + rbytes = uint64(16) * Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states+Int32FromInt32(1)) + pbytes = uint64(16) * Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states) + xbytes = uint64(8) * Uint64FromInt32(num_tags) + total_bytes = (Uint64FromInt64(8)-Uint64FromInt32(1))*Uint64FromInt32(4) + (rbytes+xbytes*Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states))*uint64(2) + tbytes + pbytes + /* Allocate the memory. */ + buf = Xcalloc(tls, total_bytes, uint64(1)) + if buf == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + /* Get the various pointers within tmp_buf (properly aligned). */ + tmp_tags = buf + tmp_buf = buf + uintptr(tbytes) + if Uint64FromInt64(int64(tmp_buf))%uint64(8) != 0 { + v1 = uint64(8) - Uint64FromInt64(int64(tmp_buf))%uint64(8) + } else { + v1 = uint64(0) + } + tmp_buf = tmp_buf + uintptr(v1) + reach_next = tmp_buf + tmp_buf = tmp_buf + uintptr(rbytes) + if Uint64FromInt64(int64(tmp_buf))%uint64(8) != 0 { + v1 = uint64(8) - Uint64FromInt64(int64(tmp_buf))%uint64(8) + } else { + v1 = uint64(0) + } + tmp_buf = tmp_buf + uintptr(v1) + reach = tmp_buf + tmp_buf = tmp_buf + uintptr(rbytes) + if Uint64FromInt64(int64(tmp_buf))%uint64(8) != 0 { + v1 = uint64(8) - Uint64FromInt64(int64(tmp_buf))%uint64(8) + } else { + v1 = uint64(0) + } + tmp_buf = tmp_buf + uintptr(v1) + reach_pos = tmp_buf + tmp_buf = tmp_buf + uintptr(pbytes) + if Uint64FromInt64(int64(tmp_buf))%uint64(8) != 0 { + v1 = uint64(8) - Uint64FromInt64(int64(tmp_buf))%uint64(8) + } else { + v1 = uint64(0) + } + tmp_buf = tmp_buf + uintptr(v1) + i = 0 + for { + if !(i < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states) { + break + } + (**(**Ttre_tnfa_reach_t)(__ccgo_up(reach + uintptr(i)*16))).Ftags = tmp_buf + tmp_buf = tmp_buf + uintptr(xbytes) + (**(**Ttre_tnfa_reach_t)(__ccgo_up(reach_next + uintptr(i)*16))).Ftags = tmp_buf + tmp_buf = tmp_buf + uintptr(xbytes) + goto _5 + _5: + ; + i = i + 1 + } + i = 0 + for { + if !(i < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states) { + break + } + (**(**Ttre_reach_pos_t)(__ccgo_up(reach_pos + uintptr(i)*16))).Fpos = int64(-int32(1)) + goto _6 + _6: + ; + i = i + 1 + } + prev_c = **(**Ttre_char_t)(__ccgo_up(bp)) + pos = pos + pos_add_next + v7 = int64(Xmbtowc(tls, bp, str_byte, uint64(MB_LEN_MAX))) + pos_add_next = v7 + if v7 <= 0 { + if pos_add_next < 0 { + ret = int32(REG_NOMATCH) + goto error_exit + } else { + pos_add_next = pos_add_next + 1 + } + } + str_byte = str_byte + uintptr(pos_add_next) + pos = 0 + reach_next_i = reach_next + for int32(1) != 0 { + /* If no match found yet, add the initial states to `reach_next'. */ + if match_eo < 0 { + trans_i = (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Finitial + for (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate != UintptrFromInt32(0) { + if (**(**Ttre_reach_pos_t)(__ccgo_up(reach_pos + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*16))).Fpos < pos { + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions != 0 && ((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_BOL) != 0 && (pos > 0 || reg_notbol != 0) && (prev_c != int32('\n') || !(reg_newline != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_EOL) != 0 && (**(**Ttre_char_t)(__ccgo_up(bp)) != int32('\000') || reg_noteol != 0) && (**(**Ttre_char_t)(__ccgo_up(bp)) != int32('\n') || !(reg_newline != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_BOW) != 0 && (prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0 || !(**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_EOW) != 0 && (!(prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0) || (**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_WB) != 0 && (pos != 0 && **(**Ttre_char_t)(__ccgo_up(bp)) != int32('\000') && BoolInt32(prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0) == BoolInt32(**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_WB_NEG) != 0 && (pos == 0 || **(**Ttre_char_t)(__ccgo_up(bp)) == int32('\000') || BoolInt32(prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0) != BoolInt32(**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0))) { + trans_i += 56 + continue + } + (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Fstate = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate + i = 0 + for { + if !(i < num_tags) { + break + } + **(**Tregoff_t)(__ccgo_up((*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Ftags + uintptr(i)*8)) = int64(-int32(1)) + goto _8 + _8: + ; + i = i + 1 + } + tag_i = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Ftags + if tag_i != 0 { + for **(**int32)(__ccgo_up(tag_i)) >= 0 { + if **(**int32)(__ccgo_up(tag_i)) < num_tags { + **(**Tregoff_t)(__ccgo_up((*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Ftags + uintptr(**(**int32)(__ccgo_up(tag_i)))*8)) = pos + } + tag_i += 4 + } + } + if (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Fstate == (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ffinal { + match_eo = pos + new_match = int32(1) + i = 0 + for { + if !(i < num_tags) { + break + } + **(**Tregoff_t)(__ccgo_up(match_tags + uintptr(i)*8)) = **(**Tregoff_t)(__ccgo_up((*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Ftags + uintptr(i)*8)) + goto _9 + _9: + ; + i = i + 1 + } + } + (**(**Ttre_reach_pos_t)(__ccgo_up(reach_pos + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*16))).Fpos = pos + (**(**Ttre_reach_pos_t)(__ccgo_up(reach_pos + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*16))).Ftags = reach_next_i + 8 + reach_next_i += 16 + } + trans_i += 56 + } + (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Fstate = UintptrFromInt32(0) + } else { + if num_tags == 0 || reach_next_i == reach_next { + /* We have found a match. */ + break + } + } + /* Check for end of string. */ + if !(**(**Ttre_char_t)(__ccgo_up(bp)) != 0) { + break + } + prev_c = **(**Ttre_char_t)(__ccgo_up(bp)) + pos = pos + pos_add_next + v7 = int64(Xmbtowc(tls, bp, str_byte, uint64(MB_LEN_MAX))) + pos_add_next = v7 + if v7 <= 0 { + if pos_add_next < 0 { + ret = int32(REG_NOMATCH) + goto error_exit + } else { + pos_add_next = pos_add_next + 1 + } + } + str_byte = str_byte + uintptr(pos_add_next) + /* Swap `reach' and `reach_next'. */ + reach_i = reach + reach = reach_next + reach_next = reach_i + /* For each state in `reach', weed out states that don't fulfill the + minimal matching conditions. */ + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_minimals != 0 && new_match != 0 { + new_match = 0 + reach_next_i = reach_next + reach_i = reach + for { + if !((*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_i)).Fstate != 0) { + break + } + skip = 0 + i = 0 + for { + if !(**(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i)*4)) >= 0) { + break + } + end = **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i)*4)) + start = **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i+int32(1))*4)) + if end >= num_tags { + skip = int32(1) + break + } else { + if **(**Tregoff_t)(__ccgo_up((*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_i)).Ftags + uintptr(start)*8)) == **(**Tregoff_t)(__ccgo_up(match_tags + uintptr(start)*8)) && **(**Tregoff_t)(__ccgo_up((*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_i)).Ftags + uintptr(end)*8)) < **(**Tregoff_t)(__ccgo_up(match_tags + uintptr(end)*8)) { + skip = int32(1) + break + } + } + goto _12 + _12: + ; + i = i + int32(2) + } + if !(skip != 0) { + (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Fstate = (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_i)).Fstate + tmp_iptr = (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Ftags + (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Ftags = (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_i)).Ftags + (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_i)).Ftags = tmp_iptr + reach_next_i += 16 + } + goto _11 + _11: + ; + reach_i += 16 + } + (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Fstate = UintptrFromInt32(0) + /* Swap `reach' and `reach_next'. */ + reach_i = reach + reach = reach_next + reach_next = reach_i + } + /* For each state in `reach' see if there is a transition leaving with + the current input symbol to a state not yet in `reach_next', and + add the destination states to `reach_next'. */ + reach_next_i = reach_next + reach_i = reach + for { + if !((*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_i)).Fstate != 0) { + break + } + trans_i = (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_i)).Fstate + for { + if !((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate != 0) { + break + } + /* Does this transition match the input symbol? */ + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fcode_min <= Uint32FromInt32(prev_c) && (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fcode_max >= Uint32FromInt32(prev_c) { + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions != 0 && ((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_BOL) != 0 && (pos > 0 || reg_notbol != 0) && (prev_c != int32('\n') || !(reg_newline != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_EOL) != 0 && (**(**Ttre_char_t)(__ccgo_up(bp)) != int32('\000') || reg_noteol != 0) && (**(**Ttre_char_t)(__ccgo_up(bp)) != int32('\n') || !(reg_newline != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_BOW) != 0 && (prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0 || !(**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_EOW) != 0 && (!(prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0) || (**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_WB) != 0 && (pos != 0 && **(**Ttre_char_t)(__ccgo_up(bp)) != int32('\000') && BoolInt32(prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0) == BoolInt32(**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_WB_NEG) != 0 && (pos == 0 || **(**Ttre_char_t)(__ccgo_up(bp)) == int32('\000') || BoolInt32(prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0) != BoolInt32(**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || ((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_CHAR_CLASS) != 0 && !((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags&Int32FromInt32(REG_ICASE) != 0) && !(Xiswctype(tls, Uint32FromInt32(prev_c), *(*Ttre_ctype_t)(unsafe.Pointer(trans_i + 40))) != 0) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_CHAR_CLASS) != 0 && (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags&int32(REG_ICASE) != 0 && !(Xiswctype(tls, Xtowlower(tls, Uint32FromInt32(prev_c)), *(*Ttre_ctype_t)(unsafe.Pointer(trans_i + 40))) != 0) && !(Xiswctype(tls, Xtowupper(tls, Uint32FromInt32(prev_c)), *(*Ttre_ctype_t)(unsafe.Pointer(trans_i + 40))) != 0) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_CHAR_CLASS_NEG) != 0 && _tre_neg_char_classes_match(tls, (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fneg_classes, Uint32FromInt32(prev_c), (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags&int32(REG_ICASE)) != 0)) { + goto _14 + } + /* Compute the tags after this transition. */ + i = 0 + for { + if !(i < num_tags) { + break + } + **(**Tregoff_t)(__ccgo_up(tmp_tags + uintptr(i)*8)) = **(**Tregoff_t)(__ccgo_up((*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_i)).Ftags + uintptr(i)*8)) + goto _15 + _15: + ; + i = i + 1 + } + tag_i = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Ftags + if tag_i != UintptrFromInt32(0) { + for **(**int32)(__ccgo_up(tag_i)) >= 0 { + if **(**int32)(__ccgo_up(tag_i)) < num_tags { + **(**Tregoff_t)(__ccgo_up(tmp_tags + uintptr(**(**int32)(__ccgo_up(tag_i)))*8)) = pos + } + tag_i += 4 + } + } + if (**(**Ttre_reach_pos_t)(__ccgo_up(reach_pos + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*16))).Fpos < pos { + /* Found an unvisited node. */ + (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Fstate = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate + tmp_iptr = (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Ftags + (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Ftags = tmp_tags + tmp_tags = tmp_iptr + (**(**Ttre_reach_pos_t)(__ccgo_up(reach_pos + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*16))).Fpos = pos + (**(**Ttre_reach_pos_t)(__ccgo_up(reach_pos + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*16))).Ftags = reach_next_i + 8 + if (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Fstate == (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ffinal && (match_eo == int64(-int32(1)) || num_tags > 0 && **(**Tregoff_t)(__ccgo_up((*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Ftags)) <= **(**Tregoff_t)(__ccgo_up(match_tags))) { + match_eo = pos + new_match = int32(1) + i = 0 + for { + if !(i < num_tags) { + break + } + **(**Tregoff_t)(__ccgo_up(match_tags + uintptr(i)*8)) = **(**Tregoff_t)(__ccgo_up((*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Ftags + uintptr(i)*8)) + goto _16 + _16: + ; + i = i + 1 + } + } + reach_next_i += 16 + } else { + /* Another path has also reached this state. We choose + the winner by examining the tag values for both + paths. */ + if _tre_tag_order(tls, num_tags, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions, tmp_tags, **(**uintptr)(__ccgo_up((**(**Ttre_reach_pos_t)(__ccgo_up(reach_pos + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*16))).Ftags))) != 0 { + /* The new path wins. */ + tmp_iptr = **(**uintptr)(__ccgo_up((**(**Ttre_reach_pos_t)(__ccgo_up(reach_pos + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*16))).Ftags)) + **(**uintptr)(__ccgo_up((**(**Ttre_reach_pos_t)(__ccgo_up(reach_pos + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*16))).Ftags)) = tmp_tags + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate == (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ffinal { + match_eo = pos + new_match = int32(1) + i = 0 + for { + if !(i < num_tags) { + break + } + **(**Tregoff_t)(__ccgo_up(match_tags + uintptr(i)*8)) = **(**Tregoff_t)(__ccgo_up(tmp_tags + uintptr(i)*8)) + goto _17 + _17: + ; + i = i + 1 + } + } + tmp_tags = tmp_iptr + } + } + } + goto _14 + _14: + ; + trans_i += 56 + } + goto _13 + _13: + ; + reach_i += 16 + } + (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Fstate = UintptrFromInt32(0) + } + **(**Tregoff_t)(__ccgo_up(match_end_ofs)) = match_eo + if match_eo >= 0 { + v18 = REG_OK + } else { + v18 = int32(REG_NOMATCH) + } + ret = v18 + goto error_exit +error_exit: + ; + Xfree(tls, buf) + return ret +} + +/*********************************************************************** + from tre-match-backtrack.c +***********************************************************************/ + +/* + This matcher is for regexps that use back referencing. Regexp matching + with back referencing is an NP-complete problem on the number of back + references. The easiest way to match them is to use a backtracking + routine which basically goes through all possible paths in the TNFA + and chooses the one which results in the best (leftmost and longest) + match. This can be spectacularly expensive and may run out of stack + space, but there really is no better known generic algorithm. Quoting + Henry Spencer from comp.compilers: + + + POSIX.2 REs require longest match, which is really exciting to + implement since the obsolete ("basic") variant also includes + \. I haven't found a better way of tackling this than doing + a preliminary match using a DFA (or simulation) on a modified RE + that just replicates subREs for \, and then doing a + backtracking match to determine whether the subRE matches were + right. This can be rather slow, but I console myself with the + thought that people who use \ deserve very slow execution. + (Pun unintentional but very appropriate.) + +*/ + +type Ttre_backtrack_item_t = struct { + Fpos Tregoff_t + Fstr_byte uintptr + Fstate uintptr + Fstate_id int32 + Fnext_c int32 + Ftags uintptr +} + +type Ttre_backtrack_t = uintptr + +type Ttre_backtrack_struct = struct { + Fitem Ttre_backtrack_item_t + Fprev uintptr + Fnext uintptr +} + +func _tre_tnfa_run_backtrack(tls *TLS, tnfa uintptr, string1 uintptr, match_tags uintptr, eflags int32, match_end_ofs uintptr) (r Treg_errcode_t) { + bp := tls.Alloc(16) + defer tls.Free(16) + var bt, empty_br_match, i, i1, i2, i3, i4, next_c_start, reg_newline, reg_notbol, reg_noteol, result, ret, v20 int32 + var bt_len, eo, match_eo, pos, pos_add_next, pos_start, so, v3 Tregoff_t + var mem Ttre_mem_t + var next_state, next_tags, pmatch, state, states_seen, str_byte, str_byte_start, tags, tmp, tmp1, trans_i, v6 uintptr + var prev_c Ttre_char_t + var s, s1, stack Ttre_backtrack_t + var _ /* next_c at bp+0 */ Ttre_char_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = bt, bt_len, empty_br_match, eo, i, i1, i2, i3, i4, match_eo, mem, next_c_start, next_state, next_tags, pmatch, pos, pos_add_next, pos_start, prev_c, reg_newline, reg_notbol, reg_noteol, result, ret, s, s1, so, stack, state, states_seen, str_byte, str_byte_start, tags, tmp, tmp1, trans_i, v20, v3, v6 + /* State variables required by GET_NEXT_WCHAR. */ + prev_c = 0 + **(**Ttre_char_t)(__ccgo_up(bp)) = 0 + str_byte = string1 + pos = 0 + pos_add_next = int64(1) + reg_notbol = eflags & int32(REG_NOTBOL) + reg_noteol = eflags & int32(REG_NOTEOL) + reg_newline = (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags & int32(REG_NEWLINE) + pos_start = int64(-int32(1)) + /* End offset of best match so far, or -1 if no match found yet. */ + match_eo = int64(-int32(1)) + tags = UintptrFromInt32(0) + states_seen = UintptrFromInt32(0) + /* Memory allocator to for allocating the backtracking stack. */ + mem = X__tre_mem_new_impl(tls, 0, UintptrFromInt32(0)) + pmatch = UintptrFromInt32(0) + if !(mem != 0) { + return int32(REG_ESPACE) + } + stack = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint64(56)) + if !(stack != 0) { + ret = int32(REG_ESPACE) + goto error_exit + } + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fprev = UintptrFromInt32(0) + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fnext = UintptrFromInt32(0) + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags != 0 { + tags = Xmalloc(tls, uint64(8)*Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags)) + if !(tags != 0) { + ret = int32(REG_ESPACE) + goto error_exit + } + } + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_submatches != 0 { + pmatch = Xmalloc(tls, uint64(16)*uint64((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_submatches)) + if !(pmatch != 0) { + ret = int32(REG_ESPACE) + goto error_exit + } + } + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states != 0 { + states_seen = Xmalloc(tls, uint64(4)*Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states)) + if !(states_seen != 0) { + ret = int32(REG_ESPACE) + goto error_exit + } + } + goto retry +retry: + ; + i = 0 + for { + if !(i < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags) { + break + } + **(**Tregoff_t)(__ccgo_up(tags + uintptr(i)*8)) = int64(-int32(1)) + if match_tags != 0 { + **(**Tregoff_t)(__ccgo_up(match_tags + uintptr(i)*8)) = int64(-int32(1)) + } + goto _1 + _1: + ; + i = i + 1 + } + i = 0 + for { + if !(i < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states) { + break + } + **(**int32)(__ccgo_up(states_seen + uintptr(i)*4)) = 0 + goto _2 + _2: + ; + i = i + 1 + } + state = UintptrFromInt32(0) + pos = pos_start + prev_c = **(**Ttre_char_t)(__ccgo_up(bp)) + pos = pos + pos_add_next + v3 = int64(Xmbtowc(tls, bp, str_byte, uint64(MB_LEN_MAX))) + pos_add_next = v3 + if v3 <= 0 { + if pos_add_next < 0 { + ret = int32(REG_NOMATCH) + goto error_exit + } else { + pos_add_next = pos_add_next + 1 + } + } + str_byte = str_byte + uintptr(pos_add_next) + pos_start = pos + next_c_start = **(**Ttre_char_t)(__ccgo_up(bp)) + str_byte_start = str_byte + /* Handle initial states. */ + next_tags = UintptrFromInt32(0) + trans_i = (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Finitial + for { + if !((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate != 0) { + break + } + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions != 0 && ((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_BOL) != 0 && (pos > 0 || reg_notbol != 0) && (prev_c != int32('\n') || !(reg_newline != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_EOL) != 0 && (**(**Ttre_char_t)(__ccgo_up(bp)) != int32('\000') || reg_noteol != 0) && (**(**Ttre_char_t)(__ccgo_up(bp)) != int32('\n') || !(reg_newline != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_BOW) != 0 && (prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0 || !(**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_EOW) != 0 && (!(prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0) || (**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_WB) != 0 && (pos != 0 && **(**Ttre_char_t)(__ccgo_up(bp)) != int32('\000') && BoolInt32(prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0) == BoolInt32(**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_WB_NEG) != 0 && (pos == 0 || **(**Ttre_char_t)(__ccgo_up(bp)) == int32('\000') || BoolInt32(prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0) != BoolInt32(**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0))) { + goto _4 + } + if state == UintptrFromInt32(0) { + /* Start from this state. */ + state = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate + next_tags = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Ftags + } else { + /* Backtrack to this state. */ + if !((*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fnext != 0) { + s = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint64(56)) + if !(s != 0) { + X__tre_mem_destroy(tls, mem) + if tags != 0 { + Xfree(tls, tags) + } + if pmatch != 0 { + Xfree(tls, pmatch) + } + if states_seen != 0 { + Xfree(tls, states_seen) + } + return int32(REG_ESPACE) + } + (*Ttre_backtrack_struct)(unsafe.Pointer(s)).Fprev = stack + (*Ttre_backtrack_struct)(unsafe.Pointer(s)).Fnext = UintptrFromInt32(0) + (*Ttre_backtrack_struct)(unsafe.Pointer(s)).Fitem.Ftags = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint64(8)*Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags)) + if !((*Ttre_backtrack_struct)(unsafe.Pointer(s)).Fitem.Ftags != 0) { + X__tre_mem_destroy(tls, mem) + if tags != 0 { + Xfree(tls, tags) + } + if pmatch != 0 { + Xfree(tls, pmatch) + } + if states_seen != 0 { + Xfree(tls, states_seen) + } + return int32(REG_ESPACE) + } + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fnext = s + stack = s + } else { + stack = (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fnext + } + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fpos = pos + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstr_byte = str_byte + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstate = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstate_id = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fnext_c = **(**Ttre_char_t)(__ccgo_up(bp)) + i1 = 0 + for { + if !(i1 < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags) { + break + } + **(**Tregoff_t)(__ccgo_up((*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Ftags + uintptr(i1)*8)) = **(**Tregoff_t)(__ccgo_up(tags + uintptr(i1)*8)) + goto _5 + _5: + ; + i1 = i1 + 1 + } + tmp = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Ftags + if tmp != 0 { + for **(**int32)(__ccgo_up(tmp)) >= 0 { + v6 = tmp + tmp += 4 + **(**Tregoff_t)(__ccgo_up((*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Ftags + uintptr(**(**int32)(__ccgo_up(v6)))*8)) = pos + } + } + } + goto _4 + _4: + ; + trans_i += 56 + } + if next_tags != 0 { + for { + if !(**(**int32)(__ccgo_up(next_tags)) >= 0) { + break + } + **(**Tregoff_t)(__ccgo_up(tags + uintptr(**(**int32)(__ccgo_up(next_tags)))*8)) = pos + goto _7 + _7: + ; + next_tags += 4 + } + } + if state == UintptrFromInt32(0) { + goto backtrack + } +_9: + ; + if !(int32(1) != 0) { + goto _8 + } + if state == (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ffinal { + if match_eo < pos || match_eo == pos && match_tags != 0 && _tre_tag_order(tls, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions, tags, match_tags) != 0 { + /* This match wins the previous match. */ + match_eo = pos + if match_tags != 0 { + i2 = 0 + for { + if !(i2 < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags) { + break + } + **(**Tregoff_t)(__ccgo_up(match_tags + uintptr(i2)*8)) = **(**Tregoff_t)(__ccgo_up(tags + uintptr(i2)*8)) + goto _10 + _10: + ; + i2 = i2 + 1 + } + } + } + /* Our TNFAs never have transitions leaving from the final state, + so we jump right to backtracking. */ + goto backtrack + } + /* Go to the next character in the input string. */ + empty_br_match = 0 + trans_i = state + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate != 0 && (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_BACKREF) != 0 { + bt = *(*int32)(unsafe.Pointer(&(*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fu)) + /* Get the substring we need to match against. Remember to + turn off REG_NOSUB temporarily. */ + _tre_fill_pmatch(tls, Uint64FromInt32(bt+int32(1)), pmatch, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags & ^Int32FromInt32(REG_NOSUB), tnfa, tags, pos) + so = (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(bt)*16))).Frm_so + eo = (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(bt)*16))).Frm_eo + bt_len = eo - so + result = Xstrncmp(tls, string1+uintptr(so), str_byte-uintptr(1), Uint64FromInt64(bt_len)) + if result == 0 { + /* Back reference matched. Check for infinite loop. */ + if bt_len == 0 { + empty_br_match = int32(1) + } + if empty_br_match != 0 && **(**int32)(__ccgo_up(states_seen + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*4)) != 0 { + goto backtrack + } + **(**int32)(__ccgo_up(states_seen + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*4)) = empty_br_match + /* Advance in input string and resync `prev_c', `next_c' + and pos. */ + str_byte = str_byte + uintptr(bt_len-int64(1)) + pos = pos + (bt_len - int64(1)) + prev_c = **(**Ttre_char_t)(__ccgo_up(bp)) + pos = pos + pos_add_next + v3 = int64(Xmbtowc(tls, bp, str_byte, uint64(MB_LEN_MAX))) + pos_add_next = v3 + if v3 <= 0 { + if pos_add_next < 0 { + ret = int32(REG_NOMATCH) + goto error_exit + } else { + pos_add_next = pos_add_next + 1 + } + } + str_byte = str_byte + uintptr(pos_add_next) + } else { + goto backtrack + } + } else { + /* Check for end of string. */ + if **(**Ttre_char_t)(__ccgo_up(bp)) == int32('\000') { + goto backtrack + } + /* Read the next character. */ + prev_c = **(**Ttre_char_t)(__ccgo_up(bp)) + pos = pos + pos_add_next + v3 = int64(Xmbtowc(tls, bp, str_byte, uint64(MB_LEN_MAX))) + pos_add_next = v3 + if v3 <= 0 { + if pos_add_next < 0 { + ret = int32(REG_NOMATCH) + goto error_exit + } else { + pos_add_next = pos_add_next + 1 + } + } + str_byte = str_byte + uintptr(pos_add_next) + } + next_state = UintptrFromInt32(0) + trans_i = state + for { + if !((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate != 0) { + break + } + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fcode_min <= Uint32FromInt32(prev_c) && (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fcode_max >= Uint32FromInt32(prev_c) { + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions != 0 && ((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_BOL) != 0 && (pos > 0 || reg_notbol != 0) && (prev_c != int32('\n') || !(reg_newline != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_EOL) != 0 && (**(**Ttre_char_t)(__ccgo_up(bp)) != int32('\000') || reg_noteol != 0) && (**(**Ttre_char_t)(__ccgo_up(bp)) != int32('\n') || !(reg_newline != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_BOW) != 0 && (prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0 || !(**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_EOW) != 0 && (!(prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0) || (**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_WB) != 0 && (pos != 0 && **(**Ttre_char_t)(__ccgo_up(bp)) != int32('\000') && BoolInt32(prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0) == BoolInt32(**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_WB_NEG) != 0 && (pos == 0 || **(**Ttre_char_t)(__ccgo_up(bp)) == int32('\000') || BoolInt32(prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0) != BoolInt32(**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || ((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_CHAR_CLASS) != 0 && !((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags&Int32FromInt32(REG_ICASE) != 0) && !(Xiswctype(tls, Uint32FromInt32(prev_c), *(*Ttre_ctype_t)(unsafe.Pointer(trans_i + 40))) != 0) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_CHAR_CLASS) != 0 && (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags&int32(REG_ICASE) != 0 && !(Xiswctype(tls, Xtowlower(tls, Uint32FromInt32(prev_c)), *(*Ttre_ctype_t)(unsafe.Pointer(trans_i + 40))) != 0) && !(Xiswctype(tls, Xtowupper(tls, Uint32FromInt32(prev_c)), *(*Ttre_ctype_t)(unsafe.Pointer(trans_i + 40))) != 0) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_CHAR_CLASS_NEG) != 0 && _tre_neg_char_classes_match(tls, (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fneg_classes, Uint32FromInt32(prev_c), (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags&int32(REG_ICASE)) != 0)) { + goto _13 + } + if next_state == UintptrFromInt32(0) { + /* First matching transition. */ + next_state = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate + next_tags = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Ftags + } else { + /* Second matching transition. We may need to backtrack here + to take this transition instead of the first one, so we + push this transition in the backtracking stack so we can + jump back here if needed. */ + if !((*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fnext != 0) { + s1 = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint64(56)) + if !(s1 != 0) { + X__tre_mem_destroy(tls, mem) + if tags != 0 { + Xfree(tls, tags) + } + if pmatch != 0 { + Xfree(tls, pmatch) + } + if states_seen != 0 { + Xfree(tls, states_seen) + } + return int32(REG_ESPACE) + } + (*Ttre_backtrack_struct)(unsafe.Pointer(s1)).Fprev = stack + (*Ttre_backtrack_struct)(unsafe.Pointer(s1)).Fnext = UintptrFromInt32(0) + (*Ttre_backtrack_struct)(unsafe.Pointer(s1)).Fitem.Ftags = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint64(8)*Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags)) + if !((*Ttre_backtrack_struct)(unsafe.Pointer(s1)).Fitem.Ftags != 0) { + X__tre_mem_destroy(tls, mem) + if tags != 0 { + Xfree(tls, tags) + } + if pmatch != 0 { + Xfree(tls, pmatch) + } + if states_seen != 0 { + Xfree(tls, states_seen) + } + return int32(REG_ESPACE) + } + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fnext = s1 + stack = s1 + } else { + stack = (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fnext + } + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fpos = pos + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstr_byte = str_byte + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstate = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstate_id = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fnext_c = **(**Ttre_char_t)(__ccgo_up(bp)) + i3 = 0 + for { + if !(i3 < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags) { + break + } + **(**Tregoff_t)(__ccgo_up((*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Ftags + uintptr(i3)*8)) = **(**Tregoff_t)(__ccgo_up(tags + uintptr(i3)*8)) + goto _14 + _14: + ; + i3 = i3 + 1 + } + tmp1 = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Ftags + for { + if !(tmp1 != 0 && **(**int32)(__ccgo_up(tmp1)) >= 0) { + break + } + **(**Tregoff_t)(__ccgo_up((*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Ftags + uintptr(**(**int32)(__ccgo_up(tmp1)))*8)) = pos + goto _15 + _15: + ; + tmp1 += 4 + } + } + } + goto _13 + _13: + ; + trans_i += 56 + } + if !(next_state != UintptrFromInt32(0)) { + goto _16 + } + /* Matching transitions were found. Take the first one. */ + state = next_state + /* Update the tag values. */ + if next_tags != 0 { + for **(**int32)(__ccgo_up(next_tags)) >= 0 { + v6 = next_tags + next_tags += 4 + **(**Tregoff_t)(__ccgo_up(tags + uintptr(**(**int32)(__ccgo_up(v6)))*8)) = pos + } + } + goto _17 +_16: + ; + goto backtrack +backtrack: + ; + /* A matching transition was not found. Try to backtrack. */ + if (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fprev != 0 { + if (*Ttre_tnfa_transition_t)(unsafe.Pointer((*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstate)).Fassertions&int32(ASSERT_BACKREF) != 0 { + **(**int32)(__ccgo_up(states_seen + uintptr((*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstate_id)*4)) = 0 + } + pos = (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fpos + str_byte = (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstr_byte + state = (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstate + **(**Ttre_char_t)(__ccgo_up(bp)) = (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fnext_c + i4 = 0 + for { + if !(i4 < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags) { + break + } + **(**Tregoff_t)(__ccgo_up(tags + uintptr(i4)*8)) = **(**Tregoff_t)(__ccgo_up((*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Ftags + uintptr(i4)*8)) + goto _19 + _19: + ; + i4 = i4 + 1 + } + stack = (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fprev + } else { + if match_eo < 0 { + /* Try starting from a later position in the input string. */ + /* Check for end of string. */ + if **(**Ttre_char_t)(__ccgo_up(bp)) == int32('\000') { + goto _8 + } + **(**Ttre_char_t)(__ccgo_up(bp)) = next_c_start + str_byte = str_byte_start + goto retry + } else { + goto _8 + } + } +_17: + ; + goto _9 +_8: + ; + if match_eo >= 0 { + v20 = REG_OK + } else { + v20 = int32(REG_NOMATCH) + } + ret = v20 + **(**Tregoff_t)(__ccgo_up(match_end_ofs)) = match_eo + goto error_exit +error_exit: + ; + X__tre_mem_destroy(tls, mem) + if tags != 0 { + Xfree(tls, tags) + } + if pmatch != 0 { + Xfree(tls, pmatch) + } + if states_seen != 0 { + Xfree(tls, states_seen) + } + return ret +} + +/*********************************************************************** + from regexec.c +***********************************************************************/ + +// C documentation +// +// /* Fills the POSIX.2 regmatch_t array according to the TNFA tag and match +// endpoint values. */ +func _tre_fill_pmatch(tls *TLS, nmatch Tsize_t, pmatch uintptr, cflags int32, tnfa uintptr, tags uintptr, match_eo Tregoff_t) { + var i, j uint32 + var parents, submatch_data uintptr + var v1 Tregoff_t + _, _, _, _, _ = i, j, parents, submatch_data, v1 + i = uint32(0) + if match_eo >= 0 && !(cflags&Int32FromInt32(REG_NOSUB) != 0) { + /* Construct submatch offsets from the tags. */ + submatch_data = (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fsubmatch_data + for i < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_submatches && uint64(i) < nmatch { + if (**(**Ttre_submatch_data_t)(__ccgo_up(submatch_data + uintptr(i)*16))).Fso_tag == (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fend_tag { + (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_so = match_eo + } else { + (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_so = **(**Tregoff_t)(__ccgo_up(tags + uintptr((**(**Ttre_submatch_data_t)(__ccgo_up(submatch_data + uintptr(i)*16))).Fso_tag)*8)) + } + if (**(**Ttre_submatch_data_t)(__ccgo_up(submatch_data + uintptr(i)*16))).Feo_tag == (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fend_tag { + (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_eo = match_eo + } else { + (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_eo = **(**Tregoff_t)(__ccgo_up(tags + uintptr((**(**Ttre_submatch_data_t)(__ccgo_up(submatch_data + uintptr(i)*16))).Feo_tag)*8)) + } + /* If either of the endpoints were not used, this submatch + was not part of the match. */ + if (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_so == int64(-int32(1)) || (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_eo == int64(-int32(1)) { + v1 = int64(-Int32FromInt32(1)) + (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_eo = v1 + (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_so = v1 + } + i = i + 1 + } + /* Reset all submatches that are not within all of their parent + submatches. */ + i = uint32(0) + for i < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_submatches && uint64(i) < nmatch { + if (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_eo == int64(-int32(1)) { + } + parents = (**(**Ttre_submatch_data_t)(__ccgo_up(submatch_data + uintptr(i)*16))).Fparents + if parents != UintptrFromInt32(0) { + j = uint32(0) + for { + if !(**(**int32)(__ccgo_up(parents + uintptr(j)*4)) >= 0) { + break + } + if (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_so < (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(**(**int32)(__ccgo_up(parents + uintptr(j)*4)))*16))).Frm_so || (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_eo > (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(**(**int32)(__ccgo_up(parents + uintptr(j)*4)))*16))).Frm_eo { + v1 = int64(-Int32FromInt32(1)) + (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_eo = v1 + (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_so = v1 + } + goto _2 + _2: + ; + j = j + 1 + } + } + i = i + 1 + } + } + for uint64(i) < nmatch { + (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_so = int64(-int32(1)) + (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_eo = int64(-int32(1)) + i = i + 1 + } +} + +/* + Wrapper functions for POSIX compatible regexp matching. +*/ + +func Xregexec(tls *TLS, preg uintptr, string1 uintptr, nmatch Tsize_t, pmatch uintptr, eflags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v preg=%v string1=%v nmatch=%v pmatch=%v eflags=%v, (%v:)", tls, preg, string1, nmatch, pmatch, eflags, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var status Treg_errcode_t + var tags, tnfa uintptr + var _ /* eo at bp+0 */ Tregoff_t + _, _, _ = status, tags, tnfa + tnfa = (*Tregex_t)(unsafe.Pointer(preg)).F__opaque + tags = UintptrFromInt32(0) + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags&int32(REG_NOSUB) != 0 { + nmatch = uint64(0) + } + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags > 0 && nmatch > uint64(0) { + tags = Xmalloc(tls, uint64(8)*Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags)) + if tags == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + } + /* Dispatch to the appropriate matcher. */ + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fhave_backrefs != 0 { + /* The regex has back references, use the backtracking matcher. */ + status = _tre_tnfa_run_backtrack(tls, tnfa, string1, tags, eflags, bp) + } else { + /* Exact matching, no back references, use the parallel matcher. */ + status = _tre_tnfa_run_parallel(tls, tnfa, string1, tags, eflags, bp) + } + if status == REG_OK { + /* A match was found, so fill the submatch registers. */ + _tre_fill_pmatch(tls, nmatch, pmatch, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags, tnfa, tags, **(**Tregoff_t)(__ccgo_up(bp))) + } + if tags != 0 { + Xfree(tls, tags) + } + return status +} + +/* + This memory allocator is for allocating small memory blocks efficiently + in terms of memory overhead and execution speed. The allocated blocks + cannot be freed individually, only all at once. There can be multiple + allocators, though. +*/ + +// C documentation +// +// /* Returns a new memory allocator or NULL if out of memory. */ +func X__tre_mem_new_impl(tls *TLS, provided int32, provided_block uintptr) (r Ttre_mem_t) { + if __ccgo_strace { + trc("tls=%v provided=%v provided_block=%v, (%v:)", tls, provided, provided_block, origin(2)) + defer func() { trc("-> %v", r) }() + } + var mem Ttre_mem_t + _ = mem + if provided != 0 { + mem = provided_block + Xmemset(tls, mem, 0, uint64(48)) + } else { + mem = Xcalloc(tls, uint64(1), uint64(48)) + } + if mem == UintptrFromInt32(0) { + return UintptrFromInt32(0) + } + return mem +} + +// C documentation +// +// /* Frees the memory allocator and all memory allocated with it. */ +func X__tre_mem_destroy(tls *TLS, mem Ttre_mem_t) { + if __ccgo_strace { + trc("tls=%v mem=%v, (%v:)", tls, mem, origin(2)) + } + var l, tmp uintptr + _, _ = l, tmp + l = (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fblocks + for l != UintptrFromInt32(0) { + Xfree(tls, (*Ttre_list_t)(unsafe.Pointer(l)).Fdata) + tmp = (*Ttre_list_t)(unsafe.Pointer(l)).Fnext + Xfree(tls, l) + l = tmp + } + Xfree(tls, mem) +} + +// C documentation +// +// /* Allocates a block of `size' bytes from `mem'. Returns a pointer to the +// allocated block or NULL if an underlying malloc() failed. */ +func X__tre_mem_alloc_impl(tls *TLS, mem Ttre_mem_t, provided int32, provided_block uintptr, zero int32, size Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v mem=%v provided=%v provided_block=%v zero=%v size=%v, (%v:)", tls, mem, provided, provided_block, zero, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + var block_size int32 + var l, ptr uintptr + var v1 uint64 + _, _, _, _ = block_size, l, ptr, v1 + if (*Ttre_mem_struct)(unsafe.Pointer(mem)).Ffailed != 0 { + return UintptrFromInt32(0) + } + if (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fn < size { + if provided != 0 { + if provided_block == UintptrFromInt32(0) { + (*Ttre_mem_struct)(unsafe.Pointer(mem)).Ffailed = int32(1) + return UintptrFromInt32(0) + } + (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fptr = provided_block + (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fn = uint64(TRE_MEM_BLOCK_SIZE) + } else { + if size*uint64(8) > uint64(TRE_MEM_BLOCK_SIZE) { + block_size = Int32FromUint64(size * uint64(8)) + } else { + block_size = int32(TRE_MEM_BLOCK_SIZE) + } + l = Xmalloc(tls, uint64(16)) + if l == UintptrFromInt32(0) { + (*Ttre_mem_struct)(unsafe.Pointer(mem)).Ffailed = int32(1) + return UintptrFromInt32(0) + } + (*Ttre_list_t)(unsafe.Pointer(l)).Fdata = Xmalloc(tls, Uint64FromInt32(block_size)) + if (*Ttre_list_t)(unsafe.Pointer(l)).Fdata == UintptrFromInt32(0) { + Xfree(tls, l) + (*Ttre_mem_struct)(unsafe.Pointer(mem)).Ffailed = int32(1) + return UintptrFromInt32(0) + } + (*Ttre_list_t)(unsafe.Pointer(l)).Fnext = UintptrFromInt32(0) + if (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fcurrent != UintptrFromInt32(0) { + (*Ttre_list_t)(unsafe.Pointer((*Ttre_mem_struct)(unsafe.Pointer(mem)).Fcurrent)).Fnext = l + } + if (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fblocks == UintptrFromInt32(0) { + (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fblocks = l + } + (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fcurrent = l + (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fptr = (*Ttre_list_t)(unsafe.Pointer(l)).Fdata + (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fn = Uint64FromInt32(block_size) + } + } + /* Make sure the next pointer will be aligned. */ + if (Uint64FromInt64(int64((*Ttre_mem_struct)(unsafe.Pointer(mem)).Fptr))+size)%uint64(8) != 0 { + v1 = uint64(8) - (Uint64FromInt64(int64((*Ttre_mem_struct)(unsafe.Pointer(mem)).Fptr))+size)%uint64(8) + } else { + v1 = uint64(0) + } + size = size + v1 + /* Allocate from current block. */ + ptr = (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fptr + **(**uintptr)(__ccgo_up(mem + 16)) += uintptr(size) + **(**Tsize_t)(__ccgo_up(mem + 24)) -= size + /* Set to zero if needed. */ + if zero != 0 { + Xmemset(tls, ptr, 0, size) + } + return ptr +} + +const MAXSIZE = 1 +const MINSIZE = 8 + +type TACTION = int32 + +const _FIND = 0 +const _ENTER = 1 + +type TVISIT = int32 + +const _preorder = 0 +const _postorder = 1 +const _endorder = 2 +const _leaf = 3 + +type TENTRY = struct { + Fkey uintptr + Fdata uintptr +} + +type Tentry = TENTRY + +type Thsearch_data = struct { + F__tab uintptr + F__unused1 uint32 + F__unused2 uint32 +} + +type Tqelem = struct { + Fq_forw uintptr + Fq_back uintptr + Fq_data [1]int8 +} + +/* +open addressing hash table with 2^n table size +quadratic probing is used in case of hash collision +tab indices and hash are size_t +after resize fails with ENOMEM the state of tab is still usable + +with the posix api items cannot be iterated and length cannot be queried +*/ + +type t__tab = struct { + Fentries uintptr + Fmask Tsize_t + Fused Tsize_t +} + +var _htab Thsearch_data + +func _keyhash(tls *TLS, k uintptr) (r Tsize_t) { + var h Tsize_t + var p, v1 uintptr + _, _, _ = h, p, v1 + p = k + h = uint64(0) + for **(**uint8)(__ccgo_up(p)) != 0 { + v1 = p + p = p + 1 + h = uint64(31)*h + uint64(**(**uint8)(__ccgo_up(v1))) + } + return h +} + +func _resize(tls *TLS, nel Tsize_t, htab uintptr) (r int32) { + var e, newe, oldtab uintptr + var i, j, newsize, oldsize, v4 Tsize_t + _, _, _, _, _, _, _, _ = e, i, j, newe, newsize, oldsize, oldtab, v4 + oldsize = (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fmask + uint64(1) + oldtab = (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fentries + if nel > Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(2)+Uint64FromInt32(1) { + nel = Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(2) + Uint64FromInt32(1) + } + newsize = uint64(MINSIZE) + for { + if !(newsize < nel) { + break + } + goto _1 + _1: + ; + newsize = newsize * uint64(2) + } + (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fentries = Xcalloc(tls, newsize, uint64(16)) + if !((*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fentries != 0) { + (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fentries = oldtab + return 0 + } + (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fmask = newsize - uint64(1) + if !(oldtab != 0) { + return int32(1) + } + e = oldtab + for { + if !(e < oldtab+uintptr(oldsize)*16) { + break + } + if (*TENTRY)(unsafe.Pointer(e)).Fkey != 0 { + i = _keyhash(tls, (*TENTRY)(unsafe.Pointer(e)).Fkey) + j = Uint64FromInt32(1) + for { + newe = (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fentries + uintptr(i&(*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fmask)*16 + if !((*TENTRY)(unsafe.Pointer(newe)).Fkey != 0) { + break + } + goto _3 + _3: + ; + v4 = j + j = j + 1 + i = i + v4 + } + **(**TENTRY)(__ccgo_up(newe)) = **(**TENTRY)(__ccgo_up(e)) + } + goto _2 + _2: + ; + e += 16 + } + Xfree(tls, oldtab) + return int32(1) +} + +func Xhcreate(tls *TLS, nel Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v nel=%v, (%v:)", tls, nel, origin(2)) + defer func() { trc("-> %v", r) }() + } + return ___hcreate_r(tls, nel, uintptr(unsafe.Pointer(&_htab))) +} + +func Xhdestroy(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + ___hdestroy_r(tls, uintptr(unsafe.Pointer(&_htab))) +} + +func _lookup(tls *TLS, key uintptr, hash Tsize_t, htab uintptr) (r uintptr) { + var e uintptr + var i, j, v2 Tsize_t + _, _, _, _ = e, i, j, v2 + i = hash + j = Uint64FromInt32(1) + for { + e = (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fentries + uintptr(i&(*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fmask)*16 + if !((*TENTRY)(unsafe.Pointer(e)).Fkey != 0) || Xstrcmp(tls, (*TENTRY)(unsafe.Pointer(e)).Fkey, key) == 0 { + break + } + goto _1 + _1: + ; + v2 = j + j = j + 1 + i = i + v2 + } + return e +} + +func Xhsearch(tls *TLS, item TENTRY, action TACTION) (r uintptr) { + if __ccgo_strace { + trc("tls=%v item=%v action=%v, (%v:)", tls, item, action, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* e at bp+0 */ uintptr + ___hsearch_r(tls, item, action, bp, uintptr(unsafe.Pointer(&_htab))) + return **(**uintptr)(__ccgo_up(bp)) +} + +func ___hcreate_r(tls *TLS, nel Tsize_t, htab uintptr) (r1 int32) { + var r int32 + _ = r + (*Thsearch_data)(unsafe.Pointer(htab)).F__tab = Xcalloc(tls, uint64(1), uint64(24)) + if !((*Thsearch_data)(unsafe.Pointer(htab)).F__tab != 0) { + return 0 + } + r = _resize(tls, nel, htab) + if r == 0 { + Xfree(tls, (*Thsearch_data)(unsafe.Pointer(htab)).F__tab) + (*Thsearch_data)(unsafe.Pointer(htab)).F__tab = uintptr(0) + } + return r +} + +func ___hdestroy_r(tls *TLS, htab uintptr) { + if (*Thsearch_data)(unsafe.Pointer(htab)).F__tab != 0 { + Xfree(tls, (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fentries) + } + Xfree(tls, (*Thsearch_data)(unsafe.Pointer(htab)).F__tab) + (*Thsearch_data)(unsafe.Pointer(htab)).F__tab = uintptr(0) +} + +func ___hsearch_r(tls *TLS, item TENTRY, action TACTION, retval uintptr, htab uintptr) (r int32) { + var e, v2 uintptr + var hash, v1 Tsize_t + _, _, _, _ = e, hash, v1, v2 + hash = _keyhash(tls, item.Fkey) + e = _lookup(tls, item.Fkey, hash, htab) + if (*TENTRY)(unsafe.Pointer(e)).Fkey != 0 { + **(**uintptr)(__ccgo_up(retval)) = e + return int32(1) + } + if action == int32(_FIND) { + **(**uintptr)(__ccgo_up(retval)) = uintptr(0) + return 0 + } + **(**TENTRY)(__ccgo_up(e)) = item + v2 = (*Thsearch_data)(unsafe.Pointer(htab)).F__tab + 16 + *(*Tsize_t)(unsafe.Pointer(v2)) = *(*Tsize_t)(unsafe.Pointer(v2)) + 1 + v1 = *(*Tsize_t)(unsafe.Pointer(v2)) + if v1 > (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fmask-(*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fmask/uint64(4) { + if !(_resize(tls, uint64(2)*(*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fused, htab) != 0) { + (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fused = (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fused - 1 + (*TENTRY)(unsafe.Pointer(e)).Fkey = uintptr(0) + **(**uintptr)(__ccgo_up(retval)) = uintptr(0) + return 0 + } + e = _lookup(tls, item.Fkey, hash, htab) + } + **(**uintptr)(__ccgo_up(retval)) = e + return int32(1) +} + +type Tnode = struct { + Fnext uintptr + Fprev uintptr +} + +func Xinsque(tls *TLS, element uintptr, pred uintptr) { + if __ccgo_strace { + trc("tls=%v element=%v pred=%v, (%v:)", tls, element, pred, origin(2)) + } + var e, p, v1 uintptr + _, _, _ = e, p, v1 + e = element + p = pred + if !(p != 0) { + v1 = UintptrFromInt32(0) + (*Tnode)(unsafe.Pointer(e)).Fprev = v1 + (*Tnode)(unsafe.Pointer(e)).Fnext = v1 + return + } + (*Tnode)(unsafe.Pointer(e)).Fnext = (*Tnode)(unsafe.Pointer(p)).Fnext + (*Tnode)(unsafe.Pointer(e)).Fprev = p + (*Tnode)(unsafe.Pointer(p)).Fnext = e + if (*Tnode)(unsafe.Pointer(e)).Fnext != 0 { + (*Tnode)(unsafe.Pointer((*Tnode)(unsafe.Pointer(e)).Fnext)).Fprev = e + } +} + +func Xremque(tls *TLS, element uintptr) { + if __ccgo_strace { + trc("tls=%v element=%v, (%v:)", tls, element, origin(2)) + } + var e uintptr + _ = e + e = element + if (*Tnode)(unsafe.Pointer(e)).Fnext != 0 { + (*Tnode)(unsafe.Pointer((*Tnode)(unsafe.Pointer(e)).Fnext)).Fprev = (*Tnode)(unsafe.Pointer(e)).Fprev + } + if (*Tnode)(unsafe.Pointer(e)).Fprev != 0 { + (*Tnode)(unsafe.Pointer((*Tnode)(unsafe.Pointer(e)).Fprev)).Fnext = (*Tnode)(unsafe.Pointer(e)).Fnext + } +} + +type t__ccgo_fp__Xlsearch_4 = func(*TLS, uintptr, uintptr) int32 + +func Xlsearch(tls *TLS, key uintptr, base uintptr, nelp uintptr, width Tsize_t, __ccgo_fp_compar uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v base=%v nelp=%v width=%v __ccgo_fp_compar=%v, (%v:)", tls, key, base, nelp, width, __ccgo_fp_compar, origin(2)) + defer func() { trc("-> %v", r) }() + } + var i, n Tsize_t + var p uintptr + var v1 t__predefined_size_t + _, _, _, _ = i, n, p, v1 + defer func() {}() + v1 = width + p = base + n = **(**Tsize_t)(__ccgo_up(nelp)) + i = uint64(0) + for { + if !(i < n) { + break + } + if (*(*func(*TLS, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_compar})))(tls, key, p+uintptr(i)*uintptr(v1)) == 0 { + return p + uintptr(i)*uintptr(v1) + } + goto _2 + _2: + ; + i = i + 1 + } + **(**Tsize_t)(__ccgo_up(nelp)) = n + uint64(1) + return Xmemcpy(tls, p+uintptr(n)*uintptr(v1), key, width) +} + +type t__ccgo_fp__Xlfind_4 = func(*TLS, uintptr, uintptr) int32 + +func Xlfind(tls *TLS, key uintptr, base uintptr, nelp uintptr, width Tsize_t, __ccgo_fp_compar uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v base=%v nelp=%v width=%v __ccgo_fp_compar=%v, (%v:)", tls, key, base, nelp, width, __ccgo_fp_compar, origin(2)) + defer func() { trc("-> %v", r) }() + } + var i, n Tsize_t + var p uintptr + var v1 t__predefined_size_t + _, _, _, _ = i, n, p, v1 + defer func() {}() + v1 = width + p = base + n = **(**Tsize_t)(__ccgo_up(nelp)) + i = uint64(0) + for { + if !(i < n) { + break + } + if (*(*func(*TLS, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_compar})))(tls, key, p+uintptr(i)*uintptr(v1)) == 0 { + return p + uintptr(i)*uintptr(v1) + } + goto _2 + _2: + ; + i = i + 1 + } + return uintptr(0) +} + +const MAXH = 0 + +type Tnode1 = struct { + Fkey uintptr + Fa [2]uintptr + Fh int32 +} + +type t__ccgo_fp__Xtdelete_2 = func(*TLS, uintptr, uintptr) int32 + +func Xtdelete(tls *TLS, key uintptr, rootp uintptr, __ccgo_fp_cmp uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v rootp=%v __ccgo_fp_cmp=%v, (%v:)", tls, key, rootp, __ccgo_fp_cmp, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a [97]uintptr + var c, i, v1 int32 + var child, deleted, n, parent uintptr + _, _, _, _, _, _, _, _ = a, c, child, deleted, i, n, parent, v1 + if !(rootp != 0) { + return uintptr(0) + } + n = **(**uintptr)(__ccgo_up(rootp)) + i = 0 + /* *a[0] is an arbitrary non-null pointer that is returned when + the root node is deleted. */ + v1 = i + i = i + 1 + a[v1] = rootp + v1 = i + i = i + 1 + a[v1] = rootp + for { + if !(n != 0) { + return uintptr(0) + } + c = (*(*func(*TLS, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cmp})))(tls, key, (*Tnode1)(unsafe.Pointer(n)).Fkey) + if !(c != 0) { + break + } + v1 = i + i = i + 1 + a[v1] = n + 8 + BoolUintptr(c > 0)*8 + n = **(**uintptr)(__ccgo_up(n + 8 + BoolUintptr(c > 0)*8)) + goto _3 + _3: + } + parent = **(**uintptr)(__ccgo_up(a[i-int32(2)])) + if **(**uintptr)(__ccgo_up(n + 8)) != 0 { + /* free the preceding node instead of the deleted one. */ + deleted = n + v1 = i + i = i + 1 + a[v1] = n + 8 + n = **(**uintptr)(__ccgo_up(n + 8)) + for **(**uintptr)(__ccgo_up(n + 8 + 1*8)) != 0 { + v1 = i + i = i + 1 + a[v1] = n + 8 + 1*8 + n = **(**uintptr)(__ccgo_up(n + 8 + 1*8)) + } + (*Tnode1)(unsafe.Pointer(deleted)).Fkey = (*Tnode1)(unsafe.Pointer(n)).Fkey + child = **(**uintptr)(__ccgo_up(n + 8)) + } else { + child = **(**uintptr)(__ccgo_up(n + 8 + 1*8)) + } + /* freed node has at most one child, move it up and rebalance. */ + Xfree(tls, n) + i = i - 1 + v1 = i + **(**uintptr)(__ccgo_up(a[v1])) = child + for { + i = i - 1 + v1 = i + if !(v1 != 0 && X__tsearch_balance(tls, a[i]) != 0) { + break + } + } + return parent +} + +type t__ccgo_fp__Xtdestroy_1 = func(*TLS, uintptr) + +func Xtdestroy(tls *TLS, root uintptr, __ccgo_fp_freekey uintptr) { + if __ccgo_strace { + trc("tls=%v root=%v __ccgo_fp_freekey=%v, (%v:)", tls, root, __ccgo_fp_freekey, origin(2)) + } + var r uintptr + _ = r + r = root + if r == uintptr(0) { + return + } + Xtdestroy(tls, **(**uintptr)(__ccgo_up(r + 8)), __ccgo_fp_freekey) + Xtdestroy(tls, **(**uintptr)(__ccgo_up(r + 8 + 1*8)), __ccgo_fp_freekey) + if __ccgo_fp_freekey != 0 { + (*(*func(*TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_freekey})))(tls, (*Tnode1)(unsafe.Pointer(r)).Fkey) + } + Xfree(tls, r) +} + +type t__ccgo_fp__Xtfind_2 = func(*TLS, uintptr, uintptr) int32 + +func Xtfind(tls *TLS, key uintptr, rootp uintptr, __ccgo_fp_cmp uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v rootp=%v __ccgo_fp_cmp=%v, (%v:)", tls, key, rootp, __ccgo_fp_cmp, origin(2)) + defer func() { trc("-> %v", r) }() + } + var c int32 + var n uintptr + _, _ = c, n + if !(rootp != 0) { + return uintptr(0) + } + n = **(**uintptr)(__ccgo_up(rootp)) + for { + if !(n != 0) { + break + } + c = (*(*func(*TLS, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cmp})))(tls, key, (*Tnode1)(unsafe.Pointer(n)).Fkey) + if !(c != 0) { + break + } + n = **(**uintptr)(__ccgo_up(n + 8 + BoolUintptr(c > 0)*8)) + goto _1 + _1: + } + return n +} + +func _height(tls *TLS, n uintptr) (r int32) { + var v1 int32 + _ = v1 + if n != 0 { + v1 = (*Tnode1)(unsafe.Pointer(n)).Fh + } else { + v1 = 0 + } + return v1 +} + +func _rot(tls *TLS, p uintptr, x uintptr, dir int32) (r int32) { + var hx, hz int32 + var y, z uintptr + _, _, _, _ = hx, hz, y, z + y = **(**uintptr)(__ccgo_up(x + 8 + uintptr(dir)*8)) + z = **(**uintptr)(__ccgo_up(y + 8 + BoolUintptr(!(dir != 0))*8)) + hx = (*Tnode1)(unsafe.Pointer(x)).Fh + hz = _height(tls, z) + if hz > _height(tls, **(**uintptr)(__ccgo_up(y + 8 + uintptr(dir)*8))) { + /* + * x + * / \ dir z + * A y / * / \ --> x y + * z D /| | * / \ A B C D + * B C + */ + **(**uintptr)(__ccgo_up(x + 8 + uintptr(dir)*8)) = **(**uintptr)(__ccgo_up(z + 8 + BoolUintptr(!(dir != 0))*8)) + **(**uintptr)(__ccgo_up(y + 8 + BoolUintptr(!(dir != 0))*8)) = **(**uintptr)(__ccgo_up(z + 8 + uintptr(dir)*8)) + **(**uintptr)(__ccgo_up(z + 8 + BoolUintptr(!(dir != 0))*8)) = x + **(**uintptr)(__ccgo_up(z + 8 + uintptr(dir)*8)) = y + (*Tnode1)(unsafe.Pointer(x)).Fh = hz + (*Tnode1)(unsafe.Pointer(y)).Fh = hz + (*Tnode1)(unsafe.Pointer(z)).Fh = hz + int32(1) + } else { + /* + * x y + * / \ / * A y --> x D + * / \ / * z D A z + */ + **(**uintptr)(__ccgo_up(x + 8 + uintptr(dir)*8)) = z + **(**uintptr)(__ccgo_up(y + 8 + BoolUintptr(!(dir != 0))*8)) = x + (*Tnode1)(unsafe.Pointer(x)).Fh = hz + int32(1) + (*Tnode1)(unsafe.Pointer(y)).Fh = hz + int32(2) + z = y + } + **(**uintptr)(__ccgo_up(p)) = z + return (*Tnode1)(unsafe.Pointer(z)).Fh - hx +} + +// C documentation +// +// /* balance *p, return 0 if height is unchanged. */ +func X__tsearch_balance(tls *TLS, p uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v p=%v, (%v:)", tls, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + var h0, h1, old, v1 int32 + var n uintptr + _, _, _, _, _ = h0, h1, n, old, v1 + n = **(**uintptr)(__ccgo_up(p)) + h0 = _height(tls, **(**uintptr)(__ccgo_up(n + 8))) + h1 = _height(tls, **(**uintptr)(__ccgo_up(n + 8 + 1*8))) + if Uint32FromInt32(h0-h1)+uint32(1) < uint32(3) { + old = (*Tnode1)(unsafe.Pointer(n)).Fh + if h0 < h1 { + v1 = h1 + int32(1) + } else { + v1 = h0 + int32(1) + } + (*Tnode1)(unsafe.Pointer(n)).Fh = v1 + return (*Tnode1)(unsafe.Pointer(n)).Fh - old + } + return _rot(tls, p, n, BoolInt32(h0 < h1)) +} + +type t__ccgo_fp__Xtsearch_2 = func(*TLS, uintptr, uintptr) int32 + +func Xtsearch(tls *TLS, key uintptr, rootp uintptr, __ccgo_fp_cmp uintptr) (r1 uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v rootp=%v __ccgo_fp_cmp=%v, (%v:)", tls, key, rootp, __ccgo_fp_cmp, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var a [96]uintptr + var c, i, v1 int32 + var n, r, v4 uintptr + var v7 bool + _, _, _, _, _, _, _, _ = a, c, i, n, r, v1, v4, v7 + if !(rootp != 0) { + return uintptr(0) + } + n = **(**uintptr)(__ccgo_up(rootp)) + i = 0 + v1 = i + i = i + 1 + a[v1] = rootp + for { + if !(n != 0) { + break + } + c = (*(*func(*TLS, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cmp})))(tls, key, (*Tnode1)(unsafe.Pointer(n)).Fkey) + if !(c != 0) { + return n + } + v1 = i + i = i + 1 + a[v1] = n + 8 + BoolUintptr(c > 0)*8 + n = **(**uintptr)(__ccgo_up(n + 8 + BoolUintptr(c > 0)*8)) + goto _2 + _2: + } + r = Xmalloc(tls, uint64(32)) + if !(r != 0) { + return uintptr(0) + } + (*Tnode1)(unsafe.Pointer(r)).Fkey = key + v4 = UintptrFromInt32(0) + **(**uintptr)(__ccgo_up(r + 8 + 1*8)) = v4 + **(**uintptr)(__ccgo_up(r + 8)) = v4 + (*Tnode1)(unsafe.Pointer(r)).Fh = int32(1) + /* insert new node, rebalance ancestors. */ + i = i - 1 + v1 = i + **(**uintptr)(__ccgo_up(a[v1])) = r + for { + if v7 = i != 0; v7 { + i = i - 1 + v1 = i + } + if !(v7 && X__tsearch_balance(tls, a[v1]) != 0) { + break + } + } + return r +} + +func _walk(tls *TLS, r uintptr, __ccgo_fp_action uintptr, d int32) { + if !(r != 0) { + return + } + if (*Tnode1)(unsafe.Pointer(r)).Fh == int32(1) { + (*(*func(*TLS, uintptr, TVISIT, int32))(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_action})))(tls, r, int32(_leaf), d) + } else { + (*(*func(*TLS, uintptr, TVISIT, int32))(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_action})))(tls, r, int32(_preorder), d) + _walk(tls, **(**uintptr)(__ccgo_up(r + 8)), __ccgo_fp_action, d+int32(1)) + (*(*func(*TLS, uintptr, TVISIT, int32))(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_action})))(tls, r, int32(_postorder), d) + _walk(tls, **(**uintptr)(__ccgo_up(r + 8 + 1*8)), __ccgo_fp_action, d+int32(1)) + (*(*func(*TLS, uintptr, TVISIT, int32))(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_action})))(tls, r, int32(_endorder), d) + } +} + +type t__ccgo_fp__Xtwalk_1 = func(*TLS, uintptr, int32, int32) + +func Xtwalk(tls *TLS, root uintptr, __ccgo_fp_action uintptr) { + if __ccgo_strace { + trc("tls=%v root=%v __ccgo_fp_action=%v, (%v:)", tls, root, __ccgo_fp_action, origin(2)) + } + _walk(tls, root, __ccgo_fp_action, 0) +} + +func Xpoll(tls *TLS, fds uintptr, n Tnfds_t, timeout int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fds=%v n=%v timeout=%v, (%v:)", tls, fds, n, timeout, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uintptr + _ = v1 + if timeout >= 0 { + *(*[2]int64)(unsafe.Pointer(bp)) = [2]int64{ + 0: int64(timeout / int32(1000)), + 1: int64(timeout % int32(1000) * int32(1000000)), + } + v1 = bp + } else { + v1 = uintptr(0) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_ppoll), int64(fds), Int64FromUint64(n), int64(v1), int64(Int32FromInt32(0)), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8)), 0)))) +} + +func Xppoll(tls *TLS, fds uintptr, n Tnfds_t, to uintptr, mask uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fds=%v n=%v to=%v mask=%v, (%v:)", tls, fds, n, to, mask, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ns, v1, v2 int64 + var s Ttime_t + var v3 uintptr + _, _, _, _, _ = ns, s, v1, v2, v3 + if to != 0 { + v1 = (*Ttimespec)(unsafe.Pointer(to)).Ftv_sec + } else { + v1 = 0 + } + s = v1 + if to != 0 { + v2 = (*Ttimespec)(unsafe.Pointer(to)).Ftv_nsec + } else { + v2 = 0 + } + ns = v2 + if to != 0 { + *(*[2]int64)(unsafe.Pointer(bp)) = [2]int64{ + 0: s, + 1: ns, + } + v3 = bp + } else { + v3 = uintptr(0) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_ppoll), int64(fds), Int64FromUint64(n), int64(v3), int64(mask), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8)), 0)))) +} + +func Xpselect(tls *TLS, n int32, rfds uintptr, wfds uintptr, efds uintptr, ts uintptr, mask uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v n=%v rfds=%v wfds=%v efds=%v ts=%v mask=%v, (%v:)", tls, n, rfds, wfds, efds, ts, mask, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var ns, v1, v2 int64 + var s Ttime_t + var v3 uintptr + var _ /* data at bp+16 */ [2]Tsyscall_arg_t + _, _, _, _, _ = ns, s, v1, v2, v3 + **(**[2]Tsyscall_arg_t)(__ccgo_up(bp + 16)) = [2]Tsyscall_arg_t{ + 0: Int64FromUint64(uint64(mask)), + 1: int64(Int32FromInt32(_NSIG) / Int32FromInt32(8)), + } + if ts != 0 { + v1 = (*Ttimespec)(unsafe.Pointer(ts)).Ftv_sec + } else { + v1 = 0 + } + s = v1 + if ts != 0 { + v2 = (*Ttimespec)(unsafe.Pointer(ts)).Ftv_nsec + } else { + v2 = 0 + } + ns = v2 + if ts != 0 { + *(*[2]int64)(unsafe.Pointer(bp)) = [2]int64{ + 0: s, + 1: ns, + } + v3 = bp + } else { + v3 = uintptr(0) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_pselect6), int64(n), int64(rfds), int64(wfds), int64(efds), int64(v3), int64(bp+16))))) +} + +func Xselect(tls *TLS, n int32, rfds uintptr, wfds uintptr, efds uintptr, tv uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v n=%v rfds=%v wfds=%v efds=%v tv=%v, (%v:)", tls, n, rfds, wfds, efds, tv, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var max_time, s Ttime_t + var ns, v1, v2 int64 + var us Tsuseconds_t + var v3 uintptr + _, _, _, _, _, _, _ = max_time, ns, s, us, v1, v2, v3 + if tv != 0 { + v1 = (*Ttimeval)(unsafe.Pointer(tv)).Ftv_sec + } else { + v1 = 0 + } + s = v1 + if tv != 0 { + v2 = (*Ttimeval)(unsafe.Pointer(tv)).Ftv_usec + } else { + v2 = 0 + } + us = v2 + max_time = Int64FromUint64(Uint64FromUint64(1)<<(Uint64FromInt32(8)*Uint64FromInt64(8)-Uint64FromInt32(1)) - Uint64FromInt32(1)) + if s < 0 || us < 0 { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL)))) + } + if us/int64(1000000) > max_time-s { + s = max_time + us = int64(999999) + ns = int64(999999999) + } else { + s = s + us/int64(1000000) + us = us % int64(1000000) + ns = us * int64(1000) + } + if tv != 0 { + *(*[2]int64)(unsafe.Pointer(bp)) = [2]int64{ + 0: s, + 1: ns, + } + v3 = bp + } else { + v3 = uintptr(0) + } + *(*[2]Tsyscall_arg_t)(unsafe.Pointer(bp + 16)) = [2]Tsyscall_arg_t{ + 1: int64(Int32FromInt32(_NSIG) / Int32FromInt32(8)), + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_pselect6), int64(n), int64(rfds), int64(wfds), int64(efds), int64(v3), int64(bp+16))))) +} + +var _all_mask = [1]uint64{ + 0: -Uint64FromUint64(1), +} + +var _app_mask = [1]uint64{ + 0: uint64(0xfffffffc7fffffff), +} + +func X__block_all_sigs(tls *TLS, set uintptr) { + if __ccgo_strace { + trc("tls=%v set=%v, (%v:)", tls, set, origin(2)) + } + X__syscall4(tls, int64(SYS_rt_sigprocmask), int64(Int32FromInt32(SIG_BLOCK)), int64(uintptr(unsafe.Pointer(&_all_mask))), int64(set), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8))) +} + +func X__block_app_sigs(tls *TLS, set uintptr) { + if __ccgo_strace { + trc("tls=%v set=%v, (%v:)", tls, set, origin(2)) + } + X__syscall4(tls, int64(SYS_rt_sigprocmask), int64(Int32FromInt32(SIG_BLOCK)), int64(uintptr(unsafe.Pointer(&_app_mask))), int64(set), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8))) +} + +func X__restore_sigs(tls *TLS, set uintptr) { + if __ccgo_strace { + trc("tls=%v set=%v, (%v:)", tls, set, origin(2)) + } + X__syscall4(tls, int64(SYS_rt_sigprocmask), int64(Int32FromInt32(SIG_SETMASK)), int64(set), int64(Int32FromInt32(0)), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8))) +} + +func Xgetitimer(tls *TLS, which int32, old uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v which=%v old=%v, (%v:)", tls, which, old, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var r int32 + var _ /* old32 at bp+0 */ [4]int64 + _ = r + if uint64(8) > uint64(8) { + r = int32(X__syscall2(tls, int64(SYS_getitimer), int64(which), int64(bp))) + if !(r != 0) { + (*Titimerval)(unsafe.Pointer(old)).Fit_interval.Ftv_sec = (**(**[4]int64)(__ccgo_up(bp)))[0] + (*Titimerval)(unsafe.Pointer(old)).Fit_interval.Ftv_usec = (**(**[4]int64)(__ccgo_up(bp)))[int32(1)] + (*Titimerval)(unsafe.Pointer(old)).Fit_value.Ftv_sec = (**(**[4]int64)(__ccgo_up(bp)))[int32(2)] + (*Titimerval)(unsafe.Pointer(old)).Fit_value.Ftv_usec = (**(**[4]int64)(__ccgo_up(bp)))[int32(3)] + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_getitimer), int64(which), int64(old))))) +} + +func Xkill(tls *TLS, pid Tpid_t, sig int32) (r int32) { + if __ccgo_strace { + trc("tls=%v pid=%v sig=%v, (%v:)", tls, pid, sig, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_kill), int64(pid), int64(sig))))) +} + +func Xkillpg(tls *TLS, pgid Tpid_t, sig int32) (r int32) { + if __ccgo_strace { + trc("tls=%v pgid=%v sig=%v, (%v:)", tls, pgid, sig, origin(2)) + defer func() { trc("-> %v", r) }() + } + if pgid < 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + return Xkill(tls, -pgid, sig) +} + +func Xpsiginfo(tls *TLS, si uintptr, msg uintptr) { + if __ccgo_strace { + trc("tls=%v si=%v msg=%v, (%v:)", tls, si, msg, origin(2)) + } + Xpsignal(tls, (*Tsiginfo_t)(unsafe.Pointer(si)).Fsi_signo, msg) +} + +func Xpsignal(tls *TLS, sig int32, msg uintptr) { + if __ccgo_strace { + trc("tls=%v sig=%v msg=%v, (%v:)", tls, sig, msg, origin(2)) + } + bp := tls.Alloc(32) + defer tls.Free(32) + var __need_unlock, old_errno, old_mode, v1 int32 + var f, old_locale, s, v2, v3 uintptr + _, _, _, _, _, _, _, _, _ = __need_unlock, f, old_errno, old_locale, old_mode, s, v1, v2, v3 + f = uintptr(unsafe.Pointer(&X__stderr_FILE)) + s = Xstrsignal(tls, sig) + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + /* Save stderr's orientation and encoding rule, since psignal is not + * permitted to change them. Save errno and restore it if there is no + * error since fprintf might change it even on success but psignal is + * not permitted to do so. */ + old_locale = (*TFILE)(unsafe.Pointer(f)).Flocale + old_mode = (*TFILE)(unsafe.Pointer(f)).Fmode + old_errno = **(**int32)(__ccgo_up(X__errno_location(tls))) + if msg != 0 { + v2 = msg + } else { + v2 = __ccgo_ts + } + if msg != 0 { + v3 = __ccgo_ts + 289 + } else { + v3 = __ccgo_ts + } + if Xfprintf(tls, f, __ccgo_ts+1062, VaList(bp+8, v2, v3, s)) >= 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = old_errno + } + (*TFILE)(unsafe.Pointer(f)).Fmode = old_mode + (*TFILE)(unsafe.Pointer(f)).Flocale = old_locale + if __need_unlock != 0 { + ___unlockfile(tls, f) + } +} + +func Xraise(tls *TLS, sig int32) (r int32) { + if __ccgo_strace { + trc("tls=%v sig=%v, (%v:)", tls, sig, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(128) + defer tls.Free(128) + var ret int32 + var _ /* set at bp+0 */ Tsigset_t + _ = ret + X__block_app_sigs(tls, bp) + ret = int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_tkill), int64((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Ftid), int64(sig))))) + X__restore_sigs(tls, bp) + return ret +} + +/* These functions will not work, but suffice for targets where the + * kernel sigaction structure does not actually use sa_restorer. */ +func X__restore(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } +} + +func X__restore_rt(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } +} + +func Xsetitimer(tls *TLS, which int32, new1 uintptr, old uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v which=%v new1=%v old=%v, (%v:)", tls, which, new1, old, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var is, vs Ttime_t + var ius, vus int64 + var r int32 + var _ /* old32 at bp+32 */ [4]int64 + _, _, _, _, _ = is, ius, r, vs, vus + if uint64(8) > uint64(8) { + is = (*Titimerval)(unsafe.Pointer(new1)).Fit_interval.Ftv_sec + vs = (*Titimerval)(unsafe.Pointer(new1)).Fit_value.Ftv_sec + ius = (*Titimerval)(unsafe.Pointer(new1)).Fit_interval.Ftv_usec + vus = (*Titimerval)(unsafe.Pointer(new1)).Fit_value.Ftv_usec + if !!((Uint64FromInt64(is)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) || !!((Uint64FromInt64(vs)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EOPNOTSUPP)))) + } + *(*[4]int64)(unsafe.Pointer(bp)) = [4]int64{ + 0: is, + 1: ius, + 2: vs, + 3: vus, + } + r = int32(X__syscall3(tls, int64(SYS_setitimer), int64(which), int64(bp), int64(bp+32))) + if !(r != 0) && old != 0 { + (*Titimerval)(unsafe.Pointer(old)).Fit_interval.Ftv_sec = (**(**[4]int64)(__ccgo_up(bp + 32)))[0] + (*Titimerval)(unsafe.Pointer(old)).Fit_interval.Ftv_usec = (**(**[4]int64)(__ccgo_up(bp + 32)))[int32(1)] + (*Titimerval)(unsafe.Pointer(old)).Fit_value.Ftv_sec = (**(**[4]int64)(__ccgo_up(bp + 32)))[int32(2)] + (*Titimerval)(unsafe.Pointer(old)).Fit_value.Ftv_usec = (**(**[4]int64)(__ccgo_up(bp + 32)))[int32(3)] + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_setitimer), int64(which), int64(new1), int64(old))))) +} + +type Tk_sigaction = struct { + Fhandler uintptr + Fflags uint64 + Fmask [2]uint32 + Funused uintptr +} + +var _unmask_done int32 +var _handler_set [1]uint64 + +func X__get_handler_set(tls *TLS, set uintptr) { + if __ccgo_strace { + trc("tls=%v set=%v, (%v:)", tls, set, origin(2)) + } + Xmemcpy(tls, set, uintptr(unsafe.Pointer(&_handler_set)), uint64(8)) +} + +func X__libc_sigaction(tls *TLS, sig int32, sa uintptr, old1 uintptr) (r2 int32) { + if __ccgo_strace { + trc("tls=%v sig=%v sa=%v old1=%v, (%v:)", tls, sig, sa, old1, origin(2)) + defer func() { trc("-> %v", r2) }() + } + bp := tls.Alloc(80) + defer tls.Free(80) + var old, r, r1, v, v12, v15, v19, v22, v4, v7 int32 + var v1, v10, v11, v18, v3 uintptr + var v2 int64 + var _ /* ksa at bp+16 */ Tk_sigaction + var _ /* ksa_old at bp+48 */ Tk_sigaction + var _ /* u at bp+8 */ struct { + Fr [0][2]Tuint32_t + Fv Tuint64_t + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = old, r, r1, v, v1, v10, v11, v12, v15, v18, v19, v2, v22, v3, v4, v7 + if sa != 0 { + if uint64(*(*uintptr)(unsafe.Pointer(sa))) > uint64(1) { + v1 = uintptr(unsafe.Pointer(&_handler_set)) + uintptr(Uint64FromInt32(sig-Int32FromInt32(1))/(Uint64FromInt32(8)*Uint64FromInt64(8)))*8 + v2 = Int64FromUint64(uint64(1) << (Uint64FromInt32(sig-Int32FromInt32(1)) % (Uint64FromInt32(8) * Uint64FromInt64(8)))) + if Uint64FromInt64(8) == Uint64FromInt64(4) { + v3 = v1 + // __asm__ __volatile__ ("dbar 0" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 49, __ccgo_ts+1477) + for { + // __asm__ __volatile__ ( + // + // "ll.w %0, %1" + // : "=r"(v) + // : "ZC"(*p)); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 5, __ccgo_ts+1477) + v7 = v + goto _8 + _8: + old = v7 + goto _6 + _6: + ; + // __asm__ __volatile__ ( + // + // "sc.w %0, %1" + // : "=r"(r), "=ZC"(*p) + // : "0"(v) : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 16, __ccgo_ts+1477) + v4 = r + goto _5 + _5: + ; + if !!(v4 != 0) { + break + } + } + // __asm__ __volatile__ ("dbar 0" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 49, __ccgo_ts+1477) + _ = old + goto _9 + _9: + } else { + v10 = v1 + *(*struct { + Fr [0][2]Tuint32_t + Fv Tuint64_t + })(unsafe.Pointer(bp + 8)) = struct { + Fr [0][2]Tuint32_t + Fv Tuint64_t + }{} + *(*uint64)(unsafe.Pointer(bp + 8)) = Uint64FromInt64(v2) + if **(**Tuint32_t)(__ccgo_up(bp + 8)) != 0 { + v11 = v10 + // __asm__ __volatile__ ("dbar 0" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 49, __ccgo_ts+1477) + for { + // __asm__ __volatile__ ( + // + // "ll.w %0, %1" + // : "=r"(v) + // : "ZC"(*p)); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 5, __ccgo_ts+1477) + v15 = v + goto _16 + _16: + old = v15 + goto _14 + _14: + ; + // __asm__ __volatile__ ( + // + // "sc.w %0, %1" + // : "=r"(r), "=ZC"(*p) + // : "0"(v) : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 16, __ccgo_ts+1477) + v12 = r + goto _13 + _13: + ; + if !!(v12 != 0) { + break + } + } + // __asm__ __volatile__ ("dbar 0" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 49, __ccgo_ts+1477) + _ = old + goto _17 + _17: + } + if **(**Tuint32_t)(__ccgo_up(bp + 8 + 1*4)) != 0 { + v18 = v10 + uintptr(1)*4 + // __asm__ __volatile__ ("dbar 0" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 49, __ccgo_ts+1477) + for { + // __asm__ __volatile__ ( + // + // "ll.w %0, %1" + // : "=r"(v) + // : "ZC"(*p)); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 5, __ccgo_ts+1477) + v22 = v + goto _23 + _23: + old = v22 + goto _21 + _21: + ; + // __asm__ __volatile__ ( + // + // "sc.w %0, %1" + // : "=r"(r), "=ZC"(*p) + // : "0"(v) : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 16, __ccgo_ts+1477) + v19 = r + goto _20 + _20: + ; + if !!(v19 != 0) { + break + } + } + // __asm__ __volatile__ ("dbar 0" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 49, __ccgo_ts+1477) + _ = old + goto _24 + _24: + } + } + /* If pthread_create has not yet been called, + * implementation-internal signals might not + * yet have been unblocked. They must be + * unblocked before any signal handler is + * installed, so that an application cannot + * receive an illegal sigset_t (with them + * blocked) as part of the ucontext_t passed + * to the signal handler. */ + if !(X__libc.Fthreaded != 0) && !(_unmask_done != 0) { + *(*[1]uint64)(unsafe.Pointer(bp)) = [1]uint64{ + 0: Uint64FromUint64(3) << (Int32FromInt32(32) * BoolInt32(Uint64FromInt64(8) > Uint64FromInt32(4))), + } + X__syscall4(tls, int64(SYS_rt_sigprocmask), int64(Int32FromInt32(SIG_UNBLOCK)), int64(bp), int64(Int32FromInt32(0)), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8))) + _unmask_done = int32(1) + } + if !((*Tsigaction)(unsafe.Pointer(sa)).Fsa_flags&Int32FromInt32(SA_RESTART) != 0) { + // __asm__ __volatile__ ("dbar 0" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 49, __ccgo_ts+1477) + AtomicStorePInt32(uintptr(unsafe.Pointer(&X__eintr_valid_flag)), int32(1)) + // __asm__ __volatile__ ("dbar 0" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 49, __ccgo_ts+1477) + } + } + (**(**Tk_sigaction)(__ccgo_up(bp + 16))).Fhandler = *(*uintptr)(unsafe.Pointer(sa)) + (**(**Tk_sigaction)(__ccgo_up(bp + 16))).Fflags = Uint64FromInt32((*Tsigaction)(unsafe.Pointer(sa)).Fsa_flags) + Xmemcpy(tls, bp+16+16, sa+8, Uint64FromInt32(Int32FromInt32(_NSIG)/Int32FromInt32(8))) + } + if sa != 0 { + v1 = bp + 16 + } else { + v1 = uintptr(0) + } + if old1 != 0 { + v3 = bp + 48 + } else { + v3 = uintptr(0) + } + r1 = int32(X__syscall4(tls, int64(SYS_rt_sigaction), int64(sig), int64(v1), int64(v3), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8)))) + if old1 != 0 && !(r1 != 0) { + *(*uintptr)(unsafe.Pointer(old1)) = (**(**Tk_sigaction)(__ccgo_up(bp + 48))).Fhandler + (*Tsigaction)(unsafe.Pointer(old1)).Fsa_flags = Int32FromUint64((**(**Tk_sigaction)(__ccgo_up(bp + 48))).Fflags) + Xmemcpy(tls, old1+8, bp+48+16, Uint64FromInt32(Int32FromInt32(_NSIG)/Int32FromInt32(8))) + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r1))) +} + +func X__sigaction(tls *TLS, sig int32, sa uintptr, old uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v sig=%v sa=%v old=%v, (%v:)", tls, sig, sa, old, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var r int32 + var _ /* set at bp+0 */ [1]uint64 + _ = r + if Uint32FromInt32(sig)-uint32(32) < uint32(3) || Uint32FromInt32(sig)-uint32(1) >= Uint32FromInt32(Int32FromInt32(_NSIG)-Int32FromInt32(1)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + /* Doing anything with the disposition of SIGABRT requires a lock, + * so that it cannot be changed while abort is terminating the + * process and so any change made by abort can't be observed. */ + if sig == int32(SIGABRT) { + X__block_all_sigs(tls, bp) + ___lock(tls, uintptr(unsafe.Pointer(&X__abort_lock))) + } + r = X__libc_sigaction(tls, sig, sa, old) + if sig == int32(SIGABRT) { + ___unlock(tls, uintptr(unsafe.Pointer(&X__abort_lock))) + X__restore_sigs(tls, bp) + } + return r +} + +func Xsigaction(tls *TLS, sig int32, sa uintptr, old uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v sig=%v sa=%v old=%v, (%v:)", tls, sig, sa, old, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__sigaction(tls, sig, sa, old) +} + +func Xsigaddset(tls *TLS, set uintptr, sig int32) (r int32) { + if __ccgo_strace { + trc("tls=%v set=%v sig=%v, (%v:)", tls, set, sig, origin(2)) + defer func() { trc("-> %v", r) }() + } + var s uint32 + _ = s + s = Uint32FromInt32(sig - int32(1)) + if s >= Uint32FromInt32(Int32FromInt32(_NSIG)-Int32FromInt32(1)) || Uint32FromInt32(sig)-uint32(32) < uint32(3) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + **(**uint64)(__ccgo_up(set + uintptr(uint64(s/uint32(8))/uint64(8))*8)) |= uint64(1) << (uint64(s) & (Uint64FromInt32(8)*Uint64FromInt64(8) - Uint64FromInt32(1))) + return 0 +} + +func Xsigaltstack(tls *TLS, ss uintptr, old uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v ss=%v old=%v, (%v:)", tls, ss, old, origin(2)) + defer func() { trc("-> %v", r) }() + } + if ss != 0 { + if !((*Tstack_t)(unsafe.Pointer(ss)).Fss_flags&Int32FromInt32(SS_DISABLE) != 0) && (*Tstack_t)(unsafe.Pointer(ss)).Fss_size < uint64(MINSIGSTKSZ) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOMEM) + return -int32(1) + } + if (*Tstack_t)(unsafe.Pointer(ss)).Fss_flags&int32(SS_ONSTACK) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_sigaltstack), int64(ss), int64(old))))) +} + +const SST_SIZE = 8 + +func Xsigandset(tls *TLS, dest uintptr, left uintptr, right uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v dest=%v left=%v right=%v, (%v:)", tls, dest, left, right, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var d, l, r uintptr + var i uint64 + _, _, _, _ = d, i, l, r + i = uint64(0) + d = dest + l = left + r = right + for { + if !(i < Uint64FromInt32(Int32FromInt32(_NSIG)/Int32FromInt32(8))/Uint64FromInt64(8)) { + break + } + **(**uint64)(__ccgo_up(d + uintptr(i)*8)) = **(**uint64)(__ccgo_up(l + uintptr(i)*8)) & **(**uint64)(__ccgo_up(r + uintptr(i)*8)) + goto _1 + _1: + ; + i = i + 1 + } + return 0 +} + +func Xsigdelset(tls *TLS, set uintptr, sig int32) (r int32) { + if __ccgo_strace { + trc("tls=%v set=%v sig=%v, (%v:)", tls, set, sig, origin(2)) + defer func() { trc("-> %v", r) }() + } + var s uint32 + _ = s + s = Uint32FromInt32(sig - int32(1)) + if s >= Uint32FromInt32(Int32FromInt32(_NSIG)-Int32FromInt32(1)) || Uint32FromInt32(sig)-uint32(32) < uint32(3) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + **(**uint64)(__ccgo_up(set + uintptr(uint64(s/uint32(8))/uint64(8))*8)) &= ^(Uint64FromUint64(1) << (uint64(s) & (Uint64FromInt32(8)*Uint64FromInt64(8) - Uint64FromInt32(1)))) + return 0 +} + +func Xsigemptyset(tls *TLS, set uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v set=%v, (%v:)", tls, set, origin(2)) + defer func() { trc("-> %v", r) }() + } + **(**uint64)(__ccgo_up(set)) = uint64(0) + if Bool(uint64(8) == uint64(4)) || Bool(int32(_NSIG) > int32(65)) { + **(**uint64)(__ccgo_up(set + 1*8)) = uint64(0) + } + if Bool(uint64(8) == uint64(4)) && Bool(int32(_NSIG) > int32(65)) { + **(**uint64)(__ccgo_up(set + 2*8)) = uint64(0) + **(**uint64)(__ccgo_up(set + 3*8)) = uint64(0) + } + return 0 +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xsigfillset(tls *TLS, set uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v set=%v, (%v:)", tls, set, origin(2)) + defer func() { trc("-> %v", r) }() + } + **(**uint64)(__ccgo_up(set)) = uint64(0xfffffffc7fffffff) + if int32(_NSIG) > int32(65) { + **(**uint64)(__ccgo_up(set + 1*8)) = uint64(0xffffffffffffffff) + } + return 0 +} + +func Xsigisemptyset(tls *TLS, set uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v set=%v, (%v:)", tls, set, origin(2)) + defer func() { trc("-> %v", r) }() + } + var i Tsize_t + _ = i + i = uint64(0) + for { + if !(i < Uint64FromInt32(Int32FromInt32(_NSIG)/Int32FromInt32(8))/Uint64FromInt64(8)) { + break + } + if **(**uint64)(__ccgo_up(set + uintptr(i)*8)) != 0 { + return 0 + } + goto _1 + _1: + ; + i = i + 1 + } + return int32(1) +} + +func Xsigismember(tls *TLS, set uintptr, sig int32) (r int32) { + if __ccgo_strace { + trc("tls=%v set=%v sig=%v, (%v:)", tls, set, sig, origin(2)) + defer func() { trc("-> %v", r) }() + } + var s uint32 + _ = s + s = Uint32FromInt32(sig - int32(1)) + if s >= Uint32FromInt32(Int32FromInt32(_NSIG)-Int32FromInt32(1)) { + return 0 + } + return BoolInt32(!!(**(**uint64)(__ccgo_up(set + uintptr(uint64(s/uint32(8))/uint64(8))*8))&(Uint64FromUint64(1)<<(uint64(s)&(Uint64FromInt32(8)*Uint64FromInt64(8)-Uint64FromInt32(1)))) != 0)) +} + +func Xsigorset(tls *TLS, dest uintptr, left uintptr, right uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v dest=%v left=%v right=%v, (%v:)", tls, dest, left, right, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var d, l, r uintptr + var i uint64 + _, _, _, _ = d, i, l, r + i = uint64(0) + d = dest + l = left + r = right + for { + if !(i < Uint64FromInt32(Int32FromInt32(_NSIG)/Int32FromInt32(8))/Uint64FromInt64(8)) { + break + } + **(**uint64)(__ccgo_up(d + uintptr(i)*8)) = **(**uint64)(__ccgo_up(l + uintptr(i)*8)) | **(**uint64)(__ccgo_up(r + uintptr(i)*8)) + goto _1 + _1: + ; + i = i + 1 + } + return 0 +} + +func Xsigpending(tls *TLS, set uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v set=%v, (%v:)", tls, set, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_rt_sigpending), int64(set), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8)))))) +} + +func Xsigprocmask(tls *TLS, how int32, set uintptr, old uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v how=%v set=%v old=%v, (%v:)", tls, how, set, old, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + r = _pthread_sigmask(tls, how, set, old) + if !(r != 0) { + return r + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = r + return -int32(1) +} + +func Xsigqueue(tls *TLS, pid Tpid_t, sig int32, value Tsigval) (r1 int32) { + if __ccgo_strace { + trc("tls=%v pid=%v sig=%v value=%v, (%v:)", tls, pid, sig, value, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(256) + defer tls.Free(256) + var r int32 + var _ /* set at bp+128 */ Tsigset_t + var _ /* si at bp+0 */ Tsiginfo_t + _ = r + Xmemset(tls, bp, 0, uint64(128)) + (**(**Tsiginfo_t)(__ccgo_up(bp))).Fsi_signo = sig + (**(**Tsiginfo_t)(__ccgo_up(bp))).Fsi_code = -int32(1) + *(*Tsigval)(unsafe.Pointer(bp + 16 + 8)) = value + *(*Tuid_t)(unsafe.Pointer(bp + 16 + 4)) = Xgetuid(tls) + X__block_app_sigs(tls, bp+128) + *(*Tpid_t)(unsafe.Pointer(bp + 16)) = Xgetpid(tls) + r = int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_rt_sigqueueinfo), int64(pid), int64(sig), int64(bp))))) + X__restore_sigs(tls, bp+128) + return r +} + +func X__libc_current_sigrtmax(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Int32FromInt32(_NSIG) - Int32FromInt32(1) +} + +func X__libc_current_sigrtmin(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(35) +} + +type t__jmp_buf = [23]uint64 + +type Tjmp_buf = [1]t__jmp_buf_tag + +type t__jmp_buf_tag = struct { + F__jb t__jmp_buf + F__fl uint64 + F__ss [16]uint64 +} + +type Tsigjmp_buf = [1]t__jmp_buf_tag + +func X__sigsetjmp_tail(tls *TLS, jb uintptr, ret int32) (r int32) { + if __ccgo_strace { + trc("tls=%v jb=%v ret=%v, (%v:)", tls, jb, ret, origin(2)) + defer func() { trc("-> %v", r) }() + } + var p, v1, v2 uintptr + _, _, _ = p, v1, v2 + p = jb + 192 + if ret != 0 { + v1 = p + } else { + v1 = uintptr(0) + } + if ret != 0 { + v2 = uintptr(0) + } else { + v2 = p + } + X__syscall4(tls, int64(SYS_rt_sigprocmask), int64(Int32FromInt32(SIG_SETMASK)), int64(v1), int64(v2), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8))) + return ret +} + +func Xsigsuspend(tls *TLS, mask uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v mask=%v, (%v:)", tls, mask, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_rt_sigsuspend), int64(mask), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8)), 0, 0, 0, 0)))) +} + +func _do_sigtimedwait(tls *TLS, mask uintptr, si uintptr, ts uintptr) (r int32) { + return int32(___syscall_cp(tls, int64(SYS_rt_sigtimedwait), int64(mask), int64(si), int64(ts), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8)), 0, 0)) +} + +func Xsigtimedwait(tls *TLS, mask uintptr, si uintptr, timeout uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v mask=%v si=%v timeout=%v, (%v:)", tls, mask, si, timeout, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret int32 + _ = ret + for cond := true; cond; cond = ret == -int32(EINTR) { + ret = _do_sigtimedwait(tls, mask, si, timeout) + } + return int32(X__syscall_ret(tls, Uint64FromInt32(ret))) +} + +func Xsigwait(tls *TLS, mask uintptr, sig uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v mask=%v sig=%v, (%v:)", tls, mask, sig, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(128) + defer tls.Free(128) + var _ /* si at bp+0 */ Tsiginfo_t + if Xsigtimedwait(tls, mask, bp, uintptr(0)) < 0 { + return -int32(1) + } + **(**int32)(__ccgo_up(sig)) = (**(**Tsiginfo_t)(__ccgo_up(bp))).Fsi_signo + return 0 +} + +func Xsigwaitinfo(tls *TLS, mask uintptr, si uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v mask=%v si=%v, (%v:)", tls, mask, si, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xsigtimedwait(tls, mask, si, uintptr(0)) +} + +func X__fxstat(tls *TLS, ver int32, fd int32, buf uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v ver=%v fd=%v buf=%v, (%v:)", tls, ver, fd, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfstat(tls, fd, buf) +} + +func X__fxstatat(tls *TLS, ver int32, fd int32, path uintptr, buf uintptr, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v ver=%v fd=%v path=%v buf=%v flag=%v, (%v:)", tls, ver, fd, path, buf, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfstatat(tls, fd, path, buf, flag) +} + +func X__lxstat(tls *TLS, ver int32, path uintptr, buf uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v ver=%v path=%v buf=%v, (%v:)", tls, ver, path, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xlstat(tls, path, buf) +} + +func X__xstat(tls *TLS, ver int32, path uintptr, buf uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v ver=%v path=%v buf=%v, (%v:)", tls, ver, path, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstat(tls, path, buf) +} + +func X__xmknod(tls *TLS, ver int32, path uintptr, mode Tmode_t, dev uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v ver=%v path=%v mode=%v dev=%v, (%v:)", tls, ver, path, mode, dev, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xmknod(tls, path, mode, **(**Tdev_t)(__ccgo_up(dev))) +} + +func X__xmknodat(tls *TLS, ver int32, fd int32, path uintptr, mode Tmode_t, dev uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v ver=%v fd=%v path=%v mode=%v dev=%v, (%v:)", tls, ver, fd, path, mode, dev, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xmknodat(tls, fd, path, mode, **(**Tdev_t)(__ccgo_up(dev))) +} + +func Xchmod(tls *TLS, path uintptr, mode Tmode_t) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v mode=%v, (%v:)", tls, path, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_fchmodat), int64(-Int32FromInt32(100)), int64(path), Int64FromUint32(mode))))) +} + +func Xfchmod(tls *TLS, fd int32, mode Tmode_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v mode=%v, (%v:)", tls, fd, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var ret int32 + var _ /* buf at bp+0 */ [27]int8 + _ = ret + ret = int32(X__syscall2(tls, int64(SYS_fchmod), int64(fd), Int64FromUint32(mode))) + if ret != -int32(EBADF) || X__syscall2(tls, int64(__NR3264_fcntl), int64(fd), int64(Int32FromInt32(F_GETFD))) < 0 { + return int32(X__syscall_ret(tls, Uint64FromInt32(ret))) + } + X__procfdname(tls, bp, Uint32FromInt32(fd)) + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_fchmodat), int64(-Int32FromInt32(100)), int64(bp), Int64FromUint32(mode))))) +} + +func Xfchmodat(tls *TLS, fd int32, path uintptr, mode Tmode_t, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v path=%v mode=%v flag=%v, (%v:)", tls, fd, path, mode, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(160) + defer tls.Free(160) + var fd2, ret, v1 int32 + var _ /* proc at bp+128 */ [27]int8 + var _ /* st at bp+0 */ Tstat + _, _, _ = fd2, ret, v1 + if !(flag != 0) { + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_fchmodat), int64(fd), int64(path), Int64FromUint32(mode))))) + } + ret = int32(X__syscall4(tls, int64(SYS_fchmodat2), int64(fd), int64(path), Int64FromUint32(mode), int64(flag))) + if ret != -int32(ENOSYS) { + return int32(X__syscall_ret(tls, Uint64FromInt32(ret))) + } + if flag != int32(AT_SYMLINK_NOFOLLOW) { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL)))) + } + if Xfstatat(tls, fd, path, bp, flag) != 0 { + return -int32(1) + } + if (**(**Tstat)(__ccgo_up(bp))).Fst_mode&uint32(S_IFMT) == uint32(S_IFLNK) { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EOPNOTSUPP)))) + } + v1 = int32(X__syscall3(tls, int64(SYS_openat), int64(fd), int64(path), int64(Int32FromInt32(O_RDONLY)|Int32FromInt32(O_PATH)|Int32FromInt32(O_NOFOLLOW)|Int32FromInt32(O_NOCTTY)|Int32FromInt32(O_CLOEXEC)))) + fd2 = v1 + if v1 < 0 { + if fd2 == -int32(ELOOP) { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EOPNOTSUPP)))) + } + return int32(X__syscall_ret(tls, Uint64FromInt32(fd2))) + } + X__procfdname(tls, bp+128, Uint32FromInt32(fd2)) + ret = Xstat(tls, bp+128, bp) + if !(ret != 0) { + if (**(**Tstat)(__ccgo_up(bp))).Fst_mode&uint32(S_IFMT) == uint32(S_IFLNK) { + ret = int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EOPNOTSUPP)))) + } else { + ret = int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_fchmodat), int64(-Int32FromInt32(100)), int64(bp+128), Int64FromUint32(mode))))) + } + } + X__syscall1(tls, int64(SYS_close), int64(fd2)) + return ret +} + +func X__fstat(tls *TLS, fd int32, st uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v st=%v, (%v:)", tls, fd, st, origin(2)) + defer func() { trc("-> %v", r) }() + } + if fd < 0 { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EBADF)))) + } + return X__fstatat(tls, fd, __ccgo_ts, st, int32(AT_EMPTY_PATH)) +} + +func Xfstat(tls *TLS, fd int32, st uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v st=%v, (%v:)", tls, fd, st, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fstat(tls, fd, st) +} + +type Tstatx1 = struct { + Fstx_mask Tuint32_t + Fstx_blksize Tuint32_t + Fstx_attributes Tuint64_t + Fstx_nlink Tuint32_t + Fstx_uid Tuint32_t + Fstx_gid Tuint32_t + Fstx_mode Tuint16_t + Fpad1 Tuint16_t + Fstx_ino Tuint64_t + Fstx_size Tuint64_t + Fstx_blocks Tuint64_t + Fstx_attributes_mask Tuint64_t + Fstx_atime struct { + Ftv_sec Tint64_t + Ftv_nsec Tuint32_t + Fpad Tint32_t + } + Fstx_btime struct { + Ftv_sec Tint64_t + Ftv_nsec Tuint32_t + Fpad Tint32_t + } + Fstx_ctime struct { + Ftv_sec Tint64_t + Ftv_nsec Tuint32_t + Fpad Tint32_t + } + Fstx_mtime struct { + Ftv_sec Tint64_t + Ftv_nsec Tuint32_t + Fpad Tint32_t + } + Fstx_rdev_major Tuint32_t + Fstx_rdev_minor Tuint32_t + Fstx_dev_major Tuint32_t + Fstx_dev_minor Tuint32_t + Fspare [14]Tuint64_t +} + +func _fstatat_statx(tls *TLS, fd int32, path uintptr, st uintptr, flag int32) (r int32) { + bp := tls.Alloc(256) + defer tls.Free(256) + var ret int32 + var _ /* stx at bp+0 */ Tstatx1 + _ = ret + flag = flag | int32(AT_NO_AUTOMOUNT) + ret = int32(X__syscall5(tls, int64(SYS_statx), int64(fd), int64(path), int64(flag), int64(Int32FromInt32(0x7ff)), int64(bp))) + if ret != 0 { + return ret + } + **(**Tstat)(__ccgo_up(st)) = Tstat{ + Fst_dev: uint64(uint64((**(**Tstatx1)(__ccgo_up(bp))).Fstx_dev_major)&Uint64FromUint64(0xfffff000)< %v", r) }() + } + var ret int32 + _ = ret + ret = _fstatat_statx(tls, fd, path, st, flag) + return int32(X__syscall_ret(tls, Uint64FromInt32(ret))) +} + +func Xfstatat(tls *TLS, fd int32, path uintptr, st uintptr, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v path=%v st=%v flag=%v, (%v:)", tls, fd, path, st, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fstatat(tls, fd, path, st, flag) +} + +func Xfutimens(tls *TLS, fd int32, times uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v times=%v, (%v:)", tls, fd, times, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xutimensat(tls, fd, uintptr(0), times, 0) +} + +func X__futimesat(tls *TLS, dirfd int32, pathname uintptr, times uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v dirfd=%v pathname=%v times=%v, (%v:)", tls, dirfd, pathname, times, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var i int32 + var v2 uintptr + var _ /* ts at bp+0 */ [2]Ttimespec + _, _ = i, v2 + if times != 0 { + i = 0 + for { + if !(i < int32(2)) { + break + } + if Uint64FromInt64((**(**Ttimeval)(__ccgo_up(times + uintptr(i)*16))).Ftv_usec) >= uint64(1000000) { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL)))) + } + (**(**[2]Ttimespec)(__ccgo_up(bp)))[i].Ftv_sec = (**(**Ttimeval)(__ccgo_up(times + uintptr(i)*16))).Ftv_sec + (**(**[2]Ttimespec)(__ccgo_up(bp)))[i].Ftv_nsec = (**(**Ttimeval)(__ccgo_up(times + uintptr(i)*16))).Ftv_usec * int64(1000) + goto _1 + _1: + ; + i = i + 1 + } + } + if times != 0 { + v2 = bp + } else { + v2 = uintptr(0) + } + return Xutimensat(tls, dirfd, pathname, v2, 0) +} + +func Xfutimesat(tls *TLS, dirfd int32, pathname uintptr, times uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v dirfd=%v pathname=%v times=%v, (%v:)", tls, dirfd, pathname, times, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__futimesat(tls, dirfd, pathname, times) +} + +func Xlchmod(tls *TLS, path uintptr, mode Tmode_t) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v mode=%v, (%v:)", tls, path, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfchmodat(tls, -int32(100), path, mode, int32(AT_SYMLINK_NOFOLLOW)) +} + +func Xlstat(tls *TLS, path uintptr, buf uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v buf=%v, (%v:)", tls, path, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfstatat(tls, -int32(100), path, buf, int32(AT_SYMLINK_NOFOLLOW)) +} + +func Xmkdir(tls *TLS, path uintptr, mode Tmode_t) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v mode=%v, (%v:)", tls, path, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_mkdirat), int64(-Int32FromInt32(100)), int64(path), Int64FromUint32(mode))))) +} + +func Xmkdirat(tls *TLS, fd int32, path uintptr, mode Tmode_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v path=%v mode=%v, (%v:)", tls, fd, path, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_mkdirat), int64(fd), int64(path), Int64FromUint32(mode))))) +} + +func Xmkfifo(tls *TLS, path uintptr, mode Tmode_t) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v mode=%v, (%v:)", tls, path, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xmknod(tls, path, mode|uint32(S_IFIFO), uint64(0)) +} + +func Xmkfifoat(tls *TLS, fd int32, path uintptr, mode Tmode_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v path=%v mode=%v, (%v:)", tls, fd, path, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xmknodat(tls, fd, path, mode|uint32(S_IFIFO), uint64(0)) +} + +func Xmknod(tls *TLS, path uintptr, mode Tmode_t, dev Tdev_t) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v mode=%v dev=%v, (%v:)", tls, path, mode, dev, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_mknodat), int64(-Int32FromInt32(100)), int64(path), Int64FromUint32(mode), Int64FromUint64(dev))))) +} + +func Xmknodat(tls *TLS, fd int32, path uintptr, mode Tmode_t, dev Tdev_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v path=%v mode=%v dev=%v, (%v:)", tls, fd, path, mode, dev, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_mknodat), int64(fd), int64(path), Int64FromUint32(mode), Int64FromUint64(dev))))) +} + +func Xstat(tls *TLS, path uintptr, buf uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v buf=%v, (%v:)", tls, path, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfstatat(tls, -int32(100), path, buf, 0) +} + +func ___statfs(tls *TLS, path uintptr, buf uintptr) (r int32) { + **(**Tstatfs)(__ccgo_up(buf)) = Tstatfs{} + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(__NR3264_statfs), int64(path), int64(buf))))) +} + +func Xfstatfs(tls *TLS, fd int32, buf uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v, (%v:)", tls, fd, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + **(**Tstatfs)(__ccgo_up(buf)) = Tstatfs{} + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(__NR3264_fstatfs), int64(fd), int64(buf))))) +} + +func _fixup(tls *TLS, out uintptr, in uintptr) { + var v1 uint64 + _ = v1 + **(**Tstatvfs)(__ccgo_up(out)) = Tstatvfs{} + (*Tstatvfs)(unsafe.Pointer(out)).Ff_bsize = (*Tstatfs)(unsafe.Pointer(in)).Ff_bsize + if (*Tstatfs)(unsafe.Pointer(in)).Ff_frsize != 0 { + v1 = (*Tstatfs)(unsafe.Pointer(in)).Ff_frsize + } else { + v1 = (*Tstatfs)(unsafe.Pointer(in)).Ff_bsize + } + (*Tstatvfs)(unsafe.Pointer(out)).Ff_frsize = v1 + (*Tstatvfs)(unsafe.Pointer(out)).Ff_blocks = (*Tstatfs)(unsafe.Pointer(in)).Ff_blocks + (*Tstatvfs)(unsafe.Pointer(out)).Ff_bfree = (*Tstatfs)(unsafe.Pointer(in)).Ff_bfree + (*Tstatvfs)(unsafe.Pointer(out)).Ff_bavail = (*Tstatfs)(unsafe.Pointer(in)).Ff_bavail + (*Tstatvfs)(unsafe.Pointer(out)).Ff_files = (*Tstatfs)(unsafe.Pointer(in)).Ff_files + (*Tstatvfs)(unsafe.Pointer(out)).Ff_ffree = (*Tstatfs)(unsafe.Pointer(in)).Ff_ffree + (*Tstatvfs)(unsafe.Pointer(out)).Ff_favail = (*Tstatfs)(unsafe.Pointer(in)).Ff_ffree + (*Tstatvfs)(unsafe.Pointer(out)).Ff_fsid = Uint64FromInt32(**(**int32)(__ccgo_up(in + 56))) + (*Tstatvfs)(unsafe.Pointer(out)).Ff_flag = (*Tstatfs)(unsafe.Pointer(in)).Ff_flags + (*Tstatvfs)(unsafe.Pointer(out)).Ff_namemax = (*Tstatfs)(unsafe.Pointer(in)).Ff_namelen + (*Tstatvfs)(unsafe.Pointer(out)).Ff_type = uint32((*Tstatfs)(unsafe.Pointer(in)).Ff_type) +} + +func Xstatvfs(tls *TLS, path uintptr, buf uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v buf=%v, (%v:)", tls, path, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(128) + defer tls.Free(128) + var _ /* kbuf at bp+0 */ Tstatfs + if ___statfs(tls, path, bp) < 0 { + return -int32(1) + } + _fixup(tls, buf, bp) + return 0 +} + +func Xfstatvfs(tls *TLS, fd int32, buf uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v, (%v:)", tls, fd, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(128) + defer tls.Free(128) + var _ /* kbuf at bp+0 */ Tstatfs + if Xfstatfs(tls, fd, bp) < 0 { + return -int32(1) + } + _fixup(tls, buf, bp) + return 0 +} + +func Xumask(tls *TLS, mode Tmode_t) (r Tmode_t) { + if __ccgo_strace { + trc("tls=%v mode=%v, (%v:)", tls, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Uint32FromInt64(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_umask), Int64FromUint32(mode))))) +} + +func Xutimensat(tls *TLS, fd int32, path uintptr, times uintptr, flags int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v path=%v times=%v flags=%v, (%v:)", tls, fd, path, times, flags, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + if times != 0 && (**(**Ttimespec)(__ccgo_up(times))).Ftv_nsec == int64(UTIME_NOW) && (**(**Ttimespec)(__ccgo_up(times + 1*16))).Ftv_nsec == int64(UTIME_NOW) { + times = uintptr(0) + } + r = int32(X__syscall4(tls, int64(SYS_utimensat), int64(fd), int64(path), int64(times), int64(flags))) + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func X__fclose_ca(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return (*(*func(*TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fclose1})))(tls, f) +} + +func X__fdopen(tls *TLS, fd int32, mode uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v fd=%v mode=%v, (%v:)", tls, fd, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var f, v1 uintptr + var flags, v2 int32 + var _ /* wsz at bp+0 */ Twinsize + _, _, _, _ = f, flags, v1, v2 + /* Check for valid initial mode character */ + if !(Xstrchr(tls, __ccgo_ts+1494, int32(**(**int8)(__ccgo_up(mode)))) != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(0) + } + /* Allocate FILE+buffer or fail */ + v1 = Xmalloc(tls, Uint64FromInt64(232)+Uint64FromInt32(UNGET)+Uint64FromInt32(BUFSIZ)) + f = v1 + if !(v1 != 0) { + return uintptr(0) + } + /* Zero-fill only the struct, not the buffer */ + Xmemset(tls, f, 0, uint64(232)) + /* Impose mode restrictions */ + if !(Xstrchr(tls, mode, int32('+')) != 0) { + if int32(**(**int8)(__ccgo_up(mode))) == int32('r') { + v2 = int32(F_NOWR) + } else { + v2 = int32(F_NORD) + } + (*TFILE)(unsafe.Pointer(f)).Fflags = Uint32FromInt32(v2) + } + /* Apply close-on-exec flag */ + if Xstrchr(tls, mode, int32('e')) != 0 { + X__syscall3(tls, int64(__NR3264_fcntl), int64(fd), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + } + /* Set append mode on fd if opened for append */ + if int32(**(**int8)(__ccgo_up(mode))) == int32('a') { + flags = int32(X__syscall2(tls, int64(__NR3264_fcntl), int64(fd), int64(Int32FromInt32(F_GETFL)))) + if !(flags&Int32FromInt32(O_APPEND) != 0) { + X__syscall3(tls, int64(__NR3264_fcntl), int64(fd), int64(Int32FromInt32(F_SETFL)), int64(flags|Int32FromInt32(O_APPEND))) + } + **(**uint32)(__ccgo_up(f)) |= uint32(F_APP) + } + (*TFILE)(unsafe.Pointer(f)).Ffd = fd + (*TFILE)(unsafe.Pointer(f)).Fbuf = f + uintptr(232) + uintptr(UNGET) + (*TFILE)(unsafe.Pointer(f)).Fbuf_size = uint64(BUFSIZ) + /* Activate line buffered mode for terminals */ + (*TFILE)(unsafe.Pointer(f)).Flbf = -int32(1) + if !((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_NOWR) != 0) && !(X__syscall3(tls, int64(SYS_ioctl), int64(fd), int64(Int32FromInt32(TIOCGWINSZ)), int64(bp)) != 0) { + (*TFILE)(unsafe.Pointer(f)).Flbf = int32('\n') + } + /* Initialize op ptrs. No problem if some are unneeded. */ + (*TFILE)(unsafe.Pointer(f)).Fread = __ccgo_fp(X__stdio_read) + (*TFILE)(unsafe.Pointer(f)).Fwrite = __ccgo_fp(X__stdio_write) + (*TFILE)(unsafe.Pointer(f)).Fseek = __ccgo_fp(X__stdio_seek) + (*TFILE)(unsafe.Pointer(f)).Fclose1 = __ccgo_fp(X__stdio_close) + if !(X__libc.Fthreaded != 0) { + AtomicStorePInt32(f+140, -int32(1)) + } + /* Add new FILE to open file list */ + return X__ofl_add(tls, f) +} + +func Xfdopen(tls *TLS, fd int32, mode uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v fd=%v mode=%v, (%v:)", tls, fd, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fdopen(tls, fd, mode) +} + +func X__fmodeflags(tls *TLS, mode uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v mode=%v, (%v:)", tls, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + var flags int32 + _ = flags + if Xstrchr(tls, mode, int32('+')) != 0 { + flags = int32(O_RDWR) + } else { + if int32(**(**int8)(__ccgo_up(mode))) == int32('r') { + flags = O_RDONLY + } else { + flags = int32(O_WRONLY) + } + } + if Xstrchr(tls, mode, int32('x')) != 0 { + flags = flags | int32(O_EXCL) + } + if Xstrchr(tls, mode, int32('e')) != 0 { + flags = flags | int32(O_CLOEXEC) + } + if int32(**(**int8)(__ccgo_up(mode))) != int32('r') { + flags = flags | int32(O_CREAT) + } + if int32(**(**int8)(__ccgo_up(mode))) == int32('w') { + flags = flags | int32(O_TRUNC) + } + if int32(**(**int8)(__ccgo_up(mode))) == int32('a') { + flags = flags | int32(O_APPEND) + } + return flags +} + +func X__fopen_rb_ca(tls *TLS, filename uintptr, f uintptr, buf uintptr, len1 Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v filename=%v f=%v buf=%v len1=%v, (%v:)", tls, filename, f, buf, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + Xmemset(tls, f, 0, uint64(232)) + (*TFILE)(unsafe.Pointer(f)).Ffd = int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_openat), int64(-Int32FromInt32(100)), int64(filename), int64(Int32FromInt32(O_RDONLY)|Int32FromInt32(O_CLOEXEC)|Int32FromInt32(O_LARGEFILE)))))) + if (*TFILE)(unsafe.Pointer(f)).Ffd < 0 { + return uintptr(0) + } + X__syscall3(tls, int64(__NR3264_fcntl), int64((*TFILE)(unsafe.Pointer(f)).Ffd), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + (*TFILE)(unsafe.Pointer(f)).Fflags = Uint32FromInt32(Int32FromInt32(F_NOWR) | Int32FromInt32(F_PERM)) + (*TFILE)(unsafe.Pointer(f)).Fbuf = buf + uintptr(UNGET) + (*TFILE)(unsafe.Pointer(f)).Fbuf_size = len1 - uint64(UNGET) + (*TFILE)(unsafe.Pointer(f)).Fread = __ccgo_fp(X__stdio_read) + (*TFILE)(unsafe.Pointer(f)).Fseek = __ccgo_fp(X__stdio_seek) + (*TFILE)(unsafe.Pointer(f)).Fclose1 = __ccgo_fp(X__stdio_close) + AtomicStorePInt32(f+140, -int32(1)) + return f +} + +func X__overflow(tls *TLS, f uintptr, _c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v _c=%v, (%v:)", tls, f, _c, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uint8 + var v2, v3 uintptr + var _ /* c at bp+0 */ uint8 + _, _, _ = v1, v2, v3 + **(**uint8)(__ccgo_up(bp)) = Uint8FromInt32(_c) + if !((*TFILE)(unsafe.Pointer(f)).Fwend != 0) && X__towrite(tls, f) != 0 { + return -int32(1) + } + if (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwend && Int32FromUint8(**(**uint8)(__ccgo_up(bp))) != (*TFILE)(unsafe.Pointer(f)).Flbf { + v1 = **(**uint8)(__ccgo_up(bp)) + v3 = f + 40 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + **(**uint8)(__ccgo_up(v2)) = v1 + return Int32FromUint8(v1) + } + if (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tsize_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fwrite})))(tls, f, bp, uint64(1)) != uint64(1) { + return -int32(1) + } + return Int32FromUint8(**(**uint8)(__ccgo_up(bp))) +} + +func _dummy9(tls *TLS, fd int32) (r int32) { + return fd +} + +func X__stdio_close(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_close), int64(_dummy9(tls, (*TFILE)(unsafe.Pointer(f)).Ffd)))))) +} + +var _dummy_file = uintptr(0) + +func _close_file(tls *TLS, f uintptr) { + if !(f != 0) { + return + } + if AtomicLoadPInt32(f+140) >= 0 { + ___lockfile(tls, f) + } + if (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwbase { + (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tsize_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fwrite})))(tls, f, uintptr(0), uint64(0)) + } + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + (*(*func(*TLS, uintptr, Toff_t, int32) Toff_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fseek})))(tls, f, int64((*TFILE)(unsafe.Pointer(f)).Frpos)-int64((*TFILE)(unsafe.Pointer(f)).Frend), int32(1)) + } +} + +func X__stdio_exit(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + var f uintptr + _ = f + f = **(**uintptr)(__ccgo_up(X__ofl_lock(tls))) + for { + if !(f != 0) { + break + } + _close_file(tls, f) + goto _1 + _1: + ; + f = (*TFILE)(unsafe.Pointer(f)).Fnext + } + _close_file(tls, AtomicLoadPUintptr(uintptr(unsafe.Pointer(&X__stdin_used)))) + _close_file(tls, AtomicLoadPUintptr(uintptr(unsafe.Pointer(&X__stdout_used)))) + _close_file(tls, AtomicLoadPUintptr(uintptr(unsafe.Pointer(&X__stderr_used)))) +} + +func X__stdio_exit_needed(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + X__stdio_exit(tls) +} + +func X__stdio_read(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v f=%v buf=%v len1=%v, (%v:)", tls, f, buf, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var cnt Tssize_t + var v1 int64 + var v2 int32 + var v3, v4 uintptr + var _ /* iov at bp+0 */ [2]Tiovec + _, _, _, _, _ = cnt, v1, v2, v3, v4 + **(**[2]Tiovec)(__ccgo_up(bp)) = [2]Tiovec{ + 0: { + Fiov_base: buf, + Fiov_len: len1 - BoolUint64(!!((*TFILE)(unsafe.Pointer(f)).Fbuf_size != 0)), + }, + 1: { + Fiov_base: (*TFILE)(unsafe.Pointer(f)).Fbuf, + Fiov_len: (*TFILE)(unsafe.Pointer(f)).Fbuf_size, + }, + } + if (**(**[2]Tiovec)(__ccgo_up(bp)))[0].Fiov_len != 0 { + v1 = X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_readv), int64((*TFILE)(unsafe.Pointer(f)).Ffd), int64(bp), int64(Int32FromInt32(2))))) + } else { + v1 = X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_read), int64((*TFILE)(unsafe.Pointer(f)).Ffd), int64((**(**[2]Tiovec)(__ccgo_up(bp)))[int32(1)].Fiov_base), Int64FromUint64((**(**[2]Tiovec)(__ccgo_up(bp)))[int32(1)].Fiov_len)))) + } + cnt = v1 + if cnt <= 0 { + if cnt != 0 { + v2 = int32(F_ERR) + } else { + v2 = int32(F_EOF) + } + **(**uint32)(__ccgo_up(f)) |= Uint32FromInt32(v2) + return uint64(0) + } + if Uint64FromInt64(cnt) <= (**(**[2]Tiovec)(__ccgo_up(bp)))[0].Fiov_len { + return Uint64FromInt64(cnt) + } + cnt = Int64FromUint64(uint64(cnt) - (**(**[2]Tiovec)(__ccgo_up(bp)))[0].Fiov_len) + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Frend = (*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr(cnt) + if (*TFILE)(unsafe.Pointer(f)).Fbuf_size != 0 { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + **(**uint8)(__ccgo_up(buf + uintptr(len1-uint64(1)))) = **(**uint8)(__ccgo_up(v3)) + } + return len1 +} + +func X__stdio_seek(tls *TLS, f uintptr, off Toff_t, whence int32) (r Toff_t) { + if __ccgo_strace { + trc("tls=%v f=%v off=%v whence=%v, (%v:)", tls, f, off, whence, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lseek(tls, (*TFILE)(unsafe.Pointer(f)).Ffd, off, whence) +} + +func X__stdio_write(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v f=%v buf=%v len1=%v, (%v:)", tls, f, buf, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var cnt Tssize_t + var iov, v2, v3 uintptr + var iovcnt int32 + var rem Tsize_t + var v5 uint64 + var _ /* iovs at bp+0 */ [2]Tiovec + _, _, _, _, _, _, _ = cnt, iov, iovcnt, rem, v2, v3, v5 + **(**[2]Tiovec)(__ccgo_up(bp)) = [2]Tiovec{ + 0: { + Fiov_base: (*TFILE)(unsafe.Pointer(f)).Fwbase, + Fiov_len: Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Fwpos) - int64((*TFILE)(unsafe.Pointer(f)).Fwbase)), + }, + 1: { + Fiov_base: buf, + Fiov_len: len1, + }, + } + iov = bp + rem = (**(**Tiovec)(__ccgo_up(iov))).Fiov_len + (**(**Tiovec)(__ccgo_up(iov + 1*16))).Fiov_len + iovcnt = int32(2) + for { + cnt = X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_writev), int64((*TFILE)(unsafe.Pointer(f)).Ffd), int64(iov), int64(iovcnt)))) + if Uint64FromInt64(cnt) == rem { + (*TFILE)(unsafe.Pointer(f)).Fwend = (*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr((*TFILE)(unsafe.Pointer(f)).Fbuf_size) + v2 = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Fwbase = v2 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v2 + return len1 + } + if cnt < 0 { + v3 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Fwend = v3 + v2 = v3 + (*TFILE)(unsafe.Pointer(f)).Fwbase = v2 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v2 + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) + if iovcnt == int32(2) { + v5 = uint64(0) + } else { + v5 = len1 - (**(**Tiovec)(__ccgo_up(iov))).Fiov_len + } + return v5 + } + rem = rem - Uint64FromInt64(cnt) + if Uint64FromInt64(cnt) > (**(**Tiovec)(__ccgo_up(iov))).Fiov_len { + cnt = Int64FromUint64(uint64(cnt) - (**(**Tiovec)(__ccgo_up(iov))).Fiov_len) + iov += 16 + iovcnt = iovcnt - 1 + } + (**(**Tiovec)(__ccgo_up(iov))).Fiov_base = (**(**Tiovec)(__ccgo_up(iov))).Fiov_base + uintptr(cnt) + (**(**Tiovec)(__ccgo_up(iov))).Fiov_len -= Uint64FromInt64(cnt) + goto _1 + _1: + } + return r +} + +func X__stdout_write(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v f=%v buf=%v len1=%v, (%v:)", tls, f, buf, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* wsz at bp+0 */ Twinsize + (*TFILE)(unsafe.Pointer(f)).Fwrite = __ccgo_fp(X__stdio_write) + if !((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_SVB) != 0) && X__syscall3(tls, int64(SYS_ioctl), int64((*TFILE)(unsafe.Pointer(f)).Ffd), int64(Int32FromInt32(TIOCGWINSZ)), int64(bp)) != 0 { + (*TFILE)(unsafe.Pointer(f)).Flbf = -int32(1) + } + return X__stdio_write(tls, f, buf, len1) +} + +func X__toread(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1, v2 uintptr + var v4 int32 + _, _, _ = v1, v2, v4 + **(**int32)(__ccgo_up(f + 136)) |= (*TFILE)(unsafe.Pointer(f)).Fmode - int32(1) + if (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwbase { + (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tsize_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fwrite})))(tls, f, uintptr(0), uint64(0)) + } + v2 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Fwend = v2 + v1 = v2 + (*TFILE)(unsafe.Pointer(f)).Fwbase = v1 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v1 + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_NORD) != 0 { + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) + return -int32(1) + } + v1 = (*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr((*TFILE)(unsafe.Pointer(f)).Fbuf_size) + (*TFILE)(unsafe.Pointer(f)).Frend = v1 + (*TFILE)(unsafe.Pointer(f)).Frpos = v1 + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_EOF) != 0 { + v4 = -int32(1) + } else { + v4 = 0 + } + return v4 +} + +func X__toread_needs_stdio_exit(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + X__stdio_exit_needed(tls) +} + +func X__towrite(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 uintptr + _ = v1 + **(**int32)(__ccgo_up(f + 136)) |= (*TFILE)(unsafe.Pointer(f)).Fmode - int32(1) + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_NOWR) != 0 { + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) + return -int32(1) + } + /* Clear read buffer (easier than summoning nasal demons) */ + v1 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Frend = v1 + (*TFILE)(unsafe.Pointer(f)).Frpos = v1 + /* Activate write through the buffer. */ + v1 = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Fwbase = v1 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v1 + (*TFILE)(unsafe.Pointer(f)).Fwend = (*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr((*TFILE)(unsafe.Pointer(f)).Fbuf_size) + return 0 +} + +func X__towrite_needs_stdio_exit(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + X__stdio_exit_needed(tls) +} + +/* This function assumes it will never be called if there is already + * data buffered for reading. */ + +func X__uflow(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* c at bp+0 */ uint8 + if !(X__toread(tls, f) != 0) && (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tsize_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fread})))(tls, f, bp, uint64(1)) == uint64(1) { + return Int32FromUint8(**(**uint8)(__ccgo_up(bp))) + } + return -int32(1) +} + +func Xasprintf(tls *TLS, s uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v va=%v, (%v:)", tls, s, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvasprintf(tls, s, fmt, ap) + _ = ap + return ret +} + +func Xclearerr(tls *TLS, f uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } + var __need_unlock, v1 int32 + _, _ = __need_unlock, v1 + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + **(**uint32)(__ccgo_up(f)) &= Uint32FromInt32(^(Int32FromInt32(F_EOF) | Int32FromInt32(F_ERR))) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } +} + +func Xclearerr_unlocked(tls *TLS, f uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } + Xclearerr(tls, f) +} + +func Xdprintf(tls *TLS, fd int32, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v fmt=%v va=%v, (%v:)", tls, fd, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvdprintf(tls, fd, fmt, ap) + _ = ap + return ret +} + +const FSETLOCKING_BYCALLER = 2 +const FSETLOCKING_INTERNAL = 1 +const FSETLOCKING_QUERY = 0 + +func X_flushlbf(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + Xfflush(tls, uintptr(0)) +} + +func X__fsetlocking(tls *TLS, f uintptr, type1 int32) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v type1=%v, (%v:)", tls, f, type1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return 0 +} + +func X__fwriting(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32((*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_NORD) != 0 || (*TFILE)(unsafe.Pointer(f)).Fwend != 0) +} + +func X__freading(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32((*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_NOWR) != 0 || (*TFILE)(unsafe.Pointer(f)).Frend != 0) +} + +func X__freadable(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(!((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_NORD) != 0)) +} + +func X__fwritable(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(!((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_NOWR) != 0)) +} + +func X__flbf(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32((*TFILE)(unsafe.Pointer(f)).Flbf >= 0) +} + +func X__fbufsize(tls *TLS, f uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return (*TFILE)(unsafe.Pointer(f)).Fbuf_size +} + +func X__fpending(tls *TLS, f uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int64 + _ = v1 + if (*TFILE)(unsafe.Pointer(f)).Fwend != 0 { + v1 = int64((*TFILE)(unsafe.Pointer(f)).Fwpos) - int64((*TFILE)(unsafe.Pointer(f)).Fwbase) + } else { + v1 = 0 + } + return Uint64FromInt64(v1) +} + +func X__fpurge(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1, v2 uintptr + _, _ = v1, v2 + if !(f != 0) { // libbsd fpurge test fails w/o this. + return int32(1) + } + v2 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Fwend = v2 + v1 = v2 + (*TFILE)(unsafe.Pointer(f)).Fwbase = v1 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v1 + v1 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Frend = v1 + (*TFILE)(unsafe.Pointer(f)).Frpos = v1 + return 0 +} + +func Xfpurge(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fpurge(tls, f) +} + +func X__freadahead(tls *TLS, f uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int64 + _ = v1 + if (*TFILE)(unsafe.Pointer(f)).Frend != 0 { + v1 = int64((*TFILE)(unsafe.Pointer(f)).Frend) - int64((*TFILE)(unsafe.Pointer(f)).Frpos) + } else { + v1 = 0 + } + return Uint64FromInt64(v1) +} + +func X__freadptr(tls *TLS, f uintptr, sizep uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v sizep=%v, (%v:)", tls, f, sizep, origin(2)) + defer func() { trc("-> %v", r) }() + } + if (*TFILE)(unsafe.Pointer(f)).Frpos == (*TFILE)(unsafe.Pointer(f)).Frend { + return uintptr(0) + } + **(**Tsize_t)(__ccgo_up(sizep)) = Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Frend) - int64((*TFILE)(unsafe.Pointer(f)).Frpos)) + return (*TFILE)(unsafe.Pointer(f)).Frpos +} + +func X__freadptrinc(tls *TLS, f uintptr, inc Tsize_t) { + if __ccgo_strace { + trc("tls=%v f=%v inc=%v, (%v:)", tls, f, inc, origin(2)) + } + **(**uintptr)(__ccgo_up(f + 8)) += uintptr(inc) +} + +func X__fseterr(tls *TLS, f uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) +} + +func _dummy10(tls *TLS, f uintptr) { +} + +func Xfclose(tls *TLS, f uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var __need_unlock, r, v1 int32 + var head uintptr + _, _, _, _ = __need_unlock, head, r, v1 + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + r = Xfflush(tls, f) + r = r | (*(*func(*TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fclose1})))(tls, f) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + /* Past this point, f is closed and any further explict access + * to it is undefined. However, it still exists as an entry in + * the open file list and possibly in the thread's locked files + * list, if it was closed while explicitly locked. Functions + * which process these lists must tolerate dead FILE objects + * (which necessarily have inactive buffer pointers) without + * producing any side effects. */ + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_PERM) != 0 { + return r + } + X__unlist_locked_file(tls, f) + head = X__ofl_lock(tls) + if (*TFILE)(unsafe.Pointer(f)).Fprev != 0 { + (*TFILE)(unsafe.Pointer((*TFILE)(unsafe.Pointer(f)).Fprev)).Fnext = (*TFILE)(unsafe.Pointer(f)).Fnext + } + if (*TFILE)(unsafe.Pointer(f)).Fnext != 0 { + (*TFILE)(unsafe.Pointer((*TFILE)(unsafe.Pointer(f)).Fnext)).Fprev = (*TFILE)(unsafe.Pointer(f)).Fprev + } + if **(**uintptr)(__ccgo_up(head)) == f { + **(**uintptr)(__ccgo_up(head)) = (*TFILE)(unsafe.Pointer(f)).Fnext + } + X__ofl_unlock(tls) + Xfree(tls, (*TFILE)(unsafe.Pointer(f)).Fgetln_buf) + Xfree(tls, f) + return r +} + +func Xfeof(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, ret, v1 int32 + _, _, _ = __need_unlock, ret, v1 + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + ret = BoolInt32(!!((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_EOF) != 0)) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return ret +} + +func X_IO_feof_unlocked(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfeof(tls, f) +} + +func Xfeof_unlocked(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfeof(tls, f) +} + +func Xferror(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, ret, v1 int32 + _, _, _ = __need_unlock, ret, v1 + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + ret = BoolInt32(!!((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_ERR) != 0)) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return ret +} + +func X_IO_ferror_unlocked(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xferror(tls, f) +} + +func Xferror_unlocked(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xferror(tls, f) +} + +// C documentation +// +// /* stdout.c will override this if linked */ +var _dummy11 = uintptr(0) + +func Xfflush(tls *TLS, f uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var __need_unlock, __need_unlock1, r, v2 int32 + var v4, v5 uintptr + _, _, _, _, _, _ = __need_unlock, __need_unlock1, r, v2, v4, v5 + if !(f != 0) { + r = 0 + if AtomicLoadPUintptr(uintptr(unsafe.Pointer(&X__stdout_used))) != 0 { + r = r | Xfflush(tls, AtomicLoadPUintptr(uintptr(unsafe.Pointer(&X__stdout_used)))) + } + if AtomicLoadPUintptr(uintptr(unsafe.Pointer(&X__stderr_used))) != 0 { + r = r | Xfflush(tls, AtomicLoadPUintptr(uintptr(unsafe.Pointer(&X__stderr_used)))) + } + f = **(**uintptr)(__ccgo_up(X__ofl_lock(tls))) + for { + if !(f != 0) { + break + } + if AtomicLoadPInt32(f+140) >= 0 { + v2 = ___lockfile(tls, f) + } else { + v2 = 0 + } + __need_unlock = v2 + if (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwbase { + r = r | Xfflush(tls, f) + } + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + goto _1 + _1: + ; + f = (*TFILE)(unsafe.Pointer(f)).Fnext + } + X__ofl_unlock(tls) + return r + } + if AtomicLoadPInt32(f+140) >= 0 { + v2 = ___lockfile(tls, f) + } else { + v2 = 0 + } + __need_unlock1 = v2 + /* If writing, flush output */ + if (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwbase { + (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tsize_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fwrite})))(tls, f, uintptr(0), uint64(0)) + if !((*TFILE)(unsafe.Pointer(f)).Fwpos != 0) { + if __need_unlock1 != 0 { + ___unlockfile(tls, f) + } + return -int32(1) + } + } + /* If reading, sync position, per POSIX */ + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + (*(*func(*TLS, uintptr, Toff_t, int32) Toff_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fseek})))(tls, f, int64((*TFILE)(unsafe.Pointer(f)).Frpos)-int64((*TFILE)(unsafe.Pointer(f)).Frend), int32(1)) + } + /* Clear read and write modes */ + v5 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Fwend = v5 + v4 = v5 + (*TFILE)(unsafe.Pointer(f)).Fwbase = v4 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v4 + v4 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Frend = v4 + (*TFILE)(unsafe.Pointer(f)).Frpos = v4 + if __need_unlock1 != 0 { + ___unlockfile(tls, f) + } + return 0 +} + +func Xfflush_unlocked(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfflush(tls, f) +} + +func _locking_getc(tls *TLS, f uintptr) (r1 int32) { + var c, old, old1, r, v, v10, v14, v17, v2, v6, v8 int32 + var v1, v11, v12, v13 uintptr + var v4 bool + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = c, old, old1, r, v, v1, v10, v11, v12, v13, v14, v17, v2, v4, v6, v8 + v1 = f + 140 + // __asm__ __volatile__ ("dbar 0" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 49, __ccgo_ts+1498) + for { + // __asm__ __volatile__ ( + // + // "ll.w %0, %1" + // : "=r"(v) + // : "ZC"(*p)); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 5, __ccgo_ts+1498) + v6 = v + goto _7 + _7: + old = v6 + goto _5 + _5: + ; + if v4 = old == 0; v4 { + // __asm__ __volatile__ ( + // + // "sc.w %0, %1" + // : "=r"(r), "=ZC"(*p) + // : "0"(v) : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 16, __ccgo_ts+1498) + v2 = r + goto _3 + _3: + } + if !(v4 && !(v2 != 0)) { + break + } + } + // __asm__ __volatile__ ("dbar 0" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 49, __ccgo_ts+1498) + v8 = old + goto _9 +_9: + if v8 != 0 { + ___lockfile(tls, f) + } + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + v11 = f + 8 + v1 = *(*uintptr)(unsafe.Pointer(v11)) + *(*uintptr)(unsafe.Pointer(v11)) = *(*uintptr)(unsafe.Pointer(v11)) + 1 + v2 = Int32FromUint8(**(**uint8)(__ccgo_up(v1))) + } else { + v2 = X__uflow(tls, f) + } + c = v2 + v12 = f + 140 + // __asm__ __volatile__ ("dbar 0" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 49, __ccgo_ts+1498) + for { + // __asm__ __volatile__ ( + // + // "ll.w %0, %1" + // : "=r"(v) + // : "ZC"(*p)); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 5, __ccgo_ts+1498) + v8 = v + goto _18 + _18: + old1 = v8 + goto _16 + _16: + ; + // __asm__ __volatile__ ( + // + // "sc.w %0, %1" + // : "=r"(r), "=ZC"(*p) + // : "0"(v) : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 16, __ccgo_ts+1498) + v6 = r + goto _15 + _15: + ; + if !!(v6 != 0) { + break + } + } + // __asm__ __volatile__ ("dbar 0" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 49, __ccgo_ts+1498) + v10 = old1 + goto _20 +_20: + if v10&int32(MAYBE_WAITERS) != 0 { + v13 = f + 140 + v14 = int32(1) + v17 = int32(1) + if v17 != 0 { + v17 = int32(FUTEX_PRIVATE) + } + if v14 < Int32FromInt32(0) { + v14 = int32(INT_MAX) + } + _ = X__syscall3(tls, int64(SYS_futex), int64(v13), int64(Int32FromInt32(FUTEX_WAKE)|v17), int64(v14)) != int64(-int32(ENOSYS)) || X__syscall3(tls, int64(SYS_futex), int64(v13), int64(Int32FromInt32(FUTEX_WAKE)), int64(v14)) != 0 + } + return c +} + +func Xfgetc(tls *TLS, f1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f1=%v, (%v:)", tls, f1, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l, v2, v4 int32 + var v1, v5, v6 uintptr + _, _, _, _, _, _ = l, v1, v2, v4, v5, v6 + v1 = f1 + l = AtomicLoadPInt32(v1 + 140) + if l < 0 || l != 0 && l & ^Int32FromInt32(MAYBE_WAITERS) == (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Ftid { + if (*TFILE)(unsafe.Pointer(v1)).Frpos != (*TFILE)(unsafe.Pointer(v1)).Frend { + v6 = v1 + 8 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + v4 = Int32FromUint8(**(**uint8)(__ccgo_up(v5))) + } else { + v4 = X__uflow(tls, v1) + } + v2 = v4 + goto _3 + } + v2 = _locking_getc(tls, v1) + goto _3 +_3: + return v2 +} + +func Xfgetln(tls *TLS, f uintptr, plen uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v plen=%v, (%v:)", tls, f, plen, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var __need_unlock, v1, v2 int32 + var l, v8 Tssize_t + var ret, z, v3, v4 uintptr + var v6 bool + _, _, _, _, _, _, _, _, _, _ = __need_unlock, l, ret, z, v1, v2, v3, v4, v6, v8 + ret = uintptr(0) + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v2 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v2 = X__uflow(tls, f) + } + Xungetc(tls, v2, f) + if v6 = (*TFILE)(unsafe.Pointer(f)).Frend != 0; v6 { + v3 = Xmemchr(tls, (*TFILE)(unsafe.Pointer(f)).Frpos, int32('\n'), Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Frend)-int64((*TFILE)(unsafe.Pointer(f)).Frpos))) + z = v3 + } + if v6 && v3 != 0 { + ret = (*TFILE)(unsafe.Pointer(f)).Frpos + z = z + 1 + v3 = z + **(**Tsize_t)(__ccgo_up(plen)) = Uint64FromInt64(int64(v3) - int64(ret)) + (*TFILE)(unsafe.Pointer(f)).Frpos = z + } else { + *(*[1]Tsize_t)(unsafe.Pointer(bp)) = [1]Tsize_t{} + v8 = Xgetline(tls, f+168, bp, f) + l = v8 + if v8 > 0 { + **(**Tsize_t)(__ccgo_up(plen)) = Uint64FromInt64(l) + ret = (*TFILE)(unsafe.Pointer(f)).Fgetln_buf + } + } + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return ret +} + +func Xfgetpos(tls *TLS, f uintptr, pos uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v pos=%v, (%v:)", tls, f, pos, origin(2)) + defer func() { trc("-> %v", r) }() + } + var off Toff_t + _ = off + off = X__ftello(tls, f) + if off < 0 { + return -int32(1) + } + **(**int64)(__ccgo_up(pos)) = off + return 0 +} + +func Xfgets(tls *TLS, s uintptr, n int32, f uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v f=%v, (%v:)", tls, s, n, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, c, v1, v4 int32 + var k Tsize_t + var p, z, v6, v7 uintptr + var v2 int64 + var v3 uint64 + var v8 int8 + _, _, _, _, _, _, _, _, _, _, _, _ = __need_unlock, c, k, p, z, v1, v2, v3, v4, v6, v7, v8 + p = s + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + if n <= int32(1) { + **(**int32)(__ccgo_up(f + 136)) |= (*TFILE)(unsafe.Pointer(f)).Fmode - int32(1) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + if n < int32(1) { + return uintptr(0) + } + **(**int8)(__ccgo_up(s)) = 0 + return s + } + n = n - 1 + for n != 0 { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + z = Xmemchr(tls, (*TFILE)(unsafe.Pointer(f)).Frpos, int32('\n'), Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Frend)-int64((*TFILE)(unsafe.Pointer(f)).Frpos))) + if z != 0 { + v2 = int64(z) - int64((*TFILE)(unsafe.Pointer(f)).Frpos) + int64(1) + } else { + v2 = int64((*TFILE)(unsafe.Pointer(f)).Frend) - int64((*TFILE)(unsafe.Pointer(f)).Frpos) + } + k = Uint64FromInt64(v2) + if k < Uint64FromInt32(n) { + v3 = k + } else { + v3 = Uint64FromInt32(n) + } + k = v3 + Xmemcpy(tls, p, (*TFILE)(unsafe.Pointer(f)).Frpos, k) + **(**uintptr)(__ccgo_up(f + 8)) += uintptr(k) + p = p + uintptr(k) + n = Int32FromUint64(uint64(n) - k) + if z != 0 || !(n != 0) { + break + } + } + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + v7 = f + 8 + v6 = *(*uintptr)(unsafe.Pointer(v7)) + *(*uintptr)(unsafe.Pointer(v7)) = *(*uintptr)(unsafe.Pointer(v7)) + 1 + v4 = Int32FromUint8(**(**uint8)(__ccgo_up(v6))) + } else { + v4 = X__uflow(tls, f) + } + v1 = v4 + c = v1 + if v1 < 0 { + if p == s || !((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_EOF) != 0) { + s = uintptr(0) + } + break + } + n = n - 1 + v8 = int8(c) + v6 = p + p = p + 1 + **(**int8)(__ccgo_up(v6)) = v8 + if int32(v8) == int32('\n') { + break + } + } + if s != 0 { + **(**int8)(__ccgo_up(p)) = 0 + } + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return s +} + +func Xfgets_unlocked(tls *TLS, s uintptr, n int32, f uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v f=%v, (%v:)", tls, s, n, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfgets(tls, s, n, f) +} + +func ___fgetwc_unlocked_internal(tls *TLS, f uintptr) (r Twint_t) { + bp := tls.Alloc(32) + defer tls.Free(32) + var c, first, v1, v2 int32 + var l Tsize_t + var v3, v4 uintptr + var _ /* b at bp+16 */ uint8 + var _ /* st at bp+8 */ Tmbstate_t + var _ /* wc at bp+0 */ Twchar_t + _, _, _, _, _, _, _ = c, first, l, v1, v2, v3, v4 + /* Convert character from buffer if possible */ + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + l = Uint64FromInt32(Xmbtowc(tls, bp, (*TFILE)(unsafe.Pointer(f)).Frpos, Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Frend)-int64((*TFILE)(unsafe.Pointer(f)).Frpos)))) + if l+uint64(1) >= uint64(1) { + **(**uintptr)(__ccgo_up(f + 8)) += uintptr(l + BoolUint64(!(l != 0))) /* l==0 means 1 byte, null */ + return Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp))) + } + } + /* Convert character byte-by-byte */ + **(**Tmbstate_t)(__ccgo_up(bp + 8)) = Tmbstate_t{} + first = int32(1) + for cond := true; cond; cond = l == Uint64FromInt32(-Int32FromInt32(2)) { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v2 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v2 = X__uflow(tls, f) + } + v1 = v2 + c = v1 + **(**uint8)(__ccgo_up(bp + 16)) = Uint8FromInt32(v1) + if c < 0 { + if !(first != 0) { + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EILSEQ) + } + return uint32(0xffffffff) + } + l = Xmbrtowc(tls, bp, bp+16, uint64(1), bp+8) + if l == Uint64FromInt32(-Int32FromInt32(1)) { + if !(first != 0) { + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) + Xungetc(tls, Int32FromUint8(**(**uint8)(__ccgo_up(bp + 16))), f) + } + return uint32(0xffffffff) + } + first = 0 + } + return Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp))) +} + +func X__fgetwc_unlocked(tls *TLS, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var loc Tlocale_t + var ploc uintptr + var wc Twchar_t + _, _, _ = loc, ploc, wc + ploc = uintptr(___get_tp(tls)) + 152 + loc = **(**Tlocale_t)(__ccgo_up(ploc)) + if (*TFILE)(unsafe.Pointer(f)).Fmode <= 0 { + Xfwide(tls, f, int32(1)) + } + **(**Tlocale_t)(__ccgo_up(ploc)) = (*TFILE)(unsafe.Pointer(f)).Flocale + wc = Int32FromUint32(___fgetwc_unlocked_internal(tls, f)) + **(**Tlocale_t)(__ccgo_up(ploc)) = loc + return Uint32FromInt32(wc) +} + +func Xfgetwc(tls *TLS, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, v1 int32 + var c Twint_t + _, _, _ = __need_unlock, c, v1 + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + c = X__fgetwc_unlocked(tls, f) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return c +} + +func Xfgetwc_unlocked(tls *TLS, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fgetwc_unlocked(tls, f) +} + +func Xgetwc_unlocked(tls *TLS, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fgetwc_unlocked(tls, f) +} + +func Xfgetws(tls *TLS, s uintptr, n int32, f uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v f=%v, (%v:)", tls, s, n, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, v1 int32 + var c Twint_t + var p, v4 uintptr + _, _, _, _, _ = __need_unlock, c, p, v1, v4 + p = s + v1 = n + n = n - 1 + if !(v1 != 0) { + return s + } + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + for { + if !(n != 0) { + break + } + c = X__fgetwc_unlocked(tls, f) + if c == uint32(0xffffffff) { + break + } + v4 = p + p += 4 + **(**Twchar_t)(__ccgo_up(v4)) = Int32FromUint32(c) + if c == uint32('\n') { + break + } + goto _3 + _3: + ; + n = n - 1 + } + **(**Twchar_t)(__ccgo_up(p)) = 0 + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_ERR) != 0 { + p = s + } + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + if p == s { + v4 = UintptrFromInt32(0) + } else { + v4 = s + } + return v4 +} + +func Xfgetws_unlocked(tls *TLS, s uintptr, n int32, f uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v f=%v, (%v:)", tls, s, n, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfgetws(tls, s, n, f) +} + +func Xfileno(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, fd, v1 int32 + _, _, _ = __need_unlock, fd, v1 + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + fd = (*TFILE)(unsafe.Pointer(f)).Ffd + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + if fd < 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EBADF) + return -int32(1) + } + return fd +} + +func Xfileno_unlocked(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfileno(tls, f) +} + +func Xflockfile(tls *TLS, f uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } + if !(Xftrylockfile(tls, f) != 0) { + return + } + ___lockfile(tls, f) + X__register_locked_file(tls, f, uintptr(___get_tp(tls))) +} + +type Tcookie = struct { + Fpos Tsize_t + Flen1 Tsize_t + Fsize Tsize_t + Fbuf uintptr + Fmode int32 +} + +type Tmem_FILE = struct { + Ff TFILE + Fc Tcookie + Fbuf [1032]uint8 +} + +func _mseek(tls *TLS, f uintptr, off Toff_t, whence int32) (r Toff_t) { + bp := tls.Alloc(32) + defer tls.Free(32) + var base Tssize_t + var c uintptr + var v2 Tsize_t + _, _, _ = base, c, v2 + c = (*TFILE)(unsafe.Pointer(f)).Fcookie + if !(Uint32FromInt32(whence) > uint32(2)) { + goto _1 + } + goto fail +fail: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return int64(-int32(1)) +_1: + ; + *(*[3]Tsize_t)(unsafe.Pointer(bp)) = [3]Tsize_t{ + 1: (*Tcookie)(unsafe.Pointer(c)).Fpos, + 2: (*Tcookie)(unsafe.Pointer(c)).Flen1, + } + base = Int64FromUint64(**(**Tsize_t)(__ccgo_up(bp + uintptr(whence)*8))) + if off < -base || off > Int64FromUint64((*Tcookie)(unsafe.Pointer(c)).Fsize)-base { + goto fail + } + v2 = Uint64FromInt64(base + off) + (*Tcookie)(unsafe.Pointer(c)).Fpos = v2 + return Int64FromUint64(v2) +} + +func _mread(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + var c uintptr + var rem Tsize_t + _, _ = c, rem + c = (*TFILE)(unsafe.Pointer(f)).Fcookie + rem = (*Tcookie)(unsafe.Pointer(c)).Flen1 - (*Tcookie)(unsafe.Pointer(c)).Fpos + if (*Tcookie)(unsafe.Pointer(c)).Fpos > (*Tcookie)(unsafe.Pointer(c)).Flen1 { + rem = uint64(0) + } + if len1 > rem { + len1 = rem + **(**uint32)(__ccgo_up(f)) |= uint32(F_EOF) + } + Xmemcpy(tls, buf, (*Tcookie)(unsafe.Pointer(c)).Fbuf+uintptr((*Tcookie)(unsafe.Pointer(c)).Fpos), len1) + **(**Tsize_t)(__ccgo_up(c)) += len1 + rem = rem - len1 + if rem > (*TFILE)(unsafe.Pointer(f)).Fbuf_size { + rem = (*TFILE)(unsafe.Pointer(f)).Fbuf_size + } + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Frend = (*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr(rem) + Xmemcpy(tls, (*TFILE)(unsafe.Pointer(f)).Frpos, (*Tcookie)(unsafe.Pointer(c)).Fbuf+uintptr((*Tcookie)(unsafe.Pointer(c)).Fpos), rem) + **(**Tsize_t)(__ccgo_up(c)) += rem + return len1 +} + +func _mwrite(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + var c uintptr + var len2, rem Tsize_t + _, _, _ = c, len2, rem + c = (*TFILE)(unsafe.Pointer(f)).Fcookie + len2 = Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Fwpos) - int64((*TFILE)(unsafe.Pointer(f)).Fwbase)) + if len2 != 0 { + (*TFILE)(unsafe.Pointer(f)).Fwpos = (*TFILE)(unsafe.Pointer(f)).Fwbase + if _mwrite(tls, f, (*TFILE)(unsafe.Pointer(f)).Fwpos, len2) < len2 { + return uint64(0) + } + } + if (*Tcookie)(unsafe.Pointer(c)).Fmode == int32('a') { + (*Tcookie)(unsafe.Pointer(c)).Fpos = (*Tcookie)(unsafe.Pointer(c)).Flen1 + } + rem = (*Tcookie)(unsafe.Pointer(c)).Fsize - (*Tcookie)(unsafe.Pointer(c)).Fpos + if len1 > rem { + len1 = rem + } + Xmemcpy(tls, (*Tcookie)(unsafe.Pointer(c)).Fbuf+uintptr((*Tcookie)(unsafe.Pointer(c)).Fpos), buf, len1) + **(**Tsize_t)(__ccgo_up(c)) += len1 + if (*Tcookie)(unsafe.Pointer(c)).Fpos > (*Tcookie)(unsafe.Pointer(c)).Flen1 { + (*Tcookie)(unsafe.Pointer(c)).Flen1 = (*Tcookie)(unsafe.Pointer(c)).Fpos + if (*Tcookie)(unsafe.Pointer(c)).Flen1 < (*Tcookie)(unsafe.Pointer(c)).Fsize { + **(**uint8)(__ccgo_up((*Tcookie)(unsafe.Pointer(c)).Fbuf + uintptr((*Tcookie)(unsafe.Pointer(c)).Flen1))) = uint8(0) + } else { + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_NORD) != 0 && (*Tcookie)(unsafe.Pointer(c)).Fsize != 0 { + **(**uint8)(__ccgo_up((*Tcookie)(unsafe.Pointer(c)).Fbuf + uintptr((*Tcookie)(unsafe.Pointer(c)).Fsize-uint64(1)))) = uint8(0) + } + } + } + return len1 +} + +func _mclose(tls *TLS, m uintptr) (r int32) { + return 0 +} + +func Xfmemopen(tls *TLS, buf uintptr, size Tsize_t, mode uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v buf=%v size=%v mode=%v, (%v:)", tls, buf, size, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + var f uintptr + var plus, v2 int32 + var v1 uint64 + var v3 Tsize_t + _, _, _, _, _ = f, plus, v1, v2, v3 + plus = BoolInt32(!!(Xstrchr(tls, mode, int32('+')) != 0)) + if !(Xstrchr(tls, __ccgo_ts+1494, int32(**(**int8)(__ccgo_up(mode)))) != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(0) + } + if !(buf != 0) && size > Uint64FromInt64(Int64FromInt64(INT64_MAX)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOMEM) + return uintptr(0) + } + if buf != 0 { + v1 = uint64(0) + } else { + v1 = size + } + f = Xmalloc(tls, uint64(1304)+v1) + if !(f != 0) { + return uintptr(0) + } + Xmemset(tls, f, 0, uint64(UintptrFromInt32(0)+272)) + (*Tmem_FILE)(unsafe.Pointer(f)).Ff.Fcookie = f + 232 + (*Tmem_FILE)(unsafe.Pointer(f)).Ff.Ffd = -int32(1) + (*Tmem_FILE)(unsafe.Pointer(f)).Ff.Flbf = -int32(1) + (*Tmem_FILE)(unsafe.Pointer(f)).Ff.Fbuf = f + 272 + uintptr(UNGET) + (*Tmem_FILE)(unsafe.Pointer(f)).Ff.Fbuf_size = Uint64FromInt64(1032) - Uint64FromInt32(UNGET) + if !(buf != 0) { + buf = f + 1304 + Xmemset(tls, buf, 0, size) + } + (*Tmem_FILE)(unsafe.Pointer(f)).Fc.Fbuf = buf + (*Tmem_FILE)(unsafe.Pointer(f)).Fc.Fsize = size + (*Tmem_FILE)(unsafe.Pointer(f)).Fc.Fmode = int32(**(**int8)(__ccgo_up(mode))) + if !(plus != 0) { + if int32(**(**int8)(__ccgo_up(mode))) == int32('r') { + v2 = int32(F_NOWR) + } else { + v2 = int32(F_NORD) + } + (*Tmem_FILE)(unsafe.Pointer(f)).Ff.Fflags = Uint32FromInt32(v2) + } + if int32(**(**int8)(__ccgo_up(mode))) == int32('r') { + (*Tmem_FILE)(unsafe.Pointer(f)).Fc.Flen1 = size + } else { + if int32(**(**int8)(__ccgo_up(mode))) == int32('a') { + v3 = Xstrnlen(tls, buf, size) + (*Tmem_FILE)(unsafe.Pointer(f)).Fc.Fpos = v3 + (*Tmem_FILE)(unsafe.Pointer(f)).Fc.Flen1 = v3 + } else { + if plus != 0 { + **(**uint8)(__ccgo_up((*Tmem_FILE)(unsafe.Pointer(f)).Fc.Fbuf)) = uint8(0) + } + } + } + (*Tmem_FILE)(unsafe.Pointer(f)).Ff.Fread = __ccgo_fp(_mread) + (*Tmem_FILE)(unsafe.Pointer(f)).Ff.Fwrite = __ccgo_fp(_mwrite) + (*Tmem_FILE)(unsafe.Pointer(f)).Ff.Fseek = __ccgo_fp(_mseek) + (*Tmem_FILE)(unsafe.Pointer(f)).Ff.Fclose1 = __ccgo_fp(_mclose) + if !(X__libc.Fthreaded != 0) { + AtomicStorePInt32(f+140, -int32(1)) + } + return X__ofl_add(tls, f) +} + +func Xfopen(tls *TLS, filename uintptr, mode uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v filename=%v mode=%v, (%v:)", tls, filename, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + var f uintptr + var fd, flags int32 + _, _, _ = f, fd, flags + /* Check for valid initial mode character */ + if !(Xstrchr(tls, __ccgo_ts+1494, int32(**(**int8)(__ccgo_up(mode)))) != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(0) + } + /* Compute the flags to pass to open() */ + flags = X__fmodeflags(tls, mode) + fd = int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_openat), int64(-Int32FromInt32(100)), int64(filename), int64(flags|Int32FromInt32(O_LARGEFILE)), int64(Int32FromInt32(0666)))))) + if fd < 0 { + return uintptr(0) + } + if flags&int32(O_CLOEXEC) != 0 { + X__syscall3(tls, int64(__NR3264_fcntl), int64(fd), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + } + f = X__fdopen(tls, fd, mode) + if f != 0 { + return f + } + X__syscall1(tls, int64(SYS_close), int64(fd)) + return uintptr(0) +} + +type Tfcookie = struct { + Fcookie uintptr + Fiofuncs Tcookie_io_functions_t +} + +type Tcookie_FILE = struct { + Ff TFILE + Ffc Tfcookie + Fbuf [1032]uint8 +} + +func _cookieread(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + var fc, v2, v3 uintptr + var len2, readlen, remain, v1 Tsize_t + var ret Tssize_t + var v4 int32 + _, _, _, _, _, _, _, _, _ = fc, len2, readlen, remain, ret, v1, v2, v3, v4 + fc = (*TFILE)(unsafe.Pointer(f)).Fcookie + ret = int64(-int32(1)) + remain = len1 + readlen = uint64(0) + len2 = len1 - BoolUint64(!!((*TFILE)(unsafe.Pointer(f)).Fbuf_size != 0)) + if !((*Tfcookie)(unsafe.Pointer(fc)).Fiofuncs.Fread != 0) { + goto bail + } + if len2 != 0 { + ret = (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tssize_t)(unsafe.Pointer(&struct{ uintptr }{(*Tfcookie)(unsafe.Pointer(fc)).Fiofuncs.Fread})))(tls, (*Tfcookie)(unsafe.Pointer(fc)).Fcookie, buf, len2) + if ret <= 0 { + goto bail + } + readlen = readlen + Uint64FromInt64(ret) + remain = remain - Uint64FromInt64(ret) + } + if !((*TFILE)(unsafe.Pointer(f)).Fbuf_size != 0) || remain > BoolUint64(!!((*TFILE)(unsafe.Pointer(f)).Fbuf_size != 0)) { + return readlen + } + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Fbuf + ret = (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tssize_t)(unsafe.Pointer(&struct{ uintptr }{(*Tfcookie)(unsafe.Pointer(fc)).Fiofuncs.Fread})))(tls, (*Tfcookie)(unsafe.Pointer(fc)).Fcookie, (*TFILE)(unsafe.Pointer(f)).Frpos, (*TFILE)(unsafe.Pointer(f)).Fbuf_size) + if ret <= 0 { + goto bail + } + (*TFILE)(unsafe.Pointer(f)).Frend = (*TFILE)(unsafe.Pointer(f)).Frpos + uintptr(ret) + v1 = readlen + readlen = readlen + 1 + v3 = f + 8 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + **(**uint8)(__ccgo_up(buf + uintptr(v1))) = **(**uint8)(__ccgo_up(v2)) + return readlen + goto bail +bail: + ; + if ret == 0 { + v4 = int32(F_EOF) + } else { + v4 = int32(F_ERR) + } + **(**uint32)(__ccgo_up(f)) |= Uint32FromInt32(v4) + v2 = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Frend = v2 + (*TFILE)(unsafe.Pointer(f)).Frpos = v2 + return readlen +} + +func _cookiewrite(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + var fc, v1, v2 uintptr + var len2 Tsize_t + var ret Tssize_t + _, _, _, _, _ = fc, len2, ret, v1, v2 + fc = (*TFILE)(unsafe.Pointer(f)).Fcookie + len2 = Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Fwpos) - int64((*TFILE)(unsafe.Pointer(f)).Fwbase)) + if !((*Tfcookie)(unsafe.Pointer(fc)).Fiofuncs.Fwrite != 0) { + return len1 + } + if len2 != 0 { + (*TFILE)(unsafe.Pointer(f)).Fwpos = (*TFILE)(unsafe.Pointer(f)).Fwbase + if _cookiewrite(tls, f, (*TFILE)(unsafe.Pointer(f)).Fwpos, len2) < len2 { + return uint64(0) + } + } + ret = (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tssize_t)(unsafe.Pointer(&struct{ uintptr }{(*Tfcookie)(unsafe.Pointer(fc)).Fiofuncs.Fwrite})))(tls, (*Tfcookie)(unsafe.Pointer(fc)).Fcookie, buf, len1) + if ret < 0 { + v2 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Fwend = v2 + v1 = v2 + (*TFILE)(unsafe.Pointer(f)).Fwbase = v1 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v1 + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) + return uint64(0) + } + return Uint64FromInt64(ret) +} + +func _cookieseek(tls *TLS, f uintptr, _off Toff_t, whence int32) (r Toff_t) { + bp := tls.Alloc(16) + defer tls.Free(16) + *(*Toff_t)(unsafe.Pointer(bp)) = _off + var fc uintptr + var res int32 + _, _ = fc, res + fc = (*TFILE)(unsafe.Pointer(f)).Fcookie + if Uint32FromInt32(whence) > uint32(2) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return int64(-int32(1)) + } + if !((*Tfcookie)(unsafe.Pointer(fc)).Fiofuncs.Fseek != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOPNOTSUPP) + return int64(-int32(1)) + } + res = (*(*func(*TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(&struct{ uintptr }{(*Tfcookie)(unsafe.Pointer(fc)).Fiofuncs.Fseek})))(tls, (*Tfcookie)(unsafe.Pointer(fc)).Fcookie, bp, whence) + if res < 0 { + return int64(res) + } + return **(**Toff_t)(__ccgo_up(bp)) +} + +func _cookieclose(tls *TLS, f uintptr) (r int32) { + var fc uintptr + _ = fc + fc = (*TFILE)(unsafe.Pointer(f)).Fcookie + if (*Tfcookie)(unsafe.Pointer(fc)).Fiofuncs.Fclose1 != 0 { + return (*(*func(*TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*Tfcookie)(unsafe.Pointer(fc)).Fiofuncs.Fclose1})))(tls, (*Tfcookie)(unsafe.Pointer(fc)).Fcookie) + } + return 0 +} + +func Xfopencookie(tls *TLS, cookie uintptr, mode uintptr, iofuncs Tcookie_io_functions_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v cookie=%v mode=%v iofuncs=%v, (%v:)", tls, cookie, mode, iofuncs, origin(2)) + defer func() { trc("-> %v", r) }() + } + var f, v1 uintptr + var v2 int32 + _, _, _ = f, v1, v2 + /* Check for valid initial mode character */ + if !(Xstrchr(tls, __ccgo_ts+1494, int32(**(**int8)(__ccgo_up(mode)))) != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(0) + } + /* Allocate FILE+fcookie+buffer or fail */ + v1 = Xmalloc(tls, uint64(1304)) + f = v1 + if !(v1 != 0) { + return uintptr(0) + } + /* Zero-fill only the struct, not the buffer */ + Xmemset(tls, f, 0, uint64(232)) + /* Impose mode restrictions */ + if !(Xstrchr(tls, mode, int32('+')) != 0) { + if int32(**(**int8)(__ccgo_up(mode))) == int32('r') { + v2 = int32(F_NOWR) + } else { + v2 = int32(F_NORD) + } + (*Tcookie_FILE)(unsafe.Pointer(f)).Ff.Fflags = Uint32FromInt32(v2) + } + /* Set up our fcookie */ + (*Tcookie_FILE)(unsafe.Pointer(f)).Ffc.Fcookie = cookie + (*Tcookie_FILE)(unsafe.Pointer(f)).Ffc.Fiofuncs = iofuncs + (*Tcookie_FILE)(unsafe.Pointer(f)).Ff.Ffd = -int32(1) + (*Tcookie_FILE)(unsafe.Pointer(f)).Ff.Fcookie = f + 232 + (*Tcookie_FILE)(unsafe.Pointer(f)).Ff.Fbuf = f + 272 + uintptr(UNGET) + (*Tcookie_FILE)(unsafe.Pointer(f)).Ff.Fbuf_size = Uint64FromInt64(1032) - Uint64FromInt32(UNGET) + (*Tcookie_FILE)(unsafe.Pointer(f)).Ff.Flbf = -int32(1) + /* Initialize op ptrs. No problem if some are unneeded. */ + (*Tcookie_FILE)(unsafe.Pointer(f)).Ff.Fread = __ccgo_fp(_cookieread) + (*Tcookie_FILE)(unsafe.Pointer(f)).Ff.Fwrite = __ccgo_fp(_cookiewrite) + (*Tcookie_FILE)(unsafe.Pointer(f)).Ff.Fseek = __ccgo_fp(_cookieseek) + (*Tcookie_FILE)(unsafe.Pointer(f)).Ff.Fclose1 = __ccgo_fp(_cookieclose) + /* Add new FILE to open file list */ + return X__ofl_add(tls, f) +} + +func Xfprintf(tls *TLS, f uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v va=%v, (%v:)", tls, f, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvfprintf(tls, f, fmt, ap) + _ = ap + return ret +} + +func _locking_putc(tls *TLS, c int32, f uintptr) (r1 int32) { + var old, old1, r, v, v10, v15, v2, v6, v8 int32 + var v1, v12 uintptr + var v11 uint8 + var v4 bool + _, _, _, _, _, _, _, _, _, _, _, _, _ = old, old1, r, v, v1, v10, v11, v12, v15, v2, v4, v6, v8 + v1 = f + 140 + // __asm__ __volatile__ ("dbar 0" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 49, __ccgo_ts+1511) + for { + // __asm__ __volatile__ ( + // + // "ll.w %0, %1" + // : "=r"(v) + // : "ZC"(*p)); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 5, __ccgo_ts+1511) + v6 = v + goto _7 + _7: + old = v6 + goto _5 + _5: + ; + if v4 = old == 0; v4 { + // __asm__ __volatile__ ( + // + // "sc.w %0, %1" + // : "=r"(r), "=ZC"(*p) + // : "0"(v) : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 16, __ccgo_ts+1511) + v2 = r + goto _3 + _3: + } + if !(v4 && !(v2 != 0)) { + break + } + } + // __asm__ __volatile__ ("dbar 0" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 49, __ccgo_ts+1511) + v8 = old + goto _9 +_9: + if v8 != 0 { + ___lockfile(tls, f) + } + if Int32FromUint8(Uint8FromInt32(c)) != (*TFILE)(unsafe.Pointer(f)).Flbf && (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwend { + v11 = Uint8FromInt32(c) + v12 = f + 40 + v1 = *(*uintptr)(unsafe.Pointer(v12)) + *(*uintptr)(unsafe.Pointer(v12)) = *(*uintptr)(unsafe.Pointer(v12)) + 1 + **(**uint8)(__ccgo_up(v1)) = v11 + v2 = Int32FromUint8(v11) + } else { + v2 = X__overflow(tls, f, Int32FromUint8(Uint8FromInt32(c))) + } + c = v2 + v1 = f + 140 + // __asm__ __volatile__ ("dbar 0" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 49, __ccgo_ts+1511) + for { + // __asm__ __volatile__ ( + // + // "ll.w %0, %1" + // : "=r"(v) + // : "ZC"(*p)); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 5, __ccgo_ts+1511) + v6 = v + goto _19 + _19: + old1 = v6 + goto _17 + _17: + ; + // __asm__ __volatile__ ( + // + // "sc.w %0, %1" + // : "=r"(r), "=ZC"(*p) + // : "0"(v) : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 16, __ccgo_ts+1511) + v2 = r + goto _16 + _16: + ; + if !!(v2 != 0) { + break + } + } + // __asm__ __volatile__ ("dbar 0" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 49, __ccgo_ts+1511) + v8 = old1 + goto _21 +_21: + if v8&int32(MAYBE_WAITERS) != 0 { + v12 = f + 140 + v10 = int32(1) + v15 = int32(1) + if v15 != 0 { + v15 = int32(FUTEX_PRIVATE) + } + if v10 < Int32FromInt32(0) { + v10 = int32(INT_MAX) + } + _ = X__syscall3(tls, int64(SYS_futex), int64(v12), int64(Int32FromInt32(FUTEX_WAKE)|v15), int64(v10)) != int64(-int32(ENOSYS)) || X__syscall3(tls, int64(SYS_futex), int64(v12), int64(Int32FromInt32(FUTEX_WAKE)), int64(v10)) != 0 + } + return c +} + +func Xfputc(tls *TLS, c1 int32, f1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v c1=%v f1=%v, (%v:)", tls, c1, f1, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l, v1, v3, v5 int32 + var v2, v7, v8 uintptr + var v6 uint8 + _, _, _, _, _, _, _, _ = l, v1, v2, v3, v5, v6, v7, v8 + v1 = c1 + v2 = f1 + l = AtomicLoadPInt32(v2 + 140) + if l < 0 || l != 0 && l & ^Int32FromInt32(MAYBE_WAITERS) == (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Ftid { + if Int32FromUint8(Uint8FromInt32(v1)) != (*TFILE)(unsafe.Pointer(v2)).Flbf && (*TFILE)(unsafe.Pointer(v2)).Fwpos != (*TFILE)(unsafe.Pointer(v2)).Fwend { + v6 = Uint8FromInt32(v1) + v8 = v2 + 40 + v7 = *(*uintptr)(unsafe.Pointer(v8)) + *(*uintptr)(unsafe.Pointer(v8)) = *(*uintptr)(unsafe.Pointer(v8)) + 1 + **(**uint8)(__ccgo_up(v7)) = v6 + v5 = Int32FromUint8(v6) + } else { + v5 = X__overflow(tls, v2, Int32FromUint8(Uint8FromInt32(v1))) + } + v3 = v5 + goto _4 + } + v3 = _locking_putc(tls, v1, v2) + goto _4 +_4: + return v3 +} + +func Xfputs(tls *TLS, s uintptr, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v f=%v, (%v:)", tls, s, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l Tsize_t + _ = l + l = _strlen(tls, s) + return BoolInt32(Xfwrite(tls, s, uint64(1), l, f) == l) - int32(1) +} + +func Xfputs_unlocked(tls *TLS, s uintptr, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v f=%v, (%v:)", tls, s, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfputs(tls, s, f) +} + +func X__fputwc_unlocked(tls *TLS, c Twchar_t, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v f=%v, (%v:)", tls, c, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var l, v1 int32 + var loc Tlocale_t + var ploc, v3, v4 uintptr + var v2 uint8 + var _ /* mbc at bp+0 */ [4]int8 + _, _, _, _, _, _, _ = l, loc, ploc, v1, v2, v3, v4 + ploc = uintptr(___get_tp(tls)) + 152 + loc = **(**Tlocale_t)(__ccgo_up(ploc)) + if (*TFILE)(unsafe.Pointer(f)).Fmode <= 0 { + Xfwide(tls, f, int32(1)) + } + **(**Tlocale_t)(__ccgo_up(ploc)) = (*TFILE)(unsafe.Pointer(f)).Flocale + if BoolInt32(Uint32FromInt32(c) < uint32(128)) != 0 { + if Int32FromUint8(Uint8FromInt32(c)) != (*TFILE)(unsafe.Pointer(f)).Flbf && (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwend { + v2 = Uint8FromInt32(c) + v4 = f + 40 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + **(**uint8)(__ccgo_up(v3)) = v2 + v1 = Int32FromUint8(v2) + } else { + v1 = X__overflow(tls, f, Int32FromUint8(Uint8FromInt32(c))) + } + c = v1 + } else { + if (*TFILE)(unsafe.Pointer(f)).Fwpos+uintptr(MB_LEN_MAX) < (*TFILE)(unsafe.Pointer(f)).Fwend { + l = Xwctomb(tls, (*TFILE)(unsafe.Pointer(f)).Fwpos, c) + if l < 0 { + c = Int32FromUint32(0xffffffff) + } else { + **(**uintptr)(__ccgo_up(f + 40)) += uintptr(l) + } + } else { + l = Xwctomb(tls, bp, c) + if l < 0 || X__fwritex(tls, bp, Uint64FromInt32(l), f) < Uint64FromInt32(l) { + c = Int32FromUint32(0xffffffff) + } + } + } + if Uint32FromInt32(c) == uint32(0xffffffff) { + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) + } + **(**Tlocale_t)(__ccgo_up(ploc)) = loc + return Uint32FromInt32(c) +} + +func Xfputwc(tls *TLS, c Twchar_t, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v f=%v, (%v:)", tls, c, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, v1 int32 + _, _ = __need_unlock, v1 + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + c = Int32FromUint32(X__fputwc_unlocked(tls, c, f)) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return Uint32FromInt32(c) +} + +func Xfputwc_unlocked(tls *TLS, c Twchar_t, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v f=%v, (%v:)", tls, c, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fputwc_unlocked(tls, c, f) +} + +func Xputwc_unlocked(tls *TLS, c Twchar_t, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v f=%v, (%v:)", tls, c, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fputwc_unlocked(tls, c, f) +} + +func Xfputws(tls *TLS, _ws uintptr, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v _ws=%v f=%v, (%v:)", tls, _ws, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(1040) + defer tls.Free(1040) + *(*uintptr)(unsafe.Pointer(bp)) = _ws + var __need_unlock, v1 int32 + var l, v2 Tsize_t + var loc Tlocale_t + var ploc uintptr + var v3 bool + var _ /* buf at bp+8 */ [1024]uint8 + _, _, _, _, _, _, _ = __need_unlock, l, loc, ploc, v1, v2, v3 + l = uint64(0) + ploc = uintptr(___get_tp(tls)) + 152 + loc = **(**Tlocale_t)(__ccgo_up(ploc)) + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + Xfwide(tls, f, int32(1)) + **(**Tlocale_t)(__ccgo_up(ploc)) = (*TFILE)(unsafe.Pointer(f)).Flocale + for { + if v3 = **(**uintptr)(__ccgo_up(bp)) != 0; v3 { + v2 = Xwcsrtombs(tls, bp+8, bp, uint64(1024), uintptr(0)) + l = v2 + } + if !(v3 && v2+uint64(1) > uint64(1)) { + break + } + if X__fwritex(tls, bp+8, l, f) < l { + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + **(**Tlocale_t)(__ccgo_up(ploc)) = loc + return -int32(1) + } + } + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + **(**Tlocale_t)(__ccgo_up(ploc)) = loc + return Int32FromUint64(l) /* 0 or -1 */ +} + +func Xfputws_unlocked(tls *TLS, _ws uintptr, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v _ws=%v f=%v, (%v:)", tls, _ws, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfputws(tls, _ws, f) +} + +func Xfread(tls *TLS, destv uintptr, size Tsize_t, nmemb Tsize_t, f uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v destv=%v size=%v nmemb=%v f=%v, (%v:)", tls, destv, size, nmemb, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, v1 int32 + var dest uintptr + var k, l, len1 Tsize_t + var v2 uint64 + _, _, _, _, _, _, _ = __need_unlock, dest, k, l, len1, v1, v2 + dest = destv + len1 = size * nmemb + l = len1 + if !(size != 0) { + nmemb = uint64(0) + } + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + **(**int32)(__ccgo_up(f + 136)) |= (*TFILE)(unsafe.Pointer(f)).Fmode - int32(1) + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + /* First exhaust the buffer. */ + if Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Frend)-int64((*TFILE)(unsafe.Pointer(f)).Frpos)) < l { + v2 = Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Frend) - int64((*TFILE)(unsafe.Pointer(f)).Frpos)) + } else { + v2 = l + } + k = v2 + Xmemcpy(tls, dest, (*TFILE)(unsafe.Pointer(f)).Frpos, k) + **(**uintptr)(__ccgo_up(f + 8)) += uintptr(k) + dest = dest + uintptr(k) + l = l - k + } + /* Read the remainder directly */ + for { + if !(l != 0) { + break + } + if X__toread(tls, f) != 0 { + v2 = uint64(0) + } else { + v2 = (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tsize_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fread})))(tls, f, dest, l) + } + k = v2 + if !(k != 0) { + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return (len1 - l) / size + } + goto _3 + _3: + ; + l = l - k + dest = dest + uintptr(k) + } + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return nmemb +} + +func Xfread_unlocked(tls *TLS, destv uintptr, size Tsize_t, nmemb Tsize_t, f uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v destv=%v size=%v nmemb=%v f=%v, (%v:)", tls, destv, size, nmemb, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfread(tls, destv, size, nmemb, f) +} + +/* The basic idea of this implementation is to open a new FILE, + * hack the necessary parts of the new FILE into the old one, then + * close the new FILE. */ + +/* Locking IS necessary because another thread may provably hold the + * lock, via flockfile or otherwise, when freopen is called, and in that + * case, freopen cannot act until the lock is released. */ + +func Xfreopen(tls *TLS, filename uintptr, mode uintptr, f uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v filename=%v mode=%v f=%v, (%v:)", tls, filename, mode, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, fl, v1 int32 + var f2 uintptr + _, _, _, _ = __need_unlock, f2, fl, v1 + fl = X__fmodeflags(tls, mode) + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + Xfflush(tls, f) + if !(filename != 0) { + if fl&int32(O_CLOEXEC) != 0 { + X__syscall3(tls, int64(__NR3264_fcntl), int64((*TFILE)(unsafe.Pointer(f)).Ffd), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + } + fl = fl & ^(Int32FromInt32(O_CREAT) | Int32FromInt32(O_EXCL) | Int32FromInt32(O_CLOEXEC)) + if X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(__NR3264_fcntl), int64((*TFILE)(unsafe.Pointer(f)).Ffd), int64(Int32FromInt32(F_SETFL)), int64(fl)))) < 0 { + goto fail + } + } else { + f2 = Xfopen(tls, filename, mode) + if !(f2 != 0) { + goto fail + } + if (*TFILE)(unsafe.Pointer(f2)).Ffd == (*TFILE)(unsafe.Pointer(f)).Ffd { + (*TFILE)(unsafe.Pointer(f2)).Ffd = -int32(1) + } else { + if X__dup3(tls, (*TFILE)(unsafe.Pointer(f2)).Ffd, (*TFILE)(unsafe.Pointer(f)).Ffd, fl&int32(O_CLOEXEC)) < 0 { + goto fail2 + } + } + (*TFILE)(unsafe.Pointer(f)).Fflags = (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_PERM) | (*TFILE)(unsafe.Pointer(f2)).Fflags + (*TFILE)(unsafe.Pointer(f)).Fread = (*TFILE)(unsafe.Pointer(f2)).Fread + (*TFILE)(unsafe.Pointer(f)).Fwrite = (*TFILE)(unsafe.Pointer(f2)).Fwrite + (*TFILE)(unsafe.Pointer(f)).Fseek = (*TFILE)(unsafe.Pointer(f2)).Fseek + (*TFILE)(unsafe.Pointer(f)).Fclose1 = (*TFILE)(unsafe.Pointer(f2)).Fclose1 + Xfclose(tls, f2) + } + (*TFILE)(unsafe.Pointer(f)).Fmode = 0 + (*TFILE)(unsafe.Pointer(f)).Flocale = uintptr(0) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return f + goto fail2 +fail2: + ; + Xfclose(tls, f2) + goto fail +fail: + ; + Xfclose(tls, f) + return UintptrFromInt32(0) +} + +func Xfscanf(tls *TLS, f uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v va=%v, (%v:)", tls, f, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvfscanf(tls, f, fmt, ap) + _ = ap + return ret +} + +func X__isoc99_fscanf(tls *TLS, f uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v va=%v, (%v:)", tls, f, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfscanf(tls, f, fmt, va) +} + +func X__fseeko_unlocked(tls *TLS, f uintptr, off Toff_t, whence int32) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v off=%v whence=%v, (%v:)", tls, f, off, whence, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1, v2 uintptr + _, _ = v1, v2 + /* Fail immediately for invalid whence argument. */ + if whence != int32(1) && whence != 0 && whence != int32(2) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + /* Adjust relative offset for unread data in buffer, if any. */ + if whence == int32(1) && (*TFILE)(unsafe.Pointer(f)).Frend != 0 { + off = off - (int64((*TFILE)(unsafe.Pointer(f)).Frend) - int64((*TFILE)(unsafe.Pointer(f)).Frpos)) + } + /* Flush write buffer, and report error on failure. */ + if (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwbase { + (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tsize_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fwrite})))(tls, f, uintptr(0), uint64(0)) + if !((*TFILE)(unsafe.Pointer(f)).Fwpos != 0) { + return -int32(1) + } + } + /* Leave writing mode */ + v2 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Fwend = v2 + v1 = v2 + (*TFILE)(unsafe.Pointer(f)).Fwbase = v1 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v1 + /* Perform the underlying seek. */ + if (*(*func(*TLS, uintptr, Toff_t, int32) Toff_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fseek})))(tls, f, off, whence) < 0 { + return -int32(1) + } + /* If seek succeeded, file is seekable and we discard read buffer. */ + v1 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Frend = v1 + (*TFILE)(unsafe.Pointer(f)).Frpos = v1 + **(**uint32)(__ccgo_up(f)) &= Uint32FromInt32(^Int32FromInt32(F_EOF)) + return 0 +} + +func X__fseeko(tls *TLS, f uintptr, off Toff_t, whence int32) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v off=%v whence=%v, (%v:)", tls, f, off, whence, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, result, v1 int32 + _, _, _ = __need_unlock, result, v1 + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + result = X__fseeko_unlocked(tls, f, off, whence) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return result +} + +func Xfseek(tls *TLS, f uintptr, off int64, whence int32) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v off=%v whence=%v, (%v:)", tls, f, off, whence, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fseeko(tls, f, off, whence) +} + +func Xfseeko(tls *TLS, f uintptr, off Toff_t, whence int32) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v off=%v whence=%v, (%v:)", tls, f, off, whence, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fseeko(tls, f, off, whence) +} + +func Xfsetpos(tls *TLS, f uintptr, pos uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v pos=%v, (%v:)", tls, f, pos, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fseeko(tls, f, int64(**(**int64)(__ccgo_up(pos))), 0) +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func X__ftello_unlocked(tls *TLS, f uintptr) (r Toff_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var pos Toff_t + var v1 int32 + _, _ = pos, v1 + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_APP) != 0 && (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwbase { + v1 = int32(2) + } else { + v1 = int32(1) + } + pos = (*(*func(*TLS, uintptr, Toff_t, int32) Toff_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fseek})))(tls, f, 0, v1) + if pos < 0 { + return pos + } + /* Adjust for data in buffer. */ + if (*TFILE)(unsafe.Pointer(f)).Frend != 0 { + pos = pos + (int64((*TFILE)(unsafe.Pointer(f)).Frpos) - int64((*TFILE)(unsafe.Pointer(f)).Frend)) + } else { + if (*TFILE)(unsafe.Pointer(f)).Fwbase != 0 { + pos = pos + (int64((*TFILE)(unsafe.Pointer(f)).Fwpos) - int64((*TFILE)(unsafe.Pointer(f)).Fwbase)) + } + } + return pos +} + +func X__ftello(tls *TLS, f uintptr) (r Toff_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, v1 int32 + var pos Toff_t + _, _, _ = __need_unlock, pos, v1 + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + pos = X__ftello_unlocked(tls, f) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return pos +} + +func Xftell(tls *TLS, f uintptr) (r int64) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var pos Toff_t + _ = pos + pos = X__ftello(tls, f) + if pos > int64(0x7fffffffffffffff) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOVERFLOW) + return int64(-int32(1)) + } + return pos +} + +func Xftello(tls *TLS, f uintptr) (r Toff_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__ftello(tls, f) +} + +func X__do_orphaned_stdio_locks(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + var f uintptr + _ = f + f = (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Fstdio_locks + for { + if !(f != 0) { + break + } + // __asm__ __volatile__ ("dbar 0" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 49, __ccgo_ts+1524) + AtomicStorePInt32(f+140, int32(0x40000000)) + // __asm__ __volatile__ ("dbar 0" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 49, __ccgo_ts+1524) + goto _1 + _1: + ; + f = (*TFILE)(unsafe.Pointer(f)).Fnext_locked + } +} + +func X__unlist_locked_file(tls *TLS, f uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } + if (*TFILE)(unsafe.Pointer(f)).Flockcount != 0 { + if (*TFILE)(unsafe.Pointer(f)).Fnext_locked != 0 { + (*TFILE)(unsafe.Pointer((*TFILE)(unsafe.Pointer(f)).Fnext_locked)).Fprev_locked = (*TFILE)(unsafe.Pointer(f)).Fprev_locked + } + if (*TFILE)(unsafe.Pointer(f)).Fprev_locked != 0 { + (*TFILE)(unsafe.Pointer((*TFILE)(unsafe.Pointer(f)).Fprev_locked)).Fnext_locked = (*TFILE)(unsafe.Pointer(f)).Fnext_locked + } else { + (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Fstdio_locks = (*TFILE)(unsafe.Pointer(f)).Fnext_locked + } + } +} + +func X__register_locked_file(tls *TLS, f uintptr, self Tpthread_t) { + if __ccgo_strace { + trc("tls=%v f=%v self=%v, (%v:)", tls, f, self, origin(2)) + } + (*TFILE)(unsafe.Pointer(f)).Flockcount = int64(1) + (*TFILE)(unsafe.Pointer(f)).Fprev_locked = uintptr(0) + (*TFILE)(unsafe.Pointer(f)).Fnext_locked = (*t__pthread)(unsafe.Pointer(self)).Fstdio_locks + if (*TFILE)(unsafe.Pointer(f)).Fnext_locked != 0 { + (*TFILE)(unsafe.Pointer((*TFILE)(unsafe.Pointer(f)).Fnext_locked)).Fprev_locked = f + } + (*t__pthread)(unsafe.Pointer(self)).Fstdio_locks = f +} + +func Xftrylockfile(tls *TLS, f uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var old, owner, r, tid, v, v1, v3, v7 int32 + var self Tpthread_t + var v11, v5 bool + var v2 uintptr + _, _, _, _, _, _, _, _, _, _, _, _ = old, owner, r, self, tid, v, v1, v11, v2, v3, v5, v7 + self = uintptr(___get_tp(tls)) + tid = (*t__pthread)(unsafe.Pointer(self)).Ftid + owner = AtomicLoadPInt32(f + 140) + if owner & ^Int32FromInt32(MAYBE_WAITERS) == tid { + if (*TFILE)(unsafe.Pointer(f)).Flockcount == int64(0x7fffffffffffffff) { + return -int32(1) + } + (*TFILE)(unsafe.Pointer(f)).Flockcount = (*TFILE)(unsafe.Pointer(f)).Flockcount + 1 + return 0 + } + if owner < 0 { + v1 = Int32FromInt32(0) + owner = v1 + AtomicStorePInt32(f+140, v1) + } + if v11 = owner != 0; !v11 { + v2 = f + 140 + // __asm__ __volatile__ ("dbar 0" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 49, __ccgo_ts+1550) + for { + // __asm__ __volatile__ ( + // + // "ll.w %0, %1" + // : "=r"(v) + // : "ZC"(*p)); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 5, __ccgo_ts+1550) + v3 = v + goto _8 + _8: + old = v3 + goto _6 + _6: + ; + if v5 = old == 0; v5 { + // __asm__ __volatile__ ( + // + // "sc.w %0, %1" + // : "=r"(r), "=ZC"(*p) + // : "0"(v) : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 16, __ccgo_ts+1550) + v1 = r + goto _4 + _4: + } + if !(v5 && !(v1 != 0)) { + break + } + } + // __asm__ __volatile__ ("dbar 0" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 49, __ccgo_ts+1550) + v7 = old + goto _10 + _10: + } + if v11 || v7 != 0 { + return -int32(1) + } + X__register_locked_file(tls, f, self) + return 0 +} + +func Xfunlockfile(tls *TLS, f uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } + if (*TFILE)(unsafe.Pointer(f)).Flockcount == int64(1) { + X__unlist_locked_file(tls, f) + (*TFILE)(unsafe.Pointer(f)).Flockcount = 0 + ___unlockfile(tls, f) + } else { + (*TFILE)(unsafe.Pointer(f)).Flockcount = (*TFILE)(unsafe.Pointer(f)).Flockcount - 1 + } +} + +func Xfwide(tls *TLS, f uintptr, mode int32) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v mode=%v, (%v:)", tls, f, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, v1, v3 int32 + var v2 Tlocale_t + _, _, _, _ = __need_unlock, v1, v2, v3 + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + if mode != 0 { + if !((*TFILE)(unsafe.Pointer(f)).Flocale != 0) { + if !!(**(**uintptr)(__ccgo_up((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale)) != 0) { + v3 = int32(4) + } else { + v3 = int32(1) + } + if v3 == int32(1) { + v2 = uintptr(unsafe.Pointer(&X__c_locale)) + } else { + v2 = uintptr(unsafe.Pointer(&X__c_dot_utf8_locale)) + } + (*TFILE)(unsafe.Pointer(f)).Flocale = v2 + } + if !((*TFILE)(unsafe.Pointer(f)).Fmode != 0) { + if mode > 0 { + v1 = int32(1) + } else { + v1 = -int32(1) + } + (*TFILE)(unsafe.Pointer(f)).Fmode = v1 + } + } + mode = (*TFILE)(unsafe.Pointer(f)).Fmode + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return mode +} + +func Xfwprintf(tls *TLS, f uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v va=%v, (%v:)", tls, f, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvfwprintf(tls, f, fmt, ap) + _ = ap + return ret +} + +func X__fwritex(tls *TLS, s uintptr, l Tsize_t, f uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v l=%v f=%v, (%v:)", tls, s, l, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var i, n Tsize_t + _, _ = i, n + i = uint64(0) + if !((*TFILE)(unsafe.Pointer(f)).Fwend != 0) && X__towrite(tls, f) != 0 { + return uint64(0) + } + if l > Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Fwend)-int64((*TFILE)(unsafe.Pointer(f)).Fwpos)) { + return (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tsize_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fwrite})))(tls, f, s, l) + } + if (*TFILE)(unsafe.Pointer(f)).Flbf >= 0 { + /* Match /^(.*\n|)/ */ + i = l + for { + if !(i != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(i-uint64(1))))) != int32('\n')) { + break + } + goto _1 + _1: + ; + i = i - 1 + } + if i != 0 { + n = (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tsize_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fwrite})))(tls, f, s, i) + if n < i { + return n + } + s = s + uintptr(i) + l = l - i + } + } + Xmemcpy(tls, (*TFILE)(unsafe.Pointer(f)).Fwpos, s, l) + **(**uintptr)(__ccgo_up(f + 40)) += uintptr(l) + return l + i +} + +func Xfwrite(tls *TLS, src uintptr, size Tsize_t, nmemb Tsize_t, f uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v src=%v size=%v nmemb=%v f=%v, (%v:)", tls, src, size, nmemb, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, v1 int32 + var k, l Tsize_t + var v2 uint64 + _, _, _, _, _ = __need_unlock, k, l, v1, v2 + l = size * nmemb + if !(size != 0) { + nmemb = uint64(0) + } + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + k = X__fwritex(tls, src, l, f) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + if k == l { + v2 = nmemb + } else { + v2 = k / size + } + return v2 +} + +func Xfwrite_unlocked(tls *TLS, src uintptr, size Tsize_t, nmemb Tsize_t, f uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v src=%v size=%v nmemb=%v f=%v, (%v:)", tls, src, size, nmemb, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfwrite(tls, src, size, nmemb, f) +} + +func Xfwscanf(tls *TLS, f uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v va=%v, (%v:)", tls, f, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvfwscanf(tls, f, fmt, ap) + _ = ap + return ret +} + +func X__isoc99_fwscanf(tls *TLS, f uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v va=%v, (%v:)", tls, f, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfwscanf(tls, f, fmt, va) +} + +func _locking_getc1(tls *TLS, f uintptr) (r1 int32) { + var c, old, old1, r, v, v10, v14, v17, v2, v6, v8 int32 + var v1, v11, v12, v13 uintptr + var v4 bool + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = c, old, old1, r, v, v1, v10, v11, v12, v13, v14, v17, v2, v4, v6, v8 + v1 = f + 140 + // __asm__ __volatile__ ("dbar 0" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 49, __ccgo_ts+1498) + for { + // __asm__ __volatile__ ( + // + // "ll.w %0, %1" + // : "=r"(v) + // : "ZC"(*p)); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 5, __ccgo_ts+1498) + v6 = v + goto _7 + _7: + old = v6 + goto _5 + _5: + ; + if v4 = old == 0; v4 { + // __asm__ __volatile__ ( + // + // "sc.w %0, %1" + // : "=r"(r), "=ZC"(*p) + // : "0"(v) : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 16, __ccgo_ts+1498) + v2 = r + goto _3 + _3: + } + if !(v4 && !(v2 != 0)) { + break + } + } + // __asm__ __volatile__ ("dbar 0" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 49, __ccgo_ts+1498) + v8 = old + goto _9 +_9: + if v8 != 0 { + ___lockfile(tls, f) + } + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + v11 = f + 8 + v1 = *(*uintptr)(unsafe.Pointer(v11)) + *(*uintptr)(unsafe.Pointer(v11)) = *(*uintptr)(unsafe.Pointer(v11)) + 1 + v2 = Int32FromUint8(**(**uint8)(__ccgo_up(v1))) + } else { + v2 = X__uflow(tls, f) + } + c = v2 + v12 = f + 140 + // __asm__ __volatile__ ("dbar 0" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 49, __ccgo_ts+1498) + for { + // __asm__ __volatile__ ( + // + // "ll.w %0, %1" + // : "=r"(v) + // : "ZC"(*p)); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 5, __ccgo_ts+1498) + v8 = v + goto _18 + _18: + old1 = v8 + goto _16 + _16: + ; + // __asm__ __volatile__ ( + // + // "sc.w %0, %1" + // : "=r"(r), "=ZC"(*p) + // : "0"(v) : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 16, __ccgo_ts+1498) + v6 = r + goto _15 + _15: + ; + if !!(v6 != 0) { + break + } + } + // __asm__ __volatile__ ("dbar 0" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 49, __ccgo_ts+1498) + v10 = old1 + goto _20 +_20: + if v10&int32(MAYBE_WAITERS) != 0 { + v13 = f + 140 + v14 = int32(1) + v17 = int32(1) + if v17 != 0 { + v17 = int32(FUTEX_PRIVATE) + } + if v14 < Int32FromInt32(0) { + v14 = int32(INT_MAX) + } + _ = X__syscall3(tls, int64(SYS_futex), int64(v13), int64(Int32FromInt32(FUTEX_WAKE)|v17), int64(v14)) != int64(-int32(ENOSYS)) || X__syscall3(tls, int64(SYS_futex), int64(v13), int64(Int32FromInt32(FUTEX_WAKE)), int64(v14)) != 0 + } + return c +} + +func Xgetc(tls *TLS, f1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f1=%v, (%v:)", tls, f1, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l, v2, v4 int32 + var v1, v5, v6 uintptr + _, _, _, _, _, _ = l, v1, v2, v4, v5, v6 + v1 = f1 + l = AtomicLoadPInt32(v1 + 140) + if l < 0 || l != 0 && l & ^Int32FromInt32(MAYBE_WAITERS) == (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Ftid { + if (*TFILE)(unsafe.Pointer(v1)).Frpos != (*TFILE)(unsafe.Pointer(v1)).Frend { + v6 = v1 + 8 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + v4 = Int32FromUint8(**(**uint8)(__ccgo_up(v5))) + } else { + v4 = X__uflow(tls, v1) + } + v2 = v4 + goto _3 + } + v2 = _locking_getc1(tls, v1) + goto _3 +_3: + return v2 +} + +func X_IO_getc(tls *TLS, f1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f1=%v, (%v:)", tls, f1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetc(tls, f1) +} + +func Xgetc_unlocked(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + var v2, v3 uintptr + _, _, _ = v1, v2, v3 + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + v3 = f + 8 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__uflow(tls, f) + } + return v1 +} + +func X_IO_getc_unlocked(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetc_unlocked(tls, f) +} + +func Xfgetc_unlocked(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetc_unlocked(tls, f) +} + +func _locking_getc2(tls *TLS, f uintptr) (r1 int32) { + var c, old, old1, r, v, v10, v14, v17, v2, v6, v8 int32 + var v1, v11, v12, v13 uintptr + var v4 bool + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = c, old, old1, r, v, v1, v10, v11, v12, v13, v14, v17, v2, v4, v6, v8 + v1 = f + 140 + // __asm__ __volatile__ ("dbar 0" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 49, __ccgo_ts+1498) + for { + // __asm__ __volatile__ ( + // + // "ll.w %0, %1" + // : "=r"(v) + // : "ZC"(*p)); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 5, __ccgo_ts+1498) + v6 = v + goto _7 + _7: + old = v6 + goto _5 + _5: + ; + if v4 = old == 0; v4 { + // __asm__ __volatile__ ( + // + // "sc.w %0, %1" + // : "=r"(r), "=ZC"(*p) + // : "0"(v) : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 16, __ccgo_ts+1498) + v2 = r + goto _3 + _3: + } + if !(v4 && !(v2 != 0)) { + break + } + } + // __asm__ __volatile__ ("dbar 0" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 49, __ccgo_ts+1498) + v8 = old + goto _9 +_9: + if v8 != 0 { + ___lockfile(tls, f) + } + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + v11 = f + 8 + v1 = *(*uintptr)(unsafe.Pointer(v11)) + *(*uintptr)(unsafe.Pointer(v11)) = *(*uintptr)(unsafe.Pointer(v11)) + 1 + v2 = Int32FromUint8(**(**uint8)(__ccgo_up(v1))) + } else { + v2 = X__uflow(tls, f) + } + c = v2 + v12 = f + 140 + // __asm__ __volatile__ ("dbar 0" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 49, __ccgo_ts+1498) + for { + // __asm__ __volatile__ ( + // + // "ll.w %0, %1" + // : "=r"(v) + // : "ZC"(*p)); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 5, __ccgo_ts+1498) + v8 = v + goto _18 + _18: + old1 = v8 + goto _16 + _16: + ; + // __asm__ __volatile__ ( + // + // "sc.w %0, %1" + // : "=r"(r), "=ZC"(*p) + // : "0"(v) : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 16, __ccgo_ts+1498) + v6 = r + goto _15 + _15: + ; + if !!(v6 != 0) { + break + } + } + // __asm__ __volatile__ ("dbar 0" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 49, __ccgo_ts+1498) + v10 = old1 + goto _20 +_20: + if v10&int32(MAYBE_WAITERS) != 0 { + v13 = f + 140 + v14 = int32(1) + v17 = int32(1) + if v17 != 0 { + v17 = int32(FUTEX_PRIVATE) + } + if v14 < Int32FromInt32(0) { + v14 = int32(INT_MAX) + } + _ = X__syscall3(tls, int64(SYS_futex), int64(v13), int64(Int32FromInt32(FUTEX_WAKE)|v17), int64(v14)) != int64(-int32(ENOSYS)) || X__syscall3(tls, int64(SYS_futex), int64(v13), int64(Int32FromInt32(FUTEX_WAKE)), int64(v14)) != 0 + } + return c +} + +func Xgetchar(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l, v2, v4 int32 + var v1, v5, v6 uintptr + _, _, _, _, _, _ = l, v1, v2, v4, v5, v6 + v1 = uintptr(unsafe.Pointer(&X__stdin_FILE)) + l = AtomicLoadPInt32(v1 + 140) + if l < 0 || l != 0 && l & ^Int32FromInt32(MAYBE_WAITERS) == (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Ftid { + if (*TFILE)(unsafe.Pointer(v1)).Frpos != (*TFILE)(unsafe.Pointer(v1)).Frend { + v6 = v1 + 8 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + v4 = Int32FromUint8(**(**uint8)(__ccgo_up(v5))) + } else { + v4 = X__uflow(tls, v1) + } + v2 = v4 + goto _3 + } + v2 = _locking_getc2(tls, v1) + goto _3 +_3: + return v2 +} + +func Xgetchar_unlocked(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + var v2, v3 uintptr + _, _, _ = v1, v2, v3 + if (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdin_FILE)))).Frpos != (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdin_FILE)))).Frend { + v3 = uintptr(unsafe.Pointer(&X__stdin_FILE)) + 8 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__uflow(tls, uintptr(unsafe.Pointer(&X__stdin_FILE))) + } + return v1 +} + +func Xgetdelim(tls *TLS, s uintptr, n uintptr, delim int32, f uintptr) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v delim=%v f=%v, (%v:)", tls, s, n, delim, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, c, v1, v4 int32 + var i, k, m, v11 Tsize_t + var tmp, z, v6, v7 uintptr + var v10 int8 + var v3 int64 + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = __need_unlock, c, i, k, m, tmp, z, v1, v10, v11, v3, v4, v6, v7 + i = uint64(0) + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + if !(n != 0) || !(s != 0) { + **(**int32)(__ccgo_up(f + 136)) |= (*TFILE)(unsafe.Pointer(f)).Fmode - int32(1) + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return int64(-int32(1)) + } + if !(**(**uintptr)(__ccgo_up(s)) != 0) { + **(**Tsize_t)(__ccgo_up(n)) = uint64(0) + } + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + z = Xmemchr(tls, (*TFILE)(unsafe.Pointer(f)).Frpos, delim, Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Frend)-int64((*TFILE)(unsafe.Pointer(f)).Frpos))) + if z != 0 { + v3 = int64(z) - int64((*TFILE)(unsafe.Pointer(f)).Frpos) + int64(1) + } else { + v3 = int64((*TFILE)(unsafe.Pointer(f)).Frend) - int64((*TFILE)(unsafe.Pointer(f)).Frpos) + } + k = Uint64FromInt64(v3) + } else { + z = uintptr(0) + k = uint64(0) + } + if i+k >= **(**Tsize_t)(__ccgo_up(n)) { + m = i + k + uint64(2) + if !(z != 0) && m < Uint64FromUint64(0xffffffffffffffff)/Uint64FromInt32(4) { + m = m + m/uint64(2) + } + tmp = Xrealloc(tls, **(**uintptr)(__ccgo_up(s)), m) + if !(tmp != 0) { + m = i + k + uint64(2) + tmp = Xrealloc(tls, **(**uintptr)(__ccgo_up(s)), m) + if !(tmp != 0) { + /* Copy as much as fits and ensure no + * pushback remains in the FILE buf. */ + k = **(**Tsize_t)(__ccgo_up(n)) - i + Xmemcpy(tls, **(**uintptr)(__ccgo_up(s))+uintptr(i), (*TFILE)(unsafe.Pointer(f)).Frpos, k) + **(**uintptr)(__ccgo_up(f + 8)) += uintptr(k) + **(**int32)(__ccgo_up(f + 136)) |= (*TFILE)(unsafe.Pointer(f)).Fmode - int32(1) + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOMEM) + return int64(-int32(1)) + } + } + **(**uintptr)(__ccgo_up(s)) = tmp + **(**Tsize_t)(__ccgo_up(n)) = m + } + if k != 0 { + Xmemcpy(tls, **(**uintptr)(__ccgo_up(s))+uintptr(i), (*TFILE)(unsafe.Pointer(f)).Frpos, k) + **(**uintptr)(__ccgo_up(f + 8)) += uintptr(k) + i = i + k + } + if z != 0 { + break + } + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + v7 = f + 8 + v6 = *(*uintptr)(unsafe.Pointer(v7)) + *(*uintptr)(unsafe.Pointer(v7)) = *(*uintptr)(unsafe.Pointer(v7)) + 1 + v4 = Int32FromUint8(**(**uint8)(__ccgo_up(v6))) + } else { + v4 = X__uflow(tls, f) + } + v1 = v4 + c = v1 + if v1 == -int32(1) { + if !(i != 0) || !((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_EOF) != 0) { + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return int64(-int32(1)) + } + break + } + /* If the byte read by getc won't fit without growing the + * output buffer, push it back for next iteration. */ + if i+uint64(1) >= **(**Tsize_t)(__ccgo_up(n)) { + v7 = f + 8 + *(*uintptr)(unsafe.Pointer(v7)) = *(*uintptr)(unsafe.Pointer(v7)) - 1 + v6 = *(*uintptr)(unsafe.Pointer(v7)) + **(**uint8)(__ccgo_up(v6)) = Uint8FromInt32(c) + } else { + v10 = int8(c) + v11 = i + i = i + 1 + **(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(s)) + uintptr(v11))) = v10 + if int32(v10) == delim { + break + } + } + goto _2 + _2: + } + **(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(s)) + uintptr(i))) = 0 + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return Int64FromUint64(i) +} + +func X__getdelim(tls *TLS, s uintptr, n uintptr, delim int32, f uintptr) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v delim=%v f=%v, (%v:)", tls, s, n, delim, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetdelim(tls, s, n, delim, f) +} + +func Xgetline(tls *TLS, s uintptr, n uintptr, f uintptr) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v f=%v, (%v:)", tls, s, n, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetdelim(tls, s, n, int32('\n'), f) +} + +func Xgets(tls *TLS, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, c, v1, v2, v3 int32 + var i, v6 Tsize_t + var v4, v5 uintptr + _, _, _, _, _, _, _, _, _ = __need_unlock, c, i, v1, v2, v3, v4, v5, v6 + i = uint64(0) + if AtomicLoadPInt32(uintptr(unsafe.Pointer(&X__stdin_FILE))+140) >= 0 { + v1 = ___lockfile(tls, uintptr(unsafe.Pointer(&X__stdin_FILE))) + } else { + v1 = 0 + } + __need_unlock = v1 + for { + if (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdin_FILE)))).Frpos != (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdin_FILE)))).Frend { + v5 = uintptr(unsafe.Pointer(&X__stdin_FILE)) + 8 + v4 = *(*uintptr)(unsafe.Pointer(v5)) + *(*uintptr)(unsafe.Pointer(v5)) = *(*uintptr)(unsafe.Pointer(v5)) + 1 + v3 = Int32FromUint8(**(**uint8)(__ccgo_up(v4))) + } else { + v3 = X__uflow(tls, uintptr(unsafe.Pointer(&X__stdin_FILE))) + } + v2 = v3 + c = v2 + if !(v2 != -int32(1) && c != int32('\n')) { + break + } + v6 = i + i = i + 1 + **(**int8)(__ccgo_up(s + uintptr(v6))) = int8(c) + } + **(**int8)(__ccgo_up(s + uintptr(i))) = 0 + if c != int32('\n') && (!((*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdin_FILE)))).Fflags&Uint32FromInt32(F_EOF) != 0) || !(i != 0)) { + s = uintptr(0) + } + if __need_unlock != 0 { + ___unlockfile(tls, uintptr(unsafe.Pointer(&X__stdin_FILE))) + } + return s +} + +func Xgetw(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 int32 + var _ /* x at bp+0 */ int32 + _ = v1 + if Xfread(tls, bp, uint64(4), uint64(1), f) != 0 { + v1 = **(**int32)(__ccgo_up(bp)) + } else { + v1 = -int32(1) + } + return v1 +} + +func Xgetwc(tls *TLS, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfgetwc(tls, f) +} + +func Xgetwchar(tls *TLS) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfgetwc(tls, uintptr(unsafe.Pointer(&X__stdin_FILE))) +} + +func Xgetwchar_unlocked(tls *TLS) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetwchar(tls) +} + +var _ofl_head uintptr +var _ofl_lock [1]int32 + +func X__ofl_lock(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + ___lock(tls, uintptr(unsafe.Pointer(&_ofl_lock))) + return uintptr(unsafe.Pointer(&_ofl_head)) +} + +func X__ofl_unlock(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + ___unlock(tls, uintptr(unsafe.Pointer(&_ofl_lock))) +} + +func X__ofl_add(tls *TLS, f uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var head uintptr + _ = head + head = X__ofl_lock(tls) + (*TFILE)(unsafe.Pointer(f)).Fnext = **(**uintptr)(__ccgo_up(head)) + if **(**uintptr)(__ccgo_up(head)) != 0 { + (*TFILE)(unsafe.Pointer(**(**uintptr)(__ccgo_up(head)))).Fprev = f + } + **(**uintptr)(__ccgo_up(head)) = f + X__ofl_unlock(tls) + return f +} + +type Tcookie1 = struct { + Fbufp uintptr + Fsizep uintptr + Fpos Tsize_t + Fbuf uintptr + Flen1 Tsize_t + Fspace Tsize_t +} + +type Tms_FILE = struct { + Ff TFILE + Fc Tcookie1 + Fbuf [1024]uint8 +} + +func _ms_seek(tls *TLS, f uintptr, off Toff_t, whence int32) (r Toff_t) { + bp := tls.Alloc(32) + defer tls.Free(32) + var base Tssize_t + var c uintptr + var v2 Tsize_t + _, _, _ = base, c, v2 + c = (*TFILE)(unsafe.Pointer(f)).Fcookie + if !(Uint32FromInt32(whence) > uint32(2)) { + goto _1 + } + goto fail +fail: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return int64(-int32(1)) +_1: + ; + *(*[3]Tsize_t)(unsafe.Pointer(bp)) = [3]Tsize_t{ + 1: (*Tcookie1)(unsafe.Pointer(c)).Fpos, + 2: (*Tcookie1)(unsafe.Pointer(c)).Flen1, + } + base = Int64FromUint64(**(**Tsize_t)(__ccgo_up(bp + uintptr(whence)*8))) + if off < -base || off > int64(0x7fffffffffffffff)-base { + goto fail + } + v2 = Uint64FromInt64(base + off) + (*Tcookie1)(unsafe.Pointer(c)).Fpos = v2 + return Int64FromUint64(v2) +} + +func _ms_write(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + var c, newbuf, v1 uintptr + var len2 Tsize_t + _, _, _, _ = c, len2, newbuf, v1 + c = (*TFILE)(unsafe.Pointer(f)).Fcookie + len2 = Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Fwpos) - int64((*TFILE)(unsafe.Pointer(f)).Fwbase)) + if len2 != 0 { + (*TFILE)(unsafe.Pointer(f)).Fwpos = (*TFILE)(unsafe.Pointer(f)).Fwbase + if _ms_write(tls, f, (*TFILE)(unsafe.Pointer(f)).Fwbase, len2) < len2 { + return uint64(0) + } + } + if len1+(*Tcookie1)(unsafe.Pointer(c)).Fpos >= (*Tcookie1)(unsafe.Pointer(c)).Fspace { + len2 = uint64(2)*(*Tcookie1)(unsafe.Pointer(c)).Fspace + uint64(1) | ((*Tcookie1)(unsafe.Pointer(c)).Fpos + len1 + uint64(1)) + newbuf = Xrealloc(tls, (*Tcookie1)(unsafe.Pointer(c)).Fbuf, len2) + if !(newbuf != 0) { + return uint64(0) + } + v1 = newbuf + (*Tcookie1)(unsafe.Pointer(c)).Fbuf = v1 + **(**uintptr)(__ccgo_up((*Tcookie1)(unsafe.Pointer(c)).Fbufp)) = v1 + Xmemset(tls, (*Tcookie1)(unsafe.Pointer(c)).Fbuf+uintptr((*Tcookie1)(unsafe.Pointer(c)).Fspace), 0, len2-(*Tcookie1)(unsafe.Pointer(c)).Fspace) + (*Tcookie1)(unsafe.Pointer(c)).Fspace = len2 + } + Xmemcpy(tls, (*Tcookie1)(unsafe.Pointer(c)).Fbuf+uintptr((*Tcookie1)(unsafe.Pointer(c)).Fpos), buf, len1) + **(**Tsize_t)(__ccgo_up(c + 16)) += len1 + if (*Tcookie1)(unsafe.Pointer(c)).Fpos >= (*Tcookie1)(unsafe.Pointer(c)).Flen1 { + (*Tcookie1)(unsafe.Pointer(c)).Flen1 = (*Tcookie1)(unsafe.Pointer(c)).Fpos + } + **(**Tsize_t)(__ccgo_up((*Tcookie1)(unsafe.Pointer(c)).Fsizep)) = (*Tcookie1)(unsafe.Pointer(c)).Fpos + return len1 +} + +func _ms_close(tls *TLS, f uintptr) (r int32) { + return 0 +} + +func Xopen_memstream(tls *TLS, bufp uintptr, sizep uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v bufp=%v sizep=%v, (%v:)", tls, bufp, sizep, origin(2)) + defer func() { trc("-> %v", r) }() + } + var buf, f, v1 uintptr + var v3, v4, v5 Tsize_t + _, _, _, _, _, _ = buf, f, v1, v3, v4, v5 + v1 = Xmalloc(tls, uint64(1304)) + f = v1 + if !(v1 != 0) { + return uintptr(0) + } + v1 = Xmalloc(tls, uint64(1)) + buf = v1 + if !(v1 != 0) { + Xfree(tls, f) + return uintptr(0) + } + Xmemset(tls, f, 0, uint64(232)) + Xmemset(tls, f+232, 0, uint64(48)) + (*Tms_FILE)(unsafe.Pointer(f)).Ff.Fcookie = f + 232 + (*Tms_FILE)(unsafe.Pointer(f)).Fc.Fbufp = bufp + (*Tms_FILE)(unsafe.Pointer(f)).Fc.Fsizep = sizep + v5 = Uint64FromInt32(0) + **(**Tsize_t)(__ccgo_up(sizep)) = v5 + v4 = v5 + (*Tms_FILE)(unsafe.Pointer(f)).Fc.Fspace = v4 + v3 = v4 + (*Tms_FILE)(unsafe.Pointer(f)).Fc.Flen1 = v3 + (*Tms_FILE)(unsafe.Pointer(f)).Fc.Fpos = v3 + v1 = buf + **(**uintptr)(__ccgo_up(bufp)) = v1 + (*Tms_FILE)(unsafe.Pointer(f)).Fc.Fbuf = v1 + **(**int8)(__ccgo_up(buf)) = 0 + (*Tms_FILE)(unsafe.Pointer(f)).Ff.Fflags = uint32(F_NORD) + (*Tms_FILE)(unsafe.Pointer(f)).Ff.Ffd = -int32(1) + (*Tms_FILE)(unsafe.Pointer(f)).Ff.Fbuf = f + 280 + (*Tms_FILE)(unsafe.Pointer(f)).Ff.Fbuf_size = uint64(1024) + (*Tms_FILE)(unsafe.Pointer(f)).Ff.Flbf = -int32(1) + (*Tms_FILE)(unsafe.Pointer(f)).Ff.Fwrite = __ccgo_fp(_ms_write) + (*Tms_FILE)(unsafe.Pointer(f)).Ff.Fseek = __ccgo_fp(_ms_seek) + (*Tms_FILE)(unsafe.Pointer(f)).Ff.Fclose1 = __ccgo_fp(_ms_close) + (*Tms_FILE)(unsafe.Pointer(f)).Ff.Fmode = -int32(1) + if !(X__libc.Fthreaded != 0) { + AtomicStorePInt32(f+140, -int32(1)) + } + return X__ofl_add(tls, f) +} + +type Tcookie2 = struct { + Fbufp uintptr + Fsizep uintptr + Fpos Tsize_t + Fbuf uintptr + Flen1 Tsize_t + Fspace Tsize_t + Fmbs Tmbstate_t +} + +type Twms_FILE = struct { + Ff TFILE + Fc Tcookie2 + Fbuf [1]uint8 +} + +func _wms_seek(tls *TLS, f uintptr, off Toff_t, whence int32) (r Toff_t) { + bp := tls.Alloc(32) + defer tls.Free(32) + var base Tssize_t + var c uintptr + var v2 Tsize_t + _, _, _ = base, c, v2 + c = (*TFILE)(unsafe.Pointer(f)).Fcookie + if !(Uint32FromInt32(whence) > uint32(2)) { + goto _1 + } + goto fail +fail: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return int64(-int32(1)) +_1: + ; + *(*[3]Tsize_t)(unsafe.Pointer(bp)) = [3]Tsize_t{ + 1: (*Tcookie2)(unsafe.Pointer(c)).Fpos, + 2: (*Tcookie2)(unsafe.Pointer(c)).Flen1, + } + base = Int64FromUint64(**(**Tsize_t)(__ccgo_up(bp + uintptr(whence)*8))) + if off < -base || off > Int64FromInt64(0x7fffffffffffffff)/Int64FromInt32(4)-base { + goto fail + } + Xmemset(tls, c+48, 0, uint64(8)) + v2 = Uint64FromInt64(base + off) + (*Tcookie2)(unsafe.Pointer(c)).Fpos = v2 + return Int64FromUint64(v2) +} + +func _wms_write(tls *TLS, f uintptr, _buf uintptr, len1 Tsize_t) (r Tsize_t) { + bp := tls.Alloc(16) + defer tls.Free(16) + *(*uintptr)(unsafe.Pointer(bp)) = _buf + var c, newbuf, v1 uintptr + var len2 Tsize_t + _, _, _, _ = c, len2, newbuf, v1 + c = (*TFILE)(unsafe.Pointer(f)).Fcookie + len2 = Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Fwpos) - int64((*TFILE)(unsafe.Pointer(f)).Fwbase)) + if len2 != 0 { + (*TFILE)(unsafe.Pointer(f)).Fwpos = (*TFILE)(unsafe.Pointer(f)).Fwbase + if _wms_write(tls, f, (*TFILE)(unsafe.Pointer(f)).Fwbase, len2) < len2 { + return uint64(0) + } + } + if len1+(*Tcookie2)(unsafe.Pointer(c)).Fpos >= (*Tcookie2)(unsafe.Pointer(c)).Fspace { + len2 = uint64(2)*(*Tcookie2)(unsafe.Pointer(c)).Fspace + uint64(1) | ((*Tcookie2)(unsafe.Pointer(c)).Fpos + len1 + uint64(1)) + if len2 > Uint64FromInt64(Int64FromInt64(0x7fffffffffffffff)/Int64FromInt32(4)) { + return uint64(0) + } + newbuf = Xrealloc(tls, (*Tcookie2)(unsafe.Pointer(c)).Fbuf, len2*uint64(4)) + if !(newbuf != 0) { + return uint64(0) + } + v1 = newbuf + (*Tcookie2)(unsafe.Pointer(c)).Fbuf = v1 + **(**uintptr)(__ccgo_up((*Tcookie2)(unsafe.Pointer(c)).Fbufp)) = v1 + Xmemset(tls, (*Tcookie2)(unsafe.Pointer(c)).Fbuf+uintptr((*Tcookie2)(unsafe.Pointer(c)).Fspace)*4, 0, uint64(4)*(len2-(*Tcookie2)(unsafe.Pointer(c)).Fspace)) + (*Tcookie2)(unsafe.Pointer(c)).Fspace = len2 + } + len2 = Xmbsnrtowcs(tls, (*Tcookie2)(unsafe.Pointer(c)).Fbuf+uintptr((*Tcookie2)(unsafe.Pointer(c)).Fpos)*4, bp, len1, (*Tcookie2)(unsafe.Pointer(c)).Fspace-(*Tcookie2)(unsafe.Pointer(c)).Fpos, c+48) + if len2 == Uint64FromInt32(-Int32FromInt32(1)) { + return uint64(0) + } + **(**Tsize_t)(__ccgo_up(c + 16)) += len2 + if (*Tcookie2)(unsafe.Pointer(c)).Fpos >= (*Tcookie2)(unsafe.Pointer(c)).Flen1 { + (*Tcookie2)(unsafe.Pointer(c)).Flen1 = (*Tcookie2)(unsafe.Pointer(c)).Fpos + } + **(**Tsize_t)(__ccgo_up((*Tcookie2)(unsafe.Pointer(c)).Fsizep)) = (*Tcookie2)(unsafe.Pointer(c)).Fpos + return len1 +} + +func _wms_close(tls *TLS, f uintptr) (r int32) { + return 0 +} + +func Xopen_wmemstream(tls *TLS, bufp uintptr, sizep uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v bufp=%v sizep=%v, (%v:)", tls, bufp, sizep, origin(2)) + defer func() { trc("-> %v", r) }() + } + var buf, f, v1 uintptr + var v3, v4, v5 Tsize_t + _, _, _, _, _, _ = buf, f, v1, v3, v4, v5 + v1 = Xmalloc(tls, uint64(296)) + f = v1 + if !(v1 != 0) { + return uintptr(0) + } + v1 = Xmalloc(tls, uint64(4)) + buf = v1 + if !(v1 != 0) { + Xfree(tls, f) + return uintptr(0) + } + Xmemset(tls, f, 0, uint64(232)) + Xmemset(tls, f+232, 0, uint64(56)) + (*Twms_FILE)(unsafe.Pointer(f)).Ff.Fcookie = f + 232 + (*Twms_FILE)(unsafe.Pointer(f)).Fc.Fbufp = bufp + (*Twms_FILE)(unsafe.Pointer(f)).Fc.Fsizep = sizep + v5 = Uint64FromInt32(0) + **(**Tsize_t)(__ccgo_up(sizep)) = v5 + v4 = v5 + (*Twms_FILE)(unsafe.Pointer(f)).Fc.Fspace = v4 + v3 = v4 + (*Twms_FILE)(unsafe.Pointer(f)).Fc.Flen1 = v3 + (*Twms_FILE)(unsafe.Pointer(f)).Fc.Fpos = v3 + v1 = buf + **(**uintptr)(__ccgo_up(bufp)) = v1 + (*Twms_FILE)(unsafe.Pointer(f)).Fc.Fbuf = v1 + **(**Twchar_t)(__ccgo_up(buf)) = 0 + (*Twms_FILE)(unsafe.Pointer(f)).Ff.Fflags = uint32(F_NORD) + (*Twms_FILE)(unsafe.Pointer(f)).Ff.Ffd = -int32(1) + (*Twms_FILE)(unsafe.Pointer(f)).Ff.Fbuf = f + 288 + (*Twms_FILE)(unsafe.Pointer(f)).Ff.Fbuf_size = uint64(0) + (*Twms_FILE)(unsafe.Pointer(f)).Ff.Flbf = -int32(1) + (*Twms_FILE)(unsafe.Pointer(f)).Ff.Fwrite = __ccgo_fp(_wms_write) + (*Twms_FILE)(unsafe.Pointer(f)).Ff.Fseek = __ccgo_fp(_wms_seek) + (*Twms_FILE)(unsafe.Pointer(f)).Ff.Fclose1 = __ccgo_fp(_wms_close) + if !(X__libc.Fthreaded != 0) { + AtomicStorePInt32(f+140, -int32(1)) + } + Xfwide(tls, f, int32(1)) + return X__ofl_add(tls, f) +} + +func Xpclose(tls *TLS, f uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var pid Tpid_t + var r, v1 int32 + var _ /* status at bp+0 */ int32 + _, _, _ = pid, r, v1 + pid = (*TFILE)(unsafe.Pointer(f)).Fpipe_pid + Xfclose(tls, f) + for { + v1 = int32(X__syscall4(tls, int64(SYS_wait4), int64(pid), int64(bp), int64(Int32FromInt32(0)), int64(Int32FromInt32(0)))) + r = v1 + if !(v1 == -int32(EINTR)) { + break + } + } + if r < 0 { + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) + } + return **(**int32)(__ccgo_up(bp)) +} + +func Xperror(tls *TLS, msg uintptr) { + if __ccgo_strace { + trc("tls=%v msg=%v, (%v:)", tls, msg, origin(2)) + } + var __need_unlock, old_mode, v1 int32 + var errstr, f, old_locale uintptr + _, _, _, _, _, _ = __need_unlock, errstr, f, old_locale, old_mode, v1 + f = uintptr(unsafe.Pointer(&X__stderr_FILE)) + errstr = Xstrerror(tls, **(**int32)(__ccgo_up(X__errno_location(tls)))) + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + /* Save stderr's orientation and encoding rule, since perror is not + * permitted to change them. */ + old_locale = (*TFILE)(unsafe.Pointer(f)).Flocale + old_mode = (*TFILE)(unsafe.Pointer(f)).Fmode + if msg != 0 && **(**int8)(__ccgo_up(msg)) != 0 { + Xfwrite(tls, msg, _strlen(tls, msg), uint64(1), f) + Xfputc(tls, int32(':'), f) + Xfputc(tls, int32(' '), f) + } + Xfwrite(tls, errstr, _strlen(tls, errstr), uint64(1), f) + Xfputc(tls, int32('\n'), f) + (*TFILE)(unsafe.Pointer(f)).Fmode = old_mode + (*TFILE)(unsafe.Pointer(f)).Flocale = old_locale + if __need_unlock != 0 { + ___unlockfile(tls, f) + } +} + +func Xprintf(tls *TLS, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v va=%v, (%v:)", tls, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvfprintf(tls, uintptr(unsafe.Pointer(&X__stdout_FILE)), fmt, ap) + _ = ap + return ret +} + +func _locking_putc1(tls *TLS, c int32, f uintptr) (r1 int32) { + var old, old1, r, v, v10, v15, v2, v6, v8 int32 + var v1, v12 uintptr + var v11 uint8 + var v4 bool + _, _, _, _, _, _, _, _, _, _, _, _, _ = old, old1, r, v, v1, v10, v11, v12, v15, v2, v4, v6, v8 + v1 = f + 140 + // __asm__ __volatile__ ("dbar 0" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 49, __ccgo_ts+1511) + for { + // __asm__ __volatile__ ( + // + // "ll.w %0, %1" + // : "=r"(v) + // : "ZC"(*p)); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 5, __ccgo_ts+1511) + v6 = v + goto _7 + _7: + old = v6 + goto _5 + _5: + ; + if v4 = old == 0; v4 { + // __asm__ __volatile__ ( + // + // "sc.w %0, %1" + // : "=r"(r), "=ZC"(*p) + // : "0"(v) : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 16, __ccgo_ts+1511) + v2 = r + goto _3 + _3: + } + if !(v4 && !(v2 != 0)) { + break + } + } + // __asm__ __volatile__ ("dbar 0" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 49, __ccgo_ts+1511) + v8 = old + goto _9 +_9: + if v8 != 0 { + ___lockfile(tls, f) + } + if Int32FromUint8(Uint8FromInt32(c)) != (*TFILE)(unsafe.Pointer(f)).Flbf && (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwend { + v11 = Uint8FromInt32(c) + v12 = f + 40 + v1 = *(*uintptr)(unsafe.Pointer(v12)) + *(*uintptr)(unsafe.Pointer(v12)) = *(*uintptr)(unsafe.Pointer(v12)) + 1 + **(**uint8)(__ccgo_up(v1)) = v11 + v2 = Int32FromUint8(v11) + } else { + v2 = X__overflow(tls, f, Int32FromUint8(Uint8FromInt32(c))) + } + c = v2 + v1 = f + 140 + // __asm__ __volatile__ ("dbar 0" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 49, __ccgo_ts+1511) + for { + // __asm__ __volatile__ ( + // + // "ll.w %0, %1" + // : "=r"(v) + // : "ZC"(*p)); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 5, __ccgo_ts+1511) + v6 = v + goto _19 + _19: + old1 = v6 + goto _17 + _17: + ; + // __asm__ __volatile__ ( + // + // "sc.w %0, %1" + // : "=r"(r), "=ZC"(*p) + // : "0"(v) : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 16, __ccgo_ts+1511) + v2 = r + goto _16 + _16: + ; + if !!(v2 != 0) { + break + } + } + // __asm__ __volatile__ ("dbar 0" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 49, __ccgo_ts+1511) + v8 = old1 + goto _21 +_21: + if v8&int32(MAYBE_WAITERS) != 0 { + v12 = f + 140 + v10 = int32(1) + v15 = int32(1) + if v15 != 0 { + v15 = int32(FUTEX_PRIVATE) + } + if v10 < Int32FromInt32(0) { + v10 = int32(INT_MAX) + } + _ = X__syscall3(tls, int64(SYS_futex), int64(v12), int64(Int32FromInt32(FUTEX_WAKE)|v15), int64(v10)) != int64(-int32(ENOSYS)) || X__syscall3(tls, int64(SYS_futex), int64(v12), int64(Int32FromInt32(FUTEX_WAKE)), int64(v10)) != 0 + } + return c +} + +func Xputc(tls *TLS, c1 int32, f1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v c1=%v f1=%v, (%v:)", tls, c1, f1, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l, v1, v3, v5 int32 + var v2, v7, v8 uintptr + var v6 uint8 + _, _, _, _, _, _, _, _ = l, v1, v2, v3, v5, v6, v7, v8 + v1 = c1 + v2 = f1 + l = AtomicLoadPInt32(v2 + 140) + if l < 0 || l != 0 && l & ^Int32FromInt32(MAYBE_WAITERS) == (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Ftid { + if Int32FromUint8(Uint8FromInt32(v1)) != (*TFILE)(unsafe.Pointer(v2)).Flbf && (*TFILE)(unsafe.Pointer(v2)).Fwpos != (*TFILE)(unsafe.Pointer(v2)).Fwend { + v6 = Uint8FromInt32(v1) + v8 = v2 + 40 + v7 = *(*uintptr)(unsafe.Pointer(v8)) + *(*uintptr)(unsafe.Pointer(v8)) = *(*uintptr)(unsafe.Pointer(v8)) + 1 + **(**uint8)(__ccgo_up(v7)) = v6 + v5 = Int32FromUint8(v6) + } else { + v5 = X__overflow(tls, v2, Int32FromUint8(Uint8FromInt32(v1))) + } + v3 = v5 + goto _4 + } + v3 = _locking_putc1(tls, v1, v2) + goto _4 +_4: + return v3 +} + +func X_IO_putc(tls *TLS, c1 int32, f1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v c1=%v f1=%v, (%v:)", tls, c1, f1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xputc(tls, c1, f1) +} + +func Xputc_unlocked(tls *TLS, c int32, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v f=%v, (%v:)", tls, c, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + var v2 uint8 + var v3, v4 uintptr + _, _, _, _ = v1, v2, v3, v4 + if Int32FromUint8(Uint8FromInt32(c)) != (*TFILE)(unsafe.Pointer(f)).Flbf && (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwend { + v2 = Uint8FromInt32(c) + v4 = f + 40 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + **(**uint8)(__ccgo_up(v3)) = v2 + v1 = Int32FromUint8(v2) + } else { + v1 = X__overflow(tls, f, Int32FromUint8(Uint8FromInt32(c))) + } + return v1 +} + +func X_IO_putc_unlocked(tls *TLS, c int32, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v f=%v, (%v:)", tls, c, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xputc_unlocked(tls, c, f) +} + +func Xfputc_unlocked(tls *TLS, c int32, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v f=%v, (%v:)", tls, c, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xputc_unlocked(tls, c, f) +} + +func _locking_putc2(tls *TLS, c int32, f uintptr) (r1 int32) { + var old, old1, r, v, v10, v15, v2, v6, v8 int32 + var v1, v12 uintptr + var v11 uint8 + var v4 bool + _, _, _, _, _, _, _, _, _, _, _, _, _ = old, old1, r, v, v1, v10, v11, v12, v15, v2, v4, v6, v8 + v1 = f + 140 + // __asm__ __volatile__ ("dbar 0" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 49, __ccgo_ts+1511) + for { + // __asm__ __volatile__ ( + // + // "ll.w %0, %1" + // : "=r"(v) + // : "ZC"(*p)); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 5, __ccgo_ts+1511) + v6 = v + goto _7 + _7: + old = v6 + goto _5 + _5: + ; + if v4 = old == 0; v4 { + // __asm__ __volatile__ ( + // + // "sc.w %0, %1" + // : "=r"(r), "=ZC"(*p) + // : "0"(v) : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 16, __ccgo_ts+1511) + v2 = r + goto _3 + _3: + } + if !(v4 && !(v2 != 0)) { + break + } + } + // __asm__ __volatile__ ("dbar 0" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 49, __ccgo_ts+1511) + v8 = old + goto _9 +_9: + if v8 != 0 { + ___lockfile(tls, f) + } + if Int32FromUint8(Uint8FromInt32(c)) != (*TFILE)(unsafe.Pointer(f)).Flbf && (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwend { + v11 = Uint8FromInt32(c) + v12 = f + 40 + v1 = *(*uintptr)(unsafe.Pointer(v12)) + *(*uintptr)(unsafe.Pointer(v12)) = *(*uintptr)(unsafe.Pointer(v12)) + 1 + **(**uint8)(__ccgo_up(v1)) = v11 + v2 = Int32FromUint8(v11) + } else { + v2 = X__overflow(tls, f, Int32FromUint8(Uint8FromInt32(c))) + } + c = v2 + v1 = f + 140 + // __asm__ __volatile__ ("dbar 0" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 49, __ccgo_ts+1511) + for { + // __asm__ __volatile__ ( + // + // "ll.w %0, %1" + // : "=r"(v) + // : "ZC"(*p)); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 5, __ccgo_ts+1511) + v6 = v + goto _19 + _19: + old1 = v6 + goto _17 + _17: + ; + // __asm__ __volatile__ ( + // + // "sc.w %0, %1" + // : "=r"(r), "=ZC"(*p) + // : "0"(v) : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 16, __ccgo_ts+1511) + v2 = r + goto _16 + _16: + ; + if !!(v2 != 0) { + break + } + } + // __asm__ __volatile__ ("dbar 0" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 49, __ccgo_ts+1511) + v8 = old1 + goto _21 +_21: + if v8&int32(MAYBE_WAITERS) != 0 { + v12 = f + 140 + v10 = int32(1) + v15 = int32(1) + if v15 != 0 { + v15 = int32(FUTEX_PRIVATE) + } + if v10 < Int32FromInt32(0) { + v10 = int32(INT_MAX) + } + _ = X__syscall3(tls, int64(SYS_futex), int64(v12), int64(Int32FromInt32(FUTEX_WAKE)|v15), int64(v10)) != int64(-int32(ENOSYS)) || X__syscall3(tls, int64(SYS_futex), int64(v12), int64(Int32FromInt32(FUTEX_WAKE)), int64(v10)) != 0 + } + return c +} + +func Xputchar(tls *TLS, c1 int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c1=%v, (%v:)", tls, c1, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l, v1, v3, v5 int32 + var v2, v7, v8 uintptr + var v6 uint8 + _, _, _, _, _, _, _, _ = l, v1, v2, v3, v5, v6, v7, v8 + v1 = c1 + v2 = uintptr(unsafe.Pointer(&X__stdout_FILE)) + l = AtomicLoadPInt32(v2 + 140) + if l < 0 || l != 0 && l & ^Int32FromInt32(MAYBE_WAITERS) == (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Ftid { + if Int32FromUint8(Uint8FromInt32(v1)) != (*TFILE)(unsafe.Pointer(v2)).Flbf && (*TFILE)(unsafe.Pointer(v2)).Fwpos != (*TFILE)(unsafe.Pointer(v2)).Fwend { + v6 = Uint8FromInt32(v1) + v8 = v2 + 40 + v7 = *(*uintptr)(unsafe.Pointer(v8)) + *(*uintptr)(unsafe.Pointer(v8)) = *(*uintptr)(unsafe.Pointer(v8)) + 1 + **(**uint8)(__ccgo_up(v7)) = v6 + v5 = Int32FromUint8(v6) + } else { + v5 = X__overflow(tls, v2, Int32FromUint8(Uint8FromInt32(v1))) + } + v3 = v5 + goto _4 + } + v3 = _locking_putc2(tls, v1, v2) + goto _4 +_4: + return v3 +} + +func Xputchar_unlocked(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + var v2 uint8 + var v3, v4 uintptr + _, _, _, _ = v1, v2, v3, v4 + if Int32FromUint8(Uint8FromInt32(c)) != (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdout_FILE)))).Flbf && (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdout_FILE)))).Fwpos != (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdout_FILE)))).Fwend { + v2 = Uint8FromInt32(c) + v4 = uintptr(unsafe.Pointer(&X__stdout_FILE)) + 40 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + **(**uint8)(__ccgo_up(v3)) = v2 + v1 = Int32FromUint8(v2) + } else { + v1 = X__overflow(tls, uintptr(unsafe.Pointer(&X__stdout_FILE)), Int32FromUint8(Uint8FromInt32(c))) + } + return v1 +} + +func Xputs(tls *TLS, s uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var __need_unlock, r, v1, v2 int32 + var v3 uint8 + var v4, v5 uintptr + var v6 bool + _, _, _, _, _, _, _, _ = __need_unlock, r, v1, v2, v3, v4, v5, v6 + if AtomicLoadPInt32(uintptr(unsafe.Pointer(&X__stdout_FILE))+140) >= 0 { + v1 = ___lockfile(tls, uintptr(unsafe.Pointer(&X__stdout_FILE))) + } else { + v1 = 0 + } + __need_unlock = v1 + if v6 = Xfputs(tls, s, uintptr(unsafe.Pointer(&X__stdout_FILE))) < 0; !v6 { + if Int32FromUint8(Uint8FromInt32(Int32FromUint8('\n'))) != (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdout_FILE)))).Flbf && (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdout_FILE)))).Fwpos != (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdout_FILE)))).Fwend { + v3 = Uint8FromInt32(Int32FromUint8('\n')) + v5 = uintptr(unsafe.Pointer(&X__stdout_FILE)) + 40 + v4 = *(*uintptr)(unsafe.Pointer(v5)) + *(*uintptr)(unsafe.Pointer(v5)) = *(*uintptr)(unsafe.Pointer(v5)) + 1 + **(**uint8)(__ccgo_up(v4)) = v3 + v2 = Int32FromUint8(v3) + } else { + v2 = X__overflow(tls, uintptr(unsafe.Pointer(&X__stdout_FILE)), Int32FromUint8(Uint8FromInt32(Int32FromUint8('\n')))) + } + } + r = -BoolInt32(v6 || v2 < 0) + if __need_unlock != 0 { + ___unlockfile(tls, uintptr(unsafe.Pointer(&X__stdout_FILE))) + } + return r +} + +func Xputw(tls *TLS, _x int32, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v _x=%v f=%v, (%v:)", tls, _x, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + *(*int32)(unsafe.Pointer(bp)) = _x + return Int32FromUint64(Xfwrite(tls, bp, uint64(4), uint64(1), f)) - int32(1) +} + +func Xputwc(tls *TLS, c Twchar_t, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v f=%v, (%v:)", tls, c, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfputwc(tls, c, f) +} + +func Xputwchar(tls *TLS, c Twchar_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfputwc(tls, c, uintptr(unsafe.Pointer(&X__stdout_FILE))) +} + +func Xputwchar_unlocked(tls *TLS, c Twchar_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xputwchar(tls, c) +} + +func Xremove(tls *TLS, path uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v path=%v, (%v:)", tls, path, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + r = int32(X__syscall3(tls, int64(SYS_unlinkat), int64(-Int32FromInt32(100)), int64(path), int64(Int32FromInt32(0)))) + if r == -int32(EISDIR) { + r = int32(X__syscall3(tls, int64(SYS_unlinkat), int64(-Int32FromInt32(100)), int64(path), int64(Int32FromInt32(AT_REMOVEDIR)))) + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func Xrename(tls *TLS, old uintptr, new1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v old=%v new1=%v, (%v:)", tls, old, new1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_renameat2), int64(-Int32FromInt32(100)), int64(old), int64(-Int32FromInt32(100)), int64(new1), int64(Int32FromInt32(0)))))) +} + +func Xrewind(tls *TLS, f uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } + var __need_unlock, v1 int32 + _, _ = __need_unlock, v1 + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + X__fseeko_unlocked(tls, f, 0, 0) + **(**uint32)(__ccgo_up(f)) &= Uint32FromInt32(^Int32FromInt32(F_ERR)) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } +} + +func Xscanf(tls *TLS, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v va=%v, (%v:)", tls, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvscanf(tls, fmt, ap) + _ = ap + return ret +} + +func X__isoc99_scanf(tls *TLS, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v va=%v, (%v:)", tls, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xscanf(tls, fmt, va) +} + +func Xsetbuf(tls *TLS, f uintptr, buf uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v buf=%v, (%v:)", tls, f, buf, origin(2)) + } + var v1 int32 + _ = v1 + if buf != 0 { + v1 = _IOFBF + } else { + v1 = int32(_IONBF) + } + Xsetvbuf(tls, f, buf, v1, uint64(BUFSIZ)) +} + +func Xsetbuffer(tls *TLS, f uintptr, buf uintptr, size Tsize_t) { + if __ccgo_strace { + trc("tls=%v f=%v buf=%v size=%v, (%v:)", tls, f, buf, size, origin(2)) + } + var v1 int32 + _ = v1 + if buf != 0 { + v1 = _IOFBF + } else { + v1 = int32(_IONBF) + } + Xsetvbuf(tls, f, buf, v1, size) +} + +func Xsetlinebuf(tls *TLS, f uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } + Xsetvbuf(tls, f, uintptr(0), int32(_IOLBF), uint64(0)) +} + +/* The behavior of this function is undefined except when it is the first + * operation on the stream, so the presence or absence of locking is not + * observable in a program whose behavior is defined. Thus no locking is + * performed here. No allocation of buffers is performed, but a buffer + * provided by the caller is used as long as it is suitably sized. */ + +func Xsetvbuf(tls *TLS, f uintptr, buf uintptr, type1 int32, size Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v buf=%v type1=%v size=%v, (%v:)", tls, f, buf, type1, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + (*TFILE)(unsafe.Pointer(f)).Flbf = -int32(1) + if type1 == int32(_IONBF) { + (*TFILE)(unsafe.Pointer(f)).Fbuf_size = uint64(0) + } else { + if type1 == int32(_IOLBF) || type1 == _IOFBF { + if buf != 0 && size >= uint64(UNGET) { + (*TFILE)(unsafe.Pointer(f)).Fbuf = buf + UintptrFromInt32(UNGET) + (*TFILE)(unsafe.Pointer(f)).Fbuf_size = size - uint64(UNGET) + } + if type1 == int32(_IOLBF) && (*TFILE)(unsafe.Pointer(f)).Fbuf_size != 0 { + (*TFILE)(unsafe.Pointer(f)).Flbf = int32('\n') + } + } else { + return -int32(1) + } + } + **(**uint32)(__ccgo_up(f)) |= uint32(F_SVB) + return 0 +} + +func Xsnprintf(tls *TLS, s uintptr, n Tsize_t, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v fmt=%v va=%v, (%v:)", tls, s, n, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvsnprintf(tls, s, n, fmt, ap) + _ = ap + return ret +} + +func Xsprintf(tls *TLS, s uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v va=%v, (%v:)", tls, s, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvsprintf(tls, s, fmt, ap) + _ = ap + return ret +} + +func Xsscanf(tls *TLS, s uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v va=%v, (%v:)", tls, s, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvsscanf(tls, s, fmt, ap) + _ = ap + return ret +} + +func X__isoc99_sscanf(tls *TLS, s uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v va=%v, (%v:)", tls, s, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xsscanf(tls, s, fmt, va) +} + +var _buf5 [8]uint8 + +func init() { + p := unsafe.Pointer(&X__stderr_FILE) + *(*uintptr)(unsafe.Add(p, 24)) = __ccgo_fp(X__stdio_close) + *(*uintptr)(unsafe.Add(p, 72)) = __ccgo_fp(X__stdio_write) + *(*uintptr)(unsafe.Add(p, 80)) = __ccgo_fp(X__stdio_seek) +} + +var _buf6 [1032]uint8 + +func init() { + p := unsafe.Pointer(&X__stdin_FILE) + *(*uintptr)(unsafe.Add(p, 24)) = __ccgo_fp(X__stdio_close) + *(*uintptr)(unsafe.Add(p, 64)) = __ccgo_fp(X__stdio_read) + *(*uintptr)(unsafe.Add(p, 80)) = __ccgo_fp(X__stdio_seek) +} + +var _buf7 [1032]uint8 + +func init() { + p := unsafe.Pointer(&X__stdout_FILE) + *(*uintptr)(unsafe.Add(p, 24)) = __ccgo_fp(X__stdio_close) + *(*uintptr)(unsafe.Add(p, 72)) = __ccgo_fp(X__stdout_write) + *(*uintptr)(unsafe.Add(p, 80)) = __ccgo_fp(X__stdio_seek) +} + +func Xswprintf(tls *TLS, s uintptr, n Tsize_t, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v fmt=%v va=%v, (%v:)", tls, s, n, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvswprintf(tls, s, n, fmt, ap) + _ = ap + return ret +} + +func Xswscanf(tls *TLS, s uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v va=%v, (%v:)", tls, s, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvswscanf(tls, s, fmt, ap) + _ = ap + return ret +} + +func X__isoc99_swscanf(tls *TLS, s uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v va=%v, (%v:)", tls, s, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xswscanf(tls, s, fmt, va) +} + +const MAXTRIES = 100 + +func Xtempnam(tls *TLS, dir uintptr, pfx uintptr) (r1 uintptr) { + if __ccgo_strace { + trc("tls=%v dir=%v pfx=%v, (%v:)", tls, dir, pfx, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(4112) + defer tls.Free(4112) + var dl, l, pl Tsize_t + var r, try int32 + var _ /* s at bp+1 */ [4096]int8 + _, _, _, _, _ = dl, l, pl, r, try + if !(dir != 0) { + dir = __ccgo_ts + 1563 + } + if !(pfx != 0) { + pfx = __ccgo_ts + 1568 + } + dl = _strlen(tls, dir) + pl = _strlen(tls, pfx) + l = dl + uint64(1) + pl + uint64(1) + uint64(6) + if l >= uint64(PATH_MAX) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENAMETOOLONG) + return uintptr(0) + } + Xmemcpy(tls, bp+1, dir, dl) + (**(**[4096]int8)(__ccgo_up(bp + 1)))[dl] = int8('/') + Xmemcpy(tls, bp+1+uintptr(dl)+uintptr(1), pfx, pl) + (**(**[4096]int8)(__ccgo_up(bp + 1)))[dl+uint64(1)+pl] = int8('_') + (**(**[4096]int8)(__ccgo_up(bp + 1)))[l] = 0 + try = 0 + for { + if !(try < int32(MAXTRIES)) { + break + } + ___randname(tls, bp+1+uintptr(l)-uintptr(6)) + *(*[1]int8)(unsafe.Pointer(bp)) = [1]int8{} + r = int32(X__syscall4(tls, int64(SYS_readlinkat), int64(-Int32FromInt32(100)), int64(bp+1), int64(bp), int64(Int32FromInt32(1)))) + if r == -int32(ENOENT) { + return Xstrdup(tls, bp+1) + } + goto _1 + _1: + ; + try = try + 1 + } + return uintptr(0) +} + +func Xtmpfile(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var f uintptr + var fd, try int32 + var _ /* s at bp+0 */ [20]int8 + _, _, _ = f, fd, try + **(**[20]int8)(__ccgo_up(bp)) = [20]int8{'/', 't', 'm', 'p', '/', 't', 'm', 'p', 'f', 'i', 'l', 'e', '_', 'X', 'X', 'X', 'X', 'X', 'X'} + try = 0 + for { + if !(try < int32(MAXTRIES)) { + break + } + ___randname(tls, bp+uintptr(13)) + fd = int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_openat), int64(-Int32FromInt32(100)), int64(bp), int64(Int32FromInt32(O_RDWR)|Int32FromInt32(O_CREAT)|Int32FromInt32(O_EXCL)|Int32FromInt32(O_LARGEFILE)), int64(Int32FromInt32(0600)))))) + if fd >= 0 { + X__syscall3(tls, int64(SYS_unlinkat), int64(-Int32FromInt32(100)), int64(bp), int64(Int32FromInt32(0))) + f = X__fdopen(tls, fd, __ccgo_ts+1573) + if !(f != 0) { + X__syscall1(tls, int64(SYS_close), int64(fd)) + } + return f + } + goto _1 + _1: + ; + try = try + 1 + } + return uintptr(0) +} + +func Xtmpnam(tls *TLS, buf uintptr) (r1 uintptr) { + if __ccgo_strace { + trc("tls=%v buf=%v, (%v:)", tls, buf, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var r, try int32 + var v2 uintptr + var _ /* s at bp+1 */ [19]int8 + _, _, _ = r, try, v2 + **(**[19]int8)(__ccgo_up(bp + 1)) = [19]int8{'/', 't', 'm', 'p', '/', 't', 'm', 'p', 'n', 'a', 'm', '_', 'X', 'X', 'X', 'X', 'X', 'X'} + try = 0 + for { + if !(try < int32(MAXTRIES)) { + break + } + ___randname(tls, bp+1+uintptr(12)) + *(*[1]int8)(unsafe.Pointer(bp)) = [1]int8{} + r = int32(X__syscall4(tls, int64(SYS_readlinkat), int64(-Int32FromInt32(100)), int64(bp+1), int64(bp), int64(Int32FromInt32(1)))) + if r == -int32(ENOENT) { + if buf != 0 { + v2 = buf + } else { + v2 = uintptr(unsafe.Pointer(&_internal1)) + } + return Xstrcpy(tls, v2, bp+1) + } + goto _1 + _1: + ; + try = try + 1 + } + return uintptr(0) +} + +var _internal1 [20]int8 + +func Xungetc(tls *TLS, c int32, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v f=%v, (%v:)", tls, c, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, v1 int32 + var v2, v3 uintptr + _, _, _, _ = __need_unlock, v1, v2, v3 + if c == -int32(1) { + return c + } + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + if !((*TFILE)(unsafe.Pointer(f)).Frpos != 0) { + X__toread(tls, f) + } + if !((*TFILE)(unsafe.Pointer(f)).Frpos != 0) || (*TFILE)(unsafe.Pointer(f)).Frpos <= (*TFILE)(unsafe.Pointer(f)).Fbuf-uintptr(UNGET) { + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return -int32(1) + } + v3 = f + 8 + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) - 1 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + **(**uint8)(__ccgo_up(v2)) = Uint8FromInt32(c) + **(**uint32)(__ccgo_up(f)) &= Uint32FromInt32(^Int32FromInt32(F_EOF)) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return Int32FromUint8(Uint8FromInt32(c)) +} + +func Xungetwc(tls *TLS, c Twint_t, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v f=%v, (%v:)", tls, c, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var __need_unlock, l, v1 int32 + var loc Tlocale_t + var ploc, v4, v5 uintptr + var v3 bool + var _ /* mbc at bp+0 */ [4]uint8 + _, _, _, _, _, _, _, _ = __need_unlock, l, loc, ploc, v1, v3, v4, v5 + ploc = uintptr(___get_tp(tls)) + 152 + loc = **(**Tlocale_t)(__ccgo_up(ploc)) + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + if (*TFILE)(unsafe.Pointer(f)).Fmode <= 0 { + Xfwide(tls, f, int32(1)) + } + **(**Tlocale_t)(__ccgo_up(ploc)) = (*TFILE)(unsafe.Pointer(f)).Flocale + if !((*TFILE)(unsafe.Pointer(f)).Frpos != 0) { + X__toread(tls, f) + } + if v3 = !((*TFILE)(unsafe.Pointer(f)).Frpos != 0) || c == uint32(0xffffffff); !v3 { + v1 = Int32FromUint64(Xwcrtomb(tls, bp, Int32FromUint32(c), uintptr(0))) + l = v1 + } + if v3 || v1 < 0 || (*TFILE)(unsafe.Pointer(f)).Frpos < (*TFILE)(unsafe.Pointer(f)).Fbuf-uintptr(UNGET)+uintptr(l) { + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + **(**Tlocale_t)(__ccgo_up(ploc)) = loc + return uint32(0xffffffff) + } + if BoolInt32(c < uint32(128)) != 0 { + v5 = f + 8 + *(*uintptr)(unsafe.Pointer(v5)) = *(*uintptr)(unsafe.Pointer(v5)) - 1 + v4 = *(*uintptr)(unsafe.Pointer(v5)) + **(**uint8)(__ccgo_up(v4)) = uint8(c) + } else { + v4 = f + 8 + *(*uintptr)(unsafe.Pointer(v4)) -= uintptr(l) + Xmemcpy(tls, *(*uintptr)(unsafe.Pointer(v4)), bp, Uint64FromInt32(l)) + } + **(**uint32)(__ccgo_up(f)) &= Uint32FromInt32(^Int32FromInt32(F_EOF)) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + **(**Tlocale_t)(__ccgo_up(ploc)) = loc + return c +} + +func Xvasprintf(tls *TLS, s uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v ap=%v, (%v:)", tls, s, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap2 Tva_list + var l int32 + var v1 uintptr + var v2 bool + _, _, _, _ = ap2, l, v1, v2 + ap2 = ap + l = Xvsnprintf(tls, uintptr(0), uint64(0), fmt, ap2) + _ = ap2 + if v2 = l < 0; !v2 { + v1 = Xmalloc(tls, uint64(Uint32FromInt32(l)+uint32(1))) + **(**uintptr)(__ccgo_up(s)) = v1 + } + if v2 || !(v1 != 0) { + return -int32(1) + } + return Xvsnprintf(tls, **(**uintptr)(__ccgo_up(s)), uint64(Uint32FromInt32(l)+uint32(1)), fmt, ap) +} + +func Xvdprintf(tls *TLS, fd int32, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v fmt=%v ap=%v, (%v:)", tls, fd, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(240) + defer tls.Free(240) + var _ /* f at bp+0 */ TFILE + **(**TFILE)(__ccgo_up(bp)) = TFILE{ + Fwrite: __ccgo_fp(X__stdio_write), + Fbuf: fmt, + Ffd: fd, + Flock: -int32(1), + Flbf: -int32(1), + } + return Xvfprintf(tls, bp, fmt, ap) +} + +const ALT_FORM = 8 +const FLAGMASK = 75913 +const GROUPED = 128 +const LDBL_EPSILON3 = 2.22044604925031308085e-16 +const LEFT_ADJ = 8192 +const MARK_POS = 2048 +const PAD_POS = 1 +const ZERO_PAD = 65536 + +const _BARE = 0 +const _LPRE = 1 +const _LLPRE = 2 +const _HPRE = 3 +const _HHPRE = 4 +const _BIGLPRE = 5 +const _ZTPRE = 6 +const _JPRE = 7 +const _STOP = 8 +const _PTR = 9 +const _INT = 10 +const _UINT = 11 +const _ULLONG = 12 +const _LONG = 13 +const _ULONG = 14 +const _SHORT = 15 +const _USHORT = 16 +const _CHAR = 17 +const _UCHAR = 18 +const _LLONG = 19 +const _SIZET = 20 +const _IMAX = 21 +const _UMAX = 22 +const _PDIFF = 23 +const _UIPTR = 24 +const _DBL = 25 +const _LDBL = 26 +const _NOARG = 27 +const _MAXSTATE = 28 + +var _states = [8][58]uint8{ + 0: { + 0: uint8(_DBL), + 2: uint8(_UINT), + 4: uint8(_DBL), + 5: uint8(_DBL), + 6: uint8(_DBL), + 11: uint8(_BIGLPRE), + 18: uint8(_PTR), + 23: uint8(_UINT), + 32: uint8(_DBL), + 34: uint8(_INT), + 35: uint8(_INT), + 36: uint8(_DBL), + 37: uint8(_DBL), + 38: uint8(_DBL), + 39: uint8(_HPRE), + 40: uint8(_INT), + 41: uint8(_JPRE), + 43: uint8(_LPRE), + 44: uint8(_NOARG), + 45: uint8(_PTR), + 46: uint8(_UINT), + 47: uint8(_UIPTR), + 50: uint8(_PTR), + 51: uint8(_ZTPRE), + 52: uint8(_UINT), + 55: uint8(_UINT), + 57: uint8(_ZTPRE), + }, + 1: { + 0: uint8(_DBL), + 4: uint8(_DBL), + 5: uint8(_DBL), + 6: uint8(_DBL), + 23: uint8(_ULONG), + 32: uint8(_DBL), + 34: uint8(_UINT), + 35: uint8(_LONG), + 36: uint8(_DBL), + 37: uint8(_DBL), + 38: uint8(_DBL), + 40: uint8(_LONG), + 43: uint8(_LLPRE), + 45: uint8(_PTR), + 46: uint8(_ULONG), + 50: uint8(_PTR), + 52: uint8(_ULONG), + 55: uint8(_ULONG), + }, + 2: { + 23: uint8(_ULLONG), + 35: uint8(_LLONG), + 40: uint8(_LLONG), + 45: uint8(_PTR), + 46: uint8(_ULLONG), + 52: uint8(_ULLONG), + 55: uint8(_ULLONG), + }, + 3: { + 23: uint8(_USHORT), + 35: uint8(_SHORT), + 39: uint8(_HHPRE), + 40: uint8(_SHORT), + 45: uint8(_PTR), + 46: uint8(_USHORT), + 52: uint8(_USHORT), + 55: uint8(_USHORT), + }, + 4: { + 23: uint8(_UCHAR), + 35: uint8(_CHAR), + 40: uint8(_CHAR), + 45: uint8(_PTR), + 46: uint8(_UCHAR), + 52: uint8(_UCHAR), + 55: uint8(_UCHAR), + }, + 5: { + 0: uint8(_LDBL), + 4: uint8(_LDBL), + 5: uint8(_LDBL), + 6: uint8(_LDBL), + 32: uint8(_LDBL), + 36: uint8(_LDBL), + 37: uint8(_LDBL), + 38: uint8(_LDBL), + 45: uint8(_PTR), + }, + 6: { + 23: uint8(_SIZET), + 35: uint8(_PDIFF), + 40: uint8(_PDIFF), + 45: uint8(_PTR), + 46: uint8(_SIZET), + 52: uint8(_SIZET), + 55: uint8(_SIZET), + }, + 7: { + 23: uint8(_UMAX), + 35: uint8(_IMAX), + 40: uint8(_IMAX), + 45: uint8(_PTR), + 46: uint8(_UMAX), + 52: uint8(_UMAX), + 55: uint8(_UMAX), + }, +} + +type Targ = struct { + Ff [0]float64 + Fp [0]uintptr + Fi Tuintmax_t +} + +func _pop_arg(tls *TLS, arg uintptr, type1 int32, ap uintptr) { + switch type1 { + case int32(_PTR): + *(*uintptr)(unsafe.Pointer(arg)) = VaUintptr(&**(**Tva_list)(__ccgo_up(ap))) + case int32(_INT): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt32(VaInt32(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_UINT): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(VaUint32(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_LONG): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt64(VaInt64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_ULONG): + (*Targ)(unsafe.Pointer(arg)).Fi = VaUint64(&**(**Tva_list)(__ccgo_up(ap))) + case int32(_ULLONG): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(VaUint64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_SHORT): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt16(int16(VaInt32(&**(**Tva_list)(__ccgo_up(ap))))) + case int32(_USHORT): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(Uint16FromInt32(VaInt32(&**(**Tva_list)(__ccgo_up(ap))))) + case int32(_CHAR): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt8(int8(VaInt32(&**(**Tva_list)(__ccgo_up(ap))))) + case int32(_UCHAR): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(Uint8FromInt32(VaInt32(&**(**Tva_list)(__ccgo_up(ap))))) + case int32(_LLONG): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt64(VaInt64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_SIZET): + (*Targ)(unsafe.Pointer(arg)).Fi = VaUint64(&**(**Tva_list)(__ccgo_up(ap))) + case int32(_IMAX): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt64(VaInt64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_UMAX): + (*Targ)(unsafe.Pointer(arg)).Fi = VaUint64(&**(**Tva_list)(__ccgo_up(ap))) + case int32(_PDIFF): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt64(VaInt64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_UIPTR): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(VaUintptr(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_DBL): + *(*float64)(unsafe.Pointer(arg)) = float64(VaFloat64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_LDBL): + *(*float64)(unsafe.Pointer(arg)) = VaFloat64(&**(**Tva_list)(__ccgo_up(ap))) + } +} + +func _out(tls *TLS, f uintptr, s uintptr, l Tsize_t) { + if !((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_ERR) != 0) { + X__fwritex(tls, s, l, f) + } +} + +func _pad3(tls *TLS, f uintptr, c int8, w int32, l int32, fl int32) { + bp := tls.Alloc(256) + defer tls.Free(256) + var v1 uint64 + var _ /* pad at bp+0 */ [256]int8 + _ = v1 + if Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8('0')-Int32FromUint8(' '))) != 0 || l >= w { + return + } + l = w - l + if Uint64FromInt32(l) > uint64(256) { + v1 = uint64(256) + } else { + v1 = Uint64FromInt32(l) + } + Xmemset(tls, bp, int32(c), v1) + for { + if !(Uint64FromInt32(l) >= uint64(256)) { + break + } + _out(tls, f, bp, uint64(256)) + goto _2 + _2: + ; + l = Int32FromUint64(uint64(l) - Uint64FromInt64(256)) + } + _out(tls, f, bp, Uint64FromInt32(l)) +} + +var _xdigits1 = [16]int8{'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'} + +func _fmt_x(tls *TLS, x Tuintmax_t, s uintptr, lower int32) (r uintptr) { + var v2 uintptr + _ = v2 + for { + if !(x != 0) { + break + } + s = s - 1 + v2 = s + **(**int8)(__ccgo_up(v2)) = int8(int32(_xdigits1[x&uint64(15)]) | lower) + goto _1 + _1: + ; + x = x >> uint64(4) + } + return s +} + +func _fmt_o(tls *TLS, x Tuintmax_t, s uintptr) (r uintptr) { + var v2 uintptr + _ = v2 + for { + if !(x != 0) { + break + } + s = s - 1 + v2 = s + **(**int8)(__ccgo_up(v2)) = Int8FromUint64(uint64('0') + x&uint64(7)) + goto _1 + _1: + ; + x = x >> uint64(3) + } + return s +} + +func _fmt_u(tls *TLS, x Tuintmax_t, s uintptr) (r uintptr) { + var y uint64 + var v2 uintptr + _, _ = y, v2 + for { + if !(x > Uint64FromUint64(2)*Uint64FromInt64(0x7fffffffffffffff)+Uint64FromInt32(1)) { + break + } + s = s - 1 + v2 = s + **(**int8)(__ccgo_up(v2)) = Int8FromUint64(uint64('0') + x%uint64(10)) + goto _1 + _1: + ; + x = x / uint64(10) + } + y = x + for { + if !(y != 0) { + break + } + s = s - 1 + v2 = s + **(**int8)(__ccgo_up(v2)) = Int8FromUint64(uint64('0') + y%uint64(10)) + goto _3 + _3: + ; + y = y / uint64(10) + } + return s +} + +// C documentation +// +// /* Do not override this check. The floating point printing code below +// * depends on the float.h constants being right. If they are wrong, it +// * may overflow the stack. */ +type Tcompiler_defines_long_double_incorrectly = [1]int8 + +func _fmt_fp(tls *TLS, f uintptr, y float64, w int32, p int32, fl int32, t int32) (r1 int32) { + bp := tls.Alloc(560) + defer tls.Free(560) + var a, b, d, ebuf, estr, prefix, r, s, s1, s2, s3, s4, z, v5, v6 uintptr + var carry, carry1, rm, x2 Tuint32_t + var e, i, j, l, need, pl, re, sh, sh1, x, v7 int32 + var round, round1, small float64 + var x1 Tuint64_t + var v1 uint64 + var v36, v37, v38 int64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + var _ /* big at bp+8 */ [126]Tuint32_t + var _ /* buf at bp+516 */ [22]int8 + var _ /* e2 at bp+512 */ int32 + var _ /* ebuf0 at bp+538 */ [12]int8 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = a, b, carry, carry1, d, e, ebuf, estr, i, j, l, need, pl, prefix, r, re, rm, round, round1, s, s1, s2, s3, s4, sh, sh1, small, x, x1, x2, z, v1, v36, v37, v38, v5, v6, v7 + **(**int32)(__ccgo_up(bp + 512)) = 0 + prefix = __ccgo_ts + 1576 + ebuf = bp + 538 + uintptr(Uint64FromInt32(3)*Uint64FromInt64(4)) + pl = int32(1) + *(*float64)(unsafe.Pointer(bp)) = y + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + if Int32FromUint64(v1>>Int32FromInt32(63)) != 0 { + y = -y + } else { + if Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('+')-Int32FromUint8(' '))) != 0 { + prefix = prefix + uintptr(3) + } else { + if Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8(' ')-Int32FromUint8(' '))) != 0 { + prefix = prefix + uintptr(6) + } else { + prefix = prefix + 1 + pl = Int32FromInt32(0) + } + } + } + *(*float64)(unsafe.Pointer(bp)) = y + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _4 +_4: + if !(BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) < Uint64FromUint64(0x7ff)< int32(3)+pl { + v7 = w + } else { + v7 = int32(3) + pl + } + return v7 + } + y = float64(Xfrexpl(tls, y, bp+512) * Float64FromInt32(2)) + if y != 0 { + **(**int32)(__ccgo_up(bp + 512)) = **(**int32)(__ccgo_up(bp + 512)) - 1 + } + if t|int32(32) == int32('a') { + round = Float64FromFloat64(8) + if t&int32(32) != 0 { + prefix = prefix + uintptr(9) + } + pl = pl + int32(2) + if p < 0 || p >= Int32FromInt32(LDBL_MANT_DIG)/Int32FromInt32(4)-Int32FromInt32(1) { + re = 0 + } else { + re = Int32FromInt32(LDBL_MANT_DIG)/Int32FromInt32(4) - Int32FromInt32(1) - p + } + if re != 0 { + round = round * float64(Int32FromInt32(1)<<(Int32FromInt32(LDBL_MANT_DIG)%Int32FromInt32(4))) + for { + v7 = re + re = re - 1 + if !(v7 != 0) { + break + } + round = round * Float64FromInt32(16) + } + if int32(**(**int8)(__ccgo_up(prefix))) == int32('-') { + y = -y + y = y - round + y = y + round + y = -y + } else { + y = y + round + y = y - round + } + } + if **(**int32)(__ccgo_up(bp + 512)) < 0 { + v7 = -**(**int32)(__ccgo_up(bp + 512)) + } else { + v7 = **(**int32)(__ccgo_up(bp + 512)) + } + estr = _fmt_u(tls, Uint64FromInt32(v7), ebuf) + if estr == ebuf { + estr = estr - 1 + v5 = estr + **(**int8)(__ccgo_up(v5)) = int8('0') + } + estr = estr - 1 + v5 = estr + if **(**int32)(__ccgo_up(bp + 512)) < 0 { + v7 = int32('-') + } else { + v7 = int32('+') + } + **(**int8)(__ccgo_up(v5)) = int8(v7) + estr = estr - 1 + v5 = estr + **(**int8)(__ccgo_up(v5)) = int8(t + (Int32FromUint8('p') - Int32FromUint8('a'))) + s = bp + 516 + for cond := true; cond; cond = y != 0 { + x = int32(y) + v5 = s + s = s + 1 + **(**int8)(__ccgo_up(v5)) = int8(int32(_xdigits1[x]) | t&int32(32)) + y = float64(Float64FromInt32(16) * (y - float64(x))) + if int64(s)-t__predefined_ptrdiff_t(bp+516) == int64(1) && (y != 0 || p > 0 || Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0) { + v5 = s + s = s + 1 + **(**int8)(__ccgo_up(v5)) = int8('.') + } + } + if int64(p) > int64(Int32FromInt32(INT_MAX)-Int32FromInt32(2))-(int64(ebuf)-int64(estr))-int64(pl) { + return -int32(1) + } + if p != 0 && int64(s)-t__predefined_ptrdiff_t(bp+516)-int64(2) < int64(p) { + l = int32(int64(p+Int32FromInt32(2)) + (int64(ebuf) - int64(estr))) + } else { + l = int32(int64(s) - t__predefined_ptrdiff_t(bp+516) + (int64(ebuf) - int64(estr))) + } + _pad3(tls, f, int8(' '), w, pl+l, fl) + _out(tls, f, prefix, Uint64FromInt32(pl)) + _pad3(tls, f, int8('0'), w, pl+l, Int32FromUint32(Uint32FromInt32(fl)^Uint32FromUint32(1)<<(Int32FromUint8('0')-Int32FromUint8(' ')))) + _out(tls, f, bp+516, Uint64FromInt64(int64(s)-t__predefined_ptrdiff_t(bp+516))) + _pad3(tls, f, int8('0'), int32(int64(l)-(int64(ebuf)-int64(estr))-(int64(s)-t__predefined_ptrdiff_t(bp+516))), 0, 0) + _out(tls, f, estr, Uint64FromInt64(int64(ebuf)-int64(estr))) + _pad3(tls, f, int8(' '), w, pl+l, Int32FromUint32(Uint32FromInt32(fl)^Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' ')))) + if w > pl+l { + v7 = w + } else { + v7 = pl + l + } + return v7 + } + if p < 0 { + p = int32(6) + } + if y != 0 { + y = y * Float64FromFloat64(2.68435456e+08) + **(**int32)(__ccgo_up(bp + 512)) = **(**int32)(__ccgo_up(bp + 512)) - int32(28) + } + if **(**int32)(__ccgo_up(bp + 512)) < 0 { + v6 = bp + 8 + z = v6 + v5 = v6 + r = v5 + a = v5 + } else { + v6 = bp + 8 + uintptr(Uint64FromInt64(504)/Uint64FromInt64(4))*4 - UintptrFromInt32(LDBL_MANT_DIG)*4 - UintptrFromInt32(1)*4 + z = v6 + v5 = v6 + r = v5 + a = v5 + } + for cond := true; cond; cond = y != 0 { + **(**Tuint32_t)(__ccgo_up(z)) = uint32(y) + v5 = z + z += 4 + y = float64(Float64FromInt32(1000000000) * (y - float64(**(**Tuint32_t)(__ccgo_up(v5))))) + } + for **(**int32)(__ccgo_up(bp + 512)) > 0 { + carry = uint32(0) + if int32(29) < **(**int32)(__ccgo_up(bp + 512)) { + v7 = int32(29) + } else { + v7 = **(**int32)(__ccgo_up(bp + 512)) + } + sh = v7 + d = z - uintptr(1)*4 + for { + if !(d >= a) { + break + } + x1 = uint64(**(**Tuint32_t)(__ccgo_up(d)))< a && !(**(**Tuint32_t)(__ccgo_up(z + uintptr(-Int32FromInt32(1))*4)) != 0) { + z -= 4 + } + **(**int32)(__ccgo_up(bp + 512)) = **(**int32)(__ccgo_up(bp + 512)) - sh + } + for **(**int32)(__ccgo_up(bp + 512)) < 0 { + carry1 = uint32(0) + if int32(9) < -**(**int32)(__ccgo_up(bp + 512)) { + v7 = int32(9) + } else { + v7 = -**(**int32)(__ccgo_up(bp + 512)) + } + sh1 = v7 + need = Int32FromUint32(uint32(1) + (Uint32FromInt32(p)+Uint32FromInt32(LDBL_MANT_DIG)/Uint32FromUint32(3)+uint32(8))/uint32(9)) + d = a + for { + if !(d < z) { + break + } + rm = **(**Tuint32_t)(__ccgo_up(d)) & Uint32FromInt32(int32(1)<>sh1 + carry1 + carry1 = Uint32FromInt32(Int32FromInt32(1000000000)>>sh1) * rm + goto _26 + _26: + ; + d += 4 + } + if !(**(**Tuint32_t)(__ccgo_up(a)) != 0) { + a += 4 + } + if carry1 != 0 { + v5 = z + z += 4 + **(**Tuint32_t)(__ccgo_up(v5)) = carry1 + } + /* Avoid (slow!) computation past requested precision */ + if t|int32(32) == int32('f') { + v5 = r + } else { + v5 = a + } + b = v5 + if (int64(z)-int64(b))/4 > int64(need) { + z = b + uintptr(need)*4 + } + **(**int32)(__ccgo_up(bp + 512)) = **(**int32)(__ccgo_up(bp + 512)) + sh1 + } + if a < z { + i = int32(10) + e = int32(Int64FromInt32(9) * ((int64(r) - int64(a)) / 4)) + for { + if !(**(**Tuint32_t)(__ccgo_up(a)) >= Uint32FromInt32(i)) { + break + } + goto _29 + _29: + ; + i = i * int32(10) + e = e + 1 + } + } else { + e = 0 + } + /* Perform rounding: j is precision after the radix (possibly neg) */ + j = p - BoolInt32(t|int32(32) != int32('f'))*e - BoolInt32(t|int32(32) == int32('g') && p != 0) + if int64(j) < int64(9)*((int64(z)-int64(r))/4-int64(1)) { + /* We avoid C's broken division of negative numbers */ + d = r + uintptr(1)*4 + uintptr((j+Int32FromInt32(9)*Int32FromInt32(LDBL_MAX_EXP))/Int32FromInt32(9)-Int32FromInt32(LDBL_MAX_EXP))*4 + j = j + Int32FromInt32(9)*Int32FromInt32(LDBL_MAX_EXP) + j = j % int32(9) + i = int32(10) + j = j + 1 + for { + if !(j < int32(9)) { + break + } + goto _30 + _30: + ; + i = i * int32(10) + j = j + 1 + } + x2 = **(**Tuint32_t)(__ccgo_up(d)) % Uint32FromInt32(i) + /* Are there any significant digits past j? */ + if x2 != 0 || d+uintptr(1)*4 != z { + round1 = Float64FromInt32(2) / Float64FromFloat64(2.22044604925031308085e-16) + if **(**Tuint32_t)(__ccgo_up(d))/Uint32FromInt32(i)&uint32(1) != 0 || i == int32(1000000000) && d > a && **(**Tuint32_t)(__ccgo_up(d + uintptr(-Int32FromInt32(1))*4))&uint32(1) != 0 { + round1 = round1 + Float64FromInt32(2) + } + if x2 < Uint32FromInt32(i/int32(2)) { + small = Float64FromFloat64(0.5) + } else { + if x2 == Uint32FromInt32(i/int32(2)) && d+uintptr(1)*4 == z { + small = Float64FromFloat64(1) + } else { + small = Float64FromFloat64(1.5) + } + } + if pl != 0 && int32(**(**int8)(__ccgo_up(prefix))) == int32('-') { + round1 = round1 * float64(-Int32FromInt32(1)) + small = small * float64(-Int32FromInt32(1)) + } + **(**Tuint32_t)(__ccgo_up(d)) -= x2 + /* Decide whether to round by probing round+small */ + if round1+small != round1 { + **(**Tuint32_t)(__ccgo_up(d)) = **(**Tuint32_t)(__ccgo_up(d)) + Uint32FromInt32(i) + for **(**Tuint32_t)(__ccgo_up(d)) > uint32(999999999) { + v5 = d + d -= 4 + **(**Tuint32_t)(__ccgo_up(v5)) = uint32(0) + if d < a { + a -= 4 + v5 = a + **(**Tuint32_t)(__ccgo_up(v5)) = uint32(0) + } + **(**Tuint32_t)(__ccgo_up(d)) = **(**Tuint32_t)(__ccgo_up(d)) + 1 + } + i = int32(10) + e = int32(Int64FromInt32(9) * ((int64(r) - int64(a)) / 4)) + for { + if !(**(**Tuint32_t)(__ccgo_up(a)) >= Uint32FromInt32(i)) { + break + } + goto _33 + _33: + ; + i = i * int32(10) + e = e + 1 + } + } + } + if z > d+uintptr(1)*4 { + z = d + uintptr(1)*4 + } + } + for { + if !(z > a && !(**(**Tuint32_t)(__ccgo_up(z + uintptr(-Int32FromInt32(1))*4)) != 0)) { + break + } + goto _34 + _34: + ; + z -= 4 + } + if t|int32(32) == int32('g') { + if !(p != 0) { + p = p + 1 + } + if p > e && e >= -int32(4) { + t = t - 1 + p = p - (e + int32(1)) + } else { + t = t - int32(2) + p = p - 1 + } + if !(Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0) { + /* Count trailing zeros in last place */ + if z > a && **(**Tuint32_t)(__ccgo_up(z + uintptr(-Int32FromInt32(1))*4)) != 0 { + i = int32(10) + j = Int32FromInt32(0) + for { + if !(**(**Tuint32_t)(__ccgo_up(z + uintptr(-Int32FromInt32(1))*4))%Uint32FromInt32(i) == uint32(0)) { + break + } + goto _35 + _35: + ; + i = i * int32(10) + j = j + 1 + } + } else { + j = int32(9) + } + if t|int32(32) == int32('f') { + if int64(Int32FromInt32(0)) > int64(9)*((int64(z)-int64(r))/4-int64(1))-int64(j) { + v37 = int64(Int32FromInt32(0)) + } else { + v37 = int64(9)*((int64(z)-int64(r))/4-int64(1)) - int64(j) + } + if int64(p) < v37 { + v36 = int64(p) + } else { + if int64(Int32FromInt32(0)) > int64(9)*((int64(z)-int64(r))/4-int64(1))-int64(j) { + v38 = int64(Int32FromInt32(0)) + } else { + v38 = int64(9)*((int64(z)-int64(r))/4-int64(1)) - int64(j) + } + v36 = v38 + } + p = int32(v36) + } else { + if int64(Int32FromInt32(0)) > int64(9)*((int64(z)-int64(r))/4-int64(1))+int64(e)-int64(j) { + v37 = int64(Int32FromInt32(0)) + } else { + v37 = int64(9)*((int64(z)-int64(r))/4-int64(1)) + int64(e) - int64(j) + } + if int64(p) < v37 { + v36 = int64(p) + } else { + if int64(Int32FromInt32(0)) > int64(9)*((int64(z)-int64(r))/4-int64(1))+int64(e)-int64(j) { + v38 = int64(Int32FromInt32(0)) + } else { + v38 = int64(9)*((int64(z)-int64(r))/4-int64(1)) + int64(e) - int64(j) + } + v36 = v38 + } + p = int32(v36) + } + } + } + if p > Int32FromInt32(INT_MAX)-Int32FromInt32(1)-BoolInt32(p != 0 || Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0) { + return -int32(1) + } + l = int32(1) + p + BoolInt32(p != 0 || Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0) + if t|int32(32) == int32('f') { + if e > int32(INT_MAX)-l { + return -int32(1) + } + if e > 0 { + l = l + e + } + } else { + if e < 0 { + v7 = -e + } else { + v7 = e + } + estr = _fmt_u(tls, Uint64FromInt32(v7), ebuf) + for int64(ebuf)-int64(estr) < int64(2) { + estr = estr - 1 + v5 = estr + **(**int8)(__ccgo_up(v5)) = int8('0') + } + estr = estr - 1 + v5 = estr + if e < 0 { + v7 = int32('-') + } else { + v7 = int32('+') + } + **(**int8)(__ccgo_up(v5)) = int8(v7) + estr = estr - 1 + v5 = estr + **(**int8)(__ccgo_up(v5)) = int8(t) + if int64(ebuf)-int64(estr) > int64(int32(INT_MAX)-l) { + return -int32(1) + } + l = int32(int64(l) + (int64(ebuf) - int64(estr))) + } + if l > int32(INT_MAX)-pl { + return -int32(1) + } + _pad3(tls, f, int8(' '), w, pl+l, fl) + _out(tls, f, prefix, Uint64FromInt32(pl)) + _pad3(tls, f, int8('0'), w, pl+l, Int32FromUint32(Uint32FromInt32(fl)^Uint32FromUint32(1)<<(Int32FromUint8('0')-Int32FromUint8(' ')))) + if t|int32(32) == int32('f') { + if a > r { + a = r + } + d = a + for { + if !(d <= r) { + break + } + s2 = _fmt_u(tls, uint64(**(**Tuint32_t)(__ccgo_up(d))), bp+516+uintptr(9)) + if d != a { + for s2 > bp+516 { + s2 = s2 - 1 + v5 = s2 + **(**int8)(__ccgo_up(v5)) = int8('0') + } + } else { + if s2 == bp+516+uintptr(9) { + s2 = s2 - 1 + v5 = s2 + **(**int8)(__ccgo_up(v5)) = int8('0') + } + } + _out(tls, f, s2, Uint64FromInt64(int64(bp+516+uintptr(9))-int64(s2))) + goto _47 + _47: + ; + d += 4 + } + if p != 0 || Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0 { + _out(tls, f, __ccgo_ts+558, uint64(1)) + } + for { + if !(d < z && p > 0) { + break + } + s3 = _fmt_u(tls, uint64(**(**Tuint32_t)(__ccgo_up(d))), bp+516+uintptr(9)) + for s3 > bp+516 { + s3 = s3 - 1 + v5 = s3 + **(**int8)(__ccgo_up(v5)) = int8('0') + } + if int32(9) < p { + v7 = int32(9) + } else { + v7 = p + } + _out(tls, f, s3, Uint64FromInt32(v7)) + goto _50 + _50: + ; + d += 4 + p = p - int32(9) + } + _pad3(tls, f, int8('0'), p+int32(9), int32(9), 0) + } else { + if z <= a { + z = a + uintptr(1)*4 + } + d = a + for { + if !(d < z && p >= 0) { + break + } + s4 = _fmt_u(tls, uint64(**(**Tuint32_t)(__ccgo_up(d))), bp+516+uintptr(9)) + if s4 == bp+516+uintptr(9) { + s4 = s4 - 1 + v5 = s4 + **(**int8)(__ccgo_up(v5)) = int8('0') + } + if d != a { + for s4 > bp+516 { + s4 = s4 - 1 + v5 = s4 + **(**int8)(__ccgo_up(v5)) = int8('0') + } + } else { + v5 = s4 + s4 = s4 + 1 + _out(tls, f, v5, uint64(1)) + if p > 0 || Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0 { + _out(tls, f, __ccgo_ts+558, uint64(1)) + } + } + if int64(bp+516+UintptrFromInt32(9))-int64(s4) < int64(p) { + v36 = int64(bp+516+UintptrFromInt32(9)) - int64(s4) + } else { + v36 = int64(p) + } + _out(tls, f, s4, Uint64FromInt64(v36)) + p = int32(int64(p) - (int64(bp+516+UintptrFromInt32(9)) - int64(s4))) + goto _53 + _53: + ; + d += 4 + } + _pad3(tls, f, int8('0'), p+int32(18), int32(18), 0) + _out(tls, f, estr, Uint64FromInt64(int64(ebuf)-int64(estr))) + } + _pad3(tls, f, int8(' '), w, pl+l, Int32FromUint32(Uint32FromInt32(fl)^Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' ')))) + if w > pl+l { + v7 = w + } else { + v7 = pl + l + } + return v7 +} + +func _getint(tls *TLS, s uintptr) (r int32) { + var i int32 + _ = i + i = 0 + for { + if !(BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(s)))))-uint32('0') < uint32(10)) != 0) { + break + } + if Uint32FromInt32(i) > Uint32FromInt32(INT_MAX)/Uint32FromUint32(10) || int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(s)))))-int32('0') > int32(INT_MAX)-int32(10)*i { + i = -int32(1) + } else { + i = int32(10)*i + (int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(s))))) - int32('0')) + } + goto _1 + _1: + ; + **(**uintptr)(__ccgo_up(s)) = **(**uintptr)(__ccgo_up(s)) + 1 + } + return i +} + +func _printf_core(tls *TLS, f uintptr, fmt uintptr, ap uintptr, nl_arg uintptr, nl_type uintptr) (r int32) { + bp := tls.Alloc(64) + defer tls.Free(64) + var a, prefix, ws, z, v8 uintptr + var argpos, cnt, l, p, pl, t, w, xp, v5, v6 int32 + var fl, l10n, ps, st uint32 + var i Tsize_t + var v31 uint64 + var v34 int64 + var v45 bool + var _ /* arg at bp+8 */ Targ + var _ /* buf at bp+16 */ [24]int8 + var _ /* mb at bp+48 */ [4]int8 + var _ /* s at bp+0 */ uintptr + var _ /* wc at bp+40 */ [2]Twchar_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = a, argpos, cnt, fl, i, l, l10n, p, pl, prefix, ps, st, t, w, ws, xp, z, v31, v34, v45, v5, v6, v8 + **(**uintptr)(__ccgo_up(bp)) = fmt + l10n = uint32(0) + cnt = 0 + l = 0 + for { + /* This error is only specified for snprintf, but since it's + * unspecified for other forms, do the same. Stop immediately + * on overflow; otherwise %n could produce wrong results. */ + if l > int32(INT_MAX)-cnt { + goto overflow + } + /* Update output count, end loop when fmt is exhausted */ + cnt = cnt + l + if !(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)))) != 0) { + break + } + /* Handle literal text and %% format specifiers */ + a = **(**uintptr)(__ccgo_up(bp)) + for { + if !(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)))) != 0 && int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp))))) != int32('%')) { + break + } + goto _2 + _2: + ; + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + } + z = **(**uintptr)(__ccgo_up(bp)) + for { + if !(int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp))))) == int32('%') && int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 1))) == int32('%')) { + break + } + goto _3 + _3: + ; + z = z + 1 + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + uintptr(2) + } + if int64(z)-int64(a) > int64(int32(INT_MAX)-cnt) { + goto overflow + } + l = int32(int64(z) - int64(a)) + if f != 0 { + _out(tls, f, a, Uint64FromInt32(l)) + } + if l != 0 { + goto _1 + } + if BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 1)))-uint32('0') < uint32(10)) != 0 && int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 2))) == int32('$') { + l10n = uint32(1) + argpos = int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 1))) - int32('0') + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + uintptr(3) + } else { + argpos = -int32(1) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + } + /* Read modifier flags */ + fl = uint32(0) + for { + if !(Uint32FromInt8(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)))))-uint32(' ') < uint32(32) && (Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8('0')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8(' ')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8('+')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8('\'')-Int32FromUint8(' ')))&(uint32(1)<<(int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)))))-int32(' '))) != 0) { + break + } + fl = fl | uint32(1)<<(int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)))))-int32(' ')) + goto _4 + _4: + ; + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + } + /* Read field width */ + if int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp))))) == int32('*') { + if BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 1)))-uint32('0') < uint32(10)) != 0 && int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 2))) == int32('$') { + l10n = uint32(1) + if !(f != 0) { + **(**int32)(__ccgo_up(nl_type + uintptr(int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 1)))-int32('0'))*4)) = int32(_INT) + w = Int32FromInt32(0) + } else { + w = Int32FromUint64(*(*Tuintmax_t)(unsafe.Pointer(nl_arg + uintptr(int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 1)))-int32('0'))*8))) + } + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + uintptr(3) + } else { + if !(l10n != 0) { + if f != 0 { + v5 = VaInt32(&**(**Tva_list)(__ccgo_up(ap))) + } else { + v5 = 0 + } + w = v5 + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + } else { + goto inval + } + } + if w < 0 { + fl = fl | Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' ')) + w = -w + } + } else { + v5 = _getint(tls, bp) + w = v5 + if v5 < 0 { + goto overflow + } + } + /* Read precision */ + if int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp))))) == int32('.') && int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 1))) == int32('*') { + if BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 2)))-uint32('0') < uint32(10)) != 0 && int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 3))) == int32('$') { + if !(f != 0) { + **(**int32)(__ccgo_up(nl_type + uintptr(int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 2)))-int32('0'))*4)) = int32(_INT) + p = Int32FromInt32(0) + } else { + p = Int32FromUint64(*(*Tuintmax_t)(unsafe.Pointer(nl_arg + uintptr(int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 2)))-int32('0'))*8))) + } + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + uintptr(4) + } else { + if !(l10n != 0) { + if f != 0 { + v5 = VaInt32(&**(**Tva_list)(__ccgo_up(ap))) + } else { + v5 = 0 + } + p = v5 + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + uintptr(2) + } else { + goto inval + } + } + xp = BoolInt32(p >= 0) + } else { + if int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp))))) == int32('.') { + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + p = _getint(tls, bp) + xp = int32(1) + } else { + p = -int32(1) + xp = 0 + } + } + /* Format specifier state machine */ + st = uint32(0) + for cond := true; cond; cond = st-uint32(1) < uint32(_STOP) { + if Uint32FromInt8(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)))))-uint32('A') > Uint32FromInt32(Int32FromUint8('z')-Int32FromUint8('A')) { + goto inval + } + ps = st + v8 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + st = uint32(**(**uint8)(__ccgo_up(uintptr(unsafe.Pointer(&_states)) + uintptr(st)*58 + uintptr(int32(**(**int8)(__ccgo_up(v8)))-int32('A'))))) + } + if !(st != 0) { + goto inval + } + /* Check validity of argument type (nl/normal) */ + if st == uint32(_NOARG) { + if argpos >= 0 { + goto inval + } + } else { + if argpos >= 0 { + if !(f != 0) { + **(**int32)(__ccgo_up(nl_type + uintptr(argpos)*4)) = Int32FromUint32(st) + } else { + **(**Targ)(__ccgo_up(bp + 8)) = **(**Targ)(__ccgo_up(nl_arg + uintptr(argpos)*8)) + } + } else { + if f != 0 { + _pop_arg(tls, bp+8, Int32FromUint32(st), ap) + } else { + return 0 + } + } + } + if !(f != 0) { + goto _1 + } + /* Do not process any new directives once in error state. */ + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_ERR) != 0 { + return -int32(1) + } + z = bp + 16 + uintptr(24) + prefix = __ccgo_ts + 1607 + pl = 0 + t = int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + uintptr(-Int32FromInt32(1))))) + /* Transform ls,lc -> S,C */ + if ps != 0 && t&int32(15) == int32(3) { + t = t & ^Int32FromInt32(32) + } + /* - and 0 flags are mutually exclusive */ + if fl&(Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' '))) != 0 { + fl = fl & ^(Uint32FromUint32(1) << (Int32FromUint8('0') - Int32FromUint8(' '))) + } + switch t { + case int32('n'): + goto _9 + case int32('p'): + goto _10 + case int32('X'): + goto _11 + case int32('x'): + goto _12 + case int32('o'): + goto _13 + case int32('i'): + goto _14 + case int32('d'): + goto _15 + case int32('u'): + goto _16 + case int32('c'): + goto _17 + case int32('s'): + goto _18 + case int32('m'): + goto _19 + case int32('C'): + goto _20 + case int32('S'): + goto _21 + case int32('A'): + goto _22 + case int32('G'): + goto _23 + case int32('F'): + goto _24 + case int32('E'): + goto _25 + case int32('a'): + goto _26 + case int32('g'): + goto _27 + case int32('f'): + goto _28 + case int32('e'): + goto _29 + } + goto _30 + _9: + ; + switch ps { + case uint32(_BARE): + **(**int32)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 8)))) = cnt + case uint32(_LPRE): + **(**int64)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 8)))) = int64(cnt) + case uint32(_LLPRE): + **(**int64)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 8)))) = int64(cnt) + case uint32(_HPRE): + **(**uint16)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 8)))) = Uint16FromInt32(cnt) + case uint32(_HHPRE): + **(**uint8)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 8)))) = Uint8FromInt32(cnt) + case uint32(_ZTPRE): + **(**Tsize_t)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 8)))) = Uint64FromInt32(cnt) + case uint32(_JPRE): + **(**Tuintmax_t)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 8)))) = Uint64FromInt32(cnt) + break + } + goto _1 + _10: + ; + if Uint64FromInt32(p) > Uint64FromInt32(2)*Uint64FromInt64(8) { + v31 = Uint64FromInt32(p) + } else { + v31 = Uint64FromInt32(2) * Uint64FromInt64(8) + } + p = Int32FromUint64(v31) + t = int32('x') + fl = fl | Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' ')) + _12: + ; + _11: + ; + a = _fmt_x(tls, *(*Tuintmax_t)(unsafe.Pointer(bp + 8)), z, t&int32(32)) + if *(*Tuintmax_t)(unsafe.Pointer(bp + 8)) != 0 && fl&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0 { + prefix = prefix + uintptr(t>>Int32FromInt32(4)) + pl = Int32FromInt32(2) + } + if !(0 != 0) { + goto _32 + } + _13: + ; + a = _fmt_o(tls, *(*Tuintmax_t)(unsafe.Pointer(bp + 8)), z) + if fl&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0 && int64(p) < int64(z)-int64(a)+int64(1) { + p = int32(int64(z) - int64(a) + int64(1)) + } + _32: + ; + if !(0 != 0) { + goto _33 + } + _15: + ; + _14: + ; + pl = int32(1) + if *(*Tuintmax_t)(unsafe.Pointer(bp + 8)) > Uint64FromInt64(Int64FromInt64(INT64_MAX)) { + *(*Tuintmax_t)(unsafe.Pointer(bp + 8)) = -*(*Tuintmax_t)(unsafe.Pointer(bp + 8)) + } else { + if fl&(Uint32FromUint32(1)<<(Int32FromUint8('+')-Int32FromUint8(' '))) != 0 { + prefix = prefix + 1 + } else { + if fl&(Uint32FromUint32(1)<<(Int32FromUint8(' ')-Int32FromUint8(' '))) != 0 { + prefix = prefix + uintptr(2) + } else { + pl = 0 + } + } + } + _16: + ; + a = _fmt_u(tls, *(*Tuintmax_t)(unsafe.Pointer(bp + 8)), z) + _33: + ; + if xp != 0 && p < 0 { + goto overflow + } + if xp != 0 { + fl = fl & ^(Uint32FromUint32(1) << (Int32FromUint8('0') - Int32FromUint8(' '))) + } + if !(*(*Tuintmax_t)(unsafe.Pointer(bp + 8)) != 0) && !(p != 0) { + a = z + goto _30 + } + if int64(p) > int64(z)-int64(a)+BoolInt64(!(*(*Tuintmax_t)(unsafe.Pointer(bp + 8)) != 0)) { + v34 = int64(p) + } else { + v34 = int64(z) - int64(a) + BoolInt64(!(*(*Tuintmax_t)(unsafe.Pointer(bp + 8)) != 0)) + } + p = int32(v34) + goto _30 + goto narrow_c + narrow_c: + ; + _17: + ; + v5 = Int32FromInt32(1) + p = v5 + v8 = z - uintptr(v5) + a = v8 + **(**int8)(__ccgo_up(v8)) = Int8FromUint64(*(*Tuintmax_t)(unsafe.Pointer(bp + 8))) + fl = fl & ^(Uint32FromUint32(1) << (Int32FromUint8('0') - Int32FromUint8(' '))) + goto _30 + _19: + ; + if !(int32(1) != 0) { + goto _37 + } + a = Xstrerror(tls, **(**int32)(__ccgo_up(X__errno_location(tls)))) + goto _38 + _37: + ; + _18: + ; + if *(*uintptr)(unsafe.Pointer(bp + 8)) != 0 { + v8 = *(*uintptr)(unsafe.Pointer(bp + 8)) + } else { + v8 = __ccgo_ts + 1617 + } + a = v8 + _38: + ; + if p < 0 { + v5 = int32(INT_MAX) + } else { + v5 = p + } + z = a + uintptr(Xstrnlen(tls, a, Uint64FromInt32(v5))) + if p < 0 && **(**int8)(__ccgo_up(z)) != 0 { + goto overflow + } + p = int32(int64(z) - int64(a)) + fl = fl & ^(Uint32FromUint32(1) << (Int32FromUint8('0') - Int32FromUint8(' '))) + goto _30 + _20: + ; + if !(*(*Tuintmax_t)(unsafe.Pointer(bp + 8)) != 0) { + goto narrow_c + } + (**(**[2]Twchar_t)(__ccgo_up(bp + 40)))[0] = Int32FromUint64(*(*Tuintmax_t)(unsafe.Pointer(bp + 8))) + (**(**[2]Twchar_t)(__ccgo_up(bp + 40)))[int32(1)] = 0 + *(*uintptr)(unsafe.Pointer(bp + 8)) = bp + 40 + p = -int32(1) + _21: + ; + ws = *(*uintptr)(unsafe.Pointer(bp + 8)) + v5 = Int32FromInt32(0) + l = v5 + i = Uint64FromInt32(v5) + for { + if v45 = i < Uint64FromInt32(p) && **(**Twchar_t)(__ccgo_up(ws)) != 0; v45 { + v8 = ws + ws += 4 + v6 = Xwctomb(tls, bp+48, **(**Twchar_t)(__ccgo_up(v8))) + l = v6 + } + if !(v45 && v6 >= 0 && Uint64FromInt32(l) <= Uint64FromInt32(p)-i) { + break + } + goto _41 + _41: + ; + i = i + Uint64FromInt32(l) + } + if l < 0 { + return -int32(1) + } + if i > uint64(INT_MAX) { + goto overflow + } + p = Int32FromUint64(i) + _pad3(tls, f, int8(' '), w, p, Int32FromUint32(fl)) + ws = *(*uintptr)(unsafe.Pointer(bp + 8)) + i = uint64(0) + for { + if v45 = i < uint64(0+Uint32FromInt32(p)) && **(**Twchar_t)(__ccgo_up(ws)) != 0; v45 { + v8 = ws + ws += 4 + v5 = Xwctomb(tls, bp+48, **(**Twchar_t)(__ccgo_up(v8))) + l = v5 + } + if !(v45 && i+Uint64FromInt32(v5) <= Uint64FromInt32(p)) { + break + } + _out(tls, f, bp+48, Uint64FromInt32(l)) + goto _46 + _46: + ; + i = i + Uint64FromInt32(l) + } + _pad3(tls, f, int8(' '), w, p, Int32FromUint32(fl^Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' ')))) + if w > p { + v5 = w + } else { + v5 = p + } + l = v5 + goto _1 + _29: + ; + _28: + ; + _27: + ; + _26: + ; + _25: + ; + _24: + ; + _23: + ; + _22: + ; + if xp != 0 && p < 0 { + goto overflow + } + l = _fmt_fp(tls, f, *(*float64)(unsafe.Pointer(bp + 8)), w, p, Int32FromUint32(fl), t) + if l < 0 { + goto overflow + } + goto _1 + _30: + ; + if int64(p) < int64(z)-int64(a) { + p = int32(int64(z) - int64(a)) + } + if p > int32(INT_MAX)-pl { + goto overflow + } + if w < pl+p { + w = pl + p + } + if w > int32(INT_MAX)-cnt { + goto overflow + } + _pad3(tls, f, int8(' '), w, pl+p, Int32FromUint32(fl)) + _out(tls, f, prefix, Uint64FromInt32(pl)) + _pad3(tls, f, int8('0'), w, pl+p, Int32FromUint32(fl^Uint32FromUint32(1)<<(Int32FromUint8('0')-Int32FromUint8(' ')))) + _pad3(tls, f, int8('0'), p, int32(int64(z)-int64(a)), 0) + _out(tls, f, a, Uint64FromInt64(int64(z)-int64(a))) + _pad3(tls, f, int8(' '), w, pl+p, Int32FromUint32(fl^Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' ')))) + l = w + goto _1 + _1: + } + if f != 0 { + return cnt + } + if !(l10n != 0) { + return 0 + } + i = uint64(1) + for { + if !(i <= uint64(NL_ARGMAX) && **(**int32)(__ccgo_up(nl_type + uintptr(i)*4)) != 0) { + break + } + _pop_arg(tls, nl_arg+uintptr(i)*8, **(**int32)(__ccgo_up(nl_type + uintptr(i)*4)), ap) + goto _51 + _51: + ; + i = i + 1 + } + for { + if !(i <= uint64(NL_ARGMAX) && !(**(**int32)(__ccgo_up(nl_type + uintptr(i)*4)) != 0)) { + break + } + goto _52 + _52: + ; + i = i + 1 + } + if i <= uint64(NL_ARGMAX) { + goto inval + } + return int32(1) + goto inval +inval: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + goto overflow +overflow: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOVERFLOW) + return -int32(1) +} + +func Xvfprintf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v ap=%v, (%v:)", tls, f, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(208) + defer tls.Free(208) + var __need_unlock, olderr, ret, v1 int32 + var saved_buf, v2, v3 uintptr + var _ /* ap2 at bp+0 */ Tva_list + var _ /* internal_buf at bp+128 */ [80]uint8 + var _ /* nl_arg at bp+48 */ [10]Targ + var _ /* nl_type at bp+8 */ [10]int32 + _, _, _, _, _, _, _ = __need_unlock, olderr, ret, saved_buf, v1, v2, v3 + **(**[10]int32)(__ccgo_up(bp + 8)) = [10]int32{} + saved_buf = uintptr(0) + /* the copy allows passing va_list* even if va_list is an array */ + **(**Tva_list)(__ccgo_up(bp)) = ap + if _printf_core(tls, uintptr(0), fmt, bp, bp+48, bp+8) < 0 { + _ = **(**Tva_list)(__ccgo_up(bp)) + return -int32(1) + } + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + olderr = Int32FromUint32((*TFILE)(unsafe.Pointer(f)).Fflags & uint32(F_ERR)) + **(**uint32)(__ccgo_up(f)) &= Uint32FromInt32(^Int32FromInt32(F_ERR)) + if !((*TFILE)(unsafe.Pointer(f)).Fbuf_size != 0) { + saved_buf = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Fbuf = bp + 128 + (*TFILE)(unsafe.Pointer(f)).Fbuf_size = uint64(80) + v3 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Fwend = v3 + v2 = v3 + (*TFILE)(unsafe.Pointer(f)).Fwbase = v2 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v2 + } + if !((*TFILE)(unsafe.Pointer(f)).Fwend != 0) && X__towrite(tls, f) != 0 { + ret = -int32(1) + } else { + ret = _printf_core(tls, f, fmt, bp, bp+48, bp+8) + } + if saved_buf != 0 { + (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tsize_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fwrite})))(tls, f, uintptr(0), uint64(0)) + if !((*TFILE)(unsafe.Pointer(f)).Fwpos != 0) { + ret = -int32(1) + } + (*TFILE)(unsafe.Pointer(f)).Fbuf = saved_buf + (*TFILE)(unsafe.Pointer(f)).Fbuf_size = uint64(0) + v3 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Fwend = v3 + v2 = v3 + (*TFILE)(unsafe.Pointer(f)).Fwbase = v2 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v2 + } + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_ERR) != 0 { + ret = -int32(1) + } + **(**uint32)(__ccgo_up(f)) |= Uint32FromInt32(olderr) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + _ = **(**Tva_list)(__ccgo_up(bp)) + return ret +} + +const SIZE_L = 2 +const SIZE_def = 0 +const SIZE_h = -1 +const SIZE_hh = -2 +const SIZE_l = 1 +const SIZE_ll = 3 + +func _store_int(tls *TLS, dest uintptr, size int32, i uint64) { + if !(dest != 0) { + return + } + switch size { + case -int32(2): + **(**int8)(__ccgo_up(dest)) = Int8FromUint64(i) + case -int32(1): + **(**int16)(__ccgo_up(dest)) = Int16FromUint64(i) + case SIZE_def: + **(**int32)(__ccgo_up(dest)) = Int32FromUint64(i) + case int32(SIZE_l): + **(**int64)(__ccgo_up(dest)) = Int64FromUint64(i) + case int32(SIZE_ll): + **(**int64)(__ccgo_up(dest)) = Int64FromUint64(i) + break + } +} + +func _arg_n(tls *TLS, ap Tva_list, n uint32) (r uintptr) { + var ap2 Tva_list + var i uint32 + var p uintptr + _, _, _ = ap2, i, p + ap2 = ap + i = n + for { + if !(i > uint32(1)) { + break + } + _ = VaUintptr(&ap2) + goto _1 + _1: + ; + i = i - 1 + } + p = VaUintptr(&ap2) + _ = ap2 + return p +} + +func Xvfscanf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v ap=%v, (%v:)", tls, f, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(288) + defer tls.Free(288) + var __need_unlock, alloc, base, c, invert, matches, size, t, width, v1, v3, v4, v6 int32 + var dest, p, s, tmp, tmp1, wcs, v10, v11, v17 uintptr + var i, k, v64 Tsize_t + var pos Toff_t + var x uint64 + var y float64 + var v59 uint32 + var _ /* scanset at bp+16 */ [257]uint8 + var _ /* st at bp+8 */ Tmbstate_t + var _ /* wc at bp+276 */ Twchar_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = __need_unlock, alloc, base, c, dest, i, invert, k, matches, p, pos, s, size, t, tmp, tmp1, wcs, width, x, y, v1, v10, v11, v17, v3, v4, v59, v6, v64 + alloc = 0 + dest = UintptrFromInt32(0) + matches = 0 + pos = 0 + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + if !((*TFILE)(unsafe.Pointer(f)).Frpos != 0) { + X__toread(tls, f) + } + if !((*TFILE)(unsafe.Pointer(f)).Frpos != 0) { + goto input_fail + } + p = fmt + for { + if !(**(**uint8)(__ccgo_up(p)) != 0) { + break + } + alloc = 0 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(p))) + v3 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _5 + _5: + if v3 != 0 { + for { + v4 = Int32FromUint8(**(**uint8)(__ccgo_up(p + 1))) + v6 = BoolInt32(v4 == int32(' ') || Uint32FromInt32(v4)-uint32('\t') < uint32(5)) + goto _8 + _8: + if !(v6 != 0) { + break + } + p = p + 1 + } + X__shlim(tls, f, int64(Int32FromInt32(0))) + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v11 = f + 8 + v10 = *(*uintptr)(unsafe.Pointer(v11)) + *(*uintptr)(unsafe.Pointer(v11)) = *(*uintptr)(unsafe.Pointer(v11)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v10))) + } else { + v1 = X__shgetc(tls, f) + } + v3 = v1 + v4 = BoolInt32(v3 == int32(' ') || Uint32FromInt32(v3)-uint32('\t') < uint32(5)) + goto _14 + _14: + if !(v4 != 0) { + break + } + } + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + pos = pos + ((*TFILE)(unsafe.Pointer(f)).Fshcnt + (int64((*TFILE)(unsafe.Pointer(f)).Frpos) - int64((*TFILE)(unsafe.Pointer(f)).Fbuf))) + goto _2 + } + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) != int32('%') || Int32FromUint8(**(**uint8)(__ccgo_up(p + 1))) == int32('%') { + X__shlim(tls, f, int64(Int32FromInt32(0))) + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('%') { + p = p + 1 + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v11 = f + 8 + v10 = *(*uintptr)(unsafe.Pointer(v11)) + *(*uintptr)(unsafe.Pointer(v11)) = *(*uintptr)(unsafe.Pointer(v11)) + 1 + v3 = Int32FromUint8(**(**uint8)(__ccgo_up(v10))) + } else { + v3 = X__shgetc(tls, f) + } + v1 = v3 + c = v1 + v4 = v1 + v6 = BoolInt32(v4 == int32(' ') || Uint32FromInt32(v4)-uint32('\t') < uint32(5)) + goto _21 + _21: + if !(v6 != 0) { + break + } + } + } else { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v11 = f + 8 + v10 = *(*uintptr)(unsafe.Pointer(v11)) + *(*uintptr)(unsafe.Pointer(v11)) = *(*uintptr)(unsafe.Pointer(v11)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v10))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + if c != Int32FromUint8(**(**uint8)(__ccgo_up(p))) { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + if c < 0 { + goto input_fail + } + goto match_fail + } + pos = pos + ((*TFILE)(unsafe.Pointer(f)).Fshcnt + (int64((*TFILE)(unsafe.Pointer(f)).Frpos) - int64((*TFILE)(unsafe.Pointer(f)).Fbuf))) + goto _2 + } + p = p + 1 + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('*') { + dest = uintptr(0) + p = p + 1 + } else { + if BoolInt32(uint32(**(**uint8)(__ccgo_up(p)))-uint32('0') < uint32(10)) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(p + 1))) == int32('$') { + dest = _arg_n(tls, ap, Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(p)))-int32('0'))) + p = p + uintptr(2) + } else { + dest = VaUintptr(&ap) + } + } + width = 0 + for { + if !(BoolInt32(uint32(**(**uint8)(__ccgo_up(p)))-uint32('0') < uint32(10)) != 0) { + break + } + width = int32(10)*width + Int32FromUint8(**(**uint8)(__ccgo_up(p))) - int32('0') + goto _25 + _25: + ; + p = p + 1 + } + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('m') { + wcs = uintptr(0) + s = uintptr(0) + alloc = BoolInt32(!!(dest != 0)) + p = p + 1 + } else { + alloc = 0 + } + size = SIZE_def + v10 = p + p = p + 1 + switch Int32FromUint8(**(**uint8)(__ccgo_up(v10))) { + case int32('h'): + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('h') { + p = p + 1 + size = -Int32FromInt32(2) + } else { + size = -int32(1) + } + case int32('l'): + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('l') { + p = p + 1 + size = Int32FromInt32(SIZE_ll) + } else { + size = int32(SIZE_l) + } + case int32('j'): + size = int32(SIZE_ll) + case int32('z'): + fallthrough + case int32('t'): + size = int32(SIZE_l) + case int32('L'): + size = int32(SIZE_L) + case int32('d'): + fallthrough + case int32('i'): + fallthrough + case int32('o'): + fallthrough + case int32('u'): + fallthrough + case int32('x'): + fallthrough + case int32('a'): + fallthrough + case int32('e'): + fallthrough + case int32('f'): + fallthrough + case int32('g'): + fallthrough + case int32('A'): + fallthrough + case int32('E'): + fallthrough + case int32('F'): + fallthrough + case int32('G'): + fallthrough + case int32('X'): + fallthrough + case int32('s'): + fallthrough + case int32('c'): + fallthrough + case int32('['): + fallthrough + case int32('S'): + fallthrough + case int32('C'): + fallthrough + case int32('p'): + fallthrough + case int32('n'): + p = p - 1 + default: + goto fmt_fail + } + t = Int32FromUint8(**(**uint8)(__ccgo_up(p))) + /* C or S */ + if t&int32(0x2f) == int32(3) { + t = t | int32(32) + size = int32(SIZE_l) + } + switch t { + case int32('c'): + if width < int32(1) { + width = int32(1) + } + fallthrough + case int32('['): + case int32('n'): + _store_int(tls, dest, size, Uint64FromInt64(pos)) + /* do not increment match count, etc! */ + goto _2 + default: + X__shlim(tls, f, int64(Int32FromInt32(0))) + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v11 = f + 8 + v10 = *(*uintptr)(unsafe.Pointer(v11)) + *(*uintptr)(unsafe.Pointer(v11)) = *(*uintptr)(unsafe.Pointer(v11)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v10))) + } else { + v1 = X__shgetc(tls, f) + } + v3 = v1 + v4 = BoolInt32(v3 == int32(' ') || Uint32FromInt32(v3)-uint32('\t') < uint32(5)) + goto _32 + _32: + if !(v4 != 0) { + break + } + } + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + pos = pos + ((*TFILE)(unsafe.Pointer(f)).Fshcnt + (int64((*TFILE)(unsafe.Pointer(f)).Frpos) - int64((*TFILE)(unsafe.Pointer(f)).Fbuf))) + } + X__shlim(tls, f, int64(width)) + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v11 = f + 8 + v10 = *(*uintptr)(unsafe.Pointer(v11)) + *(*uintptr)(unsafe.Pointer(v11)) = *(*uintptr)(unsafe.Pointer(v11)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v10))) + } else { + v1 = X__shgetc(tls, f) + } + if v1 < 0 { + goto input_fail + } + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + switch t { + case int32('['): + goto _36 + case int32('c'): + goto _37 + case int32('s'): + goto _38 + case int32('x'): + goto _39 + case int32('X'): + goto _40 + case int32('p'): + goto _41 + case int32('o'): + goto _42 + case int32('u'): + goto _43 + case int32('d'): + goto _44 + case int32('i'): + goto _45 + case int32('G'): + goto _46 + case int32('g'): + goto _47 + case int32('F'): + goto _48 + case int32('f'): + goto _49 + case int32('E'): + goto _50 + case int32('e'): + goto _51 + case int32('A'): + goto _52 + case int32('a'): + goto _53 + } + goto _54 + _38: + ; + _37: + ; + _36: + ; + if t == int32('c') || t == int32('s') { + Xmemset(tls, bp+16, -int32(1), uint64(257)) + (**(**[257]uint8)(__ccgo_up(bp + 16)))[0] = uint8(0) + if t == int32('s') { + (**(**[257]uint8)(__ccgo_up(bp + 16)))[Int32FromInt32(1)+Int32FromUint8('\t')] = uint8(0) + (**(**[257]uint8)(__ccgo_up(bp + 16)))[Int32FromInt32(1)+Int32FromUint8('\n')] = uint8(0) + (**(**[257]uint8)(__ccgo_up(bp + 16)))[Int32FromInt32(1)+Int32FromUint8('\v')] = uint8(0) + (**(**[257]uint8)(__ccgo_up(bp + 16)))[Int32FromInt32(1)+Int32FromUint8('\f')] = uint8(0) + (**(**[257]uint8)(__ccgo_up(bp + 16)))[Int32FromInt32(1)+Int32FromUint8('\r')] = uint8(0) + (**(**[257]uint8)(__ccgo_up(bp + 16)))[Int32FromInt32(1)+Int32FromUint8(' ')] = uint8(0) + } + } else { + p = p + 1 + v10 = p + if Int32FromUint8(**(**uint8)(__ccgo_up(v10))) == int32('^') { + p = p + 1 + invert = Int32FromInt32(1) + } else { + invert = 0 + } + Xmemset(tls, bp+16, invert, uint64(257)) + (**(**[257]uint8)(__ccgo_up(bp + 16)))[0] = uint8(0) + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('-') { + p = p + 1 + (**(**[257]uint8)(__ccgo_up(bp + 16)))[Int32FromInt32(1)+Int32FromUint8('-')] = Uint8FromInt32(Int32FromInt32(1) - invert) + } else { + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32(']') { + p = p + 1 + (**(**[257]uint8)(__ccgo_up(bp + 16)))[Int32FromInt32(1)+Int32FromUint8(']')] = Uint8FromInt32(Int32FromInt32(1) - invert) + } + } + for { + if !(Int32FromUint8(**(**uint8)(__ccgo_up(p))) != int32(']')) { + break + } + if !(**(**uint8)(__ccgo_up(p)) != 0) { + goto fmt_fail + } + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('-') && **(**uint8)(__ccgo_up(p + 1)) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(p + 1))) != int32(']') { + v10 = p + p = p + 1 + c = Int32FromUint8(**(**uint8)(__ccgo_up(v10 + uintptr(-Int32FromInt32(1))))) + for { + if !(c < Int32FromUint8(**(**uint8)(__ccgo_up(p)))) { + break + } + (**(**[257]uint8)(__ccgo_up(bp + 16)))[int32(1)+c] = Uint8FromInt32(int32(1) - invert) + goto _57 + _57: + ; + c = c + 1 + } + } + (**(**[257]uint8)(__ccgo_up(bp + 16)))[int32(1)+Int32FromUint8(**(**uint8)(__ccgo_up(p)))] = Uint8FromInt32(int32(1) - invert) + goto _56 + _56: + ; + p = p + 1 + } + } + wcs = uintptr(0) + s = uintptr(0) + i = uint64(0) + if t == int32('c') { + v59 = Uint32FromInt32(width) + uint32(1) + } else { + v59 = uint32(31) + } + k = uint64(v59) + if size == int32(SIZE_l) { + if alloc != 0 { + wcs = Xmalloc(tls, k*uint64(4)) + if !(wcs != 0) { + goto alloc_fail + } + } else { + wcs = dest + } + **(**Tmbstate_t)(__ccgo_up(bp + 8)) = Tmbstate_t{} + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v11 = f + 8 + v10 = *(*uintptr)(unsafe.Pointer(v11)) + *(*uintptr)(unsafe.Pointer(v11)) = *(*uintptr)(unsafe.Pointer(v11)) + 1 + v3 = Int32FromUint8(**(**uint8)(__ccgo_up(v10))) + } else { + v3 = X__shgetc(tls, f) + } + v1 = v3 + c = v1 + if !((**(**[257]uint8)(__ccgo_up(bp + 16)))[v1+int32(1)] != 0) { + break + } + *(*int8)(unsafe.Pointer(bp)) = int8(c) + switch Xmbrtowc(tls, bp+276, bp, uint64(1), bp+8) { + case Uint64FromInt32(-Int32FromInt32(1)): + goto input_fail + case Uint64FromInt32(-Int32FromInt32(2)): + continue + } + if wcs != 0 { + v64 = i + i = i + 1 + **(**Twchar_t)(__ccgo_up(wcs + uintptr(v64)*4)) = **(**Twchar_t)(__ccgo_up(bp + 276)) + } + if alloc != 0 && i == k { + k = k + (k + uint64(1)) + tmp = Xrealloc(tls, wcs, k*uint64(4)) + if !(tmp != 0) { + goto alloc_fail + } + wcs = tmp + } + } + if !(Xmbsinit(tls, bp+8) != 0) { + goto input_fail + } + } else { + if alloc != 0 { + s = Xmalloc(tls, k) + if !(s != 0) { + goto alloc_fail + } + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v11 = f + 8 + v10 = *(*uintptr)(unsafe.Pointer(v11)) + *(*uintptr)(unsafe.Pointer(v11)) = *(*uintptr)(unsafe.Pointer(v11)) + 1 + v3 = Int32FromUint8(**(**uint8)(__ccgo_up(v10))) + } else { + v3 = X__shgetc(tls, f) + } + v1 = v3 + c = v1 + if !((**(**[257]uint8)(__ccgo_up(bp + 16)))[v1+int32(1)] != 0) { + break + } + v64 = i + i = i + 1 + **(**int8)(__ccgo_up(s + uintptr(v64))) = int8(c) + if i == k { + k = k + (k + uint64(1)) + tmp1 = Xrealloc(tls, s, k) + if !(tmp1 != 0) { + goto alloc_fail + } + s = tmp1 + } + } + } else { + v10 = dest + s = v10 + if v10 != 0 { + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v17 = f + 8 + v11 = *(*uintptr)(unsafe.Pointer(v17)) + *(*uintptr)(unsafe.Pointer(v17)) = *(*uintptr)(unsafe.Pointer(v17)) + 1 + v3 = Int32FromUint8(**(**uint8)(__ccgo_up(v11))) + } else { + v3 = X__shgetc(tls, f) + } + v1 = v3 + c = v1 + if !((**(**[257]uint8)(__ccgo_up(bp + 16)))[v1+int32(1)] != 0) { + break + } + v64 = i + i = i + 1 + **(**int8)(__ccgo_up(s + uintptr(v64))) = int8(c) + } + } else { + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v11 = f + 8 + v10 = *(*uintptr)(unsafe.Pointer(v11)) + *(*uintptr)(unsafe.Pointer(v11)) = *(*uintptr)(unsafe.Pointer(v11)) + 1 + v3 = Int32FromUint8(**(**uint8)(__ccgo_up(v10))) + } else { + v3 = X__shgetc(tls, f) + } + v1 = v3 + c = v1 + if !((**(**[257]uint8)(__ccgo_up(bp + 16)))[v1+int32(1)] != 0) { + break + } + } + } + } + } + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + if !((*TFILE)(unsafe.Pointer(f)).Fshcnt+(int64((*TFILE)(unsafe.Pointer(f)).Frpos)-int64((*TFILE)(unsafe.Pointer(f)).Fbuf)) != 0) { + goto match_fail + } + if t == int32('c') && (*TFILE)(unsafe.Pointer(f)).Fshcnt+(int64((*TFILE)(unsafe.Pointer(f)).Frpos)-int64((*TFILE)(unsafe.Pointer(f)).Fbuf)) != int64(width) { + goto match_fail + } + if alloc != 0 { + if size == int32(SIZE_l) { + **(**uintptr)(__ccgo_up(dest)) = wcs + } else { + **(**uintptr)(__ccgo_up(dest)) = s + } + } + if t != int32('c') { + if wcs != 0 { + **(**Twchar_t)(__ccgo_up(wcs + uintptr(i)*4)) = 0 + } + if s != 0 { + **(**int8)(__ccgo_up(s + uintptr(i))) = 0 + } + } + goto _54 + _41: + ; + _40: + ; + _39: + ; + base = int32(16) + goto int_common + _42: + ; + base = int32(8) + goto int_common + _44: + ; + _43: + ; + base = int32(10) + goto int_common + _45: + ; + base = 0 + goto int_common + int_common: + ; + x = X__intscan(tls, f, Uint32FromInt32(base), 0, Uint64FromUint64(2)*Uint64FromInt64(0x7fffffffffffffff)+Uint64FromInt32(1)) + if !((*TFILE)(unsafe.Pointer(f)).Fshcnt+(int64((*TFILE)(unsafe.Pointer(f)).Frpos)-int64((*TFILE)(unsafe.Pointer(f)).Fbuf)) != 0) { + goto match_fail + } + if t == int32('p') && dest != 0 { + **(**uintptr)(__ccgo_up(dest)) = uintptr(x) + } else { + _store_int(tls, dest, size, x) + } + goto _54 + _53: + ; + _52: + ; + _51: + ; + _50: + ; + _49: + ; + _48: + ; + _47: + ; + _46: + ; + y = X__floatscan(tls, f, size, 0) + if !((*TFILE)(unsafe.Pointer(f)).Fshcnt+(int64((*TFILE)(unsafe.Pointer(f)).Frpos)-int64((*TFILE)(unsafe.Pointer(f)).Fbuf)) != 0) { + goto match_fail + } + if dest != 0 { + switch size { + case SIZE_def: + **(**float32)(__ccgo_up(dest)) = float32(y) + case int32(SIZE_l): + **(**float64)(__ccgo_up(dest)) = y + case int32(SIZE_L): + **(**float64)(__ccgo_up(dest)) = y + break + } + } + goto _54 + _54: + ; + pos = pos + ((*TFILE)(unsafe.Pointer(f)).Fshcnt + (int64((*TFILE)(unsafe.Pointer(f)).Frpos) - int64((*TFILE)(unsafe.Pointer(f)).Fbuf))) + if dest != 0 { + matches = matches + 1 + } + goto _2 + _2: + ; + p = p + 1 + } + if !(0 != 0) { + goto _80 + } + goto fmt_fail +fmt_fail: + ; + goto alloc_fail +alloc_fail: + ; + goto input_fail +input_fail: + ; + if !(matches != 0) { + matches = matches - 1 + } + goto match_fail +match_fail: + ; + if alloc != 0 { + Xfree(tls, s) + Xfree(tls, wcs) + } +_80: + ; + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return matches +} + +func X__isoc99_vfscanf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v ap=%v, (%v:)", tls, f, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvfscanf(tls, f, fmt, ap) +} + +var _states1 = [8][58]uint8{ + 0: { + 0: uint8(_DBL), + 2: uint8(_UINT), + 4: uint8(_DBL), + 5: uint8(_DBL), + 6: uint8(_DBL), + 11: uint8(_BIGLPRE), + 18: uint8(_PTR), + 23: uint8(_UINT), + 32: uint8(_DBL), + 34: uint8(_INT), + 35: uint8(_INT), + 36: uint8(_DBL), + 37: uint8(_DBL), + 38: uint8(_DBL), + 39: uint8(_HPRE), + 40: uint8(_INT), + 41: uint8(_JPRE), + 43: uint8(_LPRE), + 44: uint8(_NOARG), + 45: uint8(_PTR), + 46: uint8(_UINT), + 47: uint8(_UIPTR), + 50: uint8(_PTR), + 51: uint8(_ZTPRE), + 52: uint8(_UINT), + 55: uint8(_UINT), + 57: uint8(_ZTPRE), + }, + 1: { + 0: uint8(_DBL), + 4: uint8(_DBL), + 5: uint8(_DBL), + 6: uint8(_DBL), + 23: uint8(_ULONG), + 32: uint8(_DBL), + 34: uint8(_UINT), + 35: uint8(_LONG), + 36: uint8(_DBL), + 37: uint8(_DBL), + 38: uint8(_DBL), + 40: uint8(_LONG), + 43: uint8(_LLPRE), + 45: uint8(_PTR), + 46: uint8(_ULONG), + 50: uint8(_PTR), + 52: uint8(_ULONG), + 55: uint8(_ULONG), + }, + 2: { + 23: uint8(_ULLONG), + 35: uint8(_LLONG), + 40: uint8(_LLONG), + 45: uint8(_PTR), + 46: uint8(_ULLONG), + 52: uint8(_ULLONG), + 55: uint8(_ULLONG), + }, + 3: { + 23: uint8(_USHORT), + 35: uint8(_SHORT), + 39: uint8(_HHPRE), + 40: uint8(_SHORT), + 45: uint8(_PTR), + 46: uint8(_USHORT), + 52: uint8(_USHORT), + 55: uint8(_USHORT), + }, + 4: { + 23: uint8(_UCHAR), + 35: uint8(_CHAR), + 40: uint8(_CHAR), + 45: uint8(_PTR), + 46: uint8(_UCHAR), + 52: uint8(_UCHAR), + 55: uint8(_UCHAR), + }, + 5: { + 0: uint8(_LDBL), + 4: uint8(_LDBL), + 5: uint8(_LDBL), + 6: uint8(_LDBL), + 32: uint8(_LDBL), + 36: uint8(_LDBL), + 37: uint8(_LDBL), + 38: uint8(_LDBL), + 45: uint8(_PTR), + }, + 6: { + 23: uint8(_SIZET), + 35: uint8(_PDIFF), + 40: uint8(_PDIFF), + 45: uint8(_PTR), + 46: uint8(_SIZET), + 52: uint8(_SIZET), + 55: uint8(_SIZET), + }, + 7: { + 23: uint8(_UMAX), + 35: uint8(_IMAX), + 40: uint8(_IMAX), + 45: uint8(_PTR), + 46: uint8(_UMAX), + 52: uint8(_UMAX), + 55: uint8(_UMAX), + }, +} + +func _pop_arg1(tls *TLS, arg uintptr, type1 int32, ap uintptr) { + switch type1 { + case int32(_PTR): + *(*uintptr)(unsafe.Pointer(arg)) = VaUintptr(&**(**Tva_list)(__ccgo_up(ap))) + case int32(_INT): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt32(VaInt32(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_UINT): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(VaUint32(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_LONG): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt64(VaInt64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_ULONG): + (*Targ)(unsafe.Pointer(arg)).Fi = VaUint64(&**(**Tva_list)(__ccgo_up(ap))) + case int32(_ULLONG): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(VaUint64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_SHORT): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt16(int16(VaInt32(&**(**Tva_list)(__ccgo_up(ap))))) + case int32(_USHORT): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(Uint16FromInt32(VaInt32(&**(**Tva_list)(__ccgo_up(ap))))) + case int32(_CHAR): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt8(int8(VaInt32(&**(**Tva_list)(__ccgo_up(ap))))) + case int32(_UCHAR): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(Uint8FromInt32(VaInt32(&**(**Tva_list)(__ccgo_up(ap))))) + case int32(_LLONG): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt64(VaInt64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_SIZET): + (*Targ)(unsafe.Pointer(arg)).Fi = VaUint64(&**(**Tva_list)(__ccgo_up(ap))) + case int32(_IMAX): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt64(VaInt64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_UMAX): + (*Targ)(unsafe.Pointer(arg)).Fi = VaUint64(&**(**Tva_list)(__ccgo_up(ap))) + case int32(_PDIFF): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt64(VaInt64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_UIPTR): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(VaUintptr(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_DBL): + *(*float64)(unsafe.Pointer(arg)) = float64(VaFloat64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_LDBL): + *(*float64)(unsafe.Pointer(arg)) = VaFloat64(&**(**Tva_list)(__ccgo_up(ap))) + } +} + +func _out1(tls *TLS, f uintptr, s uintptr, l Tsize_t) { + var v1 Tsize_t + var v2 uintptr + _, _ = v1, v2 + for { + v1 = l + l = l - 1 + if !(v1 != 0 && !((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_ERR) != 0)) { + break + } + v2 = s + s += 4 + Xfputwc(tls, **(**Twchar_t)(__ccgo_up(v2)), f) + } +} + +func _pad4(tls *TLS, f uintptr, n int32, fl int32) { + bp := tls.Alloc(32) + defer tls.Free(32) + if Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' '))) != 0 || !(n != 0) || (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_ERR) != 0 { + return + } + Xfprintf(tls, f, __ccgo_ts+1624, VaList(bp+8, n, __ccgo_ts)) +} + +func _getint1(tls *TLS, s uintptr) (r int32) { + var i int32 + _ = i + i = 0 + for { + if !(BoolInt32(Uint32FromInt32(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(s)))))-uint32('0') < uint32(10)) != 0) { + break + } + if Uint32FromInt32(i) > Uint32FromInt32(INT_MAX)/Uint32FromUint32(10) || **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(s))))-int32('0') > int32(INT_MAX)-int32(10)*i { + i = -int32(1) + } else { + i = int32(10)*i + (**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(s)))) - int32('0')) + } + goto _1 + _1: + ; + **(**uintptr)(__ccgo_up(s)) += 4 + } + return i +} + +var _sizeprefix = [24]int8{ + 0: int8('L'), + 3: int8('j'), + 4: int8('L'), + 5: int8('L'), + 6: int8('L'), + 8: int8('j'), + 14: int8('j'), + 15: int8('j'), + 20: int8('j'), + 23: int8('j'), +} + +func _wprintf_core(tls *TLS, f uintptr, fmt uintptr, ap uintptr, nl_arg uintptr, nl_type uintptr) (r int32) { + bp := tls.Alloc(112) + defer tls.Free(112) + var a, bs, z, v8 uintptr + var argpos, cnt, i, l, p, t, w, xp, v5, v6, v7 int32 + var fl, l10n, ps, st uint32 + var v15 bool + var v9 uint64 + var _ /* arg at bp+16 */ Targ + var _ /* charfmt at bp+24 */ [16]int8 + var _ /* s at bp+8 */ uintptr + var _ /* wc at bp+40 */ Twchar_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = a, argpos, bs, cnt, fl, i, l, l10n, p, ps, st, t, w, xp, z, v15, v5, v6, v7, v8, v9 + **(**uintptr)(__ccgo_up(bp + 8)) = fmt + l10n = uint32(0) + cnt = 0 + l = 0 + for { + /* This error is only specified for snprintf, but since it's + * unspecified for other forms, do the same. Stop immediately + * on overflow; otherwise %n could produce wrong results. */ + if l > int32(INT_MAX)-cnt { + goto overflow + } + /* Update output count, end loop when fmt is exhausted */ + cnt = cnt + l + if !(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)))) != 0) { + break + } + /* Handle literal text and %% format specifiers */ + a = **(**uintptr)(__ccgo_up(bp + 8)) + for { + if !(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)))) != 0 && **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)))) != int32('%')) { + break + } + goto _2 + _2: + ; + **(**uintptr)(__ccgo_up(bp + 8)) += 4 + } + z = **(**uintptr)(__ccgo_up(bp + 8)) + for { + if !(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)))) == int32('%') && **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + 1*4)) == int32('%')) { + break + } + goto _3 + _3: + ; + z += 4 + **(**uintptr)(__ccgo_up(bp + 8)) = **(**uintptr)(__ccgo_up(bp + 8)) + uintptr(2)*4 + } + if (int64(z)-int64(a))/4 > int64(int32(INT_MAX)-cnt) { + goto overflow + } + l = int32((int64(z) - int64(a)) / 4) + if f != 0 { + _out1(tls, f, a, Uint64FromInt32(l)) + } + if l != 0 { + goto _1 + } + if BoolInt32(Uint32FromInt32(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + 1*4)))-uint32('0') < uint32(10)) != 0 && **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + 2*4)) == int32('$') { + l10n = uint32(1) + argpos = **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + 1*4)) - int32('0') + **(**uintptr)(__ccgo_up(bp + 8)) = **(**uintptr)(__ccgo_up(bp + 8)) + uintptr(3)*4 + } else { + argpos = -int32(1) + **(**uintptr)(__ccgo_up(bp + 8)) += 4 + } + /* Read modifier flags */ + fl = uint32(0) + for { + if !(Uint32FromInt32(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)))))-uint32(' ') < uint32(32) && (Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8('0')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8(' ')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8('+')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8('\'')-Int32FromUint8(' ')))&(uint32(1)<<(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8))))-int32(' '))) != 0) { + break + } + fl = fl | uint32(1)<<(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8))))-int32(' ')) + goto _4 + _4: + ; + **(**uintptr)(__ccgo_up(bp + 8)) += 4 + } + /* Read field width */ + if **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)))) == int32('*') { + if BoolInt32(Uint32FromInt32(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + 1*4)))-uint32('0') < uint32(10)) != 0 && **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + 2*4)) == int32('$') { + l10n = uint32(1) + **(**int32)(__ccgo_up(nl_type + uintptr(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + 1*4))-int32('0'))*4)) = int32(_INT) + w = Int32FromUint64(*(*Tuintmax_t)(unsafe.Pointer(nl_arg + uintptr(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + 1*4))-int32('0'))*8))) + **(**uintptr)(__ccgo_up(bp + 8)) = **(**uintptr)(__ccgo_up(bp + 8)) + uintptr(3)*4 + } else { + if !(l10n != 0) { + if f != 0 { + v5 = VaInt32(&**(**Tva_list)(__ccgo_up(ap))) + } else { + v5 = 0 + } + w = v5 + **(**uintptr)(__ccgo_up(bp + 8)) += 4 + } else { + goto inval + } + } + if w < 0 { + fl = fl | Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' ')) + w = -w + } + } else { + v5 = _getint1(tls, bp+8) + w = v5 + if v5 < 0 { + goto overflow + } + } + /* Read precision */ + if **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)))) == int32('.') && **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + 1*4)) == int32('*') { + if BoolInt32(Uint32FromInt32(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + 2*4)))-uint32('0') < uint32(10)) != 0 && **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + 3*4)) == int32('$') { + **(**int32)(__ccgo_up(nl_type + uintptr(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + 2*4))-int32('0'))*4)) = int32(_INT) + p = Int32FromUint64(*(*Tuintmax_t)(unsafe.Pointer(nl_arg + uintptr(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + 2*4))-int32('0'))*8))) + **(**uintptr)(__ccgo_up(bp + 8)) = **(**uintptr)(__ccgo_up(bp + 8)) + uintptr(4)*4 + } else { + if !(l10n != 0) { + if f != 0 { + v5 = VaInt32(&**(**Tva_list)(__ccgo_up(ap))) + } else { + v5 = 0 + } + p = v5 + **(**uintptr)(__ccgo_up(bp + 8)) = **(**uintptr)(__ccgo_up(bp + 8)) + uintptr(2)*4 + } else { + goto inval + } + } + xp = BoolInt32(p >= 0) + } else { + if **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)))) == int32('.') { + **(**uintptr)(__ccgo_up(bp + 8)) += 4 + p = _getint1(tls, bp+8) + xp = int32(1) + } else { + p = -int32(1) + xp = 0 + } + } + /* Format specifier state machine */ + st = uint32(0) + for cond := true; cond; cond = st-uint32(1) < uint32(_STOP) { + if Uint32FromInt32(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)))))-uint32('A') > Uint32FromInt32(Int32FromUint8('z')-Int32FromUint8('A')) { + goto inval + } + ps = st + v8 = **(**uintptr)(__ccgo_up(bp + 8)) + **(**uintptr)(__ccgo_up(bp + 8)) += 4 + st = uint32(**(**uint8)(__ccgo_up(uintptr(unsafe.Pointer(&_states1)) + uintptr(st)*58 + uintptr(**(**Twchar_t)(__ccgo_up(v8))-int32('A'))))) + } + if !(st != 0) { + goto inval + } + /* Check validity of argument type (nl/normal) */ + if st == uint32(_NOARG) { + if argpos >= 0 { + goto inval + } + } else { + if argpos >= 0 { + **(**int32)(__ccgo_up(nl_type + uintptr(argpos)*4)) = Int32FromUint32(st) + **(**Targ)(__ccgo_up(bp + 16)) = **(**Targ)(__ccgo_up(nl_arg + uintptr(argpos)*8)) + } else { + if f != 0 { + _pop_arg1(tls, bp+16, Int32FromUint32(st), ap) + } else { + return 0 + } + } + } + if !(f != 0) { + goto _1 + } + /* Do not process any new directives once in error state. */ + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_ERR) != 0 { + return -int32(1) + } + t = **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + uintptr(-Int32FromInt32(1))*4)) + if ps != 0 && t&int32(15) == int32(3) { + t = t & ^Int32FromInt32(32) + } + switch t { + case int32('n'): + switch ps { + case uint32(_BARE): + **(**int32)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 16)))) = cnt + case uint32(_LPRE): + **(**int64)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 16)))) = int64(cnt) + case uint32(_LLPRE): + **(**int64)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 16)))) = int64(cnt) + case uint32(_HPRE): + **(**uint16)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 16)))) = Uint16FromInt32(cnt) + case uint32(_HHPRE): + **(**uint8)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 16)))) = Uint8FromInt32(cnt) + case uint32(_ZTPRE): + **(**Tsize_t)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 16)))) = Uint64FromInt32(cnt) + case uint32(_JPRE): + **(**Tuintmax_t)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 16)))) = Uint64FromInt32(cnt) + break + } + goto _1 + case int32('c'): + fallthrough + case int32('C'): + if w < int32(1) { + w = int32(1) + } + _pad4(tls, f, w-int32(1), Int32FromUint32(fl)) + if t == int32('C') { + v9 = *(*Tuintmax_t)(unsafe.Pointer(bp + 16)) + } else { + v9 = uint64(Xbtowc(tls, Int32FromUint64(*(*Tuintmax_t)(unsafe.Pointer(bp + 16))))) + } + *(*Twchar_t)(unsafe.Pointer(bp)) = Int32FromUint64(v9) + _out1(tls, f, bp, uint64(1)) + _pad4(tls, f, w-int32(1), Int32FromUint32(fl^Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' ')))) + l = w + goto _1 + case int32('S'): + a = *(*uintptr)(unsafe.Pointer(bp + 16)) + if p < 0 { + v5 = int32(INT_MAX) + } else { + v5 = p + } + z = a + uintptr(Xwcsnlen(tls, a, Uint64FromInt32(v5)))*4 + if p < 0 && **(**Twchar_t)(__ccgo_up(z)) != 0 { + goto overflow + } + p = int32((int64(z) - int64(a)) / 4) + if w < p { + w = p + } + _pad4(tls, f, w-p, Int32FromUint32(fl)) + _out1(tls, f, a, Uint64FromInt32(p)) + _pad4(tls, f, w-p, Int32FromUint32(fl^Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' ')))) + l = w + goto _1 + case int32('m'): + *(*uintptr)(unsafe.Pointer(bp + 16)) = Xstrerror(tls, **(**int32)(__ccgo_up(X__errno_location(tls)))) + fallthrough + case int32('s'): + if !(*(*uintptr)(unsafe.Pointer(bp + 16)) != 0) { + *(*uintptr)(unsafe.Pointer(bp + 16)) = __ccgo_ts + 1617 + } + bs = *(*uintptr)(unsafe.Pointer(bp + 16)) + v5 = Int32FromInt32(0) + l = v5 + i = v5 + for { + if p < 0 { + v6 = int32(INT_MAX) + } else { + v6 = p + } + if v15 = l < v6; v15 { + v7 = Xmbtowc(tls, bp+40, bs, uint64(MB_LEN_MAX)) + i = v7 + } + if !(v15 && v7 > 0) { + break + } + goto _11 + _11: + ; + bs = bs + uintptr(i) + l = l + 1 + } + if i < 0 { + return -int32(1) + } + if p < 0 && **(**int8)(__ccgo_up(bs)) != 0 { + goto overflow + } + p = l + if w < p { + w = p + } + _pad4(tls, f, w-p, Int32FromUint32(fl)) + bs = *(*uintptr)(unsafe.Pointer(bp + 16)) + for { + v5 = l + l = l - 1 + if !(v5 != 0) { + break + } + i = Xmbtowc(tls, bp+40, bs, uint64(MB_LEN_MAX)) + bs = bs + uintptr(i) + _out1(tls, f, bp+40, uint64(1)) + } + _pad4(tls, f, w-p, Int32FromUint32(fl^Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' ')))) + l = w + goto _1 + } + if xp != 0 && p < 0 { + goto overflow + } + Xsnprintf(tls, bp+24, uint64(16), __ccgo_ts+1628, VaList(bp+56, __ccgo_ts+1648+BoolUintptr(!(fl&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0)), __ccgo_ts+1650+BoolUintptr(!(fl&(Uint32FromUint32(1)<<(Int32FromUint8('+')-Int32FromUint8(' '))) != 0)), __ccgo_ts+1652+BoolUintptr(!(fl&(Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' '))) != 0)), __ccgo_ts+662+BoolUintptr(!(fl&(Uint32FromUint32(1)<<(Int32FromUint8(' ')-Int32FromUint8(' '))) != 0)), __ccgo_ts+1654+BoolUintptr(!(fl&(Uint32FromUint32(1)<<(Int32FromUint8('0')-Int32FromUint8(' '))) != 0)), int32(_sizeprefix[t|int32(32)-int32('a')]), t)) + switch t | Int32FromInt32(32) { + case int32('a'): + fallthrough + case int32('e'): + fallthrough + case int32('f'): + fallthrough + case int32('g'): + l = Xfprintf(tls, f, bp+24, VaList(bp+56, w, p, *(*float64)(unsafe.Pointer(bp + 16)))) + case int32('d'): + fallthrough + case int32('i'): + fallthrough + case int32('o'): + fallthrough + case int32('u'): + fallthrough + case int32('x'): + fallthrough + case int32('p'): + l = Xfprintf(tls, f, bp+24, VaList(bp+56, w, p, *(*Tuintmax_t)(unsafe.Pointer(bp + 16)))) + break + } + goto _1 + _1: + } + if f != 0 { + return cnt + } + if !(l10n != 0) { + return 0 + } + i = int32(1) + for { + if !(i <= int32(NL_ARGMAX) && **(**int32)(__ccgo_up(nl_type + uintptr(i)*4)) != 0) { + break + } + _pop_arg1(tls, nl_arg+uintptr(i)*8, **(**int32)(__ccgo_up(nl_type + uintptr(i)*4)), ap) + goto _17 + _17: + ; + i = i + 1 + } + for { + if !(i <= int32(NL_ARGMAX) && !(**(**int32)(__ccgo_up(nl_type + uintptr(i)*4)) != 0)) { + break + } + goto _18 + _18: + ; + i = i + 1 + } + if i <= int32(NL_ARGMAX) { + return -int32(1) + } + return int32(1) + goto inval +inval: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + goto overflow +overflow: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOVERFLOW) + return -int32(1) +} + +func Xvfwprintf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v ap=%v, (%v:)", tls, f, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(128) + defer tls.Free(128) + var __need_unlock, olderr, ret, v1 int32 + var _ /* ap2 at bp+0 */ Tva_list + var _ /* nl_arg at bp+48 */ [10]Targ + var _ /* nl_type at bp+8 */ [10]int32 + _, _, _, _ = __need_unlock, olderr, ret, v1 + **(**[10]int32)(__ccgo_up(bp + 8)) = [10]int32{} + /* the copy allows passing va_list* even if va_list is an array */ + **(**Tva_list)(__ccgo_up(bp)) = ap + if _wprintf_core(tls, uintptr(0), fmt, bp, bp+48, bp+8) < 0 { + _ = **(**Tva_list)(__ccgo_up(bp)) + return -int32(1) + } + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + Xfwide(tls, f, int32(1)) + olderr = Int32FromUint32((*TFILE)(unsafe.Pointer(f)).Fflags & uint32(F_ERR)) + **(**uint32)(__ccgo_up(f)) &= Uint32FromInt32(^Int32FromInt32(F_ERR)) + ret = _wprintf_core(tls, f, fmt, bp, bp+48, bp+8) + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_ERR) != 0 { + ret = -int32(1) + } + **(**uint32)(__ccgo_up(f)) |= Uint32FromInt32(olderr) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + _ = **(**Tva_list)(__ccgo_up(bp)) + return ret +} + +func _store_int1(tls *TLS, dest uintptr, size int32, i uint64) { + if !(dest != 0) { + return + } + switch size { + case -int32(2): + **(**int8)(__ccgo_up(dest)) = Int8FromUint64(i) + case -int32(1): + **(**int16)(__ccgo_up(dest)) = Int16FromUint64(i) + case SIZE_def: + **(**int32)(__ccgo_up(dest)) = Int32FromUint64(i) + case int32(SIZE_l): + **(**int64)(__ccgo_up(dest)) = Int64FromUint64(i) + case int32(SIZE_ll): + **(**int64)(__ccgo_up(dest)) = Int64FromUint64(i) + break + } +} + +func _arg_n1(tls *TLS, ap Tva_list, n uint32) (r uintptr) { + var ap2 Tva_list + var i uint32 + var p uintptr + _, _, _ = ap2, i, p + ap2 = ap + i = n + for { + if !(i > uint32(1)) { + break + } + _ = VaUintptr(&ap2) + goto _1 + _1: + ; + i = i - 1 + } + p = VaUintptr(&ap2) + _ = ap2 + return p +} + +func _in_set(tls *TLS, set uintptr, c int32) (r int32) { + var j int32 + var p, v3 uintptr + _, _, _ = j, p, v3 + p = set + if **(**Twchar_t)(__ccgo_up(p)) == int32('-') { + if c == int32('-') { + return int32(1) + } + p += 4 + } else { + if **(**Twchar_t)(__ccgo_up(p)) == int32(']') { + if c == int32(']') { + return int32(1) + } + p += 4 + } + } + for { + if !(**(**Twchar_t)(__ccgo_up(p)) != 0 && **(**Twchar_t)(__ccgo_up(p)) != int32(']')) { + break + } + if **(**Twchar_t)(__ccgo_up(p)) == int32('-') && **(**Twchar_t)(__ccgo_up(p + 1*4)) != 0 && **(**Twchar_t)(__ccgo_up(p + 1*4)) != int32(']') { + v3 = p + p += 4 + j = **(**Twchar_t)(__ccgo_up(v3 + uintptr(-Int32FromInt32(1))*4)) + for { + if !(j < **(**Twchar_t)(__ccgo_up(p))) { + break + } + if c == j { + return int32(1) + } + goto _2 + _2: + ; + j = j + 1 + } + } + if c == **(**Twchar_t)(__ccgo_up(p)) { + return int32(1) + } + goto _1 + _1: + ; + p += 4 + } + return 0 +} + +func Xvfwscanf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v ap=%v, (%v:)", tls, f, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(80) + defer tls.Free(80) + var __need_unlock, alloc, c, gotmatch, invert, l, matches, size, t, width, v1 int32 + var dest, p, s, set, tmp1, tmp2, wcs, v5, v6 uintptr + var i, k, v37 Tsize_t + var pos Toff_t + var v4 uint32 + var _ /* cnt at bp+0 */ Toff_t + var _ /* tmp at bp+8 */ [22]int8 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = __need_unlock, alloc, c, dest, gotmatch, i, invert, k, l, matches, p, pos, s, set, size, t, tmp1, tmp2, wcs, width, v1, v37, v4, v5, v6 + dest = UintptrFromInt32(0) + matches = 0 + pos = 0 + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + Xfwide(tls, f, int32(1)) + p = fmt + for { + if !(**(**Twchar_t)(__ccgo_up(p)) != 0) { + break + } + alloc = 0 + if Xiswspace(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(p)))) != 0 { + for Xiswspace(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(p + 1*4)))) != 0 { + p += 4 + } + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend && Int32FromUint8(**(**uint8)(__ccgo_up((*TFILE)(unsafe.Pointer(f)).Frpos))) < int32(128) { + v6 = f + 8 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + v4 = uint32(**(**uint8)(__ccgo_up(v5))) + } else { + v4 = Xgetwc(tls, f) + } + v1 = Int32FromUint32(v4) + c = v1 + if !(Xiswspace(tls, Uint32FromInt32(v1)) != 0) { + break + } + pos = pos + 1 + } + if (*TFILE)(unsafe.Pointer(f)).Frend != 0 && Uint32FromInt32(c) < uint32(128) { + v6 = f + 8 + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) - 1 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + _ = **(**uint8)(__ccgo_up(v5)) + } else { + Xungetwc(tls, Uint32FromInt32(c), f) + } + goto _2 + } + if **(**Twchar_t)(__ccgo_up(p)) != int32('%') || **(**Twchar_t)(__ccgo_up(p + 1*4)) == int32('%') { + if **(**Twchar_t)(__ccgo_up(p)) == int32('%') { + p += 4 + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend && Int32FromUint8(**(**uint8)(__ccgo_up((*TFILE)(unsafe.Pointer(f)).Frpos))) < int32(128) { + v6 = f + 8 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + v4 = uint32(**(**uint8)(__ccgo_up(v5))) + } else { + v4 = Xgetwc(tls, f) + } + v1 = Int32FromUint32(v4) + c = v1 + if !(Xiswspace(tls, Uint32FromInt32(v1)) != 0) { + break + } + pos = pos + 1 + } + } else { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend && Int32FromUint8(**(**uint8)(__ccgo_up((*TFILE)(unsafe.Pointer(f)).Frpos))) < int32(128) { + v6 = f + 8 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + v4 = uint32(**(**uint8)(__ccgo_up(v5))) + } else { + v4 = Xgetwc(tls, f) + } + c = Int32FromUint32(v4) + } + if c != **(**Twchar_t)(__ccgo_up(p)) { + if (*TFILE)(unsafe.Pointer(f)).Frend != 0 && Uint32FromInt32(c) < uint32(128) { + v6 = f + 8 + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) - 1 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + _ = **(**uint8)(__ccgo_up(v5)) + } else { + Xungetwc(tls, Uint32FromInt32(c), f) + } + if c < 0 { + goto input_fail + } + goto match_fail + } + pos = pos + 1 + goto _2 + } + p += 4 + if **(**Twchar_t)(__ccgo_up(p)) == int32('*') { + dest = uintptr(0) + p += 4 + } else { + if BoolInt32(Uint32FromInt32(**(**Twchar_t)(__ccgo_up(p)))-uint32('0') < uint32(10)) != 0 && **(**Twchar_t)(__ccgo_up(p + 1*4)) == int32('$') { + dest = _arg_n1(tls, ap, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(p))-int32('0'))) + p = p + uintptr(2)*4 + } else { + dest = VaUintptr(&ap) + } + } + width = 0 + for { + if !(BoolInt32(Uint32FromInt32(**(**Twchar_t)(__ccgo_up(p)))-uint32('0') < uint32(10)) != 0) { + break + } + width = int32(10)*width + **(**Twchar_t)(__ccgo_up(p)) - int32('0') + goto _18 + _18: + ; + p += 4 + } + if **(**Twchar_t)(__ccgo_up(p)) == int32('m') { + wcs = uintptr(0) + s = uintptr(0) + alloc = BoolInt32(!!(dest != 0)) + p += 4 + } else { + alloc = 0 + } + size = SIZE_def + v5 = p + p += 4 + switch **(**Twchar_t)(__ccgo_up(v5)) { + case int32('h'): + if **(**Twchar_t)(__ccgo_up(p)) == int32('h') { + p += 4 + size = -Int32FromInt32(2) + } else { + size = -int32(1) + } + case int32('l'): + if **(**Twchar_t)(__ccgo_up(p)) == int32('l') { + p += 4 + size = Int32FromInt32(SIZE_ll) + } else { + size = int32(SIZE_l) + } + case int32('j'): + size = int32(SIZE_ll) + case int32('z'): + fallthrough + case int32('t'): + size = int32(SIZE_l) + case int32('L'): + size = int32(SIZE_L) + case int32('d'): + fallthrough + case int32('i'): + fallthrough + case int32('o'): + fallthrough + case int32('u'): + fallthrough + case int32('x'): + fallthrough + case int32('a'): + fallthrough + case int32('e'): + fallthrough + case int32('f'): + fallthrough + case int32('g'): + fallthrough + case int32('A'): + fallthrough + case int32('E'): + fallthrough + case int32('F'): + fallthrough + case int32('G'): + fallthrough + case int32('X'): + fallthrough + case int32('s'): + fallthrough + case int32('c'): + fallthrough + case int32('['): + fallthrough + case int32('S'): + fallthrough + case int32('C'): + fallthrough + case int32('p'): + fallthrough + case int32('n'): + p -= 4 + default: + goto fmt_fail + } + t = **(**Twchar_t)(__ccgo_up(p)) + /* Transform S,C -> ls,lc */ + if t&int32(0x2f) == int32(3) { + size = int32(SIZE_l) + t = t | int32(32) + } + if t != int32('n') { + if t != int32('[') && t|int32(32) != int32('c') { + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend && Int32FromUint8(**(**uint8)(__ccgo_up((*TFILE)(unsafe.Pointer(f)).Frpos))) < int32(128) { + v6 = f + 8 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + v4 = uint32(**(**uint8)(__ccgo_up(v5))) + } else { + v4 = Xgetwc(tls, f) + } + v1 = Int32FromUint32(v4) + c = v1 + if !(Xiswspace(tls, Uint32FromInt32(v1)) != 0) { + break + } + pos = pos + 1 + } + } else { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend && Int32FromUint8(**(**uint8)(__ccgo_up((*TFILE)(unsafe.Pointer(f)).Frpos))) < int32(128) { + v6 = f + 8 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + v4 = uint32(**(**uint8)(__ccgo_up(v5))) + } else { + v4 = Xgetwc(tls, f) + } + c = Int32FromUint32(v4) + } + if c < 0 { + goto input_fail + } + if (*TFILE)(unsafe.Pointer(f)).Frend != 0 && Uint32FromInt32(c) < uint32(128) { + v6 = f + 8 + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) - 1 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + _ = **(**uint8)(__ccgo_up(v5)) + } else { + Xungetwc(tls, Uint32FromInt32(c), f) + } + } + switch t { + case int32('n'): + _store_int1(tls, dest, size, Uint64FromInt64(pos)) + /* do not increment match count, etc! */ + goto _2 + case int32('s'): + fallthrough + case int32('c'): + fallthrough + case int32('['): + if t == int32('c') { + if width < int32(1) { + width = int32(1) + } + invert = int32(1) + set = __ccgo_ts + 1656 + } else { + if t == int32('s') { + invert = int32(1) + set = uintptr(unsafe.Pointer(&_spaces1)) + } else { + p += 4 + v5 = p + if **(**Twchar_t)(__ccgo_up(v5)) == int32('^') { + p += 4 + invert = Int32FromInt32(1) + } else { + invert = 0 + } + set = p + if **(**Twchar_t)(__ccgo_up(p)) == int32(']') { + p += 4 + } + for **(**Twchar_t)(__ccgo_up(p)) != int32(']') { + if !(**(**Twchar_t)(__ccgo_up(p)) != 0) { + goto fmt_fail + } + p += 4 + } + } + } + if size == SIZE_def { + v5 = dest + } else { + v5 = uintptr(0) + } + s = v5 + if size == int32(SIZE_l) { + v5 = dest + } else { + v5 = uintptr(0) + } + wcs = v5 + gotmatch = 0 + if width < int32(1) { + width = -int32(1) + } + i = uint64(0) + if alloc != 0 { + if t == int32('c') { + v4 = Uint32FromInt32(width) + uint32(1) + } else { + v4 = uint32(31) + } + k = uint64(v4) + if size == int32(SIZE_l) { + wcs = Xmalloc(tls, k*uint64(4)) + if !(wcs != 0) { + goto alloc_fail + } + } else { + s = Xmalloc(tls, k) + if !(s != 0) { + goto alloc_fail + } + } + } + for width != 0 { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend && Int32FromUint8(**(**uint8)(__ccgo_up((*TFILE)(unsafe.Pointer(f)).Frpos))) < int32(128) { + v6 = f + 8 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + v4 = uint32(**(**uint8)(__ccgo_up(v5))) + } else { + v4 = Xgetwc(tls, f) + } + v1 = Int32FromUint32(v4) + c = v1 + if v1 < 0 { + break + } + if _in_set(tls, set, c) == invert { + break + } + if wcs != 0 { + v37 = i + i = i + 1 + **(**Twchar_t)(__ccgo_up(wcs + uintptr(v37)*4)) = c + if alloc != 0 && i == k { + k = k + (k + uint64(1)) + tmp1 = Xrealloc(tls, wcs, k*uint64(4)) + if !(tmp1 != 0) { + goto alloc_fail + } + wcs = tmp1 + } + } else { + if size != int32(SIZE_l) { + if s != 0 { + v5 = s + uintptr(i) + } else { + v5 = bp + 8 + } + l = Xwctomb(tls, v5, c) + if l < 0 { + goto input_fail + } + i = i + Uint64FromInt32(l) + if alloc != 0 && i > k-uint64(4) { + k = k + (k + uint64(1)) + tmp2 = Xrealloc(tls, s, k) + if !(tmp2 != 0) { + goto alloc_fail + } + s = tmp2 + } + } + } + pos = pos + 1 + width = width - BoolInt32(width > 0) + gotmatch = int32(1) + } + if width != 0 { + if (*TFILE)(unsafe.Pointer(f)).Frend != 0 && Uint32FromInt32(c) < uint32(128) { + v6 = f + 8 + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) - 1 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + _ = **(**uint8)(__ccgo_up(v5)) + } else { + Xungetwc(tls, Uint32FromInt32(c), f) + } + if t == int32('c') || !(gotmatch != 0) { + goto match_fail + } + } + if alloc != 0 { + if size == int32(SIZE_l) { + **(**uintptr)(__ccgo_up(dest)) = wcs + } else { + **(**uintptr)(__ccgo_up(dest)) = s + } + } + if t != int32('c') { + if wcs != 0 { + **(**Twchar_t)(__ccgo_up(wcs + uintptr(i)*4)) = 0 + } + if s != 0 { + **(**int8)(__ccgo_up(s + uintptr(i))) = 0 + } + } + case int32('d'): + fallthrough + case int32('i'): + fallthrough + case int32('o'): + fallthrough + case int32('u'): + fallthrough + case int32('x'): + fallthrough + case int32('a'): + fallthrough + case int32('e'): + fallthrough + case int32('f'): + fallthrough + case int32('g'): + fallthrough + case int32('A'): + fallthrough + case int32('E'): + fallthrough + case int32('F'): + fallthrough + case int32('G'): + fallthrough + case int32('X'): + fallthrough + case int32('p'): + if width < int32(1) { + width = 0 + } + Xsnprintf(tls, bp+8, uint64(22), __ccgo_ts+1660, VaList(bp+40, int32(1)+BoolInt32(!(dest != 0)), __ccgo_ts+1678, width, uintptr(unsafe.Pointer(&_size_pfx))+uintptr(size+int32(2))*3, t)) + **(**Toff_t)(__ccgo_up(bp)) = 0 + if dest != 0 { + v5 = dest + } else { + v5 = bp + } + if Xfscanf(tls, f, bp+8, VaList(bp+40, v5, bp)) == -int32(1) { + goto input_fail + } else { + if !(**(**Toff_t)(__ccgo_up(bp)) != 0) { + goto match_fail + } + } + pos = pos + **(**Toff_t)(__ccgo_up(bp)) + default: + goto fmt_fail + } + if dest != 0 { + matches = matches + 1 + } + goto _2 + _2: + ; + p += 4 + } + if !(0 != 0) { + goto _42 + } + goto fmt_fail +fmt_fail: + ; + goto alloc_fail +alloc_fail: + ; + goto input_fail +input_fail: + ; + if !(matches != 0) { + matches = matches - 1 + } + goto match_fail +match_fail: + ; + if alloc != 0 { + Xfree(tls, s) + Xfree(tls, wcs) + } +_42: + ; + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return matches +} + +var _size_pfx = [6][3]int8{ + 0: {'h', 'h'}, + 1: {'h'}, + 2: {}, + 3: {'l'}, + 4: {'L'}, + 5: {'l', 'l'}, +} + +var _spaces1 = [22]Twchar_t{ + 0: int32(' '), + 1: int32('\t'), + 2: int32('\n'), + 3: int32('\r'), + 4: int32(11), + 5: int32(12), + 6: int32(0x0085), + 7: int32(0x2000), + 8: int32(0x2001), + 9: int32(0x2002), + 10: int32(0x2003), + 11: int32(0x2004), + 12: int32(0x2005), + 13: int32(0x2006), + 14: int32(0x2008), + 15: int32(0x2009), + 16: int32(0x200a), + 17: int32(0x2028), + 18: int32(0x2029), + 19: int32(0x205f), + 20: int32(0x3000), +} + +func X__isoc99_vfwscanf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v ap=%v, (%v:)", tls, f, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvfwscanf(tls, f, fmt, ap) +} + +func Xvprintf(tls *TLS, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v ap=%v, (%v:)", tls, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvfprintf(tls, uintptr(unsafe.Pointer(&X__stdout_FILE)), fmt, ap) +} + +func Xvscanf(tls *TLS, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v ap=%v, (%v:)", tls, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvfscanf(tls, uintptr(unsafe.Pointer(&X__stdin_FILE)), fmt, ap) +} + +func X__isoc99_vscanf(tls *TLS, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v ap=%v, (%v:)", tls, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvscanf(tls, fmt, ap) +} + +type Tcookie3 = struct { + Fs uintptr + Fn Tsize_t +} + +func _sn_write(tls *TLS, f uintptr, s uintptr, l Tsize_t) (r Tsize_t) { + var c, v3 uintptr + var k Tsize_t + var v1 uint64 + _, _, _, _ = c, k, v1, v3 + c = (*TFILE)(unsafe.Pointer(f)).Fcookie + if (*Tcookie3)(unsafe.Pointer(c)).Fn < Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Fwpos)-int64((*TFILE)(unsafe.Pointer(f)).Fwbase)) { + v1 = (*Tcookie3)(unsafe.Pointer(c)).Fn + } else { + v1 = Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Fwpos) - int64((*TFILE)(unsafe.Pointer(f)).Fwbase)) + } + k = v1 + if k != 0 { + Xmemcpy(tls, (*Tcookie3)(unsafe.Pointer(c)).Fs, (*TFILE)(unsafe.Pointer(f)).Fwbase, k) + **(**uintptr)(__ccgo_up(c)) += uintptr(k) + **(**Tsize_t)(__ccgo_up(c + 8)) -= k + } + if (*Tcookie3)(unsafe.Pointer(c)).Fn < l { + v1 = (*Tcookie3)(unsafe.Pointer(c)).Fn + } else { + v1 = l + } + k = v1 + if k != 0 { + Xmemcpy(tls, (*Tcookie3)(unsafe.Pointer(c)).Fs, s, k) + **(**uintptr)(__ccgo_up(c)) += uintptr(k) + **(**Tsize_t)(__ccgo_up(c + 8)) -= k + } + **(**int8)(__ccgo_up((*Tcookie3)(unsafe.Pointer(c)).Fs)) = 0 + v3 = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Fwbase = v3 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v3 + /* pretend to succeed, even if we discarded extra data */ + return l +} + +func Xvsnprintf(tls *TLS, s uintptr, n Tsize_t, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v fmt=%v ap=%v, (%v:)", tls, s, n, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(256) + defer tls.Free(256) + var v1 uintptr + var v2 uint64 + var _ /* buf at bp+0 */ [1]uint8 + var _ /* c at bp+8 */ Tcookie3 + var _ /* dummy at bp+1 */ [1]int8 + var _ /* f at bp+24 */ TFILE + _, _ = v1, v2 + if n != 0 { + v1 = s + } else { + v1 = bp + 1 + } + if n != 0 { + v2 = n - uint64(1) + } else { + v2 = uint64(0) + } + **(**Tcookie3)(__ccgo_up(bp + 8)) = Tcookie3{ + Fs: v1, + Fn: v2, + } + **(**TFILE)(__ccgo_up(bp + 24)) = TFILE{ + Fwrite: __ccgo_fp(_sn_write), + Fbuf: bp, + Flock: -int32(1), + Flbf: -int32(1), + Fcookie: bp + 8, + } + **(**int8)(__ccgo_up((**(**Tcookie3)(__ccgo_up(bp + 8))).Fs)) = 0 + return Xvfprintf(tls, bp+24, fmt, ap) +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xvsprintf(tls *TLS, s uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v ap=%v, (%v:)", tls, s, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvsnprintf(tls, s, uint64(INT_MAX), fmt, ap) +} + +func _string_read(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + var end, src uintptr + var k Tsize_t + _, _, _ = end, k, src + src = (*TFILE)(unsafe.Pointer(f)).Fcookie + k = len1 + uint64(256) + end = Xmemchr(tls, src, 0, k) + if end != 0 { + k = Uint64FromInt64(int64(end) - int64(src)) + } + if k < len1 { + len1 = k + } + Xmemcpy(tls, buf, src, len1) + (*TFILE)(unsafe.Pointer(f)).Frpos = src + uintptr(len1) + (*TFILE)(unsafe.Pointer(f)).Frend = src + uintptr(k) + (*TFILE)(unsafe.Pointer(f)).Fcookie = src + uintptr(k) + return len1 +} + +func Xvsscanf(tls *TLS, s uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v ap=%v, (%v:)", tls, s, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(240) + defer tls.Free(240) + var _ /* f at bp+0 */ TFILE + **(**TFILE)(__ccgo_up(bp)) = TFILE{ + Fread: __ccgo_fp(_string_read), + Fbuf: s, + Flock: -int32(1), + Fcookie: s, + } + return Xvfscanf(tls, bp, fmt, ap) +} + +func X__isoc99_vsscanf(tls *TLS, s uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v ap=%v, (%v:)", tls, s, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvsscanf(tls, s, fmt, ap) +} + +type Tcookie4 = struct { + Fws uintptr + Fl Tsize_t +} + +func _sw_write(tls *TLS, f uintptr, s uintptr, l Tsize_t) (r Tsize_t) { + var c, v3, v4 uintptr + var i, v1 int32 + var l0 Tsize_t + var v2 bool + _, _, _, _, _, _, _ = c, i, l0, v1, v2, v3, v4 + l0 = l + i = 0 + c = (*TFILE)(unsafe.Pointer(f)).Fcookie + if s != (*TFILE)(unsafe.Pointer(f)).Fwbase && _sw_write(tls, f, (*TFILE)(unsafe.Pointer(f)).Fwbase, Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Fwpos)-int64((*TFILE)(unsafe.Pointer(f)).Fwbase))) == Uint64FromInt32(-Int32FromInt32(1)) { + return Uint64FromInt32(-Int32FromInt32(1)) + } + for { + if v2 = (*Tcookie4)(unsafe.Pointer(c)).Fl != 0 && l != 0; v2 { + v1 = Xmbtowc(tls, (*Tcookie4)(unsafe.Pointer(c)).Fws, s, l) + i = v1 + } + if !(v2 && v1 >= 0) { + break + } + if !(i != 0) { + i = int32(1) + } + s = s + uintptr(i) + l = l - Uint64FromInt32(i) + (*Tcookie4)(unsafe.Pointer(c)).Fl = (*Tcookie4)(unsafe.Pointer(c)).Fl - 1 + (*Tcookie4)(unsafe.Pointer(c)).Fws += 4 + } + **(**Twchar_t)(__ccgo_up((*Tcookie4)(unsafe.Pointer(c)).Fws)) = 0 + if i < 0 { + v4 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Fwend = v4 + v3 = v4 + (*TFILE)(unsafe.Pointer(f)).Fwbase = v3 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v3 + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) + return Uint64FromInt32(i) + } + (*TFILE)(unsafe.Pointer(f)).Fwend = (*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr((*TFILE)(unsafe.Pointer(f)).Fbuf_size) + v3 = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Fwbase = v3 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v3 + return l0 +} + +func Xvswprintf(tls *TLS, s uintptr, n Tsize_t, fmt uintptr, ap Tva_list) (r1 int32) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v fmt=%v ap=%v, (%v:)", tls, s, n, fmt, ap, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(512) + defer tls.Free(512) + var r, v1 int32 + var _ /* buf at bp+0 */ [256]uint8 + var _ /* c at bp+256 */ Tcookie4 + var _ /* f at bp+272 */ TFILE + _, _ = r, v1 + **(**Tcookie4)(__ccgo_up(bp + 256)) = Tcookie4{ + Fws: s, + Fl: n - uint64(1), + } + **(**TFILE)(__ccgo_up(bp + 272)) = TFILE{ + Fwrite: __ccgo_fp(_sw_write), + Fbuf: bp, + Fbuf_size: uint64(256), + Flock: -int32(1), + Flbf: -int32(1), + Fcookie: bp + 256, + } + if !(n != 0) { + return -int32(1) + } + r = Xvfwprintf(tls, bp+272, fmt, ap) + _sw_write(tls, bp+272, uintptr(0), uint64(0)) + if Uint64FromInt32(r) >= n { + v1 = -int32(1) + } else { + v1 = r + } + return v1 +} + +func _wstring_read(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + bp := tls.Alloc(16) + defer tls.Free(16) + var k Tsize_t + var v1, v2 uintptr + var _ /* src at bp+0 */ uintptr + _, _, _ = k, v1, v2 + **(**uintptr)(__ccgo_up(bp)) = (*TFILE)(unsafe.Pointer(f)).Fcookie + if !(**(**uintptr)(__ccgo_up(bp)) != 0) { + return uint64(0) + } + k = Xwcsrtombs(tls, (*TFILE)(unsafe.Pointer(f)).Fbuf, bp, (*TFILE)(unsafe.Pointer(f)).Fbuf_size, uintptr(0)) + if k == Uint64FromInt32(-Int32FromInt32(1)) { + v1 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Frend = v1 + (*TFILE)(unsafe.Pointer(f)).Frpos = v1 + return uint64(0) + } + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Frend = (*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr(k) + (*TFILE)(unsafe.Pointer(f)).Fcookie = **(**uintptr)(__ccgo_up(bp)) + if !(len1 != 0) || !(k != 0) { + return uint64(0) + } + v2 = f + 8 + v1 = *(*uintptr)(unsafe.Pointer(v2)) + *(*uintptr)(unsafe.Pointer(v2)) = *(*uintptr)(unsafe.Pointer(v2)) + 1 + **(**uint8)(__ccgo_up(buf)) = **(**uint8)(__ccgo_up(v1)) + return uint64(1) +} + +func Xvswscanf(tls *TLS, s uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v ap=%v, (%v:)", tls, s, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(496) + defer tls.Free(496) + var _ /* buf at bp+0 */ [256]uint8 + var _ /* f at bp+256 */ TFILE + **(**TFILE)(__ccgo_up(bp + 256)) = TFILE{ + Fread: __ccgo_fp(_wstring_read), + Fbuf: bp, + Fbuf_size: uint64(256), + Flock: -int32(1), + Fcookie: s, + } + return Xvfwscanf(tls, bp+256, fmt, ap) +} + +func X__isoc99_vswscanf(tls *TLS, s uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v ap=%v, (%v:)", tls, s, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvswscanf(tls, s, fmt, ap) +} + +func Xvwprintf(tls *TLS, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v ap=%v, (%v:)", tls, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvfwprintf(tls, uintptr(unsafe.Pointer(&X__stdout_FILE)), fmt, ap) +} + +func Xvwscanf(tls *TLS, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v ap=%v, (%v:)", tls, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvfwscanf(tls, uintptr(unsafe.Pointer(&X__stdin_FILE)), fmt, ap) +} + +func X__isoc99_vwscanf(tls *TLS, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v ap=%v, (%v:)", tls, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvwscanf(tls, fmt, ap) +} + +func Xwprintf(tls *TLS, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v va=%v, (%v:)", tls, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvwprintf(tls, fmt, ap) + _ = ap + return ret +} + +func Xwscanf(tls *TLS, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v va=%v, (%v:)", tls, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvwscanf(tls, fmt, ap) + _ = ap + return ret +} + +func X__isoc99_wscanf(tls *TLS, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v va=%v, (%v:)", tls, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwscanf(tls, fmt, va) +} + +func Xabs(tls *TLS, a int32) (r int32) { + if __ccgo_strace { + trc("tls=%v a=%v, (%v:)", tls, a, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + _ = v1 + if a > 0 { + v1 = a + } else { + v1 = -a + } + return v1 +} + +func Xatof(tls *TLS, s uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtod(tls, s, uintptr(0)) +} + +func Xatoi(tls *TLS, s uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var n, neg, v1, v2 int32 + var v4 uintptr + _, _, _, _, _ = n, neg, v1, v2, v4 + n = 0 + neg = 0 + for { + v1 = int32(**(**int8)(__ccgo_up(s))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _3 + _3: + if !(v2 != 0) { + break + } + s = s + 1 + } + switch int32(**(**int8)(__ccgo_up(s))) { + case int32('-'): + neg = int32(1) + fallthrough + case int32('+'): + s = s + 1 + } + /* Compute n as a negative number to avoid overflow on INT_MIN */ + for BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(s)))-uint32('0') < uint32(10)) != 0 { + v4 = s + s = s + 1 + n = int32(10)*n - (int32(**(**int8)(__ccgo_up(v4))) - int32('0')) + } + if neg != 0 { + v1 = n + } else { + v1 = -n + } + return v1 +} + +func Xatol(tls *TLS, s uintptr) (r int64) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var n, v5 int64 + var neg, v1, v2 int32 + var v4 uintptr + _, _, _, _, _, _ = n, neg, v1, v2, v4, v5 + n = 0 + neg = 0 + for { + v1 = int32(**(**int8)(__ccgo_up(s))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _3 + _3: + if !(v2 != 0) { + break + } + s = s + 1 + } + switch int32(**(**int8)(__ccgo_up(s))) { + case int32('-'): + neg = int32(1) + fallthrough + case int32('+'): + s = s + 1 + } + /* Compute n as a negative number to avoid overflow on LONG_MIN */ + for BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(s)))-uint32('0') < uint32(10)) != 0 { + v4 = s + s = s + 1 + n = int64(10)*n - int64(int32(**(**int8)(__ccgo_up(v4)))-Int32FromUint8('0')) + } + if neg != 0 { + v5 = n + } else { + v5 = -n + } + return v5 +} + +func Xatoll(tls *TLS, s uintptr) (r int64) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var n, v5 int64 + var neg, v1, v2 int32 + var v4 uintptr + _, _, _, _, _, _ = n, neg, v1, v2, v4, v5 + n = 0 + neg = 0 + for { + v1 = int32(**(**int8)(__ccgo_up(s))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _3 + _3: + if !(v2 != 0) { + break + } + s = s + 1 + } + switch int32(**(**int8)(__ccgo_up(s))) { + case int32('-'): + neg = int32(1) + fallthrough + case int32('+'): + s = s + 1 + } + /* Compute n as a negative number to avoid overflow on LLONG_MIN */ + for BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(s)))-uint32('0') < uint32(10)) != 0 { + v4 = s + s = s + 1 + n = int64(10)*n - int64(int32(**(**int8)(__ccgo_up(v4)))-Int32FromUint8('0')) + } + if neg != 0 { + v5 = n + } else { + v5 = -n + } + return v5 +} + +type t__ccgo_fp__Xbsearch_4 = func(*TLS, uintptr, uintptr) int32 + +func Xbsearch(tls *TLS, key uintptr, base uintptr, nel Tsize_t, width Tsize_t, __ccgo_fp_cmp uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v base=%v nel=%v width=%v __ccgo_fp_cmp=%v, (%v:)", tls, key, base, nel, width, __ccgo_fp_cmp, origin(2)) + defer func() { trc("-> %v", r) }() + } + var sign int32 + var try uintptr + _, _ = sign, try + for nel > uint64(0) { + try = base + uintptr(width*(nel/uint64(2))) + sign = (*(*func(*TLS, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cmp})))(tls, key, try) + if sign < 0 { + nel = nel / uint64(2) + } else { + if sign > 0 { + base = try + uintptr(width) + nel = nel - (nel/uint64(2) + uint64(1)) + } else { + return try + } + } + } + return UintptrFromInt32(0) +} + +func Xdiv(tls *TLS, num int32, den int32) (r Tdiv_t) { + if __ccgo_strace { + trc("tls=%v num=%v den=%v, (%v:)", tls, num, den, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Tdiv_t{ + Fquot: num / den, + Frem: num % den, + } +} + +func Xecvt(tls *TLS, x float64, n int32, dp uintptr, sign uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v dp=%v sign=%v, (%v:)", tls, x, n, dp, sign, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var i, j, v1 int32 + var _ /* tmp at bp+0 */ [32]int8 + _, _, _ = i, j, v1 + if Uint32FromInt32(n)-uint32(1) > uint32(15) { + n = int32(15) + } + Xsprintf(tls, bp, __ccgo_ts+1681, VaList(bp+40, n-int32(1), x)) + v1 = BoolInt32(int32((**(**[32]int8)(__ccgo_up(bp)))[0]) == Int32FromUint8('-')) + **(**int32)(__ccgo_up(sign)) = v1 + i = v1 + j = 0 + for { + if !(int32((**(**[32]int8)(__ccgo_up(bp)))[i]) != int32('e')) { + break + } + _buf8[j] = (**(**[32]int8)(__ccgo_up(bp)))[i] + goto _2 + _2: + ; + v1 = i + i = i + 1 + j = j + BoolInt32(int32((**(**[32]int8)(__ccgo_up(bp)))[v1]) != int32('.')) + } + _buf8[j] = 0 + **(**int32)(__ccgo_up(dp)) = Xatoi(tls, bp+uintptr(i)+uintptr(1)) + int32(1) + return uintptr(unsafe.Pointer(&_buf8)) +} + +var _buf8 [16]int8 + +func Xfcvt(tls *TLS, x float64, n int32, dp uintptr, sign uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v dp=%v sign=%v, (%v:)", tls, x, n, dp, sign, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(1536) + defer tls.Free(1536) + var i, lz int32 + var _ /* tmp at bp+0 */ [1500]int8 + _, _ = i, lz + if Uint32FromInt32(n) > uint32(1400) { + n = int32(1400) + } + Xsprintf(tls, bp, __ccgo_ts+1686, VaList(bp+1512, n, x)) + i = BoolInt32(int32((**(**[1500]int8)(__ccgo_up(bp)))[0]) == int32('-')) + if int32((**(**[1500]int8)(__ccgo_up(bp)))[i]) == int32('0') { + lz = Int32FromUint64(Xstrspn(tls, bp+uintptr(i)+uintptr(2), __ccgo_ts+1654)) + } else { + lz = -Int32FromUint64(Xstrcspn(tls, bp+uintptr(i), __ccgo_ts+558)) + } + if n <= lz { + **(**int32)(__ccgo_up(sign)) = i + **(**int32)(__ccgo_up(dp)) = int32(1) + if Uint32FromInt32(n) > uint32(14) { + n = int32(14) + } + return __ccgo_ts + 1691 + UintptrFromInt32(14) - uintptr(n) + } + return Xecvt(tls, x, n-lz, dp, sign) +} + +func Xgcvt(tls *TLS, x float64, n int32, b uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v b=%v, (%v:)", tls, x, n, b, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + Xsprintf(tls, b, __ccgo_ts+1707, VaList(bp+8, n, x)) + return b +} + +func Ximaxabs(tls *TLS, a Tintmax_t) (r Tintmax_t) { + if __ccgo_strace { + trc("tls=%v a=%v, (%v:)", tls, a, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int64 + _ = v1 + if a > 0 { + v1 = a + } else { + v1 = -a + } + return v1 +} + +func Ximaxdiv(tls *TLS, num Tintmax_t, den Tintmax_t) (r Timaxdiv_t) { + if __ccgo_strace { + trc("tls=%v num=%v den=%v, (%v:)", tls, num, den, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Timaxdiv_t{ + Fquot: num / den, + Frem: num % den, + } +} + +func Xlabs(tls *TLS, a int64) (r int64) { + if __ccgo_strace { + trc("tls=%v a=%v, (%v:)", tls, a, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int64 + _ = v1 + if a > 0 { + v1 = a + } else { + v1 = -a + } + return v1 +} + +func Xldiv(tls *TLS, num int64, den int64) (r Tldiv_t) { + if __ccgo_strace { + trc("tls=%v num=%v den=%v, (%v:)", tls, num, den, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Tldiv_t{ + Fquot: num / den, + Frem: num % den, + } +} + +func Xllabs(tls *TLS, a int64) (r int64) { + if __ccgo_strace { + trc("tls=%v a=%v, (%v:)", tls, a, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int64 + _ = v1 + if a > 0 { + v1 = a + } else { + v1 = -a + } + return v1 +} + +func Xlldiv(tls *TLS, num int64, den int64) (r Tlldiv_t) { + if __ccgo_strace { + trc("tls=%v num=%v den=%v, (%v:)", tls, num, den, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Tlldiv_t{ + Fquot: num / den, + Frem: num % den, + } +} + +type Tcmpfun = uintptr + +func _pntz(tls *TLS, p uintptr) (r1 int32) { + var r, v2, v4, v6 int32 + var v1, v5 uint64 + var v8 bool + _, _, _, _, _, _, _ = r, v1, v2, v4, v5, v6, v8 + v1 = **(**Tsize_t)(__ccgo_up(p)) - uint64(1) + v2 = _a_ctz_64(tls, v1) + goto _3 +_3: + r = v2 + if v8 = r != 0; !v8 { + v5 = **(**Tsize_t)(__ccgo_up(p + 1*8)) + v6 = _a_ctz_64(tls, v5) + goto _7 + _7: + v4 = Int32FromUint64(Uint64FromInt32(8)*Uint64FromInt64(8) + Uint64FromInt32(v6)) + r = v4 + } + if v8 || Uint64FromInt32(v4) != Uint64FromInt32(8)*Uint64FromInt64(8) { + return r + } + return 0 +} + +func _cycle(tls *TLS, width Tsize_t, ar uintptr, n int32) { + bp := tls.Alloc(256) + defer tls.Free(256) + var i int32 + var l Tsize_t + var v1 uint64 + var _ /* tmp at bp+0 */ [256]uint8 + _, _, _ = i, l, v1 + if n < int32(2) { + return + } + **(**uintptr)(__ccgo_up(ar + uintptr(n)*8)) = bp + for width != 0 { + if uint64(256) < width { + v1 = uint64(256) + } else { + v1 = width + } + l = v1 + Xmemcpy(tls, **(**uintptr)(__ccgo_up(ar + uintptr(n)*8)), **(**uintptr)(__ccgo_up(ar)), l) + i = 0 + for { + if !(i < n) { + break + } + Xmemcpy(tls, **(**uintptr)(__ccgo_up(ar + uintptr(i)*8)), **(**uintptr)(__ccgo_up(ar + uintptr(i+int32(1))*8)), l) + **(**uintptr)(__ccgo_up(ar + uintptr(i)*8)) += uintptr(l) + goto _2 + _2: + ; + i = i + 1 + } + width = width - l + } +} + +// C documentation +// +// /* shl() and shr() need n > 0 */ +func _shl(tls *TLS, p uintptr, n int32) { + if Uint64FromInt32(n) >= Uint64FromInt32(8)*Uint64FromInt64(8) { + n = Int32FromUint64(uint64(n) - Uint64FromInt32(8)*Uint64FromInt64(8)) + **(**Tsize_t)(__ccgo_up(p + 1*8)) = **(**Tsize_t)(__ccgo_up(p)) + **(**Tsize_t)(__ccgo_up(p)) = uint64(0) + } + **(**Tsize_t)(__ccgo_up(p + 1*8)) <<= Uint64FromInt32(n) + **(**Tsize_t)(__ccgo_up(p + 1*8)) |= **(**Tsize_t)(__ccgo_up(p)) >> (Uint64FromInt64(8)*Uint64FromInt32(8) - Uint64FromInt32(n)) + **(**Tsize_t)(__ccgo_up(p)) <<= Uint64FromInt32(n) +} + +func _shr(tls *TLS, p uintptr, n int32) { + if Uint64FromInt32(n) >= Uint64FromInt32(8)*Uint64FromInt64(8) { + n = Int32FromUint64(uint64(n) - Uint64FromInt32(8)*Uint64FromInt64(8)) + **(**Tsize_t)(__ccgo_up(p)) = **(**Tsize_t)(__ccgo_up(p + 1*8)) + **(**Tsize_t)(__ccgo_up(p + 1*8)) = uint64(0) + } + **(**Tsize_t)(__ccgo_up(p)) >>= Uint64FromInt32(n) + **(**Tsize_t)(__ccgo_up(p)) |= **(**Tsize_t)(__ccgo_up(p + 1*8)) << (Uint64FromInt64(8)*Uint64FromInt32(8) - Uint64FromInt32(n)) + **(**Tsize_t)(__ccgo_up(p + 1*8)) >>= Uint64FromInt32(n) +} + +func _sift(tls *TLS, head uintptr, width Tsize_t, __ccgo_fp_cmp Tcmpfun, arg uintptr, pshift int32, lp uintptr) { + bp := tls.Alloc(912) + defer tls.Free(912) + var i, v1 int32 + var lf, rt uintptr + var _ /* ar at bp+0 */ [113]uintptr + _, _, _, _ = i, lf, rt, v1 + i = int32(1) + (**(**[113]uintptr)(__ccgo_up(bp)))[0] = head + for pshift > int32(1) { + rt = head - uintptr(width) + lf = head - uintptr(width) - uintptr(**(**Tsize_t)(__ccgo_up(lp + uintptr(pshift-int32(2))*8))) + if (*(*func(*TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cmp})))(tls, (**(**[113]uintptr)(__ccgo_up(bp)))[0], lf, arg) >= 0 && (*(*func(*TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cmp})))(tls, (**(**[113]uintptr)(__ccgo_up(bp)))[0], rt, arg) >= 0 { + break + } + if (*(*func(*TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cmp})))(tls, lf, rt, arg) >= 0 { + v1 = i + i = i + 1 + (**(**[113]uintptr)(__ccgo_up(bp)))[v1] = lf + head = lf + pshift = pshift - int32(1) + } else { + v1 = i + i = i + 1 + (**(**[113]uintptr)(__ccgo_up(bp)))[v1] = rt + head = rt + pshift = pshift - int32(2) + } + } + _cycle(tls, width, bp, i) +} + +func _trinkle(tls *TLS, head uintptr, width Tsize_t, __ccgo_fp_cmp Tcmpfun, arg uintptr, pp uintptr, pshift int32, trusty int32, lp uintptr) { + bp := tls.Alloc(928) + defer tls.Free(928) + var i, trail, v1 int32 + var lf, rt, stepson uintptr + var _ /* ar at bp+16 */ [113]uintptr + var _ /* p at bp+0 */ [2]Tsize_t + _, _, _, _, _, _ = i, lf, rt, stepson, trail, v1 + i = int32(1) + (**(**[2]Tsize_t)(__ccgo_up(bp)))[0] = **(**Tsize_t)(__ccgo_up(pp)) + (**(**[2]Tsize_t)(__ccgo_up(bp)))[int32(1)] = **(**Tsize_t)(__ccgo_up(pp + 1*8)) + (**(**[113]uintptr)(__ccgo_up(bp + 16)))[0] = head + for (**(**[2]Tsize_t)(__ccgo_up(bp)))[0] != uint64(1) || (**(**[2]Tsize_t)(__ccgo_up(bp)))[int32(1)] != uint64(0) { + stepson = head - uintptr(**(**Tsize_t)(__ccgo_up(lp + uintptr(pshift)*8))) + if (*(*func(*TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cmp})))(tls, stepson, (**(**[113]uintptr)(__ccgo_up(bp + 16)))[0], arg) <= 0 { + break + } + if !(trusty != 0) && pshift > int32(1) { + rt = head - uintptr(width) + lf = head - uintptr(width) - uintptr(**(**Tsize_t)(__ccgo_up(lp + uintptr(pshift-int32(2))*8))) + if (*(*func(*TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cmp})))(tls, rt, stepson, arg) >= 0 || (*(*func(*TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cmp})))(tls, lf, stepson, arg) >= 0 { + break + } + } + v1 = i + i = i + 1 + (**(**[113]uintptr)(__ccgo_up(bp + 16)))[v1] = stepson + head = stepson + trail = _pntz(tls, bp) + _shr(tls, bp, trail) + pshift = pshift + trail + trusty = 0 + } + if !(trusty != 0) { + _cycle(tls, width, bp+16, i) + _sift(tls, head, width, __ccgo_fp_cmp, arg, pshift, lp) + } +} + +type t__ccgo_fp__X__qsort_r_3 = func(*TLS, uintptr, uintptr, uintptr) int32 + +func X__qsort_r(tls *TLS, base uintptr, nel Tsize_t, width Tsize_t, __ccgo_fp_cmp Tcmpfun, arg uintptr) { + if __ccgo_strace { + trc("tls=%v base=%v nel=%v width=%v __ccgo_fp_cmp=%v arg=%v, (%v:)", tls, base, nel, width, __ccgo_fp_cmp, arg, origin(2)) + } + bp := tls.Alloc(784) + defer tls.Free(784) + var head, high uintptr + var i, size, v2, v3 Tsize_t + var pshift, trail int32 + var _ /* lp at bp+0 */ [96]Tsize_t + var _ /* p at bp+768 */ [2]Tsize_t + _, _, _, _, _, _, _, _ = head, high, i, pshift, size, trail, v2, v3 + size = width * nel + **(**[2]Tsize_t)(__ccgo_up(bp + 768)) = [2]Tsize_t{ + 0: uint64(1), + } + pshift = int32(1) + if !(size != 0) { + return + } + head = base + high = head + uintptr(size) - uintptr(width) + /* Precompute Leonardo numbers, scaled by element width */ + v2 = width + (**(**[96]Tsize_t)(__ccgo_up(bp)))[int32(1)] = v2 + (**(**[96]Tsize_t)(__ccgo_up(bp)))[0] = v2 + i = Uint64FromInt32(2) + for { + v3 = (**(**[96]Tsize_t)(__ccgo_up(bp)))[i-uint64(2)] + (**(**[96]Tsize_t)(__ccgo_up(bp)))[i-uint64(1)] + width + (**(**[96]Tsize_t)(__ccgo_up(bp)))[i] = v3 + if !(v3 < size) { + break + } + goto _1 + _1: + ; + i = i + 1 + } + for head < high { + if (**(**[2]Tsize_t)(__ccgo_up(bp + 768)))[0]&uint64(3) == uint64(3) { + _sift(tls, head, width, __ccgo_fp_cmp, arg, pshift, bp) + _shr(tls, bp+768, int32(2)) + pshift = pshift + int32(2) + } else { + if (**(**[96]Tsize_t)(__ccgo_up(bp)))[pshift-int32(1)] >= Uint64FromInt64(int64(high)-int64(head)) { + _trinkle(tls, head, width, __ccgo_fp_cmp, arg, bp+768, pshift, 0, bp) + } else { + _sift(tls, head, width, __ccgo_fp_cmp, arg, pshift, bp) + } + if pshift == int32(1) { + _shl(tls, bp+768, int32(1)) + pshift = 0 + } else { + _shl(tls, bp+768, pshift-int32(1)) + pshift = int32(1) + } + } + **(**Tsize_t)(__ccgo_up(bp + 768)) |= uint64(1) + head = head + uintptr(width) + } + _trinkle(tls, head, width, __ccgo_fp_cmp, arg, bp+768, pshift, 0, bp) + for pshift != int32(1) || (**(**[2]Tsize_t)(__ccgo_up(bp + 768)))[0] != uint64(1) || (**(**[2]Tsize_t)(__ccgo_up(bp + 768)))[int32(1)] != uint64(0) { + if pshift <= int32(1) { + trail = _pntz(tls, bp+768) + _shr(tls, bp+768, trail) + pshift = pshift + trail + } else { + _shl(tls, bp+768, int32(2)) + pshift = pshift - int32(2) + **(**Tsize_t)(__ccgo_up(bp + 768)) ^= uint64(7) + _shr(tls, bp+768, int32(1)) + _trinkle(tls, head-uintptr((**(**[96]Tsize_t)(__ccgo_up(bp)))[pshift])-uintptr(width), width, __ccgo_fp_cmp, arg, bp+768, pshift+int32(1), int32(1), bp) + _shl(tls, bp+768, int32(1)) + **(**Tsize_t)(__ccgo_up(bp + 768)) |= uint64(1) + _trinkle(tls, head-uintptr(width), width, __ccgo_fp_cmp, arg, bp+768, pshift, int32(1), bp) + } + head = head - uintptr(width) + } +} + +type t__ccgo_fp__Xqsort_r_3 = func(*TLS, uintptr, uintptr, uintptr) int32 + +func Xqsort_r(tls *TLS, base uintptr, nel Tsize_t, width Tsize_t, __ccgo_fp_cmp Tcmpfun, arg uintptr) { + if __ccgo_strace { + trc("tls=%v base=%v nel=%v width=%v __ccgo_fp_cmp=%v arg=%v, (%v:)", tls, base, nel, width, __ccgo_fp_cmp, arg, origin(2)) + } + X__qsort_r(tls, base, nel, width, __ccgo_fp_cmp, arg) +} + +func _wrapper_cmp(tls *TLS, v1 uintptr, v2 uintptr, cmp uintptr) (r int32) { + return (*(*func(*TLS, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{cmp})))(tls, v1, v2) +} + +type t__ccgo_fp__Xqsort_3 = func(*TLS, uintptr, uintptr) int32 + +func Xqsort(tls *TLS, base uintptr, nel Tsize_t, width Tsize_t, __ccgo_fp_cmp Tcmpfun) { + if __ccgo_strace { + trc("tls=%v base=%v nel=%v width=%v __ccgo_fp_cmp=%v, (%v:)", tls, base, nel, width, __ccgo_fp_cmp, origin(2)) + } + X__qsort_r(tls, base, nel, width, __ccgo_fp(_wrapper_cmp), __ccgo_fp_cmp) +} + +func _strtox(tls *TLS, s uintptr, p uintptr, prec int32) (r float64) { + bp := tls.Alloc(240) + defer tls.Free(240) + var cnt Toff_t + var y float64 + var v1 uintptr + var _ /* f at bp+0 */ TFILE + _, _, _ = cnt, y, v1 + v1 = s + (*TFILE)(unsafe.Pointer(bp)).Frpos = v1 + (*TFILE)(unsafe.Pointer(bp)).Fbuf = v1 + (*TFILE)(unsafe.Pointer(bp)).Frend = uintptr(-Int32FromInt32(1)) + X__shlim(tls, bp, int64(Int32FromInt32(0))) + y = X__floatscan(tls, bp, prec, int32(1)) + cnt = (*TFILE)(unsafe.Pointer(bp)).Fshcnt + (int64((*TFILE)(unsafe.Pointer(bp)).Frpos) - int64((*TFILE)(unsafe.Pointer(bp)).Fbuf)) + if p != 0 { + if cnt != 0 { + v1 = s + uintptr(cnt) + } else { + v1 = s + } + **(**uintptr)(__ccgo_up(p)) = v1 + } + return y +} + +func Xstrtof(tls *TLS, s uintptr, p uintptr) (r float32) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + return float32(_strtox(tls, s, p, 0)) +} + +func Xstrtod(tls *TLS, s uintptr, p uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _strtox(tls, s, p, int32(1)) +} + +func Xstrtold(tls *TLS, s uintptr, p uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _strtox(tls, s, p, int32(2)) +} + +func _strtox1(tls *TLS, s uintptr, p uintptr, base int32, lim uint64) (r uint64) { + bp := tls.Alloc(240) + defer tls.Free(240) + var cnt Tsize_t + var y uint64 + var v1 uintptr + var _ /* f at bp+0 */ TFILE + _, _, _ = cnt, y, v1 + v1 = s + (*TFILE)(unsafe.Pointer(bp)).Frpos = v1 + (*TFILE)(unsafe.Pointer(bp)).Fbuf = v1 + (*TFILE)(unsafe.Pointer(bp)).Frend = uintptr(-Int32FromInt32(1)) + X__shlim(tls, bp, int64(Int32FromInt32(0))) + y = X__intscan(tls, bp, Uint32FromInt32(base), int32(1), lim) + if p != 0 { + cnt = Uint64FromInt64((*TFILE)(unsafe.Pointer(bp)).Fshcnt + (int64((*TFILE)(unsafe.Pointer(bp)).Frpos) - int64((*TFILE)(unsafe.Pointer(bp)).Fbuf))) + **(**uintptr)(__ccgo_up(p)) = s + uintptr(cnt) + } + return y +} + +func Xstrtoull(tls *TLS, s uintptr, p uintptr, base int32) (r uint64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _strtox1(tls, s, p, base, Uint64FromUint64(2)*Uint64FromInt64(0x7fffffffffffffff)+Uint64FromInt32(1)) +} + +func Xstrtoll(tls *TLS, s uintptr, p uintptr, base int32) (r int64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Int64FromUint64(_strtox1(tls, s, p, base, Uint64FromInt64(-Int64FromInt64(0x7fffffffffffffff)-Int64FromInt32(1)))) +} + +func Xstrtoul(tls *TLS, s uintptr, p uintptr, base int32) (r uint64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _strtox1(tls, s, p, base, uint64(Uint64FromUint64(2)*Uint64FromInt64(0x7fffffffffffffff)+Uint64FromInt32(1))) +} + +func Xstrtol(tls *TLS, s uintptr, p uintptr, base int32) (r int64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Int64FromUint64(_strtox1(tls, s, p, base, uint64(Uint64FromUint64(0)+Uint64FromInt64(-Int64FromInt64(0x7fffffffffffffff)-Int64FromInt32(1))))) +} + +func Xstrtoimax(tls *TLS, s uintptr, p uintptr, base int32) (r Tintmax_t) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtoll(tls, s, p, base) +} + +func Xstrtoumax(tls *TLS, s uintptr, p uintptr, base int32) (r Tuintmax_t) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtoull(tls, s, p, base) +} + +func X__strtoimax_internal(tls *TLS, s uintptr, p uintptr, base int32) (r Tintmax_t) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtoimax(tls, s, p, base) +} + +func X__strtol_internal(tls *TLS, s uintptr, p uintptr, base int32) (r int64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtol(tls, s, p, base) +} + +func X__strtoll_internal(tls *TLS, s uintptr, p uintptr, base int32) (r int64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtoll(tls, s, p, base) +} + +func X__strtoul_internal(tls *TLS, s uintptr, p uintptr, base int32) (r uint64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtoul(tls, s, p, base) +} + +func X__strtoull_internal(tls *TLS, s uintptr, p uintptr, base int32) (r uint64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtoull(tls, s, p, base) +} + +func X__strtoumax_internal(tls *TLS, s uintptr, p uintptr, base int32) (r Tuintmax_t) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtoumax(tls, s, p, base) +} + +/* This read function heavily cheats. It knows: + * (1) len will always be 1 + * (2) non-ascii characters don't matter */ + +func _do_read(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + var i Tsize_t + var wcs, v3, v4 uintptr + var v2 int32 + _, _, _, _, _ = i, wcs, v2, v3, v4 + wcs = (*TFILE)(unsafe.Pointer(f)).Fcookie + if !(**(**Twchar_t)(__ccgo_up(wcs)) != 0) { + wcs = __ccgo_ts + 1712 + } + i = uint64(0) + for { + if !(i < (*TFILE)(unsafe.Pointer(f)).Fbuf_size && **(**Twchar_t)(__ccgo_up(wcs + uintptr(i)*4)) != 0) { + break + } + if **(**Twchar_t)(__ccgo_up(wcs + uintptr(i)*4)) < int32(128) { + v2 = **(**Twchar_t)(__ccgo_up(wcs + uintptr(i)*4)) + } else { + v2 = int32('@') + } + **(**uint8)(__ccgo_up((*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr(i))) = Uint8FromInt32(v2) + goto _1 + _1: + ; + i = i + 1 + } + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Frend = (*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr(i) + (*TFILE)(unsafe.Pointer(f)).Fcookie = wcs + uintptr(i)*4 + if i != 0 && len1 != 0 { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + **(**uint8)(__ccgo_up(buf)) = **(**uint8)(__ccgo_up(v3)) + return uint64(1) + } + return uint64(0) +} + +func _wcstox(tls *TLS, s uintptr, p uintptr, prec int32) (r float64) { + bp := tls.Alloc(304) + defer tls.Free(304) + var cnt Tsize_t + var t, v1, v2 uintptr + var y float64 + var _ /* buf at bp+0 */ [64]uint8 + var _ /* f at bp+64 */ TFILE + _, _, _, _, _ = cnt, t, y, v1, v2 + t = s + **(**TFILE)(__ccgo_up(bp + 64)) = TFILE{} + (**(**TFILE)(__ccgo_up(bp + 64))).Fflags = uint32(0) + v2 = bp + UintptrFromInt32(4) + (**(**TFILE)(__ccgo_up(bp + 64))).Fbuf = v2 + v1 = v2 + (**(**TFILE)(__ccgo_up(bp + 64))).Frend = v1 + (**(**TFILE)(__ccgo_up(bp + 64))).Frpos = v1 + (**(**TFILE)(__ccgo_up(bp + 64))).Fbuf_size = Uint64FromInt64(64) - Uint64FromInt32(4) + AtomicStorePInt32(bp+64+140, -int32(1)) + (**(**TFILE)(__ccgo_up(bp + 64))).Fread = __ccgo_fp(_do_read) + for Xiswspace(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(t)))) != 0 { + t += 4 + } + (**(**TFILE)(__ccgo_up(bp + 64))).Fcookie = t + X__shlim(tls, bp+64, int64(Int32FromInt32(0))) + y = X__floatscan(tls, bp+64, prec, int32(1)) + if p != 0 { + cnt = Uint64FromInt64((*TFILE)(unsafe.Pointer(bp+64)).Fshcnt + (int64((*TFILE)(unsafe.Pointer(bp+64)).Frpos) - int64((*TFILE)(unsafe.Pointer(bp+64)).Fbuf))) + if cnt != 0 { + v1 = t + uintptr(cnt)*4 + } else { + v1 = s + } + **(**uintptr)(__ccgo_up(p)) = v1 + } + return y +} + +func Xwcstof(tls *TLS, s uintptr, p uintptr) (r float32) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + return float32(_wcstox(tls, s, p, 0)) +} + +func Xwcstod(tls *TLS, s uintptr, p uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _wcstox(tls, s, p, int32(1)) +} + +func Xwcstold(tls *TLS, s uintptr, p uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _wcstox(tls, s, p, int32(2)) +} + +/* This read function heavily cheats. It knows: + * (1) len will always be 1 + * (2) non-ascii characters don't matter */ + +func _do_read1(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + var i Tsize_t + var wcs, v3, v4 uintptr + var v2 int32 + _, _, _, _, _ = i, wcs, v2, v3, v4 + wcs = (*TFILE)(unsafe.Pointer(f)).Fcookie + if !(**(**Twchar_t)(__ccgo_up(wcs)) != 0) { + wcs = __ccgo_ts + 1712 + } + i = uint64(0) + for { + if !(i < (*TFILE)(unsafe.Pointer(f)).Fbuf_size && **(**Twchar_t)(__ccgo_up(wcs + uintptr(i)*4)) != 0) { + break + } + if **(**Twchar_t)(__ccgo_up(wcs + uintptr(i)*4)) < int32(128) { + v2 = **(**Twchar_t)(__ccgo_up(wcs + uintptr(i)*4)) + } else { + v2 = int32('@') + } + **(**uint8)(__ccgo_up((*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr(i))) = Uint8FromInt32(v2) + goto _1 + _1: + ; + i = i + 1 + } + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Frend = (*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr(i) + (*TFILE)(unsafe.Pointer(f)).Fcookie = wcs + uintptr(i)*4 + if i != 0 && len1 != 0 { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + **(**uint8)(__ccgo_up(buf)) = **(**uint8)(__ccgo_up(v3)) + return uint64(1) + } + return uint64(0) +} + +func _wcstox1(tls *TLS, s uintptr, p uintptr, base int32, lim uint64) (r uint64) { + bp := tls.Alloc(304) + defer tls.Free(304) + var cnt Tsize_t + var t, v1, v2 uintptr + var y uint64 + var _ /* buf at bp+0 */ [64]uint8 + var _ /* f at bp+64 */ TFILE + _, _, _, _, _ = cnt, t, y, v1, v2 + t = s + **(**TFILE)(__ccgo_up(bp + 64)) = TFILE{} + (**(**TFILE)(__ccgo_up(bp + 64))).Fflags = uint32(0) + v2 = bp + UintptrFromInt32(4) + (**(**TFILE)(__ccgo_up(bp + 64))).Fbuf = v2 + v1 = v2 + (**(**TFILE)(__ccgo_up(bp + 64))).Frend = v1 + (**(**TFILE)(__ccgo_up(bp + 64))).Frpos = v1 + (**(**TFILE)(__ccgo_up(bp + 64))).Fbuf_size = Uint64FromInt64(64) - Uint64FromInt32(4) + AtomicStorePInt32(bp+64+140, -int32(1)) + (**(**TFILE)(__ccgo_up(bp + 64))).Fread = __ccgo_fp(_do_read1) + for Xiswspace(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(t)))) != 0 { + t += 4 + } + (**(**TFILE)(__ccgo_up(bp + 64))).Fcookie = t + X__shlim(tls, bp+64, int64(Int32FromInt32(0))) + y = X__intscan(tls, bp+64, Uint32FromInt32(base), int32(1), lim) + if p != 0 { + cnt = Uint64FromInt64((*TFILE)(unsafe.Pointer(bp+64)).Fshcnt + (int64((*TFILE)(unsafe.Pointer(bp+64)).Frpos) - int64((*TFILE)(unsafe.Pointer(bp+64)).Fbuf))) + if cnt != 0 { + v1 = t + uintptr(cnt)*4 + } else { + v1 = s + } + **(**uintptr)(__ccgo_up(p)) = v1 + } + return y +} + +func Xwcstoull(tls *TLS, s uintptr, p uintptr, base int32) (r uint64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _wcstox1(tls, s, p, base, Uint64FromUint64(2)*Uint64FromInt64(0x7fffffffffffffff)+Uint64FromInt32(1)) +} + +func Xwcstoll(tls *TLS, s uintptr, p uintptr, base int32) (r int64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Int64FromUint64(_wcstox1(tls, s, p, base, Uint64FromInt64(-Int64FromInt64(0x7fffffffffffffff)-Int64FromInt32(1)))) +} + +func Xwcstoul(tls *TLS, s uintptr, p uintptr, base int32) (r uint64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _wcstox1(tls, s, p, base, uint64(Uint64FromUint64(2)*Uint64FromInt64(0x7fffffffffffffff)+Uint64FromInt32(1))) +} + +func Xwcstol(tls *TLS, s uintptr, p uintptr, base int32) (r int64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Int64FromUint64(_wcstox1(tls, s, p, base, uint64(Uint64FromUint64(0)+Uint64FromInt64(-Int64FromInt64(0x7fffffffffffffff)-Int64FromInt32(1))))) +} + +func Xwcstoimax(tls *TLS, s uintptr, p uintptr, base int32) (r Tintmax_t) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwcstoll(tls, s, p, base) +} + +func Xwcstoumax(tls *TLS, s uintptr, p uintptr, base int32) (r Tuintmax_t) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwcstoull(tls, s, p, base) +} + +func Xbcmp(tls *TLS, s1 uintptr, s2 uintptr, n Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v s1=%v s2=%v n=%v, (%v:)", tls, s1, s2, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xmemcmp(tls, s1, s2, n) +} + +func Xbcopy(tls *TLS, s1 uintptr, s2 uintptr, n Tsize_t) { + if __ccgo_strace { + trc("tls=%v s1=%v s2=%v n=%v, (%v:)", tls, s1, s2, n, origin(2)) + } + Xmemmove(tls, s2, s1, n) +} + +func Xbzero(tls *TLS, s uintptr, n Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v, (%v:)", tls, s, n, origin(2)) + } + Xmemset(tls, s, 0, n) +} + +func Xexplicit_bzero(tls *TLS, d uintptr, n Tsize_t) { + if __ccgo_strace { + trc("tls=%v d=%v n=%v, (%v:)", tls, d, n, origin(2)) + } + d = Xmemset(tls, d, 0, n) +} + +func Xindex(tls *TLS, s uintptr, c int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrchr(tls, s, c) +} + +const ALIGN1 = -1 +const HIGHS = 0 +const ONES = 0 + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xmemccpy(tls *TLS, dest uintptr, src uintptr, c int32, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v c=%v n=%v, (%v:)", tls, dest, src, c, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var d, s, wd, ws uintptr + var k Tsize_t + var v2 uint8 + var v3 bool + _, _, _, _, _, _, _ = d, k, s, wd, ws, v2, v3 + d = dest + s = src + c = Int32FromUint8(Uint8FromInt32(c)) + if uint64(s)&(Uint64FromInt64(8)-Uint64FromInt32(1)) == uint64(d)&(Uint64FromInt64(8)-Uint64FromInt32(1)) { + for { + if v3 = uint64(s)&(Uint64FromInt64(8)-Uint64FromInt32(1)) != 0 && n != 0; v3 { + v2 = **(**uint8)(__ccgo_up(s)) + **(**uint8)(__ccgo_up(d)) = v2 + } + if !(v3 && Int32FromUint8(v2) != c) { + break + } + goto _1 + _1: + ; + n = n - 1 + s = s + 1 + d = d + 1 + } + if uint64(s)&(Uint64FromInt64(8)-Uint64FromInt32(1)) != 0 { + goto tail + } + k = Uint64FromInt32(-Int32FromInt32(1)) / Uint64FromInt32(UCHAR_MAX) * Uint64FromInt32(c) + wd = d + ws = s + for { + if !(n >= uint64(8) && !((**(**uint64)(__ccgo_up(ws))^k-Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)) & ^(**(**uint64)(__ccgo_up(ws))^k) & (Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)*Uint64FromInt32(Int32FromInt32(UCHAR_MAX)/Int32FromInt32(2)+Int32FromInt32(1))) != 0)) { + break + } + **(**uint64)(__ccgo_up(wd)) = **(**uint64)(__ccgo_up(ws)) + goto _4 + _4: + ; + n = n - uint64(8) + ws += 8 + wd += 8 + } + d = wd + s = ws + } + for { + if v3 = n != 0; v3 { + v2 = **(**uint8)(__ccgo_up(s)) + **(**uint8)(__ccgo_up(d)) = v2 + } + if !(v3 && Int32FromUint8(v2) != c) { + break + } + goto _5 + _5: + ; + n = n - 1 + s = s + 1 + d = d + 1 + } + goto tail +tail: + ; + if n != 0 { + return d + uintptr(1) + } + return uintptr(0) +} + +const SS = 0 + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xmemchr(tls *TLS, src uintptr, c int32, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v src=%v c=%v n=%v, (%v:)", tls, src, c, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var k Tsize_t + var s, w, v4 uintptr + _, _, _, _ = k, s, w, v4 + s = src + c = Int32FromUint8(Uint8FromInt32(c)) + for { + if !(uint64(s)&(Uint64FromInt64(8)-Uint64FromInt32(1)) != 0 && n != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(s))) != c) { + break + } + goto _1 + _1: + ; + s = s + 1 + n = n - 1 + } + if n != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(s))) != c { + k = Uint64FromInt32(-Int32FromInt32(1)) / Uint64FromInt32(UCHAR_MAX) * Uint64FromInt32(c) + w = s + for { + if !(n >= Uint64FromInt64(8) && !((**(**uint64)(__ccgo_up(w))^k-Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)) & ^(**(**uint64)(__ccgo_up(w))^k) & (Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)*Uint64FromInt32(Int32FromInt32(UCHAR_MAX)/Int32FromInt32(2)+Int32FromInt32(1))) != 0)) { + break + } + goto _2 + _2: + ; + w += 8 + n = n - Uint64FromInt64(8) + } + s = w + } + for { + if !(n != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(s))) != c) { + break + } + goto _3 + _3: + ; + s = s + 1 + n = n - 1 + } + if n != 0 { + v4 = s + } else { + v4 = uintptr(0) + } + return v4 +} + +func Xmemcmp(tls *TLS, vl uintptr, vr uintptr, n Tsize_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v vl=%v vr=%v n=%v, (%v:)", tls, vl, vr, n, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var l, r uintptr + var v2 int32 + _, _, _ = l, r, v2 + l = vl + r = vr + for { + if !(n != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(l))) == Int32FromUint8(**(**uint8)(__ccgo_up(r)))) { + break + } + goto _1 + _1: + ; + n = n - 1 + l = l + 1 + r = r + 1 + } + if n != 0 { + v2 = Int32FromUint8(**(**uint8)(__ccgo_up(l))) - Int32FromUint8(**(**uint8)(__ccgo_up(r))) + } else { + v2 = 0 + } + return v2 +} + +const LS = 0 +const RS = 0 + +func Xmemcpy(tls *TLS, dest uintptr, src uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v n=%v, (%v:)", tls, dest, src, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var d, s, v2, v3 uintptr + var w, x Tuint32_t + _, _, _, _, _, _ = d, s, w, x, v2, v3 + d = dest + s = src + for { + if !(uint64(s)%uint64(4) != 0 && n != 0) { + break + } + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + goto _1 + _1: + ; + n = n - 1 + } + if uint64(d)%uint64(4) == uint64(0) { + for { + if !(n >= uint64(16)) { + break + } + **(**uint32)(__ccgo_up(d + UintptrFromInt32(0))) = **(**uint32)(__ccgo_up(s + UintptrFromInt32(0))) + **(**uint32)(__ccgo_up(d + UintptrFromInt32(4))) = **(**uint32)(__ccgo_up(s + UintptrFromInt32(4))) + **(**uint32)(__ccgo_up(d + UintptrFromInt32(8))) = **(**uint32)(__ccgo_up(s + UintptrFromInt32(8))) + **(**uint32)(__ccgo_up(d + UintptrFromInt32(12))) = **(**uint32)(__ccgo_up(s + UintptrFromInt32(12))) + goto _4 + _4: + ; + s = s + uintptr(16) + d = d + uintptr(16) + n = n - uint64(16) + } + if n&uint64(8) != 0 { + **(**uint32)(__ccgo_up(d + UintptrFromInt32(0))) = **(**uint32)(__ccgo_up(s + UintptrFromInt32(0))) + **(**uint32)(__ccgo_up(d + UintptrFromInt32(4))) = **(**uint32)(__ccgo_up(s + UintptrFromInt32(4))) + d = d + uintptr(8) + s = s + uintptr(8) + } + if n&uint64(4) != 0 { + **(**uint32)(__ccgo_up(d + UintptrFromInt32(0))) = **(**uint32)(__ccgo_up(s + UintptrFromInt32(0))) + d = d + uintptr(4) + s = s + uintptr(4) + } + if n&uint64(2) != 0 { + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + } + if n&uint64(1) != 0 { + **(**uint8)(__ccgo_up(d)) = **(**uint8)(__ccgo_up(s)) + } + return dest + } + if n >= uint64(32) { + switch uint64(d) % Uint64FromInt32(4) { + case uint64(1): + w = **(**uint32)(__ccgo_up(s)) + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + n = n - uint64(3) + for { + if !(n >= uint64(17)) { + break + } + x = **(**uint32)(__ccgo_up(s + UintptrFromInt32(1))) + **(**uint32)(__ccgo_up(d + UintptrFromInt32(0))) = w>>Int32FromInt32(24) | x<>Int32FromInt32(24) | w<>Int32FromInt32(24) | x<>Int32FromInt32(24) | w<= uint64(18)) { + break + } + x = **(**uint32)(__ccgo_up(s + UintptrFromInt32(2))) + **(**uint32)(__ccgo_up(d + UintptrFromInt32(0))) = w>>Int32FromInt32(16) | x<>Int32FromInt32(16) | w<>Int32FromInt32(16) | x<>Int32FromInt32(16) | w<= uint64(19)) { + break + } + x = **(**uint32)(__ccgo_up(s + UintptrFromInt32(3))) + **(**uint32)(__ccgo_up(d + UintptrFromInt32(0))) = w>>Int32FromInt32(8) | x<>Int32FromInt32(8) | w<>Int32FromInt32(8) | x<>Int32FromInt32(8) | w< Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(jp+k)))) { + jp = jp + k + k = uint64(1) + p = jp - ip + } else { + v2 = jp + jp = jp + 1 + ip = v2 + v2 = Uint64FromInt32(1) + p = v2 + k = v2 + } + } + } + ms = ip + p0 = p + /* And with the opposite comparison */ + ip = Uint64FromInt32(-Int32FromInt32(1)) + jp = uint64(0) + v2 = Uint64FromInt32(1) + p = v2 + k = v2 + for jp+k < l { + if Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(ip+k)))) == Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(jp+k)))) { + if k == p { + jp = jp + p + k = uint64(1) + } else { + k = k + 1 + } + } else { + if Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(ip+k)))) < Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(jp+k)))) { + jp = jp + k + k = uint64(1) + p = jp - ip + } else { + v2 = jp + jp = jp + 1 + ip = v2 + v2 = Uint64FromInt32(1) + p = v2 + k = v2 + } + } + } + if ip+uint64(1) > ms+uint64(1) { + ms = ip + } else { + p = p0 + } + /* Periodic needle? */ + if Xmemcmp(tls, n, n+uintptr(p), ms+uint64(1)) != 0 { + mem0 = uint64(0) + if ms > l-ms-uint64(1) { + v8 = ms + } else { + v8 = l - ms - uint64(1) + } + p = v8 + uint64(1) + } else { + mem0 = l - p + } + mem = uint64(0) + /* Search loop */ + for { + /* If remainder of haystack is shorter than needle, done */ + if Uint64FromInt64(int64(z)-int64(h)) < l { + return uintptr(0) + } + /* Check last byte first; advance by shift on mismatch */ + if (**(**[4]Tsize_t)(__ccgo_up(bp)))[uint64(**(**uint8)(__ccgo_up(h + uintptr(l-uint64(1)))))/(Uint64FromInt32(8)*Uint64FromInt64(8))]&(Uint64FromInt32(1)<<(uint64(**(**uint8)(__ccgo_up(h + uintptr(l-uint64(1)))))%(Uint64FromInt32(8)*Uint64FromInt64(8)))) != 0 { + k = l - shift[**(**uint8)(__ccgo_up(h + uintptr(l-uint64(1))))] + if k != 0 { + if k < mem { + k = mem + } + h = h + uintptr(k) + mem = uint64(0) + goto _9 + } + } else { + h = h + uintptr(l) + mem = uint64(0) + goto _9 + } + /* Compare right half */ + if ms+uint64(1) > mem { + v8 = ms + uint64(1) + } else { + v8 = mem + } + k = v8 + for { + if !(k < l && Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(k)))) == Int32FromUint8(**(**uint8)(__ccgo_up(h + uintptr(k))))) { + break + } + goto _10 + _10: + ; + k = k + 1 + } + if k < l { + h = h + uintptr(k-ms) + mem = uint64(0) + goto _9 + } + /* Compare left half */ + k = ms + uint64(1) + for { + if !(k > mem && Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(k-uint64(1))))) == Int32FromUint8(**(**uint8)(__ccgo_up(h + uintptr(k-uint64(1)))))) { + break + } + goto _12 + _12: + ; + k = k - 1 + } + if k <= mem { + return h + } + h = h + uintptr(p) + mem = mem0 + goto _9 + _9: + } + return r +} + +func Xmemmem(tls *TLS, h0 uintptr, k Tsize_t, n0 uintptr, l Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v h0=%v k=%v n0=%v l=%v, (%v:)", tls, h0, k, n0, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + var h, n uintptr + _, _ = h, n + h = h0 + n = n0 + /* Return immediately on empty needle */ + if !(l != 0) { + return h + } + /* Return immediately when needle is longer than haystack */ + if k < l { + return uintptr(0) + } + /* Use faster algorithms for short needles */ + h = Xmemchr(tls, h0, Int32FromUint8(**(**uint8)(__ccgo_up(n))), k) + if !(h != 0) || l == uint64(1) { + return h + } + k = k - Uint64FromInt64(int64(h)-int64(h0)) + if k < l { + return uintptr(0) + } + if l == uint64(2) { + return _twobyte_memmem(tls, h, k, n) + } + if l == uint64(3) { + return _threebyte_memmem(tls, h, k, n) + } + if l == uint64(4) { + return _fourbyte_memmem(tls, h, k, n) + } + return _twoway_memmem(tls, h, h+uintptr(k), n, l) +} + +const WS = 0 + +type TWT = uint64 + +func Xmemmove(tls *TLS, dest uintptr, src uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v n=%v, (%v:)", tls, dest, src, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var d, s, v2, v3 uintptr + var v1 Tsize_t + _, _, _, _, _ = d, s, v1, v2, v3 + d = dest + s = src + if d == s { + return d + } + if uint64(s)-uint64(d)-n <= Uint64FromInt32(-Int32FromInt32(2))*n { + return Xmemcpy(tls, d, s, n) + } + if d < s { + if uint64(s)%Uint64FromInt64(8) == uint64(d)%Uint64FromInt64(8) { + for uint64(d)%Uint64FromInt64(8) != 0 { + v1 = n + n = n - 1 + if !(v1 != 0) { + return dest + } + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**int8)(__ccgo_up(v2)) = **(**int8)(__ccgo_up(v3)) + } + for { + if !(n >= Uint64FromInt64(8)) { + break + } + **(**TWT)(__ccgo_up(d)) = **(**TWT)(__ccgo_up(s)) + goto _4 + _4: + ; + n = n - Uint64FromInt64(8) + d = d + uintptr(Uint64FromInt64(8)) + s = s + uintptr(Uint64FromInt64(8)) + } + } + for { + if !(n != 0) { + break + } + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**int8)(__ccgo_up(v2)) = **(**int8)(__ccgo_up(v3)) + goto _5 + _5: + ; + n = n - 1 + } + } else { + if uint64(s)%Uint64FromInt64(8) == uint64(d)%Uint64FromInt64(8) { + for uint64(d+uintptr(n))%Uint64FromInt64(8) != 0 { + v1 = n + n = n - 1 + if !(v1 != 0) { + return dest + } + **(**int8)(__ccgo_up(d + uintptr(n))) = **(**int8)(__ccgo_up(s + uintptr(n))) + } + for n >= Uint64FromInt64(8) { + n = n - Uint64FromInt64(8) + **(**TWT)(__ccgo_up(d + uintptr(n))) = **(**TWT)(__ccgo_up(s + uintptr(n))) + } + } + for n != 0 { + n = n - 1 + **(**int8)(__ccgo_up(d + uintptr(n))) = **(**int8)(__ccgo_up(s + uintptr(n))) + } + } + return dest +} + +func Xmempcpy(tls *TLS, dest uintptr, src uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v n=%v, (%v:)", tls, dest, src, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xmemcpy(tls, dest, src, n) + uintptr(n) +} + +func X__memrchr(tls *TLS, m uintptr, c int32, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v m=%v c=%v n=%v, (%v:)", tls, m, c, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var s uintptr + var v1 Tsize_t + _, _ = s, v1 + s = m + c = Int32FromUint8(Uint8FromInt32(c)) + for { + v1 = n + n = n - 1 + if !(v1 != 0) { + break + } + if Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(n)))) == c { + return s + uintptr(n) + } + } + return uintptr(0) +} + +func Xmemrchr(tls *TLS, m uintptr, c int32, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v m=%v c=%v n=%v, (%v:)", tls, m, c, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__memrchr(tls, m, c, n) +} + +func Xmemset(tls *TLS, dest uintptr, c int32, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v dest=%v c=%v n=%v, (%v:)", tls, dest, c, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var c32 uint32 + var c64 uint64 + var k Tsize_t + var s uintptr + _, _, _, _ = c32, c64, k, s + s = dest + /* Fill head and tail with minimal branching. Each + * conditional ensures that all the subsequently used + * offsets are well-defined and in the dest region. */ + if !(n != 0) { + return dest + } + **(**uint8)(__ccgo_up(s)) = Uint8FromInt32(c) + **(**uint8)(__ccgo_up(s + uintptr(n-uint64(1)))) = Uint8FromInt32(c) + if n <= uint64(2) { + return dest + } + **(**uint8)(__ccgo_up(s + 1)) = Uint8FromInt32(c) + **(**uint8)(__ccgo_up(s + 2)) = Uint8FromInt32(c) + **(**uint8)(__ccgo_up(s + uintptr(n-uint64(2)))) = Uint8FromInt32(c) + **(**uint8)(__ccgo_up(s + uintptr(n-uint64(3)))) = Uint8FromInt32(c) + if n <= uint64(6) { + return dest + } + **(**uint8)(__ccgo_up(s + 3)) = Uint8FromInt32(c) + **(**uint8)(__ccgo_up(s + uintptr(n-uint64(4)))) = Uint8FromInt32(c) + if n <= uint64(8) { + return dest + } + /* Advance pointer to align it at a 4-byte boundary, + * and truncate n to a multiple of 4. The previous code + * already took care of any head/tail that get cut off + * by the alignment. */ + k = -uint64(s) & uint64(3) + s = s + uintptr(k) + n = n - k + n = n & Uint64FromInt32(-Int32FromInt32(4)) + c32 = Uint32FromInt32(-Int32FromInt32(1)) / Uint32FromInt32(255) * uint32(Uint8FromInt32(c)) + /* In preparation to copy 32 bytes at a time, aligned on + * an 8-byte bounary, fill head/tail up to 28 bytes each. + * As in the initial byte-based head/tail fill, each + * conditional below ensures that the subsequent offsets + * are valid (e.g. !(n<=24) implies n>=28). */ + **(**uint32)(__ccgo_up(s + UintptrFromInt32(0))) = c32 + **(**uint32)(__ccgo_up(s + uintptr(n) - UintptrFromInt32(4))) = c32 + if n <= uint64(8) { + return dest + } + **(**uint32)(__ccgo_up(s + UintptrFromInt32(4))) = c32 + **(**uint32)(__ccgo_up(s + UintptrFromInt32(8))) = c32 + **(**uint32)(__ccgo_up(s + uintptr(n) - UintptrFromInt32(12))) = c32 + **(**uint32)(__ccgo_up(s + uintptr(n) - UintptrFromInt32(8))) = c32 + if n <= uint64(24) { + return dest + } + **(**uint32)(__ccgo_up(s + UintptrFromInt32(12))) = c32 + **(**uint32)(__ccgo_up(s + UintptrFromInt32(16))) = c32 + **(**uint32)(__ccgo_up(s + UintptrFromInt32(20))) = c32 + **(**uint32)(__ccgo_up(s + UintptrFromInt32(24))) = c32 + **(**uint32)(__ccgo_up(s + uintptr(n) - UintptrFromInt32(28))) = c32 + **(**uint32)(__ccgo_up(s + uintptr(n) - UintptrFromInt32(24))) = c32 + **(**uint32)(__ccgo_up(s + uintptr(n) - UintptrFromInt32(20))) = c32 + **(**uint32)(__ccgo_up(s + uintptr(n) - UintptrFromInt32(16))) = c32 + /* Align to a multiple of 8 so we can fill 64 bits at a time, + * and avoid writing the same bytes twice as much as is + * practical without introducing additional branching. */ + k = uint64(24) + uint64(s)&uint64(4) + s = s + uintptr(k) + n = n - k + /* If this loop is reached, 28 tail bytes have already been + * filled, so any remainder when n drops below 32 can be + * safely ignored. */ + c64 = uint64(c32) | uint64(c32)<= uint64(32)) { + break + } + **(**uint64)(__ccgo_up(s + UintptrFromInt32(0))) = c64 + **(**uint64)(__ccgo_up(s + UintptrFromInt32(8))) = c64 + **(**uint64)(__ccgo_up(s + UintptrFromInt32(16))) = c64 + **(**uint64)(__ccgo_up(s + UintptrFromInt32(24))) = c64 + goto _1 + _1: + ; + n = n - uint64(32) + s = s + uintptr(32) + } + return dest +} + +func Xrindex(tls *TLS, s uintptr, c int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrrchr(tls, s, c) +} + +const ALIGN2 = 0 + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func X__stpcpy(tls *TLS, d uintptr, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v, (%v:)", tls, d, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var wd, ws, v4, v5 uintptr + var v2 int8 + _, _, _, _, _ = wd, ws, v2, v4, v5 + if uint64(s)%Uint64FromInt64(8) == uint64(d)%Uint64FromInt64(8) { + for { + if !(uint64(s)%Uint64FromInt64(8) != 0) { + break + } + v2 = **(**int8)(__ccgo_up(s)) + **(**int8)(__ccgo_up(d)) = v2 + if !(v2 != 0) { + return d + } + goto _1 + _1: + ; + s = s + 1 + d = d + 1 + } + wd = d + ws = s + for { + if !!((**(**uint64)(__ccgo_up(ws))-Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)) & ^**(**uint64)(__ccgo_up(ws)) & (Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)*Uint64FromInt32(Int32FromInt32(UCHAR_MAX)/Int32FromInt32(2)+Int32FromInt32(1))) != 0) { + break + } + goto _3 + _3: + ; + v4 = wd + wd += 8 + v5 = ws + ws += 8 + **(**uint64)(__ccgo_up(v4)) = **(**uint64)(__ccgo_up(v5)) + } + d = wd + s = ws + } + for { + v2 = **(**int8)(__ccgo_up(s)) + **(**int8)(__ccgo_up(d)) = v2 + if !(v2 != 0) { + break + } + goto _6 + _6: + ; + s = s + 1 + d = d + 1 + } + return d +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xstpcpy(tls *TLS, d uintptr, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v, (%v:)", tls, d, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__stpcpy(tls, d, s) +} + +const ALIGN3 = -1 + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func X__stpncpy(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var wd, ws uintptr + var v2 int8 + var v3 bool + _, _, _, _ = wd, ws, v2, v3 + if uint64(s)&(Uint64FromInt64(8)-Uint64FromInt32(1)) == uint64(d)&(Uint64FromInt64(8)-Uint64FromInt32(1)) { + for { + if v3 = uint64(s)&(Uint64FromInt64(8)-Uint64FromInt32(1)) != 0 && n != 0; v3 { + v2 = **(**int8)(__ccgo_up(s)) + **(**int8)(__ccgo_up(d)) = v2 + } + if !(v3 && v2 != 0) { + break + } + goto _1 + _1: + ; + n = n - 1 + s = s + 1 + d = d + 1 + } + if !(n != 0) || !(**(**int8)(__ccgo_up(s)) != 0) { + goto tail + } + wd = d + ws = s + for { + if !(n >= uint64(8) && !((**(**uint64)(__ccgo_up(ws))-Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)) & ^**(**uint64)(__ccgo_up(ws)) & (Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)*Uint64FromInt32(Int32FromInt32(UCHAR_MAX)/Int32FromInt32(2)+Int32FromInt32(1))) != 0)) { + break + } + **(**uint64)(__ccgo_up(wd)) = **(**uint64)(__ccgo_up(ws)) + goto _4 + _4: + ; + n = n - uint64(8) + ws += 8 + wd += 8 + } + d = wd + s = ws + } + for { + if v3 = n != 0; v3 { + v2 = **(**int8)(__ccgo_up(s)) + **(**int8)(__ccgo_up(d)) = v2 + } + if !(v3 && v2 != 0) { + break + } + goto _5 + _5: + ; + n = n - 1 + s = s + 1 + d = d + 1 + } + goto tail +tail: + ; + Xmemset(tls, d, 0, n) + return d +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xstpncpy(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__stpncpy(tls, d, s, n) +} + +func Xstrcasecmp(tls *TLS, _l uintptr, _r uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v _l=%v _r=%v, (%v:)", tls, _l, _r, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var l, r uintptr + _, _ = l, r + l = _l + r = _r + for { + if !(**(**uint8)(__ccgo_up(l)) != 0 && **(**uint8)(__ccgo_up(r)) != 0 && (Int32FromUint8(**(**uint8)(__ccgo_up(l))) == Int32FromUint8(**(**uint8)(__ccgo_up(r))) || Xtolower(tls, Int32FromUint8(**(**uint8)(__ccgo_up(l)))) == Xtolower(tls, Int32FromUint8(**(**uint8)(__ccgo_up(r)))))) { + break + } + goto _1 + _1: + ; + l = l + 1 + r = r + 1 + } + return Xtolower(tls, Int32FromUint8(**(**uint8)(__ccgo_up(l)))) - Xtolower(tls, Int32FromUint8(**(**uint8)(__ccgo_up(r)))) +} + +func X__strcasecmp_l(tls *TLS, l uintptr, r uintptr, loc Tlocale_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v loc=%v, (%v:)", tls, l, r, loc, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return Xstrcasecmp(tls, l, r) +} + +func Xstrcasecmp_l(tls *TLS, l uintptr, r uintptr, loc Tlocale_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v loc=%v, (%v:)", tls, l, r, loc, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return X__strcasecmp_l(tls, l, r, loc) +} + +func Xstrcasestr(tls *TLS, h uintptr, n uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v h=%v n=%v, (%v:)", tls, h, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l Tsize_t + _ = l + l = _strlen(tls, n) + for { + if !(**(**int8)(__ccgo_up(h)) != 0) { + break + } + if !(Xstrncasecmp(tls, h, n, l) != 0) { + return h + } + goto _1 + _1: + ; + h = h + 1 + } + return uintptr(0) +} + +func Xstrcat(tls *TLS, dest uintptr, src uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v, (%v:)", tls, dest, src, origin(2)) + defer func() { trc("-> %v", r) }() + } + Xstrcpy(tls, dest+uintptr(_strlen(tls, dest)), src) + return dest +} + +func Xstrchr(tls *TLS, s uintptr, c int32) (r1 uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v1 uintptr + _, _ = r, v1 + r = X__strchrnul(tls, s, c) + if Int32FromUint8(**(**uint8)(__ccgo_up(r))) == Int32FromUint8(Uint8FromInt32(c)) { + v1 = r + } else { + v1 = uintptr(0) + } + return v1 +} + +const ALIGN4 = 0 + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func X__strchrnul(tls *TLS, s uintptr, c int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + var k Tsize_t + var w uintptr + _, _ = k, w + c = Int32FromUint8(Uint8FromInt32(c)) + if !(c != 0) { + return s + uintptr(_strlen(tls, s)) + } + for { + if !(uint64(s)%Uint64FromInt64(8) != 0) { + break + } + if !(**(**int8)(__ccgo_up(s)) != 0) || Int32FromUint8(**(**uint8)(__ccgo_up(s))) == c { + return s + } + goto _1 + _1: + ; + s = s + 1 + } + k = Uint64FromInt32(-Int32FromInt32(1)) / Uint64FromInt32(UCHAR_MAX) * Uint64FromInt32(c) + w = s + for { + if !(!((**(**uint64)(__ccgo_up(w))-Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)) & ^**(**uint64)(__ccgo_up(w)) & (Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)*Uint64FromInt32(Int32FromInt32(UCHAR_MAX)/Int32FromInt32(2)+Int32FromInt32(1))) != 0) && !((**(**uint64)(__ccgo_up(w))^k-Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)) & ^(**(**uint64)(__ccgo_up(w))^k) & (Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)*Uint64FromInt32(Int32FromInt32(UCHAR_MAX)/Int32FromInt32(2)+Int32FromInt32(1))) != 0)) { + break + } + goto _2 + _2: + ; + w += 8 + } + s = w + for { + if !(**(**int8)(__ccgo_up(s)) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(s))) != c) { + break + } + goto _3 + _3: + ; + s = s + 1 + } + return s +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xstrchrnul(tls *TLS, s uintptr, c int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__strchrnul(tls, s, c) +} + +func Xstrcmp(tls *TLS, l uintptr, r uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v, (%v:)", tls, l, r, origin(2)) + defer func() { trc("-> %v", r1) }() + } + for { + if !(int32(**(**int8)(__ccgo_up(l))) == int32(**(**int8)(__ccgo_up(r))) && **(**int8)(__ccgo_up(l)) != 0) { + break + } + goto _1 + _1: + ; + l = l + 1 + r = r + 1 + } + return Int32FromUint8(**(**uint8)(__ccgo_up(l))) - Int32FromUint8(**(**uint8)(__ccgo_up(r))) +} + +func Xstrcpy(tls *TLS, dest uintptr, src uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v, (%v:)", tls, dest, src, origin(2)) + defer func() { trc("-> %v", r) }() + } + X__stpcpy(tls, dest, src) + return dest +} + +func Xstrcspn(tls *TLS, s uintptr, c uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var a, v2 uintptr + var v3 bool + var _ /* byteset at bp+0 */ [4]Tsize_t + _, _, _ = a, v2, v3 + a = s + if !(**(**int8)(__ccgo_up(c)) != 0) || !(**(**int8)(__ccgo_up(c + 1)) != 0) { + return Uint64FromInt64(int64(X__strchrnul(tls, s, int32(**(**int8)(__ccgo_up(c))))) - int64(a)) + } + Xmemset(tls, bp, 0, uint64(32)) + for { + if v3 = **(**int8)(__ccgo_up(c)) != 0; v3 { + v2 = bp + uintptr(uint64(**(**uint8)(__ccgo_up(c)))/(Uint64FromInt32(8)*Uint64FromInt64(8)))*8 + *(*Tsize_t)(unsafe.Pointer(v2)) |= Uint64FromInt32(1) << (uint64(**(**uint8)(__ccgo_up(c))) % (Uint64FromInt32(8) * Uint64FromInt64(8))) + } + if !(v3 && *(*Tsize_t)(unsafe.Pointer(v2)) != 0) { + break + } + goto _1 + _1: + ; + c = c + 1 + } + for { + if !(**(**int8)(__ccgo_up(s)) != 0 && !((**(**[4]Tsize_t)(__ccgo_up(bp)))[uint64(**(**uint8)(__ccgo_up(s)))/(Uint64FromInt32(8)*Uint64FromInt64(8))]&(Uint64FromInt32(1)<<(uint64(**(**uint8)(__ccgo_up(s)))%(Uint64FromInt32(8)*Uint64FromInt64(8)))) != 0)) { + break + } + goto _4 + _4: + ; + s = s + 1 + } + return Uint64FromInt64(int64(s) - int64(a)) +} + +func Xstrdup(tls *TLS, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var d uintptr + var l Tsize_t + _, _ = d, l + l = _strlen(tls, s) + d = Xmalloc(tls, l+uint64(1)) + if !(d != 0) { + return UintptrFromInt32(0) + } + return Xmemcpy(tls, d, s, l+uint64(1)) +} + +func Xstrerror_r(tls *TLS, err int32, buf uintptr, buflen Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v err=%v buf=%v buflen=%v, (%v:)", tls, err, buf, buflen, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l Tsize_t + var msg uintptr + _, _ = l, msg + msg = Xstrerror(tls, err) + l = _strlen(tls, msg) + if l >= buflen { + if buflen != 0 { + Xmemcpy(tls, buf, msg, buflen-uint64(1)) + **(**int8)(__ccgo_up(buf + uintptr(buflen-uint64(1)))) = 0 + } + return int32(ERANGE) + } + Xmemcpy(tls, buf, msg, l+uint64(1)) + return 0 +} + +func X__xpg_strerror_r(tls *TLS, err int32, buf uintptr, buflen Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v err=%v buf=%v buflen=%v, (%v:)", tls, err, buf, buflen, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrerror_r(tls, err, buf, buflen) +} + +func Xstrlcat(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l Tsize_t + _ = l + l = Xstrnlen(tls, d, n) + if l == n { + return l + _strlen(tls, s) + } + return l + Xstrlcpy(tls, d+uintptr(l), s, n-l) +} + +const ALIGN5 = -1 + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xstrlcpy(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var d0, wd, ws uintptr + var v1 Tsize_t + var v3 int8 + var v4 bool + _, _, _, _, _, _ = d0, wd, ws, v1, v3, v4 + d0 = d + v1 = n + n = n - 1 + if !(v1 != 0) { + goto finish + } + if uint64(s)&(Uint64FromInt64(8)-Uint64FromInt32(1)) == uint64(d)&(Uint64FromInt64(8)-Uint64FromInt32(1)) { + for { + if v4 = uint64(s)&(Uint64FromInt64(8)-Uint64FromInt32(1)) != 0 && n != 0; v4 { + v3 = **(**int8)(__ccgo_up(s)) + **(**int8)(__ccgo_up(d)) = v3 + } + if !(v4 && v3 != 0) { + break + } + goto _2 + _2: + ; + n = n - 1 + s = s + 1 + d = d + 1 + } + if n != 0 && **(**int8)(__ccgo_up(s)) != 0 { + wd = d + ws = s + for { + if !(n >= uint64(8) && !((**(**uint64)(__ccgo_up(ws))-Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)) & ^**(**uint64)(__ccgo_up(ws)) & (Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)*Uint64FromInt32(Int32FromInt32(UCHAR_MAX)/Int32FromInt32(2)+Int32FromInt32(1))) != 0)) { + break + } + **(**Tsize_t)(__ccgo_up(wd)) = **(**uint64)(__ccgo_up(ws)) + goto _5 + _5: + ; + n = n - uint64(8) + ws += 8 + wd += 8 + } + d = wd + s = ws + } + } + for { + if v4 = n != 0; v4 { + v3 = **(**int8)(__ccgo_up(s)) + **(**int8)(__ccgo_up(d)) = v3 + } + if !(v4 && v3 != 0) { + break + } + goto _6 + _6: + ; + n = n - 1 + s = s + 1 + d = d + 1 + } + **(**int8)(__ccgo_up(d)) = 0 + goto finish +finish: + ; + return Uint64FromInt64(int64(d)-int64(d0)) + _strlen(tls, s) + return r +} + +const ALIGN6 = 0 + +func Xstrncasecmp(tls *TLS, _l uintptr, _r uintptr, n Tsize_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v _l=%v _r=%v n=%v, (%v:)", tls, _l, _r, n, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var l, r uintptr + var v1 Tsize_t + _, _, _ = l, r, v1 + l = _l + r = _r + v1 = n + n = n - 1 + if !(v1 != 0) { + return 0 + } + for { + if !(**(**uint8)(__ccgo_up(l)) != 0 && **(**uint8)(__ccgo_up(r)) != 0 && n != 0 && (Int32FromUint8(**(**uint8)(__ccgo_up(l))) == Int32FromUint8(**(**uint8)(__ccgo_up(r))) || Xtolower(tls, Int32FromUint8(**(**uint8)(__ccgo_up(l)))) == Xtolower(tls, Int32FromUint8(**(**uint8)(__ccgo_up(r)))))) { + break + } + goto _2 + _2: + ; + l = l + 1 + r = r + 1 + n = n - 1 + } + return Xtolower(tls, Int32FromUint8(**(**uint8)(__ccgo_up(l)))) - Xtolower(tls, Int32FromUint8(**(**uint8)(__ccgo_up(r)))) +} + +func X__strncasecmp_l(tls *TLS, l uintptr, r uintptr, n Tsize_t, loc Tlocale_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v n=%v loc=%v, (%v:)", tls, l, r, n, loc, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return Xstrncasecmp(tls, l, r, n) +} + +func Xstrncasecmp_l(tls *TLS, l uintptr, r uintptr, n Tsize_t, loc Tlocale_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v n=%v loc=%v, (%v:)", tls, l, r, n, loc, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return X__strncasecmp_l(tls, l, r, n, loc) +} + +func Xstrncat(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, v1, v2 uintptr + _, _, _ = a, v1, v2 + a = d + d = d + uintptr(_strlen(tls, d)) + for n != 0 && **(**int8)(__ccgo_up(s)) != 0 { + n = n - 1 + v1 = d + d = d + 1 + v2 = s + s = s + 1 + **(**int8)(__ccgo_up(v1)) = **(**int8)(__ccgo_up(v2)) + } + v1 = d + d = d + 1 + **(**int8)(__ccgo_up(v1)) = 0 + return a +} + +func Xstrncmp(tls *TLS, _l uintptr, _r uintptr, n Tsize_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v _l=%v _r=%v n=%v, (%v:)", tls, _l, _r, n, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var l, r uintptr + var v1 Tsize_t + _, _, _ = l, r, v1 + l = _l + r = _r + v1 = n + n = n - 1 + if !(v1 != 0) { + return 0 + } + for { + if !(**(**uint8)(__ccgo_up(l)) != 0 && **(**uint8)(__ccgo_up(r)) != 0 && n != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(l))) == Int32FromUint8(**(**uint8)(__ccgo_up(r)))) { + break + } + goto _2 + _2: + ; + l = l + 1 + r = r + 1 + n = n - 1 + } + return Int32FromUint8(**(**uint8)(__ccgo_up(l))) - Int32FromUint8(**(**uint8)(__ccgo_up(r))) +} + +func Xstrncpy(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + X__stpncpy(tls, d, s, n) + return d +} + +func Xstrndup(tls *TLS, s uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v, (%v:)", tls, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var d uintptr + var l Tsize_t + _, _ = d, l + l = Xstrnlen(tls, s, n) + d = Xmalloc(tls, l+uint64(1)) + if !(d != 0) { + return UintptrFromInt32(0) + } + Xmemcpy(tls, d, s, l) + **(**int8)(__ccgo_up(d + uintptr(l))) = 0 + return d +} + +func Xstrnlen(tls *TLS, s uintptr, n Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v, (%v:)", tls, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var p uintptr + var v1 uint64 + _, _ = p, v1 + p = Xmemchr(tls, s, 0, n) + if p != 0 { + v1 = Uint64FromInt64(int64(p) - int64(s)) + } else { + v1 = n + } + return v1 +} + +func Xstrpbrk(tls *TLS, s uintptr, b uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v b=%v, (%v:)", tls, s, b, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 uintptr + _ = v1 + s = s + uintptr(Xstrcspn(tls, s, b)) + if **(**int8)(__ccgo_up(s)) != 0 { + v1 = s + } else { + v1 = uintptr(0) + } + return v1 +} + +func Xstrrchr(tls *TLS, s uintptr, c int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__memrchr(tls, s, c, _strlen(tls, s)+uint64(1)) +} + +func Xstrsep(tls *TLS, str uintptr, sep uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v str=%v sep=%v, (%v:)", tls, str, sep, origin(2)) + defer func() { trc("-> %v", r) }() + } + var end, s, v1 uintptr + _, _, _ = end, s, v1 + s = **(**uintptr)(__ccgo_up(str)) + if !(s != 0) { + return UintptrFromInt32(0) + } + end = s + uintptr(Xstrcspn(tls, s, sep)) + if **(**int8)(__ccgo_up(end)) != 0 { + v1 = end + end = end + 1 + **(**int8)(__ccgo_up(v1)) = 0 + } else { + end = uintptr(0) + } + **(**uintptr)(__ccgo_up(str)) = end + return s +} + +var _strings = [671]int8{'U', 'n', 'k', 'n', 'o', 'w', 'n', ' ', 's', 'i', 'g', 'n', 'a', 'l', 0, 'H', 'a', 'n', 'g', 'u', 'p', 0, 'I', 'n', 't', 'e', 'r', 'r', 'u', 'p', 't', 0, 'Q', 'u', 'i', 't', 0, 'I', 'l', 'l', 'e', 'g', 'a', 'l', ' ', 'i', 'n', 's', 't', 'r', 'u', 'c', 't', 'i', 'o', 'n', 0, 'T', 'r', 'a', 'c', 'e', '/', 'b', 'r', 'e', 'a', 'k', 'p', 'o', 'i', 'n', 't', ' ', 't', 'r', 'a', 'p', 0, 'A', 'b', 'o', 'r', 't', 'e', 'd', 0, 'B', 'u', 's', ' ', 'e', 'r', 'r', 'o', 'r', 0, 'A', 'r', 'i', 't', 'h', 'm', 'e', 't', 'i', 'c', ' ', 'e', 'x', 'c', 'e', 'p', 't', 'i', 'o', 'n', 0, 'K', 'i', 'l', 'l', 'e', 'd', 0, 'U', 's', 'e', 'r', ' ', 'd', 'e', 'f', 'i', 'n', 'e', 'd', ' ', 's', 'i', 'g', 'n', 'a', 'l', ' ', '1', 0, 'S', 'e', 'g', 'm', 'e', 'n', 't', 'a', 't', 'i', 'o', 'n', ' ', 'f', 'a', 'u', 'l', 't', 0, 'U', 's', 'e', 'r', ' ', 'd', 'e', 'f', 'i', 'n', 'e', 'd', ' ', 's', 'i', 'g', 'n', 'a', 'l', ' ', '2', 0, 'B', 'r', 'o', 'k', 'e', 'n', ' ', 'p', 'i', 'p', 'e', 0, 'A', 'l', 'a', 'r', 'm', ' ', 'c', 'l', 'o', 'c', 'k', 0, 'T', 'e', 'r', 'm', 'i', 'n', 'a', 't', 'e', 'd', 0, 'S', 't', 'a', 'c', 'k', ' ', 'f', 'a', 'u', 'l', 't', 0, 'C', 'h', 'i', 'l', 'd', ' ', 'p', 'r', 'o', 'c', 'e', 's', 's', ' ', 's', 't', 'a', 't', 'u', 's', 0, 'C', 'o', 'n', 't', 'i', 'n', 'u', 'e', 'd', 0, 'S', 't', 'o', 'p', 'p', 'e', 'd', ' ', '(', 's', 'i', 'g', 'n', 'a', 'l', ')', 0, 'S', 't', 'o', 'p', 'p', 'e', 'd', 0, 'S', 't', 'o', 'p', 'p', 'e', 'd', ' ', '(', 't', 't', 'y', ' ', 'i', 'n', 'p', 'u', 't', ')', 0, 'S', 't', 'o', 'p', 'p', 'e', 'd', ' ', '(', 't', 't', 'y', ' ', 'o', 'u', 't', 'p', 'u', 't', ')', 0, 'U', 'r', 'g', 'e', 'n', 't', ' ', 'I', '/', 'O', ' ', 'c', 'o', 'n', 'd', 'i', 't', 'i', 'o', 'n', 0, 'C', 'P', 'U', ' ', 't', 'i', 'm', 'e', ' ', 'l', 'i', 'm', 'i', 't', ' ', 'e', 'x', 'c', 'e', 'e', 'd', 'e', 'd', 0, 'F', 'i', 'l', 'e', ' ', 's', 'i', 'z', 'e', ' ', 'l', 'i', 'm', 'i', 't', ' ', 'e', 'x', 'c', 'e', 'e', 'd', 'e', 'd', 0, 'V', 'i', 'r', 't', 'u', 'a', 'l', ' ', 't', 'i', 'm', 'e', 'r', ' ', 'e', 'x', 'p', 'i', 'r', 'e', 'd', 0, 'P', 'r', 'o', 'f', 'i', 'l', 'i', 'n', 'g', ' ', 't', 'i', 'm', 'e', 'r', ' ', 'e', 'x', 'p', 'i', 'r', 'e', 'd', 0, 'W', 'i', 'n', 'd', 'o', 'w', ' ', 'c', 'h', 'a', 'n', 'g', 'e', 'd', 0, 'I', '/', 'O', ' ', 'p', 'o', 's', 's', 'i', 'b', 'l', 'e', 0, 'P', 'o', 'w', 'e', 'r', ' ', 'f', 'a', 'i', 'l', 'u', 'r', 'e', 0, 'B', 'a', 'd', ' ', 's', 'y', 's', 't', 'e', 'm', ' ', 'c', 'a', 'l', 'l', 0, 'R', 'T', '3', '2', 0, 'R', 'T', '3', '3', 0, 'R', 'T', '3', '4', 0, 'R', 'T', '3', '5', 0, 'R', 'T', '3', '6', 0, 'R', 'T', '3', '7', 0, 'R', 'T', '3', '8', 0, 'R', 'T', '3', '9', 0, 'R', 'T', '4', '0', 0, 'R', 'T', '4', '1', 0, 'R', 'T', '4', '2', 0, 'R', 'T', '4', '3', 0, 'R', 'T', '4', '4', 0, 'R', 'T', '4', '5', 0, 'R', 'T', '4', '6', 0, 'R', 'T', '4', '7', 0, 'R', 'T', '4', '8', 0, 'R', 'T', '4', '9', 0, 'R', 'T', '5', '0', 0, 'R', 'T', '5', '1', 0, 'R', 'T', '5', '2', 0, 'R', 'T', '5', '3', 0, 'R', 'T', '5', '4', 0, 'R', 'T', '5', '5', 0, 'R', 'T', '5', '6', 0, 'R', 'T', '5', '7', 0, 'R', 'T', '5', '8', 0, 'R', 'T', '5', '9', 0, 'R', 'T', '6', '0', 0, 'R', 'T', '6', '1', 0, 'R', 'T', '6', '2', 0, 'R', 'T', '6', '3', 0, 'R', 'T', '6', '4'} + +func Xstrsignal(tls *TLS, signum int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v signum=%v, (%v:)", tls, signum, origin(2)) + defer func() { trc("-> %v", r) }() + } + var s uintptr + var v2 int32 + _, _ = s, v2 + s = uintptr(unsafe.Pointer(&_strings)) + signum = signum + if Uint32FromInt32(signum)-uint32(1) >= Uint32FromInt32(Int32FromInt32(_NSIG)-Int32FromInt32(1)) { + signum = 0 + } + for { + v2 = signum + signum = signum - 1 + if !(v2 != 0) { + break + } + for { + if !(**(**int8)(__ccgo_up(s)) != 0) { + break + } + goto _3 + _3: + ; + s = s + 1 + } + goto _1 + _1: + ; + s = s + 1 + } + return X__lctrans_cur(tls, s) +} + +func Xstrspn(tls *TLS, s uintptr, c uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var a, v3 uintptr + var v4 bool + var _ /* byteset at bp+0 */ [4]Tsize_t + _, _, _ = a, v3, v4 + a = s + **(**[4]Tsize_t)(__ccgo_up(bp)) = [4]Tsize_t{} + if !(**(**int8)(__ccgo_up(c)) != 0) { + return uint64(0) + } + if !(**(**int8)(__ccgo_up(c + 1)) != 0) { + for { + if !(int32(**(**int8)(__ccgo_up(s))) == int32(**(**int8)(__ccgo_up(c)))) { + break + } + goto _1 + _1: + ; + s = s + 1 + } + return Uint64FromInt64(int64(s) - int64(a)) + } + for { + if v4 = **(**int8)(__ccgo_up(c)) != 0; v4 { + v3 = bp + uintptr(uint64(**(**uint8)(__ccgo_up(c)))/(Uint64FromInt32(8)*Uint64FromInt64(8)))*8 + *(*Tsize_t)(unsafe.Pointer(v3)) |= Uint64FromInt32(1) << (uint64(**(**uint8)(__ccgo_up(c))) % (Uint64FromInt32(8) * Uint64FromInt64(8))) + } + if !(v4 && *(*Tsize_t)(unsafe.Pointer(v3)) != 0) { + break + } + goto _2 + _2: + ; + c = c + 1 + } + for { + if !(**(**int8)(__ccgo_up(s)) != 0 && (**(**[4]Tsize_t)(__ccgo_up(bp)))[uint64(**(**uint8)(__ccgo_up(s)))/(Uint64FromInt32(8)*Uint64FromInt64(8))]&(Uint64FromInt32(1)<<(uint64(**(**uint8)(__ccgo_up(s)))%(Uint64FromInt32(8)*Uint64FromInt64(8)))) != 0) { + break + } + goto _5 + _5: + ; + s = s + 1 + } + return Uint64FromInt64(int64(s) - int64(a)) +} + +func _twobyte_strstr(tls *TLS, h uintptr, n uintptr) (r uintptr) { + var hw, nw Tuint16_t + var v2 uintptr + _, _, _ = hw, nw, v2 + nw = Uint16FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(n)))< Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(jp+k)))) { + jp = jp + k + k = uint64(1) + p = jp - ip + } else { + v2 = jp + jp = jp + 1 + ip = v2 + v2 = Uint64FromInt32(1) + p = v2 + k = v2 + } + } + } + ms = ip + p0 = p + /* And with the opposite comparison */ + ip = Uint64FromInt32(-Int32FromInt32(1)) + jp = uint64(0) + v2 = Uint64FromInt32(1) + p = v2 + k = v2 + for jp+k < l { + if Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(ip+k)))) == Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(jp+k)))) { + if k == p { + jp = jp + p + k = uint64(1) + } else { + k = k + 1 + } + } else { + if Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(ip+k)))) < Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(jp+k)))) { + jp = jp + k + k = uint64(1) + p = jp - ip + } else { + v2 = jp + jp = jp + 1 + ip = v2 + v2 = Uint64FromInt32(1) + p = v2 + k = v2 + } + } + } + if ip+uint64(1) > ms+uint64(1) { + ms = ip + } else { + p = p0 + } + /* Periodic needle? */ + if Xmemcmp(tls, n, n+uintptr(p), ms+uint64(1)) != 0 { + mem0 = uint64(0) + if ms > l-ms-uint64(1) { + v8 = ms + } else { + v8 = l - ms - uint64(1) + } + p = v8 + uint64(1) + } else { + mem0 = l - p + } + mem = uint64(0) + /* Initialize incremental end-of-haystack pointer */ + z = h + /* Search loop */ + for { + /* Update incremental end-of-haystack pointer */ + if Uint64FromInt64(int64(z)-int64(h)) < l { + /* Fast estimate for MAX(l,63) */ + grow = l | uint64(63) + z2 = Xmemchr(tls, z, 0, grow) + if z2 != 0 { + z = z2 + if Uint64FromInt64(int64(z)-int64(h)) < l { + return uintptr(0) + } + } else { + z = z + uintptr(grow) + } + } + /* Check last byte first; advance by shift on mismatch */ + if (**(**[4]Tsize_t)(__ccgo_up(bp)))[uint64(**(**uint8)(__ccgo_up(h + uintptr(l-uint64(1)))))/(Uint64FromInt32(8)*Uint64FromInt64(8))]&(Uint64FromInt32(1)<<(uint64(**(**uint8)(__ccgo_up(h + uintptr(l-uint64(1)))))%(Uint64FromInt32(8)*Uint64FromInt64(8)))) != 0 { + k = l - shift[**(**uint8)(__ccgo_up(h + uintptr(l-uint64(1))))] + if k != 0 { + if k < mem { + k = mem + } + h = h + uintptr(k) + mem = uint64(0) + goto _9 + } + } else { + h = h + uintptr(l) + mem = uint64(0) + goto _9 + } + /* Compare right half */ + if ms+uint64(1) > mem { + v8 = ms + uint64(1) + } else { + v8 = mem + } + k = v8 + for { + if !(**(**uint8)(__ccgo_up(n + uintptr(k))) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(k)))) == Int32FromUint8(**(**uint8)(__ccgo_up(h + uintptr(k))))) { + break + } + goto _10 + _10: + ; + k = k + 1 + } + if **(**uint8)(__ccgo_up(n + uintptr(k))) != 0 { + h = h + uintptr(k-ms) + mem = uint64(0) + goto _9 + } + /* Compare left half */ + k = ms + uint64(1) + for { + if !(k > mem && Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(k-uint64(1))))) == Int32FromUint8(**(**uint8)(__ccgo_up(h + uintptr(k-uint64(1)))))) { + break + } + goto _12 + _12: + ; + k = k - 1 + } + if k <= mem { + return h + } + h = h + uintptr(p) + mem = mem0 + goto _9 + _9: + } + return r +} + +func Xstrstr(tls *TLS, h uintptr, n uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v h=%v n=%v, (%v:)", tls, h, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + /* Return immediately on empty needle */ + if !(**(**int8)(__ccgo_up(n)) != 0) { + return h + } + /* Use faster algorithms for short needles */ + h = Xstrchr(tls, h, int32(**(**int8)(__ccgo_up(n)))) + if !(h != 0) || !(**(**int8)(__ccgo_up(n + 1)) != 0) { + return h + } + if !(**(**int8)(__ccgo_up(h + 1)) != 0) { + return uintptr(0) + } + if !(**(**int8)(__ccgo_up(n + 2)) != 0) { + return _twobyte_strstr(tls, h, n) + } + if !(**(**int8)(__ccgo_up(h + 2)) != 0) { + return uintptr(0) + } + if !(**(**int8)(__ccgo_up(n + 3)) != 0) { + return _threebyte_strstr(tls, h, n) + } + if !(**(**int8)(__ccgo_up(h + 3)) != 0) { + return uintptr(0) + } + if !(**(**int8)(__ccgo_up(n + 4)) != 0) { + return _fourbyte_strstr(tls, h, n) + } + return _twoway_strstr(tls, h, n) +} + +func Xstrtok(tls *TLS, s uintptr, sep uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v sep=%v, (%v:)", tls, s, sep, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 uintptr + var v2 bool + _, _ = v1, v2 + if v2 = !(s != 0); v2 { + v1 = _p2 + s = v1 + } + if v2 && !(v1 != 0) { + return UintptrFromInt32(0) + } + s = s + uintptr(Xstrspn(tls, s, sep)) + if !(**(**int8)(__ccgo_up(s)) != 0) { + v1 = UintptrFromInt32(0) + _p2 = v1 + return v1 + } + _p2 = s + uintptr(Xstrcspn(tls, s, sep)) + if **(**int8)(__ccgo_up(_p2)) != 0 { + v1 = _p2 + _p2 = _p2 + 1 + **(**int8)(__ccgo_up(v1)) = 0 + } else { + _p2 = uintptr(0) + } + return s +} + +var _p2 uintptr + +func Xstrtok_r(tls *TLS, s uintptr, sep uintptr, p uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v sep=%v p=%v, (%v:)", tls, s, sep, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1, v3 uintptr + var v2 bool + _, _, _ = v1, v2, v3 + if v2 = !(s != 0); v2 { + v1 = **(**uintptr)(__ccgo_up(p)) + s = v1 + } + if v2 && !(v1 != 0) { + return UintptrFromInt32(0) + } + s = s + uintptr(Xstrspn(tls, s, sep)) + if !(**(**int8)(__ccgo_up(s)) != 0) { + v1 = UintptrFromInt32(0) + **(**uintptr)(__ccgo_up(p)) = v1 + return v1 + } + **(**uintptr)(__ccgo_up(p)) = s + uintptr(Xstrcspn(tls, s, sep)) + if **(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(p)))) != 0 { + v3 = p + v1 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + **(**int8)(__ccgo_up(v1)) = 0 + } else { + **(**uintptr)(__ccgo_up(p)) = uintptr(0) + } + return s +} + +func Xstrverscmp(tls *TLS, l0 uintptr, r0 uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l0=%v r0=%v, (%v:)", tls, l0, r0, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var c, z int32 + var dp, i, j, v2 Tsize_t + var l, r uintptr + _, _, _, _, _, _, _, _ = c, dp, i, j, l, r, z, v2 + l = l0 + r = r0 + z = int32(1) + /* Find maximal matching prefix and track its maximal digit + * suffix and whether those digits are all zeros. */ + v2 = Uint64FromInt32(0) + i = v2 + dp = v2 + for { + if !(Int32FromUint8(**(**uint8)(__ccgo_up(l + uintptr(i)))) == Int32FromUint8(**(**uint8)(__ccgo_up(r + uintptr(i))))) { + break + } + c = Int32FromUint8(**(**uint8)(__ccgo_up(l + uintptr(i)))) + if !(c != 0) { + return 0 + } + if !(BoolInt32(Uint32FromInt32(c)-Uint32FromUint8('0') < Uint32FromInt32(10)) != 0) { + dp = i + uint64(1) + z = Int32FromInt32(1) + } else { + if c != int32('0') { + z = 0 + } + } + goto _1 + _1: + ; + i = i + 1 + } + if Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(l + uintptr(dp))))-int32('1')) < uint32(9) && Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(r + uintptr(dp))))-int32('1')) < uint32(9) { + /* If we're looking at non-degenerate digit sequences starting + * with nonzero digits, longest digit string is greater. */ + j = i + for { + if !(BoolInt32(uint32(**(**uint8)(__ccgo_up(l + uintptr(j))))-uint32('0') < uint32(10)) != 0) { + break + } + if !(BoolInt32(uint32(**(**uint8)(__ccgo_up(r + uintptr(j))))-Uint32FromUint8('0') < Uint32FromInt32(10)) != 0) { + return int32(1) + } + goto _3 + _3: + ; + j = j + 1 + } + if BoolInt32(uint32(**(**uint8)(__ccgo_up(r + uintptr(j))))-uint32('0') < uint32(10)) != 0 { + return -int32(1) + } + } else { + if z != 0 && dp < i && (BoolInt32(uint32(**(**uint8)(__ccgo_up(l + uintptr(i))))-uint32('0') < uint32(10)) != 0 || BoolInt32(uint32(**(**uint8)(__ccgo_up(r + uintptr(i))))-uint32('0') < uint32(10)) != 0) { + /* Otherwise, if common prefix of digit sequence is + * all zeros, digits order less than non-digits. */ + return Int32FromUint8(Uint8FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(l + uintptr(i))))-Int32FromUint8('0'))) - Int32FromUint8(Uint8FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(r + uintptr(i))))-Int32FromUint8('0'))) + } + } + return Int32FromUint8(**(**uint8)(__ccgo_up(l + uintptr(i)))) - Int32FromUint8(**(**uint8)(__ccgo_up(r + uintptr(i)))) +} + +func Xswab(tls *TLS, _src uintptr, _dest uintptr, n Tssize_t) { + if __ccgo_strace { + trc("tls=%v _src=%v _dest=%v n=%v, (%v:)", tls, _src, _dest, n, origin(2)) + } + var dest, src uintptr + _, _ = dest, src + src = _src + dest = _dest + for { + if !(n > int64(1)) { + break + } + **(**int8)(__ccgo_up(dest)) = **(**int8)(__ccgo_up(src + 1)) + **(**int8)(__ccgo_up(dest + 1)) = **(**int8)(__ccgo_up(src)) + dest = dest + uintptr(2) + src = src + uintptr(2) + goto _1 + _1: + ; + n = n - int64(2) + } +} + +func Xwcpcpy(tls *TLS, d uintptr, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v, (%v:)", tls, d, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwcscpy(tls, d, s) + uintptr(Xwcslen(tls, s))*4 +} + +func Xwcpncpy(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwcsncpy(tls, d, s, n) + uintptr(Xwcsnlen(tls, s, n))*4 +} + +func Xwcscasecmp(tls *TLS, l uintptr, r uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v, (%v:)", tls, l, r, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return Xwcsncasecmp(tls, l, r, Uint64FromInt32(-Int32FromInt32(1))) +} + +func Xwcscasecmp_l(tls *TLS, l uintptr, r uintptr, locale Tlocale_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v locale=%v, (%v:)", tls, l, r, locale, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return Xwcscasecmp(tls, l, r) +} + +func Xwcscat(tls *TLS, dest uintptr, src uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v, (%v:)", tls, dest, src, origin(2)) + defer func() { trc("-> %v", r) }() + } + Xwcscpy(tls, dest+uintptr(Xwcslen(tls, dest))*4, src) + return dest +} + +func Xwcschr(tls *TLS, s uintptr, c Twchar_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v2 uintptr + _ = v2 + if !(c != 0) { + return s + uintptr(Xwcslen(tls, s))*4 + } + for { + if !(**(**Twchar_t)(__ccgo_up(s)) != 0 && **(**Twchar_t)(__ccgo_up(s)) != c) { + break + } + goto _1 + _1: + ; + s += 4 + } + if **(**Twchar_t)(__ccgo_up(s)) != 0 { + v2 = s + } else { + v2 = uintptr(0) + } + return v2 +} + +func Xwcscmp(tls *TLS, l uintptr, r uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v, (%v:)", tls, l, r, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var v2 int32 + _ = v2 + for { + if !(**(**Twchar_t)(__ccgo_up(l)) == **(**Twchar_t)(__ccgo_up(r)) && **(**Twchar_t)(__ccgo_up(l)) != 0 && **(**Twchar_t)(__ccgo_up(r)) != 0) { + break + } + goto _1 + _1: + ; + l += 4 + r += 4 + } + if **(**Twchar_t)(__ccgo_up(l)) < **(**Twchar_t)(__ccgo_up(r)) { + v2 = -int32(1) + } else { + v2 = BoolInt32(**(**Twchar_t)(__ccgo_up(l)) > **(**Twchar_t)(__ccgo_up(r))) + } + return v2 +} + +func Xwcscpy(tls *TLS, d uintptr, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v, (%v:)", tls, d, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, v2, v3 uintptr + var v1 Twchar_t + _, _, _, _ = a, v1, v2, v3 + a = d + for { + v2 = s + s += 4 + v1 = **(**Twchar_t)(__ccgo_up(v2)) + v3 = d + d += 4 + **(**Twchar_t)(__ccgo_up(v3)) = v1 + if !(v1 != 0) { + break + } + } + return a +} + +func Xwcscspn(tls *TLS, s uintptr, c uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, v2, v3 uintptr + var v1 uint64 + _, _, _, _ = a, v1, v2, v3 + if !(**(**Twchar_t)(__ccgo_up(c)) != 0) { + return Xwcslen(tls, s) + } + if !(**(**Twchar_t)(__ccgo_up(c + 1*4)) != 0) { + v3 = s + a = v3 + v2 = Xwcschr(tls, v3, **(**Twchar_t)(__ccgo_up(c))) + s = v2 + if v2 != 0 { + v1 = Uint64FromInt64((int64(s) - int64(a)) / 4) + } else { + v1 = Xwcslen(tls, a) + } + return v1 + } + a = s + for { + if !(**(**Twchar_t)(__ccgo_up(s)) != 0 && !(Xwcschr(tls, c, **(**Twchar_t)(__ccgo_up(s))) != 0)) { + break + } + goto _4 + _4: + ; + s += 4 + } + return Uint64FromInt64((int64(s) - int64(a)) / 4) +} + +func Xwcsdup(tls *TLS, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var d uintptr + var l Tsize_t + _, _ = d, l + l = Xwcslen(tls, s) + d = Xmalloc(tls, (l+uint64(1))*uint64(4)) + if !(d != 0) { + return UintptrFromInt32(0) + } + return Xwmemcpy(tls, d, s, l+uint64(1)) +} + +func Xwcslen(tls *TLS, s uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a uintptr + _ = a + a = s + for { + if !(**(**Twchar_t)(__ccgo_up(s)) != 0) { + break + } + goto _1 + _1: + ; + s += 4 + } + return Uint64FromInt64((int64(s) - int64(a)) / 4) +} + +func Xwcsncasecmp(tls *TLS, l uintptr, r uintptr, n Tsize_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v n=%v, (%v:)", tls, l, r, n, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var v1 Tsize_t + _ = v1 + v1 = n + n = n - 1 + if !(v1 != 0) { + return 0 + } + for { + if !(**(**Twchar_t)(__ccgo_up(l)) != 0 && **(**Twchar_t)(__ccgo_up(r)) != 0 && n != 0 && (**(**Twchar_t)(__ccgo_up(l)) == **(**Twchar_t)(__ccgo_up(r)) || Xtowlower(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(l)))) == Xtowlower(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(r)))))) { + break + } + goto _2 + _2: + ; + l += 4 + r += 4 + n = n - 1 + } + return Int32FromUint32(Xtowlower(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(l)))) - Xtowlower(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(r))))) +} + +func Xwcsncasecmp_l(tls *TLS, l uintptr, r uintptr, n Tsize_t, locale Tlocale_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v n=%v locale=%v, (%v:)", tls, l, r, n, locale, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return Xwcsncasecmp(tls, l, r, n) +} + +func Xwcsncat(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, v1, v2 uintptr + _, _, _ = a, v1, v2 + a = d + d = d + uintptr(Xwcslen(tls, d))*4 + for n != 0 && **(**Twchar_t)(__ccgo_up(s)) != 0 { + n = n - 1 + v1 = d + d += 4 + v2 = s + s += 4 + **(**Twchar_t)(__ccgo_up(v1)) = **(**Twchar_t)(__ccgo_up(v2)) + } + v1 = d + d += 4 + **(**Twchar_t)(__ccgo_up(v1)) = 0 + return a +} + +func Xwcsncmp(tls *TLS, l uintptr, r uintptr, n Tsize_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v n=%v, (%v:)", tls, l, r, n, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var v2, v3 int32 + _, _ = v2, v3 + for { + if !(n != 0 && **(**Twchar_t)(__ccgo_up(l)) == **(**Twchar_t)(__ccgo_up(r)) && **(**Twchar_t)(__ccgo_up(l)) != 0 && **(**Twchar_t)(__ccgo_up(r)) != 0) { + break + } + goto _1 + _1: + ; + n = n - 1 + l += 4 + r += 4 + } + if n != 0 { + if **(**Twchar_t)(__ccgo_up(l)) < **(**Twchar_t)(__ccgo_up(r)) { + v3 = -int32(1) + } else { + v3 = BoolInt32(**(**Twchar_t)(__ccgo_up(l)) > **(**Twchar_t)(__ccgo_up(r))) + } + v2 = v3 + } else { + v2 = 0 + } + return v2 +} + +func Xwcsncpy(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, v1, v2 uintptr + _, _, _ = a, v1, v2 + a = d + for n != 0 && **(**Twchar_t)(__ccgo_up(s)) != 0 { + n = n - 1 + v1 = d + d += 4 + v2 = s + s += 4 + **(**Twchar_t)(__ccgo_up(v1)) = **(**Twchar_t)(__ccgo_up(v2)) + } + Xwmemset(tls, d, 0, n) + return a +} + +func Xwcsnlen(tls *TLS, s uintptr, n Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v, (%v:)", tls, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var z uintptr + _ = z + z = Xwmemchr(tls, s, 0, n) + if z != 0 { + n = Uint64FromInt64((int64(z) - int64(s)) / 4) + } + return n +} + +func Xwcspbrk(tls *TLS, s uintptr, b uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v b=%v, (%v:)", tls, s, b, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 uintptr + _ = v1 + s = s + uintptr(Xwcscspn(tls, s, b))*4 + if **(**Twchar_t)(__ccgo_up(s)) != 0 { + v1 = s + } else { + v1 = UintptrFromInt32(0) + } + return v1 +} + +func Xwcsrchr(tls *TLS, s uintptr, c Twchar_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + var p, v2 uintptr + _, _ = p, v2 + p = s + uintptr(Xwcslen(tls, s))*4 + for { + if !(p >= s && **(**Twchar_t)(__ccgo_up(p)) != c) { + break + } + goto _1 + _1: + ; + p -= 4 + } + if p >= s { + v2 = p + } else { + v2 = uintptr(0) + } + return v2 +} + +func Xwcsspn(tls *TLS, s uintptr, c uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a uintptr + _ = a + a = s + for { + if !(**(**Twchar_t)(__ccgo_up(s)) != 0 && Xwcschr(tls, c, **(**Twchar_t)(__ccgo_up(s))) != 0) { + break + } + goto _1 + _1: + ; + s += 4 + } + return Uint64FromInt64((int64(s) - int64(a)) / 4) +} + +func _twoway_wcsstr(tls *TLS, h uintptr, n uintptr) (r uintptr) { + var grow, ip, jp, k, l, mem, mem0, ms, p, p0, v2 Tsize_t + var z, z2 uintptr + var v8 uint64 + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = grow, ip, jp, k, l, mem, mem0, ms, p, p0, z, z2, v2, v8 + /* Computing length of needle */ + l = uint64(0) + for { + if !(**(**Twchar_t)(__ccgo_up(n + uintptr(l)*4)) != 0 && **(**Twchar_t)(__ccgo_up(h + uintptr(l)*4)) != 0) { + break + } + goto _1 + _1: + ; + l = l + 1 + } + if **(**Twchar_t)(__ccgo_up(n + uintptr(l)*4)) != 0 { + return uintptr(0) + } /* hit the end of h */ + /* Compute maximal suffix */ + ip = Uint64FromInt32(-Int32FromInt32(1)) + jp = uint64(0) + v2 = Uint64FromInt32(1) + p = v2 + k = v2 + for jp+k < l { + if **(**Twchar_t)(__ccgo_up(n + uintptr(ip+k)*4)) == **(**Twchar_t)(__ccgo_up(n + uintptr(jp+k)*4)) { + if k == p { + jp = jp + p + k = uint64(1) + } else { + k = k + 1 + } + } else { + if **(**Twchar_t)(__ccgo_up(n + uintptr(ip+k)*4)) > **(**Twchar_t)(__ccgo_up(n + uintptr(jp+k)*4)) { + jp = jp + k + k = uint64(1) + p = jp - ip + } else { + v2 = jp + jp = jp + 1 + ip = v2 + v2 = Uint64FromInt32(1) + p = v2 + k = v2 + } + } + } + ms = ip + p0 = p + /* And with the opposite comparison */ + ip = Uint64FromInt32(-Int32FromInt32(1)) + jp = uint64(0) + v2 = Uint64FromInt32(1) + p = v2 + k = v2 + for jp+k < l { + if **(**Twchar_t)(__ccgo_up(n + uintptr(ip+k)*4)) == **(**Twchar_t)(__ccgo_up(n + uintptr(jp+k)*4)) { + if k == p { + jp = jp + p + k = uint64(1) + } else { + k = k + 1 + } + } else { + if **(**Twchar_t)(__ccgo_up(n + uintptr(ip+k)*4)) < **(**Twchar_t)(__ccgo_up(n + uintptr(jp+k)*4)) { + jp = jp + k + k = uint64(1) + p = jp - ip + } else { + v2 = jp + jp = jp + 1 + ip = v2 + v2 = Uint64FromInt32(1) + p = v2 + k = v2 + } + } + } + if ip+uint64(1) > ms+uint64(1) { + ms = ip + } else { + p = p0 + } + /* Periodic needle? */ + if Xwmemcmp(tls, n, n+uintptr(p)*4, ms+uint64(1)) != 0 { + mem0 = uint64(0) + if ms > l-ms-uint64(1) { + v8 = ms + } else { + v8 = l - ms - uint64(1) + } + p = v8 + uint64(1) + } else { + mem0 = l - p + } + mem = uint64(0) + /* Initialize incremental end-of-haystack pointer */ + z = h + /* Search loop */ + for { + /* Update incremental end-of-haystack pointer */ + if Uint64FromInt64((int64(z)-int64(h))/4) < l { + /* Fast estimate for MIN(l,63) */ + grow = l | uint64(63) + z2 = Xwmemchr(tls, z, 0, grow) + if z2 != 0 { + z = z2 + if Uint64FromInt64((int64(z)-int64(h))/4) < l { + return uintptr(0) + } + } else { + z = z + uintptr(grow)*4 + } + } + /* Compare right half */ + if ms+uint64(1) > mem { + v8 = ms + uint64(1) + } else { + v8 = mem + } + k = v8 + for { + if !(**(**Twchar_t)(__ccgo_up(n + uintptr(k)*4)) != 0 && **(**Twchar_t)(__ccgo_up(n + uintptr(k)*4)) == **(**Twchar_t)(__ccgo_up(h + uintptr(k)*4))) { + break + } + goto _10 + _10: + ; + k = k + 1 + } + if **(**Twchar_t)(__ccgo_up(n + uintptr(k)*4)) != 0 { + h = h + uintptr(k-ms)*4 + mem = uint64(0) + goto _9 + } + /* Compare left half */ + k = ms + uint64(1) + for { + if !(k > mem && **(**Twchar_t)(__ccgo_up(n + uintptr(k-uint64(1))*4)) == **(**Twchar_t)(__ccgo_up(h + uintptr(k-uint64(1))*4))) { + break + } + goto _12 + _12: + ; + k = k - 1 + } + if k <= mem { + return h + } + h = h + uintptr(p)*4 + mem = mem0 + goto _9 + _9: + } + return r +} + +func Xwcsstr(tls *TLS, h uintptr, n uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v h=%v n=%v, (%v:)", tls, h, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + /* Return immediately on empty needle or haystack */ + if !(**(**Twchar_t)(__ccgo_up(n)) != 0) { + return h + } + if !(**(**Twchar_t)(__ccgo_up(h)) != 0) { + return uintptr(0) + } + /* Use faster algorithms for short needles */ + h = Xwcschr(tls, h, **(**Twchar_t)(__ccgo_up(n))) + if !(h != 0) || !(**(**Twchar_t)(__ccgo_up(n + 1*4)) != 0) { + return h + } + if !(**(**Twchar_t)(__ccgo_up(h + 1*4)) != 0) { + return uintptr(0) + } + return _twoway_wcsstr(tls, h, n) +} + +func Xwcstok(tls *TLS, s uintptr, sep uintptr, p uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v sep=%v p=%v, (%v:)", tls, s, sep, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1, v3 uintptr + var v2 bool + _, _, _ = v1, v2, v3 + if v2 = !(s != 0); v2 { + v1 = **(**uintptr)(__ccgo_up(p)) + s = v1 + } + if v2 && !(v1 != 0) { + return UintptrFromInt32(0) + } + s = s + uintptr(Xwcsspn(tls, s, sep))*4 + if !(**(**Twchar_t)(__ccgo_up(s)) != 0) { + v1 = UintptrFromInt32(0) + **(**uintptr)(__ccgo_up(p)) = v1 + return v1 + } + **(**uintptr)(__ccgo_up(p)) = s + uintptr(Xwcscspn(tls, s, sep))*4 + if **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(p)))) != 0 { + v3 = p + v1 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) += 4 + **(**Twchar_t)(__ccgo_up(v1)) = 0 + } else { + **(**uintptr)(__ccgo_up(p)) = uintptr(0) + } + return s +} + +func Xwcswcs(tls *TLS, haystack uintptr, needle uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v haystack=%v needle=%v, (%v:)", tls, haystack, needle, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwcsstr(tls, haystack, needle) +} + +func Xwmemchr(tls *TLS, s uintptr, c Twchar_t, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v n=%v, (%v:)", tls, s, c, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v2 uintptr + _ = v2 + for { + if !(n != 0 && **(**Twchar_t)(__ccgo_up(s)) != c) { + break + } + goto _1 + _1: + ; + n = n - 1 + s += 4 + } + if n != 0 { + v2 = s + } else { + v2 = uintptr(0) + } + return v2 +} + +func Xwmemcmp(tls *TLS, l uintptr, r uintptr, n Tsize_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v n=%v, (%v:)", tls, l, r, n, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var v2, v3 int32 + _, _ = v2, v3 + for { + if !(n != 0 && **(**Twchar_t)(__ccgo_up(l)) == **(**Twchar_t)(__ccgo_up(r))) { + break + } + goto _1 + _1: + ; + n = n - 1 + l += 4 + r += 4 + } + if n != 0 { + if **(**Twchar_t)(__ccgo_up(l)) < **(**Twchar_t)(__ccgo_up(r)) { + v3 = -int32(1) + } else { + v3 = BoolInt32(**(**Twchar_t)(__ccgo_up(l)) > **(**Twchar_t)(__ccgo_up(r))) + } + v2 = v3 + } else { + v2 = 0 + } + return v2 +} + +func Xwmemcpy(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, v2, v3 uintptr + var v1 Tsize_t + _, _, _, _ = a, v1, v2, v3 + a = d + for { + v1 = n + n = n - 1 + if !(v1 != 0) { + break + } + v2 = d + d += 4 + v3 = s + s += 4 + **(**Twchar_t)(__ccgo_up(v2)) = **(**Twchar_t)(__ccgo_up(v3)) + } + return a +} + +func Xwmemmove(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var d0, v3, v4 uintptr + var v1 Tsize_t + _, _, _, _ = d0, v1, v3, v4 + d0 = d + if d == s { + return d + } + if uint64(d)-uint64(s) < n*uint64(4) { + for { + v1 = n + n = n - 1 + if !(v1 != 0) { + break + } + **(**Twchar_t)(__ccgo_up(d + uintptr(n)*4)) = **(**Twchar_t)(__ccgo_up(s + uintptr(n)*4)) + } + } else { + for { + v1 = n + n = n - 1 + if !(v1 != 0) { + break + } + v3 = d + d += 4 + v4 = s + s += 4 + **(**Twchar_t)(__ccgo_up(v3)) = **(**Twchar_t)(__ccgo_up(v4)) + } + } + return d0 +} + +func Xwmemset(tls *TLS, d uintptr, c Twchar_t, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v c=%v n=%v, (%v:)", tls, d, c, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret, v2 uintptr + var v1 Tsize_t + _, _, _ = ret, v1, v2 + ret = d + for { + v1 = n + n = n - 1 + if !(v1 != 0) { + break + } + v2 = d + d += 4 + **(**Twchar_t)(__ccgo_up(v2)) = c + } + return ret +} + +func Xmkdtemp(tls *TLS, template uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v template=%v, (%v:)", tls, template, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l Tsize_t + var retries, v1 int32 + _, _, _ = l, retries, v1 + l = _strlen(tls, template) + retries = int32(100) + if l < uint64(6) || Xmemcmp(tls, template+uintptr(l)-uintptr(6), __ccgo_ts+1720, uint64(6)) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(0) + } + for { + ___randname(tls, template+uintptr(l)-uintptr(6)) + if !(Xmkdir(tls, template, uint32(0700)) != 0) { + return template + } + goto _2 + _2: + ; + retries = retries - 1 + v1 = retries + if !(v1 != 0 && **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EEXIST)) { + break + } + } + Xmemcpy(tls, template+uintptr(l)-uintptr(6), __ccgo_ts+1720, uint64(6)) + return uintptr(0) +} + +func Xmkostemp(tls *TLS, template uintptr, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v template=%v flags=%v, (%v:)", tls, template, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__mkostemps(tls, template, 0, flags) +} + +func X__mkostemps(tls *TLS, template uintptr, len1 int32, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v template=%v len1=%v flags=%v, (%v:)", tls, template, len1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var fd, retries, v1 int32 + var l Tsize_t + _, _, _, _ = fd, l, retries, v1 + l = _strlen(tls, template) + if l < uint64(6) || Uint64FromInt32(len1) > l-uint64(6) || Xmemcmp(tls, template+uintptr(l)-uintptr(len1)-uintptr(6), __ccgo_ts+1720, uint64(6)) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + flags = flags - flags&(Int32FromInt32(03)|Int32FromInt32(O_PATH)) + retries = int32(100) + for { + ___randname(tls, template+uintptr(l)-uintptr(len1)-uintptr(6)) + v1 = Xopen(tls, template, flags|int32(O_RDWR)|int32(O_CREAT)|int32(O_EXCL), VaList(bp+8, int32(0600))) + fd = v1 + if v1 >= 0 { + return fd + } + goto _2 + _2: + ; + retries = retries - 1 + v1 = retries + if !(v1 != 0 && **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EEXIST)) { + break + } + } + Xmemcpy(tls, template+uintptr(l)-uintptr(len1)-uintptr(6), __ccgo_ts+1720, uint64(6)) + return -int32(1) +} + +func Xmkostemps(tls *TLS, template uintptr, len1 int32, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v template=%v len1=%v flags=%v, (%v:)", tls, template, len1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__mkostemps(tls, template, len1, flags) +} + +func Xmkstemp(tls *TLS, template uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v template=%v, (%v:)", tls, template, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__mkostemps(tls, template, 0, 0) +} + +func Xmkstemps(tls *TLS, template uintptr, len1 int32) (r int32) { + if __ccgo_strace { + trc("tls=%v template=%v len1=%v, (%v:)", tls, template, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__mkostemps(tls, template, len1, 0) +} + +func Xmktemp(tls *TLS, template uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v template=%v, (%v:)", tls, template, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(128) + defer tls.Free(128) + var l Tsize_t + var retries, v1 int32 + var _ /* st at bp+0 */ Tstat + _, _, _ = l, retries, v1 + l = _strlen(tls, template) + retries = int32(100) + if l < uint64(6) || Xmemcmp(tls, template+uintptr(l)-uintptr(6), __ccgo_ts+1720, uint64(6)) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + **(**int8)(__ccgo_up(template)) = 0 + return template + } + for { + ___randname(tls, template+uintptr(l)-uintptr(6)) + if Xstat(tls, template, bp) != 0 { + if **(**int32)(__ccgo_up(X__errno_location(tls))) != int32(ENOENT) { + **(**int8)(__ccgo_up(template)) = 0 + } + return template + } + goto _2 + _2: + ; + retries = retries - 1 + v1 = retries + if !(v1 != 0) { + break + } + } + **(**int8)(__ccgo_up(template)) = 0 + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EEXIST) + return template +} + +func Xcfgetospeed(tls *TLS, tio uintptr) (r Tspeed_t) { + if __ccgo_strace { + trc("tls=%v tio=%v, (%v:)", tls, tio, origin(2)) + defer func() { trc("-> %v", r) }() + } + return (*Ttermios)(unsafe.Pointer(tio)).Fc_cflag & uint32(CBAUD) +} + +func Xcfgetispeed(tls *TLS, tio uintptr) (r Tspeed_t) { + if __ccgo_strace { + trc("tls=%v tio=%v, (%v:)", tls, tio, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xcfgetospeed(tls, tio) +} + +func Xcfmakeraw(tls *TLS, t uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v, (%v:)", tls, t, origin(2)) + } + **(**Ttcflag_t)(__ccgo_up(t)) &= Uint32FromInt32(^(Int32FromInt32(IGNBRK) | Int32FromInt32(BRKINT) | Int32FromInt32(PARMRK) | Int32FromInt32(ISTRIP) | Int32FromInt32(INLCR) | Int32FromInt32(IGNCR) | Int32FromInt32(ICRNL) | Int32FromInt32(IXON))) + **(**Ttcflag_t)(__ccgo_up(t + 4)) &= Uint32FromInt32(^Int32FromInt32(OPOST)) + **(**Ttcflag_t)(__ccgo_up(t + 12)) &= Uint32FromInt32(^(Int32FromInt32(ECHO) | Int32FromInt32(ECHONL) | Int32FromInt32(ICANON) | Int32FromInt32(ISIG) | Int32FromInt32(IEXTEN))) + **(**Ttcflag_t)(__ccgo_up(t + 8)) &= Uint32FromInt32(^(Int32FromInt32(CSIZE) | Int32FromInt32(PARENB))) + **(**Ttcflag_t)(__ccgo_up(t + 8)) |= uint32(CS8) + **(**Tcc_t)(__ccgo_up(t + 17 + 6)) = uint8(1) + **(**Tcc_t)(__ccgo_up(t + 17 + 5)) = uint8(0) +} + +func Xcfsetospeed(tls *TLS, tio uintptr, speed Tspeed_t) (r int32) { + if __ccgo_strace { + trc("tls=%v tio=%v speed=%v, (%v:)", tls, tio, speed, origin(2)) + defer func() { trc("-> %v", r) }() + } + if speed&Uint32FromInt32(^Int32FromInt32(CBAUD)) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + **(**Ttcflag_t)(__ccgo_up(tio + 8)) &= Uint32FromInt32(^Int32FromInt32(CBAUD)) + **(**Ttcflag_t)(__ccgo_up(tio + 8)) |= speed + return 0 +} + +func Xcfsetispeed(tls *TLS, tio uintptr, speed Tspeed_t) (r int32) { + if __ccgo_strace { + trc("tls=%v tio=%v speed=%v, (%v:)", tls, tio, speed, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + _ = v1 + if speed != 0 { + v1 = Xcfsetospeed(tls, tio, speed) + } else { + v1 = 0 + } + return v1 +} + +func Xcfsetspeed(tls *TLS, tio uintptr, speed Tspeed_t) (r int32) { + if __ccgo_strace { + trc("tls=%v tio=%v speed=%v, (%v:)", tls, tio, speed, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xcfsetospeed(tls, tio, speed) +} + +func Xtcdrain(tls *TLS, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_ioctl), int64(fd), int64(Int32FromInt32(TCSBRK)), int64(Int32FromInt32(1)), 0, 0, 0)))) +} + +func Xtcflow(tls *TLS, fd int32, action int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v action=%v, (%v:)", tls, fd, action, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + return Xioctl(tls, fd, int32(TCXONC), VaList(bp+8, action)) +} + +func Xtcflush(tls *TLS, fd int32, queue int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v queue=%v, (%v:)", tls, fd, queue, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + return Xioctl(tls, fd, int32(TCFLSH), VaList(bp+8, queue)) +} + +func Xtcgetattr(tls *TLS, fd int32, tio uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v tio=%v, (%v:)", tls, fd, tio, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + if Xioctl(tls, fd, int32(TCGETS), VaList(bp+8, tio)) != 0 { + return -int32(1) + } + return 0 +} + +func Xtcgetsid(tls *TLS, fd int32) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var _ /* sid at bp+0 */ int32 + if Xioctl(tls, fd, int32(TIOCGSID), VaList(bp+16, bp)) < 0 { + return -int32(1) + } + return **(**int32)(__ccgo_up(bp)) +} + +func Xtcgetwinsize(tls *TLS, fd int32, wsz uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v wsz=%v, (%v:)", tls, fd, wsz, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_ioctl), int64(fd), int64(Int32FromInt32(TIOCGWINSZ)), int64(wsz))))) +} + +func Xtcsendbreak(tls *TLS, fd int32, dur int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v dur=%v, (%v:)", tls, fd, dur, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + /* nonzero duration is implementation-defined, so ignore it */ + return Xioctl(tls, fd, int32(TCSBRK), VaList(bp+8, 0)) +} + +func Xtcsetattr(tls *TLS, fd int32, act int32, tio uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v act=%v tio=%v, (%v:)", tls, fd, act, tio, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + if act < 0 || act > int32(2) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + return Xioctl(tls, fd, int32(TCSETS)+act, VaList(bp+8, tio)) +} + +func Xtcsetwinsize(tls *TLS, fd int32, wsz uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v wsz=%v, (%v:)", tls, fd, wsz, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_ioctl), int64(fd), int64(Int32FromInt32(TIOCSWINSZ)), int64(wsz))))) +} + +func X__map_file(tls *TLS, pathname uintptr, size uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v pathname=%v size=%v, (%v:)", tls, pathname, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(128) + defer tls.Free(128) + var fd int32 + var map1, v1 uintptr + var _ /* st at bp+0 */ Tstat + _, _, _ = fd, map1, v1 + map1 = uintptr(-Int32FromInt32(1)) + fd = int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_openat), int64(-Int32FromInt32(100)), int64(pathname), int64(Int32FromInt32(O_RDONLY)|Int32FromInt32(O_CLOEXEC)|Int32FromInt32(O_NONBLOCK)|Int32FromInt32(O_LARGEFILE)))))) + if fd < 0 { + return uintptr(0) + } + if !(X__fstat(tls, fd, bp) != 0) { + map1 = X__mmap(tls, uintptr(0), Uint64FromInt64((**(**Tstat)(__ccgo_up(bp))).Fst_size), int32(PROT_READ), int32(MAP_SHARED), fd, 0) + **(**Tsize_t)(__ccgo_up(size)) = Uint64FromInt64((**(**Tstat)(__ccgo_up(bp))).Fst_size) + } + X__syscall1(tls, int64(SYS_close), int64(fd)) + if map1 == uintptr(-Int32FromInt32(1)) { + v1 = uintptr(0) + } else { + v1 = map1 + } + return v1 +} + +func X__month_to_secs(tls *TLS, month int32, is_leap int32) (r int32) { + if __ccgo_strace { + trc("tls=%v month=%v is_leap=%v, (%v:)", tls, month, is_leap, origin(2)) + defer func() { trc("-> %v", r) }() + } + var t int32 + _ = t + t = _secs_through_month[month] + if is_leap != 0 && month >= int32(2) { + t = t + int32(86400) + } + return t +} + +var _secs_through_month = [12]int32{ + 1: Int32FromInt32(31) * Int32FromInt32(86400), + 2: Int32FromInt32(59) * Int32FromInt32(86400), + 3: Int32FromInt32(90) * Int32FromInt32(86400), + 4: Int32FromInt32(120) * Int32FromInt32(86400), + 5: Int32FromInt32(151) * Int32FromInt32(86400), + 6: Int32FromInt32(181) * Int32FromInt32(86400), + 7: Int32FromInt32(212) * Int32FromInt32(86400), + 8: Int32FromInt32(243) * Int32FromInt32(86400), + 9: Int32FromInt32(273) * Int32FromInt32(86400), + 10: Int32FromInt32(304) * Int32FromInt32(86400), + 11: Int32FromInt32(334) * Int32FromInt32(86400), +} + +const DAYS_PER_100Y = 36524 +const DAYS_PER_400Y = 146097 +const DAYS_PER_4Y = 1461 +const LEAPOCH = 951868800 + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +/* 2000-03-01 (mod 400 year, immediately after feb29 */ + +func X__secs_to_tm(tls *TLS, t int64, tm uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v t=%v tm=%v, (%v:)", tls, t, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + var c_cycles, leap, months, q_cycles, qc_cycles, remdays, remsecs, remyears, wday, yday int32 + var days, secs, years int64 + _, _, _, _, _, _, _, _, _, _, _, _, _ = c_cycles, days, leap, months, q_cycles, qc_cycles, remdays, remsecs, remyears, secs, wday, yday, years + /* Reject time_t values whose year would overflow int */ + if t < int64(-Int32FromInt32(1)-Int32FromInt32(0x7fffffff))*Int64FromInt64(31622400) || t > Int64FromInt32(INT_MAX)*Int64FromInt64(31622400) { + return -int32(1) + } + secs = t - (Int64FromInt64(946684800) + int64(Int32FromInt32(86400)*(Int32FromInt32(31)+Int32FromInt32(29)))) + days = secs / int64(86400) + remsecs = int32(secs % int64(86400)) + if remsecs < 0 { + remsecs = remsecs + int32(86400) + days = days - 1 + } + wday = int32((int64(3) + days) % int64(7)) + if wday < 0 { + wday = wday + int32(7) + } + qc_cycles = int32(days / int64(Int32FromInt32(365)*Int32FromInt32(400)+Int32FromInt32(97))) + remdays = int32(days % int64(Int32FromInt32(365)*Int32FromInt32(400)+Int32FromInt32(97))) + if remdays < 0 { + remdays = remdays + (Int32FromInt32(365)*Int32FromInt32(400) + Int32FromInt32(97)) + qc_cycles = qc_cycles - 1 + } + c_cycles = remdays / (Int32FromInt32(365)*Int32FromInt32(100) + Int32FromInt32(24)) + if c_cycles == int32(4) { + c_cycles = c_cycles - 1 + } + remdays = remdays - c_cycles*(Int32FromInt32(365)*Int32FromInt32(100)+Int32FromInt32(24)) + q_cycles = remdays / (Int32FromInt32(365)*Int32FromInt32(4) + Int32FromInt32(1)) + if q_cycles == int32(25) { + q_cycles = q_cycles - 1 + } + remdays = remdays - q_cycles*(Int32FromInt32(365)*Int32FromInt32(4)+Int32FromInt32(1)) + remyears = remdays / int32(365) + if remyears == int32(4) { + remyears = remyears - 1 + } + remdays = remdays - remyears*int32(365) + leap = BoolInt32(!(remyears != 0) && (q_cycles != 0 || !(c_cycles != 0))) + yday = remdays + int32(31) + int32(28) + leap + if yday >= int32(365)+leap { + yday = yday - (int32(365) + leap) + } + years = int64(remyears+int32(4)*q_cycles+int32(100)*c_cycles) + int64(400)*int64(qc_cycles) + months = 0 + for { + if !(int32(_days_in_month[months]) <= remdays) { + break + } + remdays = remdays - int32(_days_in_month[months]) + goto _1 + _1: + ; + months = months + 1 + } + if months >= int32(10) { + months = months - int32(12) + years = years + 1 + } + if years+int64(100) > int64(INT_MAX) || years+int64(100) < int64(-Int32FromInt32(1)-Int32FromInt32(0x7fffffff)) { + return -int32(1) + } + (*Ttm)(unsafe.Pointer(tm)).Ftm_year = int32(years + int64(100)) + (*Ttm)(unsafe.Pointer(tm)).Ftm_mon = months + int32(2) + (*Ttm)(unsafe.Pointer(tm)).Ftm_mday = remdays + int32(1) + (*Ttm)(unsafe.Pointer(tm)).Ftm_wday = wday + (*Ttm)(unsafe.Pointer(tm)).Ftm_yday = yday + (*Ttm)(unsafe.Pointer(tm)).Ftm_hour = remsecs / int32(3600) + (*Ttm)(unsafe.Pointer(tm)).Ftm_min = remsecs / int32(60) % int32(60) + (*Ttm)(unsafe.Pointer(tm)).Ftm_sec = remsecs % int32(60) + return 0 +} + +var _days_in_month = [12]int8{ + 0: int8(31), + 1: int8(30), + 2: int8(31), + 3: int8(30), + 4: int8(31), + 5: int8(31), + 6: int8(30), + 7: int8(31), + 8: int8(30), + 9: int8(31), + 10: int8(31), + 11: int8(29), +} + +func X__tm_to_secs(tls *TLS, tm uintptr) (r int64) { + if __ccgo_strace { + trc("tls=%v tm=%v, (%v:)", tls, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var adj, month int32 + var t, year int64 + var _ /* is_leap at bp+0 */ int32 + _, _, _, _ = adj, month, t, year + year = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_year) + month = (*Ttm)(unsafe.Pointer(tm)).Ftm_mon + if month >= int32(12) || month < 0 { + adj = month / int32(12) + month = month % int32(12) + if month < 0 { + adj = adj - 1 + month = month + int32(12) + } + year = year + int64(adj) + } + t = X__year_to_secs(tls, year, bp) + t = t + int64(X__month_to_secs(tls, month, **(**int32)(__ccgo_up(bp)))) + t = t + int64(86400)*int64((*Ttm)(unsafe.Pointer(tm)).Ftm_mday-Int32FromInt32(1)) + t = t + int64(3600)*int64((*Ttm)(unsafe.Pointer(tm)).Ftm_hour) + t = t + int64(60)*int64((*Ttm)(unsafe.Pointer(tm)).Ftm_min) + t = t + int64((*Ttm)(unsafe.Pointer(tm)).Ftm_sec) + return t +} + +var _std_name [7]int8 +var _dst_name [7]int8 + +var _dst_off int32 +var _r0 [5]int32 +var _r12 [5]int32 + +var _zi uintptr +var _trans uintptr +var _index uintptr +var _types uintptr +var _abbrevs uintptr +var _abbrevs_end uintptr +var _map_size Tsize_t + +var _old_tz_buf [32]int8 +var _old_tz = uintptr(unsafe.Pointer(&_old_tz_buf)) +var _old_tz_size = uint64(32) + +var _lock4 [1]int32 + +func _getint2(tls *TLS, p uintptr) (r int32) { + var x uint32 + _ = x + x = uint32(0) + for { + if !(Uint32FromInt32(int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(p)))))-int32('0')) < uint32(10)) { + break + } + x = Uint32FromInt32(int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(p)))))-int32('0')) + uint32(10)*x + goto _1 + _1: + ; + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + } + return Int32FromUint32(x) +} + +func _getoff(tls *TLS, p uintptr) (r int32) { + var neg, off, v1 int32 + _, _, _ = neg, off, v1 + neg = 0 + if int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(p))))) == int32('-') { + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + neg = int32(1) + } else { + if int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(p))))) == int32('+') { + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + } + } + off = int32(3600) * _getint2(tls, p) + if int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(p))))) == int32(':') { + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + off = off + int32(60)*_getint2(tls, p) + if int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(p))))) == int32(':') { + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + off = off + _getint2(tls, p) + } + } + if neg != 0 { + v1 = -off + } else { + v1 = off + } + return v1 +} + +func _getrule(tls *TLS, p uintptr, rule uintptr) { + var r, v1 int32 + _, _ = r, v1 + v1 = int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(p))))) + **(**int32)(__ccgo_up(rule)) = v1 + r = v1 + if r != int32('M') { + if r == int32('J') { + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + } else { + **(**int32)(__ccgo_up(rule)) = 0 + } + **(**int32)(__ccgo_up(rule + 1*4)) = _getint2(tls, p) + } else { + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + **(**int32)(__ccgo_up(rule + 1*4)) = _getint2(tls, p) + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + **(**int32)(__ccgo_up(rule + 2*4)) = _getint2(tls, p) + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + **(**int32)(__ccgo_up(rule + 3*4)) = _getint2(tls, p) + } + if int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(p))))) == int32('/') { + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + **(**int32)(__ccgo_up(rule + 4*4)) = _getoff(tls, p) + } else { + **(**int32)(__ccgo_up(rule + 4*4)) = int32(7200) + } +} + +func _getname(tls *TLS, d uintptr, p uintptr) { + var i, v3 int32 + _, _ = i, v3 + if int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(p))))) == int32('<') { + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + i = 0 + for { + if !(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(p)) + uintptr(i))) != 0 && int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(p)) + uintptr(i)))) != int32('>')) { + break + } + if i < int32(TZNAME_MAX) { + **(**int8)(__ccgo_up(d + uintptr(i))) = **(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(p)) + uintptr(i))) + } + goto _1 + _1: + ; + i = i + 1 + } + if **(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(p)) + uintptr(i))) != 0 { + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + } + } else { + i = 0 + for { + if !(Uint32FromInt32(int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(p)) + uintptr(i))))|int32(32)-int32('a')) < uint32(26)) { + break + } + if i < int32(TZNAME_MAX) { + **(**int8)(__ccgo_up(d + uintptr(i))) = **(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(p)) + uintptr(i))) + } + goto _2 + _2: + ; + i = i + 1 + } + } + **(**uintptr)(__ccgo_up(p)) += uintptr(i) + if i < int32(TZNAME_MAX) { + v3 = i + } else { + v3 = int32(TZNAME_MAX) + } + **(**int8)(__ccgo_up(d + uintptr(v3))) = 0 +} + +func _zi_read32(tls *TLS, z uintptr) (r Tuint32_t) { + return uint32(**(**uint8)(__ccgo_up(z)))< Uint64FromInt32(Int32FromInt32(PATH_MAX)+Int32FromInt32(1)) { + **(**uintptr)(__ccgo_up(bp + 288)) = uintptr(unsafe.Pointer(&X__utc)) + i = Uint64FromInt32(3) + } + if i >= _old_tz_size { + _old_tz_size = _old_tz_size * uint64(2) + if i >= _old_tz_size { + _old_tz_size = i + uint64(1) + } + if _old_tz_size > Uint64FromInt32(Int32FromInt32(PATH_MAX)+Int32FromInt32(2)) { + _old_tz_size = Uint64FromInt32(Int32FromInt32(PATH_MAX) + Int32FromInt32(2)) + } + _old_tz = Xmalloc(tls, _old_tz_size) + } + if _old_tz != 0 { + Xmemcpy(tls, _old_tz, **(**uintptr)(__ccgo_up(bp + 288)), i+uint64(1)) + } + posix_form = 0 + if int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 288))))) != int32(':') { + **(**uintptr)(__ccgo_up(bp + 296)) = **(**uintptr)(__ccgo_up(bp + 288)) + _getname(tls, bp+308, bp+296) + if **(**uintptr)(__ccgo_up(bp + 296)) != **(**uintptr)(__ccgo_up(bp + 288)) && (int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 296))))) == int32('+') || int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 296))))) == int32('-') || BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 296)))))-uint32('0') < uint32(10)) != 0 || !(Xstrcmp(tls, bp+308, __ccgo_ts+1745) != 0) || !(Xstrcmp(tls, bp+308, __ccgo_ts+1749) != 0)) { + posix_form = int32(1) + } + } + /* Non-suid can use an absolute tzfile pathname or a relative + * pathame beginning with "."; in secure mode, only the + * standard path will be searched. */ + if !(posix_form != 0) { + if int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 288))))) == int32(':') { + **(**uintptr)(__ccgo_up(bp + 288)) = **(**uintptr)(__ccgo_up(bp + 288)) + 1 + } + if int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 288))))) == int32('/') || int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 288))))) == int32('.') { + if !(X__libc.Fsecure != 0) || !(Xstrcmp(tls, **(**uintptr)(__ccgo_up(bp + 288)), __ccgo_ts+1730) != 0) { + map1 = X__map_file(tls, **(**uintptr)(__ccgo_up(bp + 288)), uintptr(unsafe.Pointer(&_map_size))) + } + } else { + l = _strlen(tls, **(**uintptr)(__ccgo_up(bp + 288))) + if l <= uint64(NAME_MAX) && !(Xstrchr(tls, **(**uintptr)(__ccgo_up(bp + 288)), int32('.')) != 0) { + Xmemcpy(tls, pathname, **(**uintptr)(__ccgo_up(bp + 288)), l+uint64(1)) + **(**int8)(__ccgo_up(pathname + uintptr(l))) = 0 + try = uintptr(unsafe.Pointer(&_search)) + for { + if !(!(map1 != 0) && **(**int8)(__ccgo_up(try)) != 0) { + break + } + l = _strlen(tls, try) + Xmemcpy(tls, pathname-uintptr(l), try, l) + map1 = X__map_file(tls, pathname-uintptr(l), uintptr(unsafe.Pointer(&_map_size))) + goto _3 + _3: + ; + try = try + uintptr(l+uint64(1)) + } + } + } + if !(map1 != 0) { + **(**uintptr)(__ccgo_up(bp + 288)) = uintptr(unsafe.Pointer(&X__utc)) + } + } + if map1 != 0 && (_map_size < uint64(44) || Xmemcmp(tls, map1, __ccgo_ts+1753, uint64(4)) != 0) { + X__munmap(tls, map1, _map_size) + map1 = uintptr(0) + **(**uintptr)(__ccgo_up(bp + 288)) = uintptr(unsafe.Pointer(&X__utc)) + } + _zi = map1 + if map1 != 0 { + scale = int32(2) + if Int32FromUint8(**(**uint8)(__ccgo_up(map1 + 4))) != int32('1') { + *(*[6]uint8)(unsafe.Pointer(bp)) = [6]uint8{ + 0: uint8(1), + 1: uint8(1), + 2: uint8(8), + 3: uint8(5), + 4: uint8(6), + 5: uint8(1), + } + skip = _zi_dotprod(tls, _zi+uintptr(20), bp, uint64(6)) + _trans = _zi + uintptr(skip) + uintptr(44) + uintptr(44) + scale = scale + 1 + } else { + _trans = _zi + uintptr(44) + } + _index = _trans + uintptr(_zi_read32(tls, _trans-uintptr(12))<> scale) + if !(n != 0) { + if alt != 0 { + **(**Tsize_t)(__ccgo_up(alt)) = uint64(0) + } + return uint64(0) + } + /* Binary search for 'most-recent rule before t'. */ + for n > uint64(1) { + m = a + n/uint64(2) + x = uint64(_zi_read32(tls, _trans+uintptr(m<> scale) + if a == n-uint64(1) { + return Uint64FromInt32(-Int32FromInt32(1)) + } + if a == uint64(0) { + x = uint64(_zi_read32(tls, _trans)) + if scale == int32(3) { + x = x<>(m-int32(1))&int32(1) + } + return r +} + +/* Convert a POSIX DST rule plus year to seconds since epoch. */ + +func _rule_to_secs(tls *TLS, rule uintptr, year int32) (r int64) { + bp := tls.Alloc(16) + defer tls.Free(16) + var d, days, m, n, wday, x int32 + var t int64 + var _ /* is_leap at bp+0 */ int32 + _, _, _, _, _, _, _ = d, days, m, n, t, wday, x + t = X__year_to_secs(tls, int64(year), bp) + if **(**int32)(__ccgo_up(rule)) != int32('M') { + x = **(**int32)(__ccgo_up(rule + 1*4)) + if **(**int32)(__ccgo_up(rule)) == int32('J') && (x < int32(60) || !(**(**int32)(__ccgo_up(bp)) != 0)) { + x = x - 1 + } + t = t + int64(int32(86400)*x) + } else { + m = **(**int32)(__ccgo_up(rule + 1*4)) + n = **(**int32)(__ccgo_up(rule + 2*4)) + d = **(**int32)(__ccgo_up(rule + 3*4)) + t = t + int64(X__month_to_secs(tls, m-int32(1), **(**int32)(__ccgo_up(bp)))) + wday = int32((t+int64(Int32FromInt32(4)*Int32FromInt32(86400)))%int64(Int32FromInt32(7)*Int32FromInt32(86400))) / int32(86400) + days = d - wday + if days < 0 { + days = days + int32(7) + } + if n == int32(5) && days+int32(28) >= _days_in_month1(tls, m, **(**int32)(__ccgo_up(bp))) { + n = int32(4) + } + t = t + int64(int32(86400)*(days+int32(7)*(n-int32(1)))) + } + t = t + int64(**(**int32)(__ccgo_up(rule + 4*4))) + return t +} + +/* Determine the time zone in effect for a given time in seconds since the + * epoch. It can be given in local or universal time. The results will + * indicate whether DST is in effect at the queried time, and will give both + * the GMT offset for the active zone/DST rule and the opposite DST. This + * enables a caller to efficiently adjust for the case where an explicit + * DST specification mismatches what would be in effect at the time. */ + +func X__secs_to_zone(tls *TLS, t int64, local int32, isdst uintptr, offset uintptr, oppoff uintptr, zonename uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v local=%v isdst=%v offset=%v oppoff=%v zonename=%v, (%v:)", tls, t, local, isdst, offset, oppoff, zonename, origin(2)) + } + bp := tls.Alloc(16) + defer tls.Free(16) + var i Tsize_t + var t0, t1, y int64 + var _ /* alt at bp+0 */ Tsize_t + _, _, _, _ = i, t0, t1, y + ___lock(tls, uintptr(unsafe.Pointer(&_lock4))) + _do_tzset(tls) + if _zi != 0 { + i = _scan_trans(tls, t, local, bp) + if i != Uint64FromInt32(-Int32FromInt32(1)) { + **(**int32)(__ccgo_up(isdst)) = Int32FromUint8(**(**uint8)(__ccgo_up(_types + uintptr(uint64(6)*i+uint64(4))))) + **(**int64)(__ccgo_up(offset)) = int64(Int32FromUint32(_zi_read32(tls, _types+uintptr(uint64(6)*i)))) + **(**uintptr)(__ccgo_up(zonename)) = _abbrevs + uintptr(**(**uint8)(__ccgo_up(_types + uintptr(uint64(6)*i+uint64(5))))) + if oppoff != 0 { + **(**int64)(__ccgo_up(oppoff)) = int64(Int32FromUint32(_zi_read32(tls, _types+uintptr(uint64(6)***(**Tsize_t)(__ccgo_up(bp)))))) + } + ___unlock(tls, uintptr(unsafe.Pointer(&_lock4))) + return + } + } + if !(Xdaylight != 0) { + goto std + } + /* FIXME: may be broken if DST changes right at year boundary? + * Also, this could be more efficient.*/ + y = t/int64(31556952) + int64(70) + for X__year_to_secs(tls, y, uintptr(0)) > t { + y = y - 1 + } + for X__year_to_secs(tls, y+int64(1), uintptr(0)) < t { + y = y + 1 + } + t0 = _rule_to_secs(tls, uintptr(unsafe.Pointer(&_r0)), int32(y)) + t1 = _rule_to_secs(tls, uintptr(unsafe.Pointer(&_r12)), int32(y)) + if !(local != 0) { + t0 = t0 + Xtimezone + t1 = t1 + int64(_dst_off) + } + if t0 < t1 { + if t >= t0 && t < t1 { + goto dst + } + goto std + } else { + if t >= t1 && t < t0 { + goto std + } + goto dst + } + goto std +std: + ; + **(**int32)(__ccgo_up(isdst)) = 0 + **(**int64)(__ccgo_up(offset)) = -Xtimezone + if oppoff != 0 { + **(**int64)(__ccgo_up(oppoff)) = int64(-_dst_off) + } + **(**uintptr)(__ccgo_up(zonename)) = Xtzname[0] + ___unlock(tls, uintptr(unsafe.Pointer(&_lock4))) + return + goto dst +dst: + ; + **(**int32)(__ccgo_up(isdst)) = int32(1) + **(**int64)(__ccgo_up(offset)) = int64(-_dst_off) + if oppoff != 0 { + **(**int64)(__ccgo_up(oppoff)) = -Xtimezone + } + **(**uintptr)(__ccgo_up(zonename)) = Xtzname[int32(1)] + ___unlock(tls, uintptr(unsafe.Pointer(&_lock4))) +} + +func ___tzset(tls *TLS) { + ___lock(tls, uintptr(unsafe.Pointer(&_lock4))) + _do_tzset(tls) + ___unlock(tls, uintptr(unsafe.Pointer(&_lock4))) +} + +func X__tm_to_tzname(tls *TLS, tm uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v tm=%v, (%v:)", tls, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + var p uintptr + _ = p + p = (*Ttm)(unsafe.Pointer(tm)).F__tm_zone + ___lock(tls, uintptr(unsafe.Pointer(&_lock4))) + _do_tzset(tls) + if p != uintptr(unsafe.Pointer(&X__utc)) && p != Xtzname[0] && p != Xtzname[int32(1)] && (!(_zi != 0) || uint64(p)-uint64(_abbrevs) >= Uint64FromInt64(int64(_abbrevs_end)-int64(_abbrevs))) { + p = __ccgo_ts + } + ___unlock(tls, uintptr(unsafe.Pointer(&_lock4))) + return p +} + +func X__year_to_secs(tls *TLS, year int64, is_leap uintptr) (r int64) { + if __ccgo_strace { + trc("tls=%v year=%v is_leap=%v, (%v:)", tls, year, is_leap, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var centuries, cycles, leaps, leaps1, rem, y int32 + var _ /* dummy at bp+0 */ int32 + _, _, _, _, _, _ = centuries, cycles, leaps, leaps1, rem, y + if Uint64FromInt64(year)-uint64(2) <= uint64(136) { + y = int32(year) + leaps = (y - int32(68)) >> int32(2) + if !((y-Int32FromInt32(68))&Int32FromInt32(3) != 0) { + leaps = leaps - 1 + if is_leap != 0 { + **(**int32)(__ccgo_up(is_leap)) = int32(1) + } + } else { + if is_leap != 0 { + **(**int32)(__ccgo_up(is_leap)) = 0 + } + } + return int64(int32(31536000)*(y-int32(70)) + int32(86400)*leaps) + } + if !(is_leap != 0) { + is_leap = bp + } + cycles = int32((year - int64(100)) / int64(400)) + rem = int32((year - int64(100)) % int64(400)) + if rem < 0 { + cycles = cycles - 1 + rem = rem + int32(400) + } + if !(rem != 0) { + **(**int32)(__ccgo_up(is_leap)) = int32(1) + centuries = 0 + leaps1 = 0 + } else { + if rem >= int32(200) { + if rem >= int32(300) { + centuries = int32(3) + rem = rem - int32(300) + } else { + centuries = int32(2) + rem = rem - int32(200) + } + } else { + if rem >= int32(100) { + centuries = int32(1) + rem = rem - int32(100) + } else { + centuries = 0 + } + } + if !(rem != 0) { + **(**int32)(__ccgo_up(is_leap)) = 0 + leaps1 = 0 + } else { + leaps1 = Int32FromUint32(Uint32FromInt32(rem) / uint32(4)) + rem = Int32FromUint32(uint32(rem) % Uint32FromUint32(4)) + **(**int32)(__ccgo_up(is_leap)) = BoolInt32(!(rem != 0)) + } + } + leaps1 = leaps1 + (int32(97)*cycles + int32(24)*centuries - **(**int32)(__ccgo_up(is_leap))) + return (year-int64(100))*int64(31536000) + int64(leaps1)*int64(86400) + int64(946684800) + int64(86400) +} + +func Xasctime(tls *TLS, tm uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v tm=%v, (%v:)", tls, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__asctime_r(tls, tm, uintptr(unsafe.Pointer(&_buf9))) +} + +var _buf9 [26]int8 + +func X__asctime_r(tls *TLS, tm uintptr, buf uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v tm=%v buf=%v, (%v:)", tls, tm, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + if Xsnprintf(tls, buf, uint64(26), __ccgo_ts+1758, VaList(bp+8, X__nl_langinfo_l(tls, int32(ABDAY_1)+(*Ttm)(unsafe.Pointer(tm)).Ftm_wday, uintptr(unsafe.Pointer(&X__c_locale))), X__nl_langinfo_l(tls, int32(ABMON_1)+(*Ttm)(unsafe.Pointer(tm)).Ftm_mon, uintptr(unsafe.Pointer(&X__c_locale))), (*Ttm)(unsafe.Pointer(tm)).Ftm_mday, (*Ttm)(unsafe.Pointer(tm)).Ftm_hour, (*Ttm)(unsafe.Pointer(tm)).Ftm_min, (*Ttm)(unsafe.Pointer(tm)).Ftm_sec, int32(1900)+(*Ttm)(unsafe.Pointer(tm)).Ftm_year)) >= int32(26) { + /* ISO C requires us to use the above format string, + * even if it will not fit in the buffer. Thus asctime_r + * is _supposed_ to crash if the fields in tm are too large. + * We follow this behavior and crash "gracefully" to warn + * application developers that they may not be so lucky + * on other implementations (e.g. stack smashing..). + */ + **(**int8)(__ccgo_up(UintptrFromInt32(0))) = 0 + } + return buf +} + +func Xasctime_r(tls *TLS, tm uintptr, buf uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v tm=%v buf=%v, (%v:)", tls, tm, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__asctime_r(tls, tm, buf) +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xclock(tls *TLS) (r Tclock_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* ts at bp+0 */ Ttimespec + if X__clock_gettime(tls, int32(CLOCK_PROCESS_CPUTIME_ID), bp) != 0 { + return int64(-int32(1)) + } + if (**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec > Int64FromInt64(0x7fffffffffffffff)/Int64FromInt32(1000000) || (**(**Ttimespec)(__ccgo_up(bp))).Ftv_nsec/int64(1000) > int64(0x7fffffffffffffff)-int64(1000000)*(**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec { + return int64(-int32(1)) + } + return (**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec*int64(1000000) + (**(**Ttimespec)(__ccgo_up(bp))).Ftv_nsec/int64(1000) +} + +func Xclock_getcpuclockid(tls *TLS, pid Tpid_t, clk uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v pid=%v clk=%v, (%v:)", tls, pid, clk, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var id Tclockid_t + var ret int32 + var _ /* ts at bp+0 */ Ttimespec + _, _ = id, ret + id = Int32FromUint32(Uint32FromInt32(-pid-Int32FromInt32(1))*uint32(8) + uint32(2)) + ret = int32(X__syscall2(tls, int64(SYS_clock_getres), int64(id), int64(bp))) + if ret == -int32(EINVAL) { + ret = -int32(ESRCH) + } + if ret != 0 { + return -ret + } + **(**Tclockid_t)(__ccgo_up(clk)) = id + return 0 +} + +func Xclock_getres(tls *TLS, clk Tclockid_t, ts uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v clk=%v ts=%v, (%v:)", tls, clk, ts, origin(2)) + defer func() { trc("-> %v", r) }() + } + /* If reaching this point, it's a 64-bit arch or time64-only + * 32-bit arch and we can get result directly into timespec. */ + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_clock_getres), int64(clk), int64(ts))))) +} + +func X__clock_gettime(tls *TLS, clk Tclockid_t, ts uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v clk=%v ts=%v, (%v:)", tls, clk, ts, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + r = int32(X__syscall2(tls, int64(SYS_clock_gettime), int64(clk), int64(ts))) + if r == -int32(ENOSYS) { + if clk == CLOCK_REALTIME { + X__syscall2(tls, int64(SYS_gettimeofday), int64(ts), int64(Int32FromInt32(0))) + (*Ttimespec)(unsafe.Pointer(ts)).Ftv_nsec = int64(int32((*Ttimespec)(unsafe.Pointer(ts)).Ftv_nsec) * int32(1000)) + return 0 + } + r = -int32(EINVAL) + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func Xclock_gettime(tls *TLS, clk Tclockid_t, ts uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v clk=%v ts=%v, (%v:)", tls, clk, ts, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__clock_gettime(tls, clk, ts) +} + +func X__clock_nanosleep(tls *TLS, clk Tclockid_t, flags int32, req uintptr, rem uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v clk=%v flags=%v req=%v rem=%v, (%v:)", tls, clk, flags, req, rem, origin(2)) + defer func() { trc("-> %v", r) }() + } + if clk == int32(CLOCK_THREAD_CPUTIME_ID) { + return int32(EINVAL) + } + if clk == CLOCK_REALTIME && !(flags != 0) { + return int32(-___syscall_cp(tls, int64(SYS_nanosleep), int64(req), int64(rem), 0, 0, 0, 0)) + } + return int32(-___syscall_cp(tls, int64(SYS_clock_nanosleep), int64(clk), int64(flags), int64(req), int64(rem), 0, 0)) +} + +func Xclock_nanosleep(tls *TLS, clk Tclockid_t, flags int32, req uintptr, rem uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v clk=%v flags=%v req=%v rem=%v, (%v:)", tls, clk, flags, req, rem, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__clock_nanosleep(tls, clk, flags, req, rem) +} + +func Xclock_settime(tls *TLS, clk Tclockid_t, ts uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v clk=%v ts=%v, (%v:)", tls, clk, ts, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_clock_settime), int64(clk), int64(ts))))) +} + +func Xctime(tls *TLS, t uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v, (%v:)", tls, t, origin(2)) + defer func() { trc("-> %v", r) }() + } + var tm uintptr + _ = tm + tm = Xlocaltime(tls, t) + if !(tm != 0) { + return uintptr(0) + } + return Xasctime(tls, tm) +} + +func Xctime_r(tls *TLS, t uintptr, buf uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v buf=%v, (%v:)", tls, t, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var tm_p, v1 uintptr + var _ /* tm at bp+0 */ Ttm + _, _ = tm_p, v1 + tm_p = Xlocaltime_r(tls, t, bp) + if tm_p != 0 { + v1 = Xasctime_r(tls, tm_p, buf) + } else { + v1 = uintptr(0) + } + return v1 +} + +func Xdifftime(tls *TLS, t1 Ttime_t, t0 Ttime_t) (r float64) { + if __ccgo_strace { + trc("tls=%v t1=%v t0=%v, (%v:)", tls, t1, t0, origin(2)) + defer func() { trc("-> %v", r) }() + } + return float64(t1 - t0) +} + +type Ttimeb = struct { + Ftime Ttime_t + Fmillitm uint16 + Ftimezone int16 + Fdstflag int16 +} + +func Xftime(tls *TLS, tp uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v tp=%v, (%v:)", tls, tp, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 int16 + var _ /* ts at bp+0 */ Ttimespec + _ = v1 + Xclock_gettime(tls, CLOCK_REALTIME, bp) + (*Ttimeb)(unsafe.Pointer(tp)).Ftime = (**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec + (*Ttimeb)(unsafe.Pointer(tp)).Fmillitm = Uint16FromInt64((**(**Ttimespec)(__ccgo_up(bp))).Ftv_nsec / int64(1000000)) + v1 = Int16FromInt32(0) + (*Ttimeb)(unsafe.Pointer(tp)).Fdstflag = v1 + (*Ttimeb)(unsafe.Pointer(tp)).Ftimezone = v1 + return 0 +} + +func Xgetdate(tls *TLS, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(112) + defer tls.Free(112) + var datemsk, f, p, ret uintptr + var _ /* cs at bp+100 */ int32 + var _ /* fmt at bp+0 */ [100]int8 + _, _, _, _ = datemsk, f, p, ret + ret = uintptr(0) + datemsk = Xgetenv(tls, __ccgo_ts+1790) + f = uintptr(0) + _pthread_setcancelstate(tls, PTHREAD_CANCEL_DEFERRED, bp+100) + if !(datemsk != 0) { + Xgetdate_err = int32(1) + goto out + } + f = Xfopen(tls, datemsk, __ccgo_ts+315) + if !(f != 0) { + if **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(ENOMEM) { + Xgetdate_err = int32(6) + } else { + Xgetdate_err = int32(2) + } + goto out + } + for Xfgets(tls, bp, int32(100), f) != 0 { + p = Xstrptime(tls, s, bp, uintptr(unsafe.Pointer(&_tmbuf))) + if p != 0 && !(**(**int8)(__ccgo_up(p)) != 0) { + ret = uintptr(unsafe.Pointer(&_tmbuf)) + goto out + } + } + if Xferror(tls, f) != 0 { + Xgetdate_err = int32(5) + } else { + Xgetdate_err = int32(7) + } + goto out +out: + ; + if f != 0 { + Xfclose(tls, f) + } + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 100)), uintptr(0)) + return ret +} + +var _tmbuf Ttm + +func Xgettimeofday(tls *TLS, tv uintptr, tz uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v tv=%v tz=%v, (%v:)", tls, tv, tz, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* ts at bp+0 */ Ttimespec + if !(tv != 0) { + return 0 + } + Xclock_gettime(tls, CLOCK_REALTIME, bp) + (*Ttimeval)(unsafe.Pointer(tv)).Ftv_sec = (**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec + (*Ttimeval)(unsafe.Pointer(tv)).Ftv_usec = int64(int32((**(**Ttimespec)(__ccgo_up(bp))).Ftv_nsec) / int32(1000)) + return 0 +} + +func Xgmtime(tls *TLS, t uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v, (%v:)", tls, t, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__gmtime_r(tls, t, uintptr(unsafe.Pointer(&_tm))) +} + +var _tm Ttm + +func X__gmtime_r(tls *TLS, t uintptr, tm uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v tm=%v, (%v:)", tls, t, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + if X__secs_to_tm(tls, int64(**(**Ttime_t)(__ccgo_up(t))), tm) < 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOVERFLOW) + return uintptr(0) + } + (*Ttm)(unsafe.Pointer(tm)).Ftm_isdst = 0 + (*Ttm)(unsafe.Pointer(tm)).F__tm_gmtoff = 0 + (*Ttm)(unsafe.Pointer(tm)).F__tm_zone = uintptr(unsafe.Pointer(&X__utc)) + return tm +} + +func Xgmtime_r(tls *TLS, t uintptr, tm uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v tm=%v, (%v:)", tls, t, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__gmtime_r(tls, t, tm) +} + +func Xlocaltime(tls *TLS, t uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v, (%v:)", tls, t, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__localtime_r(tls, t, uintptr(unsafe.Pointer(&_tm1))) +} + +var _tm1 Ttm + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func X__localtime_r(tls *TLS, t uintptr, tm uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v tm=%v, (%v:)", tls, t, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + /* Reject time_t values whose year would overflow int because + * __secs_to_zone cannot safely handle them. */ + if int64(**(**Ttime_t)(__ccgo_up(t))) < int64(-Int32FromInt32(1)-Int32FromInt32(0x7fffffff))*Int64FromInt64(31622400) || int64(**(**Ttime_t)(__ccgo_up(t))) > Int64FromInt32(INT_MAX)*Int64FromInt64(31622400) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOVERFLOW) + return uintptr(0) + } + X__secs_to_zone(tls, int64(**(**Ttime_t)(__ccgo_up(t))), 0, tm+32, tm+40, uintptr(0), tm+48) + if X__secs_to_tm(tls, int64(**(**Ttime_t)(__ccgo_up(t)))+(*Ttm)(unsafe.Pointer(tm)).F__tm_gmtoff, tm) < 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOVERFLOW) + return uintptr(0) + } + return tm +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xlocaltime_r(tls *TLS, t uintptr, tm uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v tm=%v, (%v:)", tls, t, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__localtime_r(tls, t, tm) +} + +func Xmktime(tls *TLS, tm uintptr) (r Ttime_t) { + if __ccgo_strace { + trc("tls=%v tm=%v, (%v:)", tls, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var t int64 + var _ /* new at bp+0 */ Ttm + var _ /* opp at bp+56 */ int64 + _ = t + t = X__tm_to_secs(tls, tm) + X__secs_to_zone(tls, t, int32(1), bp+32, bp+40, bp+56, bp+48) + if (*Ttm)(unsafe.Pointer(tm)).Ftm_isdst >= 0 && (**(**Ttm)(__ccgo_up(bp))).Ftm_isdst != (*Ttm)(unsafe.Pointer(tm)).Ftm_isdst { + t = t - int64(**(**int64)(__ccgo_up(bp + 56))-(**(**Ttm)(__ccgo_up(bp))).F__tm_gmtoff) + } + t = t - int64((**(**Ttm)(__ccgo_up(bp))).F__tm_gmtoff) + if t != t { + goto error + } + X__secs_to_zone(tls, t, 0, bp+32, bp+40, bp+56, bp+48) + if X__secs_to_tm(tls, t+int64((**(**Ttm)(__ccgo_up(bp))).F__tm_gmtoff), bp) < 0 { + goto error + } + **(**Ttm)(__ccgo_up(tm)) = **(**Ttm)(__ccgo_up(bp)) + return t + goto error +error: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOVERFLOW) + return int64(-int32(1)) +} + +func Xnanosleep(tls *TLS, req uintptr, rem uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v req=%v rem=%v, (%v:)", tls, req, rem, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt32(-X__clock_nanosleep(tls, CLOCK_REALTIME, 0, req, rem)))) +} + +func _is_leap(tls *TLS, y int32) (r int32) { + /* Avoid overflow */ + if y > Int32FromInt32(INT_MAX)-Int32FromInt32(1900) { + y = y - int32(2000) + } + y = y + int32(1900) + return BoolInt32(!(y%Int32FromInt32(4) != 0) && (y%int32(100) != 0 || !(y%Int32FromInt32(400) != 0))) +} + +func _week_num(tls *TLS, tm uintptr) (r int32) { + var dec31, jan1, val int32 + _, _, _ = dec31, jan1, val + val = Int32FromUint32((Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_yday) + uint32(7) - (Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_wday)+uint32(6))%uint32(7)) / uint32(7)) + /* If 1 Jan is just 1-3 days past Monday, + * the previous week is also in this year. */ + if (Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_wday)+uint32(371)-Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_yday)-uint32(2))%uint32(7) <= uint32(2) { + val = val + 1 + } + if !(val != 0) { + val = int32(52) + /* If 31 December of prev year a Thursday, + * or Friday of a leap year, then the + * prev year has 53 weeks. */ + dec31 = Int32FromUint32((Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_wday) + uint32(7) - Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_yday) - uint32(1)) % uint32(7)) + if dec31 == int32(4) || dec31 == int32(5) && _is_leap(tls, (*Ttm)(unsafe.Pointer(tm)).Ftm_year%int32(400)-int32(1)) != 0 { + val = val + 1 + } + } else { + if val == int32(53) { + /* If 1 January is not a Thursday, and not + * a Wednesday of a leap year, then this + * year has only 52 weeks. */ + jan1 = Int32FromUint32((Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_wday) + uint32(371) - Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_yday)) % uint32(7)) + if jan1 != int32(4) && (jan1 != int32(3) || !(_is_leap(tls, (*Ttm)(unsafe.Pointer(tm)).Ftm_year) != 0)) { + val = int32(1) + } + } + } + return val +} + +func X__strftime_fmt_1(tls *TLS, s uintptr, l uintptr, f int32, tm uintptr, loc Tlocale_t, pad int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v l=%v f=%v tm=%v loc=%v pad=%v, (%v:)", tls, s, l, f, tm, loc, pad, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var d, fmt, v4, v5 uintptr + var def_pad, width, v1 int32 + var item Tnl_item + var val int64 + _, _, _, _, _, _, _, _, _ = d, def_pad, fmt, item, val, width, v1, v4, v5 + fmt = __ccgo_ts + 1652 + width = int32(2) + def_pad = int32('0') + switch f { + case int32('a'): + if Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_wday) > uint32(6) { + goto string + } + item = int32(ABDAY_1) + (*Ttm)(unsafe.Pointer(tm)).Ftm_wday + goto nl_strcat + case int32('A'): + if Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_wday) > uint32(6) { + goto string + } + item = int32(DAY_1) + (*Ttm)(unsafe.Pointer(tm)).Ftm_wday + goto nl_strcat + case int32('h'): + fallthrough + case int32('b'): + if Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_mon) > uint32(11) { + goto string + } + item = int32(ABMON_1) + (*Ttm)(unsafe.Pointer(tm)).Ftm_mon + goto nl_strcat + case int32('B'): + if Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_mon) > uint32(11) { + goto string + } + item = int32(MON_1) + (*Ttm)(unsafe.Pointer(tm)).Ftm_mon + goto nl_strcat + case int32('c'): + item = int32(D_T_FMT) + goto nl_strftime + case int32('C'): + val = (int64(1900) + int64((*Ttm)(unsafe.Pointer(tm)).Ftm_year)) / int64(100) + goto number + case int32('e'): + def_pad = int32('_') + fallthrough + case int32('d'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_mday) + goto number + case int32('D'): + fmt = __ccgo_ts + 1798 + goto recu_strftime + case int32('F'): + fmt = __ccgo_ts + 1807 + goto recu_strftime + case int32('g'): + fallthrough + case int32('G'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_year) + int64(1900) + if (*Ttm)(unsafe.Pointer(tm)).Ftm_yday < int32(3) && _week_num(tls, tm) != int32(1) { + val = val - 1 + } else { + if (*Ttm)(unsafe.Pointer(tm)).Ftm_yday > int32(360) && _week_num(tls, tm) == int32(1) { + val = val + 1 + } + } + if f == int32('g') { + val = val % int64(100) + } else { + width = int32(4) + } + goto number + case int32('H'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_hour) + goto number + case int32('l'): + def_pad = int32('_') + fallthrough + case int32('I'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_hour) + if !(val != 0) { + val = int64(12) + } else { + if val > int64(12) { + val = val - int64(12) + } + } + goto number + case int32('j'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_yday + int32(1)) + width = int32(3) + goto number + case int32('k'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_hour) + def_pad = int32('_') + goto number + case int32('m'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_mon + int32(1)) + goto number + case int32('M'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_min) + goto number + case int32('n'): + **(**Tsize_t)(__ccgo_up(l)) = uint64(1) + return __ccgo_ts + 301 + case int32('p'): + if (*Ttm)(unsafe.Pointer(tm)).Ftm_hour >= int32(12) { + v1 = int32(PM_STR) + } else { + v1 = int32(AM_STR) + } + item = v1 + goto nl_strcat + case int32('P'): + if (*Ttm)(unsafe.Pointer(tm)).Ftm_hour >= int32(12) { + v1 = int32(PM_STR) + } else { + v1 = int32(AM_STR) + } + item = v1 + fmt = X__nl_langinfo_l(tls, item, loc) + d = s + **(**Tsize_t)(__ccgo_up(l)) = uint64(0) + for { + if !(**(**int8)(__ccgo_up(fmt)) != 0) { + break + } + v4 = d + d = d + 1 + v5 = fmt + fmt = fmt + 1 + **(**int8)(__ccgo_up(v4)) = int8(Xtolower(tls, int32(**(**int8)(__ccgo_up(v5))))) + goto _3 + _3: + ; + **(**Tsize_t)(__ccgo_up(l)) = **(**Tsize_t)(__ccgo_up(l)) + 1 + } + return s + case int32('r'): + item = int32(T_FMT_AMPM) + goto nl_strftime + case int32('R'): + fmt = __ccgo_ts + 1816 + goto recu_strftime + case int32('s'): + val = X__tm_to_secs(tls, tm) - (*Ttm)(unsafe.Pointer(tm)).F__tm_gmtoff + width = int32(1) + goto number + case int32('S'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_sec) + goto number + case int32('t'): + **(**Tsize_t)(__ccgo_up(l)) = uint64(1) + return __ccgo_ts + 1390 + case int32('T'): + fmt = __ccgo_ts + 1822 + goto recu_strftime + case int32('u'): + if (*Ttm)(unsafe.Pointer(tm)).Ftm_wday != 0 { + v1 = (*Ttm)(unsafe.Pointer(tm)).Ftm_wday + } else { + v1 = int32(7) + } + val = int64(v1) + width = int32(1) + goto number + case int32('U'): + val = Int64FromUint32((Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_yday) + uint32(7) - Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_wday)) / uint32(7)) + goto number + case int32('W'): + val = Int64FromUint32((Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_yday) + uint32(7) - (Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_wday)+uint32(6))%uint32(7)) / uint32(7)) + goto number + case int32('V'): + val = int64(_week_num(tls, tm)) + goto number + case int32('w'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_wday) + width = int32(1) + goto number + case int32('x'): + item = int32(D_FMT) + goto nl_strftime + case int32('X'): + item = int32(T_FMT) + goto nl_strftime + case int32('y'): + val = (int64((*Ttm)(unsafe.Pointer(tm)).Ftm_year) + int64(1900)) % int64(100) + if val < 0 { + val = -val + } + goto number + case int32('Y'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_year) + int64(1900) + if val >= int64(10000) { + **(**Tsize_t)(__ccgo_up(l)) = Uint64FromInt32(Xsnprintf(tls, s, uint64(100), __ccgo_ts+1831, VaList(bp+8, val))) + return s + } + width = int32(4) + goto number + case int32('z'): + if (*Ttm)(unsafe.Pointer(tm)).Ftm_isdst < 0 { + **(**Tsize_t)(__ccgo_up(l)) = uint64(0) + return __ccgo_ts + } + **(**Tsize_t)(__ccgo_up(l)) = Uint64FromInt32(Xsnprintf(tls, s, uint64(100), __ccgo_ts+1837, VaList(bp+8, (*Ttm)(unsafe.Pointer(tm)).F__tm_gmtoff/int64(3600)*int64(100)+(*Ttm)(unsafe.Pointer(tm)).F__tm_gmtoff%int64(3600)/int64(60)))) + return s + case int32('Z'): + if (*Ttm)(unsafe.Pointer(tm)).Ftm_isdst < 0 { + **(**Tsize_t)(__ccgo_up(l)) = uint64(0) + return __ccgo_ts + } + fmt = X__tm_to_tzname(tls, tm) + goto string + case int32('%'): + **(**Tsize_t)(__ccgo_up(l)) = uint64(1) + return __ccgo_ts + 348 + default: + return uintptr(0) + } + goto number +number: + ; + if pad != 0 { + v1 = pad + } else { + v1 = def_pad + } + switch v1 { + case int32('-'): + **(**Tsize_t)(__ccgo_up(l)) = Uint64FromInt32(Xsnprintf(tls, s, uint64(100), __ccgo_ts+1844, VaList(bp+8, val))) + case int32('_'): + **(**Tsize_t)(__ccgo_up(l)) = Uint64FromInt32(Xsnprintf(tls, s, uint64(100), __ccgo_ts+1849, VaList(bp+8, width, val))) + case int32('0'): + fallthrough + default: + **(**Tsize_t)(__ccgo_up(l)) = Uint64FromInt32(Xsnprintf(tls, s, uint64(100), __ccgo_ts+1855, VaList(bp+8, width, val))) + break + } + return s + goto nl_strcat +nl_strcat: + ; + fmt = X__nl_langinfo_l(tls, item, loc) + goto string +string: + ; + **(**Tsize_t)(__ccgo_up(l)) = _strlen(tls, fmt) + return fmt + goto nl_strftime +nl_strftime: + ; + fmt = X__nl_langinfo_l(tls, item, loc) + goto recu_strftime +recu_strftime: + ; + **(**Tsize_t)(__ccgo_up(l)) = X__strftime_l(tls, s, uint64(100), fmt, tm, loc) + if !(**(**Tsize_t)(__ccgo_up(l)) != 0) { + return uintptr(0) + } + return s +} + +func X__strftime_l(tls *TLS, s uintptr, n Tsize_t, f uintptr, tm uintptr, loc Tlocale_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v f=%v tm=%v loc=%v, (%v:)", tls, s, n, f, tm, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(128) + defer tls.Free(128) + var d, l, v2 Tsize_t + var pad, plus, v4 int32 + var t, v3 uintptr + var width uint64 + var v9 bool + var _ /* buf at bp+8 */ [100]int8 + var _ /* k at bp+0 */ Tsize_t + var _ /* p at bp+112 */ uintptr + _, _, _, _, _, _, _, _, _, _ = d, l, pad, plus, t, width, v2, v3, v4, v9 + l = uint64(0) + for { + if !(l < n) { + break + } + if !(**(**int8)(__ccgo_up(f)) != 0) { + **(**int8)(__ccgo_up(s + uintptr(l))) = 0 + return l + } + if int32(**(**int8)(__ccgo_up(f))) != int32('%') { + v2 = l + l = l + 1 + **(**int8)(__ccgo_up(s + uintptr(v2))) = **(**int8)(__ccgo_up(f)) + goto _1 + } + f = f + 1 + pad = 0 + if int32(**(**int8)(__ccgo_up(f))) == int32('-') || int32(**(**int8)(__ccgo_up(f))) == int32('_') || int32(**(**int8)(__ccgo_up(f))) == int32('0') { + v3 = f + f = f + 1 + pad = int32(**(**int8)(__ccgo_up(v3))) + } + v4 = BoolInt32(int32(**(**int8)(__ccgo_up(f))) == Int32FromUint8('+')) + plus = v4 + if v4 != 0 { + f = f + 1 + } + if BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(f)))-uint32('0') < uint32(10)) != 0 { + width = Xstrtoul(tls, f, bp+112, int32(10)) + } else { + width = uint64(0) + **(**uintptr)(__ccgo_up(bp + 112)) = f + } + if int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 112))))) == int32('C') || int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 112))))) == int32('F') || int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 112))))) == int32('G') || int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 112))))) == int32('Y') { + if !(width != 0) && **(**uintptr)(__ccgo_up(bp + 112)) != f { + width = uint64(1) + } + } else { + width = uint64(0) + } + f = **(**uintptr)(__ccgo_up(bp + 112)) + if int32(**(**int8)(__ccgo_up(f))) == int32('E') || int32(**(**int8)(__ccgo_up(f))) == int32('O') { + f = f + 1 + } + t = X__strftime_fmt_1(tls, bp+8, bp, int32(**(**int8)(__ccgo_up(f))), tm, loc, pad) + if !(t != 0) { + break + } + if width != 0 { + /* Trim off any sign and leading zeros, then + * count remaining digits to determine behavior + * for the + flag. */ + if int32(**(**int8)(__ccgo_up(t))) == int32('+') || int32(**(**int8)(__ccgo_up(t))) == int32('-') { + t = t + 1 + **(**Tsize_t)(__ccgo_up(bp)) = **(**Tsize_t)(__ccgo_up(bp)) - 1 + } + for { + if !(int32(**(**int8)(__ccgo_up(t))) == int32('0') && Uint32FromInt32(int32(**(**int8)(__ccgo_up(t + 1)))-int32('0')) < uint32(10)) { + break + } + goto _5 + _5: + ; + t = t + 1 + **(**Tsize_t)(__ccgo_up(bp)) = **(**Tsize_t)(__ccgo_up(bp)) - 1 + } + if width < **(**Tsize_t)(__ccgo_up(bp)) { + width = **(**Tsize_t)(__ccgo_up(bp)) + } + d = uint64(0) + for { + if !(Uint32FromInt32(int32(**(**int8)(__ccgo_up(t + uintptr(d))))-int32('0')) < uint32(10)) { + break + } + goto _6 + _6: + ; + d = d + 1 + } + if (*Ttm)(unsafe.Pointer(tm)).Ftm_year < -int32(1900) { + v2 = l + l = l + 1 + **(**int8)(__ccgo_up(s + uintptr(v2))) = int8('-') + width = width - 1 + } else { + if v9 = plus != 0; v9 { + if int32(**(**int8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 112))))) == int32('C') { + v4 = int32(3) + } else { + v4 = int32(5) + } + } + if v9 && d+(width-**(**Tsize_t)(__ccgo_up(bp))) >= Uint64FromInt32(v4) { + v2 = l + l = l + 1 + **(**int8)(__ccgo_up(s + uintptr(v2))) = int8('+') + width = width - 1 + } + } + for { + if !(width > **(**Tsize_t)(__ccgo_up(bp)) && l < n) { + break + } + v2 = l + l = l + 1 + **(**int8)(__ccgo_up(s + uintptr(v2))) = int8('0') + goto _11 + _11: + ; + width = width - 1 + } + } + if **(**Tsize_t)(__ccgo_up(bp)) > n-l { + **(**Tsize_t)(__ccgo_up(bp)) = n - l + } + Xmemcpy(tls, s+uintptr(l), t, **(**Tsize_t)(__ccgo_up(bp))) + l = l + **(**Tsize_t)(__ccgo_up(bp)) + goto _1 + _1: + ; + f = f + 1 + } + if n != 0 { + if l == n { + l = n - uint64(1) + } + **(**int8)(__ccgo_up(s + uintptr(l))) = 0 + } + return uint64(0) +} + +func Xstrftime(tls *TLS, s uintptr, n Tsize_t, f uintptr, tm uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v f=%v tm=%v, (%v:)", tls, s, n, f, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__strftime_l(tls, s, n, f, tm, (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale) +} + +func Xstrftime_l(tls *TLS, s uintptr, n Tsize_t, f uintptr, tm uintptr, loc Tlocale_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v f=%v tm=%v loc=%v, (%v:)", tls, s, n, f, tm, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__strftime_l(tls, s, n, f, tm, loc) +} + +func Xstrptime(tls *TLS, s uintptr, f uintptr, tm uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v f=%v tm=%v, (%v:)", tls, s, f, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var adj, i, min, neg, range1, w, want_century, v1, v2, v5, v6 int32 + var dest, ex, v9 uintptr + var len1 Tsize_t + var v8 bool + var _ /* century at bp+4 */ int32 + var _ /* dummy at bp+0 */ int32 + var _ /* new_f at bp+16 */ uintptr + var _ /* relyear at bp+8 */ int32 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = adj, dest, ex, i, len1, min, neg, range1, w, want_century, v1, v2, v5, v6, v8, v9 + want_century = 0 + **(**int32)(__ccgo_up(bp + 4)) = 0 + **(**int32)(__ccgo_up(bp + 8)) = 0 + for **(**int8)(__ccgo_up(f)) != 0 { + if int32(**(**int8)(__ccgo_up(f))) != int32('%') { + v1 = int32(**(**int8)(__ccgo_up(f))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _3 + _3: + if v2 != 0 { + for { + if v8 = **(**int8)(__ccgo_up(s)) != 0; v8 { + v5 = int32(**(**int8)(__ccgo_up(s))) + v6 = BoolInt32(v5 == int32(' ') || Uint32FromInt32(v5)-uint32('\t') < uint32(5)) + goto _7 + _7: + } + if !(v8 && v6 != 0) { + break + } + goto _4 + _4: + ; + s = s + 1 + } + } else { + if int32(**(**int8)(__ccgo_up(s))) != int32(**(**int8)(__ccgo_up(f))) { + return uintptr(0) + } else { + s = s + 1 + } + } + f = f + 1 + continue + } + f = f + 1 + if int32(**(**int8)(__ccgo_up(f))) == int32('+') { + f = f + 1 + } + if BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(f)))-uint32('0') < uint32(10)) != 0 { + w = Int32FromUint64(Xstrtoul(tls, f, bp+16, int32(10))) + f = **(**uintptr)(__ccgo_up(bp + 16)) + } else { + w = -int32(1) + } + adj = 0 + v9 = f + f = f + 1 + switch int32(**(**int8)(__ccgo_up(v9))) { + case int32('A'): + goto _10 + case int32('a'): + goto _11 + case int32('h'): + goto _12 + case int32('B'): + goto _13 + case int32('b'): + goto _14 + case int32('c'): + goto _15 + case int32('C'): + goto _16 + case int32('e'): + goto _17 + case int32('d'): + goto _18 + case int32('D'): + goto _19 + case int32('H'): + goto _20 + case int32('I'): + goto _21 + case int32('j'): + goto _22 + case int32('m'): + goto _23 + case int32('M'): + goto _24 + case int32('t'): + goto _25 + case int32('n'): + goto _26 + case int32('p'): + goto _27 + case int32('r'): + goto _28 + case int32('R'): + goto _29 + case int32('S'): + goto _30 + case int32('T'): + goto _31 + case int32('W'): + goto _32 + case int32('U'): + goto _33 + case int32('w'): + goto _34 + case int32('x'): + goto _35 + case int32('X'): + goto _36 + case int32('y'): + goto _37 + case int32('Y'): + goto _38 + case int32('%'): + goto _39 + default: + goto _40 + } + goto _41 + _11: + ; + _10: + ; + dest = tm + 24 + min = int32(ABDAY_1) + range1 = int32(7) + goto symbolic_range + _14: + ; + _13: + ; + _12: + ; + dest = tm + 16 + min = int32(ABMON_1) + range1 = int32(12) + goto symbolic_range + _15: + ; + s = Xstrptime(tls, s, Xnl_langinfo(tls, int32(D_T_FMT)), tm) + if !(s != 0) { + return uintptr(0) + } + goto _41 + _16: + ; + dest = bp + 4 + if w < 0 { + w = int32(2) + } + want_century = want_century | int32(2) + goto numeric_digits + _18: + ; + _17: + ; + dest = tm + 12 + min = int32(1) + range1 = int32(31) + goto numeric_range + _19: + ; + s = Xstrptime(tls, s, __ccgo_ts+1798, tm) + if !(s != 0) { + return uintptr(0) + } + goto _41 + _20: + ; + dest = tm + 8 + min = 0 + range1 = int32(24) + goto numeric_range + _21: + ; + dest = tm + 8 + min = int32(1) + range1 = int32(12) + goto numeric_range + _22: + ; + dest = tm + 28 + min = int32(1) + range1 = int32(366) + adj = int32(1) + goto numeric_range + _23: + ; + dest = tm + 16 + min = int32(1) + range1 = int32(12) + adj = int32(1) + goto numeric_range + _24: + ; + dest = tm + 4 + min = 0 + range1 = int32(60) + goto numeric_range + _26: + ; + _25: + ; + _44: + ; + if v8 = **(**int8)(__ccgo_up(s)) != 0; v8 { + v1 = int32(**(**int8)(__ccgo_up(s))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _47 + _47: + } + if !(v8 && v2 != 0) { + goto _42 + } + goto _43 + _43: + ; + s = s + 1 + goto _44 + goto _42 + _42: + ; + goto _41 + _27: + ; + ex = Xnl_langinfo(tls, int32(AM_STR)) + len1 = _strlen(tls, ex) + if !(Xstrncasecmp(tls, s, ex, len1) != 0) { + **(**int32)(__ccgo_up(tm + 8)) %= int32(12) + s = s + uintptr(len1) + goto _41 + } + ex = Xnl_langinfo(tls, int32(PM_STR)) + len1 = _strlen(tls, ex) + if !(Xstrncasecmp(tls, s, ex, len1) != 0) { + **(**int32)(__ccgo_up(tm + 8)) %= int32(12) + **(**int32)(__ccgo_up(tm + 8)) += int32(12) + s = s + uintptr(len1) + goto _41 + } + return uintptr(0) + _28: + ; + s = Xstrptime(tls, s, Xnl_langinfo(tls, int32(T_FMT_AMPM)), tm) + if !(s != 0) { + return uintptr(0) + } + goto _41 + _29: + ; + s = Xstrptime(tls, s, __ccgo_ts+1816, tm) + if !(s != 0) { + return uintptr(0) + } + goto _41 + _30: + ; + dest = tm + min = 0 + range1 = int32(61) + goto numeric_range + _31: + ; + s = Xstrptime(tls, s, __ccgo_ts+1822, tm) + if !(s != 0) { + return uintptr(0) + } + goto _41 + _33: + ; + _32: + ; + /* Throw away result, for now. (FIXME?) */ + dest = bp + min = 0 + range1 = int32(54) + goto numeric_range + _34: + ; + dest = tm + 24 + min = 0 + range1 = int32(7) + goto numeric_range + _35: + ; + s = Xstrptime(tls, s, Xnl_langinfo(tls, int32(D_FMT)), tm) + if !(s != 0) { + return uintptr(0) + } + goto _41 + _36: + ; + s = Xstrptime(tls, s, Xnl_langinfo(tls, int32(T_FMT)), tm) + if !(s != 0) { + return uintptr(0) + } + goto _41 + _37: + ; + dest = bp + 8 + w = int32(2) + want_century = want_century | int32(1) + goto numeric_digits + _38: + ; + dest = tm + 20 + if w < 0 { + w = int32(4) + } + adj = int32(1900) + want_century = 0 + goto numeric_digits + _39: + ; + v9 = s + s = s + 1 + if int32(**(**int8)(__ccgo_up(v9))) != int32('%') { + return uintptr(0) + } + goto _41 + _40: + ; + return uintptr(0) + goto numeric_range + numeric_range: + ; + if !(BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(s)))-Uint32FromUint8('0') < Uint32FromInt32(10)) != 0) { + return uintptr(0) + } + **(**int32)(__ccgo_up(dest)) = 0 + i = int32(1) + for { + if !(i <= min+range1 && BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(s)))-uint32('0') < uint32(10)) != 0) { + break + } + v9 = s + s = s + 1 + **(**int32)(__ccgo_up(dest)) = **(**int32)(__ccgo_up(dest))*int32(10) + int32(**(**int8)(__ccgo_up(v9))) - int32('0') + goto _50 + _50: + ; + i = i * int32(10) + } + if Uint32FromInt32(**(**int32)(__ccgo_up(dest))-min) >= Uint32FromInt32(range1) { + return uintptr(0) + } + **(**int32)(__ccgo_up(dest)) -= adj + switch int64(dest) - int64(tm) { + case Int64FromUint64(uint64(UintptrFromInt32(0) + 28)): + } + goto update + goto numeric_digits + numeric_digits: + ; + neg = 0 + if int32(**(**int8)(__ccgo_up(s))) == int32('+') { + s = s + 1 + } else { + if int32(**(**int8)(__ccgo_up(s))) == int32('-') { + neg = int32(1) + s = s + 1 + } + } + if !(BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(s)))-Uint32FromUint8('0') < Uint32FromInt32(10)) != 0) { + return uintptr(0) + } + v1 = Int32FromInt32(0) + i = v1 + **(**int32)(__ccgo_up(dest)) = v1 + for { + if !(i < w && BoolInt32(Uint32FromInt8(**(**int8)(__ccgo_up(s)))-uint32('0') < uint32(10)) != 0) { + break + } + v9 = s + s = s + 1 + **(**int32)(__ccgo_up(dest)) = **(**int32)(__ccgo_up(dest))*int32(10) + int32(**(**int8)(__ccgo_up(v9))) - int32('0') + goto _52 + _52: + ; + i = i + 1 + } + if neg != 0 { + **(**int32)(__ccgo_up(dest)) = -**(**int32)(__ccgo_up(dest)) + } + **(**int32)(__ccgo_up(dest)) -= adj + goto update + goto symbolic_range + symbolic_range: + ; + i = int32(2)*range1 - int32(1) + for { + if !(i >= 0) { + break + } + ex = Xnl_langinfo(tls, min+i) + len1 = _strlen(tls, ex) + if Xstrncasecmp(tls, s, ex, len1) != 0 { + goto _55 + } + s = s + uintptr(len1) + **(**int32)(__ccgo_up(dest)) = i % range1 + break + goto _55 + _55: + ; + i = i - 1 + } + if i < 0 { + return uintptr(0) + } + goto update + goto update + update: + ; + //FIXME + _41: + } + if want_century != 0 { + (*Ttm)(unsafe.Pointer(tm)).Ftm_year = **(**int32)(__ccgo_up(bp + 8)) + if want_century&int32(2) != 0 { + **(**int32)(__ccgo_up(tm + 20)) += **(**int32)(__ccgo_up(bp + 4))*int32(100) - int32(1900) + } else { + if (*Ttm)(unsafe.Pointer(tm)).Ftm_year <= int32(68) { + **(**int32)(__ccgo_up(tm + 20)) += int32(100) + } + } + } + return s +} + +func Xtime(tls *TLS, t uintptr) (r Ttime_t) { + if __ccgo_strace { + trc("tls=%v t=%v, (%v:)", tls, t, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* ts at bp+0 */ Ttimespec + X__clock_gettime(tls, CLOCK_REALTIME, bp) + if t != 0 { + **(**Ttime_t)(__ccgo_up(t)) = (**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec + } + return (**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec +} + +func Xtimegm(tls *TLS, tm uintptr) (r Ttime_t) { + if __ccgo_strace { + trc("tls=%v tm=%v, (%v:)", tls, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var t int64 + var _ /* new at bp+0 */ Ttm1 + _ = t + t = X__tm_to_secs(tls, tm) + if X__secs_to_tm(tls, t, bp) < 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOVERFLOW) + return int64(-int32(1)) + } + **(**Ttm1)(__ccgo_up(tm)) = **(**Ttm1)(__ccgo_up(bp)) + (*Ttm1)(unsafe.Pointer(tm)).Ftm_isdst = 0 + (*Ttm1)(unsafe.Pointer(tm)).Ftm_gmtoff = 0 + (*Ttm1)(unsafe.Pointer(tm)).Ftm_zone = uintptr(unsafe.Pointer(&X__utc)) + return t +} + +func Xtimer_delete(tls *TLS, t Ttimer_t) (r int32) { + if __ccgo_strace { + trc("tls=%v t=%v, (%v:)", tls, t, origin(2)) + defer func() { trc("-> %v", r) }() + } + var td Tpthread_t + _ = td + if int64(t) < 0 { + td = uintptr(uint64(t) << Int32FromInt32(1)) + // __asm__ __volatile__ ("dbar 0" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 49, __ccgo_ts+1862) + AtomicStorePInt32(td+148, AtomicLoadPInt32(td+148)|(-Int32FromInt32(1)-Int32FromInt32(0x7fffffff))) + // __asm__ __volatile__ ("dbar 0" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 49, __ccgo_ts+1862) + X__syscall2(tls, int64(SYS_tkill), int64((*t__pthread)(unsafe.Pointer(td)).Ftid), int64(Int32FromInt32(SIGTIMER))) + return 0 + } + return int32(X__syscall1(tls, int64(SYS_timer_delete), int64(t))) +} + +func Xtimer_getoverrun(tls *TLS, t Ttimer_t) (r int32) { + if __ccgo_strace { + trc("tls=%v t=%v, (%v:)", tls, t, origin(2)) + defer func() { trc("-> %v", r) }() + } + var td Tpthread_t + _ = td + if int64(t) < 0 { + td = uintptr(uint64(t) << Int32FromInt32(1)) + t = uintptr(Uint64FromInt32(AtomicLoadPInt32(td+148) & Int32FromInt32(INT_MAX))) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_timer_getoverrun), int64(t))))) +} + +func Xtimer_gettime(tls *TLS, t Ttimer_t, val uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v t=%v val=%v, (%v:)", tls, t, val, origin(2)) + defer func() { trc("-> %v", r) }() + } + var td Tpthread_t + _ = td + if int64(t) < 0 { + td = uintptr(uint64(t) << Int32FromInt32(1)) + t = uintptr(Uint64FromInt32(AtomicLoadPInt32(td+148) & Int32FromInt32(INT_MAX))) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_timer_gettime), int64(t), int64(val))))) +} + +func Xtimer_settime(tls *TLS, t Ttimer_t, flags int32, val uintptr, old uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v t=%v flags=%v val=%v old=%v, (%v:)", tls, t, flags, val, old, origin(2)) + defer func() { trc("-> %v", r) }() + } + var td Tpthread_t + _ = td + if int64(t) < 0 { + td = uintptr(uint64(t) << Int32FromInt32(1)) + t = uintptr(Uint64FromInt32(AtomicLoadPInt32(td+148) & Int32FromInt32(INT_MAX))) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_timer_settime), int64(t), int64(flags), int64(val), int64(old))))) +} + +type Ttms = struct { + Ftms_utime Tclock_t + Ftms_stime Tclock_t + Ftms_cutime Tclock_t + Ftms_cstime Tclock_t +} + +func Xtimes(tls *TLS, tms uintptr) (r Tclock_t) { + if __ccgo_strace { + trc("tls=%v tms=%v, (%v:)", tls, tms, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall1(tls, int64(SYS_times), int64(tms)) +} + +// C documentation +// +// /* There is no other implemented value than TIME_UTC; all other values +// * are considered erroneous. */ +func Xtimespec_get(tls *TLS, ts uintptr, base int32) (r int32) { + if __ccgo_strace { + trc("tls=%v ts=%v base=%v, (%v:)", tls, ts, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret, v1 int32 + _, _ = ret, v1 + if base != int32(TIME_UTC) { + return 0 + } + ret = X__clock_gettime(tls, CLOCK_REALTIME, ts) + if ret < 0 { + v1 = 0 + } else { + v1 = base + } + return v1 +} + +type Tutimbuf = struct { + Factime Ttime_t + Fmodtime Ttime_t +} + +func Xutime(tls *TLS, path uintptr, times uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v times=%v, (%v:)", tls, path, times, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var v1 uintptr + _ = v1 + if times != 0 { + *(*[2]Ttimespec)(unsafe.Pointer(bp)) = [2]Ttimespec{ + 0: { + Ftv_sec: (*Tutimbuf)(unsafe.Pointer(times)).Factime, + }, + 1: { + Ftv_sec: (*Tutimbuf)(unsafe.Pointer(times)).Fmodtime, + }, + } + v1 = bp + } else { + v1 = uintptr(0) + } + return Xutimensat(tls, -int32(100), path, v1, 0) +} + +func X__wcsftime_l(tls *TLS, s uintptr, n Tsize_t, f uintptr, tm uintptr, loc Tlocale_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v f=%v tm=%v loc=%v, (%v:)", tls, s, n, f, tm, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(528) + defer tls.Free(528) + var l, v2 Tsize_t + var pad, plus, v4 int32 + var t, t_mb, v3 uintptr + var width uint64 + var _ /* buf at bp+8 */ [100]int8 + var _ /* k at bp+0 */ Tsize_t + var _ /* p at bp+512 */ uintptr + var _ /* wbuf at bp+108 */ [100]Twchar_t + _, _, _, _, _, _, _, _, _ = l, pad, plus, t, t_mb, width, v2, v3, v4 + l = uint64(0) + for { + if !(l < n) { + break + } + if !(**(**Twchar_t)(__ccgo_up(f)) != 0) { + **(**Twchar_t)(__ccgo_up(s + uintptr(l)*4)) = 0 + return l + } + if **(**Twchar_t)(__ccgo_up(f)) != int32('%') { + v2 = l + l = l + 1 + **(**Twchar_t)(__ccgo_up(s + uintptr(v2)*4)) = **(**Twchar_t)(__ccgo_up(f)) + goto _1 + } + f += 4 + pad = 0 + if **(**Twchar_t)(__ccgo_up(f)) == int32('-') || **(**Twchar_t)(__ccgo_up(f)) == int32('_') || **(**Twchar_t)(__ccgo_up(f)) == int32('0') { + v3 = f + f += 4 + pad = **(**Twchar_t)(__ccgo_up(v3)) + } + v4 = BoolInt32(**(**Twchar_t)(__ccgo_up(f)) == Int32FromUint8('+')) + plus = v4 + if v4 != 0 { + f += 4 + } + width = Xwcstoul(tls, f, bp+512, int32(10)) + if **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 512)))) == int32('C') || **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 512)))) == int32('F') || **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 512)))) == int32('G') || **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 512)))) == int32('Y') { + if !(width != 0) && **(**uintptr)(__ccgo_up(bp + 512)) != f { + width = uint64(1) + } + } else { + width = uint64(0) + } + f = **(**uintptr)(__ccgo_up(bp + 512)) + if **(**Twchar_t)(__ccgo_up(f)) == int32('E') || **(**Twchar_t)(__ccgo_up(f)) == int32('O') { + f += 4 + } + t_mb = X__strftime_fmt_1(tls, bp+8, bp, **(**Twchar_t)(__ccgo_up(f)), tm, loc, pad) + if !(t_mb != 0) { + break + } + **(**Tsize_t)(__ccgo_up(bp)) = Xmbstowcs(tls, bp+108, t_mb, Uint64FromInt64(400)/Uint64FromInt64(4)) + if **(**Tsize_t)(__ccgo_up(bp)) == Uint64FromInt32(-Int32FromInt32(1)) { + return uint64(0) + } + t = bp + 108 + if width != 0 { + for { + if !(**(**Twchar_t)(__ccgo_up(t)) == int32('+') || **(**Twchar_t)(__ccgo_up(t)) == int32('-') || **(**Twchar_t)(__ccgo_up(t)) == int32('0') && **(**Twchar_t)(__ccgo_up(t + 1*4)) != 0) { + break + } + goto _5 + _5: + ; + t += 4 + **(**Tsize_t)(__ccgo_up(bp)) = **(**Tsize_t)(__ccgo_up(bp)) - 1 + } + width = width - 1 + if plus != 0 && (*Ttm)(unsafe.Pointer(tm)).Ftm_year >= Int32FromInt32(10000)-Int32FromInt32(1900) { + v2 = l + l = l + 1 + **(**Twchar_t)(__ccgo_up(s + uintptr(v2)*4)) = int32('+') + } else { + if (*Ttm)(unsafe.Pointer(tm)).Ftm_year < -int32(1900) { + v2 = l + l = l + 1 + **(**Twchar_t)(__ccgo_up(s + uintptr(v2)*4)) = int32('-') + } else { + width = width + 1 + } + } + for { + if !(width > **(**Tsize_t)(__ccgo_up(bp)) && l < n) { + break + } + v2 = l + l = l + 1 + **(**Twchar_t)(__ccgo_up(s + uintptr(v2)*4)) = int32('0') + goto _8 + _8: + ; + width = width - 1 + } + } + if **(**Tsize_t)(__ccgo_up(bp)) >= n-l { + **(**Tsize_t)(__ccgo_up(bp)) = n - l + } + Xwmemcpy(tls, s+uintptr(l)*4, t, **(**Tsize_t)(__ccgo_up(bp))) + l = l + **(**Tsize_t)(__ccgo_up(bp)) + goto _1 + _1: + ; + f += 4 + } + if n != 0 { + if l == n { + l = n - uint64(1) + } + **(**Twchar_t)(__ccgo_up(s + uintptr(l)*4)) = 0 + } + return uint64(0) +} + +func Xwcsftime(tls *TLS, wcs uintptr, n Tsize_t, f uintptr, tm uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v wcs=%v n=%v f=%v tm=%v, (%v:)", tls, wcs, n, f, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__wcsftime_l(tls, wcs, n, f, tm, (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale) +} + +func Xwcsftime_l(tls *TLS, s uintptr, n Tsize_t, f uintptr, tm uintptr, loc Tlocale_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v f=%v tm=%v loc=%v, (%v:)", tls, s, n, f, tm, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__wcsftime_l(tls, s, n, f, tm, loc) +} + +func X_exit(tls *TLS, status int32) { + if __ccgo_strace { + trc("tls=%v status=%v, (%v:)", tls, status, origin(2)) + } + X_Exit(tls, status) +} + +func Xaccess(tls *TLS, filename uintptr, amode int32) (r int32) { + if __ccgo_strace { + trc("tls=%v filename=%v amode=%v, (%v:)", tls, filename, amode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_faccessat), int64(-Int32FromInt32(100)), int64(filename), int64(amode), int64(Int32FromInt32(0)))))) +} + +func Xacct(tls *TLS, filename uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v filename=%v, (%v:)", tls, filename, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_acct), int64(filename))))) +} + +func Xalarm(tls *TLS, seconds uint32) (r uint32) { + if __ccgo_strace { + trc("tls=%v seconds=%v, (%v:)", tls, seconds, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var _ /* it at bp+0 */ Titimerval + var _ /* old at bp+32 */ Titimerval + **(**Titimerval)(__ccgo_up(bp)) = Titimerval{ + Fit_value: Ttimeval{ + Ftv_sec: Int64FromUint32(seconds), + }, + } + **(**Titimerval)(__ccgo_up(bp + 32)) = Titimerval{} + Xsetitimer(tls, ITIMER_REAL, bp, bp+32) + return Uint32FromInt64((**(**Titimerval)(__ccgo_up(bp + 32))).Fit_value.Ftv_sec + BoolInt64(!!((**(**Titimerval)(__ccgo_up(bp + 32))).Fit_value.Ftv_usec != 0))) +} + +func Xchdir(tls *TLS, path uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v, (%v:)", tls, path, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_chdir), int64(path))))) +} + +func Xchown(tls *TLS, path uintptr, uid Tuid_t, gid Tgid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v uid=%v gid=%v, (%v:)", tls, path, uid, gid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_fchownat), int64(-Int32FromInt32(100)), int64(path), Int64FromUint32(uid), Int64FromUint32(gid), int64(Int32FromInt32(0)))))) +} + +func _dummy12(tls *TLS, fd int32) (r int32) { + return fd +} + +func Xclose(tls *TLS, fd int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + fd = _dummy12(tls, fd) + r = int32(___syscall_cp(tls, int64(SYS_close), int64(fd), 0, 0, 0, 0, 0)) + if r == -int32(EINTR) { + r = 0 + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func Xctermid(tls *TLS, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 uintptr + _ = v1 + if s != 0 { + v1 = Xstrcpy(tls, s, __ccgo_ts+292) + } else { + v1 = __ccgo_ts + 292 + } + return v1 +} + +func Xdup(tls *TLS, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_dup), int64(fd))))) +} + +func Xdup2(tls *TLS, old int32, new1 int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v old=%v new1=%v, (%v:)", tls, old, new1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v1 int32 + _, _ = r, v1 + if old == new1 { + r = int32(X__syscall2(tls, int64(__NR3264_fcntl), int64(old), int64(Int32FromInt32(F_GETFD)))) + if r >= 0 { + return old + } + } else { + for { + v1 = int32(X__syscall3(tls, int64(SYS_dup3), int64(old), int64(new1), int64(Int32FromInt32(0)))) + r = v1 + if !(v1 == -int32(EBUSY)) { + break + } + } + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func X__dup3(tls *TLS, old int32, new1 int32, flags int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v old=%v new1=%v flags=%v, (%v:)", tls, old, new1, flags, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v1 int32 + _, _ = r, v1 + for { + v1 = int32(X__syscall3(tls, int64(SYS_dup3), int64(old), int64(new1), int64(flags))) + r = v1 + if !(v1 == -int32(EBUSY)) { + break + } + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func Xdup3(tls *TLS, old int32, new1 int32, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v old=%v new1=%v flags=%v, (%v:)", tls, old, new1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__dup3(tls, old, new1, flags) +} + +type Tctx1 = struct { + Ffd int32 + Ffilename uintptr + Famode int32 + Fp int32 +} + +func _checker(tls *TLS, p uintptr) (r int32) { + bp := tls.Alloc(16) + defer tls.Free(16) + var c uintptr + var _ /* ret at bp+0 */ int32 + _ = c + c = p + if X__syscall2(tls, int64(SYS_setregid), X__syscall0(tls, int64(SYS_getegid)), int64(-Int32FromInt32(1))) != 0 || X__syscall2(tls, int64(SYS_setreuid), X__syscall0(tls, int64(SYS_geteuid)), int64(-Int32FromInt32(1))) != 0 { + X__syscall1(tls, int64(SYS_exit), int64(Int32FromInt32(1))) + } + **(**int32)(__ccgo_up(bp)) = int32(X__syscall4(tls, int64(SYS_faccessat), int64((*Tctx1)(unsafe.Pointer(c)).Ffd), int64((*Tctx1)(unsafe.Pointer(c)).Ffilename), int64((*Tctx1)(unsafe.Pointer(c)).Famode), int64(Int32FromInt32(0)))) + X__syscall3(tls, int64(SYS_write), int64((*Tctx1)(unsafe.Pointer(c)).Fp), int64(bp), Int64FromUint64(Uint64FromInt64(4))) + return 0 +} + +func Xfaccessat(tls *TLS, fd int32, filename uintptr, amode int32, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v filename=%v amode=%v flag=%v, (%v:)", tls, fd, filename, amode, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret int32 + _ = ret + if flag != 0 { + ret = int32(X__syscall4(tls, int64(SYS_faccessat2), int64(fd), int64(filename), int64(amode), int64(flag))) + if ret != -int32(ENOSYS) { + return int32(X__syscall_ret(tls, Uint64FromInt32(ret))) + } + } + if flag & ^Int32FromInt32(AT_EACCESS) != 0 { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL)))) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_faccessat), int64(fd), int64(filename), int64(amode))))) +} + +func Xfchdir(tls *TLS, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var ret int32 + var _ /* buf at bp+0 */ [27]int8 + _ = ret + ret = int32(X__syscall1(tls, int64(SYS_fchdir), int64(fd))) + if ret != -int32(EBADF) || X__syscall2(tls, int64(__NR3264_fcntl), int64(fd), int64(Int32FromInt32(F_GETFD))) < 0 { + return int32(X__syscall_ret(tls, Uint64FromInt32(ret))) + } + X__procfdname(tls, bp, Uint32FromInt32(fd)) + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_chdir), int64(bp))))) +} + +func Xfchown(tls *TLS, fd int32, uid Tuid_t, gid Tgid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v uid=%v gid=%v, (%v:)", tls, fd, uid, gid, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var ret int32 + var _ /* buf at bp+0 */ [27]int8 + _ = ret + ret = int32(X__syscall3(tls, int64(SYS_fchown), int64(fd), Int64FromUint32(uid), Int64FromUint32(gid))) + if ret != -int32(EBADF) || X__syscall2(tls, int64(__NR3264_fcntl), int64(fd), int64(Int32FromInt32(F_GETFD))) < 0 { + return int32(X__syscall_ret(tls, Uint64FromInt32(ret))) + } + X__procfdname(tls, bp, Uint32FromInt32(fd)) + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_fchownat), int64(-Int32FromInt32(100)), int64(bp), Int64FromUint32(uid), Int64FromUint32(gid), int64(Int32FromInt32(0)))))) +} + +func Xfchownat(tls *TLS, fd int32, path uintptr, uid Tuid_t, gid Tgid_t, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v path=%v uid=%v gid=%v flag=%v, (%v:)", tls, fd, path, uid, gid, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_fchownat), int64(fd), int64(path), Int64FromUint32(uid), Int64FromUint32(gid), int64(flag))))) +} + +func Xfdatasync(tls *TLS, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_fdatasync), int64(fd), 0, 0, 0, 0, 0)))) +} + +func Xfsync(tls *TLS, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_fsync), int64(fd), 0, 0, 0, 0, 0)))) +} + +func Xftruncate(tls *TLS, fd int32, length Toff_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v length=%v, (%v:)", tls, fd, length, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(__NR3264_ftruncate), int64(fd), length)))) +} + +func Xgetcwd(tls *TLS, buf uintptr, size Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v buf=%v size=%v, (%v:)", tls, buf, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret int64 + var tmp, v3 uintptr + var v1 t__predefined_size_t + var v2 int32 + _, _, _, _, _ = ret, tmp, v1, v2, v3 + defer func() { Xrealloc(tls, tmp, 0) }() + if buf != 0 { + v2 = int32(1) + } else { + v2 = int32(PATH_MAX) + } + v1 = Uint64FromInt32(v2) + tmp = Xrealloc(tls, tmp, v1) + if !(buf != 0) { + buf = tmp + size = v1 + } else { + if !(size != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(0) + } + } + ret = X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_getcwd), int64(buf), Int64FromUint64(size)))) + if ret < 0 { + return uintptr(0) + } + if ret == 0 || int32(**(**int8)(__ccgo_up(buf))) != int32('/') { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOENT) + return uintptr(0) + } + if buf == tmp { + v3 = Xstrdup(tls, buf) + } else { + v3 = buf + } + return v3 +} + +func Xgetegid(tls *TLS) (r Tgid_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Uint32FromInt64(X__syscall0(tls, int64(SYS_getegid))) +} + +func Xgeteuid(tls *TLS) (r Tuid_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Uint32FromInt64(X__syscall0(tls, int64(SYS_geteuid))) +} + +func Xgetgid(tls *TLS) (r Tgid_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Uint32FromInt64(X__syscall0(tls, int64(SYS_getgid))) +} + +func Xgetgroups(tls *TLS, count int32, list uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v count=%v list=%v, (%v:)", tls, count, list, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_getgroups), int64(count), int64(list))))) +} + +func Xgethostname(tls *TLS, name uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v len1=%v, (%v:)", tls, name, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(400) + defer tls.Free(400) + var i Tsize_t + var v2 int8 + var v3 bool + var _ /* uts at bp+0 */ Tutsname1 + _, _, _ = i, v2, v3 + if Xuname(tls, bp) != 0 { + return -int32(1) + } + if len1 > uint64(65) { + len1 = uint64(65) + } + i = uint64(0) + for { + if v3 = i < len1; v3 { + v2 = **(**int8)(__ccgo_up(bp + 65 + uintptr(i))) + **(**int8)(__ccgo_up(name + uintptr(i))) = v2 + } + if !(v3 && v2 != 0) { + break + } + goto _1 + _1: + ; + i = i + 1 + } + if i != 0 && i == len1 { + **(**int8)(__ccgo_up(name + uintptr(i-uint64(1)))) = 0 + } + return 0 +} + +func Xgetlogin(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetenv(tls, __ccgo_ts+1875) +} + +func Xgetlogin_r(tls *TLS, name uintptr, size Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v size=%v, (%v:)", tls, name, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + var logname uintptr + _ = logname + logname = Xgetlogin(tls) + if !(logname != 0) { + return int32(ENXIO) + } /* or...? */ + if _strlen(tls, logname) >= size { + return int32(ERANGE) + } + Xstrcpy(tls, name, logname) + return 0 +} + +func Xgetpgid(tls *TLS, pid Tpid_t) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v pid=%v, (%v:)", tls, pid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_getpgid), int64(pid))))) +} + +func Xgetpgrp(tls *TLS) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall1(tls, int64(SYS_getpgid), int64(Int32FromInt32(0)))) +} + +func Xgetpid(tls *TLS) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall0(tls, int64(SYS_getpid))) +} + +func Xgetppid(tls *TLS) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall0(tls, int64(SYS_getppid))) +} + +func Xgetsid(tls *TLS, pid Tpid_t) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v pid=%v, (%v:)", tls, pid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_getsid), int64(pid))))) +} + +func Xgetuid(tls *TLS) (r Tuid_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Uint32FromInt64(X__syscall0(tls, int64(SYS_getuid))) +} + +func Xisatty(tls *TLS, fd int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var r uint64 + var _ /* wsz at bp+0 */ Twinsize + _ = r + r = Uint64FromInt64(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_ioctl), int64(fd), int64(Int32FromInt32(TIOCGWINSZ)), int64(bp))))) + if r == uint64(0) { + return int32(1) + } + if **(**int32)(__ccgo_up(X__errno_location(tls))) != int32(EBADF) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOTTY) + } + return 0 +} + +func Xlchown(tls *TLS, path uintptr, uid Tuid_t, gid Tgid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v uid=%v gid=%v, (%v:)", tls, path, uid, gid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_fchownat), int64(-Int32FromInt32(100)), int64(path), Int64FromUint32(uid), Int64FromUint32(gid), int64(Int32FromInt32(AT_SYMLINK_NOFOLLOW)))))) +} + +func Xlink(tls *TLS, existing uintptr, new1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v existing=%v new1=%v, (%v:)", tls, existing, new1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_linkat), int64(-Int32FromInt32(100)), int64(existing), int64(-Int32FromInt32(100)), int64(new1), int64(Int32FromInt32(0)))))) +} + +func Xlinkat(tls *TLS, fd1 int32, existing uintptr, fd2 int32, new1 uintptr, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd1=%v existing=%v fd2=%v new1=%v flag=%v, (%v:)", tls, fd1, existing, fd2, new1, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_linkat), int64(fd1), int64(existing), int64(fd2), int64(new1), int64(flag))))) +} + +func X__lseek(tls *TLS, fd int32, offset Toff_t, whence int32) (r Toff_t) { + if __ccgo_strace { + trc("tls=%v fd=%v offset=%v whence=%v, (%v:)", tls, fd, offset, whence, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(__NR3264_lseek), int64(fd), offset, int64(whence)))) +} + +func Xlseek(tls *TLS, fd int32, offset Toff_t, whence int32) (r Toff_t) { + if __ccgo_strace { + trc("tls=%v fd=%v offset=%v whence=%v, (%v:)", tls, fd, offset, whence, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lseek(tls, fd, offset, whence) +} + +func Xnice(tls *TLS, inc int32) (r int32) { + if __ccgo_strace { + trc("tls=%v inc=%v, (%v:)", tls, inc, origin(2)) + defer func() { trc("-> %v", r) }() + } + var prio int32 + _ = prio + prio = inc + // Only query old priority if it can affect the result. + // This also avoids issues with integer overflow. + if inc > -Int32FromInt32(2)*Int32FromInt32(NZERO) && inc < Int32FromInt32(2)*Int32FromInt32(NZERO) { + prio = prio + Xgetpriority(tls, PRIO_PROCESS, uint32(0)) + } + if prio > Int32FromInt32(NZERO)-Int32FromInt32(1) { + prio = Int32FromInt32(NZERO) - Int32FromInt32(1) + } + if prio < -int32(NZERO) { + prio = -int32(NZERO) + } + if Xsetpriority(tls, PRIO_PROCESS, uint32(0), prio) != 0 { + if **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EACCES) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EPERM) + } + return -int32(1) + } else { + return prio + } + return r +} + +func Xpause(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_ppoll), int64(Int32FromInt32(0)), int64(Int32FromInt32(0)), int64(Int32FromInt32(0)), int64(Int32FromInt32(0)), 0, 0)))) +} + +func Xpipe(tls *TLS, fd uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_pipe2), int64(fd), int64(Int32FromInt32(0)))))) +} + +func Xpipe2(tls *TLS, fd uintptr, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v flag=%v, (%v:)", tls, fd, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret int32 + _ = ret + if !(flag != 0) { + return Xpipe(tls, fd) + } + ret = int32(X__syscall2(tls, int64(SYS_pipe2), int64(fd), int64(flag))) + if ret != -int32(ENOSYS) { + return int32(X__syscall_ret(tls, Uint64FromInt32(ret))) + } + if flag & ^(Int32FromInt32(O_CLOEXEC)|Int32FromInt32(O_NONBLOCK)) != 0 { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL)))) + } + ret = Xpipe(tls, fd) + if ret != 0 { + return ret + } + if flag&int32(O_CLOEXEC) != 0 { + X__syscall3(tls, int64(__NR3264_fcntl), int64(**(**int32)(__ccgo_up(fd))), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + X__syscall3(tls, int64(__NR3264_fcntl), int64(**(**int32)(__ccgo_up(fd + 1*4))), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + } + if flag&int32(O_NONBLOCK) != 0 { + X__syscall3(tls, int64(__NR3264_fcntl), int64(**(**int32)(__ccgo_up(fd))), int64(Int32FromInt32(F_SETFL)), int64(Int32FromInt32(O_NONBLOCK))) + X__syscall3(tls, int64(__NR3264_fcntl), int64(**(**int32)(__ccgo_up(fd + 1*4))), int64(Int32FromInt32(F_SETFL)), int64(Int32FromInt32(O_NONBLOCK))) + } + return 0 +} + +func Xposix_close(tls *TLS, fd int32, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v flags=%v, (%v:)", tls, fd, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xclose(tls, fd) +} + +func Xpread(tls *TLS, fd int32, buf uintptr, size Tsize_t, ofs Toff_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v size=%v ofs=%v, (%v:)", tls, fd, buf, size, ofs, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_pread64), int64(fd), int64(buf), Int64FromUint64(size), ofs, 0, 0))) +} + +func Xpreadv(tls *TLS, fd int32, iov uintptr, count int32, ofs Toff_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v iov=%v count=%v ofs=%v, (%v:)", tls, fd, iov, count, ofs, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_preadv), int64(fd), int64(iov), int64(count), ofs, ofs>>Int32FromInt32(32), 0))) +} + +func Xpwrite(tls *TLS, fd int32, buf uintptr, size Tsize_t, ofs Toff_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v size=%v ofs=%v, (%v:)", tls, fd, buf, size, ofs, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_pwrite64), int64(fd), int64(buf), Int64FromUint64(size), ofs, 0, 0))) +} + +func Xpwritev(tls *TLS, fd int32, iov uintptr, count int32, ofs Toff_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v iov=%v count=%v ofs=%v, (%v:)", tls, fd, iov, count, ofs, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_pwritev), int64(fd), int64(iov), int64(count), ofs, ofs>>Int32FromInt32(32), 0))) +} + +func Xread(tls *TLS, fd int32, buf uintptr, count Tsize_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v count=%v, (%v:)", tls, fd, buf, count, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_read), int64(fd), int64(buf), Int64FromUint64(count), 0, 0, 0))) +} + +func Xreadlink(tls *TLS, path uintptr, buf uintptr, bufsize Tsize_t) (r1 Tssize_t) { + if __ccgo_strace { + trc("tls=%v path=%v buf=%v bufsize=%v, (%v:)", tls, path, buf, bufsize, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var r int32 + var _ /* dummy at bp+0 */ [1]int8 + _ = r + if !(bufsize != 0) { + buf = bp + bufsize = uint64(1) + } + r = int32(X__syscall4(tls, int64(SYS_readlinkat), int64(-Int32FromInt32(100)), int64(path), int64(buf), Int64FromUint64(bufsize))) + if buf == bp && r > 0 { + r = 0 + } + return X__syscall_ret(tls, Uint64FromInt32(r)) +} + +func Xreadlinkat(tls *TLS, fd int32, path uintptr, buf uintptr, bufsize Tsize_t) (r1 Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v path=%v buf=%v bufsize=%v, (%v:)", tls, fd, path, buf, bufsize, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var r int32 + var _ /* dummy at bp+0 */ [1]int8 + _ = r + if !(bufsize != 0) { + buf = bp + bufsize = uint64(1) + } + r = int32(X__syscall4(tls, int64(SYS_readlinkat), int64(fd), int64(path), int64(buf), Int64FromUint64(bufsize))) + if buf == bp && r > 0 { + r = 0 + } + return X__syscall_ret(tls, Uint64FromInt32(r)) +} + +func Xreadv(tls *TLS, fd int32, iov uintptr, count int32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v iov=%v count=%v, (%v:)", tls, fd, iov, count, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_readv), int64(fd), int64(iov), int64(count), 0, 0, 0))) +} + +func Xrenameat(tls *TLS, oldfd int32, old uintptr, newfd int32, new1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v oldfd=%v old=%v newfd=%v new1=%v, (%v:)", tls, oldfd, old, newfd, new1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_renameat2), int64(oldfd), int64(old), int64(newfd), int64(new1), int64(Int32FromInt32(0)))))) +} + +func Xrmdir(tls *TLS, path uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v, (%v:)", tls, path, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_unlinkat), int64(-Int32FromInt32(100)), int64(path), int64(Int32FromInt32(AT_REMOVEDIR)))))) +} + +func Xsetgid(tls *TLS, gid Tgid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v gid=%v, (%v:)", tls, gid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__setxid(tls, int32(SYS_setgid), Int32FromUint32(gid), 0, 0) +} + +func Xsetpgid(tls *TLS, pid Tpid_t, pgid Tpid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v pid=%v pgid=%v, (%v:)", tls, pid, pgid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_setpgid), int64(pid), int64(pgid))))) +} + +func Xsetpgrp(tls *TLS) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xsetpgid(tls, 0, 0) +} + +func Xsetsid(tls *TLS) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall0(tls, int64(SYS_setsid))))) +} + +func Xsetuid(tls *TLS, uid Tuid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v uid=%v, (%v:)", tls, uid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__setxid(tls, int32(SYS_setuid), Int32FromUint32(uid), 0, 0) +} + +type Tctx2 = struct { + Fid int32 + Feid int32 + Fsid int32 + Fnr int32 + Fret int32 +} + +func _do_setxid(tls *TLS, p uintptr) { + var c uintptr + var ret int32 + _, _ = c, ret + c = p + if (*Tctx2)(unsafe.Pointer(c)).Fret < 0 { + return + } + ret = int32(X__syscall3(tls, int64((*Tctx2)(unsafe.Pointer(c)).Fnr), int64((*Tctx2)(unsafe.Pointer(c)).Fid), int64((*Tctx2)(unsafe.Pointer(c)).Feid), int64((*Tctx2)(unsafe.Pointer(c)).Fsid))) + if ret != 0 && !((*Tctx2)(unsafe.Pointer(c)).Fret != 0) { + /* If one thread fails to set ids after another has already + * succeeded, forcibly killing the process is the only safe + * thing to do. State is inconsistent and dangerous. Use + * SIGKILL because it is uncatchable. */ + X__block_all_sigs(tls, uintptr(0)) + X__syscall2(tls, int64(SYS_kill), X__syscall0(tls, int64(SYS_getpid)), int64(Int32FromInt32(SIGKILL))) + } + (*Tctx2)(unsafe.Pointer(c)).Fret = ret +} + +func X__setxid(tls *TLS, nr int32, id int32, eid int32, sid int32) (r int32) { + if __ccgo_strace { + trc("tls=%v nr=%v id=%v eid=%v sid=%v, (%v:)", tls, nr, id, eid, sid, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var v1 int32 + var _ /* c at bp+0 */ Tctx2 + _ = v1 + /* ret is initially nonzero so that failure of the first thread does not + * trigger the safety kill above. */ + **(**Tctx2)(__ccgo_up(bp)) = Tctx2{ + Fid: id, + Feid: eid, + Fsid: sid, + Fnr: nr, + Fret: int32(1), + } + ___synccall(tls, __ccgo_fp(_do_setxid), bp) + if (**(**Tctx2)(__ccgo_up(bp))).Fret > 0 { + v1 = -int32(EAGAIN) + } else { + v1 = (**(**Tctx2)(__ccgo_up(bp))).Fret + } + return int32(X__syscall_ret(tls, Uint64FromInt32(v1))) +} + +func Xsleep(tls *TLS, seconds uint32) (r uint32) { + if __ccgo_strace { + trc("tls=%v seconds=%v, (%v:)", tls, seconds, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* tv at bp+0 */ Ttimespec + **(**Ttimespec)(__ccgo_up(bp)) = Ttimespec{ + Ftv_sec: Int64FromUint32(seconds), + } + if Xnanosleep(tls, bp, bp) != 0 { + return Uint32FromInt64((**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec) + } + return uint32(0) +} + +func Xsymlink(tls *TLS, existing uintptr, new1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v existing=%v new1=%v, (%v:)", tls, existing, new1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_symlinkat), int64(existing), int64(-Int32FromInt32(100)), int64(new1))))) +} + +func Xsymlinkat(tls *TLS, existing uintptr, fd int32, new1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v existing=%v fd=%v new1=%v, (%v:)", tls, existing, fd, new1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_symlinkat), int64(existing), int64(fd), int64(new1))))) +} + +func Xsync(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + X__syscall0(tls, int64(SYS_sync)) +} + +func Xtcgetpgrp(tls *TLS, fd int32) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var _ /* pgrp at bp+0 */ int32 + if Xioctl(tls, fd, int32(TIOCGPGRP), VaList(bp+16, bp)) < 0 { + return -int32(1) + } + return **(**int32)(__ccgo_up(bp)) +} + +func Xtcsetpgrp(tls *TLS, fd int32, pgrp Tpid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v pgrp=%v, (%v:)", tls, fd, pgrp, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var _ /* pgrp_int at bp+0 */ int32 + **(**int32)(__ccgo_up(bp)) = pgrp + return Xioctl(tls, fd, int32(TIOCSPGRP), VaList(bp+16, bp)) +} + +func Xtruncate(tls *TLS, path uintptr, length Toff_t) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v length=%v, (%v:)", tls, path, length, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(__NR3264_truncate), int64(path), length)))) +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xttyname(tls *TLS, fd int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + var result, v1 int32 + _, _ = result, v1 + v1 = Xttyname_r(tls, fd, uintptr(unsafe.Pointer(&_buf10)), uint64(32)) + result = v1 + if v1 != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = result + return UintptrFromInt32(0) + } + return uintptr(unsafe.Pointer(&_buf10)) +} + +var _buf10 [32]int8 + +func Xttyname_r(tls *TLS, fd int32, name uintptr, size Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v name=%v size=%v, (%v:)", tls, fd, name, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(288) + defer tls.Free(288) + var l Tssize_t + var _ /* procname at bp+256 */ [29]int8 + var _ /* st1 at bp+0 */ Tstat + var _ /* st2 at bp+128 */ Tstat + _ = l + if !(Xisatty(tls, fd) != 0) { + return **(**int32)(__ccgo_up(X__errno_location(tls))) + } + X__procfdname(tls, bp+256, Uint32FromInt32(fd)) + l = Xreadlink(tls, bp+256, name, size) + if l < 0 { + return **(**int32)(__ccgo_up(X__errno_location(tls))) + } else { + if Uint64FromInt64(l) == size { + return int32(ERANGE) + } + } + **(**int8)(__ccgo_up(name + uintptr(l))) = 0 + if Xstat(tls, name, bp) != 0 || Xfstat(tls, fd, bp+128) != 0 { + return **(**int32)(__ccgo_up(X__errno_location(tls))) + } + if (**(**Tstat)(__ccgo_up(bp))).Fst_dev != (**(**Tstat)(__ccgo_up(bp + 128))).Fst_dev || (**(**Tstat)(__ccgo_up(bp))).Fst_ino != (**(**Tstat)(__ccgo_up(bp + 128))).Fst_ino { + return int32(ENODEV) + } + return 0 +} + +func Xualarm(tls *TLS, value uint32, interval uint32) (r uint32) { + if __ccgo_strace { + trc("tls=%v value=%v interval=%v, (%v:)", tls, value, interval, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var _ /* it at bp+0 */ Titimerval + var _ /* it_old at bp+32 */ Titimerval + **(**Titimerval)(__ccgo_up(bp)) = Titimerval{ + Fit_interval: Ttimeval{ + Ftv_usec: Int64FromUint32(interval), + }, + Fit_value: Ttimeval{ + Ftv_usec: Int64FromUint32(value), + }, + } + Xsetitimer(tls, ITIMER_REAL, bp, bp+32) + return Uint32FromInt64((**(**Titimerval)(__ccgo_up(bp + 32))).Fit_value.Ftv_sec*int64(1000000) + (**(**Titimerval)(__ccgo_up(bp + 32))).Fit_value.Ftv_usec) +} + +func Xunlink(tls *TLS, path uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v, (%v:)", tls, path, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_unlinkat), int64(-Int32FromInt32(100)), int64(path), int64(Int32FromInt32(0)))))) +} + +func Xunlinkat(tls *TLS, fd int32, path uintptr, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v path=%v flag=%v, (%v:)", tls, fd, path, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_unlinkat), int64(fd), int64(path), int64(flag))))) +} + +func Xusleep(tls *TLS, useconds uint32) (r int32) { + if __ccgo_strace { + trc("tls=%v useconds=%v, (%v:)", tls, useconds, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* tv at bp+0 */ Ttimespec + **(**Ttimespec)(__ccgo_up(bp)) = Ttimespec{ + Ftv_sec: Int64FromUint32(useconds / uint32(1000000)), + Ftv_nsec: Int64FromUint32(useconds % uint32(1000000) * uint32(1000)), + } + return Xnanosleep(tls, bp, bp) +} + +func Xwrite(tls *TLS, fd int32, buf uintptr, count Tsize_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v count=%v, (%v:)", tls, fd, buf, count, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_write), int64(fd), int64(buf), Int64FromUint64(count), 0, 0, 0))) +} + +func Xwritev(tls *TLS, fd int32, iov uintptr, count int32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v iov=%v count=%v, (%v:)", tls, fd, iov, count, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_writev), int64(fd), int64(iov), int64(count), 0, 0, 0))) +} + +func __ccgo_fp(f interface{}) uintptr { + type iface [2]uintptr + return (*iface)(unsafe.Pointer(&f))[1] +} + +func __ccgo_up(n uintptr) unsafe.Pointer { + return unsafe.Pointer(&n) +} + +var X__abort_lock [1]int32 + +var X__at_quick_exit_lockptr = uintptr(unsafe.Pointer(&_lock)) + +var X__c_dot_utf8 = t__locale_map{ + Fmap1: uintptr(unsafe.Pointer(&_empty_mo)), + Fmap_size: uint64(20), + Fname: [24]int8{'C', '.', 'U', 'T', 'F', '-', '8'}, +} + +var X__c_dot_utf8_locale = t__locale_struct{ + Fcat: [6]uintptr{ + 0: uintptr(unsafe.Pointer(&X__c_dot_utf8)), + }, +} + +var X__c_locale = t__locale_struct{} + +var Xdaylight int32 + +var X__eintr_valid_flag int32 + +var Xenviron uintptr + +var X__exp2f_data = Texp2f_data{ + Ftab: [32]Tuint64_t{ + 0: uint64(0x3ff0000000000000), + 1: uint64(0x3fefd9b0d3158574), + 2: uint64(0x3fefb5586cf9890f), + 3: uint64(0x3fef9301d0125b51), + 4: uint64(0x3fef72b83c7d517b), + 5: uint64(0x3fef54873168b9aa), + 6: uint64(0x3fef387a6e756238), + 7: uint64(0x3fef1e9df51fdee1), + 8: uint64(0x3fef06fe0a31b715), + 9: uint64(0x3feef1a7373aa9cb), + 10: uint64(0x3feedea64c123422), + 11: uint64(0x3feece086061892d), + 12: uint64(0x3feebfdad5362a27), + 13: uint64(0x3feeb42b569d4f82), + 14: uint64(0x3feeab07dd485429), + 15: uint64(0x3feea47eb03a5585), + 16: uint64(0x3feea09e667f3bcd), + 17: uint64(0x3fee9f75e8ec5f74), + 18: uint64(0x3feea11473eb0187), + 19: uint64(0x3feea589994cce13), + 20: uint64(0x3feeace5422aa0db), + 21: uint64(0x3feeb737b0cdc5e5), + 22: uint64(0x3feec49182a3f090), + 23: uint64(0x3feed503b23e255d), + 24: uint64(0x3feee89f995ad3ad), + 25: uint64(0x3feeff76f2fb5e47), + 26: uint64(0x3fef199bdd85529c), + 27: uint64(0x3fef3720dcef9069), + 28: uint64(0x3fef5818dcfba487), + 29: uint64(0x3fef7c97337b9b5f), + 30: uint64(0x3fefa4afa2a490da), + 31: uint64(0x3fefd0765b6e4540), + }, + Fshift_scaled: Float64FromFloat64(6.755399441055744e+15) / float64(Int32FromInt32(1)<>Int32FromInt32(6) | Uint32FromInt32(0x0), + 31: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0x1), + 32: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0x2), + 33: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0x3), + 34: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0x4), + 35: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0x5), + 36: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0x6), + 37: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0x7), + 38: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0x8), + 39: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0x9), + 40: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0xa), + 41: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0xb), + 42: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0xc), + 43: (Uint32FromUint32(0x40)-Uint32FromInt32(0xa0))<>Int32FromInt32(6) | Uint32FromInt32(0xd), + 44: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0xe), + 45: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0xf), + 46: (Uint32FromUint32(0)-Uint32FromInt32(0x90))<>Int32FromInt32(6) | (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(12) | Uint32FromInt32(0x0), + 47: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(12) | Uint32FromInt32(0x1), + 48: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(12) | Uint32FromInt32(0x2), + 49: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(12) | Uint32FromInt32(0x3), + 50: (Uint32FromUint32(0x40)-Uint32FromInt32(0x90))<>Int32FromInt32(6) | (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(12) | Uint32FromInt32(0x4), +} + +var X__gettext_lockptr = uintptr(unsafe.Pointer(&_lock1)) + +var X__hwcap Tsize_t + +var X__libc t__libc + +var X__libc_version = [6]int8{'1', '.', '2', '.', '5'} + +var X__locale_lock [1]int32 + +var X__locale_lockptr = uintptr(unsafe.Pointer(&X__locale_lock)) + +var X__log2_data = Tlog2_data{ + Finvln2hi: float64(1.4426950407214463), + Finvln2lo: float64(1.6751713164886512e-10), + Fpoly: [6]float64{ + 0: -Float64FromFloat64(0.7213475204444882), + 1: float64(0.4808983469629985), + 2: -Float64FromFloat64(0.36067375954075914), + 3: float64(0.2885390073180969), + 4: -Float64FromFloat64(0.2404693555628422), + 5: float64(0.2061202382173603), + }, + Fpoly1: [10]float64{ + 0: -Float64FromFloat64(0.7213475204444817), + 1: float64(0.48089834696298744), + 2: -Float64FromFloat64(0.360673760222145), + 3: float64(0.2885390081805197), + 4: -Float64FromFloat64(0.24044917405728863), + 5: float64(0.2060992861022954), + 6: -Float64FromFloat64(0.18033596705327856), + 7: float64(0.1603032746063156), + 8: -Float64FromFloat64(0.14483316576701266), + 9: float64(0.13046826811283835), + }, + Ftab: [64]struct { + Finvc float64 + Flogc float64 + }{ + 0: { + Finvc: float64(1.4463276106642393), + Flogc: -Float64FromFloat64(0.5323943771486483), + }, + 1: { + Finvc: float64(1.4301675812282968), + Flogc: -Float64FromFloat64(0.516184206053822), + }, + 2: { + Finvc: float64(1.4143648676229383), + Flogc: -Float64FromFloat64(0.5001543441974263), + }, + 3: { + Finvc: float64(1.3989068970611538), + Flogc: -Float64FromFloat64(0.4842999484799293), + }, + 4: { + Finvc: float64(1.3837838957784339), + Flogc: -Float64FromFloat64(0.46861865624623533), + }, + 5: { + Finvc: float64(1.368983882697786), + Flogc: -Float64FromFloat64(0.4531054615783887), + }, + 6: { + Finvc: float64(1.3544972916324536), + Flogc: -Float64FromFloat64(0.43775750882059583), + }, + 7: { + Finvc: float64(1.3403139676437443), + Flogc: -Float64FromFloat64(0.4225709906127122), + }, + 8: { + Finvc: float64(1.3264249304188642), + Flogc: -Float64FromFloat64(0.40754302793970965), + }, + 9: { + Finvc: float64(1.3128203652112156), + Flogc: -Float64FromFloat64(0.3926695240384106), + }, + 10: { + Finvc: float64(1.299492412370217), + Flogc: -Float64FromFloat64(0.3779482100565019), + }, + 11: { + Finvc: float64(1.28643198385998), + Flogc: -Float64FromFloat64(0.36337518101890964), + }, + 12: { + Finvc: float64(1.2736319291846832), + Flogc: -Float64FromFloat64(0.3489484089425332), + }, + 13: { + Finvc: float64(1.2610838968062879), + Flogc: -Float64FromFloat64(0.33466425780738973), + }, + 14: { + Finvc: float64(1.248780314313572), + Flogc: -Float64FromFloat64(0.3205197000629596), + }, + 15: { + Finvc: float64(1.2367150450059063), + Flogc: -Float64FromFloat64(0.3065131231801388), + }, + 16: { + Finvc: float64(1.2248804968401878), + Flogc: -Float64FromFloat64(0.2926410022678283), + }, + 17: { + Finvc: float64(1.2132702353497795), + Flogc: -Float64FromFloat64(0.2789009220805383), + }, + 18: { + Finvc: float64(1.2018780785715362), + Flogc: -Float64FromFloat64(0.2652905529862437), + }, + 19: { + Finvc: float64(1.190697765061355), + Flogc: -Float64FromFloat64(0.2518072602367738), + }, + 20: { + Finvc: float64(1.1797235410550593), + Flogc: -Float64FromFloat64(0.23844881494437686), + }, + 21: { + Finvc: float64(1.1689498986205256), + Flogc: -Float64FromFloat64(0.22521309705462045), + }, + 22: { + Finvc: float64(1.158371137408455), + Flogc: -Float64FromFloat64(0.21209756102439314), + }, + 23: { + Finvc: float64(1.1479820146386086), + Flogc: -Float64FromFloat64(0.1991000395789797), + }, + 24: { + Finvc: float64(1.1377775576851088), + Flogc: -Float64FromFloat64(0.18621852970682085), + }, + 25: { + Finvc: float64(1.127753150630225), + Flogc: -Float64FromFloat64(0.17345131655361), + }, + 26: { + Finvc: float64(1.1179037012282074), + Flogc: -Float64FromFloat64(0.16079591649577196), + }, + 27: { + Finvc: float64(1.1082251967632821), + Flogc: -Float64FromFloat64(0.14825107384353942), + }, + 28: { + Finvc: float64(1.098712461056607), + Flogc: -Float64FromFloat64(0.13581387465410444), + }, + 29: { + Finvc: float64(1.0893619091634283), + Flogc: -Float64FromFloat64(0.12348332762257996), + }, + 30: { + Finvc: float64(1.0801689912316736), + Flogc: -Float64FromFloat64(0.11125703807351783), + }, + 31: { + Finvc: float64(1.071129489697672), + Flogc: -Float64FromFloat64(0.09913289918449664), + }, + 32: { + Finvc: float64(1.0622406576750423), + Flogc: -Float64FromFloat64(0.08711065531497297), + }, + 33: { + Finvc: float64(1.0534977607927976), + Flogc: -Float64FromFloat64(0.07518724771330199), + }, + 34: { + Finvc: float64(1.044897877982342), + Flogc: -Float64FromFloat64(0.06336194888240243), + }, + 35: { + Finvc: float64(1.0364370289499079), + Flogc: -Float64FromFloat64(0.0516324649456692), + }, + 36: { + Finvc: float64(1.0281122132034575), + Flogc: -Float64FromFloat64(0.039997735929773626), + }, + 37: { + Finvc: float64(1.0199202450036955), + Flogc: -Float64FromFloat64(0.028456341769015125), + }, + 38: { + Finvc: float64(1.0118577522306755), + Flogc: -Float64FromFloat64(0.017006489068080555), + }, + 39: { + Finvc: float64(1.003921649236766), + Flogc: -Float64FromFloat64(0.005646678981520381), + }, + 40: { + Finvc: float64(0.9922480467550775), + Flogc: float64(0.011227277611396858), + }, + 41: { + Finvc: float64(0.9770993366178549), + Flogc: float64(0.033422853921138085), + }, + 42: { + Finvc: float64(0.9624059787315814), + Flogc: float64(0.05528248992573026), + }, + 43: { + Finvc: float64(0.9481480598286369), + Flogc: float64(0.07681573143713649), + }, + 44: { + Finvc: float64(0.9343065931261065), + Flogc: float64(0.09803204623631245), + }, + 45: { + Finvc: float64(0.9208633936884979), + Flogc: float64(0.11894094059630334), + }, + 46: { + Finvc: float64(0.9078013641840602), + Flogc: float64(0.13955143862290242), + }, + 47: { + Finvc: float64(0.8951048181512927), + Flogc: float64(0.15987146080919956), + }, + 48: { + Finvc: float64(0.882758574260473), + Flogc: float64(0.17990916589428707), + }, + 49: { + Finvc: float64(0.8707481902241709), + Flogc: float64(0.19967252559081317), + }, + 50: { + Finvc: float64(0.8590602881746972), + Flogc: float64(0.2191687127685782), + }, + 51: { + Finvc: float64(0.8476822044336688), + Flogc: float64(0.23840459427242422), + }, + 52: { + Finvc: float64(0.8366013284053287), + Flogc: float64(0.25738780610663525), + }, + 53: { + Finvc: float64(0.8258064913621258), + Flogc: float64(0.27612433583180973), + }, + 54: { + Finvc: float64(0.8152865101579193), + Flogc: float64(0.2946209507022104), + }, + 55: { + Finvc: float64(0.8050314363208223), + Flogc: float64(0.31288297359969874), + }, + 56: { + Finvc: float64(0.7950310492640542), + Flogc: float64(0.33091689015759584), + }, + 57: { + Finvc: float64(0.7852760432487271), + Flogc: float64(0.3487282100279572), + }, + 58: { + Finvc: float64(0.7757575660314712), + Flogc: float64(0.36632223233368677), + }, + 59: { + Finvc: float64(0.7664670566588946), + Flogc: float64(0.383704309808536), + }, + 60: { + Finvc: float64(0.7573965608078645), + Flogc: float64(0.4008792246509074), + }, + 61: { + Finvc: float64(0.7485380168514022), + Flogc: float64(0.41785250494945103), + }, + 62: { + Finvc: float64(0.7398844213755009), + Flogc: float64(0.4346281724315304), + }, + 63: { + Finvc: float64(0.7314286113178112), + Flogc: float64(0.45121103315341315), + }, + }, +} + +var X__log2f_data = Tlog2f_data{ + Ftab: [16]struct { + Finvc float64 + Flogc float64 + }{ + 0: { + Finvc: float64(1.398907162146528), + Flogc: -Float64FromFloat64(0.48430022186289673), + }, + 1: { + Finvc: float64(1.3403141896637998), + Flogc: -Float64FromFloat64(0.42257122959194704), + }, + 2: { + Finvc: float64(1.286432210124115), + Flogc: -Float64FromFloat64(0.3633754347673556), + }, + 3: { + Finvc: float64(1.2367150214269895), + Flogc: -Float64FromFloat64(0.30651309567405577), + }, + 4: { + Finvc: float64(1.1906977166711752), + Flogc: -Float64FromFloat64(0.25180720160537634), + }, + 5: { + Finvc: float64(1.1479821020556429), + Flogc: -Float64FromFloat64(0.19910014943794563), + }, + 6: { + Finvc: float64(1.1082251448272158), + Flogc: -Float64FromFloat64(0.14825100623281615), + }, + 7: { + Finvc: float64(1.0711297413057381), + Flogc: -Float64FromFloat64(0.09913323807318392), + }, + 8: { + Finvc: float64(1.036437278977283), + Flogc: -Float64FromFloat64(0.051632812977629436), + }, + 9: { + Finvc: float64(1), + }, + 10: { + Finvc: float64(0.9492859795739057), + Flogc: float64(0.07508531937943004), + }, + 11: { + Finvc: float64(0.8951049428609004), + Flogc: float64(0.15987125980713107), + }, + 12: { + Finvc: float64(0.8476821620351103), + Flogc: float64(0.2384046664317681), + }, + 13: { + Finvc: float64(0.8050314851692001), + Flogc: float64(0.31288288605863257), + }, + 14: { + Finvc: float64(0.7664671008843108), + Flogc: float64(0.38370422656453185), + }, + 15: { + Finvc: float64(0.731428603316328), + Flogc: float64(0.451211048935815), + }, + }, + Fpoly: [4]float64{ + 0: -Float64FromFloat64(0.36051725506874704), + 1: float64(0.4811247078767291), + 2: -Float64FromFloat64(0.7213476299867769), + 3: float64(1.4426950186867042), + }, +} + +var X__log_data = Tlog_data{ + Fln2hi: float64(0.6931471805598903), + Fln2lo: float64(5.497923018708371e-14), + Fpoly: [5]float64{ + 0: -Float64FromFloat64(0.5000000000000001), + 1: float64(0.33333333331825593), + 2: -Float64FromFloat64(0.2499999999622955), + 3: float64(0.20000304511814496), + 4: -Float64FromFloat64(0.16667054827627667), + }, + Fpoly1: [11]float64{ + 0: -Float64FromFloat64(0.5), + 1: float64(0.3333333333333352), + 2: -Float64FromFloat64(0.24999999999998432), + 3: float64(0.19999999999320328), + 4: -Float64FromFloat64(0.16666666669929706), + 5: float64(0.14285715076560868), + 6: -Float64FromFloat64(0.12499997863982555), + 7: float64(0.11110712032936046), + 8: -Float64FromFloat64(0.10000486757818193), + 9: float64(0.09181994006195467), + 10: -Float64FromFloat64(0.08328363062289341), + }, + Ftab: [128]struct { + Finvc float64 + Flogc float64 + }{ + 0: { + Finvc: float64(1.4504249240398293), + Flogc: -Float64FromFloat64(0.3718565645633589), + }, + 1: { + Finvc: float64(1.442253508327276), + Flogc: -Float64FromFloat64(0.36620682668944937), + }, + 2: { + Finvc: float64(1.4341736174350004), + Flogc: -Float64FromFloat64(0.3605888069791945), + }, + 3: { + Finvc: float64(1.426183816329995), + Flogc: -Float64FromFloat64(0.3550022171419869), + }, + 4: { + Finvc: float64(1.4182825527052965), + Flogc: -Float64FromFloat64(0.34944666968829097), + }, + 5: { + Finvc: float64(1.4104682921759335), + Flogc: -Float64FromFloat64(0.3439217713603284), + }, + 6: { + Finvc: float64(1.4027396147468003), + Flogc: -Float64FromFloat64(0.3384271921261188), + }, + 7: { + Finvc: float64(1.3950954438932313), + Flogc: -Float64FromFloat64(0.332962831494342), + }, + 8: { + Finvc: float64(1.3875338232485754), + Flogc: -Float64FromFloat64(0.32752794345742586), + }, + 9: { + Finvc: float64(1.3800539211058593), + Flogc: -Float64FromFloat64(0.32212257167088865), + }, + 10: { + Finvc: float64(1.3726542695419708), + Flogc: -Float64FromFloat64(0.3167462884799761), + }, + 11: { + Finvc: float64(1.3653332798446802), + Flogc: -Float64FromFloat64(0.3113985598928366), + }, + 12: { + Finvc: float64(1.358090204587874), + Flogc: -Float64FromFloat64(0.3060794515165526), + }, + 13: { + Finvc: float64(1.3509234892132138), + Flogc: -Float64FromFloat64(0.300788424667644), + }, + 14: { + Finvc: float64(1.3438320840699889), + Flogc: -Float64FromFloat64(0.2955252968476998), + }, + 15: { + Finvc: float64(1.3368146974742003), + Flogc: -Float64FromFloat64(0.29028969275850613), + }, + 16: { + Finvc: float64(1.329870114677736), + Flogc: -Float64FromFloat64(0.2850812793277555), + }, + 17: { + Finvc: float64(1.322997339161106), + Flogc: -Float64FromFloat64(0.27989987391470095), + }, + 18: { + Finvc: float64(1.316195352741367), + Flogc: -Float64FromFloat64(0.27474526621870154), + }, + 19: { + Finvc: float64(1.3094628125672239), + Flogc: -Float64FromFloat64(0.2696169863701243), + }, + 20: { + Finvc: float64(1.3027990455471041), + Flogc: -Float64FromFloat64(0.26451506180308115), + }, + 21: { + Finvc: float64(1.2962024229438942), + Flogc: -Float64FromFloat64(0.2594387762767383), + }, + 22: { + Finvc: float64(1.2896726275815547), + Flogc: -Float64FromFloat64(0.2543884090981692), + }, + 23: { + Finvc: float64(1.2832080305745537), + Flogc: -Float64FromFloat64(0.24936321635129843), + }, + 24: { + Finvc: float64(1.276807885983376), + Flogc: -Float64FromFloat64(0.24436312405975968), + }, + 25: { + Finvc: float64(1.2704714060687552), + Flogc: -Float64FromFloat64(0.23938801747897287), + }, + 26: { + Finvc: float64(1.2641976054949482), + Flogc: -Float64FromFloat64(0.23443761696705678), + }, + 27: { + Finvc: float64(1.257985357514882), + Flogc: -Float64FromFloat64(0.22951151871518505), + }, + 28: { + Finvc: float64(1.2518337750655457), + Flogc: -Float64FromFloat64(0.2246094963439873), + }, + 29: { + Finvc: float64(1.2457421919097305), + Flogc: -Float64FromFloat64(0.21973149037705753), + }, + 30: { + Finvc: float64(1.2397094966625508), + Flogc: -Float64FromFloat64(0.2148770752847895), + }, + 31: { + Finvc: float64(1.2337348463589233), + Flogc: -Float64FromFloat64(0.210046029103637), + }, + 32: { + Finvc: float64(1.2278176973028803), + Flogc: -Float64FromFloat64(0.20523836373934046), + }, + 33: { + Finvc: float64(1.2219570190618474), + Flogc: -Float64FromFloat64(0.20045368751368642), + }, + 34: { + Finvc: float64(1.2161519732977757), + Flogc: -Float64FromFloat64(0.1956917537758045), + }, + 35: { + Finvc: float64(1.2104018095009725), + Flogc: -Float64FromFloat64(0.19095237845203883), + }, + 36: { + Finvc: float64(1.204705805718973), + Flogc: -Float64FromFloat64(0.18623539250290833), + }, + 37: { + Finvc: float64(1.1990631185441964), + Flogc: -Float64FromFloat64(0.18154051731551135), + }, + 38: { + Finvc: float64(1.1934733004462308), + Flogc: -Float64FromFloat64(0.1768677957431919), + }, + 39: { + Finvc: float64(1.1879350812847385), + Flogc: -Float64FromFloat64(0.17221657406412305), + }, + 40: { + Finvc: float64(1.1824481322833125), + Flogc: -Float64FromFloat64(0.16758697765942543), + }, + 41: { + Finvc: float64(1.1770114976921955), + Flogc: -Float64FromFloat64(0.16297859687290384), + }, + 42: { + Finvc: float64(1.1716248121809465), + Flogc: -Float64FromFloat64(0.15839151377804228), + }, + 43: { + Finvc: float64(1.1662869231674715), + Flogc: -Float64FromFloat64(0.15382513241456763), + }, + 44: { + Finvc: float64(1.1609977486762766), + Flogc: -Float64FromFloat64(0.14927976358922024), + }, + 45: { + Finvc: float64(1.1557563220795803), + Flogc: -Float64FromFloat64(0.14475495398119165), + }, + 46: { + Finvc: float64(1.1505619105480347), + Flogc: -Float64FromFloat64(0.14025044090817573), + }, + 47: { + Finvc: float64(1.1454138888505974), + Flogc: -Float64FromFloat64(0.1357660466685502), + }, + 48: { + Finvc: float64(1.140311877374656), + Flogc: -Float64FromFloat64(0.1313018016355727), + }, + 49: { + Finvc: float64(1.1352550225747513), + Flogc: -Float64FromFloat64(0.12685731518763532), + }, + 50: { + Finvc: float64(1.1302429094831266), + Flogc: -Float64FromFloat64(0.1224325737671279), + }, + 51: { + Finvc: float64(1.1252747693068048), + Flogc: -Float64FromFloat64(0.11802724521862729), + }, + 52: { + Finvc: float64(1.1203501571039876), + Flogc: -Float64FromFloat64(0.11364127671663482), + }, + 53: { + Finvc: float64(1.1154683327680124), + Flogc: -Float64FromFloat64(0.10927434611278386), + }, + 54: { + Finvc: float64(1.1106291463292157), + Flogc: -Float64FromFloat64(0.10492665324943573), + }, + 55: { + Finvc: float64(1.1058315813301596), + Flogc: -Float64FromFloat64(0.10059761422644442), + }, + 56: { + Finvc: float64(1.1010752177696026), + Flogc: -Float64FromFloat64(0.09628717309055901), + }, + 57: { + Finvc: float64(1.0963597137952512), + Flogc: -Float64FromFloat64(0.09199534069557558), + }, + 58: { + Finvc: float64(1.0916844827550398), + Flogc: -Float64FromFloat64(0.08772190036688698), + }, + 59: { + Finvc: float64(1.0870487291277784), + Flogc: -Float64FromFloat64(0.08346643613867855), + }, + 60: { + Finvc: float64(1.082452357388312), + Flogc: -Float64FromFloat64(0.07922916827544668), + }, + 61: { + Finvc: float64(1.0778948225025884), + Flogc: -Float64FromFloat64(0.0750099004750382), + }, + 62: { + Finvc: float64(1.0733751731601076), + Flogc: -Float64FromFloat64(0.07080805133352897), + }, + 63: { + Finvc: float64(1.068893585073351), + Flogc: -Float64FromFloat64(0.06662408085151128), + }, + 64: { + Finvc: float64(1.0644491706655506), + Flogc: -Float64FromFloat64(0.06245745471915143), + }, + 65: { + Finvc: float64(1.0600414846328305), + Flogc: -Float64FromFloat64(0.0583080438042316), + }, + 66: { + Finvc: float64(1.0556701316181605), + Flogc: -Float64FromFloat64(0.05417576112313327), + }, + 67: { + Finvc: float64(1.051334750556926), + Flogc: -Float64FromFloat64(0.050060547896805474), + }, + 68: { + Finvc: float64(1.0470347288442157), + Flogc: -Float64FromFloat64(0.045962101199052086), + }, + 69: { + Finvc: float64(1.0427699229652954), + Flogc: -Float64FromFloat64(0.04188056008865715), + }, + 70: { + Finvc: float64(1.0385395013738175), + Flogc: -Float64FromFloat64(0.03781540056183985), + }, + 71: { + Finvc: float64(1.034343418940345), + Flogc: -Float64FromFloat64(0.03376684757915882), + }, + 72: { + Finvc: float64(1.0301811073173315), + Flogc: -Float64FromFloat64(0.029734619131772888), + }, + 73: { + Finvc: float64(1.026052043621297), + Flogc: -Float64FromFloat64(0.025718470239212365), + }, + 74: { + Finvc: float64(1.0219561082336197), + Flogc: -Float64FromFloat64(0.021718543925430822), + }, + 75: { + Finvc: float64(1.0178926505784922), + Flogc: -Float64FromFloat64(0.01773446126981071), + }, + 76: { + Finvc: float64(1.0138614436244586), + Flogc: -Float64FromFloat64(0.013766252464051831), + }, + 77: { + Finvc: float64(1.0098620186501341), + Flogc: -Float64FromFloat64(0.009813706322574944), + }, + 78: { + Finvc: float64(1.0058938559734134), + Flogc: -Float64FromFloat64(0.005876555150052809), + }, + 79: { + Finvc: float64(1.00195696235014), + Flogc: -Float64FromFloat64(0.0019550499938532084), + }, + 80: { + Finvc: float64(0.9961089923088509), + Flogc: float64(0.0038985973556009412), + }, + 81: { + Finvc: float64(0.9884170338185201), + Flogc: float64(0.011650571286395461), + }, + 82: { + Finvc: float64(0.9808429191005297), + Flogc: float64(0.019342955478919066), + }, + 83: { + Finvc: float64(0.9733840169987446), + Flogc: float64(0.0269766014846482), + }, + 84: { + Finvc: float64(0.9660377568876556), + Flogc: float64(0.034552359728422744), + }, + 85: { + Finvc: float64(0.9588014945307369), + Flogc: float64(0.04207121767183253), + }, + 86: { + Finvc: float64(0.9516728569073111), + Flogc: float64(0.049533940950141186), + }, + 87: { + Finvc: float64(0.9446494635965822), + Flogc: float64(0.056941358295944156), + }, + 88: { + Finvc: float64(0.9377288993026223), + Flogc: float64(0.06429439168346107), + }, + 89: { + Finvc: float64(0.9309091073790681), + Flogc: float64(0.0715936354946507), + }, + 90: { + Finvc: float64(0.924187681612722), + Flogc: float64(0.07884010933776153), + }, + 91: { + Finvc: float64(0.9175626765599192), + Flogc: float64(0.08603438905970506), + }, + 92: { + Finvc: float64(0.9110320403624034), + Flogc: float64(0.09317721180013905), + }, + 93: { + Finvc: float64(0.9045935839762024), + Flogc: float64(0.10026951462748457), + }, + 94: { + Finvc: float64(0.8982456375922825), + Flogc: float64(0.10731170956330516), + }, + 95: { + Finvc: float64(0.8919860966782501), + Flogc: float64(0.11430473320717738), + }, + 96: { + Finvc: float64(0.8858131121185129), + Flogc: float64(0.12124928503033061), + }, + 97: { + Finvc: float64(0.879725075760676), + Flogc: float64(0.12814583422959913), + }, + 98: { + Finvc: float64(0.8737201372634685), + Flogc: float64(0.1349951636851756), + }, + 99: { + Finvc: float64(0.8677966405782273), + Flogc: float64(0.1417978768189414), + }, + 100: { + Finvc: float64(0.8619528050060739), + Flogc: float64(0.14855476039031146), + }, + 101: { + Finvc: float64(0.8561872354420692), + Flogc: float64(0.1552661937658968), + }, + 102: { + Finvc: float64(0.8504983927816893), + Flogc: float64(0.16193275688146969), + }, + 103: { + Finvc: float64(0.8448844572790304), + Flogc: float64(0.16855539792220497), + }, + 104: { + Finvc: float64(0.8393442741575965), + Flogc: float64(0.1751343179947753), + }, + 105: { + Finvc: float64(0.8338762249349438), + Flogc: float64(0.1816702989864325), + }, + 106: { + Finvc: float64(0.8284789320557778), + Flogc: float64(0.18816387146023317), + }, + 107: { + Finvc: float64(0.8231510800065832), + Flogc: float64(0.1946155228479256), + }, + 108: { + Finvc: float64(0.8178913903778707), + Flogc: float64(0.20102572579389744), + }, + 109: { + Finvc: float64(0.8126984007245374), + Flogc: float64(0.2073952090795501), + }, + 110: { + Finvc: float64(0.8075710029460227), + Flogc: float64(0.21372429840596396), + }, + 111: { + Finvc: float64(0.8025078881160415), + Flogc: float64(0.2200135945981856), + }, + 112: { + Finvc: float64(0.7975077379364331), + Flogc: float64(0.22626374162859975), + }, + 113: { + Finvc: float64(0.792569604966373), + Flogc: float64(0.23247494747693054), + }, + 114: { + Finvc: float64(0.7876923641254114), + Flogc: float64(0.23864766620658884), + }, + 115: { + Finvc: float64(0.7828746724940998), + Flogc: float64(0.24478265647405806), + }, + 116: { + Finvc: float64(0.7781155388790811), + Flogc: float64(0.25088025827324145), + }, + 117: { + Finvc: float64(0.7734139557869777), + Flogc: float64(0.2569408552510595), + }, + 118: { + Finvc: float64(0.7687687179914933), + Flogc: float64(0.26296511155101143), + }, + 119: { + Finvc: float64(0.7641790698041854), + Flogc: float64(0.2689531327189343), + }, + 120: { + Finvc: float64(0.7596438763692399), + Flogc: float64(0.27490553924610595), + }, + 121: { + Finvc: float64(0.7551621951078668), + Flogc: float64(0.2808227248478943), + }, + 122: { + Finvc: float64(0.7507331780216866), + Flogc: float64(0.286704979267256), + }, + 123: { + Finvc: float64(0.7463557196361751), + Flogc: float64(0.29255295645509705), + }, + 124: { + Finvc: float64(0.7420289364869653), + Flogc: float64(0.2983670386142876), + }, + 125: { + Finvc: float64(0.7377521537065876), + Flogc: float64(0.30414734587282055), + }, + 126: { + Finvc: float64(0.7335242966002608), + Flogc: float64(0.30989455774829366), + }, + 127: { + Finvc: float64(0.729344777457841), + Flogc: float64(0.31560871301871884), + }, + }, +} + +var X__logf_data = Tlogf_data{ + Ftab: [16]struct { + Finvc float64 + Flogc float64 + }{ + 0: { + Finvc: float64(1.398907162146528), + Flogc: -Float64FromFloat64(0.33569133332882284), + }, + 1: { + Finvc: float64(1.3403141896637998), + Flogc: -Float64FromFloat64(0.2929040563774074), + }, + 2: { + Finvc: float64(1.286432210124115), + Flogc: -Float64FromFloat64(0.2518726580937369), + }, + 3: { + Finvc: float64(1.2367150214269895), + Flogc: -Float64FromFloat64(0.21245868807117255), + }, + 4: { + Finvc: float64(1.1906977166711752), + Flogc: -Float64FromFloat64(0.17453945183745634), + }, + 5: { + Finvc: float64(1.1479821020556429), + Flogc: -Float64FromFloat64(0.1380057072319758), + }, + 6: { + Finvc: float64(1.1082251448272158), + Flogc: -Float64FromFloat64(0.10275976698545139), + }, + 7: { + Finvc: float64(1.0711297413057381), + Flogc: -Float64FromFloat64(0.06871392447020525), + }, + 8: { + Finvc: float64(1.036437278977283), + Flogc: -Float64FromFloat64(0.0357891387398228), + }, + 9: { + Finvc: float64(1), + }, + 10: { + Finvc: float64(0.9492859795739057), + Flogc: float64(0.05204517742929496), + }, + 11: { + Finvc: float64(0.8951049428609004), + Flogc: float64(0.11081431298787942), + }, + 12: { + Finvc: float64(0.8476821620351103), + Flogc: float64(0.1652495223695143), + }, + 13: { + Finvc: float64(0.8050314851692001), + Flogc: float64(0.21687389031699977), + }, + 14: { + Finvc: float64(0.7664671008843108), + Flogc: float64(0.2659635028121397), + }, + 15: { + Finvc: float64(0.731428603316328), + Flogc: float64(0.3127556664073557), + }, + }, + Fln2: float64(0.6931471805599453), + Fpoly: [3]float64{ + 0: -Float64FromFloat64(0.25089342214237154), + 1: float64(0.333456765744066), + 2: -Float64FromFloat64(0.4999997485802103), + }, +} + +var X__optpos int32 + +var Xoptreset int32 + +var X__pow_log_data = Tpow_log_data{ + Fln2hi: float64(0.6931471805598903), + Fln2lo: float64(5.497923018708371e-14), + Fpoly: [7]float64{ + 0: -Float64FromFloat64(0.5), + 1: float64(Float64FromFloat64(0.3333333333333339) * float64(-Int32FromInt32(2))), + 2: float64(-Float64FromFloat64(0.25000000000000033) * float64(-Int32FromInt32(2))), + 3: float64(Float64FromFloat64(0.1999999998830994) * Float64FromInt32(4)), + 4: float64(-Float64FromFloat64(0.16666666658719348) * Float64FromInt32(4)), + 5: float64(Float64FromFloat64(0.14286370355743763) * float64(-Int32FromInt32(8))), + 6: float64(-Float64FromFloat64(0.12500519079594427) * float64(-Int32FromInt32(8))), + }, + Ftab: [128]struct { + Finvc float64 + Fpad float64 + Flogc float64 + Flogctail float64 + }{ + 0: { + Finvc: float64(1.4140625), + Flogc: -Float64FromFloat64(0.3464667673462145), + Flogctail: float64(5.929407345889625e-15), + }, + 1: { + Finvc: float64(1.40625), + Flogc: -Float64FromFloat64(0.34092658697056777), + Flogctail: -Float64FromFloat64(2.544157440035963e-14), + }, + 2: { + Finvc: float64(1.3984375), + Flogc: -Float64FromFloat64(0.3353555419211034), + Flogctail: -Float64FromFloat64(3.443525940775045e-14), + }, + 3: { + Finvc: float64(1.390625), + Flogc: -Float64FromFloat64(0.3297532863724655), + Flogctail: -Float64FromFloat64(2.500123826022799e-15), + }, + 4: { + Finvc: float64(1.3828125), + Flogc: -Float64FromFloat64(0.32411946865420305), + Flogctail: -Float64FromFloat64(8.929337133850617e-15), + }, + 5: { + Finvc: float64(1.375), + Flogc: -Float64FromFloat64(0.31845373111855224), + Flogctail: float64(1.7625431312172662e-14), + }, + 6: { + Finvc: float64(1.3671875), + Flogc: -Float64FromFloat64(0.31275571000389846), + Flogctail: float64(1.5688303180062087e-15), + }, + 7: { + Finvc: float64(1.359375), + Flogc: -Float64FromFloat64(0.3070250352949415), + Flogctail: float64(2.9655274673691784e-14), + }, + 8: { + Finvc: float64(1.3515625), + Flogc: -Float64FromFloat64(0.3012613305781997), + Flogctail: float64(3.7923164802093147e-14), + }, + 9: { + Finvc: float64(1.34375), + Flogc: -Float64FromFloat64(0.2954642128938758), + Flogctail: float64(3.993416384387844e-14), + }, + 10: { + Finvc: float64(1.3359375), + Flogc: -Float64FromFloat64(0.28963329258306203), + Flogctail: float64(1.9352855826489123e-14), + }, + 11: { + Finvc: float64(1.3359375), + Flogc: -Float64FromFloat64(0.28963329258306203), + Flogctail: float64(1.9352855826489123e-14), + }, + 12: { + Finvc: float64(1.328125), + Flogc: -Float64FromFloat64(0.28376817313062475), + Flogctail: -Float64FromFloat64(1.9852665484979036e-14), + }, + 13: { + Finvc: float64(1.3203125), + Flogc: -Float64FromFloat64(0.27786845100342816), + Flogctail: -Float64FromFloat64(2.814323765595281e-14), + }, + 14: { + Finvc: float64(1.3125), + Flogc: -Float64FromFloat64(0.2719337154836694), + Flogctail: float64(2.7643769993528702e-14), + }, + 15: { + Finvc: float64(1.3046875), + Flogc: -Float64FromFloat64(0.2659635484970977), + Flogctail: -Float64FromFloat64(4.025092402293806e-14), + }, + 16: { + Finvc: float64(1.296875), + Flogc: -Float64FromFloat64(0.25995752443691345), + Flogctail: -Float64FromFloat64(1.2621729398885316e-14), + }, + 17: { + Finvc: float64(1.2890625), + Flogc: -Float64FromFloat64(0.25391520998095984), + Flogctail: -Float64FromFloat64(3.600176732637335e-15), + }, + 18: { + Finvc: float64(1.2890625), + Flogc: -Float64FromFloat64(0.25391520998095984), + Flogctail: -Float64FromFloat64(3.600176732637335e-15), + }, + 19: { + Finvc: float64(1.28125), + Flogc: -Float64FromFloat64(0.2478361639045943), + Flogctail: float64(1.3029797173308663e-14), + }, + 20: { + Finvc: float64(1.2734375), + Flogc: -Float64FromFloat64(0.2417199368871934), + Flogctail: float64(4.8230289429940886e-14), + }, + 21: { + Finvc: float64(1.265625), + Flogc: -Float64FromFloat64(0.23556607131274632), + Flogctail: -Float64FromFloat64(2.0592242769647135e-14), + }, + 22: { + Finvc: float64(1.2578125), + Flogc: -Float64FromFloat64(0.22937410106487732), + Flogctail: float64(3.149265065191484e-14), + }, + 23: { + Finvc: float64(1.25), + Flogc: -Float64FromFloat64(0.22314355131425145), + Flogctail: float64(4.169796584527195e-14), + }, + 24: { + Finvc: float64(1.25), + Flogc: -Float64FromFloat64(0.22314355131425145), + Flogctail: float64(4.169796584527195e-14), + }, + 25: { + Finvc: float64(1.2421875), + Flogc: -Float64FromFloat64(0.21687393830063684), + Flogctail: float64(2.2477465222466186e-14), + }, + 26: { + Finvc: float64(1.234375), + Flogc: -Float64FromFloat64(0.21056476910735), + Flogctail: float64(3.6507188831790577e-16), + }, + 27: { + Finvc: float64(1.2265625), + Flogc: -Float64FromFloat64(0.2042155414286526), + Flogctail: -Float64FromFloat64(3.827767260205414e-14), + }, + 28: { + Finvc: float64(1.2265625), + Flogc: -Float64FromFloat64(0.2042155414286526), + Flogctail: -Float64FromFloat64(3.827767260205414e-14), + }, + 29: { + Finvc: float64(1.21875), + Flogc: -Float64FromFloat64(0.19782574332987224), + Flogctail: -Float64FromFloat64(4.7641388950792196e-14), + }, + 30: { + Finvc: float64(1.2109375), + Flogc: -Float64FromFloat64(0.19139485299967873), + Flogctail: float64(4.9278276214647115e-14), + }, + 31: { + Finvc: float64(1.203125), + Flogc: -Float64FromFloat64(0.18492233849406148), + Flogctail: float64(4.9485167661250996e-14), + }, + 32: { + Finvc: float64(1.203125), + Flogc: -Float64FromFloat64(0.18492233849406148), + Flogctail: float64(4.9485167661250996e-14), + }, + 33: { + Finvc: float64(1.1953125), + Flogc: -Float64FromFloat64(0.1784076574728033), + Flogctail: -Float64FromFloat64(1.5003333854266542e-14), + }, + 34: { + Finvc: float64(1.1875), + Flogc: -Float64FromFloat64(0.17185025692663203), + Flogctail: -Float64FromFloat64(2.7194441649495324e-14), + }, + 35: { + Finvc: float64(1.1875), + Flogc: -Float64FromFloat64(0.17185025692663203), + Flogctail: -Float64FromFloat64(2.7194441649495324e-14), + }, + 36: { + Finvc: float64(1.1796875), + Flogc: -Float64FromFloat64(0.1652495728952772), + Flogctail: -Float64FromFloat64(2.99659267292569e-14), + }, + 37: { + Finvc: float64(1.171875), + Flogc: -Float64FromFloat64(0.15860503017665906), + Flogctail: float64(2.0472357800461955e-14), + }, + 38: { + Finvc: float64(1.171875), + Flogc: -Float64FromFloat64(0.15860503017665906), + Flogctail: float64(2.0472357800461955e-14), + }, + 39: { + Finvc: float64(1.1640625), + Flogc: -Float64FromFloat64(0.15191604202584585), + Flogctail: float64(3.879296723063646e-15), + }, + 40: { + Finvc: float64(1.15625), + Flogc: -Float64FromFloat64(0.1451820098444614), + Flogctail: -Float64FromFloat64(3.6506824353335045e-14), + }, + 41: { + Finvc: float64(1.1484375), + Flogc: -Float64FromFloat64(0.13840232285906495), + Flogctail: -Float64FromFloat64(5.4183331379008994e-14), + }, + 42: { + Finvc: float64(1.1484375), + Flogc: -Float64FromFloat64(0.13840232285906495), + Flogctail: -Float64FromFloat64(5.4183331379008994e-14), + }, + 43: { + Finvc: float64(1.140625), + Flogc: -Float64FromFloat64(0.131576357788731), + Flogctail: float64(1.1729485484531301e-14), + }, + 44: { + Finvc: float64(1.140625), + Flogc: -Float64FromFloat64(0.131576357788731), + Flogctail: float64(1.1729485484531301e-14), + }, + 45: { + Finvc: float64(1.1328125), + Flogc: -Float64FromFloat64(0.12470347850091912), + Flogctail: -Float64FromFloat64(3.811763084710266e-14), + }, + 46: { + Finvc: float64(1.125), + Flogc: -Float64FromFloat64(0.11778303565643), + Flogctail: float64(4.654729747598445e-14), + }, + 47: { + Finvc: float64(1.125), + Flogc: -Float64FromFloat64(0.11778303565643), + Flogctail: float64(4.654729747598445e-14), + }, + 48: { + Finvc: float64(1.1171875), + Flogc: -Float64FromFloat64(0.11081436634026431), + Flogctail: -Float64FromFloat64(2.5799991283069902e-14), + }, + 49: { + Finvc: float64(1.109375), + Flogc: -Float64FromFloat64(0.10379679368168127), + Flogctail: float64(3.7700471749674615e-14), + }, + 50: { + Finvc: float64(1.109375), + Flogc: -Float64FromFloat64(0.10379679368168127), + Flogctail: float64(3.7700471749674615e-14), + }, + 51: { + Finvc: float64(1.1015625), + Flogc: -Float64FromFloat64(0.09672962645856842), + Flogctail: float64(1.7306161136093256e-14), + }, + 52: { + Finvc: float64(1.1015625), + Flogc: -Float64FromFloat64(0.09672962645856842), + Flogctail: float64(1.7306161136093256e-14), + }, + 53: { + Finvc: float64(1.09375), + Flogc: -Float64FromFloat64(0.089612158689647), + Flogctail: -Float64FromFloat64(4.012913552726574e-14), + }, + 54: { + Finvc: float64(1.0859375), + Flogc: -Float64FromFloat64(0.08244366921110213), + Flogctail: float64(2.7541708360737882e-14), + }, + 55: { + Finvc: float64(1.0859375), + Flogc: -Float64FromFloat64(0.08244366921110213), + Flogctail: float64(2.7541708360737882e-14), + }, + 56: { + Finvc: float64(1.078125), + Flogc: -Float64FromFloat64(0.07522342123763792), + Flogctail: float64(5.0396178134370583e-14), + }, + 57: { + Finvc: float64(1.078125), + Flogc: -Float64FromFloat64(0.07522342123763792), + Flogctail: float64(5.0396178134370583e-14), + }, + 58: { + Finvc: float64(1.0703125), + Flogc: -Float64FromFloat64(0.06795066190852594), + Flogctail: float64(1.8195060030168815e-14), + }, + 59: { + Finvc: float64(1.0625), + Flogc: -Float64FromFloat64(0.06062462181648698), + Flogctail: float64(5.213620639136504e-14), + }, + 60: { + Finvc: float64(1.0625), + Flogc: -Float64FromFloat64(0.06062462181648698), + Flogctail: float64(5.213620639136504e-14), + }, + 61: { + Finvc: float64(1.0546875), + Flogc: -Float64FromFloat64(0.053244514518837605), + Flogctail: float64(2.532168943117445e-14), + }, + 62: { + Finvc: float64(1.0546875), + Flogc: -Float64FromFloat64(0.053244514518837605), + Flogctail: float64(2.532168943117445e-14), + }, + 63: { + Finvc: float64(1.046875), + Flogc: -Float64FromFloat64(0.045809536031242715), + Flogctail: -Float64FromFloat64(5.148849572685811e-14), + }, + 64: { + Finvc: float64(1.046875), + Flogc: -Float64FromFloat64(0.045809536031242715), + Flogctail: -Float64FromFloat64(5.148849572685811e-14), + }, + 65: { + Finvc: float64(1.0390625), + Flogc: -Float64FromFloat64(0.038318864302141264), + Flogctail: float64(4.6652946995830086e-15), + }, + 66: { + Finvc: float64(1.0390625), + Flogc: -Float64FromFloat64(0.038318864302141264), + Flogctail: float64(4.6652946995830086e-15), + }, + 67: { + Finvc: float64(1.03125), + Flogc: -Float64FromFloat64(0.03077165866670839), + Flogctail: -Float64FromFloat64(4.529814257790929e-14), + }, + 68: { + Finvc: float64(1.03125), + Flogc: -Float64FromFloat64(0.03077165866670839), + Flogctail: -Float64FromFloat64(4.529814257790929e-14), + }, + 69: { + Finvc: float64(1.0234375), + Flogc: -Float64FromFloat64(0.023167059281490765), + Flogctail: -Float64FromFloat64(4.361324067851568e-14), + }, + 70: { + Finvc: float64(1.015625), + Flogc: -Float64FromFloat64(0.015504186535963527), + Flogctail: -Float64FromFloat64(1.7274567499706107e-15), + }, + 71: { + Finvc: float64(1.015625), + Flogc: -Float64FromFloat64(0.015504186535963527), + Flogctail: -Float64FromFloat64(1.7274567499706107e-15), + }, + 72: { + Finvc: float64(1.0078125), + Flogc: -Float64FromFloat64(0.0077821404420319595), + Flogctail: -Float64FromFloat64(2.298941004620351e-14), + }, + 73: { + Finvc: float64(1.0078125), + Flogc: -Float64FromFloat64(0.0077821404420319595), + Flogctail: -Float64FromFloat64(2.298941004620351e-14), + }, + 74: { + Finvc: float64(1), + }, + 75: { + Finvc: float64(1), + }, + 76: { + Finvc: float64(0.9921875), + Flogc: float64(0.007843177461040796), + Flogctail: -Float64FromFloat64(1.4902732911301337e-14), + }, + 77: { + Finvc: float64(0.984375), + Flogc: float64(0.01574835696817445), + Flogctail: -Float64FromFloat64(3.527980389655325e-14), + }, + 78: { + Finvc: float64(0.9765625), + Flogc: float64(0.023716526617363343), + Flogctail: -Float64FromFloat64(4.730054772033249e-14), + }, + 79: { + Finvc: float64(0.96875), + Flogc: float64(0.03174869831457272), + Flogctail: float64(7.580310369375161e-15), + }, + 80: { + Finvc: float64(0.9609375), + Flogc: float64(0.039845908547249564), + Flogctail: -Float64FromFloat64(4.9893776716773285e-14), + }, + 81: { + Finvc: float64(0.953125), + Flogc: float64(0.048009219186383234), + Flogctail: -Float64FromFloat64(2.262629393030674e-14), + }, + 82: { + Finvc: float64(0.9453125), + Flogc: float64(0.056239718322899535), + Flogctail: -Float64FromFloat64(2.345674491018699e-14), + }, + 83: { + Finvc: float64(0.94140625), + Flogc: float64(0.06038051098892083), + Flogctail: -Float64FromFloat64(1.3352588834854848e-14), + }, + 84: { + Finvc: float64(0.93359375), + Flogc: float64(0.06871389254808946), + Flogctail: -Float64FromFloat64(3.765296820388875e-14), + }, + 85: { + Finvc: float64(0.92578125), + Flogc: float64(0.07711730334438016), + Flogctail: float64(5.1128335719851986e-14), + }, + 86: { + Finvc: float64(0.91796875), + Flogc: float64(0.08559193033545398), + Flogctail: -Float64FromFloat64(5.046674438470119e-14), + }, + 87: { + Finvc: float64(0.9140625), + Flogc: float64(0.08985632912185793), + Flogctail: float64(3.1218748807418837e-15), + }, + 88: { + Finvc: float64(0.90625), + Flogc: float64(0.09844007281321865), + Flogctail: float64(3.3871241029241416e-14), + }, + 89: { + Finvc: float64(0.8984375), + Flogc: float64(0.10709813555638448), + Flogctail: -Float64FromFloat64(1.7376727386423858e-14), + }, + 90: { + Finvc: float64(0.89453125), + Flogc: float64(0.11145544092528326), + Flogctail: float64(3.957125899799804e-14), + }, + 91: { + Finvc: float64(0.88671875), + Flogc: float64(0.12022742699821265), + Flogctail: -Float64FromFloat64(5.2849453521890294e-14), + }, + 92: { + Finvc: float64(0.8828125), + Flogc: float64(0.12464244520731427), + Flogctail: -Float64FromFloat64(3.767012502308738e-14), + }, + 93: { + Finvc: float64(0.875), + Flogc: float64(0.13353139262449076), + Flogctail: float64(3.1859736349078334e-14), + }, + 94: { + Finvc: float64(0.87109375), + Flogc: float64(0.13800567301939282), + Flogctail: float64(5.0900642926060466e-14), + }, + 95: { + Finvc: float64(0.86328125), + Flogc: float64(0.14701474296180095), + Flogctail: float64(8.710783796122478e-15), + }, + 96: { + Finvc: float64(0.859375), + Flogc: float64(0.15154989812720032), + Flogctail: float64(6.157896229122976e-16), + }, + 97: { + Finvc: float64(0.8515625), + Flogc: float64(0.16068238169043525), + Flogctail: float64(3.821577743916796e-14), + }, + 98: { + Finvc: float64(0.84765625), + Flogc: float64(0.16528009093906348), + Flogctail: float64(3.9440046718453496e-14), + }, + 99: { + Finvc: float64(0.83984375), + Flogc: float64(0.17453941635187675), + Flogctail: float64(2.2924522154618074e-14), + }, + 100: { + Finvc: float64(0.8359375), + Flogc: float64(0.17920142945774842), + Flogctail: -Float64FromFloat64(3.742530094732263e-14), + }, + 101: { + Finvc: float64(0.83203125), + Flogc: float64(0.18388527877016259), + Flogctail: -Float64FromFloat64(2.5223102140407338e-14), + }, + 102: { + Finvc: float64(0.82421875), + Flogc: float64(0.1933193110035063), + Flogctail: -Float64FromFloat64(1.0320443688698849e-14), + }, + 103: { + Finvc: float64(0.8203125), + Flogc: float64(0.19806991376208316), + Flogctail: float64(1.0634128304268335e-14), + }, + 104: { + Finvc: float64(0.8125), + Flogc: float64(0.20763936477828793), + Flogctail: -Float64FromFloat64(4.3425422595242564e-14), + }, + 105: { + Finvc: float64(0.80859375), + Flogc: float64(0.21245865121420593), + Flogctail: -Float64FromFloat64(1.2527395755711364e-14), + }, + 106: { + Finvc: float64(0.8046875), + Flogc: float64(0.21730127569003344), + Flogctail: -Float64FromFloat64(5.204008743405884e-14), + }, + 107: { + Finvc: float64(0.80078125), + Flogc: float64(0.22216746534115828), + Flogctail: -Float64FromFloat64(3.979844515951702e-15), + }, + 108: { + Finvc: float64(0.79296875), + Flogc: float64(0.2319714654378231), + Flogctail: -Float64FromFloat64(4.7955860343296286e-14), + }, + 109: { + Finvc: float64(0.7890625), + Flogc: float64(0.2369097470783572), + Flogctail: float64(5.015686013791602e-16), + }, + 110: { + Finvc: float64(0.78515625), + Flogc: float64(0.24187253642048745), + Flogctail: -Float64FromFloat64(7.252318953240293e-16), + }, + 111: { + Finvc: float64(0.78125), + Flogc: float64(0.2468600779315011), + Flogctail: float64(2.4688324156011588e-14), + }, + 112: { + Finvc: float64(0.7734375), + Flogc: float64(0.2569104137850218), + Flogctail: float64(5.465121253624792e-15), + }, + 113: { + Finvc: float64(0.76953125), + Flogc: float64(0.26197371574153294), + Flogctail: float64(4.102651071698446e-14), + }, + 114: { + Finvc: float64(0.765625), + Flogc: float64(0.2670627852490952), + Flogctail: -Float64FromFloat64(4.996736502345936e-14), + }, + 115: { + Finvc: float64(0.76171875), + Flogc: float64(0.27217788591576664), + Flogctail: float64(4.903580708156347e-14), + }, + 116: { + Finvc: float64(0.7578125), + Flogc: float64(0.27731928541618345), + Flogctail: float64(5.089628039500759e-14), + }, + 117: { + Finvc: float64(0.75390625), + Flogc: float64(0.28248725557466514), + Flogctail: float64(1.1782016386565151e-14), + }, + 118: { + Finvc: float64(0.74609375), + Flogc: float64(0.29290401643288533), + Flogctail: float64(4.727452940514406e-14), + }, + 119: { + Finvc: float64(0.7421875), + Flogc: float64(0.29815337231912054), + Flogctail: -Float64FromFloat64(4.4204083338755686e-14), + }, + 120: { + Finvc: float64(0.73828125), + Flogc: float64(0.3034304294199046), + Flogctail: float64(1.548345993498083e-14), + }, + 121: { + Finvc: float64(0.734375), + Flogc: float64(0.30873548164959175), + Flogctail: float64(2.1522127491642888e-14), + }, + 122: { + Finvc: float64(0.73046875), + Flogc: float64(0.3140688276249648), + Flogctail: float64(1.1054030169005386e-14), + }, + 123: { + Finvc: float64(0.7265625), + Flogc: float64(0.31943077076641657), + Flogctail: -Float64FromFloat64(5.534326352070679e-14), + }, + 124: { + Finvc: float64(0.72265625), + Flogc: float64(0.3248216194012912), + Flogctail: -Float64FromFloat64(5.351646604259541e-14), + }, + 125: { + Finvc: float64(0.71875), + Flogc: float64(0.33024168687052224), + Flogctail: float64(5.4612144489920215e-14), + }, + 126: { + Finvc: float64(0.71484375), + Flogc: float64(0.3356912916381134), + Flogctail: float64(2.8136969901227338e-14), + }, + 127: { + Finvc: float64(0.7109375), + Flogc: float64(0.3411707574027787), + Flogctail: -Float64FromFloat64(1.156568624616423e-14), + }, + }, +} + +var X__powf_log2_data = Tpowf_log2_data{ + Ftab: [16]struct { + Finvc float64 + Flogc float64 + }{ + 0: { + Finvc: float64(1.398907162146528), + Flogc: float64(-Float64FromFloat64(0.48430022186289673) * float64(Int32FromInt32(1)<> int32(32)) + **(**int32)(__ccgo_up(expt)) = Int32FromUint32(hx>>Int32FromInt32(20) - Uint32FromInt32(Int32FromInt32(0x3ff)+Int32FromInt32(1023)) + _k) + v1 = uint64(hx&Uint32FromInt32(0xfffff)|Uint32FromInt32((Int32FromInt32(0x3ff)+Int32FromInt32(1023))<= ln(DBL_MAX)) +// * where care is needed to avoid overflow. +// * +// * The present implementation is narrowly tailored for our hyperbolic and +// * exponential functions. We assume expt is small (0 or -1), and the caller +// * has filtered out very large x, for which overflow would be inevitable. +// */ +func X__ldexp_cexp(tls *TLS, z complex128, expt int32) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v expt=%v, (%v:)", tls, z, expt, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var exp_x, scale1, scale2, x, y float64 + var half_expt int32 + var v1 Tuint64_t + var v3 [2]float64 + var _ /* ex_expt at bp+0 */ int32 + _, _, _, _, _, _, _, _ = exp_x, half_expt, scale1, scale2, x, y, v1, v3 + x = Float64FromComplex128(z) + y = +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] + exp_x = ___frexp_exp(tls, x, bp) + expt = expt + **(**int32)(__ccgo_up(bp)) + /* + * Arrange so that scale1 * scale2 == 2**expt. We use this to + * compensate for scalbn being horrendously slow. + */ + half_expt = expt / int32(2) + v1 = Uint64FromInt32((Int32FromInt32(0x3ff)+half_expt)<>Int32FromInt32(23) - Uint32FromInt32(Int32FromInt32(0x7f)+Int32FromInt32(127)) + _k1) + v1 = hx&uint32(0x7fffff) | Uint32FromInt32((Int32FromInt32(0x7f)+Int32FromInt32(127))< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var exp_x, scale1, scale2, x, y float32 + var half_expt int32 + var v1 Tuint32_t + var v3 [2]float32 + var _ /* ex_expt at bp+0 */ int32 + _, _, _, _, _, _, _, _ = exp_x, half_expt, scale1, scale2, x, y, v1, v3 + x = Float32FromComplex64(z) + y = +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] + exp_x = ___frexp_expf(tls, x, bp) + expt = expt + **(**int32)(__ccgo_up(bp)) + half_expt = expt / int32(2) + v1 = Uint32FromInt32((int32(0x7f) + half_expt) << int32(23)) + scale1 = *(*float32)(unsafe.Pointer(&v1)) + half_expt = expt - half_expt + v1 = Uint32FromInt32((int32(0x7f) + half_expt) << int32(23)) + scale2 = *(*float32)(unsafe.Pointer(&v1)) + v3 = [2]float32{ + 0: float32(float32(float32(Xcosf(tls, y)*exp_x)*scale1) * scale2), + 1: float32(float32(float32(Xsinf(tls, y)*exp_x)*scale1) * scale2), + } + return *(*complex64)(unsafe.Pointer(&v3)) +} + +func Xcabs(tls *TLS, z complex128) (r float64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xhypot(tls, Float64FromComplex128(z), +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)]) +} + +func Xcabsf(tls *TLS, z complex64) (r float32) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xhypotf(tls, Float32FromComplex64(z), +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)]) +} + +func Xcabsl(tls *TLS, z complex128) (r float64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xcabs(tls, Complex128FromComplex128(z)) +} + +const M_PI_21 = 1.5707963267948966 + +// FIXME: Hull et al. "Implementing the complex arcsine and arccosine functions using exception handling" 1997 + +/* acos(z) = pi/2 - asin(z) */ + +func Xcacos(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float64 + _ = v1 + z = Xcasin(tls, z) + v1 = [2]float64{ + 0: float64(1.5707963267948966) - Float64FromComplex128(z), + 1: -+(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +// FIXME + +var _float_pi_2 = float32(1.5707963267948966) + +func Xcacosf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float32 + _ = v1 + z = Xcasinf(tls, z) + v1 = [2]float32{ + 0: _float_pi_2 - Float32FromComplex64(z), + 1: -+(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + } + return *(*complex64)(unsafe.Pointer(&v1)) +} + +const M_PI_22 = 0 + +/* acosh(z) = i acos(z) */ + +func Xcacosh(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var zineg int32 + var v1 uint64 + var v3 [2]float64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _, _, _ = zineg, v1, v3 + *(*float64)(unsafe.Pointer(bp)) = +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + zineg = Int32FromUint64(v1 >> Int32FromInt32(63)) + z = Xcacos(tls, z) + if zineg != 0 { + v3 = [2]float64{ + 0: +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: -Float64FromComplex128(z), + } + return *(*complex128)(unsafe.Pointer(&v3)) + } else { + v3 = [2]float64{ + 0: -+(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: Float64FromComplex128(z), + } + return *(*complex128)(unsafe.Pointer(&v3)) + } + return r +} + +func Xcacoshf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var zineg int32 + var v1 uint32 + var v3 [2]float32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _, _, _ = zineg, v1, v3 + *(*float32)(unsafe.Pointer(bp)) = +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + zineg = Int32FromUint32(v1 >> Int32FromInt32(31)) + z = Xcacosf(tls, z) + if zineg != 0 { + v3 = [2]float32{ + 0: +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: -Float32FromComplex64(z), + } + return *(*complex64)(unsafe.Pointer(&v3)) + } else { + v3 = [2]float32{ + 0: -+(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: Float32FromComplex64(z), + } + return *(*complex64)(unsafe.Pointer(&v3)) + } + return r +} + +func Xcacoshl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcacosh(tls, Complex128FromComplex128(z))) +} + +func Xcacosl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcacos(tls, Complex128FromComplex128(z))) +} + +func Xcarg(tls *TLS, z complex128) (r float64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xatan2(tls, +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], Float64FromComplex128(z)) +} + +func Xcargf(tls *TLS, z complex64) (r float32) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xatan2f(tls, +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], Float32FromComplex64(z)) +} + +func Xcargl(tls *TLS, z complex128) (r float64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xcarg(tls, Complex128FromComplex128(z)) +} + +// FIXME + +/* asin(z) = -i log(i z + sqrt(1 - z*z)) */ + +func Xcasin(tls *TLS, z complex128) (r1 complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, w complex128 + var x, y float64 + var v1, v2 [2]float64 + _, _, _, _, _, _ = r, w, x, y, v1, v2 + x = Float64FromComplex128(z) + y = +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] + v1 = [2]float64{ + 0: float64(1) - float64((x-y)*(x+y)), + 1: float64(float64(-Float64FromFloat64(2)*x) * y), + } + w = *(*complex128)(unsafe.Pointer(&v1)) + v1 = [2]float64{ + 0: -y, + 1: x, + } + r = Xclog(tls, *(*complex128)(unsafe.Pointer(&v1))+Xcsqrt(tls, w)) + v2 = [2]float64{ + 0: +(*(*[2]float64)(unsafe.Pointer(&r)))[int32(1)], + 1: -Float64FromComplex128(r), + } + return *(*complex128)(unsafe.Pointer(&v2)) +} + +// FIXME + +func Xcasinf(tls *TLS, z complex64) (r1 complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, w complex64 + var x, y float32 + var v1, v2 [2]float32 + _, _, _, _, _, _ = r, w, x, y, v1, v2 + x = Float32FromComplex64(z) + y = +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] + v1 = [2]float32{ + 0: float32(Float64FromFloat64(1) - float64((x-y)*(x+y))), + 1: float32(float64(float64(-Float64FromFloat64(2)*float64(x)) * float64(y))), + } + w = *(*complex64)(unsafe.Pointer(&v1)) + v1 = [2]float32{ + 0: -y, + 1: x, + } + r = Xclogf(tls, *(*complex64)(unsafe.Pointer(&v1))+Xcsqrtf(tls, w)) + v2 = [2]float32{ + 0: +(*(*[2]float32)(unsafe.Pointer(&r)))[int32(1)], + 1: -Float32FromComplex64(r), + } + return *(*complex64)(unsafe.Pointer(&v2)) +} + +/* asinh(z) = -i asin(i z) */ + +func Xcasinh(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float64 + _ = v1 + v1 = [2]float64{ + 0: -+(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: Float64FromComplex128(z), + } + z = Xcasin(tls, *(*complex128)(unsafe.Pointer(&v1))) + v1 = [2]float64{ + 0: +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: -Float64FromComplex128(z), + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +func Xcasinhf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float32 + _ = v1 + v1 = [2]float32{ + 0: -+(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: Float32FromComplex64(z), + } + z = Xcasinf(tls, *(*complex64)(unsafe.Pointer(&v1))) + v1 = [2]float32{ + 0: +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: -Float32FromComplex64(z), + } + return *(*complex64)(unsafe.Pointer(&v1)) +} + +func Xcasinhl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcasinh(tls, Complex128FromComplex128(z))) +} + +func Xcasinl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcasin(tls, Complex128FromComplex128(z))) +} + +const MAXNUM = 0 +const M_PI1 = 3.141592653589793 + +var _DP1 = float64(3.141592651605606) +var _DP2 = float64(1.9841871479187034e-09) +var _DP3 = float64(1.1442377452219664e-17) + +func __redupi(tls *TLS, x float64) (r float64) { + var i int64 + var t float64 + _, _ = i, t + t = x / float64(3.141592653589793) + if t >= float64(0) { + t = t + float64(0.5) + } else { + t = t - float64(0.5) + } + i = int64(t) /* the multiple */ + t = float64(i) + t = x - float64(t*_DP1) - float64(t*_DP2) - float64(t*_DP3) + return t +} + +func Xcatan(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, t, x, x2, y float64 + var w complex128 + var v1 [2]float64 + _, _, _, _, _, _, _ = a, t, w, x, x2, y, v1 + x = Float64FromComplex128(z) + y = +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] + x2 = float64(x * x) + a = float64(1) - x2 - float64(y*y) + t = float64(float64(0.5) * Xatan2(tls, float64(float64(2)*x), a)) + w = Complex128FromFloat64(__redupi(tls, t)) + t = y - float64(1) + a = x2 + float64(t*t) + t = y + float64(1) + a = (x2 + float64(t*t)) / a + v1 = [2]float64{ + 0: Float64FromComplex128(w), + 1: float64(float64(0.25) * Xlog(tls, a)), + } + w = *(*complex128)(unsafe.Pointer(&v1)) + return w +} + +const MAXNUMF = 0 + +var _DP11 = float64(3.140625) +var _DP21 = float64(0.0009675025939941406) +var _DP31 = float64(1.5099579909783765e-07) + +var _float_pi = float32(3.141592653589793) + +func __redupif(tls *TLS, xx float32) (r float32) { + var i int64 + var t, x float32 + _, _, _ = i, t, x + x = xx + t = x / _float_pi + if t >= Float32FromFloat32(0) { + t = t + Float32FromFloat32(0.5) + } else { + t = t - Float32FromFloat32(0.5) + } + i = int64(t) /* the multiple */ + t = float32(i) + t = float32(float64(x) - float64(float64(t)*_DP11) - float64(float64(t)*_DP21) - float64(float64(t)*_DP31)) + return t +} + +func Xcatanf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, t, x, x2, y float32 + var w complex64 + var v1 [2]float32 + _, _, _, _, _, _, _ = a, t, w, x, x2, y, v1 + x = Float32FromComplex64(z) + y = +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] + x2 = float32(x * x) + a = Float32FromFloat32(1) - x2 - float32(y*y) + t = float32(Float32FromFloat32(0.5) * Xatan2f(tls, float32(Float32FromFloat32(2)*x), a)) + w = Complex64FromFloat32(__redupif(tls, t)) + t = y - Float32FromFloat32(1) + a = x2 + float32(t*t) + t = y + Float32FromFloat32(1) + a = (x2 + float32(t*t)) / a + v1 = [2]float32{ + 0: Float32FromComplex64(w), + 1: float32(Float32FromFloat32(0.25) * Xlogf(tls, a)), + } + w = *(*complex64)(unsafe.Pointer(&v1)) + return w +} + +const M_PI2 = 0 + +/* atanh = -i atan(i z) */ + +func Xcatanh(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float64 + _ = v1 + v1 = [2]float64{ + 0: -+(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: Float64FromComplex128(z), + } + z = Xcatan(tls, *(*complex128)(unsafe.Pointer(&v1))) + v1 = [2]float64{ + 0: +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: -Float64FromComplex128(z), + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +func Xcatanhf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float32 + _ = v1 + v1 = [2]float32{ + 0: -+(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: Float32FromComplex64(z), + } + z = Xcatanf(tls, *(*complex64)(unsafe.Pointer(&v1))) + v1 = [2]float32{ + 0: +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: -Float32FromComplex64(z), + } + return *(*complex64)(unsafe.Pointer(&v1)) +} + +func Xcatanhl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcatanh(tls, Complex128FromComplex128(z))) +} + +func Xcatanl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcatan(tls, Complex128FromComplex128(z))) +} + +/* cos(z) = cosh(i z) */ + +func Xccos(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float64 + _ = v1 + v1 = [2]float64{ + 0: -+(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: Float64FromComplex128(z), + } + return Xccosh(tls, *(*complex128)(unsafe.Pointer(&v1))) +} + +func Xccosf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float32 + _ = v1 + v1 = [2]float32{ + 0: -+(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: Float32FromComplex64(z), + } + return Xccoshf(tls, *(*complex64)(unsafe.Pointer(&v1))) +} + +var _huge = float64(8.98846567431158e+307) + +func Xccosh(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __u, __u1 Tuint64_t + var h, x, y float64 + var hx, hy, ix, iy, lx, ly Tint32_t + var v1 [2]float64 + _, _, _, _, _, _, _, _, _, _, _, _ = __u, __u1, h, hx, hy, ix, iy, lx, ly, x, y, v1 + x = Float64FromComplex128(z) + y = +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] + __u = *(*Tuint64_t)(unsafe.Pointer(&x)) + hx = Int32FromUint64(__u >> int32(32)) + lx = Int32FromUint32(uint32(__u)) + __u1 = *(*Tuint64_t)(unsafe.Pointer(&y)) + hy = Int32FromUint64(__u1 >> int32(32)) + ly = Int32FromUint32(uint32(__u1)) + ix = int32(0x7fffffff) & hx + iy = int32(0x7fffffff) & hy + /* Handle the nearly-non-exceptional cases where x and y are finite. */ + if ix < int32(0x7ff00000) && iy < int32(0x7ff00000) { + if iy|ly == 0 { + v1 = [2]float64{ + 0: Xcosh(tls, x), + 1: float64(x * y), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + if ix < int32(0x40360000) { /* small x: normal case */ + v1 = [2]float64{ + 0: float64(Xcosh(tls, x) * Xcos(tls, y)), + 1: float64(Xsinh(tls, x) * Xsin(tls, y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* |x| >= 22, so cosh(x) ~= exp(|x|) */ + if ix < int32(0x40862e42) { + /* x < 710: exp(|x|) won't overflow */ + h = float64(Xexp(tls, Xfabs(tls, x)) * float64(0.5)) + v1 = [2]float64{ + 0: float64(h * Xcos(tls, y)), + 1: float64(Xcopysign(tls, h, x) * Xsin(tls, y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } else { + if ix < int32(0x4096bbaa) { + /* x < 1455: scale to avoid overflow */ + v1 = [2]float64{ + 0: Xfabs(tls, x), + 1: y, + } + z = X__ldexp_cexp(tls, *(*complex128)(unsafe.Pointer(&v1)), -int32(1)) + v1 = [2]float64{ + 0: Float64FromComplex128(z), + 1: float64(+(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] * Xcopysign(tls, Float64FromInt32(1), x)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } else { + /* x >= 1455: the result always overflows */ + h = float64(_huge * x) + v1 = [2]float64{ + 0: float64(float64(h*h) * Xcos(tls, y)), + 1: float64(h * Xsin(tls, y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + } + } + /* + * cosh(+-0 +- I Inf) = dNaN + I sign(d(+-0, dNaN))0. + * The sign of 0 in the result is unspecified. Choice = normally + * the same as dNaN. Raise the invalid floating-point exception. + * + * cosh(+-0 +- I NaN) = d(NaN) + I sign(d(+-0, NaN))0. + * The sign of 0 in the result is unspecified. Choice = normally + * the same as d(NaN). + */ + if ix|lx == 0 && iy >= int32(0x7ff00000) { + v1 = [2]float64{ + 0: y - y, + 1: Xcopysign(tls, Float64FromInt32(0), float64(x*(y-y))), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* + * cosh(+-Inf +- I 0) = +Inf + I (+-)(+-)0. + * + * cosh(NaN +- I 0) = d(NaN) + I sign(d(NaN, +-0))0. + * The sign of 0 in the result is unspecified. + */ + if iy|ly == 0 && ix >= int32(0x7ff00000) { + if hx&int32(0xfffff)|lx == 0 { + v1 = [2]float64{ + 0: float64(x * x), + 1: float64(Xcopysign(tls, Float64FromInt32(0), x) * y), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + v1 = [2]float64{ + 0: float64(x * x), + 1: Xcopysign(tls, Float64FromInt32(0), float64((x+x)*y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* + * cosh(x +- I Inf) = dNaN + I dNaN. + * Raise the invalid floating-point exception for finite nonzero x. + * + * cosh(x + I NaN) = d(NaN) + I d(NaN). + * Optionally raises the invalid floating-point exception for finite + * nonzero x. Choice = don't raise (except for signaling NaNs). + */ + if ix < int32(0x7ff00000) && iy >= int32(0x7ff00000) { + v1 = [2]float64{ + 0: y - y, + 1: float64(x * (y - y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* + * cosh(+-Inf + I NaN) = +Inf + I d(NaN). + * + * cosh(+-Inf +- I Inf) = +Inf + I dNaN. + * The sign of Inf in the result is unspecified. Choice = always +. + * Raise the invalid floating-point exception. + * + * cosh(+-Inf + I y) = +Inf cos(y) +- I Inf sin(y) + */ + if ix >= int32(0x7ff00000) && hx&int32(0xfffff)|lx == 0 { + if iy >= int32(0x7ff00000) { + v1 = [2]float64{ + 0: float64(x * x), + 1: float64(x * (y - y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + v1 = [2]float64{ + 0: float64(float64(x*x) * Xcos(tls, y)), + 1: float64(x * Xsin(tls, y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* + * cosh(NaN + I NaN) = d(NaN) + I d(NaN). + * + * cosh(NaN +- I Inf) = d(NaN) + I d(NaN). + * Optionally raises the invalid floating-point exception. + * Choice = raise. + * + * cosh(NaN + I y) = d(NaN) + I d(NaN). + * Optionally raises the invalid floating-point exception for finite + * nonzero y. Choice = don't raise (except for signaling NaNs). + */ + v1 = [2]float64{ + 0: float64(float64(x*x) * (y - y)), + 1: float64((x + x) * (y - y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +var _huge1 = float32(1.7014118346046923e+38) + +func Xccoshf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var h, x, y float32 + var hx, hy, ix, iy Tint32_t + var v1 [2]float32 + _, _, _, _, _, _, _, _ = h, hx, hy, ix, iy, x, y, v1 + x = Float32FromComplex64(z) + y = +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] + hx = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(&x))) + hy = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(&y))) + ix = int32(0x7fffffff) & hx + iy = int32(0x7fffffff) & hy + if ix < int32(0x7f800000) && iy < int32(0x7f800000) { + if iy == 0 { + v1 = [2]float32{ + 0: Xcoshf(tls, x), + 1: float32(x * y), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + if ix < int32(0x41100000) { /* small x: normal case */ + v1 = [2]float32{ + 0: float32(Xcoshf(tls, x) * Xcosf(tls, y)), + 1: float32(Xsinhf(tls, x) * Xsinf(tls, y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + /* |x| >= 9, so cosh(x) ~= exp(|x|) */ + if ix < int32(0x42b17218) { + /* x < 88.7: expf(|x|) won't overflow */ + h = float32(Xexpf(tls, Xfabsf(tls, x)) * Float32FromFloat32(0.5)) + v1 = [2]float32{ + 0: float32(h * Xcosf(tls, y)), + 1: float32(Xcopysignf(tls, h, x) * Xsinf(tls, y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } else { + if ix < int32(0x4340b1e7) { + /* x < 192.7: scale to avoid overflow */ + v1 = [2]float32{ + 0: Xfabsf(tls, x), + 1: y, + } + z = X__ldexp_cexpf(tls, *(*complex64)(unsafe.Pointer(&v1)), -int32(1)) + v1 = [2]float32{ + 0: Float32FromComplex64(z), + 1: float32(+(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] * Xcopysignf(tls, Float32FromInt32(1), x)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } else { + /* x >= 192.7: the result always overflows */ + h = float32(_huge1 * x) + v1 = [2]float32{ + 0: float32(float32(h*h) * Xcosf(tls, y)), + 1: float32(h * Xsinf(tls, y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + } + } + if ix == 0 && iy >= int32(0x7f800000) { + v1 = [2]float32{ + 0: y - y, + 1: Xcopysignf(tls, Float32FromInt32(0), float32(x*(y-y))), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + if iy == 0 && ix >= int32(0x7f800000) { + if hx&int32(0x7fffff) == 0 { + v1 = [2]float32{ + 0: float32(x * x), + 1: float32(Xcopysignf(tls, Float32FromInt32(0), x) * y), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + v1 = [2]float32{ + 0: float32(x * x), + 1: Xcopysignf(tls, Float32FromInt32(0), float32((x+x)*y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + if ix < int32(0x7f800000) && iy >= int32(0x7f800000) { + v1 = [2]float32{ + 0: y - y, + 1: float32(x * (y - y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + if ix >= int32(0x7f800000) && hx&int32(0x7fffff) == 0 { + if iy >= int32(0x7f800000) { + v1 = [2]float32{ + 0: float32(x * x), + 1: float32(x * (y - y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + v1 = [2]float32{ + 0: float32(float32(x*x) * Xcosf(tls, y)), + 1: float32(x * Xsinf(tls, y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + v1 = [2]float32{ + 0: float32(float32(x*x) * (y - y)), + 1: float32((x + x) * (y - y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) +} + +// C documentation +// +// //FIXME +func Xccoshl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xccosh(tls, Complex128FromComplex128(z))) +} + +func Xccosl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xccos(tls, Complex128FromComplex128(z))) +} + +var _exp_ovfl = uint32(0x40862e42) /* high bits of MAX_EXP * ln2 ~= 710 */ +var _cexp_ovfl = uint32(0x4096b8e4) /* (MAX_EXP - MIN_DENORM_EXP) * ln2 */ + +func Xcexp(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __u, __u1 Tuint64_t + var exp_x, x, y float64 + var hx, hy, lx, ly Tuint32_t + var v1 [2]float64 + _, _, _, _, _, _, _, _, _, _ = __u, __u1, exp_x, hx, hy, lx, ly, x, y, v1 + x = Float64FromComplex128(z) + y = +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] + __u = *(*Tuint64_t)(unsafe.Pointer(&y)) + hy = uint32(__u >> int32(32)) + ly = uint32(__u) + hy = hy & uint32(0x7fffffff) + /* cexp(x + I 0) = exp(x) + I 0 */ + if hy|ly == uint32(0) { + v1 = [2]float64{ + 0: Xexp(tls, x), + 1: y, + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + __u1 = *(*Tuint64_t)(unsafe.Pointer(&x)) + hx = uint32(__u1 >> int32(32)) + lx = uint32(__u1) + /* cexp(0 + I y) = cos(y) + I sin(y) */ + if hx&uint32(0x7fffffff)|lx == uint32(0) { + v1 = [2]float64{ + 0: Xcos(tls, y), + 1: Xsin(tls, y), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + if hy >= uint32(0x7ff00000) { + if lx != uint32(0) || hx&uint32(0x7fffffff) != uint32(0x7ff00000) { + /* cexp(finite|NaN +- I Inf|NaN) = NaN + I NaN */ + v1 = [2]float64{ + 0: y - y, + 1: y - y, + } + return *(*complex128)(unsafe.Pointer(&v1)) + } else { + if hx&uint32(0x80000000) != 0 { + /* cexp(-Inf +- I Inf|NaN) = 0 + I 0 */ + v1 = [2]float64{} + return *(*complex128)(unsafe.Pointer(&v1)) + } else { + /* cexp(+Inf +- I Inf|NaN) = Inf + I NaN */ + v1 = [2]float64{ + 0: x, + 1: y - y, + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + } + } + if hx >= _exp_ovfl && hx <= _cexp_ovfl { + /* + * x is between 709.7 and 1454.3, so we must scale to avoid + * overflow in exp(x). + */ + return X__ldexp_cexp(tls, z, 0) + } else { + /* + * Cases covered here: + * - x < exp_ovfl and exp(x) won't overflow (common case) + * - x > cexp_ovfl, so exp(x) * s overflows for all s > 0 + * - x = +-Inf (generated by exp()) + * - x = NaN (spurious inexact exception from y) + */ + exp_x = Xexp(tls, x) + v1 = [2]float64{ + 0: float64(exp_x * Xcos(tls, y)), + 1: float64(exp_x * Xsin(tls, y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + return r +} + +var _exp_ovfl1 = uint32(0x42b17218) /* MAX_EXP * ln2 ~= 88.722839355 */ +var _cexp_ovfl1 = uint32(0x43400074) /* (MAX_EXP - MIN_DENORM_EXP) * ln2 */ + +func Xcexpf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var exp_x, x, y float32 + var hx, hy Tuint32_t + var v1 [2]float32 + _, _, _, _, _, _ = exp_x, hx, hy, x, y, v1 + x = Float32FromComplex64(z) + y = +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] + hy = *(*Tuint32_t)(unsafe.Pointer(&y)) + hy = hy & uint32(0x7fffffff) + /* cexp(x + I 0) = exp(x) + I 0 */ + if hy == uint32(0) { + v1 = [2]float32{ + 0: Xexpf(tls, x), + 1: y, + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + hx = *(*Tuint32_t)(unsafe.Pointer(&x)) + /* cexp(0 + I y) = cos(y) + I sin(y) */ + if hx&uint32(0x7fffffff) == uint32(0) { + v1 = [2]float32{ + 0: Xcosf(tls, y), + 1: Xsinf(tls, y), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + if hy >= uint32(0x7f800000) { + if hx&uint32(0x7fffffff) != uint32(0x7f800000) { + /* cexp(finite|NaN +- I Inf|NaN) = NaN + I NaN */ + v1 = [2]float32{ + 0: y - y, + 1: y - y, + } + return *(*complex64)(unsafe.Pointer(&v1)) + } else { + if hx&uint32(0x80000000) != 0 { + /* cexp(-Inf +- I Inf|NaN) = 0 + I 0 */ + v1 = [2]float32{} + return *(*complex64)(unsafe.Pointer(&v1)) + } else { + /* cexp(+Inf +- I Inf|NaN) = Inf + I NaN */ + v1 = [2]float32{ + 0: x, + 1: y - y, + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + } + } + if hx >= _exp_ovfl1 && hx <= _cexp_ovfl1 { + /* + * x is between 88.7 and 192, so we must scale to avoid + * overflow in expf(x). + */ + return X__ldexp_cexpf(tls, z, 0) + } else { + /* + * Cases covered here: + * - x < exp_ovfl and exp(x) won't overflow (common case) + * - x > cexp_ovfl, so exp(x) * s overflows for all s > 0 + * - x = +-Inf (generated by exp()) + * - x = NaN (spurious inexact exception from y) + */ + exp_x = Xexpf(tls, x) + v1 = [2]float32{ + 0: float32(exp_x * Xcosf(tls, y)), + 1: float32(exp_x * Xsinf(tls, y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + return r +} + +// C documentation +// +// //FIXME +func Xcexpl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcexp(tls, Complex128FromComplex128(z))) +} + +func Xcimag(tls *TLS, z complex128) (r float64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] +} + +func Xcimagf(tls *TLS, z complex64) (r float32) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] +} + +func Xcimagl(tls *TLS, z complex128) (r float64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] +} + +// FIXME + +/* log(z) = log(|z|) + i arg(z) */ + +func Xclog(tls *TLS, z complex128) (r1 complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var phi, r float64 + var v1 [2]float64 + _, _, _ = phi, r, v1 + r = Xcabs(tls, z) + phi = Xcarg(tls, z) + v1 = [2]float64{ + 0: Xlog(tls, r), + 1: phi, + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +// FIXME + +func Xclogf(tls *TLS, z complex64) (r1 complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var phi, r float32 + var v1 [2]float32 + _, _, _ = phi, r, v1 + r = Xcabsf(tls, z) + phi = Xcargf(tls, z) + v1 = [2]float32{ + 0: Xlogf(tls, r), + 1: phi, + } + return *(*complex64)(unsafe.Pointer(&v1)) +} + +func Xclogl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xclog(tls, Complex128FromComplex128(z))) +} + +func Xconj(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float64 + _ = v1 + v1 = [2]float64{ + 0: Float64FromComplex128(z), + 1: -+(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +func Xconjf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float32 + _ = v1 + v1 = [2]float32{ + 0: Float32FromComplex64(z), + 1: -+(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + } + return *(*complex64)(unsafe.Pointer(&v1)) +} + +func Xconjl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float64 + _ = v1 + v1 = [2]float64{ + 0: Float64FromComplex128(z), + 1: -+(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +/* pow(z, c) = exp(c log(z)), See C99 G.6.4.1 */ + +func Xcpow(tls *TLS, z complex128, c complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v c=%v, (%v:)", tls, z, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xcexp(tls, c*Xclog(tls, z)) +} + +func Xcpowf(tls *TLS, z complex64, c complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v c=%v, (%v:)", tls, z, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xcexpf(tls, c*Xclogf(tls, z)) +} + +func Xcpowl(tls *TLS, z complex128, c complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v c=%v, (%v:)", tls, z, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcpow(tls, Complex128FromComplex128(z), Complex128FromComplex128(c))) +} + +func Xcproj(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1, v3 uint64 + var v5 bool + var v6 [2]float64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _, _, _, _ = v1, v3, v5, v6 + *(*float64)(unsafe.Pointer(bp)) = Float64FromComplex128(z) + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + ; + if v5 = BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) == Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) == Uint64FromUint64(0x7ff)< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1, v3 uint32 + var v5 bool + var v6 [2]float32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _, _, _, _ = v1, v3, v5, v6 + *(*float32)(unsafe.Pointer(bp)) = Float32FromComplex64(z) + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + ; + if v5 = BoolInt32(v1&uint32(0x7fffffff) == uint32(0x7f800000)) != 0; !v5 { + *(*float32)(unsafe.Pointer(bp)) = +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] + v3 = *(*uint32)(unsafe.Pointer(bp)) + goto _4 + _4: + } + if v5 || BoolInt32(v3&uint32(0x7fffffff) == uint32(0x7f800000)) != 0 { + v6 = [2]float32{ + 0: X__builtin_inff(tls), + 1: Xcopysignf(tls, float32(0), +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)]), + } + return *(*complex64)(unsafe.Pointer(&v6)) + } + return z +} + +func Xcprojl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcproj(tls, Complex128FromComplex128(z))) +} + +func Xcreal(tls *TLS, z complex128) (r float64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Float64FromComplex128(z) +} + +func Xcrealf(tls *TLS, z complex64) (r float32) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Float32FromComplex64(z) +} + +func Xcreall(tls *TLS, z complex128) (r float64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Float64FromComplex128(z) +} + +/* sin(z) = -i sinh(i z) */ + +func Xcsin(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float64 + _ = v1 + v1 = [2]float64{ + 0: -+(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: Float64FromComplex128(z), + } + z = Xcsinh(tls, *(*complex128)(unsafe.Pointer(&v1))) + v1 = [2]float64{ + 0: +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: -Float64FromComplex128(z), + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +func Xcsinf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float32 + _ = v1 + v1 = [2]float32{ + 0: -+(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: Float32FromComplex64(z), + } + z = Xcsinhf(tls, *(*complex64)(unsafe.Pointer(&v1))) + v1 = [2]float32{ + 0: +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: -Float32FromComplex64(z), + } + return *(*complex64)(unsafe.Pointer(&v1)) +} + +var _huge2 = float64(8.98846567431158e+307) + +func Xcsinh(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __u, __u1 Tuint64_t + var h, x, y float64 + var hx, hy, ix, iy, lx, ly Tint32_t + var v1 [2]float64 + _, _, _, _, _, _, _, _, _, _, _, _ = __u, __u1, h, hx, hy, ix, iy, lx, ly, x, y, v1 + x = Float64FromComplex128(z) + y = +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] + __u = *(*Tuint64_t)(unsafe.Pointer(&x)) + hx = Int32FromUint64(__u >> int32(32)) + lx = Int32FromUint32(uint32(__u)) + __u1 = *(*Tuint64_t)(unsafe.Pointer(&y)) + hy = Int32FromUint64(__u1 >> int32(32)) + ly = Int32FromUint32(uint32(__u1)) + ix = int32(0x7fffffff) & hx + iy = int32(0x7fffffff) & hy + /* Handle the nearly-non-exceptional cases where x and y are finite. */ + if ix < int32(0x7ff00000) && iy < int32(0x7ff00000) { + if iy|ly == 0 { + v1 = [2]float64{ + 0: Xsinh(tls, x), + 1: y, + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + if ix < int32(0x40360000) { /* small x: normal case */ + v1 = [2]float64{ + 0: float64(Xsinh(tls, x) * Xcos(tls, y)), + 1: float64(Xcosh(tls, x) * Xsin(tls, y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* |x| >= 22, so cosh(x) ~= exp(|x|) */ + if ix < int32(0x40862e42) { + /* x < 710: exp(|x|) won't overflow */ + h = float64(Xexp(tls, Xfabs(tls, x)) * float64(0.5)) + v1 = [2]float64{ + 0: float64(Xcopysign(tls, h, x) * Xcos(tls, y)), + 1: float64(h * Xsin(tls, y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } else { + if ix < int32(0x4096bbaa) { + /* x < 1455: scale to avoid overflow */ + v1 = [2]float64{ + 0: Xfabs(tls, x), + 1: y, + } + z = X__ldexp_cexp(tls, *(*complex128)(unsafe.Pointer(&v1)), -int32(1)) + v1 = [2]float64{ + 0: float64(Float64FromComplex128(z) * Xcopysign(tls, Float64FromInt32(1), x)), + 1: +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + } + return *(*complex128)(unsafe.Pointer(&v1)) + } else { + /* x >= 1455: the result always overflows */ + h = float64(_huge2 * x) + v1 = [2]float64{ + 0: float64(h * Xcos(tls, y)), + 1: float64(float64(h*h) * Xsin(tls, y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + } + } + /* + * sinh(+-0 +- I Inf) = sign(d(+-0, dNaN))0 + I dNaN. + * The sign of 0 in the result is unspecified. Choice = normally + * the same as dNaN. Raise the invalid floating-point exception. + * + * sinh(+-0 +- I NaN) = sign(d(+-0, NaN))0 + I d(NaN). + * The sign of 0 in the result is unspecified. Choice = normally + * the same as d(NaN). + */ + if ix|lx == 0 && iy >= int32(0x7ff00000) { + v1 = [2]float64{ + 0: Xcopysign(tls, Float64FromInt32(0), float64(x*(y-y))), + 1: y - y, + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* + * sinh(+-Inf +- I 0) = +-Inf + I +-0. + * + * sinh(NaN +- I 0) = d(NaN) + I +-0. + */ + if iy|ly == 0 && ix >= int32(0x7ff00000) { + if hx&int32(0xfffff)|lx == 0 { + v1 = [2]float64{ + 0: x, + 1: y, + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + v1 = [2]float64{ + 0: x, + 1: Xcopysign(tls, Float64FromInt32(0), y), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* + * sinh(x +- I Inf) = dNaN + I dNaN. + * Raise the invalid floating-point exception for finite nonzero x. + * + * sinh(x + I NaN) = d(NaN) + I d(NaN). + * Optionally raises the invalid floating-point exception for finite + * nonzero x. Choice = don't raise (except for signaling NaNs). + */ + if ix < int32(0x7ff00000) && iy >= int32(0x7ff00000) { + v1 = [2]float64{ + 0: y - y, + 1: float64(x * (y - y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* + * sinh(+-Inf + I NaN) = +-Inf + I d(NaN). + * The sign of Inf in the result is unspecified. Choice = normally + * the same as d(NaN). + * + * sinh(+-Inf +- I Inf) = +Inf + I dNaN. + * The sign of Inf in the result is unspecified. Choice = always +. + * Raise the invalid floating-point exception. + * + * sinh(+-Inf + I y) = +-Inf cos(y) + I Inf sin(y) + */ + if ix >= int32(0x7ff00000) && hx&int32(0xfffff)|lx == 0 { + if iy >= int32(0x7ff00000) { + v1 = [2]float64{ + 0: float64(x * x), + 1: float64(x * (y - y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + v1 = [2]float64{ + 0: float64(x * Xcos(tls, y)), + 1: float64(float64(X__builtin_inff(tls)) * Xsin(tls, y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* + * sinh(NaN + I NaN) = d(NaN) + I d(NaN). + * + * sinh(NaN +- I Inf) = d(NaN) + I d(NaN). + * Optionally raises the invalid floating-point exception. + * Choice = raise. + * + * sinh(NaN + I y) = d(NaN) + I d(NaN). + * Optionally raises the invalid floating-point exception for finite + * nonzero y. Choice = don't raise (except for signaling NaNs). + */ + v1 = [2]float64{ + 0: float64(float64(x*x) * (y - y)), + 1: float64((x + x) * (y - y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +var _huge3 = float32(1.7014118346046923e+38) + +func Xcsinhf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var h, x, y float32 + var hx, hy, ix, iy Tint32_t + var v1 [2]float32 + _, _, _, _, _, _, _, _ = h, hx, hy, ix, iy, x, y, v1 + x = Float32FromComplex64(z) + y = +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] + hx = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(&x))) + hy = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(&y))) + ix = int32(0x7fffffff) & hx + iy = int32(0x7fffffff) & hy + if ix < int32(0x7f800000) && iy < int32(0x7f800000) { + if iy == 0 { + v1 = [2]float32{ + 0: Xsinhf(tls, x), + 1: y, + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + if ix < int32(0x41100000) { /* small x: normal case */ + v1 = [2]float32{ + 0: float32(Xsinhf(tls, x) * Xcosf(tls, y)), + 1: float32(Xcoshf(tls, x) * Xsinf(tls, y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + /* |x| >= 9, so cosh(x) ~= exp(|x|) */ + if ix < int32(0x42b17218) { + /* x < 88.7: expf(|x|) won't overflow */ + h = float32(Xexpf(tls, Xfabsf(tls, x)) * Float32FromFloat32(0.5)) + v1 = [2]float32{ + 0: float32(Xcopysignf(tls, h, x) * Xcosf(tls, y)), + 1: float32(h * Xsinf(tls, y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } else { + if ix < int32(0x4340b1e7) { + /* x < 192.7: scale to avoid overflow */ + v1 = [2]float32{ + 0: Xfabsf(tls, x), + 1: y, + } + z = X__ldexp_cexpf(tls, *(*complex64)(unsafe.Pointer(&v1)), -int32(1)) + v1 = [2]float32{ + 0: float32(Float32FromComplex64(z) * Xcopysignf(tls, Float32FromInt32(1), x)), + 1: +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + } + return *(*complex64)(unsafe.Pointer(&v1)) + } else { + /* x >= 192.7: the result always overflows */ + h = float32(_huge3 * x) + v1 = [2]float32{ + 0: float32(h * Xcosf(tls, y)), + 1: float32(float32(h*h) * Xsinf(tls, y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + } + } + if ix == 0 && iy >= int32(0x7f800000) { + v1 = [2]float32{ + 0: Xcopysignf(tls, Float32FromInt32(0), float32(x*(y-y))), + 1: y - y, + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + if iy == 0 && ix >= int32(0x7f800000) { + if hx&int32(0x7fffff) == 0 { + v1 = [2]float32{ + 0: x, + 1: y, + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + v1 = [2]float32{ + 0: x, + 1: Xcopysignf(tls, Float32FromInt32(0), y), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + if ix < int32(0x7f800000) && iy >= int32(0x7f800000) { + v1 = [2]float32{ + 0: y - y, + 1: float32(x * (y - y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + if ix >= int32(0x7f800000) && hx&int32(0x7fffff) == 0 { + if iy >= int32(0x7f800000) { + v1 = [2]float32{ + 0: float32(x * x), + 1: float32(x * (y - y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + v1 = [2]float32{ + 0: float32(x * Xcosf(tls, y)), + 1: float32(X__builtin_inff(tls) * Xsinf(tls, y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + v1 = [2]float32{ + 0: float32(float32(x*x) * (y - y)), + 1: float32((x + x) * (y - y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) +} + +// C documentation +// +// //FIXME +func Xcsinhl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcsinh(tls, Complex128FromComplex128(z))) +} + +func Xcsinl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcsin(tls, Complex128FromComplex128(z))) +} + +const THRESH = 7.446288774449766e+307 + +/* + * gcc doesn't implement complex multiplication or division correctly, + * so we need to handle infinities specially. We turn on this pragma to + * notify conforming c99 compilers that the fast-but-incorrect code that + * gcc generates is acceptable, since the special cases have already been + * handled. + */ + +/* We risk spurious overflow for components >= DBL_MAX / (1 + sqrt(2)). */ + +func Xcsqrt(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var a, b, t float64 + var result complex128 + var scale int32 + var v1 [2]float64 + var v2, v5 uint64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _, _, _, _, _, _, _, _ = a, b, result, scale, t, v1, v2, v5 + a = Float64FromComplex128(z) + b = +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] + /* Handle special cases. */ + if z == Complex128FromInt32(0) { + v1 = [2]float64{ + 1: b, + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + *(*float64)(unsafe.Pointer(bp)) = b + v2 = *(*uint64)(unsafe.Pointer(bp)) + goto _3 +_3: + if BoolInt32(v2&(-Uint64FromUint64(1)>>Int32FromInt32(1)) == Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) == Uint64FromUint64(0x7ff)<>Int32FromInt32(63)) != 0 { + v1 = [2]float64{ + 0: Xfabs(tls, b-b), + 1: Xcopysign(tls, a, b), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } else { + v1 = [2]float64{ + 0: a, + 1: Xcopysign(tls, b-b, b), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + } + /* + * The remaining special case (b is NaN) is handled just fine by + * the normal code path below. + */ + /* Scale to avoid overflow. */ + if Xfabs(tls, a) >= float64(7.446288774449766e+307) || Xfabs(tls, b) >= float64(7.446288774449766e+307) { + a = a * float64(0.25) + b = b * float64(0.25) + scale = int32(1) + } else { + scale = 0 + } + /* Algorithm 312, CACM vol 10, Oct 1967. */ + if a >= Float64FromInt32(0) { + t = Xsqrt(tls, float64((a+Xhypot(tls, a, b))*float64(0.5))) + v1 = [2]float64{ + 0: t, + 1: b / float64(Float64FromInt32(2)*t), + } + result = *(*complex128)(unsafe.Pointer(&v1)) + } else { + t = Xsqrt(tls, float64((-a+Xhypot(tls, a, b))*float64(0.5))) + v1 = [2]float64{ + 0: Xfabs(tls, b) / float64(Float64FromInt32(2)*t), + 1: Xcopysign(tls, t, b), + } + result = *(*complex128)(unsafe.Pointer(&v1)) + } + /* Rescale. */ + if scale != 0 { + result = result * Complex128FromInt32(2) + } + return result +} + +/* + * gcc doesn't implement complex multiplication or division correctly, + * so we need to handle infinities specially. We turn on this pragma to + * notify conforming c99 compilers that the fast-but-incorrect code that + * gcc generates is acceptable, since the special cases have already been + * handled. + */ + +func Xcsqrtf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var a, b float32 + var t float64 + var v1 [2]float32 + var v2, v5 uint32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _, _, _, _, _, _ = a, b, t, v1, v2, v5 + a = Float32FromComplex64(z) + b = +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] + /* Handle special cases. */ + if z == Complex64FromInt32(0) { + v1 = [2]float32{ + 1: b, + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + *(*float32)(unsafe.Pointer(bp)) = b + v2 = *(*uint32)(unsafe.Pointer(bp)) + goto _3 +_3: + if BoolInt32(v2&uint32(0x7fffffff) == uint32(0x7f800000)) != 0 { + v1 = [2]float32{ + 0: X__builtin_inff(tls), + 1: b, + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + *(*float32)(unsafe.Pointer(bp)) = a + v2 = *(*uint32)(unsafe.Pointer(bp)) + goto _6 +_6: + if BoolInt32(v2&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + t = float64((b - b) / (b - b)) /* raise invalid if b is not a NaN */ + v1 = [2]float32{ + 0: a, + 1: float32(t), + } + return *(*complex64)(unsafe.Pointer(&v1)) /* return NaN + NaN i */ + } + *(*float32)(unsafe.Pointer(bp)) = a + v2 = *(*uint32)(unsafe.Pointer(bp)) + goto _9 +_9: + if BoolInt32(v2&uint32(0x7fffffff) == uint32(0x7f800000)) != 0 { + /* + * csqrtf(inf + NaN i) = inf + NaN i + * csqrtf(inf + y i) = inf + 0 i + * csqrtf(-inf + NaN i) = NaN +- inf i + * csqrtf(-inf + y i) = 0 + inf i + */ + *(*float32)(unsafe.Pointer(bp)) = a + v5 = *(*uint32)(unsafe.Pointer(bp)) + goto _11 + _11: + if Int32FromUint32(v5>>Int32FromInt32(31)) != 0 { + v1 = [2]float32{ + 0: Xfabsf(tls, b-b), + 1: Xcopysignf(tls, a, b), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } else { + v1 = [2]float32{ + 0: a, + 1: Xcopysignf(tls, b-b, b), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + } + /* + * The remaining special case (b is NaN) is handled just fine by + * the normal code path below. + */ + /* + * We compute t in double precision to avoid overflow and to + * provide correct rounding in nearly all cases. + * This is Algorithm 312, CACM vol 10, Oct 1967. + */ + if a >= Float32FromInt32(0) { + t = Xsqrt(tls, float64((float64(a)+Xhypot(tls, float64(a), float64(b)))*float64(0.5))) + v1 = [2]float32{ + 0: float32(t), + 1: float32(float64(b) / float64(Float64FromFloat64(2)*t)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } else { + t = Xsqrt(tls, float64((float64(-a)+Xhypot(tls, float64(a), float64(b)))*float64(0.5))) + v1 = [2]float32{ + 0: float32(float64(Xfabsf(tls, b)) / float64(Float64FromFloat64(2)*t)), + 1: Xcopysignf(tls, float32(t), b), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + return r +} + +// C documentation +// +// //FIXME +func Xcsqrtl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcsqrt(tls, Complex128FromComplex128(z))) +} + +/* tan(z) = -i tanh(i z) */ + +func Xctan(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float64 + _ = v1 + v1 = [2]float64{ + 0: -+(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: Float64FromComplex128(z), + } + z = Xctanh(tls, *(*complex128)(unsafe.Pointer(&v1))) + v1 = [2]float64{ + 0: +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: -Float64FromComplex128(z), + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +func Xctanf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float32 + _ = v1 + v1 = [2]float32{ + 0: -+(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: Float32FromComplex64(z), + } + z = Xctanhf(tls, *(*complex64)(unsafe.Pointer(&v1))) + v1 = [2]float32{ + 0: +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: -Float32FromComplex64(z), + } + return *(*complex64)(unsafe.Pointer(&v1)) +} + +func Xctanh(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var __u1, v3 Tuint64_t + var beta, denom, exp_mx, rho, s, t, x, y, v2 float64 + var hx, ix, lx Tuint32_t + var v1 [2]float64 + var v6 uint64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = __u1, beta, denom, exp_mx, hx, ix, lx, rho, s, t, x, y, v1, v2, v3, v6 + x = Float64FromComplex128(z) + y = +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] + __u1 = *(*Tuint64_t)(unsafe.Pointer(&x)) + hx = uint32(__u1 >> int32(32)) + lx = uint32(__u1) + ix = hx & uint32(0x7fffffff) + /* + * ctanh(NaN + i 0) = NaN + i 0 + * + * ctanh(NaN + i y) = NaN + i NaN for y != 0 + * + * The imaginary part has the sign of x*sin(2*y), but there's no + * special effort to get this right. + * + * ctanh(+-Inf +- i Inf) = +-1 +- 0 + * + * ctanh(+-Inf + i y) = +-1 + 0 sin(2y) for y finite + * + * The imaginary part of the sign is unspecified. This special + * case is only needed to avoid a spurious invalid exception when + * y is infinite. + */ + if ix >= uint32(0x7ff00000) { + if ix&uint32(0xfffff)|lx != 0 { /* x is NaN */ + if y == Float64FromInt32(0) { + v2 = y + } else { + v2 = float64(x * y) + } + v1 = [2]float64{ + 0: x, + 1: v2, + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + v3 = uint64(hx-Uint32FromInt32(0x40000000))<>Int32FromInt32(1)) == Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) < Uint64FromUint64(0x7ff)<= uint32(0x40360000) { /* x >= 22 */ + exp_mx = Xexp(tls, -Xfabs(tls, x)) + v1 = [2]float64{ + 0: Xcopysign(tls, Float64FromInt32(1), x), + 1: float64(float64(float64(float64(Float64FromInt32(4)*Xsin(tls, y))*Xcos(tls, y))*exp_mx) * exp_mx), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* Kahan's algorithm */ + t = Xtan(tls, y) + beta = float64(1) + float64(t*t) /* = 1 / cos^2(y) */ + s = Xsinh(tls, x) + rho = Xsqrt(tls, Float64FromInt32(1)+float64(s*s)) /* = cosh(x) */ + denom = Float64FromInt32(1) + float64(float64(beta*s)*s) + v1 = [2]float64{ + 0: float64(float64(beta*rho)*s) / denom, + 1: t / denom, + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +func Xctanhf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var beta, denom, exp_mx, rho, s, t, x, y, v2 float32 + var hx, ix, v3 Tuint32_t + var v1 [2]float32 + var v6 uint32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = beta, denom, exp_mx, hx, ix, rho, s, t, x, y, v1, v2, v3, v6 + x = Float32FromComplex64(z) + y = +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] + hx = *(*Tuint32_t)(unsafe.Pointer(&x)) + ix = hx & uint32(0x7fffffff) + if ix >= uint32(0x7f800000) { + if ix&uint32(0x7fffff) != 0 { + if y == Float32FromInt32(0) { + v2 = y + } else { + v2 = float32(x * y) + } + v1 = [2]float32{ + 0: x, + 1: v2, + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + v3 = hx - uint32(0x40000000) + x = *(*float32)(unsafe.Pointer(&v3)) + *(*float32)(unsafe.Pointer(bp)) = y + v6 = *(*uint32)(unsafe.Pointer(bp)) + goto _7 + _7: + if BoolInt32(v6&uint32(0x7fffffff) == uint32(0x7f800000)) != 0 { + v2 = y + } else { + v2 = float32(Xsinf(tls, y) * Xcosf(tls, y)) + } + v1 = [2]float32{ + 0: x, + 1: Xcopysignf(tls, Float32FromInt32(0), v2), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + *(*float32)(unsafe.Pointer(bp)) = y + v6 = *(*uint32)(unsafe.Pointer(bp)) + goto _9 +_9: + if !(BoolInt32(v6&Uint32FromInt32(0x7fffffff) < Uint32FromInt32(0x7f800000)) != 0) { + if ix != 0 { + v2 = y - y + } else { + v2 = x + } + v1 = [2]float32{ + 0: v2, + 1: y - y, + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + if ix >= uint32(0x41300000) { /* x >= 11 */ + exp_mx = Xexpf(tls, -Xfabsf(tls, x)) + v1 = [2]float32{ + 0: Xcopysignf(tls, Float32FromInt32(1), x), + 1: float32(float32(float32(float32(Float32FromInt32(4)*Xsinf(tls, y))*Xcosf(tls, y))*exp_mx) * exp_mx), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + t = Xtanf(tls, y) + beta = float32(float64(1) + float64(t*t)) + s = Xsinhf(tls, x) + rho = Xsqrtf(tls, Float32FromInt32(1)+float32(s*s)) + denom = Float32FromInt32(1) + float32(float32(beta*s)*s) + v1 = [2]float32{ + 0: float32(float32(beta*rho)*s) / denom, + 1: t / denom, + } + return *(*complex64)(unsafe.Pointer(&v1)) +} + +// C documentation +// +// //FIXME +func Xctanhl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xctanh(tls, Complex128FromComplex128(z))) +} + +func Xctanl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xctan(tls, Complex128FromComplex128(z))) +} + +const BUFSIZ = 1024 +const E2BIG = 7 +const EACCES = 13 +const EADDRINUSE = 98 +const EADDRNOTAVAIL = 99 +const EADV = 68 +const EAFNOSUPPORT = 97 +const EAGAIN = 11 +const EALREADY = 114 +const EBADE = 52 +const EBADF = 9 +const EBADFD = 77 +const EBADMSG = 74 +const EBADR = 53 +const EBADRQC = 56 +const EBADSLT = 57 +const EBFONT = 59 +const EBUSY = 16 +const ECANCELED = 125 +const ECHILD = 10 +const ECHRNG = 44 +const ECOMM = 70 +const ECONNABORTED = 103 +const ECONNREFUSED = 111 +const ECONNRESET = 104 +const EDEADLK = 35 +const EDEADLOCK = 58 +const EDESTADDRREQ = 89 +const EDOM = 33 +const EDOTDOT = 73 +const EDQUOT = 122 +const EEXIST = 17 +const EFAULT = 14 +const EFBIG = 27 +const EHOSTDOWN = 112 +const EHOSTUNREACH = 113 +const EHWPOISON = 133 +const EIDRM = 43 +const EILSEQ = 84 +const EINPROGRESS = 115 +const EINTR = 4 +const EINVAL = 22 +const EIO = 5 +const EISCONN = 106 +const EISDIR = 21 +const EISNAM = 120 +const EKEYEXPIRED = 127 +const EKEYREJECTED = 129 +const EKEYREVOKED = 128 +const EL2HLT = 51 +const EL2NSYNC = 45 +const EL3HLT = 46 +const EL3RST = 47 +const ELIBACC = 79 +const ELIBBAD = 80 +const ELIBEXEC = 83 +const ELIBMAX = 82 +const ELIBSCN = 81 +const ELNRNG = 48 +const ELOOP = 40 +const EMEDIUMTYPE = 124 +const EMFILE = 24 +const EMLINK = 31 +const EMSGSIZE = 90 +const EMULTIHOP = 72 +const ENAMETOOLONG = 36 +const ENAVAIL = 119 +const ENETDOWN = 100 +const ENETRESET = 102 +const ENETUNREACH = 101 +const ENFILE = 23 +const ENOANO = 55 +const ENOBUFS = 105 +const ENOCSI = 50 +const ENODATA = 61 +const ENODEV = 19 +const ENOENT = 2 +const ENOEXEC = 8 +const ENOKEY = 126 +const ENOLCK = 37 +const ENOLINK = 67 +const ENOMEDIUM = 123 +const ENOMEM = 12 +const ENOMSG = 42 +const ENONET = 64 +const ENOPKG = 65 +const ENOPROTOOPT = 92 +const ENOSPC = 28 +const ENOSR = 63 +const ENOSTR = 60 +const ENOSYS = 38 +const ENOTBLK = 15 +const ENOTCONN = 107 +const ENOTDIR = 20 +const ENOTEMPTY = 39 +const ENOTNAM = 118 +const ENOTRECOVERABLE = 131 +const ENOTSOCK = 88 +const ENOTSUP = 95 +const ENOTTY = 25 +const ENOTUNIQ = 76 +const ENXIO = 6 +const EOPNOTSUPP = 95 +const EOVERFLOW = 75 +const EOWNERDEAD = 130 +const EPERM = 1 +const EPFNOSUPPORT = 96 +const EPIPE = 32 +const EPROTO = 71 +const EPROTONOSUPPORT = 93 +const EPROTOTYPE = 91 +const ERANGE = 34 +const EREMCHG = 78 +const EREMOTE = 66 +const EREMOTEIO = 121 +const ERESTART = 85 +const ERFKILL = 132 +const EROFS = 30 +const ESHUTDOWN = 108 +const ESOCKTNOSUPPORT = 94 +const ESPIPE = 29 +const ESRCH = 3 +const ESRMNT = 69 +const ESTALE = 116 +const ESTRPIPE = 86 +const ETIME = 62 +const ETIMEDOUT = 110 +const ETOOMANYREFS = 109 +const ETXTBSY = 26 +const EUCLEAN = 117 +const EUNATCH = 49 +const EUSERS = 87 +const EWOULDBLOCK = 11 +const EXDEV = 18 +const EXFULL = 54 +const FILENAME_MAX = 4096 +const FOPEN_MAX = 1000 +const F_LOCK = 1 +const F_OK = 0 +const F_TEST = 3 +const F_TLOCK = 2 +const F_ULOCK = 0 +const L_ctermid = 20 +const L_tmpnam = 20 +const POSIX_CLOSE_RESTART = 0 +const P_tmpdir = "/tmp" +const R_OK = 4 +const SEEK_DATA = 3 +const SEEK_HOLE = 4 +const STDERR_FILENO = 2 +const STDIN_FILENO = 0 +const STDOUT_FILENO = 1 +const TMP_MAX = 10000 +const W_OK = 2 +const X_OK = 1 +const _CS_GNU_LIBC_VERSION = 2 +const _CS_GNU_LIBPTHREAD_VERSION = 3 +const _CS_PATH = 0 +const _CS_POSIX_V5_WIDTH_RESTRICTED_ENVS = 4 +const _CS_POSIX_V6_ILP32_OFF32_CFLAGS = 1116 +const _CS_POSIX_V6_ILP32_OFF32_LDFLAGS = 1117 +const _CS_POSIX_V6_ILP32_OFF32_LIBS = 1118 +const _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS = 1119 +const _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS = 1120 +const _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS = 1121 +const _CS_POSIX_V6_ILP32_OFFBIG_LIBS = 1122 +const _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS = 1123 +const _CS_POSIX_V6_LP64_OFF64_CFLAGS = 1124 +const _CS_POSIX_V6_LP64_OFF64_LDFLAGS = 1125 +const _CS_POSIX_V6_LP64_OFF64_LIBS = 1126 +const _CS_POSIX_V6_LP64_OFF64_LINTFLAGS = 1127 +const _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS = 1128 +const _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS = 1129 +const _CS_POSIX_V6_LPBIG_OFFBIG_LIBS = 1130 +const _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS = 1131 +const _CS_POSIX_V6_WIDTH_RESTRICTED_ENVS = 1 +const _CS_POSIX_V7_ILP32_OFF32_CFLAGS = 1132 +const _CS_POSIX_V7_ILP32_OFF32_LDFLAGS = 1133 +const _CS_POSIX_V7_ILP32_OFF32_LIBS = 1134 +const _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS = 1135 +const _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS = 1136 +const _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS = 1137 +const _CS_POSIX_V7_ILP32_OFFBIG_LIBS = 1138 +const _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS = 1139 +const _CS_POSIX_V7_LP64_OFF64_CFLAGS = 1140 +const _CS_POSIX_V7_LP64_OFF64_LDFLAGS = 1141 +const _CS_POSIX_V7_LP64_OFF64_LIBS = 1142 +const _CS_POSIX_V7_LP64_OFF64_LINTFLAGS = 1143 +const _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS = 1144 +const _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS = 1145 +const _CS_POSIX_V7_LPBIG_OFFBIG_LIBS = 1146 +const _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS = 1147 +const _CS_POSIX_V7_THREADS_CFLAGS = 1150 +const _CS_POSIX_V7_THREADS_LDFLAGS = 1151 +const _CS_POSIX_V7_WIDTH_RESTRICTED_ENVS = 5 +const _CS_V6_ENV = 1148 +const _CS_V7_ENV = 1149 +const _IOFBF = 0 +const _IOLBF = 1 +const _IONBF = 2 +const _PC_2_SYMLINKS = 20 +const _PC_ALLOC_SIZE_MIN = 18 +const _PC_ASYNC_IO = 10 +const _PC_CHOWN_RESTRICTED = 6 +const _PC_FILESIZEBITS = 13 +const _PC_LINK_MAX = 0 +const _PC_MAX_CANON = 1 +const _PC_MAX_INPUT = 2 +const _PC_NAME_MAX = 3 +const _PC_NO_TRUNC = 7 +const _PC_PATH_MAX = 4 +const _PC_PIPE_BUF = 5 +const _PC_PRIO_IO = 11 +const _PC_REC_INCR_XFER_SIZE = 14 +const _PC_REC_MAX_XFER_SIZE = 15 +const _PC_REC_MIN_XFER_SIZE = 16 +const _PC_REC_XFER_ALIGN = 17 +const _PC_SOCK_MAXBUF = 12 +const _PC_SYMLINK_MAX = 19 +const _PC_SYNC_IO = 9 +const _PC_VDISABLE = 8 +const _POSIX2_C_BIND = 200809 +const _POSIX2_VERSION = 200809 +const _POSIX_ADVISORY_INFO = 200809 +const _POSIX_ASYNCHRONOUS_IO = 200809 +const _POSIX_BARRIERS = 200809 +const _POSIX_CHOWN_RESTRICTED = 1 +const _POSIX_CLOCK_SELECTION = 200809 +const _POSIX_CPUTIME = 200809 +const _POSIX_FSYNC = 200809 +const _POSIX_IPV6 = 200809 +const _POSIX_JOB_CONTROL = 1 +const _POSIX_MAPPED_FILES = 200809 +const _POSIX_MEMLOCK = 200809 +const _POSIX_MEMLOCK_RANGE = 200809 +const _POSIX_MEMORY_PROTECTION = 200809 +const _POSIX_MESSAGE_PASSING = 200809 +const _POSIX_MONOTONIC_CLOCK = 200809 +const _POSIX_NO_TRUNC = 1 +const _POSIX_RAW_SOCKETS = 200809 +const _POSIX_READER_WRITER_LOCKS = 200809 +const _POSIX_REALTIME_SIGNALS = 200809 +const _POSIX_REGEXP = 1 +const _POSIX_SAVED_IDS = 1 +const _POSIX_SEMAPHORES = 200809 +const _POSIX_SHARED_MEMORY_OBJECTS = 200809 +const _POSIX_SHELL = 1 +const _POSIX_SPAWN = 200809 +const _POSIX_SPIN_LOCKS = 200809 +const _POSIX_THREADS = 200809 +const _POSIX_THREAD_ATTR_STACKADDR = 200809 +const _POSIX_THREAD_ATTR_STACKSIZE = 200809 +const _POSIX_THREAD_CPUTIME = 200809 +const _POSIX_THREAD_PRIORITY_SCHEDULING = 200809 +const _POSIX_THREAD_PROCESS_SHARED = 200809 +const _POSIX_THREAD_SAFE_FUNCTIONS = 200809 +const _POSIX_TIMEOUTS = 200809 +const _POSIX_TIMERS = 200809 +const _POSIX_V6_LP64_OFF64 = 1 +const _POSIX_V7_LP64_OFF64 = 1 +const _POSIX_VDISABLE = 0 +const _POSIX_VERSION = 200809 +const _SC_2_CHAR_TERM = 95 +const _SC_2_C_BIND = 47 +const _SC_2_C_DEV = 48 +const _SC_2_FORT_DEV = 49 +const _SC_2_FORT_RUN = 50 +const _SC_2_LOCALEDEF = 52 +const _SC_2_PBS = 168 +const _SC_2_PBS_ACCOUNTING = 169 +const _SC_2_PBS_CHECKPOINT = 175 +const _SC_2_PBS_LOCATE = 170 +const _SC_2_PBS_MESSAGE = 171 +const _SC_2_PBS_TRACK = 172 +const _SC_2_SW_DEV = 51 +const _SC_2_UPE = 97 +const _SC_2_VERSION = 46 +const _SC_ADVISORY_INFO = 132 +const _SC_AIO_LISTIO_MAX = 23 +const _SC_AIO_MAX = 24 +const _SC_AIO_PRIO_DELTA_MAX = 25 +const _SC_ARG_MAX = 0 +const _SC_ASYNCHRONOUS_IO = 12 +const _SC_ATEXIT_MAX = 87 +const _SC_AVPHYS_PAGES = 86 +const _SC_BARRIERS = 133 +const _SC_BC_BASE_MAX = 36 +const _SC_BC_DIM_MAX = 37 +const _SC_BC_SCALE_MAX = 38 +const _SC_BC_STRING_MAX = 39 +const _SC_CHILD_MAX = 1 +const _SC_CLK_TCK = 2 +const _SC_CLOCK_SELECTION = 137 +const _SC_COLL_WEIGHTS_MAX = 40 +const _SC_CPUTIME = 138 +const _SC_DELAYTIMER_MAX = 26 +const _SC_EXPR_NEST_MAX = 42 +const _SC_FSYNC = 15 +const _SC_GETGR_R_SIZE_MAX = 69 +const _SC_GETPW_R_SIZE_MAX = 70 +const _SC_HOST_NAME_MAX = 180 +const _SC_IOV_MAX = 60 +const _SC_IPV6 = 235 +const _SC_JOB_CONTROL = 7 +const _SC_LINE_MAX = 43 +const _SC_LOGIN_NAME_MAX = 71 +const _SC_MAPPED_FILES = 16 +const _SC_MEMLOCK = 17 +const _SC_MEMLOCK_RANGE = 18 +const _SC_MEMORY_PROTECTION = 19 +const _SC_MESSAGE_PASSING = 20 +const _SC_MINSIGSTKSZ = 249 +const _SC_MONOTONIC_CLOCK = 149 +const _SC_MQ_OPEN_MAX = 27 +const _SC_MQ_PRIO_MAX = 28 +const _SC_NGROUPS_MAX = 3 +const _SC_NPROCESSORS_CONF = 83 +const _SC_NPROCESSORS_ONLN = 84 +const _SC_NZERO = 109 +const _SC_OPEN_MAX = 4 +const _SC_PAGESIZE = 30 +const _SC_PAGE_SIZE = 30 +const _SC_PASS_MAX = 88 +const _SC_PHYS_PAGES = 85 +const _SC_PRIORITIZED_IO = 13 +const _SC_PRIORITY_SCHEDULING = 10 +const _SC_RAW_SOCKETS = 236 +const _SC_READER_WRITER_LOCKS = 153 +const _SC_REALTIME_SIGNALS = 9 +const _SC_REGEXP = 155 +const _SC_RE_DUP_MAX = 44 +const _SC_RTSIG_MAX = 31 +const _SC_SAVED_IDS = 8 +const _SC_SEMAPHORES = 21 +const _SC_SEM_NSEMS_MAX = 32 +const _SC_SEM_VALUE_MAX = 33 +const _SC_SHARED_MEMORY_OBJECTS = 22 +const _SC_SHELL = 157 +const _SC_SIGQUEUE_MAX = 34 +const _SC_SIGSTKSZ = 250 +const _SC_SPAWN = 159 +const _SC_SPIN_LOCKS = 154 +const _SC_SPORADIC_SERVER = 160 +const _SC_SS_REPL_MAX = 241 +const _SC_STREAMS = 174 +const _SC_STREAM_MAX = 5 +const _SC_SYMLOOP_MAX = 173 +const _SC_SYNCHRONIZED_IO = 14 +const _SC_THREADS = 67 +const _SC_THREAD_ATTR_STACKADDR = 77 +const _SC_THREAD_ATTR_STACKSIZE = 78 +const _SC_THREAD_CPUTIME = 139 +const _SC_THREAD_DESTRUCTOR_ITERATIONS = 73 +const _SC_THREAD_KEYS_MAX = 74 +const _SC_THREAD_PRIORITY_SCHEDULING = 79 +const _SC_THREAD_PRIO_INHERIT = 80 +const _SC_THREAD_PRIO_PROTECT = 81 +const _SC_THREAD_PROCESS_SHARED = 82 +const _SC_THREAD_ROBUST_PRIO_INHERIT = 247 +const _SC_THREAD_ROBUST_PRIO_PROTECT = 248 +const _SC_THREAD_SAFE_FUNCTIONS = 68 +const _SC_THREAD_SPORADIC_SERVER = 161 +const _SC_THREAD_STACK_MIN = 75 +const _SC_THREAD_THREADS_MAX = 76 +const _SC_TIMEOUTS = 164 +const _SC_TIMERS = 11 +const _SC_TIMER_MAX = 35 +const _SC_TRACE = 181 +const _SC_TRACE_EVENT_FILTER = 182 +const _SC_TRACE_EVENT_NAME_MAX = 242 +const _SC_TRACE_INHERIT = 183 +const _SC_TRACE_LOG = 184 +const _SC_TRACE_NAME_MAX = 243 +const _SC_TRACE_SYS_MAX = 244 +const _SC_TRACE_USER_EVENT_MAX = 245 +const _SC_TTY_NAME_MAX = 72 +const _SC_TYPED_MEMORY_OBJECTS = 165 +const _SC_TZNAME_MAX = 6 +const _SC_UIO_MAXIOV = 60 +const _SC_V6_ILP32_OFF32 = 176 +const _SC_V6_ILP32_OFFBIG = 177 +const _SC_V6_LP64_OFF64 = 178 +const _SC_V6_LPBIG_OFFBIG = 179 +const _SC_V7_ILP32_OFF32 = 237 +const _SC_V7_ILP32_OFFBIG = 238 +const _SC_V7_LP64_OFF64 = 239 +const _SC_V7_LPBIG_OFFBIG = 240 +const _SC_VERSION = 29 +const _SC_XBS5_ILP32_OFF32 = 125 +const _SC_XBS5_ILP32_OFFBIG = 126 +const _SC_XBS5_LP64_OFF64 = 127 +const _SC_XBS5_LPBIG_OFFBIG = 128 +const _SC_XOPEN_CRYPT = 92 +const _SC_XOPEN_ENH_I18N = 93 +const _SC_XOPEN_LEGACY = 129 +const _SC_XOPEN_REALTIME = 130 +const _SC_XOPEN_REALTIME_THREADS = 131 +const _SC_XOPEN_SHM = 94 +const _SC_XOPEN_STREAMS = 246 +const _SC_XOPEN_UNIX = 91 +const _SC_XOPEN_VERSION = 89 +const _SC_XOPEN_XCU_VERSION = 90 +const _SC_XOPEN_XPG2 = 98 +const _SC_XOPEN_XPG3 = 99 +const _SC_XOPEN_XPG4 = 100 +const _XOPEN_ENH_I18N = 1 +const _XOPEN_UNIX = 1 +const _XOPEN_VERSION = 700 + +type Tsize_t = uint64 + +type Tssize_t = int64 + +type Toff_t = int64 + +type Tpid_t = int32 + +type Tuid_t = uint32 + +type Tgid_t = uint32 + +type Tuseconds_t = uint32 + +type Tva_list = uintptr + +type t__isoc_va_list = uintptr + +type Tfpos_t = struct { + F__lldata [0]int64 + F__align [0]float64 + F__opaque [16]uint8 +} + +type T_G_fpos64_t = Tfpos_t + +func Xconfstr(tls *TLS, name int32, buf uintptr, len1 Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v name=%v buf=%v len1=%v, (%v:)", tls, name, buf, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var s uintptr + _ = s + s = __ccgo_ts + if !(name != 0) { + s = __ccgo_ts + 1 + } else { + if Uint32FromInt32(name) & ^Uint32FromUint32(4) != uint32(1) && Uint32FromInt32(name-int32(_CS_POSIX_V6_ILP32_OFF32_CFLAGS)) > uint32(35) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uint64(0) + } + } + // snprintf is overkill but avoid wasting code size to implement + // this completely useless function and its truncation semantics + return Uint64FromInt32(Xsnprintf(tls, buf, len1, __ccgo_ts+15, VaList(bp+8, s)) + int32(1)) +} + +const ARG_MAX = 131072 +const BC_BASE_MAX = 99 +const BC_DIM_MAX = 2048 +const BC_SCALE_MAX = 99 +const BC_STRING_MAX = 1000 +const CHARCLASS_NAME_MAX = 14 +const CHAR_BIT = 8 +const CHAR_MAX = 255 +const CHAR_MIN = 0 +const COLL_WEIGHTS_MAX = 2 +const DELAYTIMER_MAX = 2147483647 +const EXPR_NEST_MAX = 32 +const FILESIZEBITS = 64 +const HOST_NAME_MAX = 255 +const INT_MAX = 2147483647 +const INT_MIN = -2147483648 +const IOV_MAX = 1024 +const LINE_MAX = 4096 +const LLONG_MAX = 9223372036854775807 +const LLONG_MIN = -9223372036854775808 +const LOGIN_NAME_MAX = 256 +const LONG_BIT = 64 +const LONG_MAX = 9223372036854775807 +const LONG_MIN = -9223372036854775808 +const MB_LEN_MAX = 4 +const MQ_PRIO_MAX = 32768 +const NAME_MAX = 255 +const NGROUPS_MAX = 32 +const NL_ARGMAX = 9 +const NL_LANGMAX = 32 +const NL_MSGMAX = 32767 +const NL_SETMAX = 255 +const NL_TEXTMAX = 2048 +const NZERO = 20 +const PATH_MAX = 4096 +const PIPE_BUF = 4096 +const PTHREAD_DESTRUCTOR_ITERATIONS = 4 +const PTHREAD_KEYS_MAX = 128 +const PTHREAD_STACK_MIN = 2048 +const RE_DUP_MAX = 255 +const SCHAR_MAX = 127 +const SCHAR_MIN = -128 +const SEEK_CUR = 1 +const SEEK_END = 2 +const SEEK_SET = 0 +const SEM_NSEMS_MAX = 256 +const SEM_VALUE_MAX = 2147483647 +const SHRT_MAX = 32767 +const SHRT_MIN = -32768 +const SSIZE_MAX = 9223372036854775807 +const SYMLOOP_MAX = 40 +const TTY_NAME_MAX = 32 +const TZNAME_MAX = 6 +const UCHAR_MAX = 255 +const UINT_MAX = 4294967295 +const ULLONG_MAX = 18446744073709551615 +const ULONG_MAX = 18446744073709551615 +const USHRT_MAX = 65535 +const WORD_BIT = 32 +const _POSIX2_BC_BASE_MAX = 99 +const _POSIX2_BC_DIM_MAX = 2048 +const _POSIX2_BC_SCALE_MAX = 99 +const _POSIX2_BC_STRING_MAX = 1000 +const _POSIX2_CHARCLASS_NAME_MAX = 14 +const _POSIX2_COLL_WEIGHTS_MAX = 2 +const _POSIX2_EXPR_NEST_MAX = 32 +const _POSIX2_LINE_MAX = 2048 +const _POSIX2_RE_DUP_MAX = 255 +const _POSIX_AIO_LISTIO_MAX = 2 +const _POSIX_AIO_MAX = 1 +const _POSIX_ARG_MAX = 4096 +const _POSIX_CHILD_MAX = 25 +const _POSIX_CLOCKRES_MIN = 20000000 +const _POSIX_DELAYTIMER_MAX = 32 +const _POSIX_HOST_NAME_MAX = 255 +const _POSIX_LINK_MAX = 8 +const _POSIX_LOGIN_NAME_MAX = 9 +const _POSIX_MAX_CANON = 255 +const _POSIX_MAX_INPUT = 255 +const _POSIX_MQ_OPEN_MAX = 8 +const _POSIX_MQ_PRIO_MAX = 32 +const _POSIX_NAME_MAX = 14 +const _POSIX_NGROUPS_MAX = 8 +const _POSIX_OPEN_MAX = 20 +const _POSIX_PATH_MAX = 256 +const _POSIX_PIPE_BUF = 512 +const _POSIX_RE_DUP_MAX = 255 +const _POSIX_RTSIG_MAX = 8 +const _POSIX_SEM_NSEMS_MAX = 256 +const _POSIX_SEM_VALUE_MAX = 32767 +const _POSIX_SIGQUEUE_MAX = 32 +const _POSIX_SSIZE_MAX = 32767 +const _POSIX_SS_REPL_MAX = 4 +const _POSIX_STREAM_MAX = 8 +const _POSIX_SYMLINK_MAX = 255 +const _POSIX_SYMLOOP_MAX = 8 +const _POSIX_THREAD_DESTRUCTOR_ITERATIONS = 4 +const _POSIX_THREAD_KEYS_MAX = 128 +const _POSIX_THREAD_THREADS_MAX = 64 +const _POSIX_TIMER_MAX = 32 +const _POSIX_TRACE_EVENT_NAME_MAX = 30 +const _POSIX_TRACE_NAME_MAX = 8 +const _POSIX_TRACE_SYS_MAX = 8 +const _POSIX_TRACE_USER_EVENT_MAX = 32 +const _POSIX_TTY_NAME_MAX = 9 +const _POSIX_TZNAME_MAX = 6 +const _XOPEN_IOV_MAX = 16 +const _XOPEN_NAME_MAX = 255 +const _XOPEN_PATH_MAX = 1024 + +func Xfpathconf(tls *TLS, fd int32, name int32) (r int64) { + if __ccgo_strace { + trc("tls=%v fd=%v name=%v, (%v:)", tls, fd, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + if Uint64FromInt32(name) >= Uint64FromInt64(42)/Uint64FromInt64(2) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return int64(-int32(1)) + } + return int64(_values[name]) +} + +var _values = [21]int16{ + 0: int16(_POSIX_LINK_MAX), + 1: int16(_POSIX_MAX_CANON), + 2: int16(_POSIX_MAX_INPUT), + 3: int16(NAME_MAX), + 4: int16(PATH_MAX), + 5: int16(PIPE_BUF), + 6: int16(1), + 7: int16(1), + 9: int16(1), + 10: int16(-int32(1)), + 11: int16(-int32(1)), + 12: int16(-int32(1)), + 13: int16(FILESIZEBITS), + 14: int16(4096), + 15: int16(4096), + 16: int16(4096), + 17: int16(4096), + 18: int16(4096), + 19: int16(-int32(1)), + 20: int16(1), +} + +const SI_LOAD_SHIFT = 16 + +type Tsysinfo = struct { + Fuptime uint64 + Floads [3]uint64 + Ftotalram uint64 + Ffreeram uint64 + Fsharedram uint64 + Fbufferram uint64 + Ftotalswap uint64 + Ffreeswap uint64 + Fprocs uint16 + Fpad uint16 + Ftotalhigh uint64 + Ffreehigh uint64 + Fmem_unit uint32 + F__reserved [256]uint8 +} + +func Xget_nprocs_conf(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(Xsysconf(tls, int32(_SC_NPROCESSORS_CONF))) +} + +func Xget_nprocs(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(Xsysconf(tls, int32(_SC_NPROCESSORS_ONLN))) +} + +func Xget_phys_pages(tls *TLS) (r int64) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xsysconf(tls, int32(_SC_PHYS_PAGES)) +} + +func Xget_avphys_pages(tls *TLS) (r int64) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xsysconf(tls, int32(_SC_AVPHYS_PAGES)) +} + +func Xpathconf(tls *TLS, path uintptr, name int32) (r int64) { + if __ccgo_strace { + trc("tls=%v path=%v name=%v, (%v:)", tls, path, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfpathconf(tls, -int32(1), name) +} + +const AT_BASE = 7 +const AT_BASE_PLATFORM = 24 +const AT_CLKTCK = 17 +const AT_DCACHEBSIZE = 19 +const AT_EGID = 14 +const AT_ENTRY = 9 +const AT_EUID = 12 +const AT_EXECFD = 2 +const AT_EXECFN = 31 +const AT_FLAGS = 8 +const AT_FPUCW = 18 +const AT_GID = 13 +const AT_HWCAP = 16 +const AT_HWCAP2 = 26 +const AT_ICACHEBSIZE = 20 +const AT_IGNORE = 1 +const AT_IGNOREPPC = 22 +const AT_L1D_CACHEGEOMETRY = 43 +const AT_L1D_CACHESHAPE = 35 +const AT_L1D_CACHESIZE = 42 +const AT_L1I_CACHEGEOMETRY = 41 +const AT_L1I_CACHESHAPE = 34 +const AT_L1I_CACHESIZE = 40 +const AT_L2_CACHEGEOMETRY = 45 +const AT_L2_CACHESHAPE = 36 +const AT_L2_CACHESIZE = 44 +const AT_L3_CACHEGEOMETRY = 47 +const AT_L3_CACHESHAPE = 37 +const AT_L3_CACHESIZE = 46 +const AT_MINSIGSTKSZ = 51 +const AT_NOTELF = 10 +const AT_NULL = 0 +const AT_PAGESZ = 6 +const AT_PHDR = 3 +const AT_PHENT = 4 +const AT_PHNUM = 5 +const AT_PLATFORM = 15 +const AT_RANDOM = 25 +const AT_SECURE = 23 +const AT_SYSINFO = 32 +const AT_SYSINFO_EHDR = 33 +const AT_UCACHEBSIZE = 21 +const AT_UID = 11 +const BUS_ADRALN = 1 +const BUS_ADRERR = 2 +const BUS_MCEERR_AO = 5 +const BUS_MCEERR_AR = 4 +const BUS_OBJERR = 3 +const CLD_CONTINUED = 6 +const CLD_DUMPED = 3 +const CLD_EXITED = 1 +const CLD_KILLED = 2 +const CLD_STOPPED = 5 +const CLD_TRAPPED = 4 +const DF_1_CONFALT = 8192 +const DF_1_DIRECT = 256 +const DF_1_DISPRELDNE = 32768 +const DF_1_DISPRELPND = 65536 +const DF_1_EDITED = 2097152 +const DF_1_ENDFILTEE = 16384 +const DF_1_GLOBAL = 2 +const DF_1_GLOBAUDIT = 16777216 +const DF_1_GROUP = 4 +const DF_1_IGNMULDEF = 262144 +const DF_1_INITFIRST = 32 +const DF_1_INTERPOSE = 1024 +const DF_1_LOADFLTR = 16 +const DF_1_NODEFLIB = 2048 +const DF_1_NODELETE = 8 +const DF_1_NODIRECT = 131072 +const DF_1_NODUMP = 4096 +const DF_1_NOHDR = 1048576 +const DF_1_NOKSYMS = 524288 +const DF_1_NOOPEN = 64 +const DF_1_NORELOC = 4194304 +const DF_1_NOW = 1 +const DF_1_ORIGIN = 128 +const DF_1_PIE = 134217728 +const DF_1_SINGLETON = 33554432 +const DF_1_STUB = 67108864 +const DF_1_SYMINTPOSE = 8388608 +const DF_1_TRANS = 512 +const DF_BIND_NOW = 8 +const DF_ORIGIN = 1 +const DF_P1_GROUPPERM = 2 +const DF_P1_LAZYLOAD = 1 +const DF_STATIC_TLS = 16 +const DF_SYMBOLIC = 2 +const DF_TEXTREL = 4 +const DTF_1_CONFEXP = 2 +const DTF_1_PARINIT = 1 +const DT_ADDRNUM = 11 +const DT_ADDRRNGHI = 1879047935 +const DT_ADDRRNGLO = 1879047680 +const DT_ALPHA_NUM = 1 +const DT_ALPHA_PLTRO = 1879048192 +const DT_AUDIT = 1879047932 +const DT_AUXILIARY = 2147483645 +const DT_BIND_NOW = 24 +const DT_CHECKSUM = 1879047672 +const DT_CONFIG = 1879047930 +const DT_DEBUG = 21 +const DT_DEPAUDIT = 1879047931 +const DT_ENCODING = 32 +const DT_EXTRANUM = 3 +const DT_FEATURE_1 = 1879047676 +const DT_FILTER = 2147483647 +const DT_FINI = 13 +const DT_FINI_ARRAY = 26 +const DT_FINI_ARRAYSZ = 28 +const DT_FLAGS = 30 +const DT_FLAGS_1 = 1879048187 +const DT_GNU_CONFLICT = 1879047928 +const DT_GNU_CONFLICTSZ = 1879047670 +const DT_GNU_HASH = 1879047925 +const DT_GNU_LIBLIST = 1879047929 +const DT_GNU_LIBLISTSZ = 1879047671 +const DT_GNU_PRELINKED = 1879047669 +const DT_HASH = 4 +const DT_HIOS = 1879044096 +const DT_HIPROC = 2147483647 +const DT_IA_64_NUM = 1 +const DT_IA_64_PLT_RESERVE = 1879048192 +const DT_INIT = 12 +const DT_INIT_ARRAY = 25 +const DT_INIT_ARRAYSZ = 27 +const DT_JMPREL = 23 +const DT_LOOS = 1610612749 +const DT_LOPROC = 1879048192 +const DT_MIPS_AUX_DYNAMIC = 1879048241 +const DT_MIPS_BASE_ADDRESS = 1879048198 +const DT_MIPS_COMPACT_SIZE = 1879048239 +const DT_MIPS_CONFLICT = 1879048200 +const DT_MIPS_CONFLICTNO = 1879048203 +const DT_MIPS_CXX_FLAGS = 1879048226 +const DT_MIPS_DELTA_CLASS = 1879048215 +const DT_MIPS_DELTA_CLASSSYM = 1879048224 +const DT_MIPS_DELTA_CLASSSYM_NO = 1879048225 +const DT_MIPS_DELTA_CLASS_NO = 1879048216 +const DT_MIPS_DELTA_INSTANCE = 1879048217 +const DT_MIPS_DELTA_INSTANCE_NO = 1879048218 +const DT_MIPS_DELTA_RELOC = 1879048219 +const DT_MIPS_DELTA_RELOC_NO = 1879048220 +const DT_MIPS_DELTA_SYM = 1879048221 +const DT_MIPS_DELTA_SYM_NO = 1879048222 +const DT_MIPS_DYNSTR_ALIGN = 1879048235 +const DT_MIPS_FLAGS = 1879048197 +const DT_MIPS_GOTSYM = 1879048211 +const DT_MIPS_GP_VALUE = 1879048240 +const DT_MIPS_HIDDEN_GOTIDX = 1879048231 +const DT_MIPS_HIPAGENO = 1879048212 +const DT_MIPS_ICHECKSUM = 1879048195 +const DT_MIPS_INTERFACE = 1879048234 +const DT_MIPS_INTERFACE_SIZE = 1879048236 +const DT_MIPS_IVERSION = 1879048196 +const DT_MIPS_LIBLIST = 1879048201 +const DT_MIPS_LIBLISTNO = 1879048208 +const DT_MIPS_LOCALPAGE_GOTIDX = 1879048229 +const DT_MIPS_LOCAL_GOTIDX = 1879048230 +const DT_MIPS_LOCAL_GOTNO = 1879048202 +const DT_MIPS_MSYM = 1879048199 +const DT_MIPS_NUM = 54 +const DT_MIPS_OPTIONS = 1879048233 +const DT_MIPS_PERF_SUFFIX = 1879048238 +const DT_MIPS_PIXIE_INIT = 1879048227 +const DT_MIPS_PLTGOT = 1879048242 +const DT_MIPS_PROTECTED_GOTIDX = 1879048232 +const DT_MIPS_RLD_MAP = 1879048214 +const DT_MIPS_RLD_MAP_REL = 1879048245 +const DT_MIPS_RLD_TEXT_RESOLVE_ADDR = 1879048237 +const DT_MIPS_RLD_VERSION = 1879048193 +const DT_MIPS_RWPLT = 1879048244 +const DT_MIPS_SYMBOL_LIB = 1879048228 +const DT_MIPS_SYMTABNO = 1879048209 +const DT_MIPS_TIME_STAMP = 1879048194 +const DT_MIPS_UNREFEXTNO = 1879048210 +const DT_MOVEENT = 1879047674 +const DT_MOVESZ = 1879047675 +const DT_MOVETAB = 1879047934 +const DT_NEEDED = 1 +const DT_NIOS2_GP = 1879048194 +const DT_NULL = 0 +const DT_NUM = 38 +const DT_PLTGOT = 3 +const DT_PLTPAD = 1879047933 +const DT_PLTPADSZ = 1879047673 +const DT_PLTREL = 20 +const DT_PLTRELSZ = 2 +const DT_POSFLAG_1 = 1879047677 +const DT_PPC64_GLINK = 1879048192 +const DT_PPC64_NUM = 4 +const DT_PPC64_OPD = 1879048193 +const DT_PPC64_OPDSZ = 1879048194 +const DT_PPC64_OPT = 1879048195 +const DT_PPC_GOT = 1879048192 +const DT_PPC_NUM = 2 +const DT_PPC_OPT = 1879048193 +const DT_PREINIT_ARRAY = 32 +const DT_PREINIT_ARRAYSZ = 33 +const DT_PROCNUM = 54 +const DT_REL = 17 +const DT_RELA = 7 +const DT_RELACOUNT = 1879048185 +const DT_RELAENT = 9 +const DT_RELASZ = 8 +const DT_RELCOUNT = 1879048186 +const DT_RELENT = 19 +const DT_RELR = 36 +const DT_RELRENT = 37 +const DT_RELRSZ = 35 +const DT_RELSZ = 18 +const DT_RPATH = 15 +const DT_RUNPATH = 29 +const DT_SONAME = 14 +const DT_SPARC_NUM = 2 +const DT_SPARC_REGISTER = 1879048193 +const DT_STRSZ = 10 +const DT_STRTAB = 5 +const DT_SYMBOLIC = 16 +const DT_SYMENT = 11 +const DT_SYMINENT = 1879047679 +const DT_SYMINFO = 1879047935 +const DT_SYMINSZ = 1879047678 +const DT_SYMTAB = 6 +const DT_SYMTAB_SHNDX = 34 +const DT_TEXTREL = 22 +const DT_TLSDESC_GOT = 1879047927 +const DT_TLSDESC_PLT = 1879047926 +const DT_VALNUM = 12 +const DT_VALRNGHI = 1879047679 +const DT_VALRNGLO = 1879047424 +const DT_VERDEF = 1879048188 +const DT_VERDEFNUM = 1879048189 +const DT_VERNEED = 1879048190 +const DT_VERNEEDNUM = 1879048191 +const DT_VERSIONTAGNUM = 16 +const DT_VERSYM = 1879048176 +const EFA_PARISC_1_0 = 523 +const EFA_PARISC_1_1 = 528 +const EFA_PARISC_2_0 = 532 +const EF_ALPHA_32BIT = 1 +const EF_ALPHA_CANRELAX = 2 +const EF_ARM_ABI_FLOAT_HARD = 1024 +const EF_ARM_ABI_FLOAT_SOFT = 512 +const EF_ARM_ALIGN8 = 64 +const EF_ARM_APCS_26 = 8 +const EF_ARM_APCS_FLOAT = 16 +const EF_ARM_BE8 = 8388608 +const EF_ARM_DYNSYMSUSESEGIDX = 8 +const EF_ARM_EABIMASK = 4278190080 +const EF_ARM_EABI_UNKNOWN = 0 +const EF_ARM_EABI_VER1 = 16777216 +const EF_ARM_EABI_VER2 = 33554432 +const EF_ARM_EABI_VER3 = 50331648 +const EF_ARM_EABI_VER4 = 67108864 +const EF_ARM_EABI_VER5 = 83886080 +const EF_ARM_HASENTRY = 2 +const EF_ARM_INTERWORK = 4 +const EF_ARM_LE8 = 4194304 +const EF_ARM_MAPSYMSFIRST = 16 +const EF_ARM_MAVERICK_FLOAT = 2048 +const EF_ARM_NEW_ABI = 128 +const EF_ARM_OLD_ABI = 256 +const EF_ARM_PIC = 32 +const EF_ARM_RELEXEC = 1 +const EF_ARM_SOFT_FLOAT = 512 +const EF_ARM_SYMSARESORTED = 4 +const EF_ARM_VFP_FLOAT = 1024 +const EF_CPU32 = 8454144 +const EF_IA_64_ABI64 = 16 +const EF_IA_64_ARCH = 4278190080 +const EF_IA_64_MASKOS = 15 +const EF_LARCH_ABI_DOUBLE_FLOAT = 3 +const EF_LARCH_ABI_MODIFIER_MASK = 7 +const EF_LARCH_ABI_SINGLE_FLOAT = 2 +const EF_LARCH_ABI_SOFT_FLOAT = 1 +const EF_LARCH_OBJABI_V1 = 64 +const EF_MIPS_64BIT_WHIRL = 16 +const EF_MIPS_ABI2 = 32 +const EF_MIPS_ABI_ON32 = 64 +const EF_MIPS_ARCH = 4026531840 +const EF_MIPS_ARCH_1 = 0 +const EF_MIPS_ARCH_2 = 268435456 +const EF_MIPS_ARCH_3 = 536870912 +const EF_MIPS_ARCH_32 = 1342177280 +const EF_MIPS_ARCH_32R2 = 1879048192 +const EF_MIPS_ARCH_4 = 805306368 +const EF_MIPS_ARCH_5 = 1073741824 +const EF_MIPS_ARCH_64 = 1610612736 +const EF_MIPS_ARCH_64R2 = 2147483648 +const EF_MIPS_CPIC = 4 +const EF_MIPS_FP64 = 512 +const EF_MIPS_NAN2008 = 1024 +const EF_MIPS_NOREORDER = 1 +const EF_MIPS_PIC = 2 +const EF_MIPS_XGOT = 8 +const EF_PARISC_ARCH = 65535 +const EF_PARISC_EXT = 131072 +const EF_PARISC_LAZYSWAP = 4194304 +const EF_PARISC_LSB = 262144 +const EF_PARISC_NO_KABP = 1048576 +const EF_PARISC_TRAPNIL = 65536 +const EF_PARISC_WIDE = 524288 +const EF_PPC64_ABI = 3 +const EF_PPC_EMB = 2147483648 +const EF_PPC_RELOCATABLE = 65536 +const EF_PPC_RELOCATABLE_LIB = 32768 +const EF_SH1 = 1 +const EF_SH2 = 2 +const EF_SH2A = 13 +const EF_SH2A_NOFPU = 19 +const EF_SH2A_SH3E = 24 +const EF_SH2A_SH3_NOFPU = 22 +const EF_SH2A_SH4 = 23 +const EF_SH2A_SH4_NOFPU = 21 +const EF_SH2E = 11 +const EF_SH3 = 3 +const EF_SH3E = 8 +const EF_SH3_DSP = 5 +const EF_SH3_NOMMU = 20 +const EF_SH4 = 9 +const EF_SH4A = 12 +const EF_SH4AL_DSP = 6 +const EF_SH4A_NOFPU = 17 +const EF_SH4_NOFPU = 16 +const EF_SH4_NOMMU_NOFPU = 18 +const EF_SH_DSP = 4 +const EF_SH_MACH_MASK = 31 +const EF_SH_UNKNOWN = 0 +const EF_SPARCV9_MM = 3 +const EF_SPARCV9_PSO = 1 +const EF_SPARCV9_RMO = 2 +const EF_SPARCV9_TSO = 0 +const EF_SPARC_32PLUS = 256 +const EF_SPARC_EXT_MASK = 16776960 +const EF_SPARC_HAL_R1 = 1024 +const EF_SPARC_LEDATA = 8388608 +const EF_SPARC_SUN_US1 = 512 +const EF_SPARC_SUN_US3 = 2048 +const EI_ABIVERSION = 8 +const EI_CLASS = 4 +const EI_DATA = 5 +const EI_MAG0 = 0 +const EI_MAG1 = 1 +const EI_MAG2 = 2 +const EI_MAG3 = 3 +const EI_NIDENT = 16 +const EI_OSABI = 7 +const EI_PAD = 9 +const EI_VERSION = 6 +const ELFCLASS32 = 1 +const ELFCLASS64 = 2 +const ELFCLASSNONE = 0 +const ELFCLASSNUM = 3 +const ELFCOMPRESS_HIOS = 1879048191 +const ELFCOMPRESS_HIPROC = 2147483647 +const ELFCOMPRESS_LOOS = 1610612736 +const ELFCOMPRESS_LOPROC = 1879048192 +const ELFCOMPRESS_ZLIB = 1 +const ELFCOMPRESS_ZSTD = 2 +const ELFDATA2LSB = 1 +const ELFDATA2MSB = 2 +const ELFDATANONE = 0 +const ELFDATANUM = 3 +const ELFMAG = "\\177ELF" +const ELFMAG0 = 127 +const ELFMAG1 = 69 +const ELFMAG2 = 76 +const ELFMAG3 = 70 +const ELFOSABI_AIX = 7 +const ELFOSABI_ARM = 97 +const ELFOSABI_FREEBSD = 9 +const ELFOSABI_GNU = 3 +const ELFOSABI_HPUX = 1 +const ELFOSABI_IRIX = 8 +const ELFOSABI_LINUX = 3 +const ELFOSABI_MODESTO = 11 +const ELFOSABI_NETBSD = 2 +const ELFOSABI_NONE = 0 +const ELFOSABI_OPENBSD = 12 +const ELFOSABI_SOLARIS = 6 +const ELFOSABI_STANDALONE = 255 +const ELFOSABI_SYSV = 0 +const ELFOSABI_TRU64 = 10 +const ELF_NOTE_ABI = 1 +const ELF_NOTE_GNU = "GNU" +const ELF_NOTE_OS_FREEBSD = 3 +const ELF_NOTE_OS_GNU = 1 +const ELF_NOTE_OS_LINUX = 0 +const ELF_NOTE_OS_SOLARIS2 = 2 +const ELF_NOTE_PAGESIZE_HINT = 1 +const ELF_NOTE_SOLARIS = "SUNW Solaris" +const EM_386 = 3 +const EM_56800EX = 200 +const EM_68HC05 = 72 +const EM_68HC08 = 71 +const EM_68HC11 = 70 +const EM_68HC12 = 53 +const EM_68HC16 = 69 +const EM_68K = 4 +const EM_78KOR = 199 +const EM_8051 = 165 +const EM_860 = 7 +const EM_88K = 5 +const EM_960 = 19 +const EM_AARCH64 = 183 +const EM_ALPHA = 36902 +const EM_ALTERA_NIOS2 = 113 +const EM_AMDGPU = 224 +const EM_ARC = 45 +const EM_ARCA = 109 +const EM_ARC_A5 = 93 +const EM_ARC_COMPACT = 93 +const EM_ARC_COMPACT2 = 195 +const EM_ARM = 40 +const EM_AVR = 83 +const EM_AVR32 = 185 +const EM_BA1 = 201 +const EM_BA2 = 202 +const EM_BLACKFIN = 106 +const EM_BPF = 247 +const EM_C166 = 116 +const EM_CDP = 215 +const EM_CE = 119 +const EM_CLOUDSHIELD = 192 +const EM_COGE = 216 +const EM_COLDFIRE = 52 +const EM_COOL = 217 +const EM_COREA_1ST = 193 +const EM_COREA_2ND = 194 +const EM_CR = 103 +const EM_CR16 = 177 +const EM_CRAYNV2 = 172 +const EM_CRIS = 76 +const EM_CRX = 114 +const EM_CSKY = 252 +const EM_CSR_KALIMBA = 219 +const EM_CUDA = 190 +const EM_CYPRESS_M8C = 161 +const EM_D10V = 85 +const EM_D30V = 86 +const EM_DSP24 = 136 +const EM_DSPIC30F = 118 +const EM_DXP = 112 +const EM_ECOG16 = 176 +const EM_ECOG1X = 168 +const EM_ECOG2 = 134 +const EM_EMX16 = 212 +const EM_EMX8 = 213 +const EM_ETPU = 178 +const EM_EXCESS = 111 +const EM_F2MC16 = 104 +const EM_FAKE_ALPHA = 41 +const EM_FIREPATH = 78 +const EM_FR20 = 37 +const EM_FR30 = 84 +const EM_FT32 = 222 +const EM_FX66 = 66 +const EM_H8S = 48 +const EM_H8_300 = 46 +const EM_H8_300H = 47 +const EM_H8_500 = 49 +const EM_HUANY = 81 +const EM_IA_64 = 50 +const EM_IP2K = 101 +const EM_JAVELIN = 77 +const EM_K10M = 181 +const EM_KM32 = 210 +const EM_KMX32 = 211 +const EM_KVARC = 214 +const EM_L10M = 180 +const EM_LATTICEMICO32 = 138 +const EM_LOONGARCH = 258 +const EM_M16C = 117 +const EM_M32 = 1 +const EM_M32C = 120 +const EM_M32R = 88 +const EM_MANIK = 171 +const EM_MAX = 102 +const EM_MAXQ30 = 169 +const EM_MCHP_PIC = 204 +const EM_MCST_ELBRUS = 175 +const EM_ME16 = 59 +const EM_METAG = 174 +const EM_MICROBLAZE = 189 +const EM_MIPS = 8 +const EM_MIPS_RS3_LE = 10 +const EM_MIPS_X = 51 +const EM_MMA = 54 +const EM_MMDSP_PLUS = 160 +const EM_MMIX = 80 +const EM_MN10200 = 90 +const EM_MN10300 = 89 +const EM_MOXIE = 223 +const EM_MSP430 = 105 +const EM_NCPU = 56 +const EM_NDR1 = 57 +const EM_NDS32 = 167 +const EM_NONE = 0 +const EM_NORC = 218 +const EM_NS32K = 97 +const EM_NUM = 259 +const EM_OPEN8 = 196 +const EM_OPENRISC = 92 +const EM_OR1K = 92 +const EM_PARISC = 15 +const EM_PCP = 55 +const EM_PDSP = 63 +const EM_PJ = 91 +const EM_PPC = 20 +const EM_PPC64 = 21 +const EM_PRISM = 82 +const EM_QDSP6 = 164 +const EM_R32C = 162 +const EM_RCE = 39 +const EM_RH32 = 38 +const EM_RISCV = 243 +const EM_RL78 = 197 +const EM_RS08 = 132 +const EM_RX = 173 +const EM_S370 = 9 +const EM_S390 = 22 +const EM_SCORE7 = 135 +const EM_SEP = 108 +const EM_SE_C17 = 139 +const EM_SE_C33 = 107 +const EM_SH = 42 +const EM_SHARC = 133 +const EM_SLE9X = 179 +const EM_SNP1K = 99 +const EM_SPARC = 2 +const EM_SPARC32PLUS = 18 +const EM_SPARCV9 = 43 +const EM_ST100 = 60 +const EM_ST19 = 74 +const EM_ST200 = 100 +const EM_ST7 = 68 +const EM_ST9PLUS = 67 +const EM_STARCORE = 58 +const EM_STM8 = 186 +const EM_STXP7X = 166 +const EM_SVX = 73 +const EM_TILE64 = 187 +const EM_TILEGX = 191 +const EM_TILEPRO = 188 +const EM_TINYJ = 61 +const EM_TI_ARP32 = 143 +const EM_TI_C2000 = 141 +const EM_TI_C5500 = 142 +const EM_TI_C6000 = 140 +const EM_TI_PRU = 144 +const EM_TMM_GPP = 96 +const EM_TPC = 98 +const EM_TRICORE = 44 +const EM_TRIMEDIA = 163 +const EM_TSK3000 = 131 +const EM_UNICORE = 110 +const EM_V800 = 36 +const EM_V850 = 87 +const EM_VAX = 75 +const EM_VIDEOCORE = 95 +const EM_VIDEOCORE3 = 137 +const EM_VIDEOCORE5 = 198 +const EM_VISIUM = 221 +const EM_VPP500 = 17 +const EM_X86_64 = 62 +const EM_XCORE = 203 +const EM_XGATE = 115 +const EM_XIMO16 = 170 +const EM_XTENSA = 94 +const EM_Z80 = 220 +const EM_ZSP = 79 +const ET_CORE = 4 +const ET_DYN = 3 +const ET_EXEC = 2 +const ET_HIOS = 65279 +const ET_HIPROC = 65535 +const ET_LOOS = 65024 +const ET_LOPROC = 65280 +const ET_NONE = 0 +const ET_NUM = 5 +const ET_REL = 1 +const EV_CURRENT = 1 +const EV_NONE = 0 +const EV_NUM = 2 +const EXIT_FAILURE = 1 +const EXIT_SUCCESS = 0 +const E_MIPS_ARCH_1 = 0 +const E_MIPS_ARCH_2 = 268435456 +const E_MIPS_ARCH_3 = 536870912 +const E_MIPS_ARCH_32 = 1342177280 +const E_MIPS_ARCH_4 = 805306368 +const E_MIPS_ARCH_5 = 1073741824 +const E_MIPS_ARCH_64 = 1610612736 +const FD_SETSIZE = 1024 +const FPE_FLTDIV = 3 +const FPE_FLTINV = 7 +const FPE_FLTOVF = 4 +const FPE_FLTRES = 6 +const FPE_FLTSUB = 8 +const FPE_FLTUND = 5 +const FPE_INTDIV = 1 +const FPE_INTOVF = 2 +const GRP_COMDAT = 1 +const ILL_BADSTK = 8 +const ILL_COPROC = 7 +const ILL_ILLADR = 3 +const ILL_ILLOPC = 1 +const ILL_ILLOPN = 2 +const ILL_ILLTRP = 4 +const ILL_PRVOPC = 5 +const ILL_PRVREG = 6 +const ITIMER_PROF = 2 +const ITIMER_REAL = 0 +const ITIMER_VIRTUAL = 1 +const JT_ARG_MAX = -254 +const JT_AVPHYS_PAGES = -247 +const JT_DELAYTIMER_MAX = -245 +const JT_MINSIGSTKSZ = -244 +const JT_MQ_PRIO_MAX = -253 +const JT_NPROCESSORS_CONF = -250 +const JT_NPROCESSORS_ONLN = -249 +const JT_PAGE_SIZE = -252 +const JT_PHYS_PAGES = -248 +const JT_SEM_VALUE_MAX = -251 +const JT_SIGSTKSZ = -243 +const JT_ZERO = -246 +const LITUSE_ALPHA_ADDR = 0 +const LITUSE_ALPHA_BASE = 1 +const LITUSE_ALPHA_BYTOFF = 2 +const LITUSE_ALPHA_JSR = 3 +const LITUSE_ALPHA_TLS_GD = 4 +const LITUSE_ALPHA_TLS_LDM = 5 +const LL_DELAY_LOAD = 16 +const LL_DELTA = 32 +const LL_EXACT_MATCH = 1 +const LL_EXPORTS = 8 +const LL_IGNORE_INT_VER = 2 +const LL_NONE = 0 +const LL_REQUIRE_MINOR = 4 +const MB_CUR_MAX = 0 +const MINSIGSTKSZ = 4096 +const MIPS_AFL_ASE_DSP = 1 +const MIPS_AFL_ASE_DSPR2 = 2 +const MIPS_AFL_ASE_EVA = 4 +const MIPS_AFL_ASE_MASK = 8191 +const MIPS_AFL_ASE_MCU = 8 +const MIPS_AFL_ASE_MDMX = 16 +const MIPS_AFL_ASE_MICROMIPS = 2048 +const MIPS_AFL_ASE_MIPS16 = 1024 +const MIPS_AFL_ASE_MIPS3D = 32 +const MIPS_AFL_ASE_MSA = 512 +const MIPS_AFL_ASE_MT = 64 +const MIPS_AFL_ASE_SMARTMIPS = 128 +const MIPS_AFL_ASE_VIRT = 256 +const MIPS_AFL_ASE_XPA = 4096 +const MIPS_AFL_EXT_10000 = 11 +const MIPS_AFL_EXT_3900 = 10 +const MIPS_AFL_EXT_4010 = 8 +const MIPS_AFL_EXT_4100 = 9 +const MIPS_AFL_EXT_4111 = 13 +const MIPS_AFL_EXT_4120 = 14 +const MIPS_AFL_EXT_4650 = 7 +const MIPS_AFL_EXT_5400 = 15 +const MIPS_AFL_EXT_5500 = 16 +const MIPS_AFL_EXT_5900 = 6 +const MIPS_AFL_EXT_LOONGSON_2E = 17 +const MIPS_AFL_EXT_LOONGSON_2F = 18 +const MIPS_AFL_EXT_LOONGSON_3A = 4 +const MIPS_AFL_EXT_OCTEON = 5 +const MIPS_AFL_EXT_OCTEON2 = 2 +const MIPS_AFL_EXT_OCTEONP = 3 +const MIPS_AFL_EXT_SB1 = 12 +const MIPS_AFL_EXT_XLR = 1 +const MIPS_AFL_FLAGS1_ODDSPREG = 1 +const MIPS_AFL_REG_128 = 3 +const MIPS_AFL_REG_32 = 1 +const MIPS_AFL_REG_64 = 2 +const MIPS_AFL_REG_NONE = 0 +const NT_386_IOPERM = 513 +const NT_386_TLS = 512 +const NT_ARC_V2 = 1536 +const NT_ARM_HW_BREAK = 1026 +const NT_ARM_HW_WATCH = 1027 +const NT_ARM_PACA_KEYS = 1031 +const NT_ARM_PACG_KEYS = 1032 +const NT_ARM_PAC_ENABLED_KEYS = 1034 +const NT_ARM_PAC_MASK = 1030 +const NT_ARM_SVE = 1029 +const NT_ARM_SYSTEM_CALL = 1028 +const NT_ARM_TAGGED_ADDR_CTRL = 1033 +const NT_ARM_TLS = 1025 +const NT_ARM_VFP = 1024 +const NT_ASRS = 8 +const NT_AUXV = 6 +const NT_FILE = 1179208773 +const NT_FPREGSET = 2 +const NT_GNU_ABI_TAG = 1 +const NT_GNU_BUILD_ID = 3 +const NT_GNU_GOLD_VERSION = 4 +const NT_GNU_PROPERTY_TYPE_0 = 5 +const NT_GWINDOWS = 7 +const NT_LOONGARCH_CPUCFG = 2560 +const NT_LOONGARCH_CSR = 2561 +const NT_LOONGARCH_LASX = 2563 +const NT_LOONGARCH_LBT = 2564 +const NT_LOONGARCH_LSX = 2562 +const NT_LWPSINFO = 17 +const NT_LWPSTATUS = 16 +const NT_METAG_CBUF = 1280 +const NT_METAG_RPIPE = 1281 +const NT_METAG_TLS = 1282 +const NT_MIPS_DSP = 2048 +const NT_MIPS_FP_MODE = 2049 +const NT_MIPS_MSA = 2050 +const NT_PLATFORM = 5 +const NT_PPC_DSCR = 261 +const NT_PPC_EBB = 262 +const NT_PPC_PMU = 263 +const NT_PPC_PPR = 260 +const NT_PPC_SPE = 257 +const NT_PPC_TAR = 259 +const NT_PPC_TM_CDSCR = 271 +const NT_PPC_TM_CFPR = 265 +const NT_PPC_TM_CGPR = 264 +const NT_PPC_TM_CPPR = 270 +const NT_PPC_TM_CTAR = 269 +const NT_PPC_TM_CVMX = 266 +const NT_PPC_TM_CVSX = 267 +const NT_PPC_TM_SPR = 268 +const NT_PPC_VMX = 256 +const NT_PPC_VSX = 258 +const NT_PRCRED = 14 +const NT_PRFPREG = 2 +const NT_PRFPXREG = 20 +const NT_PRPSINFO = 3 +const NT_PRSTATUS = 1 +const NT_PRXFPREG = 1189489535 +const NT_PRXREG = 4 +const NT_PSINFO = 13 +const NT_PSTATUS = 10 +const NT_RISCV_CSR = 2304 +const NT_RISCV_VECTOR = 2305 +const NT_S390_CTRS = 772 +const NT_S390_GS_BC = 780 +const NT_S390_GS_CB = 779 +const NT_S390_HIGH_GPRS = 768 +const NT_S390_LAST_BREAK = 774 +const NT_S390_PREFIX = 773 +const NT_S390_RI_CB = 781 +const NT_S390_SYSTEM_CALL = 775 +const NT_S390_TDB = 776 +const NT_S390_TIMER = 769 +const NT_S390_TODCMP = 770 +const NT_S390_TODPREG = 771 +const NT_S390_VXRS_HIGH = 778 +const NT_S390_VXRS_LOW = 777 +const NT_SIGINFO = 1397311305 +const NT_TASKSTRUCT = 4 +const NT_UTSNAME = 15 +const NT_VERSION = 1 +const NT_VMCOREDD = 1792 +const NT_X86_XSTATE = 514 +const ODK_EXCEPTIONS = 2 +const ODK_FILL = 5 +const ODK_HWAND = 7 +const ODK_HWOR = 8 +const ODK_HWPATCH = 4 +const ODK_NULL = 0 +const ODK_PAD = 3 +const ODK_REGINFO = 1 +const ODK_TAGS = 6 +const OEX_DISMISS = 524288 +const OEX_FPDBUG = 262144 +const OEX_FPU_DIV0 = 8 +const OEX_FPU_INEX = 1 +const OEX_FPU_INVAL = 16 +const OEX_FPU_MAX = 7936 +const OEX_FPU_MIN = 31 +const OEX_FPU_OFLO = 4 +const OEX_FPU_UFLO = 2 +const OEX_PAGE0 = 65536 +const OEX_PRECISEFP = 262144 +const OEX_SMM = 131072 +const OHWA0_R4KEOP_CHECKED = 1 +const OHWA1_R4KEOP_CLEAN = 2 +const OHW_R4KEOP = 1 +const OHW_R5KCVTL = 8 +const OHW_R5KEOP = 4 +const OHW_R8KPFETCH = 2 +const OPAD_POSTFIX = 2 +const OPAD_PREFIX = 1 +const OPAD_SYMBOL = 4 +const PF_ARM_ABS = 1073741824 +const PF_ARM_PI = 536870912 +const PF_ARM_SB = 268435456 +const PF_HP_CODE = 16777216 +const PF_HP_FAR_SHARED = 2097152 +const PF_HP_LAZYSWAP = 67108864 +const PF_HP_MODIFY = 33554432 +const PF_HP_NEAR_SHARED = 4194304 +const PF_HP_PAGE_SIZE = 1048576 +const PF_HP_SBP = 134217728 +const PF_IA_64_NORECOV = 2147483648 +const PF_MASKOS = 267386880 +const PF_MASKPROC = 4026531840 +const PF_MIPS_LOCAL = 268435456 +const PF_PARISC_SBP = 134217728 +const PF_R = 4 +const PF_W = 2 +const PF_X = 1 +const PN_XNUM = 65535 +const POLL_ERR = 4 +const POLL_HUP = 6 +const POLL_IN = 1 +const POLL_MSG = 3 +const POLL_OUT = 2 +const POLL_PRI = 5 +const PPC64_OPT_LOCALENTRY = 4 +const PPC64_OPT_MULTI_TOC = 2 +const PPC64_OPT_TLS = 1 +const PPC_FEATURE2_ARCH_2_07 = 2147483648 +const PPC_FEATURE2_ARCH_3_00 = 8388608 +const PPC_FEATURE2_DARN = 2097152 +const PPC_FEATURE2_DSCR = 536870912 +const PPC_FEATURE2_EBB = 268435456 +const PPC_FEATURE2_HAS_IEEE128 = 4194304 +const PPC_FEATURE2_HTM = 1073741824 +const PPC_FEATURE2_HTM_NOSC = 16777216 +const PPC_FEATURE2_HTM_NO_SUSPEND = 524288 +const PPC_FEATURE2_ISEL = 134217728 +const PPC_FEATURE2_SCV = 1048576 +const PPC_FEATURE2_TAR = 67108864 +const PPC_FEATURE2_VEC_CRYPTO = 33554432 +const PPC_FEATURE_32 = 2147483648 +const PPC_FEATURE_601_INSTR = 536870912 +const PPC_FEATURE_64 = 1073741824 +const PPC_FEATURE_ARCH_2_05 = 4096 +const PPC_FEATURE_ARCH_2_06 = 256 +const PPC_FEATURE_BOOKE = 32768 +const PPC_FEATURE_CELL = 65536 +const PPC_FEATURE_HAS_4xxMAC = 33554432 +const PPC_FEATURE_HAS_ALTIVEC = 268435456 +const PPC_FEATURE_HAS_DFP = 1024 +const PPC_FEATURE_HAS_EFP_DOUBLE = 2097152 +const PPC_FEATURE_HAS_EFP_SINGLE = 4194304 +const PPC_FEATURE_HAS_FPU = 134217728 +const PPC_FEATURE_HAS_MMU = 67108864 +const PPC_FEATURE_HAS_SPE = 8388608 +const PPC_FEATURE_HAS_VSX = 128 +const PPC_FEATURE_ICACHE_SNOOP = 8192 +const PPC_FEATURE_NO_TB = 1048576 +const PPC_FEATURE_PA6T = 2048 +const PPC_FEATURE_POWER4 = 524288 +const PPC_FEATURE_POWER5 = 262144 +const PPC_FEATURE_POWER5_PLUS = 131072 +const PPC_FEATURE_POWER6_EXT = 512 +const PPC_FEATURE_PPC_LE = 1 +const PPC_FEATURE_PSERIES_PERFMON_COMPAT = 64 +const PPC_FEATURE_SMT = 16384 +const PPC_FEATURE_TRUE_LE = 2 +const PPC_FEATURE_UNIFIED_CACHE = 16777216 +const PPC_OPT_TLS = 1 +const PRIO_MAX = 20 +const PRIO_MIN = -20 +const PRIO_PGRP = 1 +const PRIO_PROCESS = 0 +const PRIO_USER = 2 +const PT_ARM_EXIDX = 1879048193 +const PT_DYNAMIC = 2 +const PT_GNU_EH_FRAME = 1685382480 +const PT_GNU_PROPERTY = 1685382483 +const PT_GNU_RELRO = 1685382482 +const PT_GNU_STACK = 1685382481 +const PT_HIOS = 1879048191 +const PT_HIPROC = 2147483647 +const PT_HISUNW = 1879048191 +const PT_HP_CORE_COMM = 1610612740 +const PT_HP_CORE_KERNEL = 1610612739 +const PT_HP_CORE_LOADABLE = 1610612742 +const PT_HP_CORE_MMF = 1610612745 +const PT_HP_CORE_NONE = 1610612737 +const PT_HP_CORE_PROC = 1610612741 +const PT_HP_CORE_SHM = 1610612744 +const PT_HP_CORE_STACK = 1610612743 +const PT_HP_CORE_VERSION = 1610612738 +const PT_HP_FASTBIND = 1610612753 +const PT_HP_HSL_ANNOT = 1610612755 +const PT_HP_OPT_ANNOT = 1610612754 +const PT_HP_PARALLEL = 1610612752 +const PT_HP_STACK = 1610612756 +const PT_HP_TLS = 1610612736 +const PT_IA_64_ARCHEXT = 1879048192 +const PT_IA_64_HP_HSL_ANOT = 1610612755 +const PT_IA_64_HP_OPT_ANOT = 1610612754 +const PT_IA_64_HP_STACK = 1610612756 +const PT_IA_64_UNWIND = 1879048193 +const PT_INTERP = 3 +const PT_LOAD = 1 +const PT_LOOS = 1610612736 +const PT_LOPROC = 1879048192 +const PT_LOSUNW = 1879048186 +const PT_MIPS_ABIFLAGS = 1879048195 +const PT_MIPS_OPTIONS = 1879048194 +const PT_MIPS_REGINFO = 1879048192 +const PT_MIPS_RTPROC = 1879048193 +const PT_NOTE = 4 +const PT_NULL = 0 +const PT_NUM = 8 +const PT_PARISC_ARCHEXT = 1879048192 +const PT_PARISC_UNWIND = 1879048193 +const PT_PHDR = 6 +const PT_SHLIB = 5 +const PT_SUNWBSS = 1879048186 +const PT_SUNWSTACK = 1879048187 +const PT_TLS = 7 +const RAND_MAX = 2147483647 +const RHF_CORD = 4096 +const RHF_DEFAULT_DELAY_LOAD = 512 +const RHF_DELTA_C_PLUS_PLUS = 64 +const RHF_GUARANTEE_INIT = 32 +const RHF_GUARANTEE_START_INIT = 128 +const RHF_NONE = 0 +const RHF_NOTPOT = 2 +const RHF_NO_LIBRARY_REPLACEMENT = 4 +const RHF_NO_MOVE = 8 +const RHF_NO_UNRES_UNDEF = 8192 +const RHF_PIXIE = 256 +const RHF_QUICKSTART = 1 +const RHF_REQUICKSTART = 1024 +const RHF_REQUICKSTARTED = 2048 +const RHF_RLD_ORDER_SAFE = 16384 +const RHF_SGI_ONLY = 16 +const RLIMIT_AS = 9 +const RLIMIT_CORE = 4 +const RLIMIT_CPU = 0 +const RLIMIT_DATA = 2 +const RLIMIT_FSIZE = 1 +const RLIMIT_LOCKS = 10 +const RLIMIT_MEMLOCK = 8 +const RLIMIT_MSGQUEUE = 12 +const RLIMIT_NICE = 13 +const RLIMIT_NLIMITS = 16 +const RLIMIT_NOFILE = 7 +const RLIMIT_NPROC = 6 +const RLIMIT_RSS = 5 +const RLIMIT_RTPRIO = 14 +const RLIMIT_RTTIME = 15 +const RLIMIT_SIGPENDING = 11 +const RLIMIT_STACK = 3 +const RLIM_INFINITY = 18446744073709551615 +const RLIM_NLIMITS = 16 +const RLIM_SAVED_CUR = 18446744073709551615 +const RLIM_SAVED_MAX = 18446744073709551615 +const RUSAGE_CHILDREN = -1 +const RUSAGE_SELF = 0 +const RUSAGE_THREAD = 1 +const R_386_16 = 20 +const R_386_32 = 1 +const R_386_32PLT = 11 +const R_386_8 = 22 +const R_386_COPY = 5 +const R_386_GLOB_DAT = 6 +const R_386_GOT32 = 3 +const R_386_GOT32X = 43 +const R_386_GOTOFF = 9 +const R_386_GOTPC = 10 +const R_386_IRELATIVE = 42 +const R_386_JMP_SLOT = 7 +const R_386_NONE = 0 +const R_386_NUM = 44 +const R_386_PC16 = 21 +const R_386_PC32 = 2 +const R_386_PC8 = 23 +const R_386_PLT32 = 4 +const R_386_RELATIVE = 8 +const R_386_SIZE32 = 38 +const R_386_TLS_DESC = 41 +const R_386_TLS_DESC_CALL = 40 +const R_386_TLS_DTPMOD32 = 35 +const R_386_TLS_DTPOFF32 = 36 +const R_386_TLS_GD = 18 +const R_386_TLS_GD_32 = 24 +const R_386_TLS_GD_CALL = 26 +const R_386_TLS_GD_POP = 27 +const R_386_TLS_GD_PUSH = 25 +const R_386_TLS_GOTDESC = 39 +const R_386_TLS_GOTIE = 16 +const R_386_TLS_IE = 15 +const R_386_TLS_IE_32 = 33 +const R_386_TLS_LDM = 19 +const R_386_TLS_LDM_32 = 28 +const R_386_TLS_LDM_CALL = 30 +const R_386_TLS_LDM_POP = 31 +const R_386_TLS_LDM_PUSH = 29 +const R_386_TLS_LDO_32 = 32 +const R_386_TLS_LE = 17 +const R_386_TLS_LE_32 = 34 +const R_386_TLS_TPOFF = 14 +const R_386_TLS_TPOFF32 = 37 +const R_390_12 = 2 +const R_390_16 = 3 +const R_390_20 = 57 +const R_390_32 = 4 +const R_390_64 = 22 +const R_390_8 = 1 +const R_390_COPY = 9 +const R_390_GLOB_DAT = 10 +const R_390_GOT12 = 6 +const R_390_GOT16 = 15 +const R_390_GOT20 = 58 +const R_390_GOT32 = 7 +const R_390_GOT64 = 24 +const R_390_GOTENT = 26 +const R_390_GOTOFF16 = 27 +const R_390_GOTOFF32 = 13 +const R_390_GOTOFF64 = 28 +const R_390_GOTPC = 14 +const R_390_GOTPCDBL = 21 +const R_390_GOTPLT12 = 29 +const R_390_GOTPLT16 = 30 +const R_390_GOTPLT20 = 59 +const R_390_GOTPLT32 = 31 +const R_390_GOTPLT64 = 32 +const R_390_GOTPLTENT = 33 +const R_390_JMP_SLOT = 11 +const R_390_NONE = 0 +const R_390_NUM = 61 +const R_390_PC16 = 16 +const R_390_PC16DBL = 17 +const R_390_PC32 = 5 +const R_390_PC32DBL = 19 +const R_390_PC64 = 23 +const R_390_PLT16DBL = 18 +const R_390_PLT32 = 8 +const R_390_PLT32DBL = 20 +const R_390_PLT64 = 25 +const R_390_PLTOFF16 = 34 +const R_390_PLTOFF32 = 35 +const R_390_PLTOFF64 = 36 +const R_390_RELATIVE = 12 +const R_390_TLS_DTPMOD = 54 +const R_390_TLS_DTPOFF = 55 +const R_390_TLS_GD32 = 40 +const R_390_TLS_GD64 = 41 +const R_390_TLS_GDCALL = 38 +const R_390_TLS_GOTIE12 = 42 +const R_390_TLS_GOTIE20 = 60 +const R_390_TLS_GOTIE32 = 43 +const R_390_TLS_GOTIE64 = 44 +const R_390_TLS_IE32 = 47 +const R_390_TLS_IE64 = 48 +const R_390_TLS_IEENT = 49 +const R_390_TLS_LDCALL = 39 +const R_390_TLS_LDM32 = 45 +const R_390_TLS_LDM64 = 46 +const R_390_TLS_LDO32 = 52 +const R_390_TLS_LDO64 = 53 +const R_390_TLS_LE32 = 50 +const R_390_TLS_LE64 = 51 +const R_390_TLS_LOAD = 37 +const R_390_TLS_TPOFF = 56 +const R_68K_16 = 2 +const R_68K_32 = 1 +const R_68K_8 = 3 +const R_68K_COPY = 19 +const R_68K_GLOB_DAT = 20 +const R_68K_GOT16 = 8 +const R_68K_GOT16O = 11 +const R_68K_GOT32 = 7 +const R_68K_GOT32O = 10 +const R_68K_GOT8 = 9 +const R_68K_GOT8O = 12 +const R_68K_JMP_SLOT = 21 +const R_68K_NONE = 0 +const R_68K_NUM = 43 +const R_68K_PC16 = 5 +const R_68K_PC32 = 4 +const R_68K_PC8 = 6 +const R_68K_PLT16 = 14 +const R_68K_PLT16O = 17 +const R_68K_PLT32 = 13 +const R_68K_PLT32O = 16 +const R_68K_PLT8 = 15 +const R_68K_PLT8O = 18 +const R_68K_RELATIVE = 22 +const R_68K_TLS_DTPMOD32 = 40 +const R_68K_TLS_DTPREL32 = 41 +const R_68K_TLS_GD16 = 26 +const R_68K_TLS_GD32 = 25 +const R_68K_TLS_GD8 = 27 +const R_68K_TLS_IE16 = 35 +const R_68K_TLS_IE32 = 34 +const R_68K_TLS_IE8 = 36 +const R_68K_TLS_LDM16 = 29 +const R_68K_TLS_LDM32 = 28 +const R_68K_TLS_LDM8 = 30 +const R_68K_TLS_LDO16 = 32 +const R_68K_TLS_LDO32 = 31 +const R_68K_TLS_LDO8 = 33 +const R_68K_TLS_LE16 = 38 +const R_68K_TLS_LE32 = 37 +const R_68K_TLS_LE8 = 39 +const R_68K_TLS_TPREL32 = 42 +const R_AARCH64_ABS16 = 259 +const R_AARCH64_ABS32 = 258 +const R_AARCH64_ABS64 = 257 +const R_AARCH64_ADD_ABS_LO12_NC = 277 +const R_AARCH64_ADR_GOT_PAGE = 311 +const R_AARCH64_ADR_PREL_LO21 = 274 +const R_AARCH64_ADR_PREL_PG_HI21 = 275 +const R_AARCH64_ADR_PREL_PG_HI21_NC = 276 +const R_AARCH64_CALL26 = 283 +const R_AARCH64_CONDBR19 = 280 +const R_AARCH64_COPY = 1024 +const R_AARCH64_GLOB_DAT = 1025 +const R_AARCH64_GOTREL32 = 308 +const R_AARCH64_GOTREL64 = 307 +const R_AARCH64_GOT_LD_PREL19 = 309 +const R_AARCH64_JUMP26 = 282 +const R_AARCH64_JUMP_SLOT = 1026 +const R_AARCH64_LD64_GOTOFF_LO15 = 310 +const R_AARCH64_LD64_GOTPAGE_LO15 = 313 +const R_AARCH64_LD64_GOT_LO12_NC = 312 +const R_AARCH64_LDST128_ABS_LO12_NC = 299 +const R_AARCH64_LDST16_ABS_LO12_NC = 284 +const R_AARCH64_LDST32_ABS_LO12_NC = 285 +const R_AARCH64_LDST64_ABS_LO12_NC = 286 +const R_AARCH64_LDST8_ABS_LO12_NC = 278 +const R_AARCH64_LD_PREL_LO19 = 273 +const R_AARCH64_MOVW_GOTOFF_G0 = 300 +const R_AARCH64_MOVW_GOTOFF_G0_NC = 301 +const R_AARCH64_MOVW_GOTOFF_G1 = 302 +const R_AARCH64_MOVW_GOTOFF_G1_NC = 303 +const R_AARCH64_MOVW_GOTOFF_G2 = 304 +const R_AARCH64_MOVW_GOTOFF_G2_NC = 305 +const R_AARCH64_MOVW_GOTOFF_G3 = 306 +const R_AARCH64_MOVW_PREL_G0 = 287 +const R_AARCH64_MOVW_PREL_G0_NC = 288 +const R_AARCH64_MOVW_PREL_G1 = 289 +const R_AARCH64_MOVW_PREL_G1_NC = 290 +const R_AARCH64_MOVW_PREL_G2 = 291 +const R_AARCH64_MOVW_PREL_G2_NC = 292 +const R_AARCH64_MOVW_PREL_G3 = 293 +const R_AARCH64_MOVW_SABS_G0 = 270 +const R_AARCH64_MOVW_SABS_G1 = 271 +const R_AARCH64_MOVW_SABS_G2 = 272 +const R_AARCH64_MOVW_UABS_G0 = 263 +const R_AARCH64_MOVW_UABS_G0_NC = 264 +const R_AARCH64_MOVW_UABS_G1 = 265 +const R_AARCH64_MOVW_UABS_G1_NC = 266 +const R_AARCH64_MOVW_UABS_G2 = 267 +const R_AARCH64_MOVW_UABS_G2_NC = 268 +const R_AARCH64_MOVW_UABS_G3 = 269 +const R_AARCH64_NONE = 0 +const R_AARCH64_P32_ABS32 = 1 +const R_AARCH64_P32_COPY = 180 +const R_AARCH64_P32_GLOB_DAT = 181 +const R_AARCH64_P32_IRELATIVE = 188 +const R_AARCH64_P32_JUMP_SLOT = 182 +const R_AARCH64_P32_RELATIVE = 183 +const R_AARCH64_P32_TLSDESC = 187 +const R_AARCH64_P32_TLS_DTPMOD = 184 +const R_AARCH64_P32_TLS_DTPREL = 185 +const R_AARCH64_P32_TLS_TPREL = 186 +const R_AARCH64_PREL16 = 262 +const R_AARCH64_PREL32 = 261 +const R_AARCH64_PREL64 = 260 +const R_AARCH64_RELATIVE = 1027 +const R_AARCH64_TLSDESC = 1031 +const R_AARCH64_TLSDESC_ADD = 568 +const R_AARCH64_TLSDESC_ADD_LO12 = 564 +const R_AARCH64_TLSDESC_ADR_PAGE21 = 562 +const R_AARCH64_TLSDESC_ADR_PREL21 = 561 +const R_AARCH64_TLSDESC_CALL = 569 +const R_AARCH64_TLSDESC_LD64_LO12 = 563 +const R_AARCH64_TLSDESC_LDR = 567 +const R_AARCH64_TLSDESC_LD_PREL19 = 560 +const R_AARCH64_TLSDESC_OFF_G0_NC = 566 +const R_AARCH64_TLSDESC_OFF_G1 = 565 +const R_AARCH64_TLSGD_ADD_LO12_NC = 514 +const R_AARCH64_TLSGD_ADR_PAGE21 = 513 +const R_AARCH64_TLSGD_ADR_PREL21 = 512 +const R_AARCH64_TLSGD_MOVW_G0_NC = 516 +const R_AARCH64_TLSGD_MOVW_G1 = 515 +const R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21 = 541 +const R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC = 542 +const R_AARCH64_TLSIE_LD_GOTTPREL_PREL19 = 543 +const R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC = 540 +const R_AARCH64_TLSIE_MOVW_GOTTPREL_G1 = 539 +const R_AARCH64_TLSLD_ADD_DTPREL_HI12 = 528 +const R_AARCH64_TLSLD_ADD_DTPREL_LO12 = 529 +const R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC = 530 +const R_AARCH64_TLSLD_ADD_LO12_NC = 519 +const R_AARCH64_TLSLD_ADR_PAGE21 = 518 +const R_AARCH64_TLSLD_ADR_PREL21 = 517 +const R_AARCH64_TLSLD_LDST128_DTPREL_LO12 = 572 +const R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC = 573 +const R_AARCH64_TLSLD_LDST16_DTPREL_LO12 = 533 +const R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC = 534 +const R_AARCH64_TLSLD_LDST32_DTPREL_LO12 = 535 +const R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC = 536 +const R_AARCH64_TLSLD_LDST64_DTPREL_LO12 = 537 +const R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC = 538 +const R_AARCH64_TLSLD_LDST8_DTPREL_LO12 = 531 +const R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC = 532 +const R_AARCH64_TLSLD_LD_PREL19 = 522 +const R_AARCH64_TLSLD_MOVW_DTPREL_G0 = 526 +const R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC = 527 +const R_AARCH64_TLSLD_MOVW_DTPREL_G1 = 524 +const R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC = 525 +const R_AARCH64_TLSLD_MOVW_DTPREL_G2 = 523 +const R_AARCH64_TLSLD_MOVW_G0_NC = 521 +const R_AARCH64_TLSLD_MOVW_G1 = 520 +const R_AARCH64_TLSLE_ADD_TPREL_HI12 = 549 +const R_AARCH64_TLSLE_ADD_TPREL_LO12 = 550 +const R_AARCH64_TLSLE_ADD_TPREL_LO12_NC = 551 +const R_AARCH64_TLSLE_LDST128_TPREL_LO12 = 570 +const R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC = 571 +const R_AARCH64_TLSLE_LDST16_TPREL_LO12 = 554 +const R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC = 555 +const R_AARCH64_TLSLE_LDST32_TPREL_LO12 = 556 +const R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC = 557 +const R_AARCH64_TLSLE_LDST64_TPREL_LO12 = 558 +const R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC = 559 +const R_AARCH64_TLSLE_LDST8_TPREL_LO12 = 552 +const R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC = 553 +const R_AARCH64_TLSLE_MOVW_TPREL_G0 = 547 +const R_AARCH64_TLSLE_MOVW_TPREL_G0_NC = 548 +const R_AARCH64_TLSLE_MOVW_TPREL_G1 = 545 +const R_AARCH64_TLSLE_MOVW_TPREL_G1_NC = 546 +const R_AARCH64_TLSLE_MOVW_TPREL_G2 = 544 +const R_AARCH64_TLS_DTPMOD = 1028 +const R_AARCH64_TLS_DTPMOD64 = 1028 +const R_AARCH64_TLS_DTPREL = 1029 +const R_AARCH64_TLS_DTPREL64 = 1029 +const R_AARCH64_TLS_TPREL = 1030 +const R_AARCH64_TLS_TPREL64 = 1030 +const R_AARCH64_TSTBR14 = 279 +const R_ALPHA_BRADDR = 7 +const R_ALPHA_COPY = 24 +const R_ALPHA_DTPMOD64 = 31 +const R_ALPHA_DTPREL16 = 36 +const R_ALPHA_DTPREL64 = 33 +const R_ALPHA_DTPRELHI = 34 +const R_ALPHA_DTPRELLO = 35 +const R_ALPHA_GLOB_DAT = 25 +const R_ALPHA_GOTDTPREL = 32 +const R_ALPHA_GOTTPREL = 37 +const R_ALPHA_GPDISP = 6 +const R_ALPHA_GPREL16 = 19 +const R_ALPHA_GPREL32 = 3 +const R_ALPHA_GPRELHIGH = 17 +const R_ALPHA_GPRELLOW = 18 +const R_ALPHA_HINT = 8 +const R_ALPHA_JMP_SLOT = 26 +const R_ALPHA_LITERAL = 4 +const R_ALPHA_LITUSE = 5 +const R_ALPHA_NONE = 0 +const R_ALPHA_NUM = 46 +const R_ALPHA_REFLONG = 1 +const R_ALPHA_REFQUAD = 2 +const R_ALPHA_RELATIVE = 27 +const R_ALPHA_SREL16 = 9 +const R_ALPHA_SREL32 = 10 +const R_ALPHA_SREL64 = 11 +const R_ALPHA_TLSGD = 29 +const R_ALPHA_TLS_GD_HI = 28 +const R_ALPHA_TLS_LDM = 30 +const R_ALPHA_TPREL16 = 41 +const R_ALPHA_TPREL64 = 38 +const R_ALPHA_TPRELHI = 39 +const R_ALPHA_TPRELLO = 40 +const R_ARM_ABS12 = 6 +const R_ARM_ABS16 = 5 +const R_ARM_ABS32 = 2 +const R_ARM_ABS32_NOI = 55 +const R_ARM_ABS8 = 8 +const R_ARM_ALU_PCREL_15_8 = 33 +const R_ARM_ALU_PCREL_23_15 = 34 +const R_ARM_ALU_PCREL_7_0 = 32 +const R_ARM_ALU_PC_G0 = 58 +const R_ARM_ALU_PC_G0_NC = 57 +const R_ARM_ALU_PC_G1 = 60 +const R_ARM_ALU_PC_G1_NC = 59 +const R_ARM_ALU_PC_G2 = 61 +const R_ARM_ALU_SBREL_19_12 = 36 +const R_ARM_ALU_SBREL_27_20 = 37 +const R_ARM_ALU_SB_G0 = 71 +const R_ARM_ALU_SB_G0_NC = 70 +const R_ARM_ALU_SB_G1 = 73 +const R_ARM_ALU_SB_G1_NC = 72 +const R_ARM_ALU_SB_G2 = 74 +const R_ARM_AMP_VCALL9 = 12 +const R_ARM_BASE_ABS = 31 +const R_ARM_CALL = 28 +const R_ARM_COPY = 20 +const R_ARM_GLOB_DAT = 21 +const R_ARM_GNU_VTENTRY = 100 +const R_ARM_GNU_VTINHERIT = 101 +const R_ARM_GOT32 = 26 +const R_ARM_GOTOFF = 24 +const R_ARM_GOTOFF12 = 98 +const R_ARM_GOTPC = 25 +const R_ARM_GOTRELAX = 99 +const R_ARM_GOT_ABS = 95 +const R_ARM_GOT_BREL12 = 97 +const R_ARM_GOT_PREL = 96 +const R_ARM_IRELATIVE = 160 +const R_ARM_JUMP24 = 29 +const R_ARM_JUMP_SLOT = 22 +const R_ARM_LDC_PC_G0 = 67 +const R_ARM_LDC_PC_G1 = 68 +const R_ARM_LDC_PC_G2 = 69 +const R_ARM_LDC_SB_G0 = 81 +const R_ARM_LDC_SB_G1 = 82 +const R_ARM_LDC_SB_G2 = 83 +const R_ARM_LDRS_PC_G0 = 64 +const R_ARM_LDRS_PC_G1 = 65 +const R_ARM_LDRS_PC_G2 = 66 +const R_ARM_LDRS_SB_G0 = 78 +const R_ARM_LDRS_SB_G1 = 79 +const R_ARM_LDRS_SB_G2 = 80 +const R_ARM_LDR_PC_G1 = 62 +const R_ARM_LDR_PC_G2 = 63 +const R_ARM_LDR_SBREL_11_0 = 35 +const R_ARM_LDR_SB_G0 = 75 +const R_ARM_LDR_SB_G1 = 76 +const R_ARM_LDR_SB_G2 = 77 +const R_ARM_ME_TOO = 128 +const R_ARM_MOVT_ABS = 44 +const R_ARM_MOVT_BREL = 85 +const R_ARM_MOVT_PREL = 46 +const R_ARM_MOVW_ABS_NC = 43 +const R_ARM_MOVW_BREL = 86 +const R_ARM_MOVW_BREL_NC = 84 +const R_ARM_MOVW_PREL_NC = 45 +const R_ARM_NONE = 0 +const R_ARM_NUM = 256 +const R_ARM_PC13 = 4 +const R_ARM_PC24 = 1 +const R_ARM_PLT32 = 27 +const R_ARM_PLT32_ABS = 94 +const R_ARM_PREL31 = 42 +const R_ARM_RABS22 = 253 +const R_ARM_RBASE = 255 +const R_ARM_REL32 = 3 +const R_ARM_REL32_NOI = 56 +const R_ARM_RELATIVE = 23 +const R_ARM_RPC24 = 254 +const R_ARM_RREL32 = 252 +const R_ARM_RSBREL32 = 250 +const R_ARM_RXPC25 = 249 +const R_ARM_SBREL31 = 39 +const R_ARM_SBREL32 = 9 +const R_ARM_TARGET1 = 38 +const R_ARM_TARGET2 = 41 +const R_ARM_THM_ABS5 = 7 +const R_ARM_THM_ALU_PREL_11_0 = 53 +const R_ARM_THM_GOT_BREL12 = 131 +const R_ARM_THM_JUMP19 = 51 +const R_ARM_THM_JUMP24 = 30 +const R_ARM_THM_JUMP6 = 52 +const R_ARM_THM_MOVT_ABS = 48 +const R_ARM_THM_MOVT_BREL = 88 +const R_ARM_THM_MOVT_PREL = 50 +const R_ARM_THM_MOVW_ABS_NC = 47 +const R_ARM_THM_MOVW_BREL = 89 +const R_ARM_THM_MOVW_BREL_NC = 87 +const R_ARM_THM_MOVW_PREL_NC = 49 +const R_ARM_THM_PC11 = 102 +const R_ARM_THM_PC12 = 54 +const R_ARM_THM_PC22 = 10 +const R_ARM_THM_PC8 = 11 +const R_ARM_THM_PC9 = 103 +const R_ARM_THM_RPC22 = 251 +const R_ARM_THM_SWI8 = 14 +const R_ARM_THM_TLS_CALL = 93 +const R_ARM_THM_TLS_DESCSEQ = 129 +const R_ARM_THM_TLS_DESCSEQ16 = 129 +const R_ARM_THM_TLS_DESCSEQ32 = 130 +const R_ARM_THM_XPC22 = 16 +const R_ARM_TLS_CALL = 91 +const R_ARM_TLS_DESC = 13 +const R_ARM_TLS_DESCSEQ = 92 +const R_ARM_TLS_DTPMOD32 = 17 +const R_ARM_TLS_DTPOFF32 = 18 +const R_ARM_TLS_GD32 = 104 +const R_ARM_TLS_GOTDESC = 90 +const R_ARM_TLS_IE12GP = 111 +const R_ARM_TLS_IE32 = 107 +const R_ARM_TLS_LDM32 = 105 +const R_ARM_TLS_LDO12 = 109 +const R_ARM_TLS_LDO32 = 106 +const R_ARM_TLS_LE12 = 110 +const R_ARM_TLS_LE32 = 108 +const R_ARM_TLS_TPOFF32 = 19 +const R_ARM_V4BX = 40 +const R_ARM_XPC25 = 15 +const R_BPF_MAP_FD = 1 +const R_BPF_NONE = 0 +const R_CKCORE_ADDR32 = 1 +const R_CKCORE_ADDRGOT = 17 +const R_CKCORE_ADDRGOT_HI16 = 36 +const R_CKCORE_ADDRGOT_LO16 = 37 +const R_CKCORE_ADDRPLT = 18 +const R_CKCORE_ADDRPLT_HI16 = 38 +const R_CKCORE_ADDRPLT_LO16 = 39 +const R_CKCORE_ADDR_HI16 = 24 +const R_CKCORE_ADDR_LO16 = 25 +const R_CKCORE_COPY = 10 +const R_CKCORE_DOFFSET_IMM18 = 44 +const R_CKCORE_DOFFSET_IMM18BY2 = 45 +const R_CKCORE_DOFFSET_IMM18BY4 = 46 +const R_CKCORE_DOFFSET_LO16 = 42 +const R_CKCORE_GLOB_DAT = 11 +const R_CKCORE_GOT12 = 30 +const R_CKCORE_GOT32 = 15 +const R_CKCORE_GOTOFF = 13 +const R_CKCORE_GOTOFF_HI16 = 28 +const R_CKCORE_GOTOFF_LO16 = 29 +const R_CKCORE_GOTPC = 14 +const R_CKCORE_GOTPC_HI16 = 26 +const R_CKCORE_GOTPC_LO16 = 27 +const R_CKCORE_GOT_HI16 = 31 +const R_CKCORE_GOT_IMM18BY4 = 48 +const R_CKCORE_GOT_LO16 = 32 +const R_CKCORE_JUMP_SLOT = 12 +const R_CKCORE_NONE = 0 +const R_CKCORE_PCREL32 = 5 +const R_CKCORE_PCRELIMM11BY2 = 3 +const R_CKCORE_PCRELIMM8BY4 = 2 +const R_CKCORE_PCRELJSR_IMM11BY2 = 6 +const R_CKCORE_PCREL_IMM10BY2 = 22 +const R_CKCORE_PCREL_IMM10BY4 = 23 +const R_CKCORE_PCREL_IMM16BY2 = 20 +const R_CKCORE_PCREL_IMM16BY4 = 21 +const R_CKCORE_PCREL_IMM18BY2 = 43 +const R_CKCORE_PCREL_IMM26BY2 = 19 +const R_CKCORE_PCREL_IMM7BY4 = 50 +const R_CKCORE_PCREL_JSR_IMM26BY2 = 40 +const R_CKCORE_PLT12 = 33 +const R_CKCORE_PLT32 = 16 +const R_CKCORE_PLT_HI16 = 34 +const R_CKCORE_PLT_IMM18BY4 = 49 +const R_CKCORE_PLT_LO16 = 35 +const R_CKCORE_RELATIVE = 9 +const R_CKCORE_TLS_DTPMOD32 = 56 +const R_CKCORE_TLS_DTPOFF32 = 57 +const R_CKCORE_TLS_GD32 = 53 +const R_CKCORE_TLS_IE32 = 52 +const R_CKCORE_TLS_LDM32 = 54 +const R_CKCORE_TLS_LDO32 = 55 +const R_CKCORE_TLS_LE32 = 51 +const R_CKCORE_TLS_TPOFF32 = 58 +const R_CKCORE_TOFFSET_LO16 = 41 +const R_CRIS_16 = 2 +const R_CRIS_16_GOT = 13 +const R_CRIS_16_GOTPLT = 15 +const R_CRIS_16_PCREL = 5 +const R_CRIS_32 = 3 +const R_CRIS_32_GOT = 14 +const R_CRIS_32_GOTPLT = 16 +const R_CRIS_32_GOTREL = 17 +const R_CRIS_32_PCREL = 6 +const R_CRIS_32_PLT_GOTREL = 18 +const R_CRIS_32_PLT_PCREL = 19 +const R_CRIS_8 = 1 +const R_CRIS_8_PCREL = 4 +const R_CRIS_COPY = 9 +const R_CRIS_GLOB_DAT = 10 +const R_CRIS_GNU_VTENTRY = 8 +const R_CRIS_GNU_VTINHERIT = 7 +const R_CRIS_JUMP_SLOT = 11 +const R_CRIS_NONE = 0 +const R_CRIS_NUM = 20 +const R_CRIS_RELATIVE = 12 +const R_IA64_COPY = 132 +const R_IA64_DIR32LSB = 37 +const R_IA64_DIR32MSB = 36 +const R_IA64_DIR64LSB = 39 +const R_IA64_DIR64MSB = 38 +const R_IA64_DTPMOD64LSB = 167 +const R_IA64_DTPMOD64MSB = 166 +const R_IA64_DTPREL14 = 177 +const R_IA64_DTPREL22 = 178 +const R_IA64_DTPREL32LSB = 181 +const R_IA64_DTPREL32MSB = 180 +const R_IA64_DTPREL64I = 179 +const R_IA64_DTPREL64LSB = 183 +const R_IA64_DTPREL64MSB = 182 +const R_IA64_FPTR32LSB = 69 +const R_IA64_FPTR32MSB = 68 +const R_IA64_FPTR64I = 67 +const R_IA64_FPTR64LSB = 71 +const R_IA64_FPTR64MSB = 70 +const R_IA64_GPREL22 = 42 +const R_IA64_GPREL32LSB = 45 +const R_IA64_GPREL32MSB = 44 +const R_IA64_GPREL64I = 43 +const R_IA64_GPREL64LSB = 47 +const R_IA64_GPREL64MSB = 46 +const R_IA64_IMM14 = 33 +const R_IA64_IMM22 = 34 +const R_IA64_IMM64 = 35 +const R_IA64_IPLTLSB = 129 +const R_IA64_IPLTMSB = 128 +const R_IA64_LDXMOV = 135 +const R_IA64_LTOFF22 = 50 +const R_IA64_LTOFF22X = 134 +const R_IA64_LTOFF64I = 51 +const R_IA64_LTOFF_DTPMOD22 = 170 +const R_IA64_LTOFF_DTPREL22 = 186 +const R_IA64_LTOFF_FPTR22 = 82 +const R_IA64_LTOFF_FPTR32LSB = 85 +const R_IA64_LTOFF_FPTR32MSB = 84 +const R_IA64_LTOFF_FPTR64I = 83 +const R_IA64_LTOFF_FPTR64LSB = 87 +const R_IA64_LTOFF_FPTR64MSB = 86 +const R_IA64_LTOFF_TPREL22 = 154 +const R_IA64_LTV32LSB = 117 +const R_IA64_LTV32MSB = 116 +const R_IA64_LTV64LSB = 119 +const R_IA64_LTV64MSB = 118 +const R_IA64_NONE = 0 +const R_IA64_PCREL21B = 73 +const R_IA64_PCREL21BI = 121 +const R_IA64_PCREL21F = 75 +const R_IA64_PCREL21M = 74 +const R_IA64_PCREL22 = 122 +const R_IA64_PCREL32LSB = 77 +const R_IA64_PCREL32MSB = 76 +const R_IA64_PCREL60B = 72 +const R_IA64_PCREL64I = 123 +const R_IA64_PCREL64LSB = 79 +const R_IA64_PCREL64MSB = 78 +const R_IA64_PLTOFF22 = 58 +const R_IA64_PLTOFF64I = 59 +const R_IA64_PLTOFF64LSB = 63 +const R_IA64_PLTOFF64MSB = 62 +const R_IA64_REL32LSB = 109 +const R_IA64_REL32MSB = 108 +const R_IA64_REL64LSB = 111 +const R_IA64_REL64MSB = 110 +const R_IA64_SECREL32LSB = 101 +const R_IA64_SECREL32MSB = 100 +const R_IA64_SECREL64LSB = 103 +const R_IA64_SECREL64MSB = 102 +const R_IA64_SEGREL32LSB = 93 +const R_IA64_SEGREL32MSB = 92 +const R_IA64_SEGREL64LSB = 95 +const R_IA64_SEGREL64MSB = 94 +const R_IA64_SUB = 133 +const R_IA64_TPREL14 = 145 +const R_IA64_TPREL22 = 146 +const R_IA64_TPREL64I = 147 +const R_IA64_TPREL64LSB = 151 +const R_IA64_TPREL64MSB = 150 +const R_LARCH_32 = 1 +const R_LARCH_32_PCREL = 99 +const R_LARCH_64 = 2 +const R_LARCH_ABS64_HI12 = 70 +const R_LARCH_ABS64_LO20 = 69 +const R_LARCH_ABS_HI20 = 67 +const R_LARCH_ABS_LO12 = 68 +const R_LARCH_ADD16 = 48 +const R_LARCH_ADD24 = 49 +const R_LARCH_ADD32 = 50 +const R_LARCH_ADD64 = 51 +const R_LARCH_ADD8 = 47 +const R_LARCH_B16 = 64 +const R_LARCH_B21 = 65 +const R_LARCH_B26 = 66 +const R_LARCH_COPY = 4 +const R_LARCH_GNU_VTENTRY = 58 +const R_LARCH_GNU_VTINHERIT = 57 +const R_LARCH_GOT64_HI12 = 82 +const R_LARCH_GOT64_LO20 = 81 +const R_LARCH_GOT64_PC_HI12 = 78 +const R_LARCH_GOT64_PC_LO20 = 77 +const R_LARCH_GOT_HI20 = 79 +const R_LARCH_GOT_LO12 = 80 +const R_LARCH_GOT_PC_HI20 = 75 +const R_LARCH_GOT_PC_LO12 = 76 +const R_LARCH_IRELATIVE = 12 +const R_LARCH_JUMP_SLOT = 5 +const R_LARCH_MARK_LA = 20 +const R_LARCH_MARK_PCREL = 21 +const R_LARCH_NONE = 0 +const R_LARCH_PCALA64_HI12 = 74 +const R_LARCH_PCALA64_LO20 = 73 +const R_LARCH_PCALA_HI20 = 71 +const R_LARCH_PCALA_LO12 = 72 +const R_LARCH_RELATIVE = 3 +const R_LARCH_RELAX = 100 +const R_LARCH_SOP_ADD = 35 +const R_LARCH_SOP_AND = 36 +const R_LARCH_SOP_ASSERT = 30 +const R_LARCH_SOP_IF_ELSE = 37 +const R_LARCH_SOP_NOT = 31 +const R_LARCH_SOP_POP_32_S_0_10_10_16_S2 = 45 +const R_LARCH_SOP_POP_32_S_0_5_10_16_S2 = 44 +const R_LARCH_SOP_POP_32_S_10_12 = 40 +const R_LARCH_SOP_POP_32_S_10_16 = 41 +const R_LARCH_SOP_POP_32_S_10_16_S2 = 42 +const R_LARCH_SOP_POP_32_S_10_5 = 38 +const R_LARCH_SOP_POP_32_S_5_20 = 43 +const R_LARCH_SOP_POP_32_U = 46 +const R_LARCH_SOP_POP_32_U_10_12 = 39 +const R_LARCH_SOP_PUSH_ABSOLUTE = 23 +const R_LARCH_SOP_PUSH_DUP = 24 +const R_LARCH_SOP_PUSH_GPREL = 25 +const R_LARCH_SOP_PUSH_PCREL = 22 +const R_LARCH_SOP_PUSH_PLT_PCREL = 29 +const R_LARCH_SOP_PUSH_TLS_GD = 28 +const R_LARCH_SOP_PUSH_TLS_GOT = 27 +const R_LARCH_SOP_PUSH_TLS_TPREL = 26 +const R_LARCH_SOP_SL = 33 +const R_LARCH_SOP_SR = 34 +const R_LARCH_SOP_SUB = 32 +const R_LARCH_SUB16 = 53 +const R_LARCH_SUB24 = 54 +const R_LARCH_SUB32 = 55 +const R_LARCH_SUB64 = 56 +const R_LARCH_SUB8 = 52 +const R_LARCH_TLS_DTPMOD32 = 6 +const R_LARCH_TLS_DTPMOD64 = 7 +const R_LARCH_TLS_DTPREL32 = 8 +const R_LARCH_TLS_DTPREL64 = 9 +const R_LARCH_TLS_GD_HI20 = 98 +const R_LARCH_TLS_GD_PC_HI20 = 97 +const R_LARCH_TLS_IE64_HI12 = 94 +const R_LARCH_TLS_IE64_LO20 = 93 +const R_LARCH_TLS_IE64_PC_HI12 = 90 +const R_LARCH_TLS_IE64_PC_LO20 = 89 +const R_LARCH_TLS_IE_HI20 = 91 +const R_LARCH_TLS_IE_LO12 = 92 +const R_LARCH_TLS_IE_PC_HI20 = 87 +const R_LARCH_TLS_IE_PC_LO12 = 88 +const R_LARCH_TLS_LD_HI20 = 96 +const R_LARCH_TLS_LD_PC_HI20 = 95 +const R_LARCH_TLS_LE64_HI12 = 86 +const R_LARCH_TLS_LE64_LO20 = 85 +const R_LARCH_TLS_LE_HI20 = 83 +const R_LARCH_TLS_LE_LO12 = 84 +const R_LARCH_TLS_TPREL32 = 10 +const R_LARCH_TLS_TPREL64 = 11 +const R_M32R_10_PCREL = 4 +const R_M32R_10_PCREL_RELA = 36 +const R_M32R_16 = 1 +const R_M32R_16_RELA = 33 +const R_M32R_18_PCREL = 5 +const R_M32R_18_PCREL_RELA = 37 +const R_M32R_24 = 3 +const R_M32R_24_RELA = 35 +const R_M32R_26_PCREL = 6 +const R_M32R_26_PCREL_RELA = 38 +const R_M32R_26_PLTREL = 49 +const R_M32R_32 = 2 +const R_M32R_32_RELA = 34 +const R_M32R_COPY = 50 +const R_M32R_GLOB_DAT = 51 +const R_M32R_GNU_VTENTRY = 12 +const R_M32R_GNU_VTINHERIT = 11 +const R_M32R_GOT16_HI_SLO = 57 +const R_M32R_GOT16_HI_ULO = 56 +const R_M32R_GOT16_LO = 58 +const R_M32R_GOT24 = 48 +const R_M32R_GOTOFF = 54 +const R_M32R_GOTOFF_HI_SLO = 63 +const R_M32R_GOTOFF_HI_ULO = 62 +const R_M32R_GOTOFF_LO = 64 +const R_M32R_GOTPC24 = 55 +const R_M32R_GOTPC_HI_SLO = 60 +const R_M32R_GOTPC_HI_ULO = 59 +const R_M32R_GOTPC_LO = 61 +const R_M32R_HI16_SLO = 8 +const R_M32R_HI16_SLO_RELA = 40 +const R_M32R_HI16_ULO = 7 +const R_M32R_HI16_ULO_RELA = 39 +const R_M32R_JMP_SLOT = 52 +const R_M32R_LO16 = 9 +const R_M32R_LO16_RELA = 41 +const R_M32R_NONE = 0 +const R_M32R_NUM = 256 +const R_M32R_REL32 = 45 +const R_M32R_RELATIVE = 53 +const R_M32R_RELA_GNU_VTENTRY = 44 +const R_M32R_RELA_GNU_VTINHERIT = 43 +const R_M32R_SDA16 = 10 +const R_M32R_SDA16_RELA = 42 +const R_MICROBLAZE_32 = 1 +const R_MICROBLAZE_32_LO = 6 +const R_MICROBLAZE_32_PCREL = 2 +const R_MICROBLAZE_32_PCREL_LO = 4 +const R_MICROBLAZE_32_SYM_OP_SYM = 10 +const R_MICROBLAZE_64 = 5 +const R_MICROBLAZE_64_NONE = 9 +const R_MICROBLAZE_64_PCREL = 3 +const R_MICROBLAZE_COPY = 21 +const R_MICROBLAZE_GLOB_DAT = 18 +const R_MICROBLAZE_GNU_VTENTRY = 12 +const R_MICROBLAZE_GNU_VTINHERIT = 11 +const R_MICROBLAZE_GOTOFF_32 = 20 +const R_MICROBLAZE_GOTOFF_64 = 19 +const R_MICROBLAZE_GOTPC_64 = 13 +const R_MICROBLAZE_GOT_64 = 14 +const R_MICROBLAZE_JUMP_SLOT = 17 +const R_MICROBLAZE_NONE = 0 +const R_MICROBLAZE_PLT_64 = 15 +const R_MICROBLAZE_REL = 16 +const R_MICROBLAZE_SRO32 = 7 +const R_MICROBLAZE_SRW32 = 8 +const R_MICROBLAZE_TLS = 22 +const R_MICROBLAZE_TLSDTPMOD32 = 25 +const R_MICROBLAZE_TLSDTPREL32 = 26 +const R_MICROBLAZE_TLSDTPREL64 = 27 +const R_MICROBLAZE_TLSGD = 23 +const R_MICROBLAZE_TLSGOTTPREL32 = 28 +const R_MICROBLAZE_TLSLD = 24 +const R_MICROBLAZE_TLSTPREL32 = 29 +const R_MIPS_16 = 1 +const R_MIPS_26 = 4 +const R_MIPS_32 = 2 +const R_MIPS_64 = 18 +const R_MIPS_ADD_IMMEDIATE = 34 +const R_MIPS_CALL16 = 11 +const R_MIPS_CALL_HI16 = 30 +const R_MIPS_CALL_LO16 = 31 +const R_MIPS_COPY = 126 +const R_MIPS_DELETE = 27 +const R_MIPS_GLOB_DAT = 51 +const R_MIPS_GOT16 = 9 +const R_MIPS_GOT_DISP = 19 +const R_MIPS_GOT_HI16 = 22 +const R_MIPS_GOT_LO16 = 23 +const R_MIPS_GOT_OFST = 21 +const R_MIPS_GOT_PAGE = 20 +const R_MIPS_GPREL16 = 7 +const R_MIPS_GPREL32 = 12 +const R_MIPS_HI16 = 5 +const R_MIPS_HIGHER = 28 +const R_MIPS_HIGHEST = 29 +const R_MIPS_INSERT_A = 25 +const R_MIPS_INSERT_B = 26 +const R_MIPS_JALR = 37 +const R_MIPS_JUMP_SLOT = 127 +const R_MIPS_LITERAL = 8 +const R_MIPS_LO16 = 6 +const R_MIPS_NONE = 0 +const R_MIPS_NUM = 128 +const R_MIPS_PC16 = 10 +const R_MIPS_PJUMP = 35 +const R_MIPS_REL16 = 33 +const R_MIPS_REL32 = 3 +const R_MIPS_RELGOT = 36 +const R_MIPS_SCN_DISP = 32 +const R_MIPS_SHIFT5 = 16 +const R_MIPS_SHIFT6 = 17 +const R_MIPS_SUB = 24 +const R_MIPS_TLS_DTPMOD32 = 38 +const R_MIPS_TLS_DTPMOD64 = 40 +const R_MIPS_TLS_DTPREL32 = 39 +const R_MIPS_TLS_DTPREL64 = 41 +const R_MIPS_TLS_DTPREL_HI16 = 44 +const R_MIPS_TLS_DTPREL_LO16 = 45 +const R_MIPS_TLS_GD = 42 +const R_MIPS_TLS_GOTTPREL = 46 +const R_MIPS_TLS_LDM = 43 +const R_MIPS_TLS_TPREL32 = 47 +const R_MIPS_TLS_TPREL64 = 48 +const R_MIPS_TLS_TPREL_HI16 = 49 +const R_MIPS_TLS_TPREL_LO16 = 50 +const R_MN10300_16 = 2 +const R_MN10300_24 = 9 +const R_MN10300_32 = 1 +const R_MN10300_8 = 3 +const R_MN10300_COPY = 20 +const R_MN10300_GLOB_DAT = 21 +const R_MN10300_GNU_VTENTRY = 8 +const R_MN10300_GNU_VTINHERIT = 7 +const R_MN10300_GOT16 = 19 +const R_MN10300_GOT24 = 18 +const R_MN10300_GOT32 = 17 +const R_MN10300_GOTOFF16 = 14 +const R_MN10300_GOTOFF24 = 13 +const R_MN10300_GOTOFF32 = 12 +const R_MN10300_GOTPC16 = 11 +const R_MN10300_GOTPC32 = 10 +const R_MN10300_JMP_SLOT = 22 +const R_MN10300_NONE = 0 +const R_MN10300_NUM = 24 +const R_MN10300_PCREL16 = 5 +const R_MN10300_PCREL32 = 4 +const R_MN10300_PCREL8 = 6 +const R_MN10300_PLT16 = 16 +const R_MN10300_PLT32 = 15 +const R_MN10300_RELATIVE = 23 +const R_NIOS2_ALIGN = 21 +const R_NIOS2_BFD_RELOC_16 = 13 +const R_NIOS2_BFD_RELOC_32 = 12 +const R_NIOS2_BFD_RELOC_8 = 14 +const R_NIOS2_CACHE_OPX = 6 +const R_NIOS2_CALL16 = 23 +const R_NIOS2_CALL26 = 4 +const R_NIOS2_CALL26_NOAT = 41 +const R_NIOS2_CALLR = 20 +const R_NIOS2_CALL_HA = 45 +const R_NIOS2_CALL_LO = 44 +const R_NIOS2_CJMP = 19 +const R_NIOS2_COPY = 36 +const R_NIOS2_GLOB_DAT = 37 +const R_NIOS2_GNU_VTENTRY = 17 +const R_NIOS2_GNU_VTINHERIT = 16 +const R_NIOS2_GOT16 = 22 +const R_NIOS2_GOTOFF = 40 +const R_NIOS2_GOTOFF_HA = 25 +const R_NIOS2_GOTOFF_LO = 24 +const R_NIOS2_GOT_HA = 43 +const R_NIOS2_GOT_LO = 42 +const R_NIOS2_GPREL = 15 +const R_NIOS2_HI16 = 9 +const R_NIOS2_HIADJ16 = 11 +const R_NIOS2_IMM5 = 5 +const R_NIOS2_IMM6 = 7 +const R_NIOS2_IMM8 = 8 +const R_NIOS2_JUMP_SLOT = 38 +const R_NIOS2_LO16 = 10 +const R_NIOS2_NONE = 0 +const R_NIOS2_PCREL16 = 3 +const R_NIOS2_PCREL_HA = 27 +const R_NIOS2_PCREL_LO = 26 +const R_NIOS2_RELATIVE = 39 +const R_NIOS2_S16 = 1 +const R_NIOS2_TLS_DTPMOD = 33 +const R_NIOS2_TLS_DTPREL = 34 +const R_NIOS2_TLS_GD16 = 28 +const R_NIOS2_TLS_IE16 = 31 +const R_NIOS2_TLS_LDM16 = 29 +const R_NIOS2_TLS_LDO16 = 30 +const R_NIOS2_TLS_LE16 = 32 +const R_NIOS2_TLS_TPREL = 35 +const R_NIOS2_U16 = 2 +const R_NIOS2_UJMP = 18 +const R_OR1K_16 = 2 +const R_OR1K_16_PCREL = 10 +const R_OR1K_32 = 1 +const R_OR1K_32_PCREL = 9 +const R_OR1K_8 = 3 +const R_OR1K_8_PCREL = 11 +const R_OR1K_COPY = 18 +const R_OR1K_GLOB_DAT = 19 +const R_OR1K_GNU_VTENTRY = 7 +const R_OR1K_GNU_VTINHERIT = 8 +const R_OR1K_GOT16 = 14 +const R_OR1K_GOTOFF_HI16 = 16 +const R_OR1K_GOTOFF_LO16 = 17 +const R_OR1K_GOTPC_HI16 = 12 +const R_OR1K_GOTPC_LO16 = 13 +const R_OR1K_HI_16_IN_INSN = 5 +const R_OR1K_INSN_REL_26 = 6 +const R_OR1K_JMP_SLOT = 20 +const R_OR1K_LO_16_IN_INSN = 4 +const R_OR1K_NONE = 0 +const R_OR1K_PLT26 = 15 +const R_OR1K_RELATIVE = 21 +const R_OR1K_TLS_DTPMOD = 34 +const R_OR1K_TLS_DTPOFF = 33 +const R_OR1K_TLS_GD_HI16 = 22 +const R_OR1K_TLS_GD_LO16 = 23 +const R_OR1K_TLS_IE_HI16 = 28 +const R_OR1K_TLS_IE_LO16 = 29 +const R_OR1K_TLS_LDM_HI16 = 24 +const R_OR1K_TLS_LDM_LO16 = 25 +const R_OR1K_TLS_LDO_HI16 = 26 +const R_OR1K_TLS_LDO_LO16 = 27 +const R_OR1K_TLS_LE_HI16 = 30 +const R_OR1K_TLS_LE_LO16 = 31 +const R_OR1K_TLS_TPOFF = 32 +const R_PARISC_COPY = 128 +const R_PARISC_DIR14DR = 84 +const R_PARISC_DIR14R = 6 +const R_PARISC_DIR14WR = 83 +const R_PARISC_DIR16DF = 87 +const R_PARISC_DIR16F = 85 +const R_PARISC_DIR16WF = 86 +const R_PARISC_DIR17F = 4 +const R_PARISC_DIR17R = 3 +const R_PARISC_DIR21L = 2 +const R_PARISC_DIR32 = 1 +const R_PARISC_DIR64 = 80 +const R_PARISC_DPREL14R = 22 +const R_PARISC_DPREL21L = 18 +const R_PARISC_EPLT = 130 +const R_PARISC_FPTR64 = 64 +const R_PARISC_GNU_VTENTRY = 232 +const R_PARISC_GNU_VTINHERIT = 233 +const R_PARISC_GPREL14DR = 92 +const R_PARISC_GPREL14R = 30 +const R_PARISC_GPREL14WR = 91 +const R_PARISC_GPREL16DF = 95 +const R_PARISC_GPREL16F = 93 +const R_PARISC_GPREL16WF = 94 +const R_PARISC_GPREL21L = 26 +const R_PARISC_GPREL64 = 88 +const R_PARISC_HIRESERVE = 255 +const R_PARISC_IPLT = 129 +const R_PARISC_LORESERVE = 128 +const R_PARISC_LTOFF14DR = 100 +const R_PARISC_LTOFF14R = 38 +const R_PARISC_LTOFF14WR = 99 +const R_PARISC_LTOFF16DF = 103 +const R_PARISC_LTOFF16F = 101 +const R_PARISC_LTOFF16WF = 102 +const R_PARISC_LTOFF21L = 34 +const R_PARISC_LTOFF64 = 96 +const R_PARISC_LTOFF_FPTR14DR = 124 +const R_PARISC_LTOFF_FPTR14R = 62 +const R_PARISC_LTOFF_FPTR14WR = 123 +const R_PARISC_LTOFF_FPTR16DF = 127 +const R_PARISC_LTOFF_FPTR16F = 125 +const R_PARISC_LTOFF_FPTR16WF = 126 +const R_PARISC_LTOFF_FPTR21L = 58 +const R_PARISC_LTOFF_FPTR32 = 57 +const R_PARISC_LTOFF_FPTR64 = 120 +const R_PARISC_LTOFF_TP14DR = 228 +const R_PARISC_LTOFF_TP14F = 167 +const R_PARISC_LTOFF_TP14R = 166 +const R_PARISC_LTOFF_TP14WR = 227 +const R_PARISC_LTOFF_TP16DF = 231 +const R_PARISC_LTOFF_TP16F = 229 +const R_PARISC_LTOFF_TP16WF = 230 +const R_PARISC_LTOFF_TP21L = 162 +const R_PARISC_LTOFF_TP64 = 224 +const R_PARISC_NONE = 0 +const R_PARISC_PCREL14DR = 76 +const R_PARISC_PCREL14R = 14 +const R_PARISC_PCREL14WR = 75 +const R_PARISC_PCREL16DF = 79 +const R_PARISC_PCREL16F = 77 +const R_PARISC_PCREL16WF = 78 +const R_PARISC_PCREL17F = 12 +const R_PARISC_PCREL17R = 11 +const R_PARISC_PCREL21L = 10 +const R_PARISC_PCREL22F = 74 +const R_PARISC_PCREL32 = 9 +const R_PARISC_PCREL64 = 72 +const R_PARISC_PLABEL14R = 70 +const R_PARISC_PLABEL21L = 66 +const R_PARISC_PLABEL32 = 65 +const R_PARISC_PLTOFF14DR = 116 +const R_PARISC_PLTOFF14R = 54 +const R_PARISC_PLTOFF14WR = 115 +const R_PARISC_PLTOFF16DF = 119 +const R_PARISC_PLTOFF16F = 117 +const R_PARISC_PLTOFF16WF = 118 +const R_PARISC_PLTOFF21L = 50 +const R_PARISC_SECREL32 = 41 +const R_PARISC_SECREL64 = 104 +const R_PARISC_SEGBASE = 48 +const R_PARISC_SEGREL32 = 49 +const R_PARISC_SEGREL64 = 112 +const R_PARISC_TLS_DTPMOD32 = 242 +const R_PARISC_TLS_DTPMOD64 = 243 +const R_PARISC_TLS_DTPOFF32 = 244 +const R_PARISC_TLS_DTPOFF64 = 245 +const R_PARISC_TLS_GD14R = 235 +const R_PARISC_TLS_GD21L = 234 +const R_PARISC_TLS_GDCALL = 236 +const R_PARISC_TLS_IE14R = 166 +const R_PARISC_TLS_IE21L = 162 +const R_PARISC_TLS_LDM14R = 238 +const R_PARISC_TLS_LDM21L = 237 +const R_PARISC_TLS_LDMCALL = 239 +const R_PARISC_TLS_LDO14R = 241 +const R_PARISC_TLS_LDO21L = 240 +const R_PARISC_TLS_LE14R = 158 +const R_PARISC_TLS_LE21L = 154 +const R_PARISC_TLS_TPREL32 = 153 +const R_PARISC_TLS_TPREL64 = 216 +const R_PARISC_TPREL14DR = 220 +const R_PARISC_TPREL14R = 158 +const R_PARISC_TPREL14WR = 219 +const R_PARISC_TPREL16DF = 223 +const R_PARISC_TPREL16F = 221 +const R_PARISC_TPREL16WF = 222 +const R_PARISC_TPREL21L = 154 +const R_PARISC_TPREL32 = 153 +const R_PARISC_TPREL64 = 216 +const R_PPC64_ADDR14 = 7 +const R_PPC64_ADDR14_BRNTAKEN = 9 +const R_PPC64_ADDR14_BRTAKEN = 8 +const R_PPC64_ADDR16 = 3 +const R_PPC64_ADDR16_DS = 56 +const R_PPC64_ADDR16_HA = 6 +const R_PPC64_ADDR16_HI = 5 +const R_PPC64_ADDR16_HIGH = 110 +const R_PPC64_ADDR16_HIGHA = 111 +const R_PPC64_ADDR16_HIGHER = 39 +const R_PPC64_ADDR16_HIGHERA = 40 +const R_PPC64_ADDR16_HIGHEST = 41 +const R_PPC64_ADDR16_HIGHESTA = 42 +const R_PPC64_ADDR16_LO = 4 +const R_PPC64_ADDR16_LO_DS = 57 +const R_PPC64_ADDR24 = 2 +const R_PPC64_ADDR30 = 37 +const R_PPC64_ADDR32 = 1 +const R_PPC64_ADDR64 = 38 +const R_PPC64_COPY = 19 +const R_PPC64_DTPMOD64 = 68 +const R_PPC64_DTPREL16 = 74 +const R_PPC64_DTPREL16_DS = 101 +const R_PPC64_DTPREL16_HA = 77 +const R_PPC64_DTPREL16_HI = 76 +const R_PPC64_DTPREL16_HIGH = 114 +const R_PPC64_DTPREL16_HIGHA = 115 +const R_PPC64_DTPREL16_HIGHER = 103 +const R_PPC64_DTPREL16_HIGHERA = 104 +const R_PPC64_DTPREL16_HIGHEST = 105 +const R_PPC64_DTPREL16_HIGHESTA = 106 +const R_PPC64_DTPREL16_LO = 75 +const R_PPC64_DTPREL16_LO_DS = 102 +const R_PPC64_DTPREL64 = 78 +const R_PPC64_GLOB_DAT = 20 +const R_PPC64_GOT16 = 14 +const R_PPC64_GOT16_DS = 58 +const R_PPC64_GOT16_HA = 17 +const R_PPC64_GOT16_HI = 16 +const R_PPC64_GOT16_LO = 15 +const R_PPC64_GOT16_LO_DS = 59 +const R_PPC64_GOT_DTPREL16_DS = 91 +const R_PPC64_GOT_DTPREL16_HA = 94 +const R_PPC64_GOT_DTPREL16_HI = 93 +const R_PPC64_GOT_DTPREL16_LO_DS = 92 +const R_PPC64_GOT_TLSGD16 = 79 +const R_PPC64_GOT_TLSGD16_HA = 82 +const R_PPC64_GOT_TLSGD16_HI = 81 +const R_PPC64_GOT_TLSGD16_LO = 80 +const R_PPC64_GOT_TLSLD16 = 83 +const R_PPC64_GOT_TLSLD16_HA = 86 +const R_PPC64_GOT_TLSLD16_HI = 85 +const R_PPC64_GOT_TLSLD16_LO = 84 +const R_PPC64_GOT_TPREL16_DS = 87 +const R_PPC64_GOT_TPREL16_HA = 90 +const R_PPC64_GOT_TPREL16_HI = 89 +const R_PPC64_GOT_TPREL16_LO_DS = 88 +const R_PPC64_IRELATIVE = 248 +const R_PPC64_JMP_IREL = 247 +const R_PPC64_JMP_SLOT = 21 +const R_PPC64_NONE = 0 +const R_PPC64_PLT16_HA = 31 +const R_PPC64_PLT16_HI = 30 +const R_PPC64_PLT16_LO = 29 +const R_PPC64_PLT16_LO_DS = 60 +const R_PPC64_PLT32 = 27 +const R_PPC64_PLT64 = 45 +const R_PPC64_PLTGOT16 = 52 +const R_PPC64_PLTGOT16_DS = 65 +const R_PPC64_PLTGOT16_HA = 55 +const R_PPC64_PLTGOT16_HI = 54 +const R_PPC64_PLTGOT16_LO = 53 +const R_PPC64_PLTGOT16_LO_DS = 66 +const R_PPC64_PLTREL32 = 28 +const R_PPC64_PLTREL64 = 46 +const R_PPC64_REL14 = 11 +const R_PPC64_REL14_BRNTAKEN = 13 +const R_PPC64_REL14_BRTAKEN = 12 +const R_PPC64_REL16 = 249 +const R_PPC64_REL16_HA = 252 +const R_PPC64_REL16_HI = 251 +const R_PPC64_REL16_LO = 250 +const R_PPC64_REL24 = 10 +const R_PPC64_REL32 = 26 +const R_PPC64_REL64 = 44 +const R_PPC64_RELATIVE = 22 +const R_PPC64_SECTOFF = 33 +const R_PPC64_SECTOFF_DS = 61 +const R_PPC64_SECTOFF_HA = 36 +const R_PPC64_SECTOFF_HI = 35 +const R_PPC64_SECTOFF_LO = 34 +const R_PPC64_SECTOFF_LO_DS = 62 +const R_PPC64_TLS = 67 +const R_PPC64_TLSGD = 107 +const R_PPC64_TLSLD = 108 +const R_PPC64_TOC = 51 +const R_PPC64_TOC16 = 47 +const R_PPC64_TOC16_DS = 63 +const R_PPC64_TOC16_HA = 50 +const R_PPC64_TOC16_HI = 49 +const R_PPC64_TOC16_LO = 48 +const R_PPC64_TOC16_LO_DS = 64 +const R_PPC64_TOCSAVE = 109 +const R_PPC64_TPREL16 = 69 +const R_PPC64_TPREL16_DS = 95 +const R_PPC64_TPREL16_HA = 72 +const R_PPC64_TPREL16_HI = 71 +const R_PPC64_TPREL16_HIGH = 112 +const R_PPC64_TPREL16_HIGHA = 113 +const R_PPC64_TPREL16_HIGHER = 97 +const R_PPC64_TPREL16_HIGHERA = 98 +const R_PPC64_TPREL16_HIGHEST = 99 +const R_PPC64_TPREL16_HIGHESTA = 100 +const R_PPC64_TPREL16_LO = 70 +const R_PPC64_TPREL16_LO_DS = 96 +const R_PPC64_TPREL64 = 73 +const R_PPC64_UADDR16 = 25 +const R_PPC64_UADDR32 = 24 +const R_PPC64_UADDR64 = 43 +const R_PPC_ADDR14 = 7 +const R_PPC_ADDR14_BRNTAKEN = 9 +const R_PPC_ADDR14_BRTAKEN = 8 +const R_PPC_ADDR16 = 3 +const R_PPC_ADDR16_HA = 6 +const R_PPC_ADDR16_HI = 5 +const R_PPC_ADDR16_LO = 4 +const R_PPC_ADDR24 = 2 +const R_PPC_ADDR32 = 1 +const R_PPC_COPY = 19 +const R_PPC_DIAB_RELSDA_HA = 185 +const R_PPC_DIAB_RELSDA_HI = 184 +const R_PPC_DIAB_RELSDA_LO = 183 +const R_PPC_DIAB_SDA21_HA = 182 +const R_PPC_DIAB_SDA21_HI = 181 +const R_PPC_DIAB_SDA21_LO = 180 +const R_PPC_DTPMOD32 = 68 +const R_PPC_DTPREL16 = 74 +const R_PPC_DTPREL16_HA = 77 +const R_PPC_DTPREL16_HI = 76 +const R_PPC_DTPREL16_LO = 75 +const R_PPC_DTPREL32 = 78 +const R_PPC_EMB_BIT_FLD = 115 +const R_PPC_EMB_MRKREF = 110 +const R_PPC_EMB_NADDR16 = 102 +const R_PPC_EMB_NADDR16_HA = 105 +const R_PPC_EMB_NADDR16_HI = 104 +const R_PPC_EMB_NADDR16_LO = 103 +const R_PPC_EMB_NADDR32 = 101 +const R_PPC_EMB_RELSDA = 116 +const R_PPC_EMB_RELSEC16 = 111 +const R_PPC_EMB_RELST_HA = 114 +const R_PPC_EMB_RELST_HI = 113 +const R_PPC_EMB_RELST_LO = 112 +const R_PPC_EMB_SDA21 = 109 +const R_PPC_EMB_SDA2I16 = 107 +const R_PPC_EMB_SDA2REL = 108 +const R_PPC_EMB_SDAI16 = 106 +const R_PPC_GLOB_DAT = 20 +const R_PPC_GOT16 = 14 +const R_PPC_GOT16_HA = 17 +const R_PPC_GOT16_HI = 16 +const R_PPC_GOT16_LO = 15 +const R_PPC_GOT_DTPREL16 = 91 +const R_PPC_GOT_DTPREL16_HA = 94 +const R_PPC_GOT_DTPREL16_HI = 93 +const R_PPC_GOT_DTPREL16_LO = 92 +const R_PPC_GOT_TLSGD16 = 79 +const R_PPC_GOT_TLSGD16_HA = 82 +const R_PPC_GOT_TLSGD16_HI = 81 +const R_PPC_GOT_TLSGD16_LO = 80 +const R_PPC_GOT_TLSLD16 = 83 +const R_PPC_GOT_TLSLD16_HA = 86 +const R_PPC_GOT_TLSLD16_HI = 85 +const R_PPC_GOT_TLSLD16_LO = 84 +const R_PPC_GOT_TPREL16 = 87 +const R_PPC_GOT_TPREL16_HA = 90 +const R_PPC_GOT_TPREL16_HI = 89 +const R_PPC_GOT_TPREL16_LO = 88 +const R_PPC_IRELATIVE = 248 +const R_PPC_JMP_SLOT = 21 +const R_PPC_LOCAL24PC = 23 +const R_PPC_NONE = 0 +const R_PPC_PLT16_HA = 31 +const R_PPC_PLT16_HI = 30 +const R_PPC_PLT16_LO = 29 +const R_PPC_PLT32 = 27 +const R_PPC_PLTREL24 = 18 +const R_PPC_PLTREL32 = 28 +const R_PPC_REL14 = 11 +const R_PPC_REL14_BRNTAKEN = 13 +const R_PPC_REL14_BRTAKEN = 12 +const R_PPC_REL16 = 249 +const R_PPC_REL16_HA = 252 +const R_PPC_REL16_HI = 251 +const R_PPC_REL16_LO = 250 +const R_PPC_REL24 = 10 +const R_PPC_REL32 = 26 +const R_PPC_RELATIVE = 22 +const R_PPC_SDAREL16 = 32 +const R_PPC_SECTOFF = 33 +const R_PPC_SECTOFF_HA = 36 +const R_PPC_SECTOFF_HI = 35 +const R_PPC_SECTOFF_LO = 34 +const R_PPC_TLS = 67 +const R_PPC_TLSGD = 95 +const R_PPC_TLSLD = 96 +const R_PPC_TOC16 = 255 +const R_PPC_TPREL16 = 69 +const R_PPC_TPREL16_HA = 72 +const R_PPC_TPREL16_HI = 71 +const R_PPC_TPREL16_LO = 70 +const R_PPC_TPREL32 = 73 +const R_PPC_UADDR16 = 25 +const R_PPC_UADDR32 = 24 +const R_RISCV_32 = 1 +const R_RISCV_32_PCREL = 57 +const R_RISCV_64 = 2 +const R_RISCV_ADD16 = 34 +const R_RISCV_ADD32 = 35 +const R_RISCV_ADD64 = 36 +const R_RISCV_ADD8 = 33 +const R_RISCV_ALIGN = 43 +const R_RISCV_BRANCH = 16 +const R_RISCV_CALL = 18 +const R_RISCV_CALL_PLT = 19 +const R_RISCV_COPY = 4 +const R_RISCV_GOT32_PCREL = 41 +const R_RISCV_GOT_HI20 = 20 +const R_RISCV_HI20 = 26 +const R_RISCV_IRELATIVE = 58 +const R_RISCV_JAL = 17 +const R_RISCV_JUMP_SLOT = 5 +const R_RISCV_LO12_I = 27 +const R_RISCV_LO12_S = 28 +const R_RISCV_NONE = 0 +const R_RISCV_PCREL_HI20 = 23 +const R_RISCV_PCREL_LO12_I = 24 +const R_RISCV_PCREL_LO12_S = 25 +const R_RISCV_PLT32 = 59 +const R_RISCV_RELATIVE = 3 +const R_RISCV_RELAX = 51 +const R_RISCV_RVC_BRANCH = 44 +const R_RISCV_RVC_JUMP = 45 +const R_RISCV_RVC_LUI = 46 +const R_RISCV_SET16 = 55 +const R_RISCV_SET32 = 56 +const R_RISCV_SET6 = 53 +const R_RISCV_SET8 = 54 +const R_RISCV_SET_ULEB128 = 60 +const R_RISCV_SUB16 = 38 +const R_RISCV_SUB32 = 39 +const R_RISCV_SUB6 = 52 +const R_RISCV_SUB64 = 40 +const R_RISCV_SUB8 = 37 +const R_RISCV_SUB_ULEB128 = 61 +const R_RISCV_TLSDESC = 12 +const R_RISCV_TLSDESC_ADD_LO12 = 64 +const R_RISCV_TLSDESC_CALL = 65 +const R_RISCV_TLSDESC_HI20 = 62 +const R_RISCV_TLSDESC_LOAD_LO12 = 63 +const R_RISCV_TLS_DTPMOD32 = 6 +const R_RISCV_TLS_DTPMOD64 = 7 +const R_RISCV_TLS_DTPREL32 = 8 +const R_RISCV_TLS_DTPREL64 = 9 +const R_RISCV_TLS_GD_HI20 = 22 +const R_RISCV_TLS_GOT_HI20 = 21 +const R_RISCV_TLS_TPREL32 = 10 +const R_RISCV_TLS_TPREL64 = 11 +const R_RISCV_TPREL_ADD = 32 +const R_RISCV_TPREL_HI20 = 29 +const R_RISCV_TPREL_LO12_I = 30 +const R_RISCV_TPREL_LO12_S = 31 +const R_SH_ALIGN = 29 +const R_SH_CODE = 30 +const R_SH_COPY = 162 +const R_SH_COUNT = 28 +const R_SH_DATA = 31 +const R_SH_DIR32 = 1 +const R_SH_DIR8BP = 7 +const R_SH_DIR8L = 9 +const R_SH_DIR8W = 8 +const R_SH_DIR8WPL = 5 +const R_SH_DIR8WPN = 3 +const R_SH_DIR8WPZ = 6 +const R_SH_FUNCDESC = 207 +const R_SH_FUNCDESC_VALUE = 208 +const R_SH_GLOB_DAT = 163 +const R_SH_GNU_VTENTRY = 35 +const R_SH_GNU_VTINHERIT = 34 +const R_SH_GOT20 = 201 +const R_SH_GOT32 = 160 +const R_SH_GOTFUNCDESC = 203 +const R_SH_GOTFUNCDEST20 = 204 +const R_SH_GOTOFF = 166 +const R_SH_GOTOFF20 = 202 +const R_SH_GOTOFFFUNCDESC = 205 +const R_SH_GOTOFFFUNCDEST20 = 206 +const R_SH_GOTPC = 167 +const R_SH_IND12W = 4 +const R_SH_JMP_SLOT = 164 +const R_SH_LABEL = 32 +const R_SH_NONE = 0 +const R_SH_NUM = 256 +const R_SH_PLT32 = 161 +const R_SH_REL32 = 2 +const R_SH_RELATIVE = 165 +const R_SH_SWITCH16 = 25 +const R_SH_SWITCH32 = 26 +const R_SH_SWITCH8 = 33 +const R_SH_TLS_DTPMOD32 = 149 +const R_SH_TLS_DTPOFF32 = 150 +const R_SH_TLS_GD_32 = 144 +const R_SH_TLS_IE_32 = 147 +const R_SH_TLS_LDO_32 = 146 +const R_SH_TLS_LD_32 = 145 +const R_SH_TLS_LE_32 = 148 +const R_SH_TLS_TPOFF32 = 151 +const R_SH_USES = 27 +const R_SPARC_10 = 30 +const R_SPARC_11 = 31 +const R_SPARC_13 = 11 +const R_SPARC_16 = 2 +const R_SPARC_22 = 10 +const R_SPARC_32 = 3 +const R_SPARC_5 = 44 +const R_SPARC_6 = 45 +const R_SPARC_64 = 32 +const R_SPARC_7 = 43 +const R_SPARC_8 = 1 +const R_SPARC_COPY = 19 +const R_SPARC_DISP16 = 5 +const R_SPARC_DISP32 = 6 +const R_SPARC_DISP64 = 46 +const R_SPARC_DISP8 = 4 +const R_SPARC_GLOB_DAT = 20 +const R_SPARC_GLOB_JMP = 42 +const R_SPARC_GNU_VTENTRY = 251 +const R_SPARC_GNU_VTINHERIT = 250 +const R_SPARC_GOT10 = 13 +const R_SPARC_GOT13 = 14 +const R_SPARC_GOT22 = 15 +const R_SPARC_GOTDATA_HIX22 = 80 +const R_SPARC_GOTDATA_LOX10 = 81 +const R_SPARC_GOTDATA_OP = 84 +const R_SPARC_GOTDATA_OP_HIX22 = 82 +const R_SPARC_GOTDATA_OP_LOX10 = 83 +const R_SPARC_H34 = 85 +const R_SPARC_H44 = 50 +const R_SPARC_HH22 = 34 +const R_SPARC_HI22 = 9 +const R_SPARC_HIPLT22 = 25 +const R_SPARC_HIX22 = 48 +const R_SPARC_HM10 = 35 +const R_SPARC_JMP_SLOT = 21 +const R_SPARC_L44 = 52 +const R_SPARC_LM22 = 36 +const R_SPARC_LO10 = 12 +const R_SPARC_LOPLT10 = 26 +const R_SPARC_LOX10 = 49 +const R_SPARC_M44 = 51 +const R_SPARC_NONE = 0 +const R_SPARC_NUM = 253 +const R_SPARC_OLO10 = 33 +const R_SPARC_PC10 = 16 +const R_SPARC_PC22 = 17 +const R_SPARC_PCPLT10 = 29 +const R_SPARC_PCPLT22 = 28 +const R_SPARC_PCPLT32 = 27 +const R_SPARC_PC_HH22 = 37 +const R_SPARC_PC_HM10 = 38 +const R_SPARC_PC_LM22 = 39 +const R_SPARC_PLT32 = 24 +const R_SPARC_PLT64 = 47 +const R_SPARC_REGISTER = 53 +const R_SPARC_RELATIVE = 22 +const R_SPARC_REV32 = 252 +const R_SPARC_SIZE32 = 86 +const R_SPARC_SIZE64 = 87 +const R_SPARC_TLS_DTPMOD32 = 74 +const R_SPARC_TLS_DTPMOD64 = 75 +const R_SPARC_TLS_DTPOFF32 = 76 +const R_SPARC_TLS_DTPOFF64 = 77 +const R_SPARC_TLS_GD_ADD = 58 +const R_SPARC_TLS_GD_CALL = 59 +const R_SPARC_TLS_GD_HI22 = 56 +const R_SPARC_TLS_GD_LO10 = 57 +const R_SPARC_TLS_IE_ADD = 71 +const R_SPARC_TLS_IE_HI22 = 67 +const R_SPARC_TLS_IE_LD = 69 +const R_SPARC_TLS_IE_LDX = 70 +const R_SPARC_TLS_IE_LO10 = 68 +const R_SPARC_TLS_LDM_ADD = 62 +const R_SPARC_TLS_LDM_CALL = 63 +const R_SPARC_TLS_LDM_HI22 = 60 +const R_SPARC_TLS_LDM_LO10 = 61 +const R_SPARC_TLS_LDO_ADD = 66 +const R_SPARC_TLS_LDO_HIX22 = 64 +const R_SPARC_TLS_LDO_LOX10 = 65 +const R_SPARC_TLS_LE_HIX22 = 72 +const R_SPARC_TLS_LE_LOX10 = 73 +const R_SPARC_TLS_TPOFF32 = 78 +const R_SPARC_TLS_TPOFF64 = 79 +const R_SPARC_UA16 = 55 +const R_SPARC_UA32 = 23 +const R_SPARC_UA64 = 54 +const R_SPARC_WDISP16 = 40 +const R_SPARC_WDISP19 = 41 +const R_SPARC_WDISP22 = 8 +const R_SPARC_WDISP30 = 7 +const R_SPARC_WPLT30 = 18 +const R_X86_64_16 = 12 +const R_X86_64_32 = 10 +const R_X86_64_32S = 11 +const R_X86_64_64 = 1 +const R_X86_64_8 = 14 +const R_X86_64_COPY = 5 +const R_X86_64_DTPMOD64 = 16 +const R_X86_64_DTPOFF32 = 21 +const R_X86_64_DTPOFF64 = 17 +const R_X86_64_GLOB_DAT = 6 +const R_X86_64_GOT32 = 3 +const R_X86_64_GOT64 = 27 +const R_X86_64_GOTOFF64 = 25 +const R_X86_64_GOTPC32 = 26 +const R_X86_64_GOTPC32_TLSDESC = 34 +const R_X86_64_GOTPC64 = 29 +const R_X86_64_GOTPCREL = 9 +const R_X86_64_GOTPCREL64 = 28 +const R_X86_64_GOTPCRELX = 41 +const R_X86_64_GOTPLT64 = 30 +const R_X86_64_GOTTPOFF = 22 +const R_X86_64_IRELATIVE = 37 +const R_X86_64_JUMP_SLOT = 7 +const R_X86_64_NONE = 0 +const R_X86_64_NUM = 43 +const R_X86_64_PC16 = 13 +const R_X86_64_PC32 = 2 +const R_X86_64_PC64 = 24 +const R_X86_64_PC8 = 15 +const R_X86_64_PLT32 = 4 +const R_X86_64_PLTOFF64 = 31 +const R_X86_64_RELATIVE = 8 +const R_X86_64_RELATIVE64 = 38 +const R_X86_64_REX_GOTPCRELX = 42 +const R_X86_64_SIZE32 = 32 +const R_X86_64_SIZE64 = 33 +const R_X86_64_TLSDESC = 36 +const R_X86_64_TLSDESC_CALL = 35 +const R_X86_64_TLSGD = 19 +const R_X86_64_TLSLD = 20 +const R_X86_64_TPOFF32 = 23 +const R_X86_64_TPOFF64 = 18 +const SA_EXPOSE_TAGBITS = 2048 +const SA_NOCLDSTOP = 1 +const SA_NOCLDWAIT = 2 +const SA_NODEFER = 1073741824 +const SA_ONSTACK = 134217728 +const SA_RESETHAND = 2147483648 +const SA_RESTART = 268435456 +const SA_RESTORER = 67108864 +const SA_SIGINFO = 4 +const SA_UNSUPPORTED = 1024 +const SCM_TIMESTAMPING_OLD = 37 +const SCM_TIMESTAMPNS_OLD = 35 +const SCM_TIMESTAMP_OLD = 29 +const SEGV_ACCERR = 2 +const SEGV_BNDERR = 3 +const SEGV_MAPERR = 1 +const SEGV_MTEAERR = 8 +const SEGV_MTESERR = 9 +const SEGV_PKUERR = 4 +const SELFMAG = 4 +const SHF_ALLOC = 2 +const SHF_ALPHA_GPREL = 268435456 +const SHF_ARM_COMDEF = 2147483648 +const SHF_ARM_ENTRYSECT = 268435456 +const SHF_COMPRESSED = 2048 +const SHF_EXCLUDE = 2147483648 +const SHF_EXECINSTR = 4 +const SHF_GROUP = 512 +const SHF_IA_64_NORECOV = 536870912 +const SHF_IA_64_SHORT = 268435456 +const SHF_INFO_LINK = 64 +const SHF_LINK_ORDER = 128 +const SHF_MASKOS = 267386880 +const SHF_MASKPROC = 4026531840 +const SHF_MERGE = 16 +const SHF_MIPS_ADDR = 1073741824 +const SHF_MIPS_GPREL = 268435456 +const SHF_MIPS_LOCAL = 67108864 +const SHF_MIPS_MERGE = 536870912 +const SHF_MIPS_NAMES = 33554432 +const SHF_MIPS_NODUPE = 16777216 +const SHF_MIPS_NOSTRIP = 134217728 +const SHF_MIPS_STRINGS = 2147483648 +const SHF_ORDERED = 1073741824 +const SHF_OS_NONCONFORMING = 256 +const SHF_PARISC_HUGE = 1073741824 +const SHF_PARISC_SBP = 2147483648 +const SHF_PARISC_SHORT = 536870912 +const SHF_STRINGS = 32 +const SHF_TLS = 1024 +const SHF_WRITE = 1 +const SHN_ABS = 65521 +const SHN_AFTER = 65281 +const SHN_BEFORE = 65280 +const SHN_COMMON = 65522 +const SHN_HIOS = 65343 +const SHN_HIPROC = 65311 +const SHN_HIRESERVE = 65535 +const SHN_LOOS = 65312 +const SHN_LOPROC = 65280 +const SHN_LORESERVE = 65280 +const SHN_MIPS_ACOMMON = 65280 +const SHN_MIPS_DATA = 65282 +const SHN_MIPS_SCOMMON = 65283 +const SHN_MIPS_SUNDEFINED = 65284 +const SHN_MIPS_TEXT = 65281 +const SHN_PARISC_ANSI_COMMON = 65280 +const SHN_PARISC_HUGE_COMMON = 65281 +const SHN_UNDEF = 0 +const SHN_XINDEX = 65535 +const SHT_ALPHA_DEBUG = 1879048193 +const SHT_ALPHA_REGINFO = 1879048194 +const SHT_ARM_ATTRIBUTES = 1879048195 +const SHT_ARM_EXIDX = 1879048193 +const SHT_ARM_PREEMPTMAP = 1879048194 +const SHT_CHECKSUM = 1879048184 +const SHT_DYNAMIC = 6 +const SHT_DYNSYM = 11 +const SHT_FINI_ARRAY = 15 +const SHT_GNU_ATTRIBUTES = 1879048181 +const SHT_GNU_HASH = 1879048182 +const SHT_GNU_LIBLIST = 1879048183 +const SHT_GNU_verdef = 1879048189 +const SHT_GNU_verneed = 1879048190 +const SHT_GNU_versym = 1879048191 +const SHT_GROUP = 17 +const SHT_HASH = 5 +const SHT_HIOS = 1879048191 +const SHT_HIPROC = 2147483647 +const SHT_HISUNW = 1879048191 +const SHT_HIUSER = 2415919103 +const SHT_IA_64_EXT = 1879048192 +const SHT_IA_64_UNWIND = 1879048193 +const SHT_INIT_ARRAY = 14 +const SHT_LOOS = 1610612736 +const SHT_LOPROC = 1879048192 +const SHT_LOSUNW = 1879048186 +const SHT_LOUSER = 2147483648 +const SHT_MIPS_AUXSYM = 1879048214 +const SHT_MIPS_CONFLICT = 1879048194 +const SHT_MIPS_CONTENT = 1879048204 +const SHT_MIPS_DEBUG = 1879048197 +const SHT_MIPS_DELTACLASS = 1879048221 +const SHT_MIPS_DELTADECL = 1879048223 +const SHT_MIPS_DELTAINST = 1879048220 +const SHT_MIPS_DELTASYM = 1879048219 +const SHT_MIPS_DENSE = 1879048211 +const SHT_MIPS_DWARF = 1879048222 +const SHT_MIPS_EH_REGION = 1879048231 +const SHT_MIPS_EVENTS = 1879048225 +const SHT_MIPS_EXTSYM = 1879048210 +const SHT_MIPS_FDESC = 1879048209 +const SHT_MIPS_GPTAB = 1879048195 +const SHT_MIPS_IFACE = 1879048203 +const SHT_MIPS_LIBLIST = 1879048192 +const SHT_MIPS_LINE = 1879048217 +const SHT_MIPS_LOCSTR = 1879048216 +const SHT_MIPS_LOCSYM = 1879048213 +const SHT_MIPS_MSYM = 1879048193 +const SHT_MIPS_OPTIONS = 1879048205 +const SHT_MIPS_OPTSYM = 1879048215 +const SHT_MIPS_PACKAGE = 1879048199 +const SHT_MIPS_PACKSYM = 1879048200 +const SHT_MIPS_PDESC = 1879048212 +const SHT_MIPS_PDR_EXCEPTION = 1879048233 +const SHT_MIPS_PIXIE = 1879048227 +const SHT_MIPS_REGINFO = 1879048198 +const SHT_MIPS_RELD = 1879048201 +const SHT_MIPS_RFDESC = 1879048218 +const SHT_MIPS_SHDR = 1879048208 +const SHT_MIPS_SYMBOL_LIB = 1879048224 +const SHT_MIPS_TRANSLATE = 1879048226 +const SHT_MIPS_UCODE = 1879048196 +const SHT_MIPS_WHIRL = 1879048230 +const SHT_MIPS_XLATE = 1879048228 +const SHT_MIPS_XLATE_DEBUG = 1879048229 +const SHT_MIPS_XLATE_OLD = 1879048232 +const SHT_NOBITS = 8 +const SHT_NOTE = 7 +const SHT_NULL = 0 +const SHT_NUM = 20 +const SHT_PARISC_DOC = 1879048194 +const SHT_PARISC_EXT = 1879048192 +const SHT_PARISC_UNWIND = 1879048193 +const SHT_PREINIT_ARRAY = 16 +const SHT_PROGBITS = 1 +const SHT_REL = 9 +const SHT_RELA = 4 +const SHT_RELR = 19 +const SHT_SHLIB = 10 +const SHT_STRTAB = 3 +const SHT_SUNW_COMDAT = 1879048187 +const SHT_SUNW_move = 1879048186 +const SHT_SUNW_syminfo = 1879048188 +const SHT_SYMTAB = 2 +const SHT_SYMTAB_SHNDX = 18 +const SIGABRT = 6 +const SIGALRM = 14 +const SIGBUS = 7 +const SIGCHLD = 17 +const SIGCONT = 18 +const SIGEV_NONE = 1 +const SIGEV_SIGNAL = 0 +const SIGEV_THREAD = 2 +const SIGEV_THREAD_ID = 4 +const SIGFPE = 8 +const SIGHUP = 1 +const SIGILL = 4 +const SIGINT = 2 +const SIGIO = 29 +const SIGIOT = 6 +const SIGKILL = 9 +const SIGPIPE = 13 +const SIGPOLL = 29 +const SIGPROF = 27 +const SIGPWR = 30 +const SIGQUIT = 3 +const SIGRTMAX = 0 +const SIGRTMIN = 0 +const SIGSEGV = 11 +const SIGSTKFLT = 16 +const SIGSTKSZ = 10240 +const SIGSTOP = 19 +const SIGSYS = 31 +const SIGTERM = 15 +const SIGTRAP = 5 +const SIGTSTP = 20 +const SIGTTIN = 21 +const SIGTTOU = 22 +const SIGUNUSED = 31 +const SIGURG = 23 +const SIGUSR1 = 10 +const SIGUSR2 = 12 +const SIGVTALRM = 26 +const SIGWINCH = 28 +const SIGXCPU = 24 +const SIGXFSZ = 25 +const SIG_BLOCK = 0 +const SIG_SETMASK = 2 +const SIG_UNBLOCK = 1 +const SIOCGSTAMPNS_OLD = 35079 +const SIOCGSTAMP_OLD = 35078 +const SI_ASYNCIO = -4 +const SI_ASYNCNL = -60 +const SI_KERNEL = 128 +const SI_MESGQ = -3 +const SI_QUEUE = -1 +const SI_SIGIO = -5 +const SI_TIMER = -2 +const SI_TKILL = -6 +const SI_USER = 0 +const SO_RCVTIMEO_OLD = 20 +const SO_SNDTIMEO_OLD = 21 +const SO_TIMESTAMPING_OLD = 37 +const SO_TIMESTAMPNS_OLD = 35 +const SO_TIMESTAMP_OLD = 29 +const SS_AUTODISARM = 2147483648 +const SS_DISABLE = 2 +const SS_FLAG_BITS = 2147483648 +const SS_ONSTACK = 1 +const STB_GLOBAL = 1 +const STB_GNU_UNIQUE = 10 +const STB_HIOS = 12 +const STB_HIPROC = 15 +const STB_LOCAL = 0 +const STB_LOOS = 10 +const STB_LOPROC = 13 +const STB_MIPS_SPLIT_COMMON = 13 +const STB_NUM = 3 +const STB_WEAK = 2 +const STN_UNDEF = 0 +const STO_ALPHA_NOPV = 128 +const STO_ALPHA_STD_GPLOAD = 136 +const STO_MIPS_DEFAULT = 0 +const STO_MIPS_HIDDEN = 2 +const STO_MIPS_INTERNAL = 1 +const STO_MIPS_PLT = 8 +const STO_MIPS_PROTECTED = 3 +const STO_MIPS_SC_ALIGN_UNUSED = 255 +const STO_PPC64_LOCAL_BIT = 5 +const STO_PPC64_LOCAL_MASK = 224 +const STT_ARM_16BIT = 15 +const STT_ARM_TFUNC = 13 +const STT_COMMON = 5 +const STT_FILE = 4 +const STT_FUNC = 2 +const STT_GNU_IFUNC = 10 +const STT_HIOS = 12 +const STT_HIPROC = 15 +const STT_HP_OPAQUE = 11 +const STT_HP_STUB = 12 +const STT_LOOS = 10 +const STT_LOPROC = 13 +const STT_NOTYPE = 0 +const STT_NUM = 7 +const STT_OBJECT = 1 +const STT_PARISC_MILLICODE = 13 +const STT_SECTION = 3 +const STT_SPARC_REGISTER = 13 +const STT_TLS = 6 +const STV_DEFAULT = 0 +const STV_HIDDEN = 2 +const STV_INTERNAL = 1 +const STV_PROTECTED = 3 +const SYMINFO_BT_LOWRESERVE = 65280 +const SYMINFO_BT_PARENT = 65534 +const SYMINFO_BT_SELF = 65535 +const SYMINFO_CURRENT = 1 +const SYMINFO_FLG_COPY = 4 +const SYMINFO_FLG_DIRECT = 1 +const SYMINFO_FLG_LAZYLOAD = 8 +const SYMINFO_FLG_PASSTHRU = 2 +const SYMINFO_NONE = 0 +const SYMINFO_NUM = 2 +const SYSCALL_MMAP2_UNIT = 4096 +const SYSCALL_RLIM_INFINITY = 18446744073709551615 +const SYS__llseek = 140 +const SYS__newselect = 142 +const SYS__sysctl = 149 +const SYS_accept = 330 +const SYS_accept4 = 344 +const SYS_access = 33 +const SYS_acct = 51 +const SYS_add_key = 269 +const SYS_adjtimex = 124 +const SYS_afs_syscall = 137 +const SYS_alarm = 27 +const SYS_bdflush = 134 +const SYS_bind = 327 +const SYS_bpf = 361 +const SYS_break = 17 +const SYS_brk = 45 +const SYS_cachestat = 451 +const SYS_capget = 183 +const SYS_capset = 184 +const SYS_chdir = 12 +const SYS_chmod = 15 +const SYS_chown = 181 +const SYS_chroot = 61 +const SYS_clock_adjtime = 347 +const SYS_clock_getres = 247 +const SYS_clock_gettime = 246 +const SYS_clock_nanosleep = 248 +const SYS_clock_settime = 245 +const SYS_clone = 120 +const SYS_clone3 = 435 +const SYS_close = 6 +const SYS_close_range = 436 +const SYS_connect = 328 +const SYS_copy_file_range = 379 +const SYS_creat = 8 +const SYS_create_module = 127 +const SYS_delete_module = 129 +const SYS_dup = 41 +const SYS_dup2 = 63 +const SYS_dup3 = 316 +const SYS_epoll_create = 236 +const SYS_epoll_create1 = 315 +const SYS_epoll_ctl = 237 +const SYS_epoll_pwait = 303 +const SYS_epoll_pwait2 = 441 +const SYS_epoll_wait = 238 +const SYS_eventfd = 307 +const SYS_eventfd2 = 314 +const SYS_execve = 11 +const SYS_execveat = 362 +const SYS_exit = 1 +const SYS_exit_group = 234 +const SYS_faccessat = 298 +const SYS_faccessat2 = 439 +const SYS_fadvise64 = 233 +const SYS_fallocate = 309 +const SYS_fanotify_init = 323 +const SYS_fanotify_mark = 324 +const SYS_fchdir = 133 +const SYS_fchmod = 94 +const SYS_fchmodat = 297 +const SYS_fchmodat2 = 452 +const SYS_fchown = 95 +const SYS_fchownat = 289 +const SYS_fcntl = 55 +const SYS_fdatasync = 148 +const SYS_fgetxattr = 214 +const SYS_finit_module = 353 +const SYS_flistxattr = 217 +const SYS_flock = 143 +const SYS_fork = 2 +const SYS_fremovexattr = 220 +const SYS_fsconfig = 431 +const SYS_fsetxattr = 211 +const SYS_fsmount = 432 +const SYS_fsopen = 430 +const SYS_fspick = 433 +const SYS_fstat = 108 +const SYS_fstatfs64 = 253 +const SYS_fsync = 118 +const SYS_ftime = 35 +const SYS_ftruncate = 93 +const SYS_futex = 221 +const SYS_futex_waitv = 449 +const SYS_futimesat = 290 +const SYS_get_kernel_syms = 130 +const SYS_get_mempolicy = 260 +const SYS_get_robust_list = 299 +const SYS_getcpu = 302 +const SYS_getcwd = 182 +const SYS_getdents64 = 202 +const SYS_getegid = 50 +const SYS_geteuid = 49 +const SYS_getgid = 47 +const SYS_getgroups = 80 +const SYS_getitimer = 105 +const SYS_getpeername = 332 +const SYS_getpgid = 132 +const SYS_getpgrp = 65 +const SYS_getpid = 20 +const SYS_getpmsg = 187 +const SYS_getppid = 64 +const SYS_getpriority = 96 +const SYS_getrandom = 359 +const SYS_getresgid = 170 +const SYS_getresuid = 165 +const SYS_getrusage = 77 +const SYS_getsid = 147 +const SYS_getsockname = 331 +const SYS_getsockopt = 340 +const SYS_gettid = 207 +const SYS_gettimeofday = 78 +const SYS_getuid = 24 +const SYS_getxattr = 212 +const SYS_gtty = 32 +const SYS_idle = 112 +const SYS_init_module = 128 +const SYS_inotify_add_watch = 276 +const SYS_inotify_init = 275 +const SYS_inotify_init1 = 318 +const SYS_inotify_rm_watch = 277 +const SYS_io_cancel = 231 +const SYS_io_destroy = 228 +const SYS_io_getevents = 229 +const SYS_io_pgetevents = 388 +const SYS_io_setup = 227 +const SYS_io_submit = 230 +const SYS_io_uring_enter = 426 +const SYS_io_uring_register = 427 +const SYS_io_uring_setup = 425 +const SYS_ioctl = 54 +const SYS_ioperm = 101 +const SYS_iopl = 110 +const SYS_ioprio_get = 274 +const SYS_ioprio_set = 273 +const SYS_ipc = 117 +const SYS_kcmp = 354 +const SYS_kexec_file_load = 382 +const SYS_kexec_load = 268 +const SYS_keyctl = 271 +const SYS_kill = 37 +const SYS_landlock_add_rule = 445 +const SYS_landlock_create_ruleset = 444 +const SYS_landlock_restrict_self = 446 +const SYS_lchown = 16 +const SYS_lgetxattr = 213 +const SYS_link = 9 +const SYS_linkat = 294 +const SYS_listen = 329 +const SYS_listxattr = 215 +const SYS_llistxattr = 216 +const SYS_lock = 53 +const SYS_lookup_dcookie = 235 +const SYS_lremovexattr = 219 +const SYS_lseek = 19 +const SYS_lsetxattr = 210 +const SYS_lstat = 107 +const SYS_madvise = 205 +const SYS_mbind = 259 +const SYS_membarrier = 365 +const SYS_memfd_create = 360 +const SYS_migrate_pages = 258 +const SYS_mincore = 206 +const SYS_mkdir = 39 +const SYS_mkdirat = 287 +const SYS_mknod = 14 +const SYS_mknodat = 288 +const SYS_mlock = 150 +const SYS_mlock2 = 378 +const SYS_mlockall = 152 +const SYS_mmap = 90 +const SYS_modify_ldt = 123 +const SYS_mount = 21 +const SYS_mount_setattr = 442 +const SYS_move_mount = 429 +const SYS_move_pages = 301 +const SYS_mprotect = 125 +const SYS_mpx = 56 +const SYS_mq_getsetattr = 267 +const SYS_mq_notify = 266 +const SYS_mq_open = 262 +const SYS_mq_timedreceive = 265 +const SYS_mq_timedsend = 264 +const SYS_mq_unlink = 263 +const SYS_mremap = 163 +const SYS_msgctl = 402 +const SYS_msgget = 399 +const SYS_msgrcv = 401 +const SYS_msgsnd = 400 +const SYS_msync = 144 +const SYS_multiplexer = 201 +const SYS_munlock = 151 +const SYS_munlockall = 153 +const SYS_munmap = 91 +const SYS_name_to_handle_at = 345 +const SYS_nanosleep = 162 +const SYS_newfstatat = 291 +const SYS_nfsservctl = 168 +const SYS_nice = 34 +const SYS_oldfstat = 28 +const SYS_oldlstat = 84 +const SYS_oldolduname = 59 +const SYS_oldstat = 18 +const SYS_olduname = 109 +const SYS_open = 5 +const SYS_open_by_handle_at = 346 +const SYS_open_tree = 428 +const SYS_openat = 286 +const SYS_openat2 = 437 +const SYS_pause = 29 +const SYS_pciconfig_iobase = 200 +const SYS_pciconfig_read = 198 +const SYS_pciconfig_write = 199 +const SYS_perf_event_open = 319 +const SYS_personality = 136 +const SYS_pidfd_getfd = 438 +const SYS_pidfd_open = 434 +const SYS_pidfd_send_signal = 424 +const SYS_pipe = 42 +const SYS_pipe2 = 317 +const SYS_pivot_root = 203 +const SYS_pkey_alloc = 384 +const SYS_pkey_free = 385 +const SYS_pkey_mprotect = 386 +const SYS_poll = 167 +const SYS_ppoll = 281 +const SYS_prctl = 171 +const SYS_pread64 = 179 +const SYS_preadv = 320 +const SYS_preadv2 = 380 +const SYS_prlimit64 = 325 +const SYS_process_madvise = 440 +const SYS_process_mrelease = 448 +const SYS_process_vm_readv = 351 +const SYS_process_vm_writev = 352 +const SYS_prof = 44 +const SYS_profil = 98 +const SYS_pselect6 = 280 +const SYS_ptrace = 26 +const SYS_putpmsg = 188 +const SYS_pwrite64 = 180 +const SYS_pwritev = 321 +const SYS_pwritev2 = 381 +const SYS_query_module = 166 +const SYS_quotactl = 131 +const SYS_read = 3 +const SYS_readahead = 191 +const SYS_readdir = 89 +const SYS_readlink = 85 +const SYS_readlinkat = 296 +const SYS_readv = 145 +const SYS_reboot = 88 +const SYS_recv = 336 +const SYS_recvfrom = 337 +const SYS_recvmmsg = 343 +const SYS_recvmsg = 342 +const SYS_remap_file_pages = 239 +const SYS_removexattr = 218 +const SYS_rename = 38 +const SYS_renameat = 293 +const SYS_renameat2 = 357 +const SYS_request_key = 270 +const SYS_restart_syscall = 0 +const SYS_rmdir = 40 +const SYS_rseq = 387 +const SYS_rt_sigaction = 173 +const SYS_rt_sigpending = 175 +const SYS_rt_sigprocmask = 174 +const SYS_rt_sigqueueinfo = 177 +const SYS_rt_sigreturn = 172 +const SYS_rt_sigsuspend = 178 +const SYS_rt_sigtimedwait = 176 +const SYS_rt_tgsigqueueinfo = 322 +const SYS_rtas = 255 +const SYS_sched_get_priority_max = 159 +const SYS_sched_get_priority_min = 160 +const SYS_sched_getaffinity = 223 +const SYS_sched_getattr = 356 +const SYS_sched_getparam = 155 +const SYS_sched_getscheduler = 157 +const SYS_sched_rr_get_interval = 161 +const SYS_sched_setaffinity = 222 +const SYS_sched_setattr = 355 +const SYS_sched_setparam = 154 +const SYS_sched_setscheduler = 156 +const SYS_sched_yield = 158 +const SYS_seccomp = 358 +const SYS_semctl = 394 +const SYS_semget = 393 +const SYS_semtimedop = 392 +const SYS_send = 334 +const SYS_sendfile = 186 +const SYS_sendmmsg = 349 +const SYS_sendmsg = 341 +const SYS_sendto = 335 +const SYS_set_mempolicy = 261 +const SYS_set_mempolicy_home_node = 450 +const SYS_set_robust_list = 300 +const SYS_set_tid_address = 232 +const SYS_setdomainname = 121 +const SYS_setfsgid = 139 +const SYS_setfsuid = 138 +const SYS_setgid = 46 +const SYS_setgroups = 81 +const SYS_sethostname = 74 +const SYS_setitimer = 104 +const SYS_setns = 350 +const SYS_setpgid = 57 +const SYS_setpriority = 97 +const SYS_setregid = 71 +const SYS_setresgid = 169 +const SYS_setresuid = 164 +const SYS_setreuid = 70 +const SYS_setrlimit = 75 +const SYS_setsid = 66 +const SYS_setsockopt = 339 +const SYS_settimeofday = 79 +const SYS_setuid = 23 +const SYS_setxattr = 209 +const SYS_sgetmask = 68 +const SYS_shmat = 397 +const SYS_shmctl = 396 +const SYS_shmdt = 398 +const SYS_shmget = 395 +const SYS_shutdown = 338 +const SYS_sigaction = 67 +const SYS_sigaltstack = 185 +const SYS_signal = 48 +const SYS_signalfd = 305 +const SYS_signalfd4 = 313 +const SYS_sigpending = 73 +const SYS_sigprocmask = 126 +const SYS_sigreturn = 119 +const SYS_sigsuspend = 72 +const SYS_socket = 326 +const SYS_socketcall = 102 +const SYS_socketpair = 333 +const SYS_splice = 283 +const SYS_spu_create = 279 +const SYS_spu_run = 278 +const SYS_ssetmask = 69 +const SYS_stat = 106 +const SYS_statfs64 = 252 +const SYS_statx = 383 +const SYS_stime = 25 +const SYS_stty = 31 +const SYS_subpage_prot = 310 +const SYS_swapcontext = 249 +const SYS_swapoff = 115 +const SYS_swapon = 87 +const SYS_switch_endian = 363 +const SYS_symlink = 83 +const SYS_symlinkat = 295 +const SYS_sync = 36 +const SYS_sync_file_range2 = 308 +const SYS_syncfs = 348 +const SYS_sys_debug_setcontext = 256 +const SYS_sysfs = 135 +const SYS_sysinfo = 116 +const SYS_syslog = 103 +const SYS_tee = 284 +const SYS_tgkill = 250 +const SYS_time = 13 +const SYS_timer_create = 240 +const SYS_timer_delete = 244 +const SYS_timer_getoverrun = 243 +const SYS_timer_gettime = 242 +const SYS_timer_settime = 241 +const SYS_timerfd_create = 306 +const SYS_timerfd_gettime = 312 +const SYS_timerfd_settime = 311 +const SYS_times = 43 +const SYS_tkill = 208 +const SYS_truncate = 92 +const SYS_tuxcall = 225 +const SYS_ugetrlimit = 190 +const SYS_ulimit = 58 +const SYS_umask = 60 +const SYS_umount = 22 +const SYS_umount2 = 52 +const SYS_uname = 122 +const SYS_unlink = 10 +const SYS_unlinkat = 292 +const SYS_unshare = 282 +const SYS_uselib = 86 +const SYS_userfaultfd = 364 +const SYS_ustat = 62 +const SYS_utime = 30 +const SYS_utimensat = 304 +const SYS_utimes = 251 +const SYS_vfork = 189 +const SYS_vhangup = 111 +const SYS_vm86 = 113 +const SYS_vmsplice = 285 +const SYS_wait4 = 114 +const SYS_waitid = 272 +const SYS_waitpid = 7 +const SYS_write = 4 +const SYS_writev = 146 +const TRAP_BRANCH = 3 +const TRAP_BRKPT = 1 +const TRAP_HWBKPT = 4 +const TRAP_TRACE = 2 +const TRAP_UNK = 5 +const VER = -255 +const VER_DEF_CURRENT = 1 +const VER_DEF_NONE = 0 +const VER_DEF_NUM = 2 +const VER_FLG_BASE = 1 +const VER_FLG_WEAK = 2 +const VER_NDX_ELIMINATE = 65281 +const VER_NDX_GLOBAL = 1 +const VER_NDX_LOCAL = 0 +const VER_NDX_LORESERVE = 65280 +const VER_NEED_CURRENT = 1 +const VER_NEED_NONE = 0 +const VER_NEED_NUM = 2 +const WNOHANG = 1 +const WUNTRACED = 2 +const _NSIG = 65 +const __NR__llseek = 140 +const __NR__newselect = 142 +const __NR__sysctl = 149 +const __NR_accept = 330 +const __NR_accept4 = 344 +const __NR_access = 33 +const __NR_acct = 51 +const __NR_add_key = 269 +const __NR_adjtimex = 124 +const __NR_afs_syscall = 137 +const __NR_alarm = 27 +const __NR_bdflush = 134 +const __NR_bind = 327 +const __NR_bpf = 361 +const __NR_break = 17 +const __NR_brk = 45 +const __NR_cachestat = 451 +const __NR_capget = 183 +const __NR_capset = 184 +const __NR_chdir = 12 +const __NR_chmod = 15 +const __NR_chown = 181 +const __NR_chroot = 61 +const __NR_clock_adjtime = 347 +const __NR_clock_getres = 247 +const __NR_clock_gettime = 246 +const __NR_clock_nanosleep = 248 +const __NR_clock_settime = 245 +const __NR_clone = 120 +const __NR_clone3 = 435 +const __NR_close = 6 +const __NR_close_range = 436 +const __NR_connect = 328 +const __NR_copy_file_range = 379 +const __NR_creat = 8 +const __NR_create_module = 127 +const __NR_delete_module = 129 +const __NR_dup = 41 +const __NR_dup2 = 63 +const __NR_dup3 = 316 +const __NR_epoll_create = 236 +const __NR_epoll_create1 = 315 +const __NR_epoll_ctl = 237 +const __NR_epoll_pwait = 303 +const __NR_epoll_pwait2 = 441 +const __NR_epoll_wait = 238 +const __NR_eventfd = 307 +const __NR_eventfd2 = 314 +const __NR_execve = 11 +const __NR_execveat = 362 +const __NR_exit = 1 +const __NR_exit_group = 234 +const __NR_faccessat = 298 +const __NR_faccessat2 = 439 +const __NR_fadvise64 = 233 +const __NR_fallocate = 309 +const __NR_fanotify_init = 323 +const __NR_fanotify_mark = 324 +const __NR_fchdir = 133 +const __NR_fchmod = 94 +const __NR_fchmodat = 297 +const __NR_fchmodat2 = 452 +const __NR_fchown = 95 +const __NR_fchownat = 289 +const __NR_fcntl = 55 +const __NR_fdatasync = 148 +const __NR_fgetxattr = 214 +const __NR_finit_module = 353 +const __NR_flistxattr = 217 +const __NR_flock = 143 +const __NR_fork = 2 +const __NR_fremovexattr = 220 +const __NR_fsconfig = 431 +const __NR_fsetxattr = 211 +const __NR_fsmount = 432 +const __NR_fsopen = 430 +const __NR_fspick = 433 +const __NR_fstat = 108 +const __NR_fstatfs = 100 +const __NR_fstatfs64 = 253 +const __NR_fsync = 118 +const __NR_ftime = 35 +const __NR_ftruncate = 93 +const __NR_futex = 221 +const __NR_futex_waitv = 449 +const __NR_futimesat = 290 +const __NR_get_kernel_syms = 130 +const __NR_get_mempolicy = 260 +const __NR_get_robust_list = 299 +const __NR_getcpu = 302 +const __NR_getcwd = 182 +const __NR_getdents = 141 +const __NR_getdents64 = 202 +const __NR_getegid = 50 +const __NR_geteuid = 49 +const __NR_getgid = 47 +const __NR_getgroups = 80 +const __NR_getitimer = 105 +const __NR_getpeername = 332 +const __NR_getpgid = 132 +const __NR_getpgrp = 65 +const __NR_getpid = 20 +const __NR_getpmsg = 187 +const __NR_getppid = 64 +const __NR_getpriority = 96 +const __NR_getrandom = 359 +const __NR_getresgid = 170 +const __NR_getresuid = 165 +const __NR_getrlimit = 76 +const __NR_getrusage = 77 +const __NR_getsid = 147 +const __NR_getsockname = 331 +const __NR_getsockopt = 340 +const __NR_gettid = 207 +const __NR_gettimeofday = 78 +const __NR_getuid = 24 +const __NR_getxattr = 212 +const __NR_gtty = 32 +const __NR_idle = 112 +const __NR_init_module = 128 +const __NR_inotify_add_watch = 276 +const __NR_inotify_init = 275 +const __NR_inotify_init1 = 318 +const __NR_inotify_rm_watch = 277 +const __NR_io_cancel = 231 +const __NR_io_destroy = 228 +const __NR_io_getevents = 229 +const __NR_io_pgetevents = 388 +const __NR_io_setup = 227 +const __NR_io_submit = 230 +const __NR_io_uring_enter = 426 +const __NR_io_uring_register = 427 +const __NR_io_uring_setup = 425 +const __NR_ioctl = 54 +const __NR_ioperm = 101 +const __NR_iopl = 110 +const __NR_ioprio_get = 274 +const __NR_ioprio_set = 273 +const __NR_ipc = 117 +const __NR_kcmp = 354 +const __NR_kexec_file_load = 382 +const __NR_kexec_load = 268 +const __NR_keyctl = 271 +const __NR_kill = 37 +const __NR_landlock_add_rule = 445 +const __NR_landlock_create_ruleset = 444 +const __NR_landlock_restrict_self = 446 +const __NR_lchown = 16 +const __NR_lgetxattr = 213 +const __NR_link = 9 +const __NR_linkat = 294 +const __NR_listen = 329 +const __NR_listxattr = 215 +const __NR_llistxattr = 216 +const __NR_lock = 53 +const __NR_lookup_dcookie = 235 +const __NR_lremovexattr = 219 +const __NR_lseek = 19 +const __NR_lsetxattr = 210 +const __NR_lstat = 107 +const __NR_madvise = 205 +const __NR_mbind = 259 +const __NR_membarrier = 365 +const __NR_memfd_create = 360 +const __NR_migrate_pages = 258 +const __NR_mincore = 206 +const __NR_mkdir = 39 +const __NR_mkdirat = 287 +const __NR_mknod = 14 +const __NR_mknodat = 288 +const __NR_mlock = 150 +const __NR_mlock2 = 378 +const __NR_mlockall = 152 +const __NR_mmap = 90 +const __NR_modify_ldt = 123 +const __NR_mount = 21 +const __NR_mount_setattr = 442 +const __NR_move_mount = 429 +const __NR_move_pages = 301 +const __NR_mprotect = 125 +const __NR_mpx = 56 +const __NR_mq_getsetattr = 267 +const __NR_mq_notify = 266 +const __NR_mq_open = 262 +const __NR_mq_timedreceive = 265 +const __NR_mq_timedsend = 264 +const __NR_mq_unlink = 263 +const __NR_mremap = 163 +const __NR_msgctl = 402 +const __NR_msgget = 399 +const __NR_msgrcv = 401 +const __NR_msgsnd = 400 +const __NR_msync = 144 +const __NR_multiplexer = 201 +const __NR_munlock = 151 +const __NR_munlockall = 153 +const __NR_munmap = 91 +const __NR_name_to_handle_at = 345 +const __NR_nanosleep = 162 +const __NR_newfstatat = 291 +const __NR_nfsservctl = 168 +const __NR_nice = 34 +const __NR_oldfstat = 28 +const __NR_oldlstat = 84 +const __NR_oldolduname = 59 +const __NR_oldstat = 18 +const __NR_olduname = 109 +const __NR_open = 5 +const __NR_open_by_handle_at = 346 +const __NR_open_tree = 428 +const __NR_openat = 286 +const __NR_openat2 = 437 +const __NR_pause = 29 +const __NR_pciconfig_iobase = 200 +const __NR_pciconfig_read = 198 +const __NR_pciconfig_write = 199 +const __NR_perf_event_open = 319 +const __NR_personality = 136 +const __NR_pidfd_getfd = 438 +const __NR_pidfd_open = 434 +const __NR_pidfd_send_signal = 424 +const __NR_pipe = 42 +const __NR_pipe2 = 317 +const __NR_pivot_root = 203 +const __NR_pkey_alloc = 384 +const __NR_pkey_free = 385 +const __NR_pkey_mprotect = 386 +const __NR_poll = 167 +const __NR_ppoll = 281 +const __NR_prctl = 171 +const __NR_pread64 = 179 +const __NR_preadv = 320 +const __NR_preadv2 = 380 +const __NR_prlimit64 = 325 +const __NR_process_madvise = 440 +const __NR_process_mrelease = 448 +const __NR_process_vm_readv = 351 +const __NR_process_vm_writev = 352 +const __NR_prof = 44 +const __NR_profil = 98 +const __NR_pselect6 = 280 +const __NR_ptrace = 26 +const __NR_putpmsg = 188 +const __NR_pwrite64 = 180 +const __NR_pwritev = 321 +const __NR_pwritev2 = 381 +const __NR_query_module = 166 +const __NR_quotactl = 131 +const __NR_read = 3 +const __NR_readahead = 191 +const __NR_readdir = 89 +const __NR_readlink = 85 +const __NR_readlinkat = 296 +const __NR_readv = 145 +const __NR_reboot = 88 +const __NR_recv = 336 +const __NR_recvfrom = 337 +const __NR_recvmmsg = 343 +const __NR_recvmsg = 342 +const __NR_remap_file_pages = 239 +const __NR_removexattr = 218 +const __NR_rename = 38 +const __NR_renameat = 293 +const __NR_renameat2 = 357 +const __NR_request_key = 270 +const __NR_restart_syscall = 0 +const __NR_rmdir = 40 +const __NR_rseq = 387 +const __NR_rt_sigaction = 173 +const __NR_rt_sigpending = 175 +const __NR_rt_sigprocmask = 174 +const __NR_rt_sigqueueinfo = 177 +const __NR_rt_sigreturn = 172 +const __NR_rt_sigsuspend = 178 +const __NR_rt_sigtimedwait = 176 +const __NR_rt_tgsigqueueinfo = 322 +const __NR_rtas = 255 +const __NR_sched_get_priority_max = 159 +const __NR_sched_get_priority_min = 160 +const __NR_sched_getaffinity = 223 +const __NR_sched_getattr = 356 +const __NR_sched_getparam = 155 +const __NR_sched_getscheduler = 157 +const __NR_sched_rr_get_interval = 161 +const __NR_sched_setaffinity = 222 +const __NR_sched_setattr = 355 +const __NR_sched_setparam = 154 +const __NR_sched_setscheduler = 156 +const __NR_sched_yield = 158 +const __NR_seccomp = 358 +const __NR_select = 82 +const __NR_semctl = 394 +const __NR_semget = 393 +const __NR_semtimedop = 392 +const __NR_send = 334 +const __NR_sendfile = 186 +const __NR_sendmmsg = 349 +const __NR_sendmsg = 341 +const __NR_sendto = 335 +const __NR_set_mempolicy = 261 +const __NR_set_mempolicy_home_node = 450 +const __NR_set_robust_list = 300 +const __NR_set_tid_address = 232 +const __NR_setdomainname = 121 +const __NR_setfsgid = 139 +const __NR_setfsuid = 138 +const __NR_setgid = 46 +const __NR_setgroups = 81 +const __NR_sethostname = 74 +const __NR_setitimer = 104 +const __NR_setns = 350 +const __NR_setpgid = 57 +const __NR_setpriority = 97 +const __NR_setregid = 71 +const __NR_setresgid = 169 +const __NR_setresuid = 164 +const __NR_setreuid = 70 +const __NR_setrlimit = 75 +const __NR_setsid = 66 +const __NR_setsockopt = 339 +const __NR_settimeofday = 79 +const __NR_setuid = 23 +const __NR_setxattr = 209 +const __NR_sgetmask = 68 +const __NR_shmat = 397 +const __NR_shmctl = 396 +const __NR_shmdt = 398 +const __NR_shmget = 395 +const __NR_shutdown = 338 +const __NR_sigaction = 67 +const __NR_sigaltstack = 185 +const __NR_signal = 48 +const __NR_signalfd = 305 +const __NR_signalfd4 = 313 +const __NR_sigpending = 73 +const __NR_sigprocmask = 126 +const __NR_sigreturn = 119 +const __NR_sigsuspend = 72 +const __NR_socket = 326 +const __NR_socketcall = 102 +const __NR_socketpair = 333 +const __NR_splice = 283 +const __NR_spu_create = 279 +const __NR_spu_run = 278 +const __NR_ssetmask = 69 +const __NR_stat = 106 +const __NR_statfs = 99 +const __NR_statfs64 = 252 +const __NR_statx = 383 +const __NR_stime = 25 +const __NR_stty = 31 +const __NR_subpage_prot = 310 +const __NR_swapcontext = 249 +const __NR_swapoff = 115 +const __NR_swapon = 87 +const __NR_switch_endian = 363 +const __NR_symlink = 83 +const __NR_symlinkat = 295 +const __NR_sync = 36 +const __NR_sync_file_range2 = 308 +const __NR_syncfs = 348 +const __NR_sys_debug_setcontext = 256 +const __NR_sysfs = 135 +const __NR_sysinfo = 116 +const __NR_syslog = 103 +const __NR_tee = 284 +const __NR_tgkill = 250 +const __NR_time = 13 +const __NR_timer_create = 240 +const __NR_timer_delete = 244 +const __NR_timer_getoverrun = 243 +const __NR_timer_gettime = 242 +const __NR_timer_settime = 241 +const __NR_timerfd_create = 306 +const __NR_timerfd_gettime = 312 +const __NR_timerfd_settime = 311 +const __NR_times = 43 +const __NR_tkill = 208 +const __NR_truncate = 92 +const __NR_tuxcall = 225 +const __NR_ugetrlimit = 190 +const __NR_ulimit = 58 +const __NR_umask = 60 +const __NR_umount = 22 +const __NR_umount2 = 52 +const __NR_uname = 122 +const __NR_unlink = 10 +const __NR_unlinkat = 292 +const __NR_unshare = 282 +const __NR_uselib = 86 +const __NR_userfaultfd = 364 +const __NR_ustat = 62 +const __NR_utime = 30 +const __NR_utimensat = 304 +const __NR_utimes = 251 +const __NR_vfork = 189 +const __NR_vhangup = 111 +const __NR_vm86 = 113 +const __NR_vmsplice = 285 +const __NR_wait4 = 114 +const __NR_waitid = 272 +const __NR_waitpid = 7 +const __NR_write = 4 +const __NR_writev = 146 +const __SC_accept = 5 +const __SC_accept4 = 18 +const __SC_bind = 2 +const __SC_connect = 3 +const __SC_getpeername = 7 +const __SC_getsockname = 6 +const __SC_getsockopt = 15 +const __SC_listen = 4 +const __SC_recv = 10 +const __SC_recvfrom = 12 +const __SC_recvmmsg = 19 +const __SC_recvmsg = 17 +const __SC_send = 9 +const __SC_sendmmsg = 20 +const __SC_sendmsg = 16 +const __SC_sendto = 11 +const __SC_setsockopt = 14 +const __SC_shutdown = 13 +const __SC_socket = 1 +const __SC_socketpair = 8 +const libc = 0 + +type Ttime_t = int64 + +type Tsuseconds_t = int64 + +type Ttimeval = struct { + Ftv_sec Ttime_t + Ftv_usec Tsuseconds_t +} + +type Ttimespec = struct { + Ftv_sec Ttime_t + Ftv_nsec int64 +} + +type Tsigset_t = struct { + F__bits [16]uint64 +} + +type t__sigset_t = Tsigset_t + +type Tfd_mask = uint64 + +type Tfd_set = struct { + Ffds_bits [16]uint64 +} + +type Titimerval = struct { + Fit_interval Ttimeval + Fit_value Ttimeval +} + +type Tid_t = uint32 + +type Trlim_t = uint64 + +type Trlimit = struct { + Frlim_cur Trlim_t + Frlim_max Trlim_t +} + +type Trusage = struct { + Fru_utime Ttimeval + Fru_stime Ttimeval + Fru_maxrss int64 + Fru_ixrss int64 + Fru_idrss int64 + Fru_isrss int64 + Fru_minflt int64 + Fru_majflt int64 + Fru_nswap int64 + Fru_inblock int64 + Fru_oublock int64 + Fru_msgsnd int64 + Fru_msgrcv int64 + Fru_nsignals int64 + Fru_nvcsw int64 + Fru_nivcsw int64 + F__reserved [16]int64 +} + +type Tclock_t = int64 + +type Tpthread_t = uintptr + +type Tpthread_attr_t = struct { + F__u struct { + F__vi [0][14]int32 + F__s [0][7]uint64 + F__i [14]int32 + } +} + +type Tstack_t = struct { + Fss_sp uintptr + Fss_flags int32 + Fss_size Tsize_t +} + +type Tsigaltstack = Tstack_t + +type Tmcontext_t = struct { + F__regs [191]int64 +} + +type Tucontext_t = struct { + Fuc_flags uint64 + Fuc_link uintptr + Fuc_stack Tstack_t + Fuc_sigmask Tsigset_t + Fuc_mcontext Tmcontext_t +} + +type t__ucontext = Tucontext_t + +type Tsigval = struct { + Fsival_ptr [0]uintptr + Fsival_int int32 + F__ccgo_pad2 [4]byte +} + +type Tsiginfo_t = struct { + Fsi_signo int32 + Fsi_errno int32 + Fsi_code int32 + F__si_fields struct { + F__si_common [0]struct { + F__first struct { + F__timer [0]struct { + Fsi_timerid int32 + Fsi_overrun int32 + } + F__piduid struct { + Fsi_pid Tpid_t + Fsi_uid Tuid_t + } + } + F__second struct { + F__sigchld [0]struct { + Fsi_status int32 + Fsi_utime Tclock_t + Fsi_stime Tclock_t + } + Fsi_value Tsigval + F__ccgo_pad2 [16]byte + } + } + F__sigfault [0]struct { + Fsi_addr uintptr + Fsi_addr_lsb int16 + F__first struct { + Fsi_pkey [0]uint32 + F__addr_bnd struct { + Fsi_lower uintptr + Fsi_upper uintptr + } + } + } + F__sigpoll [0]struct { + Fsi_band int64 + Fsi_fd int32 + } + F__sigsys [0]struct { + Fsi_call_addr uintptr + Fsi_syscall int32 + Fsi_arch uint32 + } + F__pad [112]uint8 + } +} + +type Tsigaction = struct { + F__sa_handler struct { + Fsa_sigaction [0]uintptr + Fsa_handler uintptr + } + Fsa_mask Tsigset_t + Fsa_flags int32 + Fsa_restorer uintptr +} + +type Tsigevent = struct { + Fsigev_value Tsigval + Fsigev_signo int32 + Fsigev_notify int32 + F__sev_fields struct { + Fsigev_notify_thread_id [0]Tpid_t + F__sev_thread [0]struct { + Fsigev_notify_function uintptr + Fsigev_notify_attributes uintptr + } + F__pad [48]uint8 + } +} + +type Tsig_atomic_t = int32 + +type TElf32_Half = uint16 + +type TElf64_Half = uint16 + +type TElf32_Word = uint32 + +type TElf32_Sword = int32 + +type TElf64_Word = uint32 + +type TElf64_Sword = int32 + +type TElf32_Xword = uint64 + +type TElf32_Sxword = int64 + +type TElf64_Xword = uint64 + +type TElf64_Sxword = int64 + +type TElf32_Addr = uint32 + +type TElf64_Addr = uint64 + +type TElf32_Off = uint32 + +type TElf64_Off = uint64 + +type TElf32_Section = uint16 + +type TElf64_Section = uint16 + +type TElf32_Versym = uint16 + +type TElf64_Versym = uint16 + +type TElf32_Ehdr = struct { + Fe_ident [16]uint8 + Fe_type TElf32_Half + Fe_machine TElf32_Half + Fe_version TElf32_Word + Fe_entry TElf32_Addr + Fe_phoff TElf32_Off + Fe_shoff TElf32_Off + Fe_flags TElf32_Word + Fe_ehsize TElf32_Half + Fe_phentsize TElf32_Half + Fe_phnum TElf32_Half + Fe_shentsize TElf32_Half + Fe_shnum TElf32_Half + Fe_shstrndx TElf32_Half +} + +type TElf64_Ehdr = struct { + Fe_ident [16]uint8 + Fe_type TElf64_Half + Fe_machine TElf64_Half + Fe_version TElf64_Word + Fe_entry TElf64_Addr + Fe_phoff TElf64_Off + Fe_shoff TElf64_Off + Fe_flags TElf64_Word + Fe_ehsize TElf64_Half + Fe_phentsize TElf64_Half + Fe_phnum TElf64_Half + Fe_shentsize TElf64_Half + Fe_shnum TElf64_Half + Fe_shstrndx TElf64_Half +} + +type TElf32_Shdr = struct { + Fsh_name TElf32_Word + Fsh_type TElf32_Word + Fsh_flags TElf32_Word + Fsh_addr TElf32_Addr + Fsh_offset TElf32_Off + Fsh_size TElf32_Word + Fsh_link TElf32_Word + Fsh_info TElf32_Word + Fsh_addralign TElf32_Word + Fsh_entsize TElf32_Word +} + +type TElf64_Shdr = struct { + Fsh_name TElf64_Word + Fsh_type TElf64_Word + Fsh_flags TElf64_Xword + Fsh_addr TElf64_Addr + Fsh_offset TElf64_Off + Fsh_size TElf64_Xword + Fsh_link TElf64_Word + Fsh_info TElf64_Word + Fsh_addralign TElf64_Xword + Fsh_entsize TElf64_Xword +} + +type TElf32_Chdr = struct { + Fch_type TElf32_Word + Fch_size TElf32_Word + Fch_addralign TElf32_Word +} + +type TElf64_Chdr = struct { + Fch_type TElf64_Word + Fch_reserved TElf64_Word + Fch_size TElf64_Xword + Fch_addralign TElf64_Xword +} + +type TElf32_Sym = struct { + Fst_name TElf32_Word + Fst_value TElf32_Addr + Fst_size TElf32_Word + Fst_info uint8 + Fst_other uint8 + Fst_shndx TElf32_Section +} + +type TElf64_Sym = struct { + Fst_name TElf64_Word + Fst_info uint8 + Fst_other uint8 + Fst_shndx TElf64_Section + Fst_value TElf64_Addr + Fst_size TElf64_Xword +} + +type TElf32_Syminfo = struct { + Fsi_boundto TElf32_Half + Fsi_flags TElf32_Half +} + +type TElf64_Syminfo = struct { + Fsi_boundto TElf64_Half + Fsi_flags TElf64_Half +} + +type TElf32_Rel = struct { + Fr_offset TElf32_Addr + Fr_info TElf32_Word +} + +type TElf64_Rel = struct { + Fr_offset TElf64_Addr + Fr_info TElf64_Xword +} + +type TElf32_Rela = struct { + Fr_offset TElf32_Addr + Fr_info TElf32_Word + Fr_addend TElf32_Sword +} + +type TElf64_Rela = struct { + Fr_offset TElf64_Addr + Fr_info TElf64_Xword + Fr_addend TElf64_Sxword +} + +type TElf32_Relr = uint32 + +type TElf64_Relr = uint64 + +type TElf32_Phdr = struct { + Fp_type TElf32_Word + Fp_offset TElf32_Off + Fp_vaddr TElf32_Addr + Fp_paddr TElf32_Addr + Fp_filesz TElf32_Word + Fp_memsz TElf32_Word + Fp_flags TElf32_Word + Fp_align TElf32_Word +} + +type TElf64_Phdr = struct { + Fp_type TElf64_Word + Fp_flags TElf64_Word + Fp_offset TElf64_Off + Fp_vaddr TElf64_Addr + Fp_paddr TElf64_Addr + Fp_filesz TElf64_Xword + Fp_memsz TElf64_Xword + Fp_align TElf64_Xword +} + +type TElf32_Dyn = struct { + Fd_tag TElf32_Sword + Fd_un struct { + Fd_ptr [0]TElf32_Addr + Fd_val TElf32_Word + } +} + +type TElf64_Dyn = struct { + Fd_tag TElf64_Sxword + Fd_un struct { + Fd_ptr [0]TElf64_Addr + Fd_val TElf64_Xword + } +} + +type TElf32_Verdef = struct { + Fvd_version TElf32_Half + Fvd_flags TElf32_Half + Fvd_ndx TElf32_Half + Fvd_cnt TElf32_Half + Fvd_hash TElf32_Word + Fvd_aux TElf32_Word + Fvd_next TElf32_Word +} + +type TElf64_Verdef = struct { + Fvd_version TElf64_Half + Fvd_flags TElf64_Half + Fvd_ndx TElf64_Half + Fvd_cnt TElf64_Half + Fvd_hash TElf64_Word + Fvd_aux TElf64_Word + Fvd_next TElf64_Word +} + +type TElf32_Verdaux = struct { + Fvda_name TElf32_Word + Fvda_next TElf32_Word +} + +type TElf64_Verdaux = struct { + Fvda_name TElf64_Word + Fvda_next TElf64_Word +} + +type TElf32_Verneed = struct { + Fvn_version TElf32_Half + Fvn_cnt TElf32_Half + Fvn_file TElf32_Word + Fvn_aux TElf32_Word + Fvn_next TElf32_Word +} + +type TElf64_Verneed = struct { + Fvn_version TElf64_Half + Fvn_cnt TElf64_Half + Fvn_file TElf64_Word + Fvn_aux TElf64_Word + Fvn_next TElf64_Word +} + +type TElf32_Vernaux = struct { + Fvna_hash TElf32_Word + Fvna_flags TElf32_Half + Fvna_other TElf32_Half + Fvna_name TElf32_Word + Fvna_next TElf32_Word +} + +type TElf64_Vernaux = struct { + Fvna_hash TElf64_Word + Fvna_flags TElf64_Half + Fvna_other TElf64_Half + Fvna_name TElf64_Word + Fvna_next TElf64_Word +} + +type TElf32_auxv_t = struct { + Fa_type Tuint32_t + Fa_un struct { + Fa_val Tuint32_t + } +} + +type TElf64_auxv_t = struct { + Fa_type Tuint64_t + Fa_un struct { + Fa_val Tuint64_t + } +} + +type TElf32_Nhdr = struct { + Fn_namesz TElf32_Word + Fn_descsz TElf32_Word + Fn_type TElf32_Word +} + +type TElf64_Nhdr = struct { + Fn_namesz TElf64_Word + Fn_descsz TElf64_Word + Fn_type TElf64_Word +} + +type TElf32_Move = struct { + Fm_value TElf32_Xword + Fm_info TElf32_Word + Fm_poffset TElf32_Word + Fm_repeat TElf32_Half + Fm_stride TElf32_Half +} + +type TElf64_Move = struct { + Fm_value TElf64_Xword + Fm_info TElf64_Xword + Fm_poffset TElf64_Xword + Fm_repeat TElf64_Half + Fm_stride TElf64_Half +} + +type TElf32_gptab = struct { + Fgt_entry [0]struct { + Fgt_g_value TElf32_Word + Fgt_bytes TElf32_Word + } + Fgt_header struct { + Fgt_current_g_value TElf32_Word + Fgt_unused TElf32_Word + } +} + +type TElf32_RegInfo = struct { + Fri_gprmask TElf32_Word + Fri_cprmask [4]TElf32_Word + Fri_gp_value TElf32_Sword +} + +type TElf_Options = struct { + Fkind uint8 + Fsize uint8 + Fsection TElf32_Section + Finfo TElf32_Word +} + +type TElf_Options_Hw = struct { + Fhwp_flags1 TElf32_Word + Fhwp_flags2 TElf32_Word +} + +type TElf32_Lib = struct { + Fl_name TElf32_Word + Fl_time_stamp TElf32_Word + Fl_checksum TElf32_Word + Fl_version TElf32_Word + Fl_flags TElf32_Word +} + +type TElf64_Lib = struct { + Fl_name TElf64_Word + Fl_time_stamp TElf64_Word + Fl_checksum TElf64_Word + Fl_version TElf64_Word + Fl_flags TElf64_Word +} + +type TElf32_Conflict = uint32 + +type TElf_MIPS_ABIFlags_v0 = struct { + Fversion TElf32_Half + Fisa_level uint8 + Fisa_rev uint8 + Fgpr_size uint8 + Fcpr1_size uint8 + Fcpr2_size uint8 + Ffp_abi uint8 + Fisa_ext TElf32_Word + Fases TElf32_Word + Fflags1 TElf32_Word + Fflags2 TElf32_Word +} + +const _Val_GNU_MIPS_ABI_FP_ANY = 0 +const _Val_GNU_MIPS_ABI_FP_DOUBLE = 1 +const _Val_GNU_MIPS_ABI_FP_SINGLE = 2 +const _Val_GNU_MIPS_ABI_FP_SOFT = 3 +const _Val_GNU_MIPS_ABI_FP_OLD_64 = 4 +const _Val_GNU_MIPS_ABI_FP_XX = 5 +const _Val_GNU_MIPS_ABI_FP_64 = 6 +const _Val_GNU_MIPS_ABI_FP_64A = 7 +const _Val_GNU_MIPS_ABI_FP_MAX = 7 + +type Tsyscall_arg_t = int64 + +type Twchar_t = int32 + +type Tdiv_t = struct { + Fquot int32 + Frem int32 +} + +type Tldiv_t = struct { + Fquot int64 + Frem int64 +} + +type Tlldiv_t = struct { + Fquot int64 + Frem int64 +} + +type t__locale_struct = struct { + Fcat [6]uintptr +} + +type Ttls_module = struct { + Fnext uintptr + Fimage uintptr + Flen1 Tsize_t + Fsize Tsize_t + Falign Tsize_t + Foffset Tsize_t +} + +type t__libc = struct { + Fcan_do_threads uint8 + Fthreaded uint8 + Fsecure uint8 + Fneed_locks int8 + Fthreads_minus_1 int32 + Fauxv uintptr + Ftls_head uintptr + Ftls_size Tsize_t + Ftls_align Tsize_t + Ftls_cnt Tsize_t + Fpage_size Tsize_t + Fglobal_locale t__locale_struct +} + +func Xsysconf(tls *TLS, name int32) (r int64) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(512) + defer tls.Free(512) + var cnt, i, v3 int32 + var mem, v1 uint64 + var val int64 + var v5 uintptr + var _ /* lim at bp+0 */ Trlimit + var _ /* set at bp+16 */ [128]uint8 + var _ /* si at bp+144 */ Tsysinfo + _, _, _, _, _, _, _ = cnt, i, mem, val, v1, v3, v5 + if Uint64FromInt32(name) >= Uint64FromInt64(502)/Uint64FromInt64(2) || !(_values1[name] != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return int64(-int32(1)) + } else { + if int32(_values1[name]) >= -int32(1) { + return int64(_values1[name]) + } else { + if int32(_values1[name]) < -int32(256) { + Xgetrlimit(tls, int32(_values1[name])&int32(16383), bp) + if (**(**Trlimit)(__ccgo_up(bp))).Frlim_cur == ^Uint64FromUint64(0) { + return int64(-int32(1)) + } + if (**(**Trlimit)(__ccgo_up(bp))).Frlim_cur > uint64(0x7fffffffffffffff) { + v1 = uint64(0x7fffffffffffffff) + } else { + v1 = (**(**Trlimit)(__ccgo_up(bp))).Frlim_cur + } + return Int64FromUint64(v1) + } + } + } + switch Int32FromUint8(Uint8FromInt16(_values1[name])) { + case (-Int32FromInt32(256) | Int32FromInt32(1)) & Int32FromInt32(255): + return int64(200809) + case (-Int32FromInt32(256) | Int32FromInt32(2)) & Int32FromInt32(255): + return int64(ARG_MAX) + case (-Int32FromInt32(256) | Int32FromInt32(3)) & Int32FromInt32(255): + return int64(MQ_PRIO_MAX) + case (-Int32FromInt32(256) | Int32FromInt32(4)) & Int32FromInt32(255): + return Int64FromUint64(X__libc.Fpage_size) + case (-Int32FromInt32(256) | Int32FromInt32(5)) & Int32FromInt32(255): + return int64(SEM_VALUE_MAX) + case (-Int32FromInt32(256) | Int32FromInt32(11)) & Int32FromInt32(255): + return int64(DELAYTIMER_MAX) + case (-Int32FromInt32(256) | Int32FromInt32(6)) & Int32FromInt32(255): + fallthrough + case (-Int32FromInt32(256) | Int32FromInt32(7)) & Int32FromInt32(255): + **(**[128]uint8)(__ccgo_up(bp + 16)) = [128]uint8{ + 0: uint8(1), + } + X__syscall3(tls, int64(SYS_sched_getaffinity), int64(Int32FromInt32(0)), Int64FromUint64(Uint64FromInt64(128)), int64(bp+16)) + v3 = Int32FromInt32(0) + cnt = v3 + i = v3 + for { + if !(Uint64FromInt32(i) < uint64(128)) { + break + } + for { + if !((**(**[128]uint8)(__ccgo_up(bp + 16)))[i] != 0) { + break + } + goto _4 + _4: + ; + v5 = bp + 16 + uintptr(i) + *(*uint8)(unsafe.Pointer(v5)) = uint8(int32(*(*uint8)(unsafe.Pointer(v5))) & (Int32FromUint8((**(**[128]uint8)(__ccgo_up(bp + 16)))[i]) - Int32FromInt32(1))) + cnt = cnt + 1 + } + goto _2 + _2: + ; + i = i + 1 + } + return int64(cnt) + case (-Int32FromInt32(256) | Int32FromInt32(8)) & Int32FromInt32(255): + fallthrough + case (-Int32FromInt32(256) | Int32FromInt32(9)) & Int32FromInt32(255): + X__lsysinfo(tls, bp+144) + if !((**(**Tsysinfo)(__ccgo_up(bp + 144))).Fmem_unit != 0) { + (**(**Tsysinfo)(__ccgo_up(bp + 144))).Fmem_unit = uint32(1) + } + if name == int32(_SC_PHYS_PAGES) { + mem = uint64((**(**Tsysinfo)(__ccgo_up(bp + 144))).Ftotalram) + } else { + mem = uint64((**(**Tsysinfo)(__ccgo_up(bp + 144))).Ffreeram + (**(**Tsysinfo)(__ccgo_up(bp + 144))).Fbufferram) + } + mem = mem * uint64((**(**Tsysinfo)(__ccgo_up(bp + 144))).Fmem_unit) + mem = mem / X__libc.Fpage_size + if mem > uint64(0x7fffffffffffffff) { + v1 = uint64(0x7fffffffffffffff) + } else { + v1 = mem + } + return Int64FromUint64(v1) + case (-Int32FromInt32(256) | Int32FromInt32(12)) & Int32FromInt32(255): + fallthrough + case (-Int32FromInt32(256) | Int32FromInt32(13)) & Int32FromInt32(255): + val = Int64FromUint64(X__getauxval(tls, uint64(AT_MINSIGSTKSZ))) + if val < int64(MINSIGSTKSZ) { + val = int64(MINSIGSTKSZ) + } + if int32(_values1[name]) == -Int32FromInt32(256)|Int32FromInt32(13) { + val = val + int64(Int32FromInt32(SIGSTKSZ)-Int32FromInt32(MINSIGSTKSZ)) + } + return val + case (-Int32FromInt32(256) | Int32FromInt32(10)) & Int32FromInt32(255): + return 0 + } + return int64(_values1[name]) +} + +var _values1 = [251]int16{ + 0: int16(-Int32FromInt32(256) | Int32FromInt32(2)), + 1: int16(-Int32FromInt32(32768) | Int32FromInt32(RLIMIT_NPROC)), + 2: int16(100), + 3: int16(32), + 4: int16(-Int32FromInt32(32768) | Int32FromInt32(RLIMIT_NOFILE)), + 5: int16(-int32(1)), + 6: int16(TZNAME_MAX), + 7: int16(1), + 8: int16(1), + 9: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 10: int16(-int32(1)), + 11: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 12: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 13: int16(-int32(1)), + 14: int16(-int32(1)), + 15: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 16: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 17: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 18: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 19: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 20: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 21: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 22: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 23: int16(-int32(1)), + 24: int16(-int32(1)), + 25: int16(-Int32FromInt32(256) | Int32FromInt32(10)), + 26: int16(-Int32FromInt32(256) | Int32FromInt32(11)), + 27: int16(-int32(1)), + 28: int16(-Int32FromInt32(256) | Int32FromInt32(3)), + 29: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 30: int16(-Int32FromInt32(256) | Int32FromInt32(4)), + 31: int16(Int32FromInt32(_NSIG) - Int32FromInt32(1) - Int32FromInt32(31) - Int32FromInt32(3)), + 32: int16(SEM_NSEMS_MAX), + 33: int16(-Int32FromInt32(256) | Int32FromInt32(5)), + 34: int16(-int32(1)), + 35: int16(-int32(1)), + 36: int16(_POSIX2_BC_BASE_MAX), + 37: int16(_POSIX2_BC_DIM_MAX), + 38: int16(_POSIX2_BC_SCALE_MAX), + 39: int16(_POSIX2_BC_STRING_MAX), + 40: int16(COLL_WEIGHTS_MAX), + 42: int16(-int32(1)), + 43: int16(-int32(1)), + 44: int16(RE_DUP_MAX), + 46: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 47: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 48: int16(-int32(1)), + 49: int16(-int32(1)), + 50: int16(-int32(1)), + 51: int16(-int32(1)), + 52: int16(-int32(1)), + 60: int16(IOV_MAX), + 67: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 68: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 69: int16(-int32(1)), + 70: int16(-int32(1)), + 71: int16(256), + 72: int16(TTY_NAME_MAX), + 73: int16(PTHREAD_DESTRUCTOR_ITERATIONS), + 74: int16(PTHREAD_KEYS_MAX), + 75: int16(PTHREAD_STACK_MIN), + 76: int16(-int32(1)), + 77: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 78: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 79: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 80: int16(-int32(1)), + 81: int16(-int32(1)), + 82: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 83: int16(-Int32FromInt32(256) | Int32FromInt32(6)), + 84: int16(-Int32FromInt32(256) | Int32FromInt32(7)), + 85: int16(-Int32FromInt32(256) | Int32FromInt32(8)), + 86: int16(-Int32FromInt32(256) | Int32FromInt32(9)), + 87: int16(-int32(1)), + 88: int16(-int32(1)), + 89: int16(_XOPEN_VERSION), + 90: int16(_XOPEN_VERSION), + 91: int16(1), + 92: int16(-int32(1)), + 93: int16(1), + 94: int16(1), + 95: int16(-int32(1)), + 97: int16(-int32(1)), + 98: int16(-int32(1)), + 99: int16(-int32(1)), + 100: int16(-int32(1)), + 109: int16(NZERO), + 125: int16(-int32(1)), + 126: int16(-int32(1)), + 127: int16(1), + 128: int16(-int32(1)), + 129: int16(-int32(1)), + 130: int16(-int32(1)), + 131: int16(-int32(1)), + 132: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 133: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 137: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 138: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 139: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 149: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 153: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 154: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 155: int16(1), + 157: int16(1), + 159: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 160: int16(-int32(1)), + 161: int16(-int32(1)), + 164: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 165: int16(-int32(1)), + 168: int16(-int32(1)), + 169: int16(-int32(1)), + 170: int16(-int32(1)), + 171: int16(-int32(1)), + 172: int16(-int32(1)), + 173: int16(SYMLOOP_MAX), + 174: int16(-Int32FromInt32(256) | Int32FromInt32(10)), + 175: int16(-int32(1)), + 176: int16(-int32(1)), + 177: int16(-int32(1)), + 178: int16(1), + 179: int16(-int32(1)), + 180: int16(HOST_NAME_MAX), + 181: int16(-int32(1)), + 182: int16(-int32(1)), + 183: int16(-int32(1)), + 184: int16(-int32(1)), + 235: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 236: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 237: int16(-int32(1)), + 238: int16(-int32(1)), + 239: int16(1), + 240: int16(-int32(1)), + 241: int16(-int32(1)), + 242: int16(-int32(1)), + 243: int16(-int32(1)), + 244: int16(-int32(1)), + 245: int16(-int32(1)), + 246: int16(-Int32FromInt32(256) | Int32FromInt32(10)), + 247: int16(-int32(1)), + 248: int16(-int32(1)), + 249: int16(-Int32FromInt32(256) | Int32FromInt32(12)), + 250: int16(-Int32FromInt32(256) | Int32FromInt32(13)), +} + +type Tcrypt_data = struct { + Finitialized int32 + F__buf [256]uint8 +} + +func Xcrypt(tls *TLS, key uintptr, salt uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v salt=%v, (%v:)", tls, key, salt, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__crypt_r(tls, key, salt, uintptr(unsafe.Pointer(&_buf))) +} + +/* This buffer is sufficiently large for all + * currently-supported hash types. It needs to be updated if + * longer hashes are added. The cast to struct crypt_data * is + * purely to meet the public API requirements of the crypt_r + * function; the implementation of crypt_r uses the object + * purely as a char buffer. */ +var _buf [128]uint8 + +const BF_N = 16 + +type Tlocale_t = uintptr + +type TBF_word = uint32 + +type TBF_word_signed = int32 + +/* Number of Blowfish rounds, this is also hardcoded into a few places */ + +type TBF_key = [18]TBF_word + +type TBF_ctx = struct { + FPS [0][1042]TBF_word + Fs struct { + FP TBF_key + FS [4][256]TBF_word + } +} + +// C documentation +// +// /* +// * Magic IV for 64 Blowfish encryptions that we do at the end. +// * The string is "OrpheanBeholderScryDoubt" on big-endian. +// */ +var _BF_magic_w = [6]TBF_word{ + 0: uint32(0x4F727068), + 1: uint32(0x65616E42), + 2: uint32(0x65686F6C), + 3: uint32(0x64657253), + 4: uint32(0x63727944), + 5: uint32(0x6F756274), +} + +// C documentation +// +// /* +// * P-box and S-box tables initialized with digits of Pi. +// */ +var _BF_init_state = *(*TBF_ctx)(unsafe.Pointer(&struct { + FP TBF_key + FS [4][256]TBF_word +}{ + FP: TBF_key{ + 0: uint32(0x243f6a88), + 1: uint32(0x85a308d3), + 2: uint32(0x13198a2e), + 3: uint32(0x03707344), + 4: uint32(0xa4093822), + 5: uint32(0x299f31d0), + 6: uint32(0x082efa98), + 7: uint32(0xec4e6c89), + 8: uint32(0x452821e6), + 9: uint32(0x38d01377), + 10: uint32(0xbe5466cf), + 11: uint32(0x34e90c6c), + 12: uint32(0xc0ac29b7), + 13: uint32(0xc97c50dd), + 14: uint32(0x3f84d5b5), + 15: uint32(0xb5470917), + 16: uint32(0x9216d5d9), + 17: uint32(0x8979fb1b), + }, + FS: [4][256]TBF_word{ + 0: { + 0: uint32(0xd1310ba6), + 1: uint32(0x98dfb5ac), + 2: uint32(0x2ffd72db), + 3: uint32(0xd01adfb7), + 4: uint32(0xb8e1afed), + 5: uint32(0x6a267e96), + 6: uint32(0xba7c9045), + 7: uint32(0xf12c7f99), + 8: uint32(0x24a19947), + 9: uint32(0xb3916cf7), + 10: uint32(0x0801f2e2), + 11: uint32(0x858efc16), + 12: uint32(0x636920d8), + 13: uint32(0x71574e69), + 14: uint32(0xa458fea3), + 15: uint32(0xf4933d7e), + 16: uint32(0x0d95748f), + 17: uint32(0x728eb658), + 18: uint32(0x718bcd58), + 19: uint32(0x82154aee), + 20: uint32(0x7b54a41d), + 21: uint32(0xc25a59b5), + 22: uint32(0x9c30d539), + 23: uint32(0x2af26013), + 24: uint32(0xc5d1b023), + 25: uint32(0x286085f0), + 26: uint32(0xca417918), + 27: uint32(0xb8db38ef), + 28: uint32(0x8e79dcb0), + 29: uint32(0x603a180e), + 30: uint32(0x6c9e0e8b), + 31: uint32(0xb01e8a3e), + 32: uint32(0xd71577c1), + 33: uint32(0xbd314b27), + 34: uint32(0x78af2fda), + 35: uint32(0x55605c60), + 36: uint32(0xe65525f3), + 37: uint32(0xaa55ab94), + 38: uint32(0x57489862), + 39: uint32(0x63e81440), + 40: uint32(0x55ca396a), + 41: uint32(0x2aab10b6), + 42: uint32(0xb4cc5c34), + 43: uint32(0x1141e8ce), + 44: uint32(0xa15486af), + 45: uint32(0x7c72e993), + 46: uint32(0xb3ee1411), + 47: uint32(0x636fbc2a), + 48: uint32(0x2ba9c55d), + 49: uint32(0x741831f6), + 50: uint32(0xce5c3e16), + 51: uint32(0x9b87931e), + 52: uint32(0xafd6ba33), + 53: uint32(0x6c24cf5c), + 54: uint32(0x7a325381), + 55: uint32(0x28958677), + 56: uint32(0x3b8f4898), + 57: uint32(0x6b4bb9af), + 58: uint32(0xc4bfe81b), + 59: uint32(0x66282193), + 60: uint32(0x61d809cc), + 61: uint32(0xfb21a991), + 62: uint32(0x487cac60), + 63: uint32(0x5dec8032), + 64: uint32(0xef845d5d), + 65: uint32(0xe98575b1), + 66: uint32(0xdc262302), + 67: uint32(0xeb651b88), + 68: uint32(0x23893e81), + 69: uint32(0xd396acc5), + 70: uint32(0x0f6d6ff3), + 71: uint32(0x83f44239), + 72: uint32(0x2e0b4482), + 73: uint32(0xa4842004), + 74: uint32(0x69c8f04a), + 75: uint32(0x9e1f9b5e), + 76: uint32(0x21c66842), + 77: uint32(0xf6e96c9a), + 78: uint32(0x670c9c61), + 79: uint32(0xabd388f0), + 80: uint32(0x6a51a0d2), + 81: uint32(0xd8542f68), + 82: uint32(0x960fa728), + 83: uint32(0xab5133a3), + 84: uint32(0x6eef0b6c), + 85: uint32(0x137a3be4), + 86: uint32(0xba3bf050), + 87: uint32(0x7efb2a98), + 88: uint32(0xa1f1651d), + 89: uint32(0x39af0176), + 90: uint32(0x66ca593e), + 91: uint32(0x82430e88), + 92: uint32(0x8cee8619), + 93: uint32(0x456f9fb4), + 94: uint32(0x7d84a5c3), + 95: uint32(0x3b8b5ebe), + 96: uint32(0xe06f75d8), + 97: uint32(0x85c12073), + 98: uint32(0x401a449f), + 99: uint32(0x56c16aa6), + 100: uint32(0x4ed3aa62), + 101: uint32(0x363f7706), + 102: uint32(0x1bfedf72), + 103: uint32(0x429b023d), + 104: uint32(0x37d0d724), + 105: uint32(0xd00a1248), + 106: uint32(0xdb0fead3), + 107: uint32(0x49f1c09b), + 108: uint32(0x075372c9), + 109: uint32(0x80991b7b), + 110: uint32(0x25d479d8), + 111: uint32(0xf6e8def7), + 112: uint32(0xe3fe501a), + 113: uint32(0xb6794c3b), + 114: uint32(0x976ce0bd), + 115: uint32(0x04c006ba), + 116: uint32(0xc1a94fb6), + 117: uint32(0x409f60c4), + 118: uint32(0x5e5c9ec2), + 119: uint32(0x196a2463), + 120: uint32(0x68fb6faf), + 121: uint32(0x3e6c53b5), + 122: uint32(0x1339b2eb), + 123: uint32(0x3b52ec6f), + 124: uint32(0x6dfc511f), + 125: uint32(0x9b30952c), + 126: uint32(0xcc814544), + 127: uint32(0xaf5ebd09), + 128: uint32(0xbee3d004), + 129: uint32(0xde334afd), + 130: uint32(0x660f2807), + 131: uint32(0x192e4bb3), + 132: uint32(0xc0cba857), + 133: uint32(0x45c8740f), + 134: uint32(0xd20b5f39), + 135: uint32(0xb9d3fbdb), + 136: uint32(0x5579c0bd), + 137: uint32(0x1a60320a), + 138: uint32(0xd6a100c6), + 139: uint32(0x402c7279), + 140: uint32(0x679f25fe), + 141: uint32(0xfb1fa3cc), + 142: uint32(0x8ea5e9f8), + 143: uint32(0xdb3222f8), + 144: uint32(0x3c7516df), + 145: uint32(0xfd616b15), + 146: uint32(0x2f501ec8), + 147: uint32(0xad0552ab), + 148: uint32(0x323db5fa), + 149: uint32(0xfd238760), + 150: uint32(0x53317b48), + 151: uint32(0x3e00df82), + 152: uint32(0x9e5c57bb), + 153: uint32(0xca6f8ca0), + 154: uint32(0x1a87562e), + 155: uint32(0xdf1769db), + 156: uint32(0xd542a8f6), + 157: uint32(0x287effc3), + 158: uint32(0xac6732c6), + 159: uint32(0x8c4f5573), + 160: uint32(0x695b27b0), + 161: uint32(0xbbca58c8), + 162: uint32(0xe1ffa35d), + 163: uint32(0xb8f011a0), + 164: uint32(0x10fa3d98), + 165: uint32(0xfd2183b8), + 166: uint32(0x4afcb56c), + 167: uint32(0x2dd1d35b), + 168: uint32(0x9a53e479), + 169: uint32(0xb6f84565), + 170: uint32(0xd28e49bc), + 171: uint32(0x4bfb9790), + 172: uint32(0xe1ddf2da), + 173: uint32(0xa4cb7e33), + 174: uint32(0x62fb1341), + 175: uint32(0xcee4c6e8), + 176: uint32(0xef20cada), + 177: uint32(0x36774c01), + 178: uint32(0xd07e9efe), + 179: uint32(0x2bf11fb4), + 180: uint32(0x95dbda4d), + 181: uint32(0xae909198), + 182: uint32(0xeaad8e71), + 183: uint32(0x6b93d5a0), + 184: uint32(0xd08ed1d0), + 185: uint32(0xafc725e0), + 186: uint32(0x8e3c5b2f), + 187: uint32(0x8e7594b7), + 188: uint32(0x8ff6e2fb), + 189: uint32(0xf2122b64), + 190: uint32(0x8888b812), + 191: uint32(0x900df01c), + 192: uint32(0x4fad5ea0), + 193: uint32(0x688fc31c), + 194: uint32(0xd1cff191), + 195: uint32(0xb3a8c1ad), + 196: uint32(0x2f2f2218), + 197: uint32(0xbe0e1777), + 198: uint32(0xea752dfe), + 199: uint32(0x8b021fa1), + 200: uint32(0xe5a0cc0f), + 201: uint32(0xb56f74e8), + 202: uint32(0x18acf3d6), + 203: uint32(0xce89e299), + 204: uint32(0xb4a84fe0), + 205: uint32(0xfd13e0b7), + 206: uint32(0x7cc43b81), + 207: uint32(0xd2ada8d9), + 208: uint32(0x165fa266), + 209: uint32(0x80957705), + 210: uint32(0x93cc7314), + 211: uint32(0x211a1477), + 212: uint32(0xe6ad2065), + 213: uint32(0x77b5fa86), + 214: uint32(0xc75442f5), + 215: uint32(0xfb9d35cf), + 216: uint32(0xebcdaf0c), + 217: uint32(0x7b3e89a0), + 218: uint32(0xd6411bd3), + 219: uint32(0xae1e7e49), + 220: uint32(0x00250e2d), + 221: uint32(0x2071b35e), + 222: uint32(0x226800bb), + 223: uint32(0x57b8e0af), + 224: uint32(0x2464369b), + 225: uint32(0xf009b91e), + 226: uint32(0x5563911d), + 227: uint32(0x59dfa6aa), + 228: uint32(0x78c14389), + 229: uint32(0xd95a537f), + 230: uint32(0x207d5ba2), + 231: uint32(0x02e5b9c5), + 232: uint32(0x83260376), + 233: uint32(0x6295cfa9), + 234: uint32(0x11c81968), + 235: uint32(0x4e734a41), + 236: uint32(0xb3472dca), + 237: uint32(0x7b14a94a), + 238: uint32(0x1b510052), + 239: uint32(0x9a532915), + 240: uint32(0xd60f573f), + 241: uint32(0xbc9bc6e4), + 242: uint32(0x2b60a476), + 243: uint32(0x81e67400), + 244: uint32(0x08ba6fb5), + 245: uint32(0x571be91f), + 246: uint32(0xf296ec6b), + 247: uint32(0x2a0dd915), + 248: uint32(0xb6636521), + 249: uint32(0xe7b9f9b6), + 250: uint32(0xff34052e), + 251: uint32(0xc5855664), + 252: uint32(0x53b02d5d), + 253: uint32(0xa99f8fa1), + 254: uint32(0x08ba4799), + 255: uint32(0x6e85076a), + }, + 1: { + 0: uint32(0x4b7a70e9), + 1: uint32(0xb5b32944), + 2: uint32(0xdb75092e), + 3: uint32(0xc4192623), + 4: uint32(0xad6ea6b0), + 5: uint32(0x49a7df7d), + 6: uint32(0x9cee60b8), + 7: uint32(0x8fedb266), + 8: uint32(0xecaa8c71), + 9: uint32(0x699a17ff), + 10: uint32(0x5664526c), + 11: uint32(0xc2b19ee1), + 12: uint32(0x193602a5), + 13: uint32(0x75094c29), + 14: uint32(0xa0591340), + 15: uint32(0xe4183a3e), + 16: uint32(0x3f54989a), + 17: uint32(0x5b429d65), + 18: uint32(0x6b8fe4d6), + 19: uint32(0x99f73fd6), + 20: uint32(0xa1d29c07), + 21: uint32(0xefe830f5), + 22: uint32(0x4d2d38e6), + 23: uint32(0xf0255dc1), + 24: uint32(0x4cdd2086), + 25: uint32(0x8470eb26), + 26: uint32(0x6382e9c6), + 27: uint32(0x021ecc5e), + 28: uint32(0x09686b3f), + 29: uint32(0x3ebaefc9), + 30: uint32(0x3c971814), + 31: uint32(0x6b6a70a1), + 32: uint32(0x687f3584), + 33: uint32(0x52a0e286), + 34: uint32(0xb79c5305), + 35: uint32(0xaa500737), + 36: uint32(0x3e07841c), + 37: uint32(0x7fdeae5c), + 38: uint32(0x8e7d44ec), + 39: uint32(0x5716f2b8), + 40: uint32(0xb03ada37), + 41: uint32(0xf0500c0d), + 42: uint32(0xf01c1f04), + 43: uint32(0x0200b3ff), + 44: uint32(0xae0cf51a), + 45: uint32(0x3cb574b2), + 46: uint32(0x25837a58), + 47: uint32(0xdc0921bd), + 48: uint32(0xd19113f9), + 49: uint32(0x7ca92ff6), + 50: uint32(0x94324773), + 51: uint32(0x22f54701), + 52: uint32(0x3ae5e581), + 53: uint32(0x37c2dadc), + 54: uint32(0xc8b57634), + 55: uint32(0x9af3dda7), + 56: uint32(0xa9446146), + 57: uint32(0x0fd0030e), + 58: uint32(0xecc8c73e), + 59: uint32(0xa4751e41), + 60: uint32(0xe238cd99), + 61: uint32(0x3bea0e2f), + 62: uint32(0x3280bba1), + 63: uint32(0x183eb331), + 64: uint32(0x4e548b38), + 65: uint32(0x4f6db908), + 66: uint32(0x6f420d03), + 67: uint32(0xf60a04bf), + 68: uint32(0x2cb81290), + 69: uint32(0x24977c79), + 70: uint32(0x5679b072), + 71: uint32(0xbcaf89af), + 72: uint32(0xde9a771f), + 73: uint32(0xd9930810), + 74: uint32(0xb38bae12), + 75: uint32(0xdccf3f2e), + 76: uint32(0x5512721f), + 77: uint32(0x2e6b7124), + 78: uint32(0x501adde6), + 79: uint32(0x9f84cd87), + 80: uint32(0x7a584718), + 81: uint32(0x7408da17), + 82: uint32(0xbc9f9abc), + 83: uint32(0xe94b7d8c), + 84: uint32(0xec7aec3a), + 85: uint32(0xdb851dfa), + 86: uint32(0x63094366), + 87: uint32(0xc464c3d2), + 88: uint32(0xef1c1847), + 89: uint32(0x3215d908), + 90: uint32(0xdd433b37), + 91: uint32(0x24c2ba16), + 92: uint32(0x12a14d43), + 93: uint32(0x2a65c451), + 94: uint32(0x50940002), + 95: uint32(0x133ae4dd), + 96: uint32(0x71dff89e), + 97: uint32(0x10314e55), + 98: uint32(0x81ac77d6), + 99: uint32(0x5f11199b), + 100: uint32(0x043556f1), + 101: uint32(0xd7a3c76b), + 102: uint32(0x3c11183b), + 103: uint32(0x5924a509), + 104: uint32(0xf28fe6ed), + 105: uint32(0x97f1fbfa), + 106: uint32(0x9ebabf2c), + 107: uint32(0x1e153c6e), + 108: uint32(0x86e34570), + 109: uint32(0xeae96fb1), + 110: uint32(0x860e5e0a), + 111: uint32(0x5a3e2ab3), + 112: uint32(0x771fe71c), + 113: uint32(0x4e3d06fa), + 114: uint32(0x2965dcb9), + 115: uint32(0x99e71d0f), + 116: uint32(0x803e89d6), + 117: uint32(0x5266c825), + 118: uint32(0x2e4cc978), + 119: uint32(0x9c10b36a), + 120: uint32(0xc6150eba), + 121: uint32(0x94e2ea78), + 122: uint32(0xa5fc3c53), + 123: uint32(0x1e0a2df4), + 124: uint32(0xf2f74ea7), + 125: uint32(0x361d2b3d), + 126: uint32(0x1939260f), + 127: uint32(0x19c27960), + 128: uint32(0x5223a708), + 129: uint32(0xf71312b6), + 130: uint32(0xebadfe6e), + 131: uint32(0xeac31f66), + 132: uint32(0xe3bc4595), + 133: uint32(0xa67bc883), + 134: uint32(0xb17f37d1), + 135: uint32(0x018cff28), + 136: uint32(0xc332ddef), + 137: uint32(0xbe6c5aa5), + 138: uint32(0x65582185), + 139: uint32(0x68ab9802), + 140: uint32(0xeecea50f), + 141: uint32(0xdb2f953b), + 142: uint32(0x2aef7dad), + 143: uint32(0x5b6e2f84), + 144: uint32(0x1521b628), + 145: uint32(0x29076170), + 146: uint32(0xecdd4775), + 147: uint32(0x619f1510), + 148: uint32(0x13cca830), + 149: uint32(0xeb61bd96), + 150: uint32(0x0334fe1e), + 151: uint32(0xaa0363cf), + 152: uint32(0xb5735c90), + 153: uint32(0x4c70a239), + 154: uint32(0xd59e9e0b), + 155: uint32(0xcbaade14), + 156: uint32(0xeecc86bc), + 157: uint32(0x60622ca7), + 158: uint32(0x9cab5cab), + 159: uint32(0xb2f3846e), + 160: uint32(0x648b1eaf), + 161: uint32(0x19bdf0ca), + 162: uint32(0xa02369b9), + 163: uint32(0x655abb50), + 164: uint32(0x40685a32), + 165: uint32(0x3c2ab4b3), + 166: uint32(0x319ee9d5), + 167: uint32(0xc021b8f7), + 168: uint32(0x9b540b19), + 169: uint32(0x875fa099), + 170: uint32(0x95f7997e), + 171: uint32(0x623d7da8), + 172: uint32(0xf837889a), + 173: uint32(0x97e32d77), + 174: uint32(0x11ed935f), + 175: uint32(0x16681281), + 176: uint32(0x0e358829), + 177: uint32(0xc7e61fd6), + 178: uint32(0x96dedfa1), + 179: uint32(0x7858ba99), + 180: uint32(0x57f584a5), + 181: uint32(0x1b227263), + 182: uint32(0x9b83c3ff), + 183: uint32(0x1ac24696), + 184: uint32(0xcdb30aeb), + 185: uint32(0x532e3054), + 186: uint32(0x8fd948e4), + 187: uint32(0x6dbc3128), + 188: uint32(0x58ebf2ef), + 189: uint32(0x34c6ffea), + 190: uint32(0xfe28ed61), + 191: uint32(0xee7c3c73), + 192: uint32(0x5d4a14d9), + 193: uint32(0xe864b7e3), + 194: uint32(0x42105d14), + 195: uint32(0x203e13e0), + 196: uint32(0x45eee2b6), + 197: uint32(0xa3aaabea), + 198: uint32(0xdb6c4f15), + 199: uint32(0xfacb4fd0), + 200: uint32(0xc742f442), + 201: uint32(0xef6abbb5), + 202: uint32(0x654f3b1d), + 203: uint32(0x41cd2105), + 204: uint32(0xd81e799e), + 205: uint32(0x86854dc7), + 206: uint32(0xe44b476a), + 207: uint32(0x3d816250), + 208: uint32(0xcf62a1f2), + 209: uint32(0x5b8d2646), + 210: uint32(0xfc8883a0), + 211: uint32(0xc1c7b6a3), + 212: uint32(0x7f1524c3), + 213: uint32(0x69cb7492), + 214: uint32(0x47848a0b), + 215: uint32(0x5692b285), + 216: uint32(0x095bbf00), + 217: uint32(0xad19489d), + 218: uint32(0x1462b174), + 219: uint32(0x23820e00), + 220: uint32(0x58428d2a), + 221: uint32(0x0c55f5ea), + 222: uint32(0x1dadf43e), + 223: uint32(0x233f7061), + 224: uint32(0x3372f092), + 225: uint32(0x8d937e41), + 226: uint32(0xd65fecf1), + 227: uint32(0x6c223bdb), + 228: uint32(0x7cde3759), + 229: uint32(0xcbee7460), + 230: uint32(0x4085f2a7), + 231: uint32(0xce77326e), + 232: uint32(0xa6078084), + 233: uint32(0x19f8509e), + 234: uint32(0xe8efd855), + 235: uint32(0x61d99735), + 236: uint32(0xa969a7aa), + 237: uint32(0xc50c06c2), + 238: uint32(0x5a04abfc), + 239: uint32(0x800bcadc), + 240: uint32(0x9e447a2e), + 241: uint32(0xc3453484), + 242: uint32(0xfdd56705), + 243: uint32(0x0e1e9ec9), + 244: uint32(0xdb73dbd3), + 245: uint32(0x105588cd), + 246: uint32(0x675fda79), + 247: uint32(0xe3674340), + 248: uint32(0xc5c43465), + 249: uint32(0x713e38d8), + 250: uint32(0x3d28f89e), + 251: uint32(0xf16dff20), + 252: uint32(0x153e21e7), + 253: uint32(0x8fb03d4a), + 254: uint32(0xe6e39f2b), + 255: uint32(0xdb83adf7), + }, + 2: { + 0: uint32(0xe93d5a68), + 1: uint32(0x948140f7), + 2: uint32(0xf64c261c), + 3: uint32(0x94692934), + 4: uint32(0x411520f7), + 5: uint32(0x7602d4f7), + 6: uint32(0xbcf46b2e), + 7: uint32(0xd4a20068), + 8: uint32(0xd4082471), + 9: uint32(0x3320f46a), + 10: uint32(0x43b7d4b7), + 11: uint32(0x500061af), + 12: uint32(0x1e39f62e), + 13: uint32(0x97244546), + 14: uint32(0x14214f74), + 15: uint32(0xbf8b8840), + 16: uint32(0x4d95fc1d), + 17: uint32(0x96b591af), + 18: uint32(0x70f4ddd3), + 19: uint32(0x66a02f45), + 20: uint32(0xbfbc09ec), + 21: uint32(0x03bd9785), + 22: uint32(0x7fac6dd0), + 23: uint32(0x31cb8504), + 24: uint32(0x96eb27b3), + 25: uint32(0x55fd3941), + 26: uint32(0xda2547e6), + 27: uint32(0xabca0a9a), + 28: uint32(0x28507825), + 29: uint32(0x530429f4), + 30: uint32(0x0a2c86da), + 31: uint32(0xe9b66dfb), + 32: uint32(0x68dc1462), + 33: uint32(0xd7486900), + 34: uint32(0x680ec0a4), + 35: uint32(0x27a18dee), + 36: uint32(0x4f3ffea2), + 37: uint32(0xe887ad8c), + 38: uint32(0xb58ce006), + 39: uint32(0x7af4d6b6), + 40: uint32(0xaace1e7c), + 41: uint32(0xd3375fec), + 42: uint32(0xce78a399), + 43: uint32(0x406b2a42), + 44: uint32(0x20fe9e35), + 45: uint32(0xd9f385b9), + 46: uint32(0xee39d7ab), + 47: uint32(0x3b124e8b), + 48: uint32(0x1dc9faf7), + 49: uint32(0x4b6d1856), + 50: uint32(0x26a36631), + 51: uint32(0xeae397b2), + 52: uint32(0x3a6efa74), + 53: uint32(0xdd5b4332), + 54: uint32(0x6841e7f7), + 55: uint32(0xca7820fb), + 56: uint32(0xfb0af54e), + 57: uint32(0xd8feb397), + 58: uint32(0x454056ac), + 59: uint32(0xba489527), + 60: uint32(0x55533a3a), + 61: uint32(0x20838d87), + 62: uint32(0xfe6ba9b7), + 63: uint32(0xd096954b), + 64: uint32(0x55a867bc), + 65: uint32(0xa1159a58), + 66: uint32(0xcca92963), + 67: uint32(0x99e1db33), + 68: uint32(0xa62a4a56), + 69: uint32(0x3f3125f9), + 70: uint32(0x5ef47e1c), + 71: uint32(0x9029317c), + 72: uint32(0xfdf8e802), + 73: uint32(0x04272f70), + 74: uint32(0x80bb155c), + 75: uint32(0x05282ce3), + 76: uint32(0x95c11548), + 77: uint32(0xe4c66d22), + 78: uint32(0x48c1133f), + 79: uint32(0xc70f86dc), + 80: uint32(0x07f9c9ee), + 81: uint32(0x41041f0f), + 82: uint32(0x404779a4), + 83: uint32(0x5d886e17), + 84: uint32(0x325f51eb), + 85: uint32(0xd59bc0d1), + 86: uint32(0xf2bcc18f), + 87: uint32(0x41113564), + 88: uint32(0x257b7834), + 89: uint32(0x602a9c60), + 90: uint32(0xdff8e8a3), + 91: uint32(0x1f636c1b), + 92: uint32(0x0e12b4c2), + 93: uint32(0x02e1329e), + 94: uint32(0xaf664fd1), + 95: uint32(0xcad18115), + 96: uint32(0x6b2395e0), + 97: uint32(0x333e92e1), + 98: uint32(0x3b240b62), + 99: uint32(0xeebeb922), + 100: uint32(0x85b2a20e), + 101: uint32(0xe6ba0d99), + 102: uint32(0xde720c8c), + 103: uint32(0x2da2f728), + 104: uint32(0xd0127845), + 105: uint32(0x95b794fd), + 106: uint32(0x647d0862), + 107: uint32(0xe7ccf5f0), + 108: uint32(0x5449a36f), + 109: uint32(0x877d48fa), + 110: uint32(0xc39dfd27), + 111: uint32(0xf33e8d1e), + 112: uint32(0x0a476341), + 113: uint32(0x992eff74), + 114: uint32(0x3a6f6eab), + 115: uint32(0xf4f8fd37), + 116: uint32(0xa812dc60), + 117: uint32(0xa1ebddf8), + 118: uint32(0x991be14c), + 119: uint32(0xdb6e6b0d), + 120: uint32(0xc67b5510), + 121: uint32(0x6d672c37), + 122: uint32(0x2765d43b), + 123: uint32(0xdcd0e804), + 124: uint32(0xf1290dc7), + 125: uint32(0xcc00ffa3), + 126: uint32(0xb5390f92), + 127: uint32(0x690fed0b), + 128: uint32(0x667b9ffb), + 129: uint32(0xcedb7d9c), + 130: uint32(0xa091cf0b), + 131: uint32(0xd9155ea3), + 132: uint32(0xbb132f88), + 133: uint32(0x515bad24), + 134: uint32(0x7b9479bf), + 135: uint32(0x763bd6eb), + 136: uint32(0x37392eb3), + 137: uint32(0xcc115979), + 138: uint32(0x8026e297), + 139: uint32(0xf42e312d), + 140: uint32(0x6842ada7), + 141: uint32(0xc66a2b3b), + 142: uint32(0x12754ccc), + 143: uint32(0x782ef11c), + 144: uint32(0x6a124237), + 145: uint32(0xb79251e7), + 146: uint32(0x06a1bbe6), + 147: uint32(0x4bfb6350), + 148: uint32(0x1a6b1018), + 149: uint32(0x11caedfa), + 150: uint32(0x3d25bdd8), + 151: uint32(0xe2e1c3c9), + 152: uint32(0x44421659), + 153: uint32(0x0a121386), + 154: uint32(0xd90cec6e), + 155: uint32(0xd5abea2a), + 156: uint32(0x64af674e), + 157: uint32(0xda86a85f), + 158: uint32(0xbebfe988), + 159: uint32(0x64e4c3fe), + 160: uint32(0x9dbc8057), + 161: uint32(0xf0f7c086), + 162: uint32(0x60787bf8), + 163: uint32(0x6003604d), + 164: uint32(0xd1fd8346), + 165: uint32(0xf6381fb0), + 166: uint32(0x7745ae04), + 167: uint32(0xd736fccc), + 168: uint32(0x83426b33), + 169: uint32(0xf01eab71), + 170: uint32(0xb0804187), + 171: uint32(0x3c005e5f), + 172: uint32(0x77a057be), + 173: uint32(0xbde8ae24), + 174: uint32(0x55464299), + 175: uint32(0xbf582e61), + 176: uint32(0x4e58f48f), + 177: uint32(0xf2ddfda2), + 178: uint32(0xf474ef38), + 179: uint32(0x8789bdc2), + 180: uint32(0x5366f9c3), + 181: uint32(0xc8b38e74), + 182: uint32(0xb475f255), + 183: uint32(0x46fcd9b9), + 184: uint32(0x7aeb2661), + 185: uint32(0x8b1ddf84), + 186: uint32(0x846a0e79), + 187: uint32(0x915f95e2), + 188: uint32(0x466e598e), + 189: uint32(0x20b45770), + 190: uint32(0x8cd55591), + 191: uint32(0xc902de4c), + 192: uint32(0xb90bace1), + 193: uint32(0xbb8205d0), + 194: uint32(0x11a86248), + 195: uint32(0x7574a99e), + 196: uint32(0xb77f19b6), + 197: uint32(0xe0a9dc09), + 198: uint32(0x662d09a1), + 199: uint32(0xc4324633), + 200: uint32(0xe85a1f02), + 201: uint32(0x09f0be8c), + 202: uint32(0x4a99a025), + 203: uint32(0x1d6efe10), + 204: uint32(0x1ab93d1d), + 205: uint32(0x0ba5a4df), + 206: uint32(0xa186f20f), + 207: uint32(0x2868f169), + 208: uint32(0xdcb7da83), + 209: uint32(0x573906fe), + 210: uint32(0xa1e2ce9b), + 211: uint32(0x4fcd7f52), + 212: uint32(0x50115e01), + 213: uint32(0xa70683fa), + 214: uint32(0xa002b5c4), + 215: uint32(0x0de6d027), + 216: uint32(0x9af88c27), + 217: uint32(0x773f8641), + 218: uint32(0xc3604c06), + 219: uint32(0x61a806b5), + 220: uint32(0xf0177a28), + 221: uint32(0xc0f586e0), + 222: uint32(0x006058aa), + 223: uint32(0x30dc7d62), + 224: uint32(0x11e69ed7), + 225: uint32(0x2338ea63), + 226: uint32(0x53c2dd94), + 227: uint32(0xc2c21634), + 228: uint32(0xbbcbee56), + 229: uint32(0x90bcb6de), + 230: uint32(0xebfc7da1), + 231: uint32(0xce591d76), + 232: uint32(0x6f05e409), + 233: uint32(0x4b7c0188), + 234: uint32(0x39720a3d), + 235: uint32(0x7c927c24), + 236: uint32(0x86e3725f), + 237: uint32(0x724d9db9), + 238: uint32(0x1ac15bb4), + 239: uint32(0xd39eb8fc), + 240: uint32(0xed545578), + 241: uint32(0x08fca5b5), + 242: uint32(0xd83d7cd3), + 243: uint32(0x4dad0fc4), + 244: uint32(0x1e50ef5e), + 245: uint32(0xb161e6f8), + 246: uint32(0xa28514d9), + 247: uint32(0x6c51133c), + 248: uint32(0x6fd5c7e7), + 249: uint32(0x56e14ec4), + 250: uint32(0x362abfce), + 251: uint32(0xddc6c837), + 252: uint32(0xd79a3234), + 253: uint32(0x92638212), + 254: uint32(0x670efa8e), + 255: uint32(0x406000e0), + }, + 3: { + 0: uint32(0x3a39ce37), + 1: uint32(0xd3faf5cf), + 2: uint32(0xabc27737), + 3: uint32(0x5ac52d1b), + 4: uint32(0x5cb0679e), + 5: uint32(0x4fa33742), + 6: uint32(0xd3822740), + 7: uint32(0x99bc9bbe), + 8: uint32(0xd5118e9d), + 9: uint32(0xbf0f7315), + 10: uint32(0xd62d1c7e), + 11: uint32(0xc700c47b), + 12: uint32(0xb78c1b6b), + 13: uint32(0x21a19045), + 14: uint32(0xb26eb1be), + 15: uint32(0x6a366eb4), + 16: uint32(0x5748ab2f), + 17: uint32(0xbc946e79), + 18: uint32(0xc6a376d2), + 19: uint32(0x6549c2c8), + 20: uint32(0x530ff8ee), + 21: uint32(0x468dde7d), + 22: uint32(0xd5730a1d), + 23: uint32(0x4cd04dc6), + 24: uint32(0x2939bbdb), + 25: uint32(0xa9ba4650), + 26: uint32(0xac9526e8), + 27: uint32(0xbe5ee304), + 28: uint32(0xa1fad5f0), + 29: uint32(0x6a2d519a), + 30: uint32(0x63ef8ce2), + 31: uint32(0x9a86ee22), + 32: uint32(0xc089c2b8), + 33: uint32(0x43242ef6), + 34: uint32(0xa51e03aa), + 35: uint32(0x9cf2d0a4), + 36: uint32(0x83c061ba), + 37: uint32(0x9be96a4d), + 38: uint32(0x8fe51550), + 39: uint32(0xba645bd6), + 40: uint32(0x2826a2f9), + 41: uint32(0xa73a3ae1), + 42: uint32(0x4ba99586), + 43: uint32(0xef5562e9), + 44: uint32(0xc72fefd3), + 45: uint32(0xf752f7da), + 46: uint32(0x3f046f69), + 47: uint32(0x77fa0a59), + 48: uint32(0x80e4a915), + 49: uint32(0x87b08601), + 50: uint32(0x9b09e6ad), + 51: uint32(0x3b3ee593), + 52: uint32(0xe990fd5a), + 53: uint32(0x9e34d797), + 54: uint32(0x2cf0b7d9), + 55: uint32(0x022b8b51), + 56: uint32(0x96d5ac3a), + 57: uint32(0x017da67d), + 58: uint32(0xd1cf3ed6), + 59: uint32(0x7c7d2d28), + 60: uint32(0x1f9f25cf), + 61: uint32(0xadf2b89b), + 62: uint32(0x5ad6b472), + 63: uint32(0x5a88f54c), + 64: uint32(0xe029ac71), + 65: uint32(0xe019a5e6), + 66: uint32(0x47b0acfd), + 67: uint32(0xed93fa9b), + 68: uint32(0xe8d3c48d), + 69: uint32(0x283b57cc), + 70: uint32(0xf8d56629), + 71: uint32(0x79132e28), + 72: uint32(0x785f0191), + 73: uint32(0xed756055), + 74: uint32(0xf7960e44), + 75: uint32(0xe3d35e8c), + 76: uint32(0x15056dd4), + 77: uint32(0x88f46dba), + 78: uint32(0x03a16125), + 79: uint32(0x0564f0bd), + 80: uint32(0xc3eb9e15), + 81: uint32(0x3c9057a2), + 82: uint32(0x97271aec), + 83: uint32(0xa93a072a), + 84: uint32(0x1b3f6d9b), + 85: uint32(0x1e6321f5), + 86: uint32(0xf59c66fb), + 87: uint32(0x26dcf319), + 88: uint32(0x7533d928), + 89: uint32(0xb155fdf5), + 90: uint32(0x03563482), + 91: uint32(0x8aba3cbb), + 92: uint32(0x28517711), + 93: uint32(0xc20ad9f8), + 94: uint32(0xabcc5167), + 95: uint32(0xccad925f), + 96: uint32(0x4de81751), + 97: uint32(0x3830dc8e), + 98: uint32(0x379d5862), + 99: uint32(0x9320f991), + 100: uint32(0xea7a90c2), + 101: uint32(0xfb3e7bce), + 102: uint32(0x5121ce64), + 103: uint32(0x774fbe32), + 104: uint32(0xa8b6e37e), + 105: uint32(0xc3293d46), + 106: uint32(0x48de5369), + 107: uint32(0x6413e680), + 108: uint32(0xa2ae0810), + 109: uint32(0xdd6db224), + 110: uint32(0x69852dfd), + 111: uint32(0x09072166), + 112: uint32(0xb39a460a), + 113: uint32(0x6445c0dd), + 114: uint32(0x586cdecf), + 115: uint32(0x1c20c8ae), + 116: uint32(0x5bbef7dd), + 117: uint32(0x1b588d40), + 118: uint32(0xccd2017f), + 119: uint32(0x6bb4e3bb), + 120: uint32(0xdda26a7e), + 121: uint32(0x3a59ff45), + 122: uint32(0x3e350a44), + 123: uint32(0xbcb4cdd5), + 124: uint32(0x72eacea8), + 125: uint32(0xfa6484bb), + 126: uint32(0x8d6612ae), + 127: uint32(0xbf3c6f47), + 128: uint32(0xd29be463), + 129: uint32(0x542f5d9e), + 130: uint32(0xaec2771b), + 131: uint32(0xf64e6370), + 132: uint32(0x740e0d8d), + 133: uint32(0xe75b1357), + 134: uint32(0xf8721671), + 135: uint32(0xaf537d5d), + 136: uint32(0x4040cb08), + 137: uint32(0x4eb4e2cc), + 138: uint32(0x34d2466a), + 139: uint32(0x0115af84), + 140: uint32(0xe1b00428), + 141: uint32(0x95983a1d), + 142: uint32(0x06b89fb4), + 143: uint32(0xce6ea048), + 144: uint32(0x6f3f3b82), + 145: uint32(0x3520ab82), + 146: uint32(0x011a1d4b), + 147: uint32(0x277227f8), + 148: uint32(0x611560b1), + 149: uint32(0xe7933fdc), + 150: uint32(0xbb3a792b), + 151: uint32(0x344525bd), + 152: uint32(0xa08839e1), + 153: uint32(0x51ce794b), + 154: uint32(0x2f32c9b7), + 155: uint32(0xa01fbac9), + 156: uint32(0xe01cc87e), + 157: uint32(0xbcc7d1f6), + 158: uint32(0xcf0111c3), + 159: uint32(0xa1e8aac7), + 160: uint32(0x1a908749), + 161: uint32(0xd44fbd9a), + 162: uint32(0xd0dadecb), + 163: uint32(0xd50ada38), + 164: uint32(0x0339c32a), + 165: uint32(0xc6913667), + 166: uint32(0x8df9317c), + 167: uint32(0xe0b12b4f), + 168: uint32(0xf79e59b7), + 169: uint32(0x43f5bb3a), + 170: uint32(0xf2d519ff), + 171: uint32(0x27d9459c), + 172: uint32(0xbf97222c), + 173: uint32(0x15e6fc2a), + 174: uint32(0x0f91fc71), + 175: uint32(0x9b941525), + 176: uint32(0xfae59361), + 177: uint32(0xceb69ceb), + 178: uint32(0xc2a86459), + 179: uint32(0x12baa8d1), + 180: uint32(0xb6c1075e), + 181: uint32(0xe3056a0c), + 182: uint32(0x10d25065), + 183: uint32(0xcb03a442), + 184: uint32(0xe0ec6e0e), + 185: uint32(0x1698db3b), + 186: uint32(0x4c98a0be), + 187: uint32(0x3278e964), + 188: uint32(0x9f1f9532), + 189: uint32(0xe0d392df), + 190: uint32(0xd3a0342b), + 191: uint32(0x8971f21e), + 192: uint32(0x1b0a7441), + 193: uint32(0x4ba3348c), + 194: uint32(0xc5be7120), + 195: uint32(0xc37632d8), + 196: uint32(0xdf359f8d), + 197: uint32(0x9b992f2e), + 198: uint32(0xe60b6f47), + 199: uint32(0x0fe3f11d), + 200: uint32(0xe54cda54), + 201: uint32(0x1edad891), + 202: uint32(0xce6279cf), + 203: uint32(0xcd3e7e6f), + 204: uint32(0x1618b166), + 205: uint32(0xfd2c1d05), + 206: uint32(0x848fd2c5), + 207: uint32(0xf6fb2299), + 208: uint32(0xf523f357), + 209: uint32(0xa6327623), + 210: uint32(0x93a83531), + 211: uint32(0x56cccd02), + 212: uint32(0xacf08162), + 213: uint32(0x5a75ebb5), + 214: uint32(0x6e163697), + 215: uint32(0x88d273cc), + 216: uint32(0xde966292), + 217: uint32(0x81b949d0), + 218: uint32(0x4c50901b), + 219: uint32(0x71c65614), + 220: uint32(0xe6c6c7bd), + 221: uint32(0x327a140a), + 222: uint32(0x45e1d006), + 223: uint32(0xc3f27b9a), + 224: uint32(0xc9aa53fd), + 225: uint32(0x62a80f00), + 226: uint32(0xbb25bfe2), + 227: uint32(0x35bdd2f6), + 228: uint32(0x71126905), + 229: uint32(0xb2040222), + 230: uint32(0xb6cbcf7c), + 231: uint32(0xcd769c2b), + 232: uint32(0x53113ec0), + 233: uint32(0x1640e3d3), + 234: uint32(0x38abbd60), + 235: uint32(0x2547adf0), + 236: uint32(0xba38209c), + 237: uint32(0xf746ce76), + 238: uint32(0x77afa1c5), + 239: uint32(0x20756060), + 240: uint32(0x85cbfe4e), + 241: uint32(0x8ae88dd8), + 242: uint32(0x7aaaf9b0), + 243: uint32(0x4cf9aa7e), + 244: uint32(0x1948c25c), + 245: uint32(0x02fb8a8c), + 246: uint32(0x01c36ae4), + 247: uint32(0xd6ebe1f9), + 248: uint32(0x90d4f869), + 249: uint32(0xa65cdea0), + 250: uint32(0x3f09252d), + 251: uint32(0xc208e69f), + 252: uint32(0xb74e6132), + 253: uint32(0xce77e25b), + 254: uint32(0x578fdfe3), + 255: uint32(0x3ac372e6), + }, + }, +})) + +var _BF_itoa64 = [65]uint8{'.', '/', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9'} + +var _BF_atoi64 = [96]uint8{ + 0: uint8(64), + 1: uint8(64), + 2: uint8(64), + 3: uint8(64), + 4: uint8(64), + 5: uint8(64), + 6: uint8(64), + 7: uint8(64), + 8: uint8(64), + 9: uint8(64), + 10: uint8(64), + 11: uint8(64), + 12: uint8(64), + 13: uint8(64), + 15: uint8(1), + 16: uint8(54), + 17: uint8(55), + 18: uint8(56), + 19: uint8(57), + 20: uint8(58), + 21: uint8(59), + 22: uint8(60), + 23: uint8(61), + 24: uint8(62), + 25: uint8(63), + 26: uint8(64), + 27: uint8(64), + 28: uint8(64), + 29: uint8(64), + 30: uint8(64), + 31: uint8(64), + 32: uint8(64), + 33: uint8(2), + 34: uint8(3), + 35: uint8(4), + 36: uint8(5), + 37: uint8(6), + 38: uint8(7), + 39: uint8(8), + 40: uint8(9), + 41: uint8(10), + 42: uint8(11), + 43: uint8(12), + 44: uint8(13), + 45: uint8(14), + 46: uint8(15), + 47: uint8(16), + 48: uint8(17), + 49: uint8(18), + 50: uint8(19), + 51: uint8(20), + 52: uint8(21), + 53: uint8(22), + 54: uint8(23), + 55: uint8(24), + 56: uint8(25), + 57: uint8(26), + 58: uint8(27), + 59: uint8(64), + 60: uint8(64), + 61: uint8(64), + 62: uint8(64), + 63: uint8(64), + 64: uint8(64), + 65: uint8(28), + 66: uint8(29), + 67: uint8(30), + 68: uint8(31), + 69: uint8(32), + 70: uint8(33), + 71: uint8(34), + 72: uint8(35), + 73: uint8(36), + 74: uint8(37), + 75: uint8(38), + 76: uint8(39), + 77: uint8(40), + 78: uint8(41), + 79: uint8(42), + 80: uint8(43), + 81: uint8(44), + 82: uint8(45), + 83: uint8(46), + 84: uint8(47), + 85: uint8(48), + 86: uint8(49), + 87: uint8(50), + 88: uint8(51), + 89: uint8(52), + 90: uint8(53), + 91: uint8(64), + 92: uint8(64), + 93: uint8(64), + 94: uint8(64), + 95: uint8(64), +} + +func _BF_decode(tls *TLS, dst uintptr, src uintptr, size int32) (r int32) { + var c1, c2, c3, c4, tmp uint32 + var dptr, end, sptr, v1 uintptr + _, _, _, _, _, _, _, _, _ = c1, c2, c3, c4, dptr, end, sptr, tmp, v1 + dptr = dst + end = dptr + uintptr(size) + sptr = src + for cond := true; cond; cond = dptr < end { + v1 = sptr + sptr = sptr + 1 + tmp = uint32(**(**uint8)(__ccgo_up(v1))) + tmp = tmp - uint32(0x20) + if tmp >= uint32(0x60) { + return -int32(1) + } + tmp = uint32(_BF_atoi64[tmp]) + if tmp > uint32(63) { + return -int32(1) + } + c1 = tmp + v1 = sptr + sptr = sptr + 1 + tmp = uint32(**(**uint8)(__ccgo_up(v1))) + tmp = tmp - uint32(0x20) + if tmp >= uint32(0x60) { + return -int32(1) + } + tmp = uint32(_BF_atoi64[tmp]) + if tmp > uint32(63) { + return -int32(1) + } + c2 = tmp + v1 = dptr + dptr = dptr + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(c1<>int32(4)) + if dptr >= end { + break + } + v1 = sptr + sptr = sptr + 1 + tmp = uint32(**(**uint8)(__ccgo_up(v1))) + tmp = tmp - uint32(0x20) + if tmp >= uint32(0x60) { + return -int32(1) + } + tmp = uint32(_BF_atoi64[tmp]) + if tmp > uint32(63) { + return -int32(1) + } + c3 = tmp + v1 = dptr + dptr = dptr + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(c2&uint32(0x0F)<>int32(2)) + if dptr >= end { + break + } + v1 = sptr + sptr = sptr + 1 + tmp = uint32(**(**uint8)(__ccgo_up(v1))) + tmp = tmp - uint32(0x20) + if tmp >= uint32(0x60) { + return -int32(1) + } + tmp = uint32(_BF_atoi64[tmp]) + if tmp > uint32(63) { + return -int32(1) + } + c4 = tmp + v1 = dptr + dptr = dptr + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(c3&uint32(0x03)<>int32(2)] + c1 = c1 & uint32(0x03) << int32(4) + if sptr >= end { + v1 = dptr + dptr = dptr + 1 + **(**uint8)(__ccgo_up(v1)) = _BF_itoa64[c1] + break + } + v1 = sptr + sptr = sptr + 1 + c2 = uint32(**(**uint8)(__ccgo_up(v1))) + c1 = c1 | c2>>int32(4) + v1 = dptr + dptr = dptr + 1 + **(**uint8)(__ccgo_up(v1)) = _BF_itoa64[c1] + c1 = c2 & uint32(0x0f) << int32(2) + if sptr >= end { + v1 = dptr + dptr = dptr + 1 + **(**uint8)(__ccgo_up(v1)) = _BF_itoa64[c1] + break + } + v1 = sptr + sptr = sptr + 1 + c2 = uint32(**(**uint8)(__ccgo_up(v1))) + c1 = c1 | c2>>int32(6) + v1 = dptr + dptr = dptr + 1 + **(**uint8)(__ccgo_up(v1)) = _BF_itoa64[c1] + v1 = dptr + dptr = dptr + 1 + **(**uint8)(__ccgo_up(v1)) = _BF_itoa64[c2&uint32(0x3f)] + } +} + +func _BF_swap(tls *TLS, x uintptr, count int32) { + var tmp TBF_word + var v1, v2 int32 + var v4 uintptr + _, _, _, _ = tmp, v1, v2, v4 + v1 = int32(1) + if *(*uint8)(unsafe.Pointer(&v1)) != 0 { + for { + tmp = **(**TBF_word)(__ccgo_up(x)) + tmp = tmp<>Int32FromInt32(16) + v4 = x + x += 4 + **(**TBF_word)(__ccgo_up(v4)) = tmp&uint32(0x00FF00FF)<>Int32FromInt32(8)&uint32(0x00FF00FF) + goto _3 + _3: + ; + count = count - 1 + v2 = count + if !(v2 != 0) { + break + } + } + } +} + +func _BF_encrypt(tls *TLS, ctx uintptr, L TBF_word, R TBF_word, start uintptr, end uintptr) (r TBF_word) { + var i int32 + var ptr, v2 uintptr + var tmp1, tmp2, tmp3, tmp4 TBF_word + _, _, _, _, _, _, _ = i, ptr, tmp1, tmp2, tmp3, tmp4, v2 + ptr = start + for cond := true; cond; cond = ptr < end { + L = L ^ **(**TBF_word)(__ccgo_up(ctx)) + i = 0 + for { + if !(i < int32(16)) { + break + } + tmp1 = L & uint32(0xFF) + tmp2 = L >> int32(8) + tmp2 = tmp2 & uint32(0xFF) + tmp3 = L >> int32(16) + tmp3 = tmp3 & uint32(0xFF) + tmp4 = L >> int32(24) + tmp1 = **(**TBF_word)(__ccgo_up(ctx + 72 + 3*1024 + uintptr(tmp1)*4)) + tmp2 = **(**TBF_word)(__ccgo_up(ctx + 72 + 2*1024 + uintptr(tmp2)*4)) + tmp3 = **(**TBF_word)(__ccgo_up(ctx + 72 + 1*1024 + uintptr(tmp3)*4)) + tmp3 = tmp3 + **(**TBF_word)(__ccgo_up(ctx + 72 + uintptr(tmp4)*4)) + tmp3 = tmp3 ^ tmp2 + R = R ^ **(**TBF_word)(__ccgo_up(ctx + uintptr(i+int32(1))*4)) + tmp3 = tmp3 + tmp1 + R = R ^ tmp3 + tmp1 = R & uint32(0xFF) + tmp2 = R >> int32(8) + tmp2 = tmp2 & uint32(0xFF) + tmp3 = R >> int32(16) + tmp3 = tmp3 & uint32(0xFF) + tmp4 = R >> int32(24) + tmp1 = **(**TBF_word)(__ccgo_up(ctx + 72 + 3*1024 + uintptr(tmp1)*4)) + tmp2 = **(**TBF_word)(__ccgo_up(ctx + 72 + 2*1024 + uintptr(tmp2)*4)) + tmp3 = **(**TBF_word)(__ccgo_up(ctx + 72 + 1*1024 + uintptr(tmp3)*4)) + tmp3 = tmp3 + **(**TBF_word)(__ccgo_up(ctx + 72 + uintptr(tmp4)*4)) + tmp3 = tmp3 ^ tmp2 + L = L ^ **(**TBF_word)(__ccgo_up(ctx + uintptr(i+int32(1)+int32(1))*4)) + tmp3 = tmp3 + tmp1 + L = L ^ tmp3 + goto _1 + _1: + ; + i = i + int32(2) + } + tmp4 = R + R = L + L = tmp4 ^ **(**TBF_word)(__ccgo_up(ctx + uintptr(Int32FromInt32(BF_N)+Int32FromInt32(1))*4)) + v2 = ptr + ptr += 4 + **(**TBF_word)(__ccgo_up(v2)) = L + v2 = ptr + ptr += 4 + **(**TBF_word)(__ccgo_up(v2)) = R + } + return L +} + +func _BF_set_key(tls *TLS, key uintptr, expanded uintptr, initial uintptr, flags uint8) { + bp := tls.Alloc(16) + defer tls.Free(16) + var bug, i, j uint32 + var diff, safety, sign, v1 TBF_word + var ptr uintptr + var _ /* tmp at bp+0 */ [2]TBF_word + _, _, _, _, _, _, _, _ = bug, diff, i, j, ptr, safety, sign, v1 + ptr = key + /* + * There was a sign extension bug in older revisions of this function. While + * we would have liked to simply fix the bug and move on, we have to provide + * a backwards compatibility feature (essentially the bug) for some systems and + * a safety measure for some others. The latter is needed because for certain + * multiple inputs to the buggy algorithm there exist easily found inputs to + * the correct algorithm that produce the same hash. Thus, we optionally + * deviate from the correct algorithm just enough to avoid such collisions. + * While the bug itself affected the majority of passwords containing + * characters with the 8th bit set (although only a percentage of those in a + * collision-producing way), the anti-collision safety measure affects + * only a subset of passwords containing the '\xff' character (not even all of + * those passwords, just some of them). This character is not found in valid + * UTF-8 sequences and is rarely used in popular 8-bit character encodings. + * Thus, the safety measure is unlikely to cause much annoyance, and is a + * reasonable tradeoff to use when authenticating against existing hashes that + * are not reliably known to have been computed with the correct algorithm. + * + * We use an approach that tries to minimize side-channel leaks of password + * information - that is, we mostly use fixed-cost bitwise operations instead + * of branches or table lookups. (One conditional branch based on password + * length remains. It is not part of the bug aftermath, though, and is + * difficult and possibly unreasonable to avoid given the use of C strings by + * the caller, which results in similar timing leaks anyway.) + * + * For actual implementation, we set an array index in the variable "bug" + * (0 means no bug, 1 means sign extension bug emulation) and a flag in the + * variable "safety" (bit 16 is set when the safety measure is requested). + * Valid combinations of settings are: + * + * Prefix "$2a$": bug = 0, safety = 0x10000 + * Prefix "$2b$": bug = 0, safety = 0 + * Prefix "$2x$": bug = 1, safety = 0 + * Prefix "$2y$": bug = 0, safety = 0 + */ + bug = Uint32FromInt32(Int32FromUint8(flags) & int32(1)) + safety = uint32(flags) & uint32(2) << int32(15) + v1 = Uint32FromInt32(0) + diff = v1 + sign = v1 + i = uint32(0) + for { + if !(i < Uint32FromInt32(Int32FromInt32(BF_N)+Int32FromInt32(2))) { + break + } + v1 = Uint32FromInt32(0) + (**(**[2]TBF_word)(__ccgo_up(bp)))[int32(1)] = v1 + (**(**[2]TBF_word)(__ccgo_up(bp)))[0] = v1 + j = uint32(0) + for { + if !(j < uint32(4)) { + break + } + **(**TBF_word)(__ccgo_up(bp)) <<= uint32(8) + **(**TBF_word)(__ccgo_up(bp)) |= uint32(uint8(**(**uint8)(__ccgo_up(ptr)))) /* correct */ + **(**TBF_word)(__ccgo_up(bp + 1*4)) <<= uint32(8) + **(**TBF_word)(__ccgo_up(bp + 1*4)) |= Uint32FromInt8(Int8FromUint8(**(**uint8)(__ccgo_up(ptr)))) /* bug */ + /* + * Sign extension in the first char has no effect - nothing to overwrite yet, + * and those extra 24 bits will be fully shifted out of the 32-bit word. For + * chars 2, 3, 4 in each four-char block, we set bit 7 of "sign" if sign + * extension in tmp[1] occurs. Once this flag is set, it remains set. + */ + if j != 0 { + sign = sign | (**(**[2]TBF_word)(__ccgo_up(bp)))[int32(1)]&uint32(0x80) + } + if !(**(**uint8)(__ccgo_up(ptr)) != 0) { + ptr = key + } else { + ptr = ptr + 1 + } + goto _4 + _4: + ; + j = j + 1 + } + diff = diff | ((**(**[2]TBF_word)(__ccgo_up(bp)))[0] ^ (**(**[2]TBF_word)(__ccgo_up(bp)))[int32(1)]) /* Non-zero on any differences */ + **(**TBF_word)(__ccgo_up(expanded + uintptr(i)*4)) = (**(**[2]TBF_word)(__ccgo_up(bp)))[bug] + **(**TBF_word)(__ccgo_up(initial + uintptr(i)*4)) = **(**TBF_word)(__ccgo_up(uintptr(unsafe.Pointer(&_BF_init_state)) + uintptr(i)*4)) ^ (**(**[2]TBF_word)(__ccgo_up(bp)))[bug] + goto _2 + _2: + ; + i = i + 1 + } + /* + * At this point, "diff" is zero iff the correct and buggy algorithms produced + * exactly the same result. If so and if "sign" is non-zero, which indicates + * that there was a non-benign sign extension, this means that we have a + * collision between the correctly computed hash for this password and a set of + * passwords that could be supplied to the buggy algorithm. Our safety measure + * is meant to protect from such many-buggy to one-correct collisions, by + * deviating from the correct algorithm in such cases. Let's check for this. + */ + diff = diff | diff>>int32(16) /* still zero iff exact match */ + diff = diff & uint32(0xffff) /* ditto */ + diff = diff + uint32(0xffff) /* bit 16 set iff "diff" was non-zero (on non-match) */ + sign = sign << uint32(9) /* move the non-benign sign extension flag to bit 16 */ + sign = sign & (^diff & safety) /* action needed? */ + /* + * If we have determined that we need to deviate from the correct algorithm, + * flip bit 16 in initial expanded key. (The choice of 16 is arbitrary, but + * let's stick to it now. It came out of the approach we used above, and it's + * not any worse than any other choice we could make.) + * + * It is crucial that we don't do the same to the expanded key used in the main + * Eksblowfish loop. By doing it to only one of these two, we deviate from a + * state that could be directly specified by a password to the buggy algorithm + * (and to the fully correct one as well, but that's a side-effect). + */ + **(**TBF_word)(__ccgo_up(initial)) ^= sign +} + +var _flags_by_subtype = [26]uint8{ + 0: uint8(2), + 1: uint8(4), + 23: uint8(1), + 24: uint8(4), +} + +func _BF_crypt(tls *TLS, key uintptr, setting uintptr, output uintptr, min TBF_word) (r uintptr) { + bp := tls.Alloc(4272) + defer tls.Free(4272) + var L, L1, R, count, tmp1, tmp2, tmp3, tmp4, v1 TBF_word + var done, i int32 + var ptr uintptr + var _ /* LR at bp+4264 */ [2]TBF_word + var _ /* data at bp+0 */ struct { + Fctx TBF_ctx + Fexpanded_key TBF_key + Fbinary struct { + Foutput [0][6]TBF_word + Fsalt [4]TBF_word + F__ccgo_pad2 [8]byte + } + } + _, _, _, _, _, _, _, _, _, _, _, _ = L, L1, R, count, done, i, ptr, tmp1, tmp2, tmp3, tmp4, v1 + if Int32FromUint8(**(**uint8)(__ccgo_up(setting))) != int32('$') || Int32FromUint8(**(**uint8)(__ccgo_up(setting + 1))) != int32('2') || Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(setting + 2)))-int32('a')) > uint32(25) || !(_flags_by_subtype[Int32FromUint8(**(**uint8)(__ccgo_up(setting + 2)))-int32('a')] != 0) || Int32FromUint8(**(**uint8)(__ccgo_up(setting + 3))) != int32('$') || Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(setting + 4)))-int32('0')) > uint32(1) || Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(setting + 5)))-int32('0')) > uint32(9) || Int32FromUint8(**(**uint8)(__ccgo_up(setting + 6))) != int32('$') { + return UintptrFromInt32(0) + } + count = Uint32FromInt32(1) << ((Int32FromUint8(**(**uint8)(__ccgo_up(setting + 4)))-int32('0'))*int32(10) + (Int32FromUint8(**(**uint8)(__ccgo_up(setting + 5))) - int32('0'))) + if count < min || _BF_decode(tls, bp+4240, setting+7, int32(16)) != 0 { + return UintptrFromInt32(0) + } + _BF_swap(tls, bp+4240, int32(4)) + _BF_set_key(tls, key, bp+4168, bp, _flags_by_subtype[Int32FromUint8(**(**uint8)(__ccgo_up(setting + 2)))-int32('a')]) + Xmemcpy(tls, bp+72, uintptr(unsafe.Pointer(&_BF_init_state))+72, uint64(4096)) + L = uint32(0) + R = uint32(0) + ptr = bp + for cond := true; cond; cond = int32(1) != 0 { + L = _BF_encrypt(tls, bp, L^**(**TBF_word)(__ccgo_up(bp + 4240)), R^**(**TBF_word)(__ccgo_up(bp + 4240 + 1*4)), ptr, ptr) + R = **(**TBF_word)(__ccgo_up(ptr + UintptrFromInt32(1)*4)) + ptr = ptr + uintptr(2)*4 + if ptr >= bp+uintptr(Int32FromInt32(BF_N)+Int32FromInt32(2)+Int32FromInt32(4)*Int32FromInt32(0x100))*4 { + break + } + L = _BF_encrypt(tls, bp, L^**(**TBF_word)(__ccgo_up(bp + 4240 + 2*4)), R^**(**TBF_word)(__ccgo_up(bp + 4240 + 3*4)), ptr, ptr) + R = **(**TBF_word)(__ccgo_up(ptr + UintptrFromInt32(1)*4)) + ptr = ptr + uintptr(2)*4 + } + for { + i = 0 + for { + if !(i < Int32FromInt32(BF_N)+Int32FromInt32(2)) { + break + } + **(**TBF_word)(__ccgo_up(bp + uintptr(i)*4)) ^= **(**TBF_word)(__ccgo_up(bp + 4168 + uintptr(i)*4)) + **(**TBF_word)(__ccgo_up(bp + uintptr(i+int32(1))*4)) ^= **(**TBF_word)(__ccgo_up(bp + 4168 + uintptr(i+int32(1))*4)) + goto _3 + _3: + ; + i = i + int32(2) + } + done = 0 + for cond := true; cond; cond = int32(1) != 0 { + _BF_encrypt(tls, bp, uint32(0), uint32(0), bp, bp+uintptr(Int32FromInt32(BF_N)+Int32FromInt32(2)+Int32FromInt32(4)*Int32FromInt32(0x100))*4) + if done != 0 { + break + } + done = int32(1) + tmp1 = **(**TBF_word)(__ccgo_up(bp + 4240)) + tmp2 = **(**TBF_word)(__ccgo_up(bp + 4240 + 1*4)) + tmp3 = **(**TBF_word)(__ccgo_up(bp + 4240 + 2*4)) + tmp4 = **(**TBF_word)(__ccgo_up(bp + 4240 + 3*4)) + i = 0 + for { + if !(i < int32(BF_N)) { + break + } + **(**TBF_word)(__ccgo_up(bp + uintptr(i)*4)) ^= tmp1 + **(**TBF_word)(__ccgo_up(bp + uintptr(i+int32(1))*4)) ^= tmp2 + **(**TBF_word)(__ccgo_up(bp + uintptr(i+int32(2))*4)) ^= tmp3 + **(**TBF_word)(__ccgo_up(bp + uintptr(i+int32(3))*4)) ^= tmp4 + goto _4 + _4: + ; + i = i + int32(4) + } + **(**TBF_word)(__ccgo_up(bp + 16*4)) ^= tmp1 + **(**TBF_word)(__ccgo_up(bp + 17*4)) ^= tmp2 + } + goto _2 + _2: + ; + count = count - 1 + v1 = count + if !(v1 != 0) { + break + } + } + i = 0 + for { + if !(i < int32(6)) { + break + } + L1 = _BF_magic_w[i] + (**(**[2]TBF_word)(__ccgo_up(bp + 4264)))[int32(1)] = _BF_magic_w[i+int32(1)] + count = uint32(64) + for { + L1 = _BF_encrypt(tls, bp, L1, (**(**[2]TBF_word)(__ccgo_up(bp + 4264)))[int32(1)], bp+4264, bp+4264) + goto _7 + _7: + ; + count = count - 1 + v1 = count + if !(v1 != 0) { + break + } + } + **(**TBF_word)(__ccgo_up(bp + 4240 + uintptr(i)*4)) = L1 + **(**TBF_word)(__ccgo_up(bp + 4240 + uintptr(i+int32(1))*4)) = (**(**[2]TBF_word)(__ccgo_up(bp + 4264)))[int32(1)] + goto _5 + _5: + ; + i = i + int32(2) + } + Xmemcpy(tls, output, setting, Uint64FromInt32(Int32FromInt32(7)+Int32FromInt32(22)-Int32FromInt32(1))) + **(**uint8)(__ccgo_up(output + uintptr(Int32FromInt32(7)+Int32FromInt32(22)-Int32FromInt32(1)))) = _BF_itoa64[Int32FromUint8(_BF_atoi64[Int32FromUint8(**(**uint8)(__ccgo_up(setting + uintptr(Int32FromInt32(7)+Int32FromInt32(22)-Int32FromInt32(1)))))-int32(0x20)])&int32(0x30)] + /* This has to be bug-compatible with the original implementation, so + * only encode 23 of the 24 bytes. :-) */ + _BF_swap(tls, bp+4240, int32(6)) + _BF_encode(tls, output+uintptr(Int32FromInt32(7)+Int32FromInt32(22)), bp+4240, int32(23)) + **(**uint8)(__ccgo_up(output + uintptr(Int32FromInt32(7)+Int32FromInt32(22)+Int32FromInt32(31)))) = uint8('\000') + return output +} + +// C documentation +// +// /* +// * Please preserve the runtime self-test. It serves two purposes at once: +// * +// * 1. We really can't afford the risk of producing incompatible hashes e.g. +// * when there's something like gcc bug 26587 again, whereas an application or +// * library integrating this code might not also integrate our external tests or +// * it might not run them after every build. Even if it does, the miscompile +// * might only occur on the production build, but not on a testing build (such +// * as because of different optimization settings). It is painful to recover +// * from incorrectly-computed hashes - merely fixing whatever broke is not +// * enough. Thus, a proactive measure like this self-test is needed. +// * +// * 2. We don't want to leave sensitive data from our actual password hash +// * computation on the stack or in registers. Previous revisions of the code +// * would do explicit cleanups, but simply running the self-test after hash +// * computation is more reliable. +// * +// * The performance cost of this quick self-test is around 0.6% at the "$2a$08" +// * setting. +// */ +func X__crypt_blowfish(tls *TLS, key uintptr, setting uintptr, output uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v setting=%v output=%v, (%v:)", tls, key, setting, output, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(384) + defer tls.Free(384) + var flags uint32 + var k, p, retval, test_hash, test_key, test_setting uintptr + var ok int32 + var _ /* ae at bp+96 */ TBF_key + var _ /* ai at bp+168 */ TBF_key + var _ /* buf at bp+0 */ struct { + Fs [30]uint8 + Fo [63]uint8 + } + var _ /* ye at bp+240 */ TBF_key + var _ /* yi at bp+312 */ TBF_key + _, _, _, _, _, _, _, _ = flags, k, ok, p, retval, test_hash, test_key, test_setting + test_key = __ccgo_ts + 18 + test_setting = __ccgo_ts + 28 + test_hash = uintptr(unsafe.Pointer(&_test_hashes)) + /* Hash the supplied password */ + retval = _BF_crypt(tls, key, setting, output, uint32(16)) + /* + * Do a quick self-test. It is important that we make both calls to BF_crypt() + * from the same scope such that they likely use the same stack locations, + * which makes the second call overwrite the first call's sensitive data on the + * stack and makes it more likely that any alignment related issues would be + * detected by the self-test. + */ + Xmemcpy(tls, bp, test_setting, uint64(30)) + if retval != 0 { + flags = uint32(_flags_by_subtype[Int32FromUint8(**(**uint8)(__ccgo_up(setting + 2)))-int32('a')]) + test_hash = uintptr(unsafe.Pointer(&_test_hashes)) + uintptr(flags&uint32(1))*34 + **(**uint8)(__ccgo_up(bp + 2)) = **(**uint8)(__ccgo_up(setting + 2)) + } + Xmemset(tls, bp+30, int32(0x55), uint64(63)) + **(**uint8)(__ccgo_up(bp + 30 + uintptr(Uint64FromInt64(63)-Uint64FromInt32(1)))) = uint8(0) + p = _BF_crypt(tls, test_key, bp, bp+30, uint32(1)) + ok = BoolInt32(p == bp+30 && !(Xmemcmp(tls, p, bp, Uint64FromInt32(Int32FromInt32(7)+Int32FromInt32(22))) != 0) && !(Xmemcmp(tls, p+uintptr(Int32FromInt32(7)+Int32FromInt32(22)), test_hash, Uint64FromInt32(Int32FromInt32(31)+Int32FromInt32(1)+Int32FromInt32(1)+Int32FromInt32(1))) != 0)) + k = __ccgo_ts + 58 + _BF_set_key(tls, k, bp+96, bp+168, uint8(2)) /* $2a$ */ + _BF_set_key(tls, k, bp+240, bp+312, uint8(4)) /* $2y$ */ + **(**TBF_word)(__ccgo_up(bp + 168)) ^= uint32(0x10000) /* undo the safety (for comparison) */ + ok = BoolInt32(ok != 0 && (**(**TBF_key)(__ccgo_up(bp + 168)))[0] == uint32(0xdb9c59bc) && (**(**TBF_key)(__ccgo_up(bp + 240)))[int32(17)] == uint32(0x33343500) && !(Xmemcmp(tls, bp+96, bp+240, uint64(72)) != 0) && !(Xmemcmp(tls, bp+168, bp+312, uint64(72)) != 0)) + if ok != 0 && retval != 0 { + return retval + } + return __ccgo_ts + 70 +} + +var _test_hashes = [2][34]uint8{ + 0: {'i', '1', 'D', '7', '0', '9', 'v', 'f', 'a', 'm', 'u', 'l', 'i', 'm', 'l', 'G', 'c', 'q', '0', 'q', 'q', '3', 'U', 'v', 'u', 'U', 'a', 's', 'v', 'E', 'a', 0, 'U'}, + 1: {'V', 'U', 'r', 'P', 'm', 'X', 'D', '6', 'q', '/', 'n', 'V', 'S', 'S', 'p', '7', 'p', 'N', 'D', 'h', 'C', 'R', '9', '0', '7', '1', 'I', 'f', 'I', 'R', 'e', 0, 'U'}, +} + +const _PASSWORD_EFMT1 = 95 + +type Texpanded_key = struct { + Fl [16]Tuint32_t + Fr [16]Tuint32_t +} + +var _key_shifts = [16]uint8{ + 0: uint8(1), + 1: uint8(1), + 2: uint8(2), + 3: uint8(2), + 4: uint8(2), + 5: uint8(2), + 6: uint8(2), + 7: uint8(2), + 8: uint8(1), + 9: uint8(2), + 10: uint8(2), + 11: uint8(2), + 12: uint8(2), + 13: uint8(2), + 14: uint8(2), + 15: uint8(1), +} + +var _psbox = [8][64]Tuint32_t{ + 0: { + 0: uint32(0x00808200), + 2: uint32(0x00008000), + 3: uint32(0x00808202), + 4: uint32(0x00808002), + 5: uint32(0x00008202), + 6: uint32(0x00000002), + 7: uint32(0x00008000), + 8: uint32(0x00000200), + 9: uint32(0x00808200), + 10: uint32(0x00808202), + 11: uint32(0x00000200), + 12: uint32(0x00800202), + 13: uint32(0x00808002), + 14: uint32(0x00800000), + 15: uint32(0x00000002), + 16: uint32(0x00000202), + 17: uint32(0x00800200), + 18: uint32(0x00800200), + 19: uint32(0x00008200), + 20: uint32(0x00008200), + 21: uint32(0x00808000), + 22: uint32(0x00808000), + 23: uint32(0x00800202), + 24: uint32(0x00008002), + 25: uint32(0x00800002), + 26: uint32(0x00800002), + 27: uint32(0x00008002), + 29: uint32(0x00000202), + 30: uint32(0x00008202), + 31: uint32(0x00800000), + 32: uint32(0x00008000), + 33: uint32(0x00808202), + 34: uint32(0x00000002), + 35: uint32(0x00808000), + 36: uint32(0x00808200), + 37: uint32(0x00800000), + 38: uint32(0x00800000), + 39: uint32(0x00000200), + 40: uint32(0x00808002), + 41: uint32(0x00008000), + 42: uint32(0x00008200), + 43: uint32(0x00800002), + 44: uint32(0x00000200), + 45: uint32(0x00000002), + 46: uint32(0x00800202), + 47: uint32(0x00008202), + 48: uint32(0x00808202), + 49: uint32(0x00008002), + 50: uint32(0x00808000), + 51: uint32(0x00800202), + 52: uint32(0x00800002), + 53: uint32(0x00000202), + 54: uint32(0x00008202), + 55: uint32(0x00808200), + 56: uint32(0x00000202), + 57: uint32(0x00800200), + 58: uint32(0x00800200), + 60: uint32(0x00008002), + 61: uint32(0x00008200), + 63: uint32(0x00808002), + }, + 1: { + 0: uint32(0x40084010), + 1: uint32(0x40004000), + 2: uint32(0x00004000), + 3: uint32(0x00084010), + 4: uint32(0x00080000), + 5: uint32(0x00000010), + 6: uint32(0x40080010), + 7: uint32(0x40004010), + 8: uint32(0x40000010), + 9: uint32(0x40084010), + 10: uint32(0x40084000), + 11: uint32(0x40000000), + 12: uint32(0x40004000), + 13: uint32(0x00080000), + 14: uint32(0x00000010), + 15: uint32(0x40080010), + 16: uint32(0x00084000), + 17: uint32(0x00080010), + 18: uint32(0x40004010), + 20: uint32(0x40000000), + 21: uint32(0x00004000), + 22: uint32(0x00084010), + 23: uint32(0x40080000), + 24: uint32(0x00080010), + 25: uint32(0x40000010), + 27: uint32(0x00084000), + 28: uint32(0x00004010), + 29: uint32(0x40084000), + 30: uint32(0x40080000), + 31: uint32(0x00004010), + 33: uint32(0x00084010), + 34: uint32(0x40080010), + 35: uint32(0x00080000), + 36: uint32(0x40004010), + 37: uint32(0x40080000), + 38: uint32(0x40084000), + 39: uint32(0x00004000), + 40: uint32(0x40080000), + 41: uint32(0x40004000), + 42: uint32(0x00000010), + 43: uint32(0x40084010), + 44: uint32(0x00084010), + 45: uint32(0x00000010), + 46: uint32(0x00004000), + 47: uint32(0x40000000), + 48: uint32(0x00004010), + 49: uint32(0x40084000), + 50: uint32(0x00080000), + 51: uint32(0x40000010), + 52: uint32(0x00080010), + 53: uint32(0x40004010), + 54: uint32(0x40000010), + 55: uint32(0x00080010), + 56: uint32(0x00084000), + 58: uint32(0x40004000), + 59: uint32(0x00004010), + 60: uint32(0x40000000), + 61: uint32(0x40080010), + 62: uint32(0x40084010), + 63: uint32(0x00084000), + }, + 2: { + 0: uint32(0x00000104), + 1: uint32(0x04010100), + 3: uint32(0x04010004), + 4: uint32(0x04000100), + 6: uint32(0x00010104), + 7: uint32(0x04000100), + 8: uint32(0x00010004), + 9: uint32(0x04000004), + 10: uint32(0x04000004), + 11: uint32(0x00010000), + 12: uint32(0x04010104), + 13: uint32(0x00010004), + 14: uint32(0x04010000), + 15: uint32(0x00000104), + 16: uint32(0x04000000), + 17: uint32(0x00000004), + 18: uint32(0x04010100), + 19: uint32(0x00000100), + 20: uint32(0x00010100), + 21: uint32(0x04010000), + 22: uint32(0x04010004), + 23: uint32(0x00010104), + 24: uint32(0x04000104), + 25: uint32(0x00010100), + 26: uint32(0x00010000), + 27: uint32(0x04000104), + 28: uint32(0x00000004), + 29: uint32(0x04010104), + 30: uint32(0x00000100), + 31: uint32(0x04000000), + 32: uint32(0x04010100), + 33: uint32(0x04000000), + 34: uint32(0x00010004), + 35: uint32(0x00000104), + 36: uint32(0x00010000), + 37: uint32(0x04010100), + 38: uint32(0x04000100), + 40: uint32(0x00000100), + 41: uint32(0x00010004), + 42: uint32(0x04010104), + 43: uint32(0x04000100), + 44: uint32(0x04000004), + 45: uint32(0x00000100), + 47: uint32(0x04010004), + 48: uint32(0x04000104), + 49: uint32(0x00010000), + 50: uint32(0x04000000), + 51: uint32(0x04010104), + 52: uint32(0x00000004), + 53: uint32(0x00010104), + 54: uint32(0x00010100), + 55: uint32(0x04000004), + 56: uint32(0x04010000), + 57: uint32(0x04000104), + 58: uint32(0x00000104), + 59: uint32(0x04010000), + 60: uint32(0x00010104), + 61: uint32(0x00000004), + 62: uint32(0x04010004), + 63: uint32(0x00010100), + }, + 3: { + 0: uint32(0x80401000), + 1: uint32(0x80001040), + 2: uint32(0x80001040), + 3: uint32(0x00000040), + 4: uint32(0x00401040), + 5: uint32(0x80400040), + 6: uint32(0x80400000), + 7: uint32(0x80001000), + 9: uint32(0x00401000), + 10: uint32(0x00401000), + 11: uint32(0x80401040), + 12: uint32(0x80000040), + 14: uint32(0x00400040), + 15: uint32(0x80400000), + 16: uint32(0x80000000), + 17: uint32(0x00001000), + 18: uint32(0x00400000), + 19: uint32(0x80401000), + 20: uint32(0x00000040), + 21: uint32(0x00400000), + 22: uint32(0x80001000), + 23: uint32(0x00001040), + 24: uint32(0x80400040), + 25: uint32(0x80000000), + 26: uint32(0x00001040), + 27: uint32(0x00400040), + 28: uint32(0x00001000), + 29: uint32(0x00401040), + 30: uint32(0x80401040), + 31: uint32(0x80000040), + 32: uint32(0x00400040), + 33: uint32(0x80400000), + 34: uint32(0x00401000), + 35: uint32(0x80401040), + 36: uint32(0x80000040), + 39: uint32(0x00401000), + 40: uint32(0x00001040), + 41: uint32(0x00400040), + 42: uint32(0x80400040), + 43: uint32(0x80000000), + 44: uint32(0x80401000), + 45: uint32(0x80001040), + 46: uint32(0x80001040), + 47: uint32(0x00000040), + 48: uint32(0x80401040), + 49: uint32(0x80000040), + 50: uint32(0x80000000), + 51: uint32(0x00001000), + 52: uint32(0x80400000), + 53: uint32(0x80001000), + 54: uint32(0x00401040), + 55: uint32(0x80400040), + 56: uint32(0x80001000), + 57: uint32(0x00001040), + 58: uint32(0x00400000), + 59: uint32(0x80401000), + 60: uint32(0x00000040), + 61: uint32(0x00400000), + 62: uint32(0x00001000), + 63: uint32(0x00401040), + }, + 4: { + 0: uint32(0x00000080), + 1: uint32(0x01040080), + 2: uint32(0x01040000), + 3: uint32(0x21000080), + 4: uint32(0x00040000), + 5: uint32(0x00000080), + 6: uint32(0x20000000), + 7: uint32(0x01040000), + 8: uint32(0x20040080), + 9: uint32(0x00040000), + 10: uint32(0x01000080), + 11: uint32(0x20040080), + 12: uint32(0x21000080), + 13: uint32(0x21040000), + 14: uint32(0x00040080), + 15: uint32(0x20000000), + 16: uint32(0x01000000), + 17: uint32(0x20040000), + 18: uint32(0x20040000), + 20: uint32(0x20000080), + 21: uint32(0x21040080), + 22: uint32(0x21040080), + 23: uint32(0x01000080), + 24: uint32(0x21040000), + 25: uint32(0x20000080), + 27: uint32(0x21000000), + 28: uint32(0x01040080), + 29: uint32(0x01000000), + 30: uint32(0x21000000), + 31: uint32(0x00040080), + 32: uint32(0x00040000), + 33: uint32(0x21000080), + 34: uint32(0x00000080), + 35: uint32(0x01000000), + 36: uint32(0x20000000), + 37: uint32(0x01040000), + 38: uint32(0x21000080), + 39: uint32(0x20040080), + 40: uint32(0x01000080), + 41: uint32(0x20000000), + 42: uint32(0x21040000), + 43: uint32(0x01040080), + 44: uint32(0x20040080), + 45: uint32(0x00000080), + 46: uint32(0x01000000), + 47: uint32(0x21040000), + 48: uint32(0x21040080), + 49: uint32(0x00040080), + 50: uint32(0x21000000), + 51: uint32(0x21040080), + 52: uint32(0x01040000), + 54: uint32(0x20040000), + 55: uint32(0x21000000), + 56: uint32(0x00040080), + 57: uint32(0x01000080), + 58: uint32(0x20000080), + 59: uint32(0x00040000), + 61: uint32(0x20040000), + 62: uint32(0x01040080), + 63: uint32(0x20000080), + }, + 5: { + 0: uint32(0x10000008), + 1: uint32(0x10200000), + 2: uint32(0x00002000), + 3: uint32(0x10202008), + 4: uint32(0x10200000), + 5: uint32(0x00000008), + 6: uint32(0x10202008), + 7: uint32(0x00200000), + 8: uint32(0x10002000), + 9: uint32(0x00202008), + 10: uint32(0x00200000), + 11: uint32(0x10000008), + 12: uint32(0x00200008), + 13: uint32(0x10002000), + 14: uint32(0x10000000), + 15: uint32(0x00002008), + 17: uint32(0x00200008), + 18: uint32(0x10002008), + 19: uint32(0x00002000), + 20: uint32(0x00202000), + 21: uint32(0x10002008), + 22: uint32(0x00000008), + 23: uint32(0x10200008), + 24: uint32(0x10200008), + 26: uint32(0x00202008), + 27: uint32(0x10202000), + 28: uint32(0x00002008), + 29: uint32(0x00202000), + 30: uint32(0x10202000), + 31: uint32(0x10000000), + 32: uint32(0x10002000), + 33: uint32(0x00000008), + 34: uint32(0x10200008), + 35: uint32(0x00202000), + 36: uint32(0x10202008), + 37: uint32(0x00200000), + 38: uint32(0x00002008), + 39: uint32(0x10000008), + 40: uint32(0x00200000), + 41: uint32(0x10002000), + 42: uint32(0x10000000), + 43: uint32(0x00002008), + 44: uint32(0x10000008), + 45: uint32(0x10202008), + 46: uint32(0x00202000), + 47: uint32(0x10200000), + 48: uint32(0x00202008), + 49: uint32(0x10202000), + 51: uint32(0x10200008), + 52: uint32(0x00000008), + 53: uint32(0x00002000), + 54: uint32(0x10200000), + 55: uint32(0x00202008), + 56: uint32(0x00002000), + 57: uint32(0x00200008), + 58: uint32(0x10002008), + 60: uint32(0x10202000), + 61: uint32(0x10000000), + 62: uint32(0x00200008), + 63: uint32(0x10002008), + }, + 6: { + 0: uint32(0x00100000), + 1: uint32(0x02100001), + 2: uint32(0x02000401), + 4: uint32(0x00000400), + 5: uint32(0x02000401), + 6: uint32(0x00100401), + 7: uint32(0x02100400), + 8: uint32(0x02100401), + 9: uint32(0x00100000), + 11: uint32(0x02000001), + 12: uint32(0x00000001), + 13: uint32(0x02000000), + 14: uint32(0x02100001), + 15: uint32(0x00000401), + 16: uint32(0x02000400), + 17: uint32(0x00100401), + 18: uint32(0x00100001), + 19: uint32(0x02000400), + 20: uint32(0x02000001), + 21: uint32(0x02100000), + 22: uint32(0x02100400), + 23: uint32(0x00100001), + 24: uint32(0x02100000), + 25: uint32(0x00000400), + 26: uint32(0x00000401), + 27: uint32(0x02100401), + 28: uint32(0x00100400), + 29: uint32(0x00000001), + 30: uint32(0x02000000), + 31: uint32(0x00100400), + 32: uint32(0x02000000), + 33: uint32(0x00100400), + 34: uint32(0x00100000), + 35: uint32(0x02000401), + 36: uint32(0x02000401), + 37: uint32(0x02100001), + 38: uint32(0x02100001), + 39: uint32(0x00000001), + 40: uint32(0x00100001), + 41: uint32(0x02000000), + 42: uint32(0x02000400), + 43: uint32(0x00100000), + 44: uint32(0x02100400), + 45: uint32(0x00000401), + 46: uint32(0x00100401), + 47: uint32(0x02100400), + 48: uint32(0x00000401), + 49: uint32(0x02000001), + 50: uint32(0x02100401), + 51: uint32(0x02100000), + 52: uint32(0x00100400), + 54: uint32(0x00000001), + 55: uint32(0x02100401), + 57: uint32(0x00100401), + 58: uint32(0x02100000), + 59: uint32(0x00000400), + 60: uint32(0x02000001), + 61: uint32(0x02000400), + 62: uint32(0x00000400), + 63: uint32(0x00100001), + }, + 7: { + 0: uint32(0x08000820), + 1: uint32(0x00000800), + 2: uint32(0x00020000), + 3: uint32(0x08020820), + 4: uint32(0x08000000), + 5: uint32(0x08000820), + 6: uint32(0x00000020), + 7: uint32(0x08000000), + 8: uint32(0x00020020), + 9: uint32(0x08020000), + 10: uint32(0x08020820), + 11: uint32(0x00020800), + 12: uint32(0x08020800), + 13: uint32(0x00020820), + 14: uint32(0x00000800), + 15: uint32(0x00000020), + 16: uint32(0x08020000), + 17: uint32(0x08000020), + 18: uint32(0x08000800), + 19: uint32(0x00000820), + 20: uint32(0x00020800), + 21: uint32(0x00020020), + 22: uint32(0x08020020), + 23: uint32(0x08020800), + 24: uint32(0x00000820), + 27: uint32(0x08020020), + 28: uint32(0x08000020), + 29: uint32(0x08000800), + 30: uint32(0x00020820), + 31: uint32(0x00020000), + 32: uint32(0x00020820), + 33: uint32(0x00020000), + 34: uint32(0x08020800), + 35: uint32(0x00000800), + 36: uint32(0x00000020), + 37: uint32(0x08020020), + 38: uint32(0x00000800), + 39: uint32(0x00020820), + 40: uint32(0x08000800), + 41: uint32(0x00000020), + 42: uint32(0x08000020), + 43: uint32(0x08020000), + 44: uint32(0x08020020), + 45: uint32(0x08000000), + 46: uint32(0x00020000), + 47: uint32(0x08000820), + 49: uint32(0x08020820), + 50: uint32(0x00020020), + 51: uint32(0x08000020), + 52: uint32(0x08020000), + 53: uint32(0x08000800), + 54: uint32(0x08000820), + 56: uint32(0x08020820), + 57: uint32(0x00020800), + 58: uint32(0x00020800), + 59: uint32(0x00000820), + 60: uint32(0x00000820), + 61: uint32(0x00020020), + 62: uint32(0x08000000), + 63: uint32(0x08020800), + }, +} +var _ip_maskl = [16][16]Tuint32_t{ + 0: { + 1: uint32(0x00010000), + 3: uint32(0x00010000), + 4: uint32(0x01000000), + 5: uint32(0x01010000), + 6: uint32(0x01000000), + 7: uint32(0x01010000), + 9: uint32(0x00010000), + 11: uint32(0x00010000), + 12: uint32(0x01000000), + 13: uint32(0x01010000), + 14: uint32(0x01000000), + 15: uint32(0x01010000), + }, + 1: { + 1: uint32(0x00000001), + 3: uint32(0x00000001), + 4: uint32(0x00000100), + 5: uint32(0x00000101), + 6: uint32(0x00000100), + 7: uint32(0x00000101), + 9: uint32(0x00000001), + 11: uint32(0x00000001), + 12: uint32(0x00000100), + 13: uint32(0x00000101), + 14: uint32(0x00000100), + 15: uint32(0x00000101), + }, + 2: { + 1: uint32(0x00020000), + 3: uint32(0x00020000), + 4: uint32(0x02000000), + 5: uint32(0x02020000), + 6: uint32(0x02000000), + 7: uint32(0x02020000), + 9: uint32(0x00020000), + 11: uint32(0x00020000), + 12: uint32(0x02000000), + 13: uint32(0x02020000), + 14: uint32(0x02000000), + 15: uint32(0x02020000), + }, + 3: { + 1: uint32(0x00000002), + 3: uint32(0x00000002), + 4: uint32(0x00000200), + 5: uint32(0x00000202), + 6: uint32(0x00000200), + 7: uint32(0x00000202), + 9: uint32(0x00000002), + 11: uint32(0x00000002), + 12: uint32(0x00000200), + 13: uint32(0x00000202), + 14: uint32(0x00000200), + 15: uint32(0x00000202), + }, + 4: { + 1: uint32(0x00040000), + 3: uint32(0x00040000), + 4: uint32(0x04000000), + 5: uint32(0x04040000), + 6: uint32(0x04000000), + 7: uint32(0x04040000), + 9: uint32(0x00040000), + 11: uint32(0x00040000), + 12: uint32(0x04000000), + 13: uint32(0x04040000), + 14: uint32(0x04000000), + 15: uint32(0x04040000), + }, + 5: { + 1: uint32(0x00000004), + 3: uint32(0x00000004), + 4: uint32(0x00000400), + 5: uint32(0x00000404), + 6: uint32(0x00000400), + 7: uint32(0x00000404), + 9: uint32(0x00000004), + 11: uint32(0x00000004), + 12: uint32(0x00000400), + 13: uint32(0x00000404), + 14: uint32(0x00000400), + 15: uint32(0x00000404), + }, + 6: { + 1: uint32(0x00080000), + 3: uint32(0x00080000), + 4: uint32(0x08000000), + 5: uint32(0x08080000), + 6: uint32(0x08000000), + 7: uint32(0x08080000), + 9: uint32(0x00080000), + 11: uint32(0x00080000), + 12: uint32(0x08000000), + 13: uint32(0x08080000), + 14: uint32(0x08000000), + 15: uint32(0x08080000), + }, + 7: { + 1: uint32(0x00000008), + 3: uint32(0x00000008), + 4: uint32(0x00000800), + 5: uint32(0x00000808), + 6: uint32(0x00000800), + 7: uint32(0x00000808), + 9: uint32(0x00000008), + 11: uint32(0x00000008), + 12: uint32(0x00000800), + 13: uint32(0x00000808), + 14: uint32(0x00000800), + 15: uint32(0x00000808), + }, + 8: { + 1: uint32(0x00100000), + 3: uint32(0x00100000), + 4: uint32(0x10000000), + 5: uint32(0x10100000), + 6: uint32(0x10000000), + 7: uint32(0x10100000), + 9: uint32(0x00100000), + 11: uint32(0x00100000), + 12: uint32(0x10000000), + 13: uint32(0x10100000), + 14: uint32(0x10000000), + 15: uint32(0x10100000), + }, + 9: { + 1: uint32(0x00000010), + 3: uint32(0x00000010), + 4: uint32(0x00001000), + 5: uint32(0x00001010), + 6: uint32(0x00001000), + 7: uint32(0x00001010), + 9: uint32(0x00000010), + 11: uint32(0x00000010), + 12: uint32(0x00001000), + 13: uint32(0x00001010), + 14: uint32(0x00001000), + 15: uint32(0x00001010), + }, + 10: { + 1: uint32(0x00200000), + 3: uint32(0x00200000), + 4: uint32(0x20000000), + 5: uint32(0x20200000), + 6: uint32(0x20000000), + 7: uint32(0x20200000), + 9: uint32(0x00200000), + 11: uint32(0x00200000), + 12: uint32(0x20000000), + 13: uint32(0x20200000), + 14: uint32(0x20000000), + 15: uint32(0x20200000), + }, + 11: { + 1: uint32(0x00000020), + 3: uint32(0x00000020), + 4: uint32(0x00002000), + 5: uint32(0x00002020), + 6: uint32(0x00002000), + 7: uint32(0x00002020), + 9: uint32(0x00000020), + 11: uint32(0x00000020), + 12: uint32(0x00002000), + 13: uint32(0x00002020), + 14: uint32(0x00002000), + 15: uint32(0x00002020), + }, + 12: { + 1: uint32(0x00400000), + 3: uint32(0x00400000), + 4: uint32(0x40000000), + 5: uint32(0x40400000), + 6: uint32(0x40000000), + 7: uint32(0x40400000), + 9: uint32(0x00400000), + 11: uint32(0x00400000), + 12: uint32(0x40000000), + 13: uint32(0x40400000), + 14: uint32(0x40000000), + 15: uint32(0x40400000), + }, + 13: { + 1: uint32(0x00000040), + 3: uint32(0x00000040), + 4: uint32(0x00004000), + 5: uint32(0x00004040), + 6: uint32(0x00004000), + 7: uint32(0x00004040), + 9: uint32(0x00000040), + 11: uint32(0x00000040), + 12: uint32(0x00004000), + 13: uint32(0x00004040), + 14: uint32(0x00004000), + 15: uint32(0x00004040), + }, + 14: { + 1: uint32(0x00800000), + 3: uint32(0x00800000), + 4: uint32(0x80000000), + 5: uint32(0x80800000), + 6: uint32(0x80000000), + 7: uint32(0x80800000), + 9: uint32(0x00800000), + 11: uint32(0x00800000), + 12: uint32(0x80000000), + 13: uint32(0x80800000), + 14: uint32(0x80000000), + 15: uint32(0x80800000), + }, + 15: { + 1: uint32(0x00000080), + 3: uint32(0x00000080), + 4: uint32(0x00008000), + 5: uint32(0x00008080), + 6: uint32(0x00008000), + 7: uint32(0x00008080), + 9: uint32(0x00000080), + 11: uint32(0x00000080), + 12: uint32(0x00008000), + 13: uint32(0x00008080), + 14: uint32(0x00008000), + 15: uint32(0x00008080), + }, +} +var _ip_maskr = [16][16]Tuint32_t{ + 0: { + 2: uint32(0x00010000), + 3: uint32(0x00010000), + 6: uint32(0x00010000), + 7: uint32(0x00010000), + 8: uint32(0x01000000), + 9: uint32(0x01000000), + 10: uint32(0x01010000), + 11: uint32(0x01010000), + 12: uint32(0x01000000), + 13: uint32(0x01000000), + 14: uint32(0x01010000), + 15: uint32(0x01010000), + }, + 1: { + 2: uint32(0x00000001), + 3: uint32(0x00000001), + 6: uint32(0x00000001), + 7: uint32(0x00000001), + 8: uint32(0x00000100), + 9: uint32(0x00000100), + 10: uint32(0x00000101), + 11: uint32(0x00000101), + 12: uint32(0x00000100), + 13: uint32(0x00000100), + 14: uint32(0x00000101), + 15: uint32(0x00000101), + }, + 2: { + 2: uint32(0x00020000), + 3: uint32(0x00020000), + 6: uint32(0x00020000), + 7: uint32(0x00020000), + 8: uint32(0x02000000), + 9: uint32(0x02000000), + 10: uint32(0x02020000), + 11: uint32(0x02020000), + 12: uint32(0x02000000), + 13: uint32(0x02000000), + 14: uint32(0x02020000), + 15: uint32(0x02020000), + }, + 3: { + 2: uint32(0x00000002), + 3: uint32(0x00000002), + 6: uint32(0x00000002), + 7: uint32(0x00000002), + 8: uint32(0x00000200), + 9: uint32(0x00000200), + 10: uint32(0x00000202), + 11: uint32(0x00000202), + 12: uint32(0x00000200), + 13: uint32(0x00000200), + 14: uint32(0x00000202), + 15: uint32(0x00000202), + }, + 4: { + 2: uint32(0x00040000), + 3: uint32(0x00040000), + 6: uint32(0x00040000), + 7: uint32(0x00040000), + 8: uint32(0x04000000), + 9: uint32(0x04000000), + 10: uint32(0x04040000), + 11: uint32(0x04040000), + 12: uint32(0x04000000), + 13: uint32(0x04000000), + 14: uint32(0x04040000), + 15: uint32(0x04040000), + }, + 5: { + 2: uint32(0x00000004), + 3: uint32(0x00000004), + 6: uint32(0x00000004), + 7: uint32(0x00000004), + 8: uint32(0x00000400), + 9: uint32(0x00000400), + 10: uint32(0x00000404), + 11: uint32(0x00000404), + 12: uint32(0x00000400), + 13: uint32(0x00000400), + 14: uint32(0x00000404), + 15: uint32(0x00000404), + }, + 6: { + 2: uint32(0x00080000), + 3: uint32(0x00080000), + 6: uint32(0x00080000), + 7: uint32(0x00080000), + 8: uint32(0x08000000), + 9: uint32(0x08000000), + 10: uint32(0x08080000), + 11: uint32(0x08080000), + 12: uint32(0x08000000), + 13: uint32(0x08000000), + 14: uint32(0x08080000), + 15: uint32(0x08080000), + }, + 7: { + 2: uint32(0x00000008), + 3: uint32(0x00000008), + 6: uint32(0x00000008), + 7: uint32(0x00000008), + 8: uint32(0x00000800), + 9: uint32(0x00000800), + 10: uint32(0x00000808), + 11: uint32(0x00000808), + 12: uint32(0x00000800), + 13: uint32(0x00000800), + 14: uint32(0x00000808), + 15: uint32(0x00000808), + }, + 8: { + 2: uint32(0x00100000), + 3: uint32(0x00100000), + 6: uint32(0x00100000), + 7: uint32(0x00100000), + 8: uint32(0x10000000), + 9: uint32(0x10000000), + 10: uint32(0x10100000), + 11: uint32(0x10100000), + 12: uint32(0x10000000), + 13: uint32(0x10000000), + 14: uint32(0x10100000), + 15: uint32(0x10100000), + }, + 9: { + 2: uint32(0x00000010), + 3: uint32(0x00000010), + 6: uint32(0x00000010), + 7: uint32(0x00000010), + 8: uint32(0x00001000), + 9: uint32(0x00001000), + 10: uint32(0x00001010), + 11: uint32(0x00001010), + 12: uint32(0x00001000), + 13: uint32(0x00001000), + 14: uint32(0x00001010), + 15: uint32(0x00001010), + }, + 10: { + 2: uint32(0x00200000), + 3: uint32(0x00200000), + 6: uint32(0x00200000), + 7: uint32(0x00200000), + 8: uint32(0x20000000), + 9: uint32(0x20000000), + 10: uint32(0x20200000), + 11: uint32(0x20200000), + 12: uint32(0x20000000), + 13: uint32(0x20000000), + 14: uint32(0x20200000), + 15: uint32(0x20200000), + }, + 11: { + 2: uint32(0x00000020), + 3: uint32(0x00000020), + 6: uint32(0x00000020), + 7: uint32(0x00000020), + 8: uint32(0x00002000), + 9: uint32(0x00002000), + 10: uint32(0x00002020), + 11: uint32(0x00002020), + 12: uint32(0x00002000), + 13: uint32(0x00002000), + 14: uint32(0x00002020), + 15: uint32(0x00002020), + }, + 12: { + 2: uint32(0x00400000), + 3: uint32(0x00400000), + 6: uint32(0x00400000), + 7: uint32(0x00400000), + 8: uint32(0x40000000), + 9: uint32(0x40000000), + 10: uint32(0x40400000), + 11: uint32(0x40400000), + 12: uint32(0x40000000), + 13: uint32(0x40000000), + 14: uint32(0x40400000), + 15: uint32(0x40400000), + }, + 13: { + 2: uint32(0x00000040), + 3: uint32(0x00000040), + 6: uint32(0x00000040), + 7: uint32(0x00000040), + 8: uint32(0x00004000), + 9: uint32(0x00004000), + 10: uint32(0x00004040), + 11: uint32(0x00004040), + 12: uint32(0x00004000), + 13: uint32(0x00004000), + 14: uint32(0x00004040), + 15: uint32(0x00004040), + }, + 14: { + 2: uint32(0x00800000), + 3: uint32(0x00800000), + 6: uint32(0x00800000), + 7: uint32(0x00800000), + 8: uint32(0x80000000), + 9: uint32(0x80000000), + 10: uint32(0x80800000), + 11: uint32(0x80800000), + 12: uint32(0x80000000), + 13: uint32(0x80000000), + 14: uint32(0x80800000), + 15: uint32(0x80800000), + }, + 15: { + 2: uint32(0x00000080), + 3: uint32(0x00000080), + 6: uint32(0x00000080), + 7: uint32(0x00000080), + 8: uint32(0x00008000), + 9: uint32(0x00008000), + 10: uint32(0x00008080), + 11: uint32(0x00008080), + 12: uint32(0x00008000), + 13: uint32(0x00008000), + 14: uint32(0x00008080), + 15: uint32(0x00008080), + }, +} +var _fp_maskl = [8][16]Tuint32_t{ + 0: { + 1: uint32(0x40000000), + 2: uint32(0x00400000), + 3: uint32(0x40400000), + 4: uint32(0x00004000), + 5: uint32(0x40004000), + 6: uint32(0x00404000), + 7: uint32(0x40404000), + 8: uint32(0x00000040), + 9: uint32(0x40000040), + 10: uint32(0x00400040), + 11: uint32(0x40400040), + 12: uint32(0x00004040), + 13: uint32(0x40004040), + 14: uint32(0x00404040), + 15: uint32(0x40404040), + }, + 1: { + 1: uint32(0x10000000), + 2: uint32(0x00100000), + 3: uint32(0x10100000), + 4: uint32(0x00001000), + 5: uint32(0x10001000), + 6: uint32(0x00101000), + 7: uint32(0x10101000), + 8: uint32(0x00000010), + 9: uint32(0x10000010), + 10: uint32(0x00100010), + 11: uint32(0x10100010), + 12: uint32(0x00001010), + 13: uint32(0x10001010), + 14: uint32(0x00101010), + 15: uint32(0x10101010), + }, + 2: { + 1: uint32(0x04000000), + 2: uint32(0x00040000), + 3: uint32(0x04040000), + 4: uint32(0x00000400), + 5: uint32(0x04000400), + 6: uint32(0x00040400), + 7: uint32(0x04040400), + 8: uint32(0x00000004), + 9: uint32(0x04000004), + 10: uint32(0x00040004), + 11: uint32(0x04040004), + 12: uint32(0x00000404), + 13: uint32(0x04000404), + 14: uint32(0x00040404), + 15: uint32(0x04040404), + }, + 3: { + 1: uint32(0x01000000), + 2: uint32(0x00010000), + 3: uint32(0x01010000), + 4: uint32(0x00000100), + 5: uint32(0x01000100), + 6: uint32(0x00010100), + 7: uint32(0x01010100), + 8: uint32(0x00000001), + 9: uint32(0x01000001), + 10: uint32(0x00010001), + 11: uint32(0x01010001), + 12: uint32(0x00000101), + 13: uint32(0x01000101), + 14: uint32(0x00010101), + 15: uint32(0x01010101), + }, + 4: { + 1: uint32(0x80000000), + 2: uint32(0x00800000), + 3: uint32(0x80800000), + 4: uint32(0x00008000), + 5: uint32(0x80008000), + 6: uint32(0x00808000), + 7: uint32(0x80808000), + 8: uint32(0x00000080), + 9: uint32(0x80000080), + 10: uint32(0x00800080), + 11: uint32(0x80800080), + 12: uint32(0x00008080), + 13: uint32(0x80008080), + 14: uint32(0x00808080), + 15: uint32(0x80808080), + }, + 5: { + 1: uint32(0x20000000), + 2: uint32(0x00200000), + 3: uint32(0x20200000), + 4: uint32(0x00002000), + 5: uint32(0x20002000), + 6: uint32(0x00202000), + 7: uint32(0x20202000), + 8: uint32(0x00000020), + 9: uint32(0x20000020), + 10: uint32(0x00200020), + 11: uint32(0x20200020), + 12: uint32(0x00002020), + 13: uint32(0x20002020), + 14: uint32(0x00202020), + 15: uint32(0x20202020), + }, + 6: { + 1: uint32(0x08000000), + 2: uint32(0x00080000), + 3: uint32(0x08080000), + 4: uint32(0x00000800), + 5: uint32(0x08000800), + 6: uint32(0x00080800), + 7: uint32(0x08080800), + 8: uint32(0x00000008), + 9: uint32(0x08000008), + 10: uint32(0x00080008), + 11: uint32(0x08080008), + 12: uint32(0x00000808), + 13: uint32(0x08000808), + 14: uint32(0x00080808), + 15: uint32(0x08080808), + }, + 7: { + 1: uint32(0x02000000), + 2: uint32(0x00020000), + 3: uint32(0x02020000), + 4: uint32(0x00000200), + 5: uint32(0x02000200), + 6: uint32(0x00020200), + 7: uint32(0x02020200), + 8: uint32(0x00000002), + 9: uint32(0x02000002), + 10: uint32(0x00020002), + 11: uint32(0x02020002), + 12: uint32(0x00000202), + 13: uint32(0x02000202), + 14: uint32(0x00020202), + 15: uint32(0x02020202), + }, +} +var _fp_maskr = [8][16]Tuint32_t{ + 0: { + 1: uint32(0x40000000), + 2: uint32(0x00400000), + 3: uint32(0x40400000), + 4: uint32(0x00004000), + 5: uint32(0x40004000), + 6: uint32(0x00404000), + 7: uint32(0x40404000), + 8: uint32(0x00000040), + 9: uint32(0x40000040), + 10: uint32(0x00400040), + 11: uint32(0x40400040), + 12: uint32(0x00004040), + 13: uint32(0x40004040), + 14: uint32(0x00404040), + 15: uint32(0x40404040), + }, + 1: { + 1: uint32(0x10000000), + 2: uint32(0x00100000), + 3: uint32(0x10100000), + 4: uint32(0x00001000), + 5: uint32(0x10001000), + 6: uint32(0x00101000), + 7: uint32(0x10101000), + 8: uint32(0x00000010), + 9: uint32(0x10000010), + 10: uint32(0x00100010), + 11: uint32(0x10100010), + 12: uint32(0x00001010), + 13: uint32(0x10001010), + 14: uint32(0x00101010), + 15: uint32(0x10101010), + }, + 2: { + 1: uint32(0x04000000), + 2: uint32(0x00040000), + 3: uint32(0x04040000), + 4: uint32(0x00000400), + 5: uint32(0x04000400), + 6: uint32(0x00040400), + 7: uint32(0x04040400), + 8: uint32(0x00000004), + 9: uint32(0x04000004), + 10: uint32(0x00040004), + 11: uint32(0x04040004), + 12: uint32(0x00000404), + 13: uint32(0x04000404), + 14: uint32(0x00040404), + 15: uint32(0x04040404), + }, + 3: { + 1: uint32(0x01000000), + 2: uint32(0x00010000), + 3: uint32(0x01010000), + 4: uint32(0x00000100), + 5: uint32(0x01000100), + 6: uint32(0x00010100), + 7: uint32(0x01010100), + 8: uint32(0x00000001), + 9: uint32(0x01000001), + 10: uint32(0x00010001), + 11: uint32(0x01010001), + 12: uint32(0x00000101), + 13: uint32(0x01000101), + 14: uint32(0x00010101), + 15: uint32(0x01010101), + }, + 4: { + 1: uint32(0x80000000), + 2: uint32(0x00800000), + 3: uint32(0x80800000), + 4: uint32(0x00008000), + 5: uint32(0x80008000), + 6: uint32(0x00808000), + 7: uint32(0x80808000), + 8: uint32(0x00000080), + 9: uint32(0x80000080), + 10: uint32(0x00800080), + 11: uint32(0x80800080), + 12: uint32(0x00008080), + 13: uint32(0x80008080), + 14: uint32(0x00808080), + 15: uint32(0x80808080), + }, + 5: { + 1: uint32(0x20000000), + 2: uint32(0x00200000), + 3: uint32(0x20200000), + 4: uint32(0x00002000), + 5: uint32(0x20002000), + 6: uint32(0x00202000), + 7: uint32(0x20202000), + 8: uint32(0x00000020), + 9: uint32(0x20000020), + 10: uint32(0x00200020), + 11: uint32(0x20200020), + 12: uint32(0x00002020), + 13: uint32(0x20002020), + 14: uint32(0x00202020), + 15: uint32(0x20202020), + }, + 6: { + 1: uint32(0x08000000), + 2: uint32(0x00080000), + 3: uint32(0x08080000), + 4: uint32(0x00000800), + 5: uint32(0x08000800), + 6: uint32(0x00080800), + 7: uint32(0x08080800), + 8: uint32(0x00000008), + 9: uint32(0x08000008), + 10: uint32(0x00080008), + 11: uint32(0x08080008), + 12: uint32(0x00000808), + 13: uint32(0x08000808), + 14: uint32(0x00080808), + 15: uint32(0x08080808), + }, + 7: { + 1: uint32(0x02000000), + 2: uint32(0x00020000), + 3: uint32(0x02020000), + 4: uint32(0x00000200), + 5: uint32(0x02000200), + 6: uint32(0x00020200), + 7: uint32(0x02020200), + 8: uint32(0x00000002), + 9: uint32(0x02000002), + 10: uint32(0x00020002), + 11: uint32(0x02020002), + 12: uint32(0x00000202), + 13: uint32(0x02000202), + 14: uint32(0x00020202), + 15: uint32(0x02020202), + }, +} +var _key_perm_maskl = [8][16]Tuint32_t{ + 0: { + 2: uint32(0x00000010), + 3: uint32(0x00000010), + 4: uint32(0x00001000), + 5: uint32(0x00001000), + 6: uint32(0x00001010), + 7: uint32(0x00001010), + 8: uint32(0x00100000), + 9: uint32(0x00100000), + 10: uint32(0x00100010), + 11: uint32(0x00100010), + 12: uint32(0x00101000), + 13: uint32(0x00101000), + 14: uint32(0x00101010), + 15: uint32(0x00101010), + }, + 1: { + 2: uint32(0x00000020), + 3: uint32(0x00000020), + 4: uint32(0x00002000), + 5: uint32(0x00002000), + 6: uint32(0x00002020), + 7: uint32(0x00002020), + 8: uint32(0x00200000), + 9: uint32(0x00200000), + 10: uint32(0x00200020), + 11: uint32(0x00200020), + 12: uint32(0x00202000), + 13: uint32(0x00202000), + 14: uint32(0x00202020), + 15: uint32(0x00202020), + }, + 2: { + 2: uint32(0x00000040), + 3: uint32(0x00000040), + 4: uint32(0x00004000), + 5: uint32(0x00004000), + 6: uint32(0x00004040), + 7: uint32(0x00004040), + 8: uint32(0x00400000), + 9: uint32(0x00400000), + 10: uint32(0x00400040), + 11: uint32(0x00400040), + 12: uint32(0x00404000), + 13: uint32(0x00404000), + 14: uint32(0x00404040), + 15: uint32(0x00404040), + }, + 3: { + 2: uint32(0x00000080), + 3: uint32(0x00000080), + 4: uint32(0x00008000), + 5: uint32(0x00008000), + 6: uint32(0x00008080), + 7: uint32(0x00008080), + 8: uint32(0x00800000), + 9: uint32(0x00800000), + 10: uint32(0x00800080), + 11: uint32(0x00800080), + 12: uint32(0x00808000), + 13: uint32(0x00808000), + 14: uint32(0x00808080), + 15: uint32(0x00808080), + }, + 4: { + 1: uint32(0x00000001), + 2: uint32(0x00000100), + 3: uint32(0x00000101), + 4: uint32(0x00010000), + 5: uint32(0x00010001), + 6: uint32(0x00010100), + 7: uint32(0x00010101), + 8: uint32(0x01000000), + 9: uint32(0x01000001), + 10: uint32(0x01000100), + 11: uint32(0x01000101), + 12: uint32(0x01010000), + 13: uint32(0x01010001), + 14: uint32(0x01010100), + 15: uint32(0x01010101), + }, + 5: { + 1: uint32(0x00000002), + 2: uint32(0x00000200), + 3: uint32(0x00000202), + 4: uint32(0x00020000), + 5: uint32(0x00020002), + 6: uint32(0x00020200), + 7: uint32(0x00020202), + 8: uint32(0x02000000), + 9: uint32(0x02000002), + 10: uint32(0x02000200), + 11: uint32(0x02000202), + 12: uint32(0x02020000), + 13: uint32(0x02020002), + 14: uint32(0x02020200), + 15: uint32(0x02020202), + }, + 6: { + 1: uint32(0x00000004), + 2: uint32(0x00000400), + 3: uint32(0x00000404), + 4: uint32(0x00040000), + 5: uint32(0x00040004), + 6: uint32(0x00040400), + 7: uint32(0x00040404), + 8: uint32(0x04000000), + 9: uint32(0x04000004), + 10: uint32(0x04000400), + 11: uint32(0x04000404), + 12: uint32(0x04040000), + 13: uint32(0x04040004), + 14: uint32(0x04040400), + 15: uint32(0x04040404), + }, + 7: { + 1: uint32(0x00000008), + 2: uint32(0x00000800), + 3: uint32(0x00000808), + 4: uint32(0x00080000), + 5: uint32(0x00080008), + 6: uint32(0x00080800), + 7: uint32(0x00080808), + 8: uint32(0x08000000), + 9: uint32(0x08000008), + 10: uint32(0x08000800), + 11: uint32(0x08000808), + 12: uint32(0x08080000), + 13: uint32(0x08080008), + 14: uint32(0x08080800), + 15: uint32(0x08080808), + }, +} +var _key_perm_maskr = [12][16]Tuint32_t{ + 0: { + 1: uint32(0x00000001), + 3: uint32(0x00000001), + 5: uint32(0x00000001), + 7: uint32(0x00000001), + 9: uint32(0x00000001), + 11: uint32(0x00000001), + 13: uint32(0x00000001), + 15: uint32(0x00000001), + }, + 1: { + 2: uint32(0x00100000), + 3: uint32(0x00100000), + 4: uint32(0x00001000), + 5: uint32(0x00001000), + 6: uint32(0x00101000), + 7: uint32(0x00101000), + 8: uint32(0x00000010), + 9: uint32(0x00000010), + 10: uint32(0x00100010), + 11: uint32(0x00100010), + 12: uint32(0x00001010), + 13: uint32(0x00001010), + 14: uint32(0x00101010), + 15: uint32(0x00101010), + }, + 2: { + 1: uint32(0x00000002), + 3: uint32(0x00000002), + 5: uint32(0x00000002), + 7: uint32(0x00000002), + 9: uint32(0x00000002), + 11: uint32(0x00000002), + 13: uint32(0x00000002), + 15: uint32(0x00000002), + }, + 3: { + 2: uint32(0x00200000), + 3: uint32(0x00200000), + 4: uint32(0x00002000), + 5: uint32(0x00002000), + 6: uint32(0x00202000), + 7: uint32(0x00202000), + 8: uint32(0x00000020), + 9: uint32(0x00000020), + 10: uint32(0x00200020), + 11: uint32(0x00200020), + 12: uint32(0x00002020), + 13: uint32(0x00002020), + 14: uint32(0x00202020), + 15: uint32(0x00202020), + }, + 4: { + 1: uint32(0x00000004), + 3: uint32(0x00000004), + 5: uint32(0x00000004), + 7: uint32(0x00000004), + 9: uint32(0x00000004), + 11: uint32(0x00000004), + 13: uint32(0x00000004), + 15: uint32(0x00000004), + }, + 5: { + 2: uint32(0x00400000), + 3: uint32(0x00400000), + 4: uint32(0x00004000), + 5: uint32(0x00004000), + 6: uint32(0x00404000), + 7: uint32(0x00404000), + 8: uint32(0x00000040), + 9: uint32(0x00000040), + 10: uint32(0x00400040), + 11: uint32(0x00400040), + 12: uint32(0x00004040), + 13: uint32(0x00004040), + 14: uint32(0x00404040), + 15: uint32(0x00404040), + }, + 6: { + 1: uint32(0x00000008), + 3: uint32(0x00000008), + 5: uint32(0x00000008), + 7: uint32(0x00000008), + 9: uint32(0x00000008), + 11: uint32(0x00000008), + 13: uint32(0x00000008), + 15: uint32(0x00000008), + }, + 7: { + 2: uint32(0x00800000), + 3: uint32(0x00800000), + 4: uint32(0x00008000), + 5: uint32(0x00008000), + 6: uint32(0x00808000), + 7: uint32(0x00808000), + 8: uint32(0x00000080), + 9: uint32(0x00000080), + 10: uint32(0x00800080), + 11: uint32(0x00800080), + 12: uint32(0x00008080), + 13: uint32(0x00008080), + 14: uint32(0x00808080), + 15: uint32(0x00808080), + }, + 8: { + 2: uint32(0x01000000), + 3: uint32(0x01000000), + 4: uint32(0x00010000), + 5: uint32(0x00010000), + 6: uint32(0x01010000), + 7: uint32(0x01010000), + 8: uint32(0x00000100), + 9: uint32(0x00000100), + 10: uint32(0x01000100), + 11: uint32(0x01000100), + 12: uint32(0x00010100), + 13: uint32(0x00010100), + 14: uint32(0x01010100), + 15: uint32(0x01010100), + }, + 9: { + 2: uint32(0x02000000), + 3: uint32(0x02000000), + 4: uint32(0x00020000), + 5: uint32(0x00020000), + 6: uint32(0x02020000), + 7: uint32(0x02020000), + 8: uint32(0x00000200), + 9: uint32(0x00000200), + 10: uint32(0x02000200), + 11: uint32(0x02000200), + 12: uint32(0x00020200), + 13: uint32(0x00020200), + 14: uint32(0x02020200), + 15: uint32(0x02020200), + }, + 10: { + 2: uint32(0x04000000), + 3: uint32(0x04000000), + 4: uint32(0x00040000), + 5: uint32(0x00040000), + 6: uint32(0x04040000), + 7: uint32(0x04040000), + 8: uint32(0x00000400), + 9: uint32(0x00000400), + 10: uint32(0x04000400), + 11: uint32(0x04000400), + 12: uint32(0x00040400), + 13: uint32(0x00040400), + 14: uint32(0x04040400), + 15: uint32(0x04040400), + }, + 11: { + 2: uint32(0x08000000), + 3: uint32(0x08000000), + 4: uint32(0x00080000), + 5: uint32(0x00080000), + 6: uint32(0x08080000), + 7: uint32(0x08080000), + 8: uint32(0x00000800), + 9: uint32(0x00000800), + 10: uint32(0x08000800), + 11: uint32(0x08000800), + 12: uint32(0x00080800), + 13: uint32(0x00080800), + 14: uint32(0x08080800), + 15: uint32(0x08080800), + }, +} +var _comp_maskl0 = [4][8]Tuint32_t{ + 0: { + 1: uint32(0x00020000), + 2: uint32(0x00000001), + 3: uint32(0x00020001), + 4: uint32(0x00080000), + 5: uint32(0x000a0000), + 6: uint32(0x00080001), + 7: uint32(0x000a0001), + }, + 1: { + 1: uint32(0x00001000), + 3: uint32(0x00001000), + 4: uint32(0x00000040), + 5: uint32(0x00001040), + 6: uint32(0x00000040), + 7: uint32(0x00001040), + }, + 2: { + 1: uint32(0x00400000), + 2: uint32(0x00000020), + 3: uint32(0x00400020), + 4: uint32(0x00008000), + 5: uint32(0x00408000), + 6: uint32(0x00008020), + 7: uint32(0x00408020), + }, + 3: { + 1: uint32(0x00100000), + 2: uint32(0x00000800), + 3: uint32(0x00100800), + 5: uint32(0x00100000), + 6: uint32(0x00000800), + 7: uint32(0x00100800), + }, +} +var _comp_maskr0 = [4][8]Tuint32_t{ + 0: { + 1: uint32(0x00200000), + 2: uint32(0x00020000), + 3: uint32(0x00220000), + 4: uint32(0x00000002), + 5: uint32(0x00200002), + 6: uint32(0x00020002), + 7: uint32(0x00220002), + }, + 1: { + 2: uint32(0x00100000), + 3: uint32(0x00100000), + 4: uint32(0x00000004), + 5: uint32(0x00000004), + 6: uint32(0x00100004), + 7: uint32(0x00100004), + }, + 2: { + 1: uint32(0x00004000), + 2: uint32(0x00000800), + 3: uint32(0x00004800), + 5: uint32(0x00004000), + 6: uint32(0x00000800), + 7: uint32(0x00004800), + }, + 3: { + 1: uint32(0x00400000), + 2: uint32(0x00008000), + 3: uint32(0x00408000), + 4: uint32(0x00000008), + 5: uint32(0x00400008), + 6: uint32(0x00008008), + 7: uint32(0x00408008), + }, +} +var _comp_maskl1 = [4][16]Tuint32_t{ + 0: { + 1: uint32(0x00000010), + 2: uint32(0x00004000), + 3: uint32(0x00004010), + 4: uint32(0x00040000), + 5: uint32(0x00040010), + 6: uint32(0x00044000), + 7: uint32(0x00044010), + 8: uint32(0x00000100), + 9: uint32(0x00000110), + 10: uint32(0x00004100), + 11: uint32(0x00004110), + 12: uint32(0x00040100), + 13: uint32(0x00040110), + 14: uint32(0x00044100), + 15: uint32(0x00044110), + }, + 1: { + 1: uint32(0x00800000), + 2: uint32(0x00000002), + 3: uint32(0x00800002), + 4: uint32(0x00000200), + 5: uint32(0x00800200), + 6: uint32(0x00000202), + 7: uint32(0x00800202), + 8: uint32(0x00200000), + 9: uint32(0x00a00000), + 10: uint32(0x00200002), + 11: uint32(0x00a00002), + 12: uint32(0x00200200), + 13: uint32(0x00a00200), + 14: uint32(0x00200202), + 15: uint32(0x00a00202), + }, + 2: { + 1: uint32(0x00002000), + 2: uint32(0x00000004), + 3: uint32(0x00002004), + 4: uint32(0x00000400), + 5: uint32(0x00002400), + 6: uint32(0x00000404), + 7: uint32(0x00002404), + 9: uint32(0x00002000), + 10: uint32(0x00000004), + 11: uint32(0x00002004), + 12: uint32(0x00000400), + 13: uint32(0x00002400), + 14: uint32(0x00000404), + 15: uint32(0x00002404), + }, + 3: { + 1: uint32(0x00010000), + 2: uint32(0x00000008), + 3: uint32(0x00010008), + 4: uint32(0x00000080), + 5: uint32(0x00010080), + 6: uint32(0x00000088), + 7: uint32(0x00010088), + 9: uint32(0x00010000), + 10: uint32(0x00000008), + 11: uint32(0x00010008), + 12: uint32(0x00000080), + 13: uint32(0x00010080), + 14: uint32(0x00000088), + 15: uint32(0x00010088), + }, +} +var _comp_maskr1 = [4][16]Tuint32_t{ + 0: { + 2: uint32(0x00000080), + 3: uint32(0x00000080), + 4: uint32(0x00002000), + 5: uint32(0x00002000), + 6: uint32(0x00002080), + 7: uint32(0x00002080), + 8: uint32(0x00000001), + 9: uint32(0x00000001), + 10: uint32(0x00000081), + 11: uint32(0x00000081), + 12: uint32(0x00002001), + 13: uint32(0x00002001), + 14: uint32(0x00002081), + 15: uint32(0x00002081), + }, + 1: { + 1: uint32(0x00000010), + 2: uint32(0x00800000), + 3: uint32(0x00800010), + 4: uint32(0x00010000), + 5: uint32(0x00010010), + 6: uint32(0x00810000), + 7: uint32(0x00810010), + 8: uint32(0x00000200), + 9: uint32(0x00000210), + 10: uint32(0x00800200), + 11: uint32(0x00800210), + 12: uint32(0x00010200), + 13: uint32(0x00010210), + 14: uint32(0x00810200), + 15: uint32(0x00810210), + }, + 2: { + 1: uint32(0x00000400), + 2: uint32(0x00001000), + 3: uint32(0x00001400), + 4: uint32(0x00080000), + 5: uint32(0x00080400), + 6: uint32(0x00081000), + 7: uint32(0x00081400), + 8: uint32(0x00000020), + 9: uint32(0x00000420), + 10: uint32(0x00001020), + 11: uint32(0x00001420), + 12: uint32(0x00080020), + 13: uint32(0x00080420), + 14: uint32(0x00081020), + 15: uint32(0x00081420), + }, + 3: { + 1: uint32(0x00000100), + 2: uint32(0x00040000), + 3: uint32(0x00040100), + 5: uint32(0x00000100), + 6: uint32(0x00040000), + 7: uint32(0x00040100), + 8: uint32(0x00000040), + 9: uint32(0x00000140), + 10: uint32(0x00040040), + 11: uint32(0x00040140), + 12: uint32(0x00000040), + 13: uint32(0x00000140), + 14: uint32(0x00040040), + 15: uint32(0x00040140), + }, +} + +var _ascii64 = [65]uint8{'.', '/', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'} + +/* 0000000000111111111122222222223333333333444444444455555555556666 */ +/* 0123456789012345678901234567890123456789012345678901234567890123 */ + +// C documentation +// +// /* +// * We match the behavior of UFC-crypt on systems where "char" is signed by +// * default (the majority), regardless of char's signedness on our system. +// */ +func _ascii_to_bin(tls *TLS, ch int32) (r Tuint32_t) { + var retval, sch, v1 int32 + _, _, _ = retval, sch, v1 + if ch < int32(0x80) { + v1 = ch + } else { + v1 = -(int32(0x100) - ch) + } + sch = v1 + retval = sch - int32('.') + if sch >= int32('A') { + retval = sch - (Int32FromUint8('A') - Int32FromInt32(12)) + if sch >= int32('a') { + retval = sch - (Int32FromUint8('a') - Int32FromInt32(38)) + } + } + retval = retval & int32(0x3f) + return Uint32FromInt32(retval) +} + +// C documentation +// +// /* +// * When we choose to "support" invalid salts, nevertheless disallow those +// * containing characters that would violate the passwd file format. +// */ +func _ascii_is_unsafe(tls *TLS, ch uint8) (r int32) { + return BoolInt32(!(ch != 0) || Int32FromUint8(ch) == int32('\n') || Int32FromUint8(ch) == int32(':')) +} + +func _setup_salt(tls *TLS, salt Tuint32_t) (r Tuint32_t) { + var i uint32 + var obit, saltbit, saltbits Tuint32_t + _, _, _, _ = i, obit, saltbit, saltbits + saltbits = uint32(0) + saltbit = uint32(1) + obit = uint32(0x800000) + i = uint32(0) + for { + if !(i < uint32(24)) { + break + } + if salt&saltbit != 0 { + saltbits = saltbits | obit + } + saltbit = saltbit << uint32(1) + obit = obit >> uint32(1) + goto _1 + _1: + ; + i = i + 1 + } + return saltbits +} + +func X__des_setkey(tls *TLS, key uintptr, ekey uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v ekey=%v, (%v:)", tls, key, ekey, origin(2)) + } + var i, ibit, j, round, shifts uint32 + var k0, k1, kl, kr, rawkey0, rawkey1, t0, t1, v1 Tuint32_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = i, ibit, j, k0, k1, kl, kr, rawkey0, rawkey1, round, shifts, t0, t1, v1 + rawkey0 = uint32(**(**uint8)(__ccgo_up(key + 3))) | uint32(**(**uint8)(__ccgo_up(key + 2)))<>ibit&uint32(0xf))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_key_perm_maskl)) + uintptr(i+uint32(4))*64 + uintptr(rawkey1>>ibit&uint32(0xf))*4))) + k1 = k1 | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_key_perm_maskr)) + uintptr(j)*64 + uintptr(rawkey0>>ibit&uint32(0xf))*4)) + ibit = ibit - uint32(4) + k1 = k1 | (**(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_key_perm_maskr)) + uintptr(j+uint32(1))*64 + uintptr(rawkey0>>ibit&uint32(0xf))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_key_perm_maskr)) + uintptr(i+uint32(8))*64 + uintptr(rawkey1>>ibit&uint32(0xf))*4))) + goto _2 + _2: + ; + i = i + 1 + ibit = ibit - uint32(4) + } + /* + * Rotate subkeys and do compression permutation. + */ + shifts = uint32(0) + round = uint32(0) + for { + if !(round < uint32(16)) { + break + } + shifts = shifts + uint32(_key_shifts[round]) + t0 = k0<>(Uint32FromInt32(28)-shifts) + t1 = k1<>(Uint32FromInt32(28)-shifts) + v1 = Uint32FromInt32(0) + kr = v1 + kl = v1 + ibit = uint32(25) + i = uint32(0) + for { + if !(i < uint32(4)) { + break + } + kl = kl | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_comp_maskl0)) + uintptr(i)*32 + uintptr(t0>>ibit&uint32(7))*4)) + kr = kr | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_comp_maskr0)) + uintptr(i)*32 + uintptr(t1>>ibit&uint32(7))*4)) + ibit = ibit - uint32(4) + kl = kl | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_comp_maskl1)) + uintptr(i)*64 + uintptr(t0>>ibit&uint32(0xf))*4)) + kr = kr | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_comp_maskr1)) + uintptr(i)*64 + uintptr(t1>>ibit&uint32(0xf))*4)) + ibit = ibit - uint32(3) + goto _5 + _5: + ; + i = i + 1 + } + **(**Tuint32_t)(__ccgo_up(ekey + uintptr(round)*4)) = kl + **(**Tuint32_t)(__ccgo_up(ekey + 64 + uintptr(round)*4)) = kr + goto _3 + _3: + ; + round = round + 1 + } +} + +// C documentation +// +// /* +// * l_in, r_in, l_out, and r_out are in pseudo-"big-endian" format. +// */ +func X__do_des(tls *TLS, l_in Tuint32_t, r_in Tuint32_t, l_out uintptr, r_out uintptr, count Tuint32_t, saltbits Tuint32_t, ekey uintptr) { + if __ccgo_strace { + trc("tls=%v l_in=%v r_in=%v l_out=%v r_out=%v count=%v saltbits=%v ekey=%v, (%v:)", tls, l_in, r_in, l_out, r_out, count, saltbits, ekey, origin(2)) + } + var f, l, lo, r, r48l, r48r, ro, v1 Tuint32_t + var i, i1, ibit, ibit1, round, v4 uint32 + var kl, kr, v5 uintptr + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = f, i, i1, ibit, ibit1, kl, kr, l, lo, r, r48l, r48r, ro, round, v1, v4, v5 + /* + * Do initial permutation (IP). + */ + v1 = Uint32FromInt32(0) + r = v1 + l = v1 + if l_in|r_in != 0 { + i = uint32(0) + ibit = Uint32FromInt32(28) + for { + if !(i < uint32(8)) { + break + } + l = l | (**(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_ip_maskl)) + uintptr(i)*64 + uintptr(l_in>>ibit&uint32(0xf))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_ip_maskl)) + uintptr(i+uint32(8))*64 + uintptr(r_in>>ibit&uint32(0xf))*4))) + r = r | (**(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_ip_maskr)) + uintptr(i)*64 + uintptr(l_in>>ibit&uint32(0xf))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_ip_maskr)) + uintptr(i+uint32(8))*64 + uintptr(r_in>>ibit&uint32(0xf))*4))) + goto _2 + _2: + ; + i = i + 1 + ibit = ibit - uint32(4) + } + } + for { + v1 = count + count = count - 1 + if !(v1 != 0) { + break + } + /* + * Do each round. + */ + round = uint32(16) + kl = ekey + kr = ekey + 64 + for { + v4 = round + round = round - 1 + if !(v4 != 0) { + break + } + /* + * Expand R to 48 bits (simulate the E-box). + */ + r48l = r&uint32(0x00000001)<>int32(9) | r&uint32(0x1f800000)>>int32(11) | r&uint32(0x01f80000)>>int32(13) | r&uint32(0x001f8000)>>int32(15) + r48r = r&uint32(0x0001f800)<>int32(31) + /* + * Do salting for crypt() and friends, and + * XOR with the permuted key. + */ + f = (r48l ^ r48r) & saltbits + v5 = kl + kl += 4 + r48l = r48l ^ (f ^ **(**Tuint32_t)(__ccgo_up(v5))) + v5 = kr + kr += 4 + r48r = r48r ^ (f ^ **(**Tuint32_t)(__ccgo_up(v5))) + /* + * Do S-box lookups (which shrink it back to 32 bits) + * and do the P-box permutation at the same time. + */ + f = **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_psbox)) + uintptr(r48l>>int32(18))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_psbox)) + 1*256 + uintptr(r48l>>Int32FromInt32(12)&uint32(0x3f))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_psbox)) + 2*256 + uintptr(r48l>>Int32FromInt32(6)&uint32(0x3f))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_psbox)) + 3*256 + uintptr(r48l&uint32(0x3f))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_psbox)) + 4*256 + uintptr(r48r>>int32(18))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_psbox)) + 5*256 + uintptr(r48r>>Int32FromInt32(12)&uint32(0x3f))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_psbox)) + 6*256 + uintptr(r48r>>Int32FromInt32(6)&uint32(0x3f))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_psbox)) + 7*256 + uintptr(r48r&uint32(0x3f))*4)) + /* + * Now that we've permuted things, complete f(). + */ + f = f ^ l + l = r + r = f + } + r = l + l = f + } + /* + * Do final permutation (inverse of IP). + */ + v1 = Uint32FromInt32(0) + ro = v1 + lo = v1 + i1 = uint32(0) + ibit1 = Uint32FromInt32(28) + for { + if !(i1 < uint32(4)) { + break + } + ro = ro | (**(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_fp_maskr)) + uintptr(i1)*64 + uintptr(l>>ibit1&uint32(0xf))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_fp_maskr)) + uintptr(i1+uint32(4))*64 + uintptr(r>>ibit1&uint32(0xf))*4))) + ibit1 = ibit1 - uint32(4) + lo = lo | (**(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_fp_maskl)) + uintptr(i1)*64 + uintptr(l>>ibit1&uint32(0xf))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_fp_maskl)) + uintptr(i1+uint32(4))*64 + uintptr(r>>ibit1&uint32(0xf))*4))) + goto _8 + _8: + ; + i1 = i1 + 1 + ibit1 = ibit1 - uint32(4) + } + **(**Tuint32_t)(__ccgo_up(l_out)) = lo + **(**Tuint32_t)(__ccgo_up(r_out)) = ro +} + +func _des_cipher(tls *TLS, in uintptr, out uintptr, count Tuint32_t, saltbits Tuint32_t, ekey uintptr) { + bp := tls.Alloc(16) + defer tls.Free(16) + var rawl, rawr Tuint32_t + var _ /* l_out at bp+0 */ Tuint32_t + var _ /* r_out at bp+4 */ Tuint32_t + _, _ = rawl, rawr + rawl = uint32(**(**uint8)(__ccgo_up(in + 3))) | uint32(**(**uint8)(__ccgo_up(in + 2)))<> int32(24)) + **(**uint8)(__ccgo_up(out + 1)) = uint8(**(**Tuint32_t)(__ccgo_up(bp)) >> int32(16)) + **(**uint8)(__ccgo_up(out + 2)) = uint8(**(**Tuint32_t)(__ccgo_up(bp)) >> int32(8)) + **(**uint8)(__ccgo_up(out + 3)) = uint8(**(**Tuint32_t)(__ccgo_up(bp))) + **(**uint8)(__ccgo_up(out + 4)) = uint8(**(**Tuint32_t)(__ccgo_up(bp + 4)) >> int32(24)) + **(**uint8)(__ccgo_up(out + 5)) = uint8(**(**Tuint32_t)(__ccgo_up(bp + 4)) >> int32(16)) + **(**uint8)(__ccgo_up(out + 6)) = uint8(**(**Tuint32_t)(__ccgo_up(bp + 4)) >> int32(8)) + **(**uint8)(__ccgo_up(out + 7)) = uint8(**(**Tuint32_t)(__ccgo_up(bp + 4))) +} + +func __crypt_extended_r_uut(tls *TLS, _key uintptr, _setting uintptr, output uintptr) (r uintptr) { + bp := tls.Alloc(144) + defer tls.Free(144) + var count, l, salt, value, value1 Tuint32_t + var i uint32 + var key, p, q, setting, v1, v4, v5 uintptr + var _ /* ekey at bp+0 */ Texpanded_key + var _ /* keybuf at bp+128 */ [8]uint8 + var _ /* r0 at bp+136 */ Tuint32_t + var _ /* r1 at bp+140 */ Tuint32_t + _, _, _, _, _, _, _, _, _, _, _, _, _ = count, i, key, l, p, q, salt, setting, value, value1, v1, v4, v5 + key = _key + setting = _setting + /* + * Copy the key, shifting each character left by one bit and padding + * with zeroes. + */ + q = bp + 128 + for q <= bp+128+uintptr(Uint64FromInt64(8)-Uint64FromInt32(1)) { + v1 = q + q = q + 1 + **(**uint8)(__ccgo_up(v1)) = Uint8FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(key))) << int32(1)) + if **(**uint8)(__ccgo_up(key)) != 0 { + key = key + 1 + } + } + X__des_setkey(tls, bp+128, bp) + if Int32FromUint8(**(**uint8)(__ccgo_up(setting))) == int32('_') { + /* + * "new"-style: + * setting - underscore, 4 chars of count, 4 chars of salt + * key - unlimited characters + */ + i = uint32(1) + count = Uint32FromInt32(0) + for { + if !(i < uint32(5)) { + break + } + value = _ascii_to_bin(tls, Int32FromUint8(**(**uint8)(__ccgo_up(setting + uintptr(i))))) + if Int32FromUint8(_ascii64[value]) != Int32FromUint8(**(**uint8)(__ccgo_up(setting + uintptr(i)))) { + return UintptrFromInt32(0) + } + count = count | value<<((i-uint32(1))*uint32(6)) + goto _2 + _2: + ; + i = i + 1 + } + if !(count != 0) { + return UintptrFromInt32(0) + } + i = uint32(5) + salt = Uint32FromInt32(0) + for { + if !(i < uint32(9)) { + break + } + value1 = _ascii_to_bin(tls, Int32FromUint8(**(**uint8)(__ccgo_up(setting + uintptr(i))))) + if Int32FromUint8(_ascii64[value1]) != Int32FromUint8(**(**uint8)(__ccgo_up(setting + uintptr(i)))) { + return UintptrFromInt32(0) + } + salt = salt | value1<<((i-uint32(5))*uint32(6)) + goto _3 + _3: + ; + i = i + 1 + } + for **(**uint8)(__ccgo_up(key)) != 0 { + /* + * Encrypt the key with itself. + */ + _des_cipher(tls, bp+128, bp+128, uint32(1), uint32(0), bp) + /* + * And XOR with the next 8 characters of the key. + */ + q = bp + 128 + for q <= bp+128+uintptr(Uint64FromInt64(8)-Uint64FromInt32(1)) && **(**uint8)(__ccgo_up(key)) != 0 { + v4 = q + q = q + 1 + v1 = v4 + v5 = key + key = key + 1 + *(*uint8)(unsafe.Pointer(v1)) = uint8(int32(*(*uint8)(unsafe.Pointer(v1))) ^ Int32FromUint8(**(**uint8)(__ccgo_up(v5)))<> int32(8) + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l>>Int32FromInt32(18)&uint32(0x3f)] + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l>>Int32FromInt32(12)&uint32(0x3f)] + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l>>Int32FromInt32(6)&uint32(0x3f)] + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l&uint32(0x3f)] + l = **(**Tuint32_t)(__ccgo_up(bp + 136))<>Int32FromInt32(16)&uint32(0xffff) + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l>>Int32FromInt32(18)&uint32(0x3f)] + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l>>Int32FromInt32(12)&uint32(0x3f)] + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l>>Int32FromInt32(6)&uint32(0x3f)] + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l&uint32(0x3f)] + l = **(**Tuint32_t)(__ccgo_up(bp + 140)) << int32(2) + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l>>Int32FromInt32(12)&uint32(0x3f)] + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l>>Int32FromInt32(6)&uint32(0x3f)] + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l&uint32(0x3f)] + **(**uint8)(__ccgo_up(p)) = uint8(0) + return output +} + +func X__crypt_des(tls *TLS, key uintptr, setting uintptr, output uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v setting=%v output=%v, (%v:)", tls, key, setting, output, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var p, retval, test_hash, test_key, test_setting, v1 uintptr + var _ /* test_buf at bp+0 */ [21]uint8 + _, _, _, _, _, _ = p, retval, test_hash, test_key, test_setting, v1 + test_key = __ccgo_ts + 72 + test_setting = __ccgo_ts + 93 + test_hash = __ccgo_ts + 103 + if Int32FromUint8(**(**uint8)(__ccgo_up(setting))) != int32('_') { + test_setting = __ccgo_ts + 124 + test_hash = __ccgo_ts + 127 + } + /* + * Hash the supplied password. + */ + retval = __crypt_extended_r_uut(tls, key, setting, output) + /* + * Perform a quick self-test. It is important that we make both calls + * to _crypt_extended_r_uut() from the same scope such that they likely + * use the same stack locations, which makes the second call overwrite + * the first call's sensitive data on the stack and makes it more + * likely that any alignment related issues would be detected. + */ + p = __crypt_extended_r_uut(tls, test_key, test_setting, bp) + if p != 0 && !(Xstrcmp(tls, p, test_hash) != 0) && retval != 0 { + return retval + } + if Int32FromUint8(**(**uint8)(__ccgo_up(setting))) == int32('*') { + v1 = __ccgo_ts + 141 + } else { + v1 = __ccgo_ts + 70 + } + return v1 +} + +const KEY_MAX = 30000 +const SALT_MAX = 8 + +/* public domain md5 implementation based on rfc1321 and libtomcrypt */ + +type Tmd5 = struct { + Flen1 Tuint64_t + Fh [4]Tuint32_t + Fbuf [64]Tuint8_t +} + +func _rol(tls *TLS, n Tuint32_t, k int32) (r Tuint32_t) { + return n<>(Int32FromInt32(32)-k) +} + +var _tab = [64]Tuint32_t{ + 0: uint32(0xd76aa478), + 1: uint32(0xe8c7b756), + 2: uint32(0x242070db), + 3: uint32(0xc1bdceee), + 4: uint32(0xf57c0faf), + 5: uint32(0x4787c62a), + 6: uint32(0xa8304613), + 7: uint32(0xfd469501), + 8: uint32(0x698098d8), + 9: uint32(0x8b44f7af), + 10: uint32(0xffff5bb1), + 11: uint32(0x895cd7be), + 12: uint32(0x6b901122), + 13: uint32(0xfd987193), + 14: uint32(0xa679438e), + 15: uint32(0x49b40821), + 16: uint32(0xf61e2562), + 17: uint32(0xc040b340), + 18: uint32(0x265e5a51), + 19: uint32(0xe9b6c7aa), + 20: uint32(0xd62f105d), + 21: uint32(0x02441453), + 22: uint32(0xd8a1e681), + 23: uint32(0xe7d3fbc8), + 24: uint32(0x21e1cde6), + 25: uint32(0xc33707d6), + 26: uint32(0xf4d50d87), + 27: uint32(0x455a14ed), + 28: uint32(0xa9e3e905), + 29: uint32(0xfcefa3f8), + 30: uint32(0x676f02d9), + 31: uint32(0x8d2a4c8a), + 32: uint32(0xfffa3942), + 33: uint32(0x8771f681), + 34: uint32(0x6d9d6122), + 35: uint32(0xfde5380c), + 36: uint32(0xa4beea44), + 37: uint32(0x4bdecfa9), + 38: uint32(0xf6bb4b60), + 39: uint32(0xbebfbc70), + 40: uint32(0x289b7ec6), + 41: uint32(0xeaa127fa), + 42: uint32(0xd4ef3085), + 43: uint32(0x04881d05), + 44: uint32(0xd9d4d039), + 45: uint32(0xe6db99e5), + 46: uint32(0x1fa27cf8), + 47: uint32(0xc4ac5665), + 48: uint32(0xf4292244), + 49: uint32(0x432aff97), + 50: uint32(0xab9423a7), + 51: uint32(0xfc93a039), + 52: uint32(0x655b59c3), + 53: uint32(0x8f0ccc92), + 54: uint32(0xffeff47d), + 55: uint32(0x85845dd1), + 56: uint32(0x6fa87e4f), + 57: uint32(0xfe2ce6e0), + 58: uint32(0xa3014314), + 59: uint32(0x4e0811a1), + 60: uint32(0xf7537e82), + 61: uint32(0xbd3af235), + 62: uint32(0x2ad7d2bb), + 63: uint32(0xeb86d391), +} + +func _processblock(tls *TLS, s uintptr, buf uintptr) { + bp := tls.Alloc(64) + defer tls.Free(64) + var a, b, c, d, i Tuint32_t + var _ /* W at bp+0 */ [16]Tuint32_t + _, _, _, _, _ = a, b, c, d, i + i = uint32(0) + for { + if !(i < uint32(16)) { + break + } + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[i] = uint32(**(**Tuint8_t)(__ccgo_up(buf + uintptr(uint32(4)*i)))) + **(**Tuint32_t)(__ccgo_up(bp + uintptr(i)*4)) |= uint32(**(**Tuint8_t)(__ccgo_up(buf + uintptr(uint32(4)*i+uint32(1))))) << int32(8) + **(**Tuint32_t)(__ccgo_up(bp + uintptr(i)*4)) |= uint32(**(**Tuint8_t)(__ccgo_up(buf + uintptr(uint32(4)*i+uint32(2))))) << int32(16) + **(**Tuint32_t)(__ccgo_up(bp + uintptr(i)*4)) |= uint32(**(**Tuint8_t)(__ccgo_up(buf + uintptr(uint32(4)*i+uint32(3))))) << int32(24) + goto _1 + _1: + ; + i = i + 1 + } + a = **(**Tuint32_t)(__ccgo_up(s + 8)) + b = **(**Tuint32_t)(__ccgo_up(s + 8 + 1*4)) + c = **(**Tuint32_t)(__ccgo_up(s + 8 + 2*4)) + d = **(**Tuint32_t)(__ccgo_up(s + 8 + 3*4)) + i = uint32(0) + for i < uint32(16) { + a = a + (d ^ b&(c^d) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[i] + _tab[i]) + a = _rol(tls, a, int32(7)) + b + i = i + 1 + d = d + (c ^ a&(b^c) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[i] + _tab[i]) + d = _rol(tls, d, int32(12)) + a + i = i + 1 + c = c + (b ^ d&(a^b) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[i] + _tab[i]) + c = _rol(tls, c, int32(17)) + d + i = i + 1 + b = b + (a ^ c&(d^a) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[i] + _tab[i]) + b = _rol(tls, b, int32(22)) + c + i = i + 1 + } + for i < uint32(32) { + a = a + (c ^ d&(c^b) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[(uint32(5)*i+uint32(1))%uint32(16)] + _tab[i]) + a = _rol(tls, a, int32(5)) + b + i = i + 1 + d = d + (b ^ c&(b^a) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[(uint32(5)*i+uint32(1))%uint32(16)] + _tab[i]) + d = _rol(tls, d, int32(9)) + a + i = i + 1 + c = c + (a ^ b&(a^d) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[(uint32(5)*i+uint32(1))%uint32(16)] + _tab[i]) + c = _rol(tls, c, int32(14)) + d + i = i + 1 + b = b + (d ^ a&(d^c) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[(uint32(5)*i+uint32(1))%uint32(16)] + _tab[i]) + b = _rol(tls, b, int32(20)) + c + i = i + 1 + } + for i < uint32(48) { + a = a + (b ^ c ^ d + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[(uint32(3)*i+uint32(5))%uint32(16)] + _tab[i]) + a = _rol(tls, a, int32(4)) + b + i = i + 1 + d = d + (a ^ b ^ c + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[(uint32(3)*i+uint32(5))%uint32(16)] + _tab[i]) + d = _rol(tls, d, int32(11)) + a + i = i + 1 + c = c + (d ^ a ^ b + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[(uint32(3)*i+uint32(5))%uint32(16)] + _tab[i]) + c = _rol(tls, c, int32(16)) + d + i = i + 1 + b = b + (c ^ d ^ a + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[(uint32(3)*i+uint32(5))%uint32(16)] + _tab[i]) + b = _rol(tls, b, int32(23)) + c + i = i + 1 + } + for i < uint32(64) { + a = a + (c ^ (b | ^d) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[uint32(7)*i%uint32(16)] + _tab[i]) + a = _rol(tls, a, int32(6)) + b + i = i + 1 + d = d + (b ^ (a | ^c) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[uint32(7)*i%uint32(16)] + _tab[i]) + d = _rol(tls, d, int32(10)) + a + i = i + 1 + c = c + (a ^ (d | ^b) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[uint32(7)*i%uint32(16)] + _tab[i]) + c = _rol(tls, c, int32(15)) + d + i = i + 1 + b = b + (d ^ (c | ^a) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[uint32(7)*i%uint32(16)] + _tab[i]) + b = _rol(tls, b, int32(21)) + c + i = i + 1 + } + **(**Tuint32_t)(__ccgo_up(s + 8)) += a + **(**Tuint32_t)(__ccgo_up(s + 8 + 1*4)) += b + **(**Tuint32_t)(__ccgo_up(s + 8 + 2*4)) += c + **(**Tuint32_t)(__ccgo_up(s + 8 + 3*4)) += d +} + +func _pad(tls *TLS, s uintptr) { + var r, v1 uint32 + _, _ = r, v1 + r = uint32((*Tmd5)(unsafe.Pointer(s)).Flen1 % uint64(64)) + v1 = r + r = r + 1 + **(**Tuint8_t)(__ccgo_up(s + 24 + uintptr(v1))) = uint8(0x80) + if r > uint32(56) { + Xmemset(tls, s+24+uintptr(r), 0, uint64(uint32(64)-r)) + r = uint32(0) + _processblock(tls, s, s+24) + } + Xmemset(tls, s+24+uintptr(r), 0, uint64(uint32(56)-r)) + **(**Tuint64_t)(__ccgo_up(s)) *= uint64(8) + **(**Tuint8_t)(__ccgo_up(s + 24 + 56)) = uint8((*Tmd5)(unsafe.Pointer(s)).Flen1) + **(**Tuint8_t)(__ccgo_up(s + 24 + 57)) = uint8((*Tmd5)(unsafe.Pointer(s)).Flen1 >> int32(8)) + **(**Tuint8_t)(__ccgo_up(s + 24 + 58)) = uint8((*Tmd5)(unsafe.Pointer(s)).Flen1 >> int32(16)) + **(**Tuint8_t)(__ccgo_up(s + 24 + 59)) = uint8((*Tmd5)(unsafe.Pointer(s)).Flen1 >> int32(24)) + **(**Tuint8_t)(__ccgo_up(s + 24 + 60)) = uint8((*Tmd5)(unsafe.Pointer(s)).Flen1 >> int32(32)) + **(**Tuint8_t)(__ccgo_up(s + 24 + 61)) = uint8((*Tmd5)(unsafe.Pointer(s)).Flen1 >> int32(40)) + **(**Tuint8_t)(__ccgo_up(s + 24 + 62)) = uint8((*Tmd5)(unsafe.Pointer(s)).Flen1 >> int32(48)) + **(**Tuint8_t)(__ccgo_up(s + 24 + 63)) = uint8((*Tmd5)(unsafe.Pointer(s)).Flen1 >> int32(56)) + _processblock(tls, s, s+24) +} + +func _md5_init(tls *TLS, s uintptr) { + (*Tmd5)(unsafe.Pointer(s)).Flen1 = uint64(0) + **(**Tuint32_t)(__ccgo_up(s + 8)) = uint32(0x67452301) + **(**Tuint32_t)(__ccgo_up(s + 8 + 1*4)) = uint32(0xefcdab89) + **(**Tuint32_t)(__ccgo_up(s + 8 + 2*4)) = uint32(0x98badcfe) + **(**Tuint32_t)(__ccgo_up(s + 8 + 3*4)) = uint32(0x10325476) +} + +func _md5_sum(tls *TLS, s uintptr, md uintptr) { + var i int32 + _ = i + _pad(tls, s) + i = 0 + for { + if !(i < int32(4)) { + break + } + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(4)*i))) = uint8(**(**Tuint32_t)(__ccgo_up(s + 8 + uintptr(i)*4))) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(4)*i+int32(1)))) = uint8(**(**Tuint32_t)(__ccgo_up(s + 8 + uintptr(i)*4)) >> int32(8)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(4)*i+int32(2)))) = uint8(**(**Tuint32_t)(__ccgo_up(s + 8 + uintptr(i)*4)) >> int32(16)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(4)*i+int32(3)))) = uint8(**(**Tuint32_t)(__ccgo_up(s + 8 + uintptr(i)*4)) >> int32(24)) + goto _1 + _1: + ; + i = i + 1 + } +} + +func _md5_update(tls *TLS, s uintptr, m uintptr, len1 uint64) { + var p uintptr + var r uint32 + _, _ = p, r + p = m + r = uint32((*Tmd5)(unsafe.Pointer(s)).Flen1 % uint64(64)) + **(**Tuint64_t)(__ccgo_up(s)) += len1 + if r != 0 { + if len1 < uint64(uint32(64)-r) { + Xmemcpy(tls, s+24+uintptr(r), p, len1) + return + } + Xmemcpy(tls, s+24+uintptr(r), p, uint64(uint32(64)-r)) + len1 = len1 - uint64(uint32(64)-r) + p = p + uintptr(uint32(64)-r) + _processblock(tls, s, s+24) + } + for { + if !(len1 >= uint64(64)) { + break + } + _processblock(tls, s, p) + goto _1 + _1: + ; + len1 = len1 - uint64(64) + p = p + uintptr(64) + } + Xmemcpy(tls, s+24, p, len1) +} + +/*- + * Copyright (c) 2003 Poul-Henning Kamp + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + */ + +/* key limit is not part of the original design, added for DoS protection */ + +var _b64 = [65]uint8{'.', '/', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'} + +func _to64(tls *TLS, s uintptr, u uint32, n int32) (r uintptr) { + var v1 int32 + var v2 uintptr + _, _ = v1, v2 + for { + n = n - 1 + v1 = n + if !(v1 >= 0) { + break + } + v2 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = _b64[u%uint32(64)] + u = u / uint32(64) + } + return s +} + +func _md5crypt(tls *TLS, key uintptr, setting uintptr, output uintptr) (r uintptr) { + bp := tls.Alloc(112) + defer tls.Free(112) + var i, klen, slen uint32 + var p, salt, v5 uintptr + var _ /* ctx at bp+0 */ Tmd5 + var _ /* md at bp+88 */ [16]uint8 + _, _, _, _, _, _ = i, klen, p, salt, slen, v5 + /* reject large keys */ + klen = uint32(Xstrnlen(tls, key, Uint64FromInt32(Int32FromInt32(KEY_MAX)+Int32FromInt32(1)))) + if klen > uint32(KEY_MAX) { + return uintptr(0) + } + /* setting: $1$salt$ (closing $ is optional) */ + if Xstrncmp(tls, setting, __ccgo_ts+143, uint64(3)) != 0 { + return uintptr(0) + } + salt = setting + uintptr(3) + i = uint32(0) + for { + if !(i < uint32(SALT_MAX) && **(**uint8)(__ccgo_up(salt + uintptr(i))) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(salt + uintptr(i)))) != int32('$')) { + break + } + goto _1 + _1: + ; + i = i + 1 + } + slen = i + /* md5(key salt key) */ + _md5_init(tls, bp) + _md5_update(tls, bp, key, uint64(klen)) + _md5_update(tls, bp, salt, uint64(slen)) + _md5_update(tls, bp, key, uint64(klen)) + _md5_sum(tls, bp, bp+88) + /* md5(key $1$ salt repeated-md weird-key[0]-0) */ + _md5_init(tls, bp) + _md5_update(tls, bp, key, uint64(klen)) + _md5_update(tls, bp, setting, uint64(uint32(3)+slen)) + i = klen + for { + if !(uint64(i) > uint64(16)) { + break + } + _md5_update(tls, bp, bp+88, uint64(16)) + goto _2 + _2: + ; + i = uint32(uint64(i) - Uint64FromInt64(16)) + } + _md5_update(tls, bp, bp+88, uint64(i)) + (**(**[16]uint8)(__ccgo_up(bp + 88)))[0] = uint8(0) + i = klen + for { + if !(i != 0) { + break + } + if i&uint32(1) != 0 { + _md5_update(tls, bp, bp+88, uint64(1)) + } else { + _md5_update(tls, bp, key, uint64(1)) + } + goto _3 + _3: + ; + i = i >> uint32(1) + } + _md5_sum(tls, bp, bp+88) + /* md = f(md, key, salt) iteration */ + i = uint32(0) + for { + if !(i < uint32(1000)) { + break + } + _md5_init(tls, bp) + if i%uint32(2) != 0 { + _md5_update(tls, bp, key, uint64(klen)) + } else { + _md5_update(tls, bp, bp+88, uint64(16)) + } + if i%uint32(3) != 0 { + _md5_update(tls, bp, salt, uint64(slen)) + } + if i%uint32(7) != 0 { + _md5_update(tls, bp, key, uint64(klen)) + } + if i%uint32(2) != 0 { + _md5_update(tls, bp, bp+88, uint64(16)) + } else { + _md5_update(tls, bp, key, uint64(klen)) + } + _md5_sum(tls, bp, bp+88) + goto _4 + _4: + ; + i = i + 1 + } + /* output is $1$salt$hash */ + Xmemcpy(tls, output, setting, uint64(uint32(3)+slen)) + p = output + uintptr(3) + uintptr(slen) + v5 = p + p = p + 1 + **(**uint8)(__ccgo_up(v5)) = uint8('$') + i = uint32(0) + for { + if !(i < uint32(5)) { + break + } + p = _to64(tls, p, Uint32FromInt32(Int32FromUint8((**(**[16]uint8)(__ccgo_up(bp + 88)))[**(**uint8)(__ccgo_up(uintptr(unsafe.Pointer(&_perm)) + uintptr(i)*3))])< %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var p, q uintptr + var _ /* testbuf at bp+0 */ [64]uint8 + _, _ = p, q + p = _md5crypt(tls, key, setting, output) + /* self test and stack cleanup */ + q = _md5crypt(tls, uintptr(unsafe.Pointer(&_testkey)), uintptr(unsafe.Pointer(&_testsetting)), bp) + if !(p != 0) || q != bp || Xmemcmp(tls, bp, uintptr(unsafe.Pointer(&_testhash)), uint64(35)) != 0 { + return __ccgo_ts + 70 + } + return p +} + +var _testkey = [18]uint8{'X', 'y', '0', '1', '@', '#', 1, 2, 128, 127, 255, 13, 10, 129, 9, ' ', '!'} + +var _testsetting = [13]uint8{'$', '1', '$', 'a', 'b', 'c', 'd', '0', '1', '2', '3', '$'} + +var _testhash = [35]uint8{'$', '1', '$', 'a', 'b', 'c', 'd', '0', '1', '2', '3', '$', '9', 'Q', 'c', 'g', '8', 'D', 'y', 'v', 'i', 'e', 'k', 'V', '3', 't', 'D', 'G', 'M', 'Z', 'y', 'n', 'J', '1'} + +func X__crypt_r(tls *TLS, key uintptr, salt uintptr, data uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v salt=%v data=%v, (%v:)", tls, key, salt, data, origin(2)) + defer func() { trc("-> %v", r) }() + } + var output uintptr + _ = output + /* Per the crypt_r API, the caller has provided a pointer to + * struct crypt_data; however, this implementation does not + * use the structure to store any internal state, and treats + * it purely as a char buffer for storing the result. */ + output = data + if Int32FromUint8(**(**uint8)(__ccgo_up(salt))) == int32('$') && **(**uint8)(__ccgo_up(salt + 1)) != 0 && **(**uint8)(__ccgo_up(salt + 2)) != 0 { + if Int32FromUint8(**(**uint8)(__ccgo_up(salt + 1))) == int32('1') && Int32FromUint8(**(**uint8)(__ccgo_up(salt + 2))) == int32('$') { + return X__crypt_md5(tls, key, salt, output) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(salt + 1))) == int32('2') && Int32FromUint8(**(**uint8)(__ccgo_up(salt + 3))) == int32('$') { + return X__crypt_blowfish(tls, key, salt, output) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(salt + 1))) == int32('5') && Int32FromUint8(**(**uint8)(__ccgo_up(salt + 2))) == int32('$') { + return X__crypt_sha256(tls, key, salt, output) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(salt + 1))) == int32('6') && Int32FromUint8(**(**uint8)(__ccgo_up(salt + 2))) == int32('$') { + return X__crypt_sha512(tls, key, salt, output) + } + } + return X__crypt_des(tls, key, salt, output) +} + +func Xcrypt_r(tls *TLS, key uintptr, salt uintptr, data uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v salt=%v data=%v, (%v:)", tls, key, salt, data, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__crypt_r(tls, key, salt, data) +} + +const KEY_MAX1 = 256 +const ROUNDS_DEFAULT = 5000 +const ROUNDS_MAX = 9999999 +const ROUNDS_MIN = 1000 +const SALT_MAX1 = 16 + +/* public domain sha256 implementation based on fips180-3 */ + +type Tsha256 = struct { + Flen1 Tuint64_t + Fh [8]Tuint32_t + Fbuf [64]Tuint8_t +} + +func _ror(tls *TLS, n Tuint32_t, k int32) (r Tuint32_t) { + return n>>k | n<<(Int32FromInt32(32)-k) +} + +var _K = [64]Tuint32_t{ + 0: uint32(0x428a2f98), + 1: uint32(0x71374491), + 2: uint32(0xb5c0fbcf), + 3: uint32(0xe9b5dba5), + 4: uint32(0x3956c25b), + 5: uint32(0x59f111f1), + 6: uint32(0x923f82a4), + 7: uint32(0xab1c5ed5), + 8: uint32(0xd807aa98), + 9: uint32(0x12835b01), + 10: uint32(0x243185be), + 11: uint32(0x550c7dc3), + 12: uint32(0x72be5d74), + 13: uint32(0x80deb1fe), + 14: uint32(0x9bdc06a7), + 15: uint32(0xc19bf174), + 16: uint32(0xe49b69c1), + 17: uint32(0xefbe4786), + 18: uint32(0x0fc19dc6), + 19: uint32(0x240ca1cc), + 20: uint32(0x2de92c6f), + 21: uint32(0x4a7484aa), + 22: uint32(0x5cb0a9dc), + 23: uint32(0x76f988da), + 24: uint32(0x983e5152), + 25: uint32(0xa831c66d), + 26: uint32(0xb00327c8), + 27: uint32(0xbf597fc7), + 28: uint32(0xc6e00bf3), + 29: uint32(0xd5a79147), + 30: uint32(0x06ca6351), + 31: uint32(0x14292967), + 32: uint32(0x27b70a85), + 33: uint32(0x2e1b2138), + 34: uint32(0x4d2c6dfc), + 35: uint32(0x53380d13), + 36: uint32(0x650a7354), + 37: uint32(0x766a0abb), + 38: uint32(0x81c2c92e), + 39: uint32(0x92722c85), + 40: uint32(0xa2bfe8a1), + 41: uint32(0xa81a664b), + 42: uint32(0xc24b8b70), + 43: uint32(0xc76c51a3), + 44: uint32(0xd192e819), + 45: uint32(0xd6990624), + 46: uint32(0xf40e3585), + 47: uint32(0x106aa070), + 48: uint32(0x19a4c116), + 49: uint32(0x1e376c08), + 50: uint32(0x2748774c), + 51: uint32(0x34b0bcb5), + 52: uint32(0x391c0cb3), + 53: uint32(0x4ed8aa4a), + 54: uint32(0x5b9cca4f), + 55: uint32(0x682e6ff3), + 56: uint32(0x748f82ee), + 57: uint32(0x78a5636f), + 58: uint32(0x84c87814), + 59: uint32(0x8cc70208), + 60: uint32(0x90befffa), + 61: uint32(0xa4506ceb), + 62: uint32(0xbef9a3f7), + 63: uint32(0xc67178f2), +} + +func _processblock1(tls *TLS, s uintptr, buf uintptr) { + bp := tls.Alloc(256) + defer tls.Free(256) + var a, b, c, d, e, f, g, h, t1, t2 Tuint32_t + var i int32 + var _ /* W at bp+0 */ [64]Tuint32_t + _, _, _, _, _, _, _, _, _, _, _ = a, b, c, d, e, f, g, h, i, t1, t2 + i = 0 + for { + if !(i < int32(16)) { + break + } + (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i] = uint32(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(4)*i)))) << int32(24) + **(**Tuint32_t)(__ccgo_up(bp + uintptr(i)*4)) |= uint32(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(4)*i+int32(1))))) << int32(16) + **(**Tuint32_t)(__ccgo_up(bp + uintptr(i)*4)) |= uint32(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(4)*i+int32(2))))) << int32(8) + **(**Tuint32_t)(__ccgo_up(bp + uintptr(i)*4)) |= uint32(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(4)*i+int32(3))))) + goto _1 + _1: + ; + i = i + 1 + } + for { + if !(i < int32(64)) { + break + } + (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i] = _ror(tls, (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i-int32(2)], int32(17)) ^ _ror(tls, (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i-int32(2)], int32(19)) ^ (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i-int32(2)]>>Int32FromInt32(10) + (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i-int32(7)] + (_ror(tls, (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i-int32(15)], int32(7)) ^ _ror(tls, (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i-int32(15)], int32(18)) ^ (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i-int32(15)]>>Int32FromInt32(3)) + (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i-int32(16)] + goto _2 + _2: + ; + i = i + 1 + } + a = **(**Tuint32_t)(__ccgo_up(s + 8)) + b = **(**Tuint32_t)(__ccgo_up(s + 8 + 1*4)) + c = **(**Tuint32_t)(__ccgo_up(s + 8 + 2*4)) + d = **(**Tuint32_t)(__ccgo_up(s + 8 + 3*4)) + e = **(**Tuint32_t)(__ccgo_up(s + 8 + 4*4)) + f = **(**Tuint32_t)(__ccgo_up(s + 8 + 5*4)) + g = **(**Tuint32_t)(__ccgo_up(s + 8 + 6*4)) + h = **(**Tuint32_t)(__ccgo_up(s + 8 + 7*4)) + i = 0 + for { + if !(i < int32(64)) { + break + } + t1 = h + (_ror(tls, e, int32(6)) ^ _ror(tls, e, int32(11)) ^ _ror(tls, e, int32(25))) + (g ^ e&(f^g)) + _K[i] + (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i] + t2 = _ror(tls, a, int32(2)) ^ _ror(tls, a, int32(13)) ^ _ror(tls, a, int32(22)) + (a&b | c&(a|b)) + h = g + g = f + f = e + e = d + t1 + d = c + c = b + b = a + a = t1 + t2 + goto _3 + _3: + ; + i = i + 1 + } + **(**Tuint32_t)(__ccgo_up(s + 8)) += a + **(**Tuint32_t)(__ccgo_up(s + 8 + 1*4)) += b + **(**Tuint32_t)(__ccgo_up(s + 8 + 2*4)) += c + **(**Tuint32_t)(__ccgo_up(s + 8 + 3*4)) += d + **(**Tuint32_t)(__ccgo_up(s + 8 + 4*4)) += e + **(**Tuint32_t)(__ccgo_up(s + 8 + 5*4)) += f + **(**Tuint32_t)(__ccgo_up(s + 8 + 6*4)) += g + **(**Tuint32_t)(__ccgo_up(s + 8 + 7*4)) += h +} + +func _pad1(tls *TLS, s uintptr) { + var r, v1 uint32 + _, _ = r, v1 + r = uint32((*Tsha256)(unsafe.Pointer(s)).Flen1 % uint64(64)) + v1 = r + r = r + 1 + **(**Tuint8_t)(__ccgo_up(s + 40 + uintptr(v1))) = uint8(0x80) + if r > uint32(56) { + Xmemset(tls, s+40+uintptr(r), 0, uint64(uint32(64)-r)) + r = uint32(0) + _processblock1(tls, s, s+40) + } + Xmemset(tls, s+40+uintptr(r), 0, uint64(uint32(56)-r)) + **(**Tuint64_t)(__ccgo_up(s)) *= uint64(8) + **(**Tuint8_t)(__ccgo_up(s + 40 + 56)) = uint8((*Tsha256)(unsafe.Pointer(s)).Flen1 >> int32(56)) + **(**Tuint8_t)(__ccgo_up(s + 40 + 57)) = uint8((*Tsha256)(unsafe.Pointer(s)).Flen1 >> int32(48)) + **(**Tuint8_t)(__ccgo_up(s + 40 + 58)) = uint8((*Tsha256)(unsafe.Pointer(s)).Flen1 >> int32(40)) + **(**Tuint8_t)(__ccgo_up(s + 40 + 59)) = uint8((*Tsha256)(unsafe.Pointer(s)).Flen1 >> int32(32)) + **(**Tuint8_t)(__ccgo_up(s + 40 + 60)) = uint8((*Tsha256)(unsafe.Pointer(s)).Flen1 >> int32(24)) + **(**Tuint8_t)(__ccgo_up(s + 40 + 61)) = uint8((*Tsha256)(unsafe.Pointer(s)).Flen1 >> int32(16)) + **(**Tuint8_t)(__ccgo_up(s + 40 + 62)) = uint8((*Tsha256)(unsafe.Pointer(s)).Flen1 >> int32(8)) + **(**Tuint8_t)(__ccgo_up(s + 40 + 63)) = uint8((*Tsha256)(unsafe.Pointer(s)).Flen1) + _processblock1(tls, s, s+40) +} + +func _sha256_init(tls *TLS, s uintptr) { + (*Tsha256)(unsafe.Pointer(s)).Flen1 = uint64(0) + **(**Tuint32_t)(__ccgo_up(s + 8)) = uint32(0x6a09e667) + **(**Tuint32_t)(__ccgo_up(s + 8 + 1*4)) = uint32(0xbb67ae85) + **(**Tuint32_t)(__ccgo_up(s + 8 + 2*4)) = uint32(0x3c6ef372) + **(**Tuint32_t)(__ccgo_up(s + 8 + 3*4)) = uint32(0xa54ff53a) + **(**Tuint32_t)(__ccgo_up(s + 8 + 4*4)) = uint32(0x510e527f) + **(**Tuint32_t)(__ccgo_up(s + 8 + 5*4)) = uint32(0x9b05688c) + **(**Tuint32_t)(__ccgo_up(s + 8 + 6*4)) = uint32(0x1f83d9ab) + **(**Tuint32_t)(__ccgo_up(s + 8 + 7*4)) = uint32(0x5be0cd19) +} + +func _sha256_sum(tls *TLS, s uintptr, md uintptr) { + var i int32 + _ = i + _pad1(tls, s) + i = 0 + for { + if !(i < int32(8)) { + break + } + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(4)*i))) = uint8(**(**Tuint32_t)(__ccgo_up(s + 8 + uintptr(i)*4)) >> int32(24)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(4)*i+int32(1)))) = uint8(**(**Tuint32_t)(__ccgo_up(s + 8 + uintptr(i)*4)) >> int32(16)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(4)*i+int32(2)))) = uint8(**(**Tuint32_t)(__ccgo_up(s + 8 + uintptr(i)*4)) >> int32(8)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(4)*i+int32(3)))) = uint8(**(**Tuint32_t)(__ccgo_up(s + 8 + uintptr(i)*4))) + goto _1 + _1: + ; + i = i + 1 + } +} + +func _sha256_update(tls *TLS, s uintptr, m uintptr, len1 uint64) { + var p uintptr + var r uint32 + _, _ = p, r + p = m + r = uint32((*Tsha256)(unsafe.Pointer(s)).Flen1 % uint64(64)) + **(**Tuint64_t)(__ccgo_up(s)) += len1 + if r != 0 { + if len1 < uint64(uint32(64)-r) { + Xmemcpy(tls, s+40+uintptr(r), p, len1) + return + } + Xmemcpy(tls, s+40+uintptr(r), p, uint64(uint32(64)-r)) + len1 = len1 - uint64(uint32(64)-r) + p = p + uintptr(uint32(64)-r) + _processblock1(tls, s, s+40) + } + for { + if !(len1 >= uint64(64)) { + break + } + _processblock1(tls, s, p) + goto _1 + _1: + ; + len1 = len1 - uint64(64) + p = p + uintptr(64) + } + Xmemcpy(tls, s+40, p, len1) +} + +var _b641 = [65]uint8{'.', '/', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'} + +func _to641(tls *TLS, s uintptr, u uint32, n int32) (r uintptr) { + var v1 int32 + var v2 uintptr + _, _ = v1, v2 + for { + n = n - 1 + v1 = n + if !(v1 >= 0) { + break + } + v2 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = _b641[u%uint32(64)] + u = u / uint32(64) + } + return s +} + +/* key limit is not part of the original design, added for DoS protection. + * rounds limit has been lowered (versus the reference/spec), also for DoS + * protection. runtime is O(klen^2 + klen*rounds) */ + +// C documentation +// +// /* hash n bytes of the repeated md message digest */ +func _hashmd(tls *TLS, s uintptr, n uint32, md uintptr) { + var i uint32 + _ = i + i = n + for { + if !(i > uint32(32)) { + break + } + _sha256_update(tls, s, md, uint64(32)) + goto _1 + _1: + ; + i = i - uint32(32) + } + _sha256_update(tls, s, md, uint64(i)) +} + +func _sha256crypt(tls *TLS, key uintptr, setting uintptr, output uintptr) (r1 uintptr) { + bp := tls.Alloc(272) + defer tls.Free(272) + var i, klen, r, slen uint32 + var p, salt uintptr + var u uint64 + var _ /* ctx at bp+0 */ Tsha256 + var _ /* end at bp+224 */ uintptr + var _ /* kmd at bp+136 */ [32]uint8 + var _ /* md at bp+104 */ [32]uint8 + var _ /* rounds at bp+200 */ [20]uint8 + var _ /* smd at bp+168 */ [32]uint8 + _, _, _, _, _, _, _ = i, klen, p, r, salt, slen, u + **(**[20]uint8)(__ccgo_up(bp + 200)) = [20]uint8{} + /* reject large keys */ + klen = uint32(Xstrnlen(tls, key, Uint64FromInt32(Int32FromInt32(KEY_MAX1)+Int32FromInt32(1)))) + if klen > uint32(KEY_MAX1) { + return uintptr(0) + } + /* setting: $5$rounds=n$salt$ (rounds=n$ and closing $ are optional) */ + if Xstrncmp(tls, setting, __ccgo_ts+147, uint64(3)) != 0 { + return uintptr(0) + } + salt = setting + uintptr(3) + r = uint32(ROUNDS_DEFAULT) + if Xstrncmp(tls, salt, __ccgo_ts+151, Uint64FromInt64(8)-Uint64FromInt32(1)) == 0 { + /* + * this is a deviation from the reference: + * bad rounds setting is rejected if it is + * - empty + * - unterminated (missing '$') + * - begins with anything but a decimal digit + * the reference implementation treats these bad + * rounds as part of the salt or parse them with + * strtoul semantics which may cause problems + * including non-portable hashes that depend on + * the host's value of ULONG_MAX. + */ + salt = salt + uintptr(Uint64FromInt64(8)-Uint64FromInt32(1)) + if !(BoolInt32(uint32(**(**uint8)(__ccgo_up(salt)))-Uint32FromUint8('0') < Uint32FromInt32(10)) != 0) { + return uintptr(0) + } + u = Xstrtoul(tls, salt, bp+224, int32(10)) + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 224))))) != int32('$') { + return uintptr(0) + } + salt = **(**uintptr)(__ccgo_up(bp + 224)) + uintptr(1) + if u < uint64(ROUNDS_MIN) { + r = uint32(ROUNDS_MIN) + } else { + if u > uint64(ROUNDS_MAX) { + return uintptr(0) + } else { + r = uint32(u) + } + } + /* needed when rounds is zero prefixed or out of bounds */ + Xsprintf(tls, bp+200, __ccgo_ts+159, VaList(bp+240, r)) + } + i = uint32(0) + for { + if !(i < uint32(SALT_MAX1) && **(**uint8)(__ccgo_up(salt + uintptr(i))) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(salt + uintptr(i)))) != int32('$')) { + break + } + /* reject characters that interfere with /etc/shadow parsing */ + if Int32FromUint8(**(**uint8)(__ccgo_up(salt + uintptr(i)))) == int32('\n') || Int32FromUint8(**(**uint8)(__ccgo_up(salt + uintptr(i)))) == int32(':') { + return uintptr(0) + } + goto _1 + _1: + ; + i = i + 1 + } + slen = i + /* B = sha(key salt key) */ + _sha256_init(tls, bp) + _sha256_update(tls, bp, key, uint64(klen)) + _sha256_update(tls, bp, salt, uint64(slen)) + _sha256_update(tls, bp, key, uint64(klen)) + _sha256_sum(tls, bp, bp+104) + /* A = sha(key salt repeat-B alternate-B-key) */ + _sha256_init(tls, bp) + _sha256_update(tls, bp, key, uint64(klen)) + _sha256_update(tls, bp, salt, uint64(slen)) + _hashmd(tls, bp, klen, bp+104) + i = klen + for { + if !(i > uint32(0)) { + break + } + if i&uint32(1) != 0 { + _sha256_update(tls, bp, bp+104, uint64(32)) + } else { + _sha256_update(tls, bp, key, uint64(klen)) + } + goto _2 + _2: + ; + i = i >> uint32(1) + } + _sha256_sum(tls, bp, bp+104) + /* DP = sha(repeat-key), this step takes O(klen^2) time */ + _sha256_init(tls, bp) + i = uint32(0) + for { + if !(i < klen) { + break + } + _sha256_update(tls, bp, key, uint64(klen)) + goto _3 + _3: + ; + i = i + 1 + } + _sha256_sum(tls, bp, bp+136) + /* DS = sha(repeat-salt) */ + _sha256_init(tls, bp) + i = uint32(0) + for { + if !(i < Uint32FromInt32(int32(16)+Int32FromUint8((**(**[32]uint8)(__ccgo_up(bp + 104)))[0]))) { + break + } + _sha256_update(tls, bp, salt, uint64(slen)) + goto _4 + _4: + ; + i = i + 1 + } + _sha256_sum(tls, bp, bp+168) + /* iterate A = f(A,DP,DS), this step takes O(rounds*klen) time */ + i = uint32(0) + for { + if !(i < r) { + break + } + _sha256_init(tls, bp) + if i%uint32(2) != 0 { + _hashmd(tls, bp, klen, bp+136) + } else { + _sha256_update(tls, bp, bp+104, uint64(32)) + } + if i%uint32(3) != 0 { + _sha256_update(tls, bp, bp+168, uint64(slen)) + } + if i%uint32(7) != 0 { + _hashmd(tls, bp, klen, bp+136) + } + if i%uint32(2) != 0 { + _sha256_update(tls, bp, bp+104, uint64(32)) + } else { + _hashmd(tls, bp, klen, bp+136) + } + _sha256_sum(tls, bp, bp+104) + goto _5 + _5: + ; + i = i + 1 + } + /* output is $5$rounds=n$salt$hash */ + p = output + p = p + uintptr(Xsprintf(tls, p, __ccgo_ts+170, VaList(bp+240, bp+200, slen, salt))) + i = uint32(0) + for { + if !(i < uint32(10)) { + break + } + p = _to641(tls, p, Uint32FromInt32(Int32FromUint8((**(**[32]uint8)(__ccgo_up(bp + 104)))[**(**uint8)(__ccgo_up(uintptr(unsafe.Pointer(&_perm1)) + uintptr(i)*3))])< %v", r) }() + } + bp := tls.Alloc(128) + defer tls.Free(128) + var p, q uintptr + var _ /* testbuf at bp+0 */ [128]uint8 + _, _ = p, q + p = _sha256crypt(tls, key, setting, output) + /* self test and stack cleanup */ + q = _sha256crypt(tls, uintptr(unsafe.Pointer(&_testkey1)), uintptr(unsafe.Pointer(&_testsetting1)), bp) + if !(p != 0) || q != bp || Xmemcmp(tls, bp, uintptr(unsafe.Pointer(&_testhash1)), uint64(73)) != 0 { + return __ccgo_ts + 70 + } + return p +} + +var _testkey1 = [18]uint8{'X', 'y', '0', '1', '@', '#', 1, 2, 128, 127, 255, 13, 10, 129, 9, ' ', '!'} + +var _testsetting1 = [30]uint8{'$', '5', '$', 'r', 'o', 'u', 'n', 'd', 's', '=', '1', '2', '3', '4', '$', 'a', 'b', 'c', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '$'} + +var _testhash1 = [73]uint8{'$', '5', '$', 'r', 'o', 'u', 'n', 'd', 's', '=', '1', '2', '3', '4', '$', 'a', 'b', 'c', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '$', '3', 'V', 'f', 'D', 'j', 'P', 't', '0', '5', 'V', 'H', 'F', 'n', '4', '7', 'C', '/', 'o', 'j', 'F', 'Z', '6', 'K', 'R', 'P', 'Y', 'r', 'O', 'j', 'j', '1', 'l', 'L', 'b', 'H', '.', 'd', 'k', 'F', '3', 'b', 'Z', '6'} + +/* public domain sha512 implementation based on fips180-3 */ +/* >=2^64 bits messages are not supported (about 2000 peta bytes) */ + +type Tsha512 = struct { + Flen1 Tuint64_t + Fh [8]Tuint64_t + Fbuf [128]Tuint8_t +} + +func _ror1(tls *TLS, n Tuint64_t, k int32) (r Tuint64_t) { + return n>>k | n<<(Int32FromInt32(64)-k) +} + +var _K1 = [80]Tuint64_t{ + 0: uint64(0x428a2f98d728ae22), + 1: uint64(0x7137449123ef65cd), + 2: uint64(0xb5c0fbcfec4d3b2f), + 3: uint64(0xe9b5dba58189dbbc), + 4: uint64(0x3956c25bf348b538), + 5: uint64(0x59f111f1b605d019), + 6: uint64(0x923f82a4af194f9b), + 7: uint64(0xab1c5ed5da6d8118), + 8: uint64(0xd807aa98a3030242), + 9: uint64(0x12835b0145706fbe), + 10: uint64(0x243185be4ee4b28c), + 11: uint64(0x550c7dc3d5ffb4e2), + 12: uint64(0x72be5d74f27b896f), + 13: uint64(0x80deb1fe3b1696b1), + 14: uint64(0x9bdc06a725c71235), + 15: uint64(0xc19bf174cf692694), + 16: uint64(0xe49b69c19ef14ad2), + 17: uint64(0xefbe4786384f25e3), + 18: uint64(0x0fc19dc68b8cd5b5), + 19: uint64(0x240ca1cc77ac9c65), + 20: uint64(0x2de92c6f592b0275), + 21: uint64(0x4a7484aa6ea6e483), + 22: uint64(0x5cb0a9dcbd41fbd4), + 23: uint64(0x76f988da831153b5), + 24: uint64(0x983e5152ee66dfab), + 25: uint64(0xa831c66d2db43210), + 26: uint64(0xb00327c898fb213f), + 27: uint64(0xbf597fc7beef0ee4), + 28: uint64(0xc6e00bf33da88fc2), + 29: uint64(0xd5a79147930aa725), + 30: uint64(0x06ca6351e003826f), + 31: uint64(0x142929670a0e6e70), + 32: uint64(0x27b70a8546d22ffc), + 33: uint64(0x2e1b21385c26c926), + 34: uint64(0x4d2c6dfc5ac42aed), + 35: uint64(0x53380d139d95b3df), + 36: uint64(0x650a73548baf63de), + 37: uint64(0x766a0abb3c77b2a8), + 38: uint64(0x81c2c92e47edaee6), + 39: uint64(0x92722c851482353b), + 40: uint64(0xa2bfe8a14cf10364), + 41: uint64(0xa81a664bbc423001), + 42: uint64(0xc24b8b70d0f89791), + 43: uint64(0xc76c51a30654be30), + 44: uint64(0xd192e819d6ef5218), + 45: uint64(0xd69906245565a910), + 46: uint64(0xf40e35855771202a), + 47: uint64(0x106aa07032bbd1b8), + 48: uint64(0x19a4c116b8d2d0c8), + 49: uint64(0x1e376c085141ab53), + 50: uint64(0x2748774cdf8eeb99), + 51: uint64(0x34b0bcb5e19b48a8), + 52: uint64(0x391c0cb3c5c95a63), + 53: uint64(0x4ed8aa4ae3418acb), + 54: uint64(0x5b9cca4f7763e373), + 55: uint64(0x682e6ff3d6b2b8a3), + 56: uint64(0x748f82ee5defb2fc), + 57: uint64(0x78a5636f43172f60), + 58: uint64(0x84c87814a1f0ab72), + 59: uint64(0x8cc702081a6439ec), + 60: uint64(0x90befffa23631e28), + 61: uint64(0xa4506cebde82bde9), + 62: uint64(0xbef9a3f7b2c67915), + 63: uint64(0xc67178f2e372532b), + 64: uint64(0xca273eceea26619c), + 65: uint64(0xd186b8c721c0c207), + 66: uint64(0xeada7dd6cde0eb1e), + 67: uint64(0xf57d4f7fee6ed178), + 68: uint64(0x06f067aa72176fba), + 69: uint64(0x0a637dc5a2c898a6), + 70: uint64(0x113f9804bef90dae), + 71: uint64(0x1b710b35131c471b), + 72: uint64(0x28db77f523047d84), + 73: uint64(0x32caab7b40c72493), + 74: uint64(0x3c9ebe0a15c9bebc), + 75: uint64(0x431d67c49c100d4c), + 76: uint64(0x4cc5d4becb3e42b6), + 77: uint64(0x597f299cfc657e2a), + 78: uint64(0x5fcb6fab3ad6faec), + 79: uint64(0x6c44198c4a475817), +} + +func _processblock2(tls *TLS, s uintptr, buf uintptr) { + bp := tls.Alloc(640) + defer tls.Free(640) + var a, b, c, d, e, f, g, h, t1, t2 Tuint64_t + var i int32 + var _ /* W at bp+0 */ [80]Tuint64_t + _, _, _, _, _, _, _, _, _, _, _ = a, b, c, d, e, f, g, h, i, t1, t2 + i = 0 + for { + if !(i < int32(16)) { + break + } + (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i] = uint64(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(8)*i)))) << int32(56) + **(**Tuint64_t)(__ccgo_up(bp + uintptr(i)*8)) |= uint64(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(8)*i+int32(1))))) << int32(48) + **(**Tuint64_t)(__ccgo_up(bp + uintptr(i)*8)) |= uint64(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(8)*i+int32(2))))) << int32(40) + **(**Tuint64_t)(__ccgo_up(bp + uintptr(i)*8)) |= uint64(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(8)*i+int32(3))))) << int32(32) + **(**Tuint64_t)(__ccgo_up(bp + uintptr(i)*8)) |= uint64(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(8)*i+int32(4))))) << int32(24) + **(**Tuint64_t)(__ccgo_up(bp + uintptr(i)*8)) |= uint64(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(8)*i+int32(5))))) << int32(16) + **(**Tuint64_t)(__ccgo_up(bp + uintptr(i)*8)) |= uint64(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(8)*i+int32(6))))) << int32(8) + **(**Tuint64_t)(__ccgo_up(bp + uintptr(i)*8)) |= uint64(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(8)*i+int32(7))))) + goto _1 + _1: + ; + i = i + 1 + } + for { + if !(i < int32(80)) { + break + } + (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i] = _ror1(tls, (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i-int32(2)], int32(19)) ^ _ror1(tls, (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i-int32(2)], int32(61)) ^ (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i-int32(2)]>>Int32FromInt32(6) + (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i-int32(7)] + (_ror1(tls, (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i-int32(15)], int32(1)) ^ _ror1(tls, (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i-int32(15)], int32(8)) ^ (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i-int32(15)]>>Int32FromInt32(7)) + (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i-int32(16)] + goto _2 + _2: + ; + i = i + 1 + } + a = **(**Tuint64_t)(__ccgo_up(s + 8)) + b = **(**Tuint64_t)(__ccgo_up(s + 8 + 1*8)) + c = **(**Tuint64_t)(__ccgo_up(s + 8 + 2*8)) + d = **(**Tuint64_t)(__ccgo_up(s + 8 + 3*8)) + e = **(**Tuint64_t)(__ccgo_up(s + 8 + 4*8)) + f = **(**Tuint64_t)(__ccgo_up(s + 8 + 5*8)) + g = **(**Tuint64_t)(__ccgo_up(s + 8 + 6*8)) + h = **(**Tuint64_t)(__ccgo_up(s + 8 + 7*8)) + i = 0 + for { + if !(i < int32(80)) { + break + } + t1 = h + (_ror1(tls, e, int32(14)) ^ _ror1(tls, e, int32(18)) ^ _ror1(tls, e, int32(41))) + (g ^ e&(f^g)) + _K1[i] + (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i] + t2 = _ror1(tls, a, int32(28)) ^ _ror1(tls, a, int32(34)) ^ _ror1(tls, a, int32(39)) + (a&b | c&(a|b)) + h = g + g = f + f = e + e = d + t1 + d = c + c = b + b = a + a = t1 + t2 + goto _3 + _3: + ; + i = i + 1 + } + **(**Tuint64_t)(__ccgo_up(s + 8)) += a + **(**Tuint64_t)(__ccgo_up(s + 8 + 1*8)) += b + **(**Tuint64_t)(__ccgo_up(s + 8 + 2*8)) += c + **(**Tuint64_t)(__ccgo_up(s + 8 + 3*8)) += d + **(**Tuint64_t)(__ccgo_up(s + 8 + 4*8)) += e + **(**Tuint64_t)(__ccgo_up(s + 8 + 5*8)) += f + **(**Tuint64_t)(__ccgo_up(s + 8 + 6*8)) += g + **(**Tuint64_t)(__ccgo_up(s + 8 + 7*8)) += h +} + +func _pad2(tls *TLS, s uintptr) { + var r, v1 uint32 + _, _ = r, v1 + r = uint32((*Tsha512)(unsafe.Pointer(s)).Flen1 % uint64(128)) + v1 = r + r = r + 1 + **(**Tuint8_t)(__ccgo_up(s + 72 + uintptr(v1))) = uint8(0x80) + if r > uint32(112) { + Xmemset(tls, s+72+uintptr(r), 0, uint64(uint32(128)-r)) + r = uint32(0) + _processblock2(tls, s, s+72) + } + Xmemset(tls, s+72+uintptr(r), 0, uint64(uint32(120)-r)) + **(**Tuint64_t)(__ccgo_up(s)) *= uint64(8) + **(**Tuint8_t)(__ccgo_up(s + 72 + 120)) = uint8((*Tsha512)(unsafe.Pointer(s)).Flen1 >> int32(56)) + **(**Tuint8_t)(__ccgo_up(s + 72 + 121)) = uint8((*Tsha512)(unsafe.Pointer(s)).Flen1 >> int32(48)) + **(**Tuint8_t)(__ccgo_up(s + 72 + 122)) = uint8((*Tsha512)(unsafe.Pointer(s)).Flen1 >> int32(40)) + **(**Tuint8_t)(__ccgo_up(s + 72 + 123)) = uint8((*Tsha512)(unsafe.Pointer(s)).Flen1 >> int32(32)) + **(**Tuint8_t)(__ccgo_up(s + 72 + 124)) = uint8((*Tsha512)(unsafe.Pointer(s)).Flen1 >> int32(24)) + **(**Tuint8_t)(__ccgo_up(s + 72 + 125)) = uint8((*Tsha512)(unsafe.Pointer(s)).Flen1 >> int32(16)) + **(**Tuint8_t)(__ccgo_up(s + 72 + 126)) = uint8((*Tsha512)(unsafe.Pointer(s)).Flen1 >> int32(8)) + **(**Tuint8_t)(__ccgo_up(s + 72 + 127)) = uint8((*Tsha512)(unsafe.Pointer(s)).Flen1) + _processblock2(tls, s, s+72) +} + +func _sha512_init(tls *TLS, s uintptr) { + (*Tsha512)(unsafe.Pointer(s)).Flen1 = uint64(0) + **(**Tuint64_t)(__ccgo_up(s + 8)) = uint64(0x6a09e667f3bcc908) + **(**Tuint64_t)(__ccgo_up(s + 8 + 1*8)) = uint64(0xbb67ae8584caa73b) + **(**Tuint64_t)(__ccgo_up(s + 8 + 2*8)) = uint64(0x3c6ef372fe94f82b) + **(**Tuint64_t)(__ccgo_up(s + 8 + 3*8)) = uint64(0xa54ff53a5f1d36f1) + **(**Tuint64_t)(__ccgo_up(s + 8 + 4*8)) = uint64(0x510e527fade682d1) + **(**Tuint64_t)(__ccgo_up(s + 8 + 5*8)) = uint64(0x9b05688c2b3e6c1f) + **(**Tuint64_t)(__ccgo_up(s + 8 + 6*8)) = uint64(0x1f83d9abfb41bd6b) + **(**Tuint64_t)(__ccgo_up(s + 8 + 7*8)) = uint64(0x5be0cd19137e2179) +} + +func _sha512_sum(tls *TLS, s uintptr, md uintptr) { + var i int32 + _ = i + _pad2(tls, s) + i = 0 + for { + if !(i < int32(8)) { + break + } + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(8)*i))) = uint8(**(**Tuint64_t)(__ccgo_up(s + 8 + uintptr(i)*8)) >> int32(56)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(8)*i+int32(1)))) = uint8(**(**Tuint64_t)(__ccgo_up(s + 8 + uintptr(i)*8)) >> int32(48)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(8)*i+int32(2)))) = uint8(**(**Tuint64_t)(__ccgo_up(s + 8 + uintptr(i)*8)) >> int32(40)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(8)*i+int32(3)))) = uint8(**(**Tuint64_t)(__ccgo_up(s + 8 + uintptr(i)*8)) >> int32(32)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(8)*i+int32(4)))) = uint8(**(**Tuint64_t)(__ccgo_up(s + 8 + uintptr(i)*8)) >> int32(24)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(8)*i+int32(5)))) = uint8(**(**Tuint64_t)(__ccgo_up(s + 8 + uintptr(i)*8)) >> int32(16)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(8)*i+int32(6)))) = uint8(**(**Tuint64_t)(__ccgo_up(s + 8 + uintptr(i)*8)) >> int32(8)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(8)*i+int32(7)))) = uint8(**(**Tuint64_t)(__ccgo_up(s + 8 + uintptr(i)*8))) + goto _1 + _1: + ; + i = i + 1 + } +} + +func _sha512_update(tls *TLS, s uintptr, m uintptr, len1 uint64) { + var p uintptr + var r uint32 + _, _ = p, r + p = m + r = uint32((*Tsha512)(unsafe.Pointer(s)).Flen1 % uint64(128)) + **(**Tuint64_t)(__ccgo_up(s)) += len1 + if r != 0 { + if len1 < uint64(uint32(128)-r) { + Xmemcpy(tls, s+72+uintptr(r), p, len1) + return + } + Xmemcpy(tls, s+72+uintptr(r), p, uint64(uint32(128)-r)) + len1 = len1 - uint64(uint32(128)-r) + p = p + uintptr(uint32(128)-r) + _processblock2(tls, s, s+72) + } + for { + if !(len1 >= uint64(128)) { + break + } + _processblock2(tls, s, p) + goto _1 + _1: + ; + len1 = len1 - uint64(128) + p = p + uintptr(128) + } + Xmemcpy(tls, s+72, p, len1) +} + +var _b642 = [65]uint8{'.', '/', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'} + +func _to642(tls *TLS, s uintptr, u uint32, n int32) (r uintptr) { + var v1 int32 + var v2 uintptr + _, _ = v1, v2 + for { + n = n - 1 + v1 = n + if !(v1 >= 0) { + break + } + v2 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = _b642[u%uint32(64)] + u = u / uint32(64) + } + return s +} + +/* key limit is not part of the original design, added for DoS protection. + * rounds limit has been lowered (versus the reference/spec), also for DoS + * protection. runtime is O(klen^2 + klen*rounds) */ + +// C documentation +// +// /* hash n bytes of the repeated md message digest */ +func _hashmd1(tls *TLS, s uintptr, n uint32, md uintptr) { + var i uint32 + _ = i + i = n + for { + if !(i > uint32(64)) { + break + } + _sha512_update(tls, s, md, uint64(64)) + goto _1 + _1: + ; + i = i - uint32(64) + } + _sha512_update(tls, s, md, uint64(i)) +} + +func _sha512crypt(tls *TLS, key uintptr, setting uintptr, output uintptr) (r1 uintptr) { + bp := tls.Alloc(464) + defer tls.Free(464) + var i, klen, r, slen uint32 + var p, salt uintptr + var u uint64 + var _ /* ctx at bp+0 */ Tsha512 + var _ /* end at bp+416 */ uintptr + var _ /* kmd at bp+264 */ [64]uint8 + var _ /* md at bp+200 */ [64]uint8 + var _ /* rounds at bp+392 */ [20]uint8 + var _ /* smd at bp+328 */ [64]uint8 + _, _, _, _, _, _, _ = i, klen, p, r, salt, slen, u + **(**[20]uint8)(__ccgo_up(bp + 392)) = [20]uint8{} + /* reject large keys */ + i = uint32(0) + for { + if !(i <= uint32(KEY_MAX1) && **(**uint8)(__ccgo_up(key + uintptr(i))) != 0) { + break + } + goto _1 + _1: + ; + i = i + 1 + } + if i > uint32(KEY_MAX1) { + return uintptr(0) + } + klen = i + /* setting: $6$rounds=n$salt$ (rounds=n$ and closing $ are optional) */ + if Xstrncmp(tls, setting, __ccgo_ts+181, uint64(3)) != 0 { + return uintptr(0) + } + salt = setting + uintptr(3) + r = uint32(ROUNDS_DEFAULT) + if Xstrncmp(tls, salt, __ccgo_ts+151, Uint64FromInt64(8)-Uint64FromInt32(1)) == 0 { + /* + * this is a deviation from the reference: + * bad rounds setting is rejected if it is + * - empty + * - unterminated (missing '$') + * - begins with anything but a decimal digit + * the reference implementation treats these bad + * rounds as part of the salt or parse them with + * strtoul semantics which may cause problems + * including non-portable hashes that depend on + * the host's value of ULONG_MAX. + */ + salt = salt + uintptr(Uint64FromInt64(8)-Uint64FromInt32(1)) + if !(BoolInt32(uint32(**(**uint8)(__ccgo_up(salt)))-Uint32FromUint8('0') < Uint32FromInt32(10)) != 0) { + return uintptr(0) + } + u = Xstrtoul(tls, salt, bp+416, int32(10)) + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 416))))) != int32('$') { + return uintptr(0) + } + salt = **(**uintptr)(__ccgo_up(bp + 416)) + uintptr(1) + if u < uint64(ROUNDS_MIN) { + r = uint32(ROUNDS_MIN) + } else { + if u > uint64(ROUNDS_MAX) { + return uintptr(0) + } else { + r = uint32(u) + } + } + /* needed when rounds is zero prefixed or out of bounds */ + Xsprintf(tls, bp+392, __ccgo_ts+159, VaList(bp+432, r)) + } + i = uint32(0) + for { + if !(i < uint32(SALT_MAX1) && **(**uint8)(__ccgo_up(salt + uintptr(i))) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(salt + uintptr(i)))) != int32('$')) { + break + } + /* reject characters that interfere with /etc/shadow parsing */ + if Int32FromUint8(**(**uint8)(__ccgo_up(salt + uintptr(i)))) == int32('\n') || Int32FromUint8(**(**uint8)(__ccgo_up(salt + uintptr(i)))) == int32(':') { + return uintptr(0) + } + goto _2 + _2: + ; + i = i + 1 + } + slen = i + /* B = sha(key salt key) */ + _sha512_init(tls, bp) + _sha512_update(tls, bp, key, uint64(klen)) + _sha512_update(tls, bp, salt, uint64(slen)) + _sha512_update(tls, bp, key, uint64(klen)) + _sha512_sum(tls, bp, bp+200) + /* A = sha(key salt repeat-B alternate-B-key) */ + _sha512_init(tls, bp) + _sha512_update(tls, bp, key, uint64(klen)) + _sha512_update(tls, bp, salt, uint64(slen)) + _hashmd1(tls, bp, klen, bp+200) + i = klen + for { + if !(i > uint32(0)) { + break + } + if i&uint32(1) != 0 { + _sha512_update(tls, bp, bp+200, uint64(64)) + } else { + _sha512_update(tls, bp, key, uint64(klen)) + } + goto _3 + _3: + ; + i = i >> uint32(1) + } + _sha512_sum(tls, bp, bp+200) + /* DP = sha(repeat-key), this step takes O(klen^2) time */ + _sha512_init(tls, bp) + i = uint32(0) + for { + if !(i < klen) { + break + } + _sha512_update(tls, bp, key, uint64(klen)) + goto _4 + _4: + ; + i = i + 1 + } + _sha512_sum(tls, bp, bp+264) + /* DS = sha(repeat-salt) */ + _sha512_init(tls, bp) + i = uint32(0) + for { + if !(i < Uint32FromInt32(int32(16)+Int32FromUint8((**(**[64]uint8)(__ccgo_up(bp + 200)))[0]))) { + break + } + _sha512_update(tls, bp, salt, uint64(slen)) + goto _5 + _5: + ; + i = i + 1 + } + _sha512_sum(tls, bp, bp+328) + /* iterate A = f(A,DP,DS), this step takes O(rounds*klen) time */ + i = uint32(0) + for { + if !(i < r) { + break + } + _sha512_init(tls, bp) + if i%uint32(2) != 0 { + _hashmd1(tls, bp, klen, bp+264) + } else { + _sha512_update(tls, bp, bp+200, uint64(64)) + } + if i%uint32(3) != 0 { + _sha512_update(tls, bp, bp+328, uint64(slen)) + } + if i%uint32(7) != 0 { + _hashmd1(tls, bp, klen, bp+264) + } + if i%uint32(2) != 0 { + _sha512_update(tls, bp, bp+200, uint64(64)) + } else { + _hashmd1(tls, bp, klen, bp+264) + } + _sha512_sum(tls, bp, bp+200) + goto _6 + _6: + ; + i = i + 1 + } + /* output is $6$rounds=n$salt$hash */ + p = output + p = p + uintptr(Xsprintf(tls, p, __ccgo_ts+185, VaList(bp+432, bp+392, slen, salt))) + i = uint32(0) + for { + if !(i < uint32(21)) { + break + } + p = _to642(tls, p, Uint32FromInt32(Int32FromUint8((**(**[64]uint8)(__ccgo_up(bp + 200)))[**(**uint8)(__ccgo_up(uintptr(unsafe.Pointer(&_perm2)) + uintptr(i)*3))])< %v", r) }() + } + bp := tls.Alloc(128) + defer tls.Free(128) + var p, q uintptr + var _ /* testbuf at bp+0 */ [128]uint8 + _, _ = p, q + p = _sha512crypt(tls, key, setting, output) + /* self test and stack cleanup */ + q = _sha512crypt(tls, uintptr(unsafe.Pointer(&_testkey2)), uintptr(unsafe.Pointer(&_testsetting2)), bp) + if !(p != 0) || q != bp || Xmemcmp(tls, bp, uintptr(unsafe.Pointer(&_testhash2)), uint64(116)) != 0 { + return __ccgo_ts + 70 + } + return p +} + +var _testkey2 = [18]uint8{'X', 'y', '0', '1', '@', '#', 1, 2, 128, 127, 255, 13, 10, 129, 9, ' ', '!'} + +var _testsetting2 = [30]uint8{'$', '6', '$', 'r', 'o', 'u', 'n', 'd', 's', '=', '1', '2', '3', '4', '$', 'a', 'b', 'c', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '$'} + +var _testhash2 = [116]uint8{'$', '6', '$', 'r', 'o', 'u', 'n', 'd', 's', '=', '1', '2', '3', '4', '$', 'a', 'b', 'c', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '$', 'B', 'C', 'p', 't', '8', 'z', 'L', 'r', 'c', '/', 'R', 'c', 'y', 'u', 'X', 'm', 'C', 'D', 'O', 'E', '1', 'A', 'L', 'q', 'M', 'X', 'B', '2', 'M', 'H', '6', 'n', '1', 'g', '8', '9', '1', 'H', 'h', 'F', 'j', '8', '.', 'w', '7', 'L', 'x', 'G', 'v', '.', 'F', 'T', 'k', 'q', 'q', '6', 'V', 'x', 'c', '/', 'k', 'm', '3', 'Y', '0', 'j', 'E', '0', 'j', '2', '4', 'j', 'Y', '5', 'P', 'I', 'v', '/', 'o', 'O', 'u', '6', 'r', 'e', 'g', '1'} + +var ___encrypt_key Texpanded_key + +func Xsetkey(tls *TLS, key uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v, (%v:)", tls, key, origin(2)) + } + bp := tls.Alloc(16) + defer tls.Free(16) + var i, j int32 + var v3 uintptr + var _ /* bkey at bp+0 */ [8]uint8 + _, _, _ = i, j, v3 + i = 0 + for { + if !(i < int32(8)) { + break + } + (**(**[8]uint8)(__ccgo_up(bp)))[i] = uint8(0) + j = int32(7) + for { + if !(j >= 0) { + break + } + v3 = bp + uintptr(i) + *(*uint8)(unsafe.Pointer(v3)) = uint8(uint32(*(*uint8)(unsafe.Pointer(v3))) | Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(key)))&Int32FromInt32(1))<= 0) { + break + } + **(**Tuint32_t)(__ccgo_up(bp + 128 + uintptr(i)*4)) |= Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(p)))&Int32FromInt32(1)) << j + goto _2 + _2: + ; + j = j - 1 + p = p + 1 + } + goto _1 + _1: + ; + i = i + 1 + } + key = uintptr(unsafe.Pointer(&___encrypt_key)) + if edflag != 0 { + key = bp + i = 0 + for { + if !(i < int32(16)) { + break + } + **(**Tuint32_t)(__ccgo_up(bp + uintptr(i)*4)) = **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&___encrypt_key)) + uintptr(int32(15)-i)*4)) + **(**Tuint32_t)(__ccgo_up(bp + 64 + uintptr(i)*4)) = **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&___encrypt_key)) + 64 + uintptr(int32(15)-i)*4)) + goto _3 + _3: + ; + i = i + 1 + } + } + X__do_des(tls, (**(**[2]Tuint32_t)(__ccgo_up(bp + 128)))[0], (**(**[2]Tuint32_t)(__ccgo_up(bp + 128)))[int32(1)], bp+128, bp+128+uintptr(1)*4, uint32(1), uint32(0), key) + p = block + i = 0 + for { + if !(i < int32(2)) { + break + } + j = int32(31) + for { + if !(j >= 0) { + break + } + v6 = p + p = p + 1 + **(**uint8)(__ccgo_up(v6)) = uint8((**(**[2]Tuint32_t)(__ccgo_up(bp + 128)))[i] >> j & uint32(1)) + goto _5 + _5: + ; + j = j - 1 + } + goto _4 + _4: + ; + i = i + 1 + } +} + +var _table = [384]uint16{ + 128: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 129: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 130: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 131: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 132: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 133: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 134: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 135: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 136: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 137: Uint16FromInt32((Int32FromInt32(0x320)/Int32FromInt32(256) | Int32FromInt32(0x320)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 138: Uint16FromInt32((Int32FromInt32(0x220)/Int32FromInt32(256) | Int32FromInt32(0x220)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 139: Uint16FromInt32((Int32FromInt32(0x220)/Int32FromInt32(256) | Int32FromInt32(0x220)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 140: Uint16FromInt32((Int32FromInt32(0x220)/Int32FromInt32(256) | Int32FromInt32(0x220)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 141: Uint16FromInt32((Int32FromInt32(0x220)/Int32FromInt32(256) | Int32FromInt32(0x220)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 142: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 143: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 144: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 145: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 146: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 147: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 148: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 149: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 150: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 151: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 152: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 153: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 154: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 155: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 156: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 157: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 158: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 159: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 160: Uint16FromInt32((Int32FromInt32(0x160)/Int32FromInt32(256) | Int32FromInt32(0x160)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 161: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 162: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 163: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 164: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 165: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 166: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 167: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 168: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 169: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 170: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 171: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 172: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 173: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 174: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 175: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 176: Uint16FromInt32((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 177: Uint16FromInt32((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 178: Uint16FromInt32((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 179: Uint16FromInt32((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 180: Uint16FromInt32((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 181: Uint16FromInt32((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 182: Uint16FromInt32((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 183: Uint16FromInt32((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 184: Uint16FromInt32((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 185: Uint16FromInt32((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 186: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 187: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 188: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 189: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 190: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 191: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 192: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 193: Uint16FromInt32((Int32FromInt32(0x8d5)/Int32FromInt32(256) | Int32FromInt32(0x8d5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 194: Uint16FromInt32((Int32FromInt32(0x8d5)/Int32FromInt32(256) | Int32FromInt32(0x8d5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 195: Uint16FromInt32((Int32FromInt32(0x8d5)/Int32FromInt32(256) | Int32FromInt32(0x8d5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 196: Uint16FromInt32((Int32FromInt32(0x8d5)/Int32FromInt32(256) | Int32FromInt32(0x8d5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 197: Uint16FromInt32((Int32FromInt32(0x8d5)/Int32FromInt32(256) | Int32FromInt32(0x8d5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 198: Uint16FromInt32((Int32FromInt32(0x8d5)/Int32FromInt32(256) | Int32FromInt32(0x8d5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 199: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 200: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 201: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 202: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 203: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 204: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 205: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 206: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 207: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 208: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 209: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 210: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 211: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 212: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 213: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 214: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 215: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 216: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 217: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 218: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 219: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 220: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 221: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 222: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 223: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 224: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 225: Uint16FromInt32((Int32FromInt32(0x8d6)/Int32FromInt32(256) | Int32FromInt32(0x8d6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 226: Uint16FromInt32((Int32FromInt32(0x8d6)/Int32FromInt32(256) | Int32FromInt32(0x8d6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 227: Uint16FromInt32((Int32FromInt32(0x8d6)/Int32FromInt32(256) | Int32FromInt32(0x8d6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 228: Uint16FromInt32((Int32FromInt32(0x8d6)/Int32FromInt32(256) | Int32FromInt32(0x8d6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 229: Uint16FromInt32((Int32FromInt32(0x8d6)/Int32FromInt32(256) | Int32FromInt32(0x8d6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 230: Uint16FromInt32((Int32FromInt32(0x8d6)/Int32FromInt32(256) | Int32FromInt32(0x8d6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 231: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 232: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 233: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 234: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 235: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 236: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 237: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 238: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 239: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 240: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 241: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 242: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 243: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 244: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 245: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 246: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 247: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 248: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 249: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 250: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 251: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 252: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 253: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 254: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 255: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), +} + +var _ptable = uintptr(unsafe.Pointer(&_table)) + uintptr(128)*2 + +func X__ctype_b_loc(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(unsafe.Pointer(&_ptable)) +} + +const CLOCKS_PER_SEC = 1000000 +const CLOCK_BOOTTIME = 7 +const CLOCK_BOOTTIME_ALARM = 9 +const CLOCK_MONOTONIC = 1 +const CLOCK_MONOTONIC_COARSE = 6 +const CLOCK_MONOTONIC_RAW = 4 +const CLOCK_PROCESS_CPUTIME_ID = 2 +const CLOCK_REALTIME = 0 +const CLOCK_REALTIME_ALARM = 8 +const CLOCK_REALTIME_COARSE = 5 +const CLOCK_SGI_CYCLE = 10 +const CLOCK_TAI = 11 +const CLOCK_THREAD_CPUTIME_ID = 3 +const C_LOCALE = 0 +const DEFAULT_GUARD_MAX = 1048576 +const DEFAULT_GUARD_SIZE = 8192 +const DEFAULT_STACK_MAX = 8388608 +const DEFAULT_STACK_SIZE = 131072 +const DTP_OFFSET = 32768 +const FUTEX_CLOCK_REALTIME = 256 +const FUTEX_CMP_REQUEUE = 4 +const FUTEX_FD = 2 +const FUTEX_LOCK_PI = 6 +const FUTEX_PRIVATE = 128 +const FUTEX_REQUEUE = 3 +const FUTEX_TRYLOCK_PI = 8 +const FUTEX_UNLOCK_PI = 7 +const FUTEX_WAIT = 0 +const FUTEX_WAIT_BITSET = 9 +const FUTEX_WAKE = 1 +const FUTEX_WAKE_OP = 5 +const GAP_ABOVE_TP = 0 +const LC_ALL = 6 +const LC_ALL_MASK = 2147483647 +const LC_COLLATE = 3 +const LC_COLLATE_MASK = 8 +const LC_CTYPE = 0 +const LC_CTYPE_MASK = 1 +const LC_GLOBAL_LOCALE = -1 +const LC_MESSAGES = 5 +const LC_MESSAGES_MASK = 32 +const LC_MONETARY = 4 +const LC_MONETARY_MASK = 16 +const LC_NUMERIC = 1 +const LC_NUMERIC_MASK = 2 +const LC_TIME = 2 +const LC_TIME_MASK = 4 +const LOCALE_NAME_MAX = 23 +const MAP_ANON = 32 +const MAP_ANONYMOUS = 32 +const MAP_DENYWRITE = 2048 +const MAP_EXECUTABLE = 4096 +const MAP_FAILED = -1 +const MAP_FILE = 0 +const MAP_FIXED = 16 +const MAP_FIXED_NOREPLACE = 1048576 +const MAP_GROWSDOWN = 256 +const MAP_HUGETLB = 262144 +const MAP_HUGE_16GB = 2281701376 +const MAP_HUGE_16KB = 939524096 +const MAP_HUGE_16MB = 1610612736 +const MAP_HUGE_1GB = 2013265920 +const MAP_HUGE_1MB = 1342177280 +const MAP_HUGE_256MB = 1879048192 +const MAP_HUGE_2GB = 2080374784 +const MAP_HUGE_2MB = 1409286144 +const MAP_HUGE_32MB = 1677721600 +const MAP_HUGE_512KB = 1275068416 +const MAP_HUGE_512MB = 1946157056 +const MAP_HUGE_64KB = 1073741824 +const MAP_HUGE_8MB = 1543503872 +const MAP_HUGE_MASK = 63 +const MAP_HUGE_SHIFT = 26 +const MAP_NONBLOCK = 65536 +const MAP_POPULATE = 32768 +const MAP_PRIVATE = 2 +const MAP_SHARED = 1 +const MAP_SHARED_VALIDATE = 3 +const MAP_STACK = 131072 +const MAP_SYNC = 524288 +const MAP_TYPE = 15 +const MS_ASYNC = 1 +const MS_INVALIDATE = 2 +const MS_SYNC = 4 +const POSIX_MADV_DONTNEED = 4 +const POSIX_MADV_NORMAL = 0 +const POSIX_MADV_RANDOM = 1 +const POSIX_MADV_SEQUENTIAL = 2 +const POSIX_MADV_WILLNEED = 3 +const PROT_EXEC = 4 +const PROT_GROWSDOWN = 16777216 +const PROT_GROWSUP = 33554432 +const PROT_NONE = 0 +const PROT_READ = 1 +const PROT_SAO = 16 +const PROT_WRITE = 2 +const PTHREAD_BARRIER_SERIAL_THREAD = -1 +const PTHREAD_CANCELED = -1 +const PTHREAD_CANCEL_ASYNCHRONOUS = 1 +const PTHREAD_CANCEL_DEFERRED = 0 +const PTHREAD_CANCEL_DISABLE = 1 +const PTHREAD_CANCEL_ENABLE = 0 +const PTHREAD_CANCEL_MASKED = 2 +const PTHREAD_CREATE_DETACHED = 1 +const PTHREAD_CREATE_JOINABLE = 0 +const PTHREAD_EXPLICIT_SCHED = 1 +const PTHREAD_INHERIT_SCHED = 0 +const PTHREAD_MUTEX_DEFAULT = 0 +const PTHREAD_MUTEX_ERRORCHECK = 2 +const PTHREAD_MUTEX_NORMAL = 0 +const PTHREAD_MUTEX_RECURSIVE = 1 +const PTHREAD_MUTEX_ROBUST = 1 +const PTHREAD_MUTEX_STALLED = 0 +const PTHREAD_ONCE_INIT = 0 +const PTHREAD_PRIO_INHERIT = 1 +const PTHREAD_PRIO_NONE = 0 +const PTHREAD_PRIO_PROTECT = 2 +const PTHREAD_PROCESS_PRIVATE = 0 +const PTHREAD_PROCESS_SHARED = 1 +const PTHREAD_SCOPE_PROCESS = 1 +const PTHREAD_SCOPE_SYSTEM = 0 +const SCHED_BATCH = 3 +const SCHED_DEADLINE = 6 +const SCHED_FIFO = 1 +const SCHED_IDLE = 5 +const SCHED_OTHER = 0 +const SCHED_RESET_ON_FORK = 1073741824 +const SCHED_RR = 2 +const SIGCANCEL = 33 +const SIGSYNCCALL = 34 +const SIGTIMER = 32 +const TIMER_ABSTIME = 1 +const TIME_UTC = 1 +const TP_OFFSET = 28672 +const UTF8_LOCALE = 0 +const __CCGO_SIZEOF_GO_MUTEX = 8 +const __SU = 0 +const a_pre_llsc = 0 +const a_spin = 0 +const pthread = 0 +const tls_mod_off_t = 0 + +type Tlconv = struct { + Fdecimal_point uintptr + Fthousands_sep uintptr + Fgrouping uintptr + Fint_curr_symbol uintptr + Fcurrency_symbol uintptr + Fmon_decimal_point uintptr + Fmon_thousands_sep uintptr + Fmon_grouping uintptr + Fpositive_sign uintptr + Fnegative_sign uintptr + Fint_frac_digits uint8 + Ffrac_digits uint8 + Fp_cs_precedes uint8 + Fp_sep_by_space uint8 + Fn_cs_precedes uint8 + Fn_sep_by_space uint8 + Fp_sign_posn uint8 + Fn_sign_posn uint8 + Fint_p_cs_precedes uint8 + Fint_p_sep_by_space uint8 + Fint_n_cs_precedes uint8 + Fint_n_sep_by_space uint8 + Fint_p_sign_posn uint8 + Fint_n_sign_posn uint8 +} + +type t__locale_map = struct { + Fmap1 uintptr + Fmap_size Tsize_t + Fname [24]uint8 + Fnext uintptr +} + +type Tclockid_t = int32 + +type t__pthread = struct { + Fself uintptr + Fprev uintptr + Fnext uintptr + Fsysinfo Tuintptr_t + Ftid int32 + Ferrno_val int32 + Fdetach_state int32 + Fcancel int32 + Fcanceldisable uint8 + Fcancelasync uint8 + F__ccgo50 uint8 + Fmap_base uintptr + Fmap_size Tsize_t + Fstack uintptr + Fstack_size Tsize_t + Fguard_size Tsize_t + Fresult uintptr + Fcancelbuf uintptr + Ftsd uintptr + Frobust_list struct { + Fhead uintptr + Foff int64 + Fpending uintptr + } + Fh_errno_val int32 + Ftimer_id int32 + Flocale Tlocale_t + Fkilllock [1]int32 + Fdlerror_buf uintptr + Fstdio_locks uintptr + F__ccgo_join_mutex [1]int64 + Fcanary Tuintptr_t + Fdtv uintptr +} + +type Tpthread_once_t = int32 + +type Tpthread_key_t = uint32 + +type Tpthread_spinlock_t = int32 + +type Tpthread_mutexattr_t = struct { + F__attr uint32 +} + +type Tpthread_condattr_t = struct { + F__attr uint32 +} + +type Tpthread_barrierattr_t = struct { + F__attr uint32 +} + +type Tpthread_rwlockattr_t = struct { + F__attr [2]uint32 +} + +type Tpthread_mutex_t = struct { + F__u struct { + F__vi [0][10]int32 + F__p [0][5]uintptr + F__i [10]int32 + } +} + +type Tpthread_cond_t = struct { + F__u struct { + F__vi [0][12]int32 + F__p [0][6]uintptr + F__i [12]int32 + } +} + +type Tpthread_rwlock_t = struct { + F__u struct { + F__vi [0][14]int32 + F__p [0][7]uintptr + F__i [14]int32 + } +} + +type Tpthread_barrier_t = struct { + F__u struct { + F__vi [0][8]int32 + F__p [0][4]uintptr + F__i [8]int32 + } +} + +type Tsched_param = struct { + Fsched_priority int32 + F__reserved1 int32 + F__reserved2 [2]struct { + F__reserved1 Ttime_t + F__reserved2 int64 + } + F__reserved3 int32 +} + +type Ttimer_t = uintptr + +type Ttm = struct { + Ftm_sec int32 + Ftm_min int32 + Ftm_hour int32 + Ftm_mday int32 + Ftm_mon int32 + Ftm_year int32 + Ftm_wday int32 + Ftm_yday int32 + Ftm_isdst int32 + F__tm_gmtoff int64 + F__tm_zone uintptr +} + +type Titimerspec = struct { + Fit_interval Ttimespec + Fit_value Ttimespec +} + +type t__ptcb = struct { + F__f uintptr + F__x uintptr + F__next uintptr +} + +type Tmode_t = uint32 + +const _DT_EXITED = 0 +const _DT_EXITING = 1 +const _DT_JOINABLE = 2 +const _DT_DETACHED = 3 + +func X__ctype_get_mb_cur_max(tls *TLS) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + _ = v1 + if !!(**(**uintptr)(__ccgo_up((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale)) != 0) { + v1 = int32(4) + } else { + v1 = int32(1) + } + return Uint64FromInt32(v1) +} + +var _table1 = [384]Tint32_t{ + 129: int32(1), + 130: int32(2), + 131: int32(3), + 132: int32(4), + 133: int32(5), + 134: int32(6), + 135: int32(7), + 136: int32(8), + 137: int32(9), + 138: int32(10), + 139: int32(11), + 140: int32(12), + 141: int32(13), + 142: int32(14), + 143: int32(15), + 144: int32(16), + 145: int32(17), + 146: int32(18), + 147: int32(19), + 148: int32(20), + 149: int32(21), + 150: int32(22), + 151: int32(23), + 152: int32(24), + 153: int32(25), + 154: int32(26), + 155: int32(27), + 156: int32(28), + 157: int32(29), + 158: int32(30), + 159: int32(31), + 160: int32(32), + 161: int32(33), + 162: int32(34), + 163: int32(35), + 164: int32(36), + 165: int32(37), + 166: int32(38), + 167: int32(39), + 168: int32(40), + 169: int32(41), + 170: int32(42), + 171: int32(43), + 172: int32(44), + 173: int32(45), + 174: int32(46), + 175: int32(47), + 176: int32(48), + 177: int32(49), + 178: int32(50), + 179: int32(51), + 180: int32(52), + 181: int32(53), + 182: int32(54), + 183: int32(55), + 184: int32(56), + 185: int32(57), + 186: int32(58), + 187: int32(59), + 188: int32(60), + 189: int32(61), + 190: int32(62), + 191: int32(63), + 192: int32(64), + 193: int32('a'), + 194: int32('b'), + 195: int32('c'), + 196: int32('d'), + 197: int32('e'), + 198: int32('f'), + 199: int32('g'), + 200: int32('h'), + 201: int32('i'), + 202: int32('j'), + 203: int32('k'), + 204: int32('l'), + 205: int32('m'), + 206: int32('n'), + 207: int32('o'), + 208: int32('p'), + 209: int32('q'), + 210: int32('r'), + 211: int32('s'), + 212: int32('t'), + 213: int32('u'), + 214: int32('v'), + 215: int32('w'), + 216: int32('x'), + 217: int32('y'), + 218: int32('z'), + 219: int32(91), + 220: int32(92), + 221: int32(93), + 222: int32(94), + 223: int32(95), + 224: int32(96), + 225: int32('a'), + 226: int32('b'), + 227: int32('c'), + 228: int32('d'), + 229: int32('e'), + 230: int32('f'), + 231: int32('g'), + 232: int32('h'), + 233: int32('i'), + 234: int32('j'), + 235: int32('k'), + 236: int32('l'), + 237: int32('m'), + 238: int32('n'), + 239: int32('o'), + 240: int32('p'), + 241: int32('q'), + 242: int32('r'), + 243: int32('s'), + 244: int32('t'), + 245: int32('u'), + 246: int32('v'), + 247: int32('w'), + 248: int32('x'), + 249: int32('y'), + 250: int32('z'), + 251: int32(123), + 252: int32(124), + 253: int32(125), + 254: int32(126), + 255: int32(127), +} + +var _ptable1 = uintptr(unsafe.Pointer(&_table1)) + uintptr(128)*4 + +func X__ctype_tolower_loc(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(unsafe.Pointer(&_ptable1)) +} + +var _table2 = [384]Tint32_t{ + 129: int32(1), + 130: int32(2), + 131: int32(3), + 132: int32(4), + 133: int32(5), + 134: int32(6), + 135: int32(7), + 136: int32(8), + 137: int32(9), + 138: int32(10), + 139: int32(11), + 140: int32(12), + 141: int32(13), + 142: int32(14), + 143: int32(15), + 144: int32(16), + 145: int32(17), + 146: int32(18), + 147: int32(19), + 148: int32(20), + 149: int32(21), + 150: int32(22), + 151: int32(23), + 152: int32(24), + 153: int32(25), + 154: int32(26), + 155: int32(27), + 156: int32(28), + 157: int32(29), + 158: int32(30), + 159: int32(31), + 160: int32(32), + 161: int32(33), + 162: int32(34), + 163: int32(35), + 164: int32(36), + 165: int32(37), + 166: int32(38), + 167: int32(39), + 168: int32(40), + 169: int32(41), + 170: int32(42), + 171: int32(43), + 172: int32(44), + 173: int32(45), + 174: int32(46), + 175: int32(47), + 176: int32(48), + 177: int32(49), + 178: int32(50), + 179: int32(51), + 180: int32(52), + 181: int32(53), + 182: int32(54), + 183: int32(55), + 184: int32(56), + 185: int32(57), + 186: int32(58), + 187: int32(59), + 188: int32(60), + 189: int32(61), + 190: int32(62), + 191: int32(63), + 192: int32(64), + 193: int32('A'), + 194: int32('B'), + 195: int32('C'), + 196: int32('D'), + 197: int32('E'), + 198: int32('F'), + 199: int32('G'), + 200: int32('H'), + 201: int32('I'), + 202: int32('J'), + 203: int32('K'), + 204: int32('L'), + 205: int32('M'), + 206: int32('N'), + 207: int32('O'), + 208: int32('P'), + 209: int32('Q'), + 210: int32('R'), + 211: int32('S'), + 212: int32('T'), + 213: int32('U'), + 214: int32('V'), + 215: int32('W'), + 216: int32('X'), + 217: int32('Y'), + 218: int32('Z'), + 219: int32(91), + 220: int32(92), + 221: int32(93), + 222: int32(94), + 223: int32(95), + 224: int32(96), + 225: int32('A'), + 226: int32('B'), + 227: int32('C'), + 228: int32('D'), + 229: int32('E'), + 230: int32('F'), + 231: int32('G'), + 232: int32('H'), + 233: int32('I'), + 234: int32('J'), + 235: int32('K'), + 236: int32('L'), + 237: int32('M'), + 238: int32('N'), + 239: int32('O'), + 240: int32('P'), + 241: int32('Q'), + 242: int32('R'), + 243: int32('S'), + 244: int32('T'), + 245: int32('U'), + 246: int32('V'), + 247: int32('W'), + 248: int32('X'), + 249: int32('Y'), + 250: int32('Z'), + 251: int32(123), + 252: int32(124), + 253: int32(125), + 254: int32(126), + 255: int32(127), +} + +var _ptable2 = uintptr(unsafe.Pointer(&_table2)) + uintptr(128)*4 + +func X__ctype_toupper_loc(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(unsafe.Pointer(&_ptable2)) +} + +func Xisalnum(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(BoolInt32(Uint32FromInt32(c)|uint32(32)-uint32('a') < uint32(26)) != 0 || BoolInt32(Uint32FromInt32(c)-uint32('0') < uint32(10)) != 0) +} + +func X__isalnum_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xisalnum(tls, c) +} + +func Xisalnum_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__isalnum_l(tls, c, l) +} + +func Xisalpha(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(Uint32FromInt32(c)|uint32(32)-uint32('a') < uint32(26)) +} + +func X__isalpha_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xisalpha(tls, c) +} + +func Xisalpha_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__isalpha_l(tls, c, l) +} + +func Xisascii(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(!(c & ^Int32FromInt32(0x7f) != 0)) +} + +func Xisblank(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(c == int32(' ') || c == int32('\t')) +} + +func X__isblank_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xisblank(tls, c) +} + +func Xisblank_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__isblank_l(tls, c, l) +} + +func Xiscntrl(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(Uint32FromInt32(c) < uint32(0x20) || c == int32(0x7f)) +} + +func X__iscntrl_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiscntrl(tls, c) +} + +func Xiscntrl_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iscntrl_l(tls, c, l) +} + +func Xisdigit(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(Uint32FromInt32(c)-uint32('0') < uint32(10)) +} + +func X__isdigit_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xisdigit(tls, c) +} + +func Xisdigit_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__isdigit_l(tls, c, l) +} + +func Xisgraph(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(Uint32FromInt32(c)-uint32(0x21) < uint32(0x5e)) +} + +func X__isgraph_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xisgraph(tls, c) +} + +func Xisgraph_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__isgraph_l(tls, c, l) +} + +func Xislower(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(Uint32FromInt32(c)-uint32('a') < uint32(26)) +} + +func X__islower_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xislower(tls, c) +} + +func Xislower_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__islower_l(tls, c, l) +} + +func Xisprint(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(Uint32FromInt32(c)-uint32(0x20) < uint32(0x5f)) +} + +func X__isprint_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xisprint(tls, c) +} + +func Xisprint_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__isprint_l(tls, c, l) +} + +func Xispunct(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(BoolInt32(Uint32FromInt32(c)-uint32(0x21) < uint32(0x5e)) != 0 && !(Xisalnum(tls, c) != 0)) +} + +func X__ispunct_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xispunct(tls, c) +} + +func Xispunct_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__ispunct_l(tls, c, l) +} + +func Xisspace(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(c == int32(' ') || Uint32FromInt32(c)-uint32('\t') < uint32(5)) +} + +func X__isspace_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xisspace(tls, c) +} + +func Xisspace_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__isspace_l(tls, c, l) +} + +func Xisupper(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(Uint32FromInt32(c)-uint32('A') < uint32(26)) +} + +func X__isupper_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xisupper(tls, c) +} + +func Xisupper_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__isupper_l(tls, c, l) +} + +type Twint_t = uint32 + +type Twctype_t = uint64 + +type Twctrans_t = uintptr + +func Xiswalnum(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(BoolInt32(wc-uint32('0') < uint32(10)) != 0 || Xiswalpha(tls, wc) != 0) +} + +func X__iswalnum_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswalnum(tls, c) +} + +func Xiswalnum_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswalnum_l(tls, c, l) +} + +var _table3 = [3904]uint8{ + 0: uint8(18), + 1: uint8(17), + 2: uint8(19), + 3: uint8(20), + 4: uint8(21), + 5: uint8(22), + 6: uint8(23), + 7: uint8(24), + 8: uint8(25), + 9: uint8(26), + 10: uint8(27), + 11: uint8(28), + 12: uint8(29), + 13: uint8(30), + 14: uint8(31), + 15: uint8(32), + 16: uint8(33), + 17: uint8(17), + 18: uint8(34), + 19: uint8(35), + 20: uint8(36), + 21: uint8(17), + 22: uint8(37), + 23: uint8(38), + 24: uint8(39), + 25: uint8(40), + 26: uint8(41), + 27: uint8(42), + 28: uint8(43), + 29: uint8(44), + 30: uint8(17), + 31: uint8(45), + 32: uint8(46), + 33: uint8(47), + 34: uint8(16), + 35: uint8(16), + 36: uint8(48), + 37: uint8(16), + 38: uint8(16), + 39: uint8(16), + 40: uint8(16), + 41: uint8(16), + 42: uint8(16), + 43: uint8(16), + 44: uint8(49), + 45: uint8(50), + 46: uint8(51), + 47: uint8(16), + 48: uint8(52), + 49: uint8(53), + 50: uint8(16), + 51: uint8(16), + 52: uint8(17), + 53: uint8(17), + 54: uint8(17), + 55: uint8(17), + 56: uint8(17), + 57: uint8(17), + 58: uint8(17), + 59: uint8(17), + 60: uint8(17), + 61: uint8(17), + 62: uint8(17), + 63: uint8(17), + 64: uint8(17), + 65: uint8(17), + 66: uint8(17), + 67: uint8(17), + 68: uint8(17), + 69: uint8(17), + 70: uint8(17), + 71: uint8(17), + 72: uint8(17), + 73: uint8(17), + 74: uint8(17), + 75: uint8(17), + 76: uint8(17), + 77: uint8(54), + 78: uint8(17), + 79: uint8(17), + 80: uint8(17), + 81: uint8(17), + 82: uint8(17), + 83: uint8(17), + 84: uint8(17), + 85: uint8(17), + 86: uint8(17), + 87: uint8(17), + 88: uint8(17), + 89: uint8(17), + 90: uint8(17), + 91: uint8(17), + 92: uint8(17), + 93: uint8(17), + 94: uint8(17), + 95: uint8(17), + 96: uint8(17), + 97: uint8(17), + 98: uint8(17), + 99: uint8(17), + 100: uint8(17), + 101: uint8(17), + 102: uint8(17), + 103: uint8(17), + 104: uint8(17), + 105: uint8(17), + 106: uint8(17), + 107: uint8(17), + 108: uint8(17), + 109: uint8(17), + 110: uint8(17), + 111: uint8(17), + 112: uint8(17), + 113: uint8(17), + 114: uint8(17), + 115: uint8(17), + 116: uint8(17), + 117: uint8(17), + 118: uint8(17), + 119: uint8(17), + 120: uint8(17), + 121: uint8(17), + 122: uint8(17), + 123: uint8(17), + 124: uint8(17), + 125: uint8(17), + 126: uint8(17), + 127: uint8(17), + 128: uint8(17), + 129: uint8(17), + 130: uint8(17), + 131: uint8(17), + 132: uint8(17), + 133: uint8(17), + 134: uint8(17), + 135: uint8(17), + 136: uint8(17), + 137: uint8(17), + 138: uint8(17), + 139: uint8(17), + 140: uint8(17), + 141: uint8(17), + 142: uint8(17), + 143: uint8(17), + 144: uint8(17), + 145: uint8(17), + 146: uint8(17), + 147: uint8(17), + 148: uint8(17), + 149: uint8(17), + 150: uint8(17), + 151: uint8(17), + 152: uint8(17), + 153: uint8(17), + 154: uint8(17), + 155: uint8(17), + 156: uint8(17), + 157: uint8(17), + 158: uint8(17), + 159: uint8(55), + 160: uint8(17), + 161: uint8(17), + 162: uint8(17), + 163: uint8(17), + 164: uint8(56), + 165: uint8(17), + 166: uint8(57), + 167: uint8(58), + 168: uint8(59), + 169: uint8(60), + 170: uint8(61), + 171: uint8(62), + 172: uint8(17), + 173: uint8(17), + 174: uint8(17), + 175: uint8(17), + 176: uint8(17), + 177: uint8(17), + 178: uint8(17), + 179: uint8(17), + 180: uint8(17), + 181: uint8(17), + 182: uint8(17), + 183: uint8(17), + 184: uint8(17), + 185: uint8(17), + 186: uint8(17), + 187: uint8(17), + 188: uint8(17), + 189: uint8(17), + 190: uint8(17), + 191: uint8(17), + 192: uint8(17), + 193: uint8(17), + 194: uint8(17), + 195: uint8(17), + 196: uint8(17), + 197: uint8(17), + 198: uint8(17), + 199: uint8(17), + 200: uint8(17), + 201: uint8(17), + 202: uint8(17), + 203: uint8(17), + 204: uint8(17), + 205: uint8(17), + 206: uint8(17), + 207: uint8(17), + 208: uint8(17), + 209: uint8(17), + 210: uint8(17), + 211: uint8(17), + 212: uint8(17), + 213: uint8(17), + 214: uint8(17), + 215: uint8(63), + 216: uint8(16), + 217: uint8(16), + 218: uint8(16), + 219: uint8(16), + 220: uint8(16), + 221: uint8(16), + 222: uint8(16), + 223: uint8(16), + 224: uint8(16), + 225: uint8(16), + 226: uint8(16), + 227: uint8(16), + 228: uint8(16), + 229: uint8(16), + 230: uint8(16), + 231: uint8(16), + 232: uint8(16), + 233: uint8(16), + 234: uint8(16), + 235: uint8(16), + 236: uint8(16), + 237: uint8(16), + 238: uint8(16), + 239: uint8(16), + 240: uint8(16), + 241: uint8(16), + 242: uint8(16), + 243: uint8(16), + 244: uint8(16), + 245: uint8(16), + 246: uint8(16), + 247: uint8(16), + 248: uint8(16), + 249: uint8(17), + 250: uint8(64), + 251: uint8(65), + 252: uint8(17), + 253: uint8(66), + 254: uint8(67), + 255: uint8(68), + 256: uint8(69), + 257: uint8(70), + 258: uint8(71), + 259: uint8(72), + 260: uint8(73), + 261: uint8(74), + 262: uint8(17), + 263: uint8(75), + 264: uint8(76), + 265: uint8(77), + 266: uint8(78), + 267: uint8(79), + 268: uint8(80), + 269: uint8(81), + 270: uint8(16), + 271: uint8(82), + 272: uint8(83), + 273: uint8(84), + 274: uint8(85), + 275: uint8(86), + 276: uint8(87), + 277: uint8(88), + 278: uint8(89), + 279: uint8(90), + 280: uint8(91), + 281: uint8(92), + 282: uint8(93), + 283: uint8(16), + 284: uint8(94), + 285: uint8(95), + 286: uint8(96), + 287: uint8(16), + 288: uint8(17), + 289: uint8(17), + 290: uint8(17), + 291: uint8(97), + 292: uint8(98), + 293: uint8(99), + 294: uint8(16), + 295: uint8(16), + 296: uint8(16), + 297: uint8(16), + 298: uint8(16), + 299: uint8(16), + 300: uint8(16), + 301: uint8(16), + 302: uint8(16), + 303: uint8(16), + 304: uint8(17), + 305: uint8(17), + 306: uint8(17), + 307: uint8(17), + 308: uint8(100), + 309: uint8(16), + 310: uint8(16), + 311: uint8(16), + 312: uint8(16), + 313: uint8(16), + 314: uint8(16), + 315: uint8(16), + 316: uint8(16), + 317: uint8(16), + 318: uint8(16), + 319: uint8(16), + 320: uint8(16), + 321: uint8(16), + 322: uint8(16), + 323: uint8(16), + 324: uint8(17), + 325: uint8(17), + 326: uint8(101), + 327: uint8(16), + 328: uint8(16), + 329: uint8(16), + 330: uint8(16), + 331: uint8(16), + 332: uint8(16), + 333: uint8(16), + 334: uint8(16), + 335: uint8(16), + 336: uint8(16), + 337: uint8(16), + 338: uint8(16), + 339: uint8(16), + 340: uint8(16), + 341: uint8(16), + 342: uint8(16), + 343: uint8(16), + 344: uint8(16), + 345: uint8(16), + 346: uint8(16), + 347: uint8(16), + 348: uint8(16), + 349: uint8(16), + 350: uint8(16), + 351: uint8(16), + 352: uint8(16), + 353: uint8(16), + 354: uint8(16), + 355: uint8(16), + 356: uint8(16), + 357: uint8(16), + 358: uint8(16), + 359: uint8(16), + 360: uint8(17), + 361: uint8(17), + 362: uint8(102), + 363: uint8(103), + 364: uint8(16), + 365: uint8(16), + 366: uint8(104), + 367: uint8(105), + 368: uint8(17), + 369: uint8(17), + 370: uint8(17), + 371: uint8(17), + 372: uint8(17), + 373: uint8(17), + 374: uint8(17), + 375: uint8(17), + 376: uint8(17), + 377: uint8(17), + 378: uint8(17), + 379: uint8(17), + 380: uint8(17), + 381: uint8(17), + 382: uint8(17), + 383: uint8(17), + 384: uint8(17), + 385: uint8(17), + 386: uint8(17), + 387: uint8(17), + 388: uint8(17), + 389: uint8(17), + 390: uint8(17), + 391: uint8(106), + 392: uint8(17), + 393: uint8(17), + 394: uint8(107), + 395: uint8(16), + 396: uint8(16), + 397: uint8(16), + 398: uint8(16), + 399: uint8(16), + 400: uint8(16), + 401: uint8(16), + 402: uint8(16), + 403: uint8(16), + 404: uint8(16), + 405: uint8(16), + 406: uint8(16), + 407: uint8(16), + 408: uint8(16), + 409: uint8(16), + 410: uint8(16), + 411: uint8(16), + 412: uint8(16), + 413: uint8(16), + 414: uint8(16), + 415: uint8(16), + 416: uint8(16), + 417: uint8(16), + 418: uint8(16), + 419: uint8(16), + 420: uint8(16), + 421: uint8(16), + 422: uint8(16), + 423: uint8(16), + 424: uint8(16), + 425: uint8(16), + 426: uint8(16), + 427: uint8(16), + 428: uint8(16), + 429: uint8(16), + 430: uint8(16), + 431: uint8(16), + 432: uint8(17), + 433: uint8(108), + 434: uint8(109), + 435: uint8(16), + 436: uint8(16), + 437: uint8(16), + 438: uint8(16), + 439: uint8(16), + 440: uint8(16), + 441: uint8(16), + 442: uint8(16), + 443: uint8(16), + 444: uint8(110), + 445: uint8(16), + 446: uint8(16), + 447: uint8(16), + 448: uint8(16), + 449: uint8(16), + 450: uint8(16), + 451: uint8(16), + 452: uint8(16), + 453: uint8(16), + 454: uint8(16), + 455: uint8(16), + 456: uint8(16), + 457: uint8(16), + 458: uint8(16), + 459: uint8(16), + 460: uint8(16), + 461: uint8(16), + 462: uint8(16), + 463: uint8(16), + 464: uint8(16), + 465: uint8(16), + 466: uint8(16), + 467: uint8(16), + 468: uint8(111), + 469: uint8(112), + 470: uint8(113), + 471: uint8(114), + 472: uint8(16), + 473: uint8(16), + 474: uint8(16), + 475: uint8(16), + 476: uint8(16), + 477: uint8(16), + 478: uint8(16), + 479: uint8(16), + 480: uint8(115), + 481: uint8(116), + 482: uint8(117), + 483: uint8(16), + 484: uint8(16), + 485: uint8(16), + 486: uint8(16), + 487: uint8(16), + 488: uint8(118), + 489: uint8(119), + 490: uint8(16), + 491: uint8(16), + 492: uint8(16), + 493: uint8(16), + 494: uint8(120), + 495: uint8(16), + 496: uint8(16), + 497: uint8(121), + 498: uint8(16), + 499: uint8(16), + 500: uint8(16), + 501: uint8(16), + 502: uint8(16), + 503: uint8(16), + 504: uint8(16), + 505: uint8(16), + 506: uint8(16), + 507: uint8(16), + 508: uint8(16), + 509: uint8(16), + 510: uint8(16), + 511: uint8(16), + 544: uint8(255), + 545: uint8(255), + 546: uint8(255), + 547: uint8(255), + 548: uint8(255), + 549: uint8(255), + 550: uint8(255), + 551: uint8(255), + 552: uint8(255), + 553: uint8(255), + 554: uint8(255), + 555: uint8(255), + 556: uint8(255), + 557: uint8(255), + 558: uint8(255), + 559: uint8(255), + 560: uint8(255), + 561: uint8(255), + 562: uint8(255), + 563: uint8(255), + 564: uint8(255), + 565: uint8(255), + 566: uint8(255), + 567: uint8(255), + 568: uint8(255), + 569: uint8(255), + 570: uint8(255), + 571: uint8(255), + 572: uint8(255), + 573: uint8(255), + 574: uint8(255), + 575: uint8(255), + 584: uint8(254), + 585: uint8(255), + 586: uint8(255), + 587: uint8(7), + 588: uint8(254), + 589: uint8(255), + 590: uint8(255), + 591: uint8(7), + 597: uint8(4), + 598: uint8(32), + 599: uint8(4), + 600: uint8(255), + 601: uint8(255), + 602: uint8(127), + 603: uint8(255), + 604: uint8(255), + 605: uint8(255), + 606: uint8(127), + 607: uint8(255), + 608: uint8(255), + 609: uint8(255), + 610: uint8(255), + 611: uint8(255), + 612: uint8(255), + 613: uint8(255), + 614: uint8(255), + 615: uint8(255), + 616: uint8(255), + 617: uint8(255), + 618: uint8(255), + 619: uint8(255), + 620: uint8(255), + 621: uint8(255), + 622: uint8(255), + 623: uint8(255), + 624: uint8(255), + 625: uint8(255), + 626: uint8(255), + 627: uint8(255), + 628: uint8(255), + 629: uint8(255), + 630: uint8(255), + 631: uint8(255), + 632: uint8(195), + 633: uint8(255), + 634: uint8(3), + 636: uint8(31), + 637: uint8(80), + 648: uint8(32), + 654: uint8(223), + 655: uint8(188), + 656: uint8(64), + 657: uint8(215), + 658: uint8(255), + 659: uint8(255), + 660: uint8(251), + 661: uint8(255), + 662: uint8(255), + 663: uint8(255), + 664: uint8(255), + 665: uint8(255), + 666: uint8(255), + 667: uint8(255), + 668: uint8(255), + 669: uint8(255), + 670: uint8(191), + 671: uint8(255), + 672: uint8(255), + 673: uint8(255), + 674: uint8(255), + 675: uint8(255), + 676: uint8(255), + 677: uint8(255), + 678: uint8(255), + 679: uint8(255), + 680: uint8(255), + 681: uint8(255), + 682: uint8(255), + 683: uint8(255), + 684: uint8(255), + 685: uint8(255), + 686: uint8(255), + 687: uint8(255), + 688: uint8(3), + 689: uint8(252), + 690: uint8(255), + 691: uint8(255), + 692: uint8(255), + 693: uint8(255), + 694: uint8(255), + 695: uint8(255), + 696: uint8(255), + 697: uint8(255), + 698: uint8(255), + 699: uint8(255), + 700: uint8(255), + 701: uint8(255), + 702: uint8(255), + 703: uint8(255), + 704: uint8(255), + 705: uint8(255), + 706: uint8(255), + 707: uint8(255), + 708: uint8(255), + 709: uint8(255), + 710: uint8(254), + 711: uint8(255), + 712: uint8(255), + 713: uint8(255), + 714: uint8(127), + 715: uint8(2), + 716: uint8(255), + 717: uint8(255), + 718: uint8(255), + 719: uint8(255), + 720: uint8(255), + 721: uint8(1), + 726: uint8(255), + 727: uint8(191), + 728: uint8(182), + 730: uint8(255), + 731: uint8(255), + 732: uint8(255), + 733: uint8(135), + 734: uint8(7), + 738: uint8(255), + 739: uint8(7), + 740: uint8(255), + 741: uint8(255), + 742: uint8(255), + 743: uint8(255), + 744: uint8(255), + 745: uint8(255), + 746: uint8(255), + 747: uint8(254), + 748: uint8(255), + 749: uint8(195), + 750: uint8(255), + 751: uint8(255), + 752: uint8(255), + 753: uint8(255), + 754: uint8(255), + 755: uint8(255), + 756: uint8(255), + 757: uint8(255), + 758: uint8(255), + 759: uint8(255), + 760: uint8(255), + 761: uint8(255), + 762: uint8(239), + 763: uint8(31), + 764: uint8(254), + 765: uint8(225), + 766: uint8(255), + 767: uint8(159), + 770: uint8(255), + 771: uint8(255), + 772: uint8(255), + 773: uint8(255), + 774: uint8(255), + 775: uint8(255), + 777: uint8(224), + 778: uint8(255), + 779: uint8(255), + 780: uint8(255), + 781: uint8(255), + 782: uint8(255), + 783: uint8(255), + 784: uint8(255), + 785: uint8(255), + 786: uint8(255), + 787: uint8(255), + 788: uint8(255), + 789: uint8(255), + 790: uint8(3), + 792: uint8(255), + 793: uint8(255), + 794: uint8(255), + 795: uint8(255), + 796: uint8(255), + 797: uint8(7), + 798: uint8(48), + 799: uint8(4), + 800: uint8(255), + 801: uint8(255), + 802: uint8(255), + 803: uint8(252), + 804: uint8(255), + 805: uint8(31), + 808: uint8(255), + 809: uint8(255), + 810: uint8(255), + 811: uint8(1), + 812: uint8(255), + 813: uint8(7), + 820: uint8(255), + 821: uint8(255), + 822: uint8(223), + 823: uint8(63), + 826: uint8(240), + 827: uint8(255), + 828: uint8(248), + 829: uint8(3), + 830: uint8(255), + 831: uint8(255), + 832: uint8(255), + 833: uint8(255), + 834: uint8(255), + 835: uint8(255), + 836: uint8(255), + 837: uint8(255), + 838: uint8(255), + 839: uint8(239), + 840: uint8(255), + 841: uint8(223), + 842: uint8(225), + 843: uint8(255), + 844: uint8(207), + 845: uint8(255), + 846: uint8(254), + 847: uint8(255), + 848: uint8(239), + 849: uint8(159), + 850: uint8(249), + 851: uint8(255), + 852: uint8(255), + 853: uint8(253), + 854: uint8(197), + 855: uint8(227), + 856: uint8(159), + 857: uint8(89), + 858: uint8(128), + 859: uint8(176), + 860: uint8(207), + 861: uint8(255), + 862: uint8(3), + 863: uint8(16), + 864: uint8(238), + 865: uint8(135), + 866: uint8(249), + 867: uint8(255), + 868: uint8(255), + 869: uint8(253), + 870: uint8(109), + 871: uint8(195), + 872: uint8(135), + 873: uint8(25), + 874: uint8(2), + 875: uint8(94), + 876: uint8(192), + 877: uint8(255), + 878: uint8(63), + 880: uint8(238), + 881: uint8(191), + 882: uint8(251), + 883: uint8(255), + 884: uint8(255), + 885: uint8(253), + 886: uint8(237), + 887: uint8(227), + 888: uint8(191), + 889: uint8(27), + 890: uint8(1), + 892: uint8(207), + 893: uint8(255), + 895: uint8(30), + 896: uint8(238), + 897: uint8(159), + 898: uint8(249), + 899: uint8(255), + 900: uint8(255), + 901: uint8(253), + 902: uint8(237), + 903: uint8(227), + 904: uint8(159), + 905: uint8(25), + 906: uint8(192), + 907: uint8(176), + 908: uint8(207), + 909: uint8(255), + 910: uint8(2), + 912: uint8(236), + 913: uint8(199), + 914: uint8(61), + 915: uint8(214), + 916: uint8(24), + 917: uint8(199), + 918: uint8(255), + 919: uint8(195), + 920: uint8(199), + 921: uint8(29), + 922: uint8(129), + 924: uint8(192), + 925: uint8(255), + 928: uint8(239), + 929: uint8(223), + 930: uint8(253), + 931: uint8(255), + 932: uint8(255), + 933: uint8(253), + 934: uint8(255), + 935: uint8(227), + 936: uint8(223), + 937: uint8(29), + 938: uint8(96), + 939: uint8(7), + 940: uint8(207), + 941: uint8(255), + 944: uint8(239), + 945: uint8(223), + 946: uint8(253), + 947: uint8(255), + 948: uint8(255), + 949: uint8(253), + 950: uint8(239), + 951: uint8(227), + 952: uint8(223), + 953: uint8(29), + 954: uint8(96), + 955: uint8(64), + 956: uint8(207), + 957: uint8(255), + 958: uint8(6), + 960: uint8(239), + 961: uint8(223), + 962: uint8(253), + 963: uint8(255), + 964: uint8(255), + 965: uint8(255), + 966: uint8(255), + 967: uint8(231), + 968: uint8(223), + 969: uint8(93), + 970: uint8(240), + 971: uint8(128), + 972: uint8(207), + 973: uint8(255), + 975: uint8(252), + 976: uint8(236), + 977: uint8(255), + 978: uint8(127), + 979: uint8(252), + 980: uint8(255), + 981: uint8(255), + 982: uint8(251), + 983: uint8(47), + 984: uint8(127), + 985: uint8(128), + 986: uint8(95), + 987: uint8(255), + 988: uint8(192), + 989: uint8(255), + 990: uint8(12), + 992: uint8(254), + 993: uint8(255), + 994: uint8(255), + 995: uint8(255), + 996: uint8(255), + 997: uint8(127), + 998: uint8(255), + 999: uint8(7), + 1000: uint8(63), + 1001: uint8(32), + 1002: uint8(255), + 1003: uint8(3), + 1008: uint8(214), + 1009: uint8(247), + 1010: uint8(255), + 1011: uint8(255), + 1012: uint8(175), + 1013: uint8(255), + 1014: uint8(255), + 1015: uint8(59), + 1016: uint8(95), + 1017: uint8(32), + 1018: uint8(255), + 1019: uint8(243), + 1024: uint8(1), + 1028: uint8(255), + 1029: uint8(3), + 1032: uint8(255), + 1033: uint8(254), + 1034: uint8(255), + 1035: uint8(255), + 1036: uint8(255), + 1037: uint8(31), + 1038: uint8(254), + 1039: uint8(255), + 1040: uint8(3), + 1041: uint8(255), + 1042: uint8(255), + 1043: uint8(254), + 1044: uint8(255), + 1045: uint8(255), + 1046: uint8(255), + 1047: uint8(31), + 1056: uint8(255), + 1057: uint8(255), + 1058: uint8(255), + 1059: uint8(255), + 1060: uint8(255), + 1061: uint8(255), + 1062: uint8(127), + 1063: uint8(249), + 1064: uint8(255), + 1065: uint8(3), + 1066: uint8(255), + 1067: uint8(255), + 1068: uint8(255), + 1069: uint8(255), + 1070: uint8(255), + 1071: uint8(255), + 1072: uint8(255), + 1073: uint8(255), + 1074: uint8(255), + 1075: uint8(63), + 1076: uint8(255), + 1077: uint8(255), + 1078: uint8(255), + 1079: uint8(255), + 1080: uint8(191), + 1081: uint8(32), + 1082: uint8(255), + 1083: uint8(255), + 1084: uint8(255), + 1085: uint8(255), + 1086: uint8(255), + 1087: uint8(247), + 1088: uint8(255), + 1089: uint8(255), + 1090: uint8(255), + 1091: uint8(255), + 1092: uint8(255), + 1093: uint8(255), + 1094: uint8(255), + 1095: uint8(255), + 1096: uint8(255), + 1097: uint8(61), + 1098: uint8(127), + 1099: uint8(61), + 1100: uint8(255), + 1101: uint8(255), + 1102: uint8(255), + 1103: uint8(255), + 1104: uint8(255), + 1105: uint8(61), + 1106: uint8(255), + 1107: uint8(255), + 1108: uint8(255), + 1109: uint8(255), + 1110: uint8(61), + 1111: uint8(127), + 1112: uint8(61), + 1113: uint8(255), + 1114: uint8(127), + 1115: uint8(255), + 1116: uint8(255), + 1117: uint8(255), + 1118: uint8(255), + 1119: uint8(255), + 1120: uint8(255), + 1121: uint8(255), + 1122: uint8(61), + 1123: uint8(255), + 1124: uint8(255), + 1125: uint8(255), + 1126: uint8(255), + 1127: uint8(255), + 1128: uint8(255), + 1129: uint8(255), + 1130: uint8(255), + 1131: uint8(7), + 1136: uint8(255), + 1137: uint8(255), + 1140: uint8(255), + 1141: uint8(255), + 1142: uint8(255), + 1143: uint8(255), + 1144: uint8(255), + 1145: uint8(255), + 1146: uint8(255), + 1147: uint8(255), + 1148: uint8(255), + 1149: uint8(255), + 1150: uint8(63), + 1151: uint8(63), + 1152: uint8(254), + 1153: uint8(255), + 1154: uint8(255), + 1155: uint8(255), + 1156: uint8(255), + 1157: uint8(255), + 1158: uint8(255), + 1159: uint8(255), + 1160: uint8(255), + 1161: uint8(255), + 1162: uint8(255), + 1163: uint8(255), + 1164: uint8(255), + 1165: uint8(255), + 1166: uint8(255), + 1167: uint8(255), + 1168: uint8(255), + 1169: uint8(255), + 1170: uint8(255), + 1171: uint8(255), + 1172: uint8(255), + 1173: uint8(255), + 1174: uint8(255), + 1175: uint8(255), + 1176: uint8(255), + 1177: uint8(255), + 1178: uint8(255), + 1179: uint8(255), + 1180: uint8(255), + 1181: uint8(255), + 1182: uint8(255), + 1183: uint8(255), + 1184: uint8(255), + 1185: uint8(255), + 1186: uint8(255), + 1187: uint8(255), + 1188: uint8(255), + 1189: uint8(255), + 1190: uint8(255), + 1191: uint8(255), + 1192: uint8(255), + 1193: uint8(255), + 1194: uint8(255), + 1195: uint8(255), + 1196: uint8(255), + 1197: uint8(159), + 1198: uint8(255), + 1199: uint8(255), + 1200: uint8(254), + 1201: uint8(255), + 1202: uint8(255), + 1203: uint8(7), + 1204: uint8(255), + 1205: uint8(255), + 1206: uint8(255), + 1207: uint8(255), + 1208: uint8(255), + 1209: uint8(255), + 1210: uint8(255), + 1211: uint8(255), + 1212: uint8(255), + 1213: uint8(199), + 1214: uint8(255), + 1215: uint8(1), + 1216: uint8(255), + 1217: uint8(223), + 1218: uint8(15), + 1220: uint8(255), + 1221: uint8(255), + 1222: uint8(15), + 1224: uint8(255), + 1225: uint8(255), + 1226: uint8(15), + 1228: uint8(255), + 1229: uint8(223), + 1230: uint8(13), + 1232: uint8(255), + 1233: uint8(255), + 1234: uint8(255), + 1235: uint8(255), + 1236: uint8(255), + 1237: uint8(255), + 1238: uint8(207), + 1239: uint8(255), + 1240: uint8(255), + 1241: uint8(1), + 1242: uint8(128), + 1243: uint8(16), + 1244: uint8(255), + 1245: uint8(3), + 1250: uint8(255), + 1251: uint8(3), + 1252: uint8(255), + 1253: uint8(255), + 1254: uint8(255), + 1255: uint8(255), + 1256: uint8(255), + 1257: uint8(255), + 1258: uint8(255), + 1259: uint8(255), + 1260: uint8(255), + 1261: uint8(255), + 1262: uint8(255), + 1263: uint8(1), + 1264: uint8(255), + 1265: uint8(255), + 1266: uint8(255), + 1267: uint8(255), + 1268: uint8(255), + 1269: uint8(7), + 1270: uint8(255), + 1271: uint8(255), + 1272: uint8(255), + 1273: uint8(255), + 1274: uint8(255), + 1275: uint8(255), + 1276: uint8(255), + 1277: uint8(255), + 1278: uint8(63), + 1280: uint8(255), + 1281: uint8(255), + 1282: uint8(255), + 1283: uint8(127), + 1284: uint8(255), + 1285: uint8(15), + 1286: uint8(255), + 1287: uint8(1), + 1288: uint8(192), + 1289: uint8(255), + 1290: uint8(255), + 1291: uint8(255), + 1292: uint8(255), + 1293: uint8(63), + 1294: uint8(31), + 1296: uint8(255), + 1297: uint8(255), + 1298: uint8(255), + 1299: uint8(255), + 1300: uint8(255), + 1301: uint8(15), + 1302: uint8(255), + 1303: uint8(255), + 1304: uint8(255), + 1305: uint8(3), + 1306: uint8(255), + 1307: uint8(3), + 1312: uint8(255), + 1313: uint8(255), + 1314: uint8(255), + 1315: uint8(15), + 1316: uint8(255), + 1317: uint8(255), + 1318: uint8(255), + 1319: uint8(255), + 1320: uint8(255), + 1321: uint8(255), + 1322: uint8(255), + 1323: uint8(127), + 1324: uint8(254), + 1325: uint8(255), + 1326: uint8(31), + 1328: uint8(255), + 1329: uint8(3), + 1330: uint8(255), + 1331: uint8(3), + 1332: uint8(128), + 1344: uint8(255), + 1345: uint8(255), + 1346: uint8(255), + 1347: uint8(255), + 1348: uint8(255), + 1349: uint8(255), + 1350: uint8(239), + 1351: uint8(255), + 1352: uint8(239), + 1353: uint8(15), + 1354: uint8(255), + 1355: uint8(3), + 1360: uint8(255), + 1361: uint8(255), + 1362: uint8(255), + 1363: uint8(255), + 1364: uint8(255), + 1365: uint8(243), + 1366: uint8(255), + 1367: uint8(255), + 1368: uint8(255), + 1369: uint8(255), + 1370: uint8(255), + 1371: uint8(255), + 1372: uint8(191), + 1373: uint8(255), + 1374: uint8(3), + 1376: uint8(255), + 1377: uint8(255), + 1378: uint8(255), + 1379: uint8(255), + 1380: uint8(255), + 1381: uint8(255), + 1382: uint8(127), + 1384: uint8(255), + 1385: uint8(227), + 1386: uint8(255), + 1387: uint8(255), + 1388: uint8(255), + 1389: uint8(255), + 1390: uint8(255), + 1391: uint8(63), + 1392: uint8(255), + 1393: uint8(1), + 1394: uint8(255), + 1395: uint8(255), + 1396: uint8(255), + 1397: uint8(255), + 1398: uint8(255), + 1399: uint8(231), + 1405: uint8(222), + 1406: uint8(111), + 1407: uint8(4), + 1408: uint8(255), + 1409: uint8(255), + 1410: uint8(255), + 1411: uint8(255), + 1412: uint8(255), + 1413: uint8(255), + 1414: uint8(255), + 1415: uint8(255), + 1416: uint8(255), + 1417: uint8(255), + 1418: uint8(255), + 1419: uint8(255), + 1420: uint8(255), + 1421: uint8(255), + 1422: uint8(255), + 1423: uint8(255), + 1424: uint8(255), + 1425: uint8(255), + 1426: uint8(255), + 1427: uint8(255), + 1428: uint8(255), + 1429: uint8(255), + 1430: uint8(255), + 1431: uint8(255), + 1436: uint8(128), + 1437: uint8(255), + 1438: uint8(31), + 1440: uint8(255), + 1441: uint8(255), + 1442: uint8(63), + 1443: uint8(63), + 1444: uint8(255), + 1445: uint8(255), + 1446: uint8(255), + 1447: uint8(255), + 1448: uint8(63), + 1449: uint8(63), + 1450: uint8(255), + 1451: uint8(170), + 1452: uint8(255), + 1453: uint8(255), + 1454: uint8(255), + 1455: uint8(63), + 1456: uint8(255), + 1457: uint8(255), + 1458: uint8(255), + 1459: uint8(255), + 1460: uint8(255), + 1461: uint8(255), + 1462: uint8(223), + 1463: uint8(95), + 1464: uint8(220), + 1465: uint8(31), + 1466: uint8(207), + 1467: uint8(15), + 1468: uint8(255), + 1469: uint8(31), + 1470: uint8(220), + 1471: uint8(31), + 1486: uint8(2), + 1487: uint8(128), + 1490: uint8(255), + 1491: uint8(31), + 1504: uint8(132), + 1505: uint8(252), + 1506: uint8(47), + 1507: uint8(62), + 1508: uint8(80), + 1509: uint8(189), + 1510: uint8(255), + 1511: uint8(243), + 1512: uint8(224), + 1513: uint8(67), + 1516: uint8(255), + 1517: uint8(255), + 1518: uint8(255), + 1519: uint8(255), + 1520: uint8(255), + 1521: uint8(1), + 1558: uint8(192), + 1559: uint8(255), + 1560: uint8(255), + 1561: uint8(255), + 1562: uint8(255), + 1563: uint8(255), + 1564: uint8(255), + 1565: uint8(3), + 1568: uint8(255), + 1569: uint8(255), + 1570: uint8(255), + 1571: uint8(255), + 1572: uint8(255), + 1573: uint8(127), + 1574: uint8(255), + 1575: uint8(255), + 1576: uint8(255), + 1577: uint8(255), + 1578: uint8(255), + 1579: uint8(127), + 1580: uint8(255), + 1581: uint8(255), + 1582: uint8(255), + 1583: uint8(255), + 1584: uint8(255), + 1585: uint8(255), + 1586: uint8(255), + 1587: uint8(255), + 1588: uint8(255), + 1589: uint8(255), + 1590: uint8(255), + 1591: uint8(255), + 1592: uint8(255), + 1593: uint8(255), + 1594: uint8(255), + 1595: uint8(255), + 1596: uint8(31), + 1597: uint8(120), + 1598: uint8(12), + 1600: uint8(255), + 1601: uint8(255), + 1602: uint8(255), + 1603: uint8(255), + 1604: uint8(191), + 1605: uint8(32), + 1606: uint8(255), + 1607: uint8(255), + 1608: uint8(255), + 1609: uint8(255), + 1610: uint8(255), + 1611: uint8(255), + 1612: uint8(255), + 1613: uint8(128), + 1616: uint8(255), + 1617: uint8(255), + 1618: uint8(127), + 1620: uint8(127), + 1621: uint8(127), + 1622: uint8(127), + 1623: uint8(127), + 1624: uint8(127), + 1625: uint8(127), + 1626: uint8(127), + 1627: uint8(127), + 1628: uint8(255), + 1629: uint8(255), + 1630: uint8(255), + 1631: uint8(255), + 1637: uint8(128), + 1664: uint8(224), + 1668: uint8(254), + 1669: uint8(3), + 1670: uint8(62), + 1671: uint8(31), + 1672: uint8(254), + 1673: uint8(255), + 1674: uint8(255), + 1675: uint8(255), + 1676: uint8(255), + 1677: uint8(255), + 1678: uint8(255), + 1679: uint8(255), + 1680: uint8(255), + 1681: uint8(255), + 1682: uint8(127), + 1683: uint8(224), + 1684: uint8(254), + 1685: uint8(255), + 1686: uint8(255), + 1687: uint8(255), + 1688: uint8(255), + 1689: uint8(255), + 1690: uint8(255), + 1691: uint8(255), + 1692: uint8(255), + 1693: uint8(255), + 1694: uint8(255), + 1695: uint8(247), + 1696: uint8(224), + 1697: uint8(255), + 1698: uint8(255), + 1699: uint8(255), + 1700: uint8(255), + 1701: uint8(255), + 1702: uint8(254), + 1703: uint8(255), + 1704: uint8(255), + 1705: uint8(255), + 1706: uint8(255), + 1707: uint8(255), + 1708: uint8(255), + 1709: uint8(255), + 1710: uint8(255), + 1711: uint8(255), + 1712: uint8(255), + 1713: uint8(127), + 1716: uint8(255), + 1717: uint8(255), + 1718: uint8(255), + 1719: uint8(7), + 1726: uint8(255), + 1727: uint8(255), + 1728: uint8(255), + 1729: uint8(255), + 1730: uint8(255), + 1731: uint8(255), + 1732: uint8(255), + 1733: uint8(255), + 1734: uint8(255), + 1735: uint8(255), + 1736: uint8(255), + 1737: uint8(255), + 1738: uint8(255), + 1739: uint8(255), + 1740: uint8(255), + 1741: uint8(255), + 1742: uint8(255), + 1743: uint8(255), + 1744: uint8(255), + 1745: uint8(255), + 1746: uint8(255), + 1747: uint8(255), + 1748: uint8(255), + 1749: uint8(255), + 1750: uint8(63), + 1760: uint8(255), + 1761: uint8(255), + 1762: uint8(255), + 1763: uint8(255), + 1764: uint8(255), + 1765: uint8(255), + 1766: uint8(255), + 1767: uint8(255), + 1768: uint8(255), + 1769: uint8(255), + 1770: uint8(255), + 1771: uint8(255), + 1772: uint8(255), + 1773: uint8(255), + 1774: uint8(255), + 1775: uint8(255), + 1776: uint8(255), + 1777: uint8(255), + 1778: uint8(255), + 1779: uint8(255), + 1780: uint8(255), + 1781: uint8(255), + 1782: uint8(255), + 1783: uint8(255), + 1784: uint8(255), + 1785: uint8(255), + 1786: uint8(255), + 1787: uint8(255), + 1788: uint8(255), + 1789: uint8(255), + 1792: uint8(255), + 1793: uint8(255), + 1794: uint8(255), + 1795: uint8(255), + 1796: uint8(255), + 1797: uint8(255), + 1798: uint8(255), + 1799: uint8(255), + 1800: uint8(255), + 1801: uint8(255), + 1802: uint8(255), + 1803: uint8(255), + 1804: uint8(255), + 1805: uint8(255), + 1806: uint8(255), + 1807: uint8(255), + 1808: uint8(255), + 1809: uint8(31), + 1818: uint8(255), + 1819: uint8(255), + 1820: uint8(255), + 1821: uint8(255), + 1822: uint8(255), + 1823: uint8(63), + 1824: uint8(255), + 1825: uint8(31), + 1826: uint8(255), + 1827: uint8(255), + 1828: uint8(255), + 1829: uint8(15), + 1832: uint8(255), + 1833: uint8(255), + 1834: uint8(255), + 1835: uint8(255), + 1836: uint8(255), + 1837: uint8(127), + 1838: uint8(240), + 1839: uint8(143), + 1840: uint8(255), + 1841: uint8(255), + 1842: uint8(255), + 1843: uint8(255), + 1844: uint8(255), + 1845: uint8(255), + 1846: uint8(255), + 1847: uint8(255), + 1848: uint8(255), + 1849: uint8(255), + 1850: uint8(255), + 1851: uint8(255), + 1852: uint8(255), + 1853: uint8(255), + 1858: uint8(128), + 1859: uint8(255), + 1860: uint8(252), + 1861: uint8(255), + 1862: uint8(255), + 1863: uint8(255), + 1864: uint8(255), + 1865: uint8(255), + 1866: uint8(255), + 1867: uint8(255), + 1868: uint8(255), + 1869: uint8(255), + 1870: uint8(255), + 1871: uint8(255), + 1872: uint8(255), + 1873: uint8(249), + 1874: uint8(255), + 1875: uint8(255), + 1876: uint8(255), + 1877: uint8(255), + 1878: uint8(255), + 1879: uint8(255), + 1880: uint8(124), + 1886: uint8(128), + 1887: uint8(255), + 1888: uint8(191), + 1889: uint8(255), + 1890: uint8(255), + 1891: uint8(255), + 1892: uint8(255), + 1896: uint8(255), + 1897: uint8(255), + 1898: uint8(255), + 1899: uint8(255), + 1900: uint8(255), + 1901: uint8(255), + 1902: uint8(15), + 1904: uint8(255), + 1905: uint8(255), + 1906: uint8(255), + 1907: uint8(255), + 1908: uint8(255), + 1909: uint8(255), + 1910: uint8(255), + 1911: uint8(255), + 1912: uint8(47), + 1914: uint8(255), + 1915: uint8(3), + 1918: uint8(252), + 1919: uint8(232), + 1920: uint8(255), + 1921: uint8(255), + 1922: uint8(255), + 1923: uint8(255), + 1924: uint8(255), + 1925: uint8(7), + 1926: uint8(255), + 1927: uint8(255), + 1928: uint8(255), + 1929: uint8(255), + 1930: uint8(7), + 1932: uint8(255), + 1933: uint8(255), + 1934: uint8(255), + 1935: uint8(31), + 1936: uint8(255), + 1937: uint8(255), + 1938: uint8(255), + 1939: uint8(255), + 1940: uint8(255), + 1941: uint8(255), + 1942: uint8(247), + 1943: uint8(255), + 1945: uint8(128), + 1946: uint8(255), + 1947: uint8(3), + 1948: uint8(255), + 1949: uint8(255), + 1950: uint8(255), + 1951: uint8(127), + 1952: uint8(255), + 1953: uint8(255), + 1954: uint8(255), + 1955: uint8(255), + 1956: uint8(255), + 1957: uint8(255), + 1958: uint8(127), + 1960: uint8(255), + 1961: uint8(63), + 1962: uint8(255), + 1963: uint8(3), + 1964: uint8(255), + 1965: uint8(255), + 1966: uint8(127), + 1967: uint8(252), + 1968: uint8(255), + 1969: uint8(255), + 1970: uint8(255), + 1971: uint8(255), + 1972: uint8(255), + 1973: uint8(255), + 1974: uint8(255), + 1975: uint8(127), + 1976: uint8(5), + 1979: uint8(56), + 1980: uint8(255), + 1981: uint8(255), + 1982: uint8(60), + 1984: uint8(126), + 1985: uint8(126), + 1986: uint8(126), + 1988: uint8(127), + 1989: uint8(127), + 1990: uint8(255), + 1991: uint8(255), + 1992: uint8(255), + 1993: uint8(255), + 1994: uint8(255), + 1995: uint8(247), + 1996: uint8(255), + 1998: uint8(255), + 1999: uint8(255), + 2000: uint8(255), + 2001: uint8(255), + 2002: uint8(255), + 2003: uint8(255), + 2004: uint8(255), + 2005: uint8(255), + 2006: uint8(255), + 2007: uint8(255), + 2008: uint8(255), + 2009: uint8(255), + 2010: uint8(255), + 2011: uint8(255), + 2012: uint8(255), + 2013: uint8(7), + 2014: uint8(255), + 2015: uint8(3), + 2016: uint8(255), + 2017: uint8(255), + 2018: uint8(255), + 2019: uint8(255), + 2020: uint8(255), + 2021: uint8(255), + 2022: uint8(255), + 2023: uint8(255), + 2024: uint8(255), + 2025: uint8(255), + 2026: uint8(255), + 2027: uint8(255), + 2028: uint8(255), + 2029: uint8(255), + 2030: uint8(255), + 2031: uint8(255), + 2032: uint8(255), + 2033: uint8(255), + 2034: uint8(255), + 2035: uint8(255), + 2036: uint8(15), + 2038: uint8(255), + 2039: uint8(255), + 2040: uint8(127), + 2041: uint8(248), + 2042: uint8(255), + 2043: uint8(255), + 2044: uint8(255), + 2045: uint8(255), + 2046: uint8(255), + 2047: uint8(15), + 2048: uint8(255), + 2049: uint8(255), + 2050: uint8(255), + 2051: uint8(255), + 2052: uint8(255), + 2053: uint8(255), + 2054: uint8(255), + 2055: uint8(255), + 2056: uint8(255), + 2057: uint8(255), + 2058: uint8(255), + 2059: uint8(255), + 2060: uint8(255), + 2061: uint8(63), + 2062: uint8(255), + 2063: uint8(255), + 2064: uint8(255), + 2065: uint8(255), + 2066: uint8(255), + 2067: uint8(255), + 2068: uint8(255), + 2069: uint8(255), + 2070: uint8(255), + 2071: uint8(255), + 2072: uint8(255), + 2073: uint8(255), + 2074: uint8(255), + 2075: uint8(3), + 2080: uint8(127), + 2082: uint8(248), + 2083: uint8(224), + 2084: uint8(255), + 2085: uint8(253), + 2086: uint8(127), + 2087: uint8(95), + 2088: uint8(219), + 2089: uint8(255), + 2090: uint8(255), + 2091: uint8(255), + 2092: uint8(255), + 2093: uint8(255), + 2094: uint8(255), + 2095: uint8(255), + 2096: uint8(255), + 2097: uint8(255), + 2098: uint8(255), + 2099: uint8(255), + 2100: uint8(255), + 2101: uint8(255), + 2102: uint8(3), + 2106: uint8(248), + 2107: uint8(255), + 2108: uint8(255), + 2109: uint8(255), + 2110: uint8(255), + 2111: uint8(255), + 2112: uint8(255), + 2113: uint8(255), + 2114: uint8(255), + 2115: uint8(255), + 2116: uint8(255), + 2117: uint8(255), + 2118: uint8(255), + 2119: uint8(63), + 2122: uint8(255), + 2123: uint8(255), + 2124: uint8(255), + 2125: uint8(255), + 2126: uint8(255), + 2127: uint8(255), + 2128: uint8(255), + 2129: uint8(255), + 2130: uint8(252), + 2131: uint8(255), + 2132: uint8(255), + 2133: uint8(255), + 2134: uint8(255), + 2135: uint8(255), + 2136: uint8(255), + 2142: uint8(255), + 2143: uint8(15), + 2158: uint8(223), + 2159: uint8(255), + 2160: uint8(255), + 2161: uint8(255), + 2162: uint8(255), + 2163: uint8(255), + 2164: uint8(255), + 2165: uint8(255), + 2166: uint8(255), + 2167: uint8(255), + 2168: uint8(255), + 2169: uint8(255), + 2170: uint8(255), + 2171: uint8(255), + 2172: uint8(255), + 2173: uint8(255), + 2174: uint8(255), + 2175: uint8(31), + 2178: uint8(255), + 2179: uint8(3), + 2180: uint8(254), + 2181: uint8(255), + 2182: uint8(255), + 2183: uint8(7), + 2184: uint8(254), + 2185: uint8(255), + 2186: uint8(255), + 2187: uint8(7), + 2188: uint8(192), + 2189: uint8(255), + 2190: uint8(255), + 2191: uint8(255), + 2192: uint8(255), + 2193: uint8(255), + 2194: uint8(255), + 2195: uint8(255), + 2196: uint8(255), + 2197: uint8(255), + 2198: uint8(255), + 2199: uint8(127), + 2200: uint8(252), + 2201: uint8(252), + 2202: uint8(252), + 2203: uint8(28), + 2208: uint8(255), + 2209: uint8(239), + 2210: uint8(255), + 2211: uint8(255), + 2212: uint8(127), + 2213: uint8(255), + 2214: uint8(255), + 2215: uint8(183), + 2216: uint8(255), + 2217: uint8(63), + 2218: uint8(255), + 2219: uint8(63), + 2224: uint8(255), + 2225: uint8(255), + 2226: uint8(255), + 2227: uint8(255), + 2228: uint8(255), + 2229: uint8(255), + 2230: uint8(255), + 2231: uint8(255), + 2232: uint8(255), + 2233: uint8(255), + 2234: uint8(255), + 2235: uint8(255), + 2236: uint8(255), + 2237: uint8(255), + 2238: uint8(255), + 2239: uint8(7), + 2248: uint8(255), + 2249: uint8(255), + 2250: uint8(255), + 2251: uint8(255), + 2252: uint8(255), + 2253: uint8(255), + 2254: uint8(31), + 2288: uint8(255), + 2289: uint8(255), + 2290: uint8(255), + 2291: uint8(31), + 2292: uint8(255), + 2293: uint8(255), + 2294: uint8(255), + 2295: uint8(255), + 2296: uint8(255), + 2297: uint8(255), + 2298: uint8(1), + 2304: uint8(255), + 2305: uint8(255), + 2306: uint8(255), + 2307: uint8(255), + 2309: uint8(224), + 2310: uint8(255), + 2311: uint8(255), + 2312: uint8(255), + 2313: uint8(7), + 2314: uint8(255), + 2315: uint8(255), + 2316: uint8(255), + 2317: uint8(255), + 2318: uint8(255), + 2319: uint8(7), + 2320: uint8(255), + 2321: uint8(255), + 2322: uint8(255), + 2323: uint8(63), + 2324: uint8(255), + 2325: uint8(255), + 2326: uint8(255), + 2327: uint8(255), + 2328: uint8(15), + 2329: uint8(255), + 2330: uint8(62), + 2336: uint8(255), + 2337: uint8(255), + 2338: uint8(255), + 2339: uint8(255), + 2340: uint8(255), + 2341: uint8(255), + 2342: uint8(255), + 2343: uint8(255), + 2344: uint8(255), + 2345: uint8(255), + 2346: uint8(255), + 2347: uint8(255), + 2348: uint8(255), + 2349: uint8(255), + 2350: uint8(255), + 2351: uint8(255), + 2352: uint8(255), + 2353: uint8(255), + 2354: uint8(255), + 2355: uint8(63), + 2356: uint8(255), + 2357: uint8(3), + 2358: uint8(255), + 2359: uint8(255), + 2360: uint8(255), + 2361: uint8(255), + 2362: uint8(15), + 2363: uint8(255), + 2364: uint8(255), + 2365: uint8(255), + 2366: uint8(255), + 2367: uint8(15), + 2368: uint8(255), + 2369: uint8(255), + 2370: uint8(255), + 2371: uint8(255), + 2372: uint8(255), + 2374: uint8(255), + 2375: uint8(255), + 2376: uint8(255), + 2377: uint8(255), + 2378: uint8(255), + 2379: uint8(255), + 2380: uint8(15), + 2400: uint8(255), + 2401: uint8(255), + 2402: uint8(255), + 2403: uint8(255), + 2404: uint8(255), + 2405: uint8(255), + 2406: uint8(127), + 2408: uint8(255), + 2409: uint8(255), + 2410: uint8(63), + 2412: uint8(255), + 2432: uint8(63), + 2433: uint8(253), + 2434: uint8(255), + 2435: uint8(255), + 2436: uint8(255), + 2437: uint8(255), + 2438: uint8(191), + 2439: uint8(145), + 2440: uint8(255), + 2441: uint8(255), + 2442: uint8(63), + 2444: uint8(255), + 2445: uint8(255), + 2446: uint8(127), + 2448: uint8(255), + 2449: uint8(255), + 2450: uint8(255), + 2451: uint8(127), + 2460: uint8(255), + 2461: uint8(255), + 2462: uint8(55), + 2464: uint8(255), + 2465: uint8(255), + 2466: uint8(63), + 2468: uint8(255), + 2469: uint8(255), + 2470: uint8(255), + 2471: uint8(3), + 2480: uint8(255), + 2481: uint8(255), + 2482: uint8(255), + 2483: uint8(255), + 2484: uint8(255), + 2485: uint8(255), + 2486: uint8(255), + 2487: uint8(192), + 2496: uint8(111), + 2497: uint8(240), + 2498: uint8(239), + 2499: uint8(254), + 2500: uint8(255), + 2501: uint8(255), + 2502: uint8(63), + 2508: uint8(255), + 2509: uint8(255), + 2510: uint8(255), + 2511: uint8(31), + 2512: uint8(255), + 2513: uint8(255), + 2514: uint8(255), + 2515: uint8(31), + 2520: uint8(255), + 2521: uint8(254), + 2522: uint8(255), + 2523: uint8(255), + 2524: uint8(31), + 2528: uint8(255), + 2529: uint8(255), + 2530: uint8(255), + 2531: uint8(255), + 2532: uint8(255), + 2533: uint8(255), + 2534: uint8(63), + 2536: uint8(255), + 2537: uint8(255), + 2538: uint8(63), + 2540: uint8(255), + 2541: uint8(255), + 2542: uint8(7), + 2544: uint8(255), + 2545: uint8(255), + 2546: uint8(3), + 2560: uint8(255), + 2561: uint8(255), + 2562: uint8(255), + 2563: uint8(255), + 2564: uint8(255), + 2565: uint8(255), + 2566: uint8(255), + 2567: uint8(255), + 2568: uint8(255), + 2569: uint8(1), + 2576: uint8(255), + 2577: uint8(255), + 2578: uint8(255), + 2579: uint8(255), + 2580: uint8(255), + 2581: uint8(255), + 2582: uint8(7), + 2584: uint8(255), + 2585: uint8(255), + 2586: uint8(255), + 2587: uint8(255), + 2588: uint8(255), + 2589: uint8(255), + 2590: uint8(7), + 2592: uint8(255), + 2593: uint8(255), + 2594: uint8(255), + 2595: uint8(255), + 2596: uint8(255), + 2598: uint8(255), + 2599: uint8(3), + 2624: uint8(255), + 2625: uint8(255), + 2626: uint8(255), + 2627: uint8(31), + 2628: uint8(128), + 2630: uint8(255), + 2631: uint8(255), + 2632: uint8(63), + 2652: uint8(255), + 2653: uint8(255), + 2654: uint8(127), + 2656: uint8(255), + 2657: uint8(255), + 2658: uint8(255), + 2659: uint8(255), + 2660: uint8(255), + 2661: uint8(255), + 2662: uint8(255), + 2663: uint8(255), + 2664: uint8(63), + 2668: uint8(192), + 2669: uint8(255), + 2672: uint8(252), + 2673: uint8(255), + 2674: uint8(255), + 2675: uint8(255), + 2676: uint8(255), + 2677: uint8(255), + 2678: uint8(255), + 2679: uint8(1), + 2682: uint8(255), + 2683: uint8(255), + 2684: uint8(255), + 2685: uint8(1), + 2686: uint8(255), + 2687: uint8(3), + 2688: uint8(255), + 2689: uint8(255), + 2690: uint8(255), + 2691: uint8(255), + 2692: uint8(255), + 2693: uint8(255), + 2694: uint8(199), + 2695: uint8(255), + 2696: uint8(112), + 2698: uint8(255), + 2699: uint8(255), + 2700: uint8(255), + 2701: uint8(255), + 2702: uint8(71), + 2704: uint8(255), + 2705: uint8(255), + 2706: uint8(255), + 2707: uint8(255), + 2708: uint8(255), + 2709: uint8(255), + 2710: uint8(255), + 2711: uint8(255), + 2712: uint8(30), + 2714: uint8(255), + 2715: uint8(23), + 2720: uint8(255), + 2721: uint8(255), + 2722: uint8(251), + 2723: uint8(255), + 2724: uint8(255), + 2725: uint8(255), + 2726: uint8(159), + 2727: uint8(64), + 2736: uint8(127), + 2737: uint8(189), + 2738: uint8(255), + 2739: uint8(191), + 2740: uint8(255), + 2741: uint8(1), + 2742: uint8(255), + 2743: uint8(255), + 2744: uint8(255), + 2745: uint8(255), + 2746: uint8(255), + 2747: uint8(255), + 2748: uint8(255), + 2749: uint8(1), + 2750: uint8(255), + 2751: uint8(3), + 2752: uint8(239), + 2753: uint8(159), + 2754: uint8(249), + 2755: uint8(255), + 2756: uint8(255), + 2757: uint8(253), + 2758: uint8(237), + 2759: uint8(227), + 2760: uint8(159), + 2761: uint8(25), + 2762: uint8(129), + 2763: uint8(224), + 2764: uint8(15), + 2784: uint8(255), + 2785: uint8(255), + 2786: uint8(255), + 2787: uint8(255), + 2788: uint8(255), + 2789: uint8(255), + 2790: uint8(255), + 2791: uint8(255), + 2792: uint8(187), + 2793: uint8(7), + 2794: uint8(255), + 2795: uint8(131), + 2800: uint8(255), + 2801: uint8(255), + 2802: uint8(255), + 2803: uint8(255), + 2804: uint8(255), + 2805: uint8(255), + 2806: uint8(255), + 2807: uint8(255), + 2808: uint8(179), + 2810: uint8(255), + 2811: uint8(3), + 2832: uint8(255), + 2833: uint8(255), + 2834: uint8(255), + 2835: uint8(255), + 2836: uint8(255), + 2837: uint8(255), + 2838: uint8(63), + 2839: uint8(127), + 2843: uint8(63), + 2848: uint8(255), + 2849: uint8(255), + 2850: uint8(255), + 2851: uint8(255), + 2852: uint8(255), + 2853: uint8(255), + 2854: uint8(255), + 2855: uint8(127), + 2856: uint8(17), + 2858: uint8(255), + 2859: uint8(3), + 2864: uint8(255), + 2865: uint8(255), + 2866: uint8(255), + 2867: uint8(255), + 2868: uint8(255), + 2869: uint8(255), + 2870: uint8(63), + 2871: uint8(1), + 2872: uint8(255), + 2873: uint8(3), + 2880: uint8(255), + 2881: uint8(255), + 2882: uint8(255), + 2883: uint8(231), + 2884: uint8(255), + 2885: uint8(7), + 2886: uint8(255), + 2887: uint8(3), + 2912: uint8(255), + 2913: uint8(255), + 2914: uint8(255), + 2915: uint8(255), + 2916: uint8(255), + 2917: uint8(255), + 2918: uint8(255), + 2919: uint8(1), + 2932: uint8(255), + 2933: uint8(255), + 2934: uint8(255), + 2935: uint8(255), + 2936: uint8(255), + 2937: uint8(255), + 2938: uint8(255), + 2939: uint8(255), + 2940: uint8(255), + 2941: uint8(3), + 2943: uint8(128), + 2964: uint8(255), + 2965: uint8(252), + 2966: uint8(255), + 2967: uint8(255), + 2968: uint8(255), + 2969: uint8(255), + 2970: uint8(255), + 2971: uint8(252), + 2972: uint8(26), + 2976: uint8(255), + 2977: uint8(255), + 2978: uint8(255), + 2979: uint8(255), + 2980: uint8(255), + 2981: uint8(255), + 2982: uint8(231), + 2983: uint8(127), + 2986: uint8(255), + 2987: uint8(255), + 2988: uint8(255), + 2989: uint8(255), + 2990: uint8(255), + 2991: uint8(255), + 2992: uint8(255), + 2993: uint8(255), + 2994: uint8(255), + 2995: uint8(32), + 3000: uint8(255), + 3001: uint8(255), + 3002: uint8(255), + 3003: uint8(255), + 3004: uint8(255), + 3005: uint8(255), + 3006: uint8(255), + 3007: uint8(1), + 3008: uint8(255), + 3009: uint8(253), + 3010: uint8(255), + 3011: uint8(255), + 3012: uint8(255), + 3013: uint8(255), + 3014: uint8(127), + 3015: uint8(127), + 3016: uint8(1), + 3018: uint8(255), + 3019: uint8(3), + 3022: uint8(252), + 3023: uint8(255), + 3024: uint8(255), + 3025: uint8(255), + 3026: uint8(252), + 3027: uint8(255), + 3028: uint8(255), + 3029: uint8(254), + 3030: uint8(127), + 3040: uint8(127), + 3041: uint8(251), + 3042: uint8(255), + 3043: uint8(255), + 3044: uint8(255), + 3045: uint8(255), + 3046: uint8(127), + 3047: uint8(180), + 3048: uint8(203), + 3050: uint8(255), + 3051: uint8(3), + 3052: uint8(191), + 3053: uint8(253), + 3054: uint8(255), + 3055: uint8(255), + 3056: uint8(255), + 3057: uint8(127), + 3058: uint8(123), + 3059: uint8(1), + 3060: uint8(255), + 3061: uint8(3), + 3100: uint8(255), + 3101: uint8(255), + 3102: uint8(127), + 3104: uint8(255), + 3105: uint8(255), + 3106: uint8(255), + 3107: uint8(255), + 3108: uint8(255), + 3109: uint8(255), + 3110: uint8(255), + 3111: uint8(255), + 3112: uint8(255), + 3113: uint8(255), + 3114: uint8(255), + 3115: uint8(255), + 3116: uint8(255), + 3117: uint8(255), + 3118: uint8(255), + 3119: uint8(255), + 3120: uint8(255), + 3121: uint8(255), + 3122: uint8(255), + 3123: uint8(3), + 3136: uint8(255), + 3137: uint8(255), + 3138: uint8(255), + 3139: uint8(255), + 3140: uint8(255), + 3141: uint8(255), + 3142: uint8(255), + 3143: uint8(255), + 3144: uint8(255), + 3145: uint8(255), + 3146: uint8(255), + 3147: uint8(255), + 3148: uint8(255), + 3149: uint8(127), + 3152: uint8(255), + 3153: uint8(255), + 3154: uint8(255), + 3155: uint8(255), + 3156: uint8(255), + 3157: uint8(255), + 3158: uint8(255), + 3159: uint8(255), + 3160: uint8(255), + 3161: uint8(255), + 3162: uint8(255), + 3163: uint8(255), + 3164: uint8(255), + 3165: uint8(255), + 3166: uint8(255), + 3167: uint8(255), + 3168: uint8(255), + 3169: uint8(255), + 3170: uint8(255), + 3171: uint8(255), + 3172: uint8(255), + 3173: uint8(255), + 3174: uint8(255), + 3175: uint8(255), + 3176: uint8(15), + 3200: uint8(255), + 3201: uint8(255), + 3202: uint8(255), + 3203: uint8(255), + 3204: uint8(255), + 3205: uint8(127), + 3232: uint8(255), + 3233: uint8(255), + 3234: uint8(255), + 3235: uint8(255), + 3236: uint8(255), + 3237: uint8(255), + 3238: uint8(255), + 3239: uint8(255), + 3240: uint8(127), + 3264: uint8(255), + 3265: uint8(255), + 3266: uint8(255), + 3267: uint8(255), + 3268: uint8(255), + 3269: uint8(255), + 3270: uint8(255), + 3271: uint8(1), + 3272: uint8(255), + 3273: uint8(255), + 3274: uint8(255), + 3275: uint8(127), + 3276: uint8(255), + 3277: uint8(3), + 3290: uint8(255), + 3291: uint8(255), + 3292: uint8(255), + 3293: uint8(63), + 3296: uint8(255), + 3297: uint8(255), + 3298: uint8(255), + 3299: uint8(255), + 3300: uint8(255), + 3301: uint8(255), + 3304: uint8(15), + 3306: uint8(255), + 3307: uint8(3), + 3308: uint8(248), + 3309: uint8(255), + 3310: uint8(255), + 3311: uint8(224), + 3312: uint8(255), + 3313: uint8(255), + 3336: uint8(255), + 3337: uint8(255), + 3338: uint8(255), + 3339: uint8(255), + 3340: uint8(255), + 3341: uint8(255), + 3342: uint8(255), + 3343: uint8(255), + 3360: uint8(255), + 3361: uint8(255), + 3362: uint8(255), + 3363: uint8(255), + 3364: uint8(255), + 3365: uint8(255), + 3366: uint8(255), + 3367: uint8(255), + 3368: uint8(255), + 3369: uint8(135), + 3370: uint8(255), + 3371: uint8(255), + 3372: uint8(255), + 3373: uint8(255), + 3374: uint8(255), + 3375: uint8(255), + 3376: uint8(255), + 3377: uint8(128), + 3378: uint8(255), + 3379: uint8(255), + 3388: uint8(11), + 3392: uint8(255), + 3393: uint8(255), + 3394: uint8(255), + 3395: uint8(255), + 3396: uint8(255), + 3397: uint8(255), + 3398: uint8(255), + 3399: uint8(255), + 3400: uint8(255), + 3401: uint8(255), + 3402: uint8(255), + 3403: uint8(255), + 3404: uint8(255), + 3405: uint8(255), + 3406: uint8(255), + 3407: uint8(255), + 3408: uint8(255), + 3409: uint8(255), + 3410: uint8(255), + 3411: uint8(255), + 3412: uint8(255), + 3413: uint8(255), + 3414: uint8(255), + 3415: uint8(255), + 3416: uint8(255), + 3417: uint8(255), + 3418: uint8(255), + 3419: uint8(255), + 3420: uint8(255), + 3421: uint8(255), + 3422: uint8(255), + 3424: uint8(255), + 3425: uint8(255), + 3426: uint8(255), + 3427: uint8(255), + 3428: uint8(255), + 3429: uint8(255), + 3430: uint8(255), + 3431: uint8(255), + 3432: uint8(255), + 3433: uint8(255), + 3434: uint8(255), + 3435: uint8(255), + 3436: uint8(255), + 3437: uint8(255), + 3438: uint8(255), + 3439: uint8(255), + 3440: uint8(255), + 3441: uint8(255), + 3442: uint8(255), + 3443: uint8(255), + 3444: uint8(255), + 3445: uint8(255), + 3446: uint8(255), + 3447: uint8(255), + 3448: uint8(255), + 3449: uint8(255), + 3450: uint8(255), + 3451: uint8(255), + 3452: uint8(255), + 3453: uint8(255), + 3454: uint8(7), + 3456: uint8(255), + 3457: uint8(255), + 3458: uint8(255), + 3459: uint8(127), + 3466: uint8(7), + 3468: uint8(240), + 3470: uint8(255), + 3471: uint8(255), + 3472: uint8(255), + 3473: uint8(255), + 3474: uint8(255), + 3475: uint8(255), + 3476: uint8(255), + 3477: uint8(255), + 3478: uint8(255), + 3479: uint8(255), + 3480: uint8(255), + 3481: uint8(255), + 3482: uint8(255), + 3483: uint8(255), + 3484: uint8(255), + 3485: uint8(255), + 3486: uint8(255), + 3487: uint8(255), + 3488: uint8(255), + 3489: uint8(255), + 3490: uint8(255), + 3491: uint8(255), + 3492: uint8(255), + 3493: uint8(255), + 3494: uint8(255), + 3495: uint8(255), + 3496: uint8(255), + 3497: uint8(255), + 3498: uint8(255), + 3499: uint8(255), + 3500: uint8(255), + 3501: uint8(255), + 3502: uint8(255), + 3503: uint8(255), + 3504: uint8(255), + 3505: uint8(255), + 3506: uint8(255), + 3507: uint8(255), + 3508: uint8(255), + 3509: uint8(255), + 3510: uint8(255), + 3511: uint8(255), + 3512: uint8(255), + 3513: uint8(255), + 3514: uint8(255), + 3515: uint8(255), + 3516: uint8(255), + 3517: uint8(255), + 3518: uint8(255), + 3519: uint8(15), + 3520: uint8(255), + 3521: uint8(255), + 3522: uint8(255), + 3523: uint8(255), + 3524: uint8(255), + 3525: uint8(255), + 3526: uint8(255), + 3527: uint8(255), + 3528: uint8(255), + 3529: uint8(255), + 3530: uint8(255), + 3531: uint8(255), + 3532: uint8(255), + 3533: uint8(7), + 3534: uint8(255), + 3535: uint8(31), + 3536: uint8(255), + 3537: uint8(1), + 3538: uint8(255), + 3539: uint8(67), + 3552: uint8(255), + 3553: uint8(255), + 3554: uint8(255), + 3555: uint8(255), + 3556: uint8(255), + 3557: uint8(255), + 3558: uint8(255), + 3559: uint8(255), + 3560: uint8(255), + 3561: uint8(255), + 3562: uint8(223), + 3563: uint8(255), + 3564: uint8(255), + 3565: uint8(255), + 3566: uint8(255), + 3567: uint8(255), + 3568: uint8(255), + 3569: uint8(255), + 3570: uint8(255), + 3571: uint8(223), + 3572: uint8(100), + 3573: uint8(222), + 3574: uint8(255), + 3575: uint8(235), + 3576: uint8(239), + 3577: uint8(255), + 3578: uint8(255), + 3579: uint8(255), + 3580: uint8(255), + 3581: uint8(255), + 3582: uint8(255), + 3583: uint8(255), + 3584: uint8(191), + 3585: uint8(231), + 3586: uint8(223), + 3587: uint8(223), + 3588: uint8(255), + 3589: uint8(255), + 3590: uint8(255), + 3591: uint8(123), + 3592: uint8(95), + 3593: uint8(252), + 3594: uint8(253), + 3595: uint8(255), + 3596: uint8(255), + 3597: uint8(255), + 3598: uint8(255), + 3599: uint8(255), + 3600: uint8(255), + 3601: uint8(255), + 3602: uint8(255), + 3603: uint8(255), + 3604: uint8(255), + 3605: uint8(255), + 3606: uint8(255), + 3607: uint8(255), + 3608: uint8(255), + 3609: uint8(255), + 3610: uint8(255), + 3611: uint8(255), + 3612: uint8(255), + 3613: uint8(255), + 3614: uint8(255), + 3615: uint8(255), + 3616: uint8(255), + 3617: uint8(255), + 3618: uint8(255), + 3619: uint8(255), + 3620: uint8(255), + 3621: uint8(255), + 3622: uint8(255), + 3623: uint8(255), + 3624: uint8(255), + 3625: uint8(255), + 3626: uint8(255), + 3627: uint8(255), + 3628: uint8(255), + 3629: uint8(255), + 3630: uint8(255), + 3631: uint8(255), + 3632: uint8(255), + 3633: uint8(255), + 3634: uint8(255), + 3635: uint8(255), + 3636: uint8(63), + 3637: uint8(255), + 3638: uint8(255), + 3639: uint8(255), + 3640: uint8(253), + 3641: uint8(255), + 3642: uint8(255), + 3643: uint8(247), + 3644: uint8(255), + 3645: uint8(255), + 3646: uint8(255), + 3647: uint8(247), + 3648: uint8(255), + 3649: uint8(255), + 3650: uint8(223), + 3651: uint8(255), + 3652: uint8(255), + 3653: uint8(255), + 3654: uint8(223), + 3655: uint8(255), + 3656: uint8(255), + 3657: uint8(127), + 3658: uint8(255), + 3659: uint8(255), + 3660: uint8(255), + 3661: uint8(127), + 3662: uint8(255), + 3663: uint8(255), + 3664: uint8(255), + 3665: uint8(253), + 3666: uint8(255), + 3667: uint8(255), + 3668: uint8(255), + 3669: uint8(253), + 3670: uint8(255), + 3671: uint8(255), + 3672: uint8(247), + 3673: uint8(207), + 3674: uint8(255), + 3675: uint8(255), + 3676: uint8(255), + 3677: uint8(255), + 3678: uint8(255), + 3679: uint8(255), + 3680: uint8(127), + 3681: uint8(255), + 3682: uint8(255), + 3683: uint8(249), + 3684: uint8(219), + 3685: uint8(7), + 3712: uint8(255), + 3713: uint8(255), + 3714: uint8(255), + 3715: uint8(255), + 3716: uint8(255), + 3717: uint8(31), + 3718: uint8(128), + 3719: uint8(63), + 3720: uint8(255), + 3721: uint8(67), + 3768: uint8(255), + 3769: uint8(255), + 3770: uint8(255), + 3771: uint8(255), + 3772: uint8(255), + 3773: uint8(15), + 3774: uint8(255), + 3775: uint8(3), + 3776: uint8(255), + 3777: uint8(255), + 3778: uint8(255), + 3779: uint8(255), + 3780: uint8(255), + 3781: uint8(255), + 3782: uint8(255), + 3783: uint8(255), + 3784: uint8(255), + 3785: uint8(255), + 3786: uint8(255), + 3787: uint8(255), + 3788: uint8(255), + 3789: uint8(255), + 3790: uint8(255), + 3791: uint8(255), + 3792: uint8(255), + 3793: uint8(255), + 3794: uint8(255), + 3795: uint8(255), + 3796: uint8(255), + 3797: uint8(255), + 3798: uint8(255), + 3799: uint8(255), + 3800: uint8(31), + 3808: uint8(255), + 3809: uint8(255), + 3810: uint8(255), + 3811: uint8(255), + 3812: uint8(255), + 3813: uint8(255), + 3814: uint8(255), + 3815: uint8(255), + 3816: uint8(143), + 3817: uint8(8), + 3818: uint8(255), + 3819: uint8(3), + 3840: uint8(239), + 3841: uint8(255), + 3842: uint8(255), + 3843: uint8(255), + 3844: uint8(150), + 3845: uint8(254), + 3846: uint8(247), + 3847: uint8(10), + 3848: uint8(132), + 3849: uint8(234), + 3850: uint8(150), + 3851: uint8(170), + 3852: uint8(150), + 3853: uint8(247), + 3854: uint8(247), + 3855: uint8(94), + 3856: uint8(255), + 3857: uint8(251), + 3858: uint8(255), + 3859: uint8(15), + 3860: uint8(238), + 3861: uint8(251), + 3862: uint8(255), + 3863: uint8(15), + 3878: uint8(255), + 3879: uint8(255), + 3880: uint8(255), + 3881: uint8(3), + 3882: uint8(255), + 3883: uint8(255), + 3884: uint8(255), + 3885: uint8(3), + 3886: uint8(255), + 3887: uint8(255), + 3888: uint8(255), + 3889: uint8(3), +} + +func Xiswalpha(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + if wc < uint32(0x20000) { + return Int32FromUint8(_table3[Uint32FromInt32(Int32FromUint8(_table3[wc>>int32(8)])*int32(32))+wc&uint32(255)>>int32(3)]) >> (wc & uint32(7)) & int32(1) + } + if wc < uint32(0x2fffe) { + return int32(1) + } + return 0 +} + +func X__iswalpha_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswalpha(tls, c) +} + +func Xiswalpha_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswalpha_l(tls, c, l) +} + +func Xiswblank(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xisblank(tls, Int32FromUint32(wc)) +} + +func X__iswblank_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswblank(tls, c) +} + +func Xiswblank_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswblank_l(tls, c, l) +} + +func Xiswcntrl(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(wc < uint32(32) || wc-Uint32FromInt32(0x7f) < uint32(33) || wc-Uint32FromInt32(0x2028) < uint32(2) || wc-Uint32FromInt32(0xfff9) < uint32(3)) +} + +func X__iswcntrl_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswcntrl(tls, c) +} + +func Xiswcntrl_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswcntrl_l(tls, c, l) +} + +const WCTYPE_ALNUM = 1 +const WCTYPE_ALPHA = 2 +const WCTYPE_BLANK = 3 +const WCTYPE_CNTRL = 4 +const WCTYPE_DIGIT = 5 +const WCTYPE_GRAPH = 6 +const WCTYPE_LOWER = 7 +const WCTYPE_PRINT = 8 +const WCTYPE_PUNCT = 9 +const WCTYPE_SPACE = 10 +const WCTYPE_UPPER = 11 +const WCTYPE_XDIGIT = 12 + +func Xiswctype(tls *TLS, wc Twint_t, type1 Twctype_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v type1=%v, (%v:)", tls, wc, type1, origin(2)) + defer func() { trc("-> %v", r) }() + } + switch type1 { + case uint64(WCTYPE_ALNUM): + return Xiswalnum(tls, wc) + case uint64(WCTYPE_ALPHA): + return Xiswalpha(tls, wc) + case uint64(WCTYPE_BLANK): + return Xiswblank(tls, wc) + case uint64(WCTYPE_CNTRL): + return Xiswcntrl(tls, wc) + case uint64(WCTYPE_DIGIT): + return BoolInt32(wc-uint32('0') < uint32(10)) + case uint64(WCTYPE_GRAPH): + return Xiswgraph(tls, wc) + case uint64(WCTYPE_LOWER): + return Xiswlower(tls, wc) + case uint64(WCTYPE_PRINT): + return Xiswprint(tls, wc) + case uint64(WCTYPE_PUNCT): + return Xiswpunct(tls, wc) + case uint64(WCTYPE_SPACE): + return Xiswspace(tls, wc) + case uint64(WCTYPE_UPPER): + return Xiswupper(tls, wc) + case uint64(WCTYPE_XDIGIT): + return Xiswxdigit(tls, wc) + } + return 0 +} + +func Xwctype(tls *TLS, s uintptr) (r Twctype_t) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var i int32 + var p uintptr + _, _ = i, p + i = int32(1) + p = uintptr(unsafe.Pointer(&_names)) + for { + if !(**(**uint8)(__ccgo_up(p)) != 0) { + break + } + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == Int32FromUint8(**(**uint8)(__ccgo_up(p))) && !(Xstrcmp(tls, s, p) != 0) { + return Uint64FromInt32(i) + } + goto _1 + _1: + ; + i = i + 1 + p = p + uintptr(6) + } + return uint64(0) +} + +/* order must match! */ +var _names = [73]uint8{'a', 'l', 'n', 'u', 'm', 0, 'a', 'l', 'p', 'h', 'a', 0, 'b', 'l', 'a', 'n', 'k', 0, 'c', 'n', 't', 'r', 'l', 0, 'd', 'i', 'g', 'i', 't', 0, 'g', 'r', 'a', 'p', 'h', 0, 'l', 'o', 'w', 'e', 'r', 0, 'p', 'r', 'i', 'n', 't', 0, 'p', 'u', 'n', 'c', 't', 0, 's', 'p', 'a', 'c', 'e', 0, 'u', 'p', 'p', 'e', 'r', 0, 'x', 'd', 'i', 'g', 'i', 't'} + +func X__iswctype_l(tls *TLS, c Twint_t, t Twctype_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v t=%v l=%v, (%v:)", tls, c, t, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswctype(tls, c, t) +} + +func X__wctype_l(tls *TLS, s uintptr, l Tlocale_t) (r Twctype_t) { + if __ccgo_strace { + trc("tls=%v s=%v l=%v, (%v:)", tls, s, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwctype(tls, s) +} + +func Xiswctype_l(tls *TLS, c Twint_t, t Twctype_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v t=%v l=%v, (%v:)", tls, c, t, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswctype_l(tls, c, t, l) +} + +func Xwctype_l(tls *TLS, s uintptr, l Tlocale_t) (r Twctype_t) { + if __ccgo_strace { + trc("tls=%v s=%v l=%v, (%v:)", tls, s, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__wctype_l(tls, s, l) +} + +func Xiswdigit(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(wc-uint32('0') < uint32(10)) +} + +func X__iswdigit_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswdigit(tls, c) +} + +func Xiswdigit_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswdigit_l(tls, c, l) +} + +func Xiswgraph(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + /* ISO C defines this function as: */ + return BoolInt32(!(Xiswspace(tls, wc) != 0) && Xiswprint(tls, wc) != 0) +} + +func X__iswgraph_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswgraph(tls, c) +} + +func Xiswgraph_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswgraph_l(tls, c, l) +} + +func Xiswlower(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(Xtowupper(tls, wc) != wc) +} + +func X__iswlower_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswlower(tls, c) +} + +func Xiswlower_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswlower_l(tls, c, l) +} + +/* Consider all legal codepoints as printable except for: + * - C0 and C1 control characters + * - U+2028 and U+2029 (line/para break) + * - U+FFF9 through U+FFFB (interlinear annotation controls) + * The following code is optimized heavily to make hot paths for the + * expected printable characters. */ + +func Xiswprint(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + if wc < uint32(0xff) { + return BoolInt32((wc+uint32(1))&uint32(0x7f) >= uint32(0x21)) + } + if wc < uint32(0x2028) || wc-uint32(0x202a) < Uint32FromInt32(Int32FromInt32(0xd800)-Int32FromInt32(0x202a)) || wc-uint32(0xe000) < Uint32FromInt32(Int32FromInt32(0xfff9)-Int32FromInt32(0xe000)) { + return int32(1) + } + if wc-uint32(0xfffc) > Uint32FromInt32(Int32FromInt32(0x10ffff)-Int32FromInt32(0xfffc)) || wc&uint32(0xfffe) == uint32(0xfffe) { + return 0 + } + return int32(1) +} + +func X__iswprint_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswprint(tls, c) +} + +func Xiswprint_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswprint_l(tls, c, l) +} + +var _table4 = [4000]uint8{ + 0: uint8(18), + 1: uint8(16), + 2: uint8(19), + 3: uint8(20), + 4: uint8(21), + 5: uint8(22), + 6: uint8(23), + 7: uint8(24), + 8: uint8(25), + 9: uint8(26), + 10: uint8(27), + 11: uint8(28), + 12: uint8(29), + 13: uint8(30), + 14: uint8(31), + 15: uint8(32), + 16: uint8(33), + 17: uint8(16), + 18: uint8(16), + 19: uint8(34), + 20: uint8(35), + 21: uint8(16), + 22: uint8(36), + 23: uint8(37), + 24: uint8(38), + 25: uint8(39), + 26: uint8(40), + 27: uint8(41), + 28: uint8(42), + 29: uint8(43), + 30: uint8(16), + 31: uint8(44), + 32: uint8(45), + 33: uint8(46), + 34: uint8(17), + 35: uint8(17), + 36: uint8(47), + 37: uint8(17), + 38: uint8(17), + 39: uint8(17), + 40: uint8(17), + 41: uint8(17), + 42: uint8(17), + 43: uint8(48), + 44: uint8(49), + 45: uint8(50), + 46: uint8(51), + 47: uint8(52), + 48: uint8(53), + 49: uint8(54), + 50: uint8(55), + 51: uint8(17), + 52: uint8(16), + 53: uint8(16), + 54: uint8(16), + 55: uint8(16), + 56: uint8(16), + 57: uint8(16), + 58: uint8(16), + 59: uint8(16), + 60: uint8(16), + 61: uint8(16), + 62: uint8(16), + 63: uint8(16), + 64: uint8(16), + 65: uint8(16), + 66: uint8(16), + 67: uint8(16), + 68: uint8(16), + 69: uint8(16), + 70: uint8(16), + 71: uint8(16), + 72: uint8(16), + 73: uint8(16), + 74: uint8(16), + 75: uint8(16), + 76: uint8(16), + 77: uint8(56), + 78: uint8(16), + 79: uint8(16), + 80: uint8(16), + 81: uint8(16), + 82: uint8(16), + 83: uint8(16), + 84: uint8(16), + 85: uint8(16), + 86: uint8(16), + 87: uint8(16), + 88: uint8(16), + 89: uint8(16), + 90: uint8(16), + 91: uint8(16), + 92: uint8(16), + 93: uint8(16), + 94: uint8(16), + 95: uint8(16), + 96: uint8(16), + 97: uint8(16), + 98: uint8(16), + 99: uint8(16), + 100: uint8(16), + 101: uint8(16), + 102: uint8(16), + 103: uint8(16), + 104: uint8(16), + 105: uint8(16), + 106: uint8(16), + 107: uint8(16), + 108: uint8(16), + 109: uint8(16), + 110: uint8(16), + 111: uint8(16), + 112: uint8(16), + 113: uint8(16), + 114: uint8(16), + 115: uint8(16), + 116: uint8(16), + 117: uint8(16), + 118: uint8(16), + 119: uint8(16), + 120: uint8(16), + 121: uint8(16), + 122: uint8(16), + 123: uint8(16), + 124: uint8(16), + 125: uint8(16), + 126: uint8(16), + 127: uint8(16), + 128: uint8(16), + 129: uint8(16), + 130: uint8(16), + 131: uint8(16), + 132: uint8(16), + 133: uint8(16), + 134: uint8(16), + 135: uint8(16), + 136: uint8(16), + 137: uint8(16), + 138: uint8(16), + 139: uint8(16), + 140: uint8(16), + 141: uint8(16), + 142: uint8(16), + 143: uint8(16), + 144: uint8(16), + 145: uint8(16), + 146: uint8(16), + 147: uint8(16), + 148: uint8(16), + 149: uint8(16), + 150: uint8(16), + 151: uint8(16), + 152: uint8(16), + 153: uint8(16), + 154: uint8(16), + 155: uint8(16), + 156: uint8(16), + 157: uint8(16), + 158: uint8(16), + 159: uint8(16), + 160: uint8(16), + 161: uint8(16), + 162: uint8(16), + 163: uint8(16), + 164: uint8(57), + 165: uint8(16), + 166: uint8(58), + 167: uint8(59), + 168: uint8(60), + 169: uint8(61), + 170: uint8(62), + 171: uint8(63), + 172: uint8(16), + 173: uint8(16), + 174: uint8(16), + 175: uint8(16), + 176: uint8(16), + 177: uint8(16), + 178: uint8(16), + 179: uint8(16), + 180: uint8(16), + 181: uint8(16), + 182: uint8(16), + 183: uint8(16), + 184: uint8(16), + 185: uint8(16), + 186: uint8(16), + 187: uint8(16), + 188: uint8(16), + 189: uint8(16), + 190: uint8(16), + 191: uint8(16), + 192: uint8(16), + 193: uint8(16), + 194: uint8(16), + 195: uint8(16), + 196: uint8(16), + 197: uint8(16), + 198: uint8(16), + 199: uint8(16), + 200: uint8(16), + 201: uint8(16), + 202: uint8(16), + 203: uint8(16), + 204: uint8(16), + 205: uint8(16), + 206: uint8(16), + 207: uint8(16), + 208: uint8(16), + 209: uint8(16), + 210: uint8(16), + 211: uint8(16), + 212: uint8(16), + 213: uint8(16), + 214: uint8(16), + 215: uint8(16), + 216: uint8(16), + 217: uint8(16), + 218: uint8(16), + 219: uint8(16), + 220: uint8(16), + 221: uint8(16), + 222: uint8(16), + 223: uint8(16), + 224: uint8(64), + 225: uint8(16), + 226: uint8(16), + 227: uint8(16), + 228: uint8(16), + 229: uint8(16), + 230: uint8(16), + 231: uint8(16), + 232: uint8(16), + 233: uint8(16), + 234: uint8(16), + 235: uint8(16), + 236: uint8(16), + 237: uint8(16), + 238: uint8(16), + 239: uint8(16), + 240: uint8(16), + 241: uint8(16), + 242: uint8(16), + 243: uint8(16), + 244: uint8(16), + 245: uint8(16), + 246: uint8(16), + 247: uint8(16), + 248: uint8(65), + 249: uint8(16), + 250: uint8(16), + 251: uint8(66), + 252: uint8(16), + 253: uint8(67), + 254: uint8(68), + 255: uint8(69), + 256: uint8(16), + 257: uint8(70), + 258: uint8(71), + 259: uint8(72), + 260: uint8(16), + 261: uint8(73), + 262: uint8(16), + 263: uint8(16), + 264: uint8(74), + 265: uint8(75), + 266: uint8(76), + 267: uint8(77), + 268: uint8(78), + 269: uint8(16), + 270: uint8(79), + 271: uint8(80), + 272: uint8(81), + 273: uint8(82), + 274: uint8(83), + 275: uint8(84), + 276: uint8(85), + 277: uint8(86), + 278: uint8(87), + 279: uint8(88), + 280: uint8(89), + 281: uint8(90), + 282: uint8(91), + 283: uint8(16), + 284: uint8(92), + 285: uint8(93), + 286: uint8(94), + 287: uint8(95), + 288: uint8(16), + 289: uint8(16), + 290: uint8(16), + 291: uint8(16), + 292: uint8(96), + 293: uint8(16), + 294: uint8(16), + 295: uint8(16), + 296: uint8(16), + 297: uint8(16), + 298: uint8(16), + 299: uint8(16), + 300: uint8(16), + 301: uint8(16), + 302: uint8(16), + 303: uint8(16), + 304: uint8(16), + 305: uint8(16), + 306: uint8(16), + 307: uint8(16), + 308: uint8(97), + 309: uint8(16), + 310: uint8(16), + 311: uint8(16), + 312: uint8(16), + 313: uint8(16), + 314: uint8(16), + 315: uint8(16), + 316: uint8(16), + 317: uint8(16), + 318: uint8(16), + 319: uint8(16), + 320: uint8(16), + 321: uint8(16), + 322: uint8(16), + 323: uint8(16), + 324: uint8(16), + 325: uint8(16), + 326: uint8(16), + 327: uint8(16), + 328: uint8(16), + 329: uint8(16), + 330: uint8(16), + 331: uint8(16), + 332: uint8(16), + 333: uint8(16), + 334: uint8(16), + 335: uint8(16), + 336: uint8(16), + 337: uint8(16), + 338: uint8(16), + 339: uint8(16), + 340: uint8(16), + 341: uint8(16), + 342: uint8(16), + 343: uint8(16), + 344: uint8(16), + 345: uint8(16), + 346: uint8(16), + 347: uint8(16), + 348: uint8(16), + 349: uint8(16), + 350: uint8(16), + 351: uint8(16), + 352: uint8(16), + 353: uint8(16), + 354: uint8(16), + 355: uint8(16), + 356: uint8(16), + 357: uint8(16), + 358: uint8(16), + 359: uint8(16), + 360: uint8(16), + 361: uint8(16), + 362: uint8(98), + 363: uint8(99), + 364: uint8(16), + 365: uint8(16), + 366: uint8(100), + 367: uint8(101), + 368: uint8(16), + 369: uint8(16), + 370: uint8(16), + 371: uint8(16), + 372: uint8(16), + 373: uint8(16), + 374: uint8(16), + 375: uint8(16), + 376: uint8(16), + 377: uint8(16), + 378: uint8(16), + 379: uint8(16), + 380: uint8(16), + 381: uint8(16), + 382: uint8(16), + 383: uint8(16), + 384: uint8(16), + 385: uint8(16), + 386: uint8(16), + 387: uint8(16), + 388: uint8(16), + 389: uint8(16), + 390: uint8(16), + 391: uint8(16), + 392: uint8(16), + 393: uint8(16), + 394: uint8(16), + 395: uint8(16), + 396: uint8(16), + 397: uint8(16), + 398: uint8(16), + 399: uint8(16), + 400: uint8(16), + 401: uint8(16), + 402: uint8(16), + 403: uint8(16), + 404: uint8(16), + 405: uint8(16), + 406: uint8(16), + 407: uint8(16), + 408: uint8(16), + 409: uint8(16), + 410: uint8(16), + 411: uint8(16), + 412: uint8(16), + 413: uint8(16), + 414: uint8(16), + 415: uint8(16), + 416: uint8(16), + 417: uint8(16), + 418: uint8(16), + 419: uint8(16), + 420: uint8(16), + 421: uint8(16), + 422: uint8(16), + 423: uint8(16), + 424: uint8(16), + 425: uint8(16), + 426: uint8(16), + 427: uint8(16), + 428: uint8(16), + 429: uint8(16), + 430: uint8(16), + 431: uint8(16), + 432: uint8(16), + 433: uint8(16), + 434: uint8(16), + 435: uint8(16), + 436: uint8(16), + 437: uint8(16), + 438: uint8(16), + 439: uint8(16), + 440: uint8(16), + 441: uint8(16), + 442: uint8(16), + 443: uint8(16), + 444: uint8(102), + 445: uint8(16), + 446: uint8(16), + 447: uint8(16), + 448: uint8(16), + 449: uint8(16), + 450: uint8(16), + 451: uint8(16), + 452: uint8(16), + 453: uint8(16), + 454: uint8(16), + 455: uint8(16), + 456: uint8(16), + 457: uint8(16), + 458: uint8(16), + 459: uint8(16), + 460: uint8(16), + 461: uint8(16), + 462: uint8(16), + 463: uint8(16), + 464: uint8(103), + 465: uint8(104), + 466: uint8(105), + 467: uint8(106), + 468: uint8(16), + 469: uint8(16), + 470: uint8(107), + 471: uint8(108), + 472: uint8(17), + 473: uint8(17), + 474: uint8(109), + 475: uint8(16), + 476: uint8(16), + 477: uint8(16), + 478: uint8(16), + 479: uint8(16), + 480: uint8(16), + 481: uint8(110), + 482: uint8(111), + 483: uint8(16), + 484: uint8(16), + 485: uint8(16), + 486: uint8(16), + 487: uint8(16), + 488: uint8(112), + 489: uint8(113), + 490: uint8(16), + 491: uint8(16), + 492: uint8(114), + 493: uint8(115), + 494: uint8(116), + 495: uint8(16), + 496: uint8(117), + 497: uint8(118), + 498: uint8(119), + 499: uint8(17), + 500: uint8(17), + 501: uint8(17), + 502: uint8(120), + 503: uint8(121), + 504: uint8(122), + 505: uint8(123), + 506: uint8(124), + 507: uint8(16), + 508: uint8(16), + 509: uint8(16), + 510: uint8(16), + 511: uint8(16), + 544: uint8(255), + 545: uint8(255), + 546: uint8(255), + 547: uint8(255), + 548: uint8(255), + 549: uint8(255), + 550: uint8(255), + 551: uint8(255), + 552: uint8(255), + 553: uint8(255), + 554: uint8(255), + 555: uint8(255), + 556: uint8(255), + 557: uint8(255), + 558: uint8(255), + 559: uint8(255), + 560: uint8(255), + 561: uint8(255), + 562: uint8(255), + 563: uint8(255), + 564: uint8(255), + 565: uint8(255), + 566: uint8(255), + 567: uint8(255), + 568: uint8(255), + 569: uint8(255), + 570: uint8(255), + 571: uint8(255), + 572: uint8(255), + 573: uint8(255), + 574: uint8(255), + 575: uint8(255), + 580: uint8(254), + 581: uint8(255), + 583: uint8(252), + 584: uint8(1), + 587: uint8(248), + 588: uint8(1), + 591: uint8(120), + 596: uint8(255), + 597: uint8(251), + 598: uint8(223), + 599: uint8(251), + 602: uint8(128), + 606: uint8(128), + 632: uint8(60), + 634: uint8(252), + 635: uint8(255), + 636: uint8(224), + 637: uint8(175), + 638: uint8(255), + 639: uint8(255), + 640: uint8(255), + 641: uint8(255), + 642: uint8(255), + 643: uint8(255), + 644: uint8(255), + 645: uint8(255), + 646: uint8(255), + 647: uint8(255), + 648: uint8(223), + 649: uint8(255), + 650: uint8(255), + 651: uint8(255), + 652: uint8(255), + 653: uint8(255), + 654: uint8(32), + 655: uint8(64), + 656: uint8(176), + 670: uint8(64), + 688: uint8(252), + 689: uint8(3), + 715: uint8(252), + 721: uint8(230), + 722: uint8(254), + 723: uint8(255), + 724: uint8(255), + 725: uint8(255), + 727: uint8(64), + 728: uint8(73), + 734: uint8(24), + 736: uint8(255), + 737: uint8(255), + 739: uint8(216), + 747: uint8(1), + 749: uint8(60), + 762: uint8(16), + 763: uint8(224), + 764: uint8(1), + 765: uint8(30), + 767: uint8(96), + 768: uint8(255), + 769: uint8(191), + 776: uint8(255), + 777: uint8(7), + 797: uint8(248), + 798: uint8(207), + 799: uint8(227), + 803: uint8(3), + 805: uint8(32), + 806: uint8(255), + 807: uint8(127), + 811: uint8(78), + 826: uint8(8), + 828: uint8(7), + 829: uint8(252), + 839: uint8(16), + 841: uint8(32), + 842: uint8(30), + 844: uint8(48), + 846: uint8(1), + 855: uint8(16), + 857: uint8(32), + 862: uint8(252), + 863: uint8(111), + 871: uint8(16), + 873: uint8(32), + 878: uint8(64), + 887: uint8(16), + 889: uint8(32), + 894: uint8(3), + 895: uint8(224), + 903: uint8(16), + 905: uint8(32), + 910: uint8(253), + 921: uint8(32), + 926: uint8(255), + 927: uint8(7), + 928: uint8(16), + 937: uint8(32), + 942: uint8(128), + 943: uint8(255), + 944: uint8(16), + 951: uint8(16), + 953: uint8(32), + 967: uint8(24), + 969: uint8(160), + 971: uint8(127), + 974: uint8(255), + 975: uint8(3), + 985: uint8(4), + 990: uint8(16), + 997: uint8(128), + 999: uint8(128), + 1000: uint8(192), + 1001: uint8(223), + 1003: uint8(12), + 1015: uint8(4), + 1017: uint8(31), + 1024: uint8(254), + 1025: uint8(255), + 1026: uint8(255), + 1027: uint8(255), + 1029: uint8(252), + 1030: uint8(255), + 1031: uint8(255), + 1040: uint8(252), + 1047: uint8(192), + 1048: uint8(255), + 1049: uint8(223), + 1050: uint8(255), + 1051: uint8(7), + 1062: uint8(128), + 1063: uint8(6), + 1065: uint8(252), + 1075: uint8(192), + 1087: uint8(8), + 1099: uint8(224), + 1100: uint8(255), + 1101: uint8(255), + 1102: uint8(255), + 1103: uint8(31), + 1106: uint8(255), + 1107: uint8(3), + 1120: uint8(1), + 1165: uint8(96), + 1168: uint8(1), + 1171: uint8(24), + 1181: uint8(56), + 1186: uint8(16), + 1190: uint8(112), + 1206: uint8(48), + 1209: uint8(254), + 1210: uint8(127), + 1211: uint8(47), + 1214: uint8(255), + 1215: uint8(3), + 1216: uint8(255), + 1217: uint8(127), + 1255: uint8(14), + 1256: uint8(49), + 1275: uint8(196), + 1276: uint8(255), + 1277: uint8(255), + 1278: uint8(255), + 1279: uint8(255), + 1283: uint8(192), + 1292: uint8(1), + 1294: uint8(224), + 1295: uint8(159), + 1300: uint8(127), + 1301: uint8(63), + 1302: uint8(255), + 1303: uint8(127), + 1318: uint8(16), + 1320: uint8(16), + 1323: uint8(252), + 1324: uint8(255), + 1325: uint8(255), + 1326: uint8(255), + 1327: uint8(31), + 1333: uint8(12), + 1340: uint8(64), + 1342: uint8(12), + 1343: uint8(240), + 1350: uint8(128), + 1351: uint8(248), + 1359: uint8(192), + 1368: uint8(255), + 1370: uint8(255), + 1371: uint8(255), + 1372: uint8(255), + 1373: uint8(33), + 1374: uint8(144), + 1375: uint8(3), + 1400: uint8(255), + 1401: uint8(255), + 1402: uint8(255), + 1403: uint8(255), + 1404: uint8(127), + 1406: uint8(224), + 1407: uint8(251), + 1431: uint8(160), + 1432: uint8(3), + 1433: uint8(224), + 1435: uint8(224), + 1437: uint8(224), + 1439: uint8(96), + 1440: uint8(128), + 1441: uint8(248), + 1442: uint8(255), + 1443: uint8(255), + 1444: uint8(255), + 1445: uint8(252), + 1446: uint8(255), + 1447: uint8(255), + 1448: uint8(255), + 1449: uint8(255), + 1450: uint8(255), + 1451: uint8(127), + 1452: uint8(223), + 1453: uint8(255), + 1454: uint8(241), + 1455: uint8(127), + 1456: uint8(255), + 1457: uint8(127), + 1460: uint8(255), + 1461: uint8(255), + 1462: uint8(255), + 1463: uint8(255), + 1466: uint8(255), + 1467: uint8(255), + 1468: uint8(255), + 1469: uint8(255), + 1470: uint8(1), + 1472: uint8(123), + 1473: uint8(3), + 1474: uint8(208), + 1475: uint8(193), + 1476: uint8(175), + 1477: uint8(66), + 1479: uint8(12), + 1480: uint8(31), + 1481: uint8(188), + 1482: uint8(255), + 1483: uint8(255), + 1489: uint8(14), + 1490: uint8(255), + 1491: uint8(255), + 1492: uint8(255), + 1493: uint8(255), + 1494: uint8(255), + 1495: uint8(255), + 1496: uint8(255), + 1497: uint8(255), + 1498: uint8(255), + 1499: uint8(255), + 1500: uint8(255), + 1501: uint8(255), + 1502: uint8(255), + 1503: uint8(255), + 1504: uint8(255), + 1505: uint8(255), + 1506: uint8(255), + 1507: uint8(255), + 1508: uint8(127), + 1512: uint8(255), + 1513: uint8(7), + 1516: uint8(255), + 1517: uint8(255), + 1518: uint8(255), + 1519: uint8(255), + 1520: uint8(255), + 1521: uint8(255), + 1522: uint8(255), + 1523: uint8(255), + 1524: uint8(255), + 1525: uint8(255), + 1526: uint8(63), + 1533: uint8(252), + 1534: uint8(255), + 1535: uint8(255), + 1536: uint8(255), + 1537: uint8(255), + 1538: uint8(255), + 1539: uint8(255), + 1540: uint8(255), + 1541: uint8(255), + 1542: uint8(255), + 1543: uint8(255), + 1544: uint8(255), + 1545: uint8(255), + 1546: uint8(255), + 1547: uint8(255), + 1548: uint8(255), + 1549: uint8(255), + 1550: uint8(207), + 1551: uint8(255), + 1552: uint8(255), + 1553: uint8(255), + 1554: uint8(63), + 1555: uint8(255), + 1556: uint8(255), + 1557: uint8(255), + 1558: uint8(255), + 1559: uint8(255), + 1560: uint8(255), + 1561: uint8(255), + 1562: uint8(255), + 1563: uint8(255), + 1564: uint8(255), + 1565: uint8(255), + 1566: uint8(255), + 1567: uint8(255), + 1596: uint8(224), + 1597: uint8(135), + 1598: uint8(3), + 1599: uint8(254), + 1614: uint8(1), + 1615: uint8(128), + 1632: uint8(255), + 1633: uint8(255), + 1634: uint8(255), + 1635: uint8(255), + 1636: uint8(255), + 1637: uint8(127), + 1638: uint8(255), + 1639: uint8(255), + 1640: uint8(255), + 1641: uint8(255), + 1648: uint8(255), + 1649: uint8(255), + 1650: uint8(255), + 1651: uint8(251), + 1652: uint8(255), + 1653: uint8(255), + 1654: uint8(255), + 1655: uint8(255), + 1656: uint8(255), + 1657: uint8(255), + 1658: uint8(255), + 1659: uint8(255), + 1660: uint8(255), + 1661: uint8(255), + 1662: uint8(15), + 1664: uint8(255), + 1665: uint8(255), + 1666: uint8(255), + 1667: uint8(255), + 1668: uint8(255), + 1669: uint8(255), + 1670: uint8(255), + 1671: uint8(255), + 1672: uint8(255), + 1673: uint8(255), + 1674: uint8(255), + 1675: uint8(255), + 1676: uint8(255), + 1677: uint8(255), + 1678: uint8(255), + 1679: uint8(255), + 1680: uint8(255), + 1681: uint8(255), + 1682: uint8(255), + 1683: uint8(255), + 1684: uint8(255), + 1685: uint8(255), + 1686: uint8(255), + 1687: uint8(255), + 1688: uint8(255), + 1689: uint8(255), + 1690: uint8(63), + 1694: uint8(255), + 1695: uint8(15), + 1696: uint8(30), + 1697: uint8(255), + 1698: uint8(255), + 1699: uint8(255), + 1700: uint8(1), + 1701: uint8(252), + 1702: uint8(193), + 1703: uint8(224), + 1715: uint8(30), + 1716: uint8(1), + 1727: uint8(8), + 1746: uint8(255), + 1747: uint8(255), + 1752: uint8(255), + 1753: uint8(255), + 1754: uint8(255), + 1755: uint8(255), + 1756: uint8(15), + 1760: uint8(255), + 1761: uint8(255), + 1762: uint8(255), + 1763: uint8(127), + 1764: uint8(255), + 1765: uint8(255), + 1766: uint8(255), + 1767: uint8(255), + 1768: uint8(255), + 1769: uint8(255), + 1770: uint8(255), + 1771: uint8(255), + 1772: uint8(255), + 1773: uint8(255), + 1774: uint8(255), + 1775: uint8(255), + 1776: uint8(255), + 1777: uint8(255), + 1778: uint8(255), + 1779: uint8(255), + 1780: uint8(255), + 1781: uint8(255), + 1782: uint8(255), + 1783: uint8(255), + 1784: uint8(255), + 1785: uint8(255), + 1786: uint8(255), + 1787: uint8(255), + 1788: uint8(255), + 1789: uint8(255), + 1790: uint8(255), + 1791: uint8(255), + 1816: uint8(255), + 1817: uint8(255), + 1818: uint8(255), + 1819: uint8(255), + 1820: uint8(255), + 1821: uint8(255), + 1822: uint8(255), + 1823: uint8(255), + 1842: uint8(255), + 1843: uint8(255), + 1844: uint8(255), + 1845: uint8(255), + 1846: uint8(255), + 1847: uint8(255), + 1848: uint8(127), + 1855: uint8(192), + 1857: uint8(224), + 1869: uint8(128), + 1870: uint8(15), + 1871: uint8(112), + 1886: uint8(255), + 1888: uint8(255), + 1889: uint8(255), + 1890: uint8(127), + 1892: uint8(3), + 1905: uint8(6), + 1920: uint8(64), + 1925: uint8(15), + 1926: uint8(255), + 1927: uint8(3), + 1934: uint8(240), + 1944: uint8(16), + 1945: uint8(192), + 1948: uint8(255), + 1949: uint8(255), + 1950: uint8(3), + 1951: uint8(23), + 1957: uint8(248), + 1962: uint8(8), + 1963: uint8(128), + 1974: uint8(8), + 1976: uint8(255), + 1977: uint8(63), + 1979: uint8(192), + 1995: uint8(240), + 1998: uint8(128), + 1999: uint8(3), + 2007: uint8(128), + 2008: uint8(2), + 2011: uint8(192), + 2014: uint8(67), + 2027: uint8(8), + 2045: uint8(56), + 2048: uint8(1), + 2111: uint8(128), + 2117: uint8(2), + 2134: uint8(252), + 2135: uint8(255), + 2136: uint8(3), + 2151: uint8(192), + 2175: uint8(48), + 2176: uint8(255), + 2177: uint8(255), + 2178: uint8(255), + 2179: uint8(3), + 2180: uint8(255), + 2181: uint8(255), + 2182: uint8(255), + 2183: uint8(255), + 2184: uint8(255), + 2185: uint8(255), + 2186: uint8(247), + 2187: uint8(255), + 2188: uint8(127), + 2189: uint8(15), + 2207: uint8(128), + 2208: uint8(254), + 2209: uint8(255), + 2211: uint8(252), + 2212: uint8(1), + 2215: uint8(248), + 2216: uint8(1), + 2219: uint8(248), + 2220: uint8(63), + 2236: uint8(127), + 2237: uint8(127), + 2239: uint8(48), + 2240: uint8(135), + 2241: uint8(255), + 2242: uint8(255), + 2243: uint8(255), + 2244: uint8(255), + 2245: uint8(255), + 2246: uint8(143), + 2247: uint8(255), + 2254: uint8(224), + 2255: uint8(255), + 2256: uint8(255), + 2257: uint8(127), + 2258: uint8(255), + 2259: uint8(15), + 2260: uint8(1), + 2266: uint8(255), + 2267: uint8(255), + 2268: uint8(255), + 2269: uint8(255), + 2270: uint8(255), + 2271: uint8(63), + 2300: uint8(255), + 2301: uint8(255), + 2302: uint8(255), + 2303: uint8(15), + 2308: uint8(15), + 2323: uint8(128), + 2330: uint8(1), + 2349: uint8(128), + 2378: uint8(128), + 2379: uint8(255), + 2382: uint8(128), + 2383: uint8(255), + 2388: uint8(128), + 2389: uint8(255), + 2399: uint8(248), + 2402: uint8(192), + 2403: uint8(143), + 2407: uint8(128), + 2423: uint8(48), + 2424: uint8(255), + 2425: uint8(255), + 2426: uint8(252), + 2427: uint8(255), + 2428: uint8(255), + 2429: uint8(255), + 2430: uint8(255), + 2431: uint8(255), + 2439: uint8(135), + 2440: uint8(255), + 2441: uint8(1), + 2442: uint8(255), + 2443: uint8(1), + 2447: uint8(224), + 2451: uint8(224), + 2457: uint8(1), + 2460: uint8(96), + 2461: uint8(248), + 2462: uint8(127), + 2471: uint8(254), + 2475: uint8(255), + 2479: uint8(255), + 2483: uint8(30), + 2485: uint8(254), + 2527: uint8(252), + 2540: uint8(255), + 2541: uint8(255), + 2542: uint8(255), + 2543: uint8(127), + 2563: uint8(224), + 2564: uint8(127), + 2568: uint8(192), + 2569: uint8(255), + 2570: uint8(255), + 2571: uint8(3), + 2600: uint8(192), + 2601: uint8(63), + 2602: uint8(252), + 2603: uint8(255), + 2604: uint8(63), + 2607: uint8(128), + 2608: uint8(3), + 2615: uint8(254), + 2616: uint8(3), + 2617: uint8(32), + 2630: uint8(24), + 2632: uint8(15), + 2638: uint8(56), + 2648: uint8(225), + 2649: uint8(63), + 2651: uint8(232), + 2652: uint8(254), + 2653: uint8(255), + 2654: uint8(31), + 2662: uint8(96), + 2663: uint8(63), + 2677: uint8(2), + 2685: uint8(6), + 2695: uint8(24), + 2697: uint8(32), + 2700: uint8(192), + 2701: uint8(31), + 2702: uint8(31), + 2728: uint8(68), + 2729: uint8(248), + 2731: uint8(104), + 2744: uint8(76), + 2775: uint8(128), + 2776: uint8(255), + 2777: uint8(255), + 2778: uint8(255), + 2791: uint8(128), + 2792: uint8(14), + 2796: uint8(255), + 2797: uint8(31), + 2806: uint8(192), + 2821: uint8(8), + 2823: uint8(252), + 2855: uint8(14), + 2877: uint8(252), + 2878: uint8(7), + 2908: uint8(5), + 2918: uint8(24), + 2919: uint8(128), + 2920: uint8(255), + 2931: uint8(223), + 2932: uint8(7), + 2951: uint8(128), + 2952: uint8(62), + 2955: uint8(252), + 2956: uint8(255), + 2957: uint8(31), + 2958: uint8(3), + 2984: uint8(52), + 2994: uint8(128), + 3038: uint8(128), + 3039: uint8(1), + 3064: uint8(255), + 3065: uint8(255), + 3066: uint8(255), + 3067: uint8(255), + 3068: uint8(255), + 3069: uint8(255), + 3070: uint8(3), + 3071: uint8(128), + 3086: uint8(31), + 3110: uint8(255), + 3111: uint8(1), + 3149: uint8(192), + 3166: uint8(63), + 3174: uint8(255), + 3175: uint8(255), + 3176: uint8(48), + 3179: uint8(248), + 3180: uint8(3), + 3216: uint8(255), + 3217: uint8(255), + 3218: uint8(255), + 3219: uint8(7), + 3260: uint8(4), + 3283: uint8(176), + 3284: uint8(15), + 3296: uint8(255), + 3297: uint8(255), + 3298: uint8(255), + 3299: uint8(255), + 3300: uint8(255), + 3301: uint8(255), + 3302: uint8(255), + 3303: uint8(255), + 3304: uint8(255), + 3305: uint8(255), + 3306: uint8(255), + 3307: uint8(255), + 3308: uint8(255), + 3309: uint8(255), + 3310: uint8(255), + 3311: uint8(255), + 3312: uint8(255), + 3313: uint8(255), + 3314: uint8(255), + 3315: uint8(255), + 3316: uint8(255), + 3317: uint8(255), + 3318: uint8(255), + 3319: uint8(255), + 3320: uint8(255), + 3321: uint8(255), + 3322: uint8(255), + 3323: uint8(255), + 3324: uint8(255), + 3325: uint8(255), + 3326: uint8(63), + 3328: uint8(255), + 3329: uint8(255), + 3330: uint8(255), + 3331: uint8(255), + 3332: uint8(127), + 3333: uint8(254), + 3334: uint8(255), + 3335: uint8(255), + 3336: uint8(255), + 3337: uint8(255), + 3338: uint8(255), + 3339: uint8(255), + 3340: uint8(255), + 3341: uint8(255), + 3342: uint8(255), + 3343: uint8(255), + 3344: uint8(255), + 3345: uint8(255), + 3346: uint8(255), + 3347: uint8(255), + 3348: uint8(255), + 3349: uint8(255), + 3350: uint8(255), + 3351: uint8(255), + 3352: uint8(255), + 3353: uint8(255), + 3354: uint8(255), + 3355: uint8(255), + 3356: uint8(255), + 3357: uint8(1), + 3360: uint8(255), + 3361: uint8(255), + 3362: uint8(255), + 3363: uint8(255), + 3364: uint8(255), + 3365: uint8(255), + 3366: uint8(255), + 3367: uint8(255), + 3368: uint8(63), + 3388: uint8(255), + 3389: uint8(255), + 3390: uint8(15), + 3392: uint8(255), + 3393: uint8(255), + 3394: uint8(255), + 3395: uint8(255), + 3396: uint8(255), + 3397: uint8(255), + 3398: uint8(255), + 3399: uint8(255), + 3400: uint8(255), + 3401: uint8(255), + 3402: uint8(127), + 3404: uint8(255), + 3405: uint8(255), + 3406: uint8(255), + 3407: uint8(1), + 3448: uint8(2), + 3451: uint8(8), + 3455: uint8(8), + 3458: uint8(32), + 3462: uint8(32), + 3465: uint8(128), + 3469: uint8(128), + 3473: uint8(2), + 3477: uint8(2), + 3480: uint8(8), + 3488: uint8(255), + 3489: uint8(255), + 3490: uint8(255), + 3491: uint8(255), + 3492: uint8(255), + 3493: uint8(255), + 3494: uint8(255), + 3495: uint8(255), + 3496: uint8(255), + 3497: uint8(255), + 3498: uint8(255), + 3499: uint8(255), + 3500: uint8(255), + 3501: uint8(255), + 3502: uint8(255), + 3503: uint8(255), + 3504: uint8(255), + 3505: uint8(15), + 3507: uint8(248), + 3508: uint8(254), + 3509: uint8(255), + 3526: uint8(127), + 3529: uint8(128), + 3581: uint8(240), + 3583: uint8(128), + 3608: uint8(128), + 3609: uint8(255), + 3610: uint8(127), + 3624: uint8(112), + 3625: uint8(7), + 3627: uint8(192), + 3662: uint8(254), + 3663: uint8(255), + 3664: uint8(255), + 3665: uint8(255), + 3666: uint8(255), + 3667: uint8(255), + 3668: uint8(255), + 3669: uint8(255), + 3670: uint8(31), + 3680: uint8(254), + 3681: uint8(255), + 3682: uint8(255), + 3683: uint8(255), + 3684: uint8(255), + 3685: uint8(255), + 3686: uint8(255), + 3687: uint8(63), + 3742: uint8(3), + 3744: uint8(255), + 3745: uint8(255), + 3746: uint8(255), + 3747: uint8(255), + 3748: uint8(255), + 3749: uint8(15), + 3750: uint8(255), + 3751: uint8(255), + 3752: uint8(255), + 3753: uint8(255), + 3754: uint8(255), + 3755: uint8(255), + 3756: uint8(255), + 3757: uint8(255), + 3758: uint8(255), + 3759: uint8(255), + 3760: uint8(255), + 3761: uint8(255), + 3762: uint8(15), + 3764: uint8(255), + 3765: uint8(127), + 3766: uint8(254), + 3767: uint8(255), + 3768: uint8(254), + 3769: uint8(255), + 3770: uint8(254), + 3771: uint8(255), + 3772: uint8(255), + 3773: uint8(255), + 3774: uint8(63), + 3776: uint8(255), + 3777: uint8(31), + 3778: uint8(255), + 3779: uint8(255), + 3780: uint8(255), + 3781: uint8(255), + 3785: uint8(252), + 3789: uint8(28), + 3793: uint8(252), + 3794: uint8(255), + 3795: uint8(255), + 3796: uint8(255), + 3797: uint8(31), + 3804: uint8(192), + 3805: uint8(255), + 3806: uint8(255), + 3807: uint8(255), + 3808: uint8(7), + 3810: uint8(255), + 3811: uint8(255), + 3812: uint8(255), + 3813: uint8(255), + 3814: uint8(255), + 3815: uint8(15), + 3816: uint8(255), + 3817: uint8(1), + 3818: uint8(3), + 3820: uint8(63), + 3840: uint8(255), + 3841: uint8(255), + 3842: uint8(255), + 3843: uint8(255), + 3844: uint8(255), + 3845: uint8(255), + 3846: uint8(255), + 3847: uint8(255), + 3848: uint8(255), + 3849: uint8(255), + 3850: uint8(255), + 3851: uint8(255), + 3852: uint8(255), + 3853: uint8(255), + 3854: uint8(255), + 3855: uint8(255), + 3856: uint8(255), + 3857: uint8(255), + 3858: uint8(255), + 3859: uint8(255), + 3860: uint8(255), + 3861: uint8(255), + 3862: uint8(255), + 3863: uint8(255), + 3864: uint8(255), + 3865: uint8(255), + 3866: uint8(63), + 3868: uint8(255), + 3869: uint8(31), + 3870: uint8(255), + 3871: uint8(7), + 3872: uint8(255), + 3873: uint8(255), + 3874: uint8(255), + 3875: uint8(255), + 3876: uint8(255), + 3877: uint8(255), + 3878: uint8(255), + 3879: uint8(255), + 3880: uint8(255), + 3881: uint8(255), + 3882: uint8(255), + 3883: uint8(255), + 3884: uint8(255), + 3885: uint8(255), + 3886: uint8(15), + 3888: uint8(255), + 3889: uint8(255), + 3890: uint8(255), + 3891: uint8(255), + 3892: uint8(255), + 3893: uint8(255), + 3894: uint8(255), + 3895: uint8(255), + 3896: uint8(255), + 3897: uint8(255), + 3898: uint8(255), + 3899: uint8(1), + 3900: uint8(255), + 3901: uint8(15), + 3904: uint8(255), + 3905: uint8(15), + 3906: uint8(255), + 3907: uint8(255), + 3908: uint8(255), + 3909: uint8(255), + 3910: uint8(255), + 3911: uint8(255), + 3912: uint8(255), + 3914: uint8(255), + 3915: uint8(3), + 3916: uint8(255), + 3917: uint8(255), + 3918: uint8(255), + 3919: uint8(255), + 3920: uint8(255), + 3922: uint8(255), + 3923: uint8(255), + 3924: uint8(255), + 3925: uint8(63), + 3936: uint8(255), + 3937: uint8(239), + 3938: uint8(255), + 3939: uint8(255), + 3940: uint8(255), + 3941: uint8(255), + 3942: uint8(255), + 3943: uint8(255), + 3944: uint8(255), + 3945: uint8(255), + 3946: uint8(255), + 3947: uint8(255), + 3948: uint8(255), + 3949: uint8(255), + 3950: uint8(123), + 3951: uint8(252), + 3952: uint8(255), + 3953: uint8(255), + 3954: uint8(255), + 3955: uint8(255), + 3956: uint8(231), + 3957: uint8(199), + 3958: uint8(255), + 3959: uint8(255), + 3960: uint8(255), + 3961: uint8(231), + 3962: uint8(255), + 3963: uint8(255), + 3964: uint8(255), + 3965: uint8(255), + 3966: uint8(255), + 3967: uint8(255), + 3968: uint8(255), + 3969: uint8(255), + 3970: uint8(255), + 3971: uint8(255), + 3972: uint8(255), + 3973: uint8(255), + 3974: uint8(255), + 3975: uint8(255), + 3976: uint8(255), + 3977: uint8(255), + 3978: uint8(15), + 3980: uint8(255), + 3981: uint8(63), + 3982: uint8(15), + 3983: uint8(7), + 3984: uint8(7), + 3986: uint8(63), +} + +func Xiswpunct(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + if wc < uint32(0x20000) { + return Int32FromUint8(_table4[Uint32FromInt32(Int32FromUint8(_table4[wc>>int32(8)])*int32(32))+wc&uint32(255)>>int32(3)]) >> (wc & uint32(7)) & int32(1) + } + return 0 +} + +func X__iswpunct_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswpunct(tls, c) +} + +func Xiswpunct_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswpunct_l(tls, c, l) +} + +type Tmbstate_t = struct { + F__opaque1 uint32 + F__opaque2 uint32 +} + +type t__mbstate_t = Tmbstate_t + +/* Our definition of whitespace is the Unicode White_Space property, + * minus non-breaking spaces (U+00A0, U+2007, and U+202F) and script- + * specific characters with non-blank glyphs (U+1680 and U+180E). */ + +func Xiswspace(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(wc != 0 && Xwcschr(tls, uintptr(unsafe.Pointer(&_spaces)), Int32FromUint32(wc)) != 0) +} + +var _spaces = [22]Twchar_t{ + 0: int32(' '), + 1: int32('\t'), + 2: int32('\n'), + 3: int32('\r'), + 4: int32(11), + 5: int32(12), + 6: int32(0x0085), + 7: int32(0x2000), + 8: int32(0x2001), + 9: int32(0x2002), + 10: int32(0x2003), + 11: int32(0x2004), + 12: int32(0x2005), + 13: int32(0x2006), + 14: int32(0x2008), + 15: int32(0x2009), + 16: int32(0x200a), + 17: int32(0x2028), + 18: int32(0x2029), + 19: int32(0x205f), + 20: int32(0x3000), +} + +func X__iswspace_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswspace(tls, c) +} + +func Xiswspace_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswspace_l(tls, c, l) +} + +func Xiswupper(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(Xtowlower(tls, wc) != wc) +} + +func X__iswupper_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswupper(tls, c) +} + +func Xiswupper_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswupper_l(tls, c, l) +} + +func Xiswxdigit(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(wc-Uint32FromUint8('0') < uint32(10) || wc|Uint32FromInt32(32)-Uint32FromUint8('a') < uint32(6)) +} + +func X__iswxdigit_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswxdigit(tls, c) +} + +func Xiswxdigit_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswxdigit_l(tls, c, l) +} + +func Xisxdigit(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(BoolInt32(Uint32FromInt32(c)-uint32('0') < uint32(10)) != 0 || Uint32FromInt32(c)|uint32(32)-uint32('a') < uint32(6)) +} + +func X__isxdigit_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xisxdigit(tls, c) +} + +func Xisxdigit_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__isxdigit_l(tls, c, l) +} + +// C documentation +// +// /* nonsense function that should NEVER be used! */ +func Xtoascii(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return c & int32(0x7f) +} + +func Xtolower(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + if BoolInt32(Uint32FromInt32(c)-uint32('A') < uint32(26)) != 0 { + return c | int32(32) + } + return c +} + +func X__tolower_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xtolower(tls, c) +} + +func Xtolower_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__tolower_l(tls, c, l) +} + +func Xtoupper(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + if BoolInt32(Uint32FromInt32(c)-uint32('a') < uint32(26)) != 0 { + return c & int32(0x5f) + } + return c +} + +func X__toupper_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xtoupper(tls, c) +} + +func Xtoupper_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__toupper_l(tls, c, l) +} + +var _tab1 = [2666]uint8{ + 0: uint8(7), + 1: uint8(8), + 2: uint8(9), + 3: uint8(10), + 4: uint8(11), + 5: uint8(12), + 6: uint8(6), + 7: uint8(6), + 8: uint8(6), + 9: uint8(6), + 10: uint8(6), + 11: uint8(6), + 12: uint8(6), + 13: uint8(6), + 14: uint8(6), + 15: uint8(6), + 16: uint8(13), + 17: uint8(6), + 18: uint8(6), + 19: uint8(14), + 20: uint8(6), + 21: uint8(6), + 22: uint8(6), + 23: uint8(6), + 24: uint8(6), + 25: uint8(6), + 26: uint8(6), + 27: uint8(6), + 28: uint8(15), + 29: uint8(16), + 30: uint8(17), + 31: uint8(18), + 32: uint8(6), + 33: uint8(19), + 34: uint8(6), + 35: uint8(6), + 36: uint8(6), + 37: uint8(6), + 38: uint8(6), + 39: uint8(6), + 40: uint8(6), + 41: uint8(6), + 42: uint8(6), + 43: uint8(6), + 44: uint8(20), + 45: uint8(21), + 46: uint8(6), + 47: uint8(6), + 48: uint8(6), + 49: uint8(6), + 50: uint8(6), + 51: uint8(6), + 52: uint8(6), + 53: uint8(6), + 54: uint8(6), + 55: uint8(6), + 56: uint8(6), + 57: uint8(6), + 58: uint8(6), + 59: uint8(6), + 60: uint8(6), + 61: uint8(6), + 62: uint8(6), + 63: uint8(6), + 64: uint8(6), + 65: uint8(6), + 66: uint8(6), + 67: uint8(6), + 68: uint8(6), + 69: uint8(6), + 70: uint8(6), + 71: uint8(6), + 72: uint8(6), + 73: uint8(6), + 74: uint8(6), + 75: uint8(6), + 76: uint8(6), + 77: uint8(6), + 78: uint8(6), + 79: uint8(6), + 80: uint8(6), + 81: uint8(6), + 82: uint8(6), + 83: uint8(6), + 84: uint8(6), + 85: uint8(6), + 86: uint8(6), + 87: uint8(6), + 88: uint8(6), + 89: uint8(6), + 90: uint8(6), + 91: uint8(6), + 92: uint8(6), + 93: uint8(6), + 94: uint8(6), + 95: uint8(6), + 96: uint8(6), + 97: uint8(6), + 98: uint8(6), + 99: uint8(6), + 100: uint8(6), + 101: uint8(6), + 102: uint8(6), + 103: uint8(6), + 104: uint8(6), + 105: uint8(6), + 106: uint8(6), + 107: uint8(6), + 108: uint8(6), + 109: uint8(6), + 110: uint8(6), + 111: uint8(6), + 112: uint8(6), + 113: uint8(6), + 114: uint8(6), + 115: uint8(6), + 116: uint8(6), + 117: uint8(6), + 118: uint8(6), + 119: uint8(6), + 120: uint8(6), + 121: uint8(6), + 122: uint8(6), + 123: uint8(6), + 124: uint8(6), + 125: uint8(6), + 126: uint8(6), + 127: uint8(6), + 128: uint8(6), + 129: uint8(6), + 130: uint8(6), + 131: uint8(6), + 132: uint8(6), + 133: uint8(6), + 134: uint8(6), + 135: uint8(6), + 136: uint8(6), + 137: uint8(6), + 138: uint8(6), + 139: uint8(6), + 140: uint8(6), + 141: uint8(6), + 142: uint8(6), + 143: uint8(6), + 144: uint8(6), + 145: uint8(6), + 146: uint8(6), + 147: uint8(6), + 148: uint8(6), + 149: uint8(6), + 150: uint8(6), + 151: uint8(6), + 152: uint8(6), + 153: uint8(6), + 154: uint8(6), + 155: uint8(6), + 156: uint8(6), + 157: uint8(6), + 158: uint8(6), + 159: uint8(6), + 160: uint8(6), + 161: uint8(6), + 162: uint8(6), + 163: uint8(6), + 164: uint8(6), + 165: uint8(6), + 166: uint8(22), + 167: uint8(23), + 168: uint8(6), + 169: uint8(6), + 170: uint8(6), + 171: uint8(24), + 172: uint8(6), + 173: uint8(6), + 174: uint8(6), + 175: uint8(6), + 176: uint8(6), + 177: uint8(6), + 178: uint8(6), + 179: uint8(6), + 180: uint8(6), + 181: uint8(6), + 182: uint8(6), + 183: uint8(6), + 184: uint8(6), + 185: uint8(6), + 186: uint8(6), + 187: uint8(6), + 188: uint8(6), + 189: uint8(6), + 190: uint8(6), + 191: uint8(6), + 192: uint8(6), + 193: uint8(6), + 194: uint8(6), + 195: uint8(6), + 196: uint8(6), + 197: uint8(6), + 198: uint8(6), + 199: uint8(6), + 200: uint8(6), + 201: uint8(6), + 202: uint8(6), + 203: uint8(6), + 204: uint8(6), + 205: uint8(6), + 206: uint8(6), + 207: uint8(6), + 208: uint8(6), + 209: uint8(6), + 210: uint8(6), + 211: uint8(6), + 212: uint8(6), + 213: uint8(6), + 214: uint8(6), + 215: uint8(6), + 216: uint8(6), + 217: uint8(6), + 218: uint8(6), + 219: uint8(6), + 220: uint8(6), + 221: uint8(6), + 222: uint8(6), + 223: uint8(6), + 224: uint8(6), + 225: uint8(6), + 226: uint8(6), + 227: uint8(6), + 228: uint8(6), + 229: uint8(6), + 230: uint8(6), + 231: uint8(6), + 232: uint8(6), + 233: uint8(6), + 234: uint8(6), + 235: uint8(6), + 236: uint8(6), + 237: uint8(6), + 238: uint8(6), + 239: uint8(6), + 240: uint8(6), + 241: uint8(6), + 242: uint8(6), + 243: uint8(6), + 244: uint8(6), + 245: uint8(6), + 246: uint8(6), + 247: uint8(6), + 248: uint8(6), + 249: uint8(6), + 250: uint8(6), + 251: uint8(6), + 252: uint8(6), + 253: uint8(6), + 254: uint8(6), + 255: uint8(25), + 256: uint8(6), + 257: uint8(6), + 258: uint8(6), + 259: uint8(6), + 260: uint8(26), + 261: uint8(6), + 262: uint8(6), + 263: uint8(6), + 264: uint8(6), + 265: uint8(6), + 266: uint8(6), + 267: uint8(6), + 268: uint8(27), + 269: uint8(6), + 270: uint8(6), + 271: uint8(6), + 272: uint8(6), + 273: uint8(6), + 274: uint8(6), + 275: uint8(6), + 276: uint8(6), + 277: uint8(6), + 278: uint8(6), + 279: uint8(6), + 280: uint8(28), + 281: uint8(6), + 282: uint8(6), + 283: uint8(6), + 284: uint8(6), + 285: uint8(6), + 286: uint8(6), + 287: uint8(6), + 288: uint8(6), + 289: uint8(6), + 290: uint8(6), + 291: uint8(6), + 292: uint8(6), + 293: uint8(6), + 294: uint8(6), + 295: uint8(6), + 296: uint8(6), + 297: uint8(6), + 298: uint8(6), + 299: uint8(6), + 300: uint8(6), + 301: uint8(6), + 302: uint8(6), + 303: uint8(6), + 304: uint8(6), + 305: uint8(6), + 306: uint8(6), + 307: uint8(6), + 308: uint8(6), + 309: uint8(6), + 310: uint8(6), + 311: uint8(6), + 312: uint8(6), + 313: uint8(6), + 314: uint8(6), + 315: uint8(6), + 316: uint8(6), + 317: uint8(6), + 318: uint8(6), + 319: uint8(6), + 320: uint8(6), + 321: uint8(6), + 322: uint8(6), + 323: uint8(6), + 324: uint8(6), + 325: uint8(6), + 326: uint8(6), + 327: uint8(6), + 328: uint8(6), + 329: uint8(6), + 330: uint8(6), + 331: uint8(6), + 332: uint8(6), + 333: uint8(6), + 334: uint8(6), + 335: uint8(6), + 336: uint8(6), + 337: uint8(6), + 338: uint8(6), + 339: uint8(6), + 340: uint8(6), + 341: uint8(6), + 342: uint8(6), + 343: uint8(6), + 344: uint8(6), + 345: uint8(6), + 346: uint8(6), + 347: uint8(6), + 348: uint8(6), + 349: uint8(6), + 350: uint8(6), + 351: uint8(6), + 352: uint8(6), + 353: uint8(6), + 354: uint8(6), + 355: uint8(6), + 356: uint8(6), + 357: uint8(6), + 358: uint8(6), + 359: uint8(6), + 360: uint8(6), + 361: uint8(6), + 362: uint8(6), + 363: uint8(6), + 364: uint8(6), + 365: uint8(6), + 366: uint8(29), + 367: uint8(6), + 368: uint8(6), + 369: uint8(6), + 370: uint8(6), + 371: uint8(6), + 372: uint8(6), + 373: uint8(6), + 374: uint8(6), + 375: uint8(6), + 376: uint8(6), + 377: uint8(6), + 378: uint8(6), + 379: uint8(6), + 380: uint8(6), + 381: uint8(6), + 382: uint8(6), + 383: uint8(6), + 384: uint8(6), + 385: uint8(6), + 386: uint8(6), + 387: uint8(6), + 388: uint8(6), + 389: uint8(6), + 390: uint8(6), + 391: uint8(6), + 392: uint8(6), + 393: uint8(6), + 394: uint8(6), + 395: uint8(6), + 396: uint8(6), + 397: uint8(6), + 398: uint8(6), + 399: uint8(6), + 400: uint8(6), + 401: uint8(6), + 402: uint8(6), + 403: uint8(6), + 404: uint8(6), + 405: uint8(6), + 406: uint8(6), + 407: uint8(6), + 408: uint8(6), + 409: uint8(6), + 410: uint8(6), + 411: uint8(6), + 412: uint8(6), + 413: uint8(6), + 414: uint8(6), + 415: uint8(6), + 416: uint8(6), + 417: uint8(6), + 418: uint8(6), + 419: uint8(6), + 420: uint8(6), + 421: uint8(6), + 422: uint8(6), + 423: uint8(6), + 424: uint8(6), + 425: uint8(6), + 426: uint8(6), + 427: uint8(6), + 428: uint8(6), + 429: uint8(6), + 430: uint8(6), + 431: uint8(6), + 432: uint8(6), + 433: uint8(6), + 434: uint8(6), + 435: uint8(6), + 436: uint8(6), + 437: uint8(6), + 438: uint8(6), + 439: uint8(6), + 440: uint8(6), + 441: uint8(6), + 442: uint8(6), + 443: uint8(6), + 444: uint8(6), + 445: uint8(6), + 446: uint8(6), + 447: uint8(6), + 448: uint8(6), + 449: uint8(6), + 450: uint8(6), + 451: uint8(6), + 452: uint8(6), + 453: uint8(6), + 454: uint8(6), + 455: uint8(6), + 456: uint8(6), + 457: uint8(6), + 458: uint8(6), + 459: uint8(6), + 460: uint8(6), + 461: uint8(6), + 462: uint8(6), + 463: uint8(6), + 464: uint8(6), + 465: uint8(6), + 466: uint8(6), + 467: uint8(6), + 468: uint8(6), + 469: uint8(6), + 470: uint8(6), + 471: uint8(6), + 472: uint8(6), + 473: uint8(6), + 474: uint8(6), + 475: uint8(6), + 476: uint8(6), + 477: uint8(6), + 478: uint8(6), + 479: uint8(6), + 480: uint8(6), + 481: uint8(6), + 482: uint8(6), + 483: uint8(6), + 484: uint8(6), + 485: uint8(6), + 486: uint8(6), + 487: uint8(6), + 488: uint8(6), + 489: uint8(30), + 490: uint8(6), + 491: uint8(6), + 492: uint8(6), + 493: uint8(6), + 494: uint8(6), + 495: uint8(6), + 496: uint8(6), + 497: uint8(6), + 498: uint8(6), + 499: uint8(6), + 500: uint8(6), + 501: uint8(6), + 502: uint8(6), + 503: uint8(6), + 504: uint8(6), + 505: uint8(6), + 506: uint8(6), + 507: uint8(6), + 508: uint8(6), + 509: uint8(6), + 510: uint8(6), + 511: uint8(6), + 623: uint8(36), + 624: uint8(43), + 625: uint8(43), + 626: uint8(43), + 627: uint8(43), + 628: uint8(43), + 629: uint8(43), + 630: uint8(43), + 631: uint8(43), + 632: uint8(1), + 634: uint8(84), + 635: uint8(86), + 636: uint8(86), + 637: uint8(86), + 638: uint8(86), + 639: uint8(86), + 640: uint8(86), + 641: uint8(86), + 642: uint8(86), + 662: uint8(24), + 666: uint8(43), + 667: uint8(43), + 668: uint8(43), + 669: uint8(43), + 670: uint8(43), + 671: uint8(43), + 672: uint8(43), + 673: uint8(7), + 674: uint8(43), + 675: uint8(43), + 676: uint8(91), + 677: uint8(86), + 678: uint8(86), + 679: uint8(86), + 680: uint8(86), + 681: uint8(86), + 682: uint8(86), + 683: uint8(86), + 684: uint8(74), + 685: uint8(86), + 686: uint8(86), + 687: uint8(5), + 688: uint8(49), + 689: uint8(80), + 690: uint8(49), + 691: uint8(80), + 692: uint8(49), + 693: uint8(80), + 694: uint8(49), + 695: uint8(80), + 696: uint8(49), + 697: uint8(80), + 698: uint8(49), + 699: uint8(80), + 700: uint8(49), + 701: uint8(80), + 702: uint8(49), + 703: uint8(80), + 704: uint8(36), + 705: uint8(80), + 706: uint8(121), + 707: uint8(49), + 708: uint8(80), + 709: uint8(49), + 710: uint8(80), + 711: uint8(49), + 712: uint8(56), + 713: uint8(80), + 714: uint8(49), + 715: uint8(80), + 716: uint8(49), + 717: uint8(80), + 718: uint8(49), + 719: uint8(80), + 720: uint8(49), + 721: uint8(80), + 722: uint8(49), + 723: uint8(80), + 724: uint8(49), + 725: uint8(80), + 726: uint8(49), + 727: uint8(80), + 728: uint8(78), + 729: uint8(49), + 730: uint8(2), + 731: uint8(78), + 732: uint8(13), + 733: uint8(13), + 734: uint8(78), + 735: uint8(3), + 736: uint8(78), + 738: uint8(36), + 739: uint8(110), + 741: uint8(78), + 742: uint8(49), + 743: uint8(38), + 744: uint8(110), + 745: uint8(81), + 746: uint8(78), + 747: uint8(36), + 748: uint8(80), + 749: uint8(78), + 750: uint8(57), + 751: uint8(20), + 752: uint8(129), + 753: uint8(27), + 754: uint8(29), + 755: uint8(29), + 756: uint8(83), + 757: uint8(49), + 758: uint8(80), + 759: uint8(49), + 760: uint8(80), + 761: uint8(13), + 762: uint8(49), + 763: uint8(80), + 764: uint8(49), + 765: uint8(80), + 766: uint8(49), + 767: uint8(80), + 768: uint8(27), + 769: uint8(83), + 770: uint8(36), + 771: uint8(80), + 772: uint8(49), + 773: uint8(2), + 774: uint8(92), + 775: uint8(123), + 776: uint8(92), + 777: uint8(123), + 778: uint8(92), + 779: uint8(123), + 780: uint8(92), + 781: uint8(123), + 782: uint8(92), + 783: uint8(123), + 784: uint8(20), + 785: uint8(121), + 786: uint8(92), + 787: uint8(123), + 788: uint8(92), + 789: uint8(123), + 790: uint8(92), + 791: uint8(45), + 792: uint8(43), + 793: uint8(73), + 794: uint8(3), + 795: uint8(72), + 796: uint8(3), + 797: uint8(120), + 798: uint8(92), + 799: uint8(123), + 800: uint8(20), + 802: uint8(150), + 803: uint8(10), + 804: uint8(1), + 805: uint8(43), + 806: uint8(40), + 807: uint8(6), + 808: uint8(6), + 810: uint8(42), + 811: uint8(6), + 812: uint8(42), + 813: uint8(42), + 814: uint8(43), + 815: uint8(7), + 816: uint8(187), + 817: uint8(181), + 818: uint8(43), + 819: uint8(30), + 821: uint8(43), + 822: uint8(7), + 823: uint8(43), + 824: uint8(43), + 825: uint8(43), + 826: uint8(1), + 827: uint8(43), + 828: uint8(43), + 829: uint8(43), + 830: uint8(43), + 831: uint8(43), + 832: uint8(43), + 833: uint8(43), + 834: uint8(43), + 835: uint8(43), + 836: uint8(43), + 837: uint8(43), + 838: uint8(43), + 839: uint8(43), + 840: uint8(43), + 841: uint8(43), + 842: uint8(43), + 843: uint8(43), + 844: uint8(43), + 845: uint8(43), + 846: uint8(43), + 847: uint8(43), + 848: uint8(43), + 849: uint8(43), + 850: uint8(43), + 851: uint8(43), + 852: uint8(43), + 853: uint8(43), + 854: uint8(43), + 855: uint8(43), + 856: uint8(43), + 857: uint8(43), + 858: uint8(43), + 859: uint8(1), + 860: uint8(43), + 861: uint8(43), + 862: uint8(43), + 863: uint8(43), + 864: uint8(43), + 865: uint8(43), + 866: uint8(43), + 867: uint8(43), + 868: uint8(43), + 869: uint8(43), + 870: uint8(43), + 871: uint8(43), + 872: uint8(43), + 873: uint8(43), + 874: uint8(43), + 875: uint8(43), + 876: uint8(43), + 877: uint8(43), + 878: uint8(43), + 879: uint8(43), + 880: uint8(43), + 881: uint8(43), + 882: uint8(43), + 883: uint8(42), + 884: uint8(43), + 885: uint8(43), + 886: uint8(43), + 887: uint8(43), + 888: uint8(43), + 889: uint8(43), + 890: uint8(43), + 891: uint8(43), + 892: uint8(43), + 893: uint8(43), + 894: uint8(43), + 895: uint8(43), + 896: uint8(43), + 897: uint8(205), + 898: uint8(70), + 899: uint8(205), + 900: uint8(43), + 902: uint8(37), + 903: uint8(43), + 904: uint8(7), + 905: uint8(1), + 906: uint8(6), + 907: uint8(1), + 908: uint8(85), + 909: uint8(86), + 910: uint8(86), + 911: uint8(86), + 912: uint8(86), + 913: uint8(86), + 914: uint8(85), + 915: uint8(86), + 916: uint8(86), + 917: uint8(2), + 918: uint8(36), + 919: uint8(129), + 920: uint8(129), + 921: uint8(129), + 922: uint8(129), + 923: uint8(129), + 924: uint8(21), + 925: uint8(129), + 926: uint8(129), + 927: uint8(129), + 930: uint8(43), + 932: uint8(178), + 933: uint8(209), + 934: uint8(178), + 935: uint8(209), + 936: uint8(178), + 937: uint8(209), + 938: uint8(178), + 939: uint8(209), + 942: uint8(205), + 943: uint8(204), + 944: uint8(1), + 946: uint8(215), + 947: uint8(215), + 948: uint8(215), + 949: uint8(215), + 950: uint8(215), + 951: uint8(131), + 952: uint8(129), + 953: uint8(129), + 954: uint8(129), + 955: uint8(129), + 956: uint8(129), + 957: uint8(129), + 958: uint8(129), + 959: uint8(129), + 960: uint8(129), + 961: uint8(129), + 962: uint8(172), + 963: uint8(172), + 964: uint8(172), + 965: uint8(172), + 966: uint8(172), + 967: uint8(172), + 968: uint8(172), + 969: uint8(172), + 970: uint8(172), + 971: uint8(172), + 972: uint8(28), + 978: uint8(49), + 979: uint8(80), + 980: uint8(49), + 981: uint8(80), + 982: uint8(49), + 983: uint8(80), + 984: uint8(49), + 985: uint8(80), + 986: uint8(49), + 987: uint8(80), + 988: uint8(49), + 989: uint8(2), + 992: uint8(49), + 993: uint8(80), + 994: uint8(49), + 995: uint8(80), + 996: uint8(49), + 997: uint8(80), + 998: uint8(49), + 999: uint8(80), + 1000: uint8(49), + 1001: uint8(80), + 1002: uint8(49), + 1003: uint8(80), + 1004: uint8(49), + 1005: uint8(80), + 1006: uint8(49), + 1007: uint8(80), + 1008: uint8(49), + 1009: uint8(80), + 1010: uint8(78), + 1011: uint8(49), + 1012: uint8(80), + 1013: uint8(49), + 1014: uint8(80), + 1015: uint8(78), + 1016: uint8(49), + 1017: uint8(80), + 1018: uint8(49), + 1019: uint8(80), + 1020: uint8(49), + 1021: uint8(80), + 1022: uint8(49), + 1023: uint8(80), + 1024: uint8(49), + 1025: uint8(80), + 1026: uint8(49), + 1027: uint8(80), + 1028: uint8(49), + 1029: uint8(80), + 1030: uint8(49), + 1031: uint8(2), + 1032: uint8(135), + 1033: uint8(166), + 1034: uint8(135), + 1035: uint8(166), + 1036: uint8(135), + 1037: uint8(166), + 1038: uint8(135), + 1039: uint8(166), + 1040: uint8(135), + 1041: uint8(166), + 1042: uint8(135), + 1043: uint8(166), + 1044: uint8(135), + 1045: uint8(166), + 1046: uint8(135), + 1047: uint8(166), + 1048: uint8(42), + 1049: uint8(43), + 1050: uint8(43), + 1051: uint8(43), + 1052: uint8(43), + 1053: uint8(43), + 1054: uint8(43), + 1055: uint8(43), + 1056: uint8(43), + 1057: uint8(43), + 1058: uint8(43), + 1059: uint8(43), + 1060: uint8(43), + 1064: uint8(84), + 1065: uint8(86), + 1066: uint8(86), + 1067: uint8(86), + 1068: uint8(86), + 1069: uint8(86), + 1070: uint8(86), + 1071: uint8(86), + 1072: uint8(86), + 1073: uint8(86), + 1074: uint8(86), + 1075: uint8(86), + 1076: uint8(86), + 1171: uint8(84), + 1172: uint8(86), + 1173: uint8(86), + 1174: uint8(86), + 1175: uint8(86), + 1176: uint8(86), + 1177: uint8(86), + 1178: uint8(86), + 1179: uint8(86), + 1180: uint8(86), + 1181: uint8(86), + 1182: uint8(86), + 1183: uint8(86), + 1184: uint8(12), + 1186: uint8(12), + 1187: uint8(42), + 1188: uint8(43), + 1189: uint8(43), + 1190: uint8(43), + 1191: uint8(43), + 1192: uint8(43), + 1193: uint8(43), + 1194: uint8(43), + 1195: uint8(43), + 1196: uint8(43), + 1197: uint8(43), + 1198: uint8(43), + 1199: uint8(43), + 1200: uint8(43), + 1201: uint8(7), + 1202: uint8(42), + 1203: uint8(1), + 1257: uint8(42), + 1258: uint8(43), + 1259: uint8(43), + 1260: uint8(43), + 1261: uint8(43), + 1262: uint8(43), + 1263: uint8(43), + 1264: uint8(43), + 1265: uint8(43), + 1266: uint8(43), + 1267: uint8(43), + 1268: uint8(43), + 1269: uint8(43), + 1270: uint8(43), + 1271: uint8(43), + 1272: uint8(43), + 1273: uint8(43), + 1274: uint8(43), + 1275: uint8(43), + 1276: uint8(43), + 1277: uint8(43), + 1278: uint8(43), + 1279: uint8(43), + 1280: uint8(43), + 1281: uint8(43), + 1282: uint8(43), + 1283: uint8(43), + 1284: uint8(86), + 1285: uint8(86), + 1286: uint8(108), + 1287: uint8(129), + 1288: uint8(21), + 1290: uint8(43), + 1291: uint8(43), + 1292: uint8(43), + 1293: uint8(43), + 1294: uint8(43), + 1295: uint8(43), + 1296: uint8(43), + 1297: uint8(43), + 1298: uint8(43), + 1299: uint8(43), + 1300: uint8(43), + 1301: uint8(43), + 1302: uint8(43), + 1303: uint8(43), + 1304: uint8(43), + 1305: uint8(43), + 1306: uint8(43), + 1307: uint8(43), + 1308: uint8(43), + 1309: uint8(43), + 1310: uint8(43), + 1311: uint8(43), + 1312: uint8(43), + 1313: uint8(43), + 1314: uint8(43), + 1315: uint8(43), + 1316: uint8(43), + 1317: uint8(43), + 1318: uint8(43), + 1319: uint8(43), + 1320: uint8(43), + 1321: uint8(43), + 1322: uint8(43), + 1323: uint8(43), + 1324: uint8(43), + 1325: uint8(43), + 1326: uint8(43), + 1327: uint8(43), + 1328: uint8(43), + 1329: uint8(43), + 1330: uint8(43), + 1331: uint8(43), + 1332: uint8(7), + 1333: uint8(108), + 1334: uint8(3), + 1335: uint8(65), + 1336: uint8(43), + 1337: uint8(43), + 1338: uint8(86), + 1339: uint8(86), + 1340: uint8(86), + 1341: uint8(86), + 1342: uint8(86), + 1343: uint8(86), + 1344: uint8(86), + 1345: uint8(86), + 1346: uint8(86), + 1347: uint8(86), + 1348: uint8(86), + 1349: uint8(86), + 1350: uint8(86), + 1351: uint8(86), + 1352: uint8(44), + 1353: uint8(86), + 1354: uint8(43), + 1355: uint8(43), + 1356: uint8(43), + 1357: uint8(43), + 1358: uint8(43), + 1359: uint8(43), + 1360: uint8(43), + 1361: uint8(43), + 1362: uint8(43), + 1363: uint8(43), + 1364: uint8(43), + 1365: uint8(43), + 1366: uint8(43), + 1367: uint8(43), + 1368: uint8(43), + 1369: uint8(43), + 1370: uint8(43), + 1371: uint8(43), + 1372: uint8(43), + 1373: uint8(43), + 1374: uint8(43), + 1375: uint8(1), + 1416: uint8(12), + 1417: uint8(108), + 1423: uint8(6), + 1462: uint8(6), + 1463: uint8(37), + 1464: uint8(6), + 1465: uint8(37), + 1466: uint8(6), + 1467: uint8(37), + 1468: uint8(6), + 1469: uint8(37), + 1470: uint8(6), + 1471: uint8(37), + 1472: uint8(6), + 1473: uint8(37), + 1474: uint8(6), + 1475: uint8(37), + 1476: uint8(6), + 1477: uint8(37), + 1478: uint8(6), + 1479: uint8(37), + 1480: uint8(6), + 1481: uint8(37), + 1482: uint8(6), + 1483: uint8(37), + 1484: uint8(6), + 1485: uint8(37), + 1486: uint8(6), + 1487: uint8(37), + 1488: uint8(6), + 1489: uint8(37), + 1490: uint8(6), + 1491: uint8(37), + 1492: uint8(6), + 1493: uint8(37), + 1494: uint8(6), + 1495: uint8(37), + 1496: uint8(6), + 1497: uint8(37), + 1498: uint8(6), + 1499: uint8(37), + 1500: uint8(6), + 1501: uint8(37), + 1502: uint8(6), + 1503: uint8(37), + 1504: uint8(6), + 1505: uint8(37), + 1506: uint8(6), + 1507: uint8(37), + 1508: uint8(6), + 1509: uint8(37), + 1510: uint8(6), + 1511: uint8(37), + 1512: uint8(86), + 1513: uint8(122), + 1514: uint8(158), + 1515: uint8(38), + 1516: uint8(6), + 1517: uint8(37), + 1518: uint8(6), + 1519: uint8(37), + 1520: uint8(6), + 1521: uint8(37), + 1522: uint8(6), + 1523: uint8(37), + 1524: uint8(6), + 1525: uint8(37), + 1526: uint8(6), + 1527: uint8(37), + 1528: uint8(6), + 1529: uint8(37), + 1530: uint8(6), + 1531: uint8(37), + 1532: uint8(6), + 1533: uint8(37), + 1534: uint8(6), + 1535: uint8(37), + 1536: uint8(6), + 1537: uint8(37), + 1538: uint8(6), + 1539: uint8(37), + 1540: uint8(6), + 1541: uint8(37), + 1542: uint8(6), + 1543: uint8(37), + 1544: uint8(6), + 1545: uint8(37), + 1546: uint8(6), + 1547: uint8(1), + 1548: uint8(43), + 1549: uint8(43), + 1550: uint8(79), + 1551: uint8(86), + 1552: uint8(86), + 1553: uint8(44), + 1554: uint8(43), + 1555: uint8(127), + 1556: uint8(86), + 1557: uint8(86), + 1558: uint8(57), + 1559: uint8(43), + 1560: uint8(43), + 1561: uint8(85), + 1562: uint8(86), + 1563: uint8(86), + 1564: uint8(43), + 1565: uint8(43), + 1566: uint8(79), + 1567: uint8(86), + 1568: uint8(86), + 1569: uint8(44), + 1570: uint8(43), + 1571: uint8(127), + 1572: uint8(86), + 1573: uint8(86), + 1574: uint8(129), + 1575: uint8(55), + 1576: uint8(117), + 1577: uint8(91), + 1578: uint8(123), + 1579: uint8(92), + 1580: uint8(43), + 1581: uint8(43), + 1582: uint8(79), + 1583: uint8(86), + 1584: uint8(86), + 1585: uint8(2), + 1586: uint8(172), + 1587: uint8(4), + 1590: uint8(57), + 1591: uint8(43), + 1592: uint8(43), + 1593: uint8(85), + 1594: uint8(86), + 1595: uint8(86), + 1596: uint8(43), + 1597: uint8(43), + 1598: uint8(79), + 1599: uint8(86), + 1600: uint8(86), + 1601: uint8(44), + 1602: uint8(43), + 1603: uint8(43), + 1604: uint8(86), + 1605: uint8(86), + 1606: uint8(50), + 1607: uint8(19), + 1608: uint8(129), + 1609: uint8(87), + 1611: uint8(111), + 1612: uint8(129), + 1613: uint8(126), + 1614: uint8(201), + 1615: uint8(215), + 1616: uint8(126), + 1617: uint8(45), + 1618: uint8(129), + 1619: uint8(129), + 1620: uint8(14), + 1621: uint8(126), + 1622: uint8(57), + 1623: uint8(127), + 1624: uint8(111), + 1625: uint8(87), + 1627: uint8(129), + 1628: uint8(129), + 1629: uint8(126), + 1630: uint8(21), + 1632: uint8(126), + 1633: uint8(3), + 1634: uint8(43), + 1635: uint8(43), + 1636: uint8(43), + 1637: uint8(43), + 1638: uint8(43), + 1639: uint8(43), + 1640: uint8(43), + 1641: uint8(43), + 1642: uint8(43), + 1643: uint8(43), + 1644: uint8(43), + 1645: uint8(43), + 1646: uint8(7), + 1647: uint8(43), + 1648: uint8(36), + 1649: uint8(43), + 1650: uint8(151), + 1651: uint8(43), + 1652: uint8(43), + 1653: uint8(43), + 1654: uint8(43), + 1655: uint8(43), + 1656: uint8(43), + 1657: uint8(43), + 1658: uint8(43), + 1659: uint8(43), + 1660: uint8(42), + 1661: uint8(43), + 1662: uint8(43), + 1663: uint8(43), + 1664: uint8(43), + 1665: uint8(43), + 1666: uint8(86), + 1667: uint8(86), + 1668: uint8(86), + 1669: uint8(86), + 1670: uint8(86), + 1671: uint8(128), + 1672: uint8(129), + 1673: uint8(129), + 1674: uint8(129), + 1675: uint8(129), + 1676: uint8(57), + 1677: uint8(187), + 1678: uint8(42), + 1679: uint8(43), + 1680: uint8(43), + 1681: uint8(43), + 1682: uint8(43), + 1683: uint8(43), + 1684: uint8(43), + 1685: uint8(43), + 1686: uint8(43), + 1687: uint8(43), + 1688: uint8(43), + 1689: uint8(43), + 1690: uint8(43), + 1691: uint8(43), + 1692: uint8(43), + 1693: uint8(43), + 1694: uint8(43), + 1695: uint8(43), + 1696: uint8(43), + 1697: uint8(43), + 1698: uint8(43), + 1699: uint8(43), + 1700: uint8(43), + 1701: uint8(43), + 1702: uint8(43), + 1703: uint8(43), + 1704: uint8(43), + 1705: uint8(43), + 1706: uint8(43), + 1707: uint8(43), + 1708: uint8(43), + 1709: uint8(43), + 1710: uint8(43), + 1711: uint8(43), + 1712: uint8(43), + 1713: uint8(43), + 1714: uint8(43), + 1715: uint8(43), + 1716: uint8(43), + 1717: uint8(43), + 1718: uint8(43), + 1719: uint8(1), + 1720: uint8(129), + 1721: uint8(129), + 1722: uint8(129), + 1723: uint8(129), + 1724: uint8(129), + 1725: uint8(129), + 1726: uint8(129), + 1727: uint8(129), + 1728: uint8(129), + 1729: uint8(129), + 1730: uint8(129), + 1731: uint8(129), + 1732: uint8(129), + 1733: uint8(129), + 1734: uint8(129), + 1735: uint8(201), + 1736: uint8(172), + 1737: uint8(172), + 1738: uint8(172), + 1739: uint8(172), + 1740: uint8(172), + 1741: uint8(172), + 1742: uint8(172), + 1743: uint8(172), + 1744: uint8(172), + 1745: uint8(172), + 1746: uint8(172), + 1747: uint8(172), + 1748: uint8(172), + 1749: uint8(172), + 1750: uint8(172), + 1751: uint8(208), + 1752: uint8(13), + 1754: uint8(78), + 1755: uint8(49), + 1756: uint8(2), + 1757: uint8(180), + 1758: uint8(193), + 1759: uint8(193), + 1760: uint8(215), + 1761: uint8(215), + 1762: uint8(36), + 1763: uint8(80), + 1764: uint8(49), + 1765: uint8(80), + 1766: uint8(49), + 1767: uint8(80), + 1768: uint8(49), + 1769: uint8(80), + 1770: uint8(49), + 1771: uint8(80), + 1772: uint8(49), + 1773: uint8(80), + 1774: uint8(49), + 1775: uint8(80), + 1776: uint8(49), + 1777: uint8(80), + 1778: uint8(49), + 1779: uint8(80), + 1780: uint8(49), + 1781: uint8(80), + 1782: uint8(49), + 1783: uint8(80), + 1784: uint8(49), + 1785: uint8(80), + 1786: uint8(49), + 1787: uint8(80), + 1788: uint8(49), + 1789: uint8(80), + 1790: uint8(49), + 1791: uint8(80), + 1792: uint8(49), + 1793: uint8(80), + 1794: uint8(49), + 1795: uint8(80), + 1796: uint8(215), + 1797: uint8(215), + 1798: uint8(83), + 1799: uint8(193), + 1800: uint8(71), + 1801: uint8(212), + 1802: uint8(215), + 1803: uint8(215), + 1804: uint8(215), + 1805: uint8(5), + 1806: uint8(43), + 1807: uint8(43), + 1808: uint8(43), + 1809: uint8(43), + 1810: uint8(43), + 1811: uint8(43), + 1812: uint8(43), + 1813: uint8(43), + 1814: uint8(43), + 1815: uint8(43), + 1816: uint8(43), + 1817: uint8(43), + 1818: uint8(7), + 1819: uint8(1), + 1821: uint8(1), + 1913: uint8(78), + 1914: uint8(49), + 1915: uint8(80), + 1916: uint8(49), + 1917: uint8(80), + 1918: uint8(49), + 1919: uint8(80), + 1920: uint8(49), + 1921: uint8(80), + 1922: uint8(49), + 1923: uint8(80), + 1924: uint8(49), + 1925: uint8(80), + 1926: uint8(49), + 1927: uint8(80), + 1928: uint8(13), + 1934: uint8(36), + 1935: uint8(80), + 1936: uint8(49), + 1937: uint8(80), + 1938: uint8(49), + 1939: uint8(80), + 1940: uint8(49), + 1941: uint8(80), + 1942: uint8(49), + 1943: uint8(80), + 1978: uint8(43), + 1979: uint8(43), + 1980: uint8(43), + 1981: uint8(43), + 1982: uint8(43), + 1983: uint8(43), + 1984: uint8(43), + 1985: uint8(43), + 1986: uint8(43), + 1987: uint8(43), + 1988: uint8(43), + 1989: uint8(121), + 1990: uint8(92), + 1991: uint8(123), + 1992: uint8(92), + 1993: uint8(123), + 1994: uint8(79), + 1995: uint8(123), + 1996: uint8(92), + 1997: uint8(123), + 1998: uint8(92), + 1999: uint8(123), + 2000: uint8(92), + 2001: uint8(123), + 2002: uint8(92), + 2003: uint8(123), + 2004: uint8(92), + 2005: uint8(123), + 2006: uint8(92), + 2007: uint8(123), + 2008: uint8(92), + 2009: uint8(123), + 2010: uint8(92), + 2011: uint8(123), + 2012: uint8(92), + 2013: uint8(123), + 2014: uint8(92), + 2015: uint8(45), + 2016: uint8(43), + 2017: uint8(43), + 2018: uint8(121), + 2019: uint8(20), + 2020: uint8(92), + 2021: uint8(123), + 2022: uint8(92), + 2023: uint8(45), + 2024: uint8(121), + 2025: uint8(42), + 2026: uint8(92), + 2027: uint8(39), + 2028: uint8(92), + 2029: uint8(123), + 2030: uint8(92), + 2031: uint8(123), + 2032: uint8(92), + 2033: uint8(123), + 2034: uint8(164), + 2036: uint8(10), + 2037: uint8(180), + 2038: uint8(92), + 2039: uint8(123), + 2040: uint8(92), + 2041: uint8(123), + 2042: uint8(79), + 2043: uint8(3), + 2044: uint8(42), + 2045: uint8(43), + 2046: uint8(43), + 2047: uint8(43), + 2048: uint8(43), + 2049: uint8(43), + 2050: uint8(43), + 2051: uint8(43), + 2052: uint8(43), + 2053: uint8(43), + 2054: uint8(43), + 2055: uint8(43), + 2056: uint8(43), + 2057: uint8(43), + 2058: uint8(43), + 2059: uint8(43), + 2060: uint8(43), + 2061: uint8(43), + 2062: uint8(43), + 2063: uint8(1), + 2091: uint8(72), + 2101: uint8(42), + 2102: uint8(43), + 2103: uint8(43), + 2104: uint8(43), + 2105: uint8(43), + 2106: uint8(43), + 2107: uint8(43), + 2108: uint8(43), + 2109: uint8(43), + 2110: uint8(43), + 2111: uint8(43), + 2112: uint8(43), + 2113: uint8(43), + 2114: uint8(43), + 2115: uint8(43), + 2116: uint8(43), + 2117: uint8(43), + 2118: uint8(43), + 2119: uint8(43), + 2120: uint8(43), + 2121: uint8(43), + 2122: uint8(43), + 2123: uint8(43), + 2124: uint8(43), + 2125: uint8(43), + 2126: uint8(43), + 2127: uint8(43), + 2161: uint8(43), + 2162: uint8(43), + 2163: uint8(43), + 2164: uint8(43), + 2165: uint8(43), + 2166: uint8(43), + 2167: uint8(43), + 2168: uint8(43), + 2169: uint8(7), + 2171: uint8(72), + 2172: uint8(86), + 2173: uint8(86), + 2174: uint8(86), + 2175: uint8(86), + 2176: uint8(86), + 2177: uint8(86), + 2178: uint8(86), + 2179: uint8(86), + 2180: uint8(2), + 2236: uint8(43), + 2237: uint8(43), + 2238: uint8(43), + 2239: uint8(43), + 2240: uint8(43), + 2241: uint8(43), + 2242: uint8(43), + 2243: uint8(43), + 2244: uint8(43), + 2245: uint8(43), + 2246: uint8(43), + 2247: uint8(43), + 2248: uint8(43), + 2249: uint8(85), + 2250: uint8(86), + 2251: uint8(86), + 2252: uint8(86), + 2253: uint8(86), + 2254: uint8(86), + 2255: uint8(86), + 2256: uint8(86), + 2257: uint8(86), + 2258: uint8(86), + 2259: uint8(86), + 2260: uint8(86), + 2261: uint8(86), + 2262: uint8(14), + 2294: uint8(36), + 2295: uint8(43), + 2296: uint8(43), + 2297: uint8(43), + 2298: uint8(43), + 2299: uint8(43), + 2300: uint8(43), + 2301: uint8(43), + 2302: uint8(43), + 2303: uint8(43), + 2304: uint8(43), + 2305: uint8(43), + 2306: uint8(7), + 2308: uint8(86), + 2309: uint8(86), + 2310: uint8(86), + 2311: uint8(86), + 2312: uint8(86), + 2313: uint8(86), + 2314: uint8(86), + 2315: uint8(86), + 2316: uint8(86), + 2317: uint8(86), + 2318: uint8(86), + 2319: uint8(86), + 2364: uint8(36), + 2365: uint8(43), + 2366: uint8(43), + 2367: uint8(43), + 2368: uint8(43), + 2369: uint8(43), + 2370: uint8(43), + 2371: uint8(43), + 2372: uint8(43), + 2373: uint8(43), + 2374: uint8(43), + 2375: uint8(43), + 2376: uint8(43), + 2377: uint8(43), + 2378: uint8(43), + 2379: uint8(43), + 2380: uint8(43), + 2381: uint8(7), + 2386: uint8(86), + 2387: uint8(86), + 2388: uint8(86), + 2389: uint8(86), + 2390: uint8(86), + 2391: uint8(86), + 2392: uint8(86), + 2393: uint8(86), + 2394: uint8(86), + 2395: uint8(86), + 2396: uint8(86), + 2397: uint8(86), + 2398: uint8(86), + 2399: uint8(86), + 2400: uint8(86), + 2401: uint8(86), + 2402: uint8(86), + 2461: uint8(42), + 2462: uint8(43), + 2463: uint8(43), + 2464: uint8(43), + 2465: uint8(43), + 2466: uint8(43), + 2467: uint8(43), + 2468: uint8(43), + 2469: uint8(43), + 2470: uint8(43), + 2471: uint8(43), + 2472: uint8(86), + 2473: uint8(86), + 2474: uint8(86), + 2475: uint8(86), + 2476: uint8(86), + 2477: uint8(86), + 2478: uint8(86), + 2479: uint8(86), + 2480: uint8(86), + 2481: uint8(86), + 2482: uint8(14), + 2515: uint8(42), + 2516: uint8(43), + 2517: uint8(43), + 2518: uint8(43), + 2519: uint8(43), + 2520: uint8(43), + 2521: uint8(43), + 2522: uint8(43), + 2523: uint8(43), + 2524: uint8(43), + 2525: uint8(43), + 2526: uint8(86), + 2527: uint8(86), + 2528: uint8(86), + 2529: uint8(86), + 2530: uint8(86), + 2531: uint8(86), + 2532: uint8(86), + 2533: uint8(86), + 2534: uint8(86), + 2535: uint8(86), + 2536: uint8(14), + 2580: uint8(43), + 2581: uint8(43), + 2582: uint8(43), + 2583: uint8(43), + 2584: uint8(43), + 2585: uint8(43), + 2586: uint8(43), + 2587: uint8(43), + 2588: uint8(43), + 2589: uint8(43), + 2590: uint8(43), + 2591: uint8(85), + 2592: uint8(86), + 2593: uint8(86), + 2594: uint8(86), + 2595: uint8(86), + 2596: uint8(86), + 2597: uint8(86), + 2598: uint8(86), + 2599: uint8(86), + 2600: uint8(86), + 2601: uint8(86), + 2602: uint8(14), +} +var _rules = [240]int32{ + 1: int32(0x2001), + 2: -int32(0x2000), + 3: int32(0x1dbf00), + 4: int32(0x2e700), + 5: int32(0x7900), + 6: int32(0x2402), + 7: int32(0x101), + 8: -int32(0x100), + 10: int32(0x201), + 11: -int32(0x200), + 12: -int32(0xc6ff), + 13: -int32(0xe800), + 14: -int32(0x78ff), + 15: -int32(0x12c00), + 16: int32(0xc300), + 17: int32(0xd201), + 18: int32(0xce01), + 19: int32(0xcd01), + 20: int32(0x4f01), + 21: int32(0xca01), + 22: int32(0xcb01), + 23: int32(0xcf01), + 24: int32(0x6100), + 25: int32(0xd301), + 26: int32(0xd101), + 27: int32(0xa300), + 28: int32(0xd501), + 29: int32(0x8200), + 30: int32(0xd601), + 31: int32(0xda01), + 32: int32(0xd901), + 33: int32(0xdb01), + 34: int32(0x3800), + 35: int32(0x3), + 36: -int32(0x4f00), + 37: -int32(0x60ff), + 38: -int32(0x37ff), + 39: int32(0x242802), + 41: int32(0x101), + 42: -int32(0x100), + 43: -int32(0xcd00), + 44: -int32(0xda00), + 45: -int32(0x81ff), + 46: int32(0x2a2b01), + 47: -int32(0xa2ff), + 48: int32(0x2a2801), + 49: int32(0x2a3f00), + 50: -int32(0xc2ff), + 51: int32(0x4501), + 52: int32(0x4701), + 53: int32(0x2a1f00), + 54: int32(0x2a1c00), + 55: int32(0x2a1e00), + 56: -int32(0xd200), + 57: -int32(0xce00), + 58: -int32(0xca00), + 59: -int32(0xcb00), + 60: int32(0xa54f00), + 61: int32(0xa54b00), + 62: -int32(0xcf00), + 63: int32(0xa52800), + 64: int32(0xa54400), + 65: -int32(0xd100), + 66: -int32(0xd300), + 67: int32(0x29f700), + 68: int32(0xa54100), + 69: int32(0x29fd00), + 70: -int32(0xd500), + 71: -int32(0xd600), + 72: int32(0x29e700), + 73: int32(0xa54300), + 74: int32(0xa52a00), + 75: -int32(0x4500), + 76: -int32(0xd900), + 77: -int32(0x4700), + 78: -int32(0xdb00), + 79: int32(0xa51500), + 80: int32(0xa51200), + 81: int32(0x4c2402), + 83: int32(0x2001), + 84: -int32(0x2000), + 85: int32(0x101), + 86: -int32(0x100), + 87: int32(0x5400), + 88: int32(0x7401), + 89: int32(0x2601), + 90: int32(0x2501), + 91: int32(0x4001), + 92: int32(0x3f01), + 93: -int32(0x2600), + 94: -int32(0x2500), + 95: -int32(0x1f00), + 96: -int32(0x4000), + 97: -int32(0x3f00), + 98: int32(0x801), + 99: -int32(0x3e00), + 100: -int32(0x3900), + 101: -int32(0x2f00), + 102: -int32(0x3600), + 103: -int32(0x800), + 104: -int32(0x5600), + 105: -int32(0x5000), + 106: int32(0x700), + 107: -int32(0x7400), + 108: -int32(0x3bff), + 109: -int32(0x6000), + 110: -int32(0x6ff), + 111: int32(0x701a02), + 112: int32(0x101), + 113: -int32(0x100), + 114: int32(0x2001), + 115: -int32(0x2000), + 116: int32(0x5001), + 117: int32(0xf01), + 118: -int32(0xf00), + 120: int32(0x3001), + 121: -int32(0x3000), + 122: int32(0x101), + 123: -int32(0x100), + 125: int32(0xbc000), + 126: int32(0x1c6001), + 128: int32(0x97d001), + 129: int32(0x801), + 130: -int32(0x800), + 131: int32(0x8a0502), + 133: -int32(0xbbfff), + 134: -int32(0x186200), + 135: int32(0x89c200), + 136: -int32(0x182500), + 137: -int32(0x186e00), + 138: -int32(0x186d00), + 139: -int32(0x186400), + 140: -int32(0x186300), + 141: -int32(0x185c00), + 143: int32(0x8a3800), + 144: int32(0x8a0400), + 145: int32(0xee600), + 146: int32(0x101), + 147: -int32(0x100), + 149: -int32(0x3b00), + 150: -int32(0x1dbeff), + 151: int32(0x8f1d02), + 152: int32(0x800), + 153: -int32(0x7ff), + 155: int32(0x5600), + 156: -int32(0x55ff), + 157: int32(0x4a00), + 158: int32(0x6400), + 159: int32(0x8000), + 160: int32(0x7000), + 161: int32(0x7e00), + 162: int32(0x900), + 163: -int32(0x49ff), + 164: -int32(0x8ff), + 165: -int32(0x1c2500), + 166: -int32(0x63ff), + 167: -int32(0x6fff), + 168: -int32(0x7fff), + 169: -int32(0x7dff), + 170: int32(0xac0502), + 172: int32(0x1001), + 173: -int32(0x1000), + 174: int32(0x1c01), + 175: int32(0x101), + 176: -int32(0x1d5cff), + 177: -int32(0x20beff), + 178: -int32(0x2045ff), + 179: -int32(0x1c00), + 180: int32(0xb10b02), + 181: int32(0x101), + 182: -int32(0x100), + 183: int32(0x3001), + 184: -int32(0x3000), + 186: -int32(0x29f6ff), + 187: -int32(0xee5ff), + 188: -int32(0x29e6ff), + 189: -int32(0x2a2b00), + 190: -int32(0x2a2800), + 191: -int32(0x2a1bff), + 192: -int32(0x29fcff), + 193: -int32(0x2a1eff), + 194: -int32(0x2a1dff), + 195: -int32(0x2a3eff), + 197: -int32(0x1c6000), + 199: int32(0x101), + 200: -int32(0x100), + 201: int32(0xbc0c02), + 203: int32(0x101), + 204: -int32(0x100), + 205: -int32(0xa543ff), + 206: int32(0x3a001), + 207: -int32(0x8a03ff), + 208: -int32(0xa527ff), + 209: int32(0x3000), + 210: -int32(0xa54eff), + 211: -int32(0xa54aff), + 212: -int32(0xa540ff), + 213: -int32(0xa511ff), + 214: -int32(0xa529ff), + 215: -int32(0xa514ff), + 216: -int32(0x2fff), + 217: -int32(0xa542ff), + 218: -int32(0x8a37ff), + 220: -int32(0x97d000), + 221: -int32(0x3a000), + 223: int32(0x2001), + 224: -int32(0x2000), + 226: int32(0x2801), + 227: -int32(0x2800), + 229: int32(0x4001), + 230: -int32(0x4000), + 232: int32(0x2001), + 233: -int32(0x2000), + 235: int32(0x2001), + 236: -int32(0x2000), + 238: int32(0x2201), + 239: -int32(0x2200), +} +var _rulebases = [512]uint8{ + 1: uint8(6), + 2: uint8(39), + 3: uint8(81), + 4: uint8(111), + 5: uint8(119), + 16: uint8(124), + 19: uint8(127), + 28: uint8(131), + 29: uint8(142), + 30: uint8(146), + 31: uint8(151), + 33: uint8(170), + 44: uint8(180), + 45: uint8(196), + 166: uint8(198), + 167: uint8(201), + 171: uint8(219), + 255: uint8(222), + 260: uint8(225), + 268: uint8(228), + 280: uint8(231), + 366: uint8(234), + 489: uint8(237), +} +var _exceptions = [200][2]uint8{ + 0: { + 0: uint8(48), + 1: uint8(12), + }, + 1: { + 0: uint8(49), + 1: uint8(13), + }, + 2: { + 0: uint8(120), + 1: uint8(14), + }, + 3: { + 0: uint8(127), + 1: uint8(15), + }, + 4: { + 0: uint8(128), + 1: uint8(16), + }, + 5: { + 0: uint8(129), + 1: uint8(17), + }, + 6: { + 0: uint8(134), + 1: uint8(18), + }, + 7: { + 0: uint8(137), + 1: uint8(19), + }, + 8: { + 0: uint8(138), + 1: uint8(19), + }, + 9: { + 0: uint8(142), + 1: uint8(20), + }, + 10: { + 0: uint8(143), + 1: uint8(21), + }, + 11: { + 0: uint8(144), + 1: uint8(22), + }, + 12: { + 0: uint8(147), + 1: uint8(19), + }, + 13: { + 0: uint8(148), + 1: uint8(23), + }, + 14: { + 0: uint8(149), + 1: uint8(24), + }, + 15: { + 0: uint8(150), + 1: uint8(25), + }, + 16: { + 0: uint8(151), + 1: uint8(26), + }, + 17: { + 0: uint8(154), + 1: uint8(27), + }, + 18: { + 0: uint8(156), + 1: uint8(25), + }, + 19: { + 0: uint8(157), + 1: uint8(28), + }, + 20: { + 0: uint8(158), + 1: uint8(29), + }, + 21: { + 0: uint8(159), + 1: uint8(30), + }, + 22: { + 0: uint8(166), + 1: uint8(31), + }, + 23: { + 0: uint8(169), + 1: uint8(31), + }, + 24: { + 0: uint8(174), + 1: uint8(31), + }, + 25: { + 0: uint8(177), + 1: uint8(32), + }, + 26: { + 0: uint8(178), + 1: uint8(32), + }, + 27: { + 0: uint8(183), + 1: uint8(33), + }, + 28: { + 0: uint8(191), + 1: uint8(34), + }, + 29: { + 0: uint8(197), + 1: uint8(35), + }, + 30: { + 0: uint8(200), + 1: uint8(35), + }, + 31: { + 0: uint8(203), + 1: uint8(35), + }, + 32: { + 0: uint8(221), + 1: uint8(36), + }, + 33: { + 0: uint8(242), + 1: uint8(35), + }, + 34: { + 0: uint8(246), + 1: uint8(37), + }, + 35: { + 0: uint8(247), + 1: uint8(38), + }, + 36: { + 0: uint8(32), + 1: uint8(45), + }, + 37: { + 0: uint8(58), + 1: uint8(46), + }, + 38: { + 0: uint8(61), + 1: uint8(47), + }, + 39: { + 0: uint8(62), + 1: uint8(48), + }, + 40: { + 0: uint8(63), + 1: uint8(49), + }, + 41: { + 0: uint8(64), + 1: uint8(49), + }, + 42: { + 0: uint8(67), + 1: uint8(50), + }, + 43: { + 0: uint8(68), + 1: uint8(51), + }, + 44: { + 0: uint8(69), + 1: uint8(52), + }, + 45: { + 0: uint8(80), + 1: uint8(53), + }, + 46: { + 0: uint8(81), + 1: uint8(54), + }, + 47: { + 0: uint8(82), + 1: uint8(55), + }, + 48: { + 0: uint8(83), + 1: uint8(56), + }, + 49: { + 0: uint8(84), + 1: uint8(57), + }, + 50: { + 0: uint8(89), + 1: uint8(58), + }, + 51: { + 0: uint8(91), + 1: uint8(59), + }, + 52: { + 0: uint8(92), + 1: uint8(60), + }, + 53: { + 0: uint8(97), + 1: uint8(61), + }, + 54: { + 0: uint8(99), + 1: uint8(62), + }, + 55: { + 0: uint8(101), + 1: uint8(63), + }, + 56: { + 0: uint8(102), + 1: uint8(64), + }, + 57: { + 0: uint8(104), + 1: uint8(65), + }, + 58: { + 0: uint8(105), + 1: uint8(66), + }, + 59: { + 0: uint8(106), + 1: uint8(64), + }, + 60: { + 0: uint8(107), + 1: uint8(67), + }, + 61: { + 0: uint8(108), + 1: uint8(68), + }, + 62: { + 0: uint8(111), + 1: uint8(66), + }, + 63: { + 0: uint8(113), + 1: uint8(69), + }, + 64: { + 0: uint8(114), + 1: uint8(70), + }, + 65: { + 0: uint8(117), + 1: uint8(71), + }, + 66: { + 0: uint8(125), + 1: uint8(72), + }, + 67: { + 0: uint8(130), + 1: uint8(73), + }, + 68: { + 0: uint8(135), + 1: uint8(74), + }, + 69: { + 0: uint8(137), + 1: uint8(75), + }, + 70: { + 0: uint8(138), + 1: uint8(76), + }, + 71: { + 0: uint8(139), + 1: uint8(76), + }, + 72: { + 0: uint8(140), + 1: uint8(77), + }, + 73: { + 0: uint8(146), + 1: uint8(78), + }, + 74: { + 0: uint8(157), + 1: uint8(79), + }, + 75: { + 0: uint8(158), + 1: uint8(80), + }, + 76: { + 0: uint8(69), + 1: uint8(87), + }, + 77: { + 0: uint8(123), + 1: uint8(29), + }, + 78: { + 0: uint8(124), + 1: uint8(29), + }, + 79: { + 0: uint8(125), + 1: uint8(29), + }, + 80: { + 0: uint8(127), + 1: uint8(88), + }, + 81: { + 0: uint8(134), + 1: uint8(89), + }, + 82: { + 0: uint8(136), + 1: uint8(90), + }, + 83: { + 0: uint8(137), + 1: uint8(90), + }, + 84: { + 0: uint8(138), + 1: uint8(90), + }, + 85: { + 0: uint8(140), + 1: uint8(91), + }, + 86: { + 0: uint8(142), + 1: uint8(92), + }, + 87: { + 0: uint8(143), + 1: uint8(92), + }, + 88: { + 0: uint8(172), + 1: uint8(93), + }, + 89: { + 0: uint8(173), + 1: uint8(94), + }, + 90: { + 0: uint8(174), + 1: uint8(94), + }, + 91: { + 0: uint8(175), + 1: uint8(94), + }, + 92: { + 0: uint8(194), + 1: uint8(95), + }, + 93: { + 0: uint8(204), + 1: uint8(96), + }, + 94: { + 0: uint8(205), + 1: uint8(97), + }, + 95: { + 0: uint8(206), + 1: uint8(97), + }, + 96: { + 0: uint8(207), + 1: uint8(98), + }, + 97: { + 0: uint8(208), + 1: uint8(99), + }, + 98: { + 0: uint8(209), + 1: uint8(100), + }, + 99: { + 0: uint8(213), + 1: uint8(101), + }, + 100: { + 0: uint8(214), + 1: uint8(102), + }, + 101: { + 0: uint8(215), + 1: uint8(103), + }, + 102: { + 0: uint8(240), + 1: uint8(104), + }, + 103: { + 0: uint8(241), + 1: uint8(105), + }, + 104: { + 0: uint8(242), + 1: uint8(106), + }, + 105: { + 0: uint8(243), + 1: uint8(107), + }, + 106: { + 0: uint8(244), + 1: uint8(108), + }, + 107: { + 0: uint8(245), + 1: uint8(109), + }, + 108: { + 0: uint8(249), + 1: uint8(110), + }, + 109: { + 0: uint8(253), + 1: uint8(45), + }, + 110: { + 0: uint8(254), + 1: uint8(45), + }, + 111: { + 0: uint8(255), + 1: uint8(45), + }, + 112: { + 0: uint8(80), + 1: uint8(105), + }, + 113: { + 0: uint8(81), + 1: uint8(105), + }, + 114: { + 0: uint8(82), + 1: uint8(105), + }, + 115: { + 0: uint8(83), + 1: uint8(105), + }, + 116: { + 0: uint8(84), + 1: uint8(105), + }, + 117: { + 0: uint8(85), + 1: uint8(105), + }, + 118: { + 0: uint8(86), + 1: uint8(105), + }, + 119: { + 0: uint8(87), + 1: uint8(105), + }, + 120: { + 0: uint8(88), + 1: uint8(105), + }, + 121: { + 0: uint8(89), + 1: uint8(105), + }, + 122: { + 0: uint8(90), + 1: uint8(105), + }, + 123: { + 0: uint8(91), + 1: uint8(105), + }, + 124: { + 0: uint8(92), + 1: uint8(105), + }, + 125: { + 0: uint8(93), + 1: uint8(105), + }, + 126: { + 0: uint8(94), + 1: uint8(105), + }, + 127: { + 0: uint8(95), + 1: uint8(105), + }, + 128: { + 0: uint8(130), + }, + 129: { + 0: uint8(131), + }, + 130: { + 0: uint8(132), + }, + 131: { + 0: uint8(133), + }, + 132: { + 0: uint8(134), + }, + 133: { + 0: uint8(135), + }, + 134: { + 0: uint8(136), + }, + 135: { + 0: uint8(137), + }, + 136: { + 0: uint8(192), + 1: uint8(117), + }, + 137: { + 0: uint8(207), + 1: uint8(118), + }, + 138: { + 0: uint8(128), + 1: uint8(137), + }, + 139: { + 0: uint8(129), + 1: uint8(138), + }, + 140: { + 0: uint8(130), + 1: uint8(139), + }, + 141: { + 0: uint8(133), + 1: uint8(140), + }, + 142: { + 0: uint8(134), + 1: uint8(141), + }, + 143: { + 0: uint8(112), + 1: uint8(157), + }, + 144: { + 0: uint8(113), + 1: uint8(157), + }, + 145: { + 0: uint8(118), + 1: uint8(158), + }, + 146: { + 0: uint8(119), + 1: uint8(158), + }, + 147: { + 0: uint8(120), + 1: uint8(159), + }, + 148: { + 0: uint8(121), + 1: uint8(159), + }, + 149: { + 0: uint8(122), + 1: uint8(160), + }, + 150: { + 0: uint8(123), + 1: uint8(160), + }, + 151: { + 0: uint8(124), + 1: uint8(161), + }, + 152: { + 0: uint8(125), + 1: uint8(161), + }, + 153: { + 0: uint8(179), + 1: uint8(162), + }, + 154: { + 0: uint8(186), + 1: uint8(163), + }, + 155: { + 0: uint8(187), + 1: uint8(163), + }, + 156: { + 0: uint8(188), + 1: uint8(164), + }, + 157: { + 0: uint8(190), + 1: uint8(165), + }, + 158: { + 0: uint8(195), + 1: uint8(162), + }, + 159: { + 0: uint8(204), + 1: uint8(164), + }, + 160: { + 0: uint8(218), + 1: uint8(166), + }, + 161: { + 0: uint8(219), + 1: uint8(166), + }, + 162: { + 0: uint8(229), + 1: uint8(106), + }, + 163: { + 0: uint8(234), + 1: uint8(167), + }, + 164: { + 0: uint8(235), + 1: uint8(167), + }, + 165: { + 0: uint8(236), + 1: uint8(110), + }, + 166: { + 0: uint8(243), + 1: uint8(162), + }, + 167: { + 0: uint8(248), + 1: uint8(168), + }, + 168: { + 0: uint8(249), + 1: uint8(168), + }, + 169: { + 0: uint8(250), + 1: uint8(169), + }, + 170: { + 0: uint8(251), + 1: uint8(169), + }, + 171: { + 0: uint8(252), + 1: uint8(164), + }, + 172: { + 0: uint8(38), + 1: uint8(176), + }, + 173: { + 0: uint8(42), + 1: uint8(177), + }, + 174: { + 0: uint8(43), + 1: uint8(178), + }, + 175: { + 0: uint8(78), + 1: uint8(179), + }, + 176: { + 0: uint8(132), + 1: uint8(8), + }, + 177: { + 0: uint8(98), + 1: uint8(186), + }, + 178: { + 0: uint8(99), + 1: uint8(187), + }, + 179: { + 0: uint8(100), + 1: uint8(188), + }, + 180: { + 0: uint8(101), + 1: uint8(189), + }, + 181: { + 0: uint8(102), + 1: uint8(190), + }, + 182: { + 0: uint8(109), + 1: uint8(191), + }, + 183: { + 0: uint8(110), + 1: uint8(192), + }, + 184: { + 0: uint8(111), + 1: uint8(193), + }, + 185: { + 0: uint8(112), + 1: uint8(194), + }, + 186: { + 0: uint8(126), + 1: uint8(195), + }, + 187: { + 0: uint8(127), + 1: uint8(195), + }, + 188: { + 0: uint8(125), + 1: uint8(207), + }, + 189: { + 0: uint8(141), + 1: uint8(208), + }, + 190: { + 0: uint8(148), + 1: uint8(209), + }, + 191: { + 0: uint8(171), + 1: uint8(210), + }, + 192: { + 0: uint8(172), + 1: uint8(211), + }, + 193: { + 0: uint8(173), + 1: uint8(212), + }, + 194: { + 0: uint8(176), + 1: uint8(213), + }, + 195: { + 0: uint8(177), + 1: uint8(214), + }, + 196: { + 0: uint8(178), + 1: uint8(215), + }, + 197: { + 0: uint8(196), + 1: uint8(216), + }, + 198: { + 0: uint8(197), + 1: uint8(217), + }, + 199: { + 0: uint8(198), + 1: uint8(218), + }, +} + +func _casemap(tls *TLS, c uint32, dir int32) (r1 int32) { + var b, rt, try, v, x, xb, xn, y uint32 + var c0, r, rd, v1 int32 + _, _, _, _, _, _, _, _, _, _, _, _ = b, c0, r, rd, rt, try, v, x, xb, xn, y, v1 + c0 = Int32FromUint32(c) + if c >= uint32(0x20000) { + return Int32FromUint32(c) + } + b = c >> int32(8) + c = c & uint32(255) + x = c / uint32(3) + y = c % uint32(3) + /* lookup entry in two-level base-6 table */ + v = uint32(_tab1[Uint32FromInt32(Int32FromUint8(_tab1[b])*int32(86))+x]) + v = v * Uint32FromInt32(_mt[y]) >> int32(11) % uint32(6) + /* use the bit vector out of the tables as an index into + * a block-specific set of rules and decode the rule into + * a type and a case-mapping delta. */ + r = _rules[uint32(_rulebases[b])+v] + rt = Uint32FromInt32(r & int32(255)) + rd = r >> int32(8) + /* rules 0/1 are simple lower/upper case with a delta. + * apply according to desired mapping direction. */ + if rt < uint32(2) { + return Int32FromUint32(Uint32FromInt32(c0) + Uint32FromInt32(rd)&-(rt^Uint32FromInt32(dir))) + } + /* binary search. endpoints of the binary search for + * this block are stored in the rule delta field. */ + xn = Uint32FromInt32(rd & int32(0xff)) + xb = Uint32FromInt32(rd) >> int32(8) + for xn != 0 { + try = uint32(**(**uint8)(__ccgo_up(uintptr(unsafe.Pointer(&_exceptions)) + uintptr(xb+xn/uint32(2))*2))) + if try == c { + r = _rules[**(**uint8)(__ccgo_up(uintptr(unsafe.Pointer(&_exceptions)) + uintptr(xb+xn/uint32(2))*2 + 1))] + rt = Uint32FromInt32(r & int32(255)) + rd = r >> int32(8) + if rt < uint32(2) { + return Int32FromUint32(Uint32FromInt32(c0) + Uint32FromInt32(rd)&-(rt^Uint32FromInt32(dir))) + } + /* Hard-coded for the four exceptional titlecase */ + if dir != 0 { + v1 = -int32(1) + } else { + v1 = int32(1) + } + return c0 + v1 + } else { + if try > c { + xn = xn / uint32(2) + } else { + xb = xb + xn/uint32(2) + xn = xn - xn/uint32(2) + } + } + } + return c0 +} + +var _mt = [3]int32{ + 0: int32(2048), + 1: int32(342), + 2: int32(57), +} + +func Xtowlower(tls *TLS, wc Twint_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Uint32FromInt32(_casemap(tls, wc, 0)) +} + +func Xtowupper(tls *TLS, wc Twint_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Uint32FromInt32(_casemap(tls, wc, int32(1))) +} + +func X__towupper_l(tls *TLS, c Twint_t, l Tlocale_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xtowupper(tls, c) +} + +func X__towlower_l(tls *TLS, c Twint_t, l Tlocale_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xtowlower(tls, c) +} + +func Xtowlower_l(tls *TLS, c Twint_t, l Tlocale_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__towlower_l(tls, c, l) +} + +func Xtowupper_l(tls *TLS, c Twint_t, l Tlocale_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__towupper_l(tls, c, l) +} + +func Xwcswidth(tls *TLS, wcs uintptr, n Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wcs=%v n=%v, (%v:)", tls, wcs, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var k, l, v3 int32 + var v2 Tsize_t + var v4 bool + _, _, _, _, _ = k, l, v2, v3, v4 + l = 0 + k = 0 + for { + v2 = n + n = n - 1 + if v4 = v2 != 0 && **(**Twchar_t)(__ccgo_up(wcs)) != 0; v4 { + v3 = Xwcwidth(tls, **(**Twchar_t)(__ccgo_up(wcs))) + k = v3 + } + if !(v4 && v3 >= 0) { + break + } + goto _1 + _1: + ; + l = l + k + wcs += 4 + } + if k < 0 { + v3 = k + } else { + v3 = l + } + return v3 +} + +func Xwctrans(tls *TLS, class uintptr) (r Twctrans_t) { + if __ccgo_strace { + trc("tls=%v class=%v, (%v:)", tls, class, origin(2)) + defer func() { trc("-> %v", r) }() + } + if !(Xstrcmp(tls, class, __ccgo_ts+196) != 0) { + return UintptrFromInt32(1) + } + if !(Xstrcmp(tls, class, __ccgo_ts+204) != 0) { + return UintptrFromInt32(2) + } + return uintptr(0) +} + +func Xtowctrans(tls *TLS, wc Twint_t, trans Twctrans_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v wc=%v trans=%v, (%v:)", tls, wc, trans, origin(2)) + defer func() { trc("-> %v", r) }() + } + if trans == UintptrFromInt32(1) { + return Xtowupper(tls, wc) + } + if trans == UintptrFromInt32(2) { + return Xtowlower(tls, wc) + } + return wc +} + +func X__wctrans_l(tls *TLS, s uintptr, l Tlocale_t) (r Twctrans_t) { + if __ccgo_strace { + trc("tls=%v s=%v l=%v, (%v:)", tls, s, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwctrans(tls, s) +} + +func X__towctrans_l(tls *TLS, c Twint_t, t Twctrans_t, l Tlocale_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v t=%v l=%v, (%v:)", tls, c, t, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xtowctrans(tls, c, t) +} + +func Xtowctrans_l(tls *TLS, c Twint_t, t Twctrans_t, l Tlocale_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v t=%v l=%v, (%v:)", tls, c, t, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__towctrans_l(tls, c, t, l) +} + +func Xwctrans_l(tls *TLS, s uintptr, l Tlocale_t) (r Twctrans_t) { + if __ccgo_strace { + trc("tls=%v s=%v l=%v, (%v:)", tls, s, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__wctrans_l(tls, s, l) +} + +var _table5 = [2784]uint8{ + 0: uint8(16), + 1: uint8(16), + 2: uint8(16), + 3: uint8(18), + 4: uint8(19), + 5: uint8(20), + 6: uint8(21), + 7: uint8(22), + 8: uint8(23), + 9: uint8(24), + 10: uint8(25), + 11: uint8(26), + 12: uint8(27), + 13: uint8(28), + 14: uint8(29), + 15: uint8(30), + 16: uint8(31), + 17: uint8(32), + 18: uint8(16), + 19: uint8(33), + 20: uint8(16), + 21: uint8(16), + 22: uint8(16), + 23: uint8(34), + 24: uint8(35), + 25: uint8(36), + 26: uint8(37), + 27: uint8(38), + 28: uint8(39), + 29: uint8(40), + 30: uint8(16), + 31: uint8(16), + 32: uint8(41), + 33: uint8(16), + 34: uint8(16), + 35: uint8(16), + 36: uint8(16), + 37: uint8(16), + 38: uint8(16), + 39: uint8(16), + 40: uint8(16), + 41: uint8(16), + 42: uint8(16), + 43: uint8(16), + 44: uint8(42), + 45: uint8(43), + 46: uint8(16), + 47: uint8(16), + 48: uint8(44), + 49: uint8(16), + 50: uint8(16), + 51: uint8(16), + 52: uint8(16), + 53: uint8(16), + 54: uint8(16), + 55: uint8(16), + 56: uint8(16), + 57: uint8(16), + 58: uint8(16), + 59: uint8(16), + 60: uint8(16), + 61: uint8(16), + 62: uint8(16), + 63: uint8(16), + 64: uint8(16), + 65: uint8(16), + 66: uint8(16), + 67: uint8(16), + 68: uint8(16), + 69: uint8(16), + 70: uint8(16), + 71: uint8(16), + 72: uint8(16), + 73: uint8(16), + 74: uint8(16), + 75: uint8(16), + 76: uint8(16), + 77: uint8(16), + 78: uint8(16), + 79: uint8(16), + 80: uint8(16), + 81: uint8(16), + 82: uint8(16), + 83: uint8(16), + 84: uint8(16), + 85: uint8(16), + 86: uint8(16), + 87: uint8(16), + 88: uint8(16), + 89: uint8(16), + 90: uint8(16), + 91: uint8(16), + 92: uint8(16), + 93: uint8(16), + 94: uint8(16), + 95: uint8(16), + 96: uint8(16), + 97: uint8(16), + 98: uint8(16), + 99: uint8(16), + 100: uint8(16), + 101: uint8(16), + 102: uint8(16), + 103: uint8(16), + 104: uint8(16), + 105: uint8(16), + 106: uint8(16), + 107: uint8(16), + 108: uint8(16), + 109: uint8(16), + 110: uint8(16), + 111: uint8(16), + 112: uint8(16), + 113: uint8(16), + 114: uint8(16), + 115: uint8(16), + 116: uint8(16), + 117: uint8(16), + 118: uint8(16), + 119: uint8(16), + 120: uint8(16), + 121: uint8(16), + 122: uint8(16), + 123: uint8(16), + 124: uint8(16), + 125: uint8(16), + 126: uint8(16), + 127: uint8(16), + 128: uint8(16), + 129: uint8(16), + 130: uint8(16), + 131: uint8(16), + 132: uint8(16), + 133: uint8(16), + 134: uint8(16), + 135: uint8(16), + 136: uint8(16), + 137: uint8(16), + 138: uint8(16), + 139: uint8(16), + 140: uint8(16), + 141: uint8(16), + 142: uint8(16), + 143: uint8(16), + 144: uint8(16), + 145: uint8(16), + 146: uint8(16), + 147: uint8(16), + 148: uint8(16), + 149: uint8(16), + 150: uint8(16), + 151: uint8(16), + 152: uint8(16), + 153: uint8(16), + 154: uint8(16), + 155: uint8(16), + 156: uint8(16), + 157: uint8(16), + 158: uint8(16), + 159: uint8(16), + 160: uint8(16), + 161: uint8(16), + 162: uint8(16), + 163: uint8(16), + 164: uint8(16), + 165: uint8(16), + 166: uint8(45), + 167: uint8(16), + 168: uint8(46), + 169: uint8(47), + 170: uint8(48), + 171: uint8(49), + 172: uint8(16), + 173: uint8(16), + 174: uint8(16), + 175: uint8(16), + 176: uint8(16), + 177: uint8(16), + 178: uint8(16), + 179: uint8(16), + 180: uint8(16), + 181: uint8(16), + 182: uint8(16), + 183: uint8(16), + 184: uint8(16), + 185: uint8(16), + 186: uint8(16), + 187: uint8(16), + 188: uint8(16), + 189: uint8(16), + 190: uint8(16), + 191: uint8(16), + 192: uint8(16), + 193: uint8(16), + 194: uint8(16), + 195: uint8(16), + 196: uint8(16), + 197: uint8(16), + 198: uint8(16), + 199: uint8(16), + 200: uint8(16), + 201: uint8(16), + 202: uint8(16), + 203: uint8(16), + 204: uint8(16), + 205: uint8(16), + 206: uint8(16), + 207: uint8(16), + 208: uint8(16), + 209: uint8(16), + 210: uint8(16), + 211: uint8(16), + 212: uint8(16), + 213: uint8(16), + 214: uint8(16), + 215: uint8(50), + 216: uint8(16), + 217: uint8(16), + 218: uint8(16), + 219: uint8(16), + 220: uint8(16), + 221: uint8(16), + 222: uint8(16), + 223: uint8(16), + 224: uint8(16), + 225: uint8(16), + 226: uint8(16), + 227: uint8(16), + 228: uint8(16), + 229: uint8(16), + 230: uint8(16), + 231: uint8(16), + 232: uint8(16), + 233: uint8(16), + 234: uint8(16), + 235: uint8(16), + 236: uint8(16), + 237: uint8(16), + 238: uint8(16), + 239: uint8(16), + 240: uint8(16), + 241: uint8(16), + 242: uint8(16), + 243: uint8(16), + 244: uint8(16), + 245: uint8(16), + 246: uint8(16), + 247: uint8(16), + 248: uint8(16), + 249: uint8(16), + 250: uint8(16), + 251: uint8(51), + 252: uint8(16), + 253: uint8(16), + 254: uint8(52), + 255: uint8(53), + 256: uint8(16), + 257: uint8(54), + 258: uint8(55), + 259: uint8(56), + 260: uint8(16), + 261: uint8(16), + 262: uint8(16), + 263: uint8(16), + 264: uint8(16), + 265: uint8(16), + 266: uint8(57), + 267: uint8(16), + 268: uint8(16), + 269: uint8(58), + 270: uint8(16), + 271: uint8(59), + 272: uint8(60), + 273: uint8(61), + 274: uint8(62), + 275: uint8(63), + 276: uint8(64), + 277: uint8(65), + 278: uint8(66), + 279: uint8(67), + 280: uint8(68), + 281: uint8(69), + 282: uint8(70), + 283: uint8(16), + 284: uint8(71), + 285: uint8(72), + 286: uint8(73), + 287: uint8(16), + 288: uint8(16), + 289: uint8(16), + 290: uint8(16), + 291: uint8(16), + 292: uint8(16), + 293: uint8(16), + 294: uint8(16), + 295: uint8(16), + 296: uint8(16), + 297: uint8(16), + 298: uint8(16), + 299: uint8(16), + 300: uint8(16), + 301: uint8(16), + 302: uint8(16), + 303: uint8(16), + 304: uint8(16), + 305: uint8(16), + 306: uint8(16), + 307: uint8(16), + 308: uint8(74), + 309: uint8(16), + 310: uint8(16), + 311: uint8(16), + 312: uint8(16), + 313: uint8(16), + 314: uint8(16), + 315: uint8(16), + 316: uint8(16), + 317: uint8(16), + 318: uint8(16), + 319: uint8(16), + 320: uint8(16), + 321: uint8(16), + 322: uint8(16), + 323: uint8(16), + 324: uint8(16), + 325: uint8(16), + 326: uint8(16), + 327: uint8(16), + 328: uint8(16), + 329: uint8(16), + 330: uint8(16), + 331: uint8(16), + 332: uint8(16), + 333: uint8(16), + 334: uint8(16), + 335: uint8(16), + 336: uint8(16), + 337: uint8(16), + 338: uint8(16), + 339: uint8(16), + 340: uint8(16), + 341: uint8(16), + 342: uint8(16), + 343: uint8(16), + 344: uint8(16), + 345: uint8(16), + 346: uint8(16), + 347: uint8(16), + 348: uint8(16), + 349: uint8(16), + 350: uint8(16), + 351: uint8(16), + 352: uint8(16), + 353: uint8(16), + 354: uint8(16), + 355: uint8(16), + 356: uint8(16), + 357: uint8(16), + 358: uint8(16), + 359: uint8(16), + 360: uint8(16), + 361: uint8(16), + 362: uint8(75), + 363: uint8(76), + 364: uint8(16), + 365: uint8(16), + 366: uint8(16), + 367: uint8(77), + 368: uint8(16), + 369: uint8(16), + 370: uint8(16), + 371: uint8(16), + 372: uint8(16), + 373: uint8(16), + 374: uint8(16), + 375: uint8(16), + 376: uint8(16), + 377: uint8(16), + 378: uint8(16), + 379: uint8(16), + 380: uint8(16), + 381: uint8(16), + 382: uint8(16), + 383: uint8(16), + 384: uint8(16), + 385: uint8(16), + 386: uint8(16), + 387: uint8(16), + 388: uint8(16), + 389: uint8(16), + 390: uint8(16), + 391: uint8(16), + 392: uint8(16), + 393: uint8(16), + 394: uint8(16), + 395: uint8(16), + 396: uint8(16), + 397: uint8(16), + 398: uint8(16), + 399: uint8(16), + 400: uint8(16), + 401: uint8(16), + 402: uint8(16), + 403: uint8(16), + 404: uint8(16), + 405: uint8(16), + 406: uint8(16), + 407: uint8(16), + 408: uint8(16), + 409: uint8(16), + 410: uint8(16), + 411: uint8(16), + 412: uint8(16), + 413: uint8(16), + 414: uint8(16), + 415: uint8(16), + 416: uint8(16), + 417: uint8(16), + 418: uint8(16), + 419: uint8(16), + 420: uint8(16), + 421: uint8(16), + 422: uint8(16), + 423: uint8(16), + 424: uint8(16), + 425: uint8(16), + 426: uint8(16), + 427: uint8(16), + 428: uint8(16), + 429: uint8(16), + 430: uint8(16), + 431: uint8(16), + 432: uint8(16), + 433: uint8(16), + 434: uint8(16), + 435: uint8(16), + 436: uint8(16), + 437: uint8(16), + 438: uint8(16), + 439: uint8(16), + 440: uint8(16), + 441: uint8(16), + 442: uint8(16), + 443: uint8(16), + 444: uint8(78), + 445: uint8(16), + 446: uint8(16), + 447: uint8(16), + 448: uint8(16), + 449: uint8(16), + 450: uint8(16), + 451: uint8(16), + 452: uint8(16), + 453: uint8(16), + 454: uint8(16), + 455: uint8(16), + 456: uint8(16), + 457: uint8(16), + 458: uint8(16), + 459: uint8(16), + 460: uint8(16), + 461: uint8(16), + 462: uint8(16), + 463: uint8(16), + 464: uint8(16), + 465: uint8(79), + 466: uint8(80), + 467: uint8(16), + 468: uint8(16), + 469: uint8(16), + 470: uint8(16), + 471: uint8(16), + 472: uint8(16), + 473: uint8(16), + 474: uint8(81), + 475: uint8(16), + 476: uint8(16), + 477: uint8(16), + 478: uint8(16), + 479: uint8(16), + 480: uint8(82), + 481: uint8(83), + 482: uint8(84), + 483: uint8(16), + 484: uint8(16), + 485: uint8(16), + 486: uint8(16), + 487: uint8(16), + 488: uint8(85), + 489: uint8(86), + 490: uint8(16), + 491: uint8(16), + 492: uint8(16), + 493: uint8(16), + 494: uint8(16), + 495: uint8(16), + 496: uint8(16), + 497: uint8(16), + 498: uint8(16), + 499: uint8(16), + 500: uint8(16), + 501: uint8(16), + 502: uint8(16), + 503: uint8(16), + 504: uint8(16), + 505: uint8(16), + 506: uint8(16), + 507: uint8(16), + 508: uint8(16), + 509: uint8(16), + 510: uint8(16), + 511: uint8(16), + 544: uint8(255), + 545: uint8(255), + 546: uint8(255), + 547: uint8(255), + 548: uint8(255), + 549: uint8(255), + 550: uint8(255), + 551: uint8(255), + 552: uint8(255), + 553: uint8(255), + 554: uint8(255), + 555: uint8(255), + 556: uint8(255), + 557: uint8(255), + 558: uint8(255), + 559: uint8(255), + 560: uint8(255), + 561: uint8(255), + 562: uint8(255), + 563: uint8(255), + 564: uint8(255), + 565: uint8(255), + 566: uint8(255), + 567: uint8(255), + 568: uint8(255), + 569: uint8(255), + 570: uint8(255), + 571: uint8(255), + 572: uint8(255), + 573: uint8(255), + 574: uint8(255), + 575: uint8(255), + 576: uint8(255), + 577: uint8(255), + 578: uint8(255), + 579: uint8(255), + 580: uint8(255), + 581: uint8(255), + 582: uint8(255), + 583: uint8(255), + 584: uint8(255), + 585: uint8(255), + 586: uint8(255), + 587: uint8(255), + 588: uint8(255), + 589: uint8(255), + 624: uint8(248), + 625: uint8(3), + 658: uint8(254), + 659: uint8(255), + 660: uint8(255), + 661: uint8(255), + 662: uint8(255), + 663: uint8(191), + 664: uint8(182), + 672: uint8(63), + 674: uint8(255), + 675: uint8(23), + 681: uint8(248), + 682: uint8(255), + 683: uint8(255), + 686: uint8(1), + 698: uint8(192), + 699: uint8(191), + 700: uint8(159), + 701: uint8(61), + 705: uint8(128), + 706: uint8(2), + 710: uint8(255), + 711: uint8(255), + 712: uint8(255), + 713: uint8(7), + 724: uint8(192), + 725: uint8(255), + 726: uint8(1), + 733: uint8(248), + 734: uint8(15), + 735: uint8(32), + 738: uint8(192), + 739: uint8(251), + 740: uint8(239), + 741: uint8(62), + 747: uint8(14), + 762: uint8(248), + 763: uint8(255), + 764: uint8(255), + 765: uint8(255), + 766: uint8(255), + 767: uint8(255), + 768: uint8(7), + 775: uint8(20), + 776: uint8(254), + 777: uint8(33), + 778: uint8(254), + 780: uint8(12), + 784: uint8(2), + 791: uint8(16), + 792: uint8(30), + 793: uint8(32), + 796: uint8(12), + 799: uint8(64), + 800: uint8(6), + 807: uint8(16), + 808: uint8(134), + 809: uint8(57), + 810: uint8(2), + 814: uint8(35), + 816: uint8(6), + 823: uint8(16), + 824: uint8(190), + 825: uint8(33), + 828: uint8(12), + 831: uint8(252), + 832: uint8(2), + 839: uint8(144), + 840: uint8(30), + 841: uint8(32), + 842: uint8(64), + 844: uint8(12), + 848: uint8(4), + 856: uint8(1), + 857: uint8(32), + 864: uint8(17), + 871: uint8(192), + 872: uint8(193), + 873: uint8(61), + 874: uint8(96), + 876: uint8(12), + 880: uint8(2), + 887: uint8(144), + 888: uint8(64), + 889: uint8(48), + 892: uint8(12), + 896: uint8(3), + 903: uint8(24), + 904: uint8(30), + 905: uint8(32), + 908: uint8(12), + 921: uint8(4), + 922: uint8(92), + 934: uint8(242), + 935: uint8(7), + 936: uint8(128), + 937: uint8(127), + 950: uint8(242), + 951: uint8(31), + 953: uint8(63), + 963: uint8(3), + 966: uint8(160), + 967: uint8(2), + 974: uint8(254), + 975: uint8(127), + 976: uint8(223), + 977: uint8(224), + 978: uint8(255), + 979: uint8(254), + 980: uint8(255), + 981: uint8(255), + 982: uint8(255), + 983: uint8(31), + 984: uint8(64), + 997: uint8(224), + 998: uint8(253), + 999: uint8(102), + 1003: uint8(195), + 1004: uint8(1), + 1006: uint8(30), + 1008: uint8(100), + 1009: uint8(32), + 1011: uint8(32), + 1036: uint8(255), + 1037: uint8(255), + 1038: uint8(255), + 1039: uint8(255), + 1040: uint8(255), + 1041: uint8(255), + 1042: uint8(255), + 1043: uint8(255), + 1044: uint8(255), + 1045: uint8(255), + 1046: uint8(255), + 1047: uint8(255), + 1048: uint8(255), + 1049: uint8(255), + 1050: uint8(255), + 1051: uint8(255), + 1052: uint8(255), + 1053: uint8(255), + 1054: uint8(255), + 1055: uint8(255), + 1067: uint8(224), + 1090: uint8(28), + 1094: uint8(28), + 1098: uint8(12), + 1102: uint8(12), + 1110: uint8(176), + 1111: uint8(63), + 1112: uint8(64), + 1113: uint8(254), + 1114: uint8(15), + 1115: uint8(32), + 1121: uint8(120), + 1136: uint8(96), + 1141: uint8(2), + 1156: uint8(135), + 1157: uint8(1), + 1158: uint8(4), + 1159: uint8(14), + 1186: uint8(128), + 1187: uint8(9), + 1194: uint8(64), + 1195: uint8(127), + 1196: uint8(229), + 1197: uint8(31), + 1198: uint8(248), + 1199: uint8(159), + 1206: uint8(255), + 1207: uint8(127), + 1216: uint8(15), + 1222: uint8(208), + 1223: uint8(23), + 1224: uint8(4), + 1229: uint8(248), + 1230: uint8(15), + 1232: uint8(3), + 1236: uint8(60), + 1237: uint8(59), + 1244: uint8(64), + 1245: uint8(163), + 1246: uint8(3), + 1253: uint8(240), + 1254: uint8(207), + 1274: uint8(247), + 1275: uint8(255), + 1276: uint8(253), + 1277: uint8(33), + 1278: uint8(16), + 1279: uint8(3), + 1304: uint8(255), + 1305: uint8(255), + 1306: uint8(255), + 1307: uint8(255), + 1308: uint8(255), + 1309: uint8(255), + 1310: uint8(255), + 1311: uint8(251), + 1313: uint8(248), + 1317: uint8(124), + 1324: uint8(223), + 1325: uint8(255), + 1338: uint8(255), + 1339: uint8(255), + 1340: uint8(255), + 1341: uint8(255), + 1342: uint8(1), + 1373: uint8(128), + 1374: uint8(3), + 1391: uint8(128), + 1404: uint8(255), + 1405: uint8(255), + 1406: uint8(255), + 1407: uint8(255), + 1413: uint8(60), + 1427: uint8(6), + 1453: uint8(128), + 1454: uint8(247), + 1455: uint8(63), + 1459: uint8(192), + 1470: uint8(3), + 1472: uint8(68), + 1473: uint8(8), + 1476: uint8(96), + 1496: uint8(48), + 1500: uint8(255), + 1501: uint8(255), + 1502: uint8(3), + 1503: uint8(128), + 1508: uint8(192), + 1509: uint8(63), + 1512: uint8(128), + 1513: uint8(255), + 1514: uint8(3), + 1520: uint8(7), + 1526: uint8(200), + 1527: uint8(51), + 1532: uint8(32), + 1541: uint8(126), + 1542: uint8(102), + 1544: uint8(8), + 1545: uint8(16), + 1551: uint8(16), + 1558: uint8(157), + 1559: uint8(193), + 1560: uint8(2), + 1565: uint8(48), + 1566: uint8(64), + 1596: uint8(32), + 1597: uint8(33), + 1622: uint8(255), + 1623: uint8(255), + 1624: uint8(255), + 1625: uint8(255), + 1626: uint8(255), + 1627: uint8(255), + 1628: uint8(255), + 1629: uint8(255), + 1630: uint8(255), + 1631: uint8(255), + 1635: uint8(64), + 1664: uint8(255), + 1665: uint8(255), + 1668: uint8(255), + 1669: uint8(255), + 1695: uint8(128), + 1727: uint8(14), + 1759: uint8(32), + 1788: uint8(1), + 1806: uint8(192), + 1807: uint8(7), + 1824: uint8(110), + 1825: uint8(240), + 1831: uint8(135), + 1852: uint8(96), + 1860: uint8(240), + 1896: uint8(192), + 1897: uint8(255), + 1898: uint8(1), + 1920: uint8(2), + 1927: uint8(255), + 1928: uint8(127), + 1935: uint8(128), + 1936: uint8(3), + 1942: uint8(120), + 1943: uint8(38), + 1945: uint8(32), + 1952: uint8(7), + 1956: uint8(128), + 1957: uint8(239), + 1958: uint8(31), + 1966: uint8(8), + 1968: uint8(3), + 1974: uint8(192), + 1975: uint8(127), + 1977: uint8(30), + 1989: uint8(128), + 1990: uint8(211), + 1991: uint8(64), + 2011: uint8(128), + 2012: uint8(248), + 2013: uint8(7), + 2016: uint8(3), + 2023: uint8(24), + 2024: uint8(1), + 2028: uint8(192), + 2029: uint8(31), + 2030: uint8(31), + 2055: uint8(255), + 2056: uint8(92), + 2059: uint8(64), + 2070: uint8(248), + 2071: uint8(133), + 2072: uint8(13), + 2102: uint8(60), + 2103: uint8(176), + 2104: uint8(1), + 2107: uint8(48), + 2118: uint8(248), + 2119: uint8(167), + 2120: uint8(1), + 2133: uint8(40), + 2134: uint8(191), + 2147: uint8(224), + 2148: uint8(188), + 2149: uint8(15), + 2181: uint8(128), + 2182: uint8(255), + 2183: uint8(6), + 2234: uint8(240), + 2235: uint8(12), + 2236: uint8(1), + 2240: uint8(254), + 2241: uint8(7), + 2246: uint8(248), + 2247: uint8(121), + 2248: uint8(128), + 2250: uint8(126), + 2251: uint8(14), + 2257: uint8(252), + 2258: uint8(127), + 2259: uint8(3), + 2278: uint8(127), + 2279: uint8(191), + 2290: uint8(252), + 2291: uint8(255), + 2292: uint8(255), + 2293: uint8(252), + 2294: uint8(109), + 2310: uint8(126), + 2311: uint8(180), + 2312: uint8(191), + 2322: uint8(163), + 2366: uint8(24), + 2374: uint8(255), + 2375: uint8(1), + 2430: uint8(31), + 2438: uint8(127), + 2473: uint8(128), + 2481: uint8(128), + 2482: uint8(7), + 2515: uint8(96), + 2516: uint8(15), + 2540: uint8(128), + 2541: uint8(3), + 2542: uint8(248), + 2543: uint8(255), + 2544: uint8(231), + 2545: uint8(15), + 2549: uint8(60), + 2568: uint8(28), + 2592: uint8(255), + 2593: uint8(255), + 2594: uint8(255), + 2595: uint8(255), + 2596: uint8(255), + 2597: uint8(255), + 2598: uint8(127), + 2599: uint8(248), + 2600: uint8(255), + 2601: uint8(255), + 2602: uint8(255), + 2603: uint8(255), + 2604: uint8(255), + 2605: uint8(31), + 2606: uint8(32), + 2608: uint8(16), + 2611: uint8(248), + 2612: uint8(254), + 2613: uint8(255), + 2624: uint8(127), + 2625: uint8(255), + 2626: uint8(255), + 2627: uint8(249), + 2628: uint8(219), + 2629: uint8(7), + 2662: uint8(127), + 2717: uint8(240), + 2746: uint8(127), + 2760: uint8(240), + 2761: uint8(7), +} + +var _wtable = [1600]uint8{ + 0: uint8(16), + 1: uint8(16), + 2: uint8(16), + 3: uint8(16), + 4: uint8(16), + 5: uint8(16), + 6: uint8(16), + 7: uint8(16), + 8: uint8(16), + 9: uint8(16), + 10: uint8(16), + 11: uint8(16), + 12: uint8(16), + 13: uint8(16), + 14: uint8(16), + 15: uint8(16), + 16: uint8(16), + 17: uint8(18), + 18: uint8(16), + 19: uint8(16), + 20: uint8(16), + 21: uint8(16), + 22: uint8(16), + 23: uint8(16), + 24: uint8(16), + 25: uint8(16), + 26: uint8(16), + 27: uint8(16), + 28: uint8(16), + 29: uint8(16), + 30: uint8(16), + 31: uint8(16), + 32: uint8(16), + 33: uint8(16), + 34: uint8(16), + 35: uint8(19), + 36: uint8(16), + 37: uint8(20), + 38: uint8(21), + 39: uint8(22), + 40: uint8(16), + 41: uint8(16), + 42: uint8(16), + 43: uint8(23), + 44: uint8(16), + 45: uint8(16), + 46: uint8(24), + 47: uint8(25), + 48: uint8(26), + 49: uint8(27), + 50: uint8(28), + 51: uint8(17), + 52: uint8(17), + 53: uint8(17), + 54: uint8(17), + 55: uint8(17), + 56: uint8(17), + 57: uint8(17), + 58: uint8(17), + 59: uint8(17), + 60: uint8(17), + 61: uint8(17), + 62: uint8(17), + 63: uint8(17), + 64: uint8(17), + 65: uint8(17), + 66: uint8(17), + 67: uint8(17), + 68: uint8(17), + 69: uint8(17), + 70: uint8(17), + 71: uint8(17), + 72: uint8(17), + 73: uint8(17), + 74: uint8(17), + 75: uint8(17), + 76: uint8(17), + 77: uint8(29), + 78: uint8(17), + 79: uint8(17), + 80: uint8(17), + 81: uint8(17), + 82: uint8(17), + 83: uint8(17), + 84: uint8(17), + 85: uint8(17), + 86: uint8(17), + 87: uint8(17), + 88: uint8(17), + 89: uint8(17), + 90: uint8(17), + 91: uint8(17), + 92: uint8(17), + 93: uint8(17), + 94: uint8(17), + 95: uint8(17), + 96: uint8(17), + 97: uint8(17), + 98: uint8(17), + 99: uint8(17), + 100: uint8(17), + 101: uint8(17), + 102: uint8(17), + 103: uint8(17), + 104: uint8(17), + 105: uint8(17), + 106: uint8(17), + 107: uint8(17), + 108: uint8(17), + 109: uint8(17), + 110: uint8(17), + 111: uint8(17), + 112: uint8(17), + 113: uint8(17), + 114: uint8(17), + 115: uint8(17), + 116: uint8(17), + 117: uint8(17), + 118: uint8(17), + 119: uint8(17), + 120: uint8(17), + 121: uint8(17), + 122: uint8(17), + 123: uint8(17), + 124: uint8(17), + 125: uint8(17), + 126: uint8(17), + 127: uint8(17), + 128: uint8(17), + 129: uint8(17), + 130: uint8(17), + 131: uint8(17), + 132: uint8(17), + 133: uint8(17), + 134: uint8(17), + 135: uint8(17), + 136: uint8(17), + 137: uint8(17), + 138: uint8(17), + 139: uint8(17), + 140: uint8(17), + 141: uint8(17), + 142: uint8(17), + 143: uint8(17), + 144: uint8(17), + 145: uint8(17), + 146: uint8(17), + 147: uint8(17), + 148: uint8(17), + 149: uint8(17), + 150: uint8(17), + 151: uint8(17), + 152: uint8(17), + 153: uint8(17), + 154: uint8(17), + 155: uint8(17), + 156: uint8(17), + 157: uint8(17), + 158: uint8(17), + 159: uint8(17), + 160: uint8(17), + 161: uint8(17), + 162: uint8(17), + 163: uint8(17), + 164: uint8(30), + 165: uint8(16), + 166: uint8(16), + 167: uint8(16), + 168: uint8(16), + 169: uint8(31), + 170: uint8(16), + 171: uint8(16), + 172: uint8(17), + 173: uint8(17), + 174: uint8(17), + 175: uint8(17), + 176: uint8(17), + 177: uint8(17), + 178: uint8(17), + 179: uint8(17), + 180: uint8(17), + 181: uint8(17), + 182: uint8(17), + 183: uint8(17), + 184: uint8(17), + 185: uint8(17), + 186: uint8(17), + 187: uint8(17), + 188: uint8(17), + 189: uint8(17), + 190: uint8(17), + 191: uint8(17), + 192: uint8(17), + 193: uint8(17), + 194: uint8(17), + 195: uint8(17), + 196: uint8(17), + 197: uint8(17), + 198: uint8(17), + 199: uint8(17), + 200: uint8(17), + 201: uint8(17), + 202: uint8(17), + 203: uint8(17), + 204: uint8(17), + 205: uint8(17), + 206: uint8(17), + 207: uint8(17), + 208: uint8(17), + 209: uint8(17), + 210: uint8(17), + 211: uint8(17), + 212: uint8(17), + 213: uint8(17), + 214: uint8(17), + 215: uint8(32), + 216: uint8(16), + 217: uint8(16), + 218: uint8(16), + 219: uint8(16), + 220: uint8(16), + 221: uint8(16), + 222: uint8(16), + 223: uint8(16), + 224: uint8(16), + 225: uint8(16), + 226: uint8(16), + 227: uint8(16), + 228: uint8(16), + 229: uint8(16), + 230: uint8(16), + 231: uint8(16), + 232: uint8(16), + 233: uint8(16), + 234: uint8(16), + 235: uint8(16), + 236: uint8(16), + 237: uint8(16), + 238: uint8(16), + 239: uint8(16), + 240: uint8(16), + 241: uint8(16), + 242: uint8(16), + 243: uint8(16), + 244: uint8(16), + 245: uint8(16), + 246: uint8(16), + 247: uint8(16), + 248: uint8(16), + 249: uint8(17), + 250: uint8(17), + 251: uint8(16), + 252: uint8(16), + 253: uint8(16), + 254: uint8(33), + 255: uint8(34), + 256: uint8(16), + 257: uint8(16), + 258: uint8(16), + 259: uint8(16), + 260: uint8(16), + 261: uint8(16), + 262: uint8(16), + 263: uint8(16), + 264: uint8(16), + 265: uint8(16), + 266: uint8(16), + 267: uint8(16), + 268: uint8(16), + 269: uint8(16), + 270: uint8(16), + 271: uint8(16), + 272: uint8(16), + 273: uint8(16), + 274: uint8(16), + 275: uint8(16), + 276: uint8(16), + 277: uint8(16), + 278: uint8(16), + 279: uint8(16), + 280: uint8(16), + 281: uint8(16), + 282: uint8(16), + 283: uint8(16), + 284: uint8(16), + 285: uint8(16), + 286: uint8(16), + 287: uint8(16), + 288: uint8(16), + 289: uint8(16), + 290: uint8(16), + 291: uint8(16), + 292: uint8(16), + 293: uint8(16), + 294: uint8(16), + 295: uint8(16), + 296: uint8(16), + 297: uint8(16), + 298: uint8(16), + 299: uint8(16), + 300: uint8(16), + 301: uint8(16), + 302: uint8(16), + 303: uint8(16), + 304: uint8(16), + 305: uint8(16), + 306: uint8(16), + 307: uint8(16), + 308: uint8(16), + 309: uint8(16), + 310: uint8(16), + 311: uint8(16), + 312: uint8(16), + 313: uint8(16), + 314: uint8(16), + 315: uint8(16), + 316: uint8(16), + 317: uint8(16), + 318: uint8(16), + 319: uint8(16), + 320: uint8(16), + 321: uint8(16), + 322: uint8(16), + 323: uint8(16), + 324: uint8(16), + 325: uint8(16), + 326: uint8(16), + 327: uint8(16), + 328: uint8(16), + 329: uint8(16), + 330: uint8(16), + 331: uint8(16), + 332: uint8(16), + 333: uint8(16), + 334: uint8(16), + 335: uint8(16), + 336: uint8(16), + 337: uint8(16), + 338: uint8(16), + 339: uint8(16), + 340: uint8(16), + 341: uint8(16), + 342: uint8(16), + 343: uint8(16), + 344: uint8(16), + 345: uint8(16), + 346: uint8(16), + 347: uint8(16), + 348: uint8(16), + 349: uint8(16), + 350: uint8(16), + 351: uint8(16), + 352: uint8(16), + 353: uint8(16), + 354: uint8(16), + 355: uint8(16), + 356: uint8(16), + 357: uint8(16), + 358: uint8(16), + 359: uint8(16), + 360: uint8(16), + 361: uint8(16), + 362: uint8(16), + 363: uint8(16), + 364: uint8(16), + 365: uint8(16), + 366: uint8(16), + 367: uint8(35), + 368: uint8(17), + 369: uint8(17), + 370: uint8(17), + 371: uint8(17), + 372: uint8(17), + 373: uint8(17), + 374: uint8(17), + 375: uint8(17), + 376: uint8(17), + 377: uint8(17), + 378: uint8(17), + 379: uint8(17), + 380: uint8(17), + 381: uint8(17), + 382: uint8(17), + 383: uint8(17), + 384: uint8(17), + 385: uint8(17), + 386: uint8(17), + 387: uint8(17), + 388: uint8(17), + 389: uint8(17), + 390: uint8(17), + 391: uint8(36), + 392: uint8(17), + 393: uint8(17), + 394: uint8(37), + 395: uint8(16), + 396: uint8(16), + 397: uint8(16), + 398: uint8(16), + 399: uint8(16), + 400: uint8(16), + 401: uint8(16), + 402: uint8(16), + 403: uint8(16), + 404: uint8(16), + 405: uint8(16), + 406: uint8(16), + 407: uint8(16), + 408: uint8(16), + 409: uint8(16), + 410: uint8(16), + 411: uint8(16), + 412: uint8(16), + 413: uint8(16), + 414: uint8(16), + 415: uint8(16), + 416: uint8(16), + 417: uint8(16), + 418: uint8(16), + 419: uint8(16), + 420: uint8(16), + 421: uint8(16), + 422: uint8(16), + 423: uint8(16), + 424: uint8(16), + 425: uint8(16), + 426: uint8(16), + 427: uint8(16), + 428: uint8(16), + 429: uint8(16), + 430: uint8(16), + 431: uint8(16), + 432: uint8(17), + 433: uint8(38), + 434: uint8(39), + 435: uint8(16), + 436: uint8(16), + 437: uint8(16), + 438: uint8(16), + 439: uint8(16), + 440: uint8(16), + 441: uint8(16), + 442: uint8(16), + 443: uint8(16), + 444: uint8(16), + 445: uint8(16), + 446: uint8(16), + 447: uint8(16), + 448: uint8(16), + 449: uint8(16), + 450: uint8(16), + 451: uint8(16), + 452: uint8(16), + 453: uint8(16), + 454: uint8(16), + 455: uint8(16), + 456: uint8(16), + 457: uint8(16), + 458: uint8(16), + 459: uint8(16), + 460: uint8(16), + 461: uint8(16), + 462: uint8(16), + 463: uint8(16), + 464: uint8(16), + 465: uint8(16), + 466: uint8(16), + 467: uint8(16), + 468: uint8(16), + 469: uint8(16), + 470: uint8(16), + 471: uint8(16), + 472: uint8(16), + 473: uint8(16), + 474: uint8(16), + 475: uint8(16), + 476: uint8(16), + 477: uint8(16), + 478: uint8(16), + 479: uint8(16), + 480: uint8(16), + 481: uint8(16), + 482: uint8(16), + 483: uint8(16), + 484: uint8(16), + 485: uint8(16), + 486: uint8(16), + 487: uint8(16), + 488: uint8(16), + 489: uint8(16), + 490: uint8(16), + 491: uint8(16), + 492: uint8(16), + 493: uint8(16), + 494: uint8(16), + 495: uint8(16), + 496: uint8(40), + 497: uint8(41), + 498: uint8(42), + 499: uint8(43), + 500: uint8(44), + 501: uint8(45), + 502: uint8(46), + 503: uint8(47), + 504: uint8(16), + 505: uint8(48), + 506: uint8(49), + 507: uint8(16), + 508: uint8(16), + 509: uint8(16), + 510: uint8(16), + 511: uint8(16), + 544: uint8(255), + 545: uint8(255), + 546: uint8(255), + 547: uint8(255), + 548: uint8(255), + 549: uint8(255), + 550: uint8(255), + 551: uint8(255), + 552: uint8(255), + 553: uint8(255), + 554: uint8(255), + 555: uint8(255), + 556: uint8(255), + 557: uint8(255), + 558: uint8(255), + 559: uint8(255), + 560: uint8(255), + 561: uint8(255), + 562: uint8(255), + 563: uint8(255), + 564: uint8(255), + 565: uint8(255), + 566: uint8(255), + 567: uint8(255), + 568: uint8(255), + 569: uint8(255), + 570: uint8(255), + 571: uint8(255), + 572: uint8(255), + 573: uint8(255), + 574: uint8(255), + 575: uint8(255), + 576: uint8(255), + 577: uint8(255), + 578: uint8(255), + 579: uint8(255), + 580: uint8(255), + 581: uint8(255), + 582: uint8(255), + 583: uint8(255), + 584: uint8(255), + 585: uint8(255), + 586: uint8(255), + 587: uint8(255), + 611: uint8(12), + 613: uint8(6), + 637: uint8(30), + 638: uint8(9), + 671: uint8(96), + 674: uint8(48), + 681: uint8(255), + 682: uint8(15), + 687: uint8(128), + 690: uint8(8), + 692: uint8(2), + 693: uint8(12), + 695: uint8(96), + 696: uint8(48), + 697: uint8(64), + 698: uint8(16), + 701: uint8(4), + 702: uint8(44), + 703: uint8(36), + 704: uint8(32), + 705: uint8(12), + 709: uint8(1), + 713: uint8(80), + 714: uint8(184), + 722: uint8(224), + 726: uint8(1), + 727: uint8(128), + 739: uint8(24), + 746: uint8(33), + 784: uint8(255), + 785: uint8(255), + 786: uint8(255), + 787: uint8(251), + 788: uint8(255), + 789: uint8(255), + 790: uint8(255), + 791: uint8(255), + 792: uint8(255), + 793: uint8(255), + 794: uint8(255), + 795: uint8(255), + 796: uint8(255), + 797: uint8(255), + 798: uint8(15), + 800: uint8(255), + 801: uint8(255), + 802: uint8(255), + 803: uint8(255), + 804: uint8(255), + 805: uint8(255), + 806: uint8(255), + 807: uint8(255), + 808: uint8(255), + 809: uint8(255), + 810: uint8(255), + 811: uint8(255), + 812: uint8(255), + 813: uint8(255), + 814: uint8(255), + 815: uint8(255), + 816: uint8(255), + 817: uint8(255), + 818: uint8(255), + 819: uint8(255), + 820: uint8(255), + 821: uint8(255), + 822: uint8(255), + 823: uint8(255), + 824: uint8(255), + 825: uint8(255), + 826: uint8(63), + 830: uint8(255), + 831: uint8(15), + 832: uint8(255), + 833: uint8(255), + 834: uint8(255), + 835: uint8(255), + 836: uint8(255), + 837: uint8(255), + 838: uint8(255), + 839: uint8(127), + 840: uint8(254), + 841: uint8(255), + 842: uint8(255), + 843: uint8(255), + 844: uint8(255), + 845: uint8(255), + 846: uint8(255), + 847: uint8(255), + 848: uint8(255), + 849: uint8(255), + 850: uint8(127), + 851: uint8(254), + 852: uint8(255), + 853: uint8(255), + 854: uint8(255), + 855: uint8(255), + 856: uint8(255), + 857: uint8(255), + 858: uint8(255), + 859: uint8(255), + 860: uint8(255), + 861: uint8(255), + 862: uint8(255), + 863: uint8(255), + 864: uint8(224), + 865: uint8(255), + 866: uint8(255), + 867: uint8(255), + 868: uint8(255), + 869: uint8(255), + 870: uint8(254), + 871: uint8(255), + 872: uint8(255), + 873: uint8(255), + 874: uint8(255), + 875: uint8(255), + 876: uint8(255), + 877: uint8(255), + 878: uint8(255), + 879: uint8(255), + 880: uint8(255), + 881: uint8(127), + 882: uint8(255), + 883: uint8(255), + 884: uint8(255), + 885: uint8(255), + 886: uint8(255), + 887: uint8(7), + 888: uint8(255), + 889: uint8(255), + 890: uint8(255), + 891: uint8(255), + 892: uint8(15), + 894: uint8(255), + 895: uint8(255), + 896: uint8(255), + 897: uint8(255), + 898: uint8(255), + 899: uint8(127), + 900: uint8(255), + 901: uint8(255), + 902: uint8(255), + 903: uint8(255), + 904: uint8(255), + 906: uint8(255), + 907: uint8(255), + 908: uint8(255), + 909: uint8(255), + 910: uint8(255), + 911: uint8(255), + 912: uint8(255), + 913: uint8(255), + 914: uint8(255), + 915: uint8(255), + 916: uint8(255), + 917: uint8(255), + 918: uint8(255), + 919: uint8(255), + 920: uint8(255), + 921: uint8(255), + 922: uint8(255), + 923: uint8(255), + 924: uint8(255), + 925: uint8(255), + 926: uint8(255), + 927: uint8(255), + 928: uint8(255), + 929: uint8(255), + 930: uint8(255), + 931: uint8(255), + 932: uint8(255), + 933: uint8(255), + 934: uint8(255), + 935: uint8(255), + 936: uint8(255), + 937: uint8(255), + 938: uint8(255), + 939: uint8(255), + 940: uint8(255), + 941: uint8(255), + 942: uint8(255), + 943: uint8(255), + 944: uint8(255), + 945: uint8(255), + 946: uint8(255), + 947: uint8(255), + 948: uint8(255), + 949: uint8(255), + 950: uint8(255), + 951: uint8(255), + 960: uint8(255), + 961: uint8(255), + 962: uint8(255), + 963: uint8(255), + 964: uint8(255), + 965: uint8(255), + 966: uint8(255), + 967: uint8(255), + 968: uint8(255), + 969: uint8(255), + 970: uint8(255), + 971: uint8(255), + 972: uint8(255), + 973: uint8(255), + 974: uint8(255), + 975: uint8(255), + 976: uint8(255), + 977: uint8(31), + 978: uint8(255), + 979: uint8(255), + 980: uint8(255), + 981: uint8(255), + 982: uint8(255), + 983: uint8(255), + 984: uint8(127), + 1004: uint8(255), + 1005: uint8(255), + 1006: uint8(255), + 1007: uint8(31), + 1024: uint8(255), + 1025: uint8(255), + 1026: uint8(255), + 1027: uint8(255), + 1028: uint8(255), + 1029: uint8(255), + 1030: uint8(255), + 1031: uint8(255), + 1032: uint8(255), + 1033: uint8(255), + 1034: uint8(255), + 1035: uint8(255), + 1036: uint8(255), + 1037: uint8(255), + 1038: uint8(255), + 1039: uint8(255), + 1040: uint8(255), + 1041: uint8(255), + 1042: uint8(255), + 1043: uint8(255), + 1044: uint8(15), + 1058: uint8(255), + 1059: uint8(3), + 1062: uint8(255), + 1063: uint8(255), + 1064: uint8(255), + 1065: uint8(255), + 1066: uint8(247), + 1067: uint8(255), + 1068: uint8(127), + 1069: uint8(15), + 1088: uint8(254), + 1089: uint8(255), + 1090: uint8(255), + 1091: uint8(255), + 1092: uint8(255), + 1093: uint8(255), + 1094: uint8(255), + 1095: uint8(255), + 1096: uint8(255), + 1097: uint8(255), + 1098: uint8(255), + 1099: uint8(255), + 1100: uint8(1), + 1116: uint8(127), + 1148: uint8(15), + 1152: uint8(255), + 1153: uint8(255), + 1154: uint8(255), + 1155: uint8(255), + 1156: uint8(255), + 1157: uint8(255), + 1158: uint8(255), + 1159: uint8(255), + 1160: uint8(255), + 1161: uint8(255), + 1162: uint8(255), + 1163: uint8(255), + 1164: uint8(255), + 1165: uint8(255), + 1166: uint8(255), + 1167: uint8(255), + 1168: uint8(255), + 1169: uint8(255), + 1170: uint8(255), + 1171: uint8(255), + 1172: uint8(255), + 1173: uint8(255), + 1174: uint8(255), + 1175: uint8(255), + 1176: uint8(255), + 1177: uint8(255), + 1178: uint8(255), + 1179: uint8(255), + 1180: uint8(255), + 1181: uint8(255), + 1182: uint8(255), + 1184: uint8(255), + 1185: uint8(255), + 1186: uint8(255), + 1187: uint8(255), + 1188: uint8(255), + 1189: uint8(255), + 1190: uint8(255), + 1191: uint8(255), + 1192: uint8(255), + 1193: uint8(255), + 1194: uint8(255), + 1195: uint8(255), + 1196: uint8(255), + 1197: uint8(255), + 1198: uint8(255), + 1199: uint8(255), + 1200: uint8(255), + 1201: uint8(255), + 1202: uint8(255), + 1203: uint8(255), + 1204: uint8(255), + 1205: uint8(255), + 1206: uint8(255), + 1207: uint8(255), + 1208: uint8(255), + 1209: uint8(255), + 1210: uint8(255), + 1211: uint8(255), + 1212: uint8(255), + 1213: uint8(255), + 1214: uint8(7), + 1216: uint8(255), + 1217: uint8(255), + 1218: uint8(255), + 1219: uint8(127), + 1226: uint8(7), + 1228: uint8(240), + 1230: uint8(255), + 1231: uint8(255), + 1232: uint8(255), + 1233: uint8(255), + 1234: uint8(255), + 1235: uint8(255), + 1236: uint8(255), + 1237: uint8(255), + 1238: uint8(255), + 1239: uint8(255), + 1240: uint8(255), + 1241: uint8(255), + 1242: uint8(255), + 1243: uint8(255), + 1244: uint8(255), + 1245: uint8(255), + 1246: uint8(255), + 1247: uint8(255), + 1248: uint8(255), + 1249: uint8(255), + 1250: uint8(255), + 1251: uint8(255), + 1252: uint8(255), + 1253: uint8(255), + 1254: uint8(255), + 1255: uint8(255), + 1256: uint8(255), + 1257: uint8(255), + 1258: uint8(255), + 1259: uint8(255), + 1260: uint8(255), + 1261: uint8(255), + 1262: uint8(255), + 1263: uint8(255), + 1264: uint8(255), + 1265: uint8(255), + 1266: uint8(255), + 1267: uint8(255), + 1268: uint8(255), + 1269: uint8(255), + 1270: uint8(255), + 1271: uint8(255), + 1272: uint8(255), + 1273: uint8(255), + 1274: uint8(255), + 1275: uint8(255), + 1276: uint8(255), + 1277: uint8(255), + 1278: uint8(255), + 1279: uint8(15), + 1280: uint8(16), + 1305: uint8(128), + 1329: uint8(64), + 1330: uint8(254), + 1331: uint8(7), + 1344: uint8(7), + 1346: uint8(255), + 1347: uint8(255), + 1348: uint8(255), + 1349: uint8(255), + 1350: uint8(255), + 1351: uint8(15), + 1352: uint8(255), + 1353: uint8(1), + 1354: uint8(3), + 1356: uint8(63), + 1376: uint8(255), + 1377: uint8(255), + 1378: uint8(255), + 1379: uint8(255), + 1380: uint8(1), + 1381: uint8(224), + 1382: uint8(191), + 1383: uint8(255), + 1384: uint8(255), + 1385: uint8(255), + 1386: uint8(255), + 1387: uint8(255), + 1388: uint8(255), + 1389: uint8(255), + 1390: uint8(255), + 1391: uint8(223), + 1392: uint8(255), + 1393: uint8(255), + 1394: uint8(15), + 1396: uint8(255), + 1397: uint8(255), + 1398: uint8(255), + 1399: uint8(255), + 1400: uint8(255), + 1401: uint8(135), + 1402: uint8(15), + 1404: uint8(255), + 1405: uint8(255), + 1406: uint8(17), + 1407: uint8(255), + 1408: uint8(255), + 1409: uint8(255), + 1410: uint8(255), + 1411: uint8(255), + 1412: uint8(255), + 1413: uint8(255), + 1414: uint8(255), + 1415: uint8(127), + 1416: uint8(253), + 1417: uint8(255), + 1418: uint8(255), + 1419: uint8(255), + 1420: uint8(255), + 1421: uint8(255), + 1422: uint8(255), + 1423: uint8(255), + 1424: uint8(255), + 1425: uint8(255), + 1426: uint8(255), + 1427: uint8(255), + 1428: uint8(255), + 1429: uint8(255), + 1430: uint8(255), + 1431: uint8(255), + 1432: uint8(255), + 1433: uint8(255), + 1434: uint8(255), + 1435: uint8(255), + 1436: uint8(255), + 1437: uint8(255), + 1438: uint8(255), + 1439: uint8(159), + 1440: uint8(255), + 1441: uint8(255), + 1442: uint8(255), + 1443: uint8(255), + 1444: uint8(255), + 1445: uint8(255), + 1446: uint8(255), + 1447: uint8(63), + 1449: uint8(120), + 1450: uint8(255), + 1451: uint8(255), + 1452: uint8(255), + 1455: uint8(4), + 1458: uint8(96), + 1460: uint8(16), + 1471: uint8(248), + 1472: uint8(255), + 1473: uint8(255), + 1474: uint8(255), + 1475: uint8(255), + 1476: uint8(255), + 1477: uint8(255), + 1478: uint8(255), + 1479: uint8(255), + 1480: uint8(255), + 1481: uint8(255), + 1488: uint8(255), + 1489: uint8(255), + 1490: uint8(255), + 1491: uint8(255), + 1492: uint8(255), + 1493: uint8(255), + 1494: uint8(255), + 1495: uint8(255), + 1496: uint8(63), + 1497: uint8(16), + 1498: uint8(39), + 1501: uint8(24), + 1502: uint8(240), + 1503: uint8(7), + 1532: uint8(255), + 1533: uint8(15), + 1537: uint8(224), + 1538: uint8(255), + 1539: uint8(255), + 1540: uint8(255), + 1541: uint8(255), + 1542: uint8(255), + 1543: uint8(255), + 1544: uint8(255), + 1545: uint8(255), + 1546: uint8(255), + 1547: uint8(255), + 1548: uint8(255), + 1549: uint8(255), + 1550: uint8(123), + 1551: uint8(252), + 1552: uint8(255), + 1553: uint8(255), + 1554: uint8(255), + 1555: uint8(255), + 1556: uint8(231), + 1557: uint8(199), + 1558: uint8(255), + 1559: uint8(255), + 1560: uint8(255), + 1561: uint8(231), + 1562: uint8(255), + 1563: uint8(255), + 1564: uint8(255), + 1565: uint8(255), + 1566: uint8(255), + 1567: uint8(255), + 1582: uint8(15), + 1583: uint8(7), + 1584: uint8(7), + 1586: uint8(63), +} + +func Xwcwidth(tls *TLS, wc Twchar_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1, v2 int32 + _, _ = v1, v2 + if Uint32FromInt32(wc) < uint32(0xff) { + if (wc+int32(1))&int32(0x7f) >= int32(0x21) { + v1 = int32(1) + } else { + if wc != 0 { + v2 = -int32(1) + } else { + v2 = 0 + } + v1 = v2 + } + return v1 + } + if Uint32FromInt32(wc)&uint32(0xfffeffff) < uint32(0xfffe) { + if Int32FromUint8(_table5[Int32FromUint8(_table5[wc>>int32(8)])*int32(32)+wc&int32(255)>>int32(3)])>>(wc&int32(7))&int32(1) != 0 { + return 0 + } + if Int32FromUint8(_wtable[Int32FromUint8(_wtable[wc>>int32(8)])*int32(32)+wc&int32(255)>>int32(3)])>>(wc&int32(7))&int32(1) != 0 { + return int32(2) + } + return int32(1) + } + if wc&int32(0xfffe) == int32(0xfffe) { + return -int32(1) + } + if Uint32FromInt32(wc)-uint32(0x20000) < uint32(0x20000) { + return int32(2) + } + if wc == int32(0xe0001) || Uint32FromInt32(wc)-uint32(0xe0020) < uint32(0x5f) || Uint32FromInt32(wc)-uint32(0xe0100) < uint32(0xef) { + return 0 + } + return int32(1) +} + +const d_fileno = 0 + +type Tino_t = uint64 + +type Tdirent = struct { + Fd_ino Tino_t + Fd_off Toff_t + Fd_reclen uint16 + Fd_type uint8 + Fd_name [256]uint8 +} + +func Xalphasort(tls *TLS, a uintptr, b uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v a=%v b=%v, (%v:)", tls, a, b, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrcoll(tls, **(**uintptr)(__ccgo_up(a))+19, **(**uintptr)(__ccgo_up(b))+19) +} + +type TDIR = struct { + Ftell Toff_t + Ffd int32 + Fbuf_pos int32 + Fbuf_end int32 + Flock [1]int32 + Fbuf [2048]uint8 +} + +type t__dirstream = TDIR + +func Xclosedir(tls *TLS, dir uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v dir=%v, (%v:)", tls, dir, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret int32 + _ = ret + ret = Xclose(tls, (*TDIR)(unsafe.Pointer(dir)).Ffd) + Xfree(tls, dir) + return ret +} + +func Xdirfd(tls *TLS, d uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v d=%v, (%v:)", tls, d, origin(2)) + defer func() { trc("-> %v", r) }() + } + return (*TDIR)(unsafe.Pointer(d)).Ffd +} + +const AT_EACCESS = 512 +const AT_FDCWD = -100 +const AT_REMOVEDIR = 512 +const AT_SYMLINK_FOLLOW = 1024 +const AT_SYMLINK_NOFOLLOW = 256 +const FD_CLOEXEC = 1 +const F_DUPFD = 0 +const F_DUPFD_CLOEXEC = 1030 +const F_GETFD = 1 +const F_GETFL = 3 +const F_GETLK = 5 +const F_GETOWN = 9 +const F_GETOWNER_UIDS = 17 +const F_GETOWN_EX = 16 +const F_GETSIG = 11 +const F_OFD_GETLK = 36 +const F_OFD_SETLK = 37 +const F_OFD_SETLKW = 38 +const F_RDLCK = 0 +const F_SETFD = 2 +const F_SETFL = 4 +const F_SETLK = 6 +const F_SETLKW = 7 +const F_SETOWN = 8 +const F_SETOWN_EX = 15 +const F_SETSIG = 10 +const F_UNLCK = 2 +const F_WRLCK = 1 +const O_ACCMODE = 2097155 +const O_APPEND = 1024 +const O_ASYNC = 8192 +const O_CLOEXEC = 524288 +const O_CREAT = 64 +const O_DIRECT = 131072 +const O_DIRECTORY = 16384 +const O_DSYNC = 4096 +const O_EXCL = 128 +const O_EXEC = 2097152 +const O_LARGEFILE = 65536 +const O_NDELAY = 2048 +const O_NOATIME = 262144 +const O_NOCTTY = 256 +const O_NOFOLLOW = 32768 +const O_NONBLOCK = 2048 +const O_PATH = 2097152 +const O_RDONLY = 0 +const O_RDWR = 2 +const O_RSYNC = 1052672 +const O_SEARCH = 2097152 +const O_SYNC = 1052672 +const O_TMPFILE = 4210688 +const O_TRUNC = 512 +const O_TTY_INIT = 0 +const O_WRONLY = 1 +const POSIX_FADV_DONTNEED = 4 +const POSIX_FADV_NOREUSE = 5 +const POSIX_FADV_NORMAL = 0 +const POSIX_FADV_RANDOM = 1 +const POSIX_FADV_SEQUENTIAL = 2 +const POSIX_FADV_WILLNEED = 3 +const S_IFBLK = 24576 +const S_IFCHR = 8192 +const S_IFDIR = 16384 +const S_IFIFO = 4096 +const S_IFLNK = 40960 +const S_IFMT = 61440 +const S_IFREG = 32768 +const S_IFSOCK = 49152 +const S_IRGRP = 32 +const S_IROTH = 4 +const S_IRUSR = 256 +const S_IRWXG = 56 +const S_IRWXO = 7 +const S_IRWXU = 448 +const S_ISGID = 1024 +const S_ISUID = 2048 +const S_ISVTX = 512 +const S_IWGRP = 16 +const S_IWOTH = 2 +const S_IWUSR = 128 +const S_IXGRP = 8 +const S_IXOTH = 1 +const S_IXUSR = 64 +const UTIME_NOW = 1073741823 +const UTIME_OMIT = 1073741822 + +type Tflock = struct { + Fl_type int16 + Fl_whence int16 + Fl_start Toff_t + Fl_len Toff_t + Fl_pid Tpid_t +} + +type Tnlink_t = uint64 + +type Tdev_t = uint64 + +type Tblksize_t = int64 + +type Tblkcnt_t = int64 + +type Tstat = struct { + Fst_dev Tdev_t + Fst_ino Tino_t + Fst_nlink Tnlink_t + Fst_mode Tmode_t + Fst_uid Tuid_t + Fst_gid Tgid_t + Fst_rdev Tdev_t + Fst_size Toff_t + Fst_blksize Tblksize_t + Fst_blocks Tblkcnt_t + Fst_atim Ttimespec + Fst_mtim Ttimespec + Fst_ctim Ttimespec + F__unused [3]uint64 +} + +func Xfdopendir(tls *TLS, fd int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(160) + defer tls.Free(160) + var dir, v1 uintptr + var _ /* st at bp+0 */ Tstat + _, _ = dir, v1 + if Xfstat(tls, fd, bp) < 0 { + return uintptr(0) + } + if Xfcntl(tls, fd, int32(F_GETFL), 0)&int32(O_PATH) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EBADF) + return uintptr(0) + } + if !((**(**Tstat)(__ccgo_up(bp))).Fst_mode&Uint32FromInt32(S_IFMT) == Uint32FromInt32(S_IFDIR)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOTDIR) + return uintptr(0) + } + v1 = Xcalloc(tls, uint64(1), uint64(2072)) + dir = v1 + if !(v1 != 0) { + return uintptr(0) + } + Xfcntl(tls, fd, int32(F_SETFD), VaList(bp+152, int32(FD_CLOEXEC))) + (*TDIR)(unsafe.Pointer(dir)).Ffd = fd + return dir +} + +const AT_EMPTY_PATH = 4096 +const AT_NO_AUTOMOUNT = 2048 +const AT_RECURSIVE = 32768 +const AT_STATX_DONT_SYNC = 16384 +const AT_STATX_FORCE_SYNC = 8192 +const AT_STATX_SYNC_AS_STAT = 0 +const AT_STATX_SYNC_TYPE = 24576 +const DN_ACCESS = 1 +const DN_ATTRIB = 32 +const DN_CREATE = 4 +const DN_DELETE = 8 +const DN_MODIFY = 2 +const DN_MULTISHOT = 2147483648 +const DN_RENAME = 16 +const DT_BLK = 6 +const DT_CHR = 2 +const DT_DIR = 4 +const DT_FIFO = 1 +const DT_LNK = 10 +const DT_REG = 8 +const DT_SOCK = 12 +const DT_UNKNOWN = 0 +const DT_WHT = 14 +const FALLOC_FL_KEEP_SIZE = 1 +const FALLOC_FL_PUNCH_HOLE = 2 +const FAPPEND = 1024 +const FASYNC = 8192 +const FFSYNC = 1052672 +const FNDELAY = 2048 +const FNONBLOCK = 2048 +const F_ADD_SEALS = 1033 +const F_CANCELLK = 1029 +const F_GETLEASE = 1025 +const F_GETPIPE_SZ = 1032 +const F_GET_FILE_RW_HINT = 1037 +const F_GET_RW_HINT = 1035 +const F_GET_SEALS = 1034 +const F_NOTIFY = 1026 +const F_OWNER_GID = 2 +const F_OWNER_PGRP = 2 +const F_OWNER_PID = 1 +const F_OWNER_TID = 0 +const F_SEAL_FUTURE_WRITE = 16 +const F_SEAL_GROW = 4 +const F_SEAL_SEAL = 1 +const F_SEAL_SHRINK = 2 +const F_SEAL_WRITE = 8 +const F_SETLEASE = 1024 +const F_SETPIPE_SZ = 1031 +const F_SET_FILE_RW_HINT = 1038 +const F_SET_RW_HINT = 1036 +const MAX_HANDLE_SZ = 128 +const RWF_WRITE_LIFE_NOT_SET = 0 +const RWH_WRITE_LIFE_EXTREME = 5 +const RWH_WRITE_LIFE_LONG = 4 +const RWH_WRITE_LIFE_MEDIUM = 3 +const RWH_WRITE_LIFE_NONE = 1 +const RWH_WRITE_LIFE_SHORT = 2 +const SPLICE_F_GIFT = 8 +const SPLICE_F_MORE = 4 +const SPLICE_F_MOVE = 1 +const SPLICE_F_NONBLOCK = 2 +const SYNC_FILE_RANGE_WAIT_AFTER = 4 +const SYNC_FILE_RANGE_WAIT_BEFORE = 1 +const SYNC_FILE_RANGE_WRITE = 2 +const alloca = 0 +const loff_t = 0 + +type Tiovec = struct { + Fiov_base uintptr + Fiov_len Tsize_t +} + +type Tfile_handle = struct { + Fhandle_bytes uint32 + Fhandle_type int32 +} + +type Tf_owner_ex = struct { + Ftype1 int32 + Fpid Tpid_t +} + +func Xopendir(tls *TLS, name uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + var dir, v2 uintptr + var fd, v1 int32 + _, _, _, _ = dir, fd, v1, v2 + v1 = Xopen(tls, name, Int32FromInt32(O_RDONLY)|Int32FromInt32(O_DIRECTORY)|Int32FromInt32(O_CLOEXEC), 0) + fd = v1 + if v1 < 0 { + return uintptr(0) + } + v2 = Xcalloc(tls, uint64(1), uint64(2072)) + dir = v2 + if !(v2 != 0) { + X__syscall1(tls, int64(SYS_close), int64(fd)) + return uintptr(0) + } + (*TDIR)(unsafe.Pointer(dir)).Ffd = fd + return dir +} + +type Tptrdiff_t = int64 + +type Tdirstream_buf_alignment_check = [1]uint8 + +func Xreaddir(tls *TLS, dir uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v dir=%v, (%v:)", tls, dir, origin(2)) + defer func() { trc("-> %v", r) }() + } + var de uintptr + var len1 int32 + _, _ = de, len1 + if (*TDIR)(unsafe.Pointer(dir)).Fbuf_pos >= (*TDIR)(unsafe.Pointer(dir)).Fbuf_end { + len1 = int32(X__syscall3(tls, int64(SYS_getdents64), int64((*TDIR)(unsafe.Pointer(dir)).Ffd), int64(dir+24), Int64FromUint64(Uint64FromInt64(2048)))) + if len1 <= 0 { + if len1 < 0 && len1 != -int32(ENOENT) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = -len1 + } + return uintptr(0) + } + (*TDIR)(unsafe.Pointer(dir)).Fbuf_end = len1 + (*TDIR)(unsafe.Pointer(dir)).Fbuf_pos = 0 + } + de = dir + 24 + uintptr((*TDIR)(unsafe.Pointer(dir)).Fbuf_pos) + **(**int32)(__ccgo_up(dir + 12)) += Int32FromUint16((*Tdirent)(unsafe.Pointer(de)).Fd_reclen) + (*TDIR)(unsafe.Pointer(dir)).Ftell = (*Tdirent)(unsafe.Pointer(de)).Fd_off + return de +} + +func Xreaddir_r(tls *TLS, dir uintptr, buf uintptr, result uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v dir=%v buf=%v result=%v, (%v:)", tls, dir, buf, result, origin(2)) + defer func() { trc("-> %v", r) }() + } + var de uintptr + var errno_save, ret, v1 int32 + _, _, _, _ = de, errno_save, ret, v1 + errno_save = **(**int32)(__ccgo_up(X__errno_location(tls))) + ___lock(tls, dir+20) + **(**int32)(__ccgo_up(X__errno_location(tls))) = 0 + de = Xreaddir(tls, dir) + v1 = **(**int32)(__ccgo_up(X__errno_location(tls))) + ret = v1 + if v1 != 0 { + ___unlock(tls, dir+20) + return ret + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = errno_save + if de != 0 { + Xmemcpy(tls, buf, de, uint64((*Tdirent)(unsafe.Pointer(de)).Fd_reclen)) + } else { + buf = UintptrFromInt32(0) + } + ___unlock(tls, dir+20) + **(**uintptr)(__ccgo_up(result)) = buf + return 0 +} + +func Xrewinddir(tls *TLS, dir uintptr) { + if __ccgo_strace { + trc("tls=%v dir=%v, (%v:)", tls, dir, origin(2)) + } + var v1 int32 + _ = v1 + ___lock(tls, dir+20) + Xlseek(tls, (*TDIR)(unsafe.Pointer(dir)).Ffd, 0, SEEK_SET) + v1 = Int32FromInt32(0) + (*TDIR)(unsafe.Pointer(dir)).Fbuf_end = v1 + (*TDIR)(unsafe.Pointer(dir)).Fbuf_pos = v1 + (*TDIR)(unsafe.Pointer(dir)).Ftell = 0 + ___unlock(tls, dir+20) +} + +type t__ccgo_fp__Xscandir_2 = func(*TLS, uintptr) int32 + +type t__ccgo_fp__Xscandir_3 = func(*TLS, uintptr, uintptr) int32 + +func Xscandir(tls *TLS, path uintptr, res uintptr, __ccgo_fp_sel uintptr, __ccgo_fp_cmp uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v res=%v __ccgo_fp_sel=%v __ccgo_fp_cmp=%v, (%v:)", tls, path, res, __ccgo_fp_sel, __ccgo_fp_cmp, origin(2)) + defer func() { trc("-> %v", r) }() + } + var cnt, len1, v2 Tsize_t + var d, de, names, tmp, v1 uintptr + var old_errno int32 + _, _, _, _, _, _, _, _, _ = cnt, d, de, len1, names, old_errno, tmp, v1, v2 + d = Xopendir(tls, path) + names = uintptr(0) + cnt = uint64(0) + len1 = uint64(0) + old_errno = **(**int32)(__ccgo_up(X__errno_location(tls))) + if !(d != 0) { + return -int32(1) + } + for { + **(**int32)(__ccgo_up(X__errno_location(tls))) = 0 + v1 = Xreaddir(tls, d) + de = v1 + if !(v1 != 0) { + break + } + if __ccgo_fp_sel != 0 && !((*(*func(*TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_sel})))(tls, de) != 0) { + continue + } + if cnt >= len1 { + len1 = uint64(2)*len1 + uint64(1) + if len1 > Uint64FromUint64(0xffffffffffffffff)/Uint64FromInt64(8) { + break + } + tmp = Xrealloc(tls, names, len1*uint64(8)) + if !(tmp != 0) { + break + } + names = tmp + } + **(**uintptr)(__ccgo_up(names + uintptr(cnt)*8)) = Xmalloc(tls, uint64((*Tdirent)(unsafe.Pointer(de)).Fd_reclen)) + if !(**(**uintptr)(__ccgo_up(names + uintptr(cnt)*8)) != 0) { + break + } + v2 = cnt + cnt = cnt + 1 + Xmemcpy(tls, **(**uintptr)(__ccgo_up(names + uintptr(v2)*8)), de, uint64((*Tdirent)(unsafe.Pointer(de)).Fd_reclen)) + } + Xclosedir(tls, d) + if **(**int32)(__ccgo_up(X__errno_location(tls))) != 0 { + if names != 0 { + for { + v2 = cnt + cnt = cnt - 1 + if !(v2 > uint64(0)) { + break + } + Xfree(tls, **(**uintptr)(__ccgo_up(names + uintptr(cnt)*8))) + } + } + Xfree(tls, names) + return -int32(1) + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = old_errno + if __ccgo_fp_cmp != 0 { + Xqsort(tls, names, cnt, uint64(8), __ccgo_fp_cmp) + } + **(**uintptr)(__ccgo_up(res)) = names + return Int32FromUint64(cnt) +} + +func Xseekdir(tls *TLS, dir uintptr, off int64) { + if __ccgo_strace { + trc("tls=%v dir=%v off=%v, (%v:)", tls, dir, off, origin(2)) + } + var v1 int32 + _ = v1 + ___lock(tls, dir+20) + (*TDIR)(unsafe.Pointer(dir)).Ftell = Xlseek(tls, (*TDIR)(unsafe.Pointer(dir)).Ffd, off, SEEK_SET) + v1 = Int32FromInt32(0) + (*TDIR)(unsafe.Pointer(dir)).Fbuf_end = v1 + (*TDIR)(unsafe.Pointer(dir)).Fbuf_pos = v1 + ___unlock(tls, dir+20) +} + +func Xtelldir(tls *TLS, dir uintptr) (r int64) { + if __ccgo_strace { + trc("tls=%v dir=%v, (%v:)", tls, dir, origin(2)) + defer func() { trc("-> %v", r) }() + } + return (*TDIR)(unsafe.Pointer(dir)).Ftell +} + +func Xversionsort(tls *TLS, a uintptr, b uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v a=%v b=%v, (%v:)", tls, a, b, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrverscmp(tls, **(**uintptr)(__ccgo_up(a))+19, **(**uintptr)(__ccgo_up(b))+19) +} + +func X__reset_tls(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + var i, n Tsize_t + var mem, p uintptr + var self Tpthread_t + _, _, _, _, _ = i, mem, n, p, self + self = uintptr(___get_tp(tls)) + n = **(**Tuintptr_t)(__ccgo_up((*t__pthread)(unsafe.Pointer(self)).Fdtv)) + if n != 0 { + p = X__libc.Ftls_head + i = Uint64FromInt32(1) + for { + if !(i <= n) { + break + } + mem = uintptr(**(**Tuintptr_t)(__ccgo_up((*t__pthread)(unsafe.Pointer(self)).Fdtv + uintptr(i)*8)) - Uint64FromInt32(DTP_OFFSET)) + Xmemcpy(tls, mem, (*Ttls_module)(unsafe.Pointer(p)).Fimage, (*Ttls_module)(unsafe.Pointer(p)).Flen1) + Xmemset(tls, mem+uintptr((*Ttls_module)(unsafe.Pointer(p)).Flen1), 0, (*Ttls_module)(unsafe.Pointer(p)).Fsize-(*Ttls_module)(unsafe.Pointer(p)).Flen1) + goto _1 + _1: + ; + i = i + 1 + p = (*Ttls_module)(unsafe.Pointer(p)).Fnext + } + } +} + +func X__init_ssp(tls *TLS, entropy uintptr) { + if __ccgo_strace { + trc("tls=%v entropy=%v, (%v:)", tls, entropy, origin(2)) + } + if entropy != 0 { + Xmemcpy(tls, uintptr(unsafe.Pointer(&X__stack_chk_guard)), entropy, uint64(8)) + } else { + X__stack_chk_guard = Tuintptr_t(uintptr(unsafe.Pointer(&X__stack_chk_guard))) * uint64(1103515245) + } + /* Sacrifice 8 bits of entropy on 64bit to prevent leaking/ + * overwriting the canary via string-manipulation functions. + * The NULL byte is on the second byte so that off-by-ones can + * still be detected. Endianness is taken care of + * automatically. */ + **(**uint8)(__ccgo_up(uintptr(unsafe.Pointer(&X__stack_chk_guard)) + 1)) = uint8(0) + (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Fcanary = X__stack_chk_guard +} + +func X__stack_chk_fail(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + // __asm__ __volatile__ (".long 0"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 54, __ccgo_ts+261) +} + +func X__stack_chk_fail_local(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + X__stack_chk_fail(tls) +} + +const L_INCR = 1 +const L_SET = 0 +const L_XTND = 2 + +func _dummy(tls *TLS, old uintptr, new1 uintptr) { +} + +func Xclearenv(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + var e, v1 uintptr + _, _ = e, v1 + e = Xenviron + Xenviron = uintptr(0) + if e != 0 { + for **(**uintptr)(__ccgo_up(e)) != 0 { + v1 = e + e += 8 + X__env_rm_add(tls, **(**uintptr)(__ccgo_up(v1)), uintptr(0)) + } + } + return 0 +} + +func Xgetenv(tls *TLS, name uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + var e uintptr + var l Tsize_t + _, _ = e, l + l = Uint64FromInt64(int64(X__strchrnul(tls, name, int32('='))) - int64(name)) + if l != 0 && !(**(**uint8)(__ccgo_up(name + uintptr(l))) != 0) && Xenviron != 0 { + e = Xenviron + for { + if !(**(**uintptr)(__ccgo_up(e)) != 0) { + break + } + if !(Xstrncmp(tls, name, **(**uintptr)(__ccgo_up(e)), l) != 0) && Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(e)) + uintptr(l)))) == int32('=') { + return **(**uintptr)(__ccgo_up(e)) + uintptr(l) + uintptr(1) + } + goto _1 + _1: + ; + e += 8 + } + } + return uintptr(0) +} + +func _dummy1(tls *TLS, old uintptr, new1 uintptr) { +} + +func X__putenv(tls *TLS, s uintptr, l Tsize_t, r uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v s=%v l=%v r=%v, (%v:)", tls, s, l, r, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var e, newenv, tmp, v2 uintptr + var i Tsize_t + _, _, _, _, _ = e, i, newenv, tmp, v2 + i = uint64(0) + if Xenviron != 0 { + e = Xenviron + for { + if !(**(**uintptr)(__ccgo_up(e)) != 0) { + break + } + if !(Xstrncmp(tls, s, **(**uintptr)(__ccgo_up(e)), l+uint64(1)) != 0) { + tmp = **(**uintptr)(__ccgo_up(e)) + **(**uintptr)(__ccgo_up(e)) = s + X__env_rm_add(tls, tmp, r) + return 0 + } + goto _1 + _1: + ; + e += 8 + i = i + 1 + } + } + if Xenviron == _oldenv { + newenv = Xrealloc(tls, _oldenv, uint64(8)*(i+uint64(2))) + if !(newenv != 0) { + goto oom + } + } else { + newenv = Xmalloc(tls, uint64(8)*(i+uint64(2))) + if !(newenv != 0) { + goto oom + } + if i != 0 { + Xmemcpy(tls, newenv, Xenviron, uint64(8)*i) + } + Xfree(tls, _oldenv) + } + **(**uintptr)(__ccgo_up(newenv + uintptr(i)*8)) = s + **(**uintptr)(__ccgo_up(newenv + uintptr(i+uint64(1))*8)) = uintptr(0) + v2 = newenv + _oldenv = v2 + Xenviron = v2 + if r != 0 { + X__env_rm_add(tls, uintptr(0), r) + } + return 0 + goto oom +oom: + ; + Xfree(tls, r) + return -int32(1) +} + +var _oldenv uintptr + +func Xputenv(tls *TLS, s uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l Tsize_t + _ = l + l = Uint64FromInt64(int64(X__strchrnul(tls, s, int32('='))) - int64(s)) + if !(l != 0) || !(**(**uint8)(__ccgo_up(s + uintptr(l))) != 0) { + return Xunsetenv(tls, s) + } + return X__putenv(tls, s, l, uintptr(0)) +} + +const L_cuserid = 20 +const NL_NMAX = 16 + +type Tcookie_io_functions_t = struct { + Fread uintptr + Fwrite uintptr + Fseek uintptr + Fclose1 uintptr +} + +type T_IO_cookie_io_functions_t = Tcookie_io_functions_t + +func Xsecure_getenv(tls *TLS, name uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 uintptr + _ = v1 + if X__libc.Fsecure != 0 { + v1 = UintptrFromInt32(0) + } else { + v1 = Xgetenv(tls, name) + } + return v1 +} + +func X__env_rm_add(tls *TLS, old uintptr, new1 uintptr) { + if __ccgo_strace { + trc("tls=%v old=%v new1=%v, (%v:)", tls, old, new1, origin(2)) + } + var i, v3 Tsize_t + var t, v2 uintptr + _, _, _, _ = i, t, v2, v3 + i = uint64(0) + for { + if !(i < _env_alloced_n) { + break + } + if **(**uintptr)(__ccgo_up(_env_alloced + uintptr(i)*8)) == old { + **(**uintptr)(__ccgo_up(_env_alloced + uintptr(i)*8)) = new1 + Xfree(tls, old) + return + } else { + if !(**(**uintptr)(__ccgo_up(_env_alloced + uintptr(i)*8)) != 0) && new1 != 0 { + **(**uintptr)(__ccgo_up(_env_alloced + uintptr(i)*8)) = new1 + new1 = uintptr(0) + } + } + goto _1 + _1: + ; + i = i + 1 + } + if !(new1 != 0) { + return + } + t = Xrealloc(tls, _env_alloced, uint64(8)*(_env_alloced_n+uint64(1))) + if !(t != 0) { + return + } + v2 = t + _env_alloced = v2 + v3 = _env_alloced_n + _env_alloced_n = _env_alloced_n + 1 + **(**uintptr)(__ccgo_up(v2 + uintptr(v3)*8)) = new1 +} + +var _env_alloced uintptr + +var _env_alloced_n Tsize_t + +func Xsetenv(tls *TLS, var1 uintptr, value uintptr, overwrite int32) (r int32) { + if __ccgo_strace { + trc("tls=%v var1=%v value=%v overwrite=%v, (%v:)", tls, var1, value, overwrite, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l1, l2, v1 Tsize_t + var s uintptr + var v2 bool + _, _, _, _, _ = l1, l2, s, v1, v2 + if v2 = !(var1 != 0); !v2 { + v1 = Uint64FromInt64(int64(X__strchrnul(tls, var1, int32('='))) - int64(var1)) + l1 = v1 + } + if v2 || !(v1 != 0) || **(**uint8)(__ccgo_up(var1 + uintptr(l1))) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + if !(overwrite != 0) && Xgetenv(tls, var1) != 0 { + return 0 + } + l2 = _strlen(tls, value) + s = Xmalloc(tls, l1+l2+uint64(2)) + if !(s != 0) { + return -int32(1) + } + Xmemcpy(tls, s, var1, l1) + **(**uint8)(__ccgo_up(s + uintptr(l1))) = uint8('=') + Xmemcpy(tls, s+uintptr(l1)+uintptr(1), value, l2+uint64(1)) + return X__putenv(tls, s, l1, s) +} + +func _dummy2(tls *TLS, old uintptr, new1 uintptr) { +} + +func Xunsetenv(tls *TLS, name uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + var e, eo, v2 uintptr + var l Tsize_t + _, _, _, _ = e, eo, l, v2 + l = Uint64FromInt64(int64(X__strchrnul(tls, name, int32('='))) - int64(name)) + if !(l != 0) || **(**uint8)(__ccgo_up(name + uintptr(l))) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + if Xenviron != 0 { + e = Xenviron + eo = e + for { + if !(**(**uintptr)(__ccgo_up(e)) != 0) { + break + } + if !(Xstrncmp(tls, name, **(**uintptr)(__ccgo_up(e)), l) != 0) && Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(e)) + uintptr(l)))) == int32('=') { + X__env_rm_add(tls, **(**uintptr)(__ccgo_up(e)), uintptr(0)) + } else { + if eo != e { + v2 = eo + eo += 8 + **(**uintptr)(__ccgo_up(v2)) = **(**uintptr)(__ccgo_up(e)) + } else { + eo += 8 + } + } + goto _1 + _1: + ; + e += 8 + } + if eo != e { + **(**uintptr)(__ccgo_up(eo)) = uintptr(0) + } + } + return 0 +} + +/* mips has one error code outside of the 8-bit range due to a + * historical typo, so we just remap it. */ + +type Terrmsgstr_t = struct { + Fstr0 [21]uint8 + FstrEILSEQ [22]uint8 + FstrEDOM [13]uint8 + FstrERANGE [25]uint8 + FstrENOTTY [10]uint8 + FstrEACCES [18]uint8 + FstrEPERM [24]uint8 + FstrENOENT [26]uint8 + FstrESRCH [16]uint8 + FstrEEXIST [12]uint8 + FstrEOVERFLOW [30]uint8 + FstrENOSPC [24]uint8 + FstrENOMEM [14]uint8 + FstrEBUSY [14]uint8 + FstrEINTR [24]uint8 + FstrEAGAIN [33]uint8 + FstrESPIPE [13]uint8 + FstrEXDEV [18]uint8 + FstrEROFS [22]uint8 + FstrENOTEMPTY [20]uint8 + FstrECONNRESET [25]uint8 + FstrETIMEDOUT [20]uint8 + FstrECONNREFUSED [19]uint8 + FstrEHOSTDOWN [13]uint8 + FstrEHOSTUNREACH [20]uint8 + FstrEADDRINUSE [15]uint8 + FstrEPIPE [12]uint8 + FstrEIO [10]uint8 + FstrENXIO [26]uint8 + FstrENOTBLK [22]uint8 + FstrENODEV [15]uint8 + FstrENOTDIR [16]uint8 + FstrEISDIR [15]uint8 + FstrETXTBSY [15]uint8 + FstrENOEXEC [18]uint8 + FstrEINVAL [17]uint8 + FstrE2BIG [23]uint8 + FstrELOOP [19]uint8 + FstrENAMETOOLONG [18]uint8 + FstrENFILE [30]uint8 + FstrEMFILE [30]uint8 + FstrEBADF [20]uint8 + FstrECHILD [17]uint8 + FstrEFAULT [12]uint8 + FstrEFBIG [15]uint8 + FstrEMLINK [15]uint8 + FstrENOLCK [19]uint8 + FstrEDEADLK [30]uint8 + FstrENOTRECOVERABLE [22]uint8 + FstrEOWNERDEAD [20]uint8 + FstrECANCELED [19]uint8 + FstrENOSYS [25]uint8 + FstrENOMSG [27]uint8 + FstrEIDRM [19]uint8 + FstrENOSTR [20]uint8 + FstrENODATA [18]uint8 + FstrETIME [15]uint8 + FstrENOSR [25]uint8 + FstrENOLINK [22]uint8 + FstrEPROTO [15]uint8 + FstrEBADMSG [12]uint8 + FstrEBADFD [29]uint8 + FstrENOTSOCK [13]uint8 + FstrEDESTADDRREQ [29]uint8 + FstrEMSGSIZE [18]uint8 + FstrEPROTOTYPE [31]uint8 + FstrENOPROTOOPT [23]uint8 + FstrEPROTONOSUPPORT [23]uint8 + FstrESOCKTNOSUPPORT [26]uint8 + FstrENOTSUP [14]uint8 + FstrEPFNOSUPPORT [30]uint8 + FstrEAFNOSUPPORT [41]uint8 + FstrEADDRNOTAVAIL [22]uint8 + FstrENETDOWN [16]uint8 + FstrENETUNREACH [20]uint8 + FstrENETRESET [28]uint8 + FstrECONNABORTED [19]uint8 + FstrENOBUFS [26]uint8 + FstrEISCONN [20]uint8 + FstrENOTCONN [21]uint8 + FstrESHUTDOWN [34]uint8 + FstrEALREADY [30]uint8 + FstrEINPROGRESS [22]uint8 + FstrESTALE [18]uint8 + FstrEREMOTEIO [17]uint8 + FstrEDQUOT [15]uint8 + FstrENOMEDIUM [16]uint8 + FstrEMEDIUMTYPE [18]uint8 + FstrEMULTIHOP [19]uint8 + FstrENOKEY [27]uint8 + FstrEKEYEXPIRED [16]uint8 + FstrEKEYREVOKED [21]uint8 + FstrEKEYREJECTED [28]uint8 +} + +/* mips has one error code outside of the 8-bit range due to a + * historical typo, so we just remap it. */ + +var _errmsgstr = Terrmsgstr_t{ + Fstr0: [21]uint8{'N', 'o', ' ', 'e', 'r', 'r', 'o', 'r', ' ', 'i', 'n', 'f', 'o', 'r', 'm', 'a', 't', 'i', 'o', 'n'}, + FstrEILSEQ: [22]uint8{'I', 'l', 'l', 'e', 'g', 'a', 'l', ' ', 'b', 'y', 't', 'e', ' ', 's', 'e', 'q', 'u', 'e', 'n', 'c', 'e'}, + FstrEDOM: [13]uint8{'D', 'o', 'm', 'a', 'i', 'n', ' ', 'e', 'r', 'r', 'o', 'r'}, + FstrERANGE: [25]uint8{'R', 'e', 's', 'u', 'l', 't', ' ', 'n', 'o', 't', ' ', 'r', 'e', 'p', 'r', 'e', 's', 'e', 'n', 't', 'a', 'b', 'l', 'e'}, + FstrENOTTY: [10]uint8{'N', 'o', 't', ' ', 'a', ' ', 't', 't', 'y'}, + FstrEACCES: [18]uint8{'P', 'e', 'r', 'm', 'i', 's', 's', 'i', 'o', 'n', ' ', 'd', 'e', 'n', 'i', 'e', 'd'}, + FstrEPERM: [24]uint8{'O', 'p', 'e', 'r', 'a', 't', 'i', 'o', 'n', ' ', 'n', 'o', 't', ' ', 'p', 'e', 'r', 'm', 'i', 't', 't', 'e', 'd'}, + FstrENOENT: [26]uint8{'N', 'o', ' ', 's', 'u', 'c', 'h', ' ', 'f', 'i', 'l', 'e', ' ', 'o', 'r', ' ', 'd', 'i', 'r', 'e', 'c', 't', 'o', 'r', 'y'}, + FstrESRCH: [16]uint8{'N', 'o', ' ', 's', 'u', 'c', 'h', ' ', 'p', 'r', 'o', 'c', 'e', 's', 's'}, + FstrEEXIST: [12]uint8{'F', 'i', 'l', 'e', ' ', 'e', 'x', 'i', 's', 't', 's'}, + FstrEOVERFLOW: [30]uint8{'V', 'a', 'l', 'u', 'e', ' ', 't', 'o', 'o', ' ', 'l', 'a', 'r', 'g', 'e', ' ', 'f', 'o', 'r', ' ', 'd', 'a', 't', 'a', ' ', 't', 'y', 'p', 'e'}, + FstrENOSPC: [24]uint8{'N', 'o', ' ', 's', 'p', 'a', 'c', 'e', ' ', 'l', 'e', 'f', 't', ' ', 'o', 'n', ' ', 'd', 'e', 'v', 'i', 'c', 'e'}, + FstrENOMEM: [14]uint8{'O', 'u', 't', ' ', 'o', 'f', ' ', 'm', 'e', 'm', 'o', 'r', 'y'}, + FstrEBUSY: [14]uint8{'R', 'e', 's', 'o', 'u', 'r', 'c', 'e', ' ', 'b', 'u', 's', 'y'}, + FstrEINTR: [24]uint8{'I', 'n', 't', 'e', 'r', 'r', 'u', 'p', 't', 'e', 'd', ' ', 's', 'y', 's', 't', 'e', 'm', ' ', 'c', 'a', 'l', 'l'}, + FstrEAGAIN: [33]uint8{'R', 'e', 's', 'o', 'u', 'r', 'c', 'e', ' ', 't', 'e', 'm', 'p', 'o', 'r', 'a', 'r', 'i', 'l', 'y', ' ', 'u', 'n', 'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e'}, + FstrESPIPE: [13]uint8{'I', 'n', 'v', 'a', 'l', 'i', 'd', ' ', 's', 'e', 'e', 'k'}, + FstrEXDEV: [18]uint8{'C', 'r', 'o', 's', 's', '-', 'd', 'e', 'v', 'i', 'c', 'e', ' ', 'l', 'i', 'n', 'k'}, + FstrEROFS: [22]uint8{'R', 'e', 'a', 'd', '-', 'o', 'n', 'l', 'y', ' ', 'f', 'i', 'l', 'e', ' ', 's', 'y', 's', 't', 'e', 'm'}, + FstrENOTEMPTY: [20]uint8{'D', 'i', 'r', 'e', 'c', 't', 'o', 'r', 'y', ' ', 'n', 'o', 't', ' ', 'e', 'm', 'p', 't', 'y'}, + FstrECONNRESET: [25]uint8{'C', 'o', 'n', 'n', 'e', 'c', 't', 'i', 'o', 'n', ' ', 'r', 'e', 's', 'e', 't', ' ', 'b', 'y', ' ', 'p', 'e', 'e', 'r'}, + FstrETIMEDOUT: [20]uint8{'O', 'p', 'e', 'r', 'a', 't', 'i', 'o', 'n', ' ', 't', 'i', 'm', 'e', 'd', ' ', 'o', 'u', 't'}, + FstrECONNREFUSED: [19]uint8{'C', 'o', 'n', 'n', 'e', 'c', 't', 'i', 'o', 'n', ' ', 'r', 'e', 'f', 'u', 's', 'e', 'd'}, + FstrEHOSTDOWN: [13]uint8{'H', 'o', 's', 't', ' ', 'i', 's', ' ', 'd', 'o', 'w', 'n'}, + FstrEHOSTUNREACH: [20]uint8{'H', 'o', 's', 't', ' ', 'i', 's', ' ', 'u', 'n', 'r', 'e', 'a', 'c', 'h', 'a', 'b', 'l', 'e'}, + FstrEADDRINUSE: [15]uint8{'A', 'd', 'd', 'r', 'e', 's', 's', ' ', 'i', 'n', ' ', 'u', 's', 'e'}, + FstrEPIPE: [12]uint8{'B', 'r', 'o', 'k', 'e', 'n', ' ', 'p', 'i', 'p', 'e'}, + FstrEIO: [10]uint8{'I', '/', 'O', ' ', 'e', 'r', 'r', 'o', 'r'}, + FstrENXIO: [26]uint8{'N', 'o', ' ', 's', 'u', 'c', 'h', ' ', 'd', 'e', 'v', 'i', 'c', 'e', ' ', 'o', 'r', ' ', 'a', 'd', 'd', 'r', 'e', 's', 's'}, + FstrENOTBLK: [22]uint8{'B', 'l', 'o', 'c', 'k', ' ', 'd', 'e', 'v', 'i', 'c', 'e', ' ', 'r', 'e', 'q', 'u', 'i', 'r', 'e', 'd'}, + FstrENODEV: [15]uint8{'N', 'o', ' ', 's', 'u', 'c', 'h', ' ', 'd', 'e', 'v', 'i', 'c', 'e'}, + FstrENOTDIR: [16]uint8{'N', 'o', 't', ' ', 'a', ' ', 'd', 'i', 'r', 'e', 'c', 't', 'o', 'r', 'y'}, + FstrEISDIR: [15]uint8{'I', 's', ' ', 'a', ' ', 'd', 'i', 'r', 'e', 'c', 't', 'o', 'r', 'y'}, + FstrETXTBSY: [15]uint8{'T', 'e', 'x', 't', ' ', 'f', 'i', 'l', 'e', ' ', 'b', 'u', 's', 'y'}, + FstrENOEXEC: [18]uint8{'E', 'x', 'e', 'c', ' ', 'f', 'o', 'r', 'm', 'a', 't', ' ', 'e', 'r', 'r', 'o', 'r'}, + FstrEINVAL: [17]uint8{'I', 'n', 'v', 'a', 'l', 'i', 'd', ' ', 'a', 'r', 'g', 'u', 'm', 'e', 'n', 't'}, + FstrE2BIG: [23]uint8{'A', 'r', 'g', 'u', 'm', 'e', 'n', 't', ' ', 'l', 'i', 's', 't', ' ', 't', 'o', 'o', ' ', 'l', 'o', 'n', 'g'}, + FstrELOOP: [19]uint8{'S', 'y', 'm', 'b', 'o', 'l', 'i', 'c', ' ', 'l', 'i', 'n', 'k', ' ', 'l', 'o', 'o', 'p'}, + FstrENAMETOOLONG: [18]uint8{'F', 'i', 'l', 'e', 'n', 'a', 'm', 'e', ' ', 't', 'o', 'o', ' ', 'l', 'o', 'n', 'g'}, + FstrENFILE: [30]uint8{'T', 'o', 'o', ' ', 'm', 'a', 'n', 'y', ' ', 'o', 'p', 'e', 'n', ' ', 'f', 'i', 'l', 'e', 's', ' ', 'i', 'n', ' ', 's', 'y', 's', 't', 'e', 'm'}, + FstrEMFILE: [30]uint8{'N', 'o', ' ', 'f', 'i', 'l', 'e', ' ', 'd', 'e', 's', 'c', 'r', 'i', 'p', 't', 'o', 'r', 's', ' ', 'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e'}, + FstrEBADF: [20]uint8{'B', 'a', 'd', ' ', 'f', 'i', 'l', 'e', ' ', 'd', 'e', 's', 'c', 'r', 'i', 'p', 't', 'o', 'r'}, + FstrECHILD: [17]uint8{'N', 'o', ' ', 'c', 'h', 'i', 'l', 'd', ' ', 'p', 'r', 'o', 'c', 'e', 's', 's'}, + FstrEFAULT: [12]uint8{'B', 'a', 'd', ' ', 'a', 'd', 'd', 'r', 'e', 's', 's'}, + FstrEFBIG: [15]uint8{'F', 'i', 'l', 'e', ' ', 't', 'o', 'o', ' ', 'l', 'a', 'r', 'g', 'e'}, + FstrEMLINK: [15]uint8{'T', 'o', 'o', ' ', 'm', 'a', 'n', 'y', ' ', 'l', 'i', 'n', 'k', 's'}, + FstrENOLCK: [19]uint8{'N', 'o', ' ', 'l', 'o', 'c', 'k', 's', ' ', 'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e'}, + FstrEDEADLK: [30]uint8{'R', 'e', 's', 'o', 'u', 'r', 'c', 'e', ' ', 'd', 'e', 'a', 'd', 'l', 'o', 'c', 'k', ' ', 'w', 'o', 'u', 'l', 'd', ' ', 'o', 'c', 'c', 'u', 'r'}, + FstrENOTRECOVERABLE: [22]uint8{'S', 't', 'a', 't', 'e', ' ', 'n', 'o', 't', ' ', 'r', 'e', 'c', 'o', 'v', 'e', 'r', 'a', 'b', 'l', 'e'}, + FstrEOWNERDEAD: [20]uint8{'P', 'r', 'e', 'v', 'i', 'o', 'u', 's', ' ', 'o', 'w', 'n', 'e', 'r', ' ', 'd', 'i', 'e', 'd'}, + FstrECANCELED: [19]uint8{'O', 'p', 'e', 'r', 'a', 't', 'i', 'o', 'n', ' ', 'c', 'a', 'n', 'c', 'e', 'l', 'e', 'd'}, + FstrENOSYS: [25]uint8{'F', 'u', 'n', 'c', 't', 'i', 'o', 'n', ' ', 'n', 'o', 't', ' ', 'i', 'm', 'p', 'l', 'e', 'm', 'e', 'n', 't', 'e', 'd'}, + FstrENOMSG: [27]uint8{'N', 'o', ' ', 'm', 'e', 's', 's', 'a', 'g', 'e', ' ', 'o', 'f', ' ', 'd', 'e', 's', 'i', 'r', 'e', 'd', ' ', 't', 'y', 'p', 'e'}, + FstrEIDRM: [19]uint8{'I', 'd', 'e', 'n', 't', 'i', 'f', 'i', 'e', 'r', ' ', 'r', 'e', 'm', 'o', 'v', 'e', 'd'}, + FstrENOSTR: [20]uint8{'D', 'e', 'v', 'i', 'c', 'e', ' ', 'n', 'o', 't', ' ', 'a', ' ', 's', 't', 'r', 'e', 'a', 'm'}, + FstrENODATA: [18]uint8{'N', 'o', ' ', 'd', 'a', 't', 'a', ' ', 'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e'}, + FstrETIME: [15]uint8{'D', 'e', 'v', 'i', 'c', 'e', ' ', 't', 'i', 'm', 'e', 'o', 'u', 't'}, + FstrENOSR: [25]uint8{'O', 'u', 't', ' ', 'o', 'f', ' ', 's', 't', 'r', 'e', 'a', 'm', 's', ' ', 'r', 'e', 's', 'o', 'u', 'r', 'c', 'e', 's'}, + FstrENOLINK: [22]uint8{'L', 'i', 'n', 'k', ' ', 'h', 'a', 's', ' ', 'b', 'e', 'e', 'n', ' ', 's', 'e', 'v', 'e', 'r', 'e', 'd'}, + FstrEPROTO: [15]uint8{'P', 'r', 'o', 't', 'o', 'c', 'o', 'l', ' ', 'e', 'r', 'r', 'o', 'r'}, + FstrEBADMSG: [12]uint8{'B', 'a', 'd', ' ', 'm', 'e', 's', 's', 'a', 'g', 'e'}, + FstrEBADFD: [29]uint8{'F', 'i', 'l', 'e', ' ', 'd', 'e', 's', 'c', 'r', 'i', 'p', 't', 'o', 'r', ' ', 'i', 'n', ' ', 'b', 'a', 'd', ' ', 's', 't', 'a', 't', 'e'}, + FstrENOTSOCK: [13]uint8{'N', 'o', 't', ' ', 'a', ' ', 's', 'o', 'c', 'k', 'e', 't'}, + FstrEDESTADDRREQ: [29]uint8{'D', 'e', 's', 't', 'i', 'n', 'a', 't', 'i', 'o', 'n', ' ', 'a', 'd', 'd', 'r', 'e', 's', 's', ' ', 'r', 'e', 'q', 'u', 'i', 'r', 'e', 'd'}, + FstrEMSGSIZE: [18]uint8{'M', 'e', 's', 's', 'a', 'g', 'e', ' ', 't', 'o', 'o', ' ', 'l', 'a', 'r', 'g', 'e'}, + FstrEPROTOTYPE: [31]uint8{'P', 'r', 'o', 't', 'o', 'c', 'o', 'l', ' ', 'w', 'r', 'o', 'n', 'g', ' ', 't', 'y', 'p', 'e', ' ', 'f', 'o', 'r', ' ', 's', 'o', 'c', 'k', 'e', 't'}, + FstrENOPROTOOPT: [23]uint8{'P', 'r', 'o', 't', 'o', 'c', 'o', 'l', ' ', 'n', 'o', 't', ' ', 'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e'}, + FstrEPROTONOSUPPORT: [23]uint8{'P', 'r', 'o', 't', 'o', 'c', 'o', 'l', ' ', 'n', 'o', 't', ' ', 's', 'u', 'p', 'p', 'o', 'r', 't', 'e', 'd'}, + FstrESOCKTNOSUPPORT: [26]uint8{'S', 'o', 'c', 'k', 'e', 't', ' ', 't', 'y', 'p', 'e', ' ', 'n', 'o', 't', ' ', 's', 'u', 'p', 'p', 'o', 'r', 't', 'e', 'd'}, + FstrENOTSUP: [14]uint8{'N', 'o', 't', ' ', 's', 'u', 'p', 'p', 'o', 'r', 't', 'e', 'd'}, + FstrEPFNOSUPPORT: [30]uint8{'P', 'r', 'o', 't', 'o', 'c', 'o', 'l', ' ', 'f', 'a', 'm', 'i', 'l', 'y', ' ', 'n', 'o', 't', ' ', 's', 'u', 'p', 'p', 'o', 'r', 't', 'e', 'd'}, + FstrEAFNOSUPPORT: [41]uint8{'A', 'd', 'd', 'r', 'e', 's', 's', ' ', 'f', 'a', 'm', 'i', 'l', 'y', ' ', 'n', 'o', 't', ' ', 's', 'u', 'p', 'p', 'o', 'r', 't', 'e', 'd', ' ', 'b', 'y', ' ', 'p', 'r', 'o', 't', 'o', 'c', 'o', 'l'}, + FstrEADDRNOTAVAIL: [22]uint8{'A', 'd', 'd', 'r', 'e', 's', 's', ' ', 'n', 'o', 't', ' ', 'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e'}, + FstrENETDOWN: [16]uint8{'N', 'e', 't', 'w', 'o', 'r', 'k', ' ', 'i', 's', ' ', 'd', 'o', 'w', 'n'}, + FstrENETUNREACH: [20]uint8{'N', 'e', 't', 'w', 'o', 'r', 'k', ' ', 'u', 'n', 'r', 'e', 'a', 'c', 'h', 'a', 'b', 'l', 'e'}, + FstrENETRESET: [28]uint8{'C', 'o', 'n', 'n', 'e', 'c', 't', 'i', 'o', 'n', ' ', 'r', 'e', 's', 'e', 't', ' ', 'b', 'y', ' ', 'n', 'e', 't', 'w', 'o', 'r', 'k'}, + FstrECONNABORTED: [19]uint8{'C', 'o', 'n', 'n', 'e', 'c', 't', 'i', 'o', 'n', ' ', 'a', 'b', 'o', 'r', 't', 'e', 'd'}, + FstrENOBUFS: [26]uint8{'N', 'o', ' ', 'b', 'u', 'f', 'f', 'e', 'r', ' ', 's', 'p', 'a', 'c', 'e', ' ', 'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e'}, + FstrEISCONN: [20]uint8{'S', 'o', 'c', 'k', 'e', 't', ' ', 'i', 's', ' ', 'c', 'o', 'n', 'n', 'e', 'c', 't', 'e', 'd'}, + FstrENOTCONN: [21]uint8{'S', 'o', 'c', 'k', 'e', 't', ' ', 'n', 'o', 't', ' ', 'c', 'o', 'n', 'n', 'e', 'c', 't', 'e', 'd'}, + FstrESHUTDOWN: [34]uint8{'C', 'a', 'n', 'n', 'o', 't', ' ', 's', 'e', 'n', 'd', ' ', 'a', 'f', 't', 'e', 'r', ' ', 's', 'o', 'c', 'k', 'e', 't', ' ', 's', 'h', 'u', 't', 'd', 'o', 'w', 'n'}, + FstrEALREADY: [30]uint8{'O', 'p', 'e', 'r', 'a', 't', 'i', 'o', 'n', ' ', 'a', 'l', 'r', 'e', 'a', 'd', 'y', ' ', 'i', 'n', ' ', 'p', 'r', 'o', 'g', 'r', 'e', 's', 's'}, + FstrEINPROGRESS: [22]uint8{'O', 'p', 'e', 'r', 'a', 't', 'i', 'o', 'n', ' ', 'i', 'n', ' ', 'p', 'r', 'o', 'g', 'r', 'e', 's', 's'}, + FstrESTALE: [18]uint8{'S', 't', 'a', 'l', 'e', ' ', 'f', 'i', 'l', 'e', ' ', 'h', 'a', 'n', 'd', 'l', 'e'}, + FstrEREMOTEIO: [17]uint8{'R', 'e', 'm', 'o', 't', 'e', ' ', 'I', '/', 'O', ' ', 'e', 'r', 'r', 'o', 'r'}, + FstrEDQUOT: [15]uint8{'Q', 'u', 'o', 't', 'a', ' ', 'e', 'x', 'c', 'e', 'e', 'd', 'e', 'd'}, + FstrENOMEDIUM: [16]uint8{'N', 'o', ' ', 'm', 'e', 'd', 'i', 'u', 'm', ' ', 'f', 'o', 'u', 'n', 'd'}, + FstrEMEDIUMTYPE: [18]uint8{'W', 'r', 'o', 'n', 'g', ' ', 'm', 'e', 'd', 'i', 'u', 'm', ' ', 't', 'y', 'p', 'e'}, + FstrEMULTIHOP: [19]uint8{'M', 'u', 'l', 't', 'i', 'h', 'o', 'p', ' ', 'a', 't', 't', 'e', 'm', 'p', 't', 'e', 'd'}, + FstrENOKEY: [27]uint8{'R', 'e', 'q', 'u', 'i', 'r', 'e', 'd', ' ', 'k', 'e', 'y', ' ', 'n', 'o', 't', ' ', 'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e'}, + FstrEKEYEXPIRED: [16]uint8{'K', 'e', 'y', ' ', 'h', 'a', 's', ' ', 'e', 'x', 'p', 'i', 'r', 'e', 'd'}, + FstrEKEYREVOKED: [21]uint8{'K', 'e', 'y', ' ', 'h', 'a', 's', ' ', 'b', 'e', 'e', 'n', ' ', 'r', 'e', 'v', 'o', 'k', 'e', 'd'}, + FstrEKEYREJECTED: [28]uint8{'K', 'e', 'y', ' ', 'w', 'a', 's', ' ', 'r', 'e', 'j', 'e', 'c', 't', 'e', 'd', ' ', 'b', 'y', ' ', 's', 'e', 'r', 'v', 'i', 'c', 'e'}, +} + +var _errmsgidx = [132]uint16{ + 1: uint16(uint64(UintptrFromInt32(0) + 109)), + 2: uint16(uint64(UintptrFromInt32(0) + 133)), + 3: uint16(uint64(UintptrFromInt32(0) + 159)), + 4: uint16(uint64(UintptrFromInt32(0) + 269)), + 5: uint16(uint64(UintptrFromInt32(0) + 523)), + 6: uint16(uint64(UintptrFromInt32(0) + 533)), + 7: uint16(uint64(UintptrFromInt32(0) + 677)), + 8: uint16(uint64(UintptrFromInt32(0) + 642)), + 9: uint16(uint64(UintptrFromInt32(0) + 797)), + 10: uint16(uint64(UintptrFromInt32(0) + 817)), + 11: uint16(uint64(UintptrFromInt32(0) + 293)), + 12: uint16(uint64(UintptrFromInt32(0) + 241)), + 13: uint16(uint64(UintptrFromInt32(0) + 91)), + 14: uint16(uint64(UintptrFromInt32(0) + 834)), + 15: uint16(uint64(UintptrFromInt32(0) + 559)), + 16: uint16(uint64(UintptrFromInt32(0) + 255)), + 17: uint16(uint64(UintptrFromInt32(0) + 175)), + 18: uint16(uint64(UintptrFromInt32(0) + 339)), + 19: uint16(uint64(UintptrFromInt32(0) + 581)), + 20: uint16(uint64(UintptrFromInt32(0) + 596)), + 21: uint16(uint64(UintptrFromInt32(0) + 612)), + 22: uint16(uint64(UintptrFromInt32(0) + 660)), + 23: uint16(uint64(UintptrFromInt32(0) + 737)), + 24: uint16(uint64(UintptrFromInt32(0) + 767)), + 25: uint16(uint64(UintptrFromInt32(0) + 81)), + 26: uint16(uint64(UintptrFromInt32(0) + 627)), + 27: uint16(uint64(UintptrFromInt32(0) + 846)), + 28: uint16(uint64(UintptrFromInt32(0) + 217)), + 29: uint16(uint64(UintptrFromInt32(0) + 326)), + 30: uint16(uint64(UintptrFromInt32(0) + 357)), + 31: uint16(uint64(UintptrFromInt32(0) + 861)), + 32: uint16(uint64(UintptrFromInt32(0) + 511)), + 33: uint16(uint64(UintptrFromInt32(0) + 43)), + 34: uint16(uint64(UintptrFromInt32(0) + 56)), + 35: uint16(uint64(UintptrFromInt32(0) + 895)), + 36: uint16(uint64(UintptrFromInt32(0) + 719)), + 37: uint16(uint64(UintptrFromInt32(0) + 876)), + 38: uint16(uint64(UintptrFromInt32(0) + 986)), + 39: uint16(uint64(UintptrFromInt32(0) + 379)), + 40: uint16(uint64(UintptrFromInt32(0) + 700)), + 42: uint16(uint64(UintptrFromInt32(0) + 1011)), + 43: uint16(uint64(UintptrFromInt32(0) + 1038)), + 60: uint16(uint64(UintptrFromInt32(0) + 1057)), + 61: uint16(uint64(UintptrFromInt32(0) + 1077)), + 62: uint16(uint64(UintptrFromInt32(0) + 1095)), + 63: uint16(uint64(UintptrFromInt32(0) + 1110)), + 67: uint16(uint64(UintptrFromInt32(0) + 1135)), + 71: uint16(uint64(UintptrFromInt32(0) + 1157)), + 72: uint16(uint64(UintptrFromInt32(0) + 1803)), + 74: uint16(uint64(UintptrFromInt32(0) + 1172)), + 75: uint16(uint64(UintptrFromInt32(0) + 187)), + 77: uint16(uint64(UintptrFromInt32(0) + 1184)), + 84: uint16(uint64(UintptrFromInt32(0) + 21)), + 88: uint16(uint64(UintptrFromInt32(0) + 1213)), + 89: uint16(uint64(UintptrFromInt32(0) + 1226)), + 90: uint16(uint64(UintptrFromInt32(0) + 1255)), + 91: uint16(uint64(UintptrFromInt32(0) + 1273)), + 92: uint16(uint64(UintptrFromInt32(0) + 1304)), + 93: uint16(uint64(UintptrFromInt32(0) + 1327)), + 94: uint16(uint64(UintptrFromInt32(0) + 1350)), + 95: uint16(uint64(UintptrFromInt32(0) + 1376)), + 96: uint16(uint64(UintptrFromInt32(0) + 1390)), + 97: uint16(uint64(UintptrFromInt32(0) + 1420)), + 98: uint16(uint64(UintptrFromInt32(0) + 496)), + 99: uint16(uint64(UintptrFromInt32(0) + 1461)), + 100: uint16(uint64(UintptrFromInt32(0) + 1483)), + 101: uint16(uint64(UintptrFromInt32(0) + 1499)), + 102: uint16(uint64(UintptrFromInt32(0) + 1519)), + 103: uint16(uint64(UintptrFromInt32(0) + 1547)), + 104: uint16(uint64(UintptrFromInt32(0) + 399)), + 105: uint16(uint64(UintptrFromInt32(0) + 1566)), + 106: uint16(uint64(UintptrFromInt32(0) + 1592)), + 107: uint16(uint64(UintptrFromInt32(0) + 1612)), + 108: uint16(uint64(UintptrFromInt32(0) + 1633)), + 110: uint16(uint64(UintptrFromInt32(0) + 424)), + 111: uint16(uint64(UintptrFromInt32(0) + 444)), + 112: uint16(uint64(UintptrFromInt32(0) + 463)), + 113: uint16(uint64(UintptrFromInt32(0) + 476)), + 114: uint16(uint64(UintptrFromInt32(0) + 1667)), + 115: uint16(uint64(UintptrFromInt32(0) + 1697)), + 116: uint16(uint64(UintptrFromInt32(0) + 1719)), + 121: uint16(uint64(UintptrFromInt32(0) + 1737)), + 122: uint16(uint64(UintptrFromInt32(0) + 1754)), + 123: uint16(uint64(UintptrFromInt32(0) + 1769)), + 124: uint16(uint64(UintptrFromInt32(0) + 1785)), + 125: uint16(uint64(UintptrFromInt32(0) + 967)), + 126: uint16(uint64(UintptrFromInt32(0) + 1822)), + 127: uint16(uint64(UintptrFromInt32(0) + 1849)), + 128: uint16(uint64(UintptrFromInt32(0) + 1865)), + 129: uint16(uint64(UintptrFromInt32(0) + 1886)), + 130: uint16(uint64(UintptrFromInt32(0) + 947)), + 131: uint16(uint64(UintptrFromInt32(0) + 925)), +} + +func X__strerror_l(tls *TLS, e int32, loc Tlocale_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v e=%v loc=%v, (%v:)", tls, e, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + var s uintptr + _ = s + if Uint64FromInt32(e) >= Uint64FromInt64(264)/Uint64FromInt64(2) { + e = 0 + } + s = uintptr(unsafe.Pointer(&_errmsgstr)) + uintptr(_errmsgidx[e]) + return X__lctrans(tls, s, **(**uintptr)(__ccgo_up(loc + 5*8))) +} + +func Xstrerror(tls *TLS, e int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v e=%v, (%v:)", tls, e, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__strerror_l(tls, e, (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale) +} + +func Xstrerror_l(tls *TLS, e int32, loc Tlocale_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v e=%v loc=%v, (%v:)", tls, e, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__strerror_l(tls, e, loc) +} + +func X_Exit(tls *TLS, ec int32) { + if __ccgo_strace { + trc("tls=%v ec=%v, (%v:)", tls, ec, origin(2)) + } + X__syscall1(tls, int64(SYS_exit_group), int64(ec)) + for { + X__syscall1(tls, int64(SYS_exit), int64(ec)) + goto _1 + _1: + } +} + +func X__assert_fail(tls *TLS, expr uintptr, file uintptr, line int32, func1 uintptr) { + if __ccgo_strace { + trc("tls=%v expr=%v file=%v line=%v func1=%v, (%v:)", tls, expr, file, line, func1, origin(2)) + } + bp := tls.Alloc(48) + defer tls.Free(48) + Xfprintf(tls, uintptr(unsafe.Pointer(&X__stderr_FILE)), __ccgo_ts+278, VaList(bp+8, expr, file, func1, line)) + Xabort(tls) +} + +const COUNT = 32 + +var _funcs [32]uintptr +var _count int32 +var _lock [1]int32 + +func X__funcs_on_quick_exit(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + var func1 uintptr + var v1 int32 + _, _ = func1, v1 + ___lock(tls, uintptr(unsafe.Pointer(&_lock))) + for _count > 0 { + _count = _count - 1 + v1 = _count + func1 = _funcs[v1] + ___unlock(tls, uintptr(unsafe.Pointer(&_lock))) + (*(*func(*TLS))(unsafe.Pointer(&struct{ uintptr }{func1})))(tls) + ___lock(tls, uintptr(unsafe.Pointer(&_lock))) + } +} + +type t__ccgo_fp__Xat_quick_exit_0 = func(*TLS) + +func Xat_quick_exit(tls *TLS, __ccgo_fp_func uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v __ccgo_fp_func=%v, (%v:)", tls, __ccgo_fp_func, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v1 int32 + _, _ = r, v1 + r = 0 + ___lock(tls, uintptr(unsafe.Pointer(&_lock))) + if _count == int32(32) { + r = -int32(1) + } else { + v1 = _count + _count = _count + 1 + _funcs[v1] = __ccgo_fp_func + } + ___unlock(tls, uintptr(unsafe.Pointer(&_lock))) + return r +} + +func _dummy3(tls *TLS) { +} + +func Xquick_exit(tls *TLS, code int32) { + if __ccgo_strace { + trc("tls=%v code=%v, (%v:)", tls, code, origin(2)) + } + X__funcs_on_quick_exit(tls) + X_Exit(tls, code) +} + +func Xcreat(tls *TLS, filename uintptr, mode Tmode_t) (r int32) { + if __ccgo_strace { + trc("tls=%v filename=%v mode=%v, (%v:)", tls, filename, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + return Xopen(tls, filename, Int32FromInt32(O_CREAT)|Int32FromInt32(O_WRONLY)|Int32FromInt32(O_TRUNC), VaList(bp+8, mode)) +} + +func Xfcntl(tls *TLS, fd int32, cmd int32, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v cmd=%v va=%v, (%v:)", tls, fd, cmd, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ap Tva_list + var arg uint64 + var ret, ret1, v1 int32 + var _ /* ex at bp+0 */ Tf_owner_ex + _, _, _, _, _ = ap, arg, ret, ret1, v1 + ap = va + arg = VaUint64(&ap) + _ = ap + if cmd == int32(F_SETFL) { + arg = arg | uint64(O_LARGEFILE) + } + if cmd == int32(F_SETLKW) { + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_fcntl), int64(fd), int64(cmd), int64(uintptr(arg)), 0, 0, 0)))) + } + if cmd == int32(F_GETOWN) { + ret = int32(X__syscall3(tls, int64(SYS_fcntl), int64(fd), int64(Int32FromInt32(F_GETOWN_EX)), int64(bp))) + if ret == -int32(EINVAL) { + return int32(X__syscall3(tls, int64(SYS_fcntl), int64(fd), int64(cmd), int64(uintptr(arg)))) + } + if ret != 0 { + return int32(X__syscall_ret(tls, Uint64FromInt32(ret))) + } + if (**(**Tf_owner_ex)(__ccgo_up(bp))).Ftype1 == int32(F_OWNER_PGRP) { + v1 = -(**(**Tf_owner_ex)(__ccgo_up(bp))).Fpid + } else { + v1 = (**(**Tf_owner_ex)(__ccgo_up(bp))).Fpid + } + return v1 + } + if cmd == int32(F_DUPFD_CLOEXEC) { + ret1 = int32(X__syscall3(tls, int64(SYS_fcntl), int64(fd), int64(Int32FromInt32(F_DUPFD_CLOEXEC)), Int64FromUint64(arg))) + if ret1 != -int32(EINVAL) { + if ret1 >= 0 { + X__syscall3(tls, int64(SYS_fcntl), int64(ret1), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + } + return int32(X__syscall_ret(tls, Uint64FromInt32(ret1))) + } + ret1 = int32(X__syscall3(tls, int64(SYS_fcntl), int64(fd), int64(Int32FromInt32(F_DUPFD_CLOEXEC)), int64(Int32FromInt32(0)))) + if ret1 != -int32(EINVAL) { + if ret1 >= 0 { + X__syscall1(tls, int64(SYS_close), int64(ret1)) + } + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL)))) + } + ret1 = int32(X__syscall3(tls, int64(SYS_fcntl), int64(fd), int64(Int32FromInt32(F_DUPFD)), Int64FromUint64(arg))) + if ret1 >= 0 { + X__syscall3(tls, int64(SYS_fcntl), int64(ret1), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + } + return int32(X__syscall_ret(tls, Uint64FromInt32(ret1))) + } + switch cmd { + case int32(F_SETLK): + fallthrough + case int32(F_GETLK): + fallthrough + case int32(F_GETOWN_EX): + fallthrough + case int32(F_SETOWN_EX): + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_fcntl), int64(fd), int64(cmd), int64(uintptr(arg)))))) + default: + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_fcntl), int64(fd), int64(cmd), Int64FromUint64(arg))))) + } + return r +} + +func Xopen(tls *TLS, filename uintptr, flags int32, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v filename=%v flags=%v va=%v, (%v:)", tls, filename, flags, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var fd int32 + var mode Tmode_t + _, _, _ = ap, fd, mode + mode = uint32(0) + if flags&int32(O_CREAT) != 0 || flags&int32(O_TMPFILE) == int32(O_TMPFILE) { + ap = va + mode = VaUint32(&ap) + _ = ap + } + fd = int32(___syscall_cp(tls, int64(SYS_open), int64(filename), int64(flags|Int32FromInt32(O_LARGEFILE)), Int64FromUint32(mode), 0, 0, 0)) + if fd >= 0 && flags&int32(O_CLOEXEC) != 0 { + X__syscall3(tls, int64(SYS_fcntl), int64(fd), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + } + return int32(X__syscall_ret(tls, Uint64FromInt32(fd))) +} + +func Xopenat(tls *TLS, fd int32, filename uintptr, flags int32, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v filename=%v flags=%v va=%v, (%v:)", tls, fd, filename, flags, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var mode Tmode_t + _, _ = ap, mode + mode = uint32(0) + if flags&int32(O_CREAT) != 0 || flags&int32(O_TMPFILE) == int32(O_TMPFILE) { + ap = va + mode = VaUint32(&ap) + _ = ap + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_openat), int64(fd), int64(filename), int64(flags|Int32FromInt32(O_LARGEFILE)), Int64FromUint32(mode), 0, 0)))) +} + +func Xposix_fadvise(tls *TLS, fd int32, base Toff_t, len1 Toff_t, advice int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v base=%v len1=%v advice=%v, (%v:)", tls, fd, base, len1, advice, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(-X__syscall4(tls, int64(SYS_fadvise64), int64(fd), base, len1, int64(advice))) +} + +func Xposix_fallocate(tls *TLS, fd int32, base Toff_t, len1 Toff_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v base=%v len1=%v, (%v:)", tls, fd, base, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(-X__syscall4(tls, int64(SYS_fallocate), int64(fd), int64(Int32FromInt32(0)), base, len1)) +} + +const FE_ALL_EXCEPT = 1040187392 +const FE_ALL_INVALID = 33031936 +const FE_DIVBYZERO = 67108864 +const FE_DOWNWARD = 3 +const FE_INEXACT = 33554432 +const FE_INVALID = 536870912 +const FE_INVALID_COMPARE = 524288 +const FE_INVALID_IDI = 4194304 +const FE_INVALID_IMZ = 1048576 +const FE_INVALID_INTEGER_CONVERSION = 256 +const FE_INVALID_ISI = 8388608 +const FE_INVALID_SNAN = 16777216 +const FE_INVALID_SOFTWARE = 1024 +const FE_INVALID_SQRT = 512 +const FE_INVALID_ZDZ = 2097152 +const FE_OVERFLOW = 268435456 +const FE_TONEAREST = 0 +const FE_TOWARDZERO = 1 +const FE_UNDERFLOW = 134217728 +const FE_UPWARD = 2 + +type Tfexcept_t = uint32 + +type Tfenv_t = float64 + +func _get_fpscr_f(tls *TLS) (r float64) { + var d float64 + _ = d + // __asm__ __volatile__("mffs %0" : "=d"(d)); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+313, 8, __ccgo_ts+320) + return d +} + +func _get_fpscr(tls *TLS) (r int64) { + var v1 float64 + _ = v1 + v1 = _get_fpscr_f(tls) + return *(*int64)(unsafe.Pointer(&v1)) +} + +func _set_fpscr_f(tls *TLS, fpscr float64) { + // __asm__ __volatile__("mtfsf 255, %0" : : "d"(fpscr)); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+313, 19, __ccgo_ts+332) +} + +func _set_fpscr(tls *TLS, fpscr int64) { + _set_fpscr_f(tls, *(*float64)(unsafe.Pointer(&fpscr))) +} + +func Xfeclearexcept(tls *TLS, mask int32) (r int32) { + if __ccgo_strace { + trc("tls=%v mask=%v, (%v:)", tls, mask, origin(2)) + defer func() { trc("-> %v", r) }() + } + mask = mask & int32(FE_ALL_EXCEPT) + if mask&int32(FE_INVALID) != 0 { + mask = mask | int32(FE_ALL_INVALID) + } + _set_fpscr(tls, _get_fpscr(tls)&int64(^mask)) + return 0 +} + +func Xferaiseexcept(tls *TLS, mask int32) (r int32) { + if __ccgo_strace { + trc("tls=%v mask=%v, (%v:)", tls, mask, origin(2)) + defer func() { trc("-> %v", r) }() + } + mask = mask & int32(FE_ALL_EXCEPT) + if mask&int32(FE_INVALID) != 0 { + mask = mask | int32(FE_INVALID_SOFTWARE) + } + _set_fpscr(tls, _get_fpscr(tls)|int64(mask)) + return 0 +} + +func Xfetestexcept(tls *TLS, mask int32) (r int32) { + if __ccgo_strace { + trc("tls=%v mask=%v, (%v:)", tls, mask, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(_get_fpscr(tls) & int64(mask) & int64(FE_ALL_EXCEPT)) +} + +func Xfegetround(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(_get_fpscr(tls) & int64(3)) +} + +func X__fesetround(tls *TLS, r int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v r=%v, (%v:)", tls, r, origin(2)) + defer func() { trc("-> %v", r1) }() + } + _set_fpscr(tls, _get_fpscr(tls) & ^Int64FromInt64(3) | int64(r)) + return 0 +} + +func Xfegetenv(tls *TLS, envp uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v envp=%v, (%v:)", tls, envp, origin(2)) + defer func() { trc("-> %v", r) }() + } + **(**Tfenv_t)(__ccgo_up(envp)) = _get_fpscr_f(tls) + return 0 +} + +func Xfesetenv(tls *TLS, envp uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v envp=%v, (%v:)", tls, envp, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 Tfenv_t + _ = v1 + if envp != uintptr(-Int32FromInt32(1)) { + v1 = **(**Tfenv_t)(__ccgo_up(envp)) + } else { + v1 = Float64FromInt32(0) + } + _set_fpscr_f(tls, v1) + return 0 +} + +const WCONTINUED = 8 +const WEXITED = 4 +const WNOWAIT = 16777216 +const WSTOPPED = 2 +const __WALL = 1073741824 +const __WCLONE = 2147483648 +const __WNOTHREAD = 536870912 + +type Tidtype_t = int32 + +const _P_ALL = 0 +const _P_PID = 1 +const _P_PGID = 2 +const _P_PIDFD = 3 +const F_APP = 128 +const F_EOF = 16 +const F_ERR = 32 +const F_NORD = 4 +const F_NOWR = 8 +const F_PERM = 1 +const F_SVB = 64 +const KMAX = 128 +const LDBL_EPSILON1 = 2.22044604925031308085e-16 +const LDBL_MAX1 = 1.79769313486231570815e+308 +const LDBL_MIN1 = 2.22507385850720138309e-308 +const LD_B1B_DIG = 2 +const LD_B1B_MAX = 254740991 +const MASK = 127 +const MAYBE_WAITERS = 1073741824 +const UNGET = 8 + +type TFILE = struct { + Fflags uint32 + Frpos uintptr + Frend uintptr + Fclose1 uintptr + Fwend uintptr + Fwpos uintptr + Fmustbezero_1 uintptr + Fwbase uintptr + Fread uintptr + Fwrite uintptr + Fseek uintptr + Fbuf uintptr + Fbuf_size Tsize_t + Fprev uintptr + Fnext uintptr + Ffd int32 + Fpipe_pid int32 + Flockcount int64 + Fmode int32 + Flock int32 + Flbf int32 + Fcookie uintptr + Foff Toff_t + Fgetln_buf uintptr + Fmustbezero_2 uintptr + Fshend uintptr + Fshlim Toff_t + Fshcnt Toff_t + Fprev_locked uintptr + Fnext_locked uintptr + Flocale uintptr +} + +type T_IO_FILE = TFILE + +func _scanexp(tls *TLS, f uintptr, pok int32) (r int64) { + var c, neg, x, v1 int32 + var y, v19 int64 + var v2, v3 uintptr + _, _, _, _, _, _, _, _ = c, neg, x, y, v1, v19, v2, v3 + neg = 0 + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v3 = f + 8 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + if c == int32('+') || c == int32('-') { + neg = BoolInt32(c == int32('-')) + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v3 = f + 8 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + if Uint32FromInt32(c-int32('0')) >= uint32(10) && pok != 0 { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + } + } + if Uint32FromInt32(c-int32('0')) >= uint32(10) { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + return -Int64FromInt64(0x7fffffffffffffff) - Int64FromInt32(1) + } + x = 0 + for { + if !(Uint32FromInt32(c-int32('0')) < uint32(10) && x < Int32FromInt32(INT_MAX)/Int32FromInt32(10)) { + break + } + x = int32(10)*x + c - int32('0') + goto _7 + _7: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v3 = f + 8 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + y = int64(x) + for { + if !(Uint32FromInt32(c-int32('0')) < uint32(10) && y < Int64FromInt64(0x7fffffffffffffff)/Int64FromInt32(100)) { + break + } + y = int64(10)*y + int64(c) - int64('0') + goto _11 + _11: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v3 = f + 8 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + for { + if !(Uint32FromInt32(c-int32('0')) < uint32(10)) { + break + } + goto _15 + _15: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v3 = f + 8 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + if neg != 0 { + v19 = -y + } else { + v19 = y + } + return v19 +} + +func _decfloat(tls *TLS, f uintptr, c int32, bits int32, emin int32, sign int32, pok int32) (r float64) { + bp := tls.Alloc(512) + defer tls.Free(512) + var a, bitlim, denormal, e2, emax, gotdig, gotrad, i, j, k, lnz, p10, rp, rpm9, sh, z, v2, v6 int32 + var bias, frac, y float64 + var carry, carry1, carry2, t, tmp, tmp2 Tuint32_t + var dc, e10, lrp int64 + var tmp1 Tuint64_t + var v3, v4 uintptr + var _ /* x at bp+0 */ [128]Tuint32_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = a, bias, bitlim, carry, carry1, carry2, dc, denormal, e10, e2, emax, frac, gotdig, gotrad, i, j, k, lnz, lrp, p10, rp, rpm9, sh, t, tmp, tmp1, tmp2, y, z, v2, v3, v4, v6 + lrp = 0 + dc = 0 + e10 = 0 + lnz = 0 + gotdig = 0 + gotrad = 0 + emax = -emin - bits + int32(3) + denormal = 0 + frac = Float64FromInt32(0) + bias = Float64FromInt32(0) + j = 0 + k = 0 + /* Don't let leading zeros consume buffer space */ + for { + if !(c == int32('0')) { + break + } + gotdig = int32(1) + goto _1 + _1: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v2 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v2 = X__shgetc(tls, f) + } + c = v2 + } + if c == int32('.') { + gotrad = int32(1) + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v2 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v2 = X__shgetc(tls, f) + } + c = v2 + for { + if !(c == int32('0')) { + break + } + gotdig = int32(1) + lrp = lrp - 1 + goto _5 + _5: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v2 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v2 = X__shgetc(tls, f) + } + c = v2 + } + } + (**(**[128]Tuint32_t)(__ccgo_up(bp)))[0] = uint32(0) + for { + if !(Uint32FromInt32(c-int32('0')) < uint32(10) || c == int32('.')) { + break + } + if c == int32('.') { + if gotrad != 0 { + break + } + gotrad = int32(1) + lrp = dc + } else { + if k < Int32FromInt32(KMAX)-Int32FromInt32(3) { + dc = dc + 1 + if c != int32('0') { + lnz = int32(dc) + } + if j != 0 { + (**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] = (**(**[128]Tuint32_t)(__ccgo_up(bp)))[k]*uint32(10) + Uint32FromInt32(c) - uint32('0') + } else { + (**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] = Uint32FromInt32(c - int32('0')) + } + j = j + 1 + v2 = j + if v2 == int32(9) { + k = k + 1 + j = 0 + } + gotdig = int32(1) + } else { + dc = dc + 1 + if c != int32('0') { + lnz = (Int32FromInt32(KMAX) - Int32FromInt32(4)) * Int32FromInt32(9) + **(**Tuint32_t)(__ccgo_up(bp + uintptr(Int32FromInt32(KMAX)-Int32FromInt32(4))*4)) |= uint32(1) + } + } + } + goto _12 + _12: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v2 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v2 = X__shgetc(tls, f) + } + c = v2 + } + if !(gotrad != 0) { + lrp = dc + } + if gotdig != 0 && c|int32(32) == int32('e') { + e10 = _scanexp(tls, f, pok) + if e10 == -Int64FromInt64(0x7fffffffffffffff)-Int64FromInt32(1) { + if pok != 0 { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + } else { + X__shlim(tls, f, int64(Int32FromInt32(0))) + return Float64FromInt32(0) + } + e10 = 0 + } + lrp = lrp + e10 + } else { + if c >= 0 { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + } + } + if !(gotdig != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + X__shlim(tls, f, int64(Int32FromInt32(0))) + return Float64FromInt32(0) + } + /* Handle zero specially to avoid nasty special cases later */ + if !((**(**[128]Tuint32_t)(__ccgo_up(bp)))[0] != 0) { + return float64(float64(sign) * float64(0)) + } + /* Optimize small integers (w/no exponent) and over/under-flow */ + if lrp == dc && dc < int64(10) && (bits > int32(30) || (**(**[128]Tuint32_t)(__ccgo_up(bp)))[0]>>bits == uint32(0)) { + return float64(float64(sign) * float64((**(**[128]Tuint32_t)(__ccgo_up(bp)))[0])) + } + if lrp > int64(-emin/int32(2)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ERANGE) + return float64(float64(float64(sign)*Float64FromFloat64(1.79769313486231570815e+308)) * Float64FromFloat64(1.79769313486231570815e+308)) + } + if lrp < int64(emin-Int32FromInt32(2)*Int32FromInt32(LDBL_MANT_DIG)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ERANGE) + return float64(float64(float64(sign)*Float64FromFloat64(2.22507385850720138309e-308)) * Float64FromFloat64(2.22507385850720138309e-308)) + } + /* Align incomplete final B1B digit */ + if j != 0 { + for { + if !(j < int32(9)) { + break + } + **(**Tuint32_t)(__ccgo_up(bp + uintptr(k)*4)) *= uint32(10) + goto _17 + _17: + ; + j = j + 1 + } + k = k + 1 + j = 0 + } + a = 0 + z = k + e2 = 0 + rp = int32(lrp) + /* Optimize small to mid-size integers (even in exp. notation) */ + if lnz < int32(9) && lnz <= rp && rp < int32(18) { + if rp == int32(9) { + return float64(float64(sign) * float64((**(**[128]Tuint32_t)(__ccgo_up(bp)))[0])) + } + if rp < int32(9) { + return float64(float64(sign)*float64((**(**[128]Tuint32_t)(__ccgo_up(bp)))[0])) / float64(_p10s[int32(8)-rp]) + } + bitlim = bits - int32(3)*(rp-Int32FromInt32(9)) + if bitlim > int32(30) || (**(**[128]Tuint32_t)(__ccgo_up(bp)))[0]>>bitlim == uint32(0) { + return float64(float64(float64(sign)*float64((**(**[128]Tuint32_t)(__ccgo_up(bp)))[0])) * float64(_p10s[rp-int32(10)])) + } + } + /* Drop trailing zeros */ + for { + if !!((**(**[128]Tuint32_t)(__ccgo_up(bp)))[z-int32(1)] != 0) { + break + } + goto _18 + _18: + ; + z = z - 1 + } + /* Align radix point to B1B digit boundary */ + if rp%int32(9) != 0 { + if rp >= 0 { + v2 = rp % int32(9) + } else { + v2 = rp%int32(9) + int32(9) + } + rpm9 = v2 + p10 = _p10s[int32(8)-rpm9] + carry = uint32(0) + k = a + for { + if !(k != z) { + break + } + tmp = (**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] % Uint32FromInt32(p10) + (**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] = (**(**[128]Tuint32_t)(__ccgo_up(bp)))[k]/Uint32FromInt32(p10) + carry + carry = Uint32FromInt32(int32(1000000000)/p10) * tmp + if k == a && !((**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] != 0) { + a = (a + int32(1)) & (Int32FromInt32(KMAX) - Int32FromInt32(1)) + rp = rp - int32(9) + } + goto _20 + _20: + ; + k = k + 1 + } + if carry != 0 { + v2 = z + z = z + 1 + (**(**[128]Tuint32_t)(__ccgo_up(bp)))[v2] = carry + } + rp = rp + (int32(9) - rpm9) + } + /* Upscale until desired number of bits are left of radix point */ + for rp < Int32FromInt32(9)*Int32FromInt32(LD_B1B_DIG) || rp == Int32FromInt32(9)*Int32FromInt32(LD_B1B_DIG) && (**(**[128]Tuint32_t)(__ccgo_up(bp)))[a] < _th[0] { + carry1 = uint32(0) + e2 = e2 - int32(29) + k = (z - int32(1)) & (Int32FromInt32(KMAX) - Int32FromInt32(1)) + for { + tmp1 = uint64((**(**[128]Tuint32_t)(__ccgo_up(bp)))[k])< uint64(1000000000) { + carry1 = uint32(tmp1 / uint64(1000000000)) + (**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] = uint32(tmp1 % uint64(1000000000)) + } else { + carry1 = uint32(0) + (**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] = uint32(tmp1) + } + if k == (z-int32(1))&(Int32FromInt32(KMAX)-Int32FromInt32(1)) && k != a && !((**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] != 0) { + z = k + } + if k == a { + break + } + goto _22 + _22: + ; + k = (k - int32(1)) & (Int32FromInt32(KMAX) - Int32FromInt32(1)) + } + if carry1 != 0 { + rp = rp + int32(9) + a = (a - int32(1)) & (Int32FromInt32(KMAX) - Int32FromInt32(1)) + if a == z { + z = (z - int32(1)) & (Int32FromInt32(KMAX) - Int32FromInt32(1)) + **(**Tuint32_t)(__ccgo_up(bp + uintptr((z-int32(1))&(Int32FromInt32(KMAX)-Int32FromInt32(1)))*4)) |= (**(**[128]Tuint32_t)(__ccgo_up(bp)))[z] + } + (**(**[128]Tuint32_t)(__ccgo_up(bp)))[a] = carry1 + } + } + /* Downscale until exactly number of bits are left of radix point */ + for { + carry2 = uint32(0) + sh = int32(1) + i = 0 + for { + if !(i < int32(LD_B1B_DIG)) { + break + } + k = (a + i) & (Int32FromInt32(KMAX) - Int32FromInt32(1)) + if k == z || (**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] < _th[i] { + i = int32(LD_B1B_DIG) + break + } + if (**(**[128]Tuint32_t)(__ccgo_up(bp)))[(a+i)&(Int32FromInt32(KMAX)-Int32FromInt32(1))] > _th[i] { + break + } + goto _24 + _24: + ; + i = i + 1 + } + if i == int32(LD_B1B_DIG) && rp == Int32FromInt32(9)*Int32FromInt32(LD_B1B_DIG) { + break + } + /* FIXME: find a way to compute optimal sh */ + if rp > Int32FromInt32(9)+Int32FromInt32(9)*Int32FromInt32(LD_B1B_DIG) { + sh = int32(9) + } + e2 = e2 + sh + k = a + for { + if !(k != z) { + break + } + tmp2 = (**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] & Uint32FromInt32(int32(1)<>sh + carry2 + carry2 = Uint32FromInt32(Int32FromInt32(1000000000)>>sh) * tmp2 + if k == a && !((**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] != 0) { + a = (a + int32(1)) & (Int32FromInt32(KMAX) - Int32FromInt32(1)) + i = i - 1 + rp = rp - int32(9) + } + goto _25 + _25: + ; + k = (k + int32(1)) & (Int32FromInt32(KMAX) - Int32FromInt32(1)) + } + if carry2 != 0 { + if (z+int32(1))&(Int32FromInt32(KMAX)-Int32FromInt32(1)) != a { + (**(**[128]Tuint32_t)(__ccgo_up(bp)))[z] = carry2 + z = (z + int32(1)) & (Int32FromInt32(KMAX) - Int32FromInt32(1)) + } else { + **(**Tuint32_t)(__ccgo_up(bp + uintptr((z-int32(1))&(Int32FromInt32(KMAX)-Int32FromInt32(1)))*4)) |= uint32(1) + } + } + goto _23 + _23: + } + /* Assemble desired bits into floating point variable */ + v2 = Int32FromInt32(0) + i = v2 + y = float64(v2) + for { + if !(i < int32(LD_B1B_DIG)) { + break + } + if (a+i)&(Int32FromInt32(KMAX)-Int32FromInt32(1)) == z { + v6 = (z + Int32FromInt32(1)) & (Int32FromInt32(KMAX) - Int32FromInt32(1)) + z = v6 + (**(**[128]Tuint32_t)(__ccgo_up(bp)))[v6-int32(1)] = uint32(0) + } + y = float64(Float64FromFloat64(1e+09)*y) + float64((**(**[128]Tuint32_t)(__ccgo_up(bp)))[(a+i)&(Int32FromInt32(KMAX)-Int32FromInt32(1))]) + goto _26 + _26: + ; + i = i + 1 + } + y = y * float64(sign) + /* Limit precision for denormal results */ + if bits > int32(LDBL_MANT_DIG)+e2-emin { + bits = int32(LDBL_MANT_DIG) + e2 - emin + if bits < 0 { + bits = 0 + } + denormal = int32(1) + } + /* Calculate bias term to force rounding, move out lower bits */ + if bits < int32(LDBL_MANT_DIG) { + bias = Xcopysignl(tls, Xscalbn(tls, Float64FromInt32(1), Int32FromInt32(2)*Int32FromInt32(LDBL_MANT_DIG)-bits-int32(1)), y) + frac = Xfmodl(tls, y, Xscalbn(tls, Float64FromInt32(1), int32(LDBL_MANT_DIG)-bits)) + y = y - frac + y = y + bias + } + /* Process tail of decimal input so it can affect rounding */ + if (a+i)&(Int32FromInt32(KMAX)-Int32FromInt32(1)) != z { + t = (**(**[128]Tuint32_t)(__ccgo_up(bp)))[(a+i)&(Int32FromInt32(KMAX)-Int32FromInt32(1))] + if t < uint32(500000000) && (t != 0 || (a+i+int32(1))&(Int32FromInt32(KMAX)-Int32FromInt32(1)) != z) { + frac = frac + float64(float64(0.25)*float64(sign)) + } else { + if t > uint32(500000000) { + frac = frac + float64(float64(0.75)*float64(sign)) + } else { + if t == uint32(500000000) { + if (a+i+int32(1))&(Int32FromInt32(KMAX)-Int32FromInt32(1)) == z { + frac = frac + float64(float64(0.5)*float64(sign)) + } else { + frac = frac + float64(float64(0.75)*float64(sign)) + } + } + } + } + if int32(LDBL_MANT_DIG)-bits >= int32(2) && !(Xfmodl(tls, frac, Float64FromInt32(1)) != 0) { + frac = frac + 1 + } + } + y = y + frac + y = y - bias + if (e2+int32(LDBL_MANT_DIG))&int32(INT_MAX) > emax-int32(5) { + if Xfabsl(tls, y) >= Float64FromInt32(2)/Float64FromFloat64(2.22044604925031308085e-16) { + if denormal != 0 && bits == int32(LDBL_MANT_DIG)+e2-emin { + denormal = 0 + } + y = y * Float64FromFloat64(0.5) + e2 = e2 + 1 + } + if e2+int32(LDBL_MANT_DIG) > emax || denormal != 0 && frac != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ERANGE) + } + } + return Xscalbnl(tls, y, e2) +} + +var _th = [2]Tuint32_t{ + 0: uint32(9007199), + 1: uint32(254740991), +} + +var _p10s = [8]int32{ + 0: int32(10), + 1: int32(100), + 2: int32(1000), + 3: int32(10000), + 4: int32(100000), + 5: int32(1000000), + 6: int32(10000000), + 7: int32(100000000), +} + +func _hexfloat(tls *TLS, f uintptr, bits int32, emin int32, sign int32, pok int32) (r float64) { + var bias, scale, y float64 + var c, d, gotdig, gotrad, gottail, v1 int32 + var dc, e2, rp int64 + var x Tuint32_t + var v2, v3 uintptr + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = bias, c, d, dc, e2, gotdig, gotrad, gottail, rp, scale, x, y, v1, v2, v3 + x = uint32(0) + y = Float64FromInt32(0) + scale = Float64FromInt32(1) + bias = Float64FromInt32(0) + gottail = 0 + gotrad = 0 + gotdig = 0 + rp = 0 + dc = 0 + e2 = 0 + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v3 = f + 8 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + /* Skip leading zeros */ + for { + if !(c == int32('0')) { + break + } + gotdig = int32(1) + goto _4 + _4: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v3 = f + 8 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + if c == int32('.') { + gotrad = int32(1) + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v3 = f + 8 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + /* Count zeros after the radix point before significand */ + rp = 0 + for { + if !(c == int32('0')) { + break + } + gotdig = int32(1) + goto _11 + _11: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v3 = f + 8 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + rp = rp - 1 + } + } + for { + if !(Uint32FromInt32(c-int32('0')) < uint32(10) || Uint32FromInt32(c|int32(32)-int32('a')) < uint32(6) || c == int32('.')) { + break + } + if c == int32('.') { + if gotrad != 0 { + break + } + rp = dc + gotrad = int32(1) + } else { + gotdig = int32(1) + if c > int32('9') { + d = c | int32(32) + int32(10) - int32('a') + } else { + d = c - int32('0') + } + if dc < int64(8) { + x = x*uint32(16) + Uint32FromInt32(d) + } else { + if dc < int64(Int32FromInt32(LDBL_MANT_DIG)/Int32FromInt32(4)+Int32FromInt32(1)) { + scale = scale / Float64FromInt32(16) + y = y + float64(float64(d)*scale) + } else { + if d != 0 && !(gottail != 0) { + y = y + float64(Float64FromFloat64(0.5)*scale) + gottail = int32(1) + } + } + } + dc = dc + 1 + } + goto _15 + _15: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v3 = f + 8 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + if !(gotdig != 0) { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + if pok != 0 { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + if gotrad != 0 { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + } + } else { + X__shlim(tls, f, int64(Int32FromInt32(0))) + } + return float64(float64(sign) * float64(0)) + } + if !(gotrad != 0) { + rp = dc + } + for dc < int64(8) { + x = x * uint32(16) + dc = dc + 1 + } + if c|int32(32) == int32('p') { + e2 = _scanexp(tls, f, pok) + if e2 == -Int64FromInt64(0x7fffffffffffffff)-Int64FromInt32(1) { + if pok != 0 { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + } else { + X__shlim(tls, f, int64(Int32FromInt32(0))) + return Float64FromInt32(0) + } + e2 = 0 + } + } else { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + } + e2 = e2 + (int64(4)*rp - int64(32)) + if !(x != 0) { + return float64(float64(sign) * float64(0)) + } + if e2 > int64(-emin) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ERANGE) + return float64(float64(float64(sign)*Float64FromFloat64(1.79769313486231570815e+308)) * Float64FromFloat64(1.79769313486231570815e+308)) + } + if e2 < int64(emin-Int32FromInt32(2)*Int32FromInt32(LDBL_MANT_DIG)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ERANGE) + return float64(float64(float64(sign)*Float64FromFloat64(2.22507385850720138309e-308)) * Float64FromFloat64(2.22507385850720138309e-308)) + } + for x < uint32(0x80000000) { + if y >= Float64FromFloat64(0.5) { + x = x + (x + uint32(1)) + y = y + (y - Float64FromInt32(1)) + } else { + x = x + x + y = y + y + } + e2 = e2 - 1 + } + if int64(bits) > int64(32)+e2-int64(emin) { + bits = int32(int64(32) + e2 - int64(emin)) + if bits < 0 { + bits = 0 + } + } + if bits < int32(LDBL_MANT_DIG) { + bias = Xcopysignl(tls, Xscalbn(tls, Float64FromInt32(1), Int32FromInt32(32)+Int32FromInt32(LDBL_MANT_DIG)-bits-int32(1)), float64(sign)) + } + if bits < int32(32) && y != 0 && !(x&Uint32FromInt32(1) != 0) { + x = x + 1 + y = Float64FromInt32(0) + } + y = bias + float64(float64(sign)*float64(x)) + float64(float64(sign)*y) + y = y - bias + if !(y != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ERANGE) + } + return Xscalbnl(tls, y, int32(e2)) +} + +func X__floatscan(tls *TLS, f uintptr, prec int32, pok int32) (r float64) { + if __ccgo_strace { + trc("tls=%v f=%v prec=%v pok=%v, (%v:)", tls, f, prec, pok, origin(2)) + defer func() { trc("-> %v", r) }() + } + var bits, c, emin, sign, v1, v2, v5, v6 int32 + var i, v27 Tsize_t + var v3, v4 uintptr + _, _, _, _, _, _, _, _, _, _, _, _ = bits, c, emin, i, sign, v1, v2, v27, v3, v4, v5, v6 + sign = int32(1) + switch prec { + case 0: + bits = int32(FLT_MANT_DIG) + emin = -int32(125) - bits + case int32(1): + bits = int32(DBL_MANT_DIG) + emin = -int32(1021) - bits + case int32(2): + bits = int32(LDBL_MANT_DIG) + emin = -int32(1021) - bits + default: + return Float64FromInt32(0) + } + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v2 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v2 = X__shgetc(tls, f) + } + v1 = v2 + c = v1 + v5 = v1 + v6 = BoolInt32(v5 == int32(' ') || Uint32FromInt32(v5)-uint32('\t') < uint32(5)) + goto _7 + _7: + if !(v6 != 0) { + break + } + } + if c == int32('+') || c == int32('-') { + sign = sign - int32(2)*BoolInt32(c == int32('-')) + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + i = uint64(0) + for { + if !(i < uint64(8) && c|int32(32) == Int32FromUint8(**(**uint8)(__ccgo_up(__ccgo_ts + 344 + uintptr(i))))) { + break + } + if i < uint64(7) { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + goto _11 + _11: + ; + i = i + 1 + } + if i == uint64(3) || i == uint64(8) || i > uint64(3) && pok != 0 { + if i != uint64(8) { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + if pok != 0 { + for { + if !(i > uint64(3)) { + break + } + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + goto _15 + _15: + ; + i = i - 1 + } + } + } + return float64(float32(sign) * X__builtin_inff(tls)) + } + if !(i != 0) { + i = uint64(0) + for { + if !(i < uint64(3) && c|int32(32) == Int32FromUint8(**(**uint8)(__ccgo_up(__ccgo_ts + 353 + uintptr(i))))) { + break + } + if i < uint64(2) { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + goto _16 + _16: + ; + i = i + 1 + } + } + if i == uint64(3) { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + if v1 != int32('(') { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + return float64(X__builtin_nanf(tls, __ccgo_ts)) + } + i = uint64(1) + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + if Uint32FromInt32(c-int32('0')) < uint32(10) || Uint32FromInt32(c-int32('A')) < uint32(26) || Uint32FromInt32(c-int32('a')) < uint32(26) || c == int32('_') { + goto _23 + } + if c == int32(')') { + return float64(X__builtin_nanf(tls, __ccgo_ts)) + } + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + if !(pok != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + X__shlim(tls, f, int64(Int32FromInt32(0))) + return Float64FromInt32(0) + } + for { + v27 = i + i = i - 1 + if !(v27 != 0) { + break + } + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + } + return float64(X__builtin_nanf(tls, __ccgo_ts)) + goto _23 + _23: + ; + i = i + 1 + } + return float64(X__builtin_nanf(tls, __ccgo_ts)) + } + if i != 0 { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + X__shlim(tls, f, int64(Int32FromInt32(0))) + return Float64FromInt32(0) + } + if c == int32('0') { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + if c|int32(32) == int32('x') { + return _hexfloat(tls, f, bits, emin, sign, pok) + } + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + c = int32('0') + } + return _decfloat(tls, f, c, bits, emin, sign, pok) +} + +// C documentation +// +// /* Lookup table for digit values. -1==255>=36 -> invalid */ +var _table6 = [257]uint8{ + 0: Uint8FromInt32(-Int32FromInt32(1)), + 1: Uint8FromInt32(-Int32FromInt32(1)), + 2: Uint8FromInt32(-Int32FromInt32(1)), + 3: Uint8FromInt32(-Int32FromInt32(1)), + 4: Uint8FromInt32(-Int32FromInt32(1)), + 5: Uint8FromInt32(-Int32FromInt32(1)), + 6: Uint8FromInt32(-Int32FromInt32(1)), + 7: Uint8FromInt32(-Int32FromInt32(1)), + 8: Uint8FromInt32(-Int32FromInt32(1)), + 9: Uint8FromInt32(-Int32FromInt32(1)), + 10: Uint8FromInt32(-Int32FromInt32(1)), + 11: Uint8FromInt32(-Int32FromInt32(1)), + 12: Uint8FromInt32(-Int32FromInt32(1)), + 13: Uint8FromInt32(-Int32FromInt32(1)), + 14: Uint8FromInt32(-Int32FromInt32(1)), + 15: Uint8FromInt32(-Int32FromInt32(1)), + 16: Uint8FromInt32(-Int32FromInt32(1)), + 17: Uint8FromInt32(-Int32FromInt32(1)), + 18: Uint8FromInt32(-Int32FromInt32(1)), + 19: Uint8FromInt32(-Int32FromInt32(1)), + 20: Uint8FromInt32(-Int32FromInt32(1)), + 21: Uint8FromInt32(-Int32FromInt32(1)), + 22: Uint8FromInt32(-Int32FromInt32(1)), + 23: Uint8FromInt32(-Int32FromInt32(1)), + 24: Uint8FromInt32(-Int32FromInt32(1)), + 25: Uint8FromInt32(-Int32FromInt32(1)), + 26: Uint8FromInt32(-Int32FromInt32(1)), + 27: Uint8FromInt32(-Int32FromInt32(1)), + 28: Uint8FromInt32(-Int32FromInt32(1)), + 29: Uint8FromInt32(-Int32FromInt32(1)), + 30: Uint8FromInt32(-Int32FromInt32(1)), + 31: Uint8FromInt32(-Int32FromInt32(1)), + 32: Uint8FromInt32(-Int32FromInt32(1)), + 33: Uint8FromInt32(-Int32FromInt32(1)), + 34: Uint8FromInt32(-Int32FromInt32(1)), + 35: Uint8FromInt32(-Int32FromInt32(1)), + 36: Uint8FromInt32(-Int32FromInt32(1)), + 37: Uint8FromInt32(-Int32FromInt32(1)), + 38: Uint8FromInt32(-Int32FromInt32(1)), + 39: Uint8FromInt32(-Int32FromInt32(1)), + 40: Uint8FromInt32(-Int32FromInt32(1)), + 41: Uint8FromInt32(-Int32FromInt32(1)), + 42: Uint8FromInt32(-Int32FromInt32(1)), + 43: Uint8FromInt32(-Int32FromInt32(1)), + 44: Uint8FromInt32(-Int32FromInt32(1)), + 45: Uint8FromInt32(-Int32FromInt32(1)), + 46: Uint8FromInt32(-Int32FromInt32(1)), + 47: Uint8FromInt32(-Int32FromInt32(1)), + 48: Uint8FromInt32(-Int32FromInt32(1)), + 50: uint8(1), + 51: uint8(2), + 52: uint8(3), + 53: uint8(4), + 54: uint8(5), + 55: uint8(6), + 56: uint8(7), + 57: uint8(8), + 58: uint8(9), + 59: Uint8FromInt32(-Int32FromInt32(1)), + 60: Uint8FromInt32(-Int32FromInt32(1)), + 61: Uint8FromInt32(-Int32FromInt32(1)), + 62: Uint8FromInt32(-Int32FromInt32(1)), + 63: Uint8FromInt32(-Int32FromInt32(1)), + 64: Uint8FromInt32(-Int32FromInt32(1)), + 65: Uint8FromInt32(-Int32FromInt32(1)), + 66: uint8(10), + 67: uint8(11), + 68: uint8(12), + 69: uint8(13), + 70: uint8(14), + 71: uint8(15), + 72: uint8(16), + 73: uint8(17), + 74: uint8(18), + 75: uint8(19), + 76: uint8(20), + 77: uint8(21), + 78: uint8(22), + 79: uint8(23), + 80: uint8(24), + 81: uint8(25), + 82: uint8(26), + 83: uint8(27), + 84: uint8(28), + 85: uint8(29), + 86: uint8(30), + 87: uint8(31), + 88: uint8(32), + 89: uint8(33), + 90: uint8(34), + 91: uint8(35), + 92: Uint8FromInt32(-Int32FromInt32(1)), + 93: Uint8FromInt32(-Int32FromInt32(1)), + 94: Uint8FromInt32(-Int32FromInt32(1)), + 95: Uint8FromInt32(-Int32FromInt32(1)), + 96: Uint8FromInt32(-Int32FromInt32(1)), + 97: Uint8FromInt32(-Int32FromInt32(1)), + 98: uint8(10), + 99: uint8(11), + 100: uint8(12), + 101: uint8(13), + 102: uint8(14), + 103: uint8(15), + 104: uint8(16), + 105: uint8(17), + 106: uint8(18), + 107: uint8(19), + 108: uint8(20), + 109: uint8(21), + 110: uint8(22), + 111: uint8(23), + 112: uint8(24), + 113: uint8(25), + 114: uint8(26), + 115: uint8(27), + 116: uint8(28), + 117: uint8(29), + 118: uint8(30), + 119: uint8(31), + 120: uint8(32), + 121: uint8(33), + 122: uint8(34), + 123: uint8(35), + 124: Uint8FromInt32(-Int32FromInt32(1)), + 125: Uint8FromInt32(-Int32FromInt32(1)), + 126: Uint8FromInt32(-Int32FromInt32(1)), + 127: Uint8FromInt32(-Int32FromInt32(1)), + 128: Uint8FromInt32(-Int32FromInt32(1)), + 129: Uint8FromInt32(-Int32FromInt32(1)), + 130: Uint8FromInt32(-Int32FromInt32(1)), + 131: Uint8FromInt32(-Int32FromInt32(1)), + 132: Uint8FromInt32(-Int32FromInt32(1)), + 133: Uint8FromInt32(-Int32FromInt32(1)), + 134: Uint8FromInt32(-Int32FromInt32(1)), + 135: Uint8FromInt32(-Int32FromInt32(1)), + 136: Uint8FromInt32(-Int32FromInt32(1)), + 137: Uint8FromInt32(-Int32FromInt32(1)), + 138: Uint8FromInt32(-Int32FromInt32(1)), + 139: Uint8FromInt32(-Int32FromInt32(1)), + 140: Uint8FromInt32(-Int32FromInt32(1)), + 141: Uint8FromInt32(-Int32FromInt32(1)), + 142: Uint8FromInt32(-Int32FromInt32(1)), + 143: Uint8FromInt32(-Int32FromInt32(1)), + 144: Uint8FromInt32(-Int32FromInt32(1)), + 145: Uint8FromInt32(-Int32FromInt32(1)), + 146: Uint8FromInt32(-Int32FromInt32(1)), + 147: Uint8FromInt32(-Int32FromInt32(1)), + 148: Uint8FromInt32(-Int32FromInt32(1)), + 149: Uint8FromInt32(-Int32FromInt32(1)), + 150: Uint8FromInt32(-Int32FromInt32(1)), + 151: Uint8FromInt32(-Int32FromInt32(1)), + 152: Uint8FromInt32(-Int32FromInt32(1)), + 153: Uint8FromInt32(-Int32FromInt32(1)), + 154: Uint8FromInt32(-Int32FromInt32(1)), + 155: Uint8FromInt32(-Int32FromInt32(1)), + 156: Uint8FromInt32(-Int32FromInt32(1)), + 157: Uint8FromInt32(-Int32FromInt32(1)), + 158: Uint8FromInt32(-Int32FromInt32(1)), + 159: Uint8FromInt32(-Int32FromInt32(1)), + 160: Uint8FromInt32(-Int32FromInt32(1)), + 161: Uint8FromInt32(-Int32FromInt32(1)), + 162: Uint8FromInt32(-Int32FromInt32(1)), + 163: Uint8FromInt32(-Int32FromInt32(1)), + 164: Uint8FromInt32(-Int32FromInt32(1)), + 165: Uint8FromInt32(-Int32FromInt32(1)), + 166: Uint8FromInt32(-Int32FromInt32(1)), + 167: Uint8FromInt32(-Int32FromInt32(1)), + 168: Uint8FromInt32(-Int32FromInt32(1)), + 169: Uint8FromInt32(-Int32FromInt32(1)), + 170: Uint8FromInt32(-Int32FromInt32(1)), + 171: Uint8FromInt32(-Int32FromInt32(1)), + 172: Uint8FromInt32(-Int32FromInt32(1)), + 173: Uint8FromInt32(-Int32FromInt32(1)), + 174: Uint8FromInt32(-Int32FromInt32(1)), + 175: Uint8FromInt32(-Int32FromInt32(1)), + 176: Uint8FromInt32(-Int32FromInt32(1)), + 177: Uint8FromInt32(-Int32FromInt32(1)), + 178: Uint8FromInt32(-Int32FromInt32(1)), + 179: Uint8FromInt32(-Int32FromInt32(1)), + 180: Uint8FromInt32(-Int32FromInt32(1)), + 181: Uint8FromInt32(-Int32FromInt32(1)), + 182: Uint8FromInt32(-Int32FromInt32(1)), + 183: Uint8FromInt32(-Int32FromInt32(1)), + 184: Uint8FromInt32(-Int32FromInt32(1)), + 185: Uint8FromInt32(-Int32FromInt32(1)), + 186: Uint8FromInt32(-Int32FromInt32(1)), + 187: Uint8FromInt32(-Int32FromInt32(1)), + 188: Uint8FromInt32(-Int32FromInt32(1)), + 189: Uint8FromInt32(-Int32FromInt32(1)), + 190: Uint8FromInt32(-Int32FromInt32(1)), + 191: Uint8FromInt32(-Int32FromInt32(1)), + 192: Uint8FromInt32(-Int32FromInt32(1)), + 193: Uint8FromInt32(-Int32FromInt32(1)), + 194: Uint8FromInt32(-Int32FromInt32(1)), + 195: Uint8FromInt32(-Int32FromInt32(1)), + 196: Uint8FromInt32(-Int32FromInt32(1)), + 197: Uint8FromInt32(-Int32FromInt32(1)), + 198: Uint8FromInt32(-Int32FromInt32(1)), + 199: Uint8FromInt32(-Int32FromInt32(1)), + 200: Uint8FromInt32(-Int32FromInt32(1)), + 201: Uint8FromInt32(-Int32FromInt32(1)), + 202: Uint8FromInt32(-Int32FromInt32(1)), + 203: Uint8FromInt32(-Int32FromInt32(1)), + 204: Uint8FromInt32(-Int32FromInt32(1)), + 205: Uint8FromInt32(-Int32FromInt32(1)), + 206: Uint8FromInt32(-Int32FromInt32(1)), + 207: Uint8FromInt32(-Int32FromInt32(1)), + 208: Uint8FromInt32(-Int32FromInt32(1)), + 209: Uint8FromInt32(-Int32FromInt32(1)), + 210: Uint8FromInt32(-Int32FromInt32(1)), + 211: Uint8FromInt32(-Int32FromInt32(1)), + 212: Uint8FromInt32(-Int32FromInt32(1)), + 213: Uint8FromInt32(-Int32FromInt32(1)), + 214: Uint8FromInt32(-Int32FromInt32(1)), + 215: Uint8FromInt32(-Int32FromInt32(1)), + 216: Uint8FromInt32(-Int32FromInt32(1)), + 217: Uint8FromInt32(-Int32FromInt32(1)), + 218: Uint8FromInt32(-Int32FromInt32(1)), + 219: Uint8FromInt32(-Int32FromInt32(1)), + 220: Uint8FromInt32(-Int32FromInt32(1)), + 221: Uint8FromInt32(-Int32FromInt32(1)), + 222: Uint8FromInt32(-Int32FromInt32(1)), + 223: Uint8FromInt32(-Int32FromInt32(1)), + 224: Uint8FromInt32(-Int32FromInt32(1)), + 225: Uint8FromInt32(-Int32FromInt32(1)), + 226: Uint8FromInt32(-Int32FromInt32(1)), + 227: Uint8FromInt32(-Int32FromInt32(1)), + 228: Uint8FromInt32(-Int32FromInt32(1)), + 229: Uint8FromInt32(-Int32FromInt32(1)), + 230: Uint8FromInt32(-Int32FromInt32(1)), + 231: Uint8FromInt32(-Int32FromInt32(1)), + 232: Uint8FromInt32(-Int32FromInt32(1)), + 233: Uint8FromInt32(-Int32FromInt32(1)), + 234: Uint8FromInt32(-Int32FromInt32(1)), + 235: Uint8FromInt32(-Int32FromInt32(1)), + 236: Uint8FromInt32(-Int32FromInt32(1)), + 237: Uint8FromInt32(-Int32FromInt32(1)), + 238: Uint8FromInt32(-Int32FromInt32(1)), + 239: Uint8FromInt32(-Int32FromInt32(1)), + 240: Uint8FromInt32(-Int32FromInt32(1)), + 241: Uint8FromInt32(-Int32FromInt32(1)), + 242: Uint8FromInt32(-Int32FromInt32(1)), + 243: Uint8FromInt32(-Int32FromInt32(1)), + 244: Uint8FromInt32(-Int32FromInt32(1)), + 245: Uint8FromInt32(-Int32FromInt32(1)), + 246: Uint8FromInt32(-Int32FromInt32(1)), + 247: Uint8FromInt32(-Int32FromInt32(1)), + 248: Uint8FromInt32(-Int32FromInt32(1)), + 249: Uint8FromInt32(-Int32FromInt32(1)), + 250: Uint8FromInt32(-Int32FromInt32(1)), + 251: Uint8FromInt32(-Int32FromInt32(1)), + 252: Uint8FromInt32(-Int32FromInt32(1)), + 253: Uint8FromInt32(-Int32FromInt32(1)), + 254: Uint8FromInt32(-Int32FromInt32(1)), + 255: Uint8FromInt32(-Int32FromInt32(1)), + 256: Uint8FromInt32(-Int32FromInt32(1)), +} + +func X__intscan(tls *TLS, f uintptr, base uint32, pok int32, lim uint64) (r uint64) { + if __ccgo_strace { + trc("tls=%v f=%v base=%v pok=%v lim=%v, (%v:)", tls, f, base, pok, lim, origin(2)) + defer func() { trc("-> %v", r) }() + } + var bs, c, neg, v1, v2, v5, v6 int32 + var val, v3, v4 uintptr + var x uint32 + var y uint64 + _, _, _, _, _, _, _, _, _, _, _, _ = bs, c, neg, val, x, y, v1, v2, v3, v4, v5, v6 + val = uintptr(unsafe.Pointer(&_table6)) + uintptr(1) + neg = 0 + if base > uint32(36) || base == uint32(1) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uint64(0) + } + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v2 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v2 = X__shgetc(tls, f) + } + v1 = v2 + c = v1 + v5 = v1 + v6 = BoolInt32(v5 == int32(' ') || Uint32FromInt32(v5)-uint32('\t') < uint32(5)) + goto _7 + _7: + if !(v6 != 0) { + break + } + } + if c == int32('+') || c == int32('-') { + neg = -BoolInt32(c == int32('-')) + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + if (base == uint32(0) || base == uint32(16)) && c == int32('0') { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + if c|int32(32) == int32('x') { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + if Int32FromUint8(**(**uint8)(__ccgo_up(val + uintptr(c)))) >= int32(16) { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + if pok != 0 { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + } else { + X__shlim(tls, f, int64(Int32FromInt32(0))) + } + return uint64(0) + } + base = uint32(16) + } else { + if base == uint32(0) { + base = uint32(8) + } + } + } else { + if base == uint32(0) { + base = uint32(10) + } + if uint32(**(**uint8)(__ccgo_up(val + uintptr(c)))) >= base { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + X__shlim(tls, f, int64(Int32FromInt32(0))) + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uint64(0) + } + } + if base == uint32(10) { + x = uint32(0) + for { + if !(Uint32FromInt32(c-int32('0')) < uint32(10) && x <= Uint32FromUint32(0xffffffff)/Uint32FromInt32(10)-Uint32FromInt32(1)) { + break + } + x = x*uint32(10) + Uint32FromInt32(c-Int32FromUint8('0')) + goto _17 + _17: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + y = uint64(x) + for { + if !(Uint32FromInt32(c-int32('0')) < uint32(10) && y <= (Uint64FromUint64(2)*Uint64FromInt64(0x7fffffffffffffff)+Uint64FromInt32(1))/Uint64FromInt32(10) && uint64(10)*y <= Uint64FromUint64(2)*Uint64FromInt64(0x7fffffffffffffff)+Uint64FromInt32(1)-Uint64FromInt32(c-Int32FromUint8('0'))) { + break + } + y = y*uint64(10) + Uint64FromInt32(c-Int32FromUint8('0')) + goto _21 + _21: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + if Uint32FromInt32(c-int32('0')) >= uint32(10) { + goto done + } + } else { + if !(base&(base-Uint32FromInt32(1)) != 0) { + bs = Int32FromUint8(**(**uint8)(__ccgo_up(__ccgo_ts + 357 + uintptr(uint32(0x17)*base>>int32(5)&uint32(7))))) + x = uint32(0) + for { + if !(uint32(**(**uint8)(__ccgo_up(val + uintptr(c)))) < base && x <= Uint32FromUint32(0xffffffff)/Uint32FromInt32(32)) { + break + } + x = x<>bs) { + break + } + y = y<= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + if y >= lim { + if !(lim&Uint64FromInt32(1) != 0) && !(neg != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ERANGE) + return lim - uint64(1) + } else { + if y > lim { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ERANGE) + return lim + } + } + } + return y ^ Uint64FromInt32(neg) - Uint64FromInt32(neg) +} + +func X__procfdname(tls *TLS, buf uintptr, fd uint32) { + if __ccgo_strace { + trc("tls=%v buf=%v fd=%v, (%v:)", tls, buf, fd, origin(2)) + } + var i, j, v5 uint32 + var v2 uint8 + _, _, _, _ = i, j, v2, v5 + i = uint32(0) + for { + v2 = **(**uint8)(__ccgo_up(__ccgo_ts + 366 + uintptr(i))) + **(**uint8)(__ccgo_up(buf + uintptr(i))) = v2 + if !(v2 != 0) { + break + } + goto _1 + _1: + ; + i = i + 1 + } + if !(fd != 0) { + **(**uint8)(__ccgo_up(buf + uintptr(i))) = uint8('0') + **(**uint8)(__ccgo_up(buf + uintptr(i+uint32(1)))) = uint8(0) + return + } + j = fd + for { + if !(j != 0) { + break + } + goto _3 + _3: + ; + j = j / uint32(10) + i = i + 1 + } + **(**uint8)(__ccgo_up(buf + uintptr(i))) = uint8(0) + for { + if !(fd != 0) { + break + } + i = i - 1 + v5 = i + **(**uint8)(__ccgo_up(buf + uintptr(v5))) = uint8(uint32('0') + fd%uint32(10)) + goto _4 + _4: + ; + fd = fd / uint32(10) + } +} + +/* The shcnt field stores the number of bytes read so far, offset by + * the value of buf-rpos at the last function call (__shlim or __shgetc), + * so that between calls the inline shcnt macro can add rpos-buf to get + * the actual count. */ + +func X__shlim(tls *TLS, f uintptr, lim Toff_t) { + if __ccgo_strace { + trc("tls=%v f=%v lim=%v, (%v:)", tls, f, lim, origin(2)) + } + (*TFILE)(unsafe.Pointer(f)).Fshlim = lim + (*TFILE)(unsafe.Pointer(f)).Fshcnt = int64((*TFILE)(unsafe.Pointer(f)).Fbuf) - int64((*TFILE)(unsafe.Pointer(f)).Frpos) + /* If lim is nonzero, rend must be a valid pointer. */ + if lim != 0 && int64((*TFILE)(unsafe.Pointer(f)).Frend)-int64((*TFILE)(unsafe.Pointer(f)).Frpos) > lim { + (*TFILE)(unsafe.Pointer(f)).Fshend = (*TFILE)(unsafe.Pointer(f)).Frpos + uintptr(lim) + } else { + (*TFILE)(unsafe.Pointer(f)).Fshend = (*TFILE)(unsafe.Pointer(f)).Frend + } +} + +func X__shgetc(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var c, v1 int32 + var cnt Toff_t + var v2 bool + _, _, _, _ = c, cnt, v1, v2 + cnt = (*TFILE)(unsafe.Pointer(f)).Fshcnt + (int64((*TFILE)(unsafe.Pointer(f)).Frpos) - int64((*TFILE)(unsafe.Pointer(f)).Fbuf)) + if v2 = (*TFILE)(unsafe.Pointer(f)).Fshlim != 0 && cnt >= (*TFILE)(unsafe.Pointer(f)).Fshlim; !v2 { + v1 = X__uflow(tls, f) + c = v1 + } + if v2 || v1 < 0 { + (*TFILE)(unsafe.Pointer(f)).Fshcnt = int64((*TFILE)(unsafe.Pointer(f)).Fbuf) - int64((*TFILE)(unsafe.Pointer(f)).Frpos) + cnt + (*TFILE)(unsafe.Pointer(f)).Fshend = (*TFILE)(unsafe.Pointer(f)).Frpos + (*TFILE)(unsafe.Pointer(f)).Fshlim = int64(-int32(1)) + return -int32(1) + } + cnt = cnt + 1 + if (*TFILE)(unsafe.Pointer(f)).Fshlim != 0 && int64((*TFILE)(unsafe.Pointer(f)).Frend)-int64((*TFILE)(unsafe.Pointer(f)).Frpos) > (*TFILE)(unsafe.Pointer(f)).Fshlim-cnt { + (*TFILE)(unsafe.Pointer(f)).Fshend = (*TFILE)(unsafe.Pointer(f)).Frpos + uintptr((*TFILE)(unsafe.Pointer(f)).Fshlim-cnt) + } else { + (*TFILE)(unsafe.Pointer(f)).Fshend = (*TFILE)(unsafe.Pointer(f)).Frend + } + (*TFILE)(unsafe.Pointer(f)).Fshcnt = int64((*TFILE)(unsafe.Pointer(f)).Fbuf) - int64((*TFILE)(unsafe.Pointer(f)).Frpos) + cnt + if (*TFILE)(unsafe.Pointer(f)).Frpos <= (*TFILE)(unsafe.Pointer(f)).Fbuf { + **(**uint8)(__ccgo_up((*TFILE)(unsafe.Pointer(f)).Frpos + uintptr(-Int32FromInt32(1)))) = Uint8FromInt32(c) + } + return c +} + +func X__syscall_ret(tls *TLS, r uint64) (r1 int64) { + if __ccgo_strace { + trc("tls=%v r=%v, (%v:)", tls, r, origin(2)) + defer func() { trc("-> %v", r1) }() + } + if r > -Uint64FromUint64(4096) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = Int32FromUint64(-r) + return int64(-int32(1)) + } + return Int64FromUint64(r) +} + +type TElf_Symndx = uint32 + +type Tdl_phdr_info = struct { + Fdlpi_addr TElf64_Addr + Fdlpi_name uintptr + Fdlpi_phdr uintptr + Fdlpi_phnum TElf64_Half + Fdlpi_adds uint64 + Fdlpi_subs uint64 + Fdlpi_tls_modid Tsize_t + Fdlpi_tls_data uintptr +} + +type Tlink_map = struct { + Fl_addr TElf64_Addr + Fl_name uintptr + Fl_ld uintptr + Fl_next uintptr + Fl_prev uintptr +} + +type Tr_debug = struct { + Fr_version int32 + Fr_map uintptr + Fr_brk TElf64_Addr + Fr_state int32 + Fr_ldbase TElf64_Addr +} + +const _RT_CONSISTENT = 0 +const _RT_ADD = 1 +const _RT_DELETE = 2 +const VERSION = "1.2.5" + +const IPC_CREAT = 512 +const IPC_EXCL = 1024 +const IPC_INFO = 3 +const IPC_NOWAIT = 2048 +const IPC_RMID = 0 +const IPC_SET = 1 +const IPC_STAT = 2 +const __ipc_perm_key = 0 +const __ipc_perm_seq = 0 + +type Tkey_t = int32 + +type Tipc_perm = struct { + F__key Tkey_t + Fuid Tuid_t + Fgid Tgid_t + Fcuid Tuid_t + Fcgid Tgid_t + Fmode Tmode_t + F__seq int32 + F__pad1 int32 + F__pad2 int64 + F__pad3 int64 +} + +func Xftok(tls *TLS, path uintptr, id int32) (r Tkey_t) { + if __ccgo_strace { + trc("tls=%v path=%v id=%v, (%v:)", tls, path, id, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(144) + defer tls.Free(144) + var _ /* st at bp+0 */ Tstat + if Xstat(tls, path, bp) < 0 { + return -int32(1) + } + return Int32FromUint64((**(**Tstat)(__ccgo_up(bp))).Fst_ino&Uint64FromInt32(0xffff) | (**(**Tstat)(__ccgo_up(bp))).Fst_dev&Uint64FromInt32(0xff)< %v", r1) }() + } + var r int32 + _ = r + r = int32(X__syscall6(tls, int64(SYS_ipc), int64(Int32FromInt32(IPCOP_msgctl)), int64(q), int64(cmd & ^(Int32FromInt32(IPC_STAT)&Int32FromInt32(0x100)) | Int32FromInt32(IPC_64)), int64(Int32FromInt32(0)), int64(buf), int64(Int32FromInt32(0)))) + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func Xmsgget(tls *TLS, k Tkey_t, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v k=%v flag=%v, (%v:)", tls, k, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_ipc), int64(Int32FromInt32(IPCOP_msgget)), int64(k), int64(flag))))) +} + +func Xmsgrcv(tls *TLS, q int32, m uintptr, len1 Tsize_t, type1 int64, flag int32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v q=%v m=%v len1=%v type1=%v flag=%v, (%v:)", tls, q, m, len1, type1, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + *(*[2]int64)(unsafe.Pointer(bp)) = [2]int64{ + 0: int64(m), + 1: type1, + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_ipc), int64(Int32FromInt32(IPCOP_msgrcv)), int64(q), Int64FromUint64(len1), int64(flag), int64(bp), 0))) +} + +func Xmsgsnd(tls *TLS, q int32, m uintptr, len1 Tsize_t, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v q=%v m=%v len1=%v flag=%v, (%v:)", tls, q, m, len1, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_ipc), int64(Int32FromInt32(IPCOP_msgsnd)), int64(q), Int64FromUint64(len1), int64(flag), int64(m), 0)))) +} + +const GETALL = 13 +const GETNCNT = 14 +const GETPID = 11 +const GETVAL = 12 +const GETZCNT = 15 +const SEM_INFO = 19 +const SEM_STAT = 18 +const SEM_STAT_ANY = 20 +const SEM_UNDO = 4096 +const SETALL = 17 +const SETVAL = 16 +const _SEM_SEMUN_UNDEFINED = 1 + +type Tsemid_ds = struct { + Fsem_perm Tipc_perm + Fsem_otime Ttime_t + Fsem_ctime Ttime_t + Fsem_nsems uint16 + F__sem_nsems_pad [6]uint8 + F__unused3 int64 + F__unused4 int64 +} + +type Tseminfo = struct { + Fsemmap int32 + Fsemmni int32 + Fsemmns int32 + Fsemmnu int32 + Fsemmsl int32 + Fsemopm int32 + Fsemume int32 + Fsemusz int32 + Fsemvmx int32 + Fsemaem int32 +} + +type Tsembuf = struct { + Fsem_num uint16 + Fsem_op int16 + Fsem_flg int16 +} + +type Tsemun = struct { + Fbuf [0]uintptr + Farray [0]uintptr + Fval int32 + F__ccgo_pad3 [4]byte +} + +func Xsemctl(tls *TLS, id int32, num int32, cmd int32, va uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v id=%v num=%v cmd=%v va=%v, (%v:)", tls, id, num, cmd, va, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ap Tva_list + var r int32 + var _ /* arg at bp+0 */ Tsemun + _, _ = ap, r + *(*Tsemun)(unsafe.Pointer(bp)) = Tsemun{} + *(*int32)(unsafe.Pointer(bp)) = 0 + switch cmd & ^(Int32FromInt32(IPC_STAT) & Int32FromInt32(0x100)) { + case int32(SETVAL): + fallthrough + case int32(GETALL): + fallthrough + case int32(SETALL): + fallthrough + case int32(IPC_SET): + fallthrough + case int32(IPC_INFO): + fallthrough + case int32(SEM_INFO): + fallthrough + case Int32FromInt32(IPC_STAT) & ^(Int32FromInt32(IPC_STAT) & Int32FromInt32(0x100)): + fallthrough + case (Int32FromInt32(18) | Int32FromInt32(IPC_STAT)&Int32FromInt32(0x100)) & ^(Int32FromInt32(IPC_STAT) & Int32FromInt32(0x100)): + fallthrough + case (Int32FromInt32(20) | Int32FromInt32(IPC_STAT)&Int32FromInt32(0x100)) & ^(Int32FromInt32(IPC_STAT) & Int32FromInt32(0x100)): + ap = va + **(**Tsemun)(__ccgo_up(bp)) = *(*Tsemun)(unsafe.Pointer(VaOther(&ap, 8))) + _ = ap + } + r = int32(X__syscall5(tls, int64(SYS_ipc), int64(Int32FromInt32(IPCOP_semctl)), int64(id), int64(num), int64(cmd & ^(Int32FromInt32(IPC_STAT)&Int32FromInt32(0x100)) | Int32FromInt32(IPC_64)), int64(bp))) + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func Xsemget(tls *TLS, key Tkey_t, n int32, fl int32) (r int32) { + if __ccgo_strace { + trc("tls=%v key=%v n=%v fl=%v, (%v:)", tls, key, n, fl, origin(2)) + defer func() { trc("-> %v", r) }() + } + /* The kernel uses the wrong type for the sem_nsems member + * of struct semid_ds, and thus might not check that the + * n fits in the correct (per POSIX) userspace type, so + * we have to check here. */ + if n > int32(USHRT_MAX) { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL)))) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_ipc), int64(Int32FromInt32(IPCOP_semget)), int64(key), int64(n), int64(fl))))) +} + +func Xsemop(tls *TLS, id int32, buf uintptr, n Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v id=%v buf=%v n=%v, (%v:)", tls, id, buf, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_ipc), int64(Int32FromInt32(IPCOP_semop)), int64(id), Int64FromUint64(n), int64(Int32FromInt32(0)), int64(buf))))) +} + +const NO_TIME32 = 0 +const __key = 0 +const __seq = 0 + +type Tipc_perm1 = struct { + Fkey Tkey_t + Fuid Tuid_t + Fgid Tgid_t + Fcuid Tuid_t + Fcgid Tgid_t + Fmode Tmode_t + Fseq int32 + F__pad1 int32 + F__pad2 int64 + F__pad3 int64 +} + +type Tsemid_ds1 = struct { + Fsem_perm Tipc_perm1 + Fsem_otime Ttime_t + Fsem_ctime Ttime_t + Fsem_nsems uint16 + F__sem_nsems_pad [6]uint8 + F__unused3 int64 + F__unused4 int64 +} + +func Xsemtimedop(tls *TLS, id int32, buf uintptr, n Tsize_t, ts uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v id=%v buf=%v n=%v ts=%v, (%v:)", tls, id, buf, n, ts, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall6(tls, int64(SYS_ipc), int64(Int32FromInt32(IPCOP_semtimedop)), int64(id), Int64FromUint64(n), int64(Int32FromInt32(0)), int64(buf), int64(ts))))) +} + +const SHMLBA = 4096 +const SHM_DEST = 512 +const SHM_EXEC = 32768 +const SHM_HUGETLB = 2048 +const SHM_HUGE_16GB = 2281701376 +const SHM_HUGE_16MB = 1610612736 +const SHM_HUGE_1GB = 2013265920 +const SHM_HUGE_1MB = 1342177280 +const SHM_HUGE_256MB = 1879048192 +const SHM_HUGE_2GB = 2080374784 +const SHM_HUGE_2MB = 1409286144 +const SHM_HUGE_32MB = 1677721600 +const SHM_HUGE_512KB = 1275068416 +const SHM_HUGE_512MB = 1946157056 +const SHM_HUGE_64KB = 1073741824 +const SHM_HUGE_8MB = 1543503872 +const SHM_HUGE_MASK = 63 +const SHM_HUGE_SHIFT = 26 +const SHM_INFO = 14 +const SHM_LOCK = 11 +const SHM_LOCKED = 1024 +const SHM_NORESERVE = 4096 +const SHM_R = 256 +const SHM_RDONLY = 4096 +const SHM_REMAP = 16384 +const SHM_RND = 8192 +const SHM_STAT = 13 +const SHM_STAT_ANY = 15 +const SHM_UNLOCK = 12 +const SHM_W = 128 + +type Tshmid_ds = struct { + Fshm_perm Tipc_perm + Fshm_atime Ttime_t + Fshm_dtime Ttime_t + Fshm_ctime Ttime_t + Fshm_segsz Tsize_t + Fshm_cpid Tpid_t + Fshm_lpid Tpid_t + Fshm_nattch uint64 + F__unused [2]uint64 +} + +type Tshminfo = struct { + Fshmmax uint64 + Fshmmin uint64 + Fshmmni uint64 + Fshmseg uint64 + Fshmall uint64 + F__unused [4]uint64 +} + +type Tshm_info = struct { + F__used_ids int32 + Fshm_tot uint64 + Fshm_rss uint64 + Fshm_swp uint64 + F__swap_attempts uint64 + F__swap_successes uint64 +} + +type Tshmatt_t = uint64 + +func Xshmat(tls *TLS, id int32, _addr uintptr, flag int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v id=%v _addr=%v flag=%v, (%v:)", tls, id, _addr, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + *(*uintptr)(unsafe.Pointer(bp)) = _addr + var ret uint64 + var v1 uintptr + _, _ = ret, v1 + ret = Uint64FromInt64(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_ipc), int64(Int32FromInt32(IPCOP_shmat)), int64(id), int64(flag), int64(bp), int64(**(**uintptr)(__ccgo_up(bp))))))) + if ret > -Uint64FromInt32(SHMLBA) { + v1 = uintptr(ret) + } else { + v1 = **(**uintptr)(__ccgo_up(bp)) + } + return v1 +} + +func Xshmctl(tls *TLS, id int32, cmd int32, buf uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v id=%v cmd=%v buf=%v, (%v:)", tls, id, cmd, buf, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + r = int32(X__syscall6(tls, int64(SYS_ipc), int64(Int32FromInt32(IPCOP_shmctl)), int64(id), int64(cmd & ^(Int32FromInt32(IPC_STAT)&Int32FromInt32(0x100)) | Int32FromInt32(IPC_64)), int64(Int32FromInt32(0)), int64(buf), int64(Int32FromInt32(0)))) + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func Xshmdt(tls *TLS, addr uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v, (%v:)", tls, addr, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_ipc), int64(Int32FromInt32(IPCOP_shmdt)), int64(Int32FromInt32(0)), int64(Int32FromInt32(0)), int64(Int32FromInt32(0)), int64(addr))))) +} + +func Xshmget(tls *TLS, key Tkey_t, size Tsize_t, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v key=%v size=%v flag=%v, (%v:)", tls, key, size, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + if size > Uint64FromInt64(Int64FromInt64(INT64_MAX)) { + size = Uint64FromUint64(0xffffffffffffffff) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_ipc), int64(Int32FromInt32(IPCOP_shmget)), int64(key), Int64FromUint64(size), int64(flag))))) +} + +type Tpasswd = struct { + Fpw_name uintptr + Fpw_passwd uintptr + Fpw_uid Tuid_t + Fpw_gid Tgid_t + Fpw_gecos uintptr + Fpw_dir uintptr + Fpw_shell uintptr +} + +func Xcuserid(tls *TLS, buf uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v buf=%v, (%v:)", tls, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(2112) + defer tls.Free(2112) + var len1 Tsize_t + var _ /* ppw at bp+48 */ uintptr + var _ /* pw at bp+0 */ Tpasswd + var _ /* pwb at bp+56 */ [256]int64 + _ = len1 + if buf != 0 { + **(**uint8)(__ccgo_up(buf)) = uint8(0) + } + Xgetpwuid_r(tls, Xgeteuid(tls), bp, bp+56, uint64(2048), bp+48) + if !(**(**uintptr)(__ccgo_up(bp + 48)) != 0) { + return buf + } + len1 = Xstrnlen(tls, (**(**Tpasswd)(__ccgo_up(bp))).Fpw_name, uint64(L_cuserid)) + if len1 == uint64(L_cuserid) { + return buf + } + if !(buf != 0) { + buf = uintptr(unsafe.Pointer(&_usridbuf)) + } + Xmemcpy(tls, buf, (**(**Tpasswd)(__ccgo_up(bp))).Fpw_name, len1+uint64(1)) + return buf +} + +var _usridbuf [20]uint8 + +func Xvwarn(tls *TLS, fmt uintptr, ap Tva_list) { + if __ccgo_strace { + trc("tls=%v fmt=%v ap=%v, (%v:)", tls, fmt, ap, origin(2)) + } + bp := tls.Alloc(16) + defer tls.Free(16) + Xfprintf(tls, uintptr(unsafe.Pointer(&X__stderr_FILE)), __ccgo_ts+381, VaList(bp+8, Xprogram_invocation_short_name)) + if fmt != 0 { + Xvfprintf(tls, uintptr(unsafe.Pointer(&X__stderr_FILE)), fmt, ap) + Xfputs(tls, __ccgo_ts+386, uintptr(unsafe.Pointer(&X__stderr_FILE))) + } + Xperror(tls, uintptr(0)) +} + +func Xvwarnx(tls *TLS, fmt uintptr, ap Tva_list) { + if __ccgo_strace { + trc("tls=%v fmt=%v ap=%v, (%v:)", tls, fmt, ap, origin(2)) + } + bp := tls.Alloc(16) + defer tls.Free(16) + Xfprintf(tls, uintptr(unsafe.Pointer(&X__stderr_FILE)), __ccgo_ts+381, VaList(bp+8, Xprogram_invocation_short_name)) + if fmt != 0 { + Xvfprintf(tls, uintptr(unsafe.Pointer(&X__stderr_FILE)), fmt, ap) + } + Xputc(tls, int32('\n'), uintptr(unsafe.Pointer(&X__stderr_FILE))) +} + +func Xverr(tls *TLS, status int32, fmt uintptr, ap Tva_list) { + if __ccgo_strace { + trc("tls=%v status=%v fmt=%v ap=%v, (%v:)", tls, status, fmt, ap, origin(2)) + } + Xvwarn(tls, fmt, ap) + _exit(tls, status) +} + +func Xverrx(tls *TLS, status int32, fmt uintptr, ap Tva_list) { + if __ccgo_strace { + trc("tls=%v status=%v fmt=%v ap=%v, (%v:)", tls, status, fmt, ap, origin(2)) + } + Xvwarnx(tls, fmt, ap) + _exit(tls, status) +} + +func Xwarn(tls *TLS, fmt uintptr, va uintptr) { + if __ccgo_strace { + trc("tls=%v fmt=%v va=%v, (%v:)", tls, fmt, va, origin(2)) + } + var ap Tva_list + _ = ap + ap = va + Xvwarn(tls, fmt, ap) + _ = ap +} + +func Xwarnx(tls *TLS, fmt uintptr, va uintptr) { + if __ccgo_strace { + trc("tls=%v fmt=%v va=%v, (%v:)", tls, fmt, va, origin(2)) + } + var ap Tva_list + _ = ap + ap = va + Xvwarnx(tls, fmt, ap) + _ = ap +} + +func Xerr(tls *TLS, status int32, fmt uintptr, va uintptr) { + if __ccgo_strace { + trc("tls=%v status=%v fmt=%v va=%v, (%v:)", tls, status, fmt, va, origin(2)) + } + var ap Tva_list + _ = ap + ap = va + Xverr(tls, status, fmt, ap) + _ = ap +} + +func Xerrx(tls *TLS, status int32, fmt uintptr, va uintptr) { + if __ccgo_strace { + trc("tls=%v status=%v fmt=%v va=%v, (%v:)", tls, status, fmt, va, origin(2)) + } + var ap Tva_list + _ = ap + ap = va + Xverrx(tls, status, fmt, ap) + _ = ap +} + +func Xeuidaccess(tls *TLS, filename uintptr, amode int32) (r int32) { + if __ccgo_strace { + trc("tls=%v filename=%v amode=%v, (%v:)", tls, filename, amode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfaccessat(tls, -int32(100), filename, amode, int32(AT_EACCESS)) +} + +func Xeaccess(tls *TLS, filename uintptr, amode int32) (r int32) { + if __ccgo_strace { + trc("tls=%v filename=%v amode=%v, (%v:)", tls, filename, amode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xeuidaccess(tls, filename, amode) +} + +const FTW_CHDIR = 4 +const FTW_D = 2 +const FTW_DEPTH = 8 +const FTW_DNR = 3 +const FTW_DP = 6 +const FTW_F = 1 +const FTW_MOUNT = 2 +const FTW_NS = 4 +const FTW_PHYS = 1 +const FTW_SL = 5 +const FTW_SLN = 7 + +type TFTW = struct { + Fbase int32 + Flevel int32 +} + +type t__ccgo_fp__Xftw_1 = func(*TLS, uintptr, uintptr, int32) int32 + +func Xftw(tls *TLS, path uintptr, __ccgo_fp_fn uintptr, fd_limit int32) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v __ccgo_fp_fn=%v fd_limit=%v, (%v:)", tls, path, __ccgo_fp_fn, fd_limit, origin(2)) + defer func() { trc("-> %v", r) }() + } + /* The following cast assumes that calling a function with one + * argument more than it needs behaves as expected. This is + * actually undefined, but works on all real-world machines. */ + return Xnftw(tls, path, __ccgo_fp_fn, fd_limit, int32(FTW_PHYS)) +} + +const STATX_ALL = 4095 +const STATX_ATIME = 32 +const STATX_BASIC_STATS = 2047 +const STATX_BLOCKS = 1024 +const STATX_BTIME = 2048 +const STATX_CTIME = 128 +const STATX_GID = 16 +const STATX_INO = 256 +const STATX_MODE = 2 +const STATX_MTIME = 64 +const STATX_NLINK = 4 +const STATX_SIZE = 512 +const STATX_TYPE = 1 +const STATX_UID = 8 +const S_IEXEC = 64 +const S_IREAD = 256 +const S_IWRITE = 128 + +type Tstatx_timestamp = struct { + Ftv_sec Tint64_t + Ftv_nsec Tuint32_t + F__pad Tuint32_t +} + +type Tstatx = struct { + Fstx_mask Tuint32_t + Fstx_blksize Tuint32_t + Fstx_attributes Tuint64_t + Fstx_nlink Tuint32_t + Fstx_uid Tuint32_t + Fstx_gid Tuint32_t + Fstx_mode Tuint16_t + F__pad0 [1]Tuint16_t + Fstx_ino Tuint64_t + Fstx_size Tuint64_t + Fstx_blocks Tuint64_t + Fstx_attributes_mask Tuint64_t + Fstx_atime Tstatx_timestamp + Fstx_btime Tstatx_timestamp + Fstx_ctime Tstatx_timestamp + Fstx_mtime Tstatx_timestamp + Fstx_rdev_major Tuint32_t + Fstx_rdev_minor Tuint32_t + Fstx_dev_major Tuint32_t + Fstx_dev_minor Tuint32_t + F__pad1 [14]Tuint64_t +} + +type Ttimezone = struct { + Ftz_minuteswest int32 + Ftz_dsttime int32 +} + +func Xfutimes(tls *TLS, fd int32, tv uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v tv=%v, (%v:)", tls, fd, tv, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var _ /* times at bp+0 */ [2]Ttimespec + if !(tv != 0) { + return Xfutimens(tls, fd, uintptr(0)) + } + (**(**[2]Ttimespec)(__ccgo_up(bp)))[0].Ftv_sec = (**(**Ttimeval)(__ccgo_up(tv))).Ftv_sec + (**(**[2]Ttimespec)(__ccgo_up(bp)))[0].Ftv_nsec = (**(**Ttimeval)(__ccgo_up(tv))).Ftv_usec * int64(1000) + (**(**[2]Ttimespec)(__ccgo_up(bp)))[int32(1)].Ftv_sec = (**(**Ttimeval)(__ccgo_up(tv + 1*16))).Ftv_sec + (**(**[2]Ttimespec)(__ccgo_up(bp)))[int32(1)].Ftv_nsec = (**(**Ttimeval)(__ccgo_up(tv + 1*16))).Ftv_usec * int64(1000) + return Xfutimens(tls, fd, bp) +} + +const prlimit64 = 0 + +func Xgetdtablesize(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uint64 + var _ /* rl at bp+0 */ Trlimit + _ = v1 + Xgetrlimit(tls, int32(RLIMIT_NOFILE), bp) + if (**(**Trlimit)(__ccgo_up(bp))).Frlim_cur < uint64(INT_MAX) { + v1 = (**(**Trlimit)(__ccgo_up(bp))).Frlim_cur + } else { + v1 = uint64(INT_MAX) + } + return Int32FromUint64(v1) +} + +func Xgetloadavg(tls *TLS, a uintptr, n int32) (r int32) { + if __ccgo_strace { + trc("tls=%v a=%v n=%v, (%v:)", tls, a, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(368) + defer tls.Free(368) + var i, v1 int32 + var _ /* si at bp+0 */ Tsysinfo + _, _ = i, v1 + if n <= 0 { + if n != 0 { + v1 = -int32(1) + } else { + v1 = 0 + } + return v1 + } + Xsysinfo(tls, bp) + if n > int32(3) { + n = int32(3) + } + i = 0 + for { + if !(i < n) { + break + } + **(**float64)(__ccgo_up(a + uintptr(i)*8)) = float64(Float64FromFloat64(1) / float64(Int32FromInt32(1)< %v", r) }() + } + return Int32FromUint64(X__libc.Fpage_size) +} + +const B0 = 0 +const B1000000 = 23 +const B110 = 3 +const B115200 = 17 +const B1152000 = 24 +const B1200 = 9 +const B134 = 4 +const B150 = 5 +const B1500000 = 25 +const B1800 = 10 +const B19200 = 14 +const B200 = 6 +const B2000000 = 26 +const B230400 = 18 +const B2400 = 11 +const B2500000 = 27 +const B300 = 7 +const B3000000 = 28 +const B3500000 = 29 +const B38400 = 15 +const B4000000 = 30 +const B460800 = 19 +const B4800 = 12 +const B50 = 1 +const B500000 = 20 +const B57600 = 16 +const B576000 = 21 +const B600 = 8 +const B75 = 2 +const B921600 = 22 +const B9600 = 13 +const BRKINT = 2 +const BS0 = 0 +const BS1 = 32768 +const BSDLY = 32768 +const CBAUD = 255 +const CBAUDEX = 16 +const CIBAUD = 16711680 +const CLOCAL = 32768 +const CMSPAR = 1073741824 +const CR0 = 0 +const CR1 = 4096 +const CR2 = 8192 +const CR3 = 12288 +const CRDLY = 12288 +const CREAD = 2048 +const CRTSCTS = 2147483648 +const CS5 = 0 +const CS6 = 256 +const CS7 = 512 +const CS8 = 768 +const CSIZE = 768 +const CSTOPB = 1024 +const ECHO = 8 +const ECHOCTL = 64 +const ECHOE = 2 +const ECHOK = 4 +const ECHOKE = 1 +const ECHONL = 16 +const ECHOPRT = 32 +const EXTA = 14 +const EXTB = 15 +const EXTPROC = 268435456 +const FF0 = 0 +const FF1 = 16384 +const FFDLY = 16384 +const FLUSHO = 8388608 +const HUPCL = 16384 +const ICANON = 256 +const ICRNL = 256 +const IEXTEN = 1024 +const IGNBRK = 1 +const IGNCR = 128 +const IGNPAR = 4 +const IMAXBEL = 8192 +const INLCR = 64 +const INPCK = 16 +const ISIG = 128 +const ISTRIP = 32 +const IUCLC = 4096 +const IUTF8 = 16384 +const IXANY = 2048 +const IXOFF = 1024 +const IXON = 512 +const NL0 = 0 +const NL1 = 256 +const NL2 = 512 +const NL3 = 768 +const NLDLY = 768 +const NOFLSH = 2147483648 +const OCRNL = 8 +const OFDEL = 128 +const OFILL = 64 +const OLCUC = 4 +const ONLCR = 2 +const ONLRET = 32 +const ONOCR = 16 +const OPOST = 1 +const PARENB = 4096 +const PARMRK = 8 +const PARODD = 8192 +const PENDIN = 536870912 +const TAB0 = 0 +const TAB1 = 1024 +const TAB2 = 2048 +const TAB3 = 3072 +const TABDLY = 3072 +const TCIFLUSH = 0 +const TCIOFF = 2 +const TCIOFLUSH = 2 +const TCION = 3 +const TCOFLUSH = 1 +const TCOOFF = 0 +const TCOON = 1 +const TCSADRAIN = 1 +const TCSAFLUSH = 2 +const TCSANOW = 0 +const TIOCSER_TEMT = 1 +const TOSTOP = 4194304 +const VDISCARD = 16 +const VEOF = 4 +const VEOL = 6 +const VEOL2 = 8 +const VERASE = 2 +const VINTR = 0 +const VKILL = 3 +const VLNEXT = 15 +const VMIN = 5 +const VQUIT = 1 +const VREPRINT = 11 +const VSTART = 13 +const VSTOP = 14 +const VSUSP = 12 +const VSWTC = 9 +const VT0 = 0 +const VT1 = 65536 +const VTDLY = 65536 +const VTIME = 7 +const VWERASE = 10 +const XCASE = 16384 +const XTABS = 3072 + +type Twinsize = struct { + Fws_row uint16 + Fws_col uint16 + Fws_xpixel uint16 + Fws_ypixel uint16 +} + +type Tcc_t = uint8 + +type Tspeed_t = uint32 + +type Ttcflag_t = uint32 + +type Ttermios = struct { + Fc_iflag Ttcflag_t + Fc_oflag Ttcflag_t + Fc_cflag Ttcflag_t + Fc_lflag Ttcflag_t + Fc_cc [19]Tcc_t + Fc_line Tcc_t + F__c_ispeed Tspeed_t + F__c_ospeed Tspeed_t +} + +func Xgetpass(tls *TLS, prompt uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v prompt=%v, (%v:)", tls, prompt, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(112) + defer tls.Free(112) + var fd, v1 int32 + var l Tssize_t + var v2 uintptr + var _ /* s at bp+0 */ Ttermios + var _ /* t at bp+44 */ Ttermios + _, _, _, _ = fd, l, v1, v2 + v1 = Xopen(tls, __ccgo_ts+389, Int32FromInt32(O_RDWR)|Int32FromInt32(O_NOCTTY)|Int32FromInt32(O_CLOEXEC), 0) + fd = v1 + if v1 < 0 { + return uintptr(0) + } + Xtcgetattr(tls, fd, bp+44) + **(**Ttermios)(__ccgo_up(bp)) = **(**Ttermios)(__ccgo_up(bp + 44)) + (**(**Ttermios)(__ccgo_up(bp + 44))).Fc_lflag &= Uint32FromInt32(^(Int32FromInt32(ECHO) | Int32FromInt32(ISIG))) + (**(**Ttermios)(__ccgo_up(bp + 44))).Fc_lflag |= uint32(ICANON) + (**(**Ttermios)(__ccgo_up(bp + 44))).Fc_iflag &= Uint32FromInt32(^(Int32FromInt32(INLCR) | Int32FromInt32(IGNCR))) + (**(**Ttermios)(__ccgo_up(bp + 44))).Fc_iflag |= uint32(ICRNL) + Xtcsetattr(tls, fd, int32(TCSAFLUSH), bp+44) + Xtcdrain(tls, fd) + Xdprintf(tls, fd, __ccgo_ts+15, VaList(bp+96, prompt)) + l = Xread(tls, fd, uintptr(unsafe.Pointer(&_password)), uint64(128)) + if l >= 0 { + if l > 0 && Int32FromUint8(_password[l-int64(1)]) == int32('\n') || Uint64FromInt64(l) == uint64(128) { + l = l - 1 + } + _password[l] = uint8(0) + } + Xtcsetattr(tls, fd, int32(TCSAFLUSH), bp) + Xdprintf(tls, fd, __ccgo_ts+398, 0) + Xclose(tls, fd) + if l < 0 { + v2 = uintptr(0) + } else { + v2 = uintptr(unsafe.Pointer(&_password)) + } + return v2 +} + +var _password [128]uint8 + +var _defshells = [18]uint8{'/', 'b', 'i', 'n', '/', 's', 'h', 10, '/', 'b', 'i', 'n', '/', 'c', 's', 'h', 10} + +var _line uintptr +var _linesize Tsize_t +var _f uintptr + +func Xendusershell(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + if _f != 0 { + Xfclose(tls, _f) + } + _f = uintptr(0) +} + +func Xsetusershell(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + if !(_f != 0) { + _f = Xfopen(tls, __ccgo_ts+400, __ccgo_ts+412) + } + if !(_f != 0) { + _f = Xfmemopen(tls, uintptr(unsafe.Pointer(&_defshells)), Uint64FromInt64(18)-Uint64FromInt32(1), __ccgo_ts+416) + } +} + +func Xgetusershell(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l Tssize_t + _ = l + if !(_f != 0) { + Xsetusershell(tls) + } + if !(_f != 0) { + return uintptr(0) + } + l = Xgetline(tls, uintptr(unsafe.Pointer(&_line)), uintptr(unsafe.Pointer(&_linesize)), _f) + if l <= 0 { + return uintptr(0) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(_line + uintptr(l-int64(1))))) == int32('\n') { + **(**uint8)(__ccgo_up(_line + uintptr(l-int64(1)))) = uint8(0) + } + return _line +} + +const ANYMARK = 1 +const FLUSHBAND = 4 +const FLUSHR = 1 +const FLUSHRW = 3 +const FLUSHW = 2 +const FMNAMESZ = 8 +const I_ATMARK = 21279 +const I_CANPUT = 21282 +const I_CKBAND = 21277 +const I_FDINSERT = 21264 +const I_FIND = 21259 +const I_FLUSH = 21253 +const I_FLUSHBAND = 21276 +const I_GETBAND = 21278 +const I_GETCLTIME = 21281 +const I_GETSIG = 21258 +const I_GRDOPT = 21255 +const I_GWROPT = 21268 +const I_LINK = 21260 +const I_LIST = 21269 +const I_LOOK = 21252 +const I_NREAD = 21249 +const I_PEEK = 21263 +const I_PLINK = 21270 +const I_POP = 21251 +const I_PUNLINK = 21271 +const I_PUSH = 21250 +const I_RECVFD = 21262 +const I_SENDFD = 21265 +const I_SETCLTIME = 21280 +const I_SETSIG = 21257 +const I_SRDOPT = 21254 +const I_STR = 21256 +const I_SWROPT = 21267 +const I_UNLINK = 21261 +const LASTMARK = 2 +const MORECTL = 1 +const MOREDATA = 2 +const MSG_ANY = 2 +const MSG_BAND = 4 +const MSG_HIPRI = 1 +const MUXID_ALL = -1 +const RMSGD = 1 +const RMSGN = 2 +const RNORM = 0 +const RPROTDAT = 4 +const RPROTDIS = 8 +const RPROTMASK = 28 +const RPROTNORM = 16 +const RS_HIPRI = 1 +const SNDPIPE = 2 +const SNDZERO = 1 +const S_BANDURG = 512 +const S_ERROR = 16 +const S_HANGUP = 32 +const S_HIPRI = 2 +const S_INPUT = 1 +const S_MSG = 8 +const S_OUTPUT = 4 +const S_RDBAND = 128 +const S_RDNORM = 64 +const S_WRBAND = 256 +const S_WRNORM = 4 +const __SID = 21248 + +type Tbandinfo = struct { + Fbi_pri uint8 + Fbi_flag int32 +} + +type Tstrbuf = struct { + Fmaxlen int32 + Flen1 int32 + Fbuf uintptr +} + +type Tstrpeek = struct { + Fctlbuf Tstrbuf + Fdatabuf Tstrbuf + Fflags uint32 +} + +type Tstrfdinsert = struct { + Fctlbuf Tstrbuf + Fdatabuf Tstrbuf + Fflags uint32 + Ffildes int32 + Foffset int32 +} + +type Tstrioctl = struct { + Fic_cmd int32 + Fic_timout int32 + Fic_len int32 + Fic_dp uintptr +} + +type Tstrrecvfd = struct { + Ffd int32 + Fuid int32 + Fgid int32 + F__fill [8]uint8 +} + +type Tstr_mlist = struct { + Fl_name [9]uint8 +} + +type Tstr_list = struct { + Fsl_nmods int32 + Fsl_modlist uintptr +} + +func Xisastream(tls *TLS, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + _ = v1 + if Xfcntl(tls, fd, int32(F_GETFD), 0) < 0 { + v1 = -int32(1) + } else { + v1 = 0 + } + return v1 +} + +func Xlutimes(tls *TLS, filename uintptr, tv uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v filename=%v tv=%v, (%v:)", tls, filename, tv, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var v1 uintptr + var _ /* times at bp+0 */ [2]Ttimespec + _ = v1 + if tv != 0 { + (**(**[2]Ttimespec)(__ccgo_up(bp)))[0].Ftv_sec = (**(**Ttimeval)(__ccgo_up(tv))).Ftv_sec + (**(**[2]Ttimespec)(__ccgo_up(bp)))[0].Ftv_nsec = (**(**Ttimeval)(__ccgo_up(tv))).Ftv_usec * int64(1000) + (**(**[2]Ttimespec)(__ccgo_up(bp)))[int32(1)].Ftv_sec = (**(**Ttimeval)(__ccgo_up(tv + 1*16))).Ftv_sec + (**(**[2]Ttimespec)(__ccgo_up(bp)))[int32(1)].Ftv_nsec = (**(**Ttimeval)(__ccgo_up(tv + 1*16))).Ftv_usec * int64(1000) + } + if tv != 0 { + v1 = bp + } else { + v1 = uintptr(0) + } + return Xutimensat(tls, -int32(100), filename, v1, int32(AT_SYMLINK_NOFOLLOW)) +} + +const UL_GETFSIZE = 1 +const UL_SETFSIZE = 2 + +func Xulimit(tls *TLS, cmd int32, va uintptr) (r int64) { + if __ccgo_strace { + trc("tls=%v cmd=%v va=%v, (%v:)", tls, cmd, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ap Tva_list + var val int64 + var _ /* rl at bp+0 */ Trlimit + _, _ = ap, val + Xgetrlimit(tls, int32(RLIMIT_FSIZE), bp) + if cmd == int32(UL_SETFSIZE) { + ap = va + val = VaInt64(&ap) + _ = ap + (**(**Trlimit)(__ccgo_up(bp))).Frlim_cur = uint64(512) * Uint64FromInt64(val) + if Xsetrlimit(tls, int32(RLIMIT_FSIZE), bp) != 0 { + return int64(-int32(1)) + } + } + return Int64FromUint64((**(**Trlimit)(__ccgo_up(bp))).Frlim_cur / uint64(512)) +} + +const BOOT_TIME = 2 +const DEAD_PROCESS = 8 +const EMPTY = 0 +const INIT_PROCESS = 5 +const LOGIN_PROCESS = 6 +const NEW_TIME = 3 +const OLD_TIME = 4 +const RUN_LVL = 1 +const USER_PROCESS = 7 +const e_exit = 0 +const e_termination = 0 + +type Tutmpx = struct { + Fut_type int16 + F__ut_pad1 int16 + Fut_pid Tpid_t + Fut_line [32]uint8 + Fut_id [4]uint8 + Fut_user [32]uint8 + Fut_host [256]uint8 + Fut_exit struct { + F__e_termination int16 + F__e_exit int16 + } + Fut_session int32 + F__ut_pad2 int32 + Fut_tv Ttimeval + Fut_addr_v6 [4]uint32 + F__unused [20]uint8 +} + +func Xendutxent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } +} + +func Xsetutxent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } +} + +func Xgetutxent(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return UintptrFromInt32(0) +} + +func Xgetutxid(tls *TLS, ut uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v ut=%v, (%v:)", tls, ut, origin(2)) + defer func() { trc("-> %v", r) }() + } + return UintptrFromInt32(0) +} + +func Xgetutxline(tls *TLS, ut uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v ut=%v, (%v:)", tls, ut, origin(2)) + defer func() { trc("-> %v", r) }() + } + return UintptrFromInt32(0) +} + +func Xpututxline(tls *TLS, ut uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v ut=%v, (%v:)", tls, ut, origin(2)) + defer func() { trc("-> %v", r) }() + } + return UintptrFromInt32(0) +} + +func Xupdwtmpx(tls *TLS, f uintptr, u uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v u=%v, (%v:)", tls, f, u, origin(2)) + } +} + +func ___utmpxname(tls *TLS, f uintptr) (r int32) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOPNOTSUPP) + return -int32(1) +} + +func Xendutent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + Xendutxent(tls) +} + +func Xgetutent(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetutxent(tls) +} + +func Xgetutid(tls *TLS, ut uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v ut=%v, (%v:)", tls, ut, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetutxid(tls, ut) +} + +func Xgetutline(tls *TLS, ut uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v ut=%v, (%v:)", tls, ut, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetutxline(tls, ut) +} + +func Xpututline(tls *TLS, ut uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v ut=%v, (%v:)", tls, ut, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xpututxline(tls, ut) +} + +func Xsetutent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + Xsetutxent(tls) +} + +func Xupdwtmp(tls *TLS, f uintptr, u uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v u=%v, (%v:)", tls, f, u, origin(2)) + } + Xupdwtmpx(tls, f, u) +} + +const ADJ_ESTERROR = 8 +const ADJ_FREQUENCY = 2 +const ADJ_MAXERROR = 4 +const ADJ_MICRO = 4096 +const ADJ_NANO = 8192 +const ADJ_OFFSET = 1 +const ADJ_OFFSET_SINGLESHOT = 32769 +const ADJ_OFFSET_SS_READ = 40961 +const ADJ_SETOFFSET = 256 +const ADJ_STATUS = 16 +const ADJ_TAI = 128 +const ADJ_TICK = 16384 +const ADJ_TIMECONST = 32 +const MAXTC = 6 +const MOD_CLKA = 32769 +const MOD_CLKB = 16384 +const MOD_ESTERROR = 8 +const MOD_FREQUENCY = 2 +const MOD_MAXERROR = 4 +const MOD_MICRO = 4096 +const MOD_NANO = 8192 +const MOD_OFFSET = 1 +const MOD_STATUS = 16 +const MOD_TAI = 128 +const MOD_TIMECONST = 32 +const STA_CLK = 32768 +const STA_CLOCKERR = 4096 +const STA_DEL = 32 +const STA_FLL = 8 +const STA_FREQHOLD = 128 +const STA_INS = 16 +const STA_MODE = 16384 +const STA_NANO = 8192 +const STA_PLL = 1 +const STA_PPSERROR = 2048 +const STA_PPSFREQ = 2 +const STA_PPSJITTER = 512 +const STA_PPSSIGNAL = 256 +const STA_PPSTIME = 4 +const STA_PPSWANDER = 1024 +const STA_RONLY = 65280 +const STA_UNSYNC = 64 +const TIME_BAD = 5 +const TIME_DEL = 2 +const TIME_ERROR = 5 +const TIME_INS = 1 +const TIME_OK = 0 +const TIME_OOP = 3 +const TIME_WAIT = 4 + +type Tntptimeval = struct { + Ftime Ttimeval + Fmaxerror int64 + Festerror int64 +} + +type Ttimex = struct { + Fmodes uint32 + Foffset int64 + Ffreq int64 + Fmaxerror int64 + Festerror int64 + Fstatus int32 + Fconstant int64 + Fprecision int64 + Ftolerance int64 + Ftime Ttimeval + Ftick int64 + Fppsfreq int64 + Fjitter int64 + Fshift int32 + Fstabil int64 + Fjitcnt int64 + Fcalcnt int64 + Ferrcnt int64 + Fstbcnt int64 + Ftai int32 + F__padding [11]int32 +} + +func Xadjtime(tls *TLS, in uintptr, out uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v in=%v out=%v, (%v:)", tls, in, out, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(208) + defer tls.Free(208) + var v1 Tsuseconds_t + var _ /* tx at bp+0 */ Ttimex + _ = v1 + **(**Ttimex)(__ccgo_up(bp)) = Ttimex{} + if in != 0 { + if (*Ttimeval)(unsafe.Pointer(in)).Ftv_sec > int64(1000) || (*Ttimeval)(unsafe.Pointer(in)).Ftv_usec > int64(1000000000) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + (**(**Ttimex)(__ccgo_up(bp))).Foffset = (*Ttimeval)(unsafe.Pointer(in)).Ftv_sec*int64(1000000) + (*Ttimeval)(unsafe.Pointer(in)).Ftv_usec + (**(**Ttimex)(__ccgo_up(bp))).Fmodes = uint32(ADJ_OFFSET_SINGLESHOT) + } + if Xadjtimex(tls, bp) < 0 { + return -int32(1) + } + if out != 0 { + (*Ttimeval)(unsafe.Pointer(out)).Ftv_sec = (**(**Ttimex)(__ccgo_up(bp))).Foffset / int64(1000000) + v1 = (**(**Ttimex)(__ccgo_up(bp))).Foffset % Int64FromInt32(1000000) + (*Ttimeval)(unsafe.Pointer(out)).Ftv_usec = v1 + if v1 < 0 { + (*Ttimeval)(unsafe.Pointer(out)).Ftv_sec = (*Ttimeval)(unsafe.Pointer(out)).Ftv_sec - 1 + **(**Tsuseconds_t)(__ccgo_up(out + 8)) += int64(1000000) + } + } + return 0 +} + +func Xadjtimex(tls *TLS, tx uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v tx=%v, (%v:)", tls, tx, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xclock_adjtime(tls, CLOCK_REALTIME, tx) +} + +func Xbrk(tls *TLS, end uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v end=%v, (%v:)", tls, end, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(ENOMEM)))) +} + +func Xcapset(tls *TLS, a uintptr, b uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v a=%v b=%v, (%v:)", tls, a, b, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_capset), int64(a), int64(b))))) +} + +func Xcapget(tls *TLS, a uintptr, b uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v a=%v b=%v, (%v:)", tls, a, b, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_capget), int64(a), int64(b))))) +} + +func Xchroot(tls *TLS, path uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v, (%v:)", tls, path, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_chroot), int64(path))))) +} + +type Tktimex64 = struct { + Fmodes uint32 + F__ccgo4 uint32 + Foffset int64 + Ffreq int64 + Fmaxerror int64 + Festerror int64 + Fstatus int32 + F__ccgo44 uint32 + Fconstant int64 + Fprecision int64 + Ftolerance int64 + Ftime_sec int64 + Ftime_usec int64 + Ftick int64 + Fppsfreq int64 + Fjitter int64 + Fshift int32 + F__ccgo116 uint32 + Fstabil int64 + Fjitcnt int64 + Fcalcnt int64 + Ferrcnt int64 + Fstbcnt int64 + Ftai int32 + F__padding [11]int32 +} + +type Tktimex = struct { + Fmodes uint32 + Foffset int64 + Ffreq int64 + Fmaxerror int64 + Festerror int64 + Fstatus int32 + Fconstant int64 + Fprecision int64 + Ftolerance int64 + Ftime_sec int64 + Ftime_usec int64 + Ftick int64 + Fppsfreq int64 + Fjitter int64 + Fshift int32 + Fstabil int64 + Fjitcnt int64 + Fcalcnt int64 + Ferrcnt int64 + Fstbcnt int64 + Ftai int32 + F__padding [11]int32 +} + +func Xclock_adjtime(tls *TLS, clock_id Tclockid_t, utx uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v clock_id=%v utx=%v, (%v:)", tls, clock_id, utx, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(208) + defer tls.Free(208) + var r int32 + var _ /* ktx at bp+0 */ Tktimex + _ = r + r = -int32(ENOSYS) + if uint64(8) > uint64(8) { + **(**Tktimex)(__ccgo_up(bp)) = Tktimex{ + Fmodes: (*Ttimex)(unsafe.Pointer(utx)).Fmodes, + Foffset: (*Ttimex)(unsafe.Pointer(utx)).Foffset, + Ffreq: (*Ttimex)(unsafe.Pointer(utx)).Ffreq, + Fmaxerror: (*Ttimex)(unsafe.Pointer(utx)).Fmaxerror, + Festerror: (*Ttimex)(unsafe.Pointer(utx)).Festerror, + Fstatus: (*Ttimex)(unsafe.Pointer(utx)).Fstatus, + Fconstant: (*Ttimex)(unsafe.Pointer(utx)).Fconstant, + Fprecision: (*Ttimex)(unsafe.Pointer(utx)).Fprecision, + Ftolerance: (*Ttimex)(unsafe.Pointer(utx)).Ftolerance, + Ftime_sec: (*Ttimex)(unsafe.Pointer(utx)).Ftime.Ftv_sec, + Ftime_usec: (*Ttimex)(unsafe.Pointer(utx)).Ftime.Ftv_usec, + Ftick: (*Ttimex)(unsafe.Pointer(utx)).Ftick, + Fppsfreq: (*Ttimex)(unsafe.Pointer(utx)).Fppsfreq, + Fjitter: (*Ttimex)(unsafe.Pointer(utx)).Fjitter, + Fshift: (*Ttimex)(unsafe.Pointer(utx)).Fshift, + Fstabil: (*Ttimex)(unsafe.Pointer(utx)).Fstabil, + Fjitcnt: (*Ttimex)(unsafe.Pointer(utx)).Fjitcnt, + Fcalcnt: (*Ttimex)(unsafe.Pointer(utx)).Fcalcnt, + Ferrcnt: (*Ttimex)(unsafe.Pointer(utx)).Ferrcnt, + Fstbcnt: (*Ttimex)(unsafe.Pointer(utx)).Fstbcnt, + Ftai: (*Ttimex)(unsafe.Pointer(utx)).Ftai, + } + if clock_id == CLOCK_REALTIME { + r = int32(X__syscall1(tls, int64(SYS_adjtimex), int64(bp))) + } else { + r = int32(X__syscall2(tls, int64(SYS_clock_adjtime), int64(clock_id), int64(bp))) + } + if r >= 0 { + (*Ttimex)(unsafe.Pointer(utx)).Fmodes = (**(**Tktimex)(__ccgo_up(bp))).Fmodes + (*Ttimex)(unsafe.Pointer(utx)).Foffset = (**(**Tktimex)(__ccgo_up(bp))).Foffset + (*Ttimex)(unsafe.Pointer(utx)).Ffreq = (**(**Tktimex)(__ccgo_up(bp))).Ffreq + (*Ttimex)(unsafe.Pointer(utx)).Fmaxerror = (**(**Tktimex)(__ccgo_up(bp))).Fmaxerror + (*Ttimex)(unsafe.Pointer(utx)).Festerror = (**(**Tktimex)(__ccgo_up(bp))).Festerror + (*Ttimex)(unsafe.Pointer(utx)).Fstatus = (**(**Tktimex)(__ccgo_up(bp))).Fstatus + (*Ttimex)(unsafe.Pointer(utx)).Fconstant = (**(**Tktimex)(__ccgo_up(bp))).Fconstant + (*Ttimex)(unsafe.Pointer(utx)).Fprecision = (**(**Tktimex)(__ccgo_up(bp))).Fprecision + (*Ttimex)(unsafe.Pointer(utx)).Ftolerance = (**(**Tktimex)(__ccgo_up(bp))).Ftolerance + (*Ttimex)(unsafe.Pointer(utx)).Ftime.Ftv_sec = (**(**Tktimex)(__ccgo_up(bp))).Ftime_sec + (*Ttimex)(unsafe.Pointer(utx)).Ftime.Ftv_usec = (**(**Tktimex)(__ccgo_up(bp))).Ftime_usec + (*Ttimex)(unsafe.Pointer(utx)).Ftick = (**(**Tktimex)(__ccgo_up(bp))).Ftick + (*Ttimex)(unsafe.Pointer(utx)).Fppsfreq = (**(**Tktimex)(__ccgo_up(bp))).Fppsfreq + (*Ttimex)(unsafe.Pointer(utx)).Fjitter = (**(**Tktimex)(__ccgo_up(bp))).Fjitter + (*Ttimex)(unsafe.Pointer(utx)).Fshift = (**(**Tktimex)(__ccgo_up(bp))).Fshift + (*Ttimex)(unsafe.Pointer(utx)).Fstabil = (**(**Tktimex)(__ccgo_up(bp))).Fstabil + (*Ttimex)(unsafe.Pointer(utx)).Fjitcnt = (**(**Tktimex)(__ccgo_up(bp))).Fjitcnt + (*Ttimex)(unsafe.Pointer(utx)).Fcalcnt = (**(**Tktimex)(__ccgo_up(bp))).Fcalcnt + (*Ttimex)(unsafe.Pointer(utx)).Ferrcnt = (**(**Tktimex)(__ccgo_up(bp))).Ferrcnt + (*Ttimex)(unsafe.Pointer(utx)).Fstbcnt = (**(**Tktimex)(__ccgo_up(bp))).Fstbcnt + (*Ttimex)(unsafe.Pointer(utx)).Ftai = (**(**Tktimex)(__ccgo_up(bp))).Ftai + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) + } + if clock_id == CLOCK_REALTIME { + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_adjtimex), int64(utx))))) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_clock_adjtime), int64(clock_id), int64(utx))))) +} + +func Xcopy_file_range(tls *TLS, fd_in int32, off_in uintptr, fd_out int32, off_out uintptr, len1 Tsize_t, flags uint32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd_in=%v off_in=%v fd_out=%v off_out=%v len1=%v flags=%v, (%v:)", tls, fd_in, off_in, fd_out, off_out, len1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall6(tls, int64(SYS_copy_file_range), int64(fd_in), int64(off_in), int64(fd_out), int64(off_out), Int64FromUint64(len1), Int64FromUint32(flags)))) +} + +const EPOLLERR = 8 +const EPOLLET = 2147483648 +const EPOLLEXCLUSIVE = 268435456 +const EPOLLHUP = 16 +const EPOLLIN = 1 +const EPOLLMSG = 1024 +const EPOLLNVAL = 32 +const EPOLLONESHOT = 1073741824 +const EPOLLOUT = 4 +const EPOLLPRI = 2 +const EPOLLRDBAND = 128 +const EPOLLRDHUP = 8192 +const EPOLLRDNORM = 64 +const EPOLLWAKEUP = 536870912 +const EPOLLWRBAND = 512 +const EPOLLWRNORM = 256 +const EPOLL_CLOEXEC = 524288 +const EPOLL_CTL_ADD = 1 +const EPOLL_CTL_DEL = 2 +const EPOLL_CTL_MOD = 3 +const EPOLL_NONBLOCK = 2048 + +type Tfsblkcnt_t = uint64 + +type Tfsfilcnt_t = uint64 + +type _EPOLL_EVENTS = int32 + +const ___EPOLL_DUMMY = 0 + +type Tepoll_data_t = struct { + Ffd [0]int32 + Fu32 [0]Tuint32_t + Fu64 [0]Tuint64_t + Fptr uintptr +} + +type Tepoll_data = Tepoll_data_t + +type Tepoll_event = struct { + Fevents Tuint32_t + Fdata Tepoll_data_t +} + +func Xepoll_create(tls *TLS, size int32) (r int32) { + if __ccgo_strace { + trc("tls=%v size=%v, (%v:)", tls, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + if size <= 0 { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL)))) + } + return Xepoll_create1(tls, 0) +} + +func Xepoll_create1(tls *TLS, flags int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v flags=%v, (%v:)", tls, flags, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + r = int32(X__syscall1(tls, int64(SYS_epoll_create1), int64(flags))) + if r == -int32(ENOSYS) && !(flags != 0) { + r = int32(X__syscall1(tls, int64(SYS_epoll_create), int64(Int32FromInt32(1)))) + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func Xepoll_ctl(tls *TLS, fd int32, op int32, fd2 int32, ev uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v op=%v fd2=%v ev=%v, (%v:)", tls, fd, op, fd2, ev, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_epoll_ctl), int64(fd), int64(op), int64(fd2), int64(ev))))) +} + +func Xepoll_pwait(tls *TLS, fd int32, ev uintptr, cnt int32, to int32, sigs uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v ev=%v cnt=%v to=%v sigs=%v, (%v:)", tls, fd, ev, cnt, to, sigs, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + r = int32(___syscall_cp(tls, int64(SYS_epoll_pwait), int64(fd), int64(ev), int64(cnt), int64(to), int64(sigs), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8)))) + if r == -int32(ENOSYS) && !(sigs != 0) { + r = int32(___syscall_cp(tls, int64(SYS_epoll_wait), int64(fd), int64(ev), int64(cnt), int64(to), 0, 0)) + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func Xepoll_wait(tls *TLS, fd int32, ev uintptr, cnt int32, to int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v ev=%v cnt=%v to=%v, (%v:)", tls, fd, ev, cnt, to, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xepoll_pwait(tls, fd, ev, cnt, to, uintptr(0)) +} + +const EFD_CLOEXEC = 524288 +const EFD_NONBLOCK = 2048 +const EFD_SEMAPHORE = 1 + +type Teventfd_t = uint64 + +func Xeventfd(tls *TLS, count uint32, flags int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v count=%v flags=%v, (%v:)", tls, count, flags, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + r = int32(X__syscall2(tls, int64(SYS_eventfd2), Int64FromUint32(count), int64(flags))) + if r == -int32(ENOSYS) && !(flags != 0) { + r = int32(X__syscall1(tls, int64(SYS_eventfd), Int64FromUint32(count))) + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func Xeventfd_read(tls *TLS, fd int32, value uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v value=%v, (%v:)", tls, fd, value, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + _ = v1 + if uint64(8) == Uint64FromInt64(Xread(tls, fd, value, uint64(8))) { + v1 = 0 + } else { + v1 = -int32(1) + } + return v1 +} + +func Xeventfd_write(tls *TLS, fd int32, _value Teventfd_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v _value=%v, (%v:)", tls, fd, _value, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + *(*Teventfd_t)(unsafe.Pointer(bp)) = _value + var v1 int32 + _ = v1 + if uint64(8) == Uint64FromInt64(Xwrite(tls, fd, bp, uint64(8))) { + v1 = 0 + } else { + v1 = -int32(1) + } + return v1 +} + +func Xfallocate(tls *TLS, fd int32, mode int32, base Toff_t, len1 Toff_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v mode=%v base=%v len1=%v, (%v:)", tls, fd, mode, base, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_fallocate), int64(fd), int64(mode), base, len1)))) +} + +const FANOTIFY_METADATA_VERSION = 3 +const FAN_ACCESS = 1 +const FAN_ACCESS_PERM = 131072 +const FAN_ALLOW = 1 +const FAN_ALL_CLASS_BITS = 12 +const FAN_ALL_EVENTS = 59 +const FAN_ALL_INIT_FLAGS = 63 +const FAN_ALL_MARK_FLAGS = 255 +const FAN_ALL_OUTGOING_EVENTS = 213051 +const FAN_ALL_PERM_EVENTS = 196608 +const FAN_ATTRIB = 4 +const FAN_AUDIT = 16 +const FAN_CLASS_CONTENT = 4 +const FAN_CLASS_NOTIF = 0 +const FAN_CLASS_PRE_CONTENT = 8 +const FAN_CLOEXEC = 1 +const FAN_CLOSE = 24 +const FAN_CLOSE_NOWRITE = 16 +const FAN_CLOSE_WRITE = 8 +const FAN_CREATE = 256 +const FAN_DELETE = 512 +const FAN_DELETE_SELF = 1024 +const FAN_DENY = 2 +const FAN_DIR_MODIFY = 524288 +const FAN_ENABLE_AUDIT = 64 +const FAN_EVENT_INFO_TYPE_DFID = 3 +const FAN_EVENT_INFO_TYPE_DFID_NAME = 2 +const FAN_EVENT_INFO_TYPE_FID = 1 +const FAN_EVENT_METADATA_LEN = 0 +const FAN_EVENT_ON_CHILD = 134217728 +const FAN_MARK_ADD = 1 +const FAN_MARK_DONT_FOLLOW = 4 +const FAN_MARK_FILESYSTEM = 256 +const FAN_MARK_FLUSH = 128 +const FAN_MARK_IGNORED_MASK = 32 +const FAN_MARK_IGNORED_SURV_MODIFY = 64 +const FAN_MARK_INODE = 0 +const FAN_MARK_MOUNT = 16 +const FAN_MARK_ONLYDIR = 8 +const FAN_MARK_REMOVE = 2 +const FAN_MARK_TYPE_MASK = 272 +const FAN_MODIFY = 2 +const FAN_MOVE = 192 +const FAN_MOVED_FROM = 64 +const FAN_MOVED_TO = 128 +const FAN_MOVE_SELF = 2048 +const FAN_NOFD = -1 +const FAN_NONBLOCK = 2 +const FAN_ONDIR = 1073741824 +const FAN_OPEN = 32 +const FAN_OPEN_EXEC = 4096 +const FAN_OPEN_EXEC_PERM = 262144 +const FAN_OPEN_PERM = 65536 +const FAN_Q_OVERFLOW = 16384 +const FAN_REPORT_DFID_NAME = 3072 +const FAN_REPORT_DIR_FID = 1024 +const FAN_REPORT_FID = 512 +const FAN_REPORT_NAME = 2048 +const FAN_REPORT_TID = 256 +const FAN_UNLIMITED_MARKS = 32 +const FAN_UNLIMITED_QUEUE = 16 +const ST_APPEND = 256 +const ST_IMMUTABLE = 512 +const ST_MANDLOCK = 64 +const ST_NOATIME = 1024 +const ST_NODEV = 4 +const ST_NODIRATIME = 2048 +const ST_NOEXEC = 8 +const ST_NOSUID = 2 +const ST_RDONLY = 1 +const ST_RELATIME = 4096 +const ST_SYNCHRONOUS = 16 +const ST_WRITE = 128 + +type Tstatvfs = struct { + Ff_bsize uint64 + Ff_frsize uint64 + Ff_blocks Tfsblkcnt_t + Ff_bfree Tfsblkcnt_t + Ff_bavail Tfsblkcnt_t + Ff_files Tfsfilcnt_t + Ff_ffree Tfsfilcnt_t + Ff_favail Tfsfilcnt_t + Ff_fsid uint64 + Ff_flag uint64 + Ff_namemax uint64 + Ff_type uint32 + F__reserved [5]int32 +} + +type Tfsid_t = struct { + F__val [2]int32 +} + +type t__fsid_t = Tfsid_t + +type Tstatfs = struct { + Ff_type uint64 + Ff_bsize uint64 + Ff_blocks Tfsblkcnt_t + Ff_bfree Tfsblkcnt_t + Ff_bavail Tfsblkcnt_t + Ff_files Tfsfilcnt_t + Ff_ffree Tfsfilcnt_t + Ff_fsid Tfsid_t + Ff_namelen uint64 + Ff_frsize uint64 + Ff_flags uint64 + Ff_spare [4]uint64 +} + +type Tfanotify_event_metadata = struct { + Fevent_len uint32 + Fvers uint8 + Freserved uint8 + Fmetadata_len uint16 + Fmask uint64 + Ffd int32 + Fpid int32 +} + +type Tfanotify_event_info_header = struct { + Finfo_type uint8 + Fpad uint8 + Flen1 uint16 +} + +type Tfanotify_event_info_fid = struct { + Fhdr Tfanotify_event_info_header + Ffsid Tfsid_t +} + +type Tfanotify_response = struct { + Ffd int32 + Fresponse uint32 +} + +func Xfanotify_init(tls *TLS, flags uint32, event_f_flags uint32) (r int32) { + if __ccgo_strace { + trc("tls=%v flags=%v event_f_flags=%v, (%v:)", tls, flags, event_f_flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_fanotify_init), Int64FromUint32(flags), Int64FromUint32(event_f_flags))))) +} + +func Xfanotify_mark(tls *TLS, fanotify_fd int32, flags uint32, mask uint64, dfd int32, pathname uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fanotify_fd=%v flags=%v mask=%v dfd=%v pathname=%v, (%v:)", tls, fanotify_fd, flags, mask, dfd, pathname, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_fanotify_mark), int64(fanotify_fd), Int64FromUint32(flags), Int64FromUint64(mask), int64(dfd), int64(pathname))))) +} + +const LOCK_EX = 2 +const LOCK_NB = 4 +const LOCK_SH = 1 +const LOCK_UN = 8 + +func Xflock(tls *TLS, fd int32, op int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v op=%v, (%v:)", tls, fd, op, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_flock), int64(fd), int64(op))))) +} + +func Xgetdents(tls *TLS, fd int32, buf uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v len1=%v, (%v:)", tls, fd, buf, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + if len1 > uint64(INT_MAX) { + len1 = uint64(INT_MAX) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_getdents64), int64(fd), int64(buf), Int64FromUint64(len1))))) +} + +const GRND_INSECURE = 4 +const GRND_NONBLOCK = 1 +const GRND_RANDOM = 2 + +func Xgetrandom(tls *TLS, buf uintptr, buflen Tsize_t, flags uint32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v buf=%v buflen=%v flags=%v, (%v:)", tls, buf, buflen, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_getrandom), int64(buf), Int64FromUint64(buflen), Int64FromUint32(flags), 0, 0, 0))) +} + +const IN_ACCESS = 1 +const IN_ALL_EVENTS = 4095 +const IN_ATTRIB = 4 +const IN_CLOEXEC = 524288 +const IN_CLOSE = 24 +const IN_CLOSE_NOWRITE = 16 +const IN_CLOSE_WRITE = 8 +const IN_CREATE = 256 +const IN_DELETE = 512 +const IN_DELETE_SELF = 1024 +const IN_DONT_FOLLOW = 33554432 +const IN_EXCL_UNLINK = 67108864 +const IN_IGNORED = 32768 +const IN_ISDIR = 1073741824 +const IN_MASK_ADD = 536870912 +const IN_MASK_CREATE = 268435456 +const IN_MODIFY = 2 +const IN_MOVE = 192 +const IN_MOVED_FROM = 64 +const IN_MOVED_TO = 128 +const IN_MOVE_SELF = 2048 +const IN_NONBLOCK = 2048 +const IN_ONESHOT = 2147483648 +const IN_ONLYDIR = 16777216 +const IN_OPEN = 32 +const IN_Q_OVERFLOW = 16384 +const IN_UNMOUNT = 8192 + +type Tinotify_event = struct { + Fwd int32 + Fmask Tuint32_t + Fcookie Tuint32_t + Flen1 Tuint32_t +} + +func Xinotify_init(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xinotify_init1(tls, 0) +} + +func Xinotify_init1(tls *TLS, flags int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v flags=%v, (%v:)", tls, flags, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + r = int32(X__syscall1(tls, int64(SYS_inotify_init1), int64(flags))) + if r == -int32(ENOSYS) && !(flags != 0) { + r = int32(X__syscall0(tls, int64(SYS_inotify_init))) + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func Xinotify_add_watch(tls *TLS, fd int32, pathname uintptr, mask Tuint32_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v pathname=%v mask=%v, (%v:)", tls, fd, pathname, mask, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_inotify_add_watch), int64(fd), int64(pathname), Int64FromUint32(mask))))) +} + +func Xinotify_rm_watch(tls *TLS, fd int32, wd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v wd=%v, (%v:)", tls, fd, wd, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_inotify_rm_watch), int64(fd), int64(wd))))) +} + +func Xioperm(tls *TLS, from uint64, num uint64, turn_on int32) (r int32) { + if __ccgo_strace { + trc("tls=%v from=%v num=%v turn_on=%v, (%v:)", tls, from, num, turn_on, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_ioperm), Int64FromUint64(from), Int64FromUint64(num), int64(turn_on))))) +} + +func Xiopl(tls *TLS, level int32) (r int32) { + if __ccgo_strace { + trc("tls=%v level=%v, (%v:)", tls, level, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_iopl), int64(level))))) +} + +func Xklogctl(tls *TLS, type1 int32, buf uintptr, len1 int32) (r int32) { + if __ccgo_strace { + trc("tls=%v type1=%v buf=%v len1=%v, (%v:)", tls, type1, buf, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_syslog), int64(type1), int64(buf), int64(len1))))) +} + +const MADV_COLD = 20 +const MADV_DODUMP = 17 +const MADV_DOFORK = 11 +const MADV_DONTDUMP = 16 +const MADV_DONTFORK = 10 +const MADV_DONTNEED = 4 +const MADV_FREE = 8 +const MADV_HUGEPAGE = 14 +const MADV_HWPOISON = 100 +const MADV_KEEPONFORK = 19 +const MADV_MERGEABLE = 12 +const MADV_NOHUGEPAGE = 15 +const MADV_NORMAL = 0 +const MADV_PAGEOUT = 21 +const MADV_RANDOM = 1 +const MADV_REMOVE = 9 +const MADV_SEQUENTIAL = 2 +const MADV_SOFT_OFFLINE = 101 +const MADV_UNMERGEABLE = 13 +const MADV_WILLNEED = 3 +const MADV_WIPEONFORK = 18 +const MFD_ALLOW_SEALING = 2 +const MFD_CLOEXEC = 1 +const MFD_HUGETLB = 4 +const MLOCK_ONFAULT = 1 +const MREMAP_DONTUNMAP = 4 +const MREMAP_FIXED = 2 +const MREMAP_MAYMOVE = 1 +const _GNU_SOURCE = 1 + +func Xmemfd_create(tls *TLS, name uintptr, flags uint32) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v flags=%v, (%v:)", tls, name, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_memfd_create), int64(name), Int64FromUint32(flags))))) +} + +func Xmlock2(tls *TLS, addr uintptr, len1 Tsize_t, flags uint32) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v len1=%v flags=%v, (%v:)", tls, addr, len1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + if flags == uint32(0) { + return Xmlock(tls, addr, len1) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_mlock2), int64(addr), Int64FromUint64(len1), Int64FromUint32(flags))))) +} + +func Xinit_module(tls *TLS, a uintptr, b uint64, c uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v a=%v b=%v c=%v, (%v:)", tls, a, b, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_init_module), int64(a), Int64FromUint64(b), int64(c))))) +} + +func Xdelete_module(tls *TLS, a uintptr, b uint32) (r int32) { + if __ccgo_strace { + trc("tls=%v a=%v b=%v, (%v:)", tls, a, b, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_delete_module), int64(a), Int64FromUint32(b))))) +} + +const BLKBSZGET = 1073746544 +const BLKBSZSET = 2147488369 +const BLKFLSBUF = 536875617 +const BLKFRAGET = 536875621 +const BLKFRASET = 536875620 +const BLKGETSIZE = 536875616 +const BLKGETSIZE64 = 1073746546 +const BLKRAGET = 536875619 +const BLKRASET = 536875618 +const BLKROGET = 536875614 +const BLKROSET = 536875613 +const BLKRRPART = 536875615 +const BLKSECTGET = 536875623 +const BLKSECTSET = 536875622 +const BLKSSZGET = 536875624 +const FIOASYNC = 2147509885 +const FIOCLEX = 536897025 +const FIOGETOWN = 35075 +const FIONBIO = 2147509886 +const FIONCLEX = 536897026 +const FIONREAD = 1073768063 +const FIOQSIZE = 1073768064 +const FIOSETOWN = 35073 +const MNT_DETACH = 2 +const MNT_EXPIRE = 4 +const MNT_FORCE = 1 +const MS_ACTIVE = 1073741824 +const MS_BIND = 4096 +const MS_BORN = 536870912 +const MS_DIRSYNC = 128 +const MS_I_VERSION = 8388608 +const MS_KERNMOUNT = 4194304 +const MS_LAZYTIME = 33554432 +const MS_MANDLOCK = 64 +const MS_MGC_MSK = 4294901760 +const MS_MGC_VAL = 3236757504 +const MS_MOVE = 8192 +const MS_NOATIME = 1024 +const MS_NODEV = 4 +const MS_NODIRATIME = 2048 +const MS_NOEXEC = 8 +const MS_NOREMOTELOCK = 134217728 +const MS_NOSEC = 268435456 +const MS_NOSUID = 2 +const MS_NOSYMFOLLOW = 256 +const MS_NOUSER = 2147483648 +const MS_POSIXACL = 65536 +const MS_PRIVATE = 262144 +const MS_RDONLY = 1 +const MS_REC = 16384 +const MS_RELATIME = 2097152 +const MS_REMOUNT = 32 +const MS_RMT_MASK = 41943121 +const MS_SHARED = 1048576 +const MS_SILENT = 32768 +const MS_SLAVE = 524288 +const MS_STRICTATIME = 16777216 +const MS_SYNCHRONOUS = 16 +const MS_UNBINDABLE = 131072 +const N_6PACK = 7 +const N_AX25 = 5 +const N_CAIF = 20 +const N_GIGASET_M101 = 16 +const N_GSM0710 = 21 +const N_HCI = 15 +const N_HDLC = 13 +const N_IRDA = 11 +const N_MASC = 8 +const N_MOUSE = 2 +const N_NCI = 25 +const N_NULL = 27 +const N_PPP = 3 +const N_PPS = 18 +const N_PROFIBUS_FDL = 10 +const N_R3964 = 9 +const N_SLCAN = 17 +const N_SLIP = 1 +const N_SMSBLOCK = 12 +const N_SPEAKUP = 26 +const N_STRIP = 4 +const N_SYNC_PPP = 14 +const N_TI_WL = 22 +const N_TRACEROUTER = 24 +const N_TRACESINK = 23 +const N_TTY = 0 +const N_V253 = 19 +const N_X25 = 6 +const SIOCADDDLCI = 35200 +const SIOCADDMULTI = 35121 +const SIOCADDRT = 35083 +const SIOCATMARK = 35077 +const SIOCDARP = 35155 +const SIOCDELDLCI = 35201 +const SIOCDELMULTI = 35122 +const SIOCDELRT = 35084 +const SIOCDEVPRIVATE = 35312 +const SIOCDIFADDR = 35126 +const SIOCDRARP = 35168 +const SIOCGARP = 35156 +const SIOCGIFADDR = 35093 +const SIOCGIFBR = 35136 +const SIOCGIFBRDADDR = 35097 +const SIOCGIFCONF = 35090 +const SIOCGIFCOUNT = 35128 +const SIOCGIFDSTADDR = 35095 +const SIOCGIFENCAP = 35109 +const SIOCGIFFLAGS = 35091 +const SIOCGIFHWADDR = 35111 +const SIOCGIFINDEX = 35123 +const SIOCGIFMAP = 35184 +const SIOCGIFMEM = 35103 +const SIOCGIFMETRIC = 35101 +const SIOCGIFMTU = 35105 +const SIOCGIFNAME = 35088 +const SIOCGIFNETMASK = 35099 +const SIOCGIFPFLAGS = 35125 +const SIOCGIFSLAVE = 35113 +const SIOCGIFTXQLEN = 35138 +const SIOCGPGRP = 35076 +const SIOCGRARP = 35169 +const SIOCGSTAMP = 35078 +const SIOCGSTAMPNS = 35079 +const SIOCPROTOPRIVATE = 35296 +const SIOCRTMSG = 35085 +const SIOCSARP = 35157 +const SIOCSIFADDR = 35094 +const SIOCSIFBR = 35137 +const SIOCSIFBRDADDR = 35098 +const SIOCSIFDSTADDR = 35096 +const SIOCSIFENCAP = 35110 +const SIOCSIFFLAGS = 35092 +const SIOCSIFHWADDR = 35108 +const SIOCSIFHWBROADCAST = 35127 +const SIOCSIFLINK = 35089 +const SIOCSIFMAP = 35185 +const SIOCSIFMEM = 35104 +const SIOCSIFMETRIC = 35102 +const SIOCSIFMTU = 35106 +const SIOCSIFNAME = 35107 +const SIOCSIFNETMASK = 35100 +const SIOCSIFPFLAGS = 35124 +const SIOCSIFSLAVE = 35120 +const SIOCSIFTXQLEN = 35139 +const SIOCSPGRP = 35074 +const SIOCSRARP = 35170 +const SIOGIFINDEX = 35123 +const TCFLSH = 536900639 +const TCGETA = 1073771543 +const TCGETS = 1073771539 +const TCSBRK = 536900637 +const TCSBRKP = 21541 +const TCSETA = 2147513368 +const TCSETAF = 2147513372 +const TCSETAW = 2147513369 +const TCSETS = 2147513364 +const TCSETSF = 2147513366 +const TCSETSW = 2147513365 +const TCXONC = 536900638 +const TIOCCBRK = 21544 +const TIOCCONS = 21533 +const TIOCEXCL = 21516 +const TIOCGDEV = 1073763378 +const TIOCGETC = 1073771538 +const TIOCGETD = 21540 +const TIOCGETP = 1073771528 +const TIOCGEXCL = 1073763392 +const TIOCGICOUNT = 21597 +const TIOCGLCKTRMIOS = 21590 +const TIOCGLTC = 1073771636 +const TIOCGPGRP = 1073771639 +const TIOCGPKT = 1073763384 +const TIOCGPTLCK = 1073763385 +const TIOCGPTN = 1073763376 +const TIOCGPTPEER = 536892481 +const TIOCGRS485 = 21550 +const TIOCGSERIAL = 21534 +const TIOCGSID = 21545 +const TIOCGSOFTCAR = 21529 +const TIOCGWINSZ = 1073771624 +const TIOCINQ = 1073768063 +const TIOCLINUX = 21532 +const TIOCMBIC = 21527 +const TIOCMBIS = 21526 +const TIOCMGET = 21525 +const TIOCMIWAIT = 21596 +const TIOCMSET = 21528 +const TIOCM_CAR = 64 +const TIOCM_CD = 64 +const TIOCM_CTS = 32 +const TIOCM_DSR = 256 +const TIOCM_DTR = 2 +const TIOCM_LE = 1 +const TIOCM_LOOP = 32768 +const TIOCM_OUT1 = 8192 +const TIOCM_OUT2 = 16384 +const TIOCM_RI = 128 +const TIOCM_RNG = 128 +const TIOCM_RTS = 4 +const TIOCM_SR = 16 +const TIOCM_ST = 8 +const TIOCNOTTY = 21538 +const TIOCNXCL = 21517 +const TIOCOUTQ = 1073771635 +const TIOCPKT = 21536 +const TIOCPKT_DATA = 0 +const TIOCPKT_DOSTOP = 32 +const TIOCPKT_FLUSHREAD = 1 +const TIOCPKT_FLUSHWRITE = 2 +const TIOCPKT_IOCTL = 64 +const TIOCPKT_NOSTOP = 16 +const TIOCPKT_START = 8 +const TIOCPKT_STOP = 4 +const TIOCSBRK = 21543 +const TIOCSCTTY = 21518 +const TIOCSERCONFIG = 21587 +const TIOCSERGETLSR = 21593 +const TIOCSERGETMULTI = 21594 +const TIOCSERGSTRUCT = 21592 +const TIOCSERGWILD = 21588 +const TIOCSERSETMULTI = 21595 +const TIOCSERSWILD = 21589 +const TIOCSETC = 2147513361 +const TIOCSETD = 21539 +const TIOCSETN = 2147513354 +const TIOCSETP = 2147513353 +const TIOCSIG = 2147505206 +const TIOCSLCKTRMIOS = 21591 +const TIOCSLTC = 2147513461 +const TIOCSPGRP = 2147513462 +const TIOCSPTLCK = 2147505201 +const TIOCSRS485 = 21551 +const TIOCSSERIAL = 21535 +const TIOCSSOFTCAR = 21530 +const TIOCSTART = 536900718 +const TIOCSTI = 21522 +const TIOCSTOP = 536900719 +const TIOCSWINSZ = 2147513447 +const TIOCVHANGUP = 21559 +const UMOUNT_NOFOLLOW = 8 +const _IOC_NONE = 1 +const _IOC_READ = 2 +const _IOC_WRITE = 4 + +func Xmount(tls *TLS, special uintptr, dir uintptr, fstype uintptr, flags uint64, data uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v special=%v dir=%v fstype=%v flags=%v data=%v, (%v:)", tls, special, dir, fstype, flags, data, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_mount), int64(special), int64(dir), int64(fstype), Int64FromUint64(flags), int64(data))))) +} + +func Xumount(tls *TLS, special uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v special=%v, (%v:)", tls, special, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_umount2), int64(special), int64(Int32FromInt32(0)))))) +} + +func Xumount2(tls *TLS, special uintptr, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v special=%v flags=%v, (%v:)", tls, special, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_umount2), int64(special), int64(flags))))) +} + +func Xname_to_handle_at(tls *TLS, dirfd int32, pathname uintptr, handle uintptr, mount_id uintptr, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v dirfd=%v pathname=%v handle=%v mount_id=%v flags=%v, (%v:)", tls, dirfd, pathname, handle, mount_id, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_name_to_handle_at), int64(dirfd), int64(pathname), int64(handle), int64(mount_id), int64(flags))))) +} + +func Xopen_by_handle_at(tls *TLS, mount_fd int32, handle uintptr, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v mount_fd=%v handle=%v flags=%v, (%v:)", tls, mount_fd, handle, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_open_by_handle_at), int64(mount_fd), int64(handle), int64(flags))))) +} + +const ADDR_COMPAT_LAYOUT = 2097152 +const ADDR_LIMIT_32BIT = 8388608 +const ADDR_LIMIT_3GB = 134217728 +const ADDR_NO_RANDOMIZE = 262144 +const FDPIC_FUNCPTRS = 524288 +const MMAP_PAGE_ZERO = 1048576 +const PER_BSD = 6 +const PER_HPUX = 16 +const PER_IRIX32 = 67108873 +const PER_IRIX64 = 67108875 +const PER_IRIXN32 = 67108874 +const PER_ISCR4 = 67108869 +const PER_LINUX = 0 +const PER_LINUX32 = 8 +const PER_LINUX32_3GB = 134217736 +const PER_LINUX_32BIT = 8388608 +const PER_LINUX_FDPIC = 524288 +const PER_MASK = 255 +const PER_OSF4 = 15 +const PER_OSR5 = 100663299 +const PER_RISCOS = 12 +const PER_SCOSVR3 = 117440515 +const PER_SOLARIS = 67108877 +const PER_SUNOS = 67108870 +const PER_SVR3 = 83886082 +const PER_SVR4 = 68157441 +const PER_UW7 = 68157454 +const PER_WYSEV386 = 83886084 +const PER_XENIX = 83886087 +const READ_IMPLIES_EXEC = 4194304 +const SHORT_INODE = 16777216 +const STICKY_TIMEOUTS = 67108864 +const UNAME26 = 131072 +const WHOLE_SECONDS = 33554432 + +func Xpersonality(tls *TLS, persona uint64) (r int32) { + if __ccgo_strace { + trc("tls=%v persona=%v, (%v:)", tls, persona, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_personality), Int64FromUint64(persona))))) +} + +func Xpivot_root(tls *TLS, new1 uintptr, old uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v new1=%v old=%v, (%v:)", tls, new1, old, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_pivot_root), int64(new1), int64(old))))) +} + +const PR_CAPBSET_DROP = 24 +const PR_CAPBSET_READ = 23 +const PR_CAP_AMBIENT = 47 +const PR_CAP_AMBIENT_CLEAR_ALL = 4 +const PR_CAP_AMBIENT_IS_SET = 1 +const PR_CAP_AMBIENT_LOWER = 3 +const PR_CAP_AMBIENT_RAISE = 2 +const PR_ENDIAN_BIG = 0 +const PR_ENDIAN_LITTLE = 1 +const PR_ENDIAN_PPC_LITTLE = 2 +const PR_FPEMU_NOPRINT = 1 +const PR_FPEMU_SIGFPE = 2 +const PR_FP_EXC_ASYNC = 2 +const PR_FP_EXC_DISABLED = 0 +const PR_FP_EXC_DIV = 65536 +const PR_FP_EXC_INV = 1048576 +const PR_FP_EXC_NONRECOV = 1 +const PR_FP_EXC_OVF = 131072 +const PR_FP_EXC_PRECISE = 3 +const PR_FP_EXC_RES = 524288 +const PR_FP_EXC_SW_ENABLE = 128 +const PR_FP_EXC_UND = 262144 +const PR_FP_MODE_FR = 1 +const PR_FP_MODE_FRE = 2 +const PR_GET_CHILD_SUBREAPER = 37 +const PR_GET_DUMPABLE = 3 +const PR_GET_ENDIAN = 19 +const PR_GET_FPEMU = 9 +const PR_GET_FPEXC = 11 +const PR_GET_FP_MODE = 46 +const PR_GET_IO_FLUSHER = 58 +const PR_GET_KEEPCAPS = 7 +const PR_GET_NAME = 16 +const PR_GET_NO_NEW_PRIVS = 39 +const PR_GET_PDEATHSIG = 2 +const PR_GET_SECCOMP = 21 +const PR_GET_SECUREBITS = 27 +const PR_GET_SPECULATION_CTRL = 52 +const PR_GET_TAGGED_ADDR_CTRL = 56 +const PR_GET_THP_DISABLE = 42 +const PR_GET_TID_ADDRESS = 40 +const PR_GET_TIMERSLACK = 30 +const PR_GET_TIMING = 13 +const PR_GET_TSC = 25 +const PR_GET_UNALIGN = 5 +const PR_MCE_KILL = 33 +const PR_MCE_KILL_CLEAR = 0 +const PR_MCE_KILL_DEFAULT = 2 +const PR_MCE_KILL_EARLY = 1 +const PR_MCE_KILL_GET = 34 +const PR_MCE_KILL_LATE = 0 +const PR_MCE_KILL_SET = 1 +const PR_MPX_DISABLE_MANAGEMENT = 44 +const PR_MPX_ENABLE_MANAGEMENT = 43 +const PR_MTE_TAG_MASK = 524280 +const PR_MTE_TAG_SHIFT = 3 +const PR_MTE_TCF_ASYNC = 4 +const PR_MTE_TCF_MASK = 6 +const PR_MTE_TCF_NONE = 0 +const PR_MTE_TCF_SHIFT = 1 +const PR_MTE_TCF_SYNC = 2 +const PR_PAC_APDAKEY = 4 +const PR_PAC_APDBKEY = 8 +const PR_PAC_APGAKEY = 16 +const PR_PAC_APIAKEY = 1 +const PR_PAC_APIBKEY = 2 +const PR_PAC_GET_ENABLED_KEYS = 61 +const PR_PAC_RESET_KEYS = 54 +const PR_PAC_SET_ENABLED_KEYS = 60 +const PR_SET_CHILD_SUBREAPER = 36 +const PR_SET_DUMPABLE = 4 +const PR_SET_ENDIAN = 20 +const PR_SET_FPEMU = 10 +const PR_SET_FPEXC = 12 +const PR_SET_FP_MODE = 45 +const PR_SET_IO_FLUSHER = 57 +const PR_SET_KEEPCAPS = 8 +const PR_SET_MM = 35 +const PR_SET_MM_ARG_END = 9 +const PR_SET_MM_ARG_START = 8 +const PR_SET_MM_AUXV = 12 +const PR_SET_MM_BRK = 7 +const PR_SET_MM_END_CODE = 2 +const PR_SET_MM_END_DATA = 4 +const PR_SET_MM_ENV_END = 11 +const PR_SET_MM_ENV_START = 10 +const PR_SET_MM_EXE_FILE = 13 +const PR_SET_MM_MAP = 14 +const PR_SET_MM_MAP_SIZE = 15 +const PR_SET_MM_START_BRK = 6 +const PR_SET_MM_START_CODE = 1 +const PR_SET_MM_START_DATA = 3 +const PR_SET_MM_START_STACK = 5 +const PR_SET_NAME = 15 +const PR_SET_NO_NEW_PRIVS = 38 +const PR_SET_PDEATHSIG = 1 +const PR_SET_PTRACER = 1499557217 +const PR_SET_PTRACER_ANY = 18446744073709551615 +const PR_SET_SECCOMP = 22 +const PR_SET_SECUREBITS = 28 +const PR_SET_SPECULATION_CTRL = 53 +const PR_SET_SYSCALL_USER_DISPATCH = 59 +const PR_SET_TAGGED_ADDR_CTRL = 55 +const PR_SET_THP_DISABLE = 41 +const PR_SET_TIMERSLACK = 29 +const PR_SET_TIMING = 14 +const PR_SET_TSC = 26 +const PR_SET_UNALIGN = 6 +const PR_SPEC_DISABLE = 4 +const PR_SPEC_DISABLE_NOEXEC = 16 +const PR_SPEC_ENABLE = 2 +const PR_SPEC_FORCE_DISABLE = 8 +const PR_SPEC_INDIRECT_BRANCH = 1 +const PR_SPEC_NOT_AFFECTED = 0 +const PR_SPEC_PRCTL = 1 +const PR_SPEC_STORE_BYPASS = 0 +const PR_SVE_GET_VL = 51 +const PR_SVE_SET_VL = 50 +const PR_SVE_SET_VL_ONEXEC = 262144 +const PR_SVE_VL_INHERIT = 131072 +const PR_SVE_VL_LEN_MASK = 65535 +const PR_SYS_DISPATCH_OFF = 0 +const PR_SYS_DISPATCH_ON = 1 +const PR_TAGGED_ADDR_ENABLE = 1 +const PR_TASK_PERF_EVENTS_DISABLE = 31 +const PR_TASK_PERF_EVENTS_ENABLE = 32 +const PR_TIMING_STATISTICAL = 0 +const PR_TIMING_TIMESTAMP = 1 +const PR_TSC_ENABLE = 1 +const PR_TSC_SIGSEGV = 2 +const PR_UNALIGN_NOPRINT = 1 +const PR_UNALIGN_SIGBUS = 2 +const SYSCALL_DISPATCH_FILTER_ALLOW = 0 +const SYSCALL_DISPATCH_FILTER_BLOCK = 1 + +type Tprctl_mm_map = struct { + Fstart_code Tuint64_t + Fend_code Tuint64_t + Fstart_data Tuint64_t + Fend_data Tuint64_t + Fstart_brk Tuint64_t + Fbrk Tuint64_t + Fstart_stack Tuint64_t + Farg_start Tuint64_t + Farg_end Tuint64_t + Fenv_start Tuint64_t + Fenv_end Tuint64_t + Fauxv uintptr + Fauxv_size Tuint32_t + Fexe_fd Tuint32_t +} + +func Xprctl(tls *TLS, op int32, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v op=%v va=%v, (%v:)", tls, op, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var i int32 + var x [4]uint64 + _, _, _ = ap, i, x + ap = va + i = 0 + for { + if !(i < int32(4)) { + break + } + x[i] = VaUint64(&ap) + goto _1 + _1: + ; + i = i + 1 + } + _ = ap + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_prctl), int64(op), Int64FromUint64(x[0]), Int64FromUint64(x[int32(1)]), Int64FromUint64(x[int32(2)]), Int64FromUint64(x[int32(3)]))))) +} + +const RWF_APPEND = 16 +const RWF_DSYNC = 2 +const RWF_HIPRI = 1 +const RWF_NOWAIT = 8 +const RWF_SYNC = 4 +const UIO_MAXIOV = 1024 + +func Xpreadv2(tls *TLS, fd int32, iov uintptr, count int32, ofs Toff_t, flags int32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v iov=%v count=%v ofs=%v flags=%v, (%v:)", tls, fd, iov, count, ofs, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + if !(flags != 0) { + if ofs == int64(-int32(1)) { + return Xreadv(tls, fd, iov, count) + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_preadv), int64(fd), int64(iov), int64(count), ofs, ofs>>Int32FromInt32(32), 0))) + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_preadv2), int64(fd), int64(iov), int64(count), ofs, ofs>>Int32FromInt32(32), int64(flags)))) +} + +func Xprlimit(tls *TLS, pid Tpid_t, resource int32, new_limit uintptr, old_limit uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v pid=%v resource=%v new_limit=%v old_limit=%v, (%v:)", tls, pid, resource, new_limit, old_limit, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var r int32 + var _ /* tmp at bp+0 */ Trlimit + _ = r + if new_limit != 0 && Bool(^Uint64FromUint64(0) != ^Uint64FromUint64(0)) { + **(**Trlimit)(__ccgo_up(bp)) = **(**Trlimit)(__ccgo_up(new_limit)) + if (**(**Trlimit)(__ccgo_up(bp))).Frlim_cur >= ^Uint64FromUint64(0) { + (**(**Trlimit)(__ccgo_up(bp))).Frlim_cur = ^Uint64FromUint64(0) + } + if (**(**Trlimit)(__ccgo_up(bp))).Frlim_max >= ^Uint64FromUint64(0) { + (**(**Trlimit)(__ccgo_up(bp))).Frlim_max = ^Uint64FromUint64(0) + } + new_limit = bp + } + r = int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_prlimit64), int64(pid), int64(resource), int64(new_limit), int64(old_limit))))) + if !(r != 0) && old_limit != 0 && Bool(^Uint64FromUint64(0) != ^Uint64FromUint64(0)) { + if (*Trlimit)(unsafe.Pointer(old_limit)).Frlim_cur >= ^Uint64FromUint64(0) { + (*Trlimit)(unsafe.Pointer(old_limit)).Frlim_cur = ^Uint64FromUint64(0) + } + if (*Trlimit)(unsafe.Pointer(old_limit)).Frlim_max >= ^Uint64FromUint64(0) { + (*Trlimit)(unsafe.Pointer(old_limit)).Frlim_max = ^Uint64FromUint64(0) + } + } + return r +} + +func Xprocess_vm_writev(tls *TLS, pid Tpid_t, lvec uintptr, liovcnt uint64, rvec uintptr, riovcnt uint64, flags uint64) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v pid=%v lvec=%v liovcnt=%v rvec=%v riovcnt=%v flags=%v, (%v:)", tls, pid, lvec, liovcnt, rvec, riovcnt, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall6(tls, int64(SYS_process_vm_writev), int64(pid), int64(lvec), Int64FromUint64(liovcnt), int64(rvec), Int64FromUint64(riovcnt), Int64FromUint64(flags)))) +} + +func Xprocess_vm_readv(tls *TLS, pid Tpid_t, lvec uintptr, liovcnt uint64, rvec uintptr, riovcnt uint64, flags uint64) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v pid=%v lvec=%v liovcnt=%v rvec=%v riovcnt=%v flags=%v, (%v:)", tls, pid, lvec, liovcnt, rvec, riovcnt, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall6(tls, int64(SYS_process_vm_readv), int64(pid), int64(lvec), Int64FromUint64(liovcnt), int64(rvec), Int64FromUint64(riovcnt), Int64FromUint64(flags)))) +} + +const PTRACE_ATTACH = 16 +const PTRACE_CONT = 7 +const PTRACE_DETACH = 17 +const PTRACE_EVENT_CLONE = 3 +const PTRACE_EVENT_EXEC = 4 +const PTRACE_EVENT_EXIT = 6 +const PTRACE_EVENT_FORK = 1 +const PTRACE_EVENT_SECCOMP = 7 +const PTRACE_EVENT_STOP = 128 +const PTRACE_EVENT_VFORK = 2 +const PTRACE_EVENT_VFORK_DONE = 5 +const PTRACE_GETEVENTMSG = 16897 +const PTRACE_GETEVRREGS = 20 +const PTRACE_GETFPREGS = 14 +const PTRACE_GETFPXREGS = 18 +const PTRACE_GETREGS = 12 +const PTRACE_GETREGS64 = 22 +const PTRACE_GETREGSET = 16900 +const PTRACE_GETSIGINFO = 16898 +const PTRACE_GETSIGMASK = 16906 +const PTRACE_GETVRREGS = 18 +const PTRACE_GETVSRREGS = 27 +const PTRACE_GET_DEBUGREG = 25 +const PTRACE_GET_RSEQ_CONFIGURATION = 16911 +const PTRACE_GET_SYSCALL_INFO = 16910 +const PTRACE_INTERRUPT = 16903 +const PTRACE_KILL = 8 +const PTRACE_LISTEN = 16904 +const PTRACE_O_EXITKILL = 1048576 +const PTRACE_O_MASK = 3145983 +const PTRACE_O_SUSPEND_SECCOMP = 2097152 +const PTRACE_O_TRACECLONE = 8 +const PTRACE_O_TRACEEXEC = 16 +const PTRACE_O_TRACEEXIT = 64 +const PTRACE_O_TRACEFORK = 2 +const PTRACE_O_TRACESECCOMP = 128 +const PTRACE_O_TRACESYSGOOD = 1 +const PTRACE_O_TRACEVFORK = 4 +const PTRACE_O_TRACEVFORKDONE = 32 +const PTRACE_PEEKDATA = 2 +const PTRACE_PEEKSIGINFO = 16905 +const PTRACE_PEEKSIGINFO_SHARED = 1 +const PTRACE_PEEKTEXT = 1 +const PTRACE_PEEKUSER = 3 +const PTRACE_POKEDATA = 5 +const PTRACE_POKETEXT = 4 +const PTRACE_POKEUSER = 6 +const PTRACE_SECCOMP_GET_FILTER = 16908 +const PTRACE_SECCOMP_GET_METADATA = 16909 +const PTRACE_SEIZE = 16902 +const PTRACE_SETEVRREGS = 21 +const PTRACE_SETFPREGS = 15 +const PTRACE_SETFPXREGS = 19 +const PTRACE_SETOPTIONS = 16896 +const PTRACE_SETREGS = 13 +const PTRACE_SETREGS64 = 23 +const PTRACE_SETREGSET = 16901 +const PTRACE_SETSIGINFO = 16899 +const PTRACE_SETSIGMASK = 16907 +const PTRACE_SETVRREGS = 19 +const PTRACE_SETVSRREGS = 28 +const PTRACE_SET_DEBUGREG = 26 +const PTRACE_SINGLEBLOCK = 256 +const PTRACE_SINGLESTEP = 9 +const PTRACE_SYSCALL = 24 +const PTRACE_SYSCALL_INFO_ENTRY = 1 +const PTRACE_SYSCALL_INFO_EXIT = 2 +const PTRACE_SYSCALL_INFO_NONE = 0 +const PTRACE_SYSCALL_INFO_SECCOMP = 3 +const PTRACE_SYSEMU = 29 +const PTRACE_SYSEMU_SINGLESTEP = 30 +const PTRACE_TRACEME = 0 +const PT_ATTACH = 16 +const PT_CONTINUE = 7 +const PT_DETACH = 17 +const PT_GETEVENTMSG = 16897 +const PT_GETEVRREGS = 20 +const PT_GETFPREGS = 14 +const PT_GETFPXREGS = 18 +const PT_GETREGS = 12 +const PT_GETREGS64 = 22 +const PT_GETSIGINFO = 16898 +const PT_GETVRREGS = 18 +const PT_GETVSRREGS = 27 +const PT_GET_DEBUGREG = 25 +const PT_KILL = 8 +const PT_READ_D = 2 +const PT_READ_I = 1 +const PT_READ_U = 3 +const PT_SETEVRREGS = 21 +const PT_SETFPREGS = 15 +const PT_SETFPXREGS = 19 +const PT_SETOPTIONS = 16896 +const PT_SETREGS = 13 +const PT_SETREGS64 = 23 +const PT_SETSIGINFO = 16899 +const PT_SETVRREGS = 19 +const PT_SETVSRREGS = 28 +const PT_SET_DEBUGREG = 26 +const PT_STEP = 9 +const PT_STEPBLOCK = 256 +const PT_SYSCALL = 24 +const PT_TRACE_ME = 0 +const PT_WRITE_D = 5 +const PT_WRITE_I = 4 +const PT_WRITE_U = 6 + +type t__ptrace_peeksiginfo_args = struct { + Foff Tuint64_t + Fflags Tuint32_t + Fnr Tint32_t +} + +type t__ptrace_seccomp_metadata = struct { + Ffilter_off Tuint64_t + Fflags Tuint64_t +} + +type t__ptrace_syscall_info = struct { + Fop Tuint8_t + F__pad [3]Tuint8_t + Farch Tuint32_t + Finstruction_pointer Tuint64_t + Fstack_pointer Tuint64_t + F__ccgo5_24 struct { + Fexit [0]struct { + Frval Tint64_t + Fis_error Tuint8_t + } + Fseccomp [0]struct { + Fnr Tuint64_t + Fargs [6]Tuint64_t + Fret_data Tuint32_t + } + Fentry struct { + Fnr Tuint64_t + Fargs [6]Tuint64_t + } + F__ccgo_pad3 [8]byte + } +} + +type t__ptrace_rseq_configuration = struct { + Frseq_abi_pointer Tuint64_t + Frseq_abi_size Tuint32_t + Fsignature Tuint32_t + Fflags Tuint32_t + Fpad Tuint32_t +} + +func Xptrace(tls *TLS, req int32, va uintptr) (r int64) { + if __ccgo_strace { + trc("tls=%v req=%v va=%v, (%v:)", tls, req, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var addr, addr2, data uintptr + var ap Tva_list + var pid Tpid_t + var ret int64 + var _ /* result at bp+0 */ int64 + _, _, _, _, _, _ = addr, addr2, ap, data, pid, ret + addr2 = uintptr(0) + ap = va + pid = VaInt32(&ap) + addr = VaUintptr(&ap) + data = VaUintptr(&ap) + /* PTRACE_{READ,WRITE}{DATA,TEXT} (16...19) are specific to SPARC. */ + _ = ap + if Uint32FromInt32(req)-uint32(1) < uint32(3) { + data = bp + } + ret = X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_ptrace), int64(req), int64(pid), int64(addr), int64(data), int64(addr2)))) + if ret < 0 || Uint32FromInt32(req)-uint32(1) >= uint32(3) { + return ret + } + return **(**int64)(__ccgo_up(bp)) +} + +func Xpwritev2(tls *TLS, fd int32, iov uintptr, count int32, ofs Toff_t, flags int32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v iov=%v count=%v ofs=%v flags=%v, (%v:)", tls, fd, iov, count, ofs, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + if !(flags != 0) { + if ofs == int64(-int32(1)) { + return Xwritev(tls, fd, iov, count) + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_pwritev), int64(fd), int64(iov), int64(count), ofs, ofs>>Int32FromInt32(32), 0))) + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_pwritev2), int64(fd), int64(iov), int64(count), ofs, ofs>>Int32FromInt32(32), int64(flags)))) +} + +const GRPQUOTA = 1 +const IIF_ALL = 7 +const IIF_BGRACE = 1 +const IIF_FLAGS = 4 +const IIF_IGRACE = 2 +const MAXQUOTAS = 2 +const MAX_DQ_TIME = 604800 +const MAX_IQ_TIME = 604800 +const NR_DQHASH = 43 +const NR_DQUOTS = 256 +const QFMT_OCFS2 = 3 +const QFMT_VFS_OLD = 1 +const QFMT_VFS_V0 = 2 +const QFMT_VFS_V1 = 4 +const QIF_ALL = 63 +const QIF_BLIMITS = 1 +const QIF_BTIME = 16 +const QIF_ILIMITS = 4 +const QIF_INODES = 8 +const QIF_ITIME = 32 +const QIF_LIMITS = 5 +const QIF_SPACE = 2 +const QIF_TIMES = 48 +const QIF_USAGE = 10 +const QUOTAFILENAME = "quota" +const QUOTAGROUP = "staff" +const Q_GETFMT = 8388612 +const Q_GETINFO = 8388613 +const Q_GETQUOTA = 8388615 +const Q_QUOTAOFF = 8388611 +const Q_QUOTAON = 8388610 +const Q_SETINFO = 8388614 +const Q_SETQUOTA = 8388616 +const Q_SYNC = 8388609 +const SUBCMDMASK = 255 +const SUBCMDSHIFT = 8 +const USRQUOTA = 0 +const _LINUX_QUOTA_VERSION = 2 + +type Tdqblk = struct { + Fdqb_bhardlimit Tuint64_t + Fdqb_bsoftlimit Tuint64_t + Fdqb_curspace Tuint64_t + Fdqb_ihardlimit Tuint64_t + Fdqb_isoftlimit Tuint64_t + Fdqb_curinodes Tuint64_t + Fdqb_btime Tuint64_t + Fdqb_itime Tuint64_t + Fdqb_valid Tuint32_t +} + +type Tdqinfo = struct { + Fdqi_bgrace Tuint64_t + Fdqi_igrace Tuint64_t + Fdqi_flags Tuint32_t + Fdqi_valid Tuint32_t +} + +func Xquotactl(tls *TLS, cmd int32, special uintptr, id int32, addr uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v cmd=%v special=%v id=%v addr=%v, (%v:)", tls, cmd, special, id, addr, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_quotactl), int64(cmd), int64(special), int64(id), int64(addr))))) +} + +func Xreadahead(tls *TLS, fd int32, pos Toff_t, len1 Tsize_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v pos=%v len1=%v, (%v:)", tls, fd, pos, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_readahead), int64(fd), pos, Int64FromUint64(len1)))) +} + +const RB_AUTOBOOT = 19088743 +const RB_DISABLE_CAD = 0 +const RB_ENABLE_CAD = 2309737967 +const RB_HALT_SYSTEM = 3454992675 +const RB_KEXEC = 1163412803 +const RB_POWER_OFF = 1126301404 +const RB_SW_SUSPEND = 3489725666 + +func Xreboot(tls *TLS, type1 int32) (r int32) { + if __ccgo_strace { + trc("tls=%v type1=%v, (%v:)", tls, type1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_reboot), Int64FromUint32(Uint32FromUint32(0xfee1dead)), int64(Int32FromInt32(672274793)), int64(type1))))) +} + +func Xremap_file_pages(tls *TLS, addr uintptr, size Tsize_t, prot int32, pgoff Tsize_t, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v size=%v prot=%v pgoff=%v flags=%v, (%v:)", tls, addr, size, prot, pgoff, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_remap_file_pages), int64(addr), Int64FromUint64(size), int64(prot), Int64FromUint64(pgoff), int64(flags))))) +} + +func Xsbrk(tls *TLS, inc Tintptr_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v inc=%v, (%v:)", tls, inc, origin(2)) + defer func() { trc("-> %v", r) }() + } + if inc != 0 { + return uintptr(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(ENOMEM)))) + } + return uintptr(X__syscall1(tls, int64(SYS_brk), int64(Int32FromInt32(0)))) +} + +func Xsendfile(tls *TLS, out_fd int32, in_fd int32, ofs uintptr, count Tsize_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v out_fd=%v in_fd=%v ofs=%v count=%v, (%v:)", tls, out_fd, in_fd, ofs, count, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_sendfile), int64(out_fd), int64(in_fd), int64(ofs), Int64FromUint64(count)))) +} + +func Xsetfsgid(tls *TLS, gid Tgid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v gid=%v, (%v:)", tls, gid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_setfsgid), Int64FromUint32(gid))))) +} + +func Xsetfsuid(tls *TLS, uid Tuid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v uid=%v, (%v:)", tls, uid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_setfsuid), Int64FromUint32(uid))))) +} + +func Xsethostname(tls *TLS, name uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v len1=%v, (%v:)", tls, name, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_sethostname), int64(name), Int64FromUint64(len1))))) +} + +const CLONE_CHILD_CLEARTID = 2097152 +const CLONE_CHILD_SETTID = 16777216 +const CLONE_DETACHED = 4194304 +const CLONE_FILES = 1024 +const CLONE_FS = 512 +const CLONE_IO = 2147483648 +const CLONE_NEWCGROUP = 33554432 +const CLONE_NEWIPC = 134217728 +const CLONE_NEWNET = 1073741824 +const CLONE_NEWNS = 131072 +const CLONE_NEWPID = 536870912 +const CLONE_NEWTIME = 128 +const CLONE_NEWUSER = 268435456 +const CLONE_NEWUTS = 67108864 +const CLONE_PARENT = 32768 +const CLONE_PARENT_SETTID = 1048576 +const CLONE_PIDFD = 4096 +const CLONE_PTRACE = 8192 +const CLONE_SETTLS = 524288 +const CLONE_SIGHAND = 2048 +const CLONE_SYSVSEM = 262144 +const CLONE_THREAD = 65536 +const CLONE_UNTRACED = 8388608 +const CLONE_VFORK = 16384 +const CLONE_VM = 256 +const CPU_SETSIZE = 1024 +const CSIGNAL = 255 + +type Tcpu_set_t = struct { + F__bits [16]uint64 +} + +func Xsetns(tls *TLS, fd int32, nstype int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v nstype=%v, (%v:)", tls, fd, nstype, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_setns), int64(fd), int64(nstype))))) +} + +const __tm_gmtoff = 0 +const __tm_zone = 0 + +type Ttm1 = struct { + Ftm_sec int32 + Ftm_min int32 + Ftm_hour int32 + Ftm_mday int32 + Ftm_mon int32 + Ftm_year int32 + Ftm_wday int32 + Ftm_yday int32 + Ftm_isdst int32 + Ftm_gmtoff int64 + Ftm_zone uintptr +} + +func Xsettimeofday(tls *TLS, tv uintptr, tz uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v tv=%v tz=%v, (%v:)", tls, tv, tz, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + if !(tv != 0) { + return 0 + } + if Uint64FromInt64((*Ttimeval)(unsafe.Pointer(tv)).Ftv_usec) >= uint64(1000000) { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL)))) + } + *(*Ttimespec)(unsafe.Pointer(bp)) = Ttimespec{ + Ftv_sec: (*Ttimeval)(unsafe.Pointer(tv)).Ftv_sec, + Ftv_nsec: (*Ttimeval)(unsafe.Pointer(tv)).Ftv_usec * int64(1000), + } + return Xclock_settime(tls, CLOCK_REALTIME, bp) +} + +const SFD_CLOEXEC = 524288 +const SFD_NONBLOCK = 2048 + +type Tsignalfd_siginfo = struct { + Fssi_signo Tuint32_t + Fssi_errno Tint32_t + Fssi_code Tint32_t + Fssi_pid Tuint32_t + Fssi_uid Tuint32_t + Fssi_fd Tint32_t + Fssi_tid Tuint32_t + Fssi_band Tuint32_t + Fssi_overrun Tuint32_t + Fssi_trapno Tuint32_t + Fssi_status Tint32_t + Fssi_int Tint32_t + Fssi_ptr Tuint64_t + Fssi_utime Tuint64_t + Fssi_stime Tuint64_t + Fssi_addr Tuint64_t + Fssi_addr_lsb Tuint16_t + F__pad2 Tuint16_t + Fssi_syscall Tint32_t + Fssi_call_addr Tuint64_t + Fssi_arch Tuint32_t + F__pad [28]Tuint8_t +} + +func Xsignalfd(tls *TLS, fd int32, sigs uintptr, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v sigs=%v flags=%v, (%v:)", tls, fd, sigs, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret int32 + _ = ret + ret = int32(X__syscall4(tls, int64(SYS_signalfd4), int64(fd), int64(sigs), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8)), int64(flags))) + if ret != -int32(ENOSYS) { + return int32(X__syscall_ret(tls, Uint64FromInt32(ret))) + } + ret = int32(X__syscall3(tls, int64(SYS_signalfd), int64(fd), int64(sigs), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8)))) + if ret >= 0 { + if flags&int32(O_CLOEXEC) != 0 { + X__syscall3(tls, int64(SYS_fcntl), int64(ret), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + } + if flags&int32(O_NONBLOCK) != 0 { + X__syscall3(tls, int64(SYS_fcntl), int64(ret), int64(Int32FromInt32(F_SETFL)), int64(Int32FromInt32(O_NONBLOCK))) + } + } + return int32(X__syscall_ret(tls, Uint64FromInt32(ret))) +} + +func Xsplice(tls *TLS, fd_in int32, off_in uintptr, fd_out int32, off_out uintptr, len1 Tsize_t, flags uint32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd_in=%v off_in=%v fd_out=%v off_out=%v len1=%v flags=%v, (%v:)", tls, fd_in, off_in, fd_out, off_out, len1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall6(tls, int64(SYS_splice), int64(fd_in), int64(off_in), int64(fd_out), int64(off_out), Int64FromUint64(len1), Int64FromUint32(flags)))) +} + +func Xstatx(tls *TLS, dirfd int32, path uintptr, flags int32, mask uint32, stx uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v dirfd=%v path=%v flags=%v mask=%v stx=%v, (%v:)", tls, dirfd, path, flags, mask, stx, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(144) + defer tls.Free(144) + var ret int32 + var _ /* st at bp+0 */ Tstat + _ = ret + ret = int32(X__syscall5(tls, int64(SYS_statx), int64(dirfd), int64(path), int64(flags), Int64FromUint32(mask), int64(stx))) + if ret != -int32(ENOSYS) { + return int32(X__syscall_ret(tls, Uint64FromInt32(ret))) + } + ret = Xfstatat(tls, dirfd, path, bp, flags) + if ret != 0 { + return ret + } + (*Tstatx)(unsafe.Pointer(stx)).Fstx_dev_major = uint32((**(**Tstat)(__ccgo_up(bp))).Fst_dev>>Int32FromInt32(31)>>Int32FromInt32(1)&Uint64FromUint32(0xfffff000) | (**(**Tstat)(__ccgo_up(bp))).Fst_dev>>Int32FromInt32(8)&Uint64FromInt32(0x00000fff)) + (*Tstatx)(unsafe.Pointer(stx)).Fstx_dev_minor = uint32((**(**Tstat)(__ccgo_up(bp))).Fst_dev>>Int32FromInt32(12)&Uint64FromUint32(0xffffff00) | (**(**Tstat)(__ccgo_up(bp))).Fst_dev&Uint64FromInt32(0x000000ff)) + (*Tstatx)(unsafe.Pointer(stx)).Fstx_ino = (**(**Tstat)(__ccgo_up(bp))).Fst_ino + (*Tstatx)(unsafe.Pointer(stx)).Fstx_mode = uint16((**(**Tstat)(__ccgo_up(bp))).Fst_mode) + (*Tstatx)(unsafe.Pointer(stx)).Fstx_nlink = uint32((**(**Tstat)(__ccgo_up(bp))).Fst_nlink) + (*Tstatx)(unsafe.Pointer(stx)).Fstx_uid = (**(**Tstat)(__ccgo_up(bp))).Fst_uid + (*Tstatx)(unsafe.Pointer(stx)).Fstx_gid = (**(**Tstat)(__ccgo_up(bp))).Fst_gid + (*Tstatx)(unsafe.Pointer(stx)).Fstx_size = Uint64FromInt64((**(**Tstat)(__ccgo_up(bp))).Fst_size) + (*Tstatx)(unsafe.Pointer(stx)).Fstx_blksize = Uint32FromInt64((**(**Tstat)(__ccgo_up(bp))).Fst_blksize) + (*Tstatx)(unsafe.Pointer(stx)).Fstx_blocks = Uint64FromInt64((**(**Tstat)(__ccgo_up(bp))).Fst_blocks) + (*Tstatx)(unsafe.Pointer(stx)).Fstx_atime.Ftv_sec = (**(**Tstat)(__ccgo_up(bp))).Fst_atim.Ftv_sec + (*Tstatx)(unsafe.Pointer(stx)).Fstx_atime.Ftv_nsec = Uint32FromInt64((**(**Tstat)(__ccgo_up(bp))).Fst_atim.Ftv_nsec) + (*Tstatx)(unsafe.Pointer(stx)).Fstx_mtime.Ftv_sec = (**(**Tstat)(__ccgo_up(bp))).Fst_mtim.Ftv_sec + (*Tstatx)(unsafe.Pointer(stx)).Fstx_mtime.Ftv_nsec = Uint32FromInt64((**(**Tstat)(__ccgo_up(bp))).Fst_mtim.Ftv_nsec) + (*Tstatx)(unsafe.Pointer(stx)).Fstx_ctime.Ftv_sec = (**(**Tstat)(__ccgo_up(bp))).Fst_ctim.Ftv_sec + (*Tstatx)(unsafe.Pointer(stx)).Fstx_ctime.Ftv_nsec = Uint32FromInt64((**(**Tstat)(__ccgo_up(bp))).Fst_ctim.Ftv_nsec) + (*Tstatx)(unsafe.Pointer(stx)).Fstx_btime = Tstatx_timestamp{} + (*Tstatx)(unsafe.Pointer(stx)).Fstx_mask = uint32(0x7ff) + return 0 +} + +func Xstime(tls *TLS, t uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v t=%v, (%v:)", tls, t, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* tv at bp+0 */ Ttimeval + **(**Ttimeval)(__ccgo_up(bp)) = Ttimeval{ + Ftv_sec: **(**Ttime_t)(__ccgo_up(t)), + } + return Xsettimeofday(tls, bp, UintptrFromInt32(0)) +} + +const SWAP_FLAG_DISCARD = 65536 +const SWAP_FLAG_PREFER = 32768 +const SWAP_FLAG_PRIO_MASK = 32767 +const SWAP_FLAG_PRIO_SHIFT = 0 + +func Xswapon(tls *TLS, path uintptr, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v flags=%v, (%v:)", tls, path, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_swapon), int64(path), int64(flags))))) +} + +func Xswapoff(tls *TLS, path uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v, (%v:)", tls, path, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_swapoff), int64(path))))) +} + +func Xsync_file_range(tls *TLS, fd int32, pos Toff_t, len1 Toff_t, flags uint32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v pos=%v len1=%v flags=%v, (%v:)", tls, fd, pos, len1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_sync_file_range2), int64(fd), Int64FromUint32(flags), pos, len1)))) +} + +func Xsyncfs(tls *TLS, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_syncfs), int64(fd))))) +} + +func X__lsysinfo(tls *TLS, info uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v info=%v, (%v:)", tls, info, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_sysinfo), int64(info))))) +} + +func Xsysinfo(tls *TLS, info uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v info=%v, (%v:)", tls, info, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lsysinfo(tls, info) +} + +func Xtee(tls *TLS, src int32, dest int32, len1 Tsize_t, flags uint32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v src=%v dest=%v len1=%v flags=%v, (%v:)", tls, src, dest, len1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_tee), int64(src), int64(dest), Int64FromUint64(len1), Int64FromUint32(flags)))) +} + +const TFD_CLOEXEC = 524288 +const TFD_NONBLOCK = 2048 +const TFD_TIMER_ABSTIME = 1 +const TFD_TIMER_CANCEL_ON_SET = 2 + +func Xtimerfd_create(tls *TLS, clockid int32, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v clockid=%v flags=%v, (%v:)", tls, clockid, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_timerfd_create), int64(clockid), int64(flags))))) +} + +func Xtimerfd_settime(tls *TLS, fd int32, flags int32, new1 uintptr, old uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v flags=%v new1=%v old=%v, (%v:)", tls, fd, flags, new1, old, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_timerfd_settime), int64(fd), int64(flags), int64(new1), int64(old))))) +} + +func Xtimerfd_gettime(tls *TLS, fd int32, cur uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v cur=%v, (%v:)", tls, fd, cur, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_timerfd_gettime), int64(fd), int64(cur))))) +} + +func Xunshare(tls *TLS, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v flags=%v, (%v:)", tls, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_unshare), int64(flags))))) +} + +func Xutimes(tls *TLS, path uintptr, times uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v times=%v, (%v:)", tls, path, times, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__futimesat(tls, -int32(100), path, times) +} + +func Xvhangup(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall0(tls, int64(SYS_vhangup))))) +} + +func Xvmsplice(tls *TLS, fd int32, iov uintptr, cnt Tsize_t, flags uint32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v iov=%v cnt=%v flags=%v, (%v:)", tls, fd, iov, cnt, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_vmsplice), int64(fd), int64(iov), Int64FromUint64(cnt), Int64FromUint32(flags)))) +} + +const NSIG = 65 +const SA_NOMASK = 1073741824 +const SA_ONESHOT = 2147483648 +const SYS_SECCOMP = 1 +const SYS_USER_DISPATCH = 2 +const __ucontext = 0 + +type Tgreg_t = uint64 + +type Tgregset_t = [48]uint64 + +type Tfpregset_t = [33]float64 + +type Tvrregset_t = struct { + F__ccgo_align [0]uint64 + Fvrregs [32][4]uint32 + Fvscr struct { + Fvscr_word uint32 + F_pad [3]uint32 + } + Fvrsave uint32 + F_pad [3]uint32 +} + +type Tmcontext_t1 = struct { + F_unused [4]uint64 + Fsignal int32 + F_pad0 int32 + Fhandler uint64 + Foldmask uint64 + Fregs uintptr + Fgp_regs Tgregset_t + Ffp_regs Tfpregset_t + Fv_regs uintptr + Fvmx_reserve [101]int64 +} + +type Tsigcontext = Tmcontext_t1 + +type Tucontext_t1 = struct { + Fuc_flags uint64 + Fuc_link uintptr + Fuc_stack Tstack_t + Fuc_sigmask Tsigset_t + Fuc_mcontext Tmcontext_t1 +} + +type Tucontext = Tucontext_t1 + +type Tsig_t = uintptr + +type Tsighandler_t = uintptr + +func Xwait3(tls *TLS, status uintptr, options int32, usage uintptr) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v status=%v options=%v usage=%v, (%v:)", tls, status, options, usage, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwait4(tls, -int32(1), status, options, usage) +} + +func Xwait4(tls *TLS, pid Tpid_t, status uintptr, options int32, ru uintptr) (r1 Tpid_t) { + if __ccgo_strace { + trc("tls=%v pid=%v status=%v options=%v ru=%v, (%v:)", tls, pid, status, options, ru, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var dest, v1 uintptr + var r int32 + var _ /* kru at bp+0 */ [4]int64 + _, _, _ = dest, r, v1 + if ru != 0 { + v1 = ru + 32 - uintptr(Uint64FromInt32(4)*Uint64FromInt64(8)) + } else { + v1 = uintptr(0) + } + dest = v1 + r = int32(X__syscall4(tls, int64(SYS_wait4), int64(pid), int64(status), int64(options), int64(dest))) + if r > 0 && ru != 0 && Bool(uint64(8) > uint64(8)) { + Xmemcpy(tls, bp, dest, Uint64FromInt32(4)*Uint64FromInt64(8)) + (*Trusage)(unsafe.Pointer(ru)).Fru_utime = Ttimeval{ + Ftv_sec: (**(**[4]int64)(__ccgo_up(bp)))[0], + Ftv_usec: (**(**[4]int64)(__ccgo_up(bp)))[int32(1)], + } + (*Trusage)(unsafe.Pointer(ru)).Fru_stime = Ttimeval{ + Ftv_sec: (**(**[4]int64)(__ccgo_up(bp)))[int32(2)], + Ftv_usec: (**(**[4]int64)(__ccgo_up(bp)))[int32(3)], + } + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +const XATTR_CREATE = 1 +const XATTR_REPLACE = 2 +const __UAPI_DEF_XATTR = 0 + +func Xgetxattr(tls *TLS, path uintptr, name uintptr, value uintptr, size Tsize_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v path=%v name=%v value=%v size=%v, (%v:)", tls, path, name, value, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_getxattr), int64(path), int64(name), int64(value), Int64FromUint64(size)))) +} + +func Xlgetxattr(tls *TLS, path uintptr, name uintptr, value uintptr, size Tsize_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v path=%v name=%v value=%v size=%v, (%v:)", tls, path, name, value, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_lgetxattr), int64(path), int64(name), int64(value), Int64FromUint64(size)))) +} + +func Xfgetxattr(tls *TLS, filedes int32, name uintptr, value uintptr, size Tsize_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v filedes=%v name=%v value=%v size=%v, (%v:)", tls, filedes, name, value, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_fgetxattr), int64(filedes), int64(name), int64(value), Int64FromUint64(size)))) +} + +func Xlistxattr(tls *TLS, path uintptr, list uintptr, size Tsize_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v path=%v list=%v size=%v, (%v:)", tls, path, list, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_listxattr), int64(path), int64(list), Int64FromUint64(size)))) +} + +func Xllistxattr(tls *TLS, path uintptr, list uintptr, size Tsize_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v path=%v list=%v size=%v, (%v:)", tls, path, list, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_llistxattr), int64(path), int64(list), Int64FromUint64(size)))) +} + +func Xflistxattr(tls *TLS, filedes int32, list uintptr, size Tsize_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v filedes=%v list=%v size=%v, (%v:)", tls, filedes, list, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_flistxattr), int64(filedes), int64(list), Int64FromUint64(size)))) +} + +func Xsetxattr(tls *TLS, path uintptr, name uintptr, value uintptr, size Tsize_t, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v name=%v value=%v size=%v flags=%v, (%v:)", tls, path, name, value, size, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_setxattr), int64(path), int64(name), int64(value), Int64FromUint64(size), int64(flags))))) +} + +func Xlsetxattr(tls *TLS, path uintptr, name uintptr, value uintptr, size Tsize_t, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v name=%v value=%v size=%v flags=%v, (%v:)", tls, path, name, value, size, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_lsetxattr), int64(path), int64(name), int64(value), Int64FromUint64(size), int64(flags))))) +} + +func Xfsetxattr(tls *TLS, filedes int32, name uintptr, value uintptr, size Tsize_t, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v filedes=%v name=%v value=%v size=%v flags=%v, (%v:)", tls, filedes, name, value, size, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_fsetxattr), int64(filedes), int64(name), int64(value), Int64FromUint64(size), int64(flags))))) +} + +func Xremovexattr(tls *TLS, path uintptr, name uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v name=%v, (%v:)", tls, path, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_removexattr), int64(path), int64(name))))) +} + +func Xlremovexattr(tls *TLS, path uintptr, name uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v name=%v, (%v:)", tls, path, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_lremovexattr), int64(path), int64(name))))) +} + +func Xfremovexattr(tls *TLS, fd int32, name uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v name=%v, (%v:)", tls, fd, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_fremovexattr), int64(fd), int64(name))))) +} + +func _dummy4(tls *TLS, msg uintptr, lm uintptr) (r uintptr) { + return msg +} + +func X__lctrans(tls *TLS, msg uintptr, lm uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v msg=%v lm=%v, (%v:)", tls, msg, lm, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lctrans_impl(tls, msg, lm) +} + +func X__lctrans_cur(tls *TLS, msg uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v msg=%v, (%v:)", tls, msg, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lctrans_impl(tls, msg, **(**uintptr)(__ccgo_up((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale + 5*8))) +} + +func _swapc(tls *TLS, x Tuint32_t, c int32) (r Tuint32_t) { + var v1 uint32 + _ = v1 + if c != 0 { + v1 = x>>int32(24) | x>>int32(8)&uint32(0xff00) | x< %v", r) }() + } + var b, n, o, ol, os, t, tl, ts Tuint32_t + var mo uintptr + var sign, sw int32 + _, _, _, _, _, _, _, _, _, _, _ = b, mo, n, o, ol, os, sign, sw, t, tl, ts + mo = p + sw = Int32FromUint32(**(**Tuint32_t)(__ccgo_up(mo)) - uint32(0x950412de)) + b = uint32(0) + n = _swapc(tls, **(**Tuint32_t)(__ccgo_up(mo + 2*4)), sw) + o = _swapc(tls, **(**Tuint32_t)(__ccgo_up(mo + 3*4)), sw) + t = _swapc(tls, **(**Tuint32_t)(__ccgo_up(mo + 4*4)), sw) + if uint64(n) >= size/uint64(4) || uint64(o) >= size-uint64(uint32(4)*n) || uint64(t) >= size-uint64(uint32(4)*n) || (o|t)%uint32(4) != 0 { + return uintptr(0) + } + o = o / uint32(4) + t = t / uint32(4) + for { + ol = _swapc(tls, **(**Tuint32_t)(__ccgo_up(mo + uintptr(o+uint32(2)*(b+n/uint32(2)))*4)), sw) + os = _swapc(tls, **(**Tuint32_t)(__ccgo_up(mo + uintptr(o+uint32(2)*(b+n/uint32(2))+uint32(1))*4)), sw) + if uint64(os) >= size || uint64(ol) >= size-uint64(os) || **(**uint8)(__ccgo_up(p + uintptr(os+ol))) != 0 { + return uintptr(0) + } + sign = Xstrcmp(tls, s, p+uintptr(os)) + if !(sign != 0) { + tl = _swapc(tls, **(**Tuint32_t)(__ccgo_up(mo + uintptr(t+uint32(2)*(b+n/uint32(2)))*4)), sw) + ts = _swapc(tls, **(**Tuint32_t)(__ccgo_up(mo + uintptr(t+uint32(2)*(b+n/uint32(2))+uint32(1))*4)), sw) + if uint64(ts) >= size || uint64(tl) >= size-uint64(ts) || **(**uint8)(__ccgo_up(p + uintptr(ts+tl))) != 0 { + return uintptr(0) + } + return p + uintptr(ts) + } else { + if n == uint32(1) { + return uintptr(0) + } else { + if sign < 0 { + n = n / uint32(2) + } else { + b = b + n/uint32(2) + n = n - n/uint32(2) + } + } + } + goto _1 + _1: + } + return uintptr(0) +} + +const __USE_GNU_GETTEXT = 1 + +func Xbind_textdomain_codeset(tls *TLS, domainname uintptr, codeset uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v domainname=%v codeset=%v, (%v:)", tls, domainname, codeset, origin(2)) + defer func() { trc("-> %v", r) }() + } + if codeset != 0 && Xstrcasecmp(tls, codeset, __ccgo_ts+419) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + } + return UintptrFromInt32(0) +} + +var _empty_mo = [5]Tuint32_t{ + 0: uint32(0x950412de), + 2: Uint32FromInt32(-Int32FromInt32(1)), + 3: Uint32FromInt32(-Int32FromInt32(1)), + 4: Uint32FromInt32(-Int32FromInt32(1)), +} + +const NL_CAT_LOCALE = 1 +const NL_SETD = 1 + +type Tnl_item = int32 + +type Tnl_catd = uintptr + +func Xcatclose(tls *TLS, catd Tnl_catd) (r int32) { + if __ccgo_strace { + trc("tls=%v catd=%v, (%v:)", tls, catd, origin(2)) + defer func() { trc("-> %v", r) }() + } + var map1 uintptr + var v1, v2 Tuint32_t + _, _, _ = map1, v1, v2 + map1 = catd + v1 = **(**Tuint32_t)(__ccgo_up(map1 + UintptrFromInt32(8))) + v2 = v1>>int32(24) | v1>>int32(8)&uint32(0xff00) | v1<>int32(24) | v1>>int32(8)&uint32(0xff00) | v1<>int32(24) | v4>>int32(8)&uint32(0xff00) | v4< y { + v8 = int32(1) + } else { + v8 = 0 + } + v7 = v8 + } + return v7 +} + +func Xcatgets(tls *TLS, catd Tnl_catd, set_id int32, msg_id int32, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v catd=%v set_id=%v msg_id=%v s=%v, (%v:)", tls, catd, set_id, msg_id, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var map1, msg, msgs, set, sets, strings uintptr + var nmsgs, nsets, v1, v10, v11, v13, v14, v2, v4, v5, v7, v8 Tuint32_t + var _ /* msg_id_be at bp+4 */ Tuint32_t + var _ /* set_id_be at bp+0 */ Tuint32_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = map1, msg, msgs, nmsgs, nsets, set, sets, strings, v1, v10, v11, v13, v14, v2, v4, v5, v7, v8 + map1 = catd + v1 = **(**Tuint32_t)(__ccgo_up(map1 + UintptrFromInt32(4))) + v2 = v1>>int32(24) | v1>>int32(8)&uint32(0xff00) | v1<>int32(24) | v4>>int32(8)&uint32(0xff00) | v4<>int32(24) | v7>>int32(8)&uint32(0xff00) | v7<>int32(24) | v10>>int32(8)&uint32(0xff00) | v10<>int32(24) | v13>>int32(8)&uint32(0xff00) | v13<>int32(24) | v1>>int32(8)&uint32(0xff00) | v1<>int32(24) | v4>>int32(8)&uint32(0xff00) | v4<>int32(24) | v1>>int32(8)&uint32(0xff00) | v1<>int32(24) | v1>>int32(8)&uint32(0xff00) | v1<>int32(24) | v5>>int32(8)&uint32(0xff00) | v5< %v", r) }() + } + bp := tls.Alloc(4096) + defer tls.Free(4096) + var catd Tnl_catd + var i, l Tsize_t + var lang, p, path, v, z, v1 uintptr + var v2 bool + var _ /* buf at bp+0 */ [4096]uint8 + _, _, _, _, _, _, _, _, _, _ = catd, i, l, lang, p, path, v, z, v1, v2 + if Xstrchr(tls, name, int32('/')) != 0 { + return _do_catopen(tls, name) + } + if v2 = X__libc.Fsecure != 0; !v2 { + v1 = Xgetenv(tls, __ccgo_ts+425) + path = v1 + } + if v2 || !(v1 != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOENT) + return uintptr(-Int32FromInt32(1)) + } + if oflag != 0 { + v1 = Xnl_langinfo(tls, Int32FromInt32(LC_MESSAGES)<= uint64(4096)-i { + break + } + Xmemcpy(tls, bp+uintptr(i), v, l) + i = i + l + goto _5 + _5: + ; + p = p + 1 + } + if !(**(**uint8)(__ccgo_up(z)) != 0) && (p < z || !(i != 0)) { + break + } + if p < z { + goto _4 + } + if **(**uint8)(__ccgo_up(z)) != 0 { + z = z + 1 + } + (**(**[4096]uint8)(__ccgo_up(bp)))[i] = uint8(0) + /* Leading : or :: in NLSPATH is same as %N */ + if i != 0 { + v1 = bp + } else { + v1 = name + } + catd = _do_catopen(tls, v1) + if catd != uintptr(-Int32FromInt32(1)) { + return catd + } + goto _4 + _4: + ; + p = z + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOENT) + return uintptr(-Int32FromInt32(1)) +} + +const calloc = 0 +const free = 0 +const malloc = 0 +const realloc = 0 + +type Tbinding = struct { + Fnext uintptr + Fdirlen int32 + Factive int32 + Fdomainname uintptr + Fdirname uintptr +} + +var _bindings uintptr + +func _gettextdir(tls *TLS, domainname uintptr, dirlen uintptr) (r uintptr) { + var p uintptr + _ = p + p = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_bindings))) + for { + if !(p != 0) { + break + } + if !(Xstrcmp(tls, (*Tbinding)(unsafe.Pointer(p)).Fdomainname, domainname) != 0) && AtomicLoadPInt32(p+12) != 0 { + **(**Tsize_t)(__ccgo_up(dirlen)) = Uint64FromInt32((*Tbinding)(unsafe.Pointer(p)).Fdirlen) + return (*Tbinding)(unsafe.Pointer(p)).Fdirname + } + goto _1 + _1: + ; + p = (*Tbinding)(unsafe.Pointer(p)).Fnext + } + return uintptr(0) +} + +var _lock1 [1]int32 + +func Xbindtextdomain(tls *TLS, domainname uintptr, dirname uintptr) (r1 uintptr) { + if __ccgo_strace { + trc("tls=%v domainname=%v dirname=%v, (%v:)", tls, domainname, dirname, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var dirlen, domlen Tsize_t + var old, p4, q, v, v2, v3, v8, v9 uintptr + var r, v4 int32 + var v6 bool + _, _, _, _, _, _, _, _, _, _, _, _, _ = dirlen, domlen, old, p4, q, r, v, v2, v3, v4, v6, v8, v9 + if !(domainname != 0) { + return uintptr(0) + } + if !(dirname != 0) { + *(*Tsize_t)(unsafe.Pointer(bp)) = uint64(0) + return _gettextdir(tls, domainname, bp) + } + domlen = Xstrnlen(tls, domainname, Uint64FromInt32(Int32FromInt32(NAME_MAX)+Int32FromInt32(1))) + dirlen = Xstrnlen(tls, dirname, uint64(PATH_MAX)) + if domlen > uint64(NAME_MAX) || dirlen >= uint64(PATH_MAX) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(0) + } + ___lock(tls, uintptr(unsafe.Pointer(&_lock1))) + p4 = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_bindings))) + for { + if !(p4 != 0) { + break + } + if !(Xstrcmp(tls, (*Tbinding)(unsafe.Pointer(p4)).Fdomainname, domainname) != 0) && !(Xstrcmp(tls, (*Tbinding)(unsafe.Pointer(p4)).Fdirname, dirname) != 0) { + break + } + goto _1 + _1: + ; + p4 = (*Tbinding)(unsafe.Pointer(p4)).Fnext + } + if !(p4 != 0) { + p4 = Xcalloc(tls, uint64(32)+domlen+dirlen+uint64(2), uint64(1)) + if !(p4 != 0) { + ___unlock(tls, uintptr(unsafe.Pointer(&_lock1))) + return uintptr(0) + } + (*Tbinding)(unsafe.Pointer(p4)).Fnext = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_bindings))) + (*Tbinding)(unsafe.Pointer(p4)).Fdirlen = Int32FromUint64(dirlen) + (*Tbinding)(unsafe.Pointer(p4)).Fdomainname = p4 + 32 + (*Tbinding)(unsafe.Pointer(p4)).Fdirname = p4 + 32 + uintptr(domlen) + uintptr(1) + Xmemcpy(tls, (*Tbinding)(unsafe.Pointer(p4)).Fdomainname, domainname, domlen+uint64(1)) + Xmemcpy(tls, (*Tbinding)(unsafe.Pointer(p4)).Fdirname, dirname, dirlen+uint64(1)) + v2 = uintptr(unsafe.Pointer(&_bindings)) + // __asm__ __volatile__ ("sync" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 40, __ccgo_ts+447) + for { + v8 = v2 + // __asm__ __volatile__ ("ldarx %0, 0, %2" : "=r"(v) : "m"(*(void *volatile *)p), "r"(p)); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 23, __ccgo_ts+447) + v9 = v + goto _10 + _10: + old = v9 + goto _7 + _7: + ; + if v6 = old == AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_bindings))); v6 { + v3 = v2 + // __asm__ __volatile__ ( + // + // "stdcx. %2, 0, %3 ; mfcr %0" + // : "=r"(r), "=m"(*(void *volatile *)p) : "r"(v), "r"(p) : "memory", "cc"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 31, __ccgo_ts+447) + v4 = r & int32(0x20000000) + goto _5 + _5: + } + if !(v6 && !(v4 != 0)) { + break + } + } + // __asm__ __volatile__ ("isync" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 48, __ccgo_ts+447) + _ = old + goto _11 + _11: + } + // __asm__ __volatile__ ("sync" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 40, __ccgo_ts+447) + AtomicStorePInt32(p4+12, int32(1)) + // __asm__ __volatile__ ("sync" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 40, __ccgo_ts+447) + q = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_bindings))) + for { + if !(q != 0) { + break + } + if !(Xstrcmp(tls, (*Tbinding)(unsafe.Pointer(q)).Fdomainname, domainname) != 0) && q != p4 { + // __asm__ __volatile__ ("sync" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 40, __ccgo_ts+447) + AtomicStorePInt32(q+12, 0) + // __asm__ __volatile__ ("sync" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 40, __ccgo_ts+447) + } + goto _12 + _12: + ; + q = (*Tbinding)(unsafe.Pointer(q)).Fnext + } + ___unlock(tls, uintptr(unsafe.Pointer(&_lock1))) + return (*Tbinding)(unsafe.Pointer(p4)).Fdirname +} + +var _catnames = [6][12]uint8{ + 0: {'L', 'C', '_', 'C', 'T', 'Y', 'P', 'E'}, + 1: {'L', 'C', '_', 'N', 'U', 'M', 'E', 'R', 'I', 'C'}, + 2: {'L', 'C', '_', 'T', 'I', 'M', 'E'}, + 3: {'L', 'C', '_', 'C', 'O', 'L', 'L', 'A', 'T', 'E'}, + 4: {'L', 'C', '_', 'M', 'O', 'N', 'E', 'T', 'A', 'R', 'Y'}, + 5: {'L', 'C', '_', 'M', 'E', 'S', 'S', 'A', 'G', 'E', 'S'}, +} + +var _catlens = [6]uint8{ + 0: uint8(8), + 1: uint8(10), + 2: uint8(7), + 3: uint8(10), + 4: uint8(11), + 5: uint8(11), +} + +type Tmsgcat = struct { + Fnext uintptr + Fmap1 uintptr + Fmap_size Tsize_t + Fplural_rule uintptr + Fnplurals int32 + Fbinding uintptr + Flm uintptr + Fcat int32 +} + +func _dummy_gettextdomain(tls *TLS) (r uintptr) { + return __ccgo_ts + 462 +} + +func Xdcngettext(tls *TLS, domainname uintptr, msgid1 uintptr, msgid2 uintptr, n uint64, category int32) (r2 uintptr) { + if __ccgo_strace { + trc("tls=%v domainname=%v msgid1=%v msgid2=%v n=%v category=%v, (%v:)", tls, domainname, msgid1, msgid2, n, category, origin(2)) + defer func() { trc("-> %v", r2) }() + } + bp := tls.Alloc(80) + defer tls.Free(80) + var alt_modlen, catlen, dirlen, domlen, l, loclen, modlen, rem, v5 Tsize_t + var catname, csp, dirname, lm, loc, locname, locp, map1, modname, name, old, old_cats, p3, q, r1, rule, trans, v, v10, v17, v3, v8, v9 uintptr + var np, plural, v29 uint64 + var old_errno, r, v11, v12 int32 + var v21 bool + var v6 t__predefined_size_t + var _ /* map_size at bp+0 */ Tsize_t + var _ /* z at bp+8 */ uintptr + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = alt_modlen, catlen, catname, csp, dirlen, dirname, domlen, l, lm, loc, loclen, locname, locp, map1, modlen, modname, name, np, old, old_cats, old_errno, p3, plural, q, r, r1, rem, rule, trans, v, v10, v11, v12, v17, v21, v29, v3, v5, v6, v8, v9 + defer func() { Xrealloc(tls, name, 0) }() + loc = (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale + old_errno = **(**int32)(__ccgo_up(X__errno_location(tls))) + /* match gnu gettext behaviour */ + if !(msgid1 != 0) { + goto notrans + } + if Uint32FromInt32(category) >= uint32(LC_ALL) { + goto notrans + } + if !(domainname != 0) { + domainname = X__gettextdomain(tls) + } + domlen = Xstrnlen(tls, domainname, Uint64FromInt32(Int32FromInt32(NAME_MAX)+Int32FromInt32(1))) + if domlen > uint64(NAME_MAX) { + goto notrans + } + q = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_bindings))) + for { + if !(q != 0) { + break + } + if !(Xstrcmp(tls, (*Tbinding)(unsafe.Pointer(q)).Fdomainname, domainname) != 0) && AtomicLoadPInt32(q+12) != 0 { + break + } + goto _1 + _1: + ; + q = (*Tbinding)(unsafe.Pointer(q)).Fnext + } + if !(q != 0) { + goto notrans + } + lm = **(**uintptr)(__ccgo_up(loc + uintptr(category)*8)) + if !!(lm != 0) { + goto _2 + } + goto notrans +notrans: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = old_errno + if n == uint64(1) { + v3 = msgid1 + } else { + v3 = msgid2 + } + return v3 +_2: + ; + p3 = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_cats))) + for { + if !(p3 != 0) { + break + } + if (*Tmsgcat)(unsafe.Pointer(p3)).Fbinding == q && (*Tmsgcat)(unsafe.Pointer(p3)).Flm == lm && (*Tmsgcat)(unsafe.Pointer(p3)).Fcat == category { + break + } + goto _4 + _4: + ; + p3 = (*Tmsgcat)(unsafe.Pointer(p3)).Fnext + } + if !(p3 != 0) { + dirname = (*Tbinding)(unsafe.Pointer(q)).Fdirname + locname = lm + 16 + catname = uintptr(unsafe.Pointer(&_catnames)) + uintptr(category)*12 + dirlen = Uint64FromInt32((*Tbinding)(unsafe.Pointer(q)).Fdirlen) + loclen = _strlen(tls, locname) + catlen = uint64(_catlens[category]) + /* Logically split @mod suffix from locale name. */ + modname = Xmemchr(tls, locname, int32('@'), loclen) + if !(modname != 0) { + modname = locname + uintptr(loclen) + } + v5 = loclen - Uint64FromInt64(int64(modname)-int64(locname)) + modlen = v5 + alt_modlen = v5 + loclen = Uint64FromInt64(int64(modname) - int64(locname)) + /* Drop .charset identifier; it is not used. */ + csp = Xmemchr(tls, locname, int32('.'), loclen) + if csp != 0 { + loclen = Uint64FromInt64(int64(csp) - int64(locname)) + } + v6 = dirlen + uint64(1) + loclen + modlen + uint64(1) + catlen + uint64(1) + domlen + uint64(3) + uint64(1) + name = Xrealloc(tls, name, v6) + for { + Xsnprintf(tls, name, v6, __ccgo_ts+471, VaList(bp+24, dirname, Int32FromUint64(loclen), locname, Int32FromUint64(alt_modlen), modname, catname, domainname)) + v3 = X__map_file(tls, name, bp) + map1 = v3 + if v3 != 0 { + break + } + /* Try dropping @mod, _YY, then both. */ + if alt_modlen != 0 { + alt_modlen = uint64(0) + } else { + v3 = Xmemchr(tls, locname, int32('_'), loclen) + locp = v3 + if v3 != 0 { + loclen = Uint64FromInt64(int64(locp) - int64(locname)) + alt_modlen = modlen + } else { + break + } + } + goto _7 + _7: + } + if !(map1 != 0) { + goto notrans + } + p3 = Xcalloc(tls, uint64(64), uint64(1)) + if !(p3 != 0) { + X__munmap(tls, map1, **(**Tsize_t)(__ccgo_up(bp))) + goto notrans + } + (*Tmsgcat)(unsafe.Pointer(p3)).Fcat = category + (*Tmsgcat)(unsafe.Pointer(p3)).Fbinding = q + (*Tmsgcat)(unsafe.Pointer(p3)).Flm = lm + (*Tmsgcat)(unsafe.Pointer(p3)).Fmap1 = map1 + (*Tmsgcat)(unsafe.Pointer(p3)).Fmap_size = **(**Tsize_t)(__ccgo_up(bp)) + rule = __ccgo_ts + 493 + np = uint64(2) + r1 = X__mo_lookup(tls, (*Tmsgcat)(unsafe.Pointer(p3)).Fmap1, (*Tmsgcat)(unsafe.Pointer(p3)).Fmap_size, __ccgo_ts) + for r1 != 0 && Xstrncmp(tls, r1, __ccgo_ts+499, uint64(13)) != 0 { + **(**uintptr)(__ccgo_up(bp + 8)) = Xstrchr(tls, r1, int32('\n')) + if **(**uintptr)(__ccgo_up(bp + 8)) != 0 { + v3 = **(**uintptr)(__ccgo_up(bp + 8)) + uintptr(1) + } else { + v3 = uintptr(0) + } + r1 = v3 + } + if r1 != 0 { + r1 = r1 + uintptr(13) + for { + v11 = Int32FromUint8(**(**uint8)(__ccgo_up(r1))) + v12 = BoolInt32(v11 == int32(' ') || Uint32FromInt32(v11)-uint32('\t') < uint32(5)) + goto _13 + _13: + if !(v12 != 0) { + break + } + r1 = r1 + 1 + } + if !(Xstrncmp(tls, r1, __ccgo_ts+513, uint64(9)) != 0) { + np = Xstrtoul(tls, r1+uintptr(9), bp+8, int32(10)) + r1 = **(**uintptr)(__ccgo_up(bp + 8)) + } + for **(**uint8)(__ccgo_up(r1)) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(r1))) != int32(';') { + r1 = r1 + 1 + } + if **(**uint8)(__ccgo_up(r1)) != 0 { + r1 = r1 + 1 + for { + v11 = Int32FromUint8(**(**uint8)(__ccgo_up(r1))) + v12 = BoolInt32(v11 == int32(' ') || Uint32FromInt32(v11)-uint32('\t') < uint32(5)) + goto _16 + _16: + if !(v12 != 0) { + break + } + r1 = r1 + 1 + } + if !(Xstrncmp(tls, r1, __ccgo_ts+523, uint64(7)) != 0) { + rule = r1 + uintptr(7) + } + } + } + (*Tmsgcat)(unsafe.Pointer(p3)).Fnplurals = Int32FromUint64(np) + (*Tmsgcat)(unsafe.Pointer(p3)).Fplural_rule = rule + for { + old_cats = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_cats))) + (*Tmsgcat)(unsafe.Pointer(p3)).Fnext = old_cats + goto _28 + _28: + ; + v3 = uintptr(unsafe.Pointer(&_cats)) + // __asm__ __volatile__ ("sync" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 40, __ccgo_ts+531) + for { + v9 = v3 + // __asm__ __volatile__ ("ldarx %0, 0, %2" : "=r"(v) : "m"(*(void *volatile *)p), "r"(p)); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 23, __ccgo_ts+531) + v10 = v + goto _25 + _25: + old = v10 + goto _22 + _22: + ; + if v21 = old == old_cats; v21 { + v8 = v3 + // __asm__ __volatile__ ( + // + // "stdcx. %2, 0, %3 ; mfcr %0" + // : "=r"(r), "=m"(*(void *volatile *)p) : "r"(v), "r"(p) : "memory", "cc"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 31, __ccgo_ts+531) + v11 = r & int32(0x20000000) + goto _20 + _20: + } + if !(v21 && !(v11 != 0)) { + break + } + } + // __asm__ __volatile__ ("isync" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 48, __ccgo_ts+531) + v17 = old + goto _27 + _27: + ; + if !(v17 != old_cats) { + break + } + } + } + trans = X__mo_lookup(tls, (*Tmsgcat)(unsafe.Pointer(p3)).Fmap1, (*Tmsgcat)(unsafe.Pointer(p3)).Fmap_size, msgid1) + if !(trans != 0) { + goto notrans + } + /* Non-plural-processing gettext forms pass a null pointer as + * msgid2 to request that dcngettext suppress plural processing. */ + if msgid2 != 0 && (*Tmsgcat)(unsafe.Pointer(p3)).Fnplurals != 0 { + plural = X__pleval(tls, (*Tmsgcat)(unsafe.Pointer(p3)).Fplural_rule, n) + if plural > Uint64FromInt32((*Tmsgcat)(unsafe.Pointer(p3)).Fnplurals) { + goto notrans + } + for { + v29 = plural + plural = plural - 1 + if !(v29 != 0) { + break + } + rem = (*Tmsgcat)(unsafe.Pointer(p3)).Fmap_size - Uint64FromInt64(int64(trans)-int64((*Tmsgcat)(unsafe.Pointer(p3)).Fmap1)) + l = Xstrnlen(tls, trans, rem) + if l+uint64(1) >= rem { + goto notrans + } + trans = trans + uintptr(l+uint64(1)) + } + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = old_errno + return trans +} + +var _cats uintptr + +func Xdcgettext(tls *TLS, domainname uintptr, msgid uintptr, category int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v domainname=%v msgid=%v category=%v, (%v:)", tls, domainname, msgid, category, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xdcngettext(tls, domainname, msgid, uintptr(0), uint64(1), category) +} + +func Xdngettext(tls *TLS, domainname uintptr, msgid1 uintptr, msgid2 uintptr, n uint64) (r uintptr) { + if __ccgo_strace { + trc("tls=%v domainname=%v msgid1=%v msgid2=%v n=%v, (%v:)", tls, domainname, msgid1, msgid2, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xdcngettext(tls, domainname, msgid1, msgid2, n, int32(LC_MESSAGES)) +} + +func Xdgettext(tls *TLS, domainname uintptr, msgid uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v domainname=%v msgid=%v, (%v:)", tls, domainname, msgid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xdcngettext(tls, domainname, msgid, uintptr(0), uint64(1), int32(LC_MESSAGES)) +} + +func X__duplocale(tls *TLS, old Tlocale_t) (r Tlocale_t) { + if __ccgo_strace { + trc("tls=%v old=%v, (%v:)", tls, old, origin(2)) + defer func() { trc("-> %v", r) }() + } + var new1 Tlocale_t + _ = new1 + new1 = Xmalloc(tls, uint64(48)) + if !(new1 != 0) { + return uintptr(0) + } + if old == uintptr(-Int32FromInt32(1)) { + old = uintptr(unsafe.Pointer(&X__libc)) + 56 + } + **(**t__locale_struct)(__ccgo_up(new1)) = **(**t__locale_struct)(__ccgo_up(old)) + return new1 +} + +func Xduplocale(tls *TLS, old Tlocale_t) (r Tlocale_t) { + if __ccgo_strace { + trc("tls=%v old=%v, (%v:)", tls, old, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__duplocale(tls, old) +} + +func Xfreelocale(tls *TLS, l Tlocale_t) { + if __ccgo_strace { + trc("tls=%v l=%v, (%v:)", tls, l, origin(2)) + } + if X__loc_is_allocated(tls, l) != 0 { + Xfree(tls, l) + } +} + +func X__freelocale(tls *TLS, l Tlocale_t) { + if __ccgo_strace { + trc("tls=%v l=%v, (%v:)", tls, l, origin(2)) + } + Xfreelocale(tls, l) +} + +const BIG5 = 224 +const EUC_JP = 208 +const EUC_KR = 232 +const GB18030 = 216 +const GB2312 = 218 +const GBK = 217 +const ISO2022_JP = 210 +const SHIFT_JIS = 209 +const UCS2 = 204 +const UCS2BE = 196 +const UCS2LE = 197 +const US_ASCII = 199 +const UTF_16 = 202 +const UTF_16BE = 194 +const UTF_16LE = 193 +const UTF_32 = 203 +const UTF_32BE = 192 +const UTF_32LE = 195 +const UTF_8 = 200 +const WCHAR_T = 198 +const mbrtowc_utf8 = 0 +const wctomb_utf8 = 0 + +type Ticonv_t = uintptr + +/* Definitions of charmaps. Each charmap consists of: + * 1. Empty-string-terminated list of null-terminated aliases. + * 2. Special type code or number of elided quads of entries. + * 3. Character table (size determined by field 2), consisting + * of 5 bytes for every 4 characters, interpreted as 10-bit + * indices into the legacy_chars table. */ + +var _charmaps = [4907]uint8{'u', 't', 'f', '8', 0, 'c', 'h', 'a', 'r', 0, 0, 200, 'w', 'c', 'h', 'a', 'r', 't', 0, 0, 198, 'u', 'c', 's', '2', 'b', 'e', 0, 0, 196, 'u', 'c', 's', '2', 'l', 'e', 0, 0, 197, 'u', 't', 'f', '1', '6', 'b', 'e', 0, 0, 194, 'u', 't', 'f', '1', '6', 'l', 'e', 0, 0, 193, 'u', 'c', 's', '4', 'b', 'e', 0, 'u', 't', 'f', '3', '2', 'b', 'e', 0, 0, 192, 'u', 'c', 's', '4', 'l', 'e', 0, 'u', 't', 'f', '3', '2', 'l', 'e', 0, 0, 195, 'a', 's', 'c', 'i', 'i', 0, 'u', 's', 'a', 's', 'c', 'i', 'i', 0, 'i', 's', 'o', '6', '4', '6', 0, 'i', 's', 'o', '6', '4', '6', 'u', 's', 0, 0, 199, 'u', 't', 'f', '1', '6', 0, 0, 202, 'u', 'c', 's', '4', 0, 'u', 't', 'f', '3', '2', 0, 0, 203, 'u', 'c', 's', '2', 0, 0, 204, 'e', 'u', 'c', 'j', 'p', 0, 0, 208, 's', 'h', 'i', 'f', 't', 'j', 'i', 's', 0, 's', 'j', 'i', 's', 0, 'c', 'p', '9', '3', '2', 0, 0, 209, 'i', 's', 'o', '2', '0', '2', '2', 'j', 'p', 0, 0, 210, 'g', 'b', '1', '8', '0', '3', '0', 0, 0, 216, 'g', 'b', 'k', 0, 'c', 'p', '9', '3', '6', 0, 'w', 'i', 'n', 'd', 'o', 'w', 's', '9', '3', '6', 0, 0, 217, 'g', 'b', '2', '3', '1', '2', 0, 0, 218, 'b', 'i', 'g', '5', 0, 'b', 'i', 'g', 'f', 'i', 'v', 'e', 0, 'c', 'p', '9', '5', '0', 0, 'b', 'i', 'g', '5', 'h', 'k', 's', 'c', 's', 0, 0, 224, 'e', 'u', 'c', 'k', 'r', 0, 'k', 's', 'c', '5', '6', '0', '1', 0, 'k', 's', 'x', '1', '0', '0', '1', 0, 'c', 'p', '9', '4', '9', 0, 0, 232, 'i', 's', 'o', '8', '8', '5', '9', '1', 0, 'l', 'a', 't', 'i', 'n', '1', 0, 0, '@', 'i', 's', 'o', '8', '8', '5', '9', '2', 0, 0, '(', 160, 16, 244, 'W', 'N', 164, 220, 244, 212, ')', 168, 'T', '5', 'U', 'V', 'n', 181, '"', 23, '\\', 176, 20, 20, 152, 'N', 180, 224, 4, 149, '_', 184, 'X', 'E', 149, 'V', 'o', 13, '6', 'W', '\\', 'I', 5, '#', 140, '@', 196, 204, 'd', 208, '1', 12, '%', 'c', 209, '2', 24, '5', 227, 140, 'C', 16, 237, 244, 211, '4', 212, 20, 'e', 205, '5', 'M', 141, 165, 'M', 'Y', 220, 't', 's', 213, '7', 'J', 133, '#', 206, '@', 228, 208, 't', 208, '9', 13, 165, 's', 209, ':', 25, 181, 227, 206, 'C', 17, 241, 4, 212, '<', 244, 24, 'e', 207, '=', 'N', 145, 165, 143, 'Y', 252, 244, 131, 21, '`', 'i', 's', 'o', '8', '8', '5', '9', '3', 0, 0, '(', 160, 144, 244, 215, '(', 164, 0, ' ', 210, ')', 168, 176, '4', 21, 'G', '.', 181, 2, 0, '\\', 176, 148, '$', 203, ',', 180, 212, '2', 210, '-', 184, 180, 'D', 'U', 'G', '/', 245, 2, '@', '\\', 192, 4, '#', 12, 0, 196, '(', 132, 208, '1', 200, '$', 163, 204, '2', 204, '4', 227, 204, '3', 0, 'D', '#', 205, '4', 212, 'x', 'd', 205, '5', 26, 'e', 163, 205, '6', 220, 132, 21, 213, '7', 224, 132, '#', 14, 0, 228, ',', 148, 208, '9', 232, 164, 163, 206, ':', 236, 180, 227, 206, ';', 0, 196, '#', 207, '<', 244, '|', 'd', 207, '=', 27, 229, 163, 207, '>', 252, 136, '%', 21, '`', 'i', 's', 'o', '8', '8', '5', '9', '4', 0, 0, '(', 160, 16, '$', 211, 'R', 164, 152, 'T', 211, ')', 168, 'T', '%', 17, 'H', '[', 181, '"', 215, '+', 176, 20, 20, 24, 'S', 180, 156, 'd', 147, '_', 184, 'X', '5', 'Q', 'H', '\\', 5, '5', 151, 'P', 0, 5, '#', 204, '0', 196, 20, 'c', 140, 'J', 12, '%', 'c', 209, '2', 20, '5', 227, 12, 'J', 16, 245, '4', 20, 'L', 212, 'T', 'c', 205, '5', 216, 156, 165, 205, '6', 220, 't', 245, 213, '7', 1, 133, '#', 206, '8', 228, 148, 'c', 206, 'J', 13, 165, 's', 209, ':', 21, 181, 227, 'N', 'J', 17, 249, 'D', 'T', 'L', 244, 212, 'c', 207, '=', 248, 160, 165, 207, '>', 252, 'x', 5, 22, '`', 'i', 's', 'o', '8', '8', '5', '9', '5', 0, 0, '(', 160, 'D', '\'', 221, 't', 212, 'U', 'g', 221, 'u', 216, 'e', 167, 221, 'v', 220, 181, 210, 157, 'w', 223, 129, 23, 158, 'x', 227, 145, 'W', 158, 'y', 231, 161, 151, 158, 'z', 235, 177, 215, 158, '{', 239, 193, 23, 159, '|', 243, 209, 'W', 159, '}', 247, 225, 151, 159, '~', 251, 241, 215, 159, 127, 255, 1, 24, 160, 128, 3, 18, 'X', 160, 129, 7, '"', 152, 160, 130, 11, '2', 216, 160, 131, 15, 'B', 24, 161, 132, 19, 'R', 'X', 161, 133, 23, 'b', 152, 161, 134, 27, 'r', 216, 161, 135, '&', 127, 8, 'b', 136, '"', 142, 'H', 'b', 137, '&', 158, 136, 'b', 138, '*', 158, 178, '"', 139, 'i', 's', 'o', '8', '8', '5', '9', '6', 0, 0, '(', 160, 0, 0, 0, 0, 164, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'b', 182, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 192, 152, 0, 0, 0, 0, 153, 0, 148, 'i', 230, 153, 'h', 166, 169, 230, 154, 'l', 182, 233, 230, 155, 'p', 198, ')', 231, 156, 't', 214, 'i', 231, 157, 'x', 230, 169, 231, 158, '|', 246, 233, '\'', 0, 0, 0, 0, 0, 0, 127, 2, 26, 168, 160, 131, 18, 'Z', 168, 161, 135, '"', 154, 168, 162, 139, '2', 218, 168, 163, 143, 'B', 26, ')', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'i', 's', 'o', '8', '8', '5', '9', '7', 0, 0, '(', 160, 'L', 'L', 241, '(', '$', 151, 'l', 202, ')', 168, 164, 146, 216, '*', 172, 180, 2, '@', 196, 176, 196, '"', 203, ',', 138, '-', 198, 216, '-', 141, '9', 246, 216, '.', 144, 245, 18, 153, 'd', 147, 'Q', 'V', 153, 'e', 151, 'a', 150, 153, 'f', 155, 'q', 214, 153, 'g', 159, 129, 22, 154, 'h', 163, 145, 6, '@', 'i', 166, 157, 134, 'Z', 'j', 170, 173, 198, 'Z', 'k', 174, 189, 6, '[', 'l', 178, 205, 'F', '[', 'm', 182, 221, 134, '[', 'n', 186, 237, 198, '[', 'o', 190, 253, 6, '\\', 'p', 194, 13, 'G', '\\', 'q', 198, 29, 135, '\\', 'r', 202, '-', 199, '\\', 's', 206, '=', 7, 29, 0, 'i', 's', 'o', '8', '8', '5', '9', '8', 0, 0, '(', 160, 0, ' ', 202, '(', 164, 148, 'b', 202, ')', 168, 164, 'r', 205, '*', 172, 180, 226, 202, '+', 176, 196, '"', 203, ',', 180, 212, 'b', 203, '-', 184, 228, 'r', 207, '.', 188, 244, 226, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 128, 196, 'B', 14, 'I', 'd', 145, 'F', 30, 137, 'd', 146, 'J', '.', 201, 'd', 147, 'N', '>', 9, 'e', 148, 'R', 'N', 'I', 'e', 149, 'V', '^', 137, 'e', 150, 'Z', 'n', 201, '%', 0, 0, '4', 236, '0', 0, 'i', 's', 'o', '8', '8', '5', '9', '9', 0, 0, '4', 28, 'E', '#', 205, '4', 212, 'T', 'c', 205, '5', 216, 'd', 163, 205, '6', 220, 176, '4', 213, '7', 224, 132, '#', 206, '8', 228, 148, 'c', 206, '9', 232, 164, 163, 206, ':', 236, 180, 227, 206, ';', 29, 197, '#', 207, '<', 244, 212, 'c', 207, '=', 248, 228, 163, 207, '>', 252, 180, 'D', 213, '?', 'i', 's', 'o', '8', '8', '5', '9', '1', '0', 0, 0, '(', 160, 16, '$', 17, 'H', '(', 153, 4, 211, ')', '5', 'A', 'T', 213, 'V', 'r', 181, 242, 'U', 'P', 176, 20, '4', 'Q', 'H', ')', 157, 20, 211, '-', '6', 'E', 'd', 21, 'W', 's', 'E', 12, 150, 'P', 0, 5, '#', 204, '0', 196, 20, 'c', 140, 'J', 12, '%', 'c', 209, '2', 20, '5', 227, 204, '3', 208, 244, '4', 212, '4', 212, 'T', 'c', 'M', 'W', 216, 156, 165, 205, '6', 220, 't', 227, 205, '7', 1, 133, '#', 206, '8', 228, 148, 'c', 206, 'J', 13, 165, 's', 209, ':', 21, 181, 227, 206, ';', 240, 248, 'D', 212, '<', 244, 212, 'c', 143, 'W', 248, 160, 165, 207, '>', 252, 244, 227, 143, 'L', 'i', 's', 'o', '8', '8', '5', '9', '1', '1', 0, 't', 'i', 's', '6', '2', '0', 0, 0, '(', 160, 'x', 250, ')', 168, 161, 138, ':', '*', 169, 165, 154, 'z', '*', 170, 169, 170, 186, '*', 171, 173, 186, 250, '*', 172, 177, 202, ':', '+', 173, 181, 218, 'z', '+', 174, 185, 234, 186, '+', 175, 189, 250, 250, '+', 176, 193, 10, ';', ',', 177, 197, 26, '{', ',', 178, 201, '*', 187, ',', 179, 205, ':', 251, ',', 180, 209, 'J', ';', '-', 181, 213, 'Z', '{', '-', 0, 0, 0, 0, 0, 182, 217, 'j', 187, '-', 183, 221, 'z', 251, '-', 184, 225, 138, ';', '.', 185, 229, 154, '{', '.', 186, 233, 170, 187, '.', 187, 237, 186, 251, '.', 188, 241, 202, ';', '/', 189, 0, 0, 0, 0, 0, 'i', 's', 'o', '8', '8', '5', '9', '1', '3', 0, 0, '(', 160, '\\', ',', 202, '(', 164, '`', 'l', 202, ')', 216, 164, 178, 212, '*', 172, 180, 226, 138, '1', 176, 196, '"', 203, ',', 22, 215, 'b', 203, '-', 248, 228, 194, 212, '.', 188, 244, 226, 139, '9', 4, 169, 4, 144, 'A', 196, 20, 'c', 145, 'D', 12, '%', 227, 22, 'E', ' ', 193, 132, 'R', 'M', 'U', 237, 212, 211, '4', 'C', 'U', 'c', 205, '5', 'g', 229, 244, 212, 'W', 220, 192, '%', 215, '7', 5, 173, 20, 208, 'A', 228, 148, 's', 209, 'D', 13, 165, 243, 'V', 'E', '!', 197, 148, 146, 'M', 'V', 241, 228, 211, '<', 'D', 213, 'c', 207, '=', 'h', 233, 4, 21, 'X', 252, 196, '5', 23, 197, 'i', 's', 'o', '8', '8', '5', '9', '1', '4', 0, 0, '(', 160, 212, 'k', 239, '(', 10, '-', 't', 239, ')', 3, 167, 'R', '0', 190, 9, 183, 226, 'J', '[', 249, 234, 235, 209, 'G', 251, 242, 'k', 'K', 191, 4, 251, 'k', 240, 191, 10, 31, 140, '0', 192, 192, 4, '#', 204, '0', 196, 20, 'c', 204, '1', 200, '$', 163, 204, '2', 204, '4', 227, 204, '3', 'i', 'E', '#', 205, '4', 212, 'T', 'c', 'M', 192, 216, 'd', 163, 205, '6', 220, 't', 179, 214, '7', 224, 132, '#', 206, '8', 228, 148, 'c', 206, '9', 232, 164, 163, 206, ':', 236, 180, 227, 206, ';', 'j', 197, '#', 207, '<', 244, 212, 'c', 143, 192, 248, 228, 163, 207, '>', 252, 244, 195, 214, '?', 'i', 's', 'o', '8', '8', '5', '9', '1', '5', 0, 'l', 'a', 't', 'i', 'n', '9', 0, 0, ')', '$', 151, 'R', 213, ')', 'V', 165, 162, 202, '*', 172, 180, 226, 202, '+', 176, 196, '"', 203, ',', 'r', 213, 'b', 203, '-', 's', 229, 162, 203, '.', 'G', '!', 213, 214, '/', 192, 4, '#', 204, '0', 196, 20, 'c', 204, '1', 200, '$', 163, 204, '2', 204, '4', 227, 204, '3', 208, 'D', '#', 205, '4', 212, 'T', 'c', 205, '5', 216, 'd', 163, 205, '6', 220, 't', 227, 205, '7', 224, 132, '#', 206, '8', 228, 148, 'c', 206, '9', 232, 164, 163, 206, ':', 236, 180, 227, 206, ';', 240, 196, '#', 207, '<', 244, 212, 'c', 207, '=', 248, 228, 163, 207, '>', 252, 244, 227, 207, '?', 'i', 's', 'o', '8', '8', '5', '9', '1', '6', 0, 0, '(', 160, 16, 'T', 'P', 'N', '$', 'c', '\\', 213, ')', 'V', 165, 146, 215, '*', 'n', 181, 242, 22, '\\', 176, 196, 194, 144, 'N', 'r', ']', 'l', 203, '-', 's', '5', 164, 215, '.', 'G', '!', 213, 'V', '\\', 192, 4, '#', 140, '@', 196, 24, 'd', 204, '1', 200, '$', 163, 204, '2', 204, '4', 227, 204, '3', 16, 237, '$', 205, '4', 212, 20, 'e', 205, 'S', 'e', 'e', 163, 205, '6', 220, 'X', 180, 215, '7', 224, 132, '#', 206, '@', 228, 28, 'd', 206, '9', 232, 164, 163, 206, ':', 236, 180, 227, 206, ';', 17, 241, '$', 207, '<', 244, 24, 'e', 15, 'T', 'f', 229, 163, 207, '>', 252, '\\', 196, 215, '?', 'c', 'p', '1', '2', '5', '0', 0, 'w', 'i', 'n', 'd', 'o', 'w', 's', '1', '2', '5', '0', 0, 0, ' ', '$', 3, 'P', '1', 0, 24, 's', 156, 177, 198, 0, 't', '\\', 149, 199, 'O', 'e', '%', 151, '[', 0, 'L', 'L', 177, 197, 23, 'o', 252, '0', 196, 0, 156, 'l', 213, 199, 'P', 'i', '5', 215, '[', 160, 248, 245, 'W', 'N', 164, 16, 'd', 202, ')', 168, 164, '2', 213, '*', 172, 180, 226, 10, '\\', 176, 196, 18, 152, 'N', 180, 212, 'b', 203, '-', 184, 20, 'D', 213, '.', '7', 13, 134, 'S', '\\', 'I', 5, '#', 140, '@', 196, 204, 'd', 208, '1', 12, '%', 'c', 209, '2', 24, '5', 227, 140, 'C', 16, 237, 244, 211, '4', 212, 20, 'e', 205, '5', 'M', 141, 165, 'M', 'Y', 220, 't', 's', 213, '7', 'J', 133, '#', 206, '@', 228, 208, 't', 208, '9', 13, 165, 's', 209, ':', 25, 181, 227, 206, 'C', 17, 241, 4, 212, '<', 244, 24, 'e', 207, '=', 'N', 145, 165, 143, 'Y', 252, 244, 131, 21, '`', 'c', 'p', '1', '2', '5', '1', 0, 'w', 'i', 'n', 'd', 'o', 'w', 's', '1', '2', '5', '1', 0, 0, ' ', 210, 'M', 'W', 'q', 136, 24, 's', 156, 177, 198, '$', 'w', 156, 157, 199, 218, 'q', 183, 157, 'w', ' ', 'N', 'L', 177, 197, 23, 'o', 252, '0', 196, 0, 156, '|', 226, 199, '(', 170, 152, '"', 139, 160, 't', 183, '"', 'v', 164, 180, 'h', 202, ')', 209, 165, 'B', 221, '*', 172, 180, 226, 202, 'u', 176, 196, 'b', 29, 137, '.', 214, 'b', 203, '-', 31, 154, ',', 226, '.', '&', 'V', '7', 'b', 137, 223, 129, 23, 158, 'x', 227, 145, 'W', 158, 'y', 231, 161, 151, 158, 'z', 235, 177, 215, 158, '{', 239, 193, 23, 159, '|', 243, 209, 'W', 159, '}', 247, 225, 151, 159, '~', 251, 241, 215, 159, 127, 255, 1, 24, 160, 128, 3, 18, 'X', 160, 129, 7, '"', 152, 160, 130, 11, '2', 216, 160, 131, 15, 'B', 24, 161, 132, 19, 'R', 'X', 161, 133, 23, 'b', 152, 161, 134, 27, 'r', 216, 161, 135, 'c', 'p', '1', '2', '5', '2', 0, 'w', 'i', 'n', 'd', 'o', 'w', 's', '1', '2', '5', '2', 0, 0, ' ', '$', 3, 'P', '1', ']', 24, 's', 156, 177, 198, '}', 'u', '\\', 149, 199, 'G', 1, ' ', 23, 0, 0, 'L', 'L', 177, 197, 23, 'o', 252, '0', 196, 130, 157, 'l', 213, 199, 'H', 1, '0', 'W', '[', 160, 132, '"', 202, '(', 164, 148, 'b', 202, ')', 168, 164, 162, 202, '*', 172, 180, 226, 202, '+', 176, 196, '"', 203, ',', 180, 212, 'b', 203, '-', 184, 228, 162, 203, '.', 188, 244, 226, 203, '/', 192, 4, '#', 204, '0', 196, 20, 'c', 204, '1', 200, '$', 163, 204, '2', 204, '4', 227, 204, '3', 208, 'D', '#', 205, '4', 212, 'T', 'c', 205, '5', 216, 'd', 163, 205, '6', 220, 't', 227, 205, '7', 224, 132, '#', 206, '8', 228, 148, 'c', 206, '9', 232, 164, 163, 206, ':', 236, 180, 227, 206, ';', 240, 196, '#', 207, '<', 244, 212, 'c', 207, '=', 248, 228, 163, 207, '>', 252, 244, 227, 207, '?', 'c', 'p', '1', '2', '5', '3', 0, 'w', 'i', 'n', 'd', 'o', 'w', 's', '1', '2', '5', '3', 0, 0, ' ', '$', 3, 'P', '1', ']', 24, 's', 156, 177, 198, 0, 't', 12, 128, 199, 0, 0, 0, 0, 0, 0, 'L', 'L', 177, 197, 23, 'o', 252, '0', 196, 0, 156, 12, 192, 199, 0, 0, 0, 0, 0, 160, ',', 198, 216, '(', 164, 148, 'b', 202, ')', 168, 164, 2, 192, '*', 172, 180, 226, 'J', 196, 176, 196, '"', 203, ',', 138, 213, 'b', 203, '-', 141, '9', 246, 216, '.', 144, 245, 18, 153, 'd', 147, 'Q', 'V', 153, 'e', 151, 'a', 150, 153, 'f', 155, 'q', 214, 153, 'g', 159, 129, 22, 154, 'h', 163, 145, 6, '@', 'i', 166, 157, 134, 'Z', 'j', 170, 173, 198, 'Z', 'k', 174, 189, 6, '[', 'l', 178, 205, 'F', '[', 'm', 182, 221, 134, '[', 'n', 186, 237, 198, '[', 'o', 190, 253, 6, '\\', 'p', 194, 13, 'G', '\\', 'q', 198, 29, 135, '\\', 'r', 202, '-', 199, '\\', 's', 206, '=', 7, 29, 0, 'c', 'p', '1', '2', '5', '4', 0, 'w', 'i', 'n', 'd', 'o', 'w', 's', '1', '2', '5', '4', 0, 0, ' ', '$', 3, 'P', '1', ']', 24, 's', 156, 177, 198, '}', 'u', '\\', 149, 199, 'G', 1, 0, 0, 0, 0, 'L', 'L', 177, 197, 23, 'o', 252, '0', 196, 130, 157, 'l', 213, 199, 'H', 1, 0, '@', '[', 160, 132, '"', 202, '(', 164, 148, 'b', 202, ')', 168, 164, 162, 202, '*', 172, 180, 226, 202, '+', 176, 196, '"', 203, ',', 180, 212, 'b', 203, '-', 184, 228, 162, 203, '.', 188, 244, 226, 203, '/', 192, 4, '#', 204, '0', 196, 20, 'c', 204, '1', 200, '$', 163, 204, '2', 204, '4', 227, 204, '3', 28, 'E', '#', 205, '4', 212, 'T', 'c', 205, '5', 216, 'd', 163, 205, '6', 220, 176, '4', 213, '7', 224, 132, '#', 206, '8', 228, 148, 'c', 206, '9', 232, 164, 163, 206, ':', 236, 180, 227, 206, ';', 29, 197, '#', 207, '<', 244, 212, 'c', 207, '=', 248, 228, 163, 207, '>', 252, 180, 'D', 213, '?', 'c', 'p', '1', '2', '5', '5', 0, 'w', 'i', 'n', 'd', 'o', 'w', 's', '1', '2', '5', '5', 0, 0, ' ', '$', 3, 'P', '1', ']', 24, 's', 156, 177, 198, '}', 'u', 12, 128, 199, 0, 0, 0, 0, 0, 0, 'L', 'L', 177, 197, 23, 'o', 252, '0', 196, 130, 157, 12, 192, 199, 0, 0, 0, 0, 0, 160, 132, '"', 202, '(', '"', 151, 'b', 202, ')', 168, 164, 'r', 205, '*', 172, 180, 226, 202, '+', 176, 196, '"', 203, ',', 180, 212, 'b', 203, '-', 184, 228, 'r', 207, '.', 188, 244, 226, 203, '/', '/', 194, 24, 163, 140, '3', 210, 'X', 163, 141, '7', 226, 8, '@', 142, ':', 238, 200, 'c', 143, '>', 254, 8, 'd', 144, ']', 'z', 249, '%', 152, 'a', 2, 0, 0, 0, 0, 0, 0, 0, 0, 'B', 14, 'I', 'd', 145, 'F', 30, 137, 'd', 146, 'J', '.', 201, 'd', 147, 'N', '>', 9, 'e', 148, 'R', 'N', 'I', 'e', 149, 'V', '^', 137, 'e', 150, 'Z', 'n', 201, '%', 0, 0, '4', 236, '0', 0, 'c', 'p', '1', '2', '5', '6', 0, 'w', 'i', 'n', 'd', 'o', 'w', 's', '1', '2', '5', '6', 0, 0, ' ', '$', 'O', 'Z', '1', ']', 24, 's', 156, 177, 198, '}', 'u', ',', 169, 199, 'G', 'Q', 'z', 'i', 165, 153, 'N', 'L', 177, 197, 23, 'o', 252, '0', 196, 152, 158, 'l', 233, 199, 'H', '-', 204, 176, 166, 160, 136, ')', 202, '(', 164, 148, 'b', 202, ')', 168, 164, 178, 233, '*', 172, 180, 226, 202, '+', 176, 196, '"', 203, ',', 180, 212, 'b', 203, '-', 184, 228, '2', 230, '.', 188, 244, 226, 11, 153, 156, 150, 'i', 230, 153, 'h', 166, 169, 230, 154, 'l', 182, 233, 230, 155, 'p', 198, ')', 231, 156, 't', 214, 'i', 231, 157, 'x', 230, 169, 231, '5', '{', 242, 217, 167, 159, 127, 2, 26, 168, 160, 224, 12, '*', 14, 161, 133, 26, 'z', 232, '9', 232, 164, 163, 206, ':', 136, '&', 234, 206, ';', 138, '.', 202, 'h', 163, 244, '8', 250, 232, '=', 144, 230, 19, 233, '>', 252, '4', 236, 'p', 167, 'c', 'p', '1', '2', '5', '7', 0, 'w', 'i', 'n', 'd', 'o', 'w', 's', '1', '2', '5', '7', 0, 0, ' ', '$', 3, 'P', '1', 0, 24, 's', 156, 177, 198, 0, 't', 12, 128, 199, 0, 160, 226, 23, '.', 0, 'L', 'L', 177, 197, 23, 'o', 252, '0', 196, 0, 156, 12, 192, 199, 0, 188, 18, 24, 0, 160, 0, ' ', 202, '(', 164, 0, '`', 202, ')', 216, 164, 178, 212, '*', 172, 180, 226, 138, '1', 176, 196, '"', 203, ',', 180, 212, 'b', 203, '-', 248, 228, 194, 212, '.', 188, 244, 226, 139, '9', 4, 169, 4, 144, 'A', 196, 20, 'c', 145, 'D', 12, '%', 227, 22, 'E', ' ', 193, 132, 'R', 'M', 'U', 237, 212, 211, '4', 'C', 'U', 'c', 205, '5', 'g', 229, 244, 212, 'W', 220, 192, '%', 215, '7', 5, 173, 20, 208, 'A', 228, 148, 's', 209, 'D', 13, 165, 243, 'V', 'E', '!', 197, 148, 146, 'M', 'V', 241, 228, 211, '<', 'D', 213, 'c', 207, '=', 'h', 233, 4, 21, 'X', 252, 196, '5', 23, '`', 'c', 'p', '1', '2', '5', '8', 0, 'w', 'i', 'n', 'd', 'o', 'w', 's', '1', '2', '5', '8', 0, 0, ' ', '$', 3, 'P', '1', ']', 24, 's', 156, 177, 198, '}', 'u', 12, 128, 199, 'G', 1, 0, 0, 0, 0, 'L', 'L', 177, 197, 23, 'o', 252, '0', 196, 130, 157, 12, 192, 199, 'H', 1, 0, '@', '[', 160, 132, '"', 202, '(', 164, 148, 'b', 202, ')', 168, 164, 162, 202, '*', 172, 180, 226, 202, '+', 176, 196, '"', 203, ',', 180, 212, 'b', 203, '-', 184, 228, 162, 203, '.', 188, 244, 226, 203, '/', 192, 4, '#', 140, '@', 196, 20, 'c', 204, '1', 200, '$', 163, 204, '2', 132, '5', 227, 204, '3', 16, 'E', 's', 216, '4', 212, 212, 'e', 205, '5', 216, 'd', 163, 205, '6', 220, 220, 'e', 216, '7', 224, 132, '#', 206, '@', 228, 148, 'c', 206, '9', 232, 164, 163, 206, ':', 133, 181, 227, 206, ';', 17, 197, 131, 216, '<', 244, 216, 'e', 207, '=', 248, 228, 163, 207, '>', 252, 224, '5', 242, '?', 'k', 'o', 'i', '8', 'r', 0, 0, ' ', '3', 211, '\\', 179, 205, '7', 227, 156, 179, 206, ';', 243, 220, 243, 214, '\\', 'w', 237, 245, 215, '`', 135, '-', 'v', 204, 'c', 163, 156, '2', 203, '.', 191, 12, 138, 204, 176, 200, 'r', 203, '=', '>', 255, 12, 244, 135, 'A', 11, '=', '4', 209, 'E', 27, '}', '4', 210, 'I', '+', 189, '4', 211, 'M', ';', 253, 't', 't', 'P', 'G', '-', 245, 212, 'T', 'W', 'm', 245, 213, 'X', 'g', 173, 'u', '*', 29, 254, 7, '`', 133, 3, 18, '8', 161, 128, 20, 30, 136, '`', 130, 10, '.', 200, '`', 131, 14, 'z', 248, ' ', 132, 17, 'J', 'X', '`', 128, 27, 'j', 'h', 224, 133, 28, 'b', 'h', 'a', 134, 253, '}', 7, '^', '}', 227, 145, '7', 159, 'x', 244, 157, 135, '^', 'z', 234, 173, 199, '^', '{', 238, 249, 247, 30, '|', 241, 201, 'W', '^', 'x', 251, 233, 'g', 222, '}', 252, 225, 'g', '_', '~', 'k', 'o', 'i', '8', 'u', 0, 0, ' ', '3', 211, '\\', 179, 205, '7', 227, 156, 179, 206, ';', 243, 220, 243, 214, '\\', 'w', 237, 245, 215, '`', 135, '-', 'v', 204, 'c', 163, 156, '2', 203, '.', 191, 12, 138, 204, 176, 200, 'r', 203, '=', '>', 255, 12, 244, 135, '"', 10, 'M', 'b', 137, 'E', 27, '}', '4', 210, 'I', 187, 184, '4', 211, 'M', ';', 253, 't', 't', 212, 'E', 'm', 221, 'u', 'T', 'W', 'm', 245, 213, 'X', 183, 168, 'u', '*', 29, 254, 7, '`', 133, 3, 18, '8', 161, 128, 20, 30, 136, '`', 130, 10, '.', 200, '`', 131, 14, 'z', 248, ' ', 132, 17, 'J', 'X', '`', 128, 27, 'j', 'h', 224, 133, 28, 'b', 'h', 'a', 134, 253, '}', 7, '^', '}', 227, 145, '7', 159, 'x', 244, 157, 135, '^', 'z', 234, 173, 199, '^', '{', 238, 249, 247, 30, '|', 241, 201, 'W', '^', 'x', 251, 233, 'g', 222, '}', 252, 225, 'g', '_', '~', 'c', 'p', '4', '3', '7', 0, 0, ' ', 199, 240, 147, 142, '8', 228, 128, 'S', 206, '9', 234, 172, 131, 206, ';', 238, 176, 'C', 'L', '1', 201, 152, 'c', 12, '=', 246, 200, 179, 'O', '>', 255, 'X', 195, 141, '(', 163, 148, 18, '2', ']', 225, 180, '3', 143, '>', 241, 'D', 163, 138, '.', 191, 192, 204, 'J', '/', 188, 132, 178, 202, '.', '`', 135, '-', '6', 205, ':', '?', 13, '5', 209, 'C', 'G', 253, 's', 209, 'K', '+', 157, 180, 205, '7', 243, 188, 's', 206, '3', 247, 204, 't', 211, 'H', 11, '}', '5', 213, 'N', 251, 172, 'u', 213, 'V', 'K', '=', 245, 209, 'F', 3, 29, 't', 214, 'X', 227, '\\', 's', 215, '\\', '{', 253, 245, 214, 179, '}', 'c', 153, 'p', 165, 21, 'W', 139, 'q', 168, 'm', 182, 154, 'm', '*', '#', 'w', 219, 202, '-', 199, 242, 178, 203, '1', 203, '|', 15, 203, 176, 160, '|', 'K', 202, ' ', 203, '2', '6', '(', 'c', 'p', '8', '5', '0', 0, 0, ' ', 199, 240, 147, 142, '8', 228, 128, 'S', 206, '9', 234, 172, 131, 206, ';', 238, 176, 'C', 'L', '1', 201, 152, 'c', 12, '=', 246, 200, 179, 'O', '>', 255, 'X', 195, 13, '>', 163, '`', 's', 13, ']', 225, 180, '3', 143, '>', 241, 'D', 163, 138, '.', 191, 184, 194, 'J', '/', 188, 132, 178, 202, '.', '`', 135, '-', '6', 205, ':', 7, '#', 12, '0', 169, 'D', 253, 's', 209, 'K', 139, 'R', 138, 205, '7', 243, 188, 's', 206, '3', 247, '<', 206, '0', 'H', 11, '}', '5', 213, 'N', 251, 172, '5', ')', 240, '@', 163, 204, '2', 200, 180, 212, 140, '3', 207, 224, '\\', 's', 215, '\\', 155, 194, 204, 214, 211, '|', 'C', 141, '4', 245, 'T', 'S', 139, '?', 222, 'h', 179, 'M', '6', 253, 't', 243, 10, '-', 173, 196, '"', 177, '/', 182, 156, 'r', 15, '.', 176, 160, 'r', 'K', '.', 179, 200, '2', '6', '(', 'c', 'p', '8', '6', '6', 0, 0, ' ', 223, 129, 23, 158, 'x', 227, 145, 'W', 158, 'y', 231, 161, 151, 158, 'z', 235, 177, 215, 158, '{', 239, 193, 23, 159, '|', 243, 209, 'W', 159, '}', 247, 225, 151, 159, '~', 251, 241, 215, 159, 127, 255, 1, 24, 160, 128, 3, 18, 'X', 160, 129, 7, '"', 152, 160, 130, 11, '2', 216, 160, 131, '`', 135, '-', '6', 205, ':', '?', 13, '5', 209, 'C', 'G', 253, 's', 209, 'K', '+', 157, 180, 205, '7', 243, 188, 's', 206, '3', 247, 204, 't', 211, 'H', 11, '}', '5', 213, 'N', 251, 172, 'u', 213, 'V', 'K', '=', 245, 209, 'F', 3, 29, 't', 214, 'X', 227, '\\', 's', 215, '\\', '{', 253, 245, 214, 15, 'B', 24, 161, 132, 19, 'R', 'X', 161, 133, 23, 'b', 152, 161, 134, 27, 'r', 216, 161, 135, 209, '}', 'H', 157, 136, 215, 149, 216, 221, 138, 176, 160, '|', 'K', 202, '&', 147, '2', '6', '(', 'i', 'b', 'm', '1', '0', '4', '7', 0, 'c', 'p', '1', '0', '4', '7', 0, 0, 1, 156, '$', '`', 200, 31, 151, '4', 226, 200, 2, 12, '4', 224, 192, 3, 16, 'D', ' ', 193, 4, 157, 20, 130, 192, '!', 24, 'd', ' ', 201, '#', 28, 't', 224, 193, 7, 128, 4, '"', 200, ' ', 132, '(', 'p', 193, 6, 136, '$', 162, 200, '"', 140, 20, '`', 192, 1, 144, 'D', 'b', 193, '$', 148, 'T', 'b', 9, 1, 152, 'd', 162, 201, '&', 20, 'T', 224, 137, 6, ' ', 128, '"', 14, '9', 224, 132, '3', 'N', '9', 231, 196, '#', 138, 11, '<', 160, 176, 2, 31, '&', 164, 163, 206, ':', 232, 180, 227, 206, ';', 236, '|', 19, 2, 9, '*', 164, 176, 131, 23, '-', 188, ' ', 12, '1', 192, 4, '3', 'L', '1', 199, 'D', 'c', 10, 11, '%', '|', 225, 195, 15, 248, '$', 163, 204, '2', 200, '4', 227, 204, '3', 204, 128, 161, 195, 8, '@', 156, 208, 131, 8, 216, 132, '!', 198, 24, 'd', 148, 'a', 198, 25, 'h', 164, 177, 202, '.', 240, 244, 227, 'O', ',', 176, 168, 177, 6, 27, 'm', 184, 241, 6, 28, 'q', 200, 161, 138, '.', 230, 224, 'b', 12, ')', 181, 248, '1', 7, 29, 'u', 216, 'q', 7, 30, 'y', 232, 17, 202, '/', 208, 'l', 225, 141, '+', 172, 140, 'R', 202, '-', 169, 156, 'b', 11, '/', 189, 248, 210, 13, '*', 175, 't', 'A', 203, '5', '{', 4, '!', 196, 16, 'D', 20, 'a', 196, 17, 'H', '$', 209, 10, '=', 246, 200, '3', 'O', '=', '}', '(', 177, 4, 19, 'M', '8', 241, 4, 20, 'Q', 'H', 145, 203, '>', 252, 228, 163, 207, '?', '\\', 220, '3', 5, 21, 'U', 'X', 'q', 5, 22, 'Y', 'h', '!', 11, '5', 214, 'H', '3', 'M', '5', '0', 196, ' ', 195, 12, '4', 212, '`', 195, 13, '8', 228, '0', 203, '6', 220, 'd', 163, 205, '\''} + +// C documentation +// +// /* Table of characters that appear in legacy 8-bit codepages, +// * limited to 1024 slots (10 bit indices). The first 256 entries +// * are elided since those characters are obviously all included. */ +var _legacy_chars = [612]uint16{ + 0: uint16(256), + 1: uint16(257), + 2: uint16(258), + 3: uint16(259), + 4: uint16(260), + 5: uint16(261), + 6: uint16(262), + 7: uint16(263), + 8: uint16(264), + 9: uint16(265), + 10: uint16(266), + 11: uint16(267), + 12: uint16(268), + 13: uint16(269), + 14: uint16(270), + 15: uint16(271), + 16: uint16(272), + 17: uint16(273), + 18: uint16(274), + 19: uint16(275), + 20: uint16(278), + 21: uint16(279), + 22: uint16(280), + 23: uint16(281), + 24: uint16(282), + 25: uint16(283), + 26: uint16(284), + 27: uint16(285), + 28: uint16(286), + 29: uint16(287), + 30: uint16(288), + 31: uint16(289), + 32: uint16(290), + 33: uint16(291), + 34: uint16(292), + 35: uint16(293), + 36: uint16(294), + 37: uint16(295), + 38: uint16(296), + 39: uint16(297), + 40: uint16(298), + 41: uint16(299), + 42: uint16(302), + 43: uint16(303), + 44: uint16(304), + 45: uint16(305), + 46: uint16(308), + 47: uint16(309), + 48: uint16(310), + 49: uint16(311), + 50: uint16(312), + 51: uint16(313), + 52: uint16(314), + 53: uint16(315), + 54: uint16(316), + 55: uint16(317), + 56: uint16(318), + 57: uint16(321), + 58: uint16(322), + 59: uint16(323), + 60: uint16(324), + 61: uint16(325), + 62: uint16(326), + 63: uint16(327), + 64: uint16(328), + 65: uint16(330), + 66: uint16(331), + 67: uint16(332), + 68: uint16(333), + 69: uint16(336), + 70: uint16(337), + 71: uint16(338), + 72: uint16(339), + 73: uint16(340), + 74: uint16(341), + 75: uint16(342), + 76: uint16(343), + 77: uint16(344), + 78: uint16(345), + 79: uint16(346), + 80: uint16(347), + 81: uint16(348), + 82: uint16(349), + 83: uint16(350), + 84: uint16(351), + 85: uint16(352), + 86: uint16(353), + 87: uint16(354), + 88: uint16(355), + 89: uint16(356), + 90: uint16(357), + 91: uint16(358), + 92: uint16(359), + 93: uint16(360), + 94: uint16(361), + 95: uint16(362), + 96: uint16(363), + 97: uint16(364), + 98: uint16(365), + 99: uint16(366), + 100: uint16(367), + 101: uint16(368), + 102: uint16(369), + 103: uint16(370), + 104: uint16(371), + 105: uint16(372), + 106: uint16(373), + 107: uint16(374), + 108: uint16(375), + 109: uint16(376), + 110: uint16(377), + 111: uint16(378), + 112: uint16(379), + 113: uint16(380), + 114: uint16(381), + 115: uint16(382), + 116: uint16(402), + 117: uint16(416), + 118: uint16(417), + 119: uint16(431), + 120: uint16(432), + 121: uint16(536), + 122: uint16(537), + 123: uint16(538), + 124: uint16(539), + 125: uint16(710), + 126: uint16(711), + 127: uint16(728), + 128: uint16(729), + 129: uint16(731), + 130: uint16(732), + 131: uint16(733), + 132: uint16(768), + 133: uint16(769), + 134: uint16(771), + 135: uint16(777), + 136: uint16(803), + 137: uint16(890), + 138: uint16(900), + 139: uint16(901), + 140: uint16(902), + 141: uint16(904), + 142: uint16(905), + 143: uint16(906), + 144: uint16(908), + 145: uint16(910), + 146: uint16(911), + 147: uint16(912), + 148: uint16(913), + 149: uint16(914), + 150: uint16(915), + 151: uint16(916), + 152: uint16(917), + 153: uint16(918), + 154: uint16(919), + 155: uint16(920), + 156: uint16(921), + 157: uint16(922), + 158: uint16(923), + 159: uint16(924), + 160: uint16(925), + 161: uint16(926), + 162: uint16(927), + 163: uint16(928), + 164: uint16(929), + 165: uint16(931), + 166: uint16(932), + 167: uint16(933), + 168: uint16(934), + 169: uint16(935), + 170: uint16(936), + 171: uint16(937), + 172: uint16(938), + 173: uint16(939), + 174: uint16(940), + 175: uint16(941), + 176: uint16(942), + 177: uint16(943), + 178: uint16(944), + 179: uint16(945), + 180: uint16(946), + 181: uint16(947), + 182: uint16(948), + 183: uint16(949), + 184: uint16(950), + 185: uint16(951), + 186: uint16(952), + 187: uint16(953), + 188: uint16(954), + 189: uint16(955), + 190: uint16(956), + 191: uint16(957), + 192: uint16(958), + 193: uint16(959), + 194: uint16(960), + 195: uint16(961), + 196: uint16(962), + 197: uint16(963), + 198: uint16(964), + 199: uint16(965), + 200: uint16(966), + 201: uint16(967), + 202: uint16(968), + 203: uint16(969), + 204: uint16(970), + 205: uint16(971), + 206: uint16(972), + 207: uint16(973), + 208: uint16(974), + 209: uint16(1025), + 210: uint16(1026), + 211: uint16(1027), + 212: uint16(1028), + 213: uint16(1029), + 214: uint16(1030), + 215: uint16(1031), + 216: uint16(1032), + 217: uint16(1033), + 218: uint16(1034), + 219: uint16(1035), + 220: uint16(1036), + 221: uint16(1038), + 222: uint16(1039), + 223: uint16(1040), + 224: uint16(1041), + 225: uint16(1042), + 226: uint16(1043), + 227: uint16(1044), + 228: uint16(1045), + 229: uint16(1046), + 230: uint16(1047), + 231: uint16(1048), + 232: uint16(1049), + 233: uint16(1050), + 234: uint16(1051), + 235: uint16(1052), + 236: uint16(1053), + 237: uint16(1054), + 238: uint16(1055), + 239: uint16(1056), + 240: uint16(1057), + 241: uint16(1058), + 242: uint16(1059), + 243: uint16(1060), + 244: uint16(1061), + 245: uint16(1062), + 246: uint16(1063), + 247: uint16(1064), + 248: uint16(1065), + 249: uint16(1066), + 250: uint16(1067), + 251: uint16(1068), + 252: uint16(1069), + 253: uint16(1070), + 254: uint16(1071), + 255: uint16(1072), + 256: uint16(1073), + 257: uint16(1074), + 258: uint16(1075), + 259: uint16(1076), + 260: uint16(1077), + 261: uint16(1078), + 262: uint16(1079), + 263: uint16(1080), + 264: uint16(1081), + 265: uint16(1082), + 266: uint16(1083), + 267: uint16(1084), + 268: uint16(1085), + 269: uint16(1086), + 270: uint16(1087), + 271: uint16(1088), + 272: uint16(1089), + 273: uint16(1090), + 274: uint16(1091), + 275: uint16(1092), + 276: uint16(1093), + 277: uint16(1094), + 278: uint16(1095), + 279: uint16(1096), + 280: uint16(1097), + 281: uint16(1098), + 282: uint16(1099), + 283: uint16(1100), + 284: uint16(1101), + 285: uint16(1102), + 286: uint16(1103), + 287: uint16(1105), + 288: uint16(1106), + 289: uint16(1107), + 290: uint16(1108), + 291: uint16(1109), + 292: uint16(1110), + 293: uint16(1111), + 294: uint16(1112), + 295: uint16(1113), + 296: uint16(1114), + 297: uint16(1115), + 298: uint16(1116), + 299: uint16(1118), + 300: uint16(1119), + 301: uint16(1168), + 302: uint16(1169), + 303: uint16(1456), + 304: uint16(1457), + 305: uint16(1458), + 306: uint16(1459), + 307: uint16(1460), + 308: uint16(1461), + 309: uint16(1462), + 310: uint16(1463), + 311: uint16(1464), + 312: uint16(1465), + 313: uint16(1467), + 314: uint16(1468), + 315: uint16(1469), + 316: uint16(1470), + 317: uint16(1471), + 318: uint16(1472), + 319: uint16(1473), + 320: uint16(1474), + 321: uint16(1475), + 322: uint16(1488), + 323: uint16(1489), + 324: uint16(1490), + 325: uint16(1491), + 326: uint16(1492), + 327: uint16(1493), + 328: uint16(1494), + 329: uint16(1495), + 330: uint16(1496), + 331: uint16(1497), + 332: uint16(1498), + 333: uint16(1499), + 334: uint16(1500), + 335: uint16(1501), + 336: uint16(1502), + 337: uint16(1503), + 338: uint16(1504), + 339: uint16(1505), + 340: uint16(1506), + 341: uint16(1507), + 342: uint16(1508), + 343: uint16(1509), + 344: uint16(1510), + 345: uint16(1511), + 346: uint16(1512), + 347: uint16(1513), + 348: uint16(1514), + 349: uint16(1520), + 350: uint16(1521), + 351: uint16(1522), + 352: uint16(1523), + 353: uint16(1524), + 354: uint16(1548), + 355: uint16(1563), + 356: uint16(1567), + 357: uint16(1569), + 358: uint16(1570), + 359: uint16(1571), + 360: uint16(1572), + 361: uint16(1573), + 362: uint16(1574), + 363: uint16(1575), + 364: uint16(1576), + 365: uint16(1577), + 366: uint16(1578), + 367: uint16(1579), + 368: uint16(1580), + 369: uint16(1581), + 370: uint16(1582), + 371: uint16(1583), + 372: uint16(1584), + 373: uint16(1585), + 374: uint16(1586), + 375: uint16(1587), + 376: uint16(1588), + 377: uint16(1589), + 378: uint16(1590), + 379: uint16(1591), + 380: uint16(1592), + 381: uint16(1593), + 382: uint16(1594), + 383: uint16(1600), + 384: uint16(1601), + 385: uint16(1602), + 386: uint16(1603), + 387: uint16(1604), + 388: uint16(1605), + 389: uint16(1606), + 390: uint16(1607), + 391: uint16(1608), + 392: uint16(1609), + 393: uint16(1610), + 394: uint16(1611), + 395: uint16(1612), + 396: uint16(1613), + 397: uint16(1614), + 398: uint16(1615), + 399: uint16(1616), + 400: uint16(1617), + 401: uint16(1618), + 402: uint16(1657), + 403: uint16(1662), + 404: uint16(1670), + 405: uint16(1672), + 406: uint16(1681), + 407: uint16(1688), + 408: uint16(1705), + 409: uint16(1711), + 410: uint16(1722), + 411: uint16(1726), + 412: uint16(1729), + 413: uint16(1746), + 414: uint16(3585), + 415: uint16(3586), + 416: uint16(3587), + 417: uint16(3588), + 418: uint16(3589), + 419: uint16(3590), + 420: uint16(3591), + 421: uint16(3592), + 422: uint16(3593), + 423: uint16(3594), + 424: uint16(3595), + 425: uint16(3596), + 426: uint16(3597), + 427: uint16(3598), + 428: uint16(3599), + 429: uint16(3600), + 430: uint16(3601), + 431: uint16(3602), + 432: uint16(3603), + 433: uint16(3604), + 434: uint16(3605), + 435: uint16(3606), + 436: uint16(3607), + 437: uint16(3608), + 438: uint16(3609), + 439: uint16(3610), + 440: uint16(3611), + 441: uint16(3612), + 442: uint16(3613), + 443: uint16(3614), + 444: uint16(3615), + 445: uint16(3616), + 446: uint16(3617), + 447: uint16(3618), + 448: uint16(3619), + 449: uint16(3620), + 450: uint16(3621), + 451: uint16(3622), + 452: uint16(3623), + 453: uint16(3624), + 454: uint16(3625), + 455: uint16(3626), + 456: uint16(3627), + 457: uint16(3628), + 458: uint16(3629), + 459: uint16(3630), + 460: uint16(3631), + 461: uint16(3632), + 462: uint16(3633), + 463: uint16(3634), + 464: uint16(3635), + 465: uint16(3636), + 466: uint16(3637), + 467: uint16(3638), + 468: uint16(3639), + 469: uint16(3640), + 470: uint16(3641), + 471: uint16(3642), + 472: uint16(3647), + 473: uint16(3648), + 474: uint16(3649), + 475: uint16(3650), + 476: uint16(3651), + 477: uint16(3652), + 478: uint16(3653), + 479: uint16(3654), + 480: uint16(3655), + 481: uint16(3656), + 482: uint16(3657), + 483: uint16(3658), + 484: uint16(3659), + 485: uint16(3660), + 486: uint16(3661), + 487: uint16(3662), + 488: uint16(3663), + 489: uint16(3664), + 490: uint16(3665), + 491: uint16(3666), + 492: uint16(3667), + 493: uint16(3668), + 494: uint16(3669), + 495: uint16(3670), + 496: uint16(3671), + 497: uint16(3672), + 498: uint16(3673), + 499: uint16(3674), + 500: uint16(3675), + 501: uint16(7682), + 502: uint16(7683), + 503: uint16(7690), + 504: uint16(7691), + 505: uint16(7710), + 506: uint16(7711), + 507: uint16(7744), + 508: uint16(7745), + 509: uint16(7766), + 510: uint16(7767), + 511: uint16(7776), + 512: uint16(7777), + 513: uint16(7786), + 514: uint16(7787), + 515: uint16(7808), + 516: uint16(7809), + 517: uint16(7810), + 518: uint16(7811), + 519: uint16(7812), + 520: uint16(7813), + 521: uint16(7922), + 522: uint16(7923), + 523: uint16(8204), + 524: uint16(8205), + 525: uint16(8206), + 526: uint16(8207), + 527: uint16(8211), + 528: uint16(8212), + 529: uint16(8213), + 530: uint16(8215), + 531: uint16(8216), + 532: uint16(8217), + 533: uint16(8218), + 534: uint16(8220), + 535: uint16(8221), + 536: uint16(8222), + 537: uint16(8224), + 538: uint16(8225), + 539: uint16(8226), + 540: uint16(8230), + 541: uint16(8240), + 542: uint16(8249), + 543: uint16(8250), + 544: uint16(8319), + 545: uint16(8359), + 546: uint16(8362), + 547: uint16(8363), + 548: uint16(8364), + 549: uint16(8367), + 550: uint16(8470), + 551: uint16(8482), + 552: uint16(8729), + 553: uint16(8730), + 554: uint16(8734), + 555: uint16(8745), + 556: uint16(8776), + 557: uint16(8801), + 558: uint16(8804), + 559: uint16(8805), + 560: uint16(8976), + 561: uint16(8992), + 562: uint16(8993), + 563: uint16(9472), + 564: uint16(9474), + 565: uint16(9484), + 566: uint16(9488), + 567: uint16(9492), + 568: uint16(9496), + 569: uint16(9500), + 570: uint16(9508), + 571: uint16(9516), + 572: uint16(9524), + 573: uint16(9532), + 574: uint16(9552), + 575: uint16(9553), + 576: uint16(9554), + 577: uint16(9555), + 578: uint16(9556), + 579: uint16(9557), + 580: uint16(9558), + 581: uint16(9559), + 582: uint16(9560), + 583: uint16(9561), + 584: uint16(9562), + 585: uint16(9563), + 586: uint16(9564), + 587: uint16(9565), + 588: uint16(9566), + 589: uint16(9567), + 590: uint16(9568), + 591: uint16(9569), + 592: uint16(9570), + 593: uint16(9571), + 594: uint16(9572), + 595: uint16(9573), + 596: uint16(9574), + 597: uint16(9575), + 598: uint16(9576), + 599: uint16(9577), + 600: uint16(9578), + 601: uint16(9579), + 602: uint16(9580), + 603: uint16(9600), + 604: uint16(9604), + 605: uint16(9608), + 606: uint16(9612), + 607: uint16(9616), + 608: uint16(9617), + 609: uint16(9618), + 610: uint16(9619), + 611: uint16(9632), +} + +var _jis0208 = [84][94]uint16{ + 0: { + 0: uint16(12288), + 1: uint16(12289), + 2: uint16(12290), + 3: uint16(65292), + 4: uint16(65294), + 5: uint16(12539), + 6: uint16(65306), + 7: uint16(65307), + 8: uint16(65311), + 9: uint16(65281), + 10: uint16(12443), + 11: uint16(12444), + 12: uint16(180), + 13: uint16(65344), + 14: uint16(168), + 15: uint16(65342), + 16: uint16(65507), + 17: uint16(65343), + 18: uint16(12541), + 19: uint16(12542), + 20: uint16(12445), + 21: uint16(12446), + 22: uint16(12291), + 23: uint16(20189), + 24: uint16(12293), + 25: uint16(12294), + 26: uint16(12295), + 27: uint16(12540), + 28: uint16(8213), + 29: uint16(8208), + 30: uint16(65295), + 31: uint16(92), + 32: uint16(12316), + 33: uint16(8214), + 34: uint16(65372), + 35: uint16(8230), + 36: uint16(8229), + 37: uint16(8216), + 38: uint16(8217), + 39: uint16(8220), + 40: uint16(8221), + 41: uint16(65288), + 42: uint16(65289), + 43: uint16(12308), + 44: uint16(12309), + 45: uint16(65339), + 46: uint16(65341), + 47: uint16(65371), + 48: uint16(65373), + 49: uint16(12296), + 50: uint16(12297), + 51: uint16(12298), + 52: uint16(12299), + 53: uint16(12300), + 54: uint16(12301), + 55: uint16(12302), + 56: uint16(12303), + 57: uint16(12304), + 58: uint16(12305), + 59: uint16(65291), + 60: uint16(8722), + 61: uint16(177), + 62: uint16(215), + 63: uint16(247), + 64: uint16(65309), + 65: uint16(8800), + 66: uint16(65308), + 67: uint16(65310), + 68: uint16(8806), + 69: uint16(8807), + 70: uint16(8734), + 71: uint16(8756), + 72: uint16(9794), + 73: uint16(9792), + 74: uint16(176), + 75: uint16(8242), + 76: uint16(8243), + 77: uint16(8451), + 78: uint16(65509), + 79: uint16(65284), + 80: uint16(162), + 81: uint16(163), + 82: uint16(65285), + 83: uint16(65283), + 84: uint16(65286), + 85: uint16(65290), + 86: uint16(65312), + 87: uint16(167), + 88: uint16(9734), + 89: uint16(9733), + 90: uint16(9675), + 91: uint16(9679), + 92: uint16(9678), + 93: uint16(9671), + }, + 1: { + 0: uint16(9670), + 1: uint16(9633), + 2: uint16(9632), + 3: uint16(9651), + 4: uint16(9650), + 5: uint16(9661), + 6: uint16(9660), + 7: uint16(8251), + 8: uint16(12306), + 9: uint16(8594), + 10: uint16(8592), + 11: uint16(8593), + 12: uint16(8595), + 13: uint16(12307), + 25: uint16(8712), + 26: uint16(8715), + 27: uint16(8838), + 28: uint16(8839), + 29: uint16(8834), + 30: uint16(8835), + 31: uint16(8746), + 32: uint16(8745), + 41: uint16(8743), + 42: uint16(8744), + 43: uint16(172), + 44: uint16(8658), + 45: uint16(8660), + 46: uint16(8704), + 47: uint16(8707), + 59: uint16(8736), + 60: uint16(8869), + 61: uint16(8978), + 62: uint16(8706), + 63: uint16(8711), + 64: uint16(8801), + 65: uint16(8786), + 66: uint16(8810), + 67: uint16(8811), + 68: uint16(8730), + 69: uint16(8765), + 70: uint16(8733), + 71: uint16(8757), + 72: uint16(8747), + 73: uint16(8748), + 81: uint16(8491), + 82: uint16(8240), + 83: uint16(9839), + 84: uint16(9837), + 85: uint16(9834), + 86: uint16(8224), + 87: uint16(8225), + 88: uint16(182), + 93: uint16(9711), + }, + 2: { + 15: uint16(65296), + 16: uint16(65297), + 17: uint16(65298), + 18: uint16(65299), + 19: uint16(65300), + 20: uint16(65301), + 21: uint16(65302), + 22: uint16(65303), + 23: uint16(65304), + 24: uint16(65305), + 32: uint16(65313), + 33: uint16(65314), + 34: uint16(65315), + 35: uint16(65316), + 36: uint16(65317), + 37: uint16(65318), + 38: uint16(65319), + 39: uint16(65320), + 40: uint16(65321), + 41: uint16(65322), + 42: uint16(65323), + 43: uint16(65324), + 44: uint16(65325), + 45: uint16(65326), + 46: uint16(65327), + 47: uint16(65328), + 48: uint16(65329), + 49: uint16(65330), + 50: uint16(65331), + 51: uint16(65332), + 52: uint16(65333), + 53: uint16(65334), + 54: uint16(65335), + 55: uint16(65336), + 56: uint16(65337), + 57: uint16(65338), + 64: uint16(65345), + 65: uint16(65346), + 66: uint16(65347), + 67: uint16(65348), + 68: uint16(65349), + 69: uint16(65350), + 70: uint16(65351), + 71: uint16(65352), + 72: uint16(65353), + 73: uint16(65354), + 74: uint16(65355), + 75: uint16(65356), + 76: uint16(65357), + 77: uint16(65358), + 78: uint16(65359), + 79: uint16(65360), + 80: uint16(65361), + 81: uint16(65362), + 82: uint16(65363), + 83: uint16(65364), + 84: uint16(65365), + 85: uint16(65366), + 86: uint16(65367), + 87: uint16(65368), + 88: uint16(65369), + 89: uint16(65370), + }, + 3: { + 0: uint16(12353), + 1: uint16(12354), + 2: uint16(12355), + 3: uint16(12356), + 4: uint16(12357), + 5: uint16(12358), + 6: uint16(12359), + 7: uint16(12360), + 8: uint16(12361), + 9: uint16(12362), + 10: uint16(12363), + 11: uint16(12364), + 12: uint16(12365), + 13: uint16(12366), + 14: uint16(12367), + 15: uint16(12368), + 16: uint16(12369), + 17: uint16(12370), + 18: uint16(12371), + 19: uint16(12372), + 20: uint16(12373), + 21: uint16(12374), + 22: uint16(12375), + 23: uint16(12376), + 24: uint16(12377), + 25: uint16(12378), + 26: uint16(12379), + 27: uint16(12380), + 28: uint16(12381), + 29: uint16(12382), + 30: uint16(12383), + 31: uint16(12384), + 32: uint16(12385), + 33: uint16(12386), + 34: uint16(12387), + 35: uint16(12388), + 36: uint16(12389), + 37: uint16(12390), + 38: uint16(12391), + 39: uint16(12392), + 40: uint16(12393), + 41: uint16(12394), + 42: uint16(12395), + 43: uint16(12396), + 44: uint16(12397), + 45: uint16(12398), + 46: uint16(12399), + 47: uint16(12400), + 48: uint16(12401), + 49: uint16(12402), + 50: uint16(12403), + 51: uint16(12404), + 52: uint16(12405), + 53: uint16(12406), + 54: uint16(12407), + 55: uint16(12408), + 56: uint16(12409), + 57: uint16(12410), + 58: uint16(12411), + 59: uint16(12412), + 60: uint16(12413), + 61: uint16(12414), + 62: uint16(12415), + 63: uint16(12416), + 64: uint16(12417), + 65: uint16(12418), + 66: uint16(12419), + 67: uint16(12420), + 68: uint16(12421), + 69: uint16(12422), + 70: uint16(12423), + 71: uint16(12424), + 72: uint16(12425), + 73: uint16(12426), + 74: uint16(12427), + 75: uint16(12428), + 76: uint16(12429), + 77: uint16(12430), + 78: uint16(12431), + 79: uint16(12432), + 80: uint16(12433), + 81: uint16(12434), + 82: uint16(12435), + }, + 4: { + 0: uint16(12449), + 1: uint16(12450), + 2: uint16(12451), + 3: uint16(12452), + 4: uint16(12453), + 5: uint16(12454), + 6: uint16(12455), + 7: uint16(12456), + 8: uint16(12457), + 9: uint16(12458), + 10: uint16(12459), + 11: uint16(12460), + 12: uint16(12461), + 13: uint16(12462), + 14: uint16(12463), + 15: uint16(12464), + 16: uint16(12465), + 17: uint16(12466), + 18: uint16(12467), + 19: uint16(12468), + 20: uint16(12469), + 21: uint16(12470), + 22: uint16(12471), + 23: uint16(12472), + 24: uint16(12473), + 25: uint16(12474), + 26: uint16(12475), + 27: uint16(12476), + 28: uint16(12477), + 29: uint16(12478), + 30: uint16(12479), + 31: uint16(12480), + 32: uint16(12481), + 33: uint16(12482), + 34: uint16(12483), + 35: uint16(12484), + 36: uint16(12485), + 37: uint16(12486), + 38: uint16(12487), + 39: uint16(12488), + 40: uint16(12489), + 41: uint16(12490), + 42: uint16(12491), + 43: uint16(12492), + 44: uint16(12493), + 45: uint16(12494), + 46: uint16(12495), + 47: uint16(12496), + 48: uint16(12497), + 49: uint16(12498), + 50: uint16(12499), + 51: uint16(12500), + 52: uint16(12501), + 53: uint16(12502), + 54: uint16(12503), + 55: uint16(12504), + 56: uint16(12505), + 57: uint16(12506), + 58: uint16(12507), + 59: uint16(12508), + 60: uint16(12509), + 61: uint16(12510), + 62: uint16(12511), + 63: uint16(12512), + 64: uint16(12513), + 65: uint16(12514), + 66: uint16(12515), + 67: uint16(12516), + 68: uint16(12517), + 69: uint16(12518), + 70: uint16(12519), + 71: uint16(12520), + 72: uint16(12521), + 73: uint16(12522), + 74: uint16(12523), + 75: uint16(12524), + 76: uint16(12525), + 77: uint16(12526), + 78: uint16(12527), + 79: uint16(12528), + 80: uint16(12529), + 81: uint16(12530), + 82: uint16(12531), + 83: uint16(12532), + 84: uint16(12533), + 85: uint16(12534), + }, + 5: { + 0: uint16(913), + 1: uint16(914), + 2: uint16(915), + 3: uint16(916), + 4: uint16(917), + 5: uint16(918), + 6: uint16(919), + 7: uint16(920), + 8: uint16(921), + 9: uint16(922), + 10: uint16(923), + 11: uint16(924), + 12: uint16(925), + 13: uint16(926), + 14: uint16(927), + 15: uint16(928), + 16: uint16(929), + 17: uint16(931), + 18: uint16(932), + 19: uint16(933), + 20: uint16(934), + 21: uint16(935), + 22: uint16(936), + 23: uint16(937), + 32: uint16(945), + 33: uint16(946), + 34: uint16(947), + 35: uint16(948), + 36: uint16(949), + 37: uint16(950), + 38: uint16(951), + 39: uint16(952), + 40: uint16(953), + 41: uint16(954), + 42: uint16(955), + 43: uint16(956), + 44: uint16(957), + 45: uint16(958), + 46: uint16(959), + 47: uint16(960), + 48: uint16(961), + 49: uint16(963), + 50: uint16(964), + 51: uint16(965), + 52: uint16(966), + 53: uint16(967), + 54: uint16(968), + 55: uint16(969), + }, + 6: { + 0: uint16(1040), + 1: uint16(1041), + 2: uint16(1042), + 3: uint16(1043), + 4: uint16(1044), + 5: uint16(1045), + 6: uint16(1025), + 7: uint16(1046), + 8: uint16(1047), + 9: uint16(1048), + 10: uint16(1049), + 11: uint16(1050), + 12: uint16(1051), + 13: uint16(1052), + 14: uint16(1053), + 15: uint16(1054), + 16: uint16(1055), + 17: uint16(1056), + 18: uint16(1057), + 19: uint16(1058), + 20: uint16(1059), + 21: uint16(1060), + 22: uint16(1061), + 23: uint16(1062), + 24: uint16(1063), + 25: uint16(1064), + 26: uint16(1065), + 27: uint16(1066), + 28: uint16(1067), + 29: uint16(1068), + 30: uint16(1069), + 31: uint16(1070), + 32: uint16(1071), + 48: uint16(1072), + 49: uint16(1073), + 50: uint16(1074), + 51: uint16(1075), + 52: uint16(1076), + 53: uint16(1077), + 54: uint16(1105), + 55: uint16(1078), + 56: uint16(1079), + 57: uint16(1080), + 58: uint16(1081), + 59: uint16(1082), + 60: uint16(1083), + 61: uint16(1084), + 62: uint16(1085), + 63: uint16(1086), + 64: uint16(1087), + 65: uint16(1088), + 66: uint16(1089), + 67: uint16(1090), + 68: uint16(1091), + 69: uint16(1092), + 70: uint16(1093), + 71: uint16(1094), + 72: uint16(1095), + 73: uint16(1096), + 74: uint16(1097), + 75: uint16(1098), + 76: uint16(1099), + 77: uint16(1100), + 78: uint16(1101), + 79: uint16(1102), + 80: uint16(1103), + }, + 7: { + 0: uint16(9472), + 1: uint16(9474), + 2: uint16(9484), + 3: uint16(9488), + 4: uint16(9496), + 5: uint16(9492), + 6: uint16(9500), + 7: uint16(9516), + 8: uint16(9508), + 9: uint16(9524), + 10: uint16(9532), + 11: uint16(9473), + 12: uint16(9475), + 13: uint16(9487), + 14: uint16(9491), + 15: uint16(9499), + 16: uint16(9495), + 17: uint16(9507), + 18: uint16(9523), + 19: uint16(9515), + 20: uint16(9531), + 21: uint16(9547), + 22: uint16(9504), + 23: uint16(9519), + 24: uint16(9512), + 25: uint16(9527), + 26: uint16(9535), + 27: uint16(9501), + 28: uint16(9520), + 29: uint16(9509), + 30: uint16(9528), + 31: uint16(9538), + }, + 8: {}, + 9: {}, + 10: {}, + 11: {}, + 12: {}, + 13: {}, + 14: {}, + 15: { + 0: uint16(20124), + 1: uint16(21782), + 2: uint16(23043), + 3: uint16(38463), + 4: uint16(21696), + 5: uint16(24859), + 6: uint16(25384), + 7: uint16(23030), + 8: uint16(36898), + 9: uint16(33909), + 10: uint16(33564), + 11: uint16(31312), + 12: uint16(24746), + 13: uint16(25569), + 14: uint16(28197), + 15: uint16(26093), + 16: uint16(33894), + 17: uint16(33446), + 18: uint16(39925), + 19: uint16(26771), + 20: uint16(22311), + 21: uint16(26017), + 22: uint16(25201), + 23: uint16(23451), + 24: uint16(22992), + 25: uint16(34427), + 26: uint16(39156), + 27: uint16(32098), + 28: uint16(32190), + 29: uint16(39822), + 30: uint16(25110), + 31: uint16(31903), + 32: uint16(34999), + 33: uint16(23433), + 34: uint16(24245), + 35: uint16(25353), + 36: uint16(26263), + 37: uint16(26696), + 38: uint16(38343), + 39: uint16(38797), + 40: uint16(26447), + 41: uint16(20197), + 42: uint16(20234), + 43: uint16(20301), + 44: uint16(20381), + 45: uint16(20553), + 46: uint16(22258), + 47: uint16(22839), + 48: uint16(22996), + 49: uint16(23041), + 50: uint16(23561), + 51: uint16(24799), + 52: uint16(24847), + 53: uint16(24944), + 54: uint16(26131), + 55: uint16(26885), + 56: uint16(28858), + 57: uint16(30031), + 58: uint16(30064), + 59: uint16(31227), + 60: uint16(32173), + 61: uint16(32239), + 62: uint16(32963), + 63: uint16(33806), + 64: uint16(34915), + 65: uint16(35586), + 66: uint16(36949), + 67: uint16(36986), + 68: uint16(21307), + 69: uint16(20117), + 70: uint16(20133), + 71: uint16(22495), + 72: uint16(32946), + 73: uint16(37057), + 74: uint16(30959), + 75: uint16(19968), + 76: uint16(22769), + 77: uint16(28322), + 78: uint16(36920), + 79: uint16(31282), + 80: uint16(33576), + 81: uint16(33419), + 82: uint16(39983), + 83: uint16(20801), + 84: uint16(21360), + 85: uint16(21693), + 86: uint16(21729), + 87: uint16(22240), + 88: uint16(23035), + 89: uint16(24341), + 90: uint16(39154), + 91: uint16(28139), + 92: uint16(32996), + 93: uint16(34093), + }, + 16: { + 0: uint16(38498), + 1: uint16(38512), + 2: uint16(38560), + 3: uint16(38907), + 4: uint16(21515), + 5: uint16(21491), + 6: uint16(23431), + 7: uint16(28879), + 8: uint16(32701), + 9: uint16(36802), + 10: uint16(38632), + 11: uint16(21359), + 12: uint16(40284), + 13: uint16(31418), + 14: uint16(19985), + 15: uint16(30867), + 16: uint16(33276), + 17: uint16(28198), + 18: uint16(22040), + 19: uint16(21764), + 20: uint16(27421), + 21: uint16(34074), + 22: uint16(39995), + 23: uint16(23013), + 24: uint16(21417), + 25: uint16(28006), + 26: uint16(29916), + 27: uint16(38287), + 28: uint16(22082), + 29: uint16(20113), + 30: uint16(36939), + 31: uint16(38642), + 32: uint16(33615), + 33: uint16(39180), + 34: uint16(21473), + 35: uint16(21942), + 36: uint16(23344), + 37: uint16(24433), + 38: uint16(26144), + 39: uint16(26355), + 40: uint16(26628), + 41: uint16(27704), + 42: uint16(27891), + 43: uint16(27945), + 44: uint16(29787), + 45: uint16(30408), + 46: uint16(31310), + 47: uint16(38964), + 48: uint16(33521), + 49: uint16(34907), + 50: uint16(35424), + 51: uint16(37613), + 52: uint16(28082), + 53: uint16(30123), + 54: uint16(30410), + 55: uint16(39365), + 56: uint16(24742), + 57: uint16(35585), + 58: uint16(36234), + 59: uint16(38322), + 60: uint16(27022), + 61: uint16(21421), + 62: uint16(20870), + 63: uint16(22290), + 64: uint16(22576), + 65: uint16(22852), + 66: uint16(23476), + 67: uint16(24310), + 68: uint16(24616), + 69: uint16(25513), + 70: uint16(25588), + 71: uint16(27839), + 72: uint16(28436), + 73: uint16(28814), + 74: uint16(28948), + 75: uint16(29017), + 76: uint16(29141), + 77: uint16(29503), + 78: uint16(32257), + 79: uint16(33398), + 80: uint16(33489), + 81: uint16(34199), + 82: uint16(36960), + 83: uint16(37467), + 84: uint16(40219), + 85: uint16(22633), + 86: uint16(26044), + 87: uint16(27738), + 88: uint16(29989), + 89: uint16(20985), + 90: uint16(22830), + 91: uint16(22885), + 92: uint16(24448), + 93: uint16(24540), + }, + 17: { + 0: uint16(25276), + 1: uint16(26106), + 2: uint16(27178), + 3: uint16(27431), + 4: uint16(27572), + 5: uint16(29579), + 6: uint16(32705), + 7: uint16(35158), + 8: uint16(40236), + 9: uint16(40206), + 10: uint16(40644), + 11: uint16(23713), + 12: uint16(27798), + 13: uint16(33659), + 14: uint16(20740), + 15: uint16(23627), + 16: uint16(25014), + 17: uint16(33222), + 18: uint16(26742), + 19: uint16(29281), + 20: uint16(20057), + 21: uint16(20474), + 22: uint16(21368), + 23: uint16(24681), + 24: uint16(28201), + 25: uint16(31311), + 26: uint16(38899), + 27: uint16(19979), + 28: uint16(21270), + 29: uint16(20206), + 30: uint16(20309), + 31: uint16(20285), + 32: uint16(20385), + 33: uint16(20339), + 34: uint16(21152), + 35: uint16(21487), + 36: uint16(22025), + 37: uint16(22799), + 38: uint16(23233), + 39: uint16(23478), + 40: uint16(23521), + 41: uint16(31185), + 42: uint16(26247), + 43: uint16(26524), + 44: uint16(26550), + 45: uint16(27468), + 46: uint16(27827), + 47: uint16(28779), + 48: uint16(29634), + 49: uint16(31117), + 50: uint16(31166), + 51: uint16(31292), + 52: uint16(31623), + 53: uint16(33457), + 54: uint16(33499), + 55: uint16(33540), + 56: uint16(33655), + 57: uint16(33775), + 58: uint16(33747), + 59: uint16(34662), + 60: uint16(35506), + 61: uint16(22057), + 62: uint16(36008), + 63: uint16(36838), + 64: uint16(36942), + 65: uint16(38686), + 66: uint16(34442), + 67: uint16(20420), + 68: uint16(23784), + 69: uint16(25105), + 70: uint16(29273), + 71: uint16(30011), + 72: uint16(33253), + 73: uint16(33469), + 74: uint16(34558), + 75: uint16(36032), + 76: uint16(38597), + 77: uint16(39187), + 78: uint16(39381), + 79: uint16(20171), + 80: uint16(20250), + 81: uint16(35299), + 82: uint16(22238), + 83: uint16(22602), + 84: uint16(22730), + 85: uint16(24315), + 86: uint16(24555), + 87: uint16(24618), + 88: uint16(24724), + 89: uint16(24674), + 90: uint16(25040), + 91: uint16(25106), + 92: uint16(25296), + 93: uint16(25913), + }, + 18: { + 0: uint16(39745), + 1: uint16(26214), + 2: uint16(26800), + 3: uint16(28023), + 4: uint16(28784), + 5: uint16(30028), + 6: uint16(30342), + 7: uint16(32117), + 8: uint16(33445), + 9: uint16(34809), + 10: uint16(38283), + 11: uint16(38542), + 12: uint16(35997), + 13: uint16(20977), + 14: uint16(21182), + 15: uint16(22806), + 16: uint16(21683), + 17: uint16(23475), + 18: uint16(23830), + 19: uint16(24936), + 20: uint16(27010), + 21: uint16(28079), + 22: uint16(30861), + 23: uint16(33995), + 24: uint16(34903), + 25: uint16(35442), + 26: uint16(37799), + 27: uint16(39608), + 28: uint16(28012), + 29: uint16(39336), + 30: uint16(34521), + 31: uint16(22435), + 32: uint16(26623), + 33: uint16(34510), + 34: uint16(37390), + 35: uint16(21123), + 36: uint16(22151), + 37: uint16(21508), + 38: uint16(24275), + 39: uint16(25313), + 40: uint16(25785), + 41: uint16(26684), + 42: uint16(26680), + 43: uint16(27579), + 44: uint16(29554), + 45: uint16(30906), + 46: uint16(31339), + 47: uint16(35226), + 48: uint16(35282), + 49: uint16(36203), + 50: uint16(36611), + 51: uint16(37101), + 52: uint16(38307), + 53: uint16(38548), + 54: uint16(38761), + 55: uint16(23398), + 56: uint16(23731), + 57: uint16(27005), + 58: uint16(38989), + 59: uint16(38990), + 60: uint16(25499), + 61: uint16(31520), + 62: uint16(27179), + 63: uint16(27263), + 64: uint16(26806), + 65: uint16(39949), + 66: uint16(28511), + 67: uint16(21106), + 68: uint16(21917), + 69: uint16(24688), + 70: uint16(25324), + 71: uint16(27963), + 72: uint16(28167), + 73: uint16(28369), + 74: uint16(33883), + 75: uint16(35088), + 76: uint16(36676), + 77: uint16(19988), + 78: uint16(39993), + 79: uint16(21494), + 80: uint16(26907), + 81: uint16(27194), + 82: uint16(38788), + 83: uint16(26666), + 84: uint16(20828), + 85: uint16(31427), + 86: uint16(33970), + 87: uint16(37340), + 88: uint16(37772), + 89: uint16(22107), + 90: uint16(40232), + 91: uint16(26658), + 92: uint16(33541), + 93: uint16(33841), + }, + 19: { + 0: uint16(31909), + 1: uint16(21000), + 2: uint16(33477), + 3: uint16(29926), + 4: uint16(20094), + 5: uint16(20355), + 6: uint16(20896), + 7: uint16(23506), + 8: uint16(21002), + 9: uint16(21208), + 10: uint16(21223), + 11: uint16(24059), + 12: uint16(21914), + 13: uint16(22570), + 14: uint16(23014), + 15: uint16(23436), + 16: uint16(23448), + 17: uint16(23515), + 18: uint16(24178), + 19: uint16(24185), + 20: uint16(24739), + 21: uint16(24863), + 22: uint16(24931), + 23: uint16(25022), + 24: uint16(25563), + 25: uint16(25954), + 26: uint16(26577), + 27: uint16(26707), + 28: uint16(26874), + 29: uint16(27454), + 30: uint16(27475), + 31: uint16(27735), + 32: uint16(28450), + 33: uint16(28567), + 34: uint16(28485), + 35: uint16(29872), + 36: uint16(29976), + 37: uint16(30435), + 38: uint16(30475), + 39: uint16(31487), + 40: uint16(31649), + 41: uint16(31777), + 42: uint16(32233), + 43: uint16(32566), + 44: uint16(32752), + 45: uint16(32925), + 46: uint16(33382), + 47: uint16(33694), + 48: uint16(35251), + 49: uint16(35532), + 50: uint16(36011), + 51: uint16(36996), + 52: uint16(37969), + 53: uint16(38291), + 54: uint16(38289), + 55: uint16(38306), + 56: uint16(38501), + 57: uint16(38867), + 58: uint16(39208), + 59: uint16(33304), + 60: uint16(20024), + 61: uint16(21547), + 62: uint16(23736), + 63: uint16(24012), + 64: uint16(29609), + 65: uint16(30284), + 66: uint16(30524), + 67: uint16(23721), + 68: uint16(32747), + 69: uint16(36107), + 70: uint16(38593), + 71: uint16(38929), + 72: uint16(38996), + 73: uint16(39000), + 74: uint16(20225), + 75: uint16(20238), + 76: uint16(21361), + 77: uint16(21916), + 78: uint16(22120), + 79: uint16(22522), + 80: uint16(22855), + 81: uint16(23305), + 82: uint16(23492), + 83: uint16(23696), + 84: uint16(24076), + 85: uint16(24190), + 86: uint16(24524), + 87: uint16(25582), + 88: uint16(26426), + 89: uint16(26071), + 90: uint16(26082), + 91: uint16(26399), + 92: uint16(26827), + 93: uint16(26820), + }, + 20: { + 0: uint16(27231), + 1: uint16(24112), + 2: uint16(27589), + 3: uint16(27671), + 4: uint16(27773), + 5: uint16(30079), + 6: uint16(31048), + 7: uint16(23395), + 8: uint16(31232), + 9: uint16(32000), + 10: uint16(24509), + 11: uint16(35215), + 12: uint16(35352), + 13: uint16(36020), + 14: uint16(36215), + 15: uint16(36556), + 16: uint16(36637), + 17: uint16(39138), + 18: uint16(39438), + 19: uint16(39740), + 20: uint16(20096), + 21: uint16(20605), + 22: uint16(20736), + 23: uint16(22931), + 24: uint16(23452), + 25: uint16(25135), + 26: uint16(25216), + 27: uint16(25836), + 28: uint16(27450), + 29: uint16(29344), + 30: uint16(30097), + 31: uint16(31047), + 32: uint16(32681), + 33: uint16(34811), + 34: uint16(35516), + 35: uint16(35696), + 36: uint16(25516), + 37: uint16(33738), + 38: uint16(38816), + 39: uint16(21513), + 40: uint16(21507), + 41: uint16(21931), + 42: uint16(26708), + 43: uint16(27224), + 44: uint16(35440), + 45: uint16(30759), + 46: uint16(26485), + 47: uint16(40653), + 48: uint16(21364), + 49: uint16(23458), + 50: uint16(33050), + 51: uint16(34384), + 52: uint16(36870), + 53: uint16(19992), + 54: uint16(20037), + 55: uint16(20167), + 56: uint16(20241), + 57: uint16(21450), + 58: uint16(21560), + 59: uint16(23470), + 60: uint16(24339), + 61: uint16(24613), + 62: uint16(25937), + 63: uint16(26429), + 64: uint16(27714), + 65: uint16(27762), + 66: uint16(27875), + 67: uint16(28792), + 68: uint16(29699), + 69: uint16(31350), + 70: uint16(31406), + 71: uint16(31496), + 72: uint16(32026), + 73: uint16(31998), + 74: uint16(32102), + 75: uint16(26087), + 76: uint16(29275), + 77: uint16(21435), + 78: uint16(23621), + 79: uint16(24040), + 80: uint16(25298), + 81: uint16(25312), + 82: uint16(25369), + 83: uint16(28192), + 84: uint16(34394), + 85: uint16(35377), + 86: uint16(36317), + 87: uint16(37624), + 88: uint16(28417), + 89: uint16(31142), + 90: uint16(39770), + 91: uint16(20136), + 92: uint16(20139), + 93: uint16(20140), + }, + 21: { + 0: uint16(20379), + 1: uint16(20384), + 2: uint16(20689), + 3: uint16(20807), + 4: uint16(31478), + 5: uint16(20849), + 6: uint16(20982), + 7: uint16(21332), + 8: uint16(21281), + 9: uint16(21375), + 10: uint16(21483), + 11: uint16(21932), + 12: uint16(22659), + 13: uint16(23777), + 14: uint16(24375), + 15: uint16(24394), + 16: uint16(24623), + 17: uint16(24656), + 18: uint16(24685), + 19: uint16(25375), + 20: uint16(25945), + 21: uint16(27211), + 22: uint16(27841), + 23: uint16(29378), + 24: uint16(29421), + 25: uint16(30703), + 26: uint16(33016), + 27: uint16(33029), + 28: uint16(33288), + 29: uint16(34126), + 30: uint16(37111), + 31: uint16(37857), + 32: uint16(38911), + 33: uint16(39255), + 34: uint16(39514), + 35: uint16(20208), + 36: uint16(20957), + 37: uint16(23597), + 38: uint16(26241), + 39: uint16(26989), + 40: uint16(23616), + 41: uint16(26354), + 42: uint16(26997), + 43: uint16(29577), + 44: uint16(26704), + 45: uint16(31873), + 46: uint16(20677), + 47: uint16(21220), + 48: uint16(22343), + 49: uint16(24062), + 50: uint16(37670), + 51: uint16(26020), + 52: uint16(27427), + 53: uint16(27453), + 54: uint16(29748), + 55: uint16(31105), + 56: uint16(31165), + 57: uint16(31563), + 58: uint16(32202), + 59: uint16(33465), + 60: uint16(33740), + 61: uint16(34943), + 62: uint16(35167), + 63: uint16(35641), + 64: uint16(36817), + 65: uint16(37329), + 66: uint16(21535), + 67: uint16(37504), + 68: uint16(20061), + 69: uint16(20534), + 70: uint16(21477), + 71: uint16(21306), + 72: uint16(29399), + 73: uint16(29590), + 74: uint16(30697), + 75: uint16(33510), + 76: uint16(36527), + 77: uint16(39366), + 78: uint16(39368), + 79: uint16(39378), + 80: uint16(20855), + 81: uint16(24858), + 82: uint16(34398), + 83: uint16(21936), + 84: uint16(31354), + 85: uint16(20598), + 86: uint16(23507), + 87: uint16(36935), + 88: uint16(38533), + 89: uint16(20018), + 90: uint16(27355), + 91: uint16(37351), + 92: uint16(23633), + 93: uint16(23624), + }, + 22: { + 0: uint16(25496), + 1: uint16(31391), + 2: uint16(27795), + 3: uint16(38772), + 4: uint16(36705), + 5: uint16(31402), + 6: uint16(29066), + 7: uint16(38536), + 8: uint16(31874), + 9: uint16(26647), + 10: uint16(32368), + 11: uint16(26705), + 12: uint16(37740), + 13: uint16(21234), + 14: uint16(21531), + 15: uint16(34219), + 16: uint16(35347), + 17: uint16(32676), + 18: uint16(36557), + 19: uint16(37089), + 20: uint16(21350), + 21: uint16(34952), + 22: uint16(31041), + 23: uint16(20418), + 24: uint16(20670), + 25: uint16(21009), + 26: uint16(20804), + 27: uint16(21843), + 28: uint16(22317), + 29: uint16(29674), + 30: uint16(22411), + 31: uint16(22865), + 32: uint16(24418), + 33: uint16(24452), + 34: uint16(24693), + 35: uint16(24950), + 36: uint16(24935), + 37: uint16(25001), + 38: uint16(25522), + 39: uint16(25658), + 40: uint16(25964), + 41: uint16(26223), + 42: uint16(26690), + 43: uint16(28179), + 44: uint16(30054), + 45: uint16(31293), + 46: uint16(31995), + 47: uint16(32076), + 48: uint16(32153), + 49: uint16(32331), + 50: uint16(32619), + 51: uint16(33550), + 52: uint16(33610), + 53: uint16(34509), + 54: uint16(35336), + 55: uint16(35427), + 56: uint16(35686), + 57: uint16(36605), + 58: uint16(38938), + 59: uint16(40335), + 60: uint16(33464), + 61: uint16(36814), + 62: uint16(39912), + 63: uint16(21127), + 64: uint16(25119), + 65: uint16(25731), + 66: uint16(28608), + 67: uint16(38553), + 68: uint16(26689), + 69: uint16(20625), + 70: uint16(27424), + 71: uint16(27770), + 72: uint16(28500), + 73: uint16(31348), + 74: uint16(32080), + 75: uint16(34880), + 76: uint16(35363), + 77: uint16(26376), + 78: uint16(20214), + 79: uint16(20537), + 80: uint16(20518), + 81: uint16(20581), + 82: uint16(20860), + 83: uint16(21048), + 84: uint16(21091), + 85: uint16(21927), + 86: uint16(22287), + 87: uint16(22533), + 88: uint16(23244), + 89: uint16(24314), + 90: uint16(25010), + 91: uint16(25080), + 92: uint16(25331), + 93: uint16(25458), + }, + 23: { + 0: uint16(26908), + 1: uint16(27177), + 2: uint16(29309), + 3: uint16(29356), + 4: uint16(29486), + 5: uint16(30740), + 6: uint16(30831), + 7: uint16(32121), + 8: uint16(30476), + 9: uint16(32937), + 10: uint16(35211), + 11: uint16(35609), + 12: uint16(36066), + 13: uint16(36562), + 14: uint16(36963), + 15: uint16(37749), + 16: uint16(38522), + 17: uint16(38997), + 18: uint16(39443), + 19: uint16(40568), + 20: uint16(20803), + 21: uint16(21407), + 22: uint16(21427), + 23: uint16(24187), + 24: uint16(24358), + 25: uint16(28187), + 26: uint16(28304), + 27: uint16(29572), + 28: uint16(29694), + 29: uint16(32067), + 30: uint16(33335), + 31: uint16(35328), + 32: uint16(35578), + 33: uint16(38480), + 34: uint16(20046), + 35: uint16(20491), + 36: uint16(21476), + 37: uint16(21628), + 38: uint16(22266), + 39: uint16(22993), + 40: uint16(23396), + 41: uint16(24049), + 42: uint16(24235), + 43: uint16(24359), + 44: uint16(25144), + 45: uint16(25925), + 46: uint16(26543), + 47: uint16(28246), + 48: uint16(29392), + 49: uint16(31946), + 50: uint16(34996), + 51: uint16(32929), + 52: uint16(32993), + 53: uint16(33776), + 54: uint16(34382), + 55: uint16(35463), + 56: uint16(36328), + 57: uint16(37431), + 58: uint16(38599), + 59: uint16(39015), + 60: uint16(40723), + 61: uint16(20116), + 62: uint16(20114), + 63: uint16(20237), + 64: uint16(21320), + 65: uint16(21577), + 66: uint16(21566), + 67: uint16(23087), + 68: uint16(24460), + 69: uint16(24481), + 70: uint16(24735), + 71: uint16(26791), + 72: uint16(27278), + 73: uint16(29786), + 74: uint16(30849), + 75: uint16(35486), + 76: uint16(35492), + 77: uint16(35703), + 78: uint16(37264), + 79: uint16(20062), + 80: uint16(39881), + 81: uint16(20132), + 82: uint16(20348), + 83: uint16(20399), + 84: uint16(20505), + 85: uint16(20502), + 86: uint16(20809), + 87: uint16(20844), + 88: uint16(21151), + 89: uint16(21177), + 90: uint16(21246), + 91: uint16(21402), + 92: uint16(21475), + 93: uint16(21521), + }, + 24: { + 0: uint16(21518), + 1: uint16(21897), + 2: uint16(22353), + 3: uint16(22434), + 4: uint16(22909), + 5: uint16(23380), + 6: uint16(23389), + 7: uint16(23439), + 8: uint16(24037), + 9: uint16(24039), + 10: uint16(24055), + 11: uint16(24184), + 12: uint16(24195), + 13: uint16(24218), + 14: uint16(24247), + 15: uint16(24344), + 16: uint16(24658), + 17: uint16(24908), + 18: uint16(25239), + 19: uint16(25304), + 20: uint16(25511), + 21: uint16(25915), + 22: uint16(26114), + 23: uint16(26179), + 24: uint16(26356), + 25: uint16(26477), + 26: uint16(26657), + 27: uint16(26775), + 28: uint16(27083), + 29: uint16(27743), + 30: uint16(27946), + 31: uint16(28009), + 32: uint16(28207), + 33: uint16(28317), + 34: uint16(30002), + 35: uint16(30343), + 36: uint16(30828), + 37: uint16(31295), + 38: uint16(31968), + 39: uint16(32005), + 40: uint16(32024), + 41: uint16(32094), + 42: uint16(32177), + 43: uint16(32789), + 44: uint16(32771), + 45: uint16(32943), + 46: uint16(32945), + 47: uint16(33108), + 48: uint16(33167), + 49: uint16(33322), + 50: uint16(33618), + 51: uint16(34892), + 52: uint16(34913), + 53: uint16(35611), + 54: uint16(36002), + 55: uint16(36092), + 56: uint16(37066), + 57: uint16(37237), + 58: uint16(37489), + 59: uint16(30783), + 60: uint16(37628), + 61: uint16(38308), + 62: uint16(38477), + 63: uint16(38917), + 64: uint16(39321), + 65: uint16(39640), + 66: uint16(40251), + 67: uint16(21083), + 68: uint16(21163), + 69: uint16(21495), + 70: uint16(21512), + 71: uint16(22741), + 72: uint16(25335), + 73: uint16(28640), + 74: uint16(35946), + 75: uint16(36703), + 76: uint16(40633), + 77: uint16(20811), + 78: uint16(21051), + 79: uint16(21578), + 80: uint16(22269), + 81: uint16(31296), + 82: uint16(37239), + 83: uint16(40288), + 84: uint16(40658), + 85: uint16(29508), + 86: uint16(28425), + 87: uint16(33136), + 88: uint16(29969), + 89: uint16(24573), + 90: uint16(24794), + 91: uint16(39592), + 92: uint16(29403), + 93: uint16(36796), + }, + 25: { + 0: uint16(27492), + 1: uint16(38915), + 2: uint16(20170), + 3: uint16(22256), + 4: uint16(22372), + 5: uint16(22718), + 6: uint16(23130), + 7: uint16(24680), + 8: uint16(25031), + 9: uint16(26127), + 10: uint16(26118), + 11: uint16(26681), + 12: uint16(26801), + 13: uint16(28151), + 14: uint16(30165), + 15: uint16(32058), + 16: uint16(33390), + 17: uint16(39746), + 18: uint16(20123), + 19: uint16(20304), + 20: uint16(21449), + 21: uint16(21766), + 22: uint16(23919), + 23: uint16(24038), + 24: uint16(24046), + 25: uint16(26619), + 26: uint16(27801), + 27: uint16(29811), + 28: uint16(30722), + 29: uint16(35408), + 30: uint16(37782), + 31: uint16(35039), + 32: uint16(22352), + 33: uint16(24231), + 34: uint16(25387), + 35: uint16(20661), + 36: uint16(20652), + 37: uint16(20877), + 38: uint16(26368), + 39: uint16(21705), + 40: uint16(22622), + 41: uint16(22971), + 42: uint16(23472), + 43: uint16(24425), + 44: uint16(25165), + 45: uint16(25505), + 46: uint16(26685), + 47: uint16(27507), + 48: uint16(28168), + 49: uint16(28797), + 50: uint16(37319), + 51: uint16(29312), + 52: uint16(30741), + 53: uint16(30758), + 54: uint16(31085), + 55: uint16(25998), + 56: uint16(32048), + 57: uint16(33756), + 58: uint16(35009), + 59: uint16(36617), + 60: uint16(38555), + 61: uint16(21092), + 62: uint16(22312), + 63: uint16(26448), + 64: uint16(32618), + 65: uint16(36001), + 66: uint16(20916), + 67: uint16(22338), + 68: uint16(38442), + 69: uint16(22586), + 70: uint16(27018), + 71: uint16(32948), + 72: uint16(21682), + 73: uint16(23822), + 74: uint16(22524), + 75: uint16(30869), + 76: uint16(40442), + 77: uint16(20316), + 78: uint16(21066), + 79: uint16(21643), + 80: uint16(25662), + 81: uint16(26152), + 82: uint16(26388), + 83: uint16(26613), + 84: uint16(31364), + 85: uint16(31574), + 86: uint16(32034), + 87: uint16(37679), + 88: uint16(26716), + 89: uint16(39853), + 90: uint16(31545), + 91: uint16(21273), + 92: uint16(20874), + 93: uint16(21047), + }, + 26: { + 0: uint16(23519), + 1: uint16(25334), + 2: uint16(25774), + 3: uint16(25830), + 4: uint16(26413), + 5: uint16(27578), + 6: uint16(34217), + 7: uint16(38609), + 8: uint16(30352), + 9: uint16(39894), + 10: uint16(25420), + 11: uint16(37638), + 12: uint16(39851), + 13: uint16(30399), + 14: uint16(26194), + 15: uint16(19977), + 16: uint16(20632), + 17: uint16(21442), + 18: uint16(23665), + 19: uint16(24808), + 20: uint16(25746), + 21: uint16(25955), + 22: uint16(26719), + 23: uint16(29158), + 24: uint16(29642), + 25: uint16(29987), + 26: uint16(31639), + 27: uint16(32386), + 28: uint16(34453), + 29: uint16(35715), + 30: uint16(36059), + 31: uint16(37240), + 32: uint16(39184), + 33: uint16(26028), + 34: uint16(26283), + 35: uint16(27531), + 36: uint16(20181), + 37: uint16(20180), + 38: uint16(20282), + 39: uint16(20351), + 40: uint16(21050), + 41: uint16(21496), + 42: uint16(21490), + 43: uint16(21987), + 44: uint16(22235), + 45: uint16(22763), + 46: uint16(22987), + 47: uint16(22985), + 48: uint16(23039), + 49: uint16(23376), + 50: uint16(23629), + 51: uint16(24066), + 52: uint16(24107), + 53: uint16(24535), + 54: uint16(24605), + 55: uint16(25351), + 56: uint16(25903), + 57: uint16(23388), + 58: uint16(26031), + 59: uint16(26045), + 60: uint16(26088), + 61: uint16(26525), + 62: uint16(27490), + 63: uint16(27515), + 64: uint16(27663), + 65: uint16(29509), + 66: uint16(31049), + 67: uint16(31169), + 68: uint16(31992), + 69: uint16(32025), + 70: uint16(32043), + 71: uint16(32930), + 72: uint16(33026), + 73: uint16(33267), + 74: uint16(35222), + 75: uint16(35422), + 76: uint16(35433), + 77: uint16(35430), + 78: uint16(35468), + 79: uint16(35566), + 80: uint16(36039), + 81: uint16(36060), + 82: uint16(38604), + 83: uint16(39164), + 84: uint16(27503), + 85: uint16(20107), + 86: uint16(20284), + 87: uint16(20365), + 88: uint16(20816), + 89: uint16(23383), + 90: uint16(23546), + 91: uint16(24904), + 92: uint16(25345), + 93: uint16(26178), + }, + 27: { + 0: uint16(27425), + 1: uint16(28363), + 2: uint16(27835), + 3: uint16(29246), + 4: uint16(29885), + 5: uint16(30164), + 6: uint16(30913), + 7: uint16(31034), + 8: uint16(32780), + 9: uint16(32819), + 10: uint16(33258), + 11: uint16(33940), + 12: uint16(36766), + 13: uint16(27728), + 14: uint16(40575), + 15: uint16(24335), + 16: uint16(35672), + 17: uint16(40235), + 18: uint16(31482), + 19: uint16(36600), + 20: uint16(23437), + 21: uint16(38635), + 22: uint16(19971), + 23: uint16(21489), + 24: uint16(22519), + 25: uint16(22833), + 26: uint16(23241), + 27: uint16(23460), + 28: uint16(24713), + 29: uint16(28287), + 30: uint16(28422), + 31: uint16(30142), + 32: uint16(36074), + 33: uint16(23455), + 34: uint16(34048), + 35: uint16(31712), + 36: uint16(20594), + 37: uint16(26612), + 38: uint16(33437), + 39: uint16(23649), + 40: uint16(34122), + 41: uint16(32286), + 42: uint16(33294), + 43: uint16(20889), + 44: uint16(23556), + 45: uint16(25448), + 46: uint16(36198), + 47: uint16(26012), + 48: uint16(29038), + 49: uint16(31038), + 50: uint16(32023), + 51: uint16(32773), + 52: uint16(35613), + 53: uint16(36554), + 54: uint16(36974), + 55: uint16(34503), + 56: uint16(37034), + 57: uint16(20511), + 58: uint16(21242), + 59: uint16(23610), + 60: uint16(26451), + 61: uint16(28796), + 62: uint16(29237), + 63: uint16(37196), + 64: uint16(37320), + 65: uint16(37675), + 66: uint16(33509), + 67: uint16(23490), + 68: uint16(24369), + 69: uint16(24825), + 70: uint16(20027), + 71: uint16(21462), + 72: uint16(23432), + 73: uint16(25163), + 74: uint16(26417), + 75: uint16(27530), + 76: uint16(29417), + 77: uint16(29664), + 78: uint16(31278), + 79: uint16(33131), + 80: uint16(36259), + 81: uint16(37202), + 82: uint16(39318), + 83: uint16(20754), + 84: uint16(21463), + 85: uint16(21610), + 86: uint16(23551), + 87: uint16(25480), + 88: uint16(27193), + 89: uint16(32172), + 90: uint16(38656), + 91: uint16(22234), + 92: uint16(21454), + 93: uint16(21608), + }, + 28: { + 0: uint16(23447), + 1: uint16(23601), + 2: uint16(24030), + 3: uint16(20462), + 4: uint16(24833), + 5: uint16(25342), + 6: uint16(27954), + 7: uint16(31168), + 8: uint16(31179), + 9: uint16(32066), + 10: uint16(32333), + 11: uint16(32722), + 12: uint16(33261), + 13: uint16(33311), + 14: uint16(33936), + 15: uint16(34886), + 16: uint16(35186), + 17: uint16(35728), + 18: uint16(36468), + 19: uint16(36655), + 20: uint16(36913), + 21: uint16(37195), + 22: uint16(37228), + 23: uint16(38598), + 24: uint16(37276), + 25: uint16(20160), + 26: uint16(20303), + 27: uint16(20805), + 28: uint16(21313), + 29: uint16(24467), + 30: uint16(25102), + 31: uint16(26580), + 32: uint16(27713), + 33: uint16(28171), + 34: uint16(29539), + 35: uint16(32294), + 36: uint16(37325), + 37: uint16(37507), + 38: uint16(21460), + 39: uint16(22809), + 40: uint16(23487), + 41: uint16(28113), + 42: uint16(31069), + 43: uint16(32302), + 44: uint16(31899), + 45: uint16(22654), + 46: uint16(29087), + 47: uint16(20986), + 48: uint16(34899), + 49: uint16(36848), + 50: uint16(20426), + 51: uint16(23803), + 52: uint16(26149), + 53: uint16(30636), + 54: uint16(31459), + 55: uint16(33308), + 56: uint16(39423), + 57: uint16(20934), + 58: uint16(24490), + 59: uint16(26092), + 60: uint16(26991), + 61: uint16(27529), + 62: uint16(28147), + 63: uint16(28310), + 64: uint16(28516), + 65: uint16(30462), + 66: uint16(32020), + 67: uint16(24033), + 68: uint16(36981), + 69: uint16(37255), + 70: uint16(38918), + 71: uint16(20966), + 72: uint16(21021), + 73: uint16(25152), + 74: uint16(26257), + 75: uint16(26329), + 76: uint16(28186), + 77: uint16(24246), + 78: uint16(32210), + 79: uint16(32626), + 80: uint16(26360), + 81: uint16(34223), + 82: uint16(34295), + 83: uint16(35576), + 84: uint16(21161), + 85: uint16(21465), + 86: uint16(22899), + 87: uint16(24207), + 88: uint16(24464), + 89: uint16(24661), + 90: uint16(37604), + 91: uint16(38500), + 92: uint16(20663), + 93: uint16(20767), + }, + 29: { + 0: uint16(21213), + 1: uint16(21280), + 2: uint16(21319), + 3: uint16(21484), + 4: uint16(21736), + 5: uint16(21830), + 6: uint16(21809), + 7: uint16(22039), + 8: uint16(22888), + 9: uint16(22974), + 10: uint16(23100), + 11: uint16(23477), + 12: uint16(23558), + 13: uint16(23567), + 14: uint16(23569), + 15: uint16(23578), + 16: uint16(24196), + 17: uint16(24202), + 18: uint16(24288), + 19: uint16(24432), + 20: uint16(25215), + 21: uint16(25220), + 22: uint16(25307), + 23: uint16(25484), + 24: uint16(25463), + 25: uint16(26119), + 26: uint16(26124), + 27: uint16(26157), + 28: uint16(26230), + 29: uint16(26494), + 30: uint16(26786), + 31: uint16(27167), + 32: uint16(27189), + 33: uint16(27836), + 34: uint16(28040), + 35: uint16(28169), + 36: uint16(28248), + 37: uint16(28988), + 38: uint16(28966), + 39: uint16(29031), + 40: uint16(30151), + 41: uint16(30465), + 42: uint16(30813), + 43: uint16(30977), + 44: uint16(31077), + 45: uint16(31216), + 46: uint16(31456), + 47: uint16(31505), + 48: uint16(31911), + 49: uint16(32057), + 50: uint16(32918), + 51: uint16(33750), + 52: uint16(33931), + 53: uint16(34121), + 54: uint16(34909), + 55: uint16(35059), + 56: uint16(35359), + 57: uint16(35388), + 58: uint16(35412), + 59: uint16(35443), + 60: uint16(35937), + 61: uint16(36062), + 62: uint16(37284), + 63: uint16(37478), + 64: uint16(37758), + 65: uint16(37912), + 66: uint16(38556), + 67: uint16(38808), + 68: uint16(19978), + 69: uint16(19976), + 70: uint16(19998), + 71: uint16(20055), + 72: uint16(20887), + 73: uint16(21104), + 74: uint16(22478), + 75: uint16(22580), + 76: uint16(22732), + 77: uint16(23330), + 78: uint16(24120), + 79: uint16(24773), + 80: uint16(25854), + 81: uint16(26465), + 82: uint16(26454), + 83: uint16(27972), + 84: uint16(29366), + 85: uint16(30067), + 86: uint16(31331), + 87: uint16(33976), + 88: uint16(35698), + 89: uint16(37304), + 90: uint16(37664), + 91: uint16(22065), + 92: uint16(22516), + 93: uint16(39166), + }, + 30: { + 0: uint16(25325), + 1: uint16(26893), + 2: uint16(27542), + 3: uint16(29165), + 4: uint16(32340), + 5: uint16(32887), + 6: uint16(33394), + 7: uint16(35302), + 8: uint16(39135), + 9: uint16(34645), + 10: uint16(36785), + 11: uint16(23611), + 12: uint16(20280), + 13: uint16(20449), + 14: uint16(20405), + 15: uint16(21767), + 16: uint16(23072), + 17: uint16(23517), + 18: uint16(23529), + 19: uint16(24515), + 20: uint16(24910), + 21: uint16(25391), + 22: uint16(26032), + 23: uint16(26187), + 24: uint16(26862), + 25: uint16(27035), + 26: uint16(28024), + 27: uint16(28145), + 28: uint16(30003), + 29: uint16(30137), + 30: uint16(30495), + 31: uint16(31070), + 32: uint16(31206), + 33: uint16(32051), + 34: uint16(33251), + 35: uint16(33455), + 36: uint16(34218), + 37: uint16(35242), + 38: uint16(35386), + 39: uint16(36523), + 40: uint16(36763), + 41: uint16(36914), + 42: uint16(37341), + 43: uint16(38663), + 44: uint16(20154), + 45: uint16(20161), + 46: uint16(20995), + 47: uint16(22645), + 48: uint16(22764), + 49: uint16(23563), + 50: uint16(29978), + 51: uint16(23613), + 52: uint16(33102), + 53: uint16(35338), + 54: uint16(36805), + 55: uint16(38499), + 56: uint16(38765), + 57: uint16(31525), + 58: uint16(35535), + 59: uint16(38920), + 60: uint16(37218), + 61: uint16(22259), + 62: uint16(21416), + 63: uint16(36887), + 64: uint16(21561), + 65: uint16(22402), + 66: uint16(24101), + 67: uint16(25512), + 68: uint16(27700), + 69: uint16(28810), + 70: uint16(30561), + 71: uint16(31883), + 72: uint16(32736), + 73: uint16(34928), + 74: uint16(36930), + 75: uint16(37204), + 76: uint16(37648), + 77: uint16(37656), + 78: uint16(38543), + 79: uint16(29790), + 80: uint16(39620), + 81: uint16(23815), + 82: uint16(23913), + 83: uint16(25968), + 84: uint16(26530), + 85: uint16(36264), + 86: uint16(38619), + 87: uint16(25454), + 88: uint16(26441), + 89: uint16(26905), + 90: uint16(33733), + 91: uint16(38935), + 92: uint16(38592), + 93: uint16(35070), + }, + 31: { + 0: uint16(28548), + 1: uint16(25722), + 2: uint16(23544), + 3: uint16(19990), + 4: uint16(28716), + 5: uint16(30045), + 6: uint16(26159), + 7: uint16(20932), + 8: uint16(21046), + 9: uint16(21218), + 10: uint16(22995), + 11: uint16(24449), + 12: uint16(24615), + 13: uint16(25104), + 14: uint16(25919), + 15: uint16(25972), + 16: uint16(26143), + 17: uint16(26228), + 18: uint16(26866), + 19: uint16(26646), + 20: uint16(27491), + 21: uint16(28165), + 22: uint16(29298), + 23: uint16(29983), + 24: uint16(30427), + 25: uint16(31934), + 26: uint16(32854), + 27: uint16(22768), + 28: uint16(35069), + 29: uint16(35199), + 30: uint16(35488), + 31: uint16(35475), + 32: uint16(35531), + 33: uint16(36893), + 34: uint16(37266), + 35: uint16(38738), + 36: uint16(38745), + 37: uint16(25993), + 38: uint16(31246), + 39: uint16(33030), + 40: uint16(38587), + 41: uint16(24109), + 42: uint16(24796), + 43: uint16(25114), + 44: uint16(26021), + 45: uint16(26132), + 46: uint16(26512), + 47: uint16(30707), + 48: uint16(31309), + 49: uint16(31821), + 50: uint16(32318), + 51: uint16(33034), + 52: uint16(36012), + 53: uint16(36196), + 54: uint16(36321), + 55: uint16(36447), + 56: uint16(30889), + 57: uint16(20999), + 58: uint16(25305), + 59: uint16(25509), + 60: uint16(25666), + 61: uint16(25240), + 62: uint16(35373), + 63: uint16(31363), + 64: uint16(31680), + 65: uint16(35500), + 66: uint16(38634), + 67: uint16(32118), + 68: uint16(33292), + 69: uint16(34633), + 70: uint16(20185), + 71: uint16(20808), + 72: uint16(21315), + 73: uint16(21344), + 74: uint16(23459), + 75: uint16(23554), + 76: uint16(23574), + 77: uint16(24029), + 78: uint16(25126), + 79: uint16(25159), + 80: uint16(25776), + 81: uint16(26643), + 82: uint16(26676), + 83: uint16(27849), + 84: uint16(27973), + 85: uint16(27927), + 86: uint16(26579), + 87: uint16(28508), + 88: uint16(29006), + 89: uint16(29053), + 90: uint16(26059), + 91: uint16(31359), + 92: uint16(31661), + 93: uint16(32218), + }, + 32: { + 0: uint16(32330), + 1: uint16(32680), + 2: uint16(33146), + 3: uint16(33307), + 4: uint16(33337), + 5: uint16(34214), + 6: uint16(35438), + 7: uint16(36046), + 8: uint16(36341), + 9: uint16(36984), + 10: uint16(36983), + 11: uint16(37549), + 12: uint16(37521), + 13: uint16(38275), + 14: uint16(39854), + 15: uint16(21069), + 16: uint16(21892), + 17: uint16(28472), + 18: uint16(28982), + 19: uint16(20840), + 20: uint16(31109), + 21: uint16(32341), + 22: uint16(33203), + 23: uint16(31950), + 24: uint16(22092), + 25: uint16(22609), + 26: uint16(23720), + 27: uint16(25514), + 28: uint16(26366), + 29: uint16(26365), + 30: uint16(26970), + 31: uint16(29401), + 32: uint16(30095), + 33: uint16(30094), + 34: uint16(30990), + 35: uint16(31062), + 36: uint16(31199), + 37: uint16(31895), + 38: uint16(32032), + 39: uint16(32068), + 40: uint16(34311), + 41: uint16(35380), + 42: uint16(38459), + 43: uint16(36961), + 44: uint16(40736), + 45: uint16(20711), + 46: uint16(21109), + 47: uint16(21452), + 48: uint16(21474), + 49: uint16(20489), + 50: uint16(21930), + 51: uint16(22766), + 52: uint16(22863), + 53: uint16(29245), + 54: uint16(23435), + 55: uint16(23652), + 56: uint16(21277), + 57: uint16(24803), + 58: uint16(24819), + 59: uint16(25436), + 60: uint16(25475), + 61: uint16(25407), + 62: uint16(25531), + 63: uint16(25805), + 64: uint16(26089), + 65: uint16(26361), + 66: uint16(24035), + 67: uint16(27085), + 68: uint16(27133), + 69: uint16(28437), + 70: uint16(29157), + 71: uint16(20105), + 72: uint16(30185), + 73: uint16(30456), + 74: uint16(31379), + 75: uint16(31967), + 76: uint16(32207), + 77: uint16(32156), + 78: uint16(32865), + 79: uint16(33609), + 80: uint16(33624), + 81: uint16(33900), + 82: uint16(33980), + 83: uint16(34299), + 84: uint16(35013), + 85: uint16(36208), + 86: uint16(36865), + 87: uint16(36973), + 88: uint16(37783), + 89: uint16(38684), + 90: uint16(39442), + 91: uint16(20687), + 92: uint16(22679), + 93: uint16(24974), + }, + 33: { + 0: uint16(33235), + 1: uint16(34101), + 2: uint16(36104), + 3: uint16(36896), + 4: uint16(20419), + 5: uint16(20596), + 6: uint16(21063), + 7: uint16(21363), + 8: uint16(24687), + 9: uint16(25417), + 10: uint16(26463), + 11: uint16(28204), + 12: uint16(36275), + 13: uint16(36895), + 14: uint16(20439), + 15: uint16(23646), + 16: uint16(36042), + 17: uint16(26063), + 18: uint16(32154), + 19: uint16(21330), + 20: uint16(34966), + 21: uint16(20854), + 22: uint16(25539), + 23: uint16(23384), + 24: uint16(23403), + 25: uint16(23562), + 26: uint16(25613), + 27: uint16(26449), + 28: uint16(36956), + 29: uint16(20182), + 30: uint16(22810), + 31: uint16(22826), + 32: uint16(27760), + 33: uint16(35409), + 34: uint16(21822), + 35: uint16(22549), + 36: uint16(22949), + 37: uint16(24816), + 38: uint16(25171), + 39: uint16(26561), + 40: uint16(33333), + 41: uint16(26965), + 42: uint16(38464), + 43: uint16(39364), + 44: uint16(39464), + 45: uint16(20307), + 46: uint16(22534), + 47: uint16(23550), + 48: uint16(32784), + 49: uint16(23729), + 50: uint16(24111), + 51: uint16(24453), + 52: uint16(24608), + 53: uint16(24907), + 54: uint16(25140), + 55: uint16(26367), + 56: uint16(27888), + 57: uint16(28382), + 58: uint16(32974), + 59: uint16(33151), + 60: uint16(33492), + 61: uint16(34955), + 62: uint16(36024), + 63: uint16(36864), + 64: uint16(36910), + 65: uint16(38538), + 66: uint16(40667), + 67: uint16(39899), + 68: uint16(20195), + 69: uint16(21488), + 70: uint16(22823), + 71: uint16(31532), + 72: uint16(37261), + 73: uint16(38988), + 74: uint16(40441), + 75: uint16(28381), + 76: uint16(28711), + 77: uint16(21331), + 78: uint16(21828), + 79: uint16(23429), + 80: uint16(25176), + 81: uint16(25246), + 82: uint16(25299), + 83: uint16(27810), + 84: uint16(28655), + 85: uint16(29730), + 86: uint16(35351), + 87: uint16(37944), + 88: uint16(28609), + 89: uint16(35582), + 90: uint16(33592), + 91: uint16(20967), + 92: uint16(34552), + 93: uint16(21482), + }, + 34: { + 0: uint16(21481), + 1: uint16(20294), + 2: uint16(36948), + 3: uint16(36784), + 4: uint16(22890), + 5: uint16(33073), + 6: uint16(24061), + 7: uint16(31466), + 8: uint16(36799), + 9: uint16(26842), + 10: uint16(35895), + 11: uint16(29432), + 12: uint16(40008), + 13: uint16(27197), + 14: uint16(35504), + 15: uint16(20025), + 16: uint16(21336), + 17: uint16(22022), + 18: uint16(22374), + 19: uint16(25285), + 20: uint16(25506), + 21: uint16(26086), + 22: uint16(27470), + 23: uint16(28129), + 24: uint16(28251), + 25: uint16(28845), + 26: uint16(30701), + 27: uint16(31471), + 28: uint16(31658), + 29: uint16(32187), + 30: uint16(32829), + 31: uint16(32966), + 32: uint16(34507), + 33: uint16(35477), + 34: uint16(37723), + 35: uint16(22243), + 36: uint16(22727), + 37: uint16(24382), + 38: uint16(26029), + 39: uint16(26262), + 40: uint16(27264), + 41: uint16(27573), + 42: uint16(30007), + 43: uint16(35527), + 44: uint16(20516), + 45: uint16(30693), + 46: uint16(22320), + 47: uint16(24347), + 48: uint16(24677), + 49: uint16(26234), + 50: uint16(27744), + 51: uint16(30196), + 52: uint16(31258), + 53: uint16(32622), + 54: uint16(33268), + 55: uint16(34584), + 56: uint16(36933), + 57: uint16(39347), + 58: uint16(31689), + 59: uint16(30044), + 60: uint16(31481), + 61: uint16(31569), + 62: uint16(33988), + 63: uint16(36880), + 64: uint16(31209), + 65: uint16(31378), + 66: uint16(33590), + 67: uint16(23265), + 68: uint16(30528), + 69: uint16(20013), + 70: uint16(20210), + 71: uint16(23449), + 72: uint16(24544), + 73: uint16(25277), + 74: uint16(26172), + 75: uint16(26609), + 76: uint16(27880), + 77: uint16(34411), + 78: uint16(34935), + 79: uint16(35387), + 80: uint16(37198), + 81: uint16(37619), + 82: uint16(39376), + 83: uint16(27159), + 84: uint16(28710), + 85: uint16(29482), + 86: uint16(33511), + 87: uint16(33879), + 88: uint16(36015), + 89: uint16(19969), + 90: uint16(20806), + 91: uint16(20939), + 92: uint16(21899), + 93: uint16(23541), + }, + 35: { + 0: uint16(24086), + 1: uint16(24115), + 2: uint16(24193), + 3: uint16(24340), + 4: uint16(24373), + 5: uint16(24427), + 6: uint16(24500), + 7: uint16(25074), + 8: uint16(25361), + 9: uint16(26274), + 10: uint16(26397), + 11: uint16(28526), + 12: uint16(29266), + 13: uint16(30010), + 14: uint16(30522), + 15: uint16(32884), + 16: uint16(33081), + 17: uint16(33144), + 18: uint16(34678), + 19: uint16(35519), + 20: uint16(35548), + 21: uint16(36229), + 22: uint16(36339), + 23: uint16(37530), + 24: uint16(38263), + 25: uint16(38914), + 26: uint16(40165), + 27: uint16(21189), + 28: uint16(25431), + 29: uint16(30452), + 30: uint16(26389), + 31: uint16(27784), + 32: uint16(29645), + 33: uint16(36035), + 34: uint16(37806), + 35: uint16(38515), + 36: uint16(27941), + 37: uint16(22684), + 38: uint16(26894), + 39: uint16(27084), + 40: uint16(36861), + 41: uint16(37786), + 42: uint16(30171), + 43: uint16(36890), + 44: uint16(22618), + 45: uint16(26626), + 46: uint16(25524), + 47: uint16(27131), + 48: uint16(20291), + 49: uint16(28460), + 50: uint16(26584), + 51: uint16(36795), + 52: uint16(34086), + 53: uint16(32180), + 54: uint16(37716), + 55: uint16(26943), + 56: uint16(28528), + 57: uint16(22378), + 58: uint16(22775), + 59: uint16(23340), + 60: uint16(32044), + 61: uint16(29226), + 62: uint16(21514), + 63: uint16(37347), + 64: uint16(40372), + 65: uint16(20141), + 66: uint16(20302), + 67: uint16(20572), + 68: uint16(20597), + 69: uint16(21059), + 70: uint16(35998), + 71: uint16(21576), + 72: uint16(22564), + 73: uint16(23450), + 74: uint16(24093), + 75: uint16(24213), + 76: uint16(24237), + 77: uint16(24311), + 78: uint16(24351), + 79: uint16(24716), + 80: uint16(25269), + 81: uint16(25402), + 82: uint16(25552), + 83: uint16(26799), + 84: uint16(27712), + 85: uint16(30855), + 86: uint16(31118), + 87: uint16(31243), + 88: uint16(32224), + 89: uint16(33351), + 90: uint16(35330), + 91: uint16(35558), + 92: uint16(36420), + 93: uint16(36883), + }, + 36: { + 0: uint16(37048), + 1: uint16(37165), + 2: uint16(37336), + 3: uint16(40718), + 4: uint16(27877), + 5: uint16(25688), + 6: uint16(25826), + 7: uint16(25973), + 8: uint16(28404), + 9: uint16(30340), + 10: uint16(31515), + 11: uint16(36969), + 12: uint16(37841), + 13: uint16(28346), + 14: uint16(21746), + 15: uint16(24505), + 16: uint16(25764), + 17: uint16(36685), + 18: uint16(36845), + 19: uint16(37444), + 20: uint16(20856), + 21: uint16(22635), + 22: uint16(22825), + 23: uint16(23637), + 24: uint16(24215), + 25: uint16(28155), + 26: uint16(32399), + 27: uint16(29980), + 28: uint16(36028), + 29: uint16(36578), + 30: uint16(39003), + 31: uint16(28857), + 32: uint16(20253), + 33: uint16(27583), + 34: uint16(28593), + 35: uint16(30000), + 36: uint16(38651), + 37: uint16(20814), + 38: uint16(21520), + 39: uint16(22581), + 40: uint16(22615), + 41: uint16(22956), + 42: uint16(23648), + 43: uint16(24466), + 44: uint16(26007), + 45: uint16(26460), + 46: uint16(28193), + 47: uint16(30331), + 48: uint16(33759), + 49: uint16(36077), + 50: uint16(36884), + 51: uint16(37117), + 52: uint16(37709), + 53: uint16(30757), + 54: uint16(30778), + 55: uint16(21162), + 56: uint16(24230), + 57: uint16(22303), + 58: uint16(22900), + 59: uint16(24594), + 60: uint16(20498), + 61: uint16(20826), + 62: uint16(20908), + 63: uint16(20941), + 64: uint16(20992), + 65: uint16(21776), + 66: uint16(22612), + 67: uint16(22616), + 68: uint16(22871), + 69: uint16(23445), + 70: uint16(23798), + 71: uint16(23947), + 72: uint16(24764), + 73: uint16(25237), + 74: uint16(25645), + 75: uint16(26481), + 76: uint16(26691), + 77: uint16(26812), + 78: uint16(26847), + 79: uint16(30423), + 80: uint16(28120), + 81: uint16(28271), + 82: uint16(28059), + 83: uint16(28783), + 84: uint16(29128), + 85: uint16(24403), + 86: uint16(30168), + 87: uint16(31095), + 88: uint16(31561), + 89: uint16(31572), + 90: uint16(31570), + 91: uint16(31958), + 92: uint16(32113), + 93: uint16(21040), + }, + 37: { + 0: uint16(33891), + 1: uint16(34153), + 2: uint16(34276), + 3: uint16(35342), + 4: uint16(35588), + 5: uint16(35910), + 6: uint16(36367), + 7: uint16(36867), + 8: uint16(36879), + 9: uint16(37913), + 10: uint16(38518), + 11: uint16(38957), + 12: uint16(39472), + 13: uint16(38360), + 14: uint16(20685), + 15: uint16(21205), + 16: uint16(21516), + 17: uint16(22530), + 18: uint16(23566), + 19: uint16(24999), + 20: uint16(25758), + 21: uint16(27934), + 22: uint16(30643), + 23: uint16(31461), + 24: uint16(33012), + 25: uint16(33796), + 26: uint16(36947), + 27: uint16(37509), + 28: uint16(23776), + 29: uint16(40199), + 30: uint16(21311), + 31: uint16(24471), + 32: uint16(24499), + 33: uint16(28060), + 34: uint16(29305), + 35: uint16(30563), + 36: uint16(31167), + 37: uint16(31716), + 38: uint16(27602), + 39: uint16(29420), + 40: uint16(35501), + 41: uint16(26627), + 42: uint16(27233), + 43: uint16(20984), + 44: uint16(31361), + 45: uint16(26932), + 46: uint16(23626), + 47: uint16(40182), + 48: uint16(33515), + 49: uint16(23493), + 50: uint16(37193), + 51: uint16(28702), + 52: uint16(22136), + 53: uint16(23663), + 54: uint16(24775), + 55: uint16(25958), + 56: uint16(27788), + 57: uint16(35930), + 58: uint16(36929), + 59: uint16(38931), + 60: uint16(21585), + 61: uint16(26311), + 62: uint16(37389), + 63: uint16(22856), + 64: uint16(37027), + 65: uint16(20869), + 66: uint16(20045), + 67: uint16(20970), + 68: uint16(34201), + 69: uint16(35598), + 70: uint16(28760), + 71: uint16(25466), + 72: uint16(37707), + 73: uint16(26978), + 74: uint16(39348), + 75: uint16(32260), + 76: uint16(30071), + 77: uint16(21335), + 78: uint16(26976), + 79: uint16(36575), + 80: uint16(38627), + 81: uint16(27741), + 82: uint16(20108), + 83: uint16(23612), + 84: uint16(24336), + 85: uint16(36841), + 86: uint16(21250), + 87: uint16(36049), + 88: uint16(32905), + 89: uint16(34425), + 90: uint16(24319), + 91: uint16(26085), + 92: uint16(20083), + 93: uint16(20837), + }, + 38: { + 0: uint16(22914), + 1: uint16(23615), + 2: uint16(38894), + 3: uint16(20219), + 4: uint16(22922), + 5: uint16(24525), + 6: uint16(35469), + 7: uint16(28641), + 8: uint16(31152), + 9: uint16(31074), + 10: uint16(23527), + 11: uint16(33905), + 12: uint16(29483), + 13: uint16(29105), + 14: uint16(24180), + 15: uint16(24565), + 16: uint16(25467), + 17: uint16(25754), + 18: uint16(29123), + 19: uint16(31896), + 20: uint16(20035), + 21: uint16(24316), + 22: uint16(20043), + 23: uint16(22492), + 24: uint16(22178), + 25: uint16(24745), + 26: uint16(28611), + 27: uint16(32013), + 28: uint16(33021), + 29: uint16(33075), + 30: uint16(33215), + 31: uint16(36786), + 32: uint16(35223), + 33: uint16(34468), + 34: uint16(24052), + 35: uint16(25226), + 36: uint16(25773), + 37: uint16(35207), + 38: uint16(26487), + 39: uint16(27874), + 40: uint16(27966), + 41: uint16(29750), + 42: uint16(30772), + 43: uint16(23110), + 44: uint16(32629), + 45: uint16(33453), + 46: uint16(39340), + 47: uint16(20467), + 48: uint16(24259), + 49: uint16(25309), + 50: uint16(25490), + 51: uint16(25943), + 52: uint16(26479), + 53: uint16(30403), + 54: uint16(29260), + 55: uint16(32972), + 56: uint16(32954), + 57: uint16(36649), + 58: uint16(37197), + 59: uint16(20493), + 60: uint16(22521), + 61: uint16(23186), + 62: uint16(26757), + 63: uint16(26995), + 64: uint16(29028), + 65: uint16(29437), + 66: uint16(36023), + 67: uint16(22770), + 68: uint16(36064), + 69: uint16(38506), + 70: uint16(36889), + 71: uint16(34687), + 72: uint16(31204), + 73: uint16(30695), + 74: uint16(33833), + 75: uint16(20271), + 76: uint16(21093), + 77: uint16(21338), + 78: uint16(25293), + 79: uint16(26575), + 80: uint16(27850), + 81: uint16(30333), + 82: uint16(31636), + 83: uint16(31893), + 84: uint16(33334), + 85: uint16(34180), + 86: uint16(36843), + 87: uint16(26333), + 88: uint16(28448), + 89: uint16(29190), + 90: uint16(32283), + 91: uint16(33707), + 92: uint16(39361), + 93: uint16(40614), + }, + 39: { + 0: uint16(20989), + 1: uint16(31665), + 2: uint16(30834), + 3: uint16(31672), + 4: uint16(32903), + 5: uint16(31560), + 6: uint16(27368), + 7: uint16(24161), + 8: uint16(32908), + 9: uint16(30033), + 10: uint16(30048), + 11: uint16(20843), + 12: uint16(37474), + 13: uint16(28300), + 14: uint16(30330), + 15: uint16(37271), + 16: uint16(39658), + 17: uint16(20240), + 18: uint16(32624), + 19: uint16(25244), + 20: uint16(31567), + 21: uint16(38309), + 22: uint16(40169), + 23: uint16(22138), + 24: uint16(22617), + 25: uint16(34532), + 26: uint16(38588), + 27: uint16(20276), + 28: uint16(21028), + 29: uint16(21322), + 30: uint16(21453), + 31: uint16(21467), + 32: uint16(24070), + 33: uint16(25644), + 34: uint16(26001), + 35: uint16(26495), + 36: uint16(27710), + 37: uint16(27726), + 38: uint16(29256), + 39: uint16(29359), + 40: uint16(29677), + 41: uint16(30036), + 42: uint16(32321), + 43: uint16(33324), + 44: uint16(34281), + 45: uint16(36009), + 46: uint16(31684), + 47: uint16(37318), + 48: uint16(29033), + 49: uint16(38930), + 50: uint16(39151), + 51: uint16(25405), + 52: uint16(26217), + 53: uint16(30058), + 54: uint16(30436), + 55: uint16(30928), + 56: uint16(34115), + 57: uint16(34542), + 58: uint16(21290), + 59: uint16(21329), + 60: uint16(21542), + 61: uint16(22915), + 62: uint16(24199), + 63: uint16(24444), + 64: uint16(24754), + 65: uint16(25161), + 66: uint16(25209), + 67: uint16(25259), + 68: uint16(26000), + 69: uint16(27604), + 70: uint16(27852), + 71: uint16(30130), + 72: uint16(30382), + 73: uint16(30865), + 74: uint16(31192), + 75: uint16(32203), + 76: uint16(32631), + 77: uint16(32933), + 78: uint16(34987), + 79: uint16(35513), + 80: uint16(36027), + 81: uint16(36991), + 82: uint16(38750), + 83: uint16(39131), + 84: uint16(27147), + 85: uint16(31800), + 86: uint16(20633), + 87: uint16(23614), + 88: uint16(24494), + 89: uint16(26503), + 90: uint16(27608), + 91: uint16(29749), + 92: uint16(30473), + 93: uint16(32654), + }, + 40: { + 0: uint16(40763), + 1: uint16(26570), + 2: uint16(31255), + 3: uint16(21305), + 4: uint16(30091), + 5: uint16(39661), + 6: uint16(24422), + 7: uint16(33181), + 8: uint16(33777), + 9: uint16(32920), + 10: uint16(24380), + 11: uint16(24517), + 12: uint16(30050), + 13: uint16(31558), + 14: uint16(36924), + 15: uint16(26727), + 16: uint16(23019), + 17: uint16(23195), + 18: uint16(32016), + 19: uint16(30334), + 20: uint16(35628), + 21: uint16(20469), + 22: uint16(24426), + 23: uint16(27161), + 24: uint16(27703), + 25: uint16(28418), + 26: uint16(29922), + 27: uint16(31080), + 28: uint16(34920), + 29: uint16(35413), + 30: uint16(35961), + 31: uint16(24287), + 32: uint16(25551), + 33: uint16(30149), + 34: uint16(31186), + 35: uint16(33495), + 36: uint16(37672), + 37: uint16(37618), + 38: uint16(33948), + 39: uint16(34541), + 40: uint16(39981), + 41: uint16(21697), + 42: uint16(24428), + 43: uint16(25996), + 44: uint16(27996), + 45: uint16(28693), + 46: uint16(36007), + 47: uint16(36051), + 48: uint16(38971), + 49: uint16(25935), + 50: uint16(29942), + 51: uint16(19981), + 52: uint16(20184), + 53: uint16(22496), + 54: uint16(22827), + 55: uint16(23142), + 56: uint16(23500), + 57: uint16(20904), + 58: uint16(24067), + 59: uint16(24220), + 60: uint16(24598), + 61: uint16(25206), + 62: uint16(25975), + 63: uint16(26023), + 64: uint16(26222), + 65: uint16(28014), + 66: uint16(29238), + 67: uint16(31526), + 68: uint16(33104), + 69: uint16(33178), + 70: uint16(33433), + 71: uint16(35676), + 72: uint16(36000), + 73: uint16(36070), + 74: uint16(36212), + 75: uint16(38428), + 76: uint16(38468), + 77: uint16(20398), + 78: uint16(25771), + 79: uint16(27494), + 80: uint16(33310), + 81: uint16(33889), + 82: uint16(34154), + 83: uint16(37096), + 84: uint16(23553), + 85: uint16(26963), + 86: uint16(39080), + 87: uint16(33914), + 88: uint16(34135), + 89: uint16(20239), + 90: uint16(21103), + 91: uint16(24489), + 92: uint16(24133), + 93: uint16(26381), + }, + 41: { + 0: uint16(31119), + 1: uint16(33145), + 2: uint16(35079), + 3: uint16(35206), + 4: uint16(28149), + 5: uint16(24343), + 6: uint16(25173), + 7: uint16(27832), + 8: uint16(20175), + 9: uint16(29289), + 10: uint16(39826), + 11: uint16(20998), + 12: uint16(21563), + 13: uint16(22132), + 14: uint16(22707), + 15: uint16(24996), + 16: uint16(25198), + 17: uint16(28954), + 18: uint16(22894), + 19: uint16(31881), + 20: uint16(31966), + 21: uint16(32027), + 22: uint16(38640), + 23: uint16(25991), + 24: uint16(32862), + 25: uint16(19993), + 26: uint16(20341), + 27: uint16(20853), + 28: uint16(22592), + 29: uint16(24163), + 30: uint16(24179), + 31: uint16(24330), + 32: uint16(26564), + 33: uint16(20006), + 34: uint16(34109), + 35: uint16(38281), + 36: uint16(38491), + 37: uint16(31859), + 38: uint16(38913), + 39: uint16(20731), + 40: uint16(22721), + 41: uint16(30294), + 42: uint16(30887), + 43: uint16(21029), + 44: uint16(30629), + 45: uint16(34065), + 46: uint16(31622), + 47: uint16(20559), + 48: uint16(22793), + 49: uint16(29255), + 50: uint16(31687), + 51: uint16(32232), + 52: uint16(36794), + 53: uint16(36820), + 54: uint16(36941), + 55: uint16(20415), + 56: uint16(21193), + 57: uint16(23081), + 58: uint16(24321), + 59: uint16(38829), + 60: uint16(20445), + 61: uint16(33303), + 62: uint16(37610), + 63: uint16(22275), + 64: uint16(25429), + 65: uint16(27497), + 66: uint16(29995), + 67: uint16(35036), + 68: uint16(36628), + 69: uint16(31298), + 70: uint16(21215), + 71: uint16(22675), + 72: uint16(24917), + 73: uint16(25098), + 74: uint16(26286), + 75: uint16(27597), + 76: uint16(31807), + 77: uint16(33769), + 78: uint16(20515), + 79: uint16(20472), + 80: uint16(21253), + 81: uint16(21574), + 82: uint16(22577), + 83: uint16(22857), + 84: uint16(23453), + 85: uint16(23792), + 86: uint16(23791), + 87: uint16(23849), + 88: uint16(24214), + 89: uint16(25265), + 90: uint16(25447), + 91: uint16(25918), + 92: uint16(26041), + 93: uint16(26379), + }, + 42: { + 0: uint16(27861), + 1: uint16(27873), + 2: uint16(28921), + 3: uint16(30770), + 4: uint16(32299), + 5: uint16(32990), + 6: uint16(33459), + 7: uint16(33804), + 8: uint16(34028), + 9: uint16(34562), + 10: uint16(35090), + 11: uint16(35370), + 12: uint16(35914), + 13: uint16(37030), + 14: uint16(37586), + 15: uint16(39165), + 16: uint16(40179), + 17: uint16(40300), + 18: uint16(20047), + 19: uint16(20129), + 20: uint16(20621), + 21: uint16(21078), + 22: uint16(22346), + 23: uint16(22952), + 24: uint16(24125), + 25: uint16(24536), + 26: uint16(24537), + 27: uint16(25151), + 28: uint16(26292), + 29: uint16(26395), + 30: uint16(26576), + 31: uint16(26834), + 32: uint16(20882), + 33: uint16(32033), + 34: uint16(32938), + 35: uint16(33192), + 36: uint16(35584), + 37: uint16(35980), + 38: uint16(36031), + 39: uint16(37502), + 40: uint16(38450), + 41: uint16(21536), + 42: uint16(38956), + 43: uint16(21271), + 44: uint16(20693), + 45: uint16(21340), + 46: uint16(22696), + 47: uint16(25778), + 48: uint16(26420), + 49: uint16(29287), + 50: uint16(30566), + 51: uint16(31302), + 52: uint16(37350), + 53: uint16(21187), + 54: uint16(27809), + 55: uint16(27526), + 56: uint16(22528), + 57: uint16(24140), + 58: uint16(22868), + 59: uint16(26412), + 60: uint16(32763), + 61: uint16(20961), + 62: uint16(30406), + 63: uint16(25705), + 64: uint16(30952), + 65: uint16(39764), + 66: uint16(40635), + 67: uint16(22475), + 68: uint16(22969), + 69: uint16(26151), + 70: uint16(26522), + 71: uint16(27598), + 72: uint16(21737), + 73: uint16(27097), + 74: uint16(24149), + 75: uint16(33180), + 76: uint16(26517), + 77: uint16(39850), + 78: uint16(26622), + 79: uint16(40018), + 80: uint16(26717), + 81: uint16(20134), + 82: uint16(20451), + 83: uint16(21448), + 84: uint16(25273), + 85: uint16(26411), + 86: uint16(27819), + 87: uint16(36804), + 88: uint16(20397), + 89: uint16(32365), + 90: uint16(40639), + 91: uint16(19975), + 92: uint16(24930), + 93: uint16(28288), + }, + 43: { + 0: uint16(28459), + 1: uint16(34067), + 2: uint16(21619), + 3: uint16(26410), + 4: uint16(39749), + 5: uint16(24051), + 6: uint16(31637), + 7: uint16(23724), + 8: uint16(23494), + 9: uint16(34588), + 10: uint16(28234), + 11: uint16(34001), + 12: uint16(31252), + 13: uint16(33032), + 14: uint16(22937), + 15: uint16(31885), + 16: uint16(27665), + 17: uint16(30496), + 18: uint16(21209), + 19: uint16(22818), + 20: uint16(28961), + 21: uint16(29279), + 22: uint16(30683), + 23: uint16(38695), + 24: uint16(40289), + 25: uint16(26891), + 26: uint16(23167), + 27: uint16(23064), + 28: uint16(20901), + 29: uint16(21517), + 30: uint16(21629), + 31: uint16(26126), + 32: uint16(30431), + 33: uint16(36855), + 34: uint16(37528), + 35: uint16(40180), + 36: uint16(23018), + 37: uint16(29277), + 38: uint16(28357), + 39: uint16(20813), + 40: uint16(26825), + 41: uint16(32191), + 42: uint16(32236), + 43: uint16(38754), + 44: uint16(40634), + 45: uint16(25720), + 46: uint16(27169), + 47: uint16(33538), + 48: uint16(22916), + 49: uint16(23391), + 50: uint16(27611), + 51: uint16(29467), + 52: uint16(30450), + 53: uint16(32178), + 54: uint16(32791), + 55: uint16(33945), + 56: uint16(20786), + 57: uint16(26408), + 58: uint16(40665), + 59: uint16(30446), + 60: uint16(26466), + 61: uint16(21247), + 62: uint16(39173), + 63: uint16(23588), + 64: uint16(25147), + 65: uint16(31870), + 66: uint16(36016), + 67: uint16(21839), + 68: uint16(24758), + 69: uint16(32011), + 70: uint16(38272), + 71: uint16(21249), + 72: uint16(20063), + 73: uint16(20918), + 74: uint16(22812), + 75: uint16(29242), + 76: uint16(32822), + 77: uint16(37326), + 78: uint16(24357), + 79: uint16(30690), + 80: uint16(21380), + 81: uint16(24441), + 82: uint16(32004), + 83: uint16(34220), + 84: uint16(35379), + 85: uint16(36493), + 86: uint16(38742), + 87: uint16(26611), + 88: uint16(34222), + 89: uint16(37971), + 90: uint16(24841), + 91: uint16(24840), + 92: uint16(27833), + 93: uint16(30290), + }, + 44: { + 0: uint16(35565), + 1: uint16(36664), + 2: uint16(21807), + 3: uint16(20305), + 4: uint16(20778), + 5: uint16(21191), + 6: uint16(21451), + 7: uint16(23461), + 8: uint16(24189), + 9: uint16(24736), + 10: uint16(24962), + 11: uint16(25558), + 12: uint16(26377), + 13: uint16(26586), + 14: uint16(28263), + 15: uint16(28044), + 16: uint16(29494), + 17: uint16(29495), + 18: uint16(30001), + 19: uint16(31056), + 20: uint16(35029), + 21: uint16(35480), + 22: uint16(36938), + 23: uint16(37009), + 24: uint16(37109), + 25: uint16(38596), + 26: uint16(34701), + 27: uint16(22805), + 28: uint16(20104), + 29: uint16(20313), + 30: uint16(19982), + 31: uint16(35465), + 32: uint16(36671), + 33: uint16(38928), + 34: uint16(20653), + 35: uint16(24188), + 36: uint16(22934), + 37: uint16(23481), + 38: uint16(24248), + 39: uint16(25562), + 40: uint16(25594), + 41: uint16(25793), + 42: uint16(26332), + 43: uint16(26954), + 44: uint16(27096), + 45: uint16(27915), + 46: uint16(28342), + 47: uint16(29076), + 48: uint16(29992), + 49: uint16(31407), + 50: uint16(32650), + 51: uint16(32768), + 52: uint16(33865), + 53: uint16(33993), + 54: uint16(35201), + 55: uint16(35617), + 56: uint16(36362), + 57: uint16(36965), + 58: uint16(38525), + 59: uint16(39178), + 60: uint16(24958), + 61: uint16(25233), + 62: uint16(27442), + 63: uint16(27779), + 64: uint16(28020), + 65: uint16(32716), + 66: uint16(32764), + 67: uint16(28096), + 68: uint16(32645), + 69: uint16(34746), + 70: uint16(35064), + 71: uint16(26469), + 72: uint16(33713), + 73: uint16(38972), + 74: uint16(38647), + 75: uint16(27931), + 76: uint16(32097), + 77: uint16(33853), + 78: uint16(37226), + 79: uint16(20081), + 80: uint16(21365), + 81: uint16(23888), + 82: uint16(27396), + 83: uint16(28651), + 84: uint16(34253), + 85: uint16(34349), + 86: uint16(35239), + 87: uint16(21033), + 88: uint16(21519), + 89: uint16(23653), + 90: uint16(26446), + 91: uint16(26792), + 92: uint16(29702), + 93: uint16(29827), + }, + 45: { + 0: uint16(30178), + 1: uint16(35023), + 2: uint16(35041), + 3: uint16(37324), + 4: uint16(38626), + 5: uint16(38520), + 6: uint16(24459), + 7: uint16(29575), + 8: uint16(31435), + 9: uint16(33870), + 10: uint16(25504), + 11: uint16(30053), + 12: uint16(21129), + 13: uint16(27969), + 14: uint16(28316), + 15: uint16(29705), + 16: uint16(30041), + 17: uint16(30827), + 18: uint16(31890), + 19: uint16(38534), + 20: uint16(31452), + 21: uint16(40845), + 22: uint16(20406), + 23: uint16(24942), + 24: uint16(26053), + 25: uint16(34396), + 26: uint16(20102), + 27: uint16(20142), + 28: uint16(20698), + 29: uint16(20001), + 30: uint16(20940), + 31: uint16(23534), + 32: uint16(26009), + 33: uint16(26753), + 34: uint16(28092), + 35: uint16(29471), + 36: uint16(30274), + 37: uint16(30637), + 38: uint16(31260), + 39: uint16(31975), + 40: uint16(33391), + 41: uint16(35538), + 42: uint16(36988), + 43: uint16(37327), + 44: uint16(38517), + 45: uint16(38936), + 46: uint16(21147), + 47: uint16(32209), + 48: uint16(20523), + 49: uint16(21400), + 50: uint16(26519), + 51: uint16(28107), + 52: uint16(29136), + 53: uint16(29747), + 54: uint16(33256), + 55: uint16(36650), + 56: uint16(38563), + 57: uint16(40023), + 58: uint16(40607), + 59: uint16(29792), + 60: uint16(22593), + 61: uint16(28057), + 62: uint16(32047), + 63: uint16(39006), + 64: uint16(20196), + 65: uint16(20278), + 66: uint16(20363), + 67: uint16(20919), + 68: uint16(21169), + 69: uint16(23994), + 70: uint16(24604), + 71: uint16(29618), + 72: uint16(31036), + 73: uint16(33491), + 74: uint16(37428), + 75: uint16(38583), + 76: uint16(38646), + 77: uint16(38666), + 78: uint16(40599), + 79: uint16(40802), + 80: uint16(26278), + 81: uint16(27508), + 82: uint16(21015), + 83: uint16(21155), + 84: uint16(28872), + 85: uint16(35010), + 86: uint16(24265), + 87: uint16(24651), + 88: uint16(24976), + 89: uint16(28451), + 90: uint16(29001), + 91: uint16(31806), + 92: uint16(32244), + 93: uint16(32879), + }, + 46: { + 0: uint16(34030), + 1: uint16(36899), + 2: uint16(37676), + 3: uint16(21570), + 4: uint16(39791), + 5: uint16(27347), + 6: uint16(28809), + 7: uint16(36034), + 8: uint16(36335), + 9: uint16(38706), + 10: uint16(21172), + 11: uint16(23105), + 12: uint16(24266), + 13: uint16(24324), + 14: uint16(26391), + 15: uint16(27004), + 16: uint16(27028), + 17: uint16(28010), + 18: uint16(28431), + 19: uint16(29282), + 20: uint16(29436), + 21: uint16(31725), + 22: uint16(32769), + 23: uint16(32894), + 24: uint16(34635), + 25: uint16(37070), + 26: uint16(20845), + 27: uint16(40595), + 28: uint16(31108), + 29: uint16(32907), + 30: uint16(37682), + 31: uint16(35542), + 32: uint16(20525), + 33: uint16(21644), + 34: uint16(35441), + 35: uint16(27498), + 36: uint16(36036), + 37: uint16(33031), + 38: uint16(24785), + 39: uint16(26528), + 40: uint16(40434), + 41: uint16(20121), + 42: uint16(20120), + 43: uint16(39952), + 44: uint16(35435), + 45: uint16(34241), + 46: uint16(34152), + 47: uint16(26880), + 48: uint16(28286), + 49: uint16(30871), + 50: uint16(33109), + }, + 47: { + 0: uint16(24332), + 1: uint16(19984), + 2: uint16(19989), + 3: uint16(20010), + 4: uint16(20017), + 5: uint16(20022), + 6: uint16(20028), + 7: uint16(20031), + 8: uint16(20034), + 9: uint16(20054), + 10: uint16(20056), + 11: uint16(20098), + 12: uint16(20101), + 13: uint16(35947), + 14: uint16(20106), + 15: uint16(33298), + 16: uint16(24333), + 17: uint16(20110), + 18: uint16(20126), + 19: uint16(20127), + 20: uint16(20128), + 21: uint16(20130), + 22: uint16(20144), + 23: uint16(20147), + 24: uint16(20150), + 25: uint16(20174), + 26: uint16(20173), + 27: uint16(20164), + 28: uint16(20166), + 29: uint16(20162), + 30: uint16(20183), + 31: uint16(20190), + 32: uint16(20205), + 33: uint16(20191), + 34: uint16(20215), + 35: uint16(20233), + 36: uint16(20314), + 37: uint16(20272), + 38: uint16(20315), + 39: uint16(20317), + 40: uint16(20311), + 41: uint16(20295), + 42: uint16(20342), + 43: uint16(20360), + 44: uint16(20367), + 45: uint16(20376), + 46: uint16(20347), + 47: uint16(20329), + 48: uint16(20336), + 49: uint16(20369), + 50: uint16(20335), + 51: uint16(20358), + 52: uint16(20374), + 53: uint16(20760), + 54: uint16(20436), + 55: uint16(20447), + 56: uint16(20430), + 57: uint16(20440), + 58: uint16(20443), + 59: uint16(20433), + 60: uint16(20442), + 61: uint16(20432), + 62: uint16(20452), + 63: uint16(20453), + 64: uint16(20506), + 65: uint16(20520), + 66: uint16(20500), + 67: uint16(20522), + 68: uint16(20517), + 69: uint16(20485), + 70: uint16(20252), + 71: uint16(20470), + 72: uint16(20513), + 73: uint16(20521), + 74: uint16(20524), + 75: uint16(20478), + 76: uint16(20463), + 77: uint16(20497), + 78: uint16(20486), + 79: uint16(20547), + 80: uint16(20551), + 81: uint16(26371), + 82: uint16(20565), + 83: uint16(20560), + 84: uint16(20552), + 85: uint16(20570), + 86: uint16(20566), + 87: uint16(20588), + 88: uint16(20600), + 89: uint16(20608), + 90: uint16(20634), + 91: uint16(20613), + 92: uint16(20660), + 93: uint16(20658), + }, + 48: { + 0: uint16(20681), + 1: uint16(20682), + 2: uint16(20659), + 3: uint16(20674), + 4: uint16(20694), + 5: uint16(20702), + 6: uint16(20709), + 7: uint16(20717), + 8: uint16(20707), + 9: uint16(20718), + 10: uint16(20729), + 11: uint16(20725), + 12: uint16(20745), + 13: uint16(20737), + 14: uint16(20738), + 15: uint16(20758), + 16: uint16(20757), + 17: uint16(20756), + 18: uint16(20762), + 19: uint16(20769), + 20: uint16(20794), + 21: uint16(20791), + 22: uint16(20796), + 23: uint16(20795), + 24: uint16(20799), + 25: uint16(20800), + 26: uint16(20818), + 27: uint16(20812), + 28: uint16(20820), + 29: uint16(20834), + 30: uint16(31480), + 31: uint16(20841), + 32: uint16(20842), + 33: uint16(20846), + 34: uint16(20864), + 35: uint16(20866), + 36: uint16(22232), + 37: uint16(20876), + 38: uint16(20873), + 39: uint16(20879), + 40: uint16(20881), + 41: uint16(20883), + 42: uint16(20885), + 43: uint16(20886), + 44: uint16(20900), + 45: uint16(20902), + 46: uint16(20898), + 47: uint16(20905), + 48: uint16(20906), + 49: uint16(20907), + 50: uint16(20915), + 51: uint16(20913), + 52: uint16(20914), + 53: uint16(20912), + 54: uint16(20917), + 55: uint16(20925), + 56: uint16(20933), + 57: uint16(20937), + 58: uint16(20955), + 59: uint16(20960), + 60: uint16(34389), + 61: uint16(20969), + 62: uint16(20973), + 63: uint16(20976), + 64: uint16(20981), + 65: uint16(20990), + 66: uint16(20996), + 67: uint16(21003), + 68: uint16(21012), + 69: uint16(21006), + 70: uint16(21031), + 71: uint16(21034), + 72: uint16(21038), + 73: uint16(21043), + 74: uint16(21049), + 75: uint16(21071), + 76: uint16(21060), + 77: uint16(21067), + 78: uint16(21068), + 79: uint16(21086), + 80: uint16(21076), + 81: uint16(21098), + 82: uint16(21108), + 83: uint16(21097), + 84: uint16(21107), + 85: uint16(21119), + 86: uint16(21117), + 87: uint16(21133), + 88: uint16(21140), + 89: uint16(21138), + 90: uint16(21105), + 91: uint16(21128), + 92: uint16(21137), + 93: uint16(36776), + }, + 49: { + 0: uint16(36775), + 1: uint16(21164), + 2: uint16(21165), + 3: uint16(21180), + 4: uint16(21173), + 5: uint16(21185), + 6: uint16(21197), + 7: uint16(21207), + 8: uint16(21214), + 9: uint16(21219), + 10: uint16(21222), + 11: uint16(39149), + 12: uint16(21216), + 13: uint16(21235), + 14: uint16(21237), + 15: uint16(21240), + 16: uint16(21241), + 17: uint16(21254), + 18: uint16(21256), + 19: uint16(30008), + 20: uint16(21261), + 21: uint16(21264), + 22: uint16(21263), + 23: uint16(21269), + 24: uint16(21274), + 25: uint16(21283), + 26: uint16(21295), + 27: uint16(21297), + 28: uint16(21299), + 29: uint16(21304), + 30: uint16(21312), + 31: uint16(21318), + 32: uint16(21317), + 33: uint16(19991), + 34: uint16(21321), + 35: uint16(21325), + 36: uint16(20950), + 37: uint16(21342), + 38: uint16(21353), + 39: uint16(21358), + 40: uint16(22808), + 41: uint16(21371), + 42: uint16(21367), + 43: uint16(21378), + 44: uint16(21398), + 45: uint16(21408), + 46: uint16(21414), + 47: uint16(21413), + 48: uint16(21422), + 49: uint16(21424), + 50: uint16(21430), + 51: uint16(21443), + 52: uint16(31762), + 53: uint16(38617), + 54: uint16(21471), + 55: uint16(26364), + 56: uint16(29166), + 57: uint16(21486), + 58: uint16(21480), + 59: uint16(21485), + 60: uint16(21498), + 61: uint16(21505), + 62: uint16(21565), + 63: uint16(21568), + 64: uint16(21548), + 65: uint16(21549), + 66: uint16(21564), + 67: uint16(21550), + 68: uint16(21558), + 69: uint16(21545), + 70: uint16(21533), + 71: uint16(21582), + 72: uint16(21647), + 73: uint16(21621), + 74: uint16(21646), + 75: uint16(21599), + 76: uint16(21617), + 77: uint16(21623), + 78: uint16(21616), + 79: uint16(21650), + 80: uint16(21627), + 81: uint16(21632), + 82: uint16(21622), + 83: uint16(21636), + 84: uint16(21648), + 85: uint16(21638), + 86: uint16(21703), + 87: uint16(21666), + 88: uint16(21688), + 89: uint16(21669), + 90: uint16(21676), + 91: uint16(21700), + 92: uint16(21704), + 93: uint16(21672), + }, + 50: { + 0: uint16(21675), + 1: uint16(21698), + 2: uint16(21668), + 3: uint16(21694), + 4: uint16(21692), + 5: uint16(21720), + 6: uint16(21733), + 7: uint16(21734), + 8: uint16(21775), + 9: uint16(21780), + 10: uint16(21757), + 11: uint16(21742), + 12: uint16(21741), + 13: uint16(21754), + 14: uint16(21730), + 15: uint16(21817), + 16: uint16(21824), + 17: uint16(21859), + 18: uint16(21836), + 19: uint16(21806), + 20: uint16(21852), + 21: uint16(21829), + 22: uint16(21846), + 23: uint16(21847), + 24: uint16(21816), + 25: uint16(21811), + 26: uint16(21853), + 27: uint16(21913), + 28: uint16(21888), + 29: uint16(21679), + 30: uint16(21898), + 31: uint16(21919), + 32: uint16(21883), + 33: uint16(21886), + 34: uint16(21912), + 35: uint16(21918), + 36: uint16(21934), + 37: uint16(21884), + 38: uint16(21891), + 39: uint16(21929), + 40: uint16(21895), + 41: uint16(21928), + 42: uint16(21978), + 43: uint16(21957), + 44: uint16(21983), + 45: uint16(21956), + 46: uint16(21980), + 47: uint16(21988), + 48: uint16(21972), + 49: uint16(22036), + 50: uint16(22007), + 51: uint16(22038), + 52: uint16(22014), + 53: uint16(22013), + 54: uint16(22043), + 55: uint16(22009), + 56: uint16(22094), + 57: uint16(22096), + 58: uint16(29151), + 59: uint16(22068), + 60: uint16(22070), + 61: uint16(22066), + 62: uint16(22072), + 63: uint16(22123), + 64: uint16(22116), + 65: uint16(22063), + 66: uint16(22124), + 67: uint16(22122), + 68: uint16(22150), + 69: uint16(22144), + 70: uint16(22154), + 71: uint16(22176), + 72: uint16(22164), + 73: uint16(22159), + 74: uint16(22181), + 75: uint16(22190), + 76: uint16(22198), + 77: uint16(22196), + 78: uint16(22210), + 79: uint16(22204), + 80: uint16(22209), + 81: uint16(22211), + 82: uint16(22208), + 83: uint16(22216), + 84: uint16(22222), + 85: uint16(22225), + 86: uint16(22227), + 87: uint16(22231), + 88: uint16(22254), + 89: uint16(22265), + 90: uint16(22272), + 91: uint16(22271), + 92: uint16(22276), + 93: uint16(22281), + }, + 51: { + 0: uint16(22280), + 1: uint16(22283), + 2: uint16(22285), + 3: uint16(22291), + 4: uint16(22296), + 5: uint16(22294), + 6: uint16(21959), + 7: uint16(22300), + 8: uint16(22310), + 9: uint16(22327), + 10: uint16(22328), + 11: uint16(22350), + 12: uint16(22331), + 13: uint16(22336), + 14: uint16(22351), + 15: uint16(22377), + 16: uint16(22464), + 17: uint16(22408), + 18: uint16(22369), + 19: uint16(22399), + 20: uint16(22409), + 21: uint16(22419), + 22: uint16(22432), + 23: uint16(22451), + 24: uint16(22436), + 25: uint16(22442), + 26: uint16(22448), + 27: uint16(22467), + 28: uint16(22470), + 29: uint16(22484), + 30: uint16(22482), + 31: uint16(22483), + 32: uint16(22538), + 33: uint16(22486), + 34: uint16(22499), + 35: uint16(22539), + 36: uint16(22553), + 37: uint16(22557), + 38: uint16(22642), + 39: uint16(22561), + 40: uint16(22626), + 41: uint16(22603), + 42: uint16(22640), + 43: uint16(27584), + 44: uint16(22610), + 45: uint16(22589), + 46: uint16(22649), + 47: uint16(22661), + 48: uint16(22713), + 49: uint16(22687), + 50: uint16(22699), + 51: uint16(22714), + 52: uint16(22750), + 53: uint16(22715), + 54: uint16(22712), + 55: uint16(22702), + 56: uint16(22725), + 57: uint16(22739), + 58: uint16(22737), + 59: uint16(22743), + 60: uint16(22745), + 61: uint16(22744), + 62: uint16(22757), + 63: uint16(22748), + 64: uint16(22756), + 65: uint16(22751), + 66: uint16(22767), + 67: uint16(22778), + 68: uint16(22777), + 69: uint16(22779), + 70: uint16(22780), + 71: uint16(22781), + 72: uint16(22786), + 73: uint16(22794), + 74: uint16(22800), + 75: uint16(22811), + 76: uint16(26790), + 77: uint16(22821), + 78: uint16(22828), + 79: uint16(22829), + 80: uint16(22834), + 81: uint16(22840), + 82: uint16(22846), + 83: uint16(31442), + 84: uint16(22869), + 85: uint16(22864), + 86: uint16(22862), + 87: uint16(22874), + 88: uint16(22872), + 89: uint16(22882), + 90: uint16(22880), + 91: uint16(22887), + 92: uint16(22892), + 93: uint16(22889), + }, + 52: { + 0: uint16(22904), + 1: uint16(22913), + 2: uint16(22941), + 3: uint16(20318), + 4: uint16(20395), + 5: uint16(22947), + 6: uint16(22962), + 7: uint16(22982), + 8: uint16(23016), + 9: uint16(23004), + 10: uint16(22925), + 11: uint16(23001), + 12: uint16(23002), + 13: uint16(23077), + 14: uint16(23071), + 15: uint16(23057), + 16: uint16(23068), + 17: uint16(23049), + 18: uint16(23066), + 19: uint16(23104), + 20: uint16(23148), + 21: uint16(23113), + 22: uint16(23093), + 23: uint16(23094), + 24: uint16(23138), + 25: uint16(23146), + 26: uint16(23194), + 27: uint16(23228), + 28: uint16(23230), + 29: uint16(23243), + 30: uint16(23234), + 31: uint16(23229), + 32: uint16(23267), + 33: uint16(23255), + 34: uint16(23270), + 35: uint16(23273), + 36: uint16(23254), + 37: uint16(23290), + 38: uint16(23291), + 39: uint16(23308), + 40: uint16(23307), + 41: uint16(23318), + 42: uint16(23346), + 43: uint16(23248), + 44: uint16(23338), + 45: uint16(23350), + 46: uint16(23358), + 47: uint16(23363), + 48: uint16(23365), + 49: uint16(23360), + 50: uint16(23377), + 51: uint16(23381), + 52: uint16(23386), + 53: uint16(23387), + 54: uint16(23397), + 55: uint16(23401), + 56: uint16(23408), + 57: uint16(23411), + 58: uint16(23413), + 59: uint16(23416), + 60: uint16(25992), + 61: uint16(23418), + 62: uint16(23424), + 63: uint16(23427), + 64: uint16(23462), + 65: uint16(23480), + 66: uint16(23491), + 67: uint16(23495), + 68: uint16(23497), + 69: uint16(23508), + 70: uint16(23504), + 71: uint16(23524), + 72: uint16(23526), + 73: uint16(23522), + 74: uint16(23518), + 75: uint16(23525), + 76: uint16(23531), + 77: uint16(23536), + 78: uint16(23542), + 79: uint16(23539), + 80: uint16(23557), + 81: uint16(23559), + 82: uint16(23560), + 83: uint16(23565), + 84: uint16(23571), + 85: uint16(23584), + 86: uint16(23586), + 87: uint16(23592), + 88: uint16(23608), + 89: uint16(23609), + 90: uint16(23617), + 91: uint16(23622), + 92: uint16(23630), + 93: uint16(23635), + }, + 53: { + 0: uint16(23632), + 1: uint16(23631), + 2: uint16(23409), + 3: uint16(23660), + 4: uint16(23662), + 5: uint16(20066), + 6: uint16(23670), + 7: uint16(23673), + 8: uint16(23692), + 9: uint16(23697), + 10: uint16(23700), + 11: uint16(22939), + 12: uint16(23723), + 13: uint16(23739), + 14: uint16(23734), + 15: uint16(23740), + 16: uint16(23735), + 17: uint16(23749), + 18: uint16(23742), + 19: uint16(23751), + 20: uint16(23769), + 21: uint16(23785), + 22: uint16(23805), + 23: uint16(23802), + 24: uint16(23789), + 25: uint16(23948), + 26: uint16(23786), + 27: uint16(23819), + 28: uint16(23829), + 29: uint16(23831), + 30: uint16(23900), + 31: uint16(23839), + 32: uint16(23835), + 33: uint16(23825), + 34: uint16(23828), + 35: uint16(23842), + 36: uint16(23834), + 37: uint16(23833), + 38: uint16(23832), + 39: uint16(23884), + 40: uint16(23890), + 41: uint16(23886), + 42: uint16(23883), + 43: uint16(23916), + 44: uint16(23923), + 45: uint16(23926), + 46: uint16(23943), + 47: uint16(23940), + 48: uint16(23938), + 49: uint16(23970), + 50: uint16(23965), + 51: uint16(23980), + 52: uint16(23982), + 53: uint16(23997), + 54: uint16(23952), + 55: uint16(23991), + 56: uint16(23996), + 57: uint16(24009), + 58: uint16(24013), + 59: uint16(24019), + 60: uint16(24018), + 61: uint16(24022), + 62: uint16(24027), + 63: uint16(24043), + 64: uint16(24050), + 65: uint16(24053), + 66: uint16(24075), + 67: uint16(24090), + 68: uint16(24089), + 69: uint16(24081), + 70: uint16(24091), + 71: uint16(24118), + 72: uint16(24119), + 73: uint16(24132), + 74: uint16(24131), + 75: uint16(24128), + 76: uint16(24142), + 77: uint16(24151), + 78: uint16(24148), + 79: uint16(24159), + 80: uint16(24162), + 81: uint16(24164), + 82: uint16(24135), + 83: uint16(24181), + 84: uint16(24182), + 85: uint16(24186), + 86: uint16(40636), + 87: uint16(24191), + 88: uint16(24224), + 89: uint16(24257), + 90: uint16(24258), + 91: uint16(24264), + 92: uint16(24272), + 93: uint16(24271), + }, + 54: { + 0: uint16(24278), + 1: uint16(24291), + 2: uint16(24285), + 3: uint16(24282), + 4: uint16(24283), + 5: uint16(24290), + 6: uint16(24289), + 7: uint16(24296), + 8: uint16(24297), + 9: uint16(24300), + 10: uint16(24305), + 11: uint16(24307), + 12: uint16(24304), + 13: uint16(24308), + 14: uint16(24312), + 15: uint16(24318), + 16: uint16(24323), + 17: uint16(24329), + 18: uint16(24413), + 19: uint16(24412), + 20: uint16(24331), + 21: uint16(24337), + 22: uint16(24342), + 23: uint16(24361), + 24: uint16(24365), + 25: uint16(24376), + 26: uint16(24385), + 27: uint16(24392), + 28: uint16(24396), + 29: uint16(24398), + 30: uint16(24367), + 31: uint16(24401), + 32: uint16(24406), + 33: uint16(24407), + 34: uint16(24409), + 35: uint16(24417), + 36: uint16(24429), + 37: uint16(24435), + 38: uint16(24439), + 39: uint16(24451), + 40: uint16(24450), + 41: uint16(24447), + 42: uint16(24458), + 43: uint16(24456), + 44: uint16(24465), + 45: uint16(24455), + 46: uint16(24478), + 47: uint16(24473), + 48: uint16(24472), + 49: uint16(24480), + 50: uint16(24488), + 51: uint16(24493), + 52: uint16(24508), + 53: uint16(24534), + 54: uint16(24571), + 55: uint16(24548), + 56: uint16(24568), + 57: uint16(24561), + 58: uint16(24541), + 59: uint16(24755), + 60: uint16(24575), + 61: uint16(24609), + 62: uint16(24672), + 63: uint16(24601), + 64: uint16(24592), + 65: uint16(24617), + 66: uint16(24590), + 67: uint16(24625), + 68: uint16(24603), + 69: uint16(24597), + 70: uint16(24619), + 71: uint16(24614), + 72: uint16(24591), + 73: uint16(24634), + 74: uint16(24666), + 75: uint16(24641), + 76: uint16(24682), + 77: uint16(24695), + 78: uint16(24671), + 79: uint16(24650), + 80: uint16(24646), + 81: uint16(24653), + 82: uint16(24675), + 83: uint16(24643), + 84: uint16(24676), + 85: uint16(24642), + 86: uint16(24684), + 87: uint16(24683), + 88: uint16(24665), + 89: uint16(24705), + 90: uint16(24717), + 91: uint16(24807), + 92: uint16(24707), + 93: uint16(24730), + }, + 55: { + 0: uint16(24708), + 1: uint16(24731), + 2: uint16(24726), + 3: uint16(24727), + 4: uint16(24722), + 5: uint16(24743), + 6: uint16(24715), + 7: uint16(24801), + 8: uint16(24760), + 9: uint16(24800), + 10: uint16(24787), + 11: uint16(24756), + 12: uint16(24560), + 13: uint16(24765), + 14: uint16(24774), + 15: uint16(24757), + 16: uint16(24792), + 17: uint16(24909), + 18: uint16(24853), + 19: uint16(24838), + 20: uint16(24822), + 21: uint16(24823), + 22: uint16(24832), + 23: uint16(24820), + 24: uint16(24826), + 25: uint16(24835), + 26: uint16(24865), + 27: uint16(24827), + 28: uint16(24817), + 29: uint16(24845), + 30: uint16(24846), + 31: uint16(24903), + 32: uint16(24894), + 33: uint16(24872), + 34: uint16(24871), + 35: uint16(24906), + 36: uint16(24895), + 37: uint16(24892), + 38: uint16(24876), + 39: uint16(24884), + 40: uint16(24893), + 41: uint16(24898), + 42: uint16(24900), + 43: uint16(24947), + 44: uint16(24951), + 45: uint16(24920), + 46: uint16(24921), + 47: uint16(24922), + 48: uint16(24939), + 49: uint16(24948), + 50: uint16(24943), + 51: uint16(24933), + 52: uint16(24945), + 53: uint16(24927), + 54: uint16(24925), + 55: uint16(24915), + 56: uint16(24949), + 57: uint16(24985), + 58: uint16(24982), + 59: uint16(24967), + 60: uint16(25004), + 61: uint16(24980), + 62: uint16(24986), + 63: uint16(24970), + 64: uint16(24977), + 65: uint16(25003), + 66: uint16(25006), + 67: uint16(25036), + 68: uint16(25034), + 69: uint16(25033), + 70: uint16(25079), + 71: uint16(25032), + 72: uint16(25027), + 73: uint16(25030), + 74: uint16(25018), + 75: uint16(25035), + 76: uint16(32633), + 77: uint16(25037), + 78: uint16(25062), + 79: uint16(25059), + 80: uint16(25078), + 81: uint16(25082), + 82: uint16(25076), + 83: uint16(25087), + 84: uint16(25085), + 85: uint16(25084), + 86: uint16(25086), + 87: uint16(25088), + 88: uint16(25096), + 89: uint16(25097), + 90: uint16(25101), + 91: uint16(25100), + 92: uint16(25108), + 93: uint16(25115), + }, + 56: { + 0: uint16(25118), + 1: uint16(25121), + 2: uint16(25130), + 3: uint16(25134), + 4: uint16(25136), + 5: uint16(25138), + 6: uint16(25139), + 7: uint16(25153), + 8: uint16(25166), + 9: uint16(25182), + 10: uint16(25187), + 11: uint16(25179), + 12: uint16(25184), + 13: uint16(25192), + 14: uint16(25212), + 15: uint16(25218), + 16: uint16(25225), + 17: uint16(25214), + 18: uint16(25234), + 19: uint16(25235), + 20: uint16(25238), + 21: uint16(25300), + 22: uint16(25219), + 23: uint16(25236), + 24: uint16(25303), + 25: uint16(25297), + 26: uint16(25275), + 27: uint16(25295), + 28: uint16(25343), + 29: uint16(25286), + 30: uint16(25812), + 31: uint16(25288), + 32: uint16(25308), + 33: uint16(25292), + 34: uint16(25290), + 35: uint16(25282), + 36: uint16(25287), + 37: uint16(25243), + 38: uint16(25289), + 39: uint16(25356), + 40: uint16(25326), + 41: uint16(25329), + 42: uint16(25383), + 43: uint16(25346), + 44: uint16(25352), + 45: uint16(25327), + 46: uint16(25333), + 47: uint16(25424), + 48: uint16(25406), + 49: uint16(25421), + 50: uint16(25628), + 51: uint16(25423), + 52: uint16(25494), + 53: uint16(25486), + 54: uint16(25472), + 55: uint16(25515), + 56: uint16(25462), + 57: uint16(25507), + 58: uint16(25487), + 59: uint16(25481), + 60: uint16(25503), + 61: uint16(25525), + 62: uint16(25451), + 63: uint16(25449), + 64: uint16(25534), + 65: uint16(25577), + 66: uint16(25536), + 67: uint16(25542), + 68: uint16(25571), + 69: uint16(25545), + 70: uint16(25554), + 71: uint16(25590), + 72: uint16(25540), + 73: uint16(25622), + 74: uint16(25652), + 75: uint16(25606), + 76: uint16(25619), + 77: uint16(25638), + 78: uint16(25654), + 79: uint16(25885), + 80: uint16(25623), + 81: uint16(25640), + 82: uint16(25615), + 83: uint16(25703), + 84: uint16(25711), + 85: uint16(25718), + 86: uint16(25678), + 87: uint16(25898), + 88: uint16(25749), + 89: uint16(25747), + 90: uint16(25765), + 91: uint16(25769), + 92: uint16(25736), + 93: uint16(25788), + }, + 57: { + 0: uint16(25818), + 1: uint16(25810), + 2: uint16(25797), + 3: uint16(25799), + 4: uint16(25787), + 5: uint16(25816), + 6: uint16(25794), + 7: uint16(25841), + 8: uint16(25831), + 9: uint16(33289), + 10: uint16(25824), + 11: uint16(25825), + 12: uint16(25260), + 13: uint16(25827), + 14: uint16(25839), + 15: uint16(25900), + 16: uint16(25846), + 17: uint16(25844), + 18: uint16(25842), + 19: uint16(25850), + 20: uint16(25856), + 21: uint16(25853), + 22: uint16(25880), + 23: uint16(25884), + 24: uint16(25861), + 25: uint16(25892), + 26: uint16(25891), + 27: uint16(25899), + 28: uint16(25908), + 29: uint16(25909), + 30: uint16(25911), + 31: uint16(25910), + 32: uint16(25912), + 33: uint16(30027), + 34: uint16(25928), + 35: uint16(25942), + 36: uint16(25941), + 37: uint16(25933), + 38: uint16(25944), + 39: uint16(25950), + 40: uint16(25949), + 41: uint16(25970), + 42: uint16(25976), + 43: uint16(25986), + 44: uint16(25987), + 45: uint16(35722), + 46: uint16(26011), + 47: uint16(26015), + 48: uint16(26027), + 49: uint16(26039), + 50: uint16(26051), + 51: uint16(26054), + 52: uint16(26049), + 53: uint16(26052), + 54: uint16(26060), + 55: uint16(26066), + 56: uint16(26075), + 57: uint16(26073), + 58: uint16(26080), + 59: uint16(26081), + 60: uint16(26097), + 61: uint16(26482), + 62: uint16(26122), + 63: uint16(26115), + 64: uint16(26107), + 65: uint16(26483), + 66: uint16(26165), + 67: uint16(26166), + 68: uint16(26164), + 69: uint16(26140), + 70: uint16(26191), + 71: uint16(26180), + 72: uint16(26185), + 73: uint16(26177), + 74: uint16(26206), + 75: uint16(26205), + 76: uint16(26212), + 77: uint16(26215), + 78: uint16(26216), + 79: uint16(26207), + 80: uint16(26210), + 81: uint16(26224), + 82: uint16(26243), + 83: uint16(26248), + 84: uint16(26254), + 85: uint16(26249), + 86: uint16(26244), + 87: uint16(26264), + 88: uint16(26269), + 89: uint16(26305), + 90: uint16(26297), + 91: uint16(26313), + 92: uint16(26302), + 93: uint16(26300), + }, + 58: { + 0: uint16(26308), + 1: uint16(26296), + 2: uint16(26326), + 3: uint16(26330), + 4: uint16(26336), + 5: uint16(26175), + 6: uint16(26342), + 7: uint16(26345), + 8: uint16(26352), + 9: uint16(26357), + 10: uint16(26359), + 11: uint16(26383), + 12: uint16(26390), + 13: uint16(26398), + 14: uint16(26406), + 15: uint16(26407), + 16: uint16(38712), + 17: uint16(26414), + 18: uint16(26431), + 19: uint16(26422), + 20: uint16(26433), + 21: uint16(26424), + 22: uint16(26423), + 23: uint16(26438), + 24: uint16(26462), + 25: uint16(26464), + 26: uint16(26457), + 27: uint16(26467), + 28: uint16(26468), + 29: uint16(26505), + 30: uint16(26480), + 31: uint16(26537), + 32: uint16(26492), + 33: uint16(26474), + 34: uint16(26508), + 35: uint16(26507), + 36: uint16(26534), + 37: uint16(26529), + 38: uint16(26501), + 39: uint16(26551), + 40: uint16(26607), + 41: uint16(26548), + 42: uint16(26604), + 43: uint16(26547), + 44: uint16(26601), + 45: uint16(26552), + 46: uint16(26596), + 47: uint16(26590), + 48: uint16(26589), + 49: uint16(26594), + 50: uint16(26606), + 51: uint16(26553), + 52: uint16(26574), + 53: uint16(26566), + 54: uint16(26599), + 55: uint16(27292), + 56: uint16(26654), + 57: uint16(26694), + 58: uint16(26665), + 59: uint16(26688), + 60: uint16(26701), + 61: uint16(26674), + 62: uint16(26702), + 63: uint16(26803), + 64: uint16(26667), + 65: uint16(26713), + 66: uint16(26723), + 67: uint16(26743), + 68: uint16(26751), + 69: uint16(26783), + 70: uint16(26767), + 71: uint16(26797), + 72: uint16(26772), + 73: uint16(26781), + 74: uint16(26779), + 75: uint16(26755), + 76: uint16(27310), + 77: uint16(26809), + 78: uint16(26740), + 79: uint16(26805), + 80: uint16(26784), + 81: uint16(26810), + 82: uint16(26895), + 83: uint16(26765), + 84: uint16(26750), + 85: uint16(26881), + 86: uint16(26826), + 87: uint16(26888), + 88: uint16(26840), + 89: uint16(26914), + 90: uint16(26918), + 91: uint16(26849), + 92: uint16(26892), + 93: uint16(26829), + }, + 59: { + 0: uint16(26836), + 1: uint16(26855), + 2: uint16(26837), + 3: uint16(26934), + 4: uint16(26898), + 5: uint16(26884), + 6: uint16(26839), + 7: uint16(26851), + 8: uint16(26917), + 9: uint16(26873), + 10: uint16(26848), + 11: uint16(26863), + 12: uint16(26920), + 13: uint16(26922), + 14: uint16(26906), + 15: uint16(26915), + 16: uint16(26913), + 17: uint16(26822), + 18: uint16(27001), + 19: uint16(26999), + 20: uint16(26972), + 21: uint16(27000), + 22: uint16(26987), + 23: uint16(26964), + 24: uint16(27006), + 25: uint16(26990), + 26: uint16(26937), + 27: uint16(26996), + 28: uint16(26941), + 29: uint16(26969), + 30: uint16(26928), + 31: uint16(26977), + 32: uint16(26974), + 33: uint16(26973), + 34: uint16(27009), + 35: uint16(26986), + 36: uint16(27058), + 37: uint16(27054), + 38: uint16(27088), + 39: uint16(27071), + 40: uint16(27073), + 41: uint16(27091), + 42: uint16(27070), + 43: uint16(27086), + 44: uint16(23528), + 45: uint16(27082), + 46: uint16(27101), + 47: uint16(27067), + 48: uint16(27075), + 49: uint16(27047), + 50: uint16(27182), + 51: uint16(27025), + 52: uint16(27040), + 53: uint16(27036), + 54: uint16(27029), + 55: uint16(27060), + 56: uint16(27102), + 57: uint16(27112), + 58: uint16(27138), + 59: uint16(27163), + 60: uint16(27135), + 61: uint16(27402), + 62: uint16(27129), + 63: uint16(27122), + 64: uint16(27111), + 65: uint16(27141), + 66: uint16(27057), + 67: uint16(27166), + 68: uint16(27117), + 69: uint16(27156), + 70: uint16(27115), + 71: uint16(27146), + 72: uint16(27154), + 73: uint16(27329), + 74: uint16(27171), + 75: uint16(27155), + 76: uint16(27204), + 77: uint16(27148), + 78: uint16(27250), + 79: uint16(27190), + 80: uint16(27256), + 81: uint16(27207), + 82: uint16(27234), + 83: uint16(27225), + 84: uint16(27238), + 85: uint16(27208), + 86: uint16(27192), + 87: uint16(27170), + 88: uint16(27280), + 89: uint16(27277), + 90: uint16(27296), + 91: uint16(27268), + 92: uint16(27298), + 93: uint16(27299), + }, + 60: { + 0: uint16(27287), + 1: uint16(34327), + 2: uint16(27323), + 3: uint16(27331), + 4: uint16(27330), + 5: uint16(27320), + 6: uint16(27315), + 7: uint16(27308), + 8: uint16(27358), + 9: uint16(27345), + 10: uint16(27359), + 11: uint16(27306), + 12: uint16(27354), + 13: uint16(27370), + 14: uint16(27387), + 15: uint16(27397), + 16: uint16(34326), + 17: uint16(27386), + 18: uint16(27410), + 19: uint16(27414), + 20: uint16(39729), + 21: uint16(27423), + 22: uint16(27448), + 23: uint16(27447), + 24: uint16(30428), + 25: uint16(27449), + 26: uint16(39150), + 27: uint16(27463), + 28: uint16(27459), + 29: uint16(27465), + 30: uint16(27472), + 31: uint16(27481), + 32: uint16(27476), + 33: uint16(27483), + 34: uint16(27487), + 35: uint16(27489), + 36: uint16(27512), + 37: uint16(27513), + 38: uint16(27519), + 39: uint16(27520), + 40: uint16(27524), + 41: uint16(27523), + 42: uint16(27533), + 43: uint16(27544), + 44: uint16(27541), + 45: uint16(27550), + 46: uint16(27556), + 47: uint16(27562), + 48: uint16(27563), + 49: uint16(27567), + 50: uint16(27570), + 51: uint16(27569), + 52: uint16(27571), + 53: uint16(27575), + 54: uint16(27580), + 55: uint16(27590), + 56: uint16(27595), + 57: uint16(27603), + 58: uint16(27615), + 59: uint16(27628), + 60: uint16(27627), + 61: uint16(27635), + 62: uint16(27631), + 63: uint16(40638), + 64: uint16(27656), + 65: uint16(27667), + 66: uint16(27668), + 67: uint16(27675), + 68: uint16(27684), + 69: uint16(27683), + 70: uint16(27742), + 71: uint16(27733), + 72: uint16(27746), + 73: uint16(27754), + 74: uint16(27778), + 75: uint16(27789), + 76: uint16(27802), + 77: uint16(27777), + 78: uint16(27803), + 79: uint16(27774), + 80: uint16(27752), + 81: uint16(27763), + 82: uint16(27794), + 83: uint16(27792), + 84: uint16(27844), + 85: uint16(27889), + 86: uint16(27859), + 87: uint16(27837), + 88: uint16(27863), + 89: uint16(27845), + 90: uint16(27869), + 91: uint16(27822), + 92: uint16(27825), + 93: uint16(27838), + }, + 61: { + 0: uint16(27834), + 1: uint16(27867), + 2: uint16(27887), + 3: uint16(27865), + 4: uint16(27882), + 5: uint16(27935), + 6: uint16(34893), + 7: uint16(27958), + 8: uint16(27947), + 9: uint16(27965), + 10: uint16(27960), + 11: uint16(27929), + 12: uint16(27957), + 13: uint16(27955), + 14: uint16(27922), + 15: uint16(27916), + 16: uint16(28003), + 17: uint16(28051), + 18: uint16(28004), + 19: uint16(27994), + 20: uint16(28025), + 21: uint16(27993), + 22: uint16(28046), + 23: uint16(28053), + 24: uint16(28644), + 25: uint16(28037), + 26: uint16(28153), + 27: uint16(28181), + 28: uint16(28170), + 29: uint16(28085), + 30: uint16(28103), + 31: uint16(28134), + 32: uint16(28088), + 33: uint16(28102), + 34: uint16(28140), + 35: uint16(28126), + 36: uint16(28108), + 37: uint16(28136), + 38: uint16(28114), + 39: uint16(28101), + 40: uint16(28154), + 41: uint16(28121), + 42: uint16(28132), + 43: uint16(28117), + 44: uint16(28138), + 45: uint16(28142), + 46: uint16(28205), + 47: uint16(28270), + 48: uint16(28206), + 49: uint16(28185), + 50: uint16(28274), + 51: uint16(28255), + 52: uint16(28222), + 53: uint16(28195), + 54: uint16(28267), + 55: uint16(28203), + 56: uint16(28278), + 57: uint16(28237), + 58: uint16(28191), + 59: uint16(28227), + 60: uint16(28218), + 61: uint16(28238), + 62: uint16(28196), + 63: uint16(28415), + 64: uint16(28189), + 65: uint16(28216), + 66: uint16(28290), + 67: uint16(28330), + 68: uint16(28312), + 69: uint16(28361), + 70: uint16(28343), + 71: uint16(28371), + 72: uint16(28349), + 73: uint16(28335), + 74: uint16(28356), + 75: uint16(28338), + 76: uint16(28372), + 77: uint16(28373), + 78: uint16(28303), + 79: uint16(28325), + 80: uint16(28354), + 81: uint16(28319), + 82: uint16(28481), + 83: uint16(28433), + 84: uint16(28748), + 85: uint16(28396), + 86: uint16(28408), + 87: uint16(28414), + 88: uint16(28479), + 89: uint16(28402), + 90: uint16(28465), + 91: uint16(28399), + 92: uint16(28466), + 93: uint16(28364), + }, + 62: { + 0: uint16(28478), + 1: uint16(28435), + 2: uint16(28407), + 3: uint16(28550), + 4: uint16(28538), + 5: uint16(28536), + 6: uint16(28545), + 7: uint16(28544), + 8: uint16(28527), + 9: uint16(28507), + 10: uint16(28659), + 11: uint16(28525), + 12: uint16(28546), + 13: uint16(28540), + 14: uint16(28504), + 15: uint16(28558), + 16: uint16(28561), + 17: uint16(28610), + 18: uint16(28518), + 19: uint16(28595), + 20: uint16(28579), + 21: uint16(28577), + 22: uint16(28580), + 23: uint16(28601), + 24: uint16(28614), + 25: uint16(28586), + 26: uint16(28639), + 27: uint16(28629), + 28: uint16(28652), + 29: uint16(28628), + 30: uint16(28632), + 31: uint16(28657), + 32: uint16(28654), + 33: uint16(28635), + 34: uint16(28681), + 35: uint16(28683), + 36: uint16(28666), + 37: uint16(28689), + 38: uint16(28673), + 39: uint16(28687), + 40: uint16(28670), + 41: uint16(28699), + 42: uint16(28698), + 43: uint16(28532), + 44: uint16(28701), + 45: uint16(28696), + 46: uint16(28703), + 47: uint16(28720), + 48: uint16(28734), + 49: uint16(28722), + 50: uint16(28753), + 51: uint16(28771), + 52: uint16(28825), + 53: uint16(28818), + 54: uint16(28847), + 55: uint16(28913), + 56: uint16(28844), + 57: uint16(28856), + 58: uint16(28851), + 59: uint16(28846), + 60: uint16(28895), + 61: uint16(28875), + 62: uint16(28893), + 63: uint16(28889), + 64: uint16(28937), + 65: uint16(28925), + 66: uint16(28956), + 67: uint16(28953), + 68: uint16(29029), + 69: uint16(29013), + 70: uint16(29064), + 71: uint16(29030), + 72: uint16(29026), + 73: uint16(29004), + 74: uint16(29014), + 75: uint16(29036), + 76: uint16(29071), + 77: uint16(29179), + 78: uint16(29060), + 79: uint16(29077), + 80: uint16(29096), + 81: uint16(29100), + 82: uint16(29143), + 83: uint16(29113), + 84: uint16(29118), + 85: uint16(29138), + 86: uint16(29129), + 87: uint16(29140), + 88: uint16(29134), + 89: uint16(29152), + 90: uint16(29164), + 91: uint16(29159), + 92: uint16(29173), + 93: uint16(29180), + }, + 63: { + 0: uint16(29177), + 1: uint16(29183), + 2: uint16(29197), + 3: uint16(29200), + 4: uint16(29211), + 5: uint16(29224), + 6: uint16(29229), + 7: uint16(29228), + 8: uint16(29232), + 9: uint16(29234), + 10: uint16(29243), + 11: uint16(29244), + 12: uint16(29247), + 13: uint16(29248), + 14: uint16(29254), + 15: uint16(29259), + 16: uint16(29272), + 17: uint16(29300), + 18: uint16(29310), + 19: uint16(29314), + 20: uint16(29313), + 21: uint16(29319), + 22: uint16(29330), + 23: uint16(29334), + 24: uint16(29346), + 25: uint16(29351), + 26: uint16(29369), + 27: uint16(29362), + 28: uint16(29379), + 29: uint16(29382), + 30: uint16(29380), + 31: uint16(29390), + 32: uint16(29394), + 33: uint16(29410), + 34: uint16(29408), + 35: uint16(29409), + 36: uint16(29433), + 37: uint16(29431), + 38: uint16(20495), + 39: uint16(29463), + 40: uint16(29450), + 41: uint16(29468), + 42: uint16(29462), + 43: uint16(29469), + 44: uint16(29492), + 45: uint16(29487), + 46: uint16(29481), + 47: uint16(29477), + 48: uint16(29502), + 49: uint16(29518), + 50: uint16(29519), + 51: uint16(40664), + 52: uint16(29527), + 53: uint16(29546), + 54: uint16(29544), + 55: uint16(29552), + 56: uint16(29560), + 57: uint16(29557), + 58: uint16(29563), + 59: uint16(29562), + 60: uint16(29640), + 61: uint16(29619), + 62: uint16(29646), + 63: uint16(29627), + 64: uint16(29632), + 65: uint16(29669), + 66: uint16(29678), + 67: uint16(29662), + 68: uint16(29858), + 69: uint16(29701), + 70: uint16(29807), + 71: uint16(29733), + 72: uint16(29688), + 73: uint16(29746), + 74: uint16(29754), + 75: uint16(29781), + 76: uint16(29759), + 77: uint16(29791), + 78: uint16(29785), + 79: uint16(29761), + 80: uint16(29788), + 81: uint16(29801), + 82: uint16(29808), + 83: uint16(29795), + 84: uint16(29802), + 85: uint16(29814), + 86: uint16(29822), + 87: uint16(29835), + 88: uint16(29854), + 89: uint16(29863), + 90: uint16(29898), + 91: uint16(29903), + 92: uint16(29908), + 93: uint16(29681), + }, + 64: { + 0: uint16(29920), + 1: uint16(29923), + 2: uint16(29927), + 3: uint16(29929), + 4: uint16(29934), + 5: uint16(29938), + 6: uint16(29936), + 7: uint16(29937), + 8: uint16(29944), + 9: uint16(29943), + 10: uint16(29956), + 11: uint16(29955), + 12: uint16(29957), + 13: uint16(29964), + 14: uint16(29966), + 15: uint16(29965), + 16: uint16(29973), + 17: uint16(29971), + 18: uint16(29982), + 19: uint16(29990), + 20: uint16(29996), + 21: uint16(30012), + 22: uint16(30020), + 23: uint16(30029), + 24: uint16(30026), + 25: uint16(30025), + 26: uint16(30043), + 27: uint16(30022), + 28: uint16(30042), + 29: uint16(30057), + 30: uint16(30052), + 31: uint16(30055), + 32: uint16(30059), + 33: uint16(30061), + 34: uint16(30072), + 35: uint16(30070), + 36: uint16(30086), + 37: uint16(30087), + 38: uint16(30068), + 39: uint16(30090), + 40: uint16(30089), + 41: uint16(30082), + 42: uint16(30100), + 43: uint16(30106), + 44: uint16(30109), + 45: uint16(30117), + 46: uint16(30115), + 47: uint16(30146), + 48: uint16(30131), + 49: uint16(30147), + 50: uint16(30133), + 51: uint16(30141), + 52: uint16(30136), + 53: uint16(30140), + 54: uint16(30129), + 55: uint16(30157), + 56: uint16(30154), + 57: uint16(30162), + 58: uint16(30169), + 59: uint16(30179), + 60: uint16(30174), + 61: uint16(30206), + 62: uint16(30207), + 63: uint16(30204), + 64: uint16(30209), + 65: uint16(30192), + 66: uint16(30202), + 67: uint16(30194), + 68: uint16(30195), + 69: uint16(30219), + 70: uint16(30221), + 71: uint16(30217), + 72: uint16(30239), + 73: uint16(30247), + 74: uint16(30240), + 75: uint16(30241), + 76: uint16(30242), + 77: uint16(30244), + 78: uint16(30260), + 79: uint16(30256), + 80: uint16(30267), + 81: uint16(30279), + 82: uint16(30280), + 83: uint16(30278), + 84: uint16(30300), + 85: uint16(30296), + 86: uint16(30305), + 87: uint16(30306), + 88: uint16(30312), + 89: uint16(30313), + 90: uint16(30314), + 91: uint16(30311), + 92: uint16(30316), + 93: uint16(30320), + }, + 65: { + 0: uint16(30322), + 1: uint16(30326), + 2: uint16(30328), + 3: uint16(30332), + 4: uint16(30336), + 5: uint16(30339), + 6: uint16(30344), + 7: uint16(30347), + 8: uint16(30350), + 9: uint16(30358), + 10: uint16(30355), + 11: uint16(30361), + 12: uint16(30362), + 13: uint16(30384), + 14: uint16(30388), + 15: uint16(30392), + 16: uint16(30393), + 17: uint16(30394), + 18: uint16(30402), + 19: uint16(30413), + 20: uint16(30422), + 21: uint16(30418), + 22: uint16(30430), + 23: uint16(30433), + 24: uint16(30437), + 25: uint16(30439), + 26: uint16(30442), + 27: uint16(34351), + 28: uint16(30459), + 29: uint16(30472), + 30: uint16(30471), + 31: uint16(30468), + 32: uint16(30505), + 33: uint16(30500), + 34: uint16(30494), + 35: uint16(30501), + 36: uint16(30502), + 37: uint16(30491), + 38: uint16(30519), + 39: uint16(30520), + 40: uint16(30535), + 41: uint16(30554), + 42: uint16(30568), + 43: uint16(30571), + 44: uint16(30555), + 45: uint16(30565), + 46: uint16(30591), + 47: uint16(30590), + 48: uint16(30585), + 49: uint16(30606), + 50: uint16(30603), + 51: uint16(30609), + 52: uint16(30624), + 53: uint16(30622), + 54: uint16(30640), + 55: uint16(30646), + 56: uint16(30649), + 57: uint16(30655), + 58: uint16(30652), + 59: uint16(30653), + 60: uint16(30651), + 61: uint16(30663), + 62: uint16(30669), + 63: uint16(30679), + 64: uint16(30682), + 65: uint16(30684), + 66: uint16(30691), + 67: uint16(30702), + 68: uint16(30716), + 69: uint16(30732), + 70: uint16(30738), + 71: uint16(31014), + 72: uint16(30752), + 73: uint16(31018), + 74: uint16(30789), + 75: uint16(30862), + 76: uint16(30836), + 77: uint16(30854), + 78: uint16(30844), + 79: uint16(30874), + 80: uint16(30860), + 81: uint16(30883), + 82: uint16(30901), + 83: uint16(30890), + 84: uint16(30895), + 85: uint16(30929), + 86: uint16(30918), + 87: uint16(30923), + 88: uint16(30932), + 89: uint16(30910), + 90: uint16(30908), + 91: uint16(30917), + 92: uint16(30922), + 93: uint16(30956), + }, + 66: { + 0: uint16(30951), + 1: uint16(30938), + 2: uint16(30973), + 3: uint16(30964), + 4: uint16(30983), + 5: uint16(30994), + 6: uint16(30993), + 7: uint16(31001), + 8: uint16(31020), + 9: uint16(31019), + 10: uint16(31040), + 11: uint16(31072), + 12: uint16(31063), + 13: uint16(31071), + 14: uint16(31066), + 15: uint16(31061), + 16: uint16(31059), + 17: uint16(31098), + 18: uint16(31103), + 19: uint16(31114), + 20: uint16(31133), + 21: uint16(31143), + 22: uint16(40779), + 23: uint16(31146), + 24: uint16(31150), + 25: uint16(31155), + 26: uint16(31161), + 27: uint16(31162), + 28: uint16(31177), + 29: uint16(31189), + 30: uint16(31207), + 31: uint16(31212), + 32: uint16(31201), + 33: uint16(31203), + 34: uint16(31240), + 35: uint16(31245), + 36: uint16(31256), + 37: uint16(31257), + 38: uint16(31264), + 39: uint16(31263), + 40: uint16(31104), + 41: uint16(31281), + 42: uint16(31291), + 43: uint16(31294), + 44: uint16(31287), + 45: uint16(31299), + 46: uint16(31319), + 47: uint16(31305), + 48: uint16(31329), + 49: uint16(31330), + 50: uint16(31337), + 51: uint16(40861), + 52: uint16(31344), + 53: uint16(31353), + 54: uint16(31357), + 55: uint16(31368), + 56: uint16(31383), + 57: uint16(31381), + 58: uint16(31384), + 59: uint16(31382), + 60: uint16(31401), + 61: uint16(31432), + 62: uint16(31408), + 63: uint16(31414), + 64: uint16(31429), + 65: uint16(31428), + 66: uint16(31423), + 67: uint16(36995), + 68: uint16(31431), + 69: uint16(31434), + 70: uint16(31437), + 71: uint16(31439), + 72: uint16(31445), + 73: uint16(31443), + 74: uint16(31449), + 75: uint16(31450), + 76: uint16(31453), + 77: uint16(31457), + 78: uint16(31458), + 79: uint16(31462), + 80: uint16(31469), + 81: uint16(31472), + 82: uint16(31490), + 83: uint16(31503), + 84: uint16(31498), + 85: uint16(31494), + 86: uint16(31539), + 87: uint16(31512), + 88: uint16(31513), + 89: uint16(31518), + 90: uint16(31541), + 91: uint16(31528), + 92: uint16(31542), + 93: uint16(31568), + }, + 67: { + 0: uint16(31610), + 1: uint16(31492), + 2: uint16(31565), + 3: uint16(31499), + 4: uint16(31564), + 5: uint16(31557), + 6: uint16(31605), + 7: uint16(31589), + 8: uint16(31604), + 9: uint16(31591), + 10: uint16(31600), + 11: uint16(31601), + 12: uint16(31596), + 13: uint16(31598), + 14: uint16(31645), + 15: uint16(31640), + 16: uint16(31647), + 17: uint16(31629), + 18: uint16(31644), + 19: uint16(31642), + 20: uint16(31627), + 21: uint16(31634), + 22: uint16(31631), + 23: uint16(31581), + 24: uint16(31641), + 25: uint16(31691), + 26: uint16(31681), + 27: uint16(31692), + 28: uint16(31695), + 29: uint16(31668), + 30: uint16(31686), + 31: uint16(31709), + 32: uint16(31721), + 33: uint16(31761), + 34: uint16(31764), + 35: uint16(31718), + 36: uint16(31717), + 37: uint16(31840), + 38: uint16(31744), + 39: uint16(31751), + 40: uint16(31763), + 41: uint16(31731), + 42: uint16(31735), + 43: uint16(31767), + 44: uint16(31757), + 45: uint16(31734), + 46: uint16(31779), + 47: uint16(31783), + 48: uint16(31786), + 49: uint16(31775), + 50: uint16(31799), + 51: uint16(31787), + 52: uint16(31805), + 53: uint16(31820), + 54: uint16(31811), + 55: uint16(31828), + 56: uint16(31823), + 57: uint16(31808), + 58: uint16(31824), + 59: uint16(31832), + 60: uint16(31839), + 61: uint16(31844), + 62: uint16(31830), + 63: uint16(31845), + 64: uint16(31852), + 65: uint16(31861), + 66: uint16(31875), + 67: uint16(31888), + 68: uint16(31908), + 69: uint16(31917), + 70: uint16(31906), + 71: uint16(31915), + 72: uint16(31905), + 73: uint16(31912), + 74: uint16(31923), + 75: uint16(31922), + 76: uint16(31921), + 77: uint16(31918), + 78: uint16(31929), + 79: uint16(31933), + 80: uint16(31936), + 81: uint16(31941), + 82: uint16(31938), + 83: uint16(31960), + 84: uint16(31954), + 85: uint16(31964), + 86: uint16(31970), + 87: uint16(39739), + 88: uint16(31983), + 89: uint16(31986), + 90: uint16(31988), + 91: uint16(31990), + 92: uint16(31994), + 93: uint16(32006), + }, + 68: { + 0: uint16(32002), + 1: uint16(32028), + 2: uint16(32021), + 3: uint16(32010), + 4: uint16(32069), + 5: uint16(32075), + 6: uint16(32046), + 7: uint16(32050), + 8: uint16(32063), + 9: uint16(32053), + 10: uint16(32070), + 11: uint16(32115), + 12: uint16(32086), + 13: uint16(32078), + 14: uint16(32114), + 15: uint16(32104), + 16: uint16(32110), + 17: uint16(32079), + 18: uint16(32099), + 19: uint16(32147), + 20: uint16(32137), + 21: uint16(32091), + 22: uint16(32143), + 23: uint16(32125), + 24: uint16(32155), + 25: uint16(32186), + 26: uint16(32174), + 27: uint16(32163), + 28: uint16(32181), + 29: uint16(32199), + 30: uint16(32189), + 31: uint16(32171), + 32: uint16(32317), + 33: uint16(32162), + 34: uint16(32175), + 35: uint16(32220), + 36: uint16(32184), + 37: uint16(32159), + 38: uint16(32176), + 39: uint16(32216), + 40: uint16(32221), + 41: uint16(32228), + 42: uint16(32222), + 43: uint16(32251), + 44: uint16(32242), + 45: uint16(32225), + 46: uint16(32261), + 47: uint16(32266), + 48: uint16(32291), + 49: uint16(32289), + 50: uint16(32274), + 51: uint16(32305), + 52: uint16(32287), + 53: uint16(32265), + 54: uint16(32267), + 55: uint16(32290), + 56: uint16(32326), + 57: uint16(32358), + 58: uint16(32315), + 59: uint16(32309), + 60: uint16(32313), + 61: uint16(32323), + 62: uint16(32311), + 63: uint16(32306), + 64: uint16(32314), + 65: uint16(32359), + 66: uint16(32349), + 67: uint16(32342), + 68: uint16(32350), + 69: uint16(32345), + 70: uint16(32346), + 71: uint16(32377), + 72: uint16(32362), + 73: uint16(32361), + 74: uint16(32380), + 75: uint16(32379), + 76: uint16(32387), + 77: uint16(32213), + 78: uint16(32381), + 79: uint16(36782), + 80: uint16(32383), + 81: uint16(32392), + 82: uint16(32393), + 83: uint16(32396), + 84: uint16(32402), + 85: uint16(32400), + 86: uint16(32403), + 87: uint16(32404), + 88: uint16(32406), + 89: uint16(32398), + 90: uint16(32411), + 91: uint16(32412), + 92: uint16(32568), + 93: uint16(32570), + }, + 69: { + 0: uint16(32581), + 1: uint16(32588), + 2: uint16(32589), + 3: uint16(32590), + 4: uint16(32592), + 5: uint16(32593), + 6: uint16(32597), + 7: uint16(32596), + 8: uint16(32600), + 9: uint16(32607), + 10: uint16(32608), + 11: uint16(32616), + 12: uint16(32617), + 13: uint16(32615), + 14: uint16(32632), + 15: uint16(32642), + 16: uint16(32646), + 17: uint16(32643), + 18: uint16(32648), + 19: uint16(32647), + 20: uint16(32652), + 21: uint16(32660), + 22: uint16(32670), + 23: uint16(32669), + 24: uint16(32666), + 25: uint16(32675), + 26: uint16(32687), + 27: uint16(32690), + 28: uint16(32697), + 29: uint16(32686), + 30: uint16(32694), + 31: uint16(32696), + 32: uint16(35697), + 33: uint16(32709), + 34: uint16(32710), + 35: uint16(32714), + 36: uint16(32725), + 37: uint16(32724), + 38: uint16(32737), + 39: uint16(32742), + 40: uint16(32745), + 41: uint16(32755), + 42: uint16(32761), + 43: uint16(39132), + 44: uint16(32774), + 45: uint16(32772), + 46: uint16(32779), + 47: uint16(32786), + 48: uint16(32792), + 49: uint16(32793), + 50: uint16(32796), + 51: uint16(32801), + 52: uint16(32808), + 53: uint16(32831), + 54: uint16(32827), + 55: uint16(32842), + 56: uint16(32838), + 57: uint16(32850), + 58: uint16(32856), + 59: uint16(32858), + 60: uint16(32863), + 61: uint16(32866), + 62: uint16(32872), + 63: uint16(32883), + 64: uint16(32882), + 65: uint16(32880), + 66: uint16(32886), + 67: uint16(32889), + 68: uint16(32893), + 69: uint16(32895), + 70: uint16(32900), + 71: uint16(32902), + 72: uint16(32901), + 73: uint16(32923), + 74: uint16(32915), + 75: uint16(32922), + 76: uint16(32941), + 77: uint16(20880), + 78: uint16(32940), + 79: uint16(32987), + 80: uint16(32997), + 81: uint16(32985), + 82: uint16(32989), + 83: uint16(32964), + 84: uint16(32986), + 85: uint16(32982), + 86: uint16(33033), + 87: uint16(33007), + 88: uint16(33009), + 89: uint16(33051), + 90: uint16(33065), + 91: uint16(33059), + 92: uint16(33071), + 93: uint16(33099), + }, + 70: { + 0: uint16(38539), + 1: uint16(33094), + 2: uint16(33086), + 3: uint16(33107), + 4: uint16(33105), + 5: uint16(33020), + 6: uint16(33137), + 7: uint16(33134), + 8: uint16(33125), + 9: uint16(33126), + 10: uint16(33140), + 11: uint16(33155), + 12: uint16(33160), + 13: uint16(33162), + 14: uint16(33152), + 15: uint16(33154), + 16: uint16(33184), + 17: uint16(33173), + 18: uint16(33188), + 19: uint16(33187), + 20: uint16(33119), + 21: uint16(33171), + 22: uint16(33193), + 23: uint16(33200), + 24: uint16(33205), + 25: uint16(33214), + 26: uint16(33208), + 27: uint16(33213), + 28: uint16(33216), + 29: uint16(33218), + 30: uint16(33210), + 31: uint16(33225), + 32: uint16(33229), + 33: uint16(33233), + 34: uint16(33241), + 35: uint16(33240), + 36: uint16(33224), + 37: uint16(33242), + 38: uint16(33247), + 39: uint16(33248), + 40: uint16(33255), + 41: uint16(33274), + 42: uint16(33275), + 43: uint16(33278), + 44: uint16(33281), + 45: uint16(33282), + 46: uint16(33285), + 47: uint16(33287), + 48: uint16(33290), + 49: uint16(33293), + 50: uint16(33296), + 51: uint16(33302), + 52: uint16(33321), + 53: uint16(33323), + 54: uint16(33336), + 55: uint16(33331), + 56: uint16(33344), + 57: uint16(33369), + 58: uint16(33368), + 59: uint16(33373), + 60: uint16(33370), + 61: uint16(33375), + 62: uint16(33380), + 63: uint16(33378), + 64: uint16(33384), + 65: uint16(33386), + 66: uint16(33387), + 67: uint16(33326), + 68: uint16(33393), + 69: uint16(33399), + 70: uint16(33400), + 71: uint16(33406), + 72: uint16(33421), + 73: uint16(33426), + 74: uint16(33451), + 75: uint16(33439), + 76: uint16(33467), + 77: uint16(33452), + 78: uint16(33505), + 79: uint16(33507), + 80: uint16(33503), + 81: uint16(33490), + 82: uint16(33524), + 83: uint16(33523), + 84: uint16(33530), + 85: uint16(33683), + 86: uint16(33539), + 87: uint16(33531), + 88: uint16(33529), + 89: uint16(33502), + 90: uint16(33542), + 91: uint16(33500), + 92: uint16(33545), + 93: uint16(33497), + }, + 71: { + 0: uint16(33589), + 1: uint16(33588), + 2: uint16(33558), + 3: uint16(33586), + 4: uint16(33585), + 5: uint16(33600), + 6: uint16(33593), + 7: uint16(33616), + 8: uint16(33605), + 9: uint16(33583), + 10: uint16(33579), + 11: uint16(33559), + 12: uint16(33560), + 13: uint16(33669), + 14: uint16(33690), + 15: uint16(33706), + 16: uint16(33695), + 17: uint16(33698), + 18: uint16(33686), + 19: uint16(33571), + 20: uint16(33678), + 21: uint16(33671), + 22: uint16(33674), + 23: uint16(33660), + 24: uint16(33717), + 25: uint16(33651), + 26: uint16(33653), + 27: uint16(33696), + 28: uint16(33673), + 29: uint16(33704), + 30: uint16(33780), + 31: uint16(33811), + 32: uint16(33771), + 33: uint16(33742), + 34: uint16(33789), + 35: uint16(33795), + 36: uint16(33752), + 37: uint16(33803), + 38: uint16(33729), + 39: uint16(33783), + 40: uint16(33799), + 41: uint16(33760), + 42: uint16(33778), + 43: uint16(33805), + 44: uint16(33826), + 45: uint16(33824), + 46: uint16(33725), + 47: uint16(33848), + 48: uint16(34054), + 49: uint16(33787), + 50: uint16(33901), + 51: uint16(33834), + 52: uint16(33852), + 53: uint16(34138), + 54: uint16(33924), + 55: uint16(33911), + 56: uint16(33899), + 57: uint16(33965), + 58: uint16(33902), + 59: uint16(33922), + 60: uint16(33897), + 61: uint16(33862), + 62: uint16(33836), + 63: uint16(33903), + 64: uint16(33913), + 65: uint16(33845), + 66: uint16(33994), + 67: uint16(33890), + 68: uint16(33977), + 69: uint16(33983), + 70: uint16(33951), + 71: uint16(34009), + 72: uint16(33997), + 73: uint16(33979), + 74: uint16(34010), + 75: uint16(34000), + 76: uint16(33985), + 77: uint16(33990), + 78: uint16(34006), + 79: uint16(33953), + 80: uint16(34081), + 81: uint16(34047), + 82: uint16(34036), + 83: uint16(34071), + 84: uint16(34072), + 85: uint16(34092), + 86: uint16(34079), + 87: uint16(34069), + 88: uint16(34068), + 89: uint16(34044), + 90: uint16(34112), + 91: uint16(34147), + 92: uint16(34136), + 93: uint16(34120), + }, + 72: { + 0: uint16(34113), + 1: uint16(34306), + 2: uint16(34123), + 3: uint16(34133), + 4: uint16(34176), + 5: uint16(34212), + 6: uint16(34184), + 7: uint16(34193), + 8: uint16(34186), + 9: uint16(34216), + 10: uint16(34157), + 11: uint16(34196), + 12: uint16(34203), + 13: uint16(34282), + 14: uint16(34183), + 15: uint16(34204), + 16: uint16(34167), + 17: uint16(34174), + 18: uint16(34192), + 19: uint16(34249), + 20: uint16(34234), + 21: uint16(34255), + 22: uint16(34233), + 23: uint16(34256), + 24: uint16(34261), + 25: uint16(34269), + 26: uint16(34277), + 27: uint16(34268), + 28: uint16(34297), + 29: uint16(34314), + 30: uint16(34323), + 31: uint16(34315), + 32: uint16(34302), + 33: uint16(34298), + 34: uint16(34310), + 35: uint16(34338), + 36: uint16(34330), + 37: uint16(34352), + 38: uint16(34367), + 39: uint16(34381), + 40: uint16(20053), + 41: uint16(34388), + 42: uint16(34399), + 43: uint16(34407), + 44: uint16(34417), + 45: uint16(34451), + 46: uint16(34467), + 47: uint16(34473), + 48: uint16(34474), + 49: uint16(34443), + 50: uint16(34444), + 51: uint16(34486), + 52: uint16(34479), + 53: uint16(34500), + 54: uint16(34502), + 55: uint16(34480), + 56: uint16(34505), + 57: uint16(34851), + 58: uint16(34475), + 59: uint16(34516), + 60: uint16(34526), + 61: uint16(34537), + 62: uint16(34540), + 63: uint16(34527), + 64: uint16(34523), + 65: uint16(34543), + 66: uint16(34578), + 67: uint16(34566), + 68: uint16(34568), + 69: uint16(34560), + 70: uint16(34563), + 71: uint16(34555), + 72: uint16(34577), + 73: uint16(34569), + 74: uint16(34573), + 75: uint16(34553), + 76: uint16(34570), + 77: uint16(34612), + 78: uint16(34623), + 79: uint16(34615), + 80: uint16(34619), + 81: uint16(34597), + 82: uint16(34601), + 83: uint16(34586), + 84: uint16(34656), + 85: uint16(34655), + 86: uint16(34680), + 87: uint16(34636), + 88: uint16(34638), + 89: uint16(34676), + 90: uint16(34647), + 91: uint16(34664), + 92: uint16(34670), + 93: uint16(34649), + }, + 73: { + 0: uint16(34643), + 1: uint16(34659), + 2: uint16(34666), + 3: uint16(34821), + 4: uint16(34722), + 5: uint16(34719), + 6: uint16(34690), + 7: uint16(34735), + 8: uint16(34763), + 9: uint16(34749), + 10: uint16(34752), + 11: uint16(34768), + 12: uint16(38614), + 13: uint16(34731), + 14: uint16(34756), + 15: uint16(34739), + 16: uint16(34759), + 17: uint16(34758), + 18: uint16(34747), + 19: uint16(34799), + 20: uint16(34802), + 21: uint16(34784), + 22: uint16(34831), + 23: uint16(34829), + 24: uint16(34814), + 25: uint16(34806), + 26: uint16(34807), + 27: uint16(34830), + 28: uint16(34770), + 29: uint16(34833), + 30: uint16(34838), + 31: uint16(34837), + 32: uint16(34850), + 33: uint16(34849), + 34: uint16(34865), + 35: uint16(34870), + 36: uint16(34873), + 37: uint16(34855), + 38: uint16(34875), + 39: uint16(34884), + 40: uint16(34882), + 41: uint16(34898), + 42: uint16(34905), + 43: uint16(34910), + 44: uint16(34914), + 45: uint16(34923), + 46: uint16(34945), + 47: uint16(34942), + 48: uint16(34974), + 49: uint16(34933), + 50: uint16(34941), + 51: uint16(34997), + 52: uint16(34930), + 53: uint16(34946), + 54: uint16(34967), + 55: uint16(34962), + 56: uint16(34990), + 57: uint16(34969), + 58: uint16(34978), + 59: uint16(34957), + 60: uint16(34980), + 61: uint16(34992), + 62: uint16(35007), + 63: uint16(34993), + 64: uint16(35011), + 65: uint16(35012), + 66: uint16(35028), + 67: uint16(35032), + 68: uint16(35033), + 69: uint16(35037), + 70: uint16(35065), + 71: uint16(35074), + 72: uint16(35068), + 73: uint16(35060), + 74: uint16(35048), + 75: uint16(35058), + 76: uint16(35076), + 77: uint16(35084), + 78: uint16(35082), + 79: uint16(35091), + 80: uint16(35139), + 81: uint16(35102), + 82: uint16(35109), + 83: uint16(35114), + 84: uint16(35115), + 85: uint16(35137), + 86: uint16(35140), + 87: uint16(35131), + 88: uint16(35126), + 89: uint16(35128), + 90: uint16(35148), + 91: uint16(35101), + 92: uint16(35168), + 93: uint16(35166), + }, + 74: { + 0: uint16(35174), + 1: uint16(35172), + 2: uint16(35181), + 3: uint16(35178), + 4: uint16(35183), + 5: uint16(35188), + 6: uint16(35191), + 7: uint16(35198), + 8: uint16(35203), + 9: uint16(35208), + 10: uint16(35210), + 11: uint16(35219), + 12: uint16(35224), + 13: uint16(35233), + 14: uint16(35241), + 15: uint16(35238), + 16: uint16(35244), + 17: uint16(35247), + 18: uint16(35250), + 19: uint16(35258), + 20: uint16(35261), + 21: uint16(35263), + 22: uint16(35264), + 23: uint16(35290), + 24: uint16(35292), + 25: uint16(35293), + 26: uint16(35303), + 27: uint16(35316), + 28: uint16(35320), + 29: uint16(35331), + 30: uint16(35350), + 31: uint16(35344), + 32: uint16(35340), + 33: uint16(35355), + 34: uint16(35357), + 35: uint16(35365), + 36: uint16(35382), + 37: uint16(35393), + 38: uint16(35419), + 39: uint16(35410), + 40: uint16(35398), + 41: uint16(35400), + 42: uint16(35452), + 43: uint16(35437), + 44: uint16(35436), + 45: uint16(35426), + 46: uint16(35461), + 47: uint16(35458), + 48: uint16(35460), + 49: uint16(35496), + 50: uint16(35489), + 51: uint16(35473), + 52: uint16(35493), + 53: uint16(35494), + 54: uint16(35482), + 55: uint16(35491), + 56: uint16(35524), + 57: uint16(35533), + 58: uint16(35522), + 59: uint16(35546), + 60: uint16(35563), + 61: uint16(35571), + 62: uint16(35559), + 63: uint16(35556), + 64: uint16(35569), + 65: uint16(35604), + 66: uint16(35552), + 67: uint16(35554), + 68: uint16(35575), + 69: uint16(35550), + 70: uint16(35547), + 71: uint16(35596), + 72: uint16(35591), + 73: uint16(35610), + 74: uint16(35553), + 75: uint16(35606), + 76: uint16(35600), + 77: uint16(35607), + 78: uint16(35616), + 79: uint16(35635), + 80: uint16(38827), + 81: uint16(35622), + 82: uint16(35627), + 83: uint16(35646), + 84: uint16(35624), + 85: uint16(35649), + 86: uint16(35660), + 87: uint16(35663), + 88: uint16(35662), + 89: uint16(35657), + 90: uint16(35670), + 91: uint16(35675), + 92: uint16(35674), + 93: uint16(35691), + }, + 75: { + 0: uint16(35679), + 1: uint16(35692), + 2: uint16(35695), + 3: uint16(35700), + 4: uint16(35709), + 5: uint16(35712), + 6: uint16(35724), + 7: uint16(35726), + 8: uint16(35730), + 9: uint16(35731), + 10: uint16(35734), + 11: uint16(35737), + 12: uint16(35738), + 13: uint16(35898), + 14: uint16(35905), + 15: uint16(35903), + 16: uint16(35912), + 17: uint16(35916), + 18: uint16(35918), + 19: uint16(35920), + 20: uint16(35925), + 21: uint16(35938), + 22: uint16(35948), + 23: uint16(35960), + 24: uint16(35962), + 25: uint16(35970), + 26: uint16(35977), + 27: uint16(35973), + 28: uint16(35978), + 29: uint16(35981), + 30: uint16(35982), + 31: uint16(35988), + 32: uint16(35964), + 33: uint16(35992), + 34: uint16(25117), + 35: uint16(36013), + 36: uint16(36010), + 37: uint16(36029), + 38: uint16(36018), + 39: uint16(36019), + 40: uint16(36014), + 41: uint16(36022), + 42: uint16(36040), + 43: uint16(36033), + 44: uint16(36068), + 45: uint16(36067), + 46: uint16(36058), + 47: uint16(36093), + 48: uint16(36090), + 49: uint16(36091), + 50: uint16(36100), + 51: uint16(36101), + 52: uint16(36106), + 53: uint16(36103), + 54: uint16(36111), + 55: uint16(36109), + 56: uint16(36112), + 57: uint16(40782), + 58: uint16(36115), + 59: uint16(36045), + 60: uint16(36116), + 61: uint16(36118), + 62: uint16(36199), + 63: uint16(36205), + 64: uint16(36209), + 65: uint16(36211), + 66: uint16(36225), + 67: uint16(36249), + 68: uint16(36290), + 69: uint16(36286), + 70: uint16(36282), + 71: uint16(36303), + 72: uint16(36314), + 73: uint16(36310), + 74: uint16(36300), + 75: uint16(36315), + 76: uint16(36299), + 77: uint16(36330), + 78: uint16(36331), + 79: uint16(36319), + 80: uint16(36323), + 81: uint16(36348), + 82: uint16(36360), + 83: uint16(36361), + 84: uint16(36351), + 85: uint16(36381), + 86: uint16(36382), + 87: uint16(36368), + 88: uint16(36383), + 89: uint16(36418), + 90: uint16(36405), + 91: uint16(36400), + 92: uint16(36404), + 93: uint16(36426), + }, + 76: { + 0: uint16(36423), + 1: uint16(36425), + 2: uint16(36428), + 3: uint16(36432), + 4: uint16(36424), + 5: uint16(36441), + 6: uint16(36452), + 7: uint16(36448), + 8: uint16(36394), + 9: uint16(36451), + 10: uint16(36437), + 11: uint16(36470), + 12: uint16(36466), + 13: uint16(36476), + 14: uint16(36481), + 15: uint16(36487), + 16: uint16(36485), + 17: uint16(36484), + 18: uint16(36491), + 19: uint16(36490), + 20: uint16(36499), + 21: uint16(36497), + 22: uint16(36500), + 23: uint16(36505), + 24: uint16(36522), + 25: uint16(36513), + 26: uint16(36524), + 27: uint16(36528), + 28: uint16(36550), + 29: uint16(36529), + 30: uint16(36542), + 31: uint16(36549), + 32: uint16(36552), + 33: uint16(36555), + 34: uint16(36571), + 35: uint16(36579), + 36: uint16(36604), + 37: uint16(36603), + 38: uint16(36587), + 39: uint16(36606), + 40: uint16(36618), + 41: uint16(36613), + 42: uint16(36629), + 43: uint16(36626), + 44: uint16(36633), + 45: uint16(36627), + 46: uint16(36636), + 47: uint16(36639), + 48: uint16(36635), + 49: uint16(36620), + 50: uint16(36646), + 51: uint16(36659), + 52: uint16(36667), + 53: uint16(36665), + 54: uint16(36677), + 55: uint16(36674), + 56: uint16(36670), + 57: uint16(36684), + 58: uint16(36681), + 59: uint16(36678), + 60: uint16(36686), + 61: uint16(36695), + 62: uint16(36700), + 63: uint16(36706), + 64: uint16(36707), + 65: uint16(36708), + 66: uint16(36764), + 67: uint16(36767), + 68: uint16(36771), + 69: uint16(36781), + 70: uint16(36783), + 71: uint16(36791), + 72: uint16(36826), + 73: uint16(36837), + 74: uint16(36834), + 75: uint16(36842), + 76: uint16(36847), + 77: uint16(36999), + 78: uint16(36852), + 79: uint16(36869), + 80: uint16(36857), + 81: uint16(36858), + 82: uint16(36881), + 83: uint16(36885), + 84: uint16(36897), + 85: uint16(36877), + 86: uint16(36894), + 87: uint16(36886), + 88: uint16(36875), + 89: uint16(36903), + 90: uint16(36918), + 91: uint16(36917), + 92: uint16(36921), + 93: uint16(36856), + }, + 77: { + 0: uint16(36943), + 1: uint16(36944), + 2: uint16(36945), + 3: uint16(36946), + 4: uint16(36878), + 5: uint16(36937), + 6: uint16(36926), + 7: uint16(36950), + 8: uint16(36952), + 9: uint16(36958), + 10: uint16(36968), + 11: uint16(36975), + 12: uint16(36982), + 13: uint16(38568), + 14: uint16(36978), + 15: uint16(36994), + 16: uint16(36989), + 17: uint16(36993), + 18: uint16(36992), + 19: uint16(37002), + 20: uint16(37001), + 21: uint16(37007), + 22: uint16(37032), + 23: uint16(37039), + 24: uint16(37041), + 25: uint16(37045), + 26: uint16(37090), + 27: uint16(37092), + 28: uint16(25160), + 29: uint16(37083), + 30: uint16(37122), + 31: uint16(37138), + 32: uint16(37145), + 33: uint16(37170), + 34: uint16(37168), + 35: uint16(37194), + 36: uint16(37206), + 37: uint16(37208), + 38: uint16(37219), + 39: uint16(37221), + 40: uint16(37225), + 41: uint16(37235), + 42: uint16(37234), + 43: uint16(37259), + 44: uint16(37257), + 45: uint16(37250), + 46: uint16(37282), + 47: uint16(37291), + 48: uint16(37295), + 49: uint16(37290), + 50: uint16(37301), + 51: uint16(37300), + 52: uint16(37306), + 53: uint16(37312), + 54: uint16(37313), + 55: uint16(37321), + 56: uint16(37323), + 57: uint16(37328), + 58: uint16(37334), + 59: uint16(37343), + 60: uint16(37345), + 61: uint16(37339), + 62: uint16(37372), + 63: uint16(37365), + 64: uint16(37366), + 65: uint16(37406), + 66: uint16(37375), + 67: uint16(37396), + 68: uint16(37420), + 69: uint16(37397), + 70: uint16(37393), + 71: uint16(37470), + 72: uint16(37463), + 73: uint16(37445), + 74: uint16(37449), + 75: uint16(37476), + 76: uint16(37448), + 77: uint16(37525), + 78: uint16(37439), + 79: uint16(37451), + 80: uint16(37456), + 81: uint16(37532), + 82: uint16(37526), + 83: uint16(37523), + 84: uint16(37531), + 85: uint16(37466), + 86: uint16(37583), + 87: uint16(37561), + 88: uint16(37559), + 89: uint16(37609), + 90: uint16(37647), + 91: uint16(37626), + 92: uint16(37700), + 93: uint16(37678), + }, + 78: { + 0: uint16(37657), + 1: uint16(37666), + 2: uint16(37658), + 3: uint16(37667), + 4: uint16(37690), + 5: uint16(37685), + 6: uint16(37691), + 7: uint16(37724), + 8: uint16(37728), + 9: uint16(37756), + 10: uint16(37742), + 11: uint16(37718), + 12: uint16(37808), + 13: uint16(37804), + 14: uint16(37805), + 15: uint16(37780), + 16: uint16(37817), + 17: uint16(37846), + 18: uint16(37847), + 19: uint16(37864), + 20: uint16(37861), + 21: uint16(37848), + 22: uint16(37827), + 23: uint16(37853), + 24: uint16(37840), + 25: uint16(37832), + 26: uint16(37860), + 27: uint16(37914), + 28: uint16(37908), + 29: uint16(37907), + 30: uint16(37891), + 31: uint16(37895), + 32: uint16(37904), + 33: uint16(37942), + 34: uint16(37931), + 35: uint16(37941), + 36: uint16(37921), + 37: uint16(37946), + 38: uint16(37953), + 39: uint16(37970), + 40: uint16(37956), + 41: uint16(37979), + 42: uint16(37984), + 43: uint16(37986), + 44: uint16(37982), + 45: uint16(37994), + 46: uint16(37417), + 47: uint16(38000), + 48: uint16(38005), + 49: uint16(38007), + 50: uint16(38013), + 51: uint16(37978), + 52: uint16(38012), + 53: uint16(38014), + 54: uint16(38017), + 55: uint16(38015), + 56: uint16(38274), + 57: uint16(38279), + 58: uint16(38282), + 59: uint16(38292), + 60: uint16(38294), + 61: uint16(38296), + 62: uint16(38297), + 63: uint16(38304), + 64: uint16(38312), + 65: uint16(38311), + 66: uint16(38317), + 67: uint16(38332), + 68: uint16(38331), + 69: uint16(38329), + 70: uint16(38334), + 71: uint16(38346), + 72: uint16(28662), + 73: uint16(38339), + 74: uint16(38349), + 75: uint16(38348), + 76: uint16(38357), + 77: uint16(38356), + 78: uint16(38358), + 79: uint16(38364), + 80: uint16(38369), + 81: uint16(38373), + 82: uint16(38370), + 83: uint16(38433), + 84: uint16(38440), + 85: uint16(38446), + 86: uint16(38447), + 87: uint16(38466), + 88: uint16(38476), + 89: uint16(38479), + 90: uint16(38475), + 91: uint16(38519), + 92: uint16(38492), + 93: uint16(38494), + }, + 79: { + 0: uint16(38493), + 1: uint16(38495), + 2: uint16(38502), + 3: uint16(38514), + 4: uint16(38508), + 5: uint16(38541), + 6: uint16(38552), + 7: uint16(38549), + 8: uint16(38551), + 9: uint16(38570), + 10: uint16(38567), + 11: uint16(38577), + 12: uint16(38578), + 13: uint16(38576), + 14: uint16(38580), + 15: uint16(38582), + 16: uint16(38584), + 17: uint16(38585), + 18: uint16(38606), + 19: uint16(38603), + 20: uint16(38601), + 21: uint16(38605), + 22: uint16(35149), + 23: uint16(38620), + 24: uint16(38669), + 25: uint16(38613), + 26: uint16(38649), + 27: uint16(38660), + 28: uint16(38662), + 29: uint16(38664), + 30: uint16(38675), + 31: uint16(38670), + 32: uint16(38673), + 33: uint16(38671), + 34: uint16(38678), + 35: uint16(38681), + 36: uint16(38692), + 37: uint16(38698), + 38: uint16(38704), + 39: uint16(38713), + 40: uint16(38717), + 41: uint16(38718), + 42: uint16(38724), + 43: uint16(38726), + 44: uint16(38728), + 45: uint16(38722), + 46: uint16(38729), + 47: uint16(38748), + 48: uint16(38752), + 49: uint16(38756), + 50: uint16(38758), + 51: uint16(38760), + 52: uint16(21202), + 53: uint16(38763), + 54: uint16(38769), + 55: uint16(38777), + 56: uint16(38789), + 57: uint16(38780), + 58: uint16(38785), + 59: uint16(38778), + 60: uint16(38790), + 61: uint16(38795), + 62: uint16(38799), + 63: uint16(38800), + 64: uint16(38812), + 65: uint16(38824), + 66: uint16(38822), + 67: uint16(38819), + 68: uint16(38835), + 69: uint16(38836), + 70: uint16(38851), + 71: uint16(38854), + 72: uint16(38856), + 73: uint16(38859), + 74: uint16(38876), + 75: uint16(38893), + 76: uint16(40783), + 77: uint16(38898), + 78: uint16(31455), + 79: uint16(38902), + 80: uint16(38901), + 81: uint16(38927), + 82: uint16(38924), + 83: uint16(38968), + 84: uint16(38948), + 85: uint16(38945), + 86: uint16(38967), + 87: uint16(38973), + 88: uint16(38982), + 89: uint16(38991), + 90: uint16(38987), + 91: uint16(39019), + 92: uint16(39023), + 93: uint16(39024), + }, + 80: { + 0: uint16(39025), + 1: uint16(39028), + 2: uint16(39027), + 3: uint16(39082), + 4: uint16(39087), + 5: uint16(39089), + 6: uint16(39094), + 7: uint16(39108), + 8: uint16(39107), + 9: uint16(39110), + 10: uint16(39145), + 11: uint16(39147), + 12: uint16(39171), + 13: uint16(39177), + 14: uint16(39186), + 15: uint16(39188), + 16: uint16(39192), + 17: uint16(39201), + 18: uint16(39197), + 19: uint16(39198), + 20: uint16(39204), + 21: uint16(39200), + 22: uint16(39212), + 23: uint16(39214), + 24: uint16(39229), + 25: uint16(39230), + 26: uint16(39234), + 27: uint16(39241), + 28: uint16(39237), + 29: uint16(39248), + 30: uint16(39243), + 31: uint16(39249), + 32: uint16(39250), + 33: uint16(39244), + 34: uint16(39253), + 35: uint16(39319), + 36: uint16(39320), + 37: uint16(39333), + 38: uint16(39341), + 39: uint16(39342), + 40: uint16(39356), + 41: uint16(39391), + 42: uint16(39387), + 43: uint16(39389), + 44: uint16(39384), + 45: uint16(39377), + 46: uint16(39405), + 47: uint16(39406), + 48: uint16(39409), + 49: uint16(39410), + 50: uint16(39419), + 51: uint16(39416), + 52: uint16(39425), + 53: uint16(39439), + 54: uint16(39429), + 55: uint16(39394), + 56: uint16(39449), + 57: uint16(39467), + 58: uint16(39479), + 59: uint16(39493), + 60: uint16(39490), + 61: uint16(39488), + 62: uint16(39491), + 63: uint16(39486), + 64: uint16(39509), + 65: uint16(39501), + 66: uint16(39515), + 67: uint16(39511), + 68: uint16(39519), + 69: uint16(39522), + 70: uint16(39525), + 71: uint16(39524), + 72: uint16(39529), + 73: uint16(39531), + 74: uint16(39530), + 75: uint16(39597), + 76: uint16(39600), + 77: uint16(39612), + 78: uint16(39616), + 79: uint16(39631), + 80: uint16(39633), + 81: uint16(39635), + 82: uint16(39636), + 83: uint16(39646), + 84: uint16(39647), + 85: uint16(39650), + 86: uint16(39651), + 87: uint16(39654), + 88: uint16(39663), + 89: uint16(39659), + 90: uint16(39662), + 91: uint16(39668), + 92: uint16(39665), + 93: uint16(39671), + }, + 81: { + 0: uint16(39675), + 1: uint16(39686), + 2: uint16(39704), + 3: uint16(39706), + 4: uint16(39711), + 5: uint16(39714), + 6: uint16(39715), + 7: uint16(39717), + 8: uint16(39719), + 9: uint16(39720), + 10: uint16(39721), + 11: uint16(39722), + 12: uint16(39726), + 13: uint16(39727), + 14: uint16(39730), + 15: uint16(39748), + 16: uint16(39747), + 17: uint16(39759), + 18: uint16(39757), + 19: uint16(39758), + 20: uint16(39761), + 21: uint16(39768), + 22: uint16(39796), + 23: uint16(39827), + 24: uint16(39811), + 25: uint16(39825), + 26: uint16(39830), + 27: uint16(39831), + 28: uint16(39839), + 29: uint16(39840), + 30: uint16(39848), + 31: uint16(39860), + 32: uint16(39872), + 33: uint16(39882), + 34: uint16(39865), + 35: uint16(39878), + 36: uint16(39887), + 37: uint16(39889), + 38: uint16(39890), + 39: uint16(39907), + 40: uint16(39906), + 41: uint16(39908), + 42: uint16(39892), + 43: uint16(39905), + 44: uint16(39994), + 45: uint16(39922), + 46: uint16(39921), + 47: uint16(39920), + 48: uint16(39957), + 49: uint16(39956), + 50: uint16(39945), + 51: uint16(39955), + 52: uint16(39948), + 53: uint16(39942), + 54: uint16(39944), + 55: uint16(39954), + 56: uint16(39946), + 57: uint16(39940), + 58: uint16(39982), + 59: uint16(39963), + 60: uint16(39973), + 61: uint16(39972), + 62: uint16(39969), + 63: uint16(39984), + 64: uint16(40007), + 65: uint16(39986), + 66: uint16(40006), + 67: uint16(39998), + 68: uint16(40026), + 69: uint16(40032), + 70: uint16(40039), + 71: uint16(40054), + 72: uint16(40056), + 73: uint16(40167), + 74: uint16(40172), + 75: uint16(40176), + 76: uint16(40201), + 77: uint16(40200), + 78: uint16(40171), + 79: uint16(40195), + 80: uint16(40198), + 81: uint16(40234), + 82: uint16(40230), + 83: uint16(40367), + 84: uint16(40227), + 85: uint16(40223), + 86: uint16(40260), + 87: uint16(40213), + 88: uint16(40210), + 89: uint16(40257), + 90: uint16(40255), + 91: uint16(40254), + 92: uint16(40262), + 93: uint16(40264), + }, + 82: { + 0: uint16(40285), + 1: uint16(40286), + 2: uint16(40292), + 3: uint16(40273), + 4: uint16(40272), + 5: uint16(40281), + 6: uint16(40306), + 7: uint16(40329), + 8: uint16(40327), + 9: uint16(40363), + 10: uint16(40303), + 11: uint16(40314), + 12: uint16(40346), + 13: uint16(40356), + 14: uint16(40361), + 15: uint16(40370), + 16: uint16(40388), + 17: uint16(40385), + 18: uint16(40379), + 19: uint16(40376), + 20: uint16(40378), + 21: uint16(40390), + 22: uint16(40399), + 23: uint16(40386), + 24: uint16(40409), + 25: uint16(40403), + 26: uint16(40440), + 27: uint16(40422), + 28: uint16(40429), + 29: uint16(40431), + 30: uint16(40445), + 31: uint16(40474), + 32: uint16(40475), + 33: uint16(40478), + 34: uint16(40565), + 35: uint16(40569), + 36: uint16(40573), + 37: uint16(40577), + 38: uint16(40584), + 39: uint16(40587), + 40: uint16(40588), + 41: uint16(40594), + 42: uint16(40597), + 43: uint16(40593), + 44: uint16(40605), + 45: uint16(40613), + 46: uint16(40617), + 47: uint16(40632), + 48: uint16(40618), + 49: uint16(40621), + 50: uint16(38753), + 51: uint16(40652), + 52: uint16(40654), + 53: uint16(40655), + 54: uint16(40656), + 55: uint16(40660), + 56: uint16(40668), + 57: uint16(40670), + 58: uint16(40669), + 59: uint16(40672), + 60: uint16(40677), + 61: uint16(40680), + 62: uint16(40687), + 63: uint16(40692), + 64: uint16(40694), + 65: uint16(40695), + 66: uint16(40697), + 67: uint16(40699), + 68: uint16(40700), + 69: uint16(40701), + 70: uint16(40711), + 71: uint16(40712), + 72: uint16(30391), + 73: uint16(40725), + 74: uint16(40737), + 75: uint16(40748), + 76: uint16(40766), + 77: uint16(40778), + 78: uint16(40786), + 79: uint16(40788), + 80: uint16(40803), + 81: uint16(40799), + 82: uint16(40800), + 83: uint16(40801), + 84: uint16(40806), + 85: uint16(40807), + 86: uint16(40812), + 87: uint16(40810), + 88: uint16(40823), + 89: uint16(40818), + 90: uint16(40822), + 91: uint16(40853), + 92: uint16(40860), + 93: uint16(40864), + }, + 83: { + 0: uint16(22575), + 1: uint16(27079), + 2: uint16(36953), + 3: uint16(29796), + 4: uint16(20956), + 5: uint16(29081), + }, +} + +var _gb18030 = [126][190]uint16{ + 0: { + 0: uint16(19970), + 1: uint16(19972), + 2: uint16(19973), + 3: uint16(19974), + 4: uint16(19983), + 5: uint16(19986), + 6: uint16(19991), + 7: uint16(19999), + 8: uint16(20000), + 9: uint16(20001), + 10: uint16(20003), + 11: uint16(20006), + 12: uint16(20009), + 13: uint16(20014), + 14: uint16(20015), + 15: uint16(20017), + 16: uint16(20019), + 17: uint16(20021), + 18: uint16(20023), + 19: uint16(20028), + 20: uint16(20032), + 21: uint16(20033), + 22: uint16(20034), + 23: uint16(20036), + 24: uint16(20038), + 25: uint16(20042), + 26: uint16(20049), + 27: uint16(20053), + 28: uint16(20055), + 29: uint16(20058), + 30: uint16(20059), + 31: uint16(20066), + 32: uint16(20067), + 33: uint16(20068), + 34: uint16(20069), + 35: uint16(20071), + 36: uint16(20072), + 37: uint16(20074), + 38: uint16(20075), + 39: uint16(20076), + 40: uint16(20077), + 41: uint16(20078), + 42: uint16(20079), + 43: uint16(20082), + 44: uint16(20084), + 45: uint16(20085), + 46: uint16(20086), + 47: uint16(20087), + 48: uint16(20088), + 49: uint16(20089), + 50: uint16(20090), + 51: uint16(20091), + 52: uint16(20092), + 53: uint16(20093), + 54: uint16(20095), + 55: uint16(20096), + 56: uint16(20097), + 57: uint16(20098), + 58: uint16(20099), + 59: uint16(20100), + 60: uint16(20101), + 61: uint16(20103), + 62: uint16(20106), + 63: uint16(20112), + 64: uint16(20118), + 65: uint16(20119), + 66: uint16(20121), + 67: uint16(20124), + 68: uint16(20125), + 69: uint16(20126), + 70: uint16(20131), + 71: uint16(20138), + 72: uint16(20143), + 73: uint16(20144), + 74: uint16(20145), + 75: uint16(20148), + 76: uint16(20150), + 77: uint16(20151), + 78: uint16(20152), + 79: uint16(20153), + 80: uint16(20156), + 81: uint16(20157), + 82: uint16(20158), + 83: uint16(20168), + 84: uint16(20172), + 85: uint16(20175), + 86: uint16(20176), + 87: uint16(20178), + 88: uint16(20186), + 89: uint16(20187), + 90: uint16(20188), + 91: uint16(20192), + 92: uint16(20194), + 93: uint16(20198), + 94: uint16(20199), + 95: uint16(20201), + 96: uint16(20205), + 97: uint16(20206), + 98: uint16(20207), + 99: uint16(20209), + 100: uint16(20212), + 101: uint16(20216), + 102: uint16(20217), + 103: uint16(20218), + 104: uint16(20220), + 105: uint16(20222), + 106: uint16(20224), + 107: uint16(20226), + 108: uint16(20227), + 109: uint16(20228), + 110: uint16(20229), + 111: uint16(20230), + 112: uint16(20231), + 113: uint16(20232), + 114: uint16(20235), + 115: uint16(20236), + 116: uint16(20242), + 117: uint16(20243), + 118: uint16(20244), + 119: uint16(20245), + 120: uint16(20246), + 121: uint16(20252), + 122: uint16(20253), + 123: uint16(20257), + 124: uint16(20259), + 125: uint16(20264), + 126: uint16(20265), + 127: uint16(20268), + 128: uint16(20269), + 129: uint16(20270), + 130: uint16(20273), + 131: uint16(20275), + 132: uint16(20277), + 133: uint16(20279), + 134: uint16(20281), + 135: uint16(20283), + 136: uint16(20286), + 137: uint16(20287), + 138: uint16(20288), + 139: uint16(20289), + 140: uint16(20290), + 141: uint16(20292), + 142: uint16(20293), + 143: uint16(20295), + 144: uint16(20296), + 145: uint16(20297), + 146: uint16(20298), + 147: uint16(20299), + 148: uint16(20300), + 149: uint16(20306), + 150: uint16(20308), + 151: uint16(20310), + 152: uint16(20321), + 153: uint16(20322), + 154: uint16(20326), + 155: uint16(20328), + 156: uint16(20330), + 157: uint16(20331), + 158: uint16(20333), + 159: uint16(20334), + 160: uint16(20337), + 161: uint16(20338), + 162: uint16(20341), + 163: uint16(20343), + 164: uint16(20344), + 165: uint16(20345), + 166: uint16(20346), + 167: uint16(20349), + 168: uint16(20352), + 169: uint16(20353), + 170: uint16(20354), + 171: uint16(20357), + 172: uint16(20358), + 173: uint16(20359), + 174: uint16(20362), + 175: uint16(20364), + 176: uint16(20366), + 177: uint16(20368), + 178: uint16(20370), + 179: uint16(20371), + 180: uint16(20373), + 181: uint16(20374), + 182: uint16(20376), + 183: uint16(20377), + 184: uint16(20378), + 185: uint16(20380), + 186: uint16(20382), + 187: uint16(20383), + 188: uint16(20385), + 189: uint16(20386), + }, + 1: { + 0: uint16(20388), + 1: uint16(20395), + 2: uint16(20397), + 3: uint16(20400), + 4: uint16(20401), + 5: uint16(20402), + 6: uint16(20403), + 7: uint16(20404), + 8: uint16(20406), + 9: uint16(20407), + 10: uint16(20408), + 11: uint16(20409), + 12: uint16(20410), + 13: uint16(20411), + 14: uint16(20412), + 15: uint16(20413), + 16: uint16(20414), + 17: uint16(20416), + 18: uint16(20417), + 19: uint16(20418), + 20: uint16(20422), + 21: uint16(20423), + 22: uint16(20424), + 23: uint16(20425), + 24: uint16(20427), + 25: uint16(20428), + 26: uint16(20429), + 27: uint16(20434), + 28: uint16(20435), + 29: uint16(20436), + 30: uint16(20437), + 31: uint16(20438), + 32: uint16(20441), + 33: uint16(20443), + 34: uint16(20448), + 35: uint16(20450), + 36: uint16(20452), + 37: uint16(20453), + 38: uint16(20455), + 39: uint16(20459), + 40: uint16(20460), + 41: uint16(20464), + 42: uint16(20466), + 43: uint16(20468), + 44: uint16(20469), + 45: uint16(20470), + 46: uint16(20471), + 47: uint16(20473), + 48: uint16(20475), + 49: uint16(20476), + 50: uint16(20477), + 51: uint16(20479), + 52: uint16(20480), + 53: uint16(20481), + 54: uint16(20482), + 55: uint16(20483), + 56: uint16(20484), + 57: uint16(20485), + 58: uint16(20486), + 59: uint16(20487), + 60: uint16(20488), + 61: uint16(20489), + 62: uint16(20490), + 63: uint16(20491), + 64: uint16(20494), + 65: uint16(20496), + 66: uint16(20497), + 67: uint16(20499), + 68: uint16(20501), + 69: uint16(20502), + 70: uint16(20503), + 71: uint16(20507), + 72: uint16(20509), + 73: uint16(20510), + 74: uint16(20512), + 75: uint16(20514), + 76: uint16(20515), + 77: uint16(20516), + 78: uint16(20519), + 79: uint16(20523), + 80: uint16(20527), + 81: uint16(20528), + 82: uint16(20529), + 83: uint16(20530), + 84: uint16(20531), + 85: uint16(20532), + 86: uint16(20533), + 87: uint16(20534), + 88: uint16(20535), + 89: uint16(20536), + 90: uint16(20537), + 91: uint16(20539), + 92: uint16(20541), + 93: uint16(20543), + 94: uint16(20544), + 95: uint16(20545), + 96: uint16(20546), + 97: uint16(20548), + 98: uint16(20549), + 99: uint16(20550), + 100: uint16(20553), + 101: uint16(20554), + 102: uint16(20555), + 103: uint16(20557), + 104: uint16(20560), + 105: uint16(20561), + 106: uint16(20562), + 107: uint16(20563), + 108: uint16(20564), + 109: uint16(20566), + 110: uint16(20567), + 111: uint16(20568), + 112: uint16(20569), + 113: uint16(20571), + 114: uint16(20573), + 115: uint16(20574), + 116: uint16(20575), + 117: uint16(20576), + 118: uint16(20577), + 119: uint16(20578), + 120: uint16(20579), + 121: uint16(20580), + 122: uint16(20582), + 123: uint16(20583), + 124: uint16(20584), + 125: uint16(20585), + 126: uint16(20586), + 127: uint16(20587), + 128: uint16(20589), + 129: uint16(20590), + 130: uint16(20591), + 131: uint16(20592), + 132: uint16(20593), + 133: uint16(20594), + 134: uint16(20595), + 135: uint16(20596), + 136: uint16(20597), + 137: uint16(20600), + 138: uint16(20601), + 139: uint16(20602), + 140: uint16(20604), + 141: uint16(20605), + 142: uint16(20609), + 143: uint16(20610), + 144: uint16(20611), + 145: uint16(20612), + 146: uint16(20614), + 147: uint16(20615), + 148: uint16(20617), + 149: uint16(20618), + 150: uint16(20619), + 151: uint16(20620), + 152: uint16(20622), + 153: uint16(20623), + 154: uint16(20624), + 155: uint16(20625), + 156: uint16(20626), + 157: uint16(20627), + 158: uint16(20628), + 159: uint16(20629), + 160: uint16(20630), + 161: uint16(20631), + 162: uint16(20632), + 163: uint16(20633), + 164: uint16(20634), + 165: uint16(20635), + 166: uint16(20636), + 167: uint16(20637), + 168: uint16(20638), + 169: uint16(20639), + 170: uint16(20640), + 171: uint16(20641), + 172: uint16(20642), + 173: uint16(20644), + 174: uint16(20646), + 175: uint16(20650), + 176: uint16(20651), + 177: uint16(20653), + 178: uint16(20654), + 179: uint16(20655), + 180: uint16(20656), + 181: uint16(20657), + 182: uint16(20659), + 183: uint16(20660), + 184: uint16(20661), + 185: uint16(20662), + 186: uint16(20663), + 187: uint16(20664), + 188: uint16(20665), + 189: uint16(20668), + }, + 2: { + 0: uint16(20669), + 1: uint16(20670), + 2: uint16(20671), + 3: uint16(20672), + 4: uint16(20673), + 5: uint16(20674), + 6: uint16(20675), + 7: uint16(20676), + 8: uint16(20677), + 9: uint16(20678), + 10: uint16(20679), + 11: uint16(20680), + 12: uint16(20681), + 13: uint16(20682), + 14: uint16(20683), + 15: uint16(20684), + 16: uint16(20685), + 17: uint16(20686), + 18: uint16(20688), + 19: uint16(20689), + 20: uint16(20690), + 21: uint16(20691), + 22: uint16(20692), + 23: uint16(20693), + 24: uint16(20695), + 25: uint16(20696), + 26: uint16(20697), + 27: uint16(20699), + 28: uint16(20700), + 29: uint16(20701), + 30: uint16(20702), + 31: uint16(20703), + 32: uint16(20704), + 33: uint16(20705), + 34: uint16(20706), + 35: uint16(20707), + 36: uint16(20708), + 37: uint16(20709), + 38: uint16(20712), + 39: uint16(20713), + 40: uint16(20714), + 41: uint16(20715), + 42: uint16(20719), + 43: uint16(20720), + 44: uint16(20721), + 45: uint16(20722), + 46: uint16(20724), + 47: uint16(20726), + 48: uint16(20727), + 49: uint16(20728), + 50: uint16(20729), + 51: uint16(20730), + 52: uint16(20732), + 53: uint16(20733), + 54: uint16(20734), + 55: uint16(20735), + 56: uint16(20736), + 57: uint16(20737), + 58: uint16(20738), + 59: uint16(20739), + 60: uint16(20740), + 61: uint16(20741), + 62: uint16(20744), + 63: uint16(20745), + 64: uint16(20746), + 65: uint16(20748), + 66: uint16(20749), + 67: uint16(20750), + 68: uint16(20751), + 69: uint16(20752), + 70: uint16(20753), + 71: uint16(20755), + 72: uint16(20756), + 73: uint16(20757), + 74: uint16(20758), + 75: uint16(20759), + 76: uint16(20760), + 77: uint16(20761), + 78: uint16(20762), + 79: uint16(20763), + 80: uint16(20764), + 81: uint16(20765), + 82: uint16(20766), + 83: uint16(20767), + 84: uint16(20768), + 85: uint16(20770), + 86: uint16(20771), + 87: uint16(20772), + 88: uint16(20773), + 89: uint16(20774), + 90: uint16(20775), + 91: uint16(20776), + 92: uint16(20777), + 93: uint16(20778), + 94: uint16(20779), + 95: uint16(20780), + 96: uint16(20781), + 97: uint16(20782), + 98: uint16(20783), + 99: uint16(20784), + 100: uint16(20785), + 101: uint16(20786), + 102: uint16(20787), + 103: uint16(20788), + 104: uint16(20789), + 105: uint16(20790), + 106: uint16(20791), + 107: uint16(20792), + 108: uint16(20793), + 109: uint16(20794), + 110: uint16(20795), + 111: uint16(20796), + 112: uint16(20797), + 113: uint16(20798), + 114: uint16(20802), + 115: uint16(20807), + 116: uint16(20810), + 117: uint16(20812), + 118: uint16(20814), + 119: uint16(20815), + 120: uint16(20816), + 121: uint16(20818), + 122: uint16(20819), + 123: uint16(20823), + 124: uint16(20824), + 125: uint16(20825), + 126: uint16(20827), + 127: uint16(20829), + 128: uint16(20830), + 129: uint16(20831), + 130: uint16(20832), + 131: uint16(20833), + 132: uint16(20835), + 133: uint16(20836), + 134: uint16(20838), + 135: uint16(20839), + 136: uint16(20841), + 137: uint16(20842), + 138: uint16(20847), + 139: uint16(20850), + 140: uint16(20858), + 141: uint16(20862), + 142: uint16(20863), + 143: uint16(20867), + 144: uint16(20868), + 145: uint16(20870), + 146: uint16(20871), + 147: uint16(20874), + 148: uint16(20875), + 149: uint16(20878), + 150: uint16(20879), + 151: uint16(20880), + 152: uint16(20881), + 153: uint16(20883), + 154: uint16(20884), + 155: uint16(20888), + 156: uint16(20890), + 157: uint16(20893), + 158: uint16(20894), + 159: uint16(20895), + 160: uint16(20897), + 161: uint16(20899), + 162: uint16(20902), + 163: uint16(20903), + 164: uint16(20904), + 165: uint16(20905), + 166: uint16(20906), + 167: uint16(20909), + 168: uint16(20910), + 169: uint16(20916), + 170: uint16(20920), + 171: uint16(20921), + 172: uint16(20922), + 173: uint16(20926), + 174: uint16(20927), + 175: uint16(20929), + 176: uint16(20930), + 177: uint16(20931), + 178: uint16(20933), + 179: uint16(20936), + 180: uint16(20938), + 181: uint16(20941), + 182: uint16(20942), + 183: uint16(20944), + 184: uint16(20946), + 185: uint16(20947), + 186: uint16(20948), + 187: uint16(20949), + 188: uint16(20950), + 189: uint16(20951), + }, + 3: { + 0: uint16(20952), + 1: uint16(20953), + 2: uint16(20954), + 3: uint16(20956), + 4: uint16(20958), + 5: uint16(20959), + 6: uint16(20962), + 7: uint16(20963), + 8: uint16(20965), + 9: uint16(20966), + 10: uint16(20967), + 11: uint16(20968), + 12: uint16(20969), + 13: uint16(20970), + 14: uint16(20972), + 15: uint16(20974), + 16: uint16(20977), + 17: uint16(20978), + 18: uint16(20980), + 19: uint16(20983), + 20: uint16(20990), + 21: uint16(20996), + 22: uint16(20997), + 23: uint16(21001), + 24: uint16(21003), + 25: uint16(21004), + 26: uint16(21007), + 27: uint16(21008), + 28: uint16(21011), + 29: uint16(21012), + 30: uint16(21013), + 31: uint16(21020), + 32: uint16(21022), + 33: uint16(21023), + 34: uint16(21025), + 35: uint16(21026), + 36: uint16(21027), + 37: uint16(21029), + 38: uint16(21030), + 39: uint16(21031), + 40: uint16(21034), + 41: uint16(21036), + 42: uint16(21039), + 43: uint16(21041), + 44: uint16(21042), + 45: uint16(21044), + 46: uint16(21045), + 47: uint16(21052), + 48: uint16(21054), + 49: uint16(21060), + 50: uint16(21061), + 51: uint16(21062), + 52: uint16(21063), + 53: uint16(21064), + 54: uint16(21065), + 55: uint16(21067), + 56: uint16(21070), + 57: uint16(21071), + 58: uint16(21074), + 59: uint16(21075), + 60: uint16(21077), + 61: uint16(21079), + 62: uint16(21080), + 63: uint16(21081), + 64: uint16(21082), + 65: uint16(21083), + 66: uint16(21085), + 67: uint16(21087), + 68: uint16(21088), + 69: uint16(21090), + 70: uint16(21091), + 71: uint16(21092), + 72: uint16(21094), + 73: uint16(21096), + 74: uint16(21099), + 75: uint16(21100), + 76: uint16(21101), + 77: uint16(21102), + 78: uint16(21104), + 79: uint16(21105), + 80: uint16(21107), + 81: uint16(21108), + 82: uint16(21109), + 83: uint16(21110), + 84: uint16(21111), + 85: uint16(21112), + 86: uint16(21113), + 87: uint16(21114), + 88: uint16(21115), + 89: uint16(21116), + 90: uint16(21118), + 91: uint16(21120), + 92: uint16(21123), + 93: uint16(21124), + 94: uint16(21125), + 95: uint16(21126), + 96: uint16(21127), + 97: uint16(21129), + 98: uint16(21130), + 99: uint16(21131), + 100: uint16(21132), + 101: uint16(21133), + 102: uint16(21134), + 103: uint16(21135), + 104: uint16(21137), + 105: uint16(21138), + 106: uint16(21140), + 107: uint16(21141), + 108: uint16(21142), + 109: uint16(21143), + 110: uint16(21144), + 111: uint16(21145), + 112: uint16(21146), + 113: uint16(21148), + 114: uint16(21156), + 115: uint16(21157), + 116: uint16(21158), + 117: uint16(21159), + 118: uint16(21166), + 119: uint16(21167), + 120: uint16(21168), + 121: uint16(21172), + 122: uint16(21173), + 123: uint16(21174), + 124: uint16(21175), + 125: uint16(21176), + 126: uint16(21177), + 127: uint16(21178), + 128: uint16(21179), + 129: uint16(21180), + 130: uint16(21181), + 131: uint16(21184), + 132: uint16(21185), + 133: uint16(21186), + 134: uint16(21188), + 135: uint16(21189), + 136: uint16(21190), + 137: uint16(21192), + 138: uint16(21194), + 139: uint16(21196), + 140: uint16(21197), + 141: uint16(21198), + 142: uint16(21199), + 143: uint16(21201), + 144: uint16(21203), + 145: uint16(21204), + 146: uint16(21205), + 147: uint16(21207), + 148: uint16(21209), + 149: uint16(21210), + 150: uint16(21211), + 151: uint16(21212), + 152: uint16(21213), + 153: uint16(21214), + 154: uint16(21216), + 155: uint16(21217), + 156: uint16(21218), + 157: uint16(21219), + 158: uint16(21221), + 159: uint16(21222), + 160: uint16(21223), + 161: uint16(21224), + 162: uint16(21225), + 163: uint16(21226), + 164: uint16(21227), + 165: uint16(21228), + 166: uint16(21229), + 167: uint16(21230), + 168: uint16(21231), + 169: uint16(21233), + 170: uint16(21234), + 171: uint16(21235), + 172: uint16(21236), + 173: uint16(21237), + 174: uint16(21238), + 175: uint16(21239), + 176: uint16(21240), + 177: uint16(21243), + 178: uint16(21244), + 179: uint16(21245), + 180: uint16(21249), + 181: uint16(21250), + 182: uint16(21251), + 183: uint16(21252), + 184: uint16(21255), + 185: uint16(21257), + 186: uint16(21258), + 187: uint16(21259), + 188: uint16(21260), + 189: uint16(21262), + }, + 4: { + 0: uint16(21265), + 1: uint16(21266), + 2: uint16(21267), + 3: uint16(21268), + 4: uint16(21272), + 5: uint16(21275), + 6: uint16(21276), + 7: uint16(21278), + 8: uint16(21279), + 9: uint16(21282), + 10: uint16(21284), + 11: uint16(21285), + 12: uint16(21287), + 13: uint16(21288), + 14: uint16(21289), + 15: uint16(21291), + 16: uint16(21292), + 17: uint16(21293), + 18: uint16(21295), + 19: uint16(21296), + 20: uint16(21297), + 21: uint16(21298), + 22: uint16(21299), + 23: uint16(21300), + 24: uint16(21301), + 25: uint16(21302), + 26: uint16(21303), + 27: uint16(21304), + 28: uint16(21308), + 29: uint16(21309), + 30: uint16(21312), + 31: uint16(21314), + 32: uint16(21316), + 33: uint16(21318), + 34: uint16(21323), + 35: uint16(21324), + 36: uint16(21325), + 37: uint16(21328), + 38: uint16(21332), + 39: uint16(21336), + 40: uint16(21337), + 41: uint16(21339), + 42: uint16(21341), + 43: uint16(21349), + 44: uint16(21352), + 45: uint16(21354), + 46: uint16(21356), + 47: uint16(21357), + 48: uint16(21362), + 49: uint16(21366), + 50: uint16(21369), + 51: uint16(21371), + 52: uint16(21372), + 53: uint16(21373), + 54: uint16(21374), + 55: uint16(21376), + 56: uint16(21377), + 57: uint16(21379), + 58: uint16(21383), + 59: uint16(21384), + 60: uint16(21386), + 61: uint16(21390), + 62: uint16(21391), + 63: uint16(21392), + 64: uint16(21393), + 65: uint16(21394), + 66: uint16(21395), + 67: uint16(21396), + 68: uint16(21398), + 69: uint16(21399), + 70: uint16(21401), + 71: uint16(21403), + 72: uint16(21404), + 73: uint16(21406), + 74: uint16(21408), + 75: uint16(21409), + 76: uint16(21412), + 77: uint16(21415), + 78: uint16(21418), + 79: uint16(21419), + 80: uint16(21420), + 81: uint16(21421), + 82: uint16(21423), + 83: uint16(21424), + 84: uint16(21425), + 85: uint16(21426), + 86: uint16(21427), + 87: uint16(21428), + 88: uint16(21429), + 89: uint16(21431), + 90: uint16(21432), + 91: uint16(21433), + 92: uint16(21434), + 93: uint16(21436), + 94: uint16(21437), + 95: uint16(21438), + 96: uint16(21440), + 97: uint16(21443), + 98: uint16(21444), + 99: uint16(21445), + 100: uint16(21446), + 101: uint16(21447), + 102: uint16(21454), + 103: uint16(21455), + 104: uint16(21456), + 105: uint16(21458), + 106: uint16(21459), + 107: uint16(21461), + 108: uint16(21466), + 109: uint16(21468), + 110: uint16(21469), + 111: uint16(21470), + 112: uint16(21473), + 113: uint16(21474), + 114: uint16(21479), + 115: uint16(21492), + 116: uint16(21498), + 117: uint16(21502), + 118: uint16(21503), + 119: uint16(21504), + 120: uint16(21506), + 121: uint16(21509), + 122: uint16(21511), + 123: uint16(21515), + 124: uint16(21524), + 125: uint16(21528), + 126: uint16(21529), + 127: uint16(21530), + 128: uint16(21532), + 129: uint16(21538), + 130: uint16(21540), + 131: uint16(21541), + 132: uint16(21546), + 133: uint16(21552), + 134: uint16(21555), + 135: uint16(21558), + 136: uint16(21559), + 137: uint16(21562), + 138: uint16(21565), + 139: uint16(21567), + 140: uint16(21569), + 141: uint16(21570), + 142: uint16(21572), + 143: uint16(21573), + 144: uint16(21575), + 145: uint16(21577), + 146: uint16(21580), + 147: uint16(21581), + 148: uint16(21582), + 149: uint16(21583), + 150: uint16(21585), + 151: uint16(21594), + 152: uint16(21597), + 153: uint16(21598), + 154: uint16(21599), + 155: uint16(21600), + 156: uint16(21601), + 157: uint16(21603), + 158: uint16(21605), + 159: uint16(21607), + 160: uint16(21609), + 161: uint16(21610), + 162: uint16(21611), + 163: uint16(21612), + 164: uint16(21613), + 165: uint16(21614), + 166: uint16(21615), + 167: uint16(21616), + 168: uint16(21620), + 169: uint16(21625), + 170: uint16(21626), + 171: uint16(21630), + 172: uint16(21631), + 173: uint16(21633), + 174: uint16(21635), + 175: uint16(21637), + 176: uint16(21639), + 177: uint16(21640), + 178: uint16(21641), + 179: uint16(21642), + 180: uint16(21645), + 181: uint16(21649), + 182: uint16(21651), + 183: uint16(21655), + 184: uint16(21656), + 185: uint16(21660), + 186: uint16(21662), + 187: uint16(21663), + 188: uint16(21664), + 189: uint16(21665), + }, + 5: { + 0: uint16(21666), + 1: uint16(21669), + 2: uint16(21678), + 3: uint16(21680), + 4: uint16(21682), + 5: uint16(21685), + 6: uint16(21686), + 7: uint16(21687), + 8: uint16(21689), + 9: uint16(21690), + 10: uint16(21692), + 11: uint16(21694), + 12: uint16(21699), + 13: uint16(21701), + 14: uint16(21706), + 15: uint16(21707), + 16: uint16(21718), + 17: uint16(21720), + 18: uint16(21723), + 19: uint16(21728), + 20: uint16(21729), + 21: uint16(21730), + 22: uint16(21731), + 23: uint16(21732), + 24: uint16(21739), + 25: uint16(21740), + 26: uint16(21743), + 27: uint16(21744), + 28: uint16(21745), + 29: uint16(21748), + 30: uint16(21749), + 31: uint16(21750), + 32: uint16(21751), + 33: uint16(21752), + 34: uint16(21753), + 35: uint16(21755), + 36: uint16(21758), + 37: uint16(21760), + 38: uint16(21762), + 39: uint16(21763), + 40: uint16(21764), + 41: uint16(21765), + 42: uint16(21768), + 43: uint16(21770), + 44: uint16(21771), + 45: uint16(21772), + 46: uint16(21773), + 47: uint16(21774), + 48: uint16(21778), + 49: uint16(21779), + 50: uint16(21781), + 51: uint16(21782), + 52: uint16(21783), + 53: uint16(21784), + 54: uint16(21785), + 55: uint16(21786), + 56: uint16(21788), + 57: uint16(21789), + 58: uint16(21790), + 59: uint16(21791), + 60: uint16(21793), + 61: uint16(21797), + 62: uint16(21798), + 63: uint16(21800), + 64: uint16(21801), + 65: uint16(21803), + 66: uint16(21805), + 67: uint16(21810), + 68: uint16(21812), + 69: uint16(21813), + 70: uint16(21814), + 71: uint16(21816), + 72: uint16(21817), + 73: uint16(21818), + 74: uint16(21819), + 75: uint16(21821), + 76: uint16(21824), + 77: uint16(21826), + 78: uint16(21829), + 79: uint16(21831), + 80: uint16(21832), + 81: uint16(21835), + 82: uint16(21836), + 83: uint16(21837), + 84: uint16(21838), + 85: uint16(21839), + 86: uint16(21841), + 87: uint16(21842), + 88: uint16(21843), + 89: uint16(21844), + 90: uint16(21847), + 91: uint16(21848), + 92: uint16(21849), + 93: uint16(21850), + 94: uint16(21851), + 95: uint16(21853), + 96: uint16(21854), + 97: uint16(21855), + 98: uint16(21856), + 99: uint16(21858), + 100: uint16(21859), + 101: uint16(21864), + 102: uint16(21865), + 103: uint16(21867), + 104: uint16(21871), + 105: uint16(21872), + 106: uint16(21873), + 107: uint16(21874), + 108: uint16(21875), + 109: uint16(21876), + 110: uint16(21881), + 111: uint16(21882), + 112: uint16(21885), + 113: uint16(21887), + 114: uint16(21893), + 115: uint16(21894), + 116: uint16(21900), + 117: uint16(21901), + 118: uint16(21902), + 119: uint16(21904), + 120: uint16(21906), + 121: uint16(21907), + 122: uint16(21909), + 123: uint16(21910), + 124: uint16(21911), + 125: uint16(21914), + 126: uint16(21915), + 127: uint16(21918), + 128: uint16(21920), + 129: uint16(21921), + 130: uint16(21922), + 131: uint16(21923), + 132: uint16(21924), + 133: uint16(21925), + 134: uint16(21926), + 135: uint16(21928), + 136: uint16(21929), + 137: uint16(21930), + 138: uint16(21931), + 139: uint16(21932), + 140: uint16(21933), + 141: uint16(21934), + 142: uint16(21935), + 143: uint16(21936), + 144: uint16(21938), + 145: uint16(21940), + 146: uint16(21942), + 147: uint16(21944), + 148: uint16(21946), + 149: uint16(21948), + 150: uint16(21951), + 151: uint16(21952), + 152: uint16(21953), + 153: uint16(21954), + 154: uint16(21955), + 155: uint16(21958), + 156: uint16(21959), + 157: uint16(21960), + 158: uint16(21962), + 159: uint16(21963), + 160: uint16(21966), + 161: uint16(21967), + 162: uint16(21968), + 163: uint16(21973), + 164: uint16(21975), + 165: uint16(21976), + 166: uint16(21977), + 167: uint16(21978), + 168: uint16(21979), + 169: uint16(21982), + 170: uint16(21984), + 171: uint16(21986), + 172: uint16(21991), + 173: uint16(21993), + 174: uint16(21997), + 175: uint16(21998), + 176: uint16(22000), + 177: uint16(22001), + 178: uint16(22004), + 179: uint16(22006), + 180: uint16(22008), + 181: uint16(22009), + 182: uint16(22010), + 183: uint16(22011), + 184: uint16(22012), + 185: uint16(22015), + 186: uint16(22018), + 187: uint16(22019), + 188: uint16(22020), + 189: uint16(22021), + }, + 6: { + 0: uint16(22022), + 1: uint16(22023), + 2: uint16(22026), + 3: uint16(22027), + 4: uint16(22029), + 5: uint16(22032), + 6: uint16(22033), + 7: uint16(22034), + 8: uint16(22035), + 9: uint16(22036), + 10: uint16(22037), + 11: uint16(22038), + 12: uint16(22039), + 13: uint16(22041), + 14: uint16(22042), + 15: uint16(22044), + 16: uint16(22045), + 17: uint16(22048), + 18: uint16(22049), + 19: uint16(22050), + 20: uint16(22053), + 21: uint16(22054), + 22: uint16(22056), + 23: uint16(22057), + 24: uint16(22058), + 25: uint16(22059), + 26: uint16(22062), + 27: uint16(22063), + 28: uint16(22064), + 29: uint16(22067), + 30: uint16(22069), + 31: uint16(22071), + 32: uint16(22072), + 33: uint16(22074), + 34: uint16(22076), + 35: uint16(22077), + 36: uint16(22078), + 37: uint16(22080), + 38: uint16(22081), + 39: uint16(22082), + 40: uint16(22083), + 41: uint16(22084), + 42: uint16(22085), + 43: uint16(22086), + 44: uint16(22087), + 45: uint16(22088), + 46: uint16(22089), + 47: uint16(22090), + 48: uint16(22091), + 49: uint16(22095), + 50: uint16(22096), + 51: uint16(22097), + 52: uint16(22098), + 53: uint16(22099), + 54: uint16(22101), + 55: uint16(22102), + 56: uint16(22106), + 57: uint16(22107), + 58: uint16(22109), + 59: uint16(22110), + 60: uint16(22111), + 61: uint16(22112), + 62: uint16(22113), + 63: uint16(22115), + 64: uint16(22117), + 65: uint16(22118), + 66: uint16(22119), + 67: uint16(22125), + 68: uint16(22126), + 69: uint16(22127), + 70: uint16(22128), + 71: uint16(22130), + 72: uint16(22131), + 73: uint16(22132), + 74: uint16(22133), + 75: uint16(22135), + 76: uint16(22136), + 77: uint16(22137), + 78: uint16(22138), + 79: uint16(22141), + 80: uint16(22142), + 81: uint16(22143), + 82: uint16(22144), + 83: uint16(22145), + 84: uint16(22146), + 85: uint16(22147), + 86: uint16(22148), + 87: uint16(22151), + 88: uint16(22152), + 89: uint16(22153), + 90: uint16(22154), + 91: uint16(22155), + 92: uint16(22156), + 93: uint16(22157), + 94: uint16(22160), + 95: uint16(22161), + 96: uint16(22162), + 97: uint16(22164), + 98: uint16(22165), + 99: uint16(22166), + 100: uint16(22167), + 101: uint16(22168), + 102: uint16(22169), + 103: uint16(22170), + 104: uint16(22171), + 105: uint16(22172), + 106: uint16(22173), + 107: uint16(22174), + 108: uint16(22175), + 109: uint16(22176), + 110: uint16(22177), + 111: uint16(22178), + 112: uint16(22180), + 113: uint16(22181), + 114: uint16(22182), + 115: uint16(22183), + 116: uint16(22184), + 117: uint16(22185), + 118: uint16(22186), + 119: uint16(22187), + 120: uint16(22188), + 121: uint16(22189), + 122: uint16(22190), + 123: uint16(22192), + 124: uint16(22193), + 125: uint16(22194), + 126: uint16(22195), + 127: uint16(22196), + 128: uint16(22197), + 129: uint16(22198), + 130: uint16(22200), + 131: uint16(22201), + 132: uint16(22202), + 133: uint16(22203), + 134: uint16(22205), + 135: uint16(22206), + 136: uint16(22207), + 137: uint16(22208), + 138: uint16(22209), + 139: uint16(22210), + 140: uint16(22211), + 141: uint16(22212), + 142: uint16(22213), + 143: uint16(22214), + 144: uint16(22215), + 145: uint16(22216), + 146: uint16(22217), + 147: uint16(22219), + 148: uint16(22220), + 149: uint16(22221), + 150: uint16(22222), + 151: uint16(22223), + 152: uint16(22224), + 153: uint16(22225), + 154: uint16(22226), + 155: uint16(22227), + 156: uint16(22229), + 157: uint16(22230), + 158: uint16(22232), + 159: uint16(22233), + 160: uint16(22236), + 161: uint16(22243), + 162: uint16(22245), + 163: uint16(22246), + 164: uint16(22247), + 165: uint16(22248), + 166: uint16(22249), + 167: uint16(22250), + 168: uint16(22252), + 169: uint16(22254), + 170: uint16(22255), + 171: uint16(22258), + 172: uint16(22259), + 173: uint16(22262), + 174: uint16(22263), + 175: uint16(22264), + 176: uint16(22267), + 177: uint16(22268), + 178: uint16(22272), + 179: uint16(22273), + 180: uint16(22274), + 181: uint16(22277), + 182: uint16(22279), + 183: uint16(22283), + 184: uint16(22284), + 185: uint16(22285), + 186: uint16(22286), + 187: uint16(22287), + 188: uint16(22288), + 189: uint16(22289), + }, + 7: { + 0: uint16(22290), + 1: uint16(22291), + 2: uint16(22292), + 3: uint16(22293), + 4: uint16(22294), + 5: uint16(22295), + 6: uint16(22296), + 7: uint16(22297), + 8: uint16(22298), + 9: uint16(22299), + 10: uint16(22301), + 11: uint16(22302), + 12: uint16(22304), + 13: uint16(22305), + 14: uint16(22306), + 15: uint16(22308), + 16: uint16(22309), + 17: uint16(22310), + 18: uint16(22311), + 19: uint16(22315), + 20: uint16(22321), + 21: uint16(22322), + 22: uint16(22324), + 23: uint16(22325), + 24: uint16(22326), + 25: uint16(22327), + 26: uint16(22328), + 27: uint16(22332), + 28: uint16(22333), + 29: uint16(22335), + 30: uint16(22337), + 31: uint16(22339), + 32: uint16(22340), + 33: uint16(22341), + 34: uint16(22342), + 35: uint16(22344), + 36: uint16(22345), + 37: uint16(22347), + 38: uint16(22354), + 39: uint16(22355), + 40: uint16(22356), + 41: uint16(22357), + 42: uint16(22358), + 43: uint16(22360), + 44: uint16(22361), + 45: uint16(22370), + 46: uint16(22371), + 47: uint16(22373), + 48: uint16(22375), + 49: uint16(22380), + 50: uint16(22382), + 51: uint16(22384), + 52: uint16(22385), + 53: uint16(22386), + 54: uint16(22388), + 55: uint16(22389), + 56: uint16(22392), + 57: uint16(22393), + 58: uint16(22394), + 59: uint16(22397), + 60: uint16(22398), + 61: uint16(22399), + 62: uint16(22400), + 63: uint16(22401), + 64: uint16(22407), + 65: uint16(22408), + 66: uint16(22409), + 67: uint16(22410), + 68: uint16(22413), + 69: uint16(22414), + 70: uint16(22415), + 71: uint16(22416), + 72: uint16(22417), + 73: uint16(22420), + 74: uint16(22421), + 75: uint16(22422), + 76: uint16(22423), + 77: uint16(22424), + 78: uint16(22425), + 79: uint16(22426), + 80: uint16(22428), + 81: uint16(22429), + 82: uint16(22430), + 83: uint16(22431), + 84: uint16(22437), + 85: uint16(22440), + 86: uint16(22442), + 87: uint16(22444), + 88: uint16(22447), + 89: uint16(22448), + 90: uint16(22449), + 91: uint16(22451), + 92: uint16(22453), + 93: uint16(22454), + 94: uint16(22455), + 95: uint16(22457), + 96: uint16(22458), + 97: uint16(22459), + 98: uint16(22460), + 99: uint16(22461), + 100: uint16(22462), + 101: uint16(22463), + 102: uint16(22464), + 103: uint16(22465), + 104: uint16(22468), + 105: uint16(22469), + 106: uint16(22470), + 107: uint16(22471), + 108: uint16(22472), + 109: uint16(22473), + 110: uint16(22474), + 111: uint16(22476), + 112: uint16(22477), + 113: uint16(22480), + 114: uint16(22481), + 115: uint16(22483), + 116: uint16(22486), + 117: uint16(22487), + 118: uint16(22491), + 119: uint16(22492), + 120: uint16(22494), + 121: uint16(22497), + 122: uint16(22498), + 123: uint16(22499), + 124: uint16(22501), + 125: uint16(22502), + 126: uint16(22503), + 127: uint16(22504), + 128: uint16(22505), + 129: uint16(22506), + 130: uint16(22507), + 131: uint16(22508), + 132: uint16(22510), + 133: uint16(22512), + 134: uint16(22513), + 135: uint16(22514), + 136: uint16(22515), + 137: uint16(22517), + 138: uint16(22518), + 139: uint16(22519), + 140: uint16(22523), + 141: uint16(22524), + 142: uint16(22526), + 143: uint16(22527), + 144: uint16(22529), + 145: uint16(22531), + 146: uint16(22532), + 147: uint16(22533), + 148: uint16(22536), + 149: uint16(22537), + 150: uint16(22538), + 151: uint16(22540), + 152: uint16(22542), + 153: uint16(22543), + 154: uint16(22544), + 155: uint16(22546), + 156: uint16(22547), + 157: uint16(22548), + 158: uint16(22550), + 159: uint16(22551), + 160: uint16(22552), + 161: uint16(22554), + 162: uint16(22555), + 163: uint16(22556), + 164: uint16(22557), + 165: uint16(22559), + 166: uint16(22562), + 167: uint16(22563), + 168: uint16(22565), + 169: uint16(22566), + 170: uint16(22567), + 171: uint16(22568), + 172: uint16(22569), + 173: uint16(22571), + 174: uint16(22572), + 175: uint16(22573), + 176: uint16(22574), + 177: uint16(22575), + 178: uint16(22577), + 179: uint16(22578), + 180: uint16(22579), + 181: uint16(22580), + 182: uint16(22582), + 183: uint16(22583), + 184: uint16(22584), + 185: uint16(22585), + 186: uint16(22586), + 187: uint16(22587), + 188: uint16(22588), + 189: uint16(22589), + }, + 8: { + 0: uint16(22590), + 1: uint16(22591), + 2: uint16(22592), + 3: uint16(22593), + 4: uint16(22594), + 5: uint16(22595), + 6: uint16(22597), + 7: uint16(22598), + 8: uint16(22599), + 9: uint16(22600), + 10: uint16(22601), + 11: uint16(22602), + 12: uint16(22603), + 13: uint16(22606), + 14: uint16(22607), + 15: uint16(22608), + 16: uint16(22610), + 17: uint16(22611), + 18: uint16(22613), + 19: uint16(22614), + 20: uint16(22615), + 21: uint16(22617), + 22: uint16(22618), + 23: uint16(22619), + 24: uint16(22620), + 25: uint16(22621), + 26: uint16(22623), + 27: uint16(22624), + 28: uint16(22625), + 29: uint16(22626), + 30: uint16(22627), + 31: uint16(22628), + 32: uint16(22630), + 33: uint16(22631), + 34: uint16(22632), + 35: uint16(22633), + 36: uint16(22634), + 37: uint16(22637), + 38: uint16(22638), + 39: uint16(22639), + 40: uint16(22640), + 41: uint16(22641), + 42: uint16(22642), + 43: uint16(22643), + 44: uint16(22644), + 45: uint16(22645), + 46: uint16(22646), + 47: uint16(22647), + 48: uint16(22648), + 49: uint16(22649), + 50: uint16(22650), + 51: uint16(22651), + 52: uint16(22652), + 53: uint16(22653), + 54: uint16(22655), + 55: uint16(22658), + 56: uint16(22660), + 57: uint16(22662), + 58: uint16(22663), + 59: uint16(22664), + 60: uint16(22666), + 61: uint16(22667), + 62: uint16(22668), + 63: uint16(22669), + 64: uint16(22670), + 65: uint16(22671), + 66: uint16(22672), + 67: uint16(22673), + 68: uint16(22676), + 69: uint16(22677), + 70: uint16(22678), + 71: uint16(22679), + 72: uint16(22680), + 73: uint16(22683), + 74: uint16(22684), + 75: uint16(22685), + 76: uint16(22688), + 77: uint16(22689), + 78: uint16(22690), + 79: uint16(22691), + 80: uint16(22692), + 81: uint16(22693), + 82: uint16(22694), + 83: uint16(22695), + 84: uint16(22698), + 85: uint16(22699), + 86: uint16(22700), + 87: uint16(22701), + 88: uint16(22702), + 89: uint16(22703), + 90: uint16(22704), + 91: uint16(22705), + 92: uint16(22706), + 93: uint16(22707), + 94: uint16(22708), + 95: uint16(22709), + 96: uint16(22710), + 97: uint16(22711), + 98: uint16(22712), + 99: uint16(22713), + 100: uint16(22714), + 101: uint16(22715), + 102: uint16(22717), + 103: uint16(22718), + 104: uint16(22719), + 105: uint16(22720), + 106: uint16(22722), + 107: uint16(22723), + 108: uint16(22724), + 109: uint16(22726), + 110: uint16(22727), + 111: uint16(22728), + 112: uint16(22729), + 113: uint16(22730), + 114: uint16(22731), + 115: uint16(22732), + 116: uint16(22733), + 117: uint16(22734), + 118: uint16(22735), + 119: uint16(22736), + 120: uint16(22738), + 121: uint16(22739), + 122: uint16(22740), + 123: uint16(22742), + 124: uint16(22743), + 125: uint16(22744), + 126: uint16(22745), + 127: uint16(22746), + 128: uint16(22747), + 129: uint16(22748), + 130: uint16(22749), + 131: uint16(22750), + 132: uint16(22751), + 133: uint16(22752), + 134: uint16(22753), + 135: uint16(22754), + 136: uint16(22755), + 137: uint16(22757), + 138: uint16(22758), + 139: uint16(22759), + 140: uint16(22760), + 141: uint16(22761), + 142: uint16(22762), + 143: uint16(22765), + 144: uint16(22767), + 145: uint16(22769), + 146: uint16(22770), + 147: uint16(22772), + 148: uint16(22773), + 149: uint16(22775), + 150: uint16(22776), + 151: uint16(22778), + 152: uint16(22779), + 153: uint16(22780), + 154: uint16(22781), + 155: uint16(22782), + 156: uint16(22783), + 157: uint16(22784), + 158: uint16(22785), + 159: uint16(22787), + 160: uint16(22789), + 161: uint16(22790), + 162: uint16(22792), + 163: uint16(22793), + 164: uint16(22794), + 165: uint16(22795), + 166: uint16(22796), + 167: uint16(22798), + 168: uint16(22800), + 169: uint16(22801), + 170: uint16(22802), + 171: uint16(22803), + 172: uint16(22807), + 173: uint16(22808), + 174: uint16(22811), + 175: uint16(22813), + 176: uint16(22814), + 177: uint16(22816), + 178: uint16(22817), + 179: uint16(22818), + 180: uint16(22819), + 181: uint16(22822), + 182: uint16(22824), + 183: uint16(22828), + 184: uint16(22832), + 185: uint16(22834), + 186: uint16(22835), + 187: uint16(22837), + 188: uint16(22838), + 189: uint16(22843), + }, + 9: { + 0: uint16(22845), + 1: uint16(22846), + 2: uint16(22847), + 3: uint16(22848), + 4: uint16(22851), + 5: uint16(22853), + 6: uint16(22854), + 7: uint16(22858), + 8: uint16(22860), + 9: uint16(22861), + 10: uint16(22864), + 11: uint16(22866), + 12: uint16(22867), + 13: uint16(22873), + 14: uint16(22875), + 15: uint16(22876), + 16: uint16(22877), + 17: uint16(22878), + 18: uint16(22879), + 19: uint16(22881), + 20: uint16(22883), + 21: uint16(22884), + 22: uint16(22886), + 23: uint16(22887), + 24: uint16(22888), + 25: uint16(22889), + 26: uint16(22890), + 27: uint16(22891), + 28: uint16(22892), + 29: uint16(22893), + 30: uint16(22894), + 31: uint16(22895), + 32: uint16(22896), + 33: uint16(22897), + 34: uint16(22898), + 35: uint16(22901), + 36: uint16(22903), + 37: uint16(22906), + 38: uint16(22907), + 39: uint16(22908), + 40: uint16(22910), + 41: uint16(22911), + 42: uint16(22912), + 43: uint16(22917), + 44: uint16(22921), + 45: uint16(22923), + 46: uint16(22924), + 47: uint16(22926), + 48: uint16(22927), + 49: uint16(22928), + 50: uint16(22929), + 51: uint16(22932), + 52: uint16(22933), + 53: uint16(22936), + 54: uint16(22938), + 55: uint16(22939), + 56: uint16(22940), + 57: uint16(22941), + 58: uint16(22943), + 59: uint16(22944), + 60: uint16(22945), + 61: uint16(22946), + 62: uint16(22950), + 63: uint16(22951), + 64: uint16(22956), + 65: uint16(22957), + 66: uint16(22960), + 67: uint16(22961), + 68: uint16(22963), + 69: uint16(22964), + 70: uint16(22965), + 71: uint16(22966), + 72: uint16(22967), + 73: uint16(22968), + 74: uint16(22970), + 75: uint16(22972), + 76: uint16(22973), + 77: uint16(22975), + 78: uint16(22976), + 79: uint16(22977), + 80: uint16(22978), + 81: uint16(22979), + 82: uint16(22980), + 83: uint16(22981), + 84: uint16(22983), + 85: uint16(22984), + 86: uint16(22985), + 87: uint16(22988), + 88: uint16(22989), + 89: uint16(22990), + 90: uint16(22991), + 91: uint16(22997), + 92: uint16(22998), + 93: uint16(23001), + 94: uint16(23003), + 95: uint16(23006), + 96: uint16(23007), + 97: uint16(23008), + 98: uint16(23009), + 99: uint16(23010), + 100: uint16(23012), + 101: uint16(23014), + 102: uint16(23015), + 103: uint16(23017), + 104: uint16(23018), + 105: uint16(23019), + 106: uint16(23021), + 107: uint16(23022), + 108: uint16(23023), + 109: uint16(23024), + 110: uint16(23025), + 111: uint16(23026), + 112: uint16(23027), + 113: uint16(23028), + 114: uint16(23029), + 115: uint16(23030), + 116: uint16(23031), + 117: uint16(23032), + 118: uint16(23034), + 119: uint16(23036), + 120: uint16(23037), + 121: uint16(23038), + 122: uint16(23040), + 123: uint16(23042), + 124: uint16(23050), + 125: uint16(23051), + 126: uint16(23053), + 127: uint16(23054), + 128: uint16(23055), + 129: uint16(23056), + 130: uint16(23058), + 131: uint16(23060), + 132: uint16(23061), + 133: uint16(23062), + 134: uint16(23063), + 135: uint16(23065), + 136: uint16(23066), + 137: uint16(23067), + 138: uint16(23069), + 139: uint16(23070), + 140: uint16(23073), + 141: uint16(23074), + 142: uint16(23076), + 143: uint16(23078), + 144: uint16(23079), + 145: uint16(23080), + 146: uint16(23082), + 147: uint16(23083), + 148: uint16(23084), + 149: uint16(23085), + 150: uint16(23086), + 151: uint16(23087), + 152: uint16(23088), + 153: uint16(23091), + 154: uint16(23093), + 155: uint16(23095), + 156: uint16(23096), + 157: uint16(23097), + 158: uint16(23098), + 159: uint16(23099), + 160: uint16(23101), + 161: uint16(23102), + 162: uint16(23103), + 163: uint16(23105), + 164: uint16(23106), + 165: uint16(23107), + 166: uint16(23108), + 167: uint16(23109), + 168: uint16(23111), + 169: uint16(23112), + 170: uint16(23115), + 171: uint16(23116), + 172: uint16(23117), + 173: uint16(23118), + 174: uint16(23119), + 175: uint16(23120), + 176: uint16(23121), + 177: uint16(23122), + 178: uint16(23123), + 179: uint16(23124), + 180: uint16(23126), + 181: uint16(23127), + 182: uint16(23128), + 183: uint16(23129), + 184: uint16(23131), + 185: uint16(23132), + 186: uint16(23133), + 187: uint16(23134), + 188: uint16(23135), + 189: uint16(23136), + }, + 10: { + 0: uint16(23137), + 1: uint16(23139), + 2: uint16(23140), + 3: uint16(23141), + 4: uint16(23142), + 5: uint16(23144), + 6: uint16(23145), + 7: uint16(23147), + 8: uint16(23148), + 9: uint16(23149), + 10: uint16(23150), + 11: uint16(23151), + 12: uint16(23152), + 13: uint16(23153), + 14: uint16(23154), + 15: uint16(23155), + 16: uint16(23160), + 17: uint16(23161), + 18: uint16(23163), + 19: uint16(23164), + 20: uint16(23165), + 21: uint16(23166), + 22: uint16(23168), + 23: uint16(23169), + 24: uint16(23170), + 25: uint16(23171), + 26: uint16(23172), + 27: uint16(23173), + 28: uint16(23174), + 29: uint16(23175), + 30: uint16(23176), + 31: uint16(23177), + 32: uint16(23178), + 33: uint16(23179), + 34: uint16(23180), + 35: uint16(23181), + 36: uint16(23182), + 37: uint16(23183), + 38: uint16(23184), + 39: uint16(23185), + 40: uint16(23187), + 41: uint16(23188), + 42: uint16(23189), + 43: uint16(23190), + 44: uint16(23191), + 45: uint16(23192), + 46: uint16(23193), + 47: uint16(23196), + 48: uint16(23197), + 49: uint16(23198), + 50: uint16(23199), + 51: uint16(23200), + 52: uint16(23201), + 53: uint16(23202), + 54: uint16(23203), + 55: uint16(23204), + 56: uint16(23205), + 57: uint16(23206), + 58: uint16(23207), + 59: uint16(23208), + 60: uint16(23209), + 61: uint16(23211), + 62: uint16(23212), + 63: uint16(23213), + 64: uint16(23214), + 65: uint16(23215), + 66: uint16(23216), + 67: uint16(23217), + 68: uint16(23220), + 69: uint16(23222), + 70: uint16(23223), + 71: uint16(23225), + 72: uint16(23226), + 73: uint16(23227), + 74: uint16(23228), + 75: uint16(23229), + 76: uint16(23231), + 77: uint16(23232), + 78: uint16(23235), + 79: uint16(23236), + 80: uint16(23237), + 81: uint16(23238), + 82: uint16(23239), + 83: uint16(23240), + 84: uint16(23242), + 85: uint16(23243), + 86: uint16(23245), + 87: uint16(23246), + 88: uint16(23247), + 89: uint16(23248), + 90: uint16(23249), + 91: uint16(23251), + 92: uint16(23253), + 93: uint16(23255), + 94: uint16(23257), + 95: uint16(23258), + 96: uint16(23259), + 97: uint16(23261), + 98: uint16(23262), + 99: uint16(23263), + 100: uint16(23266), + 101: uint16(23268), + 102: uint16(23269), + 103: uint16(23271), + 104: uint16(23272), + 105: uint16(23274), + 106: uint16(23276), + 107: uint16(23277), + 108: uint16(23278), + 109: uint16(23279), + 110: uint16(23280), + 111: uint16(23282), + 112: uint16(23283), + 113: uint16(23284), + 114: uint16(23285), + 115: uint16(23286), + 116: uint16(23287), + 117: uint16(23288), + 118: uint16(23289), + 119: uint16(23290), + 120: uint16(23291), + 121: uint16(23292), + 122: uint16(23293), + 123: uint16(23294), + 124: uint16(23295), + 125: uint16(23296), + 126: uint16(23297), + 127: uint16(23298), + 128: uint16(23299), + 129: uint16(23300), + 130: uint16(23301), + 131: uint16(23302), + 132: uint16(23303), + 133: uint16(23304), + 134: uint16(23306), + 135: uint16(23307), + 136: uint16(23308), + 137: uint16(23309), + 138: uint16(23310), + 139: uint16(23311), + 140: uint16(23312), + 141: uint16(23313), + 142: uint16(23314), + 143: uint16(23315), + 144: uint16(23316), + 145: uint16(23317), + 146: uint16(23320), + 147: uint16(23321), + 148: uint16(23322), + 149: uint16(23323), + 150: uint16(23324), + 151: uint16(23325), + 152: uint16(23326), + 153: uint16(23327), + 154: uint16(23328), + 155: uint16(23329), + 156: uint16(23330), + 157: uint16(23331), + 158: uint16(23332), + 159: uint16(23333), + 160: uint16(23334), + 161: uint16(23335), + 162: uint16(23336), + 163: uint16(23337), + 164: uint16(23338), + 165: uint16(23339), + 166: uint16(23340), + 167: uint16(23341), + 168: uint16(23342), + 169: uint16(23343), + 170: uint16(23344), + 171: uint16(23345), + 172: uint16(23347), + 173: uint16(23349), + 174: uint16(23350), + 175: uint16(23352), + 176: uint16(23353), + 177: uint16(23354), + 178: uint16(23355), + 179: uint16(23356), + 180: uint16(23357), + 181: uint16(23358), + 182: uint16(23359), + 183: uint16(23361), + 184: uint16(23362), + 185: uint16(23363), + 186: uint16(23364), + 187: uint16(23365), + 188: uint16(23366), + 189: uint16(23367), + }, + 11: { + 0: uint16(23368), + 1: uint16(23369), + 2: uint16(23370), + 3: uint16(23371), + 4: uint16(23372), + 5: uint16(23373), + 6: uint16(23374), + 7: uint16(23375), + 8: uint16(23378), + 9: uint16(23382), + 10: uint16(23390), + 11: uint16(23392), + 12: uint16(23393), + 13: uint16(23399), + 14: uint16(23400), + 15: uint16(23403), + 16: uint16(23405), + 17: uint16(23406), + 18: uint16(23407), + 19: uint16(23410), + 20: uint16(23412), + 21: uint16(23414), + 22: uint16(23415), + 23: uint16(23416), + 24: uint16(23417), + 25: uint16(23419), + 26: uint16(23420), + 27: uint16(23422), + 28: uint16(23423), + 29: uint16(23426), + 30: uint16(23430), + 31: uint16(23434), + 32: uint16(23437), + 33: uint16(23438), + 34: uint16(23440), + 35: uint16(23441), + 36: uint16(23442), + 37: uint16(23444), + 38: uint16(23446), + 39: uint16(23455), + 40: uint16(23463), + 41: uint16(23464), + 42: uint16(23465), + 43: uint16(23468), + 44: uint16(23469), + 45: uint16(23470), + 46: uint16(23471), + 47: uint16(23473), + 48: uint16(23474), + 49: uint16(23479), + 50: uint16(23482), + 51: uint16(23483), + 52: uint16(23484), + 53: uint16(23488), + 54: uint16(23489), + 55: uint16(23491), + 56: uint16(23496), + 57: uint16(23497), + 58: uint16(23498), + 59: uint16(23499), + 60: uint16(23501), + 61: uint16(23502), + 62: uint16(23503), + 63: uint16(23505), + 64: uint16(23508), + 65: uint16(23509), + 66: uint16(23510), + 67: uint16(23511), + 68: uint16(23512), + 69: uint16(23513), + 70: uint16(23514), + 71: uint16(23515), + 72: uint16(23516), + 73: uint16(23520), + 74: uint16(23522), + 75: uint16(23523), + 76: uint16(23526), + 77: uint16(23527), + 78: uint16(23529), + 79: uint16(23530), + 80: uint16(23531), + 81: uint16(23532), + 82: uint16(23533), + 83: uint16(23535), + 84: uint16(23537), + 85: uint16(23538), + 86: uint16(23539), + 87: uint16(23540), + 88: uint16(23541), + 89: uint16(23542), + 90: uint16(23543), + 91: uint16(23549), + 92: uint16(23550), + 93: uint16(23552), + 94: uint16(23554), + 95: uint16(23555), + 96: uint16(23557), + 97: uint16(23559), + 98: uint16(23560), + 99: uint16(23563), + 100: uint16(23564), + 101: uint16(23565), + 102: uint16(23566), + 103: uint16(23568), + 104: uint16(23570), + 105: uint16(23571), + 106: uint16(23575), + 107: uint16(23577), + 108: uint16(23579), + 109: uint16(23582), + 110: uint16(23583), + 111: uint16(23584), + 112: uint16(23585), + 113: uint16(23587), + 114: uint16(23590), + 115: uint16(23592), + 116: uint16(23593), + 117: uint16(23594), + 118: uint16(23595), + 119: uint16(23597), + 120: uint16(23598), + 121: uint16(23599), + 122: uint16(23600), + 123: uint16(23602), + 124: uint16(23603), + 125: uint16(23605), + 126: uint16(23606), + 127: uint16(23607), + 128: uint16(23619), + 129: uint16(23620), + 130: uint16(23622), + 131: uint16(23623), + 132: uint16(23628), + 133: uint16(23629), + 134: uint16(23634), + 135: uint16(23635), + 136: uint16(23636), + 137: uint16(23638), + 138: uint16(23639), + 139: uint16(23640), + 140: uint16(23642), + 141: uint16(23643), + 142: uint16(23644), + 143: uint16(23645), + 144: uint16(23647), + 145: uint16(23650), + 146: uint16(23652), + 147: uint16(23655), + 148: uint16(23656), + 149: uint16(23657), + 150: uint16(23658), + 151: uint16(23659), + 152: uint16(23660), + 153: uint16(23661), + 154: uint16(23664), + 155: uint16(23666), + 156: uint16(23667), + 157: uint16(23668), + 158: uint16(23669), + 159: uint16(23670), + 160: uint16(23671), + 161: uint16(23672), + 162: uint16(23675), + 163: uint16(23676), + 164: uint16(23677), + 165: uint16(23678), + 166: uint16(23680), + 167: uint16(23683), + 168: uint16(23684), + 169: uint16(23685), + 170: uint16(23686), + 171: uint16(23687), + 172: uint16(23689), + 173: uint16(23690), + 174: uint16(23691), + 175: uint16(23694), + 176: uint16(23695), + 177: uint16(23698), + 178: uint16(23699), + 179: uint16(23701), + 180: uint16(23709), + 181: uint16(23710), + 182: uint16(23711), + 183: uint16(23712), + 184: uint16(23713), + 185: uint16(23716), + 186: uint16(23717), + 187: uint16(23718), + 188: uint16(23719), + 189: uint16(23720), + }, + 12: { + 0: uint16(23722), + 1: uint16(23726), + 2: uint16(23727), + 3: uint16(23728), + 4: uint16(23730), + 5: uint16(23732), + 6: uint16(23734), + 7: uint16(23737), + 8: uint16(23738), + 9: uint16(23739), + 10: uint16(23740), + 11: uint16(23742), + 12: uint16(23744), + 13: uint16(23746), + 14: uint16(23747), + 15: uint16(23749), + 16: uint16(23750), + 17: uint16(23751), + 18: uint16(23752), + 19: uint16(23753), + 20: uint16(23754), + 21: uint16(23756), + 22: uint16(23757), + 23: uint16(23758), + 24: uint16(23759), + 25: uint16(23760), + 26: uint16(23761), + 27: uint16(23763), + 28: uint16(23764), + 29: uint16(23765), + 30: uint16(23766), + 31: uint16(23767), + 32: uint16(23768), + 33: uint16(23770), + 34: uint16(23771), + 35: uint16(23772), + 36: uint16(23773), + 37: uint16(23774), + 38: uint16(23775), + 39: uint16(23776), + 40: uint16(23778), + 41: uint16(23779), + 42: uint16(23783), + 43: uint16(23785), + 44: uint16(23787), + 45: uint16(23788), + 46: uint16(23790), + 47: uint16(23791), + 48: uint16(23793), + 49: uint16(23794), + 50: uint16(23795), + 51: uint16(23796), + 52: uint16(23797), + 53: uint16(23798), + 54: uint16(23799), + 55: uint16(23800), + 56: uint16(23801), + 57: uint16(23802), + 58: uint16(23804), + 59: uint16(23805), + 60: uint16(23806), + 61: uint16(23807), + 62: uint16(23808), + 63: uint16(23809), + 64: uint16(23812), + 65: uint16(23813), + 66: uint16(23816), + 67: uint16(23817), + 68: uint16(23818), + 69: uint16(23819), + 70: uint16(23820), + 71: uint16(23821), + 72: uint16(23823), + 73: uint16(23824), + 74: uint16(23825), + 75: uint16(23826), + 76: uint16(23827), + 77: uint16(23829), + 78: uint16(23831), + 79: uint16(23832), + 80: uint16(23833), + 81: uint16(23834), + 82: uint16(23836), + 83: uint16(23837), + 84: uint16(23839), + 85: uint16(23840), + 86: uint16(23841), + 87: uint16(23842), + 88: uint16(23843), + 89: uint16(23845), + 90: uint16(23848), + 91: uint16(23850), + 92: uint16(23851), + 93: uint16(23852), + 94: uint16(23855), + 95: uint16(23856), + 96: uint16(23857), + 97: uint16(23858), + 98: uint16(23859), + 99: uint16(23861), + 100: uint16(23862), + 101: uint16(23863), + 102: uint16(23864), + 103: uint16(23865), + 104: uint16(23866), + 105: uint16(23867), + 106: uint16(23868), + 107: uint16(23871), + 108: uint16(23872), + 109: uint16(23873), + 110: uint16(23874), + 111: uint16(23875), + 112: uint16(23876), + 113: uint16(23877), + 114: uint16(23878), + 115: uint16(23880), + 116: uint16(23881), + 117: uint16(23885), + 118: uint16(23886), + 119: uint16(23887), + 120: uint16(23888), + 121: uint16(23889), + 122: uint16(23890), + 123: uint16(23891), + 124: uint16(23892), + 125: uint16(23893), + 126: uint16(23894), + 127: uint16(23895), + 128: uint16(23897), + 129: uint16(23898), + 130: uint16(23900), + 131: uint16(23902), + 132: uint16(23903), + 133: uint16(23904), + 134: uint16(23905), + 135: uint16(23906), + 136: uint16(23907), + 137: uint16(23908), + 138: uint16(23909), + 139: uint16(23910), + 140: uint16(23911), + 141: uint16(23912), + 142: uint16(23914), + 143: uint16(23917), + 144: uint16(23918), + 145: uint16(23920), + 146: uint16(23921), + 147: uint16(23922), + 148: uint16(23923), + 149: uint16(23925), + 150: uint16(23926), + 151: uint16(23927), + 152: uint16(23928), + 153: uint16(23929), + 154: uint16(23930), + 155: uint16(23931), + 156: uint16(23932), + 157: uint16(23933), + 158: uint16(23934), + 159: uint16(23935), + 160: uint16(23936), + 161: uint16(23937), + 162: uint16(23939), + 163: uint16(23940), + 164: uint16(23941), + 165: uint16(23942), + 166: uint16(23943), + 167: uint16(23944), + 168: uint16(23945), + 169: uint16(23946), + 170: uint16(23947), + 171: uint16(23948), + 172: uint16(23949), + 173: uint16(23950), + 174: uint16(23951), + 175: uint16(23952), + 176: uint16(23953), + 177: uint16(23954), + 178: uint16(23955), + 179: uint16(23956), + 180: uint16(23957), + 181: uint16(23958), + 182: uint16(23959), + 183: uint16(23960), + 184: uint16(23962), + 185: uint16(23963), + 186: uint16(23964), + 187: uint16(23966), + 188: uint16(23967), + 189: uint16(23968), + }, + 13: { + 0: uint16(23969), + 1: uint16(23970), + 2: uint16(23971), + 3: uint16(23972), + 4: uint16(23973), + 5: uint16(23974), + 6: uint16(23975), + 7: uint16(23976), + 8: uint16(23977), + 9: uint16(23978), + 10: uint16(23979), + 11: uint16(23980), + 12: uint16(23981), + 13: uint16(23982), + 14: uint16(23983), + 15: uint16(23984), + 16: uint16(23985), + 17: uint16(23986), + 18: uint16(23987), + 19: uint16(23988), + 20: uint16(23989), + 21: uint16(23990), + 22: uint16(23992), + 23: uint16(23993), + 24: uint16(23994), + 25: uint16(23995), + 26: uint16(23996), + 27: uint16(23997), + 28: uint16(23998), + 29: uint16(23999), + 30: uint16(24000), + 31: uint16(24001), + 32: uint16(24002), + 33: uint16(24003), + 34: uint16(24004), + 35: uint16(24006), + 36: uint16(24007), + 37: uint16(24008), + 38: uint16(24009), + 39: uint16(24010), + 40: uint16(24011), + 41: uint16(24012), + 42: uint16(24014), + 43: uint16(24015), + 44: uint16(24016), + 45: uint16(24017), + 46: uint16(24018), + 47: uint16(24019), + 48: uint16(24020), + 49: uint16(24021), + 50: uint16(24022), + 51: uint16(24023), + 52: uint16(24024), + 53: uint16(24025), + 54: uint16(24026), + 55: uint16(24028), + 56: uint16(24031), + 57: uint16(24032), + 58: uint16(24035), + 59: uint16(24036), + 60: uint16(24042), + 61: uint16(24044), + 62: uint16(24045), + 63: uint16(24048), + 64: uint16(24053), + 65: uint16(24054), + 66: uint16(24056), + 67: uint16(24057), + 68: uint16(24058), + 69: uint16(24059), + 70: uint16(24060), + 71: uint16(24063), + 72: uint16(24064), + 73: uint16(24068), + 74: uint16(24071), + 75: uint16(24073), + 76: uint16(24074), + 77: uint16(24075), + 78: uint16(24077), + 79: uint16(24078), + 80: uint16(24082), + 81: uint16(24083), + 82: uint16(24087), + 83: uint16(24094), + 84: uint16(24095), + 85: uint16(24096), + 86: uint16(24097), + 87: uint16(24098), + 88: uint16(24099), + 89: uint16(24100), + 90: uint16(24101), + 91: uint16(24104), + 92: uint16(24105), + 93: uint16(24106), + 94: uint16(24107), + 95: uint16(24108), + 96: uint16(24111), + 97: uint16(24112), + 98: uint16(24114), + 99: uint16(24115), + 100: uint16(24116), + 101: uint16(24117), + 102: uint16(24118), + 103: uint16(24121), + 104: uint16(24122), + 105: uint16(24126), + 106: uint16(24127), + 107: uint16(24128), + 108: uint16(24129), + 109: uint16(24131), + 110: uint16(24134), + 111: uint16(24135), + 112: uint16(24136), + 113: uint16(24137), + 114: uint16(24138), + 115: uint16(24139), + 116: uint16(24141), + 117: uint16(24142), + 118: uint16(24143), + 119: uint16(24144), + 120: uint16(24145), + 121: uint16(24146), + 122: uint16(24147), + 123: uint16(24150), + 124: uint16(24151), + 125: uint16(24152), + 126: uint16(24153), + 127: uint16(24154), + 128: uint16(24156), + 129: uint16(24157), + 130: uint16(24159), + 131: uint16(24160), + 132: uint16(24163), + 133: uint16(24164), + 134: uint16(24165), + 135: uint16(24166), + 136: uint16(24167), + 137: uint16(24168), + 138: uint16(24169), + 139: uint16(24170), + 140: uint16(24171), + 141: uint16(24172), + 142: uint16(24173), + 143: uint16(24174), + 144: uint16(24175), + 145: uint16(24176), + 146: uint16(24177), + 147: uint16(24181), + 148: uint16(24183), + 149: uint16(24185), + 150: uint16(24190), + 151: uint16(24193), + 152: uint16(24194), + 153: uint16(24195), + 154: uint16(24197), + 155: uint16(24200), + 156: uint16(24201), + 157: uint16(24204), + 158: uint16(24205), + 159: uint16(24206), + 160: uint16(24210), + 161: uint16(24216), + 162: uint16(24219), + 163: uint16(24221), + 164: uint16(24225), + 165: uint16(24226), + 166: uint16(24227), + 167: uint16(24228), + 168: uint16(24232), + 169: uint16(24233), + 170: uint16(24234), + 171: uint16(24235), + 172: uint16(24236), + 173: uint16(24238), + 174: uint16(24239), + 175: uint16(24240), + 176: uint16(24241), + 177: uint16(24242), + 178: uint16(24244), + 179: uint16(24250), + 180: uint16(24251), + 181: uint16(24252), + 182: uint16(24253), + 183: uint16(24255), + 184: uint16(24256), + 185: uint16(24257), + 186: uint16(24258), + 187: uint16(24259), + 188: uint16(24260), + 189: uint16(24261), + }, + 14: { + 0: uint16(24262), + 1: uint16(24263), + 2: uint16(24264), + 3: uint16(24267), + 4: uint16(24268), + 5: uint16(24269), + 6: uint16(24270), + 7: uint16(24271), + 8: uint16(24272), + 9: uint16(24276), + 10: uint16(24277), + 11: uint16(24279), + 12: uint16(24280), + 13: uint16(24281), + 14: uint16(24282), + 15: uint16(24284), + 16: uint16(24285), + 17: uint16(24286), + 18: uint16(24287), + 19: uint16(24288), + 20: uint16(24289), + 21: uint16(24290), + 22: uint16(24291), + 23: uint16(24292), + 24: uint16(24293), + 25: uint16(24294), + 26: uint16(24295), + 27: uint16(24297), + 28: uint16(24299), + 29: uint16(24300), + 30: uint16(24301), + 31: uint16(24302), + 32: uint16(24303), + 33: uint16(24304), + 34: uint16(24305), + 35: uint16(24306), + 36: uint16(24307), + 37: uint16(24309), + 38: uint16(24312), + 39: uint16(24313), + 40: uint16(24315), + 41: uint16(24316), + 42: uint16(24317), + 43: uint16(24325), + 44: uint16(24326), + 45: uint16(24327), + 46: uint16(24329), + 47: uint16(24332), + 48: uint16(24333), + 49: uint16(24334), + 50: uint16(24336), + 51: uint16(24338), + 52: uint16(24340), + 53: uint16(24342), + 54: uint16(24345), + 55: uint16(24346), + 56: uint16(24348), + 57: uint16(24349), + 58: uint16(24350), + 59: uint16(24353), + 60: uint16(24354), + 61: uint16(24355), + 62: uint16(24356), + 63: uint16(24360), + 64: uint16(24363), + 65: uint16(24364), + 66: uint16(24366), + 67: uint16(24368), + 68: uint16(24370), + 69: uint16(24371), + 70: uint16(24372), + 71: uint16(24373), + 72: uint16(24374), + 73: uint16(24375), + 74: uint16(24376), + 75: uint16(24379), + 76: uint16(24381), + 77: uint16(24382), + 78: uint16(24383), + 79: uint16(24385), + 80: uint16(24386), + 81: uint16(24387), + 82: uint16(24388), + 83: uint16(24389), + 84: uint16(24390), + 85: uint16(24391), + 86: uint16(24392), + 87: uint16(24393), + 88: uint16(24394), + 89: uint16(24395), + 90: uint16(24396), + 91: uint16(24397), + 92: uint16(24398), + 93: uint16(24399), + 94: uint16(24401), + 95: uint16(24404), + 96: uint16(24409), + 97: uint16(24410), + 98: uint16(24411), + 99: uint16(24412), + 100: uint16(24414), + 101: uint16(24415), + 102: uint16(24416), + 103: uint16(24419), + 104: uint16(24421), + 105: uint16(24423), + 106: uint16(24424), + 107: uint16(24427), + 108: uint16(24430), + 109: uint16(24431), + 110: uint16(24434), + 111: uint16(24436), + 112: uint16(24437), + 113: uint16(24438), + 114: uint16(24440), + 115: uint16(24442), + 116: uint16(24445), + 117: uint16(24446), + 118: uint16(24447), + 119: uint16(24451), + 120: uint16(24454), + 121: uint16(24461), + 122: uint16(24462), + 123: uint16(24463), + 124: uint16(24465), + 125: uint16(24467), + 126: uint16(24468), + 127: uint16(24470), + 128: uint16(24474), + 129: uint16(24475), + 130: uint16(24477), + 131: uint16(24478), + 132: uint16(24479), + 133: uint16(24480), + 134: uint16(24482), + 135: uint16(24483), + 136: uint16(24484), + 137: uint16(24485), + 138: uint16(24486), + 139: uint16(24487), + 140: uint16(24489), + 141: uint16(24491), + 142: uint16(24492), + 143: uint16(24495), + 144: uint16(24496), + 145: uint16(24497), + 146: uint16(24498), + 147: uint16(24499), + 148: uint16(24500), + 149: uint16(24502), + 150: uint16(24504), + 151: uint16(24505), + 152: uint16(24506), + 153: uint16(24507), + 154: uint16(24510), + 155: uint16(24511), + 156: uint16(24512), + 157: uint16(24513), + 158: uint16(24514), + 159: uint16(24519), + 160: uint16(24520), + 161: uint16(24522), + 162: uint16(24523), + 163: uint16(24526), + 164: uint16(24531), + 165: uint16(24532), + 166: uint16(24533), + 167: uint16(24538), + 168: uint16(24539), + 169: uint16(24540), + 170: uint16(24542), + 171: uint16(24543), + 172: uint16(24546), + 173: uint16(24547), + 174: uint16(24549), + 175: uint16(24550), + 176: uint16(24552), + 177: uint16(24553), + 178: uint16(24556), + 179: uint16(24559), + 180: uint16(24560), + 181: uint16(24562), + 182: uint16(24563), + 183: uint16(24564), + 184: uint16(24566), + 185: uint16(24567), + 186: uint16(24569), + 187: uint16(24570), + 188: uint16(24572), + 189: uint16(24583), + }, + 15: { + 0: uint16(24584), + 1: uint16(24585), + 2: uint16(24587), + 3: uint16(24588), + 4: uint16(24592), + 5: uint16(24593), + 6: uint16(24595), + 7: uint16(24599), + 8: uint16(24600), + 9: uint16(24602), + 10: uint16(24606), + 11: uint16(24607), + 12: uint16(24610), + 13: uint16(24611), + 14: uint16(24612), + 15: uint16(24620), + 16: uint16(24621), + 17: uint16(24622), + 18: uint16(24624), + 19: uint16(24625), + 20: uint16(24626), + 21: uint16(24627), + 22: uint16(24628), + 23: uint16(24630), + 24: uint16(24631), + 25: uint16(24632), + 26: uint16(24633), + 27: uint16(24634), + 28: uint16(24637), + 29: uint16(24638), + 30: uint16(24640), + 31: uint16(24644), + 32: uint16(24645), + 33: uint16(24646), + 34: uint16(24647), + 35: uint16(24648), + 36: uint16(24649), + 37: uint16(24650), + 38: uint16(24652), + 39: uint16(24654), + 40: uint16(24655), + 41: uint16(24657), + 42: uint16(24659), + 43: uint16(24660), + 44: uint16(24662), + 45: uint16(24663), + 46: uint16(24664), + 47: uint16(24667), + 48: uint16(24668), + 49: uint16(24670), + 50: uint16(24671), + 51: uint16(24672), + 52: uint16(24673), + 53: uint16(24677), + 54: uint16(24678), + 55: uint16(24686), + 56: uint16(24689), + 57: uint16(24690), + 58: uint16(24692), + 59: uint16(24693), + 60: uint16(24695), + 61: uint16(24702), + 62: uint16(24704), + 63: uint16(24705), + 64: uint16(24706), + 65: uint16(24709), + 66: uint16(24710), + 67: uint16(24711), + 68: uint16(24712), + 69: uint16(24714), + 70: uint16(24715), + 71: uint16(24718), + 72: uint16(24719), + 73: uint16(24720), + 74: uint16(24721), + 75: uint16(24723), + 76: uint16(24725), + 77: uint16(24727), + 78: uint16(24728), + 79: uint16(24729), + 80: uint16(24732), + 81: uint16(24734), + 82: uint16(24737), + 83: uint16(24738), + 84: uint16(24740), + 85: uint16(24741), + 86: uint16(24743), + 87: uint16(24745), + 88: uint16(24746), + 89: uint16(24750), + 90: uint16(24752), + 91: uint16(24755), + 92: uint16(24757), + 93: uint16(24758), + 94: uint16(24759), + 95: uint16(24761), + 96: uint16(24762), + 97: uint16(24765), + 98: uint16(24766), + 99: uint16(24767), + 100: uint16(24768), + 101: uint16(24769), + 102: uint16(24770), + 103: uint16(24771), + 104: uint16(24772), + 105: uint16(24775), + 106: uint16(24776), + 107: uint16(24777), + 108: uint16(24780), + 109: uint16(24781), + 110: uint16(24782), + 111: uint16(24783), + 112: uint16(24784), + 113: uint16(24786), + 114: uint16(24787), + 115: uint16(24788), + 116: uint16(24790), + 117: uint16(24791), + 118: uint16(24793), + 119: uint16(24795), + 120: uint16(24798), + 121: uint16(24801), + 122: uint16(24802), + 123: uint16(24803), + 124: uint16(24804), + 125: uint16(24805), + 126: uint16(24810), + 127: uint16(24817), + 128: uint16(24818), + 129: uint16(24821), + 130: uint16(24823), + 131: uint16(24824), + 132: uint16(24827), + 133: uint16(24828), + 134: uint16(24829), + 135: uint16(24830), + 136: uint16(24831), + 137: uint16(24834), + 138: uint16(24835), + 139: uint16(24836), + 140: uint16(24837), + 141: uint16(24839), + 142: uint16(24842), + 143: uint16(24843), + 144: uint16(24844), + 145: uint16(24848), + 146: uint16(24849), + 147: uint16(24850), + 148: uint16(24851), + 149: uint16(24852), + 150: uint16(24854), + 151: uint16(24855), + 152: uint16(24856), + 153: uint16(24857), + 154: uint16(24859), + 155: uint16(24860), + 156: uint16(24861), + 157: uint16(24862), + 158: uint16(24865), + 159: uint16(24866), + 160: uint16(24869), + 161: uint16(24872), + 162: uint16(24873), + 163: uint16(24874), + 164: uint16(24876), + 165: uint16(24877), + 166: uint16(24878), + 167: uint16(24879), + 168: uint16(24880), + 169: uint16(24881), + 170: uint16(24882), + 171: uint16(24883), + 172: uint16(24884), + 173: uint16(24885), + 174: uint16(24886), + 175: uint16(24887), + 176: uint16(24888), + 177: uint16(24889), + 178: uint16(24890), + 179: uint16(24891), + 180: uint16(24892), + 181: uint16(24893), + 182: uint16(24894), + 183: uint16(24896), + 184: uint16(24897), + 185: uint16(24898), + 186: uint16(24899), + 187: uint16(24900), + 188: uint16(24901), + 189: uint16(24902), + }, + 16: { + 0: uint16(24903), + 1: uint16(24905), + 2: uint16(24907), + 3: uint16(24909), + 4: uint16(24911), + 5: uint16(24912), + 6: uint16(24914), + 7: uint16(24915), + 8: uint16(24916), + 9: uint16(24918), + 10: uint16(24919), + 11: uint16(24920), + 12: uint16(24921), + 13: uint16(24922), + 14: uint16(24923), + 15: uint16(24924), + 16: uint16(24926), + 17: uint16(24927), + 18: uint16(24928), + 19: uint16(24929), + 20: uint16(24931), + 21: uint16(24932), + 22: uint16(24933), + 23: uint16(24934), + 24: uint16(24937), + 25: uint16(24938), + 26: uint16(24939), + 27: uint16(24940), + 28: uint16(24941), + 29: uint16(24942), + 30: uint16(24943), + 31: uint16(24945), + 32: uint16(24946), + 33: uint16(24947), + 34: uint16(24948), + 35: uint16(24950), + 36: uint16(24952), + 37: uint16(24953), + 38: uint16(24954), + 39: uint16(24955), + 40: uint16(24956), + 41: uint16(24957), + 42: uint16(24958), + 43: uint16(24959), + 44: uint16(24960), + 45: uint16(24961), + 46: uint16(24962), + 47: uint16(24963), + 48: uint16(24964), + 49: uint16(24965), + 50: uint16(24966), + 51: uint16(24967), + 52: uint16(24968), + 53: uint16(24969), + 54: uint16(24970), + 55: uint16(24972), + 56: uint16(24973), + 57: uint16(24975), + 58: uint16(24976), + 59: uint16(24977), + 60: uint16(24978), + 61: uint16(24979), + 62: uint16(24981), + 63: uint16(24982), + 64: uint16(24983), + 65: uint16(24984), + 66: uint16(24985), + 67: uint16(24986), + 68: uint16(24987), + 69: uint16(24988), + 70: uint16(24990), + 71: uint16(24991), + 72: uint16(24992), + 73: uint16(24993), + 74: uint16(24994), + 75: uint16(24995), + 76: uint16(24996), + 77: uint16(24997), + 78: uint16(24998), + 79: uint16(25002), + 80: uint16(25003), + 81: uint16(25005), + 82: uint16(25006), + 83: uint16(25007), + 84: uint16(25008), + 85: uint16(25009), + 86: uint16(25010), + 87: uint16(25011), + 88: uint16(25012), + 89: uint16(25013), + 90: uint16(25014), + 91: uint16(25016), + 92: uint16(25017), + 93: uint16(25018), + 94: uint16(25019), + 95: uint16(25020), + 96: uint16(25021), + 97: uint16(25023), + 98: uint16(25024), + 99: uint16(25025), + 100: uint16(25027), + 101: uint16(25028), + 102: uint16(25029), + 103: uint16(25030), + 104: uint16(25031), + 105: uint16(25033), + 106: uint16(25036), + 107: uint16(25037), + 108: uint16(25038), + 109: uint16(25039), + 110: uint16(25040), + 111: uint16(25043), + 112: uint16(25045), + 113: uint16(25046), + 114: uint16(25047), + 115: uint16(25048), + 116: uint16(25049), + 117: uint16(25050), + 118: uint16(25051), + 119: uint16(25052), + 120: uint16(25053), + 121: uint16(25054), + 122: uint16(25055), + 123: uint16(25056), + 124: uint16(25057), + 125: uint16(25058), + 126: uint16(25059), + 127: uint16(25060), + 128: uint16(25061), + 129: uint16(25063), + 130: uint16(25064), + 131: uint16(25065), + 132: uint16(25066), + 133: uint16(25067), + 134: uint16(25068), + 135: uint16(25069), + 136: uint16(25070), + 137: uint16(25071), + 138: uint16(25072), + 139: uint16(25073), + 140: uint16(25074), + 141: uint16(25075), + 142: uint16(25076), + 143: uint16(25078), + 144: uint16(25079), + 145: uint16(25080), + 146: uint16(25081), + 147: uint16(25082), + 148: uint16(25083), + 149: uint16(25084), + 150: uint16(25085), + 151: uint16(25086), + 152: uint16(25088), + 153: uint16(25089), + 154: uint16(25090), + 155: uint16(25091), + 156: uint16(25092), + 157: uint16(25093), + 158: uint16(25095), + 159: uint16(25097), + 160: uint16(25107), + 161: uint16(25108), + 162: uint16(25113), + 163: uint16(25116), + 164: uint16(25117), + 165: uint16(25118), + 166: uint16(25120), + 167: uint16(25123), + 168: uint16(25126), + 169: uint16(25127), + 170: uint16(25128), + 171: uint16(25129), + 172: uint16(25131), + 173: uint16(25133), + 174: uint16(25135), + 175: uint16(25136), + 176: uint16(25137), + 177: uint16(25138), + 178: uint16(25141), + 179: uint16(25142), + 180: uint16(25144), + 181: uint16(25145), + 182: uint16(25146), + 183: uint16(25147), + 184: uint16(25148), + 185: uint16(25154), + 186: uint16(25156), + 187: uint16(25157), + 188: uint16(25158), + 189: uint16(25162), + }, + 17: { + 0: uint16(25167), + 1: uint16(25168), + 2: uint16(25173), + 3: uint16(25174), + 4: uint16(25175), + 5: uint16(25177), + 6: uint16(25178), + 7: uint16(25180), + 8: uint16(25181), + 9: uint16(25182), + 10: uint16(25183), + 11: uint16(25184), + 12: uint16(25185), + 13: uint16(25186), + 14: uint16(25188), + 15: uint16(25189), + 16: uint16(25192), + 17: uint16(25201), + 18: uint16(25202), + 19: uint16(25204), + 20: uint16(25205), + 21: uint16(25207), + 22: uint16(25208), + 23: uint16(25210), + 24: uint16(25211), + 25: uint16(25213), + 26: uint16(25217), + 27: uint16(25218), + 28: uint16(25219), + 29: uint16(25221), + 30: uint16(25222), + 31: uint16(25223), + 32: uint16(25224), + 33: uint16(25227), + 34: uint16(25228), + 35: uint16(25229), + 36: uint16(25230), + 37: uint16(25231), + 38: uint16(25232), + 39: uint16(25236), + 40: uint16(25241), + 41: uint16(25244), + 42: uint16(25245), + 43: uint16(25246), + 44: uint16(25251), + 45: uint16(25254), + 46: uint16(25255), + 47: uint16(25257), + 48: uint16(25258), + 49: uint16(25261), + 50: uint16(25262), + 51: uint16(25263), + 52: uint16(25264), + 53: uint16(25266), + 54: uint16(25267), + 55: uint16(25268), + 56: uint16(25270), + 57: uint16(25271), + 58: uint16(25272), + 59: uint16(25274), + 60: uint16(25278), + 61: uint16(25280), + 62: uint16(25281), + 63: uint16(25283), + 64: uint16(25291), + 65: uint16(25295), + 66: uint16(25297), + 67: uint16(25301), + 68: uint16(25309), + 69: uint16(25310), + 70: uint16(25312), + 71: uint16(25313), + 72: uint16(25316), + 73: uint16(25322), + 74: uint16(25323), + 75: uint16(25328), + 76: uint16(25330), + 77: uint16(25333), + 78: uint16(25336), + 79: uint16(25337), + 80: uint16(25338), + 81: uint16(25339), + 82: uint16(25344), + 83: uint16(25347), + 84: uint16(25348), + 85: uint16(25349), + 86: uint16(25350), + 87: uint16(25354), + 88: uint16(25355), + 89: uint16(25356), + 90: uint16(25357), + 91: uint16(25359), + 92: uint16(25360), + 93: uint16(25362), + 94: uint16(25363), + 95: uint16(25364), + 96: uint16(25365), + 97: uint16(25367), + 98: uint16(25368), + 99: uint16(25369), + 100: uint16(25372), + 101: uint16(25382), + 102: uint16(25383), + 103: uint16(25385), + 104: uint16(25388), + 105: uint16(25389), + 106: uint16(25390), + 107: uint16(25392), + 108: uint16(25393), + 109: uint16(25395), + 110: uint16(25396), + 111: uint16(25397), + 112: uint16(25398), + 113: uint16(25399), + 114: uint16(25400), + 115: uint16(25403), + 116: uint16(25404), + 117: uint16(25406), + 118: uint16(25407), + 119: uint16(25408), + 120: uint16(25409), + 121: uint16(25412), + 122: uint16(25415), + 123: uint16(25416), + 124: uint16(25418), + 125: uint16(25425), + 126: uint16(25426), + 127: uint16(25427), + 128: uint16(25428), + 129: uint16(25430), + 130: uint16(25431), + 131: uint16(25432), + 132: uint16(25433), + 133: uint16(25434), + 134: uint16(25435), + 135: uint16(25436), + 136: uint16(25437), + 137: uint16(25440), + 138: uint16(25444), + 139: uint16(25445), + 140: uint16(25446), + 141: uint16(25448), + 142: uint16(25450), + 143: uint16(25451), + 144: uint16(25452), + 145: uint16(25455), + 146: uint16(25456), + 147: uint16(25458), + 148: uint16(25459), + 149: uint16(25460), + 150: uint16(25461), + 151: uint16(25464), + 152: uint16(25465), + 153: uint16(25468), + 154: uint16(25469), + 155: uint16(25470), + 156: uint16(25471), + 157: uint16(25473), + 158: uint16(25475), + 159: uint16(25476), + 160: uint16(25477), + 161: uint16(25478), + 162: uint16(25483), + 163: uint16(25485), + 164: uint16(25489), + 165: uint16(25491), + 166: uint16(25492), + 167: uint16(25493), + 168: uint16(25495), + 169: uint16(25497), + 170: uint16(25498), + 171: uint16(25499), + 172: uint16(25500), + 173: uint16(25501), + 174: uint16(25502), + 175: uint16(25503), + 176: uint16(25505), + 177: uint16(25508), + 178: uint16(25510), + 179: uint16(25515), + 180: uint16(25519), + 181: uint16(25521), + 182: uint16(25522), + 183: uint16(25525), + 184: uint16(25526), + 185: uint16(25529), + 186: uint16(25531), + 187: uint16(25533), + 188: uint16(25535), + 189: uint16(25536), + }, + 18: { + 0: uint16(25537), + 1: uint16(25538), + 2: uint16(25539), + 3: uint16(25541), + 4: uint16(25543), + 5: uint16(25544), + 6: uint16(25546), + 7: uint16(25547), + 8: uint16(25548), + 9: uint16(25553), + 10: uint16(25555), + 11: uint16(25556), + 12: uint16(25557), + 13: uint16(25559), + 14: uint16(25560), + 15: uint16(25561), + 16: uint16(25562), + 17: uint16(25563), + 18: uint16(25564), + 19: uint16(25565), + 20: uint16(25567), + 21: uint16(25570), + 22: uint16(25572), + 23: uint16(25573), + 24: uint16(25574), + 25: uint16(25575), + 26: uint16(25576), + 27: uint16(25579), + 28: uint16(25580), + 29: uint16(25582), + 30: uint16(25583), + 31: uint16(25584), + 32: uint16(25585), + 33: uint16(25587), + 34: uint16(25589), + 35: uint16(25591), + 36: uint16(25593), + 37: uint16(25594), + 38: uint16(25595), + 39: uint16(25596), + 40: uint16(25598), + 41: uint16(25603), + 42: uint16(25604), + 43: uint16(25606), + 44: uint16(25607), + 45: uint16(25608), + 46: uint16(25609), + 47: uint16(25610), + 48: uint16(25613), + 49: uint16(25614), + 50: uint16(25617), + 51: uint16(25618), + 52: uint16(25621), + 53: uint16(25622), + 54: uint16(25623), + 55: uint16(25624), + 56: uint16(25625), + 57: uint16(25626), + 58: uint16(25629), + 59: uint16(25631), + 60: uint16(25634), + 61: uint16(25635), + 62: uint16(25636), + 63: uint16(25637), + 64: uint16(25639), + 65: uint16(25640), + 66: uint16(25641), + 67: uint16(25643), + 68: uint16(25646), + 69: uint16(25647), + 70: uint16(25648), + 71: uint16(25649), + 72: uint16(25650), + 73: uint16(25651), + 74: uint16(25653), + 75: uint16(25654), + 76: uint16(25655), + 77: uint16(25656), + 78: uint16(25657), + 79: uint16(25659), + 80: uint16(25660), + 81: uint16(25662), + 82: uint16(25664), + 83: uint16(25666), + 84: uint16(25667), + 85: uint16(25673), + 86: uint16(25675), + 87: uint16(25676), + 88: uint16(25677), + 89: uint16(25678), + 90: uint16(25679), + 91: uint16(25680), + 92: uint16(25681), + 93: uint16(25683), + 94: uint16(25685), + 95: uint16(25686), + 96: uint16(25687), + 97: uint16(25689), + 98: uint16(25690), + 99: uint16(25691), + 100: uint16(25692), + 101: uint16(25693), + 102: uint16(25695), + 103: uint16(25696), + 104: uint16(25697), + 105: uint16(25698), + 106: uint16(25699), + 107: uint16(25700), + 108: uint16(25701), + 109: uint16(25702), + 110: uint16(25704), + 111: uint16(25706), + 112: uint16(25707), + 113: uint16(25708), + 114: uint16(25710), + 115: uint16(25711), + 116: uint16(25712), + 117: uint16(25713), + 118: uint16(25714), + 119: uint16(25715), + 120: uint16(25716), + 121: uint16(25717), + 122: uint16(25718), + 123: uint16(25719), + 124: uint16(25723), + 125: uint16(25724), + 126: uint16(25725), + 127: uint16(25726), + 128: uint16(25727), + 129: uint16(25728), + 130: uint16(25729), + 131: uint16(25731), + 132: uint16(25734), + 133: uint16(25736), + 134: uint16(25737), + 135: uint16(25738), + 136: uint16(25739), + 137: uint16(25740), + 138: uint16(25741), + 139: uint16(25742), + 140: uint16(25743), + 141: uint16(25744), + 142: uint16(25747), + 143: uint16(25748), + 144: uint16(25751), + 145: uint16(25752), + 146: uint16(25754), + 147: uint16(25755), + 148: uint16(25756), + 149: uint16(25757), + 150: uint16(25759), + 151: uint16(25760), + 152: uint16(25761), + 153: uint16(25762), + 154: uint16(25763), + 155: uint16(25765), + 156: uint16(25766), + 157: uint16(25767), + 158: uint16(25768), + 159: uint16(25770), + 160: uint16(25771), + 161: uint16(25775), + 162: uint16(25777), + 163: uint16(25778), + 164: uint16(25779), + 165: uint16(25780), + 166: uint16(25782), + 167: uint16(25785), + 168: uint16(25787), + 169: uint16(25789), + 170: uint16(25790), + 171: uint16(25791), + 172: uint16(25793), + 173: uint16(25795), + 174: uint16(25796), + 175: uint16(25798), + 176: uint16(25799), + 177: uint16(25800), + 178: uint16(25801), + 179: uint16(25802), + 180: uint16(25803), + 181: uint16(25804), + 182: uint16(25807), + 183: uint16(25809), + 184: uint16(25811), + 185: uint16(25812), + 186: uint16(25813), + 187: uint16(25814), + 188: uint16(25817), + 189: uint16(25818), + }, + 19: { + 0: uint16(25819), + 1: uint16(25820), + 2: uint16(25821), + 3: uint16(25823), + 4: uint16(25824), + 5: uint16(25825), + 6: uint16(25827), + 7: uint16(25829), + 8: uint16(25831), + 9: uint16(25832), + 10: uint16(25833), + 11: uint16(25834), + 12: uint16(25835), + 13: uint16(25836), + 14: uint16(25837), + 15: uint16(25838), + 16: uint16(25839), + 17: uint16(25840), + 18: uint16(25841), + 19: uint16(25842), + 20: uint16(25843), + 21: uint16(25844), + 22: uint16(25845), + 23: uint16(25846), + 24: uint16(25847), + 25: uint16(25848), + 26: uint16(25849), + 27: uint16(25850), + 28: uint16(25851), + 29: uint16(25852), + 30: uint16(25853), + 31: uint16(25854), + 32: uint16(25855), + 33: uint16(25857), + 34: uint16(25858), + 35: uint16(25859), + 36: uint16(25860), + 37: uint16(25861), + 38: uint16(25862), + 39: uint16(25863), + 40: uint16(25864), + 41: uint16(25866), + 42: uint16(25867), + 43: uint16(25868), + 44: uint16(25869), + 45: uint16(25870), + 46: uint16(25871), + 47: uint16(25872), + 48: uint16(25873), + 49: uint16(25875), + 50: uint16(25876), + 51: uint16(25877), + 52: uint16(25878), + 53: uint16(25879), + 54: uint16(25881), + 55: uint16(25882), + 56: uint16(25883), + 57: uint16(25884), + 58: uint16(25885), + 59: uint16(25886), + 60: uint16(25887), + 61: uint16(25888), + 62: uint16(25889), + 63: uint16(25890), + 64: uint16(25891), + 65: uint16(25892), + 66: uint16(25894), + 67: uint16(25895), + 68: uint16(25896), + 69: uint16(25897), + 70: uint16(25898), + 71: uint16(25900), + 72: uint16(25901), + 73: uint16(25904), + 74: uint16(25905), + 75: uint16(25906), + 76: uint16(25907), + 77: uint16(25911), + 78: uint16(25914), + 79: uint16(25916), + 80: uint16(25917), + 81: uint16(25920), + 82: uint16(25921), + 83: uint16(25922), + 84: uint16(25923), + 85: uint16(25924), + 86: uint16(25926), + 87: uint16(25927), + 88: uint16(25930), + 89: uint16(25931), + 90: uint16(25933), + 91: uint16(25934), + 92: uint16(25936), + 93: uint16(25938), + 94: uint16(25939), + 95: uint16(25940), + 96: uint16(25943), + 97: uint16(25944), + 98: uint16(25946), + 99: uint16(25948), + 100: uint16(25951), + 101: uint16(25952), + 102: uint16(25953), + 103: uint16(25956), + 104: uint16(25957), + 105: uint16(25959), + 106: uint16(25960), + 107: uint16(25961), + 108: uint16(25962), + 109: uint16(25965), + 110: uint16(25966), + 111: uint16(25967), + 112: uint16(25969), + 113: uint16(25971), + 114: uint16(25973), + 115: uint16(25974), + 116: uint16(25976), + 117: uint16(25977), + 118: uint16(25978), + 119: uint16(25979), + 120: uint16(25980), + 121: uint16(25981), + 122: uint16(25982), + 123: uint16(25983), + 124: uint16(25984), + 125: uint16(25985), + 126: uint16(25986), + 127: uint16(25987), + 128: uint16(25988), + 129: uint16(25989), + 130: uint16(25990), + 131: uint16(25992), + 132: uint16(25993), + 133: uint16(25994), + 134: uint16(25997), + 135: uint16(25998), + 136: uint16(25999), + 137: uint16(26002), + 138: uint16(26004), + 139: uint16(26005), + 140: uint16(26006), + 141: uint16(26008), + 142: uint16(26010), + 143: uint16(26013), + 144: uint16(26014), + 145: uint16(26016), + 146: uint16(26018), + 147: uint16(26019), + 148: uint16(26022), + 149: uint16(26024), + 150: uint16(26026), + 151: uint16(26028), + 152: uint16(26030), + 153: uint16(26033), + 154: uint16(26034), + 155: uint16(26035), + 156: uint16(26036), + 157: uint16(26037), + 158: uint16(26038), + 159: uint16(26039), + 160: uint16(26040), + 161: uint16(26042), + 162: uint16(26043), + 163: uint16(26046), + 164: uint16(26047), + 165: uint16(26048), + 166: uint16(26050), + 167: uint16(26055), + 168: uint16(26056), + 169: uint16(26057), + 170: uint16(26058), + 171: uint16(26061), + 172: uint16(26064), + 173: uint16(26065), + 174: uint16(26067), + 175: uint16(26068), + 176: uint16(26069), + 177: uint16(26072), + 178: uint16(26073), + 179: uint16(26074), + 180: uint16(26075), + 181: uint16(26076), + 182: uint16(26077), + 183: uint16(26078), + 184: uint16(26079), + 185: uint16(26081), + 186: uint16(26083), + 187: uint16(26084), + 188: uint16(26090), + 189: uint16(26091), + }, + 20: { + 0: uint16(26098), + 1: uint16(26099), + 2: uint16(26100), + 3: uint16(26101), + 4: uint16(26104), + 5: uint16(26105), + 6: uint16(26107), + 7: uint16(26108), + 8: uint16(26109), + 9: uint16(26110), + 10: uint16(26111), + 11: uint16(26113), + 12: uint16(26116), + 13: uint16(26117), + 14: uint16(26119), + 15: uint16(26120), + 16: uint16(26121), + 17: uint16(26123), + 18: uint16(26125), + 19: uint16(26128), + 20: uint16(26129), + 21: uint16(26130), + 22: uint16(26134), + 23: uint16(26135), + 24: uint16(26136), + 25: uint16(26138), + 26: uint16(26139), + 27: uint16(26140), + 28: uint16(26142), + 29: uint16(26145), + 30: uint16(26146), + 31: uint16(26147), + 32: uint16(26148), + 33: uint16(26150), + 34: uint16(26153), + 35: uint16(26154), + 36: uint16(26155), + 37: uint16(26156), + 38: uint16(26158), + 39: uint16(26160), + 40: uint16(26162), + 41: uint16(26163), + 42: uint16(26167), + 43: uint16(26168), + 44: uint16(26169), + 45: uint16(26170), + 46: uint16(26171), + 47: uint16(26173), + 48: uint16(26175), + 49: uint16(26176), + 50: uint16(26178), + 51: uint16(26180), + 52: uint16(26181), + 53: uint16(26182), + 54: uint16(26183), + 55: uint16(26184), + 56: uint16(26185), + 57: uint16(26186), + 58: uint16(26189), + 59: uint16(26190), + 60: uint16(26192), + 61: uint16(26193), + 62: uint16(26200), + 63: uint16(26201), + 64: uint16(26203), + 65: uint16(26204), + 66: uint16(26205), + 67: uint16(26206), + 68: uint16(26208), + 69: uint16(26210), + 70: uint16(26211), + 71: uint16(26213), + 72: uint16(26215), + 73: uint16(26217), + 74: uint16(26218), + 75: uint16(26219), + 76: uint16(26220), + 77: uint16(26221), + 78: uint16(26225), + 79: uint16(26226), + 80: uint16(26227), + 81: uint16(26229), + 82: uint16(26232), + 83: uint16(26233), + 84: uint16(26235), + 85: uint16(26236), + 86: uint16(26237), + 87: uint16(26239), + 88: uint16(26240), + 89: uint16(26241), + 90: uint16(26243), + 91: uint16(26245), + 92: uint16(26246), + 93: uint16(26248), + 94: uint16(26249), + 95: uint16(26250), + 96: uint16(26251), + 97: uint16(26253), + 98: uint16(26254), + 99: uint16(26255), + 100: uint16(26256), + 101: uint16(26258), + 102: uint16(26259), + 103: uint16(26260), + 104: uint16(26261), + 105: uint16(26264), + 106: uint16(26265), + 107: uint16(26266), + 108: uint16(26267), + 109: uint16(26268), + 110: uint16(26270), + 111: uint16(26271), + 112: uint16(26272), + 113: uint16(26273), + 114: uint16(26274), + 115: uint16(26275), + 116: uint16(26276), + 117: uint16(26277), + 118: uint16(26278), + 119: uint16(26281), + 120: uint16(26282), + 121: uint16(26283), + 122: uint16(26284), + 123: uint16(26285), + 124: uint16(26287), + 125: uint16(26288), + 126: uint16(26289), + 127: uint16(26290), + 128: uint16(26291), + 129: uint16(26293), + 130: uint16(26294), + 131: uint16(26295), + 132: uint16(26296), + 133: uint16(26298), + 134: uint16(26299), + 135: uint16(26300), + 136: uint16(26301), + 137: uint16(26303), + 138: uint16(26304), + 139: uint16(26305), + 140: uint16(26306), + 141: uint16(26307), + 142: uint16(26308), + 143: uint16(26309), + 144: uint16(26310), + 145: uint16(26311), + 146: uint16(26312), + 147: uint16(26313), + 148: uint16(26314), + 149: uint16(26315), + 150: uint16(26316), + 151: uint16(26317), + 152: uint16(26318), + 153: uint16(26319), + 154: uint16(26320), + 155: uint16(26321), + 156: uint16(26322), + 157: uint16(26323), + 158: uint16(26324), + 159: uint16(26325), + 160: uint16(26326), + 161: uint16(26327), + 162: uint16(26328), + 163: uint16(26330), + 164: uint16(26334), + 165: uint16(26335), + 166: uint16(26336), + 167: uint16(26337), + 168: uint16(26338), + 169: uint16(26339), + 170: uint16(26340), + 171: uint16(26341), + 172: uint16(26343), + 173: uint16(26344), + 174: uint16(26346), + 175: uint16(26347), + 176: uint16(26348), + 177: uint16(26349), + 178: uint16(26350), + 179: uint16(26351), + 180: uint16(26353), + 181: uint16(26357), + 182: uint16(26358), + 183: uint16(26360), + 184: uint16(26362), + 185: uint16(26363), + 186: uint16(26365), + 187: uint16(26369), + 188: uint16(26370), + 189: uint16(26371), + }, + 21: { + 0: uint16(26372), + 1: uint16(26373), + 2: uint16(26374), + 3: uint16(26375), + 4: uint16(26380), + 5: uint16(26382), + 6: uint16(26383), + 7: uint16(26385), + 8: uint16(26386), + 9: uint16(26387), + 10: uint16(26390), + 11: uint16(26392), + 12: uint16(26393), + 13: uint16(26394), + 14: uint16(26396), + 15: uint16(26398), + 16: uint16(26400), + 17: uint16(26401), + 18: uint16(26402), + 19: uint16(26403), + 20: uint16(26404), + 21: uint16(26405), + 22: uint16(26407), + 23: uint16(26409), + 24: uint16(26414), + 25: uint16(26416), + 26: uint16(26418), + 27: uint16(26419), + 28: uint16(26422), + 29: uint16(26423), + 30: uint16(26424), + 31: uint16(26425), + 32: uint16(26427), + 33: uint16(26428), + 34: uint16(26430), + 35: uint16(26431), + 36: uint16(26433), + 37: uint16(26436), + 38: uint16(26437), + 39: uint16(26439), + 40: uint16(26442), + 41: uint16(26443), + 42: uint16(26445), + 43: uint16(26450), + 44: uint16(26452), + 45: uint16(26453), + 46: uint16(26455), + 47: uint16(26456), + 48: uint16(26457), + 49: uint16(26458), + 50: uint16(26459), + 51: uint16(26461), + 52: uint16(26466), + 53: uint16(26467), + 54: uint16(26468), + 55: uint16(26470), + 56: uint16(26471), + 57: uint16(26475), + 58: uint16(26476), + 59: uint16(26478), + 60: uint16(26481), + 61: uint16(26484), + 62: uint16(26486), + 63: uint16(26488), + 64: uint16(26489), + 65: uint16(26490), + 66: uint16(26491), + 67: uint16(26493), + 68: uint16(26496), + 69: uint16(26498), + 70: uint16(26499), + 71: uint16(26501), + 72: uint16(26502), + 73: uint16(26504), + 74: uint16(26506), + 75: uint16(26508), + 76: uint16(26509), + 77: uint16(26510), + 78: uint16(26511), + 79: uint16(26513), + 80: uint16(26514), + 81: uint16(26515), + 82: uint16(26516), + 83: uint16(26518), + 84: uint16(26521), + 85: uint16(26523), + 86: uint16(26527), + 87: uint16(26528), + 88: uint16(26529), + 89: uint16(26532), + 90: uint16(26534), + 91: uint16(26537), + 92: uint16(26540), + 93: uint16(26542), + 94: uint16(26545), + 95: uint16(26546), + 96: uint16(26548), + 97: uint16(26553), + 98: uint16(26554), + 99: uint16(26555), + 100: uint16(26556), + 101: uint16(26557), + 102: uint16(26558), + 103: uint16(26559), + 104: uint16(26560), + 105: uint16(26562), + 106: uint16(26565), + 107: uint16(26566), + 108: uint16(26567), + 109: uint16(26568), + 110: uint16(26569), + 111: uint16(26570), + 112: uint16(26571), + 113: uint16(26572), + 114: uint16(26573), + 115: uint16(26574), + 116: uint16(26581), + 117: uint16(26582), + 118: uint16(26583), + 119: uint16(26587), + 120: uint16(26591), + 121: uint16(26593), + 122: uint16(26595), + 123: uint16(26596), + 124: uint16(26598), + 125: uint16(26599), + 126: uint16(26600), + 127: uint16(26602), + 128: uint16(26603), + 129: uint16(26605), + 130: uint16(26606), + 131: uint16(26610), + 132: uint16(26613), + 133: uint16(26614), + 134: uint16(26615), + 135: uint16(26616), + 136: uint16(26617), + 137: uint16(26618), + 138: uint16(26619), + 139: uint16(26620), + 140: uint16(26622), + 141: uint16(26625), + 142: uint16(26626), + 143: uint16(26627), + 144: uint16(26628), + 145: uint16(26630), + 146: uint16(26637), + 147: uint16(26640), + 148: uint16(26642), + 149: uint16(26644), + 150: uint16(26645), + 151: uint16(26648), + 152: uint16(26649), + 153: uint16(26650), + 154: uint16(26651), + 155: uint16(26652), + 156: uint16(26654), + 157: uint16(26655), + 158: uint16(26656), + 159: uint16(26658), + 160: uint16(26659), + 161: uint16(26660), + 162: uint16(26661), + 163: uint16(26662), + 164: uint16(26663), + 165: uint16(26664), + 166: uint16(26667), + 167: uint16(26668), + 168: uint16(26669), + 169: uint16(26670), + 170: uint16(26671), + 171: uint16(26672), + 172: uint16(26673), + 173: uint16(26676), + 174: uint16(26677), + 175: uint16(26678), + 176: uint16(26682), + 177: uint16(26683), + 178: uint16(26687), + 179: uint16(26695), + 180: uint16(26699), + 181: uint16(26701), + 182: uint16(26703), + 183: uint16(26706), + 184: uint16(26710), + 185: uint16(26711), + 186: uint16(26712), + 187: uint16(26713), + 188: uint16(26714), + 189: uint16(26715), + }, + 22: { + 0: uint16(26716), + 1: uint16(26717), + 2: uint16(26718), + 3: uint16(26719), + 4: uint16(26730), + 5: uint16(26732), + 6: uint16(26733), + 7: uint16(26734), + 8: uint16(26735), + 9: uint16(26736), + 10: uint16(26737), + 11: uint16(26738), + 12: uint16(26739), + 13: uint16(26741), + 14: uint16(26744), + 15: uint16(26745), + 16: uint16(26746), + 17: uint16(26747), + 18: uint16(26748), + 19: uint16(26749), + 20: uint16(26750), + 21: uint16(26751), + 22: uint16(26752), + 23: uint16(26754), + 24: uint16(26756), + 25: uint16(26759), + 26: uint16(26760), + 27: uint16(26761), + 28: uint16(26762), + 29: uint16(26763), + 30: uint16(26764), + 31: uint16(26765), + 32: uint16(26766), + 33: uint16(26768), + 34: uint16(26769), + 35: uint16(26770), + 36: uint16(26772), + 37: uint16(26773), + 38: uint16(26774), + 39: uint16(26776), + 40: uint16(26777), + 41: uint16(26778), + 42: uint16(26779), + 43: uint16(26780), + 44: uint16(26781), + 45: uint16(26782), + 46: uint16(26783), + 47: uint16(26784), + 48: uint16(26785), + 49: uint16(26787), + 50: uint16(26788), + 51: uint16(26789), + 52: uint16(26793), + 53: uint16(26794), + 54: uint16(26795), + 55: uint16(26796), + 56: uint16(26798), + 57: uint16(26801), + 58: uint16(26802), + 59: uint16(26804), + 60: uint16(26806), + 61: uint16(26807), + 62: uint16(26808), + 63: uint16(26809), + 64: uint16(26810), + 65: uint16(26811), + 66: uint16(26812), + 67: uint16(26813), + 68: uint16(26814), + 69: uint16(26815), + 70: uint16(26817), + 71: uint16(26819), + 72: uint16(26820), + 73: uint16(26821), + 74: uint16(26822), + 75: uint16(26823), + 76: uint16(26824), + 77: uint16(26826), + 78: uint16(26828), + 79: uint16(26830), + 80: uint16(26831), + 81: uint16(26832), + 82: uint16(26833), + 83: uint16(26835), + 84: uint16(26836), + 85: uint16(26838), + 86: uint16(26839), + 87: uint16(26841), + 88: uint16(26843), + 89: uint16(26844), + 90: uint16(26845), + 91: uint16(26846), + 92: uint16(26847), + 93: uint16(26849), + 94: uint16(26850), + 95: uint16(26852), + 96: uint16(26853), + 97: uint16(26854), + 98: uint16(26855), + 99: uint16(26856), + 100: uint16(26857), + 101: uint16(26858), + 102: uint16(26859), + 103: uint16(26860), + 104: uint16(26861), + 105: uint16(26863), + 106: uint16(26866), + 107: uint16(26867), + 108: uint16(26868), + 109: uint16(26870), + 110: uint16(26871), + 111: uint16(26872), + 112: uint16(26875), + 113: uint16(26877), + 114: uint16(26878), + 115: uint16(26879), + 116: uint16(26880), + 117: uint16(26882), + 118: uint16(26883), + 119: uint16(26884), + 120: uint16(26886), + 121: uint16(26887), + 122: uint16(26888), + 123: uint16(26889), + 124: uint16(26890), + 125: uint16(26892), + 126: uint16(26895), + 127: uint16(26897), + 128: uint16(26899), + 129: uint16(26900), + 130: uint16(26901), + 131: uint16(26902), + 132: uint16(26903), + 133: uint16(26904), + 134: uint16(26905), + 135: uint16(26906), + 136: uint16(26907), + 137: uint16(26908), + 138: uint16(26909), + 139: uint16(26910), + 140: uint16(26913), + 141: uint16(26914), + 142: uint16(26915), + 143: uint16(26917), + 144: uint16(26918), + 145: uint16(26919), + 146: uint16(26920), + 147: uint16(26921), + 148: uint16(26922), + 149: uint16(26923), + 150: uint16(26924), + 151: uint16(26926), + 152: uint16(26927), + 153: uint16(26929), + 154: uint16(26930), + 155: uint16(26931), + 156: uint16(26933), + 157: uint16(26934), + 158: uint16(26935), + 159: uint16(26936), + 160: uint16(26938), + 161: uint16(26939), + 162: uint16(26940), + 163: uint16(26942), + 164: uint16(26944), + 165: uint16(26945), + 166: uint16(26947), + 167: uint16(26948), + 168: uint16(26949), + 169: uint16(26950), + 170: uint16(26951), + 171: uint16(26952), + 172: uint16(26953), + 173: uint16(26954), + 174: uint16(26955), + 175: uint16(26956), + 176: uint16(26957), + 177: uint16(26958), + 178: uint16(26959), + 179: uint16(26960), + 180: uint16(26961), + 181: uint16(26962), + 182: uint16(26963), + 183: uint16(26965), + 184: uint16(26966), + 185: uint16(26968), + 186: uint16(26969), + 187: uint16(26971), + 188: uint16(26972), + 189: uint16(26975), + }, + 23: { + 0: uint16(26977), + 1: uint16(26978), + 2: uint16(26980), + 3: uint16(26981), + 4: uint16(26983), + 5: uint16(26984), + 6: uint16(26985), + 7: uint16(26986), + 8: uint16(26988), + 9: uint16(26989), + 10: uint16(26991), + 11: uint16(26992), + 12: uint16(26994), + 13: uint16(26995), + 14: uint16(26996), + 15: uint16(26997), + 16: uint16(26998), + 17: uint16(27002), + 18: uint16(27003), + 19: uint16(27005), + 20: uint16(27006), + 21: uint16(27007), + 22: uint16(27009), + 23: uint16(27011), + 24: uint16(27013), + 25: uint16(27018), + 26: uint16(27019), + 27: uint16(27020), + 28: uint16(27022), + 29: uint16(27023), + 30: uint16(27024), + 31: uint16(27025), + 32: uint16(27026), + 33: uint16(27027), + 34: uint16(27030), + 35: uint16(27031), + 36: uint16(27033), + 37: uint16(27034), + 38: uint16(27037), + 39: uint16(27038), + 40: uint16(27039), + 41: uint16(27040), + 42: uint16(27041), + 43: uint16(27042), + 44: uint16(27043), + 45: uint16(27044), + 46: uint16(27045), + 47: uint16(27046), + 48: uint16(27049), + 49: uint16(27050), + 50: uint16(27052), + 51: uint16(27054), + 52: uint16(27055), + 53: uint16(27056), + 54: uint16(27058), + 55: uint16(27059), + 56: uint16(27061), + 57: uint16(27062), + 58: uint16(27064), + 59: uint16(27065), + 60: uint16(27066), + 61: uint16(27068), + 62: uint16(27069), + 63: uint16(27070), + 64: uint16(27071), + 65: uint16(27072), + 66: uint16(27074), + 67: uint16(27075), + 68: uint16(27076), + 69: uint16(27077), + 70: uint16(27078), + 71: uint16(27079), + 72: uint16(27080), + 73: uint16(27081), + 74: uint16(27083), + 75: uint16(27085), + 76: uint16(27087), + 77: uint16(27089), + 78: uint16(27090), + 79: uint16(27091), + 80: uint16(27093), + 81: uint16(27094), + 82: uint16(27095), + 83: uint16(27096), + 84: uint16(27097), + 85: uint16(27098), + 86: uint16(27100), + 87: uint16(27101), + 88: uint16(27102), + 89: uint16(27105), + 90: uint16(27106), + 91: uint16(27107), + 92: uint16(27108), + 93: uint16(27109), + 94: uint16(27110), + 95: uint16(27111), + 96: uint16(27112), + 97: uint16(27113), + 98: uint16(27114), + 99: uint16(27115), + 100: uint16(27116), + 101: uint16(27118), + 102: uint16(27119), + 103: uint16(27120), + 104: uint16(27121), + 105: uint16(27123), + 106: uint16(27124), + 107: uint16(27125), + 108: uint16(27126), + 109: uint16(27127), + 110: uint16(27128), + 111: uint16(27129), + 112: uint16(27130), + 113: uint16(27131), + 114: uint16(27132), + 115: uint16(27134), + 116: uint16(27136), + 117: uint16(27137), + 118: uint16(27138), + 119: uint16(27139), + 120: uint16(27140), + 121: uint16(27141), + 122: uint16(27142), + 123: uint16(27143), + 124: uint16(27144), + 125: uint16(27145), + 126: uint16(27147), + 127: uint16(27148), + 128: uint16(27149), + 129: uint16(27150), + 130: uint16(27151), + 131: uint16(27152), + 132: uint16(27153), + 133: uint16(27154), + 134: uint16(27155), + 135: uint16(27156), + 136: uint16(27157), + 137: uint16(27158), + 138: uint16(27161), + 139: uint16(27162), + 140: uint16(27163), + 141: uint16(27164), + 142: uint16(27165), + 143: uint16(27166), + 144: uint16(27168), + 145: uint16(27170), + 146: uint16(27171), + 147: uint16(27172), + 148: uint16(27173), + 149: uint16(27174), + 150: uint16(27175), + 151: uint16(27177), + 152: uint16(27179), + 153: uint16(27180), + 154: uint16(27181), + 155: uint16(27182), + 156: uint16(27184), + 157: uint16(27186), + 158: uint16(27187), + 159: uint16(27188), + 160: uint16(27190), + 161: uint16(27191), + 162: uint16(27192), + 163: uint16(27193), + 164: uint16(27194), + 165: uint16(27195), + 166: uint16(27196), + 167: uint16(27199), + 168: uint16(27200), + 169: uint16(27201), + 170: uint16(27202), + 171: uint16(27203), + 172: uint16(27205), + 173: uint16(27206), + 174: uint16(27208), + 175: uint16(27209), + 176: uint16(27210), + 177: uint16(27211), + 178: uint16(27212), + 179: uint16(27213), + 180: uint16(27214), + 181: uint16(27215), + 182: uint16(27217), + 183: uint16(27218), + 184: uint16(27219), + 185: uint16(27220), + 186: uint16(27221), + 187: uint16(27222), + 188: uint16(27223), + 189: uint16(27226), + }, + 24: { + 0: uint16(27228), + 1: uint16(27229), + 2: uint16(27230), + 3: uint16(27231), + 4: uint16(27232), + 5: uint16(27234), + 6: uint16(27235), + 7: uint16(27236), + 8: uint16(27238), + 9: uint16(27239), + 10: uint16(27240), + 11: uint16(27241), + 12: uint16(27242), + 13: uint16(27243), + 14: uint16(27244), + 15: uint16(27245), + 16: uint16(27246), + 17: uint16(27247), + 18: uint16(27248), + 19: uint16(27250), + 20: uint16(27251), + 21: uint16(27252), + 22: uint16(27253), + 23: uint16(27254), + 24: uint16(27255), + 25: uint16(27256), + 26: uint16(27258), + 27: uint16(27259), + 28: uint16(27261), + 29: uint16(27262), + 30: uint16(27263), + 31: uint16(27265), + 32: uint16(27266), + 33: uint16(27267), + 34: uint16(27269), + 35: uint16(27270), + 36: uint16(27271), + 37: uint16(27272), + 38: uint16(27273), + 39: uint16(27274), + 40: uint16(27275), + 41: uint16(27276), + 42: uint16(27277), + 43: uint16(27279), + 44: uint16(27282), + 45: uint16(27283), + 46: uint16(27284), + 47: uint16(27285), + 48: uint16(27286), + 49: uint16(27288), + 50: uint16(27289), + 51: uint16(27290), + 52: uint16(27291), + 53: uint16(27292), + 54: uint16(27293), + 55: uint16(27294), + 56: uint16(27295), + 57: uint16(27297), + 58: uint16(27298), + 59: uint16(27299), + 60: uint16(27300), + 61: uint16(27301), + 62: uint16(27302), + 63: uint16(27303), + 64: uint16(27304), + 65: uint16(27306), + 66: uint16(27309), + 67: uint16(27310), + 68: uint16(27311), + 69: uint16(27312), + 70: uint16(27313), + 71: uint16(27314), + 72: uint16(27315), + 73: uint16(27316), + 74: uint16(27317), + 75: uint16(27318), + 76: uint16(27319), + 77: uint16(27320), + 78: uint16(27321), + 79: uint16(27322), + 80: uint16(27323), + 81: uint16(27324), + 82: uint16(27325), + 83: uint16(27326), + 84: uint16(27327), + 85: uint16(27328), + 86: uint16(27329), + 87: uint16(27330), + 88: uint16(27331), + 89: uint16(27332), + 90: uint16(27333), + 91: uint16(27334), + 92: uint16(27335), + 93: uint16(27336), + 94: uint16(27337), + 95: uint16(27338), + 96: uint16(27339), + 97: uint16(27340), + 98: uint16(27341), + 99: uint16(27342), + 100: uint16(27343), + 101: uint16(27344), + 102: uint16(27345), + 103: uint16(27346), + 104: uint16(27347), + 105: uint16(27348), + 106: uint16(27349), + 107: uint16(27350), + 108: uint16(27351), + 109: uint16(27352), + 110: uint16(27353), + 111: uint16(27354), + 112: uint16(27355), + 113: uint16(27356), + 114: uint16(27357), + 115: uint16(27358), + 116: uint16(27359), + 117: uint16(27360), + 118: uint16(27361), + 119: uint16(27362), + 120: uint16(27363), + 121: uint16(27364), + 122: uint16(27365), + 123: uint16(27366), + 124: uint16(27367), + 125: uint16(27368), + 126: uint16(27369), + 127: uint16(27370), + 128: uint16(27371), + 129: uint16(27372), + 130: uint16(27373), + 131: uint16(27374), + 132: uint16(27375), + 133: uint16(27376), + 134: uint16(27377), + 135: uint16(27378), + 136: uint16(27379), + 137: uint16(27380), + 138: uint16(27381), + 139: uint16(27382), + 140: uint16(27383), + 141: uint16(27384), + 142: uint16(27385), + 143: uint16(27386), + 144: uint16(27387), + 145: uint16(27388), + 146: uint16(27389), + 147: uint16(27390), + 148: uint16(27391), + 149: uint16(27392), + 150: uint16(27393), + 151: uint16(27394), + 152: uint16(27395), + 153: uint16(27396), + 154: uint16(27397), + 155: uint16(27398), + 156: uint16(27399), + 157: uint16(27400), + 158: uint16(27401), + 159: uint16(27402), + 160: uint16(27403), + 161: uint16(27404), + 162: uint16(27405), + 163: uint16(27406), + 164: uint16(27407), + 165: uint16(27408), + 166: uint16(27409), + 167: uint16(27410), + 168: uint16(27411), + 169: uint16(27412), + 170: uint16(27413), + 171: uint16(27414), + 172: uint16(27415), + 173: uint16(27416), + 174: uint16(27417), + 175: uint16(27418), + 176: uint16(27419), + 177: uint16(27420), + 178: uint16(27421), + 179: uint16(27422), + 180: uint16(27423), + 181: uint16(27429), + 182: uint16(27430), + 183: uint16(27432), + 184: uint16(27433), + 185: uint16(27434), + 186: uint16(27435), + 187: uint16(27436), + 188: uint16(27437), + 189: uint16(27438), + }, + 25: { + 0: uint16(27439), + 1: uint16(27440), + 2: uint16(27441), + 3: uint16(27443), + 4: uint16(27444), + 5: uint16(27445), + 6: uint16(27446), + 7: uint16(27448), + 8: uint16(27451), + 9: uint16(27452), + 10: uint16(27453), + 11: uint16(27455), + 12: uint16(27456), + 13: uint16(27457), + 14: uint16(27458), + 15: uint16(27460), + 16: uint16(27461), + 17: uint16(27464), + 18: uint16(27466), + 19: uint16(27467), + 20: uint16(27469), + 21: uint16(27470), + 22: uint16(27471), + 23: uint16(27472), + 24: uint16(27473), + 25: uint16(27474), + 26: uint16(27475), + 27: uint16(27476), + 28: uint16(27477), + 29: uint16(27478), + 30: uint16(27479), + 31: uint16(27480), + 32: uint16(27482), + 33: uint16(27483), + 34: uint16(27484), + 35: uint16(27485), + 36: uint16(27486), + 37: uint16(27487), + 38: uint16(27488), + 39: uint16(27489), + 40: uint16(27496), + 41: uint16(27497), + 42: uint16(27499), + 43: uint16(27500), + 44: uint16(27501), + 45: uint16(27502), + 46: uint16(27503), + 47: uint16(27504), + 48: uint16(27505), + 49: uint16(27506), + 50: uint16(27507), + 51: uint16(27508), + 52: uint16(27509), + 53: uint16(27510), + 54: uint16(27511), + 55: uint16(27512), + 56: uint16(27514), + 57: uint16(27517), + 58: uint16(27518), + 59: uint16(27519), + 60: uint16(27520), + 61: uint16(27525), + 62: uint16(27528), + 63: uint16(27532), + 64: uint16(27534), + 65: uint16(27535), + 66: uint16(27536), + 67: uint16(27537), + 68: uint16(27540), + 69: uint16(27541), + 70: uint16(27543), + 71: uint16(27544), + 72: uint16(27545), + 73: uint16(27548), + 74: uint16(27549), + 75: uint16(27550), + 76: uint16(27551), + 77: uint16(27552), + 78: uint16(27554), + 79: uint16(27555), + 80: uint16(27556), + 81: uint16(27557), + 82: uint16(27558), + 83: uint16(27559), + 84: uint16(27560), + 85: uint16(27561), + 86: uint16(27563), + 87: uint16(27564), + 88: uint16(27565), + 89: uint16(27566), + 90: uint16(27567), + 91: uint16(27568), + 92: uint16(27569), + 93: uint16(27570), + 94: uint16(27574), + 95: uint16(27576), + 96: uint16(27577), + 97: uint16(27578), + 98: uint16(27579), + 99: uint16(27580), + 100: uint16(27581), + 101: uint16(27582), + 102: uint16(27584), + 103: uint16(27587), + 104: uint16(27588), + 105: uint16(27590), + 106: uint16(27591), + 107: uint16(27592), + 108: uint16(27593), + 109: uint16(27594), + 110: uint16(27596), + 111: uint16(27598), + 112: uint16(27600), + 113: uint16(27601), + 114: uint16(27608), + 115: uint16(27610), + 116: uint16(27612), + 117: uint16(27613), + 118: uint16(27614), + 119: uint16(27615), + 120: uint16(27616), + 121: uint16(27618), + 122: uint16(27619), + 123: uint16(27620), + 124: uint16(27621), + 125: uint16(27622), + 126: uint16(27623), + 127: uint16(27624), + 128: uint16(27625), + 129: uint16(27628), + 130: uint16(27629), + 131: uint16(27630), + 132: uint16(27632), + 133: uint16(27633), + 134: uint16(27634), + 135: uint16(27636), + 136: uint16(27638), + 137: uint16(27639), + 138: uint16(27640), + 139: uint16(27642), + 140: uint16(27643), + 141: uint16(27644), + 142: uint16(27646), + 143: uint16(27647), + 144: uint16(27648), + 145: uint16(27649), + 146: uint16(27650), + 147: uint16(27651), + 148: uint16(27652), + 149: uint16(27656), + 150: uint16(27657), + 151: uint16(27658), + 152: uint16(27659), + 153: uint16(27660), + 154: uint16(27662), + 155: uint16(27666), + 156: uint16(27671), + 157: uint16(27676), + 158: uint16(27677), + 159: uint16(27678), + 160: uint16(27680), + 161: uint16(27683), + 162: uint16(27685), + 163: uint16(27691), + 164: uint16(27692), + 165: uint16(27693), + 166: uint16(27697), + 167: uint16(27699), + 168: uint16(27702), + 169: uint16(27703), + 170: uint16(27705), + 171: uint16(27706), + 172: uint16(27707), + 173: uint16(27708), + 174: uint16(27710), + 175: uint16(27711), + 176: uint16(27715), + 177: uint16(27716), + 178: uint16(27717), + 179: uint16(27720), + 180: uint16(27723), + 181: uint16(27724), + 182: uint16(27725), + 183: uint16(27726), + 184: uint16(27727), + 185: uint16(27729), + 186: uint16(27730), + 187: uint16(27731), + 188: uint16(27734), + 189: uint16(27736), + }, + 26: { + 0: uint16(27737), + 1: uint16(27738), + 2: uint16(27746), + 3: uint16(27747), + 4: uint16(27749), + 5: uint16(27750), + 6: uint16(27751), + 7: uint16(27755), + 8: uint16(27756), + 9: uint16(27757), + 10: uint16(27758), + 11: uint16(27759), + 12: uint16(27761), + 13: uint16(27763), + 14: uint16(27765), + 15: uint16(27767), + 16: uint16(27768), + 17: uint16(27770), + 18: uint16(27771), + 19: uint16(27772), + 20: uint16(27775), + 21: uint16(27776), + 22: uint16(27780), + 23: uint16(27783), + 24: uint16(27786), + 25: uint16(27787), + 26: uint16(27789), + 27: uint16(27790), + 28: uint16(27793), + 29: uint16(27794), + 30: uint16(27797), + 31: uint16(27798), + 32: uint16(27799), + 33: uint16(27800), + 34: uint16(27802), + 35: uint16(27804), + 36: uint16(27805), + 37: uint16(27806), + 38: uint16(27808), + 39: uint16(27810), + 40: uint16(27816), + 41: uint16(27820), + 42: uint16(27823), + 43: uint16(27824), + 44: uint16(27828), + 45: uint16(27829), + 46: uint16(27830), + 47: uint16(27831), + 48: uint16(27834), + 49: uint16(27840), + 50: uint16(27841), + 51: uint16(27842), + 52: uint16(27843), + 53: uint16(27846), + 54: uint16(27847), + 55: uint16(27848), + 56: uint16(27851), + 57: uint16(27853), + 58: uint16(27854), + 59: uint16(27855), + 60: uint16(27857), + 61: uint16(27858), + 62: uint16(27864), + 63: uint16(27865), + 64: uint16(27866), + 65: uint16(27868), + 66: uint16(27869), + 67: uint16(27871), + 68: uint16(27876), + 69: uint16(27878), + 70: uint16(27879), + 71: uint16(27881), + 72: uint16(27884), + 73: uint16(27885), + 74: uint16(27890), + 75: uint16(27892), + 76: uint16(27897), + 77: uint16(27903), + 78: uint16(27904), + 79: uint16(27906), + 80: uint16(27907), + 81: uint16(27909), + 82: uint16(27910), + 83: uint16(27912), + 84: uint16(27913), + 85: uint16(27914), + 86: uint16(27917), + 87: uint16(27919), + 88: uint16(27920), + 89: uint16(27921), + 90: uint16(27923), + 91: uint16(27924), + 92: uint16(27925), + 93: uint16(27926), + 94: uint16(27928), + 95: uint16(27932), + 96: uint16(27933), + 97: uint16(27935), + 98: uint16(27936), + 99: uint16(27937), + 100: uint16(27938), + 101: uint16(27939), + 102: uint16(27940), + 103: uint16(27942), + 104: uint16(27944), + 105: uint16(27945), + 106: uint16(27948), + 107: uint16(27949), + 108: uint16(27951), + 109: uint16(27952), + 110: uint16(27956), + 111: uint16(27958), + 112: uint16(27959), + 113: uint16(27960), + 114: uint16(27962), + 115: uint16(27967), + 116: uint16(27968), + 117: uint16(27970), + 118: uint16(27972), + 119: uint16(27977), + 120: uint16(27980), + 121: uint16(27984), + 122: uint16(27989), + 123: uint16(27990), + 124: uint16(27991), + 125: uint16(27992), + 126: uint16(27995), + 127: uint16(27997), + 128: uint16(27999), + 129: uint16(28001), + 130: uint16(28002), + 131: uint16(28004), + 132: uint16(28005), + 133: uint16(28007), + 134: uint16(28008), + 135: uint16(28011), + 136: uint16(28012), + 137: uint16(28013), + 138: uint16(28016), + 139: uint16(28017), + 140: uint16(28018), + 141: uint16(28019), + 142: uint16(28021), + 143: uint16(28022), + 144: uint16(28025), + 145: uint16(28026), + 146: uint16(28027), + 147: uint16(28029), + 148: uint16(28030), + 149: uint16(28031), + 150: uint16(28032), + 151: uint16(28033), + 152: uint16(28035), + 153: uint16(28036), + 154: uint16(28038), + 155: uint16(28039), + 156: uint16(28042), + 157: uint16(28043), + 158: uint16(28045), + 159: uint16(28047), + 160: uint16(28048), + 161: uint16(28050), + 162: uint16(28054), + 163: uint16(28055), + 164: uint16(28056), + 165: uint16(28057), + 166: uint16(28058), + 167: uint16(28060), + 168: uint16(28066), + 169: uint16(28069), + 170: uint16(28076), + 171: uint16(28077), + 172: uint16(28080), + 173: uint16(28081), + 174: uint16(28083), + 175: uint16(28084), + 176: uint16(28086), + 177: uint16(28087), + 178: uint16(28089), + 179: uint16(28090), + 180: uint16(28091), + 181: uint16(28092), + 182: uint16(28093), + 183: uint16(28094), + 184: uint16(28097), + 185: uint16(28098), + 186: uint16(28099), + 187: uint16(28104), + 188: uint16(28105), + 189: uint16(28106), + }, + 27: { + 0: uint16(28109), + 1: uint16(28110), + 2: uint16(28111), + 3: uint16(28112), + 4: uint16(28114), + 5: uint16(28115), + 6: uint16(28116), + 7: uint16(28117), + 8: uint16(28119), + 9: uint16(28122), + 10: uint16(28123), + 11: uint16(28124), + 12: uint16(28127), + 13: uint16(28130), + 14: uint16(28131), + 15: uint16(28133), + 16: uint16(28135), + 17: uint16(28136), + 18: uint16(28137), + 19: uint16(28138), + 20: uint16(28141), + 21: uint16(28143), + 22: uint16(28144), + 23: uint16(28146), + 24: uint16(28148), + 25: uint16(28149), + 26: uint16(28150), + 27: uint16(28152), + 28: uint16(28154), + 29: uint16(28157), + 30: uint16(28158), + 31: uint16(28159), + 32: uint16(28160), + 33: uint16(28161), + 34: uint16(28162), + 35: uint16(28163), + 36: uint16(28164), + 37: uint16(28166), + 38: uint16(28167), + 39: uint16(28168), + 40: uint16(28169), + 41: uint16(28171), + 42: uint16(28175), + 43: uint16(28178), + 44: uint16(28179), + 45: uint16(28181), + 46: uint16(28184), + 47: uint16(28185), + 48: uint16(28187), + 49: uint16(28188), + 50: uint16(28190), + 51: uint16(28191), + 52: uint16(28194), + 53: uint16(28198), + 54: uint16(28199), + 55: uint16(28200), + 56: uint16(28202), + 57: uint16(28204), + 58: uint16(28206), + 59: uint16(28208), + 60: uint16(28209), + 61: uint16(28211), + 62: uint16(28213), + 63: uint16(28214), + 64: uint16(28215), + 65: uint16(28217), + 66: uint16(28219), + 67: uint16(28220), + 68: uint16(28221), + 69: uint16(28222), + 70: uint16(28223), + 71: uint16(28224), + 72: uint16(28225), + 73: uint16(28226), + 74: uint16(28229), + 75: uint16(28230), + 76: uint16(28231), + 77: uint16(28232), + 78: uint16(28233), + 79: uint16(28234), + 80: uint16(28235), + 81: uint16(28236), + 82: uint16(28239), + 83: uint16(28240), + 84: uint16(28241), + 85: uint16(28242), + 86: uint16(28245), + 87: uint16(28247), + 88: uint16(28249), + 89: uint16(28250), + 90: uint16(28252), + 91: uint16(28253), + 92: uint16(28254), + 93: uint16(28256), + 94: uint16(28257), + 95: uint16(28258), + 96: uint16(28259), + 97: uint16(28260), + 98: uint16(28261), + 99: uint16(28262), + 100: uint16(28263), + 101: uint16(28264), + 102: uint16(28265), + 103: uint16(28266), + 104: uint16(28268), + 105: uint16(28269), + 106: uint16(28271), + 107: uint16(28272), + 108: uint16(28273), + 109: uint16(28274), + 110: uint16(28275), + 111: uint16(28276), + 112: uint16(28277), + 113: uint16(28278), + 114: uint16(28279), + 115: uint16(28280), + 116: uint16(28281), + 117: uint16(28282), + 118: uint16(28283), + 119: uint16(28284), + 120: uint16(28285), + 121: uint16(28288), + 122: uint16(28289), + 123: uint16(28290), + 124: uint16(28292), + 125: uint16(28295), + 126: uint16(28296), + 127: uint16(28298), + 128: uint16(28299), + 129: uint16(28300), + 130: uint16(28301), + 131: uint16(28302), + 132: uint16(28305), + 133: uint16(28306), + 134: uint16(28307), + 135: uint16(28308), + 136: uint16(28309), + 137: uint16(28310), + 138: uint16(28311), + 139: uint16(28313), + 140: uint16(28314), + 141: uint16(28315), + 142: uint16(28317), + 143: uint16(28318), + 144: uint16(28320), + 145: uint16(28321), + 146: uint16(28323), + 147: uint16(28324), + 148: uint16(28326), + 149: uint16(28328), + 150: uint16(28329), + 151: uint16(28331), + 152: uint16(28332), + 153: uint16(28333), + 154: uint16(28334), + 155: uint16(28336), + 156: uint16(28339), + 157: uint16(28341), + 158: uint16(28344), + 159: uint16(28345), + 160: uint16(28348), + 161: uint16(28350), + 162: uint16(28351), + 163: uint16(28352), + 164: uint16(28355), + 165: uint16(28356), + 166: uint16(28357), + 167: uint16(28358), + 168: uint16(28360), + 169: uint16(28361), + 170: uint16(28362), + 171: uint16(28364), + 172: uint16(28365), + 173: uint16(28366), + 174: uint16(28368), + 175: uint16(28370), + 176: uint16(28374), + 177: uint16(28376), + 178: uint16(28377), + 179: uint16(28379), + 180: uint16(28380), + 181: uint16(28381), + 182: uint16(28387), + 183: uint16(28391), + 184: uint16(28394), + 185: uint16(28395), + 186: uint16(28396), + 187: uint16(28397), + 188: uint16(28398), + 189: uint16(28399), + }, + 28: { + 0: uint16(28400), + 1: uint16(28401), + 2: uint16(28402), + 3: uint16(28403), + 4: uint16(28405), + 5: uint16(28406), + 6: uint16(28407), + 7: uint16(28408), + 8: uint16(28410), + 9: uint16(28411), + 10: uint16(28412), + 11: uint16(28413), + 12: uint16(28414), + 13: uint16(28415), + 14: uint16(28416), + 15: uint16(28417), + 16: uint16(28419), + 17: uint16(28420), + 18: uint16(28421), + 19: uint16(28423), + 20: uint16(28424), + 21: uint16(28426), + 22: uint16(28427), + 23: uint16(28428), + 24: uint16(28429), + 25: uint16(28430), + 26: uint16(28432), + 27: uint16(28433), + 28: uint16(28434), + 29: uint16(28438), + 30: uint16(28439), + 31: uint16(28440), + 32: uint16(28441), + 33: uint16(28442), + 34: uint16(28443), + 35: uint16(28444), + 36: uint16(28445), + 37: uint16(28446), + 38: uint16(28447), + 39: uint16(28449), + 40: uint16(28450), + 41: uint16(28451), + 42: uint16(28453), + 43: uint16(28454), + 44: uint16(28455), + 45: uint16(28456), + 46: uint16(28460), + 47: uint16(28462), + 48: uint16(28464), + 49: uint16(28466), + 50: uint16(28468), + 51: uint16(28469), + 52: uint16(28471), + 53: uint16(28472), + 54: uint16(28473), + 55: uint16(28474), + 56: uint16(28475), + 57: uint16(28476), + 58: uint16(28477), + 59: uint16(28479), + 60: uint16(28480), + 61: uint16(28481), + 62: uint16(28482), + 63: uint16(28483), + 64: uint16(28484), + 65: uint16(28485), + 66: uint16(28488), + 67: uint16(28489), + 68: uint16(28490), + 69: uint16(28492), + 70: uint16(28494), + 71: uint16(28495), + 72: uint16(28496), + 73: uint16(28497), + 74: uint16(28498), + 75: uint16(28499), + 76: uint16(28500), + 77: uint16(28501), + 78: uint16(28502), + 79: uint16(28503), + 80: uint16(28505), + 81: uint16(28506), + 82: uint16(28507), + 83: uint16(28509), + 84: uint16(28511), + 85: uint16(28512), + 86: uint16(28513), + 87: uint16(28515), + 88: uint16(28516), + 89: uint16(28517), + 90: uint16(28519), + 91: uint16(28520), + 92: uint16(28521), + 93: uint16(28522), + 94: uint16(28523), + 95: uint16(28524), + 96: uint16(28527), + 97: uint16(28528), + 98: uint16(28529), + 99: uint16(28531), + 100: uint16(28533), + 101: uint16(28534), + 102: uint16(28535), + 103: uint16(28537), + 104: uint16(28539), + 105: uint16(28541), + 106: uint16(28542), + 107: uint16(28543), + 108: uint16(28544), + 109: uint16(28545), + 110: uint16(28546), + 111: uint16(28547), + 112: uint16(28549), + 113: uint16(28550), + 114: uint16(28551), + 115: uint16(28554), + 116: uint16(28555), + 117: uint16(28559), + 118: uint16(28560), + 119: uint16(28561), + 120: uint16(28562), + 121: uint16(28563), + 122: uint16(28564), + 123: uint16(28565), + 124: uint16(28566), + 125: uint16(28567), + 126: uint16(28568), + 127: uint16(28569), + 128: uint16(28570), + 129: uint16(28571), + 130: uint16(28573), + 131: uint16(28574), + 132: uint16(28575), + 133: uint16(28576), + 134: uint16(28578), + 135: uint16(28579), + 136: uint16(28580), + 137: uint16(28581), + 138: uint16(28582), + 139: uint16(28584), + 140: uint16(28585), + 141: uint16(28586), + 142: uint16(28587), + 143: uint16(28588), + 144: uint16(28589), + 145: uint16(28590), + 146: uint16(28591), + 147: uint16(28592), + 148: uint16(28593), + 149: uint16(28594), + 150: uint16(28596), + 151: uint16(28597), + 152: uint16(28599), + 153: uint16(28600), + 154: uint16(28602), + 155: uint16(28603), + 156: uint16(28604), + 157: uint16(28605), + 158: uint16(28606), + 159: uint16(28607), + 160: uint16(28609), + 161: uint16(28611), + 162: uint16(28612), + 163: uint16(28613), + 164: uint16(28614), + 165: uint16(28615), + 166: uint16(28616), + 167: uint16(28618), + 168: uint16(28619), + 169: uint16(28620), + 170: uint16(28621), + 171: uint16(28622), + 172: uint16(28623), + 173: uint16(28624), + 174: uint16(28627), + 175: uint16(28628), + 176: uint16(28629), + 177: uint16(28630), + 178: uint16(28631), + 179: uint16(28632), + 180: uint16(28633), + 181: uint16(28634), + 182: uint16(28635), + 183: uint16(28636), + 184: uint16(28637), + 185: uint16(28639), + 186: uint16(28642), + 187: uint16(28643), + 188: uint16(28644), + 189: uint16(28645), + }, + 29: { + 0: uint16(28646), + 1: uint16(28647), + 2: uint16(28648), + 3: uint16(28649), + 4: uint16(28650), + 5: uint16(28651), + 6: uint16(28652), + 7: uint16(28653), + 8: uint16(28656), + 9: uint16(28657), + 10: uint16(28658), + 11: uint16(28659), + 12: uint16(28660), + 13: uint16(28661), + 14: uint16(28662), + 15: uint16(28663), + 16: uint16(28664), + 17: uint16(28665), + 18: uint16(28666), + 19: uint16(28667), + 20: uint16(28668), + 21: uint16(28669), + 22: uint16(28670), + 23: uint16(28671), + 24: uint16(28672), + 25: uint16(28673), + 26: uint16(28674), + 27: uint16(28675), + 28: uint16(28676), + 29: uint16(28677), + 30: uint16(28678), + 31: uint16(28679), + 32: uint16(28680), + 33: uint16(28681), + 34: uint16(28682), + 35: uint16(28683), + 36: uint16(28684), + 37: uint16(28685), + 38: uint16(28686), + 39: uint16(28687), + 40: uint16(28688), + 41: uint16(28690), + 42: uint16(28691), + 43: uint16(28692), + 44: uint16(28693), + 45: uint16(28694), + 46: uint16(28695), + 47: uint16(28696), + 48: uint16(28697), + 49: uint16(28700), + 50: uint16(28701), + 51: uint16(28702), + 52: uint16(28703), + 53: uint16(28704), + 54: uint16(28705), + 55: uint16(28706), + 56: uint16(28708), + 57: uint16(28709), + 58: uint16(28710), + 59: uint16(28711), + 60: uint16(28712), + 61: uint16(28713), + 62: uint16(28714), + 63: uint16(28715), + 64: uint16(28716), + 65: uint16(28717), + 66: uint16(28718), + 67: uint16(28719), + 68: uint16(28720), + 69: uint16(28721), + 70: uint16(28722), + 71: uint16(28723), + 72: uint16(28724), + 73: uint16(28726), + 74: uint16(28727), + 75: uint16(28728), + 76: uint16(28730), + 77: uint16(28731), + 78: uint16(28732), + 79: uint16(28733), + 80: uint16(28734), + 81: uint16(28735), + 82: uint16(28736), + 83: uint16(28737), + 84: uint16(28738), + 85: uint16(28739), + 86: uint16(28740), + 87: uint16(28741), + 88: uint16(28742), + 89: uint16(28743), + 90: uint16(28744), + 91: uint16(28745), + 92: uint16(28746), + 93: uint16(28747), + 94: uint16(28749), + 95: uint16(28750), + 96: uint16(28752), + 97: uint16(28753), + 98: uint16(28754), + 99: uint16(28755), + 100: uint16(28756), + 101: uint16(28757), + 102: uint16(28758), + 103: uint16(28759), + 104: uint16(28760), + 105: uint16(28761), + 106: uint16(28762), + 107: uint16(28763), + 108: uint16(28764), + 109: uint16(28765), + 110: uint16(28767), + 111: uint16(28768), + 112: uint16(28769), + 113: uint16(28770), + 114: uint16(28771), + 115: uint16(28772), + 116: uint16(28773), + 117: uint16(28774), + 118: uint16(28775), + 119: uint16(28776), + 120: uint16(28777), + 121: uint16(28778), + 122: uint16(28782), + 123: uint16(28785), + 124: uint16(28786), + 125: uint16(28787), + 126: uint16(28788), + 127: uint16(28791), + 128: uint16(28793), + 129: uint16(28794), + 130: uint16(28795), + 131: uint16(28797), + 132: uint16(28801), + 133: uint16(28802), + 134: uint16(28803), + 135: uint16(28804), + 136: uint16(28806), + 137: uint16(28807), + 138: uint16(28808), + 139: uint16(28811), + 140: uint16(28812), + 141: uint16(28813), + 142: uint16(28815), + 143: uint16(28816), + 144: uint16(28817), + 145: uint16(28819), + 146: uint16(28823), + 147: uint16(28824), + 148: uint16(28826), + 149: uint16(28827), + 150: uint16(28830), + 151: uint16(28831), + 152: uint16(28832), + 153: uint16(28833), + 154: uint16(28834), + 155: uint16(28835), + 156: uint16(28836), + 157: uint16(28837), + 158: uint16(28838), + 159: uint16(28839), + 160: uint16(28840), + 161: uint16(28841), + 162: uint16(28842), + 163: uint16(28848), + 164: uint16(28850), + 165: uint16(28852), + 166: uint16(28853), + 167: uint16(28854), + 168: uint16(28858), + 169: uint16(28862), + 170: uint16(28863), + 171: uint16(28868), + 172: uint16(28869), + 173: uint16(28870), + 174: uint16(28871), + 175: uint16(28873), + 176: uint16(28875), + 177: uint16(28876), + 178: uint16(28877), + 179: uint16(28878), + 180: uint16(28879), + 181: uint16(28880), + 182: uint16(28881), + 183: uint16(28882), + 184: uint16(28883), + 185: uint16(28884), + 186: uint16(28885), + 187: uint16(28886), + 188: uint16(28887), + 189: uint16(28890), + }, + 30: { + 0: uint16(28892), + 1: uint16(28893), + 2: uint16(28894), + 3: uint16(28896), + 4: uint16(28897), + 5: uint16(28898), + 6: uint16(28899), + 7: uint16(28901), + 8: uint16(28906), + 9: uint16(28910), + 10: uint16(28912), + 11: uint16(28913), + 12: uint16(28914), + 13: uint16(28915), + 14: uint16(28916), + 15: uint16(28917), + 16: uint16(28918), + 17: uint16(28920), + 18: uint16(28922), + 19: uint16(28923), + 20: uint16(28924), + 21: uint16(28926), + 22: uint16(28927), + 23: uint16(28928), + 24: uint16(28929), + 25: uint16(28930), + 26: uint16(28931), + 27: uint16(28932), + 28: uint16(28933), + 29: uint16(28934), + 30: uint16(28935), + 31: uint16(28936), + 32: uint16(28939), + 33: uint16(28940), + 34: uint16(28941), + 35: uint16(28942), + 36: uint16(28943), + 37: uint16(28945), + 38: uint16(28946), + 39: uint16(28948), + 40: uint16(28951), + 41: uint16(28955), + 42: uint16(28956), + 43: uint16(28957), + 44: uint16(28958), + 45: uint16(28959), + 46: uint16(28960), + 47: uint16(28961), + 48: uint16(28962), + 49: uint16(28963), + 50: uint16(28964), + 51: uint16(28965), + 52: uint16(28967), + 53: uint16(28968), + 54: uint16(28969), + 55: uint16(28970), + 56: uint16(28971), + 57: uint16(28972), + 58: uint16(28973), + 59: uint16(28974), + 60: uint16(28978), + 61: uint16(28979), + 62: uint16(28980), + 63: uint16(28981), + 64: uint16(28983), + 65: uint16(28984), + 66: uint16(28985), + 67: uint16(28986), + 68: uint16(28987), + 69: uint16(28988), + 70: uint16(28989), + 71: uint16(28990), + 72: uint16(28991), + 73: uint16(28992), + 74: uint16(28993), + 75: uint16(28994), + 76: uint16(28995), + 77: uint16(28996), + 78: uint16(28998), + 79: uint16(28999), + 80: uint16(29000), + 81: uint16(29001), + 82: uint16(29003), + 83: uint16(29005), + 84: uint16(29007), + 85: uint16(29008), + 86: uint16(29009), + 87: uint16(29010), + 88: uint16(29011), + 89: uint16(29012), + 90: uint16(29013), + 91: uint16(29014), + 92: uint16(29015), + 93: uint16(29016), + 94: uint16(29017), + 95: uint16(29018), + 96: uint16(29019), + 97: uint16(29021), + 98: uint16(29023), + 99: uint16(29024), + 100: uint16(29025), + 101: uint16(29026), + 102: uint16(29027), + 103: uint16(29029), + 104: uint16(29033), + 105: uint16(29034), + 106: uint16(29035), + 107: uint16(29036), + 108: uint16(29037), + 109: uint16(29039), + 110: uint16(29040), + 111: uint16(29041), + 112: uint16(29044), + 113: uint16(29045), + 114: uint16(29046), + 115: uint16(29047), + 116: uint16(29049), + 117: uint16(29051), + 118: uint16(29052), + 119: uint16(29054), + 120: uint16(29055), + 121: uint16(29056), + 122: uint16(29057), + 123: uint16(29058), + 124: uint16(29059), + 125: uint16(29061), + 126: uint16(29062), + 127: uint16(29063), + 128: uint16(29064), + 129: uint16(29065), + 130: uint16(29067), + 131: uint16(29068), + 132: uint16(29069), + 133: uint16(29070), + 134: uint16(29072), + 135: uint16(29073), + 136: uint16(29074), + 137: uint16(29075), + 138: uint16(29077), + 139: uint16(29078), + 140: uint16(29079), + 141: uint16(29082), + 142: uint16(29083), + 143: uint16(29084), + 144: uint16(29085), + 145: uint16(29086), + 146: uint16(29089), + 147: uint16(29090), + 148: uint16(29091), + 149: uint16(29092), + 150: uint16(29093), + 151: uint16(29094), + 152: uint16(29095), + 153: uint16(29097), + 154: uint16(29098), + 155: uint16(29099), + 156: uint16(29101), + 157: uint16(29102), + 158: uint16(29103), + 159: uint16(29104), + 160: uint16(29105), + 161: uint16(29106), + 162: uint16(29108), + 163: uint16(29110), + 164: uint16(29111), + 165: uint16(29112), + 166: uint16(29114), + 167: uint16(29115), + 168: uint16(29116), + 169: uint16(29117), + 170: uint16(29118), + 171: uint16(29119), + 172: uint16(29120), + 173: uint16(29121), + 174: uint16(29122), + 175: uint16(29124), + 176: uint16(29125), + 177: uint16(29126), + 178: uint16(29127), + 179: uint16(29128), + 180: uint16(29129), + 181: uint16(29130), + 182: uint16(29131), + 183: uint16(29132), + 184: uint16(29133), + 185: uint16(29135), + 186: uint16(29136), + 187: uint16(29137), + 188: uint16(29138), + 189: uint16(29139), + }, + 31: { + 0: uint16(29142), + 1: uint16(29143), + 2: uint16(29144), + 3: uint16(29145), + 4: uint16(29146), + 5: uint16(29147), + 6: uint16(29148), + 7: uint16(29149), + 8: uint16(29150), + 9: uint16(29151), + 10: uint16(29153), + 11: uint16(29154), + 12: uint16(29155), + 13: uint16(29156), + 14: uint16(29158), + 15: uint16(29160), + 16: uint16(29161), + 17: uint16(29162), + 18: uint16(29163), + 19: uint16(29164), + 20: uint16(29165), + 21: uint16(29167), + 22: uint16(29168), + 23: uint16(29169), + 24: uint16(29170), + 25: uint16(29171), + 26: uint16(29172), + 27: uint16(29173), + 28: uint16(29174), + 29: uint16(29175), + 30: uint16(29176), + 31: uint16(29178), + 32: uint16(29179), + 33: uint16(29180), + 34: uint16(29181), + 35: uint16(29182), + 36: uint16(29183), + 37: uint16(29184), + 38: uint16(29185), + 39: uint16(29186), + 40: uint16(29187), + 41: uint16(29188), + 42: uint16(29189), + 43: uint16(29191), + 44: uint16(29192), + 45: uint16(29193), + 46: uint16(29194), + 47: uint16(29195), + 48: uint16(29196), + 49: uint16(29197), + 50: uint16(29198), + 51: uint16(29199), + 52: uint16(29200), + 53: uint16(29201), + 54: uint16(29202), + 55: uint16(29203), + 56: uint16(29204), + 57: uint16(29205), + 58: uint16(29206), + 59: uint16(29207), + 60: uint16(29208), + 61: uint16(29209), + 62: uint16(29210), + 63: uint16(29211), + 64: uint16(29212), + 65: uint16(29214), + 66: uint16(29215), + 67: uint16(29216), + 68: uint16(29217), + 69: uint16(29218), + 70: uint16(29219), + 71: uint16(29220), + 72: uint16(29221), + 73: uint16(29222), + 74: uint16(29223), + 75: uint16(29225), + 76: uint16(29227), + 77: uint16(29229), + 78: uint16(29230), + 79: uint16(29231), + 80: uint16(29234), + 81: uint16(29235), + 82: uint16(29236), + 83: uint16(29242), + 84: uint16(29244), + 85: uint16(29246), + 86: uint16(29248), + 87: uint16(29249), + 88: uint16(29250), + 89: uint16(29251), + 90: uint16(29252), + 91: uint16(29253), + 92: uint16(29254), + 93: uint16(29257), + 94: uint16(29258), + 95: uint16(29259), + 96: uint16(29262), + 97: uint16(29263), + 98: uint16(29264), + 99: uint16(29265), + 100: uint16(29267), + 101: uint16(29268), + 102: uint16(29269), + 103: uint16(29271), + 104: uint16(29272), + 105: uint16(29274), + 106: uint16(29276), + 107: uint16(29278), + 108: uint16(29280), + 109: uint16(29283), + 110: uint16(29284), + 111: uint16(29285), + 112: uint16(29288), + 113: uint16(29290), + 114: uint16(29291), + 115: uint16(29292), + 116: uint16(29293), + 117: uint16(29296), + 118: uint16(29297), + 119: uint16(29299), + 120: uint16(29300), + 121: uint16(29302), + 122: uint16(29303), + 123: uint16(29304), + 124: uint16(29307), + 125: uint16(29308), + 126: uint16(29309), + 127: uint16(29314), + 128: uint16(29315), + 129: uint16(29317), + 130: uint16(29318), + 131: uint16(29319), + 132: uint16(29320), + 133: uint16(29321), + 134: uint16(29324), + 135: uint16(29326), + 136: uint16(29328), + 137: uint16(29329), + 138: uint16(29331), + 139: uint16(29332), + 140: uint16(29333), + 141: uint16(29334), + 142: uint16(29335), + 143: uint16(29336), + 144: uint16(29337), + 145: uint16(29338), + 146: uint16(29339), + 147: uint16(29340), + 148: uint16(29341), + 149: uint16(29342), + 150: uint16(29344), + 151: uint16(29345), + 152: uint16(29346), + 153: uint16(29347), + 154: uint16(29348), + 155: uint16(29349), + 156: uint16(29350), + 157: uint16(29351), + 158: uint16(29352), + 159: uint16(29353), + 160: uint16(29354), + 161: uint16(29355), + 162: uint16(29358), + 163: uint16(29361), + 164: uint16(29362), + 165: uint16(29363), + 166: uint16(29365), + 167: uint16(29370), + 168: uint16(29371), + 169: uint16(29372), + 170: uint16(29373), + 171: uint16(29374), + 172: uint16(29375), + 173: uint16(29376), + 174: uint16(29381), + 175: uint16(29382), + 176: uint16(29383), + 177: uint16(29385), + 178: uint16(29386), + 179: uint16(29387), + 180: uint16(29388), + 181: uint16(29391), + 182: uint16(29393), + 183: uint16(29395), + 184: uint16(29396), + 185: uint16(29397), + 186: uint16(29398), + 187: uint16(29400), + 188: uint16(29402), + 189: uint16(29403), + }, + 32: { + 0: uint16(58566), + 1: uint16(58567), + 2: uint16(58568), + 3: uint16(58569), + 4: uint16(58570), + 5: uint16(58571), + 6: uint16(58572), + 7: uint16(58573), + 8: uint16(58574), + 9: uint16(58575), + 10: uint16(58576), + 11: uint16(58577), + 12: uint16(58578), + 13: uint16(58579), + 14: uint16(58580), + 15: uint16(58581), + 16: uint16(58582), + 17: uint16(58583), + 18: uint16(58584), + 19: uint16(58585), + 20: uint16(58586), + 21: uint16(58587), + 22: uint16(58588), + 23: uint16(58589), + 24: uint16(58590), + 25: uint16(58591), + 26: uint16(58592), + 27: uint16(58593), + 28: uint16(58594), + 29: uint16(58595), + 30: uint16(58596), + 31: uint16(58597), + 32: uint16(58598), + 33: uint16(58599), + 34: uint16(58600), + 35: uint16(58601), + 36: uint16(58602), + 37: uint16(58603), + 38: uint16(58604), + 39: uint16(58605), + 40: uint16(58606), + 41: uint16(58607), + 42: uint16(58608), + 43: uint16(58609), + 44: uint16(58610), + 45: uint16(58611), + 46: uint16(58612), + 47: uint16(58613), + 48: uint16(58614), + 49: uint16(58615), + 50: uint16(58616), + 51: uint16(58617), + 52: uint16(58618), + 53: uint16(58619), + 54: uint16(58620), + 55: uint16(58621), + 56: uint16(58622), + 57: uint16(58623), + 58: uint16(58624), + 59: uint16(58625), + 60: uint16(58626), + 61: uint16(58627), + 62: uint16(58628), + 63: uint16(58629), + 64: uint16(58630), + 65: uint16(58631), + 66: uint16(58632), + 67: uint16(58633), + 68: uint16(58634), + 69: uint16(58635), + 70: uint16(58636), + 71: uint16(58637), + 72: uint16(58638), + 73: uint16(58639), + 74: uint16(58640), + 75: uint16(58641), + 76: uint16(58642), + 77: uint16(58643), + 78: uint16(58644), + 79: uint16(58645), + 80: uint16(58646), + 81: uint16(58647), + 82: uint16(58648), + 83: uint16(58649), + 84: uint16(58650), + 85: uint16(58651), + 86: uint16(58652), + 87: uint16(58653), + 88: uint16(58654), + 89: uint16(58655), + 90: uint16(58656), + 91: uint16(58657), + 92: uint16(58658), + 93: uint16(58659), + 94: uint16(58660), + 95: uint16(58661), + 96: uint16(12288), + 97: uint16(12289), + 98: uint16(12290), + 99: uint16(183), + 100: uint16(713), + 101: uint16(711), + 102: uint16(168), + 103: uint16(12291), + 104: uint16(12293), + 105: uint16(8212), + 106: uint16(65374), + 107: uint16(8214), + 108: uint16(8230), + 109: uint16(8216), + 110: uint16(8217), + 111: uint16(8220), + 112: uint16(8221), + 113: uint16(12308), + 114: uint16(12309), + 115: uint16(12296), + 116: uint16(12297), + 117: uint16(12298), + 118: uint16(12299), + 119: uint16(12300), + 120: uint16(12301), + 121: uint16(12302), + 122: uint16(12303), + 123: uint16(12310), + 124: uint16(12311), + 125: uint16(12304), + 126: uint16(12305), + 127: uint16(177), + 128: uint16(215), + 129: uint16(247), + 130: uint16(8758), + 131: uint16(8743), + 132: uint16(8744), + 133: uint16(8721), + 134: uint16(8719), + 135: uint16(8746), + 136: uint16(8745), + 137: uint16(8712), + 138: uint16(8759), + 139: uint16(8730), + 140: uint16(8869), + 141: uint16(8741), + 142: uint16(8736), + 143: uint16(8978), + 144: uint16(8857), + 145: uint16(8747), + 146: uint16(8750), + 147: uint16(8801), + 148: uint16(8780), + 149: uint16(8776), + 150: uint16(8765), + 151: uint16(8733), + 152: uint16(8800), + 153: uint16(8814), + 154: uint16(8815), + 155: uint16(8804), + 156: uint16(8805), + 157: uint16(8734), + 158: uint16(8757), + 159: uint16(8756), + 160: uint16(9794), + 161: uint16(9792), + 162: uint16(176), + 163: uint16(8242), + 164: uint16(8243), + 165: uint16(8451), + 166: uint16(65284), + 167: uint16(164), + 168: uint16(65504), + 169: uint16(65505), + 170: uint16(8240), + 171: uint16(167), + 172: uint16(8470), + 173: uint16(9734), + 174: uint16(9733), + 175: uint16(9675), + 176: uint16(9679), + 177: uint16(9678), + 178: uint16(9671), + 179: uint16(9670), + 180: uint16(9633), + 181: uint16(9632), + 182: uint16(9651), + 183: uint16(9650), + 184: uint16(8251), + 185: uint16(8594), + 186: uint16(8592), + 187: uint16(8593), + 188: uint16(8595), + 189: uint16(12307), + }, + 33: { + 0: uint16(58662), + 1: uint16(58663), + 2: uint16(58664), + 3: uint16(58665), + 4: uint16(58666), + 5: uint16(58667), + 6: uint16(58668), + 7: uint16(58669), + 8: uint16(58670), + 9: uint16(58671), + 10: uint16(58672), + 11: uint16(58673), + 12: uint16(58674), + 13: uint16(58675), + 14: uint16(58676), + 15: uint16(58677), + 16: uint16(58678), + 17: uint16(58679), + 18: uint16(58680), + 19: uint16(58681), + 20: uint16(58682), + 21: uint16(58683), + 22: uint16(58684), + 23: uint16(58685), + 24: uint16(58686), + 25: uint16(58687), + 26: uint16(58688), + 27: uint16(58689), + 28: uint16(58690), + 29: uint16(58691), + 30: uint16(58692), + 31: uint16(58693), + 32: uint16(58694), + 33: uint16(58695), + 34: uint16(58696), + 35: uint16(58697), + 36: uint16(58698), + 37: uint16(58699), + 38: uint16(58700), + 39: uint16(58701), + 40: uint16(58702), + 41: uint16(58703), + 42: uint16(58704), + 43: uint16(58705), + 44: uint16(58706), + 45: uint16(58707), + 46: uint16(58708), + 47: uint16(58709), + 48: uint16(58710), + 49: uint16(58711), + 50: uint16(58712), + 51: uint16(58713), + 52: uint16(58714), + 53: uint16(58715), + 54: uint16(58716), + 55: uint16(58717), + 56: uint16(58718), + 57: uint16(58719), + 58: uint16(58720), + 59: uint16(58721), + 60: uint16(58722), + 61: uint16(58723), + 62: uint16(58724), + 63: uint16(58725), + 64: uint16(58726), + 65: uint16(58727), + 66: uint16(58728), + 67: uint16(58729), + 68: uint16(58730), + 69: uint16(58731), + 70: uint16(58732), + 71: uint16(58733), + 72: uint16(58734), + 73: uint16(58735), + 74: uint16(58736), + 75: uint16(58737), + 76: uint16(58738), + 77: uint16(58739), + 78: uint16(58740), + 79: uint16(58741), + 80: uint16(58742), + 81: uint16(58743), + 82: uint16(58744), + 83: uint16(58745), + 84: uint16(58746), + 85: uint16(58747), + 86: uint16(58748), + 87: uint16(58749), + 88: uint16(58750), + 89: uint16(58751), + 90: uint16(58752), + 91: uint16(58753), + 92: uint16(58754), + 93: uint16(58755), + 94: uint16(58756), + 95: uint16(58757), + 96: uint16(8560), + 97: uint16(8561), + 98: uint16(8562), + 99: uint16(8563), + 100: uint16(8564), + 101: uint16(8565), + 102: uint16(8566), + 103: uint16(8567), + 104: uint16(8568), + 105: uint16(8569), + 106: uint16(59238), + 107: uint16(59239), + 108: uint16(59240), + 109: uint16(59241), + 110: uint16(59242), + 111: uint16(59243), + 112: uint16(9352), + 113: uint16(9353), + 114: uint16(9354), + 115: uint16(9355), + 116: uint16(9356), + 117: uint16(9357), + 118: uint16(9358), + 119: uint16(9359), + 120: uint16(9360), + 121: uint16(9361), + 122: uint16(9362), + 123: uint16(9363), + 124: uint16(9364), + 125: uint16(9365), + 126: uint16(9366), + 127: uint16(9367), + 128: uint16(9368), + 129: uint16(9369), + 130: uint16(9370), + 131: uint16(9371), + 132: uint16(9332), + 133: uint16(9333), + 134: uint16(9334), + 135: uint16(9335), + 136: uint16(9336), + 137: uint16(9337), + 138: uint16(9338), + 139: uint16(9339), + 140: uint16(9340), + 141: uint16(9341), + 142: uint16(9342), + 143: uint16(9343), + 144: uint16(9344), + 145: uint16(9345), + 146: uint16(9346), + 147: uint16(9347), + 148: uint16(9348), + 149: uint16(9349), + 150: uint16(9350), + 151: uint16(9351), + 152: uint16(9312), + 153: uint16(9313), + 154: uint16(9314), + 155: uint16(9315), + 156: uint16(9316), + 157: uint16(9317), + 158: uint16(9318), + 159: uint16(9319), + 160: uint16(9320), + 161: uint16(9321), + 162: uint16(8364), + 163: uint16(59245), + 164: uint16(12832), + 165: uint16(12833), + 166: uint16(12834), + 167: uint16(12835), + 168: uint16(12836), + 169: uint16(12837), + 170: uint16(12838), + 171: uint16(12839), + 172: uint16(12840), + 173: uint16(12841), + 174: uint16(59246), + 175: uint16(59247), + 176: uint16(8544), + 177: uint16(8545), + 178: uint16(8546), + 179: uint16(8547), + 180: uint16(8548), + 181: uint16(8549), + 182: uint16(8550), + 183: uint16(8551), + 184: uint16(8552), + 185: uint16(8553), + 186: uint16(8554), + 187: uint16(8555), + 188: uint16(59248), + 189: uint16(59249), + }, + 34: { + 0: uint16(58758), + 1: uint16(58759), + 2: uint16(58760), + 3: uint16(58761), + 4: uint16(58762), + 5: uint16(58763), + 6: uint16(58764), + 7: uint16(58765), + 8: uint16(58766), + 9: uint16(58767), + 10: uint16(58768), + 11: uint16(58769), + 12: uint16(58770), + 13: uint16(58771), + 14: uint16(58772), + 15: uint16(58773), + 16: uint16(58774), + 17: uint16(58775), + 18: uint16(58776), + 19: uint16(58777), + 20: uint16(58778), + 21: uint16(58779), + 22: uint16(58780), + 23: uint16(58781), + 24: uint16(58782), + 25: uint16(58783), + 26: uint16(58784), + 27: uint16(58785), + 28: uint16(58786), + 29: uint16(58787), + 30: uint16(58788), + 31: uint16(58789), + 32: uint16(58790), + 33: uint16(58791), + 34: uint16(58792), + 35: uint16(58793), + 36: uint16(58794), + 37: uint16(58795), + 38: uint16(58796), + 39: uint16(58797), + 40: uint16(58798), + 41: uint16(58799), + 42: uint16(58800), + 43: uint16(58801), + 44: uint16(58802), + 45: uint16(58803), + 46: uint16(58804), + 47: uint16(58805), + 48: uint16(58806), + 49: uint16(58807), + 50: uint16(58808), + 51: uint16(58809), + 52: uint16(58810), + 53: uint16(58811), + 54: uint16(58812), + 55: uint16(58813), + 56: uint16(58814), + 57: uint16(58815), + 58: uint16(58816), + 59: uint16(58817), + 60: uint16(58818), + 61: uint16(58819), + 62: uint16(58820), + 63: uint16(58821), + 64: uint16(58822), + 65: uint16(58823), + 66: uint16(58824), + 67: uint16(58825), + 68: uint16(58826), + 69: uint16(58827), + 70: uint16(58828), + 71: uint16(58829), + 72: uint16(58830), + 73: uint16(58831), + 74: uint16(58832), + 75: uint16(58833), + 76: uint16(58834), + 77: uint16(58835), + 78: uint16(58836), + 79: uint16(58837), + 80: uint16(58838), + 81: uint16(58839), + 82: uint16(58840), + 83: uint16(58841), + 84: uint16(58842), + 85: uint16(58843), + 86: uint16(58844), + 87: uint16(58845), + 88: uint16(58846), + 89: uint16(58847), + 90: uint16(58848), + 91: uint16(58849), + 92: uint16(58850), + 93: uint16(58851), + 94: uint16(58852), + 95: uint16(58853), + 96: uint16(65281), + 97: uint16(65282), + 98: uint16(65283), + 99: uint16(65509), + 100: uint16(65285), + 101: uint16(65286), + 102: uint16(65287), + 103: uint16(65288), + 104: uint16(65289), + 105: uint16(65290), + 106: uint16(65291), + 107: uint16(65292), + 108: uint16(65293), + 109: uint16(65294), + 110: uint16(65295), + 111: uint16(65296), + 112: uint16(65297), + 113: uint16(65298), + 114: uint16(65299), + 115: uint16(65300), + 116: uint16(65301), + 117: uint16(65302), + 118: uint16(65303), + 119: uint16(65304), + 120: uint16(65305), + 121: uint16(65306), + 122: uint16(65307), + 123: uint16(65308), + 124: uint16(65309), + 125: uint16(65310), + 126: uint16(65311), + 127: uint16(65312), + 128: uint16(65313), + 129: uint16(65314), + 130: uint16(65315), + 131: uint16(65316), + 132: uint16(65317), + 133: uint16(65318), + 134: uint16(65319), + 135: uint16(65320), + 136: uint16(65321), + 137: uint16(65322), + 138: uint16(65323), + 139: uint16(65324), + 140: uint16(65325), + 141: uint16(65326), + 142: uint16(65327), + 143: uint16(65328), + 144: uint16(65329), + 145: uint16(65330), + 146: uint16(65331), + 147: uint16(65332), + 148: uint16(65333), + 149: uint16(65334), + 150: uint16(65335), + 151: uint16(65336), + 152: uint16(65337), + 153: uint16(65338), + 154: uint16(65339), + 155: uint16(65340), + 156: uint16(65341), + 157: uint16(65342), + 158: uint16(65343), + 159: uint16(65344), + 160: uint16(65345), + 161: uint16(65346), + 162: uint16(65347), + 163: uint16(65348), + 164: uint16(65349), + 165: uint16(65350), + 166: uint16(65351), + 167: uint16(65352), + 168: uint16(65353), + 169: uint16(65354), + 170: uint16(65355), + 171: uint16(65356), + 172: uint16(65357), + 173: uint16(65358), + 174: uint16(65359), + 175: uint16(65360), + 176: uint16(65361), + 177: uint16(65362), + 178: uint16(65363), + 179: uint16(65364), + 180: uint16(65365), + 181: uint16(65366), + 182: uint16(65367), + 183: uint16(65368), + 184: uint16(65369), + 185: uint16(65370), + 186: uint16(65371), + 187: uint16(65372), + 188: uint16(65373), + 189: uint16(65507), + }, + 35: { + 0: uint16(58854), + 1: uint16(58855), + 2: uint16(58856), + 3: uint16(58857), + 4: uint16(58858), + 5: uint16(58859), + 6: uint16(58860), + 7: uint16(58861), + 8: uint16(58862), + 9: uint16(58863), + 10: uint16(58864), + 11: uint16(58865), + 12: uint16(58866), + 13: uint16(58867), + 14: uint16(58868), + 15: uint16(58869), + 16: uint16(58870), + 17: uint16(58871), + 18: uint16(58872), + 19: uint16(58873), + 20: uint16(58874), + 21: uint16(58875), + 22: uint16(58876), + 23: uint16(58877), + 24: uint16(58878), + 25: uint16(58879), + 26: uint16(58880), + 27: uint16(58881), + 28: uint16(58882), + 29: uint16(58883), + 30: uint16(58884), + 31: uint16(58885), + 32: uint16(58886), + 33: uint16(58887), + 34: uint16(58888), + 35: uint16(58889), + 36: uint16(58890), + 37: uint16(58891), + 38: uint16(58892), + 39: uint16(58893), + 40: uint16(58894), + 41: uint16(58895), + 42: uint16(58896), + 43: uint16(58897), + 44: uint16(58898), + 45: uint16(58899), + 46: uint16(58900), + 47: uint16(58901), + 48: uint16(58902), + 49: uint16(58903), + 50: uint16(58904), + 51: uint16(58905), + 52: uint16(58906), + 53: uint16(58907), + 54: uint16(58908), + 55: uint16(58909), + 56: uint16(58910), + 57: uint16(58911), + 58: uint16(58912), + 59: uint16(58913), + 60: uint16(58914), + 61: uint16(58915), + 62: uint16(58916), + 63: uint16(58917), + 64: uint16(58918), + 65: uint16(58919), + 66: uint16(58920), + 67: uint16(58921), + 68: uint16(58922), + 69: uint16(58923), + 70: uint16(58924), + 71: uint16(58925), + 72: uint16(58926), + 73: uint16(58927), + 74: uint16(58928), + 75: uint16(58929), + 76: uint16(58930), + 77: uint16(58931), + 78: uint16(58932), + 79: uint16(58933), + 80: uint16(58934), + 81: uint16(58935), + 82: uint16(58936), + 83: uint16(58937), + 84: uint16(58938), + 85: uint16(58939), + 86: uint16(58940), + 87: uint16(58941), + 88: uint16(58942), + 89: uint16(58943), + 90: uint16(58944), + 91: uint16(58945), + 92: uint16(58946), + 93: uint16(58947), + 94: uint16(58948), + 95: uint16(58949), + 96: uint16(12353), + 97: uint16(12354), + 98: uint16(12355), + 99: uint16(12356), + 100: uint16(12357), + 101: uint16(12358), + 102: uint16(12359), + 103: uint16(12360), + 104: uint16(12361), + 105: uint16(12362), + 106: uint16(12363), + 107: uint16(12364), + 108: uint16(12365), + 109: uint16(12366), + 110: uint16(12367), + 111: uint16(12368), + 112: uint16(12369), + 113: uint16(12370), + 114: uint16(12371), + 115: uint16(12372), + 116: uint16(12373), + 117: uint16(12374), + 118: uint16(12375), + 119: uint16(12376), + 120: uint16(12377), + 121: uint16(12378), + 122: uint16(12379), + 123: uint16(12380), + 124: uint16(12381), + 125: uint16(12382), + 126: uint16(12383), + 127: uint16(12384), + 128: uint16(12385), + 129: uint16(12386), + 130: uint16(12387), + 131: uint16(12388), + 132: uint16(12389), + 133: uint16(12390), + 134: uint16(12391), + 135: uint16(12392), + 136: uint16(12393), + 137: uint16(12394), + 138: uint16(12395), + 139: uint16(12396), + 140: uint16(12397), + 141: uint16(12398), + 142: uint16(12399), + 143: uint16(12400), + 144: uint16(12401), + 145: uint16(12402), + 146: uint16(12403), + 147: uint16(12404), + 148: uint16(12405), + 149: uint16(12406), + 150: uint16(12407), + 151: uint16(12408), + 152: uint16(12409), + 153: uint16(12410), + 154: uint16(12411), + 155: uint16(12412), + 156: uint16(12413), + 157: uint16(12414), + 158: uint16(12415), + 159: uint16(12416), + 160: uint16(12417), + 161: uint16(12418), + 162: uint16(12419), + 163: uint16(12420), + 164: uint16(12421), + 165: uint16(12422), + 166: uint16(12423), + 167: uint16(12424), + 168: uint16(12425), + 169: uint16(12426), + 170: uint16(12427), + 171: uint16(12428), + 172: uint16(12429), + 173: uint16(12430), + 174: uint16(12431), + 175: uint16(12432), + 176: uint16(12433), + 177: uint16(12434), + 178: uint16(12435), + 179: uint16(59250), + 180: uint16(59251), + 181: uint16(59252), + 182: uint16(59253), + 183: uint16(59254), + 184: uint16(59255), + 185: uint16(59256), + 186: uint16(59257), + 187: uint16(59258), + 188: uint16(59259), + 189: uint16(59260), + }, + 36: { + 0: uint16(58950), + 1: uint16(58951), + 2: uint16(58952), + 3: uint16(58953), + 4: uint16(58954), + 5: uint16(58955), + 6: uint16(58956), + 7: uint16(58957), + 8: uint16(58958), + 9: uint16(58959), + 10: uint16(58960), + 11: uint16(58961), + 12: uint16(58962), + 13: uint16(58963), + 14: uint16(58964), + 15: uint16(58965), + 16: uint16(58966), + 17: uint16(58967), + 18: uint16(58968), + 19: uint16(58969), + 20: uint16(58970), + 21: uint16(58971), + 22: uint16(58972), + 23: uint16(58973), + 24: uint16(58974), + 25: uint16(58975), + 26: uint16(58976), + 27: uint16(58977), + 28: uint16(58978), + 29: uint16(58979), + 30: uint16(58980), + 31: uint16(58981), + 32: uint16(58982), + 33: uint16(58983), + 34: uint16(58984), + 35: uint16(58985), + 36: uint16(58986), + 37: uint16(58987), + 38: uint16(58988), + 39: uint16(58989), + 40: uint16(58990), + 41: uint16(58991), + 42: uint16(58992), + 43: uint16(58993), + 44: uint16(58994), + 45: uint16(58995), + 46: uint16(58996), + 47: uint16(58997), + 48: uint16(58998), + 49: uint16(58999), + 50: uint16(59000), + 51: uint16(59001), + 52: uint16(59002), + 53: uint16(59003), + 54: uint16(59004), + 55: uint16(59005), + 56: uint16(59006), + 57: uint16(59007), + 58: uint16(59008), + 59: uint16(59009), + 60: uint16(59010), + 61: uint16(59011), + 62: uint16(59012), + 63: uint16(59013), + 64: uint16(59014), + 65: uint16(59015), + 66: uint16(59016), + 67: uint16(59017), + 68: uint16(59018), + 69: uint16(59019), + 70: uint16(59020), + 71: uint16(59021), + 72: uint16(59022), + 73: uint16(59023), + 74: uint16(59024), + 75: uint16(59025), + 76: uint16(59026), + 77: uint16(59027), + 78: uint16(59028), + 79: uint16(59029), + 80: uint16(59030), + 81: uint16(59031), + 82: uint16(59032), + 83: uint16(59033), + 84: uint16(59034), + 85: uint16(59035), + 86: uint16(59036), + 87: uint16(59037), + 88: uint16(59038), + 89: uint16(59039), + 90: uint16(59040), + 91: uint16(59041), + 92: uint16(59042), + 93: uint16(59043), + 94: uint16(59044), + 95: uint16(59045), + 96: uint16(12449), + 97: uint16(12450), + 98: uint16(12451), + 99: uint16(12452), + 100: uint16(12453), + 101: uint16(12454), + 102: uint16(12455), + 103: uint16(12456), + 104: uint16(12457), + 105: uint16(12458), + 106: uint16(12459), + 107: uint16(12460), + 108: uint16(12461), + 109: uint16(12462), + 110: uint16(12463), + 111: uint16(12464), + 112: uint16(12465), + 113: uint16(12466), + 114: uint16(12467), + 115: uint16(12468), + 116: uint16(12469), + 117: uint16(12470), + 118: uint16(12471), + 119: uint16(12472), + 120: uint16(12473), + 121: uint16(12474), + 122: uint16(12475), + 123: uint16(12476), + 124: uint16(12477), + 125: uint16(12478), + 126: uint16(12479), + 127: uint16(12480), + 128: uint16(12481), + 129: uint16(12482), + 130: uint16(12483), + 131: uint16(12484), + 132: uint16(12485), + 133: uint16(12486), + 134: uint16(12487), + 135: uint16(12488), + 136: uint16(12489), + 137: uint16(12490), + 138: uint16(12491), + 139: uint16(12492), + 140: uint16(12493), + 141: uint16(12494), + 142: uint16(12495), + 143: uint16(12496), + 144: uint16(12497), + 145: uint16(12498), + 146: uint16(12499), + 147: uint16(12500), + 148: uint16(12501), + 149: uint16(12502), + 150: uint16(12503), + 151: uint16(12504), + 152: uint16(12505), + 153: uint16(12506), + 154: uint16(12507), + 155: uint16(12508), + 156: uint16(12509), + 157: uint16(12510), + 158: uint16(12511), + 159: uint16(12512), + 160: uint16(12513), + 161: uint16(12514), + 162: uint16(12515), + 163: uint16(12516), + 164: uint16(12517), + 165: uint16(12518), + 166: uint16(12519), + 167: uint16(12520), + 168: uint16(12521), + 169: uint16(12522), + 170: uint16(12523), + 171: uint16(12524), + 172: uint16(12525), + 173: uint16(12526), + 174: uint16(12527), + 175: uint16(12528), + 176: uint16(12529), + 177: uint16(12530), + 178: uint16(12531), + 179: uint16(12532), + 180: uint16(12533), + 181: uint16(12534), + 182: uint16(59261), + 183: uint16(59262), + 184: uint16(59263), + 185: uint16(59264), + 186: uint16(59265), + 187: uint16(59266), + 188: uint16(59267), + 189: uint16(59268), + }, + 37: { + 0: uint16(59046), + 1: uint16(59047), + 2: uint16(59048), + 3: uint16(59049), + 4: uint16(59050), + 5: uint16(59051), + 6: uint16(59052), + 7: uint16(59053), + 8: uint16(59054), + 9: uint16(59055), + 10: uint16(59056), + 11: uint16(59057), + 12: uint16(59058), + 13: uint16(59059), + 14: uint16(59060), + 15: uint16(59061), + 16: uint16(59062), + 17: uint16(59063), + 18: uint16(59064), + 19: uint16(59065), + 20: uint16(59066), + 21: uint16(59067), + 22: uint16(59068), + 23: uint16(59069), + 24: uint16(59070), + 25: uint16(59071), + 26: uint16(59072), + 27: uint16(59073), + 28: uint16(59074), + 29: uint16(59075), + 30: uint16(59076), + 31: uint16(59077), + 32: uint16(59078), + 33: uint16(59079), + 34: uint16(59080), + 35: uint16(59081), + 36: uint16(59082), + 37: uint16(59083), + 38: uint16(59084), + 39: uint16(59085), + 40: uint16(59086), + 41: uint16(59087), + 42: uint16(59088), + 43: uint16(59089), + 44: uint16(59090), + 45: uint16(59091), + 46: uint16(59092), + 47: uint16(59093), + 48: uint16(59094), + 49: uint16(59095), + 50: uint16(59096), + 51: uint16(59097), + 52: uint16(59098), + 53: uint16(59099), + 54: uint16(59100), + 55: uint16(59101), + 56: uint16(59102), + 57: uint16(59103), + 58: uint16(59104), + 59: uint16(59105), + 60: uint16(59106), + 61: uint16(59107), + 62: uint16(59108), + 63: uint16(59109), + 64: uint16(59110), + 65: uint16(59111), + 66: uint16(59112), + 67: uint16(59113), + 68: uint16(59114), + 69: uint16(59115), + 70: uint16(59116), + 71: uint16(59117), + 72: uint16(59118), + 73: uint16(59119), + 74: uint16(59120), + 75: uint16(59121), + 76: uint16(59122), + 77: uint16(59123), + 78: uint16(59124), + 79: uint16(59125), + 80: uint16(59126), + 81: uint16(59127), + 82: uint16(59128), + 83: uint16(59129), + 84: uint16(59130), + 85: uint16(59131), + 86: uint16(59132), + 87: uint16(59133), + 88: uint16(59134), + 89: uint16(59135), + 90: uint16(59136), + 91: uint16(59137), + 92: uint16(59138), + 93: uint16(59139), + 94: uint16(59140), + 95: uint16(59141), + 96: uint16(913), + 97: uint16(914), + 98: uint16(915), + 99: uint16(916), + 100: uint16(917), + 101: uint16(918), + 102: uint16(919), + 103: uint16(920), + 104: uint16(921), + 105: uint16(922), + 106: uint16(923), + 107: uint16(924), + 108: uint16(925), + 109: uint16(926), + 110: uint16(927), + 111: uint16(928), + 112: uint16(929), + 113: uint16(931), + 114: uint16(932), + 115: uint16(933), + 116: uint16(934), + 117: uint16(935), + 118: uint16(936), + 119: uint16(937), + 120: uint16(59269), + 121: uint16(59270), + 122: uint16(59271), + 123: uint16(59272), + 124: uint16(59273), + 125: uint16(59274), + 126: uint16(59275), + 127: uint16(59276), + 128: uint16(945), + 129: uint16(946), + 130: uint16(947), + 131: uint16(948), + 132: uint16(949), + 133: uint16(950), + 134: uint16(951), + 135: uint16(952), + 136: uint16(953), + 137: uint16(954), + 138: uint16(955), + 139: uint16(956), + 140: uint16(957), + 141: uint16(958), + 142: uint16(959), + 143: uint16(960), + 144: uint16(961), + 145: uint16(963), + 146: uint16(964), + 147: uint16(965), + 148: uint16(966), + 149: uint16(967), + 150: uint16(968), + 151: uint16(969), + 152: uint16(59277), + 153: uint16(59278), + 154: uint16(59279), + 155: uint16(59280), + 156: uint16(59281), + 157: uint16(59282), + 158: uint16(59283), + 159: uint16(65077), + 160: uint16(65078), + 161: uint16(65081), + 162: uint16(65082), + 163: uint16(65087), + 164: uint16(65088), + 165: uint16(65085), + 166: uint16(65086), + 167: uint16(65089), + 168: uint16(65090), + 169: uint16(65091), + 170: uint16(65092), + 171: uint16(59284), + 172: uint16(59285), + 173: uint16(65083), + 174: uint16(65084), + 175: uint16(65079), + 176: uint16(65080), + 177: uint16(65073), + 178: uint16(59286), + 179: uint16(65075), + 180: uint16(65076), + 181: uint16(59287), + 182: uint16(59288), + 183: uint16(59289), + 184: uint16(59290), + 185: uint16(59291), + 186: uint16(59292), + 187: uint16(59293), + 188: uint16(59294), + 189: uint16(59295), + }, + 38: { + 0: uint16(59142), + 1: uint16(59143), + 2: uint16(59144), + 3: uint16(59145), + 4: uint16(59146), + 5: uint16(59147), + 6: uint16(59148), + 7: uint16(59149), + 8: uint16(59150), + 9: uint16(59151), + 10: uint16(59152), + 11: uint16(59153), + 12: uint16(59154), + 13: uint16(59155), + 14: uint16(59156), + 15: uint16(59157), + 16: uint16(59158), + 17: uint16(59159), + 18: uint16(59160), + 19: uint16(59161), + 20: uint16(59162), + 21: uint16(59163), + 22: uint16(59164), + 23: uint16(59165), + 24: uint16(59166), + 25: uint16(59167), + 26: uint16(59168), + 27: uint16(59169), + 28: uint16(59170), + 29: uint16(59171), + 30: uint16(59172), + 31: uint16(59173), + 32: uint16(59174), + 33: uint16(59175), + 34: uint16(59176), + 35: uint16(59177), + 36: uint16(59178), + 37: uint16(59179), + 38: uint16(59180), + 39: uint16(59181), + 40: uint16(59182), + 41: uint16(59183), + 42: uint16(59184), + 43: uint16(59185), + 44: uint16(59186), + 45: uint16(59187), + 46: uint16(59188), + 47: uint16(59189), + 48: uint16(59190), + 49: uint16(59191), + 50: uint16(59192), + 51: uint16(59193), + 52: uint16(59194), + 53: uint16(59195), + 54: uint16(59196), + 55: uint16(59197), + 56: uint16(59198), + 57: uint16(59199), + 58: uint16(59200), + 59: uint16(59201), + 60: uint16(59202), + 61: uint16(59203), + 62: uint16(59204), + 63: uint16(59205), + 64: uint16(59206), + 65: uint16(59207), + 66: uint16(59208), + 67: uint16(59209), + 68: uint16(59210), + 69: uint16(59211), + 70: uint16(59212), + 71: uint16(59213), + 72: uint16(59214), + 73: uint16(59215), + 74: uint16(59216), + 75: uint16(59217), + 76: uint16(59218), + 77: uint16(59219), + 78: uint16(59220), + 79: uint16(59221), + 80: uint16(59222), + 81: uint16(59223), + 82: uint16(59224), + 83: uint16(59225), + 84: uint16(59226), + 85: uint16(59227), + 86: uint16(59228), + 87: uint16(59229), + 88: uint16(59230), + 89: uint16(59231), + 90: uint16(59232), + 91: uint16(59233), + 92: uint16(59234), + 93: uint16(59235), + 94: uint16(59236), + 95: uint16(59237), + 96: uint16(1040), + 97: uint16(1041), + 98: uint16(1042), + 99: uint16(1043), + 100: uint16(1044), + 101: uint16(1045), + 102: uint16(1025), + 103: uint16(1046), + 104: uint16(1047), + 105: uint16(1048), + 106: uint16(1049), + 107: uint16(1050), + 108: uint16(1051), + 109: uint16(1052), + 110: uint16(1053), + 111: uint16(1054), + 112: uint16(1055), + 113: uint16(1056), + 114: uint16(1057), + 115: uint16(1058), + 116: uint16(1059), + 117: uint16(1060), + 118: uint16(1061), + 119: uint16(1062), + 120: uint16(1063), + 121: uint16(1064), + 122: uint16(1065), + 123: uint16(1066), + 124: uint16(1067), + 125: uint16(1068), + 126: uint16(1069), + 127: uint16(1070), + 128: uint16(1071), + 129: uint16(59296), + 130: uint16(59297), + 131: uint16(59298), + 132: uint16(59299), + 133: uint16(59300), + 134: uint16(59301), + 135: uint16(59302), + 136: uint16(59303), + 137: uint16(59304), + 138: uint16(59305), + 139: uint16(59306), + 140: uint16(59307), + 141: uint16(59308), + 142: uint16(59309), + 143: uint16(59310), + 144: uint16(1072), + 145: uint16(1073), + 146: uint16(1074), + 147: uint16(1075), + 148: uint16(1076), + 149: uint16(1077), + 150: uint16(1105), + 151: uint16(1078), + 152: uint16(1079), + 153: uint16(1080), + 154: uint16(1081), + 155: uint16(1082), + 156: uint16(1083), + 157: uint16(1084), + 158: uint16(1085), + 159: uint16(1086), + 160: uint16(1087), + 161: uint16(1088), + 162: uint16(1089), + 163: uint16(1090), + 164: uint16(1091), + 165: uint16(1092), + 166: uint16(1093), + 167: uint16(1094), + 168: uint16(1095), + 169: uint16(1096), + 170: uint16(1097), + 171: uint16(1098), + 172: uint16(1099), + 173: uint16(1100), + 174: uint16(1101), + 175: uint16(1102), + 176: uint16(1103), + 177: uint16(59311), + 178: uint16(59312), + 179: uint16(59313), + 180: uint16(59314), + 181: uint16(59315), + 182: uint16(59316), + 183: uint16(59317), + 184: uint16(59318), + 185: uint16(59319), + 186: uint16(59320), + 187: uint16(59321), + 188: uint16(59322), + 189: uint16(59323), + }, + 39: { + 0: uint16(714), + 1: uint16(715), + 2: uint16(729), + 3: uint16(8211), + 4: uint16(8213), + 5: uint16(8229), + 6: uint16(8245), + 7: uint16(8453), + 8: uint16(8457), + 9: uint16(8598), + 10: uint16(8599), + 11: uint16(8600), + 12: uint16(8601), + 13: uint16(8725), + 14: uint16(8735), + 15: uint16(8739), + 16: uint16(8786), + 17: uint16(8806), + 18: uint16(8807), + 19: uint16(8895), + 20: uint16(9552), + 21: uint16(9553), + 22: uint16(9554), + 23: uint16(9555), + 24: uint16(9556), + 25: uint16(9557), + 26: uint16(9558), + 27: uint16(9559), + 28: uint16(9560), + 29: uint16(9561), + 30: uint16(9562), + 31: uint16(9563), + 32: uint16(9564), + 33: uint16(9565), + 34: uint16(9566), + 35: uint16(9567), + 36: uint16(9568), + 37: uint16(9569), + 38: uint16(9570), + 39: uint16(9571), + 40: uint16(9572), + 41: uint16(9573), + 42: uint16(9574), + 43: uint16(9575), + 44: uint16(9576), + 45: uint16(9577), + 46: uint16(9578), + 47: uint16(9579), + 48: uint16(9580), + 49: uint16(9581), + 50: uint16(9582), + 51: uint16(9583), + 52: uint16(9584), + 53: uint16(9585), + 54: uint16(9586), + 55: uint16(9587), + 56: uint16(9601), + 57: uint16(9602), + 58: uint16(9603), + 59: uint16(9604), + 60: uint16(9605), + 61: uint16(9606), + 62: uint16(9607), + 63: uint16(9608), + 64: uint16(9609), + 65: uint16(9610), + 66: uint16(9611), + 67: uint16(9612), + 68: uint16(9613), + 69: uint16(9614), + 70: uint16(9615), + 71: uint16(9619), + 72: uint16(9620), + 73: uint16(9621), + 74: uint16(9660), + 75: uint16(9661), + 76: uint16(9698), + 77: uint16(9699), + 78: uint16(9700), + 79: uint16(9701), + 80: uint16(9737), + 81: uint16(8853), + 82: uint16(12306), + 83: uint16(12317), + 84: uint16(12318), + 85: uint16(59324), + 86: uint16(59325), + 87: uint16(59326), + 88: uint16(59327), + 89: uint16(59328), + 90: uint16(59329), + 91: uint16(59330), + 92: uint16(59331), + 93: uint16(59332), + 94: uint16(59333), + 95: uint16(59334), + 96: uint16(257), + 97: uint16(225), + 98: uint16(462), + 99: uint16(224), + 100: uint16(275), + 101: uint16(233), + 102: uint16(283), + 103: uint16(232), + 104: uint16(299), + 105: uint16(237), + 106: uint16(464), + 107: uint16(236), + 108: uint16(333), + 109: uint16(243), + 110: uint16(466), + 111: uint16(242), + 112: uint16(363), + 113: uint16(250), + 114: uint16(468), + 115: uint16(249), + 116: uint16(470), + 117: uint16(472), + 118: uint16(474), + 119: uint16(476), + 120: uint16(252), + 121: uint16(234), + 122: uint16(593), + 123: uint16(59335), + 124: uint16(324), + 125: uint16(328), + 126: uint16(505), + 127: uint16(609), + 128: uint16(59337), + 129: uint16(59338), + 130: uint16(59339), + 131: uint16(59340), + 132: uint16(12549), + 133: uint16(12550), + 134: uint16(12551), + 135: uint16(12552), + 136: uint16(12553), + 137: uint16(12554), + 138: uint16(12555), + 139: uint16(12556), + 140: uint16(12557), + 141: uint16(12558), + 142: uint16(12559), + 143: uint16(12560), + 144: uint16(12561), + 145: uint16(12562), + 146: uint16(12563), + 147: uint16(12564), + 148: uint16(12565), + 149: uint16(12566), + 150: uint16(12567), + 151: uint16(12568), + 152: uint16(12569), + 153: uint16(12570), + 154: uint16(12571), + 155: uint16(12572), + 156: uint16(12573), + 157: uint16(12574), + 158: uint16(12575), + 159: uint16(12576), + 160: uint16(12577), + 161: uint16(12578), + 162: uint16(12579), + 163: uint16(12580), + 164: uint16(12581), + 165: uint16(12582), + 166: uint16(12583), + 167: uint16(12584), + 168: uint16(12585), + 169: uint16(59341), + 170: uint16(59342), + 171: uint16(59343), + 172: uint16(59344), + 173: uint16(59345), + 174: uint16(59346), + 175: uint16(59347), + 176: uint16(59348), + 177: uint16(59349), + 178: uint16(59350), + 179: uint16(59351), + 180: uint16(59352), + 181: uint16(59353), + 182: uint16(59354), + 183: uint16(59355), + 184: uint16(59356), + 185: uint16(59357), + 186: uint16(59358), + 187: uint16(59359), + 188: uint16(59360), + 189: uint16(59361), + }, + 40: { + 0: uint16(12321), + 1: uint16(12322), + 2: uint16(12323), + 3: uint16(12324), + 4: uint16(12325), + 5: uint16(12326), + 6: uint16(12327), + 7: uint16(12328), + 8: uint16(12329), + 9: uint16(12963), + 10: uint16(13198), + 11: uint16(13199), + 12: uint16(13212), + 13: uint16(13213), + 14: uint16(13214), + 15: uint16(13217), + 16: uint16(13252), + 17: uint16(13262), + 18: uint16(13265), + 19: uint16(13266), + 20: uint16(13269), + 21: uint16(65072), + 22: uint16(65506), + 23: uint16(65508), + 24: uint16(59362), + 25: uint16(8481), + 26: uint16(12849), + 27: uint16(59363), + 28: uint16(8208), + 29: uint16(59364), + 30: uint16(59365), + 31: uint16(59366), + 32: uint16(12540), + 33: uint16(12443), + 34: uint16(12444), + 35: uint16(12541), + 36: uint16(12542), + 37: uint16(12294), + 38: uint16(12445), + 39: uint16(12446), + 40: uint16(65097), + 41: uint16(65098), + 42: uint16(65099), + 43: uint16(65100), + 44: uint16(65101), + 45: uint16(65102), + 46: uint16(65103), + 47: uint16(65104), + 48: uint16(65105), + 49: uint16(65106), + 50: uint16(65108), + 51: uint16(65109), + 52: uint16(65110), + 53: uint16(65111), + 54: uint16(65113), + 55: uint16(65114), + 56: uint16(65115), + 57: uint16(65116), + 58: uint16(65117), + 59: uint16(65118), + 60: uint16(65119), + 61: uint16(65120), + 62: uint16(65121), + 63: uint16(65122), + 64: uint16(65123), + 65: uint16(65124), + 66: uint16(65125), + 67: uint16(65126), + 68: uint16(65128), + 69: uint16(65129), + 70: uint16(65130), + 71: uint16(65131), + 72: uint16(12350), + 73: uint16(12272), + 74: uint16(12273), + 75: uint16(12274), + 76: uint16(12275), + 77: uint16(12276), + 78: uint16(12277), + 79: uint16(12278), + 80: uint16(12279), + 81: uint16(12280), + 82: uint16(12281), + 83: uint16(12282), + 84: uint16(12283), + 85: uint16(12295), + 86: uint16(59380), + 87: uint16(59381), + 88: uint16(59382), + 89: uint16(59383), + 90: uint16(59384), + 91: uint16(59385), + 92: uint16(59386), + 93: uint16(59387), + 94: uint16(59388), + 95: uint16(59389), + 96: uint16(59390), + 97: uint16(59391), + 98: uint16(59392), + 99: uint16(9472), + 100: uint16(9473), + 101: uint16(9474), + 102: uint16(9475), + 103: uint16(9476), + 104: uint16(9477), + 105: uint16(9478), + 106: uint16(9479), + 107: uint16(9480), + 108: uint16(9481), + 109: uint16(9482), + 110: uint16(9483), + 111: uint16(9484), + 112: uint16(9485), + 113: uint16(9486), + 114: uint16(9487), + 115: uint16(9488), + 116: uint16(9489), + 117: uint16(9490), + 118: uint16(9491), + 119: uint16(9492), + 120: uint16(9493), + 121: uint16(9494), + 122: uint16(9495), + 123: uint16(9496), + 124: uint16(9497), + 125: uint16(9498), + 126: uint16(9499), + 127: uint16(9500), + 128: uint16(9501), + 129: uint16(9502), + 130: uint16(9503), + 131: uint16(9504), + 132: uint16(9505), + 133: uint16(9506), + 134: uint16(9507), + 135: uint16(9508), + 136: uint16(9509), + 137: uint16(9510), + 138: uint16(9511), + 139: uint16(9512), + 140: uint16(9513), + 141: uint16(9514), + 142: uint16(9515), + 143: uint16(9516), + 144: uint16(9517), + 145: uint16(9518), + 146: uint16(9519), + 147: uint16(9520), + 148: uint16(9521), + 149: uint16(9522), + 150: uint16(9523), + 151: uint16(9524), + 152: uint16(9525), + 153: uint16(9526), + 154: uint16(9527), + 155: uint16(9528), + 156: uint16(9529), + 157: uint16(9530), + 158: uint16(9531), + 159: uint16(9532), + 160: uint16(9533), + 161: uint16(9534), + 162: uint16(9535), + 163: uint16(9536), + 164: uint16(9537), + 165: uint16(9538), + 166: uint16(9539), + 167: uint16(9540), + 168: uint16(9541), + 169: uint16(9542), + 170: uint16(9543), + 171: uint16(9544), + 172: uint16(9545), + 173: uint16(9546), + 174: uint16(9547), + 175: uint16(59393), + 176: uint16(59394), + 177: uint16(59395), + 178: uint16(59396), + 179: uint16(59397), + 180: uint16(59398), + 181: uint16(59399), + 182: uint16(59400), + 183: uint16(59401), + 184: uint16(59402), + 185: uint16(59403), + 186: uint16(59404), + 187: uint16(59405), + 188: uint16(59406), + 189: uint16(59407), + }, + 41: { + 0: uint16(29404), + 1: uint16(29405), + 2: uint16(29407), + 3: uint16(29410), + 4: uint16(29411), + 5: uint16(29412), + 6: uint16(29413), + 7: uint16(29414), + 8: uint16(29415), + 9: uint16(29418), + 10: uint16(29419), + 11: uint16(29429), + 12: uint16(29430), + 13: uint16(29433), + 14: uint16(29437), + 15: uint16(29438), + 16: uint16(29439), + 17: uint16(29440), + 18: uint16(29442), + 19: uint16(29444), + 20: uint16(29445), + 21: uint16(29446), + 22: uint16(29447), + 23: uint16(29448), + 24: uint16(29449), + 25: uint16(29451), + 26: uint16(29452), + 27: uint16(29453), + 28: uint16(29455), + 29: uint16(29456), + 30: uint16(29457), + 31: uint16(29458), + 32: uint16(29460), + 33: uint16(29464), + 34: uint16(29465), + 35: uint16(29466), + 36: uint16(29471), + 37: uint16(29472), + 38: uint16(29475), + 39: uint16(29476), + 40: uint16(29478), + 41: uint16(29479), + 42: uint16(29480), + 43: uint16(29485), + 44: uint16(29487), + 45: uint16(29488), + 46: uint16(29490), + 47: uint16(29491), + 48: uint16(29493), + 49: uint16(29494), + 50: uint16(29498), + 51: uint16(29499), + 52: uint16(29500), + 53: uint16(29501), + 54: uint16(29504), + 55: uint16(29505), + 56: uint16(29506), + 57: uint16(29507), + 58: uint16(29508), + 59: uint16(29509), + 60: uint16(29510), + 61: uint16(29511), + 62: uint16(29512), + 63: uint16(29513), + 64: uint16(29514), + 65: uint16(29515), + 66: uint16(29516), + 67: uint16(29518), + 68: uint16(29519), + 69: uint16(29521), + 70: uint16(29523), + 71: uint16(29524), + 72: uint16(29525), + 73: uint16(29526), + 74: uint16(29528), + 75: uint16(29529), + 76: uint16(29530), + 77: uint16(29531), + 78: uint16(29532), + 79: uint16(29533), + 80: uint16(29534), + 81: uint16(29535), + 82: uint16(29537), + 83: uint16(29538), + 84: uint16(29539), + 85: uint16(29540), + 86: uint16(29541), + 87: uint16(29542), + 88: uint16(29543), + 89: uint16(29544), + 90: uint16(29545), + 91: uint16(29546), + 92: uint16(29547), + 93: uint16(29550), + 94: uint16(29552), + 95: uint16(29553), + 96: uint16(57344), + 97: uint16(57345), + 98: uint16(57346), + 99: uint16(57347), + 100: uint16(57348), + 101: uint16(57349), + 102: uint16(57350), + 103: uint16(57351), + 104: uint16(57352), + 105: uint16(57353), + 106: uint16(57354), + 107: uint16(57355), + 108: uint16(57356), + 109: uint16(57357), + 110: uint16(57358), + 111: uint16(57359), + 112: uint16(57360), + 113: uint16(57361), + 114: uint16(57362), + 115: uint16(57363), + 116: uint16(57364), + 117: uint16(57365), + 118: uint16(57366), + 119: uint16(57367), + 120: uint16(57368), + 121: uint16(57369), + 122: uint16(57370), + 123: uint16(57371), + 124: uint16(57372), + 125: uint16(57373), + 126: uint16(57374), + 127: uint16(57375), + 128: uint16(57376), + 129: uint16(57377), + 130: uint16(57378), + 131: uint16(57379), + 132: uint16(57380), + 133: uint16(57381), + 134: uint16(57382), + 135: uint16(57383), + 136: uint16(57384), + 137: uint16(57385), + 138: uint16(57386), + 139: uint16(57387), + 140: uint16(57388), + 141: uint16(57389), + 142: uint16(57390), + 143: uint16(57391), + 144: uint16(57392), + 145: uint16(57393), + 146: uint16(57394), + 147: uint16(57395), + 148: uint16(57396), + 149: uint16(57397), + 150: uint16(57398), + 151: uint16(57399), + 152: uint16(57400), + 153: uint16(57401), + 154: uint16(57402), + 155: uint16(57403), + 156: uint16(57404), + 157: uint16(57405), + 158: uint16(57406), + 159: uint16(57407), + 160: uint16(57408), + 161: uint16(57409), + 162: uint16(57410), + 163: uint16(57411), + 164: uint16(57412), + 165: uint16(57413), + 166: uint16(57414), + 167: uint16(57415), + 168: uint16(57416), + 169: uint16(57417), + 170: uint16(57418), + 171: uint16(57419), + 172: uint16(57420), + 173: uint16(57421), + 174: uint16(57422), + 175: uint16(57423), + 176: uint16(57424), + 177: uint16(57425), + 178: uint16(57426), + 179: uint16(57427), + 180: uint16(57428), + 181: uint16(57429), + 182: uint16(57430), + 183: uint16(57431), + 184: uint16(57432), + 185: uint16(57433), + 186: uint16(57434), + 187: uint16(57435), + 188: uint16(57436), + 189: uint16(57437), + }, + 42: { + 0: uint16(29554), + 1: uint16(29555), + 2: uint16(29556), + 3: uint16(29557), + 4: uint16(29558), + 5: uint16(29559), + 6: uint16(29560), + 7: uint16(29561), + 8: uint16(29562), + 9: uint16(29563), + 10: uint16(29564), + 11: uint16(29565), + 12: uint16(29567), + 13: uint16(29568), + 14: uint16(29569), + 15: uint16(29570), + 16: uint16(29571), + 17: uint16(29573), + 18: uint16(29574), + 19: uint16(29576), + 20: uint16(29578), + 21: uint16(29580), + 22: uint16(29581), + 23: uint16(29583), + 24: uint16(29584), + 25: uint16(29586), + 26: uint16(29587), + 27: uint16(29588), + 28: uint16(29589), + 29: uint16(29591), + 30: uint16(29592), + 31: uint16(29593), + 32: uint16(29594), + 33: uint16(29596), + 34: uint16(29597), + 35: uint16(29598), + 36: uint16(29600), + 37: uint16(29601), + 38: uint16(29603), + 39: uint16(29604), + 40: uint16(29605), + 41: uint16(29606), + 42: uint16(29607), + 43: uint16(29608), + 44: uint16(29610), + 45: uint16(29612), + 46: uint16(29613), + 47: uint16(29617), + 48: uint16(29620), + 49: uint16(29621), + 50: uint16(29622), + 51: uint16(29624), + 52: uint16(29625), + 53: uint16(29628), + 54: uint16(29629), + 55: uint16(29630), + 56: uint16(29631), + 57: uint16(29633), + 58: uint16(29635), + 59: uint16(29636), + 60: uint16(29637), + 61: uint16(29638), + 62: uint16(29639), + 63: uint16(29643), + 64: uint16(29644), + 65: uint16(29646), + 66: uint16(29650), + 67: uint16(29651), + 68: uint16(29652), + 69: uint16(29653), + 70: uint16(29654), + 71: uint16(29655), + 72: uint16(29656), + 73: uint16(29658), + 74: uint16(29659), + 75: uint16(29660), + 76: uint16(29661), + 77: uint16(29663), + 78: uint16(29665), + 79: uint16(29666), + 80: uint16(29667), + 81: uint16(29668), + 82: uint16(29670), + 83: uint16(29672), + 84: uint16(29674), + 85: uint16(29675), + 86: uint16(29676), + 87: uint16(29678), + 88: uint16(29679), + 89: uint16(29680), + 90: uint16(29681), + 91: uint16(29683), + 92: uint16(29684), + 93: uint16(29685), + 94: uint16(29686), + 95: uint16(29687), + 96: uint16(57438), + 97: uint16(57439), + 98: uint16(57440), + 99: uint16(57441), + 100: uint16(57442), + 101: uint16(57443), + 102: uint16(57444), + 103: uint16(57445), + 104: uint16(57446), + 105: uint16(57447), + 106: uint16(57448), + 107: uint16(57449), + 108: uint16(57450), + 109: uint16(57451), + 110: uint16(57452), + 111: uint16(57453), + 112: uint16(57454), + 113: uint16(57455), + 114: uint16(57456), + 115: uint16(57457), + 116: uint16(57458), + 117: uint16(57459), + 118: uint16(57460), + 119: uint16(57461), + 120: uint16(57462), + 121: uint16(57463), + 122: uint16(57464), + 123: uint16(57465), + 124: uint16(57466), + 125: uint16(57467), + 126: uint16(57468), + 127: uint16(57469), + 128: uint16(57470), + 129: uint16(57471), + 130: uint16(57472), + 131: uint16(57473), + 132: uint16(57474), + 133: uint16(57475), + 134: uint16(57476), + 135: uint16(57477), + 136: uint16(57478), + 137: uint16(57479), + 138: uint16(57480), + 139: uint16(57481), + 140: uint16(57482), + 141: uint16(57483), + 142: uint16(57484), + 143: uint16(57485), + 144: uint16(57486), + 145: uint16(57487), + 146: uint16(57488), + 147: uint16(57489), + 148: uint16(57490), + 149: uint16(57491), + 150: uint16(57492), + 151: uint16(57493), + 152: uint16(57494), + 153: uint16(57495), + 154: uint16(57496), + 155: uint16(57497), + 156: uint16(57498), + 157: uint16(57499), + 158: uint16(57500), + 159: uint16(57501), + 160: uint16(57502), + 161: uint16(57503), + 162: uint16(57504), + 163: uint16(57505), + 164: uint16(57506), + 165: uint16(57507), + 166: uint16(57508), + 167: uint16(57509), + 168: uint16(57510), + 169: uint16(57511), + 170: uint16(57512), + 171: uint16(57513), + 172: uint16(57514), + 173: uint16(57515), + 174: uint16(57516), + 175: uint16(57517), + 176: uint16(57518), + 177: uint16(57519), + 178: uint16(57520), + 179: uint16(57521), + 180: uint16(57522), + 181: uint16(57523), + 182: uint16(57524), + 183: uint16(57525), + 184: uint16(57526), + 185: uint16(57527), + 186: uint16(57528), + 187: uint16(57529), + 188: uint16(57530), + 189: uint16(57531), + }, + 43: { + 0: uint16(29688), + 1: uint16(29689), + 2: uint16(29690), + 3: uint16(29691), + 4: uint16(29692), + 5: uint16(29693), + 6: uint16(29694), + 7: uint16(29695), + 8: uint16(29696), + 9: uint16(29697), + 10: uint16(29698), + 11: uint16(29700), + 12: uint16(29703), + 13: uint16(29704), + 14: uint16(29707), + 15: uint16(29708), + 16: uint16(29709), + 17: uint16(29710), + 18: uint16(29713), + 19: uint16(29714), + 20: uint16(29715), + 21: uint16(29716), + 22: uint16(29717), + 23: uint16(29718), + 24: uint16(29719), + 25: uint16(29720), + 26: uint16(29721), + 27: uint16(29724), + 28: uint16(29725), + 29: uint16(29726), + 30: uint16(29727), + 31: uint16(29728), + 32: uint16(29729), + 33: uint16(29731), + 34: uint16(29732), + 35: uint16(29735), + 36: uint16(29737), + 37: uint16(29739), + 38: uint16(29741), + 39: uint16(29743), + 40: uint16(29745), + 41: uint16(29746), + 42: uint16(29751), + 43: uint16(29752), + 44: uint16(29753), + 45: uint16(29754), + 46: uint16(29755), + 47: uint16(29757), + 48: uint16(29758), + 49: uint16(29759), + 50: uint16(29760), + 51: uint16(29762), + 52: uint16(29763), + 53: uint16(29764), + 54: uint16(29765), + 55: uint16(29766), + 56: uint16(29767), + 57: uint16(29768), + 58: uint16(29769), + 59: uint16(29770), + 60: uint16(29771), + 61: uint16(29772), + 62: uint16(29773), + 63: uint16(29774), + 64: uint16(29775), + 65: uint16(29776), + 66: uint16(29777), + 67: uint16(29778), + 68: uint16(29779), + 69: uint16(29780), + 70: uint16(29782), + 71: uint16(29784), + 72: uint16(29789), + 73: uint16(29792), + 74: uint16(29793), + 75: uint16(29794), + 76: uint16(29795), + 77: uint16(29796), + 78: uint16(29797), + 79: uint16(29798), + 80: uint16(29799), + 81: uint16(29800), + 82: uint16(29801), + 83: uint16(29802), + 84: uint16(29803), + 85: uint16(29804), + 86: uint16(29806), + 87: uint16(29807), + 88: uint16(29809), + 89: uint16(29810), + 90: uint16(29811), + 91: uint16(29812), + 92: uint16(29813), + 93: uint16(29816), + 94: uint16(29817), + 95: uint16(29818), + 96: uint16(57532), + 97: uint16(57533), + 98: uint16(57534), + 99: uint16(57535), + 100: uint16(57536), + 101: uint16(57537), + 102: uint16(57538), + 103: uint16(57539), + 104: uint16(57540), + 105: uint16(57541), + 106: uint16(57542), + 107: uint16(57543), + 108: uint16(57544), + 109: uint16(57545), + 110: uint16(57546), + 111: uint16(57547), + 112: uint16(57548), + 113: uint16(57549), + 114: uint16(57550), + 115: uint16(57551), + 116: uint16(57552), + 117: uint16(57553), + 118: uint16(57554), + 119: uint16(57555), + 120: uint16(57556), + 121: uint16(57557), + 122: uint16(57558), + 123: uint16(57559), + 124: uint16(57560), + 125: uint16(57561), + 126: uint16(57562), + 127: uint16(57563), + 128: uint16(57564), + 129: uint16(57565), + 130: uint16(57566), + 131: uint16(57567), + 132: uint16(57568), + 133: uint16(57569), + 134: uint16(57570), + 135: uint16(57571), + 136: uint16(57572), + 137: uint16(57573), + 138: uint16(57574), + 139: uint16(57575), + 140: uint16(57576), + 141: uint16(57577), + 142: uint16(57578), + 143: uint16(57579), + 144: uint16(57580), + 145: uint16(57581), + 146: uint16(57582), + 147: uint16(57583), + 148: uint16(57584), + 149: uint16(57585), + 150: uint16(57586), + 151: uint16(57587), + 152: uint16(57588), + 153: uint16(57589), + 154: uint16(57590), + 155: uint16(57591), + 156: uint16(57592), + 157: uint16(57593), + 158: uint16(57594), + 159: uint16(57595), + 160: uint16(57596), + 161: uint16(57597), + 162: uint16(57598), + 163: uint16(57599), + 164: uint16(57600), + 165: uint16(57601), + 166: uint16(57602), + 167: uint16(57603), + 168: uint16(57604), + 169: uint16(57605), + 170: uint16(57606), + 171: uint16(57607), + 172: uint16(57608), + 173: uint16(57609), + 174: uint16(57610), + 175: uint16(57611), + 176: uint16(57612), + 177: uint16(57613), + 178: uint16(57614), + 179: uint16(57615), + 180: uint16(57616), + 181: uint16(57617), + 182: uint16(57618), + 183: uint16(57619), + 184: uint16(57620), + 185: uint16(57621), + 186: uint16(57622), + 187: uint16(57623), + 188: uint16(57624), + 189: uint16(57625), + }, + 44: { + 0: uint16(29819), + 1: uint16(29820), + 2: uint16(29821), + 3: uint16(29823), + 4: uint16(29826), + 5: uint16(29828), + 6: uint16(29829), + 7: uint16(29830), + 8: uint16(29832), + 9: uint16(29833), + 10: uint16(29834), + 11: uint16(29836), + 12: uint16(29837), + 13: uint16(29839), + 14: uint16(29841), + 15: uint16(29842), + 16: uint16(29843), + 17: uint16(29844), + 18: uint16(29845), + 19: uint16(29846), + 20: uint16(29847), + 21: uint16(29848), + 22: uint16(29849), + 23: uint16(29850), + 24: uint16(29851), + 25: uint16(29853), + 26: uint16(29855), + 27: uint16(29856), + 28: uint16(29857), + 29: uint16(29858), + 30: uint16(29859), + 31: uint16(29860), + 32: uint16(29861), + 33: uint16(29862), + 34: uint16(29866), + 35: uint16(29867), + 36: uint16(29868), + 37: uint16(29869), + 38: uint16(29870), + 39: uint16(29871), + 40: uint16(29872), + 41: uint16(29873), + 42: uint16(29874), + 43: uint16(29875), + 44: uint16(29876), + 45: uint16(29877), + 46: uint16(29878), + 47: uint16(29879), + 48: uint16(29880), + 49: uint16(29881), + 50: uint16(29883), + 51: uint16(29884), + 52: uint16(29885), + 53: uint16(29886), + 54: uint16(29887), + 55: uint16(29888), + 56: uint16(29889), + 57: uint16(29890), + 58: uint16(29891), + 59: uint16(29892), + 60: uint16(29893), + 61: uint16(29894), + 62: uint16(29895), + 63: uint16(29896), + 64: uint16(29897), + 65: uint16(29898), + 66: uint16(29899), + 67: uint16(29900), + 68: uint16(29901), + 69: uint16(29902), + 70: uint16(29903), + 71: uint16(29904), + 72: uint16(29905), + 73: uint16(29907), + 74: uint16(29908), + 75: uint16(29909), + 76: uint16(29910), + 77: uint16(29911), + 78: uint16(29912), + 79: uint16(29913), + 80: uint16(29914), + 81: uint16(29915), + 82: uint16(29917), + 83: uint16(29919), + 84: uint16(29921), + 85: uint16(29925), + 86: uint16(29927), + 87: uint16(29928), + 88: uint16(29929), + 89: uint16(29930), + 90: uint16(29931), + 91: uint16(29932), + 92: uint16(29933), + 93: uint16(29936), + 94: uint16(29937), + 95: uint16(29938), + 96: uint16(57626), + 97: uint16(57627), + 98: uint16(57628), + 99: uint16(57629), + 100: uint16(57630), + 101: uint16(57631), + 102: uint16(57632), + 103: uint16(57633), + 104: uint16(57634), + 105: uint16(57635), + 106: uint16(57636), + 107: uint16(57637), + 108: uint16(57638), + 109: uint16(57639), + 110: uint16(57640), + 111: uint16(57641), + 112: uint16(57642), + 113: uint16(57643), + 114: uint16(57644), + 115: uint16(57645), + 116: uint16(57646), + 117: uint16(57647), + 118: uint16(57648), + 119: uint16(57649), + 120: uint16(57650), + 121: uint16(57651), + 122: uint16(57652), + 123: uint16(57653), + 124: uint16(57654), + 125: uint16(57655), + 126: uint16(57656), + 127: uint16(57657), + 128: uint16(57658), + 129: uint16(57659), + 130: uint16(57660), + 131: uint16(57661), + 132: uint16(57662), + 133: uint16(57663), + 134: uint16(57664), + 135: uint16(57665), + 136: uint16(57666), + 137: uint16(57667), + 138: uint16(57668), + 139: uint16(57669), + 140: uint16(57670), + 141: uint16(57671), + 142: uint16(57672), + 143: uint16(57673), + 144: uint16(57674), + 145: uint16(57675), + 146: uint16(57676), + 147: uint16(57677), + 148: uint16(57678), + 149: uint16(57679), + 150: uint16(57680), + 151: uint16(57681), + 152: uint16(57682), + 153: uint16(57683), + 154: uint16(57684), + 155: uint16(57685), + 156: uint16(57686), + 157: uint16(57687), + 158: uint16(57688), + 159: uint16(57689), + 160: uint16(57690), + 161: uint16(57691), + 162: uint16(57692), + 163: uint16(57693), + 164: uint16(57694), + 165: uint16(57695), + 166: uint16(57696), + 167: uint16(57697), + 168: uint16(57698), + 169: uint16(57699), + 170: uint16(57700), + 171: uint16(57701), + 172: uint16(57702), + 173: uint16(57703), + 174: uint16(57704), + 175: uint16(57705), + 176: uint16(57706), + 177: uint16(57707), + 178: uint16(57708), + 179: uint16(57709), + 180: uint16(57710), + 181: uint16(57711), + 182: uint16(57712), + 183: uint16(57713), + 184: uint16(57714), + 185: uint16(57715), + 186: uint16(57716), + 187: uint16(57717), + 188: uint16(57718), + 189: uint16(57719), + }, + 45: { + 0: uint16(29939), + 1: uint16(29941), + 2: uint16(29944), + 3: uint16(29945), + 4: uint16(29946), + 5: uint16(29947), + 6: uint16(29948), + 7: uint16(29949), + 8: uint16(29950), + 9: uint16(29952), + 10: uint16(29953), + 11: uint16(29954), + 12: uint16(29955), + 13: uint16(29957), + 14: uint16(29958), + 15: uint16(29959), + 16: uint16(29960), + 17: uint16(29961), + 18: uint16(29962), + 19: uint16(29963), + 20: uint16(29964), + 21: uint16(29966), + 22: uint16(29968), + 23: uint16(29970), + 24: uint16(29972), + 25: uint16(29973), + 26: uint16(29974), + 27: uint16(29975), + 28: uint16(29979), + 29: uint16(29981), + 30: uint16(29982), + 31: uint16(29984), + 32: uint16(29985), + 33: uint16(29986), + 34: uint16(29987), + 35: uint16(29988), + 36: uint16(29990), + 37: uint16(29991), + 38: uint16(29994), + 39: uint16(29998), + 40: uint16(30004), + 41: uint16(30006), + 42: uint16(30009), + 43: uint16(30012), + 44: uint16(30013), + 45: uint16(30015), + 46: uint16(30017), + 47: uint16(30018), + 48: uint16(30019), + 49: uint16(30020), + 50: uint16(30022), + 51: uint16(30023), + 52: uint16(30025), + 53: uint16(30026), + 54: uint16(30029), + 55: uint16(30032), + 56: uint16(30033), + 57: uint16(30034), + 58: uint16(30035), + 59: uint16(30037), + 60: uint16(30038), + 61: uint16(30039), + 62: uint16(30040), + 63: uint16(30045), + 64: uint16(30046), + 65: uint16(30047), + 66: uint16(30048), + 67: uint16(30049), + 68: uint16(30050), + 69: uint16(30051), + 70: uint16(30052), + 71: uint16(30055), + 72: uint16(30056), + 73: uint16(30057), + 74: uint16(30059), + 75: uint16(30060), + 76: uint16(30061), + 77: uint16(30062), + 78: uint16(30063), + 79: uint16(30064), + 80: uint16(30065), + 81: uint16(30067), + 82: uint16(30069), + 83: uint16(30070), + 84: uint16(30071), + 85: uint16(30074), + 86: uint16(30075), + 87: uint16(30076), + 88: uint16(30077), + 89: uint16(30078), + 90: uint16(30080), + 91: uint16(30081), + 92: uint16(30082), + 93: uint16(30084), + 94: uint16(30085), + 95: uint16(30087), + 96: uint16(57720), + 97: uint16(57721), + 98: uint16(57722), + 99: uint16(57723), + 100: uint16(57724), + 101: uint16(57725), + 102: uint16(57726), + 103: uint16(57727), + 104: uint16(57728), + 105: uint16(57729), + 106: uint16(57730), + 107: uint16(57731), + 108: uint16(57732), + 109: uint16(57733), + 110: uint16(57734), + 111: uint16(57735), + 112: uint16(57736), + 113: uint16(57737), + 114: uint16(57738), + 115: uint16(57739), + 116: uint16(57740), + 117: uint16(57741), + 118: uint16(57742), + 119: uint16(57743), + 120: uint16(57744), + 121: uint16(57745), + 122: uint16(57746), + 123: uint16(57747), + 124: uint16(57748), + 125: uint16(57749), + 126: uint16(57750), + 127: uint16(57751), + 128: uint16(57752), + 129: uint16(57753), + 130: uint16(57754), + 131: uint16(57755), + 132: uint16(57756), + 133: uint16(57757), + 134: uint16(57758), + 135: uint16(57759), + 136: uint16(57760), + 137: uint16(57761), + 138: uint16(57762), + 139: uint16(57763), + 140: uint16(57764), + 141: uint16(57765), + 142: uint16(57766), + 143: uint16(57767), + 144: uint16(57768), + 145: uint16(57769), + 146: uint16(57770), + 147: uint16(57771), + 148: uint16(57772), + 149: uint16(57773), + 150: uint16(57774), + 151: uint16(57775), + 152: uint16(57776), + 153: uint16(57777), + 154: uint16(57778), + 155: uint16(57779), + 156: uint16(57780), + 157: uint16(57781), + 158: uint16(57782), + 159: uint16(57783), + 160: uint16(57784), + 161: uint16(57785), + 162: uint16(57786), + 163: uint16(57787), + 164: uint16(57788), + 165: uint16(57789), + 166: uint16(57790), + 167: uint16(57791), + 168: uint16(57792), + 169: uint16(57793), + 170: uint16(57794), + 171: uint16(57795), + 172: uint16(57796), + 173: uint16(57797), + 174: uint16(57798), + 175: uint16(57799), + 176: uint16(57800), + 177: uint16(57801), + 178: uint16(57802), + 179: uint16(57803), + 180: uint16(57804), + 181: uint16(57805), + 182: uint16(57806), + 183: uint16(57807), + 184: uint16(57808), + 185: uint16(57809), + 186: uint16(57810), + 187: uint16(57811), + 188: uint16(57812), + 189: uint16(57813), + }, + 46: { + 0: uint16(30088), + 1: uint16(30089), + 2: uint16(30090), + 3: uint16(30092), + 4: uint16(30093), + 5: uint16(30094), + 6: uint16(30096), + 7: uint16(30099), + 8: uint16(30101), + 9: uint16(30104), + 10: uint16(30107), + 11: uint16(30108), + 12: uint16(30110), + 13: uint16(30114), + 14: uint16(30118), + 15: uint16(30119), + 16: uint16(30120), + 17: uint16(30121), + 18: uint16(30122), + 19: uint16(30125), + 20: uint16(30134), + 21: uint16(30135), + 22: uint16(30138), + 23: uint16(30139), + 24: uint16(30143), + 25: uint16(30144), + 26: uint16(30145), + 27: uint16(30150), + 28: uint16(30155), + 29: uint16(30156), + 30: uint16(30158), + 31: uint16(30159), + 32: uint16(30160), + 33: uint16(30161), + 34: uint16(30163), + 35: uint16(30167), + 36: uint16(30169), + 37: uint16(30170), + 38: uint16(30172), + 39: uint16(30173), + 40: uint16(30175), + 41: uint16(30176), + 42: uint16(30177), + 43: uint16(30181), + 44: uint16(30185), + 45: uint16(30188), + 46: uint16(30189), + 47: uint16(30190), + 48: uint16(30191), + 49: uint16(30194), + 50: uint16(30195), + 51: uint16(30197), + 52: uint16(30198), + 53: uint16(30199), + 54: uint16(30200), + 55: uint16(30202), + 56: uint16(30203), + 57: uint16(30205), + 58: uint16(30206), + 59: uint16(30210), + 60: uint16(30212), + 61: uint16(30214), + 62: uint16(30215), + 63: uint16(30216), + 64: uint16(30217), + 65: uint16(30219), + 66: uint16(30221), + 67: uint16(30222), + 68: uint16(30223), + 69: uint16(30225), + 70: uint16(30226), + 71: uint16(30227), + 72: uint16(30228), + 73: uint16(30230), + 74: uint16(30234), + 75: uint16(30236), + 76: uint16(30237), + 77: uint16(30238), + 78: uint16(30241), + 79: uint16(30243), + 80: uint16(30247), + 81: uint16(30248), + 82: uint16(30252), + 83: uint16(30254), + 84: uint16(30255), + 85: uint16(30257), + 86: uint16(30258), + 87: uint16(30262), + 88: uint16(30263), + 89: uint16(30265), + 90: uint16(30266), + 91: uint16(30267), + 92: uint16(30269), + 93: uint16(30273), + 94: uint16(30274), + 95: uint16(30276), + 96: uint16(57814), + 97: uint16(57815), + 98: uint16(57816), + 99: uint16(57817), + 100: uint16(57818), + 101: uint16(57819), + 102: uint16(57820), + 103: uint16(57821), + 104: uint16(57822), + 105: uint16(57823), + 106: uint16(57824), + 107: uint16(57825), + 108: uint16(57826), + 109: uint16(57827), + 110: uint16(57828), + 111: uint16(57829), + 112: uint16(57830), + 113: uint16(57831), + 114: uint16(57832), + 115: uint16(57833), + 116: uint16(57834), + 117: uint16(57835), + 118: uint16(57836), + 119: uint16(57837), + 120: uint16(57838), + 121: uint16(57839), + 122: uint16(57840), + 123: uint16(57841), + 124: uint16(57842), + 125: uint16(57843), + 126: uint16(57844), + 127: uint16(57845), + 128: uint16(57846), + 129: uint16(57847), + 130: uint16(57848), + 131: uint16(57849), + 132: uint16(57850), + 133: uint16(57851), + 134: uint16(57852), + 135: uint16(57853), + 136: uint16(57854), + 137: uint16(57855), + 138: uint16(57856), + 139: uint16(57857), + 140: uint16(57858), + 141: uint16(57859), + 142: uint16(57860), + 143: uint16(57861), + 144: uint16(57862), + 145: uint16(57863), + 146: uint16(57864), + 147: uint16(57865), + 148: uint16(57866), + 149: uint16(57867), + 150: uint16(57868), + 151: uint16(57869), + 152: uint16(57870), + 153: uint16(57871), + 154: uint16(57872), + 155: uint16(57873), + 156: uint16(57874), + 157: uint16(57875), + 158: uint16(57876), + 159: uint16(57877), + 160: uint16(57878), + 161: uint16(57879), + 162: uint16(57880), + 163: uint16(57881), + 164: uint16(57882), + 165: uint16(57883), + 166: uint16(57884), + 167: uint16(57885), + 168: uint16(57886), + 169: uint16(57887), + 170: uint16(57888), + 171: uint16(57889), + 172: uint16(57890), + 173: uint16(57891), + 174: uint16(57892), + 175: uint16(57893), + 176: uint16(57894), + 177: uint16(57895), + 178: uint16(57896), + 179: uint16(57897), + 180: uint16(57898), + 181: uint16(57899), + 182: uint16(57900), + 183: uint16(57901), + 184: uint16(57902), + 185: uint16(57903), + 186: uint16(57904), + 187: uint16(57905), + 188: uint16(57906), + 189: uint16(57907), + }, + 47: { + 0: uint16(30277), + 1: uint16(30278), + 2: uint16(30279), + 3: uint16(30280), + 4: uint16(30281), + 5: uint16(30282), + 6: uint16(30283), + 7: uint16(30286), + 8: uint16(30287), + 9: uint16(30288), + 10: uint16(30289), + 11: uint16(30290), + 12: uint16(30291), + 13: uint16(30293), + 14: uint16(30295), + 15: uint16(30296), + 16: uint16(30297), + 17: uint16(30298), + 18: uint16(30299), + 19: uint16(30301), + 20: uint16(30303), + 21: uint16(30304), + 22: uint16(30305), + 23: uint16(30306), + 24: uint16(30308), + 25: uint16(30309), + 26: uint16(30310), + 27: uint16(30311), + 28: uint16(30312), + 29: uint16(30313), + 30: uint16(30314), + 31: uint16(30316), + 32: uint16(30317), + 33: uint16(30318), + 34: uint16(30320), + 35: uint16(30321), + 36: uint16(30322), + 37: uint16(30323), + 38: uint16(30324), + 39: uint16(30325), + 40: uint16(30326), + 41: uint16(30327), + 42: uint16(30329), + 43: uint16(30330), + 44: uint16(30332), + 45: uint16(30335), + 46: uint16(30336), + 47: uint16(30337), + 48: uint16(30339), + 49: uint16(30341), + 50: uint16(30345), + 51: uint16(30346), + 52: uint16(30348), + 53: uint16(30349), + 54: uint16(30351), + 55: uint16(30352), + 56: uint16(30354), + 57: uint16(30356), + 58: uint16(30357), + 59: uint16(30359), + 60: uint16(30360), + 61: uint16(30362), + 62: uint16(30363), + 63: uint16(30364), + 64: uint16(30365), + 65: uint16(30366), + 66: uint16(30367), + 67: uint16(30368), + 68: uint16(30369), + 69: uint16(30370), + 70: uint16(30371), + 71: uint16(30373), + 72: uint16(30374), + 73: uint16(30375), + 74: uint16(30376), + 75: uint16(30377), + 76: uint16(30378), + 77: uint16(30379), + 78: uint16(30380), + 79: uint16(30381), + 80: uint16(30383), + 81: uint16(30384), + 82: uint16(30387), + 83: uint16(30389), + 84: uint16(30390), + 85: uint16(30391), + 86: uint16(30392), + 87: uint16(30393), + 88: uint16(30394), + 89: uint16(30395), + 90: uint16(30396), + 91: uint16(30397), + 92: uint16(30398), + 93: uint16(30400), + 94: uint16(30401), + 95: uint16(30403), + 96: uint16(21834), + 97: uint16(38463), + 98: uint16(22467), + 99: uint16(25384), + 100: uint16(21710), + 101: uint16(21769), + 102: uint16(21696), + 103: uint16(30353), + 104: uint16(30284), + 105: uint16(34108), + 106: uint16(30702), + 107: uint16(33406), + 108: uint16(30861), + 109: uint16(29233), + 110: uint16(38552), + 111: uint16(38797), + 112: uint16(27688), + 113: uint16(23433), + 114: uint16(20474), + 115: uint16(25353), + 116: uint16(26263), + 117: uint16(23736), + 118: uint16(33018), + 119: uint16(26696), + 120: uint16(32942), + 121: uint16(26114), + 122: uint16(30414), + 123: uint16(20985), + 124: uint16(25942), + 125: uint16(29100), + 126: uint16(32753), + 127: uint16(34948), + 128: uint16(20658), + 129: uint16(22885), + 130: uint16(25034), + 131: uint16(28595), + 132: uint16(33453), + 133: uint16(25420), + 134: uint16(25170), + 135: uint16(21485), + 136: uint16(21543), + 137: uint16(31494), + 138: uint16(20843), + 139: uint16(30116), + 140: uint16(24052), + 141: uint16(25300), + 142: uint16(36299), + 143: uint16(38774), + 144: uint16(25226), + 145: uint16(32793), + 146: uint16(22365), + 147: uint16(38712), + 148: uint16(32610), + 149: uint16(29240), + 150: uint16(30333), + 151: uint16(26575), + 152: uint16(30334), + 153: uint16(25670), + 154: uint16(20336), + 155: uint16(36133), + 156: uint16(25308), + 157: uint16(31255), + 158: uint16(26001), + 159: uint16(29677), + 160: uint16(25644), + 161: uint16(25203), + 162: uint16(33324), + 163: uint16(39041), + 164: uint16(26495), + 165: uint16(29256), + 166: uint16(25198), + 167: uint16(25292), + 168: uint16(20276), + 169: uint16(29923), + 170: uint16(21322), + 171: uint16(21150), + 172: uint16(32458), + 173: uint16(37030), + 174: uint16(24110), + 175: uint16(26758), + 176: uint16(27036), + 177: uint16(33152), + 178: uint16(32465), + 179: uint16(26834), + 180: uint16(30917), + 181: uint16(34444), + 182: uint16(38225), + 183: uint16(20621), + 184: uint16(35876), + 185: uint16(33502), + 186: uint16(32990), + 187: uint16(21253), + 188: uint16(35090), + 189: uint16(21093), + }, + 48: { + 0: uint16(30404), + 1: uint16(30407), + 2: uint16(30409), + 3: uint16(30411), + 4: uint16(30412), + 5: uint16(30419), + 6: uint16(30421), + 7: uint16(30425), + 8: uint16(30426), + 9: uint16(30428), + 10: uint16(30429), + 11: uint16(30430), + 12: uint16(30432), + 13: uint16(30433), + 14: uint16(30434), + 15: uint16(30435), + 16: uint16(30436), + 17: uint16(30438), + 18: uint16(30439), + 19: uint16(30440), + 20: uint16(30441), + 21: uint16(30442), + 22: uint16(30443), + 23: uint16(30444), + 24: uint16(30445), + 25: uint16(30448), + 26: uint16(30451), + 27: uint16(30453), + 28: uint16(30454), + 29: uint16(30455), + 30: uint16(30458), + 31: uint16(30459), + 32: uint16(30461), + 33: uint16(30463), + 34: uint16(30464), + 35: uint16(30466), + 36: uint16(30467), + 37: uint16(30469), + 38: uint16(30470), + 39: uint16(30474), + 40: uint16(30476), + 41: uint16(30478), + 42: uint16(30479), + 43: uint16(30480), + 44: uint16(30481), + 45: uint16(30482), + 46: uint16(30483), + 47: uint16(30484), + 48: uint16(30485), + 49: uint16(30486), + 50: uint16(30487), + 51: uint16(30488), + 52: uint16(30491), + 53: uint16(30492), + 54: uint16(30493), + 55: uint16(30494), + 56: uint16(30497), + 57: uint16(30499), + 58: uint16(30500), + 59: uint16(30501), + 60: uint16(30503), + 61: uint16(30506), + 62: uint16(30507), + 63: uint16(30508), + 64: uint16(30510), + 65: uint16(30512), + 66: uint16(30513), + 67: uint16(30514), + 68: uint16(30515), + 69: uint16(30516), + 70: uint16(30521), + 71: uint16(30523), + 72: uint16(30525), + 73: uint16(30526), + 74: uint16(30527), + 75: uint16(30530), + 76: uint16(30532), + 77: uint16(30533), + 78: uint16(30534), + 79: uint16(30536), + 80: uint16(30537), + 81: uint16(30538), + 82: uint16(30539), + 83: uint16(30540), + 84: uint16(30541), + 85: uint16(30542), + 86: uint16(30543), + 87: uint16(30546), + 88: uint16(30547), + 89: uint16(30548), + 90: uint16(30549), + 91: uint16(30550), + 92: uint16(30551), + 93: uint16(30552), + 94: uint16(30553), + 95: uint16(30556), + 96: uint16(34180), + 97: uint16(38649), + 98: uint16(20445), + 99: uint16(22561), + 100: uint16(39281), + 101: uint16(23453), + 102: uint16(25265), + 103: uint16(25253), + 104: uint16(26292), + 105: uint16(35961), + 106: uint16(40077), + 107: uint16(29190), + 108: uint16(26479), + 109: uint16(30865), + 110: uint16(24754), + 111: uint16(21329), + 112: uint16(21271), + 113: uint16(36744), + 114: uint16(32972), + 115: uint16(36125), + 116: uint16(38049), + 117: uint16(20493), + 118: uint16(29384), + 119: uint16(22791), + 120: uint16(24811), + 121: uint16(28953), + 122: uint16(34987), + 123: uint16(22868), + 124: uint16(33519), + 125: uint16(26412), + 126: uint16(31528), + 127: uint16(23849), + 128: uint16(32503), + 129: uint16(29997), + 130: uint16(27893), + 131: uint16(36454), + 132: uint16(36856), + 133: uint16(36924), + 134: uint16(40763), + 135: uint16(27604), + 136: uint16(37145), + 137: uint16(31508), + 138: uint16(24444), + 139: uint16(30887), + 140: uint16(34006), + 141: uint16(34109), + 142: uint16(27605), + 143: uint16(27609), + 144: uint16(27606), + 145: uint16(24065), + 146: uint16(24199), + 147: uint16(30201), + 148: uint16(38381), + 149: uint16(25949), + 150: uint16(24330), + 151: uint16(24517), + 152: uint16(36767), + 153: uint16(22721), + 154: uint16(33218), + 155: uint16(36991), + 156: uint16(38491), + 157: uint16(38829), + 158: uint16(36793), + 159: uint16(32534), + 160: uint16(36140), + 161: uint16(25153), + 162: uint16(20415), + 163: uint16(21464), + 164: uint16(21342), + 165: uint16(36776), + 166: uint16(36777), + 167: uint16(36779), + 168: uint16(36941), + 169: uint16(26631), + 170: uint16(24426), + 171: uint16(33176), + 172: uint16(34920), + 173: uint16(40150), + 174: uint16(24971), + 175: uint16(21035), + 176: uint16(30250), + 177: uint16(24428), + 178: uint16(25996), + 179: uint16(28626), + 180: uint16(28392), + 181: uint16(23486), + 182: uint16(25672), + 183: uint16(20853), + 184: uint16(20912), + 185: uint16(26564), + 186: uint16(19993), + 187: uint16(31177), + 188: uint16(39292), + 189: uint16(28851), + }, + 49: { + 0: uint16(30557), + 1: uint16(30558), + 2: uint16(30559), + 3: uint16(30560), + 4: uint16(30564), + 5: uint16(30567), + 6: uint16(30569), + 7: uint16(30570), + 8: uint16(30573), + 9: uint16(30574), + 10: uint16(30575), + 11: uint16(30576), + 12: uint16(30577), + 13: uint16(30578), + 14: uint16(30579), + 15: uint16(30580), + 16: uint16(30581), + 17: uint16(30582), + 18: uint16(30583), + 19: uint16(30584), + 20: uint16(30586), + 21: uint16(30587), + 22: uint16(30588), + 23: uint16(30593), + 24: uint16(30594), + 25: uint16(30595), + 26: uint16(30598), + 27: uint16(30599), + 28: uint16(30600), + 29: uint16(30601), + 30: uint16(30602), + 31: uint16(30603), + 32: uint16(30607), + 33: uint16(30608), + 34: uint16(30611), + 35: uint16(30612), + 36: uint16(30613), + 37: uint16(30614), + 38: uint16(30615), + 39: uint16(30616), + 40: uint16(30617), + 41: uint16(30618), + 42: uint16(30619), + 43: uint16(30620), + 44: uint16(30621), + 45: uint16(30622), + 46: uint16(30625), + 47: uint16(30627), + 48: uint16(30628), + 49: uint16(30630), + 50: uint16(30632), + 51: uint16(30635), + 52: uint16(30637), + 53: uint16(30638), + 54: uint16(30639), + 55: uint16(30641), + 56: uint16(30642), + 57: uint16(30644), + 58: uint16(30646), + 59: uint16(30647), + 60: uint16(30648), + 61: uint16(30649), + 62: uint16(30650), + 63: uint16(30652), + 64: uint16(30654), + 65: uint16(30656), + 66: uint16(30657), + 67: uint16(30658), + 68: uint16(30659), + 69: uint16(30660), + 70: uint16(30661), + 71: uint16(30662), + 72: uint16(30663), + 73: uint16(30664), + 74: uint16(30665), + 75: uint16(30666), + 76: uint16(30667), + 77: uint16(30668), + 78: uint16(30670), + 79: uint16(30671), + 80: uint16(30672), + 81: uint16(30673), + 82: uint16(30674), + 83: uint16(30675), + 84: uint16(30676), + 85: uint16(30677), + 86: uint16(30678), + 87: uint16(30680), + 88: uint16(30681), + 89: uint16(30682), + 90: uint16(30685), + 91: uint16(30686), + 92: uint16(30687), + 93: uint16(30688), + 94: uint16(30689), + 95: uint16(30692), + 96: uint16(30149), + 97: uint16(24182), + 98: uint16(29627), + 99: uint16(33760), + 100: uint16(25773), + 101: uint16(25320), + 102: uint16(38069), + 103: uint16(27874), + 104: uint16(21338), + 105: uint16(21187), + 106: uint16(25615), + 107: uint16(38082), + 108: uint16(31636), + 109: uint16(20271), + 110: uint16(24091), + 111: uint16(33334), + 112: uint16(33046), + 113: uint16(33162), + 114: uint16(28196), + 115: uint16(27850), + 116: uint16(39539), + 117: uint16(25429), + 118: uint16(21340), + 119: uint16(21754), + 120: uint16(34917), + 121: uint16(22496), + 122: uint16(19981), + 123: uint16(24067), + 124: uint16(27493), + 125: uint16(31807), + 126: uint16(37096), + 127: uint16(24598), + 128: uint16(25830), + 129: uint16(29468), + 130: uint16(35009), + 131: uint16(26448), + 132: uint16(25165), + 133: uint16(36130), + 134: uint16(30572), + 135: uint16(36393), + 136: uint16(37319), + 137: uint16(24425), + 138: uint16(33756), + 139: uint16(34081), + 140: uint16(39184), + 141: uint16(21442), + 142: uint16(34453), + 143: uint16(27531), + 144: uint16(24813), + 145: uint16(24808), + 146: uint16(28799), + 147: uint16(33485), + 148: uint16(33329), + 149: uint16(20179), + 150: uint16(27815), + 151: uint16(34255), + 152: uint16(25805), + 153: uint16(31961), + 154: uint16(27133), + 155: uint16(26361), + 156: uint16(33609), + 157: uint16(21397), + 158: uint16(31574), + 159: uint16(20391), + 160: uint16(20876), + 161: uint16(27979), + 162: uint16(23618), + 163: uint16(36461), + 164: uint16(25554), + 165: uint16(21449), + 166: uint16(33580), + 167: uint16(33590), + 168: uint16(26597), + 169: uint16(30900), + 170: uint16(25661), + 171: uint16(23519), + 172: uint16(23700), + 173: uint16(24046), + 174: uint16(35815), + 175: uint16(25286), + 176: uint16(26612), + 177: uint16(35962), + 178: uint16(25600), + 179: uint16(25530), + 180: uint16(34633), + 181: uint16(39307), + 182: uint16(35863), + 183: uint16(32544), + 184: uint16(38130), + 185: uint16(20135), + 186: uint16(38416), + 187: uint16(39076), + 188: uint16(26124), + 189: uint16(29462), + }, + 50: { + 0: uint16(30694), + 1: uint16(30696), + 2: uint16(30698), + 3: uint16(30703), + 4: uint16(30704), + 5: uint16(30705), + 6: uint16(30706), + 7: uint16(30708), + 8: uint16(30709), + 9: uint16(30711), + 10: uint16(30713), + 11: uint16(30714), + 12: uint16(30715), + 13: uint16(30716), + 14: uint16(30723), + 15: uint16(30724), + 16: uint16(30725), + 17: uint16(30726), + 18: uint16(30727), + 19: uint16(30728), + 20: uint16(30730), + 21: uint16(30731), + 22: uint16(30734), + 23: uint16(30735), + 24: uint16(30736), + 25: uint16(30739), + 26: uint16(30741), + 27: uint16(30745), + 28: uint16(30747), + 29: uint16(30750), + 30: uint16(30752), + 31: uint16(30753), + 32: uint16(30754), + 33: uint16(30756), + 34: uint16(30760), + 35: uint16(30762), + 36: uint16(30763), + 37: uint16(30766), + 38: uint16(30767), + 39: uint16(30769), + 40: uint16(30770), + 41: uint16(30771), + 42: uint16(30773), + 43: uint16(30774), + 44: uint16(30781), + 45: uint16(30783), + 46: uint16(30785), + 47: uint16(30786), + 48: uint16(30787), + 49: uint16(30788), + 50: uint16(30790), + 51: uint16(30792), + 52: uint16(30793), + 53: uint16(30794), + 54: uint16(30795), + 55: uint16(30797), + 56: uint16(30799), + 57: uint16(30801), + 58: uint16(30803), + 59: uint16(30804), + 60: uint16(30808), + 61: uint16(30809), + 62: uint16(30810), + 63: uint16(30811), + 64: uint16(30812), + 65: uint16(30814), + 66: uint16(30815), + 67: uint16(30816), + 68: uint16(30817), + 69: uint16(30818), + 70: uint16(30819), + 71: uint16(30820), + 72: uint16(30821), + 73: uint16(30822), + 74: uint16(30823), + 75: uint16(30824), + 76: uint16(30825), + 77: uint16(30831), + 78: uint16(30832), + 79: uint16(30833), + 80: uint16(30834), + 81: uint16(30835), + 82: uint16(30836), + 83: uint16(30837), + 84: uint16(30838), + 85: uint16(30840), + 86: uint16(30841), + 87: uint16(30842), + 88: uint16(30843), + 89: uint16(30845), + 90: uint16(30846), + 91: uint16(30847), + 92: uint16(30848), + 93: uint16(30849), + 94: uint16(30850), + 95: uint16(30851), + 96: uint16(22330), + 97: uint16(23581), + 98: uint16(24120), + 99: uint16(38271), + 100: uint16(20607), + 101: uint16(32928), + 102: uint16(21378), + 103: uint16(25950), + 104: uint16(30021), + 105: uint16(21809), + 106: uint16(20513), + 107: uint16(36229), + 108: uint16(25220), + 109: uint16(38046), + 110: uint16(26397), + 111: uint16(22066), + 112: uint16(28526), + 113: uint16(24034), + 114: uint16(21557), + 115: uint16(28818), + 116: uint16(36710), + 117: uint16(25199), + 118: uint16(25764), + 119: uint16(25507), + 120: uint16(24443), + 121: uint16(28552), + 122: uint16(37108), + 123: uint16(33251), + 124: uint16(36784), + 125: uint16(23576), + 126: uint16(26216), + 127: uint16(24561), + 128: uint16(27785), + 129: uint16(38472), + 130: uint16(36225), + 131: uint16(34924), + 132: uint16(25745), + 133: uint16(31216), + 134: uint16(22478), + 135: uint16(27225), + 136: uint16(25104), + 137: uint16(21576), + 138: uint16(20056), + 139: uint16(31243), + 140: uint16(24809), + 141: uint16(28548), + 142: uint16(35802), + 143: uint16(25215), + 144: uint16(36894), + 145: uint16(39563), + 146: uint16(31204), + 147: uint16(21507), + 148: uint16(30196), + 149: uint16(25345), + 150: uint16(21273), + 151: uint16(27744), + 152: uint16(36831), + 153: uint16(24347), + 154: uint16(39536), + 155: uint16(32827), + 156: uint16(40831), + 157: uint16(20360), + 158: uint16(23610), + 159: uint16(36196), + 160: uint16(32709), + 161: uint16(26021), + 162: uint16(28861), + 163: uint16(20805), + 164: uint16(20914), + 165: uint16(34411), + 166: uint16(23815), + 167: uint16(23456), + 168: uint16(25277), + 169: uint16(37228), + 170: uint16(30068), + 171: uint16(36364), + 172: uint16(31264), + 173: uint16(24833), + 174: uint16(31609), + 175: uint16(20167), + 176: uint16(32504), + 177: uint16(30597), + 178: uint16(19985), + 179: uint16(33261), + 180: uint16(21021), + 181: uint16(20986), + 182: uint16(27249), + 183: uint16(21416), + 184: uint16(36487), + 185: uint16(38148), + 186: uint16(38607), + 187: uint16(28353), + 188: uint16(38500), + 189: uint16(26970), + }, + 51: { + 0: uint16(30852), + 1: uint16(30853), + 2: uint16(30854), + 3: uint16(30856), + 4: uint16(30858), + 5: uint16(30859), + 6: uint16(30863), + 7: uint16(30864), + 8: uint16(30866), + 9: uint16(30868), + 10: uint16(30869), + 11: uint16(30870), + 12: uint16(30873), + 13: uint16(30877), + 14: uint16(30878), + 15: uint16(30880), + 16: uint16(30882), + 17: uint16(30884), + 18: uint16(30886), + 19: uint16(30888), + 20: uint16(30889), + 21: uint16(30890), + 22: uint16(30891), + 23: uint16(30892), + 24: uint16(30893), + 25: uint16(30894), + 26: uint16(30895), + 27: uint16(30901), + 28: uint16(30902), + 29: uint16(30903), + 30: uint16(30904), + 31: uint16(30906), + 32: uint16(30907), + 33: uint16(30908), + 34: uint16(30909), + 35: uint16(30911), + 36: uint16(30912), + 37: uint16(30914), + 38: uint16(30915), + 39: uint16(30916), + 40: uint16(30918), + 41: uint16(30919), + 42: uint16(30920), + 43: uint16(30924), + 44: uint16(30925), + 45: uint16(30926), + 46: uint16(30927), + 47: uint16(30929), + 48: uint16(30930), + 49: uint16(30931), + 50: uint16(30934), + 51: uint16(30935), + 52: uint16(30936), + 53: uint16(30938), + 54: uint16(30939), + 55: uint16(30940), + 56: uint16(30941), + 57: uint16(30942), + 58: uint16(30943), + 59: uint16(30944), + 60: uint16(30945), + 61: uint16(30946), + 62: uint16(30947), + 63: uint16(30948), + 64: uint16(30949), + 65: uint16(30950), + 66: uint16(30951), + 67: uint16(30953), + 68: uint16(30954), + 69: uint16(30955), + 70: uint16(30957), + 71: uint16(30958), + 72: uint16(30959), + 73: uint16(30960), + 74: uint16(30961), + 75: uint16(30963), + 76: uint16(30965), + 77: uint16(30966), + 78: uint16(30968), + 79: uint16(30969), + 80: uint16(30971), + 81: uint16(30972), + 82: uint16(30973), + 83: uint16(30974), + 84: uint16(30975), + 85: uint16(30976), + 86: uint16(30978), + 87: uint16(30979), + 88: uint16(30980), + 89: uint16(30982), + 90: uint16(30983), + 91: uint16(30984), + 92: uint16(30985), + 93: uint16(30986), + 94: uint16(30987), + 95: uint16(30988), + 96: uint16(30784), + 97: uint16(20648), + 98: uint16(30679), + 99: uint16(25616), + 100: uint16(35302), + 101: uint16(22788), + 102: uint16(25571), + 103: uint16(24029), + 104: uint16(31359), + 105: uint16(26941), + 106: uint16(20256), + 107: uint16(33337), + 108: uint16(21912), + 109: uint16(20018), + 110: uint16(30126), + 111: uint16(31383), + 112: uint16(24162), + 113: uint16(24202), + 114: uint16(38383), + 115: uint16(21019), + 116: uint16(21561), + 117: uint16(28810), + 118: uint16(25462), + 119: uint16(38180), + 120: uint16(22402), + 121: uint16(26149), + 122: uint16(26943), + 123: uint16(37255), + 124: uint16(21767), + 125: uint16(28147), + 126: uint16(32431), + 127: uint16(34850), + 128: uint16(25139), + 129: uint16(32496), + 130: uint16(30133), + 131: uint16(33576), + 132: uint16(30913), + 133: uint16(38604), + 134: uint16(36766), + 135: uint16(24904), + 136: uint16(29943), + 137: uint16(35789), + 138: uint16(27492), + 139: uint16(21050), + 140: uint16(36176), + 141: uint16(27425), + 142: uint16(32874), + 143: uint16(33905), + 144: uint16(22257), + 145: uint16(21254), + 146: uint16(20174), + 147: uint16(19995), + 148: uint16(20945), + 149: uint16(31895), + 150: uint16(37259), + 151: uint16(31751), + 152: uint16(20419), + 153: uint16(36479), + 154: uint16(31713), + 155: uint16(31388), + 156: uint16(25703), + 157: uint16(23828), + 158: uint16(20652), + 159: uint16(33030), + 160: uint16(30209), + 161: uint16(31929), + 162: uint16(28140), + 163: uint16(32736), + 164: uint16(26449), + 165: uint16(23384), + 166: uint16(23544), + 167: uint16(30923), + 168: uint16(25774), + 169: uint16(25619), + 170: uint16(25514), + 171: uint16(25387), + 172: uint16(38169), + 173: uint16(25645), + 174: uint16(36798), + 175: uint16(31572), + 176: uint16(30249), + 177: uint16(25171), + 178: uint16(22823), + 179: uint16(21574), + 180: uint16(27513), + 181: uint16(20643), + 182: uint16(25140), + 183: uint16(24102), + 184: uint16(27526), + 185: uint16(20195), + 186: uint16(36151), + 187: uint16(34955), + 188: uint16(24453), + 189: uint16(36910), + }, + 52: { + 0: uint16(30989), + 1: uint16(30990), + 2: uint16(30991), + 3: uint16(30992), + 4: uint16(30993), + 5: uint16(30994), + 6: uint16(30996), + 7: uint16(30997), + 8: uint16(30998), + 9: uint16(30999), + 10: uint16(31000), + 11: uint16(31001), + 12: uint16(31002), + 13: uint16(31003), + 14: uint16(31004), + 15: uint16(31005), + 16: uint16(31007), + 17: uint16(31008), + 18: uint16(31009), + 19: uint16(31010), + 20: uint16(31011), + 21: uint16(31013), + 22: uint16(31014), + 23: uint16(31015), + 24: uint16(31016), + 25: uint16(31017), + 26: uint16(31018), + 27: uint16(31019), + 28: uint16(31020), + 29: uint16(31021), + 30: uint16(31022), + 31: uint16(31023), + 32: uint16(31024), + 33: uint16(31025), + 34: uint16(31026), + 35: uint16(31027), + 36: uint16(31029), + 37: uint16(31030), + 38: uint16(31031), + 39: uint16(31032), + 40: uint16(31033), + 41: uint16(31037), + 42: uint16(31039), + 43: uint16(31042), + 44: uint16(31043), + 45: uint16(31044), + 46: uint16(31045), + 47: uint16(31047), + 48: uint16(31050), + 49: uint16(31051), + 50: uint16(31052), + 51: uint16(31053), + 52: uint16(31054), + 53: uint16(31055), + 54: uint16(31056), + 55: uint16(31057), + 56: uint16(31058), + 57: uint16(31060), + 58: uint16(31061), + 59: uint16(31064), + 60: uint16(31065), + 61: uint16(31073), + 62: uint16(31075), + 63: uint16(31076), + 64: uint16(31078), + 65: uint16(31081), + 66: uint16(31082), + 67: uint16(31083), + 68: uint16(31084), + 69: uint16(31086), + 70: uint16(31088), + 71: uint16(31089), + 72: uint16(31090), + 73: uint16(31091), + 74: uint16(31092), + 75: uint16(31093), + 76: uint16(31094), + 77: uint16(31097), + 78: uint16(31099), + 79: uint16(31100), + 80: uint16(31101), + 81: uint16(31102), + 82: uint16(31103), + 83: uint16(31106), + 84: uint16(31107), + 85: uint16(31110), + 86: uint16(31111), + 87: uint16(31112), + 88: uint16(31113), + 89: uint16(31115), + 90: uint16(31116), + 91: uint16(31117), + 92: uint16(31118), + 93: uint16(31120), + 94: uint16(31121), + 95: uint16(31122), + 96: uint16(24608), + 97: uint16(32829), + 98: uint16(25285), + 99: uint16(20025), + 100: uint16(21333), + 101: uint16(37112), + 102: uint16(25528), + 103: uint16(32966), + 104: uint16(26086), + 105: uint16(27694), + 106: uint16(20294), + 107: uint16(24814), + 108: uint16(28129), + 109: uint16(35806), + 110: uint16(24377), + 111: uint16(34507), + 112: uint16(24403), + 113: uint16(25377), + 114: uint16(20826), + 115: uint16(33633), + 116: uint16(26723), + 117: uint16(20992), + 118: uint16(25443), + 119: uint16(36424), + 120: uint16(20498), + 121: uint16(23707), + 122: uint16(31095), + 123: uint16(23548), + 124: uint16(21040), + 125: uint16(31291), + 126: uint16(24764), + 127: uint16(36947), + 128: uint16(30423), + 129: uint16(24503), + 130: uint16(24471), + 131: uint16(30340), + 132: uint16(36460), + 133: uint16(28783), + 134: uint16(30331), + 135: uint16(31561), + 136: uint16(30634), + 137: uint16(20979), + 138: uint16(37011), + 139: uint16(22564), + 140: uint16(20302), + 141: uint16(28404), + 142: uint16(36842), + 143: uint16(25932), + 144: uint16(31515), + 145: uint16(29380), + 146: uint16(28068), + 147: uint16(32735), + 148: uint16(23265), + 149: uint16(25269), + 150: uint16(24213), + 151: uint16(22320), + 152: uint16(33922), + 153: uint16(31532), + 154: uint16(24093), + 155: uint16(24351), + 156: uint16(36882), + 157: uint16(32532), + 158: uint16(39072), + 159: uint16(25474), + 160: uint16(28359), + 161: uint16(30872), + 162: uint16(28857), + 163: uint16(20856), + 164: uint16(38747), + 165: uint16(22443), + 166: uint16(30005), + 167: uint16(20291), + 168: uint16(30008), + 169: uint16(24215), + 170: uint16(24806), + 171: uint16(22880), + 172: uint16(28096), + 173: uint16(27583), + 174: uint16(30857), + 175: uint16(21500), + 176: uint16(38613), + 177: uint16(20939), + 178: uint16(20993), + 179: uint16(25481), + 180: uint16(21514), + 181: uint16(38035), + 182: uint16(35843), + 183: uint16(36300), + 184: uint16(29241), + 185: uint16(30879), + 186: uint16(34678), + 187: uint16(36845), + 188: uint16(35853), + 189: uint16(21472), + }, + 53: { + 0: uint16(31123), + 1: uint16(31124), + 2: uint16(31125), + 3: uint16(31126), + 4: uint16(31127), + 5: uint16(31128), + 6: uint16(31129), + 7: uint16(31131), + 8: uint16(31132), + 9: uint16(31133), + 10: uint16(31134), + 11: uint16(31135), + 12: uint16(31136), + 13: uint16(31137), + 14: uint16(31138), + 15: uint16(31139), + 16: uint16(31140), + 17: uint16(31141), + 18: uint16(31142), + 19: uint16(31144), + 20: uint16(31145), + 21: uint16(31146), + 22: uint16(31147), + 23: uint16(31148), + 24: uint16(31149), + 25: uint16(31150), + 26: uint16(31151), + 27: uint16(31152), + 28: uint16(31153), + 29: uint16(31154), + 30: uint16(31156), + 31: uint16(31157), + 32: uint16(31158), + 33: uint16(31159), + 34: uint16(31160), + 35: uint16(31164), + 36: uint16(31167), + 37: uint16(31170), + 38: uint16(31172), + 39: uint16(31173), + 40: uint16(31175), + 41: uint16(31176), + 42: uint16(31178), + 43: uint16(31180), + 44: uint16(31182), + 45: uint16(31183), + 46: uint16(31184), + 47: uint16(31187), + 48: uint16(31188), + 49: uint16(31190), + 50: uint16(31191), + 51: uint16(31193), + 52: uint16(31194), + 53: uint16(31195), + 54: uint16(31196), + 55: uint16(31197), + 56: uint16(31198), + 57: uint16(31200), + 58: uint16(31201), + 59: uint16(31202), + 60: uint16(31205), + 61: uint16(31208), + 62: uint16(31210), + 63: uint16(31212), + 64: uint16(31214), + 65: uint16(31217), + 66: uint16(31218), + 67: uint16(31219), + 68: uint16(31220), + 69: uint16(31221), + 70: uint16(31222), + 71: uint16(31223), + 72: uint16(31225), + 73: uint16(31226), + 74: uint16(31228), + 75: uint16(31230), + 76: uint16(31231), + 77: uint16(31233), + 78: uint16(31236), + 79: uint16(31237), + 80: uint16(31239), + 81: uint16(31240), + 82: uint16(31241), + 83: uint16(31242), + 84: uint16(31244), + 85: uint16(31247), + 86: uint16(31248), + 87: uint16(31249), + 88: uint16(31250), + 89: uint16(31251), + 90: uint16(31253), + 91: uint16(31254), + 92: uint16(31256), + 93: uint16(31257), + 94: uint16(31259), + 95: uint16(31260), + 96: uint16(19969), + 97: uint16(30447), + 98: uint16(21486), + 99: uint16(38025), + 100: uint16(39030), + 101: uint16(40718), + 102: uint16(38189), + 103: uint16(23450), + 104: uint16(35746), + 105: uint16(20002), + 106: uint16(19996), + 107: uint16(20908), + 108: uint16(33891), + 109: uint16(25026), + 110: uint16(21160), + 111: uint16(26635), + 112: uint16(20375), + 113: uint16(24683), + 114: uint16(20923), + 115: uint16(27934), + 116: uint16(20828), + 117: uint16(25238), + 118: uint16(26007), + 119: uint16(38497), + 120: uint16(35910), + 121: uint16(36887), + 122: uint16(30168), + 123: uint16(37117), + 124: uint16(30563), + 125: uint16(27602), + 126: uint16(29322), + 127: uint16(29420), + 128: uint16(35835), + 129: uint16(22581), + 130: uint16(30585), + 131: uint16(36172), + 132: uint16(26460), + 133: uint16(38208), + 134: uint16(32922), + 135: uint16(24230), + 136: uint16(28193), + 137: uint16(22930), + 138: uint16(31471), + 139: uint16(30701), + 140: uint16(38203), + 141: uint16(27573), + 142: uint16(26029), + 143: uint16(32526), + 144: uint16(22534), + 145: uint16(20817), + 146: uint16(38431), + 147: uint16(23545), + 148: uint16(22697), + 149: uint16(21544), + 150: uint16(36466), + 151: uint16(25958), + 152: uint16(39039), + 153: uint16(22244), + 154: uint16(38045), + 155: uint16(30462), + 156: uint16(36929), + 157: uint16(25479), + 158: uint16(21702), + 159: uint16(22810), + 160: uint16(22842), + 161: uint16(22427), + 162: uint16(36530), + 163: uint16(26421), + 164: uint16(36346), + 165: uint16(33333), + 166: uint16(21057), + 167: uint16(24816), + 168: uint16(22549), + 169: uint16(34558), + 170: uint16(23784), + 171: uint16(40517), + 172: uint16(20420), + 173: uint16(39069), + 174: uint16(35769), + 175: uint16(23077), + 176: uint16(24694), + 177: uint16(21380), + 178: uint16(25212), + 179: uint16(36943), + 180: uint16(37122), + 181: uint16(39295), + 182: uint16(24681), + 183: uint16(32780), + 184: uint16(20799), + 185: uint16(32819), + 186: uint16(23572), + 187: uint16(39285), + 188: uint16(27953), + 189: uint16(20108), + }, + 54: { + 0: uint16(31261), + 1: uint16(31263), + 2: uint16(31265), + 3: uint16(31266), + 4: uint16(31268), + 5: uint16(31269), + 6: uint16(31270), + 7: uint16(31271), + 8: uint16(31272), + 9: uint16(31273), + 10: uint16(31274), + 11: uint16(31275), + 12: uint16(31276), + 13: uint16(31277), + 14: uint16(31278), + 15: uint16(31279), + 16: uint16(31280), + 17: uint16(31281), + 18: uint16(31282), + 19: uint16(31284), + 20: uint16(31285), + 21: uint16(31286), + 22: uint16(31288), + 23: uint16(31290), + 24: uint16(31294), + 25: uint16(31296), + 26: uint16(31297), + 27: uint16(31298), + 28: uint16(31299), + 29: uint16(31300), + 30: uint16(31301), + 31: uint16(31303), + 32: uint16(31304), + 33: uint16(31305), + 34: uint16(31306), + 35: uint16(31307), + 36: uint16(31308), + 37: uint16(31309), + 38: uint16(31310), + 39: uint16(31311), + 40: uint16(31312), + 41: uint16(31314), + 42: uint16(31315), + 43: uint16(31316), + 44: uint16(31317), + 45: uint16(31318), + 46: uint16(31320), + 47: uint16(31321), + 48: uint16(31322), + 49: uint16(31323), + 50: uint16(31324), + 51: uint16(31325), + 52: uint16(31326), + 53: uint16(31327), + 54: uint16(31328), + 55: uint16(31329), + 56: uint16(31330), + 57: uint16(31331), + 58: uint16(31332), + 59: uint16(31333), + 60: uint16(31334), + 61: uint16(31335), + 62: uint16(31336), + 63: uint16(31337), + 64: uint16(31338), + 65: uint16(31339), + 66: uint16(31340), + 67: uint16(31341), + 68: uint16(31342), + 69: uint16(31343), + 70: uint16(31345), + 71: uint16(31346), + 72: uint16(31347), + 73: uint16(31349), + 74: uint16(31355), + 75: uint16(31356), + 76: uint16(31357), + 77: uint16(31358), + 78: uint16(31362), + 79: uint16(31365), + 80: uint16(31367), + 81: uint16(31369), + 82: uint16(31370), + 83: uint16(31371), + 84: uint16(31372), + 85: uint16(31374), + 86: uint16(31375), + 87: uint16(31376), + 88: uint16(31379), + 89: uint16(31380), + 90: uint16(31385), + 91: uint16(31386), + 92: uint16(31387), + 93: uint16(31390), + 94: uint16(31393), + 95: uint16(31394), + 96: uint16(36144), + 97: uint16(21457), + 98: uint16(32602), + 99: uint16(31567), + 100: uint16(20240), + 101: uint16(20047), + 102: uint16(38400), + 103: uint16(27861), + 104: uint16(29648), + 105: uint16(34281), + 106: uint16(24070), + 107: uint16(30058), + 108: uint16(32763), + 109: uint16(27146), + 110: uint16(30718), + 111: uint16(38034), + 112: uint16(32321), + 113: uint16(20961), + 114: uint16(28902), + 115: uint16(21453), + 116: uint16(36820), + 117: uint16(33539), + 118: uint16(36137), + 119: uint16(29359), + 120: uint16(39277), + 121: uint16(27867), + 122: uint16(22346), + 123: uint16(33459), + 124: uint16(26041), + 125: uint16(32938), + 126: uint16(25151), + 127: uint16(38450), + 128: uint16(22952), + 129: uint16(20223), + 130: uint16(35775), + 131: uint16(32442), + 132: uint16(25918), + 133: uint16(33778), + 134: uint16(38750), + 135: uint16(21857), + 136: uint16(39134), + 137: uint16(32933), + 138: uint16(21290), + 139: uint16(35837), + 140: uint16(21536), + 141: uint16(32954), + 142: uint16(24223), + 143: uint16(27832), + 144: uint16(36153), + 145: uint16(33452), + 146: uint16(37210), + 147: uint16(21545), + 148: uint16(27675), + 149: uint16(20998), + 150: uint16(32439), + 151: uint16(22367), + 152: uint16(28954), + 153: uint16(27774), + 154: uint16(31881), + 155: uint16(22859), + 156: uint16(20221), + 157: uint16(24575), + 158: uint16(24868), + 159: uint16(31914), + 160: uint16(20016), + 161: uint16(23553), + 162: uint16(26539), + 163: uint16(34562), + 164: uint16(23792), + 165: uint16(38155), + 166: uint16(39118), + 167: uint16(30127), + 168: uint16(28925), + 169: uint16(36898), + 170: uint16(20911), + 171: uint16(32541), + 172: uint16(35773), + 173: uint16(22857), + 174: uint16(20964), + 175: uint16(20315), + 176: uint16(21542), + 177: uint16(22827), + 178: uint16(25975), + 179: uint16(32932), + 180: uint16(23413), + 181: uint16(25206), + 182: uint16(25282), + 183: uint16(36752), + 184: uint16(24133), + 185: uint16(27679), + 186: uint16(31526), + 187: uint16(20239), + 188: uint16(20440), + 189: uint16(26381), + }, + 55: { + 0: uint16(31395), + 1: uint16(31396), + 2: uint16(31399), + 3: uint16(31401), + 4: uint16(31402), + 5: uint16(31403), + 6: uint16(31406), + 7: uint16(31407), + 8: uint16(31408), + 9: uint16(31409), + 10: uint16(31410), + 11: uint16(31412), + 12: uint16(31413), + 13: uint16(31414), + 14: uint16(31415), + 15: uint16(31416), + 16: uint16(31417), + 17: uint16(31418), + 18: uint16(31419), + 19: uint16(31420), + 20: uint16(31421), + 21: uint16(31422), + 22: uint16(31424), + 23: uint16(31425), + 24: uint16(31426), + 25: uint16(31427), + 26: uint16(31428), + 27: uint16(31429), + 28: uint16(31430), + 29: uint16(31431), + 30: uint16(31432), + 31: uint16(31433), + 32: uint16(31434), + 33: uint16(31436), + 34: uint16(31437), + 35: uint16(31438), + 36: uint16(31439), + 37: uint16(31440), + 38: uint16(31441), + 39: uint16(31442), + 40: uint16(31443), + 41: uint16(31444), + 42: uint16(31445), + 43: uint16(31447), + 44: uint16(31448), + 45: uint16(31450), + 46: uint16(31451), + 47: uint16(31452), + 48: uint16(31453), + 49: uint16(31457), + 50: uint16(31458), + 51: uint16(31460), + 52: uint16(31463), + 53: uint16(31464), + 54: uint16(31465), + 55: uint16(31466), + 56: uint16(31467), + 57: uint16(31468), + 58: uint16(31470), + 59: uint16(31472), + 60: uint16(31473), + 61: uint16(31474), + 62: uint16(31475), + 63: uint16(31476), + 64: uint16(31477), + 65: uint16(31478), + 66: uint16(31479), + 67: uint16(31480), + 68: uint16(31483), + 69: uint16(31484), + 70: uint16(31486), + 71: uint16(31488), + 72: uint16(31489), + 73: uint16(31490), + 74: uint16(31493), + 75: uint16(31495), + 76: uint16(31497), + 77: uint16(31500), + 78: uint16(31501), + 79: uint16(31502), + 80: uint16(31504), + 81: uint16(31506), + 82: uint16(31507), + 83: uint16(31510), + 84: uint16(31511), + 85: uint16(31512), + 86: uint16(31514), + 87: uint16(31516), + 88: uint16(31517), + 89: uint16(31519), + 90: uint16(31521), + 91: uint16(31522), + 92: uint16(31523), + 93: uint16(31527), + 94: uint16(31529), + 95: uint16(31533), + 96: uint16(28014), + 97: uint16(28074), + 98: uint16(31119), + 99: uint16(34993), + 100: uint16(24343), + 101: uint16(29995), + 102: uint16(25242), + 103: uint16(36741), + 104: uint16(20463), + 105: uint16(37340), + 106: uint16(26023), + 107: uint16(33071), + 108: uint16(33105), + 109: uint16(24220), + 110: uint16(33104), + 111: uint16(36212), + 112: uint16(21103), + 113: uint16(35206), + 114: uint16(36171), + 115: uint16(22797), + 116: uint16(20613), + 117: uint16(20184), + 118: uint16(38428), + 119: uint16(29238), + 120: uint16(33145), + 121: uint16(36127), + 122: uint16(23500), + 123: uint16(35747), + 124: uint16(38468), + 125: uint16(22919), + 126: uint16(32538), + 127: uint16(21648), + 128: uint16(22134), + 129: uint16(22030), + 130: uint16(35813), + 131: uint16(25913), + 132: uint16(27010), + 133: uint16(38041), + 134: uint16(30422), + 135: uint16(28297), + 136: uint16(24178), + 137: uint16(29976), + 138: uint16(26438), + 139: uint16(26577), + 140: uint16(31487), + 141: uint16(32925), + 142: uint16(36214), + 143: uint16(24863), + 144: uint16(31174), + 145: uint16(25954), + 146: uint16(36195), + 147: uint16(20872), + 148: uint16(21018), + 149: uint16(38050), + 150: uint16(32568), + 151: uint16(32923), + 152: uint16(32434), + 153: uint16(23703), + 154: uint16(28207), + 155: uint16(26464), + 156: uint16(31705), + 157: uint16(30347), + 158: uint16(39640), + 159: uint16(33167), + 160: uint16(32660), + 161: uint16(31957), + 162: uint16(25630), + 163: uint16(38224), + 164: uint16(31295), + 165: uint16(21578), + 166: uint16(21733), + 167: uint16(27468), + 168: uint16(25601), + 169: uint16(25096), + 170: uint16(40509), + 171: uint16(33011), + 172: uint16(30105), + 173: uint16(21106), + 174: uint16(38761), + 175: uint16(33883), + 176: uint16(26684), + 177: uint16(34532), + 178: uint16(38401), + 179: uint16(38548), + 180: uint16(38124), + 181: uint16(20010), + 182: uint16(21508), + 183: uint16(32473), + 184: uint16(26681), + 185: uint16(36319), + 186: uint16(32789), + 187: uint16(26356), + 188: uint16(24218), + 189: uint16(32697), + }, + 56: { + 0: uint16(31535), + 1: uint16(31536), + 2: uint16(31538), + 3: uint16(31540), + 4: uint16(31541), + 5: uint16(31542), + 6: uint16(31543), + 7: uint16(31545), + 8: uint16(31547), + 9: uint16(31549), + 10: uint16(31551), + 11: uint16(31552), + 12: uint16(31553), + 13: uint16(31554), + 14: uint16(31555), + 15: uint16(31556), + 16: uint16(31558), + 17: uint16(31560), + 18: uint16(31562), + 19: uint16(31565), + 20: uint16(31566), + 21: uint16(31571), + 22: uint16(31573), + 23: uint16(31575), + 24: uint16(31577), + 25: uint16(31580), + 26: uint16(31582), + 27: uint16(31583), + 28: uint16(31585), + 29: uint16(31587), + 30: uint16(31588), + 31: uint16(31589), + 32: uint16(31590), + 33: uint16(31591), + 34: uint16(31592), + 35: uint16(31593), + 36: uint16(31594), + 37: uint16(31595), + 38: uint16(31596), + 39: uint16(31597), + 40: uint16(31599), + 41: uint16(31600), + 42: uint16(31603), + 43: uint16(31604), + 44: uint16(31606), + 45: uint16(31608), + 46: uint16(31610), + 47: uint16(31612), + 48: uint16(31613), + 49: uint16(31615), + 50: uint16(31617), + 51: uint16(31618), + 52: uint16(31619), + 53: uint16(31620), + 54: uint16(31622), + 55: uint16(31623), + 56: uint16(31624), + 57: uint16(31625), + 58: uint16(31626), + 59: uint16(31627), + 60: uint16(31628), + 61: uint16(31630), + 62: uint16(31631), + 63: uint16(31633), + 64: uint16(31634), + 65: uint16(31635), + 66: uint16(31638), + 67: uint16(31640), + 68: uint16(31641), + 69: uint16(31642), + 70: uint16(31643), + 71: uint16(31646), + 72: uint16(31647), + 73: uint16(31648), + 74: uint16(31651), + 75: uint16(31652), + 76: uint16(31653), + 77: uint16(31662), + 78: uint16(31663), + 79: uint16(31664), + 80: uint16(31666), + 81: uint16(31667), + 82: uint16(31669), + 83: uint16(31670), + 84: uint16(31671), + 85: uint16(31673), + 86: uint16(31674), + 87: uint16(31675), + 88: uint16(31676), + 89: uint16(31677), + 90: uint16(31678), + 91: uint16(31679), + 92: uint16(31680), + 93: uint16(31682), + 94: uint16(31683), + 95: uint16(31684), + 96: uint16(22466), + 97: uint16(32831), + 98: uint16(26775), + 99: uint16(24037), + 100: uint16(25915), + 101: uint16(21151), + 102: uint16(24685), + 103: uint16(40858), + 104: uint16(20379), + 105: uint16(36524), + 106: uint16(20844), + 107: uint16(23467), + 108: uint16(24339), + 109: uint16(24041), + 110: uint16(27742), + 111: uint16(25329), + 112: uint16(36129), + 113: uint16(20849), + 114: uint16(38057), + 115: uint16(21246), + 116: uint16(27807), + 117: uint16(33503), + 118: uint16(29399), + 119: uint16(22434), + 120: uint16(26500), + 121: uint16(36141), + 122: uint16(22815), + 123: uint16(36764), + 124: uint16(33735), + 125: uint16(21653), + 126: uint16(31629), + 127: uint16(20272), + 128: uint16(27837), + 129: uint16(23396), + 130: uint16(22993), + 131: uint16(40723), + 132: uint16(21476), + 133: uint16(34506), + 134: uint16(39592), + 135: uint16(35895), + 136: uint16(32929), + 137: uint16(25925), + 138: uint16(39038), + 139: uint16(22266), + 140: uint16(38599), + 141: uint16(21038), + 142: uint16(29916), + 143: uint16(21072), + 144: uint16(23521), + 145: uint16(25346), + 146: uint16(35074), + 147: uint16(20054), + 148: uint16(25296), + 149: uint16(24618), + 150: uint16(26874), + 151: uint16(20851), + 152: uint16(23448), + 153: uint16(20896), + 154: uint16(35266), + 155: uint16(31649), + 156: uint16(39302), + 157: uint16(32592), + 158: uint16(24815), + 159: uint16(28748), + 160: uint16(36143), + 161: uint16(20809), + 162: uint16(24191), + 163: uint16(36891), + 164: uint16(29808), + 165: uint16(35268), + 166: uint16(22317), + 167: uint16(30789), + 168: uint16(24402), + 169: uint16(40863), + 170: uint16(38394), + 171: uint16(36712), + 172: uint16(39740), + 173: uint16(35809), + 174: uint16(30328), + 175: uint16(26690), + 176: uint16(26588), + 177: uint16(36330), + 178: uint16(36149), + 179: uint16(21053), + 180: uint16(36746), + 181: uint16(28378), + 182: uint16(26829), + 183: uint16(38149), + 184: uint16(37101), + 185: uint16(22269), + 186: uint16(26524), + 187: uint16(35065), + 188: uint16(36807), + 189: uint16(21704), + }, + 57: { + 0: uint16(31685), + 1: uint16(31688), + 2: uint16(31689), + 3: uint16(31690), + 4: uint16(31691), + 5: uint16(31693), + 6: uint16(31694), + 7: uint16(31695), + 8: uint16(31696), + 9: uint16(31698), + 10: uint16(31700), + 11: uint16(31701), + 12: uint16(31702), + 13: uint16(31703), + 14: uint16(31704), + 15: uint16(31707), + 16: uint16(31708), + 17: uint16(31710), + 18: uint16(31711), + 19: uint16(31712), + 20: uint16(31714), + 21: uint16(31715), + 22: uint16(31716), + 23: uint16(31719), + 24: uint16(31720), + 25: uint16(31721), + 26: uint16(31723), + 27: uint16(31724), + 28: uint16(31725), + 29: uint16(31727), + 30: uint16(31728), + 31: uint16(31730), + 32: uint16(31731), + 33: uint16(31732), + 34: uint16(31733), + 35: uint16(31734), + 36: uint16(31736), + 37: uint16(31737), + 38: uint16(31738), + 39: uint16(31739), + 40: uint16(31741), + 41: uint16(31743), + 42: uint16(31744), + 43: uint16(31745), + 44: uint16(31746), + 45: uint16(31747), + 46: uint16(31748), + 47: uint16(31749), + 48: uint16(31750), + 49: uint16(31752), + 50: uint16(31753), + 51: uint16(31754), + 52: uint16(31757), + 53: uint16(31758), + 54: uint16(31760), + 55: uint16(31761), + 56: uint16(31762), + 57: uint16(31763), + 58: uint16(31764), + 59: uint16(31765), + 60: uint16(31767), + 61: uint16(31768), + 62: uint16(31769), + 63: uint16(31770), + 64: uint16(31771), + 65: uint16(31772), + 66: uint16(31773), + 67: uint16(31774), + 68: uint16(31776), + 69: uint16(31777), + 70: uint16(31778), + 71: uint16(31779), + 72: uint16(31780), + 73: uint16(31781), + 74: uint16(31784), + 75: uint16(31785), + 76: uint16(31787), + 77: uint16(31788), + 78: uint16(31789), + 79: uint16(31790), + 80: uint16(31791), + 81: uint16(31792), + 82: uint16(31793), + 83: uint16(31794), + 84: uint16(31795), + 85: uint16(31796), + 86: uint16(31797), + 87: uint16(31798), + 88: uint16(31799), + 89: uint16(31801), + 90: uint16(31802), + 91: uint16(31803), + 92: uint16(31804), + 93: uint16(31805), + 94: uint16(31806), + 95: uint16(31810), + 96: uint16(39608), + 97: uint16(23401), + 98: uint16(28023), + 99: uint16(27686), + 100: uint16(20133), + 101: uint16(23475), + 102: uint16(39559), + 103: uint16(37219), + 104: uint16(25000), + 105: uint16(37039), + 106: uint16(38889), + 107: uint16(21547), + 108: uint16(28085), + 109: uint16(23506), + 110: uint16(20989), + 111: uint16(21898), + 112: uint16(32597), + 113: uint16(32752), + 114: uint16(25788), + 115: uint16(25421), + 116: uint16(26097), + 117: uint16(25022), + 118: uint16(24717), + 119: uint16(28938), + 120: uint16(27735), + 121: uint16(27721), + 122: uint16(22831), + 123: uint16(26477), + 124: uint16(33322), + 125: uint16(22741), + 126: uint16(22158), + 127: uint16(35946), + 128: uint16(27627), + 129: uint16(37085), + 130: uint16(22909), + 131: uint16(32791), + 132: uint16(21495), + 133: uint16(28009), + 134: uint16(21621), + 135: uint16(21917), + 136: uint16(33655), + 137: uint16(33743), + 138: uint16(26680), + 139: uint16(31166), + 140: uint16(21644), + 141: uint16(20309), + 142: uint16(21512), + 143: uint16(30418), + 144: uint16(35977), + 145: uint16(38402), + 146: uint16(27827), + 147: uint16(28088), + 148: uint16(36203), + 149: uint16(35088), + 150: uint16(40548), + 151: uint16(36154), + 152: uint16(22079), + 153: uint16(40657), + 154: uint16(30165), + 155: uint16(24456), + 156: uint16(29408), + 157: uint16(24680), + 158: uint16(21756), + 159: uint16(20136), + 160: uint16(27178), + 161: uint16(34913), + 162: uint16(24658), + 163: uint16(36720), + 164: uint16(21700), + 165: uint16(28888), + 166: uint16(34425), + 167: uint16(40511), + 168: uint16(27946), + 169: uint16(23439), + 170: uint16(24344), + 171: uint16(32418), + 172: uint16(21897), + 173: uint16(20399), + 174: uint16(29492), + 175: uint16(21564), + 176: uint16(21402), + 177: uint16(20505), + 178: uint16(21518), + 179: uint16(21628), + 180: uint16(20046), + 181: uint16(24573), + 182: uint16(29786), + 183: uint16(22774), + 184: uint16(33899), + 185: uint16(32993), + 186: uint16(34676), + 187: uint16(29392), + 188: uint16(31946), + 189: uint16(28246), + }, + 58: { + 0: uint16(31811), + 1: uint16(31812), + 2: uint16(31813), + 3: uint16(31814), + 4: uint16(31815), + 5: uint16(31816), + 6: uint16(31817), + 7: uint16(31818), + 8: uint16(31819), + 9: uint16(31820), + 10: uint16(31822), + 11: uint16(31823), + 12: uint16(31824), + 13: uint16(31825), + 14: uint16(31826), + 15: uint16(31827), + 16: uint16(31828), + 17: uint16(31829), + 18: uint16(31830), + 19: uint16(31831), + 20: uint16(31832), + 21: uint16(31833), + 22: uint16(31834), + 23: uint16(31835), + 24: uint16(31836), + 25: uint16(31837), + 26: uint16(31838), + 27: uint16(31839), + 28: uint16(31840), + 29: uint16(31841), + 30: uint16(31842), + 31: uint16(31843), + 32: uint16(31844), + 33: uint16(31845), + 34: uint16(31846), + 35: uint16(31847), + 36: uint16(31848), + 37: uint16(31849), + 38: uint16(31850), + 39: uint16(31851), + 40: uint16(31852), + 41: uint16(31853), + 42: uint16(31854), + 43: uint16(31855), + 44: uint16(31856), + 45: uint16(31857), + 46: uint16(31858), + 47: uint16(31861), + 48: uint16(31862), + 49: uint16(31863), + 50: uint16(31864), + 51: uint16(31865), + 52: uint16(31866), + 53: uint16(31870), + 54: uint16(31871), + 55: uint16(31872), + 56: uint16(31873), + 57: uint16(31874), + 58: uint16(31875), + 59: uint16(31876), + 60: uint16(31877), + 61: uint16(31878), + 62: uint16(31879), + 63: uint16(31880), + 64: uint16(31882), + 65: uint16(31883), + 66: uint16(31884), + 67: uint16(31885), + 68: uint16(31886), + 69: uint16(31887), + 70: uint16(31888), + 71: uint16(31891), + 72: uint16(31892), + 73: uint16(31894), + 74: uint16(31897), + 75: uint16(31898), + 76: uint16(31899), + 77: uint16(31904), + 78: uint16(31905), + 79: uint16(31907), + 80: uint16(31910), + 81: uint16(31911), + 82: uint16(31912), + 83: uint16(31913), + 84: uint16(31915), + 85: uint16(31916), + 86: uint16(31917), + 87: uint16(31919), + 88: uint16(31920), + 89: uint16(31924), + 90: uint16(31925), + 91: uint16(31926), + 92: uint16(31927), + 93: uint16(31928), + 94: uint16(31930), + 95: uint16(31931), + 96: uint16(24359), + 97: uint16(34382), + 98: uint16(21804), + 99: uint16(25252), + 100: uint16(20114), + 101: uint16(27818), + 102: uint16(25143), + 103: uint16(33457), + 104: uint16(21719), + 105: uint16(21326), + 106: uint16(29502), + 107: uint16(28369), + 108: uint16(30011), + 109: uint16(21010), + 110: uint16(21270), + 111: uint16(35805), + 112: uint16(27088), + 113: uint16(24458), + 114: uint16(24576), + 115: uint16(28142), + 116: uint16(22351), + 117: uint16(27426), + 118: uint16(29615), + 119: uint16(26707), + 120: uint16(36824), + 121: uint16(32531), + 122: uint16(25442), + 123: uint16(24739), + 124: uint16(21796), + 125: uint16(30186), + 126: uint16(35938), + 127: uint16(28949), + 128: uint16(28067), + 129: uint16(23462), + 130: uint16(24187), + 131: uint16(33618), + 132: uint16(24908), + 133: uint16(40644), + 134: uint16(30970), + 135: uint16(34647), + 136: uint16(31783), + 137: uint16(30343), + 138: uint16(20976), + 139: uint16(24822), + 140: uint16(29004), + 141: uint16(26179), + 142: uint16(24140), + 143: uint16(24653), + 144: uint16(35854), + 145: uint16(28784), + 146: uint16(25381), + 147: uint16(36745), + 148: uint16(24509), + 149: uint16(24674), + 150: uint16(34516), + 151: uint16(22238), + 152: uint16(27585), + 153: uint16(24724), + 154: uint16(24935), + 155: uint16(21321), + 156: uint16(24800), + 157: uint16(26214), + 158: uint16(36159), + 159: uint16(31229), + 160: uint16(20250), + 161: uint16(28905), + 162: uint16(27719), + 163: uint16(35763), + 164: uint16(35826), + 165: uint16(32472), + 166: uint16(33636), + 167: uint16(26127), + 168: uint16(23130), + 169: uint16(39746), + 170: uint16(27985), + 171: uint16(28151), + 172: uint16(35905), + 173: uint16(27963), + 174: uint16(20249), + 175: uint16(28779), + 176: uint16(33719), + 177: uint16(25110), + 178: uint16(24785), + 179: uint16(38669), + 180: uint16(36135), + 181: uint16(31096), + 182: uint16(20987), + 183: uint16(22334), + 184: uint16(22522), + 185: uint16(26426), + 186: uint16(30072), + 187: uint16(31293), + 188: uint16(31215), + 189: uint16(31637), + }, + 59: { + 0: uint16(31935), + 1: uint16(31936), + 2: uint16(31938), + 3: uint16(31939), + 4: uint16(31940), + 5: uint16(31942), + 6: uint16(31945), + 7: uint16(31947), + 8: uint16(31950), + 9: uint16(31951), + 10: uint16(31952), + 11: uint16(31953), + 12: uint16(31954), + 13: uint16(31955), + 14: uint16(31956), + 15: uint16(31960), + 16: uint16(31962), + 17: uint16(31963), + 18: uint16(31965), + 19: uint16(31966), + 20: uint16(31969), + 21: uint16(31970), + 22: uint16(31971), + 23: uint16(31972), + 24: uint16(31973), + 25: uint16(31974), + 26: uint16(31975), + 27: uint16(31977), + 28: uint16(31978), + 29: uint16(31979), + 30: uint16(31980), + 31: uint16(31981), + 32: uint16(31982), + 33: uint16(31984), + 34: uint16(31985), + 35: uint16(31986), + 36: uint16(31987), + 37: uint16(31988), + 38: uint16(31989), + 39: uint16(31990), + 40: uint16(31991), + 41: uint16(31993), + 42: uint16(31994), + 43: uint16(31996), + 44: uint16(31997), + 45: uint16(31998), + 46: uint16(31999), + 47: uint16(32000), + 48: uint16(32001), + 49: uint16(32002), + 50: uint16(32003), + 51: uint16(32004), + 52: uint16(32005), + 53: uint16(32006), + 54: uint16(32007), + 55: uint16(32008), + 56: uint16(32009), + 57: uint16(32011), + 58: uint16(32012), + 59: uint16(32013), + 60: uint16(32014), + 61: uint16(32015), + 62: uint16(32016), + 63: uint16(32017), + 64: uint16(32018), + 65: uint16(32019), + 66: uint16(32020), + 67: uint16(32021), + 68: uint16(32022), + 69: uint16(32023), + 70: uint16(32024), + 71: uint16(32025), + 72: uint16(32026), + 73: uint16(32027), + 74: uint16(32028), + 75: uint16(32029), + 76: uint16(32030), + 77: uint16(32031), + 78: uint16(32033), + 79: uint16(32035), + 80: uint16(32036), + 81: uint16(32037), + 82: uint16(32038), + 83: uint16(32040), + 84: uint16(32041), + 85: uint16(32042), + 86: uint16(32044), + 87: uint16(32045), + 88: uint16(32046), + 89: uint16(32048), + 90: uint16(32049), + 91: uint16(32050), + 92: uint16(32051), + 93: uint16(32052), + 94: uint16(32053), + 95: uint16(32054), + 96: uint16(32908), + 97: uint16(39269), + 98: uint16(36857), + 99: uint16(28608), + 100: uint16(35749), + 101: uint16(40481), + 102: uint16(23020), + 103: uint16(32489), + 104: uint16(32521), + 105: uint16(21513), + 106: uint16(26497), + 107: uint16(26840), + 108: uint16(36753), + 109: uint16(31821), + 110: uint16(38598), + 111: uint16(21450), + 112: uint16(24613), + 113: uint16(30142), + 114: uint16(27762), + 115: uint16(21363), + 116: uint16(23241), + 117: uint16(32423), + 118: uint16(25380), + 119: uint16(20960), + 120: uint16(33034), + 121: uint16(24049), + 122: uint16(34015), + 123: uint16(25216), + 124: uint16(20864), + 125: uint16(23395), + 126: uint16(20238), + 127: uint16(31085), + 128: uint16(21058), + 129: uint16(24760), + 130: uint16(27982), + 131: uint16(23492), + 132: uint16(23490), + 133: uint16(35745), + 134: uint16(35760), + 135: uint16(26082), + 136: uint16(24524), + 137: uint16(38469), + 138: uint16(22931), + 139: uint16(32487), + 140: uint16(32426), + 141: uint16(22025), + 142: uint16(26551), + 143: uint16(22841), + 144: uint16(20339), + 145: uint16(23478), + 146: uint16(21152), + 147: uint16(33626), + 148: uint16(39050), + 149: uint16(36158), + 150: uint16(30002), + 151: uint16(38078), + 152: uint16(20551), + 153: uint16(31292), + 154: uint16(20215), + 155: uint16(26550), + 156: uint16(39550), + 157: uint16(23233), + 158: uint16(27516), + 159: uint16(30417), + 160: uint16(22362), + 161: uint16(23574), + 162: uint16(31546), + 163: uint16(38388), + 164: uint16(29006), + 165: uint16(20860), + 166: uint16(32937), + 167: uint16(33392), + 168: uint16(22904), + 169: uint16(32516), + 170: uint16(33575), + 171: uint16(26816), + 172: uint16(26604), + 173: uint16(30897), + 174: uint16(30839), + 175: uint16(25315), + 176: uint16(25441), + 177: uint16(31616), + 178: uint16(20461), + 179: uint16(21098), + 180: uint16(20943), + 181: uint16(33616), + 182: uint16(27099), + 183: uint16(37492), + 184: uint16(36341), + 185: uint16(36145), + 186: uint16(35265), + 187: uint16(38190), + 188: uint16(31661), + 189: uint16(20214), + }, + 60: { + 0: uint16(32055), + 1: uint16(32056), + 2: uint16(32057), + 3: uint16(32058), + 4: uint16(32059), + 5: uint16(32060), + 6: uint16(32061), + 7: uint16(32062), + 8: uint16(32063), + 9: uint16(32064), + 10: uint16(32065), + 11: uint16(32066), + 12: uint16(32067), + 13: uint16(32068), + 14: uint16(32069), + 15: uint16(32070), + 16: uint16(32071), + 17: uint16(32072), + 18: uint16(32073), + 19: uint16(32074), + 20: uint16(32075), + 21: uint16(32076), + 22: uint16(32077), + 23: uint16(32078), + 24: uint16(32079), + 25: uint16(32080), + 26: uint16(32081), + 27: uint16(32082), + 28: uint16(32083), + 29: uint16(32084), + 30: uint16(32085), + 31: uint16(32086), + 32: uint16(32087), + 33: uint16(32088), + 34: uint16(32089), + 35: uint16(32090), + 36: uint16(32091), + 37: uint16(32092), + 38: uint16(32093), + 39: uint16(32094), + 40: uint16(32095), + 41: uint16(32096), + 42: uint16(32097), + 43: uint16(32098), + 44: uint16(32099), + 45: uint16(32100), + 46: uint16(32101), + 47: uint16(32102), + 48: uint16(32103), + 49: uint16(32104), + 50: uint16(32105), + 51: uint16(32106), + 52: uint16(32107), + 53: uint16(32108), + 54: uint16(32109), + 55: uint16(32111), + 56: uint16(32112), + 57: uint16(32113), + 58: uint16(32114), + 59: uint16(32115), + 60: uint16(32116), + 61: uint16(32117), + 62: uint16(32118), + 63: uint16(32120), + 64: uint16(32121), + 65: uint16(32122), + 66: uint16(32123), + 67: uint16(32124), + 68: uint16(32125), + 69: uint16(32126), + 70: uint16(32127), + 71: uint16(32128), + 72: uint16(32129), + 73: uint16(32130), + 74: uint16(32131), + 75: uint16(32132), + 76: uint16(32133), + 77: uint16(32134), + 78: uint16(32135), + 79: uint16(32136), + 80: uint16(32137), + 81: uint16(32138), + 82: uint16(32139), + 83: uint16(32140), + 84: uint16(32141), + 85: uint16(32142), + 86: uint16(32143), + 87: uint16(32144), + 88: uint16(32145), + 89: uint16(32146), + 90: uint16(32147), + 91: uint16(32148), + 92: uint16(32149), + 93: uint16(32150), + 94: uint16(32151), + 95: uint16(32152), + 96: uint16(20581), + 97: uint16(33328), + 98: uint16(21073), + 99: uint16(39279), + 100: uint16(28176), + 101: uint16(28293), + 102: uint16(28071), + 103: uint16(24314), + 104: uint16(20725), + 105: uint16(23004), + 106: uint16(23558), + 107: uint16(27974), + 108: uint16(27743), + 109: uint16(30086), + 110: uint16(33931), + 111: uint16(26728), + 112: uint16(22870), + 113: uint16(35762), + 114: uint16(21280), + 115: uint16(37233), + 116: uint16(38477), + 117: uint16(34121), + 118: uint16(26898), + 119: uint16(30977), + 120: uint16(28966), + 121: uint16(33014), + 122: uint16(20132), + 123: uint16(37066), + 124: uint16(27975), + 125: uint16(39556), + 126: uint16(23047), + 127: uint16(22204), + 128: uint16(25605), + 129: uint16(38128), + 130: uint16(30699), + 131: uint16(20389), + 132: uint16(33050), + 133: uint16(29409), + 134: uint16(35282), + 135: uint16(39290), + 136: uint16(32564), + 137: uint16(32478), + 138: uint16(21119), + 139: uint16(25945), + 140: uint16(37237), + 141: uint16(36735), + 142: uint16(36739), + 143: uint16(21483), + 144: uint16(31382), + 145: uint16(25581), + 146: uint16(25509), + 147: uint16(30342), + 148: uint16(31224), + 149: uint16(34903), + 150: uint16(38454), + 151: uint16(25130), + 152: uint16(21163), + 153: uint16(33410), + 154: uint16(26708), + 155: uint16(26480), + 156: uint16(25463), + 157: uint16(30571), + 158: uint16(31469), + 159: uint16(27905), + 160: uint16(32467), + 161: uint16(35299), + 162: uint16(22992), + 163: uint16(25106), + 164: uint16(34249), + 165: uint16(33445), + 166: uint16(30028), + 167: uint16(20511), + 168: uint16(20171), + 169: uint16(30117), + 170: uint16(35819), + 171: uint16(23626), + 172: uint16(24062), + 173: uint16(31563), + 174: uint16(26020), + 175: uint16(37329), + 176: uint16(20170), + 177: uint16(27941), + 178: uint16(35167), + 179: uint16(32039), + 180: uint16(38182), + 181: uint16(20165), + 182: uint16(35880), + 183: uint16(36827), + 184: uint16(38771), + 185: uint16(26187), + 186: uint16(31105), + 187: uint16(36817), + 188: uint16(28908), + 189: uint16(28024), + }, + 61: { + 0: uint16(32153), + 1: uint16(32154), + 2: uint16(32155), + 3: uint16(32156), + 4: uint16(32157), + 5: uint16(32158), + 6: uint16(32159), + 7: uint16(32160), + 8: uint16(32161), + 9: uint16(32162), + 10: uint16(32163), + 11: uint16(32164), + 12: uint16(32165), + 13: uint16(32167), + 14: uint16(32168), + 15: uint16(32169), + 16: uint16(32170), + 17: uint16(32171), + 18: uint16(32172), + 19: uint16(32173), + 20: uint16(32175), + 21: uint16(32176), + 22: uint16(32177), + 23: uint16(32178), + 24: uint16(32179), + 25: uint16(32180), + 26: uint16(32181), + 27: uint16(32182), + 28: uint16(32183), + 29: uint16(32184), + 30: uint16(32185), + 31: uint16(32186), + 32: uint16(32187), + 33: uint16(32188), + 34: uint16(32189), + 35: uint16(32190), + 36: uint16(32191), + 37: uint16(32192), + 38: uint16(32193), + 39: uint16(32194), + 40: uint16(32195), + 41: uint16(32196), + 42: uint16(32197), + 43: uint16(32198), + 44: uint16(32199), + 45: uint16(32200), + 46: uint16(32201), + 47: uint16(32202), + 48: uint16(32203), + 49: uint16(32204), + 50: uint16(32205), + 51: uint16(32206), + 52: uint16(32207), + 53: uint16(32208), + 54: uint16(32209), + 55: uint16(32210), + 56: uint16(32211), + 57: uint16(32212), + 58: uint16(32213), + 59: uint16(32214), + 60: uint16(32215), + 61: uint16(32216), + 62: uint16(32217), + 63: uint16(32218), + 64: uint16(32219), + 65: uint16(32220), + 66: uint16(32221), + 67: uint16(32222), + 68: uint16(32223), + 69: uint16(32224), + 70: uint16(32225), + 71: uint16(32226), + 72: uint16(32227), + 73: uint16(32228), + 74: uint16(32229), + 75: uint16(32230), + 76: uint16(32231), + 77: uint16(32232), + 78: uint16(32233), + 79: uint16(32234), + 80: uint16(32235), + 81: uint16(32236), + 82: uint16(32237), + 83: uint16(32238), + 84: uint16(32239), + 85: uint16(32240), + 86: uint16(32241), + 87: uint16(32242), + 88: uint16(32243), + 89: uint16(32244), + 90: uint16(32245), + 91: uint16(32246), + 92: uint16(32247), + 93: uint16(32248), + 94: uint16(32249), + 95: uint16(32250), + 96: uint16(23613), + 97: uint16(21170), + 98: uint16(33606), + 99: uint16(20834), + 100: uint16(33550), + 101: uint16(30555), + 102: uint16(26230), + 103: uint16(40120), + 104: uint16(20140), + 105: uint16(24778), + 106: uint16(31934), + 107: uint16(31923), + 108: uint16(32463), + 109: uint16(20117), + 110: uint16(35686), + 111: uint16(26223), + 112: uint16(39048), + 113: uint16(38745), + 114: uint16(22659), + 115: uint16(25964), + 116: uint16(38236), + 117: uint16(24452), + 118: uint16(30153), + 119: uint16(38742), + 120: uint16(31455), + 121: uint16(31454), + 122: uint16(20928), + 123: uint16(28847), + 124: uint16(31384), + 125: uint16(25578), + 126: uint16(31350), + 127: uint16(32416), + 128: uint16(29590), + 129: uint16(38893), + 130: uint16(20037), + 131: uint16(28792), + 132: uint16(20061), + 133: uint16(37202), + 134: uint16(21417), + 135: uint16(25937), + 136: uint16(26087), + 137: uint16(33276), + 138: uint16(33285), + 139: uint16(21646), + 140: uint16(23601), + 141: uint16(30106), + 142: uint16(38816), + 143: uint16(25304), + 144: uint16(29401), + 145: uint16(30141), + 146: uint16(23621), + 147: uint16(39545), + 148: uint16(33738), + 149: uint16(23616), + 150: uint16(21632), + 151: uint16(30697), + 152: uint16(20030), + 153: uint16(27822), + 154: uint16(32858), + 155: uint16(25298), + 156: uint16(25454), + 157: uint16(24040), + 158: uint16(20855), + 159: uint16(36317), + 160: uint16(36382), + 161: uint16(38191), + 162: uint16(20465), + 163: uint16(21477), + 164: uint16(24807), + 165: uint16(28844), + 166: uint16(21095), + 167: uint16(25424), + 168: uint16(40515), + 169: uint16(23071), + 170: uint16(20518), + 171: uint16(30519), + 172: uint16(21367), + 173: uint16(32482), + 174: uint16(25733), + 175: uint16(25899), + 176: uint16(25225), + 177: uint16(25496), + 178: uint16(20500), + 179: uint16(29237), + 180: uint16(35273), + 181: uint16(20915), + 182: uint16(35776), + 183: uint16(32477), + 184: uint16(22343), + 185: uint16(33740), + 186: uint16(38055), + 187: uint16(20891), + 188: uint16(21531), + 189: uint16(23803), + }, + 62: { + 0: uint16(32251), + 1: uint16(32252), + 2: uint16(32253), + 3: uint16(32254), + 4: uint16(32255), + 5: uint16(32256), + 6: uint16(32257), + 7: uint16(32258), + 8: uint16(32259), + 9: uint16(32260), + 10: uint16(32261), + 11: uint16(32262), + 12: uint16(32263), + 13: uint16(32264), + 14: uint16(32265), + 15: uint16(32266), + 16: uint16(32267), + 17: uint16(32268), + 18: uint16(32269), + 19: uint16(32270), + 20: uint16(32271), + 21: uint16(32272), + 22: uint16(32273), + 23: uint16(32274), + 24: uint16(32275), + 25: uint16(32276), + 26: uint16(32277), + 27: uint16(32278), + 28: uint16(32279), + 29: uint16(32280), + 30: uint16(32281), + 31: uint16(32282), + 32: uint16(32283), + 33: uint16(32284), + 34: uint16(32285), + 35: uint16(32286), + 36: uint16(32287), + 37: uint16(32288), + 38: uint16(32289), + 39: uint16(32290), + 40: uint16(32291), + 41: uint16(32292), + 42: uint16(32293), + 43: uint16(32294), + 44: uint16(32295), + 45: uint16(32296), + 46: uint16(32297), + 47: uint16(32298), + 48: uint16(32299), + 49: uint16(32300), + 50: uint16(32301), + 51: uint16(32302), + 52: uint16(32303), + 53: uint16(32304), + 54: uint16(32305), + 55: uint16(32306), + 56: uint16(32307), + 57: uint16(32308), + 58: uint16(32309), + 59: uint16(32310), + 60: uint16(32311), + 61: uint16(32312), + 62: uint16(32313), + 63: uint16(32314), + 64: uint16(32316), + 65: uint16(32317), + 66: uint16(32318), + 67: uint16(32319), + 68: uint16(32320), + 69: uint16(32322), + 70: uint16(32323), + 71: uint16(32324), + 72: uint16(32325), + 73: uint16(32326), + 74: uint16(32328), + 75: uint16(32329), + 76: uint16(32330), + 77: uint16(32331), + 78: uint16(32332), + 79: uint16(32333), + 80: uint16(32334), + 81: uint16(32335), + 82: uint16(32336), + 83: uint16(32337), + 84: uint16(32338), + 85: uint16(32339), + 86: uint16(32340), + 87: uint16(32341), + 88: uint16(32342), + 89: uint16(32343), + 90: uint16(32344), + 91: uint16(32345), + 92: uint16(32346), + 93: uint16(32347), + 94: uint16(32348), + 95: uint16(32349), + 96: uint16(20426), + 97: uint16(31459), + 98: uint16(27994), + 99: uint16(37089), + 100: uint16(39567), + 101: uint16(21888), + 102: uint16(21654), + 103: uint16(21345), + 104: uint16(21679), + 105: uint16(24320), + 106: uint16(25577), + 107: uint16(26999), + 108: uint16(20975), + 109: uint16(24936), + 110: uint16(21002), + 111: uint16(22570), + 112: uint16(21208), + 113: uint16(22350), + 114: uint16(30733), + 115: uint16(30475), + 116: uint16(24247), + 117: uint16(24951), + 118: uint16(31968), + 119: uint16(25179), + 120: uint16(25239), + 121: uint16(20130), + 122: uint16(28821), + 123: uint16(32771), + 124: uint16(25335), + 125: uint16(28900), + 126: uint16(38752), + 127: uint16(22391), + 128: uint16(33499), + 129: uint16(26607), + 130: uint16(26869), + 131: uint16(30933), + 132: uint16(39063), + 133: uint16(31185), + 134: uint16(22771), + 135: uint16(21683), + 136: uint16(21487), + 137: uint16(28212), + 138: uint16(20811), + 139: uint16(21051), + 140: uint16(23458), + 141: uint16(35838), + 142: uint16(32943), + 143: uint16(21827), + 144: uint16(22438), + 145: uint16(24691), + 146: uint16(22353), + 147: uint16(21549), + 148: uint16(31354), + 149: uint16(24656), + 150: uint16(23380), + 151: uint16(25511), + 152: uint16(25248), + 153: uint16(21475), + 154: uint16(25187), + 155: uint16(23495), + 156: uint16(26543), + 157: uint16(21741), + 158: uint16(31391), + 159: uint16(33510), + 160: uint16(37239), + 161: uint16(24211), + 162: uint16(35044), + 163: uint16(22840), + 164: uint16(22446), + 165: uint16(25358), + 166: uint16(36328), + 167: uint16(33007), + 168: uint16(22359), + 169: uint16(31607), + 170: uint16(20393), + 171: uint16(24555), + 172: uint16(23485), + 173: uint16(27454), + 174: uint16(21281), + 175: uint16(31568), + 176: uint16(29378), + 177: uint16(26694), + 178: uint16(30719), + 179: uint16(30518), + 180: uint16(26103), + 181: uint16(20917), + 182: uint16(20111), + 183: uint16(30420), + 184: uint16(23743), + 185: uint16(31397), + 186: uint16(33909), + 187: uint16(22862), + 188: uint16(39745), + 189: uint16(20608), + }, + 63: { + 0: uint16(32350), + 1: uint16(32351), + 2: uint16(32352), + 3: uint16(32353), + 4: uint16(32354), + 5: uint16(32355), + 6: uint16(32356), + 7: uint16(32357), + 8: uint16(32358), + 9: uint16(32359), + 10: uint16(32360), + 11: uint16(32361), + 12: uint16(32362), + 13: uint16(32363), + 14: uint16(32364), + 15: uint16(32365), + 16: uint16(32366), + 17: uint16(32367), + 18: uint16(32368), + 19: uint16(32369), + 20: uint16(32370), + 21: uint16(32371), + 22: uint16(32372), + 23: uint16(32373), + 24: uint16(32374), + 25: uint16(32375), + 26: uint16(32376), + 27: uint16(32377), + 28: uint16(32378), + 29: uint16(32379), + 30: uint16(32380), + 31: uint16(32381), + 32: uint16(32382), + 33: uint16(32383), + 34: uint16(32384), + 35: uint16(32385), + 36: uint16(32387), + 37: uint16(32388), + 38: uint16(32389), + 39: uint16(32390), + 40: uint16(32391), + 41: uint16(32392), + 42: uint16(32393), + 43: uint16(32394), + 44: uint16(32395), + 45: uint16(32396), + 46: uint16(32397), + 47: uint16(32398), + 48: uint16(32399), + 49: uint16(32400), + 50: uint16(32401), + 51: uint16(32402), + 52: uint16(32403), + 53: uint16(32404), + 54: uint16(32405), + 55: uint16(32406), + 56: uint16(32407), + 57: uint16(32408), + 58: uint16(32409), + 59: uint16(32410), + 60: uint16(32412), + 61: uint16(32413), + 62: uint16(32414), + 63: uint16(32430), + 64: uint16(32436), + 65: uint16(32443), + 66: uint16(32444), + 67: uint16(32470), + 68: uint16(32484), + 69: uint16(32492), + 70: uint16(32505), + 71: uint16(32522), + 72: uint16(32528), + 73: uint16(32542), + 74: uint16(32567), + 75: uint16(32569), + 76: uint16(32571), + 77: uint16(32572), + 78: uint16(32573), + 79: uint16(32574), + 80: uint16(32575), + 81: uint16(32576), + 82: uint16(32577), + 83: uint16(32579), + 84: uint16(32582), + 85: uint16(32583), + 86: uint16(32584), + 87: uint16(32585), + 88: uint16(32586), + 89: uint16(32587), + 90: uint16(32588), + 91: uint16(32589), + 92: uint16(32590), + 93: uint16(32591), + 94: uint16(32594), + 95: uint16(32595), + 96: uint16(39304), + 97: uint16(24871), + 98: uint16(28291), + 99: uint16(22372), + 100: uint16(26118), + 101: uint16(25414), + 102: uint16(22256), + 103: uint16(25324), + 104: uint16(25193), + 105: uint16(24275), + 106: uint16(38420), + 107: uint16(22403), + 108: uint16(25289), + 109: uint16(21895), + 110: uint16(34593), + 111: uint16(33098), + 112: uint16(36771), + 113: uint16(21862), + 114: uint16(33713), + 115: uint16(26469), + 116: uint16(36182), + 117: uint16(34013), + 118: uint16(23146), + 119: uint16(26639), + 120: uint16(25318), + 121: uint16(31726), + 122: uint16(38417), + 123: uint16(20848), + 124: uint16(28572), + 125: uint16(35888), + 126: uint16(25597), + 127: uint16(35272), + 128: uint16(25042), + 129: uint16(32518), + 130: uint16(28866), + 131: uint16(28389), + 132: uint16(29701), + 133: uint16(27028), + 134: uint16(29436), + 135: uint16(24266), + 136: uint16(37070), + 137: uint16(26391), + 138: uint16(28010), + 139: uint16(25438), + 140: uint16(21171), + 141: uint16(29282), + 142: uint16(32769), + 143: uint16(20332), + 144: uint16(23013), + 145: uint16(37226), + 146: uint16(28889), + 147: uint16(28061), + 148: uint16(21202), + 149: uint16(20048), + 150: uint16(38647), + 151: uint16(38253), + 152: uint16(34174), + 153: uint16(30922), + 154: uint16(32047), + 155: uint16(20769), + 156: uint16(22418), + 157: uint16(25794), + 158: uint16(32907), + 159: uint16(31867), + 160: uint16(27882), + 161: uint16(26865), + 162: uint16(26974), + 163: uint16(20919), + 164: uint16(21400), + 165: uint16(26792), + 166: uint16(29313), + 167: uint16(40654), + 168: uint16(31729), + 169: uint16(29432), + 170: uint16(31163), + 171: uint16(28435), + 172: uint16(29702), + 173: uint16(26446), + 174: uint16(37324), + 175: uint16(40100), + 176: uint16(31036), + 177: uint16(33673), + 178: uint16(33620), + 179: uint16(21519), + 180: uint16(26647), + 181: uint16(20029), + 182: uint16(21385), + 183: uint16(21169), + 184: uint16(30782), + 185: uint16(21382), + 186: uint16(21033), + 187: uint16(20616), + 188: uint16(20363), + 189: uint16(20432), + }, + 64: { + 0: uint16(32598), + 1: uint16(32601), + 2: uint16(32603), + 3: uint16(32604), + 4: uint16(32605), + 5: uint16(32606), + 6: uint16(32608), + 7: uint16(32611), + 8: uint16(32612), + 9: uint16(32613), + 10: uint16(32614), + 11: uint16(32615), + 12: uint16(32619), + 13: uint16(32620), + 14: uint16(32621), + 15: uint16(32623), + 16: uint16(32624), + 17: uint16(32627), + 18: uint16(32629), + 19: uint16(32630), + 20: uint16(32631), + 21: uint16(32632), + 22: uint16(32634), + 23: uint16(32635), + 24: uint16(32636), + 25: uint16(32637), + 26: uint16(32639), + 27: uint16(32640), + 28: uint16(32642), + 29: uint16(32643), + 30: uint16(32644), + 31: uint16(32645), + 32: uint16(32646), + 33: uint16(32647), + 34: uint16(32648), + 35: uint16(32649), + 36: uint16(32651), + 37: uint16(32653), + 38: uint16(32655), + 39: uint16(32656), + 40: uint16(32657), + 41: uint16(32658), + 42: uint16(32659), + 43: uint16(32661), + 44: uint16(32662), + 45: uint16(32663), + 46: uint16(32664), + 47: uint16(32665), + 48: uint16(32667), + 49: uint16(32668), + 50: uint16(32672), + 51: uint16(32674), + 52: uint16(32675), + 53: uint16(32677), + 54: uint16(32678), + 55: uint16(32680), + 56: uint16(32681), + 57: uint16(32682), + 58: uint16(32683), + 59: uint16(32684), + 60: uint16(32685), + 61: uint16(32686), + 62: uint16(32689), + 63: uint16(32691), + 64: uint16(32692), + 65: uint16(32693), + 66: uint16(32694), + 67: uint16(32695), + 68: uint16(32698), + 69: uint16(32699), + 70: uint16(32702), + 71: uint16(32704), + 72: uint16(32706), + 73: uint16(32707), + 74: uint16(32708), + 75: uint16(32710), + 76: uint16(32711), + 77: uint16(32712), + 78: uint16(32713), + 79: uint16(32715), + 80: uint16(32717), + 81: uint16(32719), + 82: uint16(32720), + 83: uint16(32721), + 84: uint16(32722), + 85: uint16(32723), + 86: uint16(32726), + 87: uint16(32727), + 88: uint16(32729), + 89: uint16(32730), + 90: uint16(32731), + 91: uint16(32732), + 92: uint16(32733), + 93: uint16(32734), + 94: uint16(32738), + 95: uint16(32739), + 96: uint16(30178), + 97: uint16(31435), + 98: uint16(31890), + 99: uint16(27813), + 100: uint16(38582), + 101: uint16(21147), + 102: uint16(29827), + 103: uint16(21737), + 104: uint16(20457), + 105: uint16(32852), + 106: uint16(33714), + 107: uint16(36830), + 108: uint16(38256), + 109: uint16(24265), + 110: uint16(24604), + 111: uint16(28063), + 112: uint16(24088), + 113: uint16(25947), + 114: uint16(33080), + 115: uint16(38142), + 116: uint16(24651), + 117: uint16(28860), + 118: uint16(32451), + 119: uint16(31918), + 120: uint16(20937), + 121: uint16(26753), + 122: uint16(31921), + 123: uint16(33391), + 124: uint16(20004), + 125: uint16(36742), + 126: uint16(37327), + 127: uint16(26238), + 128: uint16(20142), + 129: uint16(35845), + 130: uint16(25769), + 131: uint16(32842), + 132: uint16(20698), + 133: uint16(30103), + 134: uint16(29134), + 135: uint16(23525), + 136: uint16(36797), + 137: uint16(28518), + 138: uint16(20102), + 139: uint16(25730), + 140: uint16(38243), + 141: uint16(24278), + 142: uint16(26009), + 143: uint16(21015), + 144: uint16(35010), + 145: uint16(28872), + 146: uint16(21155), + 147: uint16(29454), + 148: uint16(29747), + 149: uint16(26519), + 150: uint16(30967), + 151: uint16(38678), + 152: uint16(20020), + 153: uint16(37051), + 154: uint16(40158), + 155: uint16(28107), + 156: uint16(20955), + 157: uint16(36161), + 158: uint16(21533), + 159: uint16(25294), + 160: uint16(29618), + 161: uint16(33777), + 162: uint16(38646), + 163: uint16(40836), + 164: uint16(38083), + 165: uint16(20278), + 166: uint16(32666), + 167: uint16(20940), + 168: uint16(28789), + 169: uint16(38517), + 170: uint16(23725), + 171: uint16(39046), + 172: uint16(21478), + 173: uint16(20196), + 174: uint16(28316), + 175: uint16(29705), + 176: uint16(27060), + 177: uint16(30827), + 178: uint16(39311), + 179: uint16(30041), + 180: uint16(21016), + 181: uint16(30244), + 182: uint16(27969), + 183: uint16(26611), + 184: uint16(20845), + 185: uint16(40857), + 186: uint16(32843), + 187: uint16(21657), + 188: uint16(31548), + 189: uint16(31423), + }, + 65: { + 0: uint16(32740), + 1: uint16(32743), + 2: uint16(32744), + 3: uint16(32746), + 4: uint16(32747), + 5: uint16(32748), + 6: uint16(32749), + 7: uint16(32751), + 8: uint16(32754), + 9: uint16(32756), + 10: uint16(32757), + 11: uint16(32758), + 12: uint16(32759), + 13: uint16(32760), + 14: uint16(32761), + 15: uint16(32762), + 16: uint16(32765), + 17: uint16(32766), + 18: uint16(32767), + 19: uint16(32770), + 20: uint16(32775), + 21: uint16(32776), + 22: uint16(32777), + 23: uint16(32778), + 24: uint16(32782), + 25: uint16(32783), + 26: uint16(32785), + 27: uint16(32787), + 28: uint16(32794), + 29: uint16(32795), + 30: uint16(32797), + 31: uint16(32798), + 32: uint16(32799), + 33: uint16(32801), + 34: uint16(32803), + 35: uint16(32804), + 36: uint16(32811), + 37: uint16(32812), + 38: uint16(32813), + 39: uint16(32814), + 40: uint16(32815), + 41: uint16(32816), + 42: uint16(32818), + 43: uint16(32820), + 44: uint16(32825), + 45: uint16(32826), + 46: uint16(32828), + 47: uint16(32830), + 48: uint16(32832), + 49: uint16(32833), + 50: uint16(32836), + 51: uint16(32837), + 52: uint16(32839), + 53: uint16(32840), + 54: uint16(32841), + 55: uint16(32846), + 56: uint16(32847), + 57: uint16(32848), + 58: uint16(32849), + 59: uint16(32851), + 60: uint16(32853), + 61: uint16(32854), + 62: uint16(32855), + 63: uint16(32857), + 64: uint16(32859), + 65: uint16(32860), + 66: uint16(32861), + 67: uint16(32862), + 68: uint16(32863), + 69: uint16(32864), + 70: uint16(32865), + 71: uint16(32866), + 72: uint16(32867), + 73: uint16(32868), + 74: uint16(32869), + 75: uint16(32870), + 76: uint16(32871), + 77: uint16(32872), + 78: uint16(32875), + 79: uint16(32876), + 80: uint16(32877), + 81: uint16(32878), + 82: uint16(32879), + 83: uint16(32880), + 84: uint16(32882), + 85: uint16(32883), + 86: uint16(32884), + 87: uint16(32885), + 88: uint16(32886), + 89: uint16(32887), + 90: uint16(32888), + 91: uint16(32889), + 92: uint16(32890), + 93: uint16(32891), + 94: uint16(32892), + 95: uint16(32893), + 96: uint16(38534), + 97: uint16(22404), + 98: uint16(25314), + 99: uint16(38471), + 100: uint16(27004), + 101: uint16(23044), + 102: uint16(25602), + 103: uint16(31699), + 104: uint16(28431), + 105: uint16(38475), + 106: uint16(33446), + 107: uint16(21346), + 108: uint16(39045), + 109: uint16(24208), + 110: uint16(28809), + 111: uint16(25523), + 112: uint16(21348), + 113: uint16(34383), + 114: uint16(40065), + 115: uint16(40595), + 116: uint16(30860), + 117: uint16(38706), + 118: uint16(36335), + 119: uint16(36162), + 120: uint16(40575), + 121: uint16(28510), + 122: uint16(31108), + 123: uint16(24405), + 124: uint16(38470), + 125: uint16(25134), + 126: uint16(39540), + 127: uint16(21525), + 128: uint16(38109), + 129: uint16(20387), + 130: uint16(26053), + 131: uint16(23653), + 132: uint16(23649), + 133: uint16(32533), + 134: uint16(34385), + 135: uint16(27695), + 136: uint16(24459), + 137: uint16(29575), + 138: uint16(28388), + 139: uint16(32511), + 140: uint16(23782), + 141: uint16(25371), + 142: uint16(23402), + 143: uint16(28390), + 144: uint16(21365), + 145: uint16(20081), + 146: uint16(25504), + 147: uint16(30053), + 148: uint16(25249), + 149: uint16(36718), + 150: uint16(20262), + 151: uint16(20177), + 152: uint16(27814), + 153: uint16(32438), + 154: uint16(35770), + 155: uint16(33821), + 156: uint16(34746), + 157: uint16(32599), + 158: uint16(36923), + 159: uint16(38179), + 160: uint16(31657), + 161: uint16(39585), + 162: uint16(35064), + 163: uint16(33853), + 164: uint16(27931), + 165: uint16(39558), + 166: uint16(32476), + 167: uint16(22920), + 168: uint16(40635), + 169: uint16(29595), + 170: uint16(30721), + 171: uint16(34434), + 172: uint16(39532), + 173: uint16(39554), + 174: uint16(22043), + 175: uint16(21527), + 176: uint16(22475), + 177: uint16(20080), + 178: uint16(40614), + 179: uint16(21334), + 180: uint16(36808), + 181: uint16(33033), + 182: uint16(30610), + 183: uint16(39314), + 184: uint16(34542), + 185: uint16(28385), + 186: uint16(34067), + 187: uint16(26364), + 188: uint16(24930), + 189: uint16(28459), + }, + 66: { + 0: uint16(32894), + 1: uint16(32897), + 2: uint16(32898), + 3: uint16(32901), + 4: uint16(32904), + 5: uint16(32906), + 6: uint16(32909), + 7: uint16(32910), + 8: uint16(32911), + 9: uint16(32912), + 10: uint16(32913), + 11: uint16(32914), + 12: uint16(32916), + 13: uint16(32917), + 14: uint16(32919), + 15: uint16(32921), + 16: uint16(32926), + 17: uint16(32931), + 18: uint16(32934), + 19: uint16(32935), + 20: uint16(32936), + 21: uint16(32940), + 22: uint16(32944), + 23: uint16(32947), + 24: uint16(32949), + 25: uint16(32950), + 26: uint16(32952), + 27: uint16(32953), + 28: uint16(32955), + 29: uint16(32965), + 30: uint16(32967), + 31: uint16(32968), + 32: uint16(32969), + 33: uint16(32970), + 34: uint16(32971), + 35: uint16(32975), + 36: uint16(32976), + 37: uint16(32977), + 38: uint16(32978), + 39: uint16(32979), + 40: uint16(32980), + 41: uint16(32981), + 42: uint16(32984), + 43: uint16(32991), + 44: uint16(32992), + 45: uint16(32994), + 46: uint16(32995), + 47: uint16(32998), + 48: uint16(33006), + 49: uint16(33013), + 50: uint16(33015), + 51: uint16(33017), + 52: uint16(33019), + 53: uint16(33022), + 54: uint16(33023), + 55: uint16(33024), + 56: uint16(33025), + 57: uint16(33027), + 58: uint16(33028), + 59: uint16(33029), + 60: uint16(33031), + 61: uint16(33032), + 62: uint16(33035), + 63: uint16(33036), + 64: uint16(33045), + 65: uint16(33047), + 66: uint16(33049), + 67: uint16(33051), + 68: uint16(33052), + 69: uint16(33053), + 70: uint16(33055), + 71: uint16(33056), + 72: uint16(33057), + 73: uint16(33058), + 74: uint16(33059), + 75: uint16(33060), + 76: uint16(33061), + 77: uint16(33062), + 78: uint16(33063), + 79: uint16(33064), + 80: uint16(33065), + 81: uint16(33066), + 82: uint16(33067), + 83: uint16(33069), + 84: uint16(33070), + 85: uint16(33072), + 86: uint16(33075), + 87: uint16(33076), + 88: uint16(33077), + 89: uint16(33079), + 90: uint16(33081), + 91: uint16(33082), + 92: uint16(33083), + 93: uint16(33084), + 94: uint16(33085), + 95: uint16(33087), + 96: uint16(35881), + 97: uint16(33426), + 98: uint16(33579), + 99: uint16(30450), + 100: uint16(27667), + 101: uint16(24537), + 102: uint16(33725), + 103: uint16(29483), + 104: uint16(33541), + 105: uint16(38170), + 106: uint16(27611), + 107: uint16(30683), + 108: uint16(38086), + 109: uint16(21359), + 110: uint16(33538), + 111: uint16(20882), + 112: uint16(24125), + 113: uint16(35980), + 114: uint16(36152), + 115: uint16(20040), + 116: uint16(29611), + 117: uint16(26522), + 118: uint16(26757), + 119: uint16(37238), + 120: uint16(38665), + 121: uint16(29028), + 122: uint16(27809), + 123: uint16(30473), + 124: uint16(23186), + 125: uint16(38209), + 126: uint16(27599), + 127: uint16(32654), + 128: uint16(26151), + 129: uint16(23504), + 130: uint16(22969), + 131: uint16(23194), + 132: uint16(38376), + 133: uint16(38391), + 134: uint16(20204), + 135: uint16(33804), + 136: uint16(33945), + 137: uint16(27308), + 138: uint16(30431), + 139: uint16(38192), + 140: uint16(29467), + 141: uint16(26790), + 142: uint16(23391), + 143: uint16(30511), + 144: uint16(37274), + 145: uint16(38753), + 146: uint16(31964), + 147: uint16(36855), + 148: uint16(35868), + 149: uint16(24357), + 150: uint16(31859), + 151: uint16(31192), + 152: uint16(35269), + 153: uint16(27852), + 154: uint16(34588), + 155: uint16(23494), + 156: uint16(24130), + 157: uint16(26825), + 158: uint16(30496), + 159: uint16(32501), + 160: uint16(20885), + 161: uint16(20813), + 162: uint16(21193), + 163: uint16(23081), + 164: uint16(32517), + 165: uint16(38754), + 166: uint16(33495), + 167: uint16(25551), + 168: uint16(30596), + 169: uint16(34256), + 170: uint16(31186), + 171: uint16(28218), + 172: uint16(24217), + 173: uint16(22937), + 174: uint16(34065), + 175: uint16(28781), + 176: uint16(27665), + 177: uint16(25279), + 178: uint16(30399), + 179: uint16(25935), + 180: uint16(24751), + 181: uint16(38397), + 182: uint16(26126), + 183: uint16(34719), + 184: uint16(40483), + 185: uint16(38125), + 186: uint16(21517), + 187: uint16(21629), + 188: uint16(35884), + 189: uint16(25720), + }, + 67: { + 0: uint16(33088), + 1: uint16(33089), + 2: uint16(33090), + 3: uint16(33091), + 4: uint16(33092), + 5: uint16(33093), + 6: uint16(33095), + 7: uint16(33097), + 8: uint16(33101), + 9: uint16(33102), + 10: uint16(33103), + 11: uint16(33106), + 12: uint16(33110), + 13: uint16(33111), + 14: uint16(33112), + 15: uint16(33115), + 16: uint16(33116), + 17: uint16(33117), + 18: uint16(33118), + 19: uint16(33119), + 20: uint16(33121), + 21: uint16(33122), + 22: uint16(33123), + 23: uint16(33124), + 24: uint16(33126), + 25: uint16(33128), + 26: uint16(33130), + 27: uint16(33131), + 28: uint16(33132), + 29: uint16(33135), + 30: uint16(33138), + 31: uint16(33139), + 32: uint16(33141), + 33: uint16(33142), + 34: uint16(33143), + 35: uint16(33144), + 36: uint16(33153), + 37: uint16(33155), + 38: uint16(33156), + 39: uint16(33157), + 40: uint16(33158), + 41: uint16(33159), + 42: uint16(33161), + 43: uint16(33163), + 44: uint16(33164), + 45: uint16(33165), + 46: uint16(33166), + 47: uint16(33168), + 48: uint16(33170), + 49: uint16(33171), + 50: uint16(33172), + 51: uint16(33173), + 52: uint16(33174), + 53: uint16(33175), + 54: uint16(33177), + 55: uint16(33178), + 56: uint16(33182), + 57: uint16(33183), + 58: uint16(33184), + 59: uint16(33185), + 60: uint16(33186), + 61: uint16(33188), + 62: uint16(33189), + 63: uint16(33191), + 64: uint16(33193), + 65: uint16(33195), + 66: uint16(33196), + 67: uint16(33197), + 68: uint16(33198), + 69: uint16(33199), + 70: uint16(33200), + 71: uint16(33201), + 72: uint16(33202), + 73: uint16(33204), + 74: uint16(33205), + 75: uint16(33206), + 76: uint16(33207), + 77: uint16(33208), + 78: uint16(33209), + 79: uint16(33212), + 80: uint16(33213), + 81: uint16(33214), + 82: uint16(33215), + 83: uint16(33220), + 84: uint16(33221), + 85: uint16(33223), + 86: uint16(33224), + 87: uint16(33225), + 88: uint16(33227), + 89: uint16(33229), + 90: uint16(33230), + 91: uint16(33231), + 92: uint16(33232), + 93: uint16(33233), + 94: uint16(33234), + 95: uint16(33235), + 96: uint16(25721), + 97: uint16(34321), + 98: uint16(27169), + 99: uint16(33180), + 100: uint16(30952), + 101: uint16(25705), + 102: uint16(39764), + 103: uint16(25273), + 104: uint16(26411), + 105: uint16(33707), + 106: uint16(22696), + 107: uint16(40664), + 108: uint16(27819), + 109: uint16(28448), + 110: uint16(23518), + 111: uint16(38476), + 112: uint16(35851), + 113: uint16(29279), + 114: uint16(26576), + 115: uint16(25287), + 116: uint16(29281), + 117: uint16(20137), + 118: uint16(22982), + 119: uint16(27597), + 120: uint16(22675), + 121: uint16(26286), + 122: uint16(24149), + 123: uint16(21215), + 124: uint16(24917), + 125: uint16(26408), + 126: uint16(30446), + 127: uint16(30566), + 128: uint16(29287), + 129: uint16(31302), + 130: uint16(25343), + 131: uint16(21738), + 132: uint16(21584), + 133: uint16(38048), + 134: uint16(37027), + 135: uint16(23068), + 136: uint16(32435), + 137: uint16(27670), + 138: uint16(20035), + 139: uint16(22902), + 140: uint16(32784), + 141: uint16(22856), + 142: uint16(21335), + 143: uint16(30007), + 144: uint16(38590), + 145: uint16(22218), + 146: uint16(25376), + 147: uint16(33041), + 148: uint16(24700), + 149: uint16(38393), + 150: uint16(28118), + 151: uint16(21602), + 152: uint16(39297), + 153: uint16(20869), + 154: uint16(23273), + 155: uint16(33021), + 156: uint16(22958), + 157: uint16(38675), + 158: uint16(20522), + 159: uint16(27877), + 160: uint16(23612), + 161: uint16(25311), + 162: uint16(20320), + 163: uint16(21311), + 164: uint16(33147), + 165: uint16(36870), + 166: uint16(28346), + 167: uint16(34091), + 168: uint16(25288), + 169: uint16(24180), + 170: uint16(30910), + 171: uint16(25781), + 172: uint16(25467), + 173: uint16(24565), + 174: uint16(23064), + 175: uint16(37247), + 176: uint16(40479), + 177: uint16(23615), + 178: uint16(25423), + 179: uint16(32834), + 180: uint16(23421), + 181: uint16(21870), + 182: uint16(38218), + 183: uint16(38221), + 184: uint16(28037), + 185: uint16(24744), + 186: uint16(26592), + 187: uint16(29406), + 188: uint16(20957), + 189: uint16(23425), + }, + 68: { + 0: uint16(33236), + 1: uint16(33237), + 2: uint16(33238), + 3: uint16(33239), + 4: uint16(33240), + 5: uint16(33241), + 6: uint16(33242), + 7: uint16(33243), + 8: uint16(33244), + 9: uint16(33245), + 10: uint16(33246), + 11: uint16(33247), + 12: uint16(33248), + 13: uint16(33249), + 14: uint16(33250), + 15: uint16(33252), + 16: uint16(33253), + 17: uint16(33254), + 18: uint16(33256), + 19: uint16(33257), + 20: uint16(33259), + 21: uint16(33262), + 22: uint16(33263), + 23: uint16(33264), + 24: uint16(33265), + 25: uint16(33266), + 26: uint16(33269), + 27: uint16(33270), + 28: uint16(33271), + 29: uint16(33272), + 30: uint16(33273), + 31: uint16(33274), + 32: uint16(33277), + 33: uint16(33279), + 34: uint16(33283), + 35: uint16(33287), + 36: uint16(33288), + 37: uint16(33289), + 38: uint16(33290), + 39: uint16(33291), + 40: uint16(33294), + 41: uint16(33295), + 42: uint16(33297), + 43: uint16(33299), + 44: uint16(33301), + 45: uint16(33302), + 46: uint16(33303), + 47: uint16(33304), + 48: uint16(33305), + 49: uint16(33306), + 50: uint16(33309), + 51: uint16(33312), + 52: uint16(33316), + 53: uint16(33317), + 54: uint16(33318), + 55: uint16(33319), + 56: uint16(33321), + 57: uint16(33326), + 58: uint16(33330), + 59: uint16(33338), + 60: uint16(33340), + 61: uint16(33341), + 62: uint16(33343), + 63: uint16(33344), + 64: uint16(33345), + 65: uint16(33346), + 66: uint16(33347), + 67: uint16(33349), + 68: uint16(33350), + 69: uint16(33352), + 70: uint16(33354), + 71: uint16(33356), + 72: uint16(33357), + 73: uint16(33358), + 74: uint16(33360), + 75: uint16(33361), + 76: uint16(33362), + 77: uint16(33363), + 78: uint16(33364), + 79: uint16(33365), + 80: uint16(33366), + 81: uint16(33367), + 82: uint16(33369), + 83: uint16(33371), + 84: uint16(33372), + 85: uint16(33373), + 86: uint16(33374), + 87: uint16(33376), + 88: uint16(33377), + 89: uint16(33378), + 90: uint16(33379), + 91: uint16(33380), + 92: uint16(33381), + 93: uint16(33382), + 94: uint16(33383), + 95: uint16(33385), + 96: uint16(25319), + 97: uint16(27870), + 98: uint16(29275), + 99: uint16(25197), + 100: uint16(38062), + 101: uint16(32445), + 102: uint16(33043), + 103: uint16(27987), + 104: uint16(20892), + 105: uint16(24324), + 106: uint16(22900), + 107: uint16(21162), + 108: uint16(24594), + 109: uint16(22899), + 110: uint16(26262), + 111: uint16(34384), + 112: uint16(30111), + 113: uint16(25386), + 114: uint16(25062), + 115: uint16(31983), + 116: uint16(35834), + 117: uint16(21734), + 118: uint16(27431), + 119: uint16(40485), + 120: uint16(27572), + 121: uint16(34261), + 122: uint16(21589), + 123: uint16(20598), + 124: uint16(27812), + 125: uint16(21866), + 126: uint16(36276), + 127: uint16(29228), + 128: uint16(24085), + 129: uint16(24597), + 130: uint16(29750), + 131: uint16(25293), + 132: uint16(25490), + 133: uint16(29260), + 134: uint16(24472), + 135: uint16(28227), + 136: uint16(27966), + 137: uint16(25856), + 138: uint16(28504), + 139: uint16(30424), + 140: uint16(30928), + 141: uint16(30460), + 142: uint16(30036), + 143: uint16(21028), + 144: uint16(21467), + 145: uint16(20051), + 146: uint16(24222), + 147: uint16(26049), + 148: uint16(32810), + 149: uint16(32982), + 150: uint16(25243), + 151: uint16(21638), + 152: uint16(21032), + 153: uint16(28846), + 154: uint16(34957), + 155: uint16(36305), + 156: uint16(27873), + 157: uint16(21624), + 158: uint16(32986), + 159: uint16(22521), + 160: uint16(35060), + 161: uint16(36180), + 162: uint16(38506), + 163: uint16(37197), + 164: uint16(20329), + 165: uint16(27803), + 166: uint16(21943), + 167: uint16(30406), + 168: uint16(30768), + 169: uint16(25256), + 170: uint16(28921), + 171: uint16(28558), + 172: uint16(24429), + 173: uint16(34028), + 174: uint16(26842), + 175: uint16(30844), + 176: uint16(31735), + 177: uint16(33192), + 178: uint16(26379), + 179: uint16(40527), + 180: uint16(25447), + 181: uint16(30896), + 182: uint16(22383), + 183: uint16(30738), + 184: uint16(38713), + 185: uint16(25209), + 186: uint16(25259), + 187: uint16(21128), + 188: uint16(29749), + 189: uint16(27607), + }, + 69: { + 0: uint16(33386), + 1: uint16(33387), + 2: uint16(33388), + 3: uint16(33389), + 4: uint16(33393), + 5: uint16(33397), + 6: uint16(33398), + 7: uint16(33399), + 8: uint16(33400), + 9: uint16(33403), + 10: uint16(33404), + 11: uint16(33408), + 12: uint16(33409), + 13: uint16(33411), + 14: uint16(33413), + 15: uint16(33414), + 16: uint16(33415), + 17: uint16(33417), + 18: uint16(33420), + 19: uint16(33424), + 20: uint16(33427), + 21: uint16(33428), + 22: uint16(33429), + 23: uint16(33430), + 24: uint16(33434), + 25: uint16(33435), + 26: uint16(33438), + 27: uint16(33440), + 28: uint16(33442), + 29: uint16(33443), + 30: uint16(33447), + 31: uint16(33458), + 32: uint16(33461), + 33: uint16(33462), + 34: uint16(33466), + 35: uint16(33467), + 36: uint16(33468), + 37: uint16(33471), + 38: uint16(33472), + 39: uint16(33474), + 40: uint16(33475), + 41: uint16(33477), + 42: uint16(33478), + 43: uint16(33481), + 44: uint16(33488), + 45: uint16(33494), + 46: uint16(33497), + 47: uint16(33498), + 48: uint16(33501), + 49: uint16(33506), + 50: uint16(33511), + 51: uint16(33512), + 52: uint16(33513), + 53: uint16(33514), + 54: uint16(33516), + 55: uint16(33517), + 56: uint16(33518), + 57: uint16(33520), + 58: uint16(33522), + 59: uint16(33523), + 60: uint16(33525), + 61: uint16(33526), + 62: uint16(33528), + 63: uint16(33530), + 64: uint16(33532), + 65: uint16(33533), + 66: uint16(33534), + 67: uint16(33535), + 68: uint16(33536), + 69: uint16(33546), + 70: uint16(33547), + 71: uint16(33549), + 72: uint16(33552), + 73: uint16(33554), + 74: uint16(33555), + 75: uint16(33558), + 76: uint16(33560), + 77: uint16(33561), + 78: uint16(33565), + 79: uint16(33566), + 80: uint16(33567), + 81: uint16(33568), + 82: uint16(33569), + 83: uint16(33570), + 84: uint16(33571), + 85: uint16(33572), + 86: uint16(33573), + 87: uint16(33574), + 88: uint16(33577), + 89: uint16(33578), + 90: uint16(33582), + 91: uint16(33584), + 92: uint16(33586), + 93: uint16(33591), + 94: uint16(33595), + 95: uint16(33597), + 96: uint16(21860), + 97: uint16(33086), + 98: uint16(30130), + 99: uint16(30382), + 100: uint16(21305), + 101: uint16(30174), + 102: uint16(20731), + 103: uint16(23617), + 104: uint16(35692), + 105: uint16(31687), + 106: uint16(20559), + 107: uint16(29255), + 108: uint16(39575), + 109: uint16(39128), + 110: uint16(28418), + 111: uint16(29922), + 112: uint16(31080), + 113: uint16(25735), + 114: uint16(30629), + 115: uint16(25340), + 116: uint16(39057), + 117: uint16(36139), + 118: uint16(21697), + 119: uint16(32856), + 120: uint16(20050), + 121: uint16(22378), + 122: uint16(33529), + 123: uint16(33805), + 124: uint16(24179), + 125: uint16(20973), + 126: uint16(29942), + 127: uint16(35780), + 128: uint16(23631), + 129: uint16(22369), + 130: uint16(27900), + 131: uint16(39047), + 132: uint16(23110), + 133: uint16(30772), + 134: uint16(39748), + 135: uint16(36843), + 136: uint16(31893), + 137: uint16(21078), + 138: uint16(25169), + 139: uint16(38138), + 140: uint16(20166), + 141: uint16(33670), + 142: uint16(33889), + 143: uint16(33769), + 144: uint16(33970), + 145: uint16(22484), + 146: uint16(26420), + 147: uint16(22275), + 148: uint16(26222), + 149: uint16(28006), + 150: uint16(35889), + 151: uint16(26333), + 152: uint16(28689), + 153: uint16(26399), + 154: uint16(27450), + 155: uint16(26646), + 156: uint16(25114), + 157: uint16(22971), + 158: uint16(19971), + 159: uint16(20932), + 160: uint16(28422), + 161: uint16(26578), + 162: uint16(27791), + 163: uint16(20854), + 164: uint16(26827), + 165: uint16(22855), + 166: uint16(27495), + 167: uint16(30054), + 168: uint16(23822), + 169: uint16(33040), + 170: uint16(40784), + 171: uint16(26071), + 172: uint16(31048), + 173: uint16(31041), + 174: uint16(39569), + 175: uint16(36215), + 176: uint16(23682), + 177: uint16(20062), + 178: uint16(20225), + 179: uint16(21551), + 180: uint16(22865), + 181: uint16(30732), + 182: uint16(22120), + 183: uint16(27668), + 184: uint16(36804), + 185: uint16(24323), + 186: uint16(27773), + 187: uint16(27875), + 188: uint16(35755), + 189: uint16(25488), + }, + 70: { + 0: uint16(33598), + 1: uint16(33599), + 2: uint16(33601), + 3: uint16(33602), + 4: uint16(33604), + 5: uint16(33605), + 6: uint16(33608), + 7: uint16(33610), + 8: uint16(33611), + 9: uint16(33612), + 10: uint16(33613), + 11: uint16(33614), + 12: uint16(33619), + 13: uint16(33621), + 14: uint16(33622), + 15: uint16(33623), + 16: uint16(33624), + 17: uint16(33625), + 18: uint16(33629), + 19: uint16(33634), + 20: uint16(33648), + 21: uint16(33649), + 22: uint16(33650), + 23: uint16(33651), + 24: uint16(33652), + 25: uint16(33653), + 26: uint16(33654), + 27: uint16(33657), + 28: uint16(33658), + 29: uint16(33662), + 30: uint16(33663), + 31: uint16(33664), + 32: uint16(33665), + 33: uint16(33666), + 34: uint16(33667), + 35: uint16(33668), + 36: uint16(33671), + 37: uint16(33672), + 38: uint16(33674), + 39: uint16(33675), + 40: uint16(33676), + 41: uint16(33677), + 42: uint16(33679), + 43: uint16(33680), + 44: uint16(33681), + 45: uint16(33684), + 46: uint16(33685), + 47: uint16(33686), + 48: uint16(33687), + 49: uint16(33689), + 50: uint16(33690), + 51: uint16(33693), + 52: uint16(33695), + 53: uint16(33697), + 54: uint16(33698), + 55: uint16(33699), + 56: uint16(33700), + 57: uint16(33701), + 58: uint16(33702), + 59: uint16(33703), + 60: uint16(33708), + 61: uint16(33709), + 62: uint16(33710), + 63: uint16(33711), + 64: uint16(33717), + 65: uint16(33723), + 66: uint16(33726), + 67: uint16(33727), + 68: uint16(33730), + 69: uint16(33731), + 70: uint16(33732), + 71: uint16(33734), + 72: uint16(33736), + 73: uint16(33737), + 74: uint16(33739), + 75: uint16(33741), + 76: uint16(33742), + 77: uint16(33744), + 78: uint16(33745), + 79: uint16(33746), + 80: uint16(33747), + 81: uint16(33749), + 82: uint16(33751), + 83: uint16(33753), + 84: uint16(33754), + 85: uint16(33755), + 86: uint16(33758), + 87: uint16(33762), + 88: uint16(33763), + 89: uint16(33764), + 90: uint16(33766), + 91: uint16(33767), + 92: uint16(33768), + 93: uint16(33771), + 94: uint16(33772), + 95: uint16(33773), + 96: uint16(24688), + 97: uint16(27965), + 98: uint16(29301), + 99: uint16(25190), + 100: uint16(38030), + 101: uint16(38085), + 102: uint16(21315), + 103: uint16(36801), + 104: uint16(31614), + 105: uint16(20191), + 106: uint16(35878), + 107: uint16(20094), + 108: uint16(40660), + 109: uint16(38065), + 110: uint16(38067), + 111: uint16(21069), + 112: uint16(28508), + 113: uint16(36963), + 114: uint16(27973), + 115: uint16(35892), + 116: uint16(22545), + 117: uint16(23884), + 118: uint16(27424), + 119: uint16(27465), + 120: uint16(26538), + 121: uint16(21595), + 122: uint16(33108), + 123: uint16(32652), + 124: uint16(22681), + 125: uint16(34103), + 126: uint16(24378), + 127: uint16(25250), + 128: uint16(27207), + 129: uint16(38201), + 130: uint16(25970), + 131: uint16(24708), + 132: uint16(26725), + 133: uint16(30631), + 134: uint16(20052), + 135: uint16(20392), + 136: uint16(24039), + 137: uint16(38808), + 138: uint16(25772), + 139: uint16(32728), + 140: uint16(23789), + 141: uint16(20431), + 142: uint16(31373), + 143: uint16(20999), + 144: uint16(33540), + 145: uint16(19988), + 146: uint16(24623), + 147: uint16(31363), + 148: uint16(38054), + 149: uint16(20405), + 150: uint16(20146), + 151: uint16(31206), + 152: uint16(29748), + 153: uint16(21220), + 154: uint16(33465), + 155: uint16(25810), + 156: uint16(31165), + 157: uint16(23517), + 158: uint16(27777), + 159: uint16(38738), + 160: uint16(36731), + 161: uint16(27682), + 162: uint16(20542), + 163: uint16(21375), + 164: uint16(28165), + 165: uint16(25806), + 166: uint16(26228), + 167: uint16(27696), + 168: uint16(24773), + 169: uint16(39031), + 170: uint16(35831), + 171: uint16(24198), + 172: uint16(29756), + 173: uint16(31351), + 174: uint16(31179), + 175: uint16(19992), + 176: uint16(37041), + 177: uint16(29699), + 178: uint16(27714), + 179: uint16(22234), + 180: uint16(37195), + 181: uint16(27845), + 182: uint16(36235), + 183: uint16(21306), + 184: uint16(34502), + 185: uint16(26354), + 186: uint16(36527), + 187: uint16(23624), + 188: uint16(39537), + 189: uint16(28192), + }, + 71: { + 0: uint16(33774), + 1: uint16(33775), + 2: uint16(33779), + 3: uint16(33780), + 4: uint16(33781), + 5: uint16(33782), + 6: uint16(33783), + 7: uint16(33786), + 8: uint16(33787), + 9: uint16(33788), + 10: uint16(33790), + 11: uint16(33791), + 12: uint16(33792), + 13: uint16(33794), + 14: uint16(33797), + 15: uint16(33799), + 16: uint16(33800), + 17: uint16(33801), + 18: uint16(33802), + 19: uint16(33808), + 20: uint16(33810), + 21: uint16(33811), + 22: uint16(33812), + 23: uint16(33813), + 24: uint16(33814), + 25: uint16(33815), + 26: uint16(33817), + 27: uint16(33818), + 28: uint16(33819), + 29: uint16(33822), + 30: uint16(33823), + 31: uint16(33824), + 32: uint16(33825), + 33: uint16(33826), + 34: uint16(33827), + 35: uint16(33833), + 36: uint16(33834), + 37: uint16(33835), + 38: uint16(33836), + 39: uint16(33837), + 40: uint16(33838), + 41: uint16(33839), + 42: uint16(33840), + 43: uint16(33842), + 44: uint16(33843), + 45: uint16(33844), + 46: uint16(33845), + 47: uint16(33846), + 48: uint16(33847), + 49: uint16(33849), + 50: uint16(33850), + 51: uint16(33851), + 52: uint16(33854), + 53: uint16(33855), + 54: uint16(33856), + 55: uint16(33857), + 56: uint16(33858), + 57: uint16(33859), + 58: uint16(33860), + 59: uint16(33861), + 60: uint16(33863), + 61: uint16(33864), + 62: uint16(33865), + 63: uint16(33866), + 64: uint16(33867), + 65: uint16(33868), + 66: uint16(33869), + 67: uint16(33870), + 68: uint16(33871), + 69: uint16(33872), + 70: uint16(33874), + 71: uint16(33875), + 72: uint16(33876), + 73: uint16(33877), + 74: uint16(33878), + 75: uint16(33880), + 76: uint16(33885), + 77: uint16(33886), + 78: uint16(33887), + 79: uint16(33888), + 80: uint16(33890), + 81: uint16(33892), + 82: uint16(33893), + 83: uint16(33894), + 84: uint16(33895), + 85: uint16(33896), + 86: uint16(33898), + 87: uint16(33902), + 88: uint16(33903), + 89: uint16(33904), + 90: uint16(33906), + 91: uint16(33908), + 92: uint16(33911), + 93: uint16(33913), + 94: uint16(33915), + 95: uint16(33916), + 96: uint16(21462), + 97: uint16(23094), + 98: uint16(40843), + 99: uint16(36259), + 100: uint16(21435), + 101: uint16(22280), + 102: uint16(39079), + 103: uint16(26435), + 104: uint16(37275), + 105: uint16(27849), + 106: uint16(20840), + 107: uint16(30154), + 108: uint16(25331), + 109: uint16(29356), + 110: uint16(21048), + 111: uint16(21149), + 112: uint16(32570), + 113: uint16(28820), + 114: uint16(30264), + 115: uint16(21364), + 116: uint16(40522), + 117: uint16(27063), + 118: uint16(30830), + 119: uint16(38592), + 120: uint16(35033), + 121: uint16(32676), + 122: uint16(28982), + 123: uint16(29123), + 124: uint16(20873), + 125: uint16(26579), + 126: uint16(29924), + 127: uint16(22756), + 128: uint16(25880), + 129: uint16(22199), + 130: uint16(35753), + 131: uint16(39286), + 132: uint16(25200), + 133: uint16(32469), + 134: uint16(24825), + 135: uint16(28909), + 136: uint16(22764), + 137: uint16(20161), + 138: uint16(20154), + 139: uint16(24525), + 140: uint16(38887), + 141: uint16(20219), + 142: uint16(35748), + 143: uint16(20995), + 144: uint16(22922), + 145: uint16(32427), + 146: uint16(25172), + 147: uint16(20173), + 148: uint16(26085), + 149: uint16(25102), + 150: uint16(33592), + 151: uint16(33993), + 152: uint16(33635), + 153: uint16(34701), + 154: uint16(29076), + 155: uint16(28342), + 156: uint16(23481), + 157: uint16(32466), + 158: uint16(20887), + 159: uint16(25545), + 160: uint16(26580), + 161: uint16(32905), + 162: uint16(33593), + 163: uint16(34837), + 164: uint16(20754), + 165: uint16(23418), + 166: uint16(22914), + 167: uint16(36785), + 168: uint16(20083), + 169: uint16(27741), + 170: uint16(20837), + 171: uint16(35109), + 172: uint16(36719), + 173: uint16(38446), + 174: uint16(34122), + 175: uint16(29790), + 176: uint16(38160), + 177: uint16(38384), + 178: uint16(28070), + 179: uint16(33509), + 180: uint16(24369), + 181: uint16(25746), + 182: uint16(27922), + 183: uint16(33832), + 184: uint16(33134), + 185: uint16(40131), + 186: uint16(22622), + 187: uint16(36187), + 188: uint16(19977), + 189: uint16(21441), + }, + 72: { + 0: uint16(33917), + 1: uint16(33918), + 2: uint16(33919), + 3: uint16(33920), + 4: uint16(33921), + 5: uint16(33923), + 6: uint16(33924), + 7: uint16(33925), + 8: uint16(33926), + 9: uint16(33930), + 10: uint16(33933), + 11: uint16(33935), + 12: uint16(33936), + 13: uint16(33937), + 14: uint16(33938), + 15: uint16(33939), + 16: uint16(33940), + 17: uint16(33941), + 18: uint16(33942), + 19: uint16(33944), + 20: uint16(33946), + 21: uint16(33947), + 22: uint16(33949), + 23: uint16(33950), + 24: uint16(33951), + 25: uint16(33952), + 26: uint16(33954), + 27: uint16(33955), + 28: uint16(33956), + 29: uint16(33957), + 30: uint16(33958), + 31: uint16(33959), + 32: uint16(33960), + 33: uint16(33961), + 34: uint16(33962), + 35: uint16(33963), + 36: uint16(33964), + 37: uint16(33965), + 38: uint16(33966), + 39: uint16(33968), + 40: uint16(33969), + 41: uint16(33971), + 42: uint16(33973), + 43: uint16(33974), + 44: uint16(33975), + 45: uint16(33979), + 46: uint16(33980), + 47: uint16(33982), + 48: uint16(33984), + 49: uint16(33986), + 50: uint16(33987), + 51: uint16(33989), + 52: uint16(33990), + 53: uint16(33991), + 54: uint16(33992), + 55: uint16(33995), + 56: uint16(33996), + 57: uint16(33998), + 58: uint16(33999), + 59: uint16(34002), + 60: uint16(34004), + 61: uint16(34005), + 62: uint16(34007), + 63: uint16(34008), + 64: uint16(34009), + 65: uint16(34010), + 66: uint16(34011), + 67: uint16(34012), + 68: uint16(34014), + 69: uint16(34017), + 70: uint16(34018), + 71: uint16(34020), + 72: uint16(34023), + 73: uint16(34024), + 74: uint16(34025), + 75: uint16(34026), + 76: uint16(34027), + 77: uint16(34029), + 78: uint16(34030), + 79: uint16(34031), + 80: uint16(34033), + 81: uint16(34034), + 82: uint16(34035), + 83: uint16(34036), + 84: uint16(34037), + 85: uint16(34038), + 86: uint16(34039), + 87: uint16(34040), + 88: uint16(34041), + 89: uint16(34042), + 90: uint16(34043), + 91: uint16(34045), + 92: uint16(34046), + 93: uint16(34048), + 94: uint16(34049), + 95: uint16(34050), + 96: uint16(20254), + 97: uint16(25955), + 98: uint16(26705), + 99: uint16(21971), + 100: uint16(20007), + 101: uint16(25620), + 102: uint16(39578), + 103: uint16(25195), + 104: uint16(23234), + 105: uint16(29791), + 106: uint16(33394), + 107: uint16(28073), + 108: uint16(26862), + 109: uint16(20711), + 110: uint16(33678), + 111: uint16(30722), + 112: uint16(26432), + 113: uint16(21049), + 114: uint16(27801), + 115: uint16(32433), + 116: uint16(20667), + 117: uint16(21861), + 118: uint16(29022), + 119: uint16(31579), + 120: uint16(26194), + 121: uint16(29642), + 122: uint16(33515), + 123: uint16(26441), + 124: uint16(23665), + 125: uint16(21024), + 126: uint16(29053), + 127: uint16(34923), + 128: uint16(38378), + 129: uint16(38485), + 130: uint16(25797), + 131: uint16(36193), + 132: uint16(33203), + 133: uint16(21892), + 134: uint16(27733), + 135: uint16(25159), + 136: uint16(32558), + 137: uint16(22674), + 138: uint16(20260), + 139: uint16(21830), + 140: uint16(36175), + 141: uint16(26188), + 142: uint16(19978), + 143: uint16(23578), + 144: uint16(35059), + 145: uint16(26786), + 146: uint16(25422), + 147: uint16(31245), + 148: uint16(28903), + 149: uint16(33421), + 150: uint16(21242), + 151: uint16(38902), + 152: uint16(23569), + 153: uint16(21736), + 154: uint16(37045), + 155: uint16(32461), + 156: uint16(22882), + 157: uint16(36170), + 158: uint16(34503), + 159: uint16(33292), + 160: uint16(33293), + 161: uint16(36198), + 162: uint16(25668), + 163: uint16(23556), + 164: uint16(24913), + 165: uint16(28041), + 166: uint16(31038), + 167: uint16(35774), + 168: uint16(30775), + 169: uint16(30003), + 170: uint16(21627), + 171: uint16(20280), + 172: uint16(36523), + 173: uint16(28145), + 174: uint16(23072), + 175: uint16(32453), + 176: uint16(31070), + 177: uint16(27784), + 178: uint16(23457), + 179: uint16(23158), + 180: uint16(29978), + 181: uint16(32958), + 182: uint16(24910), + 183: uint16(28183), + 184: uint16(22768), + 185: uint16(29983), + 186: uint16(29989), + 187: uint16(29298), + 188: uint16(21319), + 189: uint16(32499), + }, + 73: { + 0: uint16(34051), + 1: uint16(34052), + 2: uint16(34053), + 3: uint16(34054), + 4: uint16(34055), + 5: uint16(34056), + 6: uint16(34057), + 7: uint16(34058), + 8: uint16(34059), + 9: uint16(34061), + 10: uint16(34062), + 11: uint16(34063), + 12: uint16(34064), + 13: uint16(34066), + 14: uint16(34068), + 15: uint16(34069), + 16: uint16(34070), + 17: uint16(34072), + 18: uint16(34073), + 19: uint16(34075), + 20: uint16(34076), + 21: uint16(34077), + 22: uint16(34078), + 23: uint16(34080), + 24: uint16(34082), + 25: uint16(34083), + 26: uint16(34084), + 27: uint16(34085), + 28: uint16(34086), + 29: uint16(34087), + 30: uint16(34088), + 31: uint16(34089), + 32: uint16(34090), + 33: uint16(34093), + 34: uint16(34094), + 35: uint16(34095), + 36: uint16(34096), + 37: uint16(34097), + 38: uint16(34098), + 39: uint16(34099), + 40: uint16(34100), + 41: uint16(34101), + 42: uint16(34102), + 43: uint16(34110), + 44: uint16(34111), + 45: uint16(34112), + 46: uint16(34113), + 47: uint16(34114), + 48: uint16(34116), + 49: uint16(34117), + 50: uint16(34118), + 51: uint16(34119), + 52: uint16(34123), + 53: uint16(34124), + 54: uint16(34125), + 55: uint16(34126), + 56: uint16(34127), + 57: uint16(34128), + 58: uint16(34129), + 59: uint16(34130), + 60: uint16(34131), + 61: uint16(34132), + 62: uint16(34133), + 63: uint16(34135), + 64: uint16(34136), + 65: uint16(34138), + 66: uint16(34139), + 67: uint16(34140), + 68: uint16(34141), + 69: uint16(34143), + 70: uint16(34144), + 71: uint16(34145), + 72: uint16(34146), + 73: uint16(34147), + 74: uint16(34149), + 75: uint16(34150), + 76: uint16(34151), + 77: uint16(34153), + 78: uint16(34154), + 79: uint16(34155), + 80: uint16(34156), + 81: uint16(34157), + 82: uint16(34158), + 83: uint16(34159), + 84: uint16(34160), + 85: uint16(34161), + 86: uint16(34163), + 87: uint16(34165), + 88: uint16(34166), + 89: uint16(34167), + 90: uint16(34168), + 91: uint16(34172), + 92: uint16(34173), + 93: uint16(34175), + 94: uint16(34176), + 95: uint16(34177), + 96: uint16(30465), + 97: uint16(30427), + 98: uint16(21097), + 99: uint16(32988), + 100: uint16(22307), + 101: uint16(24072), + 102: uint16(22833), + 103: uint16(29422), + 104: uint16(26045), + 105: uint16(28287), + 106: uint16(35799), + 107: uint16(23608), + 108: uint16(34417), + 109: uint16(21313), + 110: uint16(30707), + 111: uint16(25342), + 112: uint16(26102), + 113: uint16(20160), + 114: uint16(39135), + 115: uint16(34432), + 116: uint16(23454), + 117: uint16(35782), + 118: uint16(21490), + 119: uint16(30690), + 120: uint16(20351), + 121: uint16(23630), + 122: uint16(39542), + 123: uint16(22987), + 124: uint16(24335), + 125: uint16(31034), + 126: uint16(22763), + 127: uint16(19990), + 128: uint16(26623), + 129: uint16(20107), + 130: uint16(25325), + 131: uint16(35475), + 132: uint16(36893), + 133: uint16(21183), + 134: uint16(26159), + 135: uint16(21980), + 136: uint16(22124), + 137: uint16(36866), + 138: uint16(20181), + 139: uint16(20365), + 140: uint16(37322), + 141: uint16(39280), + 142: uint16(27663), + 143: uint16(24066), + 144: uint16(24643), + 145: uint16(23460), + 146: uint16(35270), + 147: uint16(35797), + 148: uint16(25910), + 149: uint16(25163), + 150: uint16(39318), + 151: uint16(23432), + 152: uint16(23551), + 153: uint16(25480), + 154: uint16(21806), + 155: uint16(21463), + 156: uint16(30246), + 157: uint16(20861), + 158: uint16(34092), + 159: uint16(26530), + 160: uint16(26803), + 161: uint16(27530), + 162: uint16(25234), + 163: uint16(36755), + 164: uint16(21460), + 165: uint16(33298), + 166: uint16(28113), + 167: uint16(30095), + 168: uint16(20070), + 169: uint16(36174), + 170: uint16(23408), + 171: uint16(29087), + 172: uint16(34223), + 173: uint16(26257), + 174: uint16(26329), + 175: uint16(32626), + 176: uint16(34560), + 177: uint16(40653), + 178: uint16(40736), + 179: uint16(23646), + 180: uint16(26415), + 181: uint16(36848), + 182: uint16(26641), + 183: uint16(26463), + 184: uint16(25101), + 185: uint16(31446), + 186: uint16(22661), + 187: uint16(24246), + 188: uint16(25968), + 189: uint16(28465), + }, + 74: { + 0: uint16(34178), + 1: uint16(34179), + 2: uint16(34182), + 3: uint16(34184), + 4: uint16(34185), + 5: uint16(34186), + 6: uint16(34187), + 7: uint16(34188), + 8: uint16(34189), + 9: uint16(34190), + 10: uint16(34192), + 11: uint16(34193), + 12: uint16(34194), + 13: uint16(34195), + 14: uint16(34196), + 15: uint16(34197), + 16: uint16(34198), + 17: uint16(34199), + 18: uint16(34200), + 19: uint16(34201), + 20: uint16(34202), + 21: uint16(34205), + 22: uint16(34206), + 23: uint16(34207), + 24: uint16(34208), + 25: uint16(34209), + 26: uint16(34210), + 27: uint16(34211), + 28: uint16(34213), + 29: uint16(34214), + 30: uint16(34215), + 31: uint16(34217), + 32: uint16(34219), + 33: uint16(34220), + 34: uint16(34221), + 35: uint16(34225), + 36: uint16(34226), + 37: uint16(34227), + 38: uint16(34228), + 39: uint16(34229), + 40: uint16(34230), + 41: uint16(34232), + 42: uint16(34234), + 43: uint16(34235), + 44: uint16(34236), + 45: uint16(34237), + 46: uint16(34238), + 47: uint16(34239), + 48: uint16(34240), + 49: uint16(34242), + 50: uint16(34243), + 51: uint16(34244), + 52: uint16(34245), + 53: uint16(34246), + 54: uint16(34247), + 55: uint16(34248), + 56: uint16(34250), + 57: uint16(34251), + 58: uint16(34252), + 59: uint16(34253), + 60: uint16(34254), + 61: uint16(34257), + 62: uint16(34258), + 63: uint16(34260), + 64: uint16(34262), + 65: uint16(34263), + 66: uint16(34264), + 67: uint16(34265), + 68: uint16(34266), + 69: uint16(34267), + 70: uint16(34269), + 71: uint16(34270), + 72: uint16(34271), + 73: uint16(34272), + 74: uint16(34273), + 75: uint16(34274), + 76: uint16(34275), + 77: uint16(34277), + 78: uint16(34278), + 79: uint16(34279), + 80: uint16(34280), + 81: uint16(34282), + 82: uint16(34283), + 83: uint16(34284), + 84: uint16(34285), + 85: uint16(34286), + 86: uint16(34287), + 87: uint16(34288), + 88: uint16(34289), + 89: uint16(34290), + 90: uint16(34291), + 91: uint16(34292), + 92: uint16(34293), + 93: uint16(34294), + 94: uint16(34295), + 95: uint16(34296), + 96: uint16(24661), + 97: uint16(21047), + 98: uint16(32781), + 99: uint16(25684), + 100: uint16(34928), + 101: uint16(29993), + 102: uint16(24069), + 103: uint16(26643), + 104: uint16(25332), + 105: uint16(38684), + 106: uint16(21452), + 107: uint16(29245), + 108: uint16(35841), + 109: uint16(27700), + 110: uint16(30561), + 111: uint16(31246), + 112: uint16(21550), + 113: uint16(30636), + 114: uint16(39034), + 115: uint16(33308), + 116: uint16(35828), + 117: uint16(30805), + 118: uint16(26388), + 119: uint16(28865), + 120: uint16(26031), + 121: uint16(25749), + 122: uint16(22070), + 123: uint16(24605), + 124: uint16(31169), + 125: uint16(21496), + 126: uint16(19997), + 127: uint16(27515), + 128: uint16(32902), + 129: uint16(23546), + 130: uint16(21987), + 131: uint16(22235), + 132: uint16(20282), + 133: uint16(20284), + 134: uint16(39282), + 135: uint16(24051), + 136: uint16(26494), + 137: uint16(32824), + 138: uint16(24578), + 139: uint16(39042), + 140: uint16(36865), + 141: uint16(23435), + 142: uint16(35772), + 143: uint16(35829), + 144: uint16(25628), + 145: uint16(33368), + 146: uint16(25822), + 147: uint16(22013), + 148: uint16(33487), + 149: uint16(37221), + 150: uint16(20439), + 151: uint16(32032), + 152: uint16(36895), + 153: uint16(31903), + 154: uint16(20723), + 155: uint16(22609), + 156: uint16(28335), + 157: uint16(23487), + 158: uint16(35785), + 159: uint16(32899), + 160: uint16(37240), + 161: uint16(33948), + 162: uint16(31639), + 163: uint16(34429), + 164: uint16(38539), + 165: uint16(38543), + 166: uint16(32485), + 167: uint16(39635), + 168: uint16(30862), + 169: uint16(23681), + 170: uint16(31319), + 171: uint16(36930), + 172: uint16(38567), + 173: uint16(31071), + 174: uint16(23385), + 175: uint16(25439), + 176: uint16(31499), + 177: uint16(34001), + 178: uint16(26797), + 179: uint16(21766), + 180: uint16(32553), + 181: uint16(29712), + 182: uint16(32034), + 183: uint16(38145), + 184: uint16(25152), + 185: uint16(22604), + 186: uint16(20182), + 187: uint16(23427), + 188: uint16(22905), + 189: uint16(22612), + }, + 75: { + 0: uint16(34297), + 1: uint16(34298), + 2: uint16(34300), + 3: uint16(34301), + 4: uint16(34302), + 5: uint16(34304), + 6: uint16(34305), + 7: uint16(34306), + 8: uint16(34307), + 9: uint16(34308), + 10: uint16(34310), + 11: uint16(34311), + 12: uint16(34312), + 13: uint16(34313), + 14: uint16(34314), + 15: uint16(34315), + 16: uint16(34316), + 17: uint16(34317), + 18: uint16(34318), + 19: uint16(34319), + 20: uint16(34320), + 21: uint16(34322), + 22: uint16(34323), + 23: uint16(34324), + 24: uint16(34325), + 25: uint16(34327), + 26: uint16(34328), + 27: uint16(34329), + 28: uint16(34330), + 29: uint16(34331), + 30: uint16(34332), + 31: uint16(34333), + 32: uint16(34334), + 33: uint16(34335), + 34: uint16(34336), + 35: uint16(34337), + 36: uint16(34338), + 37: uint16(34339), + 38: uint16(34340), + 39: uint16(34341), + 40: uint16(34342), + 41: uint16(34344), + 42: uint16(34346), + 43: uint16(34347), + 44: uint16(34348), + 45: uint16(34349), + 46: uint16(34350), + 47: uint16(34351), + 48: uint16(34352), + 49: uint16(34353), + 50: uint16(34354), + 51: uint16(34355), + 52: uint16(34356), + 53: uint16(34357), + 54: uint16(34358), + 55: uint16(34359), + 56: uint16(34361), + 57: uint16(34362), + 58: uint16(34363), + 59: uint16(34365), + 60: uint16(34366), + 61: uint16(34367), + 62: uint16(34368), + 63: uint16(34369), + 64: uint16(34370), + 65: uint16(34371), + 66: uint16(34372), + 67: uint16(34373), + 68: uint16(34374), + 69: uint16(34375), + 70: uint16(34376), + 71: uint16(34377), + 72: uint16(34378), + 73: uint16(34379), + 74: uint16(34380), + 75: uint16(34386), + 76: uint16(34387), + 77: uint16(34389), + 78: uint16(34390), + 79: uint16(34391), + 80: uint16(34392), + 81: uint16(34393), + 82: uint16(34395), + 83: uint16(34396), + 84: uint16(34397), + 85: uint16(34399), + 86: uint16(34400), + 87: uint16(34401), + 88: uint16(34403), + 89: uint16(34404), + 90: uint16(34405), + 91: uint16(34406), + 92: uint16(34407), + 93: uint16(34408), + 94: uint16(34409), + 95: uint16(34410), + 96: uint16(29549), + 97: uint16(25374), + 98: uint16(36427), + 99: uint16(36367), + 100: uint16(32974), + 101: uint16(33492), + 102: uint16(25260), + 103: uint16(21488), + 104: uint16(27888), + 105: uint16(37214), + 106: uint16(22826), + 107: uint16(24577), + 108: uint16(27760), + 109: uint16(22349), + 110: uint16(25674), + 111: uint16(36138), + 112: uint16(30251), + 113: uint16(28393), + 114: uint16(22363), + 115: uint16(27264), + 116: uint16(30192), + 117: uint16(28525), + 118: uint16(35885), + 119: uint16(35848), + 120: uint16(22374), + 121: uint16(27631), + 122: uint16(34962), + 123: uint16(30899), + 124: uint16(25506), + 125: uint16(21497), + 126: uint16(28845), + 127: uint16(27748), + 128: uint16(22616), + 129: uint16(25642), + 130: uint16(22530), + 131: uint16(26848), + 132: uint16(33179), + 133: uint16(21776), + 134: uint16(31958), + 135: uint16(20504), + 136: uint16(36538), + 137: uint16(28108), + 138: uint16(36255), + 139: uint16(28907), + 140: uint16(25487), + 141: uint16(28059), + 142: uint16(28372), + 143: uint16(32486), + 144: uint16(33796), + 145: uint16(26691), + 146: uint16(36867), + 147: uint16(28120), + 148: uint16(38518), + 149: uint16(35752), + 150: uint16(22871), + 151: uint16(29305), + 152: uint16(34276), + 153: uint16(33150), + 154: uint16(30140), + 155: uint16(35466), + 156: uint16(26799), + 157: uint16(21076), + 158: uint16(36386), + 159: uint16(38161), + 160: uint16(25552), + 161: uint16(39064), + 162: uint16(36420), + 163: uint16(21884), + 164: uint16(20307), + 165: uint16(26367), + 166: uint16(22159), + 167: uint16(24789), + 168: uint16(28053), + 169: uint16(21059), + 170: uint16(23625), + 171: uint16(22825), + 172: uint16(28155), + 173: uint16(22635), + 174: uint16(30000), + 175: uint16(29980), + 176: uint16(24684), + 177: uint16(33300), + 178: uint16(33094), + 179: uint16(25361), + 180: uint16(26465), + 181: uint16(36834), + 182: uint16(30522), + 183: uint16(36339), + 184: uint16(36148), + 185: uint16(38081), + 186: uint16(24086), + 187: uint16(21381), + 188: uint16(21548), + 189: uint16(28867), + }, + 76: { + 0: uint16(34413), + 1: uint16(34415), + 2: uint16(34416), + 3: uint16(34418), + 4: uint16(34419), + 5: uint16(34420), + 6: uint16(34421), + 7: uint16(34422), + 8: uint16(34423), + 9: uint16(34424), + 10: uint16(34435), + 11: uint16(34436), + 12: uint16(34437), + 13: uint16(34438), + 14: uint16(34439), + 15: uint16(34440), + 16: uint16(34441), + 17: uint16(34446), + 18: uint16(34447), + 19: uint16(34448), + 20: uint16(34449), + 21: uint16(34450), + 22: uint16(34452), + 23: uint16(34454), + 24: uint16(34455), + 25: uint16(34456), + 26: uint16(34457), + 27: uint16(34458), + 28: uint16(34459), + 29: uint16(34462), + 30: uint16(34463), + 31: uint16(34464), + 32: uint16(34465), + 33: uint16(34466), + 34: uint16(34469), + 35: uint16(34470), + 36: uint16(34475), + 37: uint16(34477), + 38: uint16(34478), + 39: uint16(34482), + 40: uint16(34483), + 41: uint16(34487), + 42: uint16(34488), + 43: uint16(34489), + 44: uint16(34491), + 45: uint16(34492), + 46: uint16(34493), + 47: uint16(34494), + 48: uint16(34495), + 49: uint16(34497), + 50: uint16(34498), + 51: uint16(34499), + 52: uint16(34501), + 53: uint16(34504), + 54: uint16(34508), + 55: uint16(34509), + 56: uint16(34514), + 57: uint16(34515), + 58: uint16(34517), + 59: uint16(34518), + 60: uint16(34519), + 61: uint16(34522), + 62: uint16(34524), + 63: uint16(34525), + 64: uint16(34528), + 65: uint16(34529), + 66: uint16(34530), + 67: uint16(34531), + 68: uint16(34533), + 69: uint16(34534), + 70: uint16(34535), + 71: uint16(34536), + 72: uint16(34538), + 73: uint16(34539), + 74: uint16(34540), + 75: uint16(34543), + 76: uint16(34549), + 77: uint16(34550), + 78: uint16(34551), + 79: uint16(34554), + 80: uint16(34555), + 81: uint16(34556), + 82: uint16(34557), + 83: uint16(34559), + 84: uint16(34561), + 85: uint16(34564), + 86: uint16(34565), + 87: uint16(34566), + 88: uint16(34571), + 89: uint16(34572), + 90: uint16(34574), + 91: uint16(34575), + 92: uint16(34576), + 93: uint16(34577), + 94: uint16(34580), + 95: uint16(34582), + 96: uint16(27712), + 97: uint16(24311), + 98: uint16(20572), + 99: uint16(20141), + 100: uint16(24237), + 101: uint16(25402), + 102: uint16(33351), + 103: uint16(36890), + 104: uint16(26704), + 105: uint16(37230), + 106: uint16(30643), + 107: uint16(21516), + 108: uint16(38108), + 109: uint16(24420), + 110: uint16(31461), + 111: uint16(26742), + 112: uint16(25413), + 113: uint16(31570), + 114: uint16(32479), + 115: uint16(30171), + 116: uint16(20599), + 117: uint16(25237), + 118: uint16(22836), + 119: uint16(36879), + 120: uint16(20984), + 121: uint16(31171), + 122: uint16(31361), + 123: uint16(22270), + 124: uint16(24466), + 125: uint16(36884), + 126: uint16(28034), + 127: uint16(23648), + 128: uint16(22303), + 129: uint16(21520), + 130: uint16(20820), + 131: uint16(28237), + 132: uint16(22242), + 133: uint16(25512), + 134: uint16(39059), + 135: uint16(33151), + 136: uint16(34581), + 137: uint16(35114), + 138: uint16(36864), + 139: uint16(21534), + 140: uint16(23663), + 141: uint16(33216), + 142: uint16(25302), + 143: uint16(25176), + 144: uint16(33073), + 145: uint16(40501), + 146: uint16(38464), + 147: uint16(39534), + 148: uint16(39548), + 149: uint16(26925), + 150: uint16(22949), + 151: uint16(25299), + 152: uint16(21822), + 153: uint16(25366), + 154: uint16(21703), + 155: uint16(34521), + 156: uint16(27964), + 157: uint16(23043), + 158: uint16(29926), + 159: uint16(34972), + 160: uint16(27498), + 161: uint16(22806), + 162: uint16(35916), + 163: uint16(24367), + 164: uint16(28286), + 165: uint16(29609), + 166: uint16(39037), + 167: uint16(20024), + 168: uint16(28919), + 169: uint16(23436), + 170: uint16(30871), + 171: uint16(25405), + 172: uint16(26202), + 173: uint16(30358), + 174: uint16(24779), + 175: uint16(23451), + 176: uint16(23113), + 177: uint16(19975), + 178: uint16(33109), + 179: uint16(27754), + 180: uint16(29579), + 181: uint16(20129), + 182: uint16(26505), + 183: uint16(32593), + 184: uint16(24448), + 185: uint16(26106), + 186: uint16(26395), + 187: uint16(24536), + 188: uint16(22916), + 189: uint16(23041), + }, + 77: { + 0: uint16(34585), + 1: uint16(34587), + 2: uint16(34589), + 3: uint16(34591), + 4: uint16(34592), + 5: uint16(34596), + 6: uint16(34598), + 7: uint16(34599), + 8: uint16(34600), + 9: uint16(34602), + 10: uint16(34603), + 11: uint16(34604), + 12: uint16(34605), + 13: uint16(34607), + 14: uint16(34608), + 15: uint16(34610), + 16: uint16(34611), + 17: uint16(34613), + 18: uint16(34614), + 19: uint16(34616), + 20: uint16(34617), + 21: uint16(34618), + 22: uint16(34620), + 23: uint16(34621), + 24: uint16(34624), + 25: uint16(34625), + 26: uint16(34626), + 27: uint16(34627), + 28: uint16(34628), + 29: uint16(34629), + 30: uint16(34630), + 31: uint16(34634), + 32: uint16(34635), + 33: uint16(34637), + 34: uint16(34639), + 35: uint16(34640), + 36: uint16(34641), + 37: uint16(34642), + 38: uint16(34644), + 39: uint16(34645), + 40: uint16(34646), + 41: uint16(34648), + 42: uint16(34650), + 43: uint16(34651), + 44: uint16(34652), + 45: uint16(34653), + 46: uint16(34654), + 47: uint16(34655), + 48: uint16(34657), + 49: uint16(34658), + 50: uint16(34662), + 51: uint16(34663), + 52: uint16(34664), + 53: uint16(34665), + 54: uint16(34666), + 55: uint16(34667), + 56: uint16(34668), + 57: uint16(34669), + 58: uint16(34671), + 59: uint16(34673), + 60: uint16(34674), + 61: uint16(34675), + 62: uint16(34677), + 63: uint16(34679), + 64: uint16(34680), + 65: uint16(34681), + 66: uint16(34682), + 67: uint16(34687), + 68: uint16(34688), + 69: uint16(34689), + 70: uint16(34692), + 71: uint16(34694), + 72: uint16(34695), + 73: uint16(34697), + 74: uint16(34698), + 75: uint16(34700), + 76: uint16(34702), + 77: uint16(34703), + 78: uint16(34704), + 79: uint16(34705), + 80: uint16(34706), + 81: uint16(34708), + 82: uint16(34709), + 83: uint16(34710), + 84: uint16(34712), + 85: uint16(34713), + 86: uint16(34714), + 87: uint16(34715), + 88: uint16(34716), + 89: uint16(34717), + 90: uint16(34718), + 91: uint16(34720), + 92: uint16(34721), + 93: uint16(34722), + 94: uint16(34723), + 95: uint16(34724), + 96: uint16(24013), + 97: uint16(24494), + 98: uint16(21361), + 99: uint16(38886), + 100: uint16(36829), + 101: uint16(26693), + 102: uint16(22260), + 103: uint16(21807), + 104: uint16(24799), + 105: uint16(20026), + 106: uint16(28493), + 107: uint16(32500), + 108: uint16(33479), + 109: uint16(33806), + 110: uint16(22996), + 111: uint16(20255), + 112: uint16(20266), + 113: uint16(23614), + 114: uint16(32428), + 115: uint16(26410), + 116: uint16(34074), + 117: uint16(21619), + 118: uint16(30031), + 119: uint16(32963), + 120: uint16(21890), + 121: uint16(39759), + 122: uint16(20301), + 123: uint16(28205), + 124: uint16(35859), + 125: uint16(23561), + 126: uint16(24944), + 127: uint16(21355), + 128: uint16(30239), + 129: uint16(28201), + 130: uint16(34442), + 131: uint16(25991), + 132: uint16(38395), + 133: uint16(32441), + 134: uint16(21563), + 135: uint16(31283), + 136: uint16(32010), + 137: uint16(38382), + 138: uint16(21985), + 139: uint16(32705), + 140: uint16(29934), + 141: uint16(25373), + 142: uint16(34583), + 143: uint16(28065), + 144: uint16(31389), + 145: uint16(25105), + 146: uint16(26017), + 147: uint16(21351), + 148: uint16(25569), + 149: uint16(27779), + 150: uint16(24043), + 151: uint16(21596), + 152: uint16(38056), + 153: uint16(20044), + 154: uint16(27745), + 155: uint16(35820), + 156: uint16(23627), + 157: uint16(26080), + 158: uint16(33436), + 159: uint16(26791), + 160: uint16(21566), + 161: uint16(21556), + 162: uint16(27595), + 163: uint16(27494), + 164: uint16(20116), + 165: uint16(25410), + 166: uint16(21320), + 167: uint16(33310), + 168: uint16(20237), + 169: uint16(20398), + 170: uint16(22366), + 171: uint16(25098), + 172: uint16(38654), + 173: uint16(26212), + 174: uint16(29289), + 175: uint16(21247), + 176: uint16(21153), + 177: uint16(24735), + 178: uint16(35823), + 179: uint16(26132), + 180: uint16(29081), + 181: uint16(26512), + 182: uint16(35199), + 183: uint16(30802), + 184: uint16(30717), + 185: uint16(26224), + 186: uint16(22075), + 187: uint16(21560), + 188: uint16(38177), + 189: uint16(29306), + }, + 78: { + 0: uint16(34725), + 1: uint16(34726), + 2: uint16(34727), + 3: uint16(34729), + 4: uint16(34730), + 5: uint16(34734), + 6: uint16(34736), + 7: uint16(34737), + 8: uint16(34738), + 9: uint16(34740), + 10: uint16(34742), + 11: uint16(34743), + 12: uint16(34744), + 13: uint16(34745), + 14: uint16(34747), + 15: uint16(34748), + 16: uint16(34750), + 17: uint16(34751), + 18: uint16(34753), + 19: uint16(34754), + 20: uint16(34755), + 21: uint16(34756), + 22: uint16(34757), + 23: uint16(34759), + 24: uint16(34760), + 25: uint16(34761), + 26: uint16(34764), + 27: uint16(34765), + 28: uint16(34766), + 29: uint16(34767), + 30: uint16(34768), + 31: uint16(34772), + 32: uint16(34773), + 33: uint16(34774), + 34: uint16(34775), + 35: uint16(34776), + 36: uint16(34777), + 37: uint16(34778), + 38: uint16(34780), + 39: uint16(34781), + 40: uint16(34782), + 41: uint16(34783), + 42: uint16(34785), + 43: uint16(34786), + 44: uint16(34787), + 45: uint16(34788), + 46: uint16(34790), + 47: uint16(34791), + 48: uint16(34792), + 49: uint16(34793), + 50: uint16(34795), + 51: uint16(34796), + 52: uint16(34797), + 53: uint16(34799), + 54: uint16(34800), + 55: uint16(34801), + 56: uint16(34802), + 57: uint16(34803), + 58: uint16(34804), + 59: uint16(34805), + 60: uint16(34806), + 61: uint16(34807), + 62: uint16(34808), + 63: uint16(34810), + 64: uint16(34811), + 65: uint16(34812), + 66: uint16(34813), + 67: uint16(34815), + 68: uint16(34816), + 69: uint16(34817), + 70: uint16(34818), + 71: uint16(34820), + 72: uint16(34821), + 73: uint16(34822), + 74: uint16(34823), + 75: uint16(34824), + 76: uint16(34825), + 77: uint16(34827), + 78: uint16(34828), + 79: uint16(34829), + 80: uint16(34830), + 81: uint16(34831), + 82: uint16(34832), + 83: uint16(34833), + 84: uint16(34834), + 85: uint16(34836), + 86: uint16(34839), + 87: uint16(34840), + 88: uint16(34841), + 89: uint16(34842), + 90: uint16(34844), + 91: uint16(34845), + 92: uint16(34846), + 93: uint16(34847), + 94: uint16(34848), + 95: uint16(34851), + 96: uint16(31232), + 97: uint16(24687), + 98: uint16(24076), + 99: uint16(24713), + 100: uint16(33181), + 101: uint16(22805), + 102: uint16(24796), + 103: uint16(29060), + 104: uint16(28911), + 105: uint16(28330), + 106: uint16(27728), + 107: uint16(29312), + 108: uint16(27268), + 109: uint16(34989), + 110: uint16(24109), + 111: uint16(20064), + 112: uint16(23219), + 113: uint16(21916), + 114: uint16(38115), + 115: uint16(27927), + 116: uint16(31995), + 117: uint16(38553), + 118: uint16(25103), + 119: uint16(32454), + 120: uint16(30606), + 121: uint16(34430), + 122: uint16(21283), + 123: uint16(38686), + 124: uint16(36758), + 125: uint16(26247), + 126: uint16(23777), + 127: uint16(20384), + 128: uint16(29421), + 129: uint16(19979), + 130: uint16(21414), + 131: uint16(22799), + 132: uint16(21523), + 133: uint16(25472), + 134: uint16(38184), + 135: uint16(20808), + 136: uint16(20185), + 137: uint16(40092), + 138: uint16(32420), + 139: uint16(21688), + 140: uint16(36132), + 141: uint16(34900), + 142: uint16(33335), + 143: uint16(38386), + 144: uint16(28046), + 145: uint16(24358), + 146: uint16(23244), + 147: uint16(26174), + 148: uint16(38505), + 149: uint16(29616), + 150: uint16(29486), + 151: uint16(21439), + 152: uint16(33146), + 153: uint16(39301), + 154: uint16(32673), + 155: uint16(23466), + 156: uint16(38519), + 157: uint16(38480), + 158: uint16(32447), + 159: uint16(30456), + 160: uint16(21410), + 161: uint16(38262), + 162: uint16(39321), + 163: uint16(31665), + 164: uint16(35140), + 165: uint16(28248), + 166: uint16(20065), + 167: uint16(32724), + 168: uint16(31077), + 169: uint16(35814), + 170: uint16(24819), + 171: uint16(21709), + 172: uint16(20139), + 173: uint16(39033), + 174: uint16(24055), + 175: uint16(27233), + 176: uint16(20687), + 177: uint16(21521), + 178: uint16(35937), + 179: uint16(33831), + 180: uint16(30813), + 181: uint16(38660), + 182: uint16(21066), + 183: uint16(21742), + 184: uint16(22179), + 185: uint16(38144), + 186: uint16(28040), + 187: uint16(23477), + 188: uint16(28102), + 189: uint16(26195), + }, + 79: { + 0: uint16(34852), + 1: uint16(34853), + 2: uint16(34854), + 3: uint16(34855), + 4: uint16(34856), + 5: uint16(34857), + 6: uint16(34858), + 7: uint16(34859), + 8: uint16(34860), + 9: uint16(34861), + 10: uint16(34862), + 11: uint16(34863), + 12: uint16(34864), + 13: uint16(34865), + 14: uint16(34867), + 15: uint16(34868), + 16: uint16(34869), + 17: uint16(34870), + 18: uint16(34871), + 19: uint16(34872), + 20: uint16(34874), + 21: uint16(34875), + 22: uint16(34877), + 23: uint16(34878), + 24: uint16(34879), + 25: uint16(34881), + 26: uint16(34882), + 27: uint16(34883), + 28: uint16(34886), + 29: uint16(34887), + 30: uint16(34888), + 31: uint16(34889), + 32: uint16(34890), + 33: uint16(34891), + 34: uint16(34894), + 35: uint16(34895), + 36: uint16(34896), + 37: uint16(34897), + 38: uint16(34898), + 39: uint16(34899), + 40: uint16(34901), + 41: uint16(34902), + 42: uint16(34904), + 43: uint16(34906), + 44: uint16(34907), + 45: uint16(34908), + 46: uint16(34909), + 47: uint16(34910), + 48: uint16(34911), + 49: uint16(34912), + 50: uint16(34918), + 51: uint16(34919), + 52: uint16(34922), + 53: uint16(34925), + 54: uint16(34927), + 55: uint16(34929), + 56: uint16(34931), + 57: uint16(34932), + 58: uint16(34933), + 59: uint16(34934), + 60: uint16(34936), + 61: uint16(34937), + 62: uint16(34938), + 63: uint16(34939), + 64: uint16(34940), + 65: uint16(34944), + 66: uint16(34947), + 67: uint16(34950), + 68: uint16(34951), + 69: uint16(34953), + 70: uint16(34954), + 71: uint16(34956), + 72: uint16(34958), + 73: uint16(34959), + 74: uint16(34960), + 75: uint16(34961), + 76: uint16(34963), + 77: uint16(34964), + 78: uint16(34965), + 79: uint16(34967), + 80: uint16(34968), + 81: uint16(34969), + 82: uint16(34970), + 83: uint16(34971), + 84: uint16(34973), + 85: uint16(34974), + 86: uint16(34975), + 87: uint16(34976), + 88: uint16(34977), + 89: uint16(34979), + 90: uint16(34981), + 91: uint16(34982), + 92: uint16(34983), + 93: uint16(34984), + 94: uint16(34985), + 95: uint16(34986), + 96: uint16(23567), + 97: uint16(23389), + 98: uint16(26657), + 99: uint16(32918), + 100: uint16(21880), + 101: uint16(31505), + 102: uint16(25928), + 103: uint16(26964), + 104: uint16(20123), + 105: uint16(27463), + 106: uint16(34638), + 107: uint16(38795), + 108: uint16(21327), + 109: uint16(25375), + 110: uint16(25658), + 111: uint16(37034), + 112: uint16(26012), + 113: uint16(32961), + 114: uint16(35856), + 115: uint16(20889), + 116: uint16(26800), + 117: uint16(21368), + 118: uint16(34809), + 119: uint16(25032), + 120: uint16(27844), + 121: uint16(27899), + 122: uint16(35874), + 123: uint16(23633), + 124: uint16(34218), + 125: uint16(33455), + 126: uint16(38156), + 127: uint16(27427), + 128: uint16(36763), + 129: uint16(26032), + 130: uint16(24571), + 131: uint16(24515), + 132: uint16(20449), + 133: uint16(34885), + 134: uint16(26143), + 135: uint16(33125), + 136: uint16(29481), + 137: uint16(24826), + 138: uint16(20852), + 139: uint16(21009), + 140: uint16(22411), + 141: uint16(24418), + 142: uint16(37026), + 143: uint16(34892), + 144: uint16(37266), + 145: uint16(24184), + 146: uint16(26447), + 147: uint16(24615), + 148: uint16(22995), + 149: uint16(20804), + 150: uint16(20982), + 151: uint16(33016), + 152: uint16(21256), + 153: uint16(27769), + 154: uint16(38596), + 155: uint16(29066), + 156: uint16(20241), + 157: uint16(20462), + 158: uint16(32670), + 159: uint16(26429), + 160: uint16(21957), + 161: uint16(38152), + 162: uint16(31168), + 163: uint16(34966), + 164: uint16(32483), + 165: uint16(22687), + 166: uint16(25100), + 167: uint16(38656), + 168: uint16(34394), + 169: uint16(22040), + 170: uint16(39035), + 171: uint16(24464), + 172: uint16(35768), + 173: uint16(33988), + 174: uint16(37207), + 175: uint16(21465), + 176: uint16(26093), + 177: uint16(24207), + 178: uint16(30044), + 179: uint16(24676), + 180: uint16(32110), + 181: uint16(23167), + 182: uint16(32490), + 183: uint16(32493), + 184: uint16(36713), + 185: uint16(21927), + 186: uint16(23459), + 187: uint16(24748), + 188: uint16(26059), + 189: uint16(29572), + }, + 80: { + 0: uint16(34988), + 1: uint16(34990), + 2: uint16(34991), + 3: uint16(34992), + 4: uint16(34994), + 5: uint16(34995), + 6: uint16(34996), + 7: uint16(34997), + 8: uint16(34998), + 9: uint16(35000), + 10: uint16(35001), + 11: uint16(35002), + 12: uint16(35003), + 13: uint16(35005), + 14: uint16(35006), + 15: uint16(35007), + 16: uint16(35008), + 17: uint16(35011), + 18: uint16(35012), + 19: uint16(35015), + 20: uint16(35016), + 21: uint16(35018), + 22: uint16(35019), + 23: uint16(35020), + 24: uint16(35021), + 25: uint16(35023), + 26: uint16(35024), + 27: uint16(35025), + 28: uint16(35027), + 29: uint16(35030), + 30: uint16(35031), + 31: uint16(35034), + 32: uint16(35035), + 33: uint16(35036), + 34: uint16(35037), + 35: uint16(35038), + 36: uint16(35040), + 37: uint16(35041), + 38: uint16(35046), + 39: uint16(35047), + 40: uint16(35049), + 41: uint16(35050), + 42: uint16(35051), + 43: uint16(35052), + 44: uint16(35053), + 45: uint16(35054), + 46: uint16(35055), + 47: uint16(35058), + 48: uint16(35061), + 49: uint16(35062), + 50: uint16(35063), + 51: uint16(35066), + 52: uint16(35067), + 53: uint16(35069), + 54: uint16(35071), + 55: uint16(35072), + 56: uint16(35073), + 57: uint16(35075), + 58: uint16(35076), + 59: uint16(35077), + 60: uint16(35078), + 61: uint16(35079), + 62: uint16(35080), + 63: uint16(35081), + 64: uint16(35083), + 65: uint16(35084), + 66: uint16(35085), + 67: uint16(35086), + 68: uint16(35087), + 69: uint16(35089), + 70: uint16(35092), + 71: uint16(35093), + 72: uint16(35094), + 73: uint16(35095), + 74: uint16(35096), + 75: uint16(35100), + 76: uint16(35101), + 77: uint16(35102), + 78: uint16(35103), + 79: uint16(35104), + 80: uint16(35106), + 81: uint16(35107), + 82: uint16(35108), + 83: uint16(35110), + 84: uint16(35111), + 85: uint16(35112), + 86: uint16(35113), + 87: uint16(35116), + 88: uint16(35117), + 89: uint16(35118), + 90: uint16(35119), + 91: uint16(35121), + 92: uint16(35122), + 93: uint16(35123), + 94: uint16(35125), + 95: uint16(35127), + 96: uint16(36873), + 97: uint16(30307), + 98: uint16(30505), + 99: uint16(32474), + 100: uint16(38772), + 101: uint16(34203), + 102: uint16(23398), + 103: uint16(31348), + 104: uint16(38634), + 105: uint16(34880), + 106: uint16(21195), + 107: uint16(29071), + 108: uint16(24490), + 109: uint16(26092), + 110: uint16(35810), + 111: uint16(23547), + 112: uint16(39535), + 113: uint16(24033), + 114: uint16(27529), + 115: uint16(27739), + 116: uint16(35757), + 117: uint16(35759), + 118: uint16(36874), + 119: uint16(36805), + 120: uint16(21387), + 121: uint16(25276), + 122: uint16(40486), + 123: uint16(40493), + 124: uint16(21568), + 125: uint16(20011), + 126: uint16(33469), + 127: uint16(29273), + 128: uint16(34460), + 129: uint16(23830), + 130: uint16(34905), + 131: uint16(28079), + 132: uint16(38597), + 133: uint16(21713), + 134: uint16(20122), + 135: uint16(35766), + 136: uint16(28937), + 137: uint16(21693), + 138: uint16(38409), + 139: uint16(28895), + 140: uint16(28153), + 141: uint16(30416), + 142: uint16(20005), + 143: uint16(30740), + 144: uint16(34578), + 145: uint16(23721), + 146: uint16(24310), + 147: uint16(35328), + 148: uint16(39068), + 149: uint16(38414), + 150: uint16(28814), + 151: uint16(27839), + 152: uint16(22852), + 153: uint16(25513), + 154: uint16(30524), + 155: uint16(34893), + 156: uint16(28436), + 157: uint16(33395), + 158: uint16(22576), + 159: uint16(29141), + 160: uint16(21388), + 161: uint16(30746), + 162: uint16(38593), + 163: uint16(21761), + 164: uint16(24422), + 165: uint16(28976), + 166: uint16(23476), + 167: uint16(35866), + 168: uint16(39564), + 169: uint16(27523), + 170: uint16(22830), + 171: uint16(40495), + 172: uint16(31207), + 173: uint16(26472), + 174: uint16(25196), + 175: uint16(20335), + 176: uint16(30113), + 177: uint16(32650), + 178: uint16(27915), + 179: uint16(38451), + 180: uint16(27687), + 181: uint16(20208), + 182: uint16(30162), + 183: uint16(20859), + 184: uint16(26679), + 185: uint16(28478), + 186: uint16(36992), + 187: uint16(33136), + 188: uint16(22934), + 189: uint16(29814), + }, + 81: { + 0: uint16(35128), + 1: uint16(35129), + 2: uint16(35130), + 3: uint16(35131), + 4: uint16(35132), + 5: uint16(35133), + 6: uint16(35134), + 7: uint16(35135), + 8: uint16(35136), + 9: uint16(35138), + 10: uint16(35139), + 11: uint16(35141), + 12: uint16(35142), + 13: uint16(35143), + 14: uint16(35144), + 15: uint16(35145), + 16: uint16(35146), + 17: uint16(35147), + 18: uint16(35148), + 19: uint16(35149), + 20: uint16(35150), + 21: uint16(35151), + 22: uint16(35152), + 23: uint16(35153), + 24: uint16(35154), + 25: uint16(35155), + 26: uint16(35156), + 27: uint16(35157), + 28: uint16(35158), + 29: uint16(35159), + 30: uint16(35160), + 31: uint16(35161), + 32: uint16(35162), + 33: uint16(35163), + 34: uint16(35164), + 35: uint16(35165), + 36: uint16(35168), + 37: uint16(35169), + 38: uint16(35170), + 39: uint16(35171), + 40: uint16(35172), + 41: uint16(35173), + 42: uint16(35175), + 43: uint16(35176), + 44: uint16(35177), + 45: uint16(35178), + 46: uint16(35179), + 47: uint16(35180), + 48: uint16(35181), + 49: uint16(35182), + 50: uint16(35183), + 51: uint16(35184), + 52: uint16(35185), + 53: uint16(35186), + 54: uint16(35187), + 55: uint16(35188), + 56: uint16(35189), + 57: uint16(35190), + 58: uint16(35191), + 59: uint16(35192), + 60: uint16(35193), + 61: uint16(35194), + 62: uint16(35196), + 63: uint16(35197), + 64: uint16(35198), + 65: uint16(35200), + 66: uint16(35202), + 67: uint16(35204), + 68: uint16(35205), + 69: uint16(35207), + 70: uint16(35208), + 71: uint16(35209), + 72: uint16(35210), + 73: uint16(35211), + 74: uint16(35212), + 75: uint16(35213), + 76: uint16(35214), + 77: uint16(35215), + 78: uint16(35216), + 79: uint16(35217), + 80: uint16(35218), + 81: uint16(35219), + 82: uint16(35220), + 83: uint16(35221), + 84: uint16(35222), + 85: uint16(35223), + 86: uint16(35224), + 87: uint16(35225), + 88: uint16(35226), + 89: uint16(35227), + 90: uint16(35228), + 91: uint16(35229), + 92: uint16(35230), + 93: uint16(35231), + 94: uint16(35232), + 95: uint16(35233), + 96: uint16(25671), + 97: uint16(23591), + 98: uint16(36965), + 99: uint16(31377), + 100: uint16(35875), + 101: uint16(23002), + 102: uint16(21676), + 103: uint16(33280), + 104: uint16(33647), + 105: uint16(35201), + 106: uint16(32768), + 107: uint16(26928), + 108: uint16(22094), + 109: uint16(32822), + 110: uint16(29239), + 111: uint16(37326), + 112: uint16(20918), + 113: uint16(20063), + 114: uint16(39029), + 115: uint16(25494), + 116: uint16(19994), + 117: uint16(21494), + 118: uint16(26355), + 119: uint16(33099), + 120: uint16(22812), + 121: uint16(28082), + 122: uint16(19968), + 123: uint16(22777), + 124: uint16(21307), + 125: uint16(25558), + 126: uint16(38129), + 127: uint16(20381), + 128: uint16(20234), + 129: uint16(34915), + 130: uint16(39056), + 131: uint16(22839), + 132: uint16(36951), + 133: uint16(31227), + 134: uint16(20202), + 135: uint16(33008), + 136: uint16(30097), + 137: uint16(27778), + 138: uint16(23452), + 139: uint16(23016), + 140: uint16(24413), + 141: uint16(26885), + 142: uint16(34433), + 143: uint16(20506), + 144: uint16(24050), + 145: uint16(20057), + 146: uint16(30691), + 147: uint16(20197), + 148: uint16(33402), + 149: uint16(25233), + 150: uint16(26131), + 151: uint16(37009), + 152: uint16(23673), + 153: uint16(20159), + 154: uint16(24441), + 155: uint16(33222), + 156: uint16(36920), + 157: uint16(32900), + 158: uint16(30123), + 159: uint16(20134), + 160: uint16(35028), + 161: uint16(24847), + 162: uint16(27589), + 163: uint16(24518), + 164: uint16(20041), + 165: uint16(30410), + 166: uint16(28322), + 167: uint16(35811), + 168: uint16(35758), + 169: uint16(35850), + 170: uint16(35793), + 171: uint16(24322), + 172: uint16(32764), + 173: uint16(32716), + 174: uint16(32462), + 175: uint16(33589), + 176: uint16(33643), + 177: uint16(22240), + 178: uint16(27575), + 179: uint16(38899), + 180: uint16(38452), + 181: uint16(23035), + 182: uint16(21535), + 183: uint16(38134), + 184: uint16(28139), + 185: uint16(23493), + 186: uint16(39278), + 187: uint16(23609), + 188: uint16(24341), + 189: uint16(38544), + }, + 82: { + 0: uint16(35234), + 1: uint16(35235), + 2: uint16(35236), + 3: uint16(35237), + 4: uint16(35238), + 5: uint16(35239), + 6: uint16(35240), + 7: uint16(35241), + 8: uint16(35242), + 9: uint16(35243), + 10: uint16(35244), + 11: uint16(35245), + 12: uint16(35246), + 13: uint16(35247), + 14: uint16(35248), + 15: uint16(35249), + 16: uint16(35250), + 17: uint16(35251), + 18: uint16(35252), + 19: uint16(35253), + 20: uint16(35254), + 21: uint16(35255), + 22: uint16(35256), + 23: uint16(35257), + 24: uint16(35258), + 25: uint16(35259), + 26: uint16(35260), + 27: uint16(35261), + 28: uint16(35262), + 29: uint16(35263), + 30: uint16(35264), + 31: uint16(35267), + 32: uint16(35277), + 33: uint16(35283), + 34: uint16(35284), + 35: uint16(35285), + 36: uint16(35287), + 37: uint16(35288), + 38: uint16(35289), + 39: uint16(35291), + 40: uint16(35293), + 41: uint16(35295), + 42: uint16(35296), + 43: uint16(35297), + 44: uint16(35298), + 45: uint16(35300), + 46: uint16(35303), + 47: uint16(35304), + 48: uint16(35305), + 49: uint16(35306), + 50: uint16(35308), + 51: uint16(35309), + 52: uint16(35310), + 53: uint16(35312), + 54: uint16(35313), + 55: uint16(35314), + 56: uint16(35316), + 57: uint16(35317), + 58: uint16(35318), + 59: uint16(35319), + 60: uint16(35320), + 61: uint16(35321), + 62: uint16(35322), + 63: uint16(35323), + 64: uint16(35324), + 65: uint16(35325), + 66: uint16(35326), + 67: uint16(35327), + 68: uint16(35329), + 69: uint16(35330), + 70: uint16(35331), + 71: uint16(35332), + 72: uint16(35333), + 73: uint16(35334), + 74: uint16(35336), + 75: uint16(35337), + 76: uint16(35338), + 77: uint16(35339), + 78: uint16(35340), + 79: uint16(35341), + 80: uint16(35342), + 81: uint16(35343), + 82: uint16(35344), + 83: uint16(35345), + 84: uint16(35346), + 85: uint16(35347), + 86: uint16(35348), + 87: uint16(35349), + 88: uint16(35350), + 89: uint16(35351), + 90: uint16(35352), + 91: uint16(35353), + 92: uint16(35354), + 93: uint16(35355), + 94: uint16(35356), + 95: uint16(35357), + 96: uint16(21360), + 97: uint16(33521), + 98: uint16(27185), + 99: uint16(23156), + 100: uint16(40560), + 101: uint16(24212), + 102: uint16(32552), + 103: uint16(33721), + 104: uint16(33828), + 105: uint16(33829), + 106: uint16(33639), + 107: uint16(34631), + 108: uint16(36814), + 109: uint16(36194), + 110: uint16(30408), + 111: uint16(24433), + 112: uint16(39062), + 113: uint16(30828), + 114: uint16(26144), + 115: uint16(21727), + 116: uint16(25317), + 117: uint16(20323), + 118: uint16(33219), + 119: uint16(30152), + 120: uint16(24248), + 121: uint16(38605), + 122: uint16(36362), + 123: uint16(34553), + 124: uint16(21647), + 125: uint16(27891), + 126: uint16(28044), + 127: uint16(27704), + 128: uint16(24703), + 129: uint16(21191), + 130: uint16(29992), + 131: uint16(24189), + 132: uint16(20248), + 133: uint16(24736), + 134: uint16(24551), + 135: uint16(23588), + 136: uint16(30001), + 137: uint16(37038), + 138: uint16(38080), + 139: uint16(29369), + 140: uint16(27833), + 141: uint16(28216), + 142: uint16(37193), + 143: uint16(26377), + 144: uint16(21451), + 145: uint16(21491), + 146: uint16(20305), + 147: uint16(37321), + 148: uint16(35825), + 149: uint16(21448), + 150: uint16(24188), + 151: uint16(36802), + 152: uint16(28132), + 153: uint16(20110), + 154: uint16(30402), + 155: uint16(27014), + 156: uint16(34398), + 157: uint16(24858), + 158: uint16(33286), + 159: uint16(20313), + 160: uint16(20446), + 161: uint16(36926), + 162: uint16(40060), + 163: uint16(24841), + 164: uint16(28189), + 165: uint16(28180), + 166: uint16(38533), + 167: uint16(20104), + 168: uint16(23089), + 169: uint16(38632), + 170: uint16(19982), + 171: uint16(23679), + 172: uint16(31161), + 173: uint16(23431), + 174: uint16(35821), + 175: uint16(32701), + 176: uint16(29577), + 177: uint16(22495), + 178: uint16(33419), + 179: uint16(37057), + 180: uint16(21505), + 181: uint16(36935), + 182: uint16(21947), + 183: uint16(23786), + 184: uint16(24481), + 185: uint16(24840), + 186: uint16(27442), + 187: uint16(29425), + 188: uint16(32946), + 189: uint16(35465), + }, + 83: { + 0: uint16(35358), + 1: uint16(35359), + 2: uint16(35360), + 3: uint16(35361), + 4: uint16(35362), + 5: uint16(35363), + 6: uint16(35364), + 7: uint16(35365), + 8: uint16(35366), + 9: uint16(35367), + 10: uint16(35368), + 11: uint16(35369), + 12: uint16(35370), + 13: uint16(35371), + 14: uint16(35372), + 15: uint16(35373), + 16: uint16(35374), + 17: uint16(35375), + 18: uint16(35376), + 19: uint16(35377), + 20: uint16(35378), + 21: uint16(35379), + 22: uint16(35380), + 23: uint16(35381), + 24: uint16(35382), + 25: uint16(35383), + 26: uint16(35384), + 27: uint16(35385), + 28: uint16(35386), + 29: uint16(35387), + 30: uint16(35388), + 31: uint16(35389), + 32: uint16(35391), + 33: uint16(35392), + 34: uint16(35393), + 35: uint16(35394), + 36: uint16(35395), + 37: uint16(35396), + 38: uint16(35397), + 39: uint16(35398), + 40: uint16(35399), + 41: uint16(35401), + 42: uint16(35402), + 43: uint16(35403), + 44: uint16(35404), + 45: uint16(35405), + 46: uint16(35406), + 47: uint16(35407), + 48: uint16(35408), + 49: uint16(35409), + 50: uint16(35410), + 51: uint16(35411), + 52: uint16(35412), + 53: uint16(35413), + 54: uint16(35414), + 55: uint16(35415), + 56: uint16(35416), + 57: uint16(35417), + 58: uint16(35418), + 59: uint16(35419), + 60: uint16(35420), + 61: uint16(35421), + 62: uint16(35422), + 63: uint16(35423), + 64: uint16(35424), + 65: uint16(35425), + 66: uint16(35426), + 67: uint16(35427), + 68: uint16(35428), + 69: uint16(35429), + 70: uint16(35430), + 71: uint16(35431), + 72: uint16(35432), + 73: uint16(35433), + 74: uint16(35434), + 75: uint16(35435), + 76: uint16(35436), + 77: uint16(35437), + 78: uint16(35438), + 79: uint16(35439), + 80: uint16(35440), + 81: uint16(35441), + 82: uint16(35442), + 83: uint16(35443), + 84: uint16(35444), + 85: uint16(35445), + 86: uint16(35446), + 87: uint16(35447), + 88: uint16(35448), + 89: uint16(35450), + 90: uint16(35451), + 91: uint16(35452), + 92: uint16(35453), + 93: uint16(35454), + 94: uint16(35455), + 95: uint16(35456), + 96: uint16(28020), + 97: uint16(23507), + 98: uint16(35029), + 99: uint16(39044), + 100: uint16(35947), + 101: uint16(39533), + 102: uint16(40499), + 103: uint16(28170), + 104: uint16(20900), + 105: uint16(20803), + 106: uint16(22435), + 107: uint16(34945), + 108: uint16(21407), + 109: uint16(25588), + 110: uint16(36757), + 111: uint16(22253), + 112: uint16(21592), + 113: uint16(22278), + 114: uint16(29503), + 115: uint16(28304), + 116: uint16(32536), + 117: uint16(36828), + 118: uint16(33489), + 119: uint16(24895), + 120: uint16(24616), + 121: uint16(38498), + 122: uint16(26352), + 123: uint16(32422), + 124: uint16(36234), + 125: uint16(36291), + 126: uint16(38053), + 127: uint16(23731), + 128: uint16(31908), + 129: uint16(26376), + 130: uint16(24742), + 131: uint16(38405), + 132: uint16(32792), + 133: uint16(20113), + 134: uint16(37095), + 135: uint16(21248), + 136: uint16(38504), + 137: uint16(20801), + 138: uint16(36816), + 139: uint16(34164), + 140: uint16(37213), + 141: uint16(26197), + 142: uint16(38901), + 143: uint16(23381), + 144: uint16(21277), + 145: uint16(30776), + 146: uint16(26434), + 147: uint16(26685), + 148: uint16(21705), + 149: uint16(28798), + 150: uint16(23472), + 151: uint16(36733), + 152: uint16(20877), + 153: uint16(22312), + 154: uint16(21681), + 155: uint16(25874), + 156: uint16(26242), + 157: uint16(36190), + 158: uint16(36163), + 159: uint16(33039), + 160: uint16(33900), + 161: uint16(36973), + 162: uint16(31967), + 163: uint16(20991), + 164: uint16(34299), + 165: uint16(26531), + 166: uint16(26089), + 167: uint16(28577), + 168: uint16(34468), + 169: uint16(36481), + 170: uint16(22122), + 171: uint16(36896), + 172: uint16(30338), + 173: uint16(28790), + 174: uint16(29157), + 175: uint16(36131), + 176: uint16(25321), + 177: uint16(21017), + 178: uint16(27901), + 179: uint16(36156), + 180: uint16(24590), + 181: uint16(22686), + 182: uint16(24974), + 183: uint16(26366), + 184: uint16(36192), + 185: uint16(25166), + 186: uint16(21939), + 187: uint16(28195), + 188: uint16(26413), + 189: uint16(36711), + }, + 84: { + 0: uint16(35457), + 1: uint16(35458), + 2: uint16(35459), + 3: uint16(35460), + 4: uint16(35461), + 5: uint16(35462), + 6: uint16(35463), + 7: uint16(35464), + 8: uint16(35467), + 9: uint16(35468), + 10: uint16(35469), + 11: uint16(35470), + 12: uint16(35471), + 13: uint16(35472), + 14: uint16(35473), + 15: uint16(35474), + 16: uint16(35476), + 17: uint16(35477), + 18: uint16(35478), + 19: uint16(35479), + 20: uint16(35480), + 21: uint16(35481), + 22: uint16(35482), + 23: uint16(35483), + 24: uint16(35484), + 25: uint16(35485), + 26: uint16(35486), + 27: uint16(35487), + 28: uint16(35488), + 29: uint16(35489), + 30: uint16(35490), + 31: uint16(35491), + 32: uint16(35492), + 33: uint16(35493), + 34: uint16(35494), + 35: uint16(35495), + 36: uint16(35496), + 37: uint16(35497), + 38: uint16(35498), + 39: uint16(35499), + 40: uint16(35500), + 41: uint16(35501), + 42: uint16(35502), + 43: uint16(35503), + 44: uint16(35504), + 45: uint16(35505), + 46: uint16(35506), + 47: uint16(35507), + 48: uint16(35508), + 49: uint16(35509), + 50: uint16(35510), + 51: uint16(35511), + 52: uint16(35512), + 53: uint16(35513), + 54: uint16(35514), + 55: uint16(35515), + 56: uint16(35516), + 57: uint16(35517), + 58: uint16(35518), + 59: uint16(35519), + 60: uint16(35520), + 61: uint16(35521), + 62: uint16(35522), + 63: uint16(35523), + 64: uint16(35524), + 65: uint16(35525), + 66: uint16(35526), + 67: uint16(35527), + 68: uint16(35528), + 69: uint16(35529), + 70: uint16(35530), + 71: uint16(35531), + 72: uint16(35532), + 73: uint16(35533), + 74: uint16(35534), + 75: uint16(35535), + 76: uint16(35536), + 77: uint16(35537), + 78: uint16(35538), + 79: uint16(35539), + 80: uint16(35540), + 81: uint16(35541), + 82: uint16(35542), + 83: uint16(35543), + 84: uint16(35544), + 85: uint16(35545), + 86: uint16(35546), + 87: uint16(35547), + 88: uint16(35548), + 89: uint16(35549), + 90: uint16(35550), + 91: uint16(35551), + 92: uint16(35552), + 93: uint16(35553), + 94: uint16(35554), + 95: uint16(35555), + 96: uint16(38113), + 97: uint16(38392), + 98: uint16(30504), + 99: uint16(26629), + 100: uint16(27048), + 101: uint16(21643), + 102: uint16(20045), + 103: uint16(28856), + 104: uint16(35784), + 105: uint16(25688), + 106: uint16(25995), + 107: uint16(23429), + 108: uint16(31364), + 109: uint16(20538), + 110: uint16(23528), + 111: uint16(30651), + 112: uint16(27617), + 113: uint16(35449), + 114: uint16(31896), + 115: uint16(27838), + 116: uint16(30415), + 117: uint16(26025), + 118: uint16(36759), + 119: uint16(23853), + 120: uint16(23637), + 121: uint16(34360), + 122: uint16(26632), + 123: uint16(21344), + 124: uint16(25112), + 125: uint16(31449), + 126: uint16(28251), + 127: uint16(32509), + 128: uint16(27167), + 129: uint16(31456), + 130: uint16(24432), + 131: uint16(28467), + 132: uint16(24352), + 133: uint16(25484), + 134: uint16(28072), + 135: uint16(26454), + 136: uint16(19976), + 137: uint16(24080), + 138: uint16(36134), + 139: uint16(20183), + 140: uint16(32960), + 141: uint16(30260), + 142: uint16(38556), + 143: uint16(25307), + 144: uint16(26157), + 145: uint16(25214), + 146: uint16(27836), + 147: uint16(36213), + 148: uint16(29031), + 149: uint16(32617), + 150: uint16(20806), + 151: uint16(32903), + 152: uint16(21484), + 153: uint16(36974), + 154: uint16(25240), + 155: uint16(21746), + 156: uint16(34544), + 157: uint16(36761), + 158: uint16(32773), + 159: uint16(38167), + 160: uint16(34071), + 161: uint16(36825), + 162: uint16(27993), + 163: uint16(29645), + 164: uint16(26015), + 165: uint16(30495), + 166: uint16(29956), + 167: uint16(30759), + 168: uint16(33275), + 169: uint16(36126), + 170: uint16(38024), + 171: uint16(20390), + 172: uint16(26517), + 173: uint16(30137), + 174: uint16(35786), + 175: uint16(38663), + 176: uint16(25391), + 177: uint16(38215), + 178: uint16(38453), + 179: uint16(33976), + 180: uint16(25379), + 181: uint16(30529), + 182: uint16(24449), + 183: uint16(29424), + 184: uint16(20105), + 185: uint16(24596), + 186: uint16(25972), + 187: uint16(25327), + 188: uint16(27491), + 189: uint16(25919), + }, + 85: { + 0: uint16(35556), + 1: uint16(35557), + 2: uint16(35558), + 3: uint16(35559), + 4: uint16(35560), + 5: uint16(35561), + 6: uint16(35562), + 7: uint16(35563), + 8: uint16(35564), + 9: uint16(35565), + 10: uint16(35566), + 11: uint16(35567), + 12: uint16(35568), + 13: uint16(35569), + 14: uint16(35570), + 15: uint16(35571), + 16: uint16(35572), + 17: uint16(35573), + 18: uint16(35574), + 19: uint16(35575), + 20: uint16(35576), + 21: uint16(35577), + 22: uint16(35578), + 23: uint16(35579), + 24: uint16(35580), + 25: uint16(35581), + 26: uint16(35582), + 27: uint16(35583), + 28: uint16(35584), + 29: uint16(35585), + 30: uint16(35586), + 31: uint16(35587), + 32: uint16(35588), + 33: uint16(35589), + 34: uint16(35590), + 35: uint16(35592), + 36: uint16(35593), + 37: uint16(35594), + 38: uint16(35595), + 39: uint16(35596), + 40: uint16(35597), + 41: uint16(35598), + 42: uint16(35599), + 43: uint16(35600), + 44: uint16(35601), + 45: uint16(35602), + 46: uint16(35603), + 47: uint16(35604), + 48: uint16(35605), + 49: uint16(35606), + 50: uint16(35607), + 51: uint16(35608), + 52: uint16(35609), + 53: uint16(35610), + 54: uint16(35611), + 55: uint16(35612), + 56: uint16(35613), + 57: uint16(35614), + 58: uint16(35615), + 59: uint16(35616), + 60: uint16(35617), + 61: uint16(35618), + 62: uint16(35619), + 63: uint16(35620), + 64: uint16(35621), + 65: uint16(35623), + 66: uint16(35624), + 67: uint16(35625), + 68: uint16(35626), + 69: uint16(35627), + 70: uint16(35628), + 71: uint16(35629), + 72: uint16(35630), + 73: uint16(35631), + 74: uint16(35632), + 75: uint16(35633), + 76: uint16(35634), + 77: uint16(35635), + 78: uint16(35636), + 79: uint16(35637), + 80: uint16(35638), + 81: uint16(35639), + 82: uint16(35640), + 83: uint16(35641), + 84: uint16(35642), + 85: uint16(35643), + 86: uint16(35644), + 87: uint16(35645), + 88: uint16(35646), + 89: uint16(35647), + 90: uint16(35648), + 91: uint16(35649), + 92: uint16(35650), + 93: uint16(35651), + 94: uint16(35652), + 95: uint16(35653), + 96: uint16(24103), + 97: uint16(30151), + 98: uint16(37073), + 99: uint16(35777), + 100: uint16(33437), + 101: uint16(26525), + 102: uint16(25903), + 103: uint16(21553), + 104: uint16(34584), + 105: uint16(30693), + 106: uint16(32930), + 107: uint16(33026), + 108: uint16(27713), + 109: uint16(20043), + 110: uint16(32455), + 111: uint16(32844), + 112: uint16(30452), + 113: uint16(26893), + 114: uint16(27542), + 115: uint16(25191), + 116: uint16(20540), + 117: uint16(20356), + 118: uint16(22336), + 119: uint16(25351), + 120: uint16(27490), + 121: uint16(36286), + 122: uint16(21482), + 123: uint16(26088), + 124: uint16(32440), + 125: uint16(24535), + 126: uint16(25370), + 127: uint16(25527), + 128: uint16(33267), + 129: uint16(33268), + 130: uint16(32622), + 131: uint16(24092), + 132: uint16(23769), + 133: uint16(21046), + 134: uint16(26234), + 135: uint16(31209), + 136: uint16(31258), + 137: uint16(36136), + 138: uint16(28825), + 139: uint16(30164), + 140: uint16(28382), + 141: uint16(27835), + 142: uint16(31378), + 143: uint16(20013), + 144: uint16(30405), + 145: uint16(24544), + 146: uint16(38047), + 147: uint16(34935), + 148: uint16(32456), + 149: uint16(31181), + 150: uint16(32959), + 151: uint16(37325), + 152: uint16(20210), + 153: uint16(20247), + 154: uint16(33311), + 155: uint16(21608), + 156: uint16(24030), + 157: uint16(27954), + 158: uint16(35788), + 159: uint16(31909), + 160: uint16(36724), + 161: uint16(32920), + 162: uint16(24090), + 163: uint16(21650), + 164: uint16(30385), + 165: uint16(23449), + 166: uint16(26172), + 167: uint16(39588), + 168: uint16(29664), + 169: uint16(26666), + 170: uint16(34523), + 171: uint16(26417), + 172: uint16(29482), + 173: uint16(35832), + 174: uint16(35803), + 175: uint16(36880), + 176: uint16(31481), + 177: uint16(28891), + 178: uint16(29038), + 179: uint16(25284), + 180: uint16(30633), + 181: uint16(22065), + 182: uint16(20027), + 183: uint16(33879), + 184: uint16(26609), + 185: uint16(21161), + 186: uint16(34496), + 187: uint16(36142), + 188: uint16(38136), + 189: uint16(31569), + }, + 86: { + 0: uint16(35654), + 1: uint16(35655), + 2: uint16(35656), + 3: uint16(35657), + 4: uint16(35658), + 5: uint16(35659), + 6: uint16(35660), + 7: uint16(35661), + 8: uint16(35662), + 9: uint16(35663), + 10: uint16(35664), + 11: uint16(35665), + 12: uint16(35666), + 13: uint16(35667), + 14: uint16(35668), + 15: uint16(35669), + 16: uint16(35670), + 17: uint16(35671), + 18: uint16(35672), + 19: uint16(35673), + 20: uint16(35674), + 21: uint16(35675), + 22: uint16(35676), + 23: uint16(35677), + 24: uint16(35678), + 25: uint16(35679), + 26: uint16(35680), + 27: uint16(35681), + 28: uint16(35682), + 29: uint16(35683), + 30: uint16(35684), + 31: uint16(35685), + 32: uint16(35687), + 33: uint16(35688), + 34: uint16(35689), + 35: uint16(35690), + 36: uint16(35691), + 37: uint16(35693), + 38: uint16(35694), + 39: uint16(35695), + 40: uint16(35696), + 41: uint16(35697), + 42: uint16(35698), + 43: uint16(35699), + 44: uint16(35700), + 45: uint16(35701), + 46: uint16(35702), + 47: uint16(35703), + 48: uint16(35704), + 49: uint16(35705), + 50: uint16(35706), + 51: uint16(35707), + 52: uint16(35708), + 53: uint16(35709), + 54: uint16(35710), + 55: uint16(35711), + 56: uint16(35712), + 57: uint16(35713), + 58: uint16(35714), + 59: uint16(35715), + 60: uint16(35716), + 61: uint16(35717), + 62: uint16(35718), + 63: uint16(35719), + 64: uint16(35720), + 65: uint16(35721), + 66: uint16(35722), + 67: uint16(35723), + 68: uint16(35724), + 69: uint16(35725), + 70: uint16(35726), + 71: uint16(35727), + 72: uint16(35728), + 73: uint16(35729), + 74: uint16(35730), + 75: uint16(35731), + 76: uint16(35732), + 77: uint16(35733), + 78: uint16(35734), + 79: uint16(35735), + 80: uint16(35736), + 81: uint16(35737), + 82: uint16(35738), + 83: uint16(35739), + 84: uint16(35740), + 85: uint16(35741), + 86: uint16(35742), + 87: uint16(35743), + 88: uint16(35756), + 89: uint16(35761), + 90: uint16(35771), + 91: uint16(35783), + 92: uint16(35792), + 93: uint16(35818), + 94: uint16(35849), + 95: uint16(35870), + 96: uint16(20303), + 97: uint16(27880), + 98: uint16(31069), + 99: uint16(39547), + 100: uint16(25235), + 101: uint16(29226), + 102: uint16(25341), + 103: uint16(19987), + 104: uint16(30742), + 105: uint16(36716), + 106: uint16(25776), + 107: uint16(36186), + 108: uint16(31686), + 109: uint16(26729), + 110: uint16(24196), + 111: uint16(35013), + 112: uint16(22918), + 113: uint16(25758), + 114: uint16(22766), + 115: uint16(29366), + 116: uint16(26894), + 117: uint16(38181), + 118: uint16(36861), + 119: uint16(36184), + 120: uint16(22368), + 121: uint16(32512), + 122: uint16(35846), + 123: uint16(20934), + 124: uint16(25417), + 125: uint16(25305), + 126: uint16(21331), + 127: uint16(26700), + 128: uint16(29730), + 129: uint16(33537), + 130: uint16(37196), + 131: uint16(21828), + 132: uint16(30528), + 133: uint16(28796), + 134: uint16(27978), + 135: uint16(20857), + 136: uint16(21672), + 137: uint16(36164), + 138: uint16(23039), + 139: uint16(28363), + 140: uint16(28100), + 141: uint16(23388), + 142: uint16(32043), + 143: uint16(20180), + 144: uint16(31869), + 145: uint16(28371), + 146: uint16(23376), + 147: uint16(33258), + 148: uint16(28173), + 149: uint16(23383), + 150: uint16(39683), + 151: uint16(26837), + 152: uint16(36394), + 153: uint16(23447), + 154: uint16(32508), + 155: uint16(24635), + 156: uint16(32437), + 157: uint16(37049), + 158: uint16(36208), + 159: uint16(22863), + 160: uint16(25549), + 161: uint16(31199), + 162: uint16(36275), + 163: uint16(21330), + 164: uint16(26063), + 165: uint16(31062), + 166: uint16(35781), + 167: uint16(38459), + 168: uint16(32452), + 169: uint16(38075), + 170: uint16(32386), + 171: uint16(22068), + 172: uint16(37257), + 173: uint16(26368), + 174: uint16(32618), + 175: uint16(23562), + 176: uint16(36981), + 177: uint16(26152), + 178: uint16(24038), + 179: uint16(20304), + 180: uint16(26590), + 181: uint16(20570), + 182: uint16(20316), + 183: uint16(22352), + 184: uint16(24231), + 185: uint16(59408), + 186: uint16(59409), + 187: uint16(59410), + 188: uint16(59411), + 189: uint16(59412), + }, + 87: { + 0: uint16(35896), + 1: uint16(35897), + 2: uint16(35898), + 3: uint16(35899), + 4: uint16(35900), + 5: uint16(35901), + 6: uint16(35902), + 7: uint16(35903), + 8: uint16(35904), + 9: uint16(35906), + 10: uint16(35907), + 11: uint16(35908), + 12: uint16(35909), + 13: uint16(35912), + 14: uint16(35914), + 15: uint16(35915), + 16: uint16(35917), + 17: uint16(35918), + 18: uint16(35919), + 19: uint16(35920), + 20: uint16(35921), + 21: uint16(35922), + 22: uint16(35923), + 23: uint16(35924), + 24: uint16(35926), + 25: uint16(35927), + 26: uint16(35928), + 27: uint16(35929), + 28: uint16(35931), + 29: uint16(35932), + 30: uint16(35933), + 31: uint16(35934), + 32: uint16(35935), + 33: uint16(35936), + 34: uint16(35939), + 35: uint16(35940), + 36: uint16(35941), + 37: uint16(35942), + 38: uint16(35943), + 39: uint16(35944), + 40: uint16(35945), + 41: uint16(35948), + 42: uint16(35949), + 43: uint16(35950), + 44: uint16(35951), + 45: uint16(35952), + 46: uint16(35953), + 47: uint16(35954), + 48: uint16(35956), + 49: uint16(35957), + 50: uint16(35958), + 51: uint16(35959), + 52: uint16(35963), + 53: uint16(35964), + 54: uint16(35965), + 55: uint16(35966), + 56: uint16(35967), + 57: uint16(35968), + 58: uint16(35969), + 59: uint16(35971), + 60: uint16(35972), + 61: uint16(35974), + 62: uint16(35975), + 63: uint16(35976), + 64: uint16(35979), + 65: uint16(35981), + 66: uint16(35982), + 67: uint16(35983), + 68: uint16(35984), + 69: uint16(35985), + 70: uint16(35986), + 71: uint16(35987), + 72: uint16(35989), + 73: uint16(35990), + 74: uint16(35991), + 75: uint16(35993), + 76: uint16(35994), + 77: uint16(35995), + 78: uint16(35996), + 79: uint16(35997), + 80: uint16(35998), + 81: uint16(35999), + 82: uint16(36000), + 83: uint16(36001), + 84: uint16(36002), + 85: uint16(36003), + 86: uint16(36004), + 87: uint16(36005), + 88: uint16(36006), + 89: uint16(36007), + 90: uint16(36008), + 91: uint16(36009), + 92: uint16(36010), + 93: uint16(36011), + 94: uint16(36012), + 95: uint16(36013), + 96: uint16(20109), + 97: uint16(19980), + 98: uint16(20800), + 99: uint16(19984), + 100: uint16(24319), + 101: uint16(21317), + 102: uint16(19989), + 103: uint16(20120), + 104: uint16(19998), + 105: uint16(39730), + 106: uint16(23404), + 107: uint16(22121), + 108: uint16(20008), + 109: uint16(31162), + 110: uint16(20031), + 111: uint16(21269), + 112: uint16(20039), + 113: uint16(22829), + 114: uint16(29243), + 115: uint16(21358), + 116: uint16(27664), + 117: uint16(22239), + 118: uint16(32996), + 119: uint16(39319), + 120: uint16(27603), + 121: uint16(30590), + 122: uint16(40727), + 123: uint16(20022), + 124: uint16(20127), + 125: uint16(40720), + 126: uint16(20060), + 127: uint16(20073), + 128: uint16(20115), + 129: uint16(33416), + 130: uint16(23387), + 131: uint16(21868), + 132: uint16(22031), + 133: uint16(20164), + 134: uint16(21389), + 135: uint16(21405), + 136: uint16(21411), + 137: uint16(21413), + 138: uint16(21422), + 139: uint16(38757), + 140: uint16(36189), + 141: uint16(21274), + 142: uint16(21493), + 143: uint16(21286), + 144: uint16(21294), + 145: uint16(21310), + 146: uint16(36188), + 147: uint16(21350), + 148: uint16(21347), + 149: uint16(20994), + 150: uint16(21000), + 151: uint16(21006), + 152: uint16(21037), + 153: uint16(21043), + 154: uint16(21055), + 155: uint16(21056), + 156: uint16(21068), + 157: uint16(21086), + 158: uint16(21089), + 159: uint16(21084), + 160: uint16(33967), + 161: uint16(21117), + 162: uint16(21122), + 163: uint16(21121), + 164: uint16(21136), + 165: uint16(21139), + 166: uint16(20866), + 167: uint16(32596), + 168: uint16(20155), + 169: uint16(20163), + 170: uint16(20169), + 171: uint16(20162), + 172: uint16(20200), + 173: uint16(20193), + 174: uint16(20203), + 175: uint16(20190), + 176: uint16(20251), + 177: uint16(20211), + 178: uint16(20258), + 179: uint16(20324), + 180: uint16(20213), + 181: uint16(20261), + 182: uint16(20263), + 183: uint16(20233), + 184: uint16(20267), + 185: uint16(20318), + 186: uint16(20327), + 187: uint16(25912), + 188: uint16(20314), + 189: uint16(20317), + }, + 88: { + 0: uint16(36014), + 1: uint16(36015), + 2: uint16(36016), + 3: uint16(36017), + 4: uint16(36018), + 5: uint16(36019), + 6: uint16(36020), + 7: uint16(36021), + 8: uint16(36022), + 9: uint16(36023), + 10: uint16(36024), + 11: uint16(36025), + 12: uint16(36026), + 13: uint16(36027), + 14: uint16(36028), + 15: uint16(36029), + 16: uint16(36030), + 17: uint16(36031), + 18: uint16(36032), + 19: uint16(36033), + 20: uint16(36034), + 21: uint16(36035), + 22: uint16(36036), + 23: uint16(36037), + 24: uint16(36038), + 25: uint16(36039), + 26: uint16(36040), + 27: uint16(36041), + 28: uint16(36042), + 29: uint16(36043), + 30: uint16(36044), + 31: uint16(36045), + 32: uint16(36046), + 33: uint16(36047), + 34: uint16(36048), + 35: uint16(36049), + 36: uint16(36050), + 37: uint16(36051), + 38: uint16(36052), + 39: uint16(36053), + 40: uint16(36054), + 41: uint16(36055), + 42: uint16(36056), + 43: uint16(36057), + 44: uint16(36058), + 45: uint16(36059), + 46: uint16(36060), + 47: uint16(36061), + 48: uint16(36062), + 49: uint16(36063), + 50: uint16(36064), + 51: uint16(36065), + 52: uint16(36066), + 53: uint16(36067), + 54: uint16(36068), + 55: uint16(36069), + 56: uint16(36070), + 57: uint16(36071), + 58: uint16(36072), + 59: uint16(36073), + 60: uint16(36074), + 61: uint16(36075), + 62: uint16(36076), + 63: uint16(36077), + 64: uint16(36078), + 65: uint16(36079), + 66: uint16(36080), + 67: uint16(36081), + 68: uint16(36082), + 69: uint16(36083), + 70: uint16(36084), + 71: uint16(36085), + 72: uint16(36086), + 73: uint16(36087), + 74: uint16(36088), + 75: uint16(36089), + 76: uint16(36090), + 77: uint16(36091), + 78: uint16(36092), + 79: uint16(36093), + 80: uint16(36094), + 81: uint16(36095), + 82: uint16(36096), + 83: uint16(36097), + 84: uint16(36098), + 85: uint16(36099), + 86: uint16(36100), + 87: uint16(36101), + 88: uint16(36102), + 89: uint16(36103), + 90: uint16(36104), + 91: uint16(36105), + 92: uint16(36106), + 93: uint16(36107), + 94: uint16(36108), + 95: uint16(36109), + 96: uint16(20319), + 97: uint16(20311), + 98: uint16(20274), + 99: uint16(20285), + 100: uint16(20342), + 101: uint16(20340), + 102: uint16(20369), + 103: uint16(20361), + 104: uint16(20355), + 105: uint16(20367), + 106: uint16(20350), + 107: uint16(20347), + 108: uint16(20394), + 109: uint16(20348), + 110: uint16(20396), + 111: uint16(20372), + 112: uint16(20454), + 113: uint16(20456), + 114: uint16(20458), + 115: uint16(20421), + 116: uint16(20442), + 117: uint16(20451), + 118: uint16(20444), + 119: uint16(20433), + 120: uint16(20447), + 121: uint16(20472), + 122: uint16(20521), + 123: uint16(20556), + 124: uint16(20467), + 125: uint16(20524), + 126: uint16(20495), + 127: uint16(20526), + 128: uint16(20525), + 129: uint16(20478), + 130: uint16(20508), + 131: uint16(20492), + 132: uint16(20517), + 133: uint16(20520), + 134: uint16(20606), + 135: uint16(20547), + 136: uint16(20565), + 137: uint16(20552), + 138: uint16(20558), + 139: uint16(20588), + 140: uint16(20603), + 141: uint16(20645), + 142: uint16(20647), + 143: uint16(20649), + 144: uint16(20666), + 145: uint16(20694), + 146: uint16(20742), + 147: uint16(20717), + 148: uint16(20716), + 149: uint16(20710), + 150: uint16(20718), + 151: uint16(20743), + 152: uint16(20747), + 153: uint16(20189), + 154: uint16(27709), + 155: uint16(20312), + 156: uint16(20325), + 157: uint16(20430), + 158: uint16(40864), + 159: uint16(27718), + 160: uint16(31860), + 161: uint16(20846), + 162: uint16(24061), + 163: uint16(40649), + 164: uint16(39320), + 165: uint16(20865), + 166: uint16(22804), + 167: uint16(21241), + 168: uint16(21261), + 169: uint16(35335), + 170: uint16(21264), + 171: uint16(20971), + 172: uint16(22809), + 173: uint16(20821), + 174: uint16(20128), + 175: uint16(20822), + 176: uint16(20147), + 177: uint16(34926), + 178: uint16(34980), + 179: uint16(20149), + 180: uint16(33044), + 181: uint16(35026), + 182: uint16(31104), + 183: uint16(23348), + 184: uint16(34819), + 185: uint16(32696), + 186: uint16(20907), + 187: uint16(20913), + 188: uint16(20925), + 189: uint16(20924), + }, + 89: { + 0: uint16(36110), + 1: uint16(36111), + 2: uint16(36112), + 3: uint16(36113), + 4: uint16(36114), + 5: uint16(36115), + 6: uint16(36116), + 7: uint16(36117), + 8: uint16(36118), + 9: uint16(36119), + 10: uint16(36120), + 11: uint16(36121), + 12: uint16(36122), + 13: uint16(36123), + 14: uint16(36124), + 15: uint16(36128), + 16: uint16(36177), + 17: uint16(36178), + 18: uint16(36183), + 19: uint16(36191), + 20: uint16(36197), + 21: uint16(36200), + 22: uint16(36201), + 23: uint16(36202), + 24: uint16(36204), + 25: uint16(36206), + 26: uint16(36207), + 27: uint16(36209), + 28: uint16(36210), + 29: uint16(36216), + 30: uint16(36217), + 31: uint16(36218), + 32: uint16(36219), + 33: uint16(36220), + 34: uint16(36221), + 35: uint16(36222), + 36: uint16(36223), + 37: uint16(36224), + 38: uint16(36226), + 39: uint16(36227), + 40: uint16(36230), + 41: uint16(36231), + 42: uint16(36232), + 43: uint16(36233), + 44: uint16(36236), + 45: uint16(36237), + 46: uint16(36238), + 47: uint16(36239), + 48: uint16(36240), + 49: uint16(36242), + 50: uint16(36243), + 51: uint16(36245), + 52: uint16(36246), + 53: uint16(36247), + 54: uint16(36248), + 55: uint16(36249), + 56: uint16(36250), + 57: uint16(36251), + 58: uint16(36252), + 59: uint16(36253), + 60: uint16(36254), + 61: uint16(36256), + 62: uint16(36257), + 63: uint16(36258), + 64: uint16(36260), + 65: uint16(36261), + 66: uint16(36262), + 67: uint16(36263), + 68: uint16(36264), + 69: uint16(36265), + 70: uint16(36266), + 71: uint16(36267), + 72: uint16(36268), + 73: uint16(36269), + 74: uint16(36270), + 75: uint16(36271), + 76: uint16(36272), + 77: uint16(36274), + 78: uint16(36278), + 79: uint16(36279), + 80: uint16(36281), + 81: uint16(36283), + 82: uint16(36285), + 83: uint16(36288), + 84: uint16(36289), + 85: uint16(36290), + 86: uint16(36293), + 87: uint16(36295), + 88: uint16(36296), + 89: uint16(36297), + 90: uint16(36298), + 91: uint16(36301), + 92: uint16(36304), + 93: uint16(36306), + 94: uint16(36307), + 95: uint16(36308), + 96: uint16(20935), + 97: uint16(20886), + 98: uint16(20898), + 99: uint16(20901), + 100: uint16(35744), + 101: uint16(35750), + 102: uint16(35751), + 103: uint16(35754), + 104: uint16(35764), + 105: uint16(35765), + 106: uint16(35767), + 107: uint16(35778), + 108: uint16(35779), + 109: uint16(35787), + 110: uint16(35791), + 111: uint16(35790), + 112: uint16(35794), + 113: uint16(35795), + 114: uint16(35796), + 115: uint16(35798), + 116: uint16(35800), + 117: uint16(35801), + 118: uint16(35804), + 119: uint16(35807), + 120: uint16(35808), + 121: uint16(35812), + 122: uint16(35816), + 123: uint16(35817), + 124: uint16(35822), + 125: uint16(35824), + 126: uint16(35827), + 127: uint16(35830), + 128: uint16(35833), + 129: uint16(35836), + 130: uint16(35839), + 131: uint16(35840), + 132: uint16(35842), + 133: uint16(35844), + 134: uint16(35847), + 135: uint16(35852), + 136: uint16(35855), + 137: uint16(35857), + 138: uint16(35858), + 139: uint16(35860), + 140: uint16(35861), + 141: uint16(35862), + 142: uint16(35865), + 143: uint16(35867), + 144: uint16(35864), + 145: uint16(35869), + 146: uint16(35871), + 147: uint16(35872), + 148: uint16(35873), + 149: uint16(35877), + 150: uint16(35879), + 151: uint16(35882), + 152: uint16(35883), + 153: uint16(35886), + 154: uint16(35887), + 155: uint16(35890), + 156: uint16(35891), + 157: uint16(35893), + 158: uint16(35894), + 159: uint16(21353), + 160: uint16(21370), + 161: uint16(38429), + 162: uint16(38434), + 163: uint16(38433), + 164: uint16(38449), + 165: uint16(38442), + 166: uint16(38461), + 167: uint16(38460), + 168: uint16(38466), + 169: uint16(38473), + 170: uint16(38484), + 171: uint16(38495), + 172: uint16(38503), + 173: uint16(38508), + 174: uint16(38514), + 175: uint16(38516), + 176: uint16(38536), + 177: uint16(38541), + 178: uint16(38551), + 179: uint16(38576), + 180: uint16(37015), + 181: uint16(37019), + 182: uint16(37021), + 183: uint16(37017), + 184: uint16(37036), + 185: uint16(37025), + 186: uint16(37044), + 187: uint16(37043), + 188: uint16(37046), + 189: uint16(37050), + }, + 90: { + 0: uint16(36309), + 1: uint16(36312), + 2: uint16(36313), + 3: uint16(36316), + 4: uint16(36320), + 5: uint16(36321), + 6: uint16(36322), + 7: uint16(36325), + 8: uint16(36326), + 9: uint16(36327), + 10: uint16(36329), + 11: uint16(36333), + 12: uint16(36334), + 13: uint16(36336), + 14: uint16(36337), + 15: uint16(36338), + 16: uint16(36340), + 17: uint16(36342), + 18: uint16(36348), + 19: uint16(36350), + 20: uint16(36351), + 21: uint16(36352), + 22: uint16(36353), + 23: uint16(36354), + 24: uint16(36355), + 25: uint16(36356), + 26: uint16(36358), + 27: uint16(36359), + 28: uint16(36360), + 29: uint16(36363), + 30: uint16(36365), + 31: uint16(36366), + 32: uint16(36368), + 33: uint16(36369), + 34: uint16(36370), + 35: uint16(36371), + 36: uint16(36373), + 37: uint16(36374), + 38: uint16(36375), + 39: uint16(36376), + 40: uint16(36377), + 41: uint16(36378), + 42: uint16(36379), + 43: uint16(36380), + 44: uint16(36384), + 45: uint16(36385), + 46: uint16(36388), + 47: uint16(36389), + 48: uint16(36390), + 49: uint16(36391), + 50: uint16(36392), + 51: uint16(36395), + 52: uint16(36397), + 53: uint16(36400), + 54: uint16(36402), + 55: uint16(36403), + 56: uint16(36404), + 57: uint16(36406), + 58: uint16(36407), + 59: uint16(36408), + 60: uint16(36411), + 61: uint16(36412), + 62: uint16(36414), + 63: uint16(36415), + 64: uint16(36419), + 65: uint16(36421), + 66: uint16(36422), + 67: uint16(36428), + 68: uint16(36429), + 69: uint16(36430), + 70: uint16(36431), + 71: uint16(36432), + 72: uint16(36435), + 73: uint16(36436), + 74: uint16(36437), + 75: uint16(36438), + 76: uint16(36439), + 77: uint16(36440), + 78: uint16(36442), + 79: uint16(36443), + 80: uint16(36444), + 81: uint16(36445), + 82: uint16(36446), + 83: uint16(36447), + 84: uint16(36448), + 85: uint16(36449), + 86: uint16(36450), + 87: uint16(36451), + 88: uint16(36452), + 89: uint16(36453), + 90: uint16(36455), + 91: uint16(36456), + 92: uint16(36458), + 93: uint16(36459), + 94: uint16(36462), + 95: uint16(36465), + 96: uint16(37048), + 97: uint16(37040), + 98: uint16(37071), + 99: uint16(37061), + 100: uint16(37054), + 101: uint16(37072), + 102: uint16(37060), + 103: uint16(37063), + 104: uint16(37075), + 105: uint16(37094), + 106: uint16(37090), + 107: uint16(37084), + 108: uint16(37079), + 109: uint16(37083), + 110: uint16(37099), + 111: uint16(37103), + 112: uint16(37118), + 113: uint16(37124), + 114: uint16(37154), + 115: uint16(37150), + 116: uint16(37155), + 117: uint16(37169), + 118: uint16(37167), + 119: uint16(37177), + 120: uint16(37187), + 121: uint16(37190), + 122: uint16(21005), + 123: uint16(22850), + 124: uint16(21154), + 125: uint16(21164), + 126: uint16(21165), + 127: uint16(21182), + 128: uint16(21759), + 129: uint16(21200), + 130: uint16(21206), + 131: uint16(21232), + 132: uint16(21471), + 133: uint16(29166), + 134: uint16(30669), + 135: uint16(24308), + 136: uint16(20981), + 137: uint16(20988), + 138: uint16(39727), + 139: uint16(21430), + 140: uint16(24321), + 141: uint16(30042), + 142: uint16(24047), + 143: uint16(22348), + 144: uint16(22441), + 145: uint16(22433), + 146: uint16(22654), + 147: uint16(22716), + 148: uint16(22725), + 149: uint16(22737), + 150: uint16(22313), + 151: uint16(22316), + 152: uint16(22314), + 153: uint16(22323), + 154: uint16(22329), + 155: uint16(22318), + 156: uint16(22319), + 157: uint16(22364), + 158: uint16(22331), + 159: uint16(22338), + 160: uint16(22377), + 161: uint16(22405), + 162: uint16(22379), + 163: uint16(22406), + 164: uint16(22396), + 165: uint16(22395), + 166: uint16(22376), + 167: uint16(22381), + 168: uint16(22390), + 169: uint16(22387), + 170: uint16(22445), + 171: uint16(22436), + 172: uint16(22412), + 173: uint16(22450), + 174: uint16(22479), + 175: uint16(22439), + 176: uint16(22452), + 177: uint16(22419), + 178: uint16(22432), + 179: uint16(22485), + 180: uint16(22488), + 181: uint16(22490), + 182: uint16(22489), + 183: uint16(22482), + 184: uint16(22456), + 185: uint16(22516), + 186: uint16(22511), + 187: uint16(22520), + 188: uint16(22500), + 189: uint16(22493), + }, + 91: { + 0: uint16(36467), + 1: uint16(36469), + 2: uint16(36471), + 3: uint16(36472), + 4: uint16(36473), + 5: uint16(36474), + 6: uint16(36475), + 7: uint16(36477), + 8: uint16(36478), + 9: uint16(36480), + 10: uint16(36482), + 11: uint16(36483), + 12: uint16(36484), + 13: uint16(36486), + 14: uint16(36488), + 15: uint16(36489), + 16: uint16(36490), + 17: uint16(36491), + 18: uint16(36492), + 19: uint16(36493), + 20: uint16(36494), + 21: uint16(36497), + 22: uint16(36498), + 23: uint16(36499), + 24: uint16(36501), + 25: uint16(36502), + 26: uint16(36503), + 27: uint16(36504), + 28: uint16(36505), + 29: uint16(36506), + 30: uint16(36507), + 31: uint16(36509), + 32: uint16(36511), + 33: uint16(36512), + 34: uint16(36513), + 35: uint16(36514), + 36: uint16(36515), + 37: uint16(36516), + 38: uint16(36517), + 39: uint16(36518), + 40: uint16(36519), + 41: uint16(36520), + 42: uint16(36521), + 43: uint16(36522), + 44: uint16(36525), + 45: uint16(36526), + 46: uint16(36528), + 47: uint16(36529), + 48: uint16(36531), + 49: uint16(36532), + 50: uint16(36533), + 51: uint16(36534), + 52: uint16(36535), + 53: uint16(36536), + 54: uint16(36537), + 55: uint16(36539), + 56: uint16(36540), + 57: uint16(36541), + 58: uint16(36542), + 59: uint16(36543), + 60: uint16(36544), + 61: uint16(36545), + 62: uint16(36546), + 63: uint16(36547), + 64: uint16(36548), + 65: uint16(36549), + 66: uint16(36550), + 67: uint16(36551), + 68: uint16(36552), + 69: uint16(36553), + 70: uint16(36554), + 71: uint16(36555), + 72: uint16(36556), + 73: uint16(36557), + 74: uint16(36559), + 75: uint16(36560), + 76: uint16(36561), + 77: uint16(36562), + 78: uint16(36563), + 79: uint16(36564), + 80: uint16(36565), + 81: uint16(36566), + 82: uint16(36567), + 83: uint16(36568), + 84: uint16(36569), + 85: uint16(36570), + 86: uint16(36571), + 87: uint16(36572), + 88: uint16(36573), + 89: uint16(36574), + 90: uint16(36575), + 91: uint16(36576), + 92: uint16(36577), + 93: uint16(36578), + 94: uint16(36579), + 95: uint16(36580), + 96: uint16(22539), + 97: uint16(22541), + 98: uint16(22525), + 99: uint16(22509), + 100: uint16(22528), + 101: uint16(22558), + 102: uint16(22553), + 103: uint16(22596), + 104: uint16(22560), + 105: uint16(22629), + 106: uint16(22636), + 107: uint16(22657), + 108: uint16(22665), + 109: uint16(22682), + 110: uint16(22656), + 111: uint16(39336), + 112: uint16(40729), + 113: uint16(25087), + 114: uint16(33401), + 115: uint16(33405), + 116: uint16(33407), + 117: uint16(33423), + 118: uint16(33418), + 119: uint16(33448), + 120: uint16(33412), + 121: uint16(33422), + 122: uint16(33425), + 123: uint16(33431), + 124: uint16(33433), + 125: uint16(33451), + 126: uint16(33464), + 127: uint16(33470), + 128: uint16(33456), + 129: uint16(33480), + 130: uint16(33482), + 131: uint16(33507), + 132: uint16(33432), + 133: uint16(33463), + 134: uint16(33454), + 135: uint16(33483), + 136: uint16(33484), + 137: uint16(33473), + 138: uint16(33449), + 139: uint16(33460), + 140: uint16(33441), + 141: uint16(33450), + 142: uint16(33439), + 143: uint16(33476), + 144: uint16(33486), + 145: uint16(33444), + 146: uint16(33505), + 147: uint16(33545), + 148: uint16(33527), + 149: uint16(33508), + 150: uint16(33551), + 151: uint16(33543), + 152: uint16(33500), + 153: uint16(33524), + 154: uint16(33490), + 155: uint16(33496), + 156: uint16(33548), + 157: uint16(33531), + 158: uint16(33491), + 159: uint16(33553), + 160: uint16(33562), + 161: uint16(33542), + 162: uint16(33556), + 163: uint16(33557), + 164: uint16(33504), + 165: uint16(33493), + 166: uint16(33564), + 167: uint16(33617), + 168: uint16(33627), + 169: uint16(33628), + 170: uint16(33544), + 171: uint16(33682), + 172: uint16(33596), + 173: uint16(33588), + 174: uint16(33585), + 175: uint16(33691), + 176: uint16(33630), + 177: uint16(33583), + 178: uint16(33615), + 179: uint16(33607), + 180: uint16(33603), + 181: uint16(33631), + 182: uint16(33600), + 183: uint16(33559), + 184: uint16(33632), + 185: uint16(33581), + 186: uint16(33594), + 187: uint16(33587), + 188: uint16(33638), + 189: uint16(33637), + }, + 92: { + 0: uint16(36581), + 1: uint16(36582), + 2: uint16(36583), + 3: uint16(36584), + 4: uint16(36585), + 5: uint16(36586), + 6: uint16(36587), + 7: uint16(36588), + 8: uint16(36589), + 9: uint16(36590), + 10: uint16(36591), + 11: uint16(36592), + 12: uint16(36593), + 13: uint16(36594), + 14: uint16(36595), + 15: uint16(36596), + 16: uint16(36597), + 17: uint16(36598), + 18: uint16(36599), + 19: uint16(36600), + 20: uint16(36601), + 21: uint16(36602), + 22: uint16(36603), + 23: uint16(36604), + 24: uint16(36605), + 25: uint16(36606), + 26: uint16(36607), + 27: uint16(36608), + 28: uint16(36609), + 29: uint16(36610), + 30: uint16(36611), + 31: uint16(36612), + 32: uint16(36613), + 33: uint16(36614), + 34: uint16(36615), + 35: uint16(36616), + 36: uint16(36617), + 37: uint16(36618), + 38: uint16(36619), + 39: uint16(36620), + 40: uint16(36621), + 41: uint16(36622), + 42: uint16(36623), + 43: uint16(36624), + 44: uint16(36625), + 45: uint16(36626), + 46: uint16(36627), + 47: uint16(36628), + 48: uint16(36629), + 49: uint16(36630), + 50: uint16(36631), + 51: uint16(36632), + 52: uint16(36633), + 53: uint16(36634), + 54: uint16(36635), + 55: uint16(36636), + 56: uint16(36637), + 57: uint16(36638), + 58: uint16(36639), + 59: uint16(36640), + 60: uint16(36641), + 61: uint16(36642), + 62: uint16(36643), + 63: uint16(36644), + 64: uint16(36645), + 65: uint16(36646), + 66: uint16(36647), + 67: uint16(36648), + 68: uint16(36649), + 69: uint16(36650), + 70: uint16(36651), + 71: uint16(36652), + 72: uint16(36653), + 73: uint16(36654), + 74: uint16(36655), + 75: uint16(36656), + 76: uint16(36657), + 77: uint16(36658), + 78: uint16(36659), + 79: uint16(36660), + 80: uint16(36661), + 81: uint16(36662), + 82: uint16(36663), + 83: uint16(36664), + 84: uint16(36665), + 85: uint16(36666), + 86: uint16(36667), + 87: uint16(36668), + 88: uint16(36669), + 89: uint16(36670), + 90: uint16(36671), + 91: uint16(36672), + 92: uint16(36673), + 93: uint16(36674), + 94: uint16(36675), + 95: uint16(36676), + 96: uint16(33640), + 97: uint16(33563), + 98: uint16(33641), + 99: uint16(33644), + 100: uint16(33642), + 101: uint16(33645), + 102: uint16(33646), + 103: uint16(33712), + 104: uint16(33656), + 105: uint16(33715), + 106: uint16(33716), + 107: uint16(33696), + 108: uint16(33706), + 109: uint16(33683), + 110: uint16(33692), + 111: uint16(33669), + 112: uint16(33660), + 113: uint16(33718), + 114: uint16(33705), + 115: uint16(33661), + 116: uint16(33720), + 117: uint16(33659), + 118: uint16(33688), + 119: uint16(33694), + 120: uint16(33704), + 121: uint16(33722), + 122: uint16(33724), + 123: uint16(33729), + 124: uint16(33793), + 125: uint16(33765), + 126: uint16(33752), + 127: uint16(22535), + 128: uint16(33816), + 129: uint16(33803), + 130: uint16(33757), + 131: uint16(33789), + 132: uint16(33750), + 133: uint16(33820), + 134: uint16(33848), + 135: uint16(33809), + 136: uint16(33798), + 137: uint16(33748), + 138: uint16(33759), + 139: uint16(33807), + 140: uint16(33795), + 141: uint16(33784), + 142: uint16(33785), + 143: uint16(33770), + 144: uint16(33733), + 145: uint16(33728), + 146: uint16(33830), + 147: uint16(33776), + 148: uint16(33761), + 149: uint16(33884), + 150: uint16(33873), + 151: uint16(33882), + 152: uint16(33881), + 153: uint16(33907), + 154: uint16(33927), + 155: uint16(33928), + 156: uint16(33914), + 157: uint16(33929), + 158: uint16(33912), + 159: uint16(33852), + 160: uint16(33862), + 161: uint16(33897), + 162: uint16(33910), + 163: uint16(33932), + 164: uint16(33934), + 165: uint16(33841), + 166: uint16(33901), + 167: uint16(33985), + 168: uint16(33997), + 169: uint16(34000), + 170: uint16(34022), + 171: uint16(33981), + 172: uint16(34003), + 173: uint16(33994), + 174: uint16(33983), + 175: uint16(33978), + 176: uint16(34016), + 177: uint16(33953), + 178: uint16(33977), + 179: uint16(33972), + 180: uint16(33943), + 181: uint16(34021), + 182: uint16(34019), + 183: uint16(34060), + 184: uint16(29965), + 185: uint16(34104), + 186: uint16(34032), + 187: uint16(34105), + 188: uint16(34079), + 189: uint16(34106), + }, + 93: { + 0: uint16(36677), + 1: uint16(36678), + 2: uint16(36679), + 3: uint16(36680), + 4: uint16(36681), + 5: uint16(36682), + 6: uint16(36683), + 7: uint16(36684), + 8: uint16(36685), + 9: uint16(36686), + 10: uint16(36687), + 11: uint16(36688), + 12: uint16(36689), + 13: uint16(36690), + 14: uint16(36691), + 15: uint16(36692), + 16: uint16(36693), + 17: uint16(36694), + 18: uint16(36695), + 19: uint16(36696), + 20: uint16(36697), + 21: uint16(36698), + 22: uint16(36699), + 23: uint16(36700), + 24: uint16(36701), + 25: uint16(36702), + 26: uint16(36703), + 27: uint16(36704), + 28: uint16(36705), + 29: uint16(36706), + 30: uint16(36707), + 31: uint16(36708), + 32: uint16(36709), + 33: uint16(36714), + 34: uint16(36736), + 35: uint16(36748), + 36: uint16(36754), + 37: uint16(36765), + 38: uint16(36768), + 39: uint16(36769), + 40: uint16(36770), + 41: uint16(36772), + 42: uint16(36773), + 43: uint16(36774), + 44: uint16(36775), + 45: uint16(36778), + 46: uint16(36780), + 47: uint16(36781), + 48: uint16(36782), + 49: uint16(36783), + 50: uint16(36786), + 51: uint16(36787), + 52: uint16(36788), + 53: uint16(36789), + 54: uint16(36791), + 55: uint16(36792), + 56: uint16(36794), + 57: uint16(36795), + 58: uint16(36796), + 59: uint16(36799), + 60: uint16(36800), + 61: uint16(36803), + 62: uint16(36806), + 63: uint16(36809), + 64: uint16(36810), + 65: uint16(36811), + 66: uint16(36812), + 67: uint16(36813), + 68: uint16(36815), + 69: uint16(36818), + 70: uint16(36822), + 71: uint16(36823), + 72: uint16(36826), + 73: uint16(36832), + 74: uint16(36833), + 75: uint16(36835), + 76: uint16(36839), + 77: uint16(36844), + 78: uint16(36847), + 79: uint16(36849), + 80: uint16(36850), + 81: uint16(36852), + 82: uint16(36853), + 83: uint16(36854), + 84: uint16(36858), + 85: uint16(36859), + 86: uint16(36860), + 87: uint16(36862), + 88: uint16(36863), + 89: uint16(36871), + 90: uint16(36872), + 91: uint16(36876), + 92: uint16(36878), + 93: uint16(36883), + 94: uint16(36885), + 95: uint16(36888), + 96: uint16(34134), + 97: uint16(34107), + 98: uint16(34047), + 99: uint16(34044), + 100: uint16(34137), + 101: uint16(34120), + 102: uint16(34152), + 103: uint16(34148), + 104: uint16(34142), + 105: uint16(34170), + 106: uint16(30626), + 107: uint16(34115), + 108: uint16(34162), + 109: uint16(34171), + 110: uint16(34212), + 111: uint16(34216), + 112: uint16(34183), + 113: uint16(34191), + 114: uint16(34169), + 115: uint16(34222), + 116: uint16(34204), + 117: uint16(34181), + 118: uint16(34233), + 119: uint16(34231), + 120: uint16(34224), + 121: uint16(34259), + 122: uint16(34241), + 123: uint16(34268), + 124: uint16(34303), + 125: uint16(34343), + 126: uint16(34309), + 127: uint16(34345), + 128: uint16(34326), + 129: uint16(34364), + 130: uint16(24318), + 131: uint16(24328), + 132: uint16(22844), + 133: uint16(22849), + 134: uint16(32823), + 135: uint16(22869), + 136: uint16(22874), + 137: uint16(22872), + 138: uint16(21263), + 139: uint16(23586), + 140: uint16(23589), + 141: uint16(23596), + 142: uint16(23604), + 143: uint16(25164), + 144: uint16(25194), + 145: uint16(25247), + 146: uint16(25275), + 147: uint16(25290), + 148: uint16(25306), + 149: uint16(25303), + 150: uint16(25326), + 151: uint16(25378), + 152: uint16(25334), + 153: uint16(25401), + 154: uint16(25419), + 155: uint16(25411), + 156: uint16(25517), + 157: uint16(25590), + 158: uint16(25457), + 159: uint16(25466), + 160: uint16(25486), + 161: uint16(25524), + 162: uint16(25453), + 163: uint16(25516), + 164: uint16(25482), + 165: uint16(25449), + 166: uint16(25518), + 167: uint16(25532), + 168: uint16(25586), + 169: uint16(25592), + 170: uint16(25568), + 171: uint16(25599), + 172: uint16(25540), + 173: uint16(25566), + 174: uint16(25550), + 175: uint16(25682), + 176: uint16(25542), + 177: uint16(25534), + 178: uint16(25669), + 179: uint16(25665), + 180: uint16(25611), + 181: uint16(25627), + 182: uint16(25632), + 183: uint16(25612), + 184: uint16(25638), + 185: uint16(25633), + 186: uint16(25694), + 187: uint16(25732), + 188: uint16(25709), + 189: uint16(25750), + }, + 94: { + 0: uint16(36889), + 1: uint16(36892), + 2: uint16(36899), + 3: uint16(36900), + 4: uint16(36901), + 5: uint16(36903), + 6: uint16(36904), + 7: uint16(36905), + 8: uint16(36906), + 9: uint16(36907), + 10: uint16(36908), + 11: uint16(36912), + 12: uint16(36913), + 13: uint16(36914), + 14: uint16(36915), + 15: uint16(36916), + 16: uint16(36919), + 17: uint16(36921), + 18: uint16(36922), + 19: uint16(36925), + 20: uint16(36927), + 21: uint16(36928), + 22: uint16(36931), + 23: uint16(36933), + 24: uint16(36934), + 25: uint16(36936), + 26: uint16(36937), + 27: uint16(36938), + 28: uint16(36939), + 29: uint16(36940), + 30: uint16(36942), + 31: uint16(36948), + 32: uint16(36949), + 33: uint16(36950), + 34: uint16(36953), + 35: uint16(36954), + 36: uint16(36956), + 37: uint16(36957), + 38: uint16(36958), + 39: uint16(36959), + 40: uint16(36960), + 41: uint16(36961), + 42: uint16(36964), + 43: uint16(36966), + 44: uint16(36967), + 45: uint16(36969), + 46: uint16(36970), + 47: uint16(36971), + 48: uint16(36972), + 49: uint16(36975), + 50: uint16(36976), + 51: uint16(36977), + 52: uint16(36978), + 53: uint16(36979), + 54: uint16(36982), + 55: uint16(36983), + 56: uint16(36984), + 57: uint16(36985), + 58: uint16(36986), + 59: uint16(36987), + 60: uint16(36988), + 61: uint16(36990), + 62: uint16(36993), + 63: uint16(36996), + 64: uint16(36997), + 65: uint16(36998), + 66: uint16(36999), + 67: uint16(37001), + 68: uint16(37002), + 69: uint16(37004), + 70: uint16(37005), + 71: uint16(37006), + 72: uint16(37007), + 73: uint16(37008), + 74: uint16(37010), + 75: uint16(37012), + 76: uint16(37014), + 77: uint16(37016), + 78: uint16(37018), + 79: uint16(37020), + 80: uint16(37022), + 81: uint16(37023), + 82: uint16(37024), + 83: uint16(37028), + 84: uint16(37029), + 85: uint16(37031), + 86: uint16(37032), + 87: uint16(37033), + 88: uint16(37035), + 89: uint16(37037), + 90: uint16(37042), + 91: uint16(37047), + 92: uint16(37052), + 93: uint16(37053), + 94: uint16(37055), + 95: uint16(37056), + 96: uint16(25722), + 97: uint16(25783), + 98: uint16(25784), + 99: uint16(25753), + 100: uint16(25786), + 101: uint16(25792), + 102: uint16(25808), + 103: uint16(25815), + 104: uint16(25828), + 105: uint16(25826), + 106: uint16(25865), + 107: uint16(25893), + 108: uint16(25902), + 109: uint16(24331), + 110: uint16(24530), + 111: uint16(29977), + 112: uint16(24337), + 113: uint16(21343), + 114: uint16(21489), + 115: uint16(21501), + 116: uint16(21481), + 117: uint16(21480), + 118: uint16(21499), + 119: uint16(21522), + 120: uint16(21526), + 121: uint16(21510), + 122: uint16(21579), + 123: uint16(21586), + 124: uint16(21587), + 125: uint16(21588), + 126: uint16(21590), + 127: uint16(21571), + 128: uint16(21537), + 129: uint16(21591), + 130: uint16(21593), + 131: uint16(21539), + 132: uint16(21554), + 133: uint16(21634), + 134: uint16(21652), + 135: uint16(21623), + 136: uint16(21617), + 137: uint16(21604), + 138: uint16(21658), + 139: uint16(21659), + 140: uint16(21636), + 141: uint16(21622), + 142: uint16(21606), + 143: uint16(21661), + 144: uint16(21712), + 145: uint16(21677), + 146: uint16(21698), + 147: uint16(21684), + 148: uint16(21714), + 149: uint16(21671), + 150: uint16(21670), + 151: uint16(21715), + 152: uint16(21716), + 153: uint16(21618), + 154: uint16(21667), + 155: uint16(21717), + 156: uint16(21691), + 157: uint16(21695), + 158: uint16(21708), + 159: uint16(21721), + 160: uint16(21722), + 161: uint16(21724), + 162: uint16(21673), + 163: uint16(21674), + 164: uint16(21668), + 165: uint16(21725), + 166: uint16(21711), + 167: uint16(21726), + 168: uint16(21787), + 169: uint16(21735), + 170: uint16(21792), + 171: uint16(21757), + 172: uint16(21780), + 173: uint16(21747), + 174: uint16(21794), + 175: uint16(21795), + 176: uint16(21775), + 177: uint16(21777), + 178: uint16(21799), + 179: uint16(21802), + 180: uint16(21863), + 181: uint16(21903), + 182: uint16(21941), + 183: uint16(21833), + 184: uint16(21869), + 185: uint16(21825), + 186: uint16(21845), + 187: uint16(21823), + 188: uint16(21840), + 189: uint16(21820), + }, + 95: { + 0: uint16(37058), + 1: uint16(37059), + 2: uint16(37062), + 3: uint16(37064), + 4: uint16(37065), + 5: uint16(37067), + 6: uint16(37068), + 7: uint16(37069), + 8: uint16(37074), + 9: uint16(37076), + 10: uint16(37077), + 11: uint16(37078), + 12: uint16(37080), + 13: uint16(37081), + 14: uint16(37082), + 15: uint16(37086), + 16: uint16(37087), + 17: uint16(37088), + 18: uint16(37091), + 19: uint16(37092), + 20: uint16(37093), + 21: uint16(37097), + 22: uint16(37098), + 23: uint16(37100), + 24: uint16(37102), + 25: uint16(37104), + 26: uint16(37105), + 27: uint16(37106), + 28: uint16(37107), + 29: uint16(37109), + 30: uint16(37110), + 31: uint16(37111), + 32: uint16(37113), + 33: uint16(37114), + 34: uint16(37115), + 35: uint16(37116), + 36: uint16(37119), + 37: uint16(37120), + 38: uint16(37121), + 39: uint16(37123), + 40: uint16(37125), + 41: uint16(37126), + 42: uint16(37127), + 43: uint16(37128), + 44: uint16(37129), + 45: uint16(37130), + 46: uint16(37131), + 47: uint16(37132), + 48: uint16(37133), + 49: uint16(37134), + 50: uint16(37135), + 51: uint16(37136), + 52: uint16(37137), + 53: uint16(37138), + 54: uint16(37139), + 55: uint16(37140), + 56: uint16(37141), + 57: uint16(37142), + 58: uint16(37143), + 59: uint16(37144), + 60: uint16(37146), + 61: uint16(37147), + 62: uint16(37148), + 63: uint16(37149), + 64: uint16(37151), + 65: uint16(37152), + 66: uint16(37153), + 67: uint16(37156), + 68: uint16(37157), + 69: uint16(37158), + 70: uint16(37159), + 71: uint16(37160), + 72: uint16(37161), + 73: uint16(37162), + 74: uint16(37163), + 75: uint16(37164), + 76: uint16(37165), + 77: uint16(37166), + 78: uint16(37168), + 79: uint16(37170), + 80: uint16(37171), + 81: uint16(37172), + 82: uint16(37173), + 83: uint16(37174), + 84: uint16(37175), + 85: uint16(37176), + 86: uint16(37178), + 87: uint16(37179), + 88: uint16(37180), + 89: uint16(37181), + 90: uint16(37182), + 91: uint16(37183), + 92: uint16(37184), + 93: uint16(37185), + 94: uint16(37186), + 95: uint16(37188), + 96: uint16(21815), + 97: uint16(21846), + 98: uint16(21877), + 99: uint16(21878), + 100: uint16(21879), + 101: uint16(21811), + 102: uint16(21808), + 103: uint16(21852), + 104: uint16(21899), + 105: uint16(21970), + 106: uint16(21891), + 107: uint16(21937), + 108: uint16(21945), + 109: uint16(21896), + 110: uint16(21889), + 111: uint16(21919), + 112: uint16(21886), + 113: uint16(21974), + 114: uint16(21905), + 115: uint16(21883), + 116: uint16(21983), + 117: uint16(21949), + 118: uint16(21950), + 119: uint16(21908), + 120: uint16(21913), + 121: uint16(21994), + 122: uint16(22007), + 123: uint16(21961), + 124: uint16(22047), + 125: uint16(21969), + 126: uint16(21995), + 127: uint16(21996), + 128: uint16(21972), + 129: uint16(21990), + 130: uint16(21981), + 131: uint16(21956), + 132: uint16(21999), + 133: uint16(21989), + 134: uint16(22002), + 135: uint16(22003), + 136: uint16(21964), + 137: uint16(21965), + 138: uint16(21992), + 139: uint16(22005), + 140: uint16(21988), + 141: uint16(36756), + 142: uint16(22046), + 143: uint16(22024), + 144: uint16(22028), + 145: uint16(22017), + 146: uint16(22052), + 147: uint16(22051), + 148: uint16(22014), + 149: uint16(22016), + 150: uint16(22055), + 151: uint16(22061), + 152: uint16(22104), + 153: uint16(22073), + 154: uint16(22103), + 155: uint16(22060), + 156: uint16(22093), + 157: uint16(22114), + 158: uint16(22105), + 159: uint16(22108), + 160: uint16(22092), + 161: uint16(22100), + 162: uint16(22150), + 163: uint16(22116), + 164: uint16(22129), + 165: uint16(22123), + 166: uint16(22139), + 167: uint16(22140), + 168: uint16(22149), + 169: uint16(22163), + 170: uint16(22191), + 171: uint16(22228), + 172: uint16(22231), + 173: uint16(22237), + 174: uint16(22241), + 175: uint16(22261), + 176: uint16(22251), + 177: uint16(22265), + 178: uint16(22271), + 179: uint16(22276), + 180: uint16(22282), + 181: uint16(22281), + 182: uint16(22300), + 183: uint16(24079), + 184: uint16(24089), + 185: uint16(24084), + 186: uint16(24081), + 187: uint16(24113), + 188: uint16(24123), + 189: uint16(24124), + }, + 96: { + 0: uint16(37189), + 1: uint16(37191), + 2: uint16(37192), + 3: uint16(37201), + 4: uint16(37203), + 5: uint16(37204), + 6: uint16(37205), + 7: uint16(37206), + 8: uint16(37208), + 9: uint16(37209), + 10: uint16(37211), + 11: uint16(37212), + 12: uint16(37215), + 13: uint16(37216), + 14: uint16(37222), + 15: uint16(37223), + 16: uint16(37224), + 17: uint16(37227), + 18: uint16(37229), + 19: uint16(37235), + 20: uint16(37242), + 21: uint16(37243), + 22: uint16(37244), + 23: uint16(37248), + 24: uint16(37249), + 25: uint16(37250), + 26: uint16(37251), + 27: uint16(37252), + 28: uint16(37254), + 29: uint16(37256), + 30: uint16(37258), + 31: uint16(37262), + 32: uint16(37263), + 33: uint16(37267), + 34: uint16(37268), + 35: uint16(37269), + 36: uint16(37270), + 37: uint16(37271), + 38: uint16(37272), + 39: uint16(37273), + 40: uint16(37276), + 41: uint16(37277), + 42: uint16(37278), + 43: uint16(37279), + 44: uint16(37280), + 45: uint16(37281), + 46: uint16(37284), + 47: uint16(37285), + 48: uint16(37286), + 49: uint16(37287), + 50: uint16(37288), + 51: uint16(37289), + 52: uint16(37291), + 53: uint16(37292), + 54: uint16(37296), + 55: uint16(37297), + 56: uint16(37298), + 57: uint16(37299), + 58: uint16(37302), + 59: uint16(37303), + 60: uint16(37304), + 61: uint16(37305), + 62: uint16(37307), + 63: uint16(37308), + 64: uint16(37309), + 65: uint16(37310), + 66: uint16(37311), + 67: uint16(37312), + 68: uint16(37313), + 69: uint16(37314), + 70: uint16(37315), + 71: uint16(37316), + 72: uint16(37317), + 73: uint16(37318), + 74: uint16(37320), + 75: uint16(37323), + 76: uint16(37328), + 77: uint16(37330), + 78: uint16(37331), + 79: uint16(37332), + 80: uint16(37333), + 81: uint16(37334), + 82: uint16(37335), + 83: uint16(37336), + 84: uint16(37337), + 85: uint16(37338), + 86: uint16(37339), + 87: uint16(37341), + 88: uint16(37342), + 89: uint16(37343), + 90: uint16(37344), + 91: uint16(37345), + 92: uint16(37346), + 93: uint16(37347), + 94: uint16(37348), + 95: uint16(37349), + 96: uint16(24119), + 97: uint16(24132), + 98: uint16(24148), + 99: uint16(24155), + 100: uint16(24158), + 101: uint16(24161), + 102: uint16(23692), + 103: uint16(23674), + 104: uint16(23693), + 105: uint16(23696), + 106: uint16(23702), + 107: uint16(23688), + 108: uint16(23704), + 109: uint16(23705), + 110: uint16(23697), + 111: uint16(23706), + 112: uint16(23708), + 113: uint16(23733), + 114: uint16(23714), + 115: uint16(23741), + 116: uint16(23724), + 117: uint16(23723), + 118: uint16(23729), + 119: uint16(23715), + 120: uint16(23745), + 121: uint16(23735), + 122: uint16(23748), + 123: uint16(23762), + 124: uint16(23780), + 125: uint16(23755), + 126: uint16(23781), + 127: uint16(23810), + 128: uint16(23811), + 129: uint16(23847), + 130: uint16(23846), + 131: uint16(23854), + 132: uint16(23844), + 133: uint16(23838), + 134: uint16(23814), + 135: uint16(23835), + 136: uint16(23896), + 137: uint16(23870), + 138: uint16(23860), + 139: uint16(23869), + 140: uint16(23916), + 141: uint16(23899), + 142: uint16(23919), + 143: uint16(23901), + 144: uint16(23915), + 145: uint16(23883), + 146: uint16(23882), + 147: uint16(23913), + 148: uint16(23924), + 149: uint16(23938), + 150: uint16(23961), + 151: uint16(23965), + 152: uint16(35955), + 153: uint16(23991), + 154: uint16(24005), + 155: uint16(24435), + 156: uint16(24439), + 157: uint16(24450), + 158: uint16(24455), + 159: uint16(24457), + 160: uint16(24460), + 161: uint16(24469), + 162: uint16(24473), + 163: uint16(24476), + 164: uint16(24488), + 165: uint16(24493), + 166: uint16(24501), + 167: uint16(24508), + 168: uint16(34914), + 169: uint16(24417), + 170: uint16(29357), + 171: uint16(29360), + 172: uint16(29364), + 173: uint16(29367), + 174: uint16(29368), + 175: uint16(29379), + 176: uint16(29377), + 177: uint16(29390), + 178: uint16(29389), + 179: uint16(29394), + 180: uint16(29416), + 181: uint16(29423), + 182: uint16(29417), + 183: uint16(29426), + 184: uint16(29428), + 185: uint16(29431), + 186: uint16(29441), + 187: uint16(29427), + 188: uint16(29443), + 189: uint16(29434), + }, + 97: { + 0: uint16(37350), + 1: uint16(37351), + 2: uint16(37352), + 3: uint16(37353), + 4: uint16(37354), + 5: uint16(37355), + 6: uint16(37356), + 7: uint16(37357), + 8: uint16(37358), + 9: uint16(37359), + 10: uint16(37360), + 11: uint16(37361), + 12: uint16(37362), + 13: uint16(37363), + 14: uint16(37364), + 15: uint16(37365), + 16: uint16(37366), + 17: uint16(37367), + 18: uint16(37368), + 19: uint16(37369), + 20: uint16(37370), + 21: uint16(37371), + 22: uint16(37372), + 23: uint16(37373), + 24: uint16(37374), + 25: uint16(37375), + 26: uint16(37376), + 27: uint16(37377), + 28: uint16(37378), + 29: uint16(37379), + 30: uint16(37380), + 31: uint16(37381), + 32: uint16(37382), + 33: uint16(37383), + 34: uint16(37384), + 35: uint16(37385), + 36: uint16(37386), + 37: uint16(37387), + 38: uint16(37388), + 39: uint16(37389), + 40: uint16(37390), + 41: uint16(37391), + 42: uint16(37392), + 43: uint16(37393), + 44: uint16(37394), + 45: uint16(37395), + 46: uint16(37396), + 47: uint16(37397), + 48: uint16(37398), + 49: uint16(37399), + 50: uint16(37400), + 51: uint16(37401), + 52: uint16(37402), + 53: uint16(37403), + 54: uint16(37404), + 55: uint16(37405), + 56: uint16(37406), + 57: uint16(37407), + 58: uint16(37408), + 59: uint16(37409), + 60: uint16(37410), + 61: uint16(37411), + 62: uint16(37412), + 63: uint16(37413), + 64: uint16(37414), + 65: uint16(37415), + 66: uint16(37416), + 67: uint16(37417), + 68: uint16(37418), + 69: uint16(37419), + 70: uint16(37420), + 71: uint16(37421), + 72: uint16(37422), + 73: uint16(37423), + 74: uint16(37424), + 75: uint16(37425), + 76: uint16(37426), + 77: uint16(37427), + 78: uint16(37428), + 79: uint16(37429), + 80: uint16(37430), + 81: uint16(37431), + 82: uint16(37432), + 83: uint16(37433), + 84: uint16(37434), + 85: uint16(37435), + 86: uint16(37436), + 87: uint16(37437), + 88: uint16(37438), + 89: uint16(37439), + 90: uint16(37440), + 91: uint16(37441), + 92: uint16(37442), + 93: uint16(37443), + 94: uint16(37444), + 95: uint16(37445), + 96: uint16(29435), + 97: uint16(29463), + 98: uint16(29459), + 99: uint16(29473), + 100: uint16(29450), + 101: uint16(29470), + 102: uint16(29469), + 103: uint16(29461), + 104: uint16(29474), + 105: uint16(29497), + 106: uint16(29477), + 107: uint16(29484), + 108: uint16(29496), + 109: uint16(29489), + 110: uint16(29520), + 111: uint16(29517), + 112: uint16(29527), + 113: uint16(29536), + 114: uint16(29548), + 115: uint16(29551), + 116: uint16(29566), + 117: uint16(33307), + 118: uint16(22821), + 119: uint16(39143), + 120: uint16(22820), + 121: uint16(22786), + 122: uint16(39267), + 123: uint16(39271), + 124: uint16(39272), + 125: uint16(39273), + 126: uint16(39274), + 127: uint16(39275), + 128: uint16(39276), + 129: uint16(39284), + 130: uint16(39287), + 131: uint16(39293), + 132: uint16(39296), + 133: uint16(39300), + 134: uint16(39303), + 135: uint16(39306), + 136: uint16(39309), + 137: uint16(39312), + 138: uint16(39313), + 139: uint16(39315), + 140: uint16(39316), + 141: uint16(39317), + 142: uint16(24192), + 143: uint16(24209), + 144: uint16(24203), + 145: uint16(24214), + 146: uint16(24229), + 147: uint16(24224), + 148: uint16(24249), + 149: uint16(24245), + 150: uint16(24254), + 151: uint16(24243), + 152: uint16(36179), + 153: uint16(24274), + 154: uint16(24273), + 155: uint16(24283), + 156: uint16(24296), + 157: uint16(24298), + 158: uint16(33210), + 159: uint16(24516), + 160: uint16(24521), + 161: uint16(24534), + 162: uint16(24527), + 163: uint16(24579), + 164: uint16(24558), + 165: uint16(24580), + 166: uint16(24545), + 167: uint16(24548), + 168: uint16(24574), + 169: uint16(24581), + 170: uint16(24582), + 171: uint16(24554), + 172: uint16(24557), + 173: uint16(24568), + 174: uint16(24601), + 175: uint16(24629), + 176: uint16(24614), + 177: uint16(24603), + 178: uint16(24591), + 179: uint16(24589), + 180: uint16(24617), + 181: uint16(24619), + 182: uint16(24586), + 183: uint16(24639), + 184: uint16(24609), + 185: uint16(24696), + 186: uint16(24697), + 187: uint16(24699), + 188: uint16(24698), + 189: uint16(24642), + }, + 98: { + 0: uint16(37446), + 1: uint16(37447), + 2: uint16(37448), + 3: uint16(37449), + 4: uint16(37450), + 5: uint16(37451), + 6: uint16(37452), + 7: uint16(37453), + 8: uint16(37454), + 9: uint16(37455), + 10: uint16(37456), + 11: uint16(37457), + 12: uint16(37458), + 13: uint16(37459), + 14: uint16(37460), + 15: uint16(37461), + 16: uint16(37462), + 17: uint16(37463), + 18: uint16(37464), + 19: uint16(37465), + 20: uint16(37466), + 21: uint16(37467), + 22: uint16(37468), + 23: uint16(37469), + 24: uint16(37470), + 25: uint16(37471), + 26: uint16(37472), + 27: uint16(37473), + 28: uint16(37474), + 29: uint16(37475), + 30: uint16(37476), + 31: uint16(37477), + 32: uint16(37478), + 33: uint16(37479), + 34: uint16(37480), + 35: uint16(37481), + 36: uint16(37482), + 37: uint16(37483), + 38: uint16(37484), + 39: uint16(37485), + 40: uint16(37486), + 41: uint16(37487), + 42: uint16(37488), + 43: uint16(37489), + 44: uint16(37490), + 45: uint16(37491), + 46: uint16(37493), + 47: uint16(37494), + 48: uint16(37495), + 49: uint16(37496), + 50: uint16(37497), + 51: uint16(37498), + 52: uint16(37499), + 53: uint16(37500), + 54: uint16(37501), + 55: uint16(37502), + 56: uint16(37503), + 57: uint16(37504), + 58: uint16(37505), + 59: uint16(37506), + 60: uint16(37507), + 61: uint16(37508), + 62: uint16(37509), + 63: uint16(37510), + 64: uint16(37511), + 65: uint16(37512), + 66: uint16(37513), + 67: uint16(37514), + 68: uint16(37515), + 69: uint16(37516), + 70: uint16(37517), + 71: uint16(37519), + 72: uint16(37520), + 73: uint16(37521), + 74: uint16(37522), + 75: uint16(37523), + 76: uint16(37524), + 77: uint16(37525), + 78: uint16(37526), + 79: uint16(37527), + 80: uint16(37528), + 81: uint16(37529), + 82: uint16(37530), + 83: uint16(37531), + 84: uint16(37532), + 85: uint16(37533), + 86: uint16(37534), + 87: uint16(37535), + 88: uint16(37536), + 89: uint16(37537), + 90: uint16(37538), + 91: uint16(37539), + 92: uint16(37540), + 93: uint16(37541), + 94: uint16(37542), + 95: uint16(37543), + 96: uint16(24682), + 97: uint16(24701), + 98: uint16(24726), + 99: uint16(24730), + 100: uint16(24749), + 101: uint16(24733), + 102: uint16(24707), + 103: uint16(24722), + 104: uint16(24716), + 105: uint16(24731), + 106: uint16(24812), + 107: uint16(24763), + 108: uint16(24753), + 109: uint16(24797), + 110: uint16(24792), + 111: uint16(24774), + 112: uint16(24794), + 113: uint16(24756), + 114: uint16(24864), + 115: uint16(24870), + 116: uint16(24853), + 117: uint16(24867), + 118: uint16(24820), + 119: uint16(24832), + 120: uint16(24846), + 121: uint16(24875), + 122: uint16(24906), + 123: uint16(24949), + 124: uint16(25004), + 125: uint16(24980), + 126: uint16(24999), + 127: uint16(25015), + 128: uint16(25044), + 129: uint16(25077), + 130: uint16(24541), + 131: uint16(38579), + 132: uint16(38377), + 133: uint16(38379), + 134: uint16(38385), + 135: uint16(38387), + 136: uint16(38389), + 137: uint16(38390), + 138: uint16(38396), + 139: uint16(38398), + 140: uint16(38403), + 141: uint16(38404), + 142: uint16(38406), + 143: uint16(38408), + 144: uint16(38410), + 145: uint16(38411), + 146: uint16(38412), + 147: uint16(38413), + 148: uint16(38415), + 149: uint16(38418), + 150: uint16(38421), + 151: uint16(38422), + 152: uint16(38423), + 153: uint16(38425), + 154: uint16(38426), + 155: uint16(20012), + 156: uint16(29247), + 157: uint16(25109), + 158: uint16(27701), + 159: uint16(27732), + 160: uint16(27740), + 161: uint16(27722), + 162: uint16(27811), + 163: uint16(27781), + 164: uint16(27792), + 165: uint16(27796), + 166: uint16(27788), + 167: uint16(27752), + 168: uint16(27753), + 169: uint16(27764), + 170: uint16(27766), + 171: uint16(27782), + 172: uint16(27817), + 173: uint16(27856), + 174: uint16(27860), + 175: uint16(27821), + 176: uint16(27895), + 177: uint16(27896), + 178: uint16(27889), + 179: uint16(27863), + 180: uint16(27826), + 181: uint16(27872), + 182: uint16(27862), + 183: uint16(27898), + 184: uint16(27883), + 185: uint16(27886), + 186: uint16(27825), + 187: uint16(27859), + 188: uint16(27887), + 189: uint16(27902), + }, + 99: { + 0: uint16(37544), + 1: uint16(37545), + 2: uint16(37546), + 3: uint16(37547), + 4: uint16(37548), + 5: uint16(37549), + 6: uint16(37551), + 7: uint16(37552), + 8: uint16(37553), + 9: uint16(37554), + 10: uint16(37555), + 11: uint16(37556), + 12: uint16(37557), + 13: uint16(37558), + 14: uint16(37559), + 15: uint16(37560), + 16: uint16(37561), + 17: uint16(37562), + 18: uint16(37563), + 19: uint16(37564), + 20: uint16(37565), + 21: uint16(37566), + 22: uint16(37567), + 23: uint16(37568), + 24: uint16(37569), + 25: uint16(37570), + 26: uint16(37571), + 27: uint16(37572), + 28: uint16(37573), + 29: uint16(37574), + 30: uint16(37575), + 31: uint16(37577), + 32: uint16(37578), + 33: uint16(37579), + 34: uint16(37580), + 35: uint16(37581), + 36: uint16(37582), + 37: uint16(37583), + 38: uint16(37584), + 39: uint16(37585), + 40: uint16(37586), + 41: uint16(37587), + 42: uint16(37588), + 43: uint16(37589), + 44: uint16(37590), + 45: uint16(37591), + 46: uint16(37592), + 47: uint16(37593), + 48: uint16(37594), + 49: uint16(37595), + 50: uint16(37596), + 51: uint16(37597), + 52: uint16(37598), + 53: uint16(37599), + 54: uint16(37600), + 55: uint16(37601), + 56: uint16(37602), + 57: uint16(37603), + 58: uint16(37604), + 59: uint16(37605), + 60: uint16(37606), + 61: uint16(37607), + 62: uint16(37608), + 63: uint16(37609), + 64: uint16(37610), + 65: uint16(37611), + 66: uint16(37612), + 67: uint16(37613), + 68: uint16(37614), + 69: uint16(37615), + 70: uint16(37616), + 71: uint16(37617), + 72: uint16(37618), + 73: uint16(37619), + 74: uint16(37620), + 75: uint16(37621), + 76: uint16(37622), + 77: uint16(37623), + 78: uint16(37624), + 79: uint16(37625), + 80: uint16(37626), + 81: uint16(37627), + 82: uint16(37628), + 83: uint16(37629), + 84: uint16(37630), + 85: uint16(37631), + 86: uint16(37632), + 87: uint16(37633), + 88: uint16(37634), + 89: uint16(37635), + 90: uint16(37636), + 91: uint16(37637), + 92: uint16(37638), + 93: uint16(37639), + 94: uint16(37640), + 95: uint16(37641), + 96: uint16(27961), + 97: uint16(27943), + 98: uint16(27916), + 99: uint16(27971), + 100: uint16(27976), + 101: uint16(27911), + 102: uint16(27908), + 103: uint16(27929), + 104: uint16(27918), + 105: uint16(27947), + 106: uint16(27981), + 107: uint16(27950), + 108: uint16(27957), + 109: uint16(27930), + 110: uint16(27983), + 111: uint16(27986), + 112: uint16(27988), + 113: uint16(27955), + 114: uint16(28049), + 115: uint16(28015), + 116: uint16(28062), + 117: uint16(28064), + 118: uint16(27998), + 119: uint16(28051), + 120: uint16(28052), + 121: uint16(27996), + 122: uint16(28000), + 123: uint16(28028), + 124: uint16(28003), + 125: uint16(28186), + 126: uint16(28103), + 127: uint16(28101), + 128: uint16(28126), + 129: uint16(28174), + 130: uint16(28095), + 131: uint16(28128), + 132: uint16(28177), + 133: uint16(28134), + 134: uint16(28125), + 135: uint16(28121), + 136: uint16(28182), + 137: uint16(28075), + 138: uint16(28172), + 139: uint16(28078), + 140: uint16(28203), + 141: uint16(28270), + 142: uint16(28238), + 143: uint16(28267), + 144: uint16(28338), + 145: uint16(28255), + 146: uint16(28294), + 147: uint16(28243), + 148: uint16(28244), + 149: uint16(28210), + 150: uint16(28197), + 151: uint16(28228), + 152: uint16(28383), + 153: uint16(28337), + 154: uint16(28312), + 155: uint16(28384), + 156: uint16(28461), + 157: uint16(28386), + 158: uint16(28325), + 159: uint16(28327), + 160: uint16(28349), + 161: uint16(28347), + 162: uint16(28343), + 163: uint16(28375), + 164: uint16(28340), + 165: uint16(28367), + 166: uint16(28303), + 167: uint16(28354), + 168: uint16(28319), + 169: uint16(28514), + 170: uint16(28486), + 171: uint16(28487), + 172: uint16(28452), + 173: uint16(28437), + 174: uint16(28409), + 175: uint16(28463), + 176: uint16(28470), + 177: uint16(28491), + 178: uint16(28532), + 179: uint16(28458), + 180: uint16(28425), + 181: uint16(28457), + 182: uint16(28553), + 183: uint16(28557), + 184: uint16(28556), + 185: uint16(28536), + 186: uint16(28530), + 187: uint16(28540), + 188: uint16(28538), + 189: uint16(28625), + }, + 100: { + 0: uint16(37642), + 1: uint16(37643), + 2: uint16(37644), + 3: uint16(37645), + 4: uint16(37646), + 5: uint16(37647), + 6: uint16(37648), + 7: uint16(37649), + 8: uint16(37650), + 9: uint16(37651), + 10: uint16(37652), + 11: uint16(37653), + 12: uint16(37654), + 13: uint16(37655), + 14: uint16(37656), + 15: uint16(37657), + 16: uint16(37658), + 17: uint16(37659), + 18: uint16(37660), + 19: uint16(37661), + 20: uint16(37662), + 21: uint16(37663), + 22: uint16(37664), + 23: uint16(37665), + 24: uint16(37666), + 25: uint16(37667), + 26: uint16(37668), + 27: uint16(37669), + 28: uint16(37670), + 29: uint16(37671), + 30: uint16(37672), + 31: uint16(37673), + 32: uint16(37674), + 33: uint16(37675), + 34: uint16(37676), + 35: uint16(37677), + 36: uint16(37678), + 37: uint16(37679), + 38: uint16(37680), + 39: uint16(37681), + 40: uint16(37682), + 41: uint16(37683), + 42: uint16(37684), + 43: uint16(37685), + 44: uint16(37686), + 45: uint16(37687), + 46: uint16(37688), + 47: uint16(37689), + 48: uint16(37690), + 49: uint16(37691), + 50: uint16(37692), + 51: uint16(37693), + 52: uint16(37695), + 53: uint16(37696), + 54: uint16(37697), + 55: uint16(37698), + 56: uint16(37699), + 57: uint16(37700), + 58: uint16(37701), + 59: uint16(37702), + 60: uint16(37703), + 61: uint16(37704), + 62: uint16(37705), + 63: uint16(37706), + 64: uint16(37707), + 65: uint16(37708), + 66: uint16(37709), + 67: uint16(37710), + 68: uint16(37711), + 69: uint16(37712), + 70: uint16(37713), + 71: uint16(37714), + 72: uint16(37715), + 73: uint16(37716), + 74: uint16(37717), + 75: uint16(37718), + 76: uint16(37719), + 77: uint16(37720), + 78: uint16(37721), + 79: uint16(37722), + 80: uint16(37723), + 81: uint16(37724), + 82: uint16(37725), + 83: uint16(37726), + 84: uint16(37727), + 85: uint16(37728), + 86: uint16(37729), + 87: uint16(37730), + 88: uint16(37731), + 89: uint16(37732), + 90: uint16(37733), + 91: uint16(37734), + 92: uint16(37735), + 93: uint16(37736), + 94: uint16(37737), + 95: uint16(37739), + 96: uint16(28617), + 97: uint16(28583), + 98: uint16(28601), + 99: uint16(28598), + 100: uint16(28610), + 101: uint16(28641), + 102: uint16(28654), + 103: uint16(28638), + 104: uint16(28640), + 105: uint16(28655), + 106: uint16(28698), + 107: uint16(28707), + 108: uint16(28699), + 109: uint16(28729), + 110: uint16(28725), + 111: uint16(28751), + 112: uint16(28766), + 113: uint16(23424), + 114: uint16(23428), + 115: uint16(23445), + 116: uint16(23443), + 117: uint16(23461), + 118: uint16(23480), + 119: uint16(29999), + 120: uint16(39582), + 121: uint16(25652), + 122: uint16(23524), + 123: uint16(23534), + 124: uint16(35120), + 125: uint16(23536), + 126: uint16(36423), + 127: uint16(35591), + 128: uint16(36790), + 129: uint16(36819), + 130: uint16(36821), + 131: uint16(36837), + 132: uint16(36846), + 133: uint16(36836), + 134: uint16(36841), + 135: uint16(36838), + 136: uint16(36851), + 137: uint16(36840), + 138: uint16(36869), + 139: uint16(36868), + 140: uint16(36875), + 141: uint16(36902), + 142: uint16(36881), + 143: uint16(36877), + 144: uint16(36886), + 145: uint16(36897), + 146: uint16(36917), + 147: uint16(36918), + 148: uint16(36909), + 149: uint16(36911), + 150: uint16(36932), + 151: uint16(36945), + 152: uint16(36946), + 153: uint16(36944), + 154: uint16(36968), + 155: uint16(36952), + 156: uint16(36962), + 157: uint16(36955), + 158: uint16(26297), + 159: uint16(36980), + 160: uint16(36989), + 161: uint16(36994), + 162: uint16(37000), + 163: uint16(36995), + 164: uint16(37003), + 165: uint16(24400), + 166: uint16(24407), + 167: uint16(24406), + 168: uint16(24408), + 169: uint16(23611), + 170: uint16(21675), + 171: uint16(23632), + 172: uint16(23641), + 173: uint16(23409), + 174: uint16(23651), + 175: uint16(23654), + 176: uint16(32700), + 177: uint16(24362), + 178: uint16(24361), + 179: uint16(24365), + 180: uint16(33396), + 181: uint16(24380), + 182: uint16(39739), + 183: uint16(23662), + 184: uint16(22913), + 185: uint16(22915), + 186: uint16(22925), + 187: uint16(22953), + 188: uint16(22954), + 189: uint16(22947), + }, + 101: { + 0: uint16(37740), + 1: uint16(37741), + 2: uint16(37742), + 3: uint16(37743), + 4: uint16(37744), + 5: uint16(37745), + 6: uint16(37746), + 7: uint16(37747), + 8: uint16(37748), + 9: uint16(37749), + 10: uint16(37750), + 11: uint16(37751), + 12: uint16(37752), + 13: uint16(37753), + 14: uint16(37754), + 15: uint16(37755), + 16: uint16(37756), + 17: uint16(37757), + 18: uint16(37758), + 19: uint16(37759), + 20: uint16(37760), + 21: uint16(37761), + 22: uint16(37762), + 23: uint16(37763), + 24: uint16(37764), + 25: uint16(37765), + 26: uint16(37766), + 27: uint16(37767), + 28: uint16(37768), + 29: uint16(37769), + 30: uint16(37770), + 31: uint16(37771), + 32: uint16(37772), + 33: uint16(37773), + 34: uint16(37774), + 35: uint16(37776), + 36: uint16(37777), + 37: uint16(37778), + 38: uint16(37779), + 39: uint16(37780), + 40: uint16(37781), + 41: uint16(37782), + 42: uint16(37783), + 43: uint16(37784), + 44: uint16(37785), + 45: uint16(37786), + 46: uint16(37787), + 47: uint16(37788), + 48: uint16(37789), + 49: uint16(37790), + 50: uint16(37791), + 51: uint16(37792), + 52: uint16(37793), + 53: uint16(37794), + 54: uint16(37795), + 55: uint16(37796), + 56: uint16(37797), + 57: uint16(37798), + 58: uint16(37799), + 59: uint16(37800), + 60: uint16(37801), + 61: uint16(37802), + 62: uint16(37803), + 63: uint16(37804), + 64: uint16(37805), + 65: uint16(37806), + 66: uint16(37807), + 67: uint16(37808), + 68: uint16(37809), + 69: uint16(37810), + 70: uint16(37811), + 71: uint16(37812), + 72: uint16(37813), + 73: uint16(37814), + 74: uint16(37815), + 75: uint16(37816), + 76: uint16(37817), + 77: uint16(37818), + 78: uint16(37819), + 79: uint16(37820), + 80: uint16(37821), + 81: uint16(37822), + 82: uint16(37823), + 83: uint16(37824), + 84: uint16(37825), + 85: uint16(37826), + 86: uint16(37827), + 87: uint16(37828), + 88: uint16(37829), + 89: uint16(37830), + 90: uint16(37831), + 91: uint16(37832), + 92: uint16(37833), + 93: uint16(37835), + 94: uint16(37836), + 95: uint16(37837), + 96: uint16(22935), + 97: uint16(22986), + 98: uint16(22955), + 99: uint16(22942), + 100: uint16(22948), + 101: uint16(22994), + 102: uint16(22962), + 103: uint16(22959), + 104: uint16(22999), + 105: uint16(22974), + 106: uint16(23045), + 107: uint16(23046), + 108: uint16(23005), + 109: uint16(23048), + 110: uint16(23011), + 111: uint16(23000), + 112: uint16(23033), + 113: uint16(23052), + 114: uint16(23049), + 115: uint16(23090), + 116: uint16(23092), + 117: uint16(23057), + 118: uint16(23075), + 119: uint16(23059), + 120: uint16(23104), + 121: uint16(23143), + 122: uint16(23114), + 123: uint16(23125), + 124: uint16(23100), + 125: uint16(23138), + 126: uint16(23157), + 127: uint16(33004), + 128: uint16(23210), + 129: uint16(23195), + 130: uint16(23159), + 131: uint16(23162), + 132: uint16(23230), + 133: uint16(23275), + 134: uint16(23218), + 135: uint16(23250), + 136: uint16(23252), + 137: uint16(23224), + 138: uint16(23264), + 139: uint16(23267), + 140: uint16(23281), + 141: uint16(23254), + 142: uint16(23270), + 143: uint16(23256), + 144: uint16(23260), + 145: uint16(23305), + 146: uint16(23319), + 147: uint16(23318), + 148: uint16(23346), + 149: uint16(23351), + 150: uint16(23360), + 151: uint16(23573), + 152: uint16(23580), + 153: uint16(23386), + 154: uint16(23397), + 155: uint16(23411), + 156: uint16(23377), + 157: uint16(23379), + 158: uint16(23394), + 159: uint16(39541), + 160: uint16(39543), + 161: uint16(39544), + 162: uint16(39546), + 163: uint16(39551), + 164: uint16(39549), + 165: uint16(39552), + 166: uint16(39553), + 167: uint16(39557), + 168: uint16(39560), + 169: uint16(39562), + 170: uint16(39568), + 171: uint16(39570), + 172: uint16(39571), + 173: uint16(39574), + 174: uint16(39576), + 175: uint16(39579), + 176: uint16(39580), + 177: uint16(39581), + 178: uint16(39583), + 179: uint16(39584), + 180: uint16(39586), + 181: uint16(39587), + 182: uint16(39589), + 183: uint16(39591), + 184: uint16(32415), + 185: uint16(32417), + 186: uint16(32419), + 187: uint16(32421), + 188: uint16(32424), + 189: uint16(32425), + }, + 102: { + 0: uint16(37838), + 1: uint16(37839), + 2: uint16(37840), + 3: uint16(37841), + 4: uint16(37842), + 5: uint16(37843), + 6: uint16(37844), + 7: uint16(37845), + 8: uint16(37847), + 9: uint16(37848), + 10: uint16(37849), + 11: uint16(37850), + 12: uint16(37851), + 13: uint16(37852), + 14: uint16(37853), + 15: uint16(37854), + 16: uint16(37855), + 17: uint16(37856), + 18: uint16(37857), + 19: uint16(37858), + 20: uint16(37859), + 21: uint16(37860), + 22: uint16(37861), + 23: uint16(37862), + 24: uint16(37863), + 25: uint16(37864), + 26: uint16(37865), + 27: uint16(37866), + 28: uint16(37867), + 29: uint16(37868), + 30: uint16(37869), + 31: uint16(37870), + 32: uint16(37871), + 33: uint16(37872), + 34: uint16(37873), + 35: uint16(37874), + 36: uint16(37875), + 37: uint16(37876), + 38: uint16(37877), + 39: uint16(37878), + 40: uint16(37879), + 41: uint16(37880), + 42: uint16(37881), + 43: uint16(37882), + 44: uint16(37883), + 45: uint16(37884), + 46: uint16(37885), + 47: uint16(37886), + 48: uint16(37887), + 49: uint16(37888), + 50: uint16(37889), + 51: uint16(37890), + 52: uint16(37891), + 53: uint16(37892), + 54: uint16(37893), + 55: uint16(37894), + 56: uint16(37895), + 57: uint16(37896), + 58: uint16(37897), + 59: uint16(37898), + 60: uint16(37899), + 61: uint16(37900), + 62: uint16(37901), + 63: uint16(37902), + 64: uint16(37903), + 65: uint16(37904), + 66: uint16(37905), + 67: uint16(37906), + 68: uint16(37907), + 69: uint16(37908), + 70: uint16(37909), + 71: uint16(37910), + 72: uint16(37911), + 73: uint16(37912), + 74: uint16(37913), + 75: uint16(37914), + 76: uint16(37915), + 77: uint16(37916), + 78: uint16(37917), + 79: uint16(37918), + 80: uint16(37919), + 81: uint16(37920), + 82: uint16(37921), + 83: uint16(37922), + 84: uint16(37923), + 85: uint16(37924), + 86: uint16(37925), + 87: uint16(37926), + 88: uint16(37927), + 89: uint16(37928), + 90: uint16(37929), + 91: uint16(37930), + 92: uint16(37931), + 93: uint16(37932), + 94: uint16(37933), + 95: uint16(37934), + 96: uint16(32429), + 97: uint16(32432), + 98: uint16(32446), + 99: uint16(32448), + 100: uint16(32449), + 101: uint16(32450), + 102: uint16(32457), + 103: uint16(32459), + 104: uint16(32460), + 105: uint16(32464), + 106: uint16(32468), + 107: uint16(32471), + 108: uint16(32475), + 109: uint16(32480), + 110: uint16(32481), + 111: uint16(32488), + 112: uint16(32491), + 113: uint16(32494), + 114: uint16(32495), + 115: uint16(32497), + 116: uint16(32498), + 117: uint16(32525), + 118: uint16(32502), + 119: uint16(32506), + 120: uint16(32507), + 121: uint16(32510), + 122: uint16(32513), + 123: uint16(32514), + 124: uint16(32515), + 125: uint16(32519), + 126: uint16(32520), + 127: uint16(32523), + 128: uint16(32524), + 129: uint16(32527), + 130: uint16(32529), + 131: uint16(32530), + 132: uint16(32535), + 133: uint16(32537), + 134: uint16(32540), + 135: uint16(32539), + 136: uint16(32543), + 137: uint16(32545), + 138: uint16(32546), + 139: uint16(32547), + 140: uint16(32548), + 141: uint16(32549), + 142: uint16(32550), + 143: uint16(32551), + 144: uint16(32554), + 145: uint16(32555), + 146: uint16(32556), + 147: uint16(32557), + 148: uint16(32559), + 149: uint16(32560), + 150: uint16(32561), + 151: uint16(32562), + 152: uint16(32563), + 153: uint16(32565), + 154: uint16(24186), + 155: uint16(30079), + 156: uint16(24027), + 157: uint16(30014), + 158: uint16(37013), + 159: uint16(29582), + 160: uint16(29585), + 161: uint16(29614), + 162: uint16(29602), + 163: uint16(29599), + 164: uint16(29647), + 165: uint16(29634), + 166: uint16(29649), + 167: uint16(29623), + 168: uint16(29619), + 169: uint16(29632), + 170: uint16(29641), + 171: uint16(29640), + 172: uint16(29669), + 173: uint16(29657), + 174: uint16(39036), + 175: uint16(29706), + 176: uint16(29673), + 177: uint16(29671), + 178: uint16(29662), + 179: uint16(29626), + 180: uint16(29682), + 181: uint16(29711), + 182: uint16(29738), + 183: uint16(29787), + 184: uint16(29734), + 185: uint16(29733), + 186: uint16(29736), + 187: uint16(29744), + 188: uint16(29742), + 189: uint16(29740), + }, + 103: { + 0: uint16(37935), + 1: uint16(37936), + 2: uint16(37937), + 3: uint16(37938), + 4: uint16(37939), + 5: uint16(37940), + 6: uint16(37941), + 7: uint16(37942), + 8: uint16(37943), + 9: uint16(37944), + 10: uint16(37945), + 11: uint16(37946), + 12: uint16(37947), + 13: uint16(37948), + 14: uint16(37949), + 15: uint16(37951), + 16: uint16(37952), + 17: uint16(37953), + 18: uint16(37954), + 19: uint16(37955), + 20: uint16(37956), + 21: uint16(37957), + 22: uint16(37958), + 23: uint16(37959), + 24: uint16(37960), + 25: uint16(37961), + 26: uint16(37962), + 27: uint16(37963), + 28: uint16(37964), + 29: uint16(37965), + 30: uint16(37966), + 31: uint16(37967), + 32: uint16(37968), + 33: uint16(37969), + 34: uint16(37970), + 35: uint16(37971), + 36: uint16(37972), + 37: uint16(37973), + 38: uint16(37974), + 39: uint16(37975), + 40: uint16(37976), + 41: uint16(37977), + 42: uint16(37978), + 43: uint16(37979), + 44: uint16(37980), + 45: uint16(37981), + 46: uint16(37982), + 47: uint16(37983), + 48: uint16(37984), + 49: uint16(37985), + 50: uint16(37986), + 51: uint16(37987), + 52: uint16(37988), + 53: uint16(37989), + 54: uint16(37990), + 55: uint16(37991), + 56: uint16(37992), + 57: uint16(37993), + 58: uint16(37994), + 59: uint16(37996), + 60: uint16(37997), + 61: uint16(37998), + 62: uint16(37999), + 63: uint16(38000), + 64: uint16(38001), + 65: uint16(38002), + 66: uint16(38003), + 67: uint16(38004), + 68: uint16(38005), + 69: uint16(38006), + 70: uint16(38007), + 71: uint16(38008), + 72: uint16(38009), + 73: uint16(38010), + 74: uint16(38011), + 75: uint16(38012), + 76: uint16(38013), + 77: uint16(38014), + 78: uint16(38015), + 79: uint16(38016), + 80: uint16(38017), + 81: uint16(38018), + 82: uint16(38019), + 83: uint16(38020), + 84: uint16(38033), + 85: uint16(38038), + 86: uint16(38040), + 87: uint16(38087), + 88: uint16(38095), + 89: uint16(38099), + 90: uint16(38100), + 91: uint16(38106), + 92: uint16(38118), + 93: uint16(38139), + 94: uint16(38172), + 95: uint16(38176), + 96: uint16(29723), + 97: uint16(29722), + 98: uint16(29761), + 99: uint16(29788), + 100: uint16(29783), + 101: uint16(29781), + 102: uint16(29785), + 103: uint16(29815), + 104: uint16(29805), + 105: uint16(29822), + 106: uint16(29852), + 107: uint16(29838), + 108: uint16(29824), + 109: uint16(29825), + 110: uint16(29831), + 111: uint16(29835), + 112: uint16(29854), + 113: uint16(29864), + 114: uint16(29865), + 115: uint16(29840), + 116: uint16(29863), + 117: uint16(29906), + 118: uint16(29882), + 119: uint16(38890), + 120: uint16(38891), + 121: uint16(38892), + 122: uint16(26444), + 123: uint16(26451), + 124: uint16(26462), + 125: uint16(26440), + 126: uint16(26473), + 127: uint16(26533), + 128: uint16(26503), + 129: uint16(26474), + 130: uint16(26483), + 131: uint16(26520), + 132: uint16(26535), + 133: uint16(26485), + 134: uint16(26536), + 135: uint16(26526), + 136: uint16(26541), + 137: uint16(26507), + 138: uint16(26487), + 139: uint16(26492), + 140: uint16(26608), + 141: uint16(26633), + 142: uint16(26584), + 143: uint16(26634), + 144: uint16(26601), + 145: uint16(26544), + 146: uint16(26636), + 147: uint16(26585), + 148: uint16(26549), + 149: uint16(26586), + 150: uint16(26547), + 151: uint16(26589), + 152: uint16(26624), + 153: uint16(26563), + 154: uint16(26552), + 155: uint16(26594), + 156: uint16(26638), + 157: uint16(26561), + 158: uint16(26621), + 159: uint16(26674), + 160: uint16(26675), + 161: uint16(26720), + 162: uint16(26721), + 163: uint16(26702), + 164: uint16(26722), + 165: uint16(26692), + 166: uint16(26724), + 167: uint16(26755), + 168: uint16(26653), + 169: uint16(26709), + 170: uint16(26726), + 171: uint16(26689), + 172: uint16(26727), + 173: uint16(26688), + 174: uint16(26686), + 175: uint16(26698), + 176: uint16(26697), + 177: uint16(26665), + 178: uint16(26805), + 179: uint16(26767), + 180: uint16(26740), + 181: uint16(26743), + 182: uint16(26771), + 183: uint16(26731), + 184: uint16(26818), + 185: uint16(26990), + 186: uint16(26876), + 187: uint16(26911), + 188: uint16(26912), + 189: uint16(26873), + }, + 104: { + 0: uint16(38183), + 1: uint16(38195), + 2: uint16(38205), + 3: uint16(38211), + 4: uint16(38216), + 5: uint16(38219), + 6: uint16(38229), + 7: uint16(38234), + 8: uint16(38240), + 9: uint16(38254), + 10: uint16(38260), + 11: uint16(38261), + 12: uint16(38263), + 13: uint16(38264), + 14: uint16(38265), + 15: uint16(38266), + 16: uint16(38267), + 17: uint16(38268), + 18: uint16(38269), + 19: uint16(38270), + 20: uint16(38272), + 21: uint16(38273), + 22: uint16(38274), + 23: uint16(38275), + 24: uint16(38276), + 25: uint16(38277), + 26: uint16(38278), + 27: uint16(38279), + 28: uint16(38280), + 29: uint16(38281), + 30: uint16(38282), + 31: uint16(38283), + 32: uint16(38284), + 33: uint16(38285), + 34: uint16(38286), + 35: uint16(38287), + 36: uint16(38288), + 37: uint16(38289), + 38: uint16(38290), + 39: uint16(38291), + 40: uint16(38292), + 41: uint16(38293), + 42: uint16(38294), + 43: uint16(38295), + 44: uint16(38296), + 45: uint16(38297), + 46: uint16(38298), + 47: uint16(38299), + 48: uint16(38300), + 49: uint16(38301), + 50: uint16(38302), + 51: uint16(38303), + 52: uint16(38304), + 53: uint16(38305), + 54: uint16(38306), + 55: uint16(38307), + 56: uint16(38308), + 57: uint16(38309), + 58: uint16(38310), + 59: uint16(38311), + 60: uint16(38312), + 61: uint16(38313), + 62: uint16(38314), + 63: uint16(38315), + 64: uint16(38316), + 65: uint16(38317), + 66: uint16(38318), + 67: uint16(38319), + 68: uint16(38320), + 69: uint16(38321), + 70: uint16(38322), + 71: uint16(38323), + 72: uint16(38324), + 73: uint16(38325), + 74: uint16(38326), + 75: uint16(38327), + 76: uint16(38328), + 77: uint16(38329), + 78: uint16(38330), + 79: uint16(38331), + 80: uint16(38332), + 81: uint16(38333), + 82: uint16(38334), + 83: uint16(38335), + 84: uint16(38336), + 85: uint16(38337), + 86: uint16(38338), + 87: uint16(38339), + 88: uint16(38340), + 89: uint16(38341), + 90: uint16(38342), + 91: uint16(38343), + 92: uint16(38344), + 93: uint16(38345), + 94: uint16(38346), + 95: uint16(38347), + 96: uint16(26916), + 97: uint16(26864), + 98: uint16(26891), + 99: uint16(26881), + 100: uint16(26967), + 101: uint16(26851), + 102: uint16(26896), + 103: uint16(26993), + 104: uint16(26937), + 105: uint16(26976), + 106: uint16(26946), + 107: uint16(26973), + 108: uint16(27012), + 109: uint16(26987), + 110: uint16(27008), + 111: uint16(27032), + 112: uint16(27000), + 113: uint16(26932), + 114: uint16(27084), + 115: uint16(27015), + 116: uint16(27016), + 117: uint16(27086), + 118: uint16(27017), + 119: uint16(26982), + 120: uint16(26979), + 121: uint16(27001), + 122: uint16(27035), + 123: uint16(27047), + 124: uint16(27067), + 125: uint16(27051), + 126: uint16(27053), + 127: uint16(27092), + 128: uint16(27057), + 129: uint16(27073), + 130: uint16(27082), + 131: uint16(27103), + 132: uint16(27029), + 133: uint16(27104), + 134: uint16(27021), + 135: uint16(27135), + 136: uint16(27183), + 137: uint16(27117), + 138: uint16(27159), + 139: uint16(27160), + 140: uint16(27237), + 141: uint16(27122), + 142: uint16(27204), + 143: uint16(27198), + 144: uint16(27296), + 145: uint16(27216), + 146: uint16(27227), + 147: uint16(27189), + 148: uint16(27278), + 149: uint16(27257), + 150: uint16(27197), + 151: uint16(27176), + 152: uint16(27224), + 153: uint16(27260), + 154: uint16(27281), + 155: uint16(27280), + 156: uint16(27305), + 157: uint16(27287), + 158: uint16(27307), + 159: uint16(29495), + 160: uint16(29522), + 161: uint16(27521), + 162: uint16(27522), + 163: uint16(27527), + 164: uint16(27524), + 165: uint16(27538), + 166: uint16(27539), + 167: uint16(27533), + 168: uint16(27546), + 169: uint16(27547), + 170: uint16(27553), + 171: uint16(27562), + 172: uint16(36715), + 173: uint16(36717), + 174: uint16(36721), + 175: uint16(36722), + 176: uint16(36723), + 177: uint16(36725), + 178: uint16(36726), + 179: uint16(36728), + 180: uint16(36727), + 181: uint16(36729), + 182: uint16(36730), + 183: uint16(36732), + 184: uint16(36734), + 185: uint16(36737), + 186: uint16(36738), + 187: uint16(36740), + 188: uint16(36743), + 189: uint16(36747), + }, + 105: { + 0: uint16(38348), + 1: uint16(38349), + 2: uint16(38350), + 3: uint16(38351), + 4: uint16(38352), + 5: uint16(38353), + 6: uint16(38354), + 7: uint16(38355), + 8: uint16(38356), + 9: uint16(38357), + 10: uint16(38358), + 11: uint16(38359), + 12: uint16(38360), + 13: uint16(38361), + 14: uint16(38362), + 15: uint16(38363), + 16: uint16(38364), + 17: uint16(38365), + 18: uint16(38366), + 19: uint16(38367), + 20: uint16(38368), + 21: uint16(38369), + 22: uint16(38370), + 23: uint16(38371), + 24: uint16(38372), + 25: uint16(38373), + 26: uint16(38374), + 27: uint16(38375), + 28: uint16(38380), + 29: uint16(38399), + 30: uint16(38407), + 31: uint16(38419), + 32: uint16(38424), + 33: uint16(38427), + 34: uint16(38430), + 35: uint16(38432), + 36: uint16(38435), + 37: uint16(38436), + 38: uint16(38437), + 39: uint16(38438), + 40: uint16(38439), + 41: uint16(38440), + 42: uint16(38441), + 43: uint16(38443), + 44: uint16(38444), + 45: uint16(38445), + 46: uint16(38447), + 47: uint16(38448), + 48: uint16(38455), + 49: uint16(38456), + 50: uint16(38457), + 51: uint16(38458), + 52: uint16(38462), + 53: uint16(38465), + 54: uint16(38467), + 55: uint16(38474), + 56: uint16(38478), + 57: uint16(38479), + 58: uint16(38481), + 59: uint16(38482), + 60: uint16(38483), + 61: uint16(38486), + 62: uint16(38487), + 63: uint16(38488), + 64: uint16(38489), + 65: uint16(38490), + 66: uint16(38492), + 67: uint16(38493), + 68: uint16(38494), + 69: uint16(38496), + 70: uint16(38499), + 71: uint16(38501), + 72: uint16(38502), + 73: uint16(38507), + 74: uint16(38509), + 75: uint16(38510), + 76: uint16(38511), + 77: uint16(38512), + 78: uint16(38513), + 79: uint16(38515), + 80: uint16(38520), + 81: uint16(38521), + 82: uint16(38522), + 83: uint16(38523), + 84: uint16(38524), + 85: uint16(38525), + 86: uint16(38526), + 87: uint16(38527), + 88: uint16(38528), + 89: uint16(38529), + 90: uint16(38530), + 91: uint16(38531), + 92: uint16(38532), + 93: uint16(38535), + 94: uint16(38537), + 95: uint16(38538), + 96: uint16(36749), + 97: uint16(36750), + 98: uint16(36751), + 99: uint16(36760), + 100: uint16(36762), + 101: uint16(36558), + 102: uint16(25099), + 103: uint16(25111), + 104: uint16(25115), + 105: uint16(25119), + 106: uint16(25122), + 107: uint16(25121), + 108: uint16(25125), + 109: uint16(25124), + 110: uint16(25132), + 111: uint16(33255), + 112: uint16(29935), + 113: uint16(29940), + 114: uint16(29951), + 115: uint16(29967), + 116: uint16(29969), + 117: uint16(29971), + 118: uint16(25908), + 119: uint16(26094), + 120: uint16(26095), + 121: uint16(26096), + 122: uint16(26122), + 123: uint16(26137), + 124: uint16(26482), + 125: uint16(26115), + 126: uint16(26133), + 127: uint16(26112), + 128: uint16(28805), + 129: uint16(26359), + 130: uint16(26141), + 131: uint16(26164), + 132: uint16(26161), + 133: uint16(26166), + 134: uint16(26165), + 135: uint16(32774), + 136: uint16(26207), + 137: uint16(26196), + 138: uint16(26177), + 139: uint16(26191), + 140: uint16(26198), + 141: uint16(26209), + 142: uint16(26199), + 143: uint16(26231), + 144: uint16(26244), + 145: uint16(26252), + 146: uint16(26279), + 147: uint16(26269), + 148: uint16(26302), + 149: uint16(26331), + 150: uint16(26332), + 151: uint16(26342), + 152: uint16(26345), + 153: uint16(36146), + 154: uint16(36147), + 155: uint16(36150), + 156: uint16(36155), + 157: uint16(36157), + 158: uint16(36160), + 159: uint16(36165), + 160: uint16(36166), + 161: uint16(36168), + 162: uint16(36169), + 163: uint16(36167), + 164: uint16(36173), + 165: uint16(36181), + 166: uint16(36185), + 167: uint16(35271), + 168: uint16(35274), + 169: uint16(35275), + 170: uint16(35276), + 171: uint16(35278), + 172: uint16(35279), + 173: uint16(35280), + 174: uint16(35281), + 175: uint16(29294), + 176: uint16(29343), + 177: uint16(29277), + 178: uint16(29286), + 179: uint16(29295), + 180: uint16(29310), + 181: uint16(29311), + 182: uint16(29316), + 183: uint16(29323), + 184: uint16(29325), + 185: uint16(29327), + 186: uint16(29330), + 187: uint16(25352), + 188: uint16(25394), + 189: uint16(25520), + }, + 106: { + 0: uint16(38540), + 1: uint16(38542), + 2: uint16(38545), + 3: uint16(38546), + 4: uint16(38547), + 5: uint16(38549), + 6: uint16(38550), + 7: uint16(38554), + 8: uint16(38555), + 9: uint16(38557), + 10: uint16(38558), + 11: uint16(38559), + 12: uint16(38560), + 13: uint16(38561), + 14: uint16(38562), + 15: uint16(38563), + 16: uint16(38564), + 17: uint16(38565), + 18: uint16(38566), + 19: uint16(38568), + 20: uint16(38569), + 21: uint16(38570), + 22: uint16(38571), + 23: uint16(38572), + 24: uint16(38573), + 25: uint16(38574), + 26: uint16(38575), + 27: uint16(38577), + 28: uint16(38578), + 29: uint16(38580), + 30: uint16(38581), + 31: uint16(38583), + 32: uint16(38584), + 33: uint16(38586), + 34: uint16(38587), + 35: uint16(38591), + 36: uint16(38594), + 37: uint16(38595), + 38: uint16(38600), + 39: uint16(38602), + 40: uint16(38603), + 41: uint16(38608), + 42: uint16(38609), + 43: uint16(38611), + 44: uint16(38612), + 45: uint16(38614), + 46: uint16(38615), + 47: uint16(38616), + 48: uint16(38617), + 49: uint16(38618), + 50: uint16(38619), + 51: uint16(38620), + 52: uint16(38621), + 53: uint16(38622), + 54: uint16(38623), + 55: uint16(38625), + 56: uint16(38626), + 57: uint16(38627), + 58: uint16(38628), + 59: uint16(38629), + 60: uint16(38630), + 61: uint16(38631), + 62: uint16(38635), + 63: uint16(38636), + 64: uint16(38637), + 65: uint16(38638), + 66: uint16(38640), + 67: uint16(38641), + 68: uint16(38642), + 69: uint16(38644), + 70: uint16(38645), + 71: uint16(38648), + 72: uint16(38650), + 73: uint16(38651), + 74: uint16(38652), + 75: uint16(38653), + 76: uint16(38655), + 77: uint16(38658), + 78: uint16(38659), + 79: uint16(38661), + 80: uint16(38666), + 81: uint16(38667), + 82: uint16(38668), + 83: uint16(38672), + 84: uint16(38673), + 85: uint16(38674), + 86: uint16(38676), + 87: uint16(38677), + 88: uint16(38679), + 89: uint16(38680), + 90: uint16(38681), + 91: uint16(38682), + 92: uint16(38683), + 93: uint16(38685), + 94: uint16(38687), + 95: uint16(38688), + 96: uint16(25663), + 97: uint16(25816), + 98: uint16(32772), + 99: uint16(27626), + 100: uint16(27635), + 101: uint16(27645), + 102: uint16(27637), + 103: uint16(27641), + 104: uint16(27653), + 105: uint16(27655), + 106: uint16(27654), + 107: uint16(27661), + 108: uint16(27669), + 109: uint16(27672), + 110: uint16(27673), + 111: uint16(27674), + 112: uint16(27681), + 113: uint16(27689), + 114: uint16(27684), + 115: uint16(27690), + 116: uint16(27698), + 117: uint16(25909), + 118: uint16(25941), + 119: uint16(25963), + 120: uint16(29261), + 121: uint16(29266), + 122: uint16(29270), + 123: uint16(29232), + 124: uint16(34402), + 125: uint16(21014), + 126: uint16(32927), + 127: uint16(32924), + 128: uint16(32915), + 129: uint16(32956), + 130: uint16(26378), + 131: uint16(32957), + 132: uint16(32945), + 133: uint16(32939), + 134: uint16(32941), + 135: uint16(32948), + 136: uint16(32951), + 137: uint16(32999), + 138: uint16(33000), + 139: uint16(33001), + 140: uint16(33002), + 141: uint16(32987), + 142: uint16(32962), + 143: uint16(32964), + 144: uint16(32985), + 145: uint16(32973), + 146: uint16(32983), + 147: uint16(26384), + 148: uint16(32989), + 149: uint16(33003), + 150: uint16(33009), + 151: uint16(33012), + 152: uint16(33005), + 153: uint16(33037), + 154: uint16(33038), + 155: uint16(33010), + 156: uint16(33020), + 157: uint16(26389), + 158: uint16(33042), + 159: uint16(35930), + 160: uint16(33078), + 161: uint16(33054), + 162: uint16(33068), + 163: uint16(33048), + 164: uint16(33074), + 165: uint16(33096), + 166: uint16(33100), + 167: uint16(33107), + 168: uint16(33140), + 169: uint16(33113), + 170: uint16(33114), + 171: uint16(33137), + 172: uint16(33120), + 173: uint16(33129), + 174: uint16(33148), + 175: uint16(33149), + 176: uint16(33133), + 177: uint16(33127), + 178: uint16(22605), + 179: uint16(23221), + 180: uint16(33160), + 181: uint16(33154), + 182: uint16(33169), + 183: uint16(28373), + 184: uint16(33187), + 185: uint16(33194), + 186: uint16(33228), + 187: uint16(26406), + 188: uint16(33226), + 189: uint16(33211), + }, + 107: { + 0: uint16(38689), + 1: uint16(38690), + 2: uint16(38691), + 3: uint16(38692), + 4: uint16(38693), + 5: uint16(38694), + 6: uint16(38695), + 7: uint16(38696), + 8: uint16(38697), + 9: uint16(38699), + 10: uint16(38700), + 11: uint16(38702), + 12: uint16(38703), + 13: uint16(38705), + 14: uint16(38707), + 15: uint16(38708), + 16: uint16(38709), + 17: uint16(38710), + 18: uint16(38711), + 19: uint16(38714), + 20: uint16(38715), + 21: uint16(38716), + 22: uint16(38717), + 23: uint16(38719), + 24: uint16(38720), + 25: uint16(38721), + 26: uint16(38722), + 27: uint16(38723), + 28: uint16(38724), + 29: uint16(38725), + 30: uint16(38726), + 31: uint16(38727), + 32: uint16(38728), + 33: uint16(38729), + 34: uint16(38730), + 35: uint16(38731), + 36: uint16(38732), + 37: uint16(38733), + 38: uint16(38734), + 39: uint16(38735), + 40: uint16(38736), + 41: uint16(38737), + 42: uint16(38740), + 43: uint16(38741), + 44: uint16(38743), + 45: uint16(38744), + 46: uint16(38746), + 47: uint16(38748), + 48: uint16(38749), + 49: uint16(38751), + 50: uint16(38755), + 51: uint16(38756), + 52: uint16(38758), + 53: uint16(38759), + 54: uint16(38760), + 55: uint16(38762), + 56: uint16(38763), + 57: uint16(38764), + 58: uint16(38765), + 59: uint16(38766), + 60: uint16(38767), + 61: uint16(38768), + 62: uint16(38769), + 63: uint16(38770), + 64: uint16(38773), + 65: uint16(38775), + 66: uint16(38776), + 67: uint16(38777), + 68: uint16(38778), + 69: uint16(38779), + 70: uint16(38781), + 71: uint16(38782), + 72: uint16(38783), + 73: uint16(38784), + 74: uint16(38785), + 75: uint16(38786), + 76: uint16(38787), + 77: uint16(38788), + 78: uint16(38790), + 79: uint16(38791), + 80: uint16(38792), + 81: uint16(38793), + 82: uint16(38794), + 83: uint16(38796), + 84: uint16(38798), + 85: uint16(38799), + 86: uint16(38800), + 87: uint16(38803), + 88: uint16(38805), + 89: uint16(38806), + 90: uint16(38807), + 91: uint16(38809), + 92: uint16(38810), + 93: uint16(38811), + 94: uint16(38812), + 95: uint16(38813), + 96: uint16(33217), + 97: uint16(33190), + 98: uint16(27428), + 99: uint16(27447), + 100: uint16(27449), + 101: uint16(27459), + 102: uint16(27462), + 103: uint16(27481), + 104: uint16(39121), + 105: uint16(39122), + 106: uint16(39123), + 107: uint16(39125), + 108: uint16(39129), + 109: uint16(39130), + 110: uint16(27571), + 111: uint16(24384), + 112: uint16(27586), + 113: uint16(35315), + 114: uint16(26000), + 115: uint16(40785), + 116: uint16(26003), + 117: uint16(26044), + 118: uint16(26054), + 119: uint16(26052), + 120: uint16(26051), + 121: uint16(26060), + 122: uint16(26062), + 123: uint16(26066), + 124: uint16(26070), + 125: uint16(28800), + 126: uint16(28828), + 127: uint16(28822), + 128: uint16(28829), + 129: uint16(28859), + 130: uint16(28864), + 131: uint16(28855), + 132: uint16(28843), + 133: uint16(28849), + 134: uint16(28904), + 135: uint16(28874), + 136: uint16(28944), + 137: uint16(28947), + 138: uint16(28950), + 139: uint16(28975), + 140: uint16(28977), + 141: uint16(29043), + 142: uint16(29020), + 143: uint16(29032), + 144: uint16(28997), + 145: uint16(29042), + 146: uint16(29002), + 147: uint16(29048), + 148: uint16(29050), + 149: uint16(29080), + 150: uint16(29107), + 151: uint16(29109), + 152: uint16(29096), + 153: uint16(29088), + 154: uint16(29152), + 155: uint16(29140), + 156: uint16(29159), + 157: uint16(29177), + 158: uint16(29213), + 159: uint16(29224), + 160: uint16(28780), + 161: uint16(28952), + 162: uint16(29030), + 163: uint16(29113), + 164: uint16(25150), + 165: uint16(25149), + 166: uint16(25155), + 167: uint16(25160), + 168: uint16(25161), + 169: uint16(31035), + 170: uint16(31040), + 171: uint16(31046), + 172: uint16(31049), + 173: uint16(31067), + 174: uint16(31068), + 175: uint16(31059), + 176: uint16(31066), + 177: uint16(31074), + 178: uint16(31063), + 179: uint16(31072), + 180: uint16(31087), + 181: uint16(31079), + 182: uint16(31098), + 183: uint16(31109), + 184: uint16(31114), + 185: uint16(31130), + 186: uint16(31143), + 187: uint16(31155), + 188: uint16(24529), + 189: uint16(24528), + }, + 108: { + 0: uint16(38814), + 1: uint16(38815), + 2: uint16(38817), + 3: uint16(38818), + 4: uint16(38820), + 5: uint16(38821), + 6: uint16(38822), + 7: uint16(38823), + 8: uint16(38824), + 9: uint16(38825), + 10: uint16(38826), + 11: uint16(38828), + 12: uint16(38830), + 13: uint16(38832), + 14: uint16(38833), + 15: uint16(38835), + 16: uint16(38837), + 17: uint16(38838), + 18: uint16(38839), + 19: uint16(38840), + 20: uint16(38841), + 21: uint16(38842), + 22: uint16(38843), + 23: uint16(38844), + 24: uint16(38845), + 25: uint16(38846), + 26: uint16(38847), + 27: uint16(38848), + 28: uint16(38849), + 29: uint16(38850), + 30: uint16(38851), + 31: uint16(38852), + 32: uint16(38853), + 33: uint16(38854), + 34: uint16(38855), + 35: uint16(38856), + 36: uint16(38857), + 37: uint16(38858), + 38: uint16(38859), + 39: uint16(38860), + 40: uint16(38861), + 41: uint16(38862), + 42: uint16(38863), + 43: uint16(38864), + 44: uint16(38865), + 45: uint16(38866), + 46: uint16(38867), + 47: uint16(38868), + 48: uint16(38869), + 49: uint16(38870), + 50: uint16(38871), + 51: uint16(38872), + 52: uint16(38873), + 53: uint16(38874), + 54: uint16(38875), + 55: uint16(38876), + 56: uint16(38877), + 57: uint16(38878), + 58: uint16(38879), + 59: uint16(38880), + 60: uint16(38881), + 61: uint16(38882), + 62: uint16(38883), + 63: uint16(38884), + 64: uint16(38885), + 65: uint16(38888), + 66: uint16(38894), + 67: uint16(38895), + 68: uint16(38896), + 69: uint16(38897), + 70: uint16(38898), + 71: uint16(38900), + 72: uint16(38903), + 73: uint16(38904), + 74: uint16(38905), + 75: uint16(38906), + 76: uint16(38907), + 77: uint16(38908), + 78: uint16(38909), + 79: uint16(38910), + 80: uint16(38911), + 81: uint16(38912), + 82: uint16(38913), + 83: uint16(38914), + 84: uint16(38915), + 85: uint16(38916), + 86: uint16(38917), + 87: uint16(38918), + 88: uint16(38919), + 89: uint16(38920), + 90: uint16(38921), + 91: uint16(38922), + 92: uint16(38923), + 93: uint16(38924), + 94: uint16(38925), + 95: uint16(38926), + 96: uint16(24636), + 97: uint16(24669), + 98: uint16(24666), + 99: uint16(24679), + 100: uint16(24641), + 101: uint16(24665), + 102: uint16(24675), + 103: uint16(24747), + 104: uint16(24838), + 105: uint16(24845), + 106: uint16(24925), + 107: uint16(25001), + 108: uint16(24989), + 109: uint16(25035), + 110: uint16(25041), + 111: uint16(25094), + 112: uint16(32896), + 113: uint16(32895), + 114: uint16(27795), + 115: uint16(27894), + 116: uint16(28156), + 117: uint16(30710), + 118: uint16(30712), + 119: uint16(30720), + 120: uint16(30729), + 121: uint16(30743), + 122: uint16(30744), + 123: uint16(30737), + 124: uint16(26027), + 125: uint16(30765), + 126: uint16(30748), + 127: uint16(30749), + 128: uint16(30777), + 129: uint16(30778), + 130: uint16(30779), + 131: uint16(30751), + 132: uint16(30780), + 133: uint16(30757), + 134: uint16(30764), + 135: uint16(30755), + 136: uint16(30761), + 137: uint16(30798), + 138: uint16(30829), + 139: uint16(30806), + 140: uint16(30807), + 141: uint16(30758), + 142: uint16(30800), + 143: uint16(30791), + 144: uint16(30796), + 145: uint16(30826), + 146: uint16(30875), + 147: uint16(30867), + 148: uint16(30874), + 149: uint16(30855), + 150: uint16(30876), + 151: uint16(30881), + 152: uint16(30883), + 153: uint16(30898), + 154: uint16(30905), + 155: uint16(30885), + 156: uint16(30932), + 157: uint16(30937), + 158: uint16(30921), + 159: uint16(30956), + 160: uint16(30962), + 161: uint16(30981), + 162: uint16(30964), + 163: uint16(30995), + 164: uint16(31012), + 165: uint16(31006), + 166: uint16(31028), + 167: uint16(40859), + 168: uint16(40697), + 169: uint16(40699), + 170: uint16(40700), + 171: uint16(30449), + 172: uint16(30468), + 173: uint16(30477), + 174: uint16(30457), + 175: uint16(30471), + 176: uint16(30472), + 177: uint16(30490), + 178: uint16(30498), + 179: uint16(30489), + 180: uint16(30509), + 181: uint16(30502), + 182: uint16(30517), + 183: uint16(30520), + 184: uint16(30544), + 185: uint16(30545), + 186: uint16(30535), + 187: uint16(30531), + 188: uint16(30554), + 189: uint16(30568), + }, + 109: { + 0: uint16(38927), + 1: uint16(38928), + 2: uint16(38929), + 3: uint16(38930), + 4: uint16(38931), + 5: uint16(38932), + 6: uint16(38933), + 7: uint16(38934), + 8: uint16(38935), + 9: uint16(38936), + 10: uint16(38937), + 11: uint16(38938), + 12: uint16(38939), + 13: uint16(38940), + 14: uint16(38941), + 15: uint16(38942), + 16: uint16(38943), + 17: uint16(38944), + 18: uint16(38945), + 19: uint16(38946), + 20: uint16(38947), + 21: uint16(38948), + 22: uint16(38949), + 23: uint16(38950), + 24: uint16(38951), + 25: uint16(38952), + 26: uint16(38953), + 27: uint16(38954), + 28: uint16(38955), + 29: uint16(38956), + 30: uint16(38957), + 31: uint16(38958), + 32: uint16(38959), + 33: uint16(38960), + 34: uint16(38961), + 35: uint16(38962), + 36: uint16(38963), + 37: uint16(38964), + 38: uint16(38965), + 39: uint16(38966), + 40: uint16(38967), + 41: uint16(38968), + 42: uint16(38969), + 43: uint16(38970), + 44: uint16(38971), + 45: uint16(38972), + 46: uint16(38973), + 47: uint16(38974), + 48: uint16(38975), + 49: uint16(38976), + 50: uint16(38977), + 51: uint16(38978), + 52: uint16(38979), + 53: uint16(38980), + 54: uint16(38981), + 55: uint16(38982), + 56: uint16(38983), + 57: uint16(38984), + 58: uint16(38985), + 59: uint16(38986), + 60: uint16(38987), + 61: uint16(38988), + 62: uint16(38989), + 63: uint16(38990), + 64: uint16(38991), + 65: uint16(38992), + 66: uint16(38993), + 67: uint16(38994), + 68: uint16(38995), + 69: uint16(38996), + 70: uint16(38997), + 71: uint16(38998), + 72: uint16(38999), + 73: uint16(39000), + 74: uint16(39001), + 75: uint16(39002), + 76: uint16(39003), + 77: uint16(39004), + 78: uint16(39005), + 79: uint16(39006), + 80: uint16(39007), + 81: uint16(39008), + 82: uint16(39009), + 83: uint16(39010), + 84: uint16(39011), + 85: uint16(39012), + 86: uint16(39013), + 87: uint16(39014), + 88: uint16(39015), + 89: uint16(39016), + 90: uint16(39017), + 91: uint16(39018), + 92: uint16(39019), + 93: uint16(39020), + 94: uint16(39021), + 95: uint16(39022), + 96: uint16(30562), + 97: uint16(30565), + 98: uint16(30591), + 99: uint16(30605), + 100: uint16(30589), + 101: uint16(30592), + 102: uint16(30604), + 103: uint16(30609), + 104: uint16(30623), + 105: uint16(30624), + 106: uint16(30640), + 107: uint16(30645), + 108: uint16(30653), + 109: uint16(30010), + 110: uint16(30016), + 111: uint16(30030), + 112: uint16(30027), + 113: uint16(30024), + 114: uint16(30043), + 115: uint16(30066), + 116: uint16(30073), + 117: uint16(30083), + 118: uint16(32600), + 119: uint16(32609), + 120: uint16(32607), + 121: uint16(35400), + 122: uint16(32616), + 123: uint16(32628), + 124: uint16(32625), + 125: uint16(32633), + 126: uint16(32641), + 127: uint16(32638), + 128: uint16(30413), + 129: uint16(30437), + 130: uint16(34866), + 131: uint16(38021), + 132: uint16(38022), + 133: uint16(38023), + 134: uint16(38027), + 135: uint16(38026), + 136: uint16(38028), + 137: uint16(38029), + 138: uint16(38031), + 139: uint16(38032), + 140: uint16(38036), + 141: uint16(38039), + 142: uint16(38037), + 143: uint16(38042), + 144: uint16(38043), + 145: uint16(38044), + 146: uint16(38051), + 147: uint16(38052), + 148: uint16(38059), + 149: uint16(38058), + 150: uint16(38061), + 151: uint16(38060), + 152: uint16(38063), + 153: uint16(38064), + 154: uint16(38066), + 155: uint16(38068), + 156: uint16(38070), + 157: uint16(38071), + 158: uint16(38072), + 159: uint16(38073), + 160: uint16(38074), + 161: uint16(38076), + 162: uint16(38077), + 163: uint16(38079), + 164: uint16(38084), + 165: uint16(38088), + 166: uint16(38089), + 167: uint16(38090), + 168: uint16(38091), + 169: uint16(38092), + 170: uint16(38093), + 171: uint16(38094), + 172: uint16(38096), + 173: uint16(38097), + 174: uint16(38098), + 175: uint16(38101), + 176: uint16(38102), + 177: uint16(38103), + 178: uint16(38105), + 179: uint16(38104), + 180: uint16(38107), + 181: uint16(38110), + 182: uint16(38111), + 183: uint16(38112), + 184: uint16(38114), + 185: uint16(38116), + 186: uint16(38117), + 187: uint16(38119), + 188: uint16(38120), + 189: uint16(38122), + }, + 110: { + 0: uint16(39023), + 1: uint16(39024), + 2: uint16(39025), + 3: uint16(39026), + 4: uint16(39027), + 5: uint16(39028), + 6: uint16(39051), + 7: uint16(39054), + 8: uint16(39058), + 9: uint16(39061), + 10: uint16(39065), + 11: uint16(39075), + 12: uint16(39080), + 13: uint16(39081), + 14: uint16(39082), + 15: uint16(39083), + 16: uint16(39084), + 17: uint16(39085), + 18: uint16(39086), + 19: uint16(39087), + 20: uint16(39088), + 21: uint16(39089), + 22: uint16(39090), + 23: uint16(39091), + 24: uint16(39092), + 25: uint16(39093), + 26: uint16(39094), + 27: uint16(39095), + 28: uint16(39096), + 29: uint16(39097), + 30: uint16(39098), + 31: uint16(39099), + 32: uint16(39100), + 33: uint16(39101), + 34: uint16(39102), + 35: uint16(39103), + 36: uint16(39104), + 37: uint16(39105), + 38: uint16(39106), + 39: uint16(39107), + 40: uint16(39108), + 41: uint16(39109), + 42: uint16(39110), + 43: uint16(39111), + 44: uint16(39112), + 45: uint16(39113), + 46: uint16(39114), + 47: uint16(39115), + 48: uint16(39116), + 49: uint16(39117), + 50: uint16(39119), + 51: uint16(39120), + 52: uint16(39124), + 53: uint16(39126), + 54: uint16(39127), + 55: uint16(39131), + 56: uint16(39132), + 57: uint16(39133), + 58: uint16(39136), + 59: uint16(39137), + 60: uint16(39138), + 61: uint16(39139), + 62: uint16(39140), + 63: uint16(39141), + 64: uint16(39142), + 65: uint16(39145), + 66: uint16(39146), + 67: uint16(39147), + 68: uint16(39148), + 69: uint16(39149), + 70: uint16(39150), + 71: uint16(39151), + 72: uint16(39152), + 73: uint16(39153), + 74: uint16(39154), + 75: uint16(39155), + 76: uint16(39156), + 77: uint16(39157), + 78: uint16(39158), + 79: uint16(39159), + 80: uint16(39160), + 81: uint16(39161), + 82: uint16(39162), + 83: uint16(39163), + 84: uint16(39164), + 85: uint16(39165), + 86: uint16(39166), + 87: uint16(39167), + 88: uint16(39168), + 89: uint16(39169), + 90: uint16(39170), + 91: uint16(39171), + 92: uint16(39172), + 93: uint16(39173), + 94: uint16(39174), + 95: uint16(39175), + 96: uint16(38121), + 97: uint16(38123), + 98: uint16(38126), + 99: uint16(38127), + 100: uint16(38131), + 101: uint16(38132), + 102: uint16(38133), + 103: uint16(38135), + 104: uint16(38137), + 105: uint16(38140), + 106: uint16(38141), + 107: uint16(38143), + 108: uint16(38147), + 109: uint16(38146), + 110: uint16(38150), + 111: uint16(38151), + 112: uint16(38153), + 113: uint16(38154), + 114: uint16(38157), + 115: uint16(38158), + 116: uint16(38159), + 117: uint16(38162), + 118: uint16(38163), + 119: uint16(38164), + 120: uint16(38165), + 121: uint16(38166), + 122: uint16(38168), + 123: uint16(38171), + 124: uint16(38173), + 125: uint16(38174), + 126: uint16(38175), + 127: uint16(38178), + 128: uint16(38186), + 129: uint16(38187), + 130: uint16(38185), + 131: uint16(38188), + 132: uint16(38193), + 133: uint16(38194), + 134: uint16(38196), + 135: uint16(38198), + 136: uint16(38199), + 137: uint16(38200), + 138: uint16(38204), + 139: uint16(38206), + 140: uint16(38207), + 141: uint16(38210), + 142: uint16(38197), + 143: uint16(38212), + 144: uint16(38213), + 145: uint16(38214), + 146: uint16(38217), + 147: uint16(38220), + 148: uint16(38222), + 149: uint16(38223), + 150: uint16(38226), + 151: uint16(38227), + 152: uint16(38228), + 153: uint16(38230), + 154: uint16(38231), + 155: uint16(38232), + 156: uint16(38233), + 157: uint16(38235), + 158: uint16(38238), + 159: uint16(38239), + 160: uint16(38237), + 161: uint16(38241), + 162: uint16(38242), + 163: uint16(38244), + 164: uint16(38245), + 165: uint16(38246), + 166: uint16(38247), + 167: uint16(38248), + 168: uint16(38249), + 169: uint16(38250), + 170: uint16(38251), + 171: uint16(38252), + 172: uint16(38255), + 173: uint16(38257), + 174: uint16(38258), + 175: uint16(38259), + 176: uint16(38202), + 177: uint16(30695), + 178: uint16(30700), + 179: uint16(38601), + 180: uint16(31189), + 181: uint16(31213), + 182: uint16(31203), + 183: uint16(31211), + 184: uint16(31238), + 185: uint16(23879), + 186: uint16(31235), + 187: uint16(31234), + 188: uint16(31262), + 189: uint16(31252), + }, + 111: { + 0: uint16(39176), + 1: uint16(39177), + 2: uint16(39178), + 3: uint16(39179), + 4: uint16(39180), + 5: uint16(39182), + 6: uint16(39183), + 7: uint16(39185), + 8: uint16(39186), + 9: uint16(39187), + 10: uint16(39188), + 11: uint16(39189), + 12: uint16(39190), + 13: uint16(39191), + 14: uint16(39192), + 15: uint16(39193), + 16: uint16(39194), + 17: uint16(39195), + 18: uint16(39196), + 19: uint16(39197), + 20: uint16(39198), + 21: uint16(39199), + 22: uint16(39200), + 23: uint16(39201), + 24: uint16(39202), + 25: uint16(39203), + 26: uint16(39204), + 27: uint16(39205), + 28: uint16(39206), + 29: uint16(39207), + 30: uint16(39208), + 31: uint16(39209), + 32: uint16(39210), + 33: uint16(39211), + 34: uint16(39212), + 35: uint16(39213), + 36: uint16(39215), + 37: uint16(39216), + 38: uint16(39217), + 39: uint16(39218), + 40: uint16(39219), + 41: uint16(39220), + 42: uint16(39221), + 43: uint16(39222), + 44: uint16(39223), + 45: uint16(39224), + 46: uint16(39225), + 47: uint16(39226), + 48: uint16(39227), + 49: uint16(39228), + 50: uint16(39229), + 51: uint16(39230), + 52: uint16(39231), + 53: uint16(39232), + 54: uint16(39233), + 55: uint16(39234), + 56: uint16(39235), + 57: uint16(39236), + 58: uint16(39237), + 59: uint16(39238), + 60: uint16(39239), + 61: uint16(39240), + 62: uint16(39241), + 63: uint16(39242), + 64: uint16(39243), + 65: uint16(39244), + 66: uint16(39245), + 67: uint16(39246), + 68: uint16(39247), + 69: uint16(39248), + 70: uint16(39249), + 71: uint16(39250), + 72: uint16(39251), + 73: uint16(39254), + 74: uint16(39255), + 75: uint16(39256), + 76: uint16(39257), + 77: uint16(39258), + 78: uint16(39259), + 79: uint16(39260), + 80: uint16(39261), + 81: uint16(39262), + 82: uint16(39263), + 83: uint16(39264), + 84: uint16(39265), + 85: uint16(39266), + 86: uint16(39268), + 87: uint16(39270), + 88: uint16(39283), + 89: uint16(39288), + 90: uint16(39289), + 91: uint16(39291), + 92: uint16(39294), + 93: uint16(39298), + 94: uint16(39299), + 95: uint16(39305), + 96: uint16(31289), + 97: uint16(31287), + 98: uint16(31313), + 99: uint16(40655), + 100: uint16(39333), + 101: uint16(31344), + 102: uint16(30344), + 103: uint16(30350), + 104: uint16(30355), + 105: uint16(30361), + 106: uint16(30372), + 107: uint16(29918), + 108: uint16(29920), + 109: uint16(29996), + 110: uint16(40480), + 111: uint16(40482), + 112: uint16(40488), + 113: uint16(40489), + 114: uint16(40490), + 115: uint16(40491), + 116: uint16(40492), + 117: uint16(40498), + 118: uint16(40497), + 119: uint16(40502), + 120: uint16(40504), + 121: uint16(40503), + 122: uint16(40505), + 123: uint16(40506), + 124: uint16(40510), + 125: uint16(40513), + 126: uint16(40514), + 127: uint16(40516), + 128: uint16(40518), + 129: uint16(40519), + 130: uint16(40520), + 131: uint16(40521), + 132: uint16(40523), + 133: uint16(40524), + 134: uint16(40526), + 135: uint16(40529), + 136: uint16(40533), + 137: uint16(40535), + 138: uint16(40538), + 139: uint16(40539), + 140: uint16(40540), + 141: uint16(40542), + 142: uint16(40547), + 143: uint16(40550), + 144: uint16(40551), + 145: uint16(40552), + 146: uint16(40553), + 147: uint16(40554), + 148: uint16(40555), + 149: uint16(40556), + 150: uint16(40561), + 151: uint16(40557), + 152: uint16(40563), + 153: uint16(30098), + 154: uint16(30100), + 155: uint16(30102), + 156: uint16(30112), + 157: uint16(30109), + 158: uint16(30124), + 159: uint16(30115), + 160: uint16(30131), + 161: uint16(30132), + 162: uint16(30136), + 163: uint16(30148), + 164: uint16(30129), + 165: uint16(30128), + 166: uint16(30147), + 167: uint16(30146), + 168: uint16(30166), + 169: uint16(30157), + 170: uint16(30179), + 171: uint16(30184), + 172: uint16(30182), + 173: uint16(30180), + 174: uint16(30187), + 175: uint16(30183), + 176: uint16(30211), + 177: uint16(30193), + 178: uint16(30204), + 179: uint16(30207), + 180: uint16(30224), + 181: uint16(30208), + 182: uint16(30213), + 183: uint16(30220), + 184: uint16(30231), + 185: uint16(30218), + 186: uint16(30245), + 187: uint16(30232), + 188: uint16(30229), + 189: uint16(30233), + }, + 112: { + 0: uint16(39308), + 1: uint16(39310), + 2: uint16(39322), + 3: uint16(39323), + 4: uint16(39324), + 5: uint16(39325), + 6: uint16(39326), + 7: uint16(39327), + 8: uint16(39328), + 9: uint16(39329), + 10: uint16(39330), + 11: uint16(39331), + 12: uint16(39332), + 13: uint16(39334), + 14: uint16(39335), + 15: uint16(39337), + 16: uint16(39338), + 17: uint16(39339), + 18: uint16(39340), + 19: uint16(39341), + 20: uint16(39342), + 21: uint16(39343), + 22: uint16(39344), + 23: uint16(39345), + 24: uint16(39346), + 25: uint16(39347), + 26: uint16(39348), + 27: uint16(39349), + 28: uint16(39350), + 29: uint16(39351), + 30: uint16(39352), + 31: uint16(39353), + 32: uint16(39354), + 33: uint16(39355), + 34: uint16(39356), + 35: uint16(39357), + 36: uint16(39358), + 37: uint16(39359), + 38: uint16(39360), + 39: uint16(39361), + 40: uint16(39362), + 41: uint16(39363), + 42: uint16(39364), + 43: uint16(39365), + 44: uint16(39366), + 45: uint16(39367), + 46: uint16(39368), + 47: uint16(39369), + 48: uint16(39370), + 49: uint16(39371), + 50: uint16(39372), + 51: uint16(39373), + 52: uint16(39374), + 53: uint16(39375), + 54: uint16(39376), + 55: uint16(39377), + 56: uint16(39378), + 57: uint16(39379), + 58: uint16(39380), + 59: uint16(39381), + 60: uint16(39382), + 61: uint16(39383), + 62: uint16(39384), + 63: uint16(39385), + 64: uint16(39386), + 65: uint16(39387), + 66: uint16(39388), + 67: uint16(39389), + 68: uint16(39390), + 69: uint16(39391), + 70: uint16(39392), + 71: uint16(39393), + 72: uint16(39394), + 73: uint16(39395), + 74: uint16(39396), + 75: uint16(39397), + 76: uint16(39398), + 77: uint16(39399), + 78: uint16(39400), + 79: uint16(39401), + 80: uint16(39402), + 81: uint16(39403), + 82: uint16(39404), + 83: uint16(39405), + 84: uint16(39406), + 85: uint16(39407), + 86: uint16(39408), + 87: uint16(39409), + 88: uint16(39410), + 89: uint16(39411), + 90: uint16(39412), + 91: uint16(39413), + 92: uint16(39414), + 93: uint16(39415), + 94: uint16(39416), + 95: uint16(39417), + 96: uint16(30235), + 97: uint16(30268), + 98: uint16(30242), + 99: uint16(30240), + 100: uint16(30272), + 101: uint16(30253), + 102: uint16(30256), + 103: uint16(30271), + 104: uint16(30261), + 105: uint16(30275), + 106: uint16(30270), + 107: uint16(30259), + 108: uint16(30285), + 109: uint16(30302), + 110: uint16(30292), + 111: uint16(30300), + 112: uint16(30294), + 113: uint16(30315), + 114: uint16(30319), + 115: uint16(32714), + 116: uint16(31462), + 117: uint16(31352), + 118: uint16(31353), + 119: uint16(31360), + 120: uint16(31366), + 121: uint16(31368), + 122: uint16(31381), + 123: uint16(31398), + 124: uint16(31392), + 125: uint16(31404), + 126: uint16(31400), + 127: uint16(31405), + 128: uint16(31411), + 129: uint16(34916), + 130: uint16(34921), + 131: uint16(34930), + 132: uint16(34941), + 133: uint16(34943), + 134: uint16(34946), + 135: uint16(34978), + 136: uint16(35014), + 137: uint16(34999), + 138: uint16(35004), + 139: uint16(35017), + 140: uint16(35042), + 141: uint16(35022), + 142: uint16(35043), + 143: uint16(35045), + 144: uint16(35057), + 145: uint16(35098), + 146: uint16(35068), + 147: uint16(35048), + 148: uint16(35070), + 149: uint16(35056), + 150: uint16(35105), + 151: uint16(35097), + 152: uint16(35091), + 153: uint16(35099), + 154: uint16(35082), + 155: uint16(35124), + 156: uint16(35115), + 157: uint16(35126), + 158: uint16(35137), + 159: uint16(35174), + 160: uint16(35195), + 161: uint16(30091), + 162: uint16(32997), + 163: uint16(30386), + 164: uint16(30388), + 165: uint16(30684), + 166: uint16(32786), + 167: uint16(32788), + 168: uint16(32790), + 169: uint16(32796), + 170: uint16(32800), + 171: uint16(32802), + 172: uint16(32805), + 173: uint16(32806), + 174: uint16(32807), + 175: uint16(32809), + 176: uint16(32808), + 177: uint16(32817), + 178: uint16(32779), + 179: uint16(32821), + 180: uint16(32835), + 181: uint16(32838), + 182: uint16(32845), + 183: uint16(32850), + 184: uint16(32873), + 185: uint16(32881), + 186: uint16(35203), + 187: uint16(39032), + 188: uint16(39040), + 189: uint16(39043), + }, + 113: { + 0: uint16(39418), + 1: uint16(39419), + 2: uint16(39420), + 3: uint16(39421), + 4: uint16(39422), + 5: uint16(39423), + 6: uint16(39424), + 7: uint16(39425), + 8: uint16(39426), + 9: uint16(39427), + 10: uint16(39428), + 11: uint16(39429), + 12: uint16(39430), + 13: uint16(39431), + 14: uint16(39432), + 15: uint16(39433), + 16: uint16(39434), + 17: uint16(39435), + 18: uint16(39436), + 19: uint16(39437), + 20: uint16(39438), + 21: uint16(39439), + 22: uint16(39440), + 23: uint16(39441), + 24: uint16(39442), + 25: uint16(39443), + 26: uint16(39444), + 27: uint16(39445), + 28: uint16(39446), + 29: uint16(39447), + 30: uint16(39448), + 31: uint16(39449), + 32: uint16(39450), + 33: uint16(39451), + 34: uint16(39452), + 35: uint16(39453), + 36: uint16(39454), + 37: uint16(39455), + 38: uint16(39456), + 39: uint16(39457), + 40: uint16(39458), + 41: uint16(39459), + 42: uint16(39460), + 43: uint16(39461), + 44: uint16(39462), + 45: uint16(39463), + 46: uint16(39464), + 47: uint16(39465), + 48: uint16(39466), + 49: uint16(39467), + 50: uint16(39468), + 51: uint16(39469), + 52: uint16(39470), + 53: uint16(39471), + 54: uint16(39472), + 55: uint16(39473), + 56: uint16(39474), + 57: uint16(39475), + 58: uint16(39476), + 59: uint16(39477), + 60: uint16(39478), + 61: uint16(39479), + 62: uint16(39480), + 63: uint16(39481), + 64: uint16(39482), + 65: uint16(39483), + 66: uint16(39484), + 67: uint16(39485), + 68: uint16(39486), + 69: uint16(39487), + 70: uint16(39488), + 71: uint16(39489), + 72: uint16(39490), + 73: uint16(39491), + 74: uint16(39492), + 75: uint16(39493), + 76: uint16(39494), + 77: uint16(39495), + 78: uint16(39496), + 79: uint16(39497), + 80: uint16(39498), + 81: uint16(39499), + 82: uint16(39500), + 83: uint16(39501), + 84: uint16(39502), + 85: uint16(39503), + 86: uint16(39504), + 87: uint16(39505), + 88: uint16(39506), + 89: uint16(39507), + 90: uint16(39508), + 91: uint16(39509), + 92: uint16(39510), + 93: uint16(39511), + 94: uint16(39512), + 95: uint16(39513), + 96: uint16(39049), + 97: uint16(39052), + 98: uint16(39053), + 99: uint16(39055), + 100: uint16(39060), + 101: uint16(39066), + 102: uint16(39067), + 103: uint16(39070), + 104: uint16(39071), + 105: uint16(39073), + 106: uint16(39074), + 107: uint16(39077), + 108: uint16(39078), + 109: uint16(34381), + 110: uint16(34388), + 111: uint16(34412), + 112: uint16(34414), + 113: uint16(34431), + 114: uint16(34426), + 115: uint16(34428), + 116: uint16(34427), + 117: uint16(34472), + 118: uint16(34445), + 119: uint16(34443), + 120: uint16(34476), + 121: uint16(34461), + 122: uint16(34471), + 123: uint16(34467), + 124: uint16(34474), + 125: uint16(34451), + 126: uint16(34473), + 127: uint16(34486), + 128: uint16(34500), + 129: uint16(34485), + 130: uint16(34510), + 131: uint16(34480), + 132: uint16(34490), + 133: uint16(34481), + 134: uint16(34479), + 135: uint16(34505), + 136: uint16(34511), + 137: uint16(34484), + 138: uint16(34537), + 139: uint16(34545), + 140: uint16(34546), + 141: uint16(34541), + 142: uint16(34547), + 143: uint16(34512), + 144: uint16(34579), + 145: uint16(34526), + 146: uint16(34548), + 147: uint16(34527), + 148: uint16(34520), + 149: uint16(34513), + 150: uint16(34563), + 151: uint16(34567), + 152: uint16(34552), + 153: uint16(34568), + 154: uint16(34570), + 155: uint16(34573), + 156: uint16(34569), + 157: uint16(34595), + 158: uint16(34619), + 159: uint16(34590), + 160: uint16(34597), + 161: uint16(34606), + 162: uint16(34586), + 163: uint16(34622), + 164: uint16(34632), + 165: uint16(34612), + 166: uint16(34609), + 167: uint16(34601), + 168: uint16(34615), + 169: uint16(34623), + 170: uint16(34690), + 171: uint16(34594), + 172: uint16(34685), + 173: uint16(34686), + 174: uint16(34683), + 175: uint16(34656), + 176: uint16(34672), + 177: uint16(34636), + 178: uint16(34670), + 179: uint16(34699), + 180: uint16(34643), + 181: uint16(34659), + 182: uint16(34684), + 183: uint16(34660), + 184: uint16(34649), + 185: uint16(34661), + 186: uint16(34707), + 187: uint16(34735), + 188: uint16(34728), + 189: uint16(34770), + }, + 114: { + 0: uint16(39514), + 1: uint16(39515), + 2: uint16(39516), + 3: uint16(39517), + 4: uint16(39518), + 5: uint16(39519), + 6: uint16(39520), + 7: uint16(39521), + 8: uint16(39522), + 9: uint16(39523), + 10: uint16(39524), + 11: uint16(39525), + 12: uint16(39526), + 13: uint16(39527), + 14: uint16(39528), + 15: uint16(39529), + 16: uint16(39530), + 17: uint16(39531), + 18: uint16(39538), + 19: uint16(39555), + 20: uint16(39561), + 21: uint16(39565), + 22: uint16(39566), + 23: uint16(39572), + 24: uint16(39573), + 25: uint16(39577), + 26: uint16(39590), + 27: uint16(39593), + 28: uint16(39594), + 29: uint16(39595), + 30: uint16(39596), + 31: uint16(39597), + 32: uint16(39598), + 33: uint16(39599), + 34: uint16(39602), + 35: uint16(39603), + 36: uint16(39604), + 37: uint16(39605), + 38: uint16(39609), + 39: uint16(39611), + 40: uint16(39613), + 41: uint16(39614), + 42: uint16(39615), + 43: uint16(39619), + 44: uint16(39620), + 45: uint16(39622), + 46: uint16(39623), + 47: uint16(39624), + 48: uint16(39625), + 49: uint16(39626), + 50: uint16(39629), + 51: uint16(39630), + 52: uint16(39631), + 53: uint16(39632), + 54: uint16(39634), + 55: uint16(39636), + 56: uint16(39637), + 57: uint16(39638), + 58: uint16(39639), + 59: uint16(39641), + 60: uint16(39642), + 61: uint16(39643), + 62: uint16(39644), + 63: uint16(39645), + 64: uint16(39646), + 65: uint16(39648), + 66: uint16(39650), + 67: uint16(39651), + 68: uint16(39652), + 69: uint16(39653), + 70: uint16(39655), + 71: uint16(39656), + 72: uint16(39657), + 73: uint16(39658), + 74: uint16(39660), + 75: uint16(39662), + 76: uint16(39664), + 77: uint16(39665), + 78: uint16(39666), + 79: uint16(39667), + 80: uint16(39668), + 81: uint16(39669), + 82: uint16(39670), + 83: uint16(39671), + 84: uint16(39672), + 85: uint16(39674), + 86: uint16(39676), + 87: uint16(39677), + 88: uint16(39678), + 89: uint16(39679), + 90: uint16(39680), + 91: uint16(39681), + 92: uint16(39682), + 93: uint16(39684), + 94: uint16(39685), + 95: uint16(39686), + 96: uint16(34758), + 97: uint16(34696), + 98: uint16(34693), + 99: uint16(34733), + 100: uint16(34711), + 101: uint16(34691), + 102: uint16(34731), + 103: uint16(34789), + 104: uint16(34732), + 105: uint16(34741), + 106: uint16(34739), + 107: uint16(34763), + 108: uint16(34771), + 109: uint16(34749), + 110: uint16(34769), + 111: uint16(34752), + 112: uint16(34762), + 113: uint16(34779), + 114: uint16(34794), + 115: uint16(34784), + 116: uint16(34798), + 117: uint16(34838), + 118: uint16(34835), + 119: uint16(34814), + 120: uint16(34826), + 121: uint16(34843), + 122: uint16(34849), + 123: uint16(34873), + 124: uint16(34876), + 125: uint16(32566), + 126: uint16(32578), + 127: uint16(32580), + 128: uint16(32581), + 129: uint16(33296), + 130: uint16(31482), + 131: uint16(31485), + 132: uint16(31496), + 133: uint16(31491), + 134: uint16(31492), + 135: uint16(31509), + 136: uint16(31498), + 137: uint16(31531), + 138: uint16(31503), + 139: uint16(31559), + 140: uint16(31544), + 141: uint16(31530), + 142: uint16(31513), + 143: uint16(31534), + 144: uint16(31537), + 145: uint16(31520), + 146: uint16(31525), + 147: uint16(31524), + 148: uint16(31539), + 149: uint16(31550), + 150: uint16(31518), + 151: uint16(31576), + 152: uint16(31578), + 153: uint16(31557), + 154: uint16(31605), + 155: uint16(31564), + 156: uint16(31581), + 157: uint16(31584), + 158: uint16(31598), + 159: uint16(31611), + 160: uint16(31586), + 161: uint16(31602), + 162: uint16(31601), + 163: uint16(31632), + 164: uint16(31654), + 165: uint16(31655), + 166: uint16(31672), + 167: uint16(31660), + 168: uint16(31645), + 169: uint16(31656), + 170: uint16(31621), + 171: uint16(31658), + 172: uint16(31644), + 173: uint16(31650), + 174: uint16(31659), + 175: uint16(31668), + 176: uint16(31697), + 177: uint16(31681), + 178: uint16(31692), + 179: uint16(31709), + 180: uint16(31706), + 181: uint16(31717), + 182: uint16(31718), + 183: uint16(31722), + 184: uint16(31756), + 185: uint16(31742), + 186: uint16(31740), + 187: uint16(31759), + 188: uint16(31766), + 189: uint16(31755), + }, + 115: { + 0: uint16(39687), + 1: uint16(39689), + 2: uint16(39690), + 3: uint16(39691), + 4: uint16(39692), + 5: uint16(39693), + 6: uint16(39694), + 7: uint16(39696), + 8: uint16(39697), + 9: uint16(39698), + 10: uint16(39700), + 11: uint16(39701), + 12: uint16(39702), + 13: uint16(39703), + 14: uint16(39704), + 15: uint16(39705), + 16: uint16(39706), + 17: uint16(39707), + 18: uint16(39708), + 19: uint16(39709), + 20: uint16(39710), + 21: uint16(39712), + 22: uint16(39713), + 23: uint16(39714), + 24: uint16(39716), + 25: uint16(39717), + 26: uint16(39718), + 27: uint16(39719), + 28: uint16(39720), + 29: uint16(39721), + 30: uint16(39722), + 31: uint16(39723), + 32: uint16(39724), + 33: uint16(39725), + 34: uint16(39726), + 35: uint16(39728), + 36: uint16(39729), + 37: uint16(39731), + 38: uint16(39732), + 39: uint16(39733), + 40: uint16(39734), + 41: uint16(39735), + 42: uint16(39736), + 43: uint16(39737), + 44: uint16(39738), + 45: uint16(39741), + 46: uint16(39742), + 47: uint16(39743), + 48: uint16(39744), + 49: uint16(39750), + 50: uint16(39754), + 51: uint16(39755), + 52: uint16(39756), + 53: uint16(39758), + 54: uint16(39760), + 55: uint16(39762), + 56: uint16(39763), + 57: uint16(39765), + 58: uint16(39766), + 59: uint16(39767), + 60: uint16(39768), + 61: uint16(39769), + 62: uint16(39770), + 63: uint16(39771), + 64: uint16(39772), + 65: uint16(39773), + 66: uint16(39774), + 67: uint16(39775), + 68: uint16(39776), + 69: uint16(39777), + 70: uint16(39778), + 71: uint16(39779), + 72: uint16(39780), + 73: uint16(39781), + 74: uint16(39782), + 75: uint16(39783), + 76: uint16(39784), + 77: uint16(39785), + 78: uint16(39786), + 79: uint16(39787), + 80: uint16(39788), + 81: uint16(39789), + 82: uint16(39790), + 83: uint16(39791), + 84: uint16(39792), + 85: uint16(39793), + 86: uint16(39794), + 87: uint16(39795), + 88: uint16(39796), + 89: uint16(39797), + 90: uint16(39798), + 91: uint16(39799), + 92: uint16(39800), + 93: uint16(39801), + 94: uint16(39802), + 95: uint16(39803), + 96: uint16(31775), + 97: uint16(31786), + 98: uint16(31782), + 99: uint16(31800), + 100: uint16(31809), + 101: uint16(31808), + 102: uint16(33278), + 103: uint16(33281), + 104: uint16(33282), + 105: uint16(33284), + 106: uint16(33260), + 107: uint16(34884), + 108: uint16(33313), + 109: uint16(33314), + 110: uint16(33315), + 111: uint16(33325), + 112: uint16(33327), + 113: uint16(33320), + 114: uint16(33323), + 115: uint16(33336), + 116: uint16(33339), + 117: uint16(33331), + 118: uint16(33332), + 119: uint16(33342), + 120: uint16(33348), + 121: uint16(33353), + 122: uint16(33355), + 123: uint16(33359), + 124: uint16(33370), + 125: uint16(33375), + 126: uint16(33384), + 127: uint16(34942), + 128: uint16(34949), + 129: uint16(34952), + 130: uint16(35032), + 131: uint16(35039), + 132: uint16(35166), + 133: uint16(32669), + 134: uint16(32671), + 135: uint16(32679), + 136: uint16(32687), + 137: uint16(32688), + 138: uint16(32690), + 139: uint16(31868), + 140: uint16(25929), + 141: uint16(31889), + 142: uint16(31901), + 143: uint16(31900), + 144: uint16(31902), + 145: uint16(31906), + 146: uint16(31922), + 147: uint16(31932), + 148: uint16(31933), + 149: uint16(31937), + 150: uint16(31943), + 151: uint16(31948), + 152: uint16(31949), + 153: uint16(31944), + 154: uint16(31941), + 155: uint16(31959), + 156: uint16(31976), + 157: uint16(33390), + 158: uint16(26280), + 159: uint16(32703), + 160: uint16(32718), + 161: uint16(32725), + 162: uint16(32741), + 163: uint16(32737), + 164: uint16(32742), + 165: uint16(32745), + 166: uint16(32750), + 167: uint16(32755), + 168: uint16(31992), + 169: uint16(32119), + 170: uint16(32166), + 171: uint16(32174), + 172: uint16(32327), + 173: uint16(32411), + 174: uint16(40632), + 175: uint16(40628), + 176: uint16(36211), + 177: uint16(36228), + 178: uint16(36244), + 179: uint16(36241), + 180: uint16(36273), + 181: uint16(36199), + 182: uint16(36205), + 183: uint16(35911), + 184: uint16(35913), + 185: uint16(37194), + 186: uint16(37200), + 187: uint16(37198), + 188: uint16(37199), + 189: uint16(37220), + }, + 116: { + 0: uint16(39804), + 1: uint16(39805), + 2: uint16(39806), + 3: uint16(39807), + 4: uint16(39808), + 5: uint16(39809), + 6: uint16(39810), + 7: uint16(39811), + 8: uint16(39812), + 9: uint16(39813), + 10: uint16(39814), + 11: uint16(39815), + 12: uint16(39816), + 13: uint16(39817), + 14: uint16(39818), + 15: uint16(39819), + 16: uint16(39820), + 17: uint16(39821), + 18: uint16(39822), + 19: uint16(39823), + 20: uint16(39824), + 21: uint16(39825), + 22: uint16(39826), + 23: uint16(39827), + 24: uint16(39828), + 25: uint16(39829), + 26: uint16(39830), + 27: uint16(39831), + 28: uint16(39832), + 29: uint16(39833), + 30: uint16(39834), + 31: uint16(39835), + 32: uint16(39836), + 33: uint16(39837), + 34: uint16(39838), + 35: uint16(39839), + 36: uint16(39840), + 37: uint16(39841), + 38: uint16(39842), + 39: uint16(39843), + 40: uint16(39844), + 41: uint16(39845), + 42: uint16(39846), + 43: uint16(39847), + 44: uint16(39848), + 45: uint16(39849), + 46: uint16(39850), + 47: uint16(39851), + 48: uint16(39852), + 49: uint16(39853), + 50: uint16(39854), + 51: uint16(39855), + 52: uint16(39856), + 53: uint16(39857), + 54: uint16(39858), + 55: uint16(39859), + 56: uint16(39860), + 57: uint16(39861), + 58: uint16(39862), + 59: uint16(39863), + 60: uint16(39864), + 61: uint16(39865), + 62: uint16(39866), + 63: uint16(39867), + 64: uint16(39868), + 65: uint16(39869), + 66: uint16(39870), + 67: uint16(39871), + 68: uint16(39872), + 69: uint16(39873), + 70: uint16(39874), + 71: uint16(39875), + 72: uint16(39876), + 73: uint16(39877), + 74: uint16(39878), + 75: uint16(39879), + 76: uint16(39880), + 77: uint16(39881), + 78: uint16(39882), + 79: uint16(39883), + 80: uint16(39884), + 81: uint16(39885), + 82: uint16(39886), + 83: uint16(39887), + 84: uint16(39888), + 85: uint16(39889), + 86: uint16(39890), + 87: uint16(39891), + 88: uint16(39892), + 89: uint16(39893), + 90: uint16(39894), + 91: uint16(39895), + 92: uint16(39896), + 93: uint16(39897), + 94: uint16(39898), + 95: uint16(39899), + 96: uint16(37218), + 97: uint16(37217), + 98: uint16(37232), + 99: uint16(37225), + 100: uint16(37231), + 101: uint16(37245), + 102: uint16(37246), + 103: uint16(37234), + 104: uint16(37236), + 105: uint16(37241), + 106: uint16(37260), + 107: uint16(37253), + 108: uint16(37264), + 109: uint16(37261), + 110: uint16(37265), + 111: uint16(37282), + 112: uint16(37283), + 113: uint16(37290), + 114: uint16(37293), + 115: uint16(37294), + 116: uint16(37295), + 117: uint16(37301), + 118: uint16(37300), + 119: uint16(37306), + 120: uint16(35925), + 121: uint16(40574), + 122: uint16(36280), + 123: uint16(36331), + 124: uint16(36357), + 125: uint16(36441), + 126: uint16(36457), + 127: uint16(36277), + 128: uint16(36287), + 129: uint16(36284), + 130: uint16(36282), + 131: uint16(36292), + 132: uint16(36310), + 133: uint16(36311), + 134: uint16(36314), + 135: uint16(36318), + 136: uint16(36302), + 137: uint16(36303), + 138: uint16(36315), + 139: uint16(36294), + 140: uint16(36332), + 141: uint16(36343), + 142: uint16(36344), + 143: uint16(36323), + 144: uint16(36345), + 145: uint16(36347), + 146: uint16(36324), + 147: uint16(36361), + 148: uint16(36349), + 149: uint16(36372), + 150: uint16(36381), + 151: uint16(36383), + 152: uint16(36396), + 153: uint16(36398), + 154: uint16(36387), + 155: uint16(36399), + 156: uint16(36410), + 157: uint16(36416), + 158: uint16(36409), + 159: uint16(36405), + 160: uint16(36413), + 161: uint16(36401), + 162: uint16(36425), + 163: uint16(36417), + 164: uint16(36418), + 165: uint16(36433), + 166: uint16(36434), + 167: uint16(36426), + 168: uint16(36464), + 169: uint16(36470), + 170: uint16(36476), + 171: uint16(36463), + 172: uint16(36468), + 173: uint16(36485), + 174: uint16(36495), + 175: uint16(36500), + 176: uint16(36496), + 177: uint16(36508), + 178: uint16(36510), + 179: uint16(35960), + 180: uint16(35970), + 181: uint16(35978), + 182: uint16(35973), + 183: uint16(35992), + 184: uint16(35988), + 185: uint16(26011), + 186: uint16(35286), + 187: uint16(35294), + 188: uint16(35290), + 189: uint16(35292), + }, + 117: { + 0: uint16(39900), + 1: uint16(39901), + 2: uint16(39902), + 3: uint16(39903), + 4: uint16(39904), + 5: uint16(39905), + 6: uint16(39906), + 7: uint16(39907), + 8: uint16(39908), + 9: uint16(39909), + 10: uint16(39910), + 11: uint16(39911), + 12: uint16(39912), + 13: uint16(39913), + 14: uint16(39914), + 15: uint16(39915), + 16: uint16(39916), + 17: uint16(39917), + 18: uint16(39918), + 19: uint16(39919), + 20: uint16(39920), + 21: uint16(39921), + 22: uint16(39922), + 23: uint16(39923), + 24: uint16(39924), + 25: uint16(39925), + 26: uint16(39926), + 27: uint16(39927), + 28: uint16(39928), + 29: uint16(39929), + 30: uint16(39930), + 31: uint16(39931), + 32: uint16(39932), + 33: uint16(39933), + 34: uint16(39934), + 35: uint16(39935), + 36: uint16(39936), + 37: uint16(39937), + 38: uint16(39938), + 39: uint16(39939), + 40: uint16(39940), + 41: uint16(39941), + 42: uint16(39942), + 43: uint16(39943), + 44: uint16(39944), + 45: uint16(39945), + 46: uint16(39946), + 47: uint16(39947), + 48: uint16(39948), + 49: uint16(39949), + 50: uint16(39950), + 51: uint16(39951), + 52: uint16(39952), + 53: uint16(39953), + 54: uint16(39954), + 55: uint16(39955), + 56: uint16(39956), + 57: uint16(39957), + 58: uint16(39958), + 59: uint16(39959), + 60: uint16(39960), + 61: uint16(39961), + 62: uint16(39962), + 63: uint16(39963), + 64: uint16(39964), + 65: uint16(39965), + 66: uint16(39966), + 67: uint16(39967), + 68: uint16(39968), + 69: uint16(39969), + 70: uint16(39970), + 71: uint16(39971), + 72: uint16(39972), + 73: uint16(39973), + 74: uint16(39974), + 75: uint16(39975), + 76: uint16(39976), + 77: uint16(39977), + 78: uint16(39978), + 79: uint16(39979), + 80: uint16(39980), + 81: uint16(39981), + 82: uint16(39982), + 83: uint16(39983), + 84: uint16(39984), + 85: uint16(39985), + 86: uint16(39986), + 87: uint16(39987), + 88: uint16(39988), + 89: uint16(39989), + 90: uint16(39990), + 91: uint16(39991), + 92: uint16(39992), + 93: uint16(39993), + 94: uint16(39994), + 95: uint16(39995), + 96: uint16(35301), + 97: uint16(35307), + 98: uint16(35311), + 99: uint16(35390), + 100: uint16(35622), + 101: uint16(38739), + 102: uint16(38633), + 103: uint16(38643), + 104: uint16(38639), + 105: uint16(38662), + 106: uint16(38657), + 107: uint16(38664), + 108: uint16(38671), + 109: uint16(38670), + 110: uint16(38698), + 111: uint16(38701), + 112: uint16(38704), + 113: uint16(38718), + 114: uint16(40832), + 115: uint16(40835), + 116: uint16(40837), + 117: uint16(40838), + 118: uint16(40839), + 119: uint16(40840), + 120: uint16(40841), + 121: uint16(40842), + 122: uint16(40844), + 123: uint16(40702), + 124: uint16(40715), + 125: uint16(40717), + 126: uint16(38585), + 127: uint16(38588), + 128: uint16(38589), + 129: uint16(38606), + 130: uint16(38610), + 131: uint16(30655), + 132: uint16(38624), + 133: uint16(37518), + 134: uint16(37550), + 135: uint16(37576), + 136: uint16(37694), + 137: uint16(37738), + 138: uint16(37834), + 139: uint16(37775), + 140: uint16(37950), + 141: uint16(37995), + 142: uint16(40063), + 143: uint16(40066), + 144: uint16(40069), + 145: uint16(40070), + 146: uint16(40071), + 147: uint16(40072), + 148: uint16(31267), + 149: uint16(40075), + 150: uint16(40078), + 151: uint16(40080), + 152: uint16(40081), + 153: uint16(40082), + 154: uint16(40084), + 155: uint16(40085), + 156: uint16(40090), + 157: uint16(40091), + 158: uint16(40094), + 159: uint16(40095), + 160: uint16(40096), + 161: uint16(40097), + 162: uint16(40098), + 163: uint16(40099), + 164: uint16(40101), + 165: uint16(40102), + 166: uint16(40103), + 167: uint16(40104), + 168: uint16(40105), + 169: uint16(40107), + 170: uint16(40109), + 171: uint16(40110), + 172: uint16(40112), + 173: uint16(40113), + 174: uint16(40114), + 175: uint16(40115), + 176: uint16(40116), + 177: uint16(40117), + 178: uint16(40118), + 179: uint16(40119), + 180: uint16(40122), + 181: uint16(40123), + 182: uint16(40124), + 183: uint16(40125), + 184: uint16(40132), + 185: uint16(40133), + 186: uint16(40134), + 187: uint16(40135), + 188: uint16(40138), + 189: uint16(40139), + }, + 118: { + 0: uint16(39996), + 1: uint16(39997), + 2: uint16(39998), + 3: uint16(39999), + 4: uint16(40000), + 5: uint16(40001), + 6: uint16(40002), + 7: uint16(40003), + 8: uint16(40004), + 9: uint16(40005), + 10: uint16(40006), + 11: uint16(40007), + 12: uint16(40008), + 13: uint16(40009), + 14: uint16(40010), + 15: uint16(40011), + 16: uint16(40012), + 17: uint16(40013), + 18: uint16(40014), + 19: uint16(40015), + 20: uint16(40016), + 21: uint16(40017), + 22: uint16(40018), + 23: uint16(40019), + 24: uint16(40020), + 25: uint16(40021), + 26: uint16(40022), + 27: uint16(40023), + 28: uint16(40024), + 29: uint16(40025), + 30: uint16(40026), + 31: uint16(40027), + 32: uint16(40028), + 33: uint16(40029), + 34: uint16(40030), + 35: uint16(40031), + 36: uint16(40032), + 37: uint16(40033), + 38: uint16(40034), + 39: uint16(40035), + 40: uint16(40036), + 41: uint16(40037), + 42: uint16(40038), + 43: uint16(40039), + 44: uint16(40040), + 45: uint16(40041), + 46: uint16(40042), + 47: uint16(40043), + 48: uint16(40044), + 49: uint16(40045), + 50: uint16(40046), + 51: uint16(40047), + 52: uint16(40048), + 53: uint16(40049), + 54: uint16(40050), + 55: uint16(40051), + 56: uint16(40052), + 57: uint16(40053), + 58: uint16(40054), + 59: uint16(40055), + 60: uint16(40056), + 61: uint16(40057), + 62: uint16(40058), + 63: uint16(40059), + 64: uint16(40061), + 65: uint16(40062), + 66: uint16(40064), + 67: uint16(40067), + 68: uint16(40068), + 69: uint16(40073), + 70: uint16(40074), + 71: uint16(40076), + 72: uint16(40079), + 73: uint16(40083), + 74: uint16(40086), + 75: uint16(40087), + 76: uint16(40088), + 77: uint16(40089), + 78: uint16(40093), + 79: uint16(40106), + 80: uint16(40108), + 81: uint16(40111), + 82: uint16(40121), + 83: uint16(40126), + 84: uint16(40127), + 85: uint16(40128), + 86: uint16(40129), + 87: uint16(40130), + 88: uint16(40136), + 89: uint16(40137), + 90: uint16(40145), + 91: uint16(40146), + 92: uint16(40154), + 93: uint16(40155), + 94: uint16(40160), + 95: uint16(40161), + 96: uint16(40140), + 97: uint16(40141), + 98: uint16(40142), + 99: uint16(40143), + 100: uint16(40144), + 101: uint16(40147), + 102: uint16(40148), + 103: uint16(40149), + 104: uint16(40151), + 105: uint16(40152), + 106: uint16(40153), + 107: uint16(40156), + 108: uint16(40157), + 109: uint16(40159), + 110: uint16(40162), + 111: uint16(38780), + 112: uint16(38789), + 113: uint16(38801), + 114: uint16(38802), + 115: uint16(38804), + 116: uint16(38831), + 117: uint16(38827), + 118: uint16(38819), + 119: uint16(38834), + 120: uint16(38836), + 121: uint16(39601), + 122: uint16(39600), + 123: uint16(39607), + 124: uint16(40536), + 125: uint16(39606), + 126: uint16(39610), + 127: uint16(39612), + 128: uint16(39617), + 129: uint16(39616), + 130: uint16(39621), + 131: uint16(39618), + 132: uint16(39627), + 133: uint16(39628), + 134: uint16(39633), + 135: uint16(39749), + 136: uint16(39747), + 137: uint16(39751), + 138: uint16(39753), + 139: uint16(39752), + 140: uint16(39757), + 141: uint16(39761), + 142: uint16(39144), + 143: uint16(39181), + 144: uint16(39214), + 145: uint16(39253), + 146: uint16(39252), + 147: uint16(39647), + 148: uint16(39649), + 149: uint16(39654), + 150: uint16(39663), + 151: uint16(39659), + 152: uint16(39675), + 153: uint16(39661), + 154: uint16(39673), + 155: uint16(39688), + 156: uint16(39695), + 157: uint16(39699), + 158: uint16(39711), + 159: uint16(39715), + 160: uint16(40637), + 161: uint16(40638), + 162: uint16(32315), + 163: uint16(40578), + 164: uint16(40583), + 165: uint16(40584), + 166: uint16(40587), + 167: uint16(40594), + 168: uint16(37846), + 169: uint16(40605), + 170: uint16(40607), + 171: uint16(40667), + 172: uint16(40668), + 173: uint16(40669), + 174: uint16(40672), + 175: uint16(40671), + 176: uint16(40674), + 177: uint16(40681), + 178: uint16(40679), + 179: uint16(40677), + 180: uint16(40682), + 181: uint16(40687), + 182: uint16(40738), + 183: uint16(40748), + 184: uint16(40751), + 185: uint16(40761), + 186: uint16(40759), + 187: uint16(40765), + 188: uint16(40766), + 189: uint16(40772), + }, + 119: { + 0: uint16(40163), + 1: uint16(40164), + 2: uint16(40165), + 3: uint16(40166), + 4: uint16(40167), + 5: uint16(40168), + 6: uint16(40169), + 7: uint16(40170), + 8: uint16(40171), + 9: uint16(40172), + 10: uint16(40173), + 11: uint16(40174), + 12: uint16(40175), + 13: uint16(40176), + 14: uint16(40177), + 15: uint16(40178), + 16: uint16(40179), + 17: uint16(40180), + 18: uint16(40181), + 19: uint16(40182), + 20: uint16(40183), + 21: uint16(40184), + 22: uint16(40185), + 23: uint16(40186), + 24: uint16(40187), + 25: uint16(40188), + 26: uint16(40189), + 27: uint16(40190), + 28: uint16(40191), + 29: uint16(40192), + 30: uint16(40193), + 31: uint16(40194), + 32: uint16(40195), + 33: uint16(40196), + 34: uint16(40197), + 35: uint16(40198), + 36: uint16(40199), + 37: uint16(40200), + 38: uint16(40201), + 39: uint16(40202), + 40: uint16(40203), + 41: uint16(40204), + 42: uint16(40205), + 43: uint16(40206), + 44: uint16(40207), + 45: uint16(40208), + 46: uint16(40209), + 47: uint16(40210), + 48: uint16(40211), + 49: uint16(40212), + 50: uint16(40213), + 51: uint16(40214), + 52: uint16(40215), + 53: uint16(40216), + 54: uint16(40217), + 55: uint16(40218), + 56: uint16(40219), + 57: uint16(40220), + 58: uint16(40221), + 59: uint16(40222), + 60: uint16(40223), + 61: uint16(40224), + 62: uint16(40225), + 63: uint16(40226), + 64: uint16(40227), + 65: uint16(40228), + 66: uint16(40229), + 67: uint16(40230), + 68: uint16(40231), + 69: uint16(40232), + 70: uint16(40233), + 71: uint16(40234), + 72: uint16(40235), + 73: uint16(40236), + 74: uint16(40237), + 75: uint16(40238), + 76: uint16(40239), + 77: uint16(40240), + 78: uint16(40241), + 79: uint16(40242), + 80: uint16(40243), + 81: uint16(40244), + 82: uint16(40245), + 83: uint16(40246), + 84: uint16(40247), + 85: uint16(40248), + 86: uint16(40249), + 87: uint16(40250), + 88: uint16(40251), + 89: uint16(40252), + 90: uint16(40253), + 91: uint16(40254), + 92: uint16(40255), + 93: uint16(40256), + 94: uint16(40257), + 95: uint16(40258), + 96: uint16(57908), + 97: uint16(57909), + 98: uint16(57910), + 99: uint16(57911), + 100: uint16(57912), + 101: uint16(57913), + 102: uint16(57914), + 103: uint16(57915), + 104: uint16(57916), + 105: uint16(57917), + 106: uint16(57918), + 107: uint16(57919), + 108: uint16(57920), + 109: uint16(57921), + 110: uint16(57922), + 111: uint16(57923), + 112: uint16(57924), + 113: uint16(57925), + 114: uint16(57926), + 115: uint16(57927), + 116: uint16(57928), + 117: uint16(57929), + 118: uint16(57930), + 119: uint16(57931), + 120: uint16(57932), + 121: uint16(57933), + 122: uint16(57934), + 123: uint16(57935), + 124: uint16(57936), + 125: uint16(57937), + 126: uint16(57938), + 127: uint16(57939), + 128: uint16(57940), + 129: uint16(57941), + 130: uint16(57942), + 131: uint16(57943), + 132: uint16(57944), + 133: uint16(57945), + 134: uint16(57946), + 135: uint16(57947), + 136: uint16(57948), + 137: uint16(57949), + 138: uint16(57950), + 139: uint16(57951), + 140: uint16(57952), + 141: uint16(57953), + 142: uint16(57954), + 143: uint16(57955), + 144: uint16(57956), + 145: uint16(57957), + 146: uint16(57958), + 147: uint16(57959), + 148: uint16(57960), + 149: uint16(57961), + 150: uint16(57962), + 151: uint16(57963), + 152: uint16(57964), + 153: uint16(57965), + 154: uint16(57966), + 155: uint16(57967), + 156: uint16(57968), + 157: uint16(57969), + 158: uint16(57970), + 159: uint16(57971), + 160: uint16(57972), + 161: uint16(57973), + 162: uint16(57974), + 163: uint16(57975), + 164: uint16(57976), + 165: uint16(57977), + 166: uint16(57978), + 167: uint16(57979), + 168: uint16(57980), + 169: uint16(57981), + 170: uint16(57982), + 171: uint16(57983), + 172: uint16(57984), + 173: uint16(57985), + 174: uint16(57986), + 175: uint16(57987), + 176: uint16(57988), + 177: uint16(57989), + 178: uint16(57990), + 179: uint16(57991), + 180: uint16(57992), + 181: uint16(57993), + 182: uint16(57994), + 183: uint16(57995), + 184: uint16(57996), + 185: uint16(57997), + 186: uint16(57998), + 187: uint16(57999), + 188: uint16(58000), + 189: uint16(58001), + }, + 120: { + 0: uint16(40259), + 1: uint16(40260), + 2: uint16(40261), + 3: uint16(40262), + 4: uint16(40263), + 5: uint16(40264), + 6: uint16(40265), + 7: uint16(40266), + 8: uint16(40267), + 9: uint16(40268), + 10: uint16(40269), + 11: uint16(40270), + 12: uint16(40271), + 13: uint16(40272), + 14: uint16(40273), + 15: uint16(40274), + 16: uint16(40275), + 17: uint16(40276), + 18: uint16(40277), + 19: uint16(40278), + 20: uint16(40279), + 21: uint16(40280), + 22: uint16(40281), + 23: uint16(40282), + 24: uint16(40283), + 25: uint16(40284), + 26: uint16(40285), + 27: uint16(40286), + 28: uint16(40287), + 29: uint16(40288), + 30: uint16(40289), + 31: uint16(40290), + 32: uint16(40291), + 33: uint16(40292), + 34: uint16(40293), + 35: uint16(40294), + 36: uint16(40295), + 37: uint16(40296), + 38: uint16(40297), + 39: uint16(40298), + 40: uint16(40299), + 41: uint16(40300), + 42: uint16(40301), + 43: uint16(40302), + 44: uint16(40303), + 45: uint16(40304), + 46: uint16(40305), + 47: uint16(40306), + 48: uint16(40307), + 49: uint16(40308), + 50: uint16(40309), + 51: uint16(40310), + 52: uint16(40311), + 53: uint16(40312), + 54: uint16(40313), + 55: uint16(40314), + 56: uint16(40315), + 57: uint16(40316), + 58: uint16(40317), + 59: uint16(40318), + 60: uint16(40319), + 61: uint16(40320), + 62: uint16(40321), + 63: uint16(40322), + 64: uint16(40323), + 65: uint16(40324), + 66: uint16(40325), + 67: uint16(40326), + 68: uint16(40327), + 69: uint16(40328), + 70: uint16(40329), + 71: uint16(40330), + 72: uint16(40331), + 73: uint16(40332), + 74: uint16(40333), + 75: uint16(40334), + 76: uint16(40335), + 77: uint16(40336), + 78: uint16(40337), + 79: uint16(40338), + 80: uint16(40339), + 81: uint16(40340), + 82: uint16(40341), + 83: uint16(40342), + 84: uint16(40343), + 85: uint16(40344), + 86: uint16(40345), + 87: uint16(40346), + 88: uint16(40347), + 89: uint16(40348), + 90: uint16(40349), + 91: uint16(40350), + 92: uint16(40351), + 93: uint16(40352), + 94: uint16(40353), + 95: uint16(40354), + 96: uint16(58002), + 97: uint16(58003), + 98: uint16(58004), + 99: uint16(58005), + 100: uint16(58006), + 101: uint16(58007), + 102: uint16(58008), + 103: uint16(58009), + 104: uint16(58010), + 105: uint16(58011), + 106: uint16(58012), + 107: uint16(58013), + 108: uint16(58014), + 109: uint16(58015), + 110: uint16(58016), + 111: uint16(58017), + 112: uint16(58018), + 113: uint16(58019), + 114: uint16(58020), + 115: uint16(58021), + 116: uint16(58022), + 117: uint16(58023), + 118: uint16(58024), + 119: uint16(58025), + 120: uint16(58026), + 121: uint16(58027), + 122: uint16(58028), + 123: uint16(58029), + 124: uint16(58030), + 125: uint16(58031), + 126: uint16(58032), + 127: uint16(58033), + 128: uint16(58034), + 129: uint16(58035), + 130: uint16(58036), + 131: uint16(58037), + 132: uint16(58038), + 133: uint16(58039), + 134: uint16(58040), + 135: uint16(58041), + 136: uint16(58042), + 137: uint16(58043), + 138: uint16(58044), + 139: uint16(58045), + 140: uint16(58046), + 141: uint16(58047), + 142: uint16(58048), + 143: uint16(58049), + 144: uint16(58050), + 145: uint16(58051), + 146: uint16(58052), + 147: uint16(58053), + 148: uint16(58054), + 149: uint16(58055), + 150: uint16(58056), + 151: uint16(58057), + 152: uint16(58058), + 153: uint16(58059), + 154: uint16(58060), + 155: uint16(58061), + 156: uint16(58062), + 157: uint16(58063), + 158: uint16(58064), + 159: uint16(58065), + 160: uint16(58066), + 161: uint16(58067), + 162: uint16(58068), + 163: uint16(58069), + 164: uint16(58070), + 165: uint16(58071), + 166: uint16(58072), + 167: uint16(58073), + 168: uint16(58074), + 169: uint16(58075), + 170: uint16(58076), + 171: uint16(58077), + 172: uint16(58078), + 173: uint16(58079), + 174: uint16(58080), + 175: uint16(58081), + 176: uint16(58082), + 177: uint16(58083), + 178: uint16(58084), + 179: uint16(58085), + 180: uint16(58086), + 181: uint16(58087), + 182: uint16(58088), + 183: uint16(58089), + 184: uint16(58090), + 185: uint16(58091), + 186: uint16(58092), + 187: uint16(58093), + 188: uint16(58094), + 189: uint16(58095), + }, + 121: { + 0: uint16(40355), + 1: uint16(40356), + 2: uint16(40357), + 3: uint16(40358), + 4: uint16(40359), + 5: uint16(40360), + 6: uint16(40361), + 7: uint16(40362), + 8: uint16(40363), + 9: uint16(40364), + 10: uint16(40365), + 11: uint16(40366), + 12: uint16(40367), + 13: uint16(40368), + 14: uint16(40369), + 15: uint16(40370), + 16: uint16(40371), + 17: uint16(40372), + 18: uint16(40373), + 19: uint16(40374), + 20: uint16(40375), + 21: uint16(40376), + 22: uint16(40377), + 23: uint16(40378), + 24: uint16(40379), + 25: uint16(40380), + 26: uint16(40381), + 27: uint16(40382), + 28: uint16(40383), + 29: uint16(40384), + 30: uint16(40385), + 31: uint16(40386), + 32: uint16(40387), + 33: uint16(40388), + 34: uint16(40389), + 35: uint16(40390), + 36: uint16(40391), + 37: uint16(40392), + 38: uint16(40393), + 39: uint16(40394), + 40: uint16(40395), + 41: uint16(40396), + 42: uint16(40397), + 43: uint16(40398), + 44: uint16(40399), + 45: uint16(40400), + 46: uint16(40401), + 47: uint16(40402), + 48: uint16(40403), + 49: uint16(40404), + 50: uint16(40405), + 51: uint16(40406), + 52: uint16(40407), + 53: uint16(40408), + 54: uint16(40409), + 55: uint16(40410), + 56: uint16(40411), + 57: uint16(40412), + 58: uint16(40413), + 59: uint16(40414), + 60: uint16(40415), + 61: uint16(40416), + 62: uint16(40417), + 63: uint16(40418), + 64: uint16(40419), + 65: uint16(40420), + 66: uint16(40421), + 67: uint16(40422), + 68: uint16(40423), + 69: uint16(40424), + 70: uint16(40425), + 71: uint16(40426), + 72: uint16(40427), + 73: uint16(40428), + 74: uint16(40429), + 75: uint16(40430), + 76: uint16(40431), + 77: uint16(40432), + 78: uint16(40433), + 79: uint16(40434), + 80: uint16(40435), + 81: uint16(40436), + 82: uint16(40437), + 83: uint16(40438), + 84: uint16(40439), + 85: uint16(40440), + 86: uint16(40441), + 87: uint16(40442), + 88: uint16(40443), + 89: uint16(40444), + 90: uint16(40445), + 91: uint16(40446), + 92: uint16(40447), + 93: uint16(40448), + 94: uint16(40449), + 95: uint16(40450), + 96: uint16(58096), + 97: uint16(58097), + 98: uint16(58098), + 99: uint16(58099), + 100: uint16(58100), + 101: uint16(58101), + 102: uint16(58102), + 103: uint16(58103), + 104: uint16(58104), + 105: uint16(58105), + 106: uint16(58106), + 107: uint16(58107), + 108: uint16(58108), + 109: uint16(58109), + 110: uint16(58110), + 111: uint16(58111), + 112: uint16(58112), + 113: uint16(58113), + 114: uint16(58114), + 115: uint16(58115), + 116: uint16(58116), + 117: uint16(58117), + 118: uint16(58118), + 119: uint16(58119), + 120: uint16(58120), + 121: uint16(58121), + 122: uint16(58122), + 123: uint16(58123), + 124: uint16(58124), + 125: uint16(58125), + 126: uint16(58126), + 127: uint16(58127), + 128: uint16(58128), + 129: uint16(58129), + 130: uint16(58130), + 131: uint16(58131), + 132: uint16(58132), + 133: uint16(58133), + 134: uint16(58134), + 135: uint16(58135), + 136: uint16(58136), + 137: uint16(58137), + 138: uint16(58138), + 139: uint16(58139), + 140: uint16(58140), + 141: uint16(58141), + 142: uint16(58142), + 143: uint16(58143), + 144: uint16(58144), + 145: uint16(58145), + 146: uint16(58146), + 147: uint16(58147), + 148: uint16(58148), + 149: uint16(58149), + 150: uint16(58150), + 151: uint16(58151), + 152: uint16(58152), + 153: uint16(58153), + 154: uint16(58154), + 155: uint16(58155), + 156: uint16(58156), + 157: uint16(58157), + 158: uint16(58158), + 159: uint16(58159), + 160: uint16(58160), + 161: uint16(58161), + 162: uint16(58162), + 163: uint16(58163), + 164: uint16(58164), + 165: uint16(58165), + 166: uint16(58166), + 167: uint16(58167), + 168: uint16(58168), + 169: uint16(58169), + 170: uint16(58170), + 171: uint16(58171), + 172: uint16(58172), + 173: uint16(58173), + 174: uint16(58174), + 175: uint16(58175), + 176: uint16(58176), + 177: uint16(58177), + 178: uint16(58178), + 179: uint16(58179), + 180: uint16(58180), + 181: uint16(58181), + 182: uint16(58182), + 183: uint16(58183), + 184: uint16(58184), + 185: uint16(58185), + 186: uint16(58186), + 187: uint16(58187), + 188: uint16(58188), + 189: uint16(58189), + }, + 122: { + 0: uint16(40451), + 1: uint16(40452), + 2: uint16(40453), + 3: uint16(40454), + 4: uint16(40455), + 5: uint16(40456), + 6: uint16(40457), + 7: uint16(40458), + 8: uint16(40459), + 9: uint16(40460), + 10: uint16(40461), + 11: uint16(40462), + 12: uint16(40463), + 13: uint16(40464), + 14: uint16(40465), + 15: uint16(40466), + 16: uint16(40467), + 17: uint16(40468), + 18: uint16(40469), + 19: uint16(40470), + 20: uint16(40471), + 21: uint16(40472), + 22: uint16(40473), + 23: uint16(40474), + 24: uint16(40475), + 25: uint16(40476), + 26: uint16(40477), + 27: uint16(40478), + 28: uint16(40484), + 29: uint16(40487), + 30: uint16(40494), + 31: uint16(40496), + 32: uint16(40500), + 33: uint16(40507), + 34: uint16(40508), + 35: uint16(40512), + 36: uint16(40525), + 37: uint16(40528), + 38: uint16(40530), + 39: uint16(40531), + 40: uint16(40532), + 41: uint16(40534), + 42: uint16(40537), + 43: uint16(40541), + 44: uint16(40543), + 45: uint16(40544), + 46: uint16(40545), + 47: uint16(40546), + 48: uint16(40549), + 49: uint16(40558), + 50: uint16(40559), + 51: uint16(40562), + 52: uint16(40564), + 53: uint16(40565), + 54: uint16(40566), + 55: uint16(40567), + 56: uint16(40568), + 57: uint16(40569), + 58: uint16(40570), + 59: uint16(40571), + 60: uint16(40572), + 61: uint16(40573), + 62: uint16(40576), + 63: uint16(40577), + 64: uint16(40579), + 65: uint16(40580), + 66: uint16(40581), + 67: uint16(40582), + 68: uint16(40585), + 69: uint16(40586), + 70: uint16(40588), + 71: uint16(40589), + 72: uint16(40590), + 73: uint16(40591), + 74: uint16(40592), + 75: uint16(40593), + 76: uint16(40596), + 77: uint16(40597), + 78: uint16(40598), + 79: uint16(40599), + 80: uint16(40600), + 81: uint16(40601), + 82: uint16(40602), + 83: uint16(40603), + 84: uint16(40604), + 85: uint16(40606), + 86: uint16(40608), + 87: uint16(40609), + 88: uint16(40610), + 89: uint16(40611), + 90: uint16(40612), + 91: uint16(40613), + 92: uint16(40615), + 93: uint16(40616), + 94: uint16(40617), + 95: uint16(40618), + 96: uint16(58190), + 97: uint16(58191), + 98: uint16(58192), + 99: uint16(58193), + 100: uint16(58194), + 101: uint16(58195), + 102: uint16(58196), + 103: uint16(58197), + 104: uint16(58198), + 105: uint16(58199), + 106: uint16(58200), + 107: uint16(58201), + 108: uint16(58202), + 109: uint16(58203), + 110: uint16(58204), + 111: uint16(58205), + 112: uint16(58206), + 113: uint16(58207), + 114: uint16(58208), + 115: uint16(58209), + 116: uint16(58210), + 117: uint16(58211), + 118: uint16(58212), + 119: uint16(58213), + 120: uint16(58214), + 121: uint16(58215), + 122: uint16(58216), + 123: uint16(58217), + 124: uint16(58218), + 125: uint16(58219), + 126: uint16(58220), + 127: uint16(58221), + 128: uint16(58222), + 129: uint16(58223), + 130: uint16(58224), + 131: uint16(58225), + 132: uint16(58226), + 133: uint16(58227), + 134: uint16(58228), + 135: uint16(58229), + 136: uint16(58230), + 137: uint16(58231), + 138: uint16(58232), + 139: uint16(58233), + 140: uint16(58234), + 141: uint16(58235), + 142: uint16(58236), + 143: uint16(58237), + 144: uint16(58238), + 145: uint16(58239), + 146: uint16(58240), + 147: uint16(58241), + 148: uint16(58242), + 149: uint16(58243), + 150: uint16(58244), + 151: uint16(58245), + 152: uint16(58246), + 153: uint16(58247), + 154: uint16(58248), + 155: uint16(58249), + 156: uint16(58250), + 157: uint16(58251), + 158: uint16(58252), + 159: uint16(58253), + 160: uint16(58254), + 161: uint16(58255), + 162: uint16(58256), + 163: uint16(58257), + 164: uint16(58258), + 165: uint16(58259), + 166: uint16(58260), + 167: uint16(58261), + 168: uint16(58262), + 169: uint16(58263), + 170: uint16(58264), + 171: uint16(58265), + 172: uint16(58266), + 173: uint16(58267), + 174: uint16(58268), + 175: uint16(58269), + 176: uint16(58270), + 177: uint16(58271), + 178: uint16(58272), + 179: uint16(58273), + 180: uint16(58274), + 181: uint16(58275), + 182: uint16(58276), + 183: uint16(58277), + 184: uint16(58278), + 185: uint16(58279), + 186: uint16(58280), + 187: uint16(58281), + 188: uint16(58282), + 189: uint16(58283), + }, + 123: { + 0: uint16(40619), + 1: uint16(40620), + 2: uint16(40621), + 3: uint16(40622), + 4: uint16(40623), + 5: uint16(40624), + 6: uint16(40625), + 7: uint16(40626), + 8: uint16(40627), + 9: uint16(40629), + 10: uint16(40630), + 11: uint16(40631), + 12: uint16(40633), + 13: uint16(40634), + 14: uint16(40636), + 15: uint16(40639), + 16: uint16(40640), + 17: uint16(40641), + 18: uint16(40642), + 19: uint16(40643), + 20: uint16(40645), + 21: uint16(40646), + 22: uint16(40647), + 23: uint16(40648), + 24: uint16(40650), + 25: uint16(40651), + 26: uint16(40652), + 27: uint16(40656), + 28: uint16(40658), + 29: uint16(40659), + 30: uint16(40661), + 31: uint16(40662), + 32: uint16(40663), + 33: uint16(40665), + 34: uint16(40666), + 35: uint16(40670), + 36: uint16(40673), + 37: uint16(40675), + 38: uint16(40676), + 39: uint16(40678), + 40: uint16(40680), + 41: uint16(40683), + 42: uint16(40684), + 43: uint16(40685), + 44: uint16(40686), + 45: uint16(40688), + 46: uint16(40689), + 47: uint16(40690), + 48: uint16(40691), + 49: uint16(40692), + 50: uint16(40693), + 51: uint16(40694), + 52: uint16(40695), + 53: uint16(40696), + 54: uint16(40698), + 55: uint16(40701), + 56: uint16(40703), + 57: uint16(40704), + 58: uint16(40705), + 59: uint16(40706), + 60: uint16(40707), + 61: uint16(40708), + 62: uint16(40709), + 63: uint16(40710), + 64: uint16(40711), + 65: uint16(40712), + 66: uint16(40713), + 67: uint16(40714), + 68: uint16(40716), + 69: uint16(40719), + 70: uint16(40721), + 71: uint16(40722), + 72: uint16(40724), + 73: uint16(40725), + 74: uint16(40726), + 75: uint16(40728), + 76: uint16(40730), + 77: uint16(40731), + 78: uint16(40732), + 79: uint16(40733), + 80: uint16(40734), + 81: uint16(40735), + 82: uint16(40737), + 83: uint16(40739), + 84: uint16(40740), + 85: uint16(40741), + 86: uint16(40742), + 87: uint16(40743), + 88: uint16(40744), + 89: uint16(40745), + 90: uint16(40746), + 91: uint16(40747), + 92: uint16(40749), + 93: uint16(40750), + 94: uint16(40752), + 95: uint16(40753), + 96: uint16(58284), + 97: uint16(58285), + 98: uint16(58286), + 99: uint16(58287), + 100: uint16(58288), + 101: uint16(58289), + 102: uint16(58290), + 103: uint16(58291), + 104: uint16(58292), + 105: uint16(58293), + 106: uint16(58294), + 107: uint16(58295), + 108: uint16(58296), + 109: uint16(58297), + 110: uint16(58298), + 111: uint16(58299), + 112: uint16(58300), + 113: uint16(58301), + 114: uint16(58302), + 115: uint16(58303), + 116: uint16(58304), + 117: uint16(58305), + 118: uint16(58306), + 119: uint16(58307), + 120: uint16(58308), + 121: uint16(58309), + 122: uint16(58310), + 123: uint16(58311), + 124: uint16(58312), + 125: uint16(58313), + 126: uint16(58314), + 127: uint16(58315), + 128: uint16(58316), + 129: uint16(58317), + 130: uint16(58318), + 131: uint16(58319), + 132: uint16(58320), + 133: uint16(58321), + 134: uint16(58322), + 135: uint16(58323), + 136: uint16(58324), + 137: uint16(58325), + 138: uint16(58326), + 139: uint16(58327), + 140: uint16(58328), + 141: uint16(58329), + 142: uint16(58330), + 143: uint16(58331), + 144: uint16(58332), + 145: uint16(58333), + 146: uint16(58334), + 147: uint16(58335), + 148: uint16(58336), + 149: uint16(58337), + 150: uint16(58338), + 151: uint16(58339), + 152: uint16(58340), + 153: uint16(58341), + 154: uint16(58342), + 155: uint16(58343), + 156: uint16(58344), + 157: uint16(58345), + 158: uint16(58346), + 159: uint16(58347), + 160: uint16(58348), + 161: uint16(58349), + 162: uint16(58350), + 163: uint16(58351), + 164: uint16(58352), + 165: uint16(58353), + 166: uint16(58354), + 167: uint16(58355), + 168: uint16(58356), + 169: uint16(58357), + 170: uint16(58358), + 171: uint16(58359), + 172: uint16(58360), + 173: uint16(58361), + 174: uint16(58362), + 175: uint16(58363), + 176: uint16(58364), + 177: uint16(58365), + 178: uint16(58366), + 179: uint16(58367), + 180: uint16(58368), + 181: uint16(58369), + 182: uint16(58370), + 183: uint16(58371), + 184: uint16(58372), + 185: uint16(58373), + 186: uint16(58374), + 187: uint16(58375), + 188: uint16(58376), + 189: uint16(58377), + }, + 124: { + 0: uint16(40754), + 1: uint16(40755), + 2: uint16(40756), + 3: uint16(40757), + 4: uint16(40758), + 5: uint16(40760), + 6: uint16(40762), + 7: uint16(40764), + 8: uint16(40767), + 9: uint16(40768), + 10: uint16(40769), + 11: uint16(40770), + 12: uint16(40771), + 13: uint16(40773), + 14: uint16(40774), + 15: uint16(40775), + 16: uint16(40776), + 17: uint16(40777), + 18: uint16(40778), + 19: uint16(40779), + 20: uint16(40780), + 21: uint16(40781), + 22: uint16(40782), + 23: uint16(40783), + 24: uint16(40786), + 25: uint16(40787), + 26: uint16(40788), + 27: uint16(40789), + 28: uint16(40790), + 29: uint16(40791), + 30: uint16(40792), + 31: uint16(40793), + 32: uint16(40794), + 33: uint16(40795), + 34: uint16(40796), + 35: uint16(40797), + 36: uint16(40798), + 37: uint16(40799), + 38: uint16(40800), + 39: uint16(40801), + 40: uint16(40802), + 41: uint16(40803), + 42: uint16(40804), + 43: uint16(40805), + 44: uint16(40806), + 45: uint16(40807), + 46: uint16(40808), + 47: uint16(40809), + 48: uint16(40810), + 49: uint16(40811), + 50: uint16(40812), + 51: uint16(40813), + 52: uint16(40814), + 53: uint16(40815), + 54: uint16(40816), + 55: uint16(40817), + 56: uint16(40818), + 57: uint16(40819), + 58: uint16(40820), + 59: uint16(40821), + 60: uint16(40822), + 61: uint16(40823), + 62: uint16(40824), + 63: uint16(40825), + 64: uint16(40826), + 65: uint16(40827), + 66: uint16(40828), + 67: uint16(40829), + 68: uint16(40830), + 69: uint16(40833), + 70: uint16(40834), + 71: uint16(40845), + 72: uint16(40846), + 73: uint16(40847), + 74: uint16(40848), + 75: uint16(40849), + 76: uint16(40850), + 77: uint16(40851), + 78: uint16(40852), + 79: uint16(40853), + 80: uint16(40854), + 81: uint16(40855), + 82: uint16(40856), + 83: uint16(40860), + 84: uint16(40861), + 85: uint16(40862), + 86: uint16(40865), + 87: uint16(40866), + 88: uint16(40867), + 89: uint16(40868), + 90: uint16(40869), + 91: uint16(63788), + 92: uint16(63865), + 93: uint16(63893), + 94: uint16(63975), + 95: uint16(63985), + 96: uint16(58378), + 97: uint16(58379), + 98: uint16(58380), + 99: uint16(58381), + 100: uint16(58382), + 101: uint16(58383), + 102: uint16(58384), + 103: uint16(58385), + 104: uint16(58386), + 105: uint16(58387), + 106: uint16(58388), + 107: uint16(58389), + 108: uint16(58390), + 109: uint16(58391), + 110: uint16(58392), + 111: uint16(58393), + 112: uint16(58394), + 113: uint16(58395), + 114: uint16(58396), + 115: uint16(58397), + 116: uint16(58398), + 117: uint16(58399), + 118: uint16(58400), + 119: uint16(58401), + 120: uint16(58402), + 121: uint16(58403), + 122: uint16(58404), + 123: uint16(58405), + 124: uint16(58406), + 125: uint16(58407), + 126: uint16(58408), + 127: uint16(58409), + 128: uint16(58410), + 129: uint16(58411), + 130: uint16(58412), + 131: uint16(58413), + 132: uint16(58414), + 133: uint16(58415), + 134: uint16(58416), + 135: uint16(58417), + 136: uint16(58418), + 137: uint16(58419), + 138: uint16(58420), + 139: uint16(58421), + 140: uint16(58422), + 141: uint16(58423), + 142: uint16(58424), + 143: uint16(58425), + 144: uint16(58426), + 145: uint16(58427), + 146: uint16(58428), + 147: uint16(58429), + 148: uint16(58430), + 149: uint16(58431), + 150: uint16(58432), + 151: uint16(58433), + 152: uint16(58434), + 153: uint16(58435), + 154: uint16(58436), + 155: uint16(58437), + 156: uint16(58438), + 157: uint16(58439), + 158: uint16(58440), + 159: uint16(58441), + 160: uint16(58442), + 161: uint16(58443), + 162: uint16(58444), + 163: uint16(58445), + 164: uint16(58446), + 165: uint16(58447), + 166: uint16(58448), + 167: uint16(58449), + 168: uint16(58450), + 169: uint16(58451), + 170: uint16(58452), + 171: uint16(58453), + 172: uint16(58454), + 173: uint16(58455), + 174: uint16(58456), + 175: uint16(58457), + 176: uint16(58458), + 177: uint16(58459), + 178: uint16(58460), + 179: uint16(58461), + 180: uint16(58462), + 181: uint16(58463), + 182: uint16(58464), + 183: uint16(58465), + 184: uint16(58466), + 185: uint16(58467), + 186: uint16(58468), + 187: uint16(58469), + 188: uint16(58470), + 189: uint16(58471), + }, + 125: { + 0: uint16(64012), + 1: uint16(64013), + 2: uint16(64014), + 3: uint16(64015), + 4: uint16(64017), + 5: uint16(64019), + 6: uint16(64020), + 7: uint16(64024), + 8: uint16(64031), + 9: uint16(64032), + 10: uint16(64033), + 11: uint16(64035), + 12: uint16(64036), + 13: uint16(64039), + 14: uint16(64040), + 15: uint16(64041), + 16: uint16(11905), + 17: uint16(59414), + 18: uint16(59415), + 19: uint16(59416), + 20: uint16(11908), + 21: uint16(13427), + 22: uint16(13383), + 23: uint16(11912), + 24: uint16(11915), + 25: uint16(59422), + 26: uint16(13726), + 27: uint16(13850), + 28: uint16(13838), + 29: uint16(11916), + 30: uint16(11927), + 31: uint16(14702), + 32: uint16(14616), + 33: uint16(59430), + 34: uint16(14799), + 35: uint16(14815), + 36: uint16(14963), + 37: uint16(14800), + 38: uint16(59435), + 39: uint16(59436), + 40: uint16(15182), + 41: uint16(15470), + 42: uint16(15584), + 43: uint16(11943), + 44: uint16(59441), + 45: uint16(59442), + 46: uint16(11946), + 47: uint16(16470), + 48: uint16(16735), + 49: uint16(11950), + 50: uint16(17207), + 51: uint16(11955), + 52: uint16(11958), + 53: uint16(11959), + 54: uint16(59451), + 55: uint16(17329), + 56: uint16(17324), + 57: uint16(11963), + 58: uint16(17373), + 59: uint16(17622), + 60: uint16(18017), + 61: uint16(17996), + 62: uint16(59459), + 63: uint16(18211), + 64: uint16(18217), + 65: uint16(18300), + 66: uint16(18317), + 67: uint16(11978), + 68: uint16(18759), + 69: uint16(18810), + 70: uint16(18813), + 71: uint16(18818), + 72: uint16(18819), + 73: uint16(18821), + 74: uint16(18822), + 75: uint16(18847), + 76: uint16(18843), + 77: uint16(18871), + 78: uint16(18870), + 79: uint16(59476), + 80: uint16(59477), + 81: uint16(19619), + 82: uint16(19615), + 83: uint16(19616), + 84: uint16(19617), + 85: uint16(19575), + 86: uint16(19618), + 87: uint16(19731), + 88: uint16(19732), + 89: uint16(19733), + 90: uint16(19734), + 91: uint16(19735), + 92: uint16(19736), + 93: uint16(19737), + 94: uint16(19886), + 95: uint16(59492), + 96: uint16(58472), + 97: uint16(58473), + 98: uint16(58474), + 99: uint16(58475), + 100: uint16(58476), + 101: uint16(58477), + 102: uint16(58478), + 103: uint16(58479), + 104: uint16(58480), + 105: uint16(58481), + 106: uint16(58482), + 107: uint16(58483), + 108: uint16(58484), + 109: uint16(58485), + 110: uint16(58486), + 111: uint16(58487), + 112: uint16(58488), + 113: uint16(58489), + 114: uint16(58490), + 115: uint16(58491), + 116: uint16(58492), + 117: uint16(58493), + 118: uint16(58494), + 119: uint16(58495), + 120: uint16(58496), + 121: uint16(58497), + 122: uint16(58498), + 123: uint16(58499), + 124: uint16(58500), + 125: uint16(58501), + 126: uint16(58502), + 127: uint16(58503), + 128: uint16(58504), + 129: uint16(58505), + 130: uint16(58506), + 131: uint16(58507), + 132: uint16(58508), + 133: uint16(58509), + 134: uint16(58510), + 135: uint16(58511), + 136: uint16(58512), + 137: uint16(58513), + 138: uint16(58514), + 139: uint16(58515), + 140: uint16(58516), + 141: uint16(58517), + 142: uint16(58518), + 143: uint16(58519), + 144: uint16(58520), + 145: uint16(58521), + 146: uint16(58522), + 147: uint16(58523), + 148: uint16(58524), + 149: uint16(58525), + 150: uint16(58526), + 151: uint16(58527), + 152: uint16(58528), + 153: uint16(58529), + 154: uint16(58530), + 155: uint16(58531), + 156: uint16(58532), + 157: uint16(58533), + 158: uint16(58534), + 159: uint16(58535), + 160: uint16(58536), + 161: uint16(58537), + 162: uint16(58538), + 163: uint16(58539), + 164: uint16(58540), + 165: uint16(58541), + 166: uint16(58542), + 167: uint16(58543), + 168: uint16(58544), + 169: uint16(58545), + 170: uint16(58546), + 171: uint16(58547), + 172: uint16(58548), + 173: uint16(58549), + 174: uint16(58550), + 175: uint16(58551), + 176: uint16(58552), + 177: uint16(58553), + 178: uint16(58554), + 179: uint16(58555), + 180: uint16(58556), + 181: uint16(58557), + 182: uint16(58558), + 183: uint16(58559), + 184: uint16(58560), + 185: uint16(58561), + 186: uint16(58562), + 187: uint16(58563), + 188: uint16(58564), + 189: uint16(58565), + }, +} + +var _big5 = [89][157]uint16{ + 0: { + 0: uint16(12288), + 1: uint16(65292), + 2: uint16(12289), + 3: uint16(12290), + 4: uint16(65294), + 5: uint16(8231), + 6: uint16(65307), + 7: uint16(65306), + 8: uint16(65311), + 9: uint16(65281), + 10: uint16(65072), + 11: uint16(8230), + 12: uint16(8229), + 13: uint16(65104), + 14: uint16(65105), + 15: uint16(65106), + 16: uint16(183), + 17: uint16(65108), + 18: uint16(65109), + 19: uint16(65110), + 20: uint16(65111), + 21: uint16(65372), + 22: uint16(8211), + 23: uint16(65073), + 24: uint16(8212), + 25: uint16(65075), + 26: uint16(9588), + 27: uint16(65076), + 28: uint16(65103), + 29: uint16(65288), + 30: uint16(65289), + 31: uint16(65077), + 32: uint16(65078), + 33: uint16(65371), + 34: uint16(65373), + 35: uint16(65079), + 36: uint16(65080), + 37: uint16(12308), + 38: uint16(12309), + 39: uint16(65081), + 40: uint16(65082), + 41: uint16(12304), + 42: uint16(12305), + 43: uint16(65083), + 44: uint16(65084), + 45: uint16(12298), + 46: uint16(12299), + 47: uint16(65085), + 48: uint16(65086), + 49: uint16(12296), + 50: uint16(12297), + 51: uint16(65087), + 52: uint16(65088), + 53: uint16(12300), + 54: uint16(12301), + 55: uint16(65089), + 56: uint16(65090), + 57: uint16(12302), + 58: uint16(12303), + 59: uint16(65091), + 60: uint16(65092), + 61: uint16(65113), + 62: uint16(65114), + 63: uint16(65115), + 64: uint16(65116), + 65: uint16(65117), + 66: uint16(65118), + 67: uint16(8216), + 68: uint16(8217), + 69: uint16(8220), + 70: uint16(8221), + 71: uint16(12317), + 72: uint16(12318), + 73: uint16(8245), + 74: uint16(8242), + 75: uint16(65283), + 76: uint16(65286), + 77: uint16(65290), + 78: uint16(8251), + 79: uint16(167), + 80: uint16(12291), + 81: uint16(9675), + 82: uint16(9679), + 83: uint16(9651), + 84: uint16(9650), + 85: uint16(9678), + 86: uint16(9734), + 87: uint16(9733), + 88: uint16(9671), + 89: uint16(9670), + 90: uint16(9633), + 91: uint16(9632), + 92: uint16(9661), + 93: uint16(9660), + 94: uint16(12963), + 95: uint16(8453), + 96: uint16(175), + 97: uint16(65507), + 98: uint16(65343), + 99: uint16(717), + 100: uint16(65097), + 101: uint16(65098), + 102: uint16(65101), + 103: uint16(65102), + 104: uint16(65099), + 105: uint16(65100), + 106: uint16(65119), + 107: uint16(65120), + 108: uint16(65121), + 109: uint16(65291), + 110: uint16(65293), + 111: uint16(215), + 112: uint16(247), + 113: uint16(177), + 114: uint16(8730), + 115: uint16(65308), + 116: uint16(65310), + 117: uint16(65309), + 118: uint16(8806), + 119: uint16(8807), + 120: uint16(8800), + 121: uint16(8734), + 122: uint16(8786), + 123: uint16(8801), + 124: uint16(65122), + 125: uint16(65123), + 126: uint16(65124), + 127: uint16(65125), + 128: uint16(65126), + 129: uint16(65374), + 130: uint16(8745), + 131: uint16(8746), + 132: uint16(8869), + 133: uint16(8736), + 134: uint16(8735), + 135: uint16(8895), + 136: uint16(13266), + 137: uint16(13265), + 138: uint16(8747), + 139: uint16(8750), + 140: uint16(8757), + 141: uint16(8756), + 142: uint16(9792), + 143: uint16(9794), + 144: uint16(8853), + 145: uint16(8857), + 146: uint16(8593), + 147: uint16(8595), + 148: uint16(8592), + 149: uint16(8594), + 150: uint16(8598), + 151: uint16(8599), + 152: uint16(8601), + 153: uint16(8600), + 154: uint16(8741), + 155: uint16(8739), + 156: uint16(65295), + }, + 1: { + 0: uint16(65340), + 1: uint16(8725), + 2: uint16(65128), + 3: uint16(65284), + 4: uint16(65509), + 5: uint16(12306), + 6: uint16(65504), + 7: uint16(65505), + 8: uint16(65285), + 9: uint16(65312), + 10: uint16(8451), + 11: uint16(8457), + 12: uint16(65129), + 13: uint16(65130), + 14: uint16(65131), + 15: uint16(13269), + 16: uint16(13212), + 17: uint16(13213), + 18: uint16(13214), + 19: uint16(13262), + 20: uint16(13217), + 21: uint16(13198), + 22: uint16(13199), + 23: uint16(13252), + 24: uint16(176), + 25: uint16(20825), + 26: uint16(20827), + 27: uint16(20830), + 28: uint16(20829), + 29: uint16(20833), + 30: uint16(20835), + 31: uint16(21991), + 32: uint16(29929), + 33: uint16(31950), + 34: uint16(9601), + 35: uint16(9602), + 36: uint16(9603), + 37: uint16(9604), + 38: uint16(9605), + 39: uint16(9606), + 40: uint16(9607), + 41: uint16(9608), + 42: uint16(9615), + 43: uint16(9614), + 44: uint16(9613), + 45: uint16(9612), + 46: uint16(9611), + 47: uint16(9610), + 48: uint16(9609), + 49: uint16(9532), + 50: uint16(9524), + 51: uint16(9516), + 52: uint16(9508), + 53: uint16(9500), + 54: uint16(9620), + 55: uint16(9472), + 56: uint16(9474), + 57: uint16(9621), + 58: uint16(9484), + 59: uint16(9488), + 60: uint16(9492), + 61: uint16(9496), + 62: uint16(9581), + 63: uint16(9582), + 64: uint16(9584), + 65: uint16(9583), + 66: uint16(9552), + 67: uint16(9566), + 68: uint16(9578), + 69: uint16(9569), + 70: uint16(9698), + 71: uint16(9699), + 72: uint16(9701), + 73: uint16(9700), + 74: uint16(9585), + 75: uint16(9586), + 76: uint16(9587), + 77: uint16(65296), + 78: uint16(65297), + 79: uint16(65298), + 80: uint16(65299), + 81: uint16(65300), + 82: uint16(65301), + 83: uint16(65302), + 84: uint16(65303), + 85: uint16(65304), + 86: uint16(65305), + 87: uint16(8544), + 88: uint16(8545), + 89: uint16(8546), + 90: uint16(8547), + 91: uint16(8548), + 92: uint16(8549), + 93: uint16(8550), + 94: uint16(8551), + 95: uint16(8552), + 96: uint16(8553), + 97: uint16(12321), + 98: uint16(12322), + 99: uint16(12323), + 100: uint16(12324), + 101: uint16(12325), + 102: uint16(12326), + 103: uint16(12327), + 104: uint16(12328), + 105: uint16(12329), + 106: uint16(21313), + 107: uint16(21316), + 108: uint16(21317), + 109: uint16(65313), + 110: uint16(65314), + 111: uint16(65315), + 112: uint16(65316), + 113: uint16(65317), + 114: uint16(65318), + 115: uint16(65319), + 116: uint16(65320), + 117: uint16(65321), + 118: uint16(65322), + 119: uint16(65323), + 120: uint16(65324), + 121: uint16(65325), + 122: uint16(65326), + 123: uint16(65327), + 124: uint16(65328), + 125: uint16(65329), + 126: uint16(65330), + 127: uint16(65331), + 128: uint16(65332), + 129: uint16(65333), + 130: uint16(65334), + 131: uint16(65335), + 132: uint16(65336), + 133: uint16(65337), + 134: uint16(65338), + 135: uint16(65345), + 136: uint16(65346), + 137: uint16(65347), + 138: uint16(65348), + 139: uint16(65349), + 140: uint16(65350), + 141: uint16(65351), + 142: uint16(65352), + 143: uint16(65353), + 144: uint16(65354), + 145: uint16(65355), + 146: uint16(65356), + 147: uint16(65357), + 148: uint16(65358), + 149: uint16(65359), + 150: uint16(65360), + 151: uint16(65361), + 152: uint16(65362), + 153: uint16(65363), + 154: uint16(65364), + 155: uint16(65365), + 156: uint16(65366), + }, + 2: { + 0: uint16(65367), + 1: uint16(65368), + 2: uint16(65369), + 3: uint16(65370), + 4: uint16(913), + 5: uint16(914), + 6: uint16(915), + 7: uint16(916), + 8: uint16(917), + 9: uint16(918), + 10: uint16(919), + 11: uint16(920), + 12: uint16(921), + 13: uint16(922), + 14: uint16(923), + 15: uint16(924), + 16: uint16(925), + 17: uint16(926), + 18: uint16(927), + 19: uint16(928), + 20: uint16(929), + 21: uint16(931), + 22: uint16(932), + 23: uint16(933), + 24: uint16(934), + 25: uint16(935), + 26: uint16(936), + 27: uint16(937), + 28: uint16(945), + 29: uint16(946), + 30: uint16(947), + 31: uint16(948), + 32: uint16(949), + 33: uint16(950), + 34: uint16(951), + 35: uint16(952), + 36: uint16(953), + 37: uint16(954), + 38: uint16(955), + 39: uint16(956), + 40: uint16(957), + 41: uint16(958), + 42: uint16(959), + 43: uint16(960), + 44: uint16(961), + 45: uint16(963), + 46: uint16(964), + 47: uint16(965), + 48: uint16(966), + 49: uint16(967), + 50: uint16(968), + 51: uint16(969), + 52: uint16(12549), + 53: uint16(12550), + 54: uint16(12551), + 55: uint16(12552), + 56: uint16(12553), + 57: uint16(12554), + 58: uint16(12555), + 59: uint16(12556), + 60: uint16(12557), + 61: uint16(12558), + 62: uint16(12559), + 63: uint16(12560), + 64: uint16(12561), + 65: uint16(12562), + 66: uint16(12563), + 67: uint16(12564), + 68: uint16(12565), + 69: uint16(12566), + 70: uint16(12567), + 71: uint16(12568), + 72: uint16(12569), + 73: uint16(12570), + 74: uint16(12571), + 75: uint16(12572), + 76: uint16(12573), + 77: uint16(12574), + 78: uint16(12575), + 79: uint16(12576), + 80: uint16(12577), + 81: uint16(12578), + 82: uint16(12579), + 83: uint16(12580), + 84: uint16(12581), + 85: uint16(12582), + 86: uint16(12583), + 87: uint16(12584), + 88: uint16(12585), + 89: uint16(729), + 90: uint16(713), + 91: uint16(714), + 92: uint16(711), + 93: uint16(715), + 94: uint16(9216), + 95: uint16(9217), + 96: uint16(9218), + 97: uint16(9219), + 98: uint16(9220), + 99: uint16(9221), + 100: uint16(9222), + 101: uint16(9223), + 102: uint16(9224), + 103: uint16(9225), + 104: uint16(9226), + 105: uint16(9227), + 106: uint16(9228), + 107: uint16(9229), + 108: uint16(9230), + 109: uint16(9231), + 110: uint16(9232), + 111: uint16(9233), + 112: uint16(9234), + 113: uint16(9235), + 114: uint16(9236), + 115: uint16(9237), + 116: uint16(9238), + 117: uint16(9239), + 118: uint16(9240), + 119: uint16(9241), + 120: uint16(9242), + 121: uint16(9243), + 122: uint16(9244), + 123: uint16(9245), + 124: uint16(9246), + 125: uint16(9247), + 126: uint16(9249), + 127: uint16(8364), + }, + 3: { + 0: uint16(19968), + 1: uint16(20057), + 2: uint16(19969), + 3: uint16(19971), + 4: uint16(20035), + 5: uint16(20061), + 6: uint16(20102), + 7: uint16(20108), + 8: uint16(20154), + 9: uint16(20799), + 10: uint16(20837), + 11: uint16(20843), + 12: uint16(20960), + 13: uint16(20992), + 14: uint16(20993), + 15: uint16(21147), + 16: uint16(21269), + 17: uint16(21313), + 18: uint16(21340), + 19: uint16(21448), + 20: uint16(19977), + 21: uint16(19979), + 22: uint16(19976), + 23: uint16(19978), + 24: uint16(20011), + 25: uint16(20024), + 26: uint16(20961), + 27: uint16(20037), + 28: uint16(20040), + 29: uint16(20063), + 30: uint16(20062), + 31: uint16(20110), + 32: uint16(20129), + 33: uint16(20800), + 34: uint16(20995), + 35: uint16(21242), + 36: uint16(21315), + 37: uint16(21449), + 38: uint16(21475), + 39: uint16(22303), + 40: uint16(22763), + 41: uint16(22805), + 42: uint16(22823), + 43: uint16(22899), + 44: uint16(23376), + 45: uint16(23377), + 46: uint16(23379), + 47: uint16(23544), + 48: uint16(23567), + 49: uint16(23586), + 50: uint16(23608), + 51: uint16(23665), + 52: uint16(24029), + 53: uint16(24037), + 54: uint16(24049), + 55: uint16(24050), + 56: uint16(24051), + 57: uint16(24062), + 58: uint16(24178), + 59: uint16(24318), + 60: uint16(24331), + 61: uint16(24339), + 62: uint16(25165), + 63: uint16(19985), + 64: uint16(19984), + 65: uint16(19981), + 66: uint16(20013), + 67: uint16(20016), + 68: uint16(20025), + 69: uint16(20043), + 70: uint16(23609), + 71: uint16(20104), + 72: uint16(20113), + 73: uint16(20117), + 74: uint16(20114), + 75: uint16(20116), + 76: uint16(20130), + 77: uint16(20161), + 78: uint16(20160), + 79: uint16(20163), + 80: uint16(20166), + 81: uint16(20167), + 82: uint16(20173), + 83: uint16(20170), + 84: uint16(20171), + 85: uint16(20164), + 86: uint16(20803), + 87: uint16(20801), + 88: uint16(20839), + 89: uint16(20845), + 90: uint16(20846), + 91: uint16(20844), + 92: uint16(20887), + 93: uint16(20982), + 94: uint16(20998), + 95: uint16(20999), + 96: uint16(21000), + 97: uint16(21243), + 98: uint16(21246), + 99: uint16(21247), + 100: uint16(21270), + 101: uint16(21305), + 102: uint16(21320), + 103: uint16(21319), + 104: uint16(21317), + 105: uint16(21342), + 106: uint16(21380), + 107: uint16(21451), + 108: uint16(21450), + 109: uint16(21453), + 110: uint16(22764), + 111: uint16(22825), + 112: uint16(22827), + 113: uint16(22826), + 114: uint16(22829), + 115: uint16(23380), + 116: uint16(23569), + 117: uint16(23588), + 118: uint16(23610), + 119: uint16(23663), + 120: uint16(24052), + 121: uint16(24187), + 122: uint16(24319), + 123: uint16(24340), + 124: uint16(24341), + 125: uint16(24515), + 126: uint16(25096), + 127: uint16(25142), + 128: uint16(25163), + 129: uint16(25166), + 130: uint16(25903), + 131: uint16(25991), + 132: uint16(26007), + 133: uint16(26020), + 134: uint16(26041), + 135: uint16(26085), + 136: uint16(26352), + 137: uint16(26376), + 138: uint16(26408), + 139: uint16(27424), + 140: uint16(27490), + 141: uint16(27513), + 142: uint16(27595), + 143: uint16(27604), + 144: uint16(27611), + 145: uint16(27663), + 146: uint16(27700), + 147: uint16(28779), + 148: uint16(29226), + 149: uint16(29238), + 150: uint16(29243), + 151: uint16(29255), + 152: uint16(29273), + 153: uint16(29275), + 154: uint16(29356), + 155: uint16(29579), + 156: uint16(19993), + }, + 4: { + 0: uint16(19990), + 1: uint16(19989), + 2: uint16(19988), + 3: uint16(19992), + 4: uint16(20027), + 5: uint16(20045), + 6: uint16(20047), + 7: uint16(20046), + 8: uint16(20197), + 9: uint16(20184), + 10: uint16(20180), + 11: uint16(20181), + 12: uint16(20182), + 13: uint16(20183), + 14: uint16(20195), + 15: uint16(20196), + 16: uint16(20185), + 17: uint16(20190), + 18: uint16(20805), + 19: uint16(20804), + 20: uint16(20873), + 21: uint16(20874), + 22: uint16(20908), + 23: uint16(20985), + 24: uint16(20986), + 25: uint16(20984), + 26: uint16(21002), + 27: uint16(21152), + 28: uint16(21151), + 29: uint16(21253), + 30: uint16(21254), + 31: uint16(21271), + 32: uint16(21277), + 33: uint16(20191), + 34: uint16(21322), + 35: uint16(21321), + 36: uint16(21345), + 37: uint16(21344), + 38: uint16(21359), + 39: uint16(21358), + 40: uint16(21435), + 41: uint16(21487), + 42: uint16(21476), + 43: uint16(21491), + 44: uint16(21484), + 45: uint16(21486), + 46: uint16(21481), + 47: uint16(21480), + 48: uint16(21500), + 49: uint16(21496), + 50: uint16(21493), + 51: uint16(21483), + 52: uint16(21478), + 53: uint16(21482), + 54: uint16(21490), + 55: uint16(21489), + 56: uint16(21488), + 57: uint16(21477), + 58: uint16(21485), + 59: uint16(21499), + 60: uint16(22235), + 61: uint16(22234), + 62: uint16(22806), + 63: uint16(22830), + 64: uint16(22833), + 65: uint16(22900), + 66: uint16(22902), + 67: uint16(23381), + 68: uint16(23427), + 69: uint16(23612), + 70: uint16(24040), + 71: uint16(24039), + 72: uint16(24038), + 73: uint16(24066), + 74: uint16(24067), + 75: uint16(24179), + 76: uint16(24188), + 77: uint16(24321), + 78: uint16(24344), + 79: uint16(24343), + 80: uint16(24517), + 81: uint16(25098), + 82: uint16(25171), + 83: uint16(25172), + 84: uint16(25170), + 85: uint16(25169), + 86: uint16(26021), + 87: uint16(26086), + 88: uint16(26414), + 89: uint16(26412), + 90: uint16(26410), + 91: uint16(26411), + 92: uint16(26413), + 93: uint16(27491), + 94: uint16(27597), + 95: uint16(27665), + 96: uint16(27664), + 97: uint16(27704), + 98: uint16(27713), + 99: uint16(27712), + 100: uint16(27710), + 101: uint16(29359), + 102: uint16(29572), + 103: uint16(29577), + 104: uint16(29916), + 105: uint16(29926), + 106: uint16(29976), + 107: uint16(29983), + 108: uint16(29992), + 109: uint16(29993), + 110: uint16(30000), + 111: uint16(30001), + 112: uint16(30002), + 113: uint16(30003), + 114: uint16(30091), + 115: uint16(30333), + 116: uint16(30382), + 117: uint16(30399), + 118: uint16(30446), + 119: uint16(30683), + 120: uint16(30690), + 121: uint16(30707), + 122: uint16(31034), + 123: uint16(31166), + 124: uint16(31348), + 125: uint16(31435), + 126: uint16(19998), + 127: uint16(19999), + 128: uint16(20050), + 129: uint16(20051), + 130: uint16(20073), + 131: uint16(20121), + 132: uint16(20132), + 133: uint16(20134), + 134: uint16(20133), + 135: uint16(20223), + 136: uint16(20233), + 137: uint16(20249), + 138: uint16(20234), + 139: uint16(20245), + 140: uint16(20237), + 141: uint16(20240), + 142: uint16(20241), + 143: uint16(20239), + 144: uint16(20210), + 145: uint16(20214), + 146: uint16(20219), + 147: uint16(20208), + 148: uint16(20211), + 149: uint16(20221), + 150: uint16(20225), + 151: uint16(20235), + 152: uint16(20809), + 153: uint16(20807), + 154: uint16(20806), + 155: uint16(20808), + 156: uint16(20840), + }, + 5: { + 0: uint16(20849), + 1: uint16(20877), + 2: uint16(20912), + 3: uint16(21015), + 4: uint16(21009), + 5: uint16(21010), + 6: uint16(21006), + 7: uint16(21014), + 8: uint16(21155), + 9: uint16(21256), + 10: uint16(21281), + 11: uint16(21280), + 12: uint16(21360), + 13: uint16(21361), + 14: uint16(21513), + 15: uint16(21519), + 16: uint16(21516), + 17: uint16(21514), + 18: uint16(21520), + 19: uint16(21505), + 20: uint16(21515), + 21: uint16(21508), + 22: uint16(21521), + 23: uint16(21517), + 24: uint16(21512), + 25: uint16(21507), + 26: uint16(21518), + 27: uint16(21510), + 28: uint16(21522), + 29: uint16(22240), + 30: uint16(22238), + 31: uint16(22237), + 32: uint16(22323), + 33: uint16(22320), + 34: uint16(22312), + 35: uint16(22317), + 36: uint16(22316), + 37: uint16(22319), + 38: uint16(22313), + 39: uint16(22809), + 40: uint16(22810), + 41: uint16(22839), + 42: uint16(22840), + 43: uint16(22916), + 44: uint16(22904), + 45: uint16(22915), + 46: uint16(22909), + 47: uint16(22905), + 48: uint16(22914), + 49: uint16(22913), + 50: uint16(23383), + 51: uint16(23384), + 52: uint16(23431), + 53: uint16(23432), + 54: uint16(23429), + 55: uint16(23433), + 56: uint16(23546), + 57: uint16(23574), + 58: uint16(23673), + 59: uint16(24030), + 60: uint16(24070), + 61: uint16(24182), + 62: uint16(24180), + 63: uint16(24335), + 64: uint16(24347), + 65: uint16(24537), + 66: uint16(24534), + 67: uint16(25102), + 68: uint16(25100), + 69: uint16(25101), + 70: uint16(25104), + 71: uint16(25187), + 72: uint16(25179), + 73: uint16(25176), + 74: uint16(25910), + 75: uint16(26089), + 76: uint16(26088), + 77: uint16(26092), + 78: uint16(26093), + 79: uint16(26354), + 80: uint16(26355), + 81: uint16(26377), + 82: uint16(26429), + 83: uint16(26420), + 84: uint16(26417), + 85: uint16(26421), + 86: uint16(27425), + 87: uint16(27492), + 88: uint16(27515), + 89: uint16(27670), + 90: uint16(27741), + 91: uint16(27735), + 92: uint16(27737), + 93: uint16(27743), + 94: uint16(27744), + 95: uint16(27728), + 96: uint16(27733), + 97: uint16(27745), + 98: uint16(27739), + 99: uint16(27725), + 100: uint16(27726), + 101: uint16(28784), + 102: uint16(29279), + 103: uint16(29277), + 104: uint16(30334), + 105: uint16(31481), + 106: uint16(31859), + 107: uint16(31992), + 108: uint16(32566), + 109: uint16(32650), + 110: uint16(32701), + 111: uint16(32769), + 112: uint16(32771), + 113: uint16(32780), + 114: uint16(32786), + 115: uint16(32819), + 116: uint16(32895), + 117: uint16(32905), + 118: uint16(32907), + 119: uint16(32908), + 120: uint16(33251), + 121: uint16(33258), + 122: uint16(33267), + 123: uint16(33276), + 124: uint16(33292), + 125: uint16(33307), + 126: uint16(33311), + 127: uint16(33390), + 128: uint16(33394), + 129: uint16(33406), + 130: uint16(34411), + 131: uint16(34880), + 132: uint16(34892), + 133: uint16(34915), + 134: uint16(35199), + 135: uint16(38433), + 136: uint16(20018), + 137: uint16(20136), + 138: uint16(20301), + 139: uint16(20303), + 140: uint16(20295), + 141: uint16(20311), + 142: uint16(20318), + 143: uint16(20276), + 144: uint16(20315), + 145: uint16(20309), + 146: uint16(20272), + 147: uint16(20304), + 148: uint16(20305), + 149: uint16(20285), + 150: uint16(20282), + 151: uint16(20280), + 152: uint16(20291), + 153: uint16(20308), + 154: uint16(20284), + 155: uint16(20294), + 156: uint16(20323), + }, + 6: { + 0: uint16(20316), + 1: uint16(20320), + 2: uint16(20271), + 3: uint16(20302), + 4: uint16(20278), + 5: uint16(20313), + 6: uint16(20317), + 7: uint16(20296), + 8: uint16(20314), + 9: uint16(20812), + 10: uint16(20811), + 11: uint16(20813), + 12: uint16(20853), + 13: uint16(20918), + 14: uint16(20919), + 15: uint16(21029), + 16: uint16(21028), + 17: uint16(21033), + 18: uint16(21034), + 19: uint16(21032), + 20: uint16(21163), + 21: uint16(21161), + 22: uint16(21162), + 23: uint16(21164), + 24: uint16(21283), + 25: uint16(21363), + 26: uint16(21365), + 27: uint16(21533), + 28: uint16(21549), + 29: uint16(21534), + 30: uint16(21566), + 31: uint16(21542), + 32: uint16(21582), + 33: uint16(21543), + 34: uint16(21574), + 35: uint16(21571), + 36: uint16(21555), + 37: uint16(21576), + 38: uint16(21570), + 39: uint16(21531), + 40: uint16(21545), + 41: uint16(21578), + 42: uint16(21561), + 43: uint16(21563), + 44: uint16(21560), + 45: uint16(21550), + 46: uint16(21557), + 47: uint16(21558), + 48: uint16(21536), + 49: uint16(21564), + 50: uint16(21568), + 51: uint16(21553), + 52: uint16(21547), + 53: uint16(21535), + 54: uint16(21548), + 55: uint16(22250), + 56: uint16(22256), + 57: uint16(22244), + 58: uint16(22251), + 59: uint16(22346), + 60: uint16(22353), + 61: uint16(22336), + 62: uint16(22349), + 63: uint16(22343), + 64: uint16(22350), + 65: uint16(22334), + 66: uint16(22352), + 67: uint16(22351), + 68: uint16(22331), + 69: uint16(22767), + 70: uint16(22846), + 71: uint16(22941), + 72: uint16(22930), + 73: uint16(22952), + 74: uint16(22942), + 75: uint16(22947), + 76: uint16(22937), + 77: uint16(22934), + 78: uint16(22925), + 79: uint16(22948), + 80: uint16(22931), + 81: uint16(22922), + 82: uint16(22949), + 83: uint16(23389), + 84: uint16(23388), + 85: uint16(23386), + 86: uint16(23387), + 87: uint16(23436), + 88: uint16(23435), + 89: uint16(23439), + 90: uint16(23596), + 91: uint16(23616), + 92: uint16(23617), + 93: uint16(23615), + 94: uint16(23614), + 95: uint16(23696), + 96: uint16(23697), + 97: uint16(23700), + 98: uint16(23692), + 99: uint16(24043), + 100: uint16(24076), + 101: uint16(24207), + 102: uint16(24199), + 103: uint16(24202), + 104: uint16(24311), + 105: uint16(24324), + 106: uint16(24351), + 107: uint16(24420), + 108: uint16(24418), + 109: uint16(24439), + 110: uint16(24441), + 111: uint16(24536), + 112: uint16(24524), + 113: uint16(24535), + 114: uint16(24525), + 115: uint16(24561), + 116: uint16(24555), + 117: uint16(24568), + 118: uint16(24554), + 119: uint16(25106), + 120: uint16(25105), + 121: uint16(25220), + 122: uint16(25239), + 123: uint16(25238), + 124: uint16(25216), + 125: uint16(25206), + 126: uint16(25225), + 127: uint16(25197), + 128: uint16(25226), + 129: uint16(25212), + 130: uint16(25214), + 131: uint16(25209), + 132: uint16(25203), + 133: uint16(25234), + 134: uint16(25199), + 135: uint16(25240), + 136: uint16(25198), + 137: uint16(25237), + 138: uint16(25235), + 139: uint16(25233), + 140: uint16(25222), + 141: uint16(25913), + 142: uint16(25915), + 143: uint16(25912), + 144: uint16(26097), + 145: uint16(26356), + 146: uint16(26463), + 147: uint16(26446), + 148: uint16(26447), + 149: uint16(26448), + 150: uint16(26449), + 151: uint16(26460), + 152: uint16(26454), + 153: uint16(26462), + 154: uint16(26441), + 155: uint16(26438), + 156: uint16(26464), + }, + 7: { + 0: uint16(26451), + 1: uint16(26455), + 2: uint16(27493), + 3: uint16(27599), + 4: uint16(27714), + 5: uint16(27742), + 6: uint16(27801), + 7: uint16(27777), + 8: uint16(27784), + 9: uint16(27785), + 10: uint16(27781), + 11: uint16(27803), + 12: uint16(27754), + 13: uint16(27770), + 14: uint16(27792), + 15: uint16(27760), + 16: uint16(27788), + 17: uint16(27752), + 18: uint16(27798), + 19: uint16(27794), + 20: uint16(27773), + 21: uint16(27779), + 22: uint16(27762), + 23: uint16(27774), + 24: uint16(27764), + 25: uint16(27782), + 26: uint16(27766), + 27: uint16(27789), + 28: uint16(27796), + 29: uint16(27800), + 30: uint16(27778), + 31: uint16(28790), + 32: uint16(28796), + 33: uint16(28797), + 34: uint16(28792), + 35: uint16(29282), + 36: uint16(29281), + 37: uint16(29280), + 38: uint16(29380), + 39: uint16(29378), + 40: uint16(29590), + 41: uint16(29996), + 42: uint16(29995), + 43: uint16(30007), + 44: uint16(30008), + 45: uint16(30338), + 46: uint16(30447), + 47: uint16(30691), + 48: uint16(31169), + 49: uint16(31168), + 50: uint16(31167), + 51: uint16(31350), + 52: uint16(31995), + 53: uint16(32597), + 54: uint16(32918), + 55: uint16(32915), + 56: uint16(32925), + 57: uint16(32920), + 58: uint16(32923), + 59: uint16(32922), + 60: uint16(32946), + 61: uint16(33391), + 62: uint16(33426), + 63: uint16(33419), + 64: uint16(33421), + 65: uint16(35211), + 66: uint16(35282), + 67: uint16(35328), + 68: uint16(35895), + 69: uint16(35910), + 70: uint16(35925), + 71: uint16(35997), + 72: uint16(36196), + 73: uint16(36208), + 74: uint16(36275), + 75: uint16(36523), + 76: uint16(36554), + 77: uint16(36763), + 78: uint16(36784), + 79: uint16(36802), + 80: uint16(36806), + 81: uint16(36805), + 82: uint16(36804), + 83: uint16(24033), + 84: uint16(37009), + 85: uint16(37026), + 86: uint16(37034), + 87: uint16(37030), + 88: uint16(37027), + 89: uint16(37193), + 90: uint16(37318), + 91: uint16(37324), + 92: uint16(38450), + 93: uint16(38446), + 94: uint16(38449), + 95: uint16(38442), + 96: uint16(38444), + 97: uint16(20006), + 98: uint16(20054), + 99: uint16(20083), + 100: uint16(20107), + 101: uint16(20123), + 102: uint16(20126), + 103: uint16(20139), + 104: uint16(20140), + 105: uint16(20335), + 106: uint16(20381), + 107: uint16(20365), + 108: uint16(20339), + 109: uint16(20351), + 110: uint16(20332), + 111: uint16(20379), + 112: uint16(20363), + 113: uint16(20358), + 114: uint16(20355), + 115: uint16(20336), + 116: uint16(20341), + 117: uint16(20360), + 118: uint16(20329), + 119: uint16(20347), + 120: uint16(20374), + 121: uint16(20350), + 122: uint16(20367), + 123: uint16(20369), + 124: uint16(20346), + 125: uint16(20820), + 126: uint16(20818), + 127: uint16(20821), + 128: uint16(20841), + 129: uint16(20855), + 130: uint16(20854), + 131: uint16(20856), + 132: uint16(20925), + 133: uint16(20989), + 134: uint16(21051), + 135: uint16(21048), + 136: uint16(21047), + 137: uint16(21050), + 138: uint16(21040), + 139: uint16(21038), + 140: uint16(21046), + 141: uint16(21057), + 142: uint16(21182), + 143: uint16(21179), + 144: uint16(21330), + 145: uint16(21332), + 146: uint16(21331), + 147: uint16(21329), + 148: uint16(21350), + 149: uint16(21367), + 150: uint16(21368), + 151: uint16(21369), + 152: uint16(21462), + 153: uint16(21460), + 154: uint16(21463), + 155: uint16(21619), + 156: uint16(21621), + }, + 8: { + 0: uint16(21654), + 1: uint16(21624), + 2: uint16(21653), + 3: uint16(21632), + 4: uint16(21627), + 5: uint16(21623), + 6: uint16(21636), + 7: uint16(21650), + 8: uint16(21638), + 9: uint16(21628), + 10: uint16(21648), + 11: uint16(21617), + 12: uint16(21622), + 13: uint16(21644), + 14: uint16(21658), + 15: uint16(21602), + 16: uint16(21608), + 17: uint16(21643), + 18: uint16(21629), + 19: uint16(21646), + 20: uint16(22266), + 21: uint16(22403), + 22: uint16(22391), + 23: uint16(22378), + 24: uint16(22377), + 25: uint16(22369), + 26: uint16(22374), + 27: uint16(22372), + 28: uint16(22396), + 29: uint16(22812), + 30: uint16(22857), + 31: uint16(22855), + 32: uint16(22856), + 33: uint16(22852), + 34: uint16(22868), + 35: uint16(22974), + 36: uint16(22971), + 37: uint16(22996), + 38: uint16(22969), + 39: uint16(22958), + 40: uint16(22993), + 41: uint16(22982), + 42: uint16(22992), + 43: uint16(22989), + 44: uint16(22987), + 45: uint16(22995), + 46: uint16(22986), + 47: uint16(22959), + 48: uint16(22963), + 49: uint16(22994), + 50: uint16(22981), + 51: uint16(23391), + 52: uint16(23396), + 53: uint16(23395), + 54: uint16(23447), + 55: uint16(23450), + 56: uint16(23448), + 57: uint16(23452), + 58: uint16(23449), + 59: uint16(23451), + 60: uint16(23578), + 61: uint16(23624), + 62: uint16(23621), + 63: uint16(23622), + 64: uint16(23735), + 65: uint16(23713), + 66: uint16(23736), + 67: uint16(23721), + 68: uint16(23723), + 69: uint16(23729), + 70: uint16(23731), + 71: uint16(24088), + 72: uint16(24090), + 73: uint16(24086), + 74: uint16(24085), + 75: uint16(24091), + 76: uint16(24081), + 77: uint16(24184), + 78: uint16(24218), + 79: uint16(24215), + 80: uint16(24220), + 81: uint16(24213), + 82: uint16(24214), + 83: uint16(24310), + 84: uint16(24358), + 85: uint16(24359), + 86: uint16(24361), + 87: uint16(24448), + 88: uint16(24449), + 89: uint16(24447), + 90: uint16(24444), + 91: uint16(24541), + 92: uint16(24544), + 93: uint16(24573), + 94: uint16(24565), + 95: uint16(24575), + 96: uint16(24591), + 97: uint16(24596), + 98: uint16(24623), + 99: uint16(24629), + 100: uint16(24598), + 101: uint16(24618), + 102: uint16(24597), + 103: uint16(24609), + 104: uint16(24615), + 105: uint16(24617), + 106: uint16(24619), + 107: uint16(24603), + 108: uint16(25110), + 109: uint16(25109), + 110: uint16(25151), + 111: uint16(25150), + 112: uint16(25152), + 113: uint16(25215), + 114: uint16(25289), + 115: uint16(25292), + 116: uint16(25284), + 117: uint16(25279), + 118: uint16(25282), + 119: uint16(25273), + 120: uint16(25298), + 121: uint16(25307), + 122: uint16(25259), + 123: uint16(25299), + 124: uint16(25300), + 125: uint16(25291), + 126: uint16(25288), + 127: uint16(25256), + 128: uint16(25277), + 129: uint16(25276), + 130: uint16(25296), + 131: uint16(25305), + 132: uint16(25287), + 133: uint16(25293), + 134: uint16(25269), + 135: uint16(25306), + 136: uint16(25265), + 137: uint16(25304), + 138: uint16(25302), + 139: uint16(25303), + 140: uint16(25286), + 141: uint16(25260), + 142: uint16(25294), + 143: uint16(25918), + 144: uint16(26023), + 145: uint16(26044), + 146: uint16(26106), + 147: uint16(26132), + 148: uint16(26131), + 149: uint16(26124), + 150: uint16(26118), + 151: uint16(26114), + 152: uint16(26126), + 153: uint16(26112), + 154: uint16(26127), + 155: uint16(26133), + 156: uint16(26122), + }, + 9: { + 0: uint16(26119), + 1: uint16(26381), + 2: uint16(26379), + 3: uint16(26477), + 4: uint16(26507), + 5: uint16(26517), + 6: uint16(26481), + 7: uint16(26524), + 8: uint16(26483), + 9: uint16(26487), + 10: uint16(26503), + 11: uint16(26525), + 12: uint16(26519), + 13: uint16(26479), + 14: uint16(26480), + 15: uint16(26495), + 16: uint16(26505), + 17: uint16(26494), + 18: uint16(26512), + 19: uint16(26485), + 20: uint16(26522), + 21: uint16(26515), + 22: uint16(26492), + 23: uint16(26474), + 24: uint16(26482), + 25: uint16(27427), + 26: uint16(27494), + 27: uint16(27495), + 28: uint16(27519), + 29: uint16(27667), + 30: uint16(27675), + 31: uint16(27875), + 32: uint16(27880), + 33: uint16(27891), + 34: uint16(27825), + 35: uint16(27852), + 36: uint16(27877), + 37: uint16(27827), + 38: uint16(27837), + 39: uint16(27838), + 40: uint16(27836), + 41: uint16(27874), + 42: uint16(27819), + 43: uint16(27861), + 44: uint16(27859), + 45: uint16(27832), + 46: uint16(27844), + 47: uint16(27833), + 48: uint16(27841), + 49: uint16(27822), + 50: uint16(27863), + 51: uint16(27845), + 52: uint16(27889), + 53: uint16(27839), + 54: uint16(27835), + 55: uint16(27873), + 56: uint16(27867), + 57: uint16(27850), + 58: uint16(27820), + 59: uint16(27887), + 60: uint16(27868), + 61: uint16(27862), + 62: uint16(27872), + 63: uint16(28821), + 64: uint16(28814), + 65: uint16(28818), + 66: uint16(28810), + 67: uint16(28825), + 68: uint16(29228), + 69: uint16(29229), + 70: uint16(29240), + 71: uint16(29256), + 72: uint16(29287), + 73: uint16(29289), + 74: uint16(29376), + 75: uint16(29390), + 76: uint16(29401), + 77: uint16(29399), + 78: uint16(29392), + 79: uint16(29609), + 80: uint16(29608), + 81: uint16(29599), + 82: uint16(29611), + 83: uint16(29605), + 84: uint16(30013), + 85: uint16(30109), + 86: uint16(30105), + 87: uint16(30106), + 88: uint16(30340), + 89: uint16(30402), + 90: uint16(30450), + 91: uint16(30452), + 92: uint16(30693), + 93: uint16(30717), + 94: uint16(31038), + 95: uint16(31040), + 96: uint16(31041), + 97: uint16(31177), + 98: uint16(31176), + 99: uint16(31354), + 100: uint16(31353), + 101: uint16(31482), + 102: uint16(31998), + 103: uint16(32596), + 104: uint16(32652), + 105: uint16(32651), + 106: uint16(32773), + 107: uint16(32954), + 108: uint16(32933), + 109: uint16(32930), + 110: uint16(32945), + 111: uint16(32929), + 112: uint16(32939), + 113: uint16(32937), + 114: uint16(32948), + 115: uint16(32938), + 116: uint16(32943), + 117: uint16(33253), + 118: uint16(33278), + 119: uint16(33293), + 120: uint16(33459), + 121: uint16(33437), + 122: uint16(33433), + 123: uint16(33453), + 124: uint16(33469), + 125: uint16(33439), + 126: uint16(33465), + 127: uint16(33457), + 128: uint16(33452), + 129: uint16(33445), + 130: uint16(33455), + 131: uint16(33464), + 132: uint16(33443), + 133: uint16(33456), + 134: uint16(33470), + 135: uint16(33463), + 136: uint16(34382), + 137: uint16(34417), + 138: uint16(21021), + 139: uint16(34920), + 140: uint16(36555), + 141: uint16(36814), + 142: uint16(36820), + 143: uint16(36817), + 144: uint16(37045), + 145: uint16(37048), + 146: uint16(37041), + 147: uint16(37046), + 148: uint16(37319), + 149: uint16(37329), + 150: uint16(38263), + 151: uint16(38272), + 152: uint16(38428), + 153: uint16(38464), + 154: uint16(38463), + 155: uint16(38459), + 156: uint16(38468), + }, + 10: { + 0: uint16(38466), + 1: uint16(38585), + 2: uint16(38632), + 3: uint16(38738), + 4: uint16(38750), + 5: uint16(20127), + 6: uint16(20141), + 7: uint16(20142), + 8: uint16(20449), + 9: uint16(20405), + 10: uint16(20399), + 11: uint16(20415), + 12: uint16(20448), + 13: uint16(20433), + 14: uint16(20431), + 15: uint16(20445), + 16: uint16(20419), + 17: uint16(20406), + 18: uint16(20440), + 19: uint16(20447), + 20: uint16(20426), + 21: uint16(20439), + 22: uint16(20398), + 23: uint16(20432), + 24: uint16(20420), + 25: uint16(20418), + 26: uint16(20442), + 27: uint16(20430), + 28: uint16(20446), + 29: uint16(20407), + 30: uint16(20823), + 31: uint16(20882), + 32: uint16(20881), + 33: uint16(20896), + 34: uint16(21070), + 35: uint16(21059), + 36: uint16(21066), + 37: uint16(21069), + 38: uint16(21068), + 39: uint16(21067), + 40: uint16(21063), + 41: uint16(21191), + 42: uint16(21193), + 43: uint16(21187), + 44: uint16(21185), + 45: uint16(21261), + 46: uint16(21335), + 47: uint16(21371), + 48: uint16(21402), + 49: uint16(21467), + 50: uint16(21676), + 51: uint16(21696), + 52: uint16(21672), + 53: uint16(21710), + 54: uint16(21705), + 55: uint16(21688), + 56: uint16(21670), + 57: uint16(21683), + 58: uint16(21703), + 59: uint16(21698), + 60: uint16(21693), + 61: uint16(21674), + 62: uint16(21697), + 63: uint16(21700), + 64: uint16(21704), + 65: uint16(21679), + 66: uint16(21675), + 67: uint16(21681), + 68: uint16(21691), + 69: uint16(21673), + 70: uint16(21671), + 71: uint16(21695), + 72: uint16(22271), + 73: uint16(22402), + 74: uint16(22411), + 75: uint16(22432), + 76: uint16(22435), + 77: uint16(22434), + 78: uint16(22478), + 79: uint16(22446), + 80: uint16(22419), + 81: uint16(22869), + 82: uint16(22865), + 83: uint16(22863), + 84: uint16(22862), + 85: uint16(22864), + 86: uint16(23004), + 87: uint16(23000), + 88: uint16(23039), + 89: uint16(23011), + 90: uint16(23016), + 91: uint16(23043), + 92: uint16(23013), + 93: uint16(23018), + 94: uint16(23002), + 95: uint16(23014), + 96: uint16(23041), + 97: uint16(23035), + 98: uint16(23401), + 99: uint16(23459), + 100: uint16(23462), + 101: uint16(23460), + 102: uint16(23458), + 103: uint16(23461), + 104: uint16(23553), + 105: uint16(23630), + 106: uint16(23631), + 107: uint16(23629), + 108: uint16(23627), + 109: uint16(23769), + 110: uint16(23762), + 111: uint16(24055), + 112: uint16(24093), + 113: uint16(24101), + 114: uint16(24095), + 115: uint16(24189), + 116: uint16(24224), + 117: uint16(24230), + 118: uint16(24314), + 119: uint16(24328), + 120: uint16(24365), + 121: uint16(24421), + 122: uint16(24456), + 123: uint16(24453), + 124: uint16(24458), + 125: uint16(24459), + 126: uint16(24455), + 127: uint16(24460), + 128: uint16(24457), + 129: uint16(24594), + 130: uint16(24605), + 131: uint16(24608), + 132: uint16(24613), + 133: uint16(24590), + 134: uint16(24616), + 135: uint16(24653), + 136: uint16(24688), + 137: uint16(24680), + 138: uint16(24674), + 139: uint16(24646), + 140: uint16(24643), + 141: uint16(24684), + 142: uint16(24683), + 143: uint16(24682), + 144: uint16(24676), + 145: uint16(25153), + 146: uint16(25308), + 147: uint16(25366), + 148: uint16(25353), + 149: uint16(25340), + 150: uint16(25325), + 151: uint16(25345), + 152: uint16(25326), + 153: uint16(25341), + 154: uint16(25351), + 155: uint16(25329), + 156: uint16(25335), + }, + 11: { + 0: uint16(25327), + 1: uint16(25324), + 2: uint16(25342), + 3: uint16(25332), + 4: uint16(25361), + 5: uint16(25346), + 6: uint16(25919), + 7: uint16(25925), + 8: uint16(26027), + 9: uint16(26045), + 10: uint16(26082), + 11: uint16(26149), + 12: uint16(26157), + 13: uint16(26144), + 14: uint16(26151), + 15: uint16(26159), + 16: uint16(26143), + 17: uint16(26152), + 18: uint16(26161), + 19: uint16(26148), + 20: uint16(26359), + 21: uint16(26623), + 22: uint16(26579), + 23: uint16(26609), + 24: uint16(26580), + 25: uint16(26576), + 26: uint16(26604), + 27: uint16(26550), + 28: uint16(26543), + 29: uint16(26613), + 30: uint16(26601), + 31: uint16(26607), + 32: uint16(26564), + 33: uint16(26577), + 34: uint16(26548), + 35: uint16(26586), + 36: uint16(26597), + 37: uint16(26552), + 38: uint16(26575), + 39: uint16(26590), + 40: uint16(26611), + 41: uint16(26544), + 42: uint16(26585), + 43: uint16(26594), + 44: uint16(26589), + 45: uint16(26578), + 46: uint16(27498), + 47: uint16(27523), + 48: uint16(27526), + 49: uint16(27573), + 50: uint16(27602), + 51: uint16(27607), + 52: uint16(27679), + 53: uint16(27849), + 54: uint16(27915), + 55: uint16(27954), + 56: uint16(27946), + 57: uint16(27969), + 58: uint16(27941), + 59: uint16(27916), + 60: uint16(27953), + 61: uint16(27934), + 62: uint16(27927), + 63: uint16(27963), + 64: uint16(27965), + 65: uint16(27966), + 66: uint16(27958), + 67: uint16(27931), + 68: uint16(27893), + 69: uint16(27961), + 70: uint16(27943), + 71: uint16(27960), + 72: uint16(27945), + 73: uint16(27950), + 74: uint16(27957), + 75: uint16(27918), + 76: uint16(27947), + 77: uint16(28843), + 78: uint16(28858), + 79: uint16(28851), + 80: uint16(28844), + 81: uint16(28847), + 82: uint16(28845), + 83: uint16(28856), + 84: uint16(28846), + 85: uint16(28836), + 86: uint16(29232), + 87: uint16(29298), + 88: uint16(29295), + 89: uint16(29300), + 90: uint16(29417), + 91: uint16(29408), + 92: uint16(29409), + 93: uint16(29623), + 94: uint16(29642), + 95: uint16(29627), + 96: uint16(29618), + 97: uint16(29645), + 98: uint16(29632), + 99: uint16(29619), + 100: uint16(29978), + 101: uint16(29997), + 102: uint16(30031), + 103: uint16(30028), + 104: uint16(30030), + 105: uint16(30027), + 106: uint16(30123), + 107: uint16(30116), + 108: uint16(30117), + 109: uint16(30114), + 110: uint16(30115), + 111: uint16(30328), + 112: uint16(30342), + 113: uint16(30343), + 114: uint16(30344), + 115: uint16(30408), + 116: uint16(30406), + 117: uint16(30403), + 118: uint16(30405), + 119: uint16(30465), + 120: uint16(30457), + 121: uint16(30456), + 122: uint16(30473), + 123: uint16(30475), + 124: uint16(30462), + 125: uint16(30460), + 126: uint16(30471), + 127: uint16(30684), + 128: uint16(30722), + 129: uint16(30740), + 130: uint16(30732), + 131: uint16(30733), + 132: uint16(31046), + 133: uint16(31049), + 134: uint16(31048), + 135: uint16(31047), + 136: uint16(31161), + 137: uint16(31162), + 138: uint16(31185), + 139: uint16(31186), + 140: uint16(31179), + 141: uint16(31359), + 142: uint16(31361), + 143: uint16(31487), + 144: uint16(31485), + 145: uint16(31869), + 146: uint16(32002), + 147: uint16(32005), + 148: uint16(32000), + 149: uint16(32009), + 150: uint16(32007), + 151: uint16(32004), + 152: uint16(32006), + 153: uint16(32568), + 154: uint16(32654), + 155: uint16(32703), + 156: uint16(32772), + }, + 12: { + 0: uint16(32784), + 1: uint16(32781), + 2: uint16(32785), + 3: uint16(32822), + 4: uint16(32982), + 5: uint16(32997), + 6: uint16(32986), + 7: uint16(32963), + 8: uint16(32964), + 9: uint16(32972), + 10: uint16(32993), + 11: uint16(32987), + 12: uint16(32974), + 13: uint16(32990), + 14: uint16(32996), + 15: uint16(32989), + 16: uint16(33268), + 17: uint16(33314), + 18: uint16(33511), + 19: uint16(33539), + 20: uint16(33541), + 21: uint16(33507), + 22: uint16(33499), + 23: uint16(33510), + 24: uint16(33540), + 25: uint16(33509), + 26: uint16(33538), + 27: uint16(33545), + 28: uint16(33490), + 29: uint16(33495), + 30: uint16(33521), + 31: uint16(33537), + 32: uint16(33500), + 33: uint16(33492), + 34: uint16(33489), + 35: uint16(33502), + 36: uint16(33491), + 37: uint16(33503), + 38: uint16(33519), + 39: uint16(33542), + 40: uint16(34384), + 41: uint16(34425), + 42: uint16(34427), + 43: uint16(34426), + 44: uint16(34893), + 45: uint16(34923), + 46: uint16(35201), + 47: uint16(35284), + 48: uint16(35336), + 49: uint16(35330), + 50: uint16(35331), + 51: uint16(35998), + 52: uint16(36000), + 53: uint16(36212), + 54: uint16(36211), + 55: uint16(36276), + 56: uint16(36557), + 57: uint16(36556), + 58: uint16(36848), + 59: uint16(36838), + 60: uint16(36834), + 61: uint16(36842), + 62: uint16(36837), + 63: uint16(36845), + 64: uint16(36843), + 65: uint16(36836), + 66: uint16(36840), + 67: uint16(37066), + 68: uint16(37070), + 69: uint16(37057), + 70: uint16(37059), + 71: uint16(37195), + 72: uint16(37194), + 73: uint16(37325), + 74: uint16(38274), + 75: uint16(38480), + 76: uint16(38475), + 77: uint16(38476), + 78: uint16(38477), + 79: uint16(38754), + 80: uint16(38761), + 81: uint16(38859), + 82: uint16(38893), + 83: uint16(38899), + 84: uint16(38913), + 85: uint16(39080), + 86: uint16(39131), + 87: uint16(39135), + 88: uint16(39318), + 89: uint16(39321), + 90: uint16(20056), + 91: uint16(20147), + 92: uint16(20492), + 93: uint16(20493), + 94: uint16(20515), + 95: uint16(20463), + 96: uint16(20518), + 97: uint16(20517), + 98: uint16(20472), + 99: uint16(20521), + 100: uint16(20502), + 101: uint16(20486), + 102: uint16(20540), + 103: uint16(20511), + 104: uint16(20506), + 105: uint16(20498), + 106: uint16(20497), + 107: uint16(20474), + 108: uint16(20480), + 109: uint16(20500), + 110: uint16(20520), + 111: uint16(20465), + 112: uint16(20513), + 113: uint16(20491), + 114: uint16(20505), + 115: uint16(20504), + 116: uint16(20467), + 117: uint16(20462), + 118: uint16(20525), + 119: uint16(20522), + 120: uint16(20478), + 121: uint16(20523), + 122: uint16(20489), + 123: uint16(20860), + 124: uint16(20900), + 125: uint16(20901), + 126: uint16(20898), + 127: uint16(20941), + 128: uint16(20940), + 129: uint16(20934), + 130: uint16(20939), + 131: uint16(21078), + 132: uint16(21084), + 133: uint16(21076), + 134: uint16(21083), + 135: uint16(21085), + 136: uint16(21290), + 137: uint16(21375), + 138: uint16(21407), + 139: uint16(21405), + 140: uint16(21471), + 141: uint16(21736), + 142: uint16(21776), + 143: uint16(21761), + 144: uint16(21815), + 145: uint16(21756), + 146: uint16(21733), + 147: uint16(21746), + 148: uint16(21766), + 149: uint16(21754), + 150: uint16(21780), + 151: uint16(21737), + 152: uint16(21741), + 153: uint16(21729), + 154: uint16(21769), + 155: uint16(21742), + 156: uint16(21738), + }, + 13: { + 0: uint16(21734), + 1: uint16(21799), + 2: uint16(21767), + 3: uint16(21757), + 4: uint16(21775), + 5: uint16(22275), + 6: uint16(22276), + 7: uint16(22466), + 8: uint16(22484), + 9: uint16(22475), + 10: uint16(22467), + 11: uint16(22537), + 12: uint16(22799), + 13: uint16(22871), + 14: uint16(22872), + 15: uint16(22874), + 16: uint16(23057), + 17: uint16(23064), + 18: uint16(23068), + 19: uint16(23071), + 20: uint16(23067), + 21: uint16(23059), + 22: uint16(23020), + 23: uint16(23072), + 24: uint16(23075), + 25: uint16(23081), + 26: uint16(23077), + 27: uint16(23052), + 28: uint16(23049), + 29: uint16(23403), + 30: uint16(23640), + 31: uint16(23472), + 32: uint16(23475), + 33: uint16(23478), + 34: uint16(23476), + 35: uint16(23470), + 36: uint16(23477), + 37: uint16(23481), + 38: uint16(23480), + 39: uint16(23556), + 40: uint16(23633), + 41: uint16(23637), + 42: uint16(23632), + 43: uint16(23789), + 44: uint16(23805), + 45: uint16(23803), + 46: uint16(23786), + 47: uint16(23784), + 48: uint16(23792), + 49: uint16(23798), + 50: uint16(23809), + 51: uint16(23796), + 52: uint16(24046), + 53: uint16(24109), + 54: uint16(24107), + 55: uint16(24235), + 56: uint16(24237), + 57: uint16(24231), + 58: uint16(24369), + 59: uint16(24466), + 60: uint16(24465), + 61: uint16(24464), + 62: uint16(24665), + 63: uint16(24675), + 64: uint16(24677), + 65: uint16(24656), + 66: uint16(24661), + 67: uint16(24685), + 68: uint16(24681), + 69: uint16(24687), + 70: uint16(24708), + 71: uint16(24735), + 72: uint16(24730), + 73: uint16(24717), + 74: uint16(24724), + 75: uint16(24716), + 76: uint16(24709), + 77: uint16(24726), + 78: uint16(25159), + 79: uint16(25331), + 80: uint16(25352), + 81: uint16(25343), + 82: uint16(25422), + 83: uint16(25406), + 84: uint16(25391), + 85: uint16(25429), + 86: uint16(25410), + 87: uint16(25414), + 88: uint16(25423), + 89: uint16(25417), + 90: uint16(25402), + 91: uint16(25424), + 92: uint16(25405), + 93: uint16(25386), + 94: uint16(25387), + 95: uint16(25384), + 96: uint16(25421), + 97: uint16(25420), + 98: uint16(25928), + 99: uint16(25929), + 100: uint16(26009), + 101: uint16(26049), + 102: uint16(26053), + 103: uint16(26178), + 104: uint16(26185), + 105: uint16(26191), + 106: uint16(26179), + 107: uint16(26194), + 108: uint16(26188), + 109: uint16(26181), + 110: uint16(26177), + 111: uint16(26360), + 112: uint16(26388), + 113: uint16(26389), + 114: uint16(26391), + 115: uint16(26657), + 116: uint16(26680), + 117: uint16(26696), + 118: uint16(26694), + 119: uint16(26707), + 120: uint16(26681), + 121: uint16(26690), + 122: uint16(26708), + 123: uint16(26665), + 124: uint16(26803), + 125: uint16(26647), + 126: uint16(26700), + 127: uint16(26705), + 128: uint16(26685), + 129: uint16(26612), + 130: uint16(26704), + 131: uint16(26688), + 132: uint16(26684), + 133: uint16(26691), + 134: uint16(26666), + 135: uint16(26693), + 136: uint16(26643), + 137: uint16(26648), + 138: uint16(26689), + 139: uint16(27530), + 140: uint16(27529), + 141: uint16(27575), + 142: uint16(27683), + 143: uint16(27687), + 144: uint16(27688), + 145: uint16(27686), + 146: uint16(27684), + 147: uint16(27888), + 148: uint16(28010), + 149: uint16(28053), + 150: uint16(28040), + 151: uint16(28039), + 152: uint16(28006), + 153: uint16(28024), + 154: uint16(28023), + 155: uint16(27993), + 156: uint16(28051), + }, + 14: { + 0: uint16(28012), + 1: uint16(28041), + 2: uint16(28014), + 3: uint16(27994), + 4: uint16(28020), + 5: uint16(28009), + 6: uint16(28044), + 7: uint16(28042), + 8: uint16(28025), + 9: uint16(28037), + 10: uint16(28005), + 11: uint16(28052), + 12: uint16(28874), + 13: uint16(28888), + 14: uint16(28900), + 15: uint16(28889), + 16: uint16(28872), + 17: uint16(28879), + 18: uint16(29241), + 19: uint16(29305), + 20: uint16(29436), + 21: uint16(29433), + 22: uint16(29437), + 23: uint16(29432), + 24: uint16(29431), + 25: uint16(29574), + 26: uint16(29677), + 27: uint16(29705), + 28: uint16(29678), + 29: uint16(29664), + 30: uint16(29674), + 31: uint16(29662), + 32: uint16(30036), + 33: uint16(30045), + 34: uint16(30044), + 35: uint16(30042), + 36: uint16(30041), + 37: uint16(30142), + 38: uint16(30149), + 39: uint16(30151), + 40: uint16(30130), + 41: uint16(30131), + 42: uint16(30141), + 43: uint16(30140), + 44: uint16(30137), + 45: uint16(30146), + 46: uint16(30136), + 47: uint16(30347), + 48: uint16(30384), + 49: uint16(30410), + 50: uint16(30413), + 51: uint16(30414), + 52: uint16(30505), + 53: uint16(30495), + 54: uint16(30496), + 55: uint16(30504), + 56: uint16(30697), + 57: uint16(30768), + 58: uint16(30759), + 59: uint16(30776), + 60: uint16(30749), + 61: uint16(30772), + 62: uint16(30775), + 63: uint16(30757), + 64: uint16(30765), + 65: uint16(30752), + 66: uint16(30751), + 67: uint16(30770), + 68: uint16(31061), + 69: uint16(31056), + 70: uint16(31072), + 71: uint16(31071), + 72: uint16(31062), + 73: uint16(31070), + 74: uint16(31069), + 75: uint16(31063), + 76: uint16(31066), + 77: uint16(31204), + 78: uint16(31203), + 79: uint16(31207), + 80: uint16(31199), + 81: uint16(31206), + 82: uint16(31209), + 83: uint16(31192), + 84: uint16(31364), + 85: uint16(31368), + 86: uint16(31449), + 87: uint16(31494), + 88: uint16(31505), + 89: uint16(31881), + 90: uint16(32033), + 91: uint16(32023), + 92: uint16(32011), + 93: uint16(32010), + 94: uint16(32032), + 95: uint16(32034), + 96: uint16(32020), + 97: uint16(32016), + 98: uint16(32021), + 99: uint16(32026), + 100: uint16(32028), + 101: uint16(32013), + 102: uint16(32025), + 103: uint16(32027), + 104: uint16(32570), + 105: uint16(32607), + 106: uint16(32660), + 107: uint16(32709), + 108: uint16(32705), + 109: uint16(32774), + 110: uint16(32792), + 111: uint16(32789), + 112: uint16(32793), + 113: uint16(32791), + 114: uint16(32829), + 115: uint16(32831), + 116: uint16(33009), + 117: uint16(33026), + 118: uint16(33008), + 119: uint16(33029), + 120: uint16(33005), + 121: uint16(33012), + 122: uint16(33030), + 123: uint16(33016), + 124: uint16(33011), + 125: uint16(33032), + 126: uint16(33021), + 127: uint16(33034), + 128: uint16(33020), + 129: uint16(33007), + 130: uint16(33261), + 131: uint16(33260), + 132: uint16(33280), + 133: uint16(33296), + 134: uint16(33322), + 135: uint16(33323), + 136: uint16(33320), + 137: uint16(33324), + 138: uint16(33467), + 139: uint16(33579), + 140: uint16(33618), + 141: uint16(33620), + 142: uint16(33610), + 143: uint16(33592), + 144: uint16(33616), + 145: uint16(33609), + 146: uint16(33589), + 147: uint16(33588), + 148: uint16(33615), + 149: uint16(33586), + 150: uint16(33593), + 151: uint16(33590), + 152: uint16(33559), + 153: uint16(33600), + 154: uint16(33585), + 155: uint16(33576), + 156: uint16(33603), + }, + 15: { + 0: uint16(34388), + 1: uint16(34442), + 2: uint16(34474), + 3: uint16(34451), + 4: uint16(34468), + 5: uint16(34473), + 6: uint16(34444), + 7: uint16(34467), + 8: uint16(34460), + 9: uint16(34928), + 10: uint16(34935), + 11: uint16(34945), + 12: uint16(34946), + 13: uint16(34941), + 14: uint16(34937), + 15: uint16(35352), + 16: uint16(35344), + 17: uint16(35342), + 18: uint16(35340), + 19: uint16(35349), + 20: uint16(35338), + 21: uint16(35351), + 22: uint16(35347), + 23: uint16(35350), + 24: uint16(35343), + 25: uint16(35345), + 26: uint16(35912), + 27: uint16(35962), + 28: uint16(35961), + 29: uint16(36001), + 30: uint16(36002), + 31: uint16(36215), + 32: uint16(36524), + 33: uint16(36562), + 34: uint16(36564), + 35: uint16(36559), + 36: uint16(36785), + 37: uint16(36865), + 38: uint16(36870), + 39: uint16(36855), + 40: uint16(36864), + 41: uint16(36858), + 42: uint16(36852), + 43: uint16(36867), + 44: uint16(36861), + 45: uint16(36869), + 46: uint16(36856), + 47: uint16(37013), + 48: uint16(37089), + 49: uint16(37085), + 50: uint16(37090), + 51: uint16(37202), + 52: uint16(37197), + 53: uint16(37196), + 54: uint16(37336), + 55: uint16(37341), + 56: uint16(37335), + 57: uint16(37340), + 58: uint16(37337), + 59: uint16(38275), + 60: uint16(38498), + 61: uint16(38499), + 62: uint16(38497), + 63: uint16(38491), + 64: uint16(38493), + 65: uint16(38500), + 66: uint16(38488), + 67: uint16(38494), + 68: uint16(38587), + 69: uint16(39138), + 70: uint16(39340), + 71: uint16(39592), + 72: uint16(39640), + 73: uint16(39717), + 74: uint16(39730), + 75: uint16(39740), + 76: uint16(20094), + 77: uint16(20602), + 78: uint16(20605), + 79: uint16(20572), + 80: uint16(20551), + 81: uint16(20547), + 82: uint16(20556), + 83: uint16(20570), + 84: uint16(20553), + 85: uint16(20581), + 86: uint16(20598), + 87: uint16(20558), + 88: uint16(20565), + 89: uint16(20597), + 90: uint16(20596), + 91: uint16(20599), + 92: uint16(20559), + 93: uint16(20495), + 94: uint16(20591), + 95: uint16(20589), + 96: uint16(20828), + 97: uint16(20885), + 98: uint16(20976), + 99: uint16(21098), + 100: uint16(21103), + 101: uint16(21202), + 102: uint16(21209), + 103: uint16(21208), + 104: uint16(21205), + 105: uint16(21264), + 106: uint16(21263), + 107: uint16(21273), + 108: uint16(21311), + 109: uint16(21312), + 110: uint16(21310), + 111: uint16(21443), + 112: uint16(26364), + 113: uint16(21830), + 114: uint16(21866), + 115: uint16(21862), + 116: uint16(21828), + 117: uint16(21854), + 118: uint16(21857), + 119: uint16(21827), + 120: uint16(21834), + 121: uint16(21809), + 122: uint16(21846), + 123: uint16(21839), + 124: uint16(21845), + 125: uint16(21807), + 126: uint16(21860), + 127: uint16(21816), + 128: uint16(21806), + 129: uint16(21852), + 130: uint16(21804), + 131: uint16(21859), + 132: uint16(21811), + 133: uint16(21825), + 134: uint16(21847), + 135: uint16(22280), + 136: uint16(22283), + 137: uint16(22281), + 138: uint16(22495), + 139: uint16(22533), + 140: uint16(22538), + 141: uint16(22534), + 142: uint16(22496), + 143: uint16(22500), + 144: uint16(22522), + 145: uint16(22530), + 146: uint16(22581), + 147: uint16(22519), + 148: uint16(22521), + 149: uint16(22816), + 150: uint16(22882), + 151: uint16(23094), + 152: uint16(23105), + 153: uint16(23113), + 154: uint16(23142), + 155: uint16(23146), + 156: uint16(23104), + }, + 16: { + 0: uint16(23100), + 1: uint16(23138), + 2: uint16(23130), + 3: uint16(23110), + 4: uint16(23114), + 5: uint16(23408), + 6: uint16(23495), + 7: uint16(23493), + 8: uint16(23492), + 9: uint16(23490), + 10: uint16(23487), + 11: uint16(23494), + 12: uint16(23561), + 13: uint16(23560), + 14: uint16(23559), + 15: uint16(23648), + 16: uint16(23644), + 17: uint16(23645), + 18: uint16(23815), + 19: uint16(23814), + 20: uint16(23822), + 21: uint16(23835), + 22: uint16(23830), + 23: uint16(23842), + 24: uint16(23825), + 25: uint16(23849), + 26: uint16(23828), + 27: uint16(23833), + 28: uint16(23844), + 29: uint16(23847), + 30: uint16(23831), + 31: uint16(24034), + 32: uint16(24120), + 33: uint16(24118), + 34: uint16(24115), + 35: uint16(24119), + 36: uint16(24247), + 37: uint16(24248), + 38: uint16(24246), + 39: uint16(24245), + 40: uint16(24254), + 41: uint16(24373), + 42: uint16(24375), + 43: uint16(24407), + 44: uint16(24428), + 45: uint16(24425), + 46: uint16(24427), + 47: uint16(24471), + 48: uint16(24473), + 49: uint16(24478), + 50: uint16(24472), + 51: uint16(24481), + 52: uint16(24480), + 53: uint16(24476), + 54: uint16(24703), + 55: uint16(24739), + 56: uint16(24713), + 57: uint16(24736), + 58: uint16(24744), + 59: uint16(24779), + 60: uint16(24756), + 61: uint16(24806), + 62: uint16(24765), + 63: uint16(24773), + 64: uint16(24763), + 65: uint16(24757), + 66: uint16(24796), + 67: uint16(24764), + 68: uint16(24792), + 69: uint16(24789), + 70: uint16(24774), + 71: uint16(24799), + 72: uint16(24760), + 73: uint16(24794), + 74: uint16(24775), + 75: uint16(25114), + 76: uint16(25115), + 77: uint16(25160), + 78: uint16(25504), + 79: uint16(25511), + 80: uint16(25458), + 81: uint16(25494), + 82: uint16(25506), + 83: uint16(25509), + 84: uint16(25463), + 85: uint16(25447), + 86: uint16(25496), + 87: uint16(25514), + 88: uint16(25457), + 89: uint16(25513), + 90: uint16(25481), + 91: uint16(25475), + 92: uint16(25499), + 93: uint16(25451), + 94: uint16(25512), + 95: uint16(25476), + 96: uint16(25480), + 97: uint16(25497), + 98: uint16(25505), + 99: uint16(25516), + 100: uint16(25490), + 101: uint16(25487), + 102: uint16(25472), + 103: uint16(25467), + 104: uint16(25449), + 105: uint16(25448), + 106: uint16(25466), + 107: uint16(25949), + 108: uint16(25942), + 109: uint16(25937), + 110: uint16(25945), + 111: uint16(25943), + 112: uint16(21855), + 113: uint16(25935), + 114: uint16(25944), + 115: uint16(25941), + 116: uint16(25940), + 117: uint16(26012), + 118: uint16(26011), + 119: uint16(26028), + 120: uint16(26063), + 121: uint16(26059), + 122: uint16(26060), + 123: uint16(26062), + 124: uint16(26205), + 125: uint16(26202), + 126: uint16(26212), + 127: uint16(26216), + 128: uint16(26214), + 129: uint16(26206), + 130: uint16(26361), + 131: uint16(21207), + 132: uint16(26395), + 133: uint16(26753), + 134: uint16(26799), + 135: uint16(26786), + 136: uint16(26771), + 137: uint16(26805), + 138: uint16(26751), + 139: uint16(26742), + 140: uint16(26801), + 141: uint16(26791), + 142: uint16(26775), + 143: uint16(26800), + 144: uint16(26755), + 145: uint16(26820), + 146: uint16(26797), + 147: uint16(26758), + 148: uint16(26757), + 149: uint16(26772), + 150: uint16(26781), + 151: uint16(26792), + 152: uint16(26783), + 153: uint16(26785), + 154: uint16(26754), + 155: uint16(27442), + 156: uint16(27578), + }, + 17: { + 0: uint16(27627), + 1: uint16(27628), + 2: uint16(27691), + 3: uint16(28046), + 4: uint16(28092), + 5: uint16(28147), + 6: uint16(28121), + 7: uint16(28082), + 8: uint16(28129), + 9: uint16(28108), + 10: uint16(28132), + 11: uint16(28155), + 12: uint16(28154), + 13: uint16(28165), + 14: uint16(28103), + 15: uint16(28107), + 16: uint16(28079), + 17: uint16(28113), + 18: uint16(28078), + 19: uint16(28126), + 20: uint16(28153), + 21: uint16(28088), + 22: uint16(28151), + 23: uint16(28149), + 24: uint16(28101), + 25: uint16(28114), + 26: uint16(28186), + 27: uint16(28085), + 28: uint16(28122), + 29: uint16(28139), + 30: uint16(28120), + 31: uint16(28138), + 32: uint16(28145), + 33: uint16(28142), + 34: uint16(28136), + 35: uint16(28102), + 36: uint16(28100), + 37: uint16(28074), + 38: uint16(28140), + 39: uint16(28095), + 40: uint16(28134), + 41: uint16(28921), + 42: uint16(28937), + 43: uint16(28938), + 44: uint16(28925), + 45: uint16(28911), + 46: uint16(29245), + 47: uint16(29309), + 48: uint16(29313), + 49: uint16(29468), + 50: uint16(29467), + 51: uint16(29462), + 52: uint16(29459), + 53: uint16(29465), + 54: uint16(29575), + 55: uint16(29701), + 56: uint16(29706), + 57: uint16(29699), + 58: uint16(29702), + 59: uint16(29694), + 60: uint16(29709), + 61: uint16(29920), + 62: uint16(29942), + 63: uint16(29943), + 64: uint16(29980), + 65: uint16(29986), + 66: uint16(30053), + 67: uint16(30054), + 68: uint16(30050), + 69: uint16(30064), + 70: uint16(30095), + 71: uint16(30164), + 72: uint16(30165), + 73: uint16(30133), + 74: uint16(30154), + 75: uint16(30157), + 76: uint16(30350), + 77: uint16(30420), + 78: uint16(30418), + 79: uint16(30427), + 80: uint16(30519), + 81: uint16(30526), + 82: uint16(30524), + 83: uint16(30518), + 84: uint16(30520), + 85: uint16(30522), + 86: uint16(30827), + 87: uint16(30787), + 88: uint16(30798), + 89: uint16(31077), + 90: uint16(31080), + 91: uint16(31085), + 92: uint16(31227), + 93: uint16(31378), + 94: uint16(31381), + 95: uint16(31520), + 96: uint16(31528), + 97: uint16(31515), + 98: uint16(31532), + 99: uint16(31526), + 100: uint16(31513), + 101: uint16(31518), + 102: uint16(31534), + 103: uint16(31890), + 104: uint16(31895), + 105: uint16(31893), + 106: uint16(32070), + 107: uint16(32067), + 108: uint16(32113), + 109: uint16(32046), + 110: uint16(32057), + 111: uint16(32060), + 112: uint16(32064), + 113: uint16(32048), + 114: uint16(32051), + 115: uint16(32068), + 116: uint16(32047), + 117: uint16(32066), + 118: uint16(32050), + 119: uint16(32049), + 120: uint16(32573), + 121: uint16(32670), + 122: uint16(32666), + 123: uint16(32716), + 124: uint16(32718), + 125: uint16(32722), + 126: uint16(32796), + 127: uint16(32842), + 128: uint16(32838), + 129: uint16(33071), + 130: uint16(33046), + 131: uint16(33059), + 132: uint16(33067), + 133: uint16(33065), + 134: uint16(33072), + 135: uint16(33060), + 136: uint16(33282), + 137: uint16(33333), + 138: uint16(33335), + 139: uint16(33334), + 140: uint16(33337), + 141: uint16(33678), + 142: uint16(33694), + 143: uint16(33688), + 144: uint16(33656), + 145: uint16(33698), + 146: uint16(33686), + 147: uint16(33725), + 148: uint16(33707), + 149: uint16(33682), + 150: uint16(33674), + 151: uint16(33683), + 152: uint16(33673), + 153: uint16(33696), + 154: uint16(33655), + 155: uint16(33659), + 156: uint16(33660), + }, + 18: { + 0: uint16(33670), + 1: uint16(33703), + 2: uint16(34389), + 3: uint16(24426), + 4: uint16(34503), + 5: uint16(34496), + 6: uint16(34486), + 7: uint16(34500), + 8: uint16(34485), + 9: uint16(34502), + 10: uint16(34507), + 11: uint16(34481), + 12: uint16(34479), + 13: uint16(34505), + 14: uint16(34899), + 15: uint16(34974), + 16: uint16(34952), + 17: uint16(34987), + 18: uint16(34962), + 19: uint16(34966), + 20: uint16(34957), + 21: uint16(34955), + 22: uint16(35219), + 23: uint16(35215), + 24: uint16(35370), + 25: uint16(35357), + 26: uint16(35363), + 27: uint16(35365), + 28: uint16(35377), + 29: uint16(35373), + 30: uint16(35359), + 31: uint16(35355), + 32: uint16(35362), + 33: uint16(35913), + 34: uint16(35930), + 35: uint16(36009), + 36: uint16(36012), + 37: uint16(36011), + 38: uint16(36008), + 39: uint16(36010), + 40: uint16(36007), + 41: uint16(36199), + 42: uint16(36198), + 43: uint16(36286), + 44: uint16(36282), + 45: uint16(36571), + 46: uint16(36575), + 47: uint16(36889), + 48: uint16(36877), + 49: uint16(36890), + 50: uint16(36887), + 51: uint16(36899), + 52: uint16(36895), + 53: uint16(36893), + 54: uint16(36880), + 55: uint16(36885), + 56: uint16(36894), + 57: uint16(36896), + 58: uint16(36879), + 59: uint16(36898), + 60: uint16(36886), + 61: uint16(36891), + 62: uint16(36884), + 63: uint16(37096), + 64: uint16(37101), + 65: uint16(37117), + 66: uint16(37207), + 67: uint16(37326), + 68: uint16(37365), + 69: uint16(37350), + 70: uint16(37347), + 71: uint16(37351), + 72: uint16(37357), + 73: uint16(37353), + 74: uint16(38281), + 75: uint16(38506), + 76: uint16(38517), + 77: uint16(38515), + 78: uint16(38520), + 79: uint16(38512), + 80: uint16(38516), + 81: uint16(38518), + 82: uint16(38519), + 83: uint16(38508), + 84: uint16(38592), + 85: uint16(38634), + 86: uint16(38633), + 87: uint16(31456), + 88: uint16(31455), + 89: uint16(38914), + 90: uint16(38915), + 91: uint16(39770), + 92: uint16(40165), + 93: uint16(40565), + 94: uint16(40575), + 95: uint16(40613), + 96: uint16(40635), + 97: uint16(20642), + 98: uint16(20621), + 99: uint16(20613), + 100: uint16(20633), + 101: uint16(20625), + 102: uint16(20608), + 103: uint16(20630), + 104: uint16(20632), + 105: uint16(20634), + 106: uint16(26368), + 107: uint16(20977), + 108: uint16(21106), + 109: uint16(21108), + 110: uint16(21109), + 111: uint16(21097), + 112: uint16(21214), + 113: uint16(21213), + 114: uint16(21211), + 115: uint16(21338), + 116: uint16(21413), + 117: uint16(21883), + 118: uint16(21888), + 119: uint16(21927), + 120: uint16(21884), + 121: uint16(21898), + 122: uint16(21917), + 123: uint16(21912), + 124: uint16(21890), + 125: uint16(21916), + 126: uint16(21930), + 127: uint16(21908), + 128: uint16(21895), + 129: uint16(21899), + 130: uint16(21891), + 131: uint16(21939), + 132: uint16(21934), + 133: uint16(21919), + 134: uint16(21822), + 135: uint16(21938), + 136: uint16(21914), + 137: uint16(21947), + 138: uint16(21932), + 139: uint16(21937), + 140: uint16(21886), + 141: uint16(21897), + 142: uint16(21931), + 143: uint16(21913), + 144: uint16(22285), + 145: uint16(22575), + 146: uint16(22570), + 147: uint16(22580), + 148: uint16(22564), + 149: uint16(22576), + 150: uint16(22577), + 151: uint16(22561), + 152: uint16(22557), + 153: uint16(22560), + 154: uint16(22777), + 155: uint16(22778), + 156: uint16(22880), + }, + 19: { + 0: uint16(23159), + 1: uint16(23194), + 2: uint16(23167), + 3: uint16(23186), + 4: uint16(23195), + 5: uint16(23207), + 6: uint16(23411), + 7: uint16(23409), + 8: uint16(23506), + 9: uint16(23500), + 10: uint16(23507), + 11: uint16(23504), + 12: uint16(23562), + 13: uint16(23563), + 14: uint16(23601), + 15: uint16(23884), + 16: uint16(23888), + 17: uint16(23860), + 18: uint16(23879), + 19: uint16(24061), + 20: uint16(24133), + 21: uint16(24125), + 22: uint16(24128), + 23: uint16(24131), + 24: uint16(24190), + 25: uint16(24266), + 26: uint16(24257), + 27: uint16(24258), + 28: uint16(24260), + 29: uint16(24380), + 30: uint16(24429), + 31: uint16(24489), + 32: uint16(24490), + 33: uint16(24488), + 34: uint16(24785), + 35: uint16(24801), + 36: uint16(24754), + 37: uint16(24758), + 38: uint16(24800), + 39: uint16(24860), + 40: uint16(24867), + 41: uint16(24826), + 42: uint16(24853), + 43: uint16(24816), + 44: uint16(24827), + 45: uint16(24820), + 46: uint16(24936), + 47: uint16(24817), + 48: uint16(24846), + 49: uint16(24822), + 50: uint16(24841), + 51: uint16(24832), + 52: uint16(24850), + 53: uint16(25119), + 54: uint16(25161), + 55: uint16(25507), + 56: uint16(25484), + 57: uint16(25551), + 58: uint16(25536), + 59: uint16(25577), + 60: uint16(25545), + 61: uint16(25542), + 62: uint16(25549), + 63: uint16(25554), + 64: uint16(25571), + 65: uint16(25552), + 66: uint16(25569), + 67: uint16(25558), + 68: uint16(25581), + 69: uint16(25582), + 70: uint16(25462), + 71: uint16(25588), + 72: uint16(25578), + 73: uint16(25563), + 74: uint16(25682), + 75: uint16(25562), + 76: uint16(25593), + 77: uint16(25950), + 78: uint16(25958), + 79: uint16(25954), + 80: uint16(25955), + 81: uint16(26001), + 82: uint16(26000), + 83: uint16(26031), + 84: uint16(26222), + 85: uint16(26224), + 86: uint16(26228), + 87: uint16(26230), + 88: uint16(26223), + 89: uint16(26257), + 90: uint16(26234), + 91: uint16(26238), + 92: uint16(26231), + 93: uint16(26366), + 94: uint16(26367), + 95: uint16(26399), + 96: uint16(26397), + 97: uint16(26874), + 98: uint16(26837), + 99: uint16(26848), + 100: uint16(26840), + 101: uint16(26839), + 102: uint16(26885), + 103: uint16(26847), + 104: uint16(26869), + 105: uint16(26862), + 106: uint16(26855), + 107: uint16(26873), + 108: uint16(26834), + 109: uint16(26866), + 110: uint16(26851), + 111: uint16(26827), + 112: uint16(26829), + 113: uint16(26893), + 114: uint16(26898), + 115: uint16(26894), + 116: uint16(26825), + 117: uint16(26842), + 118: uint16(26990), + 119: uint16(26875), + 120: uint16(27454), + 121: uint16(27450), + 122: uint16(27453), + 123: uint16(27544), + 124: uint16(27542), + 125: uint16(27580), + 126: uint16(27631), + 127: uint16(27694), + 128: uint16(27695), + 129: uint16(27692), + 130: uint16(28207), + 131: uint16(28216), + 132: uint16(28244), + 133: uint16(28193), + 134: uint16(28210), + 135: uint16(28263), + 136: uint16(28234), + 137: uint16(28192), + 138: uint16(28197), + 139: uint16(28195), + 140: uint16(28187), + 141: uint16(28251), + 142: uint16(28248), + 143: uint16(28196), + 144: uint16(28246), + 145: uint16(28270), + 146: uint16(28205), + 147: uint16(28198), + 148: uint16(28271), + 149: uint16(28212), + 150: uint16(28237), + 151: uint16(28218), + 152: uint16(28204), + 153: uint16(28227), + 154: uint16(28189), + 155: uint16(28222), + 156: uint16(28363), + }, + 20: { + 0: uint16(28297), + 1: uint16(28185), + 2: uint16(28238), + 3: uint16(28259), + 4: uint16(28228), + 5: uint16(28274), + 6: uint16(28265), + 7: uint16(28255), + 8: uint16(28953), + 9: uint16(28954), + 10: uint16(28966), + 11: uint16(28976), + 12: uint16(28961), + 13: uint16(28982), + 14: uint16(29038), + 15: uint16(28956), + 16: uint16(29260), + 17: uint16(29316), + 18: uint16(29312), + 19: uint16(29494), + 20: uint16(29477), + 21: uint16(29492), + 22: uint16(29481), + 23: uint16(29754), + 24: uint16(29738), + 25: uint16(29747), + 26: uint16(29730), + 27: uint16(29733), + 28: uint16(29749), + 29: uint16(29750), + 30: uint16(29748), + 31: uint16(29743), + 32: uint16(29723), + 33: uint16(29734), + 34: uint16(29736), + 35: uint16(29989), + 36: uint16(29990), + 37: uint16(30059), + 38: uint16(30058), + 39: uint16(30178), + 40: uint16(30171), + 41: uint16(30179), + 42: uint16(30169), + 43: uint16(30168), + 44: uint16(30174), + 45: uint16(30176), + 46: uint16(30331), + 47: uint16(30332), + 48: uint16(30358), + 49: uint16(30355), + 50: uint16(30388), + 51: uint16(30428), + 52: uint16(30543), + 53: uint16(30701), + 54: uint16(30813), + 55: uint16(30828), + 56: uint16(30831), + 57: uint16(31245), + 58: uint16(31240), + 59: uint16(31243), + 60: uint16(31237), + 61: uint16(31232), + 62: uint16(31384), + 63: uint16(31383), + 64: uint16(31382), + 65: uint16(31461), + 66: uint16(31459), + 67: uint16(31561), + 68: uint16(31574), + 69: uint16(31558), + 70: uint16(31568), + 71: uint16(31570), + 72: uint16(31572), + 73: uint16(31565), + 74: uint16(31563), + 75: uint16(31567), + 76: uint16(31569), + 77: uint16(31903), + 78: uint16(31909), + 79: uint16(32094), + 80: uint16(32080), + 81: uint16(32104), + 82: uint16(32085), + 83: uint16(32043), + 84: uint16(32110), + 85: uint16(32114), + 86: uint16(32097), + 87: uint16(32102), + 88: uint16(32098), + 89: uint16(32112), + 90: uint16(32115), + 91: uint16(21892), + 92: uint16(32724), + 93: uint16(32725), + 94: uint16(32779), + 95: uint16(32850), + 96: uint16(32901), + 97: uint16(33109), + 98: uint16(33108), + 99: uint16(33099), + 100: uint16(33105), + 101: uint16(33102), + 102: uint16(33081), + 103: uint16(33094), + 104: uint16(33086), + 105: uint16(33100), + 106: uint16(33107), + 107: uint16(33140), + 108: uint16(33298), + 109: uint16(33308), + 110: uint16(33769), + 111: uint16(33795), + 112: uint16(33784), + 113: uint16(33805), + 114: uint16(33760), + 115: uint16(33733), + 116: uint16(33803), + 117: uint16(33729), + 118: uint16(33775), + 119: uint16(33777), + 120: uint16(33780), + 121: uint16(33879), + 122: uint16(33802), + 123: uint16(33776), + 124: uint16(33804), + 125: uint16(33740), + 126: uint16(33789), + 127: uint16(33778), + 128: uint16(33738), + 129: uint16(33848), + 130: uint16(33806), + 131: uint16(33796), + 132: uint16(33756), + 133: uint16(33799), + 134: uint16(33748), + 135: uint16(33759), + 136: uint16(34395), + 137: uint16(34527), + 138: uint16(34521), + 139: uint16(34541), + 140: uint16(34516), + 141: uint16(34523), + 142: uint16(34532), + 143: uint16(34512), + 144: uint16(34526), + 145: uint16(34903), + 146: uint16(35009), + 147: uint16(35010), + 148: uint16(34993), + 149: uint16(35203), + 150: uint16(35222), + 151: uint16(35387), + 152: uint16(35424), + 153: uint16(35413), + 154: uint16(35422), + 155: uint16(35388), + 156: uint16(35393), + }, + 21: { + 0: uint16(35412), + 1: uint16(35419), + 2: uint16(35408), + 3: uint16(35398), + 4: uint16(35380), + 5: uint16(35386), + 6: uint16(35382), + 7: uint16(35414), + 8: uint16(35937), + 9: uint16(35970), + 10: uint16(36015), + 11: uint16(36028), + 12: uint16(36019), + 13: uint16(36029), + 14: uint16(36033), + 15: uint16(36027), + 16: uint16(36032), + 17: uint16(36020), + 18: uint16(36023), + 19: uint16(36022), + 20: uint16(36031), + 21: uint16(36024), + 22: uint16(36234), + 23: uint16(36229), + 24: uint16(36225), + 25: uint16(36302), + 26: uint16(36317), + 27: uint16(36299), + 28: uint16(36314), + 29: uint16(36305), + 30: uint16(36300), + 31: uint16(36315), + 32: uint16(36294), + 33: uint16(36603), + 34: uint16(36600), + 35: uint16(36604), + 36: uint16(36764), + 37: uint16(36910), + 38: uint16(36917), + 39: uint16(36913), + 40: uint16(36920), + 41: uint16(36914), + 42: uint16(36918), + 43: uint16(37122), + 44: uint16(37109), + 45: uint16(37129), + 46: uint16(37118), + 47: uint16(37219), + 48: uint16(37221), + 49: uint16(37327), + 50: uint16(37396), + 51: uint16(37397), + 52: uint16(37411), + 53: uint16(37385), + 54: uint16(37406), + 55: uint16(37389), + 56: uint16(37392), + 57: uint16(37383), + 58: uint16(37393), + 59: uint16(38292), + 60: uint16(38287), + 61: uint16(38283), + 62: uint16(38289), + 63: uint16(38291), + 64: uint16(38290), + 65: uint16(38286), + 66: uint16(38538), + 67: uint16(38542), + 68: uint16(38539), + 69: uint16(38525), + 70: uint16(38533), + 71: uint16(38534), + 72: uint16(38541), + 73: uint16(38514), + 74: uint16(38532), + 75: uint16(38593), + 76: uint16(38597), + 77: uint16(38596), + 78: uint16(38598), + 79: uint16(38599), + 80: uint16(38639), + 81: uint16(38642), + 82: uint16(38860), + 83: uint16(38917), + 84: uint16(38918), + 85: uint16(38920), + 86: uint16(39143), + 87: uint16(39146), + 88: uint16(39151), + 89: uint16(39145), + 90: uint16(39154), + 91: uint16(39149), + 92: uint16(39342), + 93: uint16(39341), + 94: uint16(40643), + 95: uint16(40653), + 96: uint16(40657), + 97: uint16(20098), + 98: uint16(20653), + 99: uint16(20661), + 100: uint16(20658), + 101: uint16(20659), + 102: uint16(20677), + 103: uint16(20670), + 104: uint16(20652), + 105: uint16(20663), + 106: uint16(20667), + 107: uint16(20655), + 108: uint16(20679), + 109: uint16(21119), + 110: uint16(21111), + 111: uint16(21117), + 112: uint16(21215), + 113: uint16(21222), + 114: uint16(21220), + 115: uint16(21218), + 116: uint16(21219), + 117: uint16(21295), + 118: uint16(21983), + 119: uint16(21992), + 120: uint16(21971), + 121: uint16(21990), + 122: uint16(21966), + 123: uint16(21980), + 124: uint16(21959), + 125: uint16(21969), + 126: uint16(21987), + 127: uint16(21988), + 128: uint16(21999), + 129: uint16(21978), + 130: uint16(21985), + 131: uint16(21957), + 132: uint16(21958), + 133: uint16(21989), + 134: uint16(21961), + 135: uint16(22290), + 136: uint16(22291), + 137: uint16(22622), + 138: uint16(22609), + 139: uint16(22616), + 140: uint16(22615), + 141: uint16(22618), + 142: uint16(22612), + 143: uint16(22635), + 144: uint16(22604), + 145: uint16(22637), + 146: uint16(22602), + 147: uint16(22626), + 148: uint16(22610), + 149: uint16(22603), + 150: uint16(22887), + 151: uint16(23233), + 152: uint16(23241), + 153: uint16(23244), + 154: uint16(23230), + 155: uint16(23229), + 156: uint16(23228), + }, + 22: { + 0: uint16(23219), + 1: uint16(23234), + 2: uint16(23218), + 3: uint16(23913), + 4: uint16(23919), + 5: uint16(24140), + 6: uint16(24185), + 7: uint16(24265), + 8: uint16(24264), + 9: uint16(24338), + 10: uint16(24409), + 11: uint16(24492), + 12: uint16(24494), + 13: uint16(24858), + 14: uint16(24847), + 15: uint16(24904), + 16: uint16(24863), + 17: uint16(24819), + 18: uint16(24859), + 19: uint16(24825), + 20: uint16(24833), + 21: uint16(24840), + 22: uint16(24910), + 23: uint16(24908), + 24: uint16(24900), + 25: uint16(24909), + 26: uint16(24894), + 27: uint16(24884), + 28: uint16(24871), + 29: uint16(24845), + 30: uint16(24838), + 31: uint16(24887), + 32: uint16(25121), + 33: uint16(25122), + 34: uint16(25619), + 35: uint16(25662), + 36: uint16(25630), + 37: uint16(25642), + 38: uint16(25645), + 39: uint16(25661), + 40: uint16(25644), + 41: uint16(25615), + 42: uint16(25628), + 43: uint16(25620), + 44: uint16(25613), + 45: uint16(25654), + 46: uint16(25622), + 47: uint16(25623), + 48: uint16(25606), + 49: uint16(25964), + 50: uint16(26015), + 51: uint16(26032), + 52: uint16(26263), + 53: uint16(26249), + 54: uint16(26247), + 55: uint16(26248), + 56: uint16(26262), + 57: uint16(26244), + 58: uint16(26264), + 59: uint16(26253), + 60: uint16(26371), + 61: uint16(27028), + 62: uint16(26989), + 63: uint16(26970), + 64: uint16(26999), + 65: uint16(26976), + 66: uint16(26964), + 67: uint16(26997), + 68: uint16(26928), + 69: uint16(27010), + 70: uint16(26954), + 71: uint16(26984), + 72: uint16(26987), + 73: uint16(26974), + 74: uint16(26963), + 75: uint16(27001), + 76: uint16(27014), + 77: uint16(26973), + 78: uint16(26979), + 79: uint16(26971), + 80: uint16(27463), + 81: uint16(27506), + 82: uint16(27584), + 83: uint16(27583), + 84: uint16(27603), + 85: uint16(27645), + 86: uint16(28322), + 87: uint16(28335), + 88: uint16(28371), + 89: uint16(28342), + 90: uint16(28354), + 91: uint16(28304), + 92: uint16(28317), + 93: uint16(28359), + 94: uint16(28357), + 95: uint16(28325), + 96: uint16(28312), + 97: uint16(28348), + 98: uint16(28346), + 99: uint16(28331), + 100: uint16(28369), + 101: uint16(28310), + 102: uint16(28316), + 103: uint16(28356), + 104: uint16(28372), + 105: uint16(28330), + 106: uint16(28327), + 107: uint16(28340), + 108: uint16(29006), + 109: uint16(29017), + 110: uint16(29033), + 111: uint16(29028), + 112: uint16(29001), + 113: uint16(29031), + 114: uint16(29020), + 115: uint16(29036), + 116: uint16(29030), + 117: uint16(29004), + 118: uint16(29029), + 119: uint16(29022), + 120: uint16(28998), + 121: uint16(29032), + 122: uint16(29014), + 123: uint16(29242), + 124: uint16(29266), + 125: uint16(29495), + 126: uint16(29509), + 127: uint16(29503), + 128: uint16(29502), + 129: uint16(29807), + 130: uint16(29786), + 131: uint16(29781), + 132: uint16(29791), + 133: uint16(29790), + 134: uint16(29761), + 135: uint16(29759), + 136: uint16(29785), + 137: uint16(29787), + 138: uint16(29788), + 139: uint16(30070), + 140: uint16(30072), + 141: uint16(30208), + 142: uint16(30192), + 143: uint16(30209), + 144: uint16(30194), + 145: uint16(30193), + 146: uint16(30202), + 147: uint16(30207), + 148: uint16(30196), + 149: uint16(30195), + 150: uint16(30430), + 151: uint16(30431), + 152: uint16(30555), + 153: uint16(30571), + 154: uint16(30566), + 155: uint16(30558), + 156: uint16(30563), + }, + 23: { + 0: uint16(30585), + 1: uint16(30570), + 2: uint16(30572), + 3: uint16(30556), + 4: uint16(30565), + 5: uint16(30568), + 6: uint16(30562), + 7: uint16(30702), + 8: uint16(30862), + 9: uint16(30896), + 10: uint16(30871), + 11: uint16(30872), + 12: uint16(30860), + 13: uint16(30857), + 14: uint16(30844), + 15: uint16(30865), + 16: uint16(30867), + 17: uint16(30847), + 18: uint16(31098), + 19: uint16(31103), + 20: uint16(31105), + 21: uint16(33836), + 22: uint16(31165), + 23: uint16(31260), + 24: uint16(31258), + 25: uint16(31264), + 26: uint16(31252), + 27: uint16(31263), + 28: uint16(31262), + 29: uint16(31391), + 30: uint16(31392), + 31: uint16(31607), + 32: uint16(31680), + 33: uint16(31584), + 34: uint16(31598), + 35: uint16(31591), + 36: uint16(31921), + 37: uint16(31923), + 38: uint16(31925), + 39: uint16(32147), + 40: uint16(32121), + 41: uint16(32145), + 42: uint16(32129), + 43: uint16(32143), + 44: uint16(32091), + 45: uint16(32622), + 46: uint16(32617), + 47: uint16(32618), + 48: uint16(32626), + 49: uint16(32681), + 50: uint16(32680), + 51: uint16(32676), + 52: uint16(32854), + 53: uint16(32856), + 54: uint16(32902), + 55: uint16(32900), + 56: uint16(33137), + 57: uint16(33136), + 58: uint16(33144), + 59: uint16(33125), + 60: uint16(33134), + 61: uint16(33139), + 62: uint16(33131), + 63: uint16(33145), + 64: uint16(33146), + 65: uint16(33126), + 66: uint16(33285), + 67: uint16(33351), + 68: uint16(33922), + 69: uint16(33911), + 70: uint16(33853), + 71: uint16(33841), + 72: uint16(33909), + 73: uint16(33894), + 74: uint16(33899), + 75: uint16(33865), + 76: uint16(33900), + 77: uint16(33883), + 78: uint16(33852), + 79: uint16(33845), + 80: uint16(33889), + 81: uint16(33891), + 82: uint16(33897), + 83: uint16(33901), + 84: uint16(33862), + 85: uint16(34398), + 86: uint16(34396), + 87: uint16(34399), + 88: uint16(34553), + 89: uint16(34579), + 90: uint16(34568), + 91: uint16(34567), + 92: uint16(34560), + 93: uint16(34558), + 94: uint16(34555), + 95: uint16(34562), + 96: uint16(34563), + 97: uint16(34566), + 98: uint16(34570), + 99: uint16(34905), + 100: uint16(35039), + 101: uint16(35028), + 102: uint16(35033), + 103: uint16(35036), + 104: uint16(35032), + 105: uint16(35037), + 106: uint16(35041), + 107: uint16(35018), + 108: uint16(35029), + 109: uint16(35026), + 110: uint16(35228), + 111: uint16(35299), + 112: uint16(35435), + 113: uint16(35442), + 114: uint16(35443), + 115: uint16(35430), + 116: uint16(35433), + 117: uint16(35440), + 118: uint16(35463), + 119: uint16(35452), + 120: uint16(35427), + 121: uint16(35488), + 122: uint16(35441), + 123: uint16(35461), + 124: uint16(35437), + 125: uint16(35426), + 126: uint16(35438), + 127: uint16(35436), + 128: uint16(35449), + 129: uint16(35451), + 130: uint16(35390), + 131: uint16(35432), + 132: uint16(35938), + 133: uint16(35978), + 134: uint16(35977), + 135: uint16(36042), + 136: uint16(36039), + 137: uint16(36040), + 138: uint16(36036), + 139: uint16(36018), + 140: uint16(36035), + 141: uint16(36034), + 142: uint16(36037), + 143: uint16(36321), + 144: uint16(36319), + 145: uint16(36328), + 146: uint16(36335), + 147: uint16(36339), + 148: uint16(36346), + 149: uint16(36330), + 150: uint16(36324), + 151: uint16(36326), + 152: uint16(36530), + 153: uint16(36611), + 154: uint16(36617), + 155: uint16(36606), + 156: uint16(36618), + }, + 24: { + 0: uint16(36767), + 1: uint16(36786), + 2: uint16(36939), + 3: uint16(36938), + 4: uint16(36947), + 5: uint16(36930), + 6: uint16(36948), + 7: uint16(36924), + 8: uint16(36949), + 9: uint16(36944), + 10: uint16(36935), + 11: uint16(36943), + 12: uint16(36942), + 13: uint16(36941), + 14: uint16(36945), + 15: uint16(36926), + 16: uint16(36929), + 17: uint16(37138), + 18: uint16(37143), + 19: uint16(37228), + 20: uint16(37226), + 21: uint16(37225), + 22: uint16(37321), + 23: uint16(37431), + 24: uint16(37463), + 25: uint16(37432), + 26: uint16(37437), + 27: uint16(37440), + 28: uint16(37438), + 29: uint16(37467), + 30: uint16(37451), + 31: uint16(37476), + 32: uint16(37457), + 33: uint16(37428), + 34: uint16(37449), + 35: uint16(37453), + 36: uint16(37445), + 37: uint16(37433), + 38: uint16(37439), + 39: uint16(37466), + 40: uint16(38296), + 41: uint16(38552), + 42: uint16(38548), + 43: uint16(38549), + 44: uint16(38605), + 45: uint16(38603), + 46: uint16(38601), + 47: uint16(38602), + 48: uint16(38647), + 49: uint16(38651), + 50: uint16(38649), + 51: uint16(38646), + 52: uint16(38742), + 53: uint16(38772), + 54: uint16(38774), + 55: uint16(38928), + 56: uint16(38929), + 57: uint16(38931), + 58: uint16(38922), + 59: uint16(38930), + 60: uint16(38924), + 61: uint16(39164), + 62: uint16(39156), + 63: uint16(39165), + 64: uint16(39166), + 65: uint16(39347), + 66: uint16(39345), + 67: uint16(39348), + 68: uint16(39649), + 69: uint16(40169), + 70: uint16(40578), + 71: uint16(40718), + 72: uint16(40723), + 73: uint16(40736), + 74: uint16(20711), + 75: uint16(20718), + 76: uint16(20709), + 77: uint16(20694), + 78: uint16(20717), + 79: uint16(20698), + 80: uint16(20693), + 81: uint16(20687), + 82: uint16(20689), + 83: uint16(20721), + 84: uint16(20686), + 85: uint16(20713), + 86: uint16(20834), + 87: uint16(20979), + 88: uint16(21123), + 89: uint16(21122), + 90: uint16(21297), + 91: uint16(21421), + 92: uint16(22014), + 93: uint16(22016), + 94: uint16(22043), + 95: uint16(22039), + 96: uint16(22013), + 97: uint16(22036), + 98: uint16(22022), + 99: uint16(22025), + 100: uint16(22029), + 101: uint16(22030), + 102: uint16(22007), + 103: uint16(22038), + 104: uint16(22047), + 105: uint16(22024), + 106: uint16(22032), + 107: uint16(22006), + 108: uint16(22296), + 109: uint16(22294), + 110: uint16(22645), + 111: uint16(22654), + 112: uint16(22659), + 113: uint16(22675), + 114: uint16(22666), + 115: uint16(22649), + 116: uint16(22661), + 117: uint16(22653), + 118: uint16(22781), + 119: uint16(22821), + 120: uint16(22818), + 121: uint16(22820), + 122: uint16(22890), + 123: uint16(22889), + 124: uint16(23265), + 125: uint16(23270), + 126: uint16(23273), + 127: uint16(23255), + 128: uint16(23254), + 129: uint16(23256), + 130: uint16(23267), + 131: uint16(23413), + 132: uint16(23518), + 133: uint16(23527), + 134: uint16(23521), + 135: uint16(23525), + 136: uint16(23526), + 137: uint16(23528), + 138: uint16(23522), + 139: uint16(23524), + 140: uint16(23519), + 141: uint16(23565), + 142: uint16(23650), + 143: uint16(23940), + 144: uint16(23943), + 145: uint16(24155), + 146: uint16(24163), + 147: uint16(24149), + 148: uint16(24151), + 149: uint16(24148), + 150: uint16(24275), + 151: uint16(24278), + 152: uint16(24330), + 153: uint16(24390), + 154: uint16(24432), + 155: uint16(24505), + 156: uint16(24903), + }, + 25: { + 0: uint16(24895), + 1: uint16(24907), + 2: uint16(24951), + 3: uint16(24930), + 4: uint16(24931), + 5: uint16(24927), + 6: uint16(24922), + 7: uint16(24920), + 8: uint16(24949), + 9: uint16(25130), + 10: uint16(25735), + 11: uint16(25688), + 12: uint16(25684), + 13: uint16(25764), + 14: uint16(25720), + 15: uint16(25695), + 16: uint16(25722), + 17: uint16(25681), + 18: uint16(25703), + 19: uint16(25652), + 20: uint16(25709), + 21: uint16(25723), + 22: uint16(25970), + 23: uint16(26017), + 24: uint16(26071), + 25: uint16(26070), + 26: uint16(26274), + 27: uint16(26280), + 28: uint16(26269), + 29: uint16(27036), + 30: uint16(27048), + 31: uint16(27029), + 32: uint16(27073), + 33: uint16(27054), + 34: uint16(27091), + 35: uint16(27083), + 36: uint16(27035), + 37: uint16(27063), + 38: uint16(27067), + 39: uint16(27051), + 40: uint16(27060), + 41: uint16(27088), + 42: uint16(27085), + 43: uint16(27053), + 44: uint16(27084), + 45: uint16(27046), + 46: uint16(27075), + 47: uint16(27043), + 48: uint16(27465), + 49: uint16(27468), + 50: uint16(27699), + 51: uint16(28467), + 52: uint16(28436), + 53: uint16(28414), + 54: uint16(28435), + 55: uint16(28404), + 56: uint16(28457), + 57: uint16(28478), + 58: uint16(28448), + 59: uint16(28460), + 60: uint16(28431), + 61: uint16(28418), + 62: uint16(28450), + 63: uint16(28415), + 64: uint16(28399), + 65: uint16(28422), + 66: uint16(28465), + 67: uint16(28472), + 68: uint16(28466), + 69: uint16(28451), + 70: uint16(28437), + 71: uint16(28459), + 72: uint16(28463), + 73: uint16(28552), + 74: uint16(28458), + 75: uint16(28396), + 76: uint16(28417), + 77: uint16(28402), + 78: uint16(28364), + 79: uint16(28407), + 80: uint16(29076), + 81: uint16(29081), + 82: uint16(29053), + 83: uint16(29066), + 84: uint16(29060), + 85: uint16(29074), + 86: uint16(29246), + 87: uint16(29330), + 88: uint16(29334), + 89: uint16(29508), + 90: uint16(29520), + 91: uint16(29796), + 92: uint16(29795), + 93: uint16(29802), + 94: uint16(29808), + 95: uint16(29805), + 96: uint16(29956), + 97: uint16(30097), + 98: uint16(30247), + 99: uint16(30221), + 100: uint16(30219), + 101: uint16(30217), + 102: uint16(30227), + 103: uint16(30433), + 104: uint16(30435), + 105: uint16(30596), + 106: uint16(30589), + 107: uint16(30591), + 108: uint16(30561), + 109: uint16(30913), + 110: uint16(30879), + 111: uint16(30887), + 112: uint16(30899), + 113: uint16(30889), + 114: uint16(30883), + 115: uint16(31118), + 116: uint16(31119), + 117: uint16(31117), + 118: uint16(31278), + 119: uint16(31281), + 120: uint16(31402), + 121: uint16(31401), + 122: uint16(31469), + 123: uint16(31471), + 124: uint16(31649), + 125: uint16(31637), + 126: uint16(31627), + 127: uint16(31605), + 128: uint16(31639), + 129: uint16(31645), + 130: uint16(31636), + 131: uint16(31631), + 132: uint16(31672), + 133: uint16(31623), + 134: uint16(31620), + 135: uint16(31929), + 136: uint16(31933), + 137: uint16(31934), + 138: uint16(32187), + 139: uint16(32176), + 140: uint16(32156), + 141: uint16(32189), + 142: uint16(32190), + 143: uint16(32160), + 144: uint16(32202), + 145: uint16(32180), + 146: uint16(32178), + 147: uint16(32177), + 148: uint16(32186), + 149: uint16(32162), + 150: uint16(32191), + 151: uint16(32181), + 152: uint16(32184), + 153: uint16(32173), + 154: uint16(32210), + 155: uint16(32199), + 156: uint16(32172), + }, + 26: { + 0: uint16(32624), + 1: uint16(32736), + 2: uint16(32737), + 3: uint16(32735), + 4: uint16(32862), + 5: uint16(32858), + 6: uint16(32903), + 7: uint16(33104), + 8: uint16(33152), + 9: uint16(33167), + 10: uint16(33160), + 11: uint16(33162), + 12: uint16(33151), + 13: uint16(33154), + 14: uint16(33255), + 15: uint16(33274), + 16: uint16(33287), + 17: uint16(33300), + 18: uint16(33310), + 19: uint16(33355), + 20: uint16(33993), + 21: uint16(33983), + 22: uint16(33990), + 23: uint16(33988), + 24: uint16(33945), + 25: uint16(33950), + 26: uint16(33970), + 27: uint16(33948), + 28: uint16(33995), + 29: uint16(33976), + 30: uint16(33984), + 31: uint16(34003), + 32: uint16(33936), + 33: uint16(33980), + 34: uint16(34001), + 35: uint16(33994), + 36: uint16(34623), + 37: uint16(34588), + 38: uint16(34619), + 39: uint16(34594), + 40: uint16(34597), + 41: uint16(34612), + 42: uint16(34584), + 43: uint16(34645), + 44: uint16(34615), + 45: uint16(34601), + 46: uint16(35059), + 47: uint16(35074), + 48: uint16(35060), + 49: uint16(35065), + 50: uint16(35064), + 51: uint16(35069), + 52: uint16(35048), + 53: uint16(35098), + 54: uint16(35055), + 55: uint16(35494), + 56: uint16(35468), + 57: uint16(35486), + 58: uint16(35491), + 59: uint16(35469), + 60: uint16(35489), + 61: uint16(35475), + 62: uint16(35492), + 63: uint16(35498), + 64: uint16(35493), + 65: uint16(35496), + 66: uint16(35480), + 67: uint16(35473), + 68: uint16(35482), + 69: uint16(35495), + 70: uint16(35946), + 71: uint16(35981), + 72: uint16(35980), + 73: uint16(36051), + 74: uint16(36049), + 75: uint16(36050), + 76: uint16(36203), + 77: uint16(36249), + 78: uint16(36245), + 79: uint16(36348), + 80: uint16(36628), + 81: uint16(36626), + 82: uint16(36629), + 83: uint16(36627), + 84: uint16(36771), + 85: uint16(36960), + 86: uint16(36952), + 87: uint16(36956), + 88: uint16(36963), + 89: uint16(36953), + 90: uint16(36958), + 91: uint16(36962), + 92: uint16(36957), + 93: uint16(36955), + 94: uint16(37145), + 95: uint16(37144), + 96: uint16(37150), + 97: uint16(37237), + 98: uint16(37240), + 99: uint16(37239), + 100: uint16(37236), + 101: uint16(37496), + 102: uint16(37504), + 103: uint16(37509), + 104: uint16(37528), + 105: uint16(37526), + 106: uint16(37499), + 107: uint16(37523), + 108: uint16(37532), + 109: uint16(37544), + 110: uint16(37500), + 111: uint16(37521), + 112: uint16(38305), + 113: uint16(38312), + 114: uint16(38313), + 115: uint16(38307), + 116: uint16(38309), + 117: uint16(38308), + 118: uint16(38553), + 119: uint16(38556), + 120: uint16(38555), + 121: uint16(38604), + 122: uint16(38610), + 123: uint16(38656), + 124: uint16(38780), + 125: uint16(38789), + 126: uint16(38902), + 127: uint16(38935), + 128: uint16(38936), + 129: uint16(39087), + 130: uint16(39089), + 131: uint16(39171), + 132: uint16(39173), + 133: uint16(39180), + 134: uint16(39177), + 135: uint16(39361), + 136: uint16(39599), + 137: uint16(39600), + 138: uint16(39654), + 139: uint16(39745), + 140: uint16(39746), + 141: uint16(40180), + 142: uint16(40182), + 143: uint16(40179), + 144: uint16(40636), + 145: uint16(40763), + 146: uint16(40778), + 147: uint16(20740), + 148: uint16(20736), + 149: uint16(20731), + 150: uint16(20725), + 151: uint16(20729), + 152: uint16(20738), + 153: uint16(20744), + 154: uint16(20745), + 155: uint16(20741), + 156: uint16(20956), + }, + 27: { + 0: uint16(21127), + 1: uint16(21128), + 2: uint16(21129), + 3: uint16(21133), + 4: uint16(21130), + 5: uint16(21232), + 6: uint16(21426), + 7: uint16(22062), + 8: uint16(22075), + 9: uint16(22073), + 10: uint16(22066), + 11: uint16(22079), + 12: uint16(22068), + 13: uint16(22057), + 14: uint16(22099), + 15: uint16(22094), + 16: uint16(22103), + 17: uint16(22132), + 18: uint16(22070), + 19: uint16(22063), + 20: uint16(22064), + 21: uint16(22656), + 22: uint16(22687), + 23: uint16(22686), + 24: uint16(22707), + 25: uint16(22684), + 26: uint16(22702), + 27: uint16(22697), + 28: uint16(22694), + 29: uint16(22893), + 30: uint16(23305), + 31: uint16(23291), + 32: uint16(23307), + 33: uint16(23285), + 34: uint16(23308), + 35: uint16(23304), + 36: uint16(23534), + 37: uint16(23532), + 38: uint16(23529), + 39: uint16(23531), + 40: uint16(23652), + 41: uint16(23653), + 42: uint16(23965), + 43: uint16(23956), + 44: uint16(24162), + 45: uint16(24159), + 46: uint16(24161), + 47: uint16(24290), + 48: uint16(24282), + 49: uint16(24287), + 50: uint16(24285), + 51: uint16(24291), + 52: uint16(24288), + 53: uint16(24392), + 54: uint16(24433), + 55: uint16(24503), + 56: uint16(24501), + 57: uint16(24950), + 58: uint16(24935), + 59: uint16(24942), + 60: uint16(24925), + 61: uint16(24917), + 62: uint16(24962), + 63: uint16(24956), + 64: uint16(24944), + 65: uint16(24939), + 66: uint16(24958), + 67: uint16(24999), + 68: uint16(24976), + 69: uint16(25003), + 70: uint16(24974), + 71: uint16(25004), + 72: uint16(24986), + 73: uint16(24996), + 74: uint16(24980), + 75: uint16(25006), + 76: uint16(25134), + 77: uint16(25705), + 78: uint16(25711), + 79: uint16(25721), + 80: uint16(25758), + 81: uint16(25778), + 82: uint16(25736), + 83: uint16(25744), + 84: uint16(25776), + 85: uint16(25765), + 86: uint16(25747), + 87: uint16(25749), + 88: uint16(25769), + 89: uint16(25746), + 90: uint16(25774), + 91: uint16(25773), + 92: uint16(25771), + 93: uint16(25754), + 94: uint16(25772), + 95: uint16(25753), + 96: uint16(25762), + 97: uint16(25779), + 98: uint16(25973), + 99: uint16(25975), + 100: uint16(25976), + 101: uint16(26286), + 102: uint16(26283), + 103: uint16(26292), + 104: uint16(26289), + 105: uint16(27171), + 106: uint16(27167), + 107: uint16(27112), + 108: uint16(27137), + 109: uint16(27166), + 110: uint16(27161), + 111: uint16(27133), + 112: uint16(27169), + 113: uint16(27155), + 114: uint16(27146), + 115: uint16(27123), + 116: uint16(27138), + 117: uint16(27141), + 118: uint16(27117), + 119: uint16(27153), + 120: uint16(27472), + 121: uint16(27470), + 122: uint16(27556), + 123: uint16(27589), + 124: uint16(27590), + 125: uint16(28479), + 126: uint16(28540), + 127: uint16(28548), + 128: uint16(28497), + 129: uint16(28518), + 130: uint16(28500), + 131: uint16(28550), + 132: uint16(28525), + 133: uint16(28507), + 134: uint16(28536), + 135: uint16(28526), + 136: uint16(28558), + 137: uint16(28538), + 138: uint16(28528), + 139: uint16(28516), + 140: uint16(28567), + 141: uint16(28504), + 142: uint16(28373), + 143: uint16(28527), + 144: uint16(28512), + 145: uint16(28511), + 146: uint16(29087), + 147: uint16(29100), + 148: uint16(29105), + 149: uint16(29096), + 150: uint16(29270), + 151: uint16(29339), + 152: uint16(29518), + 153: uint16(29527), + 154: uint16(29801), + 155: uint16(29835), + 156: uint16(29827), + }, + 28: { + 0: uint16(29822), + 1: uint16(29824), + 2: uint16(30079), + 3: uint16(30240), + 4: uint16(30249), + 5: uint16(30239), + 6: uint16(30244), + 7: uint16(30246), + 8: uint16(30241), + 9: uint16(30242), + 10: uint16(30362), + 11: uint16(30394), + 12: uint16(30436), + 13: uint16(30606), + 14: uint16(30599), + 15: uint16(30604), + 16: uint16(30609), + 17: uint16(30603), + 18: uint16(30923), + 19: uint16(30917), + 20: uint16(30906), + 21: uint16(30922), + 22: uint16(30910), + 23: uint16(30933), + 24: uint16(30908), + 25: uint16(30928), + 26: uint16(31295), + 27: uint16(31292), + 28: uint16(31296), + 29: uint16(31293), + 30: uint16(31287), + 31: uint16(31291), + 32: uint16(31407), + 33: uint16(31406), + 34: uint16(31661), + 35: uint16(31665), + 36: uint16(31684), + 37: uint16(31668), + 38: uint16(31686), + 39: uint16(31687), + 40: uint16(31681), + 41: uint16(31648), + 42: uint16(31692), + 43: uint16(31946), + 44: uint16(32224), + 45: uint16(32244), + 46: uint16(32239), + 47: uint16(32251), + 48: uint16(32216), + 49: uint16(32236), + 50: uint16(32221), + 51: uint16(32232), + 52: uint16(32227), + 53: uint16(32218), + 54: uint16(32222), + 55: uint16(32233), + 56: uint16(32158), + 57: uint16(32217), + 58: uint16(32242), + 59: uint16(32249), + 60: uint16(32629), + 61: uint16(32631), + 62: uint16(32687), + 63: uint16(32745), + 64: uint16(32806), + 65: uint16(33179), + 66: uint16(33180), + 67: uint16(33181), + 68: uint16(33184), + 69: uint16(33178), + 70: uint16(33176), + 71: uint16(34071), + 72: uint16(34109), + 73: uint16(34074), + 74: uint16(34030), + 75: uint16(34092), + 76: uint16(34093), + 77: uint16(34067), + 78: uint16(34065), + 79: uint16(34083), + 80: uint16(34081), + 81: uint16(34068), + 82: uint16(34028), + 83: uint16(34085), + 84: uint16(34047), + 85: uint16(34054), + 86: uint16(34690), + 87: uint16(34676), + 88: uint16(34678), + 89: uint16(34656), + 90: uint16(34662), + 91: uint16(34680), + 92: uint16(34664), + 93: uint16(34649), + 94: uint16(34647), + 95: uint16(34636), + 96: uint16(34643), + 97: uint16(34907), + 98: uint16(34909), + 99: uint16(35088), + 100: uint16(35079), + 101: uint16(35090), + 102: uint16(35091), + 103: uint16(35093), + 104: uint16(35082), + 105: uint16(35516), + 106: uint16(35538), + 107: uint16(35527), + 108: uint16(35524), + 109: uint16(35477), + 110: uint16(35531), + 111: uint16(35576), + 112: uint16(35506), + 113: uint16(35529), + 114: uint16(35522), + 115: uint16(35519), + 116: uint16(35504), + 117: uint16(35542), + 118: uint16(35533), + 119: uint16(35510), + 120: uint16(35513), + 121: uint16(35547), + 122: uint16(35916), + 123: uint16(35918), + 124: uint16(35948), + 125: uint16(36064), + 126: uint16(36062), + 127: uint16(36070), + 128: uint16(36068), + 129: uint16(36076), + 130: uint16(36077), + 131: uint16(36066), + 132: uint16(36067), + 133: uint16(36060), + 134: uint16(36074), + 135: uint16(36065), + 136: uint16(36205), + 137: uint16(36255), + 138: uint16(36259), + 139: uint16(36395), + 140: uint16(36368), + 141: uint16(36381), + 142: uint16(36386), + 143: uint16(36367), + 144: uint16(36393), + 145: uint16(36383), + 146: uint16(36385), + 147: uint16(36382), + 148: uint16(36538), + 149: uint16(36637), + 150: uint16(36635), + 151: uint16(36639), + 152: uint16(36649), + 153: uint16(36646), + 154: uint16(36650), + 155: uint16(36636), + 156: uint16(36638), + }, + 29: { + 0: uint16(36645), + 1: uint16(36969), + 2: uint16(36974), + 3: uint16(36968), + 4: uint16(36973), + 5: uint16(36983), + 6: uint16(37168), + 7: uint16(37165), + 8: uint16(37159), + 9: uint16(37169), + 10: uint16(37255), + 11: uint16(37257), + 12: uint16(37259), + 13: uint16(37251), + 14: uint16(37573), + 15: uint16(37563), + 16: uint16(37559), + 17: uint16(37610), + 18: uint16(37548), + 19: uint16(37604), + 20: uint16(37569), + 21: uint16(37555), + 22: uint16(37564), + 23: uint16(37586), + 24: uint16(37575), + 25: uint16(37616), + 26: uint16(37554), + 27: uint16(38317), + 28: uint16(38321), + 29: uint16(38660), + 30: uint16(38662), + 31: uint16(38663), + 32: uint16(38665), + 33: uint16(38752), + 34: uint16(38797), + 35: uint16(38795), + 36: uint16(38799), + 37: uint16(38945), + 38: uint16(38955), + 39: uint16(38940), + 40: uint16(39091), + 41: uint16(39178), + 42: uint16(39187), + 43: uint16(39186), + 44: uint16(39192), + 45: uint16(39389), + 46: uint16(39376), + 47: uint16(39391), + 48: uint16(39387), + 49: uint16(39377), + 50: uint16(39381), + 51: uint16(39378), + 52: uint16(39385), + 53: uint16(39607), + 54: uint16(39662), + 55: uint16(39663), + 56: uint16(39719), + 57: uint16(39749), + 58: uint16(39748), + 59: uint16(39799), + 60: uint16(39791), + 61: uint16(40198), + 62: uint16(40201), + 63: uint16(40195), + 64: uint16(40617), + 65: uint16(40638), + 66: uint16(40654), + 67: uint16(22696), + 68: uint16(40786), + 69: uint16(20754), + 70: uint16(20760), + 71: uint16(20756), + 72: uint16(20752), + 73: uint16(20757), + 74: uint16(20864), + 75: uint16(20906), + 76: uint16(20957), + 77: uint16(21137), + 78: uint16(21139), + 79: uint16(21235), + 80: uint16(22105), + 81: uint16(22123), + 82: uint16(22137), + 83: uint16(22121), + 84: uint16(22116), + 85: uint16(22136), + 86: uint16(22122), + 87: uint16(22120), + 88: uint16(22117), + 89: uint16(22129), + 90: uint16(22127), + 91: uint16(22124), + 92: uint16(22114), + 93: uint16(22134), + 94: uint16(22721), + 95: uint16(22718), + 96: uint16(22727), + 97: uint16(22725), + 98: uint16(22894), + 99: uint16(23325), + 100: uint16(23348), + 101: uint16(23416), + 102: uint16(23536), + 103: uint16(23566), + 104: uint16(24394), + 105: uint16(25010), + 106: uint16(24977), + 107: uint16(25001), + 108: uint16(24970), + 109: uint16(25037), + 110: uint16(25014), + 111: uint16(25022), + 112: uint16(25034), + 113: uint16(25032), + 114: uint16(25136), + 115: uint16(25797), + 116: uint16(25793), + 117: uint16(25803), + 118: uint16(25787), + 119: uint16(25788), + 120: uint16(25818), + 121: uint16(25796), + 122: uint16(25799), + 123: uint16(25794), + 124: uint16(25805), + 125: uint16(25791), + 126: uint16(25810), + 127: uint16(25812), + 128: uint16(25790), + 129: uint16(25972), + 130: uint16(26310), + 131: uint16(26313), + 132: uint16(26297), + 133: uint16(26308), + 134: uint16(26311), + 135: uint16(26296), + 136: uint16(27197), + 137: uint16(27192), + 138: uint16(27194), + 139: uint16(27225), + 140: uint16(27243), + 141: uint16(27224), + 142: uint16(27193), + 143: uint16(27204), + 144: uint16(27234), + 145: uint16(27233), + 146: uint16(27211), + 147: uint16(27207), + 148: uint16(27189), + 149: uint16(27231), + 150: uint16(27208), + 151: uint16(27481), + 152: uint16(27511), + 153: uint16(27653), + 154: uint16(28610), + 155: uint16(28593), + 156: uint16(28577), + }, + 30: { + 0: uint16(28611), + 1: uint16(28580), + 2: uint16(28609), + 3: uint16(28583), + 4: uint16(28595), + 5: uint16(28608), + 6: uint16(28601), + 7: uint16(28598), + 8: uint16(28582), + 9: uint16(28576), + 10: uint16(28596), + 11: uint16(29118), + 12: uint16(29129), + 13: uint16(29136), + 14: uint16(29138), + 15: uint16(29128), + 16: uint16(29141), + 17: uint16(29113), + 18: uint16(29134), + 19: uint16(29145), + 20: uint16(29148), + 21: uint16(29123), + 22: uint16(29124), + 23: uint16(29544), + 24: uint16(29852), + 25: uint16(29859), + 26: uint16(29848), + 27: uint16(29855), + 28: uint16(29854), + 29: uint16(29922), + 30: uint16(29964), + 31: uint16(29965), + 32: uint16(30260), + 33: uint16(30264), + 34: uint16(30266), + 35: uint16(30439), + 36: uint16(30437), + 37: uint16(30624), + 38: uint16(30622), + 39: uint16(30623), + 40: uint16(30629), + 41: uint16(30952), + 42: uint16(30938), + 43: uint16(30956), + 44: uint16(30951), + 45: uint16(31142), + 46: uint16(31309), + 47: uint16(31310), + 48: uint16(31302), + 49: uint16(31308), + 50: uint16(31307), + 51: uint16(31418), + 52: uint16(31705), + 53: uint16(31761), + 54: uint16(31689), + 55: uint16(31716), + 56: uint16(31707), + 57: uint16(31713), + 58: uint16(31721), + 59: uint16(31718), + 60: uint16(31957), + 61: uint16(31958), + 62: uint16(32266), + 63: uint16(32273), + 64: uint16(32264), + 65: uint16(32283), + 66: uint16(32291), + 67: uint16(32286), + 68: uint16(32285), + 69: uint16(32265), + 70: uint16(32272), + 71: uint16(32633), + 72: uint16(32690), + 73: uint16(32752), + 74: uint16(32753), + 75: uint16(32750), + 76: uint16(32808), + 77: uint16(33203), + 78: uint16(33193), + 79: uint16(33192), + 80: uint16(33275), + 81: uint16(33288), + 82: uint16(33368), + 83: uint16(33369), + 84: uint16(34122), + 85: uint16(34137), + 86: uint16(34120), + 87: uint16(34152), + 88: uint16(34153), + 89: uint16(34115), + 90: uint16(34121), + 91: uint16(34157), + 92: uint16(34154), + 93: uint16(34142), + 94: uint16(34691), + 95: uint16(34719), + 96: uint16(34718), + 97: uint16(34722), + 98: uint16(34701), + 99: uint16(34913), + 100: uint16(35114), + 101: uint16(35122), + 102: uint16(35109), + 103: uint16(35115), + 104: uint16(35105), + 105: uint16(35242), + 106: uint16(35238), + 107: uint16(35558), + 108: uint16(35578), + 109: uint16(35563), + 110: uint16(35569), + 111: uint16(35584), + 112: uint16(35548), + 113: uint16(35559), + 114: uint16(35566), + 115: uint16(35582), + 116: uint16(35585), + 117: uint16(35586), + 118: uint16(35575), + 119: uint16(35565), + 120: uint16(35571), + 121: uint16(35574), + 122: uint16(35580), + 123: uint16(35947), + 124: uint16(35949), + 125: uint16(35987), + 126: uint16(36084), + 127: uint16(36420), + 128: uint16(36401), + 129: uint16(36404), + 130: uint16(36418), + 131: uint16(36409), + 132: uint16(36405), + 133: uint16(36667), + 134: uint16(36655), + 135: uint16(36664), + 136: uint16(36659), + 137: uint16(36776), + 138: uint16(36774), + 139: uint16(36981), + 140: uint16(36980), + 141: uint16(36984), + 142: uint16(36978), + 143: uint16(36988), + 144: uint16(36986), + 145: uint16(37172), + 146: uint16(37266), + 147: uint16(37664), + 148: uint16(37686), + 149: uint16(37624), + 150: uint16(37683), + 151: uint16(37679), + 152: uint16(37666), + 153: uint16(37628), + 154: uint16(37675), + 155: uint16(37636), + 156: uint16(37658), + }, + 31: { + 0: uint16(37648), + 1: uint16(37670), + 2: uint16(37665), + 3: uint16(37653), + 4: uint16(37678), + 5: uint16(37657), + 6: uint16(38331), + 7: uint16(38567), + 8: uint16(38568), + 9: uint16(38570), + 10: uint16(38613), + 11: uint16(38670), + 12: uint16(38673), + 13: uint16(38678), + 14: uint16(38669), + 15: uint16(38675), + 16: uint16(38671), + 17: uint16(38747), + 18: uint16(38748), + 19: uint16(38758), + 20: uint16(38808), + 21: uint16(38960), + 22: uint16(38968), + 23: uint16(38971), + 24: uint16(38967), + 25: uint16(38957), + 26: uint16(38969), + 27: uint16(38948), + 28: uint16(39184), + 29: uint16(39208), + 30: uint16(39198), + 31: uint16(39195), + 32: uint16(39201), + 33: uint16(39194), + 34: uint16(39405), + 35: uint16(39394), + 36: uint16(39409), + 37: uint16(39608), + 38: uint16(39612), + 39: uint16(39675), + 40: uint16(39661), + 41: uint16(39720), + 42: uint16(39825), + 43: uint16(40213), + 44: uint16(40227), + 45: uint16(40230), + 46: uint16(40232), + 47: uint16(40210), + 48: uint16(40219), + 49: uint16(40664), + 50: uint16(40660), + 51: uint16(40845), + 52: uint16(40860), + 53: uint16(20778), + 54: uint16(20767), + 55: uint16(20769), + 56: uint16(20786), + 57: uint16(21237), + 58: uint16(22158), + 59: uint16(22144), + 60: uint16(22160), + 61: uint16(22149), + 62: uint16(22151), + 63: uint16(22159), + 64: uint16(22741), + 65: uint16(22739), + 66: uint16(22737), + 67: uint16(22734), + 68: uint16(23344), + 69: uint16(23338), + 70: uint16(23332), + 71: uint16(23418), + 72: uint16(23607), + 73: uint16(23656), + 74: uint16(23996), + 75: uint16(23994), + 76: uint16(23997), + 77: uint16(23992), + 78: uint16(24171), + 79: uint16(24396), + 80: uint16(24509), + 81: uint16(25033), + 82: uint16(25026), + 83: uint16(25031), + 84: uint16(25062), + 85: uint16(25035), + 86: uint16(25138), + 87: uint16(25140), + 88: uint16(25806), + 89: uint16(25802), + 90: uint16(25816), + 91: uint16(25824), + 92: uint16(25840), + 93: uint16(25830), + 94: uint16(25836), + 95: uint16(25841), + 96: uint16(25826), + 97: uint16(25837), + 98: uint16(25986), + 99: uint16(25987), + 100: uint16(26329), + 101: uint16(26326), + 102: uint16(27264), + 103: uint16(27284), + 104: uint16(27268), + 105: uint16(27298), + 106: uint16(27292), + 107: uint16(27355), + 108: uint16(27299), + 109: uint16(27262), + 110: uint16(27287), + 111: uint16(27280), + 112: uint16(27296), + 113: uint16(27484), + 114: uint16(27566), + 115: uint16(27610), + 116: uint16(27656), + 117: uint16(28632), + 118: uint16(28657), + 119: uint16(28639), + 120: uint16(28640), + 121: uint16(28635), + 122: uint16(28644), + 123: uint16(28651), + 124: uint16(28655), + 125: uint16(28544), + 126: uint16(28652), + 127: uint16(28641), + 128: uint16(28649), + 129: uint16(28629), + 130: uint16(28654), + 131: uint16(28656), + 132: uint16(29159), + 133: uint16(29151), + 134: uint16(29166), + 135: uint16(29158), + 136: uint16(29157), + 137: uint16(29165), + 138: uint16(29164), + 139: uint16(29172), + 140: uint16(29152), + 141: uint16(29237), + 142: uint16(29254), + 143: uint16(29552), + 144: uint16(29554), + 145: uint16(29865), + 146: uint16(29872), + 147: uint16(29862), + 148: uint16(29864), + 149: uint16(30278), + 150: uint16(30274), + 151: uint16(30284), + 152: uint16(30442), + 153: uint16(30643), + 154: uint16(30634), + 155: uint16(30640), + 156: uint16(30636), + }, + 32: { + 0: uint16(30631), + 1: uint16(30637), + 2: uint16(30703), + 3: uint16(30967), + 4: uint16(30970), + 5: uint16(30964), + 6: uint16(30959), + 7: uint16(30977), + 8: uint16(31143), + 9: uint16(31146), + 10: uint16(31319), + 11: uint16(31423), + 12: uint16(31751), + 13: uint16(31757), + 14: uint16(31742), + 15: uint16(31735), + 16: uint16(31756), + 17: uint16(31712), + 18: uint16(31968), + 19: uint16(31964), + 20: uint16(31966), + 21: uint16(31970), + 22: uint16(31967), + 23: uint16(31961), + 24: uint16(31965), + 25: uint16(32302), + 26: uint16(32318), + 27: uint16(32326), + 28: uint16(32311), + 29: uint16(32306), + 30: uint16(32323), + 31: uint16(32299), + 32: uint16(32317), + 33: uint16(32305), + 34: uint16(32325), + 35: uint16(32321), + 36: uint16(32308), + 37: uint16(32313), + 38: uint16(32328), + 39: uint16(32309), + 40: uint16(32319), + 41: uint16(32303), + 42: uint16(32580), + 43: uint16(32755), + 44: uint16(32764), + 45: uint16(32881), + 46: uint16(32882), + 47: uint16(32880), + 48: uint16(32879), + 49: uint16(32883), + 50: uint16(33222), + 51: uint16(33219), + 52: uint16(33210), + 53: uint16(33218), + 54: uint16(33216), + 55: uint16(33215), + 56: uint16(33213), + 57: uint16(33225), + 58: uint16(33214), + 59: uint16(33256), + 60: uint16(33289), + 61: uint16(33393), + 62: uint16(34218), + 63: uint16(34180), + 64: uint16(34174), + 65: uint16(34204), + 66: uint16(34193), + 67: uint16(34196), + 68: uint16(34223), + 69: uint16(34203), + 70: uint16(34183), + 71: uint16(34216), + 72: uint16(34186), + 73: uint16(34407), + 74: uint16(34752), + 75: uint16(34769), + 76: uint16(34739), + 77: uint16(34770), + 78: uint16(34758), + 79: uint16(34731), + 80: uint16(34747), + 81: uint16(34746), + 82: uint16(34760), + 83: uint16(34763), + 84: uint16(35131), + 85: uint16(35126), + 86: uint16(35140), + 87: uint16(35128), + 88: uint16(35133), + 89: uint16(35244), + 90: uint16(35598), + 91: uint16(35607), + 92: uint16(35609), + 93: uint16(35611), + 94: uint16(35594), + 95: uint16(35616), + 96: uint16(35613), + 97: uint16(35588), + 98: uint16(35600), + 99: uint16(35905), + 100: uint16(35903), + 101: uint16(35955), + 102: uint16(36090), + 103: uint16(36093), + 104: uint16(36092), + 105: uint16(36088), + 106: uint16(36091), + 107: uint16(36264), + 108: uint16(36425), + 109: uint16(36427), + 110: uint16(36424), + 111: uint16(36426), + 112: uint16(36676), + 113: uint16(36670), + 114: uint16(36674), + 115: uint16(36677), + 116: uint16(36671), + 117: uint16(36991), + 118: uint16(36989), + 119: uint16(36996), + 120: uint16(36993), + 121: uint16(36994), + 122: uint16(36992), + 123: uint16(37177), + 124: uint16(37283), + 125: uint16(37278), + 126: uint16(37276), + 127: uint16(37709), + 128: uint16(37762), + 129: uint16(37672), + 130: uint16(37749), + 131: uint16(37706), + 132: uint16(37733), + 133: uint16(37707), + 134: uint16(37656), + 135: uint16(37758), + 136: uint16(37740), + 137: uint16(37723), + 138: uint16(37744), + 139: uint16(37722), + 140: uint16(37716), + 141: uint16(38346), + 142: uint16(38347), + 143: uint16(38348), + 144: uint16(38344), + 145: uint16(38342), + 146: uint16(38577), + 147: uint16(38584), + 148: uint16(38614), + 149: uint16(38684), + 150: uint16(38686), + 151: uint16(38816), + 152: uint16(38867), + 153: uint16(38982), + 154: uint16(39094), + 155: uint16(39221), + 156: uint16(39425), + }, + 33: { + 0: uint16(39423), + 1: uint16(39854), + 2: uint16(39851), + 3: uint16(39850), + 4: uint16(39853), + 5: uint16(40251), + 6: uint16(40255), + 7: uint16(40587), + 8: uint16(40655), + 9: uint16(40670), + 10: uint16(40668), + 11: uint16(40669), + 12: uint16(40667), + 13: uint16(40766), + 14: uint16(40779), + 15: uint16(21474), + 16: uint16(22165), + 17: uint16(22190), + 18: uint16(22745), + 19: uint16(22744), + 20: uint16(23352), + 21: uint16(24413), + 22: uint16(25059), + 23: uint16(25139), + 24: uint16(25844), + 25: uint16(25842), + 26: uint16(25854), + 27: uint16(25862), + 28: uint16(25850), + 29: uint16(25851), + 30: uint16(25847), + 31: uint16(26039), + 32: uint16(26332), + 33: uint16(26406), + 34: uint16(27315), + 35: uint16(27308), + 36: uint16(27331), + 37: uint16(27323), + 38: uint16(27320), + 39: uint16(27330), + 40: uint16(27310), + 41: uint16(27311), + 42: uint16(27487), + 43: uint16(27512), + 44: uint16(27567), + 45: uint16(28681), + 46: uint16(28683), + 47: uint16(28670), + 48: uint16(28678), + 49: uint16(28666), + 50: uint16(28689), + 51: uint16(28687), + 52: uint16(29179), + 53: uint16(29180), + 54: uint16(29182), + 55: uint16(29176), + 56: uint16(29559), + 57: uint16(29557), + 58: uint16(29863), + 59: uint16(29887), + 60: uint16(29973), + 61: uint16(30294), + 62: uint16(30296), + 63: uint16(30290), + 64: uint16(30653), + 65: uint16(30655), + 66: uint16(30651), + 67: uint16(30652), + 68: uint16(30990), + 69: uint16(31150), + 70: uint16(31329), + 71: uint16(31330), + 72: uint16(31328), + 73: uint16(31428), + 74: uint16(31429), + 75: uint16(31787), + 76: uint16(31783), + 77: uint16(31786), + 78: uint16(31774), + 79: uint16(31779), + 80: uint16(31777), + 81: uint16(31975), + 82: uint16(32340), + 83: uint16(32341), + 84: uint16(32350), + 85: uint16(32346), + 86: uint16(32353), + 87: uint16(32338), + 88: uint16(32345), + 89: uint16(32584), + 90: uint16(32761), + 91: uint16(32763), + 92: uint16(32887), + 93: uint16(32886), + 94: uint16(33229), + 95: uint16(33231), + 96: uint16(33290), + 97: uint16(34255), + 98: uint16(34217), + 99: uint16(34253), + 100: uint16(34256), + 101: uint16(34249), + 102: uint16(34224), + 103: uint16(34234), + 104: uint16(34233), + 105: uint16(34214), + 106: uint16(34799), + 107: uint16(34796), + 108: uint16(34802), + 109: uint16(34784), + 110: uint16(35206), + 111: uint16(35250), + 112: uint16(35316), + 113: uint16(35624), + 114: uint16(35641), + 115: uint16(35628), + 116: uint16(35627), + 117: uint16(35920), + 118: uint16(36101), + 119: uint16(36441), + 120: uint16(36451), + 121: uint16(36454), + 122: uint16(36452), + 123: uint16(36447), + 124: uint16(36437), + 125: uint16(36544), + 126: uint16(36681), + 127: uint16(36685), + 128: uint16(36999), + 129: uint16(36995), + 130: uint16(37000), + 131: uint16(37291), + 132: uint16(37292), + 133: uint16(37328), + 134: uint16(37780), + 135: uint16(37770), + 136: uint16(37782), + 137: uint16(37794), + 138: uint16(37811), + 139: uint16(37806), + 140: uint16(37804), + 141: uint16(37808), + 142: uint16(37784), + 143: uint16(37786), + 144: uint16(37783), + 145: uint16(38356), + 146: uint16(38358), + 147: uint16(38352), + 148: uint16(38357), + 149: uint16(38626), + 150: uint16(38620), + 151: uint16(38617), + 152: uint16(38619), + 153: uint16(38622), + 154: uint16(38692), + 155: uint16(38819), + 156: uint16(38822), + }, + 34: { + 0: uint16(38829), + 1: uint16(38905), + 2: uint16(38989), + 3: uint16(38991), + 4: uint16(38988), + 5: uint16(38990), + 6: uint16(38995), + 7: uint16(39098), + 8: uint16(39230), + 9: uint16(39231), + 10: uint16(39229), + 11: uint16(39214), + 12: uint16(39333), + 13: uint16(39438), + 14: uint16(39617), + 15: uint16(39683), + 16: uint16(39686), + 17: uint16(39759), + 18: uint16(39758), + 19: uint16(39757), + 20: uint16(39882), + 21: uint16(39881), + 22: uint16(39933), + 23: uint16(39880), + 24: uint16(39872), + 25: uint16(40273), + 26: uint16(40285), + 27: uint16(40288), + 28: uint16(40672), + 29: uint16(40725), + 30: uint16(40748), + 31: uint16(20787), + 32: uint16(22181), + 33: uint16(22750), + 34: uint16(22751), + 35: uint16(22754), + 36: uint16(23541), + 37: uint16(40848), + 38: uint16(24300), + 39: uint16(25074), + 40: uint16(25079), + 41: uint16(25078), + 42: uint16(25077), + 43: uint16(25856), + 44: uint16(25871), + 45: uint16(26336), + 46: uint16(26333), + 47: uint16(27365), + 48: uint16(27357), + 49: uint16(27354), + 50: uint16(27347), + 51: uint16(28699), + 52: uint16(28703), + 53: uint16(28712), + 54: uint16(28698), + 55: uint16(28701), + 56: uint16(28693), + 57: uint16(28696), + 58: uint16(29190), + 59: uint16(29197), + 60: uint16(29272), + 61: uint16(29346), + 62: uint16(29560), + 63: uint16(29562), + 64: uint16(29885), + 65: uint16(29898), + 66: uint16(29923), + 67: uint16(30087), + 68: uint16(30086), + 69: uint16(30303), + 70: uint16(30305), + 71: uint16(30663), + 72: uint16(31001), + 73: uint16(31153), + 74: uint16(31339), + 75: uint16(31337), + 76: uint16(31806), + 77: uint16(31807), + 78: uint16(31800), + 79: uint16(31805), + 80: uint16(31799), + 81: uint16(31808), + 82: uint16(32363), + 83: uint16(32365), + 84: uint16(32377), + 85: uint16(32361), + 86: uint16(32362), + 87: uint16(32645), + 88: uint16(32371), + 89: uint16(32694), + 90: uint16(32697), + 91: uint16(32696), + 92: uint16(33240), + 93: uint16(34281), + 94: uint16(34269), + 95: uint16(34282), + 96: uint16(34261), + 97: uint16(34276), + 98: uint16(34277), + 99: uint16(34295), + 100: uint16(34811), + 101: uint16(34821), + 102: uint16(34829), + 103: uint16(34809), + 104: uint16(34814), + 105: uint16(35168), + 106: uint16(35167), + 107: uint16(35158), + 108: uint16(35166), + 109: uint16(35649), + 110: uint16(35676), + 111: uint16(35672), + 112: uint16(35657), + 113: uint16(35674), + 114: uint16(35662), + 115: uint16(35663), + 116: uint16(35654), + 117: uint16(35673), + 118: uint16(36104), + 119: uint16(36106), + 120: uint16(36476), + 121: uint16(36466), + 122: uint16(36487), + 123: uint16(36470), + 124: uint16(36460), + 125: uint16(36474), + 126: uint16(36468), + 127: uint16(36692), + 128: uint16(36686), + 129: uint16(36781), + 130: uint16(37002), + 131: uint16(37003), + 132: uint16(37297), + 133: uint16(37294), + 134: uint16(37857), + 135: uint16(37841), + 136: uint16(37855), + 137: uint16(37827), + 138: uint16(37832), + 139: uint16(37852), + 140: uint16(37853), + 141: uint16(37846), + 142: uint16(37858), + 143: uint16(37837), + 144: uint16(37848), + 145: uint16(37860), + 146: uint16(37847), + 147: uint16(37864), + 148: uint16(38364), + 149: uint16(38580), + 150: uint16(38627), + 151: uint16(38698), + 152: uint16(38695), + 153: uint16(38753), + 154: uint16(38876), + 155: uint16(38907), + 156: uint16(39006), + }, + 35: { + 0: uint16(39000), + 1: uint16(39003), + 2: uint16(39100), + 3: uint16(39237), + 4: uint16(39241), + 5: uint16(39446), + 6: uint16(39449), + 7: uint16(39693), + 8: uint16(39912), + 9: uint16(39911), + 10: uint16(39894), + 11: uint16(39899), + 12: uint16(40329), + 13: uint16(40289), + 14: uint16(40306), + 15: uint16(40298), + 16: uint16(40300), + 17: uint16(40594), + 18: uint16(40599), + 19: uint16(40595), + 20: uint16(40628), + 21: uint16(21240), + 22: uint16(22184), + 23: uint16(22199), + 24: uint16(22198), + 25: uint16(22196), + 26: uint16(22204), + 27: uint16(22756), + 28: uint16(23360), + 29: uint16(23363), + 30: uint16(23421), + 31: uint16(23542), + 32: uint16(24009), + 33: uint16(25080), + 34: uint16(25082), + 35: uint16(25880), + 36: uint16(25876), + 37: uint16(25881), + 38: uint16(26342), + 39: uint16(26407), + 40: uint16(27372), + 41: uint16(28734), + 42: uint16(28720), + 43: uint16(28722), + 44: uint16(29200), + 45: uint16(29563), + 46: uint16(29903), + 47: uint16(30306), + 48: uint16(30309), + 49: uint16(31014), + 50: uint16(31018), + 51: uint16(31020), + 52: uint16(31019), + 53: uint16(31431), + 54: uint16(31478), + 55: uint16(31820), + 56: uint16(31811), + 57: uint16(31821), + 58: uint16(31983), + 59: uint16(31984), + 60: uint16(36782), + 61: uint16(32381), + 62: uint16(32380), + 63: uint16(32386), + 64: uint16(32588), + 65: uint16(32768), + 66: uint16(33242), + 67: uint16(33382), + 68: uint16(34299), + 69: uint16(34297), + 70: uint16(34321), + 71: uint16(34298), + 72: uint16(34310), + 73: uint16(34315), + 74: uint16(34311), + 75: uint16(34314), + 76: uint16(34836), + 77: uint16(34837), + 78: uint16(35172), + 79: uint16(35258), + 80: uint16(35320), + 81: uint16(35696), + 82: uint16(35692), + 83: uint16(35686), + 84: uint16(35695), + 85: uint16(35679), + 86: uint16(35691), + 87: uint16(36111), + 88: uint16(36109), + 89: uint16(36489), + 90: uint16(36481), + 91: uint16(36485), + 92: uint16(36482), + 93: uint16(37300), + 94: uint16(37323), + 95: uint16(37912), + 96: uint16(37891), + 97: uint16(37885), + 98: uint16(38369), + 99: uint16(38704), + 100: uint16(39108), + 101: uint16(39250), + 102: uint16(39249), + 103: uint16(39336), + 104: uint16(39467), + 105: uint16(39472), + 106: uint16(39479), + 107: uint16(39477), + 108: uint16(39955), + 109: uint16(39949), + 110: uint16(40569), + 111: uint16(40629), + 112: uint16(40680), + 113: uint16(40751), + 114: uint16(40799), + 115: uint16(40803), + 116: uint16(40801), + 117: uint16(20791), + 118: uint16(20792), + 119: uint16(22209), + 120: uint16(22208), + 121: uint16(22210), + 122: uint16(22804), + 123: uint16(23660), + 124: uint16(24013), + 125: uint16(25084), + 126: uint16(25086), + 127: uint16(25885), + 128: uint16(25884), + 129: uint16(26005), + 130: uint16(26345), + 131: uint16(27387), + 132: uint16(27396), + 133: uint16(27386), + 134: uint16(27570), + 135: uint16(28748), + 136: uint16(29211), + 137: uint16(29351), + 138: uint16(29910), + 139: uint16(29908), + 140: uint16(30313), + 141: uint16(30675), + 142: uint16(31824), + 143: uint16(32399), + 144: uint16(32396), + 145: uint16(32700), + 146: uint16(34327), + 147: uint16(34349), + 148: uint16(34330), + 149: uint16(34851), + 150: uint16(34850), + 151: uint16(34849), + 152: uint16(34847), + 153: uint16(35178), + 154: uint16(35180), + 155: uint16(35261), + 156: uint16(35700), + }, + 36: { + 0: uint16(35703), + 1: uint16(35709), + 2: uint16(36115), + 3: uint16(36490), + 4: uint16(36493), + 5: uint16(36491), + 6: uint16(36703), + 7: uint16(36783), + 8: uint16(37306), + 9: uint16(37934), + 10: uint16(37939), + 11: uint16(37941), + 12: uint16(37946), + 13: uint16(37944), + 14: uint16(37938), + 15: uint16(37931), + 16: uint16(38370), + 17: uint16(38712), + 18: uint16(38713), + 19: uint16(38706), + 20: uint16(38911), + 21: uint16(39015), + 22: uint16(39013), + 23: uint16(39255), + 24: uint16(39493), + 25: uint16(39491), + 26: uint16(39488), + 27: uint16(39486), + 28: uint16(39631), + 29: uint16(39764), + 30: uint16(39761), + 31: uint16(39981), + 32: uint16(39973), + 33: uint16(40367), + 34: uint16(40372), + 35: uint16(40386), + 36: uint16(40376), + 37: uint16(40605), + 38: uint16(40687), + 39: uint16(40729), + 40: uint16(40796), + 41: uint16(40806), + 42: uint16(40807), + 43: uint16(20796), + 44: uint16(20795), + 45: uint16(22216), + 46: uint16(22218), + 47: uint16(22217), + 48: uint16(23423), + 49: uint16(24020), + 50: uint16(24018), + 51: uint16(24398), + 52: uint16(25087), + 53: uint16(25892), + 54: uint16(27402), + 55: uint16(27489), + 56: uint16(28753), + 57: uint16(28760), + 58: uint16(29568), + 59: uint16(29924), + 60: uint16(30090), + 61: uint16(30318), + 62: uint16(30316), + 63: uint16(31155), + 64: uint16(31840), + 65: uint16(31839), + 66: uint16(32894), + 67: uint16(32893), + 68: uint16(33247), + 69: uint16(35186), + 70: uint16(35183), + 71: uint16(35324), + 72: uint16(35712), + 73: uint16(36118), + 74: uint16(36119), + 75: uint16(36497), + 76: uint16(36499), + 77: uint16(36705), + 78: uint16(37192), + 79: uint16(37956), + 80: uint16(37969), + 81: uint16(37970), + 82: uint16(38717), + 83: uint16(38718), + 84: uint16(38851), + 85: uint16(38849), + 86: uint16(39019), + 87: uint16(39253), + 88: uint16(39509), + 89: uint16(39501), + 90: uint16(39634), + 91: uint16(39706), + 92: uint16(40009), + 93: uint16(39985), + 94: uint16(39998), + 95: uint16(39995), + 96: uint16(40403), + 97: uint16(40407), + 98: uint16(40756), + 99: uint16(40812), + 100: uint16(40810), + 101: uint16(40852), + 102: uint16(22220), + 103: uint16(24022), + 104: uint16(25088), + 105: uint16(25891), + 106: uint16(25899), + 107: uint16(25898), + 108: uint16(26348), + 109: uint16(27408), + 110: uint16(29914), + 111: uint16(31434), + 112: uint16(31844), + 113: uint16(31843), + 114: uint16(31845), + 115: uint16(32403), + 116: uint16(32406), + 117: uint16(32404), + 118: uint16(33250), + 119: uint16(34360), + 120: uint16(34367), + 121: uint16(34865), + 122: uint16(35722), + 123: uint16(37008), + 124: uint16(37007), + 125: uint16(37987), + 126: uint16(37984), + 127: uint16(37988), + 128: uint16(38760), + 129: uint16(39023), + 130: uint16(39260), + 131: uint16(39514), + 132: uint16(39515), + 133: uint16(39511), + 134: uint16(39635), + 135: uint16(39636), + 136: uint16(39633), + 137: uint16(40020), + 138: uint16(40023), + 139: uint16(40022), + 140: uint16(40421), + 141: uint16(40607), + 142: uint16(40692), + 143: uint16(22225), + 144: uint16(22761), + 145: uint16(25900), + 146: uint16(28766), + 147: uint16(30321), + 148: uint16(30322), + 149: uint16(30679), + 150: uint16(32592), + 151: uint16(32648), + 152: uint16(34870), + 153: uint16(34873), + 154: uint16(34914), + 155: uint16(35731), + 156: uint16(35730), + }, + 37: { + 0: uint16(35734), + 1: uint16(33399), + 2: uint16(36123), + 3: uint16(37312), + 4: uint16(37994), + 5: uint16(38722), + 6: uint16(38728), + 7: uint16(38724), + 8: uint16(38854), + 9: uint16(39024), + 10: uint16(39519), + 11: uint16(39714), + 12: uint16(39768), + 13: uint16(40031), + 14: uint16(40441), + 15: uint16(40442), + 16: uint16(40572), + 17: uint16(40573), + 18: uint16(40711), + 19: uint16(40823), + 20: uint16(40818), + 21: uint16(24307), + 22: uint16(27414), + 23: uint16(28771), + 24: uint16(31852), + 25: uint16(31854), + 26: uint16(34875), + 27: uint16(35264), + 28: uint16(36513), + 29: uint16(37313), + 30: uint16(38002), + 31: uint16(38000), + 32: uint16(39025), + 33: uint16(39262), + 34: uint16(39638), + 35: uint16(39715), + 36: uint16(40652), + 37: uint16(28772), + 38: uint16(30682), + 39: uint16(35738), + 40: uint16(38007), + 41: uint16(38857), + 42: uint16(39522), + 43: uint16(39525), + 44: uint16(32412), + 45: uint16(35740), + 46: uint16(36522), + 47: uint16(37317), + 48: uint16(38013), + 49: uint16(38014), + 50: uint16(38012), + 51: uint16(40055), + 52: uint16(40056), + 53: uint16(40695), + 54: uint16(35924), + 55: uint16(38015), + 56: uint16(40474), + 57: uint16(29224), + 58: uint16(39530), + 59: uint16(39729), + 60: uint16(40475), + 61: uint16(40478), + 62: uint16(31858), + 63: uint16(9312), + 64: uint16(9313), + 65: uint16(9314), + 66: uint16(9315), + 67: uint16(9316), + 68: uint16(9317), + 69: uint16(9318), + 70: uint16(9319), + 71: uint16(9320), + 72: uint16(9321), + 73: uint16(9332), + 74: uint16(9333), + 75: uint16(9334), + 76: uint16(9335), + 77: uint16(9336), + 78: uint16(9337), + 79: uint16(9338), + 80: uint16(9339), + 81: uint16(9340), + 82: uint16(9341), + 83: uint16(8560), + 84: uint16(8561), + 85: uint16(8562), + 86: uint16(8563), + 87: uint16(8564), + 88: uint16(8565), + 89: uint16(8566), + 90: uint16(8567), + 91: uint16(8568), + 92: uint16(8569), + 93: uint16(20022), + 94: uint16(20031), + 95: uint16(20101), + 96: uint16(20128), + 97: uint16(20866), + 98: uint16(20886), + 99: uint16(20907), + 100: uint16(21241), + 101: uint16(21304), + 102: uint16(21353), + 103: uint16(21430), + 104: uint16(22794), + 105: uint16(23424), + 106: uint16(24027), + 107: uint16(24186), + 108: uint16(24191), + 109: uint16(24308), + 110: uint16(24400), + 111: uint16(24417), + 112: uint16(25908), + 113: uint16(26080), + 114: uint16(30098), + 115: uint16(30326), + 116: uint16(36789), + 117: uint16(38582), + 118: uint16(168), + 119: uint16(710), + 120: uint16(12541), + 121: uint16(12542), + 122: uint16(12445), + 123: uint16(12446), + 126: uint16(12293), + 127: uint16(12294), + 128: uint16(12295), + 129: uint16(12540), + 130: uint16(65339), + 131: uint16(65341), + 132: uint16(10045), + 133: uint16(12353), + 134: uint16(12354), + 135: uint16(12355), + 136: uint16(12356), + 137: uint16(12357), + 138: uint16(12358), + 139: uint16(12359), + 140: uint16(12360), + 141: uint16(12361), + 142: uint16(12362), + 143: uint16(12363), + 144: uint16(12364), + 145: uint16(12365), + 146: uint16(12366), + 147: uint16(12367), + 148: uint16(12368), + 149: uint16(12369), + 150: uint16(12370), + 151: uint16(12371), + 152: uint16(12372), + 153: uint16(12373), + 154: uint16(12374), + 155: uint16(12375), + 156: uint16(12376), + }, + 38: { + 0: uint16(12377), + 1: uint16(12378), + 2: uint16(12379), + 3: uint16(12380), + 4: uint16(12381), + 5: uint16(12382), + 6: uint16(12383), + 7: uint16(12384), + 8: uint16(12385), + 9: uint16(12386), + 10: uint16(12387), + 11: uint16(12388), + 12: uint16(12389), + 13: uint16(12390), + 14: uint16(12391), + 15: uint16(12392), + 16: uint16(12393), + 17: uint16(12394), + 18: uint16(12395), + 19: uint16(12396), + 20: uint16(12397), + 21: uint16(12398), + 22: uint16(12399), + 23: uint16(12400), + 24: uint16(12401), + 25: uint16(12402), + 26: uint16(12403), + 27: uint16(12404), + 28: uint16(12405), + 29: uint16(12406), + 30: uint16(12407), + 31: uint16(12408), + 32: uint16(12409), + 33: uint16(12410), + 34: uint16(12411), + 35: uint16(12412), + 36: uint16(12413), + 37: uint16(12414), + 38: uint16(12415), + 39: uint16(12416), + 40: uint16(12417), + 41: uint16(12418), + 42: uint16(12419), + 43: uint16(12420), + 44: uint16(12421), + 45: uint16(12422), + 46: uint16(12423), + 47: uint16(12424), + 48: uint16(12425), + 49: uint16(12426), + 50: uint16(12427), + 51: uint16(12428), + 52: uint16(12429), + 53: uint16(12430), + 54: uint16(12431), + 55: uint16(12432), + 56: uint16(12433), + 57: uint16(12434), + 58: uint16(12435), + 59: uint16(12449), + 60: uint16(12450), + 61: uint16(12451), + 62: uint16(12452), + 63: uint16(12453), + 64: uint16(12454), + 65: uint16(12455), + 66: uint16(12456), + 67: uint16(12457), + 68: uint16(12458), + 69: uint16(12459), + 70: uint16(12460), + 71: uint16(12461), + 72: uint16(12462), + 73: uint16(12463), + 74: uint16(12464), + 75: uint16(12465), + 76: uint16(12466), + 77: uint16(12467), + 78: uint16(12468), + 79: uint16(12469), + 80: uint16(12470), + 81: uint16(12471), + 82: uint16(12472), + 83: uint16(12473), + 84: uint16(12474), + 85: uint16(12475), + 86: uint16(12476), + 87: uint16(12477), + 88: uint16(12478), + 89: uint16(12479), + 90: uint16(12480), + 91: uint16(12481), + 92: uint16(12482), + 93: uint16(12483), + 94: uint16(12484), + 95: uint16(12485), + 96: uint16(12486), + 97: uint16(12487), + 98: uint16(12488), + 99: uint16(12489), + 100: uint16(12490), + 101: uint16(12491), + 102: uint16(12492), + 103: uint16(12493), + 104: uint16(12494), + 105: uint16(12495), + 106: uint16(12496), + 107: uint16(12497), + 108: uint16(12498), + 109: uint16(12499), + 110: uint16(12500), + 111: uint16(12501), + 112: uint16(12502), + 113: uint16(12503), + 114: uint16(12504), + 115: uint16(12505), + 116: uint16(12506), + 117: uint16(12507), + 118: uint16(12508), + 119: uint16(12509), + 120: uint16(12510), + 121: uint16(12511), + 122: uint16(12512), + 123: uint16(12513), + 124: uint16(12514), + 125: uint16(12515), + 126: uint16(12516), + 127: uint16(12517), + 128: uint16(12518), + 129: uint16(12519), + 130: uint16(12520), + 131: uint16(12521), + 132: uint16(12522), + 133: uint16(12523), + 134: uint16(12524), + 135: uint16(12525), + 136: uint16(12526), + 137: uint16(12527), + 138: uint16(12528), + 139: uint16(12529), + 140: uint16(12530), + 141: uint16(12531), + 142: uint16(12532), + 143: uint16(12533), + 144: uint16(12534), + 145: uint16(1040), + 146: uint16(1041), + 147: uint16(1042), + 148: uint16(1043), + 149: uint16(1044), + 150: uint16(1045), + 151: uint16(1025), + 152: uint16(1046), + 153: uint16(1047), + 154: uint16(1048), + 155: uint16(1049), + 156: uint16(1050), + }, + 39: { + 0: uint16(1051), + 1: uint16(1052), + 2: uint16(1053), + 3: uint16(1054), + 4: uint16(1055), + 5: uint16(1056), + 6: uint16(1057), + 7: uint16(1058), + 8: uint16(1059), + 9: uint16(1060), + 10: uint16(1061), + 11: uint16(1062), + 12: uint16(1063), + 13: uint16(1064), + 14: uint16(1065), + 15: uint16(1066), + 16: uint16(1067), + 17: uint16(1068), + 18: uint16(1069), + 19: uint16(1070), + 20: uint16(1071), + 21: uint16(1072), + 22: uint16(1073), + 23: uint16(1074), + 24: uint16(1075), + 25: uint16(1076), + 26: uint16(1077), + 27: uint16(1105), + 28: uint16(1078), + 29: uint16(1079), + 30: uint16(1080), + 31: uint16(1081), + 32: uint16(1082), + 33: uint16(1083), + 34: uint16(1084), + 35: uint16(1085), + 36: uint16(1086), + 37: uint16(1087), + 38: uint16(1088), + 39: uint16(1089), + 40: uint16(1090), + 41: uint16(1091), + 42: uint16(1092), + 43: uint16(1093), + 44: uint16(1094), + 45: uint16(1095), + 46: uint16(1096), + 47: uint16(1097), + 48: uint16(1098), + 49: uint16(1099), + 50: uint16(1100), + 51: uint16(1101), + 52: uint16(1102), + 53: uint16(1103), + 54: uint16(8679), + 55: uint16(8632), + 56: uint16(8633), + 57: uint16(12751), + 58: uint16(204), + 59: uint16(20058), + 60: uint16(138), + 61: uint16(20994), + 62: uint16(17553), + 63: uint16(40880), + 64: uint16(20872), + 65: uint16(40881), + 66: uint16(30215), + 107: uint16(65506), + 108: uint16(65508), + 109: uint16(65287), + 110: uint16(65282), + 111: uint16(12849), + 112: uint16(8470), + 113: uint16(8481), + 114: uint16(12443), + 115: uint16(12444), + 116: uint16(11904), + 117: uint16(11908), + 118: uint16(11910), + 119: uint16(11911), + 120: uint16(11912), + 121: uint16(11914), + 122: uint16(11916), + 123: uint16(11917), + 124: uint16(11925), + 125: uint16(11932), + 126: uint16(11933), + 127: uint16(11941), + 128: uint16(11943), + 129: uint16(11946), + 130: uint16(11948), + 131: uint16(11950), + 132: uint16(11958), + 133: uint16(11964), + 134: uint16(11966), + 135: uint16(11974), + 136: uint16(11978), + 137: uint16(11980), + 138: uint16(11981), + 139: uint16(11983), + 140: uint16(11990), + 141: uint16(11991), + 142: uint16(11998), + 143: uint16(12003), + 147: uint16(643), + 148: uint16(592), + 149: uint16(603), + 150: uint16(596), + 151: uint16(629), + 152: uint16(339), + 153: uint16(248), + 154: uint16(331), + 155: uint16(650), + 156: uint16(618), + }, + 40: { + 0: uint16(20034), + 1: uint16(20060), + 2: uint16(20981), + 3: uint16(21274), + 4: uint16(21378), + 5: uint16(19975), + 6: uint16(19980), + 7: uint16(20039), + 8: uint16(20109), + 9: uint16(22231), + 10: uint16(64012), + 11: uint16(23662), + 12: uint16(24435), + 13: uint16(19983), + 14: uint16(20871), + 15: uint16(19982), + 16: uint16(20014), + 17: uint16(20115), + 18: uint16(20162), + 19: uint16(20169), + 20: uint16(20168), + 21: uint16(20888), + 22: uint16(21244), + 23: uint16(21356), + 24: uint16(21433), + 25: uint16(22304), + 26: uint16(22787), + 27: uint16(22828), + 28: uint16(23568), + 29: uint16(24063), + 30: uint16(26081), + 31: uint16(27571), + 32: uint16(27596), + 33: uint16(27668), + 34: uint16(29247), + 35: uint16(20017), + 36: uint16(20028), + 37: uint16(20200), + 38: uint16(20188), + 39: uint16(20201), + 40: uint16(20193), + 41: uint16(20189), + 42: uint16(20186), + 43: uint16(21004), + 44: uint16(21276), + 45: uint16(21324), + 46: uint16(22306), + 47: uint16(22307), + 48: uint16(22807), + 49: uint16(22831), + 50: uint16(23425), + 51: uint16(23428), + 52: uint16(23570), + 53: uint16(23611), + 54: uint16(23668), + 55: uint16(23667), + 56: uint16(24068), + 57: uint16(24192), + 58: uint16(24194), + 59: uint16(24521), + 60: uint16(25097), + 61: uint16(25168), + 62: uint16(27669), + 63: uint16(27702), + 64: uint16(27715), + 65: uint16(27711), + 66: uint16(27707), + 67: uint16(29358), + 68: uint16(29360), + 69: uint16(29578), + 70: uint16(31160), + 71: uint16(32906), + 72: uint16(38430), + 73: uint16(20238), + 74: uint16(20248), + 75: uint16(20268), + 76: uint16(20213), + 77: uint16(20244), + 78: uint16(20209), + 79: uint16(20224), + 80: uint16(20215), + 81: uint16(20232), + 82: uint16(20253), + 83: uint16(20226), + 84: uint16(20229), + 85: uint16(20258), + 86: uint16(20243), + 87: uint16(20228), + 88: uint16(20212), + 89: uint16(20242), + 90: uint16(20913), + 91: uint16(21011), + 92: uint16(21001), + 93: uint16(21008), + 94: uint16(21158), + 95: uint16(21282), + 96: uint16(21279), + 97: uint16(21325), + 98: uint16(21386), + 99: uint16(21511), + 100: uint16(22241), + 101: uint16(22239), + 102: uint16(22318), + 103: uint16(22314), + 104: uint16(22324), + 105: uint16(22844), + 106: uint16(22912), + 107: uint16(22908), + 108: uint16(22917), + 109: uint16(22907), + 110: uint16(22910), + 111: uint16(22903), + 112: uint16(22911), + 113: uint16(23382), + 114: uint16(23573), + 115: uint16(23589), + 116: uint16(23676), + 117: uint16(23674), + 118: uint16(23675), + 119: uint16(23678), + 120: uint16(24031), + 121: uint16(24181), + 122: uint16(24196), + 123: uint16(24322), + 124: uint16(24346), + 125: uint16(24436), + 126: uint16(24533), + 127: uint16(24532), + 128: uint16(24527), + 129: uint16(25180), + 130: uint16(25182), + 131: uint16(25188), + 132: uint16(25185), + 133: uint16(25190), + 134: uint16(25186), + 135: uint16(25177), + 136: uint16(25184), + 137: uint16(25178), + 138: uint16(25189), + 139: uint16(26095), + 140: uint16(26094), + 141: uint16(26430), + 142: uint16(26425), + 143: uint16(26424), + 144: uint16(26427), + 145: uint16(26426), + 146: uint16(26431), + 147: uint16(26428), + 148: uint16(26419), + 149: uint16(27672), + 150: uint16(27718), + 151: uint16(27730), + 152: uint16(27740), + 153: uint16(27727), + 154: uint16(27722), + 155: uint16(27732), + 156: uint16(27723), + }, + 41: { + 0: uint16(27724), + 1: uint16(28785), + 2: uint16(29278), + 3: uint16(29364), + 4: uint16(29365), + 5: uint16(29582), + 6: uint16(29994), + 7: uint16(30335), + 8: uint16(31349), + 9: uint16(32593), + 10: uint16(33400), + 11: uint16(33404), + 12: uint16(33408), + 13: uint16(33405), + 14: uint16(33407), + 15: uint16(34381), + 16: uint16(35198), + 17: uint16(37017), + 18: uint16(37015), + 19: uint16(37016), + 20: uint16(37019), + 21: uint16(37012), + 22: uint16(38434), + 23: uint16(38436), + 24: uint16(38432), + 25: uint16(38435), + 26: uint16(20310), + 27: uint16(20283), + 28: uint16(20322), + 29: uint16(20297), + 30: uint16(20307), + 31: uint16(20324), + 32: uint16(20286), + 33: uint16(20327), + 34: uint16(20306), + 35: uint16(20319), + 36: uint16(20289), + 37: uint16(20312), + 38: uint16(20269), + 39: uint16(20275), + 40: uint16(20287), + 41: uint16(20321), + 42: uint16(20879), + 43: uint16(20921), + 44: uint16(21020), + 45: uint16(21022), + 46: uint16(21025), + 47: uint16(21165), + 48: uint16(21166), + 49: uint16(21257), + 50: uint16(21347), + 51: uint16(21362), + 52: uint16(21390), + 53: uint16(21391), + 54: uint16(21552), + 55: uint16(21559), + 56: uint16(21546), + 57: uint16(21588), + 58: uint16(21573), + 59: uint16(21529), + 60: uint16(21532), + 61: uint16(21541), + 62: uint16(21528), + 63: uint16(21565), + 64: uint16(21583), + 65: uint16(21569), + 66: uint16(21544), + 67: uint16(21540), + 68: uint16(21575), + 69: uint16(22254), + 70: uint16(22247), + 71: uint16(22245), + 72: uint16(22337), + 73: uint16(22341), + 74: uint16(22348), + 75: uint16(22345), + 76: uint16(22347), + 77: uint16(22354), + 78: uint16(22790), + 79: uint16(22848), + 80: uint16(22950), + 81: uint16(22936), + 82: uint16(22944), + 83: uint16(22935), + 84: uint16(22926), + 85: uint16(22946), + 86: uint16(22928), + 87: uint16(22927), + 88: uint16(22951), + 89: uint16(22945), + 90: uint16(23438), + 91: uint16(23442), + 92: uint16(23592), + 93: uint16(23594), + 94: uint16(23693), + 95: uint16(23695), + 96: uint16(23688), + 97: uint16(23691), + 98: uint16(23689), + 99: uint16(23698), + 100: uint16(23690), + 101: uint16(23686), + 102: uint16(23699), + 103: uint16(23701), + 104: uint16(24032), + 105: uint16(24074), + 106: uint16(24078), + 107: uint16(24203), + 108: uint16(24201), + 109: uint16(24204), + 110: uint16(24200), + 111: uint16(24205), + 112: uint16(24325), + 113: uint16(24349), + 114: uint16(24440), + 115: uint16(24438), + 116: uint16(24530), + 117: uint16(24529), + 118: uint16(24528), + 119: uint16(24557), + 120: uint16(24552), + 121: uint16(24558), + 122: uint16(24563), + 123: uint16(24545), + 124: uint16(24548), + 125: uint16(24547), + 126: uint16(24570), + 127: uint16(24559), + 128: uint16(24567), + 129: uint16(24571), + 130: uint16(24576), + 131: uint16(24564), + 132: uint16(25146), + 133: uint16(25219), + 134: uint16(25228), + 135: uint16(25230), + 136: uint16(25231), + 137: uint16(25236), + 138: uint16(25223), + 139: uint16(25201), + 140: uint16(25211), + 141: uint16(25210), + 142: uint16(25200), + 143: uint16(25217), + 144: uint16(25224), + 145: uint16(25207), + 146: uint16(25213), + 147: uint16(25202), + 148: uint16(25204), + 149: uint16(25911), + 150: uint16(26096), + 151: uint16(26100), + 152: uint16(26099), + 153: uint16(26098), + 154: uint16(26101), + 155: uint16(26437), + 156: uint16(26439), + }, + 42: { + 0: uint16(26457), + 1: uint16(26453), + 2: uint16(26444), + 3: uint16(26440), + 4: uint16(26461), + 5: uint16(26445), + 6: uint16(26458), + 7: uint16(26443), + 8: uint16(27600), + 9: uint16(27673), + 10: uint16(27674), + 11: uint16(27768), + 12: uint16(27751), + 13: uint16(27755), + 14: uint16(27780), + 15: uint16(27787), + 16: uint16(27791), + 17: uint16(27761), + 18: uint16(27759), + 19: uint16(27753), + 20: uint16(27802), + 21: uint16(27757), + 22: uint16(27783), + 23: uint16(27797), + 24: uint16(27804), + 25: uint16(27750), + 26: uint16(27763), + 27: uint16(27749), + 28: uint16(27771), + 29: uint16(27790), + 30: uint16(28788), + 31: uint16(28794), + 32: uint16(29283), + 33: uint16(29375), + 34: uint16(29373), + 35: uint16(29379), + 36: uint16(29382), + 37: uint16(29377), + 38: uint16(29370), + 39: uint16(29381), + 40: uint16(29589), + 41: uint16(29591), + 42: uint16(29587), + 43: uint16(29588), + 44: uint16(29586), + 45: uint16(30010), + 46: uint16(30009), + 47: uint16(30100), + 48: uint16(30101), + 49: uint16(30337), + 50: uint16(31037), + 51: uint16(32820), + 52: uint16(32917), + 53: uint16(32921), + 54: uint16(32912), + 55: uint16(32914), + 56: uint16(32924), + 57: uint16(33424), + 58: uint16(33423), + 59: uint16(33413), + 60: uint16(33422), + 61: uint16(33425), + 62: uint16(33427), + 63: uint16(33418), + 64: uint16(33411), + 65: uint16(33412), + 66: uint16(35960), + 67: uint16(36809), + 68: uint16(36799), + 69: uint16(37023), + 70: uint16(37025), + 71: uint16(37029), + 72: uint16(37022), + 73: uint16(37031), + 74: uint16(37024), + 75: uint16(38448), + 76: uint16(38440), + 77: uint16(38447), + 78: uint16(38445), + 79: uint16(20019), + 80: uint16(20376), + 81: uint16(20348), + 82: uint16(20357), + 83: uint16(20349), + 84: uint16(20352), + 85: uint16(20359), + 86: uint16(20342), + 87: uint16(20340), + 88: uint16(20361), + 89: uint16(20356), + 90: uint16(20343), + 91: uint16(20300), + 92: uint16(20375), + 93: uint16(20330), + 94: uint16(20378), + 95: uint16(20345), + 96: uint16(20353), + 97: uint16(20344), + 98: uint16(20368), + 99: uint16(20380), + 100: uint16(20372), + 101: uint16(20382), + 102: uint16(20370), + 103: uint16(20354), + 104: uint16(20373), + 105: uint16(20331), + 106: uint16(20334), + 107: uint16(20894), + 108: uint16(20924), + 109: uint16(20926), + 110: uint16(21045), + 111: uint16(21042), + 112: uint16(21043), + 113: uint16(21062), + 114: uint16(21041), + 115: uint16(21180), + 116: uint16(21258), + 117: uint16(21259), + 118: uint16(21308), + 119: uint16(21394), + 120: uint16(21396), + 121: uint16(21639), + 122: uint16(21631), + 123: uint16(21633), + 124: uint16(21649), + 125: uint16(21634), + 126: uint16(21640), + 127: uint16(21611), + 128: uint16(21626), + 129: uint16(21630), + 130: uint16(21605), + 131: uint16(21612), + 132: uint16(21620), + 133: uint16(21606), + 134: uint16(21645), + 135: uint16(21615), + 136: uint16(21601), + 137: uint16(21600), + 138: uint16(21656), + 139: uint16(21603), + 140: uint16(21607), + 141: uint16(21604), + 142: uint16(22263), + 143: uint16(22265), + 144: uint16(22383), + 145: uint16(22386), + 146: uint16(22381), + 147: uint16(22379), + 148: uint16(22385), + 149: uint16(22384), + 150: uint16(22390), + 151: uint16(22400), + 152: uint16(22389), + 153: uint16(22395), + 154: uint16(22387), + 155: uint16(22388), + 156: uint16(22370), + }, + 43: { + 0: uint16(22376), + 1: uint16(22397), + 2: uint16(22796), + 3: uint16(22853), + 4: uint16(22965), + 5: uint16(22970), + 6: uint16(22991), + 7: uint16(22990), + 8: uint16(22962), + 9: uint16(22988), + 10: uint16(22977), + 11: uint16(22966), + 12: uint16(22972), + 13: uint16(22979), + 14: uint16(22998), + 15: uint16(22961), + 16: uint16(22973), + 17: uint16(22976), + 18: uint16(22984), + 19: uint16(22964), + 20: uint16(22983), + 21: uint16(23394), + 22: uint16(23397), + 23: uint16(23443), + 24: uint16(23445), + 25: uint16(23620), + 26: uint16(23623), + 27: uint16(23726), + 28: uint16(23716), + 29: uint16(23712), + 30: uint16(23733), + 31: uint16(23727), + 32: uint16(23720), + 33: uint16(23724), + 34: uint16(23711), + 35: uint16(23715), + 36: uint16(23725), + 37: uint16(23714), + 38: uint16(23722), + 39: uint16(23719), + 40: uint16(23709), + 41: uint16(23717), + 42: uint16(23734), + 43: uint16(23728), + 44: uint16(23718), + 45: uint16(24087), + 46: uint16(24084), + 47: uint16(24089), + 48: uint16(24360), + 49: uint16(24354), + 50: uint16(24355), + 51: uint16(24356), + 52: uint16(24404), + 53: uint16(24450), + 54: uint16(24446), + 55: uint16(24445), + 56: uint16(24542), + 57: uint16(24549), + 58: uint16(24621), + 59: uint16(24614), + 60: uint16(24601), + 61: uint16(24626), + 62: uint16(24587), + 63: uint16(24628), + 64: uint16(24586), + 65: uint16(24599), + 66: uint16(24627), + 67: uint16(24602), + 68: uint16(24606), + 69: uint16(24620), + 70: uint16(24610), + 71: uint16(24589), + 72: uint16(24592), + 73: uint16(24622), + 74: uint16(24595), + 75: uint16(24593), + 76: uint16(24588), + 77: uint16(24585), + 78: uint16(24604), + 79: uint16(25108), + 80: uint16(25149), + 81: uint16(25261), + 82: uint16(25268), + 83: uint16(25297), + 84: uint16(25278), + 85: uint16(25258), + 86: uint16(25270), + 87: uint16(25290), + 88: uint16(25262), + 89: uint16(25267), + 90: uint16(25263), + 91: uint16(25275), + 92: uint16(25257), + 93: uint16(25264), + 94: uint16(25272), + 95: uint16(25917), + 96: uint16(26024), + 97: uint16(26043), + 98: uint16(26121), + 99: uint16(26108), + 100: uint16(26116), + 101: uint16(26130), + 102: uint16(26120), + 103: uint16(26107), + 104: uint16(26115), + 105: uint16(26123), + 106: uint16(26125), + 107: uint16(26117), + 108: uint16(26109), + 109: uint16(26129), + 110: uint16(26128), + 111: uint16(26358), + 112: uint16(26378), + 113: uint16(26501), + 114: uint16(26476), + 115: uint16(26510), + 116: uint16(26514), + 117: uint16(26486), + 118: uint16(26491), + 119: uint16(26520), + 120: uint16(26502), + 121: uint16(26500), + 122: uint16(26484), + 123: uint16(26509), + 124: uint16(26508), + 125: uint16(26490), + 126: uint16(26527), + 127: uint16(26513), + 128: uint16(26521), + 129: uint16(26499), + 130: uint16(26493), + 131: uint16(26497), + 132: uint16(26488), + 133: uint16(26489), + 134: uint16(26516), + 135: uint16(27429), + 136: uint16(27520), + 137: uint16(27518), + 138: uint16(27614), + 139: uint16(27677), + 140: uint16(27795), + 141: uint16(27884), + 142: uint16(27883), + 143: uint16(27886), + 144: uint16(27865), + 145: uint16(27830), + 146: uint16(27860), + 147: uint16(27821), + 148: uint16(27879), + 149: uint16(27831), + 150: uint16(27856), + 151: uint16(27842), + 152: uint16(27834), + 153: uint16(27843), + 154: uint16(27846), + 155: uint16(27885), + 156: uint16(27890), + }, + 44: { + 0: uint16(27858), + 1: uint16(27869), + 2: uint16(27828), + 3: uint16(27786), + 4: uint16(27805), + 5: uint16(27776), + 6: uint16(27870), + 7: uint16(27840), + 8: uint16(27952), + 9: uint16(27853), + 10: uint16(27847), + 11: uint16(27824), + 12: uint16(27897), + 13: uint16(27855), + 14: uint16(27881), + 15: uint16(27857), + 16: uint16(28820), + 17: uint16(28824), + 18: uint16(28805), + 19: uint16(28819), + 20: uint16(28806), + 21: uint16(28804), + 22: uint16(28817), + 23: uint16(28822), + 24: uint16(28802), + 25: uint16(28826), + 26: uint16(28803), + 27: uint16(29290), + 28: uint16(29398), + 29: uint16(29387), + 30: uint16(29400), + 31: uint16(29385), + 32: uint16(29404), + 33: uint16(29394), + 34: uint16(29396), + 35: uint16(29402), + 36: uint16(29388), + 37: uint16(29393), + 38: uint16(29604), + 39: uint16(29601), + 40: uint16(29613), + 41: uint16(29606), + 42: uint16(29602), + 43: uint16(29600), + 44: uint16(29612), + 45: uint16(29597), + 46: uint16(29917), + 47: uint16(29928), + 48: uint16(30015), + 49: uint16(30016), + 50: uint16(30014), + 51: uint16(30092), + 52: uint16(30104), + 53: uint16(30383), + 54: uint16(30451), + 55: uint16(30449), + 56: uint16(30448), + 57: uint16(30453), + 58: uint16(30712), + 59: uint16(30716), + 60: uint16(30713), + 61: uint16(30715), + 62: uint16(30714), + 63: uint16(30711), + 64: uint16(31042), + 65: uint16(31039), + 66: uint16(31173), + 67: uint16(31352), + 68: uint16(31355), + 69: uint16(31483), + 70: uint16(31861), + 71: uint16(31997), + 72: uint16(32821), + 73: uint16(32911), + 74: uint16(32942), + 75: uint16(32931), + 76: uint16(32952), + 77: uint16(32949), + 78: uint16(32941), + 79: uint16(33312), + 80: uint16(33440), + 81: uint16(33472), + 82: uint16(33451), + 83: uint16(33434), + 84: uint16(33432), + 85: uint16(33435), + 86: uint16(33461), + 87: uint16(33447), + 88: uint16(33454), + 89: uint16(33468), + 90: uint16(33438), + 91: uint16(33466), + 92: uint16(33460), + 93: uint16(33448), + 94: uint16(33441), + 95: uint16(33449), + 96: uint16(33474), + 97: uint16(33444), + 98: uint16(33475), + 99: uint16(33462), + 100: uint16(33442), + 101: uint16(34416), + 102: uint16(34415), + 103: uint16(34413), + 104: uint16(34414), + 105: uint16(35926), + 106: uint16(36818), + 107: uint16(36811), + 108: uint16(36819), + 109: uint16(36813), + 110: uint16(36822), + 111: uint16(36821), + 112: uint16(36823), + 113: uint16(37042), + 114: uint16(37044), + 115: uint16(37039), + 116: uint16(37043), + 117: uint16(37040), + 118: uint16(38457), + 119: uint16(38461), + 120: uint16(38460), + 121: uint16(38458), + 122: uint16(38467), + 123: uint16(20429), + 124: uint16(20421), + 125: uint16(20435), + 126: uint16(20402), + 127: uint16(20425), + 128: uint16(20427), + 129: uint16(20417), + 130: uint16(20436), + 131: uint16(20444), + 132: uint16(20441), + 133: uint16(20411), + 134: uint16(20403), + 135: uint16(20443), + 136: uint16(20423), + 137: uint16(20438), + 138: uint16(20410), + 139: uint16(20416), + 140: uint16(20409), + 141: uint16(20460), + 142: uint16(21060), + 143: uint16(21065), + 144: uint16(21184), + 145: uint16(21186), + 146: uint16(21309), + 147: uint16(21372), + 148: uint16(21399), + 149: uint16(21398), + 150: uint16(21401), + 151: uint16(21400), + 152: uint16(21690), + 153: uint16(21665), + 154: uint16(21677), + 155: uint16(21669), + 156: uint16(21711), + }, + 45: { + 0: uint16(21699), + 1: uint16(33549), + 2: uint16(21687), + 3: uint16(21678), + 4: uint16(21718), + 5: uint16(21686), + 6: uint16(21701), + 7: uint16(21702), + 8: uint16(21664), + 9: uint16(21616), + 10: uint16(21692), + 11: uint16(21666), + 12: uint16(21694), + 13: uint16(21618), + 14: uint16(21726), + 15: uint16(21680), + 16: uint16(22453), + 17: uint16(22430), + 18: uint16(22431), + 19: uint16(22436), + 20: uint16(22412), + 21: uint16(22423), + 22: uint16(22429), + 23: uint16(22427), + 24: uint16(22420), + 25: uint16(22424), + 26: uint16(22415), + 27: uint16(22425), + 28: uint16(22437), + 29: uint16(22426), + 30: uint16(22421), + 31: uint16(22772), + 32: uint16(22797), + 33: uint16(22867), + 34: uint16(23009), + 35: uint16(23006), + 36: uint16(23022), + 37: uint16(23040), + 38: uint16(23025), + 39: uint16(23005), + 40: uint16(23034), + 41: uint16(23037), + 42: uint16(23036), + 43: uint16(23030), + 44: uint16(23012), + 45: uint16(23026), + 46: uint16(23031), + 47: uint16(23003), + 48: uint16(23017), + 49: uint16(23027), + 50: uint16(23029), + 51: uint16(23008), + 52: uint16(23038), + 53: uint16(23028), + 54: uint16(23021), + 55: uint16(23464), + 56: uint16(23628), + 57: uint16(23760), + 58: uint16(23768), + 59: uint16(23756), + 60: uint16(23767), + 61: uint16(23755), + 62: uint16(23771), + 63: uint16(23774), + 64: uint16(23770), + 65: uint16(23753), + 66: uint16(23751), + 67: uint16(23754), + 68: uint16(23766), + 69: uint16(23763), + 70: uint16(23764), + 71: uint16(23759), + 72: uint16(23752), + 73: uint16(23750), + 74: uint16(23758), + 75: uint16(23775), + 76: uint16(23800), + 77: uint16(24057), + 78: uint16(24097), + 79: uint16(24098), + 80: uint16(24099), + 81: uint16(24096), + 82: uint16(24100), + 83: uint16(24240), + 84: uint16(24228), + 85: uint16(24226), + 86: uint16(24219), + 87: uint16(24227), + 88: uint16(24229), + 89: uint16(24327), + 90: uint16(24366), + 91: uint16(24406), + 92: uint16(24454), + 93: uint16(24631), + 94: uint16(24633), + 95: uint16(24660), + 96: uint16(24690), + 97: uint16(24670), + 98: uint16(24645), + 99: uint16(24659), + 100: uint16(24647), + 101: uint16(24649), + 102: uint16(24667), + 103: uint16(24652), + 104: uint16(24640), + 105: uint16(24642), + 106: uint16(24671), + 107: uint16(24612), + 108: uint16(24644), + 109: uint16(24664), + 110: uint16(24678), + 111: uint16(24686), + 112: uint16(25154), + 113: uint16(25155), + 114: uint16(25295), + 115: uint16(25357), + 116: uint16(25355), + 117: uint16(25333), + 118: uint16(25358), + 119: uint16(25347), + 120: uint16(25323), + 121: uint16(25337), + 122: uint16(25359), + 123: uint16(25356), + 124: uint16(25336), + 125: uint16(25334), + 126: uint16(25344), + 127: uint16(25363), + 128: uint16(25364), + 129: uint16(25338), + 130: uint16(25365), + 131: uint16(25339), + 132: uint16(25328), + 133: uint16(25921), + 134: uint16(25923), + 135: uint16(26026), + 136: uint16(26047), + 137: uint16(26166), + 138: uint16(26145), + 139: uint16(26162), + 140: uint16(26165), + 141: uint16(26140), + 142: uint16(26150), + 143: uint16(26146), + 144: uint16(26163), + 145: uint16(26155), + 146: uint16(26170), + 147: uint16(26141), + 148: uint16(26164), + 149: uint16(26169), + 150: uint16(26158), + 151: uint16(26383), + 152: uint16(26384), + 153: uint16(26561), + 154: uint16(26610), + 155: uint16(26568), + 156: uint16(26554), + }, + 46: { + 0: uint16(26588), + 1: uint16(26555), + 2: uint16(26616), + 3: uint16(26584), + 4: uint16(26560), + 5: uint16(26551), + 6: uint16(26565), + 7: uint16(26603), + 8: uint16(26596), + 9: uint16(26591), + 10: uint16(26549), + 11: uint16(26573), + 12: uint16(26547), + 13: uint16(26615), + 14: uint16(26614), + 15: uint16(26606), + 16: uint16(26595), + 17: uint16(26562), + 18: uint16(26553), + 19: uint16(26574), + 20: uint16(26599), + 21: uint16(26608), + 22: uint16(26546), + 23: uint16(26620), + 24: uint16(26566), + 25: uint16(26605), + 26: uint16(26572), + 27: uint16(26542), + 28: uint16(26598), + 29: uint16(26587), + 30: uint16(26618), + 31: uint16(26569), + 32: uint16(26570), + 33: uint16(26563), + 34: uint16(26602), + 35: uint16(26571), + 36: uint16(27432), + 37: uint16(27522), + 38: uint16(27524), + 39: uint16(27574), + 40: uint16(27606), + 41: uint16(27608), + 42: uint16(27616), + 43: uint16(27680), + 44: uint16(27681), + 45: uint16(27944), + 46: uint16(27956), + 47: uint16(27949), + 48: uint16(27935), + 49: uint16(27964), + 50: uint16(27967), + 51: uint16(27922), + 52: uint16(27914), + 53: uint16(27866), + 54: uint16(27955), + 55: uint16(27908), + 56: uint16(27929), + 57: uint16(27962), + 58: uint16(27930), + 59: uint16(27921), + 60: uint16(27904), + 61: uint16(27933), + 62: uint16(27970), + 63: uint16(27905), + 64: uint16(27928), + 65: uint16(27959), + 66: uint16(27907), + 67: uint16(27919), + 68: uint16(27968), + 69: uint16(27911), + 70: uint16(27936), + 71: uint16(27948), + 72: uint16(27912), + 73: uint16(27938), + 74: uint16(27913), + 75: uint16(27920), + 76: uint16(28855), + 77: uint16(28831), + 78: uint16(28862), + 79: uint16(28849), + 80: uint16(28848), + 81: uint16(28833), + 82: uint16(28852), + 83: uint16(28853), + 84: uint16(28841), + 85: uint16(29249), + 86: uint16(29257), + 87: uint16(29258), + 88: uint16(29292), + 89: uint16(29296), + 90: uint16(29299), + 91: uint16(29294), + 92: uint16(29386), + 93: uint16(29412), + 94: uint16(29416), + 95: uint16(29419), + 96: uint16(29407), + 97: uint16(29418), + 98: uint16(29414), + 99: uint16(29411), + 100: uint16(29573), + 101: uint16(29644), + 102: uint16(29634), + 103: uint16(29640), + 104: uint16(29637), + 105: uint16(29625), + 106: uint16(29622), + 107: uint16(29621), + 108: uint16(29620), + 109: uint16(29675), + 110: uint16(29631), + 111: uint16(29639), + 112: uint16(29630), + 113: uint16(29635), + 114: uint16(29638), + 115: uint16(29624), + 116: uint16(29643), + 117: uint16(29932), + 118: uint16(29934), + 119: uint16(29998), + 120: uint16(30023), + 121: uint16(30024), + 122: uint16(30119), + 123: uint16(30122), + 124: uint16(30329), + 125: uint16(30404), + 126: uint16(30472), + 127: uint16(30467), + 128: uint16(30468), + 129: uint16(30469), + 130: uint16(30474), + 131: uint16(30455), + 132: uint16(30459), + 133: uint16(30458), + 134: uint16(30695), + 135: uint16(30696), + 136: uint16(30726), + 137: uint16(30737), + 138: uint16(30738), + 139: uint16(30725), + 140: uint16(30736), + 141: uint16(30735), + 142: uint16(30734), + 143: uint16(30729), + 144: uint16(30723), + 145: uint16(30739), + 146: uint16(31050), + 147: uint16(31052), + 148: uint16(31051), + 149: uint16(31045), + 150: uint16(31044), + 151: uint16(31189), + 152: uint16(31181), + 153: uint16(31183), + 154: uint16(31190), + 155: uint16(31182), + 156: uint16(31360), + }, + 47: { + 0: uint16(31358), + 1: uint16(31441), + 2: uint16(31488), + 3: uint16(31489), + 4: uint16(31866), + 5: uint16(31864), + 6: uint16(31865), + 7: uint16(31871), + 8: uint16(31872), + 9: uint16(31873), + 10: uint16(32003), + 11: uint16(32008), + 12: uint16(32001), + 13: uint16(32600), + 14: uint16(32657), + 15: uint16(32653), + 16: uint16(32702), + 17: uint16(32775), + 18: uint16(32782), + 19: uint16(32783), + 20: uint16(32788), + 21: uint16(32823), + 22: uint16(32984), + 23: uint16(32967), + 24: uint16(32992), + 25: uint16(32977), + 26: uint16(32968), + 27: uint16(32962), + 28: uint16(32976), + 29: uint16(32965), + 30: uint16(32995), + 31: uint16(32985), + 32: uint16(32988), + 33: uint16(32970), + 34: uint16(32981), + 35: uint16(32969), + 36: uint16(32975), + 37: uint16(32983), + 38: uint16(32998), + 39: uint16(32973), + 40: uint16(33279), + 41: uint16(33313), + 42: uint16(33428), + 43: uint16(33497), + 44: uint16(33534), + 45: uint16(33529), + 46: uint16(33543), + 47: uint16(33512), + 48: uint16(33536), + 49: uint16(33493), + 50: uint16(33594), + 51: uint16(33515), + 52: uint16(33494), + 53: uint16(33524), + 54: uint16(33516), + 55: uint16(33505), + 56: uint16(33522), + 57: uint16(33525), + 58: uint16(33548), + 59: uint16(33531), + 60: uint16(33526), + 61: uint16(33520), + 62: uint16(33514), + 63: uint16(33508), + 64: uint16(33504), + 65: uint16(33530), + 66: uint16(33523), + 67: uint16(33517), + 68: uint16(34423), + 69: uint16(34420), + 70: uint16(34428), + 71: uint16(34419), + 72: uint16(34881), + 73: uint16(34894), + 74: uint16(34919), + 75: uint16(34922), + 76: uint16(34921), + 77: uint16(35283), + 78: uint16(35332), + 79: uint16(35335), + 80: uint16(36210), + 81: uint16(36835), + 82: uint16(36833), + 83: uint16(36846), + 84: uint16(36832), + 85: uint16(37105), + 86: uint16(37053), + 87: uint16(37055), + 88: uint16(37077), + 89: uint16(37061), + 90: uint16(37054), + 91: uint16(37063), + 92: uint16(37067), + 93: uint16(37064), + 94: uint16(37332), + 95: uint16(37331), + 96: uint16(38484), + 97: uint16(38479), + 98: uint16(38481), + 99: uint16(38483), + 100: uint16(38474), + 101: uint16(38478), + 102: uint16(20510), + 103: uint16(20485), + 104: uint16(20487), + 105: uint16(20499), + 106: uint16(20514), + 107: uint16(20528), + 108: uint16(20507), + 109: uint16(20469), + 110: uint16(20468), + 111: uint16(20531), + 112: uint16(20535), + 113: uint16(20524), + 114: uint16(20470), + 115: uint16(20471), + 116: uint16(20503), + 117: uint16(20508), + 118: uint16(20512), + 119: uint16(20519), + 120: uint16(20533), + 121: uint16(20527), + 122: uint16(20529), + 123: uint16(20494), + 124: uint16(20826), + 125: uint16(20884), + 126: uint16(20883), + 127: uint16(20938), + 128: uint16(20932), + 129: uint16(20933), + 130: uint16(20936), + 131: uint16(20942), + 132: uint16(21089), + 133: uint16(21082), + 134: uint16(21074), + 135: uint16(21086), + 136: uint16(21087), + 137: uint16(21077), + 138: uint16(21090), + 139: uint16(21197), + 140: uint16(21262), + 141: uint16(21406), + 142: uint16(21798), + 143: uint16(21730), + 144: uint16(21783), + 145: uint16(21778), + 146: uint16(21735), + 147: uint16(21747), + 148: uint16(21732), + 149: uint16(21786), + 150: uint16(21759), + 151: uint16(21764), + 152: uint16(21768), + 153: uint16(21739), + 154: uint16(21777), + 155: uint16(21765), + 156: uint16(21745), + }, + 48: { + 0: uint16(21770), + 1: uint16(21755), + 2: uint16(21751), + 3: uint16(21752), + 4: uint16(21728), + 5: uint16(21774), + 6: uint16(21763), + 7: uint16(21771), + 8: uint16(22273), + 9: uint16(22274), + 10: uint16(22476), + 11: uint16(22578), + 12: uint16(22485), + 13: uint16(22482), + 14: uint16(22458), + 15: uint16(22470), + 16: uint16(22461), + 17: uint16(22460), + 18: uint16(22456), + 19: uint16(22454), + 20: uint16(22463), + 21: uint16(22471), + 22: uint16(22480), + 23: uint16(22457), + 24: uint16(22465), + 25: uint16(22798), + 26: uint16(22858), + 27: uint16(23065), + 28: uint16(23062), + 29: uint16(23085), + 30: uint16(23086), + 31: uint16(23061), + 32: uint16(23055), + 33: uint16(23063), + 34: uint16(23050), + 35: uint16(23070), + 36: uint16(23091), + 37: uint16(23404), + 38: uint16(23463), + 39: uint16(23469), + 40: uint16(23468), + 41: uint16(23555), + 42: uint16(23638), + 43: uint16(23636), + 44: uint16(23788), + 45: uint16(23807), + 46: uint16(23790), + 47: uint16(23793), + 48: uint16(23799), + 49: uint16(23808), + 50: uint16(23801), + 51: uint16(24105), + 52: uint16(24104), + 53: uint16(24232), + 54: uint16(24238), + 55: uint16(24234), + 56: uint16(24236), + 57: uint16(24371), + 58: uint16(24368), + 59: uint16(24423), + 60: uint16(24669), + 61: uint16(24666), + 62: uint16(24679), + 63: uint16(24641), + 64: uint16(24738), + 65: uint16(24712), + 66: uint16(24704), + 67: uint16(24722), + 68: uint16(24705), + 69: uint16(24733), + 70: uint16(24707), + 71: uint16(24725), + 72: uint16(24731), + 73: uint16(24727), + 74: uint16(24711), + 75: uint16(24732), + 76: uint16(24718), + 77: uint16(25113), + 78: uint16(25158), + 79: uint16(25330), + 80: uint16(25360), + 81: uint16(25430), + 82: uint16(25388), + 83: uint16(25412), + 84: uint16(25413), + 85: uint16(25398), + 86: uint16(25411), + 87: uint16(25572), + 88: uint16(25401), + 89: uint16(25419), + 90: uint16(25418), + 91: uint16(25404), + 92: uint16(25385), + 93: uint16(25409), + 94: uint16(25396), + 95: uint16(25432), + 96: uint16(25428), + 97: uint16(25433), + 98: uint16(25389), + 99: uint16(25415), + 100: uint16(25395), + 101: uint16(25434), + 102: uint16(25425), + 103: uint16(25400), + 104: uint16(25431), + 105: uint16(25408), + 106: uint16(25416), + 107: uint16(25930), + 108: uint16(25926), + 109: uint16(26054), + 110: uint16(26051), + 111: uint16(26052), + 112: uint16(26050), + 113: uint16(26186), + 114: uint16(26207), + 115: uint16(26183), + 116: uint16(26193), + 117: uint16(26386), + 118: uint16(26387), + 119: uint16(26655), + 120: uint16(26650), + 121: uint16(26697), + 122: uint16(26674), + 123: uint16(26675), + 124: uint16(26683), + 125: uint16(26699), + 126: uint16(26703), + 127: uint16(26646), + 128: uint16(26673), + 129: uint16(26652), + 130: uint16(26677), + 131: uint16(26667), + 132: uint16(26669), + 133: uint16(26671), + 134: uint16(26702), + 135: uint16(26692), + 136: uint16(26676), + 137: uint16(26653), + 138: uint16(26642), + 139: uint16(26644), + 140: uint16(26662), + 141: uint16(26664), + 142: uint16(26670), + 143: uint16(26701), + 144: uint16(26682), + 145: uint16(26661), + 146: uint16(26656), + 147: uint16(27436), + 148: uint16(27439), + 149: uint16(27437), + 150: uint16(27441), + 151: uint16(27444), + 152: uint16(27501), + 153: uint16(32898), + 154: uint16(27528), + 155: uint16(27622), + 156: uint16(27620), + }, + 49: { + 0: uint16(27624), + 1: uint16(27619), + 2: uint16(27618), + 3: uint16(27623), + 4: uint16(27685), + 5: uint16(28026), + 6: uint16(28003), + 7: uint16(28004), + 8: uint16(28022), + 9: uint16(27917), + 10: uint16(28001), + 11: uint16(28050), + 12: uint16(27992), + 13: uint16(28002), + 14: uint16(28013), + 15: uint16(28015), + 16: uint16(28049), + 17: uint16(28045), + 18: uint16(28143), + 19: uint16(28031), + 20: uint16(28038), + 21: uint16(27998), + 22: uint16(28007), + 23: uint16(28000), + 24: uint16(28055), + 25: uint16(28016), + 26: uint16(28028), + 27: uint16(27999), + 28: uint16(28034), + 29: uint16(28056), + 30: uint16(27951), + 31: uint16(28008), + 32: uint16(28043), + 33: uint16(28030), + 34: uint16(28032), + 35: uint16(28036), + 36: uint16(27926), + 37: uint16(28035), + 38: uint16(28027), + 39: uint16(28029), + 40: uint16(28021), + 41: uint16(28048), + 42: uint16(28892), + 43: uint16(28883), + 44: uint16(28881), + 45: uint16(28893), + 46: uint16(28875), + 47: uint16(32569), + 48: uint16(28898), + 49: uint16(28887), + 50: uint16(28882), + 51: uint16(28894), + 52: uint16(28896), + 53: uint16(28884), + 54: uint16(28877), + 55: uint16(28869), + 56: uint16(28870), + 57: uint16(28871), + 58: uint16(28890), + 59: uint16(28878), + 60: uint16(28897), + 61: uint16(29250), + 62: uint16(29304), + 63: uint16(29303), + 64: uint16(29302), + 65: uint16(29440), + 66: uint16(29434), + 67: uint16(29428), + 68: uint16(29438), + 69: uint16(29430), + 70: uint16(29427), + 71: uint16(29435), + 72: uint16(29441), + 73: uint16(29651), + 74: uint16(29657), + 75: uint16(29669), + 76: uint16(29654), + 77: uint16(29628), + 78: uint16(29671), + 79: uint16(29667), + 80: uint16(29673), + 81: uint16(29660), + 82: uint16(29650), + 83: uint16(29659), + 84: uint16(29652), + 85: uint16(29661), + 86: uint16(29658), + 87: uint16(29655), + 88: uint16(29656), + 89: uint16(29672), + 90: uint16(29918), + 91: uint16(29919), + 92: uint16(29940), + 93: uint16(29941), + 94: uint16(29985), + 95: uint16(30043), + 96: uint16(30047), + 97: uint16(30128), + 98: uint16(30145), + 99: uint16(30139), + 100: uint16(30148), + 101: uint16(30144), + 102: uint16(30143), + 103: uint16(30134), + 104: uint16(30138), + 105: uint16(30346), + 106: uint16(30409), + 107: uint16(30493), + 108: uint16(30491), + 109: uint16(30480), + 110: uint16(30483), + 111: uint16(30482), + 112: uint16(30499), + 113: uint16(30481), + 114: uint16(30485), + 115: uint16(30489), + 116: uint16(30490), + 117: uint16(30498), + 118: uint16(30503), + 119: uint16(30755), + 120: uint16(30764), + 121: uint16(30754), + 122: uint16(30773), + 123: uint16(30767), + 124: uint16(30760), + 125: uint16(30766), + 126: uint16(30763), + 127: uint16(30753), + 128: uint16(30761), + 129: uint16(30771), + 130: uint16(30762), + 131: uint16(30769), + 132: uint16(31060), + 133: uint16(31067), + 134: uint16(31055), + 135: uint16(31068), + 136: uint16(31059), + 137: uint16(31058), + 138: uint16(31057), + 139: uint16(31211), + 140: uint16(31212), + 141: uint16(31200), + 142: uint16(31214), + 143: uint16(31213), + 144: uint16(31210), + 145: uint16(31196), + 146: uint16(31198), + 147: uint16(31197), + 148: uint16(31366), + 149: uint16(31369), + 150: uint16(31365), + 151: uint16(31371), + 152: uint16(31372), + 153: uint16(31370), + 154: uint16(31367), + 155: uint16(31448), + 156: uint16(31504), + }, + 50: { + 0: uint16(31492), + 1: uint16(31507), + 2: uint16(31493), + 3: uint16(31503), + 4: uint16(31496), + 5: uint16(31498), + 6: uint16(31502), + 7: uint16(31497), + 8: uint16(31506), + 9: uint16(31876), + 10: uint16(31889), + 11: uint16(31882), + 12: uint16(31884), + 13: uint16(31880), + 14: uint16(31885), + 15: uint16(31877), + 16: uint16(32030), + 17: uint16(32029), + 18: uint16(32017), + 19: uint16(32014), + 20: uint16(32024), + 21: uint16(32022), + 22: uint16(32019), + 23: uint16(32031), + 24: uint16(32018), + 25: uint16(32015), + 26: uint16(32012), + 27: uint16(32604), + 28: uint16(32609), + 29: uint16(32606), + 30: uint16(32608), + 31: uint16(32605), + 32: uint16(32603), + 33: uint16(32662), + 34: uint16(32658), + 35: uint16(32707), + 36: uint16(32706), + 37: uint16(32704), + 38: uint16(32790), + 39: uint16(32830), + 40: uint16(32825), + 41: uint16(33018), + 42: uint16(33010), + 43: uint16(33017), + 44: uint16(33013), + 45: uint16(33025), + 46: uint16(33019), + 47: uint16(33024), + 48: uint16(33281), + 49: uint16(33327), + 50: uint16(33317), + 51: uint16(33587), + 52: uint16(33581), + 53: uint16(33604), + 54: uint16(33561), + 55: uint16(33617), + 56: uint16(33573), + 57: uint16(33622), + 58: uint16(33599), + 59: uint16(33601), + 60: uint16(33574), + 61: uint16(33564), + 62: uint16(33570), + 63: uint16(33602), + 64: uint16(33614), + 65: uint16(33563), + 66: uint16(33578), + 67: uint16(33544), + 68: uint16(33596), + 69: uint16(33613), + 70: uint16(33558), + 71: uint16(33572), + 72: uint16(33568), + 73: uint16(33591), + 74: uint16(33583), + 75: uint16(33577), + 76: uint16(33607), + 77: uint16(33605), + 78: uint16(33612), + 79: uint16(33619), + 80: uint16(33566), + 81: uint16(33580), + 82: uint16(33611), + 83: uint16(33575), + 84: uint16(33608), + 85: uint16(34387), + 86: uint16(34386), + 87: uint16(34466), + 88: uint16(34472), + 89: uint16(34454), + 90: uint16(34445), + 91: uint16(34449), + 92: uint16(34462), + 93: uint16(34439), + 94: uint16(34455), + 95: uint16(34438), + 96: uint16(34443), + 97: uint16(34458), + 98: uint16(34437), + 99: uint16(34469), + 100: uint16(34457), + 101: uint16(34465), + 102: uint16(34471), + 103: uint16(34453), + 104: uint16(34456), + 105: uint16(34446), + 106: uint16(34461), + 107: uint16(34448), + 108: uint16(34452), + 109: uint16(34883), + 110: uint16(34884), + 111: uint16(34925), + 112: uint16(34933), + 113: uint16(34934), + 114: uint16(34930), + 115: uint16(34944), + 116: uint16(34929), + 117: uint16(34943), + 118: uint16(34927), + 119: uint16(34947), + 120: uint16(34942), + 121: uint16(34932), + 122: uint16(34940), + 123: uint16(35346), + 124: uint16(35911), + 125: uint16(35927), + 126: uint16(35963), + 127: uint16(36004), + 128: uint16(36003), + 129: uint16(36214), + 130: uint16(36216), + 131: uint16(36277), + 132: uint16(36279), + 133: uint16(36278), + 134: uint16(36561), + 135: uint16(36563), + 136: uint16(36862), + 137: uint16(36853), + 138: uint16(36866), + 139: uint16(36863), + 140: uint16(36859), + 141: uint16(36868), + 142: uint16(36860), + 143: uint16(36854), + 144: uint16(37078), + 145: uint16(37088), + 146: uint16(37081), + 147: uint16(37082), + 148: uint16(37091), + 149: uint16(37087), + 150: uint16(37093), + 151: uint16(37080), + 152: uint16(37083), + 153: uint16(37079), + 154: uint16(37084), + 155: uint16(37092), + 156: uint16(37200), + }, + 51: { + 0: uint16(37198), + 1: uint16(37199), + 2: uint16(37333), + 3: uint16(37346), + 4: uint16(37338), + 5: uint16(38492), + 6: uint16(38495), + 7: uint16(38588), + 8: uint16(39139), + 9: uint16(39647), + 10: uint16(39727), + 11: uint16(20095), + 12: uint16(20592), + 13: uint16(20586), + 14: uint16(20577), + 15: uint16(20574), + 16: uint16(20576), + 17: uint16(20563), + 18: uint16(20555), + 19: uint16(20573), + 20: uint16(20594), + 21: uint16(20552), + 22: uint16(20557), + 23: uint16(20545), + 24: uint16(20571), + 25: uint16(20554), + 26: uint16(20578), + 27: uint16(20501), + 28: uint16(20549), + 29: uint16(20575), + 30: uint16(20585), + 31: uint16(20587), + 32: uint16(20579), + 33: uint16(20580), + 34: uint16(20550), + 35: uint16(20544), + 36: uint16(20590), + 37: uint16(20595), + 38: uint16(20567), + 39: uint16(20561), + 40: uint16(20944), + 41: uint16(21099), + 42: uint16(21101), + 43: uint16(21100), + 44: uint16(21102), + 45: uint16(21206), + 46: uint16(21203), + 47: uint16(21293), + 48: uint16(21404), + 49: uint16(21877), + 50: uint16(21878), + 51: uint16(21820), + 52: uint16(21837), + 53: uint16(21840), + 54: uint16(21812), + 55: uint16(21802), + 56: uint16(21841), + 57: uint16(21858), + 58: uint16(21814), + 59: uint16(21813), + 60: uint16(21808), + 61: uint16(21842), + 62: uint16(21829), + 63: uint16(21772), + 64: uint16(21810), + 65: uint16(21861), + 66: uint16(21838), + 67: uint16(21817), + 68: uint16(21832), + 69: uint16(21805), + 70: uint16(21819), + 71: uint16(21824), + 72: uint16(21835), + 73: uint16(22282), + 74: uint16(22279), + 75: uint16(22523), + 76: uint16(22548), + 77: uint16(22498), + 78: uint16(22518), + 79: uint16(22492), + 80: uint16(22516), + 81: uint16(22528), + 82: uint16(22509), + 83: uint16(22525), + 84: uint16(22536), + 85: uint16(22520), + 86: uint16(22539), + 87: uint16(22515), + 88: uint16(22479), + 89: uint16(22535), + 90: uint16(22510), + 91: uint16(22499), + 92: uint16(22514), + 93: uint16(22501), + 94: uint16(22508), + 95: uint16(22497), + 96: uint16(22542), + 97: uint16(22524), + 98: uint16(22544), + 99: uint16(22503), + 100: uint16(22529), + 101: uint16(22540), + 102: uint16(22513), + 103: uint16(22505), + 104: uint16(22512), + 105: uint16(22541), + 106: uint16(22532), + 107: uint16(22876), + 108: uint16(23136), + 109: uint16(23128), + 110: uint16(23125), + 111: uint16(23143), + 112: uint16(23134), + 113: uint16(23096), + 114: uint16(23093), + 115: uint16(23149), + 116: uint16(23120), + 117: uint16(23135), + 118: uint16(23141), + 119: uint16(23148), + 120: uint16(23123), + 121: uint16(23140), + 122: uint16(23127), + 123: uint16(23107), + 124: uint16(23133), + 125: uint16(23122), + 126: uint16(23108), + 127: uint16(23131), + 128: uint16(23112), + 129: uint16(23182), + 130: uint16(23102), + 131: uint16(23117), + 132: uint16(23097), + 133: uint16(23116), + 134: uint16(23152), + 135: uint16(23145), + 136: uint16(23111), + 137: uint16(23121), + 138: uint16(23126), + 139: uint16(23106), + 140: uint16(23132), + 141: uint16(23410), + 142: uint16(23406), + 143: uint16(23489), + 144: uint16(23488), + 145: uint16(23641), + 146: uint16(23838), + 147: uint16(23819), + 148: uint16(23837), + 149: uint16(23834), + 150: uint16(23840), + 151: uint16(23820), + 152: uint16(23848), + 153: uint16(23821), + 154: uint16(23846), + 155: uint16(23845), + 156: uint16(23823), + }, + 52: { + 0: uint16(23856), + 1: uint16(23826), + 2: uint16(23843), + 3: uint16(23839), + 4: uint16(23854), + 5: uint16(24126), + 6: uint16(24116), + 7: uint16(24241), + 8: uint16(24244), + 9: uint16(24249), + 10: uint16(24242), + 11: uint16(24243), + 12: uint16(24374), + 13: uint16(24376), + 14: uint16(24475), + 15: uint16(24470), + 16: uint16(24479), + 17: uint16(24714), + 18: uint16(24720), + 19: uint16(24710), + 20: uint16(24766), + 21: uint16(24752), + 22: uint16(24762), + 23: uint16(24787), + 24: uint16(24788), + 25: uint16(24783), + 26: uint16(24804), + 27: uint16(24793), + 28: uint16(24797), + 29: uint16(24776), + 30: uint16(24753), + 31: uint16(24795), + 32: uint16(24759), + 33: uint16(24778), + 34: uint16(24767), + 35: uint16(24771), + 36: uint16(24781), + 37: uint16(24768), + 38: uint16(25394), + 39: uint16(25445), + 40: uint16(25482), + 41: uint16(25474), + 42: uint16(25469), + 43: uint16(25533), + 44: uint16(25502), + 45: uint16(25517), + 46: uint16(25501), + 47: uint16(25495), + 48: uint16(25515), + 49: uint16(25486), + 50: uint16(25455), + 51: uint16(25479), + 52: uint16(25488), + 53: uint16(25454), + 54: uint16(25519), + 55: uint16(25461), + 56: uint16(25500), + 57: uint16(25453), + 58: uint16(25518), + 59: uint16(25468), + 60: uint16(25508), + 61: uint16(25403), + 62: uint16(25503), + 63: uint16(25464), + 64: uint16(25477), + 65: uint16(25473), + 66: uint16(25489), + 67: uint16(25485), + 68: uint16(25456), + 69: uint16(25939), + 70: uint16(26061), + 71: uint16(26213), + 72: uint16(26209), + 73: uint16(26203), + 74: uint16(26201), + 75: uint16(26204), + 76: uint16(26210), + 77: uint16(26392), + 78: uint16(26745), + 79: uint16(26759), + 80: uint16(26768), + 81: uint16(26780), + 82: uint16(26733), + 83: uint16(26734), + 84: uint16(26798), + 85: uint16(26795), + 86: uint16(26966), + 87: uint16(26735), + 88: uint16(26787), + 89: uint16(26796), + 90: uint16(26793), + 91: uint16(26741), + 92: uint16(26740), + 93: uint16(26802), + 94: uint16(26767), + 95: uint16(26743), + 96: uint16(26770), + 97: uint16(26748), + 98: uint16(26731), + 99: uint16(26738), + 100: uint16(26794), + 101: uint16(26752), + 102: uint16(26737), + 103: uint16(26750), + 104: uint16(26779), + 105: uint16(26774), + 106: uint16(26763), + 107: uint16(26784), + 108: uint16(26761), + 109: uint16(26788), + 110: uint16(26744), + 111: uint16(26747), + 112: uint16(26769), + 113: uint16(26764), + 114: uint16(26762), + 115: uint16(26749), + 116: uint16(27446), + 117: uint16(27443), + 118: uint16(27447), + 119: uint16(27448), + 120: uint16(27537), + 121: uint16(27535), + 122: uint16(27533), + 123: uint16(27534), + 124: uint16(27532), + 125: uint16(27690), + 126: uint16(28096), + 127: uint16(28075), + 128: uint16(28084), + 129: uint16(28083), + 130: uint16(28276), + 131: uint16(28076), + 132: uint16(28137), + 133: uint16(28130), + 134: uint16(28087), + 135: uint16(28150), + 136: uint16(28116), + 137: uint16(28160), + 138: uint16(28104), + 139: uint16(28128), + 140: uint16(28127), + 141: uint16(28118), + 142: uint16(28094), + 143: uint16(28133), + 144: uint16(28124), + 145: uint16(28125), + 146: uint16(28123), + 147: uint16(28148), + 148: uint16(28106), + 149: uint16(28093), + 150: uint16(28141), + 151: uint16(28144), + 152: uint16(28090), + 153: uint16(28117), + 154: uint16(28098), + 155: uint16(28111), + 156: uint16(28105), + }, + 53: { + 0: uint16(28112), + 1: uint16(28146), + 2: uint16(28115), + 3: uint16(28157), + 4: uint16(28119), + 5: uint16(28109), + 6: uint16(28131), + 7: uint16(28091), + 8: uint16(28922), + 9: uint16(28941), + 10: uint16(28919), + 11: uint16(28951), + 12: uint16(28916), + 13: uint16(28940), + 14: uint16(28912), + 15: uint16(28932), + 16: uint16(28915), + 17: uint16(28944), + 18: uint16(28924), + 19: uint16(28927), + 20: uint16(28934), + 21: uint16(28947), + 22: uint16(28928), + 23: uint16(28920), + 24: uint16(28918), + 25: uint16(28939), + 26: uint16(28930), + 27: uint16(28942), + 28: uint16(29310), + 29: uint16(29307), + 30: uint16(29308), + 31: uint16(29311), + 32: uint16(29469), + 33: uint16(29463), + 34: uint16(29447), + 35: uint16(29457), + 36: uint16(29464), + 37: uint16(29450), + 38: uint16(29448), + 39: uint16(29439), + 40: uint16(29455), + 41: uint16(29470), + 42: uint16(29576), + 43: uint16(29686), + 44: uint16(29688), + 45: uint16(29685), + 46: uint16(29700), + 47: uint16(29697), + 48: uint16(29693), + 49: uint16(29703), + 50: uint16(29696), + 51: uint16(29690), + 52: uint16(29692), + 53: uint16(29695), + 54: uint16(29708), + 55: uint16(29707), + 56: uint16(29684), + 57: uint16(29704), + 58: uint16(30052), + 59: uint16(30051), + 60: uint16(30158), + 61: uint16(30162), + 62: uint16(30159), + 63: uint16(30155), + 64: uint16(30156), + 65: uint16(30161), + 66: uint16(30160), + 67: uint16(30351), + 68: uint16(30345), + 69: uint16(30419), + 70: uint16(30521), + 71: uint16(30511), + 72: uint16(30509), + 73: uint16(30513), + 74: uint16(30514), + 75: uint16(30516), + 76: uint16(30515), + 77: uint16(30525), + 78: uint16(30501), + 79: uint16(30523), + 80: uint16(30517), + 81: uint16(30792), + 82: uint16(30802), + 83: uint16(30793), + 84: uint16(30797), + 85: uint16(30794), + 86: uint16(30796), + 87: uint16(30758), + 88: uint16(30789), + 89: uint16(30800), + 90: uint16(31076), + 91: uint16(31079), + 92: uint16(31081), + 93: uint16(31082), + 94: uint16(31075), + 95: uint16(31083), + 96: uint16(31073), + 97: uint16(31163), + 98: uint16(31226), + 99: uint16(31224), + 100: uint16(31222), + 101: uint16(31223), + 102: uint16(31375), + 103: uint16(31380), + 104: uint16(31376), + 105: uint16(31541), + 106: uint16(31559), + 107: uint16(31540), + 108: uint16(31525), + 109: uint16(31536), + 110: uint16(31522), + 111: uint16(31524), + 112: uint16(31539), + 113: uint16(31512), + 114: uint16(31530), + 115: uint16(31517), + 116: uint16(31537), + 117: uint16(31531), + 118: uint16(31533), + 119: uint16(31535), + 120: uint16(31538), + 121: uint16(31544), + 122: uint16(31514), + 123: uint16(31523), + 124: uint16(31892), + 125: uint16(31896), + 126: uint16(31894), + 127: uint16(31907), + 128: uint16(32053), + 129: uint16(32061), + 130: uint16(32056), + 131: uint16(32054), + 132: uint16(32058), + 133: uint16(32069), + 134: uint16(32044), + 135: uint16(32041), + 136: uint16(32065), + 137: uint16(32071), + 138: uint16(32062), + 139: uint16(32063), + 140: uint16(32074), + 141: uint16(32059), + 142: uint16(32040), + 143: uint16(32611), + 144: uint16(32661), + 145: uint16(32668), + 146: uint16(32669), + 147: uint16(32667), + 148: uint16(32714), + 149: uint16(32715), + 150: uint16(32717), + 151: uint16(32720), + 152: uint16(32721), + 153: uint16(32711), + 154: uint16(32719), + 155: uint16(32713), + 156: uint16(32799), + }, + 54: { + 0: uint16(32798), + 1: uint16(32795), + 2: uint16(32839), + 3: uint16(32835), + 4: uint16(32840), + 5: uint16(33048), + 6: uint16(33061), + 7: uint16(33049), + 8: uint16(33051), + 9: uint16(33069), + 10: uint16(33055), + 11: uint16(33068), + 12: uint16(33054), + 13: uint16(33057), + 14: uint16(33045), + 15: uint16(33063), + 16: uint16(33053), + 17: uint16(33058), + 18: uint16(33297), + 19: uint16(33336), + 20: uint16(33331), + 21: uint16(33338), + 22: uint16(33332), + 23: uint16(33330), + 24: uint16(33396), + 25: uint16(33680), + 26: uint16(33699), + 27: uint16(33704), + 28: uint16(33677), + 29: uint16(33658), + 30: uint16(33651), + 31: uint16(33700), + 32: uint16(33652), + 33: uint16(33679), + 34: uint16(33665), + 35: uint16(33685), + 36: uint16(33689), + 37: uint16(33653), + 38: uint16(33684), + 39: uint16(33705), + 40: uint16(33661), + 41: uint16(33667), + 42: uint16(33676), + 43: uint16(33693), + 44: uint16(33691), + 45: uint16(33706), + 46: uint16(33675), + 47: uint16(33662), + 48: uint16(33701), + 49: uint16(33711), + 50: uint16(33672), + 51: uint16(33687), + 52: uint16(33712), + 53: uint16(33663), + 54: uint16(33702), + 55: uint16(33671), + 56: uint16(33710), + 57: uint16(33654), + 58: uint16(33690), + 59: uint16(34393), + 60: uint16(34390), + 61: uint16(34495), + 62: uint16(34487), + 63: uint16(34498), + 64: uint16(34497), + 65: uint16(34501), + 66: uint16(34490), + 67: uint16(34480), + 68: uint16(34504), + 69: uint16(34489), + 70: uint16(34483), + 71: uint16(34488), + 72: uint16(34508), + 73: uint16(34484), + 74: uint16(34491), + 75: uint16(34492), + 76: uint16(34499), + 77: uint16(34493), + 78: uint16(34494), + 79: uint16(34898), + 80: uint16(34953), + 81: uint16(34965), + 82: uint16(34984), + 83: uint16(34978), + 84: uint16(34986), + 85: uint16(34970), + 86: uint16(34961), + 87: uint16(34977), + 88: uint16(34975), + 89: uint16(34968), + 90: uint16(34983), + 91: uint16(34969), + 92: uint16(34971), + 93: uint16(34967), + 94: uint16(34980), + 95: uint16(34988), + 96: uint16(34956), + 97: uint16(34963), + 98: uint16(34958), + 99: uint16(35202), + 100: uint16(35286), + 101: uint16(35289), + 102: uint16(35285), + 103: uint16(35376), + 104: uint16(35367), + 105: uint16(35372), + 106: uint16(35358), + 107: uint16(35897), + 108: uint16(35899), + 109: uint16(35932), + 110: uint16(35933), + 111: uint16(35965), + 112: uint16(36005), + 113: uint16(36221), + 114: uint16(36219), + 115: uint16(36217), + 116: uint16(36284), + 117: uint16(36290), + 118: uint16(36281), + 119: uint16(36287), + 120: uint16(36289), + 121: uint16(36568), + 122: uint16(36574), + 123: uint16(36573), + 124: uint16(36572), + 125: uint16(36567), + 126: uint16(36576), + 127: uint16(36577), + 128: uint16(36900), + 129: uint16(36875), + 130: uint16(36881), + 131: uint16(36892), + 132: uint16(36876), + 133: uint16(36897), + 134: uint16(37103), + 135: uint16(37098), + 136: uint16(37104), + 137: uint16(37108), + 138: uint16(37106), + 139: uint16(37107), + 140: uint16(37076), + 141: uint16(37099), + 142: uint16(37100), + 143: uint16(37097), + 144: uint16(37206), + 145: uint16(37208), + 146: uint16(37210), + 147: uint16(37203), + 148: uint16(37205), + 149: uint16(37356), + 150: uint16(37364), + 151: uint16(37361), + 152: uint16(37363), + 153: uint16(37368), + 154: uint16(37348), + 155: uint16(37369), + 156: uint16(37354), + }, + 55: { + 0: uint16(37355), + 1: uint16(37367), + 2: uint16(37352), + 3: uint16(37358), + 4: uint16(38266), + 5: uint16(38278), + 6: uint16(38280), + 7: uint16(38524), + 8: uint16(38509), + 9: uint16(38507), + 10: uint16(38513), + 11: uint16(38511), + 12: uint16(38591), + 13: uint16(38762), + 14: uint16(38916), + 15: uint16(39141), + 16: uint16(39319), + 17: uint16(20635), + 18: uint16(20629), + 19: uint16(20628), + 20: uint16(20638), + 21: uint16(20619), + 22: uint16(20643), + 23: uint16(20611), + 24: uint16(20620), + 25: uint16(20622), + 26: uint16(20637), + 27: uint16(20584), + 28: uint16(20636), + 29: uint16(20626), + 30: uint16(20610), + 31: uint16(20615), + 32: uint16(20831), + 33: uint16(20948), + 34: uint16(21266), + 35: uint16(21265), + 36: uint16(21412), + 37: uint16(21415), + 38: uint16(21905), + 39: uint16(21928), + 40: uint16(21925), + 41: uint16(21933), + 42: uint16(21879), + 43: uint16(22085), + 44: uint16(21922), + 45: uint16(21907), + 46: uint16(21896), + 47: uint16(21903), + 48: uint16(21941), + 49: uint16(21889), + 50: uint16(21923), + 51: uint16(21906), + 52: uint16(21924), + 53: uint16(21885), + 54: uint16(21900), + 55: uint16(21926), + 56: uint16(21887), + 57: uint16(21909), + 58: uint16(21921), + 59: uint16(21902), + 60: uint16(22284), + 61: uint16(22569), + 62: uint16(22583), + 63: uint16(22553), + 64: uint16(22558), + 65: uint16(22567), + 66: uint16(22563), + 67: uint16(22568), + 68: uint16(22517), + 69: uint16(22600), + 70: uint16(22565), + 71: uint16(22556), + 72: uint16(22555), + 73: uint16(22579), + 74: uint16(22591), + 75: uint16(22582), + 76: uint16(22574), + 77: uint16(22585), + 78: uint16(22584), + 79: uint16(22573), + 80: uint16(22572), + 81: uint16(22587), + 82: uint16(22881), + 83: uint16(23215), + 84: uint16(23188), + 85: uint16(23199), + 86: uint16(23162), + 87: uint16(23202), + 88: uint16(23198), + 89: uint16(23160), + 90: uint16(23206), + 91: uint16(23164), + 92: uint16(23205), + 93: uint16(23212), + 94: uint16(23189), + 95: uint16(23214), + 96: uint16(23095), + 97: uint16(23172), + 98: uint16(23178), + 99: uint16(23191), + 100: uint16(23171), + 101: uint16(23179), + 102: uint16(23209), + 103: uint16(23163), + 104: uint16(23165), + 105: uint16(23180), + 106: uint16(23196), + 107: uint16(23183), + 108: uint16(23187), + 109: uint16(23197), + 110: uint16(23530), + 111: uint16(23501), + 112: uint16(23499), + 113: uint16(23508), + 114: uint16(23505), + 115: uint16(23498), + 116: uint16(23502), + 117: uint16(23564), + 118: uint16(23600), + 119: uint16(23863), + 120: uint16(23875), + 121: uint16(23915), + 122: uint16(23873), + 123: uint16(23883), + 124: uint16(23871), + 125: uint16(23861), + 126: uint16(23889), + 127: uint16(23886), + 128: uint16(23893), + 129: uint16(23859), + 130: uint16(23866), + 131: uint16(23890), + 132: uint16(23869), + 133: uint16(23857), + 134: uint16(23897), + 135: uint16(23874), + 136: uint16(23865), + 137: uint16(23881), + 138: uint16(23864), + 139: uint16(23868), + 140: uint16(23858), + 141: uint16(23862), + 142: uint16(23872), + 143: uint16(23877), + 144: uint16(24132), + 145: uint16(24129), + 146: uint16(24408), + 147: uint16(24486), + 148: uint16(24485), + 149: uint16(24491), + 150: uint16(24777), + 151: uint16(24761), + 152: uint16(24780), + 153: uint16(24802), + 154: uint16(24782), + 155: uint16(24772), + 156: uint16(24852), + }, + 56: { + 0: uint16(24818), + 1: uint16(24842), + 2: uint16(24854), + 3: uint16(24837), + 4: uint16(24821), + 5: uint16(24851), + 6: uint16(24824), + 7: uint16(24828), + 8: uint16(24830), + 9: uint16(24769), + 10: uint16(24835), + 11: uint16(24856), + 12: uint16(24861), + 13: uint16(24848), + 14: uint16(24831), + 15: uint16(24836), + 16: uint16(24843), + 17: uint16(25162), + 18: uint16(25492), + 19: uint16(25521), + 20: uint16(25520), + 21: uint16(25550), + 22: uint16(25573), + 23: uint16(25576), + 24: uint16(25583), + 25: uint16(25539), + 26: uint16(25757), + 27: uint16(25587), + 28: uint16(25546), + 29: uint16(25568), + 30: uint16(25590), + 31: uint16(25557), + 32: uint16(25586), + 33: uint16(25589), + 34: uint16(25697), + 35: uint16(25567), + 36: uint16(25534), + 37: uint16(25565), + 38: uint16(25564), + 39: uint16(25540), + 40: uint16(25560), + 41: uint16(25555), + 42: uint16(25538), + 43: uint16(25543), + 44: uint16(25548), + 45: uint16(25547), + 46: uint16(25544), + 47: uint16(25584), + 48: uint16(25559), + 49: uint16(25561), + 50: uint16(25906), + 51: uint16(25959), + 52: uint16(25962), + 53: uint16(25956), + 54: uint16(25948), + 55: uint16(25960), + 56: uint16(25957), + 57: uint16(25996), + 58: uint16(26013), + 59: uint16(26014), + 60: uint16(26030), + 61: uint16(26064), + 62: uint16(26066), + 63: uint16(26236), + 64: uint16(26220), + 65: uint16(26235), + 66: uint16(26240), + 67: uint16(26225), + 68: uint16(26233), + 69: uint16(26218), + 70: uint16(26226), + 71: uint16(26369), + 72: uint16(26892), + 73: uint16(26835), + 74: uint16(26884), + 75: uint16(26844), + 76: uint16(26922), + 77: uint16(26860), + 78: uint16(26858), + 79: uint16(26865), + 80: uint16(26895), + 81: uint16(26838), + 82: uint16(26871), + 83: uint16(26859), + 84: uint16(26852), + 85: uint16(26870), + 86: uint16(26899), + 87: uint16(26896), + 88: uint16(26867), + 89: uint16(26849), + 90: uint16(26887), + 91: uint16(26828), + 92: uint16(26888), + 93: uint16(26992), + 94: uint16(26804), + 95: uint16(26897), + 96: uint16(26863), + 97: uint16(26822), + 98: uint16(26900), + 99: uint16(26872), + 100: uint16(26832), + 101: uint16(26877), + 102: uint16(26876), + 103: uint16(26856), + 104: uint16(26891), + 105: uint16(26890), + 106: uint16(26903), + 107: uint16(26830), + 108: uint16(26824), + 109: uint16(26845), + 110: uint16(26846), + 111: uint16(26854), + 112: uint16(26868), + 113: uint16(26833), + 114: uint16(26886), + 115: uint16(26836), + 116: uint16(26857), + 117: uint16(26901), + 118: uint16(26917), + 119: uint16(26823), + 120: uint16(27449), + 121: uint16(27451), + 122: uint16(27455), + 123: uint16(27452), + 124: uint16(27540), + 125: uint16(27543), + 126: uint16(27545), + 127: uint16(27541), + 128: uint16(27581), + 129: uint16(27632), + 130: uint16(27634), + 131: uint16(27635), + 132: uint16(27696), + 133: uint16(28156), + 134: uint16(28230), + 135: uint16(28231), + 136: uint16(28191), + 137: uint16(28233), + 138: uint16(28296), + 139: uint16(28220), + 140: uint16(28221), + 141: uint16(28229), + 142: uint16(28258), + 143: uint16(28203), + 144: uint16(28223), + 145: uint16(28225), + 146: uint16(28253), + 147: uint16(28275), + 148: uint16(28188), + 149: uint16(28211), + 150: uint16(28235), + 151: uint16(28224), + 152: uint16(28241), + 153: uint16(28219), + 154: uint16(28163), + 155: uint16(28206), + 156: uint16(28254), + }, + 57: { + 0: uint16(28264), + 1: uint16(28252), + 2: uint16(28257), + 3: uint16(28209), + 4: uint16(28200), + 5: uint16(28256), + 6: uint16(28273), + 7: uint16(28267), + 8: uint16(28217), + 9: uint16(28194), + 10: uint16(28208), + 11: uint16(28243), + 12: uint16(28261), + 13: uint16(28199), + 14: uint16(28280), + 15: uint16(28260), + 16: uint16(28279), + 17: uint16(28245), + 18: uint16(28281), + 19: uint16(28242), + 20: uint16(28262), + 21: uint16(28213), + 22: uint16(28214), + 23: uint16(28250), + 24: uint16(28960), + 25: uint16(28958), + 26: uint16(28975), + 27: uint16(28923), + 28: uint16(28974), + 29: uint16(28977), + 30: uint16(28963), + 31: uint16(28965), + 32: uint16(28962), + 33: uint16(28978), + 34: uint16(28959), + 35: uint16(28968), + 36: uint16(28986), + 37: uint16(28955), + 38: uint16(29259), + 39: uint16(29274), + 40: uint16(29320), + 41: uint16(29321), + 42: uint16(29318), + 43: uint16(29317), + 44: uint16(29323), + 45: uint16(29458), + 46: uint16(29451), + 47: uint16(29488), + 48: uint16(29474), + 49: uint16(29489), + 50: uint16(29491), + 51: uint16(29479), + 52: uint16(29490), + 53: uint16(29485), + 54: uint16(29478), + 55: uint16(29475), + 56: uint16(29493), + 57: uint16(29452), + 58: uint16(29742), + 59: uint16(29740), + 60: uint16(29744), + 61: uint16(29739), + 62: uint16(29718), + 63: uint16(29722), + 64: uint16(29729), + 65: uint16(29741), + 66: uint16(29745), + 67: uint16(29732), + 68: uint16(29731), + 69: uint16(29725), + 70: uint16(29737), + 71: uint16(29728), + 72: uint16(29746), + 73: uint16(29947), + 74: uint16(29999), + 75: uint16(30063), + 76: uint16(30060), + 77: uint16(30183), + 78: uint16(30170), + 79: uint16(30177), + 80: uint16(30182), + 81: uint16(30173), + 82: uint16(30175), + 83: uint16(30180), + 84: uint16(30167), + 85: uint16(30357), + 86: uint16(30354), + 87: uint16(30426), + 88: uint16(30534), + 89: uint16(30535), + 90: uint16(30532), + 91: uint16(30541), + 92: uint16(30533), + 93: uint16(30538), + 94: uint16(30542), + 95: uint16(30539), + 96: uint16(30540), + 97: uint16(30686), + 98: uint16(30700), + 99: uint16(30816), + 100: uint16(30820), + 101: uint16(30821), + 102: uint16(30812), + 103: uint16(30829), + 104: uint16(30833), + 105: uint16(30826), + 106: uint16(30830), + 107: uint16(30832), + 108: uint16(30825), + 109: uint16(30824), + 110: uint16(30814), + 111: uint16(30818), + 112: uint16(31092), + 113: uint16(31091), + 114: uint16(31090), + 115: uint16(31088), + 116: uint16(31234), + 117: uint16(31242), + 118: uint16(31235), + 119: uint16(31244), + 120: uint16(31236), + 121: uint16(31385), + 122: uint16(31462), + 123: uint16(31460), + 124: uint16(31562), + 125: uint16(31547), + 126: uint16(31556), + 127: uint16(31560), + 128: uint16(31564), + 129: uint16(31566), + 130: uint16(31552), + 131: uint16(31576), + 132: uint16(31557), + 133: uint16(31906), + 134: uint16(31902), + 135: uint16(31912), + 136: uint16(31905), + 137: uint16(32088), + 138: uint16(32111), + 139: uint16(32099), + 140: uint16(32083), + 141: uint16(32086), + 142: uint16(32103), + 143: uint16(32106), + 144: uint16(32079), + 145: uint16(32109), + 146: uint16(32092), + 147: uint16(32107), + 148: uint16(32082), + 149: uint16(32084), + 150: uint16(32105), + 151: uint16(32081), + 152: uint16(32095), + 153: uint16(32078), + 154: uint16(32574), + 155: uint16(32575), + 156: uint16(32613), + }, + 58: { + 0: uint16(32614), + 1: uint16(32674), + 2: uint16(32672), + 3: uint16(32673), + 4: uint16(32727), + 5: uint16(32849), + 6: uint16(32847), + 7: uint16(32848), + 8: uint16(33022), + 9: uint16(32980), + 10: uint16(33091), + 11: uint16(33098), + 12: uint16(33106), + 13: uint16(33103), + 14: uint16(33095), + 15: uint16(33085), + 16: uint16(33101), + 17: uint16(33082), + 18: uint16(33254), + 19: uint16(33262), + 20: uint16(33271), + 21: uint16(33272), + 22: uint16(33273), + 23: uint16(33284), + 24: uint16(33340), + 25: uint16(33341), + 26: uint16(33343), + 27: uint16(33397), + 28: uint16(33595), + 29: uint16(33743), + 30: uint16(33785), + 31: uint16(33827), + 32: uint16(33728), + 33: uint16(33768), + 34: uint16(33810), + 35: uint16(33767), + 36: uint16(33764), + 37: uint16(33788), + 38: uint16(33782), + 39: uint16(33808), + 40: uint16(33734), + 41: uint16(33736), + 42: uint16(33771), + 43: uint16(33763), + 44: uint16(33727), + 45: uint16(33793), + 46: uint16(33757), + 47: uint16(33765), + 48: uint16(33752), + 49: uint16(33791), + 50: uint16(33761), + 51: uint16(33739), + 52: uint16(33742), + 53: uint16(33750), + 54: uint16(33781), + 55: uint16(33737), + 56: uint16(33801), + 57: uint16(33807), + 58: uint16(33758), + 59: uint16(33809), + 60: uint16(33798), + 61: uint16(33730), + 62: uint16(33779), + 63: uint16(33749), + 64: uint16(33786), + 65: uint16(33735), + 66: uint16(33745), + 67: uint16(33770), + 68: uint16(33811), + 69: uint16(33731), + 70: uint16(33772), + 71: uint16(33774), + 72: uint16(33732), + 73: uint16(33787), + 74: uint16(33751), + 75: uint16(33762), + 76: uint16(33819), + 77: uint16(33755), + 78: uint16(33790), + 79: uint16(34520), + 80: uint16(34530), + 81: uint16(34534), + 82: uint16(34515), + 83: uint16(34531), + 84: uint16(34522), + 85: uint16(34538), + 86: uint16(34525), + 87: uint16(34539), + 88: uint16(34524), + 89: uint16(34540), + 90: uint16(34537), + 91: uint16(34519), + 92: uint16(34536), + 93: uint16(34513), + 94: uint16(34888), + 95: uint16(34902), + 96: uint16(34901), + 97: uint16(35002), + 98: uint16(35031), + 99: uint16(35001), + 100: uint16(35000), + 101: uint16(35008), + 102: uint16(35006), + 103: uint16(34998), + 104: uint16(35004), + 105: uint16(34999), + 106: uint16(35005), + 107: uint16(34994), + 108: uint16(35073), + 109: uint16(35017), + 110: uint16(35221), + 111: uint16(35224), + 112: uint16(35223), + 113: uint16(35293), + 114: uint16(35290), + 115: uint16(35291), + 116: uint16(35406), + 117: uint16(35405), + 118: uint16(35385), + 119: uint16(35417), + 120: uint16(35392), + 121: uint16(35415), + 122: uint16(35416), + 123: uint16(35396), + 124: uint16(35397), + 125: uint16(35410), + 126: uint16(35400), + 127: uint16(35409), + 128: uint16(35402), + 129: uint16(35404), + 130: uint16(35407), + 131: uint16(35935), + 132: uint16(35969), + 133: uint16(35968), + 134: uint16(36026), + 135: uint16(36030), + 136: uint16(36016), + 137: uint16(36025), + 138: uint16(36021), + 139: uint16(36228), + 140: uint16(36224), + 141: uint16(36233), + 142: uint16(36312), + 143: uint16(36307), + 144: uint16(36301), + 145: uint16(36295), + 146: uint16(36310), + 147: uint16(36316), + 148: uint16(36303), + 149: uint16(36309), + 150: uint16(36313), + 151: uint16(36296), + 152: uint16(36311), + 153: uint16(36293), + 154: uint16(36591), + 155: uint16(36599), + 156: uint16(36602), + }, + 59: { + 0: uint16(36601), + 1: uint16(36582), + 2: uint16(36590), + 3: uint16(36581), + 4: uint16(36597), + 5: uint16(36583), + 6: uint16(36584), + 7: uint16(36598), + 8: uint16(36587), + 9: uint16(36593), + 10: uint16(36588), + 11: uint16(36596), + 12: uint16(36585), + 13: uint16(36909), + 14: uint16(36916), + 15: uint16(36911), + 16: uint16(37126), + 17: uint16(37164), + 18: uint16(37124), + 19: uint16(37119), + 20: uint16(37116), + 21: uint16(37128), + 22: uint16(37113), + 23: uint16(37115), + 24: uint16(37121), + 25: uint16(37120), + 26: uint16(37127), + 27: uint16(37125), + 28: uint16(37123), + 29: uint16(37217), + 30: uint16(37220), + 31: uint16(37215), + 32: uint16(37218), + 33: uint16(37216), + 34: uint16(37377), + 35: uint16(37386), + 36: uint16(37413), + 37: uint16(37379), + 38: uint16(37402), + 39: uint16(37414), + 40: uint16(37391), + 41: uint16(37388), + 42: uint16(37376), + 43: uint16(37394), + 44: uint16(37375), + 45: uint16(37373), + 46: uint16(37382), + 47: uint16(37380), + 48: uint16(37415), + 49: uint16(37378), + 50: uint16(37404), + 51: uint16(37412), + 52: uint16(37401), + 53: uint16(37399), + 54: uint16(37381), + 55: uint16(37398), + 56: uint16(38267), + 57: uint16(38285), + 58: uint16(38284), + 59: uint16(38288), + 60: uint16(38535), + 61: uint16(38526), + 62: uint16(38536), + 63: uint16(38537), + 64: uint16(38531), + 65: uint16(38528), + 66: uint16(38594), + 67: uint16(38600), + 68: uint16(38595), + 69: uint16(38641), + 70: uint16(38640), + 71: uint16(38764), + 72: uint16(38768), + 73: uint16(38766), + 74: uint16(38919), + 75: uint16(39081), + 76: uint16(39147), + 77: uint16(40166), + 78: uint16(40697), + 79: uint16(20099), + 80: uint16(20100), + 81: uint16(20150), + 82: uint16(20669), + 83: uint16(20671), + 84: uint16(20678), + 85: uint16(20654), + 86: uint16(20676), + 87: uint16(20682), + 88: uint16(20660), + 89: uint16(20680), + 90: uint16(20674), + 91: uint16(20656), + 92: uint16(20673), + 93: uint16(20666), + 94: uint16(20657), + 95: uint16(20683), + 96: uint16(20681), + 97: uint16(20662), + 98: uint16(20664), + 99: uint16(20951), + 100: uint16(21114), + 101: uint16(21112), + 102: uint16(21115), + 103: uint16(21116), + 104: uint16(21955), + 105: uint16(21979), + 106: uint16(21964), + 107: uint16(21968), + 108: uint16(21963), + 109: uint16(21962), + 110: uint16(21981), + 111: uint16(21952), + 112: uint16(21972), + 113: uint16(21956), + 114: uint16(21993), + 115: uint16(21951), + 116: uint16(21970), + 117: uint16(21901), + 118: uint16(21967), + 119: uint16(21973), + 120: uint16(21986), + 121: uint16(21974), + 122: uint16(21960), + 123: uint16(22002), + 124: uint16(21965), + 125: uint16(21977), + 126: uint16(21954), + 127: uint16(22292), + 128: uint16(22611), + 129: uint16(22632), + 130: uint16(22628), + 131: uint16(22607), + 132: uint16(22605), + 133: uint16(22601), + 134: uint16(22639), + 135: uint16(22613), + 136: uint16(22606), + 137: uint16(22621), + 138: uint16(22617), + 139: uint16(22629), + 140: uint16(22619), + 141: uint16(22589), + 142: uint16(22627), + 143: uint16(22641), + 144: uint16(22780), + 145: uint16(23239), + 146: uint16(23236), + 147: uint16(23243), + 148: uint16(23226), + 149: uint16(23224), + 150: uint16(23217), + 151: uint16(23221), + 152: uint16(23216), + 153: uint16(23231), + 154: uint16(23240), + 155: uint16(23227), + 156: uint16(23238), + }, + 60: { + 0: uint16(23223), + 1: uint16(23232), + 2: uint16(23242), + 3: uint16(23220), + 4: uint16(23222), + 5: uint16(23245), + 6: uint16(23225), + 7: uint16(23184), + 8: uint16(23510), + 9: uint16(23512), + 10: uint16(23513), + 11: uint16(23583), + 12: uint16(23603), + 13: uint16(23921), + 14: uint16(23907), + 15: uint16(23882), + 16: uint16(23909), + 17: uint16(23922), + 18: uint16(23916), + 19: uint16(23902), + 20: uint16(23912), + 21: uint16(23911), + 22: uint16(23906), + 23: uint16(24048), + 24: uint16(24143), + 25: uint16(24142), + 26: uint16(24138), + 27: uint16(24141), + 28: uint16(24139), + 29: uint16(24261), + 30: uint16(24268), + 31: uint16(24262), + 32: uint16(24267), + 33: uint16(24263), + 34: uint16(24384), + 35: uint16(24495), + 36: uint16(24493), + 37: uint16(24823), + 38: uint16(24905), + 39: uint16(24906), + 40: uint16(24875), + 41: uint16(24901), + 42: uint16(24886), + 43: uint16(24882), + 44: uint16(24878), + 45: uint16(24902), + 46: uint16(24879), + 47: uint16(24911), + 48: uint16(24873), + 49: uint16(24896), + 50: uint16(25120), + 51: uint16(37224), + 52: uint16(25123), + 53: uint16(25125), + 54: uint16(25124), + 55: uint16(25541), + 56: uint16(25585), + 57: uint16(25579), + 58: uint16(25616), + 59: uint16(25618), + 60: uint16(25609), + 61: uint16(25632), + 62: uint16(25636), + 63: uint16(25651), + 64: uint16(25667), + 65: uint16(25631), + 66: uint16(25621), + 67: uint16(25624), + 68: uint16(25657), + 69: uint16(25655), + 70: uint16(25634), + 71: uint16(25635), + 72: uint16(25612), + 73: uint16(25638), + 74: uint16(25648), + 75: uint16(25640), + 76: uint16(25665), + 77: uint16(25653), + 78: uint16(25647), + 79: uint16(25610), + 80: uint16(25626), + 81: uint16(25664), + 82: uint16(25637), + 83: uint16(25639), + 84: uint16(25611), + 85: uint16(25575), + 86: uint16(25627), + 87: uint16(25646), + 88: uint16(25633), + 89: uint16(25614), + 90: uint16(25967), + 91: uint16(26002), + 92: uint16(26067), + 93: uint16(26246), + 94: uint16(26252), + 95: uint16(26261), + 96: uint16(26256), + 97: uint16(26251), + 98: uint16(26250), + 99: uint16(26265), + 100: uint16(26260), + 101: uint16(26232), + 102: uint16(26400), + 103: uint16(26982), + 104: uint16(26975), + 105: uint16(26936), + 106: uint16(26958), + 107: uint16(26978), + 108: uint16(26993), + 109: uint16(26943), + 110: uint16(26949), + 111: uint16(26986), + 112: uint16(26937), + 113: uint16(26946), + 114: uint16(26967), + 115: uint16(26969), + 116: uint16(27002), + 117: uint16(26952), + 118: uint16(26953), + 119: uint16(26933), + 120: uint16(26988), + 121: uint16(26931), + 122: uint16(26941), + 123: uint16(26981), + 124: uint16(26864), + 125: uint16(27000), + 126: uint16(26932), + 127: uint16(26985), + 128: uint16(26944), + 129: uint16(26991), + 130: uint16(26948), + 131: uint16(26998), + 132: uint16(26968), + 133: uint16(26945), + 134: uint16(26996), + 135: uint16(26956), + 136: uint16(26939), + 137: uint16(26955), + 138: uint16(26935), + 139: uint16(26972), + 140: uint16(26959), + 141: uint16(26961), + 142: uint16(26930), + 143: uint16(26962), + 144: uint16(26927), + 145: uint16(27003), + 146: uint16(26940), + 147: uint16(27462), + 148: uint16(27461), + 149: uint16(27459), + 150: uint16(27458), + 151: uint16(27464), + 152: uint16(27457), + 153: uint16(27547), + 154: uint16(64013), + 155: uint16(27643), + 156: uint16(27644), + }, + 61: { + 0: uint16(27641), + 1: uint16(27639), + 2: uint16(27640), + 3: uint16(28315), + 4: uint16(28374), + 5: uint16(28360), + 6: uint16(28303), + 7: uint16(28352), + 8: uint16(28319), + 9: uint16(28307), + 10: uint16(28308), + 11: uint16(28320), + 12: uint16(28337), + 13: uint16(28345), + 14: uint16(28358), + 15: uint16(28370), + 16: uint16(28349), + 17: uint16(28353), + 18: uint16(28318), + 19: uint16(28361), + 20: uint16(28343), + 21: uint16(28336), + 22: uint16(28365), + 23: uint16(28326), + 24: uint16(28367), + 25: uint16(28338), + 26: uint16(28350), + 27: uint16(28355), + 28: uint16(28380), + 29: uint16(28376), + 30: uint16(28313), + 31: uint16(28306), + 32: uint16(28302), + 33: uint16(28301), + 34: uint16(28324), + 35: uint16(28321), + 36: uint16(28351), + 37: uint16(28339), + 38: uint16(28368), + 39: uint16(28362), + 40: uint16(28311), + 41: uint16(28334), + 42: uint16(28323), + 43: uint16(28999), + 44: uint16(29012), + 45: uint16(29010), + 46: uint16(29027), + 47: uint16(29024), + 48: uint16(28993), + 49: uint16(29021), + 50: uint16(29026), + 51: uint16(29042), + 52: uint16(29048), + 53: uint16(29034), + 54: uint16(29025), + 55: uint16(28994), + 56: uint16(29016), + 57: uint16(28995), + 58: uint16(29003), + 59: uint16(29040), + 60: uint16(29023), + 61: uint16(29008), + 62: uint16(29011), + 63: uint16(28996), + 64: uint16(29005), + 65: uint16(29018), + 66: uint16(29263), + 67: uint16(29325), + 68: uint16(29324), + 69: uint16(29329), + 70: uint16(29328), + 71: uint16(29326), + 72: uint16(29500), + 73: uint16(29506), + 74: uint16(29499), + 75: uint16(29498), + 76: uint16(29504), + 77: uint16(29514), + 78: uint16(29513), + 79: uint16(29764), + 80: uint16(29770), + 81: uint16(29771), + 82: uint16(29778), + 83: uint16(29777), + 84: uint16(29783), + 85: uint16(29760), + 86: uint16(29775), + 87: uint16(29776), + 88: uint16(29774), + 89: uint16(29762), + 90: uint16(29766), + 91: uint16(29773), + 92: uint16(29780), + 93: uint16(29921), + 94: uint16(29951), + 95: uint16(29950), + 96: uint16(29949), + 97: uint16(29981), + 98: uint16(30073), + 99: uint16(30071), + 100: uint16(27011), + 101: uint16(30191), + 102: uint16(30223), + 103: uint16(30211), + 104: uint16(30199), + 105: uint16(30206), + 106: uint16(30204), + 107: uint16(30201), + 108: uint16(30200), + 109: uint16(30224), + 110: uint16(30203), + 111: uint16(30198), + 112: uint16(30189), + 113: uint16(30197), + 114: uint16(30205), + 115: uint16(30361), + 116: uint16(30389), + 117: uint16(30429), + 118: uint16(30549), + 119: uint16(30559), + 120: uint16(30560), + 121: uint16(30546), + 122: uint16(30550), + 123: uint16(30554), + 124: uint16(30569), + 125: uint16(30567), + 126: uint16(30548), + 127: uint16(30553), + 128: uint16(30573), + 129: uint16(30688), + 130: uint16(30855), + 131: uint16(30874), + 132: uint16(30868), + 133: uint16(30863), + 134: uint16(30852), + 135: uint16(30869), + 136: uint16(30853), + 137: uint16(30854), + 138: uint16(30881), + 139: uint16(30851), + 140: uint16(30841), + 141: uint16(30873), + 142: uint16(30848), + 143: uint16(30870), + 144: uint16(30843), + 145: uint16(31100), + 146: uint16(31106), + 147: uint16(31101), + 148: uint16(31097), + 149: uint16(31249), + 150: uint16(31256), + 151: uint16(31257), + 152: uint16(31250), + 153: uint16(31255), + 154: uint16(31253), + 155: uint16(31266), + 156: uint16(31251), + }, + 62: { + 0: uint16(31259), + 1: uint16(31248), + 2: uint16(31395), + 3: uint16(31394), + 4: uint16(31390), + 5: uint16(31467), + 6: uint16(31590), + 7: uint16(31588), + 8: uint16(31597), + 9: uint16(31604), + 10: uint16(31593), + 11: uint16(31602), + 12: uint16(31589), + 13: uint16(31603), + 14: uint16(31601), + 15: uint16(31600), + 16: uint16(31585), + 17: uint16(31608), + 18: uint16(31606), + 19: uint16(31587), + 20: uint16(31922), + 21: uint16(31924), + 22: uint16(31919), + 23: uint16(32136), + 24: uint16(32134), + 25: uint16(32128), + 26: uint16(32141), + 27: uint16(32127), + 28: uint16(32133), + 29: uint16(32122), + 30: uint16(32142), + 31: uint16(32123), + 32: uint16(32131), + 33: uint16(32124), + 34: uint16(32140), + 35: uint16(32148), + 36: uint16(32132), + 37: uint16(32125), + 38: uint16(32146), + 39: uint16(32621), + 40: uint16(32619), + 41: uint16(32615), + 42: uint16(32616), + 43: uint16(32620), + 44: uint16(32678), + 45: uint16(32677), + 46: uint16(32679), + 47: uint16(32731), + 48: uint16(32732), + 49: uint16(32801), + 50: uint16(33124), + 51: uint16(33120), + 52: uint16(33143), + 53: uint16(33116), + 54: uint16(33129), + 55: uint16(33115), + 56: uint16(33122), + 57: uint16(33138), + 58: uint16(26401), + 59: uint16(33118), + 60: uint16(33142), + 61: uint16(33127), + 62: uint16(33135), + 63: uint16(33092), + 64: uint16(33121), + 65: uint16(33309), + 66: uint16(33353), + 67: uint16(33348), + 68: uint16(33344), + 69: uint16(33346), + 70: uint16(33349), + 71: uint16(34033), + 72: uint16(33855), + 73: uint16(33878), + 74: uint16(33910), + 75: uint16(33913), + 76: uint16(33935), + 77: uint16(33933), + 78: uint16(33893), + 79: uint16(33873), + 80: uint16(33856), + 81: uint16(33926), + 82: uint16(33895), + 83: uint16(33840), + 84: uint16(33869), + 85: uint16(33917), + 86: uint16(33882), + 87: uint16(33881), + 88: uint16(33908), + 89: uint16(33907), + 90: uint16(33885), + 91: uint16(34055), + 92: uint16(33886), + 93: uint16(33847), + 94: uint16(33850), + 95: uint16(33844), + 96: uint16(33914), + 97: uint16(33859), + 98: uint16(33912), + 99: uint16(33842), + 100: uint16(33861), + 101: uint16(33833), + 102: uint16(33753), + 103: uint16(33867), + 104: uint16(33839), + 105: uint16(33858), + 106: uint16(33837), + 107: uint16(33887), + 108: uint16(33904), + 109: uint16(33849), + 110: uint16(33870), + 111: uint16(33868), + 112: uint16(33874), + 113: uint16(33903), + 114: uint16(33989), + 115: uint16(33934), + 116: uint16(33851), + 117: uint16(33863), + 118: uint16(33846), + 119: uint16(33843), + 120: uint16(33896), + 121: uint16(33918), + 122: uint16(33860), + 123: uint16(33835), + 124: uint16(33888), + 125: uint16(33876), + 126: uint16(33902), + 127: uint16(33872), + 128: uint16(34571), + 129: uint16(34564), + 130: uint16(34551), + 131: uint16(34572), + 132: uint16(34554), + 133: uint16(34518), + 134: uint16(34549), + 135: uint16(34637), + 136: uint16(34552), + 137: uint16(34574), + 138: uint16(34569), + 139: uint16(34561), + 140: uint16(34550), + 141: uint16(34573), + 142: uint16(34565), + 143: uint16(35030), + 144: uint16(35019), + 145: uint16(35021), + 146: uint16(35022), + 147: uint16(35038), + 148: uint16(35035), + 149: uint16(35034), + 150: uint16(35020), + 151: uint16(35024), + 152: uint16(35205), + 153: uint16(35227), + 154: uint16(35295), + 155: uint16(35301), + 156: uint16(35300), + }, + 63: { + 0: uint16(35297), + 1: uint16(35296), + 2: uint16(35298), + 3: uint16(35292), + 4: uint16(35302), + 5: uint16(35446), + 6: uint16(35462), + 7: uint16(35455), + 8: uint16(35425), + 9: uint16(35391), + 10: uint16(35447), + 11: uint16(35458), + 12: uint16(35460), + 13: uint16(35445), + 14: uint16(35459), + 15: uint16(35457), + 16: uint16(35444), + 17: uint16(35450), + 18: uint16(35900), + 19: uint16(35915), + 20: uint16(35914), + 21: uint16(35941), + 22: uint16(35940), + 23: uint16(35942), + 24: uint16(35974), + 25: uint16(35972), + 26: uint16(35973), + 27: uint16(36044), + 28: uint16(36200), + 29: uint16(36201), + 30: uint16(36241), + 31: uint16(36236), + 32: uint16(36238), + 33: uint16(36239), + 34: uint16(36237), + 35: uint16(36243), + 36: uint16(36244), + 37: uint16(36240), + 38: uint16(36242), + 39: uint16(36336), + 40: uint16(36320), + 41: uint16(36332), + 42: uint16(36337), + 43: uint16(36334), + 44: uint16(36304), + 45: uint16(36329), + 46: uint16(36323), + 47: uint16(36322), + 48: uint16(36327), + 49: uint16(36338), + 50: uint16(36331), + 51: uint16(36340), + 52: uint16(36614), + 53: uint16(36607), + 54: uint16(36609), + 55: uint16(36608), + 56: uint16(36613), + 57: uint16(36615), + 58: uint16(36616), + 59: uint16(36610), + 60: uint16(36619), + 61: uint16(36946), + 62: uint16(36927), + 63: uint16(36932), + 64: uint16(36937), + 65: uint16(36925), + 66: uint16(37136), + 67: uint16(37133), + 68: uint16(37135), + 69: uint16(37137), + 70: uint16(37142), + 71: uint16(37140), + 72: uint16(37131), + 73: uint16(37134), + 74: uint16(37230), + 75: uint16(37231), + 76: uint16(37448), + 77: uint16(37458), + 78: uint16(37424), + 79: uint16(37434), + 80: uint16(37478), + 81: uint16(37427), + 82: uint16(37477), + 83: uint16(37470), + 84: uint16(37507), + 85: uint16(37422), + 86: uint16(37450), + 87: uint16(37446), + 88: uint16(37485), + 89: uint16(37484), + 90: uint16(37455), + 91: uint16(37472), + 92: uint16(37479), + 93: uint16(37487), + 94: uint16(37430), + 95: uint16(37473), + 96: uint16(37488), + 97: uint16(37425), + 98: uint16(37460), + 99: uint16(37475), + 100: uint16(37456), + 101: uint16(37490), + 102: uint16(37454), + 103: uint16(37459), + 104: uint16(37452), + 105: uint16(37462), + 106: uint16(37426), + 107: uint16(38303), + 108: uint16(38300), + 109: uint16(38302), + 110: uint16(38299), + 111: uint16(38546), + 112: uint16(38547), + 113: uint16(38545), + 114: uint16(38551), + 115: uint16(38606), + 116: uint16(38650), + 117: uint16(38653), + 118: uint16(38648), + 119: uint16(38645), + 120: uint16(38771), + 121: uint16(38775), + 122: uint16(38776), + 123: uint16(38770), + 124: uint16(38927), + 125: uint16(38925), + 126: uint16(38926), + 127: uint16(39084), + 128: uint16(39158), + 129: uint16(39161), + 130: uint16(39343), + 131: uint16(39346), + 132: uint16(39344), + 133: uint16(39349), + 134: uint16(39597), + 135: uint16(39595), + 136: uint16(39771), + 137: uint16(40170), + 138: uint16(40173), + 139: uint16(40167), + 140: uint16(40576), + 141: uint16(40701), + 142: uint16(20710), + 143: uint16(20692), + 144: uint16(20695), + 145: uint16(20712), + 146: uint16(20723), + 147: uint16(20699), + 148: uint16(20714), + 149: uint16(20701), + 150: uint16(20708), + 151: uint16(20691), + 152: uint16(20716), + 153: uint16(20720), + 154: uint16(20719), + 155: uint16(20707), + 156: uint16(20704), + }, + 64: { + 0: uint16(20952), + 1: uint16(21120), + 2: uint16(21121), + 3: uint16(21225), + 4: uint16(21227), + 5: uint16(21296), + 6: uint16(21420), + 7: uint16(22055), + 8: uint16(22037), + 9: uint16(22028), + 10: uint16(22034), + 11: uint16(22012), + 12: uint16(22031), + 13: uint16(22044), + 14: uint16(22017), + 15: uint16(22035), + 16: uint16(22018), + 17: uint16(22010), + 18: uint16(22045), + 19: uint16(22020), + 20: uint16(22015), + 21: uint16(22009), + 22: uint16(22665), + 23: uint16(22652), + 24: uint16(22672), + 25: uint16(22680), + 26: uint16(22662), + 27: uint16(22657), + 28: uint16(22655), + 29: uint16(22644), + 30: uint16(22667), + 31: uint16(22650), + 32: uint16(22663), + 33: uint16(22673), + 34: uint16(22670), + 35: uint16(22646), + 36: uint16(22658), + 37: uint16(22664), + 38: uint16(22651), + 39: uint16(22676), + 40: uint16(22671), + 41: uint16(22782), + 42: uint16(22891), + 43: uint16(23260), + 44: uint16(23278), + 45: uint16(23269), + 46: uint16(23253), + 47: uint16(23274), + 48: uint16(23258), + 49: uint16(23277), + 50: uint16(23275), + 51: uint16(23283), + 52: uint16(23266), + 53: uint16(23264), + 54: uint16(23259), + 55: uint16(23276), + 56: uint16(23262), + 57: uint16(23261), + 58: uint16(23257), + 59: uint16(23272), + 60: uint16(23263), + 61: uint16(23415), + 62: uint16(23520), + 63: uint16(23523), + 64: uint16(23651), + 65: uint16(23938), + 66: uint16(23936), + 67: uint16(23933), + 68: uint16(23942), + 69: uint16(23930), + 70: uint16(23937), + 71: uint16(23927), + 72: uint16(23946), + 73: uint16(23945), + 74: uint16(23944), + 75: uint16(23934), + 76: uint16(23932), + 77: uint16(23949), + 78: uint16(23929), + 79: uint16(23935), + 80: uint16(24152), + 81: uint16(24153), + 82: uint16(24147), + 83: uint16(24280), + 84: uint16(24273), + 85: uint16(24279), + 86: uint16(24270), + 87: uint16(24284), + 88: uint16(24277), + 89: uint16(24281), + 90: uint16(24274), + 91: uint16(24276), + 92: uint16(24388), + 93: uint16(24387), + 94: uint16(24431), + 95: uint16(24502), + 96: uint16(24876), + 97: uint16(24872), + 98: uint16(24897), + 99: uint16(24926), + 100: uint16(24945), + 101: uint16(24947), + 102: uint16(24914), + 103: uint16(24915), + 104: uint16(24946), + 105: uint16(24940), + 106: uint16(24960), + 107: uint16(24948), + 108: uint16(24916), + 109: uint16(24954), + 110: uint16(24923), + 111: uint16(24933), + 112: uint16(24891), + 113: uint16(24938), + 114: uint16(24929), + 115: uint16(24918), + 116: uint16(25129), + 117: uint16(25127), + 118: uint16(25131), + 119: uint16(25643), + 120: uint16(25677), + 121: uint16(25691), + 122: uint16(25693), + 123: uint16(25716), + 124: uint16(25718), + 125: uint16(25714), + 126: uint16(25715), + 127: uint16(25725), + 128: uint16(25717), + 129: uint16(25702), + 130: uint16(25766), + 131: uint16(25678), + 132: uint16(25730), + 133: uint16(25694), + 134: uint16(25692), + 135: uint16(25675), + 136: uint16(25683), + 137: uint16(25696), + 138: uint16(25680), + 139: uint16(25727), + 140: uint16(25663), + 141: uint16(25708), + 142: uint16(25707), + 143: uint16(25689), + 144: uint16(25701), + 145: uint16(25719), + 146: uint16(25971), + 147: uint16(26016), + 148: uint16(26273), + 149: uint16(26272), + 150: uint16(26271), + 151: uint16(26373), + 152: uint16(26372), + 153: uint16(26402), + 154: uint16(27057), + 155: uint16(27062), + 156: uint16(27081), + }, + 65: { + 0: uint16(27040), + 1: uint16(27086), + 2: uint16(27030), + 3: uint16(27056), + 4: uint16(27052), + 5: uint16(27068), + 6: uint16(27025), + 7: uint16(27033), + 8: uint16(27022), + 9: uint16(27047), + 10: uint16(27021), + 11: uint16(27049), + 12: uint16(27070), + 13: uint16(27055), + 14: uint16(27071), + 15: uint16(27076), + 16: uint16(27069), + 17: uint16(27044), + 18: uint16(27092), + 19: uint16(27065), + 20: uint16(27082), + 21: uint16(27034), + 22: uint16(27087), + 23: uint16(27059), + 24: uint16(27027), + 25: uint16(27050), + 26: uint16(27041), + 27: uint16(27038), + 28: uint16(27097), + 29: uint16(27031), + 30: uint16(27024), + 31: uint16(27074), + 32: uint16(27061), + 33: uint16(27045), + 34: uint16(27078), + 35: uint16(27466), + 36: uint16(27469), + 37: uint16(27467), + 38: uint16(27550), + 39: uint16(27551), + 40: uint16(27552), + 41: uint16(27587), + 42: uint16(27588), + 43: uint16(27646), + 44: uint16(28366), + 45: uint16(28405), + 46: uint16(28401), + 47: uint16(28419), + 48: uint16(28453), + 49: uint16(28408), + 50: uint16(28471), + 51: uint16(28411), + 52: uint16(28462), + 53: uint16(28425), + 54: uint16(28494), + 55: uint16(28441), + 56: uint16(28442), + 57: uint16(28455), + 58: uint16(28440), + 59: uint16(28475), + 60: uint16(28434), + 61: uint16(28397), + 62: uint16(28426), + 63: uint16(28470), + 64: uint16(28531), + 65: uint16(28409), + 66: uint16(28398), + 67: uint16(28461), + 68: uint16(28480), + 69: uint16(28464), + 70: uint16(28476), + 71: uint16(28469), + 72: uint16(28395), + 73: uint16(28423), + 74: uint16(28430), + 75: uint16(28483), + 76: uint16(28421), + 77: uint16(28413), + 78: uint16(28406), + 79: uint16(28473), + 80: uint16(28444), + 81: uint16(28412), + 82: uint16(28474), + 83: uint16(28447), + 84: uint16(28429), + 85: uint16(28446), + 86: uint16(28424), + 87: uint16(28449), + 88: uint16(29063), + 89: uint16(29072), + 90: uint16(29065), + 91: uint16(29056), + 92: uint16(29061), + 93: uint16(29058), + 94: uint16(29071), + 95: uint16(29051), + 96: uint16(29062), + 97: uint16(29057), + 98: uint16(29079), + 99: uint16(29252), + 100: uint16(29267), + 101: uint16(29335), + 102: uint16(29333), + 103: uint16(29331), + 104: uint16(29507), + 105: uint16(29517), + 106: uint16(29521), + 107: uint16(29516), + 108: uint16(29794), + 109: uint16(29811), + 110: uint16(29809), + 111: uint16(29813), + 112: uint16(29810), + 113: uint16(29799), + 114: uint16(29806), + 115: uint16(29952), + 116: uint16(29954), + 117: uint16(29955), + 118: uint16(30077), + 119: uint16(30096), + 120: uint16(30230), + 121: uint16(30216), + 122: uint16(30220), + 123: uint16(30229), + 124: uint16(30225), + 125: uint16(30218), + 126: uint16(30228), + 127: uint16(30392), + 128: uint16(30593), + 129: uint16(30588), + 130: uint16(30597), + 131: uint16(30594), + 132: uint16(30574), + 133: uint16(30592), + 134: uint16(30575), + 135: uint16(30590), + 136: uint16(30595), + 137: uint16(30898), + 138: uint16(30890), + 139: uint16(30900), + 140: uint16(30893), + 141: uint16(30888), + 142: uint16(30846), + 143: uint16(30891), + 144: uint16(30878), + 145: uint16(30885), + 146: uint16(30880), + 147: uint16(30892), + 148: uint16(30882), + 149: uint16(30884), + 150: uint16(31128), + 151: uint16(31114), + 152: uint16(31115), + 153: uint16(31126), + 154: uint16(31125), + 155: uint16(31124), + 156: uint16(31123), + }, + 66: { + 0: uint16(31127), + 1: uint16(31112), + 2: uint16(31122), + 3: uint16(31120), + 4: uint16(31275), + 5: uint16(31306), + 6: uint16(31280), + 7: uint16(31279), + 8: uint16(31272), + 9: uint16(31270), + 10: uint16(31400), + 11: uint16(31403), + 12: uint16(31404), + 13: uint16(31470), + 14: uint16(31624), + 15: uint16(31644), + 16: uint16(31626), + 17: uint16(31633), + 18: uint16(31632), + 19: uint16(31638), + 20: uint16(31629), + 21: uint16(31628), + 22: uint16(31643), + 23: uint16(31630), + 24: uint16(31621), + 25: uint16(31640), + 26: uint16(21124), + 27: uint16(31641), + 28: uint16(31652), + 29: uint16(31618), + 30: uint16(31931), + 31: uint16(31935), + 32: uint16(31932), + 33: uint16(31930), + 34: uint16(32167), + 35: uint16(32183), + 36: uint16(32194), + 37: uint16(32163), + 38: uint16(32170), + 39: uint16(32193), + 40: uint16(32192), + 41: uint16(32197), + 42: uint16(32157), + 43: uint16(32206), + 44: uint16(32196), + 45: uint16(32198), + 46: uint16(32203), + 47: uint16(32204), + 48: uint16(32175), + 49: uint16(32185), + 50: uint16(32150), + 51: uint16(32188), + 52: uint16(32159), + 53: uint16(32166), + 54: uint16(32174), + 55: uint16(32169), + 56: uint16(32161), + 57: uint16(32201), + 58: uint16(32627), + 59: uint16(32738), + 60: uint16(32739), + 61: uint16(32741), + 62: uint16(32734), + 63: uint16(32804), + 64: uint16(32861), + 65: uint16(32860), + 66: uint16(33161), + 67: uint16(33158), + 68: uint16(33155), + 69: uint16(33159), + 70: uint16(33165), + 71: uint16(33164), + 72: uint16(33163), + 73: uint16(33301), + 74: uint16(33943), + 75: uint16(33956), + 76: uint16(33953), + 77: uint16(33951), + 78: uint16(33978), + 79: uint16(33998), + 80: uint16(33986), + 81: uint16(33964), + 82: uint16(33966), + 83: uint16(33963), + 84: uint16(33977), + 85: uint16(33972), + 86: uint16(33985), + 87: uint16(33997), + 88: uint16(33962), + 89: uint16(33946), + 90: uint16(33969), + 91: uint16(34000), + 92: uint16(33949), + 93: uint16(33959), + 94: uint16(33979), + 95: uint16(33954), + 96: uint16(33940), + 97: uint16(33991), + 98: uint16(33996), + 99: uint16(33947), + 100: uint16(33961), + 101: uint16(33967), + 102: uint16(33960), + 103: uint16(34006), + 104: uint16(33944), + 105: uint16(33974), + 106: uint16(33999), + 107: uint16(33952), + 108: uint16(34007), + 109: uint16(34004), + 110: uint16(34002), + 111: uint16(34011), + 112: uint16(33968), + 113: uint16(33937), + 114: uint16(34401), + 115: uint16(34611), + 116: uint16(34595), + 117: uint16(34600), + 118: uint16(34667), + 119: uint16(34624), + 120: uint16(34606), + 121: uint16(34590), + 122: uint16(34593), + 123: uint16(34585), + 124: uint16(34587), + 125: uint16(34627), + 126: uint16(34604), + 127: uint16(34625), + 128: uint16(34622), + 129: uint16(34630), + 130: uint16(34592), + 131: uint16(34610), + 132: uint16(34602), + 133: uint16(34605), + 134: uint16(34620), + 135: uint16(34578), + 136: uint16(34618), + 137: uint16(34609), + 138: uint16(34613), + 139: uint16(34626), + 140: uint16(34598), + 141: uint16(34599), + 142: uint16(34616), + 143: uint16(34596), + 144: uint16(34586), + 145: uint16(34608), + 146: uint16(34577), + 147: uint16(35063), + 148: uint16(35047), + 149: uint16(35057), + 150: uint16(35058), + 151: uint16(35066), + 152: uint16(35070), + 153: uint16(35054), + 154: uint16(35068), + 155: uint16(35062), + 156: uint16(35067), + }, + 67: { + 0: uint16(35056), + 1: uint16(35052), + 2: uint16(35051), + 3: uint16(35229), + 4: uint16(35233), + 5: uint16(35231), + 6: uint16(35230), + 7: uint16(35305), + 8: uint16(35307), + 9: uint16(35304), + 10: uint16(35499), + 11: uint16(35481), + 12: uint16(35467), + 13: uint16(35474), + 14: uint16(35471), + 15: uint16(35478), + 16: uint16(35901), + 17: uint16(35944), + 18: uint16(35945), + 19: uint16(36053), + 20: uint16(36047), + 21: uint16(36055), + 22: uint16(36246), + 23: uint16(36361), + 24: uint16(36354), + 25: uint16(36351), + 26: uint16(36365), + 27: uint16(36349), + 28: uint16(36362), + 29: uint16(36355), + 30: uint16(36359), + 31: uint16(36358), + 32: uint16(36357), + 33: uint16(36350), + 34: uint16(36352), + 35: uint16(36356), + 36: uint16(36624), + 37: uint16(36625), + 38: uint16(36622), + 39: uint16(36621), + 40: uint16(37155), + 41: uint16(37148), + 42: uint16(37152), + 43: uint16(37154), + 44: uint16(37151), + 45: uint16(37149), + 46: uint16(37146), + 47: uint16(37156), + 48: uint16(37153), + 49: uint16(37147), + 50: uint16(37242), + 51: uint16(37234), + 52: uint16(37241), + 53: uint16(37235), + 54: uint16(37541), + 55: uint16(37540), + 56: uint16(37494), + 57: uint16(37531), + 58: uint16(37498), + 59: uint16(37536), + 60: uint16(37524), + 61: uint16(37546), + 62: uint16(37517), + 63: uint16(37542), + 64: uint16(37530), + 65: uint16(37547), + 66: uint16(37497), + 67: uint16(37527), + 68: uint16(37503), + 69: uint16(37539), + 70: uint16(37614), + 71: uint16(37518), + 72: uint16(37506), + 73: uint16(37525), + 74: uint16(37538), + 75: uint16(37501), + 76: uint16(37512), + 77: uint16(37537), + 78: uint16(37514), + 79: uint16(37510), + 80: uint16(37516), + 81: uint16(37529), + 82: uint16(37543), + 83: uint16(37502), + 84: uint16(37511), + 85: uint16(37545), + 86: uint16(37533), + 87: uint16(37515), + 88: uint16(37421), + 89: uint16(38558), + 90: uint16(38561), + 91: uint16(38655), + 92: uint16(38744), + 93: uint16(38781), + 94: uint16(38778), + 95: uint16(38782), + 96: uint16(38787), + 97: uint16(38784), + 98: uint16(38786), + 99: uint16(38779), + 100: uint16(38788), + 101: uint16(38785), + 102: uint16(38783), + 103: uint16(38862), + 104: uint16(38861), + 105: uint16(38934), + 106: uint16(39085), + 107: uint16(39086), + 108: uint16(39170), + 109: uint16(39168), + 110: uint16(39175), + 111: uint16(39325), + 112: uint16(39324), + 113: uint16(39363), + 114: uint16(39353), + 115: uint16(39355), + 116: uint16(39354), + 117: uint16(39362), + 118: uint16(39357), + 119: uint16(39367), + 120: uint16(39601), + 121: uint16(39651), + 122: uint16(39655), + 123: uint16(39742), + 124: uint16(39743), + 125: uint16(39776), + 126: uint16(39777), + 127: uint16(39775), + 128: uint16(40177), + 129: uint16(40178), + 130: uint16(40181), + 131: uint16(40615), + 132: uint16(20735), + 133: uint16(20739), + 134: uint16(20784), + 135: uint16(20728), + 136: uint16(20742), + 137: uint16(20743), + 138: uint16(20726), + 139: uint16(20734), + 140: uint16(20747), + 141: uint16(20748), + 142: uint16(20733), + 143: uint16(20746), + 144: uint16(21131), + 145: uint16(21132), + 146: uint16(21233), + 147: uint16(21231), + 148: uint16(22088), + 149: uint16(22082), + 150: uint16(22092), + 151: uint16(22069), + 152: uint16(22081), + 153: uint16(22090), + 154: uint16(22089), + 155: uint16(22086), + 156: uint16(22104), + }, + 68: { + 0: uint16(22106), + 1: uint16(22080), + 2: uint16(22067), + 3: uint16(22077), + 4: uint16(22060), + 5: uint16(22078), + 6: uint16(22072), + 7: uint16(22058), + 8: uint16(22074), + 9: uint16(22298), + 10: uint16(22699), + 11: uint16(22685), + 12: uint16(22705), + 13: uint16(22688), + 14: uint16(22691), + 15: uint16(22703), + 16: uint16(22700), + 17: uint16(22693), + 18: uint16(22689), + 19: uint16(22783), + 20: uint16(23295), + 21: uint16(23284), + 22: uint16(23293), + 23: uint16(23287), + 24: uint16(23286), + 25: uint16(23299), + 26: uint16(23288), + 27: uint16(23298), + 28: uint16(23289), + 29: uint16(23297), + 30: uint16(23303), + 31: uint16(23301), + 32: uint16(23311), + 33: uint16(23655), + 34: uint16(23961), + 35: uint16(23959), + 36: uint16(23967), + 37: uint16(23954), + 38: uint16(23970), + 39: uint16(23955), + 40: uint16(23957), + 41: uint16(23968), + 42: uint16(23964), + 43: uint16(23969), + 44: uint16(23962), + 45: uint16(23966), + 46: uint16(24169), + 47: uint16(24157), + 48: uint16(24160), + 49: uint16(24156), + 50: uint16(32243), + 51: uint16(24283), + 52: uint16(24286), + 53: uint16(24289), + 54: uint16(24393), + 55: uint16(24498), + 56: uint16(24971), + 57: uint16(24963), + 58: uint16(24953), + 59: uint16(25009), + 60: uint16(25008), + 61: uint16(24994), + 62: uint16(24969), + 63: uint16(24987), + 64: uint16(24979), + 65: uint16(25007), + 66: uint16(25005), + 67: uint16(24991), + 68: uint16(24978), + 69: uint16(25002), + 70: uint16(24993), + 71: uint16(24973), + 72: uint16(24934), + 73: uint16(25011), + 74: uint16(25133), + 75: uint16(25710), + 76: uint16(25712), + 77: uint16(25750), + 78: uint16(25760), + 79: uint16(25733), + 80: uint16(25751), + 81: uint16(25756), + 82: uint16(25743), + 83: uint16(25739), + 84: uint16(25738), + 85: uint16(25740), + 86: uint16(25763), + 87: uint16(25759), + 88: uint16(25704), + 89: uint16(25777), + 90: uint16(25752), + 91: uint16(25974), + 92: uint16(25978), + 93: uint16(25977), + 94: uint16(25979), + 95: uint16(26034), + 96: uint16(26035), + 97: uint16(26293), + 98: uint16(26288), + 99: uint16(26281), + 100: uint16(26290), + 101: uint16(26295), + 102: uint16(26282), + 103: uint16(26287), + 104: uint16(27136), + 105: uint16(27142), + 106: uint16(27159), + 107: uint16(27109), + 108: uint16(27128), + 109: uint16(27157), + 110: uint16(27121), + 111: uint16(27108), + 112: uint16(27168), + 113: uint16(27135), + 114: uint16(27116), + 115: uint16(27106), + 116: uint16(27163), + 117: uint16(27165), + 118: uint16(27134), + 119: uint16(27175), + 120: uint16(27122), + 121: uint16(27118), + 122: uint16(27156), + 123: uint16(27127), + 124: uint16(27111), + 125: uint16(27200), + 126: uint16(27144), + 127: uint16(27110), + 128: uint16(27131), + 129: uint16(27149), + 130: uint16(27132), + 131: uint16(27115), + 132: uint16(27145), + 133: uint16(27140), + 134: uint16(27160), + 135: uint16(27173), + 136: uint16(27151), + 137: uint16(27126), + 138: uint16(27174), + 139: uint16(27143), + 140: uint16(27124), + 141: uint16(27158), + 142: uint16(27473), + 143: uint16(27557), + 144: uint16(27555), + 145: uint16(27554), + 146: uint16(27558), + 147: uint16(27649), + 148: uint16(27648), + 149: uint16(27647), + 150: uint16(27650), + 151: uint16(28481), + 152: uint16(28454), + 153: uint16(28542), + 154: uint16(28551), + 155: uint16(28614), + 156: uint16(28562), + }, + 69: { + 0: uint16(28557), + 1: uint16(28553), + 2: uint16(28556), + 3: uint16(28514), + 4: uint16(28495), + 5: uint16(28549), + 6: uint16(28506), + 7: uint16(28566), + 8: uint16(28534), + 9: uint16(28524), + 10: uint16(28546), + 11: uint16(28501), + 12: uint16(28530), + 13: uint16(28498), + 14: uint16(28496), + 15: uint16(28503), + 16: uint16(28564), + 17: uint16(28563), + 18: uint16(28509), + 19: uint16(28416), + 20: uint16(28513), + 21: uint16(28523), + 22: uint16(28541), + 23: uint16(28519), + 24: uint16(28560), + 25: uint16(28499), + 26: uint16(28555), + 27: uint16(28521), + 28: uint16(28543), + 29: uint16(28565), + 30: uint16(28515), + 31: uint16(28535), + 32: uint16(28522), + 33: uint16(28539), + 34: uint16(29106), + 35: uint16(29103), + 36: uint16(29083), + 37: uint16(29104), + 38: uint16(29088), + 39: uint16(29082), + 40: uint16(29097), + 41: uint16(29109), + 42: uint16(29085), + 43: uint16(29093), + 44: uint16(29086), + 45: uint16(29092), + 46: uint16(29089), + 47: uint16(29098), + 48: uint16(29084), + 49: uint16(29095), + 50: uint16(29107), + 51: uint16(29336), + 52: uint16(29338), + 53: uint16(29528), + 54: uint16(29522), + 55: uint16(29534), + 56: uint16(29535), + 57: uint16(29536), + 58: uint16(29533), + 59: uint16(29531), + 60: uint16(29537), + 61: uint16(29530), + 62: uint16(29529), + 63: uint16(29538), + 64: uint16(29831), + 65: uint16(29833), + 66: uint16(29834), + 67: uint16(29830), + 68: uint16(29825), + 69: uint16(29821), + 70: uint16(29829), + 71: uint16(29832), + 72: uint16(29820), + 73: uint16(29817), + 74: uint16(29960), + 75: uint16(29959), + 76: uint16(30078), + 77: uint16(30245), + 78: uint16(30238), + 79: uint16(30233), + 80: uint16(30237), + 81: uint16(30236), + 82: uint16(30243), + 83: uint16(30234), + 84: uint16(30248), + 85: uint16(30235), + 86: uint16(30364), + 87: uint16(30365), + 88: uint16(30366), + 89: uint16(30363), + 90: uint16(30605), + 91: uint16(30607), + 92: uint16(30601), + 93: uint16(30600), + 94: uint16(30925), + 95: uint16(30907), + 96: uint16(30927), + 97: uint16(30924), + 98: uint16(30929), + 99: uint16(30926), + 100: uint16(30932), + 101: uint16(30920), + 102: uint16(30915), + 103: uint16(30916), + 104: uint16(30921), + 105: uint16(31130), + 106: uint16(31137), + 107: uint16(31136), + 108: uint16(31132), + 109: uint16(31138), + 110: uint16(31131), + 111: uint16(27510), + 112: uint16(31289), + 113: uint16(31410), + 114: uint16(31412), + 115: uint16(31411), + 116: uint16(31671), + 117: uint16(31691), + 118: uint16(31678), + 119: uint16(31660), + 120: uint16(31694), + 121: uint16(31663), + 122: uint16(31673), + 123: uint16(31690), + 124: uint16(31669), + 125: uint16(31941), + 126: uint16(31944), + 127: uint16(31948), + 128: uint16(31947), + 129: uint16(32247), + 130: uint16(32219), + 131: uint16(32234), + 132: uint16(32231), + 133: uint16(32215), + 134: uint16(32225), + 135: uint16(32259), + 136: uint16(32250), + 137: uint16(32230), + 138: uint16(32246), + 139: uint16(32241), + 140: uint16(32240), + 141: uint16(32238), + 142: uint16(32223), + 143: uint16(32630), + 144: uint16(32684), + 145: uint16(32688), + 146: uint16(32685), + 147: uint16(32749), + 148: uint16(32747), + 149: uint16(32746), + 150: uint16(32748), + 151: uint16(32742), + 152: uint16(32744), + 153: uint16(32868), + 154: uint16(32871), + 155: uint16(33187), + 156: uint16(33183), + }, + 70: { + 0: uint16(33182), + 1: uint16(33173), + 2: uint16(33186), + 3: uint16(33177), + 4: uint16(33175), + 5: uint16(33302), + 6: uint16(33359), + 7: uint16(33363), + 8: uint16(33362), + 9: uint16(33360), + 10: uint16(33358), + 11: uint16(33361), + 12: uint16(34084), + 13: uint16(34107), + 14: uint16(34063), + 15: uint16(34048), + 16: uint16(34089), + 17: uint16(34062), + 18: uint16(34057), + 19: uint16(34061), + 20: uint16(34079), + 21: uint16(34058), + 22: uint16(34087), + 23: uint16(34076), + 24: uint16(34043), + 25: uint16(34091), + 26: uint16(34042), + 27: uint16(34056), + 28: uint16(34060), + 29: uint16(34036), + 30: uint16(34090), + 31: uint16(34034), + 32: uint16(34069), + 33: uint16(34039), + 34: uint16(34027), + 35: uint16(34035), + 36: uint16(34044), + 37: uint16(34066), + 38: uint16(34026), + 39: uint16(34025), + 40: uint16(34070), + 41: uint16(34046), + 42: uint16(34088), + 43: uint16(34077), + 44: uint16(34094), + 45: uint16(34050), + 46: uint16(34045), + 47: uint16(34078), + 48: uint16(34038), + 49: uint16(34097), + 50: uint16(34086), + 51: uint16(34023), + 52: uint16(34024), + 53: uint16(34032), + 54: uint16(34031), + 55: uint16(34041), + 56: uint16(34072), + 57: uint16(34080), + 58: uint16(34096), + 59: uint16(34059), + 60: uint16(34073), + 61: uint16(34095), + 62: uint16(34402), + 63: uint16(34646), + 64: uint16(34659), + 65: uint16(34660), + 66: uint16(34679), + 67: uint16(34785), + 68: uint16(34675), + 69: uint16(34648), + 70: uint16(34644), + 71: uint16(34651), + 72: uint16(34642), + 73: uint16(34657), + 74: uint16(34650), + 75: uint16(34641), + 76: uint16(34654), + 77: uint16(34669), + 78: uint16(34666), + 79: uint16(34640), + 80: uint16(34638), + 81: uint16(34655), + 82: uint16(34653), + 83: uint16(34671), + 84: uint16(34668), + 85: uint16(34682), + 86: uint16(34670), + 87: uint16(34652), + 88: uint16(34661), + 89: uint16(34639), + 90: uint16(34683), + 91: uint16(34677), + 92: uint16(34658), + 93: uint16(34663), + 94: uint16(34665), + 95: uint16(34906), + 96: uint16(35077), + 97: uint16(35084), + 98: uint16(35092), + 99: uint16(35083), + 100: uint16(35095), + 101: uint16(35096), + 102: uint16(35097), + 103: uint16(35078), + 104: uint16(35094), + 105: uint16(35089), + 106: uint16(35086), + 107: uint16(35081), + 108: uint16(35234), + 109: uint16(35236), + 110: uint16(35235), + 111: uint16(35309), + 112: uint16(35312), + 113: uint16(35308), + 114: uint16(35535), + 115: uint16(35526), + 116: uint16(35512), + 117: uint16(35539), + 118: uint16(35537), + 119: uint16(35540), + 120: uint16(35541), + 121: uint16(35515), + 122: uint16(35543), + 123: uint16(35518), + 124: uint16(35520), + 125: uint16(35525), + 126: uint16(35544), + 127: uint16(35523), + 128: uint16(35514), + 129: uint16(35517), + 130: uint16(35545), + 131: uint16(35902), + 132: uint16(35917), + 133: uint16(35983), + 134: uint16(36069), + 135: uint16(36063), + 136: uint16(36057), + 137: uint16(36072), + 138: uint16(36058), + 139: uint16(36061), + 140: uint16(36071), + 141: uint16(36256), + 142: uint16(36252), + 143: uint16(36257), + 144: uint16(36251), + 145: uint16(36384), + 146: uint16(36387), + 147: uint16(36389), + 148: uint16(36388), + 149: uint16(36398), + 150: uint16(36373), + 151: uint16(36379), + 152: uint16(36374), + 153: uint16(36369), + 154: uint16(36377), + 155: uint16(36390), + 156: uint16(36391), + }, + 71: { + 0: uint16(36372), + 1: uint16(36370), + 2: uint16(36376), + 3: uint16(36371), + 4: uint16(36380), + 5: uint16(36375), + 6: uint16(36378), + 7: uint16(36652), + 8: uint16(36644), + 9: uint16(36632), + 10: uint16(36634), + 11: uint16(36640), + 12: uint16(36643), + 13: uint16(36630), + 14: uint16(36631), + 15: uint16(36979), + 16: uint16(36976), + 17: uint16(36975), + 18: uint16(36967), + 19: uint16(36971), + 20: uint16(37167), + 21: uint16(37163), + 22: uint16(37161), + 23: uint16(37162), + 24: uint16(37170), + 25: uint16(37158), + 26: uint16(37166), + 27: uint16(37253), + 28: uint16(37254), + 29: uint16(37258), + 30: uint16(37249), + 31: uint16(37250), + 32: uint16(37252), + 33: uint16(37248), + 34: uint16(37584), + 35: uint16(37571), + 36: uint16(37572), + 37: uint16(37568), + 38: uint16(37593), + 39: uint16(37558), + 40: uint16(37583), + 41: uint16(37617), + 42: uint16(37599), + 43: uint16(37592), + 44: uint16(37609), + 45: uint16(37591), + 46: uint16(37597), + 47: uint16(37580), + 48: uint16(37615), + 49: uint16(37570), + 50: uint16(37608), + 51: uint16(37578), + 52: uint16(37576), + 53: uint16(37582), + 54: uint16(37606), + 55: uint16(37581), + 56: uint16(37589), + 57: uint16(37577), + 58: uint16(37600), + 59: uint16(37598), + 60: uint16(37607), + 61: uint16(37585), + 62: uint16(37587), + 63: uint16(37557), + 64: uint16(37601), + 65: uint16(37574), + 66: uint16(37556), + 67: uint16(38268), + 68: uint16(38316), + 69: uint16(38315), + 70: uint16(38318), + 71: uint16(38320), + 72: uint16(38564), + 73: uint16(38562), + 74: uint16(38611), + 75: uint16(38661), + 76: uint16(38664), + 77: uint16(38658), + 78: uint16(38746), + 79: uint16(38794), + 80: uint16(38798), + 81: uint16(38792), + 82: uint16(38864), + 83: uint16(38863), + 84: uint16(38942), + 85: uint16(38941), + 86: uint16(38950), + 87: uint16(38953), + 88: uint16(38952), + 89: uint16(38944), + 90: uint16(38939), + 91: uint16(38951), + 92: uint16(39090), + 93: uint16(39176), + 94: uint16(39162), + 95: uint16(39185), + 96: uint16(39188), + 97: uint16(39190), + 98: uint16(39191), + 99: uint16(39189), + 100: uint16(39388), + 101: uint16(39373), + 102: uint16(39375), + 103: uint16(39379), + 104: uint16(39380), + 105: uint16(39374), + 106: uint16(39369), + 107: uint16(39382), + 108: uint16(39384), + 109: uint16(39371), + 110: uint16(39383), + 111: uint16(39372), + 112: uint16(39603), + 113: uint16(39660), + 114: uint16(39659), + 115: uint16(39667), + 116: uint16(39666), + 117: uint16(39665), + 118: uint16(39750), + 119: uint16(39747), + 120: uint16(39783), + 121: uint16(39796), + 122: uint16(39793), + 123: uint16(39782), + 124: uint16(39798), + 125: uint16(39797), + 126: uint16(39792), + 127: uint16(39784), + 128: uint16(39780), + 129: uint16(39788), + 130: uint16(40188), + 131: uint16(40186), + 132: uint16(40189), + 133: uint16(40191), + 134: uint16(40183), + 135: uint16(40199), + 136: uint16(40192), + 137: uint16(40185), + 138: uint16(40187), + 139: uint16(40200), + 140: uint16(40197), + 141: uint16(40196), + 142: uint16(40579), + 143: uint16(40659), + 144: uint16(40719), + 145: uint16(40720), + 146: uint16(20764), + 147: uint16(20755), + 148: uint16(20759), + 149: uint16(20762), + 150: uint16(20753), + 151: uint16(20958), + 152: uint16(21300), + 153: uint16(21473), + 154: uint16(22128), + 155: uint16(22112), + 156: uint16(22126), + }, + 72: { + 0: uint16(22131), + 1: uint16(22118), + 2: uint16(22115), + 3: uint16(22125), + 4: uint16(22130), + 5: uint16(22110), + 6: uint16(22135), + 7: uint16(22300), + 8: uint16(22299), + 9: uint16(22728), + 10: uint16(22717), + 11: uint16(22729), + 12: uint16(22719), + 13: uint16(22714), + 14: uint16(22722), + 15: uint16(22716), + 16: uint16(22726), + 17: uint16(23319), + 18: uint16(23321), + 19: uint16(23323), + 20: uint16(23329), + 21: uint16(23316), + 22: uint16(23315), + 23: uint16(23312), + 24: uint16(23318), + 25: uint16(23336), + 26: uint16(23322), + 27: uint16(23328), + 28: uint16(23326), + 29: uint16(23535), + 30: uint16(23980), + 31: uint16(23985), + 32: uint16(23977), + 33: uint16(23975), + 34: uint16(23989), + 35: uint16(23984), + 36: uint16(23982), + 37: uint16(23978), + 38: uint16(23976), + 39: uint16(23986), + 40: uint16(23981), + 41: uint16(23983), + 42: uint16(23988), + 43: uint16(24167), + 44: uint16(24168), + 45: uint16(24166), + 46: uint16(24175), + 47: uint16(24297), + 48: uint16(24295), + 49: uint16(24294), + 50: uint16(24296), + 51: uint16(24293), + 52: uint16(24395), + 53: uint16(24508), + 54: uint16(24989), + 55: uint16(25000), + 56: uint16(24982), + 57: uint16(25029), + 58: uint16(25012), + 59: uint16(25030), + 60: uint16(25025), + 61: uint16(25036), + 62: uint16(25018), + 63: uint16(25023), + 64: uint16(25016), + 65: uint16(24972), + 66: uint16(25815), + 67: uint16(25814), + 68: uint16(25808), + 69: uint16(25807), + 70: uint16(25801), + 71: uint16(25789), + 72: uint16(25737), + 73: uint16(25795), + 74: uint16(25819), + 75: uint16(25843), + 76: uint16(25817), + 77: uint16(25907), + 78: uint16(25983), + 79: uint16(25980), + 80: uint16(26018), + 81: uint16(26312), + 82: uint16(26302), + 83: uint16(26304), + 84: uint16(26314), + 85: uint16(26315), + 86: uint16(26319), + 87: uint16(26301), + 88: uint16(26299), + 89: uint16(26298), + 90: uint16(26316), + 91: uint16(26403), + 92: uint16(27188), + 93: uint16(27238), + 94: uint16(27209), + 95: uint16(27239), + 96: uint16(27186), + 97: uint16(27240), + 98: uint16(27198), + 99: uint16(27229), + 100: uint16(27245), + 101: uint16(27254), + 102: uint16(27227), + 103: uint16(27217), + 104: uint16(27176), + 105: uint16(27226), + 106: uint16(27195), + 107: uint16(27199), + 108: uint16(27201), + 109: uint16(27242), + 110: uint16(27236), + 111: uint16(27216), + 112: uint16(27215), + 113: uint16(27220), + 114: uint16(27247), + 115: uint16(27241), + 116: uint16(27232), + 117: uint16(27196), + 118: uint16(27230), + 119: uint16(27222), + 120: uint16(27221), + 121: uint16(27213), + 122: uint16(27214), + 123: uint16(27206), + 124: uint16(27477), + 125: uint16(27476), + 126: uint16(27478), + 127: uint16(27559), + 128: uint16(27562), + 129: uint16(27563), + 130: uint16(27592), + 131: uint16(27591), + 132: uint16(27652), + 133: uint16(27651), + 134: uint16(27654), + 135: uint16(28589), + 136: uint16(28619), + 137: uint16(28579), + 138: uint16(28615), + 139: uint16(28604), + 140: uint16(28622), + 141: uint16(28616), + 142: uint16(28510), + 143: uint16(28612), + 144: uint16(28605), + 145: uint16(28574), + 146: uint16(28618), + 147: uint16(28584), + 148: uint16(28676), + 149: uint16(28581), + 150: uint16(28590), + 151: uint16(28602), + 152: uint16(28588), + 153: uint16(28586), + 154: uint16(28623), + 155: uint16(28607), + 156: uint16(28600), + }, + 73: { + 0: uint16(28578), + 1: uint16(28617), + 2: uint16(28587), + 3: uint16(28621), + 4: uint16(28591), + 5: uint16(28594), + 6: uint16(28592), + 7: uint16(29125), + 8: uint16(29122), + 9: uint16(29119), + 10: uint16(29112), + 11: uint16(29142), + 12: uint16(29120), + 13: uint16(29121), + 14: uint16(29131), + 15: uint16(29140), + 16: uint16(29130), + 17: uint16(29127), + 18: uint16(29135), + 19: uint16(29117), + 20: uint16(29144), + 21: uint16(29116), + 22: uint16(29126), + 23: uint16(29146), + 24: uint16(29147), + 25: uint16(29341), + 26: uint16(29342), + 27: uint16(29545), + 28: uint16(29542), + 29: uint16(29543), + 30: uint16(29548), + 31: uint16(29541), + 32: uint16(29547), + 33: uint16(29546), + 34: uint16(29823), + 35: uint16(29850), + 36: uint16(29856), + 37: uint16(29844), + 38: uint16(29842), + 39: uint16(29845), + 40: uint16(29857), + 41: uint16(29963), + 42: uint16(30080), + 43: uint16(30255), + 44: uint16(30253), + 45: uint16(30257), + 46: uint16(30269), + 47: uint16(30259), + 48: uint16(30268), + 49: uint16(30261), + 50: uint16(30258), + 51: uint16(30256), + 52: uint16(30395), + 53: uint16(30438), + 54: uint16(30618), + 55: uint16(30621), + 56: uint16(30625), + 57: uint16(30620), + 58: uint16(30619), + 59: uint16(30626), + 60: uint16(30627), + 61: uint16(30613), + 62: uint16(30617), + 63: uint16(30615), + 64: uint16(30941), + 65: uint16(30953), + 66: uint16(30949), + 67: uint16(30954), + 68: uint16(30942), + 69: uint16(30947), + 70: uint16(30939), + 71: uint16(30945), + 72: uint16(30946), + 73: uint16(30957), + 74: uint16(30943), + 75: uint16(30944), + 76: uint16(31140), + 77: uint16(31300), + 78: uint16(31304), + 79: uint16(31303), + 80: uint16(31414), + 81: uint16(31416), + 82: uint16(31413), + 83: uint16(31409), + 84: uint16(31415), + 85: uint16(31710), + 86: uint16(31715), + 87: uint16(31719), + 88: uint16(31709), + 89: uint16(31701), + 90: uint16(31717), + 91: uint16(31706), + 92: uint16(31720), + 93: uint16(31737), + 94: uint16(31700), + 95: uint16(31722), + 96: uint16(31714), + 97: uint16(31708), + 98: uint16(31723), + 99: uint16(31704), + 100: uint16(31711), + 101: uint16(31954), + 102: uint16(31956), + 103: uint16(31959), + 104: uint16(31952), + 105: uint16(31953), + 106: uint16(32274), + 107: uint16(32289), + 108: uint16(32279), + 109: uint16(32268), + 110: uint16(32287), + 111: uint16(32288), + 112: uint16(32275), + 113: uint16(32270), + 114: uint16(32284), + 115: uint16(32277), + 116: uint16(32282), + 117: uint16(32290), + 118: uint16(32267), + 119: uint16(32271), + 120: uint16(32278), + 121: uint16(32269), + 122: uint16(32276), + 123: uint16(32293), + 124: uint16(32292), + 125: uint16(32579), + 126: uint16(32635), + 127: uint16(32636), + 128: uint16(32634), + 129: uint16(32689), + 130: uint16(32751), + 131: uint16(32810), + 132: uint16(32809), + 133: uint16(32876), + 134: uint16(33201), + 135: uint16(33190), + 136: uint16(33198), + 137: uint16(33209), + 138: uint16(33205), + 139: uint16(33195), + 140: uint16(33200), + 141: uint16(33196), + 142: uint16(33204), + 143: uint16(33202), + 144: uint16(33207), + 145: uint16(33191), + 146: uint16(33266), + 147: uint16(33365), + 148: uint16(33366), + 149: uint16(33367), + 150: uint16(34134), + 151: uint16(34117), + 152: uint16(34155), + 153: uint16(34125), + 154: uint16(34131), + 155: uint16(34145), + 156: uint16(34136), + }, + 74: { + 0: uint16(34112), + 1: uint16(34118), + 2: uint16(34148), + 3: uint16(34113), + 4: uint16(34146), + 5: uint16(34116), + 6: uint16(34129), + 7: uint16(34119), + 8: uint16(34147), + 9: uint16(34110), + 10: uint16(34139), + 11: uint16(34161), + 12: uint16(34126), + 13: uint16(34158), + 14: uint16(34165), + 15: uint16(34133), + 16: uint16(34151), + 17: uint16(34144), + 18: uint16(34188), + 19: uint16(34150), + 20: uint16(34141), + 21: uint16(34132), + 22: uint16(34149), + 23: uint16(34156), + 24: uint16(34403), + 25: uint16(34405), + 26: uint16(34404), + 27: uint16(34715), + 28: uint16(34703), + 29: uint16(34711), + 30: uint16(34707), + 31: uint16(34706), + 32: uint16(34696), + 33: uint16(34689), + 34: uint16(34710), + 35: uint16(34712), + 36: uint16(34681), + 37: uint16(34695), + 38: uint16(34723), + 39: uint16(34693), + 40: uint16(34704), + 41: uint16(34705), + 42: uint16(34717), + 43: uint16(34692), + 44: uint16(34708), + 45: uint16(34716), + 46: uint16(34714), + 47: uint16(34697), + 48: uint16(35102), + 49: uint16(35110), + 50: uint16(35120), + 51: uint16(35117), + 52: uint16(35118), + 53: uint16(35111), + 54: uint16(35121), + 55: uint16(35106), + 56: uint16(35113), + 57: uint16(35107), + 58: uint16(35119), + 59: uint16(35116), + 60: uint16(35103), + 61: uint16(35313), + 62: uint16(35552), + 63: uint16(35554), + 64: uint16(35570), + 65: uint16(35572), + 66: uint16(35573), + 67: uint16(35549), + 68: uint16(35604), + 69: uint16(35556), + 70: uint16(35551), + 71: uint16(35568), + 72: uint16(35528), + 73: uint16(35550), + 74: uint16(35553), + 75: uint16(35560), + 76: uint16(35583), + 77: uint16(35567), + 78: uint16(35579), + 79: uint16(35985), + 80: uint16(35986), + 81: uint16(35984), + 82: uint16(36085), + 83: uint16(36078), + 84: uint16(36081), + 85: uint16(36080), + 86: uint16(36083), + 87: uint16(36204), + 88: uint16(36206), + 89: uint16(36261), + 90: uint16(36263), + 91: uint16(36403), + 92: uint16(36414), + 93: uint16(36408), + 94: uint16(36416), + 95: uint16(36421), + 96: uint16(36406), + 97: uint16(36412), + 98: uint16(36413), + 99: uint16(36417), + 100: uint16(36400), + 101: uint16(36415), + 102: uint16(36541), + 103: uint16(36662), + 104: uint16(36654), + 105: uint16(36661), + 106: uint16(36658), + 107: uint16(36665), + 108: uint16(36663), + 109: uint16(36660), + 110: uint16(36982), + 111: uint16(36985), + 112: uint16(36987), + 113: uint16(36998), + 114: uint16(37114), + 115: uint16(37171), + 116: uint16(37173), + 117: uint16(37174), + 118: uint16(37267), + 119: uint16(37264), + 120: uint16(37265), + 121: uint16(37261), + 122: uint16(37263), + 123: uint16(37671), + 124: uint16(37662), + 125: uint16(37640), + 126: uint16(37663), + 127: uint16(37638), + 128: uint16(37647), + 129: uint16(37754), + 130: uint16(37688), + 131: uint16(37692), + 132: uint16(37659), + 133: uint16(37667), + 134: uint16(37650), + 135: uint16(37633), + 136: uint16(37702), + 137: uint16(37677), + 138: uint16(37646), + 139: uint16(37645), + 140: uint16(37579), + 141: uint16(37661), + 142: uint16(37626), + 143: uint16(37669), + 144: uint16(37651), + 145: uint16(37625), + 146: uint16(37623), + 147: uint16(37684), + 148: uint16(37634), + 149: uint16(37668), + 150: uint16(37631), + 151: uint16(37673), + 152: uint16(37689), + 153: uint16(37685), + 154: uint16(37674), + 155: uint16(37652), + 156: uint16(37644), + }, + 75: { + 0: uint16(37643), + 1: uint16(37630), + 2: uint16(37641), + 3: uint16(37632), + 4: uint16(37627), + 5: uint16(37654), + 6: uint16(38332), + 7: uint16(38349), + 8: uint16(38334), + 9: uint16(38329), + 10: uint16(38330), + 11: uint16(38326), + 12: uint16(38335), + 13: uint16(38325), + 14: uint16(38333), + 15: uint16(38569), + 16: uint16(38612), + 17: uint16(38667), + 18: uint16(38674), + 19: uint16(38672), + 20: uint16(38809), + 21: uint16(38807), + 22: uint16(38804), + 23: uint16(38896), + 24: uint16(38904), + 25: uint16(38965), + 26: uint16(38959), + 27: uint16(38962), + 28: uint16(39204), + 29: uint16(39199), + 30: uint16(39207), + 31: uint16(39209), + 32: uint16(39326), + 33: uint16(39406), + 34: uint16(39404), + 35: uint16(39397), + 36: uint16(39396), + 37: uint16(39408), + 38: uint16(39395), + 39: uint16(39402), + 40: uint16(39401), + 41: uint16(39399), + 42: uint16(39609), + 43: uint16(39615), + 44: uint16(39604), + 45: uint16(39611), + 46: uint16(39670), + 47: uint16(39674), + 48: uint16(39673), + 49: uint16(39671), + 50: uint16(39731), + 51: uint16(39808), + 52: uint16(39813), + 53: uint16(39815), + 54: uint16(39804), + 55: uint16(39806), + 56: uint16(39803), + 57: uint16(39810), + 58: uint16(39827), + 59: uint16(39826), + 60: uint16(39824), + 61: uint16(39802), + 62: uint16(39829), + 63: uint16(39805), + 64: uint16(39816), + 65: uint16(40229), + 66: uint16(40215), + 67: uint16(40224), + 68: uint16(40222), + 69: uint16(40212), + 70: uint16(40233), + 71: uint16(40221), + 72: uint16(40216), + 73: uint16(40226), + 74: uint16(40208), + 75: uint16(40217), + 76: uint16(40223), + 77: uint16(40584), + 78: uint16(40582), + 79: uint16(40583), + 80: uint16(40622), + 81: uint16(40621), + 82: uint16(40661), + 83: uint16(40662), + 84: uint16(40698), + 85: uint16(40722), + 86: uint16(40765), + 87: uint16(20774), + 88: uint16(20773), + 89: uint16(20770), + 90: uint16(20772), + 91: uint16(20768), + 92: uint16(20777), + 93: uint16(21236), + 94: uint16(22163), + 95: uint16(22156), + 96: uint16(22157), + 97: uint16(22150), + 98: uint16(22148), + 99: uint16(22147), + 100: uint16(22142), + 101: uint16(22146), + 102: uint16(22143), + 103: uint16(22145), + 104: uint16(22742), + 105: uint16(22740), + 106: uint16(22735), + 107: uint16(22738), + 108: uint16(23341), + 109: uint16(23333), + 110: uint16(23346), + 111: uint16(23331), + 112: uint16(23340), + 113: uint16(23335), + 114: uint16(23334), + 115: uint16(23343), + 116: uint16(23342), + 117: uint16(23419), + 118: uint16(23537), + 119: uint16(23538), + 120: uint16(23991), + 121: uint16(24172), + 122: uint16(24170), + 123: uint16(24510), + 124: uint16(24507), + 125: uint16(25027), + 126: uint16(25013), + 127: uint16(25020), + 128: uint16(25063), + 129: uint16(25056), + 130: uint16(25061), + 131: uint16(25060), + 132: uint16(25064), + 133: uint16(25054), + 134: uint16(25839), + 135: uint16(25833), + 136: uint16(25827), + 137: uint16(25835), + 138: uint16(25828), + 139: uint16(25832), + 140: uint16(25985), + 141: uint16(25984), + 142: uint16(26038), + 143: uint16(26074), + 144: uint16(26322), + 145: uint16(27277), + 146: uint16(27286), + 147: uint16(27265), + 148: uint16(27301), + 149: uint16(27273), + 150: uint16(27295), + 151: uint16(27291), + 152: uint16(27297), + 153: uint16(27294), + 154: uint16(27271), + 155: uint16(27283), + 156: uint16(27278), + }, + 76: { + 0: uint16(27285), + 1: uint16(27267), + 2: uint16(27304), + 3: uint16(27300), + 4: uint16(27281), + 5: uint16(27263), + 6: uint16(27302), + 7: uint16(27290), + 8: uint16(27269), + 9: uint16(27276), + 10: uint16(27282), + 11: uint16(27483), + 12: uint16(27565), + 13: uint16(27657), + 14: uint16(28620), + 15: uint16(28585), + 16: uint16(28660), + 17: uint16(28628), + 18: uint16(28643), + 19: uint16(28636), + 20: uint16(28653), + 21: uint16(28647), + 22: uint16(28646), + 23: uint16(28638), + 24: uint16(28658), + 25: uint16(28637), + 26: uint16(28642), + 27: uint16(28648), + 28: uint16(29153), + 29: uint16(29169), + 30: uint16(29160), + 31: uint16(29170), + 32: uint16(29156), + 33: uint16(29168), + 34: uint16(29154), + 35: uint16(29555), + 36: uint16(29550), + 37: uint16(29551), + 38: uint16(29847), + 39: uint16(29874), + 40: uint16(29867), + 41: uint16(29840), + 42: uint16(29866), + 43: uint16(29869), + 44: uint16(29873), + 45: uint16(29861), + 46: uint16(29871), + 47: uint16(29968), + 48: uint16(29969), + 49: uint16(29970), + 50: uint16(29967), + 51: uint16(30084), + 52: uint16(30275), + 53: uint16(30280), + 54: uint16(30281), + 55: uint16(30279), + 56: uint16(30372), + 57: uint16(30441), + 58: uint16(30645), + 59: uint16(30635), + 60: uint16(30642), + 61: uint16(30647), + 62: uint16(30646), + 63: uint16(30644), + 64: uint16(30641), + 65: uint16(30632), + 66: uint16(30704), + 67: uint16(30963), + 68: uint16(30973), + 69: uint16(30978), + 70: uint16(30971), + 71: uint16(30972), + 72: uint16(30962), + 73: uint16(30981), + 74: uint16(30969), + 75: uint16(30974), + 76: uint16(30980), + 77: uint16(31147), + 78: uint16(31144), + 79: uint16(31324), + 80: uint16(31323), + 81: uint16(31318), + 82: uint16(31320), + 83: uint16(31316), + 84: uint16(31322), + 85: uint16(31422), + 86: uint16(31424), + 87: uint16(31425), + 88: uint16(31749), + 89: uint16(31759), + 90: uint16(31730), + 91: uint16(31744), + 92: uint16(31743), + 93: uint16(31739), + 94: uint16(31758), + 95: uint16(31732), + 96: uint16(31755), + 97: uint16(31731), + 98: uint16(31746), + 99: uint16(31753), + 100: uint16(31747), + 101: uint16(31745), + 102: uint16(31736), + 103: uint16(31741), + 104: uint16(31750), + 105: uint16(31728), + 106: uint16(31729), + 107: uint16(31760), + 108: uint16(31754), + 109: uint16(31976), + 110: uint16(32301), + 111: uint16(32316), + 112: uint16(32322), + 113: uint16(32307), + 114: uint16(38984), + 115: uint16(32312), + 116: uint16(32298), + 117: uint16(32329), + 118: uint16(32320), + 119: uint16(32327), + 120: uint16(32297), + 121: uint16(32332), + 122: uint16(32304), + 123: uint16(32315), + 124: uint16(32310), + 125: uint16(32324), + 126: uint16(32314), + 127: uint16(32581), + 128: uint16(32639), + 129: uint16(32638), + 130: uint16(32637), + 131: uint16(32756), + 132: uint16(32754), + 133: uint16(32812), + 134: uint16(33211), + 135: uint16(33220), + 136: uint16(33228), + 137: uint16(33226), + 138: uint16(33221), + 139: uint16(33223), + 140: uint16(33212), + 141: uint16(33257), + 142: uint16(33371), + 143: uint16(33370), + 144: uint16(33372), + 145: uint16(34179), + 146: uint16(34176), + 147: uint16(34191), + 148: uint16(34215), + 149: uint16(34197), + 150: uint16(34208), + 151: uint16(34187), + 152: uint16(34211), + 153: uint16(34171), + 154: uint16(34212), + 155: uint16(34202), + 156: uint16(34206), + }, + 77: { + 0: uint16(34167), + 1: uint16(34172), + 2: uint16(34185), + 3: uint16(34209), + 4: uint16(34170), + 5: uint16(34168), + 6: uint16(34135), + 7: uint16(34190), + 8: uint16(34198), + 9: uint16(34182), + 10: uint16(34189), + 11: uint16(34201), + 12: uint16(34205), + 13: uint16(34177), + 14: uint16(34210), + 15: uint16(34178), + 16: uint16(34184), + 17: uint16(34181), + 18: uint16(34169), + 19: uint16(34166), + 20: uint16(34200), + 21: uint16(34192), + 22: uint16(34207), + 23: uint16(34408), + 24: uint16(34750), + 25: uint16(34730), + 26: uint16(34733), + 27: uint16(34757), + 28: uint16(34736), + 29: uint16(34732), + 30: uint16(34745), + 31: uint16(34741), + 32: uint16(34748), + 33: uint16(34734), + 34: uint16(34761), + 35: uint16(34755), + 36: uint16(34754), + 37: uint16(34764), + 38: uint16(34743), + 39: uint16(34735), + 40: uint16(34756), + 41: uint16(34762), + 42: uint16(34740), + 43: uint16(34742), + 44: uint16(34751), + 45: uint16(34744), + 46: uint16(34749), + 47: uint16(34782), + 48: uint16(34738), + 49: uint16(35125), + 50: uint16(35123), + 51: uint16(35132), + 52: uint16(35134), + 53: uint16(35137), + 54: uint16(35154), + 55: uint16(35127), + 56: uint16(35138), + 57: uint16(35245), + 58: uint16(35247), + 59: uint16(35246), + 60: uint16(35314), + 61: uint16(35315), + 62: uint16(35614), + 63: uint16(35608), + 64: uint16(35606), + 65: uint16(35601), + 66: uint16(35589), + 67: uint16(35595), + 68: uint16(35618), + 69: uint16(35599), + 70: uint16(35602), + 71: uint16(35605), + 72: uint16(35591), + 73: uint16(35597), + 74: uint16(35592), + 75: uint16(35590), + 76: uint16(35612), + 77: uint16(35603), + 78: uint16(35610), + 79: uint16(35919), + 80: uint16(35952), + 81: uint16(35954), + 82: uint16(35953), + 83: uint16(35951), + 84: uint16(35989), + 85: uint16(35988), + 86: uint16(36089), + 87: uint16(36207), + 88: uint16(36430), + 89: uint16(36429), + 90: uint16(36435), + 91: uint16(36432), + 92: uint16(36428), + 93: uint16(36423), + 94: uint16(36675), + 95: uint16(36672), + 96: uint16(36997), + 97: uint16(36990), + 98: uint16(37176), + 99: uint16(37274), + 100: uint16(37282), + 101: uint16(37275), + 102: uint16(37273), + 103: uint16(37279), + 104: uint16(37281), + 105: uint16(37277), + 106: uint16(37280), + 107: uint16(37793), + 108: uint16(37763), + 109: uint16(37807), + 110: uint16(37732), + 111: uint16(37718), + 112: uint16(37703), + 113: uint16(37756), + 114: uint16(37720), + 115: uint16(37724), + 116: uint16(37750), + 117: uint16(37705), + 118: uint16(37712), + 119: uint16(37713), + 120: uint16(37728), + 121: uint16(37741), + 122: uint16(37775), + 123: uint16(37708), + 124: uint16(37738), + 125: uint16(37753), + 126: uint16(37719), + 127: uint16(37717), + 128: uint16(37714), + 129: uint16(37711), + 130: uint16(37745), + 131: uint16(37751), + 132: uint16(37755), + 133: uint16(37729), + 134: uint16(37726), + 135: uint16(37731), + 136: uint16(37735), + 137: uint16(37760), + 138: uint16(37710), + 139: uint16(37721), + 140: uint16(38343), + 141: uint16(38336), + 142: uint16(38345), + 143: uint16(38339), + 144: uint16(38341), + 145: uint16(38327), + 146: uint16(38574), + 147: uint16(38576), + 148: uint16(38572), + 149: uint16(38688), + 150: uint16(38687), + 151: uint16(38680), + 152: uint16(38685), + 153: uint16(38681), + 154: uint16(38810), + 155: uint16(38817), + 156: uint16(38812), + }, + 78: { + 0: uint16(38814), + 1: uint16(38813), + 2: uint16(38869), + 3: uint16(38868), + 4: uint16(38897), + 5: uint16(38977), + 6: uint16(38980), + 7: uint16(38986), + 8: uint16(38985), + 9: uint16(38981), + 10: uint16(38979), + 11: uint16(39205), + 12: uint16(39211), + 13: uint16(39212), + 14: uint16(39210), + 15: uint16(39219), + 16: uint16(39218), + 17: uint16(39215), + 18: uint16(39213), + 19: uint16(39217), + 20: uint16(39216), + 21: uint16(39320), + 22: uint16(39331), + 23: uint16(39329), + 24: uint16(39426), + 25: uint16(39418), + 26: uint16(39412), + 27: uint16(39415), + 28: uint16(39417), + 29: uint16(39416), + 30: uint16(39414), + 31: uint16(39419), + 32: uint16(39421), + 33: uint16(39422), + 34: uint16(39420), + 35: uint16(39427), + 36: uint16(39614), + 37: uint16(39678), + 38: uint16(39677), + 39: uint16(39681), + 40: uint16(39676), + 41: uint16(39752), + 42: uint16(39834), + 43: uint16(39848), + 44: uint16(39838), + 45: uint16(39835), + 46: uint16(39846), + 47: uint16(39841), + 48: uint16(39845), + 49: uint16(39844), + 50: uint16(39814), + 51: uint16(39842), + 52: uint16(39840), + 53: uint16(39855), + 54: uint16(40243), + 55: uint16(40257), + 56: uint16(40295), + 57: uint16(40246), + 58: uint16(40238), + 59: uint16(40239), + 60: uint16(40241), + 61: uint16(40248), + 62: uint16(40240), + 63: uint16(40261), + 64: uint16(40258), + 65: uint16(40259), + 66: uint16(40254), + 67: uint16(40247), + 68: uint16(40256), + 69: uint16(40253), + 70: uint16(32757), + 71: uint16(40237), + 72: uint16(40586), + 73: uint16(40585), + 74: uint16(40589), + 75: uint16(40624), + 76: uint16(40648), + 77: uint16(40666), + 78: uint16(40699), + 79: uint16(40703), + 80: uint16(40740), + 81: uint16(40739), + 82: uint16(40738), + 83: uint16(40788), + 84: uint16(40864), + 85: uint16(20785), + 86: uint16(20781), + 87: uint16(20782), + 88: uint16(22168), + 89: uint16(22172), + 90: uint16(22167), + 91: uint16(22170), + 92: uint16(22173), + 93: uint16(22169), + 94: uint16(22896), + 95: uint16(23356), + 96: uint16(23657), + 97: uint16(23658), + 98: uint16(24000), + 99: uint16(24173), + 100: uint16(24174), + 101: uint16(25048), + 102: uint16(25055), + 103: uint16(25069), + 104: uint16(25070), + 105: uint16(25073), + 106: uint16(25066), + 107: uint16(25072), + 108: uint16(25067), + 109: uint16(25046), + 110: uint16(25065), + 111: uint16(25855), + 112: uint16(25860), + 113: uint16(25853), + 114: uint16(25848), + 115: uint16(25857), + 116: uint16(25859), + 117: uint16(25852), + 118: uint16(26004), + 119: uint16(26075), + 120: uint16(26330), + 121: uint16(26331), + 122: uint16(26328), + 123: uint16(27333), + 124: uint16(27321), + 125: uint16(27325), + 126: uint16(27361), + 127: uint16(27334), + 128: uint16(27322), + 129: uint16(27318), + 130: uint16(27319), + 131: uint16(27335), + 132: uint16(27316), + 133: uint16(27309), + 134: uint16(27486), + 135: uint16(27593), + 136: uint16(27659), + 137: uint16(28679), + 138: uint16(28684), + 139: uint16(28685), + 140: uint16(28673), + 141: uint16(28677), + 142: uint16(28692), + 143: uint16(28686), + 144: uint16(28671), + 145: uint16(28672), + 146: uint16(28667), + 147: uint16(28710), + 148: uint16(28668), + 149: uint16(28663), + 150: uint16(28682), + 151: uint16(29185), + 152: uint16(29183), + 153: uint16(29177), + 154: uint16(29187), + 155: uint16(29181), + 156: uint16(29558), + }, + 79: { + 0: uint16(29880), + 1: uint16(29888), + 2: uint16(29877), + 3: uint16(29889), + 4: uint16(29886), + 5: uint16(29878), + 6: uint16(29883), + 7: uint16(29890), + 8: uint16(29972), + 9: uint16(29971), + 10: uint16(30300), + 11: uint16(30308), + 12: uint16(30297), + 13: uint16(30288), + 14: uint16(30291), + 15: uint16(30295), + 16: uint16(30298), + 17: uint16(30374), + 18: uint16(30397), + 19: uint16(30444), + 20: uint16(30658), + 21: uint16(30650), + 22: uint16(30975), + 23: uint16(30988), + 24: uint16(30995), + 25: uint16(30996), + 26: uint16(30985), + 27: uint16(30992), + 28: uint16(30994), + 29: uint16(30993), + 30: uint16(31149), + 31: uint16(31148), + 32: uint16(31327), + 33: uint16(31772), + 34: uint16(31785), + 35: uint16(31769), + 36: uint16(31776), + 37: uint16(31775), + 38: uint16(31789), + 39: uint16(31773), + 40: uint16(31782), + 41: uint16(31784), + 42: uint16(31778), + 43: uint16(31781), + 44: uint16(31792), + 45: uint16(32348), + 46: uint16(32336), + 47: uint16(32342), + 48: uint16(32355), + 49: uint16(32344), + 50: uint16(32354), + 51: uint16(32351), + 52: uint16(32337), + 53: uint16(32352), + 54: uint16(32343), + 55: uint16(32339), + 56: uint16(32693), + 57: uint16(32691), + 58: uint16(32759), + 59: uint16(32760), + 60: uint16(32885), + 61: uint16(33233), + 62: uint16(33234), + 63: uint16(33232), + 64: uint16(33375), + 65: uint16(33374), + 66: uint16(34228), + 67: uint16(34246), + 68: uint16(34240), + 69: uint16(34243), + 70: uint16(34242), + 71: uint16(34227), + 72: uint16(34229), + 73: uint16(34237), + 74: uint16(34247), + 75: uint16(34244), + 76: uint16(34239), + 77: uint16(34251), + 78: uint16(34254), + 79: uint16(34248), + 80: uint16(34245), + 81: uint16(34225), + 82: uint16(34230), + 83: uint16(34258), + 84: uint16(34340), + 85: uint16(34232), + 86: uint16(34231), + 87: uint16(34238), + 88: uint16(34409), + 89: uint16(34791), + 90: uint16(34790), + 91: uint16(34786), + 92: uint16(34779), + 93: uint16(34795), + 94: uint16(34794), + 95: uint16(34789), + 96: uint16(34783), + 97: uint16(34803), + 98: uint16(34788), + 99: uint16(34772), + 100: uint16(34780), + 101: uint16(34771), + 102: uint16(34797), + 103: uint16(34776), + 104: uint16(34787), + 105: uint16(34724), + 106: uint16(34775), + 107: uint16(34777), + 108: uint16(34817), + 109: uint16(34804), + 110: uint16(34792), + 111: uint16(34781), + 112: uint16(35155), + 113: uint16(35147), + 114: uint16(35151), + 115: uint16(35148), + 116: uint16(35142), + 117: uint16(35152), + 118: uint16(35153), + 119: uint16(35145), + 120: uint16(35626), + 121: uint16(35623), + 122: uint16(35619), + 123: uint16(35635), + 124: uint16(35632), + 125: uint16(35637), + 126: uint16(35655), + 127: uint16(35631), + 128: uint16(35644), + 129: uint16(35646), + 130: uint16(35633), + 131: uint16(35621), + 132: uint16(35639), + 133: uint16(35622), + 134: uint16(35638), + 135: uint16(35630), + 136: uint16(35620), + 137: uint16(35643), + 138: uint16(35645), + 139: uint16(35642), + 140: uint16(35906), + 141: uint16(35957), + 142: uint16(35993), + 143: uint16(35992), + 144: uint16(35991), + 145: uint16(36094), + 146: uint16(36100), + 147: uint16(36098), + 148: uint16(36096), + 149: uint16(36444), + 150: uint16(36450), + 151: uint16(36448), + 152: uint16(36439), + 153: uint16(36438), + 154: uint16(36446), + 155: uint16(36453), + 156: uint16(36455), + }, + 80: { + 0: uint16(36443), + 1: uint16(36442), + 2: uint16(36449), + 3: uint16(36445), + 4: uint16(36457), + 5: uint16(36436), + 6: uint16(36678), + 7: uint16(36679), + 8: uint16(36680), + 9: uint16(36683), + 10: uint16(37160), + 11: uint16(37178), + 12: uint16(37179), + 13: uint16(37182), + 14: uint16(37288), + 15: uint16(37285), + 16: uint16(37287), + 17: uint16(37295), + 18: uint16(37290), + 19: uint16(37813), + 20: uint16(37772), + 21: uint16(37778), + 22: uint16(37815), + 23: uint16(37787), + 24: uint16(37789), + 25: uint16(37769), + 26: uint16(37799), + 27: uint16(37774), + 28: uint16(37802), + 29: uint16(37790), + 30: uint16(37798), + 31: uint16(37781), + 32: uint16(37768), + 33: uint16(37785), + 34: uint16(37791), + 35: uint16(37773), + 36: uint16(37809), + 37: uint16(37777), + 38: uint16(37810), + 39: uint16(37796), + 40: uint16(37800), + 41: uint16(37812), + 42: uint16(37795), + 43: uint16(37797), + 44: uint16(38354), + 45: uint16(38355), + 46: uint16(38353), + 47: uint16(38579), + 48: uint16(38615), + 49: uint16(38618), + 50: uint16(24002), + 51: uint16(38623), + 52: uint16(38616), + 53: uint16(38621), + 54: uint16(38691), + 55: uint16(38690), + 56: uint16(38693), + 57: uint16(38828), + 58: uint16(38830), + 59: uint16(38824), + 60: uint16(38827), + 61: uint16(38820), + 62: uint16(38826), + 63: uint16(38818), + 64: uint16(38821), + 65: uint16(38871), + 66: uint16(38873), + 67: uint16(38870), + 68: uint16(38872), + 69: uint16(38906), + 70: uint16(38992), + 71: uint16(38993), + 72: uint16(38994), + 73: uint16(39096), + 74: uint16(39233), + 75: uint16(39228), + 76: uint16(39226), + 77: uint16(39439), + 78: uint16(39435), + 79: uint16(39433), + 80: uint16(39437), + 81: uint16(39428), + 82: uint16(39441), + 83: uint16(39434), + 84: uint16(39429), + 85: uint16(39431), + 86: uint16(39430), + 87: uint16(39616), + 88: uint16(39644), + 89: uint16(39688), + 90: uint16(39684), + 91: uint16(39685), + 92: uint16(39721), + 93: uint16(39733), + 94: uint16(39754), + 95: uint16(39756), + 96: uint16(39755), + 97: uint16(39879), + 98: uint16(39878), + 99: uint16(39875), + 100: uint16(39871), + 101: uint16(39873), + 102: uint16(39861), + 103: uint16(39864), + 104: uint16(39891), + 105: uint16(39862), + 106: uint16(39876), + 107: uint16(39865), + 108: uint16(39869), + 109: uint16(40284), + 110: uint16(40275), + 111: uint16(40271), + 112: uint16(40266), + 113: uint16(40283), + 114: uint16(40267), + 115: uint16(40281), + 116: uint16(40278), + 117: uint16(40268), + 118: uint16(40279), + 119: uint16(40274), + 120: uint16(40276), + 121: uint16(40287), + 122: uint16(40280), + 123: uint16(40282), + 124: uint16(40590), + 125: uint16(40588), + 126: uint16(40671), + 127: uint16(40705), + 128: uint16(40704), + 129: uint16(40726), + 130: uint16(40741), + 131: uint16(40747), + 132: uint16(40746), + 133: uint16(40745), + 134: uint16(40744), + 135: uint16(40780), + 136: uint16(40789), + 137: uint16(20788), + 138: uint16(20789), + 139: uint16(21142), + 140: uint16(21239), + 141: uint16(21428), + 142: uint16(22187), + 143: uint16(22189), + 144: uint16(22182), + 145: uint16(22183), + 146: uint16(22186), + 147: uint16(22188), + 148: uint16(22746), + 149: uint16(22749), + 150: uint16(22747), + 151: uint16(22802), + 152: uint16(23357), + 153: uint16(23358), + 154: uint16(23359), + 155: uint16(24003), + 156: uint16(24176), + }, + 81: { + 0: uint16(24511), + 1: uint16(25083), + 2: uint16(25863), + 3: uint16(25872), + 4: uint16(25869), + 5: uint16(25865), + 6: uint16(25868), + 7: uint16(25870), + 8: uint16(25988), + 9: uint16(26078), + 10: uint16(26077), + 11: uint16(26334), + 12: uint16(27367), + 13: uint16(27360), + 14: uint16(27340), + 15: uint16(27345), + 16: uint16(27353), + 17: uint16(27339), + 18: uint16(27359), + 19: uint16(27356), + 20: uint16(27344), + 21: uint16(27371), + 22: uint16(27343), + 23: uint16(27341), + 24: uint16(27358), + 25: uint16(27488), + 26: uint16(27568), + 27: uint16(27660), + 28: uint16(28697), + 29: uint16(28711), + 30: uint16(28704), + 31: uint16(28694), + 32: uint16(28715), + 33: uint16(28705), + 34: uint16(28706), + 35: uint16(28707), + 36: uint16(28713), + 37: uint16(28695), + 38: uint16(28708), + 39: uint16(28700), + 40: uint16(28714), + 41: uint16(29196), + 42: uint16(29194), + 43: uint16(29191), + 44: uint16(29186), + 45: uint16(29189), + 46: uint16(29349), + 47: uint16(29350), + 48: uint16(29348), + 49: uint16(29347), + 50: uint16(29345), + 51: uint16(29899), + 52: uint16(29893), + 53: uint16(29879), + 54: uint16(29891), + 55: uint16(29974), + 56: uint16(30304), + 57: uint16(30665), + 58: uint16(30666), + 59: uint16(30660), + 60: uint16(30705), + 61: uint16(31005), + 62: uint16(31003), + 63: uint16(31009), + 64: uint16(31004), + 65: uint16(30999), + 66: uint16(31006), + 67: uint16(31152), + 68: uint16(31335), + 69: uint16(31336), + 70: uint16(31795), + 71: uint16(31804), + 72: uint16(31801), + 73: uint16(31788), + 74: uint16(31803), + 75: uint16(31980), + 76: uint16(31978), + 77: uint16(32374), + 78: uint16(32373), + 79: uint16(32376), + 80: uint16(32368), + 81: uint16(32375), + 82: uint16(32367), + 83: uint16(32378), + 84: uint16(32370), + 85: uint16(32372), + 86: uint16(32360), + 87: uint16(32587), + 88: uint16(32586), + 89: uint16(32643), + 90: uint16(32646), + 91: uint16(32695), + 92: uint16(32765), + 93: uint16(32766), + 94: uint16(32888), + 95: uint16(33239), + 96: uint16(33237), + 97: uint16(33380), + 98: uint16(33377), + 99: uint16(33379), + 100: uint16(34283), + 101: uint16(34289), + 102: uint16(34285), + 103: uint16(34265), + 104: uint16(34273), + 105: uint16(34280), + 106: uint16(34266), + 107: uint16(34263), + 108: uint16(34284), + 109: uint16(34290), + 110: uint16(34296), + 111: uint16(34264), + 112: uint16(34271), + 113: uint16(34275), + 114: uint16(34268), + 115: uint16(34257), + 116: uint16(34288), + 117: uint16(34278), + 118: uint16(34287), + 119: uint16(34270), + 120: uint16(34274), + 121: uint16(34816), + 122: uint16(34810), + 123: uint16(34819), + 124: uint16(34806), + 125: uint16(34807), + 126: uint16(34825), + 127: uint16(34828), + 128: uint16(34827), + 129: uint16(34822), + 130: uint16(34812), + 131: uint16(34824), + 132: uint16(34815), + 133: uint16(34826), + 134: uint16(34818), + 135: uint16(35170), + 136: uint16(35162), + 137: uint16(35163), + 138: uint16(35159), + 139: uint16(35169), + 140: uint16(35164), + 141: uint16(35160), + 142: uint16(35165), + 143: uint16(35161), + 144: uint16(35208), + 145: uint16(35255), + 146: uint16(35254), + 147: uint16(35318), + 148: uint16(35664), + 149: uint16(35656), + 150: uint16(35658), + 151: uint16(35648), + 152: uint16(35667), + 153: uint16(35670), + 154: uint16(35668), + 155: uint16(35659), + 156: uint16(35669), + }, + 82: { + 0: uint16(35665), + 1: uint16(35650), + 2: uint16(35666), + 3: uint16(35671), + 4: uint16(35907), + 5: uint16(35959), + 6: uint16(35958), + 7: uint16(35994), + 8: uint16(36102), + 9: uint16(36103), + 10: uint16(36105), + 11: uint16(36268), + 12: uint16(36266), + 13: uint16(36269), + 14: uint16(36267), + 15: uint16(36461), + 16: uint16(36472), + 17: uint16(36467), + 18: uint16(36458), + 19: uint16(36463), + 20: uint16(36475), + 21: uint16(36546), + 22: uint16(36690), + 23: uint16(36689), + 24: uint16(36687), + 25: uint16(36688), + 26: uint16(36691), + 27: uint16(36788), + 28: uint16(37184), + 29: uint16(37183), + 30: uint16(37296), + 31: uint16(37293), + 32: uint16(37854), + 33: uint16(37831), + 34: uint16(37839), + 35: uint16(37826), + 36: uint16(37850), + 37: uint16(37840), + 38: uint16(37881), + 39: uint16(37868), + 40: uint16(37836), + 41: uint16(37849), + 42: uint16(37801), + 43: uint16(37862), + 44: uint16(37834), + 45: uint16(37844), + 46: uint16(37870), + 47: uint16(37859), + 48: uint16(37845), + 49: uint16(37828), + 50: uint16(37838), + 51: uint16(37824), + 52: uint16(37842), + 53: uint16(37863), + 54: uint16(38269), + 55: uint16(38362), + 56: uint16(38363), + 57: uint16(38625), + 58: uint16(38697), + 59: uint16(38699), + 60: uint16(38700), + 61: uint16(38696), + 62: uint16(38694), + 63: uint16(38835), + 64: uint16(38839), + 65: uint16(38838), + 66: uint16(38877), + 67: uint16(38878), + 68: uint16(38879), + 69: uint16(39004), + 70: uint16(39001), + 71: uint16(39005), + 72: uint16(38999), + 73: uint16(39103), + 74: uint16(39101), + 75: uint16(39099), + 76: uint16(39102), + 77: uint16(39240), + 78: uint16(39239), + 79: uint16(39235), + 80: uint16(39334), + 81: uint16(39335), + 82: uint16(39450), + 83: uint16(39445), + 84: uint16(39461), + 85: uint16(39453), + 86: uint16(39460), + 87: uint16(39451), + 88: uint16(39458), + 89: uint16(39456), + 90: uint16(39463), + 91: uint16(39459), + 92: uint16(39454), + 93: uint16(39452), + 94: uint16(39444), + 95: uint16(39618), + 96: uint16(39691), + 97: uint16(39690), + 98: uint16(39694), + 99: uint16(39692), + 100: uint16(39735), + 101: uint16(39914), + 102: uint16(39915), + 103: uint16(39904), + 104: uint16(39902), + 105: uint16(39908), + 106: uint16(39910), + 107: uint16(39906), + 108: uint16(39920), + 109: uint16(39892), + 110: uint16(39895), + 111: uint16(39916), + 112: uint16(39900), + 113: uint16(39897), + 114: uint16(39909), + 115: uint16(39893), + 116: uint16(39905), + 117: uint16(39898), + 118: uint16(40311), + 119: uint16(40321), + 120: uint16(40330), + 121: uint16(40324), + 122: uint16(40328), + 123: uint16(40305), + 124: uint16(40320), + 125: uint16(40312), + 126: uint16(40326), + 127: uint16(40331), + 128: uint16(40332), + 129: uint16(40317), + 130: uint16(40299), + 131: uint16(40308), + 132: uint16(40309), + 133: uint16(40304), + 134: uint16(40297), + 135: uint16(40325), + 136: uint16(40307), + 137: uint16(40315), + 138: uint16(40322), + 139: uint16(40303), + 140: uint16(40313), + 141: uint16(40319), + 142: uint16(40327), + 143: uint16(40296), + 144: uint16(40596), + 145: uint16(40593), + 146: uint16(40640), + 147: uint16(40700), + 148: uint16(40749), + 149: uint16(40768), + 150: uint16(40769), + 151: uint16(40781), + 152: uint16(40790), + 153: uint16(40791), + 154: uint16(40792), + 155: uint16(21303), + 156: uint16(22194), + }, + 83: { + 0: uint16(22197), + 1: uint16(22195), + 2: uint16(22755), + 3: uint16(23365), + 4: uint16(24006), + 5: uint16(24007), + 6: uint16(24302), + 7: uint16(24303), + 8: uint16(24512), + 9: uint16(24513), + 10: uint16(25081), + 11: uint16(25879), + 12: uint16(25878), + 13: uint16(25877), + 14: uint16(25875), + 15: uint16(26079), + 16: uint16(26344), + 17: uint16(26339), + 18: uint16(26340), + 19: uint16(27379), + 20: uint16(27376), + 21: uint16(27370), + 22: uint16(27368), + 23: uint16(27385), + 24: uint16(27377), + 25: uint16(27374), + 26: uint16(27375), + 27: uint16(28732), + 28: uint16(28725), + 29: uint16(28719), + 30: uint16(28727), + 31: uint16(28724), + 32: uint16(28721), + 33: uint16(28738), + 34: uint16(28728), + 35: uint16(28735), + 36: uint16(28730), + 37: uint16(28729), + 38: uint16(28736), + 39: uint16(28731), + 40: uint16(28723), + 41: uint16(28737), + 42: uint16(29203), + 43: uint16(29204), + 44: uint16(29352), + 45: uint16(29565), + 46: uint16(29564), + 47: uint16(29882), + 48: uint16(30379), + 49: uint16(30378), + 50: uint16(30398), + 51: uint16(30445), + 52: uint16(30668), + 53: uint16(30670), + 54: uint16(30671), + 55: uint16(30669), + 56: uint16(30706), + 57: uint16(31013), + 58: uint16(31011), + 59: uint16(31015), + 60: uint16(31016), + 61: uint16(31012), + 62: uint16(31017), + 63: uint16(31154), + 64: uint16(31342), + 65: uint16(31340), + 66: uint16(31341), + 67: uint16(31479), + 68: uint16(31817), + 69: uint16(31816), + 70: uint16(31818), + 71: uint16(31815), + 72: uint16(31813), + 73: uint16(31982), + 74: uint16(32379), + 75: uint16(32382), + 76: uint16(32385), + 77: uint16(32384), + 78: uint16(32698), + 79: uint16(32767), + 80: uint16(32889), + 81: uint16(33243), + 82: uint16(33241), + 83: uint16(33291), + 84: uint16(33384), + 85: uint16(33385), + 86: uint16(34338), + 87: uint16(34303), + 88: uint16(34305), + 89: uint16(34302), + 90: uint16(34331), + 91: uint16(34304), + 92: uint16(34294), + 93: uint16(34308), + 94: uint16(34313), + 95: uint16(34309), + 96: uint16(34316), + 97: uint16(34301), + 98: uint16(34841), + 99: uint16(34832), + 100: uint16(34833), + 101: uint16(34839), + 102: uint16(34835), + 103: uint16(34838), + 104: uint16(35171), + 105: uint16(35174), + 106: uint16(35257), + 107: uint16(35319), + 108: uint16(35680), + 109: uint16(35690), + 110: uint16(35677), + 111: uint16(35688), + 112: uint16(35683), + 113: uint16(35685), + 114: uint16(35687), + 115: uint16(35693), + 116: uint16(36270), + 117: uint16(36486), + 118: uint16(36488), + 119: uint16(36484), + 120: uint16(36697), + 121: uint16(36694), + 122: uint16(36695), + 123: uint16(36693), + 124: uint16(36696), + 125: uint16(36698), + 126: uint16(37005), + 127: uint16(37187), + 128: uint16(37185), + 129: uint16(37303), + 130: uint16(37301), + 131: uint16(37298), + 132: uint16(37299), + 133: uint16(37899), + 134: uint16(37907), + 135: uint16(37883), + 136: uint16(37920), + 137: uint16(37903), + 138: uint16(37908), + 139: uint16(37886), + 140: uint16(37909), + 141: uint16(37904), + 142: uint16(37928), + 143: uint16(37913), + 144: uint16(37901), + 145: uint16(37877), + 146: uint16(37888), + 147: uint16(37879), + 148: uint16(37895), + 149: uint16(37902), + 150: uint16(37910), + 151: uint16(37906), + 152: uint16(37882), + 153: uint16(37897), + 154: uint16(37880), + 155: uint16(37898), + 156: uint16(37887), + }, + 84: { + 0: uint16(37884), + 1: uint16(37900), + 2: uint16(37878), + 3: uint16(37905), + 4: uint16(37894), + 5: uint16(38366), + 6: uint16(38368), + 7: uint16(38367), + 8: uint16(38702), + 9: uint16(38703), + 10: uint16(38841), + 11: uint16(38843), + 12: uint16(38909), + 13: uint16(38910), + 14: uint16(39008), + 15: uint16(39010), + 16: uint16(39011), + 17: uint16(39007), + 18: uint16(39105), + 19: uint16(39106), + 20: uint16(39248), + 21: uint16(39246), + 22: uint16(39257), + 23: uint16(39244), + 24: uint16(39243), + 25: uint16(39251), + 26: uint16(39474), + 27: uint16(39476), + 28: uint16(39473), + 29: uint16(39468), + 30: uint16(39466), + 31: uint16(39478), + 32: uint16(39465), + 33: uint16(39470), + 34: uint16(39480), + 35: uint16(39469), + 36: uint16(39623), + 37: uint16(39626), + 38: uint16(39622), + 39: uint16(39696), + 40: uint16(39698), + 41: uint16(39697), + 42: uint16(39947), + 43: uint16(39944), + 44: uint16(39927), + 45: uint16(39941), + 46: uint16(39954), + 47: uint16(39928), + 48: uint16(40000), + 49: uint16(39943), + 50: uint16(39950), + 51: uint16(39942), + 52: uint16(39959), + 53: uint16(39956), + 54: uint16(39945), + 55: uint16(40351), + 56: uint16(40345), + 57: uint16(40356), + 58: uint16(40349), + 59: uint16(40338), + 60: uint16(40344), + 61: uint16(40336), + 62: uint16(40347), + 63: uint16(40352), + 64: uint16(40340), + 65: uint16(40348), + 66: uint16(40362), + 67: uint16(40343), + 68: uint16(40353), + 69: uint16(40346), + 70: uint16(40354), + 71: uint16(40360), + 72: uint16(40350), + 73: uint16(40355), + 74: uint16(40383), + 75: uint16(40361), + 76: uint16(40342), + 77: uint16(40358), + 78: uint16(40359), + 79: uint16(40601), + 80: uint16(40603), + 81: uint16(40602), + 82: uint16(40677), + 83: uint16(40676), + 84: uint16(40679), + 85: uint16(40678), + 86: uint16(40752), + 87: uint16(40750), + 88: uint16(40795), + 89: uint16(40800), + 90: uint16(40798), + 91: uint16(40797), + 92: uint16(40793), + 93: uint16(40849), + 94: uint16(20794), + 95: uint16(20793), + 96: uint16(21144), + 97: uint16(21143), + 98: uint16(22211), + 99: uint16(22205), + 100: uint16(22206), + 101: uint16(23368), + 102: uint16(23367), + 103: uint16(24011), + 104: uint16(24015), + 105: uint16(24305), + 106: uint16(25085), + 107: uint16(25883), + 108: uint16(27394), + 109: uint16(27388), + 110: uint16(27395), + 111: uint16(27384), + 112: uint16(27392), + 113: uint16(28739), + 114: uint16(28740), + 115: uint16(28746), + 116: uint16(28744), + 117: uint16(28745), + 118: uint16(28741), + 119: uint16(28742), + 120: uint16(29213), + 121: uint16(29210), + 122: uint16(29209), + 123: uint16(29566), + 124: uint16(29975), + 125: uint16(30314), + 126: uint16(30672), + 127: uint16(31021), + 128: uint16(31025), + 129: uint16(31023), + 130: uint16(31828), + 131: uint16(31827), + 132: uint16(31986), + 133: uint16(32394), + 134: uint16(32391), + 135: uint16(32392), + 136: uint16(32395), + 137: uint16(32390), + 138: uint16(32397), + 139: uint16(32589), + 140: uint16(32699), + 141: uint16(32816), + 142: uint16(33245), + 143: uint16(34328), + 144: uint16(34346), + 145: uint16(34342), + 146: uint16(34335), + 147: uint16(34339), + 148: uint16(34332), + 149: uint16(34329), + 150: uint16(34343), + 151: uint16(34350), + 152: uint16(34337), + 153: uint16(34336), + 154: uint16(34345), + 155: uint16(34334), + 156: uint16(34341), + }, + 85: { + 0: uint16(34857), + 1: uint16(34845), + 2: uint16(34843), + 3: uint16(34848), + 4: uint16(34852), + 5: uint16(34844), + 6: uint16(34859), + 7: uint16(34890), + 8: uint16(35181), + 9: uint16(35177), + 10: uint16(35182), + 11: uint16(35179), + 12: uint16(35322), + 13: uint16(35705), + 14: uint16(35704), + 15: uint16(35653), + 16: uint16(35706), + 17: uint16(35707), + 18: uint16(36112), + 19: uint16(36116), + 20: uint16(36271), + 21: uint16(36494), + 22: uint16(36492), + 23: uint16(36702), + 24: uint16(36699), + 25: uint16(36701), + 26: uint16(37190), + 27: uint16(37188), + 28: uint16(37189), + 29: uint16(37305), + 30: uint16(37951), + 31: uint16(37947), + 32: uint16(37942), + 33: uint16(37929), + 34: uint16(37949), + 35: uint16(37948), + 36: uint16(37936), + 37: uint16(37945), + 38: uint16(37930), + 39: uint16(37943), + 40: uint16(37932), + 41: uint16(37952), + 42: uint16(37937), + 43: uint16(38373), + 44: uint16(38372), + 45: uint16(38371), + 46: uint16(38709), + 47: uint16(38714), + 48: uint16(38847), + 49: uint16(38881), + 50: uint16(39012), + 51: uint16(39113), + 52: uint16(39110), + 53: uint16(39104), + 54: uint16(39256), + 55: uint16(39254), + 56: uint16(39481), + 57: uint16(39485), + 58: uint16(39494), + 59: uint16(39492), + 60: uint16(39490), + 61: uint16(39489), + 62: uint16(39482), + 63: uint16(39487), + 64: uint16(39629), + 65: uint16(39701), + 66: uint16(39703), + 67: uint16(39704), + 68: uint16(39702), + 69: uint16(39738), + 70: uint16(39762), + 71: uint16(39979), + 72: uint16(39965), + 73: uint16(39964), + 74: uint16(39980), + 75: uint16(39971), + 76: uint16(39976), + 77: uint16(39977), + 78: uint16(39972), + 79: uint16(39969), + 80: uint16(40375), + 81: uint16(40374), + 82: uint16(40380), + 83: uint16(40385), + 84: uint16(40391), + 85: uint16(40394), + 86: uint16(40399), + 87: uint16(40382), + 88: uint16(40389), + 89: uint16(40387), + 90: uint16(40379), + 91: uint16(40373), + 92: uint16(40398), + 93: uint16(40377), + 94: uint16(40378), + 95: uint16(40364), + 96: uint16(40392), + 97: uint16(40369), + 98: uint16(40365), + 99: uint16(40396), + 100: uint16(40371), + 101: uint16(40397), + 102: uint16(40370), + 103: uint16(40570), + 104: uint16(40604), + 105: uint16(40683), + 106: uint16(40686), + 107: uint16(40685), + 108: uint16(40731), + 109: uint16(40728), + 110: uint16(40730), + 111: uint16(40753), + 112: uint16(40782), + 113: uint16(40805), + 114: uint16(40804), + 115: uint16(40850), + 116: uint16(20153), + 117: uint16(22214), + 118: uint16(22213), + 119: uint16(22219), + 120: uint16(22897), + 121: uint16(23371), + 122: uint16(23372), + 123: uint16(24021), + 124: uint16(24017), + 125: uint16(24306), + 126: uint16(25889), + 127: uint16(25888), + 128: uint16(25894), + 129: uint16(25890), + 130: uint16(27403), + 131: uint16(27400), + 132: uint16(27401), + 133: uint16(27661), + 134: uint16(28757), + 135: uint16(28758), + 136: uint16(28759), + 137: uint16(28754), + 138: uint16(29214), + 139: uint16(29215), + 140: uint16(29353), + 141: uint16(29567), + 142: uint16(29912), + 143: uint16(29909), + 144: uint16(29913), + 145: uint16(29911), + 146: uint16(30317), + 147: uint16(30381), + 148: uint16(31029), + 149: uint16(31156), + 150: uint16(31344), + 151: uint16(31345), + 152: uint16(31831), + 153: uint16(31836), + 154: uint16(31833), + 155: uint16(31835), + 156: uint16(31834), + }, + 86: { + 0: uint16(31988), + 1: uint16(31985), + 2: uint16(32401), + 3: uint16(32591), + 4: uint16(32647), + 5: uint16(33246), + 6: uint16(33387), + 7: uint16(34356), + 8: uint16(34357), + 9: uint16(34355), + 10: uint16(34348), + 11: uint16(34354), + 12: uint16(34358), + 13: uint16(34860), + 14: uint16(34856), + 15: uint16(34854), + 16: uint16(34858), + 17: uint16(34853), + 18: uint16(35185), + 19: uint16(35263), + 20: uint16(35262), + 21: uint16(35323), + 22: uint16(35710), + 23: uint16(35716), + 24: uint16(35714), + 25: uint16(35718), + 26: uint16(35717), + 27: uint16(35711), + 28: uint16(36117), + 29: uint16(36501), + 30: uint16(36500), + 31: uint16(36506), + 32: uint16(36498), + 33: uint16(36496), + 34: uint16(36502), + 35: uint16(36503), + 36: uint16(36704), + 37: uint16(36706), + 38: uint16(37191), + 39: uint16(37964), + 40: uint16(37968), + 41: uint16(37962), + 42: uint16(37963), + 43: uint16(37967), + 44: uint16(37959), + 45: uint16(37957), + 46: uint16(37960), + 47: uint16(37961), + 48: uint16(37958), + 49: uint16(38719), + 50: uint16(38883), + 51: uint16(39018), + 52: uint16(39017), + 53: uint16(39115), + 54: uint16(39252), + 55: uint16(39259), + 56: uint16(39502), + 57: uint16(39507), + 58: uint16(39508), + 59: uint16(39500), + 60: uint16(39503), + 61: uint16(39496), + 62: uint16(39498), + 63: uint16(39497), + 64: uint16(39506), + 65: uint16(39504), + 66: uint16(39632), + 67: uint16(39705), + 68: uint16(39723), + 69: uint16(39739), + 70: uint16(39766), + 71: uint16(39765), + 72: uint16(40006), + 73: uint16(40008), + 74: uint16(39999), + 75: uint16(40004), + 76: uint16(39993), + 77: uint16(39987), + 78: uint16(40001), + 79: uint16(39996), + 80: uint16(39991), + 81: uint16(39988), + 82: uint16(39986), + 83: uint16(39997), + 84: uint16(39990), + 85: uint16(40411), + 86: uint16(40402), + 87: uint16(40414), + 88: uint16(40410), + 89: uint16(40395), + 90: uint16(40400), + 91: uint16(40412), + 92: uint16(40401), + 93: uint16(40415), + 94: uint16(40425), + 95: uint16(40409), + 96: uint16(40408), + 97: uint16(40406), + 98: uint16(40437), + 99: uint16(40405), + 100: uint16(40413), + 101: uint16(40630), + 102: uint16(40688), + 103: uint16(40757), + 104: uint16(40755), + 105: uint16(40754), + 106: uint16(40770), + 107: uint16(40811), + 108: uint16(40853), + 109: uint16(40866), + 110: uint16(20797), + 111: uint16(21145), + 112: uint16(22760), + 113: uint16(22759), + 114: uint16(22898), + 115: uint16(23373), + 116: uint16(24024), + 117: uint16(34863), + 118: uint16(24399), + 119: uint16(25089), + 120: uint16(25091), + 121: uint16(25092), + 122: uint16(25897), + 123: uint16(25893), + 124: uint16(26006), + 125: uint16(26347), + 126: uint16(27409), + 127: uint16(27410), + 128: uint16(27407), + 129: uint16(27594), + 130: uint16(28763), + 131: uint16(28762), + 132: uint16(29218), + 133: uint16(29570), + 134: uint16(29569), + 135: uint16(29571), + 136: uint16(30320), + 137: uint16(30676), + 138: uint16(31847), + 139: uint16(31846), + 140: uint16(32405), + 141: uint16(33388), + 142: uint16(34362), + 143: uint16(34368), + 144: uint16(34361), + 145: uint16(34364), + 146: uint16(34353), + 147: uint16(34363), + 148: uint16(34366), + 149: uint16(34864), + 150: uint16(34866), + 151: uint16(34862), + 152: uint16(34867), + 153: uint16(35190), + 154: uint16(35188), + 155: uint16(35187), + 156: uint16(35326), + }, + 87: { + 0: uint16(35724), + 1: uint16(35726), + 2: uint16(35723), + 3: uint16(35720), + 4: uint16(35909), + 5: uint16(36121), + 6: uint16(36504), + 7: uint16(36708), + 8: uint16(36707), + 9: uint16(37308), + 10: uint16(37986), + 11: uint16(37973), + 12: uint16(37981), + 13: uint16(37975), + 14: uint16(37982), + 15: uint16(38852), + 16: uint16(38853), + 17: uint16(38912), + 18: uint16(39510), + 19: uint16(39513), + 20: uint16(39710), + 21: uint16(39711), + 22: uint16(39712), + 23: uint16(40018), + 24: uint16(40024), + 25: uint16(40016), + 26: uint16(40010), + 27: uint16(40013), + 28: uint16(40011), + 29: uint16(40021), + 30: uint16(40025), + 31: uint16(40012), + 32: uint16(40014), + 33: uint16(40443), + 34: uint16(40439), + 35: uint16(40431), + 36: uint16(40419), + 37: uint16(40427), + 38: uint16(40440), + 39: uint16(40420), + 40: uint16(40438), + 41: uint16(40417), + 42: uint16(40430), + 43: uint16(40422), + 44: uint16(40434), + 45: uint16(40432), + 46: uint16(40418), + 47: uint16(40428), + 48: uint16(40436), + 49: uint16(40435), + 50: uint16(40424), + 51: uint16(40429), + 52: uint16(40642), + 53: uint16(40656), + 54: uint16(40690), + 55: uint16(40691), + 56: uint16(40710), + 57: uint16(40732), + 58: uint16(40760), + 59: uint16(40759), + 60: uint16(40758), + 61: uint16(40771), + 62: uint16(40783), + 63: uint16(40817), + 64: uint16(40816), + 65: uint16(40814), + 66: uint16(40815), + 67: uint16(22227), + 68: uint16(22221), + 69: uint16(23374), + 70: uint16(23661), + 71: uint16(25901), + 72: uint16(26349), + 73: uint16(26350), + 74: uint16(27411), + 75: uint16(28767), + 76: uint16(28769), + 77: uint16(28765), + 78: uint16(28768), + 79: uint16(29219), + 80: uint16(29915), + 81: uint16(29925), + 82: uint16(30677), + 83: uint16(31032), + 84: uint16(31159), + 85: uint16(31158), + 86: uint16(31850), + 87: uint16(32407), + 88: uint16(32649), + 89: uint16(33389), + 90: uint16(34371), + 91: uint16(34872), + 92: uint16(34871), + 93: uint16(34869), + 94: uint16(34891), + 95: uint16(35732), + 96: uint16(35733), + 97: uint16(36510), + 98: uint16(36511), + 99: uint16(36512), + 100: uint16(36509), + 101: uint16(37310), + 102: uint16(37309), + 103: uint16(37314), + 104: uint16(37995), + 105: uint16(37992), + 106: uint16(37993), + 107: uint16(38629), + 108: uint16(38726), + 109: uint16(38723), + 110: uint16(38727), + 111: uint16(38855), + 112: uint16(38885), + 113: uint16(39518), + 114: uint16(39637), + 115: uint16(39769), + 116: uint16(40035), + 117: uint16(40039), + 118: uint16(40038), + 119: uint16(40034), + 120: uint16(40030), + 121: uint16(40032), + 122: uint16(40450), + 123: uint16(40446), + 124: uint16(40455), + 125: uint16(40451), + 126: uint16(40454), + 127: uint16(40453), + 128: uint16(40448), + 129: uint16(40449), + 130: uint16(40457), + 131: uint16(40447), + 132: uint16(40445), + 133: uint16(40452), + 134: uint16(40608), + 135: uint16(40734), + 136: uint16(40774), + 137: uint16(40820), + 138: uint16(40821), + 139: uint16(40822), + 140: uint16(22228), + 141: uint16(25902), + 142: uint16(26040), + 143: uint16(27416), + 144: uint16(27417), + 145: uint16(27415), + 146: uint16(27418), + 147: uint16(28770), + 148: uint16(29222), + 149: uint16(29354), + 150: uint16(30680), + 151: uint16(30681), + 152: uint16(31033), + 153: uint16(31849), + 154: uint16(31851), + 155: uint16(31990), + 156: uint16(32410), + }, + 88: { + 0: uint16(32408), + 1: uint16(32411), + 2: uint16(32409), + 3: uint16(33248), + 4: uint16(33249), + 5: uint16(34374), + 6: uint16(34375), + 7: uint16(34376), + 8: uint16(35193), + 9: uint16(35194), + 10: uint16(35196), + 11: uint16(35195), + 12: uint16(35327), + 13: uint16(35736), + 14: uint16(35737), + 15: uint16(36517), + 16: uint16(36516), + 17: uint16(36515), + 18: uint16(37998), + 19: uint16(37997), + 20: uint16(37999), + 21: uint16(38001), + 22: uint16(38003), + 23: uint16(38729), + 24: uint16(39026), + 25: uint16(39263), + 26: uint16(40040), + 27: uint16(40046), + 28: uint16(40045), + 29: uint16(40459), + 30: uint16(40461), + 31: uint16(40464), + 32: uint16(40463), + 33: uint16(40466), + 34: uint16(40465), + 35: uint16(40609), + 36: uint16(40693), + 37: uint16(40713), + 38: uint16(40775), + 39: uint16(40824), + 40: uint16(40827), + 41: uint16(40826), + 42: uint16(40825), + 43: uint16(22302), + 44: uint16(28774), + 45: uint16(31855), + 46: uint16(34876), + 47: uint16(36274), + 48: uint16(36518), + 49: uint16(37315), + 50: uint16(38004), + 51: uint16(38008), + 52: uint16(38006), + 53: uint16(38005), + 54: uint16(39520), + 55: uint16(40052), + 56: uint16(40051), + 57: uint16(40049), + 58: uint16(40053), + 59: uint16(40468), + 60: uint16(40467), + 61: uint16(40694), + 62: uint16(40714), + 63: uint16(40868), + 64: uint16(28776), + 65: uint16(28773), + 66: uint16(31991), + 67: uint16(34410), + 68: uint16(34878), + 69: uint16(34877), + 70: uint16(34879), + 71: uint16(35742), + 72: uint16(35996), + 73: uint16(36521), + 74: uint16(36553), + 75: uint16(38731), + 76: uint16(39027), + 77: uint16(39028), + 78: uint16(39116), + 79: uint16(39265), + 80: uint16(39339), + 81: uint16(39524), + 82: uint16(39526), + 83: uint16(39527), + 84: uint16(39716), + 85: uint16(40469), + 86: uint16(40471), + 87: uint16(40776), + 88: uint16(25095), + 89: uint16(27422), + 90: uint16(29223), + 91: uint16(34380), + 92: uint16(36520), + 93: uint16(38018), + 94: uint16(38016), + 95: uint16(38017), + 96: uint16(39529), + 97: uint16(39528), + 98: uint16(39726), + 99: uint16(40473), + 100: uint16(29225), + 101: uint16(34379), + 102: uint16(35743), + 103: uint16(38019), + 104: uint16(40057), + 105: uint16(40631), + 106: uint16(30325), + 107: uint16(39531), + 108: uint16(40058), + 109: uint16(40477), + 110: uint16(28777), + 111: uint16(28778), + 112: uint16(40612), + 113: uint16(40830), + 114: uint16(40777), + 115: uint16(40856), + 116: uint16(30849), + 117: uint16(37561), + 118: uint16(35023), + 119: uint16(22715), + 120: uint16(24658), + 121: uint16(31911), + 122: uint16(23290), + 123: uint16(9556), + 124: uint16(9574), + 125: uint16(9559), + 126: uint16(9568), + 127: uint16(9580), + 128: uint16(9571), + 129: uint16(9562), + 130: uint16(9577), + 131: uint16(9565), + 132: uint16(9554), + 133: uint16(9572), + 134: uint16(9557), + 135: uint16(9566), + 136: uint16(9578), + 137: uint16(9569), + 138: uint16(9560), + 139: uint16(9575), + 140: uint16(9563), + 141: uint16(9555), + 142: uint16(9573), + 143: uint16(9558), + 144: uint16(9567), + 145: uint16(9579), + 146: uint16(9570), + 147: uint16(9561), + 148: uint16(9576), + 149: uint16(9564), + 150: uint16(9553), + 151: uint16(9552), + 152: uint16(9581), + 153: uint16(9582), + 154: uint16(9584), + 155: uint16(9583), + 156: uint16(9619), + }, +} + +var _hkscs = [5172]uint16{ + 0: uint16(17392), + 1: uint16(19506), + 2: uint16(17923), + 3: uint16(17830), + 4: uint16(17784), + 5: uint16(29287), + 6: uint16(19831), + 7: uint16(17843), + 8: uint16(31921), + 9: uint16(19682), + 10: uint16(31941), + 11: uint16(15253), + 12: uint16(18230), + 13: uint16(18244), + 14: uint16(19527), + 15: uint16(19520), + 16: uint16(17087), + 17: uint16(13847), + 18: uint16(29522), + 19: uint16(28299), + 20: uint16(28882), + 21: uint16(19543), + 22: uint16(41809), + 23: uint16(18255), + 24: uint16(17882), + 25: uint16(19589), + 26: uint16(31852), + 27: uint16(19719), + 28: uint16(19108), + 29: uint16(18081), + 30: uint16(27427), + 31: uint16(29221), + 32: uint16(23124), + 33: uint16(6755), + 34: uint16(15878), + 35: uint16(16225), + 36: uint16(26189), + 37: uint16(22267), + 39: uint16(32149), + 40: uint16(22813), + 41: uint16(35769), + 42: uint16(15860), + 43: uint16(38708), + 44: uint16(31727), + 45: uint16(23515), + 46: uint16(7518), + 47: uint16(23204), + 48: uint16(13861), + 49: uint16(40624), + 50: uint16(23249), + 51: uint16(23479), + 52: uint16(23804), + 53: uint16(26478), + 54: uint16(34195), + 55: uint16(39237), + 56: uint16(29793), + 57: uint16(29853), + 58: uint16(14453), + 59: uint16(7507), + 60: uint16(13982), + 61: uint16(24609), + 62: uint16(16108), + 63: uint16(22750), + 64: uint16(15093), + 65: uint16(31484), + 66: uint16(40855), + 67: uint16(16737), + 68: uint16(35085), + 69: uint16(12778), + 70: uint16(2698), + 71: uint16(12894), + 72: uint16(17162), + 73: uint16(33924), + 74: uint16(40854), + 75: uint16(37935), + 76: uint16(18736), + 77: uint16(34323), + 78: uint16(22678), + 79: uint16(38730), + 80: uint16(37400), + 81: uint16(31184), + 82: uint16(31282), + 83: uint16(26208), + 84: uint16(27177), + 85: uint16(34973), + 86: uint16(29772), + 87: uint16(31685), + 88: uint16(26498), + 89: uint16(31276), + 90: uint16(21071), + 91: uint16(36934), + 92: uint16(13542), + 93: uint16(29636), + 94: uint16(23993), + 95: uint16(29894), + 96: uint16(40903), + 97: uint16(22451), + 98: uint16(18735), + 99: uint16(21580), + 100: uint16(16689), + 101: uint16(13966), + 102: uint16(22552), + 103: uint16(31346), + 104: uint16(31589), + 105: uint16(35727), + 106: uint16(18094), + 107: uint16(28296), + 108: uint16(16769), + 109: uint16(23961), + 110: uint16(31662), + 111: uint16(9404), + 112: uint16(40904), + 113: uint16(9409), + 114: uint16(9417), + 115: uint16(9420), + 116: uint16(40905), + 117: uint16(34052), + 118: uint16(13755), + 119: uint16(16564), + 120: uint16(40906), + 121: uint16(17633), + 122: uint16(44543), + 123: uint16(25281), + 124: uint16(28782), + 125: uint16(40907), + 157: uint16(12736), + 158: uint16(12737), + 159: uint16(12738), + 160: uint16(12739), + 161: uint16(12740), + 162: uint16(268), + 163: uint16(12741), + 164: uint16(209), + 165: uint16(205), + 166: uint16(12742), + 167: uint16(12743), + 168: uint16(203), + 169: uint16(8168), + 170: uint16(12744), + 171: uint16(202), + 172: uint16(12745), + 173: uint16(12746), + 174: uint16(12747), + 175: uint16(12748), + 176: uint16(270), + 177: uint16(12749), + 178: uint16(12750), + 179: uint16(256), + 180: uint16(193), + 181: uint16(461), + 182: uint16(192), + 183: uint16(274), + 184: uint16(201), + 185: uint16(282), + 186: uint16(200), + 187: uint16(332), + 188: uint16(211), + 189: uint16(465), + 190: uint16(210), + 191: uint16(56320), + 192: uint16(7870), + 193: uint16(56324), + 194: uint16(7872), + 195: uint16(202), + 196: uint16(257), + 197: uint16(225), + 198: uint16(462), + 199: uint16(224), + 200: uint16(593), + 201: uint16(275), + 202: uint16(233), + 203: uint16(283), + 204: uint16(232), + 205: uint16(299), + 206: uint16(237), + 207: uint16(464), + 208: uint16(236), + 209: uint16(333), + 210: uint16(243), + 211: uint16(466), + 212: uint16(242), + 213: uint16(363), + 214: uint16(250), + 215: uint16(468), + 216: uint16(249), + 217: uint16(470), + 218: uint16(472), + 219: uint16(474), + 220: uint16(476), + 221: uint16(252), + 222: uint16(56328), + 223: uint16(7871), + 224: uint16(56332), + 225: uint16(7873), + 226: uint16(234), + 227: uint16(609), + 228: uint16(9178), + 229: uint16(9179), + 314: uint16(41897), + 315: uint16(4421), + 317: uint16(25866), + 320: uint16(20029), + 321: uint16(28381), + 322: uint16(40270), + 323: uint16(37343), + 326: uint16(30517), + 327: uint16(25745), + 328: uint16(20250), + 329: uint16(20264), + 330: uint16(20392), + 331: uint16(20822), + 332: uint16(20852), + 333: uint16(20892), + 334: uint16(20964), + 335: uint16(21153), + 336: uint16(21160), + 337: uint16(21307), + 338: uint16(21326), + 339: uint16(21457), + 340: uint16(21464), + 341: uint16(22242), + 342: uint16(22768), + 343: uint16(22788), + 344: uint16(22791), + 345: uint16(22834), + 346: uint16(22836), + 347: uint16(23398), + 348: uint16(23454), + 349: uint16(23455), + 350: uint16(23706), + 351: uint16(24198), + 352: uint16(24635), + 353: uint16(25993), + 354: uint16(26622), + 355: uint16(26628), + 356: uint16(26725), + 357: uint16(27982), + 358: uint16(28860), + 359: uint16(30005), + 360: uint16(32420), + 361: uint16(32428), + 362: uint16(32442), + 363: uint16(32455), + 364: uint16(32463), + 365: uint16(32479), + 366: uint16(32518), + 367: uint16(32567), + 368: uint16(33402), + 369: uint16(33487), + 370: uint16(33647), + 371: uint16(35270), + 372: uint16(35774), + 373: uint16(35810), + 374: uint16(36710), + 375: uint16(36711), + 376: uint16(36718), + 377: uint16(29713), + 378: uint16(31996), + 379: uint16(32205), + 380: uint16(26950), + 381: uint16(31433), + 382: uint16(21031), + 387: uint16(37260), + 388: uint16(30904), + 389: uint16(37214), + 390: uint16(32956), + 392: uint16(36107), + 393: uint16(33014), + 394: uint16(2535), + 397: uint16(32927), + 398: uint16(40647), + 399: uint16(19661), + 400: uint16(40393), + 401: uint16(40460), + 402: uint16(19518), + 403: uint16(40438), + 404: uint16(28686), + 405: uint16(40458), + 406: uint16(41267), + 407: uint16(13761), + 409: uint16(28314), + 410: uint16(33342), + 411: uint16(29977), + 413: uint16(18705), + 414: uint16(39532), + 415: uint16(39567), + 416: uint16(40857), + 417: uint16(31111), + 418: uint16(33900), + 419: uint16(7626), + 420: uint16(1488), + 421: uint16(10982), + 422: uint16(20004), + 423: uint16(20097), + 424: uint16(20096), + 425: uint16(20103), + 426: uint16(20159), + 427: uint16(20203), + 428: uint16(20279), + 429: uint16(13388), + 430: uint16(20413), + 431: uint16(15944), + 432: uint16(20483), + 433: uint16(20616), + 434: uint16(13437), + 435: uint16(13459), + 436: uint16(13477), + 437: uint16(20870), + 438: uint16(22789), + 439: uint16(20955), + 440: uint16(20988), + 441: uint16(20997), + 442: uint16(20105), + 443: uint16(21113), + 444: uint16(21136), + 445: uint16(21287), + 446: uint16(13767), + 447: uint16(21417), + 448: uint16(13649), + 449: uint16(21424), + 450: uint16(13651), + 451: uint16(21442), + 452: uint16(21539), + 453: uint16(13677), + 454: uint16(13682), + 455: uint16(13953), + 456: uint16(21651), + 457: uint16(21667), + 458: uint16(21684), + 459: uint16(21689), + 460: uint16(21712), + 461: uint16(21743), + 462: uint16(21784), + 463: uint16(21795), + 464: uint16(21800), + 465: uint16(13720), + 466: uint16(21823), + 467: uint16(13733), + 468: uint16(13759), + 469: uint16(21975), + 470: uint16(13765), + 471: uint16(32132), + 472: uint16(21797), + 474: uint16(3138), + 475: uint16(3349), + 476: uint16(20779), + 477: uint16(21904), + 478: uint16(11462), + 479: uint16(14828), + 480: uint16(833), + 481: uint16(36422), + 482: uint16(19896), + 483: uint16(38117), + 484: uint16(16467), + 485: uint16(32958), + 486: uint16(30586), + 487: uint16(11320), + 488: uint16(14900), + 489: uint16(18389), + 490: uint16(33117), + 491: uint16(27122), + 492: uint16(19946), + 493: uint16(25821), + 494: uint16(3452), + 495: uint16(4020), + 496: uint16(3285), + 497: uint16(4340), + 498: uint16(25741), + 499: uint16(36478), + 500: uint16(3734), + 501: uint16(3083), + 502: uint16(3940), + 503: uint16(11433), + 504: uint16(33366), + 505: uint16(17619), + 507: uint16(3398), + 508: uint16(39501), + 509: uint16(33001), + 510: uint16(18420), + 511: uint16(20135), + 512: uint16(11458), + 513: uint16(39602), + 514: uint16(14951), + 515: uint16(38388), + 516: uint16(16365), + 517: uint16(13574), + 518: uint16(21191), + 519: uint16(38868), + 520: uint16(30920), + 521: uint16(11588), + 522: uint16(40302), + 523: uint16(38933), + 525: uint16(17369), + 526: uint16(24741), + 527: uint16(25780), + 528: uint16(21731), + 529: uint16(11596), + 530: uint16(11210), + 531: uint16(4215), + 532: uint16(14843), + 533: uint16(4207), + 534: uint16(26330), + 535: uint16(26390), + 536: uint16(31136), + 537: uint16(25834), + 538: uint16(20562), + 539: uint16(3139), + 540: uint16(36456), + 541: uint16(8609), + 542: uint16(35660), + 543: uint16(1841), + 545: uint16(18443), + 546: uint16(425), + 547: uint16(16378), + 548: uint16(22643), + 549: uint16(11661), + 551: uint16(17864), + 552: uint16(1276), + 553: uint16(24727), + 554: uint16(3916), + 555: uint16(3478), + 556: uint16(21881), + 557: uint16(16571), + 558: uint16(17338), + 560: uint16(19124), + 561: uint16(10854), + 562: uint16(4253), + 563: uint16(33194), + 564: uint16(39157), + 565: uint16(3484), + 566: uint16(25465), + 567: uint16(14846), + 568: uint16(10101), + 569: uint16(36288), + 570: uint16(22177), + 571: uint16(25724), + 572: uint16(15939), + 574: uint16(42497), + 575: uint16(3593), + 576: uint16(10959), + 577: uint16(11465), + 579: uint16(4296), + 580: uint16(14786), + 581: uint16(14738), + 582: uint16(14854), + 583: uint16(33435), + 584: uint16(13688), + 585: uint16(24137), + 586: uint16(8391), + 587: uint16(22098), + 588: uint16(3889), + 589: uint16(11442), + 590: uint16(38688), + 591: uint16(13500), + 592: uint16(27709), + 593: uint16(20027), + 596: uint16(30068), + 597: uint16(11915), + 598: uint16(8712), + 599: uint16(42587), + 600: uint16(36045), + 601: uint16(3706), + 602: uint16(3124), + 603: uint16(26652), + 604: uint16(32659), + 605: uint16(4303), + 606: uint16(10243), + 607: uint16(10553), + 608: uint16(13819), + 609: uint16(20963), + 610: uint16(3724), + 611: uint16(3981), + 612: uint16(3754), + 613: uint16(16275), + 614: uint16(3888), + 615: uint16(3399), + 616: uint16(4431), + 617: uint16(3660), + 619: uint16(3755), + 620: uint16(2985), + 621: uint16(3400), + 622: uint16(4288), + 623: uint16(4413), + 624: uint16(16377), + 625: uint16(9878), + 626: uint16(25650), + 627: uint16(4013), + 628: uint16(13300), + 629: uint16(30265), + 630: uint16(11214), + 631: uint16(3454), + 632: uint16(3455), + 633: uint16(11345), + 634: uint16(11349), + 635: uint16(14872), + 636: uint16(3736), + 637: uint16(4295), + 638: uint16(3886), + 639: uint16(42546), + 640: uint16(27472), + 641: uint16(36050), + 642: uint16(36249), + 643: uint16(36042), + 644: uint16(38314), + 645: uint16(21708), + 646: uint16(33476), + 647: uint16(21945), + 649: uint16(40643), + 650: uint16(39974), + 651: uint16(39606), + 652: uint16(30558), + 653: uint16(11758), + 654: uint16(28992), + 655: uint16(33133), + 656: uint16(33004), + 657: uint16(23580), + 658: uint16(25970), + 659: uint16(33076), + 660: uint16(14231), + 661: uint16(21343), + 662: uint16(32957), + 663: uint16(37302), + 664: uint16(3834), + 665: uint16(3599), + 666: uint16(3703), + 667: uint16(3835), + 668: uint16(13789), + 669: uint16(19947), + 670: uint16(13833), + 671: uint16(3286), + 672: uint16(22191), + 673: uint16(10165), + 674: uint16(4297), + 675: uint16(3600), + 676: uint16(3704), + 677: uint16(4216), + 678: uint16(4424), + 679: uint16(33287), + 680: uint16(5205), + 681: uint16(3705), + 682: uint16(20048), + 683: uint16(11684), + 684: uint16(23124), + 685: uint16(4125), + 686: uint16(4126), + 687: uint16(4341), + 688: uint16(4342), + 689: uint16(22428), + 690: uint16(3601), + 691: uint16(30356), + 692: uint16(33485), + 693: uint16(4021), + 694: uint16(3707), + 695: uint16(20862), + 696: uint16(14083), + 697: uint16(4022), + 698: uint16(4480), + 699: uint16(21208), + 700: uint16(41661), + 701: uint16(18906), + 702: uint16(6202), + 703: uint16(16759), + 704: uint16(33404), + 705: uint16(22681), + 706: uint16(21096), + 707: uint16(13850), + 708: uint16(22333), + 709: uint16(31666), + 710: uint16(23400), + 711: uint16(18432), + 712: uint16(19244), + 713: uint16(40743), + 714: uint16(18919), + 715: uint16(39967), + 716: uint16(39821), + 717: uint16(23412), + 718: uint16(12605), + 719: uint16(22011), + 720: uint16(13810), + 721: uint16(22153), + 722: uint16(20008), + 723: uint16(22786), + 724: uint16(7105), + 725: uint16(63608), + 726: uint16(38737), + 727: uint16(134), + 728: uint16(20059), + 729: uint16(20155), + 730: uint16(13630), + 731: uint16(23587), + 732: uint16(24401), + 733: uint16(24516), + 734: uint16(14586), + 735: uint16(25164), + 736: uint16(25909), + 737: uint16(27514), + 738: uint16(27701), + 739: uint16(27706), + 740: uint16(28780), + 741: uint16(29227), + 742: uint16(20012), + 743: uint16(29357), + 744: uint16(18665), + 745: uint16(32594), + 746: uint16(31035), + 747: uint16(31993), + 748: uint16(32595), + 749: uint16(25194), + 750: uint16(13505), + 752: uint16(25419), + 753: uint16(32770), + 754: uint16(32896), + 755: uint16(26130), + 756: uint16(26961), + 757: uint16(21341), + 758: uint16(34916), + 759: uint16(35265), + 760: uint16(30898), + 761: uint16(35744), + 762: uint16(36125), + 763: uint16(38021), + 764: uint16(38264), + 765: uint16(38271), + 766: uint16(38376), + 767: uint16(36367), + 768: uint16(38886), + 769: uint16(39029), + 770: uint16(39118), + 771: uint16(39134), + 772: uint16(39267), + 773: uint16(38928), + 774: uint16(40060), + 775: uint16(40479), + 776: uint16(40644), + 777: uint16(27503), + 778: uint16(63751), + 779: uint16(20023), + 780: uint16(135), + 781: uint16(38429), + 782: uint16(25143), + 783: uint16(38050), + 785: uint16(20539), + 786: uint16(28158), + 787: uint16(40051), + 788: uint16(40870), + 789: uint16(15817), + 790: uint16(34959), + 791: uint16(16718), + 792: uint16(28791), + 793: uint16(23797), + 794: uint16(19232), + 795: uint16(20941), + 796: uint16(13657), + 797: uint16(23856), + 798: uint16(24866), + 799: uint16(35378), + 800: uint16(36775), + 801: uint16(37366), + 802: uint16(29073), + 803: uint16(26393), + 804: uint16(29626), + 805: uint16(12929), + 806: uint16(41223), + 807: uint16(15499), + 808: uint16(6528), + 809: uint16(19216), + 810: uint16(30948), + 811: uint16(29698), + 812: uint16(20910), + 813: uint16(34575), + 814: uint16(16393), + 815: uint16(27235), + 816: uint16(41658), + 817: uint16(16931), + 818: uint16(34319), + 819: uint16(2671), + 820: uint16(31274), + 821: uint16(39239), + 822: uint16(35562), + 823: uint16(38741), + 824: uint16(28749), + 825: uint16(21284), + 826: uint16(8318), + 827: uint16(37876), + 828: uint16(30425), + 829: uint16(35299), + 830: uint16(40871), + 831: uint16(30685), + 832: uint16(20131), + 833: uint16(20464), + 834: uint16(20668), + 835: uint16(20015), + 836: uint16(20247), + 837: uint16(40872), + 838: uint16(21556), + 839: uint16(32139), + 840: uint16(22674), + 841: uint16(22736), + 842: uint16(7606), + 843: uint16(24210), + 844: uint16(24217), + 845: uint16(24514), + 846: uint16(10002), + 847: uint16(25995), + 848: uint16(13305), + 849: uint16(26905), + 850: uint16(27203), + 851: uint16(15459), + 852: uint16(27903), + 854: uint16(29184), + 855: uint16(17669), + 856: uint16(29580), + 857: uint16(16091), + 858: uint16(18963), + 859: uint16(23317), + 860: uint16(29881), + 861: uint16(35715), + 862: uint16(23716), + 863: uint16(22165), + 864: uint16(31379), + 865: uint16(31724), + 866: uint16(31939), + 867: uint16(32364), + 868: uint16(33528), + 869: uint16(34199), + 870: uint16(40873), + 871: uint16(34960), + 872: uint16(40874), + 873: uint16(36537), + 874: uint16(40875), + 875: uint16(36815), + 876: uint16(34143), + 877: uint16(39392), + 878: uint16(37409), + 879: uint16(40876), + 880: uint16(36281), + 881: uint16(5183), + 882: uint16(16497), + 883: uint16(17058), + 884: uint16(23066), + 888: uint16(39016), + 889: uint16(26475), + 890: uint16(17014), + 891: uint16(22333), + 893: uint16(34262), + 894: uint16(18811), + 895: uint16(33471), + 896: uint16(28941), + 897: uint16(19585), + 898: uint16(28020), + 899: uint16(23931), + 900: uint16(27413), + 901: uint16(28606), + 902: uint16(40877), + 903: uint16(40878), + 904: uint16(23446), + 905: uint16(40879), + 906: uint16(26343), + 907: uint16(32347), + 908: uint16(28247), + 909: uint16(31178), + 910: uint16(15752), + 911: uint16(17603), + 912: uint16(12886), + 913: uint16(10134), + 914: uint16(17306), + 915: uint16(17718), + 917: uint16(23765), + 918: uint16(15130), + 919: uint16(35577), + 920: uint16(23672), + 921: uint16(15634), + 922: uint16(13649), + 923: uint16(23928), + 924: uint16(40882), + 925: uint16(29015), + 926: uint16(17752), + 927: uint16(16620), + 928: uint16(7715), + 929: uint16(19575), + 930: uint16(14712), + 931: uint16(13386), + 932: uint16(420), + 933: uint16(27713), + 934: uint16(35532), + 935: uint16(20404), + 936: uint16(569), + 937: uint16(22975), + 938: uint16(33132), + 939: uint16(38998), + 940: uint16(39162), + 941: uint16(24379), + 942: uint16(2975), + 944: uint16(8641), + 945: uint16(35181), + 946: uint16(16642), + 947: uint16(18107), + 948: uint16(36985), + 949: uint16(16135), + 950: uint16(40883), + 951: uint16(41397), + 952: uint16(16632), + 953: uint16(14294), + 954: uint16(18167), + 955: uint16(27718), + 956: uint16(16764), + 957: uint16(34482), + 958: uint16(29695), + 959: uint16(17773), + 960: uint16(14548), + 961: uint16(21658), + 962: uint16(17761), + 963: uint16(17691), + 964: uint16(19849), + 965: uint16(19579), + 966: uint16(19830), + 967: uint16(17898), + 968: uint16(16328), + 969: uint16(19215), + 970: uint16(13921), + 971: uint16(17630), + 972: uint16(17597), + 973: uint16(16877), + 974: uint16(23870), + 975: uint16(23880), + 976: uint16(23894), + 977: uint16(15868), + 978: uint16(14351), + 979: uint16(23972), + 980: uint16(23993), + 981: uint16(14368), + 982: uint16(14392), + 983: uint16(24130), + 984: uint16(24253), + 985: uint16(24357), + 986: uint16(24451), + 987: uint16(14600), + 988: uint16(14612), + 989: uint16(14655), + 990: uint16(14669), + 991: uint16(24791), + 992: uint16(24893), + 993: uint16(23781), + 994: uint16(14729), + 995: uint16(25015), + 996: uint16(25017), + 997: uint16(25039), + 998: uint16(14776), + 999: uint16(25132), + 1000: uint16(25232), + 1001: uint16(25317), + 1002: uint16(25368), + 1003: uint16(14840), + 1004: uint16(22193), + 1005: uint16(14851), + 1006: uint16(25570), + 1007: uint16(25595), + 1008: uint16(25607), + 1009: uint16(25690), + 1010: uint16(14923), + 1011: uint16(25792), + 1012: uint16(23829), + 1013: uint16(22049), + 1014: uint16(40863), + 1015: uint16(14999), + 1016: uint16(25990), + 1017: uint16(15037), + 1018: uint16(26111), + 1019: uint16(26195), + 1020: uint16(15090), + 1021: uint16(26258), + 1022: uint16(15138), + 1023: uint16(26390), + 1024: uint16(15170), + 1025: uint16(26532), + 1026: uint16(26624), + 1027: uint16(15192), + 1028: uint16(26698), + 1029: uint16(26756), + 1030: uint16(15218), + 1031: uint16(15217), + 1032: uint16(15227), + 1033: uint16(26889), + 1034: uint16(26947), + 1035: uint16(29276), + 1036: uint16(26980), + 1037: uint16(27039), + 1038: uint16(27013), + 1039: uint16(15292), + 1040: uint16(27094), + 1041: uint16(15325), + 1042: uint16(27237), + 1043: uint16(27252), + 1044: uint16(27249), + 1045: uint16(27266), + 1046: uint16(15340), + 1047: uint16(27289), + 1048: uint16(15346), + 1049: uint16(27307), + 1050: uint16(27317), + 1051: uint16(27348), + 1052: uint16(27382), + 1053: uint16(27521), + 1054: uint16(27585), + 1055: uint16(27626), + 1056: uint16(27765), + 1057: uint16(27818), + 1058: uint16(15563), + 1059: uint16(27906), + 1060: uint16(27910), + 1061: uint16(27942), + 1062: uint16(28033), + 1063: uint16(15599), + 1064: uint16(28068), + 1065: uint16(28081), + 1066: uint16(28181), + 1067: uint16(28184), + 1068: uint16(28201), + 1069: uint16(28294), + 1070: uint16(35264), + 1071: uint16(28347), + 1072: uint16(28386), + 1073: uint16(28378), + 1074: uint16(40831), + 1075: uint16(28392), + 1076: uint16(28393), + 1077: uint16(28452), + 1078: uint16(28468), + 1079: uint16(15686), + 1080: uint16(16193), + 1081: uint16(28545), + 1082: uint16(28606), + 1083: uint16(15722), + 1084: uint16(15733), + 1085: uint16(29111), + 1086: uint16(23705), + 1087: uint16(15754), + 1088: uint16(28716), + 1089: uint16(15761), + 1090: uint16(28752), + 1091: uint16(28756), + 1092: uint16(28783), + 1093: uint16(28799), + 1094: uint16(28809), + 1095: uint16(805), + 1096: uint16(17345), + 1097: uint16(13809), + 1098: uint16(3800), + 1099: uint16(16087), + 1100: uint16(22462), + 1101: uint16(28371), + 1102: uint16(28990), + 1103: uint16(22496), + 1104: uint16(13902), + 1105: uint16(27042), + 1106: uint16(35817), + 1107: uint16(23412), + 1108: uint16(31305), + 1109: uint16(22753), + 1110: uint16(38105), + 1111: uint16(31333), + 1112: uint16(31357), + 1113: uint16(22956), + 1114: uint16(31419), + 1115: uint16(31408), + 1116: uint16(31426), + 1117: uint16(31427), + 1118: uint16(29137), + 1119: uint16(25741), + 1120: uint16(16842), + 1121: uint16(31450), + 1122: uint16(31453), + 1123: uint16(31466), + 1124: uint16(16879), + 1125: uint16(21682), + 1126: uint16(23553), + 1127: uint16(31499), + 1128: uint16(31573), + 1129: uint16(31529), + 1130: uint16(21262), + 1131: uint16(23806), + 1132: uint16(31650), + 1133: uint16(31599), + 1134: uint16(33692), + 1135: uint16(23476), + 1136: uint16(27775), + 1137: uint16(31696), + 1138: uint16(33825), + 1139: uint16(31634), + 1141: uint16(23840), + 1142: uint16(15789), + 1143: uint16(23653), + 1144: uint16(33938), + 1145: uint16(31738), + 1147: uint16(31797), + 1148: uint16(23745), + 1149: uint16(31812), + 1150: uint16(31875), + 1151: uint16(18562), + 1152: uint16(31910), + 1153: uint16(26237), + 1154: uint16(17784), + 1155: uint16(31945), + 1156: uint16(31943), + 1157: uint16(31974), + 1158: uint16(31860), + 1159: uint16(31987), + 1160: uint16(31989), + 1162: uint16(32359), + 1163: uint16(17693), + 1164: uint16(28228), + 1165: uint16(32093), + 1166: uint16(28374), + 1167: uint16(29837), + 1168: uint16(32137), + 1169: uint16(32171), + 1170: uint16(28981), + 1171: uint16(32179), + 1173: uint16(16471), + 1174: uint16(24617), + 1175: uint16(32228), + 1176: uint16(15635), + 1177: uint16(32245), + 1178: uint16(6137), + 1179: uint16(32229), + 1180: uint16(33645), + 1182: uint16(24865), + 1183: uint16(24922), + 1184: uint16(32366), + 1185: uint16(32402), + 1186: uint16(17195), + 1187: uint16(37996), + 1188: uint16(32295), + 1189: uint16(32576), + 1190: uint16(32577), + 1191: uint16(32583), + 1192: uint16(31030), + 1193: uint16(25296), + 1194: uint16(39393), + 1195: uint16(32663), + 1196: uint16(25425), + 1197: uint16(32675), + 1198: uint16(5729), + 1199: uint16(104), + 1200: uint16(17756), + 1201: uint16(14182), + 1202: uint16(17667), + 1203: uint16(33594), + 1204: uint16(32762), + 1205: uint16(25737), + 1207: uint16(32776), + 1208: uint16(32797), + 1210: uint16(32815), + 1211: uint16(41095), + 1212: uint16(27843), + 1213: uint16(32827), + 1214: uint16(32828), + 1215: uint16(32865), + 1216: uint16(10004), + 1217: uint16(18825), + 1218: uint16(26150), + 1219: uint16(15843), + 1220: uint16(26344), + 1221: uint16(26405), + 1222: uint16(32935), + 1223: uint16(35400), + 1224: uint16(33031), + 1225: uint16(33050), + 1226: uint16(22704), + 1227: uint16(9974), + 1228: uint16(27775), + 1229: uint16(25752), + 1230: uint16(20408), + 1231: uint16(25831), + 1232: uint16(5258), + 1233: uint16(33304), + 1234: uint16(6238), + 1235: uint16(27219), + 1236: uint16(19045), + 1237: uint16(19093), + 1238: uint16(17530), + 1239: uint16(33321), + 1240: uint16(2829), + 1241: uint16(27218), + 1242: uint16(15742), + 1243: uint16(20473), + 1244: uint16(5373), + 1245: uint16(34018), + 1246: uint16(33634), + 1247: uint16(27402), + 1248: uint16(18855), + 1249: uint16(13616), + 1250: uint16(6003), + 1251: uint16(15864), + 1252: uint16(33450), + 1253: uint16(26907), + 1254: uint16(63892), + 1255: uint16(16859), + 1256: uint16(34123), + 1257: uint16(33488), + 1258: uint16(33562), + 1259: uint16(3606), + 1260: uint16(6068), + 1261: uint16(14017), + 1262: uint16(12669), + 1263: uint16(13658), + 1264: uint16(33403), + 1265: uint16(33506), + 1266: uint16(33560), + 1267: uint16(16011), + 1268: uint16(28067), + 1269: uint16(27397), + 1270: uint16(27543), + 1271: uint16(13774), + 1272: uint16(15807), + 1273: uint16(33565), + 1274: uint16(21996), + 1275: uint16(33669), + 1276: uint16(17675), + 1277: uint16(28069), + 1278: uint16(33708), + 1280: uint16(33747), + 1281: uint16(13438), + 1282: uint16(28372), + 1283: uint16(27223), + 1284: uint16(34138), + 1285: uint16(13462), + 1286: uint16(28226), + 1287: uint16(12015), + 1288: uint16(33880), + 1289: uint16(23524), + 1290: uint16(33905), + 1291: uint16(15827), + 1292: uint16(17636), + 1293: uint16(27303), + 1294: uint16(33866), + 1295: uint16(15541), + 1296: uint16(31064), + 1298: uint16(27542), + 1299: uint16(28279), + 1300: uint16(28227), + 1301: uint16(34014), + 1303: uint16(33681), + 1304: uint16(17568), + 1305: uint16(33939), + 1306: uint16(34020), + 1307: uint16(23697), + 1308: uint16(16960), + 1309: uint16(23744), + 1310: uint16(17731), + 1311: uint16(34100), + 1312: uint16(23282), + 1313: uint16(28313), + 1314: uint16(17703), + 1315: uint16(34163), + 1316: uint16(17686), + 1317: uint16(26559), + 1318: uint16(34326), + 1319: uint16(34341), + 1320: uint16(34363), + 1321: uint16(34241), + 1322: uint16(28808), + 1323: uint16(34306), + 1324: uint16(5506), + 1325: uint16(28877), + 1326: uint16(63922), + 1327: uint16(17770), + 1328: uint16(34344), + 1329: uint16(13896), + 1330: uint16(6306), + 1331: uint16(21495), + 1332: uint16(29594), + 1333: uint16(34430), + 1334: uint16(34673), + 1335: uint16(41208), + 1336: uint16(34798), + 1337: uint16(11303), + 1338: uint16(34737), + 1339: uint16(34778), + 1340: uint16(34831), + 1341: uint16(22113), + 1342: uint16(34412), + 1343: uint16(26710), + 1344: uint16(17935), + 1345: uint16(34885), + 1346: uint16(34886), + 1347: uint16(30176), + 1348: uint16(15801), + 1349: uint16(30180), + 1350: uint16(34910), + 1351: uint16(34972), + 1352: uint16(18011), + 1353: uint16(34996), + 1354: uint16(34997), + 1355: uint16(25537), + 1356: uint16(35013), + 1357: uint16(30583), + 1358: uint16(30479), + 1359: uint16(35207), + 1360: uint16(35210), + 1363: uint16(35239), + 1364: uint16(35260), + 1365: uint16(35365), + 1366: uint16(35303), + 1367: uint16(31012), + 1368: uint16(31421), + 1369: uint16(35484), + 1370: uint16(30611), + 1371: uint16(37374), + 1372: uint16(35472), + 1373: uint16(31321), + 1374: uint16(31465), + 1375: uint16(31546), + 1376: uint16(16271), + 1377: uint16(18195), + 1378: uint16(31544), + 1379: uint16(29052), + 1380: uint16(35596), + 1381: uint16(35615), + 1382: uint16(21552), + 1383: uint16(21861), + 1384: uint16(35647), + 1385: uint16(35660), + 1386: uint16(35661), + 1387: uint16(35497), + 1388: uint16(19066), + 1389: uint16(35728), + 1390: uint16(35739), + 1391: uint16(35503), + 1392: uint16(5855), + 1393: uint16(17941), + 1394: uint16(34895), + 1395: uint16(35995), + 1396: uint16(32084), + 1397: uint16(32143), + 1398: uint16(63956), + 1399: uint16(14117), + 1400: uint16(32083), + 1401: uint16(36054), + 1402: uint16(32152), + 1403: uint16(32189), + 1404: uint16(36114), + 1405: uint16(36099), + 1406: uint16(6416), + 1407: uint16(36059), + 1408: uint16(28764), + 1409: uint16(36113), + 1410: uint16(19657), + 1411: uint16(16080), + 1413: uint16(36265), + 1414: uint16(32770), + 1415: uint16(4116), + 1416: uint16(18826), + 1417: uint16(15228), + 1418: uint16(33212), + 1419: uint16(28940), + 1420: uint16(31463), + 1421: uint16(36525), + 1422: uint16(36534), + 1423: uint16(36547), + 1424: uint16(37588), + 1425: uint16(36633), + 1426: uint16(36653), + 1427: uint16(33637), + 1428: uint16(33810), + 1429: uint16(36773), + 1430: uint16(37635), + 1431: uint16(41631), + 1432: uint16(2640), + 1433: uint16(36787), + 1434: uint16(18730), + 1435: uint16(35294), + 1436: uint16(34109), + 1437: uint16(15803), + 1438: uint16(24312), + 1439: uint16(12898), + 1440: uint16(36857), + 1441: uint16(40980), + 1442: uint16(34492), + 1443: uint16(34049), + 1444: uint16(8997), + 1445: uint16(14720), + 1446: uint16(28375), + 1447: uint16(36919), + 1448: uint16(34108), + 1449: uint16(31422), + 1450: uint16(36961), + 1451: uint16(34156), + 1452: uint16(34315), + 1453: uint16(37032), + 1454: uint16(34579), + 1455: uint16(37060), + 1456: uint16(34534), + 1457: uint16(37038), + 1459: uint16(37223), + 1460: uint16(15088), + 1461: uint16(37289), + 1462: uint16(37316), + 1463: uint16(31916), + 1464: uint16(35123), + 1465: uint16(7817), + 1466: uint16(37390), + 1467: uint16(27807), + 1468: uint16(37441), + 1469: uint16(37474), + 1470: uint16(21945), + 1472: uint16(35526), + 1473: uint16(15515), + 1474: uint16(35596), + 1475: uint16(21979), + 1476: uint16(3377), + 1477: uint16(37676), + 1478: uint16(37739), + 1479: uint16(35553), + 1480: uint16(35819), + 1481: uint16(28815), + 1482: uint16(23235), + 1483: uint16(35554), + 1484: uint16(35557), + 1485: uint16(18789), + 1486: uint16(37444), + 1487: uint16(35820), + 1488: uint16(35897), + 1489: uint16(35839), + 1490: uint16(37747), + 1491: uint16(37979), + 1492: uint16(36540), + 1493: uint16(38277), + 1494: uint16(38310), + 1495: uint16(37926), + 1496: uint16(38304), + 1497: uint16(28662), + 1498: uint16(17081), + 1499: uint16(9850), + 1500: uint16(34520), + 1501: uint16(4732), + 1502: uint16(15918), + 1503: uint16(18911), + 1504: uint16(27676), + 1505: uint16(38523), + 1506: uint16(38550), + 1507: uint16(16748), + 1508: uint16(38563), + 1509: uint16(28373), + 1510: uint16(25050), + 1511: uint16(38582), + 1512: uint16(30965), + 1513: uint16(35552), + 1514: uint16(38589), + 1515: uint16(21452), + 1516: uint16(18849), + 1517: uint16(27832), + 1518: uint16(628), + 1519: uint16(25616), + 1520: uint16(37039), + 1521: uint16(37093), + 1522: uint16(19153), + 1523: uint16(6421), + 1524: uint16(13066), + 1525: uint16(38705), + 1526: uint16(34370), + 1527: uint16(38710), + 1528: uint16(18959), + 1529: uint16(17725), + 1530: uint16(17797), + 1531: uint16(19177), + 1532: uint16(28789), + 1533: uint16(23361), + 1534: uint16(38683), + 1536: uint16(37333), + 1537: uint16(38743), + 1538: uint16(23370), + 1539: uint16(37355), + 1540: uint16(38751), + 1541: uint16(37925), + 1542: uint16(20688), + 1543: uint16(12471), + 1544: uint16(12476), + 1545: uint16(38793), + 1546: uint16(38815), + 1547: uint16(38833), + 1548: uint16(38846), + 1549: uint16(38848), + 1550: uint16(38866), + 1551: uint16(38880), + 1552: uint16(21612), + 1553: uint16(38894), + 1554: uint16(29724), + 1555: uint16(37939), + 1557: uint16(38901), + 1558: uint16(37917), + 1559: uint16(31098), + 1560: uint16(19153), + 1561: uint16(38964), + 1562: uint16(38963), + 1563: uint16(38987), + 1564: uint16(39014), + 1565: uint16(15118), + 1566: uint16(29045), + 1567: uint16(15697), + 1568: uint16(1584), + 1569: uint16(16732), + 1570: uint16(22278), + 1571: uint16(39114), + 1572: uint16(39095), + 1573: uint16(39112), + 1574: uint16(39111), + 1575: uint16(19199), + 1576: uint16(27943), + 1577: uint16(5843), + 1578: uint16(21936), + 1579: uint16(39137), + 1580: uint16(39142), + 1581: uint16(39148), + 1582: uint16(37752), + 1583: uint16(39225), + 1584: uint16(18985), + 1585: uint16(19314), + 1586: uint16(38999), + 1587: uint16(39173), + 1588: uint16(39413), + 1589: uint16(39436), + 1590: uint16(39483), + 1591: uint16(39440), + 1592: uint16(39512), + 1593: uint16(22309), + 1594: uint16(14020), + 1595: uint16(37041), + 1596: uint16(39893), + 1597: uint16(39648), + 1598: uint16(39650), + 1599: uint16(39685), + 1600: uint16(39668), + 1601: uint16(19470), + 1602: uint16(39700), + 1603: uint16(39725), + 1604: uint16(34304), + 1605: uint16(20532), + 1606: uint16(39732), + 1607: uint16(27048), + 1608: uint16(14531), + 1609: uint16(12413), + 1610: uint16(39760), + 1611: uint16(39744), + 1612: uint16(40254), + 1613: uint16(23109), + 1614: uint16(6243), + 1615: uint16(39822), + 1616: uint16(16971), + 1617: uint16(39938), + 1618: uint16(39935), + 1619: uint16(39948), + 1620: uint16(40552), + 1621: uint16(40404), + 1622: uint16(40887), + 1623: uint16(41362), + 1624: uint16(41387), + 1625: uint16(41185), + 1626: uint16(41251), + 1627: uint16(41439), + 1628: uint16(40318), + 1629: uint16(40323), + 1630: uint16(41268), + 1631: uint16(40462), + 1632: uint16(26760), + 1633: uint16(40388), + 1634: uint16(8539), + 1635: uint16(41363), + 1636: uint16(41504), + 1637: uint16(6459), + 1638: uint16(41523), + 1639: uint16(40249), + 1640: uint16(41145), + 1641: uint16(41652), + 1642: uint16(40592), + 1643: uint16(40597), + 1644: uint16(40606), + 1645: uint16(40610), + 1646: uint16(19764), + 1647: uint16(40618), + 1648: uint16(40623), + 1649: uint16(17252), + 1650: uint16(40641), + 1651: uint16(15200), + 1652: uint16(14821), + 1653: uint16(15645), + 1654: uint16(20274), + 1655: uint16(14270), + 1656: uint16(35883), + 1657: uint16(40706), + 1658: uint16(40712), + 1659: uint16(19350), + 1660: uint16(37924), + 1661: uint16(28066), + 1662: uint16(40727), + 1664: uint16(40761), + 1665: uint16(22175), + 1666: uint16(22154), + 1667: uint16(40773), + 1668: uint16(39352), + 1669: uint16(37003), + 1670: uint16(38898), + 1671: uint16(33919), + 1672: uint16(40802), + 1673: uint16(40809), + 1674: uint16(31452), + 1675: uint16(40846), + 1676: uint16(29206), + 1677: uint16(19390), + 1678: uint16(18805), + 1679: uint16(18875), + 1680: uint16(29047), + 1681: uint16(18936), + 1682: uint16(17224), + 1683: uint16(19025), + 1684: uint16(29598), + 1685: uint16(35802), + 1686: uint16(6394), + 1687: uint16(31135), + 1688: uint16(35198), + 1689: uint16(36406), + 1690: uint16(37737), + 1691: uint16(37875), + 1692: uint16(35396), + 1693: uint16(37612), + 1694: uint16(37761), + 1695: uint16(37835), + 1696: uint16(35180), + 1697: uint16(17593), + 1698: uint16(29207), + 1699: uint16(16107), + 1700: uint16(30578), + 1701: uint16(31299), + 1702: uint16(28880), + 1703: uint16(17523), + 1704: uint16(17400), + 1705: uint16(29054), + 1706: uint16(6127), + 1707: uint16(28835), + 1708: uint16(6334), + 1709: uint16(13721), + 1710: uint16(16071), + 1711: uint16(6277), + 1712: uint16(21551), + 1713: uint16(6136), + 1714: uint16(14114), + 1715: uint16(5883), + 1716: uint16(6201), + 1717: uint16(14049), + 1718: uint16(6004), + 1719: uint16(6353), + 1720: uint16(24395), + 1721: uint16(14115), + 1722: uint16(5824), + 1723: uint16(22363), + 1724: uint16(18981), + 1725: uint16(5118), + 1726: uint16(4776), + 1727: uint16(5062), + 1728: uint16(5302), + 1729: uint16(34051), + 1730: uint16(13990), + 1732: uint16(33877), + 1733: uint16(18836), + 1734: uint16(29029), + 1735: uint16(15921), + 1736: uint16(21852), + 1737: uint16(16123), + 1738: uint16(28754), + 1739: uint16(17652), + 1740: uint16(14062), + 1741: uint16(39325), + 1742: uint16(28454), + 1743: uint16(26617), + 1744: uint16(14131), + 1745: uint16(15381), + 1746: uint16(15847), + 1747: uint16(22636), + 1748: uint16(6434), + 1749: uint16(26640), + 1750: uint16(16471), + 1751: uint16(14143), + 1752: uint16(16609), + 1753: uint16(16523), + 1754: uint16(16655), + 1755: uint16(27681), + 1756: uint16(21707), + 1757: uint16(22174), + 1758: uint16(26289), + 1759: uint16(22162), + 1760: uint16(4063), + 1761: uint16(2984), + 1762: uint16(3597), + 1763: uint16(37830), + 1764: uint16(35603), + 1765: uint16(37788), + 1766: uint16(20216), + 1767: uint16(20779), + 1768: uint16(14361), + 1769: uint16(17462), + 1770: uint16(20156), + 1771: uint16(1125), + 1772: uint16(895), + 1773: uint16(20299), + 1774: uint16(20362), + 1775: uint16(22097), + 1776: uint16(23144), + 1777: uint16(427), + 1778: uint16(971), + 1779: uint16(14745), + 1780: uint16(778), + 1781: uint16(1044), + 1782: uint16(13365), + 1783: uint16(20265), + 1784: uint16(704), + 1785: uint16(36531), + 1786: uint16(629), + 1787: uint16(35546), + 1788: uint16(524), + 1789: uint16(20120), + 1790: uint16(20685), + 1791: uint16(20749), + 1792: uint16(20386), + 1793: uint16(20227), + 1794: uint16(18958), + 1795: uint16(16010), + 1796: uint16(20290), + 1797: uint16(20526), + 1798: uint16(20588), + 1799: uint16(20609), + 1800: uint16(20428), + 1801: uint16(20453), + 1802: uint16(20568), + 1803: uint16(20732), + 1808: uint16(28278), + 1809: uint16(13717), + 1810: uint16(15929), + 1811: uint16(16063), + 1812: uint16(28018), + 1813: uint16(6276), + 1814: uint16(16009), + 1815: uint16(20904), + 1816: uint16(20931), + 1817: uint16(1504), + 1818: uint16(17629), + 1819: uint16(1187), + 1820: uint16(1170), + 1821: uint16(1169), + 1822: uint16(36218), + 1823: uint16(35484), + 1824: uint16(1806), + 1825: uint16(21081), + 1826: uint16(21156), + 1827: uint16(2163), + 1828: uint16(21217), + 1830: uint16(18042), + 1831: uint16(29068), + 1832: uint16(17292), + 1833: uint16(3104), + 1834: uint16(18860), + 1835: uint16(4324), + 1836: uint16(27089), + 1837: uint16(3613), + 1839: uint16(16094), + 1840: uint16(29849), + 1841: uint16(29716), + 1842: uint16(29782), + 1843: uint16(29592), + 1844: uint16(19342), + 1845: uint16(19132), + 1846: uint16(16525), + 1847: uint16(21456), + 1848: uint16(13700), + 1849: uint16(29199), + 1850: uint16(16585), + 1851: uint16(21940), + 1852: uint16(837), + 1853: uint16(21709), + 1854: uint16(3014), + 1855: uint16(22301), + 1856: uint16(37469), + 1857: uint16(38644), + 1858: uint16(37734), + 1859: uint16(22493), + 1860: uint16(22413), + 1861: uint16(22399), + 1862: uint16(13886), + 1863: uint16(22731), + 1864: uint16(23193), + 1865: uint16(35398), + 1866: uint16(5882), + 1867: uint16(5999), + 1868: uint16(5904), + 1869: uint16(23084), + 1870: uint16(22968), + 1871: uint16(37519), + 1872: uint16(23166), + 1873: uint16(23247), + 1874: uint16(23058), + 1875: uint16(22854), + 1876: uint16(6643), + 1877: uint16(6241), + 1878: uint16(17045), + 1879: uint16(14069), + 1880: uint16(27909), + 1881: uint16(29763), + 1882: uint16(23073), + 1883: uint16(24195), + 1884: uint16(23169), + 1885: uint16(35799), + 1886: uint16(1043), + 1887: uint16(37856), + 1888: uint16(29836), + 1889: uint16(4867), + 1890: uint16(28933), + 1891: uint16(18802), + 1892: uint16(37896), + 1893: uint16(35323), + 1894: uint16(37821), + 1895: uint16(14240), + 1896: uint16(23582), + 1897: uint16(23710), + 1898: uint16(24158), + 1899: uint16(24136), + 1900: uint16(6550), + 1901: uint16(6524), + 1902: uint16(15086), + 1903: uint16(24269), + 1904: uint16(23375), + 1905: uint16(6403), + 1906: uint16(6404), + 1907: uint16(14081), + 1908: uint16(6304), + 1909: uint16(14045), + 1910: uint16(5886), + 1911: uint16(14035), + 1912: uint16(33066), + 1913: uint16(35399), + 1914: uint16(7610), + 1915: uint16(13426), + 1916: uint16(35240), + 1917: uint16(24332), + 1918: uint16(24334), + 1919: uint16(6439), + 1920: uint16(6059), + 1921: uint16(23147), + 1922: uint16(5947), + 1923: uint16(23364), + 1924: uint16(34324), + 1925: uint16(30205), + 1926: uint16(34912), + 1927: uint16(24702), + 1928: uint16(10336), + 1929: uint16(9771), + 1930: uint16(24539), + 1931: uint16(16056), + 1932: uint16(9647), + 1933: uint16(9662), + 1934: uint16(37000), + 1935: uint16(28531), + 1936: uint16(25024), + 1937: uint16(62), + 1938: uint16(70), + 1939: uint16(9755), + 1940: uint16(24985), + 1941: uint16(24984), + 1942: uint16(24693), + 1943: uint16(11419), + 1944: uint16(11527), + 1945: uint16(18132), + 1946: uint16(37197), + 1947: uint16(25713), + 1948: uint16(18021), + 1949: uint16(11114), + 1950: uint16(14889), + 1951: uint16(11042), + 1952: uint16(13392), + 1953: uint16(39146), + 1954: uint16(11896), + 1955: uint16(25399), + 1956: uint16(42075), + 1957: uint16(25782), + 1958: uint16(25393), + 1959: uint16(25553), + 1960: uint16(18915), + 1961: uint16(11623), + 1962: uint16(25252), + 1963: uint16(11425), + 1964: uint16(25659), + 1965: uint16(25963), + 1966: uint16(26994), + 1967: uint16(15348), + 1968: uint16(12430), + 1969: uint16(12973), + 1970: uint16(18825), + 1971: uint16(12971), + 1972: uint16(21773), + 1973: uint16(13024), + 1974: uint16(6361), + 1975: uint16(37951), + 1976: uint16(26318), + 1977: uint16(12937), + 1978: uint16(12723), + 1979: uint16(15072), + 1980: uint16(16784), + 1981: uint16(21892), + 1982: uint16(35618), + 1983: uint16(21903), + 1984: uint16(5884), + 1985: uint16(21851), + 1986: uint16(21541), + 1987: uint16(30958), + 1988: uint16(12547), + 1989: uint16(6186), + 1990: uint16(12852), + 1991: uint16(13412), + 1992: uint16(12815), + 1993: uint16(12674), + 1994: uint16(17097), + 1995: uint16(26254), + 1996: uint16(27940), + 1997: uint16(26219), + 1998: uint16(19347), + 1999: uint16(26160), + 2000: uint16(30832), + 2001: uint16(7659), + 2002: uint16(26211), + 2003: uint16(13010), + 2004: uint16(13025), + 2005: uint16(26142), + 2006: uint16(22642), + 2007: uint16(14545), + 2008: uint16(14394), + 2009: uint16(14268), + 2010: uint16(15257), + 2011: uint16(14242), + 2012: uint16(13310), + 2013: uint16(29904), + 2014: uint16(15254), + 2015: uint16(26511), + 2016: uint16(17962), + 2017: uint16(26806), + 2018: uint16(26654), + 2019: uint16(15300), + 2020: uint16(27326), + 2021: uint16(14435), + 2022: uint16(14293), + 2023: uint16(17543), + 2024: uint16(27187), + 2025: uint16(27218), + 2026: uint16(27337), + 2027: uint16(27397), + 2028: uint16(6418), + 2029: uint16(25873), + 2030: uint16(26776), + 2031: uint16(27212), + 2032: uint16(15319), + 2033: uint16(27258), + 2034: uint16(27479), + 2035: uint16(16320), + 2036: uint16(15514), + 2037: uint16(37792), + 2038: uint16(37618), + 2039: uint16(35818), + 2040: uint16(35531), + 2041: uint16(37513), + 2042: uint16(32798), + 2043: uint16(35292), + 2044: uint16(37991), + 2045: uint16(28069), + 2046: uint16(28427), + 2047: uint16(18924), + 2049: uint16(16255), + 2050: uint16(15759), + 2051: uint16(28164), + 2052: uint16(16444), + 2053: uint16(23101), + 2054: uint16(28170), + 2055: uint16(22599), + 2056: uint16(27940), + 2057: uint16(30786), + 2058: uint16(28987), + 2059: uint16(17178), + 2060: uint16(17014), + 2061: uint16(28913), + 2062: uint16(29264), + 2063: uint16(29319), + 2064: uint16(29332), + 2065: uint16(18319), + 2066: uint16(18213), + 2067: uint16(20857), + 2068: uint16(19108), + 2069: uint16(1515), + 2070: uint16(29818), + 2071: uint16(16120), + 2072: uint16(13919), + 2073: uint16(19018), + 2074: uint16(18711), + 2075: uint16(24545), + 2076: uint16(16134), + 2077: uint16(16049), + 2078: uint16(19167), + 2079: uint16(35875), + 2080: uint16(16181), + 2081: uint16(24743), + 2082: uint16(16115), + 2083: uint16(29900), + 2084: uint16(29756), + 2085: uint16(37767), + 2086: uint16(29751), + 2087: uint16(17567), + 2088: uint16(28138), + 2089: uint16(17745), + 2090: uint16(30083), + 2091: uint16(16227), + 2092: uint16(19673), + 2093: uint16(19718), + 2094: uint16(16216), + 2095: uint16(30037), + 2096: uint16(30323), + 2097: uint16(42438), + 2098: uint16(15129), + 2099: uint16(29800), + 2100: uint16(35532), + 2101: uint16(18859), + 2102: uint16(18830), + 2103: uint16(15099), + 2104: uint16(15821), + 2105: uint16(19022), + 2106: uint16(16127), + 2107: uint16(18885), + 2108: uint16(18675), + 2109: uint16(37370), + 2110: uint16(22322), + 2111: uint16(37698), + 2112: uint16(35555), + 2113: uint16(6244), + 2114: uint16(20703), + 2115: uint16(21025), + 2116: uint16(20967), + 2117: uint16(30584), + 2118: uint16(12850), + 2119: uint16(30478), + 2120: uint16(30479), + 2121: uint16(30587), + 2122: uint16(18071), + 2123: uint16(14209), + 2124: uint16(14942), + 2125: uint16(18672), + 2126: uint16(29752), + 2127: uint16(29851), + 2128: uint16(16063), + 2129: uint16(19130), + 2130: uint16(19143), + 2131: uint16(16584), + 2132: uint16(19094), + 2133: uint16(25006), + 2134: uint16(37639), + 2135: uint16(21889), + 2136: uint16(30750), + 2137: uint16(30861), + 2138: uint16(30856), + 2139: uint16(30930), + 2140: uint16(29648), + 2141: uint16(31065), + 2142: uint16(30529), + 2143: uint16(22243), + 2144: uint16(16654), + 2146: uint16(33942), + 2147: uint16(31141), + 2148: uint16(27181), + 2149: uint16(16122), + 2150: uint16(31290), + 2151: uint16(31220), + 2152: uint16(16750), + 2153: uint16(5862), + 2154: uint16(16690), + 2155: uint16(37429), + 2156: uint16(31217), + 2157: uint16(3404), + 2158: uint16(18828), + 2159: uint16(665), + 2160: uint16(15802), + 2161: uint16(5998), + 2162: uint16(13719), + 2163: uint16(21867), + 2164: uint16(13680), + 2165: uint16(13994), + 2166: uint16(468), + 2167: uint16(3085), + 2168: uint16(31458), + 2169: uint16(23129), + 2170: uint16(9973), + 2171: uint16(23215), + 2172: uint16(23196), + 2173: uint16(23053), + 2174: uint16(603), + 2175: uint16(30960), + 2176: uint16(23082), + 2177: uint16(23494), + 2178: uint16(31486), + 2179: uint16(16889), + 2180: uint16(31837), + 2181: uint16(31853), + 2182: uint16(16913), + 2183: uint16(23475), + 2184: uint16(24252), + 2185: uint16(24230), + 2186: uint16(31949), + 2187: uint16(18937), + 2188: uint16(6064), + 2189: uint16(31886), + 2190: uint16(31868), + 2191: uint16(31918), + 2192: uint16(27314), + 2193: uint16(32220), + 2194: uint16(32263), + 2195: uint16(32211), + 2196: uint16(32590), + 2197: uint16(25185), + 2198: uint16(24924), + 2199: uint16(31560), + 2200: uint16(32151), + 2201: uint16(24194), + 2202: uint16(17002), + 2203: uint16(27509), + 2204: uint16(2326), + 2205: uint16(26582), + 2206: uint16(78), + 2207: uint16(13775), + 2208: uint16(22468), + 2209: uint16(25618), + 2210: uint16(25592), + 2211: uint16(18786), + 2212: uint16(32733), + 2213: uint16(31527), + 2214: uint16(2092), + 2215: uint16(23273), + 2216: uint16(23875), + 2217: uint16(31500), + 2218: uint16(24078), + 2219: uint16(39398), + 2220: uint16(34373), + 2221: uint16(39523), + 2222: uint16(27164), + 2223: uint16(13375), + 2224: uint16(14818), + 2225: uint16(18935), + 2226: uint16(26029), + 2227: uint16(39455), + 2228: uint16(26016), + 2229: uint16(33920), + 2230: uint16(28967), + 2231: uint16(27857), + 2232: uint16(17642), + 2233: uint16(33079), + 2234: uint16(17410), + 2235: uint16(32966), + 2236: uint16(33033), + 2237: uint16(33090), + 2238: uint16(26548), + 2239: uint16(39107), + 2240: uint16(27202), + 2241: uint16(33378), + 2242: uint16(33381), + 2243: uint16(27217), + 2244: uint16(33875), + 2245: uint16(28071), + 2246: uint16(34320), + 2247: uint16(29211), + 2248: uint16(23174), + 2249: uint16(16767), + 2250: uint16(6208), + 2251: uint16(23339), + 2252: uint16(6305), + 2253: uint16(23268), + 2254: uint16(6360), + 2255: uint16(34464), + 2256: uint16(63932), + 2257: uint16(15759), + 2258: uint16(34861), + 2259: uint16(29730), + 2260: uint16(23042), + 2261: uint16(34926), + 2262: uint16(20293), + 2263: uint16(34951), + 2264: uint16(35007), + 2265: uint16(35046), + 2266: uint16(35173), + 2267: uint16(35149), + 2268: uint16(22147), + 2269: uint16(35156), + 2270: uint16(30597), + 2271: uint16(30596), + 2272: uint16(35829), + 2273: uint16(35801), + 2274: uint16(35740), + 2275: uint16(35321), + 2276: uint16(16045), + 2277: uint16(33955), + 2278: uint16(18165), + 2279: uint16(18127), + 2280: uint16(14322), + 2281: uint16(35389), + 2282: uint16(35356), + 2283: uint16(37960), + 2284: uint16(24397), + 2285: uint16(37419), + 2286: uint16(17028), + 2287: uint16(26068), + 2288: uint16(28969), + 2289: uint16(28868), + 2290: uint16(6213), + 2291: uint16(40301), + 2292: uint16(35999), + 2293: uint16(36073), + 2294: uint16(32220), + 2295: uint16(22938), + 2296: uint16(30659), + 2297: uint16(23024), + 2298: uint16(17262), + 2299: uint16(14036), + 2300: uint16(36394), + 2301: uint16(36519), + 2302: uint16(19465), + 2303: uint16(36656), + 2304: uint16(36682), + 2305: uint16(17140), + 2306: uint16(27736), + 2307: uint16(28603), + 2308: uint16(8993), + 2309: uint16(18587), + 2310: uint16(28537), + 2311: uint16(28299), + 2312: uint16(6106), + 2313: uint16(39913), + 2314: uint16(14005), + 2315: uint16(18735), + 2316: uint16(37051), + 2318: uint16(21873), + 2319: uint16(18694), + 2320: uint16(37307), + 2321: uint16(37892), + 2322: uint16(35403), + 2323: uint16(16482), + 2324: uint16(35580), + 2325: uint16(37927), + 2326: uint16(35869), + 2327: uint16(35899), + 2328: uint16(34021), + 2329: uint16(35371), + 2330: uint16(38297), + 2331: uint16(38311), + 2332: uint16(38295), + 2333: uint16(38294), + 2334: uint16(36148), + 2335: uint16(29765), + 2336: uint16(16066), + 2337: uint16(18687), + 2338: uint16(19010), + 2339: uint16(17386), + 2340: uint16(16103), + 2341: uint16(12837), + 2342: uint16(38543), + 2343: uint16(36583), + 2344: uint16(36454), + 2345: uint16(36453), + 2346: uint16(16076), + 2347: uint16(18925), + 2348: uint16(19064), + 2349: uint16(16366), + 2350: uint16(29714), + 2351: uint16(29803), + 2352: uint16(16124), + 2353: uint16(38721), + 2354: uint16(37040), + 2355: uint16(26695), + 2356: uint16(18973), + 2357: uint16(37011), + 2358: uint16(22495), + 2360: uint16(37736), + 2361: uint16(35209), + 2362: uint16(35878), + 2363: uint16(35631), + 2364: uint16(25534), + 2365: uint16(37562), + 2366: uint16(23313), + 2367: uint16(35689), + 2368: uint16(18748), + 2369: uint16(29689), + 2370: uint16(16923), + 2371: uint16(38811), + 2372: uint16(38769), + 2373: uint16(39224), + 2374: uint16(3878), + 2375: uint16(24001), + 2376: uint16(35781), + 2377: uint16(19122), + 2378: uint16(38943), + 2379: uint16(38106), + 2380: uint16(37622), + 2381: uint16(38359), + 2382: uint16(37349), + 2383: uint16(17600), + 2384: uint16(35664), + 2385: uint16(19047), + 2386: uint16(35684), + 2387: uint16(39132), + 2388: uint16(35397), + 2389: uint16(16128), + 2390: uint16(37418), + 2391: uint16(18725), + 2392: uint16(33812), + 2393: uint16(39227), + 2394: uint16(39245), + 2395: uint16(31494), + 2396: uint16(15869), + 2397: uint16(39323), + 2398: uint16(19311), + 2399: uint16(39338), + 2400: uint16(39516), + 2401: uint16(35685), + 2402: uint16(22728), + 2403: uint16(27279), + 2404: uint16(39457), + 2405: uint16(23294), + 2406: uint16(39471), + 2407: uint16(39153), + 2408: uint16(19344), + 2409: uint16(39240), + 2410: uint16(39356), + 2411: uint16(19389), + 2412: uint16(19351), + 2413: uint16(37757), + 2414: uint16(22642), + 2415: uint16(4866), + 2416: uint16(22562), + 2417: uint16(18872), + 2418: uint16(5352), + 2419: uint16(30788), + 2420: uint16(10015), + 2421: uint16(15800), + 2422: uint16(26821), + 2423: uint16(15741), + 2424: uint16(37976), + 2425: uint16(14631), + 2426: uint16(24912), + 2427: uint16(10113), + 2428: uint16(10603), + 2429: uint16(24839), + 2430: uint16(40015), + 2431: uint16(40019), + 2432: uint16(40059), + 2433: uint16(39989), + 2434: uint16(39952), + 2435: uint16(39807), + 2436: uint16(39887), + 2437: uint16(40493), + 2438: uint16(39839), + 2439: uint16(41461), + 2440: uint16(41214), + 2441: uint16(40225), + 2442: uint16(19630), + 2443: uint16(16644), + 2444: uint16(40472), + 2445: uint16(19632), + 2446: uint16(40204), + 2447: uint16(41396), + 2448: uint16(41197), + 2449: uint16(41203), + 2450: uint16(39215), + 2451: uint16(40357), + 2452: uint16(33981), + 2453: uint16(28178), + 2454: uint16(28639), + 2455: uint16(27522), + 2456: uint16(34300), + 2457: uint16(17715), + 2458: uint16(28068), + 2459: uint16(28292), + 2460: uint16(28144), + 2461: uint16(33824), + 2462: uint16(34286), + 2463: uint16(28160), + 2464: uint16(14295), + 2465: uint16(24676), + 2466: uint16(31202), + 2467: uint16(13724), + 2468: uint16(13888), + 2469: uint16(18733), + 2470: uint16(18910), + 2471: uint16(15714), + 2472: uint16(37851), + 2473: uint16(37566), + 2474: uint16(37704), + 2475: uint16(703), + 2476: uint16(30905), + 2477: uint16(37495), + 2478: uint16(37965), + 2479: uint16(20452), + 2480: uint16(13376), + 2481: uint16(36964), + 2482: uint16(21853), + 2483: uint16(30781), + 2484: uint16(30804), + 2485: uint16(30902), + 2486: uint16(30795), + 2487: uint16(5975), + 2488: uint16(12745), + 2489: uint16(18753), + 2490: uint16(13978), + 2491: uint16(20338), + 2492: uint16(28634), + 2493: uint16(28633), + 2495: uint16(28702), + 2496: uint16(21524), + 2497: uint16(16821), + 2498: uint16(22459), + 2499: uint16(22771), + 2500: uint16(22410), + 2501: uint16(40214), + 2502: uint16(22487), + 2503: uint16(28980), + 2504: uint16(13487), + 2505: uint16(16812), + 2506: uint16(29163), + 2507: uint16(27712), + 2508: uint16(20375), + 2510: uint16(6069), + 2511: uint16(35401), + 2512: uint16(24844), + 2513: uint16(23246), + 2514: uint16(23051), + 2515: uint16(17084), + 2516: uint16(17544), + 2517: uint16(14124), + 2518: uint16(19323), + 2519: uint16(35324), + 2520: uint16(37819), + 2521: uint16(37816), + 2522: uint16(6358), + 2523: uint16(3869), + 2524: uint16(33906), + 2525: uint16(27840), + 2526: uint16(5139), + 2527: uint16(17146), + 2528: uint16(11302), + 2529: uint16(17345), + 2530: uint16(22932), + 2531: uint16(15799), + 2532: uint16(26433), + 2533: uint16(32168), + 2534: uint16(24923), + 2535: uint16(24740), + 2536: uint16(18873), + 2537: uint16(18827), + 2538: uint16(35322), + 2539: uint16(37605), + 2540: uint16(29666), + 2541: uint16(16105), + 2542: uint16(29876), + 2543: uint16(35683), + 2544: uint16(6303), + 2545: uint16(16097), + 2546: uint16(19123), + 2547: uint16(27352), + 2548: uint16(29683), + 2549: uint16(29691), + 2550: uint16(16086), + 2551: uint16(19006), + 2552: uint16(19092), + 2553: uint16(6105), + 2554: uint16(19046), + 2555: uint16(935), + 2556: uint16(5156), + 2557: uint16(18917), + 2558: uint16(29768), + 2559: uint16(18710), + 2560: uint16(28837), + 2561: uint16(18806), + 2562: uint16(37508), + 2563: uint16(29670), + 2564: uint16(37727), + 2565: uint16(1278), + 2566: uint16(37681), + 2567: uint16(35534), + 2568: uint16(35350), + 2569: uint16(37766), + 2570: uint16(35815), + 2571: uint16(21973), + 2572: uint16(18741), + 2573: uint16(35458), + 2574: uint16(29035), + 2575: uint16(18755), + 2576: uint16(3327), + 2577: uint16(22180), + 2578: uint16(1562), + 2579: uint16(3051), + 2580: uint16(3256), + 2581: uint16(21762), + 2582: uint16(31172), + 2583: uint16(6138), + 2584: uint16(32254), + 2585: uint16(5826), + 2586: uint16(19024), + 2587: uint16(6226), + 2588: uint16(17710), + 2589: uint16(37889), + 2590: uint16(14090), + 2591: uint16(35520), + 2592: uint16(18861), + 2593: uint16(22960), + 2594: uint16(6335), + 2595: uint16(6275), + 2596: uint16(29828), + 2597: uint16(23201), + 2598: uint16(14050), + 2599: uint16(15707), + 2600: uint16(14000), + 2601: uint16(37471), + 2602: uint16(23161), + 2603: uint16(35457), + 2604: uint16(6242), + 2605: uint16(37748), + 2606: uint16(15565), + 2607: uint16(2740), + 2608: uint16(19094), + 2609: uint16(14730), + 2610: uint16(20724), + 2611: uint16(15721), + 2612: uint16(15692), + 2613: uint16(5020), + 2614: uint16(29045), + 2615: uint16(17147), + 2616: uint16(33304), + 2617: uint16(28175), + 2618: uint16(37092), + 2619: uint16(17643), + 2620: uint16(27991), + 2621: uint16(32335), + 2622: uint16(28775), + 2623: uint16(27823), + 2624: uint16(15574), + 2625: uint16(16365), + 2626: uint16(15917), + 2627: uint16(28162), + 2628: uint16(28428), + 2629: uint16(15727), + 2630: uint16(1013), + 2631: uint16(30033), + 2632: uint16(14012), + 2633: uint16(13512), + 2634: uint16(18048), + 2635: uint16(16090), + 2636: uint16(18545), + 2637: uint16(22980), + 2638: uint16(37486), + 2639: uint16(18750), + 2640: uint16(36673), + 2641: uint16(35868), + 2642: uint16(27584), + 2643: uint16(22546), + 2644: uint16(22472), + 2645: uint16(14038), + 2646: uint16(5202), + 2647: uint16(28926), + 2648: uint16(17250), + 2649: uint16(19057), + 2650: uint16(12259), + 2651: uint16(4784), + 2652: uint16(9149), + 2653: uint16(26809), + 2654: uint16(26983), + 2655: uint16(5016), + 2656: uint16(13541), + 2657: uint16(31732), + 2658: uint16(14047), + 2659: uint16(35459), + 2660: uint16(14294), + 2661: uint16(13306), + 2662: uint16(19615), + 2663: uint16(27162), + 2664: uint16(13997), + 2665: uint16(27831), + 2666: uint16(33854), + 2667: uint16(17631), + 2668: uint16(17614), + 2669: uint16(27942), + 2670: uint16(27985), + 2671: uint16(27778), + 2672: uint16(28638), + 2673: uint16(28439), + 2674: uint16(28937), + 2675: uint16(33597), + 2676: uint16(5946), + 2677: uint16(33773), + 2678: uint16(27776), + 2679: uint16(28755), + 2680: uint16(6107), + 2681: uint16(22921), + 2682: uint16(23170), + 2683: uint16(6067), + 2684: uint16(23137), + 2685: uint16(23153), + 2686: uint16(6405), + 2687: uint16(16892), + 2688: uint16(14125), + 2689: uint16(23023), + 2690: uint16(5948), + 2691: uint16(14023), + 2692: uint16(29070), + 2693: uint16(37776), + 2694: uint16(26266), + 2695: uint16(17061), + 2696: uint16(23150), + 2697: uint16(23083), + 2698: uint16(17043), + 2699: uint16(27179), + 2700: uint16(16121), + 2701: uint16(30518), + 2702: uint16(17499), + 2703: uint16(17098), + 2704: uint16(28957), + 2705: uint16(16985), + 2706: uint16(35297), + 2707: uint16(20400), + 2708: uint16(27944), + 2709: uint16(23746), + 2710: uint16(17614), + 2711: uint16(32333), + 2712: uint16(17341), + 2713: uint16(27148), + 2714: uint16(16982), + 2715: uint16(4868), + 2716: uint16(28838), + 2717: uint16(28979), + 2718: uint16(17385), + 2719: uint16(15781), + 2720: uint16(27871), + 2721: uint16(63525), + 2722: uint16(19023), + 2723: uint16(32357), + 2724: uint16(23019), + 2725: uint16(23855), + 2726: uint16(15859), + 2727: uint16(24412), + 2728: uint16(19037), + 2729: uint16(6111), + 2730: uint16(32164), + 2731: uint16(33830), + 2732: uint16(21637), + 2733: uint16(15098), + 2734: uint16(13056), + 2735: uint16(532), + 2736: uint16(22398), + 2737: uint16(2261), + 2738: uint16(1561), + 2739: uint16(16357), + 2740: uint16(8094), + 2741: uint16(41654), + 2742: uint16(28675), + 2743: uint16(37211), + 2744: uint16(23920), + 2745: uint16(29583), + 2746: uint16(31955), + 2747: uint16(35417), + 2748: uint16(37920), + 2749: uint16(20424), + 2750: uint16(32743), + 2751: uint16(29389), + 2752: uint16(29456), + 2753: uint16(31476), + 2754: uint16(29496), + 2755: uint16(29497), + 2756: uint16(22262), + 2757: uint16(29505), + 2758: uint16(29512), + 2759: uint16(16041), + 2760: uint16(31512), + 2761: uint16(36972), + 2762: uint16(29173), + 2763: uint16(18674), + 2764: uint16(29665), + 2765: uint16(33270), + 2766: uint16(16074), + 2767: uint16(30476), + 2768: uint16(16081), + 2769: uint16(27810), + 2770: uint16(22269), + 2771: uint16(29721), + 2772: uint16(29726), + 2773: uint16(29727), + 2774: uint16(16098), + 2775: uint16(16112), + 2776: uint16(16116), + 2777: uint16(16122), + 2778: uint16(29907), + 2779: uint16(16142), + 2780: uint16(16211), + 2781: uint16(30018), + 2782: uint16(30061), + 2783: uint16(30066), + 2784: uint16(30093), + 2785: uint16(16252), + 2786: uint16(30152), + 2787: uint16(30172), + 2788: uint16(16320), + 2789: uint16(30285), + 2790: uint16(16343), + 2791: uint16(30324), + 2792: uint16(16348), + 2793: uint16(30330), + 2794: uint16(20316), + 2795: uint16(29064), + 2796: uint16(22051), + 2797: uint16(35200), + 2798: uint16(22633), + 2799: uint16(16413), + 2800: uint16(30531), + 2801: uint16(16441), + 2802: uint16(26465), + 2803: uint16(16453), + 2804: uint16(13787), + 2805: uint16(30616), + 2806: uint16(16490), + 2807: uint16(16495), + 2808: uint16(23646), + 2809: uint16(30654), + 2810: uint16(30667), + 2811: uint16(22770), + 2812: uint16(30744), + 2813: uint16(28857), + 2814: uint16(30748), + 2815: uint16(16552), + 2816: uint16(30777), + 2817: uint16(30791), + 2818: uint16(30801), + 2819: uint16(30822), + 2820: uint16(33864), + 2821: uint16(21813), + 2822: uint16(31027), + 2823: uint16(26627), + 2824: uint16(31026), + 2825: uint16(16643), + 2826: uint16(16649), + 2827: uint16(31121), + 2828: uint16(31129), + 2829: uint16(36795), + 2830: uint16(31238), + 2831: uint16(36796), + 2832: uint16(16743), + 2833: uint16(31377), + 2834: uint16(16818), + 2835: uint16(31420), + 2836: uint16(33401), + 2837: uint16(16836), + 2838: uint16(31439), + 2839: uint16(31451), + 2840: uint16(16847), + 2841: uint16(20001), + 2842: uint16(31586), + 2843: uint16(31596), + 2844: uint16(31611), + 2845: uint16(31762), + 2846: uint16(31771), + 2847: uint16(16992), + 2848: uint16(17018), + 2849: uint16(31867), + 2850: uint16(31900), + 2851: uint16(17036), + 2852: uint16(31928), + 2853: uint16(17044), + 2854: uint16(31981), + 2855: uint16(36755), + 2856: uint16(28864), + 2857: uint16(3279), + 2858: uint16(32207), + 2859: uint16(32212), + 2860: uint16(32208), + 2861: uint16(32253), + 2862: uint16(32686), + 2863: uint16(32692), + 2864: uint16(29343), + 2865: uint16(17303), + 2866: uint16(32800), + 2867: uint16(32805), + 2868: uint16(31545), + 2869: uint16(32814), + 2870: uint16(32817), + 2871: uint16(32852), + 2872: uint16(15820), + 2873: uint16(22452), + 2874: uint16(28832), + 2875: uint16(32951), + 2876: uint16(33001), + 2877: uint16(17389), + 2878: uint16(33036), + 2879: uint16(29482), + 2880: uint16(33038), + 2881: uint16(33042), + 2882: uint16(30048), + 2883: uint16(33044), + 2884: uint16(17409), + 2885: uint16(15161), + 2886: uint16(33110), + 2887: uint16(33113), + 2888: uint16(33114), + 2889: uint16(17427), + 2890: uint16(22586), + 2891: uint16(33148), + 2892: uint16(33156), + 2893: uint16(17445), + 2894: uint16(33171), + 2895: uint16(17453), + 2896: uint16(33189), + 2897: uint16(22511), + 2898: uint16(33217), + 2899: uint16(33252), + 2900: uint16(33364), + 2901: uint16(17551), + 2902: uint16(33446), + 2903: uint16(33398), + 2904: uint16(33482), + 2905: uint16(33496), + 2906: uint16(33535), + 2907: uint16(17584), + 2908: uint16(33623), + 2909: uint16(38505), + 2910: uint16(27018), + 2911: uint16(33797), + 2912: uint16(28917), + 2913: uint16(33892), + 2914: uint16(24803), + 2915: uint16(33928), + 2916: uint16(17668), + 2917: uint16(33982), + 2918: uint16(34017), + 2919: uint16(34040), + 2920: uint16(34064), + 2921: uint16(34104), + 2922: uint16(34130), + 2923: uint16(17723), + 2924: uint16(34159), + 2925: uint16(34160), + 2926: uint16(34272), + 2927: uint16(17783), + 2928: uint16(34418), + 2929: uint16(34450), + 2930: uint16(34482), + 2931: uint16(34543), + 2932: uint16(38469), + 2933: uint16(34699), + 2934: uint16(17926), + 2935: uint16(17943), + 2936: uint16(34990), + 2937: uint16(35071), + 2938: uint16(35108), + 2939: uint16(35143), + 2940: uint16(35217), + 2941: uint16(31079), + 2942: uint16(35369), + 2943: uint16(35384), + 2944: uint16(35476), + 2945: uint16(35508), + 2946: uint16(35921), + 2947: uint16(36052), + 2948: uint16(36082), + 2949: uint16(36124), + 2950: uint16(18328), + 2951: uint16(22623), + 2952: uint16(36291), + 2953: uint16(18413), + 2954: uint16(20206), + 2955: uint16(36410), + 2956: uint16(21976), + 2957: uint16(22356), + 2958: uint16(36465), + 2959: uint16(22005), + 2960: uint16(36528), + 2961: uint16(18487), + 2962: uint16(36558), + 2963: uint16(36578), + 2964: uint16(36580), + 2965: uint16(36589), + 2966: uint16(36594), + 2967: uint16(36791), + 2968: uint16(36801), + 2969: uint16(36810), + 2970: uint16(36812), + 2971: uint16(36915), + 2972: uint16(39364), + 2973: uint16(18605), + 2974: uint16(39136), + 2975: uint16(37395), + 2976: uint16(18718), + 2977: uint16(37416), + 2978: uint16(37464), + 2979: uint16(37483), + 2980: uint16(37553), + 2981: uint16(37550), + 2982: uint16(37567), + 2983: uint16(37603), + 2984: uint16(37611), + 2985: uint16(37619), + 2986: uint16(37620), + 2987: uint16(37629), + 2988: uint16(37699), + 2989: uint16(37764), + 2990: uint16(37805), + 2991: uint16(18757), + 2992: uint16(18769), + 2993: uint16(40639), + 2994: uint16(37911), + 2995: uint16(21249), + 2996: uint16(37917), + 2997: uint16(37933), + 2998: uint16(37950), + 2999: uint16(18794), + 3000: uint16(37972), + 3001: uint16(38009), + 3002: uint16(38189), + 3003: uint16(38306), + 3004: uint16(18855), + 3005: uint16(38388), + 3006: uint16(38451), + 3007: uint16(18917), + 3008: uint16(26528), + 3009: uint16(18980), + 3010: uint16(38720), + 3011: uint16(18997), + 3012: uint16(38834), + 3013: uint16(38850), + 3014: uint16(22100), + 3015: uint16(19172), + 3016: uint16(24808), + 3017: uint16(39097), + 3018: uint16(19225), + 3019: uint16(39153), + 3020: uint16(22596), + 3021: uint16(39182), + 3022: uint16(39193), + 3023: uint16(20916), + 3024: uint16(39196), + 3025: uint16(39223), + 3026: uint16(39234), + 3027: uint16(39261), + 3028: uint16(39266), + 3029: uint16(19312), + 3030: uint16(39365), + 3031: uint16(19357), + 3032: uint16(39484), + 3033: uint16(39695), + 3034: uint16(31363), + 3035: uint16(39785), + 3036: uint16(39809), + 3037: uint16(39901), + 3038: uint16(39921), + 3039: uint16(39924), + 3040: uint16(19565), + 3041: uint16(39968), + 3042: uint16(14191), + 3043: uint16(7106), + 3044: uint16(40265), + 3045: uint16(39994), + 3046: uint16(40702), + 3047: uint16(22096), + 3048: uint16(40339), + 3049: uint16(40381), + 3050: uint16(40384), + 3051: uint16(40444), + 3052: uint16(38134), + 3053: uint16(36790), + 3054: uint16(40571), + 3055: uint16(40620), + 3056: uint16(40625), + 3057: uint16(40637), + 3058: uint16(40646), + 3059: uint16(38108), + 3060: uint16(40674), + 3061: uint16(40689), + 3062: uint16(40696), + 3063: uint16(31432), + 3064: uint16(40772), + 3065: uint16(148), + 3066: uint16(695), + 3067: uint16(928), + 3068: uint16(26906), + 3069: uint16(38083), + 3070: uint16(22956), + 3071: uint16(1239), + 3072: uint16(22592), + 3073: uint16(38081), + 3074: uint16(14265), + 3075: uint16(1493), + 3076: uint16(1557), + 3077: uint16(1654), + 3078: uint16(5818), + 3079: uint16(22359), + 3080: uint16(29043), + 3081: uint16(2754), + 3082: uint16(2765), + 3083: uint16(3007), + 3084: uint16(21610), + 3085: uint16(63547), + 3086: uint16(3019), + 3087: uint16(21662), + 3088: uint16(3067), + 3089: uint16(3131), + 3090: uint16(3155), + 3091: uint16(3173), + 3092: uint16(3196), + 3093: uint16(24807), + 3094: uint16(3213), + 3095: uint16(22138), + 3096: uint16(3253), + 3097: uint16(3293), + 3098: uint16(3309), + 3099: uint16(3439), + 3100: uint16(3506), + 3101: uint16(3528), + 3102: uint16(26965), + 3103: uint16(39983), + 3104: uint16(34725), + 3105: uint16(3588), + 3106: uint16(3598), + 3107: uint16(3799), + 3108: uint16(3984), + 3109: uint16(3885), + 3110: uint16(3699), + 3111: uint16(23584), + 3112: uint16(4028), + 3113: uint16(24075), + 3114: uint16(4188), + 3115: uint16(4175), + 3116: uint16(4214), + 3117: uint16(26398), + 3118: uint16(4219), + 3119: uint16(4232), + 3120: uint16(4246), + 3121: uint16(13895), + 3122: uint16(4287), + 3123: uint16(4307), + 3124: uint16(4399), + 3125: uint16(4411), + 3126: uint16(21348), + 3127: uint16(33965), + 3128: uint16(4835), + 3129: uint16(4981), + 3130: uint16(4918), + 3131: uint16(35713), + 3132: uint16(5495), + 3133: uint16(5657), + 3134: uint16(6083), + 3135: uint16(6087), + 3136: uint16(20088), + 3137: uint16(28859), + 3138: uint16(6189), + 3139: uint16(6506), + 3140: uint16(6701), + 3141: uint16(6725), + 3142: uint16(7210), + 3143: uint16(7280), + 3144: uint16(7340), + 3145: uint16(7880), + 3146: uint16(25283), + 3147: uint16(7893), + 3148: uint16(7957), + 3149: uint16(29080), + 3150: uint16(26709), + 3151: uint16(8261), + 3152: uint16(27113), + 3153: uint16(14024), + 3154: uint16(8828), + 3155: uint16(9175), + 3156: uint16(9210), + 3157: uint16(10026), + 3158: uint16(10353), + 3159: uint16(10575), + 3160: uint16(33533), + 3161: uint16(10599), + 3162: uint16(10643), + 3163: uint16(10965), + 3164: uint16(35237), + 3165: uint16(10984), + 3166: uint16(36768), + 3167: uint16(11022), + 3168: uint16(38840), + 3169: uint16(11071), + 3170: uint16(38983), + 3171: uint16(39613), + 3172: uint16(11340), + 3174: uint16(11400), + 3175: uint16(11447), + 3176: uint16(23528), + 3177: uint16(11528), + 3178: uint16(11538), + 3179: uint16(11703), + 3180: uint16(11669), + 3181: uint16(11842), + 3182: uint16(12148), + 3183: uint16(12236), + 3184: uint16(12339), + 3185: uint16(12390), + 3186: uint16(13087), + 3187: uint16(13278), + 3188: uint16(24497), + 3189: uint16(26184), + 3190: uint16(26303), + 3191: uint16(31353), + 3192: uint16(13671), + 3193: uint16(13811), + 3195: uint16(18874), + 3197: uint16(13850), + 3198: uint16(14102), + 3200: uint16(838), + 3201: uint16(22709), + 3202: uint16(26382), + 3203: uint16(26904), + 3204: uint16(15015), + 3205: uint16(30295), + 3206: uint16(24546), + 3207: uint16(15889), + 3208: uint16(16057), + 3209: uint16(30206), + 3210: uint16(8346), + 3211: uint16(18640), + 3212: uint16(19128), + 3213: uint16(16665), + 3214: uint16(35482), + 3215: uint16(17134), + 3216: uint16(17165), + 3217: uint16(16443), + 3218: uint16(17204), + 3219: uint16(17302), + 3220: uint16(19013), + 3221: uint16(1482), + 3222: uint16(20946), + 3223: uint16(1553), + 3224: uint16(22943), + 3225: uint16(7848), + 3226: uint16(15294), + 3227: uint16(15615), + 3228: uint16(17412), + 3229: uint16(17622), + 3230: uint16(22408), + 3231: uint16(18036), + 3232: uint16(14747), + 3233: uint16(18223), + 3234: uint16(34280), + 3235: uint16(39369), + 3236: uint16(14178), + 3237: uint16(8643), + 3238: uint16(35678), + 3239: uint16(35662), + 3241: uint16(18450), + 3242: uint16(18683), + 3243: uint16(18965), + 3244: uint16(29193), + 3245: uint16(19136), + 3246: uint16(3192), + 3247: uint16(22885), + 3248: uint16(20133), + 3249: uint16(20358), + 3250: uint16(1913), + 3251: uint16(36570), + 3252: uint16(20524), + 3253: uint16(21135), + 3254: uint16(22335), + 3255: uint16(29041), + 3256: uint16(21145), + 3257: uint16(21529), + 3258: uint16(16202), + 3259: uint16(19111), + 3260: uint16(21948), + 3261: uint16(21574), + 3262: uint16(21614), + 3263: uint16(27474), + 3265: uint16(13427), + 3266: uint16(21823), + 3267: uint16(30258), + 3268: uint16(21854), + 3269: uint16(18200), + 3270: uint16(21858), + 3271: uint16(21862), + 3272: uint16(22471), + 3273: uint16(18751), + 3274: uint16(22621), + 3275: uint16(20582), + 3276: uint16(13563), + 3277: uint16(13260), + 3279: uint16(22787), + 3280: uint16(18300), + 3281: uint16(35144), + 3282: uint16(23214), + 3283: uint16(23433), + 3284: uint16(23558), + 3285: uint16(7568), + 3286: uint16(22433), + 3287: uint16(29009), + 3289: uint16(24834), + 3290: uint16(31762), + 3291: uint16(36950), + 3292: uint16(25010), + 3293: uint16(20378), + 3294: uint16(35682), + 3295: uint16(25602), + 3296: uint16(25674), + 3297: uint16(23899), + 3298: uint16(27639), + 3300: uint16(25732), + 3301: uint16(6428), + 3302: uint16(35562), + 3303: uint16(18934), + 3304: uint16(25736), + 3305: uint16(16367), + 3306: uint16(25874), + 3307: uint16(19392), + 3308: uint16(26047), + 3309: uint16(26293), + 3310: uint16(10011), + 3311: uint16(37989), + 3312: uint16(22497), + 3313: uint16(24981), + 3314: uint16(23079), + 3315: uint16(63693), + 3317: uint16(22201), + 3318: uint16(17697), + 3319: uint16(26364), + 3320: uint16(20074), + 3321: uint16(18740), + 3322: uint16(38486), + 3323: uint16(28047), + 3324: uint16(27837), + 3325: uint16(13848), + 3326: uint16(35191), + 3327: uint16(26521), + 3328: uint16(26734), + 3329: uint16(25617), + 3330: uint16(26718), + 3332: uint16(26823), + 3333: uint16(31554), + 3334: uint16(37056), + 3335: uint16(2577), + 3336: uint16(26918), + 3338: uint16(26937), + 3339: uint16(31301), + 3341: uint16(27130), + 3342: uint16(39462), + 3343: uint16(27181), + 3344: uint16(13919), + 3345: uint16(25705), + 3346: uint16(33), + 3347: uint16(31107), + 3348: uint16(27188), + 3349: uint16(27483), + 3350: uint16(23852), + 3351: uint16(13593), + 3353: uint16(27549), + 3354: uint16(18128), + 3355: uint16(27812), + 3356: uint16(30011), + 3357: uint16(34917), + 3358: uint16(28078), + 3359: uint16(22710), + 3360: uint16(14108), + 3361: uint16(9613), + 3362: uint16(28747), + 3363: uint16(29133), + 3364: uint16(15444), + 3365: uint16(29312), + 3366: uint16(29317), + 3367: uint16(37505), + 3368: uint16(8570), + 3369: uint16(29323), + 3370: uint16(37680), + 3371: uint16(29414), + 3372: uint16(18896), + 3373: uint16(27705), + 3374: uint16(38047), + 3375: uint16(29776), + 3376: uint16(3832), + 3377: uint16(34855), + 3378: uint16(35061), + 3379: uint16(10534), + 3380: uint16(33907), + 3381: uint16(6065), + 3382: uint16(28344), + 3383: uint16(18986), + 3384: uint16(6176), + 3385: uint16(14756), + 3386: uint16(14009), + 3389: uint16(17727), + 3390: uint16(26294), + 3391: uint16(40109), + 3392: uint16(39076), + 3393: uint16(35139), + 3394: uint16(30668), + 3395: uint16(30808), + 3396: uint16(22230), + 3397: uint16(16607), + 3398: uint16(5642), + 3399: uint16(14753), + 3400: uint16(14127), + 3401: uint16(33000), + 3402: uint16(5061), + 3403: uint16(29101), + 3404: uint16(33638), + 3405: uint16(31197), + 3406: uint16(37288), + 3408: uint16(19639), + 3409: uint16(28847), + 3410: uint16(35243), + 3411: uint16(31229), + 3412: uint16(31242), + 3413: uint16(31499), + 3414: uint16(32102), + 3415: uint16(16762), + 3416: uint16(31555), + 3417: uint16(31102), + 3418: uint16(32777), + 3419: uint16(28597), + 3420: uint16(41695), + 3421: uint16(27139), + 3422: uint16(33560), + 3423: uint16(21410), + 3424: uint16(28167), + 3425: uint16(37823), + 3426: uint16(26678), + 3427: uint16(38749), + 3428: uint16(33135), + 3429: uint16(32803), + 3430: uint16(27061), + 3431: uint16(5101), + 3432: uint16(12847), + 3433: uint16(32840), + 3434: uint16(23941), + 3435: uint16(35888), + 3436: uint16(32899), + 3437: uint16(22293), + 3438: uint16(38947), + 3439: uint16(35145), + 3440: uint16(23979), + 3441: uint16(18824), + 3442: uint16(26046), + 3443: uint16(27093), + 3444: uint16(21458), + 3445: uint16(19109), + 3446: uint16(16257), + 3447: uint16(15377), + 3448: uint16(26422), + 3449: uint16(32912), + 3450: uint16(33012), + 3451: uint16(33070), + 3452: uint16(8097), + 3453: uint16(33103), + 3454: uint16(33161), + 3455: uint16(33199), + 3456: uint16(33306), + 3457: uint16(33542), + 3458: uint16(33583), + 3459: uint16(33674), + 3460: uint16(13770), + 3461: uint16(33896), + 3462: uint16(34474), + 3463: uint16(18682), + 3464: uint16(25574), + 3465: uint16(35158), + 3466: uint16(30728), + 3467: uint16(37461), + 3468: uint16(35256), + 3469: uint16(17394), + 3470: uint16(35303), + 3471: uint16(17375), + 3472: uint16(35304), + 3473: uint16(35654), + 3474: uint16(35796), + 3475: uint16(23032), + 3476: uint16(35849), + 3478: uint16(36805), + 3479: uint16(37100), + 3481: uint16(37136), + 3482: uint16(37180), + 3483: uint16(15863), + 3484: uint16(37214), + 3485: uint16(19146), + 3486: uint16(36816), + 3487: uint16(29327), + 3488: uint16(22155), + 3489: uint16(38119), + 3490: uint16(38377), + 3491: uint16(38320), + 3492: uint16(38328), + 3493: uint16(38706), + 3494: uint16(39121), + 3495: uint16(39241), + 3496: uint16(39274), + 3497: uint16(39363), + 3498: uint16(39464), + 3499: uint16(39694), + 3500: uint16(40282), + 3501: uint16(40347), + 3502: uint16(32415), + 3503: uint16(40696), + 3504: uint16(40739), + 3505: uint16(19620), + 3506: uint16(38215), + 3507: uint16(41619), + 3508: uint16(29090), + 3509: uint16(41727), + 3510: uint16(19857), + 3511: uint16(36882), + 3512: uint16(42443), + 3513: uint16(19868), + 3514: uint16(3228), + 3515: uint16(36798), + 3516: uint16(21953), + 3517: uint16(36794), + 3518: uint16(9392), + 3519: uint16(36793), + 3520: uint16(19091), + 3521: uint16(17673), + 3522: uint16(32383), + 3523: uint16(28502), + 3524: uint16(27313), + 3525: uint16(20202), + 3526: uint16(13540), + 3527: uint16(35628), + 3528: uint16(30877), + 3529: uint16(14138), + 3530: uint16(36480), + 3531: uint16(6133), + 3532: uint16(32804), + 3533: uint16(35692), + 3534: uint16(35737), + 3535: uint16(31294), + 3536: uint16(26287), + 3537: uint16(15851), + 3538: uint16(30293), + 3539: uint16(15543), + 3540: uint16(22069), + 3541: uint16(22870), + 3542: uint16(20122), + 3543: uint16(24193), + 3544: uint16(25176), + 3545: uint16(22207), + 3546: uint16(3693), + 3547: uint16(36366), + 3548: uint16(23405), + 3549: uint16(16008), + 3550: uint16(19614), + 3551: uint16(25566), + 3553: uint16(6134), + 3554: uint16(6267), + 3555: uint16(25904), + 3556: uint16(22061), + 3557: uint16(23626), + 3558: uint16(21530), + 3559: uint16(21265), + 3560: uint16(15814), + 3561: uint16(40344), + 3562: uint16(19581), + 3563: uint16(22050), + 3564: uint16(22046), + 3565: uint16(32585), + 3566: uint16(24280), + 3567: uint16(22901), + 3568: uint16(15680), + 3569: uint16(34672), + 3570: uint16(19996), + 3571: uint16(4074), + 3572: uint16(3401), + 3573: uint16(14010), + 3574: uint16(33047), + 3575: uint16(40286), + 3576: uint16(36120), + 3577: uint16(30267), + 3578: uint16(40005), + 3579: uint16(30286), + 3580: uint16(30649), + 3581: uint16(37701), + 3582: uint16(21554), + 3583: uint16(33096), + 3584: uint16(33527), + 3585: uint16(22053), + 3586: uint16(33074), + 3587: uint16(33816), + 3588: uint16(32957), + 3589: uint16(21994), + 3590: uint16(31074), + 3591: uint16(22083), + 3592: uint16(21526), + 3593: uint16(3741), + 3594: uint16(13774), + 3595: uint16(22021), + 3596: uint16(22001), + 3597: uint16(26353), + 3598: uint16(33506), + 3599: uint16(13869), + 3600: uint16(30004), + 3601: uint16(22000), + 3602: uint16(21946), + 3603: uint16(21655), + 3604: uint16(21874), + 3605: uint16(3137), + 3606: uint16(3222), + 3607: uint16(24272), + 3608: uint16(20808), + 3609: uint16(3702), + 3610: uint16(11362), + 3611: uint16(3746), + 3612: uint16(40619), + 3613: uint16(32090), + 3614: uint16(21982), + 3615: uint16(4213), + 3616: uint16(25245), + 3617: uint16(38765), + 3618: uint16(21652), + 3619: uint16(36045), + 3620: uint16(29174), + 3621: uint16(37238), + 3622: uint16(25596), + 3623: uint16(25529), + 3624: uint16(25598), + 3625: uint16(21865), + 3626: uint16(11075), + 3627: uint16(40050), + 3628: uint16(11955), + 3629: uint16(20890), + 3630: uint16(13535), + 3631: uint16(3495), + 3632: uint16(20903), + 3633: uint16(21581), + 3634: uint16(21790), + 3635: uint16(21779), + 3636: uint16(30310), + 3637: uint16(36397), + 3638: uint16(26762), + 3639: uint16(30129), + 3640: uint16(32950), + 3641: uint16(34820), + 3642: uint16(34694), + 3643: uint16(35015), + 3644: uint16(33206), + 3645: uint16(33820), + 3646: uint16(4289), + 3647: uint16(17644), + 3648: uint16(29444), + 3649: uint16(18182), + 3650: uint16(23440), + 3651: uint16(33547), + 3652: uint16(26771), + 3653: uint16(22139), + 3654: uint16(9972), + 3655: uint16(32047), + 3656: uint16(16803), + 3657: uint16(32115), + 3658: uint16(28368), + 3659: uint16(29366), + 3660: uint16(37232), + 3661: uint16(4569), + 3662: uint16(37384), + 3663: uint16(15612), + 3664: uint16(42665), + 3665: uint16(3756), + 3666: uint16(3833), + 3667: uint16(29286), + 3668: uint16(7330), + 3669: uint16(18254), + 3670: uint16(20418), + 3671: uint16(32761), + 3672: uint16(4075), + 3673: uint16(16634), + 3674: uint16(40029), + 3675: uint16(25887), + 3676: uint16(11680), + 3677: uint16(18675), + 3678: uint16(18400), + 3679: uint16(40316), + 3680: uint16(4076), + 3681: uint16(3594), + 3683: uint16(30115), + 3684: uint16(4077), + 3686: uint16(24648), + 3687: uint16(4487), + 3688: uint16(29091), + 3689: uint16(32398), + 3690: uint16(40272), + 3691: uint16(19994), + 3692: uint16(19972), + 3693: uint16(13687), + 3694: uint16(23309), + 3695: uint16(27826), + 3696: uint16(21351), + 3697: uint16(13996), + 3698: uint16(14812), + 3699: uint16(21373), + 3700: uint16(13989), + 3701: uint16(17944), + 3702: uint16(22682), + 3703: uint16(19310), + 3704: uint16(33325), + 3705: uint16(21579), + 3706: uint16(22442), + 3707: uint16(23189), + 3708: uint16(2425), + 3710: uint16(14930), + 3711: uint16(9317), + 3712: uint16(29556), + 3713: uint16(40620), + 3714: uint16(19721), + 3715: uint16(39917), + 3716: uint16(15614), + 3717: uint16(40752), + 3718: uint16(19547), + 3719: uint16(20393), + 3720: uint16(38302), + 3721: uint16(40926), + 3722: uint16(33884), + 3723: uint16(15798), + 3724: uint16(29362), + 3725: uint16(26547), + 3726: uint16(14112), + 3727: uint16(25390), + 3728: uint16(32037), + 3729: uint16(16119), + 3730: uint16(15916), + 3731: uint16(14890), + 3732: uint16(36872), + 3733: uint16(21196), + 3734: uint16(15988), + 3735: uint16(13946), + 3736: uint16(17897), + 3737: uint16(1166), + 3738: uint16(30272), + 3739: uint16(23280), + 3740: uint16(3766), + 3741: uint16(30842), + 3742: uint16(32558), + 3743: uint16(22695), + 3744: uint16(16575), + 3745: uint16(22140), + 3746: uint16(39819), + 3747: uint16(23924), + 3748: uint16(30292), + 3749: uint16(42036), + 3750: uint16(40581), + 3751: uint16(19681), + 3753: uint16(14331), + 3754: uint16(24857), + 3755: uint16(12506), + 3756: uint16(17394), + 3758: uint16(22109), + 3759: uint16(4777), + 3760: uint16(22439), + 3761: uint16(18787), + 3762: uint16(40454), + 3763: uint16(21044), + 3764: uint16(28846), + 3765: uint16(13741), + 3767: uint16(40316), + 3768: uint16(31830), + 3769: uint16(39737), + 3770: uint16(22494), + 3771: uint16(5996), + 3772: uint16(23635), + 3773: uint16(25811), + 3774: uint16(38096), + 3775: uint16(25397), + 3776: uint16(29028), + 3777: uint16(34477), + 3778: uint16(3368), + 3779: uint16(27938), + 3780: uint16(19170), + 3781: uint16(3441), + 3783: uint16(20990), + 3784: uint16(7951), + 3785: uint16(23950), + 3786: uint16(38659), + 3787: uint16(7633), + 3788: uint16(40577), + 3789: uint16(36940), + 3790: uint16(31519), + 3791: uint16(39682), + 3792: uint16(23761), + 3793: uint16(31651), + 3794: uint16(25192), + 3795: uint16(25397), + 3796: uint16(39679), + 3797: uint16(31695), + 3798: uint16(39722), + 3799: uint16(31870), + 3801: uint16(31810), + 3802: uint16(31878), + 3803: uint16(39957), + 3804: uint16(31740), + 3805: uint16(39689), + 3807: uint16(39963), + 3808: uint16(18750), + 3809: uint16(40794), + 3810: uint16(21875), + 3811: uint16(23491), + 3812: uint16(20477), + 3813: uint16(40600), + 3814: uint16(20466), + 3815: uint16(21088), + 3816: uint16(15878), + 3817: uint16(21201), + 3818: uint16(22375), + 3819: uint16(20566), + 3820: uint16(22967), + 3821: uint16(24082), + 3822: uint16(38856), + 3823: uint16(40363), + 3824: uint16(36700), + 3825: uint16(21609), + 3826: uint16(38836), + 3827: uint16(39232), + 3828: uint16(38842), + 3829: uint16(21292), + 3830: uint16(24880), + 3831: uint16(26924), + 3832: uint16(21466), + 3833: uint16(39946), + 3834: uint16(40194), + 3835: uint16(19515), + 3836: uint16(38465), + 3837: uint16(27008), + 3838: uint16(20646), + 3839: uint16(30022), + 3840: uint16(5997), + 3841: uint16(39386), + 3842: uint16(21107), + 3844: uint16(37209), + 3845: uint16(38529), + 3846: uint16(37212), + 3848: uint16(37201), + 3849: uint16(36503), + 3850: uint16(25471), + 3851: uint16(27939), + 3852: uint16(27338), + 3853: uint16(22033), + 3854: uint16(37262), + 3855: uint16(30074), + 3856: uint16(25221), + 3857: uint16(1020), + 3858: uint16(29519), + 3859: uint16(31856), + 3860: uint16(23585), + 3861: uint16(15613), + 3863: uint16(18713), + 3864: uint16(30422), + 3865: uint16(39837), + 3866: uint16(20010), + 3867: uint16(3284), + 3868: uint16(33726), + 3869: uint16(34882), + 3871: uint16(23626), + 3872: uint16(27072), + 3874: uint16(22394), + 3875: uint16(21023), + 3876: uint16(24053), + 3877: uint16(20174), + 3878: uint16(27697), + 3879: uint16(498), + 3880: uint16(20281), + 3881: uint16(21660), + 3882: uint16(21722), + 3883: uint16(21146), + 3884: uint16(36226), + 3885: uint16(13822), + 3887: uint16(13811), + 3889: uint16(27474), + 3890: uint16(37244), + 3891: uint16(40869), + 3892: uint16(39831), + 3893: uint16(38958), + 3894: uint16(39092), + 3895: uint16(39610), + 3896: uint16(40616), + 3897: uint16(40580), + 3898: uint16(29050), + 3899: uint16(31508), + 3901: uint16(27642), + 3902: uint16(34840), + 3903: uint16(32632), + 3905: uint16(22048), + 3906: uint16(42570), + 3907: uint16(36471), + 3908: uint16(40787), + 3910: uint16(36308), + 3911: uint16(36431), + 3912: uint16(40476), + 3913: uint16(36353), + 3914: uint16(25218), + 3915: uint16(33661), + 3916: uint16(36392), + 3917: uint16(36469), + 3918: uint16(31443), + 3919: uint16(19063), + 3920: uint16(31294), + 3921: uint16(30936), + 3922: uint16(27882), + 3923: uint16(35431), + 3924: uint16(30215), + 3925: uint16(35418), + 3926: uint16(40742), + 3927: uint16(27854), + 3928: uint16(34774), + 3929: uint16(30147), + 3930: uint16(41650), + 3931: uint16(30803), + 3932: uint16(63552), + 3933: uint16(36108), + 3934: uint16(29410), + 3935: uint16(29553), + 3936: uint16(35629), + 3937: uint16(29442), + 3938: uint16(29937), + 3939: uint16(36075), + 3940: uint16(19131), + 3941: uint16(34351), + 3942: uint16(24506), + 3943: uint16(34976), + 3944: uint16(17591), + 3946: uint16(6203), + 3947: uint16(28165), + 3949: uint16(35454), + 3950: uint16(9499), + 3952: uint16(24829), + 3953: uint16(30311), + 3954: uint16(39639), + 3955: uint16(40260), + 3956: uint16(37742), + 3957: uint16(39823), + 3958: uint16(34805), + 3961: uint16(36087), + 3962: uint16(29484), + 3963: uint16(38689), + 3964: uint16(39856), + 3965: uint16(13782), + 3966: uint16(29362), + 3967: uint16(19463), + 3968: uint16(31825), + 3969: uint16(39242), + 3970: uint16(24921), + 3971: uint16(24921), + 3972: uint16(19460), + 3973: uint16(40598), + 3974: uint16(24957), + 3976: uint16(22367), + 3977: uint16(24943), + 3978: uint16(25254), + 3979: uint16(25145), + 3981: uint16(14940), + 3982: uint16(25058), + 3983: uint16(21418), + 3984: uint16(13301), + 3985: uint16(25444), + 3986: uint16(26626), + 3987: uint16(13778), + 3988: uint16(23895), + 3989: uint16(35778), + 3990: uint16(36826), + 3991: uint16(36409), + 3993: uint16(20697), + 3994: uint16(7494), + 3995: uint16(30982), + 3996: uint16(21298), + 3997: uint16(38456), + 3998: uint16(3899), + 3999: uint16(16485), + 4001: uint16(30718), + 4003: uint16(31938), + 4004: uint16(24346), + 4005: uint16(31962), + 4006: uint16(31277), + 4007: uint16(32870), + 4008: uint16(32867), + 4009: uint16(32077), + 4010: uint16(29957), + 4011: uint16(29938), + 4012: uint16(35220), + 4013: uint16(33306), + 4014: uint16(26380), + 4015: uint16(32866), + 4016: uint16(29830), + 4017: uint16(32859), + 4018: uint16(29936), + 4019: uint16(33027), + 4020: uint16(30500), + 4021: uint16(35209), + 4022: uint16(26572), + 4023: uint16(30035), + 4024: uint16(28369), + 4025: uint16(34729), + 4026: uint16(34766), + 4027: uint16(33224), + 4028: uint16(34700), + 4029: uint16(35401), + 4030: uint16(36013), + 4031: uint16(35651), + 4032: uint16(30507), + 4033: uint16(29944), + 4034: uint16(34010), + 4035: uint16(13877), + 4036: uint16(27058), + 4037: uint16(36262), + 4039: uint16(35241), + 4041: uint16(28089), + 4042: uint16(34753), + 4043: uint16(16401), + 4044: uint16(29927), + 4045: uint16(15835), + 4046: uint16(29046), + 4047: uint16(24740), + 4048: uint16(24988), + 4049: uint16(15569), + 4051: uint16(24695), + 4053: uint16(32625), + 4054: uint16(35629), + 4056: uint16(24809), + 4057: uint16(19326), + 4058: uint16(21024), + 4059: uint16(15384), + 4060: uint16(15559), + 4061: uint16(24279), + 4062: uint16(30294), + 4063: uint16(21809), + 4064: uint16(6468), + 4065: uint16(4862), + 4066: uint16(39171), + 4067: uint16(28124), + 4068: uint16(28845), + 4069: uint16(23745), + 4070: uint16(25005), + 4071: uint16(35343), + 4072: uint16(13943), + 4073: uint16(238), + 4074: uint16(26694), + 4075: uint16(20238), + 4076: uint16(17762), + 4077: uint16(23327), + 4078: uint16(25420), + 4079: uint16(40784), + 4080: uint16(40614), + 4081: uint16(25195), + 4082: uint16(1351), + 4083: uint16(37595), + 4084: uint16(1503), + 4085: uint16(16325), + 4086: uint16(34124), + 4087: uint16(17077), + 4088: uint16(29679), + 4089: uint16(20917), + 4090: uint16(13897), + 4091: uint16(18754), + 4092: uint16(35300), + 4093: uint16(37700), + 4094: uint16(6619), + 4095: uint16(33518), + 4096: uint16(15560), + 4097: uint16(30780), + 4098: uint16(26436), + 4099: uint16(25311), + 4100: uint16(18739), + 4101: uint16(35242), + 4102: uint16(672), + 4103: uint16(27571), + 4104: uint16(4869), + 4105: uint16(20395), + 4106: uint16(9453), + 4107: uint16(20488), + 4108: uint16(27945), + 4109: uint16(31364), + 4110: uint16(13824), + 4111: uint16(19121), + 4112: uint16(9491), + 4114: uint16(894), + 4115: uint16(24484), + 4116: uint16(896), + 4117: uint16(839), + 4118: uint16(28379), + 4119: uint16(1055), + 4121: uint16(20737), + 4122: uint16(13434), + 4123: uint16(20750), + 4124: uint16(39020), + 4125: uint16(14147), + 4126: uint16(33814), + 4127: uint16(18852), + 4128: uint16(1159), + 4129: uint16(20832), + 4130: uint16(13236), + 4131: uint16(20842), + 4132: uint16(3071), + 4133: uint16(8444), + 4134: uint16(741), + 4135: uint16(9520), + 4136: uint16(1422), + 4137: uint16(12851), + 4138: uint16(6531), + 4139: uint16(23426), + 4140: uint16(34685), + 4141: uint16(1459), + 4142: uint16(15513), + 4143: uint16(20914), + 4144: uint16(20920), + 4145: uint16(40244), + 4146: uint16(20937), + 4147: uint16(20943), + 4148: uint16(20945), + 4149: uint16(15580), + 4150: uint16(20947), + 4151: uint16(19110), + 4152: uint16(20915), + 4153: uint16(20962), + 4154: uint16(21314), + 4155: uint16(20973), + 4156: uint16(33741), + 4157: uint16(26942), + 4158: uint16(14125), + 4159: uint16(24443), + 4160: uint16(21003), + 4161: uint16(21030), + 4162: uint16(21052), + 4163: uint16(21173), + 4164: uint16(21079), + 4165: uint16(21140), + 4166: uint16(21177), + 4167: uint16(21189), + 4168: uint16(31765), + 4169: uint16(34114), + 4170: uint16(21216), + 4171: uint16(34317), + 4172: uint16(27411), + 4174: uint16(35550), + 4175: uint16(21833), + 4176: uint16(28377), + 4177: uint16(16256), + 4178: uint16(2388), + 4179: uint16(16364), + 4180: uint16(21299), + 4182: uint16(3042), + 4183: uint16(27851), + 4184: uint16(5926), + 4185: uint16(26651), + 4186: uint16(29653), + 4187: uint16(24650), + 4188: uint16(16042), + 4189: uint16(14540), + 4190: uint16(5864), + 4191: uint16(29149), + 4192: uint16(17570), + 4193: uint16(21357), + 4194: uint16(21364), + 4195: uint16(34475), + 4196: uint16(21374), + 4198: uint16(5526), + 4199: uint16(5651), + 4200: uint16(30694), + 4201: uint16(21395), + 4202: uint16(35483), + 4203: uint16(21408), + 4204: uint16(21419), + 4205: uint16(21422), + 4206: uint16(29607), + 4207: uint16(22386), + 4208: uint16(16217), + 4209: uint16(29596), + 4210: uint16(21441), + 4211: uint16(21445), + 4212: uint16(27721), + 4213: uint16(20041), + 4214: uint16(22526), + 4215: uint16(21465), + 4216: uint16(15019), + 4217: uint16(2959), + 4218: uint16(21472), + 4219: uint16(16363), + 4220: uint16(11683), + 4221: uint16(21494), + 4222: uint16(3191), + 4223: uint16(21523), + 4224: uint16(28793), + 4225: uint16(21803), + 4226: uint16(26199), + 4227: uint16(27995), + 4228: uint16(21613), + 4229: uint16(27475), + 4230: uint16(3444), + 4231: uint16(21853), + 4232: uint16(21647), + 4233: uint16(21668), + 4234: uint16(18342), + 4235: uint16(5901), + 4236: uint16(3805), + 4237: uint16(15796), + 4238: uint16(3405), + 4239: uint16(35260), + 4240: uint16(9880), + 4241: uint16(21831), + 4242: uint16(19693), + 4243: uint16(21551), + 4244: uint16(29719), + 4245: uint16(21894), + 4246: uint16(21929), + 4248: uint16(6359), + 4249: uint16(16442), + 4250: uint16(17746), + 4251: uint16(17461), + 4252: uint16(26291), + 4253: uint16(4276), + 4254: uint16(22071), + 4255: uint16(26317), + 4256: uint16(12938), + 4257: uint16(26276), + 4258: uint16(26285), + 4259: uint16(22093), + 4260: uint16(22095), + 4261: uint16(30961), + 4262: uint16(22257), + 4263: uint16(38791), + 4264: uint16(21502), + 4265: uint16(22272), + 4266: uint16(22255), + 4267: uint16(22253), + 4268: uint16(35686), + 4269: uint16(13859), + 4270: uint16(4687), + 4271: uint16(22342), + 4272: uint16(16805), + 4273: uint16(27758), + 4274: uint16(28811), + 4275: uint16(22338), + 4276: uint16(14001), + 4277: uint16(27774), + 4278: uint16(22502), + 4279: uint16(5142), + 4280: uint16(22531), + 4281: uint16(5204), + 4282: uint16(17251), + 4283: uint16(22566), + 4284: uint16(19445), + 4285: uint16(22620), + 4286: uint16(22698), + 4287: uint16(13665), + 4288: uint16(22752), + 4289: uint16(22748), + 4290: uint16(4668), + 4291: uint16(22779), + 4292: uint16(23551), + 4293: uint16(22339), + 4294: uint16(41296), + 4295: uint16(17016), + 4296: uint16(37843), + 4297: uint16(13729), + 4298: uint16(22815), + 4299: uint16(26790), + 4300: uint16(14019), + 4301: uint16(28249), + 4302: uint16(5694), + 4303: uint16(23076), + 4304: uint16(21843), + 4305: uint16(5778), + 4306: uint16(34053), + 4307: uint16(22985), + 4308: uint16(3406), + 4309: uint16(27777), + 4310: uint16(27946), + 4311: uint16(6108), + 4312: uint16(23001), + 4313: uint16(6139), + 4314: uint16(6066), + 4315: uint16(28070), + 4316: uint16(28017), + 4317: uint16(6184), + 4318: uint16(5845), + 4319: uint16(23033), + 4320: uint16(28229), + 4321: uint16(23211), + 4322: uint16(23139), + 4323: uint16(14054), + 4324: uint16(18857), + 4326: uint16(14088), + 4327: uint16(23190), + 4328: uint16(29797), + 4329: uint16(23251), + 4330: uint16(28577), + 4331: uint16(9556), + 4332: uint16(15749), + 4333: uint16(6417), + 4334: uint16(14130), + 4335: uint16(5816), + 4336: uint16(24195), + 4337: uint16(21200), + 4338: uint16(23414), + 4339: uint16(25992), + 4340: uint16(23420), + 4341: uint16(31246), + 4342: uint16(16388), + 4343: uint16(18525), + 4344: uint16(516), + 4345: uint16(23509), + 4346: uint16(24928), + 4347: uint16(6708), + 4348: uint16(22988), + 4349: uint16(1445), + 4350: uint16(23539), + 4351: uint16(23453), + 4352: uint16(19728), + 4353: uint16(23557), + 4354: uint16(6980), + 4355: uint16(23571), + 4356: uint16(29646), + 4357: uint16(23572), + 4358: uint16(7333), + 4359: uint16(27432), + 4360: uint16(23625), + 4361: uint16(18653), + 4362: uint16(23685), + 4363: uint16(23785), + 4364: uint16(23791), + 4365: uint16(23947), + 4366: uint16(7673), + 4367: uint16(7735), + 4368: uint16(23824), + 4369: uint16(23832), + 4370: uint16(23878), + 4371: uint16(7844), + 4372: uint16(23738), + 4373: uint16(24023), + 4374: uint16(33532), + 4375: uint16(14381), + 4376: uint16(18689), + 4377: uint16(8265), + 4378: uint16(8563), + 4379: uint16(33415), + 4380: uint16(14390), + 4381: uint16(15298), + 4382: uint16(24110), + 4383: uint16(27274), + 4385: uint16(24186), + 4386: uint16(17596), + 4387: uint16(3283), + 4388: uint16(21414), + 4389: uint16(20151), + 4391: uint16(21416), + 4392: uint16(6001), + 4393: uint16(24073), + 4394: uint16(24308), + 4395: uint16(33922), + 4396: uint16(24313), + 4397: uint16(24315), + 4398: uint16(14496), + 4399: uint16(24316), + 4400: uint16(26686), + 4401: uint16(37915), + 4402: uint16(24333), + 4403: uint16(449), + 4404: uint16(63636), + 4405: uint16(15070), + 4406: uint16(18606), + 4407: uint16(4922), + 4408: uint16(24378), + 4409: uint16(26760), + 4410: uint16(9168), + 4412: uint16(9329), + 4413: uint16(24419), + 4414: uint16(38845), + 4415: uint16(28270), + 4416: uint16(24434), + 4417: uint16(37696), + 4418: uint16(35382), + 4419: uint16(24487), + 4420: uint16(23990), + 4421: uint16(15711), + 4422: uint16(21072), + 4423: uint16(8042), + 4424: uint16(28920), + 4425: uint16(9832), + 4426: uint16(37334), + 4427: uint16(670), + 4428: uint16(35369), + 4429: uint16(24625), + 4430: uint16(26245), + 4431: uint16(6263), + 4432: uint16(14691), + 4433: uint16(15815), + 4434: uint16(13881), + 4435: uint16(22416), + 4436: uint16(10164), + 4437: uint16(31089), + 4438: uint16(15936), + 4439: uint16(24734), + 4441: uint16(24755), + 4442: uint16(18818), + 4443: uint16(18831), + 4444: uint16(31315), + 4445: uint16(29860), + 4446: uint16(20705), + 4447: uint16(23200), + 4448: uint16(24932), + 4449: uint16(33828), + 4450: uint16(24898), + 4451: uint16(63654), + 4452: uint16(28370), + 4453: uint16(24961), + 4454: uint16(20980), + 4455: uint16(1622), + 4456: uint16(24967), + 4457: uint16(23466), + 4458: uint16(16311), + 4459: uint16(10335), + 4460: uint16(25043), + 4461: uint16(35741), + 4462: uint16(39261), + 4463: uint16(25040), + 4464: uint16(14642), + 4465: uint16(10624), + 4466: uint16(10433), + 4467: uint16(24611), + 4468: uint16(24924), + 4469: uint16(25886), + 4470: uint16(25483), + 4471: uint16(280), + 4472: uint16(25285), + 4473: uint16(6000), + 4474: uint16(25301), + 4475: uint16(11789), + 4476: uint16(25452), + 4477: uint16(18911), + 4478: uint16(14871), + 4479: uint16(25656), + 4480: uint16(25592), + 4481: uint16(5006), + 4482: uint16(6140), + 4484: uint16(28554), + 4485: uint16(11830), + 4486: uint16(38932), + 4487: uint16(16524), + 4488: uint16(22301), + 4489: uint16(25825), + 4490: uint16(25829), + 4491: uint16(38011), + 4492: uint16(14950), + 4493: uint16(25658), + 4494: uint16(14935), + 4495: uint16(25933), + 4496: uint16(28438), + 4497: uint16(18984), + 4498: uint16(18979), + 4499: uint16(25989), + 4500: uint16(25965), + 4501: uint16(25951), + 4502: uint16(12414), + 4503: uint16(26037), + 4504: uint16(18752), + 4505: uint16(19255), + 4506: uint16(26065), + 4507: uint16(16600), + 4508: uint16(6185), + 4509: uint16(26080), + 4510: uint16(26083), + 4511: uint16(24543), + 4512: uint16(13312), + 4513: uint16(26136), + 4514: uint16(12791), + 4515: uint16(12792), + 4516: uint16(26180), + 4517: uint16(12708), + 4518: uint16(12709), + 4519: uint16(26187), + 4520: uint16(3701), + 4521: uint16(26215), + 4522: uint16(20966), + 4523: uint16(26227), + 4525: uint16(7741), + 4526: uint16(12849), + 4527: uint16(34292), + 4528: uint16(12744), + 4529: uint16(21267), + 4530: uint16(30661), + 4531: uint16(10487), + 4532: uint16(39332), + 4533: uint16(26370), + 4534: uint16(17308), + 4535: uint16(18977), + 4536: uint16(15147), + 4537: uint16(27130), + 4538: uint16(14274), + 4540: uint16(26471), + 4541: uint16(26466), + 4542: uint16(16845), + 4543: uint16(37101), + 4544: uint16(26583), + 4545: uint16(17641), + 4546: uint16(26658), + 4547: uint16(28240), + 4548: uint16(37436), + 4549: uint16(26625), + 4550: uint16(13286), + 4551: uint16(28064), + 4552: uint16(26717), + 4553: uint16(13423), + 4554: uint16(27105), + 4555: uint16(27147), + 4556: uint16(35551), + 4557: uint16(26995), + 4558: uint16(26819), + 4559: uint16(13773), + 4560: uint16(26881), + 4561: uint16(26880), + 4562: uint16(15666), + 4563: uint16(14849), + 4564: uint16(13884), + 4565: uint16(15232), + 4566: uint16(26540), + 4567: uint16(26977), + 4568: uint16(35402), + 4569: uint16(17148), + 4570: uint16(26934), + 4571: uint16(27032), + 4572: uint16(15265), + 4573: uint16(969), + 4574: uint16(33635), + 4575: uint16(20624), + 4576: uint16(27129), + 4577: uint16(13913), + 4578: uint16(8490), + 4579: uint16(27205), + 4580: uint16(14083), + 4581: uint16(27293), + 4582: uint16(15347), + 4583: uint16(26545), + 4584: uint16(27336), + 4585: uint16(37276), + 4586: uint16(15373), + 4587: uint16(27421), + 4588: uint16(2339), + 4589: uint16(24798), + 4590: uint16(27445), + 4591: uint16(27508), + 4592: uint16(10189), + 4593: uint16(28341), + 4594: uint16(15067), + 4595: uint16(949), + 4596: uint16(6488), + 4597: uint16(14144), + 4598: uint16(21537), + 4599: uint16(15194), + 4600: uint16(27617), + 4601: uint16(16124), + 4602: uint16(27612), + 4603: uint16(27703), + 4604: uint16(9355), + 4605: uint16(18673), + 4606: uint16(27473), + 4607: uint16(27738), + 4608: uint16(33318), + 4609: uint16(27769), + 4610: uint16(15804), + 4611: uint16(17605), + 4612: uint16(15805), + 4613: uint16(16804), + 4614: uint16(18700), + 4615: uint16(18688), + 4616: uint16(15561), + 4617: uint16(14053), + 4618: uint16(15595), + 4619: uint16(3378), + 4620: uint16(39811), + 4621: uint16(12793), + 4622: uint16(9361), + 4623: uint16(32655), + 4624: uint16(26679), + 4625: uint16(27941), + 4626: uint16(28065), + 4627: uint16(28139), + 4628: uint16(28054), + 4629: uint16(27996), + 4630: uint16(28284), + 4631: uint16(28420), + 4632: uint16(18815), + 4633: uint16(16517), + 4634: uint16(28274), + 4635: uint16(34099), + 4636: uint16(28532), + 4637: uint16(20935), + 4640: uint16(33838), + 4641: uint16(35617), + 4643: uint16(15919), + 4644: uint16(29779), + 4645: uint16(16258), + 4646: uint16(31180), + 4647: uint16(28239), + 4648: uint16(23185), + 4649: uint16(12363), + 4650: uint16(28664), + 4651: uint16(14093), + 4652: uint16(28573), + 4653: uint16(15920), + 4654: uint16(28410), + 4655: uint16(5271), + 4656: uint16(16445), + 4657: uint16(17749), + 4658: uint16(37872), + 4659: uint16(28484), + 4660: uint16(28508), + 4661: uint16(15694), + 4662: uint16(28532), + 4663: uint16(37232), + 4664: uint16(15675), + 4665: uint16(28575), + 4666: uint16(16708), + 4667: uint16(28627), + 4668: uint16(16529), + 4669: uint16(16725), + 4670: uint16(16441), + 4671: uint16(16368), + 4672: uint16(16308), + 4673: uint16(16703), + 4674: uint16(20959), + 4675: uint16(16726), + 4676: uint16(16727), + 4677: uint16(16704), + 4678: uint16(25053), + 4679: uint16(28747), + 4680: uint16(28798), + 4681: uint16(28839), + 4682: uint16(28801), + 4683: uint16(28876), + 4684: uint16(28885), + 4685: uint16(28886), + 4686: uint16(28895), + 4687: uint16(16644), + 4688: uint16(15848), + 4689: uint16(29108), + 4690: uint16(29078), + 4691: uint16(17015), + 4692: uint16(28971), + 4693: uint16(28997), + 4694: uint16(23176), + 4695: uint16(29002), + 4697: uint16(23708), + 4698: uint16(17253), + 4699: uint16(29007), + 4700: uint16(37730), + 4701: uint16(17089), + 4702: uint16(28972), + 4703: uint16(17498), + 4704: uint16(18983), + 4705: uint16(18978), + 4706: uint16(29114), + 4707: uint16(35816), + 4708: uint16(28861), + 4709: uint16(29198), + 4710: uint16(37954), + 4711: uint16(29205), + 4712: uint16(22801), + 4713: uint16(37955), + 4714: uint16(29220), + 4715: uint16(37697), + 4716: uint16(22021), + 4717: uint16(29230), + 4718: uint16(29248), + 4719: uint16(18804), + 4720: uint16(26813), + 4721: uint16(29269), + 4722: uint16(29271), + 4723: uint16(15957), + 4724: uint16(12356), + 4725: uint16(26637), + 4726: uint16(28477), + 4727: uint16(29314), + 4729: uint16(29483), + 4730: uint16(18467), + 4731: uint16(34859), + 4732: uint16(18669), + 4733: uint16(34820), + 4734: uint16(29480), + 4735: uint16(29486), + 4736: uint16(29647), + 4737: uint16(29610), + 4738: uint16(3130), + 4739: uint16(27182), + 4740: uint16(29641), + 4741: uint16(29769), + 4742: uint16(16866), + 4743: uint16(5863), + 4744: uint16(18980), + 4745: uint16(26147), + 4746: uint16(14021), + 4747: uint16(18871), + 4748: uint16(18829), + 4749: uint16(18939), + 4750: uint16(29687), + 4751: uint16(29717), + 4752: uint16(26883), + 4753: uint16(18982), + 4754: uint16(29753), + 4755: uint16(1475), + 4756: uint16(16087), + 4758: uint16(10413), + 4759: uint16(29792), + 4760: uint16(36530), + 4761: uint16(29767), + 4762: uint16(29668), + 4763: uint16(29814), + 4764: uint16(33721), + 4765: uint16(29804), + 4766: uint16(14128), + 4767: uint16(29812), + 4768: uint16(37873), + 4769: uint16(27180), + 4770: uint16(29826), + 4771: uint16(18771), + 4772: uint16(19084), + 4773: uint16(16735), + 4774: uint16(19065), + 4775: uint16(35727), + 4776: uint16(23366), + 4777: uint16(35843), + 4778: uint16(6302), + 4779: uint16(29896), + 4780: uint16(6536), + 4781: uint16(29966), + 4783: uint16(29982), + 4784: uint16(36569), + 4785: uint16(6731), + 4786: uint16(23511), + 4787: uint16(36524), + 4788: uint16(37765), + 4789: uint16(30029), + 4790: uint16(30026), + 4791: uint16(30055), + 4792: uint16(30062), + 4793: uint16(20354), + 4794: uint16(16132), + 4795: uint16(19731), + 4796: uint16(30094), + 4797: uint16(29789), + 4798: uint16(30110), + 4799: uint16(30132), + 4800: uint16(30210), + 4801: uint16(30252), + 4802: uint16(30289), + 4803: uint16(30287), + 4804: uint16(30319), + 4805: uint16(30326), + 4806: uint16(25589), + 4807: uint16(30352), + 4808: uint16(33263), + 4809: uint16(14328), + 4810: uint16(26897), + 4811: uint16(26894), + 4812: uint16(30369), + 4813: uint16(30373), + 4814: uint16(30391), + 4815: uint16(30412), + 4816: uint16(28575), + 4817: uint16(33890), + 4818: uint16(20637), + 4819: uint16(20861), + 4820: uint16(7708), + 4821: uint16(30494), + 4822: uint16(30502), + 4823: uint16(30528), + 4824: uint16(25775), + 4825: uint16(21024), + 4826: uint16(30552), + 4827: uint16(12972), + 4828: uint16(30639), + 4829: uint16(35172), + 4830: uint16(35176), + 4831: uint16(5825), + 4832: uint16(30708), + 4834: uint16(4982), + 4835: uint16(18962), + 4836: uint16(26826), + 4837: uint16(30895), + 4838: uint16(30919), + 4839: uint16(30931), + 4840: uint16(38565), + 4841: uint16(31022), + 4842: uint16(21984), + 4843: uint16(30935), + 4844: uint16(31028), + 4845: uint16(30897), + 4846: uint16(30220), + 4847: uint16(36792), + 4848: uint16(34948), + 4849: uint16(35627), + 4850: uint16(24707), + 4851: uint16(9756), + 4852: uint16(31110), + 4853: uint16(35072), + 4854: uint16(26882), + 4855: uint16(31104), + 4856: uint16(22615), + 4857: uint16(31133), + 4858: uint16(31545), + 4859: uint16(31036), + 4860: uint16(31145), + 4861: uint16(28202), + 4862: uint16(28966), + 4863: uint16(16040), + 4864: uint16(31174), + 4865: uint16(37133), + 4866: uint16(31188), + 4867: uint16(1312), + 4868: uint16(17503), + 4869: uint16(21007), + 4870: uint16(47234), + 4871: uint16(248), + 4872: uint16(16384), + 4873: uint16(43296), + 4874: uint16(1102), + 4877: uint16(2868), + 4878: uint16(1), + 4886: uint16(3072), + 4887: uint16(64), + 4891: uint16(1024), + 4892: uint16(88), + 4893: uint16(60), + 4896: uint16(23680), + 4897: uint16(56493), + 4898: uint16(48115), + 4899: uint16(17353), + 4900: uint16(60910), + 4901: uint16(4004), + 4902: uint16(49446), + 4903: uint16(30363), + 4904: uint16(61426), + 4905: uint16(64478), + 4906: uint16(63482), + 4907: uint16(12815), + 4908: uint16(44868), + 4909: uint16(61438), + 4910: uint16(65277), + 4911: uint16(24593), + 4912: uint16(176), + 4913: uint16(8448), + 4914: uint16(33049), + 4915: uint16(4128), + 4916: uint16(43144), + 4917: uint16(8544), + 4918: uint16(9321), + 4919: uint16(17408), + 4920: uint16(50313), + 4922: uint16(16387), + 4923: uint16(53), + 4924: uint16(33859), + 4925: uint16(20785), + 4926: uint16(26771), + 4927: uint16(514), + 4933: uint16(16384), + 4934: uint16(256), + 4935: uint16(44160), + 4936: uint16(33380), + 4937: uint16(35904), + 4938: uint16(37025), + 4939: uint16(20484), + 4940: uint16(54368), + 4941: uint16(53760), + 4942: uint16(6186), + 4943: uint16(26781), + 4944: uint16(38709), + 4945: uint16(55375), + 4946: uint16(8440), + 4947: uint16(33476), + 4948: uint16(10268), + 4949: uint16(30082), + 4950: uint16(660), + 4951: uint16(16440), + 4952: uint16(41376), + 4953: uint16(4293), + 4954: uint16(19825), + 4955: uint16(3524), + 4956: uint16(47512), + 4957: uint16(23390), + 4958: uint16(17153), + 4959: uint16(39327), + 4960: uint16(30723), + 4961: uint16(57888), + 4962: uint16(2079), + 4963: uint16(393), + 4964: uint16(16585), + 4965: uint16(775), + 4966: uint16(39437), + 4967: uint16(21136), + 4968: uint16(20433), + 4969: uint16(892), + 4970: uint16(8450), + 4971: uint16(49184), + 4972: uint16(4974), + 4973: uint16(46467), + 4974: uint16(62939), + 4975: uint16(30693), + 4976: uint16(20368), + 4977: uint16(39447), + 4978: uint16(5942), + 4979: uint16(12), + 4980: uint16(47726), + 4981: uint16(12041), + 4982: uint16(21600), + 4983: uint16(7680), + 4984: uint16(26744), + 4985: uint16(28706), + 4986: uint16(40534), + 4987: uint16(62245), + 4988: uint16(46990), + 4989: uint16(2839), + 4990: uint16(59119), + 4991: uint16(6007), + 4992: uint16(7003), + 4993: uint16(4289), + 4994: uint16(36248), + 4995: uint16(6162), + 4996: uint16(53174), + 4997: uint16(12545), + 4998: uint16(6770), + 4999: uint16(11355), + 5000: uint16(49334), + 5001: uint16(57888), + 5002: uint16(23747), + 5003: uint16(7042), + 5004: uint16(56032), + 5005: uint16(34254), + 5006: uint16(16598), + 5007: uint16(21673), + 5008: uint16(53259), + 5009: uint16(18447), + 5010: uint16(16452), + 5011: uint16(2320), + 5012: uint16(16596), + 5013: uint16(15278), + 5014: uint16(7780), + 5015: uint16(11076), + 5016: uint16(2071), + 5017: uint16(33414), + 5018: uint16(6198), + 5019: uint16(35232), + 5020: uint16(40167), + 5021: uint16(2139), + 5022: uint16(900), + 5023: uint16(55810), + 5024: uint16(60560), + 5025: uint16(34779), + 5026: uint16(49029), + 5027: uint16(44450), + 5028: uint16(36509), + 5029: uint16(39069), + 5030: uint16(9504), + 5031: uint16(70), + 5032: uint16(40774), + 5033: uint16(58239), + 5034: uint16(51669), + 5035: uint16(62596), + 5036: uint16(19926), + 5037: uint16(58118), + 5038: uint16(6326), + 5039: uint16(2322), + 5041: uint16(1024), + 5043: uint16(32), + 5045: uint16(512), + 5050: uint16(8192), + 5057: uint16(8), + 5058: uint16(36352), + 5059: uint16(28280), + 5060: uint16(16223), + 5061: uint16(56702), + 5062: uint16(63293), + 5063: uint16(39932), + 5064: uint16(44796), + 5065: uint16(65490), + 5066: uint16(27535), + 5067: uint16(59377), + 5068: uint16(47807), + 5069: uint16(28334), + 5070: uint16(61207), + 5071: uint16(42972), + 5072: uint16(46654), + 5073: uint16(30645), + 5074: uint16(37577), + 5075: uint16(42455), + 5076: uint16(19126), + 5077: uint16(39790), + 5078: uint16(33209), + 5079: uint16(26445), + 5080: uint16(21758), + 5081: uint16(39921), + 5082: uint16(65122), + 5083: uint16(21103), + 5084: uint16(14039), + 5085: uint16(49150), + 5086: uint16(17705), + 5087: uint16(63873), + 5088: uint16(26045), + 5089: uint16(17062), + 5090: uint16(57), + 5091: uint16(16896), + 5092: uint16(36704), + 5093: uint16(37888), + 5094: uint16(16448), + 5095: uint16(45010), + 5096: uint16(53719), + 5097: uint16(219), + 5098: uint16(39072), + 5099: uint16(31666), + 5100: uint16(20998), + 5101: uint16(38944), + 5102: uint16(51222), + 5103: uint16(2365), + 5105: uint16(1), + 5107: uint16(2561), + 5108: uint16(2226), + 5109: uint16(128), + 5111: uint16(34820), + 5112: uint16(5152), + 5113: uint16(19472), + 5115: uint16(4), + 5116: uint16(17569), + 5117: uint16(16), + 5118: uint16(321), + 5119: uint16(2048), + 5120: uint16(61504), + 5121: uint16(20447), + 5122: uint16(22582), + 5123: uint16(62961), + 5124: uint16(32949), + 5125: uint16(26613), + 5126: uint16(16512), + 5127: uint16(20480), + 5128: uint16(16718), + 5129: uint16(33992), + 5130: uint16(23040), + 5131: uint16(55392), + 5132: uint16(11009), + 5133: uint16(20481), + 5134: uint16(5793), + 5135: uint16(16580), + 5136: uint16(28402), + 5137: uint16(44049), + 5138: uint16(14624), + 5139: uint16(49348), + 5140: uint16(1800), + 5141: uint16(2316), + 5142: uint16(38552), + 5143: uint16(39876), + 5144: uint16(7184), + 5145: uint16(27800), + 5146: uint16(10886), + 5147: uint16(422), + 5148: uint16(4422), + 5149: uint16(58733), + 5150: uint16(50379), + 5151: uint16(37568), + 5152: uint16(8464), + 5153: uint16(4630), + 5154: uint16(29341), + 5155: uint16(27124), + 5156: uint16(5902), + 5157: uint16(41514), + 5158: uint16(62593), + 5159: uint16(123), + 5160: uint16(41992), + 5161: uint16(36875), + 5162: uint16(11280), + 5163: uint16(14796), + 5164: uint16(330), + 5165: uint16(5872), + 5166: uint16(2571), + 5167: uint16(3136), + 5168: uint16(59933), + 5169: uint16(17420), + 5170: uint16(17678), + 5171: uint16(2), +} + +var _ksc = [93][94]uint16{ + 0: { + 0: uint16(12288), + 1: uint16(12289), + 2: uint16(12290), + 3: uint16(183), + 4: uint16(8229), + 5: uint16(8230), + 6: uint16(168), + 7: uint16(12291), + 8: uint16(173), + 9: uint16(8213), + 10: uint16(8741), + 11: uint16(65340), + 12: uint16(8764), + 13: uint16(8216), + 14: uint16(8217), + 15: uint16(8220), + 16: uint16(8221), + 17: uint16(12308), + 18: uint16(12309), + 19: uint16(12296), + 20: uint16(12297), + 21: uint16(12298), + 22: uint16(12299), + 23: uint16(12300), + 24: uint16(12301), + 25: uint16(12302), + 26: uint16(12303), + 27: uint16(12304), + 28: uint16(12305), + 29: uint16(177), + 30: uint16(215), + 31: uint16(247), + 32: uint16(8800), + 33: uint16(8804), + 34: uint16(8805), + 35: uint16(8734), + 36: uint16(8756), + 37: uint16(176), + 38: uint16(8242), + 39: uint16(8243), + 40: uint16(8451), + 41: uint16(8491), + 42: uint16(65504), + 43: uint16(65505), + 44: uint16(65509), + 45: uint16(9794), + 46: uint16(9792), + 47: uint16(8736), + 48: uint16(8869), + 49: uint16(8978), + 50: uint16(8706), + 51: uint16(8711), + 52: uint16(8801), + 53: uint16(8786), + 54: uint16(167), + 55: uint16(8251), + 56: uint16(9734), + 57: uint16(9733), + 58: uint16(9675), + 59: uint16(9679), + 60: uint16(9678), + 61: uint16(9671), + 62: uint16(9670), + 63: uint16(9633), + 64: uint16(9632), + 65: uint16(9651), + 66: uint16(9650), + 67: uint16(9661), + 68: uint16(9660), + 69: uint16(8594), + 70: uint16(8592), + 71: uint16(8593), + 72: uint16(8595), + 73: uint16(8596), + 74: uint16(12307), + 75: uint16(8810), + 76: uint16(8811), + 77: uint16(8730), + 78: uint16(8765), + 79: uint16(8733), + 80: uint16(8757), + 81: uint16(8747), + 82: uint16(8748), + 83: uint16(8712), + 84: uint16(8715), + 85: uint16(8838), + 86: uint16(8839), + 87: uint16(8834), + 88: uint16(8835), + 89: uint16(8746), + 90: uint16(8745), + 91: uint16(8743), + 92: uint16(8744), + 93: uint16(65506), + }, + 1: { + 0: uint16(8658), + 1: uint16(8660), + 2: uint16(8704), + 3: uint16(8707), + 4: uint16(180), + 5: uint16(65374), + 6: uint16(711), + 7: uint16(728), + 8: uint16(733), + 9: uint16(730), + 10: uint16(729), + 11: uint16(184), + 12: uint16(731), + 13: uint16(161), + 14: uint16(191), + 15: uint16(720), + 16: uint16(8750), + 17: uint16(8721), + 18: uint16(8719), + 19: uint16(164), + 20: uint16(8457), + 21: uint16(8240), + 22: uint16(9665), + 23: uint16(9664), + 24: uint16(9655), + 25: uint16(9654), + 26: uint16(9828), + 27: uint16(9824), + 28: uint16(9825), + 29: uint16(9829), + 30: uint16(9831), + 31: uint16(9827), + 32: uint16(8857), + 33: uint16(9672), + 34: uint16(9635), + 35: uint16(9680), + 36: uint16(9681), + 37: uint16(9618), + 38: uint16(9636), + 39: uint16(9637), + 40: uint16(9640), + 41: uint16(9639), + 42: uint16(9638), + 43: uint16(9641), + 44: uint16(9832), + 45: uint16(9743), + 46: uint16(9742), + 47: uint16(9756), + 48: uint16(9758), + 49: uint16(182), + 50: uint16(8224), + 51: uint16(8225), + 52: uint16(8597), + 53: uint16(8599), + 54: uint16(8601), + 55: uint16(8598), + 56: uint16(8600), + 57: uint16(9837), + 58: uint16(9833), + 59: uint16(9834), + 60: uint16(9836), + 61: uint16(12927), + 62: uint16(12828), + 63: uint16(8470), + 64: uint16(13255), + 65: uint16(8482), + 66: uint16(13250), + 67: uint16(13272), + 68: uint16(8481), + 69: uint16(8364), + 70: uint16(174), + }, + 2: { + 0: uint16(65281), + 1: uint16(65282), + 2: uint16(65283), + 3: uint16(65284), + 4: uint16(65285), + 5: uint16(65286), + 6: uint16(65287), + 7: uint16(65288), + 8: uint16(65289), + 9: uint16(65290), + 10: uint16(65291), + 11: uint16(65292), + 12: uint16(65293), + 13: uint16(65294), + 14: uint16(65295), + 15: uint16(65296), + 16: uint16(65297), + 17: uint16(65298), + 18: uint16(65299), + 19: uint16(65300), + 20: uint16(65301), + 21: uint16(65302), + 22: uint16(65303), + 23: uint16(65304), + 24: uint16(65305), + 25: uint16(65306), + 26: uint16(65307), + 27: uint16(65308), + 28: uint16(65309), + 29: uint16(65310), + 30: uint16(65311), + 31: uint16(65312), + 32: uint16(65313), + 33: uint16(65314), + 34: uint16(65315), + 35: uint16(65316), + 36: uint16(65317), + 37: uint16(65318), + 38: uint16(65319), + 39: uint16(65320), + 40: uint16(65321), + 41: uint16(65322), + 42: uint16(65323), + 43: uint16(65324), + 44: uint16(65325), + 45: uint16(65326), + 46: uint16(65327), + 47: uint16(65328), + 48: uint16(65329), + 49: uint16(65330), + 50: uint16(65331), + 51: uint16(65332), + 52: uint16(65333), + 53: uint16(65334), + 54: uint16(65335), + 55: uint16(65336), + 56: uint16(65337), + 57: uint16(65338), + 58: uint16(65339), + 59: uint16(65510), + 60: uint16(65341), + 61: uint16(65342), + 62: uint16(65343), + 63: uint16(65344), + 64: uint16(65345), + 65: uint16(65346), + 66: uint16(65347), + 67: uint16(65348), + 68: uint16(65349), + 69: uint16(65350), + 70: uint16(65351), + 71: uint16(65352), + 72: uint16(65353), + 73: uint16(65354), + 74: uint16(65355), + 75: uint16(65356), + 76: uint16(65357), + 77: uint16(65358), + 78: uint16(65359), + 79: uint16(65360), + 80: uint16(65361), + 81: uint16(65362), + 82: uint16(65363), + 83: uint16(65364), + 84: uint16(65365), + 85: uint16(65366), + 86: uint16(65367), + 87: uint16(65368), + 88: uint16(65369), + 89: uint16(65370), + 90: uint16(65371), + 91: uint16(65372), + 92: uint16(65373), + 93: uint16(65507), + }, + 3: { + 0: uint16(12593), + 1: uint16(12594), + 2: uint16(12595), + 3: uint16(12596), + 4: uint16(12597), + 5: uint16(12598), + 6: uint16(12599), + 7: uint16(12600), + 8: uint16(12601), + 9: uint16(12602), + 10: uint16(12603), + 11: uint16(12604), + 12: uint16(12605), + 13: uint16(12606), + 14: uint16(12607), + 15: uint16(12608), + 16: uint16(12609), + 17: uint16(12610), + 18: uint16(12611), + 19: uint16(12612), + 20: uint16(12613), + 21: uint16(12614), + 22: uint16(12615), + 23: uint16(12616), + 24: uint16(12617), + 25: uint16(12618), + 26: uint16(12619), + 27: uint16(12620), + 28: uint16(12621), + 29: uint16(12622), + 30: uint16(12623), + 31: uint16(12624), + 32: uint16(12625), + 33: uint16(12626), + 34: uint16(12627), + 35: uint16(12628), + 36: uint16(12629), + 37: uint16(12630), + 38: uint16(12631), + 39: uint16(12632), + 40: uint16(12633), + 41: uint16(12634), + 42: uint16(12635), + 43: uint16(12636), + 44: uint16(12637), + 45: uint16(12638), + 46: uint16(12639), + 47: uint16(12640), + 48: uint16(12641), + 49: uint16(12642), + 50: uint16(12643), + 51: uint16(12644), + 52: uint16(12645), + 53: uint16(12646), + 54: uint16(12647), + 55: uint16(12648), + 56: uint16(12649), + 57: uint16(12650), + 58: uint16(12651), + 59: uint16(12652), + 60: uint16(12653), + 61: uint16(12654), + 62: uint16(12655), + 63: uint16(12656), + 64: uint16(12657), + 65: uint16(12658), + 66: uint16(12659), + 67: uint16(12660), + 68: uint16(12661), + 69: uint16(12662), + 70: uint16(12663), + 71: uint16(12664), + 72: uint16(12665), + 73: uint16(12666), + 74: uint16(12667), + 75: uint16(12668), + 76: uint16(12669), + 77: uint16(12670), + 78: uint16(12671), + 79: uint16(12672), + 80: uint16(12673), + 81: uint16(12674), + 82: uint16(12675), + 83: uint16(12676), + 84: uint16(12677), + 85: uint16(12678), + 86: uint16(12679), + 87: uint16(12680), + 88: uint16(12681), + 89: uint16(12682), + 90: uint16(12683), + 91: uint16(12684), + 92: uint16(12685), + 93: uint16(12686), + }, + 4: { + 0: uint16(8560), + 1: uint16(8561), + 2: uint16(8562), + 3: uint16(8563), + 4: uint16(8564), + 5: uint16(8565), + 6: uint16(8566), + 7: uint16(8567), + 8: uint16(8568), + 9: uint16(8569), + 15: uint16(8544), + 16: uint16(8545), + 17: uint16(8546), + 18: uint16(8547), + 19: uint16(8548), + 20: uint16(8549), + 21: uint16(8550), + 22: uint16(8551), + 23: uint16(8552), + 24: uint16(8553), + 32: uint16(913), + 33: uint16(914), + 34: uint16(915), + 35: uint16(916), + 36: uint16(917), + 37: uint16(918), + 38: uint16(919), + 39: uint16(920), + 40: uint16(921), + 41: uint16(922), + 42: uint16(923), + 43: uint16(924), + 44: uint16(925), + 45: uint16(926), + 46: uint16(927), + 47: uint16(928), + 48: uint16(929), + 49: uint16(931), + 50: uint16(932), + 51: uint16(933), + 52: uint16(934), + 53: uint16(935), + 54: uint16(936), + 55: uint16(937), + 64: uint16(945), + 65: uint16(946), + 66: uint16(947), + 67: uint16(948), + 68: uint16(949), + 69: uint16(950), + 70: uint16(951), + 71: uint16(952), + 72: uint16(953), + 73: uint16(954), + 74: uint16(955), + 75: uint16(956), + 76: uint16(957), + 77: uint16(958), + 78: uint16(959), + 79: uint16(960), + 80: uint16(961), + 81: uint16(963), + 82: uint16(964), + 83: uint16(965), + 84: uint16(966), + 85: uint16(967), + 86: uint16(968), + 87: uint16(969), + }, + 5: { + 0: uint16(9472), + 1: uint16(9474), + 2: uint16(9484), + 3: uint16(9488), + 4: uint16(9496), + 5: uint16(9492), + 6: uint16(9500), + 7: uint16(9516), + 8: uint16(9508), + 9: uint16(9524), + 10: uint16(9532), + 11: uint16(9473), + 12: uint16(9475), + 13: uint16(9487), + 14: uint16(9491), + 15: uint16(9499), + 16: uint16(9495), + 17: uint16(9507), + 18: uint16(9523), + 19: uint16(9515), + 20: uint16(9531), + 21: uint16(9547), + 22: uint16(9504), + 23: uint16(9519), + 24: uint16(9512), + 25: uint16(9527), + 26: uint16(9535), + 27: uint16(9501), + 28: uint16(9520), + 29: uint16(9509), + 30: uint16(9528), + 31: uint16(9538), + 32: uint16(9490), + 33: uint16(9489), + 34: uint16(9498), + 35: uint16(9497), + 36: uint16(9494), + 37: uint16(9493), + 38: uint16(9486), + 39: uint16(9485), + 40: uint16(9502), + 41: uint16(9503), + 42: uint16(9505), + 43: uint16(9506), + 44: uint16(9510), + 45: uint16(9511), + 46: uint16(9513), + 47: uint16(9514), + 48: uint16(9517), + 49: uint16(9518), + 50: uint16(9521), + 51: uint16(9522), + 52: uint16(9525), + 53: uint16(9526), + 54: uint16(9529), + 55: uint16(9530), + 56: uint16(9533), + 57: uint16(9534), + 58: uint16(9536), + 59: uint16(9537), + 60: uint16(9539), + 61: uint16(9540), + 62: uint16(9541), + 63: uint16(9542), + 64: uint16(9543), + 65: uint16(9544), + 66: uint16(9545), + 67: uint16(9546), + }, + 6: { + 0: uint16(13205), + 1: uint16(13206), + 2: uint16(13207), + 3: uint16(8467), + 4: uint16(13208), + 5: uint16(13252), + 6: uint16(13219), + 7: uint16(13220), + 8: uint16(13221), + 9: uint16(13222), + 10: uint16(13209), + 11: uint16(13210), + 12: uint16(13211), + 13: uint16(13212), + 14: uint16(13213), + 15: uint16(13214), + 16: uint16(13215), + 17: uint16(13216), + 18: uint16(13217), + 19: uint16(13218), + 20: uint16(13258), + 21: uint16(13197), + 22: uint16(13198), + 23: uint16(13199), + 24: uint16(13263), + 25: uint16(13192), + 26: uint16(13193), + 27: uint16(13256), + 28: uint16(13223), + 29: uint16(13224), + 30: uint16(13232), + 31: uint16(13233), + 32: uint16(13234), + 33: uint16(13235), + 34: uint16(13236), + 35: uint16(13237), + 36: uint16(13238), + 37: uint16(13239), + 38: uint16(13240), + 39: uint16(13241), + 40: uint16(13184), + 41: uint16(13185), + 42: uint16(13186), + 43: uint16(13187), + 44: uint16(13188), + 45: uint16(13242), + 46: uint16(13243), + 47: uint16(13244), + 48: uint16(13245), + 49: uint16(13246), + 50: uint16(13247), + 51: uint16(13200), + 52: uint16(13201), + 53: uint16(13202), + 54: uint16(13203), + 55: uint16(13204), + 56: uint16(8486), + 57: uint16(13248), + 58: uint16(13249), + 59: uint16(13194), + 60: uint16(13195), + 61: uint16(13196), + 62: uint16(13270), + 63: uint16(13253), + 64: uint16(13229), + 65: uint16(13230), + 66: uint16(13231), + 67: uint16(13275), + 68: uint16(13225), + 69: uint16(13226), + 70: uint16(13227), + 71: uint16(13228), + 72: uint16(13277), + 73: uint16(13264), + 74: uint16(13267), + 75: uint16(13251), + 76: uint16(13257), + 77: uint16(13276), + 78: uint16(13254), + }, + 7: { + 0: uint16(198), + 1: uint16(208), + 2: uint16(170), + 3: uint16(294), + 5: uint16(306), + 7: uint16(319), + 8: uint16(321), + 9: uint16(216), + 10: uint16(338), + 11: uint16(186), + 12: uint16(222), + 13: uint16(358), + 14: uint16(330), + 16: uint16(12896), + 17: uint16(12897), + 18: uint16(12898), + 19: uint16(12899), + 20: uint16(12900), + 21: uint16(12901), + 22: uint16(12902), + 23: uint16(12903), + 24: uint16(12904), + 25: uint16(12905), + 26: uint16(12906), + 27: uint16(12907), + 28: uint16(12908), + 29: uint16(12909), + 30: uint16(12910), + 31: uint16(12911), + 32: uint16(12912), + 33: uint16(12913), + 34: uint16(12914), + 35: uint16(12915), + 36: uint16(12916), + 37: uint16(12917), + 38: uint16(12918), + 39: uint16(12919), + 40: uint16(12920), + 41: uint16(12921), + 42: uint16(12922), + 43: uint16(12923), + 44: uint16(9424), + 45: uint16(9425), + 46: uint16(9426), + 47: uint16(9427), + 48: uint16(9428), + 49: uint16(9429), + 50: uint16(9430), + 51: uint16(9431), + 52: uint16(9432), + 53: uint16(9433), + 54: uint16(9434), + 55: uint16(9435), + 56: uint16(9436), + 57: uint16(9437), + 58: uint16(9438), + 59: uint16(9439), + 60: uint16(9440), + 61: uint16(9441), + 62: uint16(9442), + 63: uint16(9443), + 64: uint16(9444), + 65: uint16(9445), + 66: uint16(9446), + 67: uint16(9447), + 68: uint16(9448), + 69: uint16(9449), + 70: uint16(9312), + 71: uint16(9313), + 72: uint16(9314), + 73: uint16(9315), + 74: uint16(9316), + 75: uint16(9317), + 76: uint16(9318), + 77: uint16(9319), + 78: uint16(9320), + 79: uint16(9321), + 80: uint16(9322), + 81: uint16(9323), + 82: uint16(9324), + 83: uint16(9325), + 84: uint16(9326), + 85: uint16(189), + 86: uint16(8531), + 87: uint16(8532), + 88: uint16(188), + 89: uint16(190), + 90: uint16(8539), + 91: uint16(8540), + 92: uint16(8541), + 93: uint16(8542), + }, + 8: { + 0: uint16(230), + 1: uint16(273), + 2: uint16(240), + 3: uint16(295), + 4: uint16(305), + 5: uint16(307), + 6: uint16(312), + 7: uint16(320), + 8: uint16(322), + 9: uint16(248), + 10: uint16(339), + 11: uint16(223), + 12: uint16(254), + 13: uint16(359), + 14: uint16(331), + 15: uint16(329), + 16: uint16(12800), + 17: uint16(12801), + 18: uint16(12802), + 19: uint16(12803), + 20: uint16(12804), + 21: uint16(12805), + 22: uint16(12806), + 23: uint16(12807), + 24: uint16(12808), + 25: uint16(12809), + 26: uint16(12810), + 27: uint16(12811), + 28: uint16(12812), + 29: uint16(12813), + 30: uint16(12814), + 31: uint16(12815), + 32: uint16(12816), + 33: uint16(12817), + 34: uint16(12818), + 35: uint16(12819), + 36: uint16(12820), + 37: uint16(12821), + 38: uint16(12822), + 39: uint16(12823), + 40: uint16(12824), + 41: uint16(12825), + 42: uint16(12826), + 43: uint16(12827), + 44: uint16(9372), + 45: uint16(9373), + 46: uint16(9374), + 47: uint16(9375), + 48: uint16(9376), + 49: uint16(9377), + 50: uint16(9378), + 51: uint16(9379), + 52: uint16(9380), + 53: uint16(9381), + 54: uint16(9382), + 55: uint16(9383), + 56: uint16(9384), + 57: uint16(9385), + 58: uint16(9386), + 59: uint16(9387), + 60: uint16(9388), + 61: uint16(9389), + 62: uint16(9390), + 63: uint16(9391), + 64: uint16(9392), + 65: uint16(9393), + 66: uint16(9394), + 67: uint16(9395), + 68: uint16(9396), + 69: uint16(9397), + 70: uint16(9332), + 71: uint16(9333), + 72: uint16(9334), + 73: uint16(9335), + 74: uint16(9336), + 75: uint16(9337), + 76: uint16(9338), + 77: uint16(9339), + 78: uint16(9340), + 79: uint16(9341), + 80: uint16(9342), + 81: uint16(9343), + 82: uint16(9344), + 83: uint16(9345), + 84: uint16(9346), + 85: uint16(185), + 86: uint16(178), + 87: uint16(179), + 88: uint16(8308), + 89: uint16(8319), + 90: uint16(8321), + 91: uint16(8322), + 92: uint16(8323), + 93: uint16(8324), + }, + 9: { + 0: uint16(12353), + 1: uint16(12354), + 2: uint16(12355), + 3: uint16(12356), + 4: uint16(12357), + 5: uint16(12358), + 6: uint16(12359), + 7: uint16(12360), + 8: uint16(12361), + 9: uint16(12362), + 10: uint16(12363), + 11: uint16(12364), + 12: uint16(12365), + 13: uint16(12366), + 14: uint16(12367), + 15: uint16(12368), + 16: uint16(12369), + 17: uint16(12370), + 18: uint16(12371), + 19: uint16(12372), + 20: uint16(12373), + 21: uint16(12374), + 22: uint16(12375), + 23: uint16(12376), + 24: uint16(12377), + 25: uint16(12378), + 26: uint16(12379), + 27: uint16(12380), + 28: uint16(12381), + 29: uint16(12382), + 30: uint16(12383), + 31: uint16(12384), + 32: uint16(12385), + 33: uint16(12386), + 34: uint16(12387), + 35: uint16(12388), + 36: uint16(12389), + 37: uint16(12390), + 38: uint16(12391), + 39: uint16(12392), + 40: uint16(12393), + 41: uint16(12394), + 42: uint16(12395), + 43: uint16(12396), + 44: uint16(12397), + 45: uint16(12398), + 46: uint16(12399), + 47: uint16(12400), + 48: uint16(12401), + 49: uint16(12402), + 50: uint16(12403), + 51: uint16(12404), + 52: uint16(12405), + 53: uint16(12406), + 54: uint16(12407), + 55: uint16(12408), + 56: uint16(12409), + 57: uint16(12410), + 58: uint16(12411), + 59: uint16(12412), + 60: uint16(12413), + 61: uint16(12414), + 62: uint16(12415), + 63: uint16(12416), + 64: uint16(12417), + 65: uint16(12418), + 66: uint16(12419), + 67: uint16(12420), + 68: uint16(12421), + 69: uint16(12422), + 70: uint16(12423), + 71: uint16(12424), + 72: uint16(12425), + 73: uint16(12426), + 74: uint16(12427), + 75: uint16(12428), + 76: uint16(12429), + 77: uint16(12430), + 78: uint16(12431), + 79: uint16(12432), + 80: uint16(12433), + 81: uint16(12434), + 82: uint16(12435), + }, + 10: { + 0: uint16(12449), + 1: uint16(12450), + 2: uint16(12451), + 3: uint16(12452), + 4: uint16(12453), + 5: uint16(12454), + 6: uint16(12455), + 7: uint16(12456), + 8: uint16(12457), + 9: uint16(12458), + 10: uint16(12459), + 11: uint16(12460), + 12: uint16(12461), + 13: uint16(12462), + 14: uint16(12463), + 15: uint16(12464), + 16: uint16(12465), + 17: uint16(12466), + 18: uint16(12467), + 19: uint16(12468), + 20: uint16(12469), + 21: uint16(12470), + 22: uint16(12471), + 23: uint16(12472), + 24: uint16(12473), + 25: uint16(12474), + 26: uint16(12475), + 27: uint16(12476), + 28: uint16(12477), + 29: uint16(12478), + 30: uint16(12479), + 31: uint16(12480), + 32: uint16(12481), + 33: uint16(12482), + 34: uint16(12483), + 35: uint16(12484), + 36: uint16(12485), + 37: uint16(12486), + 38: uint16(12487), + 39: uint16(12488), + 40: uint16(12489), + 41: uint16(12490), + 42: uint16(12491), + 43: uint16(12492), + 44: uint16(12493), + 45: uint16(12494), + 46: uint16(12495), + 47: uint16(12496), + 48: uint16(12497), + 49: uint16(12498), + 50: uint16(12499), + 51: uint16(12500), + 52: uint16(12501), + 53: uint16(12502), + 54: uint16(12503), + 55: uint16(12504), + 56: uint16(12505), + 57: uint16(12506), + 58: uint16(12507), + 59: uint16(12508), + 60: uint16(12509), + 61: uint16(12510), + 62: uint16(12511), + 63: uint16(12512), + 64: uint16(12513), + 65: uint16(12514), + 66: uint16(12515), + 67: uint16(12516), + 68: uint16(12517), + 69: uint16(12518), + 70: uint16(12519), + 71: uint16(12520), + 72: uint16(12521), + 73: uint16(12522), + 74: uint16(12523), + 75: uint16(12524), + 76: uint16(12525), + 77: uint16(12526), + 78: uint16(12527), + 79: uint16(12528), + 80: uint16(12529), + 81: uint16(12530), + 82: uint16(12531), + 83: uint16(12532), + 84: uint16(12533), + 85: uint16(12534), + }, + 11: { + 0: uint16(1040), + 1: uint16(1041), + 2: uint16(1042), + 3: uint16(1043), + 4: uint16(1044), + 5: uint16(1045), + 6: uint16(1025), + 7: uint16(1046), + 8: uint16(1047), + 9: uint16(1048), + 10: uint16(1049), + 11: uint16(1050), + 12: uint16(1051), + 13: uint16(1052), + 14: uint16(1053), + 15: uint16(1054), + 16: uint16(1055), + 17: uint16(1056), + 18: uint16(1057), + 19: uint16(1058), + 20: uint16(1059), + 21: uint16(1060), + 22: uint16(1061), + 23: uint16(1062), + 24: uint16(1063), + 25: uint16(1064), + 26: uint16(1065), + 27: uint16(1066), + 28: uint16(1067), + 29: uint16(1068), + 30: uint16(1069), + 31: uint16(1070), + 32: uint16(1071), + 48: uint16(1072), + 49: uint16(1073), + 50: uint16(1074), + 51: uint16(1075), + 52: uint16(1076), + 53: uint16(1077), + 54: uint16(1105), + 55: uint16(1078), + 56: uint16(1079), + 57: uint16(1080), + 58: uint16(1081), + 59: uint16(1082), + 60: uint16(1083), + 61: uint16(1084), + 62: uint16(1085), + 63: uint16(1086), + 64: uint16(1087), + 65: uint16(1088), + 66: uint16(1089), + 67: uint16(1090), + 68: uint16(1091), + 69: uint16(1092), + 70: uint16(1093), + 71: uint16(1094), + 72: uint16(1095), + 73: uint16(1096), + 74: uint16(1097), + 75: uint16(1098), + 76: uint16(1099), + 77: uint16(1100), + 78: uint16(1101), + 79: uint16(1102), + 80: uint16(1103), + }, + 12: {}, + 13: {}, + 14: {}, + 15: { + 0: uint16(44032), + 1: uint16(44033), + 2: uint16(44036), + 3: uint16(44039), + 4: uint16(44040), + 5: uint16(44041), + 6: uint16(44042), + 7: uint16(44048), + 8: uint16(44049), + 9: uint16(44050), + 10: uint16(44051), + 11: uint16(44052), + 12: uint16(44053), + 13: uint16(44054), + 14: uint16(44055), + 15: uint16(44057), + 16: uint16(44058), + 17: uint16(44059), + 18: uint16(44060), + 19: uint16(44061), + 20: uint16(44064), + 21: uint16(44068), + 22: uint16(44076), + 23: uint16(44077), + 24: uint16(44079), + 25: uint16(44080), + 26: uint16(44081), + 27: uint16(44088), + 28: uint16(44089), + 29: uint16(44092), + 30: uint16(44096), + 31: uint16(44107), + 32: uint16(44109), + 33: uint16(44116), + 34: uint16(44120), + 35: uint16(44124), + 36: uint16(44144), + 37: uint16(44145), + 38: uint16(44148), + 39: uint16(44151), + 40: uint16(44152), + 41: uint16(44154), + 42: uint16(44160), + 43: uint16(44161), + 44: uint16(44163), + 45: uint16(44164), + 46: uint16(44165), + 47: uint16(44166), + 48: uint16(44169), + 49: uint16(44170), + 50: uint16(44171), + 51: uint16(44172), + 52: uint16(44176), + 53: uint16(44180), + 54: uint16(44188), + 55: uint16(44189), + 56: uint16(44191), + 57: uint16(44192), + 58: uint16(44193), + 59: uint16(44200), + 60: uint16(44201), + 61: uint16(44202), + 62: uint16(44204), + 63: uint16(44207), + 64: uint16(44208), + 65: uint16(44216), + 66: uint16(44217), + 67: uint16(44219), + 68: uint16(44220), + 69: uint16(44221), + 70: uint16(44225), + 71: uint16(44228), + 72: uint16(44232), + 73: uint16(44236), + 74: uint16(44245), + 75: uint16(44247), + 76: uint16(44256), + 77: uint16(44257), + 78: uint16(44260), + 79: uint16(44263), + 80: uint16(44264), + 81: uint16(44266), + 82: uint16(44268), + 83: uint16(44271), + 84: uint16(44272), + 85: uint16(44273), + 86: uint16(44275), + 87: uint16(44277), + 88: uint16(44278), + 89: uint16(44284), + 90: uint16(44285), + 91: uint16(44288), + 92: uint16(44292), + 93: uint16(44294), + }, + 16: { + 0: uint16(44300), + 1: uint16(44301), + 2: uint16(44303), + 3: uint16(44305), + 4: uint16(44312), + 5: uint16(44316), + 6: uint16(44320), + 7: uint16(44329), + 8: uint16(44332), + 9: uint16(44333), + 10: uint16(44340), + 11: uint16(44341), + 12: uint16(44344), + 13: uint16(44348), + 14: uint16(44356), + 15: uint16(44357), + 16: uint16(44359), + 17: uint16(44361), + 18: uint16(44368), + 19: uint16(44372), + 20: uint16(44376), + 21: uint16(44385), + 22: uint16(44387), + 23: uint16(44396), + 24: uint16(44397), + 25: uint16(44400), + 26: uint16(44403), + 27: uint16(44404), + 28: uint16(44405), + 29: uint16(44406), + 30: uint16(44411), + 31: uint16(44412), + 32: uint16(44413), + 33: uint16(44415), + 34: uint16(44417), + 35: uint16(44418), + 36: uint16(44424), + 37: uint16(44425), + 38: uint16(44428), + 39: uint16(44432), + 40: uint16(44444), + 41: uint16(44445), + 42: uint16(44452), + 43: uint16(44471), + 44: uint16(44480), + 45: uint16(44481), + 46: uint16(44484), + 47: uint16(44488), + 48: uint16(44496), + 49: uint16(44497), + 50: uint16(44499), + 51: uint16(44508), + 52: uint16(44512), + 53: uint16(44516), + 54: uint16(44536), + 55: uint16(44537), + 56: uint16(44540), + 57: uint16(44543), + 58: uint16(44544), + 59: uint16(44545), + 60: uint16(44552), + 61: uint16(44553), + 62: uint16(44555), + 63: uint16(44557), + 64: uint16(44564), + 65: uint16(44592), + 66: uint16(44593), + 67: uint16(44596), + 68: uint16(44599), + 69: uint16(44600), + 70: uint16(44602), + 71: uint16(44608), + 72: uint16(44609), + 73: uint16(44611), + 74: uint16(44613), + 75: uint16(44614), + 76: uint16(44618), + 77: uint16(44620), + 78: uint16(44621), + 79: uint16(44622), + 80: uint16(44624), + 81: uint16(44628), + 82: uint16(44630), + 83: uint16(44636), + 84: uint16(44637), + 85: uint16(44639), + 86: uint16(44640), + 87: uint16(44641), + 88: uint16(44645), + 89: uint16(44648), + 90: uint16(44649), + 91: uint16(44652), + 92: uint16(44656), + 93: uint16(44664), + }, + 17: { + 0: uint16(44665), + 1: uint16(44667), + 2: uint16(44668), + 3: uint16(44669), + 4: uint16(44676), + 5: uint16(44677), + 6: uint16(44684), + 7: uint16(44732), + 8: uint16(44733), + 9: uint16(44734), + 10: uint16(44736), + 11: uint16(44740), + 12: uint16(44748), + 13: uint16(44749), + 14: uint16(44751), + 15: uint16(44752), + 16: uint16(44753), + 17: uint16(44760), + 18: uint16(44761), + 19: uint16(44764), + 20: uint16(44776), + 21: uint16(44779), + 22: uint16(44781), + 23: uint16(44788), + 24: uint16(44792), + 25: uint16(44796), + 26: uint16(44807), + 27: uint16(44808), + 28: uint16(44813), + 29: uint16(44816), + 30: uint16(44844), + 31: uint16(44845), + 32: uint16(44848), + 33: uint16(44850), + 34: uint16(44852), + 35: uint16(44860), + 36: uint16(44861), + 37: uint16(44863), + 38: uint16(44865), + 39: uint16(44866), + 40: uint16(44867), + 41: uint16(44872), + 42: uint16(44873), + 43: uint16(44880), + 44: uint16(44892), + 45: uint16(44893), + 46: uint16(44900), + 47: uint16(44901), + 48: uint16(44921), + 49: uint16(44928), + 50: uint16(44932), + 51: uint16(44936), + 52: uint16(44944), + 53: uint16(44945), + 54: uint16(44949), + 55: uint16(44956), + 56: uint16(44984), + 57: uint16(44985), + 58: uint16(44988), + 59: uint16(44992), + 60: uint16(44999), + 61: uint16(45000), + 62: uint16(45001), + 63: uint16(45003), + 64: uint16(45005), + 65: uint16(45006), + 66: uint16(45012), + 67: uint16(45020), + 68: uint16(45032), + 69: uint16(45033), + 70: uint16(45040), + 71: uint16(45041), + 72: uint16(45044), + 73: uint16(45048), + 74: uint16(45056), + 75: uint16(45057), + 76: uint16(45060), + 77: uint16(45068), + 78: uint16(45072), + 79: uint16(45076), + 80: uint16(45084), + 81: uint16(45085), + 82: uint16(45096), + 83: uint16(45124), + 84: uint16(45125), + 85: uint16(45128), + 86: uint16(45130), + 87: uint16(45132), + 88: uint16(45134), + 89: uint16(45139), + 90: uint16(45140), + 91: uint16(45141), + 92: uint16(45143), + 93: uint16(45145), + }, + 18: { + 0: uint16(45149), + 1: uint16(45180), + 2: uint16(45181), + 3: uint16(45184), + 4: uint16(45188), + 5: uint16(45196), + 6: uint16(45197), + 7: uint16(45199), + 8: uint16(45201), + 9: uint16(45208), + 10: uint16(45209), + 11: uint16(45210), + 12: uint16(45212), + 13: uint16(45215), + 14: uint16(45216), + 15: uint16(45217), + 16: uint16(45218), + 17: uint16(45224), + 18: uint16(45225), + 19: uint16(45227), + 20: uint16(45228), + 21: uint16(45229), + 22: uint16(45230), + 23: uint16(45231), + 24: uint16(45233), + 25: uint16(45235), + 26: uint16(45236), + 27: uint16(45237), + 28: uint16(45240), + 29: uint16(45244), + 30: uint16(45252), + 31: uint16(45253), + 32: uint16(45255), + 33: uint16(45256), + 34: uint16(45257), + 35: uint16(45264), + 36: uint16(45265), + 37: uint16(45268), + 38: uint16(45272), + 39: uint16(45280), + 40: uint16(45285), + 41: uint16(45320), + 42: uint16(45321), + 43: uint16(45323), + 44: uint16(45324), + 45: uint16(45328), + 46: uint16(45330), + 47: uint16(45331), + 48: uint16(45336), + 49: uint16(45337), + 50: uint16(45339), + 51: uint16(45340), + 52: uint16(45341), + 53: uint16(45347), + 54: uint16(45348), + 55: uint16(45349), + 56: uint16(45352), + 57: uint16(45356), + 58: uint16(45364), + 59: uint16(45365), + 60: uint16(45367), + 61: uint16(45368), + 62: uint16(45369), + 63: uint16(45376), + 64: uint16(45377), + 65: uint16(45380), + 66: uint16(45384), + 67: uint16(45392), + 68: uint16(45393), + 69: uint16(45396), + 70: uint16(45397), + 71: uint16(45400), + 72: uint16(45404), + 73: uint16(45408), + 74: uint16(45432), + 75: uint16(45433), + 76: uint16(45436), + 77: uint16(45440), + 78: uint16(45442), + 79: uint16(45448), + 80: uint16(45449), + 81: uint16(45451), + 82: uint16(45453), + 83: uint16(45458), + 84: uint16(45459), + 85: uint16(45460), + 86: uint16(45464), + 87: uint16(45468), + 88: uint16(45480), + 89: uint16(45516), + 90: uint16(45520), + 91: uint16(45524), + 92: uint16(45532), + 93: uint16(45533), + }, + 19: { + 0: uint16(45535), + 1: uint16(45544), + 2: uint16(45545), + 3: uint16(45548), + 4: uint16(45552), + 5: uint16(45561), + 6: uint16(45563), + 7: uint16(45565), + 8: uint16(45572), + 9: uint16(45573), + 10: uint16(45576), + 11: uint16(45579), + 12: uint16(45580), + 13: uint16(45588), + 14: uint16(45589), + 15: uint16(45591), + 16: uint16(45593), + 17: uint16(45600), + 18: uint16(45620), + 19: uint16(45628), + 20: uint16(45656), + 21: uint16(45660), + 22: uint16(45664), + 23: uint16(45672), + 24: uint16(45673), + 25: uint16(45684), + 26: uint16(45685), + 27: uint16(45692), + 28: uint16(45700), + 29: uint16(45701), + 30: uint16(45705), + 31: uint16(45712), + 32: uint16(45713), + 33: uint16(45716), + 34: uint16(45720), + 35: uint16(45721), + 36: uint16(45722), + 37: uint16(45728), + 38: uint16(45729), + 39: uint16(45731), + 40: uint16(45733), + 41: uint16(45734), + 42: uint16(45738), + 43: uint16(45740), + 44: uint16(45744), + 45: uint16(45748), + 46: uint16(45768), + 47: uint16(45769), + 48: uint16(45772), + 49: uint16(45776), + 50: uint16(45778), + 51: uint16(45784), + 52: uint16(45785), + 53: uint16(45787), + 54: uint16(45789), + 55: uint16(45794), + 56: uint16(45796), + 57: uint16(45797), + 58: uint16(45798), + 59: uint16(45800), + 60: uint16(45803), + 61: uint16(45804), + 62: uint16(45805), + 63: uint16(45806), + 64: uint16(45807), + 65: uint16(45811), + 66: uint16(45812), + 67: uint16(45813), + 68: uint16(45815), + 69: uint16(45816), + 70: uint16(45817), + 71: uint16(45818), + 72: uint16(45819), + 73: uint16(45823), + 74: uint16(45824), + 75: uint16(45825), + 76: uint16(45828), + 77: uint16(45832), + 78: uint16(45840), + 79: uint16(45841), + 80: uint16(45843), + 81: uint16(45844), + 82: uint16(45845), + 83: uint16(45852), + 84: uint16(45908), + 85: uint16(45909), + 86: uint16(45910), + 87: uint16(45912), + 88: uint16(45915), + 89: uint16(45916), + 90: uint16(45918), + 91: uint16(45919), + 92: uint16(45924), + 93: uint16(45925), + }, + 20: { + 0: uint16(45927), + 1: uint16(45929), + 2: uint16(45931), + 3: uint16(45934), + 4: uint16(45936), + 5: uint16(45937), + 6: uint16(45940), + 7: uint16(45944), + 8: uint16(45952), + 9: uint16(45953), + 10: uint16(45955), + 11: uint16(45956), + 12: uint16(45957), + 13: uint16(45964), + 14: uint16(45968), + 15: uint16(45972), + 16: uint16(45984), + 17: uint16(45985), + 18: uint16(45992), + 19: uint16(45996), + 20: uint16(46020), + 21: uint16(46021), + 22: uint16(46024), + 23: uint16(46027), + 24: uint16(46028), + 25: uint16(46030), + 26: uint16(46032), + 27: uint16(46036), + 28: uint16(46037), + 29: uint16(46039), + 30: uint16(46041), + 31: uint16(46043), + 32: uint16(46045), + 33: uint16(46048), + 34: uint16(46052), + 35: uint16(46056), + 36: uint16(46076), + 37: uint16(46096), + 38: uint16(46104), + 39: uint16(46108), + 40: uint16(46112), + 41: uint16(46120), + 42: uint16(46121), + 43: uint16(46123), + 44: uint16(46132), + 45: uint16(46160), + 46: uint16(46161), + 47: uint16(46164), + 48: uint16(46168), + 49: uint16(46176), + 50: uint16(46177), + 51: uint16(46179), + 52: uint16(46181), + 53: uint16(46188), + 54: uint16(46208), + 55: uint16(46216), + 56: uint16(46237), + 57: uint16(46244), + 58: uint16(46248), + 59: uint16(46252), + 60: uint16(46261), + 61: uint16(46263), + 62: uint16(46265), + 63: uint16(46272), + 64: uint16(46276), + 65: uint16(46280), + 66: uint16(46288), + 67: uint16(46293), + 68: uint16(46300), + 69: uint16(46301), + 70: uint16(46304), + 71: uint16(46307), + 72: uint16(46308), + 73: uint16(46310), + 74: uint16(46316), + 75: uint16(46317), + 76: uint16(46319), + 77: uint16(46321), + 78: uint16(46328), + 79: uint16(46356), + 80: uint16(46357), + 81: uint16(46360), + 82: uint16(46363), + 83: uint16(46364), + 84: uint16(46372), + 85: uint16(46373), + 86: uint16(46375), + 87: uint16(46376), + 88: uint16(46377), + 89: uint16(46378), + 90: uint16(46384), + 91: uint16(46385), + 92: uint16(46388), + 93: uint16(46392), + }, + 21: { + 0: uint16(46400), + 1: uint16(46401), + 2: uint16(46403), + 3: uint16(46404), + 4: uint16(46405), + 5: uint16(46411), + 6: uint16(46412), + 7: uint16(46413), + 8: uint16(46416), + 9: uint16(46420), + 10: uint16(46428), + 11: uint16(46429), + 12: uint16(46431), + 13: uint16(46432), + 14: uint16(46433), + 15: uint16(46496), + 16: uint16(46497), + 17: uint16(46500), + 18: uint16(46504), + 19: uint16(46506), + 20: uint16(46507), + 21: uint16(46512), + 22: uint16(46513), + 23: uint16(46515), + 24: uint16(46516), + 25: uint16(46517), + 26: uint16(46523), + 27: uint16(46524), + 28: uint16(46525), + 29: uint16(46528), + 30: uint16(46532), + 31: uint16(46540), + 32: uint16(46541), + 33: uint16(46543), + 34: uint16(46544), + 35: uint16(46545), + 36: uint16(46552), + 37: uint16(46572), + 38: uint16(46608), + 39: uint16(46609), + 40: uint16(46612), + 41: uint16(46616), + 42: uint16(46629), + 43: uint16(46636), + 44: uint16(46644), + 45: uint16(46664), + 46: uint16(46692), + 47: uint16(46696), + 48: uint16(46748), + 49: uint16(46749), + 50: uint16(46752), + 51: uint16(46756), + 52: uint16(46763), + 53: uint16(46764), + 54: uint16(46769), + 55: uint16(46804), + 56: uint16(46832), + 57: uint16(46836), + 58: uint16(46840), + 59: uint16(46848), + 60: uint16(46849), + 61: uint16(46853), + 62: uint16(46888), + 63: uint16(46889), + 64: uint16(46892), + 65: uint16(46895), + 66: uint16(46896), + 67: uint16(46904), + 68: uint16(46905), + 69: uint16(46907), + 70: uint16(46916), + 71: uint16(46920), + 72: uint16(46924), + 73: uint16(46932), + 74: uint16(46933), + 75: uint16(46944), + 76: uint16(46948), + 77: uint16(46952), + 78: uint16(46960), + 79: uint16(46961), + 80: uint16(46963), + 81: uint16(46965), + 82: uint16(46972), + 83: uint16(46973), + 84: uint16(46976), + 85: uint16(46980), + 86: uint16(46988), + 87: uint16(46989), + 88: uint16(46991), + 89: uint16(46992), + 90: uint16(46993), + 91: uint16(46994), + 92: uint16(46998), + 93: uint16(46999), + }, + 22: { + 0: uint16(47000), + 1: uint16(47001), + 2: uint16(47004), + 3: uint16(47008), + 4: uint16(47016), + 5: uint16(47017), + 6: uint16(47019), + 7: uint16(47020), + 8: uint16(47021), + 9: uint16(47028), + 10: uint16(47029), + 11: uint16(47032), + 12: uint16(47047), + 13: uint16(47049), + 14: uint16(47084), + 15: uint16(47085), + 16: uint16(47088), + 17: uint16(47092), + 18: uint16(47100), + 19: uint16(47101), + 20: uint16(47103), + 21: uint16(47104), + 22: uint16(47105), + 23: uint16(47111), + 24: uint16(47112), + 25: uint16(47113), + 26: uint16(47116), + 27: uint16(47120), + 28: uint16(47128), + 29: uint16(47129), + 30: uint16(47131), + 31: uint16(47133), + 32: uint16(47140), + 33: uint16(47141), + 34: uint16(47144), + 35: uint16(47148), + 36: uint16(47156), + 37: uint16(47157), + 38: uint16(47159), + 39: uint16(47160), + 40: uint16(47161), + 41: uint16(47168), + 42: uint16(47172), + 43: uint16(47185), + 44: uint16(47187), + 45: uint16(47196), + 46: uint16(47197), + 47: uint16(47200), + 48: uint16(47204), + 49: uint16(47212), + 50: uint16(47213), + 51: uint16(47215), + 52: uint16(47217), + 53: uint16(47224), + 54: uint16(47228), + 55: uint16(47245), + 56: uint16(47272), + 57: uint16(47280), + 58: uint16(47284), + 59: uint16(47288), + 60: uint16(47296), + 61: uint16(47297), + 62: uint16(47299), + 63: uint16(47301), + 64: uint16(47308), + 65: uint16(47312), + 66: uint16(47316), + 67: uint16(47325), + 68: uint16(47327), + 69: uint16(47329), + 70: uint16(47336), + 71: uint16(47337), + 72: uint16(47340), + 73: uint16(47344), + 74: uint16(47352), + 75: uint16(47353), + 76: uint16(47355), + 77: uint16(47357), + 78: uint16(47364), + 79: uint16(47384), + 80: uint16(47392), + 81: uint16(47420), + 82: uint16(47421), + 83: uint16(47424), + 84: uint16(47428), + 85: uint16(47436), + 86: uint16(47439), + 87: uint16(47441), + 88: uint16(47448), + 89: uint16(47449), + 90: uint16(47452), + 91: uint16(47456), + 92: uint16(47464), + 93: uint16(47465), + }, + 23: { + 0: uint16(47467), + 1: uint16(47469), + 2: uint16(47476), + 3: uint16(47477), + 4: uint16(47480), + 5: uint16(47484), + 6: uint16(47492), + 7: uint16(47493), + 8: uint16(47495), + 9: uint16(47497), + 10: uint16(47498), + 11: uint16(47501), + 12: uint16(47502), + 13: uint16(47532), + 14: uint16(47533), + 15: uint16(47536), + 16: uint16(47540), + 17: uint16(47548), + 18: uint16(47549), + 19: uint16(47551), + 20: uint16(47553), + 21: uint16(47560), + 22: uint16(47561), + 23: uint16(47564), + 24: uint16(47566), + 25: uint16(47567), + 26: uint16(47568), + 27: uint16(47569), + 28: uint16(47570), + 29: uint16(47576), + 30: uint16(47577), + 31: uint16(47579), + 32: uint16(47581), + 33: uint16(47582), + 34: uint16(47585), + 35: uint16(47587), + 36: uint16(47588), + 37: uint16(47589), + 38: uint16(47592), + 39: uint16(47596), + 40: uint16(47604), + 41: uint16(47605), + 42: uint16(47607), + 43: uint16(47608), + 44: uint16(47609), + 45: uint16(47610), + 46: uint16(47616), + 47: uint16(47617), + 48: uint16(47624), + 49: uint16(47637), + 50: uint16(47672), + 51: uint16(47673), + 52: uint16(47676), + 53: uint16(47680), + 54: uint16(47682), + 55: uint16(47688), + 56: uint16(47689), + 57: uint16(47691), + 58: uint16(47693), + 59: uint16(47694), + 60: uint16(47699), + 61: uint16(47700), + 62: uint16(47701), + 63: uint16(47704), + 64: uint16(47708), + 65: uint16(47716), + 66: uint16(47717), + 67: uint16(47719), + 68: uint16(47720), + 69: uint16(47721), + 70: uint16(47728), + 71: uint16(47729), + 72: uint16(47732), + 73: uint16(47736), + 74: uint16(47747), + 75: uint16(47748), + 76: uint16(47749), + 77: uint16(47751), + 78: uint16(47756), + 79: uint16(47784), + 80: uint16(47785), + 81: uint16(47787), + 82: uint16(47788), + 83: uint16(47792), + 84: uint16(47794), + 85: uint16(47800), + 86: uint16(47801), + 87: uint16(47803), + 88: uint16(47805), + 89: uint16(47812), + 90: uint16(47816), + 91: uint16(47832), + 92: uint16(47833), + 93: uint16(47868), + }, + 24: { + 0: uint16(47872), + 1: uint16(47876), + 2: uint16(47885), + 3: uint16(47887), + 4: uint16(47889), + 5: uint16(47896), + 6: uint16(47900), + 7: uint16(47904), + 8: uint16(47913), + 9: uint16(47915), + 10: uint16(47924), + 11: uint16(47925), + 12: uint16(47926), + 13: uint16(47928), + 14: uint16(47931), + 15: uint16(47932), + 16: uint16(47933), + 17: uint16(47934), + 18: uint16(47940), + 19: uint16(47941), + 20: uint16(47943), + 21: uint16(47945), + 22: uint16(47949), + 23: uint16(47951), + 24: uint16(47952), + 25: uint16(47956), + 26: uint16(47960), + 27: uint16(47969), + 28: uint16(47971), + 29: uint16(47980), + 30: uint16(48008), + 31: uint16(48012), + 32: uint16(48016), + 33: uint16(48036), + 34: uint16(48040), + 35: uint16(48044), + 36: uint16(48052), + 37: uint16(48055), + 38: uint16(48064), + 39: uint16(48068), + 40: uint16(48072), + 41: uint16(48080), + 42: uint16(48083), + 43: uint16(48120), + 44: uint16(48121), + 45: uint16(48124), + 46: uint16(48127), + 47: uint16(48128), + 48: uint16(48130), + 49: uint16(48136), + 50: uint16(48137), + 51: uint16(48139), + 52: uint16(48140), + 53: uint16(48141), + 54: uint16(48143), + 55: uint16(48145), + 56: uint16(48148), + 57: uint16(48149), + 58: uint16(48150), + 59: uint16(48151), + 60: uint16(48152), + 61: uint16(48155), + 62: uint16(48156), + 63: uint16(48157), + 64: uint16(48158), + 65: uint16(48159), + 66: uint16(48164), + 67: uint16(48165), + 68: uint16(48167), + 69: uint16(48169), + 70: uint16(48173), + 71: uint16(48176), + 72: uint16(48177), + 73: uint16(48180), + 74: uint16(48184), + 75: uint16(48192), + 76: uint16(48193), + 77: uint16(48195), + 78: uint16(48196), + 79: uint16(48197), + 80: uint16(48201), + 81: uint16(48204), + 82: uint16(48205), + 83: uint16(48208), + 84: uint16(48221), + 85: uint16(48260), + 86: uint16(48261), + 87: uint16(48264), + 88: uint16(48267), + 89: uint16(48268), + 90: uint16(48270), + 91: uint16(48276), + 92: uint16(48277), + 93: uint16(48279), + }, + 25: { + 0: uint16(48281), + 1: uint16(48282), + 2: uint16(48288), + 3: uint16(48289), + 4: uint16(48292), + 5: uint16(48295), + 6: uint16(48296), + 7: uint16(48304), + 8: uint16(48305), + 9: uint16(48307), + 10: uint16(48308), + 11: uint16(48309), + 12: uint16(48316), + 13: uint16(48317), + 14: uint16(48320), + 15: uint16(48324), + 16: uint16(48333), + 17: uint16(48335), + 18: uint16(48336), + 19: uint16(48337), + 20: uint16(48341), + 21: uint16(48344), + 22: uint16(48348), + 23: uint16(48372), + 24: uint16(48373), + 25: uint16(48374), + 26: uint16(48376), + 27: uint16(48380), + 28: uint16(48388), + 29: uint16(48389), + 30: uint16(48391), + 31: uint16(48393), + 32: uint16(48400), + 33: uint16(48404), + 34: uint16(48420), + 35: uint16(48428), + 36: uint16(48448), + 37: uint16(48456), + 38: uint16(48457), + 39: uint16(48460), + 40: uint16(48464), + 41: uint16(48472), + 42: uint16(48473), + 43: uint16(48484), + 44: uint16(48488), + 45: uint16(48512), + 46: uint16(48513), + 47: uint16(48516), + 48: uint16(48519), + 49: uint16(48520), + 50: uint16(48521), + 51: uint16(48522), + 52: uint16(48528), + 53: uint16(48529), + 54: uint16(48531), + 55: uint16(48533), + 56: uint16(48537), + 57: uint16(48538), + 58: uint16(48540), + 59: uint16(48548), + 60: uint16(48560), + 61: uint16(48568), + 62: uint16(48596), + 63: uint16(48597), + 64: uint16(48600), + 65: uint16(48604), + 66: uint16(48617), + 67: uint16(48624), + 68: uint16(48628), + 69: uint16(48632), + 70: uint16(48640), + 71: uint16(48643), + 72: uint16(48645), + 73: uint16(48652), + 74: uint16(48653), + 75: uint16(48656), + 76: uint16(48660), + 77: uint16(48668), + 78: uint16(48669), + 79: uint16(48671), + 80: uint16(48708), + 81: uint16(48709), + 82: uint16(48712), + 83: uint16(48716), + 84: uint16(48718), + 85: uint16(48724), + 86: uint16(48725), + 87: uint16(48727), + 88: uint16(48729), + 89: uint16(48730), + 90: uint16(48731), + 91: uint16(48736), + 92: uint16(48737), + 93: uint16(48740), + }, + 26: { + 0: uint16(48744), + 1: uint16(48746), + 2: uint16(48752), + 3: uint16(48753), + 4: uint16(48755), + 5: uint16(48756), + 6: uint16(48757), + 7: uint16(48763), + 8: uint16(48764), + 9: uint16(48765), + 10: uint16(48768), + 11: uint16(48772), + 12: uint16(48780), + 13: uint16(48781), + 14: uint16(48783), + 15: uint16(48784), + 16: uint16(48785), + 17: uint16(48792), + 18: uint16(48793), + 19: uint16(48808), + 20: uint16(48848), + 21: uint16(48849), + 22: uint16(48852), + 23: uint16(48855), + 24: uint16(48856), + 25: uint16(48864), + 26: uint16(48867), + 27: uint16(48868), + 28: uint16(48869), + 29: uint16(48876), + 30: uint16(48897), + 31: uint16(48904), + 32: uint16(48905), + 33: uint16(48920), + 34: uint16(48921), + 35: uint16(48923), + 36: uint16(48924), + 37: uint16(48925), + 38: uint16(48960), + 39: uint16(48961), + 40: uint16(48964), + 41: uint16(48968), + 42: uint16(48976), + 43: uint16(48977), + 44: uint16(48981), + 45: uint16(49044), + 46: uint16(49072), + 47: uint16(49093), + 48: uint16(49100), + 49: uint16(49101), + 50: uint16(49104), + 51: uint16(49108), + 52: uint16(49116), + 53: uint16(49119), + 54: uint16(49121), + 55: uint16(49212), + 56: uint16(49233), + 57: uint16(49240), + 58: uint16(49244), + 59: uint16(49248), + 60: uint16(49256), + 61: uint16(49257), + 62: uint16(49296), + 63: uint16(49297), + 64: uint16(49300), + 65: uint16(49304), + 66: uint16(49312), + 67: uint16(49313), + 68: uint16(49315), + 69: uint16(49317), + 70: uint16(49324), + 71: uint16(49325), + 72: uint16(49327), + 73: uint16(49328), + 74: uint16(49331), + 75: uint16(49332), + 76: uint16(49333), + 77: uint16(49334), + 78: uint16(49340), + 79: uint16(49341), + 80: uint16(49343), + 81: uint16(49344), + 82: uint16(49345), + 83: uint16(49349), + 84: uint16(49352), + 85: uint16(49353), + 86: uint16(49356), + 87: uint16(49360), + 88: uint16(49368), + 89: uint16(49369), + 90: uint16(49371), + 91: uint16(49372), + 92: uint16(49373), + 93: uint16(49380), + }, + 27: { + 0: uint16(49381), + 1: uint16(49384), + 2: uint16(49388), + 3: uint16(49396), + 4: uint16(49397), + 5: uint16(49399), + 6: uint16(49401), + 7: uint16(49408), + 8: uint16(49412), + 9: uint16(49416), + 10: uint16(49424), + 11: uint16(49429), + 12: uint16(49436), + 13: uint16(49437), + 14: uint16(49438), + 15: uint16(49439), + 16: uint16(49440), + 17: uint16(49443), + 18: uint16(49444), + 19: uint16(49446), + 20: uint16(49447), + 21: uint16(49452), + 22: uint16(49453), + 23: uint16(49455), + 24: uint16(49456), + 25: uint16(49457), + 26: uint16(49462), + 27: uint16(49464), + 28: uint16(49465), + 29: uint16(49468), + 30: uint16(49472), + 31: uint16(49480), + 32: uint16(49481), + 33: uint16(49483), + 34: uint16(49484), + 35: uint16(49485), + 36: uint16(49492), + 37: uint16(49493), + 38: uint16(49496), + 39: uint16(49500), + 40: uint16(49508), + 41: uint16(49509), + 42: uint16(49511), + 43: uint16(49512), + 44: uint16(49513), + 45: uint16(49520), + 46: uint16(49524), + 47: uint16(49528), + 48: uint16(49541), + 49: uint16(49548), + 50: uint16(49549), + 51: uint16(49550), + 52: uint16(49552), + 53: uint16(49556), + 54: uint16(49558), + 55: uint16(49564), + 56: uint16(49565), + 57: uint16(49567), + 58: uint16(49569), + 59: uint16(49573), + 60: uint16(49576), + 61: uint16(49577), + 62: uint16(49580), + 63: uint16(49584), + 64: uint16(49597), + 65: uint16(49604), + 66: uint16(49608), + 67: uint16(49612), + 68: uint16(49620), + 69: uint16(49623), + 70: uint16(49624), + 71: uint16(49632), + 72: uint16(49636), + 73: uint16(49640), + 74: uint16(49648), + 75: uint16(49649), + 76: uint16(49651), + 77: uint16(49660), + 78: uint16(49661), + 79: uint16(49664), + 80: uint16(49668), + 81: uint16(49676), + 82: uint16(49677), + 83: uint16(49679), + 84: uint16(49681), + 85: uint16(49688), + 86: uint16(49689), + 87: uint16(49692), + 88: uint16(49695), + 89: uint16(49696), + 90: uint16(49704), + 91: uint16(49705), + 92: uint16(49707), + 93: uint16(49709), + }, + 28: { + 0: uint16(49711), + 1: uint16(49713), + 2: uint16(49714), + 3: uint16(49716), + 4: uint16(49736), + 5: uint16(49744), + 6: uint16(49745), + 7: uint16(49748), + 8: uint16(49752), + 9: uint16(49760), + 10: uint16(49765), + 11: uint16(49772), + 12: uint16(49773), + 13: uint16(49776), + 14: uint16(49780), + 15: uint16(49788), + 16: uint16(49789), + 17: uint16(49791), + 18: uint16(49793), + 19: uint16(49800), + 20: uint16(49801), + 21: uint16(49808), + 22: uint16(49816), + 23: uint16(49819), + 24: uint16(49821), + 25: uint16(49828), + 26: uint16(49829), + 27: uint16(49832), + 28: uint16(49836), + 29: uint16(49837), + 30: uint16(49844), + 31: uint16(49845), + 32: uint16(49847), + 33: uint16(49849), + 34: uint16(49884), + 35: uint16(49885), + 36: uint16(49888), + 37: uint16(49891), + 38: uint16(49892), + 39: uint16(49899), + 40: uint16(49900), + 41: uint16(49901), + 42: uint16(49903), + 43: uint16(49905), + 44: uint16(49910), + 45: uint16(49912), + 46: uint16(49913), + 47: uint16(49915), + 48: uint16(49916), + 49: uint16(49920), + 50: uint16(49928), + 51: uint16(49929), + 52: uint16(49932), + 53: uint16(49933), + 54: uint16(49939), + 55: uint16(49940), + 56: uint16(49941), + 57: uint16(49944), + 58: uint16(49948), + 59: uint16(49956), + 60: uint16(49957), + 61: uint16(49960), + 62: uint16(49961), + 63: uint16(49989), + 64: uint16(50024), + 65: uint16(50025), + 66: uint16(50028), + 67: uint16(50032), + 68: uint16(50034), + 69: uint16(50040), + 70: uint16(50041), + 71: uint16(50044), + 72: uint16(50045), + 73: uint16(50052), + 74: uint16(50056), + 75: uint16(50060), + 76: uint16(50112), + 77: uint16(50136), + 78: uint16(50137), + 79: uint16(50140), + 80: uint16(50143), + 81: uint16(50144), + 82: uint16(50146), + 83: uint16(50152), + 84: uint16(50153), + 85: uint16(50157), + 86: uint16(50164), + 87: uint16(50165), + 88: uint16(50168), + 89: uint16(50184), + 90: uint16(50192), + 91: uint16(50212), + 92: uint16(50220), + 93: uint16(50224), + }, + 29: { + 0: uint16(50228), + 1: uint16(50236), + 2: uint16(50237), + 3: uint16(50248), + 4: uint16(50276), + 5: uint16(50277), + 6: uint16(50280), + 7: uint16(50284), + 8: uint16(50292), + 9: uint16(50293), + 10: uint16(50297), + 11: uint16(50304), + 12: uint16(50324), + 13: uint16(50332), + 14: uint16(50360), + 15: uint16(50364), + 16: uint16(50409), + 17: uint16(50416), + 18: uint16(50417), + 19: uint16(50420), + 20: uint16(50424), + 21: uint16(50426), + 22: uint16(50431), + 23: uint16(50432), + 24: uint16(50433), + 25: uint16(50444), + 26: uint16(50448), + 27: uint16(50452), + 28: uint16(50460), + 29: uint16(50472), + 30: uint16(50473), + 31: uint16(50476), + 32: uint16(50480), + 33: uint16(50488), + 34: uint16(50489), + 35: uint16(50491), + 36: uint16(50493), + 37: uint16(50500), + 38: uint16(50501), + 39: uint16(50504), + 40: uint16(50505), + 41: uint16(50506), + 42: uint16(50508), + 43: uint16(50509), + 44: uint16(50510), + 45: uint16(50515), + 46: uint16(50516), + 47: uint16(50517), + 48: uint16(50519), + 49: uint16(50520), + 50: uint16(50521), + 51: uint16(50525), + 52: uint16(50526), + 53: uint16(50528), + 54: uint16(50529), + 55: uint16(50532), + 56: uint16(50536), + 57: uint16(50544), + 58: uint16(50545), + 59: uint16(50547), + 60: uint16(50548), + 61: uint16(50549), + 62: uint16(50556), + 63: uint16(50557), + 64: uint16(50560), + 65: uint16(50564), + 66: uint16(50567), + 67: uint16(50572), + 68: uint16(50573), + 69: uint16(50575), + 70: uint16(50577), + 71: uint16(50581), + 72: uint16(50583), + 73: uint16(50584), + 74: uint16(50588), + 75: uint16(50592), + 76: uint16(50601), + 77: uint16(50612), + 78: uint16(50613), + 79: uint16(50616), + 80: uint16(50617), + 81: uint16(50619), + 82: uint16(50620), + 83: uint16(50621), + 84: uint16(50622), + 85: uint16(50628), + 86: uint16(50629), + 87: uint16(50630), + 88: uint16(50631), + 89: uint16(50632), + 90: uint16(50633), + 91: uint16(50634), + 92: uint16(50636), + 93: uint16(50638), + }, + 30: { + 0: uint16(50640), + 1: uint16(50641), + 2: uint16(50644), + 3: uint16(50648), + 4: uint16(50656), + 5: uint16(50657), + 6: uint16(50659), + 7: uint16(50661), + 8: uint16(50668), + 9: uint16(50669), + 10: uint16(50670), + 11: uint16(50672), + 12: uint16(50676), + 13: uint16(50678), + 14: uint16(50679), + 15: uint16(50684), + 16: uint16(50685), + 17: uint16(50686), + 18: uint16(50687), + 19: uint16(50688), + 20: uint16(50689), + 21: uint16(50693), + 22: uint16(50694), + 23: uint16(50695), + 24: uint16(50696), + 25: uint16(50700), + 26: uint16(50704), + 27: uint16(50712), + 28: uint16(50713), + 29: uint16(50715), + 30: uint16(50716), + 31: uint16(50724), + 32: uint16(50725), + 33: uint16(50728), + 34: uint16(50732), + 35: uint16(50733), + 36: uint16(50734), + 37: uint16(50736), + 38: uint16(50739), + 39: uint16(50740), + 40: uint16(50741), + 41: uint16(50743), + 42: uint16(50745), + 43: uint16(50747), + 44: uint16(50752), + 45: uint16(50753), + 46: uint16(50756), + 47: uint16(50760), + 48: uint16(50768), + 49: uint16(50769), + 50: uint16(50771), + 51: uint16(50772), + 52: uint16(50773), + 53: uint16(50780), + 54: uint16(50781), + 55: uint16(50784), + 56: uint16(50796), + 57: uint16(50799), + 58: uint16(50801), + 59: uint16(50808), + 60: uint16(50809), + 61: uint16(50812), + 62: uint16(50816), + 63: uint16(50824), + 64: uint16(50825), + 65: uint16(50827), + 66: uint16(50829), + 67: uint16(50836), + 68: uint16(50837), + 69: uint16(50840), + 70: uint16(50844), + 71: uint16(50852), + 72: uint16(50853), + 73: uint16(50855), + 74: uint16(50857), + 75: uint16(50864), + 76: uint16(50865), + 77: uint16(50868), + 78: uint16(50872), + 79: uint16(50873), + 80: uint16(50874), + 81: uint16(50880), + 82: uint16(50881), + 83: uint16(50883), + 84: uint16(50885), + 85: uint16(50892), + 86: uint16(50893), + 87: uint16(50896), + 88: uint16(50900), + 89: uint16(50908), + 90: uint16(50909), + 91: uint16(50912), + 92: uint16(50913), + 93: uint16(50920), + }, + 31: { + 0: uint16(50921), + 1: uint16(50924), + 2: uint16(50928), + 3: uint16(50936), + 4: uint16(50937), + 5: uint16(50941), + 6: uint16(50948), + 7: uint16(50949), + 8: uint16(50952), + 9: uint16(50956), + 10: uint16(50964), + 11: uint16(50965), + 12: uint16(50967), + 13: uint16(50969), + 14: uint16(50976), + 15: uint16(50977), + 16: uint16(50980), + 17: uint16(50984), + 18: uint16(50992), + 19: uint16(50993), + 20: uint16(50995), + 21: uint16(50997), + 22: uint16(50999), + 23: uint16(51004), + 24: uint16(51005), + 25: uint16(51008), + 26: uint16(51012), + 27: uint16(51018), + 28: uint16(51020), + 29: uint16(51021), + 30: uint16(51023), + 31: uint16(51025), + 32: uint16(51026), + 33: uint16(51027), + 34: uint16(51028), + 35: uint16(51029), + 36: uint16(51030), + 37: uint16(51031), + 38: uint16(51032), + 39: uint16(51036), + 40: uint16(51040), + 41: uint16(51048), + 42: uint16(51051), + 43: uint16(51060), + 44: uint16(51061), + 45: uint16(51064), + 46: uint16(51068), + 47: uint16(51069), + 48: uint16(51070), + 49: uint16(51075), + 50: uint16(51076), + 51: uint16(51077), + 52: uint16(51079), + 53: uint16(51080), + 54: uint16(51081), + 55: uint16(51082), + 56: uint16(51086), + 57: uint16(51088), + 58: uint16(51089), + 59: uint16(51092), + 60: uint16(51094), + 61: uint16(51095), + 62: uint16(51096), + 63: uint16(51098), + 64: uint16(51104), + 65: uint16(51105), + 66: uint16(51107), + 67: uint16(51108), + 68: uint16(51109), + 69: uint16(51110), + 70: uint16(51116), + 71: uint16(51117), + 72: uint16(51120), + 73: uint16(51124), + 74: uint16(51132), + 75: uint16(51133), + 76: uint16(51135), + 77: uint16(51136), + 78: uint16(51137), + 79: uint16(51144), + 80: uint16(51145), + 81: uint16(51148), + 82: uint16(51150), + 83: uint16(51152), + 84: uint16(51160), + 85: uint16(51165), + 86: uint16(51172), + 87: uint16(51176), + 88: uint16(51180), + 89: uint16(51200), + 90: uint16(51201), + 91: uint16(51204), + 92: uint16(51208), + 93: uint16(51210), + }, + 32: { + 0: uint16(51216), + 1: uint16(51217), + 2: uint16(51219), + 3: uint16(51221), + 4: uint16(51222), + 5: uint16(51228), + 6: uint16(51229), + 7: uint16(51232), + 8: uint16(51236), + 9: uint16(51244), + 10: uint16(51245), + 11: uint16(51247), + 12: uint16(51249), + 13: uint16(51256), + 14: uint16(51260), + 15: uint16(51264), + 16: uint16(51272), + 17: uint16(51273), + 18: uint16(51276), + 19: uint16(51277), + 20: uint16(51284), + 21: uint16(51312), + 22: uint16(51313), + 23: uint16(51316), + 24: uint16(51320), + 25: uint16(51322), + 26: uint16(51328), + 27: uint16(51329), + 28: uint16(51331), + 29: uint16(51333), + 30: uint16(51334), + 31: uint16(51335), + 32: uint16(51339), + 33: uint16(51340), + 34: uint16(51341), + 35: uint16(51348), + 36: uint16(51357), + 37: uint16(51359), + 38: uint16(51361), + 39: uint16(51368), + 40: uint16(51388), + 41: uint16(51389), + 42: uint16(51396), + 43: uint16(51400), + 44: uint16(51404), + 45: uint16(51412), + 46: uint16(51413), + 47: uint16(51415), + 48: uint16(51417), + 49: uint16(51424), + 50: uint16(51425), + 51: uint16(51428), + 52: uint16(51445), + 53: uint16(51452), + 54: uint16(51453), + 55: uint16(51456), + 56: uint16(51460), + 57: uint16(51461), + 58: uint16(51462), + 59: uint16(51468), + 60: uint16(51469), + 61: uint16(51471), + 62: uint16(51473), + 63: uint16(51480), + 64: uint16(51500), + 65: uint16(51508), + 66: uint16(51536), + 67: uint16(51537), + 68: uint16(51540), + 69: uint16(51544), + 70: uint16(51552), + 71: uint16(51553), + 72: uint16(51555), + 73: uint16(51564), + 74: uint16(51568), + 75: uint16(51572), + 76: uint16(51580), + 77: uint16(51592), + 78: uint16(51593), + 79: uint16(51596), + 80: uint16(51600), + 81: uint16(51608), + 82: uint16(51609), + 83: uint16(51611), + 84: uint16(51613), + 85: uint16(51648), + 86: uint16(51649), + 87: uint16(51652), + 88: uint16(51655), + 89: uint16(51656), + 90: uint16(51658), + 91: uint16(51664), + 92: uint16(51665), + 93: uint16(51667), + }, + 33: { + 0: uint16(51669), + 1: uint16(51670), + 2: uint16(51673), + 3: uint16(51674), + 4: uint16(51676), + 5: uint16(51677), + 6: uint16(51680), + 7: uint16(51682), + 8: uint16(51684), + 9: uint16(51687), + 10: uint16(51692), + 11: uint16(51693), + 12: uint16(51695), + 13: uint16(51696), + 14: uint16(51697), + 15: uint16(51704), + 16: uint16(51705), + 17: uint16(51708), + 18: uint16(51712), + 19: uint16(51720), + 20: uint16(51721), + 21: uint16(51723), + 22: uint16(51724), + 23: uint16(51725), + 24: uint16(51732), + 25: uint16(51736), + 26: uint16(51753), + 27: uint16(51788), + 28: uint16(51789), + 29: uint16(51792), + 30: uint16(51796), + 31: uint16(51804), + 32: uint16(51805), + 33: uint16(51807), + 34: uint16(51808), + 35: uint16(51809), + 36: uint16(51816), + 37: uint16(51837), + 38: uint16(51844), + 39: uint16(51864), + 40: uint16(51900), + 41: uint16(51901), + 42: uint16(51904), + 43: uint16(51908), + 44: uint16(51916), + 45: uint16(51917), + 46: uint16(51919), + 47: uint16(51921), + 48: uint16(51923), + 49: uint16(51928), + 50: uint16(51929), + 51: uint16(51936), + 52: uint16(51948), + 53: uint16(51956), + 54: uint16(51976), + 55: uint16(51984), + 56: uint16(51988), + 57: uint16(51992), + 58: uint16(52000), + 59: uint16(52001), + 60: uint16(52033), + 61: uint16(52040), + 62: uint16(52041), + 63: uint16(52044), + 64: uint16(52048), + 65: uint16(52056), + 66: uint16(52057), + 67: uint16(52061), + 68: uint16(52068), + 69: uint16(52088), + 70: uint16(52089), + 71: uint16(52124), + 72: uint16(52152), + 73: uint16(52180), + 74: uint16(52196), + 75: uint16(52199), + 76: uint16(52201), + 77: uint16(52236), + 78: uint16(52237), + 79: uint16(52240), + 80: uint16(52244), + 81: uint16(52252), + 82: uint16(52253), + 83: uint16(52257), + 84: uint16(52258), + 85: uint16(52263), + 86: uint16(52264), + 87: uint16(52265), + 88: uint16(52268), + 89: uint16(52270), + 90: uint16(52272), + 91: uint16(52280), + 92: uint16(52281), + 93: uint16(52283), + }, + 34: { + 0: uint16(52284), + 1: uint16(52285), + 2: uint16(52286), + 3: uint16(52292), + 4: uint16(52293), + 5: uint16(52296), + 6: uint16(52300), + 7: uint16(52308), + 8: uint16(52309), + 9: uint16(52311), + 10: uint16(52312), + 11: uint16(52313), + 12: uint16(52320), + 13: uint16(52324), + 14: uint16(52326), + 15: uint16(52328), + 16: uint16(52336), + 17: uint16(52341), + 18: uint16(52376), + 19: uint16(52377), + 20: uint16(52380), + 21: uint16(52384), + 22: uint16(52392), + 23: uint16(52393), + 24: uint16(52395), + 25: uint16(52396), + 26: uint16(52397), + 27: uint16(52404), + 28: uint16(52405), + 29: uint16(52408), + 30: uint16(52412), + 31: uint16(52420), + 32: uint16(52421), + 33: uint16(52423), + 34: uint16(52425), + 35: uint16(52432), + 36: uint16(52436), + 37: uint16(52452), + 38: uint16(52460), + 39: uint16(52464), + 40: uint16(52481), + 41: uint16(52488), + 42: uint16(52489), + 43: uint16(52492), + 44: uint16(52496), + 45: uint16(52504), + 46: uint16(52505), + 47: uint16(52507), + 48: uint16(52509), + 49: uint16(52516), + 50: uint16(52520), + 51: uint16(52524), + 52: uint16(52537), + 53: uint16(52572), + 54: uint16(52576), + 55: uint16(52580), + 56: uint16(52588), + 57: uint16(52589), + 58: uint16(52591), + 59: uint16(52593), + 60: uint16(52600), + 61: uint16(52616), + 62: uint16(52628), + 63: uint16(52629), + 64: uint16(52632), + 65: uint16(52636), + 66: uint16(52644), + 67: uint16(52645), + 68: uint16(52647), + 69: uint16(52649), + 70: uint16(52656), + 71: uint16(52676), + 72: uint16(52684), + 73: uint16(52688), + 74: uint16(52712), + 75: uint16(52716), + 76: uint16(52720), + 77: uint16(52728), + 78: uint16(52729), + 79: uint16(52731), + 80: uint16(52733), + 81: uint16(52740), + 82: uint16(52744), + 83: uint16(52748), + 84: uint16(52756), + 85: uint16(52761), + 86: uint16(52768), + 87: uint16(52769), + 88: uint16(52772), + 89: uint16(52776), + 90: uint16(52784), + 91: uint16(52785), + 92: uint16(52787), + 93: uint16(52789), + }, + 35: { + 0: uint16(52824), + 1: uint16(52825), + 2: uint16(52828), + 3: uint16(52831), + 4: uint16(52832), + 5: uint16(52833), + 6: uint16(52840), + 7: uint16(52841), + 8: uint16(52843), + 9: uint16(52845), + 10: uint16(52852), + 11: uint16(52853), + 12: uint16(52856), + 13: uint16(52860), + 14: uint16(52868), + 15: uint16(52869), + 16: uint16(52871), + 17: uint16(52873), + 18: uint16(52880), + 19: uint16(52881), + 20: uint16(52884), + 21: uint16(52888), + 22: uint16(52896), + 23: uint16(52897), + 24: uint16(52899), + 25: uint16(52900), + 26: uint16(52901), + 27: uint16(52908), + 28: uint16(52909), + 29: uint16(52929), + 30: uint16(52964), + 31: uint16(52965), + 32: uint16(52968), + 33: uint16(52971), + 34: uint16(52972), + 35: uint16(52980), + 36: uint16(52981), + 37: uint16(52983), + 38: uint16(52984), + 39: uint16(52985), + 40: uint16(52992), + 41: uint16(52993), + 42: uint16(52996), + 43: uint16(53000), + 44: uint16(53008), + 45: uint16(53009), + 46: uint16(53011), + 47: uint16(53013), + 48: uint16(53020), + 49: uint16(53024), + 50: uint16(53028), + 51: uint16(53036), + 52: uint16(53037), + 53: uint16(53039), + 54: uint16(53040), + 55: uint16(53041), + 56: uint16(53048), + 57: uint16(53076), + 58: uint16(53077), + 59: uint16(53080), + 60: uint16(53084), + 61: uint16(53092), + 62: uint16(53093), + 63: uint16(53095), + 64: uint16(53097), + 65: uint16(53104), + 66: uint16(53105), + 67: uint16(53108), + 68: uint16(53112), + 69: uint16(53120), + 70: uint16(53125), + 71: uint16(53132), + 72: uint16(53153), + 73: uint16(53160), + 74: uint16(53168), + 75: uint16(53188), + 76: uint16(53216), + 77: uint16(53217), + 78: uint16(53220), + 79: uint16(53224), + 80: uint16(53232), + 81: uint16(53233), + 82: uint16(53235), + 83: uint16(53237), + 84: uint16(53244), + 85: uint16(53248), + 86: uint16(53252), + 87: uint16(53265), + 88: uint16(53272), + 89: uint16(53293), + 90: uint16(53300), + 91: uint16(53301), + 92: uint16(53304), + 93: uint16(53308), + }, + 36: { + 0: uint16(53316), + 1: uint16(53317), + 2: uint16(53319), + 3: uint16(53321), + 4: uint16(53328), + 5: uint16(53332), + 6: uint16(53336), + 7: uint16(53344), + 8: uint16(53356), + 9: uint16(53357), + 10: uint16(53360), + 11: uint16(53364), + 12: uint16(53372), + 13: uint16(53373), + 14: uint16(53377), + 15: uint16(53412), + 16: uint16(53413), + 17: uint16(53416), + 18: uint16(53420), + 19: uint16(53428), + 20: uint16(53429), + 21: uint16(53431), + 22: uint16(53433), + 23: uint16(53440), + 24: uint16(53441), + 25: uint16(53444), + 26: uint16(53448), + 27: uint16(53449), + 28: uint16(53456), + 29: uint16(53457), + 30: uint16(53459), + 31: uint16(53460), + 32: uint16(53461), + 33: uint16(53468), + 34: uint16(53469), + 35: uint16(53472), + 36: uint16(53476), + 37: uint16(53484), + 38: uint16(53485), + 39: uint16(53487), + 40: uint16(53488), + 41: uint16(53489), + 42: uint16(53496), + 43: uint16(53517), + 44: uint16(53552), + 45: uint16(53553), + 46: uint16(53556), + 47: uint16(53560), + 48: uint16(53562), + 49: uint16(53568), + 50: uint16(53569), + 51: uint16(53571), + 52: uint16(53572), + 53: uint16(53573), + 54: uint16(53580), + 55: uint16(53581), + 56: uint16(53584), + 57: uint16(53588), + 58: uint16(53596), + 59: uint16(53597), + 60: uint16(53599), + 61: uint16(53601), + 62: uint16(53608), + 63: uint16(53612), + 64: uint16(53628), + 65: uint16(53636), + 66: uint16(53640), + 67: uint16(53664), + 68: uint16(53665), + 69: uint16(53668), + 70: uint16(53672), + 71: uint16(53680), + 72: uint16(53681), + 73: uint16(53683), + 74: uint16(53685), + 75: uint16(53690), + 76: uint16(53692), + 77: uint16(53696), + 78: uint16(53720), + 79: uint16(53748), + 80: uint16(53752), + 81: uint16(53767), + 82: uint16(53769), + 83: uint16(53776), + 84: uint16(53804), + 85: uint16(53805), + 86: uint16(53808), + 87: uint16(53812), + 88: uint16(53820), + 89: uint16(53821), + 90: uint16(53823), + 91: uint16(53825), + 92: uint16(53832), + 93: uint16(53852), + }, + 37: { + 0: uint16(53860), + 1: uint16(53888), + 2: uint16(53889), + 3: uint16(53892), + 4: uint16(53896), + 5: uint16(53904), + 6: uint16(53905), + 7: uint16(53909), + 8: uint16(53916), + 9: uint16(53920), + 10: uint16(53924), + 11: uint16(53932), + 12: uint16(53937), + 13: uint16(53944), + 14: uint16(53945), + 15: uint16(53948), + 16: uint16(53951), + 17: uint16(53952), + 18: uint16(53954), + 19: uint16(53960), + 20: uint16(53961), + 21: uint16(53963), + 22: uint16(53972), + 23: uint16(53976), + 24: uint16(53980), + 25: uint16(53988), + 26: uint16(53989), + 27: uint16(54000), + 28: uint16(54001), + 29: uint16(54004), + 30: uint16(54008), + 31: uint16(54016), + 32: uint16(54017), + 33: uint16(54019), + 34: uint16(54021), + 35: uint16(54028), + 36: uint16(54029), + 37: uint16(54030), + 38: uint16(54032), + 39: uint16(54036), + 40: uint16(54038), + 41: uint16(54044), + 42: uint16(54045), + 43: uint16(54047), + 44: uint16(54048), + 45: uint16(54049), + 46: uint16(54053), + 47: uint16(54056), + 48: uint16(54057), + 49: uint16(54060), + 50: uint16(54064), + 51: uint16(54072), + 52: uint16(54073), + 53: uint16(54075), + 54: uint16(54076), + 55: uint16(54077), + 56: uint16(54084), + 57: uint16(54085), + 58: uint16(54140), + 59: uint16(54141), + 60: uint16(54144), + 61: uint16(54148), + 62: uint16(54156), + 63: uint16(54157), + 64: uint16(54159), + 65: uint16(54160), + 66: uint16(54161), + 67: uint16(54168), + 68: uint16(54169), + 69: uint16(54172), + 70: uint16(54176), + 71: uint16(54184), + 72: uint16(54185), + 73: uint16(54187), + 74: uint16(54189), + 75: uint16(54196), + 76: uint16(54200), + 77: uint16(54204), + 78: uint16(54212), + 79: uint16(54213), + 80: uint16(54216), + 81: uint16(54217), + 82: uint16(54224), + 83: uint16(54232), + 84: uint16(54241), + 85: uint16(54243), + 86: uint16(54252), + 87: uint16(54253), + 88: uint16(54256), + 89: uint16(54260), + 90: uint16(54268), + 91: uint16(54269), + 92: uint16(54271), + 93: uint16(54273), + }, + 38: { + 0: uint16(54280), + 1: uint16(54301), + 2: uint16(54336), + 3: uint16(54340), + 4: uint16(54364), + 5: uint16(54368), + 6: uint16(54372), + 7: uint16(54381), + 8: uint16(54383), + 9: uint16(54392), + 10: uint16(54393), + 11: uint16(54396), + 12: uint16(54399), + 13: uint16(54400), + 14: uint16(54402), + 15: uint16(54408), + 16: uint16(54409), + 17: uint16(54411), + 18: uint16(54413), + 19: uint16(54420), + 20: uint16(54441), + 21: uint16(54476), + 22: uint16(54480), + 23: uint16(54484), + 24: uint16(54492), + 25: uint16(54495), + 26: uint16(54504), + 27: uint16(54508), + 28: uint16(54512), + 29: uint16(54520), + 30: uint16(54523), + 31: uint16(54525), + 32: uint16(54532), + 33: uint16(54536), + 34: uint16(54540), + 35: uint16(54548), + 36: uint16(54549), + 37: uint16(54551), + 38: uint16(54588), + 39: uint16(54589), + 40: uint16(54592), + 41: uint16(54596), + 42: uint16(54604), + 43: uint16(54605), + 44: uint16(54607), + 45: uint16(54609), + 46: uint16(54616), + 47: uint16(54617), + 48: uint16(54620), + 49: uint16(54624), + 50: uint16(54629), + 51: uint16(54632), + 52: uint16(54633), + 53: uint16(54635), + 54: uint16(54637), + 55: uint16(54644), + 56: uint16(54645), + 57: uint16(54648), + 58: uint16(54652), + 59: uint16(54660), + 60: uint16(54661), + 61: uint16(54663), + 62: uint16(54664), + 63: uint16(54665), + 64: uint16(54672), + 65: uint16(54693), + 66: uint16(54728), + 67: uint16(54729), + 68: uint16(54732), + 69: uint16(54736), + 70: uint16(54738), + 71: uint16(54744), + 72: uint16(54745), + 73: uint16(54747), + 74: uint16(54749), + 75: uint16(54756), + 76: uint16(54757), + 77: uint16(54760), + 78: uint16(54764), + 79: uint16(54772), + 80: uint16(54773), + 81: uint16(54775), + 82: uint16(54777), + 83: uint16(54784), + 84: uint16(54785), + 85: uint16(54788), + 86: uint16(54792), + 87: uint16(54800), + 88: uint16(54801), + 89: uint16(54803), + 90: uint16(54804), + 91: uint16(54805), + 92: uint16(54812), + 93: uint16(54816), + }, + 39: { + 0: uint16(54820), + 1: uint16(54829), + 2: uint16(54840), + 3: uint16(54841), + 4: uint16(54844), + 5: uint16(54848), + 6: uint16(54853), + 7: uint16(54856), + 8: uint16(54857), + 9: uint16(54859), + 10: uint16(54861), + 11: uint16(54865), + 12: uint16(54868), + 13: uint16(54869), + 14: uint16(54872), + 15: uint16(54876), + 16: uint16(54887), + 17: uint16(54889), + 18: uint16(54896), + 19: uint16(54897), + 20: uint16(54900), + 21: uint16(54915), + 22: uint16(54917), + 23: uint16(54924), + 24: uint16(54925), + 25: uint16(54928), + 26: uint16(54932), + 27: uint16(54941), + 28: uint16(54943), + 29: uint16(54945), + 30: uint16(54952), + 31: uint16(54956), + 32: uint16(54960), + 33: uint16(54969), + 34: uint16(54971), + 35: uint16(54980), + 36: uint16(54981), + 37: uint16(54984), + 38: uint16(54988), + 39: uint16(54993), + 40: uint16(54996), + 41: uint16(54999), + 42: uint16(55001), + 43: uint16(55008), + 44: uint16(55012), + 45: uint16(55016), + 46: uint16(55024), + 47: uint16(55029), + 48: uint16(55036), + 49: uint16(55037), + 50: uint16(55040), + 51: uint16(55044), + 52: uint16(55057), + 53: uint16(55064), + 54: uint16(55065), + 55: uint16(55068), + 56: uint16(55072), + 57: uint16(55080), + 58: uint16(55081), + 59: uint16(55083), + 60: uint16(55085), + 61: uint16(55092), + 62: uint16(55093), + 63: uint16(55096), + 64: uint16(55100), + 65: uint16(55108), + 66: uint16(55111), + 67: uint16(55113), + 68: uint16(55120), + 69: uint16(55121), + 70: uint16(55124), + 71: uint16(55126), + 72: uint16(55127), + 73: uint16(55128), + 74: uint16(55129), + 75: uint16(55136), + 76: uint16(55137), + 77: uint16(55139), + 78: uint16(55141), + 79: uint16(55145), + 80: uint16(55148), + 81: uint16(55152), + 82: uint16(55156), + 83: uint16(55164), + 84: uint16(55165), + 85: uint16(55169), + 86: uint16(55176), + 87: uint16(55177), + 88: uint16(55180), + 89: uint16(55184), + 90: uint16(55192), + 91: uint16(55193), + 92: uint16(55195), + 93: uint16(55197), + }, + 40: {}, + 41: { + 0: uint16(20285), + 1: uint16(20339), + 2: uint16(20551), + 3: uint16(20729), + 4: uint16(21152), + 5: uint16(21487), + 6: uint16(21621), + 7: uint16(21733), + 8: uint16(22025), + 9: uint16(23233), + 10: uint16(23478), + 11: uint16(26247), + 12: uint16(26550), + 13: uint16(26551), + 14: uint16(26607), + 15: uint16(27468), + 16: uint16(29634), + 17: uint16(30146), + 18: uint16(31292), + 19: uint16(33499), + 20: uint16(33540), + 21: uint16(34903), + 22: uint16(34952), + 23: uint16(35382), + 24: uint16(36040), + 25: uint16(36303), + 26: uint16(36603), + 27: uint16(36838), + 28: uint16(39381), + 29: uint16(21051), + 30: uint16(21364), + 31: uint16(21508), + 32: uint16(24682), + 33: uint16(24932), + 34: uint16(27580), + 35: uint16(29647), + 36: uint16(33050), + 37: uint16(35258), + 38: uint16(35282), + 39: uint16(38307), + 40: uint16(20355), + 41: uint16(21002), + 42: uint16(22718), + 43: uint16(22904), + 44: uint16(23014), + 45: uint16(24178), + 46: uint16(24185), + 47: uint16(25031), + 48: uint16(25536), + 49: uint16(26438), + 50: uint16(26604), + 51: uint16(26751), + 52: uint16(28567), + 53: uint16(30286), + 54: uint16(30475), + 55: uint16(30965), + 56: uint16(31240), + 57: uint16(31487), + 58: uint16(31777), + 59: uint16(32925), + 60: uint16(33390), + 61: uint16(33393), + 62: uint16(35563), + 63: uint16(38291), + 64: uint16(20075), + 65: uint16(21917), + 66: uint16(26359), + 67: uint16(28212), + 68: uint16(30883), + 69: uint16(31469), + 70: uint16(33883), + 71: uint16(35088), + 72: uint16(34638), + 73: uint16(38824), + 74: uint16(21208), + 75: uint16(22350), + 76: uint16(22570), + 77: uint16(23884), + 78: uint16(24863), + 79: uint16(25022), + 80: uint16(25121), + 81: uint16(25954), + 82: uint16(26577), + 83: uint16(27204), + 84: uint16(28187), + 85: uint16(29976), + 86: uint16(30131), + 87: uint16(30435), + 88: uint16(30640), + 89: uint16(32058), + 90: uint16(37039), + 91: uint16(37969), + 92: uint16(37970), + 93: uint16(40853), + }, + 42: { + 0: uint16(21283), + 1: uint16(23724), + 2: uint16(30002), + 3: uint16(32987), + 4: uint16(37440), + 5: uint16(38296), + 6: uint16(21083), + 7: uint16(22536), + 8: uint16(23004), + 9: uint16(23713), + 10: uint16(23831), + 11: uint16(24247), + 12: uint16(24378), + 13: uint16(24394), + 14: uint16(24951), + 15: uint16(27743), + 16: uint16(30074), + 17: uint16(30086), + 18: uint16(31968), + 19: uint16(32115), + 20: uint16(32177), + 21: uint16(32652), + 22: uint16(33108), + 23: uint16(33313), + 24: uint16(34193), + 25: uint16(35137), + 26: uint16(35611), + 27: uint16(37628), + 28: uint16(38477), + 29: uint16(40007), + 30: uint16(20171), + 31: uint16(20215), + 32: uint16(20491), + 33: uint16(20977), + 34: uint16(22607), + 35: uint16(24887), + 36: uint16(24894), + 37: uint16(24936), + 38: uint16(25913), + 39: uint16(27114), + 40: uint16(28433), + 41: uint16(30117), + 42: uint16(30342), + 43: uint16(30422), + 44: uint16(31623), + 45: uint16(33445), + 46: uint16(33995), + 47: uint16(63744), + 48: uint16(37799), + 49: uint16(38283), + 50: uint16(21888), + 51: uint16(23458), + 52: uint16(22353), + 53: uint16(63745), + 54: uint16(31923), + 55: uint16(32697), + 56: uint16(37301), + 57: uint16(20520), + 58: uint16(21435), + 59: uint16(23621), + 60: uint16(24040), + 61: uint16(25298), + 62: uint16(25454), + 63: uint16(25818), + 64: uint16(25831), + 65: uint16(28192), + 66: uint16(28844), + 67: uint16(31067), + 68: uint16(36317), + 69: uint16(36382), + 70: uint16(63746), + 71: uint16(36989), + 72: uint16(37445), + 73: uint16(37624), + 74: uint16(20094), + 75: uint16(20214), + 76: uint16(20581), + 77: uint16(24062), + 78: uint16(24314), + 79: uint16(24838), + 80: uint16(26967), + 81: uint16(33137), + 82: uint16(34388), + 83: uint16(36423), + 84: uint16(37749), + 85: uint16(39467), + 86: uint16(20062), + 87: uint16(20625), + 88: uint16(26480), + 89: uint16(26688), + 90: uint16(20745), + 91: uint16(21133), + 92: uint16(21138), + 93: uint16(27298), + }, + 43: { + 0: uint16(30652), + 1: uint16(37392), + 2: uint16(40660), + 3: uint16(21163), + 4: uint16(24623), + 5: uint16(36850), + 6: uint16(20552), + 7: uint16(25001), + 8: uint16(25581), + 9: uint16(25802), + 10: uint16(26684), + 11: uint16(27268), + 12: uint16(28608), + 13: uint16(33160), + 14: uint16(35233), + 15: uint16(38548), + 16: uint16(22533), + 17: uint16(29309), + 18: uint16(29356), + 19: uint16(29956), + 20: uint16(32121), + 21: uint16(32365), + 22: uint16(32937), + 23: uint16(35211), + 24: uint16(35700), + 25: uint16(36963), + 26: uint16(40273), + 27: uint16(25225), + 28: uint16(27770), + 29: uint16(28500), + 30: uint16(32080), + 31: uint16(32570), + 32: uint16(35363), + 33: uint16(20860), + 34: uint16(24906), + 35: uint16(31645), + 36: uint16(35609), + 37: uint16(37463), + 38: uint16(37772), + 39: uint16(20140), + 40: uint16(20435), + 41: uint16(20510), + 42: uint16(20670), + 43: uint16(20742), + 44: uint16(21185), + 45: uint16(21197), + 46: uint16(21375), + 47: uint16(22384), + 48: uint16(22659), + 49: uint16(24218), + 50: uint16(24465), + 51: uint16(24950), + 52: uint16(25004), + 53: uint16(25806), + 54: uint16(25964), + 55: uint16(26223), + 56: uint16(26299), + 57: uint16(26356), + 58: uint16(26775), + 59: uint16(28039), + 60: uint16(28805), + 61: uint16(28913), + 62: uint16(29855), + 63: uint16(29861), + 64: uint16(29898), + 65: uint16(30169), + 66: uint16(30828), + 67: uint16(30956), + 68: uint16(31455), + 69: uint16(31478), + 70: uint16(32069), + 71: uint16(32147), + 72: uint16(32789), + 73: uint16(32831), + 74: uint16(33051), + 75: uint16(33686), + 76: uint16(35686), + 77: uint16(36629), + 78: uint16(36885), + 79: uint16(37857), + 80: uint16(38915), + 81: uint16(38968), + 82: uint16(39514), + 83: uint16(39912), + 84: uint16(20418), + 85: uint16(21843), + 86: uint16(22586), + 87: uint16(22865), + 88: uint16(23395), + 89: uint16(23622), + 90: uint16(24760), + 91: uint16(25106), + 92: uint16(26690), + 93: uint16(26800), + }, + 44: { + 0: uint16(26856), + 1: uint16(28330), + 2: uint16(30028), + 3: uint16(30328), + 4: uint16(30926), + 5: uint16(31293), + 6: uint16(31995), + 7: uint16(32363), + 8: uint16(32380), + 9: uint16(35336), + 10: uint16(35489), + 11: uint16(35903), + 12: uint16(38542), + 13: uint16(40388), + 14: uint16(21476), + 15: uint16(21481), + 16: uint16(21578), + 17: uint16(21617), + 18: uint16(22266), + 19: uint16(22993), + 20: uint16(23396), + 21: uint16(23611), + 22: uint16(24235), + 23: uint16(25335), + 24: uint16(25911), + 25: uint16(25925), + 26: uint16(25970), + 27: uint16(26272), + 28: uint16(26543), + 29: uint16(27073), + 30: uint16(27837), + 31: uint16(30204), + 32: uint16(30352), + 33: uint16(30590), + 34: uint16(31295), + 35: uint16(32660), + 36: uint16(32771), + 37: uint16(32929), + 38: uint16(33167), + 39: uint16(33510), + 40: uint16(33533), + 41: uint16(33776), + 42: uint16(34241), + 43: uint16(34865), + 44: uint16(34996), + 45: uint16(35493), + 46: uint16(63747), + 47: uint16(36764), + 48: uint16(37678), + 49: uint16(38599), + 50: uint16(39015), + 51: uint16(39640), + 52: uint16(40723), + 53: uint16(21741), + 54: uint16(26011), + 55: uint16(26354), + 56: uint16(26767), + 57: uint16(31296), + 58: uint16(35895), + 59: uint16(40288), + 60: uint16(22256), + 61: uint16(22372), + 62: uint16(23825), + 63: uint16(26118), + 64: uint16(26801), + 65: uint16(26829), + 66: uint16(28414), + 67: uint16(29736), + 68: uint16(34974), + 69: uint16(39908), + 70: uint16(27752), + 71: uint16(63748), + 72: uint16(39592), + 73: uint16(20379), + 74: uint16(20844), + 75: uint16(20849), + 76: uint16(21151), + 77: uint16(23380), + 78: uint16(24037), + 79: uint16(24656), + 80: uint16(24685), + 81: uint16(25329), + 82: uint16(25511), + 83: uint16(25915), + 84: uint16(29657), + 85: uint16(31354), + 86: uint16(34467), + 87: uint16(36002), + 88: uint16(38799), + 89: uint16(20018), + 90: uint16(23521), + 91: uint16(25096), + 92: uint16(26524), + 93: uint16(29916), + }, + 45: { + 0: uint16(31185), + 1: uint16(33747), + 2: uint16(35463), + 3: uint16(35506), + 4: uint16(36328), + 5: uint16(36942), + 6: uint16(37707), + 7: uint16(38982), + 8: uint16(24275), + 9: uint16(27112), + 10: uint16(34303), + 11: uint16(37101), + 12: uint16(63749), + 13: uint16(20896), + 14: uint16(23448), + 15: uint16(23532), + 16: uint16(24931), + 17: uint16(26874), + 18: uint16(27454), + 19: uint16(28748), + 20: uint16(29743), + 21: uint16(29912), + 22: uint16(31649), + 23: uint16(32592), + 24: uint16(33733), + 25: uint16(35264), + 26: uint16(36011), + 27: uint16(38364), + 28: uint16(39208), + 29: uint16(21038), + 30: uint16(24669), + 31: uint16(25324), + 32: uint16(36866), + 33: uint16(20362), + 34: uint16(20809), + 35: uint16(21281), + 36: uint16(22745), + 37: uint16(24291), + 38: uint16(26336), + 39: uint16(27960), + 40: uint16(28826), + 41: uint16(29378), + 42: uint16(29654), + 43: uint16(31568), + 44: uint16(33009), + 45: uint16(37979), + 46: uint16(21350), + 47: uint16(25499), + 48: uint16(32619), + 49: uint16(20054), + 50: uint16(20608), + 51: uint16(22602), + 52: uint16(22750), + 53: uint16(24618), + 54: uint16(24871), + 55: uint16(25296), + 56: uint16(27088), + 57: uint16(39745), + 58: uint16(23439), + 59: uint16(32024), + 60: uint16(32945), + 61: uint16(36703), + 62: uint16(20132), + 63: uint16(20689), + 64: uint16(21676), + 65: uint16(21932), + 66: uint16(23308), + 67: uint16(23968), + 68: uint16(24039), + 69: uint16(25898), + 70: uint16(25934), + 71: uint16(26657), + 72: uint16(27211), + 73: uint16(29409), + 74: uint16(30350), + 75: uint16(30703), + 76: uint16(32094), + 77: uint16(32761), + 78: uint16(33184), + 79: uint16(34126), + 80: uint16(34527), + 81: uint16(36611), + 82: uint16(36686), + 83: uint16(37066), + 84: uint16(39171), + 85: uint16(39509), + 86: uint16(39851), + 87: uint16(19992), + 88: uint16(20037), + 89: uint16(20061), + 90: uint16(20167), + 91: uint16(20465), + 92: uint16(20855), + 93: uint16(21246), + }, + 46: { + 0: uint16(21312), + 1: uint16(21475), + 2: uint16(21477), + 3: uint16(21646), + 4: uint16(22036), + 5: uint16(22389), + 6: uint16(22434), + 7: uint16(23495), + 8: uint16(23943), + 9: uint16(24272), + 10: uint16(25084), + 11: uint16(25304), + 12: uint16(25937), + 13: uint16(26552), + 14: uint16(26601), + 15: uint16(27083), + 16: uint16(27472), + 17: uint16(27590), + 18: uint16(27628), + 19: uint16(27714), + 20: uint16(28317), + 21: uint16(28792), + 22: uint16(29399), + 23: uint16(29590), + 24: uint16(29699), + 25: uint16(30655), + 26: uint16(30697), + 27: uint16(31350), + 28: uint16(32127), + 29: uint16(32777), + 30: uint16(33276), + 31: uint16(33285), + 32: uint16(33290), + 33: uint16(33503), + 34: uint16(34914), + 35: uint16(35635), + 36: uint16(36092), + 37: uint16(36544), + 38: uint16(36881), + 39: uint16(37041), + 40: uint16(37476), + 41: uint16(37558), + 42: uint16(39378), + 43: uint16(39493), + 44: uint16(40169), + 45: uint16(40407), + 46: uint16(40860), + 47: uint16(22283), + 48: uint16(23616), + 49: uint16(33738), + 50: uint16(38816), + 51: uint16(38827), + 52: uint16(40628), + 53: uint16(21531), + 54: uint16(31384), + 55: uint16(32676), + 56: uint16(35033), + 57: uint16(36557), + 58: uint16(37089), + 59: uint16(22528), + 60: uint16(23624), + 61: uint16(25496), + 62: uint16(31391), + 63: uint16(23470), + 64: uint16(24339), + 65: uint16(31353), + 66: uint16(31406), + 67: uint16(33422), + 68: uint16(36524), + 69: uint16(20518), + 70: uint16(21048), + 71: uint16(21240), + 72: uint16(21367), + 73: uint16(22280), + 74: uint16(25331), + 75: uint16(25458), + 76: uint16(27402), + 77: uint16(28099), + 78: uint16(30519), + 79: uint16(21413), + 80: uint16(29527), + 81: uint16(34152), + 82: uint16(36470), + 83: uint16(38357), + 84: uint16(26426), + 85: uint16(27331), + 86: uint16(28528), + 87: uint16(35437), + 88: uint16(36556), + 89: uint16(39243), + 90: uint16(63750), + 91: uint16(26231), + 92: uint16(27512), + 93: uint16(36020), + }, + 47: { + 0: uint16(39740), + 1: uint16(63751), + 2: uint16(21483), + 3: uint16(22317), + 4: uint16(22862), + 5: uint16(25542), + 6: uint16(27131), + 7: uint16(29674), + 8: uint16(30789), + 9: uint16(31418), + 10: uint16(31429), + 11: uint16(31998), + 12: uint16(33909), + 13: uint16(35215), + 14: uint16(36211), + 15: uint16(36917), + 16: uint16(38312), + 17: uint16(21243), + 18: uint16(22343), + 19: uint16(30023), + 20: uint16(31584), + 21: uint16(33740), + 22: uint16(37406), + 23: uint16(63752), + 24: uint16(27224), + 25: uint16(20811), + 26: uint16(21067), + 27: uint16(21127), + 28: uint16(25119), + 29: uint16(26840), + 30: uint16(26997), + 31: uint16(38553), + 32: uint16(20677), + 33: uint16(21156), + 34: uint16(21220), + 35: uint16(25027), + 36: uint16(26020), + 37: uint16(26681), + 38: uint16(27135), + 39: uint16(29822), + 40: uint16(31563), + 41: uint16(33465), + 42: uint16(33771), + 43: uint16(35250), + 44: uint16(35641), + 45: uint16(36817), + 46: uint16(39241), + 47: uint16(63753), + 48: uint16(20170), + 49: uint16(22935), + 50: uint16(25810), + 51: uint16(26129), + 52: uint16(27278), + 53: uint16(29748), + 54: uint16(31105), + 55: uint16(31165), + 56: uint16(33449), + 57: uint16(34942), + 58: uint16(34943), + 59: uint16(35167), + 60: uint16(63754), + 61: uint16(37670), + 62: uint16(20235), + 63: uint16(21450), + 64: uint16(24613), + 65: uint16(25201), + 66: uint16(27762), + 67: uint16(32026), + 68: uint16(32102), + 69: uint16(20120), + 70: uint16(20834), + 71: uint16(30684), + 72: uint16(32943), + 73: uint16(20225), + 74: uint16(20238), + 75: uint16(20854), + 76: uint16(20864), + 77: uint16(21980), + 78: uint16(22120), + 79: uint16(22331), + 80: uint16(22522), + 81: uint16(22524), + 82: uint16(22804), + 83: uint16(22855), + 84: uint16(22931), + 85: uint16(23492), + 86: uint16(23696), + 87: uint16(23822), + 88: uint16(24049), + 89: uint16(24190), + 90: uint16(24524), + 91: uint16(25216), + 92: uint16(26071), + 93: uint16(26083), + }, + 48: { + 0: uint16(26398), + 1: uint16(26399), + 2: uint16(26462), + 3: uint16(26827), + 4: uint16(26820), + 5: uint16(27231), + 6: uint16(27450), + 7: uint16(27683), + 8: uint16(27773), + 9: uint16(27778), + 10: uint16(28103), + 11: uint16(29592), + 12: uint16(29734), + 13: uint16(29738), + 14: uint16(29826), + 15: uint16(29859), + 16: uint16(30072), + 17: uint16(30079), + 18: uint16(30849), + 19: uint16(30959), + 20: uint16(31041), + 21: uint16(31047), + 22: uint16(31048), + 23: uint16(31098), + 24: uint16(31637), + 25: uint16(32000), + 26: uint16(32186), + 27: uint16(32648), + 28: uint16(32774), + 29: uint16(32813), + 30: uint16(32908), + 31: uint16(35352), + 32: uint16(35663), + 33: uint16(35912), + 34: uint16(36215), + 35: uint16(37665), + 36: uint16(37668), + 37: uint16(39138), + 38: uint16(39249), + 39: uint16(39438), + 40: uint16(39439), + 41: uint16(39525), + 42: uint16(40594), + 43: uint16(32202), + 44: uint16(20342), + 45: uint16(21513), + 46: uint16(25326), + 47: uint16(26708), + 48: uint16(37329), + 49: uint16(21931), + 50: uint16(20794), + 51: uint16(63755), + 52: uint16(63756), + 53: uint16(23068), + 54: uint16(25062), + 55: uint16(63757), + 56: uint16(25295), + 57: uint16(25343), + 58: uint16(63758), + 59: uint16(63759), + 60: uint16(63760), + 61: uint16(63761), + 62: uint16(63762), + 63: uint16(63763), + 64: uint16(37027), + 65: uint16(63764), + 66: uint16(63765), + 67: uint16(63766), + 68: uint16(63767), + 69: uint16(63768), + 70: uint16(35582), + 71: uint16(63769), + 72: uint16(63770), + 73: uint16(63771), + 74: uint16(63772), + 75: uint16(26262), + 76: uint16(63773), + 77: uint16(29014), + 78: uint16(63774), + 79: uint16(63775), + 80: uint16(38627), + 81: uint16(63776), + 82: uint16(25423), + 83: uint16(25466), + 84: uint16(21335), + 85: uint16(63777), + 86: uint16(26511), + 87: uint16(26976), + 88: uint16(28275), + 89: uint16(63778), + 90: uint16(30007), + 91: uint16(63779), + 92: uint16(63780), + 93: uint16(63781), + }, + 49: { + 0: uint16(32013), + 1: uint16(63782), + 2: uint16(63783), + 3: uint16(34930), + 4: uint16(22218), + 5: uint16(23064), + 6: uint16(63784), + 7: uint16(63785), + 8: uint16(63786), + 9: uint16(63787), + 10: uint16(63788), + 11: uint16(20035), + 12: uint16(63789), + 13: uint16(20839), + 14: uint16(22856), + 15: uint16(26608), + 16: uint16(32784), + 17: uint16(63790), + 18: uint16(22899), + 19: uint16(24180), + 20: uint16(25754), + 21: uint16(31178), + 22: uint16(24565), + 23: uint16(24684), + 24: uint16(25288), + 25: uint16(25467), + 26: uint16(23527), + 27: uint16(23511), + 28: uint16(21162), + 29: uint16(63791), + 30: uint16(22900), + 31: uint16(24361), + 32: uint16(24594), + 33: uint16(63792), + 34: uint16(63793), + 35: uint16(63794), + 36: uint16(29785), + 37: uint16(63795), + 38: uint16(63796), + 39: uint16(63797), + 40: uint16(63798), + 41: uint16(63799), + 42: uint16(63800), + 43: uint16(39377), + 44: uint16(63801), + 45: uint16(63802), + 46: uint16(63803), + 47: uint16(63804), + 48: uint16(63805), + 49: uint16(63806), + 50: uint16(63807), + 51: uint16(63808), + 52: uint16(63809), + 53: uint16(63810), + 54: uint16(63811), + 55: uint16(28611), + 56: uint16(63812), + 57: uint16(63813), + 58: uint16(33215), + 59: uint16(36786), + 60: uint16(24817), + 61: uint16(63814), + 62: uint16(63815), + 63: uint16(33126), + 64: uint16(63816), + 65: uint16(63817), + 66: uint16(23615), + 67: uint16(63818), + 68: uint16(63819), + 69: uint16(63820), + 70: uint16(63821), + 71: uint16(63822), + 72: uint16(63823), + 73: uint16(63824), + 74: uint16(63825), + 75: uint16(23273), + 76: uint16(35365), + 77: uint16(26491), + 78: uint16(32016), + 79: uint16(63826), + 80: uint16(63827), + 81: uint16(63828), + 82: uint16(63829), + 83: uint16(63830), + 84: uint16(63831), + 85: uint16(33021), + 86: uint16(63832), + 87: uint16(63833), + 88: uint16(23612), + 89: uint16(27877), + 90: uint16(21311), + 91: uint16(28346), + 92: uint16(22810), + 93: uint16(33590), + }, + 50: { + 0: uint16(20025), + 1: uint16(20150), + 2: uint16(20294), + 3: uint16(21934), + 4: uint16(22296), + 5: uint16(22727), + 6: uint16(24406), + 7: uint16(26039), + 8: uint16(26086), + 9: uint16(27264), + 10: uint16(27573), + 11: uint16(28237), + 12: uint16(30701), + 13: uint16(31471), + 14: uint16(31774), + 15: uint16(32222), + 16: uint16(34507), + 17: uint16(34962), + 18: uint16(37170), + 19: uint16(37723), + 20: uint16(25787), + 21: uint16(28606), + 22: uint16(29562), + 23: uint16(30136), + 24: uint16(36948), + 25: uint16(21846), + 26: uint16(22349), + 27: uint16(25018), + 28: uint16(25812), + 29: uint16(26311), + 30: uint16(28129), + 31: uint16(28251), + 32: uint16(28525), + 33: uint16(28601), + 34: uint16(30192), + 35: uint16(32835), + 36: uint16(33213), + 37: uint16(34113), + 38: uint16(35203), + 39: uint16(35527), + 40: uint16(35674), + 41: uint16(37663), + 42: uint16(27795), + 43: uint16(30035), + 44: uint16(31572), + 45: uint16(36367), + 46: uint16(36957), + 47: uint16(21776), + 48: uint16(22530), + 49: uint16(22616), + 50: uint16(24162), + 51: uint16(25095), + 52: uint16(25758), + 53: uint16(26848), + 54: uint16(30070), + 55: uint16(31958), + 56: uint16(34739), + 57: uint16(40680), + 58: uint16(20195), + 59: uint16(22408), + 60: uint16(22382), + 61: uint16(22823), + 62: uint16(23565), + 63: uint16(23729), + 64: uint16(24118), + 65: uint16(24453), + 66: uint16(25140), + 67: uint16(25825), + 68: uint16(29619), + 69: uint16(33274), + 70: uint16(34955), + 71: uint16(36024), + 72: uint16(38538), + 73: uint16(40667), + 74: uint16(23429), + 75: uint16(24503), + 76: uint16(24755), + 77: uint16(20498), + 78: uint16(20992), + 79: uint16(21040), + 80: uint16(22294), + 81: uint16(22581), + 82: uint16(22615), + 83: uint16(23566), + 84: uint16(23648), + 85: uint16(23798), + 86: uint16(23947), + 87: uint16(24230), + 88: uint16(24466), + 89: uint16(24764), + 90: uint16(25361), + 91: uint16(25481), + 92: uint16(25623), + 93: uint16(26691), + }, + 51: { + 0: uint16(26873), + 1: uint16(27330), + 2: uint16(28120), + 3: uint16(28193), + 4: uint16(28372), + 5: uint16(28644), + 6: uint16(29182), + 7: uint16(30428), + 8: uint16(30585), + 9: uint16(31153), + 10: uint16(31291), + 11: uint16(33796), + 12: uint16(35241), + 13: uint16(36077), + 14: uint16(36339), + 15: uint16(36424), + 16: uint16(36867), + 17: uint16(36884), + 18: uint16(36947), + 19: uint16(37117), + 20: uint16(37709), + 21: uint16(38518), + 22: uint16(38876), + 23: uint16(27602), + 24: uint16(28678), + 25: uint16(29272), + 26: uint16(29346), + 27: uint16(29544), + 28: uint16(30563), + 29: uint16(31167), + 30: uint16(31716), + 31: uint16(32411), + 32: uint16(35712), + 33: uint16(22697), + 34: uint16(24775), + 35: uint16(25958), + 36: uint16(26109), + 37: uint16(26302), + 38: uint16(27788), + 39: uint16(28958), + 40: uint16(29129), + 41: uint16(35930), + 42: uint16(38931), + 43: uint16(20077), + 44: uint16(31361), + 45: uint16(20189), + 46: uint16(20908), + 47: uint16(20941), + 48: uint16(21205), + 49: uint16(21516), + 50: uint16(24999), + 51: uint16(26481), + 52: uint16(26704), + 53: uint16(26847), + 54: uint16(27934), + 55: uint16(28540), + 56: uint16(30140), + 57: uint16(30643), + 58: uint16(31461), + 59: uint16(33012), + 60: uint16(33891), + 61: uint16(37509), + 62: uint16(20828), + 63: uint16(26007), + 64: uint16(26460), + 65: uint16(26515), + 66: uint16(30168), + 67: uint16(31431), + 68: uint16(33651), + 69: uint16(63834), + 70: uint16(35910), + 71: uint16(36887), + 72: uint16(38957), + 73: uint16(23663), + 74: uint16(33216), + 75: uint16(33434), + 76: uint16(36929), + 77: uint16(36975), + 78: uint16(37389), + 79: uint16(24471), + 80: uint16(23965), + 81: uint16(27225), + 82: uint16(29128), + 83: uint16(30331), + 84: uint16(31561), + 85: uint16(34276), + 86: uint16(35588), + 87: uint16(37159), + 88: uint16(39472), + 89: uint16(21895), + 90: uint16(25078), + 91: uint16(63835), + 92: uint16(30313), + 93: uint16(32645), + }, + 52: { + 0: uint16(34367), + 1: uint16(34746), + 2: uint16(35064), + 3: uint16(37007), + 4: uint16(63836), + 5: uint16(27931), + 6: uint16(28889), + 7: uint16(29662), + 8: uint16(32097), + 9: uint16(33853), + 10: uint16(63837), + 11: uint16(37226), + 12: uint16(39409), + 13: uint16(63838), + 14: uint16(20098), + 15: uint16(21365), + 16: uint16(27396), + 17: uint16(27410), + 18: uint16(28734), + 19: uint16(29211), + 20: uint16(34349), + 21: uint16(40478), + 22: uint16(21068), + 23: uint16(36771), + 24: uint16(23888), + 25: uint16(25829), + 26: uint16(25900), + 27: uint16(27414), + 28: uint16(28651), + 29: uint16(31811), + 30: uint16(32412), + 31: uint16(34253), + 32: uint16(35172), + 33: uint16(35261), + 34: uint16(25289), + 35: uint16(33240), + 36: uint16(34847), + 37: uint16(24266), + 38: uint16(26391), + 39: uint16(28010), + 40: uint16(29436), + 41: uint16(29701), + 42: uint16(29807), + 43: uint16(34690), + 44: uint16(37086), + 45: uint16(20358), + 46: uint16(23821), + 47: uint16(24480), + 48: uint16(33802), + 49: uint16(20919), + 50: uint16(25504), + 51: uint16(30053), + 52: uint16(20142), + 53: uint16(20486), + 54: uint16(20841), + 55: uint16(20937), + 56: uint16(26753), + 57: uint16(27153), + 58: uint16(31918), + 59: uint16(31921), + 60: uint16(31975), + 61: uint16(33391), + 62: uint16(35538), + 63: uint16(36635), + 64: uint16(37327), + 65: uint16(20406), + 66: uint16(20791), + 67: uint16(21237), + 68: uint16(21570), + 69: uint16(24300), + 70: uint16(24942), + 71: uint16(25150), + 72: uint16(26053), + 73: uint16(27354), + 74: uint16(28670), + 75: uint16(31018), + 76: uint16(34268), + 77: uint16(34851), + 78: uint16(38317), + 79: uint16(39522), + 80: uint16(39530), + 81: uint16(40599), + 82: uint16(40654), + 83: uint16(21147), + 84: uint16(26310), + 85: uint16(27511), + 86: uint16(28701), + 87: uint16(31019), + 88: uint16(36706), + 89: uint16(38722), + 90: uint16(24976), + 91: uint16(25088), + 92: uint16(25891), + 93: uint16(28451), + }, + 53: { + 0: uint16(29001), + 1: uint16(29833), + 2: uint16(32244), + 3: uint16(32879), + 4: uint16(34030), + 5: uint16(36646), + 6: uint16(36899), + 7: uint16(37706), + 8: uint16(20925), + 9: uint16(21015), + 10: uint16(21155), + 11: uint16(27916), + 12: uint16(28872), + 13: uint16(35010), + 14: uint16(24265), + 15: uint16(25986), + 16: uint16(27566), + 17: uint16(28610), + 18: uint16(31806), + 19: uint16(29557), + 20: uint16(20196), + 21: uint16(20278), + 22: uint16(22265), + 23: uint16(63839), + 24: uint16(23738), + 25: uint16(23994), + 26: uint16(24604), + 27: uint16(29618), + 28: uint16(31533), + 29: uint16(32666), + 30: uint16(32718), + 31: uint16(32838), + 32: uint16(36894), + 33: uint16(37428), + 34: uint16(38646), + 35: uint16(38728), + 36: uint16(38936), + 37: uint16(40801), + 38: uint16(20363), + 39: uint16(28583), + 40: uint16(31150), + 41: uint16(37300), + 42: uint16(38583), + 43: uint16(21214), + 44: uint16(63840), + 45: uint16(25736), + 46: uint16(25796), + 47: uint16(27347), + 48: uint16(28510), + 49: uint16(28696), + 50: uint16(29200), + 51: uint16(30439), + 52: uint16(32769), + 53: uint16(34310), + 54: uint16(34396), + 55: uint16(36335), + 56: uint16(36613), + 57: uint16(38706), + 58: uint16(39791), + 59: uint16(40442), + 60: uint16(40565), + 61: uint16(30860), + 62: uint16(31103), + 63: uint16(32160), + 64: uint16(33737), + 65: uint16(37636), + 66: uint16(40575), + 67: uint16(40595), + 68: uint16(35542), + 69: uint16(22751), + 70: uint16(24324), + 71: uint16(26407), + 72: uint16(28711), + 73: uint16(29903), + 74: uint16(31840), + 75: uint16(32894), + 76: uint16(20769), + 77: uint16(28712), + 78: uint16(29282), + 79: uint16(30922), + 80: uint16(36034), + 81: uint16(36058), + 82: uint16(36084), + 83: uint16(38647), + 84: uint16(20102), + 85: uint16(20698), + 86: uint16(23534), + 87: uint16(24278), + 88: uint16(26009), + 89: uint16(29134), + 90: uint16(30274), + 91: uint16(30637), + 92: uint16(32842), + 93: uint16(34044), + }, + 54: { + 0: uint16(36988), + 1: uint16(39719), + 2: uint16(40845), + 3: uint16(22744), + 4: uint16(23105), + 5: uint16(23650), + 6: uint16(27155), + 7: uint16(28122), + 8: uint16(28431), + 9: uint16(30267), + 10: uint16(32047), + 11: uint16(32311), + 12: uint16(34078), + 13: uint16(35128), + 14: uint16(37860), + 15: uint16(38475), + 16: uint16(21129), + 17: uint16(26066), + 18: uint16(26611), + 19: uint16(27060), + 20: uint16(27969), + 21: uint16(28316), + 22: uint16(28687), + 23: uint16(29705), + 24: uint16(29792), + 25: uint16(30041), + 26: uint16(30244), + 27: uint16(30827), + 28: uint16(35628), + 29: uint16(39006), + 30: uint16(20845), + 31: uint16(25134), + 32: uint16(38520), + 33: uint16(20374), + 34: uint16(20523), + 35: uint16(23833), + 36: uint16(28138), + 37: uint16(32184), + 38: uint16(36650), + 39: uint16(24459), + 40: uint16(24900), + 41: uint16(26647), + 42: uint16(63841), + 43: uint16(38534), + 44: uint16(21202), + 45: uint16(32907), + 46: uint16(20956), + 47: uint16(20940), + 48: uint16(26974), + 49: uint16(31260), + 50: uint16(32190), + 51: uint16(33777), + 52: uint16(38517), + 53: uint16(20442), + 54: uint16(21033), + 55: uint16(21400), + 56: uint16(21519), + 57: uint16(21774), + 58: uint16(23653), + 59: uint16(24743), + 60: uint16(26446), + 61: uint16(26792), + 62: uint16(28012), + 63: uint16(29313), + 64: uint16(29432), + 65: uint16(29702), + 66: uint16(29827), + 67: uint16(63842), + 68: uint16(30178), + 69: uint16(31852), + 70: uint16(32633), + 71: uint16(32696), + 72: uint16(33673), + 73: uint16(35023), + 74: uint16(35041), + 75: uint16(37324), + 76: uint16(37328), + 77: uint16(38626), + 78: uint16(39881), + 79: uint16(21533), + 80: uint16(28542), + 81: uint16(29136), + 82: uint16(29848), + 83: uint16(34298), + 84: uint16(36522), + 85: uint16(38563), + 86: uint16(40023), + 87: uint16(40607), + 88: uint16(26519), + 89: uint16(28107), + 90: uint16(29747), + 91: uint16(33256), + 92: uint16(38678), + 93: uint16(30764), + }, + 55: { + 0: uint16(31435), + 1: uint16(31520), + 2: uint16(31890), + 3: uint16(25705), + 4: uint16(29802), + 5: uint16(30194), + 6: uint16(30908), + 7: uint16(30952), + 8: uint16(39340), + 9: uint16(39764), + 10: uint16(40635), + 11: uint16(23518), + 12: uint16(24149), + 13: uint16(28448), + 14: uint16(33180), + 15: uint16(33707), + 16: uint16(37000), + 17: uint16(19975), + 18: uint16(21325), + 19: uint16(23081), + 20: uint16(24018), + 21: uint16(24398), + 22: uint16(24930), + 23: uint16(25405), + 24: uint16(26217), + 25: uint16(26364), + 26: uint16(28415), + 27: uint16(28459), + 28: uint16(28771), + 29: uint16(30622), + 30: uint16(33836), + 31: uint16(34067), + 32: uint16(34875), + 33: uint16(36627), + 34: uint16(39237), + 35: uint16(39995), + 36: uint16(21788), + 37: uint16(25273), + 38: uint16(26411), + 39: uint16(27819), + 40: uint16(33545), + 41: uint16(35178), + 42: uint16(38778), + 43: uint16(20129), + 44: uint16(22916), + 45: uint16(24536), + 46: uint16(24537), + 47: uint16(26395), + 48: uint16(32178), + 49: uint16(32596), + 50: uint16(33426), + 51: uint16(33579), + 52: uint16(33725), + 53: uint16(36638), + 54: uint16(37017), + 55: uint16(22475), + 56: uint16(22969), + 57: uint16(23186), + 58: uint16(23504), + 59: uint16(26151), + 60: uint16(26522), + 61: uint16(26757), + 62: uint16(27599), + 63: uint16(29028), + 64: uint16(32629), + 65: uint16(36023), + 66: uint16(36067), + 67: uint16(36993), + 68: uint16(39749), + 69: uint16(33032), + 70: uint16(35978), + 71: uint16(38476), + 72: uint16(39488), + 73: uint16(40613), + 74: uint16(23391), + 75: uint16(27667), + 76: uint16(29467), + 77: uint16(30450), + 78: uint16(30431), + 79: uint16(33804), + 80: uint16(20906), + 81: uint16(35219), + 82: uint16(20813), + 83: uint16(20885), + 84: uint16(21193), + 85: uint16(26825), + 86: uint16(27796), + 87: uint16(30468), + 88: uint16(30496), + 89: uint16(32191), + 90: uint16(32236), + 91: uint16(38754), + 92: uint16(40629), + 93: uint16(28357), + }, + 56: { + 0: uint16(34065), + 1: uint16(20901), + 2: uint16(21517), + 3: uint16(21629), + 4: uint16(26126), + 5: uint16(26269), + 6: uint16(26919), + 7: uint16(28319), + 8: uint16(30399), + 9: uint16(30609), + 10: uint16(33559), + 11: uint16(33986), + 12: uint16(34719), + 13: uint16(37225), + 14: uint16(37528), + 15: uint16(40180), + 16: uint16(34946), + 17: uint16(20398), + 18: uint16(20882), + 19: uint16(21215), + 20: uint16(22982), + 21: uint16(24125), + 22: uint16(24917), + 23: uint16(25720), + 24: uint16(25721), + 25: uint16(26286), + 26: uint16(26576), + 27: uint16(27169), + 28: uint16(27597), + 29: uint16(27611), + 30: uint16(29279), + 31: uint16(29281), + 32: uint16(29761), + 33: uint16(30520), + 34: uint16(30683), + 35: uint16(32791), + 36: uint16(33468), + 37: uint16(33541), + 38: uint16(35584), + 39: uint16(35624), + 40: uint16(35980), + 41: uint16(26408), + 42: uint16(27792), + 43: uint16(29287), + 44: uint16(30446), + 45: uint16(30566), + 46: uint16(31302), + 47: uint16(40361), + 48: uint16(27519), + 49: uint16(27794), + 50: uint16(22818), + 51: uint16(26406), + 52: uint16(33945), + 53: uint16(21359), + 54: uint16(22675), + 55: uint16(22937), + 56: uint16(24287), + 57: uint16(25551), + 58: uint16(26164), + 59: uint16(26483), + 60: uint16(28218), + 61: uint16(29483), + 62: uint16(31447), + 63: uint16(33495), + 64: uint16(37672), + 65: uint16(21209), + 66: uint16(24043), + 67: uint16(25006), + 68: uint16(25035), + 69: uint16(25098), + 70: uint16(25287), + 71: uint16(25771), + 72: uint16(26080), + 73: uint16(26969), + 74: uint16(27494), + 75: uint16(27595), + 76: uint16(28961), + 77: uint16(29687), + 78: uint16(30045), + 79: uint16(32326), + 80: uint16(33310), + 81: uint16(33538), + 82: uint16(34154), + 83: uint16(35491), + 84: uint16(36031), + 85: uint16(38695), + 86: uint16(40289), + 87: uint16(22696), + 88: uint16(40664), + 89: uint16(20497), + 90: uint16(21006), + 91: uint16(21563), + 92: uint16(21839), + 93: uint16(25991), + }, + 57: { + 0: uint16(27766), + 1: uint16(32010), + 2: uint16(32011), + 3: uint16(32862), + 4: uint16(34442), + 5: uint16(38272), + 6: uint16(38639), + 7: uint16(21247), + 8: uint16(27797), + 9: uint16(29289), + 10: uint16(21619), + 11: uint16(23194), + 12: uint16(23614), + 13: uint16(23883), + 14: uint16(24396), + 15: uint16(24494), + 16: uint16(26410), + 17: uint16(26806), + 18: uint16(26979), + 19: uint16(28220), + 20: uint16(28228), + 21: uint16(30473), + 22: uint16(31859), + 23: uint16(32654), + 24: uint16(34183), + 25: uint16(35598), + 26: uint16(36855), + 27: uint16(38753), + 28: uint16(40692), + 29: uint16(23735), + 30: uint16(24758), + 31: uint16(24845), + 32: uint16(25003), + 33: uint16(25935), + 34: uint16(26107), + 35: uint16(26108), + 36: uint16(27665), + 37: uint16(27887), + 38: uint16(29599), + 39: uint16(29641), + 40: uint16(32225), + 41: uint16(38292), + 42: uint16(23494), + 43: uint16(34588), + 44: uint16(35600), + 45: uint16(21085), + 46: uint16(21338), + 47: uint16(25293), + 48: uint16(25615), + 49: uint16(25778), + 50: uint16(26420), + 51: uint16(27192), + 52: uint16(27850), + 53: uint16(29632), + 54: uint16(29854), + 55: uint16(31636), + 56: uint16(31893), + 57: uint16(32283), + 58: uint16(33162), + 59: uint16(33334), + 60: uint16(34180), + 61: uint16(36843), + 62: uint16(38649), + 63: uint16(39361), + 64: uint16(20276), + 65: uint16(21322), + 66: uint16(21453), + 67: uint16(21467), + 68: uint16(25292), + 69: uint16(25644), + 70: uint16(25856), + 71: uint16(26001), + 72: uint16(27075), + 73: uint16(27886), + 74: uint16(28504), + 75: uint16(29677), + 76: uint16(30036), + 77: uint16(30242), + 78: uint16(30436), + 79: uint16(30460), + 80: uint16(30928), + 81: uint16(30971), + 82: uint16(31020), + 83: uint16(32070), + 84: uint16(33324), + 85: uint16(34784), + 86: uint16(36820), + 87: uint16(38930), + 88: uint16(39151), + 89: uint16(21187), + 90: uint16(25300), + 91: uint16(25765), + 92: uint16(28196), + 93: uint16(28497), + }, + 58: { + 0: uint16(30332), + 1: uint16(36299), + 2: uint16(37297), + 3: uint16(37474), + 4: uint16(39662), + 5: uint16(39747), + 6: uint16(20515), + 7: uint16(20621), + 8: uint16(22346), + 9: uint16(22952), + 10: uint16(23592), + 11: uint16(24135), + 12: uint16(24439), + 13: uint16(25151), + 14: uint16(25918), + 15: uint16(26041), + 16: uint16(26049), + 17: uint16(26121), + 18: uint16(26507), + 19: uint16(27036), + 20: uint16(28354), + 21: uint16(30917), + 22: uint16(32033), + 23: uint16(32938), + 24: uint16(33152), + 25: uint16(33323), + 26: uint16(33459), + 27: uint16(33953), + 28: uint16(34444), + 29: uint16(35370), + 30: uint16(35607), + 31: uint16(37030), + 32: uint16(38450), + 33: uint16(40848), + 34: uint16(20493), + 35: uint16(20467), + 36: uint16(63843), + 37: uint16(22521), + 38: uint16(24472), + 39: uint16(25308), + 40: uint16(25490), + 41: uint16(26479), + 42: uint16(28227), + 43: uint16(28953), + 44: uint16(30403), + 45: uint16(32972), + 46: uint16(32986), + 47: uint16(35060), + 48: uint16(35061), + 49: uint16(35097), + 50: uint16(36064), + 51: uint16(36649), + 52: uint16(37197), + 53: uint16(38506), + 54: uint16(20271), + 55: uint16(20336), + 56: uint16(24091), + 57: uint16(26575), + 58: uint16(26658), + 59: uint16(30333), + 60: uint16(30334), + 61: uint16(39748), + 62: uint16(24161), + 63: uint16(27146), + 64: uint16(29033), + 65: uint16(29140), + 66: uint16(30058), + 67: uint16(63844), + 68: uint16(32321), + 69: uint16(34115), + 70: uint16(34281), + 71: uint16(39132), + 72: uint16(20240), + 73: uint16(31567), + 74: uint16(32624), + 75: uint16(38309), + 76: uint16(20961), + 77: uint16(24070), + 78: uint16(26805), + 79: uint16(27710), + 80: uint16(27726), + 81: uint16(27867), + 82: uint16(29359), + 83: uint16(31684), + 84: uint16(33539), + 85: uint16(27861), + 86: uint16(29754), + 87: uint16(20731), + 88: uint16(21128), + 89: uint16(22721), + 90: uint16(25816), + 91: uint16(27287), + 92: uint16(29863), + 93: uint16(30294), + }, + 59: { + 0: uint16(30887), + 1: uint16(34327), + 2: uint16(38370), + 3: uint16(38713), + 4: uint16(63845), + 5: uint16(21342), + 6: uint16(24321), + 7: uint16(35722), + 8: uint16(36776), + 9: uint16(36783), + 10: uint16(37002), + 11: uint16(21029), + 12: uint16(30629), + 13: uint16(40009), + 14: uint16(40712), + 15: uint16(19993), + 16: uint16(20482), + 17: uint16(20853), + 18: uint16(23643), + 19: uint16(24183), + 20: uint16(26142), + 21: uint16(26170), + 22: uint16(26564), + 23: uint16(26821), + 24: uint16(28851), + 25: uint16(29953), + 26: uint16(30149), + 27: uint16(31177), + 28: uint16(31453), + 29: uint16(36647), + 30: uint16(39200), + 31: uint16(39432), + 32: uint16(20445), + 33: uint16(22561), + 34: uint16(22577), + 35: uint16(23542), + 36: uint16(26222), + 37: uint16(27493), + 38: uint16(27921), + 39: uint16(28282), + 40: uint16(28541), + 41: uint16(29668), + 42: uint16(29995), + 43: uint16(33769), + 44: uint16(35036), + 45: uint16(35091), + 46: uint16(35676), + 47: uint16(36628), + 48: uint16(20239), + 49: uint16(20693), + 50: uint16(21264), + 51: uint16(21340), + 52: uint16(23443), + 53: uint16(24489), + 54: uint16(26381), + 55: uint16(31119), + 56: uint16(33145), + 57: uint16(33583), + 58: uint16(34068), + 59: uint16(35079), + 60: uint16(35206), + 61: uint16(36665), + 62: uint16(36667), + 63: uint16(39333), + 64: uint16(39954), + 65: uint16(26412), + 66: uint16(20086), + 67: uint16(20472), + 68: uint16(22857), + 69: uint16(23553), + 70: uint16(23791), + 71: uint16(23792), + 72: uint16(25447), + 73: uint16(26834), + 74: uint16(28925), + 75: uint16(29090), + 76: uint16(29739), + 77: uint16(32299), + 78: uint16(34028), + 79: uint16(34562), + 80: uint16(36898), + 81: uint16(37586), + 82: uint16(40179), + 83: uint16(19981), + 84: uint16(20184), + 85: uint16(20463), + 86: uint16(20613), + 87: uint16(21078), + 88: uint16(21103), + 89: uint16(21542), + 90: uint16(21648), + 91: uint16(22496), + 92: uint16(22827), + 93: uint16(23142), + }, + 60: { + 0: uint16(23386), + 1: uint16(23413), + 2: uint16(23500), + 3: uint16(24220), + 4: uint16(63846), + 5: uint16(25206), + 6: uint16(25975), + 7: uint16(26023), + 8: uint16(28014), + 9: uint16(28325), + 10: uint16(29238), + 11: uint16(31526), + 12: uint16(31807), + 13: uint16(32566), + 14: uint16(33104), + 15: uint16(33105), + 16: uint16(33178), + 17: uint16(33344), + 18: uint16(33433), + 19: uint16(33705), + 20: uint16(35331), + 21: uint16(36000), + 22: uint16(36070), + 23: uint16(36091), + 24: uint16(36212), + 25: uint16(36282), + 26: uint16(37096), + 27: uint16(37340), + 28: uint16(38428), + 29: uint16(38468), + 30: uint16(39385), + 31: uint16(40167), + 32: uint16(21271), + 33: uint16(20998), + 34: uint16(21545), + 35: uint16(22132), + 36: uint16(22707), + 37: uint16(22868), + 38: uint16(22894), + 39: uint16(24575), + 40: uint16(24996), + 41: uint16(25198), + 42: uint16(26128), + 43: uint16(27774), + 44: uint16(28954), + 45: uint16(30406), + 46: uint16(31881), + 47: uint16(31966), + 48: uint16(32027), + 49: uint16(33452), + 50: uint16(36033), + 51: uint16(38640), + 52: uint16(63847), + 53: uint16(20315), + 54: uint16(24343), + 55: uint16(24447), + 56: uint16(25282), + 57: uint16(23849), + 58: uint16(26379), + 59: uint16(26842), + 60: uint16(30844), + 61: uint16(32323), + 62: uint16(40300), + 63: uint16(19989), + 64: uint16(20633), + 65: uint16(21269), + 66: uint16(21290), + 67: uint16(21329), + 68: uint16(22915), + 69: uint16(23138), + 70: uint16(24199), + 71: uint16(24754), + 72: uint16(24970), + 73: uint16(25161), + 74: uint16(25209), + 75: uint16(26000), + 76: uint16(26503), + 77: uint16(27047), + 78: uint16(27604), + 79: uint16(27606), + 80: uint16(27607), + 81: uint16(27608), + 82: uint16(27832), + 83: uint16(63848), + 84: uint16(29749), + 85: uint16(30202), + 86: uint16(30738), + 87: uint16(30865), + 88: uint16(31189), + 89: uint16(31192), + 90: uint16(31875), + 91: uint16(32203), + 92: uint16(32737), + 93: uint16(32933), + }, + 61: { + 0: uint16(33086), + 1: uint16(33218), + 2: uint16(33778), + 3: uint16(34586), + 4: uint16(35048), + 5: uint16(35513), + 6: uint16(35692), + 7: uint16(36027), + 8: uint16(37145), + 9: uint16(38750), + 10: uint16(39131), + 11: uint16(40763), + 12: uint16(22188), + 13: uint16(23338), + 14: uint16(24428), + 15: uint16(25996), + 16: uint16(27315), + 17: uint16(27567), + 18: uint16(27996), + 19: uint16(28657), + 20: uint16(28693), + 21: uint16(29277), + 22: uint16(29613), + 23: uint16(36007), + 24: uint16(36051), + 25: uint16(38971), + 26: uint16(24977), + 27: uint16(27703), + 28: uint16(32856), + 29: uint16(39425), + 30: uint16(20045), + 31: uint16(20107), + 32: uint16(20123), + 33: uint16(20181), + 34: uint16(20282), + 35: uint16(20284), + 36: uint16(20351), + 37: uint16(20447), + 38: uint16(20735), + 39: uint16(21490), + 40: uint16(21496), + 41: uint16(21766), + 42: uint16(21987), + 43: uint16(22235), + 44: uint16(22763), + 45: uint16(22882), + 46: uint16(23057), + 47: uint16(23531), + 48: uint16(23546), + 49: uint16(23556), + 50: uint16(24051), + 51: uint16(24107), + 52: uint16(24473), + 53: uint16(24605), + 54: uint16(25448), + 55: uint16(26012), + 56: uint16(26031), + 57: uint16(26614), + 58: uint16(26619), + 59: uint16(26797), + 60: uint16(27515), + 61: uint16(27801), + 62: uint16(27863), + 63: uint16(28195), + 64: uint16(28681), + 65: uint16(29509), + 66: uint16(30722), + 67: uint16(31038), + 68: uint16(31040), + 69: uint16(31072), + 70: uint16(31169), + 71: uint16(31721), + 72: uint16(32023), + 73: uint16(32114), + 74: uint16(32902), + 75: uint16(33293), + 76: uint16(33678), + 77: uint16(34001), + 78: uint16(34503), + 79: uint16(35039), + 80: uint16(35408), + 81: uint16(35422), + 82: uint16(35613), + 83: uint16(36060), + 84: uint16(36198), + 85: uint16(36781), + 86: uint16(37034), + 87: uint16(39164), + 88: uint16(39391), + 89: uint16(40605), + 90: uint16(21066), + 91: uint16(63849), + 92: uint16(26388), + 93: uint16(63850), + }, + 62: { + 0: uint16(20632), + 1: uint16(21034), + 2: uint16(23665), + 3: uint16(25955), + 4: uint16(27733), + 5: uint16(29642), + 6: uint16(29987), + 7: uint16(30109), + 8: uint16(31639), + 9: uint16(33948), + 10: uint16(37240), + 11: uint16(38704), + 12: uint16(20087), + 13: uint16(25746), + 14: uint16(27578), + 15: uint16(29022), + 16: uint16(34217), + 17: uint16(19977), + 18: uint16(63851), + 19: uint16(26441), + 20: uint16(26862), + 21: uint16(28183), + 22: uint16(33439), + 23: uint16(34072), + 24: uint16(34923), + 25: uint16(25591), + 26: uint16(28545), + 27: uint16(37394), + 28: uint16(39087), + 29: uint16(19978), + 30: uint16(20663), + 31: uint16(20687), + 32: uint16(20767), + 33: uint16(21830), + 34: uint16(21930), + 35: uint16(22039), + 36: uint16(23360), + 37: uint16(23577), + 38: uint16(23776), + 39: uint16(24120), + 40: uint16(24202), + 41: uint16(24224), + 42: uint16(24258), + 43: uint16(24819), + 44: uint16(26705), + 45: uint16(27233), + 46: uint16(28248), + 47: uint16(29245), + 48: uint16(29248), + 49: uint16(29376), + 50: uint16(30456), + 51: uint16(31077), + 52: uint16(31665), + 53: uint16(32724), + 54: uint16(35059), + 55: uint16(35316), + 56: uint16(35443), + 57: uint16(35937), + 58: uint16(36062), + 59: uint16(38684), + 60: uint16(22622), + 61: uint16(29885), + 62: uint16(36093), + 63: uint16(21959), + 64: uint16(63852), + 65: uint16(31329), + 66: uint16(32034), + 67: uint16(33394), + 68: uint16(29298), + 69: uint16(29983), + 70: uint16(29989), + 71: uint16(63853), + 72: uint16(31513), + 73: uint16(22661), + 74: uint16(22779), + 75: uint16(23996), + 76: uint16(24207), + 77: uint16(24246), + 78: uint16(24464), + 79: uint16(24661), + 80: uint16(25234), + 81: uint16(25471), + 82: uint16(25933), + 83: uint16(26257), + 84: uint16(26329), + 85: uint16(26360), + 86: uint16(26646), + 87: uint16(26866), + 88: uint16(29312), + 89: uint16(29790), + 90: uint16(31598), + 91: uint16(32110), + 92: uint16(32214), + 93: uint16(32626), + }, + 63: { + 0: uint16(32997), + 1: uint16(33298), + 2: uint16(34223), + 3: uint16(35199), + 4: uint16(35475), + 5: uint16(36893), + 6: uint16(37604), + 7: uint16(40653), + 8: uint16(40736), + 9: uint16(22805), + 10: uint16(22893), + 11: uint16(24109), + 12: uint16(24796), + 13: uint16(26132), + 14: uint16(26227), + 15: uint16(26512), + 16: uint16(27728), + 17: uint16(28101), + 18: uint16(28511), + 19: uint16(30707), + 20: uint16(30889), + 21: uint16(33990), + 22: uint16(37323), + 23: uint16(37675), + 24: uint16(20185), + 25: uint16(20682), + 26: uint16(20808), + 27: uint16(21892), + 28: uint16(23307), + 29: uint16(23459), + 30: uint16(25159), + 31: uint16(25982), + 32: uint16(26059), + 33: uint16(28210), + 34: uint16(29053), + 35: uint16(29697), + 36: uint16(29764), + 37: uint16(29831), + 38: uint16(29887), + 39: uint16(30316), + 40: uint16(31146), + 41: uint16(32218), + 42: uint16(32341), + 43: uint16(32680), + 44: uint16(33146), + 45: uint16(33203), + 46: uint16(33337), + 47: uint16(34330), + 48: uint16(34796), + 49: uint16(35445), + 50: uint16(36323), + 51: uint16(36984), + 52: uint16(37521), + 53: uint16(37925), + 54: uint16(39245), + 55: uint16(39854), + 56: uint16(21352), + 57: uint16(23633), + 58: uint16(26964), + 59: uint16(27844), + 60: uint16(27945), + 61: uint16(28203), + 62: uint16(33292), + 63: uint16(34203), + 64: uint16(35131), + 65: uint16(35373), + 66: uint16(35498), + 67: uint16(38634), + 68: uint16(40807), + 69: uint16(21089), + 70: uint16(26297), + 71: uint16(27570), + 72: uint16(32406), + 73: uint16(34814), + 74: uint16(36109), + 75: uint16(38275), + 76: uint16(38493), + 77: uint16(25885), + 78: uint16(28041), + 79: uint16(29166), + 80: uint16(63854), + 81: uint16(22478), + 82: uint16(22995), + 83: uint16(23468), + 84: uint16(24615), + 85: uint16(24826), + 86: uint16(25104), + 87: uint16(26143), + 88: uint16(26207), + 89: uint16(29481), + 90: uint16(29689), + 91: uint16(30427), + 92: uint16(30465), + 93: uint16(31596), + }, + 64: { + 0: uint16(32854), + 1: uint16(32882), + 2: uint16(33125), + 3: uint16(35488), + 4: uint16(37266), + 5: uint16(19990), + 6: uint16(21218), + 7: uint16(27506), + 8: uint16(27927), + 9: uint16(31237), + 10: uint16(31545), + 11: uint16(32048), + 12: uint16(63855), + 13: uint16(36016), + 14: uint16(21484), + 15: uint16(22063), + 16: uint16(22609), + 17: uint16(23477), + 18: uint16(23567), + 19: uint16(23569), + 20: uint16(24034), + 21: uint16(25152), + 22: uint16(25475), + 23: uint16(25620), + 24: uint16(26157), + 25: uint16(26803), + 26: uint16(27836), + 27: uint16(28040), + 28: uint16(28335), + 29: uint16(28703), + 30: uint16(28836), + 31: uint16(29138), + 32: uint16(29990), + 33: uint16(30095), + 34: uint16(30094), + 35: uint16(30233), + 36: uint16(31505), + 37: uint16(31712), + 38: uint16(31787), + 39: uint16(32032), + 40: uint16(32057), + 41: uint16(34092), + 42: uint16(34157), + 43: uint16(34311), + 44: uint16(35380), + 45: uint16(36877), + 46: uint16(36961), + 47: uint16(37045), + 48: uint16(37559), + 49: uint16(38902), + 50: uint16(39479), + 51: uint16(20439), + 52: uint16(23660), + 53: uint16(26463), + 54: uint16(28049), + 55: uint16(31903), + 56: uint16(32396), + 57: uint16(35606), + 58: uint16(36118), + 59: uint16(36895), + 60: uint16(23403), + 61: uint16(24061), + 62: uint16(25613), + 63: uint16(33984), + 64: uint16(36956), + 65: uint16(39137), + 66: uint16(29575), + 67: uint16(23435), + 68: uint16(24730), + 69: uint16(26494), + 70: uint16(28126), + 71: uint16(35359), + 72: uint16(35494), + 73: uint16(36865), + 74: uint16(38924), + 75: uint16(21047), + 76: uint16(63856), + 77: uint16(28753), + 78: uint16(30862), + 79: uint16(37782), + 80: uint16(34928), + 81: uint16(37335), + 82: uint16(20462), + 83: uint16(21463), + 84: uint16(22013), + 85: uint16(22234), + 86: uint16(22402), + 87: uint16(22781), + 88: uint16(23234), + 89: uint16(23432), + 90: uint16(23723), + 91: uint16(23744), + 92: uint16(24101), + 93: uint16(24833), + }, + 65: { + 0: uint16(25101), + 1: uint16(25163), + 2: uint16(25480), + 3: uint16(25628), + 4: uint16(25910), + 5: uint16(25976), + 6: uint16(27193), + 7: uint16(27530), + 8: uint16(27700), + 9: uint16(27929), + 10: uint16(28465), + 11: uint16(29159), + 12: uint16(29417), + 13: uint16(29560), + 14: uint16(29703), + 15: uint16(29874), + 16: uint16(30246), + 17: uint16(30561), + 18: uint16(31168), + 19: uint16(31319), + 20: uint16(31466), + 21: uint16(31929), + 22: uint16(32143), + 23: uint16(32172), + 24: uint16(32353), + 25: uint16(32670), + 26: uint16(33065), + 27: uint16(33585), + 28: uint16(33936), + 29: uint16(34010), + 30: uint16(34282), + 31: uint16(34966), + 32: uint16(35504), + 33: uint16(35728), + 34: uint16(36664), + 35: uint16(36930), + 36: uint16(36995), + 37: uint16(37228), + 38: uint16(37526), + 39: uint16(37561), + 40: uint16(38539), + 41: uint16(38567), + 42: uint16(38568), + 43: uint16(38614), + 44: uint16(38656), + 45: uint16(38920), + 46: uint16(39318), + 47: uint16(39635), + 48: uint16(39706), + 49: uint16(21460), + 50: uint16(22654), + 51: uint16(22809), + 52: uint16(23408), + 53: uint16(23487), + 54: uint16(28113), + 55: uint16(28506), + 56: uint16(29087), + 57: uint16(29729), + 58: uint16(29881), + 59: uint16(32901), + 60: uint16(33789), + 61: uint16(24033), + 62: uint16(24455), + 63: uint16(24490), + 64: uint16(24642), + 65: uint16(26092), + 66: uint16(26642), + 67: uint16(26991), + 68: uint16(27219), + 69: uint16(27529), + 70: uint16(27957), + 71: uint16(28147), + 72: uint16(29667), + 73: uint16(30462), + 74: uint16(30636), + 75: uint16(31565), + 76: uint16(32020), + 77: uint16(33059), + 78: uint16(33308), + 79: uint16(33600), + 80: uint16(34036), + 81: uint16(34147), + 82: uint16(35426), + 83: uint16(35524), + 84: uint16(37255), + 85: uint16(37662), + 86: uint16(38918), + 87: uint16(39348), + 88: uint16(25100), + 89: uint16(34899), + 90: uint16(36848), + 91: uint16(37477), + 92: uint16(23815), + 93: uint16(23847), + }, + 66: { + 0: uint16(23913), + 1: uint16(29791), + 2: uint16(33181), + 3: uint16(34664), + 4: uint16(28629), + 5: uint16(25342), + 6: uint16(32722), + 7: uint16(35126), + 8: uint16(35186), + 9: uint16(19998), + 10: uint16(20056), + 11: uint16(20711), + 12: uint16(21213), + 13: uint16(21319), + 14: uint16(25215), + 15: uint16(26119), + 16: uint16(32361), + 17: uint16(34821), + 18: uint16(38494), + 19: uint16(20365), + 20: uint16(21273), + 21: uint16(22070), + 22: uint16(22987), + 23: uint16(23204), + 24: uint16(23608), + 25: uint16(23630), + 26: uint16(23629), + 27: uint16(24066), + 28: uint16(24337), + 29: uint16(24643), + 30: uint16(26045), + 31: uint16(26159), + 32: uint16(26178), + 33: uint16(26558), + 34: uint16(26612), + 35: uint16(29468), + 36: uint16(30690), + 37: uint16(31034), + 38: uint16(32709), + 39: uint16(33940), + 40: uint16(33997), + 41: uint16(35222), + 42: uint16(35430), + 43: uint16(35433), + 44: uint16(35553), + 45: uint16(35925), + 46: uint16(35962), + 47: uint16(22516), + 48: uint16(23508), + 49: uint16(24335), + 50: uint16(24687), + 51: uint16(25325), + 52: uint16(26893), + 53: uint16(27542), + 54: uint16(28252), + 55: uint16(29060), + 56: uint16(31698), + 57: uint16(34645), + 58: uint16(35672), + 59: uint16(36606), + 60: uint16(39135), + 61: uint16(39166), + 62: uint16(20280), + 63: uint16(20353), + 64: uint16(20449), + 65: uint16(21627), + 66: uint16(23072), + 67: uint16(23480), + 68: uint16(24892), + 69: uint16(26032), + 70: uint16(26216), + 71: uint16(29180), + 72: uint16(30003), + 73: uint16(31070), + 74: uint16(32051), + 75: uint16(33102), + 76: uint16(33251), + 77: uint16(33688), + 78: uint16(34218), + 79: uint16(34254), + 80: uint16(34563), + 81: uint16(35338), + 82: uint16(36523), + 83: uint16(36763), + 84: uint16(63857), + 85: uint16(36805), + 86: uint16(22833), + 87: uint16(23460), + 88: uint16(23526), + 89: uint16(24713), + 90: uint16(23529), + 91: uint16(23563), + 92: uint16(24515), + 93: uint16(27777), + }, + 67: { + 0: uint16(63858), + 1: uint16(28145), + 2: uint16(28683), + 3: uint16(29978), + 4: uint16(33455), + 5: uint16(35574), + 6: uint16(20160), + 7: uint16(21313), + 8: uint16(63859), + 9: uint16(38617), + 10: uint16(27663), + 11: uint16(20126), + 12: uint16(20420), + 13: uint16(20818), + 14: uint16(21854), + 15: uint16(23077), + 16: uint16(23784), + 17: uint16(25105), + 18: uint16(29273), + 19: uint16(33469), + 20: uint16(33706), + 21: uint16(34558), + 22: uint16(34905), + 23: uint16(35357), + 24: uint16(38463), + 25: uint16(38597), + 26: uint16(39187), + 27: uint16(40201), + 28: uint16(40285), + 29: uint16(22538), + 30: uint16(23731), + 31: uint16(23997), + 32: uint16(24132), + 33: uint16(24801), + 34: uint16(24853), + 35: uint16(25569), + 36: uint16(27138), + 37: uint16(28197), + 38: uint16(37122), + 39: uint16(37716), + 40: uint16(38990), + 41: uint16(39952), + 42: uint16(40823), + 43: uint16(23433), + 44: uint16(23736), + 45: uint16(25353), + 46: uint16(26191), + 47: uint16(26696), + 48: uint16(30524), + 49: uint16(38593), + 50: uint16(38797), + 51: uint16(38996), + 52: uint16(39839), + 53: uint16(26017), + 54: uint16(35585), + 55: uint16(36555), + 56: uint16(38332), + 57: uint16(21813), + 58: uint16(23721), + 59: uint16(24022), + 60: uint16(24245), + 61: uint16(26263), + 62: uint16(30284), + 63: uint16(33780), + 64: uint16(38343), + 65: uint16(22739), + 66: uint16(25276), + 67: uint16(29390), + 68: uint16(40232), + 69: uint16(20208), + 70: uint16(22830), + 71: uint16(24591), + 72: uint16(26171), + 73: uint16(27523), + 74: uint16(31207), + 75: uint16(40230), + 76: uint16(21395), + 77: uint16(21696), + 78: uint16(22467), + 79: uint16(23830), + 80: uint16(24859), + 81: uint16(26326), + 82: uint16(28079), + 83: uint16(30861), + 84: uint16(33406), + 85: uint16(38552), + 86: uint16(38724), + 87: uint16(21380), + 88: uint16(25212), + 89: uint16(25494), + 90: uint16(28082), + 91: uint16(32266), + 92: uint16(33099), + 93: uint16(38989), + }, + 68: { + 0: uint16(27387), + 1: uint16(32588), + 2: uint16(40367), + 3: uint16(40474), + 4: uint16(20063), + 5: uint16(20539), + 6: uint16(20918), + 7: uint16(22812), + 8: uint16(24825), + 9: uint16(25590), + 10: uint16(26928), + 11: uint16(29242), + 12: uint16(32822), + 13: uint16(63860), + 14: uint16(37326), + 15: uint16(24369), + 16: uint16(63861), + 17: uint16(63862), + 18: uint16(32004), + 19: uint16(33509), + 20: uint16(33903), + 21: uint16(33979), + 22: uint16(34277), + 23: uint16(36493), + 24: uint16(63863), + 25: uint16(20335), + 26: uint16(63864), + 27: uint16(63865), + 28: uint16(22756), + 29: uint16(23363), + 30: uint16(24665), + 31: uint16(25562), + 32: uint16(25880), + 33: uint16(25965), + 34: uint16(26264), + 35: uint16(63866), + 36: uint16(26954), + 37: uint16(27171), + 38: uint16(27915), + 39: uint16(28673), + 40: uint16(29036), + 41: uint16(30162), + 42: uint16(30221), + 43: uint16(31155), + 44: uint16(31344), + 45: uint16(63867), + 46: uint16(32650), + 47: uint16(63868), + 48: uint16(35140), + 49: uint16(63869), + 50: uint16(35731), + 51: uint16(37312), + 52: uint16(38525), + 53: uint16(63870), + 54: uint16(39178), + 55: uint16(22276), + 56: uint16(24481), + 57: uint16(26044), + 58: uint16(28417), + 59: uint16(30208), + 60: uint16(31142), + 61: uint16(35486), + 62: uint16(39341), + 63: uint16(39770), + 64: uint16(40812), + 65: uint16(20740), + 66: uint16(25014), + 67: uint16(25233), + 68: uint16(27277), + 69: uint16(33222), + 70: uint16(20547), + 71: uint16(22576), + 72: uint16(24422), + 73: uint16(28937), + 74: uint16(35328), + 75: uint16(35578), + 76: uint16(23420), + 77: uint16(34326), + 78: uint16(20474), + 79: uint16(20796), + 80: uint16(22196), + 81: uint16(22852), + 82: uint16(25513), + 83: uint16(28153), + 84: uint16(23978), + 85: uint16(26989), + 86: uint16(20870), + 87: uint16(20104), + 88: uint16(20313), + 89: uint16(63871), + 90: uint16(63872), + 91: uint16(63873), + 92: uint16(22914), + 93: uint16(63874), + }, + 69: { + 0: uint16(63875), + 1: uint16(27487), + 2: uint16(27741), + 3: uint16(63876), + 4: uint16(29877), + 5: uint16(30998), + 6: uint16(63877), + 7: uint16(33287), + 8: uint16(33349), + 9: uint16(33593), + 10: uint16(36671), + 11: uint16(36701), + 12: uint16(63878), + 13: uint16(39192), + 14: uint16(63879), + 15: uint16(63880), + 16: uint16(63881), + 17: uint16(20134), + 18: uint16(63882), + 19: uint16(22495), + 20: uint16(24441), + 21: uint16(26131), + 22: uint16(63883), + 23: uint16(63884), + 24: uint16(30123), + 25: uint16(32377), + 26: uint16(35695), + 27: uint16(63885), + 28: uint16(36870), + 29: uint16(39515), + 30: uint16(22181), + 31: uint16(22567), + 32: uint16(23032), + 33: uint16(23071), + 34: uint16(23476), + 35: uint16(63886), + 36: uint16(24310), + 37: uint16(63887), + 38: uint16(63888), + 39: uint16(25424), + 40: uint16(25403), + 41: uint16(63889), + 42: uint16(26941), + 43: uint16(27783), + 44: uint16(27839), + 45: uint16(28046), + 46: uint16(28051), + 47: uint16(28149), + 48: uint16(28436), + 49: uint16(63890), + 50: uint16(28895), + 51: uint16(28982), + 52: uint16(29017), + 53: uint16(63891), + 54: uint16(29123), + 55: uint16(29141), + 56: uint16(63892), + 57: uint16(30799), + 58: uint16(30831), + 59: uint16(63893), + 60: uint16(31605), + 61: uint16(32227), + 62: uint16(63894), + 63: uint16(32303), + 64: uint16(63895), + 65: uint16(34893), + 66: uint16(36575), + 67: uint16(63896), + 68: uint16(63897), + 69: uint16(63898), + 70: uint16(37467), + 71: uint16(63899), + 72: uint16(40182), + 73: uint16(63900), + 74: uint16(63901), + 75: uint16(63902), + 76: uint16(24709), + 77: uint16(28037), + 78: uint16(63903), + 79: uint16(29105), + 80: uint16(63904), + 81: uint16(63905), + 82: uint16(38321), + 83: uint16(21421), + 84: uint16(63906), + 85: uint16(63907), + 86: uint16(63908), + 87: uint16(26579), + 88: uint16(63909), + 89: uint16(28814), + 90: uint16(28976), + 91: uint16(29744), + 92: uint16(33398), + 93: uint16(33490), + }, + 70: { + 0: uint16(63910), + 1: uint16(38331), + 2: uint16(39653), + 3: uint16(40573), + 4: uint16(26308), + 5: uint16(63911), + 6: uint16(29121), + 7: uint16(33865), + 8: uint16(63912), + 9: uint16(63913), + 10: uint16(22603), + 11: uint16(63914), + 12: uint16(63915), + 13: uint16(23992), + 14: uint16(24433), + 15: uint16(63916), + 16: uint16(26144), + 17: uint16(26254), + 18: uint16(27001), + 19: uint16(27054), + 20: uint16(27704), + 21: uint16(27891), + 22: uint16(28214), + 23: uint16(28481), + 24: uint16(28634), + 25: uint16(28699), + 26: uint16(28719), + 27: uint16(29008), + 28: uint16(29151), + 29: uint16(29552), + 30: uint16(63917), + 31: uint16(29787), + 32: uint16(63918), + 33: uint16(29908), + 34: uint16(30408), + 35: uint16(31310), + 36: uint16(32403), + 37: uint16(63919), + 38: uint16(63920), + 39: uint16(33521), + 40: uint16(35424), + 41: uint16(36814), + 42: uint16(63921), + 43: uint16(37704), + 44: uint16(63922), + 45: uint16(38681), + 46: uint16(63923), + 47: uint16(63924), + 48: uint16(20034), + 49: uint16(20522), + 50: uint16(63925), + 51: uint16(21000), + 52: uint16(21473), + 53: uint16(26355), + 54: uint16(27757), + 55: uint16(28618), + 56: uint16(29450), + 57: uint16(30591), + 58: uint16(31330), + 59: uint16(33454), + 60: uint16(34269), + 61: uint16(34306), + 62: uint16(63926), + 63: uint16(35028), + 64: uint16(35427), + 65: uint16(35709), + 66: uint16(35947), + 67: uint16(63927), + 68: uint16(37555), + 69: uint16(63928), + 70: uint16(38675), + 71: uint16(38928), + 72: uint16(20116), + 73: uint16(20237), + 74: uint16(20425), + 75: uint16(20658), + 76: uint16(21320), + 77: uint16(21566), + 78: uint16(21555), + 79: uint16(21978), + 80: uint16(22626), + 81: uint16(22714), + 82: uint16(22887), + 83: uint16(23067), + 84: uint16(23524), + 85: uint16(24735), + 86: uint16(63929), + 87: uint16(25034), + 88: uint16(25942), + 89: uint16(26111), + 90: uint16(26212), + 91: uint16(26791), + 92: uint16(27738), + 93: uint16(28595), + }, + 71: { + 0: uint16(28879), + 1: uint16(29100), + 2: uint16(29522), + 3: uint16(31613), + 4: uint16(34568), + 5: uint16(35492), + 6: uint16(39986), + 7: uint16(40711), + 8: uint16(23627), + 9: uint16(27779), + 10: uint16(29508), + 11: uint16(29577), + 12: uint16(37434), + 13: uint16(28331), + 14: uint16(29797), + 15: uint16(30239), + 16: uint16(31337), + 17: uint16(32277), + 18: uint16(34314), + 19: uint16(20800), + 20: uint16(22725), + 21: uint16(25793), + 22: uint16(29934), + 23: uint16(29973), + 24: uint16(30320), + 25: uint16(32705), + 26: uint16(37013), + 27: uint16(38605), + 28: uint16(39252), + 29: uint16(28198), + 30: uint16(29926), + 31: uint16(31401), + 32: uint16(31402), + 33: uint16(33253), + 34: uint16(34521), + 35: uint16(34680), + 36: uint16(35355), + 37: uint16(23113), + 38: uint16(23436), + 39: uint16(23451), + 40: uint16(26785), + 41: uint16(26880), + 42: uint16(28003), + 43: uint16(29609), + 44: uint16(29715), + 45: uint16(29740), + 46: uint16(30871), + 47: uint16(32233), + 48: uint16(32747), + 49: uint16(33048), + 50: uint16(33109), + 51: uint16(33694), + 52: uint16(35916), + 53: uint16(38446), + 54: uint16(38929), + 55: uint16(26352), + 56: uint16(24448), + 57: uint16(26106), + 58: uint16(26505), + 59: uint16(27754), + 60: uint16(29579), + 61: uint16(20525), + 62: uint16(23043), + 63: uint16(27498), + 64: uint16(30702), + 65: uint16(22806), + 66: uint16(23916), + 67: uint16(24013), + 68: uint16(29477), + 69: uint16(30031), + 70: uint16(63930), + 71: uint16(63931), + 72: uint16(20709), + 73: uint16(20985), + 74: uint16(22575), + 75: uint16(22829), + 76: uint16(22934), + 77: uint16(23002), + 78: uint16(23525), + 79: uint16(63932), + 80: uint16(63933), + 81: uint16(23970), + 82: uint16(25303), + 83: uint16(25622), + 84: uint16(25747), + 85: uint16(25854), + 86: uint16(63934), + 87: uint16(26332), + 88: uint16(63935), + 89: uint16(27208), + 90: uint16(63936), + 91: uint16(29183), + 92: uint16(29796), + 93: uint16(63937), + }, + 72: { + 0: uint16(31368), + 1: uint16(31407), + 2: uint16(32327), + 3: uint16(32350), + 4: uint16(32768), + 5: uint16(33136), + 6: uint16(63938), + 7: uint16(34799), + 8: uint16(35201), + 9: uint16(35616), + 10: uint16(36953), + 11: uint16(63939), + 12: uint16(36992), + 13: uint16(39250), + 14: uint16(24958), + 15: uint16(27442), + 16: uint16(28020), + 17: uint16(32287), + 18: uint16(35109), + 19: uint16(36785), + 20: uint16(20433), + 21: uint16(20653), + 22: uint16(20887), + 23: uint16(21191), + 24: uint16(22471), + 25: uint16(22665), + 26: uint16(23481), + 27: uint16(24248), + 28: uint16(24898), + 29: uint16(27029), + 30: uint16(28044), + 31: uint16(28263), + 32: uint16(28342), + 33: uint16(29076), + 34: uint16(29794), + 35: uint16(29992), + 36: uint16(29996), + 37: uint16(32883), + 38: uint16(33592), + 39: uint16(33993), + 40: uint16(36362), + 41: uint16(37780), + 42: uint16(37854), + 43: uint16(63940), + 44: uint16(20110), + 45: uint16(20305), + 46: uint16(20598), + 47: uint16(20778), + 48: uint16(21448), + 49: uint16(21451), + 50: uint16(21491), + 51: uint16(23431), + 52: uint16(23507), + 53: uint16(23588), + 54: uint16(24858), + 55: uint16(24962), + 56: uint16(26100), + 57: uint16(29275), + 58: uint16(29591), + 59: uint16(29760), + 60: uint16(30402), + 61: uint16(31056), + 62: uint16(31121), + 63: uint16(31161), + 64: uint16(32006), + 65: uint16(32701), + 66: uint16(33419), + 67: uint16(34261), + 68: uint16(34398), + 69: uint16(36802), + 70: uint16(36935), + 71: uint16(37109), + 72: uint16(37354), + 73: uint16(38533), + 74: uint16(38632), + 75: uint16(38633), + 76: uint16(21206), + 77: uint16(24423), + 78: uint16(26093), + 79: uint16(26161), + 80: uint16(26671), + 81: uint16(29020), + 82: uint16(31286), + 83: uint16(37057), + 84: uint16(38922), + 85: uint16(20113), + 86: uint16(63941), + 87: uint16(27218), + 88: uint16(27550), + 89: uint16(28560), + 90: uint16(29065), + 91: uint16(32792), + 92: uint16(33464), + 93: uint16(34131), + }, + 73: { + 0: uint16(36939), + 1: uint16(38549), + 2: uint16(38642), + 3: uint16(38907), + 4: uint16(34074), + 5: uint16(39729), + 6: uint16(20112), + 7: uint16(29066), + 8: uint16(38596), + 9: uint16(20803), + 10: uint16(21407), + 11: uint16(21729), + 12: uint16(22291), + 13: uint16(22290), + 14: uint16(22435), + 15: uint16(23195), + 16: uint16(23236), + 17: uint16(23491), + 18: uint16(24616), + 19: uint16(24895), + 20: uint16(25588), + 21: uint16(27781), + 22: uint16(27961), + 23: uint16(28274), + 24: uint16(28304), + 25: uint16(29232), + 26: uint16(29503), + 27: uint16(29783), + 28: uint16(33489), + 29: uint16(34945), + 30: uint16(36677), + 31: uint16(36960), + 32: uint16(63942), + 33: uint16(38498), + 34: uint16(39000), + 35: uint16(40219), + 36: uint16(26376), + 37: uint16(36234), + 38: uint16(37470), + 39: uint16(20301), + 40: uint16(20553), + 41: uint16(20702), + 42: uint16(21361), + 43: uint16(22285), + 44: uint16(22996), + 45: uint16(23041), + 46: uint16(23561), + 47: uint16(24944), + 48: uint16(26256), + 49: uint16(28205), + 50: uint16(29234), + 51: uint16(29771), + 52: uint16(32239), + 53: uint16(32963), + 54: uint16(33806), + 55: uint16(33894), + 56: uint16(34111), + 57: uint16(34655), + 58: uint16(34907), + 59: uint16(35096), + 60: uint16(35586), + 61: uint16(36949), + 62: uint16(38859), + 63: uint16(39759), + 64: uint16(20083), + 65: uint16(20369), + 66: uint16(20754), + 67: uint16(20842), + 68: uint16(63943), + 69: uint16(21807), + 70: uint16(21929), + 71: uint16(23418), + 72: uint16(23461), + 73: uint16(24188), + 74: uint16(24189), + 75: uint16(24254), + 76: uint16(24736), + 77: uint16(24799), + 78: uint16(24840), + 79: uint16(24841), + 80: uint16(25540), + 81: uint16(25912), + 82: uint16(26377), + 83: uint16(63944), + 84: uint16(26580), + 85: uint16(26586), + 86: uint16(63945), + 87: uint16(26977), + 88: uint16(26978), + 89: uint16(27833), + 90: uint16(27943), + 91: uint16(63946), + 92: uint16(28216), + 93: uint16(63947), + }, + 74: { + 0: uint16(28641), + 1: uint16(29494), + 2: uint16(29495), + 3: uint16(63948), + 4: uint16(29788), + 5: uint16(30001), + 6: uint16(63949), + 7: uint16(30290), + 8: uint16(63950), + 9: uint16(63951), + 10: uint16(32173), + 11: uint16(33278), + 12: uint16(33848), + 13: uint16(35029), + 14: uint16(35480), + 15: uint16(35547), + 16: uint16(35565), + 17: uint16(36400), + 18: uint16(36418), + 19: uint16(36938), + 20: uint16(36926), + 21: uint16(36986), + 22: uint16(37193), + 23: uint16(37321), + 24: uint16(37742), + 25: uint16(63952), + 26: uint16(63953), + 27: uint16(22537), + 28: uint16(63954), + 29: uint16(27603), + 30: uint16(32905), + 31: uint16(32946), + 32: uint16(63955), + 33: uint16(63956), + 34: uint16(20801), + 35: uint16(22891), + 36: uint16(23609), + 37: uint16(63957), + 38: uint16(63958), + 39: uint16(28516), + 40: uint16(29607), + 41: uint16(32996), + 42: uint16(36103), + 43: uint16(63959), + 44: uint16(37399), + 45: uint16(38287), + 46: uint16(63960), + 47: uint16(63961), + 48: uint16(63962), + 49: uint16(63963), + 50: uint16(32895), + 51: uint16(25102), + 52: uint16(28700), + 53: uint16(32104), + 54: uint16(34701), + 55: uint16(63964), + 56: uint16(22432), + 57: uint16(24681), + 58: uint16(24903), + 59: uint16(27575), + 60: uint16(35518), + 61: uint16(37504), + 62: uint16(38577), + 63: uint16(20057), + 64: uint16(21535), + 65: uint16(28139), + 66: uint16(34093), + 67: uint16(38512), + 68: uint16(38899), + 69: uint16(39150), + 70: uint16(25558), + 71: uint16(27875), + 72: uint16(37009), + 73: uint16(20957), + 74: uint16(25033), + 75: uint16(33210), + 76: uint16(40441), + 77: uint16(20381), + 78: uint16(20506), + 79: uint16(20736), + 80: uint16(23452), + 81: uint16(24847), + 82: uint16(25087), + 83: uint16(25836), + 84: uint16(26885), + 85: uint16(27589), + 86: uint16(30097), + 87: uint16(30691), + 88: uint16(32681), + 89: uint16(33380), + 90: uint16(34191), + 91: uint16(34811), + 92: uint16(34915), + 93: uint16(35516), + }, + 75: { + 0: uint16(35696), + 1: uint16(37291), + 2: uint16(20108), + 3: uint16(20197), + 4: uint16(20234), + 5: uint16(63965), + 6: uint16(63966), + 7: uint16(22839), + 8: uint16(23016), + 9: uint16(63967), + 10: uint16(24050), + 11: uint16(24347), + 12: uint16(24411), + 13: uint16(24609), + 14: uint16(63968), + 15: uint16(63969), + 16: uint16(63970), + 17: uint16(63971), + 18: uint16(29246), + 19: uint16(29669), + 20: uint16(63972), + 21: uint16(30064), + 22: uint16(30157), + 23: uint16(63973), + 24: uint16(31227), + 25: uint16(63974), + 26: uint16(32780), + 27: uint16(32819), + 28: uint16(32900), + 29: uint16(33505), + 30: uint16(33617), + 31: uint16(63975), + 32: uint16(63976), + 33: uint16(36029), + 34: uint16(36019), + 35: uint16(36999), + 36: uint16(63977), + 37: uint16(63978), + 38: uint16(39156), + 39: uint16(39180), + 40: uint16(63979), + 41: uint16(63980), + 42: uint16(28727), + 43: uint16(30410), + 44: uint16(32714), + 45: uint16(32716), + 46: uint16(32764), + 47: uint16(35610), + 48: uint16(20154), + 49: uint16(20161), + 50: uint16(20995), + 51: uint16(21360), + 52: uint16(63981), + 53: uint16(21693), + 54: uint16(22240), + 55: uint16(23035), + 56: uint16(23493), + 57: uint16(24341), + 58: uint16(24525), + 59: uint16(28270), + 60: uint16(63982), + 61: uint16(63983), + 62: uint16(32106), + 63: uint16(33589), + 64: uint16(63984), + 65: uint16(34451), + 66: uint16(35469), + 67: uint16(63985), + 68: uint16(38765), + 69: uint16(38775), + 70: uint16(63986), + 71: uint16(63987), + 72: uint16(19968), + 73: uint16(20314), + 74: uint16(20350), + 75: uint16(22777), + 76: uint16(26085), + 77: uint16(28322), + 78: uint16(36920), + 79: uint16(37808), + 80: uint16(39353), + 81: uint16(20219), + 82: uint16(22764), + 83: uint16(22922), + 84: uint16(23001), + 85: uint16(24641), + 86: uint16(63988), + 87: uint16(63989), + 88: uint16(31252), + 89: uint16(63990), + 90: uint16(33615), + 91: uint16(36035), + 92: uint16(20837), + 93: uint16(21316), + }, + 76: { + 0: uint16(63991), + 1: uint16(63992), + 2: uint16(63993), + 3: uint16(20173), + 4: uint16(21097), + 5: uint16(23381), + 6: uint16(33471), + 7: uint16(20180), + 8: uint16(21050), + 9: uint16(21672), + 10: uint16(22985), + 11: uint16(23039), + 12: uint16(23376), + 13: uint16(23383), + 14: uint16(23388), + 15: uint16(24675), + 16: uint16(24904), + 17: uint16(28363), + 18: uint16(28825), + 19: uint16(29038), + 20: uint16(29574), + 21: uint16(29943), + 22: uint16(30133), + 23: uint16(30913), + 24: uint16(32043), + 25: uint16(32773), + 26: uint16(33258), + 27: uint16(33576), + 28: uint16(34071), + 29: uint16(34249), + 30: uint16(35566), + 31: uint16(36039), + 32: uint16(38604), + 33: uint16(20316), + 34: uint16(21242), + 35: uint16(22204), + 36: uint16(26027), + 37: uint16(26152), + 38: uint16(28796), + 39: uint16(28856), + 40: uint16(29237), + 41: uint16(32189), + 42: uint16(33421), + 43: uint16(37196), + 44: uint16(38592), + 45: uint16(40306), + 46: uint16(23409), + 47: uint16(26855), + 48: uint16(27544), + 49: uint16(28538), + 50: uint16(30430), + 51: uint16(23697), + 52: uint16(26283), + 53: uint16(28507), + 54: uint16(31668), + 55: uint16(31786), + 56: uint16(34870), + 57: uint16(38620), + 58: uint16(19976), + 59: uint16(20183), + 60: uint16(21280), + 61: uint16(22580), + 62: uint16(22715), + 63: uint16(22767), + 64: uint16(22892), + 65: uint16(23559), + 66: uint16(24115), + 67: uint16(24196), + 68: uint16(24373), + 69: uint16(25484), + 70: uint16(26290), + 71: uint16(26454), + 72: uint16(27167), + 73: uint16(27299), + 74: uint16(27404), + 75: uint16(28479), + 76: uint16(29254), + 77: uint16(63994), + 78: uint16(29520), + 79: uint16(29835), + 80: uint16(31456), + 81: uint16(31911), + 82: uint16(33144), + 83: uint16(33247), + 84: uint16(33255), + 85: uint16(33674), + 86: uint16(33900), + 87: uint16(34083), + 88: uint16(34196), + 89: uint16(34255), + 90: uint16(35037), + 91: uint16(36115), + 92: uint16(37292), + 93: uint16(38263), + }, + 77: { + 0: uint16(38556), + 1: uint16(20877), + 2: uint16(21705), + 3: uint16(22312), + 4: uint16(23472), + 5: uint16(25165), + 6: uint16(26448), + 7: uint16(26685), + 8: uint16(26771), + 9: uint16(28221), + 10: uint16(28371), + 11: uint16(28797), + 12: uint16(32289), + 13: uint16(35009), + 14: uint16(36001), + 15: uint16(36617), + 16: uint16(40779), + 17: uint16(40782), + 18: uint16(29229), + 19: uint16(31631), + 20: uint16(35533), + 21: uint16(37658), + 22: uint16(20295), + 23: uint16(20302), + 24: uint16(20786), + 25: uint16(21632), + 26: uint16(22992), + 27: uint16(24213), + 28: uint16(25269), + 29: uint16(26485), + 30: uint16(26990), + 31: uint16(27159), + 32: uint16(27822), + 33: uint16(28186), + 34: uint16(29401), + 35: uint16(29482), + 36: uint16(30141), + 37: uint16(31672), + 38: uint16(32053), + 39: uint16(33511), + 40: uint16(33785), + 41: uint16(33879), + 42: uint16(34295), + 43: uint16(35419), + 44: uint16(36015), + 45: uint16(36487), + 46: uint16(36889), + 47: uint16(37048), + 48: uint16(38606), + 49: uint16(40799), + 50: uint16(21219), + 51: uint16(21514), + 52: uint16(23265), + 53: uint16(23490), + 54: uint16(25688), + 55: uint16(25973), + 56: uint16(28404), + 57: uint16(29380), + 58: uint16(63995), + 59: uint16(30340), + 60: uint16(31309), + 61: uint16(31515), + 62: uint16(31821), + 63: uint16(32318), + 64: uint16(32735), + 65: uint16(33659), + 66: uint16(35627), + 67: uint16(36042), + 68: uint16(36196), + 69: uint16(36321), + 70: uint16(36447), + 71: uint16(36842), + 72: uint16(36857), + 73: uint16(36969), + 74: uint16(37841), + 75: uint16(20291), + 76: uint16(20346), + 77: uint16(20659), + 78: uint16(20840), + 79: uint16(20856), + 80: uint16(21069), + 81: uint16(21098), + 82: uint16(22625), + 83: uint16(22652), + 84: uint16(22880), + 85: uint16(23560), + 86: uint16(23637), + 87: uint16(24283), + 88: uint16(24731), + 89: uint16(25136), + 90: uint16(26643), + 91: uint16(27583), + 92: uint16(27656), + 93: uint16(28593), + }, + 78: { + 0: uint16(29006), + 1: uint16(29728), + 2: uint16(30000), + 3: uint16(30008), + 4: uint16(30033), + 5: uint16(30322), + 6: uint16(31564), + 7: uint16(31627), + 8: uint16(31661), + 9: uint16(31686), + 10: uint16(32399), + 11: uint16(35438), + 12: uint16(36670), + 13: uint16(36681), + 14: uint16(37439), + 15: uint16(37523), + 16: uint16(37666), + 17: uint16(37931), + 18: uint16(38651), + 19: uint16(39002), + 20: uint16(39019), + 21: uint16(39198), + 22: uint16(20999), + 23: uint16(25130), + 24: uint16(25240), + 25: uint16(27993), + 26: uint16(30308), + 27: uint16(31434), + 28: uint16(31680), + 29: uint16(32118), + 30: uint16(21344), + 31: uint16(23742), + 32: uint16(24215), + 33: uint16(28472), + 34: uint16(28857), + 35: uint16(31896), + 36: uint16(38673), + 37: uint16(39822), + 38: uint16(40670), + 39: uint16(25509), + 40: uint16(25722), + 41: uint16(34678), + 42: uint16(19969), + 43: uint16(20117), + 44: uint16(20141), + 45: uint16(20572), + 46: uint16(20597), + 47: uint16(21576), + 48: uint16(22979), + 49: uint16(23450), + 50: uint16(24128), + 51: uint16(24237), + 52: uint16(24311), + 53: uint16(24449), + 54: uint16(24773), + 55: uint16(25402), + 56: uint16(25919), + 57: uint16(25972), + 58: uint16(26060), + 59: uint16(26230), + 60: uint16(26232), + 61: uint16(26622), + 62: uint16(26984), + 63: uint16(27273), + 64: uint16(27491), + 65: uint16(27712), + 66: uint16(28096), + 67: uint16(28136), + 68: uint16(28191), + 69: uint16(28254), + 70: uint16(28702), + 71: uint16(28833), + 72: uint16(29582), + 73: uint16(29693), + 74: uint16(30010), + 75: uint16(30555), + 76: uint16(30855), + 77: uint16(31118), + 78: uint16(31243), + 79: uint16(31357), + 80: uint16(31934), + 81: uint16(32142), + 82: uint16(33351), + 83: uint16(35330), + 84: uint16(35562), + 85: uint16(35998), + 86: uint16(37165), + 87: uint16(37194), + 88: uint16(37336), + 89: uint16(37478), + 90: uint16(37580), + 91: uint16(37664), + 92: uint16(38662), + 93: uint16(38742), + }, + 79: { + 0: uint16(38748), + 1: uint16(38914), + 2: uint16(40718), + 3: uint16(21046), + 4: uint16(21137), + 5: uint16(21884), + 6: uint16(22564), + 7: uint16(24093), + 8: uint16(24351), + 9: uint16(24716), + 10: uint16(25552), + 11: uint16(26799), + 12: uint16(28639), + 13: uint16(31085), + 14: uint16(31532), + 15: uint16(33229), + 16: uint16(34234), + 17: uint16(35069), + 18: uint16(35576), + 19: uint16(36420), + 20: uint16(37261), + 21: uint16(38500), + 22: uint16(38555), + 23: uint16(38717), + 24: uint16(38988), + 25: uint16(40778), + 26: uint16(20430), + 27: uint16(20806), + 28: uint16(20939), + 29: uint16(21161), + 30: uint16(22066), + 31: uint16(24340), + 32: uint16(24427), + 33: uint16(25514), + 34: uint16(25805), + 35: uint16(26089), + 36: uint16(26177), + 37: uint16(26362), + 38: uint16(26361), + 39: uint16(26397), + 40: uint16(26781), + 41: uint16(26839), + 42: uint16(27133), + 43: uint16(28437), + 44: uint16(28526), + 45: uint16(29031), + 46: uint16(29157), + 47: uint16(29226), + 48: uint16(29866), + 49: uint16(30522), + 50: uint16(31062), + 51: uint16(31066), + 52: uint16(31199), + 53: uint16(31264), + 54: uint16(31381), + 55: uint16(31895), + 56: uint16(31967), + 57: uint16(32068), + 58: uint16(32368), + 59: uint16(32903), + 60: uint16(34299), + 61: uint16(34468), + 62: uint16(35412), + 63: uint16(35519), + 64: uint16(36249), + 65: uint16(36481), + 66: uint16(36896), + 67: uint16(36973), + 68: uint16(37347), + 69: uint16(38459), + 70: uint16(38613), + 71: uint16(40165), + 72: uint16(26063), + 73: uint16(31751), + 74: uint16(36275), + 75: uint16(37827), + 76: uint16(23384), + 77: uint16(23562), + 78: uint16(21330), + 79: uint16(25305), + 80: uint16(29469), + 81: uint16(20519), + 82: uint16(23447), + 83: uint16(24478), + 84: uint16(24752), + 85: uint16(24939), + 86: uint16(26837), + 87: uint16(28121), + 88: uint16(29742), + 89: uint16(31278), + 90: uint16(32066), + 91: uint16(32156), + 92: uint16(32305), + 93: uint16(33131), + }, + 80: { + 0: uint16(36394), + 1: uint16(36405), + 2: uint16(37758), + 3: uint16(37912), + 4: uint16(20304), + 5: uint16(22352), + 6: uint16(24038), + 7: uint16(24231), + 8: uint16(25387), + 9: uint16(32618), + 10: uint16(20027), + 11: uint16(20303), + 12: uint16(20367), + 13: uint16(20570), + 14: uint16(23005), + 15: uint16(32964), + 16: uint16(21610), + 17: uint16(21608), + 18: uint16(22014), + 19: uint16(22863), + 20: uint16(23449), + 21: uint16(24030), + 22: uint16(24282), + 23: uint16(26205), + 24: uint16(26417), + 25: uint16(26609), + 26: uint16(26666), + 27: uint16(27880), + 28: uint16(27954), + 29: uint16(28234), + 30: uint16(28557), + 31: uint16(28855), + 32: uint16(29664), + 33: uint16(30087), + 34: uint16(31820), + 35: uint16(32002), + 36: uint16(32044), + 37: uint16(32162), + 38: uint16(33311), + 39: uint16(34523), + 40: uint16(35387), + 41: uint16(35461), + 42: uint16(36208), + 43: uint16(36490), + 44: uint16(36659), + 45: uint16(36913), + 46: uint16(37198), + 47: uint16(37202), + 48: uint16(37956), + 49: uint16(39376), + 50: uint16(31481), + 51: uint16(31909), + 52: uint16(20426), + 53: uint16(20737), + 54: uint16(20934), + 55: uint16(22472), + 56: uint16(23535), + 57: uint16(23803), + 58: uint16(26201), + 59: uint16(27197), + 60: uint16(27994), + 61: uint16(28310), + 62: uint16(28652), + 63: uint16(28940), + 64: uint16(30063), + 65: uint16(31459), + 66: uint16(34850), + 67: uint16(36897), + 68: uint16(36981), + 69: uint16(38603), + 70: uint16(39423), + 71: uint16(33537), + 72: uint16(20013), + 73: uint16(20210), + 74: uint16(34886), + 75: uint16(37325), + 76: uint16(21373), + 77: uint16(27355), + 78: uint16(26987), + 79: uint16(27713), + 80: uint16(33914), + 81: uint16(22686), + 82: uint16(24974), + 83: uint16(26366), + 84: uint16(25327), + 85: uint16(28893), + 86: uint16(29969), + 87: uint16(30151), + 88: uint16(32338), + 89: uint16(33976), + 90: uint16(35657), + 91: uint16(36104), + 92: uint16(20043), + 93: uint16(21482), + }, + 81: { + 0: uint16(21675), + 1: uint16(22320), + 2: uint16(22336), + 3: uint16(24535), + 4: uint16(25345), + 5: uint16(25351), + 6: uint16(25711), + 7: uint16(25903), + 8: uint16(26088), + 9: uint16(26234), + 10: uint16(26525), + 11: uint16(26547), + 12: uint16(27490), + 13: uint16(27744), + 14: uint16(27802), + 15: uint16(28460), + 16: uint16(30693), + 17: uint16(30757), + 18: uint16(31049), + 19: uint16(31063), + 20: uint16(32025), + 21: uint16(32930), + 22: uint16(33026), + 23: uint16(33267), + 24: uint16(33437), + 25: uint16(33463), + 26: uint16(34584), + 27: uint16(35468), + 28: uint16(63996), + 29: uint16(36100), + 30: uint16(36286), + 31: uint16(36978), + 32: uint16(30452), + 33: uint16(31257), + 34: uint16(31287), + 35: uint16(32340), + 36: uint16(32887), + 37: uint16(21767), + 38: uint16(21972), + 39: uint16(22645), + 40: uint16(25391), + 41: uint16(25634), + 42: uint16(26185), + 43: uint16(26187), + 44: uint16(26733), + 45: uint16(27035), + 46: uint16(27524), + 47: uint16(27941), + 48: uint16(28337), + 49: uint16(29645), + 50: uint16(29800), + 51: uint16(29857), + 52: uint16(30043), + 53: uint16(30137), + 54: uint16(30433), + 55: uint16(30494), + 56: uint16(30603), + 57: uint16(31206), + 58: uint16(32265), + 59: uint16(32285), + 60: uint16(33275), + 61: uint16(34095), + 62: uint16(34967), + 63: uint16(35386), + 64: uint16(36049), + 65: uint16(36587), + 66: uint16(36784), + 67: uint16(36914), + 68: uint16(37805), + 69: uint16(38499), + 70: uint16(38515), + 71: uint16(38663), + 72: uint16(20356), + 73: uint16(21489), + 74: uint16(23018), + 75: uint16(23241), + 76: uint16(24089), + 77: uint16(26702), + 78: uint16(29894), + 79: uint16(30142), + 80: uint16(31209), + 81: uint16(31378), + 82: uint16(33187), + 83: uint16(34541), + 84: uint16(36074), + 85: uint16(36300), + 86: uint16(36845), + 87: uint16(26015), + 88: uint16(26389), + 89: uint16(63997), + 90: uint16(22519), + 91: uint16(28503), + 92: uint16(32221), + 93: uint16(36655), + }, + 82: { + 0: uint16(37878), + 1: uint16(38598), + 2: uint16(24501), + 3: uint16(25074), + 4: uint16(28548), + 5: uint16(19988), + 6: uint16(20376), + 7: uint16(20511), + 8: uint16(21449), + 9: uint16(21983), + 10: uint16(23919), + 11: uint16(24046), + 12: uint16(27425), + 13: uint16(27492), + 14: uint16(30923), + 15: uint16(31642), + 16: uint16(63998), + 17: uint16(36425), + 18: uint16(36554), + 19: uint16(36974), + 20: uint16(25417), + 21: uint16(25662), + 22: uint16(30528), + 23: uint16(31364), + 24: uint16(37679), + 25: uint16(38015), + 26: uint16(40810), + 27: uint16(25776), + 28: uint16(28591), + 29: uint16(29158), + 30: uint16(29864), + 31: uint16(29914), + 32: uint16(31428), + 33: uint16(31762), + 34: uint16(32386), + 35: uint16(31922), + 36: uint16(32408), + 37: uint16(35738), + 38: uint16(36106), + 39: uint16(38013), + 40: uint16(39184), + 41: uint16(39244), + 42: uint16(21049), + 43: uint16(23519), + 44: uint16(25830), + 45: uint16(26413), + 46: uint16(32046), + 47: uint16(20717), + 48: uint16(21443), + 49: uint16(22649), + 50: uint16(24920), + 51: uint16(24921), + 52: uint16(25082), + 53: uint16(26028), + 54: uint16(31449), + 55: uint16(35730), + 56: uint16(35734), + 57: uint16(20489), + 58: uint16(20513), + 59: uint16(21109), + 60: uint16(21809), + 61: uint16(23100), + 62: uint16(24288), + 63: uint16(24432), + 64: uint16(24884), + 65: uint16(25950), + 66: uint16(26124), + 67: uint16(26166), + 68: uint16(26274), + 69: uint16(27085), + 70: uint16(28356), + 71: uint16(28466), + 72: uint16(29462), + 73: uint16(30241), + 74: uint16(31379), + 75: uint16(33081), + 76: uint16(33369), + 77: uint16(33750), + 78: uint16(33980), + 79: uint16(20661), + 80: uint16(22512), + 81: uint16(23488), + 82: uint16(23528), + 83: uint16(24425), + 84: uint16(25505), + 85: uint16(30758), + 86: uint16(32181), + 87: uint16(33756), + 88: uint16(34081), + 89: uint16(37319), + 90: uint16(37365), + 91: uint16(20874), + 92: uint16(26613), + 93: uint16(31574), + }, + 83: { + 0: uint16(36012), + 1: uint16(20932), + 2: uint16(22971), + 3: uint16(24765), + 4: uint16(34389), + 5: uint16(20508), + 6: uint16(63999), + 7: uint16(21076), + 8: uint16(23610), + 9: uint16(24957), + 10: uint16(25114), + 11: uint16(25299), + 12: uint16(25842), + 13: uint16(26021), + 14: uint16(28364), + 15: uint16(30240), + 16: uint16(33034), + 17: uint16(36448), + 18: uint16(38495), + 19: uint16(38587), + 20: uint16(20191), + 21: uint16(21315), + 22: uint16(21912), + 23: uint16(22825), + 24: uint16(24029), + 25: uint16(25797), + 26: uint16(27849), + 27: uint16(28154), + 28: uint16(29588), + 29: uint16(31359), + 30: uint16(33307), + 31: uint16(34214), + 32: uint16(36068), + 33: uint16(36368), + 34: uint16(36983), + 35: uint16(37351), + 36: uint16(38369), + 37: uint16(38433), + 38: uint16(38854), + 39: uint16(20984), + 40: uint16(21746), + 41: uint16(21894), + 42: uint16(24505), + 43: uint16(25764), + 44: uint16(28552), + 45: uint16(32180), + 46: uint16(36639), + 47: uint16(36685), + 48: uint16(37941), + 49: uint16(20681), + 50: uint16(23574), + 51: uint16(27838), + 52: uint16(28155), + 53: uint16(29979), + 54: uint16(30651), + 55: uint16(31805), + 56: uint16(31844), + 57: uint16(35449), + 58: uint16(35522), + 59: uint16(22558), + 60: uint16(22974), + 61: uint16(24086), + 62: uint16(25463), + 63: uint16(29266), + 64: uint16(30090), + 65: uint16(30571), + 66: uint16(35548), + 67: uint16(36028), + 68: uint16(36626), + 69: uint16(24307), + 70: uint16(26228), + 71: uint16(28152), + 72: uint16(32893), + 73: uint16(33729), + 74: uint16(35531), + 75: uint16(38737), + 76: uint16(39894), + 77: uint16(64000), + 78: uint16(21059), + 79: uint16(26367), + 80: uint16(28053), + 81: uint16(28399), + 82: uint16(32224), + 83: uint16(35558), + 84: uint16(36910), + 85: uint16(36958), + 86: uint16(39636), + 87: uint16(21021), + 88: uint16(21119), + 89: uint16(21736), + 90: uint16(24980), + 91: uint16(25220), + 92: uint16(25307), + 93: uint16(26786), + }, + 84: { + 0: uint16(26898), + 1: uint16(26970), + 2: uint16(27189), + 3: uint16(28818), + 4: uint16(28966), + 5: uint16(30813), + 6: uint16(30977), + 7: uint16(30990), + 8: uint16(31186), + 9: uint16(31245), + 10: uint16(32918), + 11: uint16(33400), + 12: uint16(33493), + 13: uint16(33609), + 14: uint16(34121), + 15: uint16(35970), + 16: uint16(36229), + 17: uint16(37218), + 18: uint16(37259), + 19: uint16(37294), + 20: uint16(20419), + 21: uint16(22225), + 22: uint16(29165), + 23: uint16(30679), + 24: uint16(34560), + 25: uint16(35320), + 26: uint16(23544), + 27: uint16(24534), + 28: uint16(26449), + 29: uint16(37032), + 30: uint16(21474), + 31: uint16(22618), + 32: uint16(23541), + 33: uint16(24740), + 34: uint16(24961), + 35: uint16(25696), + 36: uint16(32317), + 37: uint16(32880), + 38: uint16(34085), + 39: uint16(37507), + 40: uint16(25774), + 41: uint16(20652), + 42: uint16(23828), + 43: uint16(26368), + 44: uint16(22684), + 45: uint16(25277), + 46: uint16(25512), + 47: uint16(26894), + 48: uint16(27000), + 49: uint16(27166), + 50: uint16(28267), + 51: uint16(30394), + 52: uint16(31179), + 53: uint16(33467), + 54: uint16(33833), + 55: uint16(35535), + 56: uint16(36264), + 57: uint16(36861), + 58: uint16(37138), + 59: uint16(37195), + 60: uint16(37276), + 61: uint16(37648), + 62: uint16(37656), + 63: uint16(37786), + 64: uint16(38619), + 65: uint16(39478), + 66: uint16(39949), + 67: uint16(19985), + 68: uint16(30044), + 69: uint16(31069), + 70: uint16(31482), + 71: uint16(31569), + 72: uint16(31689), + 73: uint16(32302), + 74: uint16(33988), + 75: uint16(36441), + 76: uint16(36468), + 77: uint16(36600), + 78: uint16(36880), + 79: uint16(26149), + 80: uint16(26943), + 81: uint16(29763), + 82: uint16(20986), + 83: uint16(26414), + 84: uint16(40668), + 85: uint16(20805), + 86: uint16(24544), + 87: uint16(27798), + 88: uint16(34802), + 89: uint16(34909), + 90: uint16(34935), + 91: uint16(24756), + 92: uint16(33205), + 93: uint16(33795), + }, + 85: { + 0: uint16(36101), + 1: uint16(21462), + 2: uint16(21561), + 3: uint16(22068), + 4: uint16(23094), + 5: uint16(23601), + 6: uint16(28810), + 7: uint16(32736), + 8: uint16(32858), + 9: uint16(33030), + 10: uint16(33261), + 11: uint16(36259), + 12: uint16(37257), + 13: uint16(39519), + 14: uint16(40434), + 15: uint16(20596), + 16: uint16(20164), + 17: uint16(21408), + 18: uint16(24827), + 19: uint16(28204), + 20: uint16(23652), + 21: uint16(20360), + 22: uint16(20516), + 23: uint16(21988), + 24: uint16(23769), + 25: uint16(24159), + 26: uint16(24677), + 27: uint16(26772), + 28: uint16(27835), + 29: uint16(28100), + 30: uint16(29118), + 31: uint16(30164), + 32: uint16(30196), + 33: uint16(30305), + 34: uint16(31258), + 35: uint16(31305), + 36: uint16(32199), + 37: uint16(32251), + 38: uint16(32622), + 39: uint16(33268), + 40: uint16(34473), + 41: uint16(36636), + 42: uint16(38601), + 43: uint16(39347), + 44: uint16(40786), + 45: uint16(21063), + 46: uint16(21189), + 47: uint16(39149), + 48: uint16(35242), + 49: uint16(19971), + 50: uint16(26578), + 51: uint16(28422), + 52: uint16(20405), + 53: uint16(23522), + 54: uint16(26517), + 55: uint16(27784), + 56: uint16(28024), + 57: uint16(29723), + 58: uint16(30759), + 59: uint16(37341), + 60: uint16(37756), + 61: uint16(34756), + 62: uint16(31204), + 63: uint16(31281), + 64: uint16(24555), + 65: uint16(20182), + 66: uint16(21668), + 67: uint16(21822), + 68: uint16(22702), + 69: uint16(22949), + 70: uint16(24816), + 71: uint16(25171), + 72: uint16(25302), + 73: uint16(26422), + 74: uint16(26965), + 75: uint16(33333), + 76: uint16(38464), + 77: uint16(39345), + 78: uint16(39389), + 79: uint16(20524), + 80: uint16(21331), + 81: uint16(21828), + 82: uint16(22396), + 83: uint16(64001), + 84: uint16(25176), + 85: uint16(64002), + 86: uint16(25826), + 87: uint16(26219), + 88: uint16(26589), + 89: uint16(28609), + 90: uint16(28655), + 91: uint16(29730), + 92: uint16(29752), + 93: uint16(35351), + }, + 86: { + 0: uint16(37944), + 1: uint16(21585), + 2: uint16(22022), + 3: uint16(22374), + 4: uint16(24392), + 5: uint16(24986), + 6: uint16(27470), + 7: uint16(28760), + 8: uint16(28845), + 9: uint16(32187), + 10: uint16(35477), + 11: uint16(22890), + 12: uint16(33067), + 13: uint16(25506), + 14: uint16(30472), + 15: uint16(32829), + 16: uint16(36010), + 17: uint16(22612), + 18: uint16(25645), + 19: uint16(27067), + 20: uint16(23445), + 21: uint16(24081), + 22: uint16(28271), + 23: uint16(64003), + 24: uint16(34153), + 25: uint16(20812), + 26: uint16(21488), + 27: uint16(22826), + 28: uint16(24608), + 29: uint16(24907), + 30: uint16(27526), + 31: uint16(27760), + 32: uint16(27888), + 33: uint16(31518), + 34: uint16(32974), + 35: uint16(33492), + 36: uint16(36294), + 37: uint16(37040), + 38: uint16(39089), + 39: uint16(64004), + 40: uint16(25799), + 41: uint16(28580), + 42: uint16(25745), + 43: uint16(25860), + 44: uint16(20814), + 45: uint16(21520), + 46: uint16(22303), + 47: uint16(35342), + 48: uint16(24927), + 49: uint16(26742), + 50: uint16(64005), + 51: uint16(30171), + 52: uint16(31570), + 53: uint16(32113), + 54: uint16(36890), + 55: uint16(22534), + 56: uint16(27084), + 57: uint16(33151), + 58: uint16(35114), + 59: uint16(36864), + 60: uint16(38969), + 61: uint16(20600), + 62: uint16(22871), + 63: uint16(22956), + 64: uint16(25237), + 65: uint16(36879), + 66: uint16(39722), + 67: uint16(24925), + 68: uint16(29305), + 69: uint16(38358), + 70: uint16(22369), + 71: uint16(23110), + 72: uint16(24052), + 73: uint16(25226), + 74: uint16(25773), + 75: uint16(25850), + 76: uint16(26487), + 77: uint16(27874), + 78: uint16(27966), + 79: uint16(29228), + 80: uint16(29750), + 81: uint16(30772), + 82: uint16(32631), + 83: uint16(33453), + 84: uint16(36315), + 85: uint16(38935), + 86: uint16(21028), + 87: uint16(22338), + 88: uint16(26495), + 89: uint16(29256), + 90: uint16(29923), + 91: uint16(36009), + 92: uint16(36774), + 93: uint16(37393), + }, + 87: { + 0: uint16(38442), + 1: uint16(20843), + 2: uint16(21485), + 3: uint16(25420), + 4: uint16(20329), + 5: uint16(21764), + 6: uint16(24726), + 7: uint16(25943), + 8: uint16(27803), + 9: uint16(28031), + 10: uint16(29260), + 11: uint16(29437), + 12: uint16(31255), + 13: uint16(35207), + 14: uint16(35997), + 15: uint16(24429), + 16: uint16(28558), + 17: uint16(28921), + 18: uint16(33192), + 19: uint16(24846), + 20: uint16(20415), + 21: uint16(20559), + 22: uint16(25153), + 23: uint16(29255), + 24: uint16(31687), + 25: uint16(32232), + 26: uint16(32745), + 27: uint16(36941), + 28: uint16(38829), + 29: uint16(39449), + 30: uint16(36022), + 31: uint16(22378), + 32: uint16(24179), + 33: uint16(26544), + 34: uint16(33805), + 35: uint16(35413), + 36: uint16(21536), + 37: uint16(23318), + 38: uint16(24163), + 39: uint16(24290), + 40: uint16(24330), + 41: uint16(25987), + 42: uint16(32954), + 43: uint16(34109), + 44: uint16(38281), + 45: uint16(38491), + 46: uint16(20296), + 47: uint16(21253), + 48: uint16(21261), + 49: uint16(21263), + 50: uint16(21638), + 51: uint16(21754), + 52: uint16(22275), + 53: uint16(24067), + 54: uint16(24598), + 55: uint16(25243), + 56: uint16(25265), + 57: uint16(25429), + 58: uint16(64006), + 59: uint16(27873), + 60: uint16(28006), + 61: uint16(30129), + 62: uint16(30770), + 63: uint16(32990), + 64: uint16(33071), + 65: uint16(33502), + 66: uint16(33889), + 67: uint16(33970), + 68: uint16(34957), + 69: uint16(35090), + 70: uint16(36875), + 71: uint16(37610), + 72: uint16(39165), + 73: uint16(39825), + 74: uint16(24133), + 75: uint16(26292), + 76: uint16(26333), + 77: uint16(28689), + 78: uint16(29190), + 79: uint16(64007), + 80: uint16(20469), + 81: uint16(21117), + 82: uint16(24426), + 83: uint16(24915), + 84: uint16(26451), + 85: uint16(27161), + 86: uint16(28418), + 87: uint16(29922), + 88: uint16(31080), + 89: uint16(34920), + 90: uint16(35961), + 91: uint16(39111), + 92: uint16(39108), + 93: uint16(39491), + }, + 88: { + 0: uint16(21697), + 1: uint16(31263), + 2: uint16(26963), + 3: uint16(35575), + 4: uint16(35914), + 5: uint16(39080), + 6: uint16(39342), + 7: uint16(24444), + 8: uint16(25259), + 9: uint16(30130), + 10: uint16(30382), + 11: uint16(34987), + 12: uint16(36991), + 13: uint16(38466), + 14: uint16(21305), + 15: uint16(24380), + 16: uint16(24517), + 17: uint16(27852), + 18: uint16(29644), + 19: uint16(30050), + 20: uint16(30091), + 21: uint16(31558), + 22: uint16(33534), + 23: uint16(39325), + 24: uint16(20047), + 25: uint16(36924), + 26: uint16(19979), + 27: uint16(20309), + 28: uint16(21414), + 29: uint16(22799), + 30: uint16(24264), + 31: uint16(26160), + 32: uint16(27827), + 33: uint16(29781), + 34: uint16(33655), + 35: uint16(34662), + 36: uint16(36032), + 37: uint16(36944), + 38: uint16(38686), + 39: uint16(39957), + 40: uint16(22737), + 41: uint16(23416), + 42: uint16(34384), + 43: uint16(35604), + 44: uint16(40372), + 45: uint16(23506), + 46: uint16(24680), + 47: uint16(24717), + 48: uint16(26097), + 49: uint16(27735), + 50: uint16(28450), + 51: uint16(28579), + 52: uint16(28698), + 53: uint16(32597), + 54: uint16(32752), + 55: uint16(38289), + 56: uint16(38290), + 57: uint16(38480), + 58: uint16(38867), + 59: uint16(21106), + 60: uint16(36676), + 61: uint16(20989), + 62: uint16(21547), + 63: uint16(21688), + 64: uint16(21859), + 65: uint16(21898), + 66: uint16(27323), + 67: uint16(28085), + 68: uint16(32216), + 69: uint16(33382), + 70: uint16(37532), + 71: uint16(38519), + 72: uint16(40569), + 73: uint16(21512), + 74: uint16(21704), + 75: uint16(30418), + 76: uint16(34532), + 77: uint16(38308), + 78: uint16(38356), + 79: uint16(38492), + 80: uint16(20130), + 81: uint16(20233), + 82: uint16(23022), + 83: uint16(23270), + 84: uint16(24055), + 85: uint16(24658), + 86: uint16(25239), + 87: uint16(26477), + 88: uint16(26689), + 89: uint16(27782), + 90: uint16(28207), + 91: uint16(32568), + 92: uint16(32923), + 93: uint16(33322), + }, + 89: { + 0: uint16(64008), + 1: uint16(64009), + 2: uint16(38917), + 3: uint16(20133), + 4: uint16(20565), + 5: uint16(21683), + 6: uint16(22419), + 7: uint16(22874), + 8: uint16(23401), + 9: uint16(23475), + 10: uint16(25032), + 11: uint16(26999), + 12: uint16(28023), + 13: uint16(28707), + 14: uint16(34809), + 15: uint16(35299), + 16: uint16(35442), + 17: uint16(35559), + 18: uint16(36994), + 19: uint16(39405), + 20: uint16(39608), + 21: uint16(21182), + 22: uint16(26680), + 23: uint16(20502), + 24: uint16(24184), + 25: uint16(26447), + 26: uint16(33607), + 27: uint16(34892), + 28: uint16(20139), + 29: uint16(21521), + 30: uint16(22190), + 31: uint16(29670), + 32: uint16(37141), + 33: uint16(38911), + 34: uint16(39177), + 35: uint16(39255), + 36: uint16(39321), + 37: uint16(22099), + 38: uint16(22687), + 39: uint16(34395), + 40: uint16(35377), + 41: uint16(25010), + 42: uint16(27382), + 43: uint16(29563), + 44: uint16(36562), + 45: uint16(27463), + 46: uint16(38570), + 47: uint16(39511), + 48: uint16(22869), + 49: uint16(29184), + 50: uint16(36203), + 51: uint16(38761), + 52: uint16(20436), + 53: uint16(23796), + 54: uint16(24358), + 55: uint16(25080), + 56: uint16(26203), + 57: uint16(27883), + 58: uint16(28843), + 59: uint16(29572), + 60: uint16(29625), + 61: uint16(29694), + 62: uint16(30505), + 63: uint16(30541), + 64: uint16(32067), + 65: uint16(32098), + 66: uint16(32291), + 67: uint16(33335), + 68: uint16(34898), + 69: uint16(64010), + 70: uint16(36066), + 71: uint16(37449), + 72: uint16(39023), + 73: uint16(23377), + 74: uint16(31348), + 75: uint16(34880), + 76: uint16(38913), + 77: uint16(23244), + 78: uint16(20448), + 79: uint16(21332), + 80: uint16(22846), + 81: uint16(23805), + 82: uint16(25406), + 83: uint16(28025), + 84: uint16(29433), + 85: uint16(33029), + 86: uint16(33031), + 87: uint16(33698), + 88: uint16(37583), + 89: uint16(38960), + 90: uint16(20136), + 91: uint16(20804), + 92: uint16(21009), + 93: uint16(22411), + }, + 90: { + 0: uint16(24418), + 1: uint16(27842), + 2: uint16(28366), + 3: uint16(28677), + 4: uint16(28752), + 5: uint16(28847), + 6: uint16(29074), + 7: uint16(29673), + 8: uint16(29801), + 9: uint16(33610), + 10: uint16(34722), + 11: uint16(34913), + 12: uint16(36872), + 13: uint16(37026), + 14: uint16(37795), + 15: uint16(39336), + 16: uint16(20846), + 17: uint16(24407), + 18: uint16(24800), + 19: uint16(24935), + 20: uint16(26291), + 21: uint16(34137), + 22: uint16(36426), + 23: uint16(37295), + 24: uint16(38795), + 25: uint16(20046), + 26: uint16(20114), + 27: uint16(21628), + 28: uint16(22741), + 29: uint16(22778), + 30: uint16(22909), + 31: uint16(23733), + 32: uint16(24359), + 33: uint16(25142), + 34: uint16(25160), + 35: uint16(26122), + 36: uint16(26215), + 37: uint16(27627), + 38: uint16(28009), + 39: uint16(28111), + 40: uint16(28246), + 41: uint16(28408), + 42: uint16(28564), + 43: uint16(28640), + 44: uint16(28649), + 45: uint16(28765), + 46: uint16(29392), + 47: uint16(29733), + 48: uint16(29786), + 49: uint16(29920), + 50: uint16(30355), + 51: uint16(31068), + 52: uint16(31946), + 53: uint16(32286), + 54: uint16(32993), + 55: uint16(33446), + 56: uint16(33899), + 57: uint16(33983), + 58: uint16(34382), + 59: uint16(34399), + 60: uint16(34676), + 61: uint16(35703), + 62: uint16(35946), + 63: uint16(37804), + 64: uint16(38912), + 65: uint16(39013), + 66: uint16(24785), + 67: uint16(25110), + 68: uint16(37239), + 69: uint16(23130), + 70: uint16(26127), + 71: uint16(28151), + 72: uint16(28222), + 73: uint16(29759), + 74: uint16(39746), + 75: uint16(24573), + 76: uint16(24794), + 77: uint16(31503), + 78: uint16(21700), + 79: uint16(24344), + 80: uint16(27742), + 81: uint16(27859), + 82: uint16(27946), + 83: uint16(28888), + 84: uint16(32005), + 85: uint16(34425), + 86: uint16(35340), + 87: uint16(40251), + 88: uint16(21270), + 89: uint16(21644), + 90: uint16(23301), + 91: uint16(27194), + 92: uint16(28779), + 93: uint16(30069), + }, + 91: { + 0: uint16(31117), + 1: uint16(31166), + 2: uint16(33457), + 3: uint16(33775), + 4: uint16(35441), + 5: uint16(35649), + 6: uint16(36008), + 7: uint16(38772), + 8: uint16(64011), + 9: uint16(25844), + 10: uint16(25899), + 11: uint16(30906), + 12: uint16(30907), + 13: uint16(31339), + 14: uint16(20024), + 15: uint16(21914), + 16: uint16(22864), + 17: uint16(23462), + 18: uint16(24187), + 19: uint16(24739), + 20: uint16(25563), + 21: uint16(27489), + 22: uint16(26213), + 23: uint16(26707), + 24: uint16(28185), + 25: uint16(29029), + 26: uint16(29872), + 27: uint16(32008), + 28: uint16(36996), + 29: uint16(39529), + 30: uint16(39973), + 31: uint16(27963), + 32: uint16(28369), + 33: uint16(29502), + 34: uint16(35905), + 35: uint16(38346), + 36: uint16(20976), + 37: uint16(24140), + 38: uint16(24488), + 39: uint16(24653), + 40: uint16(24822), + 41: uint16(24880), + 42: uint16(24908), + 43: uint16(26179), + 44: uint16(26180), + 45: uint16(27045), + 46: uint16(27841), + 47: uint16(28255), + 48: uint16(28361), + 49: uint16(28514), + 50: uint16(29004), + 51: uint16(29852), + 52: uint16(30343), + 53: uint16(31681), + 54: uint16(31783), + 55: uint16(33618), + 56: uint16(34647), + 57: uint16(36945), + 58: uint16(38541), + 59: uint16(40643), + 60: uint16(21295), + 61: uint16(22238), + 62: uint16(24315), + 63: uint16(24458), + 64: uint16(24674), + 65: uint16(24724), + 66: uint16(25079), + 67: uint16(26214), + 68: uint16(26371), + 69: uint16(27292), + 70: uint16(28142), + 71: uint16(28590), + 72: uint16(28784), + 73: uint16(29546), + 74: uint16(32362), + 75: uint16(33214), + 76: uint16(33588), + 77: uint16(34516), + 78: uint16(35496), + 79: uint16(36036), + 80: uint16(21123), + 81: uint16(29554), + 82: uint16(23446), + 83: uint16(27243), + 84: uint16(37892), + 85: uint16(21742), + 86: uint16(22150), + 87: uint16(23389), + 88: uint16(25928), + 89: uint16(25989), + 90: uint16(26313), + 91: uint16(26783), + 92: uint16(28045), + 93: uint16(28102), + }, + 92: { + 0: uint16(29243), + 1: uint16(32948), + 2: uint16(37237), + 3: uint16(39501), + 4: uint16(20399), + 5: uint16(20505), + 6: uint16(21402), + 7: uint16(21518), + 8: uint16(21564), + 9: uint16(21897), + 10: uint16(21957), + 11: uint16(24127), + 12: uint16(24460), + 13: uint16(26429), + 14: uint16(29030), + 15: uint16(29661), + 16: uint16(36869), + 17: uint16(21211), + 18: uint16(21235), + 19: uint16(22628), + 20: uint16(22734), + 21: uint16(28932), + 22: uint16(29071), + 23: uint16(29179), + 24: uint16(34224), + 25: uint16(35347), + 26: uint16(26248), + 27: uint16(34216), + 28: uint16(21927), + 29: uint16(26244), + 30: uint16(29002), + 31: uint16(33841), + 32: uint16(21321), + 33: uint16(21913), + 34: uint16(27585), + 35: uint16(24409), + 36: uint16(24509), + 37: uint16(25582), + 38: uint16(26249), + 39: uint16(28999), + 40: uint16(35569), + 41: uint16(36637), + 42: uint16(40638), + 43: uint16(20241), + 44: uint16(25658), + 45: uint16(28875), + 46: uint16(30054), + 47: uint16(34407), + 48: uint16(24676), + 49: uint16(35662), + 50: uint16(40440), + 51: uint16(20807), + 52: uint16(20982), + 53: uint16(21256), + 54: uint16(27958), + 55: uint16(33016), + 56: uint16(40657), + 57: uint16(26133), + 58: uint16(27427), + 59: uint16(28824), + 60: uint16(30165), + 61: uint16(21507), + 62: uint16(23673), + 63: uint16(32007), + 64: uint16(35350), + 65: uint16(27424), + 66: uint16(27453), + 67: uint16(27462), + 68: uint16(21560), + 69: uint16(24688), + 70: uint16(27965), + 71: uint16(32725), + 72: uint16(33288), + 73: uint16(20694), + 74: uint16(20958), + 75: uint16(21916), + 76: uint16(22123), + 77: uint16(22221), + 78: uint16(23020), + 79: uint16(23305), + 80: uint16(24076), + 81: uint16(24985), + 82: uint16(24984), + 83: uint16(25137), + 84: uint16(26206), + 85: uint16(26342), + 86: uint16(29081), + 87: uint16(29113), + 88: uint16(29114), + 89: uint16(29351), + 90: uint16(31143), + 91: uint16(31232), + 92: uint16(32690), + 93: uint16(35440), + }, +} + +var _rev_jis = [6879]uint16{ + 0: uint16(31), + 1: uint16(80), + 2: uint16(81), + 3: uint16(87), + 4: uint16(14), + 5: uint16(299), + 6: uint16(74), + 7: uint16(61), + 8: uint16(12), + 9: uint16(344), + 10: uint16(62), + 11: uint16(63), + 12: uint16(1280), + 13: uint16(1281), + 14: uint16(1282), + 15: uint16(1283), + 16: uint16(1284), + 17: uint16(1285), + 18: uint16(1286), + 19: uint16(1287), + 20: uint16(1288), + 21: uint16(1289), + 22: uint16(1290), + 23: uint16(1291), + 24: uint16(1292), + 25: uint16(1293), + 26: uint16(1294), + 27: uint16(1295), + 28: uint16(1296), + 29: uint16(1297), + 30: uint16(1298), + 31: uint16(1299), + 32: uint16(1300), + 33: uint16(1301), + 34: uint16(1302), + 35: uint16(1303), + 36: uint16(1312), + 37: uint16(1313), + 38: uint16(1314), + 39: uint16(1315), + 40: uint16(1316), + 41: uint16(1317), + 42: uint16(1318), + 43: uint16(1319), + 44: uint16(1320), + 45: uint16(1321), + 46: uint16(1322), + 47: uint16(1323), + 48: uint16(1324), + 49: uint16(1325), + 50: uint16(1326), + 51: uint16(1327), + 52: uint16(1328), + 53: uint16(1329), + 54: uint16(1330), + 55: uint16(1331), + 56: uint16(1332), + 57: uint16(1333), + 58: uint16(1334), + 59: uint16(1335), + 60: uint16(1542), + 61: uint16(1536), + 62: uint16(1537), + 63: uint16(1538), + 64: uint16(1539), + 65: uint16(1540), + 66: uint16(1541), + 67: uint16(1543), + 68: uint16(1544), + 69: uint16(1545), + 70: uint16(1546), + 71: uint16(1547), + 72: uint16(1548), + 73: uint16(1549), + 74: uint16(1550), + 75: uint16(1551), + 76: uint16(1552), + 77: uint16(1553), + 78: uint16(1554), + 79: uint16(1555), + 80: uint16(1556), + 81: uint16(1557), + 82: uint16(1558), + 83: uint16(1559), + 84: uint16(1560), + 85: uint16(1561), + 86: uint16(1562), + 87: uint16(1563), + 88: uint16(1564), + 89: uint16(1565), + 90: uint16(1566), + 91: uint16(1567), + 92: uint16(1568), + 93: uint16(1584), + 94: uint16(1585), + 95: uint16(1586), + 96: uint16(1587), + 97: uint16(1588), + 98: uint16(1589), + 99: uint16(1591), + 100: uint16(1592), + 101: uint16(1593), + 102: uint16(1594), + 103: uint16(1595), + 104: uint16(1596), + 105: uint16(1597), + 106: uint16(1598), + 107: uint16(1599), + 108: uint16(1600), + 109: uint16(1601), + 110: uint16(1602), + 111: uint16(1603), + 112: uint16(1604), + 113: uint16(1605), + 114: uint16(1606), + 115: uint16(1607), + 116: uint16(1608), + 117: uint16(1609), + 118: uint16(1610), + 119: uint16(1611), + 120: uint16(1612), + 121: uint16(1613), + 122: uint16(1614), + 123: uint16(1615), + 124: uint16(1616), + 125: uint16(1590), + 126: uint16(29), + 127: uint16(28), + 128: uint16(33), + 129: uint16(37), + 130: uint16(38), + 131: uint16(39), + 132: uint16(40), + 133: uint16(342), + 134: uint16(343), + 135: uint16(36), + 136: uint16(35), + 137: uint16(338), + 138: uint16(75), + 139: uint16(76), + 140: uint16(263), + 141: uint16(77), + 142: uint16(337), + 143: uint16(266), + 144: uint16(267), + 145: uint16(265), + 146: uint16(268), + 147: uint16(300), + 148: uint16(301), + 149: uint16(302), + 150: uint16(318), + 151: uint16(303), + 152: uint16(319), + 153: uint16(281), + 154: uint16(282), + 155: uint16(60), + 156: uint16(324), + 157: uint16(326), + 158: uint16(70), + 159: uint16(315), + 160: uint16(297), + 161: uint16(298), + 162: uint16(288), + 163: uint16(287), + 164: uint16(328), + 165: uint16(329), + 166: uint16(71), + 167: uint16(327), + 168: uint16(325), + 169: uint16(321), + 170: uint16(65), + 171: uint16(320), + 172: uint16(68), + 173: uint16(69), + 174: uint16(322), + 175: uint16(323), + 176: uint16(285), + 177: uint16(286), + 178: uint16(283), + 179: uint16(284), + 180: uint16(316), + 181: uint16(317), + 182: uint16(1792), + 183: uint16(1803), + 184: uint16(1793), + 185: uint16(1804), + 186: uint16(1794), + 187: uint16(1805), + 188: uint16(1795), + 189: uint16(1806), + 190: uint16(1797), + 191: uint16(1808), + 192: uint16(1796), + 193: uint16(1807), + 194: uint16(1798), + 195: uint16(1819), + 196: uint16(1814), + 197: uint16(1809), + 198: uint16(1800), + 199: uint16(1821), + 200: uint16(1816), + 201: uint16(1811), + 202: uint16(1799), + 203: uint16(1815), + 204: uint16(1820), + 205: uint16(1810), + 206: uint16(1801), + 207: uint16(1817), + 208: uint16(1822), + 209: uint16(1812), + 210: uint16(1802), + 211: uint16(1818), + 212: uint16(1823), + 213: uint16(1813), + 214: uint16(258), + 215: uint16(257), + 216: uint16(260), + 217: uint16(259), + 218: uint16(262), + 219: uint16(261), + 220: uint16(256), + 221: uint16(93), + 222: uint16(90), + 223: uint16(92), + 224: uint16(91), + 225: uint16(349), + 226: uint16(89), + 227: uint16(88), + 228: uint16(73), + 229: uint16(72), + 230: uint16(341), + 231: uint16(340), + 232: uint16(339), + 234: uint16(1), + 235: uint16(2), + 236: uint16(22), + 237: uint16(24), + 238: uint16(25), + 239: uint16(26), + 240: uint16(49), + 241: uint16(50), + 242: uint16(51), + 243: uint16(52), + 244: uint16(53), + 245: uint16(54), + 246: uint16(55), + 247: uint16(56), + 248: uint16(57), + 249: uint16(58), + 250: uint16(264), + 251: uint16(269), + 252: uint16(43), + 253: uint16(44), + 254: uint16(32), + 255: uint16(768), + 256: uint16(769), + 257: uint16(770), + 258: uint16(771), + 259: uint16(772), + 260: uint16(773), + 261: uint16(774), + 262: uint16(775), + 263: uint16(776), + 264: uint16(777), + 265: uint16(778), + 266: uint16(779), + 267: uint16(780), + 268: uint16(781), + 269: uint16(782), + 270: uint16(783), + 271: uint16(784), + 272: uint16(785), + 273: uint16(786), + 274: uint16(787), + 275: uint16(788), + 276: uint16(789), + 277: uint16(790), + 278: uint16(791), + 279: uint16(792), + 280: uint16(793), + 281: uint16(794), + 282: uint16(795), + 283: uint16(796), + 284: uint16(797), + 285: uint16(798), + 286: uint16(799), + 287: uint16(800), + 288: uint16(801), + 289: uint16(802), + 290: uint16(803), + 291: uint16(804), + 292: uint16(805), + 293: uint16(806), + 294: uint16(807), + 295: uint16(808), + 296: uint16(809), + 297: uint16(810), + 298: uint16(811), + 299: uint16(812), + 300: uint16(813), + 301: uint16(814), + 302: uint16(815), + 303: uint16(816), + 304: uint16(817), + 305: uint16(818), + 306: uint16(819), + 307: uint16(820), + 308: uint16(821), + 309: uint16(822), + 310: uint16(823), + 311: uint16(824), + 312: uint16(825), + 313: uint16(826), + 314: uint16(827), + 315: uint16(828), + 316: uint16(829), + 317: uint16(830), + 318: uint16(831), + 319: uint16(832), + 320: uint16(833), + 321: uint16(834), + 322: uint16(835), + 323: uint16(836), + 324: uint16(837), + 325: uint16(838), + 326: uint16(839), + 327: uint16(840), + 328: uint16(841), + 329: uint16(842), + 330: uint16(843), + 331: uint16(844), + 332: uint16(845), + 333: uint16(846), + 334: uint16(847), + 335: uint16(848), + 336: uint16(849), + 337: uint16(850), + 338: uint16(10), + 339: uint16(11), + 340: uint16(20), + 341: uint16(21), + 342: uint16(1024), + 343: uint16(1025), + 344: uint16(1026), + 345: uint16(1027), + 346: uint16(1028), + 347: uint16(1029), + 348: uint16(1030), + 349: uint16(1031), + 350: uint16(1032), + 351: uint16(1033), + 352: uint16(1034), + 353: uint16(1035), + 354: uint16(1036), + 355: uint16(1037), + 356: uint16(1038), + 357: uint16(1039), + 358: uint16(1040), + 359: uint16(1041), + 360: uint16(1042), + 361: uint16(1043), + 362: uint16(1044), + 363: uint16(1045), + 364: uint16(1046), + 365: uint16(1047), + 366: uint16(1048), + 367: uint16(1049), + 368: uint16(1050), + 369: uint16(1051), + 370: uint16(1052), + 371: uint16(1053), + 372: uint16(1054), + 373: uint16(1055), + 374: uint16(1056), + 375: uint16(1057), + 376: uint16(1058), + 377: uint16(1059), + 378: uint16(1060), + 379: uint16(1061), + 380: uint16(1062), + 381: uint16(1063), + 382: uint16(1064), + 383: uint16(1065), + 384: uint16(1066), + 385: uint16(1067), + 386: uint16(1068), + 387: uint16(1069), + 388: uint16(1070), + 389: uint16(1071), + 390: uint16(1072), + 391: uint16(1073), + 392: uint16(1074), + 393: uint16(1075), + 394: uint16(1076), + 395: uint16(1077), + 396: uint16(1078), + 397: uint16(1079), + 398: uint16(1080), + 399: uint16(1081), + 400: uint16(1082), + 401: uint16(1083), + 402: uint16(1084), + 403: uint16(1085), + 404: uint16(1086), + 405: uint16(1087), + 406: uint16(1088), + 407: uint16(1089), + 408: uint16(1090), + 409: uint16(1091), + 410: uint16(1092), + 411: uint16(1093), + 412: uint16(1094), + 413: uint16(1095), + 414: uint16(1096), + 415: uint16(1097), + 416: uint16(1098), + 417: uint16(1099), + 418: uint16(1100), + 419: uint16(1101), + 420: uint16(1102), + 421: uint16(1103), + 422: uint16(1104), + 423: uint16(1105), + 424: uint16(1106), + 425: uint16(1107), + 426: uint16(1108), + 427: uint16(1109), + 428: uint16(5), + 429: uint16(27), + 430: uint16(18), + 431: uint16(19), + 432: uint16(3915), + 433: uint16(8793), + 434: uint16(6934), + 435: uint16(10843), + 436: uint16(7493), + 437: uint16(6671), + 438: uint16(7492), + 439: uint16(4379), + 440: uint16(10291), + 441: uint16(11294), + 442: uint16(12033), + 443: uint16(4110), + 444: uint16(4685), + 445: uint16(12034), + 446: uint16(7939), + 447: uint16(12577), + 448: uint16(5173), + 449: uint16(10521), + 450: uint16(7494), + 451: uint16(11549), + 452: uint16(10529), + 453: uint16(12035), + 454: uint16(8773), + 455: uint16(12036), + 456: uint16(5465), + 457: uint16(12037), + 458: uint16(4924), + 459: uint16(8719), + 460: uint16(6982), + 461: uint16(12038), + 462: uint16(12039), + 463: uint16(12040), + 464: uint16(9748), + 465: uint16(5174), + 466: uint16(9750), + 467: uint16(9538), + 468: uint16(5922), + 469: uint16(10770), + 470: uint16(18472), + 471: uint16(12041), + 472: uint16(7495), + 473: uint16(12042), + 474: uint16(4372), + 475: uint16(5444), + 476: uint16(5967), + 477: uint16(11080), + 478: uint16(13573), + 479: uint16(11343), + 480: uint16(9564), + 481: uint16(4868), + 482: uint16(5140), + 483: uint16(12043), + 484: uint16(12044), + 485: uint16(11546), + 486: uint16(11292), + 487: uint16(8263), + 488: uint16(12046), + 489: uint16(6741), + 490: uint16(9554), + 491: uint16(12049), + 492: uint16(4125), + 493: uint16(5950), + 494: uint16(5949), + 495: uint16(3909), + 496: uint16(11818), + 497: uint16(11817), + 498: uint16(6418), + 499: uint16(3840), + 500: uint16(12050), + 501: uint16(12051), + 502: uint16(12052), + 503: uint16(10771), + 504: uint16(12053), + 505: uint16(5969), + 506: uint16(3910), + 507: uint16(10833), + 508: uint16(5211), + 509: uint16(5212), + 510: uint16(5213), + 511: uint16(9025), + 512: uint16(11547), + 513: uint16(12054), + 514: uint16(12055), + 515: uint16(12056), + 516: uint16(7724), + 517: uint16(7193), + 518: uint16(7725), + 519: uint16(12061), + 520: uint16(12059), + 521: uint16(12060), + 522: uint16(5175), + 523: uint16(6402), + 524: uint16(4431), + 525: uint16(12058), + 526: uint16(12057), + 527: uint16(10504), + 528: uint16(6693), + 529: uint16(6692), + 530: uint16(8477), + 531: uint16(12062), + 532: uint16(10292), + 533: uint16(8006), + 534: uint16(23), + 535: uint16(12063), + 536: uint16(12065), + 537: uint16(8516), + 538: uint16(11584), + 539: uint16(3881), + 540: uint16(12064), + 541: uint16(4381), + 542: uint16(5411), + 543: uint16(8774), + 544: uint16(5710), + 545: uint16(12066), + 546: uint16(9731), + 547: uint16(4938), + 548: uint16(12067), + 549: uint16(3882), + 550: uint16(5951), + 551: uint16(4939), + 552: uint16(10329), + 553: uint16(10001), + 554: uint16(5176), + 555: uint16(4432), + 556: uint16(12102), + 557: uint16(9248), + 558: uint16(9803), + 559: uint16(12069), + 560: uint16(10011), + 561: uint16(11585), + 562: uint16(7692), + 563: uint16(6694), + 564: uint16(6742), + 565: uint16(4383), + 566: uint16(9008), + 567: uint16(8705), + 568: uint16(12073), + 569: uint16(3883), + 570: uint16(9026), + 571: uint16(7194), + 572: uint16(6419), + 573: uint16(11267), + 574: uint16(8493), + 575: uint16(4382), + 576: uint16(12072), + 577: uint16(11293), + 578: uint16(12068), + 579: uint16(12070), + 580: uint16(6477), + 581: uint16(12071), + 582: uint16(13315), + 583: uint16(12079), + 584: uint16(12082), + 585: uint16(12080), + 586: uint16(4385), + 587: uint16(10522), + 588: uint16(12074), + 589: uint16(12078), + 590: uint16(5970), + 591: uint16(6695), + 592: uint16(4869), + 593: uint16(12083), + 594: uint16(12075), + 595: uint16(11586), + 596: uint16(6743), + 597: uint16(12076), + 598: uint16(12081), + 599: uint16(12084), + 600: uint16(12077), + 601: uint16(5376), + 602: uint16(3884), + 603: uint16(5377), + 604: uint16(4384), + 605: uint16(13316), + 606: uint16(10840), + 607: uint16(10317), + 608: uint16(5971), + 609: uint16(7694), + 610: uint16(11542), + 611: uint16(10551), + 612: uint16(5655), + 613: uint16(8452), + 614: uint16(4419), + 615: uint16(7218), + 616: uint16(12088), + 617: uint16(12093), + 618: uint16(12091), + 619: uint16(12086), + 620: uint16(8462), + 621: uint16(12089), + 622: uint16(12092), + 623: uint16(12090), + 624: uint16(10556), + 625: uint16(12087), + 626: uint16(7693), + 627: uint16(10834), + 628: uint16(12094), + 629: uint16(12095), + 630: uint16(7171), + 631: uint16(12108), + 632: uint16(9775), + 633: uint16(10261), + 634: uint16(12103), + 635: uint16(10575), + 636: uint16(4373), + 637: uint16(12107), + 638: uint16(12101), + 639: uint16(12110), + 640: uint16(8241), + 641: uint16(5923), + 642: uint16(9787), + 643: uint16(16166), + 644: uint16(12109), + 645: uint16(9276), + 646: uint16(12098), + 647: uint16(5973), + 648: uint16(5972), + 649: uint16(12096), + 650: uint16(6969), + 651: uint16(12104), + 652: uint16(10574), + 653: uint16(8748), + 654: uint16(12100), + 655: uint16(5712), + 656: uint16(12097), + 657: uint16(12105), + 658: uint16(12099), + 659: uint16(11568), + 660: uint16(12106), + 661: uint16(11808), + 662: uint16(5445), + 663: uint16(5711), + 664: uint16(12111), + 665: uint16(12112), + 666: uint16(12116), + 667: uint16(3885), + 668: uint16(10543), + 669: uint16(12115), + 670: uint16(12114), + 671: uint16(12118), + 672: uint16(12117), + 673: uint16(9027), + 674: uint16(5713), + 675: uint16(12119), + 676: uint16(6948), + 677: uint16(8453), + 678: uint16(9028), + 679: uint16(5461), + 680: uint16(12120), + 681: uint16(5141), + 682: uint16(12121), + 683: uint16(12123), + 684: uint16(10772), + 685: uint16(5701), + 686: uint16(6672), + 687: uint16(10070), + 688: uint16(12122), + 689: uint16(6436), + 690: uint16(11298), + 691: uint16(12125), + 692: uint16(12290), + 693: uint16(12124), + 694: uint16(6435), + 695: uint16(7260), + 696: uint16(5656), + 697: uint16(12291), + 698: uint16(5422), + 699: uint16(12288), + 700: uint16(12289), + 701: uint16(9486), + 702: uint16(8283), + 703: uint16(5378), + 704: uint16(10796), + 705: uint16(12292), + 706: uint16(11548), + 707: uint16(12293), + 708: uint16(12296), + 709: uint16(12294), + 710: uint16(8237), + 711: uint16(12295), + 712: uint16(12297), + 713: uint16(12299), + 714: uint16(12298), + 715: uint16(10535), + 716: uint16(5142), + 717: uint16(12301), + 718: uint16(12302), + 719: uint16(4366), + 720: uint16(12300), + 721: uint16(6995), + 722: uint16(12305), + 723: uint16(12304), + 724: uint16(12303), + 725: uint16(12085), + 726: uint16(12306), + 727: uint16(7261), + 728: uint16(12307), + 729: uint16(11268), + 730: uint16(11064), + 731: uint16(12309), + 732: uint16(12308), + 733: uint16(12311), + 734: uint16(12310), + 735: uint16(12312), + 736: uint16(12313), + 737: uint16(3923), + 738: uint16(5908), + 739: uint16(5658), + 740: uint16(7195), + 741: uint16(8794), + 742: uint16(5379), + 743: uint16(8007), + 744: uint16(5974), + 745: uint16(6221), + 746: uint16(12315), + 747: uint16(11047), + 748: uint16(9253), + 749: uint16(6744), + 750: uint16(12314), + 751: uint16(12316), + 752: uint16(9277), + 753: uint16(4692), + 754: uint16(12317), + 755: uint16(9565), + 756: uint16(8211), + 757: uint16(12319), + 758: uint16(12320), + 759: uint16(9995), + 760: uint16(5975), + 761: uint16(11802), + 762: uint16(12321), + 763: uint16(5381), + 764: uint16(10523), + 765: uint16(8469), + 766: uint16(5456), + 767: uint16(9236), + 768: uint16(5714), + 769: uint16(12322), + 770: uint16(12323), + 771: uint16(9537), + 772: uint16(4158), + 773: uint16(12326), + 774: uint16(6492), + 775: uint16(12325), + 776: uint16(6437), + 777: uint16(12327), + 778: uint16(17741), + 779: uint16(12328), + 780: uint16(10784), + 781: uint16(12329), + 782: uint16(12330), + 783: uint16(12331), + 784: uint16(7496), + 785: uint16(6955), + 786: uint16(4870), + 787: uint16(12334), + 788: uint16(12332), + 789: uint16(11036), + 790: uint16(12333), + 791: uint16(10297), + 792: uint16(12335), + 793: uint16(12336), + 794: uint16(12337), + 795: uint16(9278), + 796: uint16(12341), + 797: uint16(12339), + 798: uint16(12340), + 799: uint16(12338), + 800: uint16(6466), + 801: uint16(12342), + 802: uint16(11081), + 803: uint16(11587), + 804: uint16(12343), + 805: uint16(7943), + 806: uint16(12344), + 807: uint16(7225), + 808: uint16(12345), + 809: uint16(8795), + 810: uint16(11550), + 811: uint16(9279), + 812: uint16(12580), + 813: uint16(12346), + 814: uint16(21252), + 815: uint16(5412), + 816: uint16(12347), + 817: uint16(10813), + 818: uint16(7239), + 819: uint16(8539), + 820: uint16(12349), + 821: uint16(9539), + 822: uint16(12350), + 823: uint16(12351), + 824: uint16(4621), + 825: uint16(12352), + 826: uint16(5382), + 827: uint16(9515), + 828: uint16(4185), + 829: uint16(7215), + 830: uint16(9984), + 831: uint16(12353), + 832: uint16(9280), + 833: uint16(7726), + 834: uint16(12354), + 835: uint16(10507), + 836: uint16(7993), + 837: uint16(4865), + 838: uint16(4872), + 839: uint16(12355), + 840: uint16(12357), + 841: uint16(5657), + 842: uint16(12356), + 843: uint16(11602), + 844: uint16(7240), + 845: uint16(10012), + 846: uint16(10539), + 847: uint16(12358), + 848: uint16(11351), + 849: uint16(12359), + 850: uint16(12360), + 851: uint16(9309), + 852: uint16(12361), + 853: uint16(7944), + 854: uint16(6493), + 855: uint16(5715), + 856: uint16(12362), + 857: uint16(6696), + 858: uint16(6222), + 859: uint16(9029), + 860: uint16(12364), + 861: uint16(8454), + 862: uint16(6478), + 863: uint16(12365), + 864: uint16(12366), + 865: uint16(8207), + 866: uint16(12363), + 867: uint16(12368), + 868: uint16(10773), + 869: uint16(6211), + 870: uint16(12367), + 871: uint16(5716), + 872: uint16(6461), + 873: uint16(9804), + 874: uint16(12371), + 875: uint16(12369), + 876: uint16(10330), + 877: uint16(7497), + 878: uint16(12378), + 879: uint16(4675), + 880: uint16(12372), + 881: uint16(12370), + 882: uint16(8238), + 883: uint16(12374), + 884: uint16(12373), + 885: uint16(4643), + 886: uint16(5695), + 887: uint16(12379), + 888: uint16(11532), + 889: uint16(12375), + 890: uint16(12380), + 891: uint16(12377), + 892: uint16(12376), + 893: uint16(11566), + 894: uint16(5976), + 895: uint16(4386), + 896: uint16(11603), + 897: uint16(7252), + 898: uint16(9271), + 899: uint16(6212), + 900: uint16(12545), + 901: uint16(12546), + 902: uint16(11588), + 903: uint16(11786), + 904: uint16(12548), + 905: uint16(5977), + 906: uint16(12547), + 907: uint16(4622), + 908: uint16(12549), + 909: uint16(10805), + 910: uint16(8987), + 911: uint16(11269), + 912: uint16(10552), + 913: uint16(12550), + 914: uint16(20276), + 915: uint16(9487), + 916: uint16(12551), + 917: uint16(4873), + 918: uint16(11026), + 919: uint16(7424), + 920: uint16(12552), + 921: uint16(10566), + 922: uint16(12556), + 923: uint16(7945), + 924: uint16(12553), + 925: uint16(5423), + 926: uint16(12554), + 927: uint16(4874), + 928: uint16(5645), + 929: uint16(12557), + 930: uint16(12558), + 931: uint16(12559), + 932: uint16(12560), + 933: uint16(6970), + 934: uint16(5978), + 935: uint16(11069), + 936: uint16(11079), + 937: uint16(9558), + 938: uint16(10576), + 939: uint16(12561), + 940: uint16(12562), + 941: uint16(12564), + 942: uint16(12566), + 943: uint16(12565), + 944: uint16(12567), + 945: uint16(4380), + 946: uint16(10795), + 947: uint16(6491), + 948: uint16(12568), + 949: uint16(8248), + 950: uint16(7425), + 951: uint16(5384), + 952: uint16(12569), + 953: uint16(10042), + 954: uint16(12570), + 955: uint16(12571), + 956: uint16(12572), + 957: uint16(12573), + 958: uint16(10243), + 959: uint16(5447), + 960: uint16(3908), + 961: uint16(9502), + 962: uint16(12574), + 963: uint16(7196), + 964: uint16(8008), + 965: uint16(12576), + 966: uint16(12575), + 967: uint16(7426), + 968: uint16(5952), + 969: uint16(12578), + 970: uint16(10013), + 971: uint16(12579), + 972: uint16(10043), + 973: uint16(8467), + 974: uint16(8525), + 975: uint16(5383), + 976: uint16(9549), + 977: uint16(8720), + 978: uint16(9805), + 979: uint16(10797), + 980: uint16(12581), + 981: uint16(8009), + 982: uint16(5652), + 983: uint16(12582), + 984: uint16(12583), + 985: uint16(4107), + 986: uint16(3924), + 987: uint16(4940), + 988: uint16(8455), + 989: uint16(5168), + 990: uint16(11344), + 991: uint16(12586), + 992: uint16(4374), + 993: uint16(12585), + 994: uint16(5385), + 995: uint16(12587), + 996: uint16(11088), + 997: uint16(12588), + 998: uint16(11569), + 999: uint16(5979), + 1000: uint16(5909), + 1001: uint16(12589), + 1002: uint16(12591), + 1003: uint16(12590), + 1004: uint16(7742), + 1005: uint16(4120), + 1006: uint16(4157), + 1007: uint16(12592), + 1008: uint16(12593), + 1009: uint16(5910), + 1010: uint16(12594), + 1011: uint16(5197), + 1012: uint16(6673), + 1013: uint16(12595), + 1014: uint16(10835), + 1015: uint16(6420), + 1016: uint16(5177), + 1017: uint16(11270), + 1018: uint16(8239), + 1019: uint16(10014), + 1020: uint16(7004), + 1021: uint16(7206), + 1022: uint16(6983), + 1023: uint16(6996), + 1024: uint16(7253), + 1025: uint16(10015), + 1026: uint16(12598), + 1027: uint16(4130), + 1028: uint16(8240), + 1029: uint16(5980), + 1030: uint16(5924), + 1031: uint16(5446), + 1032: uint16(12602), + 1033: uint16(8704), + 1034: uint16(8541), + 1035: uint16(5386), + 1036: uint16(7427), + 1037: uint16(12603), + 1038: uint16(12601), + 1039: uint16(4387), + 1040: uint16(8517), + 1041: uint16(6935), + 1042: uint16(6698), + 1043: uint16(4101), + 1044: uint16(4687), + 1045: uint16(6213), + 1046: uint16(6697), + 1047: uint16(12604), + 1048: uint16(12605), + 1049: uint16(5160), + 1050: uint16(4645), + 1051: uint16(6214), + 1052: uint16(5159), + 1053: uint16(9022), + 1054: uint16(4100), + 1055: uint16(9488), + 1056: uint16(11037), + 1057: uint16(6144), + 1058: uint16(11352), + 1059: uint16(9254), + 1060: uint16(5981), + 1061: uint16(5646), + 1062: uint16(12614), + 1063: uint16(5442), + 1064: uint16(10793), + 1065: uint16(10044), + 1066: uint16(12613), + 1067: uint16(4925), + 1068: uint16(12608), + 1069: uint16(12609), + 1070: uint16(12611), + 1071: uint16(12612), + 1072: uint16(5178), + 1073: uint16(7744), + 1074: uint16(10508), + 1075: uint16(12610), + 1076: uint16(12606), + 1077: uint16(5954), + 1078: uint16(12607), + 1079: uint16(11779), + 1080: uint16(10577), + 1081: uint16(9031), + 1082: uint16(5953), + 1083: uint16(6223), + 1084: uint16(12615), + 1085: uint16(9532), + 1086: uint16(12619), + 1087: uint16(7005), + 1088: uint16(6997), + 1089: uint16(12622), + 1090: uint16(12620), + 1091: uint16(11010), + 1092: uint16(12617), + 1093: uint16(12626), + 1094: uint16(12621), + 1095: uint16(12624), + 1096: uint16(5925), + 1097: uint16(11038), + 1098: uint16(12625), + 1099: uint16(12627), + 1100: uint16(12629), + 1101: uint16(6479), + 1102: uint16(11809), + 1103: uint16(12618), + 1104: uint16(12616), + 1105: uint16(12628), + 1106: uint16(12623), + 1107: uint16(12631), + 1108: uint16(12802), + 1109: uint16(12633), + 1110: uint16(12637), + 1111: uint16(12800), + 1112: uint16(12634), + 1113: uint16(12829), + 1114: uint16(6472), + 1115: uint16(4624), + 1116: uint16(12632), + 1117: uint16(12804), + 1118: uint16(3925), + 1119: uint16(12803), + 1120: uint16(3844), + 1121: uint16(10281), + 1122: uint16(12801), + 1123: uint16(12635), + 1124: uint16(12630), + 1125: uint16(12636), + 1126: uint16(6439), + 1127: uint16(12805), + 1128: uint16(3926), + 1129: uint16(12814), + 1130: uint16(12806), + 1131: uint16(12807), + 1132: uint16(7428), + 1133: uint16(10824), + 1134: uint16(12812), + 1135: uint16(12811), + 1136: uint16(9230), + 1137: uint16(12813), + 1138: uint16(12810), + 1139: uint16(4115), + 1140: uint16(6421), + 1141: uint16(7695), + 1142: uint16(12808), + 1143: uint16(9281), + 1144: uint16(12809), + 1145: uint16(3841), + 1146: uint16(12819), + 1147: uint16(11266), + 1148: uint16(7430), + 1149: uint16(12825), + 1150: uint16(12824), + 1151: uint16(12815), + 1152: uint16(8482), + 1153: uint16(12816), + 1154: uint16(8526), + 1155: uint16(12821), + 1156: uint16(7429), + 1157: uint16(12818), + 1158: uint16(11075), + 1159: uint16(5659), + 1160: uint16(12822), + 1161: uint16(12823), + 1162: uint16(12820), + 1163: uint16(12826), + 1164: uint16(12817), + 1165: uint16(12832), + 1166: uint16(12837), + 1167: uint16(12833), + 1168: uint16(12828), + 1169: uint16(12838), + 1170: uint16(8208), + 1171: uint16(12840), + 1172: uint16(6145), + 1173: uint16(12830), + 1174: uint16(8796), + 1175: uint16(12834), + 1176: uint16(12827), + 1177: uint16(4876), + 1178: uint16(4941), + 1179: uint16(4676), + 1180: uint16(12835), + 1181: uint16(12831), + 1182: uint16(5717), + 1183: uint16(12841), + 1184: uint16(12839), + 1185: uint16(8242), + 1186: uint16(5161), + 1187: uint16(5387), + 1188: uint16(12836), + 1189: uint16(5459), + 1190: uint16(4131), + 1191: uint16(12845), + 1192: uint16(12843), + 1193: uint16(13062), + 1194: uint16(12848), + 1195: uint16(12842), + 1196: uint16(12846), + 1197: uint16(12844), + 1198: uint16(6699), + 1199: uint16(12847), + 1200: uint16(12850), + 1201: uint16(12855), + 1202: uint16(12853), + 1203: uint16(12852), + 1204: uint16(8721), + 1205: uint16(4388), + 1206: uint16(12849), + 1207: uint16(12851), + 1208: uint16(7431), + 1209: uint16(4114), + 1210: uint16(12854), + 1211: uint16(4413), + 1212: uint16(12865), + 1213: uint16(7515), + 1214: uint16(12861), + 1215: uint16(12859), + 1216: uint16(12860), + 1217: uint16(12862), + 1218: uint16(4124), + 1219: uint16(8216), + 1220: uint16(12856), + 1221: uint16(12857), + 1222: uint16(4697), + 1223: uint16(12864), + 1224: uint16(4942), + 1225: uint16(12867), + 1226: uint16(12863), + 1227: uint16(12866), + 1228: uint16(10509), + 1229: uint16(9524), + 1230: uint16(10007), + 1231: uint16(12869), + 1232: uint16(12868), + 1233: uint16(4644), + 1234: uint16(12870), + 1235: uint16(12873), + 1236: uint16(12872), + 1237: uint16(12871), + 1238: uint16(9752), + 1239: uint16(12874), + 1240: uint16(12875), + 1241: uint16(12877), + 1242: uint16(12876), + 1243: uint16(12879), + 1244: uint16(12882), + 1245: uint16(12880), + 1246: uint16(12878), + 1247: uint16(12881), + 1248: uint16(12883), + 1249: uint16(12884), + 1250: uint16(12885), + 1251: uint16(12886), + 1252: uint16(12887), + 1253: uint16(12324), + 1254: uint16(7003), + 1255: uint16(6700), + 1256: uint16(4434), + 1257: uint16(3927), + 1258: uint16(8739), + 1259: uint16(12888), + 1260: uint16(6403), + 1261: uint16(3886), + 1262: uint16(7741), + 1263: uint16(12889), + 1264: uint16(5926), + 1265: uint16(6224), + 1266: uint16(12891), + 1267: uint16(12890), + 1268: uint16(10559), + 1269: uint16(12892), + 1270: uint16(13056), + 1271: uint16(12893), + 1272: uint16(13057), + 1273: uint16(13058), + 1274: uint16(5718), + 1275: uint16(4159), + 1276: uint16(13059), + 1277: uint16(13061), + 1278: uint16(13060), + 1279: uint16(13063), + 1280: uint16(9273), + 1281: uint16(13064), + 1282: uint16(3860), + 1283: uint16(6462), + 1284: uint16(5660), + 1285: uint16(8750), + 1286: uint16(13065), + 1287: uint16(13066), + 1288: uint16(13068), + 1289: uint16(13069), + 1290: uint16(6467), + 1291: uint16(5424), + 1292: uint16(10774), + 1293: uint16(13067), + 1294: uint16(13070), + 1295: uint16(6432), + 1296: uint16(6146), + 1297: uint16(13074), + 1298: uint16(6404), + 1299: uint16(8722), + 1300: uint16(13071), + 1301: uint16(9017), + 1302: uint16(13075), + 1303: uint16(7745), + 1304: uint16(13073), + 1305: uint16(13076), + 1306: uint16(5662), + 1307: uint16(13077), + 1308: uint16(13078), + 1309: uint16(6147), + 1310: uint16(4639), + 1311: uint16(13080), + 1312: uint16(13081), + 1313: uint16(13082), + 1314: uint16(13079), + 1315: uint16(13072), + 1316: uint16(13083), + 1317: uint16(13084), + 1318: uint16(10819), + 1319: uint16(7498), + 1320: uint16(13086), + 1321: uint16(13087), + 1322: uint16(13085), + 1323: uint16(13089), + 1324: uint16(9751), + 1325: uint16(3911), + 1326: uint16(10293), + 1327: uint16(13090), + 1328: uint16(7516), + 1329: uint16(6936), + 1330: uint16(9788), + 1331: uint16(4943), + 1332: uint16(6474), + 1333: uint16(10808), + 1334: uint16(9489), + 1335: uint16(5719), + 1336: uint16(8494), + 1337: uint16(13088), + 1338: uint16(13091), + 1339: uint16(8483), + 1340: uint16(13092), + 1341: uint16(13093), + 1342: uint16(13095), + 1343: uint16(9032), + 1344: uint16(4877), + 1345: uint16(21248), + 1346: uint16(4160), + 1347: uint16(10578), + 1348: uint16(7499), + 1349: uint16(9255), + 1350: uint16(6469), + 1351: uint16(13101), + 1352: uint16(10524), + 1353: uint16(11580), + 1354: uint16(4435), + 1355: uint16(13097), + 1356: uint16(8217), + 1357: uint16(13100), + 1358: uint16(9282), + 1359: uint16(9256), + 1360: uint16(9283), + 1361: uint16(10008), + 1362: uint16(9004), + 1363: uint16(6440), + 1364: uint16(13096), + 1365: uint16(4181), + 1366: uint16(9237), + 1367: uint16(13098), + 1368: uint16(13094), + 1369: uint16(7727), + 1370: uint16(13102), + 1371: uint16(7213), + 1372: uint16(5388), + 1373: uint16(13103), + 1374: uint16(10567), + 1375: uint16(8284), + 1376: uint16(8997), + 1377: uint16(13105), + 1378: uint16(10798), + 1379: uint16(13106), + 1380: uint16(13111), + 1381: uint16(10510), + 1382: uint16(13110), + 1383: uint16(13104), + 1384: uint16(13107), + 1385: uint16(13109), + 1386: uint16(6405), + 1387: uint16(10536), + 1388: uint16(13112), + 1389: uint16(8740), + 1390: uint16(4436), + 1391: uint16(7500), + 1392: uint16(13114), + 1393: uint16(13113), + 1394: uint16(6215), + 1395: uint16(13115), + 1396: uint16(13117), + 1397: uint16(13116), + 1398: uint16(13119), + 1399: uint16(13108), + 1400: uint16(13121), + 1401: uint16(13120), + 1402: uint16(13118), + 1403: uint16(6701), + 1404: uint16(7728), + 1405: uint16(8243), + 1406: uint16(13122), + 1407: uint16(7963), + 1408: uint16(3916), + 1409: uint16(9795), + 1410: uint16(9018), + 1411: uint16(13124), + 1412: uint16(13123), + 1413: uint16(13125), + 1414: uint16(13126), + 1415: uint16(13127), + 1416: uint16(13128), + 1417: uint16(10544), + 1418: uint16(13129), + 1419: uint16(4389), + 1420: uint16(13130), + 1421: uint16(11291), + 1422: uint16(4623), + 1423: uint16(12584), + 1424: uint16(7207), + 1425: uint16(8478), + 1426: uint16(13131), + 1427: uint16(11082), + 1428: uint16(11027), + 1429: uint16(13133), + 1430: uint16(8518), + 1431: uint16(9238), + 1432: uint16(8479), + 1433: uint16(10294), + 1434: uint16(13134), + 1435: uint16(13135), + 1436: uint16(4186), + 1437: uint16(6937), + 1438: uint16(13136), + 1439: uint16(3887), + 1440: uint16(13137), + 1441: uint16(13138), + 1442: uint16(4161), + 1443: uint16(4944), + 1444: uint16(9535), + 1445: uint16(10579), + 1446: uint16(13142), + 1447: uint16(8244), + 1448: uint16(13141), + 1449: uint16(5663), + 1450: uint16(10810), + 1451: uint16(13140), + 1452: uint16(9284), + 1453: uint16(13144), + 1454: uint16(13143), + 1455: uint16(13146), + 1456: uint16(13145), + 1457: uint16(4187), + 1458: uint16(13147), + 1459: uint16(7432), + 1460: uint16(13149), + 1461: uint16(8708), + 1462: uint16(13148), + 1463: uint16(10514), + 1464: uint16(7254), + 1465: uint16(9274), + 1466: uint16(13312), + 1467: uint16(6148), + 1468: uint16(13313), + 1469: uint16(9728), + 1470: uint16(10045), + 1471: uint16(11056), + 1472: uint16(9732), + 1473: uint16(13322), + 1474: uint16(5143), + 1475: uint16(11300), + 1476: uint16(11022), + 1477: uint16(13579), + 1478: uint16(13314), + 1479: uint16(13317), + 1480: uint16(8484), + 1481: uint16(10775), + 1482: uint16(9257), + 1483: uint16(13318), + 1484: uint16(10820), + 1485: uint16(6441), + 1486: uint16(7433), + 1487: uint16(13319), + 1488: uint16(6703), + 1489: uint16(6702), + 1490: uint16(3864), + 1491: uint16(5927), + 1492: uint16(7946), + 1493: uint16(3888), + 1494: uint16(13323), + 1495: uint16(13324), + 1496: uint16(13321), + 1497: uint16(4119), + 1498: uint16(4878), + 1499: uint16(13320), + 1500: uint16(11044), + 1501: uint16(10256), + 1502: uint16(3847), + 1503: uint16(3928), + 1504: uint16(6704), + 1505: uint16(3889), + 1506: uint16(3842), + 1507: uint16(13329), + 1508: uint16(13327), + 1509: uint16(11035), + 1510: uint16(13330), + 1511: uint16(13328), + 1512: uint16(13326), + 1513: uint16(7696), + 1514: uint16(13325), + 1515: uint16(10553), + 1516: uint16(5955), + 1517: uint16(13334), + 1518: uint16(13335), + 1519: uint16(7434), + 1520: uint16(13331), + 1521: uint16(11787), + 1522: uint16(9771), + 1523: uint16(13333), + 1524: uint16(6406), + 1525: uint16(13336), + 1526: uint16(10295), + 1527: uint16(13337), + 1528: uint16(13332), + 1529: uint16(11034), + 1530: uint16(9789), + 1531: uint16(13338), + 1532: uint16(10257), + 1533: uint16(13339), + 1534: uint16(13343), + 1535: uint16(13340), + 1536: uint16(4390), + 1537: uint16(13342), + 1538: uint16(6938), + 1539: uint16(13341), + 1540: uint16(5720), + 1541: uint16(13355), + 1542: uint16(13348), + 1543: uint16(13345), + 1544: uint16(8771), + 1545: uint16(13344), + 1546: uint16(13346), + 1547: uint16(13347), + 1548: uint16(13349), + 1549: uint16(13350), + 1550: uint16(4945), + 1551: uint16(13352), + 1552: uint16(13351), + 1553: uint16(13353), + 1554: uint16(7501), + 1555: uint16(13356), + 1556: uint16(9019), + 1557: uint16(4132), + 1558: uint16(13354), + 1559: uint16(13357), + 1560: uint16(13358), + 1561: uint16(13361), + 1562: uint16(13359), + 1563: uint16(13360), + 1564: uint16(6705), + 1565: uint16(13362), + 1566: uint16(6149), + 1567: uint16(13363), + 1568: uint16(6745), + 1569: uint16(8471), + 1570: uint16(13364), + 1571: uint16(13365), + 1572: uint16(6713), + 1573: uint16(6150), + 1574: uint16(11057), + 1575: uint16(5127), + 1576: uint16(5928), + 1577: uint16(13366), + 1578: uint16(4663), + 1579: uint16(13367), + 1580: uint16(8472), + 1581: uint16(13368), + 1582: uint16(13570), + 1583: uint16(13369), + 1584: uint16(13370), + 1585: uint16(13371), + 1586: uint16(13373), + 1587: uint16(13374), + 1588: uint16(13375), + 1589: uint16(8527), + 1590: uint16(4102), + 1591: uint16(6984), + 1592: uint16(3873), + 1593: uint16(8246), + 1594: uint16(4879), + 1595: uint16(6932), + 1596: uint16(6151), + 1597: uint16(9285), + 1598: uint16(7168), + 1599: uint16(4880), + 1600: uint16(8775), + 1601: uint16(9033), + 1602: uint16(3863), + 1603: uint16(5144), + 1604: uint16(10580), + 1605: uint16(6945), + 1606: uint16(5169), + 1607: uint16(8010), + 1608: uint16(6939), + 1609: uint16(11271), + 1610: uint16(13376), + 1611: uint16(5179), + 1612: uint16(6442), + 1613: uint16(4625), + 1614: uint16(4162), + 1615: uint16(7435), + 1616: uint16(4391), + 1617: uint16(13377), + 1618: uint16(11301), + 1619: uint16(7208), + 1620: uint16(6979), + 1621: uint16(13378), + 1622: uint16(4946), + 1623: uint16(9521), + 1624: uint16(11016), + 1625: uint16(13379), + 1626: uint16(13380), + 1627: uint16(10296), + 1628: uint16(13382), + 1629: uint16(4871), + 1630: uint16(5462), + 1631: uint16(13381), + 1632: uint16(4881), + 1633: uint16(7697), + 1634: uint16(13386), + 1635: uint16(6656), + 1636: uint16(4392), + 1637: uint16(13385), + 1638: uint16(13383), + 1639: uint16(13387), + 1640: uint16(13384), + 1641: uint16(9738), + 1642: uint16(15148), + 1643: uint16(7698), + 1644: uint16(13388), + 1645: uint16(11551), + 1646: uint16(13389), + 1647: uint16(13391), + 1648: uint16(8797), + 1649: uint16(13390), + 1650: uint16(7938), + 1651: uint16(6746), + 1652: uint16(8495), + 1653: uint16(6998), + 1654: uint16(10324), + 1655: uint16(8011), + 1656: uint16(6956), + 1657: uint16(13392), + 1658: uint16(7436), + 1659: uint16(13393), + 1660: uint16(13394), + 1661: uint16(3890), + 1662: uint16(8473), + 1663: uint16(7729), + 1664: uint16(13395), + 1665: uint16(9490), + 1666: uint16(7437), + 1667: uint16(7438), + 1668: uint16(13396), + 1669: uint16(8012), + 1670: uint16(7439), + 1671: uint16(13397), + 1672: uint16(13398), + 1673: uint16(11071), + 1674: uint16(13399), + 1675: uint16(5413), + 1676: uint16(7169), + 1677: uint16(13400), + 1678: uint16(13401), + 1679: uint16(6971), + 1680: uint16(7691), + 1681: uint16(9555), + 1682: uint16(7731), + 1683: uint16(10071), + 1684: uint16(9729), + 1685: uint16(5416), + 1686: uint16(13402), + 1687: uint16(5198), + 1688: uint16(13403), + 1689: uint16(5469), + 1690: uint16(9518), + 1691: uint16(4367), + 1692: uint16(6706), + 1693: uint16(13404), + 1694: uint16(13569), + 1695: uint16(13568), + 1696: uint16(5468), + 1697: uint16(13405), + 1698: uint16(9239), + 1699: uint16(8463), + 1700: uint16(9258), + 1701: uint16(6951), + 1702: uint16(8247), + 1703: uint16(11353), + 1704: uint16(13571), + 1705: uint16(13572), + 1706: uint16(9525), + 1707: uint16(6674), + 1708: uint16(13574), + 1709: uint16(13575), + 1710: uint16(13576), + 1711: uint16(4947), + 1712: uint16(13577), + 1713: uint16(13578), + 1714: uint16(4363), + 1715: uint16(8218), + 1716: uint16(4931), + 1717: uint16(13580), + 1718: uint16(11015), + 1719: uint16(8497), + 1720: uint16(4664), + 1721: uint16(13582), + 1722: uint16(13584), + 1723: uint16(4926), + 1724: uint16(13581), + 1725: uint16(13583), + 1726: uint16(13586), + 1727: uint16(13585), + 1728: uint16(13587), + 1729: uint16(13588), + 1730: uint16(9500), + 1731: uint16(5389), + 1732: uint16(4420), + 1733: uint16(13589), + 1734: uint16(13594), + 1735: uint16(13592), + 1736: uint16(10582), + 1737: uint16(10581), + 1738: uint16(9286), + 1739: uint16(13591), + 1740: uint16(7219), + 1741: uint16(13590), + 1742: uint16(7761), + 1743: uint16(13595), + 1744: uint16(6473), + 1745: uint16(13601), + 1746: uint16(13602), + 1747: uint16(13596), + 1748: uint16(4626), + 1749: uint16(13597), + 1750: uint16(13606), + 1751: uint16(13605), + 1752: uint16(13604), + 1753: uint16(13600), + 1754: uint16(13599), + 1755: uint16(13603), + 1756: uint16(10583), + 1757: uint16(13610), + 1758: uint16(13607), + 1759: uint16(13609), + 1760: uint16(11345), + 1761: uint16(13608), + 1762: uint16(13598), + 1763: uint16(7762), + 1764: uint16(13611), + 1765: uint16(6422), + 1766: uint16(13612), + 1767: uint16(13613), + 1768: uint16(13616), + 1769: uint16(13615), + 1770: uint16(13614), + 1771: uint16(9287), + 1772: uint16(13593), + 1773: uint16(13622), + 1774: uint16(13618), + 1775: uint16(13617), + 1776: uint16(13619), + 1777: uint16(13620), + 1778: uint16(13623), + 1779: uint16(11589), + 1780: uint16(13624), + 1781: uint16(13621), + 1782: uint16(13625), + 1783: uint16(4927), + 1784: uint16(13626), + 1785: uint16(13628), + 1786: uint16(13627), + 1787: uint16(13629), + 1788: uint16(13630), + 1789: uint16(8013), + 1790: uint16(7170), + 1791: uint16(7235), + 1792: uint16(8258), + 1793: uint16(6152), + 1794: uint16(6423), + 1795: uint16(6153), + 1796: uint16(5199), + 1797: uint16(13631), + 1798: uint16(6424), + 1799: uint16(5929), + 1800: uint16(13632), + 1801: uint16(11013), + 1802: uint16(9762), + 1803: uint16(13633), + 1804: uint16(6154), + 1805: uint16(4875), + 1806: uint16(8710), + 1807: uint16(5425), + 1808: uint16(6707), + 1809: uint16(10298), + 1810: uint16(10016), + 1811: uint16(13634), + 1812: uint16(4948), + 1813: uint16(13637), + 1814: uint16(8960), + 1815: uint16(13636), + 1816: uint16(13635), + 1817: uint16(13638), + 1818: uint16(9034), + 1819: uint16(7746), + 1820: uint16(6708), + 1821: uint16(7977), + 1822: uint16(8498), + 1823: uint16(5121), + 1824: uint16(8961), + 1825: uint16(13639), + 1826: uint16(13640), + 1827: uint16(7502), + 1828: uint16(10776), + 1829: uint16(13643), + 1830: uint16(13642), + 1831: uint16(13641), + 1832: uint16(10332), + 1833: uint16(13650), + 1834: uint16(10809), + 1835: uint16(13644), + 1836: uint16(13646), + 1837: uint16(10826), + 1838: uint16(13645), + 1839: uint16(13647), + 1840: uint16(9991), + 1841: uint16(13648), + 1842: uint16(10525), + 1843: uint16(13649), + 1844: uint16(4882), + 1845: uint16(10526), + 1846: uint16(9742), + 1847: uint16(13651), + 1848: uint16(13652), + 1849: uint16(6155), + 1850: uint16(4883), + 1851: uint16(13653), + 1852: uint16(5911), + 1853: uint16(11299), + 1854: uint16(11272), + 1855: uint16(4949), + 1856: uint16(13655), + 1857: uint16(8962), + 1858: uint16(6156), + 1859: uint16(7440), + 1860: uint16(10046), + 1861: uint16(7441), + 1862: uint16(7255), + 1863: uint16(9035), + 1864: uint16(10584), + 1865: uint16(9240), + 1866: uint16(6157), + 1867: uint16(10299), + 1868: uint16(13656), + 1869: uint16(9272), + 1870: uint16(6433), + 1871: uint16(5930), + 1872: uint16(9036), + 1873: uint16(3874), + 1874: uint16(7245), + 1875: uint16(6158), + 1876: uint16(11302), + 1877: uint16(13657), + 1878: uint16(13658), + 1879: uint16(9776), + 1880: uint16(13659), + 1881: uint16(11606), + 1882: uint16(11788), + 1883: uint16(13661), + 1884: uint16(13660), + 1885: uint16(4646), + 1886: uint16(13824), + 1887: uint16(13827), + 1888: uint16(13828), + 1889: uint16(13826), + 1890: uint16(10271), + 1891: uint16(7442), + 1892: uint16(13830), + 1893: uint16(13829), + 1894: uint16(13825), + 1895: uint16(13831), + 1896: uint16(13832), + 1897: uint16(13833), + 1898: uint16(13836), + 1899: uint16(13834), + 1900: uint16(13835), + 1901: uint16(13837), + 1902: uint16(4163), + 1903: uint16(9037), + 1904: uint16(13838), + 1905: uint16(5721), + 1906: uint16(4437), + 1907: uint16(9749), + 1908: uint16(13839), + 1909: uint16(9562), + 1910: uint16(10554), + 1911: uint16(13840), + 1912: uint16(11789), + 1913: uint16(13841), + 1914: uint16(10527), + 1915: uint16(13844), + 1916: uint16(12032), + 1917: uint16(12048), + 1918: uint16(6927), + 1919: uint16(9556), + 1920: uint16(13845), + 1921: uint16(5180), + 1922: uint16(8963), + 1923: uint16(3929), + 1924: uint16(13846), + 1925: uint16(10501), + 1926: uint16(6159), + 1927: uint16(8751), + 1928: uint16(9038), + 1929: uint16(11086), + 1930: uint16(5912), + 1931: uint16(5931), + 1932: uint16(13847), + 1933: uint16(13848), + 1934: uint16(13854), + 1935: uint16(6980), + 1936: uint16(8964), + 1937: uint16(5390), + 1938: uint16(13849), + 1939: uint16(10250), + 1940: uint16(8741), + 1941: uint16(13850), + 1942: uint16(13851), + 1943: uint16(5391), + 1944: uint16(13852), + 1945: uint16(13853), + 1946: uint16(13855), + 1947: uint16(9301), + 1948: uint16(13856), + 1949: uint16(13857), + 1950: uint16(13858), + 1951: uint16(13843), + 1952: uint16(13842), + 1953: uint16(13859), + 1954: uint16(5664), + 1955: uint16(10246), + 1956: uint16(6443), + 1957: uint16(10262), + 1958: uint16(8965), + 1959: uint16(10282), + 1960: uint16(13860), + 1961: uint16(7443), + 1962: uint16(4133), + 1963: uint16(13861), + 1964: uint16(13862), + 1965: uint16(11089), + 1966: uint16(10047), + 1967: uint16(13865), + 1968: uint16(4188), + 1969: uint16(7947), + 1970: uint16(13864), + 1971: uint16(13863), + 1972: uint16(5665), + 1973: uint16(8499), + 1974: uint16(13869), + 1975: uint16(13867), + 1976: uint16(13866), + 1977: uint16(11526), + 1978: uint16(5956), + 1979: uint16(7256), + 1980: uint16(13868), + 1981: uint16(9259), + 1982: uint16(7197), + 1983: uint16(9503), + 1984: uint16(13872), + 1985: uint16(13871), + 1986: uint16(13870), + 1987: uint16(13873), + 1988: uint16(5957), + 1989: uint16(13874), + 1990: uint16(10331), + 1991: uint16(7226), + 1992: uint16(13875), + 1993: uint16(10072), + 1994: uint16(9504), + 1995: uint16(8966), + 1996: uint16(9231), + 1997: uint16(13876), + 1998: uint16(5130), + 1999: uint16(7699), + 2000: uint16(10251), + 2001: uint16(4950), + 2002: uint16(9733), + 2003: uint16(13877), + 2004: uint16(6709), + 2005: uint16(10777), + 2006: uint16(10778), + 2007: uint16(4189), + 2008: uint16(13882), + 2009: uint16(8776), + 2010: uint16(13879), + 2011: uint16(4438), + 2012: uint16(14092), + 2013: uint16(13881), + 2014: uint16(9743), + 2015: uint16(13880), + 2016: uint16(13878), + 2017: uint16(6233), + 2018: uint16(13884), + 2019: uint16(13890), + 2020: uint16(13896), + 2021: uint16(13888), + 2022: uint16(9275), + 2023: uint16(13893), + 2024: uint16(10300), + 2025: uint16(13887), + 2026: uint16(13892), + 2027: uint16(11590), + 2028: uint16(6710), + 2029: uint16(8500), + 2030: uint16(13885), + 2031: uint16(5181), + 2032: uint16(13895), + 2033: uint16(7948), + 2034: uint16(4164), + 2035: uint16(13889), + 2036: uint16(4439), + 2037: uint16(13894), + 2038: uint16(5392), + 2039: uint16(13891), + 2040: uint16(13897), + 2041: uint16(13899), + 2042: uint16(13909), + 2043: uint16(13907), + 2044: uint16(13904), + 2045: uint16(13903), + 2046: uint16(11607), + 2047: uint16(13905), + 2048: uint16(5393), + 2049: uint16(6160), + 2050: uint16(7257), + 2051: uint16(13912), + 2052: uint16(13898), + 2053: uint16(13902), + 2054: uint16(13886), + 2055: uint16(4441), + 2056: uint16(13906), + 2057: uint16(13908), + 2058: uint16(8752), + 2059: uint16(6407), + 2060: uint16(4375), + 2061: uint16(13900), + 2062: uint16(13911), + 2063: uint16(13910), + 2064: uint16(5394), + 2065: uint16(8456), + 2066: uint16(4677), + 2067: uint16(5666), + 2068: uint16(13901), + 2069: uint16(13913), + 2070: uint16(13916), + 2071: uint16(14080), + 2072: uint16(6940), + 2073: uint16(14086), + 2074: uint16(9039), + 2075: uint16(13914), + 2076: uint16(14084), + 2077: uint16(4440), + 2078: uint16(14082), + 2079: uint16(14083), + 2080: uint16(13917), + 2081: uint16(14081), + 2082: uint16(5958), + 2083: uint16(11273), + 2084: uint16(4884), + 2085: uint16(4152), + 2086: uint16(14085), + 2087: uint16(9753), + 2088: uint16(3852), + 2089: uint16(10048), + 2090: uint16(13883), + 2091: uint16(14091), + 2092: uint16(14095), + 2093: uint16(11076), + 2094: uint16(14088), + 2095: uint16(9288), + 2096: uint16(14093), + 2097: uint16(7503), + 2098: uint16(14094), + 2099: uint16(9526), + 2100: uint16(11814), + 2101: uint16(14090), + 2102: uint16(14096), + 2103: uint16(6234), + 2104: uint16(7978), + 2105: uint16(3891), + 2106: uint16(14089), + 2107: uint16(14087), + 2108: uint16(8249), + 2109: uint16(13915), + 2110: uint16(6675), + 2111: uint16(8485), + 2112: uint16(14108), + 2113: uint16(8250), + 2114: uint16(14103), + 2115: uint16(14100), + 2116: uint16(14101), + 2117: uint16(6981), + 2118: uint16(14104), + 2119: uint16(14107), + 2120: uint16(14102), + 2121: uint16(7172), + 2122: uint16(14105), + 2123: uint16(14099), + 2124: uint16(11099), + 2125: uint16(11098), + 2126: uint16(14109), + 2127: uint16(14110), + 2128: uint16(3892), + 2129: uint16(14098), + 2130: uint16(5457), + 2131: uint16(3845), + 2132: uint16(4885), + 2133: uint16(14106), + 2134: uint16(14114), + 2135: uint16(14113), + 2136: uint16(14118), + 2137: uint16(14119), + 2138: uint16(14117), + 2139: uint16(14120), + 2140: uint16(14112), + 2141: uint16(14116), + 2142: uint16(14121), + 2143: uint16(14122), + 2144: uint16(14111), + 2145: uint16(6747), + 2146: uint16(14115), + 2147: uint16(8501), + 2148: uint16(6161), + 2149: uint16(14097), + 2150: uint16(7700), + 2151: uint16(14135), + 2152: uint16(10568), + 2153: uint16(14125), + 2154: uint16(14126), + 2155: uint16(14127), + 2156: uint16(14134), + 2157: uint16(14133), + 2158: uint16(10844), + 2159: uint16(4886), + 2160: uint16(14131), + 2161: uint16(5668), + 2162: uint16(4627), + 2163: uint16(14128), + 2164: uint16(11543), + 2165: uint16(14130), + 2166: uint16(3893), + 2167: uint16(14132), + 2168: uint16(14123), + 2169: uint16(14129), + 2170: uint16(14136), + 2171: uint16(5667), + 2172: uint16(14124), + 2173: uint16(11324), + 2174: uint16(11274), + 2175: uint16(14139), + 2176: uint16(14143), + 2177: uint16(8285), + 2178: uint16(11608), + 2179: uint16(14144), + 2180: uint16(14141), + 2181: uint16(14138), + 2182: uint16(14137), + 2183: uint16(14142), + 2184: uint16(10511), + 2185: uint16(9491), + 2186: uint16(5669), + 2187: uint16(14145), + 2188: uint16(14140), + 2189: uint16(14146), + 2190: uint16(5722), + 2191: uint16(4368), + 2192: uint16(14154), + 2193: uint16(4887), + 2194: uint16(14152), + 2195: uint16(14153), + 2196: uint16(6408), + 2197: uint16(14151), + 2198: uint16(14149), + 2199: uint16(14148), + 2200: uint16(14155), + 2201: uint16(14147), + 2202: uint16(14157), + 2203: uint16(4442), + 2204: uint16(14159), + 2205: uint16(14158), + 2206: uint16(8967), + 2207: uint16(14162), + 2208: uint16(14160), + 2209: uint16(14150), + 2210: uint16(5723), + 2211: uint16(14161), + 2212: uint16(14165), + 2213: uint16(14164), + 2214: uint16(14166), + 2215: uint16(14163), + 2216: uint16(14167), + 2217: uint16(14168), + 2218: uint16(14169), + 2219: uint16(10569), + 2220: uint16(14171), + 2221: uint16(14170), + 2222: uint16(7198), + 2223: uint16(7949), + 2224: uint16(4421), + 2225: uint16(4443), + 2226: uint16(14172), + 2227: uint16(3870), + 2228: uint16(7979), + 2229: uint16(14173), + 2230: uint16(19234), + 2231: uint16(14336), + 2232: uint16(5696), + 2233: uint16(14337), + 2234: uint16(8014), + 2235: uint16(14338), + 2236: uint16(14339), + 2237: uint16(5145), + 2238: uint16(14340), + 2239: uint16(14341), + 2240: uint16(14342), + 2241: uint16(8502), + 2242: uint16(5932), + 2243: uint16(11072), + 2244: uint16(10779), + 2245: uint16(7241), + 2246: uint16(14343), + 2247: uint16(8015), + 2248: uint16(19740), + 2249: uint16(10049), + 2250: uint16(6985), + 2251: uint16(6444), + 2252: uint16(14344), + 2253: uint16(8486), + 2254: uint16(10502), + 2255: uint16(8528), + 2256: uint16(14347), + 2257: uint16(14345), + 2258: uint16(14348), + 2259: uint16(14346), + 2260: uint16(14349), + 2261: uint16(10512), + 2262: uint16(3862), + 2263: uint16(10301), + 2264: uint16(10050), + 2265: uint16(14350), + 2266: uint16(14353), + 2267: uint16(7444), + 2268: uint16(5146), + 2269: uint16(14351), + 2270: uint16(14358), + 2271: uint16(7445), + 2272: uint16(14352), + 2273: uint16(9763), + 2274: uint16(11325), + 2275: uint16(14354), + 2276: uint16(14355), + 2277: uint16(14359), + 2278: uint16(9289), + 2279: uint16(14356), + 2280: uint16(6162), + 2281: uint16(7997), + 2282: uint16(14373), + 2283: uint16(10003), + 2284: uint16(8529), + 2285: uint16(10051), + 2286: uint16(14604), + 2287: uint16(10585), + 2288: uint16(9040), + 2289: uint16(10836), + 2290: uint16(14362), + 2291: uint16(4352), + 2292: uint16(8777), + 2293: uint16(14371), + 2294: uint16(8723), + 2295: uint16(14365), + 2296: uint16(14372), + 2297: uint16(14367), + 2298: uint16(14374), + 2299: uint16(14370), + 2300: uint16(14369), + 2301: uint16(9806), + 2302: uint16(14363), + 2303: uint16(4444), + 2304: uint16(14361), + 2305: uint16(5200), + 2306: uint16(8530), + 2307: uint16(14357), + 2308: uint16(14360), + 2309: uint16(6163), + 2310: uint16(7994), + 2311: uint16(7446), + 2312: uint16(14368), + 2313: uint16(9777), + 2314: uint16(5201), + 2315: uint16(4647), + 2316: uint16(4678), + 2317: uint16(7680), + 2318: uint16(14376), + 2319: uint16(14381), + 2320: uint16(14377), + 2321: uint16(5724), + 2322: uint16(14382), + 2323: uint16(6657), + 2324: uint16(6216), + 2325: uint16(7173), + 2326: uint16(14364), + 2327: uint16(6748), + 2328: uint16(14379), + 2329: uint16(6711), + 2330: uint16(14380), + 2331: uint16(3875), + 2332: uint16(14375), + 2333: uint16(8968), + 2334: uint16(5202), + 2335: uint16(5395), + 2336: uint16(14378), + 2337: uint16(3846), + 2338: uint16(6434), + 2339: uint16(7701), + 2340: uint16(9041), + 2341: uint16(10035), + 2342: uint16(14384), + 2343: uint16(8253), + 2344: uint16(8457), + 2345: uint16(6666), + 2346: uint16(14385), + 2347: uint16(14387), + 2348: uint16(14383), + 2349: uint16(10560), + 2350: uint16(8988), + 2351: uint16(8251), + 2352: uint16(10586), + 2353: uint16(6957), + 2354: uint16(14399), + 2355: uint16(14398), + 2356: uint16(7767), + 2357: uint16(5725), + 2358: uint16(14392), + 2359: uint16(7448), + 2360: uint16(9543), + 2361: uint16(9744), + 2362: uint16(14390), + 2363: uint16(8252), + 2364: uint16(6999), + 2365: uint16(14395), + 2366: uint16(7447), + 2367: uint16(14389), + 2368: uint16(14394), + 2369: uint16(9778), + 2370: uint16(14388), + 2371: uint16(5632), + 2372: uint16(4668), + 2373: uint16(14396), + 2374: uint16(11530), + 2375: uint16(6445), + 2376: uint16(8724), + 2377: uint16(14393), + 2378: uint16(7995), + 2379: uint16(6164), + 2380: uint16(7747), + 2381: uint16(4165), + 2382: uint16(8219), + 2383: uint16(14391), + 2384: uint16(5156), + 2385: uint16(5670), + 2386: uint16(9006), + 2387: uint16(14397), + 2388: uint16(8254), + 2389: uint16(14400), + 2390: uint16(14402), + 2391: uint16(8470), + 2392: uint16(14408), + 2393: uint16(14403), + 2394: uint16(14405), + 2395: uint16(10272), + 2396: uint16(9042), + 2397: uint16(14406), + 2398: uint16(11275), + 2399: uint16(11303), + 2400: uint16(4888), + 2401: uint16(3853), + 2402: uint16(14404), + 2403: uint16(14401), + 2404: uint16(4951), + 2405: uint16(4166), + 2406: uint16(14407), + 2407: uint16(11304), + 2408: uint16(14411), + 2409: uint16(8474), + 2410: uint16(14418), + 2411: uint16(14412), + 2412: uint16(14409), + 2413: uint16(14416), + 2414: uint16(14386), + 2415: uint16(14413), + 2416: uint16(14417), + 2417: uint16(10017), + 2418: uint16(9290), + 2419: uint16(14410), + 2420: uint16(14414), + 2421: uint16(5671), + 2422: uint16(6480), + 2423: uint16(7996), + 2424: uint16(14422), + 2425: uint16(9221), + 2426: uint16(14419), + 2427: uint16(10815), + 2428: uint16(14420), + 2429: uint16(14421), + 2430: uint16(11053), + 2431: uint16(7937), + 2432: uint16(5697), + 2433: uint16(14428), + 2434: uint16(6676), + 2435: uint16(14425), + 2436: uint16(14424), + 2437: uint16(9745), + 2438: uint16(9492), + 2439: uint16(9232), + 2440: uint16(14426), + 2441: uint16(14427), + 2442: uint16(10318), + 2443: uint16(9764), + 2444: uint16(6658), + 2445: uint16(8016), + 2446: uint16(10799), + 2447: uint16(4648), + 2448: uint16(14596), + 2449: uint16(14429), + 2450: uint16(11305), + 2451: uint16(14598), + 2452: uint16(14594), + 2453: uint16(14595), + 2454: uint16(8255), + 2455: uint16(14593), + 2456: uint16(14366), + 2457: uint16(14597), + 2458: uint16(14592), + 2459: uint16(14602), + 2460: uint16(14603), + 2461: uint16(9222), + 2462: uint16(14605), + 2463: uint16(6659), + 2464: uint16(14600), + 2465: uint16(5147), + 2466: uint16(14606), + 2467: uint16(14599), + 2468: uint16(14610), + 2469: uint16(14609), + 2470: uint16(14608), + 2471: uint16(14611), + 2472: uint16(14613), + 2473: uint16(7504), + 2474: uint16(14612), + 2475: uint16(14616), + 2476: uint16(14614), + 2477: uint16(14615), + 2478: uint16(14415), + 2479: uint16(14618), + 2480: uint16(14617), + 2481: uint16(14423), + 2482: uint16(14619), + 2483: uint16(14607), + 2484: uint16(6712), + 2485: uint16(14620), + 2486: uint16(14621), + 2487: uint16(14623), + 2488: uint16(14622), + 2489: uint16(14624), + 2490: uint16(4445), + 2491: uint16(6165), + 2492: uint16(10587), + 2493: uint16(7950), + 2494: uint16(5933), + 2495: uint16(14626), + 2496: uint16(14629), + 2497: uint16(10289), + 2498: uint16(5182), + 2499: uint16(14628), + 2500: uint16(14627), + 2501: uint16(9779), + 2502: uint16(14630), + 2503: uint16(5396), + 2504: uint16(14632), + 2505: uint16(14631), + 2506: uint16(4889), + 2507: uint16(6677), + 2508: uint16(9527), + 2509: uint16(5672), + 2510: uint16(7763), + 2511: uint16(14633), + 2512: uint16(7951), + 2513: uint16(9223), + 2514: uint16(10302), + 2515: uint16(14634), + 2516: uint16(14635), + 2517: uint16(14636), + 2518: uint16(10519), + 2519: uint16(13372), + 2520: uint16(7973), + 2521: uint16(10283), + 2522: uint16(6455), + 2523: uint16(10052), + 2524: uint16(10018), + 2525: uint16(9260), + 2526: uint16(11552), + 2527: uint16(14638), + 2528: uint16(6959), + 2529: uint16(14639), + 2530: uint16(3861), + 2531: uint16(5427), + 2532: uint16(7980), + 2533: uint16(10303), + 2534: uint16(14640), + 2535: uint16(6689), + 2536: uint16(8742), + 2537: uint16(6714), + 2538: uint16(7702), + 2539: uint16(14641), + 2540: uint16(10588), + 2541: uint16(4182), + 2542: uint16(6715), + 2543: uint16(14644), + 2544: uint16(14642), + 2545: uint16(14645), + 2546: uint16(11544), + 2547: uint16(14643), + 2548: uint16(8026), + 2549: uint16(14646), + 2550: uint16(8465), + 2551: uint16(14647), + 2552: uint16(4953), + 2553: uint16(14649), + 2554: uint16(14648), + 2555: uint16(14650), + 2556: uint16(14651), + 2557: uint16(4954), + 2558: uint16(9563), + 2559: uint16(8725), + 2560: uint16(5195), + 2561: uint16(6716), + 2562: uint16(8256), + 2563: uint16(7227), + 2564: uint16(3855), + 2565: uint16(14652), + 2566: uint16(4353), + 2567: uint16(14656), + 2568: uint16(6166), + 2569: uint16(14655), + 2570: uint16(6410), + 2571: uint16(7449), + 2572: uint16(14654), + 2573: uint16(7450), + 2574: uint16(11039), + 2575: uint16(6409), + 2576: uint16(3894), + 2577: uint16(7981), + 2578: uint16(14661), + 2579: uint16(7952), + 2580: uint16(4134), + 2581: uint16(7220), + 2582: uint16(10821), + 2583: uint16(6481), + 2584: uint16(7451), + 2585: uint16(7942), + 2586: uint16(14660), + 2587: uint16(14658), + 2588: uint16(14659), + 2589: uint16(8778), + 2590: uint16(14853), + 2591: uint16(14665), + 2592: uint16(6749), + 2593: uint16(6167), + 2594: uint16(14663), + 2595: uint16(14664), + 2596: uint16(7703), + 2597: uint16(14662), + 2598: uint16(6670), + 2599: uint16(14667), + 2600: uint16(14666), + 2601: uint16(14671), + 2602: uint16(14672), + 2603: uint16(14668), + 2604: uint16(4609), + 2605: uint16(14669), + 2606: uint16(14670), + 2607: uint16(10036), + 2608: uint16(10304), + 2609: uint16(5673), + 2610: uint16(14673), + 2611: uint16(7953), + 2612: uint16(7452), + 2613: uint16(8753), + 2614: uint16(5414), + 2615: uint16(14674), + 2616: uint16(14678), + 2617: uint16(4394), + 2618: uint16(14675), + 2619: uint16(14677), + 2620: uint16(14676), + 2621: uint16(7242), + 2622: uint16(8743), + 2623: uint16(3876), + 2624: uint16(14679), + 2625: uint16(14680), + 2626: uint16(8969), + 2627: uint16(11600), + 2628: uint16(6690), + 2629: uint16(10570), + 2630: uint16(10780), + 2631: uint16(14849), + 2632: uint16(14682), + 2633: uint16(14685), + 2634: uint16(14684), + 2635: uint16(14681), + 2636: uint16(14848), + 2637: uint16(9533), + 2638: uint16(14683), + 2639: uint16(14850), + 2640: uint16(7243), + 2641: uint16(14851), + 2642: uint16(11306), + 2643: uint16(9815), + 2644: uint16(14852), + 2645: uint16(14854), + 2646: uint16(14855), + 2647: uint16(14856), + 2648: uint16(5417), + 2649: uint16(4135), + 2650: uint16(6168), + 2651: uint16(14857), + 2652: uint16(14858), + 2653: uint16(7248), + 2654: uint16(8257), + 2655: uint16(12599), + 2656: uint16(8221), + 2657: uint16(8220), + 2658: uint16(8503), + 2659: uint16(6438), + 2660: uint16(12113), + 2661: uint16(5709), + 2662: uint16(11276), + 2663: uint16(10589), + 2664: uint16(10333), + 2665: uint16(14859), + 2666: uint16(6482), + 2667: uint16(8990), + 2668: uint16(14860), + 2669: uint16(11790), + 2670: uint16(10781), + 2671: uint16(8970), + 2672: uint16(14861), + 2673: uint16(4955), + 2674: uint16(14862), + 2675: uint16(14863), + 2676: uint16(11065), + 2677: uint16(11011), + 2678: uint16(10837), + 2679: uint16(10811), + 2680: uint16(6660), + 2681: uint16(14865), + 2682: uint16(6986), + 2683: uint16(10800), + 2684: uint16(14867), + 2685: uint16(14870), + 2686: uint16(14869), + 2687: uint16(4952), + 2688: uint16(5183), + 2689: uint16(14866), + 2690: uint16(14868), + 2691: uint16(14871), + 2692: uint16(7768), + 2693: uint16(11354), + 2694: uint16(3880), + 2695: uint16(6463), + 2696: uint16(8475), + 2697: uint16(6972), + 2698: uint16(7506), + 2699: uint16(14874), + 2700: uint16(9261), + 2701: uint16(14872), + 2702: uint16(8458), + 2703: uint16(14873), + 2704: uint16(7505), + 2705: uint16(11068), + 2706: uint16(14875), + 2707: uint16(14876), + 2708: uint16(11335), + 2709: uint16(14881), + 2710: uint16(6169), + 2711: uint16(9780), + 2712: uint16(14878), + 2713: uint16(9291), + 2714: uint16(14653), + 2715: uint16(14657), + 2716: uint16(5166), + 2717: uint16(9766), + 2718: uint16(14880), + 2719: uint16(7453), + 2720: uint16(10019), + 2721: uint16(14886), + 2722: uint16(10073), + 2723: uint16(14877), + 2724: uint16(14883), + 2725: uint16(14882), + 2726: uint16(7982), + 2727: uint16(10828), + 2728: uint16(11570), + 2729: uint16(10822), + 2730: uint16(4395), + 2731: uint16(6717), + 2732: uint16(11815), + 2733: uint16(14885), + 2734: uint16(7764), + 2735: uint16(14884), + 2736: uint16(14879), + 2737: uint16(5934), + 2738: uint16(14891), + 2739: uint16(14889), + 2740: uint16(4396), + 2741: uint16(14887), + 2742: uint16(14893), + 2743: uint16(14899), + 2744: uint16(8487), + 2745: uint16(10528), + 2746: uint16(14901), + 2747: uint16(10241), + 2748: uint16(14900), + 2749: uint16(9807), + 2750: uint16(10782), + 2751: uint16(4890), + 2752: uint16(8022), + 2753: uint16(7199), + 2754: uint16(9010), + 2755: uint16(11277), + 2756: uint16(14896), + 2757: uint16(14895), + 2758: uint16(14897), + 2759: uint16(14894), + 2760: uint16(14902), + 2761: uint16(14892), + 2762: uint16(14890), + 2763: uint16(14898), + 2764: uint16(14888), + 2765: uint16(8779), + 2766: uint16(11095), + 2767: uint16(6949), + 2768: uint16(6483), + 2769: uint16(6425), + 2770: uint16(10830), + 2771: uint16(4640), + 2772: uint16(9005), + 2773: uint16(9513), + 2774: uint16(4136), + 2775: uint16(8017), + 2776: uint16(7955), + 2777: uint16(5641), + 2778: uint16(14904), + 2779: uint16(6170), + 2780: uint16(4699), + 2781: uint16(14906), + 2782: uint16(4691), + 2783: uint16(14912), + 2784: uint16(14909), + 2785: uint16(8018), + 2786: uint16(4650), + 2787: uint16(6411), + 2788: uint16(4649), + 2789: uint16(6446), + 2790: uint16(14907), + 2791: uint16(5700), + 2792: uint16(5674), + 2793: uint16(9292), + 2794: uint16(14905), + 2795: uint16(3877), + 2796: uint16(14908), + 2797: uint16(14910), + 2798: uint16(5420), + 2799: uint16(5643), + 2800: uint16(4891), + 2801: uint16(5162), + 2802: uint16(14913), + 2803: uint16(6488), + 2804: uint16(10832), + 2805: uint16(6678), + 2806: uint16(14914), + 2807: uint16(10255), + 2808: uint16(14926), + 2809: uint16(4370), + 2810: uint16(14915), + 2811: uint16(14932), + 2812: uint16(14916), + 2813: uint16(11553), + 2814: uint16(14923), + 2815: uint16(9790), + 2816: uint16(14931), + 2817: uint16(14918), + 2818: uint16(3859), + 2819: uint16(14920), + 2820: uint16(6171), + 2821: uint16(14922), + 2822: uint16(14921), + 2823: uint16(14917), + 2824: uint16(14928), + 2825: uint16(7454), + 2826: uint16(13132), + 2827: uint16(5959), + 2828: uint16(11355), + 2829: uint16(14919), + 2830: uint16(9043), + 2831: uint16(4610), + 2832: uint16(6412), + 2833: uint16(14911), + 2834: uint16(14927), + 2835: uint16(4672), + 2836: uint16(14925), + 2837: uint16(14929), + 2838: uint16(9293), + 2839: uint16(4957), + 2840: uint16(15121), + 2841: uint16(11048), + 2842: uint16(14934), + 2843: uint16(4956), + 2844: uint16(14941), + 2845: uint16(10783), + 2846: uint16(15104), + 2847: uint16(15106), + 2848: uint16(15110), + 2849: uint16(14936), + 2850: uint16(8713), + 2851: uint16(9294), + 2852: uint16(15114), + 2853: uint16(14939), + 2854: uint16(15111), + 2855: uint16(15105), + 2856: uint16(7704), + 2857: uint16(15115), + 2858: uint16(7954), + 2859: uint16(15113), + 2860: uint16(4892), + 2861: uint16(11823), + 2862: uint16(14933), + 2863: uint16(15109), + 2864: uint16(3895), + 2865: uint16(14935), + 2866: uint16(11033), + 2867: uint16(14940), + 2868: uint16(7681), + 2869: uint16(8998), + 2870: uint16(14930), + 2871: uint16(15108), + 2872: uint16(7769), + 2873: uint16(15118), + 2874: uint16(4688), + 2875: uint16(5888), + 2876: uint16(15120), + 2877: uint16(14937), + 2878: uint16(15119), + 2879: uint16(15112), + 2880: uint16(14938), + 2881: uint16(15116), + 2882: uint16(15117), + 2883: uint16(15134), + 2884: uint16(9517), + 2885: uint16(15107), + 2886: uint16(15130), + 2887: uint16(15132), + 2888: uint16(9015), + 2889: uint16(11307), + 2890: uint16(10325), + 2891: uint16(15127), + 2892: uint16(8489), + 2893: uint16(15133), + 2894: uint16(8222), + 2895: uint16(15124), + 2896: uint16(15137), + 2897: uint16(15136), + 2898: uint16(9550), + 2899: uint16(15135), + 2900: uint16(9545), + 2901: uint16(15139), + 2902: uint16(15126), + 2903: uint16(5415), + 2904: uint16(15129), + 2905: uint16(7228), + 2906: uint16(9791), + 2907: uint16(15131), + 2908: uint16(5418), + 2909: uint16(15123), + 2910: uint16(15125), + 2911: uint16(15122), + 2912: uint16(11791), + 2913: uint16(4665), + 2914: uint16(15128), + 2915: uint16(15138), + 2916: uint16(4628), + 2917: uint16(6470), + 2918: uint16(4156), + 2919: uint16(15155), + 2920: uint16(11792), + 2921: uint16(15158), + 2922: uint16(7705), + 2923: uint16(15157), + 2924: uint16(15156), + 2925: uint16(15153), + 2926: uint16(15141), + 2927: uint16(15170), + 2928: uint16(15140), + 2929: uint16(15159), + 2930: uint16(15151), + 2931: uint16(15146), + 2932: uint16(15143), + 2933: uint16(15144), + 2934: uint16(15152), + 2935: uint16(21249), + 2936: uint16(15149), + 2937: uint16(6172), + 2938: uint16(8999), + 2939: uint16(8259), + 2940: uint16(15147), + 2941: uint16(15142), + 2942: uint16(15145), + 2943: uint16(11308), + 2944: uint16(10825), + 2945: uint16(15150), + 2946: uint16(15160), + 2947: uint16(15168), + 2948: uint16(15161), + 2949: uint16(15174), + 2950: uint16(15172), + 2951: uint16(15167), + 2952: uint16(15166), + 2953: uint16(9007), + 2954: uint16(8260), + 2955: uint16(15164), + 2956: uint16(15162), + 2957: uint16(15169), + 2958: uint16(15175), + 2959: uint16(10068), + 2960: uint16(15181), + 2961: uint16(15176), + 2962: uint16(15179), + 2963: uint16(15173), + 2964: uint16(8787), + 2965: uint16(10263), + 2966: uint16(15163), + 2967: uint16(15171), + 2968: uint16(7455), + 2969: uint16(11054), + 2970: uint16(15191), + 2971: uint16(15178), + 2972: uint16(5889), + 2973: uint16(4354), + 2974: uint16(4670), + 2975: uint16(15154), + 2976: uint16(7456), + 2977: uint16(15183), + 2978: uint16(15190), + 2979: uint16(7000), + 2980: uint16(4689), + 2981: uint16(8717), + 2982: uint16(15180), + 2983: uint16(15185), + 2984: uint16(15189), + 2985: uint16(5397), + 2986: uint16(5163), + 2987: uint16(15187), + 2988: uint16(5120), + 2989: uint16(9514), + 2990: uint16(15186), + 2991: uint16(15188), + 2992: uint16(15182), + 2993: uint16(15184), + 2994: uint16(4671), + 2995: uint16(8744), + 2996: uint16(15195), + 2997: uint16(15193), + 2998: uint16(5960), + 2999: uint16(15192), + 3000: uint16(15360), + 3001: uint16(14903), + 3002: uint16(15194), + 3003: uint16(15196), + 3004: uint16(15197), + 3005: uint16(15371), + 3006: uint16(15367), + 3007: uint16(14924), + 3008: uint16(15366), + 3009: uint16(15365), + 3010: uint16(15362), + 3011: uint16(15177), + 3012: uint16(15364), + 3013: uint16(15363), + 3014: uint16(15369), + 3015: uint16(11781), + 3016: uint16(15372), + 3017: uint16(5466), + 3018: uint16(15368), + 3019: uint16(15370), + 3020: uint16(9990), + 3021: uint16(15373), + 3022: uint16(15377), + 3023: uint16(15374), + 3024: uint16(11346), + 3025: uint16(15375), + 3026: uint16(15165), + 3027: uint16(15378), + 3028: uint16(15379), + 3029: uint16(4116), + 3030: uint16(15381), + 3031: uint16(5702), + 3032: uint16(6912), + 3033: uint16(5428), + 3034: uint16(4355), + 3035: uint16(11326), + 3036: uint16(15383), + 3037: uint16(15382), + 3038: uint16(15385), + 3039: uint16(5148), + 3040: uint16(5429), + 3041: uint16(4893), + 3042: uint16(15388), + 3043: uint16(15387), + 3044: uint16(15389), + 3045: uint16(4397), + 3046: uint16(8726), + 3047: uint16(15390), + 3048: uint16(4894), + 3049: uint16(15392), + 3050: uint16(15391), + 3051: uint16(15393), + 3052: uint16(15394), + 3053: uint16(15395), + 3054: uint16(6718), + 3055: uint16(7956), + 3056: uint16(6400), + 3057: uint16(10319), + 3058: uint16(10561), + 3059: uint16(11811), + 3060: uint16(6740), + 3061: uint16(6447), + 3062: uint16(11601), + 3063: uint16(15396), + 3064: uint16(15397), + 3065: uint16(6719), + 3066: uint16(15398), + 3067: uint16(15399), + 3068: uint16(15401), + 3069: uint16(15400), + 3070: uint16(10807), + 3071: uint16(7229), + 3072: uint16(6987), + 3073: uint16(6691), + 3074: uint16(15402), + 3075: uint16(15404), + 3076: uint16(7682), + 3077: uint16(15403), + 3078: uint16(15405), + 3079: uint16(15406), + 3080: uint16(15407), + 3081: uint16(15408), + 3082: uint16(15409), + 3083: uint16(15411), + 3084: uint16(15410), + 3085: uint16(15412), + 3086: uint16(4356), + 3087: uint16(8745), + 3088: uint16(15413), + 3089: uint16(6661), + 3090: uint16(4651), + 3091: uint16(15414), + 3092: uint16(9249), + 3093: uint16(13099), + 3094: uint16(5122), + 3095: uint16(15415), + 3096: uint16(15416), + 3097: uint16(10571), + 3098: uint16(10823), + 3099: uint16(9510), + 3100: uint16(15417), + 3101: uint16(10053), + 3102: uint16(10074), + 3103: uint16(11058), + 3104: uint16(15418), + 3105: uint16(15420), + 3106: uint16(15419), + 3107: uint16(15422), + 3108: uint16(15421), + 3109: uint16(15424), + 3110: uint16(6720), + 3111: uint16(11024), + 3112: uint16(15425), + 3113: uint16(15426), + 3114: uint16(5123), + 3115: uint16(15427), + 3116: uint16(15429), + 3117: uint16(15428), + 3118: uint16(7748), + 3119: uint16(10264), + 3120: uint16(4137), + 3121: uint16(10020), + 3122: uint16(9044), + 3123: uint16(7200), + 3124: uint16(5184), + 3125: uint16(10021), + 3126: uint16(6925), + 3127: uint16(15431), + 3128: uint16(4895), + 3129: uint16(4183), + 3130: uint16(9553), + 3131: uint16(15430), + 3132: uint16(6173), + 3133: uint16(8754), + 3134: uint16(15432), + 3135: uint16(15440), + 3136: uint16(15433), + 3137: uint16(8480), + 3138: uint16(5185), + 3139: uint16(15441), + 3140: uint16(5703), + 3141: uint16(5124), + 3142: uint16(15439), + 3143: uint16(15437), + 3144: uint16(15434), + 3145: uint16(11327), + 3146: uint16(8991), + 3147: uint16(9528), + 3148: uint16(15435), + 3149: uint16(15443), + 3150: uint16(15442), + 3151: uint16(5634), + 3152: uint16(4364), + 3153: uint16(6426), + 3154: uint16(15436), + 3155: uint16(15438), + 3156: uint16(10806), + 3157: uint16(8531), + 3158: uint16(10838), + 3159: uint16(15451), + 3160: uint16(15452), + 3161: uint16(4398), + 3162: uint16(10503), + 3163: uint16(11100), + 3164: uint16(15616), + 3165: uint16(6914), + 3166: uint16(7457), + 3167: uint16(15447), + 3168: uint16(15453), + 3169: uint16(4167), + 3170: uint16(5398), + 3171: uint16(15444), + 3172: uint16(15449), + 3173: uint16(8019), + 3174: uint16(9808), + 3175: uint16(10054), + 3176: uint16(15446), + 3177: uint16(10752), + 3178: uint16(15448), + 3179: uint16(15619), + 3180: uint16(15617), + 3181: uint16(15450), + 3182: uint16(10753), + 3183: uint16(9767), + 3184: uint16(5186), + 3185: uint16(9220), + 3186: uint16(8780), + 3187: uint16(15620), + 3188: uint16(15618), + 3189: uint16(8504), + 3190: uint16(15445), + 3191: uint16(4138), + 3192: uint16(11309), + 3193: uint16(15631), + 3194: uint16(15630), + 3195: uint16(8021), + 3196: uint16(15627), + 3197: uint16(11339), + 3198: uint16(9493), + 3199: uint16(15621), + 3200: uint16(8996), + 3201: uint16(4139), + 3202: uint16(6174), + 3203: uint16(15624), + 3204: uint16(7174), + 3205: uint16(15629), + 3206: uint16(15628), + 3207: uint16(15623), + 3208: uint16(15626), + 3209: uint16(4679), + 3210: uint16(15625), + 3211: uint16(9768), + 3212: uint16(11533), + 3213: uint16(7507), + 3214: uint16(8020), + 3215: uint16(15637), + 3216: uint16(15635), + 3217: uint16(10284), + 3218: uint16(15632), + 3219: uint16(15634), + 3220: uint16(4121), + 3221: uint16(6175), + 3222: uint16(11793), + 3223: uint16(4636), + 3224: uint16(10305), + 3225: uint16(11328), + 3226: uint16(4611), + 3227: uint16(7706), + 3228: uint16(15636), + 3229: uint16(15641), + 3230: uint16(7458), + 3231: uint16(11279), + 3232: uint16(15638), + 3233: uint16(15633), + 3234: uint16(15639), + 3235: uint16(11581), + 3236: uint16(9298), + 3237: uint16(9505), + 3238: uint16(4629), + 3239: uint16(4148), + 3240: uint16(15645), + 3241: uint16(15648), + 3242: uint16(11554), + 3243: uint16(11331), + 3244: uint16(15655), + 3245: uint16(15649), + 3246: uint16(15646), + 3247: uint16(11571), + 3248: uint16(15652), + 3249: uint16(7209), + 3250: uint16(15654), + 3251: uint16(15659), + 3252: uint16(9296), + 3253: uint16(15657), + 3254: uint16(15651), + 3255: uint16(8727), + 3256: uint16(15658), + 3257: uint16(15647), + 3258: uint16(15653), + 3259: uint16(15660), + 3260: uint16(3931), + 3261: uint16(15650), + 3262: uint16(15661), + 3263: uint16(7707), + 3264: uint16(7230), + 3265: uint16(10500), + 3266: uint16(6413), + 3267: uint16(15642), + 3268: uint16(15656), + 3269: uint16(9241), + 3270: uint16(7957), + 3271: uint16(4680), + 3272: uint16(6448), + 3273: uint16(7459), + 3274: uint16(15644), + 3275: uint16(7201), + 3276: uint16(5675), + 3277: uint16(15643), + 3278: uint16(15665), + 3279: uint16(7244), + 3280: uint16(5913), + 3281: uint16(15680), + 3282: uint16(15674), + 3283: uint16(5203), + 3284: uint16(9262), + 3285: uint16(15669), + 3286: uint16(15678), + 3287: uint16(3854), + 3288: uint16(4113), + 3289: uint16(4376), + 3290: uint16(15671), + 3291: uint16(8459), + 3292: uint16(15662), + 3293: uint16(15664), + 3294: uint16(6176), + 3295: uint16(15681), + 3296: uint16(15676), + 3297: uint16(15668), + 3298: uint16(15675), + 3299: uint16(11018), + 3300: uint16(15673), + 3301: uint16(15677), + 3302: uint16(5935), + 3303: uint16(7460), + 3304: uint16(8728), + 3305: uint16(15667), + 3306: uint16(11278), + 3307: uint16(15670), + 3308: uint16(15663), + 3309: uint16(9297), + 3310: uint16(15666), + 3311: uint16(15672), + 3312: uint16(11824), + 3313: uint16(6941), + 3314: uint16(10845), + 3315: uint16(15682), + 3316: uint16(9997), + 3317: uint16(15694), + 3318: uint16(5914), + 3319: uint16(7231), + 3320: uint16(15684), + 3321: uint16(11534), + 3322: uint16(6177), + 3323: uint16(15697), + 3324: uint16(3917), + 3325: uint16(15695), + 3326: uint16(15683), + 3327: uint16(15689), + 3328: uint16(15691), + 3329: uint16(11310), + 3330: uint16(15686), + 3331: uint16(9229), + 3332: uint16(15688), + 3333: uint16(15696), + 3334: uint16(15690), + 3335: uint16(11046), + 3336: uint16(15685), + 3337: uint16(6913), + 3338: uint16(15709), + 3339: uint16(4681), + 3340: uint16(15687), + 3341: uint16(15692), + 3342: uint16(15693), + 3343: uint16(8523), + 3344: uint16(8505), + 3345: uint16(15701), + 3346: uint16(15707), + 3347: uint16(15705), + 3348: uint16(9224), + 3349: uint16(15874), + 3350: uint16(15702), + 3351: uint16(15703), + 3352: uint16(15679), + 3353: uint16(5208), + 3354: uint16(10265), + 3355: uint16(6942), + 3356: uint16(6230), + 3357: uint16(11794), + 3358: uint16(15699), + 3359: uint16(15873), + 3360: uint16(4168), + 3361: uint16(8261), + 3362: uint16(9816), + 3363: uint16(4896), + 3364: uint16(11609), + 3365: uint16(11008), + 3366: uint16(9009), + 3367: uint16(15706), + 3368: uint16(15708), + 3369: uint16(8209), + 3370: uint16(15872), + 3371: uint16(15704), + 3372: uint16(15698), + 3373: uint16(4898), + 3374: uint16(5704), + 3375: uint16(15886), + 3376: uint16(15881), + 3377: uint16(8023), + 3378: uint16(4674), + 3379: uint16(7232), + 3380: uint16(15890), + 3381: uint16(15883), + 3382: uint16(8971), + 3383: uint16(15880), + 3384: uint16(9016), + 3385: uint16(15915), + 3386: uint16(15877), + 3387: uint16(15876), + 3388: uint16(15885), + 3389: uint16(15879), + 3390: uint16(15878), + 3391: uint16(15884), + 3392: uint16(7936), + 3393: uint16(15875), + 3394: uint16(15887), + 3395: uint16(15888), + 3396: uint16(4897), + 3397: uint16(15893), + 3398: uint16(15892), + 3399: uint16(15894), + 3400: uint16(15897), + 3401: uint16(9250), + 3402: uint16(15891), + 3403: uint16(15895), + 3404: uint16(5698), + 3405: uint16(8536), + 3406: uint16(15889), + 3407: uint16(9754), + 3408: uint16(15896), + 3409: uint16(15901), + 3410: uint16(15899), + 3411: uint16(15902), + 3412: uint16(15905), + 3413: uint16(15898), + 3414: uint16(6217), + 3415: uint16(9735), + 3416: uint16(15640), + 3417: uint16(11347), + 3418: uint16(15900), + 3419: uint16(15904), + 3420: uint16(8532), + 3421: uint16(15903), + 3422: uint16(15882), + 3423: uint16(20040), + 3424: uint16(15908), + 3425: uint16(15912), + 3426: uint16(15910), + 3427: uint16(15906), + 3428: uint16(15907), + 3429: uint16(15911), + 3430: uint16(15909), + 3431: uint16(10285), + 3432: uint16(15917), + 3433: uint16(15914), + 3434: uint16(15913), + 3435: uint16(15916), + 3436: uint16(9523), + 3437: uint16(15918), + 3438: uint16(8788), + 3439: uint16(8524), + 3440: uint16(7940), + 3441: uint16(15919), + 3442: uint16(15921), + 3443: uint16(15920), + 3444: uint16(15700), + 3445: uint16(15922), + 3446: uint16(9542), + 3447: uint16(15923), + 3448: uint16(4399), + 3449: uint16(9299), + 3450: uint16(4612), + 3451: uint16(5187), + 3452: uint16(6973), + 3453: uint16(6449), + 3454: uint16(11782), + 3455: uint16(7749), + 3456: uint16(4169), + 3457: uint16(15925), + 3458: uint16(15924), + 3459: uint16(15928), + 3460: uint16(8729), + 3461: uint16(15931), + 3462: uint16(15926), + 3463: uint16(15930), + 3464: uint16(15929), + 3465: uint16(9247), + 3466: uint16(3896), + 3467: uint16(11604), + 3468: uint16(15933), + 3469: uint16(4103), + 3470: uint16(15935), + 3471: uint16(15934), + 3472: uint16(15932), + 3473: uint16(15927), + 3474: uint16(10754), + 3475: uint16(15937), + 3476: uint16(15936), + 3477: uint16(4170), + 3478: uint16(15939), + 3479: uint16(10513), + 3480: uint16(15938), + 3481: uint16(11028), + 3482: uint16(7462), + 3483: uint16(8210), + 3484: uint16(7461), + 3485: uint16(11610), + 3486: uint16(15945), + 3487: uint16(8024), + 3488: uint16(15941), + 3489: uint16(15946), + 3490: uint16(4171), + 3491: uint16(15944), + 3492: uint16(9792), + 3493: uint16(15940), + 3494: uint16(15943), + 3495: uint16(7463), + 3496: uint16(10032), + 3497: uint16(15947), + 3498: uint16(6960), + 3499: uint16(8025), + 3500: uint16(15950), + 3501: uint16(15942), + 3502: uint16(5638), + 3503: uint16(15948), + 3504: uint16(11311), + 3505: uint16(15951), + 3506: uint16(21253), + 3507: uint16(7214), + 3508: uint16(15952), + 3509: uint16(15953), + 3510: uint16(9741), + 3511: uint16(15955), + 3512: uint16(15956), + 3513: uint16(9746), + 3514: uint16(9300), + 3515: uint16(15958), + 3516: uint16(15960), + 3517: uint16(11572), + 3518: uint16(15957), + 3519: uint16(15959), + 3520: uint16(4172), + 3521: uint16(15954), + 3522: uint16(12858), + 3523: uint16(15961), + 3524: uint16(8262), + 3525: uint16(6679), + 3526: uint16(15963), + 3527: uint16(15962), + 3528: uint16(7683), + 3529: uint16(12600), + 3530: uint16(15964), + 3531: uint16(16128), + 3532: uint16(15949), + 3533: uint16(15965), + 3534: uint16(16129), + 3535: uint16(9817), + 3536: uint16(16130), + 3537: uint16(16131), + 3538: uint16(16132), + 3539: uint16(16133), + 3540: uint16(9021), + 3541: uint16(16135), + 3542: uint16(16134), + 3543: uint16(16136), + 3544: uint16(16137), + 3545: uint16(6974), + 3546: uint16(10306), + 3547: uint16(11083), + 3548: uint16(16138), + 3549: uint16(16139), + 3550: uint16(8245), + 3551: uint16(6915), + 3552: uint16(16140), + 3553: uint16(16141), + 3554: uint16(16142), + 3555: uint16(10545), + 3556: uint16(10022), + 3557: uint16(16143), + 3558: uint16(9782), + 3559: uint16(8972), + 3560: uint16(16144), + 3561: uint16(4422), + 3562: uint16(5196), + 3563: uint16(11045), + 3564: uint16(11029), + 3565: uint16(4371), + 3566: uint16(11795), + 3567: uint16(10801), + 3568: uint16(10505), + 3569: uint16(7958), + 3570: uint16(16145), + 3571: uint16(9506), + 3572: uint16(5890), + 3573: uint16(16146), + 3574: uint16(6451), + 3575: uint16(16148), + 3576: uint16(16147), + 3577: uint16(16149), + 3578: uint16(16150), + 3579: uint16(16151), + 3580: uint16(5149), + 3581: uint16(16152), + 3582: uint16(16153), + 3583: uint16(5891), + 3584: uint16(10023), + 3585: uint16(16155), + 3586: uint16(7508), + 3587: uint16(16154), + 3588: uint16(5399), + 3589: uint16(16156), + 3590: uint16(16158), + 3591: uint16(16157), + 3592: uint16(16159), + 3593: uint16(5936), + 3594: uint16(16160), + 3595: uint16(5448), + 3596: uint16(8223), + 3597: uint16(6236), + 3598: uint16(16162), + 3599: uint16(16163), + 3600: uint16(16161), + 3601: uint16(6988), + 3602: uint16(9511), + 3603: uint16(5400), + 3604: uint16(16165), + 3605: uint16(8715), + 3606: uint16(16164), + 3607: uint16(11796), + 3608: uint16(9793), + 3609: uint16(16168), + 3610: uint16(16170), + 3611: uint16(16167), + 3612: uint16(11059), + 3613: uint16(16169), + 3614: uint16(16171), + 3615: uint16(11555), + 3616: uint16(16175), + 3617: uint16(16174), + 3618: uint16(8789), + 3619: uint16(9740), + 3620: uint16(5892), + 3621: uint16(16173), + 3622: uint16(16172), + 3623: uint16(11280), + 3624: uint16(11281), + 3625: uint16(16176), + 3626: uint16(4173), + 3627: uint16(6229), + 3628: uint16(6721), + 3629: uint16(16177), + 3630: uint16(16178), + 3631: uint16(16180), + 3632: uint16(7202), + 3633: uint16(16182), + 3634: uint16(16181), + 3635: uint16(16183), + 3636: uint16(4652), + 3637: uint16(16185), + 3638: uint16(16184), + 3639: uint16(16187), + 3640: uint16(16186), + 3641: uint16(5915), + 3642: uint16(11527), + 3643: uint16(5419), + 3644: uint16(4357), + 3645: uint16(5449), + 3646: uint16(4928), + 3647: uint16(11591), + 3648: uint16(16189), + 3649: uint16(16191), + 3650: uint16(16192), + 3651: uint16(4400), + 3652: uint16(16188), + 3653: uint16(6680), + 3654: uint16(8992), + 3655: uint16(16190), + 3656: uint16(16195), + 3657: uint16(6989), + 3658: uint16(16193), + 3659: uint16(5661), + 3660: uint16(10024), + 3661: uint16(16194), + 3662: uint16(16221), + 3663: uint16(16200), + 3664: uint16(5916), + 3665: uint16(5188), + 3666: uint16(16197), + 3667: uint16(11356), + 3668: uint16(11535), + 3669: uint16(8533), + 3670: uint16(16199), + 3671: uint16(16201), + 3672: uint16(11573), + 3673: uint16(5430), + 3674: uint16(10075), + 3675: uint16(9769), + 3676: uint16(16202), + 3677: uint16(16204), + 3678: uint16(16207), + 3679: uint16(16203), + 3680: uint16(16206), + 3681: uint16(5961), + 3682: uint16(4140), + 3683: uint16(16208), + 3684: uint16(7759), + 3685: uint16(16205), + 3686: uint16(11579), + 3687: uint16(16211), + 3688: uint16(21251), + 3689: uint16(16209), + 3690: uint16(16212), + 3691: uint16(16198), + 3692: uint16(16210), + 3693: uint16(6427), + 3694: uint16(16213), + 3695: uint16(16214), + 3696: uint16(11357), + 3697: uint16(16215), + 3698: uint16(16216), + 3699: uint16(16196), + 3700: uint16(16217), + 3701: uint16(4899), + 3702: uint16(6916), + 3703: uint16(16218), + 3704: uint16(16219), + 3705: uint16(16220), + 3706: uint16(4122), + 3707: uint16(16384), + 3708: uint16(10266), + 3709: uint16(16385), + 3710: uint16(4867), + 3711: uint16(16386), + 3712: uint16(16387), + 3713: uint16(16388), + 3714: uint16(16390), + 3715: uint16(16391), + 3716: uint16(16389), + 3717: uint16(10290), + 3718: uint16(16393), + 3719: uint16(16392), + 3720: uint16(16395), + 3721: uint16(16394), + 3722: uint16(16396), + 3723: uint16(16397), + 3724: uint16(16399), + 3725: uint16(16398), + 3726: uint16(6232), + 3727: uint16(16401), + 3728: uint16(16400), + 3729: uint16(4900), + 3730: uint16(7730), + 3731: uint16(9243), + 3732: uint16(16402), + 3733: uint16(7959), + 3734: uint16(6681), + 3735: uint16(4184), + 3736: uint16(16403), + 3737: uint16(11312), + 3738: uint16(10562), + 3739: uint16(16404), + 3740: uint16(9251), + 3741: uint16(11282), + 3742: uint16(6178), + 3743: uint16(7708), + 3744: uint16(8746), + 3745: uint16(12563), + 3746: uint16(8973), + 3747: uint16(4423), + 3748: uint16(16405), + 3749: uint16(16406), + 3750: uint16(16411), + 3751: uint16(16409), + 3752: uint16(16408), + 3753: uint16(14625), + 3754: uint16(4613), + 3755: uint16(16407), + 3756: uint16(3897), + 3757: uint16(9993), + 3758: uint16(10025), + 3759: uint16(11536), + 3760: uint16(16412), + 3761: uint16(16410), + 3762: uint16(8763), + 3763: uint16(7941), + 3764: uint16(9994), + 3765: uint16(10252), + 3766: uint16(16414), + 3767: uint16(11531), + 3768: uint16(5676), + 3769: uint16(16415), + 3770: uint16(16413), + 3771: uint16(10037), + 3772: uint16(16416), + 3773: uint16(16417), + 3774: uint16(3898), + 3775: uint16(7509), + 3776: uint16(16422), + 3777: uint16(16419), + 3778: uint16(9548), + 3779: uint16(16418), + 3780: uint16(5125), + 3781: uint16(16425), + 3782: uint16(16420), + 3783: uint16(16421), + 3784: uint16(16424), + 3785: uint16(16423), + 3786: uint16(10244), + 3787: uint16(8225), + 3788: uint16(8224), + 3789: uint16(5150), + 3790: uint16(16426), + 3791: uint16(16427), + 3792: uint16(16428), + 3793: uint16(16430), + 3794: uint16(16429), + 3795: uint16(4149), + 3796: uint16(16438), + 3797: uint16(10055), + 3798: uint16(16432), + 3799: uint16(16434), + 3800: uint16(16436), + 3801: uint16(7709), + 3802: uint16(16437), + 3803: uint16(16435), + 3804: uint16(6943), + 3805: uint16(16431), + 3806: uint16(16433), + 3807: uint16(10273), + 3808: uint16(7464), + 3809: uint16(16440), + 3810: uint16(16439), + 3811: uint16(16441), + 3812: uint16(6917), + 3813: uint16(6414), + 3814: uint16(9302), + 3815: uint16(16442), + 3816: uint16(9002), + 3817: uint16(16444), + 3818: uint16(11520), + 3819: uint16(16443), + 3820: uint16(8264), + 3821: uint16(16449), + 3822: uint16(16451), + 3823: uint16(16452), + 3824: uint16(8755), + 3825: uint16(16450), + 3826: uint16(16447), + 3827: uint16(16445), + 3828: uint16(16446), + 3829: uint16(16448), + 3830: uint16(16455), + 3831: uint16(16453), + 3832: uint16(16454), + 3833: uint16(16456), + 3834: uint16(16458), + 3835: uint16(16459), + 3836: uint16(16460), + 3837: uint16(16461), + 3838: uint16(16457), + 3839: uint16(16463), + 3840: uint16(16462), + 3841: uint16(16464), + 3842: uint16(11556), + 3843: uint16(16467), + 3844: uint16(16465), + 3845: uint16(16466), + 3846: uint16(4929), + 3847: uint16(11101), + 3848: uint16(10537), + 3849: uint16(16469), + 3850: uint16(16468), + 3851: uint16(16470), + 3852: uint16(16471), + 3853: uint16(16475), + 3854: uint16(16472), + 3855: uint16(16473), + 3856: uint16(16474), + 3857: uint16(16476), + 3858: uint16(16477), + 3859: uint16(16640), + 3860: uint16(16641), + 3861: uint16(16642), + 3862: uint16(9998), + 3863: uint16(9263), + 3864: uint16(16643), + 3865: uint16(9809), + 3866: uint16(10259), + 3867: uint16(16644), + 3868: uint16(16645), + 3869: uint16(9225), + 3870: uint16(4614), + 3871: uint16(6179), + 3872: uint16(16646), + 3873: uint16(16647), + 3874: uint16(16648), + 3875: uint16(6664), + 3876: uint16(16650), + 3877: uint16(16649), + 3878: uint16(16651), + 3879: uint16(16652), + 3880: uint16(10056), + 3881: uint16(16653), + 3882: uint16(16654), + 3883: uint16(21064), + 3884: uint16(16655), + 3885: uint16(16656), + 3886: uint16(16657), + 3887: uint16(6669), + 3888: uint16(16658), + 3889: uint16(9781), + 3890: uint16(10814), + 3891: uint16(4141), + 3892: uint16(4150), + 3893: uint16(16659), + 3894: uint16(16661), + 3895: uint16(16660), + 3896: uint16(9295), + 3897: uint16(7960), + 3898: uint16(15384), + 3899: uint16(16662), + 3900: uint16(11040), + 3901: uint16(16663), + 3902: uint16(4901), + 3903: uint16(10038), + 3904: uint16(16664), + 3905: uint16(16665), + 3906: uint16(16666), + 3907: uint16(11067), + 3908: uint16(11060), + 3909: uint16(8989), + 3910: uint16(8265), + 3911: uint16(16668), + 3912: uint16(7233), + 3913: uint16(7465), + 3914: uint16(16671), + 3915: uint16(16670), + 3916: uint16(16669), + 3917: uint16(10076), + 3918: uint16(4902), + 3919: uint16(5896), + 3920: uint16(16677), + 3921: uint16(16674), + 3922: uint16(7710), + 3923: uint16(11025), + 3924: uint16(16673), + 3925: uint16(16675), + 3926: uint16(16676), + 3927: uint16(16672), + 3928: uint16(16678), + 3929: uint16(16679), + 3930: uint16(8974), + 3931: uint16(4930), + 3932: uint16(8772), + 3933: uint16(16680), + 3934: uint16(16681), + 3935: uint16(16684), + 3936: uint16(7750), + 3937: uint16(9507), + 3938: uint16(16685), + 3939: uint16(10802), + 3940: uint16(16682), + 3941: uint16(16683), + 3942: uint16(16688), + 3943: uint16(16687), + 3944: uint16(16686), + 3945: uint16(16690), + 3946: uint16(16689), + 3947: uint16(16691), + 3948: uint16(16693), + 3949: uint16(16692), + 3950: uint16(10540), + 3951: uint16(7221), + 3952: uint16(11557), + 3953: uint16(16694), + 3954: uint16(9494), + 3955: uint16(16695), + 3956: uint16(16696), + 3957: uint16(16700), + 3958: uint16(16698), + 3959: uint16(16699), + 3960: uint16(16697), + 3961: uint16(16701), + 3962: uint16(16702), + 3963: uint16(16703), + 3964: uint16(16704), + 3965: uint16(11030), + 3966: uint16(16705), + 3967: uint16(11087), + 3968: uint16(16706), + 3969: uint16(8749), + 3970: uint16(9801), + 3971: uint16(5450), + 3972: uint16(8730), + 3973: uint16(16707), + 3974: uint16(5401), + 3975: uint16(7983), + 3976: uint16(16708), + 3977: uint16(6428), + 3978: uint16(16709), + 3979: uint16(16710), + 3980: uint16(5893), + 3981: uint16(6452), + 3982: uint16(16712), + 3983: uint16(9269), + 3984: uint16(6453), + 3985: uint16(5165), + 3986: uint16(10755), + 3987: uint16(9770), + 3988: uint16(9270), + 3989: uint16(6203), + 3990: uint16(16714), + 3991: uint16(7466), + 3992: uint16(11537), + 3993: uint16(6180), + 3994: uint16(5894), + 3995: uint16(9986), + 3996: uint16(16716), + 3997: uint16(16718), + 3998: uint16(5962), + 3999: uint16(16717), + 4000: uint16(9045), + 4001: uint16(16720), + 4002: uint16(4630), + 4003: uint16(16715), + 4004: uint16(10057), + 4005: uint16(4111), + 4006: uint16(6475), + 4007: uint16(11825), + 4008: uint16(16719), + 4009: uint16(16721), + 4010: uint16(10538), + 4011: uint16(7992), + 4012: uint16(16723), + 4013: uint16(16724), + 4014: uint16(16722), + 4015: uint16(4653), + 4016: uint16(16730), + 4017: uint16(16729), + 4018: uint16(6918), + 4019: uint16(16731), + 4020: uint16(16726), + 4021: uint16(16732), + 4022: uint16(16727), + 4023: uint16(10039), + 4024: uint16(16725), + 4025: uint16(16728), + 4026: uint16(16897), + 4027: uint16(16896), + 4028: uint16(10816), + 4029: uint16(16733), + 4030: uint16(3914), + 4031: uint16(16899), + 4032: uint16(16898), + 4033: uint16(7467), + 4034: uint16(16900), + 4035: uint16(8226), + 4036: uint16(16902), + 4037: uint16(16901), + 4038: uint16(16903), + 4039: uint16(16711), + 4040: uint16(16713), + 4041: uint16(16905), + 4042: uint16(16904), + 4043: uint16(6919), + 4044: uint16(11592), + 4045: uint16(6961), + 4046: uint16(16906), + 4047: uint16(5654), + 4048: uint16(5151), + 4049: uint16(5126), + 4050: uint16(6722), + 4051: uint16(11283), + 4052: uint16(16912), + 4053: uint16(16911), + 4054: uint16(8227), + 4055: uint16(16908), + 4056: uint16(16910), + 4057: uint16(7210), + 4058: uint16(7711), + 4059: uint16(16909), + 4060: uint16(16907), + 4061: uint16(9737), + 4062: uint16(7468), + 4063: uint16(10267), + 4064: uint16(6454), + 4065: uint16(9303), + 4066: uint16(16913), + 4067: uint16(16914), + 4068: uint16(16936), + 4069: uint16(5431), + 4070: uint16(11804), + 4071: uint16(8212), + 4072: uint16(16915), + 4073: uint16(4401), + 4074: uint16(9046), + 4075: uint16(10496), + 4076: uint16(16916), + 4077: uint16(5209), + 4078: uint16(16917), + 4079: uint16(16919), + 4080: uint16(16920), + 4081: uint16(9736), + 4082: uint16(16921), + 4083: uint16(16922), + 4084: uint16(16923), + 4085: uint16(5432), + 4086: uint16(4402), + 4087: uint16(9508), + 4088: uint16(7175), + 4089: uint16(6723), + 4090: uint16(16924), + 4091: uint16(7176), + 4092: uint16(4393), + 4093: uint16(10274), + 4094: uint16(16925), + 4095: uint16(10058), + 4096: uint16(8228), + 4097: uint16(16928), + 4098: uint16(16929), + 4099: uint16(9800), + 4100: uint16(7712), + 4101: uint16(16926), + 4102: uint16(8768), + 4103: uint16(16927), + 4104: uint16(7469), + 4105: uint16(3899), + 4106: uint16(5128), + 4107: uint16(16930), + 4108: uint16(9047), + 4109: uint16(16931), + 4110: uint16(7974), + 4111: uint16(11020), + 4112: uint16(10242), + 4113: uint16(16932), + 4114: uint16(16933), + 4115: uint16(8756), + 4116: uint16(11558), + 4117: uint16(16935), + 4118: uint16(16934), + 4119: uint16(6990), + 4120: uint16(16937), + 4121: uint16(3919), + 4122: uint16(16940), + 4123: uint16(16938), + 4124: uint16(4403), + 4125: uint16(5677), + 4126: uint16(16939), + 4127: uint16(6181), + 4128: uint16(6225), + 4129: uint16(10565), + 4130: uint16(16941), + 4131: uint16(10803), + 4132: uint16(16943), + 4133: uint16(7984), + 4134: uint16(4142), + 4135: uint16(4377), + 4136: uint16(3851), + 4137: uint16(16942), + 4138: uint16(16944), + 4139: uint16(16945), + 4140: uint16(7510), + 4141: uint16(16946), + 4142: uint16(4654), + 4143: uint16(16948), + 4144: uint16(5705), + 4145: uint16(5189), + 4146: uint16(16949), + 4147: uint16(5460), + 4148: uint16(16950), + 4149: uint16(8027), + 4150: uint16(9516), + 4151: uint16(7999), + 4152: uint16(6484), + 4153: uint16(16951), + 4154: uint16(8769), + 4155: uint16(8266), + 4156: uint16(16953), + 4157: uint16(16955), + 4158: uint16(16952), + 4159: uint16(16954), + 4160: uint16(5633), + 4161: uint16(16956), + 4162: uint16(5637), + 4163: uint16(5190), + 4164: uint16(11313), + 4165: uint16(16958), + 4166: uint16(16959), + 4167: uint16(4109), + 4168: uint16(16962), + 4169: uint16(4693), + 4170: uint16(16961), + 4171: uint16(16960), + 4172: uint16(16964), + 4173: uint16(16957), + 4174: uint16(16965), + 4175: uint16(11528), + 4176: uint16(16966), + 4177: uint16(16967), + 4178: uint16(13139), + 4179: uint16(16969), + 4180: uint16(16968), + 4181: uint16(16970), + 4182: uint16(16971), + 4183: uint16(11540), + 4184: uint16(16972), + 4185: uint16(20302), + 4186: uint16(7470), + 4187: uint16(16973), + 4188: uint16(16974), + 4189: uint16(7222), + 4190: uint16(9495), + 4191: uint16(16975), + 4192: uint16(8711), + 4193: uint16(16976), + 4194: uint16(8731), + 4195: uint16(16977), + 4196: uint16(5380), + 4197: uint16(12318), + 4198: uint16(8764), + 4199: uint16(6930), + 4200: uint16(4903), + 4201: uint16(16978), + 4202: uint16(17153), + 4203: uint16(16981), + 4204: uint16(5191), + 4205: uint16(16980), + 4206: uint16(17155), + 4207: uint16(16979), + 4208: uint16(7471), + 4209: uint16(16983), + 4210: uint16(16984), + 4211: uint16(9226), + 4212: uint16(16985), + 4213: uint16(4669), + 4214: uint16(7737), + 4215: uint16(10307), + 4216: uint16(16987), + 4217: uint16(8519), + 4218: uint16(16982), + 4219: uint16(16986), + 4220: uint16(16988), + 4221: uint16(6490), + 4222: uint16(17157), + 4223: uint16(10253), + 4224: uint16(9989), + 4225: uint16(9304), + 4226: uint16(5433), + 4227: uint16(17156), + 4228: uint16(17154), + 4229: uint16(10004), + 4230: uint16(16989), + 4231: uint16(8765), + 4232: uint16(9306), + 4233: uint16(9305), + 4234: uint16(6485), + 4235: uint16(17175), + 4236: uint16(17159), + 4237: uint16(17161), + 4238: uint16(17164), + 4239: uint16(17165), + 4240: uint16(17162), + 4241: uint16(17163), + 4242: uint16(17160), + 4243: uint16(17158), + 4244: uint16(17152), + 4245: uint16(10542), + 4246: uint16(4404), + 4247: uint16(17172), + 4248: uint16(17169), + 4249: uint16(17174), + 4250: uint16(17173), + 4251: uint16(9810), + 4252: uint16(11014), + 4253: uint16(6682), + 4254: uint16(17167), + 4255: uint16(17176), + 4256: uint16(17171), + 4257: uint16(17170), + 4258: uint16(17166), + 4259: uint16(17168), + 4260: uint16(4904), + 4261: uint16(8732), + 4262: uint16(8028), + 4263: uint16(9985), + 4264: uint16(17181), + 4265: uint16(9987), + 4266: uint16(8000), + 4267: uint16(17178), + 4268: uint16(10030), + 4269: uint16(17182), + 4270: uint16(10546), + 4271: uint16(8762), + 4272: uint16(17177), + 4273: uint16(17179), + 4274: uint16(17180), + 4275: uint16(17183), + 4276: uint16(6947), + 4277: uint16(9509), + 4278: uint16(17188), + 4279: uint16(17187), + 4280: uint16(17184), + 4281: uint16(11797), + 4282: uint16(17193), + 4283: uint16(17197), + 4284: uint16(17194), + 4285: uint16(17190), + 4286: uint16(17191), + 4287: uint16(17196), + 4288: uint16(17185), + 4289: uint16(12596), + 4290: uint16(17192), + 4291: uint16(17186), + 4292: uint16(17195), + 4293: uint16(17201), + 4294: uint16(4905), + 4295: uint16(17198), + 4296: uint16(17199), + 4297: uint16(17200), + 4298: uint16(17203), + 4299: uint16(17202), + 4300: uint16(10069), + 4301: uint16(17204), + 4302: uint16(11611), + 4303: uint16(10572), + 4304: uint16(17209), + 4305: uint16(17206), + 4306: uint16(17205), + 4307: uint16(7985), + 4308: uint16(17208), + 4309: uint16(17210), + 4310: uint16(17207), + 4311: uint16(17214), + 4312: uint16(17211), + 4313: uint16(17212), + 4314: uint16(17189), + 4315: uint16(17213), + 4316: uint16(17215), + 4317: uint16(17216), + 4318: uint16(10533), + 4319: uint16(17217), + 4320: uint16(11073), + 4321: uint16(5421), + 4322: uint16(5640), + 4323: uint16(17218), + 4324: uint16(10515), + 4325: uint16(7751), + 4326: uint16(11023), + 4327: uint16(17219), + 4328: uint16(11538), + 4329: uint16(9811), + 4330: uint16(8229), + 4331: uint16(9747), + 4332: uint16(7212), + 4333: uint16(3871), + 4334: uint16(17224), + 4335: uint16(17222), + 4336: uint16(17220), + 4337: uint16(4864), + 4338: uint16(7472), + 4339: uint16(17225), + 4340: uint16(17223), + 4341: uint16(17221), + 4342: uint16(17229), + 4343: uint16(17228), + 4344: uint16(17227), + 4345: uint16(17226), + 4346: uint16(17230), + 4347: uint16(17231), + 4348: uint16(7961), + 4349: uint16(17232), + 4350: uint16(17234), + 4351: uint16(17233), + 4352: uint16(5937), + 4353: uint16(8215), + 4354: uint16(17236), + 4355: uint16(9307), + 4356: uint16(17235), + 4357: uint16(17237), + 4358: uint16(10516), + 4359: uint16(8267), + 4360: uint16(6182), + 4361: uint16(17238), + 4362: uint16(11559), + 4363: uint16(17240), + 4364: uint16(17241), + 4365: uint16(17242), + 4366: uint16(17243), + 4367: uint16(6724), + 4368: uint16(17244), + 4369: uint16(5678), + 4370: uint16(5193), + 4371: uint16(5129), + 4372: uint16(17408), + 4373: uint16(11090), + 4374: uint16(6183), + 4375: uint16(17245), + 4376: uint16(17411), + 4377: uint16(11077), + 4378: uint16(9755), + 4379: uint16(10258), + 4380: uint16(7234), + 4381: uint16(17410), + 4382: uint16(6962), + 4383: uint16(6184), + 4384: uint16(6725), + 4385: uint16(5192), + 4386: uint16(10517), + 4387: uint16(17409), + 4388: uint16(8230), + 4389: uint16(10785), + 4390: uint16(6486), + 4391: uint16(6726), + 4392: uint16(9020), + 4393: uint16(17414), + 4394: uint16(11582), + 4395: uint16(6456), + 4396: uint16(17415), + 4397: uint16(7713), + 4398: uint16(17417), + 4399: uint16(7473), + 4400: uint16(6415), + 4401: uint16(17416), + 4402: uint16(7177), + 4403: uint16(5917), + 4404: uint16(8231), + 4405: uint16(17412), + 4406: uint16(17418), + 4407: uint16(17413), + 4408: uint16(5679), + 4409: uint16(17421), + 4410: uint16(17425), + 4411: uint16(5706), + 4412: uint16(17420), + 4413: uint16(17429), + 4414: uint16(6185), + 4415: uint16(11340), + 4416: uint16(3867), + 4417: uint16(17426), + 4418: uint16(5194), + 4419: uint16(17423), + 4420: uint16(17424), + 4421: uint16(9308), + 4422: uint16(17422), + 4423: uint16(17419), + 4424: uint16(4615), + 4425: uint16(8003), + 4426: uint16(5895), + 4427: uint16(17431), + 4428: uint16(17428), + 4429: uint16(17430), + 4430: uint16(17427), + 4431: uint16(5680), + 4432: uint16(8466), + 4433: uint16(17432), + 4434: uint16(8269), + 4435: uint16(17445), + 4436: uint16(17441), + 4437: uint16(17435), + 4438: uint16(17439), + 4439: uint16(7001), + 4440: uint16(3900), + 4441: uint16(17434), + 4442: uint16(17442), + 4443: uint16(17446), + 4444: uint16(6186), + 4445: uint16(11061), + 4446: uint16(9013), + 4447: uint16(17436), + 4448: uint16(17444), + 4449: uint16(17433), + 4450: uint16(8733), + 4451: uint16(17438), + 4452: uint16(3868), + 4453: uint16(11049), + 4454: uint16(17437), + 4455: uint16(5434), + 4456: uint16(10059), + 4457: uint16(8268), + 4458: uint16(11567), + 4459: uint16(7246), + 4460: uint16(17485), + 4461: uint16(17447), + 4462: uint16(8029), + 4463: uint16(17443), + 4464: uint16(17448), + 4465: uint16(17450), + 4466: uint16(9048), + 4467: uint16(17453), + 4468: uint16(17449), + 4469: uint16(10547), + 4470: uint16(4906), + 4471: uint16(11050), + 4472: uint16(3901), + 4473: uint16(17452), + 4474: uint16(11612), + 4475: uint16(17451), + 4476: uint16(4174), + 4477: uint16(9547), + 4478: uint16(17454), + 4479: uint16(17461), + 4480: uint16(17455), + 4481: uint16(17462), + 4482: uint16(17458), + 4483: uint16(9818), + 4484: uint16(6953), + 4485: uint16(17460), + 4486: uint16(17457), + 4487: uint16(17463), + 4488: uint16(17456), + 4489: uint16(7203), + 4490: uint16(10756), + 4491: uint16(7211), + 4492: uint16(17459), + 4493: uint16(17471), + 4494: uint16(17467), + 4495: uint16(17470), + 4496: uint16(17468), + 4497: uint16(17472), + 4498: uint16(17466), + 4499: uint16(17440), + 4500: uint16(7986), + 4501: uint16(10026), + 4502: uint16(17469), + 4503: uint16(17464), + 4504: uint16(8192), + 4505: uint16(5681), + 4506: uint16(7178), + 4507: uint16(7684), + 4508: uint16(8213), + 4509: uint16(17475), + 4510: uint16(17477), + 4511: uint16(17478), + 4512: uint16(17474), + 4513: uint16(17476), + 4514: uint16(17465), + 4515: uint16(17473), + 4516: uint16(17481), + 4517: uint16(17480), + 4518: uint16(10841), + 4519: uint16(5642), + 4520: uint16(17479), + 4521: uint16(17483), + 4522: uint16(17482), + 4523: uint16(17486), + 4524: uint16(17488), + 4525: uint16(6683), + 4526: uint16(17484), + 4527: uint16(17489), + 4528: uint16(17490), + 4529: uint16(17491), + 4530: uint16(17497), + 4531: uint16(9242), + 4532: uint16(17493), + 4533: uint16(17492), + 4534: uint16(17494), + 4535: uint16(17495), + 4536: uint16(17496), + 4537: uint16(17498), + 4538: uint16(17499), + 4539: uint16(4907), + 4540: uint16(17500), + 4541: uint16(17501), + 4542: uint16(17664), + 4543: uint16(17665), + 4544: uint16(17666), + 4545: uint16(17667), + 4546: uint16(17668), + 4547: uint16(17669), + 4548: uint16(17671), + 4549: uint16(17670), + 4550: uint16(17672), + 4551: uint16(17673), + 4552: uint16(17674), + 4553: uint16(17677), + 4554: uint16(17675), + 4555: uint16(17676), + 4556: uint16(6464), + 4557: uint16(5682), + 4558: uint16(8757), + 4559: uint16(10002), + 4560: uint16(7247), + 4561: uint16(9772), + 4562: uint16(10060), + 4563: uint16(17678), + 4564: uint16(14156), + 4565: uint16(17679), + 4566: uint16(17681), + 4567: uint16(11332), + 4568: uint16(17680), + 4569: uint16(17683), + 4570: uint16(17682), + 4571: uint16(11314), + 4572: uint16(17684), + 4573: uint16(10077), + 4574: uint16(17685), + 4575: uint16(17688), + 4576: uint16(17687), + 4577: uint16(17686), + 4578: uint16(17689), + 4579: uint16(5649), + 4580: uint16(8193), + 4581: uint16(5152), + 4582: uint16(17693), + 4583: uint16(17690), + 4584: uint16(17691), + 4585: uint16(17694), + 4586: uint16(17695), + 4587: uint16(17692), + 4588: uint16(4104), + 4589: uint16(4358), + 4590: uint16(17697), + 4591: uint16(17698), + 4592: uint16(17699), + 4593: uint16(11329), + 4594: uint16(7179), + 4595: uint16(17701), + 4596: uint16(17700), + 4597: uint16(7752), + 4598: uint16(17702), + 4599: uint16(17703), + 4600: uint16(17704), + 4601: uint16(4932), + 4602: uint16(4908), + 4603: uint16(17705), + 4604: uint16(17706), + 4605: uint16(10812), + 4606: uint16(11330), + 4607: uint16(11315), + 4608: uint16(11798), + 4609: uint16(6188), + 4610: uint16(17709), + 4611: uint16(6963), + 4612: uint16(17708), + 4613: uint16(17710), + 4614: uint16(6920), + 4615: uint16(8496), + 4616: uint16(17711), + 4617: uint16(6187), + 4618: uint16(11062), + 4619: uint16(17712), + 4620: uint16(17713), + 4621: uint16(17714), + 4622: uint16(17715), + 4623: uint16(17716), + 4624: uint16(6921), + 4625: uint16(11084), + 4626: uint16(17718), + 4627: uint16(8734), + 4628: uint16(17717), + 4629: uint16(17720), + 4630: uint16(17719), + 4631: uint16(17721), + 4632: uint16(7962), + 4633: uint16(17722), + 4634: uint16(17723), + 4635: uint16(10520), + 4636: uint16(17724), + 4637: uint16(8270), + 4638: uint16(17725), + 4639: uint16(17726), + 4640: uint16(11613), + 4641: uint16(17729), + 4642: uint16(17728), + 4643: uint16(17727), + 4644: uint16(8975), + 4645: uint16(17730), + 4646: uint16(7685), + 4647: uint16(17731), + 4648: uint16(17732), + 4649: uint16(11799), + 4650: uint16(17733), + 4651: uint16(17734), + 4652: uint16(17736), + 4653: uint16(17735), + 4654: uint16(9988), + 4655: uint16(9560), + 4656: uint16(11805), + 4657: uint16(9992), + 4658: uint16(17738), + 4659: uint16(7474), + 4660: uint16(10249), + 4661: uint16(17739), + 4662: uint16(17737), + 4663: uint16(4909), + 4664: uint16(5939), + 4665: uint16(6727), + 4666: uint16(10061), + 4667: uint16(5897), + 4668: uint16(10786), + 4669: uint16(17742), + 4670: uint16(17740), + 4671: uint16(6189), + 4672: uint16(6190), + 4673: uint16(3912), + 4674: uint16(6471), + 4675: uint16(9784), + 4676: uint16(3902), + 4677: uint16(17747), + 4678: uint16(8735), + 4679: uint16(9783), + 4680: uint16(8506), + 4681: uint16(17749), + 4682: uint16(17745), + 4683: uint16(17748), + 4684: uint16(17743), + 4685: uint16(17746), + 4686: uint16(10757), + 4687: uint16(5940), + 4688: uint16(3932), + 4689: uint16(17744), + 4690: uint16(17751), + 4691: uint16(17752), + 4692: uint16(9496), + 4693: uint16(5402), + 4694: uint16(17925), + 4695: uint16(9756), + 4696: uint16(6728), + 4697: uint16(5403), + 4698: uint16(7975), + 4699: uint16(11813), + 4700: uint16(11021), + 4701: uint16(17750), + 4702: uint16(7987), + 4703: uint16(5170), + 4704: uint16(17753), + 4705: uint16(17755), + 4706: uint16(17754), + 4707: uint16(17756), + 4708: uint16(8709), + 4709: uint16(9757), + 4710: uint16(8976), + 4711: uint16(17922), + 4712: uint16(17921), + 4713: uint16(17757), + 4714: uint16(7732), + 4715: uint16(10308), + 4716: uint16(17924), + 4717: uint16(17923), + 4718: uint16(6191), + 4719: uint16(11826), + 4720: uint16(17940), + 4721: uint16(17928), + 4722: uint16(17929), + 4723: uint16(6991), + 4724: uint16(17927), + 4725: uint16(6231), + 4726: uint16(17926), + 4727: uint16(17930), + 4728: uint16(8977), + 4729: uint16(10497), + 4730: uint16(8194), + 4731: uint16(8507), + 4732: uint16(17934), + 4733: uint16(17935), + 4734: uint16(17931), + 4735: uint16(17932), + 4736: uint16(17933), + 4737: uint16(6192), + 4738: uint16(17941), + 4739: uint16(17937), + 4740: uint16(10309), + 4741: uint16(10827), + 4742: uint16(10247), + 4743: uint16(17936), + 4744: uint16(17939), + 4745: uint16(17938), + 4746: uint16(10787), + 4747: uint16(17942), + 4748: uint16(17943), + 4749: uint16(8214), + 4750: uint16(17944), + 4751: uint16(17946), + 4752: uint16(17950), + 4753: uint16(17947), + 4754: uint16(17945), + 4755: uint16(9758), + 4756: uint16(17948), + 4757: uint16(17949), + 4758: uint16(4369), + 4759: uint16(17956), + 4760: uint16(17951), + 4761: uint16(17952), + 4762: uint16(17953), + 4763: uint16(8448), + 4764: uint16(17955), + 4765: uint16(17954), + 4766: uint16(17957), + 4767: uint16(17958), + 4768: uint16(17959), + 4769: uint16(7714), + 4770: uint16(4424), + 4771: uint16(17960), + 4772: uint16(11574), + 4773: uint16(6922), + 4774: uint16(7180), + 4775: uint16(6729), + 4776: uint16(8758), + 4777: uint16(17961), + 4778: uint16(17962), + 4779: uint16(4112), + 4780: uint16(17963), + 4781: uint16(17964), + 4782: uint16(17965), + 4783: uint16(17966), + 4784: uint16(17967), + 4785: uint16(5404), + 4786: uint16(14601), + 4787: uint16(17968), + 4788: uint16(8004), + 4789: uint16(17969), + 4790: uint16(6954), + 4791: uint16(17970), + 4792: uint16(12047), + 4793: uint16(17971), + 4794: uint16(10557), + 4795: uint16(4923), + 4796: uint16(8195), + 4797: uint16(7223), + 4798: uint16(10320), + 4799: uint16(7181), + 4800: uint16(17972), + 4801: uint16(6193), + 4802: uint16(17973), + 4803: uint16(10027), + 4804: uint16(17987), + 4805: uint16(17975), + 4806: uint16(8488), + 4807: uint16(9812), + 4808: uint16(5918), + 4809: uint16(17974), + 4810: uint16(8196), + 4811: uint16(17976), + 4812: uint16(9049), + 4813: uint16(17978), + 4814: uint16(17977), + 4815: uint16(17980), + 4816: uint16(17979), + 4817: uint16(17981), + 4818: uint16(17983), + 4819: uint16(17982), + 4820: uint16(4910), + 4821: uint16(17984), + 4822: uint16(17985), + 4823: uint16(17986), + 4824: uint16(6416), + 4825: uint16(11560), + 4826: uint16(17988), + 4827: uint16(7686), + 4828: uint16(4175), + 4829: uint16(17989), + 4830: uint16(17990), + 4831: uint16(17991), + 4832: uint16(3921), + 4833: uint16(17992), + 4834: uint16(17993), + 4835: uint16(10310), + 4836: uint16(6950), + 4837: uint16(17995), + 4838: uint16(4616), + 4839: uint16(3857), + 4840: uint16(17994), + 4841: uint16(17997), + 4842: uint16(9773), + 4843: uint16(7715), + 4844: uint16(4405), + 4845: uint16(10758), + 4846: uint16(5692), + 4847: uint16(5435), + 4848: uint16(17996), + 4849: uint16(4425), + 4850: uint16(4866), + 4851: uint16(4176), + 4852: uint16(18001), + 4853: uint16(11593), + 4854: uint16(8508), + 4855: uint16(10275), + 4856: uint16(18013), + 4857: uint16(4406), + 4858: uint16(18011), + 4859: uint16(18009), + 4860: uint16(18000), + 4861: uint16(17998), + 4862: uint16(17999), + 4863: uint16(6978), + 4864: uint16(5451), + 4865: uint16(8790), + 4866: uint16(9520), + 4867: uint16(4144), + 4868: uint16(18003), + 4869: uint16(18002), + 4870: uint16(18008), + 4871: uint16(18004), + 4872: uint16(18007), + 4873: uint16(11055), + 4874: uint16(18006), + 4875: uint16(4407), + 4876: uint16(4700), + 4877: uint16(18010), + 4878: uint16(18012), + 4879: uint16(5683), + 4880: uint16(18178), + 4881: uint16(18187), + 4882: uint16(18188), + 4883: uint16(3850), + 4884: uint16(18195), + 4885: uint16(3920), + 4886: uint16(18186), + 4887: uint16(18185), + 4888: uint16(18180), + 4889: uint16(18179), + 4890: uint16(18177), + 4891: uint16(18176), + 4892: uint16(8770), + 4893: uint16(8538), + 4894: uint16(18182), + 4895: uint16(18181), + 4896: uint16(18184), + 4897: uint16(8271), + 4898: uint16(5684), + 4899: uint16(4128), + 4900: uint16(18183), + 4901: uint16(6194), + 4902: uint16(8272), + 4903: uint16(18201), + 4904: uint16(18202), + 4905: uint16(4408), + 4906: uint16(4365), + 4907: uint16(18199), + 4908: uint16(18189), + 4909: uint16(18197), + 4910: uint16(18204), + 4911: uint16(18198), + 4912: uint16(18196), + 4913: uint16(18005), + 4914: uint16(18194), + 4915: uint16(18190), + 4916: uint16(4911), + 4917: uint16(18192), + 4918: uint16(18203), + 4919: uint16(18193), + 4920: uint16(18205), + 4921: uint16(18191), + 4922: uint16(9819), + 4923: uint16(11336), + 4924: uint16(18200), + 4925: uint16(18222), + 4926: uint16(18214), + 4927: uint16(7770), + 4928: uint16(5157), + 4929: uint16(5436), + 4930: uint16(18209), + 4931: uint16(4410), + 4932: uint16(7475), + 4933: uint16(18212), + 4934: uint16(6457), + 4935: uint16(9264), + 4936: uint16(18217), + 4937: uint16(10573), + 4938: uint16(18208), + 4939: uint16(4409), + 4940: uint16(5941), + 4941: uint16(10248), + 4942: uint16(18218), + 4943: uint16(18206), + 4944: uint16(18215), + 4945: uint16(18225), + 4946: uint16(18210), + 4947: uint16(18211), + 4948: uint16(9497), + 4949: uint16(18216), + 4950: uint16(18213), + 4951: uint16(10759), + 4952: uint16(18219), + 4953: uint16(3903), + 4954: uint16(18207), + 4955: uint16(18221), + 4956: uint16(18220), + 4957: uint16(9802), + 4958: uint16(18227), + 4959: uint16(18238), + 4960: uint16(4701), + 4961: uint16(18241), + 4962: uint16(18223), + 4963: uint16(18228), + 4964: uint16(11341), + 4965: uint16(18237), + 4966: uint16(11316), + 4967: uint16(11529), + 4968: uint16(8791), + 4969: uint16(4682), + 4970: uint16(10321), + 4971: uint16(18243), + 4972: uint16(9472), + 4973: uint16(3856), + 4974: uint16(18236), + 4975: uint16(18232), + 4976: uint16(8273), + 4977: uint16(18226), + 4978: uint16(18234), + 4979: uint16(18239), + 4980: uint16(9739), + 4981: uint16(3849), + 4982: uint16(18231), + 4983: uint16(18240), + 4984: uint16(10327), + 4985: uint16(18235), + 4986: uint16(18230), + 4987: uint16(7476), + 4988: uint16(7182), + 4989: uint16(6923), + 4990: uint16(11063), + 4991: uint16(10278), + 4992: uint16(18246), + 4993: uint16(18255), + 4994: uint16(18233), + 4995: uint16(4694), + 4996: uint16(7511), + 4997: uint16(18244), + 4998: uint16(18249), + 4999: uint16(8274), + 5000: uint16(18245), + 5001: uint16(18252), + 5002: uint16(8766), + 5003: uint16(18253), + 5004: uint16(11317), + 5005: uint16(18242), + 5006: uint16(4631), + 5007: uint16(18248), + 5008: uint16(18251), + 5009: uint16(11019), + 5010: uint16(18254), + 5011: uint16(18247), + 5012: uint16(18250), + 5013: uint16(10760), + 5014: uint16(11776), + 5015: uint16(18258), + 5016: uint16(18265), + 5017: uint16(18257), + 5018: uint16(6946), + 5019: uint16(18224), + 5020: uint16(10541), + 5021: uint16(11009), + 5022: uint16(18264), + 5023: uint16(18263), + 5024: uint16(18259), + 5025: uint16(18260), + 5026: uint16(4117), + 5027: uint16(18262), + 5028: uint16(18256), + 5029: uint16(9012), + 5030: uint16(18261), + 5031: uint16(3933), + 5032: uint16(8449), + 5033: uint16(10530), + 5034: uint16(18266), + 5035: uint16(18432), + 5036: uint16(10040), + 5037: uint16(18269), + 5038: uint16(7477), + 5039: uint16(6952), + 5040: uint16(18434), + 5041: uint16(5405), + 5042: uint16(18435), + 5043: uint16(10328), + 5044: uint16(18268), + 5045: uint16(18229), + 5046: uint16(18267), + 5047: uint16(11822), + 5048: uint16(9473), + 5049: uint16(10322), + 5050: uint16(18442), + 5051: uint16(18448), + 5052: uint16(18449), + 5053: uint16(18436), + 5054: uint16(9813), + 5055: uint16(18446), + 5056: uint16(18438), + 5057: uint16(18440), + 5058: uint16(18450), + 5059: uint16(18439), + 5060: uint16(18443), + 5061: uint16(4177), + 5062: uint16(9540), + 5063: uint16(18444), + 5064: uint16(18447), + 5065: uint16(18437), + 5066: uint16(8197), + 5067: uint16(18441), + 5068: uint16(6662), + 5069: uint16(7716), + 5070: uint16(5647), + 5071: uint16(11091), + 5072: uint16(11096), + 5073: uint16(7249), + 5074: uint16(18454), + 5075: uint16(18452), + 5076: uint16(11821), + 5077: uint16(18451), + 5078: uint16(11348), + 5079: uint16(18453), + 5080: uint16(18455), + 5081: uint16(18456), + 5082: uint16(18459), + 5083: uint16(18457), + 5084: uint16(9474), + 5085: uint16(18458), + 5086: uint16(10028), + 5087: uint16(18445), + 5088: uint16(7250), + 5089: uint16(18460), + 5090: uint16(18465), + 5091: uint16(8275), + 5092: uint16(18464), + 5093: uint16(18433), + 5094: uint16(18466), + 5095: uint16(8232), + 5096: uint16(18461), + 5097: uint16(18463), + 5098: uint16(18462), + 5099: uint16(15376), + 5100: uint16(15361), + 5101: uint16(18468), + 5102: uint16(18467), + 5103: uint16(11349), + 5104: uint16(16667), + 5105: uint16(18469), + 5106: uint16(18470), + 5107: uint16(18471), + 5108: uint16(5942), + 5109: uint16(5171), + 5110: uint16(18473), + 5111: uint16(12348), + 5112: uint16(5204), + 5113: uint16(11545), + 5114: uint16(5458), + 5115: uint16(18474), + 5116: uint16(18475), + 5117: uint16(8781), + 5118: uint16(18476), + 5119: uint16(9561), + 5120: uint16(3865), + 5121: uint16(4418), + 5122: uint16(18481), + 5123: uint16(18482), + 5124: uint16(18477), + 5125: uint16(6684), + 5126: uint16(18478), + 5127: uint16(9761), + 5128: uint16(18479), + 5129: uint16(18480), + 5130: uint16(18490), + 5131: uint16(18484), + 5132: uint16(18487), + 5133: uint16(18483), + 5134: uint16(18485), + 5135: uint16(18486), + 5136: uint16(6967), + 5137: uint16(18488), + 5138: uint16(8736), + 5139: uint16(5685), + 5140: uint16(4641), + 5141: uint16(18491), + 5142: uint16(4638), + 5143: uint16(18496), + 5144: uint16(18492), + 5145: uint16(18495), + 5146: uint16(10009), + 5147: uint16(18493), + 5148: uint16(18494), + 5149: uint16(10279), + 5150: uint16(10041), + 5151: uint16(18497), + 5152: uint16(8540), + 5153: uint16(18507), + 5154: uint16(18503), + 5155: uint16(4426), + 5156: uint16(18501), + 5157: uint16(10761), + 5158: uint16(18502), + 5159: uint16(18499), + 5160: uint16(18500), + 5161: uint16(18505), + 5162: uint16(18508), + 5163: uint16(18506), + 5164: uint16(18504), + 5165: uint16(18498), + 5166: uint16(8759), + 5167: uint16(18515), + 5168: uint16(11017), + 5169: uint16(18513), + 5170: uint16(18514), + 5171: uint16(18509), + 5172: uint16(18511), + 5173: uint16(18512), + 5174: uint16(18510), + 5175: uint16(8005), + 5176: uint16(11800), + 5177: uint16(18519), + 5178: uint16(18520), + 5179: uint16(18688), + 5180: uint16(7689), + 5181: uint16(18522), + 5182: uint16(18525), + 5183: uint16(18517), + 5184: uint16(18516), + 5185: uint16(18689), + 5186: uint16(4411), + 5187: uint16(18523), + 5188: uint16(18690), + 5189: uint16(18524), + 5190: uint16(18521), + 5191: uint16(8978), + 5192: uint16(18518), + 5193: uint16(9799), + 5194: uint16(18694), + 5195: uint16(11290), + 5196: uint16(18693), + 5197: uint16(18692), + 5198: uint16(18701), + 5199: uint16(18695), + 5200: uint16(18703), + 5201: uint16(11333), + 5202: uint16(18706), + 5203: uint16(18697), + 5204: uint16(18698), + 5205: uint16(18702), + 5206: uint16(18705), + 5207: uint16(18704), + 5208: uint16(18696), + 5209: uint16(18699), + 5210: uint16(18716), + 5211: uint16(18709), + 5212: uint16(18707), + 5213: uint16(18708), + 5214: uint16(18713), + 5215: uint16(18714), + 5216: uint16(4617), + 5217: uint16(5153), + 5218: uint16(18712), + 5219: uint16(18691), + 5220: uint16(18711), + 5221: uint16(18715), + 5222: uint16(18710), + 5223: uint16(18717), + 5224: uint16(18719), + 5225: uint16(18718), + 5226: uint16(18721), + 5227: uint16(18720), + 5228: uint16(18489), + 5229: uint16(18725), + 5230: uint16(18722), + 5231: uint16(18723), + 5232: uint16(18724), + 5233: uint16(18726), + 5234: uint16(5707), + 5235: uint16(18728), + 5236: uint16(18727), + 5237: uint16(7183), + 5238: uint16(6195), + 5239: uint16(15622), + 5240: uint16(18729), + 5241: uint16(7216), + 5242: uint16(4632), + 5243: uint16(18730), + 5244: uint16(4145), + 5245: uint16(7478), + 5246: uint16(18731), + 5247: uint16(6196), + 5248: uint16(18732), + 5249: uint16(3904), + 5250: uint16(10268), + 5251: uint16(18733), + 5252: uint16(7753), + 5253: uint16(18740), + 5254: uint16(18737), + 5255: uint16(8782), + 5256: uint16(18738), + 5257: uint16(18735), + 5258: uint16(5437), + 5259: uint16(18734), + 5260: uint16(18741), + 5261: uint16(5653), + 5262: uint16(8509), + 5263: uint16(18747), + 5264: uint16(18743), + 5265: uint16(8468), + 5266: uint16(18742), + 5267: uint16(18745), + 5268: uint16(18736), + 5269: uint16(18746), + 5270: uint16(18748), + 5271: uint16(10062), + 5272: uint16(18744), + 5273: uint16(18749), + 5274: uint16(18751), + 5275: uint16(5938), + 5276: uint16(18739), + 5277: uint16(3872), + 5278: uint16(18750), + 5279: uint16(6458), + 5280: uint16(11605), + 5281: uint16(18752), + 5282: uint16(18753), + 5283: uint16(8276), + 5284: uint16(11521), + 5285: uint16(18754), + 5286: uint16(11284), + 5287: uint16(18755), + 5288: uint16(18756), + 5289: uint16(10563), + 5290: uint16(18757), + 5291: uint16(6431), + 5292: uint16(11522), + 5293: uint16(18762), + 5294: uint16(18763), + 5295: uint16(7479), + 5296: uint16(18761), + 5297: uint16(11334), + 5298: uint16(18758), + 5299: uint16(18760), + 5300: uint16(7964), + 5301: uint16(7773), + 5302: uint16(18759), + 5303: uint16(18764), + 5304: uint16(10498), + 5305: uint16(18766), + 5306: uint16(18765), + 5307: uint16(4683), + 5308: uint16(10762), + 5309: uint16(18767), + 5310: uint16(18779), + 5311: uint16(18769), + 5312: uint16(18770), + 5313: uint16(18771), + 5314: uint16(18772), + 5315: uint16(18776), + 5316: uint16(18777), + 5317: uint16(18775), + 5318: uint16(18773), + 5319: uint16(18768), + 5320: uint16(18774), + 5321: uint16(18778), + 5322: uint16(20246), + 5323: uint16(4359), + 5324: uint16(18781), + 5325: uint16(5438), + 5326: uint16(18780), + 5327: uint16(18945), + 5328: uint16(18944), + 5329: uint16(18947), + 5330: uint16(18946), + 5331: uint16(18948), + 5332: uint16(7184), + 5333: uint16(18949), + 5334: uint16(18950), + 5335: uint16(18951), + 5336: uint16(7965), + 5337: uint16(11318), + 5338: uint16(18952), + 5339: uint16(10499), + 5340: uint16(9765), + 5341: uint16(18953), + 5342: uint16(18954), + 5343: uint16(5898), + 5344: uint16(5131), + 5345: uint16(18955), + 5346: uint16(6730), + 5347: uint16(9760), + 5348: uint16(18956), + 5349: uint16(4655), + 5350: uint16(18957), + 5351: uint16(18959), + 5352: uint16(11350), + 5353: uint16(18958), + 5354: uint16(7717), + 5355: uint16(18960), + 5356: uint16(18961), + 5357: uint16(18962), + 5358: uint16(4912), + 5359: uint16(18963), + 5360: uint16(18964), + 5361: uint16(18965), + 5362: uint16(18966), + 5363: uint16(4656), + 5364: uint16(18967), + 5365: uint16(18968), + 5366: uint16(18969), + 5367: uint16(4433), + 5368: uint16(7687), + 5369: uint16(18970), + 5370: uint16(18971), + 5371: uint16(18972), + 5372: uint16(5919), + 5373: uint16(9050), + 5374: uint16(18973), + 5375: uint16(5686), + 5376: uint16(7733), + 5377: uint16(18976), + 5378: uint16(9475), + 5379: uint16(18975), + 5380: uint16(5648), + 5381: uint16(18974), + 5382: uint16(8534), + 5383: uint16(5132), + 5384: uint16(18977), + 5385: uint16(18978), + 5386: uint16(7480), + 5387: uint16(5708), + 5388: uint16(18979), + 5389: uint16(10763), + 5390: uint16(7998), + 5391: uint16(5205), + 5392: uint16(11092), + 5393: uint16(8233), + 5394: uint16(18980), + 5395: uint16(7718), + 5396: uint16(8783), + 5397: uint16(7481), + 5398: uint16(18981), + 5399: uint16(18984), + 5400: uint16(18985), + 5401: uint16(6429), + 5402: uint16(8481), + 5403: uint16(18983), + 5404: uint16(7482), + 5405: uint16(10269), + 5406: uint16(18982), + 5407: uint16(6731), + 5408: uint16(4146), + 5409: uint16(18989), + 5410: uint16(5687), + 5411: uint16(6733), + 5412: uint16(6732), + 5413: uint16(11820), + 5414: uint16(18988), + 5415: uint16(18987), + 5416: uint16(8198), + 5417: uint16(5164), + 5418: uint16(11810), + 5419: uint16(4633), + 5420: uint16(7483), + 5421: uint16(18986), + 5422: uint16(18991), + 5423: uint16(18992), + 5424: uint16(18990), + 5425: uint16(5943), + 5426: uint16(11295), + 5427: uint16(6734), + 5428: uint16(9734), + 5429: uint16(18995), + 5430: uint16(7967), + 5431: uint16(8737), + 5432: uint16(11285), + 5433: uint16(18998), + 5434: uint16(5963), + 5435: uint16(7966), + 5436: uint16(18994), + 5437: uint16(18999), + 5438: uint16(5964), + 5439: uint16(18996), + 5440: uint16(18997), + 5441: uint16(18993), + 5442: uint16(8001), + 5443: uint16(9512), + 5444: uint16(8718), + 5445: uint16(4412), + 5446: uint16(10063), + 5447: uint16(5154), + 5448: uint16(8979), + 5449: uint16(19002), + 5450: uint16(19000), + 5451: uint16(8747), + 5452: uint16(7968), + 5453: uint16(4913), + 5454: uint16(19001), + 5455: uint16(7738), + 5456: uint16(11561), + 5457: uint16(11807), + 5458: uint16(19003), + 5459: uint16(19014), + 5460: uint16(8980), + 5461: uint16(19013), + 5462: uint16(19010), + 5463: uint16(19018), + 5464: uint16(19011), + 5465: uint16(19007), + 5466: uint16(9051), + 5467: uint16(19006), + 5468: uint16(19004), + 5469: uint16(11264), + 5470: uint16(6735), + 5471: uint16(19008), + 5472: uint16(19005), + 5473: uint16(19012), + 5474: uint16(7251), + 5475: uint16(5920), + 5476: uint16(8537), + 5477: uint16(10788), + 5478: uint16(4153), + 5479: uint16(3905), + 5480: uint16(9476), + 5481: uint16(19016), + 5482: uint16(19015), + 5483: uint16(9541), + 5484: uint16(19020), + 5485: uint16(19009), + 5486: uint16(19019), + 5487: uint16(19021), + 5488: uint16(5899), + 5489: uint16(19017), + 5490: uint16(6197), + 5491: uint16(6964), + 5492: uint16(19022), + 5493: uint16(11319), + 5494: uint16(19025), + 5495: uint16(19028), + 5496: uint16(19026), + 5497: uint16(10260), + 5498: uint16(19023), + 5499: uint16(5439), + 5500: uint16(19027), + 5501: uint16(19029), + 5502: uint16(19033), + 5503: uint16(19030), + 5504: uint16(19032), + 5505: uint16(19031), + 5506: uint16(19034), + 5507: uint16(6928), + 5508: uint16(19036), + 5509: uint16(19035), + 5510: uint16(10311), + 5511: uint16(19200), + 5512: uint16(5688), + 5513: uint16(19037), + 5514: uint16(19201), + 5515: uint16(19202), + 5516: uint16(5155), + 5517: uint16(17696), + 5518: uint16(7512), + 5519: uint16(19203), + 5520: uint16(5965), + 5521: uint16(19204), + 5522: uint16(19205), + 5523: uint16(6685), + 5524: uint16(14637), + 5525: uint16(19206), + 5526: uint16(19207), + 5527: uint16(7185), + 5528: uint16(19208), + 5529: uint16(19209), + 5530: uint16(19210), + 5531: uint16(19211), + 5532: uint16(19212), + 5533: uint16(8714), + 5534: uint16(19213), + 5535: uint16(19215), + 5536: uint16(19214), + 5537: uint16(9477), + 5538: uint16(19216), + 5539: uint16(10764), + 5540: uint16(19217), + 5541: uint16(19218), + 5542: uint16(19219), + 5543: uint16(19220), + 5544: uint16(9529), + 5545: uint16(7484), + 5546: uint16(19221), + 5547: uint16(6218), + 5548: uint16(12045), + 5549: uint16(19222), + 5550: uint16(19223), + 5551: uint16(10270), + 5552: uint16(19224), + 5553: uint16(19232), + 5554: uint16(19225), + 5555: uint16(19227), + 5556: uint16(19226), + 5557: uint16(19228), + 5558: uint16(10789), + 5559: uint16(19229), + 5560: uint16(19230), + 5561: uint16(19231), + 5562: uint16(19233), + 5563: uint16(4620), + 5564: uint16(9030), + 5565: uint16(10312), + 5566: uint16(6465), + 5567: uint16(6198), + 5568: uint16(10286), + 5569: uint16(4414), + 5570: uint16(10029), + 5571: uint16(19236), + 5572: uint16(4914), + 5573: uint16(7988), + 5574: uint16(19235), + 5575: uint16(19240), + 5576: uint16(8792), + 5577: uint16(11074), + 5578: uint16(19238), + 5579: uint16(19239), + 5580: uint16(5133), + 5581: uint16(19241), + 5582: uint16(9794), + 5583: uint16(8510), + 5584: uint16(10064), + 5585: uint16(9244), + 5586: uint16(19237), + 5587: uint16(10790), + 5588: uint16(4427), + 5589: uint16(19243), + 5590: uint16(11783), + 5591: uint16(8993), + 5592: uint16(11812), + 5593: uint16(6736), + 5594: uint16(19242), + 5595: uint16(8464), + 5596: uint16(19259), + 5597: uint16(8199), + 5598: uint16(9559), + 5599: uint16(10287), + 5600: uint16(19246), + 5601: uint16(6686), + 5602: uint16(6737), + 5603: uint16(7485), + 5604: uint16(9796), + 5605: uint16(5900), + 5606: uint16(19245), + 5607: uint16(19244), + 5608: uint16(10313), + 5609: uint16(6944), + 5610: uint16(9265), + 5611: uint16(19248), + 5612: uint16(19249), + 5613: uint16(6199), + 5614: uint16(19247), + 5615: uint16(19250), + 5616: uint16(19251), + 5617: uint16(19253), + 5618: uint16(8450), + 5619: uint16(19252), + 5620: uint16(4933), + 5621: uint16(19255), + 5622: uint16(19254), + 5623: uint16(19256), + 5624: uint16(19258), + 5625: uint16(19260), + 5626: uint16(19261), + 5627: uint16(7989), + 5628: uint16(6958), + 5629: uint16(19262), + 5630: uint16(4657), + 5631: uint16(19263), + 5632: uint16(8277), + 5633: uint16(19264), + 5634: uint16(19265), + 5635: uint16(10314), + 5636: uint16(5134), + 5637: uint16(19266), + 5638: uint16(8981), + 5639: uint16(4154), + 5640: uint16(19267), + 5641: uint16(6992), + 5642: uint16(7765), + 5643: uint16(8460), + 5644: uint16(19270), + 5645: uint16(19269), + 5646: uint16(19268), + 5647: uint16(19276), + 5648: uint16(19274), + 5649: uint16(19271), + 5650: uint16(19273), + 5651: uint16(19272), + 5652: uint16(19275), + 5653: uint16(5206), + 5654: uint16(19279), + 5655: uint16(7990), + 5656: uint16(19280), + 5657: uint16(5944), + 5658: uint16(19277), + 5659: uint16(19278), + 5660: uint16(11784), + 5661: uint16(8982), + 5662: uint16(8200), + 5663: uint16(19281), + 5664: uint16(19284), + 5665: uint16(19282), + 5666: uint16(19283), + 5667: uint16(11320), + 5668: uint16(9478), + 5669: uint16(19287), + 5670: uint16(19285), + 5671: uint16(19286), + 5672: uint16(19288), + 5673: uint16(19464), + 5674: uint16(19291), + 5675: uint16(19292), + 5676: uint16(19290), + 5677: uint16(19289), + 5678: uint16(9052), + 5679: uint16(19456), + 5680: uint16(19460), + 5681: uint16(19457), + 5682: uint16(19293), + 5683: uint16(19458), + 5684: uint16(19459), + 5685: uint16(19466), + 5686: uint16(19461), + 5687: uint16(7991), + 5688: uint16(19463), + 5689: uint16(19465), + 5690: uint16(19462), + 5691: uint16(19468), + 5692: uint16(7186), + 5693: uint16(19467), + 5694: uint16(19469), + 5695: uint16(19470), + 5696: uint16(19473), + 5697: uint16(19472), + 5698: uint16(19471), + 5699: uint16(19475), + 5700: uint16(19474), + 5701: uint16(11093), + 5702: uint16(19477), + 5703: uint16(19476), + 5704: uint16(19478), + 5705: uint16(19479), + 5706: uint16(19481), + 5707: uint16(19480), + 5708: uint16(7719), + 5709: uint16(19482), + 5710: uint16(5452), + 5711: uint16(19483), + 5712: uint16(19485), + 5713: uint16(19486), + 5714: uint16(19487), + 5715: uint16(19484), + 5716: uint16(19488), + 5717: uint16(6965), + 5718: uint16(19489), + 5719: uint16(5135), + 5720: uint16(5650), + 5721: uint16(5901), + 5722: uint16(19490), + 5723: uint16(9551), + 5724: uint16(9245), + 5725: uint16(19491), + 5726: uint16(19494), + 5727: uint16(6931), + 5728: uint16(19493), + 5729: uint16(19492), + 5730: uint16(5689), + 5731: uint16(19495), + 5732: uint16(4658), + 5733: uint16(19497), + 5734: uint16(6459), + 5735: uint16(19496), + 5736: uint16(19505), + 5737: uint16(19499), + 5738: uint16(19501), + 5739: uint16(10564), + 5740: uint16(19498), + 5741: uint16(19500), + 5742: uint16(19504), + 5743: uint16(19502), + 5744: uint16(5136), + 5745: uint16(19503), + 5746: uint16(19506), + 5747: uint16(9785), + 5748: uint16(11575), + 5749: uint16(7187), + 5750: uint16(19507), + 5751: uint16(11265), + 5752: uint16(19509), + 5753: uint16(19508), + 5754: uint16(19512), + 5755: uint16(11296), + 5756: uint16(19511), + 5757: uint16(4684), + 5758: uint16(19510), + 5759: uint16(19515), + 5760: uint16(19514), + 5761: uint16(19513), + 5762: uint16(9233), + 5763: uint16(19516), + 5764: uint16(19517), + 5765: uint16(19518), + 5766: uint16(6219), + 5767: uint16(5636), + 5768: uint16(19519), + 5769: uint16(19520), + 5770: uint16(19521), + 5771: uint16(7720), + 5772: uint16(19522), + 5773: uint16(6924), + 5774: uint16(19523), + 5775: uint16(19524), + 5776: uint16(12544), + 5777: uint16(12381), + 5778: uint16(19525), + 5779: uint16(17487), + 5780: uint16(19526), + 5781: uint16(8707), + 5782: uint16(7690), + 5783: uint16(9759), + 5784: uint16(19527), + 5785: uint16(10548), + 5786: uint16(9011), + 5787: uint16(6237), + 5788: uint16(8712), + 5789: uint16(4105), + 5790: uint16(10839), + 5791: uint16(7734), + 5792: uint16(5693), + 5793: uint16(5440), + 5794: uint16(10549), + 5795: uint16(19528), + 5796: uint16(19530), + 5797: uint16(19529), + 5798: uint16(4415), + 5799: uint16(9557), + 5800: uint16(19531), + 5801: uint16(9814), + 5802: uint16(9234), + 5803: uint16(19532), + 5804: uint16(7217), + 5805: uint16(19534), + 5806: uint16(11041), + 5807: uint16(19549), + 5808: uint16(19536), + 5809: uint16(19537), + 5810: uint16(9000), + 5811: uint16(8511), + 5812: uint16(8278), + 5813: uint16(9479), + 5814: uint16(19535), + 5815: uint16(5172), + 5816: uint16(19544), + 5817: uint16(19541), + 5818: uint16(19716), + 5819: uint16(9480), + 5820: uint16(8767), + 5821: uint16(19538), + 5822: uint16(9053), + 5823: uint16(9266), + 5824: uint16(19539), + 5825: uint16(19543), + 5826: uint16(7743), + 5827: uint16(9798), + 5828: uint16(9003), + 5829: uint16(7969), + 5830: uint16(19542), + 5831: uint16(8461), + 5832: uint16(8451), + 5833: uint16(19540), + 5834: uint16(3848), + 5835: uint16(11777), + 5836: uint16(19545), + 5837: uint16(8512), + 5838: uint16(7188), + 5839: uint16(7721), + 5840: uint16(19547), + 5841: uint16(19546), + 5842: uint16(3918), + 5843: uint16(19548), + 5844: uint16(10254), + 5845: uint16(19718), + 5846: uint16(9530), + 5847: uint16(7754), + 5848: uint16(8760), + 5849: uint16(5463), + 5850: uint16(19717), + 5851: uint16(11286), + 5852: uint16(4126), + 5853: uint16(10550), + 5854: uint16(4416), + 5855: uint16(19712), + 5856: uint16(19713), + 5857: uint16(19714), + 5858: uint16(19715), + 5859: uint16(9498), + 5860: uint16(8706), + 5861: uint16(3906), + 5862: uint16(19719), + 5863: uint16(19720), + 5864: uint16(21250), + 5865: uint16(8476), + 5866: uint16(19721), + 5867: uint16(4178), + 5868: uint16(8235), + 5869: uint16(5902), + 5870: uint16(11321), + 5871: uint16(19722), + 5872: uint16(9227), + 5873: uint16(8279), + 5874: uint16(6966), + 5875: uint16(19723), + 5876: uint16(19726), + 5877: uint16(7236), + 5878: uint16(19724), + 5879: uint16(8202), + 5880: uint16(8201), + 5881: uint16(3907), + 5882: uint16(11562), + 5883: uint16(19728), + 5884: uint16(10065), + 5885: uint16(19730), + 5886: uint16(19729), + 5887: uint16(19727), + 5888: uint16(16963), + 5889: uint16(4915), + 5890: uint16(19533), + 5891: uint16(19732), + 5892: uint16(19731), + 5893: uint16(19733), + 5894: uint16(11287), + 5895: uint16(9536), + 5896: uint16(10765), + 5897: uint16(19734), + 5898: uint16(6968), + 5899: uint16(19735), + 5900: uint16(19736), + 5901: uint16(19737), + 5902: uint16(9216), + 5903: uint16(3913), + 5904: uint16(6200), + 5905: uint16(11801), + 5906: uint16(19741), + 5907: uint16(5651), + 5908: uint16(19738), + 5909: uint16(19739), + 5910: uint16(10323), + 5911: uint16(4659), + 5912: uint16(11288), + 5913: uint16(5406), + 5914: uint16(9267), + 5915: uint16(19742), + 5916: uint16(19743), + 5917: uint16(19744), + 5918: uint16(9217), + 5919: uint16(19746), + 5920: uint16(19745), + 5921: uint16(9522), + 5922: uint16(19747), + 5923: uint16(7189), + 5924: uint16(6975), + 5925: uint16(9786), + 5926: uint16(8784), + 5927: uint16(6993), + 5928: uint16(7755), + 5929: uint16(19748), + 5930: uint16(19749), + 5931: uint16(7740), + 5932: uint16(19750), + 5933: uint16(19751), + 5934: uint16(19752), + 5935: uint16(11342), + 5936: uint16(7190), + 5937: uint16(19754), + 5938: uint16(19753), + 5939: uint16(6201), + 5940: uint16(6226), + 5941: uint16(6687), + 5942: uint16(19757), + 5943: uint16(7237), + 5944: uint16(19756), + 5945: uint16(19755), + 5946: uint16(8520), + 5947: uint16(5966), + 5948: uint16(7970), + 5949: uint16(9999), + 5950: uint16(7192), + 5951: uint16(19758), + 5952: uint16(7486), + 5953: uint16(19761), + 5954: uint16(19759), + 5955: uint16(19760), + 5956: uint16(19763), + 5957: uint16(19762), + 5958: uint16(7513), + 5959: uint16(19764), + 5960: uint16(19765), + 5961: uint16(19766), + 5962: uint16(10031), + 5963: uint16(6450), + 5964: uint16(6976), + 5965: uint16(19767), + 5966: uint16(19768), + 5967: uint16(11523), + 5968: uint16(7204), + 5969: uint16(11085), + 5970: uint16(11563), + 5971: uint16(19769), + 5972: uint16(5441), + 5973: uint16(19770), + 5974: uint16(9218), + 5975: uint16(19773), + 5976: uint16(4695), + 5977: uint16(7722), + 5978: uint16(19771), + 5979: uint16(19772), + 5980: uint16(9023), + 5981: uint16(10804), + 5982: uint16(5467), + 5983: uint16(19775), + 5984: uint16(19776), + 5985: uint16(19774), + 5986: uint16(19778), + 5987: uint16(9534), + 5988: uint16(4642), + 5989: uint16(19782), + 5990: uint16(19779), + 5991: uint16(19781), + 5992: uint16(19777), + 5993: uint16(20014), + 5994: uint16(19780), + 5995: uint16(11594), + 5996: uint16(5945), + 5997: uint16(19790), + 5998: uint16(9235), + 5999: uint16(19785), + 6000: uint16(19788), + 6001: uint16(19786), + 6002: uint16(19791), + 6003: uint16(19792), + 6004: uint16(19784), + 6005: uint16(19797), + 6006: uint16(4179), + 6007: uint16(19783), + 6008: uint16(9996), + 6009: uint16(19787), + 6010: uint16(7487), + 6011: uint16(6202), + 6012: uint16(10791), + 6013: uint16(5443), + 6014: uint16(7205), + 6015: uint16(9499), + 6016: uint16(8204), + 6017: uint16(19795), + 6018: uint16(19789), + 6019: uint16(19794), + 6020: uint16(11042), + 6021: uint16(8983), + 6022: uint16(19796), + 6023: uint16(19793), + 6024: uint16(8203), + 6025: uint16(19800), + 6026: uint16(19799), + 6027: uint16(19798), + 6028: uint16(10766), + 6029: uint16(7258), + 6030: uint16(19801), + 6031: uint16(10558), + 6032: uint16(4147), + 6033: uint16(10277), + 6034: uint16(8785), + 6035: uint16(5207), + 6036: uint16(19803), + 6037: uint16(6204), + 6038: uint16(6667), + 6039: uint16(19802), + 6040: uint16(7756), + 6041: uint16(7757), + 6042: uint16(19968), + 6043: uint16(19970), + 6044: uint16(7514), + 6045: uint16(19969), + 6046: uint16(19971), + 6047: uint16(5426), + 6048: uint16(10276), + 6049: uint16(6977), + 6050: uint16(11778), + 6051: uint16(19805), + 6052: uint16(6487), + 6053: uint16(11806), + 6054: uint16(19973), + 6055: uint16(19972), + 6056: uint16(19974), + 6057: uint16(19804), + 6058: uint16(9544), + 6059: uint16(9268), + 6060: uint16(9014), + 6061: uint16(19979), + 6062: uint16(8738), + 6063: uint16(19975), + 6064: uint16(19976), + 6065: uint16(5644), + 6066: uint16(19978), + 6067: uint16(5903), + 6068: uint16(19977), + 6069: uint16(7488), + 6070: uint16(4696), + 6071: uint16(19983), + 6072: uint16(6430), + 6073: uint16(8280), + 6074: uint16(9001), + 6075: uint16(4634), + 6076: uint16(19981), + 6077: uint16(19982), + 6078: uint16(8994), + 6079: uint16(19980), + 6080: uint16(19984), + 6081: uint16(19990), + 6082: uint16(19993), + 6083: uint16(19992), + 6084: uint16(9228), + 6085: uint16(19985), + 6086: uint16(19986), + 6087: uint16(19989), + 6088: uint16(19991), + 6089: uint16(5407), + 6090: uint16(19994), + 6091: uint16(19988), + 6092: uint16(19987), + 6093: uint16(19998), + 6094: uint16(19999), + 6095: uint16(20000), + 6096: uint16(19997), + 6097: uint16(19996), + 6098: uint16(7489), + 6099: uint16(9481), + 6100: uint16(19995), + 6101: uint16(20004), + 6102: uint16(20002), + 6103: uint16(20003), + 6104: uint16(20001), + 6105: uint16(8535), + 6106: uint16(20005), + 6107: uint16(20006), + 6108: uint16(20008), + 6109: uint16(4916), + 6110: uint16(20007), + 6111: uint16(11097), + 6112: uint16(20019), + 6113: uint16(20009), + 6114: uint16(20012), + 6115: uint16(20010), + 6116: uint16(20011), + 6117: uint16(20013), + 6118: uint16(20015), + 6119: uint16(20016), + 6120: uint16(20017), + 6121: uint16(20020), + 6122: uint16(20018), + 6123: uint16(20021), + 6124: uint16(20023), + 6125: uint16(20022), + 6126: uint16(8984), + 6127: uint16(11078), + 6128: uint16(20024), + 6129: uint16(8205), + 6130: uint16(20025), + 6131: uint16(10531), + 6132: uint16(20026), + 6133: uint16(4618), + 6134: uint16(4123), + 6135: uint16(4918), + 6136: uint16(4917), + 6137: uint16(20027), + 6138: uint16(20028), + 6139: uint16(20029), + 6140: uint16(20030), + 6141: uint16(20031), + 6142: uint16(4919), + 6143: uint16(4660), + 6144: uint16(6205), + 6145: uint16(10005), + 6146: uint16(20033), + 6147: uint16(20032), + 6148: uint16(20034), + 6149: uint16(4155), + 6150: uint16(20037), + 6151: uint16(20036), + 6152: uint16(20035), + 6153: uint16(20038), + 6154: uint16(20041), + 6155: uint16(3878), + 6156: uint16(20039), + 6157: uint16(20043), + 6158: uint16(20042), + 6159: uint16(20045), + 6160: uint16(20044), + 6161: uint16(20046), + 6162: uint16(9485), + 6163: uint16(20047), + 6164: uint16(20048), + 6165: uint16(20050), + 6166: uint16(20049), + 6167: uint16(10315), + 6168: uint16(20051), + 6169: uint16(20052), + 6170: uint16(6468), + 6171: uint16(20053), + 6172: uint16(20054), + 6173: uint16(10792), + 6174: uint16(8234), + 6175: uint16(3843), + 6176: uint16(8490), + 6177: uint16(20055), + 6178: uint16(10316), + 6179: uint16(20058), + 6180: uint16(20056), + 6181: uint16(6206), + 6182: uint16(20057), + 6183: uint16(5921), + 6184: uint16(10532), + 6185: uint16(20060), + 6186: uint16(20224), + 6187: uint16(20061), + 6188: uint16(20225), + 6189: uint16(4096), + 6190: uint16(7735), + 6191: uint16(7259), + 6192: uint16(4920), + 6193: uint16(20226), + 6194: uint16(9797), + 6195: uint16(20228), + 6196: uint16(4097), + 6197: uint16(20227), + 6198: uint16(8995), + 6199: uint16(11564), + 6200: uint16(9482), + 6201: uint16(20059), + 6202: uint16(11525), + 6203: uint16(5904), + 6204: uint16(11322), + 6205: uint16(5464), + 6206: uint16(11539), + 6207: uint16(5639), + 6208: uint16(8513), + 6209: uint16(17920), + 6210: uint16(20229), + 6211: uint16(4619), + 6212: uint16(7758), + 6213: uint16(4661), + 6214: uint16(20231), + 6215: uint16(20232), + 6216: uint16(20230), + 6217: uint16(5699), + 6218: uint16(6460), + 6219: uint16(7490), + 6220: uint16(4098), + 6221: uint16(11576), + 6222: uint16(20234), + 6223: uint16(19725), + 6224: uint16(20233), + 6225: uint16(20237), + 6226: uint16(20235), + 6227: uint16(20236), + 6228: uint16(20238), + 6229: uint16(20239), + 6230: uint16(11595), + 6231: uint16(20240), + 6232: uint16(20241), + 6233: uint16(7976), + 6234: uint16(10010), + 6235: uint16(7772), + 6236: uint16(4934), + 6237: uint16(11289), + 6238: uint16(4428), + 6239: uint16(7191), + 6240: uint16(5946), + 6241: uint16(20244), + 6242: uint16(20243), + 6243: uint16(6738), + 6244: uint16(20245), + 6245: uint16(20242), + 6246: uint16(6663), + 6247: uint16(20249), + 6248: uint16(18700), + 6249: uint16(12597), + 6250: uint16(7766), + 6251: uint16(20247), + 6252: uint16(11524), + 6253: uint16(9552), + 6254: uint16(4106), + 6255: uint16(8002), + 6256: uint16(6933), + 6257: uint16(10518), + 6258: uint16(4127), + 6259: uint16(11596), + 6260: uint16(11338), + 6261: uint16(20250), + 6262: uint16(9252), + 6263: uint16(7002), + 6264: uint16(20251), + 6265: uint16(20252), + 6266: uint16(7723), + 6267: uint16(20253), + 6268: uint16(11597), + 6269: uint16(20248), + 6270: uint16(20255), + 6271: uint16(20257), + 6272: uint16(20256), + 6273: uint16(20254), + 6274: uint16(20258), + 6275: uint16(20259), + 6276: uint16(8281), + 6277: uint16(4417), + 6278: uint16(20260), + 6279: uint16(11031), + 6280: uint16(20261), + 6281: uint16(20262), + 6282: uint16(11785), + 6283: uint16(14864), + 6284: uint16(20263), + 6285: uint16(20264), + 6286: uint16(20265), + 6287: uint16(20269), + 6288: uint16(20266), + 6289: uint16(20267), + 6290: uint16(20268), + 6291: uint16(20270), + 6292: uint16(7971), + 6293: uint16(11094), + 6294: uint16(7972), + 6295: uint16(20271), + 6296: uint16(10066), + 6297: uint16(20272), + 6298: uint16(21042), + 6299: uint16(11051), + 6300: uint16(20273), + 6301: uint16(20274), + 6302: uint16(20275), + 6303: uint16(4662), + 6304: uint16(20277), + 6305: uint16(7736), + 6306: uint16(20278), + 6307: uint16(5635), + 6308: uint16(20279), + 6309: uint16(20283), + 6310: uint16(20281), + 6311: uint16(20282), + 6312: uint16(4690), + 6313: uint16(20280), + 6314: uint16(20284), + 6315: uint16(20285), + 6316: uint16(3879), + 6317: uint16(20286), + 6318: uint16(20287), + 6319: uint16(7491), + 6320: uint16(20288), + 6321: uint16(5158), + 6322: uint16(20291), + 6323: uint16(20290), + 6324: uint16(20289), + 6325: uint16(19024), + 6326: uint16(10555), + 6327: uint16(20292), + 6328: uint16(20293), + 6329: uint16(20294), + 6330: uint16(20295), + 6331: uint16(20296), + 6332: uint16(20297), + 6333: uint16(4921), + 6334: uint16(20298), + 6335: uint16(20299), + 6336: uint16(9730), + 6337: uint16(20301), + 6338: uint16(4378), + 6339: uint16(20304), + 6340: uint16(20303), + 6341: uint16(4099), + 6342: uint16(5408), + 6343: uint16(10534), + 6344: uint16(8985), + 6345: uint16(6401), + 6346: uint16(6207), + 6347: uint16(7238), + 6348: uint16(7739), + 6349: uint16(20306), + 6350: uint16(20305), + 6351: uint16(11297), + 6352: uint16(4935), + 6353: uint16(10033), + 6354: uint16(9531), + 6355: uint16(7771), + 6356: uint16(11565), + 6357: uint16(5690), + 6358: uint16(20309), + 6359: uint16(20308), + 6360: uint16(10794), + 6361: uint16(9483), + 6362: uint16(4143), + 6363: uint16(20310), + 6364: uint16(20307), + 6365: uint16(10288), + 6366: uint16(11337), + 6367: uint16(20311), + 6368: uint16(20312), + 6369: uint16(20314), + 6370: uint16(8521), + 6371: uint16(4666), + 6372: uint16(4667), + 6373: uint16(20313), + 6374: uint16(4936), + 6375: uint16(5905), + 6376: uint16(4937), + 6377: uint16(9246), + 6378: uint16(11583), + 6379: uint16(5947), + 6380: uint16(20315), + 6381: uint16(20316), + 6382: uint16(20317), + 6383: uint16(20480), + 6384: uint16(20482), + 6385: uint16(20481), + 6386: uint16(10326), + 6387: uint16(20483), + 6388: uint16(20484), + 6389: uint16(20485), + 6390: uint16(20486), + 6391: uint16(20488), + 6392: uint16(20487), + 6393: uint16(20489), + 6394: uint16(10067), + 6395: uint16(17707), + 6396: uint16(7688), + 6397: uint16(5137), + 6398: uint16(20490), + 6399: uint16(20491), + 6400: uint16(12555), + 6401: uint16(15386), + 6402: uint16(10034), + 6403: uint16(3930), + 6404: uint16(3866), + 6405: uint16(6739), + 6406: uint16(10767), + 6407: uint16(7517), + 6408: uint16(20492), + 6409: uint16(11070), + 6410: uint16(20493), + 6411: uint16(11323), + 6412: uint16(4129), + 6413: uint16(6688), + 6414: uint16(20494), + 6415: uint16(4429), + 6416: uint16(20495), + 6417: uint16(20496), + 6418: uint16(20498), + 6419: uint16(20499), + 6420: uint16(20501), + 6421: uint16(20497), + 6422: uint16(20500), + 6423: uint16(4922), + 6424: uint16(20502), + 6425: uint16(20503), + 6426: uint16(20504), + 6427: uint16(20505), + 6428: uint16(20506), + 6429: uint16(20508), + 6430: uint16(20507), + 6431: uint16(20510), + 6432: uint16(20513), + 6433: uint16(20509), + 6434: uint16(20511), + 6435: uint16(20512), + 6436: uint16(20514), + 6437: uint16(5409), + 6438: uint16(6994), + 6439: uint16(20515), + 6440: uint16(20516), + 6441: uint16(6208), + 6442: uint16(20517), + 6443: uint16(4637), + 6444: uint16(9774), + 6445: uint16(20518), + 6446: uint16(20519), + 6447: uint16(8761), + 6448: uint16(9546), + 6449: uint16(20520), + 6450: uint16(9820), + 6451: uint16(8491), + 6452: uint16(4151), + 6453: uint16(5453), + 6454: uint16(5454), + 6455: uint16(8786), + 6456: uint16(20525), + 6457: uint16(5455), + 6458: uint16(4430), + 6459: uint16(20524), + 6460: uint16(20522), + 6461: uint16(20523), + 6462: uint16(20521), + 6463: uint16(20535), + 6464: uint16(20526), + 6465: uint16(20527), + 6466: uint16(20528), + 6467: uint16(20529), + 6468: uint16(20531), + 6469: uint16(20530), + 6470: uint16(7224), + 6471: uint16(20532), + 6472: uint16(20534), + 6473: uint16(5138), + 6474: uint16(20533), + 6475: uint16(8282), + 6476: uint16(5906), + 6477: uint16(20536), + 6478: uint16(8492), + 6479: uint16(20537), + 6480: uint16(9484), + 6481: uint16(20538), + 6482: uint16(20543), + 6483: uint16(20541), + 6484: uint16(20540), + 6485: uint16(20542), + 6486: uint16(20539), + 6487: uint16(20545), + 6488: uint16(20544), + 6489: uint16(20547), + 6490: uint16(5410), + 6491: uint16(20546), + 6492: uint16(20548), + 6493: uint16(20549), + 6494: uint16(20551), + 6495: uint16(20550), + 6496: uint16(20552), + 6497: uint16(20554), + 6498: uint16(20553), + 6499: uint16(6235), + 6500: uint16(20555), + 6501: uint16(20556), + 6502: uint16(4635), + 6503: uint16(20557), + 6504: uint16(20558), + 6505: uint16(7760), + 6506: uint16(20559), + 6507: uint16(20560), + 6508: uint16(20561), + 6509: uint16(20562), + 6510: uint16(6209), + 6511: uint16(20563), + 6512: uint16(20564), + 6513: uint16(20565), + 6514: uint16(20566), + 6515: uint16(20567), + 6516: uint16(10000), + 6517: uint16(20569), + 6518: uint16(10245), + 6519: uint16(20570), + 6520: uint16(20568), + 6521: uint16(20572), + 6522: uint16(20571), + 6523: uint16(20573), + 6524: uint16(20736), + 6525: uint16(20737), + 6526: uint16(20738), + 6527: uint16(20739), + 6528: uint16(20740), + 6529: uint16(20741), + 6530: uint16(20742), + 6531: uint16(20743), + 6532: uint16(20744), + 6533: uint16(20745), + 6534: uint16(20746), + 6535: uint16(20747), + 6536: uint16(20748), + 6537: uint16(20749), + 6538: uint16(15380), + 6539: uint16(20750), + 6540: uint16(17239), + 6541: uint16(5139), + 6542: uint16(4608), + 6543: uint16(6417), + 6544: uint16(20752), + 6545: uint16(20751), + 6546: uint16(11012), + 6547: uint16(20754), + 6548: uint16(20755), + 6549: uint16(20753), + 6550: uint16(20756), + 6551: uint16(10817), + 6552: uint16(20757), + 6553: uint16(5210), + 6554: uint16(11780), + 6555: uint16(20758), + 6556: uint16(20760), + 6557: uint16(3869), + 6558: uint16(20761), + 6559: uint16(10506), + 6560: uint16(20759), + 6561: uint16(20762), + 6562: uint16(20763), + 6563: uint16(20764), + 6564: uint16(20765), + 6565: uint16(20766), + 6566: uint16(10829), + 6567: uint16(6668), + 6568: uint16(6489), + 6569: uint16(8206), + 6570: uint16(20767), + 6571: uint16(20770), + 6572: uint16(20768), + 6573: uint16(20771), + 6574: uint16(5968), + 6575: uint16(20769), + 6576: uint16(20772), + 6577: uint16(20773), + 6578: uint16(20774), + 6579: uint16(20778), + 6580: uint16(6665), + 6581: uint16(8515), + 6582: uint16(20779), + 6583: uint16(20776), + 6584: uint16(20775), + 6585: uint16(20777), + 6586: uint16(5694), + 6587: uint16(20783), + 6588: uint16(20782), + 6589: uint16(20781), + 6590: uint16(3858), + 6591: uint16(20793), + 6592: uint16(20789), + 6593: uint16(20790), + 6594: uint16(20786), + 6595: uint16(20792), + 6596: uint16(20788), + 6597: uint16(4673), + 6598: uint16(11819), + 6599: uint16(20791), + 6600: uint16(20787), + 6601: uint16(20785), + 6602: uint16(20784), + 6603: uint16(20795), + 6604: uint16(20798), + 6605: uint16(20797), + 6606: uint16(20796), + 6607: uint16(10280), + 6608: uint16(20794), + 6609: uint16(3922), + 6610: uint16(20799), + 6611: uint16(20801), + 6612: uint16(4686), + 6613: uint16(20780), + 6614: uint16(4118), + 6615: uint16(20803), + 6616: uint16(20802), + 6617: uint16(20800), + 6618: uint16(8716), + 6619: uint16(10831), + 6620: uint16(11577), + 6621: uint16(20804), + 6622: uint16(20805), + 6623: uint16(20806), + 6624: uint16(20807), + 6625: uint16(20808), + 6626: uint16(8986), + 6627: uint16(20809), + 6628: uint16(10006), + 6629: uint16(20814), + 6630: uint16(20810), + 6631: uint16(20811), + 6632: uint16(10768), + 6633: uint16(11043), + 6634: uint16(9519), + 6635: uint16(20815), + 6636: uint16(20816), + 6637: uint16(9501), + 6638: uint16(20813), + 6639: uint16(20812), + 6640: uint16(4361), + 6641: uint16(20824), + 6642: uint16(20823), + 6643: uint16(4180), + 6644: uint16(20821), + 6645: uint16(20820), + 6646: uint16(20818), + 6647: uint16(4698), + 6648: uint16(20817), + 6649: uint16(6929), + 6650: uint16(4360), + 6651: uint16(6210), + 6652: uint16(20827), + 6653: uint16(20826), + 6654: uint16(20825), + 6655: uint16(20822), + 6656: uint16(20828), + 6657: uint16(20829), + 6658: uint16(20996), + 6659: uint16(20995), + 6660: uint16(20997), + 6661: uint16(4108), + 6662: uint16(20992), + 6663: uint16(20993), + 6664: uint16(6227), + 6665: uint16(11032), + 6666: uint16(20994), + 6667: uint16(10769), + 6668: uint16(21002), + 6669: uint16(20998), + 6670: uint16(21003), + 6671: uint16(21000), + 6672: uint16(20999), + 6673: uint16(5691), + 6674: uint16(21004), + 6675: uint16(21005), + 6676: uint16(21006), + 6677: uint16(21001), + 6678: uint16(20819), + 6679: uint16(21007), + 6680: uint16(9024), + 6681: uint16(21011), + 6682: uint16(21012), + 6683: uint16(21010), + 6684: uint16(21009), + 6685: uint16(21015), + 6686: uint16(21008), + 6687: uint16(21013), + 6688: uint16(21014), + 6689: uint16(21017), + 6690: uint16(21016), + 6691: uint16(21019), + 6692: uint16(21020), + 6693: uint16(21021), + 6694: uint16(11816), + 6695: uint16(21018), + 6696: uint16(8522), + 6697: uint16(6476), + 6698: uint16(21022), + 6699: uint16(21023), + 6700: uint16(21024), + 6701: uint16(21025), + 6702: uint16(21026), + 6703: uint16(5907), + 6704: uint16(21027), + 6705: uint16(21028), + 6706: uint16(6926), + 6707: uint16(21029), + 6708: uint16(21030), + 6709: uint16(21031), + 6710: uint16(21032), + 6711: uint16(21035), + 6712: uint16(21033), + 6713: uint16(11803), + 6714: uint16(21034), + 6715: uint16(11598), + 6716: uint16(21036), + 6717: uint16(11578), + 6718: uint16(21037), + 6719: uint16(9821), + 6720: uint16(21038), + 6721: uint16(21040), + 6722: uint16(21041), + 6723: uint16(21039), + 6724: uint16(6220), + 6725: uint16(11052), + 6726: uint16(10818), + 6727: uint16(13654), + 6728: uint16(15423), + 6729: uint16(10842), + 6730: uint16(4362), + 6731: uint16(21043), + 6732: uint16(5167), + 6733: uint16(21044), + 6734: uint16(21045), + 6735: uint16(21046), + 6736: uint16(6228), + 6737: uint16(21047), + 6738: uint16(16179), + 6739: uint16(11066), + 6740: uint16(8514), + 6741: uint16(21048), + 6742: uint16(21050), + 6743: uint16(21049), + 6744: uint16(21051), + 6745: uint16(21052), + 6746: uint16(21053), + 6747: uint16(21054), + 6748: uint16(21055), + 6749: uint16(21056), + 6750: uint16(21057), + 6751: uint16(21058), + 6752: uint16(21059), + 6753: uint16(21060), + 6754: uint16(21061), + 6755: uint16(21062), + 6756: uint16(21063), + 6757: uint16(9219), + 6758: uint16(5948), + 6759: uint16(21065), + 6760: uint16(8236), + 6761: uint16(21066), + 6762: uint16(21067), + 6763: uint16(10240), + 6764: uint16(21068), + 6765: uint16(21069), + 6766: uint16(16918), + 6767: uint16(19257), + 6768: uint16(20300), + 6769: uint16(21070), + 6770: uint16(21071), + 6771: uint16(21073), + 6772: uint16(21074), + 6773: uint16(21075), + 6774: uint16(11599), + 6775: uint16(21072), + 6776: uint16(21076), + 6777: uint16(21077), + 6778: uint16(21079), + 6779: uint16(21078), + 6780: uint16(21081), + 6781: uint16(21082), + 6782: uint16(21080), + 6783: uint16(11541), + 6784: uint16(21083), + 6785: uint16(21084), + 6786: uint16(16947), + 6787: uint16(21085), + 6788: uint16(9), + 6789: uint16(83), + 6790: uint16(79), + 6791: uint16(82), + 6792: uint16(84), + 6793: uint16(41), + 6794: uint16(42), + 6795: uint16(85), + 6796: uint16(59), + 6797: uint16(3), + 6798: uint16(4), + 6799: uint16(30), + 6800: uint16(527), + 6801: uint16(528), + 6802: uint16(529), + 6803: uint16(530), + 6804: uint16(531), + 6805: uint16(532), + 6806: uint16(533), + 6807: uint16(534), + 6808: uint16(535), + 6809: uint16(536), + 6810: uint16(6), + 6811: uint16(7), + 6812: uint16(66), + 6813: uint16(64), + 6814: uint16(67), + 6815: uint16(8), + 6816: uint16(86), + 6817: uint16(544), + 6818: uint16(545), + 6819: uint16(546), + 6820: uint16(547), + 6821: uint16(548), + 6822: uint16(549), + 6823: uint16(550), + 6824: uint16(551), + 6825: uint16(552), + 6826: uint16(553), + 6827: uint16(554), + 6828: uint16(555), + 6829: uint16(556), + 6830: uint16(557), + 6831: uint16(558), + 6832: uint16(559), + 6833: uint16(560), + 6834: uint16(561), + 6835: uint16(562), + 6836: uint16(563), + 6837: uint16(564), + 6838: uint16(565), + 6839: uint16(566), + 6840: uint16(567), + 6841: uint16(568), + 6842: uint16(569), + 6843: uint16(45), + 6844: uint16(46), + 6845: uint16(15), + 6846: uint16(17), + 6847: uint16(13), + 6848: uint16(576), + 6849: uint16(577), + 6850: uint16(578), + 6851: uint16(579), + 6852: uint16(580), + 6853: uint16(581), + 6854: uint16(582), + 6855: uint16(583), + 6856: uint16(584), + 6857: uint16(585), + 6858: uint16(586), + 6859: uint16(587), + 6860: uint16(588), + 6861: uint16(589), + 6862: uint16(590), + 6863: uint16(591), + 6864: uint16(592), + 6865: uint16(593), + 6866: uint16(594), + 6867: uint16(595), + 6868: uint16(596), + 6869: uint16(597), + 6870: uint16(598), + 6871: uint16(599), + 6872: uint16(600), + 6873: uint16(601), + 6874: uint16(47), + 6875: uint16(34), + 6876: uint16(48), + 6877: uint16(16), + 6878: uint16(78), +} + +func _fuzzycmp(tls *TLS, a uintptr, b uintptr) (r int32) { + for { + if !(**(**uint8)(__ccgo_up(a)) != 0 && **(**uint8)(__ccgo_up(b)) != 0) { + break + } + for **(**uint8)(__ccgo_up(a)) != 0 && uint32(**(**uint8)(__ccgo_up(a)))|uint32(32)-uint32('a') > uint32(26) && Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(a)))-int32('0')) > uint32(10) { + a = a + 1 + } + if uint32(**(**uint8)(__ccgo_up(a)))|uint32(32) != uint32(**(**uint8)(__ccgo_up(b))) { + return int32(1) + } + goto _1 + _1: + ; + a = a + 1 + b = b + 1 + } + return BoolInt32(Int32FromUint8(**(**uint8)(__ccgo_up(a))) != Int32FromUint8(**(**uint8)(__ccgo_up(b)))) +} + +func _find_charmap(tls *TLS, name uintptr) (r Tsize_t) { + var s uintptr + _ = s + if !(**(**uint8)(__ccgo_up(name)) != 0) { + name = uintptr(unsafe.Pointer(&_charmaps)) + } /* "utf8" */ + s = uintptr(unsafe.Pointer(&_charmaps)) + for { + if !(**(**uint8)(__ccgo_up(s)) != 0) { + break + } + if !(_fuzzycmp(tls, name, s) != 0) { + for { + if !(**(**uint8)(__ccgo_up(s)) != 0) { + break + } + goto _2 + _2: + ; + s = s + uintptr(_strlen(tls, s)+uint64(1)) + } + return Uint64FromInt64(int64(s+uintptr(1)) - t__predefined_ptrdiff_t(uintptr(unsafe.Pointer(&_charmaps)))) + } + s = s + uintptr(_strlen(tls, s)+uint64(1)) + if !(**(**uint8)(__ccgo_up(s)) != 0) { + if Int32FromUint8(**(**uint8)(__ccgo_up(s + 1))) > int32(0200) { + s = s + uintptr(2) + } else { + s = s + uintptr(uint32(2)+(uint32(64)-uint32(**(**uint8)(__ccgo_up(s + 1))))*uint32(5)) + } + } + goto _1 + _1: + } + return Uint64FromInt32(-Int32FromInt32(1)) +} + +type Tstateful_cd = struct { + Fbase_cd Ticonv_t + Fstate uint32 +} + +func _combine_to_from(tls *TLS, t Tsize_t, f Tsize_t) (r Ticonv_t) { + return uintptr(f<> int32(16) +} + +func _extract_to(tls *TLS, cd Ticonv_t) (r Tsize_t) { + return uint64(cd) >> int32(1) & uint64(0x7fff) +} + +func Xiconv_open(tls *TLS, to uintptr, from uintptr) (r Ticonv_t) { + if __ccgo_strace { + trc("tls=%v to=%v from=%v, (%v:)", tls, to, from, origin(2)) + defer func() { trc("-> %v", r) }() + } + var cd Ticonv_t + var f, t, v1, v2 Tsize_t + var scd uintptr + var v3 bool + _, _, _, _, _, _, _ = cd, f, scd, t, v1, v2, v3 + v1 = _find_charmap(tls, to) + t = v1 + if v3 = v1 == Uint64FromInt32(-Int32FromInt32(1)); !v3 { + v2 = _find_charmap(tls, from) + f = v2 + } + if v3 || v2 == Uint64FromInt32(-Int32FromInt32(1)) || Int32FromUint8(_charmaps[t]) >= int32(0330) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(-Int32FromInt32(1)) + } + cd = _combine_to_from(tls, t, f) + switch Int32FromUint8(_charmaps[f]) { + case int32(UTF_16): + fallthrough + case int32(UTF_32): + fallthrough + case int32(UCS2): + fallthrough + case int32(ISO2022_JP): + scd = Xmalloc(tls, uint64(16)) + if !(scd != 0) { + return uintptr(-Int32FromInt32(1)) + } + (*Tstateful_cd)(unsafe.Pointer(scd)).Fbase_cd = cd + (*Tstateful_cd)(unsafe.Pointer(scd)).Fstate = uint32(0) + cd = scd + } + return cd +} + +func _get_16(tls *TLS, s uintptr, e int32) (r uint32) { + e = e & int32(1) + return Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(e))))<> int32(8)) + **(**uint8)(__ccgo_up(s + uintptr(int32(1)-e))) = uint8(c) +} + +func _get_32(tls *TLS, s uintptr, e int32) (r uint32) { + e = e & int32(3) + return (uint32(**(**uint8)(__ccgo_up(s + uintptr(e))))+0)<> int32(24)) + **(**uint8)(__ccgo_up(s + uintptr(e^int32(1)))) = uint8(c >> int32(16)) + **(**uint8)(__ccgo_up(s + uintptr(e^int32(2)))) = uint8(c >> int32(8)) + **(**uint8)(__ccgo_up(s + uintptr(e^int32(3)))) = uint8(c) +} + +/* Adapt as needed */ + +func _legacy_map(tls *TLS, map1 uintptr, c uint32) (r uint32) { + var x, v1 uint32 + _, _ = x, v1 + if c < Uint32FromInt32(int32(4)*Int32FromUint8(**(**uint8)(__ccgo_up(map1 + uintptr(-Int32FromInt32(1)))))) { + return c + } + x = c - Uint32FromInt32(int32(4)*Int32FromUint8(**(**uint8)(__ccgo_up(map1 + uintptr(-Int32FromInt32(1)))))) + x = Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(map1 + uintptr(x*uint32(5)/uint32(4)))))>>(uint32(2)*x%uint32(8)) | Int32FromUint8(**(**uint8)(__ccgo_up(map1 + uintptr(x*uint32(5)/uint32(4)+uint32(1)))))<<(uint32(8)-uint32(2)*x%uint32(8))&int32(1023)) + if x < uint32(256) { + v1 = x + } else { + v1 = uint32(_legacy_chars[x-uint32(256)]) + } + return v1 +} + +func _uni_to_jis(tls *TLS, c uint32) (r uint32) { + var b, d, i, j, nel uint32 + _, _, _, _, _ = b, d, i, j, nel + nel = uint32(Uint64FromInt64(13758) / Uint64FromInt64(2)) + b = uint32(0) + for { + i = nel / uint32(2) + j = uint32(_rev_jis[b+i]) + d = uint32(**(**uint16)(__ccgo_up(uintptr(unsafe.Pointer(&_jis0208)) + uintptr(j/uint32(256))*188 + uintptr(j%uint32(256))*2))) + if d == c { + return j + uint32(0x2121) + } else { + if nel == uint32(1) { + return uint32(0) + } else { + if c < d { + nel = nel / uint32(2) + } else { + b = b + i + nel = nel - nel/uint32(2) + } + } + } + goto _1 + _1: + } + return r +} + +func Xiconv(tls *TLS, cd Ticonv_t, in uintptr, inb uintptr, out uintptr, outb uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v cd=%v in=%v inb=%v out=%v outb=%v, (%v:)", tls, cd, in, inb, out, outb, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var c, d, from, to, v62 uint32 + var err, i, i1, j, j1, v25, v26, v27 int32 + var k, l, tmplen, tmpx, x Tsize_t + var loc Tlocale_t + var map1, ploc, scd, tomap, v54, v55 uintptr + var totype, type1 uint8 + var _ /* ptmp at bp+48 */ uintptr + var _ /* st at bp+24 */ Tmbstate_t + var _ /* tmp at bp+40 */ struct { + Fwc [0][2]Twchar_t + Fc [8]uint8 + } + var _ /* tmp at bp+56 */ [4]uint8 + var _ /* wc at bp+32 */ Twchar_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = c, d, err, from, i, i1, j, j1, k, l, loc, map1, ploc, scd, tmplen, tmpx, to, tomap, totype, type1, x, v25, v26, v27, v54, v55, v62 + x = uint64(0) + scd = uintptr(0) + if !(uint64(cd)&Uint64FromInt32(1) != 0) { + scd = cd + cd = (*Tstateful_cd)(unsafe.Pointer(scd)).Fbase_cd + } + to = uint32(_extract_to(tls, cd)) + from = uint32(_extract_from(tls, cd)) + map1 = uintptr(unsafe.Pointer(&_charmaps)) + uintptr(from) + uintptr(1) + tomap = uintptr(unsafe.Pointer(&_charmaps)) + uintptr(to) + uintptr(1) + **(**Tmbstate_t)(__ccgo_up(bp + 24)) = Tmbstate_t{} + type1 = **(**uint8)(__ccgo_up(map1 + uintptr(-Int32FromInt32(1)))) + totype = **(**uint8)(__ccgo_up(tomap + uintptr(-Int32FromInt32(1)))) + ploc = uintptr(___get_tp(tls)) + 152 + loc = **(**Tlocale_t)(__ccgo_up(ploc)) + if !(in != 0) || !(**(**uintptr)(__ccgo_up(in)) != 0) || !(**(**Tsize_t)(__ccgo_up(inb)) != 0) { + return uint64(0) + } + **(**Tlocale_t)(__ccgo_up(ploc)) = uintptr(unsafe.Pointer(&X__c_dot_utf8_locale)) + for { + if !(**(**Tsize_t)(__ccgo_up(inb)) != 0) { + break + } + c = uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(in))))) + l = uint64(1) + switch Int32FromUint8(type1) { + case int32(UTF_8): + goto _2 + case int32(US_ASCII): + goto _3 + case int32(WCHAR_T): + goto _4 + case int32(UTF_32LE): + goto _5 + case int32(UTF_32BE): + goto _6 + case int32(UTF_16LE): + goto _7 + case int32(UTF_16BE): + goto _8 + case int32(UCS2LE): + goto _9 + case int32(UCS2BE): + goto _10 + case int32(UTF_16): + goto _11 + case int32(UCS2): + goto _12 + case int32(UTF_32): + goto _13 + case int32(SHIFT_JIS): + goto _14 + case int32(EUC_JP): + goto _15 + case int32(ISO2022_JP): + goto _16 + case int32(GB2312): + goto _17 + case int32(GBK): + goto _18 + case int32(GB18030): + goto _19 + case int32(BIG5): + goto _20 + case int32(EUC_KR): + goto _21 + default: + goto _22 + } + goto _23 + _2: + ; + if c < uint32(128) { + goto _23 + } + l = Xmbrtowc(tls, bp+32, **(**uintptr)(__ccgo_up(in)), **(**Tsize_t)(__ccgo_up(inb)), bp+24) + if l == Uint64FromInt32(-Int32FromInt32(1)) { + goto ilseq + } + if l == Uint64FromInt32(-Int32FromInt32(2)) { + goto starved + } + c = Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp + 32))) + goto _23 + _3: + ; + if c >= uint32(128) { + goto ilseq + } + goto _23 + _4: + ; + l = uint64(4) + if **(**Tsize_t)(__ccgo_up(inb)) < l { + goto starved + } + c = Uint32FromInt32(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(in))))) + if !(0 != 0) { + goto _24 + } + _6: + ; + _5: + ; + l = uint64(4) + if **(**Tsize_t)(__ccgo_up(inb)) < uint64(4) { + goto starved + } + c = _get_32(tls, **(**uintptr)(__ccgo_up(in)), Int32FromUint8(type1)) + _24: + ; + if c-uint32(0xd800) < uint32(0x800) || c >= uint32(0x110000) { + goto ilseq + } + goto _23 + _10: + ; + _9: + ; + _8: + ; + _7: + ; + l = uint64(2) + if **(**Tsize_t)(__ccgo_up(inb)) < uint64(2) { + goto starved + } + c = _get_16(tls, **(**uintptr)(__ccgo_up(in)), Int32FromUint8(type1)) + if c-Uint32FromInt32(0xdc00) < uint32(0x400) { + goto ilseq + } + if c-Uint32FromInt32(0xd800) < uint32(0x400) { + if Uint32FromInt32(Int32FromUint8(type1)-int32(UCS2BE)) < uint32(2) { + goto ilseq + } + l = uint64(4) + if **(**Tsize_t)(__ccgo_up(inb)) < uint64(4) { + goto starved + } + d = _get_16(tls, **(**uintptr)(__ccgo_up(in))+UintptrFromInt32(2), Int32FromUint8(type1)) + if d-Uint32FromInt32(0xdc00) >= uint32(0x400) { + goto ilseq + } + c = (c-uint32(0xd7c0))< uint32(127) { + d = d - 1 + } + d = d - uint32(64) + } else { + if d-uint32(159) <= Uint32FromInt32(Int32FromInt32(252)-Int32FromInt32(159)) { + c = c + 1 + d = d - uint32(159) + } + } + if c >= uint32(84) { + goto ilseq + } + c = uint32(**(**uint16)(__ccgo_up(uintptr(unsafe.Pointer(&_jis0208)) + uintptr(c)*188 + uintptr(d)*2))) + if !(c != 0) { + goto ilseq + } + goto _23 + _15: + ; + if c < uint32(128) { + goto _23 + } + l = uint64(2) + if **(**Tsize_t)(__ccgo_up(inb)) < uint64(2) { + goto starved + } + d = uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(in)) + UintptrFromInt32(1)))) + if c == uint32(0x8e) { + c = d + if c-uint32(0xa1) > Uint32FromInt32(Int32FromInt32(0xdf)-Int32FromInt32(0xa1)) { + goto ilseq + } + c = c + Uint32FromInt32(Int32FromInt32(0xff61)-Int32FromInt32(0xa1)) + goto _23 + } + c = c - uint32(0xa1) + d = d - uint32(0xa1) + if c >= uint32(84) || d >= uint32(94) { + goto ilseq + } + c = uint32(**(**uint16)(__ccgo_up(uintptr(unsafe.Pointer(&_jis0208)) + uintptr(c)*188 + uintptr(d)*2))) + if !(c != 0) { + goto ilseq + } + goto _23 + _16: + ; + if c >= uint32(128) { + goto ilseq + } + if c == uint32('\033') { + l = uint64(3) + if **(**Tsize_t)(__ccgo_up(inb)) < uint64(3) { + goto starved + } + c = uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(in)) + UintptrFromInt32(1)))) + d = uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(in)) + UintptrFromInt32(2)))) + if c != uint32('(') && c != uint32('$') { + goto ilseq + } + switch Uint32FromInt32(Int32FromInt32(128)*BoolInt32(c == Uint32FromUint8('$'))) + d { + case uint32('B'): + (*Tstateful_cd)(unsafe.Pointer(scd)).Fstate = uint32(0) + goto _1 + case uint32('J'): + (*Tstateful_cd)(unsafe.Pointer(scd)).Fstate = uint32(1) + goto _1 + case uint32('I'): + (*Tstateful_cd)(unsafe.Pointer(scd)).Fstate = uint32(4) + goto _1 + case Uint32FromInt32(Int32FromInt32(128) + Int32FromUint8('@')): + (*Tstateful_cd)(unsafe.Pointer(scd)).Fstate = uint32(2) + goto _1 + case Uint32FromInt32(Int32FromInt32(128) + Int32FromUint8('B')): + (*Tstateful_cd)(unsafe.Pointer(scd)).Fstate = uint32(3) + goto _1 + } + goto ilseq + } + switch (*Tstateful_cd)(unsafe.Pointer(scd)).Fstate { + case uint32(1): + if c == uint32('\\') { + c = uint32(0xa5) + } + if c == uint32('~') { + c = uint32(0x203e) + } + case uint32(2): + fallthrough + case uint32(3): + l = uint64(2) + if **(**Tsize_t)(__ccgo_up(inb)) < uint64(2) { + goto starved + } + d = uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(in)) + UintptrFromInt32(1)))) + c = c - uint32(0x21) + d = d - uint32(0x21) + if c >= uint32(84) || d >= uint32(94) { + goto ilseq + } + c = uint32(**(**uint16)(__ccgo_up(uintptr(unsafe.Pointer(&_jis0208)) + uintptr(c)*188 + uintptr(d)*2))) + if !(c != 0) { + goto ilseq + } + case uint32(4): + if c-uint32(0x60) < uint32(0x1f) { + goto ilseq + } + if c-uint32(0x21) < uint32(0x5e) { + c = c + Uint32FromInt32(Int32FromInt32(0xff61)-Int32FromInt32(0x21)) + } + break + } + goto _23 + _17: + ; + if c < uint32(128) { + goto _23 + } + if c < uint32(0xa1) { + goto ilseq + } + _18: + ; + if c == uint32(128) { + c = uint32(0x20ac) + goto _23 + } + _19: + ; + if c < uint32(128) { + goto _23 + } + c = c - uint32(0x81) + if c >= uint32(126) { + goto ilseq + } + l = uint64(2) + if **(**Tsize_t)(__ccgo_up(inb)) < uint64(2) { + goto starved + } + d = uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(in)) + UintptrFromInt32(1)))) + if d < uint32(0xa1) && Int32FromUint8(type1) == int32(GB2312) { + goto ilseq + } + if d-uint32(0x40) >= uint32(191) || d == uint32(127) { + if d-uint32('0') > uint32(9) || Int32FromUint8(type1) != int32(GB18030) { + goto ilseq + } + l = uint64(4) + if **(**Tsize_t)(__ccgo_up(inb)) < uint64(4) { + goto starved + } + c = (uint32(10)*c + d - uint32('0')) * uint32(1260) + d = uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(in)) + UintptrFromInt32(2)))) + if d-uint32(0x81) > uint32(126) { + goto ilseq + } + c = c + uint32(10)*(d-uint32(0x81)) + d = uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(in)) + UintptrFromInt32(3)))) + if d-uint32('0') > uint32(9) { + goto ilseq + } + c = c + (d - uint32('0')) + c = c + uint32(128) + d = uint32(0) + for { + if !(d <= c) { + break + } + k = uint64(0) + i = 0 + for { + if !(i < int32(126)) { + break + } + j = 0 + for { + if !(j < int32(190)) { + break + } + if uint32(**(**uint16)(__ccgo_up(uintptr(unsafe.Pointer(&_gb18030)) + uintptr(i)*380 + uintptr(j)*2)))-d <= c-d { + k = k + 1 + } + goto _31 + _31: + ; + j = j + 1 + } + goto _30 + _30: + ; + i = i + 1 + } + d = c + uint32(1) + c = uint32(uint64(c) + k) + goto _29 + _29: + } + goto _23 + } + d = d - uint32(0x40) + if d > uint32(63) { + d = d - 1 + } + c = uint32(**(**uint16)(__ccgo_up(uintptr(unsafe.Pointer(&_gb18030)) + uintptr(c)*380 + uintptr(d)*2))) + goto _23 + _20: + ; + if c < uint32(128) { + goto _23 + } + l = uint64(2) + if **(**Tsize_t)(__ccgo_up(inb)) < uint64(2) { + goto starved + } + d = uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(in)) + UintptrFromInt32(1)))) + if d-uint32(0x40) >= Uint32FromInt32(Int32FromInt32(0xff)-Int32FromInt32(0x40)) || d-uint32(0x7f) < Uint32FromInt32(Int32FromInt32(0xa1)-Int32FromInt32(0x7f)) { + goto ilseq + } + d = d - uint32(0x40) + if d > uint32(0x3e) { + d = d - uint32(0x22) + } + if c-uint32(0xa1) >= Uint32FromInt32(Int32FromInt32(0xfa)-Int32FromInt32(0xa1)) { + if c-uint32(0x87) >= Uint32FromInt32(Int32FromInt32(0xff)-Int32FromInt32(0x87)) { + goto ilseq + } + if c < uint32(0xa1) { + c = c - uint32(0x87) + } else { + c = c - Uint32FromInt32(Int32FromInt32(0x87)+(Int32FromInt32(0xfa)-Int32FromInt32(0xa1))) + } + c = Uint32FromInt32(Int32FromUint16(_hkscs[uint32(4867)+(c*uint32(157)+d)/uint32(16)])>>((c*uint32(157)+d)%uint32(16))%int32(2)< **(**Tsize_t)(__ccgo_up(outb)) { + goto toobig + } + if tmpx != 0 { + x = x + 1 + } + Xmemcpy(tls, **(**uintptr)(__ccgo_up(out)), bp+40, tmplen) + **(**uintptr)(__ccgo_up(out)) += uintptr(tmplen) + **(**Tsize_t)(__ccgo_up(outb)) -= tmplen + goto _1 + } + if !(c != 0) { + goto ilseq + } + goto _23 + } + c = c - uint32(0xa1) + c = Uint32FromInt32(Int32FromUint16(**(**uint16)(__ccgo_up(uintptr(unsafe.Pointer(&_big5)) + uintptr(c)*314 + uintptr(d)*2))) | BoolInt32(c == uint32(0x27) && (d == uint32(0x3a) || d == uint32(0x3c) || d == uint32(0x42)))<= uint32(93) || d >= uint32(94) { + c = c + Uint32FromInt32(Int32FromInt32(0xa1)-Int32FromInt32(0x81)) + d = d + uint32(0xa1) + if c >= uint32(93) || c >= Uint32FromInt32(Int32FromInt32(0xc6)-Int32FromInt32(0x81)) && d > uint32(0x52) { + goto ilseq + } + if d-uint32('A') < uint32(26) { + d = d - uint32('A') + } else { + if d-uint32('a') < uint32(26) { + d = d - uint32('a') + uint32(26) + } else { + if d-uint32(0x81) < Uint32FromInt32(Int32FromInt32(0xff)-Int32FromInt32(0x81)) { + d = d - uint32(0x81) + uint32(52) + } else { + goto ilseq + } + } + } + if c < uint32(0x20) { + c = uint32(178)*c + d + } else { + c = Uint32FromInt32(Int32FromInt32(178)*Int32FromInt32(0x20)) + uint32(84)*(c-uint32(0x20)) + d + } + c = c + uint32(0xac00) + d = uint32(0xac00) + for { + if !(d <= c) { + break + } + k = uint64(0) + i1 = 0 + for { + if !(i1 < int32(93)) { + break + } + j1 = 0 + for { + if !(j1 < int32(94)) { + break + } + if uint32(**(**uint16)(__ccgo_up(uintptr(unsafe.Pointer(&_ksc)) + uintptr(i1)*188 + uintptr(j1)*2)))-d <= c-d { + k = k + 1 + } + goto _34 + _34: + ; + j1 = j1 + 1 + } + goto _33 + _33: + ; + i1 = i1 + 1 + } + d = c + uint32(1) + c = uint32(uint64(c) + k) + goto _32 + _32: + } + goto _23 + } + c = uint32(**(**uint16)(__ccgo_up(uintptr(unsafe.Pointer(&_ksc)) + uintptr(c)*188 + uintptr(d)*2))) + if !(c != 0) { + goto ilseq + } + goto _23 + _22: + ; + if !(c != 0) { + goto _23 + } + c = _legacy_map(tls, map1, c) + if !(c != 0) { + goto ilseq + } + _23: + ; + switch Int32FromUint8(totype) { + case int32(WCHAR_T): + goto _35 + case int32(UTF_8): + goto _36 + case int32(US_ASCII): + goto _37 + default: + goto _38 + case int32(SHIFT_JIS): + goto _39 + case int32(EUC_JP): + goto _40 + case int32(ISO2022_JP): + goto _41 + case int32(UCS2): + goto _42 + case int32(UTF_16LE): + goto _43 + case int32(UTF_16BE): + goto _44 + case int32(UTF_16): + goto _45 + case int32(UCS2LE): + goto _46 + case int32(UCS2BE): + goto _47 + case int32(UTF_32): + goto _48 + case int32(UTF_32LE): + goto _49 + case int32(UTF_32BE): + goto _50 + } + goto _51 + _35: + ; + if **(**Tsize_t)(__ccgo_up(outb)) < uint64(4) { + goto toobig + } + **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(out)))) = Int32FromUint32(c) + **(**uintptr)(__ccgo_up(out)) += uintptr(4) + **(**Tsize_t)(__ccgo_up(outb)) -= uint64(4) + goto _51 + _36: + ; + if **(**Tsize_t)(__ccgo_up(outb)) < uint64(4) { + k = Uint64FromInt32(Xwctomb(tls, bp+56, Int32FromUint32(c))) + if **(**Tsize_t)(__ccgo_up(outb)) < k { + goto toobig + } + Xmemcpy(tls, **(**uintptr)(__ccgo_up(out)), bp+56, k) + } else { + k = Uint64FromInt32(Xwctomb(tls, **(**uintptr)(__ccgo_up(out)), Int32FromUint32(c))) + } + **(**uintptr)(__ccgo_up(out)) += uintptr(k) + **(**Tsize_t)(__ccgo_up(outb)) -= k + goto _51 + _37: + ; + if !(c > uint32(0x7f)) { + goto _52 + } + goto subst + subst: + ; + x = x + 1 + c = Uint32FromUint8('*') + _52: + ; + _38: + ; + if **(**Tsize_t)(__ccgo_up(outb)) < uint64(1) { + goto toobig + } + if !(c < uint32(256) && c == _legacy_map(tls, tomap, c)) { + goto _53 + } + goto revout + revout: + ; + if **(**Tsize_t)(__ccgo_up(outb)) < uint64(1) { + goto toobig + } + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8(c) + **(**Tsize_t)(__ccgo_up(outb)) -= uint64(1) + goto _51 + _53: + ; + d = c + c = Uint32FromInt32(int32(4) * Int32FromUint8(totype)) + for { + if !(c < uint32(256)) { + break + } + if d == _legacy_map(tls, tomap, c) { + goto revout + } + goto _56 + _56: + ; + c = c + 1 + } + goto subst + _39: + ; + if c < uint32(128) { + goto revout + } + if c == uint32(0xa5) { + x = x + 1 + c = uint32('\\') + goto revout + } + if c == uint32(0x203e) { + x = x + 1 + c = uint32('~') + goto revout + } + if c-uint32(0xff61) <= Uint32FromInt32(Int32FromInt32(0xdf)-Int32FromInt32(0xa1)) { + c = c + Uint32FromInt32(Int32FromInt32(0xa1)-Int32FromInt32(0xff61)) + goto revout + } + c = _uni_to_jis(tls, c) + if !(c != 0) { + goto subst + } + if **(**Tsize_t)(__ccgo_up(outb)) < uint64(2) { + goto toobig + } + d = c % uint32(256) + c = c / uint32(256) + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + if c < uint32(95) { + v25 = int32(112) + } else { + v25 = int32(176) + } + **(**uint8)(__ccgo_up(v54)) = uint8((c+uint32(1))/uint32(2) + Uint32FromInt32(v25)) + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + if c%uint32(2) != 0 { + v62 = d + uint32(31) + d/uint32(96) + } else { + v62 = d + uint32(126) + } + **(**uint8)(__ccgo_up(v54)) = uint8(v62) + **(**Tsize_t)(__ccgo_up(outb)) -= uint64(2) + goto _51 + _40: + ; + if c < uint32(128) { + goto revout + } + if c-uint32(0xff61) <= Uint32FromInt32(Int32FromInt32(0xdf)-Int32FromInt32(0xa1)) { + c = c + Uint32FromInt32(Int32FromInt32(0x0e00)+Int32FromInt32(0x21)-Int32FromInt32(0xff61)) + } else { + c = _uni_to_jis(tls, c) + } + if !(c != 0) { + goto subst + } + if **(**Tsize_t)(__ccgo_up(outb)) < uint64(2) { + goto toobig + } + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8(c/uint32(256) + uint32(0x80)) + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8(c%uint32(256) + uint32(0x80)) + **(**Tsize_t)(__ccgo_up(outb)) -= uint64(2) + goto _51 + _41: + ; + if c < uint32(128) { + goto revout + } + if c-uint32(0xff61) <= Uint32FromInt32(Int32FromInt32(0xdf)-Int32FromInt32(0xa1)) || c == uint32(0xa5) || c == uint32(0x203e) { + if **(**Tsize_t)(__ccgo_up(outb)) < uint64(7) { + goto toobig + } + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8('\033') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8('(') + if c == uint32(0xa5) { + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8('J') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8('\\') + } else { + if c == uint32(0x203e) { + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8('J') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8('~') + } else { + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8('I') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8(c - uint32(0xff61) + uint32(0x21)) + } + } + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8('\033') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8('(') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8('B') + **(**Tsize_t)(__ccgo_up(outb)) -= uint64(7) + goto _51 + } + c = _uni_to_jis(tls, c) + if !(c != 0) { + goto subst + } + if **(**Tsize_t)(__ccgo_up(outb)) < uint64(8) { + goto toobig + } + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8('\033') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8('$') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8('B') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8(c / uint32(256)) + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8(c % uint32(256)) + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8('\033') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8('(') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8('B') + **(**Tsize_t)(__ccgo_up(outb)) -= uint64(8) + goto _51 + _42: + ; + totype = uint8(UCS2BE) + _47: + ; + _46: + ; + _45: + ; + _44: + ; + _43: + ; + if c < uint32(0x10000) || Uint32FromInt32(Int32FromUint8(totype)-int32(UCS2BE)) < uint32(2) { + if c >= uint32(0x10000) { + c = uint32(0xFFFD) + } + if **(**Tsize_t)(__ccgo_up(outb)) < uint64(2) { + goto toobig + } + _put_16(tls, **(**uintptr)(__ccgo_up(out)), c, Int32FromUint8(totype)) + **(**uintptr)(__ccgo_up(out)) += uintptr(2) + **(**Tsize_t)(__ccgo_up(outb)) -= uint64(2) + goto _51 + } + if **(**Tsize_t)(__ccgo_up(outb)) < uint64(4) { + goto toobig + } + c = c - uint32(0x10000) + _put_16(tls, **(**uintptr)(__ccgo_up(out)), c>>int32(10)|uint32(0xd800), Int32FromUint8(totype)) + _put_16(tls, **(**uintptr)(__ccgo_up(out))+UintptrFromInt32(2), c&uint32(0x3ff)|uint32(0xdc00), Int32FromUint8(totype)) + **(**uintptr)(__ccgo_up(out)) += uintptr(4) + **(**Tsize_t)(__ccgo_up(outb)) -= uint64(4) + goto _51 + _48: + ; + totype = uint8(UTF_32BE) + _50: + ; + _49: + ; + if **(**Tsize_t)(__ccgo_up(outb)) < uint64(4) { + goto toobig + } + _put_32(tls, **(**uintptr)(__ccgo_up(out)), c, Int32FromUint8(totype)) + **(**uintptr)(__ccgo_up(out)) += uintptr(4) + **(**Tsize_t)(__ccgo_up(outb)) -= uint64(4) + goto _51 + _51: + ; + goto _1 + _1: + ; + **(**uintptr)(__ccgo_up(in)) += uintptr(l) + **(**Tsize_t)(__ccgo_up(inb)) -= l + } + **(**Tlocale_t)(__ccgo_up(ploc)) = loc + return x + goto ilseq +ilseq: + ; + err = int32(EILSEQ) + x = Uint64FromInt32(-Int32FromInt32(1)) + goto end + goto toobig +toobig: + ; + err = int32(E2BIG) + x = Uint64FromInt32(-Int32FromInt32(1)) + goto end + goto starved +starved: + ; + err = int32(EINVAL) + x = Uint64FromInt32(-Int32FromInt32(1)) + goto end +end: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = err + **(**Tlocale_t)(__ccgo_up(ploc)) = loc + return x +} + +func Xiconv_close(tls *TLS, cd Ticonv_t) (r int32) { + if __ccgo_strace { + trc("tls=%v cd=%v, (%v:)", tls, cd, origin(2)) + defer func() { trc("-> %v", r) }() + } + if !(uint64(cd)&Uint64FromInt32(1) != 0) { + Xfree(tls, cd) + } + return 0 +} + +var _c_time = [316]uint8{'S', 'u', 'n', 0, 'M', 'o', 'n', 0, 'T', 'u', 'e', 0, 'W', 'e', 'd', 0, 'T', 'h', 'u', 0, 'F', 'r', 'i', 0, 'S', 'a', 't', 0, 'S', 'u', 'n', 'd', 'a', 'y', 0, 'M', 'o', 'n', 'd', 'a', 'y', 0, 'T', 'u', 'e', 's', 'd', 'a', 'y', 0, 'W', 'e', 'd', 'n', 'e', 's', 'd', 'a', 'y', 0, 'T', 'h', 'u', 'r', 's', 'd', 'a', 'y', 0, 'F', 'r', 'i', 'd', 'a', 'y', 0, 'S', 'a', 't', 'u', 'r', 'd', 'a', 'y', 0, 'J', 'a', 'n', 0, 'F', 'e', 'b', 0, 'M', 'a', 'r', 0, 'A', 'p', 'r', 0, 'M', 'a', 'y', 0, 'J', 'u', 'n', 0, 'J', 'u', 'l', 0, 'A', 'u', 'g', 0, 'S', 'e', 'p', 0, 'O', 'c', 't', 0, 'N', 'o', 'v', 0, 'D', 'e', 'c', 0, 'J', 'a', 'n', 'u', 'a', 'r', 'y', 0, 'F', 'e', 'b', 'r', 'u', 'a', 'r', 'y', 0, 'M', 'a', 'r', 'c', 'h', 0, 'A', 'p', 'r', 'i', 'l', 0, 'M', 'a', 'y', 0, 'J', 'u', 'n', 'e', 0, 'J', 'u', 'l', 'y', 0, 'A', 'u', 'g', 'u', 's', 't', 0, 'S', 'e', 'p', 't', 'e', 'm', 'b', 'e', 'r', 0, 'O', 'c', 't', 'o', 'b', 'e', 'r', 0, 'N', 'o', 'v', 'e', 'm', 'b', 'e', 'r', 0, 'D', 'e', 'c', 'e', 'm', 'b', 'e', 'r', 0, 'A', 'M', 0, 'P', 'M', 0, '%', 'a', ' ', '%', 'b', ' ', '%', 'e', ' ', '%', 'T', ' ', '%', 'Y', 0, '%', 'm', '/', '%', 'd', '/', '%', 'y', 0, '%', 'H', ':', '%', 'M', ':', '%', 'S', 0, '%', 'I', ':', '%', 'M', ':', '%', 'S', ' ', '%', 'p', 0, 0, 0, '%', 'm', '/', '%', 'd', '/', '%', 'y', 0, '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 0, '%', 'a', ' ', '%', 'b', ' ', '%', 'e', ' ', '%', 'T', ' ', '%', 'Y', 0, '%', 'H', ':', '%', 'M', ':', '%', 'S'} + +var _c_messages = [19]uint8{'^', '[', 'y', 'Y', ']', 0, '^', '[', 'n', 'N', ']', 0, 'y', 'e', 's', 0, 'n', 'o'} +var _c_numeric = [3]uint8{'.'} + +func X__nl_langinfo_l(tls *TLS, item Tnl_item, loc Tlocale_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v item=%v loc=%v, (%v:)", tls, item, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + var cat, idx int32 + var str, v1 uintptr + _, _, _, _ = cat, idx, str, v1 + cat = item >> int32(16) + idx = item & int32(65535) + if item == int32(CODESET) { + if **(**uintptr)(__ccgo_up(loc)) != 0 { + v1 = __ccgo_ts + 419 + } else { + v1 = __ccgo_ts + 564 + } + return v1 + } + /* _NL_LOCALE_NAME extension */ + if idx == int32(65535) && cat < int32(LC_ALL) { + if **(**uintptr)(__ccgo_up(loc + uintptr(cat)*8)) != 0 { + v1 = **(**uintptr)(__ccgo_up(loc + uintptr(cat)*8)) + 16 + } else { + v1 = __ccgo_ts + 570 + } + return v1 + } + switch cat { + case int32(LC_NUMERIC): + if idx > int32(1) { + return __ccgo_ts + } + str = uintptr(unsafe.Pointer(&_c_numeric)) + case int32(LC_TIME): + if idx > int32(0x31) { + return __ccgo_ts + } + str = uintptr(unsafe.Pointer(&_c_time)) + case int32(LC_MONETARY): + if idx > 0 { + return __ccgo_ts + } + str = __ccgo_ts + case int32(LC_MESSAGES): + if idx > int32(3) { + return __ccgo_ts + } + str = uintptr(unsafe.Pointer(&_c_messages)) + default: + return __ccgo_ts + } + for { + if !(idx != 0) { + break + } + for { + if !(**(**uint8)(__ccgo_up(str)) != 0) { + break + } + goto _4 + _4: + ; + str = str + 1 + } + goto _3 + _3: + ; + idx = idx - 1 + str = str + 1 + } + if cat != int32(LC_NUMERIC) && **(**uint8)(__ccgo_up(str)) != 0 { + str = X__lctrans(tls, str, **(**uintptr)(__ccgo_up(loc + uintptr(cat)*8))) + } + return str +} + +func X__nl_langinfo(tls *TLS, item Tnl_item) (r uintptr) { + if __ccgo_strace { + trc("tls=%v item=%v, (%v:)", tls, item, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__nl_langinfo_l(tls, item, (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale) +} + +func Xnl_langinfo(tls *TLS, item Tnl_item) (r uintptr) { + if __ccgo_strace { + trc("tls=%v item=%v, (%v:)", tls, item, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__nl_langinfo(tls, item) +} + +func Xnl_langinfo_l(tls *TLS, item Tnl_item, loc Tlocale_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v item=%v loc=%v, (%v:)", tls, item, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__nl_langinfo_l(tls, item, loc) +} + +func X__lctrans_impl(tls *TLS, msg uintptr, lm uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v msg=%v lm=%v, (%v:)", tls, msg, lm, origin(2)) + defer func() { trc("-> %v", r) }() + } + var trans, v1 uintptr + _, _ = trans, v1 + trans = uintptr(0) + if lm != 0 { + trans = X__mo_lookup(tls, (*t__locale_map)(unsafe.Pointer(lm)).Fmap1, (*t__locale_map)(unsafe.Pointer(lm)).Fmap_size, msg) + } + if trans != 0 { + v1 = trans + } else { + v1 = msg + } + return v1 +} + +var _envvars = [6][12]uint8{ + 0: {'L', 'C', '_', 'C', 'T', 'Y', 'P', 'E'}, + 1: {'L', 'C', '_', 'N', 'U', 'M', 'E', 'R', 'I', 'C'}, + 2: {'L', 'C', '_', 'T', 'I', 'M', 'E'}, + 3: {'L', 'C', '_', 'C', 'O', 'L', 'L', 'A', 'T', 'E'}, + 4: {'L', 'C', '_', 'M', 'O', 'N', 'E', 'T', 'A', 'R', 'Y'}, + 5: {'L', 'C', '_', 'M', 'E', 'S', 'S', 'A', 'G', 'E', 'S'}, +} + +func X__get_locale(tls *TLS, cat int32, val uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v cat=%v val=%v, (%v:)", tls, cat, val, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(272) + defer tls.Free(272) + var builtin int32 + var l, n Tsize_t + var map1, new1, p, path, z, v1, v2, v4, v6 uintptr + var v3, v5, v7 bool + var _ /* buf at bp+0 */ [256]uint8 + var _ /* map_size at bp+256 */ Tsize_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = builtin, l, map1, n, new1, p, path, z, v1, v2, v3, v4, v5, v6, v7 + new1 = uintptr(0) + path = uintptr(0) + if !(**(**uint8)(__ccgo_up(val)) != 0) { + v1 = Xgetenv(tls, __ccgo_ts+572) + val = v1 + if v3 = v1 != 0 && **(**uint8)(__ccgo_up(val)) != 0; !v3 { + v2 = Xgetenv(tls, uintptr(unsafe.Pointer(&_envvars))+uintptr(cat)*12) + val = v2 + } + if v5 = v3 || v2 != 0 && **(**uint8)(__ccgo_up(val)) != 0; !v5 { + v4 = Xgetenv(tls, __ccgo_ts+433) + val = v4 + } + if v7 = v5 || v4 != 0 && **(**uint8)(__ccgo_up(val)) != 0; !v7 { + v6 = __ccgo_ts + 579 + val = v6 + } + _ = v7 || v6 != 0 + } + /* Limit name length and forbid leading dot or any slashes. */ + n = uint64(0) + for { + if !(n < uint64(LOCALE_NAME_MAX) && **(**uint8)(__ccgo_up(val + uintptr(n))) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(val + uintptr(n)))) != int32('/')) { + break + } + goto _8 + _8: + ; + n = n + 1 + } + if Int32FromUint8(**(**uint8)(__ccgo_up(val))) == int32('.') || **(**uint8)(__ccgo_up(val + uintptr(n))) != 0 { + val = __ccgo_ts + 579 + } + builtin = BoolInt32(Int32FromUint8(**(**uint8)(__ccgo_up(val))) == int32('C') && !(**(**uint8)(__ccgo_up(val + 1)) != 0) || !(Xstrcmp(tls, val, __ccgo_ts+579) != 0) || !(Xstrcmp(tls, val, __ccgo_ts+587) != 0)) + if builtin != 0 { + if cat == LC_CTYPE && Int32FromUint8(**(**uint8)(__ccgo_up(val + 1))) == int32('.') { + return uintptr(unsafe.Pointer(&X__c_dot_utf8)) + } + return uintptr(0) + } + p = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_loc_head))) + for { + if !(p != 0) { + break + } + if !(Xstrcmp(tls, val, p+16) != 0) { + return p + } + goto _9 + _9: + ; + p = (*t__locale_map)(unsafe.Pointer(p)).Fnext + } + if !(X__libc.Fsecure != 0) { + path = Xgetenv(tls, __ccgo_ts+593) + } + /* FIXME: add a default path? */ + if path != 0 { + for { + if !(**(**uint8)(__ccgo_up(path)) != 0) { + break + } + z = X__strchrnul(tls, path, int32(':')) + l = Uint64FromInt64(int64(z) - int64(path)) + if l >= uint64(256)-n-uint64(2) { + goto _10 + } + Xmemcpy(tls, bp, path, l) + (**(**[256]uint8)(__ccgo_up(bp)))[l] = uint8('/') + Xmemcpy(tls, bp+uintptr(l)+uintptr(1), val, n) + (**(**[256]uint8)(__ccgo_up(bp)))[l+uint64(1)+n] = uint8(0) + map1 = X__map_file(tls, bp, bp+256) + if map1 != 0 { + new1 = Xmalloc(tls, uint64(48)) + if !(new1 != 0) { + X__munmap(tls, map1, **(**Tsize_t)(__ccgo_up(bp + 256))) + break + } + (*t__locale_map)(unsafe.Pointer(new1)).Fmap1 = map1 + (*t__locale_map)(unsafe.Pointer(new1)).Fmap_size = **(**Tsize_t)(__ccgo_up(bp + 256)) + Xmemcpy(tls, new1+16, val, n) + **(**uint8)(__ccgo_up(new1 + 16 + uintptr(n))) = uint8(0) + (*t__locale_map)(unsafe.Pointer(new1)).Fnext = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_loc_head))) + AtomicStorePUintptr(uintptr(unsafe.Pointer(&_loc_head)), new1) + break + } + goto _10 + _10: + ; + path = z + BoolUintptr(!!(**(**uint8)(__ccgo_up(z)) != 0)) + } + } + /* If no locale definition was found, make a locale map + * object anyway to store the name, which is kept for the + * sake of being able to do message translations at the + * application level. */ + if v3 = !(new1 != 0); v3 { + v1 = Xmalloc(tls, uint64(48)) + new1 = v1 + } + if v3 && v1 != 0 { + (*t__locale_map)(unsafe.Pointer(new1)).Fmap1 = X__c_dot_utf8.Fmap1 + (*t__locale_map)(unsafe.Pointer(new1)).Fmap_size = X__c_dot_utf8.Fmap_size + Xmemcpy(tls, new1+16, val, n) + **(**uint8)(__ccgo_up(new1 + 16 + uintptr(n))) = uint8(0) + (*t__locale_map)(unsafe.Pointer(new1)).Fnext = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_loc_head))) + AtomicStorePUintptr(uintptr(unsafe.Pointer(&_loc_head)), new1) + } + /* For LC_CTYPE, never return a null pointer unless the + * requested name was "C" or "POSIX". */ + if !(new1 != 0) && cat == LC_CTYPE { + new1 = uintptr(unsafe.Pointer(&X__c_dot_utf8)) + } + return new1 +} + +var _loc_head uintptr + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +var _posix_lconv = Tlconv{ + Fdecimal_point: __ccgo_ts + 606, + Fthousands_sep: __ccgo_ts, + Fgrouping: __ccgo_ts, + Fint_curr_symbol: __ccgo_ts, + Fcurrency_symbol: __ccgo_ts, + Fmon_decimal_point: __ccgo_ts, + Fmon_thousands_sep: __ccgo_ts, + Fmon_grouping: __ccgo_ts, + Fpositive_sign: __ccgo_ts, + Fnegative_sign: __ccgo_ts, + Fint_frac_digits: uint8(CHAR_MAX), + Ffrac_digits: uint8(CHAR_MAX), + Fp_cs_precedes: uint8(CHAR_MAX), + Fp_sep_by_space: uint8(CHAR_MAX), + Fn_cs_precedes: uint8(CHAR_MAX), + Fn_sep_by_space: uint8(CHAR_MAX), + Fp_sign_posn: uint8(CHAR_MAX), + Fn_sign_posn: uint8(CHAR_MAX), + Fint_p_cs_precedes: uint8(CHAR_MAX), + Fint_p_sep_by_space: uint8(CHAR_MAX), + Fint_n_cs_precedes: uint8(CHAR_MAX), + Fint_n_sep_by_space: uint8(CHAR_MAX), + Fint_p_sign_posn: uint8(CHAR_MAX), + Fint_n_sign_posn: uint8(CHAR_MAX), +} + +func Xlocaleconv(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(unsafe.Pointer(&_posix_lconv)) +} + +var _default_locale_init_done int32 +var _default_locale t__locale_struct +var _default_ctype_locale t__locale_struct + +func X__loc_is_allocated(tls *TLS, loc Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v loc=%v, (%v:)", tls, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(loc != 0 && loc != uintptr(unsafe.Pointer(&X__c_locale)) && loc != uintptr(unsafe.Pointer(&X__c_dot_utf8_locale)) && loc != uintptr(unsafe.Pointer(&_default_locale)) && loc != uintptr(unsafe.Pointer(&_default_ctype_locale))) +} + +func _do_newlocale(tls *TLS, mask int32, name uintptr, loc Tlocale_t) (r Tlocale_t) { + bp := tls.Alloc(48) + defer tls.Free(48) + var i, i1 int32 + var v2, v3 uintptr + var v5 Tlocale_t + var _ /* tmp at bp+0 */ t__locale_struct + _, _, _, _, _ = i, i1, v2, v3, v5 + i = 0 + for { + if !(i < int32(LC_ALL)) { + break + } + if !(mask&(Int32FromInt32(1)< %v", r) }() + } + ___lock(tls, uintptr(unsafe.Pointer(&X__locale_lock))) + loc = _do_newlocale(tls, mask, name, loc) + ___unlock(tls, uintptr(unsafe.Pointer(&X__locale_lock))) + return loc +} + +func Xnewlocale(tls *TLS, mask int32, name uintptr, loc Tlocale_t) (r Tlocale_t) { + if __ccgo_strace { + trc("tls=%v mask=%v name=%v loc=%v, (%v:)", tls, mask, name, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__newlocale(tls, mask, name, loc) +} + +/* +grammar: + +Start = Expr ';' +Expr = Or | Or '?' Expr ':' Expr +Or = And | Or '||' And +And = Eq | And '&&' Eq +Eq = Rel | Eq '==' Rel | Eq '!=' Rel +Rel = Add | Rel '<=' Add | Rel '>=' Add | Rel '<' Add | Rel '>' Add +Add = Mul | Add '+' Mul | Add '-' Mul +Mul = Prim | Mul '*' Prim | Mul '/' Prim | Mul '%' Prim +Prim = '(' Expr ')' | '!' Prim | decimal | 'n' + +internals: + +recursive descent expression evaluator with stack depth limit. +for binary operators an operator-precedence parser is used. +eval* functions store the result of the parsed subexpression +and return a pointer to the next non-space character. +*/ + +type Tst = struct { + Fr uint64 + Fn uint64 + Fop int32 +} + +func _skipspace(tls *TLS, s uintptr) (r uintptr) { + var v1, v2 int32 + _, _ = v1, v2 + for { + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(s))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _3 + _3: + if !(v2 != 0) { + break + } + s = s + 1 + } + return s +} + +func _evalprim(tls *TLS, st uintptr, s uintptr, d int32) (r uintptr) { + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 int32 + var _ /* e at bp+0 */ uintptr + _ = v1 + d = d - 1 + v1 = d + if v1 < 0 { + return __ccgo_ts + } + s = _skipspace(tls, s) + if BoolInt32(uint32(**(**uint8)(__ccgo_up(s)))-uint32('0') < uint32(10)) != 0 { + (*Tst)(unsafe.Pointer(st)).Fr = Xstrtoul(tls, s, bp, int32(10)) + if **(**uintptr)(__ccgo_up(bp)) == s || (*Tst)(unsafe.Pointer(st)).Fr == Uint64FromInt32(-Int32FromInt32(1)) { + return __ccgo_ts + } + return _skipspace(tls, **(**uintptr)(__ccgo_up(bp))) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('n') { + (*Tst)(unsafe.Pointer(st)).Fr = (*Tst)(unsafe.Pointer(st)).Fn + return _skipspace(tls, s+uintptr(1)) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('(') { + s = _evalexpr(tls, st, s+uintptr(1), d) + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) != int32(')') { + return __ccgo_ts + } + return _skipspace(tls, s+uintptr(1)) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('!') { + s = _evalprim(tls, st, s+uintptr(1), d) + (*Tst)(unsafe.Pointer(st)).Fr = BoolUint64(!((*Tst)(unsafe.Pointer(st)).Fr != 0)) + return s + } + return __ccgo_ts +} + +func _binop(tls *TLS, st uintptr, op int32, left uint64) (r int32) { + var a, b uint64 + _, _ = a, b + a = left + b = (*Tst)(unsafe.Pointer(st)).Fr + switch op { + case 0: + (*Tst)(unsafe.Pointer(st)).Fr = BoolUint64(a != 0 || b != 0) + return 0 + case int32(1): + (*Tst)(unsafe.Pointer(st)).Fr = BoolUint64(a != 0 && b != 0) + return 0 + case int32(2): + (*Tst)(unsafe.Pointer(st)).Fr = BoolUint64(a == b) + return 0 + case int32(3): + (*Tst)(unsafe.Pointer(st)).Fr = BoolUint64(a != b) + return 0 + case int32(4): + (*Tst)(unsafe.Pointer(st)).Fr = BoolUint64(a >= b) + return 0 + case int32(5): + (*Tst)(unsafe.Pointer(st)).Fr = BoolUint64(a <= b) + return 0 + case int32(6): + (*Tst)(unsafe.Pointer(st)).Fr = BoolUint64(a > b) + return 0 + case int32(7): + (*Tst)(unsafe.Pointer(st)).Fr = BoolUint64(a < b) + return 0 + case int32(8): + (*Tst)(unsafe.Pointer(st)).Fr = a + b + return 0 + case int32(9): + (*Tst)(unsafe.Pointer(st)).Fr = a - b + return 0 + case int32(10): + (*Tst)(unsafe.Pointer(st)).Fr = a * b + return 0 + case int32(11): + if b != 0 { + (*Tst)(unsafe.Pointer(st)).Fr = a % b + return 0 + } + return int32(1) + case int32(12): + if b != 0 { + (*Tst)(unsafe.Pointer(st)).Fr = a / b + return 0 + } + return int32(1) + } + return int32(1) +} + +func _parseop(tls *TLS, st uintptr, s uintptr) (r uintptr) { + var i int32 + _ = i + i = 0 + for { + if !(i < int32(11)) { + break + } + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == Int32FromUint8(_opch[i]) { + /* note: >,< are accepted with or without = */ + if i < int32(6) && Int32FromUint8(**(**uint8)(__ccgo_up(s + 1))) == Int32FromUint8(_opch2[i]) { + (*Tst)(unsafe.Pointer(st)).Fop = i + return s + uintptr(2) + } + if i >= int32(4) { + (*Tst)(unsafe.Pointer(st)).Fop = i + int32(2) + return s + uintptr(1) + } + break + } + goto _1 + _1: + ; + i = i + 1 + } + (*Tst)(unsafe.Pointer(st)).Fop = int32(13) + return s +} + +var _opch = [11]uint8{'|', '&', '=', '!', '>', '<', '+', '-', '*', '%', '/'} + +var _opch2 = [6]uint8{'|', '&', '=', '=', '=', '='} + +func _evalbinop(tls *TLS, st uintptr, s uintptr, minprec int32, d int32) (r uintptr) { + var left uint64 + var op int32 + _, _ = left, op + d = d - 1 + s = _evalprim(tls, st, s, d) + s = _parseop(tls, st, s) + for { + /* + st->r (left hand side value) and st->op are now set, + get the right hand side or back out if op has low prec, + if op was missing then prec[op]==0 + */ + op = (*Tst)(unsafe.Pointer(st)).Fop + if Int32FromUint8(_prec[op]) <= minprec { + return s + } + left = (*Tst)(unsafe.Pointer(st)).Fr + s = _evalbinop(tls, st, s, Int32FromUint8(_prec[op]), d) + if _binop(tls, st, op, left) != 0 { + return __ccgo_ts + } + goto _1 + _1: + } + return r +} + +var _prec = [14]uint8{ + 0: uint8(1), + 1: uint8(2), + 2: uint8(3), + 3: uint8(3), + 4: uint8(4), + 5: uint8(4), + 6: uint8(4), + 7: uint8(4), + 8: uint8(5), + 9: uint8(5), + 10: uint8(6), + 11: uint8(6), + 12: uint8(6), +} + +func _evalexpr(tls *TLS, st uintptr, s uintptr, d int32) (r uintptr) { + var a, b, v2 uint64 + var v1 int32 + _, _, _, _ = a, b, v1, v2 + d = d - 1 + v1 = d + if v1 < 0 { + return __ccgo_ts + } + s = _evalbinop(tls, st, s, 0, d) + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) != int32('?') { + return s + } + a = (*Tst)(unsafe.Pointer(st)).Fr + s = _evalexpr(tls, st, s+uintptr(1), d) + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) != int32(':') { + return __ccgo_ts + } + b = (*Tst)(unsafe.Pointer(st)).Fr + s = _evalexpr(tls, st, s+uintptr(1), d) + if a != 0 { + v2 = b + } else { + v2 = (*Tst)(unsafe.Pointer(st)).Fr + } + (*Tst)(unsafe.Pointer(st)).Fr = v2 + return s +} + +func X__pleval(tls *TLS, s uintptr, n uint64) (r uint64) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v, (%v:)", tls, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var v1 uint64 + var _ /* st at bp+0 */ Tst + _ = v1 + (**(**Tst)(__ccgo_up(bp))).Fn = n + s = _evalexpr(tls, bp, s, int32(100)) + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32(';') { + v1 = (**(**Tst)(__ccgo_up(bp))).Fr + } else { + v1 = Uint64FromInt32(-Int32FromInt32(1)) + } + return v1 +} + +var _buf1 [144]uint8 + +func Xsetlocale(tls *TLS, cat int32, name uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v cat=%v name=%v, (%v:)", tls, cat, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(80) + defer tls.Free(80) + var i, same int32 + var l Tsize_t + var lm, lm1, p, part1, ret, s, z, v3 uintptr + var _ /* part at bp+48 */ [24]uint8 + var _ /* tmp_locale at bp+0 */ t__locale_struct + _, _, _, _, _, _, _, _, _, _, _ = i, l, lm, lm1, p, part1, ret, s, same, z, v3 + if Uint32FromInt32(cat) > uint32(LC_ALL) { + return uintptr(0) + } + ___lock(tls, uintptr(unsafe.Pointer(&X__locale_lock))) + /* For LC_ALL, setlocale is required to return a string which + * encodes the current setting for all categories. The format of + * this string is unspecified, and only the following code, which + * performs both the serialization and deserialization, depends + * on the format, so it can easily be changed if needed. */ + if cat == int32(LC_ALL) { + if name != 0 { + **(**[24]uint8)(__ccgo_up(bp + 48)) = [24]uint8{'C', '.', 'U', 'T', 'F', '-', '8'} + p = name + i = 0 + for { + if !(i < int32(LC_ALL)) { + break + } + z = X__strchrnul(tls, p, int32(';')) + if int64(z)-int64(p) <= int64(LOCALE_NAME_MAX) { + Xmemcpy(tls, bp+48, p, Uint64FromInt64(int64(z)-int64(p))) + (**(**[24]uint8)(__ccgo_up(bp + 48)))[int64(z)-int64(p)] = uint8(0) + if **(**uint8)(__ccgo_up(z)) != 0 { + p = z + uintptr(1) + } + } + lm = X__get_locale(tls, i, bp+48) + if lm == uintptr(-Int32FromInt32(1)) { + ___unlock(tls, uintptr(unsafe.Pointer(&X__locale_lock))) + return uintptr(0) + } + **(**uintptr)(__ccgo_up(bp + uintptr(i)*8)) = lm + goto _1 + _1: + ; + i = i + 1 + } + X__libc.Fglobal_locale = **(**t__locale_struct)(__ccgo_up(bp)) + } + s = uintptr(unsafe.Pointer(&_buf1)) + same = 0 + i = 0 + for { + if !(i < int32(LC_ALL)) { + break + } + lm1 = **(**uintptr)(__ccgo_up(uintptr(unsafe.Pointer(&X__libc)) + 56 + uintptr(i)*8)) + if lm1 == **(**uintptr)(__ccgo_up(uintptr(unsafe.Pointer(&X__libc)) + 56)) { + same = same + 1 + } + if lm1 != 0 { + v3 = lm1 + 16 + } else { + v3 = __ccgo_ts + 570 + } + part1 = v3 + l = _strlen(tls, part1) + Xmemcpy(tls, s, part1, l) + **(**uint8)(__ccgo_up(s + uintptr(l))) = uint8(';') + s = s + uintptr(l+uint64(1)) + goto _2 + _2: + ; + i = i + 1 + } + s = s - 1 + v3 = s + **(**uint8)(__ccgo_up(v3)) = uint8(0) + ___unlock(tls, uintptr(unsafe.Pointer(&X__locale_lock))) + if same == int32(LC_ALL) { + v3 = part1 + } else { + v3 = uintptr(unsafe.Pointer(&_buf1)) + } + return v3 + } + if name != 0 { + lm = X__get_locale(tls, cat, name) + if lm == uintptr(-Int32FromInt32(1)) { + ___unlock(tls, uintptr(unsafe.Pointer(&X__locale_lock))) + return uintptr(0) + } + **(**uintptr)(__ccgo_up(uintptr(unsafe.Pointer(&X__libc)) + 56 + uintptr(cat)*8)) = lm + } else { + lm = **(**uintptr)(__ccgo_up(uintptr(unsafe.Pointer(&X__libc)) + 56 + uintptr(cat)*8)) + } + if lm != 0 { + v3 = lm + 16 + } else { + v3 = __ccgo_ts + 570 + } + ret = v3 + ___unlock(tls, uintptr(unsafe.Pointer(&X__locale_lock))) + return ret +} + +func X__strcoll_l(tls *TLS, l uintptr, r uintptr, loc Tlocale_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v loc=%v, (%v:)", tls, l, r, loc, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return Xstrcmp(tls, l, r) +} + +func Xstrcoll(tls *TLS, l uintptr, r uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v, (%v:)", tls, l, r, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return X__strcoll_l(tls, l, r, (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale) +} + +func Xstrcoll_l(tls *TLS, l uintptr, r uintptr, loc Tlocale_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v loc=%v, (%v:)", tls, l, r, loc, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return X__strcoll_l(tls, l, r, loc) +} + +func _vstrfmon_l(tls *TLS, s uintptr, n Tsize_t, loc Tlocale_t, fmt uintptr, ap Tva_list) (r Tssize_t) { + bp := tls.Alloc(32) + defer tls.Free(32) + var fill, fw, intl, left, lp, negpar, nogrp, nosym, rp, w int32 + var l Tsize_t + var s0, v5, v6 uintptr + var x float64 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = fill, fw, intl, l, left, lp, negpar, nogrp, nosym, rp, s0, w, x, v5, v6 + s0 = s +_3: + ; + if !(n != 0 && **(**uint8)(__ccgo_up(fmt)) != 0) { + goto _1 + } + if !(Int32FromUint8(**(**uint8)(__ccgo_up(fmt))) != int32('%')) { + goto _4 + } + goto literal +literal: + ; + v5 = s + s = s + 1 + v6 = fmt + fmt = fmt + 1 + **(**uint8)(__ccgo_up(v5)) = **(**uint8)(__ccgo_up(v6)) + n = n - 1 + goto _2 +_4: + ; + fmt = fmt + 1 + if Int32FromUint8(**(**uint8)(__ccgo_up(fmt))) == int32('%') { + goto literal + } + fill = int32(' ') + nogrp = 0 + negpar = 0 + nosym = 0 + left = 0 + for { + switch Int32FromUint8(**(**uint8)(__ccgo_up(fmt))) { + case int32('='): + fmt = fmt + 1 + v5 = fmt + fill = Int32FromUint8(**(**uint8)(__ccgo_up(v5))) + goto _7 + case int32('^'): + nogrp = int32(1) + goto _7 + case int32('('): + negpar = int32(1) + fallthrough + case int32('+'): + goto _7 + case int32('!'): + nosym = int32(1) + goto _7 + case int32('-'): + left = int32(1) + goto _7 + } + break + goto _7 + _7: + ; + fmt = fmt + 1 + } + fw = 0 + for { + if !(BoolInt32(uint32(**(**uint8)(__ccgo_up(fmt)))-uint32('0') < uint32(10)) != 0) { + break + } + fw = int32(10)*fw + (Int32FromUint8(**(**uint8)(__ccgo_up(fmt))) - int32('0')) + goto _9 + _9: + ; + fmt = fmt + 1 + } + lp = 0 + rp = int32(2) + if Int32FromUint8(**(**uint8)(__ccgo_up(fmt))) == int32('#') { + lp = 0 + fmt = fmt + 1 + for { + if !(BoolInt32(uint32(**(**uint8)(__ccgo_up(fmt)))-uint32('0') < uint32(10)) != 0) { + break + } + lp = int32(10)*lp + (Int32FromUint8(**(**uint8)(__ccgo_up(fmt))) - int32('0')) + goto _10 + _10: + ; + fmt = fmt + 1 + } + } + if Int32FromUint8(**(**uint8)(__ccgo_up(fmt))) == int32('.') { + rp = 0 + fmt = fmt + 1 + for { + if !(BoolInt32(uint32(**(**uint8)(__ccgo_up(fmt)))-uint32('0') < uint32(10)) != 0) { + break + } + rp = int32(10)*rp + (Int32FromUint8(**(**uint8)(__ccgo_up(fmt))) - int32('0')) + goto _11 + _11: + ; + fmt = fmt + 1 + } + } + v5 = fmt + fmt = fmt + 1 + intl = BoolInt32(Int32FromUint8(**(**uint8)(__ccgo_up(v5))) == int32('i')) + w = lp + int32(1) + rp + if !(left != 0) && fw > w { + w = fw + } + x = VaFloat64(&ap) + l = Uint64FromInt32(Xsnprintf(tls, s, n, __ccgo_ts+608, VaList(bp+8, w, rp, x))) + if l >= n { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(E2BIG) + return int64(-int32(1)) + } + s = s + uintptr(l) + n = n - l + goto _2 +_2: + ; + goto _3 + goto _1 +_1: + ; + return int64(s) - int64(s0) +} + +func Xstrfmon_l(tls *TLS, s uintptr, n Tsize_t, loc Tlocale_t, fmt uintptr, va uintptr) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v loc=%v fmt=%v va=%v, (%v:)", tls, s, n, loc, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret Tssize_t + _, _ = ap, ret + ap = va + ret = _vstrfmon_l(tls, s, n, loc, fmt, ap) + _ = ap + return ret +} + +func Xstrfmon(tls *TLS, s uintptr, n Tsize_t, fmt uintptr, va uintptr) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v fmt=%v va=%v, (%v:)", tls, s, n, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret Tssize_t + _, _ = ap, ret + ap = va + ret = _vstrfmon_l(tls, s, n, (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale, fmt, ap) + _ = ap + return ret +} + +func Xstrtof_l(tls *TLS, s uintptr, p uintptr, l Tlocale_t) (r float32) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v l=%v, (%v:)", tls, s, p, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtof(tls, s, p) +} + +func Xstrtod_l(tls *TLS, s uintptr, p uintptr, l Tlocale_t) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v l=%v, (%v:)", tls, s, p, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtod(tls, s, p) +} + +func Xstrtold_l(tls *TLS, s uintptr, p uintptr, l Tlocale_t) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v l=%v, (%v:)", tls, s, p, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtold(tls, s, p) +} + +func X__strtod_l(tls *TLS, s uintptr, p uintptr, l Tlocale_t) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v l=%v, (%v:)", tls, s, p, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtod_l(tls, s, p, l) +} + +func X__strtof_l(tls *TLS, s uintptr, p uintptr, l Tlocale_t) (r float32) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v l=%v, (%v:)", tls, s, p, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtof_l(tls, s, p, l) +} + +func X__strtold_l(tls *TLS, s uintptr, p uintptr, l Tlocale_t) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v l=%v, (%v:)", tls, s, p, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtold_l(tls, s, p, l) +} + +// C documentation +// +// /* collate only by code points */ +func X__strxfrm_l(tls *TLS, dest uintptr, src uintptr, n Tsize_t, loc Tlocale_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v n=%v loc=%v, (%v:)", tls, dest, src, n, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l Tsize_t + _ = l + l = _strlen(tls, src) + if n > l { + Xstrcpy(tls, dest, src) + } + return l +} + +func Xstrxfrm(tls *TLS, dest uintptr, src uintptr, n Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v n=%v, (%v:)", tls, dest, src, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__strxfrm_l(tls, dest, src, n, (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale) +} + +// C documentation +// +// /* collate only by code points */ +func Xstrxfrm_l(tls *TLS, dest uintptr, src uintptr, n Tsize_t, loc Tlocale_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v n=%v loc=%v, (%v:)", tls, dest, src, n, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__strxfrm_l(tls, dest, src, n, loc) +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +var _current_domain uintptr + +func X__gettextdomain(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 uintptr + _ = v1 + if _current_domain != 0 { + v1 = _current_domain + } else { + v1 = __ccgo_ts + 462 + } + return v1 +} + +func Xtextdomain(tls *TLS, domainname uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v domainname=%v, (%v:)", tls, domainname, origin(2)) + defer func() { trc("-> %v", r) }() + } + var domlen Tsize_t + _ = domlen + if !(domainname != 0) { + return X__gettextdomain(tls) + } + domlen = _strlen(tls, domainname) + if domlen > uint64(NAME_MAX) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(0) + } + if !(_current_domain != 0) { + _current_domain = Xmalloc(tls, Uint64FromInt32(Int32FromInt32(NAME_MAX)+Int32FromInt32(1))) + if !(_current_domain != 0) { + return uintptr(0) + } + } + Xmemcpy(tls, _current_domain, domainname, domlen+uint64(1)) + return _current_domain +} + +func Xgettext(tls *TLS, msgid uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v msgid=%v, (%v:)", tls, msgid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xdgettext(tls, uintptr(0), msgid) +} + +func Xngettext(tls *TLS, msgid1 uintptr, msgid2 uintptr, n uint64) (r uintptr) { + if __ccgo_strace { + trc("tls=%v msgid1=%v msgid2=%v n=%v, (%v:)", tls, msgid1, msgid2, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xdngettext(tls, uintptr(0), msgid1, msgid2, n) +} + +func X__uselocale(tls *TLS, new1 Tlocale_t) (r Tlocale_t) { + if __ccgo_strace { + trc("tls=%v new1=%v, (%v:)", tls, new1, origin(2)) + defer func() { trc("-> %v", r) }() + } + var global, old, v1 Tlocale_t + var self Tpthread_t + _, _, _, _ = global, old, self, v1 + self = uintptr(___get_tp(tls)) + old = (*t__pthread)(unsafe.Pointer(self)).Flocale + global = uintptr(unsafe.Pointer(&X__libc)) + 56 + if new1 != 0 { + if new1 == uintptr(-Int32FromInt32(1)) { + v1 = global + } else { + v1 = new1 + } + (*t__pthread)(unsafe.Pointer(self)).Flocale = v1 + } + if old == global { + v1 = uintptr(-Int32FromInt32(1)) + } else { + v1 = old + } + return v1 +} + +func Xuselocale(tls *TLS, new1 Tlocale_t) (r Tlocale_t) { + if __ccgo_strace { + trc("tls=%v new1=%v, (%v:)", tls, new1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__uselocale(tls, new1) +} + +// C documentation +// +// /* FIXME: stub */ +func X__wcscoll_l(tls *TLS, l uintptr, r uintptr, locale Tlocale_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v locale=%v, (%v:)", tls, l, r, locale, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return Xwcscmp(tls, l, r) +} + +func Xwcscoll(tls *TLS, l uintptr, r uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v, (%v:)", tls, l, r, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return X__wcscoll_l(tls, l, r, (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale) +} + +// C documentation +// +// /* FIXME: stub */ +func Xwcscoll_l(tls *TLS, l uintptr, r uintptr, locale Tlocale_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v locale=%v, (%v:)", tls, l, r, locale, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return X__wcscoll_l(tls, l, r, locale) +} + +// C documentation +// +// /* collate only by code points */ +func X__wcsxfrm_l(tls *TLS, dest uintptr, src uintptr, n Tsize_t, loc Tlocale_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v n=%v loc=%v, (%v:)", tls, dest, src, n, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l Tsize_t + _ = l + l = Xwcslen(tls, src) + if l < n { + Xwmemcpy(tls, dest, src, l+uint64(1)) + } else { + if n != 0 { + Xwmemcpy(tls, dest, src, n-uint64(1)) + **(**Twchar_t)(__ccgo_up(dest + uintptr(n-uint64(1))*4)) = 0 + } + } + return l +} + +func Xwcsxfrm(tls *TLS, dest uintptr, src uintptr, n Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v n=%v, (%v:)", tls, dest, src, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__wcsxfrm_l(tls, dest, src, n, (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale) +} + +// C documentation +// +// /* collate only by code points */ +func Xwcsxfrm_l(tls *TLS, dest uintptr, src uintptr, n Tsize_t, loc Tlocale_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v n=%v loc=%v, (%v:)", tls, dest, src, n, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__wcsxfrm_l(tls, dest, src, n, loc) +} + +func Xreallocarray(tls *TLS, ptr uintptr, m Tsize_t, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v ptr=%v m=%v n=%v, (%v:)", tls, ptr, m, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + if n != 0 && m > Uint64FromInt32(-Int32FromInt32(1))/n { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOMEM) + return uintptr(0) + } + return Xrealloc(tls, ptr, m*n) +} + +const LDBL_EPSILON2 = 0 +const LDBL_MAX2 = 0 +const LDBL_MIN2 = 0 + +var _C1 = float64(0.0416666666666666) /* 0x3FA55555, 0x5555554C */ +var _C2 = -Float64FromFloat64(0.001388888888887411) /* 0xBF56C16C, 0x16C15177 */ +var _C3 = float64(2.480158728947673e-05) /* 0x3EFA01A0, 0x19CB1590 */ +var _C4 = -Float64FromFloat64(2.7557314351390663e-07) /* 0xBE927E4F, 0x809C52AD */ +var _C5 = float64(2.087572321298175e-09) /* 0x3E21EE9E, 0xBDB4B1C4 */ +var _C6 = -Float64FromFloat64(1.1359647557788195e-11) /* 0xBDA8FAE9, 0xBE8838D4 */ + +func X__cos(tls *TLS, x float64, y float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var hz, r, w, z Tdouble_t + _, _, _, _ = hz, r, w, z + z = Tdouble_t(x * x) + w = Tdouble_t(z * z) + r = Tdouble_t(z*(_C1+float64(z*(_C2+float64(z*_C3))))) + Tdouble_t(Tdouble_t(w*w)*(_C4+float64(z*(_C5+float64(z*_C6))))) + hz = Tdouble_t(float64(0.5) * z) + w = float64(1) - hz + return w + (Float64FromFloat64(1) - w - hz + (Tdouble_t(z*r) - Tdouble_t(x*y))) +} + +// C documentation +// +// /* |cos(x) - c(x)| < 2**-34.1 (~[-5.37e-11, 5.295e-11]). */ + +var _C0 = -Float64FromFloat64(0.499999997251031) /* -0.499999997251031003120 */ +var _C11 = float64(0.04166662332373906) /* 0.0416666233237390631894 */ +var _C21 = -Float64FromFloat64(0.001388676377460993) /* -0.00138867637746099294692 */ +var _C31 = float64(2.439044879627741e-05) /* 0.0000243904487962774090654 */ + +func X__cosdf(tls *TLS, x float64) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, w, z Tdouble_t + _, _, _ = r, w, z + /* Try to optimize for parallel evaluation as in __tandf.c. */ + z = Tdouble_t(x * x) + w = Tdouble_t(z * z) + r = _C21 + float64(z*_C31) + return float32(float64(1) + float64(z*_C0) + float64(w*_C11) + float64(Tdouble_t(w*z)*r)) +} + +// C documentation +// +// /* k is such that k*ln2 has minimal relative error and x - kln2 > log(DBL_MIN) */ +var _k2 = int32(2043) +var _kln22 = float64(1416.0996898839683) + +// C documentation +// +// /* exp(x)/2 for x >= log(DBL_MAX), slightly better than 0.5*exp(x/2)*exp(x/2) */ +func X__expo2(tls *TLS, x float64, sign float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v sign=%v, (%v:)", tls, x, sign, origin(2)) + defer func() { trc("-> %v", r) }() + } + var scale float64 + var v1 Tuint64_t + _, _ = scale, v1 + /* note that k is odd and scale*scale overflows */ + v1 = uint64(Uint32FromInt32(Int32FromInt32(0x3ff)+_k2/Int32FromInt32(2))< log(FLT_MIN) */ +var _k3 = int32(235) +var _kln23 = Float32FromFloat32(162.88958740234375) + +// C documentation +// +// /* expf(x)/2 for x >= log(FLT_MAX), slightly better than 0.5f*expf(x/2)*expf(x/2) */ +func X__expo2f(tls *TLS, x float32, sign float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v sign=%v, (%v:)", tls, x, sign, origin(2)) + defer func() { trc("-> %v", r) }() + } + var scale float32 + var v1 Tuint32_t + _, _ = scale, v1 + /* note that k is odd and scale*scale overflows */ + v1 = Uint32FromInt32(Int32FromInt32(0x7f)+_k3/Int32FromInt32(2)) << int32(23) + scale = *(*float32)(unsafe.Pointer(&v1)) + /* exp(x - k ln2) * 2**(k-1) */ + /* in directed rounding correct sign before rounding or overflow is important */ + return float32(float32(Xexpf(tls, x-_kln23)*float32(sign*scale)) * scale) +} + +func X__fpclassify(tls *TLS, x float64) (r int32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e, v1 int32 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _ = e, v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + e = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + if !(e != 0) { + if *(*Tuint64_t)(unsafe.Pointer(bp))< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e, v1 int32 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _ = e, v1 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + e = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(23) & uint32(0xff)) + if !(e != 0) { + if *(*Tuint32_t)(unsafe.Pointer(bp))< %v", r) }() + } + return X__fpclassify(tls, x) +} + +const pio2_hi = 0 +const pio2_lo = 0 + +func X__math_divzero(tls *TLS, sign Tuint32_t) (r float64) { + if __ccgo_strace { + trc("tls=%v sign=%v, (%v:)", tls, sign, origin(2)) + defer func() { trc("-> %v", r) }() + } + var y, v1, v2 float64 + _, _, _ = y, v1, v2 + if sign != 0 { + v1 = -Float64FromFloat64(1) + } else { + v1 = float64(1) + } + y = v1 + v2 = y + goto _3 +_3: + return v2 / float64(0) +} + +func X__math_divzerof(tls *TLS, sign Tuint32_t) (r float32) { + if __ccgo_strace { + trc("tls=%v sign=%v, (%v:)", tls, sign, origin(2)) + defer func() { trc("-> %v", r) }() + } + var y, v1, v2 float32 + _, _, _ = y, v1, v2 + if sign != 0 { + v1 = -Float32FromFloat32(1) + } else { + v1 = Float32FromFloat32(1) + } + y = v1 + v2 = y + goto _3 +_3: + return v2 / Float32FromFloat32(0) +} + +func X__math_invalid(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return (x - x) / (x - x) +} + +func X__math_invalidf(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return (x - x) / (x - x) +} + +func X__math_oflow(tls *TLS, sign Tuint32_t) (r float64) { + if __ccgo_strace { + trc("tls=%v sign=%v, (%v:)", tls, sign, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__math_xflow(tls, sign, float64(3.105036184601418e+231)) +} + +func X__math_oflowf(tls *TLS, sign Tuint32_t) (r float32) { + if __ccgo_strace { + trc("tls=%v sign=%v, (%v:)", tls, sign, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__math_xflowf(tls, sign, Float32FromFloat32(1.5845632502852868e+29)) +} + +func X__math_uflow(tls *TLS, sign Tuint32_t) (r float64) { + if __ccgo_strace { + trc("tls=%v sign=%v, (%v:)", tls, sign, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__math_xflow(tls, sign, float64(1.2882297539194267e-231)) +} + +func X__math_uflowf(tls *TLS, sign Tuint32_t) (r float32) { + if __ccgo_strace { + trc("tls=%v sign=%v, (%v:)", tls, sign, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__math_xflowf(tls, sign, Float32FromFloat32(2.524354896707238e-29)) +} + +func X__math_xflow(tls *TLS, sign Tuint32_t, y2 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v sign=%v y2=%v, (%v:)", tls, sign, y2, origin(2)) + defer func() { trc("-> %v", r) }() + } + var y, y1, v1, v2, v4 float64 + _, _, _, _, _ = y, y1, v1, v2, v4 + if sign != 0 { + v1 = -y2 + } else { + v1 = y2 + } + y1 = v1 + v2 = y1 + goto _3 +_3: + y = float64(v2 * y2) + v4 = y + goto _5 +_5: + return v4 +} + +func X__math_xflowf(tls *TLS, sign Tuint32_t, y2 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v sign=%v y2=%v, (%v:)", tls, sign, y2, origin(2)) + defer func() { trc("-> %v", r) }() + } + var y, y1, v1, v2, v4 float32 + _, _, _, _, _ = y, y1, v1, v2, v4 + if sign != 0 { + v1 = -y2 + } else { + v1 = y2 + } + y1 = v1 + v2 = y1 + goto _3 +_3: + y = float32(v2 * y2) + v4 = y + goto _5 +_5: + return v4 +} + +const DBL_EPSILON1 = 2.220446049250313e-16 +const EPS = 0 + +// C documentation +// +// /* +// * invpio2: 53 bits of 2/pi +// * pio2_1: first 33 bit of pi/2 +// * pio2_1t: pi/2 - pio2_1 +// * pio2_2: second 33 bit of pi/2 +// * pio2_2t: pi/2 - (pio2_1+pio2_2) +// * pio2_3: third 33 bit of pi/2 +// * pio2_3t: pi/2 - (pio2_1+pio2_2+pio2_3) +// */ + +var _toint = Float64FromFloat64(1.5) / Float64FromFloat64(2.220446049250313e-16) +var _pio4 = float64(0.7853981633974483) +var _invpio2 = float64(0.6366197723675814) /* 0x3FE45F30, 0x6DC9C883 */ +var _pio2_1 = float64(1.5707963267341256) /* 0x3FF921FB, 0x54400000 */ +var _pio2_1t = float64(6.077100506506192e-11) /* 0x3DD0B461, 0x1A626331 */ +var _pio2_2 = float64(6.077100506303966e-11) /* 0x3DD0B461, 0x1A600000 */ +var _pio2_2t = float64(2.0222662487959506e-21) /* 0x3BA3198A, 0x2E037073 */ +var _pio2_3 = float64(2.0222662487111665e-21) /* 0x3BA3198A, 0x2E000000 */ +var _pio2_3t = float64(8.4784276603689e-32) /* 0x397B839A, 0x252049C1 */ + +// C documentation +// +// /* caller must handle the case when reduction is not needed: |x| ~<= pi/4 */ +func X__rem_pio2(tls *TLS, x float64, y uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + var ex, ey, i, n, sign int32 + var fn, r, t, w, z Tdouble_t + var ix Tuint32_t + var v2 float64 + var _ /* tx at bp+8 */ [3]float64 + var _ /* ty at bp+32 */ [2]float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _, _, _, _, _, _ = ex, ey, fn, i, ix, n, r, sign, t, w, z, v2 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + sign = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(63)) + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32) & uint64(0x7fffffff)) + if ix <= uint32(0x400f6a7a) { /* |x| ~<= 5pi/4 */ + if ix&uint32(0xfffff) == uint32(0x921fb) { /* |x| ~= pi/2 or 2pi/2 */ + goto medium + } /* cancellation -- use medium case */ + if ix <= uint32(0x4002d97c) { /* |x| ~<= 3pi/4 */ + if !(sign != 0) { + z = x - _pio2_1 /* one round good to 85 bits */ + **(**float64)(__ccgo_up(y)) = z - _pio2_1t + **(**float64)(__ccgo_up(y + 1*8)) = z - **(**float64)(__ccgo_up(y)) - _pio2_1t + return int32(1) + } else { + z = x + _pio2_1 + **(**float64)(__ccgo_up(y)) = z + _pio2_1t + **(**float64)(__ccgo_up(y + 1*8)) = z - **(**float64)(__ccgo_up(y)) + _pio2_1t + return -int32(1) + } + } else { + if !(sign != 0) { + z = x - float64(Float64FromInt32(2)*_pio2_1) + **(**float64)(__ccgo_up(y)) = z - Tdouble_t(Float64FromInt32(2)*_pio2_1t) + **(**float64)(__ccgo_up(y + 1*8)) = z - **(**float64)(__ccgo_up(y)) - Tdouble_t(Float64FromInt32(2)*_pio2_1t) + return int32(2) + } else { + z = x + float64(Float64FromInt32(2)*_pio2_1) + **(**float64)(__ccgo_up(y)) = z + Tdouble_t(Float64FromInt32(2)*_pio2_1t) + **(**float64)(__ccgo_up(y + 1*8)) = z - **(**float64)(__ccgo_up(y)) + Tdouble_t(Float64FromInt32(2)*_pio2_1t) + return -int32(2) + } + } + } + if ix <= uint32(0x401c463b) { /* |x| ~<= 9pi/4 */ + if ix <= uint32(0x4015fdbc) { /* |x| ~<= 7pi/4 */ + if ix == uint32(0x4012d97c) { /* |x| ~= 3pi/2 */ + goto medium + } + if !(sign != 0) { + z = x - float64(Float64FromInt32(3)*_pio2_1) + **(**float64)(__ccgo_up(y)) = z - Tdouble_t(Float64FromInt32(3)*_pio2_1t) + **(**float64)(__ccgo_up(y + 1*8)) = z - **(**float64)(__ccgo_up(y)) - Tdouble_t(Float64FromInt32(3)*_pio2_1t) + return int32(3) + } else { + z = x + float64(Float64FromInt32(3)*_pio2_1) + **(**float64)(__ccgo_up(y)) = z + Tdouble_t(Float64FromInt32(3)*_pio2_1t) + **(**float64)(__ccgo_up(y + 1*8)) = z - **(**float64)(__ccgo_up(y)) + Tdouble_t(Float64FromInt32(3)*_pio2_1t) + return -int32(3) + } + } else { + if ix == uint32(0x401921fb) { /* |x| ~= 4pi/2 */ + goto medium + } + if !(sign != 0) { + z = x - float64(Float64FromInt32(4)*_pio2_1) + **(**float64)(__ccgo_up(y)) = z - Tdouble_t(Float64FromInt32(4)*_pio2_1t) + **(**float64)(__ccgo_up(y + 1*8)) = z - **(**float64)(__ccgo_up(y)) - Tdouble_t(Float64FromInt32(4)*_pio2_1t) + return int32(4) + } else { + z = x + float64(Float64FromInt32(4)*_pio2_1) + **(**float64)(__ccgo_up(y)) = z + Tdouble_t(Float64FromInt32(4)*_pio2_1t) + **(**float64)(__ccgo_up(y + 1*8)) = z - **(**float64)(__ccgo_up(y)) + Tdouble_t(Float64FromInt32(4)*_pio2_1t) + return -int32(4) + } + } + } + if !(ix < uint32(0x413921fb)) { + goto _1 + } /* |x| ~< 2^20*(pi/2), medium size */ + goto medium +medium: + ; + /* rint(x/(pi/2)) */ + fn = Tdouble_t(x*_invpio2) + _toint - _toint + n = int32(fn) + r = x - float64(fn*_pio2_1) + w = Tdouble_t(fn * _pio2_1t) /* 1st round, good to 85 bits */ + /* Matters with directed rounding. */ + if r-w < -_pio4 { + n = n - 1 + fn = fn - 1 + r = x - float64(fn*_pio2_1) + w = Tdouble_t(fn * _pio2_1t) + } else { + if r-w > _pio4 { + n = n + 1 + fn = fn + 1 + r = x - float64(fn*_pio2_1) + w = Tdouble_t(fn * _pio2_1t) + } + } + **(**float64)(__ccgo_up(y)) = r - w + *(*float64)(unsafe.Pointer(bp)) = **(**float64)(__ccgo_up(y)) + ey = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + ex = Int32FromUint32(ix >> int32(20)) + if ex-ey > int32(16) { /* 2nd round, good to 118 bits */ + t = r + w = Tdouble_t(fn * _pio2_2) + r = t - w + w = Tdouble_t(fn*_pio2_2t) - (t - r - w) + **(**float64)(__ccgo_up(y)) = r - w + *(*float64)(unsafe.Pointer(bp)) = **(**float64)(__ccgo_up(y)) + ey = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + if ex-ey > int32(49) { /* 3rd round, good to 151 bits, covers all cases */ + t = r + w = Tdouble_t(fn * _pio2_3) + r = t - w + w = Tdouble_t(fn*_pio2_3t) - (t - r - w) + **(**float64)(__ccgo_up(y)) = r - w + } + } + **(**float64)(__ccgo_up(y + 1*8)) = r - **(**float64)(__ccgo_up(y)) - w + return n +_1: + ; + /* + * all other (large) arguments + */ + if ix >= uint32(0x7ff00000) { /* x is inf or NaN */ + v2 = x - x + **(**float64)(__ccgo_up(y + 1*8)) = v2 + **(**float64)(__ccgo_up(y)) = v2 + return 0 + } + /* set z = scalbn(|x|,-ilogb(x)+23) */ + *(*float64)(unsafe.Pointer(bp)) = x + *(*Tuint64_t)(unsafe.Pointer(bp)) &= Uint64FromInt32(-Int32FromInt32(1)) >> Int32FromInt32(12) + *(*Tuint64_t)(unsafe.Pointer(bp)) |= Uint64FromInt32(Int32FromInt32(0x3ff)+Int32FromInt32(23)) << Int32FromInt32(52) + z = *(*float64)(unsafe.Pointer(bp)) + i = 0 + for { + if !(i < int32(2)) { + break + } + (**(**[3]float64)(__ccgo_up(bp + 8)))[i] = float64(int32(z)) + z = Tdouble_t((z - (**(**[3]float64)(__ccgo_up(bp + 8)))[i]) * float64(1.6777216e+07)) + goto _3 + _3: + ; + i = i + 1 + } + (**(**[3]float64)(__ccgo_up(bp + 8)))[i] = z + /* skip zero terms, first term is non-zero */ + for (**(**[3]float64)(__ccgo_up(bp + 8)))[i] == float64(0) { + i = i - 1 + } + n = X__rem_pio2_large(tls, bp+8, bp+32, Int32FromUint32(ix>>Int32FromInt32(20))-(Int32FromInt32(0x3ff)+Int32FromInt32(23)), i+int32(1), int32(1)) + if sign != 0 { + **(**float64)(__ccgo_up(y)) = -(**(**[2]float64)(__ccgo_up(bp + 32)))[0] + **(**float64)(__ccgo_up(y + 1*8)) = -(**(**[2]float64)(__ccgo_up(bp + 32)))[int32(1)] + return -n + } + **(**float64)(__ccgo_up(y)) = (**(**[2]float64)(__ccgo_up(bp + 32)))[0] + **(**float64)(__ccgo_up(y + 1*8)) = (**(**[2]float64)(__ccgo_up(bp + 32)))[int32(1)] + return n +} + +const DBL_EPSILON2 = 0 + +var _init_jk = [4]int32{ + 0: int32(3), + 1: int32(4), + 2: int32(4), + 3: int32(6), +} /* initial value for jk */ + +// C documentation +// +// /* +// * Table of constants for 2/pi, 396 Hex digits (476 decimal) of 2/pi +// * +// * integer array, contains the (24*i)-th to (24*i+23)-th +// * bit of 2/pi after binary point. The corresponding +// * floating value is +// * +// * ipio2[i] * 2^(-24(i+1)). +// * +// * NB: This table must have at least (e0-3)/24 + jk terms. +// * For quad precision (e0 <= 16360, jk = 6), this is 686. +// */ +var _ipio2 = [66]Tint32_t{ + 0: int32(0xA2F983), + 1: int32(0x6E4E44), + 2: int32(0x1529FC), + 3: int32(0x2757D1), + 4: int32(0xF534DD), + 5: int32(0xC0DB62), + 6: int32(0x95993C), + 7: int32(0x439041), + 8: int32(0xFE5163), + 9: int32(0xABDEBB), + 10: int32(0xC561B7), + 11: int32(0x246E3A), + 12: int32(0x424DD2), + 13: int32(0xE00649), + 14: int32(0x2EEA09), + 15: int32(0xD1921C), + 16: int32(0xFE1DEB), + 17: int32(0x1CB129), + 18: int32(0xA73EE8), + 19: int32(0x8235F5), + 20: int32(0x2EBB44), + 21: int32(0x84E99C), + 22: int32(0x7026B4), + 23: int32(0x5F7E41), + 24: int32(0x3991D6), + 25: int32(0x398353), + 26: int32(0x39F49C), + 27: int32(0x845F8B), + 28: int32(0xBDF928), + 29: int32(0x3B1FF8), + 30: int32(0x97FFDE), + 31: int32(0x05980F), + 32: int32(0xEF2F11), + 33: int32(0x8B5A0A), + 34: int32(0x6D1F6D), + 35: int32(0x367ECF), + 36: int32(0x27CB09), + 37: int32(0xB74F46), + 38: int32(0x3F669E), + 39: int32(0x5FEA2D), + 40: int32(0x7527BA), + 41: int32(0xC7EBE5), + 42: int32(0xF17B3D), + 43: int32(0x0739F7), + 44: int32(0x8A5292), + 45: int32(0xEA6BFB), + 46: int32(0x5FB11F), + 47: int32(0x8D5D08), + 48: int32(0x560330), + 49: int32(0x46FC7B), + 50: int32(0x6BABF0), + 51: int32(0xCFBC20), + 52: int32(0x9AF436), + 53: int32(0x1DA9E3), + 54: int32(0x91615E), + 55: int32(0xE61B08), + 56: int32(0x659985), + 57: int32(0x5F14A0), + 58: int32(0x68408D), + 59: int32(0xFFD880), + 60: int32(0x4D7327), + 61: int32(0x310606), + 62: int32(0x1556CA), + 63: int32(0x73A8C9), + 64: int32(0x60E27B), + 65: int32(0xC08C6B), +} + +var _PIo2 = [8]float64{ + 0: float64(1.570796251296997), + 1: float64(7.549789415861596e-08), + 2: float64(5.390302529957765e-15), + 3: float64(3.282003415807913e-22), + 4: float64(1.270655753080676e-29), + 5: float64(1.2293330898111133e-36), + 6: float64(2.7337005381646456e-44), + 7: float64(2.1674168387780482e-51), +} + +func X__rem_pio2_large(tls *TLS, x uintptr, y uintptr, e0 int32, nx int32, prec int32) (r int32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v e0=%v nx=%v prec=%v, (%v:)", tls, x, y, e0, nx, prec, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(240) + defer tls.Free(240) + var carry, i, ih, j, jk, jp, jv, jx, jz, k, m, n, q0 Tint32_t + var f, q [20]float64 + var fw, z, v2 float64 + var _ /* fq at bp+80 */ [20]float64 + var _ /* iq at bp+0 */ [20]Tint32_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = carry, f, fw, i, ih, j, jk, jp, jv, jx, jz, k, m, n, q, q0, z, v2 + /* initialize jk*/ + jk = _init_jk[prec] + jp = jk + /* determine jx,jv,q0, note that 3>q0 */ + jx = nx - int32(1) + jv = (e0 - int32(3)) / int32(24) + if jv < 0 { + jv = 0 + } + q0 = e0 - int32(24)*(jv+int32(1)) + /* set up f[0] to f[jx+jk] where f[jx+jk] = ipio2[jv+jk] */ + j = jv - jx + m = jx + jk + i = 0 + for { + if !(i <= m) { + break + } + if j < 0 { + v2 = float64(0) + } else { + v2 = float64(_ipio2[j]) + } + f[i] = v2 + goto _1 + _1: + ; + i = i + 1 + j = j + 1 + } + /* compute q[0],q[1],...q[jk] */ + i = 0 + for { + if !(i <= jk) { + break + } + j = 0 + fw = Float64FromFloat64(0) + for { + if !(j <= jx) { + break + } + fw = fw + float64(**(**float64)(__ccgo_up(x + uintptr(j)*8))*f[jx+i-j]) + goto _4 + _4: + ; + j = j + 1 + } + q[i] = fw + goto _3 + _3: + ; + i = i + 1 + } + jz = jk + goto recompute +recompute: + ; + /* distill q[] into iq[] reversingly */ + i = 0 + j = jz + z = q[jz] + for { + if !(j > 0) { + break + } + fw = float64(int32(float64(Float64FromFloat64(5.960464477539063e-08) * z))) + (**(**[20]Tint32_t)(__ccgo_up(bp)))[i] = int32(z - float64(Float64FromFloat64(1.6777216e+07)*fw)) + z = q[j-int32(1)] + fw + goto _5 + _5: + ; + i = i + 1 + j = j - 1 + } + /* compute n */ + z = Xscalbn(tls, z, q0) /* actual value of z */ + z = z - float64(float64(8)*Xfloor(tls, float64(z*float64(0.125)))) /* trim off integer >= 8 */ + n = int32(z) + z = z - float64(n) + ih = 0 + if q0 > 0 { /* need iq[jz-1] to determine n */ + i = (**(**[20]Tint32_t)(__ccgo_up(bp)))[jz-int32(1)] >> (int32(24) - q0) + n = n + i + **(**Tint32_t)(__ccgo_up(bp + uintptr(jz-int32(1))*4)) -= i << (int32(24) - q0) + ih = (**(**[20]Tint32_t)(__ccgo_up(bp)))[jz-int32(1)] >> (int32(23) - q0) + } else { + if q0 == 0 { + ih = (**(**[20]Tint32_t)(__ccgo_up(bp)))[jz-int32(1)] >> int32(23) + } else { + if z >= float64(0.5) { + ih = int32(2) + } + } + } + if ih > 0 { /* q > 0.5 */ + n = n + int32(1) + carry = 0 + i = 0 + for { + if !(i < jz) { + break + } /* compute 1-q */ + j = (**(**[20]Tint32_t)(__ccgo_up(bp)))[i] + if carry == 0 { + if j != 0 { + carry = int32(1) + (**(**[20]Tint32_t)(__ccgo_up(bp)))[i] = int32(0x1000000) - j + } + } else { + (**(**[20]Tint32_t)(__ccgo_up(bp)))[i] = int32(0xffffff) - j + } + goto _6 + _6: + ; + i = i + 1 + } + if q0 > 0 { /* rare case: chance is 1 in 12 */ + switch q0 { + case int32(1): + **(**Tint32_t)(__ccgo_up(bp + uintptr(jz-int32(1))*4)) &= int32(0x7fffff) + case int32(2): + **(**Tint32_t)(__ccgo_up(bp + uintptr(jz-int32(1))*4)) &= int32(0x3fffff) + break + } + } + if ih == int32(2) { + z = float64(1) - z + if carry != 0 { + z = z - Xscalbn(tls, float64(1), q0) + } + } + } + /* check if recomputation is needed */ + if z == float64(0) { + j = 0 + i = jz - int32(1) + for { + if !(i >= jk) { + break + } + j = j | (**(**[20]Tint32_t)(__ccgo_up(bp)))[i] + goto _7 + _7: + ; + i = i - 1 + } + if j == 0 { /* need recomputation */ + k = int32(1) + for { + if !((**(**[20]Tint32_t)(__ccgo_up(bp)))[jk-k] == 0) { + break + } + goto _8 + _8: + ; + k = k + 1 + } /* k = no. of terms needed */ + i = jz + int32(1) + for { + if !(i <= jz+k) { + break + } /* add q[jz+1] to q[jz+k] */ + f[jx+i] = float64(_ipio2[jv+i]) + j = 0 + fw = Float64FromFloat64(0) + for { + if !(j <= jx) { + break + } + fw = fw + float64(**(**float64)(__ccgo_up(x + uintptr(j)*8))*f[jx+i-j]) + goto _10 + _10: + ; + j = j + 1 + } + q[i] = fw + goto _9 + _9: + ; + i = i + 1 + } + jz = jz + k + goto recompute + } + } + /* chop off zero terms */ + if z == float64(0) { + jz = jz - int32(1) + q0 = q0 - int32(24) + for (**(**[20]Tint32_t)(__ccgo_up(bp)))[jz] == 0 { + jz = jz - 1 + q0 = q0 - int32(24) + } + } else { /* break z into 24-bit if necessary */ + z = Xscalbn(tls, z, -q0) + if z >= float64(1.6777216e+07) { + fw = float64(int32(float64(Float64FromFloat64(5.960464477539063e-08) * z))) + (**(**[20]Tint32_t)(__ccgo_up(bp)))[jz] = int32(z - float64(Float64FromFloat64(1.6777216e+07)*fw)) + jz = jz + int32(1) + q0 = q0 + int32(24) + (**(**[20]Tint32_t)(__ccgo_up(bp)))[jz] = int32(fw) + } else { + (**(**[20]Tint32_t)(__ccgo_up(bp)))[jz] = int32(z) + } + } + /* convert integer "bit" chunk to floating-point value */ + fw = Xscalbn(tls, float64(1), q0) + i = jz + for { + if !(i >= 0) { + break + } + q[i] = float64(fw * float64((**(**[20]Tint32_t)(__ccgo_up(bp)))[i])) + fw = fw * float64(5.960464477539063e-08) + goto _11 + _11: + ; + i = i - 1 + } + /* compute PIo2[0,...,jp]*q[jz,...,0] */ + i = jz + for { + if !(i >= 0) { + break + } + fw = float64(0) + k = Int32FromInt32(0) + for { + if !(k <= jp && k <= jz-i) { + break + } + fw = fw + float64(_PIo2[k]*q[i+k]) + goto _13 + _13: + ; + k = k + 1 + } + (**(**[20]float64)(__ccgo_up(bp + 80)))[jz-i] = fw + goto _12 + _12: + ; + i = i - 1 + } + /* compress fq[] into y[] */ + switch prec { + case 0: + goto _14 + case int32(2): + goto _15 + case int32(1): + goto _16 + case int32(3): + goto _17 + } + goto _18 +_14: + ; + fw = float64(0) + i = jz + for { + if !(i >= 0) { + break + } + fw = fw + (**(**[20]float64)(__ccgo_up(bp + 80)))[i] + goto _19 + _19: + ; + i = i - 1 + } + if ih == 0 { + v2 = fw + } else { + v2 = -fw + } + **(**float64)(__ccgo_up(y)) = v2 + goto _18 +_16: + ; +_15: + ; + fw = float64(0) + i = jz + for { + if !(i >= 0) { + break + } + fw = fw + (**(**[20]float64)(__ccgo_up(bp + 80)))[i] + goto _21 + _21: + ; + i = i - 1 + } + // TODO: drop excess precision here once double_t is used + fw = fw + if ih == 0 { + v2 = fw + } else { + v2 = -fw + } + **(**float64)(__ccgo_up(y)) = v2 + fw = (**(**[20]float64)(__ccgo_up(bp + 80)))[0] - fw + i = int32(1) + for { + if !(i <= jz) { + break + } + fw = fw + (**(**[20]float64)(__ccgo_up(bp + 80)))[i] + goto _23 + _23: + ; + i = i + 1 + } + if ih == 0 { + v2 = fw + } else { + v2 = -fw + } + **(**float64)(__ccgo_up(y + 1*8)) = v2 + goto _18 +_17: + ; /* painful */ + i = jz +_27: + ; + if !(i > 0) { + goto _25 + } + fw = (**(**[20]float64)(__ccgo_up(bp + 80)))[i-int32(1)] + (**(**[20]float64)(__ccgo_up(bp + 80)))[i] + **(**float64)(__ccgo_up(bp + 80 + uintptr(i)*8)) += (**(**[20]float64)(__ccgo_up(bp + 80)))[i-int32(1)] - fw + (**(**[20]float64)(__ccgo_up(bp + 80)))[i-int32(1)] = fw + goto _26 +_26: + ; + i = i - 1 + goto _27 + goto _25 +_25: + ; + i = jz + for { + if !(i > int32(1)) { + break + } + fw = (**(**[20]float64)(__ccgo_up(bp + 80)))[i-int32(1)] + (**(**[20]float64)(__ccgo_up(bp + 80)))[i] + **(**float64)(__ccgo_up(bp + 80 + uintptr(i)*8)) += (**(**[20]float64)(__ccgo_up(bp + 80)))[i-int32(1)] - fw + (**(**[20]float64)(__ccgo_up(bp + 80)))[i-int32(1)] = fw + goto _28 + _28: + ; + i = i - 1 + } + fw = float64(0) + i = jz + for { + if !(i >= int32(2)) { + break + } + fw = fw + (**(**[20]float64)(__ccgo_up(bp + 80)))[i] + goto _29 + _29: + ; + i = i - 1 + } + if ih == 0 { + **(**float64)(__ccgo_up(y)) = (**(**[20]float64)(__ccgo_up(bp + 80)))[0] + **(**float64)(__ccgo_up(y + 1*8)) = (**(**[20]float64)(__ccgo_up(bp + 80)))[int32(1)] + **(**float64)(__ccgo_up(y + 2*8)) = fw + } else { + **(**float64)(__ccgo_up(y)) = -(**(**[20]float64)(__ccgo_up(bp + 80)))[0] + **(**float64)(__ccgo_up(y + 1*8)) = -(**(**[20]float64)(__ccgo_up(bp + 80)))[int32(1)] + **(**float64)(__ccgo_up(y + 2*8)) = -fw + } +_18: + ; + return n & int32(7) +} + +const DBL_EPSILON3 = 2.220446049250313e-16 + +// C documentation +// +// /* +// * invpio2: 53 bits of 2/pi +// * pio2_1: first 25 bits of pi/2 +// * pio2_1t: pi/2 - pio2_1 +// */ + +var _toint1 = Float64FromFloat64(1.5) / Float64FromFloat64(2.220446049250313e-16) +var _pio41 = float64(0.7853981852531433) +var _invpio21 = float64(0.6366197723675814) /* 0x3FE45F30, 0x6DC9C883 */ +var _pio2_11 = float64(1.5707963109016418) /* 0x3FF921FB, 0x50000000 */ +var _pio2_1t1 = float64(1.5893254773528196e-08) /* 0x3E5110b4, 0x611A6263 */ + +func X__rem_pio2f(tls *TLS, x float32, y uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var e0, n, sign int32 + var fn Tdouble_t + var ix Tuint32_t + var _ /* tx at bp+8 */ [1]float64 + var _ /* ty at bp+16 */ [1]float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _ = e0, fn, ix, n, sign + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + ix = *(*Tuint32_t)(unsafe.Pointer(bp)) & uint32(0x7fffffff) + /* 25+53 bit pi is good enough for medium size */ + if ix < uint32(0x4dc90fdb) { /* |x| ~< 2^28*(pi/2), medium size */ + /* Use a specialized rint() to get fn. */ + fn = Tdouble_t(float64(x)*_invpio21) + _toint1 - _toint1 + n = int32(fn) + **(**float64)(__ccgo_up(y)) = float64(x) - Tdouble_t(fn*_pio2_11) - Tdouble_t(fn*_pio2_1t1) + /* Matters with directed rounding. */ + if **(**float64)(__ccgo_up(y)) < -_pio41 { + n = n - 1 + fn = fn - 1 + **(**float64)(__ccgo_up(y)) = float64(x) - Tdouble_t(fn*_pio2_11) - Tdouble_t(fn*_pio2_1t1) + } else { + if **(**float64)(__ccgo_up(y)) > _pio41 { + n = n + 1 + fn = fn + 1 + **(**float64)(__ccgo_up(y)) = float64(x) - Tdouble_t(fn*_pio2_11) - Tdouble_t(fn*_pio2_1t1) + } + } + return n + } + if ix >= uint32(0x7f800000) { /* x is inf or NaN */ + **(**float64)(__ccgo_up(y)) = float64(x - x) + return 0 + } + /* scale x into [2^23, 2^24-1] */ + sign = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(31)) + e0 = Int32FromUint32(ix>>Int32FromInt32(23) - Uint32FromInt32(Int32FromInt32(0x7f)+Int32FromInt32(23))) /* e0 = ilogb(|x|)-23, positive */ + *(*Tuint32_t)(unsafe.Pointer(bp)) = ix - Uint32FromInt32(e0< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* y at bp+0 */ struct { + Fi [0]Tuint64_t + Fd float64 + } + *(*struct { + Fi [0]Tuint64_t + Fd float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Fd float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + return Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(63)) +} + +// C documentation +// +// // FIXME: macro in math.h +func X__signbitf(tls *TLS, x float32) (r int32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* y at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + return Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(31)) +} + +func X__signbitl(tls *TLS, x float64) (r int32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__signbit(tls, x) +} + +var _S1 = -Float64FromFloat64(0.16666666666666632) /* 0xBFC55555, 0x55555549 */ +var _S2 = float64(0.00833333333332249) /* 0x3F811111, 0x1110F8A6 */ +var _S3 = -Float64FromFloat64(0.0001984126982985795) /* 0xBF2A01A0, 0x19C161D5 */ +var _S4 = float64(2.7557313707070068e-06) /* 0x3EC71DE3, 0x57B1FE7D */ +var _S5 = -Float64FromFloat64(2.5050760253406863e-08) /* 0xBE5AE5E6, 0x8A2B9CEB */ +var _S6 = float64(1.58969099521155e-10) /* 0x3DE5D93A, 0x5ACFD57C */ + +func X__sin(tls *TLS, x float64, y float64, iy int32) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v iy=%v, (%v:)", tls, x, y, iy, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v, w, z Tdouble_t + _, _, _, _ = r, v, w, z + z = Tdouble_t(x * x) + w = Tdouble_t(z * z) + r = _S2 + float64(z*(_S3+float64(z*_S4))) + float64(Tdouble_t(z*w)*(_S5+float64(z*_S6))) + v = Tdouble_t(z * x) + if iy == 0 { + return x + float64(v*(_S1+float64(z*r))) + } else { + return x - (Tdouble_t(z*(float64(Float64FromFloat64(0.5)*y)-float64(v*r))) - y - Tdouble_t(v*_S1)) + } + return r1 +} + +// C documentation +// +// /* |sin(x)/x - s(x)| < 2**-37.5 (~[-4.89e-12, 4.824e-12]). */ + +var _S11 = -Float64FromFloat64(0.16666666641626524) /* -0.166666666416265235595 */ +var _S21 = float64(0.008333329385889463) /* 0.0083333293858894631756 */ +var _S31 = -Float64FromFloat64(0.00019839334836096632) /* -0.000198393348360966317347 */ +var _S41 = float64(2.718311493989822e-06) /* 0.0000027183114939898219064 */ + +func X__sindf(tls *TLS, x float64) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, s, w, z Tdouble_t + _, _, _, _ = r, s, w, z + /* Try to optimize for parallel evaluation as in __tandf.c. */ + z = Tdouble_t(x * x) + w = Tdouble_t(z * z) + r = _S31 + float64(z*_S41) + s = Tdouble_t(z * x) + return float32(x + float64(s*(_S11+float64(z*_S21))) + float64(Tdouble_t(s*w)*r)) +} + +var _T = [13]float64{ + 0: float64(0.3333333333333341), + 1: float64(0.13333333333320124), + 2: float64(0.05396825397622605), + 3: float64(0.021869488294859542), + 4: float64(0.0088632398235993), + 5: float64(0.0035920791075913124), + 6: float64(0.0014562094543252903), + 7: float64(0.0005880412408202641), + 8: float64(0.0002464631348184699), + 9: float64(7.817944429395571e-05), + 10: float64(7.140724913826082e-05), + 11: -Float64FromFloat64(1.8558637485527546e-05), + 12: float64(2.590730518636337e-05), +} +var _pio42 = float64(0.7853981633974483) /* 3FE921FB, 54442D18 */ +var _pio4lo = float64(3.061616997868383e-17) /* 3C81A626, 33145C07 */ + +func X__tan(tls *TLS, x float64, y float64, odd int32) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v odd=%v, (%v:)", tls, x, y, odd, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var a, r, s, v, w, z, v1 Tdouble_t + var a0, w0 float64 + var big, sign int32 + var hx Tuint32_t + var v2 Tuint64_t + _, _, _, _, _, _, _, _, _, _, _, _, _ = a, a0, big, hx, r, s, sign, v, w, w0, z, v1, v2 + hx = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + big = BoolInt32(hx&uint32(0x7fffffff) >= uint32(0x3FE59428)) /* |x| >= 0.6744 */ + if big != 0 { + sign = Int32FromUint32(hx >> int32(31)) + if sign != 0 { + x = -x + y = -y + } + x = _pio42 - x + (_pio4lo - y) + y = float64(0) + } + z = Tdouble_t(x * x) + w = Tdouble_t(z * z) + /* + * Break x^5*(T[1]+x^2*T[2]+...) into + * x^5(T[1]+x^4*T[3]+...+x^20*T[11]) + + * x^5(x^2*(T[2]+x^4*T[4]+...+x^22*[T12])) + */ + r = _T[int32(1)] + float64(w*(_T[int32(3)]+float64(w*(_T[int32(5)]+float64(w*(_T[int32(7)]+float64(w*(_T[int32(9)]+float64(w*_T[int32(11)]))))))))) + v = Tdouble_t(z * (_T[int32(2)] + float64(w*(_T[int32(4)]+float64(w*(_T[int32(6)]+float64(w*(_T[int32(8)]+float64(w*(_T[int32(10)]+float64(w*_T[int32(12)]))))))))))) + s = Tdouble_t(z * x) + r = y + float64(z*(Tdouble_t(s*(r+v))+y)) + float64(s*_T[0]) + w = x + r + if big != 0 { + s = float64(int32(1) - int32(2)*odd) + v = s - Tdouble_t(float64(2)*(x+(r-Tdouble_t(w*w)/(w+s)))) + if sign != 0 { + v1 = -v + } else { + v1 = v + } + return v1 + } + if !(odd != 0) { + return w + } + /* -1.0/(x+r) has up to 2ulp error, so compute it accurately */ + w0 = w + v2 = *(*Tuint64_t)(unsafe.Pointer(&w0))>>Int32FromInt32(32)<>Int32FromInt32(32)< %v", r1) }() + } + var r, s, t, u, w, z Tdouble_t + var v1 float64 + _, _, _, _, _, _, _ = r, s, t, u, w, z, v1 + z = Tdouble_t(x * x) + /* + * Split up the polynomial into small independent terms to give + * opportunities for parallel evaluation. The chosen splitting is + * micro-optimized for Athlons (XP, X64). It costs 2 multiplications + * relative to Horner's method on sequential machines. + * + * We add the small terms from lowest degree up for efficiency on + * non-sequential machines (the lowest degree terms tend to be ready + * earlier). Apart from this, we don't care about order of + * operations, and don't need to to care since we have precision to + * spare. However, the chosen splitting is good for accuracy too, + * and would give results as accurate as Horner's method if the + * small terms were added from highest degree down. + */ + r = _T1[int32(4)] + float64(z*_T1[int32(5)]) + t = _T1[int32(2)] + float64(z*_T1[int32(3)]) + w = Tdouble_t(z * z) + s = Tdouble_t(z * x) + u = _T1[0] + float64(z*_T1[int32(1)]) + r = x + float64(s*u) + float64(Tdouble_t(s*w)*(t+Tdouble_t(w*r))) + if odd != 0 { + v1 = -Float64FromFloat64(1) / r + } else { + v1 = r + } + return float32(v1) +} + +var _pio2_hi = float64(1.5707963267948966) /* 0x3FF921FB, 0x54442D18 */ +var _pio2_lo = float64(6.123233995736766e-17) /* 0x3C91A626, 0x33145C07 */ +var _pS0 = float64(0.16666666666666666) /* 0x3FC55555, 0x55555555 */ +var _pS1 = -Float64FromFloat64(0.3255658186224009) /* 0xBFD4D612, 0x03EB6F7D */ +var _pS2 = float64(0.20121253213486293) /* 0x3FC9C155, 0x0E884455 */ +var _pS3 = -Float64FromFloat64(0.04005553450067941) /* 0xBFA48228, 0xB5688F3B */ +var _pS4 = float64(0.0007915349942898145) /* 0x3F49EFE0, 0x7501B288 */ +var _pS5 = float64(3.479331075960212e-05) /* 0x3F023DE1, 0x0DFDF709 */ +var _qS1 = -Float64FromFloat64(2.403394911734414) /* 0xC0033A27, 0x1C8A2D4B */ +var _qS2 = float64(2.0209457602335057) /* 0x40002AE5, 0x9C598AC8 */ +var _qS3 = -Float64FromFloat64(0.6882839716054533) /* 0xBFE6066C, 0x1B8D0159 */ +var _qS4 = float64(0.07703815055590194) /* 0x3FB3B8C5, 0xB12E9282 */ + +func _R(tls *TLS, z float64) (r float64) { + var p, q Tdouble_t + _, _ = p, q + p = Tdouble_t(z * (_pS0 + float64(z*(_pS1+float64(z*(_pS2+float64(z*(_pS3+float64(z*(_pS4+float64(z*_pS5))))))))))) + q = float64(1) + float64(z*(_qS1+float64(z*(_qS2+float64(z*(_qS3+float64(z*_qS4))))))) + return p / q +} + +func Xacos(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + var c, df, s, w, z float64 + var hx, ix, lx Tuint32_t + var v1 Tuint64_t + _, _, _, _, _, _, _, _, _ = c, df, hx, ix, lx, s, w, z, v1 + hx = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + ix = hx & uint32(0x7fffffff) + /* |x| >= 1 or nan */ + if ix >= uint32(0x3ff00000) { + lx = uint32(*(*Tuint64_t)(unsafe.Pointer(&x))) + if ix-uint32(0x3ff00000)|lx == uint32(0) { + /* acos(1)=0, acos(-1)=pi */ + if hx>>int32(31) != 0 { + return float64(Float64FromInt32(2)*_pio2_hi) + Float64FromFloat32(7.52316384526264e-37) + } + return Float64FromInt32(0) + } + return Float64FromInt32(0) / (x - x) + } + /* |x| < 0.5 */ + if ix < uint32(0x3fe00000) { + if ix <= uint32(0x3c600000) { /* |x| < 2**-57 */ + return _pio2_hi + Float64FromFloat32(7.52316384526264e-37) + } + return _pio2_hi - (x - (_pio2_lo - float64(x*_R(tls, float64(x*x))))) + } + /* x < -0.5 */ + if hx>>int32(31) != 0 { + z = float64((float64(1) + x) * float64(0.5)) + s = Xsqrt(tls, z) + w = float64(_R(tls, z)*s) - _pio2_lo + return float64(Float64FromInt32(2) * (_pio2_hi - (s + w))) + } + /* x > 0.5 */ + z = float64((float64(1) - x) * float64(0.5)) + s = Xsqrt(tls, z) + df = s + v1 = *(*Tuint64_t)(unsafe.Pointer(&df))>>Int32FromInt32(32)< %v", r) }() + } + var c, df, s, w, z float32 + var hx, ix, v1 Tuint32_t + _, _, _, _, _, _, _, _ = c, df, hx, ix, s, w, z, v1 + hx = *(*Tuint32_t)(unsafe.Pointer(&x)) + ix = hx & uint32(0x7fffffff) + /* |x| >= 1 or nan */ + if ix >= uint32(0x3f800000) { + if ix == uint32(0x3f800000) { + if hx>>int32(31) != 0 { + return float32(Float32FromInt32(2)*_pio2_hi1) + Float32FromFloat32(7.52316384526264e-37) + } + return Float32FromInt32(0) + } + return Float32FromInt32(0) / (x - x) + } + /* |x| < 0.5 */ + if ix < uint32(0x3f000000) { + if ix <= uint32(0x32800000) { /* |x| < 2**-26 */ + return _pio2_hi1 + Float32FromFloat32(7.52316384526264e-37) + } + return _pio2_hi1 - (x - (_pio2_lo1 - float32(x*_R1(tls, float32(x*x))))) + } + /* x < -0.5 */ + if hx>>int32(31) != 0 { + z = float32((Float32FromInt32(1) + x) * Float32FromFloat32(0.5)) + s = Xsqrtf(tls, z) + w = float32(_R1(tls, z)*s) - _pio2_lo1 + return float32(Float32FromInt32(2) * (_pio2_hi1 - (s + w))) + } + /* x > 0.5 */ + z = float32((Float32FromInt32(1) - x) * Float32FromFloat32(0.5)) + s = Xsqrtf(tls, z) + hx = *(*Tuint32_t)(unsafe.Pointer(&s)) + v1 = hx & uint32(0xfffff000) + df = *(*float32)(unsafe.Pointer(&v1)) + c = (z - float32(df*df)) / (s + df) + w = float32(_R1(tls, z)*s) + c + return float32(Float32FromInt32(2) * (df + w)) +} + +// C documentation +// +// /* acosh(x) = log(x + sqrt(x*x-1)) */ +func Xacosh(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e uint32 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _ = e + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + e = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + /* x < 1 domain error is handled in the called functions */ + if e < Uint32FromInt32(Int32FromInt32(0x3ff)+Int32FromInt32(1)) { + /* |x| < 2, up to 2ulp error in [1,1.125] */ + return Xlog1p(tls, x-Float64FromInt32(1)+Xsqrt(tls, float64((x-Float64FromInt32(1))*(x-Float64FromInt32(1)))+float64(Float64FromInt32(2)*(x-Float64FromInt32(1))))) + } + if e < Uint32FromInt32(Int32FromInt32(0x3ff)+Int32FromInt32(26)) { + /* |x| < 0x1p26 */ + return Xlog(tls, float64(Float64FromInt32(2)*x)-Float64FromInt32(1)/(x+Xsqrt(tls, float64(x*x)-Float64FromInt32(1)))) + } + /* |x| >= 0x1p26 or nan */ + return Xlog(tls, x) + float64(0.6931471805599453) +} + +// C documentation +// +// /* acosh(x) = log(x + sqrt(x*x-1)) */ +func Xacoshf(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var a Tuint32_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _ = a + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + a = *(*Tuint32_t)(unsafe.Pointer(bp)) & uint32(0x7fffffff) + if a < Uint32FromInt32(Int32FromInt32(0x3f800000)+Int32FromInt32(1)<= 0x1p12 or x <= -2 or nan */ + return Xlogf(tls, x) + Float32FromFloat32(0.6931471805599453) +} + +func Xacoshl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xacosh(tls, x) +} + +func Xacosl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xacos(tls, x) +} + +var _pio2_hi2 = float64(1.5707963267948966) /* 0x3FF921FB, 0x54442D18 */ +var _pio2_lo2 = float64(6.123233995736766e-17) /* 0x3C91A626, 0x33145C07 */ +/* coefficients for R(x^2) */ +var _pS02 = float64(0.16666666666666666) /* 0x3FC55555, 0x55555555 */ +var _pS12 = -Float64FromFloat64(0.3255658186224009) /* 0xBFD4D612, 0x03EB6F7D */ +var _pS22 = float64(0.20121253213486293) /* 0x3FC9C155, 0x0E884455 */ +var _pS31 = -Float64FromFloat64(0.04005553450067941) /* 0xBFA48228, 0xB5688F3B */ +var _pS41 = float64(0.0007915349942898145) /* 0x3F49EFE0, 0x7501B288 */ +var _pS51 = float64(3.479331075960212e-05) /* 0x3F023DE1, 0x0DFDF709 */ +var _qS12 = -Float64FromFloat64(2.403394911734414) /* 0xC0033A27, 0x1C8A2D4B */ +var _qS21 = float64(2.0209457602335057) /* 0x40002AE5, 0x9C598AC8 */ +var _qS31 = -Float64FromFloat64(0.6882839716054533) /* 0xBFE6066C, 0x1B8D0159 */ +var _qS41 = float64(0.07703815055590194) /* 0x3FB3B8C5, 0xB12E9282 */ + +func _R2(tls *TLS, z float64) (r float64) { + var p, q Tdouble_t + _, _ = p, q + p = Tdouble_t(z * (_pS02 + float64(z*(_pS12+float64(z*(_pS22+float64(z*(_pS31+float64(z*(_pS41+float64(z*_pS51))))))))))) + q = float64(1) + float64(z*(_qS12+float64(z*(_qS21+float64(z*(_qS31+float64(z*_qS41))))))) + return p / q +} + +func Xasin(tls *TLS, x float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var c, f, r, s, z float64 + var hx, ix, lx Tuint32_t + var v1 Tuint64_t + _, _, _, _, _, _, _, _, _ = c, f, hx, ix, lx, r, s, z, v1 + hx = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + ix = hx & uint32(0x7fffffff) + /* |x| >= 1 or nan */ + if ix >= uint32(0x3ff00000) { + lx = uint32(*(*Tuint64_t)(unsafe.Pointer(&x))) + if ix-uint32(0x3ff00000)|lx == uint32(0) { + /* asin(1) = +-pi/2 with inexact */ + return float64(x*_pio2_hi2) + Float64FromFloat32(7.52316384526264e-37) + } + return Float64FromInt32(0) / (x - x) + } + /* |x| < 0.5 */ + if ix < uint32(0x3fe00000) { + /* if 0x1p-1022 <= |x| < 0x1p-26, avoid raising underflow */ + if ix < uint32(0x3e500000) && ix >= uint32(0x00100000) { + return x + } + return x + float64(x*_R2(tls, float64(x*x))) + } + /* 1 > |x| >= 0.5 */ + z = float64((Float64FromInt32(1) - Xfabs(tls, x)) * float64(0.5)) + s = Xsqrt(tls, z) + r = _R2(tls, z) + if ix >= uint32(0x3fef3333) { /* if |x| > 0.975 */ + x = _pio2_hi2 - (float64(Float64FromInt32(2)*(s+float64(s*r))) - _pio2_lo2) + } else { + /* f+c = sqrt(z) */ + f = s + v1 = *(*Tuint64_t)(unsafe.Pointer(&f))>>Int32FromInt32(32)<>int32(31) != 0 { + return -x + } + return x +} + +var _pio2 = float64(1.5707963267948966) + +/* coefficients for R(x^2) */ +var _pS03 = float32(0.16666586697) +var _pS13 = float32(-Float64FromFloat64(0.042743422091)) +var _pS23 = float32(-Float64FromFloat64(0.008656363003)) +var _qS13 = float32(-Float64FromFloat64(0.7066296339)) + +func _R3(tls *TLS, z float32) (r float32) { + var p, q Tfloat_t + _, _ = p, q + p = Tfloat_t(z * (_pS03 + float32(z*(_pS13+float32(z*_pS23))))) + q = Float32FromFloat32(1) + float32(z*_qS13) + return p / q +} + +func Xasinf(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + var hx, ix Tuint32_t + var s float64 + var z float32 + _, _, _, _ = hx, ix, s, z + hx = *(*Tuint32_t)(unsafe.Pointer(&x)) + ix = hx & uint32(0x7fffffff) + if ix >= uint32(0x3f800000) { /* |x| >= 1 */ + if ix == uint32(0x3f800000) { /* |x| == 1 */ + return float32(float64(float64(x)*_pio2) + Float64FromFloat32(7.52316384526264e-37)) + } /* asin(+-1) = +-pi/2 with inexact */ + return Float32FromInt32(0) / (x - x) /* asin(|x|>1) is NaN */ + } + if ix < uint32(0x3f000000) { /* |x| < 0.5 */ + /* if 0x1p-126 <= |x| < 0x1p-12, avoid raising underflow */ + if ix < uint32(0x39800000) && ix >= uint32(0x00800000) { + return x + } + return x + float32(x*_R3(tls, float32(x*x))) + } + /* 1 > |x| >= 0.5 */ + z = float32((Float32FromInt32(1) - Xfabsf(tls, x)) * Float32FromFloat32(0.5)) + s = Xsqrt(tls, float64(z)) + x = float32(_pio2 - float64(Float64FromInt32(2)*(s+float64(s*float64(_R3(tls, z)))))) + if hx>>int32(31) != 0 { + return -x + } + return x +} + +// C documentation +// +// /* asinh(x) = sign(x)*log(|x|+sqrt(x*x+1)) ~= x - x^3/6 + o(x^5) */ +func Xasinh(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e, s uint32 + var y float32 + var y1, y2, v1 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _ = e, s, y, y1, y2, v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + e = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + s = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(63)) + /* |x| */ + *(*Tuint64_t)(unsafe.Pointer(bp)) &= Uint64FromInt32(-Int32FromInt32(1)) / Uint64FromInt32(2) + x3 = *(*float64)(unsafe.Pointer(bp)) + if e >= Uint32FromInt32(Int32FromInt32(0x3ff)+Int32FromInt32(26)) { + /* |x| >= 0x1p26 or inf or nan */ + x3 = Xlog(tls, x3) + float64(0.6931471805599453) + } else { + if e >= Uint32FromInt32(Int32FromInt32(0x3ff)+Int32FromInt32(1)) { + /* |x| >= 2 */ + x3 = Xlog(tls, float64(Float64FromInt32(2)*x3)+Float64FromInt32(1)/(Xsqrt(tls, float64(x3*x3)+Float64FromInt32(1))+x3)) + } else { + if e >= Uint32FromInt32(Int32FromInt32(0x3ff)-Int32FromInt32(26)) { + /* |x| >= 0x1p-26, up to 1.6ulp error in [0.125,0.5] */ + x3 = Xlog1p(tls, x3+float64(x3*x3)/(Xsqrt(tls, float64(x3*x3)+Float64FromInt32(1))+Float64FromInt32(1))) + } else { + /* |x| < 0x1p-26, raise inexact if x != 0 */ + if uint64(8) == uint64(4) { + y = float32(x3 + Float64FromFloat32(1.329227995784916e+36)) + } else { + if uint64(8) == uint64(8) { + y1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } else { + y2 = float64(x3 + Float64FromFloat32(1.329227995784916e+36)) + } + } + } + } + } + if s != 0 { + v1 = -x3 + } else { + v1 = x3 + } + return v1 +} + +// C documentation +// +// /* asinh(x) = sign(x)*log(|x|+sqrt(x*x+1)) ~= x - x^3/6 + o(x^5) */ +func Xasinhf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var i Tuint32_t + var s uint32 + var y, v1 float32 + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _ = i, s, y, y1, y2, v1 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + i = *(*Tuint32_t)(unsafe.Pointer(bp)) & uint32(0x7fffffff) + s = *(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(31) + /* |x| */ + *(*Tuint32_t)(unsafe.Pointer(bp)) = i + x3 = *(*float32)(unsafe.Pointer(bp)) + if i >= Uint32FromInt32(Int32FromInt32(0x3f800000)+Int32FromInt32(12)<= 0x1p12 or inf or nan */ + x3 = Xlogf(tls, x3) + Float32FromFloat32(0.6931471805599453) + } else { + if i >= Uint32FromInt32(Int32FromInt32(0x3f800000)+Int32FromInt32(1)<= 2 */ + x3 = Xlogf(tls, float32(Float32FromInt32(2)*x3)+Float32FromInt32(1)/(Xsqrtf(tls, float32(x3*x3)+Float32FromInt32(1))+x3)) + } else { + if i >= Uint32FromInt32(Int32FromInt32(0x3f800000)-Int32FromInt32(12)<= 0x1p-12, up to 1.6ulp error in [0.125,0.5] */ + x3 = Xlog1pf(tls, x3+float32(x3*x3)/(Xsqrtf(tls, float32(x3*x3)+Float32FromInt32(1))+Float32FromInt32(1))) + } else { + /* |x| < 0x1p-12, raise inexact if x!=0 */ + if uint64(4) == uint64(4) { + y = x3 + Float32FromFloat32(1.329227995784916e+36) + } else { + if uint64(4) == uint64(8) { + y1 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } else { + y2 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } + } + } + } + } + if s != 0 { + v1 = -x3 + } else { + v1 = x3 + } + return v1 +} + +func Xasinhl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xasinh(tls, x) +} + +func Xasinl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xasin(tls, x) +} + +var _atanhi = [4]float64{ + 0: float64(0.4636476090008061), + 1: float64(0.7853981633974483), + 2: float64(0.982793723247329), + 3: float64(1.5707963267948966), +} + +var _atanlo = [4]float64{ + 0: float64(2.2698777452961687e-17), + 1: float64(3.061616997868383e-17), + 2: float64(1.3903311031230998e-17), + 3: float64(6.123233995736766e-17), +} + +var _aT = [11]float64{ + 0: float64(0.3333333333333293), + 1: -Float64FromFloat64(0.19999999999876483), + 2: float64(0.14285714272503466), + 3: -Float64FromFloat64(0.11111110405462356), + 4: float64(0.09090887133436507), + 5: -Float64FromFloat64(0.0769187620504483), + 6: float64(0.06661073137387531), + 7: -Float64FromFloat64(0.058335701337905735), + 8: float64(0.049768779946159324), + 9: -Float64FromFloat64(0.036531572744216916), + 10: float64(0.016285820115365782), +} + +func Xatan(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var id int32 + var ix, sign Tuint32_t + var s1, s2, w, z, v3 Tdouble_t + var y float32 + var y1, y2 float64 + var v1 uint64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _, _, _, _, _, _, _, _, _, _, _, _ = id, ix, s1, s2, sign, w, y, y1, y2, z, v1, v3 + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x3)) >> int32(32)) + sign = ix >> int32(31) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x44100000) { /* if |x| >= 2^66 */ + *(*float64)(unsafe.Pointer(bp)) = x3 + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 + _2: + if BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var __u1, __u2 Tuint64_t + var ix, iy, lx, ly, m Tuint32_t + var z, v6 float64 + var v1, v3 uint64 + var v5 bool + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _, _, _, _, _, _, _, _, _, _, _, _ = __u1, __u2, ix, iy, lx, ly, m, z, v1, v3, v5, v6 + *(*float64)(unsafe.Pointer(bp)) = x + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + ; + if v5 = BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<> int32(32)) + lx = uint32(__u1) + __u2 = *(*Tuint64_t)(unsafe.Pointer(&y)) + iy = uint32(__u2 >> int32(32)) + ly = uint32(__u2) + if ix-uint32(0x3ff00000)|lx == uint32(0) { /* x = 1.0 */ + return Xatan(tls, y) + } + m = iy>>Int32FromInt32(31)&uint32(1) | ix>>Int32FromInt32(30)&uint32(2) /* 2*sign(x)+sign(y) */ + ix = ix & uint32(0x7fffffff) + iy = iy & uint32(0x7fffffff) + /* when y = 0 */ + if iy|ly == uint32(0) { + switch m { + case uint32(0): + fallthrough + case uint32(1): + return y /* atan(+-0,+anything)=+-0 */ + case uint32(2): + return _pi /* atan(+0,-anything) = pi */ + case uint32(3): + return -_pi /* atan(-0,-anything) =-pi */ + } + } + /* when x = 0 */ + if ix|lx == uint32(0) { + if m&uint32(1) != 0 { + v6 = -_pi / Float64FromInt32(2) + } else { + v6 = _pi / Float64FromInt32(2) + } + return v6 + } + /* when x is INF */ + if ix == uint32(0x7ff00000) { + if iy == uint32(0x7ff00000) { + switch m { + case uint32(0): + return _pi / Float64FromInt32(4) /* atan(+INF,+INF) */ + case uint32(1): + return -_pi / Float64FromInt32(4) /* atan(-INF,+INF) */ + case uint32(2): + return float64(Float64FromInt32(3)*_pi) / Float64FromInt32(4) /* atan(+INF,-INF) */ + case uint32(3): + return float64(float64(-Int32FromInt32(3))*_pi) / Float64FromInt32(4) /* atan(-INF,-INF) */ + } + } else { + switch m { + case uint32(0): + return float64(0) /* atan(+...,+INF) */ + case uint32(1): + return -Float64FromFloat64(0) /* atan(-...,+INF) */ + case uint32(2): + return _pi /* atan(+...,-INF) */ + case uint32(3): + return -_pi /* atan(-...,-INF) */ + } + } + } + /* |y/x| > 0x1p64 */ + if ix+Uint32FromInt32(Int32FromInt32(64)< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ix, iy, m Tuint32_t + var z, v6 float32 + var v1, v3 uint32 + var v5 bool + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _, _, _, _, _, _, _, _ = ix, iy, m, z, v1, v3, v5, v6 + *(*float32)(unsafe.Pointer(bp)) = x + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + ; + if v5 = BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0; !v5 { + *(*float32)(unsafe.Pointer(bp)) = y + v3 = *(*uint32)(unsafe.Pointer(bp)) + goto _4 + _4: + } + if v5 || BoolInt32(v3&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return x + y + } + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + iy = *(*Tuint32_t)(unsafe.Pointer(&y)) + if ix == uint32(0x3f800000) { /* x=1.0 */ + return Xatanf(tls, y) + } + m = iy>>Int32FromInt32(31)&uint32(1) | ix>>Int32FromInt32(30)&uint32(2) /* 2*sign(x)+sign(y) */ + ix = ix & uint32(0x7fffffff) + iy = iy & uint32(0x7fffffff) + /* when y = 0 */ + if iy == uint32(0) { + switch m { + case uint32(0): + fallthrough + case uint32(1): + return y /* atan(+-0,+anything)=+-0 */ + case uint32(2): + return _pi1 /* atan(+0,-anything) = pi */ + case uint32(3): + return -_pi1 /* atan(-0,-anything) =-pi */ + } + } + /* when x = 0 */ + if ix == uint32(0) { + if m&uint32(1) != 0 { + v6 = -_pi1 / Float32FromInt32(2) + } else { + v6 = _pi1 / Float32FromInt32(2) + } + return v6 + } + /* when x is INF */ + if ix == uint32(0x7f800000) { + if iy == uint32(0x7f800000) { + switch m { + case uint32(0): + return _pi1 / Float32FromInt32(4) /* atan(+INF,+INF) */ + case uint32(1): + return -_pi1 / Float32FromInt32(4) /* atan(-INF,+INF) */ + case uint32(2): + return float32(Float32FromInt32(3)*_pi1) / Float32FromInt32(4) /*atan(+INF,-INF)*/ + case uint32(3): + return float32(float32(-Int32FromInt32(3))*_pi1) / Float32FromInt32(4) /*atan(-INF,-INF)*/ + } + } else { + switch m { + case uint32(0): + return Float32FromFloat32(0) /* atan(+...,+INF) */ + case uint32(1): + return -Float32FromFloat32(0) /* atan(-...,+INF) */ + case uint32(2): + return _pi1 /* atan(+...,-INF) */ + case uint32(3): + return -_pi1 /* atan(-...,-INF) */ + } + } + } + /* |y/x| > 0x1p26 */ + if ix+Uint32FromInt32(Int32FromInt32(26)< %v", r) }() + } + return Xatan2(tls, y, x) +} + +var _atanhi1 = [4]float32{ + 0: float32(0.46364760399), + 1: float32(0.78539812565), + 2: float32(0.98279368877), + 3: float32(1.5707962513), +} + +var _atanlo1 = [4]float32{ + 0: float32(5.012158244e-09), + 1: float32(3.7748947079e-08), + 2: float32(3.447321717e-08), + 3: float32(7.5497894159e-08), +} + +var _aT1 = [5]float32{ + 0: float32(0.33333328366), + 1: float32(-Float64FromFloat64(0.19999158382)), + 2: float32(0.14253635705), + 3: float32(-Float64FromFloat64(0.10648017377)), + 4: float32(0.061687607318), +} + +func Xatanf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var id int32 + var ix, sign Tuint32_t + var s1, s2, w, z, v3 Tfloat_t + var y float32 + var y1, y2 float64 + var v1 uint32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _, _, _, _, _, _, _, _, _, _, _, _ = id, ix, s1, s2, sign, w, y, y1, y2, z, v1, v3 + ix = *(*Tuint32_t)(unsafe.Pointer(&x3)) + sign = ix >> int32(31) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x4c800000) { /* if |x| >= 2**26 */ + *(*float32)(unsafe.Pointer(bp)) = x3 + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 + _2: + if BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return x3 + } + z = _atanhi1[int32(3)] + Float32FromFloat32(7.52316384526264e-37) + if sign != 0 { + v3 = -z + } else { + v3 = z + } + return v3 + } + if ix < uint32(0x3ee00000) { /* |x| < 0.4375 */ + if ix < uint32(0x39800000) { /* |x| < 2**-12 */ + if ix < uint32(0x00800000) { + /* raise underflow for subnormal x */ + if uint64(4) == uint64(4) { + y = float32(x3 * x3) + } else { + if uint64(4) == uint64(8) { + y1 = float64(x3 * x3) + } else { + y2 = float64(x3 * x3) + } + } + } + return x3 + } + id = -int32(1) + } else { + x3 = Xfabsf(tls, x3) + if ix < uint32(0x3f980000) { /* |x| < 1.1875 */ + if ix < uint32(0x3f300000) { /* 7/16 <= |x| < 11/16 */ + id = 0 + x3 = (float32(Float32FromFloat32(2)*x3) - Float32FromFloat32(1)) / (Float32FromFloat32(2) + x3) + } else { /* 11/16 <= |x| < 19/16 */ + id = int32(1) + x3 = (x3 - Float32FromFloat32(1)) / (x3 + Float32FromFloat32(1)) + } + } else { + if ix < uint32(0x401c0000) { /* |x| < 2.4375 */ + id = int32(2) + x3 = (x3 - Float32FromFloat32(1.5)) / (Float32FromFloat32(1) + float32(Float32FromFloat32(1.5)*x3)) + } else { /* 2.4375 <= |x| < 2**26 */ + id = int32(3) + x3 = -Float32FromFloat32(1) / x3 + } + } + } + /* end of argument reduction */ + z = Tfloat_t(x3 * x3) + w = Tfloat_t(z * z) + /* break sum from i=0 to 10 aT[i]z**(i+1) into odd and even poly */ + s1 = Tfloat_t(z * (_aT1[0] + float32(w*(_aT1[int32(2)]+float32(w*_aT1[int32(4)]))))) + s2 = Tfloat_t(w * (_aT1[int32(1)] + float32(w*_aT1[int32(3)]))) + if id < 0 { + return x3 - float32(x3*(s1+s2)) + } + z = _atanhi1[id] - (float32(x3*(s1+s2)) - _atanlo1[id] - x3) + if sign != 0 { + v3 = -z + } else { + v3 = z + } + return v3 +} + +// C documentation +// +// /* atanh(x) = log((1+x)/(1-x))/2 = log1p(2x/(1-x))/2 ~= x + x^3/3 + o(x^5) */ +func Xatanh(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e, s uint32 + var y float32 + var y1, y2 float64 + var y3, v1 Tdouble_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _ = e, s, y, y1, y2, y3, v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + e = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + s = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(63)) + /* |x| */ + *(*Tuint64_t)(unsafe.Pointer(bp)) &= Uint64FromInt32(-Int32FromInt32(1)) / Uint64FromInt32(2) + y3 = *(*float64)(unsafe.Pointer(bp)) + if e < Uint32FromInt32(Int32FromInt32(0x3ff)-Int32FromInt32(1)) { + if e < Uint32FromInt32(Int32FromInt32(0x3ff)-Int32FromInt32(32)) { + /* handle underflow */ + if e == uint32(0) { + if uint64(4) == uint64(4) { + y = float32(y3) + } else { + if uint64(4) == uint64(8) { + y1 = float64(float32(y3)) + } else { + y2 = float64(float32(y3)) + } + } + } + } else { + /* |x| < 0.5, up to 1.7ulp error */ + y3 = Tdouble_t(float64(0.5) * Xlog1p(tls, Tdouble_t(Float64FromInt32(2)*y3)+Tdouble_t(Tdouble_t(Float64FromInt32(2)*y3)*y3)/(Float64FromInt32(1)-y3))) + } + } else { + /* avoid overflow */ + y3 = Tdouble_t(float64(0.5) * Xlog1p(tls, float64(Float64FromInt32(2)*(y3/(Float64FromInt32(1)-y3))))) + } + if s != 0 { + v1 = -y3 + } else { + v1 = y3 + } + return v1 +} + +// C documentation +// +// /* atanh(x) = log((1+x)/(1-x))/2 = log1p(2x/(1-x))/2 ~= x + x^3/3 + o(x^5) */ +func Xatanhf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var s uint32 + var y float32 + var y1, y2 float64 + var y3, v1 Tfloat_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _ = s, y, y1, y2, y3, v1 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + s = *(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(31) + /* |x| */ + *(*Tuint32_t)(unsafe.Pointer(bp)) &= uint32(0x7fffffff) + y3 = *(*float32)(unsafe.Pointer(bp)) + if *(*Tuint32_t)(unsafe.Pointer(bp)) < Uint32FromInt32(Int32FromInt32(0x3f800000)-Int32FromInt32(1)< %v", r) }() + } + return Xatanh(tls, x) +} + +func Xatanl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xatan(tls, x) +} + +var _B1 = uint32(715094163) /* B1 = (1023-1023/3-0.03306235651)*2**20 */ +var _B2 = uint32(696219795) /* B2 = (1023-1023/3-54/3-0.03306235651)*2**20 */ + +// C documentation +// +// /* |1/cbrt(x) - p(x)| < 2**-23.5 (~[-7.93e-8, 7.929e-8]). */ + +var _P0 = float64(1.87595182427177) /* 0x3ffe03e6, 0x0f61e692 */ +var _P1 = -Float64FromFloat64(1.8849797954337717) /* 0xbffe28e0, 0x92f02420 */ +var _P2 = float64(1.6214297201053545) /* 0x3ff9f160, 0x4a49d6c2 */ +var _P3 = -Float64FromFloat64(0.758397934778766) /* 0xbfe844cb, 0xbee751d9 */ +var _P4 = float64(0.14599619288661245) /* 0x3fc2b000, 0xd4e4edd7 */ + +func Xcbrt(tls *TLS, x float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var hx Tuint32_t + var r, s, t, w Tdouble_t + var v1 uintptr + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _ = hx, r, s, t, w, v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + hx = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32) & uint64(0x7fffffff)) + if hx >= uint32(0x7ff00000) { /* cbrt(NaN,INF) is itself */ + return x + x + } + /* + * Rough cbrt to 5 bits: + * cbrt(2**e*(1+m) ~= 2**(e/3)*(1+(e%3+m)/3) + * where e is integral and >= 0, m is real and in [0, 1), and "/" and + * "%" are integer division and modulus with rounding towards minus + * infinity. The RHS is always >= the LHS and has a maximum relative + * error of about 1 in 16. Adding a bias of -0.03306235651 to the + * (e%3+m)/3 term reduces the error to about 1 in 32. With the IEEE + * floating point representation, for finite positive normal values, + * ordinary integer divison of the value in bits magically gives + * almost exactly the RHS of the above provided we first subtract the + * exponent bias (1023 for doubles) and later add it back. We do the + * subtraction virtually to keep e >= 0 so that ordinary integer + * division rounds towards minus infinity; this is also efficient. + */ + if hx < uint32(0x00100000) { /* zero or subnormal? */ + *(*float64)(unsafe.Pointer(bp)) = float64(x * float64(1.8014398509481984e+16)) + hx = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32) & uint64(0x7fffffff)) + if hx == uint32(0) { + return x + } /* cbrt(0) is itself */ + hx = hx/uint32(3) + _B2 + } else { + hx = hx/uint32(3) + _B1 + } + v1 = bp + *(*Tuint64_t)(unsafe.Pointer(v1)) = Tuint64_t(*(*Tuint64_t)(unsafe.Pointer(v1)) & (Uint64FromUint64(1) << Int32FromInt32(63))) + *(*Tuint64_t)(unsafe.Pointer(bp)) |= uint64(hx) << int32(32) + t = *(*float64)(unsafe.Pointer(bp)) + /* + * New cbrt to 23 bits: + * cbrt(x) = t*cbrt(x/t**3) ~= t*P(t**3/x) + * where P(r) is a polynomial of degree 4 that approximates 1/cbrt(r) + * to within 2**-23.5 when |r - 1| < 1/10. The rough approximation + * has produced t such than |t/cbrt(x) - 1| ~< 1/32, and cubing this + * gives us bounds for r = t**3/x. + * + * Try to optimize for parallel evaluation as in __tanf.c. + */ + r = Tdouble_t(Tdouble_t(t*t) * (t / x)) + t = Tdouble_t(t * (_P0 + float64(r*(_P1+float64(r*_P2))) + float64(Tdouble_t(Tdouble_t(r*r)*r)*(_P3+float64(r*_P4))))) + /* + * Round t away from zero to 23 bits (sloppily except for ensuring that + * the result is larger in magnitude than cbrt(x) but not much more than + * 2 23-bit ulps larger). With rounding towards zero, the error bound + * would be ~5/6 instead of ~4/6. With a maximum error of 2 23-bit ulps + * in the rounded t, the infinite-precision error in the Newton + * approximation barely affects third digit in the final error + * 0.667; the error in the rounded t can be up to about 3 23-bit ulps + * before the final error is larger than 0.667 ulps. + */ + *(*float64)(unsafe.Pointer(bp)) = t + *(*Tuint64_t)(unsafe.Pointer(bp)) = uint64(*(*Tuint64_t)(unsafe.Pointer(bp))+Uint64FromUint32(0x80000000)) & uint64(0xffffffffc0000000) + t = *(*float64)(unsafe.Pointer(bp)) + /* one step Newton iteration to 53 bits with error < 0.667 ulps */ + s = Tdouble_t(t * t) /* t*t is exact */ + r = x / s /* error <= 0.5 ulps; |r| < |t| */ + w = t + t /* t+t is exact */ + r = (r - t) / (w + r) /* r-t is exact; w+r ~= 3*t */ + t = t + Tdouble_t(t*r) /* error <= 0.5 + 0.5/3 + epsilon */ + return t +} + +var _B11 = uint32(709958130) /* B1 = (127-127.0/3-0.03306235651)*2**23 */ +var _B21 = uint32(642849266) /* B2 = (127-127.0/3-24/3-0.03306235651)*2**23 */ + +func Xcbrtf(tls *TLS, x float32) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var T, r Tdouble_t + var hx Tuint32_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _ = T, hx, r + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + hx = *(*Tuint32_t)(unsafe.Pointer(bp)) & uint32(0x7fffffff) + if hx >= uint32(0x7f800000) { /* cbrt(NaN,INF) is itself */ + return x + x + } + /* rough cbrt to 5 bits */ + if hx < uint32(0x00800000) { /* zero or subnormal? */ + if hx == uint32(0) { + return x + } /* cbrt(+-0) is itself */ + *(*float32)(unsafe.Pointer(bp)) = float32(x * Float32FromFloat32(1.6777216e+07)) + hx = *(*Tuint32_t)(unsafe.Pointer(bp)) & uint32(0x7fffffff) + hx = hx/uint32(3) + _B21 + } else { + hx = hx/uint32(3) + _B11 + } + *(*Tuint32_t)(unsafe.Pointer(bp)) &= uint32(0x80000000) + *(*Tuint32_t)(unsafe.Pointer(bp)) |= hx + /* + * First step Newton iteration (solving t*t-x/t == 0) to 16 bits. In + * double precision so that its terms can be arranged for efficiency + * without causing overflow or underflow. + */ + T = float64(*(*float32)(unsafe.Pointer(bp))) + r = Tdouble_t(Tdouble_t(T*T) * T) + T = Tdouble_t(T*(float64(x)+float64(x)+r)) / (float64(x) + r + r) + /* + * Second step Newton iteration to 47 bits. In double precision for + * efficiency and accuracy. + */ + r = Tdouble_t(Tdouble_t(T*T) * T) + T = Tdouble_t(T*(float64(x)+float64(x)+r)) / (float64(x) + r + r) + /* rounding to 24 bits is perfect in round-to-nearest mode */ + return float32(T) +} + +func Xcbrtl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xcbrt(tls, x) +} + +const DBL_EPSILON5 = 2.220446049250313e-16 + +var _toint2 = Float64FromInt32(1) / Float64FromFloat64(2.220446049250313e-16) + +func Xceil(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e int32 + var y float32 + var y1, y2, v1 float64 + var y3 Tdouble_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _ = e, y, y1, y2, y3, v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + e = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + if e >= Int32FromInt32(0x3ff)+Int32FromInt32(52) || x3 == Float64FromInt32(0) { + return x3 + } + /* y = int(x) - x, where int(x) is an integer neighbor of x */ + if *(*Tuint64_t)(unsafe.Pointer(bp))>>int32(63) != 0 { + y3 = x3 - _toint2 + _toint2 - x3 + } else { + y3 = x3 + _toint2 - _toint2 - x3 + } + /* special case because of non-nearest rounding modes */ + if e <= Int32FromInt32(0x3ff)-Int32FromInt32(1) { + if uint64(8) == uint64(4) { + y = float32(y3) + } else { + if uint64(8) == uint64(8) { + y1 = y3 + } else { + y2 = y3 + } + } + if *(*Tuint64_t)(unsafe.Pointer(bp))>>int32(63) != 0 { + v1 = -Float64FromFloat64(0) + } else { + v1 = Float64FromInt32(1) + } + return v1 + } + if y3 < Float64FromInt32(0) { + return x3 + y3 + Float64FromInt32(1) + } + return x3 + y3 +} + +const DBL_EPSILON6 = 0 + +func Xceilf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e int32 + var m Tuint32_t + var y float32 + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _ = e, m, y, y1, y2 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + e = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp))>>Int32FromInt32(23)&Uint32FromInt32(0xff)) - int32(0x7f) + if e >= int32(23) { + return x3 + } + if e >= 0 { + m = Uint32FromInt32(int32(0x007fffff) >> e) + if *(*Tuint32_t)(unsafe.Pointer(bp))&m == uint32(0) { + return x3 + } + if uint64(4) == uint64(4) { + y = x3 + Float32FromFloat32(1.329227995784916e+36) + } else { + if uint64(4) == uint64(8) { + y1 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } else { + y2 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } + } + if *(*Tuint32_t)(unsafe.Pointer(bp))>>int32(31) == uint32(0) { + *(*Tuint32_t)(unsafe.Pointer(bp)) += m + } + *(*Tuint32_t)(unsafe.Pointer(bp)) &= ^m + } else { + if uint64(4) == uint64(4) { + y = x3 + Float32FromFloat32(1.329227995784916e+36) + } else { + if uint64(4) == uint64(8) { + y1 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } else { + y2 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } + } + if *(*Tuint32_t)(unsafe.Pointer(bp))>>int32(31) != 0 { + *(*float32)(unsafe.Pointer(bp)) = float32(-Float64FromFloat64(0)) + } else { + if *(*Tuint32_t)(unsafe.Pointer(bp))< %v", r) }() + } + return Xceil(tls, x) +} + +func Xcopysign(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uintptr + var _ /* ux at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + var _ /* uy at bp+8 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _ = v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp + 8)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp + 8)) = y + v1 = bp + *(*Tuint64_t)(unsafe.Pointer(v1)) = Tuint64_t(*(*Tuint64_t)(unsafe.Pointer(v1)) & (-Uint64FromUint64(1) / Uint64FromInt32(2))) + v1 = bp + *(*Tuint64_t)(unsafe.Pointer(v1)) = Tuint64_t(*(*Tuint64_t)(unsafe.Pointer(v1)) | *(*Tuint64_t)(unsafe.Pointer(bp + 8))&(Uint64FromUint64(1)< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* ux at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + var _ /* uy at bp+4 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp + 4)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp + 4)) = y + *(*Tuint32_t)(unsafe.Pointer(bp)) &= uint32(0x7fffffff) + *(*Tuint32_t)(unsafe.Pointer(bp)) |= *(*Tuint32_t)(unsafe.Pointer(bp + 4)) & uint32(0x80000000) + return *(*float32)(unsafe.Pointer(bp)) +} + +func Xcopysignl(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xcopysign(tls, x, y) +} + +func Xcos(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ix Tuint32_t + var n uint32 + var y float32 + var y1, y2 float64 + var _ /* y at bp+0 */ [2]float64 + _, _, _, _, _ = ix, n, y, y1, y2 + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x3)) >> int32(32)) + ix = ix & uint32(0x7fffffff) + /* |x| ~< pi/4 */ + if ix <= uint32(0x3fe921fb) { + if ix < uint32(0x3e46a09e) { /* |x| < 2**-27 * sqrt(2) */ + /* raise inexact if x!=0 */ + if uint64(8) == uint64(4) { + y = float32(x3 + Float64FromFloat32(1.329227995784916e+36)) + } else { + if uint64(8) == uint64(8) { + y1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } else { + y2 = float64(x3 + Float64FromFloat32(1.329227995784916e+36)) + } + } + return float64(1) + } + return X__cos(tls, x3, Float64FromInt32(0)) + } + /* cos(Inf or NaN) is NaN */ + if ix >= uint32(0x7ff00000) { + return x3 - x3 + } + /* argument reduction */ + n = Uint32FromInt32(X__rem_pio2(tls, x3, bp)) + switch n & Uint32FromInt32(3) { + case uint32(0): + return X__cos(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)]) + case uint32(1): + return -X__sin(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)], int32(1)) + case uint32(2): + return -X__cos(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)]) + default: + return X__sin(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)], int32(1)) + } + return r +} + +const M_PI_23 = 1.5707963267948966 + +// C documentation +// +// /* Small multiples of pi/2 rounded to double precision. */ + +var _c1pio2 = float64(Float64FromInt32(1) * Float64FromFloat64(1.5707963267948966)) /* 0x3FF921FB, 0x54442D18 */ +var _c2pio2 = float64(Float64FromInt32(2) * Float64FromFloat64(1.5707963267948966)) /* 0x400921FB, 0x54442D18 */ +var _c3pio2 = float64(Float64FromInt32(3) * Float64FromFloat64(1.5707963267948966)) /* 0x4012D97C, 0x7F3321D2 */ +var _c4pio2 = float64(Float64FromInt32(4) * Float64FromFloat64(1.5707963267948966)) /* 0x401921FB, 0x54442D18 */ + +func Xcosf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ix Tuint32_t + var n, sign uint32 + var y float32 + var y1, y2, v1 float64 + var _ /* y at bp+0 */ float64 + _, _, _, _, _, _, _ = ix, n, sign, y, y1, y2, v1 + ix = *(*Tuint32_t)(unsafe.Pointer(&x3)) + sign = ix >> int32(31) + ix = ix & uint32(0x7fffffff) + if ix <= uint32(0x3f490fda) { /* |x| ~<= pi/4 */ + if ix < uint32(0x39800000) { /* |x| < 2**-12 */ + /* raise inexact if x != 0 */ + if uint64(4) == uint64(4) { + y = x3 + Float32FromFloat32(1.329227995784916e+36) + } else { + if uint64(4) == uint64(8) { + y1 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } else { + y2 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } + } + return Float32FromFloat32(1) + } + return X__cosdf(tls, float64(x3)) + } + if ix <= uint32(0x407b53d1) { /* |x| ~<= 5*pi/4 */ + if ix > uint32(0x4016cbe3) { /* |x| ~> 3*pi/4 */ + if sign != 0 { + v1 = float64(x3) + _c2pio2 + } else { + v1 = float64(x3) - _c2pio2 + } + return -X__cosdf(tls, v1) + } else { + if sign != 0 { + return X__sindf(tls, float64(x3)+_c1pio2) + } else { + return X__sindf(tls, _c1pio2-float64(x3)) + } + } + } + if ix <= uint32(0x40e231d5) { /* |x| ~<= 9*pi/4 */ + if ix > uint32(0x40afeddf) { /* |x| ~> 7*pi/4 */ + if sign != 0 { + v1 = float64(x3) + _c4pio2 + } else { + v1 = float64(x3) - _c4pio2 + } + return X__cosdf(tls, v1) + } else { + if sign != 0 { + return X__sindf(tls, float64(-x3)-_c3pio2) + } else { + return X__sindf(tls, float64(x3)-_c3pio2) + } + } + } + /* cos(Inf or NaN) is NaN */ + if ix >= uint32(0x7f800000) { + return x3 - x3 + } + /* general argument reduction needed */ + n = Uint32FromInt32(X__rem_pio2f(tls, x3, bp)) + switch n & Uint32FromInt32(3) { + case uint32(0): + return X__cosdf(tls, **(**float64)(__ccgo_up(bp))) + case uint32(1): + return X__sindf(tls, -**(**float64)(__ccgo_up(bp))) + case uint32(2): + return -X__cosdf(tls, **(**float64)(__ccgo_up(bp))) + default: + return X__sindf(tls, **(**float64)(__ccgo_up(bp))) + } + return r +} + +const M_PI_24 = 0 + +// C documentation +// +// /* cosh(x) = (exp(x) + 1/exp(x))/2 +// * = 1 + 0.5*(exp(x)-1)*(exp(x)-1)/exp(x) +// * = 1 + x*x/2 + o(x^4) +// */ +func Xcosh(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var t, y1, y2 float64 + var w Tuint32_t + var y float32 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _ = t, w, y, y1, y2 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + /* |x| */ + *(*Tuint64_t)(unsafe.Pointer(bp)) &= Uint64FromInt32(-Int32FromInt32(1)) / Uint64FromInt32(2) + x3 = *(*float64)(unsafe.Pointer(bp)) + w = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32)) + /* |x| < log(2) */ + if w < uint32(0x3fe62e42) { + if w < Uint32FromInt32(Int32FromInt32(0x3ff00000)-Int32FromInt32(26)<log(0x1p26) then the 1/t is not needed */ + return float64(float64(0.5) * (t + Float64FromInt32(1)/t)) + } + /* |x| > log(DBL_MAX) or nan */ + /* note: the result is stored to handle overflow */ + t = X__expo2(tls, x3, float64(1)) + return t +} + +func Xcoshf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var t, y float32 + var w Tuint32_t + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _ = t, w, y, y1, y2 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + /* |x| */ + *(*Tuint32_t)(unsafe.Pointer(bp)) &= uint32(0x7fffffff) + x3 = *(*float32)(unsafe.Pointer(bp)) + w = *(*Tuint32_t)(unsafe.Pointer(bp)) + /* |x| < log(2) */ + if w < uint32(0x3f317217) { + if w < Uint32FromInt32(Int32FromInt32(0x3f800000)-Int32FromInt32(12)< log(FLT_MAX) or nan */ + t = X__expo2f(tls, x3, Float32FromFloat32(1)) + return t +} + +func Xcoshl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xcosh(tls, x) +} + +func Xcosl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xcos(tls, x) +} + +var _erx = float64(0.8450629115104675) /* 0x3FEB0AC1, 0x60000000 */ +/* + * Coefficients for approximation to erf on [0,0.84375] + */ +var _efx8 = float64(1.0270333367641007) /* 0x3FF06EBA, 0x8214DB69 */ +var _pp0 = float64(0.12837916709551256) /* 0x3FC06EBA, 0x8214DB68 */ +var _pp1 = -Float64FromFloat64(0.3250421072470015) /* 0xBFD4CD7D, 0x691CB913 */ +var _pp2 = -Float64FromFloat64(0.02848174957559851) /* 0xBF9D2A51, 0xDBD7194F */ +var _pp3 = -Float64FromFloat64(0.005770270296489442) /* 0xBF77A291, 0x236668E4 */ +var _pp4 = -Float64FromFloat64(2.3763016656650163e-05) /* 0xBEF8EAD6, 0x120016AC */ +var _qq1 = float64(0.39791722395915535) /* 0x3FD97779, 0xCDDADC09 */ +var _qq2 = float64(0.0650222499887673) /* 0x3FB0A54C, 0x5536CEBA */ +var _qq3 = float64(0.005081306281875766) /* 0x3F74D022, 0xC4D36B0F */ +var _qq4 = float64(0.00013249473800432164) /* 0x3F215DC9, 0x221C1A10 */ +var _qq5 = -Float64FromFloat64(3.960228278775368e-06) /* 0xBED09C43, 0x42A26120 */ +/* + * Coefficients for approximation to erf in [0.84375,1.25] + */ +var _pa0 = -Float64FromFloat64(0.0023621185607526594) /* 0xBF6359B8, 0xBEF77538 */ +var _pa1 = float64(0.41485611868374833) /* 0x3FDA8D00, 0xAD92B34D */ +var _pa2 = -Float64FromFloat64(0.3722078760357013) /* 0xBFD7D240, 0xFBB8C3F1 */ +var _pa3 = float64(0.31834661990116175) /* 0x3FD45FCA, 0x805120E4 */ +var _pa4 = -Float64FromFloat64(0.11089469428239668) /* 0xBFBC6398, 0x3D3E28EC */ +var _pa5 = float64(0.035478304325618236) /* 0x3FA22A36, 0x599795EB */ +var _pa6 = -Float64FromFloat64(0.002166375594868791) /* 0xBF61BF38, 0x0A96073F */ +var _qa1 = float64(0.10642088040084423) /* 0x3FBB3E66, 0x18EEE323 */ +var _qa2 = float64(0.540397917702171) /* 0x3FE14AF0, 0x92EB6F33 */ +var _qa3 = float64(0.07182865441419627) /* 0x3FB2635C, 0xD99FE9A7 */ +var _qa4 = float64(0.12617121980876164) /* 0x3FC02660, 0xE763351F */ +var _qa5 = float64(0.01363708391202905) /* 0x3F8BEDC2, 0x6B51DD1C */ +var _qa6 = float64(0.011984499846799107) /* 0x3F888B54, 0x5735151D */ +/* + * Coefficients for approximation to erfc in [1.25,1/0.35] + */ +var _ra0 = -Float64FromFloat64(0.009864944034847148) /* 0xBF843412, 0x600D6435 */ +var _ra1 = -Float64FromFloat64(0.6938585727071818) /* 0xBFE63416, 0xE4BA7360 */ +var _ra2 = -Float64FromFloat64(10.558626225323291) /* 0xC0251E04, 0x41B0E726 */ +var _ra3 = -Float64FromFloat64(62.375332450326006) /* 0xC04F300A, 0xE4CBA38D */ +var _ra4 = -Float64FromFloat64(162.39666946257347) /* 0xC0644CB1, 0x84282266 */ +var _ra5 = -Float64FromFloat64(184.60509290671104) /* 0xC067135C, 0xEBCCABB2 */ +var _ra6 = -Float64FromFloat64(81.2874355063066) /* 0xC0545265, 0x57E4D2F2 */ +var _ra7 = -Float64FromFloat64(9.814329344169145) /* 0xC023A0EF, 0xC69AC25C */ +var _sa1 = float64(19.651271667439257) /* 0x4033A6B9, 0xBD707687 */ +var _sa2 = float64(137.65775414351904) /* 0x4061350C, 0x526AE721 */ +var _sa3 = float64(434.56587747522923) /* 0x407B290D, 0xD58A1A71 */ +var _sa4 = float64(645.3872717332679) /* 0x40842B19, 0x21EC2868 */ +var _sa5 = float64(429.00814002756783) /* 0x407AD021, 0x57700314 */ +var _sa6 = float64(108.63500554177944) /* 0x405B28A3, 0xEE48AE2C */ +var _sa7 = float64(6.570249770319282) /* 0x401A47EF, 0x8E484A93 */ +var _sa8 = -Float64FromFloat64(0.0604244152148581) /* 0xBFAEEFF2, 0xEE749A62 */ +/* + * Coefficients for approximation to erfc in [1/.35,28] + */ +var _rb0 = -Float64FromFloat64(0.0098649429247001) /* 0xBF843412, 0x39E86F4A */ +var _rb1 = -Float64FromFloat64(0.799283237680523) /* 0xBFE993BA, 0x70C285DE */ +var _rb2 = -Float64FromFloat64(17.757954917754752) /* 0xC031C209, 0x555F995A */ +var _rb3 = -Float64FromFloat64(160.63638485582192) /* 0xC064145D, 0x43C5ED98 */ +var _rb4 = -Float64FromFloat64(637.5664433683896) /* 0xC083EC88, 0x1375F228 */ +var _rb5 = -Float64FromFloat64(1025.0951316110772) /* 0xC0900461, 0x6A2E5992 */ +var _rb6 = -Float64FromFloat64(483.5191916086514) /* 0xC07E384E, 0x9BDC383F */ +var _sb1 = float64(30.33806074348246) /* 0x403E568B, 0x261D5190 */ +var _sb2 = float64(325.7925129965739) /* 0x40745CAE, 0x221B9F0A */ +var _sb3 = float64(1536.729586084437) /* 0x409802EB, 0x189D5118 */ +var _sb4 = float64(3199.8582195085955) /* 0x40A8FFB7, 0x688C246A */ +var _sb5 = float64(2553.0504064331644) /* 0x40A3F219, 0xCEDF3BE6 */ +var _sb6 = float64(474.52854120695537) /* 0x407DA874, 0xE79FE763 */ +var _sb7 = -Float64FromFloat64(22.44095244658582) /* 0xC03670E2, 0x42712D62 */ + +func _erfc1(tls *TLS, x float64) (r float64) { + var P, Q, s Tdouble_t + _, _, _ = P, Q, s + s = Xfabs(tls, x) - Float64FromInt32(1) + P = _pa0 + float64(s*(_pa1+float64(s*(_pa2+float64(s*(_pa3+float64(s*(_pa4+float64(s*(_pa5+float64(s*_pa6))))))))))) + Q = Float64FromInt32(1) + Tdouble_t(s*(_qa1+float64(s*(_qa2+float64(s*(_qa3+float64(s*(_qa4+float64(s*(_qa5+float64(s*_qa6))))))))))) + return Float64FromInt32(1) - _erx - P/Q +} + +func _erfc2(tls *TLS, ix Tuint32_t, x float64) (r float64) { + var R, S, s Tdouble_t + var z float64 + var v1 Tuint64_t + _, _, _, _, _ = R, S, s, z, v1 + if ix < uint32(0x3ff40000) { /* |x| < 1.25 */ + return _erfc1(tls, x) + } + x = Xfabs(tls, x) + s = Float64FromInt32(1) / float64(x*x) + if ix < uint32(0x4006db6d) { /* |x| < 1/.35 ~ 2.85714 */ + R = _ra0 + float64(s*(_ra1+float64(s*(_ra2+float64(s*(_ra3+float64(s*(_ra4+float64(s*(_ra5+float64(s*(_ra6+float64(s*_ra7))))))))))))) + S = float64(1) + float64(s*(_sa1+float64(s*(_sa2+float64(s*(_sa3+float64(s*(_sa4+float64(s*(_sa5+float64(s*(_sa6+float64(s*(_sa7+float64(s*_sa8))))))))))))))) + } else { /* |x| > 1/.35 */ + R = _rb0 + float64(s*(_rb1+float64(s*(_rb2+float64(s*(_rb3+float64(s*(_rb4+float64(s*(_rb5+float64(s*_rb6))))))))))) + S = float64(1) + float64(s*(_sb1+float64(s*(_sb2+float64(s*(_sb3+float64(s*(_sb4+float64(s*(_sb5+float64(s*(_sb6+float64(s*_sb7))))))))))))) + } + z = x + v1 = *(*Tuint64_t)(unsafe.Pointer(&z))>>Int32FromInt32(32)< %v", r1) }() + } + var ix Tuint32_t + var r, s, y, z, v1 float64 + var sign int32 + _, _, _, _, _, _, _ = ix, r, s, sign, y, z, v1 + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x7ff00000) { + /* erf(nan)=nan, erf(+-inf)=+-1 */ + return float64(int32(1)-int32(2)*sign) + Float64FromInt32(1)/x + } + if ix < uint32(0x3feb0000) { /* |x| < 0.84375 */ + if ix < uint32(0x3e300000) { /* |x| < 2**-28 */ + /* avoid underflow */ + return float64(float64(0.125) * (float64(Float64FromInt32(8)*x) + float64(_efx8*x))) + } + z = float64(x * x) + r = _pp0 + float64(z*(_pp1+float64(z*(_pp2+float64(z*(_pp3+float64(z*_pp4))))))) + s = float64(1) + float64(z*(_qq1+float64(z*(_qq2+float64(z*(_qq3+float64(z*(_qq4+float64(z*_qq5))))))))) + y = r / s + return x + float64(x*y) + } + if ix < uint32(0x40180000) { /* 0.84375 <= |x| < 6 */ + y = Float64FromInt32(1) - _erfc2(tls, ix, x) + } else { + y = Float64FromInt32(1) - Float64FromFloat64(2.2250738585072014e-308) + } + if sign != 0 { + v1 = -y + } else { + v1 = y + } + return v1 +} + +func Xerfc(tls *TLS, x float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var ix Tuint32_t + var r, s, y, z, v1 float64 + var sign int32 + _, _, _, _, _, _, _ = ix, r, s, sign, y, z, v1 + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x7ff00000) { + /* erfc(nan)=nan, erfc(+-inf)=0,2 */ + return float64(int32(2)*sign) + Float64FromInt32(1)/x + } + if ix < uint32(0x3feb0000) { /* |x| < 0.84375 */ + if ix < uint32(0x3c700000) { /* |x| < 2**-56 */ + return float64(1) - x + } + z = float64(x * x) + r = _pp0 + float64(z*(_pp1+float64(z*(_pp2+float64(z*(_pp3+float64(z*_pp4))))))) + s = float64(1) + float64(z*(_qq1+float64(z*(_qq2+float64(z*(_qq3+float64(z*(_qq4+float64(z*_qq5))))))))) + y = r / s + if sign != 0 || ix < uint32(0x3fd00000) { /* x < 1/4 */ + return float64(1) - (x + float64(x*y)) + } + return float64(0.5) - (x - float64(0.5) + float64(x*y)) + } + if ix < uint32(0x403c0000) { /* 0.84375 <= |x| < 28 */ + if sign != 0 { + v1 = Float64FromInt32(2) - _erfc2(tls, ix, x) + } else { + v1 = _erfc2(tls, ix, x) + } + return v1 + } + if sign != 0 { + v1 = Float64FromInt32(2) - Float64FromFloat64(2.2250738585072014e-308) + } else { + v1 = float64(Float64FromFloat64(2.2250738585072014e-308) * Float64FromFloat64(2.2250738585072014e-308)) + } + return v1 +} + +var _erx1 = float32(0.84506291151) /* 0x3f58560b */ +/* + * Coefficients for approximation to erf on [0,0.84375] + */ +var _efx81 = float32(1.027033329) /* 0x3f8375d4 */ +var _pp01 = float32(0.12837916613) /* 0x3e0375d4 */ +var _pp11 = float32(-Float64FromFloat64(0.32504209876)) /* 0xbea66beb */ +var _pp21 = float32(-Float64FromFloat64(0.028481749818)) /* 0xbce9528f */ +var _pp31 = float32(-Float64FromFloat64(0.005770270247)) /* 0xbbbd1489 */ +var _pp41 = float32(-Float64FromFloat64(2.3763017452e-05)) /* 0xb7c756b1 */ +var _qq11 = float32(0.39791721106) /* 0x3ecbbbce */ +var _qq21 = float32(0.0650222525) /* 0x3d852a63 */ +var _qq31 = float32(0.0050813062117) /* 0x3ba68116 */ +var _qq41 = float32(0.00013249473704) /* 0x390aee49 */ +var _qq51 = float32(-Float64FromFloat64(3.9602282413e-06)) /* 0xb684e21a */ +/* + * Coefficients for approximation to erf in [0.84375,1.25] + */ +var _pa01 = float32(-Float64FromFloat64(0.0023621185683)) /* 0xbb1acdc6 */ +var _pa11 = float32(0.41485610604) /* 0x3ed46805 */ +var _pa21 = float32(-Float64FromFloat64(0.37220788002)) /* 0xbebe9208 */ +var _pa31 = float32(0.31834661961) /* 0x3ea2fe54 */ +var _pa41 = float32(-Float64FromFloat64(0.11089469492)) /* 0xbde31cc2 */ +var _pa51 = float32(0.035478305072) /* 0x3d1151b3 */ +var _pa61 = float32(-Float64FromFloat64(0.0021663755178)) /* 0xbb0df9c0 */ +var _qa11 = float32(0.10642088205) /* 0x3dd9f331 */ +var _qa21 = float32(0.54039794207) /* 0x3f0a5785 */ +var _qa31 = float32(0.071828655899) /* 0x3d931ae7 */ +var _qa41 = float32(0.12617121637) /* 0x3e013307 */ +var _qa51 = float32(0.013637083583) /* 0x3c5f6e13 */ +var _qa61 = float32(0.011984500103) /* 0x3c445aa3 */ +/* + * Coefficients for approximation to erfc in [1.25,1/0.35] + */ +var _ra01 = float32(-Float64FromFloat64(0.0098649440333)) /* 0xbc21a093 */ +var _ra11 = float32(-Float64FromFloat64(0.6938585639)) /* 0xbf31a0b7 */ +var _ra21 = float32(-Float64FromFloat64(10.558626175)) /* 0xc128f022 */ +var _ra31 = float32(-Float64FromFloat64(62.375331879)) /* 0xc2798057 */ +var _ra41 = float32(-Float64FromFloat64(162.39666748)) /* 0xc322658c */ +var _ra51 = float32(-Float64FromFloat64(184.60508728)) /* 0xc3389ae7 */ +var _ra61 = float32(-Float64FromFloat64(81.287437439)) /* 0xc2a2932b */ +var _ra71 = float32(-Float64FromFloat64(9.8143291473)) /* 0xc11d077e */ +var _sa11 = float32(19.65127182) /* 0x419d35ce */ +var _sa21 = float32(137.65776062) /* 0x4309a863 */ +var _sa31 = float32(434.56588745) /* 0x43d9486f */ +var _sa41 = float32(645.38726807) /* 0x442158c9 */ +var _sa51 = float32(429.00814819) /* 0x43d6810b */ +var _sa61 = float32(108.63500214) /* 0x42d9451f */ +var _sa71 = float32(6.5702495575) /* 0x40d23f7c */ +var _sa81 = float32(-Float64FromFloat64(0.060424413532)) /* 0xbd777f97 */ +/* + * Coefficients for approximation to erfc in [1/.35,28] + */ +var _rb01 = float32(-Float64FromFloat64(0.009864943102)) /* 0xbc21a092 */ +var _rb11 = float32(-Float64FromFloat64(0.79928326607)) /* 0xbf4c9dd4 */ +var _rb21 = float32(-Float64FromFloat64(17.757955551)) /* 0xc18e104b */ +var _rb31 = float32(-Float64FromFloat64(160.63638306)) /* 0xc320a2ea */ +var _rb41 = float32(-Float64FromFloat64(637.56646729)) /* 0xc41f6441 */ +var _rb51 = float32(-Float64FromFloat64(1025.0950928)) /* 0xc480230b */ +var _rb61 = float32(-Float64FromFloat64(483.51919556)) /* 0xc3f1c275 */ +var _sb11 = float32(30.338060379) /* 0x41f2b459 */ +var _sb21 = float32(325.79251099) /* 0x43a2e571 */ +var _sb31 = float32(1536.7296143) /* 0x44c01759 */ +var _sb41 = float32(3199.8581543) /* 0x4547fdbb */ +var _sb51 = float32(2553.050293) /* 0x451f90ce */ +var _sb61 = float32(474.52853394) /* 0x43ed43a7 */ +var _sb71 = float32(-Float64FromFloat64(22.440952301)) /* 0xc1b38712 */ + +func _erfc11(tls *TLS, x float32) (r float32) { + var P, Q, s Tfloat_t + _, _, _ = P, Q, s + s = Xfabsf(tls, x) - Float32FromInt32(1) + P = _pa01 + float32(s*(_pa11+float32(s*(_pa21+float32(s*(_pa31+float32(s*(_pa41+float32(s*(_pa51+float32(s*_pa61))))))))))) + Q = Float32FromInt32(1) + Tfloat_t(s*(_qa11+float32(s*(_qa21+float32(s*(_qa31+float32(s*(_qa41+float32(s*(_qa51+float32(s*_qa61))))))))))) + return Float32FromInt32(1) - _erx1 - P/Q +} + +func _erfc21(tls *TLS, ix Tuint32_t, x float32) (r float32) { + var R, S, s Tfloat_t + var z float32 + var v1 Tuint32_t + _, _, _, _, _ = R, S, s, z, v1 + if ix < uint32(0x3fa00000) { /* |x| < 1.25 */ + return _erfc11(tls, x) + } + x = Xfabsf(tls, x) + s = Float32FromInt32(1) / float32(x*x) + if ix < uint32(0x4036db6d) { /* |x| < 1/0.35 */ + R = _ra01 + float32(s*(_ra11+float32(s*(_ra21+float32(s*(_ra31+float32(s*(_ra41+float32(s*(_ra51+float32(s*(_ra61+float32(s*_ra71))))))))))))) + S = Float32FromFloat32(1) + float32(s*(_sa11+float32(s*(_sa21+float32(s*(_sa31+float32(s*(_sa41+float32(s*(_sa51+float32(s*(_sa61+float32(s*(_sa71+float32(s*_sa81))))))))))))))) + } else { /* |x| >= 1/0.35 */ + R = _rb01 + float32(s*(_rb11+float32(s*(_rb21+float32(s*(_rb31+float32(s*(_rb41+float32(s*(_rb51+float32(s*_rb61))))))))))) + S = Float32FromFloat32(1) + float32(s*(_sb11+float32(s*(_sb21+float32(s*(_sb31+float32(s*(_sb41+float32(s*(_sb51+float32(s*(_sb61+float32(s*_sb71))))))))))))) + } + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + v1 = ix & uint32(0xffffe000) + z = *(*float32)(unsafe.Pointer(&v1)) + return float32(Xexpf(tls, float32(-z*z)-Float32FromFloat32(0.5625))*Xexpf(tls, float32((z-x)*(z+x))+R/S)) / x +} + +func Xerff(tls *TLS, x float32) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var ix Tuint32_t + var r, s, y, z, v1 float32 + var sign int32 + _, _, _, _, _, _, _ = ix, r, s, sign, y, z, v1 + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x7f800000) { + /* erf(nan)=nan, erf(+-inf)=+-1 */ + return float32(int32(1)-int32(2)*sign) + Float32FromInt32(1)/x + } + if ix < uint32(0x3f580000) { /* |x| < 0.84375 */ + if ix < uint32(0x31800000) { /* |x| < 2**-28 */ + /*avoid underflow */ + return float32(Float32FromFloat32(0.125) * (float32(Float32FromInt32(8)*x) + float32(_efx81*x))) + } + z = float32(x * x) + r = _pp01 + float32(z*(_pp11+float32(z*(_pp21+float32(z*(_pp31+float32(z*_pp41))))))) + s = Float32FromInt32(1) + float32(z*(_qq11+float32(z*(_qq21+float32(z*(_qq31+float32(z*(_qq41+float32(z*_qq51))))))))) + y = r / s + return x + float32(x*y) + } + if ix < uint32(0x40c00000) { /* |x| < 6 */ + y = Float32FromInt32(1) - _erfc21(tls, ix, x) + } else { + y = Float32FromInt32(1) - Float32FromFloat32(7.52316384526264e-37) + } + if sign != 0 { + v1 = -y + } else { + v1 = y + } + return v1 +} + +func Xerfcf(tls *TLS, x float32) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var ix Tuint32_t + var r, s, y, z, v1 float32 + var sign int32 + _, _, _, _, _, _, _ = ix, r, s, sign, y, z, v1 + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x7f800000) { + /* erfc(nan)=nan, erfc(+-inf)=0,2 */ + return float32(int32(2)*sign) + Float32FromInt32(1)/x + } + if ix < uint32(0x3f580000) { /* |x| < 0.84375 */ + if ix < uint32(0x23800000) { /* |x| < 2**-56 */ + return Float32FromFloat32(1) - x + } + z = float32(x * x) + r = _pp01 + float32(z*(_pp11+float32(z*(_pp21+float32(z*(_pp31+float32(z*_pp41))))))) + s = Float32FromFloat32(1) + float32(z*(_qq11+float32(z*(_qq21+float32(z*(_qq31+float32(z*(_qq41+float32(z*_qq51))))))))) + y = r / s + if sign != 0 || ix < uint32(0x3e800000) { /* x < 1/4 */ + return Float32FromFloat32(1) - (x + float32(x*y)) + } + return Float32FromFloat32(0.5) - (x - Float32FromFloat32(0.5) + float32(x*y)) + } + if ix < uint32(0x41e00000) { /* |x| < 28 */ + if sign != 0 { + v1 = Float32FromInt32(2) - _erfc21(tls, ix, x) + } else { + v1 = _erfc21(tls, ix, x) + } + return v1 + } + if sign != 0 { + v1 = Float32FromInt32(2) - Float32FromFloat32(7.52316384526264e-37) + } else { + v1 = float32(Float32FromFloat32(7.52316384526264e-37) * Float32FromFloat32(7.52316384526264e-37)) + } + return v1 +} + +func Xerfl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xerf(tls, x) +} + +func Xerfcl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xerfc(tls, x) +} + +const EXP2_POLY_ORDER = 5 +const EXP_POLY_ORDER = 5 +const EXP_TABLE_BITS = 7 +const EXP_USE_TOINT_NARROW = 0 +const N = 128 + +// C documentation +// +// /* Handle cases that may overflow or underflow when computing the result that +// is scale*(1+TMP) without intermediate rounding. The bit representation of +// scale is in SBITS, however it has a computed exponent that may have +// overflown into the sign bit so that needs to be adjusted before using it as +// a double. (int32_t)KI is the k used in the argument reduction and exponent +// adjustment of scale, positive k here means the result may overflow and +// negative k means the result may underflow. */ +func _specialcase(tls *TLS, tmp Tdouble_t, sbits Tuint64_t, ki Tuint64_t) (r float64) { + var hi, lo, scale, y3 Tdouble_t + var y, y1, y2, v1 float64 + _, _, _, _, _, _, _, _ = hi, lo, scale, y, y1, y2, y3, v1 + if ki&uint64(0x80000000) == uint64(0) { + /* k > 0, the exponent of scale might have overflowed by <= 460. */ + sbits = uint64(sbits - Uint64FromUint64(1009)<> int32(52)) +} + +func Xexp(tls *TLS, x1 float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x1=%v, (%v:)", tls, x1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var abstop Tuint32_t + var idx, ki, sbits, top, v5 Tuint64_t + var kd, r, r2, scale, tail, tmp, z Tdouble_t + var y, v1 float64 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = abstop, idx, kd, ki, r, r2, sbits, scale, tail, tmp, top, y, z, v1, v5 + abstop = _top12(tls, x1) & uint32(0x7ff) + if abstop-_top12(tls, float64(5.551115123125783e-17)) >= _top12(tls, float64(512))-_top12(tls, float64(5.551115123125783e-17)) { + if abstop-_top12(tls, float64(5.551115123125783e-17)) >= uint32(0x80000000) { + /* Avoid spurious underflow for tiny x. */ + /* Note: 0 is common input. */ + return float64(1) + x1 + } + if abstop >= _top12(tls, float64(1024)) { + v1 = float64(-X__builtin_inff(tls)) + if *(*Tuint64_t)(unsafe.Pointer(&x1)) == *(*Tuint64_t)(unsafe.Pointer(&v1)) { + return float64(0) + } + if abstop >= _top12(tls, float64(X__builtin_inff(tls))) { + return float64(1) + x1 + } + if *(*Tuint64_t)(unsafe.Pointer(&x1))>>int32(63) != 0 { + return X__math_uflow(tls, uint32(0)) + } else { + return X__math_oflow(tls, uint32(0)) + } + } + /* Large x is special cased below. */ + abstop = uint32(0) + } + /* exp(x) = 2^(k/N) * exp(r), with exp(r) in [2^(-1/2N),2^(1/2N)]. */ + /* x = ln2/N*k + r, with int k and r in [-ln2/2N, ln2/2N]. */ + z = Tdouble_t(X__exp_data.Finvln2N * x1) + /* z - kd is in [-1, 1] in non-nearest rounding modes. */ + y = z + X__exp_data.Fshift + v1 = y + goto _3 +_3: + kd = v1 + v1 = kd + ki = *(*Tuint64_t)(unsafe.Pointer(&v1)) + kd = kd - X__exp_data.Fshift + r = x1 + float64(kd*X__exp_data.Fnegln2hiN) + float64(kd*X__exp_data.Fnegln2loN) + /* 2^(k/N) ~= scale * (1 + tail). */ + idx = uint64(2) * (ki % Uint64FromInt32(Int32FromInt32(1)< 2^-200 and scale > 2^-739, so there + is no spurious underflow here even without fma. */ + y = scale + Tdouble_t(scale*tmp) + v1 = y + goto _7 +_7: + return v1 +} + +const HUGE = 0 + +func Xexp10(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var y float64 + var _ /* n at bp+0 */ float64 + var _ /* u at bp+8 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _ = y + y = Xmodf(tls, x, bp) + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp + 8)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp + 8)) = **(**float64)(__ccgo_up(bp)) + /* fabs(n) < 16 without raising invalid on nan */ + if *(*Tuint64_t)(unsafe.Pointer(bp + 8))>>int32(52)&uint64(0x7ff) < Uint64FromInt32(Int32FromInt32(0x3ff)+Int32FromInt32(4)) { + if !(y != 0) { + return _p10[int32(**(**float64)(__ccgo_up(bp)))+int32(15)] + } + y = Xexp2(tls, float64(float64(3.321928094887362)*y)) + return float64(y * _p10[int32(**(**float64)(__ccgo_up(bp)))+int32(15)]) + } + return Xpow(tls, float64(10), x) +} + +var _p10 = [31]float64{ + 0: float64(1e-15), + 1: float64(1e-14), + 2: float64(1e-13), + 3: float64(1e-12), + 4: float64(1e-11), + 5: float64(1e-10), + 6: float64(1e-09), + 7: float64(1e-08), + 8: float64(1e-07), + 9: float64(1e-06), + 10: float64(1e-05), + 11: float64(0.0001), + 12: float64(0.001), + 13: float64(0.01), + 14: float64(0.1), + 15: Float64FromInt32(1), + 16: float64(10), + 17: float64(100), + 18: float64(1000), + 19: float64(10000), + 20: float64(100000), + 21: float64(1e+06), + 22: float64(1e+07), + 23: float64(1e+08), + 24: float64(1e+09), + 25: float64(1e+10), + 26: float64(1e+11), + 27: float64(1e+12), + 28: float64(1e+13), + 29: float64(1e+14), + 30: float64(1e+15), +} + +func Xpow10(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xexp10(tls, x) +} + +func Xexp10f(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var y float32 + var _ /* n at bp+0 */ float32 + var _ /* u at bp+4 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _ = y + y = Xmodff(tls, x, bp) + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp + 4)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp + 4)) = **(**float32)(__ccgo_up(bp)) + /* fabsf(n) < 8 without raising invalid on nan */ + if *(*Tuint32_t)(unsafe.Pointer(bp + 4))>>int32(23)&uint32(0xff) < Uint32FromInt32(Int32FromInt32(0x7f)+Int32FromInt32(3)) { + if !(y != 0) { + return _p101[int32(**(**float32)(__ccgo_up(bp)))+int32(7)] + } + y = Xexp2f(tls, float32(Float32FromFloat32(3.321928094887362)*y)) + return float32(y * _p101[int32(**(**float32)(__ccgo_up(bp)))+int32(7)]) + } + return float32(Xexp2(tls, float64(float64(3.321928094887362)*float64(x)))) +} + +var _p101 = [15]float32{ + 0: Float32FromFloat32(1e-07), + 1: Float32FromFloat32(1e-06), + 2: Float32FromFloat32(1e-05), + 3: Float32FromFloat32(0.0001), + 4: Float32FromFloat32(0.001), + 5: Float32FromFloat32(0.01), + 6: Float32FromFloat32(0.1), + 7: Float32FromInt32(1), + 8: float32(10), + 9: float32(100), + 10: float32(1000), + 11: float32(10000), + 12: float32(100000), + 13: float32(1e+06), + 14: float32(1e+07), +} + +func Xpow10f(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xexp10f(tls, x) +} + +func Xexp10l(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xexp10(tls, x) +} + +func Xpow10l(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xexp10l(tls, x) +} + +// C documentation +// +// /* Handle cases that may overflow or underflow when computing the result that +// is scale*(1+TMP) without intermediate rounding. The bit representation of +// scale is in SBITS, however it has a computed exponent that may have +// overflown into the sign bit so that needs to be adjusted before using it as +// a double. (int32_t)KI is the k used in the argument reduction and exponent +// adjustment of scale, positive k here means the result may overflow and +// negative k means the result may underflow. */ +func _specialcase1(tls *TLS, tmp Tdouble_t, sbits Tuint64_t, ki Tuint64_t) (r float64) { + var hi, lo, scale, y3 Tdouble_t + var y, y1, y2, v1 float64 + _, _, _, _, _, _, _, _ = hi, lo, scale, y, y1, y2, y3, v1 + if ki&uint64(0x80000000) == uint64(0) { + /* k > 0, the exponent of scale might have overflowed by 1. */ + sbits = uint64(sbits - Uint64FromUint64(1)<> int32(52)) +} + +func Xexp2(tls *TLS, x1 float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x1=%v, (%v:)", tls, x1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var abstop Tuint32_t + var idx, ki, sbits, top, v7 Tuint64_t + var kd, r, r2, scale, tail, tmp Tdouble_t + var y, v1 float64 + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = abstop, idx, kd, ki, r, r2, sbits, scale, tail, tmp, top, y, v1, v7 + abstop = _top121(tls, x1) & uint32(0x7ff) + if abstop-_top121(tls, float64(5.551115123125783e-17)) >= _top121(tls, float64(512))-_top121(tls, float64(5.551115123125783e-17)) { + if abstop-_top121(tls, float64(5.551115123125783e-17)) >= uint32(0x80000000) { + /* Avoid spurious underflow for tiny x. */ + /* Note: 0 is common input. */ + return float64(1) + x1 + } + if abstop >= _top121(tls, float64(1024)) { + v1 = float64(-X__builtin_inff(tls)) + if *(*Tuint64_t)(unsafe.Pointer(&x1)) == *(*Tuint64_t)(unsafe.Pointer(&v1)) { + return float64(0) + } + if abstop >= _top121(tls, float64(X__builtin_inff(tls))) { + return float64(1) + x1 + } + if !(*(*Tuint64_t)(unsafe.Pointer(&x1))>>Int32FromInt32(63) != 0) { + return X__math_oflow(tls, uint32(0)) + } else { + v1 = -Float64FromFloat64(1075) + if *(*Tuint64_t)(unsafe.Pointer(&x1)) >= *(*Tuint64_t)(unsafe.Pointer(&v1)) { + return X__math_uflow(tls, uint32(0)) + } + } + } + v1 = float64(928) + if uint64(2)**(*Tuint64_t)(unsafe.Pointer(&x1)) > uint64(2)**(*Tuint64_t)(unsafe.Pointer(&v1)) { + /* Large x is special cased below. */ + abstop = uint32(0) + } + } + /* exp2(x) = 2^(k/N) * 2^r, with 2^r in [2^(-1/2N),2^(1/2N)]. */ + /* x = k/N + r, with int k and r in [-1/2N, 1/2N]. */ + y = x1 + X__exp_data.Fexp2_shift + v1 = y + goto _5 +_5: + kd = v1 + v1 = kd + ki = *(*Tuint64_t)(unsafe.Pointer(&v1)) /* k. */ + kd = kd - X__exp_data.Fexp2_shift /* k/N for int k. */ + r = x1 - kd + /* 2^(k/N) ~= scale * (1 + tail). */ + idx = uint64(2) * (ki % Uint64FromInt32(Int32FromInt32(1)< 2^-65 and scale > 2^-928, so there + is no spurious underflow here even without fma. */ + y = scale + Tdouble_t(scale*tmp) + v1 = y + goto _9 +_9: + return v1 +} + +const EXP2F_POLY_ORDER = 3 +const EXP2F_TABLE_BITS = 5 +const N1 = 32 + +/* +EXP2F_TABLE_BITS = 5 +EXP2F_POLY_ORDER = 3 + +ULP error: 0.502 (nearest rounding.) +Relative error: 1.69 * 2^-34 in [-1/64, 1/64] (before rounding.) +Wrong count: 168353 (all nearest rounding wrong results with fma.) +Non-nearest ULP error: 1 (rounded ULP error) +*/ + +func _top122(tls *TLS, x float32) (r Tuint32_t) { + return *(*Tuint32_t)(unsafe.Pointer(&x)) >> int32(20) +} + +func Xexp2f(tls *TLS, x2 float32) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x2=%v, (%v:)", tls, x2, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var abstop Tuint32_t + var kd, r, r2, s, xd, y2, z Tdouble_t + var ki, t Tuint64_t + var y, v1 float32 + var y1, v2 float64 + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = abstop, kd, ki, r, r2, s, t, xd, y, y1, y2, z, v1, v2 + xd = float64(x2) + abstop = _top122(tls, x2) & uint32(0x7ff) + if abstop >= _top122(tls, Float32FromFloat32(128)) { + /* |x| >= 128 or x is nan. */ + v1 = -X__builtin_inff(tls) + if *(*Tuint32_t)(unsafe.Pointer(&x2)) == *(*Tuint32_t)(unsafe.Pointer(&v1)) { + return Float32FromFloat32(0) + } + if abstop >= _top122(tls, X__builtin_inff(tls)) { + return x2 + x2 + } + if x2 > Float32FromFloat32(0) { + return X__math_oflowf(tls, uint32(0)) + } + if x2 <= -Float32FromFloat32(150) { + return X__math_uflowf(tls, uint32(0)) + } + } + /* x = k/N + r with r in [-1/(2N), 1/(2N)] and int k. */ + y1 = xd + X__exp2f_data.Fshift_scaled + v2 = y1 + goto _3 +_3: + kd = v2 + v2 = kd + ki = *(*Tuint64_t)(unsafe.Pointer(&v2)) + kd = kd - X__exp2f_data.Fshift_scaled /* k/N for int k. */ + r = xd - kd + /* exp2(x) = 2^(k/N) * 2^r ~= s * (C0*r^3 + C1*r^2 + C2*r + 1) */ + t = **(**Tuint64_t)(__ccgo_up(uintptr(unsafe.Pointer(&X__exp2f_data)) + uintptr(ki%Uint64FromInt32(Int32FromInt32(1)< %v", r) }() + } + return Xexp2(tls, x) +} + +const N2 = 128 + +type Texp_data = struct { + Finvln2N float64 + Fshift float64 + Fnegln2hiN float64 + Fnegln2loN float64 + Fpoly [4]float64 + Fexp2_shift float64 + Fexp2_poly [5]float64 + Ftab [256]Tuint64_t +} + +const N3 = 32 + +/* +EXP2F_TABLE_BITS = 5 +EXP2F_POLY_ORDER = 3 + +ULP error: 0.502 (nearest rounding.) +Relative error: 1.69 * 2^-34 in [-ln2/64, ln2/64] (before rounding.) +Wrong count: 170635 (all nearest rounding wrong results with fma.) +Non-nearest ULP error: 1 (rounded ULP error) +*/ + +func _top123(tls *TLS, x float32) (r Tuint32_t) { + return *(*Tuint32_t)(unsafe.Pointer(&x)) >> int32(20) +} + +func Xexpf(tls *TLS, x2 float32) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x2=%v, (%v:)", tls, x2, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var abstop Tuint32_t + var kd, r, r2, s, xd, y2, z Tdouble_t + var ki, t Tuint64_t + var y, v1 float32 + var y1, v2 float64 + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = abstop, kd, ki, r, r2, s, t, xd, y, y1, y2, z, v1, v2 + xd = float64(x2) + abstop = _top123(tls, x2) & uint32(0x7ff) + if abstop >= _top123(tls, Float32FromFloat32(88)) { + /* |x| >= 88 or x is nan. */ + v1 = -X__builtin_inff(tls) + if *(*Tuint32_t)(unsafe.Pointer(&x2)) == *(*Tuint32_t)(unsafe.Pointer(&v1)) { + return Float32FromFloat32(0) + } + if abstop >= _top123(tls, X__builtin_inff(tls)) { + return x2 + x2 + } + if x2 > Float32FromFloat32(88.72283172607422) { /* x > log(0x1p128) ~= 88.72 */ + return X__math_oflowf(tls, uint32(0)) + } + if x2 < -Float32FromFloat32(103.97207641601562) { /* x < log(0x1p-150) ~= -103.97 */ + return X__math_uflowf(tls, uint32(0)) + } + } + /* x*N/Ln2 = k + r with r in [-1/2, 1/2] and int k. */ + z = Tdouble_t(X__exp2f_data.Finvln2_scaled * xd) + /* Round and convert z to int, the result is in [-150*N, 128*N] and + ideally ties-to-even rule is used, otherwise the magnitude of r + can be bigger which gives larger approximation error. */ + y1 = z + X__exp2f_data.Fshift + v2 = y1 + goto _3 +_3: + kd = v2 + v2 = kd + ki = *(*Tuint64_t)(unsafe.Pointer(&v2)) + kd = kd - X__exp2f_data.Fshift + r = z - kd + /* exp(x) = 2^(k/N) * 2^(r/N) ~= s * (C0*r^3 + C1*r^2 + C2*r + 1) */ + t = **(**Tuint64_t)(__ccgo_up(uintptr(unsafe.Pointer(&X__exp2f_data)) + uintptr(ki%Uint64FromInt32(Int32FromInt32(1)< %v", r) }() + } + return Xexp(tls, x) +} + +var _o_threshold = float64(709.782712893384) /* 0x40862E42, 0xFEFA39EF */ +var _ln2_hi = float64(0.6931471803691238) /* 0x3fe62e42, 0xfee00000 */ +var _ln2_lo = float64(1.9082149292705877e-10) /* 0x3dea39ef, 0x35793c76 */ +var _invln2 = float64(1.4426950408889634) /* 0x3ff71547, 0x652b82fe */ +/* Scaled Q's: Qn_here = 2**n * Qn_above, for R(2*z) where z = hxs = x*x/2: */ +var _Q1 = -Float64FromFloat64(0.03333333333333313) /* BFA11111 111110F4 */ +var _Q2 = float64(0.0015873015872548146) /* 3F5A01A0 19FE5585 */ +var _Q3 = -Float64FromFloat64(7.93650757867488e-05) /* BF14CE19 9EAADBB7 */ +var _Q4 = float64(4.008217827329362e-06) /* 3ED0CFCA 86E65239 */ +var _Q5 = -Float64FromFloat64(2.0109921818362437e-07) /* BE8AFDB7 6E09C32D */ + +func Xexpm1(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var c, e, hfx, hi, hxs, lo, r1, t, twopk, y3 Tdouble_t + var hx Tuint32_t + var k, sign int32 + var y float32 + var y1, y2, v3 float64 + var v1 uint64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + var _ /* u at bp+8 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = c, e, hfx, hi, hx, hxs, k, lo, r1, sign, t, twopk, y, y1, y2, y3, v1, v3 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp + 8)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp + 8)) = x3 + hx = uint32(*(*Tuint64_t)(unsafe.Pointer(bp + 8)) >> int32(32) & uint64(0x7fffffff)) + sign = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp + 8)) >> int32(63)) + /* filter out huge and non-finite argument */ + if hx >= uint32(0x4043687A) { /* if |x|>=56*ln2 */ + *(*float64)(unsafe.Pointer(bp)) = x3 + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 + _2: + if BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)< _o_threshold { + x3 = x3 * float64(8.98846567431158e+307) + return x3 + } + } + /* argument reduction */ + if hx > uint32(0x3fd62e42) { /* if |x| > 0.5 ln2 */ + if hx < uint32(0x3FF0A2B2) { /* and |x| < 1.5 ln2 */ + if !(sign != 0) { + hi = x3 - _ln2_hi + lo = _ln2_lo + k = int32(1) + } else { + hi = x3 + _ln2_hi + lo = -_ln2_lo + k = -int32(1) + } + } else { + if sign != 0 { + v3 = -Float64FromFloat64(0.5) + } else { + v3 = float64(0.5) + } + k = int32(float64(_invln2*x3) + v3) + t = float64(k) + hi = x3 - float64(t*_ln2_hi) /* t*ln2_hi is exact here */ + lo = Tdouble_t(t * _ln2_lo) + } + x3 = hi - lo + c = hi - x3 - lo + } else { + if hx < uint32(0x3c900000) { /* |x| < 2**-54, return x */ + if hx < uint32(0x00100000) { + if uint64(4) == uint64(4) { + y = float32(x3) + } else { + if uint64(4) == uint64(8) { + y1 = float64(float32(x3)) + } else { + y2 = float64(float32(x3)) + } + } + } + return x3 + } else { + k = 0 + } + } + /* x is now in primary range */ + hfx = Tdouble_t(float64(0.5) * x3) + hxs = Tdouble_t(x3 * hfx) + r1 = float64(1) + float64(hxs*(_Q1+float64(hxs*(_Q2+float64(hxs*(_Q3+float64(hxs*(_Q4+float64(hxs*_Q5))))))))) + t = float64(3) - float64(r1*hfx) + e = Tdouble_t(hxs * ((r1 - t) / (Float64FromFloat64(6) - float64(x3*t)))) + if k == 0 { /* c is 0 */ + return x3 - (float64(x3*e) - hxs) + } + e = float64(x3*(e-c)) - c + e = e - hxs + /* exp(x) ~ 2^k (Xreduced - e + 1) */ + if k == -int32(1) { + return float64(float64(0.5)*(x3-e)) - float64(0.5) + } + if k == int32(1) { + if x3 < -Float64FromFloat64(0.25) { + return float64(-Float64FromFloat64(2) * (e - (x3 + Float64FromFloat64(0.5)))) + } + return float64(1) + float64(float64(2)*(x3-e)) + } + *(*Tuint64_t)(unsafe.Pointer(bp + 8)) = Uint64FromInt32(Int32FromInt32(0x3ff)+k) << int32(52) /* 2^k */ + twopk = *(*float64)(unsafe.Pointer(bp + 8)) + if k < 0 || k > int32(56) { /* suffice to return exp(x)-1 */ + y3 = x3 - e + float64(1) + if k == int32(1024) { + y3 = Tdouble_t(Tdouble_t(y3*float64(2)) * float64(8.98846567431158e+307)) + } else { + y3 = Tdouble_t(y3 * twopk) + } + return y3 - float64(1) + } + *(*Tuint64_t)(unsafe.Pointer(bp + 8)) = Uint64FromInt32(Int32FromInt32(0x3ff)-k) << int32(52) /* 2^-k */ + if k < int32(20) { + y3 = Tdouble_t((x3 - e + (Float64FromInt32(1) - *(*float64)(unsafe.Pointer(bp + 8)))) * twopk) + } else { + y3 = Tdouble_t((x3 - (e + *(*float64)(unsafe.Pointer(bp + 8))) + Float64FromInt32(1)) * twopk) + } + return y3 +} + +var _ln2_hi1 = float32(0.69313812256) /* 0x3f317180 */ +var _ln2_lo1 = float32(9.0580006145e-06) /* 0x3717f7d1 */ +var _invln21 = float32(1.4426950216) /* 0x3fb8aa3b */ +/* + * Domain [-0.34568, 0.34568], range ~[-6.694e-10, 6.696e-10]: + * |6 / x * (1 + 2 * (1 / (exp(x) - 1) - 1 / x)) - q(x)| < 2**-30.04 + * Scaled coefficients: Qn_here = 2**n * Qn_for_q (see s_expm1.c): + */ +var _Q11 = float32(-Float64FromFloat64(0.033333212137)) /* -0x888868.0p-28 */ +var _Q21 = float32(0.0015807170421) /* 0xcf3010.0p-33 */ + +func Xexpm1f(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var c, e, hfx, hi, hxs, lo, r1, t, twopk, y3 Tfloat_t + var hx Tuint32_t + var k, sign int32 + var y, v1 float32 + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = c, e, hfx, hi, hx, hxs, k, lo, r1, sign, t, twopk, y, y1, y2, y3, v1 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + hx = *(*Tuint32_t)(unsafe.Pointer(bp)) & uint32(0x7fffffff) + sign = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(31)) + /* filter out huge and non-finite argument */ + if hx >= uint32(0x4195b844) { /* if |x|>=27*ln2 */ + if hx > uint32(0x7f800000) { /* NaN */ + return x3 + } + if sign != 0 { + return float32(-Int32FromInt32(1)) + } + if hx > uint32(0x42b17217) { /* x > log(FLT_MAX) */ + x3 = x3 * Float32FromFloat32(1.7014118346046923e+38) + return x3 + } + } + /* argument reduction */ + if hx > uint32(0x3eb17218) { /* if |x| > 0.5 ln2 */ + if hx < uint32(0x3F851592) { /* and |x| < 1.5 ln2 */ + if !(sign != 0) { + hi = x3 - _ln2_hi1 + lo = _ln2_lo1 + k = int32(1) + } else { + hi = x3 + _ln2_hi1 + lo = -_ln2_lo1 + k = -int32(1) + } + } else { + if sign != 0 { + v1 = -Float32FromFloat32(0.5) + } else { + v1 = Float32FromFloat32(0.5) + } + k = int32(float32(_invln21*x3) + v1) + t = float32(k) + hi = x3 - float32(t*_ln2_hi1) /* t*ln2_hi is exact here */ + lo = Tfloat_t(t * _ln2_lo1) + } + x3 = hi - lo + c = hi - x3 - lo + } else { + if hx < uint32(0x33000000) { /* when |x|<2**-25, return x */ + if hx < uint32(0x00800000) { + if uint64(4) == uint64(4) { + y = float32(x3 * x3) + } else { + if uint64(4) == uint64(8) { + y1 = float64(x3 * x3) + } else { + y2 = float64(x3 * x3) + } + } + } + return x3 + } else { + k = 0 + } + } + /* x is now in primary range */ + hfx = Tfloat_t(Float32FromFloat32(0.5) * x3) + hxs = Tfloat_t(x3 * hfx) + r1 = Float32FromFloat32(1) + float32(hxs*(_Q11+float32(hxs*_Q21))) + t = Float32FromFloat32(3) - float32(r1*hfx) + e = Tfloat_t(hxs * ((r1 - t) / (Float32FromFloat32(6) - float32(x3*t)))) + if k == 0 { /* c is 0 */ + return x3 - (float32(x3*e) - hxs) + } + e = float32(x3*(e-c)) - c + e = e - hxs + /* exp(x) ~ 2^k (Xreduced - e + 1) */ + if k == -int32(1) { + return float32(Float32FromFloat32(0.5)*(x3-e)) - Float32FromFloat32(0.5) + } + if k == int32(1) { + if x3 < -Float32FromFloat32(0.25) { + return float32(-Float32FromFloat32(2) * (e - (x3 + Float32FromFloat32(0.5)))) + } + return Float32FromFloat32(1) + float32(Float32FromFloat32(2)*(x3-e)) + } + *(*Tuint32_t)(unsafe.Pointer(bp)) = Uint32FromInt32((int32(0x7f) + k) << int32(23)) /* 2^k */ + twopk = *(*float32)(unsafe.Pointer(bp)) + if k < 0 || k > int32(56) { /* suffice to return exp(x)-1 */ + y3 = x3 - e + Float32FromFloat32(1) + if k == int32(128) { + y3 = Tfloat_t(Tfloat_t(y3*Float32FromFloat32(2)) * Float32FromFloat32(1.7014118346046923e+38)) + } else { + y3 = Tfloat_t(y3 * twopk) + } + return y3 - Float32FromFloat32(1) + } + *(*Tuint32_t)(unsafe.Pointer(bp)) = Uint32FromInt32((int32(0x7f) - k) << int32(23)) /* 2^-k */ + if k < int32(23) { + y3 = Tfloat_t((x3 - e + (Float32FromInt32(1) - *(*float32)(unsafe.Pointer(bp)))) * twopk) + } else { + y3 = Tfloat_t((x3 - (e + *(*float32)(unsafe.Pointer(bp))) + Float32FromInt32(1)) * twopk) + } + return y3 +} + +func Xexpm1l(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xexpm1(tls, x) +} + +func Xfabs(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uintptr + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _ = v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + v1 = bp + *(*Tuint64_t)(unsafe.Pointer(v1)) = Tuint64_t(*(*Tuint64_t)(unsafe.Pointer(v1)) & (-Uint64FromUint64(1) / Uint64FromInt32(2))) + return *(*float64)(unsafe.Pointer(bp)) +} + +func Xfabsf(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + *(*Tuint32_t)(unsafe.Pointer(bp)) &= uint32(0x7fffffff) + return *(*float32)(unsafe.Pointer(bp)) +} + +func Xfabsl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfabs(tls, x) +} + +func Xfdim(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uint64 + var v5 float64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _, _ = v1, v5 + *(*float64)(unsafe.Pointer(bp)) = x + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + if BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)< y { + v5 = x - y + } else { + v5 = Float64FromInt32(0) + } + return v5 +} + +func Xfdimf(tls *TLS, x float32, y float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uint32 + var v5 float32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _, _ = v1, v5 + *(*float32)(unsafe.Pointer(bp)) = x + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + if BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return x + } + *(*float32)(unsafe.Pointer(bp)) = y + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _4 +_4: + if BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return y + } + if x > y { + v5 = x - y + } else { + v5 = Float32FromInt32(0) + } + return v5 +} + +func Xfdiml(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfdim(tls, x, y) +} + +func Xfinite(tls *TLS, x float64) (r int32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uint64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _ = v1 + *(*float64)(unsafe.Pointer(bp)) = x + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + return BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) < Uint64FromUint64(0x7ff)< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uint32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _ = v1 + *(*float32)(unsafe.Pointer(bp)) = x + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + return BoolInt32(v1&uint32(0x7fffffff) < uint32(0x7f800000)) +} + +const DBL_EPSILON7 = 2.220446049250313e-16 + +var _toint3 = Float64FromInt32(1) / Float64FromFloat64(2.220446049250313e-16) + +func Xfloor(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e, v1 int32 + var y float32 + var y1, y2 float64 + var y3 Tdouble_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _ = e, y, y1, y2, y3, v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + e = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + if e >= Int32FromInt32(0x3ff)+Int32FromInt32(52) || x3 == Float64FromInt32(0) { + return x3 + } + /* y = int(x) - x, where int(x) is an integer neighbor of x */ + if *(*Tuint64_t)(unsafe.Pointer(bp))>>int32(63) != 0 { + y3 = x3 - _toint3 + _toint3 - x3 + } else { + y3 = x3 + _toint3 - _toint3 - x3 + } + /* special case because of non-nearest rounding modes */ + if e <= Int32FromInt32(0x3ff)-Int32FromInt32(1) { + if uint64(8) == uint64(4) { + y = float32(y3) + } else { + if uint64(8) == uint64(8) { + y1 = y3 + } else { + y2 = y3 + } + } + if *(*Tuint64_t)(unsafe.Pointer(bp))>>int32(63) != 0 { + v1 = -int32(1) + } else { + v1 = 0 + } + return float64(v1) + } + if y3 > Float64FromInt32(0) { + return x3 + y3 - Float64FromInt32(1) + } + return x3 + y3 +} + +const DBL_EPSILON8 = 0 + +func Xfloorf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e int32 + var m Tuint32_t + var y float32 + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _ = e, m, y, y1, y2 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + e = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp))>>Int32FromInt32(23)&Uint32FromInt32(0xff)) - int32(0x7f) + if e >= int32(23) { + return x3 + } + if e >= 0 { + m = Uint32FromInt32(int32(0x007fffff) >> e) + if *(*Tuint32_t)(unsafe.Pointer(bp))&m == uint32(0) { + return x3 + } + if uint64(4) == uint64(4) { + y = x3 + Float32FromFloat32(1.329227995784916e+36) + } else { + if uint64(4) == uint64(8) { + y1 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } else { + y2 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } + } + if *(*Tuint32_t)(unsafe.Pointer(bp))>>int32(31) != 0 { + *(*Tuint32_t)(unsafe.Pointer(bp)) += m + } + *(*Tuint32_t)(unsafe.Pointer(bp)) &= ^m + } else { + if uint64(4) == uint64(4) { + y = x3 + Float32FromFloat32(1.329227995784916e+36) + } else { + if uint64(4) == uint64(8) { + y1 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } else { + y2 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } + } + if *(*Tuint32_t)(unsafe.Pointer(bp))>>int32(31) == uint32(0) { + *(*Tuint32_t)(unsafe.Pointer(bp)) = uint32(0) + } else { + if *(*Tuint32_t)(unsafe.Pointer(bp))< %v", r) }() + } + return Xfloor(tls, x) +} + +const DBL_MIN1 = 2.2250738585072014e-308 +const FLT_MIN1 = 1.1754943508222875e-38 +const ZEROINFNAN = 971 + +type Tnum = struct { + Fm Tuint64_t + Fe int32 + Fsign int32 +} + +func _normalize(tls *TLS, x float64) (r Tnum) { + var e, sign, v2 int32 + var ix Tuint64_t + var v1 float64 + _, _, _, _, _ = e, ix, sign, v1, v2 + ix = *(*Tuint64_t)(unsafe.Pointer(&x)) + e = Int32FromUint64(ix >> int32(52)) + sign = e & int32(0x800) + e = e & int32(0x7ff) + if !(e != 0) { + v1 = float64(x * float64(9.223372036854776e+18)) + ix = *(*Tuint64_t)(unsafe.Pointer(&v1)) + e = Int32FromUint64(ix >> int32(52) & uint64(0x7ff)) + if e != 0 { + v2 = e - int32(63) + } else { + v2 = int32(0x800) + } + e = v2 + } + ix = uint64(ix & (Uint64FromUint64(1)<> int32(32) + ylo = uint64(uint32(y)) + yhi = y >> int32(32) + t1 = xlo * ylo + t2 = xlo*yhi + xhi*ylo + t3 = xhi * yhi + **(**Tuint64_t)(__ccgo_up(lo)) = t1 + t2<>Int32FromInt32(32) + BoolUint64(t1 > **(**Tuint64_t)(__ccgo_up(lo))) +} + +func Xfma(tls *TLS, x1 float64, y float64, z float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x1=%v y=%v z=%v, (%v:)", tls, x1, y, z, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var c, r float64 + var d, e, nonzero, samesign, sign, v2 int32 + var fltmin float32 + var i Tint64_t + var nx, ny, nz Tnum + var t, zhi, zlo, v1 Tuint64_t + var tiny Tdouble_t + var _ /* rhi at bp+0 */ Tuint64_t + var _ /* rlo at bp+8 */ Tuint64_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = c, d, e, fltmin, i, nonzero, nx, ny, nz, r, samesign, sign, t, tiny, zhi, zlo, v1, v2 + nx = _normalize(tls, x1) + ny = _normalize(tls, y) + nz = _normalize(tls, z) + if nx.Fe >= Int32FromInt32(0x7ff)-Int32FromInt32(0x3ff)-Int32FromInt32(52)-Int32FromInt32(1) || ny.Fe >= Int32FromInt32(0x7ff)-Int32FromInt32(0x3ff)-Int32FromInt32(52)-Int32FromInt32(1) { + return float64(x1*y) + z + } + if nz.Fe >= Int32FromInt32(0x7ff)-Int32FromInt32(0x3ff)-Int32FromInt32(52)-Int32FromInt32(1) { + if nz.Fe > Int32FromInt32(0x7ff)-Int32FromInt32(0x3ff)-Int32FromInt32(52)-Int32FromInt32(1) { /* z==0 */ + return float64(x1*y) + z + } + return z + } + _mul(tls, bp, bp+8, nx.Fm, ny.Fm) + /* either top 20 or 21 bits of rhi and last 2 bits of rlo are 0 */ + /* align exponents */ + e = nx.Fe + ny.Fe + d = nz.Fe - e + /* shift bits z<<=kz, r>>=kr, so kz+kr == d, set e = e+kr (== ez-kz) */ + if d > 0 { + if d < int32(64) { + zlo = nz.Fm << d + zhi = nz.Fm >> (int32(64) - d) + } else { + zlo = uint64(0) + zhi = nz.Fm + e = nz.Fe - int32(64) + d = d - int32(64) + if d == 0 { + } else { + if d < int32(64) { + **(**Tuint64_t)(__ccgo_up(bp + 8)) = **(**Tuint64_t)(__ccgo_up(bp))<<(int32(64)-d) | **(**Tuint64_t)(__ccgo_up(bp + 8))>>d | BoolUint64(!!(**(**Tuint64_t)(__ccgo_up(bp + 8))<<(Int32FromInt32(64)-d) != 0)) + **(**Tuint64_t)(__ccgo_up(bp)) = **(**Tuint64_t)(__ccgo_up(bp)) >> d + } else { + **(**Tuint64_t)(__ccgo_up(bp + 8)) = uint64(1) + **(**Tuint64_t)(__ccgo_up(bp)) = uint64(0) + } + } + } + } else { + zhi = uint64(0) + d = -d + if d == 0 { + zlo = nz.Fm + } else { + if d < int32(64) { + zlo = nz.Fm>>d | BoolUint64(!!(nz.Fm<<(Int32FromInt32(64)-d) != 0)) + } else { + zlo = uint64(1) + } + } + } + /* add */ + sign = nx.Fsign ^ ny.Fsign + samesign = BoolInt32(!(sign^nz.Fsign != 0)) + nonzero = int32(1) + if samesign != 0 { + /* r += z */ + **(**Tuint64_t)(__ccgo_up(bp + 8)) = **(**Tuint64_t)(__ccgo_up(bp + 8)) + zlo + **(**Tuint64_t)(__ccgo_up(bp)) = **(**Tuint64_t)(__ccgo_up(bp)) + (zhi + BoolUint64(**(**Tuint64_t)(__ccgo_up(bp + 8)) < zlo)) + } else { + /* r -= z */ + t = **(**Tuint64_t)(__ccgo_up(bp + 8)) + **(**Tuint64_t)(__ccgo_up(bp + 8)) = **(**Tuint64_t)(__ccgo_up(bp + 8)) - zlo + **(**Tuint64_t)(__ccgo_up(bp)) = **(**Tuint64_t)(__ccgo_up(bp)) - zhi - BoolUint64(t < **(**Tuint64_t)(__ccgo_up(bp + 8))) + if **(**Tuint64_t)(__ccgo_up(bp))>>int32(63) != 0 { + **(**Tuint64_t)(__ccgo_up(bp + 8)) = -**(**Tuint64_t)(__ccgo_up(bp + 8)) + **(**Tuint64_t)(__ccgo_up(bp)) = -**(**Tuint64_t)(__ccgo_up(bp)) - BoolUint64(!!(**(**Tuint64_t)(__ccgo_up(bp + 8)) != 0)) + sign = BoolInt32(!(sign != 0)) + } + nonzero = BoolInt32(!!(**(**Tuint64_t)(__ccgo_up(bp)) != 0)) + } + /* set rhi to top 63bit of the result (last bit is sticky) */ + if nonzero != 0 { + e = e + int32(64) + v1 = **(**Tuint64_t)(__ccgo_up(bp)) + // __asm__ ("cntlzd %0, %1" : "=r"(x) : "r"(x)); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 60, __ccgo_ts+614) + v2 = Int32FromUint64(v1) + goto _3 + _3: + d = v2 - int32(1) + /* note: d > 0 */ + **(**Tuint64_t)(__ccgo_up(bp)) = **(**Tuint64_t)(__ccgo_up(bp))<>(int32(64)-d) | BoolUint64(!!(**(**Tuint64_t)(__ccgo_up(bp + 8))<>int32(1) | **(**Tuint64_t)(__ccgo_up(bp + 8))&uint64(1) + } else { + **(**Tuint64_t)(__ccgo_up(bp)) = **(**Tuint64_t)(__ccgo_up(bp + 8)) << d + } + } else { + /* exact +-0 */ + return float64(x1*y) + z + } + } + e = e - d + /* convert to double */ + i = Int64FromUint64(**(**Tuint64_t)(__ccgo_up(bp))) /* i is in [1<<62,(1<<63)-1] */ + if sign != 0 { + i = -i + } + r = float64(i) /* |r| is in [0x1p62,0x1p63] */ + if e < -Int32FromInt32(1022)-Int32FromInt32(62) { + /* result is subnormal before rounding */ + if e == -Int32FromInt32(1022)-Int32FromInt32(63) { + c = float64(9.223372036854776e+18) + if sign != 0 { + c = -c + } + if r == c { + /* min normal after rounding, underflow depends + on arch behaviour which can be imitated by + a double to float conversion */ + fltmin = float32(float64(Float64FromFloat64(1.0842021401737618e-19)*Float64FromFloat32(1.1754943508222875e-38)) * r) + return float64(Float64FromFloat64(2.2250738585072014e-308) / Float64FromFloat32(1.1754943508222875e-38) * float64(fltmin)) + } + /* one bit is lost when scaled, add another top bit to + only round once at conversion if it is inexact */ + if **(**Tuint64_t)(__ccgo_up(bp))<>int32(1)|**(**Tuint64_t)(__ccgo_up(bp))&uint64(1)) | Uint64FromUint64(1)<>d | BoolUint64(!!(**(**Tuint64_t)(__ccgo_up(bp))<<(Int32FromInt32(64)-d) != 0))) << d) + if sign != 0 { + i = -i + } + r = float64(i) + } + } + return Xscalbn(tls, r, e) +} + +const DBL_MIN2 = 0 +const FLT_MIN2 = 0 + +func Xfmal(tls *TLS, x float64, y float64, z float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v z=%v, (%v:)", tls, x, y, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfma(tls, x, y, z) +} + +func Xfmax(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1, v3, v5 uint64 + var v9 float64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _, _, _, _ = v1, v3, v5, v9 + *(*float64)(unsafe.Pointer(bp)) = x + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + if BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(63)) != Int32FromUint64(v3>>Int32FromInt32(63)) { + *(*float64)(unsafe.Pointer(bp)) = x + v5 = *(*uint64)(unsafe.Pointer(bp)) + goto _11 + _11: + if Int32FromUint64(v5>>Int32FromInt32(63)) != 0 { + v9 = y + } else { + v9 = x + } + return v9 + } + if x < y { + v9 = y + } else { + v9 = x + } + return v9 +} + +func Xfmaxf(tls *TLS, x float32, y float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1, v3, v5 uint32 + var v9 float32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _, _, _, _ = v1, v3, v5, v9 + *(*float32)(unsafe.Pointer(bp)) = x + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + if BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return y + } + *(*float32)(unsafe.Pointer(bp)) = y + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _4 +_4: + if BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return x + } + /* handle signed zeroes, see C99 Annex F.9.9.2 */ + *(*float32)(unsafe.Pointer(bp)) = x + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _6 +_6: + *(*float32)(unsafe.Pointer(bp)) = y + v3 = *(*uint32)(unsafe.Pointer(bp)) + goto _8 +_8: + if Int32FromUint32(v1>>Int32FromInt32(31)) != Int32FromUint32(v3>>Int32FromInt32(31)) { + *(*float32)(unsafe.Pointer(bp)) = x + v5 = *(*uint32)(unsafe.Pointer(bp)) + goto _11 + _11: + if Int32FromUint32(v5>>Int32FromInt32(31)) != 0 { + v9 = y + } else { + v9 = x + } + return v9 + } + if x < y { + v9 = y + } else { + v9 = x + } + return v9 +} + +func Xfmaxl(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfmax(tls, x, y) +} + +func Xfmin(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1, v3, v5 uint64 + var v9 float64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _, _, _, _ = v1, v3, v5, v9 + *(*float64)(unsafe.Pointer(bp)) = x + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + if BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(63)) != Int32FromUint64(v3>>Int32FromInt32(63)) { + *(*float64)(unsafe.Pointer(bp)) = x + v5 = *(*uint64)(unsafe.Pointer(bp)) + goto _11 + _11: + if Int32FromUint64(v5>>Int32FromInt32(63)) != 0 { + v9 = x + } else { + v9 = y + } + return v9 + } + if x < y { + v9 = x + } else { + v9 = y + } + return v9 +} + +func Xfminf(tls *TLS, x float32, y float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1, v3, v5 uint32 + var v9 float32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _, _, _, _ = v1, v3, v5, v9 + *(*float32)(unsafe.Pointer(bp)) = x + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + if BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return y + } + *(*float32)(unsafe.Pointer(bp)) = y + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _4 +_4: + if BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return x + } + /* handle signed zeros, see C99 Annex F.9.9.2 */ + *(*float32)(unsafe.Pointer(bp)) = x + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _6 +_6: + *(*float32)(unsafe.Pointer(bp)) = y + v3 = *(*uint32)(unsafe.Pointer(bp)) + goto _8 +_8: + if Int32FromUint32(v1>>Int32FromInt32(31)) != Int32FromUint32(v3>>Int32FromInt32(31)) { + *(*float32)(unsafe.Pointer(bp)) = x + v5 = *(*uint32)(unsafe.Pointer(bp)) + goto _11 + _11: + if Int32FromUint32(v5>>Int32FromInt32(31)) != 0 { + v9 = x + } else { + v9 = y + } + return v9 + } + if x < y { + v9 = x + } else { + v9 = y + } + return v9 +} + +func Xfminl(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfmin(tls, x, y) +} + +func Xfmod(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var ex, ey, sx int32 + var i, uxi Tuint64_t + var v1 uint64 + var v3 bool + var v6 uintptr + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + var _ /* ux at bp+8 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + var _ /* uy at bp+16 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _, _ = ex, ey, i, sx, uxi, v1, v3, v6 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp + 8)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp + 8)) = x + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp + 16)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp + 16)) = y + ex = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp + 8)) >> int32(52) & uint64(0x7ff)) + ey = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp + 16)) >> int32(52) & uint64(0x7ff)) + sx = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp + 8)) >> int32(63)) + /* in the followings uxi should be ux.i, but then gcc wrongly adds */ + /* float load/store to inner loops ruining performance and code size */ + uxi = *(*Tuint64_t)(unsafe.Pointer(bp + 8)) + if v3 = *(*Tuint64_t)(unsafe.Pointer(bp + 16))<>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>int32(63) == uint64(0)) { + break + } + goto _4 + _4: + ; + ex = ex - 1 + i = i << uint64(1) + } + uxi = uxi << Uint64FromInt32(-ex+int32(1)) + } else { + uxi = uint64(uxi & (-Uint64FromUint64(1) >> Int32FromInt32(12))) + uxi = uint64(uxi | Uint64FromUint64(1)<>int32(63) == uint64(0)) { + break + } + goto _5 + _5: + ; + ey = ey - 1 + i = i << uint64(1) + } + *(*Tuint64_t)(unsafe.Pointer(bp + 16)) <<= Uint64FromInt32(-ey + int32(1)) + } else { + v6 = bp + 16 + *(*Tuint64_t)(unsafe.Pointer(v6)) = Tuint64_t(*(*Tuint64_t)(unsafe.Pointer(v6)) & (-Uint64FromUint64(1) >> Int32FromInt32(12))) + v6 = bp + 16 + *(*Tuint64_t)(unsafe.Pointer(v6)) = Tuint64_t(*(*Tuint64_t)(unsafe.Pointer(v6)) | Uint64FromUint64(1)< ey) { + break + } + i = uxi - *(*Tuint64_t)(unsafe.Pointer(bp + 16)) + if i>>int32(63) == uint64(0) { + if i == uint64(0) { + return float64(Float64FromInt32(0) * x) + } + uxi = i + } + uxi = uxi << uint64(1) + goto _8 + _8: + ; + ex = ex - 1 + } + i = uxi - *(*Tuint64_t)(unsafe.Pointer(bp + 16)) + if i>>int32(63) == uint64(0) { + if i == uint64(0) { + return float64(Float64FromInt32(0) * x) + } + uxi = i + } + for { + if !(uxi>>int32(52) == uint64(0)) { + break + } + goto _9 + _9: + ; + uxi = uxi << uint64(1) + ex = ex - 1 + } + /* scale result */ + if ex > 0 { + uxi = uint64(uxi - Uint64FromUint64(1)<> Uint64FromInt32(-ex+int32(1)) + } + uxi = uxi | Uint64FromInt32(sx)< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ex, ey int32 + var i, sx, uxi Tuint32_t + var v1 uint32 + var v3 bool + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + var _ /* ux at bp+4 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + var _ /* uy at bp+8 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _, _ = ex, ey, i, sx, uxi, v1, v3 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp + 4)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp + 4)) = x + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp + 8)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp + 8)) = y + ex = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp + 4)) >> int32(23) & uint32(0xff)) + ey = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp + 8)) >> int32(23) & uint32(0xff)) + sx = *(*Tuint32_t)(unsafe.Pointer(bp + 4)) & uint32(0x80000000) + uxi = *(*Tuint32_t)(unsafe.Pointer(bp + 4)) + if v3 = *(*Tuint32_t)(unsafe.Pointer(bp + 8))< uint32(0x7f800000)) != 0 || ex == int32(0xff) { + return float32(x*y) / float32(x*y) + } + if uxi<>int32(31) == uint32(0)) { + break + } + goto _4 + _4: + ; + ex = ex - 1 + i = i << uint32(1) + } + uxi = uxi << Uint32FromInt32(-ex+int32(1)) + } else { + uxi = uxi & (-Uint32FromUint32(1) >> Int32FromInt32(9)) + uxi = uxi | Uint32FromUint32(1)<>int32(31) == uint32(0)) { + break + } + goto _5 + _5: + ; + ey = ey - 1 + i = i << uint32(1) + } + *(*Tuint32_t)(unsafe.Pointer(bp + 8)) <<= Uint32FromInt32(-ey + int32(1)) + } else { + *(*Tuint32_t)(unsafe.Pointer(bp + 8)) &= -Uint32FromUint32(1) >> Int32FromInt32(9) + *(*Tuint32_t)(unsafe.Pointer(bp + 8)) |= Uint32FromUint32(1) << Int32FromInt32(23) + } + /* x mod y */ + for { + if !(ex > ey) { + break + } + i = uxi - *(*Tuint32_t)(unsafe.Pointer(bp + 8)) + if i>>int32(31) == uint32(0) { + if i == uint32(0) { + return float32(Float32FromInt32(0) * x) + } + uxi = i + } + uxi = uxi << uint32(1) + goto _6 + _6: + ; + ex = ex - 1 + } + i = uxi - *(*Tuint32_t)(unsafe.Pointer(bp + 8)) + if i>>int32(31) == uint32(0) { + if i == uint32(0) { + return float32(Float32FromInt32(0) * x) + } + uxi = i + } + for { + if !(uxi>>int32(23) == uint32(0)) { + break + } + goto _7 + _7: + ; + uxi = uxi << uint32(1) + ex = ex - 1 + } + /* scale result up */ + if ex > 0 { + uxi = uxi - Uint32FromUint32(1)<> Uint32FromInt32(-ex+int32(1)) + } + uxi = uxi | sx + *(*Tuint32_t)(unsafe.Pointer(bp + 4)) = uxi + return *(*float32)(unsafe.Pointer(bp + 4)) +} + +func Xfmodl(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfmod(tls, x, y) +} + +func Xfrexp(tls *TLS, x float64, e uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v e=%v, (%v:)", tls, x, e, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ee int32 + var v1 uintptr + var _ /* y at bp+0 */ struct { + Fi [0]Tuint64_t + Fd float64 + } + _, _ = ee, v1 + *(*struct { + Fi [0]Tuint64_t + Fd float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Fd float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + ee = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + if !(ee != 0) { + if x != 0 { + x = Xfrexp(tls, float64(x*float64(1.8446744073709552e+19)), e) + **(**int32)(__ccgo_up(e)) -= int32(64) + } else { + **(**int32)(__ccgo_up(e)) = 0 + } + return x + } else { + if ee == int32(0x7ff) { + return x + } + } + **(**int32)(__ccgo_up(e)) = ee - int32(0x3fe) + v1 = bp + *(*Tuint64_t)(unsafe.Pointer(v1)) = Tuint64_t(*(*Tuint64_t)(unsafe.Pointer(v1)) & Uint64FromUint64(0x800fffffffffffff)) + v1 = bp + *(*Tuint64_t)(unsafe.Pointer(v1)) = Tuint64_t(*(*Tuint64_t)(unsafe.Pointer(v1)) | Uint64FromUint64(0x3fe0000000000000)) + return *(*float64)(unsafe.Pointer(bp)) +} + +func Xfrexpf(tls *TLS, x float32, e uintptr) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v e=%v, (%v:)", tls, x, e, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ee int32 + var v1 uintptr + var _ /* y at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _ = ee, v1 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + ee = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(23) & uint32(0xff)) + if !(ee != 0) { + if x != 0 { + x = Xfrexpf(tls, float32(float64(x)*float64(1.8446744073709552e+19)), e) + **(**int32)(__ccgo_up(e)) -= int32(64) + } else { + **(**int32)(__ccgo_up(e)) = 0 + } + return x + } else { + if ee == int32(0xff) { + return x + } + } + **(**int32)(__ccgo_up(e)) = ee - int32(0x7e) + v1 = bp + *(*Tuint32_t)(unsafe.Pointer(v1)) = Tuint32_t(uint64(*(*Tuint32_t)(unsafe.Pointer(v1))) & Uint64FromUint64(0x807fffff)) + v1 = bp + *(*Tuint32_t)(unsafe.Pointer(v1)) = Tuint32_t(uint64(*(*Tuint32_t)(unsafe.Pointer(v1))) | Uint64FromUint64(0x3f000000)) + return *(*float32)(unsafe.Pointer(bp)) +} + +func Xfrexpl(tls *TLS, x float64, e uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v e=%v, (%v:)", tls, x, e, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfrexp(tls, x, e) +} + +const SPLIT = 1 + +func _sq(tls *TLS, hi uintptr, lo uintptr, x float64) { + var xc, xh, xl Tdouble_t + _, _, _ = xc, xh, xl + xc = Tdouble_t(x * (Float64FromFloat64(1.34217728e+08) + Float64FromInt32(1))) + xh = x - xc + xc + xl = x - xh + **(**Tdouble_t)(__ccgo_up(hi)) = Tdouble_t(x * x) + **(**Tdouble_t)(__ccgo_up(lo)) = Tdouble_t(xh*xh) - **(**Tdouble_t)(__ccgo_up(hi)) + Tdouble_t(Tdouble_t(Float64FromInt32(2)*xh)*xl) + Tdouble_t(xl*xl) +} + +func Xhypot(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + var ex, ey int32 + var ut struct { + Fi [0]Tuint64_t + Ff float64 + } + var z Tdouble_t + var v1 uintptr + var _ /* hx at bp+16 */ Tdouble_t + var _ /* hy at bp+32 */ Tdouble_t + var _ /* lx at bp+24 */ Tdouble_t + var _ /* ly at bp+40 */ Tdouble_t + var _ /* ux at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + var _ /* uy at bp+8 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _ = ex, ey, ut, z, v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp + 8)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp + 8)) = y + /* arrange |x| >= |y| */ + v1 = bp + *(*Tuint64_t)(unsafe.Pointer(v1)) = Tuint64_t(*(*Tuint64_t)(unsafe.Pointer(v1)) & (-Uint64FromUint64(1) >> Int32FromInt32(1))) + v1 = bp + 8 + *(*Tuint64_t)(unsafe.Pointer(v1)) = Tuint64_t(*(*Tuint64_t)(unsafe.Pointer(v1)) & (-Uint64FromUint64(1) >> Int32FromInt32(1))) + if *(*Tuint64_t)(unsafe.Pointer(bp)) < *(*Tuint64_t)(unsafe.Pointer(bp + 8)) { + ut = **(**struct { + Fi [0]Tuint64_t + Ff float64 + })(__ccgo_up(bp)) + **(**struct { + Fi [0]Tuint64_t + Ff float64 + })(__ccgo_up(bp)) = **(**struct { + Fi [0]Tuint64_t + Ff float64 + })(__ccgo_up(bp + 8)) + **(**struct { + Fi [0]Tuint64_t + Ff float64 + })(__ccgo_up(bp + 8)) = ut + } + /* special cases */ + ex = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52)) + ey = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp + 8)) >> int32(52)) + x = *(*float64)(unsafe.Pointer(bp)) + y = *(*float64)(unsafe.Pointer(bp + 8)) + /* note: hypot(inf,nan) == inf */ + if ey == int32(0x7ff) { + return y + } + if ex == int32(0x7ff) || *(*Tuint64_t)(unsafe.Pointer(bp + 8)) == uint64(0) { + return x + } + /* note: hypot(x,y) ~= x + y*y/x/2 with inexact for small y/x */ + /* 64 difference is enough for ld80 double_t */ + if ex-ey > int32(64) { + return x + y + } + /* precise sqrt argument in nearest rounding mode without overflow */ + /* xh*xh must not overflow and xl*xl must not underflow in sq */ + z = Float64FromInt32(1) + if ex > Int32FromInt32(0x3ff)+Int32FromInt32(510) { + z = float64(5.260135901548374e+210) + x = x * float64(1.90109156629516e-211) + y = y * float64(1.90109156629516e-211) + } else { + if ey < Int32FromInt32(0x3ff)-Int32FromInt32(450) { + z = float64(1.90109156629516e-211) + x = x * float64(5.260135901548374e+210) + y = y * float64(5.260135901548374e+210) + } + } + _sq(tls, bp+16, bp+24, x) + _sq(tls, bp+32, bp+40, y) + return float64(z * Xsqrt(tls, **(**Tdouble_t)(__ccgo_up(bp + 40))+**(**Tdouble_t)(__ccgo_up(bp + 24))+**(**Tdouble_t)(__ccgo_up(bp + 32))+**(**Tdouble_t)(__ccgo_up(bp + 16)))) +} + +func Xhypotf(tls *TLS, x float32, y float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ut struct { + Fi [0]Tuint32_t + Ff float32 + } + var z Tfloat_t + var _ /* ux at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + var _ /* uy at bp+4 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _ = ut, z + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp + 4)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp + 4)) = y + *(*Tuint32_t)(unsafe.Pointer(bp)) &= -Uint32FromUint32(1) >> Int32FromInt32(1) + *(*Tuint32_t)(unsafe.Pointer(bp + 4)) &= -Uint32FromUint32(1) >> Int32FromInt32(1) + if *(*Tuint32_t)(unsafe.Pointer(bp)) < *(*Tuint32_t)(unsafe.Pointer(bp + 4)) { + ut = **(**struct { + Fi [0]Tuint32_t + Ff float32 + })(__ccgo_up(bp)) + **(**struct { + Fi [0]Tuint32_t + Ff float32 + })(__ccgo_up(bp)) = **(**struct { + Fi [0]Tuint32_t + Ff float32 + })(__ccgo_up(bp + 4)) + **(**struct { + Fi [0]Tuint32_t + Ff float32 + })(__ccgo_up(bp + 4)) = ut + } + x = *(*float32)(unsafe.Pointer(bp)) + y = *(*float32)(unsafe.Pointer(bp + 4)) + if *(*Tuint32_t)(unsafe.Pointer(bp + 4)) == Uint32FromInt32(Int32FromInt32(0xff)<= Uint32FromInt32(Int32FromInt32(0xff)<= Uint32FromInt32(Int32FromInt32(25)<= Uint32FromInt32((Int32FromInt32(0x7f)+Int32FromInt32(60))< %v", r) }() + } + return Xhypot(tls, x, y) +} + +func Xilogb(tls *TLS, x3 float64) (r int32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e, v2 int32 + var i Tuint64_t + var y float32 + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _ = e, i, y, y1, y2, v2 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + i = *(*Tuint64_t)(unsafe.Pointer(bp)) + e = Int32FromUint64(i >> int32(52) & uint64(0x7ff)) + if !(e != 0) { + i = i << uint64(12) + if i == uint64(0) { + if uint64(4) == uint64(4) { + y = Float32FromInt32(0) / Float32FromFloat32(0) + } else { + if uint64(4) == uint64(8) { + y1 = float64(Float32FromInt32(0) / Float32FromFloat32(0)) + } else { + y2 = float64(Float32FromInt32(0) / Float32FromFloat32(0)) + } + } + return -Int32FromInt32(1) - Int32FromInt32(0x7fffffff) + } + /* subnormal x */ + e = -int32(0x3ff) + for { + if !(i>>int32(63) == uint64(0)) { + break + } + goto _1 + _1: + ; + e = e - 1 + i = i << uint64(1) + } + return e + } + if e == int32(0x7ff) { + if uint64(4) == uint64(4) { + y = Float32FromInt32(0) / Float32FromFloat32(0) + } else { + if uint64(4) == uint64(8) { + y1 = float64(Float32FromInt32(0) / Float32FromFloat32(0)) + } else { + y2 = float64(Float32FromInt32(0) / Float32FromFloat32(0)) + } + } + if i< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e, v2 int32 + var i Tuint32_t + var y float32 + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _ = e, i, y, y1, y2, v2 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + i = *(*Tuint32_t)(unsafe.Pointer(bp)) + e = Int32FromUint32(i >> int32(23) & uint32(0xff)) + if !(e != 0) { + i = i << uint32(9) + if i == uint32(0) { + if uint64(4) == uint64(4) { + y = Float32FromInt32(0) / Float32FromFloat32(0) + } else { + if uint64(4) == uint64(8) { + y1 = float64(Float32FromInt32(0) / Float32FromFloat32(0)) + } else { + y2 = float64(Float32FromInt32(0) / Float32FromFloat32(0)) + } + } + return -Int32FromInt32(1) - Int32FromInt32(0x7fffffff) + } + /* subnormal x */ + e = -int32(0x7f) + for { + if !(i>>int32(31) == uint32(0)) { + break + } + goto _1 + _1: + ; + e = e - 1 + i = i << uint32(1) + } + return e + } + if e == int32(0xff) { + if uint64(4) == uint64(4) { + y = Float32FromInt32(0) / Float32FromFloat32(0) + } else { + if uint64(4) == uint64(8) { + y1 = float64(Float32FromInt32(0) / Float32FromFloat32(0)) + } else { + y2 = float64(Float32FromInt32(0) / Float32FromFloat32(0)) + } + } + if i< %v", r) }() + } + return Xilogb(tls, x) +} + +var _invsqrtpi = float64(0.5641895835477563) /* 0x3FE20DD7, 0x50429B6D */ +var _tpi = float64(0.6366197723675814) /* 0x3FE45F30, 0x6DC9C883 */ + +// C documentation +// +// /* common method when |x|>=2 */ +func _common(tls *TLS, ix Tuint32_t, x float64, y0 int32) (r float64) { + var c, cc, s, ss, z float64 + _, _, _, _, _ = c, cc, s, ss, z + /* + * j0(x) = sqrt(2/(pi*x))*(p0(x)*cos(x-pi/4)-q0(x)*sin(x-pi/4)) + * y0(x) = sqrt(2/(pi*x))*(p0(x)*sin(x-pi/4)+q0(x)*cos(x-pi/4)) + * + * sin(x-pi/4) = (sin(x) - cos(x))/sqrt(2) + * cos(x-pi/4) = (sin(x) + cos(x))/sqrt(2) + * sin(x) +- cos(x) = -cos(2x)/(sin(x) -+ cos(x)) + */ + s = Xsin(tls, x) + c = Xcos(tls, x) + if y0 != 0 { + c = -c + } + cc = s + c + /* avoid overflow in 2*x, big ulp error when x>=0x1p1023 */ + if ix < uint32(0x7fe00000) { + ss = s - c + z = -Xcos(tls, float64(Float64FromInt32(2)*x)) + if float64(s*c) < Float64FromInt32(0) { + cc = z / ss + } else { + ss = z / cc + } + if ix < uint32(0x48000000) { + if y0 != 0 { + ss = -ss + } + cc = float64(_pzero(tls, x)*cc) - float64(_qzero(tls, x)*ss) + } + } + return float64(_invsqrtpi*cc) / Xsqrt(tls, x) +} + +// C documentation +// +// /* R0/S0 on [0, 2.00] */ + +var _R02 = float64(0.015624999999999995) /* 0x3F8FFFFF, 0xFFFFFFFD */ +var _R03 = -Float64FromFloat64(0.00018997929423885472) /* 0xBF28E6A5, 0xB61AC6E9 */ +var _R04 = float64(1.8295404953270067e-06) /* 0x3EBEB1D1, 0x0C503919 */ +var _R05 = -Float64FromFloat64(4.618326885321032e-09) /* 0xBE33D5E7, 0x73D63FCE */ +var _S01 = float64(0.015619102946489001) /* 0x3F8FFCE8, 0x82C8C2A4 */ +var _S02 = float64(0.00011692678466333745) /* 0x3F1EA6D2, 0xDD57DBF4 */ +var _S03 = float64(5.135465502073181e-07) /* 0x3EA13B54, 0xCE84D5A9 */ +var _S04 = float64(1.1661400333379e-09) /* 0x3E1408BC, 0xF4745D8F */ + +func Xj0(tls *TLS, x float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var ix Tuint32_t + var r, s, z float64 + _, _, _, _ = ix, r, s, z + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + ix = ix & uint32(0x7fffffff) + /* j0(+-inf)=0, j0(nan)=nan */ + if ix >= uint32(0x7ff00000) { + return Float64FromInt32(1) / float64(x*x) + } + x = Xfabs(tls, x) + if ix >= uint32(0x40000000) { /* |x| >= 2 */ + /* large ulp error near zeros: 2.4, 5.52, 8.6537,.. */ + return _common(tls, ix, x, 0) + } + /* 1 - x*x/4 + x*x*R(x^2)/S(x^2) */ + if ix >= uint32(0x3f200000) { /* |x| >= 2**-13 */ + /* up to 4ulp error close to 2 */ + z = float64(x * x) + r = float64(z * (_R02 + float64(z*(_R03+float64(z*(_R04+float64(z*_R05))))))) + s = Float64FromInt32(1) + float64(z*(_S01+float64(z*(_S02+float64(z*(_S03+float64(z*_S04))))))) + return float64((Float64FromInt32(1)+x/Float64FromInt32(2))*(Float64FromInt32(1)-x/Float64FromInt32(2))) + float64(z*(r/s)) + } + /* 1 - x*x/4 */ + /* prevent underflow */ + /* inexact should be raised when x!=0, this is not done correctly */ + if ix >= uint32(0x38000000) { /* |x| >= 2**-127 */ + x = float64(float64(float64(0.25)*x) * x) + } + return Float64FromInt32(1) - x +} + +var _u00 = -Float64FromFloat64(0.07380429510868723) /* 0xBFB2E4D6, 0x99CBD01F */ +var _u01 = float64(0.17666645250918112) /* 0x3FC69D01, 0x9DE9E3FC */ +var _u02 = -Float64FromFloat64(0.01381856719455969) /* 0xBF8C4CE8, 0xB16CFA97 */ +var _u03 = float64(0.00034745343209368365) /* 0x3F36C54D, 0x20B29B6B */ +var _u04 = -Float64FromFloat64(3.8140705372436416e-06) /* 0xBECFFEA7, 0x73D25CAD */ +var _u05 = float64(1.9559013703502292e-08) /* 0x3E550057, 0x3B4EABD4 */ +var _u06 = -Float64FromFloat64(3.982051941321034e-11) /* 0xBDC5E43D, 0x693FB3C8 */ +var _v01 = float64(0.01273048348341237) /* 0x3F8A1270, 0x91C9C71A */ +var _v02 = float64(7.600686273503533e-05) /* 0x3F13ECBB, 0xF578C6C1 */ +var _v03 = float64(2.591508518404578e-07) /* 0x3E91642D, 0x7FF202FD */ +var _v04 = float64(4.4111031133267547e-10) /* 0x3DFE5018, 0x3BD6D9EF */ + +func Xy0(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __u Tuint64_t + var ix, lx Tuint32_t + var u, v, z float64 + _, _, _, _, _, _ = __u, ix, lx, u, v, z + __u = *(*Tuint64_t)(unsafe.Pointer(&x)) + ix = uint32(__u >> int32(32)) + lx = uint32(__u) + /* y0(nan)=nan, y0(<0)=nan, y0(0)=-inf, y0(inf)=0 */ + if ix<>int32(31) != 0 { + return Float64FromInt32(0) / Float64FromFloat64(0) + } + if ix >= uint32(0x7ff00000) { + return Float64FromInt32(1) / x + } + if ix >= uint32(0x40000000) { /* x >= 2 */ + /* large ulp errors near zeros: 3.958, 7.086,.. */ + return _common(tls, ix, x, int32(1)) + } + /* U(x^2)/V(x^2) + (2/pi)*j0(x)*log(x) */ + if ix >= uint32(0x3e400000) { /* x >= 2**-27 */ + /* large ulp error near the first zero, x ~= 0.89 */ + z = float64(x * x) + u = _u00 + float64(z*(_u01+float64(z*(_u02+float64(z*(_u03+float64(z*(_u04+float64(z*(_u05+float64(z*_u06))))))))))) + v = float64(1) + float64(z*(_v01+float64(z*(_v02+float64(z*(_v03+float64(z*_v04))))))) + return u/v + float64(_tpi*float64(Xj0(tls, x)*Xlog(tls, x))) + } + return _u00 + float64(_tpi*Xlog(tls, x)) +} + +// C documentation +// +// /* The asymptotic expansions of pzero is +// * 1 - 9/128 s^2 + 11025/98304 s^4 - ..., where s = 1/x. +// * For x >= 2, We approximate pzero by +// * pzero(x) = 1 + (R/S) +// * where R = pR0 + pR1*s^2 + pR2*s^4 + ... + pR5*s^10 +// * S = 1 + pS0*s^2 + ... + pS4*s^10 +// * and +// * | pzero(x)-1-R/S | <= 2 ** ( -60.26) +// */ +var _pR8 = [6]float64{ + 1: -Float64FromFloat64(0.07031249999999004), + 2: -Float64FromFloat64(8.081670412753498), + 3: -Float64FromFloat64(257.06310567970485), + 4: -Float64FromFloat64(2485.216410094288), + 5: -Float64FromFloat64(5253.043804907295), +} +var _pS8 = [5]float64{ + 0: float64(116.53436461966818), + 1: float64(3833.7447536412183), + 2: float64(40597.857264847255), + 3: float64(116752.97256437592), + 4: float64(47627.728414673096), +} + +var _pR5 = [6]float64{ + 0: -Float64FromFloat64(1.141254646918945e-11), + 1: -Float64FromFloat64(0.07031249408735993), + 2: -Float64FromFloat64(4.159610644705878), + 3: -Float64FromFloat64(67.67476522651673), + 4: -Float64FromFloat64(331.23129964917297), + 5: -Float64FromFloat64(346.4333883656049), +} +var _pS52 = [5]float64{ + 0: float64(60.753938269230034), + 1: float64(1051.2523059570458), + 2: float64(5978.970943338558), + 3: float64(9625.445143577745), + 4: float64(2406.058159229391), +} + +var _pR3 = [6]float64{ + 0: -Float64FromFloat64(2.547046017719519e-09), + 1: -Float64FromFloat64(0.07031196163814817), + 2: -Float64FromFloat64(2.409032215495296), + 3: -Float64FromFloat64(21.96597747348831), + 4: -Float64FromFloat64(58.07917047017376), + 5: -Float64FromFloat64(31.44794705948885), +} +var _pS32 = [5]float64{ + 0: float64(35.85603380552097), + 1: float64(361.51398305030386), + 2: float64(1193.6078379211153), + 3: float64(1127.9967985690741), + 4: float64(173.58093081333575), +} + +var _pR2 = [6]float64{ + 0: -Float64FromFloat64(8.875343330325264e-08), + 1: -Float64FromFloat64(0.07030309954836247), + 2: -Float64FromFloat64(1.4507384678095299), + 3: -Float64FromFloat64(7.635696138235278), + 4: -Float64FromFloat64(11.193166886035675), + 5: -Float64FromFloat64(3.2336457935133534), +} +var _pS24 = [5]float64{ + 0: float64(22.22029975320888), + 1: float64(136.2067942182152), + 2: float64(270.4702786580835), + 3: float64(153.87539420832033), + 4: float64(14.65761769482562), +} + +func _pzero(tls *TLS, x float64) (r1 float64) { + var ix Tuint32_t + var p, q uintptr + var r, s, z Tdouble_t + _, _, _, _, _, _ = ix, p, q, r, s, z + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x40200000) { + p = uintptr(unsafe.Pointer(&_pR8)) + q = uintptr(unsafe.Pointer(&_pS8)) + } else { + if ix >= uint32(0x40122E8B) { + p = uintptr(unsafe.Pointer(&_pR5)) + q = uintptr(unsafe.Pointer(&_pS52)) + } else { + if ix >= uint32(0x4006DB6D) { + p = uintptr(unsafe.Pointer(&_pR3)) + q = uintptr(unsafe.Pointer(&_pS32)) + } else { /*ix >= 0x40000000*/ + p = uintptr(unsafe.Pointer(&_pR2)) + q = uintptr(unsafe.Pointer(&_pS24)) + } + } + } + z = float64(1) / float64(x*x) + r = **(**float64)(__ccgo_up(p)) + float64(z*(**(**float64)(__ccgo_up(p + 1*8))+float64(z*(**(**float64)(__ccgo_up(p + 2*8))+float64(z*(**(**float64)(__ccgo_up(p + 3*8))+float64(z*(**(**float64)(__ccgo_up(p + 4*8))+float64(z***(**float64)(__ccgo_up(p + 5*8))))))))))) + s = float64(1) + float64(z*(**(**float64)(__ccgo_up(q))+float64(z*(**(**float64)(__ccgo_up(q + 1*8))+float64(z*(**(**float64)(__ccgo_up(q + 2*8))+float64(z*(**(**float64)(__ccgo_up(q + 3*8))+float64(z***(**float64)(__ccgo_up(q + 4*8))))))))))) + return float64(1) + r/s +} + +// C documentation +// +// /* For x >= 8, the asymptotic expansions of qzero is +// * -1/8 s + 75/1024 s^3 - ..., where s = 1/x. +// * We approximate pzero by +// * qzero(x) = s*(-1.25 + (R/S)) +// * where R = qR0 + qR1*s^2 + qR2*s^4 + ... + qR5*s^10 +// * S = 1 + qS0*s^2 + ... + qS5*s^12 +// * and +// * | qzero(x)/s +1.25-R/S | <= 2 ** ( -61.22) +// */ +var _qR8 = [6]float64{ + 1: float64(0.0732421874999935), + 2: float64(11.76820646822527), + 3: float64(557.6733802564019), + 4: float64(8859.197207564686), + 5: float64(37014.62677768878), +} +var _qS8 = [6]float64{ + 0: float64(163.77602689568982), + 1: float64(8098.344946564498), + 2: float64(142538.29141912048), + 3: float64(803309.2571195144), + 4: float64(840501.5798190605), + 5: -Float64FromFloat64(343899.2935378666), +} + +var _qR5 = [6]float64{ + 0: float64(1.8408596359451553e-11), + 1: float64(0.07324217666126848), + 2: float64(5.8356350896205695), + 3: float64(135.11157728644983), + 4: float64(1027.243765961641), + 5: float64(1989.9778586460538), +} +var _qS5 = [6]float64{ + 0: float64(82.77661022365378), + 1: float64(2077.81416421393), + 2: float64(18847.28877857181), + 3: float64(56751.11228949473), + 4: float64(35976.75384251145), + 5: -Float64FromFloat64(5354.342756019448), +} + +var _qR3 = [6]float64{ + 0: float64(4.377410140897386e-09), + 1: float64(0.07324111800429114), + 2: float64(3.344231375161707), + 3: float64(42.621844074541265), + 4: float64(170.8080913405656), + 5: float64(166.73394869665117), +} +var _qS32 = [6]float64{ + 0: float64(48.75887297245872), + 1: float64(709.689221056606), + 2: float64(3704.1482262011136), + 3: float64(6460.425167525689), + 4: float64(2516.3336892036896), + 5: -Float64FromFloat64(149.2474518361564), +} + +var _qR2 = [6]float64{ + 0: float64(1.5044444488698327e-07), + 1: float64(0.07322342659630793), + 2: float64(1.99819174093816), + 3: float64(14.495602934788574), + 4: float64(31.666231750478154), + 5: float64(16.252707571092927), +} +var _qS22 = [6]float64{ + 0: float64(30.36558483552192), + 1: float64(269.34811860804984), + 2: float64(844.7837575953201), + 3: float64(882.9358451124886), + 4: float64(212.66638851179883), + 5: -Float64FromFloat64(5.3109549388266695), +} + +func _qzero(tls *TLS, x float64) (r1 float64) { + var ix Tuint32_t + var p, q uintptr + var r, s, z Tdouble_t + _, _, _, _, _, _ = ix, p, q, r, s, z + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x40200000) { + p = uintptr(unsafe.Pointer(&_qR8)) + q = uintptr(unsafe.Pointer(&_qS8)) + } else { + if ix >= uint32(0x40122E8B) { + p = uintptr(unsafe.Pointer(&_qR5)) + q = uintptr(unsafe.Pointer(&_qS5)) + } else { + if ix >= uint32(0x4006DB6D) { + p = uintptr(unsafe.Pointer(&_qR3)) + q = uintptr(unsafe.Pointer(&_qS32)) + } else { /*ix >= 0x40000000*/ + p = uintptr(unsafe.Pointer(&_qR2)) + q = uintptr(unsafe.Pointer(&_qS22)) + } + } + } + z = float64(1) / float64(x*x) + r = **(**float64)(__ccgo_up(p)) + float64(z*(**(**float64)(__ccgo_up(p + 1*8))+float64(z*(**(**float64)(__ccgo_up(p + 2*8))+float64(z*(**(**float64)(__ccgo_up(p + 3*8))+float64(z*(**(**float64)(__ccgo_up(p + 4*8))+float64(z***(**float64)(__ccgo_up(p + 5*8))))))))))) + s = float64(1) + float64(z*(**(**float64)(__ccgo_up(q))+float64(z*(**(**float64)(__ccgo_up(q + 1*8))+float64(z*(**(**float64)(__ccgo_up(q + 2*8))+float64(z*(**(**float64)(__ccgo_up(q + 3*8))+float64(z*(**(**float64)(__ccgo_up(q + 4*8))+float64(z***(**float64)(__ccgo_up(q + 5*8))))))))))))) + return (-Float64FromFloat64(0.125) + r/s) / x +} + +var _invsqrtpi1 = float32(0.56418961287) /* 0x3f106ebb */ +var _tpi1 = float32(0.63661974669) /* 0x3f22f983 */ + +func _common1(tls *TLS, ix Tuint32_t, x float32, y0 int32) (r float32) { + var c, cc, s, ss, z float32 + _, _, _, _, _ = c, cc, s, ss, z + /* + * j0(x) = 1/sqrt(pi) * (P(0,x)*cc - Q(0,x)*ss) / sqrt(x) + * y0(x) = 1/sqrt(pi) * (P(0,x)*ss + Q(0,x)*cc) / sqrt(x) + */ + s = Xsinf(tls, x) + c = Xcosf(tls, x) + if y0 != 0 { + c = -c + } + cc = s + c + if ix < uint32(0x7f000000) { + ss = s - c + z = -Xcosf(tls, float32(Float32FromInt32(2)*x)) + if float32(s*c) < Float32FromInt32(0) { + cc = z / ss + } else { + ss = z / cc + } + if ix < uint32(0x58800000) { + if y0 != 0 { + ss = -ss + } + cc = float32(_pzerof(tls, x)*cc) - float32(_qzerof(tls, x)*ss) + } + } + return float32(_invsqrtpi1*cc) / Xsqrtf(tls, x) +} + +// C documentation +// +// /* R0/S0 on [0, 2.00] */ + +var _R021 = float32(0.015625) /* 0x3c800000 */ +var _R031 = float32(-Float64FromFloat64(0.00018997929874)) /* 0xb947352e */ +var _R041 = float32(1.8295404516e-06) /* 0x35f58e88 */ +var _R051 = float32(-Float64FromFloat64(4.6183270541e-09)) /* 0xb19eaf3c */ +var _S011 = float32(0.015619102865) /* 0x3c7fe744 */ +var _S021 = float32(0.00011692678527) /* 0x38f53697 */ +var _S031 = float32(5.1354652442e-07) /* 0x3509daa6 */ +var _S041 = float32(1.1661400734e-09) /* 0x30a045e8 */ + +func Xj0f(tls *TLS, x float32) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var ix Tuint32_t + var r, s, z float32 + _, _, _, _ = ix, r, s, z + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x7f800000) { + return Float32FromInt32(1) / float32(x*x) + } + x = Xfabsf(tls, x) + if ix >= uint32(0x40000000) { /* |x| >= 2 */ + /* large ulp error near zeros */ + return _common1(tls, ix, x, 0) + } + if ix >= uint32(0x3a000000) { /* |x| >= 2**-11 */ + /* up to 4ulp error near 2 */ + z = float32(x * x) + r = float32(z * (_R021 + float32(z*(_R031+float32(z*(_R041+float32(z*_R051))))))) + s = Float32FromInt32(1) + float32(z*(_S011+float32(z*(_S021+float32(z*(_S031+float32(z*_S041))))))) + return float32((Float32FromInt32(1)+x/Float32FromInt32(2))*(Float32FromInt32(1)-x/Float32FromInt32(2))) + float32(z*(r/s)) + } + if ix >= uint32(0x21800000) { /* |x| >= 2**-60 */ + x = float32(float32(Float32FromFloat32(0.25)*x) * x) + } + return Float32FromInt32(1) - x +} + +var _u001 = float32(-Float64FromFloat64(0.073804296553)) /* 0xbd9726b5 */ +var _u011 = float32(0.17666645348) /* 0x3e34e80d */ +var _u021 = float32(-Float64FromFloat64(0.013818567619)) /* 0xbc626746 */ +var _u031 = float32(0.00034745343146) /* 0x39b62a69 */ +var _u041 = float32(-Float64FromFloat64(3.8140706238e-06)) /* 0xb67ff53c */ +var _u051 = float32(1.9559013964e-08) /* 0x32a802ba */ +var _u061 = float32(-Float64FromFloat64(3.982051841e-11)) /* 0xae2f21eb */ +var _v011 = float32(0.012730483897) /* 0x3c509385 */ +var _v021 = float32(7.6006865129e-05) /* 0x389f65e0 */ +var _v031 = float32(2.5915085189e-07) /* 0x348b216c */ +var _v041 = float32(4.4111031494e-10) /* 0x2ff280c2 */ + +func Xy0f(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ix Tuint32_t + var u, v, z float32 + _, _, _, _ = ix, u, v, z + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + if ix&uint32(0x7fffffff) == uint32(0) { + return float32(-Int32FromInt32(1)) / Float32FromFloat32(0) + } + if ix>>int32(31) != 0 { + return Float32FromInt32(0) / Float32FromFloat32(0) + } + if ix >= uint32(0x7f800000) { + return Float32FromInt32(1) / x + } + if ix >= uint32(0x40000000) { /* |x| >= 2.0 */ + /* large ulp error near zeros */ + return _common1(tls, ix, x, int32(1)) + } + if ix >= uint32(0x39000000) { /* x >= 2**-13 */ + /* large ulp error at x ~= 0.89 */ + z = float32(x * x) + u = _u001 + float32(z*(_u011+float32(z*(_u021+float32(z*(_u031+float32(z*(_u041+float32(z*(_u051+float32(z*_u061))))))))))) + v = Float32FromInt32(1) + float32(z*(_v011+float32(z*(_v021+float32(z*(_v031+float32(z*_v041))))))) + return u/v + float32(_tpi1*float32(Xj0f(tls, x)*Xlogf(tls, x))) + } + return _u001 + float32(_tpi1*Xlogf(tls, x)) +} + +// C documentation +// +// /* The asymptotic expansions of pzero is +// * 1 - 9/128 s^2 + 11025/98304 s^4 - ..., where s = 1/x. +// * For x >= 2, We approximate pzero by +// * pzero(x) = 1 + (R/S) +// * where R = pR0 + pR1*s^2 + pR2*s^4 + ... + pR5*s^10 +// * S = 1 + pS0*s^2 + ... + pS4*s^10 +// * and +// * | pzero(x)-1-R/S | <= 2 ** ( -60.26) +// */ +var _pR81 = [6]float32{ + 1: float32(-Float64FromFloat64(0.0703125)), + 2: float32(-Float64FromFloat64(8.0816707611)), + 3: float32(-Float64FromFloat64(257.06311035)), + 4: float32(-Float64FromFloat64(2485.2163086)), + 5: float32(-Float64FromFloat64(5253.0439453)), +} +var _pS81 = [5]float32{ + 0: float32(116.53436279), + 1: float32(3833.744873), + 2: float32(40597.855469), + 3: float32(116752.96875), + 4: float32(47627.726562), +} +var _pR51 = [6]float32{ + 0: float32(-Float64FromFloat64(1.1412546255e-11)), + 1: float32(-Float64FromFloat64(0.070312492549)), + 2: float32(-Float64FromFloat64(4.1596107483)), + 3: float32(-Float64FromFloat64(67.674766541)), + 4: float32(-Float64FromFloat64(331.23129272)), + 5: float32(-Float64FromFloat64(346.43338013)), +} +var _pS53 = [5]float32{ + 0: float32(60.753936768), + 1: float32(1051.2523193), + 2: float32(5978.9707031), + 3: float32(9625.4453125), + 4: float32(2406.0581055), +} + +var _pR31 = [6]float32{ + 0: float32(-Float64FromFloat64(2.5470459075e-09)), + 1: float32(-Float64FromFloat64(0.070311963558)), + 2: float32(-Float64FromFloat64(2.4090321064)), + 3: float32(-Float64FromFloat64(21.965976715)), + 4: float32(-Float64FromFloat64(58.079170227)), + 5: float32(-Float64FromFloat64(31.447946548)), +} +var _pS33 = [5]float32{ + 0: float32(35.856033325), + 1: float32(361.51397705), + 2: float32(1193.6077881), + 3: float32(1127.9968262), + 4: float32(173.58093262), +} + +var _pR21 = [6]float32{ + 0: float32(-Float64FromFloat64(8.8753431271e-08)), + 1: float32(-Float64FromFloat64(0.070303097367)), + 2: float32(-Float64FromFloat64(1.45073843)), + 3: float32(-Float64FromFloat64(7.6356959343)), + 4: float32(-Float64FromFloat64(11.193166733)), + 5: float32(-Float64FromFloat64(3.2336456776)), +} +var _pS25 = [5]float32{ + 0: float32(22.220300674), + 1: float32(136.20678711), + 2: float32(270.47027588), + 3: float32(153.87539673), + 4: float32(14.657617569), +} + +func _pzerof(tls *TLS, x float32) (r1 float32) { + var ix Tuint32_t + var p, q uintptr + var r, s, z Tfloat_t + _, _, _, _, _, _ = ix, p, q, r, s, z + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x41000000) { + p = uintptr(unsafe.Pointer(&_pR81)) + q = uintptr(unsafe.Pointer(&_pS81)) + } else { + if ix >= uint32(0x409173eb) { + p = uintptr(unsafe.Pointer(&_pR51)) + q = uintptr(unsafe.Pointer(&_pS53)) + } else { + if ix >= uint32(0x4036d917) { + p = uintptr(unsafe.Pointer(&_pR31)) + q = uintptr(unsafe.Pointer(&_pS33)) + } else { /*ix >= 0x40000000*/ + p = uintptr(unsafe.Pointer(&_pR21)) + q = uintptr(unsafe.Pointer(&_pS25)) + } + } + } + z = Float32FromFloat32(1) / float32(x*x) + r = **(**float32)(__ccgo_up(p)) + float32(z*(**(**float32)(__ccgo_up(p + 1*4))+float32(z*(**(**float32)(__ccgo_up(p + 2*4))+float32(z*(**(**float32)(__ccgo_up(p + 3*4))+float32(z*(**(**float32)(__ccgo_up(p + 4*4))+float32(z***(**float32)(__ccgo_up(p + 5*4))))))))))) + s = Float32FromFloat32(1) + float32(z*(**(**float32)(__ccgo_up(q))+float32(z*(**(**float32)(__ccgo_up(q + 1*4))+float32(z*(**(**float32)(__ccgo_up(q + 2*4))+float32(z*(**(**float32)(__ccgo_up(q + 3*4))+float32(z***(**float32)(__ccgo_up(q + 4*4))))))))))) + return Float32FromFloat32(1) + r/s +} + +// C documentation +// +// /* For x >= 8, the asymptotic expansions of qzero is +// * -1/8 s + 75/1024 s^3 - ..., where s = 1/x. +// * We approximate pzero by +// * qzero(x) = s*(-1.25 + (R/S)) +// * where R = qR0 + qR1*s^2 + qR2*s^4 + ... + qR5*s^10 +// * S = 1 + qS0*s^2 + ... + qS5*s^12 +// * and +// * | qzero(x)/s +1.25-R/S | <= 2 ** ( -61.22) +// */ +var _qR81 = [6]float32{ + 1: float32(0.0732421875), + 2: float32(11.768206596), + 3: float32(557.67340088), + 4: float32(8859.1972656), + 5: float32(37014.625), +} +var _qS81 = [6]float32{ + 0: float32(163.77603149), + 1: float32(8098.3447266), + 2: float32(142538.29688), + 3: float32(803309.25), + 4: float32(840501.5625), + 5: float32(-Float64FromFloat64(343899.28125)), +} + +var _qR51 = [6]float32{ + 0: float32(1.8408595828e-11), + 1: float32(0.073242180049), + 2: float32(5.8356351852), + 3: float32(135.11157227), + 4: float32(1027.2437744), + 5: float32(1989.9779053), +} +var _qS51 = [6]float32{ + 0: float32(82.776611328), + 1: float32(2077.814209), + 2: float32(18847.289062), + 3: float32(56751.113281), + 4: float32(35976.753906), + 5: float32(-Float64FromFloat64(5354.3427734)), +} + +var _qR31 = [6]float32{ + 0: float32(4.37740999e-09), + 1: float32(0.073241114616), + 2: float32(3.3442313671), + 3: float32(42.621845245), + 4: float32(170.80809021), + 5: float32(166.73394775), +} +var _qS33 = [6]float32{ + 0: float32(48.758872986), + 1: float32(709.68920898), + 2: float32(3704.1481934), + 3: float32(6460.425293), + 4: float32(2516.3337402), + 5: float32(-Float64FromFloat64(149.24745178)), +} + +var _qR21 = [6]float32{ + 0: float32(1.5044444979e-07), + 1: float32(0.073223426938), + 2: float32(1.9981917143), + 3: float32(14.495602608), + 4: float32(31.666231155), + 5: float32(16.252708435), +} +var _qS23 = [6]float32{ + 0: float32(30.365585327), + 1: float32(269.34811401), + 2: float32(844.78375244), + 3: float32(882.93585205), + 4: float32(212.66638184), + 5: float32(-Float64FromFloat64(5.3109550476)), +} + +func _qzerof(tls *TLS, x float32) (r1 float32) { + var ix Tuint32_t + var p, q uintptr + var r, s, z Tfloat_t + _, _, _, _, _, _ = ix, p, q, r, s, z + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x41000000) { + p = uintptr(unsafe.Pointer(&_qR81)) + q = uintptr(unsafe.Pointer(&_qS81)) + } else { + if ix >= uint32(0x409173eb) { + p = uintptr(unsafe.Pointer(&_qR51)) + q = uintptr(unsafe.Pointer(&_qS51)) + } else { + if ix >= uint32(0x4036d917) { + p = uintptr(unsafe.Pointer(&_qR31)) + q = uintptr(unsafe.Pointer(&_qS33)) + } else { /*ix >= 0x40000000*/ + p = uintptr(unsafe.Pointer(&_qR21)) + q = uintptr(unsafe.Pointer(&_qS23)) + } + } + } + z = Float32FromFloat32(1) / float32(x*x) + r = **(**float32)(__ccgo_up(p)) + float32(z*(**(**float32)(__ccgo_up(p + 1*4))+float32(z*(**(**float32)(__ccgo_up(p + 2*4))+float32(z*(**(**float32)(__ccgo_up(p + 3*4))+float32(z*(**(**float32)(__ccgo_up(p + 4*4))+float32(z***(**float32)(__ccgo_up(p + 5*4))))))))))) + s = Float32FromFloat32(1) + float32(z*(**(**float32)(__ccgo_up(q))+float32(z*(**(**float32)(__ccgo_up(q + 1*4))+float32(z*(**(**float32)(__ccgo_up(q + 2*4))+float32(z*(**(**float32)(__ccgo_up(q + 3*4))+float32(z*(**(**float32)(__ccgo_up(q + 4*4))+float32(z***(**float32)(__ccgo_up(q + 5*4))))))))))))) + return (-Float32FromFloat32(0.125) + r/s) / x +} + +var _invsqrtpi2 = float64(0.5641895835477563) /* 0x3FE20DD7, 0x50429B6D */ +var _tpi2 = float64(0.6366197723675814) /* 0x3FE45F30, 0x6DC9C883 */ + +func _common2(tls *TLS, ix Tuint32_t, x float64, y1 int32, sign int32) (r float64) { + var c, cc, s, ss, z float64 + _, _, _, _, _ = c, cc, s, ss, z + /* + * j1(x) = sqrt(2/(pi*x))*(p1(x)*cos(x-3pi/4)-q1(x)*sin(x-3pi/4)) + * y1(x) = sqrt(2/(pi*x))*(p1(x)*sin(x-3pi/4)+q1(x)*cos(x-3pi/4)) + * + * sin(x-3pi/4) = -(sin(x) + cos(x))/sqrt(2) + * cos(x-3pi/4) = (sin(x) - cos(x))/sqrt(2) + * sin(x) +- cos(x) = -cos(2x)/(sin(x) -+ cos(x)) + */ + s = Xsin(tls, x) + if y1 != 0 { + s = -s + } + c = Xcos(tls, x) + cc = s - c + if ix < uint32(0x7fe00000) { + /* avoid overflow in 2*x */ + ss = -s - c + z = Xcos(tls, float64(Float64FromInt32(2)*x)) + if float64(s*c) > Float64FromInt32(0) { + cc = z / ss + } else { + ss = z / cc + } + if ix < uint32(0x48000000) { + if y1 != 0 { + ss = -ss + } + cc = float64(_pone(tls, x)*cc) - float64(_qone(tls, x)*ss) + } + } + if sign != 0 { + cc = -cc + } + return float64(_invsqrtpi2*cc) / Xsqrt(tls, x) +} + +// C documentation +// +// /* R0/S0 on [0,2] */ + +var _r00 = -Float64FromFloat64(0.0625) /* 0xBFB00000, 0x00000000 */ +var _r01 = float64(0.001407056669551897) /* 0x3F570D9F, 0x98472C61 */ +var _r02 = -Float64FromFloat64(1.599556310840356e-05) /* 0xBEF0C5C6, 0xBA169668 */ +var _r03 = float64(4.9672799960958445e-08) /* 0x3E6AAAFA, 0x46CA0BD9 */ +var _s01 = float64(0.019153759953836346) /* 0x3F939D0B, 0x12637E53 */ +var _s02 = float64(0.00018594678558863092) /* 0x3F285F56, 0xB9CDF664 */ +var _s03 = float64(1.1771846404262368e-06) /* 0x3EB3BFF8, 0x333F8498 */ +var _s04 = float64(5.0463625707621704e-09) /* 0x3E35AC88, 0xC97DFF2C */ +var _s05 = float64(1.2354227442613791e-11) /* 0x3DAB2ACF, 0xCFB97ED8 */ + +func Xj1(tls *TLS, x float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var ix Tuint32_t + var r, s, z float64 + var sign int32 + _, _, _, _, _ = ix, r, s, sign, z + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x7ff00000) { + return Float64FromInt32(1) / float64(x*x) + } + if ix >= uint32(0x40000000) { /* |x| >= 2 */ + return _common2(tls, ix, Xfabs(tls, x), 0, sign) + } + if ix >= uint32(0x38000000) { /* |x| >= 2**-127 */ + z = float64(x * x) + r = float64(z * (_r00 + float64(z*(_r01+float64(z*(_r02+float64(z*_r03))))))) + s = Float64FromInt32(1) + float64(z*(_s01+float64(z*(_s02+float64(z*(_s03+float64(z*(_s04+float64(z*_s05))))))))) + z = r / s + } else { + /* avoid underflow, raise inexact if x!=0 */ + z = x + } + return float64((float64(0.5) + z) * x) +} + +var _U0 = [5]float64{ + 0: -Float64FromFloat64(0.19605709064623894), + 1: float64(0.05044387166398113), + 2: -Float64FromFloat64(0.0019125689587576355), + 3: float64(2.352526005616105e-05), + 4: -Float64FromFloat64(9.190991580398789e-08), +} +var _V0 = [5]float64{ + 0: float64(0.01991673182366499), + 1: float64(0.00020255258102513517), + 2: float64(1.3560880109751623e-06), + 3: float64(6.227414523646215e-09), + 4: float64(1.6655924620799208e-11), +} + +func Xy1(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __u Tuint64_t + var ix, lx Tuint32_t + var u, v, z float64 + _, _, _, _, _, _ = __u, ix, lx, u, v, z + __u = *(*Tuint64_t)(unsafe.Pointer(&x)) + ix = uint32(__u >> int32(32)) + lx = uint32(__u) + /* y1(nan)=nan, y1(<0)=nan, y1(0)=-inf, y1(inf)=0 */ + if ix<>int32(31) != 0 { + return Float64FromInt32(0) / Float64FromFloat64(0) + } + if ix >= uint32(0x7ff00000) { + return Float64FromInt32(1) / x + } + if ix >= uint32(0x40000000) { /* x >= 2 */ + return _common2(tls, ix, x, int32(1), 0) + } + if ix < uint32(0x3c900000) { /* x < 2**-54 */ + return -_tpi2 / x + } + z = float64(x * x) + u = _U0[0] + float64(z*(_U0[int32(1)]+float64(z*(_U0[int32(2)]+float64(z*(_U0[int32(3)]+float64(z*_U0[int32(4)]))))))) + v = Float64FromInt32(1) + float64(z*(_V0[0]+float64(z*(_V0[int32(1)]+float64(z*(_V0[int32(2)]+float64(z*(_V0[int32(3)]+float64(z*_V0[int32(4)]))))))))) + return float64(x*(u/v)) + float64(_tpi2*(float64(Xj1(tls, x)*Xlog(tls, x))-Float64FromInt32(1)/x)) +} + +/* For x >= 8, the asymptotic expansions of pone is + * 1 + 15/128 s^2 - 4725/2^15 s^4 - ..., where s = 1/x. + * We approximate pone by + * pone(x) = 1 + (R/S) + * where R = pr0 + pr1*s^2 + pr2*s^4 + ... + pr5*s^10 + * S = 1 + ps0*s^2 + ... + ps4*s^10 + * and + * | pone(x)-1-R/S | <= 2 ** ( -60.06) + */ + +var _pr8 = [6]float64{ + 1: float64(0.11718749999998865), + 2: float64(13.239480659307358), + 3: float64(412.05185430737856), + 4: float64(3874.7453891396053), + 5: float64(7914.479540318917), +} +var _ps8 = [5]float64{ + 0: float64(114.20737037567841), + 1: float64(3650.9308342085346), + 2: float64(36956.206026903346), + 3: float64(97602.79359349508), + 4: float64(30804.27206278888), +} + +var _pr5 = [6]float64{ + 0: float64(1.3199051955624352e-11), + 1: float64(0.1171874931906141), + 2: float64(6.802751278684329), + 3: float64(108.30818299018911), + 4: float64(517.6361395331998), + 5: float64(528.7152013633375), +} +var _ps5 = [5]float64{ + 0: float64(59.28059872211313), + 1: float64(991.4014187336144), + 2: float64(5353.26695291488), + 3: float64(7844.690317495512), + 4: float64(1504.0468881036106), +} + +var _pr3 = [6]float64{ + 0: float64(3.025039161373736e-09), + 1: float64(0.11718686556725359), + 2: float64(3.9329775003331564), + 3: float64(35.11940355916369), + 4: float64(91.05501107507813), + 5: float64(48.55906851973649), +} +var _ps3 = [5]float64{ + 0: float64(34.79130950012515), + 1: float64(336.76245874782575), + 2: float64(1046.8713997577513), + 3: float64(890.8113463982564), + 4: float64(103.78793243963928), +} + +var _pr2 = [6]float64{ + 0: float64(1.0771083010687374e-07), + 1: float64(0.11717621946268335), + 2: float64(2.368514966676088), + 3: float64(12.242610914826123), + 4: float64(17.693971127168773), + 5: float64(5.073523125888185), +} +var _ps2 = [5]float64{ + 0: float64(21.43648593638214), + 1: float64(125.29022716840275), + 2: float64(232.2764690571628), + 3: float64(117.6793732871471), + 4: float64(8.364638933716183), +} + +func _pone(tls *TLS, x float64) (r1 float64) { + var ix Tuint32_t + var p, q uintptr + var r, s, z Tdouble_t + _, _, _, _, _, _ = ix, p, q, r, s, z + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x40200000) { + p = uintptr(unsafe.Pointer(&_pr8)) + q = uintptr(unsafe.Pointer(&_ps8)) + } else { + if ix >= uint32(0x40122E8B) { + p = uintptr(unsafe.Pointer(&_pr5)) + q = uintptr(unsafe.Pointer(&_ps5)) + } else { + if ix >= uint32(0x4006DB6D) { + p = uintptr(unsafe.Pointer(&_pr3)) + q = uintptr(unsafe.Pointer(&_ps3)) + } else { /*ix >= 0x40000000*/ + p = uintptr(unsafe.Pointer(&_pr2)) + q = uintptr(unsafe.Pointer(&_ps2)) + } + } + } + z = float64(1) / float64(x*x) + r = **(**float64)(__ccgo_up(p)) + float64(z*(**(**float64)(__ccgo_up(p + 1*8))+float64(z*(**(**float64)(__ccgo_up(p + 2*8))+float64(z*(**(**float64)(__ccgo_up(p + 3*8))+float64(z*(**(**float64)(__ccgo_up(p + 4*8))+float64(z***(**float64)(__ccgo_up(p + 5*8))))))))))) + s = float64(1) + float64(z*(**(**float64)(__ccgo_up(q))+float64(z*(**(**float64)(__ccgo_up(q + 1*8))+float64(z*(**(**float64)(__ccgo_up(q + 2*8))+float64(z*(**(**float64)(__ccgo_up(q + 3*8))+float64(z***(**float64)(__ccgo_up(q + 4*8))))))))))) + return float64(1) + r/s +} + +/* For x >= 8, the asymptotic expansions of qone is + * 3/8 s - 105/1024 s^3 - ..., where s = 1/x. + * We approximate pone by + * qone(x) = s*(0.375 + (R/S)) + * where R = qr1*s^2 + qr2*s^4 + ... + qr5*s^10 + * S = 1 + qs1*s^2 + ... + qs6*s^12 + * and + * | qone(x)/s -0.375-R/S | <= 2 ** ( -61.13) + */ + +var _qr8 = [6]float64{ + 1: -Float64FromFloat64(0.10253906249999271), + 2: -Float64FromFloat64(16.271753454459), + 3: -Float64FromFloat64(759.6017225139501), + 4: -Float64FromFloat64(11849.806670242959), + 5: -Float64FromFloat64(48438.512428575035), +} +var _qs8 = [6]float64{ + 0: float64(161.3953697007229), + 1: float64(7825.385999233485), + 2: float64(133875.33628724958), + 3: float64(719657.7236832409), + 4: float64(666601.2326177764), + 5: -Float64FromFloat64(294490.26430383464), +} + +var _qr5 = [6]float64{ + 0: -Float64FromFloat64(2.089799311417641e-11), + 1: -Float64FromFloat64(0.10253905024137543), + 2: -Float64FromFloat64(8.05644828123936), + 3: -Float64FromFloat64(183.66960747488838), + 4: -Float64FromFloat64(1373.1937606550816), + 5: -Float64FromFloat64(2612.4444045321566), +} +var _qs5 = [6]float64{ + 0: float64(81.27655013843358), + 1: float64(1991.7987346048596), + 2: float64(17468.48519249089), + 3: float64(49851.42709103523), + 4: float64(27948.075163891812), + 5: -Float64FromFloat64(4719.183547951285), +} + +var _qr3 = [6]float64{ + 0: -Float64FromFloat64(5.078312264617666e-09), + 1: -Float64FromFloat64(0.10253782982083709), + 2: -Float64FromFloat64(4.610115811394734), + 3: -Float64FromFloat64(57.847221656278364), + 4: -Float64FromFloat64(228.2445407376317), + 5: -Float64FromFloat64(219.21012847890933), +} +var _qs3 = [6]float64{ + 0: float64(47.66515503237295), + 1: float64(673.8651126766997), + 2: float64(3380.1528667952634), + 3: float64(5547.729097207228), + 4: float64(1903.119193388108), + 5: -Float64FromFloat64(135.20119144430734), +} + +var _qr2 = [6]float64{ + 0: -Float64FromFloat64(1.7838172751095887e-07), + 1: -Float64FromFloat64(0.10251704260798555), + 2: -Float64FromFloat64(2.7522056827818746), + 3: -Float64FromFloat64(19.663616264370372), + 4: -Float64FromFloat64(42.32531333728305), + 5: -Float64FromFloat64(21.371921170370406), +} +var _qs2 = [6]float64{ + 0: float64(29.533362906052385), + 1: float64(252.98154998219053), + 2: float64(757.5028348686454), + 3: float64(739.3932053204672), + 4: float64(155.94900333666612), + 5: -Float64FromFloat64(4.959498988226282), +} + +func _qone(tls *TLS, x float64) (r1 float64) { + var ix Tuint32_t + var p, q uintptr + var r, s, z Tdouble_t + _, _, _, _, _, _ = ix, p, q, r, s, z + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x40200000) { + p = uintptr(unsafe.Pointer(&_qr8)) + q = uintptr(unsafe.Pointer(&_qs8)) + } else { + if ix >= uint32(0x40122E8B) { + p = uintptr(unsafe.Pointer(&_qr5)) + q = uintptr(unsafe.Pointer(&_qs5)) + } else { + if ix >= uint32(0x4006DB6D) { + p = uintptr(unsafe.Pointer(&_qr3)) + q = uintptr(unsafe.Pointer(&_qs3)) + } else { /*ix >= 0x40000000*/ + p = uintptr(unsafe.Pointer(&_qr2)) + q = uintptr(unsafe.Pointer(&_qs2)) + } + } + } + z = float64(1) / float64(x*x) + r = **(**float64)(__ccgo_up(p)) + float64(z*(**(**float64)(__ccgo_up(p + 1*8))+float64(z*(**(**float64)(__ccgo_up(p + 2*8))+float64(z*(**(**float64)(__ccgo_up(p + 3*8))+float64(z*(**(**float64)(__ccgo_up(p + 4*8))+float64(z***(**float64)(__ccgo_up(p + 5*8))))))))))) + s = float64(1) + float64(z*(**(**float64)(__ccgo_up(q))+float64(z*(**(**float64)(__ccgo_up(q + 1*8))+float64(z*(**(**float64)(__ccgo_up(q + 2*8))+float64(z*(**(**float64)(__ccgo_up(q + 3*8))+float64(z*(**(**float64)(__ccgo_up(q + 4*8))+float64(z***(**float64)(__ccgo_up(q + 5*8))))))))))))) + return (float64(0.375) + r/s) / x +} + +var _invsqrtpi3 = float32(0.56418961287) /* 0x3f106ebb */ +var _tpi3 = float32(0.63661974669) /* 0x3f22f983 */ + +func _common3(tls *TLS, ix Tuint32_t, x float32, y1 int32, sign int32) (r float32) { + var c, cc, s, ss, z float64 + _, _, _, _, _ = c, cc, s, ss, z + s = float64(Xsinf(tls, x)) + if y1 != 0 { + s = -s + } + c = float64(Xcosf(tls, x)) + cc = s - c + if ix < uint32(0x7f000000) { + ss = -s - c + z = float64(Xcosf(tls, float32(Float32FromInt32(2)*x))) + if float64(s*c) > Float64FromInt32(0) { + cc = z / ss + } else { + ss = z / cc + } + if ix < uint32(0x58800000) { + if y1 != 0 { + ss = -ss + } + cc = float64(float64(_ponef(tls, x))*cc) - float64(float64(_qonef(tls, x))*ss) + } + } + if sign != 0 { + cc = -cc + } + return float32(float64(float64(_invsqrtpi3)*cc) / float64(Xsqrtf(tls, x))) +} + +// C documentation +// +// /* R0/S0 on [0,2] */ + +var _r001 = float32(-Float64FromFloat64(0.0625)) /* 0xbd800000 */ +var _r011 = float32(0.0014070566976) /* 0x3ab86cfd */ +var _r021 = float32(-Float64FromFloat64(1.5995563444e-05)) /* 0xb7862e36 */ +var _r031 = float32(4.9672799207e-08) /* 0x335557d2 */ +var _s011 = float32(0.019153760746) /* 0x3c9ce859 */ +var _s021 = float32(0.00018594678841) /* 0x3942fab6 */ +var _s031 = float32(1.1771846857e-06) /* 0x359dffc2 */ +var _s041 = float32(5.046362439e-09) /* 0x31ad6446 */ +var _s051 = float32(1.2354227016e-11) /* 0x2d59567e */ + +func Xj1f(tls *TLS, x float32) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var ix Tuint32_t + var r, s, z float32 + var sign int32 + _, _, _, _, _ = ix, r, s, sign, z + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x7f800000) { + return Float32FromInt32(1) / float32(x*x) + } + if ix >= uint32(0x40000000) { /* |x| >= 2 */ + return _common3(tls, ix, Xfabsf(tls, x), 0, sign) + } + if ix >= uint32(0x39000000) { /* |x| >= 2**-13 */ + z = float32(x * x) + r = float32(z * (_r001 + float32(z*(_r011+float32(z*(_r021+float32(z*_r031))))))) + s = Float32FromInt32(1) + float32(z*(_s011+float32(z*(_s021+float32(z*(_s031+float32(z*(_s041+float32(z*_s051))))))))) + z = Float32FromFloat32(0.5) + r/s + } else { + z = Float32FromFloat32(0.5) + } + return float32(z * x) +} + +var _U01 = [5]float32{ + 0: float32(-Float64FromFloat64(0.19605709612)), + 1: float32(0.050443872809), + 2: float32(-Float64FromFloat64(0.0019125689287)), + 3: float32(2.3525259166e-05), + 4: float32(-Float64FromFloat64(9.1909917899e-08)), +} +var _V01 = [5]float32{ + 0: float32(0.019916731864), + 1: float32(0.0002025525755), + 2: float32(1.3560879779e-06), + 3: float32(6.227414584e-09), + 4: float32(1.6655924903e-11), +} + +func Xy1f(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ix Tuint32_t + var u, v, z float32 + _, _, _, _ = ix, u, v, z + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + if ix&uint32(0x7fffffff) == uint32(0) { + return float32(-Int32FromInt32(1)) / Float32FromFloat32(0) + } + if ix>>int32(31) != 0 { + return Float32FromInt32(0) / Float32FromFloat32(0) + } + if ix >= uint32(0x7f800000) { + return Float32FromInt32(1) / x + } + if ix >= uint32(0x40000000) { /* |x| >= 2.0 */ + return _common3(tls, ix, x, int32(1), 0) + } + if ix < uint32(0x33000000) { /* x < 2**-25 */ + return -_tpi3 / x + } + z = float32(x * x) + u = _U01[0] + float32(z*(_U01[int32(1)]+float32(z*(_U01[int32(2)]+float32(z*(_U01[int32(3)]+float32(z*_U01[int32(4)]))))))) + v = Float32FromFloat32(1) + float32(z*(_V01[0]+float32(z*(_V01[int32(1)]+float32(z*(_V01[int32(2)]+float32(z*(_V01[int32(3)]+float32(z*_V01[int32(4)]))))))))) + return float32(x*(u/v)) + float32(_tpi3*(float32(Xj1f(tls, x)*Xlogf(tls, x))-Float32FromFloat32(1)/x)) +} + +/* For x >= 8, the asymptotic expansions of pone is + * 1 + 15/128 s^2 - 4725/2^15 s^4 - ..., where s = 1/x. + * We approximate pone by + * pone(x) = 1 + (R/S) + * where R = pr0 + pr1*s^2 + pr2*s^4 + ... + pr5*s^10 + * S = 1 + ps0*s^2 + ... + ps4*s^10 + * and + * | pone(x)-1-R/S | <= 2 ** ( -60.06) + */ + +var _pr81 = [6]float32{ + 1: float32(0.1171875), + 2: float32(13.239480972), + 3: float32(412.05184937), + 4: float32(3874.7453613), + 5: float32(7914.4794922), +} +var _ps81 = [5]float32{ + 0: float32(114.20736694), + 1: float32(3650.9309082), + 2: float32(36956.207031), + 3: float32(97602.796875), + 4: float32(30804.271484), +} + +var _pr51 = [6]float32{ + 0: float32(1.3199052094e-11), + 1: float32(0.11718749255), + 2: float32(6.8027510643), + 3: float32(108.30818176), + 4: float32(517.63616943), + 5: float32(528.71520996), +} +var _ps51 = [5]float32{ + 0: float32(59.280597687), + 1: float32(991.40142822), + 2: float32(5353.2670898), + 3: float32(7844.6904297), + 4: float32(1504.046875), +} + +var _pr31 = [6]float32{ + 0: float32(3.0250391081e-09), + 1: float32(0.1171868667), + 2: float32(3.932977438), + 3: float32(35.119403839), + 4: float32(91.055007935), + 5: float32(48.559066772), +} +var _ps31 = [5]float32{ + 0: float32(34.791309357), + 1: float32(336.76245117), + 2: float32(1046.87146), + 3: float32(890.81134033), + 4: float32(103.78793335), +} + +var _pr21 = [6]float32{ + 0: float32(1.0771083225e-07), + 1: float32(0.11717621982), + 2: float32(2.3685150146), + 3: float32(12.242610931), + 4: float32(17.693971634), + 5: float32(5.0735230446), +} +var _ps21 = [5]float32{ + 0: float32(21.436485291), + 1: float32(125.2902298), + 2: float32(232.276474), + 3: float32(117.67937469), + 4: float32(8.3646392822), +} + +func _ponef(tls *TLS, x float32) (r1 float32) { + var ix Tuint32_t + var p, q uintptr + var r, s, z Tfloat_t + _, _, _, _, _, _ = ix, p, q, r, s, z + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x41000000) { + p = uintptr(unsafe.Pointer(&_pr81)) + q = uintptr(unsafe.Pointer(&_ps81)) + } else { + if ix >= uint32(0x409173eb) { + p = uintptr(unsafe.Pointer(&_pr51)) + q = uintptr(unsafe.Pointer(&_ps51)) + } else { + if ix >= uint32(0x4036d917) { + p = uintptr(unsafe.Pointer(&_pr31)) + q = uintptr(unsafe.Pointer(&_ps31)) + } else { /*ix >= 0x40000000*/ + p = uintptr(unsafe.Pointer(&_pr21)) + q = uintptr(unsafe.Pointer(&_ps21)) + } + } + } + z = Float32FromFloat32(1) / float32(x*x) + r = **(**float32)(__ccgo_up(p)) + float32(z*(**(**float32)(__ccgo_up(p + 1*4))+float32(z*(**(**float32)(__ccgo_up(p + 2*4))+float32(z*(**(**float32)(__ccgo_up(p + 3*4))+float32(z*(**(**float32)(__ccgo_up(p + 4*4))+float32(z***(**float32)(__ccgo_up(p + 5*4))))))))))) + s = Float32FromFloat32(1) + float32(z*(**(**float32)(__ccgo_up(q))+float32(z*(**(**float32)(__ccgo_up(q + 1*4))+float32(z*(**(**float32)(__ccgo_up(q + 2*4))+float32(z*(**(**float32)(__ccgo_up(q + 3*4))+float32(z***(**float32)(__ccgo_up(q + 4*4))))))))))) + return Float32FromFloat32(1) + r/s +} + +/* For x >= 8, the asymptotic expansions of qone is + * 3/8 s - 105/1024 s^3 - ..., where s = 1/x. + * We approximate pone by + * qone(x) = s*(0.375 + (R/S)) + * where R = qr1*s^2 + qr2*s^4 + ... + qr5*s^10 + * S = 1 + qs1*s^2 + ... + qs6*s^12 + * and + * | qone(x)/s -0.375-R/S | <= 2 ** ( -61.13) + */ + +var _qr81 = [6]float32{ + 1: float32(-Float64FromFloat64(0.1025390625)), + 2: float32(-Float64FromFloat64(16.271753311)), + 3: float32(-Float64FromFloat64(759.60174561)), + 4: float32(-Float64FromFloat64(11849.806641)), + 5: float32(-Float64FromFloat64(48438.511719)), +} +var _qs81 = [6]float32{ + 0: float32(161.39537048), + 1: float32(7825.3862305), + 2: float32(133875.34375), + 3: float32(719657.75), + 4: float32(666601.25), + 5: float32(-Float64FromFloat64(294490.25)), +} + +var _qr51 = [6]float32{ + 0: float32(-Float64FromFloat64(2.0897993405e-11)), + 1: float32(-Float64FromFloat64(0.1025390476)), + 2: float32(-Float64FromFloat64(8.0564479828)), + 3: float32(-Float64FromFloat64(183.66960144)), + 4: float32(-Float64FromFloat64(1373.1937256)), + 5: float32(-Float64FromFloat64(2612.4443359)), +} +var _qs51 = [6]float32{ + 0: float32(81.276550293), + 1: float32(1991.7987061), + 2: float32(17468.484375), + 3: float32(49851.425781), + 4: float32(27948.074219), + 5: float32(-Float64FromFloat64(4719.1835938)), +} + +var _qr31 = [6]float32{ + 0: float32(-Float64FromFloat64(5.0783124372e-09)), + 1: float32(-Float64FromFloat64(0.10253783315)), + 2: float32(-Float64FromFloat64(4.6101160049)), + 3: float32(-Float64FromFloat64(57.847221375)), + 4: float32(-Float64FromFloat64(228.24453735)), + 5: float32(-Float64FromFloat64(219.21012878)), +} +var _qs31 = [6]float32{ + 0: float32(47.665153503), + 1: float32(673.8651123), + 2: float32(3380.152832), + 3: float32(5547.7290039), + 4: float32(1903.1191406), + 5: float32(-Float64FromFloat64(135.20118713)), +} + +var _qr21 = [6]float32{ + 0: float32(-Float64FromFloat64(1.7838172539e-07)), + 1: float32(-Float64FromFloat64(0.10251704603)), + 2: float32(-Float64FromFloat64(2.7522056103)), + 3: float32(-Float64FromFloat64(19.66361618)), + 4: float32(-Float64FromFloat64(42.325313568)), + 5: float32(-Float64FromFloat64(21.371921539)), +} +var _qs21 = [6]float32{ + 0: float32(29.533363342), + 1: float32(252.98155212), + 2: float32(757.50280762), + 3: float32(739.39318848), + 4: float32(155.94900513), + 5: float32(-Float64FromFloat64(4.9594988823)), +} + +func _qonef(tls *TLS, x float32) (r1 float32) { + var ix Tuint32_t + var p, q uintptr + var r, s, z Tfloat_t + _, _, _, _, _, _ = ix, p, q, r, s, z + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x41000000) { + p = uintptr(unsafe.Pointer(&_qr81)) + q = uintptr(unsafe.Pointer(&_qs81)) + } else { + if ix >= uint32(0x409173eb) { + p = uintptr(unsafe.Pointer(&_qr51)) + q = uintptr(unsafe.Pointer(&_qs51)) + } else { + if ix >= uint32(0x4036d917) { + p = uintptr(unsafe.Pointer(&_qr31)) + q = uintptr(unsafe.Pointer(&_qs31)) + } else { /*ix >= 0x40000000*/ + p = uintptr(unsafe.Pointer(&_qr21)) + q = uintptr(unsafe.Pointer(&_qs21)) + } + } + } + z = Float32FromFloat32(1) / float32(x*x) + r = **(**float32)(__ccgo_up(p)) + float32(z*(**(**float32)(__ccgo_up(p + 1*4))+float32(z*(**(**float32)(__ccgo_up(p + 2*4))+float32(z*(**(**float32)(__ccgo_up(p + 3*4))+float32(z*(**(**float32)(__ccgo_up(p + 4*4))+float32(z***(**float32)(__ccgo_up(p + 5*4))))))))))) + s = Float32FromFloat32(1) + float32(z*(**(**float32)(__ccgo_up(q))+float32(z*(**(**float32)(__ccgo_up(q + 1*4))+float32(z*(**(**float32)(__ccgo_up(q + 2*4))+float32(z*(**(**float32)(__ccgo_up(q + 3*4))+float32(z*(**(**float32)(__ccgo_up(q + 4*4))+float32(z***(**float32)(__ccgo_up(q + 5*4))))))))))))) + return (Float32FromFloat32(0.375) + r/s) / x +} + +var _invsqrtpi4 = float64(0.5641895835477563) /* 0x3FE20DD7, 0x50429B6D */ + +func Xjn(tls *TLS, n int32, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v n=%v x=%v, (%v:)", tls, n, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __u Tuint64_t + var a, b, h, nf, q0, q1, t, temp, tmp, w, z, v6 float64 + var i, k, nm1, sign int32 + var ix, lx Tuint32_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = __u, a, b, h, i, ix, k, lx, nf, nm1, q0, q1, sign, t, temp, tmp, w, z, v6 + __u = *(*Tuint64_t)(unsafe.Pointer(&x)) + ix = uint32(__u >> int32(32)) + lx = uint32(__u) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix|(lx|-lx)>>int32(31) > uint32(0x7ff00000) { /* nan */ + return x + } + /* J(-n,x) = (-1)^n * J(n, x), J(n, -x) = (-1)^n * J(n, x) + * Thus, J(-n,x) = J(n,-x) + */ + /* nm1 = |n|-1 is used instead of |n| to handle n==INT_MIN */ + if n == 0 { + return Xj0(tls, x) + } + if n < 0 { + nm1 = -(n + int32(1)) + x = -x + sign = sign ^ int32(1) + } else { + nm1 = n - int32(1) + } + if nm1 == 0 { + return Xj1(tls, x) + } + sign = sign & n /* even n: 0, odd n: signbit(x) */ + x = Xfabs(tls, x) + if ix|lx == uint32(0) || ix == uint32(0x7ff00000) { /* if x is 0 or inf */ + b = float64(0) + } else { + if float64(nm1) < x { + /* Safe to use J(n+1,x)=2n/x *J(n,x)-J(n-1,x) */ + if ix >= uint32(0x52d00000) { /* x > 2**302 */ + /* (x >> n**2) + * Jn(x) = cos(x-(2n+1)*pi/4)*sqrt(2/x*pi) + * Yn(x) = sin(x-(2n+1)*pi/4)*sqrt(2/x*pi) + * Let s=sin(x), c=cos(x), + * xn=x-(2n+1)*pi/4, sqt2 = sqrt(2),then + * + * n sin(xn)*sqt2 cos(xn)*sqt2 + * ---------------------------------- + * 0 s-c c+s + * 1 -s-c -c+s + * 2 -s+c -c-s + * 3 s+c c-s + */ + switch nm1 & Int32FromInt32(3) { + case 0: + temp = -Xcos(tls, x) + Xsin(tls, x) + case int32(1): + temp = -Xcos(tls, x) - Xsin(tls, x) + case int32(2): + temp = Xcos(tls, x) - Xsin(tls, x) + default: + fallthrough + case int32(3): + temp = Xcos(tls, x) + Xsin(tls, x) + break + } + b = float64(_invsqrtpi4*temp) / Xsqrt(tls, x) + } else { + a = Xj0(tls, x) + b = Xj1(tls, x) + i = 0 + for { + if !(i < nm1) { + break + } + i = i + 1 + temp = b + b = float64(b*(float64(float64(2)*float64(i))/x)) - a /* avoid underflow */ + a = temp + goto _1 + _1: + } + } + } else { + if ix < uint32(0x3e100000) { /* x < 2**-29 */ + /* x is tiny, return the first Taylor expansion of J(n,x) + * J(n,x) = 1/n!*(x/2)^n - ... + */ + if nm1 > int32(32) { /* underflow */ + b = float64(0) + } else { + temp = float64(x * float64(0.5)) + b = temp + a = float64(1) + i = int32(2) + for { + if !(i <= nm1+int32(1)) { + break + } + a = a * float64(i) /* a = n! */ + b = b * temp /* b = (x/2)^n */ + goto _2 + _2: + ; + i = i + 1 + } + b = b / a + } + } else { + nf = float64(nm1) + float64(1) + w = float64(Float64FromInt32(2)*nf) / x + h = Float64FromInt32(2) / x + z = w + h + q0 = w + q1 = float64(w*z) - float64(1) + k = int32(1) + for q1 < float64(1e+09) { + k = k + int32(1) + z = z + h + tmp = float64(z*q1) - q0 + q0 = q1 + q1 = tmp + } + t = float64(0) + i = k + for { + if !(i >= 0) { + break + } + t = Float64FromInt32(1) / (float64(Float64FromInt32(2)*(float64(i)+nf))/x - t) + goto _3 + _3: + ; + i = i - 1 + } + a = t + b = float64(1) + /* estimate log((2/x)^n*n!) = n*log(2/x)+n*ln(n) + * Hence, if n*(log(2n/x)) > ... + * single 8.8722839355e+01 + * double 7.09782712893383973096e+02 + * long double 1.1356523406294143949491931077970765006170e+04 + * then recurrent value may overflow and the result is + * likely underflow to zero + */ + tmp = float64(nf * Xlog(tls, Xfabs(tls, w))) + if tmp < float64(709.782712893384) { + i = nm1 + for { + if !(i > 0) { + break + } + temp = b + b = float64(b*float64(float64(2)*float64(i)))/x - a + a = temp + goto _4 + _4: + ; + i = i - 1 + } + } else { + i = nm1 + for { + if !(i > 0) { + break + } + temp = b + b = float64(b*float64(float64(2)*float64(i)))/x - a + a = temp + /* scale b to avoid spurious overflow */ + if b > float64(3.273390607896142e+150) { + a = a / b + t = t / b + b = float64(1) + } + goto _5 + _5: + ; + i = i - 1 + } + } + z = Xj0(tls, x) + w = Xj1(tls, x) + if Xfabs(tls, z) >= Xfabs(tls, w) { + b = float64(t*z) / b + } else { + b = float64(t*w) / a + } + } + } + } + if sign != 0 { + v6 = -b + } else { + v6 = b + } + return v6 +} + +func Xyn(tls *TLS, n int32, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v n=%v x=%v, (%v:)", tls, n, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __u Tuint64_t + var a, b, temp, v1 float64 + var i, nm1, sign int32 + var ib, ix, lx Tuint32_t + _, _, _, _, _, _, _, _, _, _, _ = __u, a, b, i, ib, ix, lx, nm1, sign, temp, v1 + __u = *(*Tuint64_t)(unsafe.Pointer(&x)) + ix = uint32(__u >> int32(32)) + lx = uint32(__u) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix|(lx|-lx)>>int32(31) > uint32(0x7ff00000) { /* nan */ + return x + } + if sign != 0 && ix|lx != uint32(0) { /* x < 0 */ + return Float64FromInt32(0) / Float64FromFloat64(0) + } + if ix == uint32(0x7ff00000) { + return float64(0) + } + if n == 0 { + return Xy0(tls, x) + } + if n < 0 { + nm1 = -(n + int32(1)) + sign = n & int32(1) + } else { + nm1 = n - int32(1) + sign = 0 + } + if nm1 == 0 { + if sign != 0 { + v1 = -Xy1(tls, x) + } else { + v1 = Xy1(tls, x) + } + return v1 + } + if ix >= uint32(0x52d00000) { /* x > 2**302 */ + /* (x >> n**2) + * Jn(x) = cos(x-(2n+1)*pi/4)*sqrt(2/x*pi) + * Yn(x) = sin(x-(2n+1)*pi/4)*sqrt(2/x*pi) + * Let s=sin(x), c=cos(x), + * xn=x-(2n+1)*pi/4, sqt2 = sqrt(2),then + * + * n sin(xn)*sqt2 cos(xn)*sqt2 + * ---------------------------------- + * 0 s-c c+s + * 1 -s-c -c+s + * 2 -s+c -c-s + * 3 s+c c-s + */ + switch nm1 & Int32FromInt32(3) { + case 0: + temp = -Xsin(tls, x) - Xcos(tls, x) + case int32(1): + temp = -Xsin(tls, x) + Xcos(tls, x) + case int32(2): + temp = Xsin(tls, x) + Xcos(tls, x) + default: + fallthrough + case int32(3): + temp = Xsin(tls, x) - Xcos(tls, x) + break + } + b = float64(_invsqrtpi4*temp) / Xsqrt(tls, x) + } else { + a = Xy0(tls, x) + b = Xy1(tls, x) + /* quit if b is -inf */ + ib = uint32(*(*Tuint64_t)(unsafe.Pointer(&b)) >> int32(32)) + i = 0 + for { + if !(i < nm1 && ib != uint32(0xfff00000)) { + break + } + i = i + 1 + temp = b + b = float64(float64(float64(2)*float64(i))/x*b) - a + ib = uint32(*(*Tuint64_t)(unsafe.Pointer(&b)) >> int32(32)) + a = temp + goto _2 + _2: + } + } + if sign != 0 { + v1 = -b + } else { + v1 = b + } + return v1 +} + +func Xjnf(tls *TLS, n int32, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v n=%v x=%v, (%v:)", tls, n, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, b, h, nf, q0, q1, t, temp, tmp, w, z, v6 float32 + var i, k, nm1, sign int32 + var ix Tuint32_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = a, b, h, i, ix, k, nf, nm1, q0, q1, sign, t, temp, tmp, w, z, v6 + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix > uint32(0x7f800000) { /* nan */ + return x + } + /* J(-n,x) = J(n,-x), use |n|-1 to avoid overflow in -n */ + if n == 0 { + return Xj0f(tls, x) + } + if n < 0 { + nm1 = -(n + int32(1)) + x = -x + sign = sign ^ int32(1) + } else { + nm1 = n - int32(1) + } + if nm1 == 0 { + return Xj1f(tls, x) + } + sign = sign & n /* even n: 0, odd n: signbit(x) */ + x = Xfabsf(tls, x) + if ix == uint32(0) || ix == uint32(0x7f800000) { /* if x is 0 or inf */ + b = Float32FromFloat32(0) + } else { + if float32(nm1) < x { + /* Safe to use J(n+1,x)=2n/x *J(n,x)-J(n-1,x) */ + a = Xj0f(tls, x) + b = Xj1f(tls, x) + i = 0 + for { + if !(i < nm1) { + break + } + i = i + 1 + temp = b + b = float32(b*(float32(Float32FromFloat32(2)*float32(i))/x)) - a + a = temp + goto _1 + _1: + } + } else { + if ix < uint32(0x35800000) { /* x < 2**-20 */ + /* x is tiny, return the first Taylor expansion of J(n,x) + * J(n,x) = 1/n!*(x/2)^n - ... + */ + if nm1 > int32(8) { /* underflow */ + nm1 = int32(8) + } + temp = float32(Float32FromFloat32(0.5) * x) + b = temp + a = Float32FromFloat32(1) + i = int32(2) + for { + if !(i <= nm1+int32(1)) { + break + } + a = a * float32(i) /* a = n! */ + b = b * temp /* b = (x/2)^n */ + goto _2 + _2: + ; + i = i + 1 + } + b = b / a + } else { + nf = float32(nm1) + Float32FromFloat32(1) + w = float32(Float32FromInt32(2)*nf) / x + h = Float32FromInt32(2) / x + z = w + h + q0 = w + q1 = float32(w*z) - Float32FromFloat32(1) + k = int32(1) + for q1 < Float32FromFloat32(10000) { + k = k + int32(1) + z = z + h + tmp = float32(z*q1) - q0 + q0 = q1 + q1 = tmp + } + t = Float32FromFloat32(0) + i = k + for { + if !(i >= 0) { + break + } + t = Float32FromFloat32(1) / (float32(Float32FromInt32(2)*(float32(i)+nf))/x - t) + goto _3 + _3: + ; + i = i - 1 + } + a = t + b = Float32FromFloat32(1) + /* estimate log((2/x)^n*n!) = n*log(2/x)+n*ln(n) + * Hence, if n*(log(2n/x)) > ... + * single 8.8722839355e+01 + * double 7.09782712893383973096e+02 + * long double 1.1356523406294143949491931077970765006170e+04 + * then recurrent value may overflow and the result is + * likely underflow to zero + */ + tmp = float32(nf * Xlogf(tls, Xfabsf(tls, w))) + if tmp < Float32FromFloat32(88.721679688) { + i = nm1 + for { + if !(i > 0) { + break + } + temp = b + b = float32(float32(Float32FromFloat32(2)*float32(i))*b)/x - a + a = temp + goto _4 + _4: + ; + i = i - 1 + } + } else { + i = nm1 + for { + if !(i > 0) { + break + } + temp = b + b = float32(float32(Float32FromFloat32(2)*float32(i))*b)/x - a + a = temp + /* scale b to avoid spurious overflow */ + if b > Float32FromFloat32(1.152921504606847e+18) { + a = a / b + t = t / b + b = Float32FromFloat32(1) + } + goto _5 + _5: + ; + i = i - 1 + } + } + z = Xj0f(tls, x) + w = Xj1f(tls, x) + if Xfabsf(tls, z) >= Xfabsf(tls, w) { + b = float32(t*z) / b + } else { + b = float32(t*w) / a + } + } + } + } + if sign != 0 { + v6 = -b + } else { + v6 = b + } + return v6 +} + +func Xynf(tls *TLS, n int32, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v n=%v x=%v, (%v:)", tls, n, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, b, temp, v1 float32 + var i, nm1, sign int32 + var ib, ix Tuint32_t + _, _, _, _, _, _, _, _, _ = a, b, i, ib, ix, nm1, sign, temp, v1 + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix > uint32(0x7f800000) { /* nan */ + return x + } + if sign != 0 && ix != uint32(0) { /* x < 0 */ + return Float32FromInt32(0) / Float32FromFloat32(0) + } + if ix == uint32(0x7f800000) { + return Float32FromFloat32(0) + } + if n == 0 { + return Xy0f(tls, x) + } + if n < 0 { + nm1 = -(n + int32(1)) + sign = n & int32(1) + } else { + nm1 = n - int32(1) + sign = 0 + } + if nm1 == 0 { + if sign != 0 { + v1 = -Xy1f(tls, x) + } else { + v1 = Xy1f(tls, x) + } + return v1 + } + a = Xy0f(tls, x) + b = Xy1f(tls, x) + /* quit if b is -inf */ + ib = *(*Tuint32_t)(unsafe.Pointer(&b)) + i = 0 + for { + if !(i < nm1 && ib != uint32(0xff800000)) { + break + } + i = i + 1 + temp = b + b = float32(float32(Float32FromFloat32(2)*float32(i))/x*b) - a + ib = *(*Tuint32_t)(unsafe.Pointer(&b)) + a = temp + goto _2 + _2: + } + if sign != 0 { + v1 = -b + } else { + v1 = b + } + return v1 +} + +func Xldexp(tls *TLS, x float64, n int32) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xscalbn(tls, x, n) +} + +func Xldexpf(tls *TLS, x float32, n int32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xscalbnf(tls, x, n) +} + +func Xldexpl(tls *TLS, x float64, n int32) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xscalbnl(tls, x, n) +} + +func Xlgamma(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lgamma_r(tls, x, uintptr(unsafe.Pointer(&Xsigngam))) +} + +var _pi2 = float64(3.141592653589793) /* 0x400921FB, 0x54442D18 */ +var _a0 = float64(0.07721566490153287) /* 0x3FB3C467, 0xE37DB0C8 */ +var _a1 = float64(0.3224670334241136) /* 0x3FD4A34C, 0xC4A60FAD */ +var _a2 = float64(0.06735230105312927) /* 0x3FB13E00, 0x1A5562A7 */ +var _a3 = float64(0.020580808432516733) /* 0x3F951322, 0xAC92547B */ +var _a4 = float64(0.007385550860814029) /* 0x3F7E404F, 0xB68FEFE8 */ +var _a5 = float64(0.0028905138367341563) /* 0x3F67ADD8, 0xCCB7926B */ +var _a6 = float64(0.0011927076318336207) /* 0x3F538A94, 0x116F3F5D */ +var _a7 = float64(0.0005100697921535113) /* 0x3F40B6C6, 0x89B99C00 */ +var _a8 = float64(0.00022086279071390839) /* 0x3F2CF2EC, 0xED10E54D */ +var _a9 = float64(0.00010801156724758394) /* 0x3F1C5088, 0x987DFB07 */ +var _a10 = float64(2.5214456545125733e-05) /* 0x3EFA7074, 0x428CFA52 */ +var _a11 = float64(4.4864094961891516e-05) /* 0x3F07858E, 0x90A45837 */ +var _tc = float64(1.4616321449683622) /* 0x3FF762D8, 0x6356BE3F */ +var _tf = -Float64FromFloat64(0.12148629053584961) /* 0xBFBF19B9, 0xBCC38A42 */ +/* tt = -(tail of tf) */ +var _tt = -Float64FromFloat64(3.638676997039505e-18) /* 0xBC50C7CA, 0xA48A971F */ +var _t0 = float64(0.48383612272381005) /* 0x3FDEF72B, 0xC8EE38A2 */ +var _t1 = -Float64FromFloat64(0.1475877229945939) /* 0xBFC2E427, 0x8DC6C509 */ +var _t2 = float64(0.06462494023913339) /* 0x3FB08B42, 0x94D5419B */ +var _t3 = -Float64FromFloat64(0.032788541075985965) /* 0xBFA0C9A8, 0xDF35B713 */ +var _t4 = float64(0.01797067508118204) /* 0x3F9266E7, 0x970AF9EC */ +var _t5 = -Float64FromFloat64(0.010314224129834144) /* 0xBF851F9F, 0xBA91EC6A */ +var _t6 = float64(0.006100538702462913) /* 0x3F78FCE0, 0xE370E344 */ +var _t7 = -Float64FromFloat64(0.0036845201678113826) /* 0xBF6E2EFF, 0xB3E914D7 */ +var _t8 = float64(0.0022596478090061247) /* 0x3F6282D3, 0x2E15C915 */ +var _t9 = -Float64FromFloat64(0.0014034646998923284) /* 0xBF56FE8E, 0xBF2D1AF1 */ +var _t10 = float64(0.000881081882437654) /* 0x3F4CDF0C, 0xEF61A8E9 */ +var _t11 = -Float64FromFloat64(0.0005385953053567405) /* 0xBF41A610, 0x9C73E0EC */ +var _t12 = float64(0.00031563207090362595) /* 0x3F34AF6D, 0x6C0EBBF7 */ +var _t13 = -Float64FromFloat64(0.00031275416837512086) /* 0xBF347F24, 0xECC38C38 */ +var _t14 = float64(0.0003355291926355191) /* 0x3F35FD3E, 0xE8C2D3F4 */ +var _u0 = -Float64FromFloat64(0.07721566490153287) /* 0xBFB3C467, 0xE37DB0C8 */ +var _u1 = float64(0.6328270640250934) /* 0x3FE4401E, 0x8B005DFF */ +var _u2 = float64(1.4549225013723477) /* 0x3FF7475C, 0xD119BD6F */ +var _u3 = float64(0.9777175279633727) /* 0x3FEF4976, 0x44EA8450 */ +var _u4 = float64(0.22896372806469245) /* 0x3FCD4EAE, 0xF6010924 */ +var _u5 = float64(0.013381091853678766) /* 0x3F8B678B, 0xBF2BAB09 */ +var _v1 = float64(2.4559779371304113) /* 0x4003A5D7, 0xC2BD619C */ +var _v2 = float64(2.128489763798934) /* 0x40010725, 0xA42B18F5 */ +var _v3 = float64(0.7692851504566728) /* 0x3FE89DFB, 0xE45050AF */ +var _v4 = float64(0.10422264559336913) /* 0x3FBAAE55, 0xD6537C88 */ +var _v5 = float64(0.003217092422824239) /* 0x3F6A5ABB, 0x57D0CF61 */ +var _s0 = -Float64FromFloat64(0.07721566490153287) /* 0xBFB3C467, 0xE37DB0C8 */ +var _s1 = float64(0.21498241596060885) /* 0x3FCB848B, 0x36E20878 */ +var _s2 = float64(0.325778796408931) /* 0x3FD4D98F, 0x4F139F59 */ +var _s3 = float64(0.14635047265246445) /* 0x3FC2BB9C, 0xBEE5F2F7 */ +var _s4 = float64(0.02664227030336386) /* 0x3F9B481C, 0x7E939961 */ +var _s5 = float64(0.0018402845140733772) /* 0x3F5E26B6, 0x7368F239 */ +var _s6 = float64(3.194753265841009e-05) /* 0x3F00BFEC, 0xDD17E945 */ +var _r1 = float64(1.3920053346762105) /* 0x3FF645A7, 0x62C4AB74 */ +var _r2 = float64(0.7219355475671381) /* 0x3FE71A18, 0x93D3DCDC */ +var _r3 = float64(0.17193386563280308) /* 0x3FC601ED, 0xCCFBDF27 */ +var _r4 = float64(0.01864591917156529) /* 0x3F9317EA, 0x742ED475 */ +var _r5 = float64(0.0007779424963818936) /* 0x3F497DDA, 0xCA41A95B */ +var _r6 = float64(7.326684307446256e-06) /* 0x3EDEBAF7, 0xA5B38140 */ +var _w0 = float64(0.4189385332046727) /* 0x3FDACFE3, 0x90C97D69 */ +var _w1 = float64(0.08333333333333297) /* 0x3FB55555, 0x5555553B */ +var _w2 = -Float64FromFloat64(0.0027777777772877554) /* 0xBF66C16C, 0x16B02E5C */ +var _w3 = float64(0.0007936505586430196) /* 0x3F4A019F, 0x98CF38B6 */ +var _w4 = -Float64FromFloat64(0.00059518755745034) /* 0xBF4380CB, 0x8C0FE741 */ +var _w5 = float64(0.0008363399189962821) /* 0x3F4B67BA, 0x4CDAD5D1 */ +var _w6 = -Float64FromFloat64(0.0016309293409657527) /* 0xBF5AB89D, 0x0B9E43E4 */ + +// C documentation +// +// /* sin(pi*x) assuming x > 2^-100, if sin(pi*x)==0 the sign is arbitrary */ +func _sin_pi(tls *TLS, x float64) (r float64) { + var n int32 + _ = n + /* spurious inexact if odd int */ + x = float64(float64(2) * (float64(x*float64(0.5)) - Xfloor(tls, float64(x*float64(0.5))))) /* x mod 2.0 */ + n = int32(float64(x * Float64FromFloat64(4))) + n = (n + int32(1)) / int32(2) + x = x - float64(float32(n)*Float32FromFloat32(0.5)) + x = x * _pi2 + switch n { + default: /* case 4: */ + fallthrough + case 0: + return X__sin(tls, x, float64(0), 0) + case int32(1): + return X__cos(tls, x, float64(0)) + case int32(2): + return X__sin(tls, -x, float64(0), 0) + case int32(3): + return -X__cos(tls, x, float64(0)) + } + return r +} + +func X__lgamma_r(tls *TLS, x float64, signgamp uintptr) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x=%v signgamp=%v, (%v:)", tls, x, signgamp, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var i, sign int32 + var ix Tuint32_t + var nadj, p, p1, p2, p3, q, r, t, w, y, z Tdouble_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = i, ix, nadj, p, p1, p2, p3, q, r, sign, t, w, y, z + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + /* purge off +-inf, NaN, +-0, tiny and negative arguments */ + **(**int32)(__ccgo_up(signgamp)) = int32(1) + sign = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(63)) + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32) & uint64(0x7fffffff)) + if ix >= uint32(0x7ff00000) { + return float64(x * x) + } + if ix < Uint32FromInt32((Int32FromInt32(0x3ff)-Int32FromInt32(70))< float64(0) { + **(**int32)(__ccgo_up(signgamp)) = -int32(1) + } else { + t = -t + } + nadj = Xlog(tls, _pi2/Tdouble_t(t*x)) + } + /* purge off 1 and 2 */ + if (ix == uint32(0x3ff00000) || ix == uint32(0x40000000)) && uint32(*(*Tuint64_t)(unsafe.Pointer(bp))) == uint32(0) { + r = Float64FromInt32(0) + } else { + if ix < uint32(0x40000000) { + if ix <= uint32(0x3feccccc) { /* lgamma(x) = lgamma(x+1)-log(x) */ + r = -Xlog(tls, x) + if ix >= uint32(0x3FE76944) { + y = float64(1) - x + i = 0 + } else { + if ix >= uint32(0x3FCDA661) { + y = x - (_tc - Float64FromFloat64(1)) + i = int32(1) + } else { + y = x + i = int32(2) + } + } + } else { + r = float64(0) + if ix >= uint32(0x3FFBB4C3) { /* [1.7316,2] */ + y = float64(2) - x + i = 0 + } else { + if ix >= uint32(0x3FF3B4C4) { /* [1.23,1.73] */ + y = x - _tc + i = int32(1) + } else { + y = x - float64(1) + i = int32(2) + } + } + } + switch i { + case 0: + z = Tdouble_t(y * y) + p1 = _a0 + float64(z*(_a2+float64(z*(_a4+float64(z*(_a6+float64(z*(_a8+float64(z*_a10))))))))) + p2 = Tdouble_t(z * (_a1 + float64(z*(_a3+float64(z*(_a5+float64(z*(_a7+float64(z*(_a9+float64(z*_a11))))))))))) + p = Tdouble_t(y*p1) + p2 + r = r + (p - Tdouble_t(float64(0.5)*y)) + case int32(1): + z = Tdouble_t(y * y) + w = Tdouble_t(z * y) + p1 = _t0 + float64(w*(_t3+float64(w*(_t6+float64(w*(_t9+float64(w*_t12))))))) /* parallel comp */ + p2 = _t1 + float64(w*(_t4+float64(w*(_t7+float64(w*(_t10+float64(w*_t13))))))) + p3 = _t2 + float64(w*(_t5+float64(w*(_t8+float64(w*(_t11+float64(w*_t14))))))) + p = Tdouble_t(z*p1) - (_tt - float64(w*(p2+Tdouble_t(y*p3)))) + r = r + (_tf + p) + case int32(2): + p1 = Tdouble_t(y * (_u0 + float64(y*(_u1+float64(y*(_u2+float64(y*(_u3+float64(y*(_u4+float64(y*_u5))))))))))) + p2 = float64(1) + float64(y*(_v1+float64(y*(_v2+float64(y*(_v3+float64(y*(_v4+float64(y*_v5))))))))) + r = r + (float64(-Float64FromFloat64(0.5)*y) + p1/p2) + } + } else { + if ix < uint32(0x40200000) { /* x < 8.0 */ + i = int32(x) + y = x - float64(i) + p = Tdouble_t(y * (_s0 + float64(y*(_s1+float64(y*(_s2+float64(y*(_s3+float64(y*(_s4+float64(y*(_s5+float64(y*_s6))))))))))))) + q = float64(1) + float64(y*(_r1+float64(y*(_r2+float64(y*(_r3+float64(y*(_r4+float64(y*(_r5+float64(y*_r6))))))))))) + r = float64(float64(0.5)*y) + p/q + z = float64(1) /* lgamma(1+s) = log(s) + lgamma(s) */ + switch i { + case int32(7): + z = z * (y + float64(6)) /* FALLTHRU */ + fallthrough + case int32(6): + z = z * (y + float64(5)) /* FALLTHRU */ + fallthrough + case int32(5): + z = z * (y + float64(4)) /* FALLTHRU */ + fallthrough + case int32(4): + z = z * (y + float64(3)) /* FALLTHRU */ + fallthrough + case int32(3): + z = z * (y + float64(2)) /* FALLTHRU */ + r = r + Xlog(tls, z) + break + } + } else { + if ix < uint32(0x43900000) { /* 8.0 <= x < 2**58 */ + t = Xlog(tls, x) + z = float64(1) / x + y = Tdouble_t(z * z) + w = _w0 + float64(z*(_w1+float64(y*(_w2+float64(y*(_w3+float64(y*(_w4+float64(y*(_w5+float64(y*_w6))))))))))) + r = float64((x-float64(0.5))*(t-Float64FromFloat64(1))) + w + } else { /* 2**58 <= x <= inf */ + r = Tdouble_t(x * (Xlog(tls, x) - float64(1))) + } + } + } + } + if sign != 0 { + r = nadj - r + } + return r +} + +func Xlgamma_r(tls *TLS, x float64, signgamp uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v signgamp=%v, (%v:)", tls, x, signgamp, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lgamma_r(tls, x, signgamp) +} + +func Xlgammaf(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lgammaf_r(tls, x, uintptr(unsafe.Pointer(&Xsigngam))) +} + +var _pi3 = float32(3.141592741) /* 0x40490fdb */ +var _a01 = float32(0.077215664089) /* 0x3d9e233f */ +var _a12 = float32(0.32246702909) /* 0x3ea51a66 */ +var _a21 = float32(0.067352302372) /* 0x3d89f001 */ +var _a31 = float32(0.020580807701) /* 0x3ca89915 */ +var _a41 = float32(0.0073855509982) /* 0x3bf2027e */ +var _a51 = float32(0.0028905137442) /* 0x3b3d6ec6 */ +var _a61 = float32(0.0011927076848) /* 0x3a9c54a1 */ +var _a71 = float32(0.00051006977446) /* 0x3a05b634 */ +var _a81 = float32(0.00022086278477) /* 0x39679767 */ +var _a91 = float32(0.00010801156895) /* 0x38e28445 */ +var _a101 = float32(2.52144564e-05) /* 0x37d383a2 */ +var _a111 = float32(4.4864096708e-05) /* 0x383c2c75 */ +var _tc1 = float32(1.4616321325) /* 0x3fbb16c3 */ +var _tf1 = float32(-Float64FromFloat64(0.12148628384)) /* 0xbdf8cdcd */ +/* tt = -(tail of tf) */ +var _tt1 = float32(6.6971006518e-09) /* 0x31e61c52 */ +var _t01 = float32(0.48383611441) /* 0x3ef7b95e */ +var _t15 = float32(-Float64FromFloat64(0.14758771658)) /* 0xbe17213c */ +var _t21 = float32(0.064624942839) /* 0x3d845a15 */ +var _t31 = float32(-Float64FromFloat64(0.032788541168)) /* 0xbd064d47 */ +var _t41 = float32(0.017970675603) /* 0x3c93373d */ +var _t51 = float32(-Float64FromFloat64(0.010314224288)) /* 0xbc28fcfe */ +var _t61 = float32(0.0061005386524) /* 0x3bc7e707 */ +var _t71 = float32(-Float64FromFloat64(0.0036845202558)) /* 0xbb7177fe */ +var _t81 = float32(0.0022596477065) /* 0x3b141699 */ +var _t91 = float32(-Float64FromFloat64(0.0014034647029)) /* 0xbab7f476 */ +var _t101 = float32(0.00088108185446) /* 0x3a66f867 */ +var _t111 = float32(-Float64FromFloat64(0.00053859531181)) /* 0xba0d3085 */ +var _t121 = float32(0.00031563205994) /* 0x39a57b6b */ +var _t131 = float32(-Float64FromFloat64(0.00031275415677)) /* 0xb9a3f927 */ +var _t141 = float32(0.00033552918467) /* 0x39afe9f7 */ +var _u07 = float32(-Float64FromFloat64(0.077215664089)) /* 0xbd9e233f */ +var _u11 = float32(0.63282704353) /* 0x3f2200f4 */ +var _u21 = float32(1.4549225569) /* 0x3fba3ae7 */ +var _u31 = float32(0.97771751881) /* 0x3f7a4bb2 */ +var _u41 = float32(0.22896373272) /* 0x3e6a7578 */ +var _u51 = float32(0.013381091878) /* 0x3c5b3c5e */ +var _v11 = float32(2.4559779167) /* 0x401d2ebe */ +var _v21 = float32(2.1284897327) /* 0x4008392d */ +var _v31 = float32(0.76928514242) /* 0x3f44efdf */ +var _v41 = float32(0.10422264785) /* 0x3dd572af */ +var _v51 = float32(0.0032170924824) /* 0x3b52d5db */ +var _s06 = float32(-Float64FromFloat64(0.077215664089)) /* 0xbd9e233f */ +var _s11 = float32(0.21498242021) /* 0x3e5c245a */ +var _s21 = float32(0.32577878237) /* 0x3ea6cc7a */ +var _s31 = float32(0.14635047317) /* 0x3e15dce6 */ +var _s41 = float32(0.026642270386) /* 0x3cda40e4 */ +var _s51 = float32(0.0018402845599) /* 0x3af135b4 */ +var _s61 = float32(3.1947532989e-05) /* 0x3805ff67 */ +var _r11 = float32(1.3920053244) /* 0x3fb22d3b */ +var _r21 = float32(0.72193557024) /* 0x3f38d0c5 */ +var _r31 = float32(0.17193385959) /* 0x3e300f6e */ +var _r41 = float32(0.018645919859) /* 0x3c98bf54 */ +var _r51 = float32(0.00077794247773) /* 0x3a4beed6 */ +var _r61 = float32(7.3266842264e-06) /* 0x36f5d7bd */ +var _w01 = float32(0.41893854737) /* 0x3ed67f1d */ +var _w11 = float32(0.083333335817) /* 0x3daaaaab */ +var _w21 = float32(-Float64FromFloat64(0.002777777845)) /* 0xbb360b61 */ +var _w31 = float32(0.00079365057172) /* 0x3a500cfd */ +var _w41 = float32(-Float64FromFloat64(0.00059518753551)) /* 0xba1c065c */ +var _w51 = float32(0.00083633989561) /* 0x3a5b3dd2 */ +var _w61 = float32(-Float64FromFloat64(0.0016309292987)) /* 0xbad5c4e8 */ + +// C documentation +// +// /* sin(pi*x) assuming x > 2^-100, if sin(pi*x)==0 the sign is arbitrary */ +func _sin_pi1(tls *TLS, x float32) (r float32) { + var n int32 + var y Tdouble_t + _, _ = n, y + /* spurious inexact if odd int */ + x = float32(Float32FromInt32(2) * (float32(x*Float32FromFloat32(0.5)) - Xfloorf(tls, float32(x*Float32FromFloat32(0.5))))) /* x mod 2.0 */ + n = int32(float32(x * Float32FromInt32(4))) + n = (n + int32(1)) / int32(2) + y = float64(x - float32(float32(n)*Float32FromFloat32(0.5))) + y = y * float64(3.141592653589793) + switch n { + default: /* case 4: */ + fallthrough + case 0: + return X__sindf(tls, y) + case int32(1): + return X__cosdf(tls, y) + case int32(2): + return X__sindf(tls, -y) + case int32(3): + return -X__cosdf(tls, y) + } + return r +} + +func X__lgammaf_r(tls *TLS, x float32, signgamp uintptr) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x=%v signgamp=%v, (%v:)", tls, x, signgamp, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var i, sign int32 + var ix Tuint32_t + var nadj, p, p1, p2, p3, q, r, t, w, y, z float32 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = i, ix, nadj, p, p1, p2, p3, q, r, sign, t, w, y, z + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + /* purge off +-inf, NaN, +-0, tiny and negative arguments */ + **(**int32)(__ccgo_up(signgamp)) = int32(1) + sign = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(31)) + ix = *(*Tuint32_t)(unsafe.Pointer(bp)) & uint32(0x7fffffff) + if ix >= uint32(0x7f800000) { + return float32(x * x) + } + if ix < uint32(0x35000000) { /* |x| < 2**-21, return -log(|x|) */ + if sign != 0 { + **(**int32)(__ccgo_up(signgamp)) = -int32(1) + x = -x + } + return -Xlogf(tls, x) + } + if sign != 0 { + x = -x + t = _sin_pi1(tls, x) + if t == Float32FromFloat32(0) { /* -integer */ + return Float32FromFloat32(1) / (x - x) + } + if t > Float32FromFloat32(0) { + **(**int32)(__ccgo_up(signgamp)) = -int32(1) + } else { + t = -t + } + nadj = Xlogf(tls, _pi3/float32(t*x)) + } + /* purge off 1 and 2 */ + if ix == uint32(0x3f800000) || ix == uint32(0x40000000) { + r = Float32FromInt32(0) + } else { + if ix < uint32(0x40000000) { + if ix <= uint32(0x3f666666) { /* lgamma(x) = lgamma(x+1)-log(x) */ + r = -Xlogf(tls, x) + if ix >= uint32(0x3f3b4a20) { + y = Float32FromFloat32(1) - x + i = 0 + } else { + if ix >= uint32(0x3e6d3308) { + y = x - (_tc1 - Float32FromFloat32(1)) + i = int32(1) + } else { + y = x + i = int32(2) + } + } + } else { + r = Float32FromFloat32(0) + if ix >= uint32(0x3fdda618) { /* [1.7316,2] */ + y = Float32FromFloat32(2) - x + i = 0 + } else { + if ix >= uint32(0x3F9da620) { /* [1.23,1.73] */ + y = x - _tc1 + i = int32(1) + } else { + y = x - Float32FromFloat32(1) + i = int32(2) + } + } + } + switch i { + case 0: + z = float32(y * y) + p1 = _a01 + float32(z*(_a21+float32(z*(_a41+float32(z*(_a61+float32(z*(_a81+float32(z*_a101))))))))) + p2 = float32(z * (_a12 + float32(z*(_a31+float32(z*(_a51+float32(z*(_a71+float32(z*(_a91+float32(z*_a111))))))))))) + p = float32(y*p1) + p2 + r = r + (p - float32(Float32FromFloat32(0.5)*y)) + case int32(1): + z = float32(y * y) + w = float32(z * y) + p1 = _t01 + float32(w*(_t31+float32(w*(_t61+float32(w*(_t91+float32(w*_t121))))))) /* parallel comp */ + p2 = _t15 + float32(w*(_t41+float32(w*(_t71+float32(w*(_t101+float32(w*_t131))))))) + p3 = _t21 + float32(w*(_t51+float32(w*(_t81+float32(w*(_t111+float32(w*_t141))))))) + p = float32(z*p1) - (_tt1 - float32(w*(p2+float32(y*p3)))) + r = r + (_tf1 + p) + case int32(2): + p1 = float32(y * (_u07 + float32(y*(_u11+float32(y*(_u21+float32(y*(_u31+float32(y*(_u41+float32(y*_u51))))))))))) + p2 = Float32FromFloat32(1) + float32(y*(_v11+float32(y*(_v21+float32(y*(_v31+float32(y*(_v41+float32(y*_v51))))))))) + r = r + (float32(-Float32FromFloat32(0.5)*y) + p1/p2) + } + } else { + if ix < uint32(0x41000000) { /* x < 8.0 */ + i = int32(x) + y = x - float32(i) + p = float32(y * (_s06 + float32(y*(_s11+float32(y*(_s21+float32(y*(_s31+float32(y*(_s41+float32(y*(_s51+float32(y*_s61))))))))))))) + q = Float32FromFloat32(1) + float32(y*(_r11+float32(y*(_r21+float32(y*(_r31+float32(y*(_r41+float32(y*(_r51+float32(y*_r61))))))))))) + r = float32(Float32FromFloat32(0.5)*y) + p/q + z = Float32FromFloat32(1) /* lgamma(1+s) = log(s) + lgamma(s) */ + switch i { + case int32(7): + z = z * (y + Float32FromFloat32(6)) /* FALLTHRU */ + fallthrough + case int32(6): + z = z * (y + Float32FromFloat32(5)) /* FALLTHRU */ + fallthrough + case int32(5): + z = z * (y + Float32FromFloat32(4)) /* FALLTHRU */ + fallthrough + case int32(4): + z = z * (y + Float32FromFloat32(3)) /* FALLTHRU */ + fallthrough + case int32(3): + z = z * (y + Float32FromFloat32(2)) /* FALLTHRU */ + r = r + Xlogf(tls, z) + break + } + } else { + if ix < uint32(0x5c800000) { /* 8.0 <= x < 2**58 */ + t = Xlogf(tls, x) + z = Float32FromFloat32(1) / x + y = float32(z * z) + w = _w01 + float32(z*(_w11+float32(y*(_w21+float32(y*(_w31+float32(y*(_w41+float32(y*(_w51+float32(y*_w61))))))))))) + r = float32((x-Float32FromFloat32(0.5))*(t-Float32FromFloat32(1))) + w + } else { /* 2**58 <= x <= inf */ + r = float32(x * (Xlogf(tls, x) - Float32FromFloat32(1))) + } + } + } + } + if sign != 0 { + r = nadj - r + } + return r +} + +func Xlgammaf_r(tls *TLS, x float32, signgamp uintptr) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v signgamp=%v, (%v:)", tls, x, signgamp, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lgammaf_r(tls, x, signgamp) +} + +func X__lgammal_r(tls *TLS, x float64, sg uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v sg=%v, (%v:)", tls, x, sg, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lgamma_r(tls, x, sg) +} + +func Xlgammal(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lgammal_r(tls, x, uintptr(unsafe.Pointer(&Xsigngam))) +} + +func Xlgammal_r(tls *TLS, x float64, sg uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v sg=%v, (%v:)", tls, x, sg, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lgammal_r(tls, x, sg) +} + +/* uses LLONG_MAX > 2^53, see comments in lrint.c */ + +func Xllrint(tls *TLS, x float64) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int64(Xrint(tls, x)) +} + +/* uses LLONG_MAX > 2^24, see comments in lrint.c */ + +func Xllrintf(tls *TLS, x float32) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int64(Xrintf(tls, x)) +} + +func Xllrintl(tls *TLS, x float64) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xllrint(tls, x) +} + +func Xllround(tls *TLS, x float64) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int64(Xround(tls, x)) +} + +func Xllroundf(tls *TLS, x float32) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int64(Xroundf(tls, x)) +} + +func Xllroundl(tls *TLS, x float64) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int64(Xroundl(tls, x)) +} + +const LOG_POLY1_ORDER = 12 +const LOG_POLY_ORDER = 6 +const LOG_TABLE_BITS = 7 +const N4 = 128 +const OFF = 4604367669032910848 + +// C documentation +// +// /* Top 16 bits of a double. */ +func _top16(tls *TLS, x float64) (r Tuint32_t) { + return uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(48)) +} + +func Xlog(tls *TLS, x1 float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x1=%v, (%v:)", tls, x1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var hi, invc, kd, lo, logc, r, r2, r3, rhi, rlo, w, y1, z Tdouble_t + var i, k int32 + var ix, iz, tmp Tuint64_t + var top Tuint32_t + var y, v1, v2, v3, v4 float64 + var v5 bool + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = hi, i, invc, ix, iz, k, kd, lo, logc, r, r2, r3, rhi, rlo, tmp, top, w, y, y1, z, v1, v2, v3, v4, v5 + ix = *(*Tuint64_t)(unsafe.Pointer(&x1)) + top = _top16(tls, x1) + v1 = Float64FromFloat64(1) - Float64FromFloat64(0.0625) + v2 = Float64FromFloat64(1) + Float64FromFloat64(0.064697265625) + v3 = Float64FromFloat64(1) - Float64FromFloat64(0.0625) + if ix-*(*Tuint64_t)(unsafe.Pointer(&v1)) < *(*Tuint64_t)(unsafe.Pointer(&v2))-*(*Tuint64_t)(unsafe.Pointer(&v3)) { + /* Handle close to 1.0 inputs separately. */ + /* Fix sign of zero with downward rounding when x==1. */ + if v5 = Bool(int32(WANT_ROUNDING) != 0); v5 { + v4 = float64(1) + } + if v5 && ix == *(*Tuint64_t)(unsafe.Pointer(&v4)) { + return Float64FromInt32(0) + } + r = x1 - float64(1) + r2 = Tdouble_t(r * r) + r3 = Tdouble_t(r * r2) + y1 = Tdouble_t(r3 * (**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56 + 1*8)) + float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56 + 2*8))) + float64(r2***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56 + 3*8))) + float64(r3*(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56 + 4*8))+float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56 + 5*8)))+float64(r2***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56 + 6*8)))+float64(r3*(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56 + 7*8))+float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56 + 8*8)))+float64(r2***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56 + 9*8)))+float64(r3***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56 + 10*8))))))))) + /* Worst-case error is around 0.507 ULP. */ + w = Tdouble_t(r * float64(1.34217728e+08)) + rhi = r + w - w + rlo = r - rhi + w = Tdouble_t(Tdouble_t(rhi*rhi) * **(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56))) /* B[0] == -0.5. */ + hi = r + w + lo = r - hi + w + lo = lo + Tdouble_t(float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56))*rlo)*(rhi+r)) + y1 = y1 + lo + y1 = y1 + hi + y = y1 + v1 = y + goto _7 + _7: + return v1 + } + if top-uint32(0x0010) >= Uint32FromInt32(Int32FromInt32(0x7ff0)-Int32FromInt32(0x0010)) { + /* x < 0x1p-1022 or inf or nan. */ + if ix*uint64(2) == uint64(0) { + return X__math_divzero(tls, uint32(1)) + } + v1 = float64(X__builtin_inff(tls)) + if ix == *(*Tuint64_t)(unsafe.Pointer(&v1)) { /* log(inf) == inf. */ + return x1 + } + if top&uint32(0x8000) != 0 || top&uint32(0x7ff0) == uint32(0x7ff0) { + return X__math_invalid(tls, x1) + } + /* x is subnormal, normalize it. */ + v1 = float64(x1 * float64(4.503599627370496e+15)) + ix = *(*Tuint64_t)(unsafe.Pointer(&v1)) + ix = uint64(ix - Uint64FromUint64(52)<> (Int32FromInt32(52) - Int32FromInt32(LOG_TABLE_BITS)) % Uint64FromInt32(Int32FromInt32(1)<> int32(52)) /* arithmetic shift */ + iz = uint64(ix - tmp&(Uint64FromUint64(0xfff)< 0x1p-5: + 0.5 + 4.13/N + abs-poly-error*2^57 ULP (+ 0.002 ULP without fma) + Worst case error if |y| > 0x1p-4: + 0.5 + 2.06/N + abs-poly-error*2^56 ULP (+ 0.001 ULP without fma). */ + y1 = lo + Tdouble_t(r2***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 16))) + Tdouble_t(Tdouble_t(r*r2)*(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 16 + 1*8))+float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 16 + 2*8)))+float64(r2*(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 16 + 3*8))+float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 16 + 4*8))))))) + hi + y = y1 + v1 = y + goto _11 +_11: + return v1 +} + +var _ivln10hi = float64(0.4342944818781689) /* 0x3fdbcb7b, 0x15200000 */ +var _ivln10lo = float64(2.5082946711645275e-11) /* 0x3dbb9438, 0xca9aadd5 */ +var _log10_2hi = float64(0.30102999566361177) /* 0x3FD34413, 0x509F6000 */ +var _log10_2lo = float64(3.694239077158931e-13) /* 0x3D59FEF3, 0x11F12B36 */ +var _Lg1 = float64(0.6666666666666735) /* 3FE55555 55555593 */ +var _Lg2 = float64(0.3999999999940942) /* 3FD99999 9997FA04 */ +var _Lg3 = float64(0.2857142874366239) /* 3FD24924 94229359 */ +var _Lg4 = float64(0.22222198432149784) /* 3FCC71C5 1D8E78AF */ +var _Lg5 = float64(0.1818357216161805) /* 3FC74664 96CB03DE */ +var _Lg6 = float64(0.15313837699209373) /* 3FC39A09 D078C69F */ +var _Lg7 = float64(0.14798198605116586) /* 3FC2F112 DF3E5244 */ + +func Xlog10(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var R, dk, f, hfsq, hi, lo, s, t1, t2, val_hi, val_lo, w, y, z Tdouble_t + var hx Tuint32_t + var k int32 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = R, dk, f, hfsq, hi, hx, k, lo, s, t1, t2, val_hi, val_lo, w, y, z + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + hx = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32)) + k = 0 + if hx < uint32(0x00100000) || hx>>int32(31) != 0 { + if *(*Tuint64_t)(unsafe.Pointer(bp))<>int32(31) != 0 { + return (x - x) / float64(0) + } /* log(-#) = NaN */ + /* subnormal number, scale x up */ + k = k - int32(54) + x = x * float64(1.8014398509481984e+16) + *(*float64)(unsafe.Pointer(bp)) = x + hx = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32)) + } else { + if hx >= uint32(0x7ff00000) { + return x + } else { + if hx == uint32(0x3ff00000) && *(*Tuint64_t)(unsafe.Pointer(bp))<>Int32FromInt32(20)) - int32(0x3ff)) + hx = hx&uint32(0x000fffff) + uint32(0x3fe6a09e) + *(*Tuint64_t)(unsafe.Pointer(bp)) = uint64(hx)< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var R, dk, f, hfsq, hi, lo, s, t1, t2, w, z Tfloat_t + var ix Tuint32_t + var k int32 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _, _, _, _, _, _, _, _ = R, dk, f, hfsq, hi, ix, k, lo, s, t1, t2, w, z + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + ix = *(*Tuint32_t)(unsafe.Pointer(bp)) + k = 0 + if ix < uint32(0x00800000) || ix>>int32(31) != 0 { /* x < 2**-126 */ + if ix<>int32(31) != 0 { + return (x - x) / Float32FromFloat32(0) + } /* log(-#) = NaN */ + /* subnormal number, scale up x */ + k = k - int32(25) + x = x * Float32FromFloat32(3.3554432e+07) + *(*float32)(unsafe.Pointer(bp)) = x + ix = *(*Tuint32_t)(unsafe.Pointer(bp)) + } else { + if ix >= uint32(0x7f800000) { + return x + } else { + if ix == uint32(0x3f800000) { + return Float32FromInt32(0) + } + } + } + /* reduce x into [sqrt(2)/2, sqrt(2)] */ + ix = ix + Uint32FromInt32(Int32FromInt32(0x3f800000)-Int32FromInt32(0x3f3504f3)) + k = k + (Int32FromUint32(ix>>Int32FromInt32(23)) - int32(0x7f)) + ix = ix&uint32(0x007fffff) + uint32(0x3f3504f3) + *(*Tuint32_t)(unsafe.Pointer(bp)) = ix + x = *(*float32)(unsafe.Pointer(bp)) + f = x - Float32FromFloat32(1) + s = f / (Float32FromFloat32(2) + f) + z = Tfloat_t(s * s) + w = Tfloat_t(z * z) + t1 = Tfloat_t(w * (_Lg21 + float32(w*_Lg41))) + t2 = Tfloat_t(z * (_Lg11 + float32(w*_Lg31))) + R = t2 + t1 + hfsq = Tfloat_t(float32(Float32FromFloat32(0.5)*f) * f) + hi = f - hfsq + *(*float32)(unsafe.Pointer(bp)) = hi + *(*Tuint32_t)(unsafe.Pointer(bp)) &= uint32(0xfffff000) + hi = *(*float32)(unsafe.Pointer(bp)) + lo = f - hi - hfsq + Tfloat_t(s*(hfsq+R)) + dk = float32(k) + return Tfloat_t(dk*_log10_2lo1) + Tfloat_t((lo+hi)*_ivln10lo1) + Tfloat_t(lo*_ivln10hi1) + Tfloat_t(hi*_ivln10hi1) + Tfloat_t(dk*_log10_2hi1) +} + +func Xlog10l(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xlog10(tls, x) +} + +var _ln2_hi2 = float64(0.6931471803691238) /* 3fe62e42 fee00000 */ +var _ln2_lo2 = float64(1.9082149292705877e-10) /* 3dea39ef 35793c76 */ +var _Lg12 = float64(0.6666666666666735) /* 3FE55555 55555593 */ +var _Lg22 = float64(0.3999999999940942) /* 3FD99999 9997FA04 */ +var _Lg32 = float64(0.2857142874366239) /* 3FD24924 94229359 */ +var _Lg42 = float64(0.22222198432149784) /* 3FCC71C5 1D8E78AF */ +var _Lg51 = float64(0.1818357216161805) /* 3FC74664 96CB03DE */ +var _Lg61 = float64(0.15313837699209373) /* 3FC39A09 D078C69F */ +var _Lg71 = float64(0.14798198605116586) /* 3FC2F112 DF3E5244 */ + +func Xlog1p(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var R, c, dk, f, hfsq, s, t1, t2, w, z Tdouble_t + var hu, hx Tuint32_t + var k int32 + var y float32 + var y1, y2, v1 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = R, c, dk, f, hfsq, hu, hx, k, s, t1, t2, w, y, y1, y2, z, v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + hx = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32)) + k = int32(1) + if hx < uint32(0x3fda827a) || hx>>int32(31) != 0 { /* 1+x < sqrt(2)+ */ + if hx >= uint32(0xbff00000) { /* x <= -1.0 */ + if x3 == float64(-Int32FromInt32(1)) { + return x3 / float64(0) + } /* log1p(-1) = -inf */ + return (x3 - x3) / float64(0) /* log1p(x<-1) = NaN */ + } + if hx<= uint32(0x7ff00000) { + return x3 + } + } + if k != 0 { + *(*float64)(unsafe.Pointer(bp)) = Float64FromInt32(1) + x3 + hu = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32)) + hu = hu + Uint32FromInt32(Int32FromInt32(0x3ff00000)-Int32FromInt32(0x3fe6a09e)) + k = Int32FromUint32(hu>>Int32FromInt32(20)) - int32(0x3ff) + /* correction term ~ log(1+x)-log(u), avoid underflow in c/u */ + if k < int32(54) { + if k >= int32(2) { + v1 = Float64FromInt32(1) - (*(*float64)(unsafe.Pointer(bp)) - x3) + } else { + v1 = x3 - (*(*float64)(unsafe.Pointer(bp)) - Float64FromInt32(1)) + } + c = v1 + c = c / *(*float64)(unsafe.Pointer(bp)) + } else { + c = Float64FromInt32(0) + } + /* reduce u into [sqrt(2)/2, sqrt(2)] */ + hu = hu&uint32(0x000fffff) + uint32(0x3fe6a09e) + *(*Tuint64_t)(unsafe.Pointer(bp)) = uint64(hu)< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var R, c, dk, f, hfsq, s, t1, t2, w, z Tfloat_t + var iu, ix Tuint32_t + var k int32 + var y, v1 float32 + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = R, c, dk, f, hfsq, iu, ix, k, s, t1, t2, w, y, y1, y2, z, v1 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + ix = *(*Tuint32_t)(unsafe.Pointer(bp)) + k = int32(1) + if ix < uint32(0x3ed413d0) || ix>>int32(31) != 0 { /* 1+x < sqrt(2)+ */ + if ix >= uint32(0xbf800000) { /* x <= -1.0 */ + if x3 == float32(-Int32FromInt32(1)) { + return x3 / Float32FromFloat32(0) + } /* log1p(-1)=+inf */ + return (x3 - x3) / Float32FromFloat32(0) /* log1p(x<-1)=NaN */ + } + if ix<= uint32(0x7f800000) { + return x3 + } + } + if k != 0 { + *(*float32)(unsafe.Pointer(bp)) = Float32FromInt32(1) + x3 + iu = *(*Tuint32_t)(unsafe.Pointer(bp)) + iu = iu + Uint32FromInt32(Int32FromInt32(0x3f800000)-Int32FromInt32(0x3f3504f3)) + k = Int32FromUint32(iu>>Int32FromInt32(23)) - int32(0x7f) + /* correction term ~ log(1+x)-log(u), avoid underflow in c/u */ + if k < int32(25) { + if k >= int32(2) { + v1 = Float32FromInt32(1) - (*(*float32)(unsafe.Pointer(bp)) - x3) + } else { + v1 = x3 - (*(*float32)(unsafe.Pointer(bp)) - Float32FromInt32(1)) + } + c = v1 + c = c / *(*float32)(unsafe.Pointer(bp)) + } else { + c = Float32FromInt32(0) + } + /* reduce u into [sqrt(2)/2, sqrt(2)] */ + iu = iu&uint32(0x007fffff) + uint32(0x3f3504f3) + *(*Tuint32_t)(unsafe.Pointer(bp)) = iu + f = *(*float32)(unsafe.Pointer(bp)) - Float32FromInt32(1) + } + s = f / (Float32FromFloat32(2) + f) + z = Tfloat_t(s * s) + w = Tfloat_t(z * z) + t1 = Tfloat_t(w * (_Lg23 + float32(w*_Lg43))) + t2 = Tfloat_t(z * (_Lg13 + float32(w*_Lg33))) + R = t2 + t1 + hfsq = Tfloat_t(float32(Float32FromFloat32(0.5)*f) * f) + dk = float32(k) + return Tfloat_t(s*(hfsq+R)) + (Tfloat_t(dk*_ln2_lo3) + c) - hfsq + f + Tfloat_t(dk*_ln2_hi3) +} + +func Xlog1pl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xlog1p(tls, x) +} + +const LOG2_POLY1_ORDER = 11 +const LOG2_POLY_ORDER = 7 +const LOG2_TABLE_BITS = 6 +const N5 = 64 + +// C documentation +// +// /* Top 16 bits of a double. */ +func _top161(tls *TLS, x float64) (r Tuint32_t) { + return uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(48)) +} + +func Xlog2(tls *TLS, x1 float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x1=%v, (%v:)", tls, x1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var hi, invc, kd, lo, logc, p, r, r2, r4, t1, t2, t3, y1, z Tdouble_t + var i, k int32 + var ix, iz, tmp Tuint64_t + var top Tuint32_t + var y, v1, v2, v3, v4 float64 + var v5 bool + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = hi, i, invc, ix, iz, k, kd, lo, logc, p, r, r2, r4, t1, t2, t3, tmp, top, y, y1, z, v1, v2, v3, v4, v5 + ix = *(*Tuint64_t)(unsafe.Pointer(&x1)) + top = _top161(tls, x1) + v1 = Float64FromFloat64(1) - Float64FromFloat64(0.04239702224731445) + v2 = Float64FromFloat64(1) + Float64FromFloat64(0.044274330139160156) + v3 = Float64FromFloat64(1) - Float64FromFloat64(0.04239702224731445) + if ix-*(*Tuint64_t)(unsafe.Pointer(&v1)) < *(*Tuint64_t)(unsafe.Pointer(&v2))-*(*Tuint64_t)(unsafe.Pointer(&v3)) { + /* Handle close to 1.0 inputs separately. */ + /* Fix sign of zero with downward rounding when x==1. */ + if v5 = Bool(int32(WANT_ROUNDING) != 0); v5 { + v4 = float64(1) + } + if v5 && ix == *(*Tuint64_t)(unsafe.Pointer(&v4)) { + return Float64FromInt32(0) + } + r = x1 - float64(1) + hi = Tdouble_t(r * X__log2_data.Finvln2hi) + lo = Tdouble_t(r*X__log2_data.Finvln2lo) + float64(X__builtin_fma(tls, r, X__log2_data.Finvln2hi, -hi)) + r2 = Tdouble_t(r * r) /* rounding error: 0x1p-62. */ + r4 = Tdouble_t(r2 * r2) + /* Worst-case error is less than 0.54 ULP (0.55 ULP without fma). */ + p = Tdouble_t(r2 * (**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 64)) + float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 64 + 1*8))))) + y1 = hi + p + lo = lo + (hi - y1 + p) + lo = lo + Tdouble_t(r4*(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 64 + 2*8))+float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 64 + 3*8)))+float64(r2*(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 64 + 4*8))+float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 64 + 5*8)))))+float64(r4*(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 64 + 6*8))+float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 64 + 7*8)))+float64(r2*(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 64 + 8*8))+float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 64 + 9*8))))))))) + y1 = y1 + lo + y = y1 + v1 = y + goto _7 + _7: + return v1 + } + if top-uint32(0x0010) >= Uint32FromInt32(Int32FromInt32(0x7ff0)-Int32FromInt32(0x0010)) { + /* x < 0x1p-1022 or inf or nan. */ + if ix*uint64(2) == uint64(0) { + return X__math_divzero(tls, uint32(1)) + } + v1 = float64(X__builtin_inff(tls)) + if ix == *(*Tuint64_t)(unsafe.Pointer(&v1)) { /* log(inf) == inf. */ + return x1 + } + if top&uint32(0x8000) != 0 || top&uint32(0x7ff0) == uint32(0x7ff0) { + return X__math_invalid(tls, x1) + } + /* x is subnormal, normalize it. */ + v1 = float64(x1 * float64(4.503599627370496e+15)) + ix = *(*Tuint64_t)(unsafe.Pointer(&v1)) + ix = uint64(ix - Uint64FromUint64(52)<> (Int32FromInt32(52) - Int32FromInt32(LOG2_TABLE_BITS)) % Uint64FromInt32(Int32FromInt32(1)<> int32(52)) /* arithmetic shift */ + iz = uint64(ix - tmp&(Uint64FromUint64(0xfff)< 0x1p-4: 0.547 ULP (0.550 ULP without fma). + ~ 0.5 + 2/N/ln2 + abs-poly-error*0x1p56 ULP (+ 0.003 ULP without fma). */ + p = **(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 16)) + float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 16 + 1*8))) + float64(r2*(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 16 + 2*8))+float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 16 + 3*8))))) + float64(r4*(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 16 + 4*8))+float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 16 + 5*8))))) + y1 = lo + Tdouble_t(r2*p) + hi + y = y1 + v1 = y + goto _11 +_11: + return v1 +} + +type Tlog2_data = struct { + Finvln2hi float64 + Finvln2lo float64 + Fpoly [6]float64 + Fpoly1 [10]float64 + Ftab [64]struct { + Finvc float64 + Flogc float64 + } +} + +const LOG2F_POLY_ORDER = 4 +const LOG2F_TABLE_BITS = 4 +const N6 = 16 +const OFF1 = 1060306944 + +/* +LOG2F_TABLE_BITS = 4 +LOG2F_POLY_ORDER = 4 + +ULP error: 0.752 (nearest rounding.) +Relative error: 1.9 * 2^-26 (before rounding.) +*/ + +func Xlog2f(tls *TLS, x1 float32) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x1=%v, (%v:)", tls, x1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var i, k int32 + var invc, logc, p, r, r2, y0, y1, z Tdouble_t + var ix, iz, tmp, top Tuint32_t + var y, v1 float32 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = i, invc, ix, iz, k, logc, p, r, r2, tmp, top, y, y0, y1, z, v1 + ix = *(*Tuint32_t)(unsafe.Pointer(&x1)) + /* Fix sign of zero with downward rounding when x==1. */ + if Bool(int32(WANT_ROUNDING) != 0) && ix == uint32(0x3f800000) { + return Float32FromInt32(0) + } + if ix-uint32(0x00800000) >= Uint32FromInt32(Int32FromInt32(0x7f800000)-Int32FromInt32(0x00800000)) { + /* x < 0x1p-126 or inf or nan. */ + if ix*uint32(2) == uint32(0) { + return X__math_divzerof(tls, uint32(1)) + } + if ix == uint32(0x7f800000) { /* log2(inf) == inf. */ + return x1 + } + if ix&uint32(0x80000000) != 0 || ix*uint32(2) >= uint32(0xff000000) { + return X__math_invalidf(tls, x1) + } + /* x is subnormal, normalize it. */ + v1 = float32(x1 * Float32FromFloat32(8.388608e+06)) + ix = *(*Tuint32_t)(unsafe.Pointer(&v1)) + ix = ix - Uint32FromInt32(Int32FromInt32(23)<> (Int32FromInt32(23) - Int32FromInt32(LOG2F_TABLE_BITS)) % Uint32FromInt32(Int32FromInt32(1)<> int32(23) /* arithmetic shift */ + invc = (**(**struct { + Finvc float64 + Flogc float64 + })(__ccgo_up(uintptr(unsafe.Pointer(&X__log2f_data)) + uintptr(i)*16))).Finvc + logc = (**(**struct { + Finvc float64 + Flogc float64 + })(__ccgo_up(uintptr(unsafe.Pointer(&X__log2f_data)) + uintptr(i)*16))).Flogc + z = float64(*(*float32)(unsafe.Pointer(&iz))) + /* log2(x) = log1p(z/c-1)/ln2 + log2(c) + k */ + r = Tdouble_t(z*invc) - Float64FromInt32(1) + y0 = logc + float64(k) + /* Pipelined polynomial evaluation to approximate log1p(r)/ln2. */ + r2 = Tdouble_t(r * r) + y1 = float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2f_data)) + 256 + 1*8))*r) + **(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2f_data)) + 256 + 2*8)) + y1 = float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2f_data)) + 256))*r2) + y1 + p = float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2f_data)) + 256 + 3*8))*r) + y0 + y1 = Tdouble_t(y1*r2) + p + y = float32(y1) + v1 = y + goto _3 +_3: + return v1 +} + +type Tlog2f_data = struct { + Ftab [16]struct { + Finvc float64 + Flogc float64 + } + Fpoly [4]float64 +} + +func Xlog2l(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xlog2(tls, x) +} + +const N7 = 128 + +type Tlog_data = struct { + Fln2hi float64 + Fln2lo float64 + Fpoly [5]float64 + Fpoly1 [11]float64 + Ftab [128]struct { + Finvc float64 + Flogc float64 + } +} + +/* +special cases: + logb(+-0) = -inf, and raise divbyzero + logb(+-inf) = +inf + logb(nan) = nan +*/ + +func Xlogb(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uint64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _ = v1 + *(*float64)(unsafe.Pointer(bp)) = x + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + if !(BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) < Uint64FromUint64(0x7ff)< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uint32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _ = v1 + *(*float32)(unsafe.Pointer(bp)) = x + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + if !(BoolInt32(v1&Uint32FromInt32(0x7fffffff) < Uint32FromInt32(0x7f800000)) != 0) { + return float32(x * x) + } + if x == Float32FromInt32(0) { + return float32(-Int32FromInt32(1)) / float32(x*x) + } + return float32(Xilogbf(tls, x)) +} + +func Xlogbl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uint64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _ = v1 + *(*float64)(unsafe.Pointer(bp)) = x + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + if !(BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) < Uint64FromUint64(0x7ff)< %v", r1) }() + } + var i, k int32 + var invc, logc, r, r2, y0, y1, z Tdouble_t + var ix, iz, tmp Tuint32_t + var y, v1 float32 + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = i, invc, ix, iz, k, logc, r, r2, tmp, y, y0, y1, z, v1 + ix = *(*Tuint32_t)(unsafe.Pointer(&x1)) + /* Fix sign of zero with downward rounding when x==1. */ + if Bool(int32(WANT_ROUNDING) != 0) && ix == uint32(0x3f800000) { + return Float32FromInt32(0) + } + if ix-uint32(0x00800000) >= Uint32FromInt32(Int32FromInt32(0x7f800000)-Int32FromInt32(0x00800000)) { + /* x < 0x1p-126 or inf or nan. */ + if ix*uint32(2) == uint32(0) { + return X__math_divzerof(tls, uint32(1)) + } + if ix == uint32(0x7f800000) { /* log(inf) == inf. */ + return x1 + } + if ix&uint32(0x80000000) != 0 || ix*uint32(2) >= uint32(0xff000000) { + return X__math_invalidf(tls, x1) + } + /* x is subnormal, normalize it. */ + v1 = float32(x1 * Float32FromFloat32(8.388608e+06)) + ix = *(*Tuint32_t)(unsafe.Pointer(&v1)) + ix = ix - Uint32FromInt32(Int32FromInt32(23)<> (Int32FromInt32(23) - Int32FromInt32(LOGF_TABLE_BITS)) % Uint32FromInt32(Int32FromInt32(1)<> int32(23) /* arithmetic shift */ + iz = ix - tmp&uint32(0xff800000) + invc = (**(**struct { + Finvc float64 + Flogc float64 + })(__ccgo_up(uintptr(unsafe.Pointer(&X__logf_data)) + uintptr(i)*16))).Finvc + logc = (**(**struct { + Finvc float64 + Flogc float64 + })(__ccgo_up(uintptr(unsafe.Pointer(&X__logf_data)) + uintptr(i)*16))).Flogc + z = float64(*(*float32)(unsafe.Pointer(&iz))) + /* log(x) = log1p(z/c-1) + log(c) + k*Ln2 */ + r = Tdouble_t(z*invc) - Float64FromInt32(1) + y0 = logc + Tdouble_t(float64(k)*X__logf_data.Fln2) + /* Pipelined polynomial evaluation to approximate log1p(r). */ + r2 = Tdouble_t(r * r) + y1 = float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__logf_data)) + 264 + 1*8))*r) + **(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__logf_data)) + 264 + 2*8)) + y1 = float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__logf_data)) + 264))*r2) + y1 + y1 = Tdouble_t(y1*r2) + (y0 + r) + y = float32(y1) + v1 = y + goto _3 +_3: + return v1 +} + +type Tlogf_data = struct { + Ftab [16]struct { + Finvc float64 + Flogc float64 + } + Fln2 float64 + Fpoly [3]float64 +} + +func Xlogl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xlog(tls, x) +} + +/* +If the result cannot be represented (overflow, nan), then +lrint raises the invalid exception. + +Otherwise if the input was not an integer then the inexact +exception is raised. + +C99 is a bit vague about whether inexact exception is +allowed to be raised when invalid is raised. +(F.9 explicitly allows spurious inexact exceptions, F.9.6.5 +does not make it clear if that rule applies to lrint, but +IEEE 754r 7.8 seems to forbid spurious inexact exception in +the ineger conversion functions) + +So we try to make sure that no spurious inexact exception is +raised in case of an overflow. + +If the bit size of long > precision of double, then there +cannot be inexact rounding in case the result overflows, +otherwise LONG_MAX and LONG_MIN can be represented exactly +as a double. +*/ + +func Xlrint(tls *TLS, x float64) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int64(Xrint(tls, x)) +} + +/* uses LONG_MAX > 2^24, see comments in lrint.c */ + +func Xlrintf(tls *TLS, x float32) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int64(Xrintf(tls, x)) +} + +func Xlrintl(tls *TLS, x float64) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xlrint(tls, x) +} + +func Xlround(tls *TLS, x float64) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int64(Xround(tls, x)) +} + +func Xlroundf(tls *TLS, x float32) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int64(Xroundf(tls, x)) +} + +func Xlroundl(tls *TLS, x float64) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int64(Xroundl(tls, x)) +} + +func Xmodf(tls *TLS, x float64, iptr uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v iptr=%v, (%v:)", tls, x, iptr, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e int32 + var mask Tuint64_t + var v1 uintptr + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _ = e, mask, v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + e = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp))>>Int32FromInt32(52)&Uint64FromInt32(0x7ff)) - int32(0x3ff) + /* no fractional part */ + if e >= int32(52) { + **(**float64)(__ccgo_up(iptr)) = x + if e == int32(0x400) && *(*Tuint64_t)(unsafe.Pointer(bp))<> Int32FromInt32(12) >> e) + if *(*Tuint64_t)(unsafe.Pointer(bp))&mask == uint64(0) { + **(**float64)(__ccgo_up(iptr)) = x + v1 = bp + *(*Tuint64_t)(unsafe.Pointer(v1)) = Tuint64_t(*(*Tuint64_t)(unsafe.Pointer(v1)) & (Uint64FromUint64(1) << Int32FromInt32(63))) + return *(*float64)(unsafe.Pointer(bp)) + } + *(*Tuint64_t)(unsafe.Pointer(bp)) &= ^mask + **(**float64)(__ccgo_up(iptr)) = *(*float64)(unsafe.Pointer(bp)) + return x - *(*float64)(unsafe.Pointer(bp)) +} + +func Xmodff(tls *TLS, x float32, iptr uintptr) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v iptr=%v, (%v:)", tls, x, iptr, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e int32 + var mask Tuint32_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _ = e, mask + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + e = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp))>>Int32FromInt32(23)&Uint32FromInt32(0xff)) - int32(0x7f) + /* no fractional part */ + if e >= int32(23) { + **(**float32)(__ccgo_up(iptr)) = x + if e == int32(0x80) && *(*Tuint32_t)(unsafe.Pointer(bp))<> e) + if *(*Tuint32_t)(unsafe.Pointer(bp))&mask == uint32(0) { + **(**float32)(__ccgo_up(iptr)) = x + *(*Tuint32_t)(unsafe.Pointer(bp)) &= uint32(0x80000000) + return *(*float32)(unsafe.Pointer(bp)) + } + *(*Tuint32_t)(unsafe.Pointer(bp)) &= ^mask + **(**float32)(__ccgo_up(iptr)) = *(*float32)(unsafe.Pointer(bp)) + return x - *(*float32)(unsafe.Pointer(bp)) +} + +func Xmodfl(tls *TLS, x float64, iptr uintptr) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x=%v iptr=%v, (%v:)", tls, x, iptr, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var r float64 + var _ /* d at bp+0 */ float64 + _ = r + r = Xmodf(tls, x, bp) + **(**float64)(__ccgo_up(iptr)) = float64(**(**float64)(__ccgo_up(bp))) + return r +} + +func Xnan(tls *TLS, s uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + return float64(X__builtin_nanf(tls, __ccgo_ts)) +} + +func Xnanf(tls *TLS, s uintptr) (r float32) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__builtin_nanf(tls, __ccgo_ts) +} + +func Xnanl(tls *TLS, s uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + return float64(X__builtin_nanf(tls, __ccgo_ts)) +} + +func Xnextafter(tls *TLS, x3 float64, y3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v y3=%v, (%v:)", tls, x3, y3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var ax, ay Tuint64_t + var e int32 + var y float32 + var y1, y2 float64 + var v1, v3 uint64 + var v5 bool + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + var _ /* ux at bp+8 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + var _ /* uy at bp+16 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _, _, _ = ax, ay, e, y, y1, y2, v1, v3, v5 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp + 8)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp + 8)) = x3 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp + 16)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp + 16)) = y3 + *(*float64)(unsafe.Pointer(bp)) = x3 + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + ; + if v5 = BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)< ay || (*(*Tuint64_t)(unsafe.Pointer(bp + 8))^*(*Tuint64_t)(unsafe.Pointer(bp + 16)))&(Uint64FromUint64(1)<> int32(52) & uint64(0x7ff)) + /* raise overflow if ux.f is infinite and x is finite */ + if e == int32(0x7ff) { + if uint64(8) == uint64(4) { + y = float32(x3 + x3) + } else { + if uint64(8) == uint64(8) { + y1 = x3 + x3 + } else { + y2 = x3 + x3 + } + } + } + /* raise underflow if ux.f is subnormal or zero */ + if e == 0 { + if uint64(8) == uint64(4) { + y = float32(float64(x3*x3) + float64(*(*float64)(unsafe.Pointer(bp + 8))**(*float64)(unsafe.Pointer(bp + 8)))) + } else { + if uint64(8) == uint64(8) { + y1 = float64(x3*x3) + float64(*(*float64)(unsafe.Pointer(bp + 8))**(*float64)(unsafe.Pointer(bp + 8))) + } else { + y2 = float64(x3*x3) + float64(*(*float64)(unsafe.Pointer(bp + 8))**(*float64)(unsafe.Pointer(bp + 8))) + } + } + } + return *(*float64)(unsafe.Pointer(bp + 8)) +} + +func Xnextafterf(tls *TLS, x3 float32, y3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v y3=%v, (%v:)", tls, x3, y3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ax, ay, e Tuint32_t + var y float32 + var y1, y2 float64 + var v1, v3 uint32 + var v5 bool + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + var _ /* ux at bp+4 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + var _ /* uy at bp+8 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _, _, _, _ = ax, ay, e, y, y1, y2, v1, v3, v5 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp + 4)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp + 4)) = x3 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp + 8)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp + 8)) = y3 + *(*float32)(unsafe.Pointer(bp)) = x3 + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + ; + if v5 = BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0; !v5 { + *(*float32)(unsafe.Pointer(bp)) = y3 + v3 = *(*uint32)(unsafe.Pointer(bp)) + goto _4 + _4: + } + if v5 || BoolInt32(v3&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return x3 + y3 + } + if *(*Tuint32_t)(unsafe.Pointer(bp + 4)) == *(*Tuint32_t)(unsafe.Pointer(bp + 8)) { + return y3 + } + ax = *(*Tuint32_t)(unsafe.Pointer(bp + 4)) & uint32(0x7fffffff) + ay = *(*Tuint32_t)(unsafe.Pointer(bp + 8)) & uint32(0x7fffffff) + if ax == uint32(0) { + if ay == uint32(0) { + return y3 + } + *(*Tuint32_t)(unsafe.Pointer(bp + 4)) = *(*Tuint32_t)(unsafe.Pointer(bp + 8))&uint32(0x80000000) | uint32(1) + } else { + if ax > ay || (*(*Tuint32_t)(unsafe.Pointer(bp + 4))^*(*Tuint32_t)(unsafe.Pointer(bp + 8)))&uint32(0x80000000) != 0 { + *(*Tuint32_t)(unsafe.Pointer(bp + 4)) = *(*Tuint32_t)(unsafe.Pointer(bp + 4)) - 1 + } else { + *(*Tuint32_t)(unsafe.Pointer(bp + 4)) = *(*Tuint32_t)(unsafe.Pointer(bp + 4)) + 1 + } + } + e = *(*Tuint32_t)(unsafe.Pointer(bp + 4)) & uint32(0x7f800000) + /* raise overflow if ux.f is infinite and x is finite */ + if e == uint32(0x7f800000) { + if uint64(4) == uint64(4) { + y = x3 + x3 + } else { + if uint64(4) == uint64(8) { + y1 = float64(x3 + x3) + } else { + y2 = float64(x3 + x3) + } + } + } + /* raise underflow if ux.f is subnormal or zero */ + if e == uint32(0) { + if uint64(4) == uint64(4) { + y = float32(x3*x3) + float32(*(*float32)(unsafe.Pointer(bp + 4))**(*float32)(unsafe.Pointer(bp + 4))) + } else { + if uint64(4) == uint64(8) { + y1 = float64(float32(x3*x3) + float32(*(*float32)(unsafe.Pointer(bp + 4))**(*float32)(unsafe.Pointer(bp + 4)))) + } else { + y2 = float64(float32(x3*x3) + float32(*(*float32)(unsafe.Pointer(bp + 4))**(*float32)(unsafe.Pointer(bp + 4)))) + } + } + } + return *(*float32)(unsafe.Pointer(bp + 4)) +} + +func Xnextafterl(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xnextafter(tls, x, y) +} + +func Xnexttoward(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xnextafter(tls, x, y) +} + +func Xnexttowardf(tls *TLS, x3 float32, y3 float64) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v y3=%v, (%v:)", tls, x3, y3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var e Tuint32_t + var y float32 + var y1, y2 float64 + var v1 uint32 + var v3 uint64 + var v5 bool + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + var _ /* __u at bp+8 */ struct { + F__i [0]uint64 + F__f float64 + } + var _ /* ux at bp+16 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _, _ = e, y, y1, y2, v1, v3, v5 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp + 16)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp + 16)) = x3 + *(*float32)(unsafe.Pointer(bp)) = x3 + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + ; + if v5 = BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0; !v5 { + *(*float64)(unsafe.Pointer(bp + 8)) = y3 + v3 = *(*uint64)(unsafe.Pointer(bp + 8)) + goto _4 + _4: + } + if v5 || BoolInt32(v3&(-Uint64FromUint64(1)>>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(63)) != 0 { + *(*Tuint32_t)(unsafe.Pointer(bp + 16)) |= uint32(0x80000000) + } + } else { + if float64(x3) < y3 { + *(*float32)(unsafe.Pointer(bp)) = x3 + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _9 + _9: + if Int32FromUint32(v1>>Int32FromInt32(31)) != 0 { + *(*Tuint32_t)(unsafe.Pointer(bp + 16)) = *(*Tuint32_t)(unsafe.Pointer(bp + 16)) - 1 + } else { + *(*Tuint32_t)(unsafe.Pointer(bp + 16)) = *(*Tuint32_t)(unsafe.Pointer(bp + 16)) + 1 + } + } else { + *(*float32)(unsafe.Pointer(bp)) = x3 + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _11 + _11: + if Int32FromUint32(v1>>Int32FromInt32(31)) != 0 { + *(*Tuint32_t)(unsafe.Pointer(bp + 16)) = *(*Tuint32_t)(unsafe.Pointer(bp + 16)) + 1 + } else { + *(*Tuint32_t)(unsafe.Pointer(bp + 16)) = *(*Tuint32_t)(unsafe.Pointer(bp + 16)) - 1 + } + } + } + e = *(*Tuint32_t)(unsafe.Pointer(bp + 16)) & uint32(0x7f800000) + /* raise overflow if ux.f is infinite and x is finite */ + if e == uint32(0x7f800000) { + if uint64(4) == uint64(4) { + y = x3 + x3 + } else { + if uint64(4) == uint64(8) { + y1 = float64(x3 + x3) + } else { + y2 = float64(x3 + x3) + } + } + } + /* raise underflow if ux.f is subnormal or zero */ + if e == uint32(0) { + if uint64(4) == uint64(4) { + y = float32(x3*x3) + float32(*(*float32)(unsafe.Pointer(bp + 16))**(*float32)(unsafe.Pointer(bp + 16))) + } else { + if uint64(4) == uint64(8) { + y1 = float64(float32(x3*x3) + float32(*(*float32)(unsafe.Pointer(bp + 16))**(*float32)(unsafe.Pointer(bp + 16)))) + } else { + y2 = float64(float32(x3*x3) + float32(*(*float32)(unsafe.Pointer(bp + 16))**(*float32)(unsafe.Pointer(bp + 16)))) + } + } + } + return *(*float32)(unsafe.Pointer(bp + 16)) +} + +func Xnexttowardl(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xnextafterl(tls, x, y) +} + +const OFF2 = 4604531861337669632 +const POW_LOG_POLY_ORDER = 8 +const POW_LOG_TABLE_BITS = 7 +const SIGN_BIAS = 262144 + +/* +Worst-case error: 0.54 ULP (~= ulperr_exp + 1024*Ln2*relerr_log*2^53) +relerr_log: 1.3 * 2^-68 (Relative error of log, 1.5 * 2^-68 without fma) +ulperr_exp: 0.509 ULP (ULP error of exp, 0.511 ULP without fma) +*/ + +// C documentation +// +// /* Top 12 bits of a double (sign and exponent bits). */ +func _top124(tls *TLS, x float64) (r Tuint32_t) { + return uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(52)) +} + +// C documentation +// +// /* Compute y+TAIL = log(x) where the rounded result is y and TAIL has about +// additional 15 bits precision. IX is the bit representation of x, but +// normalized in the subnormal range using the sign bit for the exponent. */ +func _log_inline(tls *TLS, ix Tuint64_t, tail uintptr) (r1 Tdouble_t) { + var ar, ar2, ar3, hi, invc, kd, lo, lo1, lo2, lo3, lo4, logc, logctail, p, r, t1, t2, y, z Tdouble_t + var i, k int32 + var iz, tmp Tuint64_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = ar, ar2, ar3, hi, i, invc, iz, k, kd, lo, lo1, lo2, lo3, lo4, logc, logctail, p, r, t1, t2, tmp, y, z + /* x = 2^k z; where z is in range [OFF,2*OFF) and exact. + The range is split into N subintervals. + The ith subinterval contains z and c is near its center. */ + tmp = ix - uint64(OFF2) + i = Int32FromUint64(tmp >> (Int32FromInt32(52) - Int32FromInt32(POW_LOG_TABLE_BITS)) % Uint64FromInt32(Int32FromInt32(1)<> int32(52)) /* arithmetic shift */ + iz = uint64(ix - tmp&(Uint64FromUint64(0xfff)< 0, the exponent of scale might have overflowed by <= 460. */ + sbits = uint64(sbits - Uint64FromUint64(1009)<= _top124(tls, float64(512))-_top124(tls, float64(5.551115123125783e-17)) { + if abstop-_top124(tls, float64(5.551115123125783e-17)) >= uint32(0x80000000) { + /* Avoid spurious underflow for tiny x. */ + /* Note: 0 is common input. */ + one = float64(1) + x1 + if sign_bias != 0 { + v1 = -one + } else { + v1 = one + } + return v1 + } + if abstop >= _top124(tls, float64(1024)) { + /* Note: inf and nan are already handled. */ + v2 = x1 + if *(*Tuint64_t)(unsafe.Pointer(&v2))>>int32(63) != 0 { + return X__math_uflow(tls, sign_bias) + } else { + return X__math_oflow(tls, sign_bias) + } + } + /* Large x is special cased below. */ + abstop = uint32(0) + } + /* exp(x) = 2^(k/N) * exp(r), with exp(r) in [2^(-1/2N),2^(1/2N)]. */ + /* x = ln2/N*k + r, with int k and r in [-ln2/2N, ln2/2N]. */ + z = Tdouble_t(X__exp_data.Finvln2N * x1) + /* z - kd is in [-1, 1] in non-nearest rounding modes. */ + y = z + X__exp_data.Fshift + v2 = y + goto _4 +_4: + kd = v2 + v2 = kd + ki = *(*Tuint64_t)(unsafe.Pointer(&v2)) + kd = kd - X__exp_data.Fshift + r = x1 + Tdouble_t(kd*X__exp_data.Fnegln2hiN) + Tdouble_t(kd*X__exp_data.Fnegln2loN) + /* The code assumes 2^-200 < |xtail| < 2^-8/N. */ + r = r + xtail + /* 2^(k/N) ~= scale * (1 + tail). */ + idx = uint64(2) * (ki % Uint64FromInt32(Int32FromInt32(1)< 2^-200 and scale > 2^-739, so there + is no spurious underflow here even without fma. */ + y = scale + Tdouble_t(scale*tmp) + v2 = y + goto _8 +_8: + return v2 +} + +// C documentation +// +// /* Returns 0 if not int, 1 if odd int, 2 if even int. The argument is +// the bit representation of a non-zero finite floating-point value. */ +func _checkint(tls *TLS, iy Tuint64_t) (r int32) { + var e int32 + _ = e + e = Int32FromUint64(iy >> int32(52) & uint64(0x7ff)) + if e < int32(0x3ff) { + return 0 + } + if e > Int32FromInt32(0x3ff)+Int32FromInt32(52) { + return int32(2) + } + if iy&(uint64(1)<<(Int32FromInt32(0x3ff)+Int32FromInt32(52)-e)-uint64(1)) != 0 { + return 0 + } + if iy&(uint64(1)<<(Int32FromInt32(0x3ff)+Int32FromInt32(52)-e)) != 0 { + return int32(1) + } + return int32(2) +} + +// C documentation +// +// /* Returns 1 if input is the bit representation of 0, infinity or nan. */ +func _zeroinfnan(tls *TLS, i Tuint64_t) (r int32) { + var v1 float64 + _ = v1 + v1 = float64(X__builtin_inff(tls)) + return BoolInt32(uint64(2)*i-uint64(1) >= uint64(2)**(*Tuint64_t)(unsafe.Pointer(&v1))-uint64(1)) +} + +func Xpow(tls *TLS, x1 float64, y1 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x1=%v y1=%v, (%v:)", tls, x1, y1, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ehi, elo, hi, x2 Tdouble_t + var ix, iy Tuint64_t + var sign_bias, topx, topy Tuint32_t + var y, v1, v2 float64 + var yint int32 + var v4 bool + var _ /* lo at bp+0 */ Tdouble_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = ehi, elo, hi, ix, iy, sign_bias, topx, topy, x2, y, yint, v1, v2, v4 + sign_bias = uint32(0) + ix = *(*Tuint64_t)(unsafe.Pointer(&x1)) + iy = *(*Tuint64_t)(unsafe.Pointer(&y1)) + topx = _top124(tls, x1) + topy = _top124(tls, y1) + if topx-uint32(0x001) >= Uint32FromInt32(Int32FromInt32(0x7ff)-Int32FromInt32(0x001)) || topy&uint32(0x7ff)-uint32(0x3be) >= Uint32FromInt32(Int32FromInt32(0x43e)-Int32FromInt32(0x3be)) { + /* Note: if |y| > 1075 * ln2 * 2^53 ~= 0x1.749p62 then pow(x,y) = inf/0 + and if |y| < 2^-54 / 1075 ~= 0x1.e7b6p-65 then pow(x,y) = +-1. */ + /* Special cases: (x < 0x1p-126 or inf or nan) or + (|y| < 0x1p-65 or |y| >= 0x1p63 or nan). */ + if _zeroinfnan(tls, iy) != 0 { + if uint64(2)*iy == uint64(0) { + return float64(1) + } + v1 = float64(1) + if ix == *(*Tuint64_t)(unsafe.Pointer(&v1)) { + return float64(1) + } + v1 = float64(X__builtin_inff(tls)) + if v4 = uint64(2)*ix > uint64(2)**(*Tuint64_t)(unsafe.Pointer(&v1)); !v4 { + v2 = float64(X__builtin_inff(tls)) + } + if v4 || uint64(2)*iy > uint64(2)**(*Tuint64_t)(unsafe.Pointer(&v2)) { + return x1 + y1 + } + v1 = float64(1) + if uint64(2)*ix == uint64(2)**(*Tuint64_t)(unsafe.Pointer(&v1)) { + return float64(1) + } + v1 = float64(1) + if BoolInt32(uint64(2)*ix < uint64(2)**(*Tuint64_t)(unsafe.Pointer(&v1))) == BoolInt32(!(iy>>Int32FromInt32(63) != 0)) { + return float64(0) + } /* |x|<1 && y==inf or |x|>1 && y==-inf. */ + return float64(y1 * y1) + } + if _zeroinfnan(tls, ix) != 0 { + x2 = Tdouble_t(x1 * x1) + if ix>>int32(63) != 0 && _checkint(tls, iy) == int32(1) { + x2 = -x2 + } + /* Without the barrier some versions of clang hoist the 1/x2 and + thus division by zero exception can be signaled spuriously. */ + if iy>>int32(63) != 0 { + y = Float64FromInt32(1) / x2 + v2 = y + goto _9 + _9: + v1 = v2 + } else { + v1 = x2 + } + return v1 + } + /* Here x and y are non-zero finite. */ + if ix>>int32(63) != 0 { + /* Finite x < 0. */ + yint = _checkint(tls, iy) + if yint == 0 { + return X__math_invalid(tls, x1) + } + if yint == int32(1) { + sign_bias = Uint32FromInt32(Int32FromInt32(0x800) << Int32FromInt32(EXP_TABLE_BITS)) + } + ix = ix & uint64(0x7fffffffffffffff) + topx = topx & uint32(0x7ff) + } + if topy&uint32(0x7ff)-uint32(0x3be) >= Uint32FromInt32(Int32FromInt32(0x43e)-Int32FromInt32(0x3be)) { + /* Note: sign_bias == 0 here because y is not odd. */ + v1 = float64(1) + if ix == *(*Tuint64_t)(unsafe.Pointer(&v1)) { + return float64(1) + } + if topy&uint32(0x7ff) < uint32(0x3be) { + /* |y| < 2^-65, x^y ~= 1 + y*log(x). */ + if int32(WANT_ROUNDING) != 0 { + v2 = float64(1) + if ix > *(*Tuint64_t)(unsafe.Pointer(&v2)) { + v1 = float64(1) + y1 + } else { + v1 = float64(1) - y1 + } + return v1 + } else { + return float64(1) + } + } + v2 = float64(1) + if BoolInt32(ix > *(*Tuint64_t)(unsafe.Pointer(&v2))) == BoolInt32(topy < uint32(0x800)) { + v1 = X__math_oflow(tls, uint32(0)) + } else { + v1 = X__math_uflow(tls, uint32(0)) + } + return v1 + } + if topx == uint32(0) { + /* Normalize subnormal x so exponent becomes negative. */ + v1 = float64(x1 * float64(4.503599627370496e+15)) + ix = *(*Tuint64_t)(unsafe.Pointer(&v1)) + ix = ix & uint64(0x7fffffffffffffff) + ix = uint64(ix - Uint64FromUint64(52)<> (Int32FromInt32(23) - Int32FromInt32(POWF_LOG2_TABLE_BITS)) % Uint32FromInt32(Int32FromInt32(1)<> (Int32FromInt32(23) - Int32FromInt32(POWF_SCALE_BITS)) /* arithmetic shift */ + invc = (**(**struct { + Finvc float64 + Flogc float64 + })(__ccgo_up(uintptr(unsafe.Pointer(&X__powf_log2_data)) + uintptr(i)*16))).Finvc + logc = (**(**struct { + Finvc float64 + Flogc float64 + })(__ccgo_up(uintptr(unsafe.Pointer(&X__powf_log2_data)) + uintptr(i)*16))).Flogc + z = float64(*(*float32)(unsafe.Pointer(&iz))) + /* log2(x) = log1p(z/c-1)/ln2 + log2(c) + k */ + r = Tdouble_t(z*invc) - Float64FromInt32(1) + y0 = logc + float64(k) + /* Pipelined polynomial evaluation to approximate log1p(r)/ln2. */ + r2 = Tdouble_t(r * r) + y = float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__powf_log2_data)) + 256))*r) + **(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__powf_log2_data)) + 256 + 1*8)) + p = float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__powf_log2_data)) + 256 + 2*8))*r) + **(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__powf_log2_data)) + 256 + 3*8)) + r4 = Tdouble_t(r2 * r2) + q = float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__powf_log2_data)) + 256 + 4*8))*r) + y0 + q = Tdouble_t(p*r2) + q + y = Tdouble_t(y*r4) + q + return y +} + +// C documentation +// +// /* The output of log2 and thus the input of exp2 is either scaled by N +// (in case of fast toint intrinsics) or not. The unscaled xd must be +// in [-1021,1023], sign_bias sets the sign of the result. */ +func _exp2_inline(tls *TLS, xd Tdouble_t, sign_bias Tuint32_t) (r1 float32) { + var kd, r, r2, s, y2, z Tdouble_t + var ki, ski, t Tuint64_t + var y, v4 float32 + var y1, v1 float64 + _, _, _, _, _, _, _, _, _, _, _, _, _ = kd, ki, r, r2, s, ski, t, y, y1, y2, z, v1, v4 + /* x = k/N + r with r in [-1/(2N), 1/(2N)] */ + y1 = xd + X__exp2f_data.Fshift_scaled + v1 = y1 + goto _2 +_2: + kd = v1 + v1 = kd + ki = *(*Tuint64_t)(unsafe.Pointer(&v1)) + kd = kd - X__exp2f_data.Fshift_scaled /* k/N */ + r = xd - kd + /* exp2(x) = 2^(k/N) * 2^r ~= s * (C0*r^3 + C1*r^2 + C2*r + 1) */ + t = **(**Tuint64_t)(__ccgo_up(uintptr(unsafe.Pointer(&X__exp2f_data)) + uintptr(ki%Uint64FromInt32(Int32FromInt32(1)<> int32(23) & uint32(0xff)) + if e < int32(0x7f) { + return 0 + } + if e > Int32FromInt32(0x7f)+Int32FromInt32(23) { + return int32(2) + } + if iy&Uint32FromInt32(Int32FromInt32(1)<<(Int32FromInt32(0x7f)+Int32FromInt32(23)-e)-Int32FromInt32(1)) != 0 { + return 0 + } + if iy&Uint32FromInt32(Int32FromInt32(1)<<(Int32FromInt32(0x7f)+Int32FromInt32(23)-e)) != 0 { + return int32(1) + } + return int32(2) +} + +func _zeroinfnan1(tls *TLS, ix Tuint32_t) (r int32) { + return BoolInt32(uint32(2)*ix-uint32(1) >= Uint32FromUint32(2)*Uint32FromInt32(0x7f800000)-Uint32FromInt32(1)) +} + +func Xpowf(tls *TLS, x1 float32, y1 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x1=%v y1=%v, (%v:)", tls, x1, y1, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ix, iy, sign_bias Tuint32_t + var logx, ylogx Tdouble_t + var x2 Tfloat_t + var y, v1, v2 float32 + var yint int32 + var v5, v6 float64 + _, _, _, _, _, _, _, _, _, _, _, _ = ix, iy, logx, sign_bias, x2, y, yint, ylogx, v1, v2, v5, v6 + sign_bias = uint32(0) + ix = *(*Tuint32_t)(unsafe.Pointer(&x1)) + iy = *(*Tuint32_t)(unsafe.Pointer(&y1)) + if ix-uint32(0x00800000) >= Uint32FromInt32(Int32FromInt32(0x7f800000)-Int32FromInt32(0x00800000)) || _zeroinfnan1(tls, iy) != 0 { + /* Either (x < 0x1p-126 or inf or nan) or (y is 0 or inf or nan). */ + if _zeroinfnan1(tls, iy) != 0 { + if uint32(2)*iy == uint32(0) { + return Float32FromFloat32(1) + } + if ix == uint32(0x3f800000) { + return Float32FromFloat32(1) + } + if uint32(2)*ix > Uint32FromUint32(2)*Uint32FromInt32(0x7f800000) || uint32(2)*iy > Uint32FromUint32(2)*Uint32FromInt32(0x7f800000) { + return x1 + y1 + } + if uint32(2)*ix == Uint32FromInt32(Int32FromInt32(2)*Int32FromInt32(0x3f800000)) { + return Float32FromFloat32(1) + } + if BoolInt32(uint32(2)*ix < Uint32FromInt32(Int32FromInt32(2)*Int32FromInt32(0x3f800000))) == BoolInt32(!(iy&Uint32FromUint32(0x80000000) != 0)) { + return Float32FromFloat32(0) + } /* |x|<1 && y==inf or |x|>1 && y==-inf. */ + return float32(y1 * y1) + } + if _zeroinfnan1(tls, ix) != 0 { + x2 = Tfloat_t(x1 * x1) + if ix&uint32(0x80000000) != 0 && _checkint1(tls, iy) == int32(1) { + x2 = -x2 + } + /* Without the barrier some versions of clang hoist the 1/x2 and + thus division by zero exception can be signaled spuriously. */ + if iy&uint32(0x80000000) != 0 { + y = Float32FromInt32(1) / x2 + v2 = y + goto _3 + _3: + v1 = v2 + } else { + v1 = x2 + } + return v1 + } + /* x and y are non-zero finite. */ + if ix&uint32(0x80000000) != 0 { + /* Finite x < 0. */ + yint = _checkint1(tls, iy) + if yint == 0 { + return X__math_invalidf(tls, x1) + } + if yint == int32(1) { + sign_bias = Uint32FromInt32(Int32FromInt32(1) << (Int32FromInt32(EXP2F_TABLE_BITS) + Int32FromInt32(11))) + } + ix = ix & uint32(0x7fffffff) + } + if ix < uint32(0x00800000) { + /* Normalize subnormal x so exponent becomes negative. */ + v1 = float32(x1 * Float32FromFloat32(8.388608e+06)) + ix = *(*Tuint32_t)(unsafe.Pointer(&v1)) + ix = ix & uint32(0x7fffffff) + ix = ix - Uint32FromInt32(Int32FromInt32(23)<>int32(47)&uint64(0xffff) >= *(*Tuint64_t)(unsafe.Pointer(&v6))>>int32(47) { + /* |y*log(x)| >= 126. */ + if ylogx > Tdouble_t(float64(127.99999995700433)*float64(Int32FromInt32(1)< %v", r) }() + } + return Xpow(tls, x, y) +} + +func Xremainder(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* q at bp+0 */ int32 + return Xremquo(tls, x, y, bp) +} + +func Xdrem(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xremainder(tls, x, y) +} + +func Xremainderf(tls *TLS, x float32, y float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* q at bp+0 */ int32 + return Xremquof(tls, x, y, bp) +} + +func Xdremf(tls *TLS, x float32, y float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xremainderf(tls, x, y) +} + +func Xremainderl(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xremainder(tls, x, y) +} + +func Xremquo(tls *TLS, x float64, y float64, quo uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v quo=%v, (%v:)", tls, x, y, quo, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var ex, ey, sx, sy, v10 int32 + var i, uxi Tuint64_t + var q Tuint32_t + var v1 uint64 + var v11 float64 + var v3 bool + var v6 uintptr + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + var _ /* ux at bp+8 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + var _ /* uy at bp+16 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _, _, _, _, _, _ = ex, ey, i, q, sx, sy, uxi, v1, v10, v11, v3, v6 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp + 8)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp + 8)) = x + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp + 16)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp + 16)) = y + ex = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp + 8)) >> int32(52) & uint64(0x7ff)) + ey = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp + 16)) >> int32(52) & uint64(0x7ff)) + sx = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp + 8)) >> int32(63)) + sy = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp + 16)) >> int32(63)) + uxi = *(*Tuint64_t)(unsafe.Pointer(bp + 8)) + **(**int32)(__ccgo_up(quo)) = 0 + if v3 = *(*Tuint64_t)(unsafe.Pointer(bp + 16))<>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>int32(63) == uint64(0)) { + break + } + goto _4 + _4: + ; + ex = ex - 1 + i = i << uint64(1) + } + uxi = uxi << Uint64FromInt32(-ex+int32(1)) + } else { + uxi = uint64(uxi & (-Uint64FromUint64(1) >> Int32FromInt32(12))) + uxi = uint64(uxi | Uint64FromUint64(1)<>int32(63) == uint64(0)) { + break + } + goto _5 + _5: + ; + ey = ey - 1 + i = i << uint64(1) + } + *(*Tuint64_t)(unsafe.Pointer(bp + 16)) <<= Uint64FromInt32(-ey + int32(1)) + } else { + v6 = bp + 16 + *(*Tuint64_t)(unsafe.Pointer(v6)) = Tuint64_t(*(*Tuint64_t)(unsafe.Pointer(v6)) & (-Uint64FromUint64(1) >> Int32FromInt32(12))) + v6 = bp + 16 + *(*Tuint64_t)(unsafe.Pointer(v6)) = Tuint64_t(*(*Tuint64_t)(unsafe.Pointer(v6)) | Uint64FromUint64(1)< ey) { + break + } + i = uxi - *(*Tuint64_t)(unsafe.Pointer(bp + 16)) + if i>>int32(63) == uint64(0) { + uxi = i + q = q + 1 + } + uxi = uxi << uint64(1) + q = q << uint32(1) + goto _8 + _8: + ; + ex = ex - 1 + } + i = uxi - *(*Tuint64_t)(unsafe.Pointer(bp + 16)) + if i>>int32(63) == uint64(0) { + uxi = i + q = q + 1 + } + if uxi == uint64(0) { + ex = -int32(60) + } else { + for { + if !(uxi>>int32(52) == uint64(0)) { + break + } + goto _9 + _9: + ; + uxi = uxi << uint64(1) + ex = ex - 1 + } + } + goto end +end: + ; + /* scale result and decide between |x| and |x|-|y| */ + if ex > 0 { + uxi = uint64(uxi - Uint64FromUint64(1)<> Uint64FromInt32(-ex+int32(1)) + } + *(*Tuint64_t)(unsafe.Pointer(bp + 8)) = uxi + x = *(*float64)(unsafe.Pointer(bp + 8)) + if sy != 0 { + y = -y + } + if ex == ey || ex+int32(1) == ey && (float64(Float64FromInt32(2)*x) > y || float64(Float64FromInt32(2)*x) == y && q%uint32(2) != 0) { + x = x - y + q = q + 1 + } + q = q & uint32(0x7fffffff) + if sx^sy != 0 { + v10 = -Int32FromUint32(q) + } else { + v10 = Int32FromUint32(q) + } + **(**int32)(__ccgo_up(quo)) = v10 + if sx != 0 { + v11 = -x + } else { + v11 = x + } + return v11 +} + +func Xremquof(tls *TLS, x float32, y float32, quo uintptr) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v quo=%v, (%v:)", tls, x, y, quo, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ex, ey, sx, sy, v8 int32 + var i, q, uxi Tuint32_t + var v1 uint32 + var v3 bool + var v9 float32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + var _ /* ux at bp+4 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + var _ /* uy at bp+8 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _, _, _, _, _, _ = ex, ey, i, q, sx, sy, uxi, v1, v3, v8, v9 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp + 4)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp + 4)) = x + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp + 8)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp + 8)) = y + ex = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp + 4)) >> int32(23) & uint32(0xff)) + ey = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp + 8)) >> int32(23) & uint32(0xff)) + sx = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp + 4)) >> int32(31)) + sy = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp + 8)) >> int32(31)) + uxi = *(*Tuint32_t)(unsafe.Pointer(bp + 4)) + **(**int32)(__ccgo_up(quo)) = 0 + if v3 = *(*Tuint32_t)(unsafe.Pointer(bp + 8))< uint32(0x7f800000)) != 0 || ex == int32(0xff) { + return float32(x*y) / float32(x*y) + } + if *(*Tuint32_t)(unsafe.Pointer(bp + 4))<>int32(31) == uint32(0)) { + break + } + goto _4 + _4: + ; + ex = ex - 1 + i = i << uint32(1) + } + uxi = uxi << Uint32FromInt32(-ex+int32(1)) + } else { + uxi = uxi & (-Uint32FromUint32(1) >> Int32FromInt32(9)) + uxi = uxi | Uint32FromUint32(1)<>int32(31) == uint32(0)) { + break + } + goto _5 + _5: + ; + ey = ey - 1 + i = i << uint32(1) + } + *(*Tuint32_t)(unsafe.Pointer(bp + 8)) <<= Uint32FromInt32(-ey + int32(1)) + } else { + *(*Tuint32_t)(unsafe.Pointer(bp + 8)) &= -Uint32FromUint32(1) >> Int32FromInt32(9) + *(*Tuint32_t)(unsafe.Pointer(bp + 8)) |= Uint32FromUint32(1) << Int32FromInt32(23) + } + q = uint32(0) + if ex < ey { + if ex+int32(1) == ey { + goto end + } + return x + } + /* x mod y */ + for { + if !(ex > ey) { + break + } + i = uxi - *(*Tuint32_t)(unsafe.Pointer(bp + 8)) + if i>>int32(31) == uint32(0) { + uxi = i + q = q + 1 + } + uxi = uxi << uint32(1) + q = q << uint32(1) + goto _6 + _6: + ; + ex = ex - 1 + } + i = uxi - *(*Tuint32_t)(unsafe.Pointer(bp + 8)) + if i>>int32(31) == uint32(0) { + uxi = i + q = q + 1 + } + if uxi == uint32(0) { + ex = -int32(30) + } else { + for { + if !(uxi>>int32(23) == uint32(0)) { + break + } + goto _7 + _7: + ; + uxi = uxi << uint32(1) + ex = ex - 1 + } + } + goto end +end: + ; + /* scale result and decide between |x| and |x|-|y| */ + if ex > 0 { + uxi = uxi - Uint32FromUint32(1)<> Uint32FromInt32(-ex+int32(1)) + } + *(*Tuint32_t)(unsafe.Pointer(bp + 4)) = uxi + x = *(*float32)(unsafe.Pointer(bp + 4)) + if sy != 0 { + y = -y + } + if ex == ey || ex+int32(1) == ey && (float32(Float32FromInt32(2)*x) > y || float32(Float32FromInt32(2)*x) == y && q%uint32(2) != 0) { + x = x - y + q = q + 1 + } + q = q & uint32(0x7fffffff) + if sx^sy != 0 { + v8 = -Int32FromUint32(q) + } else { + v8 = Int32FromUint32(q) + } + **(**int32)(__ccgo_up(quo)) = v8 + if sx != 0 { + v9 = -x + } else { + v9 = x + } + return v9 +} + +func Xremquol(tls *TLS, x float64, y float64, quo uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v quo=%v, (%v:)", tls, x, y, quo, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xremquo(tls, x, y, quo) +} + +const DBL_EPSILON9 = 2.220446049250313e-16 + +var _toint4 = Float64FromInt32(1) / Float64FromFloat64(2.220446049250313e-16) + +func Xrint(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e, s int32 + var y Tdouble_t + var v1 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _ = e, s, y, v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + e = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + s = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(63)) + if e >= Int32FromInt32(0x3ff)+Int32FromInt32(52) { + return x + } + if s != 0 { + y = x - _toint4 + _toint4 + } else { + y = x + _toint4 - _toint4 + } + if y == Float64FromInt32(0) { + if s != 0 { + v1 = -Float64FromFloat64(0) + } else { + v1 = Float64FromInt32(0) + } + return v1 + } + return y +} + +const DBL_EPSILON10 = 0 +const FLT_EPSILON1 = 1.1920928955078125e-07 + +var _toint5 = Float32FromInt32(1) / Float32FromFloat32(1.1920928955078125e-07) + +func Xrintf(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e, s int32 + var y Tfloat_t + var v1 float32 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _ = e, s, y, v1 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + e = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(23) & uint32(0xff)) + s = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(31)) + if e >= Int32FromInt32(0x7f)+Int32FromInt32(23) { + return x + } + if s != 0 { + y = x - _toint5 + _toint5 + } else { + y = x + _toint5 - _toint5 + } + if y == Float32FromInt32(0) { + if s != 0 { + v1 = -Float32FromFloat32(0) + } else { + v1 = Float32FromFloat32(0) + } + return v1 + } + return y +} + +const FLT_EPSILON2 = 0 + +func Xrintl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xrint(tls, x) +} + +const DBL_EPSILON11 = 2.220446049250313e-16 + +var _toint6 = Float64FromInt32(1) / Float64FromFloat64(2.220446049250313e-16) + +func Xround(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e int32 + var y float32 + var y1, y2 float64 + var y3 Tdouble_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _ = e, y, y1, y2, y3 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + e = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + if e >= Int32FromInt32(0x3ff)+Int32FromInt32(52) { + return x3 + } + if *(*Tuint64_t)(unsafe.Pointer(bp))>>int32(63) != 0 { + x3 = -x3 + } + if e < Int32FromInt32(0x3ff)-Int32FromInt32(1) { + /* raise inexact if x!=0 */ + if uint64(8) == uint64(4) { + y = float32(x3 + _toint6) + } else { + if uint64(8) == uint64(8) { + y1 = x3 + _toint6 + } else { + y2 = float64(x3 + _toint6) + } + } + return float64(Float64FromInt32(0) * *(*float64)(unsafe.Pointer(bp))) + } + y3 = x3 + _toint6 - _toint6 - x3 + if y3 > float64(0.5) { + y3 = y3 + x3 - Float64FromInt32(1) + } else { + if y3 <= -Float64FromFloat64(0.5) { + y3 = y3 + x3 + Float64FromInt32(1) + } else { + y3 = y3 + x3 + } + } + if *(*Tuint64_t)(unsafe.Pointer(bp))>>int32(63) != 0 { + y3 = -y3 + } + return y3 +} + +const DBL_EPSILON12 = 0 +const FLT_EPSILON3 = 1.1920928955078125e-07 + +var _toint7 = Float32FromInt32(1) / Float32FromFloat32(1.1920928955078125e-07) + +func Xroundf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e int32 + var y float32 + var y1, y2 float64 + var y3 Tfloat_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _ = e, y, y1, y2, y3 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + e = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(23) & uint32(0xff)) + if e >= Int32FromInt32(0x7f)+Int32FromInt32(23) { + return x3 + } + if *(*Tuint32_t)(unsafe.Pointer(bp))>>int32(31) != 0 { + x3 = -x3 + } + if e < Int32FromInt32(0x7f)-Int32FromInt32(1) { + if uint64(4) == uint64(4) { + y = x3 + _toint7 + } else { + if uint64(4) == uint64(8) { + y1 = float64(x3 + _toint7) + } else { + y2 = float64(x3 + _toint7) + } + } + return float32(Float32FromInt32(0) * *(*float32)(unsafe.Pointer(bp))) + } + y3 = x3 + _toint7 - _toint7 - x3 + if y3 > Float32FromFloat32(0.5) { + y3 = y3 + x3 - Float32FromInt32(1) + } else { + if y3 <= -Float32FromFloat32(0.5) { + y3 = y3 + x3 + Float32FromInt32(1) + } else { + y3 = y3 + x3 + } + } + if *(*Tuint32_t)(unsafe.Pointer(bp))>>int32(31) != 0 { + y3 = -y3 + } + return y3 +} + +const FLT_EPSILON4 = 0 + +func Xroundl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xround(tls, x) +} + +func Xscalb(tls *TLS, x float64, fn float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v fn=%v, (%v:)", tls, x, fn, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1, v3 uint64 + var v5 bool + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _, _, _ = v1, v3, v5 + *(*float64)(unsafe.Pointer(bp)) = x + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + ; + if v5 = BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) < Uint64FromUint64(0x7ff)< float64(0) { + return float64(x * fn) + } else { + return x / -fn + } + } + if Xrint(tls, fn) != fn { + return (fn - fn) / (fn - fn) + } + if fn > float64(65000) { + return Xscalbn(tls, x, int32(65000)) + } + if -fn > float64(65000) { + return Xscalbn(tls, x, -int32(65000)) + } + return Xscalbn(tls, x, int32(fn)) +} + +func Xscalbf(tls *TLS, x float32, fn float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v fn=%v, (%v:)", tls, x, fn, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1, v3 uint32 + var v5 bool + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _, _, _ = v1, v3, v5 + *(*float32)(unsafe.Pointer(bp)) = x + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + ; + if v5 = BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0; !v5 { + *(*float32)(unsafe.Pointer(bp)) = fn + v3 = *(*uint32)(unsafe.Pointer(bp)) + goto _4 + _4: + } + if v5 || BoolInt32(v3&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return float32(x * fn) + } + *(*float32)(unsafe.Pointer(bp)) = fn + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _7 +_7: + if !(BoolInt32(v1&Uint32FromInt32(0x7fffffff) < Uint32FromInt32(0x7f800000)) != 0) { + if fn > Float32FromFloat32(0) { + return float32(x * fn) + } else { + return x / -fn + } + } + if Xrintf(tls, fn) != fn { + return (fn - fn) / (fn - fn) + } + if fn > Float32FromFloat32(65000) { + return Xscalbnf(tls, x, int32(65000)) + } + if -fn > Float32FromFloat32(65000) { + return Xscalbnf(tls, x, -int32(65000)) + } + return Xscalbnf(tls, x, int32(fn)) +} + +func Xscalbln(tls *TLS, x float64, n int64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + if n > int64(INT_MAX) { + n = int64(INT_MAX) + } else { + if n < int64(-Int32FromInt32(1)-Int32FromInt32(0x7fffffff)) { + n = int64(-Int32FromInt32(1) - Int32FromInt32(0x7fffffff)) + } + } + return Xscalbn(tls, x, int32(n)) +} + +func Xscalblnf(tls *TLS, x float32, n int64) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + if n > int64(INT_MAX) { + n = int64(INT_MAX) + } else { + if n < int64(-Int32FromInt32(1)-Int32FromInt32(0x7fffffff)) { + n = int64(-Int32FromInt32(1) - Int32FromInt32(0x7fffffff)) + } + } + return Xscalbnf(tls, x, int32(n)) +} + +func Xscalblnl(tls *TLS, x float64, n int64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xscalbln(tls, x, n) +} + +func Xscalbn(tls *TLS, x float64, n int32) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var y Tdouble_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _ = y + y = x + if n > int32(1023) { + y = y * float64(8.98846567431158e+307) + n = n - int32(1023) + if n > int32(1023) { + y = y * float64(8.98846567431158e+307) + n = n - int32(1023) + if n > int32(1023) { + n = int32(1023) + } + } + } else { + if n < -int32(1022) { + /* make sure final n < -53 to avoid double + rounding in the subnormal range */ + y = y * Tdouble_t(Float64FromFloat64(2.2250738585072014e-308)*Float64FromFloat64(9.007199254740992e+15)) + n = n + (Int32FromInt32(1022) - Int32FromInt32(53)) + if n < -int32(1022) { + y = y * Tdouble_t(Float64FromFloat64(2.2250738585072014e-308)*Float64FromFloat64(9.007199254740992e+15)) + n = n + (Int32FromInt32(1022) - Int32FromInt32(53)) + if n < -int32(1022) { + n = -int32(1022) + } + } + } + } + *(*Tuint64_t)(unsafe.Pointer(bp)) = Uint64FromInt32(Int32FromInt32(0x3ff)+n) << int32(52) + x = float64(y * *(*float64)(unsafe.Pointer(bp))) + return x +} + +func Xscalbnf(tls *TLS, x float32, n int32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var y Tfloat_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _ = y + y = x + if n > int32(127) { + y = y * Float32FromFloat32(1.7014118346046923e+38) + n = n - int32(127) + if n > int32(127) { + y = y * Float32FromFloat32(1.7014118346046923e+38) + n = n - int32(127) + if n > int32(127) { + n = int32(127) + } + } + } else { + if n < -int32(126) { + y = y * Tfloat_t(Float32FromFloat32(1.1754943508222875e-38)*Float32FromFloat32(1.6777216e+07)) + n = n + (Int32FromInt32(126) - Int32FromInt32(24)) + if n < -int32(126) { + y = y * Tfloat_t(Float32FromFloat32(1.1754943508222875e-38)*Float32FromFloat32(1.6777216e+07)) + n = n + (Int32FromInt32(126) - Int32FromInt32(24)) + if n < -int32(126) { + n = -int32(126) + } + } + } + } + *(*Tuint32_t)(unsafe.Pointer(bp)) = Uint32FromInt32(Int32FromInt32(0x7f)+n) << int32(23) + x = float32(y * *(*float32)(unsafe.Pointer(bp))) + return x +} + +func Xscalbnl(tls *TLS, x float64, n int32) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xscalbn(tls, x, n) +} + +func Xsignificand(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xscalbn(tls, x, -Xilogb(tls, x)) +} + +func Xsignificandf(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xscalbnf(tls, x, -Xilogbf(tls, x)) +} + +func Xsin(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ix Tuint32_t + var n uint32 + var y float32 + var y1, y2, v1 float64 + var _ /* y at bp+0 */ [2]float64 + _, _, _, _, _, _ = ix, n, y, y1, y2, v1 + /* High word of x. */ + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x3)) >> int32(32)) + ix = ix & uint32(0x7fffffff) + /* |x| ~< pi/4 */ + if ix <= uint32(0x3fe921fb) { + if ix < uint32(0x3e500000) { /* |x| < 2**-26 */ + /* raise inexact if x != 0 and underflow if subnormal*/ + if uint64(8) == uint64(4) { + if ix < uint32(0x00100000) { + v1 = x3 / Float64FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } + y = float32(v1) + } else { + if uint64(8) == uint64(8) { + if ix < uint32(0x00100000) { + v1 = x3 / Float64FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } + y1 = v1 + } else { + if ix < uint32(0x00100000) { + v1 = x3 / Float64FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } + y2 = v1 + } + } + return x3 + } + return X__sin(tls, x3, float64(0), 0) + } + /* sin(Inf or NaN) is NaN */ + if ix >= uint32(0x7ff00000) { + return x3 - x3 + } + /* argument reduction needed */ + n = Uint32FromInt32(X__rem_pio2(tls, x3, bp)) + switch n & Uint32FromInt32(3) { + case uint32(0): + return X__sin(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)], int32(1)) + case uint32(1): + return X__cos(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)]) + case uint32(2): + return -X__sin(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)], int32(1)) + default: + return -X__cos(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)]) + } + return r +} + +func Xsincos(tls *TLS, x3 float64, sin uintptr, cos uintptr) { + if __ccgo_strace { + trc("tls=%v x3=%v sin=%v cos=%v, (%v:)", tls, x3, sin, cos, origin(2)) + } + bp := tls.Alloc(16) + defer tls.Free(16) + var c, s, y1, y2, v1 float64 + var ix Tuint32_t + var n uint32 + var y float32 + var _ /* y at bp+0 */ [2]float64 + _, _, _, _, _, _, _, _ = c, ix, n, s, y, y1, y2, v1 + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x3)) >> int32(32)) + ix = ix & uint32(0x7fffffff) + /* |x| ~< pi/4 */ + if ix <= uint32(0x3fe921fb) { + /* if |x| < 2**-27 * sqrt(2) */ + if ix < uint32(0x3e46a09e) { + /* raise inexact if x!=0 and underflow if subnormal */ + if uint64(8) == uint64(4) { + if ix < uint32(0x00100000) { + v1 = x3 / Float64FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } + y = float32(v1) + } else { + if uint64(8) == uint64(8) { + if ix < uint32(0x00100000) { + v1 = x3 / Float64FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } + y1 = v1 + } else { + if ix < uint32(0x00100000) { + v1 = x3 / Float64FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } + y2 = v1 + } + } + **(**float64)(__ccgo_up(sin)) = x3 + **(**float64)(__ccgo_up(cos)) = float64(1) + return + } + **(**float64)(__ccgo_up(sin)) = X__sin(tls, x3, float64(0), 0) + **(**float64)(__ccgo_up(cos)) = X__cos(tls, x3, float64(0)) + return + } + /* sincos(Inf or NaN) is NaN */ + if ix >= uint32(0x7ff00000) { + v1 = x3 - x3 + **(**float64)(__ccgo_up(cos)) = v1 + **(**float64)(__ccgo_up(sin)) = v1 + return + } + /* argument reduction needed */ + n = Uint32FromInt32(X__rem_pio2(tls, x3, bp)) + s = X__sin(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)], int32(1)) + c = X__cos(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)]) + switch n & Uint32FromInt32(3) { + case uint32(0): + **(**float64)(__ccgo_up(sin)) = s + **(**float64)(__ccgo_up(cos)) = c + case uint32(1): + **(**float64)(__ccgo_up(sin)) = c + **(**float64)(__ccgo_up(cos)) = -s + case uint32(2): + **(**float64)(__ccgo_up(sin)) = -s + **(**float64)(__ccgo_up(cos)) = -c + case uint32(3): + fallthrough + default: + **(**float64)(__ccgo_up(sin)) = -c + **(**float64)(__ccgo_up(cos)) = s + break + } +} + +const M_PI_25 = 1.5707963267948966 + +// C documentation +// +// /* Small multiples of pi/2 rounded to double precision. */ + +var _s1pio2 = float64(Float64FromInt32(1) * Float64FromFloat64(1.5707963267948966)) /* 0x3FF921FB, 0x54442D18 */ +var _s2pio2 = float64(Float64FromInt32(2) * Float64FromFloat64(1.5707963267948966)) /* 0x400921FB, 0x54442D18 */ +var _s3pio2 = float64(Float64FromInt32(3) * Float64FromFloat64(1.5707963267948966)) /* 0x4012D97C, 0x7F3321D2 */ +var _s4pio2 = float64(Float64FromInt32(4) * Float64FromFloat64(1.5707963267948966)) /* 0x401921FB, 0x54442D18 */ + +func Xsincosf(tls *TLS, x3 float32, sin uintptr, cos uintptr) { + if __ccgo_strace { + trc("tls=%v x3=%v sin=%v cos=%v, (%v:)", tls, x3, sin, cos, origin(2)) + } + bp := tls.Alloc(16) + defer tls.Free(16) + var c, s Tfloat_t + var ix Tuint32_t + var n, sign uint32 + var y, v1 float32 + var y1, y2, v4 float64 + var _ /* y at bp+0 */ float64 + _, _, _, _, _, _, _, _, _, _ = c, ix, n, s, sign, y, y1, y2, v1, v4 + ix = *(*Tuint32_t)(unsafe.Pointer(&x3)) + sign = ix >> int32(31) + ix = ix & uint32(0x7fffffff) + /* |x| ~<= pi/4 */ + if ix <= uint32(0x3f490fda) { + /* |x| < 2**-12 */ + if ix < uint32(0x39800000) { + /* raise inexact if x!=0 and underflow if subnormal */ + if uint64(4) == uint64(4) { + if ix < uint32(0x00100000) { + v1 = x3 / Float32FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float32FromFloat32(1.329227995784916e+36) + } + y = v1 + } else { + if uint64(4) == uint64(8) { + if ix < uint32(0x00100000) { + v1 = x3 / Float32FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float32FromFloat32(1.329227995784916e+36) + } + y1 = float64(v1) + } else { + if ix < uint32(0x00100000) { + v1 = x3 / Float32FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float32FromFloat32(1.329227995784916e+36) + } + y2 = float64(v1) + } + } + **(**float32)(__ccgo_up(sin)) = x3 + **(**float32)(__ccgo_up(cos)) = Float32FromFloat32(1) + return + } + **(**float32)(__ccgo_up(sin)) = X__sindf(tls, float64(x3)) + **(**float32)(__ccgo_up(cos)) = X__cosdf(tls, float64(x3)) + return + } + /* |x| ~<= 5*pi/4 */ + if ix <= uint32(0x407b53d1) { + if ix <= uint32(0x4016cbe3) { /* |x| ~<= 3pi/4 */ + if sign != 0 { + **(**float32)(__ccgo_up(sin)) = -X__cosdf(tls, float64(x3)+_s1pio2) + **(**float32)(__ccgo_up(cos)) = X__sindf(tls, float64(x3)+_s1pio2) + } else { + **(**float32)(__ccgo_up(sin)) = X__cosdf(tls, _s1pio2-float64(x3)) + **(**float32)(__ccgo_up(cos)) = X__sindf(tls, _s1pio2-float64(x3)) + } + return + } + /* -sin(x+c) is not correct if x+c could be 0: -0 vs +0 */ + if sign != 0 { + v4 = float64(x3) + _s2pio2 + } else { + v4 = float64(x3) - _s2pio2 + } + **(**float32)(__ccgo_up(sin)) = -X__sindf(tls, v4) + if sign != 0 { + v4 = float64(x3) + _s2pio2 + } else { + v4 = float64(x3) - _s2pio2 + } + **(**float32)(__ccgo_up(cos)) = -X__cosdf(tls, v4) + return + } + /* |x| ~<= 9*pi/4 */ + if ix <= uint32(0x40e231d5) { + if ix <= uint32(0x40afeddf) { /* |x| ~<= 7*pi/4 */ + if sign != 0 { + **(**float32)(__ccgo_up(sin)) = X__cosdf(tls, float64(x3)+_s3pio2) + **(**float32)(__ccgo_up(cos)) = -X__sindf(tls, float64(x3)+_s3pio2) + } else { + **(**float32)(__ccgo_up(sin)) = -X__cosdf(tls, float64(x3)-_s3pio2) + **(**float32)(__ccgo_up(cos)) = X__sindf(tls, float64(x3)-_s3pio2) + } + return + } + if sign != 0 { + v4 = float64(x3) + _s4pio2 + } else { + v4 = float64(x3) - _s4pio2 + } + **(**float32)(__ccgo_up(sin)) = X__sindf(tls, v4) + if sign != 0 { + v4 = float64(x3) + _s4pio2 + } else { + v4 = float64(x3) - _s4pio2 + } + **(**float32)(__ccgo_up(cos)) = X__cosdf(tls, v4) + return + } + /* sin(Inf or NaN) is NaN */ + if ix >= uint32(0x7f800000) { + v1 = x3 - x3 + **(**float32)(__ccgo_up(cos)) = v1 + **(**float32)(__ccgo_up(sin)) = v1 + return + } + /* general argument reduction needed */ + n = Uint32FromInt32(X__rem_pio2f(tls, x3, bp)) + s = X__sindf(tls, **(**float64)(__ccgo_up(bp))) + c = X__cosdf(tls, **(**float64)(__ccgo_up(bp))) + switch n & Uint32FromInt32(3) { + case uint32(0): + **(**float32)(__ccgo_up(sin)) = s + **(**float32)(__ccgo_up(cos)) = c + case uint32(1): + **(**float32)(__ccgo_up(sin)) = c + **(**float32)(__ccgo_up(cos)) = -s + case uint32(2): + **(**float32)(__ccgo_up(sin)) = -s + **(**float32)(__ccgo_up(cos)) = -c + case uint32(3): + fallthrough + default: + **(**float32)(__ccgo_up(sin)) = -c + **(**float32)(__ccgo_up(cos)) = s + break + } +} + +const M_PI_26 = 0 + +func Xsincosl(tls *TLS, x float64, sin uintptr, cos uintptr) { + if __ccgo_strace { + trc("tls=%v x=%v sin=%v cos=%v, (%v:)", tls, x, sin, cos, origin(2)) + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* cosd at bp+8 */ float64 + var _ /* sind at bp+0 */ float64 + Xsincos(tls, x, bp, bp+8) + **(**float64)(__ccgo_up(sin)) = float64(**(**float64)(__ccgo_up(bp))) + **(**float64)(__ccgo_up(cos)) = float64(**(**float64)(__ccgo_up(bp + 8))) +} + +const M_PI_27 = 1.5707963267948966 + +// C documentation +// +// /* Small multiples of pi/2 rounded to double precision. */ + +var _s1pio21 = float64(Float64FromInt32(1) * Float64FromFloat64(1.5707963267948966)) /* 0x3FF921FB, 0x54442D18 */ +var _s2pio21 = float64(Float64FromInt32(2) * Float64FromFloat64(1.5707963267948966)) /* 0x400921FB, 0x54442D18 */ +var _s3pio21 = float64(Float64FromInt32(3) * Float64FromFloat64(1.5707963267948966)) /* 0x4012D97C, 0x7F3321D2 */ +var _s4pio21 = float64(Float64FromInt32(4) * Float64FromFloat64(1.5707963267948966)) /* 0x401921FB, 0x54442D18 */ + +func Xsinf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ix Tuint32_t + var n, sign int32 + var y, v1 float32 + var y1, y2, v4 float64 + var _ /* y at bp+0 */ float64 + _, _, _, _, _, _, _, _ = ix, n, sign, y, y1, y2, v1, v4 + ix = *(*Tuint32_t)(unsafe.Pointer(&x3)) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix <= uint32(0x3f490fda) { /* |x| ~<= pi/4 */ + if ix < uint32(0x39800000) { /* |x| < 2**-12 */ + /* raise inexact if x!=0 and underflow if subnormal */ + if uint64(4) == uint64(4) { + if ix < uint32(0x00800000) { + v1 = x3 / Float32FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float32FromFloat32(1.329227995784916e+36) + } + y = v1 + } else { + if uint64(4) == uint64(8) { + if ix < uint32(0x00800000) { + v1 = x3 / Float32FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float32FromFloat32(1.329227995784916e+36) + } + y1 = float64(v1) + } else { + if ix < uint32(0x00800000) { + v1 = x3 / Float32FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float32FromFloat32(1.329227995784916e+36) + } + y2 = float64(v1) + } + } + return x3 + } + return X__sindf(tls, float64(x3)) + } + if ix <= uint32(0x407b53d1) { /* |x| ~<= 5*pi/4 */ + if ix <= uint32(0x4016cbe3) { /* |x| ~<= 3pi/4 */ + if sign != 0 { + return -X__cosdf(tls, float64(x3)+_s1pio21) + } else { + return X__cosdf(tls, float64(x3)-_s1pio21) + } + } + if sign != 0 { + v4 = -(float64(x3) + _s2pio21) + } else { + v4 = -(float64(x3) - _s2pio21) + } + return X__sindf(tls, v4) + } + if ix <= uint32(0x40e231d5) { /* |x| ~<= 9*pi/4 */ + if ix <= uint32(0x40afeddf) { /* |x| ~<= 7*pi/4 */ + if sign != 0 { + return X__cosdf(tls, float64(x3)+_s3pio21) + } else { + return -X__cosdf(tls, float64(x3)-_s3pio21) + } + } + if sign != 0 { + v4 = float64(x3) + _s4pio21 + } else { + v4 = float64(x3) - _s4pio21 + } + return X__sindf(tls, v4) + } + /* sin(Inf or NaN) is NaN */ + if ix >= uint32(0x7f800000) { + return x3 - x3 + } + /* general argument reduction needed */ + n = X__rem_pio2f(tls, x3, bp) + switch n & Int32FromInt32(3) { + case 0: + return X__sindf(tls, **(**float64)(__ccgo_up(bp))) + case int32(1): + return X__cosdf(tls, **(**float64)(__ccgo_up(bp))) + case int32(2): + return X__sindf(tls, -**(**float64)(__ccgo_up(bp))) + default: + return -X__cosdf(tls, **(**float64)(__ccgo_up(bp))) + } + return r +} + +const M_PI_28 = 0 + +// C documentation +// +// /* sinh(x) = (exp(x) - 1/exp(x))/2 +// * = (exp(x)-1 + (exp(x)-1)/exp(x))/2 +// * = x + x^3/6 + o(x^5) +// */ +func Xsinh(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var absx, h, t float64 + var w Tuint32_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _ = absx, h, t, w + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + h = float64(0.5) + if *(*Tuint64_t)(unsafe.Pointer(bp))>>int32(63) != 0 { + h = -h + } + /* |x| */ + *(*Tuint64_t)(unsafe.Pointer(bp)) &= Uint64FromInt32(-Int32FromInt32(1)) / Uint64FromInt32(2) + absx = *(*float64)(unsafe.Pointer(bp)) + w = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32)) + /* |x| < log(DBL_MAX) */ + if w < uint32(0x40862e42) { + t = Xexpm1(tls, absx) + if w < uint32(0x3ff00000) { + if w < Uint32FromInt32(Int32FromInt32(0x3ff00000)-Int32FromInt32(26)<log(0x1p26)+eps could be just h*exp(x) */ + return float64(h * (t + t/(t+Float64FromInt32(1)))) + } + /* |x| > log(DBL_MAX) or nan */ + /* note: the result is stored to handle overflow */ + t = X__expo2(tls, absx, float64(Float64FromInt32(2)*h)) + return t +} + +func Xsinhf(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var absx, h, t float32 + var w Tuint32_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _ = absx, h, t, w + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + h = float32(0.5) + if *(*Tuint32_t)(unsafe.Pointer(bp))>>int32(31) != 0 { + h = -h + } + /* |x| */ + *(*Tuint32_t)(unsafe.Pointer(bp)) &= uint32(0x7fffffff) + absx = *(*float32)(unsafe.Pointer(bp)) + w = *(*Tuint32_t)(unsafe.Pointer(bp)) + /* |x| < log(FLT_MAX) */ + if w < uint32(0x42b17217) { + t = Xexpm1f(tls, absx) + if w < uint32(0x3f800000) { + if w < Uint32FromInt32(Int32FromInt32(0x3f800000)-Int32FromInt32(12)< logf(FLT_MAX) or nan */ + t = X__expo2f(tls, absx, float32(Float32FromInt32(2)*h)) + return t +} + +func Xsinhl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xsinh(tls, x) +} + +func Xsinl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xsin(tls, x) +} + +const FENV_SUPPORT = 1 + +// C documentation +// +// /* returns a*b*2^-32 - e, with error 0 <= e < 1. */ +func _mul32(tls *TLS, a Tuint32_t, b Tuint32_t) (r Tuint32_t) { + return uint32(uint64(a) * uint64(b) >> int32(32)) +} + +// C documentation +// +// /* returns a*b*2^-64 - e, with error 0 <= e < 3. */ +func _mul64(tls *TLS, a Tuint64_t, b Tuint64_t) (r Tuint64_t) { + var ahi, alo, bhi, blo Tuint64_t + _, _, _, _ = ahi, alo, bhi, blo + ahi = a >> int32(32) + alo = a & uint64(0xffffffff) + bhi = b >> int32(32) + blo = b & uint64(0xffffffff) + return ahi*bhi + ahi*blo>>int32(32) + alo*bhi>>int32(32) +} + +func Xsqrt(tls *TLS, x1 float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x1=%v, (%v:)", tls, x1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var d, d0, d1, d2, i, ix, m, r, s, tiny, top, u Tuint64_t + var even int32 + var t, y, y1, v1 float64 + var v2 int64 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = d, d0, d1, d2, even, i, ix, m, r, s, t, tiny, top, u, y, y1, v1, v2 + /* special case handling. */ + ix = *(*Tuint64_t)(unsafe.Pointer(&x1)) + top = ix >> int32(52) + if top-uint64(0x001) >= Uint64FromInt32(Int32FromInt32(0x7ff)-Int32FromInt32(0x001)) { + /* x < 0x1p-1022 or inf or nan. */ + if ix*uint64(2) == uint64(0) { + return x1 + } + if ix == uint64(0x7ff0000000000000) { + return x1 + } + if ix > uint64(0x7ff0000000000000) { + return X__math_invalid(tls, x1) + } + /* x is subnormal, normalize it. */ + v1 = float64(x1 * float64(4.503599627370496e+15)) + ix = *(*Tuint64_t)(unsafe.Pointer(&v1)) + top = ix >> int32(52) + top = top - uint64(52) + } + /* argument reduction: + x = 4^e m; with integer e, and m in [1, 4) + m: fixed point representation [2.62] + 2^e is the exponent part of the result. */ + even = Int32FromUint64(top & uint64(1)) + m = ix<> uint64(1) + } + top = (top + uint64(0x3ff)) >> int32(1) + i = ix >> Int32FromInt32(46) % uint64(128) + r = uint64(uint32(X__rsqrt_tab[i]) << int32(16)) + /* |r sqrt(m) - 1| < 0x1.fdp-9 */ + s = uint64(_mul32(tls, uint32(m>>int32(32)), uint32(r))) + /* |s/sqrt(m) - 1| < 0x1.fdp-9 */ + d = uint64(_mul32(tls, uint32(s), uint32(r))) + u = _three - d + r = uint64(_mul32(tls, uint32(r), uint32(u)) << int32(1)) + /* |r sqrt(m) - 1| < 0x1.7bp-16 */ + s = uint64(_mul32(tls, uint32(s), uint32(u)) << int32(1)) + /* |s/sqrt(m) - 1| < 0x1.7bp-16 */ + d = uint64(_mul32(tls, uint32(s), uint32(r))) + u = _three - d + r = uint64(_mul32(tls, uint32(r), uint32(u)) << int32(1)) + /* |r sqrt(m) - 1| < 0x1.3704p-29 (measured worst-case) */ + r = r << int32(32) + s = _mul64(tls, m, r) + d = _mul64(tls, s, r) + u = _three<> int32(9) + d0 = m<>int32(63) + s = s & uint64(0x000fffffffffffff) + s = s | top<=13bit table would be needed (16k). + + a newton-raphson iteration for r is + w = r*r + u = 3 - m*w + r = r*u/2 + can use a goldschmidt iteration for s at the end or + s = m*r + + first goldschmidt iteration is + s = m*r + u = 3 - s*r + r = r*u/2 + s = s*u/2 + next goldschmidt iteration is + u = 3 - s*r + r = r*u/2 + s = s*u/2 + and at the end r is not computed only s. + + they use the same amount of operations and converge at the + same quadratic rate, i.e. if + r1 sqrt(m) - 1 = e, then + r2 sqrt(m) - 1 = -3/2 e^2 - 1/2 e^3 + the advantage of goldschmidt is that the mul for s and r + are independent (computed in parallel), however it is not + "self synchronizing": it only uses the input m in the + first iteration so rounding errors accumulate. at the end + or when switching to larger precision arithmetics rounding + errors dominate so the first iteration should be used. + + the fixed point representations are + m: 2.30 r: 0.32, s: 2.30, d: 2.30, u: 2.30, three: 2.30 + and after switching to 64 bit + m: 2.62 r: 0.64, s: 2.62, d: 2.62, u: 2.62, three: 2.62 */ + +var _three = uint64(0xc0000000) + +func _mul321(tls *TLS, a Tuint32_t, b Tuint32_t) (r Tuint32_t) { + return uint32(uint64(a) * uint64(b) >> int32(32)) +} + +/* see sqrt.c for more detailed comments. */ + +func Xsqrtf(tls *TLS, x1 float32) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x1=%v, (%v:)", tls, x1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var d, d0, d1, d2, even, ey, i, ix, m, m0, m1, r, s, tiny, u Tuint32_t + var t, y, y1, v1 float32 + var v2 uint32 + var v3 int32 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = d, d0, d1, d2, even, ey, i, ix, m, m0, m1, r, s, t, tiny, u, y, y1, v1, v2, v3 + ix = *(*Tuint32_t)(unsafe.Pointer(&x1)) + if ix-uint32(0x00800000) >= Uint32FromInt32(Int32FromInt32(0x7f800000)-Int32FromInt32(0x00800000)) { + /* x < 0x1p-126 or inf or nan. */ + if ix*uint32(2) == uint32(0) { + return x1 + } + if ix == uint32(0x7f800000) { + return x1 + } + if ix > uint32(0x7f800000) { + return X__math_invalidf(tls, x1) + } + /* x is subnormal, normalize it. */ + v1 = float32(x1 * Float32FromFloat32(8.388608e+06)) + ix = *(*Tuint32_t)(unsafe.Pointer(&v1)) + ix = ix - Uint32FromInt32(Int32FromInt32(23)<> int32(1) + ey = ey + Uint32FromInt32(Int32FromInt32(0x3f800000)>>Int32FromInt32(1)) + ey = ey & uint32(0x7f800000) + i = ix >> Int32FromInt32(17) % uint32(128) + r = uint32(X__rsqrt_tab[i]) << int32(16) + /* |r*sqrt(m) - 1| < 0x1p-8 */ + s = _mul321(tls, m, r) + /* |s/sqrt(m) - 1| < 0x1p-8 */ + d = _mul321(tls, s, r) + u = _three1 - d + r = _mul321(tls, r, u) << int32(1) + /* |r*sqrt(m) - 1| < 0x1.7bp-16 */ + s = _mul321(tls, s, u) << int32(1) + /* |s/sqrt(m) - 1| < 0x1.7bp-16 */ + d = _mul321(tls, s, r) + u = _three1 - d + s = _mul321(tls, s, u) + /* -0x1.03p-28 < s/sqrt(m) - 1 < 0x1.fp-31 */ + s = (s - uint32(1)) >> int32(6) + d0 = m<>int32(31) + s = s & uint32(0x007fffff) + s = s | ey + y1 = *(*float32)(unsafe.Pointer(&s)) + if int32(FENV_SUPPORT) != 0 { + if d2 == uint32(0) { + v3 = 0 + } else { + v3 = int32(0x01000000) + } + /* handle rounding and inexact exception. */ + tiny = Uint32FromInt32(v3) + tiny = tiny | (d1^d2)&uint32(0x80000000) + t = *(*float32)(unsafe.Pointer(&tiny)) + y = y1 + t + v1 = y + goto _5 + _5: + y1 = v1 + } + return y1 +} + +/* compute r ~ 1/sqrt(m), s ~ sqrt(m) with 2 goldschmidt iterations. */ +var _three1 = uint32(0xc0000000) + +func Xsqrtl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xsqrt(tls, x) +} + +func Xtan(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ix Tuint32_t + var n uint32 + var y float32 + var y1, y2, v1 float64 + var _ /* y at bp+0 */ [2]float64 + _, _, _, _, _, _ = ix, n, y, y1, y2, v1 + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x3)) >> int32(32)) + ix = ix & uint32(0x7fffffff) + /* |x| ~< pi/4 */ + if ix <= uint32(0x3fe921fb) { + if ix < uint32(0x3e400000) { /* |x| < 2**-27 */ + /* raise inexact if x!=0 and underflow if subnormal */ + if uint64(8) == uint64(4) { + if ix < uint32(0x00100000) { + v1 = x3 / Float64FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } + y = float32(v1) + } else { + if uint64(8) == uint64(8) { + if ix < uint32(0x00100000) { + v1 = x3 / Float64FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } + y1 = v1 + } else { + if ix < uint32(0x00100000) { + v1 = x3 / Float64FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } + y2 = v1 + } + } + return x3 + } + return X__tan(tls, x3, float64(0), 0) + } + /* tan(Inf or NaN) is NaN */ + if ix >= uint32(0x7ff00000) { + return x3 - x3 + } + /* argument reduction */ + n = Uint32FromInt32(X__rem_pio2(tls, x3, bp)) + return X__tan(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)], Int32FromUint32(n&uint32(1))) +} + +const M_PI_29 = 1.5707963267948966 + +// C documentation +// +// /* Small multiples of pi/2 rounded to double precision. */ + +var _t1pio2 = float64(Float64FromInt32(1) * Float64FromFloat64(1.5707963267948966)) /* 0x3FF921FB, 0x54442D18 */ +var _t2pio2 = float64(Float64FromInt32(2) * Float64FromFloat64(1.5707963267948966)) /* 0x400921FB, 0x54442D18 */ +var _t3pio2 = float64(Float64FromInt32(3) * Float64FromFloat64(1.5707963267948966)) /* 0x4012D97C, 0x7F3321D2 */ +var _t4pio2 = float64(Float64FromInt32(4) * Float64FromFloat64(1.5707963267948966)) /* 0x401921FB, 0x54442D18 */ + +func Xtanf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ix Tuint32_t + var n, sign uint32 + var y, v1 float32 + var y1, y2, v4 float64 + var _ /* y at bp+0 */ float64 + _, _, _, _, _, _, _, _ = ix, n, sign, y, y1, y2, v1, v4 + ix = *(*Tuint32_t)(unsafe.Pointer(&x3)) + sign = ix >> int32(31) + ix = ix & uint32(0x7fffffff) + if ix <= uint32(0x3f490fda) { /* |x| ~<= pi/4 */ + if ix < uint32(0x39800000) { /* |x| < 2**-12 */ + /* raise inexact if x!=0 and underflow if subnormal */ + if uint64(4) == uint64(4) { + if ix < uint32(0x00800000) { + v1 = x3 / Float32FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float32FromFloat32(1.329227995784916e+36) + } + y = v1 + } else { + if uint64(4) == uint64(8) { + if ix < uint32(0x00800000) { + v1 = x3 / Float32FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float32FromFloat32(1.329227995784916e+36) + } + y1 = float64(v1) + } else { + if ix < uint32(0x00800000) { + v1 = x3 / Float32FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float32FromFloat32(1.329227995784916e+36) + } + y2 = float64(v1) + } + } + return x3 + } + return X__tandf(tls, float64(x3), 0) + } + if ix <= uint32(0x407b53d1) { /* |x| ~<= 5*pi/4 */ + if ix <= uint32(0x4016cbe3) { /* |x| ~<= 3pi/4 */ + if sign != 0 { + v4 = float64(x3) + _t1pio2 + } else { + v4 = float64(x3) - _t1pio2 + } + return X__tandf(tls, v4, int32(1)) + } else { + if sign != 0 { + v4 = float64(x3) + _t2pio2 + } else { + v4 = float64(x3) - _t2pio2 + } + return X__tandf(tls, v4, 0) + } + } + if ix <= uint32(0x40e231d5) { /* |x| ~<= 9*pi/4 */ + if ix <= uint32(0x40afeddf) { /* |x| ~<= 7*pi/4 */ + if sign != 0 { + v4 = float64(x3) + _t3pio2 + } else { + v4 = float64(x3) - _t3pio2 + } + return X__tandf(tls, v4, int32(1)) + } else { + if sign != 0 { + v4 = float64(x3) + _t4pio2 + } else { + v4 = float64(x3) - _t4pio2 + } + return X__tandf(tls, v4, 0) + } + } + /* tan(Inf or NaN) is NaN */ + if ix >= uint32(0x7f800000) { + return x3 - x3 + } + /* argument reduction */ + n = Uint32FromInt32(X__rem_pio2f(tls, x3, bp)) + return X__tandf(tls, **(**float64)(__ccgo_up(bp)), Int32FromUint32(n&uint32(1))) +} + +const M_PI_210 = 0 + +// C documentation +// +// /* tanh(x) = (exp(x) - exp(-x))/(exp(x) + exp(-x)) +// * = (exp(2*x) - 1)/(exp(2*x) - 1 + 2) +// * = (1 - exp(-2*x))/(exp(-2*x) - 1 + 2) +// */ +func Xtanh(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var sign int32 + var t, v1 Tdouble_t + var w Tuint32_t + var y float32 + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _ = sign, t, w, y, y1, y2, v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + /* x = |x| */ + sign = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(63)) + *(*Tuint64_t)(unsafe.Pointer(bp)) &= Uint64FromInt32(-Int32FromInt32(1)) / Uint64FromInt32(2) + x3 = *(*float64)(unsafe.Pointer(bp)) + w = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32)) + if w > uint32(0x3fe193ea) { + /* |x| > log(3)/2 ~= 0.5493 or nan */ + if w > uint32(0x40340000) { + /* |x| > 20 or nan */ + /* note: this branch avoids raising overflow */ + t = Float64FromInt32(1) - Float64FromInt32(0)/x3 + } else { + t = Xexpm1(tls, float64(Float64FromInt32(2)*x3)) + t = Float64FromInt32(1) - Float64FromInt32(2)/(t+Float64FromInt32(2)) + } + } else { + if w > uint32(0x3fd058ae) { + /* |x| > log(5/3)/2 ~= 0.2554 */ + t = Xexpm1(tls, float64(Float64FromInt32(2)*x3)) + t = t / (t + Float64FromInt32(2)) + } else { + if w >= uint32(0x00100000) { + /* |x| >= 0x1p-1022, up to 2ulp error in [0.1,0.2554] */ + t = Xexpm1(tls, float64(float64(-Int32FromInt32(2))*x3)) + t = -t / (t + Float64FromInt32(2)) + } else { + /* |x| is subnormal */ + /* note: the branch above would not raise underflow in [0x1p-1023,0x1p-1022) */ + if uint64(4) == uint64(4) { + y = float32(x3) + } else { + if uint64(4) == uint64(8) { + y1 = float64(float32(x3)) + } else { + y2 = float64(float32(x3)) + } + } + t = x3 + } + } + } + if sign != 0 { + v1 = -t + } else { + v1 = t + } + return v1 +} + +func Xtanhf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var sign int32 + var t, y, v1 float32 + var w Tuint32_t + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _, _ = sign, t, w, y, y1, y2, v1 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + /* x = |x| */ + sign = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(31)) + *(*Tuint32_t)(unsafe.Pointer(bp)) &= uint32(0x7fffffff) + x3 = *(*float32)(unsafe.Pointer(bp)) + w = *(*Tuint32_t)(unsafe.Pointer(bp)) + if w > uint32(0x3f0c9f54) { + /* |x| > log(3)/2 ~= 0.5493 or nan */ + if w > uint32(0x41200000) { + /* |x| > 10 */ + t = Float32FromInt32(1) + Float32FromInt32(0)/x3 + } else { + t = Xexpm1f(tls, float32(Float32FromInt32(2)*x3)) + t = Float32FromInt32(1) - Float32FromInt32(2)/(t+Float32FromInt32(2)) + } + } else { + if w > uint32(0x3e82c578) { + /* |x| > log(5/3)/2 ~= 0.2554 */ + t = Xexpm1f(tls, float32(Float32FromInt32(2)*x3)) + t = t / (t + Float32FromInt32(2)) + } else { + if w >= uint32(0x00800000) { + /* |x| >= 0x1p-126 */ + t = Xexpm1f(tls, float32(float32(-Int32FromInt32(2))*x3)) + t = -t / (t + Float32FromInt32(2)) + } else { + /* |x| is subnormal */ + if uint64(4) == uint64(4) { + y = float32(x3 * x3) + } else { + if uint64(4) == uint64(8) { + y1 = float64(x3 * x3) + } else { + y2 = float64(x3 * x3) + } + } + t = x3 + } + } + } + if sign != 0 { + v1 = -t + } else { + v1 = t + } + return v1 +} + +func Xtanhl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xtanh(tls, x) +} + +func Xtanl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xtan(tls, x) +} + +const N10 = 12 + +var _pi4 = float64(3.141592653589793) + +// C documentation +// +// /* sin(pi x) with x > 0x1p-100, if sin(pi*x)==0 the sign is arbitrary */ +func _sinpi(tls *TLS, x float64) (r float64) { + var n int32 + _ = n + /* argument reduction: x = |x| mod 2 */ + /* spurious inexact when x is odd int */ + x = float64(x * float64(0.5)) + x = float64(Float64FromInt32(2) * (x - Xfloor(tls, x))) + /* reduce x into [-.25,.25] */ + n = int32(Float64FromInt32(4) * x) + n = (n + int32(1)) / int32(2) + x = x - float64(float64(n)*float64(0.5)) + x = x * _pi4 + switch n { + default: /* case 4 */ + fallthrough + case 0: + return X__sin(tls, x, Float64FromInt32(0), 0) + case int32(1): + return X__cos(tls, x, Float64FromInt32(0)) + case int32(2): + return X__sin(tls, -x, Float64FromInt32(0), 0) + case int32(3): + return -X__cos(tls, x, Float64FromInt32(0)) + } + return r +} + +// C documentation +// +// //static const double g = 6.024680040776729583740234375; +var _gmhalf = float64(5.52468004077673) +var _Snum = [13]float64{ + 0: float64(2.353137688041076e+10), + 1: float64(4.29198036426491e+10), + 2: float64(3.571195923735567e+10), + 3: float64(1.792103442603721e+10), + 4: float64(6.039542586352028e+09), + 5: float64(1.4397204073117216e+09), + 6: float64(2.4887455786205417e+08), + 7: float64(3.1426415585400194e+07), + 8: float64(2.8763706289353725e+06), + 9: float64(186056.26539522348), + 10: float64(8071.672002365816), + 11: float64(210.82427775157936), + 12: float64(2.5066282746310002), +} +var _Sden = [13]float64{ + 1: Float64FromInt32(39916800), + 2: Float64FromInt32(120543840), + 3: Float64FromInt32(150917976), + 4: Float64FromInt32(105258076), + 5: Float64FromInt32(45995730), + 6: Float64FromInt32(13339535), + 7: Float64FromInt32(2637558), + 8: Float64FromInt32(357423), + 9: Float64FromInt32(32670), + 10: Float64FromInt32(1925), + 11: Float64FromInt32(66), + 12: Float64FromInt32(1), +} + +// C documentation +// +// /* n! for small integer n */ +var _fact = [23]float64{ + 0: Float64FromInt32(1), + 1: Float64FromInt32(1), + 2: Float64FromInt32(2), + 3: Float64FromInt32(6), + 4: Float64FromInt32(24), + 5: Float64FromInt32(120), + 6: Float64FromInt32(720), + 7: float64(5040), + 8: float64(40320), + 9: float64(362880), + 10: float64(3.6288e+06), + 11: float64(3.99168e+07), + 12: float64(4.790016e+08), + 13: float64(6.2270208e+09), + 14: float64(8.71782912e+10), + 15: float64(1.307674368e+12), + 16: float64(2.0922789888e+13), + 17: float64(3.55687428096e+14), + 18: float64(6.402373705728e+15), + 19: float64(1.21645100408832e+17), + 20: float64(2.43290200817664e+18), + 21: float64(5.109094217170944e+19), + 22: float64(1.1240007277776077e+21), +} + +// C documentation +// +// /* S(x) rational function for positive x */ +func _S(tls *TLS, x float64) (r float64) { + var den, num Tdouble_t + var i int32 + _, _, _ = den, i, num + num = Float64FromInt32(0) + den = Float64FromInt32(0) + /* to avoid overflow handle large x differently */ + if x < Float64FromInt32(8) { + i = int32(N10) + for { + if !(i >= 0) { + break + } + num = Tdouble_t(num*x) + _Snum[i] + den = Tdouble_t(den*x) + _Sden[i] + goto _1 + _1: + ; + i = i - 1 + } + } else { + i = 0 + for { + if !(i <= int32(N10)) { + break + } + num = num/x + _Snum[i] + den = den/x + _Sden[i] + goto _2 + _2: + ; + i = i + 1 + } + } + return num / den +} + +func Xtgamma(tls *TLS, x3 float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var absx, y1, y2, y3, v1 float64 + var dy, r, z Tdouble_t + var ix Tuint32_t + var sign int32 + var y float32 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _, _, _, _, _ = absx, dy, ix, r, sign, y, y1, y2, y3, z, v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32) & uint64(0x7fffffff)) + sign = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(63)) + /* special cases */ + if ix >= uint32(0x7ff00000) { + /* tgamma(nan)=nan, tgamma(inf)=inf, tgamma(-inf)=nan with invalid */ + return x3 + float64(X__builtin_inff(tls)) + } + if ix < Uint32FromInt32((Int32FromInt32(0x3ff)-Int32FromInt32(54))<= 172: tgamma(x)=inf with overflow */ + /* x =< -184: tgamma(x)=+-0 with underflow */ + if ix >= uint32(0x40670000) { /* |x| >= 184 */ + if sign != 0 { + if uint64(4) == uint64(4) { + y = float32(Float64FromFloat64(1.1754943508222875e-38) / x3) + } else { + if uint64(4) == uint64(8) { + y1 = float64(float32(Float64FromFloat64(1.1754943508222875e-38) / x3)) + } else { + y2 = float64(float32(Float64FromFloat64(1.1754943508222875e-38) / x3)) + } + } + if float64(Xfloor(tls, x3)*float64(0.5)) == Xfloor(tls, float64(x3*float64(0.5))) { + return Float64FromInt32(0) + } + return -Float64FromFloat64(0) + } + x3 = x3 * float64(8.98846567431158e+307) + return x3 + } + if sign != 0 { + v1 = -x3 + } else { + v1 = x3 + } + absx = v1 + /* handle the error of x + g - 0.5 */ + y3 = absx + _gmhalf + if absx > _gmhalf { + dy = y3 - absx + dy = dy - _gmhalf + } else { + dy = y3 - _gmhalf + dy = dy - absx + } + z = absx - float64(0.5) + r = Tdouble_t(_S(tls, absx) * Xexp(tls, -y3)) + if x3 < Float64FromInt32(0) { + /* reflection formula for negative x */ + /* sinpi(absx) is not 0, integers are already handled */ + r = -_pi4 / float64(float64(_sinpi(tls, absx)*absx)*r) + dy = -dy + z = -z + } + r = r + Tdouble_t(Tdouble_t(dy*(_gmhalf+Float64FromFloat64(0.5)))*r)/y3 + z = Xpow(tls, y3, float64(float64(0.5)*z)) + y3 = float64(Tdouble_t(r*z) * z) + return y3 +} + +func Xtgammaf(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return float32(Xtgamma(tls, float64(x))) +} + +func Xtgammal(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xtgamma(tls, x) +} + +func Xtrunc(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e int32 + var m Tuint64_t + var y float32 + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _ = e, m, y, y1, y2 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + e = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp))>>Int32FromInt32(52)&Uint64FromInt32(0x7ff)) - int32(0x3ff) + int32(12) + if e >= Int32FromInt32(52)+Int32FromInt32(12) { + return x3 + } + if e < int32(12) { + e = int32(1) + } + m = uint64(-Uint64FromUint64(1) >> e) + if *(*Tuint64_t)(unsafe.Pointer(bp))&m == uint64(0) { + return x3 + } + if uint64(8) == uint64(4) { + y = float32(x3 + Float64FromFloat32(1.329227995784916e+36)) + } else { + if uint64(8) == uint64(8) { + y1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } else { + y2 = float64(x3 + Float64FromFloat32(1.329227995784916e+36)) + } + } + *(*Tuint64_t)(unsafe.Pointer(bp)) &= ^m + return *(*float64)(unsafe.Pointer(bp)) +} + +func Xtruncf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e int32 + var m Tuint32_t + var y float32 + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _ = e, m, y, y1, y2 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + e = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp))>>Int32FromInt32(23)&Uint32FromInt32(0xff)) - int32(0x7f) + int32(9) + if e >= Int32FromInt32(23)+Int32FromInt32(9) { + return x3 + } + if e < int32(9) { + e = int32(1) + } + m = -Uint32FromUint32(1) >> e + if *(*Tuint32_t)(unsafe.Pointer(bp))&m == uint32(0) { + return x3 + } + if uint64(4) == uint64(4) { + y = x3 + Float32FromFloat32(1.329227995784916e+36) + } else { + if uint64(4) == uint64(8) { + y1 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } else { + y2 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } + } + *(*Tuint32_t)(unsafe.Pointer(bp)) &= ^m + return *(*float32)(unsafe.Pointer(bp)) +} + +func Xtruncl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xtrunc(tls, x) +} + +var _digits = [65]uint8{'.', '/', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'} + +func Xa64l(tls *TLS, s uintptr) (r int64) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var d uintptr + var e int32 + var x Tuint32_t + _, _, _ = d, e, x + x = uint32(0) + e = 0 + for { + if !(e < int32(36) && **(**uint8)(__ccgo_up(s)) != 0) { + break + } + d = Xstrchr(tls, uintptr(unsafe.Pointer(&_digits)), Int32FromUint8(**(**uint8)(__ccgo_up(s)))) + if !(d != 0) { + break + } + x = x | Uint32FromInt64(int64(d)-t__predefined_ptrdiff_t(uintptr(unsafe.Pointer(&_digits))))< %v", r) }() + } + var p uintptr + var x Tuint32_t + _, _ = p, x + x = Uint32FromInt64(x0) + p = uintptr(unsafe.Pointer(&_s)) + for { + if !(x != 0) { + break + } + **(**uint8)(__ccgo_up(p)) = _digits[x&uint32(63)] + goto _1 + _1: + ; + p = p + 1 + x = x >> uint32(6) + } + **(**uint8)(__ccgo_up(p)) = uint8(0) + return uintptr(unsafe.Pointer(&_s)) +} + +var _s [7]uint8 + +func Xbasename(tls *TLS, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var i Tsize_t + _ = i + if !(s != 0) || !(**(**uint8)(__ccgo_up(s)) != 0) { + return __ccgo_ts + 606 + } + i = _strlen(tls, s) - uint64(1) + for { + if !(i != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(i)))) == int32('/')) { + break + } + **(**uint8)(__ccgo_up(s + uintptr(i))) = uint8(0) + goto _1 + _1: + ; + i = i - 1 + } + for { + if !(i != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(i-uint64(1))))) != int32('/')) { + break + } + goto _2 + _2: + ; + i = i - 1 + } + return s + uintptr(i) +} + +func X__xpg_basename(tls *TLS, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xbasename(tls, s) +} + +func Xdirname(tls *TLS, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var i Tsize_t + _ = i + if !(s != 0) || !(**(**uint8)(__ccgo_up(s)) != 0) { + return __ccgo_ts + 606 + } + i = _strlen(tls, s) - uint64(1) + for { + if !(Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(i)))) == int32('/')) { + break + } + if !(i != 0) { + return __ccgo_ts + 618 + } + goto _1 + _1: + ; + i = i - 1 + } + for { + if !(Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(i)))) != int32('/')) { + break + } + if !(i != 0) { + return __ccgo_ts + 606 + } + goto _2 + _2: + ; + i = i - 1 + } + for { + if !(Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(i)))) == int32('/')) { + break + } + if !(i != 0) { + return __ccgo_ts + 618 + } + goto _3 + _3: + ; + i = i - 1 + } + **(**uint8)(__ccgo_up(s + uintptr(i+uint64(1)))) = uint8(0) + return s +} + +func Xffs(tls *TLS, i int32) (r int32) { + if __ccgo_strace { + trc("tls=%v i=%v, (%v:)", tls, i, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1, v3 int32 + var v2 uint64 + _, _, _ = v1, v2, v3 + if i != 0 { + v2 = Uint64FromInt32(i) + v3 = _a_ctz_64(tls, v2) + goto _4 + _4: + v1 = v3 + int32(1) + } else { + v1 = 0 + } + return v1 +} + +func Xffsl(tls *TLS, i int64) (r int32) { + if __ccgo_strace { + trc("tls=%v i=%v, (%v:)", tls, i, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1, v3 int32 + var v2 uint64 + _, _, _ = v1, v2, v3 + if i != 0 { + v2 = Uint64FromInt64(i) + v3 = _a_ctz_64(tls, v2) + goto _4 + _4: + v1 = v3 + int32(1) + } else { + v1 = 0 + } + return v1 +} + +func Xffsll(tls *TLS, i int64) (r int32) { + if __ccgo_strace { + trc("tls=%v i=%v, (%v:)", tls, i, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + _ = v1 + if i != 0 { + v1 = _a_ctz_64(tls, Uint64FromInt64(i)) + int32(1) + } else { + v1 = 0 + } + return v1 +} + +const MM_APPL = 8 +const MM_CONSOLE = 512 +const MM_ERROR = 2 +const MM_FIRM = 4 +const MM_HALT = 1 +const MM_HARD = 1 +const MM_INFO = 4 +const MM_NOCON = 4 +const MM_NOMSG = 1 +const MM_NOSEV = 0 +const MM_NOTOK = -1 +const MM_NRECOV = 128 +const MM_NULLMC = 0 +const MM_NULLSEV = 0 +const MM_OK = 0 +const MM_OPSYS = 32 +const MM_PRINT = 256 +const MM_RECOVER = 64 +const MM_SOFT = 2 +const MM_UTIL = 16 +const MM_WARNING = 3 + +// C documentation +// +// /* +// * If lstr is the first part of bstr, check that the next char in bstr +// * is either \0 or : +// */ +func __strcolcmp(tls *TLS, lstr uintptr, bstr uintptr) (r int32) { + var i Tsize_t + _ = i + i = uint64(0) + for **(**uint8)(__ccgo_up(lstr + uintptr(i))) != 0 && **(**uint8)(__ccgo_up(bstr + uintptr(i))) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(bstr + uintptr(i)))) == Int32FromUint8(**(**uint8)(__ccgo_up(lstr + uintptr(i)))) { + i = i + 1 + } + if **(**uint8)(__ccgo_up(lstr + uintptr(i))) != 0 || **(**uint8)(__ccgo_up(bstr + uintptr(i))) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(bstr + uintptr(i)))) != int32(':') { + return int32(1) + } + return 0 +} + +func Xfmtmsg(tls *TLS, classification int64, label uintptr, severity int32, text uintptr, action uintptr, tag uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v classification=%v label=%v severity=%v text=%v action=%v tag=%v, (%v:)", tls, classification, label, severity, text, action, tag, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(80) + defer tls.Free(80) + var cmsg, errstring, v1, v2, v3, v4, v5, v6, v7, v8 uintptr + var consolefd, i, ret, verb int32 + var msgs [6]uintptr + var _ /* cs at bp+0 */ int32 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = cmsg, consolefd, errstring, i, msgs, ret, verb, v1, v2, v3, v4, v5, v6, v7, v8 + ret = 0 + verb = 0 + errstring = uintptr(MM_NULLSEV) + cmsg = Xgetenv(tls, __ccgo_ts+620) + msgs = [6]uintptr{ + 0: __ccgo_ts + 628, + 1: __ccgo_ts + 634, + 2: __ccgo_ts + 643, + 3: __ccgo_ts + 648, + 4: __ccgo_ts + 655, + 5: UintptrFromInt32(0), + } + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp) + if severity == int32(MM_HALT) { + errstring = __ccgo_ts + 659 + } else { + if severity == int32(MM_ERROR) { + errstring = __ccgo_ts + 666 + } else { + if severity == int32(MM_WARNING) { + errstring = __ccgo_ts + 674 + } else { + if severity == int32(MM_INFO) { + errstring = __ccgo_ts + 684 + } + } + } + } + if classification&int64(MM_CONSOLE) != 0 { + consolefd = Xopen(tls, __ccgo_ts+691, int32(O_WRONLY), 0) + if consolefd < 0 { + ret = int32(MM_NOCON) + } else { + if label != 0 { + v1 = label + } else { + v1 = __ccgo_ts + } + if label != 0 { + v2 = __ccgo_ts + 386 + } else { + v2 = __ccgo_ts + } + if severity != 0 { + v3 = errstring + } else { + v3 = __ccgo_ts + } + if text != 0 { + v4 = text + } else { + v4 = __ccgo_ts + } + if action != 0 { + v5 = __ccgo_ts + 704 + } else { + v5 = __ccgo_ts + } + if action != 0 { + v6 = action + } else { + v6 = __ccgo_ts + } + if action != 0 { + v7 = __ccgo_ts + 714 + } else { + v7 = __ccgo_ts + } + if tag != 0 { + v8 = tag + } else { + v8 = __ccgo_ts + } + if Xdprintf(tls, consolefd, __ccgo_ts+716, VaList(bp+16, v1, v2, v3, v4, v5, v6, v7, v8)) < int32(1) { + ret = int32(MM_NOCON) + } + Xclose(tls, consolefd) + } + } + if classification&int64(MM_PRINT) != 0 { + for cmsg != 0 && **(**uint8)(__ccgo_up(cmsg)) != 0 { + i = 0 + for { + if !(msgs[i] != 0) { + break + } + if !(__strcolcmp(tls, msgs[i], cmsg) != 0) { + break + } + goto _9 + _9: + ; + i = i + 1 + } + if msgs[i] == UintptrFromInt32(0) { + //ignore MSGVERB-unrecognized component + verb = int32(0xFF) + break + } else { + verb = verb | int32(1)< %v", r) }() + } + bp := tls.Alloc(288) + defer tls.Free(288) + var res uintptr + var _ /* a at bp+0 */ Tstat + var _ /* b at bp+144 */ Tstat + _ = res + res = Xgetenv(tls, __ccgo_ts+734) + if res != 0 && **(**uint8)(__ccgo_up(res)) != 0 && !(Xstat(tls, res, bp) != 0) && !(Xstat(tls, __ccgo_ts+606, bp+144) != 0) && (**(**Tstat)(__ccgo_up(bp))).Fst_dev == (**(**Tstat)(__ccgo_up(bp + 144))).Fst_dev && (**(**Tstat)(__ccgo_up(bp))).Fst_ino == (**(**Tstat)(__ccgo_up(bp + 144))).Fst_ino { + return Xstrdup(tls, res) + } + return Xgetcwd(tls, uintptr(0), uint64(0)) +} + +func X__getauxval(tls *TLS, item uint64) (r uint64) { + if __ccgo_strace { + trc("tls=%v item=%v, (%v:)", tls, item, origin(2)) + defer func() { trc("-> %v", r) }() + } + var auxv uintptr + _ = auxv + auxv = X__libc.Fauxv + if item == uint64(AT_SECURE) { + return uint64(X__libc.Fsecure) + } + for { + if !(**(**Tsize_t)(__ccgo_up(auxv)) != 0) { + break + } + if **(**Tsize_t)(__ccgo_up(auxv)) == item { + return **(**Tsize_t)(__ccgo_up(auxv + 1*8)) + } + goto _1 + _1: + ; + auxv = auxv + uintptr(2)*8 + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOENT) + return uint64(0) +} + +func Xgetauxval(tls *TLS, item uint64) (r uint64) { + if __ccgo_strace { + trc("tls=%v item=%v, (%v:)", tls, item, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__getauxval(tls, item) +} + +type Tutsname = struct { + Fsysname [65]uint8 + Fnodename [65]uint8 + Frelease [65]uint8 + Fversion [65]uint8 + Fmachine [65]uint8 + Fdomainname [65]uint8 +} + +func Xgetdomainname(tls *TLS, name uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v len1=%v, (%v:)", tls, name, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(400) + defer tls.Free(400) + var _ /* temp at bp+0 */ Tutsname + Xuname(tls, bp) + if !(len1 != 0) || _strlen(tls, bp+325) >= len1 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + Xstrcpy(tls, name, bp+325) + return 0 +} + +func Xgetentropy(tls *TLS, buffer uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v buffer=%v len1=%v, (%v:)", tls, buffer, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var pos uintptr + var ret int32 + var _ /* cs at bp+0 */ int32 + _, _ = pos, ret + ret = 0 + pos = buffer + if len1 > uint64(256) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EIO) + return -int32(1) + } + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp) + for len1 != 0 { + ret = int32(Xgetrandom(tls, pos, len1, uint32(0))) + if ret < 0 { + if **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EINTR) { + continue + } else { + break + } + } + pos = pos + uintptr(ret) + len1 = len1 - Uint64FromInt32(ret) + ret = 0 + } + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp)), uintptr(0)) + return ret +} + +func Xgethostid(tls *TLS) (r int64) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return 0 +} + +const optpos = 0 + +type t__ucontext1 = Tucontext_t1 + +func X__getopt_msg(tls *TLS, a uintptr, b uintptr, c uintptr, l Tsize_t) { + if __ccgo_strace { + trc("tls=%v a=%v b=%v c=%v l=%v, (%v:)", tls, a, b, c, l, origin(2)) + } + var __need_unlock, v1 int32 + var f uintptr + _, _, _ = __need_unlock, f, v1 + f = uintptr(unsafe.Pointer(&X__stderr_FILE)) + b = X__lctrans_cur(tls, b) + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + _ = Xfputs(tls, a, f) >= 0 && Xfwrite(tls, b, _strlen(tls, b), uint64(1), f) != 0 && Xfwrite(tls, c, uint64(1), l, f) == l && Xputc(tls, int32('\n'), f) != 0 + if __need_unlock != 0 { + ___unlockfile(tls, f) + } +} + +func Xgetopt(tls *TLS, argc int32, argv uintptr, optstring uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v argc=%v argv=%v optstring=%v, (%v:)", tls, argc, argv, optstring, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var i, k, l, v1 int32 + var optchar uintptr + var _ /* c at bp+0 */ Twchar_t + var _ /* d at bp+4 */ Twchar_t + _, _, _, _, _ = i, k, l, optchar, v1 + if !(Xoptind != 0) || Xoptreset != 0 { + Xoptreset = 0 + X__optpos = 0 + Xoptind = int32(1) + } + if Xoptind >= argc || !(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) != 0) { + return -int32(1) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8))))) != int32('-') { + if Int32FromUint8(**(**uint8)(__ccgo_up(optstring))) == int32('-') { + v1 = Xoptind + Xoptind = Xoptind + 1 + Xoptarg = **(**uintptr)(__ccgo_up(argv + uintptr(v1)*8)) + return int32(1) + } + return -int32(1) + } + if !(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) + 1)) != 0) { + return -int32(1) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) + 1))) == int32('-') && !(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) + 2)) != 0) { + Xoptind = Xoptind + 1 + return -Int32FromInt32(1) + } + if !(X__optpos != 0) { + X__optpos = X__optpos + 1 + } + v1 = Xmbtowc(tls, bp, **(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8))+uintptr(X__optpos), uint64(MB_LEN_MAX)) + k = v1 + if v1 < 0 { + k = int32(1) + **(**Twchar_t)(__ccgo_up(bp)) = int32(0xfffd) /* replacement char */ + } + optchar = **(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) + uintptr(X__optpos) + X__optpos = X__optpos + k + if !(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) + uintptr(X__optpos))) != 0) { + Xoptind = Xoptind + 1 + X__optpos = 0 + } + if Int32FromUint8(**(**uint8)(__ccgo_up(optstring))) == int32('-') || Int32FromUint8(**(**uint8)(__ccgo_up(optstring))) == int32('+') { + optstring = optstring + 1 + } + i = 0 + **(**Twchar_t)(__ccgo_up(bp + 4)) = 0 + for cond := true; cond; cond = l != 0 && **(**Twchar_t)(__ccgo_up(bp + 4)) != **(**Twchar_t)(__ccgo_up(bp)) { + l = Xmbtowc(tls, bp+4, optstring+uintptr(i), uint64(MB_LEN_MAX)) + if l > 0 { + i = i + l + } else { + i = i + 1 + } + } + if **(**Twchar_t)(__ccgo_up(bp + 4)) != **(**Twchar_t)(__ccgo_up(bp)) || **(**Twchar_t)(__ccgo_up(bp)) == int32(':') { + Xoptopt = **(**Twchar_t)(__ccgo_up(bp)) + if Int32FromUint8(**(**uint8)(__ccgo_up(optstring))) != int32(':') && Xopterr != 0 { + X__getopt_msg(tls, **(**uintptr)(__ccgo_up(argv)), __ccgo_ts+738, optchar, Uint64FromInt32(k)) + } + return int32('?') + } + if Int32FromUint8(**(**uint8)(__ccgo_up(optstring + uintptr(i)))) == int32(':') { + Xoptarg = uintptr(0) + if Int32FromUint8(**(**uint8)(__ccgo_up(optstring + uintptr(i+int32(1))))) != int32(':') || X__optpos != 0 { + v1 = Xoptind + Xoptind = Xoptind + 1 + Xoptarg = **(**uintptr)(__ccgo_up(argv + uintptr(v1)*8)) + if X__optpos != 0 { + Xoptarg = Xoptarg + uintptr(X__optpos) + } + X__optpos = 0 + } + if Xoptind > argc { + Xoptopt = **(**Twchar_t)(__ccgo_up(bp)) + if Int32FromUint8(**(**uint8)(__ccgo_up(optstring))) == int32(':') { + return int32(':') + } + if Xopterr != 0 { + X__getopt_msg(tls, **(**uintptr)(__ccgo_up(argv)), __ccgo_ts+762, optchar, Uint64FromInt32(k)) + } + return int32('?') + } + } + return **(**Twchar_t)(__ccgo_up(bp)) +} + +func X__posix_getopt(tls *TLS, argc int32, argv uintptr, optstring uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v argc=%v argv=%v optstring=%v, (%v:)", tls, argc, argv, optstring, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetopt(tls, argc, argv, optstring) +} + +const no_argument = 0 +const optional_argument = 2 +const required_argument = 1 + +type Toption = struct { + Fname uintptr + Fhas_arg int32 + Fflag uintptr + Fval int32 +} + +func _permute(tls *TLS, argv uintptr, dest int32, src int32) { + var av, tmp uintptr + var i int32 + _, _, _ = av, i, tmp + av = argv + tmp = **(**uintptr)(__ccgo_up(av + uintptr(src)*8)) + i = src + for { + if !(i > dest) { + break + } + **(**uintptr)(__ccgo_up(av + uintptr(i)*8)) = **(**uintptr)(__ccgo_up(av + uintptr(i-int32(1))*8)) + goto _1 + _1: + ; + i = i - 1 + } + **(**uintptr)(__ccgo_up(av + uintptr(dest)*8)) = tmp +} + +func ___getopt_long(tls *TLS, argc int32, argv uintptr, optstring uintptr, longopts uintptr, idx uintptr, longonly int32) (r int32) { + var cnt, i, i1, resumed, ret, skipped int32 + _, _, _, _, _, _ = cnt, i, i1, resumed, ret, skipped + if !(Xoptind != 0) || Xoptreset != 0 { + Xoptreset = 0 + X__optpos = 0 + Xoptind = int32(1) + } + if Xoptind >= argc || !(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) != 0) { + return -int32(1) + } + skipped = Xoptind + if Int32FromUint8(**(**uint8)(__ccgo_up(optstring))) != int32('+') && Int32FromUint8(**(**uint8)(__ccgo_up(optstring))) != int32('-') { + i = Xoptind + for { + if i >= argc || !(**(**uintptr)(__ccgo_up(argv + uintptr(i)*8)) != 0) { + return -int32(1) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(i)*8))))) == int32('-') && **(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(i)*8)) + 1)) != 0 { + break + } + goto _1 + _1: + ; + i = i + 1 + } + Xoptind = i + } + resumed = Xoptind + ret = ___getopt_long_core(tls, argc, argv, optstring, longopts, idx, longonly) + if resumed > skipped { + cnt = Xoptind - resumed + i1 = 0 + for { + if !(i1 < cnt) { + break + } + _permute(tls, argv, skipped, Xoptind-int32(1)) + goto _2 + _2: + ; + i1 = i1 + 1 + } + Xoptind = skipped + cnt + } + return ret +} + +func ___getopt_long_core(tls *TLS, argc int32, argv uintptr, optstring uintptr, longopts uintptr, idx uintptr, longonly int32) (r int32) { + var arg, name, opt, start, v5 uintptr + var cnt, colon, i, j, l, match, v2 int32 + _, _, _, _, _, _, _, _, _, _, _, _ = arg, cnt, colon, i, j, l, match, name, opt, start, v2, v5 + Xoptarg = uintptr(0) + if longopts != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8))))) == int32('-') && (longonly != 0 && **(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) + 1)) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) + 1))) != int32('-') || Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) + 1))) == int32('-') && **(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) + 2)) != 0) { + colon = BoolInt32(Int32FromUint8(**(**uint8)(__ccgo_up(optstring + BoolUintptr(Int32FromUint8(**(**uint8)(__ccgo_up(optstring))) == int32('+') || Int32FromUint8(**(**uint8)(__ccgo_up(optstring))) == int32('-'))))) == int32(':')) + start = **(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) + uintptr(1) + v2 = Int32FromInt32(0) + i = v2 + cnt = v2 + for { + if !((**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fname != 0) { + break + } + name = (**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fname + opt = start + if Int32FromUint8(**(**uint8)(__ccgo_up(opt))) == int32('-') { + opt = opt + 1 + } + for **(**uint8)(__ccgo_up(opt)) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(opt))) != int32('=') && Int32FromUint8(**(**uint8)(__ccgo_up(opt))) == Int32FromUint8(**(**uint8)(__ccgo_up(name))) { + name = name + 1 + opt = opt + 1 + } + if **(**uint8)(__ccgo_up(opt)) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(opt))) != int32('=') { + goto _1 + } + arg = opt + match = i + if !(**(**uint8)(__ccgo_up(name)) != 0) { + cnt = int32(1) + break + } + cnt = cnt + 1 + goto _1 + _1: + ; + i = i + 1 + } + if cnt == int32(1) && longonly != 0 && int64(arg)-int64(start) == int64(Xmblen(tls, start, uint64(MB_LEN_MAX))) { + l = int32(int64(arg) - int64(start)) + i = 0 + for { + if !(**(**uint8)(__ccgo_up(optstring + uintptr(i))) != 0) { + break + } + j = 0 + for { + if !(j < l && Int32FromUint8(**(**uint8)(__ccgo_up(start + uintptr(j)))) == Int32FromUint8(**(**uint8)(__ccgo_up(optstring + uintptr(i+j))))) { + break + } + goto _4 + _4: + ; + j = j + 1 + } + if j == l { + cnt = cnt + 1 + break + } + goto _3 + _3: + ; + i = i + 1 + } + } + if cnt == int32(1) { + i = match + opt = arg + Xoptind = Xoptind + 1 + if Int32FromUint8(**(**uint8)(__ccgo_up(opt))) == int32('=') { + if !((**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fhas_arg != 0) { + Xoptopt = (**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fval + if colon != 0 || !(Xopterr != 0) { + return int32('?') + } + X__getopt_msg(tls, **(**uintptr)(__ccgo_up(argv)), __ccgo_ts+794, (**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fname, _strlen(tls, (**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fname)) + return int32('?') + } + Xoptarg = opt + uintptr(1) + } else { + if (**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fhas_arg == int32(required_argument) { + v5 = **(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) + Xoptarg = v5 + if !(v5 != 0) { + Xoptopt = (**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fval + if colon != 0 { + return int32(':') + } + if !(Xopterr != 0) { + return int32('?') + } + X__getopt_msg(tls, **(**uintptr)(__ccgo_up(argv)), __ccgo_ts+762, (**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fname, _strlen(tls, (**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fname)) + return int32('?') + } + Xoptind = Xoptind + 1 + } + } + if idx != 0 { + **(**int32)(__ccgo_up(idx)) = i + } + if (**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fflag != 0 { + **(**int32)(__ccgo_up((**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fflag)) = (**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fval + return 0 + } + return (**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fval + } + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) + 1))) == int32('-') { + Xoptopt = 0 + if !(colon != 0) && Xopterr != 0 { + if cnt != 0 { + v5 = __ccgo_ts + 831 + } else { + v5 = __ccgo_ts + 738 + } + X__getopt_msg(tls, **(**uintptr)(__ccgo_up(argv)), v5, **(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8))+uintptr(2), _strlen(tls, **(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8))+uintptr(2))) + } + Xoptind = Xoptind + 1 + return int32('?') + } + } + return Xgetopt(tls, argc, argv, optstring) +} + +func Xgetopt_long(tls *TLS, argc int32, argv uintptr, optstring uintptr, longopts uintptr, idx uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v argc=%v argv=%v optstring=%v longopts=%v idx=%v, (%v:)", tls, argc, argv, optstring, longopts, idx, origin(2)) + defer func() { trc("-> %v", r) }() + } + return ___getopt_long(tls, argc, argv, optstring, longopts, idx, 0) +} + +func Xgetopt_long_only(tls *TLS, argc int32, argv uintptr, optstring uintptr, longopts uintptr, idx uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v argc=%v argv=%v optstring=%v longopts=%v idx=%v, (%v:)", tls, argc, argv, optstring, longopts, idx, origin(2)) + defer func() { trc("-> %v", r) }() + } + return ___getopt_long(tls, argc, argv, optstring, longopts, idx, int32(1)) +} + +func Xgetpriority(tls *TLS, which int32, who Tid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v which=%v who=%v, (%v:)", tls, which, who, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret int32 + _ = ret + ret = int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_getpriority), int64(which), Int64FromUint32(who))))) + if ret < 0 { + return ret + } + return int32(20) - ret +} + +func Xgetresgid(tls *TLS, rgid uintptr, egid uintptr, sgid uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v rgid=%v egid=%v sgid=%v, (%v:)", tls, rgid, egid, sgid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_getresgid), int64(rgid), int64(egid), int64(sgid))))) +} + +func Xgetresuid(tls *TLS, ruid uintptr, euid uintptr, suid uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v ruid=%v euid=%v suid=%v, (%v:)", tls, ruid, euid, suid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_getresuid), int64(ruid), int64(euid), int64(suid))))) +} + +func Xgetrlimit(tls *TLS, resource int32, rlim uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v resource=%v rlim=%v, (%v:)", tls, resource, rlim, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ret int32 + var v1 uint64 + var _ /* k_rlim at bp+0 */ [2]uint64 + _, _ = ret, v1 + ret = int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_prlimit64), int64(Int32FromInt32(0)), int64(resource), int64(Int32FromInt32(0)), int64(rlim))))) + if !(ret != 0) { + if (*Trlimit)(unsafe.Pointer(rlim)).Frlim_cur >= ^Uint64FromUint64(0) { + (*Trlimit)(unsafe.Pointer(rlim)).Frlim_cur = ^Uint64FromUint64(0) + } + if (*Trlimit)(unsafe.Pointer(rlim)).Frlim_max >= ^Uint64FromUint64(0) { + (*Trlimit)(unsafe.Pointer(rlim)).Frlim_max = ^Uint64FromUint64(0) + } + } + if !(ret != 0) || **(**int32)(__ccgo_up(X__errno_location(tls))) != int32(ENOSYS) { + return ret + } + if X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_ugetrlimit), int64(resource), int64(bp)))) < 0 { + return -int32(1) + } + if (**(**[2]uint64)(__ccgo_up(bp)))[0] == -Uint64FromUint64(1) { + v1 = ^Uint64FromUint64(0) + } else { + v1 = (**(**[2]uint64)(__ccgo_up(bp)))[0] + } + (*Trlimit)(unsafe.Pointer(rlim)).Frlim_cur = v1 + if (**(**[2]uint64)(__ccgo_up(bp)))[int32(1)] == -Uint64FromUint64(1) { + v1 = ^Uint64FromUint64(0) + } else { + v1 = (**(**[2]uint64)(__ccgo_up(bp)))[int32(1)] + } + (*Trlimit)(unsafe.Pointer(rlim)).Frlim_max = v1 + if (*Trlimit)(unsafe.Pointer(rlim)).Frlim_cur >= ^Uint64FromUint64(0) { + (*Trlimit)(unsafe.Pointer(rlim)).Frlim_cur = ^Uint64FromUint64(0) + } + if (*Trlimit)(unsafe.Pointer(rlim)).Frlim_max >= ^Uint64FromUint64(0) { + (*Trlimit)(unsafe.Pointer(rlim)).Frlim_max = ^Uint64FromUint64(0) + } + return 0 +} + +func Xgetrusage(tls *TLS, who int32, ru uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v who=%v ru=%v, (%v:)", tls, who, ru, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var dest uintptr + var r int32 + var _ /* kru at bp+0 */ [4]int64 + _, _ = dest, r + dest = ru + 32 - uintptr(Uint64FromInt32(4)*Uint64FromInt64(8)) + r = int32(X__syscall2(tls, int64(SYS_getrusage), int64(who), int64(dest))) + if !(r != 0) && Bool(uint64(8) > uint64(8)) { + Xmemcpy(tls, bp, dest, Uint64FromInt32(4)*Uint64FromInt64(8)) + (*Trusage)(unsafe.Pointer(ru)).Fru_utime = Ttimeval{ + Ftv_sec: (**(**[4]int64)(__ccgo_up(bp)))[0], + Ftv_usec: (**(**[4]int64)(__ccgo_up(bp)))[int32(1)], + } + (*Trusage)(unsafe.Pointer(ru)).Fru_stime = Ttimeval{ + Ftv_sec: (**(**[4]int64)(__ccgo_up(bp)))[int32(2)], + Ftv_usec: (**(**[4]int64)(__ccgo_up(bp)))[int32(3)], + } + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func Xgetsubopt(tls *TLS, opt uintptr, keys uintptr, val uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v opt=%v keys=%v val=%v, (%v:)", tls, opt, keys, val, origin(2)) + defer func() { trc("-> %v", r) }() + } + var i int32 + var l Tsize_t + var s, v1, v2 uintptr + _, _, _, _, _ = i, l, s, v1, v2 + s = **(**uintptr)(__ccgo_up(opt)) + **(**uintptr)(__ccgo_up(val)) = UintptrFromInt32(0) + **(**uintptr)(__ccgo_up(opt)) = Xstrchr(tls, s, int32(',')) + if **(**uintptr)(__ccgo_up(opt)) != 0 { + v2 = opt + v1 = *(*uintptr)(unsafe.Pointer(v2)) + *(*uintptr)(unsafe.Pointer(v2)) = *(*uintptr)(unsafe.Pointer(v2)) + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(0) + } else { + **(**uintptr)(__ccgo_up(opt)) = s + uintptr(_strlen(tls, s)) + } + i = 0 + for { + if !(**(**uintptr)(__ccgo_up(keys + uintptr(i)*8)) != 0) { + break + } + l = _strlen(tls, **(**uintptr)(__ccgo_up(keys + uintptr(i)*8))) + if Xstrncmp(tls, **(**uintptr)(__ccgo_up(keys + uintptr(i)*8)), s, l) != 0 { + goto _3 + } + if Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(l)))) == int32('=') { + **(**uintptr)(__ccgo_up(val)) = s + uintptr(l) + uintptr(1) + } else { + if **(**uint8)(__ccgo_up(s + uintptr(l))) != 0 { + goto _3 + } + } + return i + goto _3 + _3: + ; + i = i + 1 + } + return -int32(1) +} + +const R = 2 +const W = 1 +const WR = 3 + +type Tioctl_compat_map = struct { + Fnew_req int32 + Fold_req int32 + Fold_size uint8 + Fdir uint8 + Fforce_align uint8 + Fnoffs uint8 + Foffsets [8]uint8 +} + +/* yields a type for a struct with original size n, with a misaligned + * timeval/timespec expanded from 32- to 64-bit. for use with ioctl + * number producing macros; only size of result is meaningful. */ + +type Tv4l2_event = struct { + Fa Tuint32_t + Fb [8]Tuint64_t + Fc [2]Tuint32_t + Fts [2]Tuint32_t + Fd [9]Tuint32_t +} + +var _compat_map = [20]Tioctl_compat_map{ + 0: { + Fnew_req: int32(SIOCGSTAMP), + Fold_req: int32(SIOCGSTAMP_OLD), + Fold_size: uint8(8), + Fdir: uint8(R), + Fnoffs: uint8(2), + Foffsets: [8]uint8{ + 1: uint8(4), + }, + }, + 1: { + Fnew_req: int32(SIOCGSTAMPNS), + Fold_req: int32(SIOCGSTAMPNS_OLD), + Fold_size: uint8(8), + Fdir: uint8(R), + Fnoffs: uint8(2), + Foffsets: [8]uint8{ + 1: uint8(4), + }, + }, + 2: { + Fnew_req: Int32FromUint64(uint64(Uint32FromUint32(2)< %v", r1) }() + } + bp := tls.Alloc(256) + defer tls.Free(256) + var ap Tva_list + var arg uintptr + var i, r int32 + var _ /* u at bp+0 */ struct { + Fbuf [0][256]uint8 + Falign int64 + F__ccgo_pad2 [248]byte + } + _, _, _, _ = ap, arg, i, r + ap = va + arg = VaUintptr(&ap) + _ = ap + r = int32(X__syscall3(tls, int64(SYS_ioctl), int64(fd), int64(req), int64(arg))) + if Bool(Bool(int32(SIOCGSTAMP) != int32(SIOCGSTAMP_OLD)) && req != 0) && r == -int32(ENOTTY) { + i = 0 + for { + if !(Uint64FromInt32(i) < Uint64FromInt64(400)/Uint64FromInt64(20)) { + break + } + if _compat_map[i].Fnew_req != req { + goto _1 + } + _convert_ioctl_struct(tls, uintptr(unsafe.Pointer(&_compat_map))+uintptr(i)*20, bp, arg, int32(W)) + r = int32(X__syscall3(tls, int64(SYS_ioctl), int64(fd), int64(_compat_map[i].Fold_req), int64(bp))) + if r < 0 { + break + } + _convert_ioctl_struct(tls, uintptr(unsafe.Pointer(&_compat_map))+uintptr(i)*20, bp, arg, int32(R)) + break + goto _1 + _1: + ; + i = i + 1 + } + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func Xissetugid(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Int32FromUint8(X__libc.Fsecure) +} + +func Xlockf(tls *TLS, fd int32, op int32, size Toff_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v op=%v size=%v, (%v:)", tls, fd, op, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + var _ /* l at bp+0 */ Tflock + **(**Tflock)(__ccgo_up(bp)) = Tflock{ + Fl_type: int16(F_WRLCK), + Fl_whence: int16(1), + Fl_len: size, + } + switch op { + case int32(F_TEST): + (**(**Tflock)(__ccgo_up(bp))).Fl_type = F_RDLCK + if Xfcntl(tls, fd, int32(F_GETLK), VaList(bp+40, bp)) < 0 { + return -int32(1) + } + if int32((**(**Tflock)(__ccgo_up(bp))).Fl_type) == int32(F_UNLCK) || (**(**Tflock)(__ccgo_up(bp))).Fl_pid == Xgetpid(tls) { + return 0 + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EACCES) + return -int32(1) + case F_ULOCK: + (**(**Tflock)(__ccgo_up(bp))).Fl_type = int16(F_UNLCK) + fallthrough + case int32(F_TLOCK): + return Xfcntl(tls, fd, int32(F_SETLK), VaList(bp+40, bp)) + case int32(F_LOCK): + return Xfcntl(tls, fd, int32(F_SETLKW), VaList(bp+40, bp)) + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) +} + +const ACCOUNTING = 9 +const UTMP_FILE = "_PATH_UTMP" +const UTMP_FILENAME = "_PATH_UTMP" +const UT_HOSTSIZE = 256 +const UT_LINESIZE = 32 +const UT_NAMESIZE = 32 +const WTMP_FILE = "_PATH_WTMP" +const WTMP_FILENAME = "_PATH_WTMP" +const _PATH_UTMP = "/dev/null/utmp" +const _PATH_WTMP = "/dev/null/wtmp" +const ut_name = 0 +const utmp = 0 + +type Tlastlog = struct { + Fll_time Ttime_t + Fll_line [32]uint8 + Fll_host [256]uint8 +} + +func Xlogin_tty(tls *TLS, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + Xsetsid(tls) + if Xioctl(tls, fd, int32(TIOCSCTTY), VaList(bp+8, UintptrFromInt32(0))) != 0 { + return -int32(1) + } + Xdup2(tls, fd, 0) + Xdup2(tls, fd, int32(1)) + Xdup2(tls, fd, int32(2)) + if fd > int32(2) { + Xclose(tls, fd) + } + return 0 +} + +const MNTOPT_DEFAULTS = "defaults" +const MNTOPT_NOAUTO = "noauto" +const MNTOPT_NOSUID = "nosuid" +const MNTOPT_RO = "ro" +const MNTOPT_RW = "rw" +const MNTOPT_SUID = "suid" +const MNTTYPE_IGNORE = "ignore" +const MNTTYPE_NFS = "nfs" +const MNTTYPE_SWAP = "swap" +const MOUNTED = "/etc/mtab" +const SENTINEL = 0 + +type Tmntent = struct { + Fmnt_fsname uintptr + Fmnt_dir uintptr + Fmnt_type uintptr + Fmnt_opts uintptr + Fmnt_freq int32 + Fmnt_passno int32 +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +var _internal_buf uintptr +var _internal_bufsize Tsize_t + +func Xsetmntent(tls *TLS, name uintptr, mode uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v mode=%v, (%v:)", tls, name, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfopen(tls, name, mode) +} + +func Xendmntent(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + if f != 0 { + Xfclose(tls, f) + } + return int32(1) +} + +func _unescape_ent(tls *TLS, beg uintptr) (r uintptr) { + var cval uint8 + var dest, src, val, v1, v2 uintptr + var i int32 + _, _, _, _, _, _, _ = cval, dest, i, src, val, v1, v2 + dest = beg + src = beg + for **(**uint8)(__ccgo_up(src)) != 0 { + cval = uint8(0) + if Int32FromUint8(**(**uint8)(__ccgo_up(src))) != int32('\\') { + v1 = dest + dest = dest + 1 + v2 = src + src = src + 1 + **(**uint8)(__ccgo_up(v1)) = **(**uint8)(__ccgo_up(v2)) + continue + } + if Int32FromUint8(**(**uint8)(__ccgo_up(src + 1))) == int32('\\') { + src = src + 1 + v1 = dest + dest = dest + 1 + v2 = src + src = src + 1 + **(**uint8)(__ccgo_up(v1)) = **(**uint8)(__ccgo_up(v2)) + continue + } + val = src + uintptr(1) + i = 0 + for { + if !(i < int32(3)) { + break + } + if Int32FromUint8(**(**uint8)(__ccgo_up(val))) >= int32('0') && Int32FromUint8(**(**uint8)(__ccgo_up(val))) <= int32('7') { + cval = Uint8FromInt32(int32(cval) << Int32FromInt32(3)) + v1 = val + val = val + 1 + cval = Uint8FromInt32(int32(cval) + (Int32FromUint8(**(**uint8)(__ccgo_up(v1))) - Int32FromUint8('0'))) + } else { + break + } + goto _5 + _5: + ; + i = i + 1 + } + if cval != 0 { + v1 = dest + dest = dest + 1 + **(**uint8)(__ccgo_up(v1)) = cval + src = val + } else { + v1 = dest + dest = dest + 1 + v2 = src + src = src + 1 + **(**uint8)(__ccgo_up(v1)) = **(**uint8)(__ccgo_up(v2)) + } + } + **(**uint8)(__ccgo_up(dest)) = uint8(0) + return beg +} + +func Xgetmntent_r(tls *TLS, f uintptr, mnt uintptr, linebuf uintptr, buflen int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v mnt=%v linebuf=%v buflen=%v, (%v:)", tls, f, mnt, linebuf, buflen, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(128) + defer tls.Free(128) + var i, len1 Tsize_t + var use_internal int32 + var _ /* n at bp+0 */ [8]int32 + _, _, _ = i, len1, use_internal + use_internal = BoolInt32(linebuf == uintptr(unsafe.Pointer(&_internal_buf))) + (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_freq = 0 + (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_passno = 0 + for cond := true; cond; cond = Int32FromUint8(**(**uint8)(__ccgo_up(linebuf + uintptr((**(**[8]int32)(__ccgo_up(bp)))[0])))) == int32('#') || Uint64FromInt32((**(**[8]int32)(__ccgo_up(bp)))[int32(1)]) == len1 { + if use_internal != 0 { + Xgetline(tls, uintptr(unsafe.Pointer(&_internal_buf)), uintptr(unsafe.Pointer(&_internal_bufsize)), f) + linebuf = _internal_buf + } else { + Xfgets(tls, linebuf, buflen, f) + } + if Xfeof(tls, f) != 0 || Xferror(tls, f) != 0 { + return uintptr(0) + } + if !(Xstrchr(tls, linebuf, int32('\n')) != 0) { + Xfscanf(tls, f, __ccgo_ts+855, 0) + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ERANGE) + return uintptr(0) + } + len1 = _strlen(tls, linebuf) + if len1 > uint64(INT_MAX) { + continue + } + i = uint64(0) + for { + if !(i < Uint64FromInt64(32)/Uint64FromInt64(4)) { + break + } + (**(**[8]int32)(__ccgo_up(bp)))[i] = Int32FromUint64(len1) + goto _1 + _1: + ; + i = i + 1 + } + Xsscanf(tls, linebuf, __ccgo_ts+867, VaList(bp+40, bp, bp+uintptr(1)*4, bp+uintptr(2)*4, bp+uintptr(3)*4, bp+uintptr(4)*4, bp+uintptr(5)*4, bp+uintptr(6)*4, bp+uintptr(7)*4, mnt+32, mnt+36)) + } + **(**uint8)(__ccgo_up(linebuf + uintptr((**(**[8]int32)(__ccgo_up(bp)))[int32(1)]))) = uint8(0) + **(**uint8)(__ccgo_up(linebuf + uintptr((**(**[8]int32)(__ccgo_up(bp)))[int32(3)]))) = uint8(0) + **(**uint8)(__ccgo_up(linebuf + uintptr((**(**[8]int32)(__ccgo_up(bp)))[int32(5)]))) = uint8(0) + **(**uint8)(__ccgo_up(linebuf + uintptr((**(**[8]int32)(__ccgo_up(bp)))[int32(7)]))) = uint8(0) + (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_fsname = _unescape_ent(tls, linebuf+uintptr((**(**[8]int32)(__ccgo_up(bp)))[0])) + (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_dir = _unescape_ent(tls, linebuf+uintptr((**(**[8]int32)(__ccgo_up(bp)))[int32(2)])) + (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_type = _unescape_ent(tls, linebuf+uintptr((**(**[8]int32)(__ccgo_up(bp)))[int32(4)])) + (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_opts = _unescape_ent(tls, linebuf+uintptr((**(**[8]int32)(__ccgo_up(bp)))[int32(6)])) + return mnt +} + +func Xgetmntent(tls *TLS, f uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetmntent_r(tls, f, uintptr(unsafe.Pointer(&_mnt)), uintptr(unsafe.Pointer(&_internal_buf)), 0) +} + +var _mnt Tmntent + +func Xaddmntent(tls *TLS, f uintptr, mnt uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v mnt=%v, (%v:)", tls, f, mnt, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + if Xfseek(tls, f, 0, int32(2)) != 0 { + return int32(1) + } + return BoolInt32(Xfprintf(tls, f, __ccgo_ts+922, VaList(bp+8, (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_fsname, (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_dir, (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_type, (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_opts, (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_freq, (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_passno)) < 0) +} + +func Xhasmntopt(tls *TLS, mnt uintptr, opt uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v mnt=%v opt=%v, (%v:)", tls, mnt, opt, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrstr(tls, (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_opts, opt) +} + +type Thistory = struct { + Fchain uintptr + Fdev Tdev_t + Fino Tino_t + Flevel int32 + Fbase int32 +} + +func _do_nftw(tls *TLS, path uintptr, __ccgo_fp_fn uintptr, fd_limit int32, flags int32, h uintptr) (r1 int32) { + bp := tls.Alloc(192) + defer tls.Free(192) + var d, de, v10 uintptr + var dfd, err, r, type1, v3 int32 + var j, k, l Tsize_t + var v1 uint64 + var v8 bool + var v2 Tino_t + var _ /* lev at bp+176 */ TFTW + var _ /* new at bp+144 */ Thistory + var _ /* st at bp+0 */ Tstat + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = d, de, dfd, err, j, k, l, r, type1, v1, v10, v2, v3, v8 + l = _strlen(tls, path) + if l != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(path + uintptr(l-uint64(1))))) == int32('/') { + v1 = l - uint64(1) + } else { + v1 = l + } + j = v1 + v2 = Uint64FromInt32(0) + (**(**Tstat)(__ccgo_up(bp))).Fst_ino = v2 + (**(**Tstat)(__ccgo_up(bp))).Fst_dev = v2 + if flags&int32(FTW_PHYS) != 0 { + v3 = Xlstat(tls, path, bp) + } else { + v3 = BoolInt32(Xstat(tls, path, bp) < 0) + } + if v3 != 0 { + if !(flags&Int32FromInt32(FTW_PHYS) != 0) && **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(ENOENT) && !(Xlstat(tls, path, bp) != 0) { + type1 = int32(FTW_SLN) + } else { + if **(**int32)(__ccgo_up(X__errno_location(tls))) != int32(EACCES) { + return -int32(1) + } else { + type1 = int32(FTW_NS) + } + } + } else { + if (**(**Tstat)(__ccgo_up(bp))).Fst_mode&uint32(S_IFMT) == uint32(S_IFDIR) { + if flags&int32(FTW_DEPTH) != 0 { + type1 = int32(FTW_DP) + } else { + type1 = int32(FTW_D) + } + } else { + if (**(**Tstat)(__ccgo_up(bp))).Fst_mode&uint32(S_IFMT) == uint32(S_IFLNK) { + if flags&int32(FTW_PHYS) != 0 { + type1 = int32(FTW_SL) + } else { + type1 = int32(FTW_SLN) + } + } else { + type1 = int32(FTW_F) + } + } + } + if flags&int32(FTW_MOUNT) != 0 && h != 0 && type1 != int32(FTW_NS) && (**(**Tstat)(__ccgo_up(bp))).Fst_dev != (*Thistory)(unsafe.Pointer(h)).Fdev { + return 0 + } + (**(**Thistory)(__ccgo_up(bp + 144))).Fchain = h + (**(**Thistory)(__ccgo_up(bp + 144))).Fdev = (**(**Tstat)(__ccgo_up(bp))).Fst_dev + (**(**Thistory)(__ccgo_up(bp + 144))).Fino = (**(**Tstat)(__ccgo_up(bp))).Fst_ino + if h != 0 { + v3 = (*Thistory)(unsafe.Pointer(h)).Flevel + int32(1) + } else { + v3 = 0 + } + (**(**Thistory)(__ccgo_up(bp + 144))).Flevel = v3 + (**(**Thistory)(__ccgo_up(bp + 144))).Fbase = Int32FromUint64(j + uint64(1)) + (**(**TFTW)(__ccgo_up(bp + 176))).Flevel = (**(**Thistory)(__ccgo_up(bp + 144))).Flevel + if h != 0 { + (**(**TFTW)(__ccgo_up(bp + 176))).Fbase = (*Thistory)(unsafe.Pointer(h)).Fbase + } else { + k = j + for { + if !(k != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(path + uintptr(k)))) == int32('/')) { + break + } + goto _5 + _5: + ; + k = k - 1 + } + for { + if !(k != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(path + uintptr(k-uint64(1))))) != int32('/')) { + break + } + goto _6 + _6: + ; + k = k - 1 + } + (**(**TFTW)(__ccgo_up(bp + 176))).Fbase = Int32FromUint64(k) + } + if type1 == int32(FTW_D) || type1 == int32(FTW_DP) { + dfd = Xopen(tls, path, O_RDONLY, 0) + err = **(**int32)(__ccgo_up(X__errno_location(tls))) + if dfd < 0 && err == int32(EACCES) { + type1 = int32(FTW_DNR) + } + if !(fd_limit != 0) { + Xclose(tls, dfd) + } + } + if v8 = !(flags&Int32FromInt32(FTW_DEPTH) != 0); v8 { + v3 = (*(*func(*TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_fn})))(tls, path, bp, type1, bp+176) + r = v3 + } + if v8 && v3 != 0 { + return r + } + for { + if !(h != 0) { + break + } + if (*Thistory)(unsafe.Pointer(h)).Fdev == (**(**Tstat)(__ccgo_up(bp))).Fst_dev && (*Thistory)(unsafe.Pointer(h)).Fino == (**(**Tstat)(__ccgo_up(bp))).Fst_ino { + return 0 + } + goto _9 + _9: + ; + h = (*Thistory)(unsafe.Pointer(h)).Fchain + } + if (type1 == int32(FTW_D) || type1 == int32(FTW_DP)) && fd_limit != 0 { + if dfd < 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = err + return -int32(1) + } + d = Xfdopendir(tls, dfd) + if d != 0 { + for { + v10 = Xreaddir(tls, d) + de = v10 + if !(v10 != 0) { + break + } + if Int32FromUint8(**(**uint8)(__ccgo_up(de + 19))) == int32('.') && (!(**(**uint8)(__ccgo_up(de + 19 + 1)) != 0) || Int32FromUint8(**(**uint8)(__ccgo_up(de + 19 + 1))) == int32('.') && !(**(**uint8)(__ccgo_up(de + 19 + 2)) != 0)) { + continue + } + if _strlen(tls, de+19) >= uint64(PATH_MAX)-l { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENAMETOOLONG) + Xclosedir(tls, d) + return -int32(1) + } + **(**uint8)(__ccgo_up(path + uintptr(j))) = uint8('/') + Xstrcpy(tls, path+uintptr(j)+uintptr(1), de+19) + v3 = _do_nftw(tls, path, __ccgo_fp_fn, fd_limit-int32(1), flags, bp+144) + r = v3 + if v3 != 0 { + Xclosedir(tls, d) + return r + } + } + Xclosedir(tls, d) + } else { + Xclose(tls, dfd) + return -int32(1) + } + } + **(**uint8)(__ccgo_up(path + uintptr(l))) = uint8(0) + if v8 = flags&int32(FTW_DEPTH) != 0; v8 { + v3 = (*(*func(*TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_fn})))(tls, path, bp, type1, bp+176) + r = v3 + } + if v8 && v3 != 0 { + return r + } + return 0 +} + +type t__ccgo_fp__Xnftw_1 = func(*TLS, uintptr, uintptr, int32, uintptr) int32 + +func Xnftw(tls *TLS, path uintptr, __ccgo_fp_fn uintptr, fd_limit int32, flags int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v path=%v __ccgo_fp_fn=%v fd_limit=%v flags=%v, (%v:)", tls, path, __ccgo_fp_fn, fd_limit, flags, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(4112) + defer tls.Free(4112) + var l Tsize_t + var r int32 + var _ /* cs at bp+0 */ int32 + var _ /* pathbuf at bp+4 */ [4097]uint8 + _, _ = l, r + if fd_limit <= 0 { + return 0 + } + l = _strlen(tls, path) + if l > uint64(PATH_MAX) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENAMETOOLONG) + return -int32(1) + } + Xmemcpy(tls, bp+4, path, l+uint64(1)) + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp) + r = _do_nftw(tls, bp+4, __ccgo_fp_fn, fd_limit, flags, UintptrFromInt32(0)) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp)), uintptr(0)) + return r +} + +/* Nonstandard, but vastly superior to the standard functions */ + +func Xopenpty(tls *TLS, pm uintptr, ps uintptr, name uintptr, tio uintptr, ws uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v pm=%v ps=%v name=%v tio=%v ws=%v, (%v:)", tls, pm, ps, name, tio, ws, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + var m, s, v1 int32 + var _ /* buf at bp+8 */ [20]uint8 + var _ /* cs at bp+4 */ int32 + var _ /* n at bp+0 */ int32 + _, _, _ = m, s, v1 + **(**int32)(__ccgo_up(bp)) = 0 + m = Xopen(tls, __ccgo_ts+941, Int32FromInt32(O_RDWR)|Int32FromInt32(O_NOCTTY), 0) + if m < 0 { + return -int32(1) + } + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp+4) + if Xioctl(tls, m, Int32FromUint64(uint64(Uint32FromUint32(4)< %v", r) }() + } + var err int32 + _ = err + err = X__ptsname_r(tls, fd, uintptr(unsafe.Pointer(&_buf2)), uint64(22)) + if err != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = err + return uintptr(0) + } + return uintptr(unsafe.Pointer(&_buf2)) +} + +var _buf2 [22]uint8 + +func Xposix_openpt(tls *TLS, flags int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v flags=%v, (%v:)", tls, flags, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + r = Xopen(tls, __ccgo_ts+941, flags, 0) + if r < 0 && **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(ENOSPC) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EAGAIN) + } + return r +} + +func Xgrantpt(tls *TLS, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + return 0 +} + +func Xunlockpt(tls *TLS, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var _ /* unlock at bp+0 */ int32 + **(**int32)(__ccgo_up(bp)) = 0 + return Xioctl(tls, fd, Int32FromUint64(uint64(Uint32FromUint32(4)< %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var err, v1 int32 + var _ /* pty at bp+0 */ int32 + _, _ = err, v1 + if !(buf != 0) { + len1 = uint64(0) + } + v1 = int32(X__syscall3(tls, int64(SYS_ioctl), int64(fd), Int64FromUint64(uint64(Uint32FromUint32(2)<= len1 { + return int32(ERANGE) + } + return 0 +} + +func Xptsname_r(tls *TLS, fd int32, buf uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v len1=%v, (%v:)", tls, fd, buf, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__ptsname_r(tls, fd, buf, len1) +} + +func _slash_len(tls *TLS, s uintptr) (r Tsize_t) { + var s0 uintptr + _ = s0 + s0 = s + for Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('/') { + s = s + 1 + } + return Uint64FromInt64(int64(s) - int64(s0)) +} + +func Xrealpath(tls *TLS, filename uintptr, resolved uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v filename=%v resolved=%v, (%v:)", tls, filename, resolved, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(8208) + defer tls.Free(8208) + var check_dir, up int32 + var cnt, l, l0, nup, p, q, v4 Tsize_t + var k Tssize_t + var z uintptr + var _ /* output at bp+4097 */ [4096]uint8 + var _ /* stack at bp+0 */ [4097]uint8 + _, _, _, _, _, _, _, _, _, _, _ = check_dir, cnt, k, l, l0, nup, p, q, up, z, v4 + cnt = uint64(0) + nup = uint64(0) + check_dir = 0 + if !(filename != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(0) + } + l = Xstrnlen(tls, filename, uint64(4097)) + if !(l != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOENT) + return uintptr(0) + } + if l >= uint64(PATH_MAX) { + goto toolong + } + p = uint64(4097) - l - uint64(1) + q = uint64(0) + Xmemcpy(tls, bp+uintptr(p), filename, l+uint64(1)) + /* Main loop. Each iteration pops the next part from stack of + * remaining path components and consumes any slashes that follow. + * If not a link, it's moved to output; if a link, contents are + * pushed to the stack. */ + goto restart +restart: + ; +_3: + ; + /* If stack starts with /, the whole component is / or // + * and the output state must be reset. */ + if Int32FromUint8((**(**[4097]uint8)(__ccgo_up(bp)))[p]) == int32('/') { + check_dir = 0 + nup = uint64(0) + q = uint64(0) + v4 = q + q = q + 1 + (**(**[4096]uint8)(__ccgo_up(bp + 4097)))[v4] = uint8('/') + p = p + 1 + /* Initial // is special. */ + if Int32FromUint8((**(**[4097]uint8)(__ccgo_up(bp)))[p]) == int32('/') && Int32FromUint8((**(**[4097]uint8)(__ccgo_up(bp)))[p+uint64(1)]) != int32('/') { + v4 = q + q = q + 1 + (**(**[4096]uint8)(__ccgo_up(bp + 4097)))[v4] = uint8('/') + } + goto _2 + } + z = X__strchrnul(tls, bp+uintptr(p), int32('/')) + v4 = Uint64FromInt64(int64(z) - int64(bp+uintptr(p))) + l = v4 + l0 = v4 + if !(l != 0) && !(check_dir != 0) { + goto _1 + } + /* Skip any . component but preserve check_dir status. */ + if l == uint64(1) && Int32FromUint8((**(**[4097]uint8)(__ccgo_up(bp)))[p]) == int32('.') { + p = p + l + goto _2 + } + /* Copy next component onto output at least temporarily, to + * call readlink, but wait to advance output position until + * determining it's not a link. */ + if q != 0 && Int32FromUint8((**(**[4096]uint8)(__ccgo_up(bp + 4097)))[q-uint64(1)]) != int32('/') { + if !(p != 0) { + goto toolong + } + p = p - 1 + v4 = p + (**(**[4097]uint8)(__ccgo_up(bp)))[v4] = uint8('/') + l = l + 1 + } + if q+l >= uint64(PATH_MAX) { + goto toolong + } + Xmemcpy(tls, bp+4097+uintptr(q), bp+uintptr(p), l) + (**(**[4096]uint8)(__ccgo_up(bp + 4097)))[q+l] = uint8(0) + p = p + l + up = 0 + if l0 == uint64(2) && Int32FromUint8((**(**[4097]uint8)(__ccgo_up(bp)))[p-uint64(2)]) == int32('.') && Int32FromUint8((**(**[4097]uint8)(__ccgo_up(bp)))[p-uint64(1)]) == int32('.') { + up = int32(1) + /* Any non-.. path components we could cancel start + * after nup repetitions of the 3-byte string "../"; + * if there are none, accumulate .. components to + * later apply to cwd, if needed. */ + if q <= uint64(3)*nup { + nup = nup + 1 + q = q + l + goto _2 + } + /* When previous components are already known to be + * directories, processing .. can skip readlink. */ + if !(check_dir != 0) { + goto skip_readlink + } + } + k = Xreadlink(tls, bp+4097, bp, p) + if Uint64FromInt64(k) == p { + goto toolong + } + if !(k != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOENT) + return uintptr(0) + } + if !(k < 0) { + goto _8 + } + if **(**int32)(__ccgo_up(X__errno_location(tls))) != int32(EINVAL) { + return uintptr(0) + } + goto skip_readlink +skip_readlink: + ; + check_dir = 0 + if up != 0 { + for q != 0 && Int32FromUint8((**(**[4096]uint8)(__ccgo_up(bp + 4097)))[q-uint64(1)]) != int32('/') { + q = q - 1 + } + if q > uint64(1) && (q > uint64(2) || Int32FromUint8((**(**[4096]uint8)(__ccgo_up(bp + 4097)))[0]) != int32('/')) { + q = q - 1 + } + goto _2 + } + if l0 != 0 { + q = q + l + } + check_dir = Int32FromUint8((**(**[4097]uint8)(__ccgo_up(bp)))[p]) + goto _2 +_8: + ; + cnt = cnt + 1 + v4 = cnt + if v4 == uint64(SYMLOOP_MAX) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ELOOP) + return uintptr(0) + } + /* If link contents end in /, strip any slashes already on + * stack to avoid /->// or //->/// or spurious toolong. */ + if Int32FromUint8((**(**[4097]uint8)(__ccgo_up(bp)))[k-int64(1)]) == int32('/') { + for Int32FromUint8((**(**[4097]uint8)(__ccgo_up(bp)))[p]) == int32('/') { + p = p + 1 + } + } + p = p - Uint64FromInt64(k) + Xmemmove(tls, bp+uintptr(p), bp, Uint64FromInt64(k)) + /* Skip the stack advancement in case we have a new + * absolute base path. */ + goto restart + goto _2 +_2: + ; + p = p + _slash_len(tls, bp+uintptr(p)) + goto _3 + goto _1 +_1: + ; + (**(**[4096]uint8)(__ccgo_up(bp + 4097)))[q] = uint8(0) + if Int32FromUint8((**(**[4096]uint8)(__ccgo_up(bp + 4097)))[0]) != int32('/') { + if !(Xgetcwd(tls, bp, uint64(4097)) != 0) { + return uintptr(0) + } + l = _strlen(tls, bp) + /* Cancel any initial .. components. */ + p = uint64(0) + for { + v4 = nup + nup = nup - 1 + if !(v4 != 0) { + break + } + for l > uint64(1) && Int32FromUint8((**(**[4097]uint8)(__ccgo_up(bp)))[l-uint64(1)]) != int32('/') { + l = l - 1 + } + if l > uint64(1) { + l = l - 1 + } + p = p + uint64(2) + if p < q { + p = p + 1 + } + } + if q-p != 0 && Int32FromUint8((**(**[4097]uint8)(__ccgo_up(bp)))[l-uint64(1)]) != int32('/') { + v4 = l + l = l + 1 + (**(**[4097]uint8)(__ccgo_up(bp)))[v4] = uint8('/') + } + if l+(q-p)+uint64(1) >= uint64(PATH_MAX) { + goto toolong + } + Xmemmove(tls, bp+4097+uintptr(l), bp+4097+uintptr(p), q-p+uint64(1)) + Xmemcpy(tls, bp+4097, bp, l) + q = l + q - p + } + if resolved != 0 { + return Xmemcpy(tls, resolved, bp+4097, q+uint64(1)) + } else { + return Xstrdup(tls, bp+4097) + } + goto toolong +toolong: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENAMETOOLONG) + return uintptr(0) +} + +func Xsetdomainname(tls *TLS, name uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v len1=%v, (%v:)", tls, name, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_setdomainname), int64(name), Int64FromUint64(len1))))) +} + +func Xsetpriority(tls *TLS, which int32, who Tid_t, prio int32) (r int32) { + if __ccgo_strace { + trc("tls=%v which=%v who=%v prio=%v, (%v:)", tls, which, who, prio, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_setpriority), int64(which), Int64FromUint32(who), int64(prio))))) +} + +type Tctx = struct { + Flim [2]uint64 + Fres int32 + Ferr int32 +} + +func _do_setrlimit(tls *TLS, p uintptr) { + var c uintptr + _ = c + c = p + if (*Tctx)(unsafe.Pointer(c)).Ferr > 0 { + return + } + (*Tctx)(unsafe.Pointer(c)).Ferr = int32(-X__syscall2(tls, int64(SYS_setrlimit), int64((*Tctx)(unsafe.Pointer(c)).Fres), int64(c))) +} + +func Xsetrlimit(tls *TLS, resource int32, rlim uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v resource=%v rlim=%v, (%v:)", tls, resource, rlim, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + var ret int32 + var v1, v2 uint64 + var _ /* c at bp+16 */ Tctx + var _ /* tmp at bp+0 */ Trlimit + _, _, _ = ret, v1, v2 + if ^Uint64FromUint64(0) != ^Uint64FromUint64(0) { + **(**Trlimit)(__ccgo_up(bp)) = **(**Trlimit)(__ccgo_up(rlim)) + if (**(**Trlimit)(__ccgo_up(bp))).Frlim_cur >= ^Uint64FromUint64(0) { + (**(**Trlimit)(__ccgo_up(bp))).Frlim_cur = ^Uint64FromUint64(0) + } + if (**(**Trlimit)(__ccgo_up(bp))).Frlim_max >= ^Uint64FromUint64(0) { + (**(**Trlimit)(__ccgo_up(bp))).Frlim_max = ^Uint64FromUint64(0) + } + rlim = bp + } + ret = int32(X__syscall4(tls, int64(SYS_prlimit64), int64(Int32FromInt32(0)), int64(resource), int64(rlim), int64(Int32FromInt32(0)))) + if ret != -int32(ENOSYS) { + return int32(X__syscall_ret(tls, Uint64FromInt32(ret))) + } + if (*Trlimit)(unsafe.Pointer(rlim)).Frlim_cur < ^Uint64FromUint64(0) { + v1 = (*Trlimit)(unsafe.Pointer(rlim)).Frlim_cur + } else { + v1 = ^Uint64FromUint64(0) + } + if (*Trlimit)(unsafe.Pointer(rlim)).Frlim_max < ^Uint64FromUint64(0) { + v2 = (*Trlimit)(unsafe.Pointer(rlim)).Frlim_max + } else { + v2 = ^Uint64FromUint64(0) + } + **(**Tctx)(__ccgo_up(bp + 16)) = Tctx{ + Flim: [2]uint64{ + 0: v1, + 1: v2, + }, + Fres: resource, + Ferr: -int32(1), + } + ___synccall(tls, __ccgo_fp(_do_setrlimit), bp+16) + if (**(**Tctx)(__ccgo_up(bp + 16))).Ferr != 0 { + if (**(**Tctx)(__ccgo_up(bp + 16))).Ferr > 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = (**(**Tctx)(__ccgo_up(bp + 16))).Ferr + } + return -int32(1) + } + return 0 +} + +func Xsyscall(tls *TLS, n int64, va uintptr) (r int64) { + if __ccgo_strace { + trc("tls=%v n=%v va=%v, (%v:)", tls, n, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, b, c, d, e, f Tsyscall_arg_t + var ap Tva_list + _, _, _, _, _, _, _ = a, ap, b, c, d, e, f + ap = va + a = VaInt64(&ap) + b = VaInt64(&ap) + c = VaInt64(&ap) + d = VaInt64(&ap) + e = VaInt64(&ap) + f = VaInt64(&ap) + _ = ap + return X__syscall_ret(tls, Uint64FromInt64(X__syscall6(tls, n, a, b, c, d, e, f))) +} + +const AF_ALG = 38 +const AF_APPLETALK = 5 +const AF_ASH = 18 +const AF_ATMPVC = 8 +const AF_ATMSVC = 20 +const AF_AX25 = 3 +const AF_BLUETOOTH = 31 +const AF_BRIDGE = 7 +const AF_CAIF = 37 +const AF_CAN = 29 +const AF_DECnet = 12 +const AF_ECONET = 19 +const AF_FILE = 1 +const AF_IB = 27 +const AF_IEEE802154 = 36 +const AF_INET = 2 +const AF_INET6 = 10 +const AF_IPX = 4 +const AF_IRDA = 23 +const AF_ISDN = 34 +const AF_IUCV = 32 +const AF_KCM = 41 +const AF_KEY = 15 +const AF_LLC = 26 +const AF_LOCAL = 1 +const AF_MAX = 45 +const AF_MPLS = 28 +const AF_NETBEUI = 13 +const AF_NETLINK = 16 +const AF_NETROM = 6 +const AF_NFC = 39 +const AF_PACKET = 17 +const AF_PHONET = 35 +const AF_PPPOX = 24 +const AF_QIPCRTR = 42 +const AF_RDS = 21 +const AF_ROSE = 11 +const AF_ROUTE = 16 +const AF_RXRPC = 33 +const AF_SECURITY = 14 +const AF_SMC = 43 +const AF_SNA = 22 +const AF_TIPC = 30 +const AF_UNIX = 1 +const AF_UNSPEC = 0 +const AF_VSOCK = 40 +const AF_WANPIPE = 25 +const AF_X25 = 9 +const AF_XDP = 44 +const LOG_ALERT = 1 +const LOG_AUTH = 32 +const LOG_AUTHPRIV = 80 +const LOG_CONS = 2 +const LOG_CRIT = 2 +const LOG_CRON = 72 +const LOG_DAEMON = 24 +const LOG_DEBUG = 7 +const LOG_EMERG = 0 +const LOG_ERR = 3 +const LOG_FACMASK = 1016 +const LOG_FTP = 88 +const LOG_INFO = 6 +const LOG_KERN = 0 +const LOG_LOCAL0 = 128 +const LOG_LOCAL1 = 136 +const LOG_LOCAL2 = 144 +const LOG_LOCAL3 = 152 +const LOG_LOCAL4 = 160 +const LOG_LOCAL5 = 168 +const LOG_LOCAL6 = 176 +const LOG_LOCAL7 = 184 +const LOG_LPR = 48 +const LOG_MAIL = 16 +const LOG_NDELAY = 8 +const LOG_NEWS = 56 +const LOG_NFACILITIES = 24 +const LOG_NOTICE = 5 +const LOG_NOWAIT = 16 +const LOG_ODELAY = 4 +const LOG_PERROR = 32 +const LOG_PID = 1 +const LOG_PRIMASK = 7 +const LOG_SYSLOG = 40 +const LOG_USER = 8 +const LOG_UUCP = 64 +const LOG_WARNING = 4 +const MSG_BATCH = 262144 +const MSG_CMSG_CLOEXEC = 1073741824 +const MSG_CONFIRM = 2048 +const MSG_CTRUNC = 8 +const MSG_DONTROUTE = 4 +const MSG_DONTWAIT = 64 +const MSG_EOR = 128 +const MSG_ERRQUEUE = 8192 +const MSG_FASTOPEN = 536870912 +const MSG_FIN = 512 +const MSG_MORE = 32768 +const MSG_NOSIGNAL = 16384 +const MSG_OOB = 1 +const MSG_PEEK = 2 +const MSG_PROXY = 16 +const MSG_RST = 4096 +const MSG_SYN = 1024 +const MSG_TRUNC = 32 +const MSG_WAITALL = 256 +const MSG_WAITFORONE = 65536 +const MSG_ZEROCOPY = 67108864 +const PF_ALG = 38 +const PF_APPLETALK = 5 +const PF_ASH = 18 +const PF_ATMPVC = 8 +const PF_ATMSVC = 20 +const PF_AX25 = 3 +const PF_BLUETOOTH = 31 +const PF_BRIDGE = 7 +const PF_CAIF = 37 +const PF_CAN = 29 +const PF_DECnet = 12 +const PF_ECONET = 19 +const PF_FILE = 1 +const PF_IB = 27 +const PF_IEEE802154 = 36 +const PF_INET = 2 +const PF_INET6 = 10 +const PF_IPX = 4 +const PF_IRDA = 23 +const PF_ISDN = 34 +const PF_IUCV = 32 +const PF_KCM = 41 +const PF_KEY = 15 +const PF_LLC = 26 +const PF_LOCAL = 1 +const PF_MAX = 45 +const PF_MPLS = 28 +const PF_NETBEUI = 13 +const PF_NETLINK = 16 +const PF_NETROM = 6 +const PF_NFC = 39 +const PF_PACKET = 17 +const PF_PHONET = 35 +const PF_PPPOX = 24 +const PF_QIPCRTR = 42 +const PF_RDS = 21 +const PF_ROSE = 11 +const PF_ROUTE = 16 +const PF_RXRPC = 33 +const PF_SECURITY = 14 +const PF_SMC = 43 +const PF_SNA = 22 +const PF_TIPC = 30 +const PF_UNIX = 1 +const PF_UNSPEC = 0 +const PF_VSOCK = 40 +const PF_WANPIPE = 25 +const PF_X25 = 9 +const PF_XDP = 44 +const SCM_CREDENTIALS = 2 +const SCM_RIGHTS = 1 +const SCM_TIMESTAMP = 29 +const SCM_TIMESTAMPING = 37 +const SCM_TIMESTAMPING_OPT_STATS = 54 +const SCM_TIMESTAMPING_PKTINFO = 58 +const SCM_TIMESTAMPNS = 35 +const SCM_TXTIME = 61 +const SCM_WIFI_STATUS = 41 +const SHUT_RD = 0 +const SHUT_RDWR = 2 +const SHUT_WR = 1 +const SOCK_CLOEXEC = 524288 +const SOCK_DCCP = 6 +const SOCK_DGRAM = 2 +const SOCK_NONBLOCK = 2048 +const SOCK_PACKET = 10 +const SOCK_RAW = 3 +const SOCK_RDM = 4 +const SOCK_SEQPACKET = 5 +const SOCK_STREAM = 1 +const SOL_AAL = 265 +const SOL_ALG = 279 +const SOL_ATM = 264 +const SOL_BLUETOOTH = 274 +const SOL_CAIF = 278 +const SOL_DCCP = 269 +const SOL_DECNET = 261 +const SOL_ICMPV6 = 58 +const SOL_IP = 0 +const SOL_IPV6 = 41 +const SOL_IRDA = 266 +const SOL_IUCV = 277 +const SOL_KCM = 281 +const SOL_LLC = 268 +const SOL_NETBEUI = 267 +const SOL_NETLINK = 270 +const SOL_NFC = 280 +const SOL_PACKET = 263 +const SOL_PNPIPE = 275 +const SOL_PPPOL2TP = 273 +const SOL_RAW = 255 +const SOL_RDS = 276 +const SOL_RXRPC = 272 +const SOL_SOCKET = 1 +const SOL_TIPC = 271 +const SOL_TLS = 282 +const SOL_X25 = 262 +const SOL_XDP = 283 +const SOMAXCONN = 128 +const SO_ACCEPTCONN = 30 +const SO_ATTACH_BPF = 50 +const SO_ATTACH_FILTER = 26 +const SO_ATTACH_REUSEPORT_CBPF = 51 +const SO_ATTACH_REUSEPORT_EBPF = 52 +const SO_BINDTODEVICE = 25 +const SO_BINDTOIFINDEX = 62 +const SO_BPF_EXTENSIONS = 48 +const SO_BROADCAST = 6 +const SO_BSDCOMPAT = 14 +const SO_BUSY_POLL = 46 +const SO_BUSY_POLL_BUDGET = 70 +const SO_CNX_ADVICE = 53 +const SO_COOKIE = 57 +const SO_DEBUG = 1 +const SO_DETACH_BPF = 27 +const SO_DETACH_FILTER = 27 +const SO_DETACH_REUSEPORT_BPF = 68 +const SO_DOMAIN = 39 +const SO_DONTROUTE = 5 +const SO_ERROR = 4 +const SO_GET_FILTER = 26 +const SO_INCOMING_CPU = 49 +const SO_INCOMING_NAPI_ID = 56 +const SO_KEEPALIVE = 9 +const SO_LINGER = 13 +const SO_LOCK_FILTER = 44 +const SO_MARK = 36 +const SO_MAX_PACING_RATE = 47 +const SO_MEMINFO = 55 +const SO_NOFCS = 43 +const SO_NO_CHECK = 11 +const SO_OOBINLINE = 10 +const SO_PASSCRED = 20 +const SO_PASSSEC = 34 +const SO_PEEK_OFF = 42 +const SO_PEERCRED = 21 +const SO_PEERGROUPS = 59 +const SO_PEERNAME = 28 +const SO_PEERSEC = 31 +const SO_PREFER_BUSY_POLL = 69 +const SO_PRIORITY = 12 +const SO_PROTOCOL = 38 +const SO_RCVBUF = 8 +const SO_RCVBUFFORCE = 33 +const SO_RCVLOWAT = 16 +const SO_RCVTIMEO = 18 +const SO_REUSEADDR = 2 +const SO_REUSEPORT = 15 +const SO_RXQ_OVFL = 40 +const SO_SECURITY_AUTHENTICATION = 22 +const SO_SECURITY_ENCRYPTION_NETWORK = 24 +const SO_SECURITY_ENCRYPTION_TRANSPORT = 23 +const SO_SELECT_ERR_QUEUE = 45 +const SO_SNDBUF = 7 +const SO_SNDBUFFORCE = 32 +const SO_SNDLOWAT = 17 +const SO_SNDTIMEO = 19 +const SO_TIMESTAMP = 29 +const SO_TIMESTAMPING = 37 +const SO_TIMESTAMPNS = 35 +const SO_TXTIME = 61 +const SO_TYPE = 3 +const SO_WIFI_STATUS = 41 +const SO_ZEROCOPY = 60 + +type Tsocklen_t = uint32 + +type Tsa_family_t = uint16 + +type Tmsghdr = struct { + Fmsg_name uintptr + Fmsg_namelen Tsocklen_t + Fmsg_iov uintptr + Fmsg_iovlen int32 + F__pad1 int32 + Fmsg_control uintptr + Fmsg_controllen Tsocklen_t + F__pad2 int32 + Fmsg_flags int32 +} + +type Tcmsghdr = struct { + Fcmsg_len Tsocklen_t + F__pad1 int32 + Fcmsg_level int32 + Fcmsg_type int32 +} + +type Tlinger = struct { + Fl_onoff int32 + Fl_linger int32 +} + +type Tsockaddr = struct { + Fsa_family Tsa_family_t + Fsa_data [14]uint8 +} + +type Tsockaddr_storage = struct { + Fss_family Tsa_family_t + F__ss_padding [118]uint8 + F__ss_align uint64 +} + +var _lock2 [1]int32 +var _log_ident [32]uint8 +var _log_opt int32 +var _log_facility = Int32FromInt32(1) << Int32FromInt32(3) +var _log_mask = int32(0xff) +var _log_fd = -int32(1) + +func Xsetlogmask(tls *TLS, maskpri int32) (r int32) { + if __ccgo_strace { + trc("tls=%v maskpri=%v, (%v:)", tls, maskpri, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret int32 + _ = ret + ___lock(tls, uintptr(unsafe.Pointer(&_lock2))) + ret = _log_mask + if maskpri != 0 { + _log_mask = maskpri + } + ___unlock(tls, uintptr(unsafe.Pointer(&_lock2))) + return ret +} + +var _log_addr = struct { + Fsun_family int16 + Fsun_path [9]uint8 +}{ + Fsun_family: int16(PF_LOCAL), + Fsun_path: [9]uint8{'/', 'd', 'e', 'v', '/', 'l', 'o', 'g'}, +} + +func Xcloselog(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* cs at bp+0 */ int32 + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp) + ___lock(tls, uintptr(unsafe.Pointer(&_lock2))) + Xclose(tls, _log_fd) + _log_fd = -int32(1) + ___unlock(tls, uintptr(unsafe.Pointer(&_lock2))) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp)), uintptr(0)) +} + +func ___openlog(tls *TLS) { + _log_fd = Xsocket(tls, int32(PF_LOCAL), Int32FromInt32(SOCK_DGRAM)|Int32FromInt32(SOCK_CLOEXEC), 0) + if _log_fd >= 0 { + Xconnect(tls, _log_fd, uintptr(unsafe.Pointer(&_log_addr)), uint32(12)) + } +} + +func Xopenlog(tls *TLS, ident uintptr, opt int32, facility int32) { + if __ccgo_strace { + trc("tls=%v ident=%v opt=%v facility=%v, (%v:)", tls, ident, opt, facility, origin(2)) + } + bp := tls.Alloc(16) + defer tls.Free(16) + var n Tsize_t + var _ /* cs at bp+0 */ int32 + _ = n + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp) + ___lock(tls, uintptr(unsafe.Pointer(&_lock2))) + if ident != 0 { + n = Xstrnlen(tls, ident, Uint64FromInt64(32)-Uint64FromInt32(1)) + Xmemcpy(tls, uintptr(unsafe.Pointer(&_log_ident)), ident, n) + _log_ident[n] = uint8(0) + } else { + _log_ident[0] = uint8(0) + } + _log_opt = opt + _log_facility = facility + if opt&int32(LOG_NDELAY) != 0 && _log_fd < 0 { + ___openlog(tls) + } + ___unlock(tls, uintptr(unsafe.Pointer(&_lock2))) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp)), uintptr(0)) +} + +func _is_lost_conn(tls *TLS, e int32) (r int32) { + return BoolInt32(e == int32(ECONNREFUSED) || e == int32(ECONNRESET) || e == int32(ENOTCONN) || e == int32(EPIPE)) +} + +func __vsyslog(tls *TLS, priority int32, message uintptr, ap Tva_list) { + bp := tls.Alloc(1184) + defer tls.Free(1184) + var errno_save, fd, l, l2, pid, v1 int32 + var _ /* buf at bp+80 */ [1024]uint8 + var _ /* hlen at bp+1104 */ int32 + var _ /* now at bp+16 */ Ttime_t + var _ /* timebuf at bp+0 */ [16]uint8 + var _ /* tm at bp+24 */ Ttm + _, _, _, _, _, _ = errno_save, fd, l, l2, pid, v1 + errno_save = **(**int32)(__ccgo_up(X__errno_location(tls))) + if _log_fd < 0 { + ___openlog(tls) + } + if !(priority&Int32FromInt32(LOG_FACMASK) != 0) { + priority = priority | _log_facility + } + **(**Ttime_t)(__ccgo_up(bp + 16)) = Xtime(tls, UintptrFromInt32(0)) + Xgmtime_r(tls, bp+16, bp+24) + Xstrftime_l(tls, bp, uint64(16), __ccgo_ts+963, bp+24, uintptr(unsafe.Pointer(&X__c_locale))) + if _log_opt&int32(LOG_PID) != 0 { + v1 = Xgetpid(tls) + } else { + v1 = 0 + } + pid = v1 + l = Xsnprintf(tls, bp+80, uint64(1024), __ccgo_ts+972, VaList(bp+1120, priority, bp, bp+1104, uintptr(unsafe.Pointer(&_log_ident)), __ccgo_ts+994+BoolUintptr(!(pid != 0)), pid, __ccgo_ts+996+BoolUintptr(!(pid != 0)))) + **(**int32)(__ccgo_up(X__errno_location(tls))) = errno_save + l2 = Xvsnprintf(tls, bp+80+uintptr(l), uint64(1024)-Uint64FromInt32(l), message, ap) + if l2 >= 0 { + if Uint64FromInt32(l2) >= uint64(1024)-Uint64FromInt32(l) { + l = Int32FromUint64(Uint64FromInt64(1024) - Uint64FromInt32(1)) + } else { + l = l + l2 + } + if Int32FromUint8((**(**[1024]uint8)(__ccgo_up(bp + 80)))[l-int32(1)]) != int32('\n') { + v1 = l + l = l + 1 + (**(**[1024]uint8)(__ccgo_up(bp + 80)))[v1] = uint8('\n') + } + if Xsend(tls, _log_fd, bp+80, Uint64FromInt32(l), 0) < 0 && (!(_is_lost_conn(tls, **(**int32)(__ccgo_up(X__errno_location(tls)))) != 0) || Xconnect(tls, _log_fd, uintptr(unsafe.Pointer(&_log_addr)), uint32(12)) < 0 || Xsend(tls, _log_fd, bp+80, Uint64FromInt32(l), 0) < 0) && _log_opt&int32(LOG_CONS) != 0 { + fd = Xopen(tls, __ccgo_ts+691, Int32FromInt32(O_WRONLY)|Int32FromInt32(O_NOCTTY)|Int32FromInt32(O_CLOEXEC), 0) + if fd >= 0 { + Xdprintf(tls, fd, __ccgo_ts+998, VaList(bp+1120, l-**(**int32)(__ccgo_up(bp + 1104)), bp+80+uintptr(**(**int32)(__ccgo_up(bp + 1104))))) + Xclose(tls, fd) + } + } + if _log_opt&int32(LOG_PERROR) != 0 { + Xdprintf(tls, int32(2), __ccgo_ts+998, VaList(bp+1120, l-**(**int32)(__ccgo_up(bp + 1104)), bp+80+uintptr(**(**int32)(__ccgo_up(bp + 1104))))) + } + } +} + +func ___vsyslog(tls *TLS, priority int32, message uintptr, ap Tva_list) { + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* cs at bp+0 */ int32 + if !(_log_mask&(Int32FromInt32(1)<<(priority&Int32FromInt32(7))) != 0) || priority & ^Int32FromInt32(0x3ff) != 0 { + return + } + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp) + ___lock(tls, uintptr(unsafe.Pointer(&_lock2))) + __vsyslog(tls, priority, message, ap) + ___unlock(tls, uintptr(unsafe.Pointer(&_lock2))) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp)), uintptr(0)) +} + +func Xsyslog(tls *TLS, priority int32, message uintptr, va uintptr) { + if __ccgo_strace { + trc("tls=%v priority=%v message=%v va=%v, (%v:)", tls, priority, message, va, origin(2)) + } + var ap Tva_list + _ = ap + ap = va + ___vsyslog(tls, priority, message, ap) + _ = ap +} + +type Tutsname1 = struct { + Fsysname [65]uint8 + Fnodename [65]uint8 + Frelease [65]uint8 + Fversion [65]uint8 + Fmachine [65]uint8 + F__domainname [65]uint8 +} + +func Xuname(tls *TLS, uts uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v uts=%v, (%v:)", tls, uts, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_uname), int64(uts))))) +} + +func X__madvise(tls *TLS, addr uintptr, len1 Tsize_t, advice int32) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v len1=%v advice=%v, (%v:)", tls, addr, len1, advice, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_madvise), int64(addr), Int64FromUint64(len1), int64(advice))))) +} + +func Xmadvise(tls *TLS, addr uintptr, len1 Tsize_t, advice int32) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v len1=%v advice=%v, (%v:)", tls, addr, len1, advice, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__madvise(tls, addr, len1, advice) +} + +func Xmincore(tls *TLS, addr uintptr, len1 Tsize_t, vec uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v len1=%v vec=%v, (%v:)", tls, addr, len1, vec, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_mincore), int64(addr), Int64FromUint64(len1), int64(vec))))) +} + +func Xmlock(tls *TLS, addr uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v len1=%v, (%v:)", tls, addr, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_mlock), int64(addr), Int64FromUint64(len1))))) +} + +func Xmlockall(tls *TLS, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v flags=%v, (%v:)", tls, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_mlockall), int64(flags))))) +} + +const OFF_MASK = 4095 +const UNIT = 4096 + +func _dummy5(tls *TLS) { +} + +func X__mmap(tls *TLS, start uintptr, len1 Tsize_t, prot int32, flags int32, fd int32, off Toff_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v start=%v len1=%v prot=%v flags=%v fd=%v off=%v, (%v:)", tls, start, len1, prot, flags, fd, off, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret int64 + _ = ret + if Uint64FromInt64(off)&(-Uint64FromUint64(0x2000)<<(Uint64FromInt32(8)*Uint64FromInt64(8)-Uint64FromInt32(1))|(Uint64FromUint64(4096)-Uint64FromInt32(1))) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(-Int32FromInt32(1)) + } + if len1 >= Uint64FromInt64(Int64FromInt64(INT64_MAX)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOMEM) + return uintptr(-Int32FromInt32(1)) + } + if flags&int32(MAP_FIXED) != 0 { + _dummy5(tls) + } + ret = X__syscall6(tls, int64(SYS_mmap), int64(start), Int64FromUint64(len1), int64(prot), int64(flags), int64(fd), off) + /* Fixup incorrect EPERM from kernel. */ + if ret == int64(-int32(EPERM)) && !(start != 0) && flags&int32(MAP_ANON) != 0 && !(flags&Int32FromInt32(MAP_FIXED) != 0) { + ret = int64(-int32(ENOMEM)) + } + return uintptr(X__syscall_ret(tls, Uint64FromInt64(ret))) +} + +func Xmmap(tls *TLS, start uintptr, len1 Tsize_t, prot int32, flags int32, fd int32, off Toff_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v start=%v len1=%v prot=%v flags=%v fd=%v off=%v, (%v:)", tls, start, len1, prot, flags, fd, off, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__mmap(tls, start, len1, prot, flags, fd, off) +} + +func X__mprotect(tls *TLS, addr uintptr, len1 Tsize_t, prot int32) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v len1=%v prot=%v, (%v:)", tls, addr, len1, prot, origin(2)) + defer func() { trc("-> %v", r) }() + } + var end, start Tsize_t + _, _ = end, start + start = uint64(addr) & -X__libc.Fpage_size + end = uint64(addr+uintptr(len1)+uintptr(X__libc.Fpage_size)-UintptrFromInt32(1)) & -X__libc.Fpage_size + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_mprotect), Int64FromUint64(start), Int64FromUint64(end-start), int64(prot))))) +} + +func Xmprotect(tls *TLS, addr uintptr, len1 Tsize_t, prot int32) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v len1=%v prot=%v, (%v:)", tls, addr, len1, prot, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__mprotect(tls, addr, len1, prot) +} + +func _dummy6(tls *TLS) { +} + +func X__mremap(tls *TLS, old_addr uintptr, old_len Tsize_t, new_len Tsize_t, flags int32, va uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v old_addr=%v old_len=%v new_len=%v flags=%v va=%v, (%v:)", tls, old_addr, old_len, new_len, flags, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var new_addr uintptr + _, _ = ap, new_addr + new_addr = uintptr(0) + if new_len >= Uint64FromInt64(Int64FromInt64(INT64_MAX)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOMEM) + return uintptr(-Int32FromInt32(1)) + } + if flags&int32(MREMAP_FIXED) != 0 { + _dummy6(tls) + ap = va + new_addr = VaUintptr(&ap) + _ = ap + } + return uintptr(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_mremap), int64(old_addr), Int64FromUint64(old_len), Int64FromUint64(new_len), int64(flags), int64(new_addr))))) +} + +func Xmremap(tls *TLS, old_addr uintptr, old_len Tsize_t, new_len Tsize_t, flags int32, va uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v old_addr=%v old_len=%v new_len=%v flags=%v va=%v, (%v:)", tls, old_addr, old_len, new_len, flags, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__mremap(tls, old_addr, old_len, new_len, flags, va) +} + +func Xmsync(tls *TLS, start uintptr, len1 Tsize_t, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v start=%v len1=%v flags=%v, (%v:)", tls, start, len1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_msync), int64(start), Int64FromUint64(len1), int64(flags), 0, 0, 0)))) +} + +func Xmunlock(tls *TLS, addr uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v len1=%v, (%v:)", tls, addr, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_munlock), int64(addr), Int64FromUint64(len1))))) +} + +func Xmunlockall(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall0(tls, int64(SYS_munlockall))))) +} + +func _dummy7(tls *TLS) { +} + +func X__munmap(tls *TLS, start uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v start=%v len1=%v, (%v:)", tls, start, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + _dummy7(tls) + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_munmap), int64(start), Int64FromUint64(len1))))) +} + +func Xmunmap(tls *TLS, start uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v start=%v len1=%v, (%v:)", tls, start, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__munmap(tls, start, len1) +} + +func Xposix_madvise(tls *TLS, addr uintptr, len1 Tsize_t, advice int32) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v len1=%v advice=%v, (%v:)", tls, addr, len1, advice, origin(2)) + defer func() { trc("-> %v", r) }() + } + if advice == int32(MADV_DONTNEED) { + return 0 + } + return int32(-X__syscall3(tls, int64(SYS_madvise), int64(addr), Int64FromUint64(len1), int64(advice))) +} + +func X__shm_mapname(tls *TLS, name uintptr, buf uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v buf=%v, (%v:)", tls, name, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + var p, v1 uintptr + _, _ = p, v1 + for Int32FromUint8(**(**uint8)(__ccgo_up(name))) == int32('/') { + name = name + 1 + } + v1 = X__strchrnul(tls, name, int32('/')) + p = v1 + if **(**uint8)(__ccgo_up(v1)) != 0 || p == name || int64(p)-int64(name) <= int64(2) && Int32FromUint8(**(**uint8)(__ccgo_up(name))) == int32('.') && Int32FromUint8(**(**uint8)(__ccgo_up(p + uintptr(-Int32FromInt32(1))))) == int32('.') { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(0) + } + if int64(p)-int64(name) > int64(NAME_MAX) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENAMETOOLONG) + return uintptr(0) + } + Xmemcpy(tls, buf, __ccgo_ts+1003, uint64(9)) + Xmemcpy(tls, buf+uintptr(9), name, Uint64FromInt64(int64(p)-int64(name)+int64(1))) + return buf +} + +func Xshm_open(tls *TLS, name uintptr, flag int32, mode Tmode_t) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v flag=%v mode=%v, (%v:)", tls, name, flag, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(288) + defer tls.Free(288) + var fd int32 + var v1 uintptr + var _ /* buf at bp+4 */ [265]uint8 + var _ /* cs at bp+0 */ int32 + _, _ = fd, v1 + v1 = X__shm_mapname(tls, name, bp+4) + name = v1 + if !(v1 != 0) { + return -int32(1) + } + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp) + fd = Xopen(tls, name, flag|int32(O_NOFOLLOW)|int32(O_CLOEXEC)|int32(O_NONBLOCK), VaList(bp+280, mode)) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp)), uintptr(0)) + return fd +} + +func Xshm_unlink(tls *TLS, name uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(272) + defer tls.Free(272) + var v1 uintptr + var _ /* buf at bp+0 */ [265]uint8 + _ = v1 + v1 = X__shm_mapname(tls, name, bp) + name = v1 + if !(v1 != 0) { + return -int32(1) + } + return Xunlink(tls, name) +} + +const SA = 194 +const SB = 244 +const bittab = 0 + +func Xbtowc(tls *TLS, c int32) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + var b, v3 int32 + var v1, v2 uint32 + _, _, _, _ = b, v1, v2, v3 + b = Int32FromUint8(Uint8FromInt32(c)) + if Uint32FromInt32(b) < uint32(128) { + v1 = Uint32FromInt32(b) + } else { + if !!(**(**uintptr)(__ccgo_up((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale)) != 0) { + v3 = int32(4) + } else { + v3 = int32(1) + } + if v3 == int32(1) && c != -int32(1) { + v2 = Uint32FromInt32(Int32FromInt32(0xdfff) & int32(int8(c))) + } else { + v2 = uint32(0xffffffff) + } + v1 = v2 + } + return v1 +} + +type Tchar16_t = uint16 + +type Tchar32_t = uint32 + +func Xc16rtomb(tls *TLS, s uintptr, c16 Tchar16_t, ps uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v c16=%v ps=%v, (%v:)", tls, s, c16, ps, origin(2)) + defer func() { trc("-> %v", r) }() + } + var wc Twchar_t + var x uintptr + _, _ = wc, x + if !(ps != 0) { + ps = uintptr(unsafe.Pointer(&_internal_state)) + } + x = ps + if !(s != 0) { + if **(**uint32)(__ccgo_up(x)) != 0 { + goto ilseq + } + return uint64(1) + } + if !(**(**uint32)(__ccgo_up(x)) != 0) && uint32(c16)-uint32(0xd800) < uint32(0x400) { + **(**uint32)(__ccgo_up(x)) = Uint32FromInt32((Int32FromUint16(c16) - int32(0xd7c0)) << int32(10)) + return uint64(0) + } + if **(**uint32)(__ccgo_up(x)) != 0 { + if uint32(c16)-uint32(0xdc00) >= uint32(0x400) { + goto ilseq + } else { + wc = Int32FromUint32(**(**uint32)(__ccgo_up(x)) + uint32(c16) - uint32(0xdc00)) + } + **(**uint32)(__ccgo_up(x)) = uint32(0) + } else { + wc = Int32FromUint16(c16) + } + return Xwcrtomb(tls, s, wc, uintptr(0)) + goto ilseq +ilseq: + ; + **(**uint32)(__ccgo_up(x)) = uint32(0) + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EILSEQ) + return Uint64FromInt32(-Int32FromInt32(1)) +} + +var _internal_state uint32 + +func Xc32rtomb(tls *TLS, s uintptr, c32 Tchar32_t, ps uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v c32=%v ps=%v, (%v:)", tls, s, c32, ps, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwcrtomb(tls, s, Int32FromUint32(c32), ps) +} + +func Xmblen(tls *TLS, s uintptr, n Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v, (%v:)", tls, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xmbtowc(tls, uintptr(0), s, n) +} + +func Xmbrlen(tls *TLS, s uintptr, n Tsize_t, st uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v st=%v, (%v:)", tls, s, n, st, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 uintptr + _ = v1 + if st != 0 { + v1 = st + } else { + v1 = uintptr(unsafe.Pointer(&_internal)) + } + return Xmbrtowc(tls, uintptr(0), s, n, v1) +} + +var _internal uint32 + +func Xmbrtoc16(tls *TLS, pc16 uintptr, s uintptr, n Tsize_t, ps uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v pc16=%v s=%v n=%v ps=%v, (%v:)", tls, pc16, s, n, ps, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var pending uintptr + var ret Tsize_t + var _ /* wc at bp+0 */ Twchar_t + _, _ = pending, ret + if !(ps != 0) { + ps = uintptr(unsafe.Pointer(&_internal_state1)) + } + pending = ps + if !(s != 0) { + return Xmbrtoc16(tls, uintptr(0), __ccgo_ts, uint64(1), ps) + } + /* mbrtowc states for partial UTF-8 characters have the high bit set; + * we use nonzero states without high bit for pending surrogates. */ + if Int32FromUint32(**(**uint32)(__ccgo_up(pending))) > 0 { + if pc16 != 0 { + **(**Tchar16_t)(__ccgo_up(pc16)) = uint16(**(**uint32)(__ccgo_up(pending))) + } + **(**uint32)(__ccgo_up(pending)) = uint32(0) + return Uint64FromInt32(-Int32FromInt32(3)) + } + ret = Xmbrtowc(tls, bp, s, n, ps) + if ret <= uint64(4) { + if **(**Twchar_t)(__ccgo_up(bp)) >= int32(0x10000) { + **(**uint32)(__ccgo_up(pending)) = Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp))&int32(0x3ff) + int32(0xdc00)) + **(**Twchar_t)(__ccgo_up(bp)) = int32(0xd7c0) + **(**Twchar_t)(__ccgo_up(bp))>>Int32FromInt32(10) + } + if pc16 != 0 { + **(**Tchar16_t)(__ccgo_up(pc16)) = Uint16FromInt32(**(**Twchar_t)(__ccgo_up(bp))) + } + } + return ret +} + +var _internal_state1 uint32 + +func Xmbrtoc32(tls *TLS, pc32 uintptr, s uintptr, n Tsize_t, ps uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v pc32=%v s=%v n=%v ps=%v, (%v:)", tls, pc32, s, n, ps, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ret Tsize_t + var _ /* wc at bp+0 */ Twchar_t + _ = ret + if !(ps != 0) { + ps = uintptr(unsafe.Pointer(&_internal_state2)) + } + if !(s != 0) { + return Xmbrtoc32(tls, uintptr(0), __ccgo_ts, uint64(1), ps) + } + ret = Xmbrtowc(tls, bp, s, n, ps) + if ret <= uint64(4) && pc32 != 0 { + **(**Tchar32_t)(__ccgo_up(pc32)) = Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp))) + } + return ret +} + +var _internal_state2 uint32 + +func Xmbrtowc(tls *TLS, wc uintptr, src uintptr, n Tsize_t, st uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v wc=%v src=%v n=%v st=%v, (%v:)", tls, wc, src, n, st, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var N Tsize_t + var c uint32 + var s, v3 uintptr + var v1 Twchar_t + var v2 int32 + var _ /* dummy at bp+0 */ Twchar_t + _, _, _, _, _, _ = N, c, s, v1, v2, v3 + s = src + N = n + if !(st != 0) { + st = uintptr(unsafe.Pointer(&_internal_state3)) + } + c = **(**uint32)(__ccgo_up(st)) + if !(s != 0) { + if c != 0 { + goto ilseq + } + return uint64(0) + } else { + if !(wc != 0) { + wc = bp + } + } + if !(n != 0) { + return Uint64FromInt32(-Int32FromInt32(2)) + } + if !(c != 0) { + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) < int32(0x80) { + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(s))) + **(**Twchar_t)(__ccgo_up(wc)) = v1 + return BoolUint64(!!(v1 != 0)) + } + if !!(**(**uintptr)(__ccgo_up((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale)) != 0) { + v2 = int32(4) + } else { + v2 = int32(1) + } + if v2 == int32(1) { + **(**Twchar_t)(__ccgo_up(wc)) = Int32FromInt32(0xdfff) & int32(Int8FromUint8(**(**uint8)(__ccgo_up(s)))) + return Uint64FromInt32(1) + } + if uint32(**(**uint8)(__ccgo_up(s)))-uint32(0xc2) > Uint32FromUint32(0xf4)-Uint32FromUint32(0xc2) { + goto ilseq + } + v3 = s + s = s + 1 + c = X__fsmu8[uint32(**(**uint8)(__ccgo_up(v3)))-uint32(0xc2)] + n = n - 1 + } + if n != 0 { + if (Int32FromUint8(**(**uint8)(__ccgo_up(s)))>>int32(3)-int32(0x10)|(Int32FromUint8(**(**uint8)(__ccgo_up(s)))>>int32(3)+Int32FromUint32(c)>>Int32FromInt32(26))) & ^Int32FromInt32(7) != 0 { + goto ilseq + } + goto loop + loop: + ; + v3 = s + s = s + 1 + c = c<= uint32(0x40) { + goto ilseq + } + goto loop + } + } + **(**uint32)(__ccgo_up(st)) = c + return Uint64FromInt32(-Int32FromInt32(2)) + goto ilseq +ilseq: + ; + **(**uint32)(__ccgo_up(st)) = uint32(0) + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EILSEQ) + return Uint64FromInt32(-Int32FromInt32(1)) +} + +var _internal_state3 uint32 + +func Xmbsinit(tls *TLS, st uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v st=%v, (%v:)", tls, st, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(!(st != 0) || !(**(**uint32)(__ccgo_up(st)) != 0)) +} + +func Xmbsnrtowcs(tls *TLS, wcs uintptr, src uintptr, n Tsize_t, wn Tsize_t, st uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v wcs=%v src=%v n=%v wn=%v st=%v, (%v:)", tls, wcs, src, n, wn, st, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(1040) + defer tls.Free(1040) + var cnt, l, n2, v1 Tsize_t + var tmp_s, ws uintptr + var v2 bool + var v3 uint64 + var _ /* s at bp+1024 */ uintptr + var _ /* wbuf at bp+0 */ [256]Twchar_t + _, _, _, _, _, _, _, _ = cnt, l, n2, tmp_s, ws, v1, v2, v3 + cnt = uint64(0) + **(**uintptr)(__ccgo_up(bp + 1024)) = **(**uintptr)(__ccgo_up(src)) + if !(wcs != 0) { + ws = bp + wn = Uint64FromInt64(1024) / Uint64FromInt64(4) + } else { + ws = wcs + } + /* making sure output buffer size is at most n/4 will ensure + * that mbsrtowcs never reads more than n input bytes. thus + * we can use mbsrtowcs as long as it's practical.. */ + for { + if v2 = **(**uintptr)(__ccgo_up(bp + 1024)) != 0 && wn != 0; v2 { + v1 = n / Uint64FromInt32(4) + n2 = v1 + } + if !(v2 && (v1 >= wn || n2 > uint64(32))) { + break + } + if n2 >= wn { + n2 = wn + } + tmp_s = **(**uintptr)(__ccgo_up(bp + 1024)) + l = Xmbsrtowcs(tls, ws, bp+1024, n2, st) + if !(l+Uint64FromInt32(1) != 0) { + cnt = l + wn = uint64(0) + break + } + if ws != bp { + ws = ws + uintptr(l)*4 + wn = wn - l + } + if **(**uintptr)(__ccgo_up(bp + 1024)) != 0 { + v3 = n - Uint64FromInt64(int64(**(**uintptr)(__ccgo_up(bp + 1024)))-int64(tmp_s)) + } else { + v3 = uint64(0) + } + n = v3 + cnt = cnt + l + } + if **(**uintptr)(__ccgo_up(bp + 1024)) != 0 { + for wn != 0 && n != 0 { + l = Xmbrtowc(tls, ws, **(**uintptr)(__ccgo_up(bp + 1024)), n, st) + if l+uint64(2) <= uint64(2) { + if !(l+Uint64FromInt32(1) != 0) { + cnt = l + break + } + if !(l != 0) { + **(**uintptr)(__ccgo_up(bp + 1024)) = uintptr(0) + break + } + /* have to roll back partial character */ + **(**uint32)(__ccgo_up(st)) = uint32(0) + break + } + **(**uintptr)(__ccgo_up(bp + 1024)) = **(**uintptr)(__ccgo_up(bp + 1024)) + uintptr(l) + n = n - l + /* safe - this loop runs fewer than sizeof(wbuf)/8 times */ + ws += 4 + wn = wn - 1 + cnt = cnt + 1 + } + } + if wcs != 0 { + **(**uintptr)(__ccgo_up(src)) = **(**uintptr)(__ccgo_up(bp + 1024)) + } + return cnt +} + +func Xmbsrtowcs(tls *TLS, ws uintptr, src uintptr, wn Tsize_t, st uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v ws=%v src=%v wn=%v st=%v, (%v:)", tls, ws, src, wn, st, origin(2)) + defer func() { trc("-> %v", r) }() + } + var c, v1 uint32 + var s, v5, v6 uintptr + var wn0 Tsize_t + var v2 bool + var v3 int32 + _, _, _, _, _, _, _, _ = c, s, wn0, v1, v2, v3, v5, v6 + s = **(**uintptr)(__ccgo_up(src)) + wn0 = wn + c = uint32(0) + if v2 = st != 0; v2 { + v1 = **(**uint32)(__ccgo_up(st)) + c = v1 + } + if v2 && v1 != 0 { + if ws != 0 { + **(**uint32)(__ccgo_up(st)) = uint32(0) + goto resume + } else { + goto resume0 + } + } + if !!(**(**uintptr)(__ccgo_up((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale)) != 0) { + v3 = int32(4) + } else { + v3 = int32(1) + } + if v3 == int32(1) { + if !(ws != 0) { + return _strlen(tls, s) + } + for { + if !(wn != 0) { + **(**uintptr)(__ccgo_up(src)) = s + return wn0 + } + if !(**(**uint8)(__ccgo_up(s)) != 0) { + break + } + v5 = s + s = s + 1 + c = uint32(**(**uint8)(__ccgo_up(v5))) + v5 = ws + ws += 4 + **(**Twchar_t)(__ccgo_up(v5)) = Int32FromInt32(0xdfff) & int32(Int8FromUint32(c)) + wn = wn - 1 + goto _4 + _4: + } + **(**Twchar_t)(__ccgo_up(ws)) = 0 + **(**uintptr)(__ccgo_up(src)) = uintptr(0) + return wn0 - wn + } + if !!(ws != 0) { + goto _7 + } +_11: + ; + if uint32(**(**uint8)(__ccgo_up(s)))-uint32(1) < uint32(0x7f) && uint64(s)%uint64(4) == uint64(0) { + for !((**(**uint32)(__ccgo_up(s))|(**(**uint32)(__ccgo_up(s))-Uint32FromInt32(0x01010101)))&Uint32FromUint32(0x80808080) != 0) { + s = s + uintptr(4) + wn = wn - uint64(4) + } + } + if uint32(**(**uint8)(__ccgo_up(s)))-uint32(1) < uint32(0x7f) { + s = s + 1 + wn = wn - 1 + goto _10 + } + if uint32(**(**uint8)(__ccgo_up(s)))-uint32(0xc2) > Uint32FromUint32(0xf4)-Uint32FromUint32(0xc2) { + goto _9 + } + v5 = s + s = s + 1 + c = X__fsmu8[uint32(**(**uint8)(__ccgo_up(v5)))-uint32(0xc2)] + goto resume0 +resume0: + ; + if (Int32FromUint8(**(**uint8)(__ccgo_up(s)))>>int32(3)-int32(0x10)|(Int32FromUint8(**(**uint8)(__ccgo_up(s)))>>int32(3)+Int32FromUint32(c)>>Int32FromInt32(26))) & ^Int32FromInt32(7) != 0 { + s = s - 1 + goto _9 + } + s = s + 1 + if c&(Uint32FromUint32(1)<= uint32(0x40) { + s = s - uintptr(2) + goto _9 + } + s = s + 1 + if c&(Uint32FromUint32(1)<= uint32(0x40) { + s = s - uintptr(3) + goto _9 + } + s = s + 1 + } + } + wn = wn - 1 + c = uint32(0) + goto _10 +_10: + ; + goto _11 + goto _9 +_9: + ; + goto _8 +_7: + ; +_15: + ; + if !(wn != 0) { + **(**uintptr)(__ccgo_up(src)) = s + return wn0 + } + if uint32(**(**uint8)(__ccgo_up(s)))-uint32(1) < uint32(0x7f) && uint64(s)%uint64(4) == uint64(0) { + for wn >= uint64(5) && !((**(**uint32)(__ccgo_up(s))|(**(**uint32)(__ccgo_up(s))-Uint32FromInt32(0x01010101)))&Uint32FromUint32(0x80808080) != 0) { + v5 = ws + ws += 4 + v6 = s + s = s + 1 + **(**Twchar_t)(__ccgo_up(v5)) = Int32FromUint8(**(**uint8)(__ccgo_up(v6))) + v5 = ws + ws += 4 + v6 = s + s = s + 1 + **(**Twchar_t)(__ccgo_up(v5)) = Int32FromUint8(**(**uint8)(__ccgo_up(v6))) + v5 = ws + ws += 4 + v6 = s + s = s + 1 + **(**Twchar_t)(__ccgo_up(v5)) = Int32FromUint8(**(**uint8)(__ccgo_up(v6))) + v5 = ws + ws += 4 + v6 = s + s = s + 1 + **(**Twchar_t)(__ccgo_up(v5)) = Int32FromUint8(**(**uint8)(__ccgo_up(v6))) + wn = wn - uint64(4) + } + } + if uint32(**(**uint8)(__ccgo_up(s)))-uint32(1) < uint32(0x7f) { + v5 = ws + ws += 4 + v6 = s + s = s + 1 + **(**Twchar_t)(__ccgo_up(v5)) = Int32FromUint8(**(**uint8)(__ccgo_up(v6))) + wn = wn - 1 + goto _14 + } + if uint32(**(**uint8)(__ccgo_up(s)))-uint32(0xc2) > Uint32FromUint32(0xf4)-Uint32FromUint32(0xc2) { + goto _13 + } + v5 = s + s = s + 1 + c = X__fsmu8[uint32(**(**uint8)(__ccgo_up(v5)))-uint32(0xc2)] + goto resume +resume: + ; + if (Int32FromUint8(**(**uint8)(__ccgo_up(s)))>>int32(3)-int32(0x10)|(Int32FromUint8(**(**uint8)(__ccgo_up(s)))>>int32(3)+Int32FromUint32(c)>>Int32FromInt32(26))) & ^Int32FromInt32(7) != 0 { + s = s - 1 + goto _13 + } + v5 = s + s = s + 1 + c = c<= uint32(0x40) { + s = s - uintptr(2) + goto _13 + } + v5 = s + s = s + 1 + c = c<= uint32(0x40) { + s = s - uintptr(3) + goto _13 + } + v5 = s + s = s + 1 + c = c< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + *(*uintptr)(unsafe.Pointer(bp)) = _s + return Xmbsrtowcs(tls, ws, bp, wn, uintptr(0)) +} + +func Xmbtowc(tls *TLS, wc uintptr, src uintptr, n Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v src=%v n=%v, (%v:)", tls, wc, src, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var c uint32 + var s, v3 uintptr + var v1 Twchar_t + var v2 int32 + var _ /* dummy at bp+0 */ Twchar_t + _, _, _, _, _ = c, s, v1, v2, v3 + s = src + if !(s != 0) { + return 0 + } + if !(n != 0) { + goto ilseq + } + if !(wc != 0) { + wc = bp + } + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) < int32(0x80) { + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(s))) + **(**Twchar_t)(__ccgo_up(wc)) = v1 + return BoolInt32(!!(v1 != 0)) + } + if !!(**(**uintptr)(__ccgo_up((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale)) != 0) { + v2 = int32(4) + } else { + v2 = int32(1) + } + if v2 == int32(1) { + **(**Twchar_t)(__ccgo_up(wc)) = Int32FromInt32(0xdfff) & int32(Int8FromUint8(**(**uint8)(__ccgo_up(s)))) + return Int32FromInt32(1) + } + if uint32(**(**uint8)(__ccgo_up(s)))-uint32(0xc2) > Uint32FromUint32(0xf4)-Uint32FromUint32(0xc2) { + goto ilseq + } + v3 = s + s = s + 1 + c = X__fsmu8[uint32(**(**uint8)(__ccgo_up(v3)))-uint32(0xc2)] + /* Avoid excessive checks against n: If shifting the state n-1 + * times does not clear the high bit, then the value of n is + * insufficient to read a character */ + if n < uint64(4) && c<<(uint64(6)*n-uint64(6))&(Uint32FromUint32(1)<>int32(3)-int32(0x10)|(Int32FromUint8(**(**uint8)(__ccgo_up(s)))>>int32(3)+Int32FromUint32(c)>>Int32FromInt32(26))) & ^Int32FromInt32(7) != 0 { + goto ilseq + } + v3 = s + s = s + 1 + c = c<= uint32(0x40) { + goto ilseq + } + v3 = s + s = s + 1 + c = c<= uint32(0x40) { + goto ilseq + } + v3 = s + s = s + 1 + **(**Twchar_t)(__ccgo_up(wc)) = Int32FromUint32(c< %v", r) }() + } + var v1 int32 + var v2 uintptr + _, _ = v1, v2 + if !(s != 0) { + return uint64(1) + } + if Uint32FromInt32(wc) < uint32(0x80) { + **(**uint8)(__ccgo_up(s)) = Uint8FromInt32(wc) + return uint64(1) + } else { + if !!(**(**uintptr)(__ccgo_up((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale)) != 0) { + v1 = int32(4) + } else { + v1 = int32(1) + } + if v1 == int32(1) { + if !(Uint32FromInt32(wc)-Uint32FromInt32(0xdf80) < Uint32FromInt32(0x80)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EILSEQ) + return Uint64FromInt32(-Int32FromInt32(1)) + } + **(**uint8)(__ccgo_up(s)) = Uint8FromInt32(wc) + return uint64(1) + } else { + if Uint32FromInt32(wc) < uint32(0x800) { + v2 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = Uint8FromInt32(int32(0xc0) | wc>>Int32FromInt32(6)) + **(**uint8)(__ccgo_up(s)) = Uint8FromInt32(int32(0x80) | wc&int32(0x3f)) + return uint64(2) + } else { + if Uint32FromInt32(wc) < uint32(0xd800) || Uint32FromInt32(wc)-uint32(0xe000) < uint32(0x2000) { + v2 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = Uint8FromInt32(int32(0xe0) | wc>>Int32FromInt32(12)) + v2 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = Uint8FromInt32(int32(0x80) | wc>>Int32FromInt32(6)&int32(0x3f)) + **(**uint8)(__ccgo_up(s)) = Uint8FromInt32(int32(0x80) | wc&int32(0x3f)) + return uint64(3) + } else { + if Uint32FromInt32(wc)-uint32(0x10000) < uint32(0x100000) { + v2 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = Uint8FromInt32(int32(0xf0) | wc>>Int32FromInt32(18)) + v2 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = Uint8FromInt32(int32(0x80) | wc>>Int32FromInt32(12)&int32(0x3f)) + v2 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = Uint8FromInt32(int32(0x80) | wc>>Int32FromInt32(6)&int32(0x3f)) + **(**uint8)(__ccgo_up(s)) = Uint8FromInt32(int32(0x80) | wc&int32(0x3f)) + return uint64(4) + } + } + } + } + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EILSEQ) + return Uint64FromInt32(-Int32FromInt32(1)) +} + +func Xwcsnrtombs(tls *TLS, dst uintptr, wcs uintptr, wn Tsize_t, n Tsize_t, st uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v dst=%v wcs=%v wn=%v n=%v st=%v, (%v:)", tls, dst, wcs, wn, n, st, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var cnt, l Tsize_t + var ws, v1 uintptr + var _ /* tmp at bp+0 */ [4]uint8 + _, _, _, _ = cnt, l, ws, v1 + ws = **(**uintptr)(__ccgo_up(wcs)) + cnt = uint64(0) + if !(dst != 0) { + n = uint64(0) + } + for ws != 0 && wn != 0 { + if n < uint64(MB_LEN_MAX) { + v1 = bp + } else { + v1 = dst + } + l = Xwcrtomb(tls, v1, **(**Twchar_t)(__ccgo_up(ws)), uintptr(0)) + if l == Uint64FromInt32(-Int32FromInt32(1)) { + cnt = Uint64FromInt32(-Int32FromInt32(1)) + break + } + if dst != 0 { + if n < uint64(MB_LEN_MAX) { + if l > n { + break + } + Xmemcpy(tls, dst, bp, l) + } + dst = dst + uintptr(l) + n = n - l + } + if !(**(**Twchar_t)(__ccgo_up(ws)) != 0) { + ws = uintptr(0) + break + } + ws += 4 + wn = wn - 1 + cnt = cnt + l + } + if dst != 0 { + **(**uintptr)(__ccgo_up(wcs)) = ws + } + return cnt +} + +func Xwcsrtombs(tls *TLS, s uintptr, ws uintptr, n Tsize_t, st uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v ws=%v n=%v st=%v, (%v:)", tls, s, ws, n, st, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var N, l Tsize_t + var ws2, v2 uintptr + var _ /* buf at bp+0 */ [4]uint8 + _, _, _, _ = N, l, ws2, v2 + N = n + if !(s != 0) { + n = uint64(0) + ws2 = **(**uintptr)(__ccgo_up(ws)) + for { + if !(**(**Twchar_t)(__ccgo_up(ws2)) != 0) { + break + } + if Uint32FromInt32(**(**Twchar_t)(__ccgo_up(ws2))) >= uint32(0x80) { + l = Xwcrtomb(tls, bp, **(**Twchar_t)(__ccgo_up(ws2)), uintptr(0)) + if !(l+Uint64FromInt32(1) != 0) { + return Uint64FromInt32(-Int32FromInt32(1)) + } + n = n + l + } else { + n = n + 1 + } + goto _1 + _1: + ; + ws2 += 4 + } + return n + } + for n >= uint64(4) { + if Uint32FromInt32(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(ws)))))-uint32(1) >= uint32(0x7f) { + if !(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(ws)))) != 0) { + **(**uint8)(__ccgo_up(s)) = uint8(0) + **(**uintptr)(__ccgo_up(ws)) = uintptr(0) + return N - n + } + l = Xwcrtomb(tls, s, **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(ws)))), uintptr(0)) + if !(l+Uint64FromInt32(1) != 0) { + return Uint64FromInt32(-Int32FromInt32(1)) + } + s = s + uintptr(l) + n = n - l + } else { + v2 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = Uint8FromInt32(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(ws))))) + n = n - 1 + } + **(**uintptr)(__ccgo_up(ws)) += 4 + } + for n != 0 { + if Uint32FromInt32(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(ws)))))-uint32(1) >= uint32(0x7f) { + if !(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(ws)))) != 0) { + **(**uint8)(__ccgo_up(s)) = uint8(0) + **(**uintptr)(__ccgo_up(ws)) = uintptr(0) + return N - n + } + l = Xwcrtomb(tls, bp, **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(ws)))), uintptr(0)) + if !(l+Uint64FromInt32(1) != 0) { + return Uint64FromInt32(-Int32FromInt32(1)) + } + if l > n { + return N - n + } + Xwcrtomb(tls, s, **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(ws)))), uintptr(0)) + s = s + uintptr(l) + n = n - l + } else { + v2 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = Uint8FromInt32(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(ws))))) + n = n - 1 + } + **(**uintptr)(__ccgo_up(ws)) += 4 + } + return N +} + +func Xwcstombs(tls *TLS, s uintptr, ws uintptr, n Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v ws=%v n=%v, (%v:)", tls, s, ws, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + *(*uintptr)(unsafe.Pointer(bp)) = ws + return Xwcsrtombs(tls, s, bp, n, uintptr(0)) +} + +func Xwctob(tls *TLS, c Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + _ = v1 + if c < uint32(128) { + return Int32FromUint32(c) + } + if !!(**(**uintptr)(__ccgo_up((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale)) != 0) { + v1 = int32(4) + } else { + v1 = int32(1) + } + if v1 == int32(1) && c-uint32(0xdf80) < uint32(0x80) { + return Int32FromUint8(uint8(c)) + } + return -int32(1) +} + +func Xwctomb(tls *TLS, s uintptr, wc Twchar_t) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v wc=%v, (%v:)", tls, s, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + if !(s != 0) { + return 0 + } + return Int32FromUint64(Xwcrtomb(tls, s, wc, uintptr(0))) +} + +func Xaccept(tls *TLS, fd int32, addr uintptr, len1 uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v addr=%v len1=%v, (%v:)", tls, fd, addr, len1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(96) + defer tls.Free(96) + var r, v10 int64 + var v1, v2, v3 int32 + var v4, v5, v6, v7, v8, v9 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _, _, _ = r, v1, v10, v2, v3, v4, v5, v6, v7, v8, v9 + v1 = int32(SYS_accept) + v2 = int32(__SC_accept) + v3 = int32(1) + v4 = int64(fd) + v5 = int64(addr) + v6 = int64(len1) + v7 = int64(Int32FromInt32(0)) + v8 = int64(Int32FromInt32(0)) + v9 = int64(Int32FromInt32(0)) + if v3 != 0 { + r = ___syscall_cp(tls, int64(v1), v4, v5, v6, v7, v8, v9) + } else { + r = X__syscall6(tls, int64(v1), v4, v5, v6, v7, v8, v9) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v10 = r + goto _11 + } + if v3 != 0 { + *(*[6]int64)(unsafe.Pointer(bp)) = [6]int64{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = ___syscall_cp(tls, int64(SYS_socketcall), int64(v2), int64(bp), 0, 0, 0, 0) + } else { + *(*[6]int64)(unsafe.Pointer(bp + 48)) = [6]int64{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = X__syscall2(tls, int64(SYS_socketcall), int64(v2), int64(bp+48)) + } + v10 = r + goto _11 +_11: + return int32(X__syscall_ret(tls, Uint64FromInt64(v10))) +} + +type Tucred = struct { + Fpid Tpid_t + Fuid Tuid_t + Fgid Tgid_t +} + +type Tmmsghdr = struct { + Fmsg_hdr Tmsghdr + Fmsg_len uint32 +} + +func Xaccept4(tls *TLS, fd int32, addr uintptr, len1 uintptr, flg int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v addr=%v len1=%v flg=%v, (%v:)", tls, fd, addr, len1, flg, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(96) + defer tls.Free(96) + var r, v10 int64 + var ret, v1, v2, v3 int32 + var v4, v5, v6, v7, v8, v9 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _, _, _, _ = r, ret, v1, v10, v2, v3, v4, v5, v6, v7, v8, v9 + if !(flg != 0) { + return Xaccept(tls, fd, addr, len1) + } + v1 = int32(SYS_accept4) + v2 = int32(__SC_accept4) + v3 = int32(1) + v4 = int64(fd) + v5 = int64(addr) + v6 = int64(len1) + v7 = int64(flg) + v8 = int64(Int32FromInt32(0)) + v9 = int64(Int32FromInt32(0)) + if v3 != 0 { + r = ___syscall_cp(tls, int64(v1), v4, v5, v6, v7, v8, v9) + } else { + r = X__syscall6(tls, int64(v1), v4, v5, v6, v7, v8, v9) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v10 = r + goto _11 + } + if v3 != 0 { + *(*[6]int64)(unsafe.Pointer(bp)) = [6]int64{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = ___syscall_cp(tls, int64(SYS_socketcall), int64(v2), int64(bp), 0, 0, 0, 0) + } else { + *(*[6]int64)(unsafe.Pointer(bp + 48)) = [6]int64{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = X__syscall2(tls, int64(SYS_socketcall), int64(v2), int64(bp+48)) + } + v10 = r + goto _11 +_11: + ret = int32(X__syscall_ret(tls, Uint64FromInt64(v10))) + if ret >= 0 || **(**int32)(__ccgo_up(X__errno_location(tls))) != int32(ENOSYS) && **(**int32)(__ccgo_up(X__errno_location(tls))) != int32(EINVAL) { + return ret + } + if flg & ^(Int32FromInt32(SOCK_CLOEXEC)|Int32FromInt32(SOCK_NONBLOCK)) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + ret = Xaccept(tls, fd, addr, len1) + if ret < 0 { + return ret + } + if flg&int32(SOCK_CLOEXEC) != 0 { + X__syscall3(tls, int64(SYS_fcntl), int64(ret), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + } + if flg&int32(SOCK_NONBLOCK) != 0 { + X__syscall3(tls, int64(SYS_fcntl), int64(ret), int64(Int32FromInt32(F_SETFL)), int64(Int32FromInt32(O_NONBLOCK))) + } + return ret +} + +func Xbind(tls *TLS, fd int32, addr uintptr, len1 Tsocklen_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v addr=%v len1=%v, (%v:)", tls, fd, addr, len1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(96) + defer tls.Free(96) + var r, v10 int64 + var v1, v2, v3 int32 + var v4, v5, v6, v7, v8, v9 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _, _, _ = r, v1, v10, v2, v3, v4, v5, v6, v7, v8, v9 + v1 = int32(SYS_bind) + v2 = int32(__SC_bind) + v3 = 0 + v4 = int64(fd) + v5 = int64(addr) + v6 = Int64FromUint32(len1) + v7 = int64(Int32FromInt32(0)) + v8 = int64(Int32FromInt32(0)) + v9 = int64(Int32FromInt32(0)) + if v3 != 0 { + r = ___syscall_cp(tls, int64(v1), v4, v5, v6, v7, v8, v9) + } else { + r = X__syscall6(tls, int64(v1), v4, v5, v6, v7, v8, v9) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v10 = r + goto _11 + } + if v3 != 0 { + *(*[6]int64)(unsafe.Pointer(bp)) = [6]int64{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = ___syscall_cp(tls, int64(SYS_socketcall), int64(v2), int64(bp), 0, 0, 0, 0) + } else { + *(*[6]int64)(unsafe.Pointer(bp + 48)) = [6]int64{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = X__syscall2(tls, int64(SYS_socketcall), int64(v2), int64(bp+48)) + } + v10 = r + goto _11 +_11: + return int32(X__syscall_ret(tls, Uint64FromInt64(v10))) +} + +func Xconnect(tls *TLS, fd int32, addr uintptr, len1 Tsocklen_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v addr=%v len1=%v, (%v:)", tls, fd, addr, len1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(96) + defer tls.Free(96) + var r, v10 int64 + var v1, v2, v3 int32 + var v4, v5, v6, v7, v8, v9 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _, _, _ = r, v1, v10, v2, v3, v4, v5, v6, v7, v8, v9 + v1 = int32(SYS_connect) + v2 = int32(__SC_connect) + v3 = int32(1) + v4 = int64(fd) + v5 = int64(addr) + v6 = Int64FromUint32(len1) + v7 = int64(Int32FromInt32(0)) + v8 = int64(Int32FromInt32(0)) + v9 = int64(Int32FromInt32(0)) + if v3 != 0 { + r = ___syscall_cp(tls, int64(v1), v4, v5, v6, v7, v8, v9) + } else { + r = X__syscall6(tls, int64(v1), v4, v5, v6, v7, v8, v9) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v10 = r + goto _11 + } + if v3 != 0 { + *(*[6]int64)(unsafe.Pointer(bp)) = [6]int64{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = ___syscall_cp(tls, int64(SYS_socketcall), int64(v2), int64(bp), 0, 0, 0, 0) + } else { + *(*[6]int64)(unsafe.Pointer(bp + 48)) = [6]int64{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = X__syscall2(tls, int64(SYS_socketcall), int64(v2), int64(bp+48)) + } + v10 = r + goto _11 +_11: + return int32(X__syscall_ret(tls, Uint64FromInt64(v10))) +} + +const ADD = 0 +const C_ANY = 0 +const C_CHAOS = 0 +const C_HS = 0 +const C_IN = 0 +const C_NONE = 0 +const DELETE = 0 +const FORMERR = 0 +const GETLONG = 0 +const GETSHORT = 0 +const HFIXEDSZ = 12 +const IN6ADDRSZ = 16 +const INADDRSZ = 4 +const INDIR_MASK = 192 +const INET6_ADDRSTRLEN = 46 +const INET_ADDRSTRLEN = 16 +const INT16SZ = 2 +const INT32SZ = 4 +const INT8SZ = 1 +const IN_CLASSA_HOST = 16777215 +const IN_CLASSA_MAX = 128 +const IN_CLASSA_NET = 4278190080 +const IN_CLASSA_NSHIFT = 24 +const IN_CLASSB_HOST = 65535 +const IN_CLASSB_MAX = 65536 +const IN_CLASSB_NET = 4294901760 +const IN_CLASSB_NSHIFT = 16 +const IN_CLASSC_HOST = 255 +const IN_CLASSC_NET = 4294967040 +const IN_CLASSC_NSHIFT = 8 +const IN_LOOPBACKNET = 127 +const IPPORT_RESERVED = 1024 +const IPPROTO_AH = 51 +const IPPROTO_BEETPH = 94 +const IPPROTO_COMP = 108 +const IPPROTO_DCCP = 33 +const IPPROTO_DSTOPTS = 60 +const IPPROTO_EGP = 8 +const IPPROTO_ENCAP = 98 +const IPPROTO_ESP = 50 +const IPPROTO_ETHERNET = 143 +const IPPROTO_FRAGMENT = 44 +const IPPROTO_GRE = 47 +const IPPROTO_HOPOPTS = 0 +const IPPROTO_ICMP = 1 +const IPPROTO_ICMPV6 = 58 +const IPPROTO_IDP = 22 +const IPPROTO_IGMP = 2 +const IPPROTO_IP = 0 +const IPPROTO_IPIP = 4 +const IPPROTO_IPV6 = 41 +const IPPROTO_MAX = 263 +const IPPROTO_MH = 135 +const IPPROTO_MPLS = 137 +const IPPROTO_MPTCP = 262 +const IPPROTO_MTP = 92 +const IPPROTO_NONE = 59 +const IPPROTO_PIM = 103 +const IPPROTO_PUP = 12 +const IPPROTO_RAW = 255 +const IPPROTO_ROUTING = 43 +const IPPROTO_RSVP = 46 +const IPPROTO_SCTP = 132 +const IPPROTO_TCP = 6 +const IPPROTO_TP = 29 +const IPPROTO_UDP = 17 +const IPPROTO_UDPLITE = 136 +const IPV6_2292DSTOPTS = 4 +const IPV6_2292HOPLIMIT = 8 +const IPV6_2292HOPOPTS = 3 +const IPV6_2292PKTINFO = 2 +const IPV6_2292PKTOPTIONS = 6 +const IPV6_2292RTHDR = 5 +const IPV6_ADDRFORM = 1 +const IPV6_ADDR_PREFERENCES = 72 +const IPV6_ADD_MEMBERSHIP = 20 +const IPV6_AUTHHDR = 10 +const IPV6_AUTOFLOWLABEL = 70 +const IPV6_CHECKSUM = 7 +const IPV6_DONTFRAG = 62 +const IPV6_DROP_MEMBERSHIP = 21 +const IPV6_DSTOPTS = 59 +const IPV6_FREEBIND = 78 +const IPV6_HDRINCL = 36 +const IPV6_HOPLIMIT = 52 +const IPV6_HOPOPTS = 54 +const IPV6_IPSEC_POLICY = 34 +const IPV6_JOIN_ANYCAST = 27 +const IPV6_JOIN_GROUP = 20 +const IPV6_LEAVE_ANYCAST = 28 +const IPV6_LEAVE_GROUP = 21 +const IPV6_MINHOPCOUNT = 73 +const IPV6_MTU = 24 +const IPV6_MTU_DISCOVER = 23 +const IPV6_MULTICAST_ALL = 29 +const IPV6_MULTICAST_HOPS = 18 +const IPV6_MULTICAST_IF = 17 +const IPV6_MULTICAST_LOOP = 19 +const IPV6_NEXTHOP = 9 +const IPV6_ORIGDSTADDR = 74 +const IPV6_PATHMTU = 61 +const IPV6_PKTINFO = 50 +const IPV6_PMTUDISC_DO = 2 +const IPV6_PMTUDISC_DONT = 0 +const IPV6_PMTUDISC_INTERFACE = 4 +const IPV6_PMTUDISC_OMIT = 5 +const IPV6_PMTUDISC_PROBE = 3 +const IPV6_PMTUDISC_WANT = 1 +const IPV6_PREFER_SRC_CGA = 8 +const IPV6_PREFER_SRC_COA = 4 +const IPV6_PREFER_SRC_HOME = 1024 +const IPV6_PREFER_SRC_NONCGA = 2048 +const IPV6_PREFER_SRC_PUBLIC = 2 +const IPV6_PREFER_SRC_PUBTMP_DEFAULT = 256 +const IPV6_PREFER_SRC_TMP = 1 +const IPV6_RECVDSTOPTS = 58 +const IPV6_RECVERR = 25 +const IPV6_RECVFRAGSIZE = 77 +const IPV6_RECVHOPLIMIT = 51 +const IPV6_RECVHOPOPTS = 53 +const IPV6_RECVORIGDSTADDR = 74 +const IPV6_RECVPATHMTU = 60 +const IPV6_RECVPKTINFO = 49 +const IPV6_RECVRTHDR = 56 +const IPV6_RECVTCLASS = 66 +const IPV6_ROUTER_ALERT = 22 +const IPV6_ROUTER_ALERT_ISOLATE = 30 +const IPV6_RTHDR = 57 +const IPV6_RTHDRDSTOPTS = 55 +const IPV6_RTHDR_LOOSE = 0 +const IPV6_RTHDR_STRICT = 1 +const IPV6_RTHDR_TYPE_0 = 0 +const IPV6_RXDSTOPTS = 59 +const IPV6_RXHOPOPTS = 54 +const IPV6_TCLASS = 67 +const IPV6_TRANSPARENT = 75 +const IPV6_UNICAST_HOPS = 16 +const IPV6_UNICAST_IF = 76 +const IPV6_V6ONLY = 26 +const IPV6_XFRM_POLICY = 35 +const IP_ADD_MEMBERSHIP = 35 +const IP_ADD_SOURCE_MEMBERSHIP = 39 +const IP_BIND_ADDRESS_NO_PORT = 24 +const IP_BLOCK_SOURCE = 38 +const IP_CHECKSUM = 23 +const IP_DEFAULT_MULTICAST_LOOP = 1 +const IP_DEFAULT_MULTICAST_TTL = 1 +const IP_DROP_MEMBERSHIP = 36 +const IP_DROP_SOURCE_MEMBERSHIP = 40 +const IP_FREEBIND = 15 +const IP_HDRINCL = 3 +const IP_IPSEC_POLICY = 16 +const IP_MAX_MEMBERSHIPS = 20 +const IP_MINTTL = 21 +const IP_MSFILTER = 41 +const IP_MTU = 14 +const IP_MTU_DISCOVER = 10 +const IP_MULTICAST_ALL = 49 +const IP_MULTICAST_IF = 32 +const IP_MULTICAST_LOOP = 34 +const IP_MULTICAST_TTL = 33 +const IP_NODEFRAG = 22 +const IP_OPTIONS = 4 +const IP_ORIGDSTADDR = 20 +const IP_PASSSEC = 18 +const IP_PKTINFO = 8 +const IP_PKTOPTIONS = 9 +const IP_PMTUDISC = 10 +const IP_PMTUDISC_DO = 2 +const IP_PMTUDISC_DONT = 0 +const IP_PMTUDISC_INTERFACE = 4 +const IP_PMTUDISC_OMIT = 5 +const IP_PMTUDISC_PROBE = 3 +const IP_PMTUDISC_WANT = 1 +const IP_RECVERR = 11 +const IP_RECVERR_RFC4884 = 26 +const IP_RECVFRAGSIZE = 25 +const IP_RECVOPTS = 6 +const IP_RECVORIGDSTADDR = 20 +const IP_RECVRETOPTS = 7 +const IP_RECVTOS = 13 +const IP_RECVTTL = 12 +const IP_RETOPTS = 7 +const IP_ROUTER_ALERT = 5 +const IP_TOS = 1 +const IP_TRANSPARENT = 19 +const IP_TTL = 2 +const IP_UNBLOCK_SOURCE = 37 +const IP_UNICAST_IF = 50 +const IP_XFRM_POLICY = 17 +const IQUERY = 0 +const LOCALDOMAINPARTS = 2 +const MAXCDNAME = 255 +const MAXDFLSRCH = 3 +const MAXDNAME = 1025 +const MAXDNSRCH = 6 +const MAXLABEL = 63 +const MAXNS = 3 +const MAXRESOLVSORT = 10 +const NAMESERVER_PORT = 53 +const NOERROR = 0 +const NOTAUTH = 0 +const NOTIMP = 0 +const NOTZONE = 0 +const NS_ALG_DH = 2 +const NS_ALG_DSA = 3 +const NS_ALG_DSS = 3 +const NS_ALG_EXPIRE_ONLY = 253 +const NS_ALG_MD5RSA = 1 +const NS_ALG_PRIVATE_OID = 254 +const NS_CMPRSFLGS = 192 +const NS_DEFAULTPORT = 53 +const NS_DSA_MAX_BYTES = 405 +const NS_DSA_MIN_SIZE = 213 +const NS_DSA_SIG_SIZE = 41 +const NS_HFIXEDSZ = 12 +const NS_IN6ADDRSZ = 16 +const NS_INADDRSZ = 4 +const NS_INT16SZ = 2 +const NS_INT32SZ = 4 +const NS_INT8SZ = 1 +const NS_KEY_EXTENDED_FLAGS = 4096 +const NS_KEY_NAME_ENTITY = 512 +const NS_KEY_NAME_RESERVED = 768 +const NS_KEY_NAME_TYPE = 768 +const NS_KEY_NAME_USER = 0 +const NS_KEY_NAME_ZONE = 256 +const NS_KEY_NO_AUTH = 32768 +const NS_KEY_NO_CONF = 16384 +const NS_KEY_PROT_ANY = 255 +const NS_KEY_PROT_DNSSEC = 3 +const NS_KEY_PROT_EMAIL = 2 +const NS_KEY_PROT_IPSEC = 4 +const NS_KEY_PROT_TLS = 1 +const NS_KEY_RESERVED10 = 32 +const NS_KEY_RESERVED11 = 16 +const NS_KEY_RESERVED2 = 8192 +const NS_KEY_RESERVED4 = 2048 +const NS_KEY_RESERVED5 = 1024 +const NS_KEY_RESERVED8 = 128 +const NS_KEY_RESERVED9 = 64 +const NS_KEY_RESERVED_BITMASK = 11504 +const NS_KEY_RESERVED_BITMASK2 = 65535 +const NS_KEY_SIGNATORYMASK = 15 +const NS_KEY_TYPEMASK = 49152 +const NS_KEY_TYPE_AUTH_CONF = 0 +const NS_KEY_TYPE_AUTH_ONLY = 16384 +const NS_KEY_TYPE_CONF_ONLY = 32768 +const NS_KEY_TYPE_NO_KEY = 49152 +const NS_MAXCDNAME = 255 +const NS_MAXDNAME = 1025 +const NS_MAXLABEL = 63 +const NS_MAXMSG = 65535 +const NS_MD5RSA_MAX_BASE64 = 10928 +const NS_MD5RSA_MAX_BITS = 4096 +const NS_MD5RSA_MAX_BYTES = 8195 +const NS_MD5RSA_MAX_SIZE = 512 +const NS_MD5RSA_MIN_BITS = 512 +const NS_MD5RSA_MIN_SIZE = 64 +const NS_NOTIFY_OP = 0 +const NS_NXT_BITS = 8 +const NS_NXT_MAX = 127 +const NS_OPT_DNSSEC_OK = 32768 +const NS_OPT_NSID = 3 +const NS_PACKETSZ = 512 +const NS_QFIXEDSZ = 4 +const NS_RRFIXEDSZ = 10 +const NS_SIG_ALG = 2 +const NS_SIG_EXPIR = 8 +const NS_SIG_FOOT = 16 +const NS_SIG_LABELS = 3 +const NS_SIG_OTTL = 4 +const NS_SIG_SIGNED = 12 +const NS_SIG_SIGNER = 18 +const NS_SIG_TYPE = 0 +const NS_TSIG_ALG_HMAC_MD5 = "HMAC-MD5.SIG-ALG.REG.INT" +const NS_TSIG_ERROR_FORMERR = -12 +const NS_TSIG_ERROR_NO_SPACE = -11 +const NS_TSIG_ERROR_NO_TSIG = -10 +const NS_TSIG_FUDGE = 300 +const NS_TSIG_TCP_COUNT = 100 +const NS_UPDATE_OP = 0 +const NXDOMAIN = 0 +const NXRRSET = 0 +const PACKETSZ = 512 +const PRIX16 = "X" +const PRIX32 = "X" +const PRIX8 = "X" +const PRIXFAST16 = "X" +const PRIXFAST32 = "X" +const PRIXFAST8 = "X" +const PRIXLEAST16 = "X" +const PRIXLEAST32 = "X" +const PRIXLEAST8 = "X" +const PRId16 = "d" +const PRId32 = "d" +const PRId8 = "d" +const PRIdFAST16 = "d" +const PRIdFAST32 = "d" +const PRIdFAST8 = "d" +const PRIdLEAST16 = "d" +const PRIdLEAST32 = "d" +const PRIdLEAST8 = "d" +const PRIi16 = "i" +const PRIi32 = "i" +const PRIi8 = "i" +const PRIiFAST16 = "i" +const PRIiFAST32 = "i" +const PRIiFAST8 = "i" +const PRIiLEAST16 = "i" +const PRIiLEAST32 = "i" +const PRIiLEAST8 = "i" +const PRIo16 = "o" +const PRIo32 = "o" +const PRIo8 = "o" +const PRIoFAST16 = "o" +const PRIoFAST32 = "o" +const PRIoFAST8 = "o" +const PRIoLEAST16 = "o" +const PRIoLEAST32 = "o" +const PRIoLEAST8 = "o" +const PRIu16 = "u" +const PRIu32 = "u" +const PRIu8 = "u" +const PRIuFAST16 = "u" +const PRIuFAST32 = "u" +const PRIuFAST8 = "u" +const PRIuLEAST16 = "u" +const PRIuLEAST32 = "u" +const PRIuLEAST8 = "u" +const PRIx16 = "x" +const PRIx32 = "x" +const PRIx8 = "x" +const PRIxFAST16 = "x" +const PRIxFAST32 = "x" +const PRIxFAST8 = "x" +const PRIxLEAST16 = "x" +const PRIxLEAST32 = "x" +const PRIxLEAST8 = "x" +const PUTLONG = 0 +const PUTSHORT = 0 +const QFIXEDSZ = 4 +const QUERY = 0 +const REFUSED = 0 +const RES_AAONLY = 4 +const RES_BLAST = 131072 +const RES_DEBUG = 2 +const RES_DEFAULT = 524992 +const RES_DEFNAMES = 128 +const RES_DFLRETRY = 2 +const RES_DNSRCH = 512 +const RES_EXHAUSTIVE = 1 +const RES_F_CONN = 2 +const RES_F_EDNS0ERR = 4 +const RES_F_VC = 1 +const RES_IGNTC = 32 +const RES_INIT = 1 +const RES_INSECURE1 = 1024 +const RES_INSECURE2 = 2048 +const RES_KEEPTSIG = 65536 +const RES_MAXNDOTS = 15 +const RES_MAXRETRANS = 30 +const RES_MAXRETRY = 5 +const RES_MAXTIME = 65535 +const RES_NOALIASES = 4096 +const RES_NOCHECKNAME = 32768 +const RES_NOIP6DOTINT = 524288 +const RES_PRF_ADD = 128 +const RES_PRF_ANS = 32 +const RES_PRF_AUTH = 64 +const RES_PRF_CLASS = 4 +const RES_PRF_CMD = 8 +const RES_PRF_HEAD1 = 256 +const RES_PRF_HEAD2 = 512 +const RES_PRF_HEADX = 2048 +const RES_PRF_INIT = 16384 +const RES_PRF_QUERY = 4096 +const RES_PRF_QUES = 16 +const RES_PRF_REPLY = 8192 +const RES_PRF_STATS = 1 +const RES_PRF_TTLID = 1024 +const RES_PRF_UPDATE = 2 +const RES_PRIMARY = 16 +const RES_RECURSE = 64 +const RES_ROTATE = 16384 +const RES_SNGLKUP = 2097152 +const RES_SNGLKUPREOP = 4194304 +const RES_STAYOPEN = 256 +const RES_TIMEOUT = 5 +const RES_USEBSTRING = 262144 +const RES_USEVC = 8 +const RES_USE_DNSSEC = 8388608 +const RES_USE_EDNS0 = 1048576 +const RES_USE_INET6 = 8192 +const RRFIXEDSZ = 10 +const SCNd16 = "hd" +const SCNd32 = "d" +const SCNd8 = "hhd" +const SCNdFAST16 = "d" +const SCNdFAST32 = "d" +const SCNdFAST8 = "hhd" +const SCNdLEAST16 = "hd" +const SCNdLEAST32 = "d" +const SCNdLEAST8 = "hhd" +const SCNi16 = "hi" +const SCNi32 = "i" +const SCNi8 = "hhi" +const SCNiFAST16 = "i" +const SCNiFAST32 = "i" +const SCNiFAST8 = "hhi" +const SCNiLEAST16 = "hi" +const SCNiLEAST32 = "i" +const SCNiLEAST8 = "hhi" +const SCNo16 = "ho" +const SCNo32 = "o" +const SCNo8 = "hho" +const SCNoFAST16 = "o" +const SCNoFAST32 = "o" +const SCNoFAST8 = "hho" +const SCNoLEAST16 = "ho" +const SCNoLEAST32 = "o" +const SCNoLEAST8 = "hho" +const SCNu16 = "hu" +const SCNu32 = "u" +const SCNu8 = "hhu" +const SCNuFAST16 = "u" +const SCNuFAST32 = "u" +const SCNuFAST8 = "hhu" +const SCNuLEAST16 = "hu" +const SCNuLEAST32 = "u" +const SCNuLEAST8 = "hhu" +const SCNx16 = "hx" +const SCNx32 = "x" +const SCNx8 = "hhx" +const SCNxFAST16 = "x" +const SCNxFAST32 = "x" +const SCNxFAST8 = "hhx" +const SCNxLEAST16 = "hx" +const SCNxLEAST32 = "x" +const SCNxLEAST8 = "hhx" +const SERVFAIL = 0 +const STATUS = 0 +const S_ADDT = 0 +const S_PREREQ = 0 +const S_UPDATE = 0 +const S_ZONE = 0 +const T_A = 0 +const T_A6 = 0 +const T_AAAA = 0 +const T_AFSDB = 0 +const T_ANY = 0 +const T_ATMA = 0 +const T_AVC = 0 +const T_AXFR = 0 +const T_CAA = 0 +const T_CDNSKEY = 0 +const T_CDS = 0 +const T_CNAME = 0 +const T_CSYNC = 0 +const T_DHCID = 0 +const T_DLV = 0 +const T_DNAME = 0 +const T_DNSKEY = 0 +const T_DS = 0 +const T_EID = 0 +const T_EUI48 = 0 +const T_EUI64 = 0 +const T_GID = 0 +const T_GPOS = 0 +const T_HINFO = 0 +const T_HIP = 0 +const T_IPSECKEY = 0 +const T_ISDN = 0 +const T_IXFR = 0 +const T_KEY = 0 +const T_L32 = 0 +const T_L64 = 0 +const T_LOC = 0 +const T_LP = 0 +const T_MAILA = 0 +const T_MAILB = 0 +const T_MB = 0 +const T_MD = 0 +const T_MF = 0 +const T_MG = 0 +const T_MINFO = 0 +const T_MR = 0 +const T_MX = 0 +const T_NAPTR = 0 +const T_NID = 0 +const T_NIMLOC = 0 +const T_NINFO = 0 +const T_NS = 0 +const T_NSAP = 0 +const T_NSAP_PTR = 0 +const T_NSEC = 0 +const T_NSEC3 = 0 +const T_NSEC3PARAM = 0 +const T_NULL = 0 +const T_NXT = 0 +const T_OPENPGPKEY = 0 +const T_PTR = 0 +const T_PX = 0 +const T_RKEY = 0 +const T_RP = 0 +const T_RRSIG = 0 +const T_RT = 0 +const T_SIG = 0 +const T_SMIMEA = 0 +const T_SOA = 0 +const T_SPF = 0 +const T_SRV = 0 +const T_SSHFP = 0 +const T_TA = 0 +const T_TALINK = 0 +const T_TKEY = 0 +const T_TLSA = 0 +const T_TSIG = 0 +const T_TXT = 0 +const T_UID = 0 +const T_UINFO = 0 +const T_UNSPEC = 0 +const T_URI = 0 +const T_WKS = 0 +const T_X25 = 0 +const YXDOMAIN = 0 +const YXRRSET = 0 +const _PATH_RESCONF = "/etc/resolv.conf" +const __BIND = 19950621 +const __NAMESER = 19991006 +const __PRI64 = "l" +const __PRIPTR = "l" +const __RES = 19960801 +const __UAPI_DEF_IN6_ADDR = 0 +const __UAPI_DEF_IN6_ADDR_ALT = 0 +const __UAPI_DEF_IN6_PKTINFO = 0 +const __UAPI_DEF_IN_ADDR = 0 +const __UAPI_DEF_IN_CLASS = 0 +const __UAPI_DEF_IN_IPPROTO = 0 +const __UAPI_DEF_IN_PKTINFO = 0 +const __UAPI_DEF_IP6_MTUINFO = 0 +const __UAPI_DEF_IPPROTO_V6 = 0 +const __UAPI_DEF_IPV6_MREQ = 0 +const __UAPI_DEF_IPV6_OPTIONS = 0 +const __UAPI_DEF_IP_MREQ = 0 +const __UAPI_DEF_SOCKADDR_IN = 0 +const __UAPI_DEF_SOCKADDR_IN6 = 0 +const _res = 0 + +type Tns_sect = int32 + +type ___ns_sect = int32 + +const _ns_s_qd = 0 +const _ns_s_zn = 0 +const _ns_s_an = 1 +const _ns_s_pr = 1 +const _ns_s_ns = 2 +const _ns_s_ud = 2 +const _ns_s_ar = 3 +const _ns_s_max = 4 + +type Tns_msg = struct { + F_msg uintptr + F_eom uintptr + F_id Tuint16_t + F_flags Tuint16_t + F_counts [4]Tuint16_t + F_sections [4]uintptr + F_sect Tns_sect + F_rrnum int32 + F_msg_ptr uintptr +} + +type t__ns_msg = Tns_msg + +type T_ns_flagdata = struct { + Fmask int32 + Fshift int32 +} + +type Tns_rr = struct { + Fname [1025]uint8 + Ftype1 Tuint16_t + Frr_class Tuint16_t + Fttl Tuint32_t + Frdlength Tuint16_t + Frdata uintptr +} + +type t__ns_rr = Tns_rr + +type Tns_flag = int32 + +type ___ns_flag = int32 + +const _ns_f_qr = 0 +const _ns_f_opcode = 1 +const _ns_f_aa = 2 +const _ns_f_tc = 3 +const _ns_f_rd = 4 +const _ns_f_ra = 5 +const _ns_f_z = 6 +const _ns_f_ad = 7 +const _ns_f_cd = 8 +const _ns_f_rcode = 9 +const _ns_f_max = 10 + +type Tns_opcode = int32 + +type ___ns_opcode = int32 + +const _ns_o_query = 0 +const _ns_o_iquery = 1 +const _ns_o_status = 2 +const _ns_o_notify = 4 +const _ns_o_update = 5 +const _ns_o_max = 6 + +type Tns_rcode = int32 + +type ___ns_rcode = int32 + +const _ns_r_noerror = 0 +const _ns_r_formerr = 1 +const _ns_r_servfail = 2 +const _ns_r_nxdomain = 3 +const _ns_r_notimpl = 4 +const _ns_r_refused = 5 +const _ns_r_yxdomain = 6 +const _ns_r_yxrrset = 7 +const _ns_r_nxrrset = 8 +const _ns_r_notauth = 9 +const _ns_r_notzone = 10 +const _ns_r_max = 11 +const _ns_r_badvers = 16 +const _ns_r_badsig = 16 +const _ns_r_badkey = 17 +const _ns_r_badtime = 18 + +type Tns_update_operation = int32 + +type ___ns_update_operation = int32 + +const _ns_uop_delete = 0 +const _ns_uop_add = 1 +const _ns_uop_max = 2 + +type Tns_tsig_key = struct { + Fname [1025]uint8 + Falg [1025]uint8 + Fdata uintptr + Flen1 int32 +} + +type Tns_tcp_tsig_state = struct { + Fcounter int32 + Fkey uintptr + Fctx uintptr + Fsig [512]uint8 + Fsiglen int32 +} + +type Tns_type = int32 + +type ___ns_type = int32 + +const _ns_t_invalid = 0 +const _ns_t_a = 1 +const _ns_t_ns = 2 +const _ns_t_md = 3 +const _ns_t_mf = 4 +const _ns_t_cname = 5 +const _ns_t_soa = 6 +const _ns_t_mb = 7 +const _ns_t_mg = 8 +const _ns_t_mr = 9 +const _ns_t_null = 10 +const _ns_t_wks = 11 +const _ns_t_ptr = 12 +const _ns_t_hinfo = 13 +const _ns_t_minfo = 14 +const _ns_t_mx = 15 +const _ns_t_txt = 16 +const _ns_t_rp = 17 +const _ns_t_afsdb = 18 +const _ns_t_x25 = 19 +const _ns_t_isdn = 20 +const _ns_t_rt = 21 +const _ns_t_nsap = 22 +const _ns_t_nsap_ptr = 23 +const _ns_t_sig = 24 +const _ns_t_key = 25 +const _ns_t_px = 26 +const _ns_t_gpos = 27 +const _ns_t_aaaa = 28 +const _ns_t_loc = 29 +const _ns_t_nxt = 30 +const _ns_t_eid = 31 +const _ns_t_nimloc = 32 +const _ns_t_srv = 33 +const _ns_t_atma = 34 +const _ns_t_naptr = 35 +const _ns_t_kx = 36 +const _ns_t_cert = 37 +const _ns_t_a6 = 38 +const _ns_t_dname = 39 +const _ns_t_sink = 40 +const _ns_t_opt = 41 +const _ns_t_apl = 42 +const _ns_t_ds = 43 +const _ns_t_sshfp = 44 +const _ns_t_ipseckey = 45 +const _ns_t_rrsig = 46 +const _ns_t_nsec = 47 +const _ns_t_dnskey = 48 +const _ns_t_dhcid = 49 +const _ns_t_nsec3 = 50 +const _ns_t_nsec3param = 51 +const _ns_t_tlsa = 52 +const _ns_t_smimea = 53 +const _ns_t_hip = 55 +const _ns_t_ninfo = 56 +const _ns_t_rkey = 57 +const _ns_t_talink = 58 +const _ns_t_cds = 59 +const _ns_t_cdnskey = 60 +const _ns_t_openpgpkey = 61 +const _ns_t_csync = 62 +const _ns_t_spf = 99 +const _ns_t_uinfo = 100 +const _ns_t_uid = 101 +const _ns_t_gid = 102 +const _ns_t_unspec = 103 +const _ns_t_nid = 104 +const _ns_t_l32 = 105 +const _ns_t_l64 = 106 +const _ns_t_lp = 107 +const _ns_t_eui48 = 108 +const _ns_t_eui64 = 109 +const _ns_t_tkey = 249 +const _ns_t_tsig = 250 +const _ns_t_ixfr = 251 +const _ns_t_axfr = 252 +const _ns_t_mailb = 253 +const _ns_t_maila = 254 +const _ns_t_any = 255 +const _ns_t_zxfr = 256 +const _ns_t_uri = 256 +const _ns_t_caa = 257 +const _ns_t_avc = 258 +const _ns_t_ta = 32768 +const _ns_t_dlv = 32769 +const _ns_t_max = 65536 + +type Tns_class = int32 + +type ___ns_class = int32 + +const _ns_c_invalid = 0 +const _ns_c_in = 1 +const _ns_c_2 = 2 +const _ns_c_chaos = 3 +const _ns_c_hs = 4 +const _ns_c_none = 254 +const _ns_c_any = 255 +const _ns_c_max = 65536 + +type Tns_key_types = int32 + +type ___ns_key_types = int32 + +const _ns_kt_rsa = 1 +const _ns_kt_dh = 2 +const _ns_kt_dsa = 3 +const _ns_kt_private = 254 + +type Tns_cert_types = int32 + +type ___ns_cert_types = int32 + +const _cert_t_pkix = 1 +const _cert_t_spki = 2 +const _cert_t_pgp = 3 +const _cert_t_url = 253 +const _cert_t_oid = 254 + +type THEADER = struct { + F__ccgo0 uint32 + F__ccgo4 uint32 + F__ccgo8 uint32 +} + +type Timaxdiv_t = struct { + Fquot Tintmax_t + Frem Tintmax_t +} + +type Tin_port_t = uint16 + +type Tin_addr_t = uint32 + +type Tin_addr = struct { + Fs_addr Tin_addr_t +} + +type Tsockaddr_in = struct { + Fsin_family Tsa_family_t + Fsin_port Tin_port_t + Fsin_addr Tin_addr + Fsin_zero [8]Tuint8_t +} + +type Tin6_addr = struct { + F__in6_union struct { + F__s6_addr16 [0][8]Tuint16_t + F__s6_addr32 [0][4]Tuint32_t + F__s6_addr [16]Tuint8_t + } +} + +type Tsockaddr_in6 = struct { + Fsin6_family Tsa_family_t + Fsin6_port Tin_port_t + Fsin6_flowinfo Tuint32_t + Fsin6_addr Tin6_addr + Fsin6_scope_id Tuint32_t +} + +type Tipv6_mreq = struct { + Fipv6mr_multiaddr Tin6_addr + Fipv6mr_interface uint32 +} + +type Tip_opts = struct { + Fip_dst Tin_addr + Fip_opts [40]uint8 +} + +type Tres_state = uintptr + +type t__res_state = struct { + Fretrans int32 + Fretry int32 + Foptions uint64 + Fnscount int32 + Fnsaddr_list [3]Tsockaddr_in + Fid uint16 + Fdnsrch [7]uintptr + Fdefdname [256]uint8 + Fpfcode uint64 + F__ccgo392 uint32 + Fsort_list [10]struct { + Faddr Tin_addr + Fmask Tuint32_t + } + Fqhook uintptr + Frhook uintptr + Fres_h_errno int32 + F_vcsock int32 + F_flags uint32 + F_u struct { + F_ext [0]struct { + Fnscount Tuint16_t + Fnsmap [3]Tuint16_t + Fnssocks [3]int32 + Fnscount6 Tuint16_t + Fnsinit Tuint16_t + Fnsaddrs [3]uintptr + F_initstamp [2]uint32 + } + Fpad [52]uint8 + F__ccgo_pad2 [4]byte + } +} + +type Tres_sym = struct { + Fnumber int32 + Fname uintptr + Fhumanname uintptr +} + +/* RFC 1035 message compression */ + +// C documentation +// +// /* label start offsets of a compressed domain name s */ +func _getoffs(tls *TLS, offs uintptr, base uintptr, s uintptr) (r int32) { + var i, v2 int32 + _, _ = i, v2 + i = 0 + for { + for Int32FromUint8(**(**uint8)(__ccgo_up(s)))&int32(0xc0) != 0 { + if Int32FromUint8(**(**uint8)(__ccgo_up(s)))&int32(0xc0) != int32(0xc0) { + return 0 + } + s = base + uintptr(Int32FromUint8(**(**uint8)(__ccgo_up(s)))&Int32FromInt32(0x3f)<= int64(0x4000) { + return 0 + } + v2 = i + i = i + 1 + **(**int16)(__ccgo_up(offs + uintptr(v2)*2)) = int16(int64(s) - int64(base)) + s = s + uintptr(Int32FromUint8(**(**uint8)(__ccgo_up(s)))+int32(1)) + goto _1 + _1: + } + return r +} + +// C documentation +// +// /* label lengths of an ascii domain name s */ +func _getlens(tls *TLS, lens uintptr, s uintptr, l int32) (r int32) { + var i, j, k, v3 int32 + _, _, _, _ = i, j, k, v3 + i = 0 + j = 0 + k = 0 + for { + for { + if !(j < l && Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(j)))) != int32('.')) { + break + } + goto _2 + _2: + ; + j = j + 1 + } + if Uint32FromInt32(j-k)-uint32(1) > uint32(62) { + return 0 + } + v3 = i + i = i + 1 + **(**uint8)(__ccgo_up(lens + uintptr(v3))) = Uint8FromInt32(j - k) + if j == l { + return i + } + j = j + 1 + v3 = j + k = v3 + goto _1 + _1: + } + return r +} + +// C documentation +// +// /* longest suffix match of an ascii domain with a compressed domain name dn */ +func _match(tls *TLS, offset uintptr, base uintptr, dn uintptr, end uintptr, lens uintptr, nlen int32) (r int32) { + bp := tls.Alloc(256) + defer tls.Free(256) + var l, m, noff, o, v2 int32 + var _ /* offs at bp+0 */ [128]int16 + _, _, _, _, _ = l, m, noff, o, v2 + m = 0 + noff = _getoffs(tls, bp, base, dn) + if !(noff != 0) { + return 0 + } + for { + nlen = nlen - 1 + v2 = nlen + l = Int32FromUint8(**(**uint8)(__ccgo_up(lens + uintptr(v2)))) + noff = noff - 1 + v2 = noff + o = int32((**(**[128]int16)(__ccgo_up(bp)))[v2]) + end = end - uintptr(l) + if l != Int32FromUint8(**(**uint8)(__ccgo_up(base + uintptr(o)))) || Xmemcmp(tls, base+uintptr(o)+uintptr(1), end, Uint64FromInt32(l)) != 0 { + return m + } + **(**int32)(__ccgo_up(offset)) = o + m = m + l + if nlen != 0 { + m = m + 1 + } + if !(nlen != 0) || !(noff != 0) { + return m + } + end = end - 1 + goto _1 + _1: + } + return r +} + +func Xdn_comp(tls *TLS, src uintptr, dst uintptr, space int32, dnptrs uintptr, lastdnptr uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v src=%v dst=%v space=%v dnptrs=%v lastdnptr=%v, (%v:)", tls, src, dst, space, dnptrs, lastdnptr, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(144) + defer tls.Free(144) + var bestlen, bestoff, i, j, m, n, v3 int32 + var end, p, v8 uintptr + var l Tsize_t + var _ /* lens at bp+4 */ [127]uint8 + var _ /* offset at bp+0 */ int32 + _, _, _, _, _, _, _, _, _, _, _ = bestlen, bestoff, end, i, j, l, m, n, p, v3, v8 + m = 0 + bestlen = 0 + l = Xstrnlen(tls, src, uint64(255)) + if l != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(src + uintptr(l-uint64(1))))) == int32('.') { + l = l - 1 + } + if l > uint64(253) || space <= 0 { + return -int32(1) + } + if !(l != 0) { + **(**uint8)(__ccgo_up(dst)) = uint8(0) + return int32(1) + } + end = src + uintptr(l) + n = _getlens(tls, bp+4, src, Int32FromUint64(l)) + if !(n != 0) { + return -int32(1) + } + p = dnptrs + if p != 0 && **(**uintptr)(__ccgo_up(p)) != 0 { + p += 8 + for { + if !(**(**uintptr)(__ccgo_up(p)) != 0) { + break + } + m = _match(tls, bp, **(**uintptr)(__ccgo_up(dnptrs)), **(**uintptr)(__ccgo_up(p)), end, bp+4, n) + if m > bestlen { + bestlen = m + bestoff = **(**int32)(__ccgo_up(bp)) + if Uint64FromInt32(m) == l { + break + } + } + goto _1 + _1: + ; + p += 8 + } + } + /* encode unmatched part */ + if Uint64FromInt32(space) < l-Uint64FromInt32(bestlen)+uint64(2)+BoolUint64(Uint64FromInt32(bestlen-Int32FromInt32(1)) < l-Uint64FromInt32(1)) { + return -int32(1) + } + Xmemcpy(tls, dst+uintptr(1), src, l-Uint64FromInt32(bestlen)) + v3 = Int32FromInt32(0) + j = v3 + i = v3 + for { + if !(Uint64FromInt32(i) < l-Uint64FromInt32(bestlen)) { + break + } + **(**uint8)(__ccgo_up(dst + uintptr(i))) = (**(**[127]uint8)(__ccgo_up(bp + 4)))[j] + goto _2 + _2: + ; + v3 = j + j = j + 1 + i = i + (Int32FromUint8((**(**[127]uint8)(__ccgo_up(bp + 4)))[v3]) + int32(1)) + } + /* add tail */ + if bestlen != 0 { + v3 = i + i = i + 1 + **(**uint8)(__ccgo_up(dst + uintptr(v3))) = Uint8FromInt32(int32(0xc0) | bestoff>>int32(8)) + v3 = i + i = i + 1 + **(**uint8)(__ccgo_up(dst + uintptr(v3))) = Uint8FromInt32(bestoff) + } else { + v3 = i + i = i + 1 + **(**uint8)(__ccgo_up(dst + uintptr(v3))) = uint8(0) + } + /* save dst pointer */ + if i > int32(2) && lastdnptr != 0 && dnptrs != 0 && **(**uintptr)(__ccgo_up(dnptrs)) != 0 { + for **(**uintptr)(__ccgo_up(p)) != 0 { + p += 8 + } + if p+uintptr(1)*8 < lastdnptr { + v8 = p + p += 8 + **(**uintptr)(__ccgo_up(v8)) = dst + **(**uintptr)(__ccgo_up(p)) = uintptr(0) + } + } + return i +} + +func X__dn_expand(tls *TLS, base uintptr, end uintptr, src uintptr, dest uintptr, space int32) (r int32) { + if __ccgo_strace { + trc("tls=%v base=%v end=%v src=%v dest=%v space=%v, (%v:)", tls, base, end, src, dest, space, origin(2)) + defer func() { trc("-> %v", r) }() + } + var dbegin, dend, p, v3, v4 uintptr + var i, j, len1, v1 int32 + _, _, _, _, _, _, _, _, _ = dbegin, dend, i, j, len1, p, v1, v3, v4 + p = src + dbegin = dest + len1 = -int32(1) + if p == end || space <= 0 { + return -int32(1) + } + if space > int32(254) { + v1 = int32(254) + } else { + v1 = space + } + dend = dest + uintptr(v1) + /* detect reference loop using an iteration counter */ + i = 0 + for { + if !(int64(i) < int64(end)-int64(base)) { + break + } + /* loop invariants: p= int64(end)-int64(base) { + return -int32(1) + } + p = base + uintptr(j) + } else { + if **(**uint8)(__ccgo_up(p)) != 0 { + if dest != dbegin { + v3 = dest + dest = dest + 1 + **(**uint8)(__ccgo_up(v3)) = uint8('.') + } + v3 = p + p = p + 1 + j = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + if int64(j) >= int64(end)-int64(p) || int64(j) >= int64(dend)-int64(dest) { + return -int32(1) + } + for { + v1 = j + j = j - 1 + if !(v1 != 0) { + break + } + v3 = dest + dest = dest + 1 + v4 = p + p = p + 1 + **(**uint8)(__ccgo_up(v3)) = uint8(**(**uint8)(__ccgo_up(v4))) + } + } else { + **(**uint8)(__ccgo_up(dest)) = uint8(0) + if len1 < 0 { + len1 = int32(int64(p+uintptr(1)) - int64(src)) + } + return len1 + } + } + goto _2 + _2: + ; + i = i + int32(2) + } + return -int32(1) +} + +func Xdn_expand(tls *TLS, base uintptr, end uintptr, src uintptr, dest uintptr, space int32) (r int32) { + if __ccgo_strace { + trc("tls=%v base=%v end=%v src=%v dest=%v space=%v, (%v:)", tls, base, end, src, dest, space, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__dn_expand(tls, base, end, src, dest, space) +} + +func Xdn_skipname(tls *TLS, s uintptr, end uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v end=%v, (%v:)", tls, s, end, origin(2)) + defer func() { trc("-> %v", r) }() + } + var p uintptr + _ = p + p = s + for p < end { + if !(**(**uint8)(__ccgo_up(p)) != 0) { + return int32(int64(p) - int64(s) + int64(1)) + } else { + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) >= int32(192) { + if p+uintptr(1) < end { + return int32(int64(p) - int64(s) + int64(2)) + } else { + break + } + } else { + if int64(end)-int64(p) < int64(Int32FromUint8(**(**uint8)(__ccgo_up(p)))+int32(1)) { + break + } else { + p = p + uintptr(Int32FromUint8(**(**uint8)(__ccgo_up(p)))+int32(1)) + } + } + } + } + return -int32(1) +} + +const AI_ADDRCONFIG = 32 +const AI_ALL = 16 +const AI_CANONNAME = 2 +const AI_NUMERICHOST = 4 +const AI_NUMERICSERV = 1024 +const AI_PASSIVE = 1 +const AI_V4MAPPED = 8 +const EAI_AGAIN = -3 +const EAI_BADFLAGS = -1 +const EAI_FAIL = -4 +const EAI_FAMILY = -6 +const EAI_MEMORY = -10 +const EAI_NODATA = -5 +const EAI_NONAME = -2 +const EAI_OVERFLOW = -12 +const EAI_SERVICE = -8 +const EAI_SOCKTYPE = -7 +const EAI_SYSTEM = -11 +const MAXADDRS = 48 +const MAXSERVS = 2 +const NI_DGRAM = 16 +const NI_NAMEREQD = 8 +const NI_NOFQDN = 4 +const NI_NUMERICHOST = 1 +const NI_NUMERICSCOPE = 256 +const NI_NUMERICSERV = 2 + +type Taddrinfo = struct { + Fai_flags int32 + Fai_family int32 + Fai_socktype int32 + Fai_protocol int32 + Fai_addrlen Tsocklen_t + Fai_addr uintptr + Fai_canonname uintptr + Fai_next uintptr +} + +type Tnetent = struct { + Fn_name uintptr + Fn_aliases uintptr + Fn_addrtype int32 + Fn_net Tuint32_t +} + +type Thostent = struct { + Fh_name uintptr + Fh_aliases uintptr + Fh_addrtype int32 + Fh_length int32 + Fh_addr_list uintptr +} + +type Tservent = struct { + Fs_name uintptr + Fs_aliases uintptr + Fs_port int32 + Fs_proto uintptr +} + +type Tprotoent = struct { + Fp_name uintptr + Fp_aliases uintptr + Fp_proto int32 +} + +type Taibuf = struct { + Fai Taddrinfo + Fsa Tsa + Flock [1]int32 + Fslot int16 + Fref int16 +} + +type Taddress = struct { + Ffamily int32 + Fscopeid uint32 + Faddr [16]Tuint8_t + Fsortkey int32 +} + +type Tservice = struct { + Fport Tuint16_t + Fproto uint8 + Fsocktype uint8 +} + +type Tresolvconf = struct { + Fns [3]Taddress + Fnns uint32 + Fattempts uint32 + Fndots uint32 + Ftimeout uint32 +} + +type t__ccgo_fp__X__dns_parse_2 = func(*TLS, uintptr, int32, uintptr, int32, uintptr, int32) int32 + +func X__dns_parse(tls *TLS, r uintptr, rlen int32, __ccgo_fp_callback uintptr, ctx uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v r=%v rlen=%v __ccgo_fp_callback=%v ctx=%v, (%v:)", tls, r, rlen, __ccgo_fp_callback, ctx, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var ancount, len1, qdcount, v1 int32 + var p uintptr + _, _, _, _, _ = ancount, len1, p, qdcount, v1 + if rlen < int32(12) { + return -int32(1) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(r + 3)))&int32(15) != 0 { + return 0 + } + p = r + uintptr(12) + qdcount = Int32FromUint8(**(**uint8)(__ccgo_up(r + 4)))*int32(256) + Int32FromUint8(**(**uint8)(__ccgo_up(r + 5))) + ancount = Int32FromUint8(**(**uint8)(__ccgo_up(r + 6)))*int32(256) + Int32FromUint8(**(**uint8)(__ccgo_up(r + 7))) + for { + v1 = qdcount + qdcount = qdcount - 1 + if !(v1 != 0) { + break + } + for int64(p)-int64(r) < int64(rlen) && uint32(**(**uint8)(__ccgo_up(p)))-uint32(1) < uint32(127) { + p = p + 1 + } + if p > r+uintptr(rlen)-uintptr(6) { + return -int32(1) + } + p = p + uintptr(int32(5)+BoolInt32(!!(**(**uint8)(__ccgo_up(p)) != 0))) + } + for { + v1 = ancount + ancount = ancount - 1 + if !(v1 != 0) { + break + } + for int64(p)-int64(r) < int64(rlen) && uint32(**(**uint8)(__ccgo_up(p)))-uint32(1) < uint32(127) { + p = p + 1 + } + if p > r+uintptr(rlen)-uintptr(12) { + return -int32(1) + } + p = p + uintptr(int32(1)+BoolInt32(!!(**(**uint8)(__ccgo_up(p)) != 0))) + len1 = Int32FromUint8(**(**uint8)(__ccgo_up(p + 8)))*int32(256) + Int32FromUint8(**(**uint8)(__ccgo_up(p + 9))) + if int64(len1+int32(10)) > int64(r+uintptr(rlen))-int64(p) { + return -int32(1) + } + if (*(*func(*TLS, uintptr, int32, uintptr, int32, uintptr, int32) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_callback})))(tls, ctx, Int32FromUint8(**(**uint8)(__ccgo_up(p + 1))), p+uintptr(10), len1, r, rlen) < 0 { + return -int32(1) + } + p = p + uintptr(int32(10)+len1) + } + return 0 +} + +type Tsa = struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte +} + +func Xsethostent(tls *TLS, x int32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + } +} + +func Xgethostent(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(0) +} + +func Xgetnetent(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(0) +} + +func Xendhostent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } +} + +func Xendnetent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + Xendhostent(tls) +} + +func Xsetnetent(tls *TLS, x int32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + } + Xsethostent(tls, x) +} + +const ARPD_FLUSH = 3 +const ARPD_LOOKUP = 2 +const ARPD_UPDATE = 1 +const ARPHRD_6LOWPAN = 825 +const ARPHRD_ADAPT = 264 +const ARPHRD_APPLETLK = 8 +const ARPHRD_ARCNET = 7 +const ARPHRD_ASH = 781 +const ARPHRD_ATM = 19 +const ARPHRD_AX25 = 3 +const ARPHRD_BIF = 775 +const ARPHRD_CAIF = 822 +const ARPHRD_CAN = 280 +const ARPHRD_CHAOS = 5 +const ARPHRD_CISCO = 513 +const ARPHRD_CSLIP = 257 +const ARPHRD_CSLIP6 = 259 +const ARPHRD_DDCMP = 517 +const ARPHRD_DLCI = 15 +const ARPHRD_ECONET = 782 +const ARPHRD_EETHER = 2 +const ARPHRD_ETHER = 1 +const ARPHRD_EUI64 = 27 +const ARPHRD_FCAL = 785 +const ARPHRD_FCFABRIC = 787 +const ARPHRD_FCPL = 786 +const ARPHRD_FCPP = 784 +const ARPHRD_FDDI = 774 +const ARPHRD_FRAD = 770 +const ARPHRD_HDLC = 513 +const ARPHRD_HIPPI = 780 +const ARPHRD_HWX25 = 272 +const ARPHRD_IEEE1394 = 24 +const ARPHRD_IEEE802 = 6 +const ARPHRD_IEEE80211 = 801 +const ARPHRD_IEEE80211_PRISM = 802 +const ARPHRD_IEEE80211_RADIOTAP = 803 +const ARPHRD_IEEE802154 = 804 +const ARPHRD_IEEE802154_MONITOR = 805 +const ARPHRD_IEEE802_TR = 800 +const ARPHRD_INFINIBAND = 32 +const ARPHRD_IP6GRE = 823 +const ARPHRD_IPDDP = 777 +const ARPHRD_IPGRE = 778 +const ARPHRD_IRDA = 783 +const ARPHRD_LAPB = 516 +const ARPHRD_LOCALTLK = 773 +const ARPHRD_LOOPBACK = 772 +const ARPHRD_METRICOM = 23 +const ARPHRD_NETLINK = 824 +const ARPHRD_NETROM = 0 +const ARPHRD_NONE = 65534 +const ARPHRD_PHONET = 820 +const ARPHRD_PHONET_PIPE = 821 +const ARPHRD_PIMREG = 779 +const ARPHRD_PPP = 512 +const ARPHRD_PRONET = 4 +const ARPHRD_RAWHDLC = 518 +const ARPHRD_RAWIP = 519 +const ARPHRD_ROSE = 270 +const ARPHRD_RSRVD = 260 +const ARPHRD_SIT = 776 +const ARPHRD_SKIP = 771 +const ARPHRD_SLIP = 256 +const ARPHRD_SLIP6 = 258 +const ARPHRD_TUNNEL = 768 +const ARPHRD_TUNNEL6 = 769 +const ARPHRD_VOID = 65535 +const ARPHRD_VSOCKMON = 826 +const ARPHRD_X25 = 271 +const ARPOP_InREPLY = 9 +const ARPOP_InREQUEST = 8 +const ARPOP_NAK = 10 +const ARPOP_REPLY = 2 +const ARPOP_REQUEST = 1 +const ARPOP_RREPLY = 4 +const ARPOP_RREQUEST = 3 +const ATF_COM = 2 +const ATF_DONTPUB = 64 +const ATF_MAGIC = 128 +const ATF_NETMASK = 32 +const ATF_PERM = 4 +const ATF_PUBL = 8 +const ATF_USETRAILERS = 16 +const ETHERMIN = 46 +const ETHERMTU = 1500 +const ETHERTYPE_AARP = 33011 +const ETHERTYPE_ARP = 2054 +const ETHERTYPE_AT = 32923 +const ETHERTYPE_IP = 2048 +const ETHERTYPE_IPV6 = 34525 +const ETHERTYPE_IPX = 33079 +const ETHERTYPE_LOOPBACK = 36864 +const ETHERTYPE_NTRAILER = 16 +const ETHERTYPE_PUP = 512 +const ETHERTYPE_REVARP = 32821 +const ETHERTYPE_SPRITE = 1280 +const ETHERTYPE_TRAIL = 4096 +const ETHERTYPE_VLAN = 33024 +const ETHER_ADDR_LEN = 6 +const ETHER_CRC_LEN = 4 +const ETHER_HDR_LEN = 14 +const ETHER_MAX_LEN = 1518 +const ETHER_MIN_LEN = 64 +const ETHER_TYPE_LEN = 2 +const ETH_ALEN = 6 +const ETH_DATA_LEN = 1500 +const ETH_FCS_LEN = 4 +const ETH_FRAME_LEN = 1514 +const ETH_HLEN = 14 +const ETH_MAX_MTU = 65535 +const ETH_MIN_MTU = 68 +const ETH_P_1588 = 35063 +const ETH_P_8021AD = 34984 +const ETH_P_8021AH = 35047 +const ETH_P_8021Q = 33024 +const ETH_P_80221 = 35095 +const ETH_P_802_2 = 4 +const ETH_P_802_3 = 1 +const ETH_P_802_3_MIN = 1536 +const ETH_P_802_EX1 = 34997 +const ETH_P_AARP = 33011 +const ETH_P_AF_IUCV = 64507 +const ETH_P_ALL = 3 +const ETH_P_AOE = 34978 +const ETH_P_ARCNET = 26 +const ETH_P_ARP = 2054 +const ETH_P_ATALK = 32923 +const ETH_P_ATMFATE = 34948 +const ETH_P_ATMMPOA = 34892 +const ETH_P_AX25 = 2 +const ETH_P_BATMAN = 17157 +const ETH_P_BPQ = 2303 +const ETH_P_CAIF = 247 +const ETH_P_CAN = 12 +const ETH_P_CANFD = 13 +const ETH_P_CFM = 35074 +const ETH_P_CONTROL = 22 +const ETH_P_CUST = 24582 +const ETH_P_DDCMP = 6 +const ETH_P_DEC = 24576 +const ETH_P_DIAG = 24581 +const ETH_P_DNA_DL = 24577 +const ETH_P_DNA_RC = 24578 +const ETH_P_DNA_RT = 24579 +const ETH_P_DSA = 27 +const ETH_P_DSA_8021Q = 56027 +const ETH_P_ECONET = 24 +const ETH_P_EDSA = 56026 +const ETH_P_ERSPAN = 35006 +const ETH_P_ERSPAN2 = 8939 +const ETH_P_FCOE = 35078 +const ETH_P_FIP = 35092 +const ETH_P_HDLC = 25 +const ETH_P_HSR = 35119 +const ETH_P_IBOE = 35093 +const ETH_P_IEEE802154 = 246 +const ETH_P_IEEEPUP = 2560 +const ETH_P_IEEEPUPAT = 2561 +const ETH_P_IFE = 60734 +const ETH_P_IP = 2048 +const ETH_P_IPV6 = 34525 +const ETH_P_IPX = 33079 +const ETH_P_IRDA = 23 +const ETH_P_LAT = 24580 +const ETH_P_LINK_CTL = 34924 +const ETH_P_LLDP = 35020 +const ETH_P_LOCALTALK = 9 +const ETH_P_LOOP = 96 +const ETH_P_LOOPBACK = 36864 +const ETH_P_MACSEC = 35045 +const ETH_P_MAP = 249 +const ETH_P_MOBITEX = 21 +const ETH_P_MPLS_MC = 34888 +const ETH_P_MPLS_UC = 34887 +const ETH_P_MRP = 35043 +const ETH_P_MVRP = 35061 +const ETH_P_NCSI = 35064 +const ETH_P_NSH = 35151 +const ETH_P_PAE = 34958 +const ETH_P_PAUSE = 34824 +const ETH_P_PHONET = 245 +const ETH_P_PPPTALK = 16 +const ETH_P_PPP_DISC = 34915 +const ETH_P_PPP_MP = 8 +const ETH_P_PPP_SES = 34916 +const ETH_P_PREAUTH = 35015 +const ETH_P_PRP = 35067 +const ETH_P_PUP = 512 +const ETH_P_PUPAT = 513 +const ETH_P_QINQ1 = 37120 +const ETH_P_QINQ2 = 37376 +const ETH_P_QINQ3 = 37632 +const ETH_P_RARP = 32821 +const ETH_P_SCA = 24583 +const ETH_P_SLOW = 34825 +const ETH_P_SNAP = 5 +const ETH_P_TDLS = 35085 +const ETH_P_TEB = 25944 +const ETH_P_TIPC = 35018 +const ETH_P_TRAILER = 28 +const ETH_P_TR_802_2 = 17 +const ETH_P_TSN = 8944 +const ETH_P_WAN_PPP = 7 +const ETH_P_WCCP = 34878 +const ETH_P_X25 = 2053 +const ETH_P_XDSA = 248 +const ETH_TLEN = 2 +const ETH_ZLEN = 60 +const MAX_ADDR_LEN = 7 +const __UAPI_DEF_ETHHDR = 0 + +type Tethhdr = struct { + Fh_dest [6]Tuint8_t + Fh_source [6]Tuint8_t + Fh_proto Tuint16_t +} + +type Tether_addr = struct { + Fether_addr_octet [6]Tuint8_t +} + +type Tether_header = struct { + Fether_dhost [6]Tuint8_t + Fether_shost [6]Tuint8_t + Fether_type Tuint16_t +} + +type Tarphdr = struct { + Far_hrd Tuint16_t + Far_pro Tuint16_t + Far_hln Tuint8_t + Far_pln Tuint8_t + Far_op Tuint16_t +} + +type Tarpreq = struct { + Farp_pa Tsockaddr + Farp_ha Tsockaddr + Farp_flags int32 + Farp_netmask Tsockaddr + Farp_dev [16]uint8 +} + +type Tarpreq_old = struct { + Farp_pa Tsockaddr + Farp_ha Tsockaddr + Farp_flags int32 + Farp_netmask Tsockaddr +} + +type Tarpd_request = struct { + Freq uint16 + Fip Tuint32_t + Fdev uint64 + Fstamp uint64 + Fupdated uint64 + Fha [7]uint8 +} + +type Tether_arp = struct { + Fea_hdr Tarphdr + Farp_sha [6]Tuint8_t + Farp_spa [4]Tuint8_t + Farp_tha [6]Tuint8_t + Farp_tpa [4]Tuint8_t +} + +func Xether_aton_r(tls *TLS, x uintptr, p_a uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v x=%v p_a=%v, (%v:)", tls, x, p_a, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ii int32 + var n uint64 + var _ /* a at bp+0 */ Tether_addr + var _ /* y at bp+8 */ uintptr + _, _ = ii, n + ii = 0 + for { + if !(ii < int32(6)) { + break + } + if ii != 0 { + if Int32FromUint8(**(**uint8)(__ccgo_up(x))) != int32(':') { + return uintptr(0) + } else { + x = x + 1 + } + } + n = Xstrtoul(tls, x, bp+8, int32(16)) + x = **(**uintptr)(__ccgo_up(bp + 8)) + if n > uint64(0xFF) { + return uintptr(0) + } /* bad byte */ + **(**Tuint8_t)(__ccgo_up(bp + uintptr(ii))) = uint8(n) + goto _1 + _1: + ; + ii = ii + 1 + } + if Int32FromUint8(**(**uint8)(__ccgo_up(x))) != 0 { + return uintptr(0) + } /* bad format */ + **(**Tether_addr)(__ccgo_up(p_a)) = **(**Tether_addr)(__ccgo_up(bp)) + return p_a +} + +func Xether_aton(tls *TLS, x uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xether_aton_r(tls, x, uintptr(unsafe.Pointer(&_a))) +} + +var _a Tether_addr + +func Xether_ntoa_r(tls *TLS, p_a uintptr, x uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v p_a=%v x=%v, (%v:)", tls, p_a, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ii int32 + var y, v2 uintptr + _, _, _ = ii, y, v2 + y = x + ii = 0 + for { + if !(ii < int32(6)) { + break + } + if ii == 0 { + v2 = __ccgo_ts + 1013 + } else { + v2 = __ccgo_ts + 1018 + } + x = x + uintptr(Xsprintf(tls, x, v2, VaList(bp+8, Int32FromUint8(**(**Tuint8_t)(__ccgo_up(p_a + uintptr(ii))))))) + goto _1 + _1: + ; + ii = ii + 1 + } + return y +} + +func Xether_ntoa(tls *TLS, p_a uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v p_a=%v, (%v:)", tls, p_a, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xether_ntoa_r(tls, p_a, uintptr(unsafe.Pointer(&_x))) +} + +var _x [18]uint8 + +func Xether_line(tls *TLS, l uintptr, e uintptr, hostname uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v l=%v e=%v hostname=%v, (%v:)", tls, l, e, hostname, origin(2)) + defer func() { trc("-> %v", r) }() + } + return -int32(1) +} + +func Xether_ntohost(tls *TLS, hostname uintptr, e uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v hostname=%v e=%v, (%v:)", tls, hostname, e, origin(2)) + defer func() { trc("-> %v", r) }() + } + return -int32(1) +} + +func Xether_hostton(tls *TLS, hostname uintptr, e uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v hostname=%v e=%v, (%v:)", tls, hostname, e, origin(2)) + defer func() { trc("-> %v", r) }() + } + return -int32(1) +} + +func Xfreeaddrinfo(tls *TLS, p uintptr) { + if __ccgo_strace { + trc("tls=%v p=%v, (%v:)", tls, p, origin(2)) + } + var b, v2 uintptr + var cnt Tsize_t + _, _, _ = b, cnt, v2 + cnt = uint64(1) + for { + if !((*Taddrinfo)(unsafe.Pointer(p)).Fai_next != 0) { + break + } + goto _1 + _1: + ; + cnt = cnt + 1 + p = (*Taddrinfo)(unsafe.Pointer(p)).Fai_next + } + b = p - uintptr(uint64(UintptrFromInt32(0))) + b = b - uintptr((*Taibuf)(unsafe.Pointer(b)).Fslot)*88 + ___lock(tls, b+76) + v2 = b + 82 + *(*int16)(unsafe.Pointer(v2)) = int16(uint64(*(*int16)(unsafe.Pointer(v2))) - cnt) + if !(*(*int16)(unsafe.Pointer(v2)) != 0) { + Xfree(tls, b) + } else { + ___unlock(tls, b+76) + } +} + +var _msgs = [252]uint8{'I', 'n', 'v', 'a', 'l', 'i', 'd', ' ', 'f', 'l', 'a', 'g', 's', 0, 'N', 'a', 'm', 'e', ' ', 'd', 'o', 'e', 's', ' ', 'n', 'o', 't', ' ', 'r', 'e', 's', 'o', 'l', 'v', 'e', 0, 'T', 'r', 'y', ' ', 'a', 'g', 'a', 'i', 'n', 0, 'N', 'o', 'n', '-', 'r', 'e', 'c', 'o', 'v', 'e', 'r', 'a', 'b', 'l', 'e', ' ', 'e', 'r', 'r', 'o', 'r', 0, 'N', 'a', 'm', 'e', ' ', 'h', 'a', 's', ' ', 'n', 'o', ' ', 'u', 's', 'a', 'b', 'l', 'e', ' ', 'a', 'd', 'd', 'r', 'e', 's', 's', 0, 'U', 'n', 'r', 'e', 'c', 'o', 'g', 'n', 'i', 'z', 'e', 'd', ' ', 'a', 'd', 'd', 'r', 'e', 's', 's', ' ', 'f', 'a', 'm', 'i', 'l', 'y', ' ', 'o', 'r', ' ', 'i', 'n', 'v', 'a', 'l', 'i', 'd', ' ', 'l', 'e', 'n', 'g', 't', 'h', 0, 'U', 'n', 'r', 'e', 'c', 'o', 'g', 'n', 'i', 'z', 'e', 'd', ' ', 's', 'o', 'c', 'k', 'e', 't', ' ', 't', 'y', 'p', 'e', 0, 'U', 'n', 'r', 'e', 'c', 'o', 'g', 'n', 'i', 'z', 'e', 'd', ' ', 's', 'e', 'r', 'v', 'i', 'c', 'e', 0, 'U', 'n', 'k', 'n', 'o', 'w', 'n', ' ', 'e', 'r', 'r', 'o', 'r', 0, 'O', 'u', 't', ' ', 'o', 'f', ' ', 'm', 'e', 'm', 'o', 'r', 'y', 0, 'S', 'y', 's', 't', 'e', 'm', ' ', 'e', 'r', 'r', 'o', 'r', 0, 'O', 'v', 'e', 'r', 'f', 'l', 'o', 'w', 0, 0, 'U', 'n', 'k', 'n', 'o', 'w', 'n', ' ', 'e', 'r', 'r', 'o', 'r'} + +func Xgai_strerror(tls *TLS, ecode int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v ecode=%v, (%v:)", tls, ecode, origin(2)) + defer func() { trc("-> %v", r) }() + } + var s uintptr + _ = s + s = uintptr(unsafe.Pointer(&_msgs)) + ecode = ecode + 1 + for { + if !(ecode != 0 && **(**uint8)(__ccgo_up(s)) != 0) { + break + } + for { + if !(**(**uint8)(__ccgo_up(s)) != 0) { + break + } + goto _2 + _2: + ; + s = s + 1 + } + goto _1 + _1: + ; + ecode = ecode + 1 + s = s + 1 + } + if !(**(**uint8)(__ccgo_up(s)) != 0) { + s = s + 1 + } + return X__lctrans_cur(tls, s) +} + +func Xgetaddrinfo(tls *TLS, host uintptr, serv uintptr, hint uintptr, res uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v host=%v serv=%v hint=%v res=%v, (%v:)", tls, host, serv, hint, res, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(1616) + defer tls.Free(1616) + var canon_len, family, flags, i, j, k, mask, naddrs, nais, no_family, nservs, proto, r, s, saved_errno, socktype, v3 int32 + var out, outcanon uintptr + var ta [2]uintptr + var tf [2]int32 + var tl [2]Tsocklen_t + var v5 uint64 + var _ /* addrs at bp+8 */ [48]Taddress + var _ /* canon at bp+1352 */ [256]uint8 + var _ /* cs at bp+1608 */ int32 + var _ /* ports at bp+0 */ [2]Tservice + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = canon_len, family, flags, i, j, k, mask, naddrs, nais, no_family, nservs, out, outcanon, proto, r, s, saved_errno, socktype, ta, tf, tl, v3, v5 + family = PF_UNSPEC + flags = 0 + proto = 0 + socktype = 0 + no_family = 0 + if !(host != 0) && !(serv != 0) { + return -int32(2) + } + if hint != 0 { + family = (*Taddrinfo)(unsafe.Pointer(hint)).Fai_family + flags = (*Taddrinfo)(unsafe.Pointer(hint)).Fai_flags + proto = (*Taddrinfo)(unsafe.Pointer(hint)).Fai_protocol + socktype = (*Taddrinfo)(unsafe.Pointer(hint)).Fai_socktype + mask = Int32FromInt32(AI_PASSIVE) | Int32FromInt32(AI_CANONNAME) | Int32FromInt32(AI_NUMERICHOST) | Int32FromInt32(AI_V4MAPPED) | Int32FromInt32(AI_ALL) | Int32FromInt32(AI_ADDRCONFIG) | Int32FromInt32(AI_NUMERICSERV) + if flags&mask != flags { + return -int32(1) + } + switch family { + case int32(PF_INET): + fallthrough + case int32(PF_INET6): + fallthrough + case PF_UNSPEC: + default: + return -int32(6) + } + } + if flags&int32(AI_ADDRCONFIG) != 0 { + tf = [2]int32{ + 0: int32(PF_INET), + 1: int32(PF_INET6), + } + ta = [2]uintptr{ + 0: uintptr(unsafe.Pointer(&_lo4)), + 1: uintptr(unsafe.Pointer(&_lo6)), + } + tl = [2]Tsocklen_t{ + 0: uint32(16), + 1: uint32(28), + } + i = 0 + for { + if !(i < int32(2)) { + break + } + if family == tf[int32(1)-i] { + goto _1 + } + s = Xsocket(tls, tf[i], Int32FromInt32(SOCK_CLOEXEC)|Int32FromInt32(SOCK_DGRAM), int32(IPPROTO_UDP)) + if s >= 0 { + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp+1608) + r = Xconnect(tls, s, ta[i], tl[i]) + saved_errno = **(**int32)(__ccgo_up(X__errno_location(tls))) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 1608)), uintptr(0)) + Xclose(tls, s) + if !(r != 0) { + goto _1 + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = saved_errno + } + switch **(**int32)(__ccgo_up(X__errno_location(tls))) { + case int32(EADDRNOTAVAIL): + fallthrough + case int32(EAFNOSUPPORT): + fallthrough + case int32(EHOSTUNREACH): + fallthrough + case int32(ENETDOWN): + fallthrough + case int32(ENETUNREACH): + default: + return -int32(11) + } + if family == tf[i] { + no_family = int32(1) + } + family = tf[int32(1)-i] + goto _1 + _1: + ; + i = i + 1 + } + } + nservs = X__lookup_serv(tls, bp, serv, proto, socktype, flags) + if nservs < 0 { + return nservs + } + naddrs = X__lookup_name(tls, bp+8, bp+1352, host, family, flags) + if naddrs < 0 { + return naddrs + } + if no_family != 0 { + return -int32(5) + } + nais = nservs * naddrs + canon_len = Int32FromUint64(_strlen(tls, bp+1352)) + out = Xcalloc(tls, uint64(1), Uint64FromInt32(nais)*uint64(88)+Uint64FromInt32(canon_len)+uint64(1)) + if !(out != 0) { + return -int32(10) + } + if canon_len != 0 { + outcanon = out + uintptr(nais)*88 + Xmemcpy(tls, outcanon, bp+1352, Uint64FromInt32(canon_len+int32(1))) + } else { + outcanon = uintptr(0) + } + v3 = Int32FromInt32(0) + i = v3 + k = v3 + for { + if !(i < naddrs) { + break + } + j = 0 + for { + if !(j < nservs) { + break + } + (**(**Taibuf)(__ccgo_up(out + uintptr(k)*88))).Fslot = int16(k) + if (**(**[48]Taddress)(__ccgo_up(bp + 8)))[i].Ffamily == int32(PF_INET) { + v5 = uint64(16) + } else { + v5 = uint64(28) + } + (**(**Taibuf)(__ccgo_up(out + uintptr(k)*88))).Fai = Taddrinfo{ + Fai_family: (**(**[48]Taddress)(__ccgo_up(bp + 8)))[i].Ffamily, + Fai_socktype: Int32FromUint8((**(**[2]Tservice)(__ccgo_up(bp)))[j].Fsocktype), + Fai_protocol: Int32FromUint8((**(**[2]Tservice)(__ccgo_up(bp)))[j].Fproto), + Fai_addrlen: uint32(v5), + Fai_addr: out + uintptr(k)*88 + 48, + Fai_canonname: outcanon, + } + if k != 0 { + (**(**Taibuf)(__ccgo_up(out + uintptr(k-int32(1))*88))).Fai.Fai_next = out + uintptr(k)*88 + } + switch (**(**[48]Taddress)(__ccgo_up(bp + 8)))[i].Ffamily { + case int32(PF_INET): + *(*Tsa_family_t)(unsafe.Pointer(out + uintptr(k)*88 + 48)) = uint16(PF_INET) + *(*Tin_port_t)(unsafe.Pointer(out + uintptr(k)*88 + 48 + 2)) = Xhtons(tls, (**(**[2]Tservice)(__ccgo_up(bp)))[j].Fport) + Xmemcpy(tls, out+uintptr(k)*88+48+4, bp+8+uintptr(i)*28+8, uint64(4)) + case int32(PF_INET6): + *(*Tsa_family_t)(unsafe.Pointer(out + uintptr(k)*88 + 48)) = uint16(PF_INET6) + *(*Tin_port_t)(unsafe.Pointer(out + uintptr(k)*88 + 48 + 2)) = Xhtons(tls, (**(**[2]Tservice)(__ccgo_up(bp)))[j].Fport) + *(*Tuint32_t)(unsafe.Pointer(out + uintptr(k)*88 + 48 + 24)) = (**(**[48]Taddress)(__ccgo_up(bp + 8)))[i].Fscopeid + Xmemcpy(tls, out+uintptr(k)*88+48+8, bp+8+uintptr(i)*28+8, uint64(16)) + break + } + goto _4 + _4: + ; + j = j + 1 + k = k + 1 + } + goto _2 + _2: + ; + i = i + 1 + } + (**(**Taibuf)(__ccgo_up(out))).Fref = int16(nais) + **(**uintptr)(__ccgo_up(res)) = out + return 0 +} + +/* Define the "an address is configured" condition for address + * families via ability to create a socket for the family plus + * routability of the loopback address for the family. */ +var _lo4 = Tsockaddr_in{ + Fsin_family: uint16(PF_INET), + Fsin_port: uint16(65535), + Fsin_addr: Tin_addr{ + Fs_addr: uint32(0x0100007f), + }, +} + +var _lo6 = Tsockaddr_in6{ + Fsin6_family: uint16(PF_INET6), + Fsin6_port: uint16(65535), + Fsin6_addr: Tin6_addr{ + F__in6_union: *(*struct { + F__s6_addr16 [0][8]Tuint16_t + F__s6_addr32 [0][4]Tuint32_t + F__s6_addr [16]Tuint8_t + })(unsafe.Pointer(&[16]Tuint8_t{ + 15: uint8(1), + })), + }, +} + +const EAI_ADDRFAMILY = -9 +const EAI_ALLDONE = -103 +const EAI_CANCELED = -101 +const EAI_IDN_ENCODE = -105 +const EAI_INPROGRESS = -100 +const EAI_INTR = -104 +const EAI_NOTCANCELED = -102 +const HOST_NOT_FOUND = 1 +const MCAST_BLOCK_SOURCE = 43 +const MCAST_EXCLUDE = 0 +const MCAST_INCLUDE = 1 +const MCAST_JOIN_GROUP = 42 +const MCAST_JOIN_SOURCE_GROUP = 46 +const MCAST_LEAVE_GROUP = 45 +const MCAST_LEAVE_SOURCE_GROUP = 47 +const MCAST_MSFILTER = 48 +const MCAST_UNBLOCK_SOURCE = 44 +const NI_MAXHOST = 255 +const NI_MAXSERV = 32 +const NO_ADDRESS = 4 +const NO_DATA = 4 +const NO_RECOVERY = 3 +const TRY_AGAIN = 2 +const h_errno = 0 + +type Tip_mreq = struct { + Fimr_multiaddr Tin_addr + Fimr_interface Tin_addr +} + +type Tip_mreqn = struct { + Fimr_multiaddr Tin_addr + Fimr_address Tin_addr + Fimr_ifindex int32 +} + +type Tip_mreq_source = struct { + Fimr_multiaddr Tin_addr + Fimr_interface Tin_addr + Fimr_sourceaddr Tin_addr +} + +type Tip_msfilter = struct { + Fimsf_multiaddr Tin_addr + Fimsf_interface Tin_addr + Fimsf_fmode Tuint32_t + Fimsf_numsrc Tuint32_t + Fimsf_slist [1]Tin_addr +} + +type Tgroup_req = struct { + Fgr_interface Tuint32_t + Fgr_group Tsockaddr_storage +} + +type Tgroup_source_req = struct { + Fgsr_interface Tuint32_t + Fgsr_group Tsockaddr_storage + Fgsr_source Tsockaddr_storage +} + +type Tgroup_filter = struct { + Fgf_interface Tuint32_t + Fgf_group Tsockaddr_storage + Fgf_fmode Tuint32_t + Fgf_numsrc Tuint32_t + Fgf_slist [1]Tsockaddr_storage +} + +type Tin_pktinfo = struct { + Fipi_ifindex int32 + Fipi_spec_dst Tin_addr + Fipi_addr Tin_addr +} + +type Tin6_pktinfo = struct { + Fipi6_addr Tin6_addr + Fipi6_ifindex uint32 +} + +type Tip6_mtuinfo = struct { + Fip6m_addr Tsockaddr_in6 + Fip6m_mtu Tuint32_t +} + +func Xgethostbyaddr(tls *TLS, a uintptr, l Tsocklen_t, af int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v a=%v l=%v af=%v, (%v:)", tls, a, l, af, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var err int32 + var size Tsize_t + var _ /* res at bp+0 */ uintptr + _, _ = err, size + size = uint64(63) + for cond := true; cond; cond = err == int32(ERANGE) { + Xfree(tls, _h) + size = size + (size + uint64(1)) + _h = Xmalloc(tls, size) + if !(_h != 0) { + **(**int32)(__ccgo_up(X__h_errno_location(tls))) = int32(NO_RECOVERY) + return uintptr(0) + } + err = Xgethostbyaddr_r(tls, a, l, af, _h, _h+UintptrFromInt32(1)*32, size-uint64(32), bp, X__h_errno_location(tls)) + } + return **(**uintptr)(__ccgo_up(bp)) +} + +var _h uintptr + +func Xgethostbyaddr_r(tls *TLS, a uintptr, l Tsocklen_t, af int32, h uintptr, buf uintptr, buflen Tsize_t, res uintptr, err uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v a=%v l=%v af=%v h=%v buf=%v buflen=%v res=%v err=%v, (%v:)", tls, a, l, af, h, buf, buflen, res, err, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var i int32 + var sl Tsocklen_t + var v1 uint64 + var _ /* sa at bp+0 */ struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + } + _, _, _ = i, sl, v1 + *(*struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + })(unsafe.Pointer(bp)) = struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + }{} + *(*uint16)(unsafe.Pointer(bp)) = Uint16FromInt32(af) + if af == int32(PF_INET6) { + v1 = uint64(28) + } else { + v1 = uint64(16) + } + sl = uint32(v1) + **(**uintptr)(__ccgo_up(res)) = uintptr(0) + /* Load address argument into sockaddr structure */ + if af == int32(PF_INET6) && l == uint32(16) { + Xmemcpy(tls, bp+8, a, uint64(16)) + } else { + if af == int32(PF_INET) && l == uint32(4) { + Xmemcpy(tls, bp+4, a, uint64(4)) + } else { + **(**int32)(__ccgo_up(err)) = int32(NO_RECOVERY) + return int32(EINVAL) + } + } + /* Align buffer and check for space for pointers and ip address */ + i = Int32FromUint64(uint64(buf) & (Uint64FromInt64(8) - Uint64FromInt32(1))) + if !(i != 0) { + i = int32(8) + } + if buflen <= Uint64FromInt32(5)*Uint64FromInt64(8)-Uint64FromInt32(i)+uint64(l) { + return int32(ERANGE) + } + buf = buf + uintptr(uint64(8)-Uint64FromInt32(i)) + buflen = buflen - (Uint64FromInt32(5)*Uint64FromInt64(8) - Uint64FromInt32(i) + uint64(l)) + (*Thostent)(unsafe.Pointer(h)).Fh_addr_list = buf + buf = buf + uintptr(Uint64FromInt32(2)*Uint64FromInt64(8)) + (*Thostent)(unsafe.Pointer(h)).Fh_aliases = buf + buf = buf + uintptr(Uint64FromInt32(2)*Uint64FromInt64(8)) + **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_addr_list)) = buf + Xmemcpy(tls, **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_addr_list)), a, uint64(l)) + buf = buf + uintptr(l) + **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_addr_list + 1*8)) = uintptr(0) + **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_aliases)) = buf + **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_aliases + 1*8)) = uintptr(0) + switch Xgetnameinfo(tls, bp, sl, buf, uint32(buflen), uintptr(0), uint32(0), 0) { + case -int32(3): + **(**int32)(__ccgo_up(err)) = int32(TRY_AGAIN) + return int32(EAGAIN) + case -int32(12): + return int32(ERANGE) + default: + fallthrough + case -int32(4): + **(**int32)(__ccgo_up(err)) = int32(NO_RECOVERY) + return int32(EBADMSG) + case -int32(11): + **(**int32)(__ccgo_up(err)) = int32(NO_RECOVERY) + return **(**int32)(__ccgo_up(X__errno_location(tls))) + case 0: + break + } + (*Thostent)(unsafe.Pointer(h)).Fh_addrtype = af + (*Thostent)(unsafe.Pointer(h)).Fh_length = Int32FromUint32(l) + (*Thostent)(unsafe.Pointer(h)).Fh_name = **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_aliases)) + **(**uintptr)(__ccgo_up(res)) = h + return 0 +} + +func Xgethostbyname(tls *TLS, name uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgethostbyname2(tls, name, int32(PF_INET)) +} + +func Xgethostbyname2(tls *TLS, name uintptr, af int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v af=%v, (%v:)", tls, name, af, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var err int32 + var size Tsize_t + var _ /* res at bp+0 */ uintptr + _, _ = err, size + size = uint64(63) + for cond := true; cond; cond = err == int32(ERANGE) { + Xfree(tls, _h1) + size = size + (size + uint64(1)) + _h1 = Xmalloc(tls, size) + if !(_h1 != 0) { + **(**int32)(__ccgo_up(X__h_errno_location(tls))) = int32(NO_RECOVERY) + return uintptr(0) + } + err = Xgethostbyname2_r(tls, name, af, _h1, _h1+UintptrFromInt32(1)*32, size-uint64(32), bp, X__h_errno_location(tls)) + } + return **(**uintptr)(__ccgo_up(bp)) +} + +var _h1 uintptr + +func Xgethostbyname2_r(tls *TLS, name uintptr, af int32, h uintptr, buf uintptr, buflen Tsize_t, res uintptr, err uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v af=%v h=%v buf=%v buflen=%v res=%v err=%v, (%v:)", tls, name, af, h, buf, buflen, res, err, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(1600) + defer tls.Free(1600) + var align, need Tsize_t + var cnt, i, v1 int32 + var v3 uintptr + var _ /* addrs at bp+0 */ [48]Taddress + var _ /* canon at bp+1344 */ [256]uint8 + _, _, _, _, _, _ = align, cnt, i, need, v1, v3 + **(**uintptr)(__ccgo_up(res)) = uintptr(0) + cnt = X__lookup_name(tls, bp, bp+1344, name, af, int32(AI_CANONNAME)) + if cnt < 0 { + switch cnt { + case -int32(2): + **(**int32)(__ccgo_up(err)) = int32(HOST_NOT_FOUND) + return 0 + case -int32(5): + **(**int32)(__ccgo_up(err)) = int32(NO_DATA) + return 0 + case -int32(3): + **(**int32)(__ccgo_up(err)) = int32(TRY_AGAIN) + return int32(EAGAIN) + default: + fallthrough + case -int32(4): + **(**int32)(__ccgo_up(err)) = int32(NO_RECOVERY) + return int32(EBADMSG) + case -int32(11): + **(**int32)(__ccgo_up(err)) = int32(NO_RECOVERY) + return **(**int32)(__ccgo_up(X__errno_location(tls))) + } + } + (*Thostent)(unsafe.Pointer(h)).Fh_addrtype = af + if af == int32(PF_INET6) { + v1 = int32(16) + } else { + v1 = int32(4) + } + (*Thostent)(unsafe.Pointer(h)).Fh_length = v1 + /* Align buffer */ + align = -uint64(buf) & (Uint64FromInt64(8) - Uint64FromInt32(1)) + need = Uint64FromInt32(4) * Uint64FromInt64(8) + need = need + Uint64FromInt32(cnt+Int32FromInt32(1))*(uint64(8)+Uint64FromInt32((*Thostent)(unsafe.Pointer(h)).Fh_length)) + need = need + (_strlen(tls, name) + uint64(1)) + need = need + (_strlen(tls, bp+1344) + uint64(1)) + need = need + align + if need > buflen { + return int32(ERANGE) + } + buf = buf + uintptr(align) + (*Thostent)(unsafe.Pointer(h)).Fh_aliases = buf + buf = buf + uintptr(Uint64FromInt32(3)*Uint64FromInt64(8)) + (*Thostent)(unsafe.Pointer(h)).Fh_addr_list = buf + buf = buf + uintptr(Uint64FromInt32(cnt+Int32FromInt32(1))*uint64(8)) + i = 0 + for { + if !(i < cnt) { + break + } + **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_addr_list + uintptr(i)*8)) = buf + buf = buf + uintptr((*Thostent)(unsafe.Pointer(h)).Fh_length) + Xmemcpy(tls, **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_addr_list + uintptr(i)*8)), bp+uintptr(i)*28+8, Uint64FromInt32((*Thostent)(unsafe.Pointer(h)).Fh_length)) + goto _2 + _2: + ; + i = i + 1 + } + **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_addr_list + uintptr(i)*8)) = uintptr(0) + v3 = buf + **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_aliases)) = v3 + (*Thostent)(unsafe.Pointer(h)).Fh_name = v3 + Xstrcpy(tls, (*Thostent)(unsafe.Pointer(h)).Fh_name, bp+1344) + buf = buf + uintptr(_strlen(tls, (*Thostent)(unsafe.Pointer(h)).Fh_name)+uint64(1)) + if Xstrcmp(tls, (*Thostent)(unsafe.Pointer(h)).Fh_name, name) != 0 { + **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_aliases + 1*8)) = buf + Xstrcpy(tls, **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_aliases + 1*8)), name) + buf = buf + uintptr(_strlen(tls, **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_aliases + 1*8)))+uint64(1)) + } else { + **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_aliases + 1*8)) = uintptr(0) + } + **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_aliases + 2*8)) = uintptr(0) + **(**uintptr)(__ccgo_up(res)) = h + return 0 +} + +func Xgethostbyname_r(tls *TLS, name uintptr, h uintptr, buf uintptr, buflen Tsize_t, res uintptr, err uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v h=%v buf=%v buflen=%v res=%v err=%v, (%v:)", tls, name, h, buf, buflen, res, err, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgethostbyname2_r(tls, name, int32(PF_INET), h, buf, buflen, res, err) +} + +const IFADDRS_HASH_SIZE = 64 +const IFA_ADDRESS = 1 +const IFA_BROADCAST = 4 +const IFA_LABEL = 3 +const IFA_LOCAL = 2 +const IFF_ALLMULTI = 512 +const IFF_AUTOMEDIA = 16384 +const IFF_BROADCAST = 2 +const IFF_DEBUG = 4 +const IFF_DORMANT = 131072 +const IFF_DYNAMIC = 32768 +const IFF_ECHO = 262144 +const IFF_LOOPBACK = 8 +const IFF_LOWER_UP = 65536 +const IFF_MASTER = 1024 +const IFF_MULTICAST = 4096 +const IFF_NOARP = 128 +const IFF_NOTRAILERS = 32 +const IFF_POINTOPOINT = 16 +const IFF_PORTSEL = 8192 +const IFF_PROMISC = 256 +const IFF_RUNNING = 64 +const IFF_SLAVE = 2048 +const IFF_UP = 1 +const IFF_VOLATILE = 461914 +const IFHWADDRLEN = 6 +const IFLA_ADDRESS = 1 +const IFLA_BROADCAST = 2 +const IFLA_IFNAME = 3 +const IFLA_STATS = 7 +const IFNAMSIZ = 16 +const IF_NAMESIZE = 16 +const NETLINK_ROUTE = 0 +const NLMSG_DONE = 3 +const NLMSG_ERROR = 2 +const NLMSG_NOOP = 1 +const NLMSG_OVERRUN = 4 +const NLM_F_ACK = 4 +const NLM_F_ATOMIC = 1024 +const NLM_F_DUMP = 768 +const NLM_F_MATCH = 512 +const NLM_F_MULTI = 2 +const NLM_F_REQUEST = 1 +const NLM_F_ROOT = 256 +const RTM_GETADDR = 22 +const RTM_GETLINK = 18 +const RTM_NEWADDR = 20 +const RTM_NEWLINK = 16 +const __UAPI_DEF_IF_IFCONF = 0 +const __UAPI_DEF_IF_IFMAP = 0 +const __UAPI_DEF_IF_IFNAMSIZ = 0 +const __UAPI_DEF_IF_IFREQ = 0 +const __UAPI_DEF_IF_NET_DEVICE_FLAGS = 0 +const __UAPI_DEF_IF_NET_DEVICE_FLAGS_LOWER_UP_DORMANT_ECHO = 0 + +type Tifaddrs = struct { + Fifa_next uintptr + Fifa_name uintptr + Fifa_flags uint32 + Fifa_addr uintptr + Fifa_netmask uintptr + Fifa_ifu struct { + Fifu_dstaddr [0]uintptr + Fifu_broadaddr uintptr + } + Fifa_data uintptr +} + +type Tif_nameindex = struct { + Fif_index uint32 + Fif_name uintptr +} + +type Tifaddr = struct { + Fifa_addr Tsockaddr + Fifa_ifu struct { + Fifu_dstaddr [0]Tsockaddr + Fifu_broadaddr Tsockaddr + } + Fifa_ifp uintptr + Fifa_next uintptr +} + +type Tifmap = struct { + Fmem_start uint64 + Fmem_end uint64 + Fbase_addr uint16 + Firq uint8 + Fdma uint8 + Fport uint8 +} + +type Tifreq = struct { + Fifr_ifrn struct { + Fifrn_name [16]uint8 + } + Fifr_ifru struct { + Fifru_dstaddr [0]Tsockaddr + Fifru_broadaddr [0]Tsockaddr + Fifru_netmask [0]Tsockaddr + Fifru_hwaddr [0]Tsockaddr + Fifru_flags [0]int16 + Fifru_ivalue [0]int32 + Fifru_mtu [0]int32 + Fifru_map [0]Tifmap + Fifru_slave [0][16]uint8 + Fifru_newname [0][16]uint8 + Fifru_data [0]uintptr + Fifru_addr Tsockaddr + F__ccgo_pad12 [8]byte + } +} + +type Tifconf = struct { + Fifc_len int32 + Fifc_ifcu struct { + Fifcu_req [0]uintptr + Fifcu_buf uintptr + } +} + +type Tnlmsghdr = struct { + Fnlmsg_len Tuint32_t + Fnlmsg_type Tuint16_t + Fnlmsg_flags Tuint16_t + Fnlmsg_seq Tuint32_t + Fnlmsg_pid Tuint32_t +} + +type Trtattr = struct { + Frta_len uint16 + Frta_type uint16 +} + +type Trtgenmsg = struct { + Frtgen_family uint8 +} + +type Tifinfomsg = struct { + Fifi_family uint8 + F__ifi_pad uint8 + Fifi_type uint16 + Fifi_index int32 + Fifi_flags uint32 + Fifi_change uint32 +} + +type Tifaddrmsg = struct { + Fifa_family Tuint8_t + Fifa_prefixlen Tuint8_t + Fifa_flags Tuint8_t + Fifa_scope Tuint8_t + Fifa_index Tuint32_t +} + +/* getifaddrs() reports hardware addresses with PF_PACKET that implies + * struct sockaddr_ll. But e.g. Infiniband socket address length is + * longer than sockaddr_ll.ssl_addr[8] can hold. Use this hack struct + * to extend ssl_addr - callers should be able to still use it. */ +type Tsockaddr_ll_hack = struct { + Fsll_family uint16 + Fsll_protocol uint16 + Fsll_ifindex int32 + Fsll_hatype uint16 + Fsll_pkttype uint8 + Fsll_halen uint8 + Fsll_addr [24]uint8 +} + +type Tsockany = struct { + Fll [0]Tsockaddr_ll_hack + Fv4 [0]Tsockaddr_in + Fv6 [0]Tsockaddr_in6 + Fsa Tsockaddr + F__ccgo_pad4 [20]byte +} + +type Tifaddrs_storage = struct { + Fifa Tifaddrs + Fhash_next uintptr + Faddr Tsockany + Fnetmask Tsockany + Fifu Tsockany + Findex uint32 + Fname [17]uint8 +} + +type Tifaddrs_ctx = struct { + Ffirst uintptr + Flast uintptr + Fhash [64]uintptr +} + +func Xfreeifaddrs(tls *TLS, ifp uintptr) { + if __ccgo_strace { + trc("tls=%v ifp=%v, (%v:)", tls, ifp, origin(2)) + } + var n uintptr + _ = n + for ifp != 0 { + n = (*Tifaddrs)(unsafe.Pointer(ifp)).Fifa_next + Xfree(tls, ifp) + ifp = n + } +} + +func _copy_addr(tls *TLS, r uintptr, af int32, sa uintptr, addr uintptr, addrlen Tsize_t, ifindex int32) { + var dst uintptr + var len1 int32 + _, _ = dst, len1 + switch af { + case int32(PF_INET): + dst = sa + 4 + len1 = int32(4) + case int32(PF_INET6): + dst = sa + 8 + len1 = int32(16) + if Int32FromUint8(**(**Tuint8_t)(__ccgo_up(addr))) == int32(0xfe) && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(addr + 1)))&int32(0xc0) == int32(0x80) || Int32FromUint8(**(**Tuint8_t)(__ccgo_up(addr))) == int32(0xff) && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(addr + 1)))&int32(0xf) == int32(0x2) { + (*(*Tsockaddr_in6)(unsafe.Pointer(sa))).Fsin6_scope_id = Uint32FromInt32(ifindex) + } + default: + return + } + if addrlen < Uint64FromInt32(len1) { + return + } + (*Tsockany)(unsafe.Pointer(sa)).Fsa.Fsa_family = Uint16FromInt32(af) + Xmemcpy(tls, dst, addr, Uint64FromInt32(len1)) + **(**uintptr)(__ccgo_up(r)) = sa +} + +func _gen_netmask(tls *TLS, r uintptr, af int32, sa uintptr, prefixlen int32) { + bp := tls.Alloc(16) + defer tls.Free(16) + var i, v1 int32 + var _ /* addr at bp+0 */ [16]Tuint8_t + _, _ = i, v1 + **(**[16]Tuint8_t)(__ccgo_up(bp)) = [16]Tuint8_t{} + if Uint64FromInt32(prefixlen) > Uint64FromInt32(8)*Uint64FromInt64(16) { + prefixlen = Int32FromUint64(Uint64FromInt32(8) * Uint64FromInt64(16)) + } + i = prefixlen / int32(8) + Xmemset(tls, bp, int32(0xff), Uint64FromInt32(i)) + if Uint64FromInt32(i) < uint64(16) { + v1 = i + i = i + 1 + (**(**[16]Tuint8_t)(__ccgo_up(bp)))[v1] = Uint8FromInt32(int32(0xff) << (int32(8) - prefixlen%int32(8))) + } + _copy_addr(tls, r, af, sa, bp, uint64(16), 0) +} + +func _copy_lladdr(tls *TLS, r uintptr, sa uintptr, addr uintptr, addrlen Tsize_t, ifindex int32, hatype uint16) { + if addrlen > uint64(24) { + return + } + (*(*Tsockaddr_ll_hack)(unsafe.Pointer(sa))).Fsll_family = uint16(PF_PACKET) + (*(*Tsockaddr_ll_hack)(unsafe.Pointer(sa))).Fsll_ifindex = ifindex + (*(*Tsockaddr_ll_hack)(unsafe.Pointer(sa))).Fsll_hatype = hatype + (*(*Tsockaddr_ll_hack)(unsafe.Pointer(sa))).Fsll_halen = uint8(addrlen) + Xmemcpy(tls, sa+12, addr, addrlen) + **(**uintptr)(__ccgo_up(r)) = sa +} + +func _netlink_msg_to_ifaddr(tls *TLS, pctx uintptr, h uintptr) (r int32) { + var bucket uint32 + var ctx, ifa, ifi, ifs, ifs0, rta uintptr + var stats_len int32 + _, _, _, _, _, _, _, _ = bucket, ctx, ifa, ifi, ifs, ifs0, rta, stats_len + ctx = pctx + ifi = h + UintptrFromInt64(16) + ifa = h + UintptrFromInt64(16) + stats_len = 0 + if Int32FromUint16((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_type) == int32(RTM_NEWLINK) { + rta = h + UintptrFromInt64(16) + uintptr((Uint64FromInt64(16)+Uint64FromInt32(3))&Uint64FromInt32(^Int32FromInt32(3))) + for { + if !(Uint64FromInt64(int64(h+uintptr((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_len))-int64(rta)) >= uint64(4)) { + break + } + if Int32FromUint16((*Trtattr)(unsafe.Pointer(rta)).Frta_type) != int32(IFLA_STATS) { + goto _1 + } + stats_len = Int32FromUint64(uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len) - Uint64FromInt64(4)) + break + goto _1 + _1: + ; + rta = rta + uintptr((Int32FromUint16((*Trtattr)(unsafe.Pointer(rta)).Frta_len)+Int32FromInt32(3)) & ^Int32FromInt32(3)) + } + } else { + ifs0 = **(**uintptr)(__ccgo_up(ctx + 16 + uintptr((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_index%uint32(IFADDRS_HASH_SIZE))*8)) + for { + if !(ifs0 != 0) { + break + } + if (*Tifaddrs_storage)(unsafe.Pointer(ifs0)).Findex == (*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_index { + break + } + goto _2 + _2: + ; + ifs0 = (*Tifaddrs_storage)(unsafe.Pointer(ifs0)).Fhash_next + } + if !(ifs0 != 0) { + return 0 + } + } + ifs = Xcalloc(tls, uint64(1), uint64(200)+Uint64FromInt32(stats_len)) + if ifs == uintptr(0) { + return -int32(1) + } + if Int32FromUint16((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_type) == int32(RTM_NEWLINK) { + (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Findex = Uint32FromInt32((*Tifinfomsg)(unsafe.Pointer(ifi)).Fifi_index) + (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_flags = (*Tifinfomsg)(unsafe.Pointer(ifi)).Fifi_flags + rta = h + UintptrFromInt64(16) + uintptr((Uint64FromInt64(16)+Uint64FromInt32(3))&Uint64FromInt32(^Int32FromInt32(3))) + for { + if !(Uint64FromInt64(int64(h+uintptr((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_len))-int64(rta)) >= uint64(4)) { + break + } + switch Int32FromUint16((*Trtattr)(unsafe.Pointer(rta)).Frta_type) { + case int32(IFLA_IFNAME): + if uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-uint64(4) < uint64(17) { + Xmemcpy(tls, ifs+176, rta+UintptrFromInt64(4), uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-Uint64FromInt64(4)) + (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_name = ifs + 176 + } + case int32(IFLA_ADDRESS): + _copy_lladdr(tls, ifs+24, ifs+64, rta+UintptrFromInt64(4), uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-Uint64FromInt64(4), (*Tifinfomsg)(unsafe.Pointer(ifi)).Fifi_index, (*Tifinfomsg)(unsafe.Pointer(ifi)).Fifi_type) + case int32(IFLA_BROADCAST): + _copy_lladdr(tls, ifs+40, ifs+136, rta+UintptrFromInt64(4), uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-Uint64FromInt64(4), (*Tifinfomsg)(unsafe.Pointer(ifi)).Fifi_index, (*Tifinfomsg)(unsafe.Pointer(ifi)).Fifi_type) + case int32(IFLA_STATS): + (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_data = ifs + UintptrFromInt32(1)*200 + Xmemcpy(tls, (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_data, rta+UintptrFromInt64(4), uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-Uint64FromInt64(4)) + break + } + goto _3 + _3: + ; + rta = rta + uintptr((Int32FromUint16((*Trtattr)(unsafe.Pointer(rta)).Frta_len)+Int32FromInt32(3)) & ^Int32FromInt32(3)) + } + if (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_name != 0 { + bucket = (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Findex % uint32(IFADDRS_HASH_SIZE) + (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fhash_next = **(**uintptr)(__ccgo_up(ctx + 16 + uintptr(bucket)*8)) + **(**uintptr)(__ccgo_up(ctx + 16 + uintptr(bucket)*8)) = ifs + } + } else { + (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_name = (*Tifaddrs_storage)(unsafe.Pointer(ifs0)).Fifa.Fifa_name + (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_flags = (*Tifaddrs_storage)(unsafe.Pointer(ifs0)).Fifa.Fifa_flags + rta = h + UintptrFromInt64(16) + uintptr((Uint64FromInt64(8)+Uint64FromInt32(3))&Uint64FromInt32(^Int32FromInt32(3))) + for { + if !(Uint64FromInt64(int64(h+uintptr((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_len))-int64(rta)) >= uint64(4)) { + break + } + switch Int32FromUint16((*Trtattr)(unsafe.Pointer(rta)).Frta_type) { + case int32(IFA_ADDRESS): + /* If ifa_addr is already set we, received an IFA_LOCAL before + * so treat this as destination address */ + if (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_addr != 0 { + _copy_addr(tls, ifs+40, Int32FromUint8((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_family), ifs+136, rta+UintptrFromInt64(4), uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-Uint64FromInt64(4), Int32FromUint32((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_index)) + } else { + _copy_addr(tls, ifs+24, Int32FromUint8((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_family), ifs+64, rta+UintptrFromInt64(4), uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-Uint64FromInt64(4), Int32FromUint32((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_index)) + } + case int32(IFA_BROADCAST): + _copy_addr(tls, ifs+40, Int32FromUint8((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_family), ifs+136, rta+UintptrFromInt64(4), uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-Uint64FromInt64(4), Int32FromUint32((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_index)) + case int32(IFA_LOCAL): + /* If ifa_addr is set and we get IFA_LOCAL, assume we have + * a point-to-point network. Move address to correct field. */ + if (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_addr != 0 { + (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifu = (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Faddr + *(*uintptr)(unsafe.Pointer(ifs + 40)) = ifs + 136 + Xmemset(tls, ifs+64, 0, uint64(36)) + } + _copy_addr(tls, ifs+24, Int32FromUint8((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_family), ifs+64, rta+UintptrFromInt64(4), uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-Uint64FromInt64(4), Int32FromUint32((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_index)) + case int32(IFA_LABEL): + if uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-uint64(4) < uint64(17) { + Xmemcpy(tls, ifs+176, rta+UintptrFromInt64(4), uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-Uint64FromInt64(4)) + (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_name = ifs + 176 + } + break + } + goto _4 + _4: + ; + rta = rta + uintptr((Int32FromUint16((*Trtattr)(unsafe.Pointer(rta)).Frta_len)+Int32FromInt32(3)) & ^Int32FromInt32(3)) + } + if (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_addr != 0 { + _gen_netmask(tls, ifs+32, Int32FromUint8((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_family), ifs+100, Int32FromUint8((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_prefixlen)) + } + } + if (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_name != 0 { + if !((*Tifaddrs_ctx)(unsafe.Pointer(ctx)).Ffirst != 0) { + (*Tifaddrs_ctx)(unsafe.Pointer(ctx)).Ffirst = ifs + } + if (*Tifaddrs_ctx)(unsafe.Pointer(ctx)).Flast != 0 { + (*Tifaddrs)(unsafe.Pointer((*Tifaddrs_ctx)(unsafe.Pointer(ctx)).Flast)).Fifa_next = ifs + } + (*Tifaddrs_ctx)(unsafe.Pointer(ctx)).Flast = ifs + } else { + Xfree(tls, ifs) + } + return 0 +} + +func Xgetifaddrs(tls *TLS, ifap uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v ifap=%v, (%v:)", tls, ifap, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(528) + defer tls.Free(528) + var ctx uintptr + var r int32 + var _ /* _ctx at bp+0 */ Tifaddrs_ctx + _, _ = ctx, r + ctx = bp + Xmemset(tls, ctx, 0, uint64(528)) + r = X__rtnetlink_enumerate(tls, PF_UNSPEC, PF_UNSPEC, __ccgo_fp(_netlink_msg_to_ifaddr), ctx) + if r == 0 { + **(**uintptr)(__ccgo_up(ifap)) = (*Tifaddrs_ctx)(unsafe.Pointer(ctx)).Ffirst + } else { + Xfreeifaddrs(tls, (*Tifaddrs_ctx)(unsafe.Pointer(ctx)).Ffirst) + } + return r +} + +const RR_PTR = 12 + +func _itoa(tls *TLS, p uintptr, x uint32) (r uintptr) { + var v1 uintptr + _ = v1 + p = p + uintptr(Uint64FromInt32(3)*Uint64FromInt64(4)) + p = p - 1 + v1 = p + **(**uint8)(__ccgo_up(v1)) = uint8(0) + for cond := true; cond; cond = x != 0 { + p = p - 1 + v1 = p + **(**uint8)(__ccgo_up(v1)) = uint8(uint32('0') + x%uint32(10)) + x = x / uint32(10) + } + return p +} + +func _mkptr4(tls *TLS, s uintptr, ip uintptr) { + bp := tls.Alloc(48) + defer tls.Free(48) + Xsprintf(tls, s, __ccgo_ts+1024, VaList(bp+8, Int32FromUint8(**(**uint8)(__ccgo_up(ip + 3))), Int32FromUint8(**(**uint8)(__ccgo_up(ip + 2))), Int32FromUint8(**(**uint8)(__ccgo_up(ip + 1))), Int32FromUint8(**(**uint8)(__ccgo_up(ip))))) +} + +func _mkptr6(tls *TLS, s uintptr, ip uintptr) { + var i int32 + var v2 uintptr + _, _ = i, v2 + i = int32(15) + for { + if !(i >= 0) { + break + } + v2 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = _xdigits[Int32FromUint8(**(**uint8)(__ccgo_up(ip + uintptr(i))))&int32(15)] + v2 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = uint8('.') + v2 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = _xdigits[Int32FromUint8(**(**uint8)(__ccgo_up(ip + uintptr(i))))>>int32(4)] + v2 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = uint8('.') + goto _1 + _1: + ; + i = i - 1 + } + Xstrcpy(tls, s, __ccgo_ts+1049) +} + +var _xdigits = [17]uint8{'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'} + +func _reverse_hosts(tls *TLS, buf uintptr, a uintptr, scopeid uint32, family int32) { + bp := tls.Alloc(1824) + defer tls.Free(1824) + var f, p, z, v1, v2 uintptr + var v4, v5 int32 + var v7 bool + var _ /* _buf at bp+512 */ [1032]uint8 + var _ /* _f at bp+1592 */ TFILE + var _ /* atmp at bp+1544 */ [16]uint8 + var _ /* iplit at bp+1560 */ Taddress + var _ /* line at bp+0 */ [512]uint8 + _, _, _, _, _, _, _, _ = f, p, z, v1, v2, v4, v5, v7 + f = X__fopen_rb_ca(tls, __ccgo_ts+1058, bp+1592, bp+512, uint64(1032)) + if !(f != 0) { + return + } + if family == int32(PF_INET) { + Xmemcpy(tls, bp+1544+uintptr(12), a, uint64(4)) + Xmemcpy(tls, bp+1544, __ccgo_ts+1069, uint64(12)) + a = bp + 1544 + } + for Xfgets(tls, bp, int32(512), f) != 0 { + v1 = Xstrchr(tls, bp, int32('#')) + p = v1 + if v1 != 0 { + v2 = p + p = p + 1 + **(**uint8)(__ccgo_up(v2)) = uint8('\n') + **(**uint8)(__ccgo_up(p)) = Uint8FromInt32(0) + } + p = bp + for { + if v7 = **(**uint8)(__ccgo_up(p)) != 0; v7 { + v4 = Int32FromUint8(**(**uint8)(__ccgo_up(p))) + v5 = BoolInt32(v4 == int32(' ') || Uint32FromInt32(v4)-uint32('\t') < uint32(5)) + goto _6 + _6: + } + if !(v7 && !(v5 != 0)) { + break + } + goto _3 + _3: + ; + p = p + 1 + } + if !(**(**uint8)(__ccgo_up(p)) != 0) { + continue + } + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(0) + if X__lookup_ipliteral(tls, bp+1560, bp, PF_UNSPEC) <= 0 { + continue + } + if (**(**Taddress)(__ccgo_up(bp + 1560))).Ffamily == int32(PF_INET) { + Xmemcpy(tls, bp+1560+8+uintptr(12), bp+1560+8, uint64(4)) + Xmemcpy(tls, bp+1560+8, __ccgo_ts+1069, uint64(12)) + (**(**Taddress)(__ccgo_up(bp + 1560))).Fscopeid = uint32(0) + } + if Xmemcmp(tls, a, bp+1560+8, uint64(16)) != 0 || (**(**Taddress)(__ccgo_up(bp + 1560))).Fscopeid != scopeid { + continue + } + for { + if v7 = **(**uint8)(__ccgo_up(p)) != 0; v7 { + v4 = Int32FromUint8(**(**uint8)(__ccgo_up(p))) + v5 = BoolInt32(v4 == int32(' ') || Uint32FromInt32(v4)-uint32('\t') < uint32(5)) + goto _12 + _12: + } + if !(v7 && v5 != 0) { + break + } + goto _9 + _9: + ; + p = p + 1 + } + z = p + for { + if v7 = **(**uint8)(__ccgo_up(z)) != 0; v7 { + v4 = Int32FromUint8(**(**uint8)(__ccgo_up(z))) + v5 = BoolInt32(v4 == int32(' ') || Uint32FromInt32(v4)-uint32('\t') < uint32(5)) + goto _17 + _17: + } + if !(v7 && !(v5 != 0)) { + break + } + goto _14 + _14: + ; + z = z + 1 + } + **(**uint8)(__ccgo_up(z)) = uint8(0) + if int64(z)-int64(p) < int64(256) { + Xmemcpy(tls, buf, p, Uint64FromInt64(int64(z)-int64(p)+int64(1))) + break + } + } + X__fclose_ca(tls, f) +} + +func _reverse_services(tls *TLS, buf uintptr, port int32, dgram int32) { + bp := tls.Alloc(1408) + defer tls.Free(1408) + var f, p, v1, v2 uintptr + var svport uint64 + var v4, v5 int32 + var v7 bool + var _ /* _buf at bp+136 */ [1032]uint8 + var _ /* _f at bp+1168 */ TFILE + var _ /* line at bp+0 */ [128]uint8 + var _ /* z at bp+128 */ uintptr + _, _, _, _, _, _, _, _ = f, p, svport, v1, v2, v4, v5, v7 + f = X__fopen_rb_ca(tls, __ccgo_ts+1082, bp+1168, bp+136, uint64(1032)) + if !(f != 0) { + return + } + for Xfgets(tls, bp, int32(128), f) != 0 { + v1 = Xstrchr(tls, bp, int32('#')) + p = v1 + if v1 != 0 { + v2 = p + p = p + 1 + **(**uint8)(__ccgo_up(v2)) = uint8('\n') + **(**uint8)(__ccgo_up(p)) = Uint8FromInt32(0) + } + p = bp + for { + if v7 = **(**uint8)(__ccgo_up(p)) != 0; v7 { + v4 = Int32FromUint8(**(**uint8)(__ccgo_up(p))) + v5 = BoolInt32(v4 == int32(' ') || Uint32FromInt32(v4)-uint32('\t') < uint32(5)) + goto _6 + _6: + } + if !(v7 && !(v5 != 0)) { + break + } + goto _3 + _3: + ; + p = p + 1 + } + if !(**(**uint8)(__ccgo_up(p)) != 0) { + continue + } + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(0) + svport = Xstrtoul(tls, p, bp+128, int32(10)) + if svport != Uint64FromInt32(port) || **(**uintptr)(__ccgo_up(bp + 128)) == p { + continue + } + if dgram != 0 && Xstrncmp(tls, **(**uintptr)(__ccgo_up(bp + 128)), __ccgo_ts+1096, uint64(4)) != 0 { + continue + } + if !(dgram != 0) && Xstrncmp(tls, **(**uintptr)(__ccgo_up(bp + 128)), __ccgo_ts+1101, uint64(4)) != 0 { + continue + } + if int64(p)-t__predefined_ptrdiff_t(bp) > int64(32) { + continue + } + Xmemcpy(tls, buf, bp, Uint64FromInt64(int64(p)-t__predefined_ptrdiff_t(bp))) + break + } + X__fclose_ca(tls, f) +} + +func _dns_parse_callback(tls *TLS, c uintptr, rr int32, data uintptr, len1 int32, packet uintptr, plen int32) (r int32) { + if rr != int32(RR_PTR) { + return 0 + } + if X__dn_expand(tls, packet, packet+uintptr(plen), data, c, int32(256)) <= 0 { + **(**uint8)(__ccgo_up(c)) = uint8(0) + } + return 0 +} + +func Xgetnameinfo(tls *TLS, sa uintptr, sl Tsocklen_t, node uintptr, nodelen Tsocklen_t, serv uintptr, servlen Tsocklen_t, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v sa=%v sl=%v node=%v nodelen=%v serv=%v servlen=%v flags=%v, (%v:)", tls, sa, sl, node, nodelen, serv, servlen, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(976) + defer tls.Free(976) + var a, p, p1, v1 uintptr + var af, port, qlen, rlen int32 + var scopeid uint32 + var _ /* buf at bp+78 */ [256]uint8 + var _ /* num at bp+334 */ [13]uint8 + var _ /* ptr at bp+0 */ [78]uint8 + var _ /* query at bp+347 */ [96]uint8 + var _ /* reply at bp+443 */ [512]uint8 + var _ /* tmp at bp+955 */ [17]uint8 + _, _, _, _, _, _, _, _, _ = a, af, p, p1, port, qlen, rlen, scopeid, v1 + af = Int32FromUint16((*Tsockaddr)(unsafe.Pointer(sa)).Fsa_family) + switch af { + case int32(PF_INET): + a = sa + 4 + if uint64(sl) < uint64(16) { + return -int32(6) + } + _mkptr4(tls, bp, a) + scopeid = uint32(0) + case int32(PF_INET6): + a = sa + 8 + if uint64(sl) < uint64(28) { + return -int32(6) + } + if Xmemcmp(tls, a, __ccgo_ts+1069, uint64(12)) != 0 { + _mkptr6(tls, bp, a) + } else { + _mkptr4(tls, bp, a+uintptr(12)) + } + scopeid = (*Tsockaddr_in6)(unsafe.Pointer(sa)).Fsin6_scope_id + default: + return -int32(6) + } + if node != 0 && nodelen != 0 { + (**(**[256]uint8)(__ccgo_up(bp + 78)))[0] = uint8(0) + if !(flags&Int32FromInt32(NI_NUMERICHOST) != 0) { + _reverse_hosts(tls, bp+78, a, scopeid, af) + } + if !(**(**uint8)(__ccgo_up(bp + 78)) != 0) && !(flags&Int32FromInt32(NI_NUMERICHOST) != 0) { + qlen = X__res_mkquery(tls, 0, bp, int32(1), int32(RR_PTR), uintptr(0), 0, uintptr(0), bp+347, int32(96)) + (**(**[96]uint8)(__ccgo_up(bp + 347)))[int32(3)] = uint8(0) /* don't need AD flag */ + rlen = X__res_send(tls, bp+347, qlen, bp+443, int32(512)) + (**(**[256]uint8)(__ccgo_up(bp + 78)))[0] = uint8(0) + if rlen > 0 { + if Uint64FromInt32(rlen) > uint64(512) { + rlen = int32(512) + } + X__dns_parse(tls, bp+443, rlen, __ccgo_fp(_dns_parse_callback), bp+78) + } + } + if !(**(**uint8)(__ccgo_up(bp + 78)) != 0) { + if flags&int32(NI_NAMEREQD) != 0 { + return -int32(2) + } + Xinet_ntop(tls, af, a, bp+78, uint32(256)) + if scopeid != 0 { + p = uintptr(0) + if !(flags&Int32FromInt32(NI_NUMERICSCOPE) != 0) && (Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a))) == int32(0xfe) && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a + 1)))&int32(0xc0) == int32(0x80) || Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a))) == int32(0xff) && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a + 1)))&int32(0xf) == int32(0x2)) { + p = Xif_indextoname(tls, scopeid, bp+955+uintptr(1)) + } + if !(p != 0) { + p = _itoa(tls, bp+334, scopeid) + } + p = p - 1 + v1 = p + **(**uint8)(__ccgo_up(v1)) = uint8('%') + Xstrcat(tls, bp+78, p) + } + } + if _strlen(tls, bp+78) >= uint64(nodelen) { + return -int32(12) + } + Xstrcpy(tls, node, bp+78) + } + if serv != 0 && servlen != 0 { + p1 = bp + 78 + port = Int32FromUint16(Xntohs(tls, (*Tsockaddr_in)(unsafe.Pointer(sa)).Fsin_port)) + (**(**[256]uint8)(__ccgo_up(bp + 78)))[0] = uint8(0) + if !(flags&Int32FromInt32(NI_NUMERICSERV) != 0) { + _reverse_services(tls, bp+78, port, flags&int32(NI_DGRAM)) + } + if !(**(**uint8)(__ccgo_up(p1)) != 0) { + p1 = _itoa(tls, bp+334, Uint32FromInt32(port)) + } + if _strlen(tls, p1) >= uint64(servlen) { + return -int32(12) + } + Xstrcpy(tls, serv, p1) + } + return 0 +} + +func Xgetpeername(tls *TLS, fd int32, addr uintptr, len1 uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v addr=%v len1=%v, (%v:)", tls, fd, addr, len1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(96) + defer tls.Free(96) + var r, v10 int64 + var v1, v2, v3 int32 + var v4, v5, v6, v7, v8, v9 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _, _, _ = r, v1, v10, v2, v3, v4, v5, v6, v7, v8, v9 + v1 = int32(SYS_getpeername) + v2 = int32(__SC_getpeername) + v3 = 0 + v4 = int64(fd) + v5 = int64(addr) + v6 = int64(len1) + v7 = int64(Int32FromInt32(0)) + v8 = int64(Int32FromInt32(0)) + v9 = int64(Int32FromInt32(0)) + if v3 != 0 { + r = ___syscall_cp(tls, int64(v1), v4, v5, v6, v7, v8, v9) + } else { + r = X__syscall6(tls, int64(v1), v4, v5, v6, v7, v8, v9) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v10 = r + goto _11 + } + if v3 != 0 { + *(*[6]int64)(unsafe.Pointer(bp)) = [6]int64{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = ___syscall_cp(tls, int64(SYS_socketcall), int64(v2), int64(bp), 0, 0, 0, 0) + } else { + *(*[6]int64)(unsafe.Pointer(bp + 48)) = [6]int64{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = X__syscall2(tls, int64(SYS_socketcall), int64(v2), int64(bp+48)) + } + v10 = r + goto _11 +_11: + return int32(X__syscall_ret(tls, Uint64FromInt64(v10))) +} + +func Xgetservbyname(tls *TLS, name uintptr, prots uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v prots=%v, (%v:)", tls, name, prots, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* res at bp+0 */ uintptr + if Xgetservbyname_r(tls, name, prots, uintptr(unsafe.Pointer(&_se)), uintptr(unsafe.Pointer(&_buf3)), uint64(16), bp) != 0 { + return uintptr(0) + } + return uintptr(unsafe.Pointer(&_se)) +} + +var _se Tservent + +var _buf3 [2]uintptr + +const ALIGN = 0 + +func Xgetservbyname_r(tls *TLS, name uintptr, prots uintptr, se uintptr, buf uintptr, buflen Tsize_t, res uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v prots=%v se=%v buf=%v buflen=%v res=%v, (%v:)", tls, name, prots, se, buf, buflen, res, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var align, cnt, proto int32 + var v1 uintptr + var _ /* end at bp+8 */ uintptr + var _ /* servs at bp+0 */ [2]Tservice + _, _, _, _ = align, cnt, proto, v1 + **(**uintptr)(__ccgo_up(res)) = uintptr(0) + /* Don't treat numeric port number strings as service records. */ + **(**uintptr)(__ccgo_up(bp + 8)) = __ccgo_ts + Xstrtoul(tls, name, bp+8, int32(10)) + if !(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)))) != 0) { + return int32(ENOENT) + } + /* Align buffer */ + align = Int32FromUint64(-uint64(buf) & (Uint64FromInt64(16) - Uint64FromInt64(8) - Uint64FromInt32(1))) + if buflen < Uint64FromInt32(2)*Uint64FromInt64(8)+Uint64FromInt32(align) { + return int32(ERANGE) + } + buf = buf + uintptr(align) + if !(prots != 0) { + proto = 0 + } else { + if !(Xstrcmp(tls, prots, __ccgo_ts+1106) != 0) { + proto = int32(IPPROTO_TCP) + } else { + if !(Xstrcmp(tls, prots, __ccgo_ts+1110) != 0) { + proto = int32(IPPROTO_UDP) + } else { + return int32(EINVAL) + } + } + } + cnt = X__lookup_serv(tls, bp, name, proto, 0, 0) + if cnt < 0 { + switch cnt { + case -int32(10): + fallthrough + case -int32(11): + return int32(ENOMEM) + default: + return int32(ENOENT) + } + } + (*Tservent)(unsafe.Pointer(se)).Fs_name = name + (*Tservent)(unsafe.Pointer(se)).Fs_aliases = buf + **(**uintptr)(__ccgo_up((*Tservent)(unsafe.Pointer(se)).Fs_aliases)) = (*Tservent)(unsafe.Pointer(se)).Fs_name + **(**uintptr)(__ccgo_up((*Tservent)(unsafe.Pointer(se)).Fs_aliases + 1*8)) = uintptr(0) + (*Tservent)(unsafe.Pointer(se)).Fs_port = Int32FromUint16(Xhtons(tls, (**(**[2]Tservice)(__ccgo_up(bp)))[0].Fport)) + if Int32FromUint8((**(**[2]Tservice)(__ccgo_up(bp)))[0].Fproto) == int32(IPPROTO_TCP) { + v1 = __ccgo_ts + 1106 + } else { + v1 = __ccgo_ts + 1110 + } + (*Tservent)(unsafe.Pointer(se)).Fs_proto = v1 + **(**uintptr)(__ccgo_up(res)) = se + return 0 +} + +func Xgetsockname(tls *TLS, fd int32, addr uintptr, len1 uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v addr=%v len1=%v, (%v:)", tls, fd, addr, len1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(96) + defer tls.Free(96) + var r, v10 int64 + var v1, v2, v3 int32 + var v4, v5, v6, v7, v8, v9 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _, _, _ = r, v1, v10, v2, v3, v4, v5, v6, v7, v8, v9 + v1 = int32(SYS_getsockname) + v2 = int32(__SC_getsockname) + v3 = 0 + v4 = int64(fd) + v5 = int64(addr) + v6 = int64(len1) + v7 = int64(Int32FromInt32(0)) + v8 = int64(Int32FromInt32(0)) + v9 = int64(Int32FromInt32(0)) + if v3 != 0 { + r = ___syscall_cp(tls, int64(v1), v4, v5, v6, v7, v8, v9) + } else { + r = X__syscall6(tls, int64(v1), v4, v5, v6, v7, v8, v9) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v10 = r + goto _11 + } + if v3 != 0 { + *(*[6]int64)(unsafe.Pointer(bp)) = [6]int64{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = ___syscall_cp(tls, int64(SYS_socketcall), int64(v2), int64(bp), 0, 0, 0, 0) + } else { + *(*[6]int64)(unsafe.Pointer(bp + 48)) = [6]int64{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = X__syscall2(tls, int64(SYS_socketcall), int64(v2), int64(bp+48)) + } + v10 = r + goto _11 +_11: + return int32(X__syscall_ret(tls, Uint64FromInt64(v10))) +} + +func Xgetsockopt(tls *TLS, fd int32, level int32, optname int32, optval uintptr, optlen uintptr) (r2 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v level=%v optname=%v optval=%v optlen=%v, (%v:)", tls, fd, level, optname, optval, optlen, origin(2)) + defer func() { trc("-> %v", r2) }() + } + bp := tls.Alloc(320) + defer tls.Free(320) + var r, v10 int64 + var r1, v1, v2, v3 int32 + var tv uintptr + var v4, v5, v6, v7, v8, v9 Tsyscall_arg_t + var _ /* tv32 at bp+296 */ [2]int64 + _, _, _, _, _, _, _, _, _, _, _, _, _ = r, r1, tv, v1, v10, v2, v3, v4, v5, v6, v7, v8, v9 + v1 = int32(SYS_getsockopt) + v2 = int32(__SC_getsockopt) + v3 = 0 + v4 = int64(fd) + v5 = int64(level) + v6 = int64(optname) + v7 = int64(optval) + v8 = int64(optlen) + v9 = int64(Int32FromInt32(0)) + if v3 != 0 { + r = ___syscall_cp(tls, int64(v1), v4, v5, v6, v7, v8, v9) + } else { + r = X__syscall6(tls, int64(v1), v4, v5, v6, v7, v8, v9) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v10 = r + goto _11 + } + if v3 != 0 { + *(*[6]int64)(unsafe.Pointer(bp + 200)) = [6]int64{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = ___syscall_cp(tls, int64(SYS_socketcall), int64(v2), int64(bp+200), 0, 0, 0, 0) + } else { + *(*[6]int64)(unsafe.Pointer(bp + 248)) = [6]int64{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = X__syscall2(tls, int64(SYS_socketcall), int64(v2), int64(bp+248)) + } + v10 = r + goto _11 +_11: + r1 = int32(v10) + if r1 == -int32(ENOPROTOOPT) { + switch level { + case int32(SOL_SOCKET): + switch optname { + case int32(SO_RCVTIMEO): + fallthrough + case int32(SO_SNDTIMEO): + if false { + break + } + if uint64(**(**Tsocklen_t)(__ccgo_up(optlen))) < uint64(16) { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL)))) + } + if optname == int32(SO_RCVTIMEO) { + optname = int32(SO_RCVTIMEO_OLD) + } + if optname == int32(SO_SNDTIMEO) { + optname = int32(SO_SNDTIMEO_OLD) + } + *(*[1]Tsocklen_t)(unsafe.Pointer(bp + 96)) = [1]Tsocklen_t{ + 0: uint32(16), + } + v1 = int32(SYS_getsockopt) + v2 = int32(__SC_getsockopt) + v3 = 0 + v4 = int64(fd) + v5 = int64(level) + v6 = int64(optname) + v7 = int64(bp + 296) + v8 = int64(bp + 96) + v9 = int64(Int32FromInt32(0)) + if v3 != 0 { + r = ___syscall_cp(tls, int64(v1), v4, v5, v6, v7, v8, v9) + } else { + r = X__syscall6(tls, int64(v1), v4, v5, v6, v7, v8, v9) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v10 = r + goto _22 + } + if v3 != 0 { + *(*[6]int64)(unsafe.Pointer(bp + 200)) = [6]int64{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = ___syscall_cp(tls, int64(SYS_socketcall), int64(v2), int64(bp+200), 0, 0, 0, 0) + } else { + *(*[6]int64)(unsafe.Pointer(bp + 248)) = [6]int64{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = X__syscall2(tls, int64(SYS_socketcall), int64(v2), int64(bp+248)) + } + v10 = r + goto _22 + _22: + r1 = int32(v10) + if r1 < 0 { + break + } + tv = optval + (*Ttimeval)(unsafe.Pointer(tv)).Ftv_sec = (**(**[2]int64)(__ccgo_up(bp + 296)))[0] + (*Ttimeval)(unsafe.Pointer(tv)).Ftv_usec = (**(**[2]int64)(__ccgo_up(bp + 296)))[int32(1)] + **(**Tsocklen_t)(__ccgo_up(optlen)) = uint32(16) + case int32(SO_TIMESTAMP): + fallthrough + case int32(SO_TIMESTAMPNS): + if true { + break + } + if optname == int32(SO_TIMESTAMP) { + optname = int32(SO_TIMESTAMP_OLD) + } + if optname == int32(SO_TIMESTAMPNS) { + optname = int32(SO_TIMESTAMPNS_OLD) + } + v1 = int32(SYS_getsockopt) + v2 = int32(__SC_getsockopt) + v3 = 0 + v4 = int64(fd) + v5 = int64(level) + v6 = int64(optname) + v7 = int64(optval) + v8 = int64(optlen) + v9 = int64(Int32FromInt32(0)) + if v3 != 0 { + r = ___syscall_cp(tls, int64(v1), v4, v5, v6, v7, v8, v9) + } else { + r = X__syscall6(tls, int64(v1), v4, v5, v6, v7, v8, v9) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v10 = r + goto _33 + } + if v3 != 0 { + *(*[6]int64)(unsafe.Pointer(bp + 200)) = [6]int64{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = ___syscall_cp(tls, int64(SYS_socketcall), int64(v2), int64(bp+200), 0, 0, 0, 0) + } else { + *(*[6]int64)(unsafe.Pointer(bp + 248)) = [6]int64{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = X__syscall2(tls, int64(SYS_socketcall), int64(v2), int64(bp+248)) + } + v10 = r + goto _33 + _33: + r1 = int32(v10) + break + } + } + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r1))) +} + +func X__h_errno_location(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + if !((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Fstack != 0) { + return uintptr(unsafe.Pointer(&Xh_errno)) + } + return uintptr(___get_tp(tls)) + 144 +} + +func Xherror(tls *TLS, msg uintptr) { + if __ccgo_strace { + trc("tls=%v msg=%v, (%v:)", tls, msg, origin(2)) + } + bp := tls.Alloc(32) + defer tls.Free(32) + var v1, v2 uintptr + _, _ = v1, v2 + if msg != 0 { + v1 = msg + } else { + v1 = __ccgo_ts + } + if msg != 0 { + v2 = __ccgo_ts + 386 + } else { + v2 = __ccgo_ts + } + Xfprintf(tls, uintptr(unsafe.Pointer(&X__stderr_FILE)), __ccgo_ts+1114, VaList(bp+8, v1, v2, Xhstrerror(tls, **(**int32)(__ccgo_up(X__h_errno_location(tls)))))) +} + +var _msgs1 = [84]uint8{'H', 'o', 's', 't', ' ', 'n', 'o', 't', ' ', 'f', 'o', 'u', 'n', 'd', 0, 'T', 'r', 'y', ' ', 'a', 'g', 'a', 'i', 'n', 0, 'N', 'o', 'n', '-', 'r', 'e', 'c', 'o', 'v', 'e', 'r', 'a', 'b', 'l', 'e', ' ', 'e', 'r', 'r', 'o', 'r', 0, 'A', 'd', 'd', 'r', 'e', 's', 's', ' ', 'n', 'o', 't', ' ', 'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e', 0, 0, 'U', 'n', 'k', 'n', 'o', 'w', 'n', ' ', 'e', 'r', 'r', 'o', 'r'} + +func Xhstrerror(tls *TLS, ecode int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v ecode=%v, (%v:)", tls, ecode, origin(2)) + defer func() { trc("-> %v", r) }() + } + var s uintptr + _ = s + s = uintptr(unsafe.Pointer(&_msgs1)) + ecode = ecode - 1 + for { + if !(ecode != 0 && **(**uint8)(__ccgo_up(s)) != 0) { + break + } + for { + if !(**(**uint8)(__ccgo_up(s)) != 0) { + break + } + goto _2 + _2: + ; + s = s + 1 + } + goto _1 + _1: + ; + ecode = ecode - 1 + s = s + 1 + } + if !(**(**uint8)(__ccgo_up(s)) != 0) { + s = s + 1 + } + return X__lctrans_cur(tls, s) +} + +func Xhtonl(tls *TLS, n Tuint32_t) (r Tuint32_t) { + if __ccgo_strace { + trc("tls=%v n=%v, (%v:)", tls, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var u struct { + Fc [0]uint8 + Fi int32 + } + var v1 uint32 + var v2, v3 Tuint32_t + _, _, _, _ = u, v1, v2, v3 + u = *(*struct { + Fc [0]uint8 + Fi int32 + })(unsafe.Pointer(&struct{ f int32 }{f: int32(1)})) + if *(*uint8)(unsafe.Pointer(&u)) != 0 { + v2 = n + v3 = v2>>int32(24) | v2>>int32(8)&uint32(0xff00) | v2< %v", r) }() + } + var u struct { + Fc [0]uint8 + Fi int32 + } + var v1 int32 + var v2, v3 Tuint16_t + _, _, _, _ = u, v1, v2, v3 + u = *(*struct { + Fc [0]uint8 + Fi int32 + })(unsafe.Pointer(&struct{ f int32 }{f: int32(1)})) + if *(*uint8)(unsafe.Pointer(&u)) != 0 { + v2 = n + v3 = Uint16FromInt32(Int32FromUint16(v2)<>int32(8)) + goto _4 + _4: + v1 = Int32FromUint16(v3) + } else { + v1 = Int32FromUint16(n) + } + return Uint16FromInt32(v1) +} + +func Xif_freenameindex(tls *TLS, idx uintptr) { + if __ccgo_strace { + trc("tls=%v idx=%v, (%v:)", tls, idx, origin(2)) + } + Xfree(tls, idx) +} + +func Xif_indextoname(tls *TLS, index uint32, name uintptr) (r1 uintptr) { + if __ccgo_strace { + trc("tls=%v index=%v name=%v, (%v:)", tls, index, name, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var fd, r, v1 int32 + var _ /* ifr at bp+0 */ Tifreq + _, _, _ = fd, r, v1 + v1 = Xsocket(tls, int32(PF_LOCAL), Int32FromInt32(SOCK_DGRAM)|Int32FromInt32(SOCK_CLOEXEC), 0) + fd = v1 + if v1 < 0 { + return uintptr(0) + } + *(*int32)(unsafe.Pointer(bp + 16)) = Int32FromUint32(index) + r = Xioctl(tls, fd, int32(SIOCGIFNAME), VaList(bp+48, bp)) + X__syscall1(tls, int64(SYS_close), int64(fd)) + if r < 0 { + if **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(ENODEV) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENXIO) + } + return uintptr(0) + } + return Xstrncpy(tls, name, bp, uint64(IF_NAMESIZE)) +} + +type Tifnamemap = struct { + Fhash_next uint32 + Findex uint32 + Fnamelen uint8 + Fname [16]uint8 +} + +type Tifnameindexctx = struct { + Fnum uint32 + Fallocated uint32 + Fstr_bytes uint32 + Flist uintptr + Fhash [64]uint32 +} + +func _netlink_msg_to_nameindex(tls *TLS, pctx uintptr, h uintptr) (r int32) { + var a Tsize_t + var bucket, index, namelen, type1 int32 + var ctx, ifa, ifi, map1, rta uintptr + var i, v2 uint32 + _, _, _, _, _, _, _, _, _, _, _, _ = a, bucket, ctx, i, ifa, ifi, index, map1, namelen, rta, type1, v2 + ctx = pctx + if Int32FromUint16((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_type) == int32(RTM_NEWLINK) { + ifi = h + UintptrFromInt64(16) + index = (*Tifinfomsg)(unsafe.Pointer(ifi)).Fifi_index + type1 = int32(IFLA_IFNAME) + rta = h + UintptrFromInt64(16) + uintptr((Uint64FromInt64(16)+Uint64FromInt32(3))&Uint64FromInt32(^Int32FromInt32(3))) + } else { + ifa = h + UintptrFromInt64(16) + index = Int32FromUint32((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_index) + type1 = int32(IFA_LABEL) + rta = h + UintptrFromInt64(16) + uintptr((Uint64FromInt64(8)+Uint64FromInt32(3))&Uint64FromInt32(^Int32FromInt32(3))) + } + for { + if !(Uint64FromInt64(int64(h+uintptr((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_len))-int64(rta)) >= uint64(4)) { + break + } + if Int32FromUint16((*Trtattr)(unsafe.Pointer(rta)).Frta_type) != type1 { + goto _1 + } + namelen = Int32FromUint64(uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len) - uint64(4) - uint64(1)) + if namelen > int32(IF_NAMESIZE) { + return 0 + } + /* suppress duplicates */ + bucket = index % int32(IFADDRS_HASH_SIZE) + i = **(**uint32)(__ccgo_up(ctx + 24 + uintptr(bucket)*4)) + for i != 0 { + map1 = (*Tifnameindexctx)(unsafe.Pointer(ctx)).Flist + uintptr(i-uint32(1))*28 + if (*Tifnamemap)(unsafe.Pointer(map1)).Findex == Uint32FromInt32(index) && Int32FromUint8((*Tifnamemap)(unsafe.Pointer(map1)).Fnamelen) == namelen && Xmemcmp(tls, map1+9, rta+UintptrFromInt64(4), Uint64FromInt32(namelen)) == 0 { + return 0 + } + i = (*Tifnamemap)(unsafe.Pointer(map1)).Fhash_next + } + if (*Tifnameindexctx)(unsafe.Pointer(ctx)).Fnum >= (*Tifnameindexctx)(unsafe.Pointer(ctx)).Fallocated { + if (*Tifnameindexctx)(unsafe.Pointer(ctx)).Fallocated != 0 { + v2 = (*Tifnameindexctx)(unsafe.Pointer(ctx)).Fallocated*uint32(2) + uint32(1) + } else { + v2 = uint32(8) + } + a = uint64(v2) + if a > Uint64FromUint64(0xffffffffffffffff)/Uint64FromInt64(28) { + return -int32(1) + } + map1 = Xrealloc(tls, (*Tifnameindexctx)(unsafe.Pointer(ctx)).Flist, a*uint64(28)) + if !(map1 != 0) { + return -int32(1) + } + (*Tifnameindexctx)(unsafe.Pointer(ctx)).Flist = map1 + (*Tifnameindexctx)(unsafe.Pointer(ctx)).Fallocated = uint32(a) + } + map1 = (*Tifnameindexctx)(unsafe.Pointer(ctx)).Flist + uintptr((*Tifnameindexctx)(unsafe.Pointer(ctx)).Fnum)*28 + (*Tifnamemap)(unsafe.Pointer(map1)).Findex = Uint32FromInt32(index) + (*Tifnamemap)(unsafe.Pointer(map1)).Fnamelen = Uint8FromInt32(namelen) + Xmemcpy(tls, map1+9, rta+UintptrFromInt64(4), Uint64FromInt32(namelen)) + **(**uint32)(__ccgo_up(ctx + 8)) += Uint32FromInt32(namelen + int32(1)) + (*Tifnameindexctx)(unsafe.Pointer(ctx)).Fnum = (*Tifnameindexctx)(unsafe.Pointer(ctx)).Fnum + 1 + (*Tifnamemap)(unsafe.Pointer(map1)).Fhash_next = **(**uint32)(__ccgo_up(ctx + 24 + uintptr(bucket)*4)) + **(**uint32)(__ccgo_up(ctx + 24 + uintptr(bucket)*4)) = (*Tifnameindexctx)(unsafe.Pointer(ctx)).Fnum + return 0 + goto _1 + _1: + ; + rta = rta + uintptr((Int32FromUint16((*Trtattr)(unsafe.Pointer(rta)).Frta_len)+Int32FromInt32(3)) & ^Int32FromInt32(3)) + } + return 0 +} + +func Xif_nameindex(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(288) + defer tls.Free(288) + var ctx, d, ifs, p, s, v2 uintptr + var i int32 + var _ /* _ctx at bp+0 */ Tifnameindexctx + var _ /* cs at bp+280 */ int32 + _, _, _, _, _, _, _ = ctx, d, i, ifs, p, s, v2 + ctx = bp + ifs = uintptr(0) + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp+280) + Xmemset(tls, ctx, 0, uint64(280)) + if X__rtnetlink_enumerate(tls, PF_UNSPEC, int32(PF_INET), __ccgo_fp(_netlink_msg_to_nameindex), ctx) < 0 { + goto err + } + ifs = Xmalloc(tls, uint64((*Tifnameindexctx)(unsafe.Pointer(ctx)).Fnum+Uint32FromInt32(1))*16+uint64((*Tifnameindexctx)(unsafe.Pointer(ctx)).Fstr_bytes)) + if !(ifs != 0) { + goto err + } + p = ifs + uintptr((*Tifnameindexctx)(unsafe.Pointer(ctx)).Fnum)*16 + UintptrFromInt32(1)*16 + i = Int32FromUint32((*Tifnameindexctx)(unsafe.Pointer(ctx)).Fnum) + d = ifs + s = (*Tifnameindexctx)(unsafe.Pointer(ctx)).Flist + for { + if !(i != 0) { + break + } + (*Tif_nameindex)(unsafe.Pointer(d)).Fif_index = (*Tifnamemap)(unsafe.Pointer(s)).Findex + (*Tif_nameindex)(unsafe.Pointer(d)).Fif_name = p + Xmemcpy(tls, p, s+9, uint64((*Tifnamemap)(unsafe.Pointer(s)).Fnamelen)) + p = p + uintptr((*Tifnamemap)(unsafe.Pointer(s)).Fnamelen) + v2 = p + p = p + 1 + **(**uint8)(__ccgo_up(v2)) = uint8(0) + goto _1 + _1: + ; + i = i - 1 + s += 28 + d += 16 + } + (*Tif_nameindex)(unsafe.Pointer(d)).Fif_index = uint32(0) + (*Tif_nameindex)(unsafe.Pointer(d)).Fif_name = uintptr(0) + goto err +err: + ; + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 280)), uintptr(0)) + Xfree(tls, (*Tifnameindexctx)(unsafe.Pointer(ctx)).Flist) + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOBUFS) + return ifs +} + +func Xif_nametoindex(tls *TLS, name uintptr) (r1 uint32) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var fd, r, v1 int32 + var _ /* ifr at bp+0 */ Tifreq + _, _, _ = fd, r, v1 + v1 = Xsocket(tls, int32(PF_LOCAL), Int32FromInt32(SOCK_DGRAM)|Int32FromInt32(SOCK_CLOEXEC), 0) + fd = v1 + if v1 < 0 { + return uint32(0) + } + Xstrncpy(tls, bp, name, uint64(16)) + r = Xioctl(tls, fd, int32(SIOCGIFINDEX), VaList(bp+48, bp)) + X__syscall1(tls, int64(SYS_close), int64(fd)) + if r < 0 { + v1 = 0 + } else { + v1 = *(*int32)(unsafe.Pointer(bp + 16)) + } + return Uint32FromInt32(v1) +} + +func Xinet_addr(tls *TLS, p uintptr) (r Tin_addr_t) { + if __ccgo_strace { + trc("tls=%v p=%v, (%v:)", tls, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* a at bp+0 */ Tin_addr + if !(X__inet_aton(tls, p, bp) != 0) { + return Uint32FromInt32(-Int32FromInt32(1)) + } + return (**(**Tin_addr)(__ccgo_up(bp))).Fs_addr +} + +func X__inet_aton(tls *TLS, s0 uintptr, dest uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s0=%v dest=%v, (%v:)", tls, s0, dest, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + var d, s uintptr + var i int32 + var _ /* a at bp+0 */ [4]uint64 + var _ /* z at bp+32 */ uintptr + _, _, _ = d, i, s + s = s0 + d = dest + **(**[4]uint64)(__ccgo_up(bp)) = [4]uint64{} + i = 0 + for { + if !(i < int32(4)) { + break + } + (**(**[4]uint64)(__ccgo_up(bp)))[i] = Xstrtoul(tls, s, bp+32, 0) + if **(**uintptr)(__ccgo_up(bp + 32)) == s || **(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 32)))) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 32))))) != int32('.') || !(BoolInt32(uint32(**(**uint8)(__ccgo_up(s)))-Uint32FromUint8('0') < Uint32FromInt32(10)) != 0) { + return 0 + } + if !(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 32)))) != 0) { + break + } + s = **(**uintptr)(__ccgo_up(bp + 32)) + uintptr(1) + goto _1 + _1: + ; + i = i + 1 + } + if i == int32(4) { + return 0 + } + switch i { + case 0: + (**(**[4]uint64)(__ccgo_up(bp)))[int32(1)] = (**(**[4]uint64)(__ccgo_up(bp)))[0] & uint64(0xffffff) + **(**uint64)(__ccgo_up(bp)) >>= uint64(24) + fallthrough + case int32(1): + (**(**[4]uint64)(__ccgo_up(bp)))[int32(2)] = (**(**[4]uint64)(__ccgo_up(bp)))[int32(1)] & uint64(0xffff) + **(**uint64)(__ccgo_up(bp + 1*8)) >>= uint64(16) + fallthrough + case int32(2): + (**(**[4]uint64)(__ccgo_up(bp)))[int32(3)] = (**(**[4]uint64)(__ccgo_up(bp)))[int32(2)] & uint64(0xff) + **(**uint64)(__ccgo_up(bp + 2*8)) >>= uint64(8) + } + i = 0 + for { + if !(i < int32(4)) { + break + } + if (**(**[4]uint64)(__ccgo_up(bp)))[i] > uint64(255) { + return 0 + } + **(**uint8)(__ccgo_up(d + uintptr(i))) = uint8((**(**[4]uint64)(__ccgo_up(bp)))[i]) + goto _2 + _2: + ; + i = i + 1 + } + return int32(1) +} + +func Xinet_aton(tls *TLS, s0 uintptr, dest uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s0=%v dest=%v, (%v:)", tls, s0, dest, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__inet_aton(tls, s0, dest) +} + +func Xinet_network(tls *TLS, p uintptr) (r Tin_addr_t) { + if __ccgo_strace { + trc("tls=%v p=%v, (%v:)", tls, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xntohl(tls, Xinet_addr(tls, p)) +} + +func Xinet_makeaddr(tls *TLS, n Tin_addr_t, h Tin_addr_t) (r Tin_addr) { + if __ccgo_strace { + trc("tls=%v n=%v h=%v, (%v:)", tls, n, h, origin(2)) + defer func() { trc("-> %v", r) }() + } + if n < uint32(256) { + h = h | n< %v", r) }() + } + var h Tuint32_t + _ = h + h = in.Fs_addr + if h>>int32(24) < uint32(128) { + return h & uint32(0xffffff) + } + if h>>int32(24) < uint32(192) { + return h & uint32(0xffff) + } + return h & uint32(0xff) +} + +func Xinet_netof(tls *TLS, in Tin_addr) (r Tin_addr_t) { + if __ccgo_strace { + trc("tls=%v in=%v, (%v:)", tls, in, origin(2)) + defer func() { trc("-> %v", r) }() + } + var h Tuint32_t + _ = h + h = in.Fs_addr + if h>>int32(24) < uint32(128) { + return h >> int32(24) + } + if h>>int32(24) < uint32(192) { + return h >> int32(16) + } + return h >> int32(8) +} + +func Xinet_ntoa(tls *TLS, _in Tin_addr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v _in=%v, (%v:)", tls, _in, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + *(*Tin_addr)(unsafe.Pointer(bp)) = _in + var a uintptr + _ = a + a = bp + Xsnprintf(tls, uintptr(unsafe.Pointer(&_buf4)), uint64(16), __ccgo_ts+1122, VaList(bp+16, Int32FromUint8(**(**uint8)(__ccgo_up(a))), Int32FromUint8(**(**uint8)(__ccgo_up(a + 1))), Int32FromUint8(**(**uint8)(__ccgo_up(a + 2))), Int32FromUint8(**(**uint8)(__ccgo_up(a + 3))))) + return uintptr(unsafe.Pointer(&_buf4)) +} + +var _buf4 [16]uint8 + +func Xinet_ntop(tls *TLS, af int32, a0 uintptr, s uintptr, l Tsocklen_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v af=%v a0=%v s=%v l=%v, (%v:)", tls, af, a0, s, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(192) + defer tls.Free(192) + var a uintptr + var best, i, j, max, v2 int32 + var v3 uint8 + var _ /* buf at bp+0 */ [100]uint8 + _, _, _, _, _, _, _ = a, best, i, j, max, v2, v3 + a = a0 + switch af { + case int32(PF_INET): + if Uint32FromInt32(Xsnprintf(tls, s, uint64(l), __ccgo_ts+1122, VaList(bp+112, Int32FromUint8(**(**uint8)(__ccgo_up(a))), Int32FromUint8(**(**uint8)(__ccgo_up(a + 1))), Int32FromUint8(**(**uint8)(__ccgo_up(a + 2))), Int32FromUint8(**(**uint8)(__ccgo_up(a + 3)))))) < l { + return s + } + case int32(PF_INET6): + if Xmemcmp(tls, a, __ccgo_ts+1069, uint64(12)) != 0 { + Xsnprintf(tls, bp, uint64(100), __ccgo_ts+1134, VaList(bp+112, int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 1))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 2)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 3))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 4)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 5))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 6)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 7))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 8)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 9))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 10)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 11))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 12)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 13))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 14)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 15))))) + } else { + Xsnprintf(tls, bp, uint64(100), __ccgo_ts+1158, VaList(bp+112, int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 1))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 2)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 3))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 4)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 5))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 6)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 7))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 8)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 9))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 10)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 11))), Int32FromUint8(**(**uint8)(__ccgo_up(a + 12))), Int32FromUint8(**(**uint8)(__ccgo_up(a + 13))), Int32FromUint8(**(**uint8)(__ccgo_up(a + 14))), Int32FromUint8(**(**uint8)(__ccgo_up(a + 15))))) + } + /* Replace longest /(^0|:)[:0]{2,}/ with "::" */ + v2 = Int32FromInt32(0) + best = v2 + i = v2 + max = Int32FromInt32(2) + for { + if !((**(**[100]uint8)(__ccgo_up(bp)))[i] != 0) { + break + } + if i != 0 && Int32FromUint8((**(**[100]uint8)(__ccgo_up(bp)))[i]) != int32(':') { + goto _1 + } + j = Int32FromUint64(Xstrspn(tls, bp+uintptr(i), __ccgo_ts+1188)) + if j > max { + best = i + max = j + } + goto _1 + _1: + ; + i = i + 1 + } + if max > int32(3) { + v3 = Uint8FromUint8(':') + (**(**[100]uint8)(__ccgo_up(bp)))[best+int32(1)] = v3 + (**(**[100]uint8)(__ccgo_up(bp)))[best] = v3 + Xmemmove(tls, bp+uintptr(best)+uintptr(2), bp+uintptr(best)+uintptr(max), Uint64FromInt32(i-best-max+int32(1))) + } + if _strlen(tls, bp) < uint64(l) { + Xstrcpy(tls, s, bp) + return s + } + default: + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EAFNOSUPPORT) + return uintptr(0) + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOSPC) + return uintptr(0) +} + +func _hexval(tls *TLS, c uint32) (r int32) { + if c-uint32('0') < uint32(10) { + return Int32FromUint32(c - uint32('0')) + } + c = c | uint32(32) + if c-uint32('a') < uint32(6) { + return Int32FromUint32(c - uint32('a') + uint32(10)) + } + return -int32(1) +} + +func Xinet_pton(tls *TLS, af int32, s uintptr, a0 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v af=%v s=%v a0=%v, (%v:)", tls, af, s, a0, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var a, v4 uintptr + var brk, d, i, j, need_v4, v, v3, v9 int32 + var v5 bool + var _ /* ip at bp+0 */ [8]Tuint16_t + _, _, _, _, _, _, _, _, _, _, _ = a, brk, d, i, j, need_v4, v, v3, v4, v5, v9 + a = a0 + brk = -int32(1) + need_v4 = 0 + if af == int32(PF_INET) { + i = 0 + for { + if !(i < int32(4)) { + break + } + v3 = Int32FromInt32(0) + j = v3 + v = v3 + for { + if !(j < int32(3) && BoolInt32(uint32(**(**uint8)(__ccgo_up(s + uintptr(j))))-uint32('0') < uint32(10)) != 0) { + break + } + v = int32(10)*v + Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(j)))) - int32('0') + goto _2 + _2: + ; + j = j + 1 + } + if j == 0 || j > int32(1) && Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('0') || v > int32(255) { + return 0 + } + **(**uint8)(__ccgo_up(a + uintptr(i))) = Uint8FromInt32(v) + if Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(j)))) == 0 && i == int32(3) { + return int32(1) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(j)))) != int32('.') { + return 0 + } + s = s + uintptr(j+int32(1)) + goto _1 + _1: + ; + i = i + 1 + } + return 0 + } else { + if af != int32(PF_INET6) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EAFNOSUPPORT) + return -int32(1) + } + } + if v5 = Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32(':'); v5 { + s = s + 1 + v4 = s + } + if v5 && Int32FromUint8(**(**uint8)(__ccgo_up(v4))) != int32(':') { + return 0 + } + i = 0 + for { + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32(':') && brk < 0 { + brk = i + (**(**[8]Tuint16_t)(__ccgo_up(bp)))[i&int32(7)] = uint16(0) + s = s + 1 + v4 = s + if !(**(**uint8)(__ccgo_up(v4)) != 0) { + break + } + if i == int32(7) { + return 0 + } + goto _6 + } + v3 = Int32FromInt32(0) + j = v3 + v = v3 + for { + if v5 = j < int32(4); v5 { + v9 = _hexval(tls, uint32(**(**uint8)(__ccgo_up(s + uintptr(j))))) + d = v9 + } + if !(v5 && v9 >= 0) { + break + } + v = int32(16)*v + d + goto _8 + _8: + ; + j = j + 1 + } + if j == 0 { + return 0 + } + (**(**[8]Tuint16_t)(__ccgo_up(bp)))[i&int32(7)] = Uint16FromInt32(v) + if !(**(**uint8)(__ccgo_up(s + uintptr(j))) != 0) && (brk >= 0 || i == int32(7)) { + break + } + if i == int32(7) { + return 0 + } + if Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(j)))) != int32(':') { + if Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(j)))) != int32('.') || i < int32(6) && brk < 0 { + return 0 + } + need_v4 = int32(1) + i = i + 1 + (**(**[8]Tuint16_t)(__ccgo_up(bp)))[i&int32(7)] = uint16(0) + break + } + s = s + uintptr(j+int32(1)) + goto _6 + _6: + ; + i = i + 1 + } + if brk >= 0 { + Xmemmove(tls, bp+uintptr(brk)*2+uintptr(7)*2-uintptr(i)*2, bp+uintptr(brk)*2, Uint64FromInt32(int32(2)*(i+int32(1)-brk))) + j = 0 + for { + if !(j < int32(7)-i) { + break + } + (**(**[8]Tuint16_t)(__ccgo_up(bp)))[brk+j] = uint16(0) + goto _12 + _12: + ; + j = j + 1 + } + } + j = 0 + for { + if !(j < int32(8)) { + break + } + v4 = a + a = a + 1 + **(**uint8)(__ccgo_up(v4)) = Uint8FromInt32(Int32FromUint16((**(**[8]Tuint16_t)(__ccgo_up(bp)))[j]) >> int32(8)) + v4 = a + a = a + 1 + **(**uint8)(__ccgo_up(v4)) = uint8((**(**[8]Tuint16_t)(__ccgo_up(bp)))[j]) + goto _13 + _13: + ; + j = j + 1 + } + if need_v4 != 0 && Xinet_pton(tls, int32(PF_INET), s, a-uintptr(4)) <= 0 { + return 0 + } + return int32(1) +} + +func Xlisten(tls *TLS, fd int32, backlog int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v backlog=%v, (%v:)", tls, fd, backlog, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(96) + defer tls.Free(96) + var r, v10 int64 + var v1, v2, v3 int32 + var v4, v5, v6, v7, v8, v9 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _, _, _ = r, v1, v10, v2, v3, v4, v5, v6, v7, v8, v9 + v1 = int32(SYS_listen) + v2 = int32(__SC_listen) + v3 = 0 + v4 = int64(fd) + v5 = int64(backlog) + v6 = int64(Int32FromInt32(0)) + v7 = int64(Int32FromInt32(0)) + v8 = int64(Int32FromInt32(0)) + v9 = int64(Int32FromInt32(0)) + if v3 != 0 { + r = ___syscall_cp(tls, int64(v1), v4, v5, v6, v7, v8, v9) + } else { + r = X__syscall6(tls, int64(v1), v4, v5, v6, v7, v8, v9) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v10 = r + goto _11 + } + if v3 != 0 { + *(*[6]int64)(unsafe.Pointer(bp)) = [6]int64{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = ___syscall_cp(tls, int64(SYS_socketcall), int64(v2), int64(bp), 0, 0, 0, 0) + } else { + *(*[6]int64)(unsafe.Pointer(bp + 48)) = [6]int64{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = X__syscall2(tls, int64(SYS_socketcall), int64(v2), int64(bp+48)) + } + v10 = r + goto _11 +_11: + return int32(X__syscall_ret(tls, Uint64FromInt64(v10))) +} + +func X__lookup_ipliteral(tls *TLS, buf uintptr, name uintptr, family int32) (r int32) { + if __ccgo_strace { + trc("tls=%v buf=%v name=%v family=%v, (%v:)", tls, buf, name, family, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(96) + defer tls.Free(96) + var p, v1 uintptr + var scopeid uint64 + var _ /* a4 at bp+0 */ Tin_addr + var _ /* a6 at bp+4 */ Tin6_addr + var _ /* tmp at bp+20 */ [64]uint8 + var _ /* z at bp+88 */ uintptr + _, _, _ = p, scopeid, v1 + if X__inet_aton(tls, name, bp) > 0 { + if family == int32(PF_INET6) { /* wrong family */ + return -int32(5) + } + Xmemcpy(tls, buf+8, bp, uint64(4)) + (**(**Taddress)(__ccgo_up(buf))).Ffamily = int32(PF_INET) + (**(**Taddress)(__ccgo_up(buf))).Fscopeid = uint32(0) + return int32(1) + } + p = Xstrchr(tls, name, int32('%')) + scopeid = uint64(0) + if p != 0 && int64(p)-int64(name) < int64(64) { + Xmemcpy(tls, bp+20, name, Uint64FromInt64(int64(p)-int64(name))) + (**(**[64]uint8)(__ccgo_up(bp + 20)))[int64(p)-int64(name)] = uint8(0) + name = bp + 20 + } + if Xinet_pton(tls, int32(PF_INET6), name, bp+4) <= 0 { + return 0 + } + if family == int32(PF_INET) { /* wrong family */ + return -int32(5) + } + Xmemcpy(tls, buf+8, bp+4, uint64(16)) + (**(**Taddress)(__ccgo_up(buf))).Ffamily = int32(PF_INET6) + if p != 0 { + p = p + 1 + v1 = p + if BoolInt32(uint32(**(**uint8)(__ccgo_up(v1)))-uint32('0') < uint32(10)) != 0 { + scopeid = Xstrtoull(tls, p, bp+88, int32(10)) + } else { + **(**uintptr)(__ccgo_up(bp + 88)) = p - uintptr(1) + } + if **(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 88)))) != 0 { + if !(Int32FromUint8(**(**Tuint8_t)(__ccgo_up(bp + 4))) == int32(0xfe) && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(bp + 4 + 1)))&int32(0xc0) == int32(0x80)) && !(Int32FromUint8(**(**Tuint8_t)(__ccgo_up(bp + 4))) == int32(0xff) && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(bp + 4 + 1)))&int32(0xf) == int32(0x2)) { + return -int32(2) + } + scopeid = uint64(Xif_nametoindex(tls, p)) + if !(scopeid != 0) { + return -int32(2) + } + } + if scopeid > uint64(0xffffffff) { + return -int32(2) + } + } + (**(**Taddress)(__ccgo_up(buf))).Fscopeid = uint32(scopeid) + return int32(1) +} + +const ABUF_SIZE = 4800 +const DAS_MATCHINGLABEL = 268435456 +const DAS_MATCHINGSCOPE = 536870912 +const DAS_ORDER_SHIFT = 0 +const DAS_PREC_SHIFT = 20 +const DAS_PREFIX_SHIFT = 8 +const DAS_SCOPE_SHIFT = 16 +const DAS_USABLE = 1073741824 +const RR_A = 1 +const RR_AAAA = 28 +const RR_CNAME = 5 + +func _is_valid_hostname(tls *TLS, host uintptr) (r int32) { + var s uintptr + _ = s + if Xstrnlen(tls, host, uint64(255))-uint64(1) >= uint64(254) || Xmbstowcs(tls, uintptr(0), host, uint64(0)) == Uint64FromInt32(-Int32FromInt32(1)) { + return 0 + } + s = host + for { + if !(Int32FromUint8(**(**uint8)(__ccgo_up(s))) >= int32(0x80) || Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('.') || Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('-') || Xisalnum(tls, Int32FromUint8(**(**uint8)(__ccgo_up(s)))) != 0) { + break + } + goto _1 + _1: + ; + s = s + 1 + } + return BoolInt32(!(**(**uint8)(__ccgo_up(s)) != 0)) +} + +func _name_from_null(tls *TLS, buf uintptr, name uintptr, family int32, flags int32) (r int32) { + var cnt, v1 int32 + _, _ = cnt, v1 + cnt = 0 + if name != 0 { + return 0 + } + if flags&int32(AI_PASSIVE) != 0 { + if family != int32(PF_INET6) { + v1 = cnt + cnt = cnt + 1 + **(**Taddress)(__ccgo_up(buf + uintptr(v1)*28)) = Taddress{ + Ffamily: int32(PF_INET), + } + } + if family != int32(PF_INET) { + v1 = cnt + cnt = cnt + 1 + **(**Taddress)(__ccgo_up(buf + uintptr(v1)*28)) = Taddress{ + Ffamily: int32(PF_INET6), + } + } + } else { + if family != int32(PF_INET6) { + v1 = cnt + cnt = cnt + 1 + **(**Taddress)(__ccgo_up(buf + uintptr(v1)*28)) = Taddress{ + Ffamily: int32(PF_INET), + Faddr: [16]Tuint8_t{ + 0: uint8(127), + 3: uint8(1), + }, + } + } + if family != int32(PF_INET) { + v1 = cnt + cnt = cnt + 1 + **(**Taddress)(__ccgo_up(buf + uintptr(v1)*28)) = Taddress{ + Ffamily: int32(PF_INET6), + Faddr: [16]Tuint8_t{ + 15: uint8(1), + }, + } + } + } + return cnt +} + +func _name_from_numeric(tls *TLS, buf uintptr, name uintptr, family int32) (r int32) { + return X__lookup_ipliteral(tls, buf, name, family) +} + +func _name_from_hosts(tls *TLS, buf uintptr, canon uintptr, name uintptr, family int32) (r int32) { + bp := tls.Alloc(1776) + defer tls.Free(1776) + var badfam, cnt, have_canon, v5, v6, v8, v9 int32 + var f, p, z, v1, v2 uintptr + var l Tsize_t + var v11, v12 bool + var _ /* _buf at bp+512 */ [1032]uint8 + var _ /* _f at bp+1544 */ TFILE + var _ /* line at bp+0 */ [512]uint8 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = badfam, cnt, f, have_canon, l, p, z, v1, v11, v12, v2, v5, v6, v8, v9 + l = _strlen(tls, name) + cnt = 0 + badfam = 0 + have_canon = 0 + f = X__fopen_rb_ca(tls, __ccgo_ts+1058, bp+1544, bp+512, uint64(1032)) + if !(f != 0) { + switch **(**int32)(__ccgo_up(X__errno_location(tls))) { + case int32(ENOENT): + fallthrough + case int32(ENOTDIR): + fallthrough + case int32(EACCES): + return 0 + default: + return -int32(11) + } + } + for Xfgets(tls, bp, int32(512), f) != 0 && cnt < int32(MAXADDRS) { + v1 = Xstrchr(tls, bp, int32('#')) + p = v1 + if v1 != 0 { + v2 = p + p = p + 1 + **(**uint8)(__ccgo_up(v2)) = uint8('\n') + **(**uint8)(__ccgo_up(p)) = Uint8FromInt32(0) + } + p = bp + uintptr(1) + for { + v1 = Xstrstr(tls, p, name) + p = v1 + if v12 = v1 != 0; v12 { + v5 = Int32FromUint8(**(**uint8)(__ccgo_up(p + uintptr(-Int32FromInt32(1))))) + v6 = BoolInt32(v5 == int32(' ') || Uint32FromInt32(v5)-uint32('\t') < uint32(5)) + goto _7 + _7: + ; + if v11 = !(v6 != 0); !v11 { + v8 = Int32FromUint8(**(**uint8)(__ccgo_up(p + uintptr(l)))) + v9 = BoolInt32(v8 == int32(' ') || Uint32FromInt32(v8)-uint32('\t') < uint32(5)) + goto _10 + _10: + } + } + if !(v12 && (v11 || !(v9 != 0))) { + break + } + goto _3 + _3: + ; + p = p + 1 + } + if !(p != 0) { + continue + } + /* Isolate IP address to parse */ + p = bp + for { + if v11 = **(**uint8)(__ccgo_up(p)) != 0; v11 { + v5 = Int32FromUint8(**(**uint8)(__ccgo_up(p))) + v6 = BoolInt32(v5 == int32(' ') || Uint32FromInt32(v5)-uint32('\t') < uint32(5)) + goto _16 + _16: + } + if !(v11 && !(v6 != 0)) { + break + } + goto _13 + _13: + ; + p = p + 1 + } + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(0) + switch _name_from_numeric(tls, buf+uintptr(cnt)*28, bp, family) { + case int32(1): + cnt = cnt + 1 + case 0: + continue + default: + badfam = -int32(5) + break + } + if have_canon != 0 { + continue + } + /* Extract first name as canonical name */ + for { + if v11 = **(**uint8)(__ccgo_up(p)) != 0; v11 { + v5 = Int32FromUint8(**(**uint8)(__ccgo_up(p))) + v6 = BoolInt32(v5 == int32(' ') || Uint32FromInt32(v5)-uint32('\t') < uint32(5)) + goto _22 + _22: + } + if !(v11 && v6 != 0) { + break + } + goto _19 + _19: + ; + p = p + 1 + } + z = p + for { + if v11 = **(**uint8)(__ccgo_up(z)) != 0; v11 { + v5 = Int32FromUint8(**(**uint8)(__ccgo_up(z))) + v6 = BoolInt32(v5 == int32(' ') || Uint32FromInt32(v5)-uint32('\t') < uint32(5)) + goto _27 + _27: + } + if !(v11 && !(v6 != 0)) { + break + } + goto _24 + _24: + ; + z = z + 1 + } + **(**uint8)(__ccgo_up(z)) = uint8(0) + if _is_valid_hostname(tls, p) != 0 { + have_canon = int32(1) + Xmemcpy(tls, canon, p, Uint64FromInt64(int64(z)-int64(p)+int64(1))) + } + } + X__fclose_ca(tls, f) + if cnt != 0 { + v5 = cnt + } else { + v5 = badfam + } + return v5 +} + +type Tdpc_ctx = struct { + Faddrs uintptr + Fcanon uintptr + Fcnt int32 + Frrtype int32 +} + +func _dns_parse_callback1(tls *TLS, c uintptr, rr int32, data uintptr, len1 int32, packet uintptr, plen int32) (r int32) { + bp := tls.Alloc(256) + defer tls.Free(256) + var ctx, v2 uintptr + var family, v1 int32 + var _ /* tmp at bp+0 */ [256]uint8 + _, _, _, _ = ctx, family, v1, v2 + ctx = c + if rr == int32(RR_CNAME) { + if X__dn_expand(tls, packet, packet+uintptr(plen), data, bp, int32(256)) > 0 && _is_valid_hostname(tls, bp) != 0 { + Xstrcpy(tls, (*Tdpc_ctx)(unsafe.Pointer(ctx)).Fcanon, bp) + } + return 0 + } + if (*Tdpc_ctx)(unsafe.Pointer(ctx)).Fcnt >= int32(MAXADDRS) { + return 0 + } + if rr != (*Tdpc_ctx)(unsafe.Pointer(ctx)).Frrtype { + return 0 + } + switch rr { + case int32(RR_A): + if len1 != int32(4) { + return -int32(1) + } + family = int32(PF_INET) + case int32(RR_AAAA): + if len1 != int32(16) { + return -int32(1) + } + family = int32(PF_INET6) + break + } + (**(**Taddress)(__ccgo_up((*Tdpc_ctx)(unsafe.Pointer(ctx)).Faddrs + uintptr((*Tdpc_ctx)(unsafe.Pointer(ctx)).Fcnt)*28))).Ffamily = family + (**(**Taddress)(__ccgo_up((*Tdpc_ctx)(unsafe.Pointer(ctx)).Faddrs + uintptr((*Tdpc_ctx)(unsafe.Pointer(ctx)).Fcnt)*28))).Fscopeid = uint32(0) + v2 = ctx + 16 + v1 = *(*int32)(unsafe.Pointer(v2)) + *(*int32)(unsafe.Pointer(v2)) = *(*int32)(unsafe.Pointer(v2)) + 1 + Xmemcpy(tls, (*Tdpc_ctx)(unsafe.Pointer(ctx)).Faddrs+uintptr(v1)*28+8, data, Uint64FromInt32(len1)) + return 0 +} + +func _name_from_dns(tls *TLS, buf uintptr, canon uintptr, name uintptr, family int32, conf uintptr) (r int32) { + bp := tls.Alloc(10240) + defer tls.Free(10240) + var i, nq int32 + var qtypes [2]int32 + var _ /* abuf at bp+560 */ [2][4800]uint8 + var _ /* alens at bp+10200 */ [2]int32 + var _ /* ap at bp+10176 */ [2]uintptr + var _ /* ctx at bp+10208 */ Tdpc_ctx + var _ /* qbuf at bp+0 */ [2][280]uint8 + var _ /* qlens at bp+10192 */ [2]int32 + var _ /* qp at bp+10160 */ [2]uintptr + _, _, _ = i, nq, qtypes + **(**[2]uintptr)(__ccgo_up(bp + 10160)) = [2]uintptr{ + 0: bp, + 1: bp + 1*280, + } + **(**[2]uintptr)(__ccgo_up(bp + 10176)) = [2]uintptr{ + 0: bp + 560, + 1: bp + 560 + 1*4800, + } + nq = 0 + **(**Tdpc_ctx)(__ccgo_up(bp + 10208)) = Tdpc_ctx{ + Faddrs: buf, + Fcanon: canon, + } + i = 0 + for { + if !(i < int32(2)) { + break + } + if family != _afrr[i].Faf { + (**(**[2]int32)(__ccgo_up(bp + 10192)))[nq] = X__res_mkquery(tls, 0, name, int32(1), _afrr[i].Frr, uintptr(0), 0, uintptr(0), bp+uintptr(nq)*280, int32(280)) + if (**(**[2]int32)(__ccgo_up(bp + 10192)))[nq] == -int32(1) { + return 0 + } + qtypes[nq] = _afrr[i].Frr + **(**uint8)(__ccgo_up(bp + uintptr(nq)*280 + 3)) = uint8(0) /* don't need AD flag */ + /* Ensure query IDs are distinct. */ + if nq != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(bp + uintptr(nq)*280))) == Int32FromUint8(**(**uint8)(__ccgo_up(bp))) { + **(**uint8)(__ccgo_up(bp + uintptr(nq)*280)) = **(**uint8)(__ccgo_up(bp + uintptr(nq)*280)) + 1 + } + nq = nq + 1 + } + goto _1 + _1: + ; + i = i + 1 + } + if X__res_msend_rc(tls, nq, bp+10160, bp+10192, bp+10176, bp+10200, int32(4800), conf) < 0 { + return -int32(11) + } + i = 0 + for { + if !(i < nq) { + break + } + if (**(**[2]int32)(__ccgo_up(bp + 10200)))[i] < int32(4) || Int32FromUint8(**(**uint8)(__ccgo_up(bp + 560 + uintptr(i)*4800 + 3)))&int32(15) == int32(2) { + return -int32(3) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(bp + 560 + uintptr(i)*4800 + 3)))&int32(15) == int32(3) { + return 0 + } + if Int32FromUint8(**(**uint8)(__ccgo_up(bp + 560 + uintptr(i)*4800 + 3)))&int32(15) != 0 { + return -int32(4) + } + goto _2 + _2: + ; + i = i + 1 + } + i = nq - int32(1) + for { + if !(i >= 0) { + break + } + (**(**Tdpc_ctx)(__ccgo_up(bp + 10208))).Frrtype = qtypes[i] + if Uint64FromInt32((**(**[2]int32)(__ccgo_up(bp + 10200)))[i]) > uint64(4800) { + (**(**[2]int32)(__ccgo_up(bp + 10200)))[i] = int32(4800) + } + X__dns_parse(tls, bp+560+uintptr(i)*4800, (**(**[2]int32)(__ccgo_up(bp + 10200)))[i], __ccgo_fp(_dns_parse_callback1), bp+10208) + goto _3 + _3: + ; + i = i - 1 + } + if (**(**Tdpc_ctx)(__ccgo_up(bp + 10208))).Fcnt != 0 { + return (**(**Tdpc_ctx)(__ccgo_up(bp + 10208))).Fcnt + } + return -int32(5) +} + +var _afrr = [2]struct { + Faf int32 + Frr int32 +}{ + 0: { + Faf: int32(PF_INET6), + Frr: int32(RR_A), + }, + 1: { + Faf: int32(PF_INET), + Frr: int32(RR_AAAA), + }, +} + +func _name_from_dns_search(tls *TLS, buf uintptr, canon uintptr, name uintptr, family int32) (r int32) { + bp := tls.Alloc(368) + defer tls.Free(368) + var cnt, v5, v6 int32 + var dots, l, v2 Tsize_t + var p, z uintptr + var v12 bool + var _ /* conf at bp+256 */ Tresolvconf + var _ /* search at bp+0 */ [256]uint8 + _, _, _, _, _, _, _, _, _ = cnt, dots, l, p, z, v12, v2, v5, v6 + if X__get_resolv_conf(tls, bp+256, bp, uint64(256)) < 0 { + return -int32(1) + } + /* Count dots, suppress search when >=ndots or name ends in + * a dot, which is an explicit request for global scope. */ + v2 = Uint64FromInt32(0) + l = v2 + dots = v2 + for { + if !(**(**uint8)(__ccgo_up(name + uintptr(l))) != 0) { + break + } + if Int32FromUint8(**(**uint8)(__ccgo_up(name + uintptr(l)))) == int32('.') { + dots = dots + 1 + } + goto _1 + _1: + ; + l = l + 1 + } + if dots >= uint64((**(**Tresolvconf)(__ccgo_up(bp + 256))).Fndots) || Int32FromUint8(**(**uint8)(__ccgo_up(name + uintptr(l-uint64(1))))) == int32('.') { + **(**uint8)(__ccgo_up(bp)) = uint8(0) + } + /* Strip final dot for canon, fail if multiple trailing dots. */ + if Int32FromUint8(**(**uint8)(__ccgo_up(name + uintptr(l-uint64(1))))) == int32('.') { + l = l - 1 + } + if !(l != 0) || Int32FromUint8(**(**uint8)(__ccgo_up(name + uintptr(l-uint64(1))))) == int32('.') { + return -int32(2) + } + /* This can never happen; the caller already checked length. */ + if l >= uint64(256) { + return -int32(2) + } + /* Name with search domain appended is setup in canon[]. This both + * provides the desired default canonical name (if the requested + * name is not a CNAME record) and serves as a buffer for passing + * the full requested name to name_from_dns. */ + Xmemcpy(tls, canon, name, l) + **(**uint8)(__ccgo_up(canon + uintptr(l))) = uint8('.') + p = bp + for { + if !(**(**uint8)(__ccgo_up(p)) != 0) { + break + } + for { + v5 = Int32FromUint8(**(**uint8)(__ccgo_up(p))) + v6 = BoolInt32(v5 == int32(' ') || Uint32FromInt32(v5)-uint32('\t') < uint32(5)) + goto _7 + _7: + if !(v6 != 0) { + break + } + goto _4 + _4: + ; + p = p + 1 + } + z = p + for { + if v12 = **(**uint8)(__ccgo_up(z)) != 0; v12 { + v5 = Int32FromUint8(**(**uint8)(__ccgo_up(z))) + v6 = BoolInt32(v5 == int32(' ') || Uint32FromInt32(v5)-uint32('\t') < uint32(5)) + goto _11 + _11: + } + if !(v12 && !(v6 != 0)) { + break + } + goto _8 + _8: + ; + z = z + 1 + } + if z == p { + break + } + if Uint64FromInt64(int64(z)-int64(p)) < uint64(256)-l-uint64(1) { + Xmemcpy(tls, canon+uintptr(l)+uintptr(1), p, Uint64FromInt64(int64(z)-int64(p))) + **(**uint8)(__ccgo_up(canon + uintptr(Uint64FromInt64(int64(z)-int64(p)+int64(1))+l))) = uint8(0) + cnt = _name_from_dns(tls, buf, canon, canon, family, bp+256) + if cnt != 0 { + return cnt + } + } + goto _3 + _3: + ; + p = z + } + **(**uint8)(__ccgo_up(canon + uintptr(l))) = uint8(0) + return _name_from_dns(tls, buf, canon, name, family, bp+256) +} + +type Tpolicy = struct { + Faddr [16]uint8 + Flen1 uint8 + Fmask uint8 + Fprec uint8 + Flabel uint8 +} + +var _defpolicy = [6]Tpolicy{ + 0: { + Faddr: [16]uint8{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1}, + Flen1: uint8(15), + Fmask: uint8(0xff), + Fprec: uint8(50), + }, + 1: { + Faddr: [16]uint8{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255}, + Flen1: uint8(11), + Fmask: uint8(0xff), + Fprec: uint8(35), + Flabel: uint8(4), + }, + 2: { + Faddr: [16]uint8{' ', 2}, + Flen1: uint8(1), + Fmask: uint8(0xff), + Fprec: uint8(30), + Flabel: uint8(2), + }, + 3: { + Faddr: [16]uint8{' ', 1}, + Flen1: uint8(3), + Fmask: uint8(0xff), + Fprec: uint8(5), + Flabel: uint8(5), + }, + 4: { + Faddr: [16]uint8{252}, + Fmask: uint8(0xfe), + Fprec: uint8(3), + Flabel: uint8(13), + }, + 5: { + Faddr: [16]uint8{}, + Fprec: uint8(40), + Flabel: uint8(1), + }, +} + +func _policyof(tls *TLS, a uintptr) (r uintptr) { + var i int32 + _ = i + i = 0 + for { + if Xmemcmp(tls, a, uintptr(unsafe.Pointer(&_defpolicy))+uintptr(i)*20, uint64(_defpolicy[i].Flen1)) != 0 { + goto _1 + } + if Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a + uintptr(_defpolicy[i].Flen1))))&Int32FromUint8(_defpolicy[i].Fmask) != Int32FromUint8(**(**uint8)(__ccgo_up(uintptr(unsafe.Pointer(&_defpolicy)) + uintptr(i)*20 + uintptr(_defpolicy[i].Flen1)))) { + goto _1 + } + return uintptr(unsafe.Pointer(&_defpolicy)) + uintptr(i)*20 + goto _1 + _1: + ; + i = i + 1 + } + return r +} + +func _labelof(tls *TLS, a uintptr) (r int32) { + return Int32FromUint8((*Tpolicy)(unsafe.Pointer(_policyof(tls, a))).Flabel) +} + +func _scopeof(tls *TLS, a uintptr) (r int32) { + if Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a))) == int32(0xff) { + return Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a + 1))) & int32(15) + } + if Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a))) == int32(0xfe) && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a + 1)))&int32(0xc0) == int32(0x80) { + return int32(2) + } + if **(**Tuint32_t)(__ccgo_up(a)) == uint32(0) && **(**Tuint32_t)(__ccgo_up(a + 1*4)) == uint32(0) && **(**Tuint32_t)(__ccgo_up(a + 2*4)) == uint32(0) && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a + 12))) == 0 && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a + 13))) == 0 && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a + 14))) == 0 && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a + 15))) == int32(1) { + return int32(2) + } + if Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a))) == int32(0xfe) && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a + 1)))&int32(0xc0) == int32(0xc0) { + return int32(5) + } + return int32(14) +} + +func _prefixmatch(tls *TLS, s uintptr, d uintptr) (r int32) { + var i uint32 + _ = i + i = uint32(0) + for { + if !(i < uint32(128) && !((Int32FromUint8(**(**Tuint8_t)(__ccgo_up(s + uintptr(i/uint32(8)))))^Int32FromUint8(**(**Tuint8_t)(__ccgo_up(d + uintptr(i/uint32(8))))))&(Int32FromInt32(128)>>(i%Uint32FromInt32(8))) != 0)) { + break + } + goto _1 + _1: + ; + i = i + 1 + } + return Int32FromUint32(i) +} + +func _addrcmp(tls *TLS, _a uintptr, _b uintptr) (r int32) { + var a, b uintptr + _, _ = a, b + a = _a + b = _b + return (*Taddress)(unsafe.Pointer(b)).Fsortkey - (*Taddress)(unsafe.Pointer(a)).Fsortkey +} + +func X__lookup_name(tls *TLS, buf uintptr, canon uintptr, name uintptr, family int32, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v buf=%v canon=%v name=%v family=%v flags=%v, (%v:)", tls, buf, canon, name, family, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(96) + defer tls.Free(96) + var cnt, dlabel, dprec, dscope, family1, fd, i, j, key, prefixlen, v1 int32 + var da, dpolicy, sa uintptr + var dalen Tsocklen_t + var l Tsize_t + var _ /* cs at bp+0 */ int32 + var _ /* da4 at bp+76 */ Tsockaddr_in + var _ /* da6 at bp+32 */ Tsockaddr_in6 + var _ /* sa4 at bp+60 */ Tsockaddr_in + var _ /* sa6 at bp+4 */ Tsockaddr_in6 + var _ /* salen at bp+92 */ Tsocklen_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = cnt, da, dalen, dlabel, dpolicy, dprec, dscope, family1, fd, i, j, key, l, prefixlen, sa, v1 + cnt = 0 + **(**uint8)(__ccgo_up(canon)) = uint8(0) + if name != 0 { + /* reject empty name and check len so it fits into temp bufs */ + l = Xstrnlen(tls, name, uint64(255)) + if l-uint64(1) >= uint64(254) { + return -int32(2) + } + Xmemcpy(tls, canon, name, l+uint64(1)) + } + /* Procedurally, a request for v6 addresses with the v4-mapped + * flag set is like a request for unspecified family, followed + * by filtering of the results. */ + if flags&int32(AI_V4MAPPED) != 0 { + if family == int32(PF_INET6) { + family = PF_UNSPEC + } else { + flags = flags - int32(AI_V4MAPPED) + } + } + /* Try each backend until there's at least one result. */ + cnt = _name_from_null(tls, buf, name, family, flags) + if !(cnt != 0) { + cnt = _name_from_numeric(tls, buf, name, family) + } + if !(cnt != 0) && !(flags&Int32FromInt32(AI_NUMERICHOST) != 0) { + cnt = _name_from_hosts(tls, buf, canon, name, family) + if !(cnt != 0) { + cnt = _name_from_dns_search(tls, buf, canon, name, family) + } + } + if cnt <= 0 { + if cnt != 0 { + v1 = cnt + } else { + v1 = -int32(2) + } + return v1 + } + /* Filter/transform results for v4-mapped lookup, if requested. */ + if flags&int32(AI_V4MAPPED) != 0 { + if !(flags&Int32FromInt32(AI_ALL) != 0) { + /* If any v6 results exist, remove v4 results. */ + i = 0 + for { + if !(i < cnt && (**(**Taddress)(__ccgo_up(buf + uintptr(i)*28))).Ffamily != int32(PF_INET6)) { + break + } + goto _2 + _2: + ; + i = i + 1 + } + if i < cnt { + j = 0 + for { + if !(i < cnt) { + break + } + if (**(**Taddress)(__ccgo_up(buf + uintptr(i)*28))).Ffamily == int32(PF_INET6) { + v1 = j + j = j + 1 + **(**Taddress)(__ccgo_up(buf + uintptr(v1)*28)) = **(**Taddress)(__ccgo_up(buf + uintptr(i)*28)) + } + goto _3 + _3: + ; + i = i + 1 + } + v1 = j + i = v1 + cnt = v1 + } + } + /* Translate any remaining v4 results to v6 */ + i = 0 + for { + if !(i < cnt) { + break + } + if (**(**Taddress)(__ccgo_up(buf + uintptr(i)*28))).Ffamily != int32(PF_INET) { + goto _6 + } + Xmemcpy(tls, buf+uintptr(i)*28+8+uintptr(12), buf+uintptr(i)*28+8, uint64(4)) + Xmemcpy(tls, buf+uintptr(i)*28+8, __ccgo_ts+1069, uint64(12)) + (**(**Taddress)(__ccgo_up(buf + uintptr(i)*28))).Ffamily = int32(PF_INET6) + goto _6 + _6: + ; + i = i + 1 + } + } + /* No further processing is needed if there are fewer than 2 + * results or if there are only IPv4 results. */ + if cnt < int32(2) || family == int32(PF_INET) { + return cnt + } + i = 0 + for { + if !(i < cnt) { + break + } + if (**(**Taddress)(__ccgo_up(buf + uintptr(i)*28))).Ffamily != int32(PF_INET) { + break + } + goto _7 + _7: + ; + i = i + 1 + } + if i == cnt { + return cnt + } + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp) + /* The following implements a subset of RFC 3484/6724 destination + * address selection by generating a single 31-bit sort key for + * each address. Rules 3, 4, and 7 are omitted for having + * excessive runtime and code size cost and dubious benefit. + * So far the label/precedence table cannot be customized. */ + i = 0 + for { + if !(i < cnt) { + break + } + family1 = (**(**Taddress)(__ccgo_up(buf + uintptr(i)*28))).Ffamily + key = 0 + **(**Tsockaddr_in6)(__ccgo_up(bp + 4)) = Tsockaddr_in6{} + **(**Tsockaddr_in6)(__ccgo_up(bp + 32)) = Tsockaddr_in6{ + Fsin6_family: uint16(PF_INET6), + Fsin6_port: uint16(65535), + Fsin6_scope_id: (**(**Taddress)(__ccgo_up(buf + uintptr(i)*28))).Fscopeid, + } + **(**Tsockaddr_in)(__ccgo_up(bp + 60)) = Tsockaddr_in{} + **(**Tsockaddr_in)(__ccgo_up(bp + 76)) = Tsockaddr_in{ + Fsin_family: uint16(PF_INET), + Fsin_port: uint16(65535), + } + if family1 == int32(PF_INET6) { + Xmemcpy(tls, bp+32+8, buf+uintptr(i)*28+8, uint64(16)) + da = bp + 32 + dalen = uint32(28) + sa = bp + 4 + **(**Tsocklen_t)(__ccgo_up(bp + 92)) = uint32(28) + } else { + Xmemcpy(tls, bp+4+8, __ccgo_ts+1069, uint64(12)) + Xmemcpy(tls, bp+32+8+uintptr(12), buf+uintptr(i)*28+8, uint64(4)) + Xmemcpy(tls, bp+32+8, __ccgo_ts+1069, uint64(12)) + Xmemcpy(tls, bp+32+8+uintptr(12), buf+uintptr(i)*28+8, uint64(4)) + Xmemcpy(tls, bp+76+4, buf+uintptr(i)*28+8, uint64(4)) + da = bp + 76 + dalen = uint32(16) + sa = bp + 60 + **(**Tsocklen_t)(__ccgo_up(bp + 92)) = uint32(16) + } + dpolicy = _policyof(tls, bp+32+8) + dscope = _scopeof(tls, bp+32+8) + dlabel = Int32FromUint8((*Tpolicy)(unsafe.Pointer(dpolicy)).Flabel) + dprec = Int32FromUint8((*Tpolicy)(unsafe.Pointer(dpolicy)).Fprec) + prefixlen = 0 + fd = Xsocket(tls, family1, Int32FromInt32(SOCK_DGRAM)|Int32FromInt32(SOCK_CLOEXEC), int32(IPPROTO_UDP)) + if fd >= 0 { + if !(Xconnect(tls, fd, da, dalen) != 0) { + key = key | int32(DAS_USABLE) + if !(Xgetsockname(tls, fd, sa, bp+92) != 0) { + if family1 == int32(PF_INET) { + Xmemcpy(tls, bp+4+8+uintptr(12), bp+60+4, uint64(4)) + } + if dscope == _scopeof(tls, bp+4+8) { + key = key | int32(DAS_MATCHINGSCOPE) + } + if dlabel == _labelof(tls, bp+4+8) { + key = key | int32(DAS_MATCHINGLABEL) + } + prefixlen = _prefixmatch(tls, bp+4+8, bp+32+8) + } + } + Xclose(tls, fd) + } + key = key | dprec< %v", r) }() + } + bp := tls.Alloc(1408) + defer tls.Free(1408) + var cnt, v1, v2 int32 + var f, p, v3, v4 uintptr + var l Tsize_t + var port uint64 + var v10 bool + var _ /* _buf at bp+136 */ [1032]uint8 + var _ /* _f at bp+1168 */ TFILE + var _ /* line at bp+0 */ [128]uint8 + var _ /* z at bp+128 */ uintptr + _, _, _, _, _, _, _, _, _, _ = cnt, f, l, p, port, v1, v10, v2, v3, v4 + cnt = 0 + **(**uintptr)(__ccgo_up(bp + 128)) = __ccgo_ts + port = uint64(0) + switch socktype { + case int32(SOCK_STREAM): + switch proto { + case 0: + proto = int32(IPPROTO_TCP) + fallthrough + case int32(IPPROTO_TCP): + default: + return -int32(8) + } + case int32(SOCK_DGRAM): + switch proto { + case 0: + proto = int32(IPPROTO_UDP) + fallthrough + case int32(IPPROTO_UDP): + default: + return -int32(8) + } + fallthrough + case 0: + default: + if name != 0 { + return -int32(8) + } + (**(**Tservice)(__ccgo_up(buf))).Fport = uint16(0) + (**(**Tservice)(__ccgo_up(buf))).Fproto = Uint8FromInt32(proto) + (**(**Tservice)(__ccgo_up(buf))).Fsocktype = Uint8FromInt32(socktype) + return int32(1) + } + if name != 0 { + if !(**(**uint8)(__ccgo_up(name)) != 0) { + return -int32(8) + } + port = Xstrtoul(tls, name, bp+128, int32(10)) + } + if !(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 128)))) != 0) { + if port > uint64(65535) { + return -int32(8) + } + if proto != int32(IPPROTO_UDP) { + (**(**Tservice)(__ccgo_up(buf + uintptr(cnt)*4))).Fport = uint16(port) + (**(**Tservice)(__ccgo_up(buf + uintptr(cnt)*4))).Fsocktype = uint8(SOCK_STREAM) + v1 = cnt + cnt = cnt + 1 + (**(**Tservice)(__ccgo_up(buf + uintptr(v1)*4))).Fproto = uint8(IPPROTO_TCP) + } + if proto != int32(IPPROTO_TCP) { + (**(**Tservice)(__ccgo_up(buf + uintptr(cnt)*4))).Fport = uint16(port) + (**(**Tservice)(__ccgo_up(buf + uintptr(cnt)*4))).Fsocktype = uint8(SOCK_DGRAM) + v1 = cnt + cnt = cnt + 1 + (**(**Tservice)(__ccgo_up(buf + uintptr(v1)*4))).Fproto = uint8(IPPROTO_UDP) + } + return cnt + } + if flags&int32(AI_NUMERICSERV) != 0 { + return -int32(2) + } + l = _strlen(tls, name) + f = X__fopen_rb_ca(tls, __ccgo_ts+1082, bp+1168, bp+136, uint64(1032)) + if !(f != 0) { + switch **(**int32)(__ccgo_up(X__errno_location(tls))) { + case int32(ENOENT): + fallthrough + case int32(ENOTDIR): + fallthrough + case int32(EACCES): + return -int32(8) + default: + return -int32(11) + } + } + for Xfgets(tls, bp, int32(128), f) != 0 && cnt < int32(MAXSERVS) { + v3 = Xstrchr(tls, bp, int32('#')) + p = v3 + if v3 != 0 { + v4 = p + p = p + 1 + **(**uint8)(__ccgo_up(v4)) = uint8('\n') + **(**uint8)(__ccgo_up(p)) = Uint8FromInt32(0) + } + /* Find service name */ + p = bp + for { + v3 = Xstrstr(tls, p, name) + p = v3 + if !(v3 != 0) { + break + } + if v10 = p > bp; v10 { + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(p + uintptr(-Int32FromInt32(1))))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _9 + _9: + } + if v10 && !(v2 != 0) { + goto _5 + } + if v10 = **(**uint8)(__ccgo_up(p + uintptr(l))) != 0; v10 { + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(p + uintptr(l)))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _13 + _13: + } + if v10 && !(v2 != 0) { + goto _5 + } + break + goto _5 + _5: + ; + p = p + 1 + } + if !(p != 0) { + continue + } + /* Skip past canonical name at beginning of line */ + p = bp + for { + if v10 = **(**uint8)(__ccgo_up(p)) != 0; v10 { + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(p))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _18 + _18: + } + if !(v10 && !(v2 != 0)) { + break + } + goto _15 + _15: + ; + p = p + 1 + } + port = Xstrtoul(tls, p, bp+128, int32(10)) + if port > uint64(65535) || **(**uintptr)(__ccgo_up(bp + 128)) == p { + continue + } + if !(Xstrncmp(tls, **(**uintptr)(__ccgo_up(bp + 128)), __ccgo_ts+1096, uint64(4)) != 0) { + if proto == int32(IPPROTO_TCP) { + continue + } + (**(**Tservice)(__ccgo_up(buf + uintptr(cnt)*4))).Fport = uint16(port) + (**(**Tservice)(__ccgo_up(buf + uintptr(cnt)*4))).Fsocktype = uint8(SOCK_DGRAM) + v1 = cnt + cnt = cnt + 1 + (**(**Tservice)(__ccgo_up(buf + uintptr(v1)*4))).Fproto = uint8(IPPROTO_UDP) + } + if !(Xstrncmp(tls, **(**uintptr)(__ccgo_up(bp + 128)), __ccgo_ts+1101, uint64(4)) != 0) { + if proto == int32(IPPROTO_UDP) { + continue + } + (**(**Tservice)(__ccgo_up(buf + uintptr(cnt)*4))).Fport = uint16(port) + (**(**Tservice)(__ccgo_up(buf + uintptr(cnt)*4))).Fsocktype = uint8(SOCK_STREAM) + v1 = cnt + cnt = cnt + 1 + (**(**Tservice)(__ccgo_up(buf + uintptr(v1)*4))).Fproto = uint8(IPPROTO_TCP) + } + } + X__fclose_ca(tls, f) + if cnt > 0 { + v1 = cnt + } else { + v1 = -int32(8) + } + return v1 +} + +func ___netlink_enumerate(tls *TLS, fd int32, seq uint32, type1 int32, af int32, __ccgo_fp_cb uintptr, ctx uintptr) (r1 int32) { + bp := tls.Alloc(8192) + defer tls.Free(8192) + var h uintptr + var r, ret int32 + var _ /* u at bp+0 */ struct { + Freq [0]struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + } + Freply [0]Tnlmsghdr + Fbuf [8192]Tuint8_t + } + _, _, _ = h, r, ret + Xmemset(tls, bp, 0, uint64(20)) + (*(*struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + })(unsafe.Pointer(&**(**struct { + Freq [0]struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + } + Freply [0]Tnlmsghdr + Fbuf [8192]Tuint8_t + })(__ccgo_up(bp))))).Fnlh.Fnlmsg_len = uint32(20) + (*(*struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + })(unsafe.Pointer(&**(**struct { + Freq [0]struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + } + Freply [0]Tnlmsghdr + Fbuf [8192]Tuint8_t + })(__ccgo_up(bp))))).Fnlh.Fnlmsg_type = Uint16FromInt32(type1) + (*(*struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + })(unsafe.Pointer(&**(**struct { + Freq [0]struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + } + Freply [0]Tnlmsghdr + Fbuf [8192]Tuint8_t + })(__ccgo_up(bp))))).Fnlh.Fnlmsg_flags = Uint16FromInt32(Int32FromInt32(NLM_F_ROOT) | Int32FromInt32(NLM_F_MATCH) | Int32FromInt32(NLM_F_REQUEST)) + (*(*struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + })(unsafe.Pointer(&**(**struct { + Freq [0]struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + } + Freply [0]Tnlmsghdr + Fbuf [8192]Tuint8_t + })(__ccgo_up(bp))))).Fnlh.Fnlmsg_seq = seq + (*(*struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + })(unsafe.Pointer(&**(**struct { + Freq [0]struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + } + Freply [0]Tnlmsghdr + Fbuf [8192]Tuint8_t + })(__ccgo_up(bp))))).Fg.Frtgen_family = Uint8FromInt32(af) + r = int32(Xsend(tls, fd, bp, uint64(20), 0)) + if r < 0 { + return r + } + for int32(1) != 0 { + r = int32(Xrecv(tls, fd, bp, uint64(8192), int32(MSG_DONTWAIT))) + if r <= 0 { + return -int32(1) + } + h = bp + for { + if !(Uint64FromInt64(int64(bp+uintptr(r))-int64(h)) >= uint64(16)) { + break + } + if Int32FromUint16((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_type) == int32(NLMSG_DONE) { + return 0 + } + if Int32FromUint16((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_type) == int32(NLMSG_ERROR) { + return -int32(1) + } + ret = (*(*func(*TLS, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cb})))(tls, ctx, h) + if ret != 0 { + return ret + } + goto _1 + _1: + ; + h = h + uintptr(((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_len+Uint32FromInt32(3))&Uint32FromInt32(^Int32FromInt32(3))) + } + } + return r1 +} + +type t__ccgo_fp__X__rtnetlink_enumerate_2 = func(*TLS, uintptr, uintptr) int32 + +func X__rtnetlink_enumerate(tls *TLS, link_af int32, addr_af int32, __ccgo_fp_cb uintptr, ctx uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v link_af=%v addr_af=%v __ccgo_fp_cb=%v ctx=%v, (%v:)", tls, link_af, addr_af, __ccgo_fp_cb, ctx, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var fd, r int32 + _, _ = fd, r + fd = Xsocket(tls, int32(PF_NETLINK), Int32FromInt32(SOCK_RAW)|Int32FromInt32(SOCK_CLOEXEC), NETLINK_ROUTE) + if fd < 0 { + return -int32(1) + } + r = ___netlink_enumerate(tls, fd, uint32(1), int32(RTM_GETLINK), link_af, __ccgo_fp_cb, ctx) + if !(r != 0) { + r = ___netlink_enumerate(tls, fd, uint32(2), int32(RTM_GETADDR), addr_af, __ccgo_fp_cb, ctx) + } + X__syscall1(tls, int64(SYS_close), int64(fd)) + return r +} + +func Xgetnetbyaddr(tls *TLS, net Tuint32_t, type1 int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v net=%v type1=%v, (%v:)", tls, net, type1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(0) +} + +func Xgetnetbyname(tls *TLS, name uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(0) +} + +func Xns_get16(tls *TLS, cp uintptr) (r uint32) { + if __ccgo_strace { + trc("tls=%v cp=%v, (%v:)", tls, cp, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(cp)))< %v", r) }() + } + return uint64(uint32(**(**uint8)(__ccgo_up(cp)))<> int32(8)) + v1 = cp + cp = cp + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(s) +} + +func Xns_put32(tls *TLS, l uint64, cp uintptr) { + if __ccgo_strace { + trc("tls=%v l=%v cp=%v, (%v:)", tls, l, cp, origin(2)) + } + var v1 uintptr + _ = v1 + v1 = cp + cp = cp + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(l >> int32(24)) + v1 = cp + cp = cp + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(l >> int32(16)) + v1 = cp + cp = cp + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(l >> int32(8)) + v1 = cp + cp = cp + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(l) +} + +func Xns_initparse(tls *TLS, msg uintptr, msglen int32, handle uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v msg=%v msglen=%v handle=%v, (%v:)", tls, msg, msglen, handle, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var i, r int32 + _, _ = i, r + (*Tns_msg)(unsafe.Pointer(handle)).F_msg = msg + (*Tns_msg)(unsafe.Pointer(handle)).F_eom = msg + uintptr(msglen) + if msglen < (Int32FromInt32(2)+int32(_ns_s_max))*Int32FromInt32(NS_INT16SZ) { + goto bad + } + msg = msg + uintptr(2) + (*Tns_msg)(unsafe.Pointer(handle)).F_id = uint16(Xns_get16(tls, msg-uintptr(2))) + msg = msg + uintptr(2) + (*Tns_msg)(unsafe.Pointer(handle)).F_flags = uint16(Xns_get16(tls, msg-uintptr(2))) + i = 0 + for { + if !(i < int32(_ns_s_max)) { + break + } + msg = msg + uintptr(2) + **(**Tuint16_t)(__ccgo_up(handle + 20 + uintptr(i)*2)) = uint16(Xns_get16(tls, msg-uintptr(2))) + goto _1 + _1: + ; + i = i + 1 + } + i = 0 + for { + if !(i < int32(_ns_s_max)) { + break + } + if **(**Tuint16_t)(__ccgo_up(handle + 20 + uintptr(i)*2)) != 0 { + **(**uintptr)(__ccgo_up(handle + 32 + uintptr(i)*8)) = msg + r = Xns_skiprr(tls, msg, (*Tns_msg)(unsafe.Pointer(handle)).F_eom, i, Int32FromUint16(**(**Tuint16_t)(__ccgo_up(handle + 20 + uintptr(i)*2)))) + if r < 0 { + return -int32(1) + } + msg = msg + uintptr(r) + } else { + **(**uintptr)(__ccgo_up(handle + 32 + uintptr(i)*8)) = UintptrFromInt32(0) + } + goto _2 + _2: + ; + i = i + 1 + } + if msg != (*Tns_msg)(unsafe.Pointer(handle)).F_eom { + goto bad + } + (*Tns_msg)(unsafe.Pointer(handle)).F_sect = int32(_ns_s_max) + (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum = -int32(1) + (*Tns_msg)(unsafe.Pointer(handle)).F_msg_ptr = UintptrFromInt32(0) + return 0 + goto bad +bad: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EMSGSIZE) + return -int32(1) +} + +func Xns_skiprr(tls *TLS, ptr uintptr, eom uintptr, section Tns_sect, count int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v ptr=%v eom=%v section=%v count=%v, (%v:)", tls, ptr, eom, section, count, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var p uintptr + var r, v1 int32 + _, _, _ = p, r, v1 + p = ptr + for { + v1 = count + count = count - 1 + if !(v1 != 0) { + break + } + r = Xdn_skipname(tls, p, eom) + if r < 0 { + goto bad + } + if int64(r+Int32FromInt32(2)*Int32FromInt32(NS_INT16SZ)) > int64(eom)-int64(p) { + goto bad + } + p = p + uintptr(r+Int32FromInt32(2)*Int32FromInt32(NS_INT16SZ)) + if section != int32(_ns_s_qd) { + if int64(Int32FromInt32(NS_INT32SZ)+Int32FromInt32(NS_INT16SZ)) > int64(eom)-int64(p) { + goto bad + } + p = p + uintptr(NS_INT32SZ) + p = p + uintptr(2) + r = Int32FromUint32(Xns_get16(tls, p-uintptr(2))) + if int64(r) > int64(eom)-int64(p) { + goto bad + } + p = p + uintptr(r) + } + } + return int32(int64(p) - int64(ptr)) + goto bad +bad: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EMSGSIZE) + return -int32(1) +} + +func Xns_parserr(tls *TLS, handle uintptr, section Tns_sect, rrnum int32, rr uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v handle=%v section=%v rrnum=%v rr=%v, (%v:)", tls, handle, section, rrnum, rr, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + var v1 uintptr + _, _ = r, v1 + if section < 0 || section >= int32(_ns_s_max) { + goto bad + } + if section != (*Tns_msg)(unsafe.Pointer(handle)).F_sect { + (*Tns_msg)(unsafe.Pointer(handle)).F_sect = section + (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum = 0 + (*Tns_msg)(unsafe.Pointer(handle)).F_msg_ptr = **(**uintptr)(__ccgo_up(handle + 32 + uintptr(section)*8)) + } + if rrnum == -int32(1) { + rrnum = (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum + } + if rrnum < 0 || rrnum >= Int32FromUint16(**(**Tuint16_t)(__ccgo_up(handle + 20 + uintptr(section)*2))) { + goto bad + } + if rrnum < (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum { + (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum = 0 + (*Tns_msg)(unsafe.Pointer(handle)).F_msg_ptr = **(**uintptr)(__ccgo_up(handle + 32 + uintptr(section)*8)) + } + if rrnum > (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum { + r = Xns_skiprr(tls, (*Tns_msg)(unsafe.Pointer(handle)).F_msg_ptr, (*Tns_msg)(unsafe.Pointer(handle)).F_eom, section, rrnum-(*Tns_msg)(unsafe.Pointer(handle)).F_rrnum) + if r < 0 { + return -int32(1) + } + **(**uintptr)(__ccgo_up(handle + 72)) += uintptr(r) + (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum = rrnum + } + r = Xns_name_uncompress(tls, (*Tns_msg)(unsafe.Pointer(handle)).F_msg, (*Tns_msg)(unsafe.Pointer(handle)).F_eom, (*Tns_msg)(unsafe.Pointer(handle)).F_msg_ptr, rr, uint64(NS_MAXDNAME)) + if r < 0 { + return -int32(1) + } + **(**uintptr)(__ccgo_up(handle + 72)) += uintptr(r) + if int64(Int32FromInt32(2)*Int32FromInt32(NS_INT16SZ)) > int64((*Tns_msg)(unsafe.Pointer(handle)).F_eom)-int64((*Tns_msg)(unsafe.Pointer(handle)).F_msg_ptr) { + goto size + } + v1 = handle + 72 + *(*uintptr)(unsafe.Pointer(v1)) += uintptr(2) + (*Tns_rr)(unsafe.Pointer(rr)).Ftype1 = uint16(Xns_get16(tls, *(*uintptr)(unsafe.Pointer(v1))-uintptr(2))) + v1 = handle + 72 + *(*uintptr)(unsafe.Pointer(v1)) += uintptr(2) + (*Tns_rr)(unsafe.Pointer(rr)).Frr_class = uint16(Xns_get16(tls, *(*uintptr)(unsafe.Pointer(v1))-uintptr(2))) + if section != int32(_ns_s_qd) { + if int64(Int32FromInt32(NS_INT32SZ)+Int32FromInt32(NS_INT16SZ)) > int64((*Tns_msg)(unsafe.Pointer(handle)).F_eom)-int64((*Tns_msg)(unsafe.Pointer(handle)).F_msg_ptr) { + goto size + } + v1 = handle + 72 + *(*uintptr)(unsafe.Pointer(v1)) += uintptr(4) + (*Tns_rr)(unsafe.Pointer(rr)).Fttl = uint32(Xns_get32(tls, *(*uintptr)(unsafe.Pointer(v1))-uintptr(4))) + v1 = handle + 72 + *(*uintptr)(unsafe.Pointer(v1)) += uintptr(2) + (*Tns_rr)(unsafe.Pointer(rr)).Frdlength = uint16(Xns_get16(tls, *(*uintptr)(unsafe.Pointer(v1))-uintptr(2))) + if Int64FromUint16((*Tns_rr)(unsafe.Pointer(rr)).Frdlength) > int64((*Tns_msg)(unsafe.Pointer(handle)).F_eom)-int64((*Tns_msg)(unsafe.Pointer(handle)).F_msg_ptr) { + goto size + } + (*Tns_rr)(unsafe.Pointer(rr)).Frdata = (*Tns_msg)(unsafe.Pointer(handle)).F_msg_ptr + **(**uintptr)(__ccgo_up(handle + 72)) += uintptr((*Tns_rr)(unsafe.Pointer(rr)).Frdlength) + } else { + (*Tns_rr)(unsafe.Pointer(rr)).Fttl = uint32(0) + (*Tns_rr)(unsafe.Pointer(rr)).Frdlength = uint16(0) + (*Tns_rr)(unsafe.Pointer(rr)).Frdata = UintptrFromInt32(0) + } + (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum = (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum + 1 + if (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum > Int32FromUint16(**(**Tuint16_t)(__ccgo_up(handle + 20 + uintptr(section)*2))) { + (*Tns_msg)(unsafe.Pointer(handle)).F_sect = section + int32(1) + if (*Tns_msg)(unsafe.Pointer(handle)).F_sect == int32(_ns_s_max) { + (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum = -int32(1) + (*Tns_msg)(unsafe.Pointer(handle)).F_msg_ptr = UintptrFromInt32(0) + } else { + (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum = 0 + } + } + return 0 + goto bad +bad: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENODEV) + return -int32(1) + goto size +size: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EMSGSIZE) + return -int32(1) +} + +func Xns_name_uncompress(tls *TLS, msg uintptr, eom uintptr, src uintptr, dst uintptr, dstsiz Tsize_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v msg=%v eom=%v src=%v dst=%v dstsiz=%v, (%v:)", tls, msg, eom, src, dst, dstsiz, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + r = Xdn_expand(tls, msg, eom, src, dst, Int32FromUint64(dstsiz)) + if r < 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EMSGSIZE) + } + return r +} + +func Xntohl(tls *TLS, n Tuint32_t) (r Tuint32_t) { + if __ccgo_strace { + trc("tls=%v n=%v, (%v:)", tls, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var u struct { + Fc [0]uint8 + Fi int32 + } + var v1 uint32 + var v2, v3 Tuint32_t + _, _, _, _ = u, v1, v2, v3 + u = *(*struct { + Fc [0]uint8 + Fi int32 + })(unsafe.Pointer(&struct{ f int32 }{f: int32(1)})) + if *(*uint8)(unsafe.Pointer(&u)) != 0 { + v2 = n + v3 = v2>>int32(24) | v2>>int32(8)&uint32(0xff00) | v2< %v", r) }() + } + var u struct { + Fc [0]uint8 + Fi int32 + } + var v1 int32 + var v2, v3 Tuint16_t + _, _, _, _ = u, v1, v2, v3 + u = *(*struct { + Fc [0]uint8 + Fi int32 + })(unsafe.Pointer(&struct{ f int32 }{f: int32(1)})) + if *(*uint8)(unsafe.Pointer(&u)) != 0 { + v2 = n + v3 = Uint16FromInt32(Int32FromUint16(v2)<>int32(8)) + goto _4 + _4: + v1 = Int32FromUint16(v3) + } else { + v1 = Int32FromUint16(n) + } + return Uint16FromInt32(v1) +} + +/* do we really need all these?? */ + +var _idx int32 +var _protos = [239]uint8{0, 'i', 'p', 0, 1, 'i', 'c', 'm', 'p', 0, 2, 'i', 'g', 'm', 'p', 0, 3, 'g', 'g', 'p', 0, 4, 'i', 'p', 'e', 'n', 'c', 'a', 'p', 0, 5, 's', 't', 0, 6, 't', 'c', 'p', 0, 8, 'e', 'g', 'p', 0, 12, 'p', 'u', 'p', 0, 17, 'u', 'd', 'p', 0, 20, 'h', 'm', 'p', 0, 22, 'x', 'n', 's', '-', 'i', 'd', 'p', 0, 27, 'r', 'd', 'p', 0, 29, 'i', 's', 'o', '-', 't', 'p', '4', 0, '$', 'x', 't', 'p', 0, '%', 'd', 'd', 'p', 0, '&', 'i', 'd', 'p', 'r', '-', 'c', 'm', 't', 'p', 0, ')', 'i', 'p', 'v', '6', 0, '+', 'i', 'p', 'v', '6', '-', 'r', 'o', 'u', 't', 'e', 0, ',', 'i', 'p', 'v', '6', '-', 'f', 'r', 'a', 'g', 0, '-', 'i', 'd', 'r', 'p', 0, '.', 'r', 's', 'v', 'p', 0, '/', 'g', 'r', 'e', 0, '2', 'e', 's', 'p', 0, '3', 'a', 'h', 0, '9', 's', 'k', 'i', 'p', 0, ':', 'i', 'p', 'v', '6', '-', 'i', 'c', 'm', 'p', 0, ';', 'i', 'p', 'v', '6', '-', 'n', 'o', 'n', 'x', 't', 0, '<', 'i', 'p', 'v', '6', '-', 'o', 'p', 't', 's', 0, 'I', 'r', 's', 'p', 'f', 0, 'Q', 'v', 'm', 't', 'p', 0, 'Y', 'o', 's', 'p', 'f', 0, '^', 'i', 'p', 'i', 'p', 0, 'b', 'e', 'n', 'c', 'a', 'p', 0, 'g', 'p', 'i', 'm', 0, 255, 'r', 'a', 'w'} + +func Xendprotoent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + _idx = 0 +} + +func Xsetprotoent(tls *TLS, stayopen int32) { + if __ccgo_strace { + trc("tls=%v stayopen=%v, (%v:)", tls, stayopen, origin(2)) + } + _idx = 0 +} + +func Xgetprotoent(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + if Uint64FromInt32(_idx) >= uint64(239) { + return UintptrFromInt32(0) + } + _p.Fp_proto = Int32FromUint8(_protos[_idx]) + _p.Fp_name = uintptr(unsafe.Pointer(&_protos)) + uintptr(_idx+int32(1)) + _p.Fp_aliases = uintptr(unsafe.Pointer(&_aliases)) + _idx = Int32FromUint64(uint64(_idx) + (_strlen(tls, _p.Fp_name) + Uint64FromInt32(2))) + return uintptr(unsafe.Pointer(&_p)) +} + +var _p Tprotoent + +var _aliases uintptr + +func Xgetprotobyname(tls *TLS, name uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + var p uintptr + _ = p + Xendprotoent(tls) + for cond := true; cond; cond = p != 0 && Xstrcmp(tls, name, (*Tprotoent)(unsafe.Pointer(p)).Fp_name) != 0 { + p = Xgetprotoent(tls) + } + return p +} + +func Xgetprotobynumber(tls *TLS, num int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v num=%v, (%v:)", tls, num, origin(2)) + defer func() { trc("-> %v", r) }() + } + var p uintptr + _ = p + Xendprotoent(tls) + for cond := true; cond; cond = p != 0 && (*Tprotoent)(unsafe.Pointer(p)).Fp_proto != num { + p = Xgetprotoent(tls) + } + return p +} + +func Xrecv(tls *TLS, fd int32, buf uintptr, len1 Tsize_t, flags int32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v len1=%v flags=%v, (%v:)", tls, fd, buf, len1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xrecvfrom(tls, fd, buf, len1, flags, uintptr(0), uintptr(0)) +} + +func Xrecvfrom(tls *TLS, fd int32, buf uintptr, len1 Tsize_t, flags int32, addr uintptr, alen uintptr) (r1 Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v len1=%v flags=%v addr=%v alen=%v, (%v:)", tls, fd, buf, len1, flags, addr, alen, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(96) + defer tls.Free(96) + var r, v10 int64 + var v1, v2, v3 int32 + var v4, v5, v6, v7, v8, v9 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _, _, _ = r, v1, v10, v2, v3, v4, v5, v6, v7, v8, v9 + v1 = int32(SYS_recvfrom) + v2 = int32(__SC_recvfrom) + v3 = int32(1) + v4 = int64(fd) + v5 = int64(buf) + v6 = Int64FromUint64(len1) + v7 = int64(flags) + v8 = int64(addr) + v9 = int64(alen) + if v3 != 0 { + r = ___syscall_cp(tls, int64(v1), v4, v5, v6, v7, v8, v9) + } else { + r = X__syscall6(tls, int64(v1), v4, v5, v6, v7, v8, v9) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v10 = r + goto _11 + } + if v3 != 0 { + *(*[6]int64)(unsafe.Pointer(bp)) = [6]int64{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = ___syscall_cp(tls, int64(SYS_socketcall), int64(v2), int64(bp), 0, 0, 0, 0) + } else { + *(*[6]int64)(unsafe.Pointer(bp + 48)) = [6]int64{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = X__syscall2(tls, int64(SYS_socketcall), int64(v2), int64(bp+48)) + } + v10 = r + goto _11 +_11: + return X__syscall_ret(tls, Uint64FromInt64(v10)) +} + +func Xrecvmmsg(tls *TLS, fd int32, msgvec uintptr, vlen uint32, flags uint32, timeout uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v msgvec=%v vlen=%v flags=%v timeout=%v, (%v:)", tls, fd, msgvec, vlen, flags, timeout, origin(2)) + defer func() { trc("-> %v", r) }() + } + var i uint32 + var mh uintptr + var v2 int32 + _, _, _ = i, mh, v2 + mh = msgvec + i = vlen + for { + if !(i != 0) { + break + } + v2 = Int32FromInt32(0) + (*Tmmsghdr)(unsafe.Pointer(mh)).Fmsg_hdr.F__pad2 = v2 + (*Tmmsghdr)(unsafe.Pointer(mh)).Fmsg_hdr.F__pad1 = v2 + goto _1 + _1: + ; + i = i - 1 + mh += 64 + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_recvmmsg), int64(fd), int64(msgvec), Int64FromUint32(vlen), Int64FromUint32(flags), int64(timeout), 0)))) +} + +func X__convert_scm_timestamps(tls *TLS, msg uintptr, csize Tsocklen_t) { + if __ccgo_strace { + trc("tls=%v msg=%v csize=%v, (%v:)", tls, msg, csize, origin(2)) + } + bp := tls.Alloc(32) + defer tls.Free(32) + var cmsg, last, v2 uintptr + var type1 int32 + var _ /* tmp at bp+0 */ int64 + var _ /* tvts at bp+8 */ [2]int64 + _, _, _, _ = cmsg, last, type1, v2 + if true { + return + } + if !((*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_control != 0) || !((*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_controllen != 0) { + return + } + last = uintptr(0) + type1 = 0 + if uint64((*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_controllen) >= uint64(16) { + v2 = (*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_control + } else { + v2 = UintptrFromInt32(0) + } + cmsg = v2 + for { + if !(cmsg != 0) { + break + } + if (*Tcmsghdr)(unsafe.Pointer(cmsg)).Fcmsg_level == int32(SOL_SOCKET) { + switch (*Tcmsghdr)(unsafe.Pointer(cmsg)).Fcmsg_type { + case int32(SO_TIMESTAMP_OLD): + goto _3 + case int32(SO_TIMESTAMPNS_OLD): + goto _4 + } + goto _5 + _3: + ; + if type1 != 0 { + goto _5 + } + type1 = int32(SO_TIMESTAMP) + goto common + _4: + ; + type1 = int32(SO_TIMESTAMPNS) + goto common + common: + ; + Xmemcpy(tls, bp, cmsg+UintptrFromInt32(1)*16, uint64(8)) + (**(**[2]int64)(__ccgo_up(bp + 8)))[0] = int64(**(**int64)(__ccgo_up(bp))) + Xmemcpy(tls, bp, cmsg+UintptrFromInt32(1)*16+uintptr(8), uint64(8)) + (**(**[2]int64)(__ccgo_up(bp + 8)))[int32(1)] = int64(**(**int64)(__ccgo_up(bp))) + goto _5 + _5: + } + last = cmsg + goto _1 + _1: + ; + if uint64((*Tcmsghdr)(unsafe.Pointer(cmsg)).Fcmsg_len) < uint64(16) || (uint64((*Tcmsghdr)(unsafe.Pointer(cmsg)).Fcmsg_len)+uint64(8)-uint64(1))&Uint64FromInt64(^Int64FromUint64(Uint64FromInt64(8)-Uint64FromInt32(1)))+uint64(16) >= Uint64FromInt64(int64((*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_control+uintptr((*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_controllen))-int64(cmsg)) { + v2 = uintptr(0) + } else { + v2 = cmsg + uintptr((uint64((*Tcmsghdr)(unsafe.Pointer(cmsg)).Fcmsg_len)+Uint64FromInt64(8)-Uint64FromInt32(1))&Uint64FromInt64(^Int64FromUint64(Uint64FromInt64(8)-Uint64FromInt32(1)))) + } + cmsg = v2 + } + if !(last != 0) || !(type1 != 0) { + return + } + if (Uint64FromInt64(16)+Uint64FromInt64(8)-Uint64FromInt32(1)) & ^(Uint64FromInt64(8)-Uint64FromInt32(1)) + (Uint64FromInt64(16)+Uint64FromInt64(8)-Uint64FromInt32(1)) & ^(Uint64FromInt64(8)-Uint64FromInt32(1)) > uint64(csize-(*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_controllen) { + **(**int32)(__ccgo_up(msg + 48)) |= int32(MSG_CTRUNC) + return + } + v2 = msg + 40 + *(*Tsocklen_t)(unsafe.Pointer(v2)) = Tsocklen_t(uint64(*(*Tsocklen_t)(unsafe.Pointer(v2))) + ((Uint64FromInt64(16)+Uint64FromInt64(8)-Uint64FromInt32(1)) & ^(Uint64FromInt64(8)-Uint64FromInt32(1)) + (Uint64FromInt64(16)+Uint64FromInt64(8)-Uint64FromInt32(1)) & ^(Uint64FromInt64(8)-Uint64FromInt32(1)))) + if uint64((*Tcmsghdr)(unsafe.Pointer(last)).Fcmsg_len) < uint64(16) || (uint64((*Tcmsghdr)(unsafe.Pointer(last)).Fcmsg_len)+uint64(8)-uint64(1))&Uint64FromInt64(^Int64FromUint64(Uint64FromInt64(8)-Uint64FromInt32(1)))+uint64(16) >= Uint64FromInt64(int64((*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_control+uintptr((*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_controllen))-int64(last)) { + v2 = uintptr(0) + } else { + v2 = last + uintptr((uint64((*Tcmsghdr)(unsafe.Pointer(last)).Fcmsg_len)+Uint64FromInt64(8)-Uint64FromInt32(1))&Uint64FromInt64(^Int64FromUint64(Uint64FromInt64(8)-Uint64FromInt32(1)))) + } + cmsg = v2 + (*Tcmsghdr)(unsafe.Pointer(cmsg)).Fcmsg_level = int32(SOL_SOCKET) + (*Tcmsghdr)(unsafe.Pointer(cmsg)).Fcmsg_type = type1 + (*Tcmsghdr)(unsafe.Pointer(cmsg)).Fcmsg_len = uint32((Uint64FromInt64(16)+Uint64FromInt64(8)-Uint64FromInt32(1)) & ^(Uint64FromInt64(8)-Uint64FromInt32(1)) + Uint64FromInt64(16)) + Xmemcpy(tls, cmsg+UintptrFromInt32(1)*16, bp+8, uint64(16)) +} + +func Xrecvmsg(tls *TLS, fd int32, msg uintptr, flags int32) (r2 Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v msg=%v flags=%v, (%v:)", tls, fd, msg, flags, origin(2)) + defer func() { trc("-> %v", r2) }() + } + bp := tls.Alloc(160) + defer tls.Free(160) + var orig uintptr + var orig_controllen Tsocklen_t + var r, v11 int64 + var r1 Tssize_t + var v1, v2, v3 int32 + var v10, v5, v6, v7, v8, v9 Tsyscall_arg_t + var _ /* h at bp+96 */ Tmsghdr + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = orig, orig_controllen, r, r1, v1, v10, v11, v2, v3, v5, v6, v7, v8, v9 + orig_controllen = (*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_controllen + orig = msg + if msg != 0 { + **(**Tmsghdr)(__ccgo_up(bp + 96)) = **(**Tmsghdr)(__ccgo_up(msg)) + v1 = Int32FromInt32(0) + (**(**Tmsghdr)(__ccgo_up(bp + 96))).F__pad2 = v1 + (**(**Tmsghdr)(__ccgo_up(bp + 96))).F__pad1 = v1 + msg = bp + 96 + } + v1 = int32(SYS_recvmsg) + v2 = int32(__SC_recvmsg) + v3 = int32(1) + v5 = int64(fd) + v6 = int64(msg) + v7 = int64(flags) + v8 = int64(Int32FromInt32(0)) + v9 = int64(Int32FromInt32(0)) + v10 = int64(Int32FromInt32(0)) + if v3 != 0 { + r = ___syscall_cp(tls, int64(v1), v5, v6, v7, v8, v9, v10) + } else { + r = X__syscall6(tls, int64(v1), v5, v6, v7, v8, v9, v10) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v11 = r + goto _12 + } + if v3 != 0 { + *(*[6]int64)(unsafe.Pointer(bp)) = [6]int64{ + 0: v5, + 1: v6, + 2: v7, + 3: v8, + 4: v9, + 5: v10, + } + r = ___syscall_cp(tls, int64(SYS_socketcall), int64(v2), int64(bp), 0, 0, 0, 0) + } else { + *(*[6]int64)(unsafe.Pointer(bp + 48)) = [6]int64{ + 0: v5, + 1: v6, + 2: v7, + 3: v8, + 4: v9, + 5: v10, + } + r = X__syscall2(tls, int64(SYS_socketcall), int64(v2), int64(bp+48)) + } + v11 = r + goto _12 +_12: + r1 = X__syscall_ret(tls, Uint64FromInt64(v11)) + if r1 >= 0 { + X__convert_scm_timestamps(tls, msg, orig_controllen) + } + if orig != 0 { + **(**Tmsghdr)(__ccgo_up(orig)) = **(**Tmsghdr)(__ccgo_up(bp + 96)) + } + return r1 +} + +func Xres_init(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return 0 +} + +func X__res_mkquery(tls *TLS, op int32, dname uintptr, class int32, type1 int32, data uintptr, datalen int32, newrr uintptr, buf uintptr, buflen int32) (r int32) { + if __ccgo_strace { + trc("tls=%v op=%v dname=%v class=%v type1=%v data=%v datalen=%v newrr=%v buf=%v buflen=%v, (%v:)", tls, op, dname, class, type1, data, datalen, newrr, buf, buflen, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(304) + defer tls.Free(304) + var i, id, j, n int32 + var l Tsize_t + var _ /* q at bp+0 */ [280]uint8 + var _ /* ts at bp+280 */ Ttimespec + _, _, _, _, _ = i, id, j, l, n + l = Xstrnlen(tls, dname, uint64(255)) + if l != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(dname + uintptr(l-uint64(1))))) == int32('.') { + l = l - 1 + } + if l != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(dname + uintptr(l-uint64(1))))) == int32('.') { + return -int32(1) + } + n = Int32FromUint64(uint64(17) + l + BoolUint64(!!(l != 0))) + if l > uint64(253) || buflen < n || Uint32FromInt32(op) > uint32(15) || Uint32FromInt32(class) > uint32(255) || Uint32FromInt32(type1) > uint32(255) { + return -int32(1) + } + /* Construct query template - ID will be filled later */ + Xmemset(tls, bp, 0, Uint64FromInt32(n)) + (**(**[280]uint8)(__ccgo_up(bp)))[int32(2)] = Uint8FromInt32(op*int32(8) + int32(1)) + (**(**[280]uint8)(__ccgo_up(bp)))[int32(3)] = uint8(32) /* AD */ + (**(**[280]uint8)(__ccgo_up(bp)))[int32(5)] = uint8(1) + Xmemcpy(tls, bp+uintptr(13), dname, l) + i = int32(13) + for { + if !((**(**[280]uint8)(__ccgo_up(bp)))[i] != 0) { + break + } + j = i + for { + if !((**(**[280]uint8)(__ccgo_up(bp)))[j] != 0 && Int32FromUint8((**(**[280]uint8)(__ccgo_up(bp)))[j]) != int32('.')) { + break + } + goto _2 + _2: + ; + j = j + 1 + } + if Uint32FromInt32(j-i)-uint32(1) > uint32(62) { + return -int32(1) + } + (**(**[280]uint8)(__ccgo_up(bp)))[i-int32(1)] = Uint8FromInt32(j - i) + goto _1 + _1: + ; + i = j + int32(1) + } + (**(**[280]uint8)(__ccgo_up(bp)))[i+int32(1)] = Uint8FromInt32(type1) + (**(**[280]uint8)(__ccgo_up(bp)))[i+int32(3)] = Uint8FromInt32(class) + /* Make a reasonably unpredictable id */ + Xclock_gettime(tls, CLOCK_REALTIME, bp+280) + id = Int32FromUint64((Uint64FromInt64((**(**Ttimespec)(__ccgo_up(bp + 280))).Ftv_nsec) + Uint64FromInt64((**(**Ttimespec)(__ccgo_up(bp + 280))).Ftv_nsec)/uint64(65536)) & uint64(0xffff)) + (**(**[280]uint8)(__ccgo_up(bp)))[0] = Uint8FromInt32(id / int32(256)) + (**(**[280]uint8)(__ccgo_up(bp)))[int32(1)] = Uint8FromInt32(id) + Xmemcpy(tls, buf, bp, Uint64FromInt32(n)) + return n +} + +func Xres_mkquery(tls *TLS, op int32, dname uintptr, class int32, type1 int32, data uintptr, datalen int32, newrr uintptr, buf uintptr, buflen int32) (r int32) { + if __ccgo_strace { + trc("tls=%v op=%v dname=%v class=%v type1=%v data=%v datalen=%v newrr=%v buf=%v buflen=%v, (%v:)", tls, op, dname, class, type1, data, datalen, newrr, buf, buflen, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__res_mkquery(tls, op, dname, class, type1, data, datalen, newrr, buf, buflen) +} + +const POLLERR = 8 +const POLLHUP = 16 +const POLLIN = 1 +const POLLMSG = 1024 +const POLLNVAL = 32 +const POLLOUT = 4 +const POLLPRI = 2 +const POLLRDBAND = 128 +const POLLRDHUP = 8192 +const POLLRDNORM = 64 +const POLLWRBAND = 512 +const POLLWRNORM = 256 +const TCP_CC_INFO = 26 +const TCP_CLOSE = 7 +const TCP_CLOSE_WAIT = 8 +const TCP_CLOSING = 11 +const TCP_CM_INQ = 36 +const TCP_CONGESTION = 13 +const TCP_CORK = 3 +const TCP_DEFER_ACCEPT = 9 +const TCP_ESTABLISHED = 1 +const TCP_FASTOPEN = 23 +const TCP_FASTOPEN_CONNECT = 30 +const TCP_FASTOPEN_KEY = 33 +const TCP_FASTOPEN_NO_COOKIE = 34 +const TCP_FIN_WAIT1 = 4 +const TCP_FIN_WAIT2 = 5 +const TCP_INFO = 11 +const TCP_INQ = 36 +const TCP_KEEPCNT = 6 +const TCP_KEEPIDLE = 4 +const TCP_KEEPINTVL = 5 +const TCP_LAST_ACK = 9 +const TCP_LINGER2 = 8 +const TCP_LISTEN = 10 +const TCP_MAXSEG = 2 +const TCP_MD5SIG = 14 +const TCP_MD5SIG_EXT = 32 +const TCP_NODELAY = 1 +const TCP_NOTSENT_LOWAT = 25 +const TCP_QUEUE_SEQ = 21 +const TCP_QUICKACK = 12 +const TCP_REPAIR = 19 +const TCP_REPAIR_OPTIONS = 22 +const TCP_REPAIR_QUEUE = 20 +const TCP_REPAIR_WINDOW = 29 +const TCP_SAVED_SYN = 28 +const TCP_SAVE_SYN = 27 +const TCP_SYNCNT = 7 +const TCP_SYN_RECV = 3 +const TCP_SYN_SENT = 2 +const TCP_THIN_DUPACK = 17 +const TCP_THIN_LINEAR_TIMEOUTS = 16 +const TCP_TIMESTAMP = 24 +const TCP_TIME_WAIT = 6 +const TCP_TX_DELAY = 37 +const TCP_ULP = 31 +const TCP_USER_TIMEOUT = 18 +const TCP_WINDOW_CLAMP = 10 +const TCP_ZEROCOPY_RECEIVE = 35 + +const _TCP_NLA_PAD = 0 +const _TCP_NLA_BUSY = 1 +const _TCP_NLA_RWND_LIMITED = 2 +const _TCP_NLA_SNDBUF_LIMITED = 3 +const _TCP_NLA_DATA_SEGS_OUT = 4 +const _TCP_NLA_TOTAL_RETRANS = 5 +const _TCP_NLA_PACING_RATE = 6 +const _TCP_NLA_DELIVERY_RATE = 7 +const _TCP_NLA_SND_CWND = 8 +const _TCP_NLA_REORDERING = 9 +const _TCP_NLA_MIN_RTT = 10 +const _TCP_NLA_RECUR_RETRANS = 11 +const _TCP_NLA_DELIVERY_RATE_APP_LMT = 12 +const _TCP_NLA_SNDQ_SIZE = 13 +const _TCP_NLA_CA_STATE = 14 +const _TCP_NLA_SND_SSTHRESH = 15 +const _TCP_NLA_DELIVERED = 16 +const _TCP_NLA_DELIVERED_CE = 17 +const _TCP_NLA_BYTES_SENT = 18 +const _TCP_NLA_BYTES_RETRANS = 19 +const _TCP_NLA_DSACK_DUPS = 20 +const _TCP_NLA_REORD_SEEN = 21 +const _TCP_NLA_SRTT = 22 +const _TCP_NLA_TIMEOUT_REHASH = 23 +const _TCP_NLA_BYTES_NOTSENT = 24 +const _TCP_NLA_EDT = 25 +const _TCP_NLA_TTL = 26 + +type Tnfds_t = uint64 + +type Tpollfd = struct { + Ffd int32 + Fevents int16 + Frevents int16 +} + +func _cleanup(tls *TLS, p uintptr) { + var i int32 + var pfd uintptr + _, _ = i, pfd + pfd = p + i = 0 + for { + if !((**(**Tpollfd)(__ccgo_up(pfd + uintptr(i)*8))).Ffd >= -int32(1)) { + break + } + if (**(**Tpollfd)(__ccgo_up(pfd + uintptr(i)*8))).Ffd >= 0 { + X__syscall1(tls, int64(SYS_close), int64((**(**Tpollfd)(__ccgo_up(pfd + uintptr(i)*8))).Ffd)) + } + goto _1 + _1: + ; + i = i + 1 + } +} + +func _mtime(tls *TLS) (r uint64) { + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* ts at bp+0 */ Ttimespec + if Xclock_gettime(tls, int32(CLOCK_MONOTONIC), bp) < 0 && **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(ENOSYS) { + Xclock_gettime(tls, CLOCK_REALTIME, bp) + } + return Uint64FromInt64((**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec)*uint64(1000) + Uint64FromInt64((**(**Ttimespec)(__ccgo_up(bp))).Ftv_nsec/int64(1000000)) +} + +func _start_tcp(tls *TLS, pfd uintptr, family int32, sa uintptr, sl Tsocklen_t, q uintptr, ql int32) (r1 int32) { + bp := tls.Alloc(96) + defer tls.Free(96) + var fd, r int32 + var _ /* mh at bp+40 */ Tmsghdr + _, _ = fd, r + *(*[2]Tuint8_t)(unsafe.Pointer(bp + 32)) = [2]Tuint8_t{ + 0: Uint8FromInt32(ql >> int32(8)), + 1: Uint8FromInt32(ql), + } + *(*[2]Tiovec)(unsafe.Pointer(bp)) = [2]Tiovec{ + 0: { + Fiov_base: bp + 32, + Fiov_len: uint64(2), + }, + 1: { + Fiov_base: q, + Fiov_len: Uint64FromInt32(ql), + }, + } + **(**Tmsghdr)(__ccgo_up(bp + 40)) = Tmsghdr{ + Fmsg_name: sa, + Fmsg_namelen: sl, + Fmsg_iov: bp, + Fmsg_iovlen: int32(2), + } + fd = Xsocket(tls, family, Int32FromInt32(SOCK_STREAM)|Int32FromInt32(SOCK_CLOEXEC)|Int32FromInt32(SOCK_NONBLOCK), 0) + (*Tpollfd)(unsafe.Pointer(pfd)).Ffd = fd + (*Tpollfd)(unsafe.Pointer(pfd)).Fevents = int16(POLLOUT) + *(*int32)(unsafe.Pointer(bp + 36)) = int32(1) + if !(Xsetsockopt(tls, fd, int32(IPPROTO_TCP), int32(TCP_FASTOPEN_CONNECT), bp+36, uint32(4)) != 0) { + r = int32(Xsendmsg(tls, fd, bp+40, Int32FromInt32(MSG_FASTOPEN)|Int32FromInt32(MSG_NOSIGNAL))) + if r == ql+int32(2) { + (*Tpollfd)(unsafe.Pointer(pfd)).Fevents = int16(POLLIN) + } + if r >= 0 { + return r + } + if **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EINPROGRESS) { + return 0 + } + } + r = Xconnect(tls, fd, sa, sl) + if !(r != 0) || **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EINPROGRESS) { + return 0 + } + Xclose(tls, fd) + (*Tpollfd)(unsafe.Pointer(pfd)).Ffd = -int32(1) + return -int32(1) +} + +func _step_mh(tls *TLS, mh uintptr, n Tsize_t) { + /* Adjust iovec in msghdr to skip first n bytes. */ + for (*Tmsghdr)(unsafe.Pointer(mh)).Fmsg_iovlen != 0 && n >= (*Tiovec)(unsafe.Pointer((*Tmsghdr)(unsafe.Pointer(mh)).Fmsg_iov)).Fiov_len { + n = n - (*Tiovec)(unsafe.Pointer((*Tmsghdr)(unsafe.Pointer(mh)).Fmsg_iov)).Fiov_len + (*Tmsghdr)(unsafe.Pointer(mh)).Fmsg_iov += 16 + (*Tmsghdr)(unsafe.Pointer(mh)).Fmsg_iovlen = (*Tmsghdr)(unsafe.Pointer(mh)).Fmsg_iovlen - 1 + } + if !((*Tmsghdr)(unsafe.Pointer(mh)).Fmsg_iovlen != 0) { + return + } + (*Tiovec)(unsafe.Pointer((*Tmsghdr)(unsafe.Pointer(mh)).Fmsg_iov)).Fiov_base = (*Tiovec)(unsafe.Pointer((*Tmsghdr)(unsafe.Pointer(mh)).Fmsg_iov)).Fiov_base + uintptr(n) + **(**Tsize_t)(__ccgo_up((*Tmsghdr)(unsafe.Pointer(mh)).Fmsg_iov + 8)) -= n +} + +/* Internal contract for __res_msend[_rc]: asize must be >=512, nqueries + * must be sufficiently small to be safe as VLA size. In practice it's + * either 1 or 2, anyway. */ + +func X__res_msend_rc(tls *TLS, nqueries int32, queries uintptr, qlens uintptr, answers uintptr, alens uintptr, asize int32, conf uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v nqueries=%v queries=%v qlens=%v answers=%v alens=%v asize=%v conf=%v, (%v:)", tls, nqueries, queries, qlens, answers, alens, asize, conf, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(400) + defer tls.Free(400) + var alen, attempts, family, fd, i, j, next, nns, r, rcode, retry_interval, rlen, servfail_retry, timeout, v6 int32 + var alen_buf, apos, iplit, pfd, qpos uintptr + var sl Tsocklen_t + var t0, t1, t2, v10 uint64 + var v1, v2, v3, v4 t__predefined_size_t + var v18 bool + var _ /* __cb at bp+208 */ t__ptcb + var _ /* cs at bp+200 */ int32 + var _ /* mh at bp+232 */ Tmsghdr + var _ /* mh at bp+288 */ Tmsghdr + var _ /* mh at bp+344 */ Tmsghdr + var _ /* ns at bp+116 */ [3]struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + } + var _ /* sa at bp+88 */ struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = alen, alen_buf, apos, attempts, family, fd, i, iplit, j, next, nns, pfd, qpos, r, rcode, retry_interval, rlen, servfail_retry, sl, t0, t1, t2, timeout, v1, v10, v18, v2, v3, v4, v6 + defer func() { + Xrealloc(tls, alen_buf, 0) + Xrealloc(tls, apos, 0) + Xrealloc(tls, pfd, 0) + Xrealloc(tls, qpos, 0) + }() + *(*struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + })(unsafe.Pointer(bp + 88)) = struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + }{} + *(*uint16)(unsafe.Pointer(bp + 88)) = uint16(0) + **(**[3]struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + })(__ccgo_up(bp + 116)) = [3]struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + }{} + sl = uint32(16) + nns = 0 + family = int32(PF_INET) + v1 = Uint64FromInt32(nqueries+int32(2)) * 8 + pfd = Xrealloc(tls, pfd, v1) + v2 = Uint64FromInt32(nqueries) * 4 + qpos = Xrealloc(tls, qpos, v2) + v3 = Uint64FromInt32(nqueries) * 4 + apos = Xrealloc(tls, apos, v3) + v4 = Uint64FromInt32(nqueries) * 2 + alen_buf = Xrealloc(tls, alen_buf, v4) + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp+200) + timeout = Int32FromUint32(uint32(1000) * (*Tresolvconf)(unsafe.Pointer(conf)).Ftimeout) + attempts = Int32FromUint32((*Tresolvconf)(unsafe.Pointer(conf)).Fattempts) + nns = 0 + for { + if !(Uint32FromInt32(nns) < (*Tresolvconf)(unsafe.Pointer(conf)).Fnns) { + break + } + iplit = conf + uintptr(nns)*28 + if (*Taddress)(unsafe.Pointer(iplit)).Ffamily == int32(PF_INET) { + Xmemcpy(tls, bp+116+uintptr(nns)*28+4, iplit+8, uint64(4)) + (**(**[3]struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + })(__ccgo_up(bp + 116)))[nns].Fsin.Fsin_port = Xhtons(tls, uint16(53)) + (**(**[3]struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + })(__ccgo_up(bp + 116)))[nns].Fsin.Fsin_family = uint16(PF_INET) + } else { + sl = uint32(28) + Xmemcpy(tls, bp+116+uintptr(nns)*28+8, iplit+8, uint64(16)) + (*(*Tsockaddr_in6)(unsafe.Pointer(bp + 116 + uintptr(nns)*28))).Fsin6_port = Xhtons(tls, uint16(53)) + (*(*Tsockaddr_in6)(unsafe.Pointer(bp + 116 + uintptr(nns)*28))).Fsin6_scope_id = (*Taddress)(unsafe.Pointer(iplit)).Fscopeid + v6 = Int32FromInt32(PF_INET6) + family = v6 + (*(*Tsockaddr_in6)(unsafe.Pointer(bp + 116 + uintptr(nns)*28))).Fsin6_family = Uint16FromInt32(v6) + } + goto _5 + _5: + ; + nns = nns + 1 + } + /* Get local address and open/bind a socket */ + fd = Xsocket(tls, family, Int32FromInt32(SOCK_DGRAM)|Int32FromInt32(SOCK_CLOEXEC)|Int32FromInt32(SOCK_NONBLOCK), 0) + /* Handle case where system lacks IPv6 support */ + if fd < 0 && family == int32(PF_INET6) && **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EAFNOSUPPORT) { + i = 0 + for { + if !(i < nns && (**(**Taddress)(__ccgo_up(conf + uintptr(nns)*28))).Ffamily == int32(PF_INET6)) { + break + } + goto _7 + _7: + ; + i = i + 1 + } + if i == nns { + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 200)), uintptr(0)) + return -int32(1) + } + fd = Xsocket(tls, int32(PF_INET), Int32FromInt32(SOCK_DGRAM)|Int32FromInt32(SOCK_CLOEXEC)|Int32FromInt32(SOCK_NONBLOCK), 0) + family = int32(PF_INET) + sl = uint32(16) + } + /* Convert any IPv4 addresses in a mixed environment to v4-mapped */ + if fd >= 0 && family == int32(PF_INET6) { + *(*int32)(unsafe.Pointer(bp)) = 0 + Xsetsockopt(tls, fd, int32(IPPROTO_IPV6), int32(IPV6_V6ONLY), bp, uint32(4)) + i = 0 + for { + if !(i < nns) { + break + } + if Int32FromUint16((**(**[3]struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + })(__ccgo_up(bp + 116)))[i].Fsin.Fsin_family) != int32(PF_INET) { + goto _8 + } + Xmemcpy(tls, bp+116+uintptr(i)*28+8+uintptr(12), bp+116+uintptr(i)*28+4, uint64(4)) + Xmemcpy(tls, bp+116+uintptr(i)*28+8, __ccgo_ts+1069, uint64(12)) + (*(*Tsockaddr_in6)(unsafe.Pointer(bp + 116 + uintptr(i)*28))).Fsin6_family = uint16(PF_INET6) + (*(*Tsockaddr_in6)(unsafe.Pointer(bp + 116 + uintptr(i)*28))).Fsin6_flowinfo = uint32(0) + (*(*Tsockaddr_in6)(unsafe.Pointer(bp + 116 + uintptr(i)*28))).Fsin6_scope_id = uint32(0) + goto _8 + _8: + ; + i = i + 1 + } + } + (**(**struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + })(__ccgo_up(bp + 88))).Fsin.Fsin_family = Uint16FromInt32(family) + if fd < 0 || Xbind(tls, fd, bp+88, sl) < 0 { + if fd >= 0 { + Xclose(tls, fd) + } + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 200)), uintptr(0)) + return -int32(1) + } + /* Past this point, there are no errors. Each individual query will + * yield either no reply (indicated by zero length) or an answer + * packet which is up to the caller to interpret. */ + i = 0 + for { + if !(i < nqueries) { + break + } + (*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), i*8))).Ffd = -int32(1) + goto _9 + _9: + ; + i = i + 1 + } + (*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), nqueries*8))).Ffd = fd + (*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), nqueries*8))).Fevents = int16(POLLIN) + (*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), (nqueries+int32(1))*8))).Ffd = -int32(2) + __pthread_cleanup_push(tls, bp+208, __ccgo_fp(_cleanup), pfd) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 200)), uintptr(0)) + Xmemset(tls, alens, 0, uint64(4)*Uint64FromInt32(nqueries)) + retry_interval = timeout / attempts + next = 0 + v10 = _mtime(tls) + t2 = v10 + t0 = v10 + t1 = t2 - Uint64FromInt32(retry_interval) + for { + if !(t2-t0 < Uint64FromInt32(timeout)) { + break + } + /* This is the loop exit condition: that all queries + * have an accepted answer. */ + i = 0 + for { + if !(i < nqueries && **(**int32)(__ccgo_up(alens + uintptr(i)*4)) > 0) { + break + } + goto _12 + _12: + ; + i = i + 1 + } + if i == nqueries { + break + } + if t2-t1 >= Uint64FromInt32(retry_interval) { + /* Query all configured namservers in parallel */ + i = 0 + for { + if !(i < nqueries) { + break + } + if !(**(**int32)(__ccgo_up(alens + uintptr(i)*4)) != 0) { + j = 0 + for { + if !(j < nns) { + break + } + Xsendto(tls, fd, **(**uintptr)(__ccgo_up(queries + uintptr(i)*8)), Uint64FromInt32(**(**int32)(__ccgo_up(qlens + uintptr(i)*4))), int32(MSG_NOSIGNAL), bp+116+uintptr(j)*28, sl) + goto _14 + _14: + ; + j = j + 1 + } + } + goto _13 + _13: + ; + i = i + 1 + } + t1 = t2 + servfail_retry = int32(2) * nqueries + } + /* Wait for a response, or until time to retry */ + if Xpoll(tls, pfd, Uint64FromInt32(nqueries+int32(1)), Int32FromUint64(t1+Uint64FromInt32(retry_interval)-t2)) <= 0 { + goto _11 + } + for next < nqueries { + *(*[1]Tiovec)(unsafe.Pointer(bp + 8)) = [1]Tiovec{ + 0: { + Fiov_base: **(**uintptr)(__ccgo_up(answers + uintptr(next)*8)), + Fiov_len: Uint64FromInt32(asize), + }, + } + **(**Tmsghdr)(__ccgo_up(bp + 232)) = Tmsghdr{ + Fmsg_name: bp + 88, + Fmsg_namelen: sl, + Fmsg_iov: bp + 8, + Fmsg_iovlen: int32(1), + } + rlen = int32(Xrecvmsg(tls, fd, bp+232, 0)) + if rlen < 0 { + break + } + /* Ignore non-identifiable packets */ + if rlen < int32(4) { + continue + } + /* Ignore replies from addresses we didn't send to */ + j = 0 + for { + if !(j < nns && Xmemcmp(tls, bp+116+uintptr(j)*28, bp+88, uint64(sl)) != 0) { + break + } + goto _15 + _15: + ; + j = j + 1 + } + if j == nns { + continue + } + /* Find which query this answer goes with, if any */ + i = next + for { + if !(i < nqueries && (Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(answers + uintptr(next)*8))))) != Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(queries + uintptr(i)*8))))) || Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(answers + uintptr(next)*8)) + 1))) != Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(queries + uintptr(i)*8)) + 1))))) { + break + } + goto _16 + _16: + ; + i = i + 1 + } + if i == nqueries { + continue + } + if **(**int32)(__ccgo_up(alens + uintptr(i)*4)) != 0 { + continue + } + /* Only accept positive or negative responses; + * retry immediately on server failure, and ignore + * all other codes such as refusal. */ + switch Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(answers + uintptr(next)*8)) + 3))) & Int32FromInt32(15) { + case 0: + fallthrough + case int32(3): + case int32(2): + if v18 = servfail_retry != 0; v18 { + v6 = servfail_retry + servfail_retry = servfail_retry - 1 + } + if v18 && v6 != 0 { + Xsendto(tls, fd, **(**uintptr)(__ccgo_up(queries + uintptr(i)*8)), Uint64FromInt32(**(**int32)(__ccgo_up(qlens + uintptr(i)*4))), int32(MSG_NOSIGNAL), bp+116+uintptr(j)*28, sl) + } + fallthrough + default: + continue + } + /* Store answer in the right slot, or update next + * available temp slot if it's already in place. */ + **(**int32)(__ccgo_up(alens + uintptr(i)*4)) = rlen + if i == next { + for { + if !(next < nqueries && **(**int32)(__ccgo_up(alens + uintptr(next)*4)) != 0) { + break + } + goto _19 + _19: + ; + next = next + 1 + } + } else { + Xmemcpy(tls, **(**uintptr)(__ccgo_up(answers + uintptr(i)*8)), **(**uintptr)(__ccgo_up(answers + uintptr(next)*8)), Uint64FromInt32(rlen)) + } + /* Ignore further UDP if all slots full or TCP-mode */ + if next == nqueries { + (*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), nqueries*8))).Fevents = 0 + } + /* If answer is truncated (TC bit), fallback to TCP */ + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(answers + uintptr(i)*8)) + 2)))&int32(2) != 0 || (**(**Tmsghdr)(__ccgo_up(bp + 232))).Fmsg_flags&int32(MSG_TRUNC) != 0 { + **(**int32)(__ccgo_up(alens + uintptr(i)*4)) = -int32(1) + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), uintptr(0)) + r = _start_tcp(tls, pfd+uintptr(i)*8, family, bp+116+uintptr(j)*28, sl, **(**uintptr)(__ccgo_up(queries + uintptr(i)*8)), **(**int32)(__ccgo_up(qlens + uintptr(i)*4))) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 200)), uintptr(0)) + if r >= 0 { + *(*int32)(unsafe.Add(unsafe.Pointer(qpos), i*4)) = r + *(*int32)(unsafe.Add(unsafe.Pointer(apos), i*4)) = 0 + } + continue + } + } + i = 0 + for { + if !(i < nqueries) { + break + } + if int32((*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), i*8))).Frevents)&int32(POLLOUT) != 0 { + *(*[2]Tuint8_t)(unsafe.Pointer(bp + 52)) = [2]Tuint8_t{ + 0: Uint8FromInt32(**(**int32)(__ccgo_up(qlens + uintptr(i)*4)) >> int32(8)), + 1: Uint8FromInt32(**(**int32)(__ccgo_up(qlens + uintptr(i)*4))), + } + *(*[2]Tiovec)(unsafe.Pointer(bp + 24)) = [2]Tiovec{ + 0: { + Fiov_base: bp + 52, + Fiov_len: uint64(2), + }, + 1: { + Fiov_base: **(**uintptr)(__ccgo_up(queries + uintptr(i)*8)), + Fiov_len: Uint64FromInt32(**(**int32)(__ccgo_up(qlens + uintptr(i)*4))), + }, + } + **(**Tmsghdr)(__ccgo_up(bp + 288)) = Tmsghdr{ + Fmsg_iov: bp + 24, + Fmsg_iovlen: int32(2), + } + _step_mh(tls, bp+288, Uint64FromInt32(*(*int32)(unsafe.Add(unsafe.Pointer(qpos), i*4)))) + r = int32(Xsendmsg(tls, (*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), i*8))).Ffd, bp+288, int32(MSG_NOSIGNAL))) + if r < 0 { + goto out + } + **(**int32)(__ccgo_up(qpos + uintptr(i)*4)) += r + if *(*int32)(unsafe.Add(unsafe.Pointer(qpos), i*4)) == **(**int32)(__ccgo_up(qlens + uintptr(i)*4))+int32(2) { + (*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), i*8))).Fevents = int16(POLLIN) + } + } + goto _20 + _20: + ; + i = i + 1 + } + i = 0 + for { + if !(i < nqueries) { + break + } + if int32((*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), i*8))).Frevents)&int32(POLLIN) != 0 { + *(*[2]Tiovec)(unsafe.Pointer(bp + 56)) = [2]Tiovec{ + 0: { + Fiov_base: alen_buf + uintptr(i)*2, + Fiov_len: uint64(2), + }, + 1: { + Fiov_base: **(**uintptr)(__ccgo_up(answers + uintptr(i)*8)), + Fiov_len: Uint64FromInt32(asize), + }, + } + **(**Tmsghdr)(__ccgo_up(bp + 344)) = Tmsghdr{ + Fmsg_iov: bp + 56, + Fmsg_iovlen: int32(2), + } + _step_mh(tls, bp+344, Uint64FromInt32(*(*int32)(unsafe.Add(unsafe.Pointer(apos), i*4)))) + r = int32(Xrecvmsg(tls, (*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), i*8))).Ffd, bp+344, 0)) + if r <= 0 { + goto out + } + **(**int32)(__ccgo_up(apos + uintptr(i)*4)) += r + if *(*int32)(unsafe.Add(unsafe.Pointer(apos), i*4)) < int32(2) { + goto _21 + } + alen = Int32FromUint8(**(**uint8)(__ccgo_up(alen_buf + uintptr(i)*2)))*int32(256) + Int32FromUint8(**(**uint8)(__ccgo_up(alen_buf + uintptr(i)*2 + 1))) + if alen < int32(13) { + goto out + } + if *(*int32)(unsafe.Add(unsafe.Pointer(apos), i*4)) < alen+int32(2) && *(*int32)(unsafe.Add(unsafe.Pointer(apos), i*4)) < asize+int32(2) { + goto _21 + } + rcode = Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(answers + uintptr(i)*8)) + 3))) & int32(15) + if rcode != 0 && rcode != int32(3) { + goto out + } + /* Storing the length here commits the accepted answer. + * Immediately close TCP socket so as not to consume + * resources we no longer need. */ + **(**int32)(__ccgo_up(alens + uintptr(i)*4)) = alen + X__syscall1(tls, int64(SYS_close), int64((*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), i*8))).Ffd)) + (*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), i*8))).Ffd = -int32(1) + } + goto _21 + _21: + ; + i = i + 1 + } + goto _11 + _11: + ; + t2 = _mtime(tls) + } + goto out +out: + ; + __pthread_cleanup_pop(tls, bp+208, int32(1)) + /* Disregard any incomplete TCP results */ + i = 0 + for { + if !(i < nqueries) { + break + } + if **(**int32)(__ccgo_up(alens + uintptr(i)*4)) < 0 { + **(**int32)(__ccgo_up(alens + uintptr(i)*4)) = 0 + } + goto _22 + _22: + ; + i = i + 1 + } + return 0 +} + +func X__res_msend(tls *TLS, nqueries int32, queries uintptr, qlens uintptr, answers uintptr, alens uintptr, asize int32) (r int32) { + if __ccgo_strace { + trc("tls=%v nqueries=%v queries=%v qlens=%v answers=%v alens=%v asize=%v, (%v:)", tls, nqueries, queries, qlens, answers, alens, asize, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(112) + defer tls.Free(112) + var _ /* conf at bp+0 */ Tresolvconf + if X__get_resolv_conf(tls, bp, uintptr(0), uint64(0)) < 0 { + return -int32(1) + } + return X__res_msend_rc(tls, nqueries, queries, qlens, answers, alens, asize, bp) +} + +func X__res_send(tls *TLS, _msg uintptr, _msglen int32, _answer uintptr, _anslen int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v _msg=%v _msglen=%v _answer=%v _anslen=%v, (%v:)", tls, _msg, _msglen, _answer, _anslen, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(544) + defer tls.Free(544) + *(*uintptr)(unsafe.Pointer(bp)) = _msg + *(*int32)(unsafe.Pointer(bp + 8)) = _msglen + *(*uintptr)(unsafe.Pointer(bp + 16)) = _answer + *(*int32)(unsafe.Pointer(bp + 24)) = _anslen + var r, v1 int32 + var _ /* buf at bp+28 */ [512]uint8 + _, _ = r, v1 + if **(**int32)(__ccgo_up(bp + 24)) < int32(512) { + r = X__res_send(tls, **(**uintptr)(__ccgo_up(bp)), **(**int32)(__ccgo_up(bp + 8)), bp+28, int32(512)) + if r >= 0 { + if r < **(**int32)(__ccgo_up(bp + 24)) { + v1 = r + } else { + v1 = **(**int32)(__ccgo_up(bp + 24)) + } + Xmemcpy(tls, **(**uintptr)(__ccgo_up(bp + 16)), bp+28, Uint64FromInt32(v1)) + } + return r + } + r = X__res_msend(tls, int32(1), bp, bp+8, bp+16, bp+24, **(**int32)(__ccgo_up(bp + 24))) + if r < 0 || !(**(**int32)(__ccgo_up(bp + 24)) != 0) { + v1 = -int32(1) + } else { + v1 = **(**int32)(__ccgo_up(bp + 24)) + } + return v1 +} + +func Xres_send(tls *TLS, _msg uintptr, _msglen int32, _answer uintptr, _anslen int32) (r int32) { + if __ccgo_strace { + trc("tls=%v _msg=%v _msglen=%v _answer=%v _anslen=%v, (%v:)", tls, _msg, _msglen, _answer, _anslen, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__res_send(tls, _msg, _msglen, _answer, _anslen) +} + +/* This is completely unused, and exists purely to satisfy broken apps. */ + +func X__res_state(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(unsafe.Pointer(&_res1)) +} + +var _res1 t__res_state + +func X__get_resolv_conf(tls *TLS, conf uintptr, search uintptr, search_sz Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v conf=%v search=%v search_sz=%v, (%v:)", tls, conf, search, search_sz, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(752) + defer tls.Free(752) + var c, nns, v1, v2 int32 + var f, p uintptr + var l Tsize_t + var x, x1, x2, v5 uint64 + var v4 bool + var _ /* _buf at bp+256 */ [256]uint8 + var _ /* _f at bp+512 */ TFILE + var _ /* line at bp+0 */ [256]uint8 + var _ /* z at bp+744 */ uintptr + _, _, _, _, _, _, _, _, _, _, _, _ = c, f, l, nns, p, x, x1, x2, v1, v2, v4, v5 + nns = 0 + (*Tresolvconf)(unsafe.Pointer(conf)).Fndots = uint32(1) + (*Tresolvconf)(unsafe.Pointer(conf)).Ftimeout = uint32(5) + (*Tresolvconf)(unsafe.Pointer(conf)).Fattempts = uint32(2) + if search != 0 { + **(**uint8)(__ccgo_up(search)) = uint8(0) + } + f = X__fopen_rb_ca(tls, __ccgo_ts+1191, bp+512, bp+256, uint64(256)) + if !(f != 0) { + switch **(**int32)(__ccgo_up(X__errno_location(tls))) { + case int32(ENOENT): + fallthrough + case int32(ENOTDIR): + fallthrough + case int32(EACCES): + goto no_resolv_conf + default: + return -int32(1) + } + } + for Xfgets(tls, bp, int32(256), f) != 0 { + if !(Xstrchr(tls, bp, int32('\n')) != 0) && !((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_EOF) != 0) { + for cond := true; cond; cond = c != int32('\n') && c != -int32(1) { + c = Xgetc(tls, f) + } + continue + } + if v4 = !(Xstrncmp(tls, bp, __ccgo_ts+1208, uint64(7)) != 0); v4 { + v1 = Int32FromUint8((**(**[256]uint8)(__ccgo_up(bp)))[int32(7)]) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _3 + _3: + } + if v4 && v2 != 0 { + p = Xstrstr(tls, bp, __ccgo_ts+1216) + if p != 0 && BoolInt32(uint32(**(**uint8)(__ccgo_up(p + 6)))-uint32('0') < uint32(10)) != 0 { + p = p + uintptr(6) + x = Xstrtoul(tls, p, bp+744, int32(10)) + if **(**uintptr)(__ccgo_up(bp + 744)) != p { + if x > uint64(15) { + v5 = uint64(15) + } else { + v5 = x + } + (*Tresolvconf)(unsafe.Pointer(conf)).Fndots = uint32(v5) + } + } + p = Xstrstr(tls, bp, __ccgo_ts+1223) + if p != 0 && BoolInt32(uint32(**(**uint8)(__ccgo_up(p + 9)))-uint32('0') < uint32(10)) != 0 { + p = p + uintptr(9) + x1 = Xstrtoul(tls, p, bp+744, int32(10)) + if **(**uintptr)(__ccgo_up(bp + 744)) != p { + if x1 > uint64(10) { + v5 = uint64(10) + } else { + v5 = x1 + } + (*Tresolvconf)(unsafe.Pointer(conf)).Fattempts = uint32(v5) + } + } + p = Xstrstr(tls, bp, __ccgo_ts+1233) + if p != 0 && (BoolInt32(uint32(**(**uint8)(__ccgo_up(p + 8)))-uint32('0') < uint32(10)) != 0 || Int32FromUint8(**(**uint8)(__ccgo_up(p + 8))) == int32('.')) { + p = p + uintptr(8) + x2 = Xstrtoul(tls, p, bp+744, int32(10)) + if **(**uintptr)(__ccgo_up(bp + 744)) != p { + if x2 > uint64(60) { + v5 = uint64(60) + } else { + v5 = x2 + } + (*Tresolvconf)(unsafe.Pointer(conf)).Ftimeout = uint32(v5) + } + } + continue + } + if v4 = !(Xstrncmp(tls, bp, __ccgo_ts+1242, uint64(10)) != 0); v4 { + v1 = Int32FromUint8((**(**[256]uint8)(__ccgo_up(bp)))[int32(10)]) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _10 + _10: + } + if v4 && v2 != 0 { + if nns >= int32(MAXNS) { + continue + } + p = bp + uintptr(11) + for { + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(p))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _15 + _15: + if !(v2 != 0) { + break + } + goto _12 + _12: + ; + p = p + 1 + } + **(**uintptr)(__ccgo_up(bp + 744)) = p + for { + if v4 = **(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 744)))) != 0; v4 { + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 744))))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _19 + _19: + } + if !(v4 && !(v2 != 0)) { + break + } + goto _16 + _16: + ; + **(**uintptr)(__ccgo_up(bp + 744)) = **(**uintptr)(__ccgo_up(bp + 744)) + 1 + } + **(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 744)))) = uint8(0) + if X__lookup_ipliteral(tls, conf+uintptr(nns)*28, p, PF_UNSPEC) > 0 { + nns = nns + 1 + } + continue + } + if !(search != 0) { + continue + } + if v4 = Xstrncmp(tls, bp, __ccgo_ts+1253, uint64(6)) != 0 && Xstrncmp(tls, bp, __ccgo_ts+1260, uint64(6)) != 0; !v4 { + v1 = Int32FromUint8((**(**[256]uint8)(__ccgo_up(bp)))[int32(6)]) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _23 + _23: + } + if v4 || !(v2 != 0) { + continue + } + p = bp + uintptr(7) + for { + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(p))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _28 + _28: + if !(v2 != 0) { + break + } + goto _25 + _25: + ; + p = p + 1 + } + l = _strlen(tls, p) + /* This can never happen anyway with chosen buffer sizes. */ + if l >= search_sz { + continue + } + Xmemcpy(tls, search, p, l+uint64(1)) + } + X__fclose_ca(tls, f) + goto no_resolv_conf +no_resolv_conf: + ; + if !(nns != 0) { + X__lookup_ipliteral(tls, conf, __ccgo_ts+1267, PF_UNSPEC) + nns = int32(1) + } + (*Tresolvconf)(unsafe.Pointer(conf)).Fnns = Uint32FromInt32(nns) + return 0 +} + +func Xsend(tls *TLS, fd int32, buf uintptr, len1 Tsize_t, flags int32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v len1=%v flags=%v, (%v:)", tls, fd, buf, len1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xsendto(tls, fd, buf, len1, flags, uintptr(0), uint32(0)) +} + +func Xsendmmsg(tls *TLS, fd int32, msgvec uintptr, vlen uint32, flags uint32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v msgvec=%v vlen=%v flags=%v, (%v:)", tls, fd, msgvec, vlen, flags, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var i, v2 int32 + var r Tssize_t + _, _, _ = i, r, v2 + if vlen > uint32(IOV_MAX) { + vlen = uint32(IOV_MAX) + } /* This matches the kernel. */ + if !(vlen != 0) { + return 0 + } + i = 0 + for { + if !(Uint32FromInt32(i) < vlen) { + break + } + /* As an unfortunate inconsistency, the sendmmsg API uses + * unsigned int for the resulting msg_len, despite sendmsg + * returning ssize_t. However Linux limits the total bytes + * sent by sendmsg to INT_MAX, so the assignment is safe. */ + r = Xsendmsg(tls, fd, msgvec+uintptr(i)*64, Int32FromUint32(flags)) + if r < 0 { + goto error + } + (**(**Tmmsghdr)(__ccgo_up(msgvec + uintptr(i)*64))).Fmsg_len = Uint32FromInt64(r) + goto _1 + _1: + ; + i = i + 1 + } + goto error +error: + ; + if i != 0 { + v2 = i + } else { + v2 = -int32(1) + } + return v2 + return r1 +} + +func Xsendmsg(tls *TLS, fd int32, msg uintptr, flags int32) (r1 Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v msg=%v flags=%v, (%v:)", tls, fd, msg, flags, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(1216) + defer tls.Free(1216) + var c1, v3 uintptr + var r, v14 int64 + var v1, v5, v6 int32 + var v10, v11, v12, v13, v8, v9 Tsyscall_arg_t + var _ /* chbuf at bp+152 */ [66]Tcmsghdr + var _ /* h at bp+96 */ Tmsghdr + _, _, _, _, _, _, _, _, _, _, _, _, _ = c1, r, v1, v10, v11, v12, v13, v14, v3, v5, v6, v8, v9 + if msg != 0 { + **(**Tmsghdr)(__ccgo_up(bp + 96)) = **(**Tmsghdr)(__ccgo_up(msg)) + v1 = Int32FromInt32(0) + (**(**Tmsghdr)(__ccgo_up(bp + 96))).F__pad2 = v1 + (**(**Tmsghdr)(__ccgo_up(bp + 96))).F__pad1 = v1 + msg = bp + 96 + if (**(**Tmsghdr)(__ccgo_up(bp + 96))).Fmsg_controllen != 0 { + if uint64((**(**Tmsghdr)(__ccgo_up(bp + 96))).Fmsg_controllen) > uint64(1056) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOMEM) + return int64(-int32(1)) + } + Xmemcpy(tls, bp+152, (**(**Tmsghdr)(__ccgo_up(bp + 96))).Fmsg_control, uint64((**(**Tmsghdr)(__ccgo_up(bp + 96))).Fmsg_controllen)) + (**(**Tmsghdr)(__ccgo_up(bp + 96))).Fmsg_control = bp + 152 + if uint64((*Tmsghdr)(unsafe.Pointer(bp+96)).Fmsg_controllen) >= uint64(16) { + v3 = (*Tmsghdr)(unsafe.Pointer(bp + 96)).Fmsg_control + } else { + v3 = UintptrFromInt32(0) + } + c1 = v3 + for { + if !(c1 != 0) { + break + } + (*Tcmsghdr)(unsafe.Pointer(c1)).F__pad1 = 0 + goto _2 + _2: + ; + if uint64((*Tcmsghdr)(unsafe.Pointer(c1)).Fcmsg_len) < uint64(16) || (uint64((*Tcmsghdr)(unsafe.Pointer(c1)).Fcmsg_len)+uint64(8)-uint64(1))&Uint64FromInt64(^Int64FromUint64(Uint64FromInt64(8)-Uint64FromInt32(1)))+uint64(16) >= Uint64FromInt64(int64((*Tmsghdr)(unsafe.Pointer(bp+96)).Fmsg_control+uintptr((*Tmsghdr)(unsafe.Pointer(bp+96)).Fmsg_controllen))-int64(c1)) { + v3 = uintptr(0) + } else { + v3 = c1 + uintptr((uint64((*Tcmsghdr)(unsafe.Pointer(c1)).Fcmsg_len)+Uint64FromInt64(8)-Uint64FromInt32(1))&Uint64FromInt64(^Int64FromUint64(Uint64FromInt64(8)-Uint64FromInt32(1)))) + } + c1 = v3 + } + } + } + v1 = int32(SYS_sendmsg) + v5 = int32(__SC_sendmsg) + v6 = int32(1) + v8 = int64(fd) + v9 = int64(msg) + v10 = int64(flags) + v11 = int64(Int32FromInt32(0)) + v12 = int64(Int32FromInt32(0)) + v13 = int64(Int32FromInt32(0)) + if v6 != 0 { + r = ___syscall_cp(tls, int64(v1), v8, v9, v10, v11, v12, v13) + } else { + r = X__syscall6(tls, int64(v1), v8, v9, v10, v11, v12, v13) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v14 = r + goto _15 + } + if v6 != 0 { + *(*[6]int64)(unsafe.Pointer(bp)) = [6]int64{ + 0: v8, + 1: v9, + 2: v10, + 3: v11, + 4: v12, + 5: v13, + } + r = ___syscall_cp(tls, int64(SYS_socketcall), int64(v5), int64(bp), 0, 0, 0, 0) + } else { + *(*[6]int64)(unsafe.Pointer(bp + 48)) = [6]int64{ + 0: v8, + 1: v9, + 2: v10, + 3: v11, + 4: v12, + 5: v13, + } + r = X__syscall2(tls, int64(SYS_socketcall), int64(v5), int64(bp+48)) + } + v14 = r + goto _15 +_15: + return X__syscall_ret(tls, Uint64FromInt64(v14)) +} + +func Xsendto(tls *TLS, fd int32, buf uintptr, len1 Tsize_t, flags int32, addr uintptr, alen Tsocklen_t) (r1 Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v len1=%v flags=%v addr=%v alen=%v, (%v:)", tls, fd, buf, len1, flags, addr, alen, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(96) + defer tls.Free(96) + var r, v10 int64 + var v1, v2, v3 int32 + var v4, v5, v6, v7, v8, v9 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _, _, _ = r, v1, v10, v2, v3, v4, v5, v6, v7, v8, v9 + v1 = int32(SYS_sendto) + v2 = int32(__SC_sendto) + v3 = int32(1) + v4 = int64(fd) + v5 = int64(buf) + v6 = Int64FromUint64(len1) + v7 = int64(flags) + v8 = int64(addr) + v9 = Int64FromUint32(alen) + if v3 != 0 { + r = ___syscall_cp(tls, int64(v1), v4, v5, v6, v7, v8, v9) + } else { + r = X__syscall6(tls, int64(v1), v4, v5, v6, v7, v8, v9) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v10 = r + goto _11 + } + if v3 != 0 { + *(*[6]int64)(unsafe.Pointer(bp)) = [6]int64{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = ___syscall_cp(tls, int64(SYS_socketcall), int64(v2), int64(bp), 0, 0, 0, 0) + } else { + *(*[6]int64)(unsafe.Pointer(bp + 48)) = [6]int64{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = X__syscall2(tls, int64(SYS_socketcall), int64(v2), int64(bp+48)) + } + v10 = r + goto _11 +_11: + return X__syscall_ret(tls, Uint64FromInt64(v10)) +} + +func Xendservent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } +} + +func Xsetservent(tls *TLS, stayopen int32) { + if __ccgo_strace { + trc("tls=%v stayopen=%v, (%v:)", tls, stayopen, origin(2)) + } +} + +func Xgetservent(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(0) +} + +func Xsetsockopt(tls *TLS, fd int32, level int32, optname int32, optval uintptr, optlen Tsocklen_t) (r2 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v level=%v optname=%v optval=%v optlen=%v, (%v:)", tls, fd, level, optname, optval, optlen, origin(2)) + defer func() { trc("-> %v", r2) }() + } + bp := tls.Alloc(304) + defer tls.Free(304) + var r, v10 int64 + var r1, v1, v2, v3 int32 + var s Ttime_t + var tv uintptr + var us Tsuseconds_t + var v12 uint64 + var v4, v5, v6, v7, v8, v9 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = r, r1, s, tv, us, v1, v10, v12, v2, v3, v4, v5, v6, v7, v8, v9 + v1 = int32(SYS_setsockopt) + v2 = int32(__SC_setsockopt) + v3 = 0 + v4 = int64(fd) + v5 = int64(level) + v6 = int64(optname) + v7 = int64(optval) + v8 = Int64FromUint32(optlen) + v9 = int64(Int32FromInt32(0)) + if v3 != 0 { + r = ___syscall_cp(tls, int64(v1), v4, v5, v6, v7, v8, v9) + } else { + r = X__syscall6(tls, int64(v1), v4, v5, v6, v7, v8, v9) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v10 = r + goto _11 + } + if v3 != 0 { + *(*[6]int64)(unsafe.Pointer(bp + 208)) = [6]int64{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = ___syscall_cp(tls, int64(SYS_socketcall), int64(v2), int64(bp+208), 0, 0, 0, 0) + } else { + *(*[6]int64)(unsafe.Pointer(bp + 256)) = [6]int64{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = X__syscall2(tls, int64(SYS_socketcall), int64(v2), int64(bp+256)) + } + v10 = r + goto _11 +_11: + r1 = int32(v10) + if r1 == -int32(ENOPROTOOPT) { + switch level { + case int32(SOL_SOCKET): + switch optname { + case int32(SO_RCVTIMEO): + fallthrough + case int32(SO_SNDTIMEO): + if false { + break + } + if uint64(optlen) < uint64(16) { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL)))) + } + tv = optval + s = (*Ttimeval)(unsafe.Pointer(tv)).Ftv_sec + us = (*Ttimeval)(unsafe.Pointer(tv)).Ftv_usec + if !!((Uint64FromInt64(s)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EOPNOTSUPP)))) + } + if optname == int32(SO_RCVTIMEO) { + optname = int32(SO_RCVTIMEO_OLD) + } + if optname == int32(SO_SNDTIMEO) { + optname = int32(SO_SNDTIMEO_OLD) + } + if !((Uint64FromInt64(us)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) { + v12 = Uint64FromInt64(us) + } else { + v12 = uint64(0x7fffffff) + (0+Uint64FromInt64(us))>>int32(63) + } + *(*[2]int64)(unsafe.Pointer(bp + 96)) = [2]int64{ + 0: s, + 1: int64(Int32FromUint64(v12)), + } + v1 = int32(SYS_setsockopt) + v2 = int32(__SC_setsockopt) + v3 = 0 + v4 = int64(fd) + v5 = int64(level) + v6 = int64(optname) + v7 = int64(bp + 96) + v8 = Int64FromUint64(Uint64FromInt32(2) * Uint64FromInt64(8)) + v9 = int64(Int32FromInt32(0)) + if v3 != 0 { + r = ___syscall_cp(tls, int64(v1), v4, v5, v6, v7, v8, v9) + } else { + r = X__syscall6(tls, int64(v1), v4, v5, v6, v7, v8, v9) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v10 = r + goto _23 + } + if v3 != 0 { + *(*[6]int64)(unsafe.Pointer(bp + 208)) = [6]int64{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = ___syscall_cp(tls, int64(SYS_socketcall), int64(v2), int64(bp+208), 0, 0, 0, 0) + } else { + *(*[6]int64)(unsafe.Pointer(bp + 256)) = [6]int64{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = X__syscall2(tls, int64(SYS_socketcall), int64(v2), int64(bp+256)) + } + v10 = r + goto _23 + _23: + r1 = int32(v10) + case int32(SO_TIMESTAMP): + fallthrough + case int32(SO_TIMESTAMPNS): + if true { + break + } + if optname == int32(SO_TIMESTAMP) { + optname = int32(SO_TIMESTAMP_OLD) + } + if optname == int32(SO_TIMESTAMPNS) { + optname = int32(SO_TIMESTAMPNS_OLD) + } + v1 = int32(SYS_setsockopt) + v2 = int32(__SC_setsockopt) + v3 = 0 + v4 = int64(fd) + v5 = int64(level) + v6 = int64(optname) + v7 = int64(optval) + v8 = Int64FromUint32(optlen) + v9 = int64(Int32FromInt32(0)) + if v3 != 0 { + r = ___syscall_cp(tls, int64(v1), v4, v5, v6, v7, v8, v9) + } else { + r = X__syscall6(tls, int64(v1), v4, v5, v6, v7, v8, v9) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v10 = r + goto _34 + } + if v3 != 0 { + *(*[6]int64)(unsafe.Pointer(bp + 208)) = [6]int64{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = ___syscall_cp(tls, int64(SYS_socketcall), int64(v2), int64(bp+208), 0, 0, 0, 0) + } else { + *(*[6]int64)(unsafe.Pointer(bp + 256)) = [6]int64{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = X__syscall2(tls, int64(SYS_socketcall), int64(v2), int64(bp+256)) + } + v10 = r + goto _34 + _34: + r1 = int32(v10) + break + } + } + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r1))) +} + +func Xshutdown(tls *TLS, fd int32, how int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v how=%v, (%v:)", tls, fd, how, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(96) + defer tls.Free(96) + var r, v10 int64 + var v1, v2, v3 int32 + var v4, v5, v6, v7, v8, v9 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _, _, _ = r, v1, v10, v2, v3, v4, v5, v6, v7, v8, v9 + v1 = int32(SYS_shutdown) + v2 = int32(__SC_shutdown) + v3 = 0 + v4 = int64(fd) + v5 = int64(how) + v6 = int64(Int32FromInt32(0)) + v7 = int64(Int32FromInt32(0)) + v8 = int64(Int32FromInt32(0)) + v9 = int64(Int32FromInt32(0)) + if v3 != 0 { + r = ___syscall_cp(tls, int64(v1), v4, v5, v6, v7, v8, v9) + } else { + r = X__syscall6(tls, int64(v1), v4, v5, v6, v7, v8, v9) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v10 = r + goto _11 + } + if v3 != 0 { + *(*[6]int64)(unsafe.Pointer(bp)) = [6]int64{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = ___syscall_cp(tls, int64(SYS_socketcall), int64(v2), int64(bp), 0, 0, 0, 0) + } else { + *(*[6]int64)(unsafe.Pointer(bp + 48)) = [6]int64{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = X__syscall2(tls, int64(SYS_socketcall), int64(v2), int64(bp+48)) + } + v10 = r + goto _11 +_11: + return int32(X__syscall_ret(tls, Uint64FromInt64(v10))) +} + +func Xsockatmark(tls *TLS, s int32) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var _ /* ret at bp+0 */ int32 + if Xioctl(tls, s, int32(SIOCATMARK), VaList(bp+16, bp)) < 0 { + return -int32(1) + } + return **(**int32)(__ccgo_up(bp)) +} + +func Xsocket(tls *TLS, domain int32, type1 int32, protocol int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v domain=%v type1=%v protocol=%v, (%v:)", tls, domain, type1, protocol, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(192) + defer tls.Free(192) + var r, v10, v21 int64 + var s, v1, v12, v13, v14, v2, v3 int32 + var v15, v16, v17, v18, v19, v20, v4, v5, v6, v7, v8, v9 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = r, s, v1, v10, v12, v13, v14, v15, v16, v17, v18, v19, v2, v20, v21, v3, v4, v5, v6, v7, v8, v9 + v1 = int32(SYS_socket) + v2 = int32(__SC_socket) + v3 = 0 + v4 = int64(domain) + v5 = int64(type1) + v6 = int64(protocol) + v7 = int64(Int32FromInt32(0)) + v8 = int64(Int32FromInt32(0)) + v9 = int64(Int32FromInt32(0)) + if v3 != 0 { + r = ___syscall_cp(tls, int64(v1), v4, v5, v6, v7, v8, v9) + } else { + r = X__syscall6(tls, int64(v1), v4, v5, v6, v7, v8, v9) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v10 = r + goto _11 + } + if v3 != 0 { + *(*[6]int64)(unsafe.Pointer(bp + 96)) = [6]int64{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = ___syscall_cp(tls, int64(SYS_socketcall), int64(v2), int64(bp+96), 0, 0, 0, 0) + } else { + *(*[6]int64)(unsafe.Pointer(bp + 144)) = [6]int64{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = X__syscall2(tls, int64(SYS_socketcall), int64(v2), int64(bp+144)) + } + v10 = r + goto _11 +_11: + s = int32(v10) + if (s == -int32(EINVAL) || s == -int32(EPROTONOSUPPORT)) && type1&(Int32FromInt32(SOCK_CLOEXEC)|Int32FromInt32(SOCK_NONBLOCK)) != 0 { + v12 = int32(SYS_socket) + v13 = int32(__SC_socket) + v14 = 0 + v15 = int64(domain) + v16 = int64(type1 & ^(Int32FromInt32(SOCK_CLOEXEC) | Int32FromInt32(SOCK_NONBLOCK))) + v17 = int64(protocol) + v18 = int64(Int32FromInt32(0)) + v19 = int64(Int32FromInt32(0)) + v20 = int64(Int32FromInt32(0)) + if v14 != 0 { + r = ___syscall_cp(tls, int64(v12), v15, v16, v17, v18, v19, v20) + } else { + r = X__syscall6(tls, int64(v12), v15, v16, v17, v18, v19, v20) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v21 = r + goto _22 + } + if v14 != 0 { + *(*[6]int64)(unsafe.Pointer(bp + 96)) = [6]int64{ + 0: v15, + 1: v16, + 2: v17, + 3: v18, + 4: v19, + 5: v20, + } + r = ___syscall_cp(tls, int64(SYS_socketcall), int64(v13), int64(bp+96), 0, 0, 0, 0) + } else { + *(*[6]int64)(unsafe.Pointer(bp + 144)) = [6]int64{ + 0: v15, + 1: v16, + 2: v17, + 3: v18, + 4: v19, + 5: v20, + } + r = X__syscall2(tls, int64(SYS_socketcall), int64(v13), int64(bp+144)) + } + v21 = r + goto _22 + _22: + s = int32(v21) + if s < 0 { + return int32(X__syscall_ret(tls, Uint64FromInt32(s))) + } + if type1&int32(SOCK_CLOEXEC) != 0 { + X__syscall3(tls, int64(SYS_fcntl), int64(s), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + } + if type1&int32(SOCK_NONBLOCK) != 0 { + X__syscall3(tls, int64(SYS_fcntl), int64(s), int64(Int32FromInt32(F_SETFL)), int64(Int32FromInt32(O_NONBLOCK))) + } + } + return int32(X__syscall_ret(tls, Uint64FromInt32(s))) +} + +func Xsocketpair(tls *TLS, domain int32, type1 int32, protocol int32, fd uintptr) (r2 int32) { + if __ccgo_strace { + trc("tls=%v domain=%v type1=%v protocol=%v fd=%v, (%v:)", tls, domain, type1, protocol, fd, origin(2)) + defer func() { trc("-> %v", r2) }() + } + bp := tls.Alloc(192) + defer tls.Free(192) + var r, v10, v21 int64 + var r1, v1, v12, v13, v14, v2, v3 int32 + var v15, v16, v17, v18, v19, v20, v4, v5, v6, v7, v8, v9 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = r, r1, v1, v10, v12, v13, v14, v15, v16, v17, v18, v19, v2, v20, v21, v3, v4, v5, v6, v7, v8, v9 + v1 = int32(SYS_socketpair) + v2 = int32(__SC_socketpair) + v3 = 0 + v4 = int64(domain) + v5 = int64(type1) + v6 = int64(protocol) + v7 = int64(fd) + v8 = int64(Int32FromInt32(0)) + v9 = int64(Int32FromInt32(0)) + if v3 != 0 { + r = ___syscall_cp(tls, int64(v1), v4, v5, v6, v7, v8, v9) + } else { + r = X__syscall6(tls, int64(v1), v4, v5, v6, v7, v8, v9) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v10 = r + goto _11 + } + if v3 != 0 { + *(*[6]int64)(unsafe.Pointer(bp + 96)) = [6]int64{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = ___syscall_cp(tls, int64(SYS_socketcall), int64(v2), int64(bp+96), 0, 0, 0, 0) + } else { + *(*[6]int64)(unsafe.Pointer(bp + 144)) = [6]int64{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = X__syscall2(tls, int64(SYS_socketcall), int64(v2), int64(bp+144)) + } + v10 = r + goto _11 +_11: + r1 = int32(X__syscall_ret(tls, Uint64FromInt64(v10))) + if r1 < 0 && (**(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EINVAL) || **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EPROTONOSUPPORT)) && type1&(Int32FromInt32(SOCK_CLOEXEC)|Int32FromInt32(SOCK_NONBLOCK)) != 0 { + v12 = int32(SYS_socketpair) + v13 = int32(__SC_socketpair) + v14 = 0 + v15 = int64(domain) + v16 = int64(type1 & ^(Int32FromInt32(SOCK_CLOEXEC) | Int32FromInt32(SOCK_NONBLOCK))) + v17 = int64(protocol) + v18 = int64(fd) + v19 = int64(Int32FromInt32(0)) + v20 = int64(Int32FromInt32(0)) + if v14 != 0 { + r = ___syscall_cp(tls, int64(v12), v15, v16, v17, v18, v19, v20) + } else { + r = X__syscall6(tls, int64(v12), v15, v16, v17, v18, v19, v20) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v21 = r + goto _22 + } + if v14 != 0 { + *(*[6]int64)(unsafe.Pointer(bp + 96)) = [6]int64{ + 0: v15, + 1: v16, + 2: v17, + 3: v18, + 4: v19, + 5: v20, + } + r = ___syscall_cp(tls, int64(SYS_socketcall), int64(v13), int64(bp+96), 0, 0, 0, 0) + } else { + *(*[6]int64)(unsafe.Pointer(bp + 144)) = [6]int64{ + 0: v15, + 1: v16, + 2: v17, + 3: v18, + 4: v19, + 5: v20, + } + r = X__syscall2(tls, int64(SYS_socketcall), int64(v13), int64(bp+144)) + } + v21 = r + goto _22 + _22: + r1 = int32(X__syscall_ret(tls, Uint64FromInt64(v21))) + if r1 < 0 { + return r1 + } + if type1&int32(SOCK_CLOEXEC) != 0 { + X__syscall3(tls, int64(SYS_fcntl), int64(**(**int32)(__ccgo_up(fd))), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + X__syscall3(tls, int64(SYS_fcntl), int64(**(**int32)(__ccgo_up(fd + 1*4))), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + } + if type1&int32(SOCK_NONBLOCK) != 0 { + X__syscall3(tls, int64(SYS_fcntl), int64(**(**int32)(__ccgo_up(fd))), int64(Int32FromInt32(F_SETFL)), int64(Int32FromInt32(O_NONBLOCK))) + X__syscall3(tls, int64(SYS_fcntl), int64(**(**int32)(__ccgo_up(fd + 1*4))), int64(Int32FromInt32(F_SETFL)), int64(Int32FromInt32(O_NONBLOCK))) + } + } + return r1 +} + +const SHADOW = "/etc/shadow" + +type Tgroup = struct { + Fgr_name uintptr + Fgr_passwd uintptr + Fgr_gid Tgid_t + Fgr_mem uintptr +} + +type Tspwd = struct { + Fsp_namp uintptr + Fsp_pwdp uintptr + Fsp_lstchg int64 + Fsp_min int64 + Fsp_max int64 + Fsp_warn int64 + Fsp_inact int64 + Fsp_expire int64 + Fsp_flag uint64 +} + +func Xfgetgrent(tls *TLS, f uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var _ /* nmem at bp+16 */ Tsize_t + var _ /* res at bp+0 */ uintptr + var _ /* size at bp+8 */ Tsize_t + **(**Tsize_t)(__ccgo_up(bp + 8)) = uint64(0) + **(**Tsize_t)(__ccgo_up(bp + 16)) = uint64(0) + X__getgrent_a(tls, f, uintptr(unsafe.Pointer(&_gr)), uintptr(unsafe.Pointer(&_line1)), bp+8, uintptr(unsafe.Pointer(&_mem)), bp+16, bp) + return **(**uintptr)(__ccgo_up(bp)) +} + +var _line1 uintptr + +var _mem uintptr + +var _gr Tgroup + +func Xfgetpwent(tls *TLS, f uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* res at bp+8 */ uintptr + var _ /* size at bp+0 */ Tsize_t + **(**Tsize_t)(__ccgo_up(bp)) = uint64(0) + X__getpwent_a(tls, f, uintptr(unsafe.Pointer(&_pw)), uintptr(unsafe.Pointer(&_line2)), bp, bp+8) + return **(**uintptr)(__ccgo_up(bp + 8)) +} + +var _line2 uintptr + +var _pw Tpasswd + +const GETGRBYGID = 3 +const GETGRBYNAME = 2 +const GETINITGR = 15 +const GETPWBYNAME = 0 +const GETPWBYUID = 1 +const GRFOUND = 1 +const GRGID = 4 +const GRMEMCNT = 5 +const GRNAMELEN = 2 +const GRPASSWDLEN = 3 +const GRVERSION = 0 +const GR_LEN = 6 +const INITGRFOUND = 1 +const INITGRNGRPS = 2 +const INITGRVERSION = 0 +const INITGR_LEN = 3 +const NSCDVERSION = 2 +const PWDIRLEN = 7 +const PWFOUND = 1 +const PWGECOSLEN = 6 +const PWGID = 5 +const PWNAMELEN = 2 +const PWPASSWDLEN = 3 +const PWSHELLLEN = 8 +const PWUID = 4 +const PWVERSION = 0 +const PW_LEN = 9 +const REQKEYLEN = 2 +const REQTYPE = 1 +const REQVERSION = 0 +const REQ_LEN = 3 + +func _itoa1(tls *TLS, p uintptr, x Tuint32_t) (r uintptr) { + var v1 uintptr + _ = v1 + // number of digits in a uint32_t + NUL + p = p + uintptr(11) + p = p - 1 + v1 = p + **(**uint8)(__ccgo_up(v1)) = uint8(0) + for cond := true; cond; cond = x != 0 { + p = p - 1 + v1 = p + **(**uint8)(__ccgo_up(v1)) = uint8(uint32('0') + x%uint32(10)) + x = x / uint32(10) + } + return p +} + +func X__getgr_a(tls *TLS, name uintptr, gid Tgid_t, gr uintptr, buf uintptr, size uintptr, mem uintptr, nmem uintptr, res uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v gid=%v gr=%v buf=%v size=%v mem=%v nmem=%v res=%v, (%v:)", tls, name, gid, gr, buf, size, mem, nmem, res, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + var f, key, ptr, tmp, tmp1 uintptr + var grlist_len, len1 Tsize_t + var i, req, v10 Tint32_t + var rv, v1 int32 + var v5, v6 Tuint32_t + var _ /* cs at bp+0 */ int32 + var _ /* gidbuf at bp+28 */ [11]uint8 + var _ /* groupbuf at bp+4 */ [6]Tint32_t + var _ /* name_len at bp+44 */ Tuint32_t + var _ /* swap at bp+40 */ int32 + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = f, grlist_len, i, key, len1, ptr, req, rv, tmp, tmp1, v1, v10, v5, v6 + rv = 0 + **(**uintptr)(__ccgo_up(res)) = uintptr(0) + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp) + f = Xfopen(tls, __ccgo_ts+1277, __ccgo_ts+412) + if !(f != 0) { + rv = **(**int32)(__ccgo_up(X__errno_location(tls))) + goto done + } + for { + v1 = X__getgrent_a(tls, f, gr, buf, size, mem, nmem, res) + rv = v1 + if !(!(v1 != 0) && **(**uintptr)(__ccgo_up(res)) != 0) { + break + } + if name != 0 && !(Xstrcmp(tls, name, (*Tgroup)(unsafe.Pointer(**(**uintptr)(__ccgo_up(res)))).Fgr_name) != 0) || !(name != 0) && (*Tgroup)(unsafe.Pointer(**(**uintptr)(__ccgo_up(res)))).Fgr_gid == gid { + break + } + } + Xfclose(tls, f) + if !(**(**uintptr)(__ccgo_up(res)) != 0) && (rv == 0 || rv == int32(ENOENT) || rv == int32(ENOTDIR)) { + if name != 0 { + v1 = int32(GETGRBYNAME) + } else { + v1 = int32(GETGRBYGID) + } + req = v1 + **(**[6]Tint32_t)(__ccgo_up(bp + 4)) = [6]Tint32_t{} + len1 = uint64(0) + grlist_len = uint64(0) + **(**[11]uint8)(__ccgo_up(bp + 28)) = [11]uint8{} + **(**int32)(__ccgo_up(bp + 40)) = 0 + if name != 0 { + key = name + } else { + if gid < uint32(0) || gid > uint32(0xffffffff) { + rv = 0 + goto done + } + key = _itoa1(tls, bp+28, gid) + } + f = X__nscd_query(tls, req, key, bp+4, uint64(24), bp+40) + if !(f != 0) { + rv = **(**int32)(__ccgo_up(X__errno_location(tls))) + goto done + } + if !((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRFOUND)] != 0) { + rv = 0 + goto cleanup_f + } + if !((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRNAMELEN)] != 0) || !((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRPASSWDLEN)] != 0) { + rv = int32(EIO) + goto cleanup_f + } + if Uint64FromInt32((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRNAMELEN)]) > uint64(0xffffffffffffffff)-Uint64FromInt32((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRPASSWDLEN)]) { + rv = int32(ENOMEM) + goto cleanup_f + } + len1 = Uint64FromInt32((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRNAMELEN)] + (**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRPASSWDLEN)]) + i = 0 + for { + if !(i < (**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRMEMCNT)]) { + break + } + if Xfread(tls, bp+44, uint64(4), uint64(1), f) < uint64(1) { + if Xferror(tls, f) != 0 { + v1 = **(**int32)(__ccgo_up(X__errno_location(tls))) + } else { + v1 = int32(EIO) + } + rv = v1 + goto cleanup_f + } + if **(**int32)(__ccgo_up(bp + 40)) != 0 { + v5 = **(**Tuint32_t)(__ccgo_up(bp + 44)) + v6 = v5>>int32(24) | v5>>int32(8)&uint32(0xff00) | v5< uint64(0xffffffffffffffff)-grlist_len || uint64(**(**Tuint32_t)(__ccgo_up(bp + 44))) > uint64(0xffffffffffffffff)-len1 { + rv = int32(ENOMEM) + goto cleanup_f + } + len1 = len1 + uint64(**(**Tuint32_t)(__ccgo_up(bp + 44))) + grlist_len = grlist_len + uint64(**(**Tuint32_t)(__ccgo_up(bp + 44))) + goto _3 + _3: + ; + i = i + 1 + } + if len1 > **(**Tsize_t)(__ccgo_up(size)) || !(**(**uintptr)(__ccgo_up(buf)) != 0) { + tmp = Xrealloc(tls, **(**uintptr)(__ccgo_up(buf)), len1) + if !(tmp != 0) { + rv = **(**int32)(__ccgo_up(X__errno_location(tls))) + goto cleanup_f + } + **(**uintptr)(__ccgo_up(buf)) = tmp + **(**Tsize_t)(__ccgo_up(size)) = len1 + } + if !(Xfread(tls, **(**uintptr)(__ccgo_up(buf)), len1, uint64(1), f) != 0) { + if Xferror(tls, f) != 0 { + v1 = **(**int32)(__ccgo_up(X__errno_location(tls))) + } else { + v1 = int32(EIO) + } + rv = v1 + goto cleanup_f + } + if Uint64FromInt32((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRMEMCNT)]+int32(1)) > **(**Tsize_t)(__ccgo_up(nmem)) { + if Uint64FromInt32((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRMEMCNT)]+int32(1)) > Uint64FromUint64(0xffffffffffffffff)/Uint64FromInt64(8) { + rv = int32(ENOMEM) + goto cleanup_f + } + tmp1 = Xrealloc(tls, **(**uintptr)(__ccgo_up(mem)), Uint64FromInt32((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRMEMCNT)]+Int32FromInt32(1))*uint64(8)) + if !(tmp1 != 0) { + rv = **(**int32)(__ccgo_up(X__errno_location(tls))) + goto cleanup_f + } + **(**uintptr)(__ccgo_up(mem)) = tmp1 + **(**Tsize_t)(__ccgo_up(nmem)) = Uint64FromInt32((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRMEMCNT)] + int32(1)) + } + if (**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRMEMCNT)] != 0 { + **(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(mem)))) = **(**uintptr)(__ccgo_up(buf)) + uintptr((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRNAMELEN)]) + uintptr((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRPASSWDLEN)]) + ptr = **(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(mem)))) + i = Int32FromInt32(0) + for { + if !(ptr != **(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(mem))))+uintptr(grlist_len)) { + break + } + if !(**(**uint8)(__ccgo_up(ptr)) != 0) { + i = i + 1 + v10 = i + **(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(mem)) + uintptr(v10)*8)) = ptr + uintptr(1) + } + goto _9 + _9: + ; + ptr = ptr + 1 + } + **(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(mem)) + uintptr(i)*8)) = uintptr(0) + if i != (**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRMEMCNT)] { + rv = int32(EIO) + goto cleanup_f + } + } else { + **(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(mem)))) = uintptr(0) + } + (*Tgroup)(unsafe.Pointer(gr)).Fgr_name = **(**uintptr)(__ccgo_up(buf)) + (*Tgroup)(unsafe.Pointer(gr)).Fgr_passwd = (*Tgroup)(unsafe.Pointer(gr)).Fgr_name + uintptr((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRNAMELEN)]) + (*Tgroup)(unsafe.Pointer(gr)).Fgr_gid = Uint32FromInt32((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRGID)]) + (*Tgroup)(unsafe.Pointer(gr)).Fgr_mem = **(**uintptr)(__ccgo_up(mem)) + if **(**uint8)(__ccgo_up((*Tgroup)(unsafe.Pointer(gr)).Fgr_passwd + uintptr(-Int32FromInt32(1)))) != 0 || **(**uint8)(__ccgo_up((*Tgroup)(unsafe.Pointer(gr)).Fgr_passwd + uintptr((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRPASSWDLEN)]-int32(1)))) != 0 { + rv = int32(EIO) + goto cleanup_f + } + if name != 0 && Xstrcmp(tls, name, (*Tgroup)(unsafe.Pointer(gr)).Fgr_name) != 0 || !(name != 0) && gid != (*Tgroup)(unsafe.Pointer(gr)).Fgr_gid { + rv = int32(EIO) + goto cleanup_f + } + **(**uintptr)(__ccgo_up(res)) = gr + goto cleanup_f + cleanup_f: + ; + Xfclose(tls, f) + goto done + } + goto done +done: + ; + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp)), uintptr(0)) + if rv != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = rv + } + return rv +} + +func _getgr_r(tls *TLS, name uintptr, gid Tgid_t, gr uintptr, buf uintptr, size Tsize_t, res uintptr) (r int32) { + bp := tls.Alloc(48) + defer tls.Free(48) + var i Tsize_t + var rv int32 + var _ /* cs at bp+32 */ int32 + var _ /* len at bp+8 */ Tsize_t + var _ /* line at bp+0 */ uintptr + var _ /* mem at bp+16 */ uintptr + var _ /* nmem at bp+24 */ Tsize_t + _, _ = i, rv + **(**uintptr)(__ccgo_up(bp)) = uintptr(0) + **(**Tsize_t)(__ccgo_up(bp + 8)) = uint64(0) + **(**uintptr)(__ccgo_up(bp + 16)) = uintptr(0) + **(**Tsize_t)(__ccgo_up(bp + 24)) = uint64(0) + rv = 0 + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp+32) + rv = X__getgr_a(tls, name, gid, gr, bp, bp+8, bp+16, bp+24, res) + if **(**uintptr)(__ccgo_up(res)) != 0 && size < **(**Tsize_t)(__ccgo_up(bp + 8))+(**(**Tsize_t)(__ccgo_up(bp + 24))+uint64(1))*uint64(8)+uint64(32) { + **(**uintptr)(__ccgo_up(res)) = uintptr(0) + rv = int32(ERANGE) + } + if **(**uintptr)(__ccgo_up(res)) != 0 { + buf = buf + uintptr((uint64(16)-uint64(buf))%uint64(16)) + (*Tgroup)(unsafe.Pointer(gr)).Fgr_mem = buf + buf = buf + uintptr((**(**Tsize_t)(__ccgo_up(bp + 24))+uint64(1))*uint64(8)) + Xmemcpy(tls, buf, **(**uintptr)(__ccgo_up(bp)), **(**Tsize_t)(__ccgo_up(bp + 8))) + (*Tgroup)(unsafe.Pointer(gr)).Fgr_name = uintptr(int64((*Tgroup)(unsafe.Pointer(gr)).Fgr_name)-int64(**(**uintptr)(__ccgo_up(bp)))) + buf + (*Tgroup)(unsafe.Pointer(gr)).Fgr_passwd = uintptr(int64((*Tgroup)(unsafe.Pointer(gr)).Fgr_passwd)-int64(**(**uintptr)(__ccgo_up(bp)))) + buf + i = uint64(0) + for { + if !(**(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 16)) + uintptr(i)*8)) != 0) { + break + } + **(**uintptr)(__ccgo_up((*Tgroup)(unsafe.Pointer(gr)).Fgr_mem + uintptr(i)*8)) = uintptr(int64(**(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 16)) + uintptr(i)*8)))-int64(**(**uintptr)(__ccgo_up(bp)))) + buf + goto _1 + _1: + ; + i = i + 1 + } + **(**uintptr)(__ccgo_up((*Tgroup)(unsafe.Pointer(gr)).Fgr_mem + uintptr(i)*8)) = uintptr(0) + } + Xfree(tls, **(**uintptr)(__ccgo_up(bp + 16))) + Xfree(tls, **(**uintptr)(__ccgo_up(bp))) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 32)), uintptr(0)) + if rv != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = rv + } + return rv +} + +func Xgetgrnam_r(tls *TLS, name uintptr, gr uintptr, buf uintptr, size Tsize_t, res uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v gr=%v buf=%v size=%v res=%v, (%v:)", tls, name, gr, buf, size, res, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _getgr_r(tls, name, uint32(0), gr, buf, size, res) +} + +func Xgetgrgid_r(tls *TLS, gid Tgid_t, gr uintptr, buf uintptr, size Tsize_t, res uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v gid=%v gr=%v buf=%v size=%v res=%v, (%v:)", tls, gid, gr, buf, size, res, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _getgr_r(tls, uintptr(0), gid, gr, buf, size, res) +} + +var _f1 uintptr +var _line3 uintptr +var _mem1 uintptr +var _gr1 Tgroup + +func Xsetgrent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + if _f1 != 0 { + Xfclose(tls, _f1) + } + _f1 = uintptr(0) +} + +func Xgetgrent(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var _ /* nmem at bp+16 */ Tsize_t + var _ /* res at bp+0 */ uintptr + var _ /* size at bp+8 */ Tsize_t + **(**Tsize_t)(__ccgo_up(bp + 8)) = uint64(0) + **(**Tsize_t)(__ccgo_up(bp + 16)) = uint64(0) + if !(_f1 != 0) { + _f1 = Xfopen(tls, __ccgo_ts+1277, __ccgo_ts+412) + } + if !(_f1 != 0) { + return uintptr(0) + } + X__getgrent_a(tls, _f1, uintptr(unsafe.Pointer(&_gr1)), uintptr(unsafe.Pointer(&_line3)), bp+8, uintptr(unsafe.Pointer(&_mem1)), bp+16, bp) + return **(**uintptr)(__ccgo_up(bp)) +} + +func Xgetgrgid(tls *TLS, gid Tgid_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v gid=%v, (%v:)", tls, gid, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var _ /* nmem at bp+16 */ Tsize_t + var _ /* res at bp+0 */ uintptr + var _ /* size at bp+8 */ Tsize_t + **(**Tsize_t)(__ccgo_up(bp + 8)) = uint64(0) + **(**Tsize_t)(__ccgo_up(bp + 16)) = uint64(0) + X__getgr_a(tls, uintptr(0), gid, uintptr(unsafe.Pointer(&_gr1)), uintptr(unsafe.Pointer(&_line3)), bp+8, uintptr(unsafe.Pointer(&_mem1)), bp+16, bp) + return **(**uintptr)(__ccgo_up(bp)) +} + +func Xgetgrnam(tls *TLS, name uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var _ /* nmem at bp+16 */ Tsize_t + var _ /* res at bp+0 */ uintptr + var _ /* size at bp+8 */ Tsize_t + **(**Tsize_t)(__ccgo_up(bp + 8)) = uint64(0) + **(**Tsize_t)(__ccgo_up(bp + 16)) = uint64(0) + X__getgr_a(tls, name, uint32(0), uintptr(unsafe.Pointer(&_gr1)), uintptr(unsafe.Pointer(&_line3)), bp+8, uintptr(unsafe.Pointer(&_mem1)), bp+16, bp) + return **(**uintptr)(__ccgo_up(bp)) +} + +func Xendgrent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + Xsetgrent(tls) +} + +func _atou(tls *TLS, s uintptr) (r uint32) { + var x uint32 + _ = x + x = uint32(0) + for { + if !(Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(s)))))-int32('0')) < uint32(10)) { + break + } + x = uint32(10)*x + Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(s)))))-Int32FromUint8('0')) + goto _1 + _1: + ; + **(**uintptr)(__ccgo_up(s)) = **(**uintptr)(__ccgo_up(s)) + 1 + } + return x +} + +func X__getgrent_a(tls *TLS, f uintptr, gr uintptr, line uintptr, size uintptr, mem uintptr, nmem uintptr, res uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v gr=%v line=%v size=%v mem=%v nmem=%v res=%v, (%v:)", tls, f, gr, line, size, mem, nmem, res, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var i, v13 Tsize_t + var l, v2 Tssize_t + var mems, v4 uintptr + var rv, v3 int32 + var _ /* cs at bp+8 */ int32 + var _ /* s at bp+0 */ uintptr + _, _, _, _, _, _, _, _ = i, l, mems, rv, v13, v2, v3, v4 + rv = 0 + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp+8) + for { + v2 = Xgetline(tls, line, size, f) + l = v2 + if v2 < 0 { + if Xferror(tls, f) != 0 { + v3 = **(**int32)(__ccgo_up(X__errno_location(tls))) + } else { + v3 = 0 + } + rv = v3 + Xfree(tls, **(**uintptr)(__ccgo_up(line))) + **(**uintptr)(__ccgo_up(line)) = uintptr(0) + gr = uintptr(0) + goto end + } + **(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(line)) + uintptr(l-int64(1)))) = uint8(0) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(line)) + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + (*Tgroup)(unsafe.Pointer(gr)).Fgr_name = v4 + v4 = Xstrchr(tls, **(**uintptr)(__ccgo_up(bp)), int32(':')) + **(**uintptr)(__ccgo_up(bp)) = v4 + if !(v4 != 0) { + goto _1 + } + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + **(**uint8)(__ccgo_up(v4)) = uint8(0) + (*Tgroup)(unsafe.Pointer(gr)).Fgr_passwd = **(**uintptr)(__ccgo_up(bp)) + v4 = Xstrchr(tls, **(**uintptr)(__ccgo_up(bp)), int32(':')) + **(**uintptr)(__ccgo_up(bp)) = v4 + if !(v4 != 0) { + goto _1 + } + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + **(**uint8)(__ccgo_up(v4)) = uint8(0) + (*Tgroup)(unsafe.Pointer(gr)).Fgr_gid = _atou(tls, bp) + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp))))) != int32(':') { + goto _1 + } + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + **(**uint8)(__ccgo_up(v4)) = uint8(0) + mems = **(**uintptr)(__ccgo_up(bp)) + break + goto _1 + _1: + } + **(**Tsize_t)(__ccgo_up(nmem)) = BoolUint64(!!(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)))) != 0)) + for { + if !(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)))) != 0) { + break + } + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp))))) == int32(',') { + **(**Tsize_t)(__ccgo_up(nmem)) = **(**Tsize_t)(__ccgo_up(nmem)) + 1 + } + goto _10 + _10: + ; + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + } + Xfree(tls, **(**uintptr)(__ccgo_up(mem))) + **(**uintptr)(__ccgo_up(mem)) = Xcalloc(tls, uint64(8), **(**Tsize_t)(__ccgo_up(nmem))+uint64(1)) + if !(**(**uintptr)(__ccgo_up(mem)) != 0) { + rv = **(**int32)(__ccgo_up(X__errno_location(tls))) + Xfree(tls, **(**uintptr)(__ccgo_up(line))) + **(**uintptr)(__ccgo_up(line)) = uintptr(0) + gr = uintptr(0) + goto end + } + if **(**uint8)(__ccgo_up(mems)) != 0 { + **(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(mem)))) = mems + **(**uintptr)(__ccgo_up(bp)) = mems + i = Uint64FromInt32(0) + for { + if !(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)))) != 0) { + break + } + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp))))) == int32(',') { + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + **(**uint8)(__ccgo_up(v4)) = uint8(0) + i = i + 1 + v13 = i + **(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(mem)) + uintptr(v13)*8)) = **(**uintptr)(__ccgo_up(bp)) + } + goto _11 + _11: + ; + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + } + i = i + 1 + v13 = i + **(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(mem)) + uintptr(v13)*8)) = uintptr(0) + } else { + **(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(mem)))) = uintptr(0) + } + (*Tgroup)(unsafe.Pointer(gr)).Fgr_mem = **(**uintptr)(__ccgo_up(mem)) + goto end +end: + ; + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 8)), uintptr(0)) + **(**uintptr)(__ccgo_up(res)) = gr + if rv != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = rv + } + return rv +} + +func Xgetgrouplist(tls *TLS, user uintptr, gid Tgid_t, groups uintptr, ngroups uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v user=%v gid=%v groups=%v ngroups=%v, (%v:)", tls, user, gid, groups, ngroups, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(96) + defer tls.Free(96) + var f, nscdbuf, v1 uintptr + var i, n, v9 Tssize_t + var nbytes Tsize_t + var nlim, ret, rv, v6 int32 + var v14 int64 + var v3, v4 Tuint32_t + var _ /* buf at bp+56 */ uintptr + var _ /* gr at bp+0 */ Tgroup + var _ /* mem at bp+64 */ uintptr + var _ /* nmem at bp+72 */ Tsize_t + var _ /* res at bp+32 */ uintptr + var _ /* resp at bp+44 */ [3]Tint32_t + var _ /* size at bp+80 */ Tsize_t + var _ /* swap at bp+40 */ int32 + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = f, i, n, nbytes, nlim, nscdbuf, ret, rv, v1, v14, v3, v4, v6, v9 + ret = -int32(1) + n = int64(1) + **(**int32)(__ccgo_up(bp + 40)) = 0 + nscdbuf = uintptr(0) + **(**uintptr)(__ccgo_up(bp + 56)) = uintptr(0) + **(**uintptr)(__ccgo_up(bp + 64)) = uintptr(0) + **(**Tsize_t)(__ccgo_up(bp + 72)) = uint64(0) + nlim = **(**int32)(__ccgo_up(ngroups)) + if nlim >= int32(1) { + v1 = groups + groups += 4 + **(**Tgid_t)(__ccgo_up(v1)) = gid + } + f = X__nscd_query(tls, int32(GETINITGR), user, bp+44, uint64(12), bp+40) + if !(f != 0) { + goto cleanup + } + if (**(**[3]Tint32_t)(__ccgo_up(bp + 44)))[int32(INITGRFOUND)] != 0 { + nscdbuf = Xcalloc(tls, Uint64FromInt32((**(**[3]Tint32_t)(__ccgo_up(bp + 44)))[int32(INITGRNGRPS)]), uint64(4)) + if !(nscdbuf != 0) { + goto cleanup + } + nbytes = uint64(4) * Uint64FromInt32((**(**[3]Tint32_t)(__ccgo_up(bp + 44)))[int32(INITGRNGRPS)]) + if nbytes != 0 && !(Xfread(tls, nscdbuf, nbytes, uint64(1), f) != 0) { + if !(Xferror(tls, f) != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EIO) + } + goto cleanup + } + if **(**int32)(__ccgo_up(bp + 40)) != 0 { + i = 0 + for { + if !(i < int64((**(**[3]Tint32_t)(__ccgo_up(bp + 44)))[int32(INITGRNGRPS)])) { + break + } + v3 = **(**Tuint32_t)(__ccgo_up(nscdbuf + uintptr(i)*4)) + v4 = v3>>int32(24) | v3>>int32(8)&uint32(0xff00) | v3< int64(nlim) { + v14 = int64(-int32(1)) + } else { + v14 = n + } + ret = int32(v14) + **(**int32)(__ccgo_up(ngroups)) = int32(n) + goto cleanup +cleanup: + ; + if f != 0 { + Xfclose(tls, f) + } + Xfree(tls, nscdbuf) + Xfree(tls, **(**uintptr)(__ccgo_up(bp + 56))) + Xfree(tls, **(**uintptr)(__ccgo_up(bp + 64))) + return ret +} + +func _itoa2(tls *TLS, p uintptr, x Tuint32_t) (r uintptr) { + var v1 uintptr + _ = v1 + // number of digits in a uint32_t + NUL + p = p + uintptr(11) + p = p - 1 + v1 = p + **(**uint8)(__ccgo_up(v1)) = uint8(0) + for cond := true; cond; cond = x != 0 { + p = p - 1 + v1 = p + **(**uint8)(__ccgo_up(v1)) = uint8(uint32('0') + x%uint32(10)) + x = x / uint32(10) + } + return p +} + +func X__getpw_a(tls *TLS, name uintptr, uid Tuid_t, pw uintptr, buf uintptr, size uintptr, res uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v uid=%v pw=%v buf=%v size=%v res=%v, (%v:)", tls, name, uid, pw, buf, size, res, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var f, key, tmp uintptr + var len1 Tsize_t + var req Tint32_t + var rv, v1 int32 + var _ /* cs at bp+4 */ int32 + var _ /* passwdbuf at bp+8 */ [9]Tint32_t + var _ /* uidbuf at bp+44 */ [11]uint8 + _, _, _, _, _, _, _ = f, key, len1, req, rv, tmp, v1 + rv = 0 + **(**uintptr)(__ccgo_up(res)) = uintptr(0) + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp+4) + f = Xfopen(tls, __ccgo_ts+1288, __ccgo_ts+412) + if !(f != 0) { + rv = **(**int32)(__ccgo_up(X__errno_location(tls))) + goto done + } + for { + v1 = X__getpwent_a(tls, f, pw, buf, size, res) + rv = v1 + if !(!(v1 != 0) && **(**uintptr)(__ccgo_up(res)) != 0) { + break + } + if name != 0 && !(Xstrcmp(tls, name, (*Tpasswd)(unsafe.Pointer(**(**uintptr)(__ccgo_up(res)))).Fpw_name) != 0) || !(name != 0) && (*Tpasswd)(unsafe.Pointer(**(**uintptr)(__ccgo_up(res)))).Fpw_uid == uid { + break + } + } + Xfclose(tls, f) + if !(**(**uintptr)(__ccgo_up(res)) != 0) && (rv == 0 || rv == int32(ENOENT) || rv == int32(ENOTDIR)) { + if name != 0 { + v1 = GETPWBYNAME + } else { + v1 = int32(GETPWBYUID) + } + req = v1 + **(**[9]Tint32_t)(__ccgo_up(bp + 8)) = [9]Tint32_t{} + len1 = uint64(0) + **(**[11]uint8)(__ccgo_up(bp + 44)) = [11]uint8{} + if name != 0 { + key = name + } else { + /* uid outside of this range can't be queried with the + * nscd interface, but might happen if uid_t ever + * happens to be a larger type (this is not true as of + * now) + */ + if uid < uint32(0) || uid > uint32(0xffffffff) { + rv = 0 + goto done + } + key = _itoa2(tls, bp+44, uid) + } + *(*[1]int32)(unsafe.Pointer(bp)) = [1]int32{} + f = X__nscd_query(tls, req, key, bp+8, uint64(36), bp) + if !(f != 0) { + rv = **(**int32)(__ccgo_up(X__errno_location(tls))) + goto done + } + if !((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWFOUND)] != 0) { + rv = 0 + goto cleanup_f + } + /* A zero length response from nscd is invalid. We ignore + * invalid responses and just report an error, rather than + * trying to do something with them. + */ + if !((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWNAMELEN)] != 0) || !((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWPASSWDLEN)] != 0) || !((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWGECOSLEN)] != 0) || !((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWDIRLEN)] != 0) || !((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWSHELLLEN)] != 0) { + rv = int32(EIO) + goto cleanup_f + } + if Uint64FromInt32((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWNAMELEN)]|(**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWPASSWDLEN)]|(**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWGECOSLEN)]|(**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWDIRLEN)]|(**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWSHELLLEN)]) >= Uint64FromUint64(0xffffffffffffffff)/Uint64FromInt32(8) { + rv = int32(ENOMEM) + goto cleanup_f + } + len1 = Uint64FromInt32((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWNAMELEN)] + (**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWPASSWDLEN)] + (**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWGECOSLEN)] + (**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWDIRLEN)] + (**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWSHELLLEN)]) + if len1 > **(**Tsize_t)(__ccgo_up(size)) || !(**(**uintptr)(__ccgo_up(buf)) != 0) { + tmp = Xrealloc(tls, **(**uintptr)(__ccgo_up(buf)), len1) + if !(tmp != 0) { + rv = **(**int32)(__ccgo_up(X__errno_location(tls))) + goto cleanup_f + } + **(**uintptr)(__ccgo_up(buf)) = tmp + **(**Tsize_t)(__ccgo_up(size)) = len1 + } + if !(Xfread(tls, **(**uintptr)(__ccgo_up(buf)), len1, uint64(1), f) != 0) { + if Xferror(tls, f) != 0 { + v1 = **(**int32)(__ccgo_up(X__errno_location(tls))) + } else { + v1 = int32(EIO) + } + rv = v1 + goto cleanup_f + } + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_name = **(**uintptr)(__ccgo_up(buf)) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_passwd = (*Tpasswd)(unsafe.Pointer(pw)).Fpw_name + uintptr((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWNAMELEN)]) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_gecos = (*Tpasswd)(unsafe.Pointer(pw)).Fpw_passwd + uintptr((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWPASSWDLEN)]) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_dir = (*Tpasswd)(unsafe.Pointer(pw)).Fpw_gecos + uintptr((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWGECOSLEN)]) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_shell = (*Tpasswd)(unsafe.Pointer(pw)).Fpw_dir + uintptr((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWDIRLEN)]) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_uid = Uint32FromInt32((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWUID)]) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_gid = Uint32FromInt32((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWGID)]) + /* Don't assume that nscd made sure to null terminate strings. + * It's supposed to, but malicious nscd should be ignored + * rather than causing a crash. + */ + if **(**uint8)(__ccgo_up((*Tpasswd)(unsafe.Pointer(pw)).Fpw_passwd + uintptr(-Int32FromInt32(1)))) != 0 || **(**uint8)(__ccgo_up((*Tpasswd)(unsafe.Pointer(pw)).Fpw_gecos + uintptr(-Int32FromInt32(1)))) != 0 || **(**uint8)(__ccgo_up((*Tpasswd)(unsafe.Pointer(pw)).Fpw_dir + uintptr(-Int32FromInt32(1)))) != 0 || **(**uint8)(__ccgo_up((*Tpasswd)(unsafe.Pointer(pw)).Fpw_shell + uintptr((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWSHELLLEN)]-int32(1)))) != 0 { + rv = int32(EIO) + goto cleanup_f + } + if name != 0 && Xstrcmp(tls, name, (*Tpasswd)(unsafe.Pointer(pw)).Fpw_name) != 0 || !(name != 0) && uid != (*Tpasswd)(unsafe.Pointer(pw)).Fpw_uid { + rv = int32(EIO) + goto cleanup_f + } + **(**uintptr)(__ccgo_up(res)) = pw + goto cleanup_f + cleanup_f: + ; + Xfclose(tls, f) + goto done + } + goto done +done: + ; + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 4)), uintptr(0)) + if rv != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = rv + } + return rv +} + +func _getpw_r(tls *TLS, name uintptr, uid Tuid_t, pw uintptr, buf uintptr, size Tsize_t, res uintptr) (r int32) { + bp := tls.Alloc(32) + defer tls.Free(32) + var rv int32 + var _ /* cs at bp+16 */ int32 + var _ /* len at bp+8 */ Tsize_t + var _ /* line at bp+0 */ uintptr + _ = rv + **(**uintptr)(__ccgo_up(bp)) = uintptr(0) + **(**Tsize_t)(__ccgo_up(bp + 8)) = uint64(0) + rv = 0 + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp+16) + rv = X__getpw_a(tls, name, uid, pw, bp, bp+8, res) + if **(**uintptr)(__ccgo_up(res)) != 0 && size < **(**Tsize_t)(__ccgo_up(bp + 8)) { + **(**uintptr)(__ccgo_up(res)) = uintptr(0) + rv = int32(ERANGE) + } + if **(**uintptr)(__ccgo_up(res)) != 0 { + Xmemcpy(tls, buf, **(**uintptr)(__ccgo_up(bp)), **(**Tsize_t)(__ccgo_up(bp + 8))) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_name = uintptr(int64((*Tpasswd)(unsafe.Pointer(pw)).Fpw_name)-int64(**(**uintptr)(__ccgo_up(bp)))) + buf + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_passwd = uintptr(int64((*Tpasswd)(unsafe.Pointer(pw)).Fpw_passwd)-int64(**(**uintptr)(__ccgo_up(bp)))) + buf + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_gecos = uintptr(int64((*Tpasswd)(unsafe.Pointer(pw)).Fpw_gecos)-int64(**(**uintptr)(__ccgo_up(bp)))) + buf + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_dir = uintptr(int64((*Tpasswd)(unsafe.Pointer(pw)).Fpw_dir)-int64(**(**uintptr)(__ccgo_up(bp)))) + buf + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_shell = uintptr(int64((*Tpasswd)(unsafe.Pointer(pw)).Fpw_shell)-int64(**(**uintptr)(__ccgo_up(bp)))) + buf + } + Xfree(tls, **(**uintptr)(__ccgo_up(bp))) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 16)), uintptr(0)) + if rv != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = rv + } + return rv +} + +func Xgetpwnam_r(tls *TLS, name uintptr, pw uintptr, buf uintptr, size Tsize_t, res uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v pw=%v buf=%v size=%v res=%v, (%v:)", tls, name, pw, buf, size, res, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _getpw_r(tls, name, uint32(0), pw, buf, size, res) +} + +func Xgetpwuid_r(tls *TLS, uid Tuid_t, pw uintptr, buf uintptr, size Tsize_t, res uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v uid=%v pw=%v buf=%v size=%v res=%v, (%v:)", tls, uid, pw, buf, size, res, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _getpw_r(tls, uintptr(0), uid, pw, buf, size, res) +} + +var _f2 uintptr +var _line4 uintptr +var _pw1 Tpasswd +var _size Tsize_t + +func Xsetpwent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + if _f2 != 0 { + Xfclose(tls, _f2) + } + _f2 = uintptr(0) +} + +func Xgetpwent(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* res at bp+0 */ uintptr + if !(_f2 != 0) { + _f2 = Xfopen(tls, __ccgo_ts+1288, __ccgo_ts+412) + } + if !(_f2 != 0) { + return uintptr(0) + } + X__getpwent_a(tls, _f2, uintptr(unsafe.Pointer(&_pw1)), uintptr(unsafe.Pointer(&_line4)), uintptr(unsafe.Pointer(&_size)), bp) + return **(**uintptr)(__ccgo_up(bp)) +} + +func Xgetpwuid(tls *TLS, uid Tuid_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v uid=%v, (%v:)", tls, uid, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* res at bp+0 */ uintptr + X__getpw_a(tls, uintptr(0), uid, uintptr(unsafe.Pointer(&_pw1)), uintptr(unsafe.Pointer(&_line4)), uintptr(unsafe.Pointer(&_size)), bp) + return **(**uintptr)(__ccgo_up(bp)) +} + +func Xgetpwnam(tls *TLS, name uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* res at bp+0 */ uintptr + X__getpw_a(tls, name, uint32(0), uintptr(unsafe.Pointer(&_pw1)), uintptr(unsafe.Pointer(&_line4)), uintptr(unsafe.Pointer(&_size)), bp) + return **(**uintptr)(__ccgo_up(bp)) +} + +func Xendpwent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + Xsetpwent(tls) +} + +func _atou1(tls *TLS, s uintptr) (r uint32) { + var x uint32 + _ = x + x = uint32(0) + for { + if !(Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(s)))))-int32('0')) < uint32(10)) { + break + } + x = uint32(10)*x + Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(s)))))-Int32FromUint8('0')) + goto _1 + _1: + ; + **(**uintptr)(__ccgo_up(s)) = **(**uintptr)(__ccgo_up(s)) + 1 + } + return x +} + +func X__getpwent_a(tls *TLS, f uintptr, pw uintptr, line uintptr, size uintptr, res uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v pw=%v line=%v size=%v res=%v, (%v:)", tls, f, pw, line, size, res, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var l, v2 Tssize_t + var rv, v3 int32 + var v4 uintptr + var _ /* cs at bp+8 */ int32 + var _ /* s at bp+0 */ uintptr + _, _, _, _, _ = l, rv, v2, v3, v4 + rv = 0 + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp+8) + for { + v2 = Xgetline(tls, line, size, f) + l = v2 + if v2 < 0 { + if Xferror(tls, f) != 0 { + v3 = **(**int32)(__ccgo_up(X__errno_location(tls))) + } else { + v3 = 0 + } + rv = v3 + Xfree(tls, **(**uintptr)(__ccgo_up(line))) + **(**uintptr)(__ccgo_up(line)) = uintptr(0) + pw = uintptr(0) + break + } + **(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(line)) + uintptr(l-int64(1)))) = uint8(0) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(line)) + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_name = v4 + v4 = Xstrchr(tls, **(**uintptr)(__ccgo_up(bp)), int32(':')) + **(**uintptr)(__ccgo_up(bp)) = v4 + if !(v4 != 0) { + goto _1 + } + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + **(**uint8)(__ccgo_up(v4)) = uint8(0) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_passwd = **(**uintptr)(__ccgo_up(bp)) + v4 = Xstrchr(tls, **(**uintptr)(__ccgo_up(bp)), int32(':')) + **(**uintptr)(__ccgo_up(bp)) = v4 + if !(v4 != 0) { + goto _1 + } + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + **(**uint8)(__ccgo_up(v4)) = uint8(0) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_uid = _atou1(tls, bp) + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp))))) != int32(':') { + goto _1 + } + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + **(**uint8)(__ccgo_up(v4)) = uint8(0) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_gid = _atou1(tls, bp) + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp))))) != int32(':') { + goto _1 + } + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + **(**uint8)(__ccgo_up(v4)) = uint8(0) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_gecos = **(**uintptr)(__ccgo_up(bp)) + v4 = Xstrchr(tls, **(**uintptr)(__ccgo_up(bp)), int32(':')) + **(**uintptr)(__ccgo_up(bp)) = v4 + if !(v4 != 0) { + goto _1 + } + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + **(**uint8)(__ccgo_up(v4)) = uint8(0) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_dir = **(**uintptr)(__ccgo_up(bp)) + v4 = Xstrchr(tls, **(**uintptr)(__ccgo_up(bp)), int32(':')) + **(**uintptr)(__ccgo_up(bp)) = v4 + if !(v4 != 0) { + goto _1 + } + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + **(**uint8)(__ccgo_up(v4)) = uint8(0) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_shell = **(**uintptr)(__ccgo_up(bp)) + break + goto _1 + _1: + } + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 8)), uintptr(0)) + **(**uintptr)(__ccgo_up(res)) = pw + if rv != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = rv + } + return rv +} + +func Xsetspent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } +} + +func Xendspent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } +} + +func Xgetspent(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(0) +} + +func Xlckpwdf(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return 0 +} + +func Xulckpwdf(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return 0 +} + +var _addr = struct { + Fsun_family int16 + Fsun_path [21]uint8 +}{ + Fsun_family: int16(PF_LOCAL), + Fsun_path: [21]uint8{'/', 'v', 'a', 'r', '/', 'r', 'u', 'n', '/', 'n', 's', 'c', 'd', '/', 's', 'o', 'c', 'k', 'e', 't'}, +} + +func X__nscd_query(tls *TLS, req Tint32_t, key uintptr, buf uintptr, len1 Tsize_t, swap uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v req=%v key=%v buf=%v len1=%v swap=%v, (%v:)", tls, req, key, buf, len1, swap, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(112) + defer tls.Free(112) + var errno_save, fd int32 + var f, v1 uintptr + var i Tsize_t + var v3, v4 Tuint32_t + var _ /* msg at bp+48 */ Tmsghdr + var _ /* req_buf at bp+32 */ [3]Tint32_t + _, _, _, _, _, _, _ = errno_save, f, fd, i, v1, v3, v4 + f = uintptr(0) + **(**[3]Tint32_t)(__ccgo_up(bp + 32)) = [3]Tint32_t{ + 0: int32(NSCDVERSION), + 1: req, + 2: Int32FromUint64(Xstrnlen(tls, key, uint64(LOGIN_NAME_MAX)) + uint64(1)), + } + *(*[2]Tiovec)(unsafe.Pointer(bp)) = [2]Tiovec{ + 0: { + Fiov_base: bp + 32, + Fiov_len: uint64(12), + }, + 1: { + Fiov_base: key, + Fiov_len: _strlen(tls, key) + uint64(1), + }, + } + **(**Tmsghdr)(__ccgo_up(bp + 48)) = Tmsghdr{ + Fmsg_iov: bp, + Fmsg_iovlen: int32(2), + } + errno_save = **(**int32)(__ccgo_up(X__errno_location(tls))) + **(**int32)(__ccgo_up(swap)) = 0 + goto retry +retry: + ; + Xmemset(tls, buf, 0, len1) + **(**Tint32_t)(__ccgo_up(buf)) = int32(NSCDVERSION) + fd = Xsocket(tls, int32(PF_LOCAL), Int32FromInt32(SOCK_STREAM)|Int32FromInt32(SOCK_CLOEXEC), 0) + if fd < 0 { + if **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EAFNOSUPPORT) { + f = Xfopen(tls, __ccgo_ts+1300, __ccgo_ts+1310) + if f != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = errno_save + } + return f + } + return uintptr(0) + } + v1 = Xfdopen(tls, fd, __ccgo_ts+1313) + f = v1 + if !(v1 != 0) { + Xclose(tls, fd) + return uintptr(0) + } + if (**(**[3]Tint32_t)(__ccgo_up(bp + 32)))[int32(2)] > int32(LOGIN_NAME_MAX) { + return f + } + if Xconnect(tls, fd, uintptr(unsafe.Pointer(&_addr)), uint32(24)) < 0 { + /* If there isn't a running nscd we simulate a "not found" + * result and the caller is responsible for calling + * fclose on the (unconnected) socket. The value of + * errno must be left unchanged in this case. */ + if **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EACCES) || **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(ECONNREFUSED) || **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(ENOENT) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = errno_save + return f + } + goto error + } + if Xsendmsg(tls, fd, bp+48, int32(MSG_NOSIGNAL)) < 0 { + goto error + } + if !(Xfread(tls, buf, len1, uint64(1), f) != 0) { + /* If the VERSION entry mismatches nscd will disconnect. The + * most likely cause is that the endianness mismatched. So, we + * byteswap and try once more. (if we already swapped, just + * fail out) + */ + if Xferror(tls, f) != 0 { + goto error + } + if !(**(**int32)(__ccgo_up(swap)) != 0) { + Xfclose(tls, f) + i = uint64(0) + for { + if !(i < Uint64FromInt64(12)/Uint64FromInt64(4)) { + break + } + v3 = Uint32FromInt32((**(**[3]Tint32_t)(__ccgo_up(bp + 32)))[i]) + v4 = v3>>int32(24) | v3>>int32(8)&uint32(0xff00) | v3<>int32(24) | v3>>int32(8)&uint32(0xff00) | v3< %v", r1) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var i Tsize_t + var r, v1 int32 + var v4 uintptr + _, _, _, _ = i, r, v1, v4 + Xflockfile(tls, f) + v1 = Xfprintf(tls, f, __ccgo_ts+1315, VaList(bp+8, (*Tgroup)(unsafe.Pointer(gr)).Fgr_name, (*Tgroup)(unsafe.Pointer(gr)).Fgr_passwd, (*Tgroup)(unsafe.Pointer(gr)).Fgr_gid)) + r = v1 + if v1 < 0 { + goto done + } + if (*Tgroup)(unsafe.Pointer(gr)).Fgr_mem != 0 { + i = uint64(0) + for { + if !(**(**uintptr)(__ccgo_up((*Tgroup)(unsafe.Pointer(gr)).Fgr_mem + uintptr(i)*8)) != 0) { + break + } + if i != 0 { + v4 = __ccgo_ts + 1325 + } else { + v4 = __ccgo_ts + } + v1 = Xfprintf(tls, f, __ccgo_ts+1327, VaList(bp+8, v4, **(**uintptr)(__ccgo_up((*Tgroup)(unsafe.Pointer(gr)).Fgr_mem + uintptr(i)*8)))) + r = v1 + if v1 < 0 { + goto done + } + goto _2 + _2: + ; + i = i + 1 + } + } + r = Xfputc(tls, int32('\n'), f) + goto done +done: + ; + Xfunlockfile(tls, f) + if r < 0 { + v1 = -int32(1) + } else { + v1 = 0 + } + return v1 +} + +func Xputpwent(tls *TLS, pw uintptr, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v pw=%v f=%v, (%v:)", tls, pw, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var v1 int32 + _ = v1 + if Xfprintf(tls, f, __ccgo_ts+1332, VaList(bp+8, (*Tpasswd)(unsafe.Pointer(pw)).Fpw_name, (*Tpasswd)(unsafe.Pointer(pw)).Fpw_passwd, (*Tpasswd)(unsafe.Pointer(pw)).Fpw_uid, (*Tpasswd)(unsafe.Pointer(pw)).Fpw_gid, (*Tpasswd)(unsafe.Pointer(pw)).Fpw_gecos, (*Tpasswd)(unsafe.Pointer(pw)).Fpw_dir, (*Tpasswd)(unsafe.Pointer(pw)).Fpw_shell)) < 0 { + v1 = -int32(1) + } else { + v1 = 0 + } + return v1 +} + +func Xputspent(tls *TLS, sp uintptr, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v sp=%v f=%v, (%v:)", tls, sp, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(144) + defer tls.Free(144) + var v1, v10, v12, v14, v16, v4, v6, v8 int32 + var v11, v13, v15, v5, v7, v9 int64 + var v17 uint64 + var v2, v3 uintptr + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = v1, v10, v11, v12, v13, v14, v15, v16, v17, v2, v3, v4, v5, v6, v7, v8, v9 + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_namp != 0 { + v2 = (*Tspwd)(unsafe.Pointer(sp)).Fsp_namp + } else { + v2 = __ccgo_ts + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_pwdp != 0 { + v3 = (*Tspwd)(unsafe.Pointer(sp)).Fsp_pwdp + } else { + v3 = __ccgo_ts + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_lstchg == int64(-int32(1)) { + v4 = 0 + } else { + v4 = -int32(1) + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_lstchg == int64(-int32(1)) { + v5 = 0 + } else { + v5 = (*Tspwd)(unsafe.Pointer(sp)).Fsp_lstchg + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_min == int64(-int32(1)) { + v6 = 0 + } else { + v6 = -int32(1) + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_min == int64(-int32(1)) { + v7 = 0 + } else { + v7 = (*Tspwd)(unsafe.Pointer(sp)).Fsp_min + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_max == int64(-int32(1)) { + v8 = 0 + } else { + v8 = -int32(1) + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_max == int64(-int32(1)) { + v9 = 0 + } else { + v9 = (*Tspwd)(unsafe.Pointer(sp)).Fsp_max + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_warn == int64(-int32(1)) { + v10 = 0 + } else { + v10 = -int32(1) + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_warn == int64(-int32(1)) { + v11 = 0 + } else { + v11 = (*Tspwd)(unsafe.Pointer(sp)).Fsp_warn + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_inact == int64(-int32(1)) { + v12 = 0 + } else { + v12 = -int32(1) + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_inact == int64(-int32(1)) { + v13 = 0 + } else { + v13 = (*Tspwd)(unsafe.Pointer(sp)).Fsp_inact + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_expire == int64(-int32(1)) { + v14 = 0 + } else { + v14 = -int32(1) + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_expire == int64(-int32(1)) { + v15 = 0 + } else { + v15 = (*Tspwd)(unsafe.Pointer(sp)).Fsp_expire + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_flag == Uint64FromInt32(-Int32FromInt32(1)) { + v16 = 0 + } else { + v16 = -int32(1) + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_flag == Uint64FromInt32(-Int32FromInt32(1)) { + v17 = uint64(0) + } else { + v17 = (*Tspwd)(unsafe.Pointer(sp)).Fsp_flag + } + if Xfprintf(tls, f, __ccgo_ts+1354, VaList(bp+8, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17)) < 0 { + v1 = -int32(1) + } else { + v1 = 0 + } + return v1 +} + +func X__rand48_step(tls *TLS, xi uintptr, lc uintptr) (r Tuint64_t) { + if __ccgo_strace { + trc("tls=%v xi=%v lc=%v, (%v:)", tls, xi, lc, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, x Tuint64_t + _, _ = a, x + x = uint64(uint32(**(**uint16)(__ccgo_up(xi)))|(uint32(**(**uint16)(__ccgo_up(xi + 1*2)))+0)<> int32(16)) + **(**uint16)(__ccgo_up(xi + 2*2)) = uint16(x >> int32(32)) + return x & uint64(0xffffffffffff) +} + +func Xerand48(tls *TLS, s uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* x at bp+0 */ struct { + Ff [0]float64 + Fu Tuint64_t + } + *(*struct { + Ff [0]float64 + Fu Tuint64_t + })(unsafe.Pointer(bp)) = struct { + Ff [0]float64 + Fu Tuint64_t + }{} + *(*uint64)(unsafe.Pointer(bp)) = uint64(0x3ff0000000000000) | X__rand48_step(tls, s, uintptr(unsafe.Pointer(&X__seed48))+uintptr(3)*2)< %v", r) }() + } + return Xerand48(tls, uintptr(unsafe.Pointer(&X__seed48))) +} + +func Xlcong48(tls *TLS, p uintptr) { + if __ccgo_strace { + trc("tls=%v p=%v, (%v:)", tls, p, origin(2)) + } + Xmemcpy(tls, uintptr(unsafe.Pointer(&X__seed48)), p, uint64(14)) +} + +func Xnrand48(tls *TLS, s uintptr) (r int64) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Int64FromUint64(X__rand48_step(tls, s, uintptr(unsafe.Pointer(&X__seed48))+uintptr(3)*2) >> int32(17)) +} + +func Xlrand48(tls *TLS) (r int64) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xnrand48(tls, uintptr(unsafe.Pointer(&X__seed48))) +} + +func Xjrand48(tls *TLS, s uintptr) (r int64) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int64(Int32FromUint64(X__rand48_step(tls, s, uintptr(unsafe.Pointer(&X__seed48))+uintptr(3)*2) >> Int32FromInt32(16))) +} + +func Xmrand48(tls *TLS) (r int64) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xjrand48(tls, uintptr(unsafe.Pointer(&X__seed48))) +} + +var _seed Tuint64_t + +func Xsrand(tls *TLS, s uint32) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + } + _seed = uint64(s - uint32(1)) +} + +func Xrand(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + _seed = uint64(6364136223846793005)*_seed + uint64(1) + return Int32FromUint64(_seed >> int32(33)) +} + +func _temper(tls *TLS, x uint32) (r uint32) { + x = x ^ x>>int32(11) + x = x ^ x<>int32(18) + return x +} + +func Xrand_r(tls *TLS, seed uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v seed=%v, (%v:)", tls, seed, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 uint32 + _ = v1 + v1 = **(**uint32)(__ccgo_up(seed))*Uint32FromInt32(1103515245) + Uint32FromInt32(12345) + **(**uint32)(__ccgo_up(seed)) = v1 + return Int32FromUint32(_temper(tls, v1) / uint32(2)) +} + +/* +this code uses the same lagged fibonacci generator as the +original bsd random implementation except for the seeding +which was broken in the original +*/ + +var _init = [32]Tuint32_t{ + 1: uint32(0x5851f42d), + 2: uint32(0xc0b18ccf), + 3: uint32(0xcbb5f646), + 4: uint32(0xc7033129), + 5: uint32(0x30705b04), + 6: uint32(0x20fd5db4), + 7: uint32(0x9a8b7f78), + 8: uint32(0x502959d8), + 9: uint32(0xab894868), + 10: uint32(0x6c0356a7), + 11: uint32(0x88cdb7ff), + 12: uint32(0xb477d43f), + 13: uint32(0x70a3a52b), + 14: uint32(0xa8e4baf1), + 15: uint32(0xfd8341fc), + 16: uint32(0x8ae16fd9), + 17: uint32(0x742d2f7a), + 18: uint32(0x0d1f0796), + 19: uint32(0x76035e09), + 20: uint32(0x40f7702c), + 21: uint32(0x6fa72ca5), + 22: uint32(0xaaa84157), + 23: uint32(0x58a0df74), + 24: uint32(0xc74a0364), + 25: uint32(0xae533cc4), + 26: uint32(0x04185faf), + 27: uint32(0x6de3b115), + 28: uint32(0x0cab8628), + 29: uint32(0xf043bfa4), + 30: uint32(0x398150e9), + 31: uint32(0x37521657), +} + +var _n = int32(31) +var _i = int32(3) +var _j = int32(0) +var _x1 = uintptr(unsafe.Pointer(&_init)) + uintptr(1)*4 +var _lock3 [1]int32 + +func _lcg31(tls *TLS, x Tuint32_t) (r Tuint32_t) { + return (uint32(1103515245)*x + uint32(12345)) & uint32(0x7fffffff) +} + +func _lcg64(tls *TLS, x Tuint64_t) (r Tuint64_t) { + return uint64(6364136223846793005)*x + uint64(1) +} + +func _savestate(tls *TLS) (r uintptr) { + **(**Tuint32_t)(__ccgo_up(_x1 + uintptr(-Int32FromInt32(1))*4)) = Uint32FromInt32(_n<> int32(16)) + _i = Int32FromUint32(**(**Tuint32_t)(__ccgo_up(_x1 + uintptr(-Int32FromInt32(1))*4)) >> Int32FromInt32(8) & uint32(0xff)) + _j = Int32FromUint32(**(**Tuint32_t)(__ccgo_up(_x1 + uintptr(-Int32FromInt32(1))*4)) & uint32(0xff)) +} + +func ___srandom(tls *TLS, seed uint32) { + var k, v1 int32 + var s Tuint64_t + _, _, _ = k, s, v1 + s = uint64(seed) + if _n == 0 { + **(**Tuint32_t)(__ccgo_up(_x1)) = uint32(s) + return + } + if _n == int32(31) || _n == int32(7) { + v1 = int32(3) + } else { + v1 = int32(1) + } + _i = v1 + _j = 0 + k = 0 + for { + if !(k < _n) { + break + } + s = _lcg64(tls, s) + **(**Tuint32_t)(__ccgo_up(_x1 + uintptr(k)*4)) = uint32(s >> int32(32)) + goto _2 + _2: + ; + k = k + 1 + } + /* make sure x contains at least one odd number */ + **(**Tuint32_t)(__ccgo_up(_x1)) |= uint32(1) +} + +func Xsrandom(tls *TLS, seed uint32) { + if __ccgo_strace { + trc("tls=%v seed=%v, (%v:)", tls, seed, origin(2)) + } + ___lock(tls, uintptr(unsafe.Pointer(&_lock3))) + ___srandom(tls, seed) + ___unlock(tls, uintptr(unsafe.Pointer(&_lock3))) +} + +func Xinitstate(tls *TLS, seed uint32, state uintptr, size Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v seed=%v state=%v size=%v, (%v:)", tls, seed, state, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + var old uintptr + _ = old + if size < uint64(8) { + return uintptr(0) + } + ___lock(tls, uintptr(unsafe.Pointer(&_lock3))) + old = _savestate(tls) + if size < uint64(32) { + _n = 0 + } else { + if size < uint64(64) { + _n = int32(7) + } else { + if size < uint64(128) { + _n = int32(15) + } else { + if size < uint64(256) { + _n = int32(31) + } else { + _n = int32(63) + } + } + } + } + _x1 = state + uintptr(1)*4 + ___srandom(tls, seed) + _savestate(tls) + ___unlock(tls, uintptr(unsafe.Pointer(&_lock3))) + return old +} + +func Xsetstate(tls *TLS, state uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v state=%v, (%v:)", tls, state, origin(2)) + defer func() { trc("-> %v", r) }() + } + var old uintptr + _ = old + ___lock(tls, uintptr(unsafe.Pointer(&_lock3))) + old = _savestate(tls) + _loadstate(tls, state) + ___unlock(tls, uintptr(unsafe.Pointer(&_lock3))) + return old +} + +func Xrandom(tls *TLS) (r int64) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + var k int64 + var v1 Tuint32_t + var v2 int32 + _, _, _ = k, v1, v2 + ___lock(tls, uintptr(unsafe.Pointer(&_lock3))) + if _n == 0 { + v1 = _lcg31(tls, **(**Tuint32_t)(__ccgo_up(_x1))) + **(**Tuint32_t)(__ccgo_up(_x1)) = v1 + k = Int64FromUint32(v1) + goto end + } + **(**Tuint32_t)(__ccgo_up(_x1 + uintptr(_i)*4)) += **(**Tuint32_t)(__ccgo_up(_x1 + uintptr(_j)*4)) + k = Int64FromUint32(**(**Tuint32_t)(__ccgo_up(_x1 + uintptr(_i)*4)) >> int32(1)) + _i = _i + 1 + v2 = _i + if v2 == _n { + _i = 0 + } + _j = _j + 1 + v2 = _j + if v2 == _n { + _j = 0 + } + goto end +end: + ; + ___unlock(tls, uintptr(unsafe.Pointer(&_lock3))) + return k +} + +func Xseed48(tls *TLS, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + Xmemcpy(tls, uintptr(unsafe.Pointer(&_p1)), uintptr(unsafe.Pointer(&X__seed48)), uint64(6)) + Xmemcpy(tls, uintptr(unsafe.Pointer(&X__seed48)), s, uint64(6)) + return uintptr(unsafe.Pointer(&_p1)) +} + +var _p1 [3]uint16 + +func Xsrand48(tls *TLS, seed int64) { + if __ccgo_strace { + trc("tls=%v seed=%v, (%v:)", tls, seed, origin(2)) + } + bp := tls.Alloc(16) + defer tls.Free(16) + *(*[3]uint16)(unsafe.Pointer(bp)) = [3]uint16{ + 0: uint16(0x330e), + 1: Uint16FromInt64(seed), + 2: Uint16FromInt64(seed >> int32(16)), + } + Xseed48(tls, bp) +} + +func Xexecl(tls *TLS, path uintptr, argv0 uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v argv0=%v va=%v, (%v:)", tls, path, argv0, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var argc, i int32 + var argv uintptr + var v2 t__predefined_size_t + _, _, _, _, _ = ap, argc, argv, i, v2 + defer func() { Xrealloc(tls, argv, 0) }() + ap = va + argc = int32(1) + for { + if !(VaUintptr(&ap) != 0) { + break + } + goto _1 + _1: + ; + argc = argc + 1 + } + _ = ap + v2 = Uint64FromInt32(argc+int32(1)) * 8 + argv = Xrealloc(tls, argv, v2) + ap = va + *(*uintptr)(unsafe.Add(unsafe.Pointer(argv), 0*8)) = argv0 + i = int32(1) + for { + if !(i < argc) { + break + } + *(*uintptr)(unsafe.Add(unsafe.Pointer(argv), i*8)) = VaUintptr(&ap) + goto _3 + _3: + ; + i = i + 1 + } + *(*uintptr)(unsafe.Add(unsafe.Pointer(argv), i*8)) = UintptrFromInt32(0) + _ = ap + return Xexecv(tls, path, argv) + return r +} + +func Xexecle(tls *TLS, path uintptr, argv0 uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v argv0=%v va=%v, (%v:)", tls, path, argv0, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var argc, i int32 + var argv, envp uintptr + var v2 t__predefined_size_t + _, _, _, _, _, _ = ap, argc, argv, envp, i, v2 + defer func() { Xrealloc(tls, argv, 0) }() + ap = va + argc = int32(1) + for { + if !(VaUintptr(&ap) != 0) { + break + } + goto _1 + _1: + ; + argc = argc + 1 + } + _ = ap + v2 = Uint64FromInt32(argc+int32(1)) * 8 + argv = Xrealloc(tls, argv, v2) + ap = va + *(*uintptr)(unsafe.Add(unsafe.Pointer(argv), 0*8)) = argv0 + i = int32(1) + for { + if !(i <= argc) { + break + } + *(*uintptr)(unsafe.Add(unsafe.Pointer(argv), i*8)) = VaUintptr(&ap) + goto _3 + _3: + ; + i = i + 1 + } + envp = VaUintptr(&ap) + _ = ap + return Xexecve(tls, path, argv, envp) + return r +} + +func Xexeclp(tls *TLS, file uintptr, argv0 uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v file=%v argv0=%v va=%v, (%v:)", tls, file, argv0, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var argc, i int32 + var argv uintptr + var v2 t__predefined_size_t + _, _, _, _, _ = ap, argc, argv, i, v2 + defer func() { Xrealloc(tls, argv, 0) }() + ap = va + argc = int32(1) + for { + if !(VaUintptr(&ap) != 0) { + break + } + goto _1 + _1: + ; + argc = argc + 1 + } + _ = ap + v2 = Uint64FromInt32(argc+int32(1)) * 8 + argv = Xrealloc(tls, argv, v2) + ap = va + *(*uintptr)(unsafe.Add(unsafe.Pointer(argv), 0*8)) = argv0 + i = int32(1) + for { + if !(i < argc) { + break + } + *(*uintptr)(unsafe.Add(unsafe.Pointer(argv), i*8)) = VaUintptr(&ap) + goto _3 + _3: + ; + i = i + 1 + } + *(*uintptr)(unsafe.Add(unsafe.Pointer(argv), i*8)) = UintptrFromInt32(0) + _ = ap + return Xexecvp(tls, file, argv) + return r +} + +func Xexecv(tls *TLS, path uintptr, argv uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v argv=%v, (%v:)", tls, path, argv, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xexecve(tls, path, argv, Xenviron) +} + +func Xexecve(tls *TLS, path uintptr, argv uintptr, envp uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v argv=%v envp=%v, (%v:)", tls, path, argv, envp, origin(2)) + defer func() { trc("-> %v", r) }() + } + /* do we need to use environ if envp is null? */ + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_execve), int64(path), int64(argv), int64(envp))))) +} + +func X__execvpe(tls *TLS, file uintptr, argv uintptr, envp uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v file=%v argv=%v envp=%v, (%v:)", tls, file, argv, envp, origin(2)) + defer func() { trc("-> %v", r) }() + } + var b, p, path, z, v3 uintptr + var k, l Tsize_t + var seen_eacces int32 + var v2 t__predefined_size_t + _, _, _, _, _, _, _, _, _ = b, k, l, p, path, seen_eacces, z, v2, v3 + defer func() { Xrealloc(tls, b, 0) }() + path = Xgetenv(tls, __ccgo_ts+1403) + seen_eacces = 0 + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOENT) + if !(**(**uint8)(__ccgo_up(file)) != 0) { + return -int32(1) + } + if Xstrchr(tls, file, int32('/')) != 0 { + return Xexecve(tls, file, argv, envp) + } + if !(path != 0) { + path = __ccgo_ts + 1408 + } + k = Xstrnlen(tls, file, Uint64FromInt32(Int32FromInt32(NAME_MAX)+Int32FromInt32(1))) + if k > uint64(NAME_MAX) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENAMETOOLONG) + return -int32(1) + } + l = Xstrnlen(tls, path, Uint64FromInt32(Int32FromInt32(PATH_MAX)-Int32FromInt32(1))) + uint64(1) + p = path + for { + v2 = l + k + uint64(1) + b = Xrealloc(tls, b, v2) + z = X__strchrnul(tls, p, int32(':')) + if Uint64FromInt64(int64(z)-int64(p)) >= l { + v3 = z + z = z + 1 + if !(**(**uint8)(__ccgo_up(v3)) != 0) { + break + } + goto _1 + } + Xmemcpy(tls, b, p, Uint64FromInt64(int64(z)-int64(p))) + *(*uint8)(unsafe.Add(unsafe.Pointer(b), int64(z)-int64(p))) = uint8('/') + Xmemcpy(tls, b+uintptr(int64(z)-int64(p))+BoolUintptr(z > p), file, k+uint64(1)) + Xexecve(tls, b, argv, envp) + switch **(**int32)(__ccgo_up(X__errno_location(tls))) { + case int32(EACCES): + seen_eacces = int32(1) + fallthrough + case int32(ENOENT): + fallthrough + case int32(ENOTDIR): + default: + return -int32(1) + } + v3 = z + z = z + 1 + if !(**(**uint8)(__ccgo_up(v3)) != 0) { + break + } + goto _1 + _1: + ; + p = z + } + if seen_eacces != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EACCES) + } + return -int32(1) +} + +func Xexecvp(tls *TLS, file uintptr, argv uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v file=%v argv=%v, (%v:)", tls, file, argv, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__execvpe(tls, file, argv, Xenviron) +} + +func Xexecvpe(tls *TLS, file uintptr, argv uintptr, envp uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v file=%v argv=%v envp=%v, (%v:)", tls, file, argv, envp, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__execvpe(tls, file, argv, envp) +} + +func Xfexecve(tls *TLS, fd int32, argv uintptr, envp uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v argv=%v envp=%v, (%v:)", tls, fd, argv, envp, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var r int32 + var _ /* buf at bp+0 */ [27]uint8 + _ = r + r = int32(X__syscall5(tls, int64(SYS_execveat), int64(fd), int64(__ccgo_ts), int64(argv), int64(envp), int64(Int32FromInt32(AT_EMPTY_PATH)))) + if r != -int32(ENOSYS) { + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) + } + X__procfdname(tls, bp, Uint32FromInt32(fd)) + Xexecve(tls, bp, argv, envp) + if **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(ENOENT) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EBADF) + } + return -int32(1) +} + +var _dummy_lockptr = uintptr(0) + +var _atfork_locks = [10]uintptr{ + 0: uintptr(unsafe.Pointer(&X__at_quick_exit_lockptr)), + 1: uintptr(unsafe.Pointer(&_dummy_lockptr)), + 2: uintptr(unsafe.Pointer(&X__gettext_lockptr)), + 3: uintptr(unsafe.Pointer(&X__locale_lockptr)), + 4: uintptr(unsafe.Pointer(&X__random_lockptr)), + 5: uintptr(unsafe.Pointer(&_dummy_lockptr)), + 6: uintptr(unsafe.Pointer(&X__stdio_ofl_lockptr)), + 7: uintptr(unsafe.Pointer(&X__syslog_lockptr)), + 8: uintptr(unsafe.Pointer(&X__timezone_lockptr)), + 9: uintptr(unsafe.Pointer(&_dummy_lockptr)), +} + +func _dummy8(tls *TLS, x int32) { +} + +func _dummy_0(tls *TLS) { +} + +const FDOP_CHDIR = 4 +const FDOP_CLOSE = 1 +const FDOP_DUP2 = 2 +const FDOP_FCHDIR = 5 +const FDOP_OPEN = 3 +const POSIX_SPAWN_RESETIDS = 1 +const POSIX_SPAWN_SETPGROUP = 2 +const POSIX_SPAWN_SETSCHEDPARAM = 16 +const POSIX_SPAWN_SETSCHEDULER = 32 +const POSIX_SPAWN_SETSID = 128 +const POSIX_SPAWN_SETSIGDEF = 4 +const POSIX_SPAWN_SETSIGMASK = 8 +const POSIX_SPAWN_USEVFORK = 64 + +type Tposix_spawnattr_t = struct { + F__flags int32 + F__pgrp Tpid_t + F__def Tsigset_t + F__mask Tsigset_t + F__prio int32 + F__pol int32 + F__fn uintptr + F__pad [56]uint8 +} + +type Tposix_spawn_file_actions_t = struct { + F__pad0 [2]int32 + F__actions uintptr + F__pad [16]int32 +} + +type Tfdop = struct { + Fnext uintptr + Fprev uintptr + Fcmd int32 + Ffd int32 + Fsrcfd int32 + Foflag int32 + Fmode Tmode_t +} + +func Xposix_spawn_file_actions_addchdir_np(tls *TLS, fa uintptr, path uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fa=%v path=%v, (%v:)", tls, fa, path, origin(2)) + defer func() { trc("-> %v", r) }() + } + var op, v1 uintptr + _, _ = op, v1 + op = Xmalloc(tls, uint64(40)+_strlen(tls, path)+uint64(1)) + if !(op != 0) { + return int32(ENOMEM) + } + (*Tfdop)(unsafe.Pointer(op)).Fcmd = int32(FDOP_CHDIR) + (*Tfdop)(unsafe.Pointer(op)).Ffd = -int32(1) + Xstrcpy(tls, op+36, path) + v1 = (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions + (*Tfdop)(unsafe.Pointer(op)).Fnext = v1 + if v1 != 0 { + (*Tfdop)(unsafe.Pointer((*Tfdop)(unsafe.Pointer(op)).Fnext)).Fprev = op + } + (*Tfdop)(unsafe.Pointer(op)).Fprev = uintptr(0) + (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions = op + return 0 +} + +func Xposix_spawn_file_actions_addclose(tls *TLS, fa uintptr, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fa=%v fd=%v, (%v:)", tls, fa, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + var op, v1 uintptr + _, _ = op, v1 + if fd < 0 { + return int32(EBADF) + } + op = Xmalloc(tls, uint64(40)) + if !(op != 0) { + return int32(ENOMEM) + } + (*Tfdop)(unsafe.Pointer(op)).Fcmd = int32(FDOP_CLOSE) + (*Tfdop)(unsafe.Pointer(op)).Ffd = fd + v1 = (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions + (*Tfdop)(unsafe.Pointer(op)).Fnext = v1 + if v1 != 0 { + (*Tfdop)(unsafe.Pointer((*Tfdop)(unsafe.Pointer(op)).Fnext)).Fprev = op + } + (*Tfdop)(unsafe.Pointer(op)).Fprev = uintptr(0) + (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions = op + return 0 +} + +func Xposix_spawn_file_actions_adddup2(tls *TLS, fa uintptr, srcfd int32, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fa=%v srcfd=%v fd=%v, (%v:)", tls, fa, srcfd, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + var op, v1 uintptr + _, _ = op, v1 + if srcfd < 0 || fd < 0 { + return int32(EBADF) + } + op = Xmalloc(tls, uint64(40)) + if !(op != 0) { + return int32(ENOMEM) + } + (*Tfdop)(unsafe.Pointer(op)).Fcmd = int32(FDOP_DUP2) + (*Tfdop)(unsafe.Pointer(op)).Fsrcfd = srcfd + (*Tfdop)(unsafe.Pointer(op)).Ffd = fd + v1 = (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions + (*Tfdop)(unsafe.Pointer(op)).Fnext = v1 + if v1 != 0 { + (*Tfdop)(unsafe.Pointer((*Tfdop)(unsafe.Pointer(op)).Fnext)).Fprev = op + } + (*Tfdop)(unsafe.Pointer(op)).Fprev = uintptr(0) + (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions = op + return 0 +} + +func Xposix_spawn_file_actions_addfchdir_np(tls *TLS, fa uintptr, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fa=%v fd=%v, (%v:)", tls, fa, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + var op, v1 uintptr + _, _ = op, v1 + if fd < 0 { + return int32(EBADF) + } + op = Xmalloc(tls, uint64(40)) + if !(op != 0) { + return int32(ENOMEM) + } + (*Tfdop)(unsafe.Pointer(op)).Fcmd = int32(FDOP_FCHDIR) + (*Tfdop)(unsafe.Pointer(op)).Ffd = fd + v1 = (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions + (*Tfdop)(unsafe.Pointer(op)).Fnext = v1 + if v1 != 0 { + (*Tfdop)(unsafe.Pointer((*Tfdop)(unsafe.Pointer(op)).Fnext)).Fprev = op + } + (*Tfdop)(unsafe.Pointer(op)).Fprev = uintptr(0) + (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions = op + return 0 +} + +func Xposix_spawn_file_actions_addopen(tls *TLS, fa uintptr, fd int32, path uintptr, flags int32, mode Tmode_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fa=%v fd=%v path=%v flags=%v mode=%v, (%v:)", tls, fa, fd, path, flags, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + var op, v1 uintptr + _, _ = op, v1 + if fd < 0 { + return int32(EBADF) + } + op = Xmalloc(tls, uint64(40)+_strlen(tls, path)+uint64(1)) + if !(op != 0) { + return int32(ENOMEM) + } + (*Tfdop)(unsafe.Pointer(op)).Fcmd = int32(FDOP_OPEN) + (*Tfdop)(unsafe.Pointer(op)).Ffd = fd + (*Tfdop)(unsafe.Pointer(op)).Foflag = flags + (*Tfdop)(unsafe.Pointer(op)).Fmode = mode + Xstrcpy(tls, op+36, path) + v1 = (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions + (*Tfdop)(unsafe.Pointer(op)).Fnext = v1 + if v1 != 0 { + (*Tfdop)(unsafe.Pointer((*Tfdop)(unsafe.Pointer(op)).Fnext)).Fprev = op + } + (*Tfdop)(unsafe.Pointer(op)).Fprev = uintptr(0) + (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions = op + return 0 +} + +func Xposix_spawn_file_actions_destroy(tls *TLS, fa uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fa=%v, (%v:)", tls, fa, origin(2)) + defer func() { trc("-> %v", r) }() + } + var next, op uintptr + _, _ = next, op + op = (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions + for op != 0 { + next = (*Tfdop)(unsafe.Pointer(op)).Fnext + Xfree(tls, op) + op = next + } + return 0 +} + +func Xposix_spawn_file_actions_init(tls *TLS, fa uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fa=%v, (%v:)", tls, fa, origin(2)) + defer func() { trc("-> %v", r) }() + } + (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions = uintptr(0) + return 0 +} + +func Xposix_spawnattr_destroy(tls *TLS, attr uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v, (%v:)", tls, attr, origin(2)) + defer func() { trc("-> %v", r) }() + } + return 0 +} + +func Xposix_spawnattr_getflags(tls *TLS, attr uintptr, flags uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v flags=%v, (%v:)", tls, attr, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + **(**int16)(__ccgo_up(flags)) = int16((*Tposix_spawnattr_t)(unsafe.Pointer(attr)).F__flags) + return 0 +} + +func Xposix_spawnattr_getpgroup(tls *TLS, attr uintptr, pgrp uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v pgrp=%v, (%v:)", tls, attr, pgrp, origin(2)) + defer func() { trc("-> %v", r) }() + } + **(**Tpid_t)(__ccgo_up(pgrp)) = (*Tposix_spawnattr_t)(unsafe.Pointer(attr)).F__pgrp + return 0 +} + +func Xposix_spawnattr_getsigdefault(tls *TLS, attr uintptr, def uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v def=%v, (%v:)", tls, attr, def, origin(2)) + defer func() { trc("-> %v", r) }() + } + **(**Tsigset_t)(__ccgo_up(def)) = (*Tposix_spawnattr_t)(unsafe.Pointer(attr)).F__def + return 0 +} + +func Xposix_spawnattr_getsigmask(tls *TLS, attr uintptr, mask uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v mask=%v, (%v:)", tls, attr, mask, origin(2)) + defer func() { trc("-> %v", r) }() + } + **(**Tsigset_t)(__ccgo_up(mask)) = (*Tposix_spawnattr_t)(unsafe.Pointer(attr)).F__mask + return 0 +} + +func Xposix_spawnattr_init(tls *TLS, attr uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v, (%v:)", tls, attr, origin(2)) + defer func() { trc("-> %v", r) }() + } + **(**Tposix_spawnattr_t)(__ccgo_up(attr)) = Tposix_spawnattr_t{} + return 0 +} + +func Xposix_spawnattr_getschedparam(tls *TLS, attr uintptr, schedparam uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v schedparam=%v, (%v:)", tls, attr, schedparam, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(ENOSYS) +} + +func Xposix_spawnattr_setschedparam(tls *TLS, attr uintptr, schedparam uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v schedparam=%v, (%v:)", tls, attr, schedparam, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(ENOSYS) +} + +func Xposix_spawnattr_getschedpolicy(tls *TLS, attr uintptr, policy uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v policy=%v, (%v:)", tls, attr, policy, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(ENOSYS) +} + +func Xposix_spawnattr_setschedpolicy(tls *TLS, attr uintptr, policy int32) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v policy=%v, (%v:)", tls, attr, policy, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(ENOSYS) +} + +func Xposix_spawnattr_setflags(tls *TLS, attr uintptr, flags int16) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v flags=%v, (%v:)", tls, attr, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + var all_flags uint32 + _ = all_flags + all_flags = Uint32FromInt32(Int32FromInt32(POSIX_SPAWN_RESETIDS) | Int32FromInt32(POSIX_SPAWN_SETPGROUP) | Int32FromInt32(POSIX_SPAWN_SETSIGDEF) | Int32FromInt32(POSIX_SPAWN_SETSIGMASK) | Int32FromInt32(POSIX_SPAWN_SETSCHEDPARAM) | Int32FromInt32(POSIX_SPAWN_SETSCHEDULER) | Int32FromInt32(POSIX_SPAWN_USEVFORK) | Int32FromInt32(POSIX_SPAWN_SETSID)) + if Uint32FromInt16(flags) & ^all_flags != 0 { + return int32(EINVAL) + } + (*Tposix_spawnattr_t)(unsafe.Pointer(attr)).F__flags = int32(flags) + return 0 +} + +func Xposix_spawnattr_setpgroup(tls *TLS, attr uintptr, pgrp Tpid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v pgrp=%v, (%v:)", tls, attr, pgrp, origin(2)) + defer func() { trc("-> %v", r) }() + } + (*Tposix_spawnattr_t)(unsafe.Pointer(attr)).F__pgrp = pgrp + return 0 +} + +func Xposix_spawnattr_setsigdefault(tls *TLS, attr uintptr, def uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v def=%v, (%v:)", tls, attr, def, origin(2)) + defer func() { trc("-> %v", r) }() + } + (*Tposix_spawnattr_t)(unsafe.Pointer(attr)).F__def = **(**Tsigset_t)(__ccgo_up(def)) + return 0 +} + +func Xposix_spawnattr_setsigmask(tls *TLS, attr uintptr, mask uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v mask=%v, (%v:)", tls, attr, mask, origin(2)) + defer func() { trc("-> %v", r) }() + } + (*Tposix_spawnattr_t)(unsafe.Pointer(attr)).F__mask = **(**Tsigset_t)(__ccgo_up(mask)) + return 0 +} + +func Xvfork(tls *TLS) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + /* vfork syscall cannot be made from C code */ + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall0(tls, int64(SYS_fork))))) +} + +func Xwait(tls *TLS, status uintptr) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v status=%v, (%v:)", tls, status, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwaitpid(tls, -Int32FromInt32(1), status, 0) +} + +func Xwaitid(tls *TLS, type1 Tidtype_t, id Tid_t, info uintptr, options int32) (r int32) { + if __ccgo_strace { + trc("tls=%v type1=%v id=%v info=%v options=%v, (%v:)", tls, type1, id, info, options, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_waitid), int64(type1), Int64FromUint32(id), int64(info), int64(options), int64(Int32FromInt32(0)), 0)))) +} + +func Xwaitpid(tls *TLS, pid Tpid_t, status uintptr, options int32) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v pid=%v status=%v options=%v, (%v:)", tls, pid, status, options, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_wait4), int64(pid), int64(status), int64(options), int64(Int32FromInt32(0)), 0, 0)))) +} + +const BRACKET = -3 +const END = 0 +const FNM_CASEFOLD = 16 +const FNM_FILE_NAME = 1 +const FNM_LEADING_DIR = 8 +const FNM_NOESCAPE = 2 +const FNM_NOMATCH = 1 +const FNM_NOSYS = -1 +const FNM_PATHNAME = 1 +const FNM_PERIOD = 4 +const QUESTION = -4 +const STAR = -5 +const UNMATCHABLE = -2 + +func _str_next(tls *TLS, str uintptr, n Tsize_t, step uintptr) (r int32) { + bp := tls.Alloc(16) + defer tls.Free(16) + var k int32 + var _ /* wc at bp+0 */ Twchar_t + _ = k + if !(n != 0) { + **(**Tsize_t)(__ccgo_up(step)) = uint64(0) + return 0 + } + if uint32(**(**uint8)(__ccgo_up(str))) >= uint32(128) { + k = Xmbtowc(tls, bp, str, n) + if k < 0 { + **(**Tsize_t)(__ccgo_up(step)) = uint64(1) + return -int32(1) + } + **(**Tsize_t)(__ccgo_up(step)) = Uint64FromInt32(k) + return **(**Twchar_t)(__ccgo_up(bp)) + } + **(**Tsize_t)(__ccgo_up(step)) = uint64(1) + return Int32FromUint8(**(**uint8)(__ccgo_up(str))) +} + +func _pat_next(tls *TLS, pat uintptr, m Tsize_t, step uintptr, flags int32) (r int32) { + bp := tls.Alloc(16) + defer tls.Free(16) + var esc, k1, z int32 + var k Tsize_t + var _ /* wc at bp+0 */ Twchar_t + _, _, _, _ = esc, k, k1, z + esc = 0 + if !(m != 0) || !(**(**uint8)(__ccgo_up(pat)) != 0) { + **(**Tsize_t)(__ccgo_up(step)) = uint64(0) + return END + } + **(**Tsize_t)(__ccgo_up(step)) = uint64(1) + if Int32FromUint8(**(**uint8)(__ccgo_up(pat))) == int32('\\') && **(**uint8)(__ccgo_up(pat + 1)) != 0 && !(flags&Int32FromInt32(FNM_NOESCAPE) != 0) { + **(**Tsize_t)(__ccgo_up(step)) = uint64(2) + pat = pat + 1 + esc = int32(1) + goto escaped + } + if Int32FromUint8(**(**uint8)(__ccgo_up(pat))) == int32('[') { + k = uint64(1) + if k < m { + if Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(k)))) == int32('^') || Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(k)))) == int32('!') { + k = k + 1 + } + } + if k < m { + if Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(k)))) == int32(']') { + k = k + 1 + } + } + for { + if !(k < m && **(**uint8)(__ccgo_up(pat + uintptr(k))) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(k)))) != int32(']')) { + break + } + if k+uint64(1) < m && **(**uint8)(__ccgo_up(pat + uintptr(k+uint64(1)))) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(k)))) == int32('[') && (Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(k+uint64(1))))) == int32(':') || Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(k+uint64(1))))) == int32('.') || Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(k+uint64(1))))) == int32('=')) { + z = Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(k+uint64(1))))) + k = k + uint64(2) + if k < m && **(**uint8)(__ccgo_up(pat + uintptr(k))) != 0 { + k = k + 1 + } + for k < m && **(**uint8)(__ccgo_up(pat + uintptr(k))) != 0 && (Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(k-uint64(1))))) != z || Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(k)))) != int32(']')) { + k = k + 1 + } + if k == m || !(**(**uint8)(__ccgo_up(pat + uintptr(k))) != 0) { + break + } + } + goto _1 + _1: + ; + k = k + 1 + } + if k == m || !(**(**uint8)(__ccgo_up(pat + uintptr(k))) != 0) { + **(**Tsize_t)(__ccgo_up(step)) = uint64(1) + return int32('[') + } + **(**Tsize_t)(__ccgo_up(step)) = k + uint64(1) + return -int32(3) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(pat))) == int32('*') { + return -int32(5) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(pat))) == int32('?') { + return -int32(4) + } + goto escaped +escaped: + ; + if uint32(**(**uint8)(__ccgo_up(pat))) >= uint32(128) { + k1 = Xmbtowc(tls, bp, pat, m) + if k1 < 0 { + **(**Tsize_t)(__ccgo_up(step)) = uint64(0) + return -int32(2) + } + **(**Tsize_t)(__ccgo_up(step)) = Uint64FromInt32(k1 + esc) + return **(**Twchar_t)(__ccgo_up(bp)) + } + return Int32FromUint8(**(**uint8)(__ccgo_up(pat))) +} + +func _casefold(tls *TLS, k int32) (r int32) { + var c int32 + var v1 uint32 + _, _ = c, v1 + c = Int32FromUint32(Xtowupper(tls, Uint32FromInt32(k))) + if c == k { + v1 = Xtowlower(tls, Uint32FromInt32(k)) + } else { + v1 = Uint32FromInt32(c) + } + return Int32FromUint32(v1) +} + +func _match_bracket(tls *TLS, p uintptr, k int32, kfold int32) (r int32) { + bp := tls.Alloc(32) + defer tls.Free(32) + var inv, l, l1, z int32 + var p0 uintptr + var _ /* buf at bp+8 */ [16]uint8 + var _ /* wc at bp+0 */ Twchar_t + var _ /* wc2 at bp+4 */ Twchar_t + _, _, _, _, _ = inv, l, l1, p0, z + inv = 0 + p = p + 1 + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('^') || Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('!') { + inv = int32(1) + p = p + 1 + } + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32(']') { + if k == int32(']') { + return BoolInt32(!(inv != 0)) + } + p = p + 1 + } else { + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('-') { + if k == int32('-') { + return BoolInt32(!(inv != 0)) + } + p = p + 1 + } + } + **(**Twchar_t)(__ccgo_up(bp)) = Int32FromUint8(**(**uint8)(__ccgo_up(p + uintptr(-Int32FromInt32(1))))) + for { + if !(Int32FromUint8(**(**uint8)(__ccgo_up(p))) != int32(']')) { + break + } + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('-') && Int32FromUint8(**(**uint8)(__ccgo_up(p + 1))) != int32(']') { + l = Xmbtowc(tls, bp+4, p+uintptr(1), uint64(4)) + if l < 0 { + return 0 + } + if **(**Twchar_t)(__ccgo_up(bp)) <= **(**Twchar_t)(__ccgo_up(bp + 4)) { + if Uint32FromInt32(k)-Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp))) <= Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp + 4))-**(**Twchar_t)(__ccgo_up(bp))) || Uint32FromInt32(kfold)-Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp))) <= Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp + 4))-**(**Twchar_t)(__ccgo_up(bp))) { + return BoolInt32(!(inv != 0)) + } + } + p = p + uintptr(l-int32(1)) + goto _1 + } + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('[') && (Int32FromUint8(**(**uint8)(__ccgo_up(p + 1))) == int32(':') || Int32FromUint8(**(**uint8)(__ccgo_up(p + 1))) == int32('.') || Int32FromUint8(**(**uint8)(__ccgo_up(p + 1))) == int32('=')) { + p0 = p + uintptr(2) + z = Int32FromUint8(**(**uint8)(__ccgo_up(p + 1))) + p = p + uintptr(3) + for Int32FromUint8(**(**uint8)(__ccgo_up(p + uintptr(-Int32FromInt32(1))))) != z || Int32FromUint8(**(**uint8)(__ccgo_up(p))) != int32(']') { + p = p + 1 + } + if z == int32(':') && int64(p-uintptr(1))-int64(p0) < int64(16) { + Xmemcpy(tls, bp+8, p0, Uint64FromInt64(int64(p-uintptr(1))-int64(p0))) + (**(**[16]uint8)(__ccgo_up(bp + 8)))[int64(p-uintptr(1))-int64(p0)] = uint8(0) + if Xiswctype(tls, Uint32FromInt32(k), Xwctype(tls, bp+8)) != 0 || Xiswctype(tls, Uint32FromInt32(kfold), Xwctype(tls, bp+8)) != 0 { + return BoolInt32(!(inv != 0)) + } + } + goto _1 + } + if uint32(**(**uint8)(__ccgo_up(p))) < uint32(128) { + **(**Twchar_t)(__ccgo_up(bp)) = Int32FromUint8(uint8(**(**uint8)(__ccgo_up(p)))) + } else { + l1 = Xmbtowc(tls, bp, p, uint64(4)) + if l1 < 0 { + return 0 + } + p = p + uintptr(l1-int32(1)) + } + if **(**Twchar_t)(__ccgo_up(bp)) == k || **(**Twchar_t)(__ccgo_up(bp)) == kfold { + return BoolInt32(!(inv != 0)) + } + goto _1 + _1: + ; + p = p + 1 + } + return inv +} + +func _fnmatch_internal(tls *TLS, pat uintptr, m Tsize_t, str uintptr, n Tsize_t, flags int32) (r int32) { + bp := tls.Alloc(16) + defer tls.Free(16) + var c, k, kfold, v2 int32 + var endpat, endstr, p, ptail, s, stail, v6 uintptr + var tailcnt Tsize_t + var v9 bool + var _ /* pinc at bp+0 */ Tsize_t + var _ /* sinc at bp+8 */ Tsize_t + _, _, _, _, _, _, _, _, _, _, _, _, _ = c, endpat, endstr, k, kfold, p, ptail, s, stail, tailcnt, v2, v6, v9 + tailcnt = uint64(0) + if flags&int32(FNM_PERIOD) != 0 { + if Int32FromUint8(**(**uint8)(__ccgo_up(str))) == int32('.') && Int32FromUint8(**(**uint8)(__ccgo_up(pat))) != int32('.') { + return int32(FNM_NOMATCH) + } + } + for { + v2 = _pat_next(tls, pat, m, bp, flags) + c = v2 + switch v2 { + case -int32(2): + return int32(FNM_NOMATCH) + case -int32(5): + pat = pat + 1 + m = m - 1 + default: + k = _str_next(tls, str, n, bp+8) + if k <= 0 { + if c == END { + v2 = 0 + } else { + v2 = int32(FNM_NOMATCH) + } + return v2 + } + str = str + uintptr(**(**Tsize_t)(__ccgo_up(bp + 8))) + n = n - **(**Tsize_t)(__ccgo_up(bp + 8)) + if flags&int32(FNM_CASEFOLD) != 0 { + v2 = _casefold(tls, k) + } else { + v2 = k + } + kfold = v2 + if c == -int32(3) { + if !(_match_bracket(tls, pat, k, kfold) != 0) { + return int32(FNM_NOMATCH) + } + } else { + if c != -int32(4) && k != c && kfold != c { + return int32(FNM_NOMATCH) + } + } + pat = pat + uintptr(**(**Tsize_t)(__ccgo_up(bp))) + m = m - **(**Tsize_t)(__ccgo_up(bp)) + goto _1 + } + break + goto _1 + _1: + } + /* Compute real pat length if it was initially unknown/-1 */ + m = Xstrnlen(tls, pat, m) + endpat = pat + uintptr(m) + /* Find the last * in pat and count chars needed after it */ + v6 = pat + ptail = v6 + p = v6 + for { + if !(p < endpat) { + break + } + switch _pat_next(tls, p, Uint64FromInt64(int64(endpat)-int64(p)), bp, flags) { + case -int32(2): + return int32(FNM_NOMATCH) + case -int32(5): + tailcnt = uint64(0) + ptail = p + uintptr(1) + default: + tailcnt = tailcnt + 1 + break + } + goto _5 + _5: + ; + p = p + uintptr(**(**Tsize_t)(__ccgo_up(bp))) + } + /* Past this point we need not check for UNMATCHABLE in pat, + * because all of pat has already been parsed once. */ + /* Compute real str length if it was initially unknown/-1 */ + n = Xstrnlen(tls, str, n) + endstr = str + uintptr(n) + if n < tailcnt { + return int32(FNM_NOMATCH) + } + /* Find the final tailcnt chars of str, accounting for UTF-8. + * On illegal sequences we may get it wrong, but in that case + * we necessarily have a matching failure anyway. */ + s = endstr + for { + if !(s > str && tailcnt != 0) { + break + } + if v9 = uint32(**(**uint8)(__ccgo_up(s + uintptr(-Int32FromInt32(1))))) < uint32(128); !v9 { + if !!(**(**uintptr)(__ccgo_up((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale)) != 0) { + v2 = int32(4) + } else { + v2 = int32(1) + } + } + if v9 || v2 == int32(1) { + s = s - 1 + } else { + for { + s = s - 1 + v6 = s + if !(uint32(uint8(**(**uint8)(__ccgo_up(v6))))-uint32(0x80) < uint32(0x40) && s > str) { + break + } + } + } + goto _7 + _7: + ; + tailcnt = tailcnt - 1 + } + if tailcnt != 0 { + return int32(FNM_NOMATCH) + } + stail = s + /* Check that the pat and str tails match */ + p = ptail + for { + c = _pat_next(tls, p, Uint64FromInt64(int64(endpat)-int64(p)), bp, flags) + p = p + uintptr(**(**Tsize_t)(__ccgo_up(bp))) + v2 = _str_next(tls, s, Uint64FromInt64(int64(endstr)-int64(s)), bp+8) + k = v2 + if v2 <= 0 { + if c != END { + return int32(FNM_NOMATCH) + } + break + } + s = s + uintptr(**(**Tsize_t)(__ccgo_up(bp + 8))) + if flags&int32(FNM_CASEFOLD) != 0 { + v2 = _casefold(tls, k) + } else { + v2 = k + } + kfold = v2 + if c == -int32(3) { + if !(_match_bracket(tls, p-uintptr(**(**Tsize_t)(__ccgo_up(bp))), k, kfold) != 0) { + return int32(FNM_NOMATCH) + } + } else { + if c != -int32(4) && k != c && kfold != c { + return int32(FNM_NOMATCH) + } + } + goto _11 + _11: + } + /* We're all done with the tails now, so throw them out */ + endstr = stail + endpat = ptail + /* Match pattern components until there are none left */ + for pat < endpat { + p = pat + s = str + for { + c = _pat_next(tls, p, Uint64FromInt64(int64(endpat)-int64(p)), bp, flags) + p = p + uintptr(**(**Tsize_t)(__ccgo_up(bp))) + /* Encountering * completes/commits a component */ + if c == -int32(5) { + pat = p + str = s + break + } + k = _str_next(tls, s, Uint64FromInt64(int64(endstr)-int64(s)), bp+8) + if !(k != 0) { + return int32(FNM_NOMATCH) + } + if flags&int32(FNM_CASEFOLD) != 0 { + v2 = _casefold(tls, k) + } else { + v2 = k + } + kfold = v2 + if c == -int32(3) { + if !(_match_bracket(tls, p-uintptr(**(**Tsize_t)(__ccgo_up(bp))), k, kfold) != 0) { + break + } + } else { + if c != -int32(4) && k != c && kfold != c { + break + } + } + s = s + uintptr(**(**Tsize_t)(__ccgo_up(bp + 8))) + goto _14 + _14: + } + if c == -int32(5) { + continue + } + /* If we failed, advance str, by 1 char if it's a valid + * char, or past all invalid bytes otherwise. */ + k = _str_next(tls, str, Uint64FromInt64(int64(endstr)-int64(str)), bp+8) + if k > 0 { + str = str + uintptr(**(**Tsize_t)(__ccgo_up(bp + 8))) + } else { + str = str + 1 + for { + if !(_str_next(tls, str, Uint64FromInt64(int64(endstr)-int64(str)), bp+8) < 0) { + break + } + goto _16 + _16: + ; + str = str + 1 + } + } + } + return 0 +} + +func Xfnmatch(tls *TLS, pat uintptr, str uintptr, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v pat=%v str=%v flags=%v, (%v:)", tls, pat, str, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var c, v4 int32 + var p, s uintptr + var _ /* inc at bp+0 */ Tsize_t + _, _, _, _ = c, p, s, v4 + if flags&int32(FNM_PATHNAME) != 0 { + for { + s = str + for { + if !(**(**uint8)(__ccgo_up(s)) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(s))) != int32('/')) { + break + } + goto _2 + _2: + ; + s = s + 1 + } + p = pat + for { + v4 = _pat_next(tls, p, Uint64FromInt32(-Int32FromInt32(1)), bp, flags) + c = v4 + if !(v4 != END && c != int32('/')) { + break + } + goto _3 + _3: + ; + p = p + uintptr(**(**Tsize_t)(__ccgo_up(bp))) + } + if c != Int32FromUint8(**(**uint8)(__ccgo_up(s))) && (!(**(**uint8)(__ccgo_up(s)) != 0) || !(flags&Int32FromInt32(FNM_LEADING_DIR) != 0)) { + return int32(FNM_NOMATCH) + } + if _fnmatch_internal(tls, pat, Uint64FromInt64(int64(p)-int64(pat)), str, Uint64FromInt64(int64(s)-int64(str)), flags) != 0 { + return int32(FNM_NOMATCH) + } + if !(c != 0) { + return 0 + } + str = s + uintptr(1) + pat = p + uintptr(**(**Tsize_t)(__ccgo_up(bp))) + goto _1 + _1: + } + } else { + if flags&int32(FNM_LEADING_DIR) != 0 { + s = str + for { + if !(**(**uint8)(__ccgo_up(s)) != 0) { + break + } + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) != int32('/') { + goto _5 + } + if !(_fnmatch_internal(tls, pat, Uint64FromInt32(-Int32FromInt32(1)), str, Uint64FromInt64(int64(s)-int64(str)), flags) != 0) { + return 0 + } + goto _5 + _5: + ; + s = s + 1 + } + } + } + return _fnmatch_internal(tls, pat, Uint64FromInt32(-Int32FromInt32(1)), str, Uint64FromInt32(-Int32FromInt32(1)), flags) +} + +const GLOB_ABORTED = 2 +const GLOB_APPEND = 32 +const GLOB_DOOFFS = 8 +const GLOB_ERR = 1 +const GLOB_MARK = 2 +const GLOB_NOCHECK = 16 +const GLOB_NOESCAPE = 64 +const GLOB_NOMATCH = 3 +const GLOB_NOSORT = 4 +const GLOB_NOSPACE = 1 +const GLOB_NOSYS = 4 +const GLOB_PERIOD = 128 +const GLOB_TILDE = 4096 +const GLOB_TILDE_CHECK = 16384 + +type Tglob_t = struct { + Fgl_pathc Tsize_t + Fgl_pathv uintptr + Fgl_offs Tsize_t + F__dummy1 int32 + F__dummy2 [5]uintptr +} + +type Tmatch = struct { + Fnext uintptr +} + +func _append(tls *TLS, tail uintptr, name uintptr, len1 Tsize_t, mark int32) (r int32) { + var new1 uintptr + _ = new1 + new1 = Xmalloc(tls, uint64(8)+len1+uint64(2)) + if !(new1 != 0) { + return -int32(1) + } + (*Tmatch)(unsafe.Pointer(**(**uintptr)(__ccgo_up(tail)))).Fnext = new1 + (*Tmatch)(unsafe.Pointer(new1)).Fnext = UintptrFromInt32(0) + Xmemcpy(tls, new1+8, name, len1+uint64(1)) + if mark != 0 && len1 != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(name + uintptr(len1-uint64(1))))) != int32('/') { + *(*uint8)(unsafe.Pointer(new1 + 8 + uintptr(len1))) = uint8('/') + *(*uint8)(unsafe.Pointer(new1 + 8 + uintptr(len1+uint64(1)))) = uint8(0) + } + **(**uintptr)(__ccgo_up(tail)) = new1 + return 0 +} + +func _do_glob(tls *TLS, buf uintptr, pos Tsize_t, type1 int32, pat uintptr, flags int32, __ccgo_fp_errfunc uintptr, tail uintptr) (r1 int32) { + bp := tls.Alloc(144) + defer tls.Free(144) + var de, dir, p, p2, v2 uintptr + var fnm_flags, in_bracket, old_errno, overflow, r, readerr, v10, v9 int32 + var i, j, v4 Tptrdiff_t + var l, v1 Tsize_t + var saved_sep uint8 + var _ /* st at bp+0 */ Tstat + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = de, dir, fnm_flags, i, in_bracket, j, l, old_errno, overflow, p, p2, r, readerr, saved_sep, v1, v10, v2, v4, v9 + /* If GLOB_MARK is unused, we don't care about type. */ + if !(type1 != 0) && !(flags&Int32FromInt32(GLOB_MARK) != 0) { + type1 = int32(DT_REG) + } + /* Special-case the remaining pattern being all slashes, in + * which case we can use caller-passed type if it's a dir. */ + if **(**uint8)(__ccgo_up(pat)) != 0 && type1 != int32(DT_DIR) { + type1 = 0 + } + for pos+uint64(1) < uint64(PATH_MAX) && Int32FromUint8(**(**uint8)(__ccgo_up(pat))) == int32('/') { + v1 = pos + pos = pos + 1 + v2 = pat + pat = pat + 1 + **(**uint8)(__ccgo_up(buf + uintptr(v1))) = **(**uint8)(__ccgo_up(v2)) + } + /* Consume maximal [escaped-]literal prefix of pattern, copying + * and un-escaping it to the running buffer as we go. */ + i = 0 + j = 0 + in_bracket = 0 + overflow = 0 + for { + if !(Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(i)))) != int32('*') && Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(i)))) != int32('?') && (!(in_bracket != 0) || Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(i)))) != int32(']'))) { + break + } + if !(**(**uint8)(__ccgo_up(pat + uintptr(i))) != 0) { + if overflow != 0 { + return 0 + } + pat = pat + uintptr(i) + pos = pos + Uint64FromInt64(j) + v4 = Int64FromInt32(0) + j = v4 + i = v4 + break + } else { + if Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(i)))) == int32('[') { + in_bracket = int32(1) + } else { + if Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(i)))) == int32('\\') && !(flags&Int32FromInt32(GLOB_NOESCAPE) != 0) { + /* Backslashes inside a bracket are (at least by + * our interpretation) non-special, so if next + * char is ']' we have a complete expression. */ + if in_bracket != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(i+int64(1))))) == int32(']') { + break + } + /* Unpaired final backslash never matches. */ + if !(**(**uint8)(__ccgo_up(pat + uintptr(i+int64(1)))) != 0) { + return 0 + } + i = i + 1 + } + } + } + if Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(i)))) == int32('/') { + if overflow != 0 { + return 0 + } + in_bracket = 0 + pat = pat + uintptr(i+int64(1)) + i = int64(-int32(1)) + pos = pos + Uint64FromInt64(j+int64(1)) + j = int64(-int32(1)) + } + /* Only store a character if it fits in the buffer, but if + * a potential bracket expression is open, the overflow + * must be remembered and handled later only if the bracket + * is unterminated (and thereby a literal), so as not to + * disallow long bracket expressions with short matches. */ + if pos+Uint64FromInt64(j+Int64FromInt32(1)) < uint64(PATH_MAX) { + v4 = j + j = j + 1 + **(**uint8)(__ccgo_up(buf + uintptr(pos+Uint64FromInt64(v4)))) = **(**uint8)(__ccgo_up(pat + uintptr(i))) + } else { + if in_bracket != 0 { + overflow = int32(1) + } else { + return 0 + } + } + /* If we consume any new components, the caller-passed type + * or dummy type from above is no longer valid. */ + type1 = 0 + goto _3 + _3: + ; + i = i + 1 + } + **(**uint8)(__ccgo_up(buf + uintptr(pos))) = uint8(0) + if !(**(**uint8)(__ccgo_up(pat)) != 0) { + if flags&int32(GLOB_MARK) != 0 && (!(type1 != 0) || type1 == int32(DT_LNK)) && !(Xstat(tls, buf, bp) != 0) { + if (**(**Tstat)(__ccgo_up(bp))).Fst_mode&uint32(S_IFMT) == uint32(S_IFDIR) { + type1 = int32(DT_DIR) + } else { + type1 = int32(DT_REG) + } + } + if !(type1 != 0) && Xlstat(tls, buf, bp) != 0 { + if **(**int32)(__ccgo_up(X__errno_location(tls))) != int32(ENOENT) && ((*(*func(*TLS, uintptr, int32) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_errfunc})))(tls, buf, **(**int32)(__ccgo_up(X__errno_location(tls)))) != 0 || flags&int32(GLOB_ERR) != 0) { + return int32(GLOB_ABORTED) + } + return 0 + } + if _append(tls, tail, buf, pos, BoolInt32(flags&int32(GLOB_MARK) != 0 && type1 == int32(DT_DIR))) != 0 { + return int32(GLOB_NOSPACE) + } + return 0 + } + p2 = Xstrchr(tls, pat, int32('/')) + saved_sep = uint8('/') + /* Check if the '/' was escaped and, if so, remove the escape char + * so that it will not be unpaired when passed to fnmatch. */ + if p2 != 0 && !(flags&Int32FromInt32(GLOB_NOESCAPE) != 0) { + p = p2 + for { + if !(p > pat && Int32FromUint8(**(**uint8)(__ccgo_up(p + uintptr(-Int32FromInt32(1))))) == int32('\\')) { + break + } + goto _6 + _6: + ; + p = p - 1 + } + if (int64(p2)-int64(p))%int64(2) != 0 { + p2 = p2 - 1 + saved_sep = uint8('\\') + } + } + if pos != 0 { + v2 = buf + } else { + v2 = __ccgo_ts + 606 + } + dir = Xopendir(tls, v2) + if !(dir != 0) { + if (*(*func(*TLS, uintptr, int32) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_errfunc})))(tls, buf, **(**int32)(__ccgo_up(X__errno_location(tls)))) != 0 || flags&int32(GLOB_ERR) != 0 { + return int32(GLOB_ABORTED) + } + return 0 + } + old_errno = **(**int32)(__ccgo_up(X__errno_location(tls))) + for { + **(**int32)(__ccgo_up(X__errno_location(tls))) = 0 + v2 = Xreaddir(tls, dir) + de = v2 + if !(v2 != 0) { + break + } + /* Quickly skip non-directories when there's pattern left. */ + if p2 != 0 && (*Tdirent)(unsafe.Pointer(de)).Fd_type != 0 && Int32FromUint8((*Tdirent)(unsafe.Pointer(de)).Fd_type) != int32(DT_DIR) && Int32FromUint8((*Tdirent)(unsafe.Pointer(de)).Fd_type) != int32(DT_LNK) { + continue + } + l = _strlen(tls, de+19) + if l >= uint64(PATH_MAX)-pos { + continue + } + if p2 != 0 { + **(**uint8)(__ccgo_up(p2)) = uint8(0) + } + if flags&int32(GLOB_NOESCAPE) != 0 { + v9 = int32(FNM_NOESCAPE) + } else { + v9 = 0 + } + if !(flags&Int32FromInt32(GLOB_PERIOD) != 0) { + v10 = int32(FNM_PERIOD) + } else { + v10 = 0 + } + fnm_flags = v9 | v10 + if Xfnmatch(tls, pat, de+19, fnm_flags) != 0 { + continue + } + /* With GLOB_PERIOD, don't allow matching . or .. unless + * fnmatch would match them with FNM_PERIOD rules in effect. */ + if p2 != 0 && flags&int32(GLOB_PERIOD) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(de + 19))) == int32('.') && (!(**(**uint8)(__ccgo_up(de + 19 + 1)) != 0) || Int32FromUint8(**(**uint8)(__ccgo_up(de + 19 + 1))) == int32('.') && !(**(**uint8)(__ccgo_up(de + 19 + 2)) != 0)) && Xfnmatch(tls, pat, de+19, fnm_flags|int32(FNM_PERIOD)) != 0 { + continue + } + Xmemcpy(tls, buf+uintptr(pos), de+19, l+uint64(1)) + if p2 != 0 { + **(**uint8)(__ccgo_up(p2)) = saved_sep + } + if p2 != 0 { + v2 = p2 + } else { + v2 = __ccgo_ts + } + r = _do_glob(tls, buf, pos+l, Int32FromUint8((*Tdirent)(unsafe.Pointer(de)).Fd_type), v2, flags, __ccgo_fp_errfunc, tail) + if r != 0 { + Xclosedir(tls, dir) + return r + } + } + readerr = **(**int32)(__ccgo_up(X__errno_location(tls))) + if p2 != 0 { + **(**uint8)(__ccgo_up(p2)) = saved_sep + } + Xclosedir(tls, dir) + if readerr != 0 && ((*(*func(*TLS, uintptr, int32) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_errfunc})))(tls, buf, **(**int32)(__ccgo_up(X__errno_location(tls)))) != 0 || flags&int32(GLOB_ERR) != 0) { + return int32(GLOB_ABORTED) + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = old_errno + return 0 +} + +func _ignore_err(tls *TLS, path uintptr, err int32) (r int32) { + return 0 +} + +func _freelist(tls *TLS, head uintptr) { + var match, next uintptr + _, _ = match, next + match = (*Tmatch)(unsafe.Pointer(head)).Fnext + for { + if !(match != 0) { + break + } + next = (*Tmatch)(unsafe.Pointer(match)).Fnext + Xfree(tls, match) + goto _1 + _1: + ; + match = next + } +} + +func _sort(tls *TLS, a uintptr, b uintptr) (r int32) { + return Xstrcmp(tls, **(**uintptr)(__ccgo_up(a)), **(**uintptr)(__ccgo_up(b))) +} + +func _expand_tilde(tls *TLS, pat uintptr, buf uintptr, pos uintptr) (r int32) { + bp := tls.Alloc(64) + defer tls.Free(64) + var delim, v1 uint8 + var home, name_end, p, v2 uintptr + var i, v10 Tsize_t + var v4 int32 + var _ /* pw at bp+0 */ Tpasswd + var _ /* res at bp+48 */ uintptr + _, _, _, _, _, _, _, _, _ = delim, home, i, name_end, p, v1, v10, v2, v4 + p = **(**uintptr)(__ccgo_up(pat)) + uintptr(1) + i = uint64(0) + name_end = X__strchrnul(tls, p, int32('/')) + v1 = **(**uint8)(__ccgo_up(name_end)) + delim = v1 + if v1 != 0 { + v2 = name_end + name_end = name_end + 1 + **(**uint8)(__ccgo_up(v2)) = uint8(0) + } + **(**uintptr)(__ccgo_up(pat)) = name_end + if **(**uint8)(__ccgo_up(p)) != 0 { + v2 = UintptrFromInt32(0) + } else { + v2 = Xgetenv(tls, __ccgo_ts+1437) + } + home = v2 + if !(home != 0) { + if **(**uint8)(__ccgo_up(p)) != 0 { + v4 = Xgetpwnam_r(tls, p, bp, buf, uint64(PATH_MAX), bp+48) + } else { + v4 = Xgetpwuid_r(tls, Xgetuid(tls), bp, buf, uint64(PATH_MAX), bp+48) + } + switch v4 { + case int32(ENOMEM): + goto _5 + default: + goto _6 + case 0: + goto _7 + } + goto _8 + _5: + ; + return int32(GLOB_NOSPACE) + _7: + ; + if !!(**(**uintptr)(__ccgo_up(bp + 48)) != 0) { + goto _9 + } + _6: + ; + return int32(GLOB_NOMATCH) + _9: + ; + _8: + ; + home = (**(**Tpasswd)(__ccgo_up(bp))).Fpw_dir + } + for i < Uint64FromInt32(Int32FromInt32(PATH_MAX)-Int32FromInt32(2)) && **(**uint8)(__ccgo_up(home)) != 0 { + v10 = i + i = i + 1 + v2 = home + home = home + 1 + **(**uint8)(__ccgo_up(buf + uintptr(v10))) = **(**uint8)(__ccgo_up(v2)) + } + if **(**uint8)(__ccgo_up(home)) != 0 { + return int32(GLOB_NOMATCH) + } + v1 = delim + **(**uint8)(__ccgo_up(buf + uintptr(i))) = v1 + if v1 != 0 { + i = i + 1 + v10 = i + **(**uint8)(__ccgo_up(buf + uintptr(v10))) = uint8(0) + } + **(**Tsize_t)(__ccgo_up(pos)) = i + return 0 +} + +type t__ccgo_fp__Xglob_2 = func(*TLS, uintptr, int32) int32 + +func Xglob(tls *TLS, pat uintptr, flags int32, __ccgo_fp_errfunc uintptr, g uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v pat=%v flags=%v __ccgo_fp_errfunc=%v g=%v, (%v:)", tls, pat, flags, __ccgo_fp_errfunc, g, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(4128) + defer tls.Free(4128) + var cnt, i, offs Tsize_t + var error1 int32 + var p, pathv uintptr + var v1 uint64 + var _ /* buf at bp+16 */ [4096]uint8 + var _ /* head at bp+0 */ Tmatch + var _ /* pos at bp+4112 */ Tsize_t + var _ /* s at bp+4120 */ uintptr + var _ /* tail at bp+8 */ uintptr + _, _, _, _, _, _, _ = cnt, error1, i, offs, p, pathv, v1 + **(**Tmatch)(__ccgo_up(bp)) = struct { + Fnext uintptr + }{} + **(**uintptr)(__ccgo_up(bp + 8)) = bp + if flags&int32(GLOB_DOOFFS) != 0 { + v1 = (*Tglob_t)(unsafe.Pointer(g)).Fgl_offs + } else { + v1 = uint64(0) + } + offs = v1 + error1 = 0 + if !(__ccgo_fp_errfunc != 0) { + __ccgo_fp_errfunc = __ccgo_fp(_ignore_err) + } + if !(flags&Int32FromInt32(GLOB_APPEND) != 0) { + (*Tglob_t)(unsafe.Pointer(g)).Fgl_offs = offs + (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathc = uint64(0) + (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv = UintptrFromInt32(0) + } + if **(**uint8)(__ccgo_up(pat)) != 0 { + p = Xstrdup(tls, pat) + if !(p != 0) { + return int32(GLOB_NOSPACE) + } + (**(**[4096]uint8)(__ccgo_up(bp + 16)))[0] = uint8(0) + **(**Tsize_t)(__ccgo_up(bp + 4112)) = uint64(0) + **(**uintptr)(__ccgo_up(bp + 4120)) = p + if flags&(Int32FromInt32(GLOB_TILDE)|Int32FromInt32(GLOB_TILDE_CHECK)) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('~') { + error1 = _expand_tilde(tls, bp+4120, bp+16, bp+4112) + } + if !(error1 != 0) { + error1 = _do_glob(tls, bp+16, **(**Tsize_t)(__ccgo_up(bp + 4112)), 0, **(**uintptr)(__ccgo_up(bp + 4120)), flags, __ccgo_fp_errfunc, bp+8) + } + Xfree(tls, p) + } + if error1 == int32(GLOB_NOSPACE) { + _freelist(tls, bp) + return error1 + } + cnt = uint64(0) + **(**uintptr)(__ccgo_up(bp + 8)) = (**(**Tmatch)(__ccgo_up(bp))).Fnext + for { + if !(**(**uintptr)(__ccgo_up(bp + 8)) != 0) { + break + } + goto _2 + _2: + ; + **(**uintptr)(__ccgo_up(bp + 8)) = (*Tmatch)(unsafe.Pointer(**(**uintptr)(__ccgo_up(bp + 8)))).Fnext + cnt = cnt + 1 + } + if !(cnt != 0) { + if flags&int32(GLOB_NOCHECK) != 0 { + **(**uintptr)(__ccgo_up(bp + 8)) = bp + if _append(tls, bp+8, pat, _strlen(tls, pat), 0) != 0 { + return int32(GLOB_NOSPACE) + } + cnt = cnt + 1 + } else { + if !(error1 != 0) { + return int32(GLOB_NOMATCH) + } + } + } + if flags&int32(GLOB_APPEND) != 0 { + pathv = Xrealloc(tls, (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv, (offs+(*Tglob_t)(unsafe.Pointer(g)).Fgl_pathc+cnt+uint64(1))*uint64(8)) + if !(pathv != 0) { + _freelist(tls, bp) + return int32(GLOB_NOSPACE) + } + (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv = pathv + offs = offs + (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathc + } else { + (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv = Xmalloc(tls, (offs+cnt+uint64(1))*uint64(8)) + if !((*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv != 0) { + _freelist(tls, bp) + return int32(GLOB_NOSPACE) + } + i = uint64(0) + for { + if !(i < offs) { + break + } + **(**uintptr)(__ccgo_up((*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv + uintptr(i)*8)) = UintptrFromInt32(0) + goto _3 + _3: + ; + i = i + 1 + } + } + i = uint64(0) + **(**uintptr)(__ccgo_up(bp + 8)) = (**(**Tmatch)(__ccgo_up(bp))).Fnext + for { + if !(i < cnt) { + break + } + **(**uintptr)(__ccgo_up((*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv + uintptr(offs+i)*8)) = **(**uintptr)(__ccgo_up(bp + 8)) + 8 + goto _4 + _4: + ; + **(**uintptr)(__ccgo_up(bp + 8)) = (*Tmatch)(unsafe.Pointer(**(**uintptr)(__ccgo_up(bp + 8)))).Fnext + i = i + 1 + } + **(**uintptr)(__ccgo_up((*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv + uintptr(offs+i)*8)) = UintptrFromInt32(0) + **(**Tsize_t)(__ccgo_up(g)) += cnt + if !(flags&Int32FromInt32(GLOB_NOSORT) != 0) { + Xqsort(tls, (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv+uintptr(offs)*8, cnt, uint64(8), __ccgo_fp(_sort)) + } + return error1 +} + +func Xglobfree(tls *TLS, g uintptr) { + if __ccgo_strace { + trc("tls=%v g=%v, (%v:)", tls, g, origin(2)) + } + var i Tsize_t + _ = i + i = uint64(0) + for { + if !(i < (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathc) { + break + } + Xfree(tls, **(**uintptr)(__ccgo_up((*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv + uintptr((*Tglob_t)(unsafe.Pointer(g)).Fgl_offs+i)*8))-uintptr(uint64(UintptrFromInt32(0)+8))) + goto _1 + _1: + ; + i = i + 1 + } + Xfree(tls, (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv) + (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathc = uint64(0) + (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv = UintptrFromInt32(0) +} + +const ASSERTION = -2 +const ASSERT_AT_BOL = 1 +const ASSERT_AT_BOW = 16 +const ASSERT_AT_EOL = 2 +const ASSERT_AT_EOW = 32 +const ASSERT_AT_WB = 64 +const ASSERT_AT_WB_NEG = 128 +const ASSERT_BACKREF = 256 +const ASSERT_CHAR_CLASS = 4 +const ASSERT_CHAR_CLASS_NEG = 8 +const ASSERT_LAST = 256 +const BACKREF = -4 +const COPY_MAXIMIZE_FIRST_TAG = 2 +const COPY_REMOVE_TAGS = 1 +const EMPTY1 = -1 +const MAX_NEG_CLASSES = 64 +const REG_BADBR = 10 +const REG_BADPAT = 2 +const REG_BADRPT = 13 +const REG_EBRACE = 9 +const REG_EBRACK = 7 +const REG_ECOLLATE = 3 +const REG_ECTYPE = 4 +const REG_EESCAPE = 5 +const REG_ENOSYS = -1 +const REG_EPAREN = 8 +const REG_ERANGE = 11 +const REG_ESPACE = 12 +const REG_ESUBREG = 6 +const REG_EXTENDED = 1 +const REG_ICASE = 2 +const REG_NEWLINE = 4 +const REG_NOMATCH = 1 +const REG_NOSUB = 8 +const REG_NOTBOL = 1 +const REG_NOTEOL = 2 +const REG_OK = 0 +const TAG = -3 +const TRE_CHAR_MAX = 1114111 +const TRE_MEM_BLOCK_SIZE = 1024 +const TRE_REGEX_T_FIELD = 0 +const tre_ctype = 0 +const tre_isalnum = 0 +const tre_isalpha = 0 +const tre_isblank = 0 +const tre_iscntrl = 0 +const tre_isctype = 0 +const tre_isdigit = 0 +const tre_isgraph = 0 +const tre_islower = 0 +const tre_isprint = 0 +const tre_ispunct = 0 +const tre_isspace = 0 +const tre_isupper = 0 +const tre_isxdigit = 0 +const tre_mem_alloc_impl = 0 +const tre_mem_destroy = 0 +const tre_mem_new_impl = 0 +const tre_strlen = 0 +const tre_tolower = 0 +const tre_toupper = 0 +const xcalloc = 0 +const xfree = 0 +const xmalloc = 0 +const xrealloc = 0 + +type Tregoff_t = int64 + +type Tregex_t = struct { + Fre_nsub Tsize_t + F__opaque uintptr + F__padding [4]uintptr + F__nsub2 Tsize_t + F__padding2 uint8 +} + +type Tre_pattern_buffer = Tregex_t + +type Tregmatch_t = struct { + Frm_so Tregoff_t + Frm_eo Tregoff_t +} + +type Treg_errcode_t = int32 + +type Ttre_char_t = int32 + +type Ttre_cint_t = uint32 + +type Ttre_ctype_t = uint64 + +type Ttre_tnfa_transition_t = struct { + Fcode_min Ttre_cint_t + Fcode_max Ttre_cint_t + Fstate uintptr + Fstate_id int32 + Ftags uintptr + Fassertions int32 + Fu struct { + Fbackref [0]int32 + Fclass Ttre_ctype_t + } + Fneg_classes uintptr +} + +type Ttnfa_transition = Ttre_tnfa_transition_t + +type Ttre_tag_direction_t = int32 + +const _TRE_TAG_MINIMIZE = 0 +const _TRE_TAG_MAXIMIZE = 1 + +type Ttre_submatch_data = struct { + Fso_tag int32 + Feo_tag int32 + Fparents uintptr +} + +type Ttre_submatch_data_t = struct { + Fso_tag int32 + Feo_tag int32 + Fparents uintptr +} + +type Ttre_tnfa_t = struct { + Ftransitions uintptr + Fnum_transitions uint32 + Finitial uintptr + Ffinal uintptr + Fsubmatch_data uintptr + Ffirstpos_chars uintptr + Ffirst_char int32 + Fnum_submatches uint32 + Ftag_directions uintptr + Fminimal_tags uintptr + Fnum_tags int32 + Fnum_minimals int32 + Fend_tag int32 + Fnum_states int32 + Fcflags int32 + Fhave_backrefs int32 + Fhave_approx int32 +} + +type Ttnfa = Ttre_tnfa_t + +type Ttre_list_t = struct { + Fdata uintptr + Fnext uintptr +} + +type Ttre_list = Ttre_list_t + +type Ttre_mem_t = uintptr + +type Ttre_mem_struct = struct { + Fblocks uintptr + Fcurrent uintptr + Fptr uintptr + Fn Tsize_t + Ffailed int32 + Fprovided uintptr +} + +/*********************************************************************** + from tre-compile.h +***********************************************************************/ + +type Ttre_pos_and_tags_t = struct { + Fposition int32 + Fcode_min int32 + Fcode_max int32 + Ftags uintptr + Fassertions int32 + Fclass Ttre_ctype_t + Fneg_classes uintptr + Fbackref int32 +} + +/*********************************************************************** + from tre-ast.c and tre-ast.h +***********************************************************************/ + +// C documentation +// +// /* The different AST node types. */ +type Ttre_ast_type_t = int32 + +const _LITERAL = 0 +const _CATENATION = 1 +const _ITERATION = 2 +const _UNION = 3 + +/* Special subtypes of TRE_LITERAL. */ + +// C documentation +// +// /* A generic AST node. All AST nodes consist of this node on the top +// level with `obj' pointing to the actual content. */ +type Ttre_ast_node_t = struct { + Ftype1 Ttre_ast_type_t + Fobj uintptr + Fnullable int32 + Fsubmatch_id int32 + Fnum_submatches int32 + Fnum_tags int32 + Ffirstpos uintptr + Flastpos uintptr +} + +// C documentation +// +// /* A "literal" node. These are created for assertions, back references, +// tags, matching parameter settings, and all expressions that match one +// character. */ +type Ttre_literal_t = struct { + Fcode_min int64 + Fcode_max int64 + Fposition int32 + Fclass Ttre_ctype_t + Fneg_classes uintptr +} + +// C documentation +// +// /* A "catenation" node. These are created when two regexps are concatenated. +// If there are more than one subexpressions in sequence, the `left' part +// holds all but the last, and `right' part holds the last subexpression +// (catenation is left associative). */ +type Ttre_catenation_t = struct { + Fleft uintptr + Fright uintptr +} + +// C documentation +// +// /* An "iteration" node. These are created for the "*", "+", "?", and "{m,n}" +// operators. */ +type Ttre_iteration_t = struct { + Farg uintptr + Fmin int32 + Fmax int32 + F__ccgo16 uint8 +} + +// C documentation +// +// /* An "union" node. These are created for the "|" operator. */ +type Ttre_union_t = struct { + Fleft uintptr + Fright uintptr +} + +func _tre_ast_new_node(tls *TLS, mem Ttre_mem_t, type1 int32, obj uintptr) (r uintptr) { + var node uintptr + _ = node + node = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), int32(1), uint64(48)) + if !(node != 0) || !(obj != 0) { + return uintptr(0) + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj = obj + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 = type1 + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnullable = -int32(1) + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fsubmatch_id = -int32(1) + return node +} + +func _tre_ast_new_literal(tls *TLS, mem Ttre_mem_t, code_min int32, code_max int32, position int32) (r uintptr) { + var lit, node uintptr + _, _ = lit, node + lit = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), int32(1), uint64(40)) + node = _tre_ast_new_node(tls, mem, int32(_LITERAL), lit) + if !(node != 0) { + return uintptr(0) + } + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min = int64(code_min) + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max = int64(code_max) + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition = position + return node +} + +func _tre_ast_new_iter(tls *TLS, mem Ttre_mem_t, arg uintptr, min int32, max int32, minimal int32) (r uintptr) { + var iter, node uintptr + _, _ = iter, node + iter = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), int32(1), uint64(24)) + node = _tre_ast_new_node(tls, mem, int32(_ITERATION), iter) + if !(node != 0) { + return uintptr(0) + } + (*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg = arg + (*Ttre_iteration_t)(unsafe.Pointer(iter)).Fmin = min + (*Ttre_iteration_t)(unsafe.Pointer(iter)).Fmax = max + SetBitFieldPtr8Uint32(iter+16, Uint32FromInt32(minimal), 0, 0x1) + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_submatches = (*Ttre_ast_node_t)(unsafe.Pointer(arg)).Fnum_submatches + return node +} + +func _tre_ast_new_union(tls *TLS, mem Ttre_mem_t, left uintptr, right uintptr) (r uintptr) { + var node, un uintptr + _, _ = node, un + if !(left != 0) { + return right + } + un = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), int32(1), uint64(16)) + node = _tre_ast_new_node(tls, mem, int32(_UNION), un) + if !(node != 0) || !(right != 0) { + return uintptr(0) + } + (*Ttre_union_t)(unsafe.Pointer(un)).Fleft = left + (*Ttre_union_t)(unsafe.Pointer(un)).Fright = right + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_submatches = (*Ttre_ast_node_t)(unsafe.Pointer(left)).Fnum_submatches + (*Ttre_ast_node_t)(unsafe.Pointer(right)).Fnum_submatches + return node +} + +func _tre_ast_new_catenation(tls *TLS, mem Ttre_mem_t, left uintptr, right uintptr) (r uintptr) { + var cat, node uintptr + _, _ = cat, node + if !(left != 0) { + return right + } + cat = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), int32(1), uint64(16)) + node = _tre_ast_new_node(tls, mem, int32(_CATENATION), cat) + if !(node != 0) { + return uintptr(0) + } + (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft = left + (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright = right + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_submatches = (*Ttre_ast_node_t)(unsafe.Pointer(left)).Fnum_submatches + (*Ttre_ast_node_t)(unsafe.Pointer(right)).Fnum_submatches + return node +} + +/*********************************************************************** + from tre-stack.c and tre-stack.h +***********************************************************************/ + +type Ttre_stack_t = struct { + Fsize int32 + Fmax_size int32 + Fincrement int32 + Fptr int32 + Fstack uintptr +} + +/*********************************************************************** + from tre-stack.c and tre-stack.h +***********************************************************************/ + +type Ttre_stack_rec = Ttre_stack_t + +/* Just to save some typing. */ + +type Ttre_stack_item = struct { + Fint_value [0]int32 + Fvoidptr_value uintptr +} + +func _tre_stack_new(tls *TLS, size int32, max_size int32, increment int32) (r uintptr) { + var s uintptr + _ = s + s = Xmalloc(tls, uint64(24)) + if s != UintptrFromInt32(0) { + (*Ttre_stack_t)(unsafe.Pointer(s)).Fstack = Xmalloc(tls, uint64(8)*Uint64FromInt32(size)) + if (*Ttre_stack_t)(unsafe.Pointer(s)).Fstack == UintptrFromInt32(0) { + Xfree(tls, s) + return UintptrFromInt32(0) + } + (*Ttre_stack_t)(unsafe.Pointer(s)).Fsize = size + (*Ttre_stack_t)(unsafe.Pointer(s)).Fmax_size = max_size + (*Ttre_stack_t)(unsafe.Pointer(s)).Fincrement = increment + (*Ttre_stack_t)(unsafe.Pointer(s)).Fptr = 0 + } + return s +} + +func _tre_stack_destroy(tls *TLS, s uintptr) { + Xfree(tls, (*Ttre_stack_t)(unsafe.Pointer(s)).Fstack) + Xfree(tls, s) +} + +func _tre_stack_num_objects(tls *TLS, s uintptr) (r int32) { + return (*Ttre_stack_t)(unsafe.Pointer(s)).Fptr +} + +func _tre_stack_push(tls *TLS, s uintptr, value Ttre_stack_item) (r Treg_errcode_t) { + var new_buffer uintptr + var new_size int32 + _, _ = new_buffer, new_size + if (*Ttre_stack_t)(unsafe.Pointer(s)).Fptr < (*Ttre_stack_t)(unsafe.Pointer(s)).Fsize { + **(**Ttre_stack_item)(__ccgo_up((*Ttre_stack_t)(unsafe.Pointer(s)).Fstack + uintptr((*Ttre_stack_t)(unsafe.Pointer(s)).Fptr)*8)) = value + (*Ttre_stack_t)(unsafe.Pointer(s)).Fptr = (*Ttre_stack_t)(unsafe.Pointer(s)).Fptr + 1 + } else { + if (*Ttre_stack_t)(unsafe.Pointer(s)).Fsize >= (*Ttre_stack_t)(unsafe.Pointer(s)).Fmax_size { + return int32(REG_ESPACE) + } else { + new_size = (*Ttre_stack_t)(unsafe.Pointer(s)).Fsize + (*Ttre_stack_t)(unsafe.Pointer(s)).Fincrement + if new_size > (*Ttre_stack_t)(unsafe.Pointer(s)).Fmax_size { + new_size = (*Ttre_stack_t)(unsafe.Pointer(s)).Fmax_size + } + new_buffer = Xrealloc(tls, (*Ttre_stack_t)(unsafe.Pointer(s)).Fstack, uint64(8)*Uint64FromInt32(new_size)) + if new_buffer == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + (*Ttre_stack_t)(unsafe.Pointer(s)).Fsize = new_size + (*Ttre_stack_t)(unsafe.Pointer(s)).Fstack = new_buffer + _tre_stack_push(tls, s, value) + } + } + return REG_OK +} + +func _tre_stack_push_int(tls *TLS, s uintptr, value int32) (r Treg_errcode_t) { + var item Ttre_stack_item + _ = item + *(*int32)(unsafe.Pointer(&item)) = value + return _tre_stack_push(tls, s, item) +} + +func _tre_stack_push_voidptr(tls *TLS, s uintptr, value uintptr) (r Treg_errcode_t) { + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* item at bp+0 */ Ttre_stack_item + *(*uintptr)(unsafe.Pointer(bp)) = value + return _tre_stack_push(tls, s, **(**Ttre_stack_item)(__ccgo_up(bp))) +} + +func _tre_stack_pop_int(tls *TLS, s uintptr) (r int32) { + var v1 int32 + var v2 uintptr + _, _ = v1, v2 + v2 = s + 12 + *(*int32)(unsafe.Pointer(v2)) = *(*int32)(unsafe.Pointer(v2)) - 1 + v1 = *(*int32)(unsafe.Pointer(v2)) + return *(*int32)(unsafe.Pointer(&**(**Ttre_stack_item)(__ccgo_up((*Ttre_stack_t)(unsafe.Pointer(s)).Fstack + uintptr(v1)*8)))) +} + +func _tre_stack_pop_voidptr(tls *TLS, s uintptr) (r uintptr) { + var v1 int32 + var v2 uintptr + _, _ = v1, v2 + v2 = s + 12 + *(*int32)(unsafe.Pointer(v2)) = *(*int32)(unsafe.Pointer(v2)) - 1 + v1 = *(*int32)(unsafe.Pointer(v2)) + return *(*uintptr)(unsafe.Pointer((*Ttre_stack_t)(unsafe.Pointer(s)).Fstack + uintptr(v1)*8)) +} + +/*********************************************************************** + from tre-parse.c and tre-parse.h +***********************************************************************/ + +// C documentation +// +// /* Parse context. */ +type Ttre_parse_ctx_t = struct { + Fmem Ttre_mem_t + Fstack uintptr + Fn uintptr + Fs uintptr + Fstart uintptr + Fsubmatch_id int32 + Fposition int32 + Fmax_backref int32 + Fcflags int32 +} + +// C documentation +// +// /* Some macros for expanding \w, \s, etc. */ +var _tre_macros = [13]struct { + Fc uint8 + Fexpansion uintptr +}{ + 0: { + Fc: uint8('t'), + Fexpansion: __ccgo_ts + 1442, + }, + 1: { + Fc: uint8('n'), + Fexpansion: __ccgo_ts + 398, + }, + 2: { + Fc: uint8('r'), + Fexpansion: __ccgo_ts + 1444, + }, + 3: { + Fc: uint8('f'), + Fexpansion: __ccgo_ts + 1446, + }, + 4: { + Fc: uint8('a'), + Fexpansion: __ccgo_ts + 1448, + }, + 5: { + Fc: uint8('e'), + Fexpansion: __ccgo_ts + 1450, + }, + 6: { + Fc: uint8('w'), + Fexpansion: __ccgo_ts + 1452, + }, + 7: { + Fc: uint8('W'), + Fexpansion: __ccgo_ts + 1465, + }, + 8: { + Fc: uint8('s'), + Fexpansion: __ccgo_ts + 1479, + }, + 9: { + Fc: uint8('S'), + Fexpansion: __ccgo_ts + 1491, + }, + 10: { + Fc: uint8('d'), + Fexpansion: __ccgo_ts + 1504, + }, + 11: { + Fc: uint8('D'), + Fexpansion: __ccgo_ts + 1516, + }, + 12: {}, +} + +// C documentation +// +// /* Expands a macro delimited by `regex' and `regex_end' to `buf', which +// must have at least `len' items. Sets buf[0] to zero if the there +// is no match in `tre_macros'. */ +func _tre_expand_macro(tls *TLS, s uintptr) (r uintptr) { + var i int32 + _ = i + i = 0 + for { + if !(_tre_macros[i].Fc != 0 && Int32FromUint8(_tre_macros[i].Fc) != Int32FromUint8(**(**uint8)(__ccgo_up(s)))) { + break + } + goto _1 + _1: + ; + i = i + 1 + } + return _tre_macros[i].Fexpansion +} + +func _tre_compare_lit(tls *TLS, a uintptr, b uintptr) (r int32) { + var la, lb uintptr + _, _ = la, lb + la = a + lb = b + /* assumes the range of valid code_min is < INT_MAX */ + return int32((*Ttre_literal_t)(unsafe.Pointer(**(**uintptr)(__ccgo_up(la)))).Fcode_min - (*Ttre_literal_t)(unsafe.Pointer(**(**uintptr)(__ccgo_up(lb)))).Fcode_min) +} + +type Tliterals = struct { + Fmem Ttre_mem_t + Fa uintptr + Flen1 int32 + Fcap1 int32 +} + +func _tre_new_lit(tls *TLS, p uintptr) (r uintptr) { + var a, v2 uintptr + var v1 int32 + _, _, _ = a, v1, v2 + if (*Tliterals)(unsafe.Pointer(p)).Flen1 >= (*Tliterals)(unsafe.Pointer(p)).Fcap1 { + if (*Tliterals)(unsafe.Pointer(p)).Fcap1 >= Int32FromInt32(1)< max { + return int32(REG_ERANGE) + } + s = s + uintptr(len1) + } + } + if class != 0 && (*Tneg)(unsafe.Pointer(neg)).Fnegate != 0 { + if (*Tneg)(unsafe.Pointer(neg)).Flen1 >= int32(MAX_NEG_CLASSES) { + return int32(REG_ESPACE) + } + v6 = neg + 4 + v2 = *(*int32)(unsafe.Pointer(v6)) + *(*int32)(unsafe.Pointer(v6)) = *(*int32)(unsafe.Pointer(v6)) + 1 + **(**Ttre_ctype_t)(__ccgo_up(neg + 8 + uintptr(v2)*8)) = class + } else { + lit = _tre_new_lit(tls, ls) + if !(lit != 0) { + return int32(REG_ESPACE) + } + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min = int64(min) + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max = int64(max) + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fclass = class + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition = -int32(1) + /* Add opposite-case codepoints if REG_ICASE is present. + It seems that POSIX requires that bracket negation + should happen before case-folding, but most practical + implementations do it the other way around. Changing + the order would need efficient representation of + case-fold ranges and bracket range sets even with + simple patterns so this is ok for now. */ + if (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fcflags&int32(REG_ICASE) != 0 && !(class != 0) { + if _add_icase_literals(tls, ls, min, max) != 0 { + return int32(REG_ESPACE) + } + } + } + goto _1 + _1: + } + return r +} + +func _parse_bracket(tls *TLS, ctx uintptr, s uintptr) (r Treg_errcode_t) { + bp := tls.Alloc(544) + defer tls.Free(544) + var err Treg_errcode_t + var i, max, min, negmax, negmin, v1 int32 + var lit, n, nc, node uintptr + var _ /* ls at bp+0 */ Tliterals + var _ /* neg at bp+24 */ Tneg + _, _, _, _, _, _, _, _, _, _, _ = err, i, lit, max, min, n, nc, negmax, negmin, node, v1 + node = uintptr(0) + nc = uintptr(0) + (**(**Tliterals)(__ccgo_up(bp))).Fmem = (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem + (**(**Tliterals)(__ccgo_up(bp))).Flen1 = 0 + (**(**Tliterals)(__ccgo_up(bp))).Fcap1 = int32(32) + (**(**Tliterals)(__ccgo_up(bp))).Fa = Xmalloc(tls, Uint64FromInt32((**(**Tliterals)(__ccgo_up(bp))).Fcap1)*uint64(8)) + if !((**(**Tliterals)(__ccgo_up(bp))).Fa != 0) { + return int32(REG_ESPACE) + } + (**(**Tneg)(__ccgo_up(bp + 24))).Flen1 = 0 + (**(**Tneg)(__ccgo_up(bp + 24))).Fnegate = BoolInt32(Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('^')) + if (**(**Tneg)(__ccgo_up(bp + 24))).Fnegate != 0 { + s = s + 1 + } + err = _parse_bracket_terms(tls, ctx, s, bp, bp+24) + if err != REG_OK { + goto parse_bracket_done + } + if (**(**Tneg)(__ccgo_up(bp + 24))).Fnegate != 0 { + /* + * With REG_NEWLINE, POSIX requires that newlines are not matched by + * any form of a non-matching list. + */ + if (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fcflags&int32(REG_NEWLINE) != 0 { + lit = _tre_new_lit(tls, bp) + if !(lit != 0) { + err = int32(REG_ESPACE) + goto parse_bracket_done + } + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min = int64('\n') + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max = int64('\n') + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition = -int32(1) + } + /* Sort the array if we need to negate it. */ + Xqsort(tls, (**(**Tliterals)(__ccgo_up(bp))).Fa, Uint64FromInt32((**(**Tliterals)(__ccgo_up(bp))).Flen1), uint64(8), __ccgo_fp(_tre_compare_lit)) + /* extra lit for the last negated range */ + lit = _tre_new_lit(tls, bp) + if !(lit != 0) { + err = int32(REG_ESPACE) + goto parse_bracket_done + } + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min = int64(Int32FromInt32(TRE_CHAR_MAX) + Int32FromInt32(1)) + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max = int64(Int32FromInt32(TRE_CHAR_MAX) + Int32FromInt32(1)) + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition = -int32(1) + /* negated classes */ + if (**(**Tneg)(__ccgo_up(bp + 24))).Flen1 != 0 { + nc = X__tre_mem_alloc_impl(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, 0, UintptrFromInt32(0), 0, Uint64FromInt32((**(**Tneg)(__ccgo_up(bp + 24))).Flen1+Int32FromInt32(1))*uint64(8)) + if !(nc != 0) { + err = int32(REG_ESPACE) + goto parse_bracket_done + } + Xmemcpy(tls, nc, bp+24+8, Uint64FromInt32((**(**Tneg)(__ccgo_up(bp + 24))).Flen1)*uint64(8)) + **(**Ttre_ctype_t)(__ccgo_up(nc + uintptr((**(**Tneg)(__ccgo_up(bp + 24))).Flen1)*8)) = uint64(0) + } + } + /* Build a union of the items in the array, negated if necessary. */ + v1 = Int32FromInt32(0) + negmin = v1 + negmax = v1 + i = 0 + for { + if !(i < (**(**Tliterals)(__ccgo_up(bp))).Flen1) { + break + } + lit = **(**uintptr)(__ccgo_up((**(**Tliterals)(__ccgo_up(bp))).Fa + uintptr(i)*8)) + min = int32((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min) + max = int32((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max) + if (**(**Tneg)(__ccgo_up(bp + 24))).Fnegate != 0 { + if min <= negmin { + /* Overlap. */ + if max+int32(1) >= negmin { + v1 = max + int32(1) + } else { + v1 = negmin + } + negmin = v1 + goto _2 + } + negmax = min - int32(1) + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min = int64(negmin) + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max = int64(negmax) + negmin = max + int32(1) + } + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition = (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fposition + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fneg_classes = nc + n = _tre_ast_new_node(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, int32(_LITERAL), lit) + node = _tre_ast_new_union(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, node, n) + if !(node != 0) { + err = int32(REG_ESPACE) + break + } + goto _2 + _2: + ; + i = i + 1 + } + goto parse_bracket_done +parse_bracket_done: + ; + Xfree(tls, (**(**Tliterals)(__ccgo_up(bp))).Fa) + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fposition = (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fposition + 1 + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fn = node + return err +} + +func _parse_dup_count(tls *TLS, s uintptr, n uintptr) (r uintptr) { + **(**int32)(__ccgo_up(n)) = -int32(1) + if !(BoolInt32(uint32(**(**uint8)(__ccgo_up(s)))-Uint32FromUint8('0') < Uint32FromInt32(10)) != 0) { + return s + } + **(**int32)(__ccgo_up(n)) = 0 + for { + **(**int32)(__ccgo_up(n)) = int32(10)***(**int32)(__ccgo_up(n)) + (Int32FromUint8(**(**uint8)(__ccgo_up(s))) - int32('0')) + s = s + 1 + if !(BoolInt32(uint32(**(**uint8)(__ccgo_up(s)))-Uint32FromUint8('0') < Uint32FromInt32(10)) != 0) || **(**int32)(__ccgo_up(n)) > int32(RE_DUP_MAX) { + break + } + goto _1 + _1: + } + return s +} + +func _parse_dup(tls *TLS, s uintptr, ere int32, pmin uintptr, pmax uintptr) (r uintptr) { + bp := tls.Alloc(16) + defer tls.Free(16) + var v1, v4 uintptr + var v2, v3, v5 bool + var _ /* max at bp+4 */ int32 + var _ /* min at bp+0 */ int32 + _, _, _, _, _ = v1, v2, v3, v4, v5 + s = _parse_dup_count(tls, s, bp) + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32(',') { + s = _parse_dup_count(tls, s+uintptr(1), bp+4) + } else { + **(**int32)(__ccgo_up(bp + 4)) = **(**int32)(__ccgo_up(bp)) + } + if v3 = **(**int32)(__ccgo_up(bp + 4)) < **(**int32)(__ccgo_up(bp)) && **(**int32)(__ccgo_up(bp + 4)) >= 0 || **(**int32)(__ccgo_up(bp + 4)) > int32(RE_DUP_MAX) || **(**int32)(__ccgo_up(bp)) > int32(RE_DUP_MAX) || **(**int32)(__ccgo_up(bp)) < 0; !v3 { + if v2 = !(ere != 0); v2 { + v1 = s + s = s + 1 + } + } + if v5 = v3 || v2 && Int32FromUint8(**(**uint8)(__ccgo_up(v1))) != int32('\\'); !v5 { + v4 = s + s = s + 1 + } + if v5 || Int32FromUint8(**(**uint8)(__ccgo_up(v4))) != int32('}') { + return uintptr(0) + } + **(**int32)(__ccgo_up(pmin)) = **(**int32)(__ccgo_up(bp)) + **(**int32)(__ccgo_up(pmax)) = **(**int32)(__ccgo_up(bp + 4)) + return s +} + +func _hexval1(tls *TLS, c uint32) (r int32) { + if c-uint32('0') < uint32(10) { + return Int32FromUint32(c - uint32('0')) + } + c = c | uint32(32) + if c-uint32('a') < uint32(6) { + return Int32FromUint32(c - uint32('a') + uint32(10)) + } + return -int32(1) +} + +func _marksub(tls *TLS, ctx uintptr, node uintptr, subid int32) (r Treg_errcode_t) { + var n uintptr + _ = n + if (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fsubmatch_id >= 0 { + n = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(1), -int32(1), -int32(1)) + if !(n != 0) { + return int32(REG_ESPACE) + } + n = _tre_ast_new_catenation(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, n, node) + if !(n != 0) { + return int32(REG_ESPACE) + } + (*Ttre_ast_node_t)(unsafe.Pointer(n)).Fnum_submatches = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_submatches + node = n + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fsubmatch_id = subid + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_submatches = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_submatches + 1 + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fn = node + return REG_OK +} + +/* +BRE grammar: +Regex = Branch | '^' | '$' | '^$' | '^' Branch | Branch '$' | '^' Branch '$' +Branch = Atom | Branch Atom +Atom = char | quoted_char | '.' | Bracket | Atom Dup | '\(' Branch '\)' | back_ref +Dup = '*' | '\{' Count '\}' | '\{' Count ',\}' | '\{' Count ',' Count '\}' + +(leading ^ and trailing $ in a sub expr may be an anchor or literal as well) + +ERE grammar: +Regex = Branch | Regex '|' Branch +Branch = Atom | Branch Atom +Atom = char | quoted_char | '.' | Bracket | Atom Dup | '(' Regex ')' | '^' | '$' +Dup = '*' | '+' | '?' | '{' Count '}' | '{' Count ',}' | '{' Count ',' Count '}' + +(a*+?, ^*, $+, \X, {, (|a) are unspecified) +*/ + +func _parse_atom(tls *TLS, ctx uintptr, s uintptr) (r Treg_errcode_t) { + bp := tls.Alloc(16) + defer tls.Free(16) + var c, ere, i, len1, v, val, v16 int32 + var err Treg_errcode_t + var node, p, tmp1, tmp11, tmp2, tmp21, v14 uintptr + var _ /* wc at bp+0 */ Twchar_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = c, ere, err, i, len1, node, p, tmp1, tmp11, tmp2, tmp21, v, val, v14, v16 + ere = (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fcflags & int32(REG_EXTENDED) + switch Int32FromUint8(**(**uint8)(__ccgo_up(s))) { + case int32('['): + goto _1 + case int32('\\'): + goto _2 + case int32('.'): + goto _3 + case int32('^'): + goto _4 + case int32('$'): + goto _5 + case int32('?'): + goto _6 + case int32('+'): + goto _7 + case int32('{'): + goto _8 + case int32('*'): + goto _9 + case int32('|'): + goto _10 + case 0: + goto _11 + default: + goto _12 + } + goto _13 +_1: + ; + return _parse_bracket(tls, ctx, s+uintptr(1)) +_2: + ; + p = _tre_expand_macro(tls, s+uintptr(1)) + if p != 0 { + /* assume \X expansion is a single atom */ + err = _parse_atom(tls, ctx, p) + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fs = s + uintptr(2) + return err + } + /* extensions: \b, \B, \<, \>, \xHH \x{HHHH} */ + s = s + 1 + v14 = s + switch Int32FromUint8(**(**uint8)(__ccgo_up(v14))) { + case 0: + return int32(REG_EESCAPE) + case int32('b'): + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(2), int32(ASSERT_AT_WB), -int32(1)) + case int32('B'): + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(2), int32(ASSERT_AT_WB_NEG), -int32(1)) + case int32('<'): + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(2), int32(ASSERT_AT_BOW), -int32(1)) + case int32('>'): + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(2), int32(ASSERT_AT_EOW), -int32(1)) + case int32('x'): + s = s + 1 + v = 0 + len1 = int32(2) + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('{') { + len1 = int32(8) + s = s + 1 + } + i = 0 + for { + if !(i < len1 && v < int32(0x110000)) { + break + } + c = _hexval1(tls, uint32(**(**uint8)(__ccgo_up(s + uintptr(i))))) + if c < 0 { + break + } + v = int32(16)*v + c + goto _15 + _15: + ; + i = i + 1 + } + s = s + uintptr(i) + if len1 == int32(8) { + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) != int32('}') { + return int32(REG_EBRACE) + } + s = s + 1 + } + v14 = ctx + 44 + v16 = *(*int32)(unsafe.Pointer(v14)) + *(*int32)(unsafe.Pointer(v14)) = *(*int32)(unsafe.Pointer(v14)) + 1 + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, v, v, v16) + s = s - 1 + case int32('{'): + fallthrough + case int32('+'): + fallthrough + case int32('?'): + /* extension: treat \+, \? as repetitions in BRE */ + /* reject repetitions after empty expression in BRE */ + if !(ere != 0) { + return int32(REG_BADRPT) + } + fallthrough + case int32('|'): + /* extension: treat \| as alternation in BRE */ + if !(ere != 0) { + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(1), -int32(1), -int32(1)) + s = s - 1 + goto end + } + /* fallthrough */ + fallthrough + default: + if !(ere != 0) && uint32(**(**uint8)(__ccgo_up(s)))-uint32('1') < uint32(9) { + /* back reference */ + val = Int32FromUint8(**(**uint8)(__ccgo_up(s))) - int32('0') + v14 = ctx + 44 + v16 = *(*int32)(unsafe.Pointer(v14)) + *(*int32)(unsafe.Pointer(v14)) = *(*int32)(unsafe.Pointer(v14)) + 1 + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(4), val, v16) + if val >= (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmax_backref { + v16 = val + } else { + v16 = (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmax_backref + } + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmax_backref = v16 + } else { + /* extension: accept unknown escaped char + as a literal */ + goto parse_literal + } + } + s = s + 1 + goto _13 +_3: + ; + if (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fcflags&int32(REG_NEWLINE) != 0 { + v14 = ctx + 44 + v16 = *(*int32)(unsafe.Pointer(v14)) + *(*int32)(unsafe.Pointer(v14)) = *(*int32)(unsafe.Pointer(v14)) + 1 + tmp1 = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, 0, Int32FromUint8('\n')-Int32FromInt32(1), v16) + v14 = ctx + 44 + v16 = *(*int32)(unsafe.Pointer(v14)) + *(*int32)(unsafe.Pointer(v14)) = *(*int32)(unsafe.Pointer(v14)) + 1 + tmp2 = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, Int32FromUint8('\n')+Int32FromInt32(1), int32(TRE_CHAR_MAX), v16) + if tmp1 != 0 && tmp2 != 0 { + node = _tre_ast_new_union(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, tmp1, tmp2) + } else { + node = uintptr(0) + } + } else { + v14 = ctx + 44 + v16 = *(*int32)(unsafe.Pointer(v14)) + *(*int32)(unsafe.Pointer(v14)) = *(*int32)(unsafe.Pointer(v14)) + 1 + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, 0, int32(TRE_CHAR_MAX), v16) + } + s = s + 1 + goto _13 +_4: + ; + /* '^' has a special meaning everywhere in EREs, and at beginning of BRE. */ + if !(ere != 0) && s != (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fstart { + goto parse_literal + } + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(2), int32(ASSERT_AT_BOL), -int32(1)) + s = s + 1 + goto _13 +_5: + ; + /* '$' is special everywhere in EREs, and at the end of a BRE subexpression. */ + if !(ere != 0) && **(**uint8)(__ccgo_up(s + 1)) != 0 && (Int32FromUint8(**(**uint8)(__ccgo_up(s + 1))) != int32('\\') || Int32FromUint8(**(**uint8)(__ccgo_up(s + 2))) != int32(')') && Int32FromUint8(**(**uint8)(__ccgo_up(s + 2))) != int32('|')) { + goto parse_literal + } + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(2), int32(ASSERT_AT_EOL), -int32(1)) + s = s + 1 + goto _13 +_9: + ; +_8: + ; +_7: + ; +_6: + ; + /* reject repetitions after empty expression in ERE */ + if ere != 0 { + return int32(REG_BADRPT) + } +_10: + ; + if !(ere != 0) { + goto parse_literal + } +_11: + ; + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(1), -int32(1), -int32(1)) + goto _13 +_12: + ; + goto parse_literal +parse_literal: + ; + len1 = Xmbtowc(tls, bp, s, Uint64FromInt32(-Int32FromInt32(1))) + if len1 < 0 { + return int32(REG_BADPAT) + } + if (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fcflags&int32(REG_ICASE) != 0 && (Xiswupper(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp)))) != 0 || Xiswlower(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp)))) != 0) { + /* multiple opposite case characters are not supported */ + tmp11 = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, Int32FromUint32(Xtowupper(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp))))), Int32FromUint32(Xtowupper(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp))))), (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fposition) + tmp21 = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, Int32FromUint32(Xtowlower(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp))))), Int32FromUint32(Xtowlower(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp))))), (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fposition) + if tmp11 != 0 && tmp21 != 0 { + node = _tre_ast_new_union(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, tmp11, tmp21) + } else { + node = uintptr(0) + } + } else { + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, **(**Twchar_t)(__ccgo_up(bp)), **(**Twchar_t)(__ccgo_up(bp)), (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fposition) + } + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fposition = (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fposition + 1 + s = s + uintptr(len1) + goto _13 +_13: + ; + goto end +end: + ; + if !(node != 0) { + return int32(REG_ESPACE) + } + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fn = node + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fs = s + return REG_OK +} + +func _tre_parse(tls *TLS, ctx uintptr) (r Treg_errcode_t) { + bp := tls.Alloc(16) + defer tls.Free(16) + var c, depth, ere, subid, v2 int32 + var err, v1 Treg_errcode_t + var nbranch, nunion, s, stack, v8 uintptr + var _ /* max at bp+4 */ int32 + var _ /* min at bp+0 */ int32 + _, _, _, _, _, _, _, _, _, _, _, _ = c, depth, ere, err, nbranch, nunion, s, stack, subid, v1, v2, v8 + nbranch = uintptr(0) + nunion = uintptr(0) + ere = (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fcflags & int32(REG_EXTENDED) + s = (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fstart + subid = 0 + depth = 0 + stack = (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fstack + v2 = subid + subid = subid + 1 + v1 = _tre_stack_push_int(tls, stack, v2) + err = v1 + if v1 != REG_OK { + return err + } + for { + if !(ere != 0) && Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('\\') && Int32FromUint8(**(**uint8)(__ccgo_up(s + 1))) == int32('(') || ere != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('(') { + v1 = _tre_stack_push_voidptr(tls, stack, nunion) + err = v1 + if v1 != REG_OK { + return err + } + v1 = _tre_stack_push_voidptr(tls, stack, nbranch) + err = v1 + if v1 != REG_OK { + return err + } + v2 = subid + subid = subid + 1 + v1 = _tre_stack_push_int(tls, stack, v2) + err = v1 + if v1 != REG_OK { + return err + } + s = s + 1 + if !(ere != 0) { + s = s + 1 + } + depth = depth + 1 + v8 = UintptrFromInt32(0) + nunion = v8 + nbranch = v8 + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fstart = s + goto _3 + } + if !(ere != 0) && Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('\\') && Int32FromUint8(**(**uint8)(__ccgo_up(s + 1))) == int32(')') || ere != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32(')') && depth != 0 { + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fn = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(1), -int32(1), -int32(1)) + if !((*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fn != 0) { + return int32(REG_ESPACE) + } + } else { + err = _parse_atom(tls, ctx, s) + if err != REG_OK { + return err + } + s = (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fs + } + goto parse_iter + parse_iter: + ; + for { + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) != int32('\\') && Int32FromUint8(**(**uint8)(__ccgo_up(s))) != int32('*') { + if !(ere != 0) { + break + } + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) != int32('+') && Int32FromUint8(**(**uint8)(__ccgo_up(s))) != int32('?') && Int32FromUint8(**(**uint8)(__ccgo_up(s))) != int32('{') { + break + } + } + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('\\') && ere != 0 { + break + } + /* extension: treat \+, \? as repetitions in BRE */ + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('\\') && Int32FromUint8(**(**uint8)(__ccgo_up(s + 1))) != int32('+') && Int32FromUint8(**(**uint8)(__ccgo_up(s + 1))) != int32('?') && Int32FromUint8(**(**uint8)(__ccgo_up(s + 1))) != int32('{') { + break + } + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('\\') { + s = s + 1 + } + /* handle ^* at the start of a BRE. */ + if !(ere != 0) && s == (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fstart+uintptr(1) && Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(-Int32FromInt32(1))))) == int32('^') { + break + } + /* extension: multiple consecutive *+?{,} is unspecified, + but (a+)+ has to be supported so accepting a++ makes + sense, note however that the RE_DUP_MAX limit can be + circumvented: (a{255}){255} uses a lot of memory.. */ + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('{') { + s = _parse_dup(tls, s+uintptr(1), ere, bp, bp+4) + if !(s != 0) { + return int32(REG_BADBR) + } + } else { + **(**int32)(__ccgo_up(bp)) = 0 + **(**int32)(__ccgo_up(bp + 4)) = -int32(1) + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('+') { + **(**int32)(__ccgo_up(bp)) = int32(1) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('?') { + **(**int32)(__ccgo_up(bp + 4)) = int32(1) + } + s = s + 1 + } + if **(**int32)(__ccgo_up(bp + 4)) == 0 { + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fn = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(1), -int32(1), -int32(1)) + } else { + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fn = _tre_ast_new_iter(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fn, **(**int32)(__ccgo_up(bp)), **(**int32)(__ccgo_up(bp + 4)), 0) + } + if !((*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fn != 0) { + return int32(REG_ESPACE) + } + goto _9 + _9: + } + nbranch = _tre_ast_new_catenation(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, nbranch, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fn) + if ere != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('|') || ere != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32(')') && depth != 0 || !(ere != 0) && Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('\\') && Int32FromUint8(**(**uint8)(__ccgo_up(s + 1))) == int32(')') || !(ere != 0) && Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('\\') && Int32FromUint8(**(**uint8)(__ccgo_up(s + 1))) == int32('|') || !(**(**uint8)(__ccgo_up(s)) != 0) { + /* extension: empty branch is unspecified (), (|a), (a|) + here they are not rejected but match on empty string */ + c = Int32FromUint8(**(**uint8)(__ccgo_up(s))) + nunion = _tre_ast_new_union(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, nunion, nbranch) + nbranch = uintptr(0) + if c == int32('\\') && Int32FromUint8(**(**uint8)(__ccgo_up(s + 1))) == int32('|') { + s = s + uintptr(2) + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fstart = s + } else { + if c == int32('|') { + s = s + 1 + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fstart = s + } else { + if c == int32('\\') { + if !(depth != 0) { + return int32(REG_EPAREN) + } + s = s + uintptr(2) + } else { + if c == int32(')') { + s = s + 1 + } + } + depth = depth - 1 + err = _marksub(tls, ctx, nunion, _tre_stack_pop_int(tls, stack)) + if err != REG_OK { + return err + } + if !(c != 0) && depth < 0 { + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fsubmatch_id = subid + return REG_OK + } + if !(c != 0) || depth < 0 { + return int32(REG_EPAREN) + } + nbranch = _tre_stack_pop_voidptr(tls, stack) + nunion = _tre_stack_pop_voidptr(tls, stack) + goto parse_iter + } + } + } + goto _3 + _3: + } + return r +} + +/*********************************************************************** + from tre-compile.c +***********************************************************************/ + +/* + TODO: + - Fix tre_ast_to_tnfa() to recurse using a stack instead of recursive + function calls. +*/ + +/* + Algorithms to setup tags so that submatch addressing can be done. +*/ + +// C documentation +// +// /* Inserts a catenation node to the root of the tree given in `node'. +// As the left child a new tag with number `tag_id' to `node' is added, +// and the right child is the old root. */ +func _tre_add_tag_left(tls *TLS, mem Ttre_mem_t, node uintptr, tag_id int32) (r Treg_errcode_t) { + var c uintptr + _ = c + c = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint64(16)) + if c == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + (*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft = _tre_ast_new_literal(tls, mem, -int32(3), tag_id, -int32(1)) + if (*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + (*Ttre_catenation_t)(unsafe.Pointer(c)).Fright = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint64(48)) + if (*Ttre_catenation_t)(unsafe.Pointer(c)).Fright == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fright)).Fobj = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fright)).Ftype1 = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fright)).Fnullable = -int32(1) + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fright)).Fsubmatch_id = -int32(1) + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fright)).Ffirstpos = UintptrFromInt32(0) + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fright)).Flastpos = UintptrFromInt32(0) + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fright)).Fnum_tags = 0 + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fright)).Fnum_submatches = 0 + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj = c + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 = int32(_CATENATION) + return REG_OK +} + +// C documentation +// +// /* Inserts a catenation node to the root of the tree given in `node'. +// As the right child a new tag with number `tag_id' to `node' is added, +// and the left child is the old root. */ +func _tre_add_tag_right(tls *TLS, mem Ttre_mem_t, node uintptr, tag_id int32) (r Treg_errcode_t) { + var c uintptr + _ = c + c = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint64(16)) + if c == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + (*Ttre_catenation_t)(unsafe.Pointer(c)).Fright = _tre_ast_new_literal(tls, mem, -int32(3), tag_id, -int32(1)) + if (*Ttre_catenation_t)(unsafe.Pointer(c)).Fright == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + (*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint64(48)) + if (*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft)).Fobj = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft)).Ftype1 = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft)).Fnullable = -int32(1) + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft)).Fsubmatch_id = -int32(1) + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft)).Ffirstpos = UintptrFromInt32(0) + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft)).Flastpos = UintptrFromInt32(0) + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft)).Fnum_tags = 0 + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft)).Fnum_submatches = 0 + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj = c + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 = int32(_CATENATION) + return REG_OK +} + +type Ttre_addtags_symbol_t = int32 + +const _ADDTAGS_RECURSE = 0 +const _ADDTAGS_AFTER_ITERATION = 1 +const _ADDTAGS_AFTER_UNION_LEFT = 2 +const _ADDTAGS_AFTER_UNION_RIGHT = 3 +const _ADDTAGS_AFTER_CAT_LEFT = 4 +const _ADDTAGS_AFTER_CAT_RIGHT = 5 +const _ADDTAGS_SET_SUBMATCH_END = 6 + +type Ttre_tag_states_t = struct { + Ftag int32 + Fnext_tag int32 +} + +// C documentation +// +// /* Go through `regset' and set submatch data for submatches that are +// using this tag. */ +func _tre_purge_regset(tls *TLS, regset uintptr, tnfa uintptr, tag int32) { + var i, id, start int32 + _, _, _ = i, id, start + i = 0 + for { + if !(**(**int32)(__ccgo_up(regset + uintptr(i)*4)) >= 0) { + break + } + id = **(**int32)(__ccgo_up(regset + uintptr(i)*4)) / int32(2) + start = BoolInt32(!(**(**int32)(__ccgo_up(regset + uintptr(i)*4))%Int32FromInt32(2) != 0)) + if start != 0 { + (**(**Ttre_submatch_data_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fsubmatch_data + uintptr(id)*16))).Fso_tag = tag + } else { + (**(**Ttre_submatch_data_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fsubmatch_data + uintptr(id)*16))).Feo_tag = tag + } + goto _1 + _1: + ; + i = i + 1 + } + **(**int32)(__ccgo_up(regset)) = -int32(1) +} + +// C documentation +// +// /* Adds tags to appropriate locations in the parse tree in `tree', so that +// subexpressions marked for submatch addressing can be traced. */ +func _tre_add_tags(tls *TLS, mem Ttre_mem_t, stack uintptr, tree uintptr, tnfa uintptr) (r Treg_errcode_t) { + var added_tags, bottom, enter_tag, first_pass, i1, i2, i3, i4, i5, i6, i7, id, id1, left_tag, minimal, minimal_tag, new_tag, next_tag, num_minimals, num_tags, reserved_tag, right_tag, tag, tag_left, tag_right, v22 int32 + var cat, iter, left, left1, left2, lit, node, orig_regset, p, parents, regset, right, right1, right2, saved_states, uni uintptr + var direction Ttre_tag_direction_t + var i uint32 + var status Treg_errcode_t + var symbol Ttre_addtags_symbol_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = added_tags, bottom, cat, direction, enter_tag, first_pass, i, i1, i2, i3, i4, i5, i6, i7, id, id1, iter, left, left1, left2, left_tag, lit, minimal, minimal_tag, new_tag, next_tag, node, num_minimals, num_tags, orig_regset, p, parents, regset, reserved_tag, right, right1, right2, right_tag, saved_states, status, symbol, tag, tag_left, tag_right, uni, v22 + status = REG_OK + node = tree /* Tree node we are currently looking at. */ + bottom = _tre_stack_num_objects(tls, stack) + /* True for first pass (counting number of needed tags) */ + first_pass = BoolInt32(mem == UintptrFromInt32(0) || tnfa == UintptrFromInt32(0)) + num_tags = 0 /* Total number of tags. */ + num_minimals = 0 /* Number of special minimal tags. */ + tag = 0 /* The tag that is to be added next. */ + next_tag = int32(1) /* Stack of submatches the current submatch is + contained in. */ + minimal_tag = -int32(1) + direction = int32(_TRE_TAG_MINIMIZE) + if !(first_pass != 0) { + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fend_tag = 0 + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags)) = -int32(1) + } + regset = Xmalloc(tls, uint64(4)*uint64(((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_submatches+Uint32FromInt32(1))*Uint32FromInt32(2))) + if regset == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + **(**int32)(__ccgo_up(regset)) = -int32(1) + orig_regset = regset + parents = Xmalloc(tls, uint64(4)*uint64((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_submatches+Uint32FromInt32(1))) + if parents == UintptrFromInt32(0) { + Xfree(tls, regset) + return int32(REG_ESPACE) + } + **(**int32)(__ccgo_up(parents)) = -int32(1) + saved_states = Xmalloc(tls, uint64(8)*uint64((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_submatches+Uint32FromInt32(1))) + if saved_states == UintptrFromInt32(0) { + Xfree(tls, regset) + Xfree(tls, parents) + return int32(REG_ESPACE) + } else { + i = uint32(0) + for { + if !(i <= (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_submatches) { + break + } + (**(**Ttre_tag_states_t)(__ccgo_up(saved_states + uintptr(i)*8))).Ftag = -int32(1) + goto _1 + _1: + ; + i = i + 1 + } + } + status = _tre_stack_push_voidptr(tls, stack, node) + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_RECURSE)) + for _tre_stack_num_objects(tls, stack) > bottom { + if status != REG_OK { + break + } + symbol = _tre_stack_pop_int(tls, stack) + switch symbol { + case int32(_ADDTAGS_SET_SUBMATCH_END): + goto _2 + case int32(_ADDTAGS_RECURSE): + goto _3 + case int32(_ADDTAGS_AFTER_ITERATION): + goto _4 + case int32(_ADDTAGS_AFTER_CAT_LEFT): + goto _5 + case int32(_ADDTAGS_AFTER_CAT_RIGHT): + goto _6 + case int32(_ADDTAGS_AFTER_UNION_LEFT): + goto _7 + case int32(_ADDTAGS_AFTER_UNION_RIGHT): + goto _8 + default: + goto _9 + } + goto _10 + _2: + ; + id = _tre_stack_pop_int(tls, stack) + /* Add end of this submatch to regset. */ + i1 = 0 + for { + if !(**(**int32)(__ccgo_up(regset + uintptr(i1)*4)) >= 0) { + break + } + goto _11 + _11: + ; + i1 = i1 + 1 + } + **(**int32)(__ccgo_up(regset + uintptr(i1)*4)) = id*int32(2) + int32(1) + **(**int32)(__ccgo_up(regset + uintptr(i1+int32(1))*4)) = -int32(1) + /* Pop this submatch from the parents stack. */ + i1 = 0 + for { + if !(**(**int32)(__ccgo_up(parents + uintptr(i1)*4)) >= 0) { + break + } + goto _12 + _12: + ; + i1 = i1 + 1 + } + **(**int32)(__ccgo_up(parents + uintptr(i1-int32(1))*4)) = -int32(1) + goto _10 + _3: + ; + node = _tre_stack_pop_voidptr(tls, stack) + if (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fsubmatch_id >= 0 { + id1 = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fsubmatch_id + /* Add start of this submatch to regset. */ + i2 = 0 + for { + if !(**(**int32)(__ccgo_up(regset + uintptr(i2)*4)) >= 0) { + break + } + goto _13 + _13: + ; + i2 = i2 + 1 + } + **(**int32)(__ccgo_up(regset + uintptr(i2)*4)) = id1 * int32(2) + **(**int32)(__ccgo_up(regset + uintptr(i2+int32(1))*4)) = -int32(1) + if !(first_pass != 0) { + i2 = 0 + for { + if !(**(**int32)(__ccgo_up(parents + uintptr(i2)*4)) >= 0) { + break + } + goto _14 + _14: + ; + i2 = i2 + 1 + } + (**(**Ttre_submatch_data_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fsubmatch_data + uintptr(id1)*16))).Fparents = UintptrFromInt32(0) + if i2 > 0 { + p = Xmalloc(tls, uint64(4)*Uint64FromInt32(i2+Int32FromInt32(1))) + if p == UintptrFromInt32(0) { + status = int32(REG_ESPACE) + goto _10 + } + (**(**Ttre_submatch_data_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fsubmatch_data + uintptr(id1)*16))).Fparents = p + i2 = 0 + for { + if !(**(**int32)(__ccgo_up(parents + uintptr(i2)*4)) >= 0) { + break + } + **(**int32)(__ccgo_up(p + uintptr(i2)*4)) = **(**int32)(__ccgo_up(parents + uintptr(i2)*4)) + goto _15 + _15: + ; + i2 = i2 + 1 + } + **(**int32)(__ccgo_up(p + uintptr(i2)*4)) = -int32(1) + } + } + /* Add end of this submatch to regset after processing this + node. */ + status = _tre_stack_push_int(tls, stack, (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fsubmatch_id) + if status != REG_OK { + goto _10 + } + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_SET_SUBMATCH_END)) + if status != REG_OK { + goto _10 + } + } + switch (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 { + case int32(_LITERAL): + lit = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + if !((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min < Int64FromInt32(0)) || (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min == int64(-int32(4)) { + if **(**int32)(__ccgo_up(regset)) >= 0 { + /* Regset is not empty, so add a tag before the + literal or backref. */ + if !(first_pass != 0) { + status = _tre_add_tag_left(tls, mem, node, tag) + **(**Ttre_tag_direction_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions + uintptr(tag)*4)) = direction + if minimal_tag >= 0 { + i3 = 0 + for { + if !(**(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i3)*4)) >= 0) { + break + } + goto _16 + _16: + ; + i3 = i3 + 1 + } + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i3)*4)) = tag + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i3+int32(1))*4)) = minimal_tag + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i3+int32(2))*4)) = -int32(1) + minimal_tag = -int32(1) + num_minimals = num_minimals + 1 + } + _tre_purge_regset(tls, regset, tnfa, tag) + } else { + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_tags = int32(1) + } + **(**int32)(__ccgo_up(regset)) = -int32(1) + tag = next_tag + num_tags = num_tags + 1 + next_tag = next_tag + 1 + } + } else { + } + case int32(_CATENATION): + cat = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + left = (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft + right = (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright + reserved_tag = -int32(1) + /* After processing right child. */ + status = _tre_stack_push_voidptr(tls, stack, node) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_AFTER_CAT_RIGHT)) + if status != REG_OK { + break + } + /* Process right child. */ + status = _tre_stack_push_voidptr(tls, stack, right) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_RECURSE)) + if status != REG_OK { + break + } + /* After processing left child. */ + status = _tre_stack_push_int(tls, stack, next_tag+(*Ttre_ast_node_t)(unsafe.Pointer(left)).Fnum_tags) + if status != REG_OK { + break + } + if (*Ttre_ast_node_t)(unsafe.Pointer(left)).Fnum_tags > 0 && (*Ttre_ast_node_t)(unsafe.Pointer(right)).Fnum_tags > 0 { + /* Reserve the next tag to the right child. */ + reserved_tag = next_tag + next_tag = next_tag + 1 + } + status = _tre_stack_push_int(tls, stack, reserved_tag) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_AFTER_CAT_LEFT)) + if status != REG_OK { + break + } + /* Process left child. */ + status = _tre_stack_push_voidptr(tls, stack, left) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_RECURSE)) + if status != REG_OK { + break + } + case int32(_ITERATION): + iter = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + if first_pass != 0 { + status = _tre_stack_push_int(tls, stack, BoolInt32(**(**int32)(__ccgo_up(regset)) >= 0 || int32(uint32(*(*uint8)(unsafe.Pointer(iter + 16))&0x1>>0)) != 0)) + if status != REG_OK { + break + } + } else { + status = _tre_stack_push_int(tls, stack, tag) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(uint32(*(*uint8)(unsafe.Pointer(iter + 16))&0x1>>0))) + if status != REG_OK { + break + } + } + status = _tre_stack_push_voidptr(tls, stack, node) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_AFTER_ITERATION)) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_RECURSE)) + if status != REG_OK { + break + } + /* Regset is not empty, so add a tag here. */ + if **(**int32)(__ccgo_up(regset)) >= 0 || int32(uint32(*(*uint8)(unsafe.Pointer(iter + 16))&0x1>>0)) != 0 { + if !(first_pass != 0) { + status = _tre_add_tag_left(tls, mem, node, tag) + if int32(uint32(*(*uint8)(unsafe.Pointer(iter + 16))&0x1>>0)) != 0 { + **(**Ttre_tag_direction_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions + uintptr(tag)*4)) = int32(_TRE_TAG_MAXIMIZE) + } else { + **(**Ttre_tag_direction_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions + uintptr(tag)*4)) = direction + } + if minimal_tag >= 0 { + i4 = 0 + for { + if !(**(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i4)*4)) >= 0) { + break + } + goto _17 + _17: + ; + i4 = i4 + 1 + } + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i4)*4)) = tag + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i4+int32(1))*4)) = minimal_tag + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i4+int32(2))*4)) = -int32(1) + minimal_tag = -int32(1) + num_minimals = num_minimals + 1 + } + _tre_purge_regset(tls, regset, tnfa, tag) + } + **(**int32)(__ccgo_up(regset)) = -int32(1) + tag = next_tag + num_tags = num_tags + 1 + next_tag = next_tag + 1 + } + direction = int32(_TRE_TAG_MINIMIZE) + case int32(_UNION): + uni = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + left1 = (*Ttre_union_t)(unsafe.Pointer(uni)).Fleft + right1 = (*Ttre_union_t)(unsafe.Pointer(uni)).Fright + if **(**int32)(__ccgo_up(regset)) >= 0 { + left_tag = next_tag + right_tag = next_tag + int32(1) + } else { + left_tag = tag + right_tag = next_tag + } + /* After processing right child. */ + status = _tre_stack_push_int(tls, stack, right_tag) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, left_tag) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, regset) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, BoolInt32(**(**int32)(__ccgo_up(regset)) >= 0)) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, node) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, right1) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, left1) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_AFTER_UNION_RIGHT)) + if status != REG_OK { + break + } + /* Process right child. */ + status = _tre_stack_push_voidptr(tls, stack, right1) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_RECURSE)) + if status != REG_OK { + break + } + /* After processing left child. */ + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_AFTER_UNION_LEFT)) + if status != REG_OK { + break + } + /* Process left child. */ + status = _tre_stack_push_voidptr(tls, stack, left1) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_RECURSE)) + if status != REG_OK { + break + } + /* Regset is not empty, so add a tag here. */ + if **(**int32)(__ccgo_up(regset)) >= 0 { + if !(first_pass != 0) { + status = _tre_add_tag_left(tls, mem, node, tag) + **(**Ttre_tag_direction_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions + uintptr(tag)*4)) = direction + if minimal_tag >= 0 { + i5 = 0 + for { + if !(**(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i5)*4)) >= 0) { + break + } + goto _18 + _18: + ; + i5 = i5 + 1 + } + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i5)*4)) = tag + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i5+int32(1))*4)) = minimal_tag + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i5+int32(2))*4)) = -int32(1) + minimal_tag = -int32(1) + num_minimals = num_minimals + 1 + } + _tre_purge_regset(tls, regset, tnfa, tag) + } + **(**int32)(__ccgo_up(regset)) = -int32(1) + tag = next_tag + num_tags = num_tags + 1 + next_tag = next_tag + 1 + } + if (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_submatches > 0 { + /* The next two tags are reserved for markers. */ + next_tag = next_tag + 1 + tag = next_tag + next_tag = next_tag + 1 + } + break + } + if (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fsubmatch_id >= 0 { + /* Push this submatch on the parents stack. */ + i6 = 0 + for { + if !(**(**int32)(__ccgo_up(parents + uintptr(i6)*4)) >= 0) { + break + } + goto _19 + _19: + ; + i6 = i6 + 1 + } + **(**int32)(__ccgo_up(parents + uintptr(i6)*4)) = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fsubmatch_id + **(**int32)(__ccgo_up(parents + uintptr(i6+int32(1))*4)) = -int32(1) + } + goto _10 /* end case: ADDTAGS_RECURSE */ + _4: + ; + minimal = 0 + node = _tre_stack_pop_voidptr(tls, stack) + if first_pass != 0 { + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_tags = (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_iteration_t)(unsafe.Pointer((*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj)).Farg)).Fnum_tags + _tre_stack_pop_int(tls, stack) + minimal_tag = -int32(1) + } else { + minimal = _tre_stack_pop_int(tls, stack) + enter_tag = _tre_stack_pop_int(tls, stack) + if minimal != 0 { + minimal_tag = enter_tag + } + } + if !(first_pass != 0) { + if minimal != 0 { + direction = int32(_TRE_TAG_MINIMIZE) + } else { + direction = int32(_TRE_TAG_MAXIMIZE) + } + } + goto _10 + _5: + ; + new_tag = _tre_stack_pop_int(tls, stack) + next_tag = _tre_stack_pop_int(tls, stack) + if new_tag >= 0 { + tag = new_tag + } + goto _10 + _6: + ; + node = _tre_stack_pop_voidptr(tls, stack) + if first_pass != 0 { + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_tags = (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer((*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj)).Fleft)).Fnum_tags + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer((*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj)).Fright)).Fnum_tags + } + goto _10 + _7: + ; + /* Lift the bottom of the `regset' array so that when processing + the right operand the items currently in the array are + invisible. The original bottom was saved at ADDTAGS_UNION and + will be restored at ADDTAGS_AFTER_UNION_RIGHT below. */ + _21: + ; + if !(**(**int32)(__ccgo_up(regset)) >= 0) { + goto _20 + } + regset += 4 + goto _21 + _20: + ; + goto _10 + _8: + ; + left2 = _tre_stack_pop_voidptr(tls, stack) + right2 = _tre_stack_pop_voidptr(tls, stack) + node = _tre_stack_pop_voidptr(tls, stack) + added_tags = _tre_stack_pop_int(tls, stack) + if first_pass != 0 { + if (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_submatches > 0 { + v22 = int32(2) + } else { + v22 = 0 + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_tags = (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_union_t)(unsafe.Pointer((*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj)).Fleft)).Fnum_tags + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_union_t)(unsafe.Pointer((*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj)).Fright)).Fnum_tags + added_tags + v22 + } + regset = _tre_stack_pop_voidptr(tls, stack) + tag_left = _tre_stack_pop_int(tls, stack) + tag_right = _tre_stack_pop_int(tls, stack) + /* Add tags after both children, the left child gets a smaller + tag than the right child. This guarantees that we prefer + the left child over the right child. */ + /* XXX - This is not always necessary (if the children have + tags which must be seen for every match of that child). */ + /* XXX - Check if this is the only place where tre_add_tag_right + is used. If so, use tre_add_tag_left (putting the tag before + the child as opposed after the child) and throw away + tre_add_tag_right. */ + if (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_submatches > 0 { + if !(first_pass != 0) { + status = _tre_add_tag_right(tls, mem, left2, tag_left) + **(**Ttre_tag_direction_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions + uintptr(tag_left)*4)) = int32(_TRE_TAG_MAXIMIZE) + if status == REG_OK { + status = _tre_add_tag_right(tls, mem, right2, tag_right) + } + **(**Ttre_tag_direction_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions + uintptr(tag_right)*4)) = int32(_TRE_TAG_MAXIMIZE) + } + num_tags = num_tags + int32(2) + } + direction = int32(_TRE_TAG_MAXIMIZE) + goto _10 + _9: + ; + goto _10 + _10: + /* end switch(symbol) */ + } /* end while(tre_stack_num_objects(stack) > bottom) */ + if !(first_pass != 0) { + _tre_purge_regset(tls, regset, tnfa, tag) + } + if !(first_pass != 0) && minimal_tag >= 0 { + i7 = 0 + for { + if !(**(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i7)*4)) >= 0) { + break + } + goto _23 + _23: + ; + i7 = i7 + 1 + } + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i7)*4)) = tag + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i7+int32(1))*4)) = minimal_tag + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i7+int32(2))*4)) = -int32(1) + minimal_tag = -int32(1) + num_minimals = num_minimals + 1 + } + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fend_tag = num_tags + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags = num_tags + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_minimals = num_minimals + Xfree(tls, orig_regset) + Xfree(tls, parents) + Xfree(tls, saved_states) + return status +} + +/* + AST to TNFA compilation routines. +*/ + +type Ttre_copyast_symbol_t = int32 + +const _COPY_RECURSE = 0 +const _COPY_SET_RESULT_PTR = 1 + +/* Flags for tre_copy_ast(). */ + +func _tre_copy_ast(tls *TLS, mem Ttre_mem_t, stack uintptr, ast uintptr, flags int32, pos_add uintptr, tag_directions uintptr, copy1 uintptr, max_pos uintptr) (r Treg_errcode_t) { + var bottom, first_tag, max, min, num_copied, pos, v1 int32 + var cat, iter, lit, node, p, result, tmp, tmp1, uni uintptr + var status Treg_errcode_t + var symbol Ttre_copyast_symbol_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = bottom, cat, first_tag, iter, lit, max, min, node, num_copied, p, pos, result, status, symbol, tmp, tmp1, uni, v1 + status = REG_OK + bottom = _tre_stack_num_objects(tls, stack) + num_copied = 0 + first_tag = int32(1) + result = copy1 + status = _tre_stack_push_voidptr(tls, stack, ast) + status = _tre_stack_push_int(tls, stack, int32(_COPY_RECURSE)) + for status == REG_OK && _tre_stack_num_objects(tls, stack) > bottom { + if status != REG_OK { + break + } + symbol = _tre_stack_pop_int(tls, stack) + switch symbol { + case int32(_COPY_SET_RESULT_PTR): + result = _tre_stack_pop_voidptr(tls, stack) + case int32(_COPY_RECURSE): + node = _tre_stack_pop_voidptr(tls, stack) + switch (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 { + case int32(_LITERAL): + lit = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + pos = (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition + min = int32((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min) + max = int32((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max) + if !((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min < Int64FromInt32(0)) || (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min == int64(-int32(4)) { + /* XXX - e.g. [ab] has only one position but two + nodes, so we are creating holes in the state space + here. Not fatal, just wastes memory. */ + pos = pos + **(**int32)(__ccgo_up(pos_add)) + num_copied = num_copied + 1 + } else { + if (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min == int64(-int32(3)) && flags&int32(COPY_REMOVE_TAGS) != 0 { + /* Change this tag to empty. */ + min = -int32(1) + v1 = -Int32FromInt32(1) + pos = v1 + max = v1 + } else { + if (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min == int64(-int32(3)) && flags&int32(COPY_MAXIMIZE_FIRST_TAG) != 0 && first_tag != 0 { + /* Maximize the first tag. */ + **(**Ttre_tag_direction_t)(__ccgo_up(tag_directions + uintptr(max)*4)) = int32(_TRE_TAG_MAXIMIZE) + first_tag = 0 + } + } + } + **(**uintptr)(__ccgo_up(result)) = _tre_ast_new_literal(tls, mem, min, max, pos) + if **(**uintptr)(__ccgo_up(result)) == UintptrFromInt32(0) { + status = int32(REG_ESPACE) + } else { + p = (*Ttre_ast_node_t)(unsafe.Pointer(**(**uintptr)(__ccgo_up(result)))).Fobj + (*Ttre_literal_t)(unsafe.Pointer(p)).Fclass = (*Ttre_literal_t)(unsafe.Pointer(lit)).Fclass + (*Ttre_literal_t)(unsafe.Pointer(p)).Fneg_classes = (*Ttre_literal_t)(unsafe.Pointer(lit)).Fneg_classes + } + if pos > **(**int32)(__ccgo_up(max_pos)) { + **(**int32)(__ccgo_up(max_pos)) = pos + } + case int32(_UNION): + uni = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + **(**uintptr)(__ccgo_up(result)) = _tre_ast_new_union(tls, mem, (*Ttre_union_t)(unsafe.Pointer(uni)).Fleft, (*Ttre_union_t)(unsafe.Pointer(uni)).Fright) + if **(**uintptr)(__ccgo_up(result)) == UintptrFromInt32(0) { + status = int32(REG_ESPACE) + break + } + tmp = (*Ttre_ast_node_t)(unsafe.Pointer(**(**uintptr)(__ccgo_up(result)))).Fobj + result = tmp + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_union_t)(unsafe.Pointer(uni)).Fright) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_COPY_RECURSE)) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, tmp+8) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_COPY_SET_RESULT_PTR)) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_union_t)(unsafe.Pointer(uni)).Fleft) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_COPY_RECURSE)) + if status != REG_OK { + break + } + case int32(_CATENATION): + cat = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + **(**uintptr)(__ccgo_up(result)) = _tre_ast_new_catenation(tls, mem, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright) + if **(**uintptr)(__ccgo_up(result)) == UintptrFromInt32(0) { + status = int32(REG_ESPACE) + break + } + tmp1 = (*Ttre_ast_node_t)(unsafe.Pointer(**(**uintptr)(__ccgo_up(result)))).Fobj + (*Ttre_catenation_t)(unsafe.Pointer(tmp1)).Fleft = UintptrFromInt32(0) + (*Ttre_catenation_t)(unsafe.Pointer(tmp1)).Fright = UintptrFromInt32(0) + result = tmp1 + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_COPY_RECURSE)) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, tmp1+8) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_COPY_SET_RESULT_PTR)) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_COPY_RECURSE)) + if status != REG_OK { + break + } + case int32(_ITERATION): + iter = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_COPY_RECURSE)) + if status != REG_OK { + break + } + **(**uintptr)(__ccgo_up(result)) = _tre_ast_new_iter(tls, mem, (*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg, (*Ttre_iteration_t)(unsafe.Pointer(iter)).Fmin, (*Ttre_iteration_t)(unsafe.Pointer(iter)).Fmax, int32(uint32(*(*uint8)(unsafe.Pointer(iter + 16))&0x1>>0))) + if **(**uintptr)(__ccgo_up(result)) == UintptrFromInt32(0) { + status = int32(REG_ESPACE) + break + } + iter = (*Ttre_ast_node_t)(unsafe.Pointer(**(**uintptr)(__ccgo_up(result)))).Fobj + result = iter + default: + break + } + break + } + } + **(**int32)(__ccgo_up(pos_add)) += num_copied + return status +} + +type Ttre_expand_ast_symbol_t = int32 + +const _EXPAND_RECURSE = 0 +const _EXPAND_AFTER_ITER = 1 + +// C documentation +// +// /* Expands each iteration node that has a finite nonzero minimum or maximum +// iteration count to a catenated sequence of copies of the node. */ +func _tre_expand_ast(tls *TLS, mem Ttre_mem_t, stack uintptr, ast uintptr, position uintptr, tag_directions uintptr) (r Treg_errcode_t) { + bp := tls.Alloc(32) + defer tls.Free(32) + var _status, _status1, status Treg_errcode_t + var bottom, flags, iter_depth, j, pos_add_last, pos_add_save, pos_add_total, v2 int32 + var cat, iter, iter1, lit, node, seq1, tmp, uni uintptr + var symbol Ttre_expand_ast_symbol_t + var _ /* copy at bp+16 */ uintptr + var _ /* copy at bp+24 */ uintptr + var _ /* max_pos at bp+4 */ int32 + var _ /* pos_add at bp+0 */ int32 + var _ /* seq2 at bp+8 */ uintptr + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = _status, _status1, bottom, cat, flags, iter, iter1, iter_depth, j, lit, node, pos_add_last, pos_add_save, pos_add_total, seq1, status, symbol, tmp, uni, v2 + status = REG_OK + bottom = _tre_stack_num_objects(tls, stack) + **(**int32)(__ccgo_up(bp)) = 0 + pos_add_total = 0 + **(**int32)(__ccgo_up(bp + 4)) = 0 + iter_depth = 0 + _status = _tre_stack_push_voidptr(tls, stack, ast) + if _status != REG_OK { + return _status + } + _status1 = _tre_stack_push_int(tls, stack, int32(_EXPAND_RECURSE)) + if _status1 != REG_OK { + return _status1 + } + for status == REG_OK && _tre_stack_num_objects(tls, stack) > bottom { + if status != REG_OK { + break + } + symbol = _tre_stack_pop_int(tls, stack) + node = _tre_stack_pop_voidptr(tls, stack) + switch symbol { + case int32(_EXPAND_RECURSE): + switch (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 { + case int32(_LITERAL): + lit = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + if !((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min < Int64FromInt32(0)) || (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min == int64(-int32(4)) { + **(**int32)(__ccgo_up(lit + 16)) += **(**int32)(__ccgo_up(bp)) + if (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition > **(**int32)(__ccgo_up(bp + 4)) { + **(**int32)(__ccgo_up(bp + 4)) = (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition + } + } + case int32(_UNION): + uni = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_union_t)(unsafe.Pointer(uni)).Fright) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_EXPAND_RECURSE)) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_union_t)(unsafe.Pointer(uni)).Fleft) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_EXPAND_RECURSE)) + if status != REG_OK { + break + } + case int32(_CATENATION): + cat = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_EXPAND_RECURSE)) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_EXPAND_RECURSE)) + if status != REG_OK { + break + } + case int32(_ITERATION): + iter = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + status = _tre_stack_push_int(tls, stack, **(**int32)(__ccgo_up(bp))) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, node) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_EXPAND_AFTER_ITER)) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_EXPAND_RECURSE)) + if status != REG_OK { + break + } + /* If we are going to expand this node at EXPAND_AFTER_ITER + then don't increase the `pos' fields of the nodes now, it + will get done when expanding. */ + if (*Ttre_iteration_t)(unsafe.Pointer(iter)).Fmin > int32(1) || (*Ttre_iteration_t)(unsafe.Pointer(iter)).Fmax > int32(1) { + **(**int32)(__ccgo_up(bp)) = 0 + } + iter_depth = iter_depth + 1 + default: + break + } + case int32(_EXPAND_AFTER_ITER): + iter1 = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + **(**int32)(__ccgo_up(bp)) = _tre_stack_pop_int(tls, stack) + pos_add_last = **(**int32)(__ccgo_up(bp)) + if (*Ttre_iteration_t)(unsafe.Pointer(iter1)).Fmin > int32(1) || (*Ttre_iteration_t)(unsafe.Pointer(iter1)).Fmax > int32(1) { + seq1 = UintptrFromInt32(0) + **(**uintptr)(__ccgo_up(bp + 8)) = UintptrFromInt32(0) + pos_add_save = **(**int32)(__ccgo_up(bp)) + /* Create a catenated sequence of copies of the node. */ + j = 0 + for { + if !(j < (*Ttre_iteration_t)(unsafe.Pointer(iter1)).Fmin) { + break + } + if j+int32(1) < (*Ttre_iteration_t)(unsafe.Pointer(iter1)).Fmin { + v2 = int32(COPY_REMOVE_TAGS) + } else { + v2 = int32(COPY_MAXIMIZE_FIRST_TAG) + } + /* Remove tags from all but the last copy. */ + flags = v2 + pos_add_save = **(**int32)(__ccgo_up(bp)) + status = _tre_copy_ast(tls, mem, stack, (*Ttre_iteration_t)(unsafe.Pointer(iter1)).Farg, flags, bp, tag_directions, bp+16, bp+4) + if status != REG_OK { + return status + } + if seq1 != UintptrFromInt32(0) { + seq1 = _tre_ast_new_catenation(tls, mem, seq1, **(**uintptr)(__ccgo_up(bp + 16))) + } else { + seq1 = **(**uintptr)(__ccgo_up(bp + 16)) + } + if seq1 == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + goto _1 + _1: + ; + j = j + 1 + } + if (*Ttre_iteration_t)(unsafe.Pointer(iter1)).Fmax == -int32(1) { + /* No upper limit. */ + pos_add_save = **(**int32)(__ccgo_up(bp)) + status = _tre_copy_ast(tls, mem, stack, (*Ttre_iteration_t)(unsafe.Pointer(iter1)).Farg, 0, bp, UintptrFromInt32(0), bp+8, bp+4) + if status != REG_OK { + return status + } + **(**uintptr)(__ccgo_up(bp + 8)) = _tre_ast_new_iter(tls, mem, **(**uintptr)(__ccgo_up(bp + 8)), 0, -int32(1), 0) + if **(**uintptr)(__ccgo_up(bp + 8)) == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + } else { + j = (*Ttre_iteration_t)(unsafe.Pointer(iter1)).Fmin + for { + if !(j < (*Ttre_iteration_t)(unsafe.Pointer(iter1)).Fmax) { + break + } + pos_add_save = **(**int32)(__ccgo_up(bp)) + status = _tre_copy_ast(tls, mem, stack, (*Ttre_iteration_t)(unsafe.Pointer(iter1)).Farg, 0, bp, UintptrFromInt32(0), bp+24, bp+4) + if status != REG_OK { + return status + } + if **(**uintptr)(__ccgo_up(bp + 8)) != UintptrFromInt32(0) { + **(**uintptr)(__ccgo_up(bp + 8)) = _tre_ast_new_catenation(tls, mem, **(**uintptr)(__ccgo_up(bp + 24)), **(**uintptr)(__ccgo_up(bp + 8))) + } else { + **(**uintptr)(__ccgo_up(bp + 8)) = **(**uintptr)(__ccgo_up(bp + 24)) + } + if **(**uintptr)(__ccgo_up(bp + 8)) == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + tmp = _tre_ast_new_literal(tls, mem, -int32(1), -int32(1), -int32(1)) + if tmp == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + **(**uintptr)(__ccgo_up(bp + 8)) = _tre_ast_new_union(tls, mem, tmp, **(**uintptr)(__ccgo_up(bp + 8))) + if **(**uintptr)(__ccgo_up(bp + 8)) == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + goto _3 + _3: + ; + j = j + 1 + } + } + **(**int32)(__ccgo_up(bp)) = pos_add_save + if seq1 == UintptrFromInt32(0) { + seq1 = **(**uintptr)(__ccgo_up(bp + 8)) + } else { + if **(**uintptr)(__ccgo_up(bp + 8)) != UintptrFromInt32(0) { + seq1 = _tre_ast_new_catenation(tls, mem, seq1, **(**uintptr)(__ccgo_up(bp + 8))) + } + } + if seq1 == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj = (*Ttre_ast_node_t)(unsafe.Pointer(seq1)).Fobj + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 = (*Ttre_ast_node_t)(unsafe.Pointer(seq1)).Ftype1 + } + iter_depth = iter_depth - 1 + pos_add_total = pos_add_total + (**(**int32)(__ccgo_up(bp)) - pos_add_last) + if iter_depth == 0 { + **(**int32)(__ccgo_up(bp)) = pos_add_total + } + default: + break + } + } + **(**int32)(__ccgo_up(position)) += pos_add_total + /* `max_pos' should never be larger than `*position' if the above + code works, but just an extra safeguard let's make sure + `*position' is set large enough so enough memory will be + allocated for the transition table. */ + if **(**int32)(__ccgo_up(bp + 4)) > **(**int32)(__ccgo_up(position)) { + **(**int32)(__ccgo_up(position)) = **(**int32)(__ccgo_up(bp + 4)) + } + return status +} + +func _tre_set_empty(tls *TLS, mem Ttre_mem_t) (r uintptr) { + var new_set uintptr + _ = new_set + new_set = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), int32(1), uint64(56)) + if new_set == UintptrFromInt32(0) { + return UintptrFromInt32(0) + } + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set))).Fposition = -int32(1) + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set))).Fcode_min = -int32(1) + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set))).Fcode_max = -int32(1) + return new_set +} + +func _tre_set_one(tls *TLS, mem Ttre_mem_t, position int32, code_min int32, code_max int32, class Ttre_ctype_t, neg_classes uintptr, backref int32) (r uintptr) { + var new_set uintptr + _ = new_set + new_set = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), int32(1), Uint64FromInt64(56)*Uint64FromInt32(2)) + if new_set == UintptrFromInt32(0) { + return UintptrFromInt32(0) + } + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set))).Fposition = position + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set))).Fcode_min = code_min + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set))).Fcode_max = code_max + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set))).Fclass = class + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set))).Fneg_classes = neg_classes + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set))).Fbackref = backref + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + 1*56))).Fposition = -int32(1) + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + 1*56))).Fcode_min = -int32(1) + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + 1*56))).Fcode_max = -int32(1) + return new_set +} + +func _tre_set_union(tls *TLS, mem Ttre_mem_t, set1 uintptr, set2 uintptr, tags uintptr, assertions int32) (r uintptr) { + var i, j, num_tags, s1, s2 int32 + var new_set, new_tags uintptr + _, _, _, _, _, _, _ = i, j, new_set, new_tags, num_tags, s1, s2 + num_tags = 0 + for { + if !(tags != UintptrFromInt32(0) && **(**int32)(__ccgo_up(tags + uintptr(num_tags)*4)) >= 0) { + break + } + goto _1 + _1: + ; + num_tags = num_tags + 1 + } + s1 = 0 + for { + if !((**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*56))).Fposition >= 0) { + break + } + goto _2 + _2: + ; + s1 = s1 + 1 + } + s2 = 0 + for { + if !((**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*56))).Fposition >= 0) { + break + } + goto _3 + _3: + ; + s2 = s2 + 1 + } + new_set = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), int32(1), uint64(56)*Uint64FromInt32(s1+s2+Int32FromInt32(1))) + if !(new_set != 0) { + return UintptrFromInt32(0) + } + s1 = 0 + for { + if !((**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*56))).Fposition >= 0) { + break + } + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1)*56))).Fposition = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*56))).Fposition + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1)*56))).Fcode_min = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*56))).Fcode_min + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1)*56))).Fcode_max = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*56))).Fcode_max + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1)*56))).Fassertions = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*56))).Fassertions | assertions + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1)*56))).Fclass = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*56))).Fclass + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1)*56))).Fneg_classes = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*56))).Fneg_classes + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1)*56))).Fbackref = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*56))).Fbackref + if (**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*56))).Ftags == UintptrFromInt32(0) && tags == UintptrFromInt32(0) { + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1)*56))).Ftags = UintptrFromInt32(0) + } else { + i = 0 + for { + if !((**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*56))).Ftags != UintptrFromInt32(0) && **(**int32)(__ccgo_up((**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*56))).Ftags + uintptr(i)*4)) >= 0) { + break + } + goto _5 + _5: + ; + i = i + 1 + } + new_tags = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, Uint64FromInt64(4)*Uint64FromInt32(i+num_tags+Int32FromInt32(1))) + if new_tags == UintptrFromInt32(0) { + return UintptrFromInt32(0) + } + j = 0 + for { + if !(j < i) { + break + } + **(**int32)(__ccgo_up(new_tags + uintptr(j)*4)) = **(**int32)(__ccgo_up((**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*56))).Ftags + uintptr(j)*4)) + goto _6 + _6: + ; + j = j + 1 + } + i = 0 + for { + if !(i < num_tags) { + break + } + **(**int32)(__ccgo_up(new_tags + uintptr(j+i)*4)) = **(**int32)(__ccgo_up(tags + uintptr(i)*4)) + goto _7 + _7: + ; + i = i + 1 + } + **(**int32)(__ccgo_up(new_tags + uintptr(j+i)*4)) = -int32(1) + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1)*56))).Ftags = new_tags + } + goto _4 + _4: + ; + s1 = s1 + 1 + } + s2 = 0 + for { + if !((**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*56))).Fposition >= 0) { + break + } + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1+s2)*56))).Fposition = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*56))).Fposition + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1+s2)*56))).Fcode_min = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*56))).Fcode_min + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1+s2)*56))).Fcode_max = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*56))).Fcode_max + /* XXX - why not | assertions here as well? */ + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1+s2)*56))).Fassertions = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*56))).Fassertions + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1+s2)*56))).Fclass = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*56))).Fclass + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1+s2)*56))).Fneg_classes = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*56))).Fneg_classes + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1+s2)*56))).Fbackref = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*56))).Fbackref + if (**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*56))).Ftags == UintptrFromInt32(0) { + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1+s2)*56))).Ftags = UintptrFromInt32(0) + } else { + i = 0 + for { + if !(**(**int32)(__ccgo_up((**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*56))).Ftags + uintptr(i)*4)) >= 0) { + break + } + goto _9 + _9: + ; + i = i + 1 + } + new_tags = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint64(4)*Uint64FromInt32(i+Int32FromInt32(1))) + if new_tags == UintptrFromInt32(0) { + return UintptrFromInt32(0) + } + j = 0 + for { + if !(j < i) { + break + } + **(**int32)(__ccgo_up(new_tags + uintptr(j)*4)) = **(**int32)(__ccgo_up((**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*56))).Ftags + uintptr(j)*4)) + goto _10 + _10: + ; + j = j + 1 + } + **(**int32)(__ccgo_up(new_tags + uintptr(j)*4)) = -int32(1) + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1+s2)*56))).Ftags = new_tags + } + goto _8 + _8: + ; + s2 = s2 + 1 + } + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1+s2)*56))).Fposition = -int32(1) + return new_set +} + +// C documentation +// +// /* Finds the empty path through `node' which is the one that should be +// taken according to POSIX.2 rules, and adds the tags on that path to +// `tags'. `tags' may be NULL. If `num_tags_seen' is not NULL, it is +// set to the number of tags seen on the path. */ +func _tre_match_empty(tls *TLS, stack uintptr, node uintptr, tags uintptr, assertions uintptr, num_tags_seen uintptr) (r Treg_errcode_t) { + var bottom, i int32 + var cat, iter, lit, uni, v2 uintptr + var status Treg_errcode_t + _, _, _, _, _, _, _, _ = bottom, cat, i, iter, lit, status, uni, v2 + bottom = _tre_stack_num_objects(tls, stack) + status = REG_OK + if num_tags_seen != 0 { + **(**int32)(__ccgo_up(num_tags_seen)) = 0 + } + status = _tre_stack_push_voidptr(tls, stack, node) + /* Walk through the tree recursively. */ + for status == REG_OK && _tre_stack_num_objects(tls, stack) > bottom { + node = _tre_stack_pop_voidptr(tls, stack) + switch (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 { + case int32(_LITERAL): + lit = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + switch (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min { + case int64(-int32(3)): + if (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max >= 0 { + if tags != UintptrFromInt32(0) { + /* Add the tag to `tags'. */ + i = 0 + for { + if !(**(**int32)(__ccgo_up(tags + uintptr(i)*4)) >= 0) { + break + } + if int64(**(**int32)(__ccgo_up(tags + uintptr(i)*4))) == (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max { + break + } + goto _1 + _1: + ; + i = i + 1 + } + if **(**int32)(__ccgo_up(tags + uintptr(i)*4)) < 0 { + **(**int32)(__ccgo_up(tags + uintptr(i)*4)) = int32((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max) + **(**int32)(__ccgo_up(tags + uintptr(i+int32(1))*4)) = -int32(1) + } + } + if num_tags_seen != 0 { + **(**int32)(__ccgo_up(num_tags_seen)) = **(**int32)(__ccgo_up(num_tags_seen)) + 1 + } + } + case int64(-int32(2)): + if assertions != UintptrFromInt32(0) { + v2 = assertions + *(*int32)(unsafe.Pointer(v2)) = int32(int64(*(*int32)(unsafe.Pointer(v2))) | (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max) + } + case int64(-int32(1)): + default: + break + } + case int32(_UNION): + /* Subexpressions starting earlier take priority over ones + starting later, so we prefer the left subexpression over the + right subexpression. */ + uni = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + if (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_union_t)(unsafe.Pointer(uni)).Fleft)).Fnullable != 0 { + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_union_t)(unsafe.Pointer(uni)).Fleft) + if status != REG_OK { + break + } + } else { + if (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_union_t)(unsafe.Pointer(uni)).Fright)).Fnullable != 0 { + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_union_t)(unsafe.Pointer(uni)).Fright) + if status != REG_OK { + break + } + } else { + } + } + case int32(_CATENATION): + /* The path must go through both children. */ + cat = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright) + if status != REG_OK { + break + } + case int32(_ITERATION): + /* A match with an empty string is preferred over no match at + all, so we go through the argument if possible. */ + iter = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + if (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg)).Fnullable != 0 { + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg) + if status != REG_OK { + break + } + } + default: + break + } + } + return status +} + +type Ttre_nfl_stack_symbol_t = int32 + +const _NFL_RECURSE = 0 +const _NFL_POST_UNION = 1 +const _NFL_POST_CATENATION = 2 +const _NFL_POST_ITERATION = 3 + +// C documentation +// +// /* Computes and fills in the fields `nullable', `firstpos', and `lastpos' for +// the nodes of the AST `tree'. */ +func _tre_compute_nfl(tls *TLS, mem Ttre_mem_t, stack uintptr, tree uintptr) (r Treg_errcode_t) { + bp := tls.Alloc(16) + defer tls.Free(16) + var _status, _status1, _status10, _status11, _status12, _status13, _status14, _status15, _status16, _status17, _status2, _status3, _status4, _status5, _status6, _status7, _status8, _status9, status Treg_errcode_t + var bottom int32 + var cat, iter, lit, node, tags, uni uintptr + var symbol Ttre_nfl_stack_symbol_t + var _ /* assertions at bp+4 */ int32 + var _ /* num_tags at bp+0 */ int32 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = _status, _status1, _status10, _status11, _status12, _status13, _status14, _status15, _status16, _status17, _status2, _status3, _status4, _status5, _status6, _status7, _status8, _status9, bottom, cat, iter, lit, node, status, symbol, tags, uni + bottom = _tre_stack_num_objects(tls, stack) + _status = _tre_stack_push_voidptr(tls, stack, tree) + if _status != REG_OK { + return _status + } + _status1 = _tre_stack_push_int(tls, stack, int32(_NFL_RECURSE)) + if _status1 != REG_OK { + return _status1 + } + for _tre_stack_num_objects(tls, stack) > bottom { + symbol = _tre_stack_pop_int(tls, stack) + node = _tre_stack_pop_voidptr(tls, stack) + switch symbol { + case int32(_NFL_RECURSE): + switch (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 { + case int32(_LITERAL): + lit = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + if (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min == int64(-int32(4)) { + /* Back references: nullable = false, firstpos = {i}, + lastpos = {i}. */ + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnullable = 0 + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos = _tre_set_one(tls, mem, (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition, 0, int32(TRE_CHAR_MAX), uint64(0), UintptrFromInt32(0), -int32(1)) + if !((*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos != 0) { + return int32(REG_ESPACE) + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos = _tre_set_one(tls, mem, (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition, 0, int32(TRE_CHAR_MAX), uint64(0), UintptrFromInt32(0), int32((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max)) + if !((*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos != 0) { + return int32(REG_ESPACE) + } + } else { + if (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min < 0 { + /* Tags, empty strings, params, and zero width assertions: + nullable = true, firstpos = {}, and lastpos = {}. */ + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnullable = int32(1) + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos = _tre_set_empty(tls, mem) + if !((*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos != 0) { + return int32(REG_ESPACE) + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos = _tre_set_empty(tls, mem) + if !((*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos != 0) { + return int32(REG_ESPACE) + } + } else { + /* Literal at position i: nullable = false, firstpos = {i}, + lastpos = {i}. */ + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnullable = 0 + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos = _tre_set_one(tls, mem, (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition, int32((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min), int32((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max), uint64(0), UintptrFromInt32(0), -int32(1)) + if !((*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos != 0) { + return int32(REG_ESPACE) + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos = _tre_set_one(tls, mem, (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition, int32((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min), int32((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max), (*Ttre_literal_t)(unsafe.Pointer(lit)).Fclass, (*Ttre_literal_t)(unsafe.Pointer(lit)).Fneg_classes, -int32(1)) + if !((*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos != 0) { + return int32(REG_ESPACE) + } + } + } + case int32(_UNION): + /* Compute the attributes for the two subtrees, and after that + for this node. */ + _status2 = _tre_stack_push_voidptr(tls, stack, node) + if _status2 != REG_OK { + return _status2 + } + _status3 = _tre_stack_push_int(tls, stack, int32(_NFL_POST_UNION)) + if _status3 != REG_OK { + return _status3 + } + _status4 = _tre_stack_push_voidptr(tls, stack, (*Ttre_union_t)(unsafe.Pointer((*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj)).Fright) + if _status4 != REG_OK { + return _status4 + } + _status5 = _tre_stack_push_int(tls, stack, int32(_NFL_RECURSE)) + if _status5 != REG_OK { + return _status5 + } + _status6 = _tre_stack_push_voidptr(tls, stack, (*Ttre_union_t)(unsafe.Pointer((*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj)).Fleft) + if _status6 != REG_OK { + return _status6 + } + _status7 = _tre_stack_push_int(tls, stack, int32(_NFL_RECURSE)) + if _status7 != REG_OK { + return _status7 + } + case int32(_CATENATION): + /* Compute the attributes for the two subtrees, and after that + for this node. */ + _status8 = _tre_stack_push_voidptr(tls, stack, node) + if _status8 != REG_OK { + return _status8 + } + _status9 = _tre_stack_push_int(tls, stack, int32(_NFL_POST_CATENATION)) + if _status9 != REG_OK { + return _status9 + } + _status10 = _tre_stack_push_voidptr(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer((*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj)).Fright) + if _status10 != REG_OK { + return _status10 + } + _status11 = _tre_stack_push_int(tls, stack, int32(_NFL_RECURSE)) + if _status11 != REG_OK { + return _status11 + } + _status12 = _tre_stack_push_voidptr(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer((*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj)).Fleft) + if _status12 != REG_OK { + return _status12 + } + _status13 = _tre_stack_push_int(tls, stack, int32(_NFL_RECURSE)) + if _status13 != REG_OK { + return _status13 + } + case int32(_ITERATION): + /* Compute the attributes for the subtree, and after that for + this node. */ + _status14 = _tre_stack_push_voidptr(tls, stack, node) + if _status14 != REG_OK { + return _status14 + } + _status15 = _tre_stack_push_int(tls, stack, int32(_NFL_POST_ITERATION)) + if _status15 != REG_OK { + return _status15 + } + _status16 = _tre_stack_push_voidptr(tls, stack, (*Ttre_iteration_t)(unsafe.Pointer((*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj)).Farg) + if _status16 != REG_OK { + return _status16 + } + _status17 = _tre_stack_push_int(tls, stack, int32(_NFL_RECURSE)) + if _status17 != REG_OK { + return _status17 + } + break + } + case int32(_NFL_POST_UNION): + uni = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnullable = BoolInt32((*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_union_t)(unsafe.Pointer(uni)).Fleft)).Fnullable != 0 || (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_union_t)(unsafe.Pointer(uni)).Fright)).Fnullable != 0) + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos = _tre_set_union(tls, mem, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_union_t)(unsafe.Pointer(uni)).Fleft)).Ffirstpos, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_union_t)(unsafe.Pointer(uni)).Fright)).Ffirstpos, UintptrFromInt32(0), 0) + if !((*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos != 0) { + return int32(REG_ESPACE) + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos = _tre_set_union(tls, mem, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_union_t)(unsafe.Pointer(uni)).Fleft)).Flastpos, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_union_t)(unsafe.Pointer(uni)).Fright)).Flastpos, UintptrFromInt32(0), 0) + if !((*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos != 0) { + return int32(REG_ESPACE) + } + case int32(_NFL_POST_ITERATION): + iter = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + if (*Ttre_iteration_t)(unsafe.Pointer(iter)).Fmin == 0 || (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg)).Fnullable != 0 { + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnullable = int32(1) + } else { + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnullable = 0 + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos = (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg)).Ffirstpos + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos = (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg)).Flastpos + case int32(_NFL_POST_CATENATION): + cat = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnullable = BoolInt32((*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft)).Fnullable != 0 && (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright)).Fnullable != 0) + /* Compute firstpos. */ + if (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft)).Fnullable != 0 { + /* The left side matches the empty string. Make a first pass + with tre_match_empty() to get the number of tags and + parameters. */ + status = _tre_match_empty(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft, UintptrFromInt32(0), UintptrFromInt32(0), bp) + if status != REG_OK { + return status + } + /* Allocate arrays for the tags and parameters. */ + tags = Xmalloc(tls, uint64(4)*Uint64FromInt32(**(**int32)(__ccgo_up(bp))+Int32FromInt32(1))) + if !(tags != 0) { + return int32(REG_ESPACE) + } + **(**int32)(__ccgo_up(tags)) = -int32(1) + **(**int32)(__ccgo_up(bp + 4)) = 0 + /* Second pass with tre_mach_empty() to get the list of + tags and parameters. */ + status = _tre_match_empty(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft, tags, bp+4, UintptrFromInt32(0)) + if status != REG_OK { + Xfree(tls, tags) + return status + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos = _tre_set_union(tls, mem, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright)).Ffirstpos, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft)).Ffirstpos, tags, **(**int32)(__ccgo_up(bp + 4))) + Xfree(tls, tags) + if !((*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos != 0) { + return int32(REG_ESPACE) + } + } else { + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos = (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft)).Ffirstpos + } + /* Compute lastpos. */ + if (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright)).Fnullable != 0 { + /* The right side matches the empty string. Make a first pass + with tre_match_empty() to get the number of tags and + parameters. */ + status = _tre_match_empty(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright, UintptrFromInt32(0), UintptrFromInt32(0), bp) + if status != REG_OK { + return status + } + /* Allocate arrays for the tags and parameters. */ + tags = Xmalloc(tls, uint64(4)*Uint64FromInt32(**(**int32)(__ccgo_up(bp))+Int32FromInt32(1))) + if !(tags != 0) { + return int32(REG_ESPACE) + } + **(**int32)(__ccgo_up(tags)) = -int32(1) + **(**int32)(__ccgo_up(bp + 4)) = 0 + /* Second pass with tre_mach_empty() to get the list of + tags and parameters. */ + status = _tre_match_empty(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright, tags, bp+4, UintptrFromInt32(0)) + if status != REG_OK { + Xfree(tls, tags) + return status + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos = _tre_set_union(tls, mem, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft)).Flastpos, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright)).Flastpos, tags, **(**int32)(__ccgo_up(bp + 4))) + Xfree(tls, tags) + if !((*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos != 0) { + return int32(REG_ESPACE) + } + } else { + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos = (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright)).Flastpos + } + default: + break + } + } + return REG_OK +} + +// C documentation +// +// /* Adds a transition from each position in `p1' to each position in `p2'. */ +func _tre_make_trans(tls *TLS, p1 uintptr, p2 uintptr, transitions uintptr, counts uintptr, offs uintptr) (r Treg_errcode_t) { + var dup, i, j, k, l, prev_p2_pos, v1, v2 int32 + var orig_p2, trans uintptr + _, _, _, _, _, _, _, _, _, _ = dup, i, j, k, l, orig_p2, prev_p2_pos, trans, v1, v2 + orig_p2 = p2 + if transitions != UintptrFromInt32(0) { + for (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fposition >= 0 { + p2 = orig_p2 + prev_p2_pos = -int32(1) + for (*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Fposition >= 0 { + /* Optimization: if this position was already handled, skip it. */ + if (*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Fposition == prev_p2_pos { + p2 += 56 + continue + } + prev_p2_pos = (*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Fposition + /* Set `trans' to point to the next unused transition from + position `p1->position'. */ + trans = transitions + uintptr(**(**int32)(__ccgo_up(offs + uintptr((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fposition)*4)))*56 + for (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fstate != UintptrFromInt32(0) { + trans += 56 + } + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fstate == UintptrFromInt32(0) { + (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans + UintptrFromInt32(1)*56)).Fstate = UintptrFromInt32(0) + } + /* Use the character ranges, assertions, etc. from `p1' for + the transition from `p1' to `p2'. */ + (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fcode_min = Uint32FromInt32((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fcode_min) + (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fcode_max = Uint32FromInt32((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fcode_max) + (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fstate = transitions + uintptr(**(**int32)(__ccgo_up(offs + uintptr((*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Fposition)*4)))*56 + (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fstate_id = (*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Fposition + if (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fclass != 0 { + v1 = int32(ASSERT_CHAR_CLASS) + } else { + v1 = 0 + } + if (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fneg_classes != UintptrFromInt32(0) { + v2 = int32(ASSERT_CHAR_CLASS_NEG) + } else { + v2 = 0 + } + (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fassertions = (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fassertions | (*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Fassertions | v1 | v2 + if (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fbackref >= 0 { + *(*int32)(unsafe.Pointer(&(*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fu)) = (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fbackref + **(**int32)(__ccgo_up(trans + 32)) |= int32(ASSERT_BACKREF) + } else { + *(*Ttre_ctype_t)(unsafe.Pointer(trans + 40)) = (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fclass + } + if (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fneg_classes != UintptrFromInt32(0) { + i = 0 + for { + if !(**(**Ttre_ctype_t)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fneg_classes + uintptr(i)*8)) != Uint64FromInt32(0)) { + break + } + goto _3 + _3: + ; + i = i + 1 + } + (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fneg_classes = Xmalloc(tls, uint64(8)*Uint64FromInt32(i+Int32FromInt32(1))) + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fneg_classes == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + i = 0 + for { + if !(**(**Ttre_ctype_t)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fneg_classes + uintptr(i)*8)) != Uint64FromInt32(0)) { + break + } + **(**Ttre_ctype_t)(__ccgo_up((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fneg_classes + uintptr(i)*8)) = **(**Ttre_ctype_t)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fneg_classes + uintptr(i)*8)) + goto _4 + _4: + ; + i = i + 1 + } + **(**Ttre_ctype_t)(__ccgo_up((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fneg_classes + uintptr(i)*8)) = Uint64FromInt32(0) + } else { + (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fneg_classes = UintptrFromInt32(0) + } + /* Find out how many tags this transition has. */ + i = 0 + if (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Ftags != UintptrFromInt32(0) { + for **(**int32)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Ftags + uintptr(i)*4)) >= 0 { + i = i + 1 + } + } + j = 0 + if (*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Ftags != UintptrFromInt32(0) { + for **(**int32)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Ftags + uintptr(j)*4)) >= 0 { + j = j + 1 + } + } + /* If we are overwriting a transition, free the old tag array. */ + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags != UintptrFromInt32(0) { + Xfree(tls, (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags) + } + (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags = UintptrFromInt32(0) + /* If there were any tags, allocate an array and fill it. */ + if i+j > 0 { + (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags = Xmalloc(tls, uint64(4)*Uint64FromInt32(i+j+Int32FromInt32(1))) + if !((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags != 0) { + return int32(REG_ESPACE) + } + i = 0 + if (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Ftags != UintptrFromInt32(0) { + for **(**int32)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Ftags + uintptr(i)*4)) >= 0 { + **(**int32)(__ccgo_up((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags + uintptr(i)*4)) = **(**int32)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Ftags + uintptr(i)*4)) + i = i + 1 + } + } + l = i + j = 0 + if (*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Ftags != UintptrFromInt32(0) { + for **(**int32)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Ftags + uintptr(j)*4)) >= 0 { + /* Don't add duplicates. */ + dup = 0 + k = 0 + for { + if !(k < i) { + break + } + if **(**int32)(__ccgo_up((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags + uintptr(k)*4)) == **(**int32)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Ftags + uintptr(j)*4)) { + dup = int32(1) + break + } + goto _5 + _5: + ; + k = k + 1 + } + if !(dup != 0) { + v1 = l + l = l + 1 + **(**int32)(__ccgo_up((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags + uintptr(v1)*4)) = **(**int32)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Ftags + uintptr(j)*4)) + } + j = j + 1 + } + } + **(**int32)(__ccgo_up((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags + uintptr(l)*4)) = -int32(1) + } + p2 += 56 + } + p1 += 56 + } + } else { + /* Compute a maximum limit for the number of transitions leaving + from each state. */ + for (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fposition >= 0 { + p2 = orig_p2 + for (*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Fposition >= 0 { + **(**int32)(__ccgo_up(counts + uintptr((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fposition)*4)) = **(**int32)(__ccgo_up(counts + uintptr((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fposition)*4)) + 1 + p2 += 56 + } + p1 += 56 + } + } + return REG_OK +} + +// C documentation +// +// /* Converts the syntax tree to a TNFA. All the transitions in the TNFA are +// labelled with one character range (there are no transitions on empty +// strings). The TNFA takes O(n^2) space in the worst case, `n' is size of +// the regexp. */ +func _tre_ast_to_tnfa(tls *TLS, node uintptr, transitions uintptr, counts uintptr, offs uintptr) (r Treg_errcode_t) { + var cat, iter, uni uintptr + var errcode Treg_errcode_t + _, _, _, _ = cat, errcode, iter, uni + errcode = REG_OK + /* XXX - recurse using a stack!. */ + switch (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 { + case int32(_LITERAL): + case int32(_UNION): + uni = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + errcode = _tre_ast_to_tnfa(tls, (*Ttre_union_t)(unsafe.Pointer(uni)).Fleft, transitions, counts, offs) + if errcode != REG_OK { + return errcode + } + errcode = _tre_ast_to_tnfa(tls, (*Ttre_union_t)(unsafe.Pointer(uni)).Fright, transitions, counts, offs) + case int32(_CATENATION): + cat = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + /* Add a transition from each position in cat->left->lastpos + to each position in cat->right->firstpos. */ + errcode = _tre_make_trans(tls, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft)).Flastpos, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright)).Ffirstpos, transitions, counts, offs) + if errcode != REG_OK { + return errcode + } + errcode = _tre_ast_to_tnfa(tls, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft, transitions, counts, offs) + if errcode != REG_OK { + return errcode + } + errcode = _tre_ast_to_tnfa(tls, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright, transitions, counts, offs) + case int32(_ITERATION): + iter = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + if (*Ttre_iteration_t)(unsafe.Pointer(iter)).Fmax == -int32(1) { + /* Add a transition from each last position in the iterated + expression to each first position. */ + errcode = _tre_make_trans(tls, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg)).Flastpos, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg)).Ffirstpos, transitions, counts, offs) + if errcode != REG_OK { + return errcode + } + } + errcode = _tre_ast_to_tnfa(tls, (*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg, transitions, counts, offs) + break + } + return errcode +} + +func Xregcomp(tls *TLS, preg uintptr, regex uintptr, cflags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v preg=%v regex=%v cflags=%v, (%v:)", tls, preg, regex, cflags, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var add, i, j, v1 int32 + var counts, initial, offs, p, stack, submatch_data, tag_directions, tmp_ast_l, tmp_ast_r, tnfa, transitions, tree, v2 uintptr + var errcode Treg_errcode_t + var mem Ttre_mem_t + var _ /* parse_ctx at bp+0 */ Ttre_parse_ctx_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = add, counts, errcode, i, initial, j, mem, offs, p, stack, submatch_data, tag_directions, tmp_ast_l, tmp_ast_r, tnfa, transitions, tree, v1, v2 + counts = UintptrFromInt32(0) + offs = UintptrFromInt32(0) + add = 0 + tnfa = UintptrFromInt32(0) + tag_directions = UintptrFromInt32(0) + /* Allocate a stack used throughout the compilation process for various + purposes. */ + stack = _tre_stack_new(tls, int32(512), int32(1024000), int32(128)) + if !(stack != 0) { + return int32(REG_ESPACE) + } + /* Allocate a fast memory allocator. */ + mem = X__tre_mem_new_impl(tls, 0, UintptrFromInt32(0)) + if !(mem != 0) { + _tre_stack_destroy(tls, stack) + return int32(REG_ESPACE) + } + /* Parse the regexp. */ + Xmemset(tls, bp, 0, uint64(56)) + (**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fmem = mem + (**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fstack = stack + (**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fstart = regex + (**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fcflags = cflags + (**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fmax_backref = -int32(1) + errcode = _tre_parse(tls, bp) + if errcode != REG_OK { + errcode = errcode + if int32(1) != 0 { + goto error_exit + } + } + (*Tregex_t)(unsafe.Pointer(preg)).Fre_nsub = Uint64FromInt32((**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fsubmatch_id - int32(1)) + tree = (**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fn + /* Referring to nonexistent subexpressions is illegal. */ + if (**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fmax_backref > Int32FromUint64((*Tregex_t)(unsafe.Pointer(preg)).Fre_nsub) { + errcode = int32(REG_ESUBREG) + if int32(1) != 0 { + goto error_exit + } + } + /* Allocate the TNFA struct. */ + tnfa = Xcalloc(tls, uint64(1), uint64(104)) + if tnfa == UintptrFromInt32(0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fhave_backrefs = BoolInt32((**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fmax_backref >= 0) + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fhave_approx = 0 + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_submatches = Uint32FromInt32((**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fsubmatch_id) + /* Set up tags for submatch addressing. If REG_NOSUB is set and the + regexp does not have back references, this can be skipped. */ + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fhave_backrefs != 0 || !(cflags&Int32FromInt32(REG_NOSUB) != 0) { + /* Figure out how many tags we will need. */ + errcode = _tre_add_tags(tls, UintptrFromInt32(0), stack, tree, tnfa) + if errcode != REG_OK { + errcode = errcode + if int32(1) != 0 { + goto error_exit + } + } + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags > 0 { + tag_directions = Xmalloc(tls, uint64(4)*Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags+Int32FromInt32(1))) + if tag_directions == UintptrFromInt32(0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions = tag_directions + Xmemset(tls, tag_directions, -int32(1), uint64(4)*Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags+Int32FromInt32(1))) + } + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags = Xcalloc(tls, uint64(Uint32FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags)*uint32(2)+uint32(1)), uint64(4)) + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags == UintptrFromInt32(0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + submatch_data = Xcalloc(tls, uint64(Uint32FromInt32((**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fsubmatch_id)), uint64(16)) + if submatch_data == UintptrFromInt32(0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fsubmatch_data = submatch_data + errcode = _tre_add_tags(tls, mem, stack, tree, tnfa) + if errcode != REG_OK { + errcode = errcode + if int32(1) != 0 { + goto error_exit + } + } + } + /* Expand iteration nodes. */ + errcode = _tre_expand_ast(tls, mem, stack, tree, bp+44, tag_directions) + if errcode != REG_OK { + errcode = errcode + if int32(1) != 0 { + goto error_exit + } + } + /* Add a dummy node for the final state. + XXX - For certain patterns this dummy node can be optimized away, + for example "a*" or "ab*". Figure out a simple way to detect + this possibility. */ + tmp_ast_l = tree + v2 = bp + 44 + v1 = *(*int32)(unsafe.Pointer(v2)) + *(*int32)(unsafe.Pointer(v2)) = *(*int32)(unsafe.Pointer(v2)) + 1 + tmp_ast_r = _tre_ast_new_literal(tls, mem, 0, 0, v1) + if tmp_ast_r == UintptrFromInt32(0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + tree = _tre_ast_new_catenation(tls, mem, tmp_ast_l, tmp_ast_r) + if tree == UintptrFromInt32(0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + errcode = _tre_compute_nfl(tls, mem, stack, tree) + if errcode != REG_OK { + errcode = errcode + if int32(1) != 0 { + goto error_exit + } + } + counts = Xmalloc(tls, uint64(4)*Uint64FromInt32((**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fposition)) + if counts == UintptrFromInt32(0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + offs = Xmalloc(tls, uint64(4)*Uint64FromInt32((**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fposition)) + if offs == UintptrFromInt32(0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + i = 0 + for { + if !(i < (**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fposition) { + break + } + **(**int32)(__ccgo_up(counts + uintptr(i)*4)) = 0 + goto _3 + _3: + ; + i = i + 1 + } + _tre_ast_to_tnfa(tls, tree, UintptrFromInt32(0), counts, UintptrFromInt32(0)) + add = 0 + i = 0 + for { + if !(i < (**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fposition) { + break + } + **(**int32)(__ccgo_up(offs + uintptr(i)*4)) = add + add = add + (**(**int32)(__ccgo_up(counts + uintptr(i)*4)) + int32(1)) + **(**int32)(__ccgo_up(counts + uintptr(i)*4)) = 0 + goto _4 + _4: + ; + i = i + 1 + } + transitions = Xcalloc(tls, uint64(Uint32FromInt32(add)+uint32(1)), uint64(56)) + if transitions == UintptrFromInt32(0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftransitions = transitions + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_transitions = Uint32FromInt32(add) + errcode = _tre_ast_to_tnfa(tls, tree, transitions, counts, offs) + if errcode != REG_OK { + errcode = errcode + if int32(1) != 0 { + goto error_exit + } + } + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ffirstpos_chars = UintptrFromInt32(0) + p = (*Ttre_ast_node_t)(unsafe.Pointer(tree)).Ffirstpos + i = 0 + for (*Ttre_pos_and_tags_t)(unsafe.Pointer(p)).Fposition >= 0 { + i = i + 1 + p += 56 + } + initial = Xcalloc(tls, uint64(Uint32FromInt32(i)+uint32(1)), uint64(56)) + if initial == UintptrFromInt32(0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Finitial = initial + i = 0 + p = (*Ttre_ast_node_t)(unsafe.Pointer(tree)).Ffirstpos + for { + if !((*Ttre_pos_and_tags_t)(unsafe.Pointer(p)).Fposition >= 0) { + break + } + (**(**Ttre_tnfa_transition_t)(__ccgo_up(initial + uintptr(i)*56))).Fstate = transitions + uintptr(**(**int32)(__ccgo_up(offs + uintptr((*Ttre_pos_and_tags_t)(unsafe.Pointer(p)).Fposition)*4)))*56 + (**(**Ttre_tnfa_transition_t)(__ccgo_up(initial + uintptr(i)*56))).Fstate_id = (*Ttre_pos_and_tags_t)(unsafe.Pointer(p)).Fposition + (**(**Ttre_tnfa_transition_t)(__ccgo_up(initial + uintptr(i)*56))).Ftags = UintptrFromInt32(0) + /* Copy the arrays p->tags, and p->params, they are allocated + from a tre_mem object. */ + if (*Ttre_pos_and_tags_t)(unsafe.Pointer(p)).Ftags != 0 { + j = 0 + for { + if !(**(**int32)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p)).Ftags + uintptr(j)*4)) >= 0) { + break + } + goto _6 + _6: + ; + j = j + 1 + } + (**(**Ttre_tnfa_transition_t)(__ccgo_up(initial + uintptr(i)*56))).Ftags = Xmalloc(tls, uint64(4)*Uint64FromInt32(j+Int32FromInt32(1))) + if !((**(**Ttre_tnfa_transition_t)(__ccgo_up(initial + uintptr(i)*56))).Ftags != 0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + Xmemcpy(tls, (**(**Ttre_tnfa_transition_t)(__ccgo_up(initial + uintptr(i)*56))).Ftags, (*Ttre_pos_and_tags_t)(unsafe.Pointer(p)).Ftags, uint64(4)*Uint64FromInt32(j+Int32FromInt32(1))) + } + (**(**Ttre_tnfa_transition_t)(__ccgo_up(initial + uintptr(i)*56))).Fassertions = (*Ttre_pos_and_tags_t)(unsafe.Pointer(p)).Fassertions + i = i + 1 + goto _5 + _5: + ; + p += 56 + } + (**(**Ttre_tnfa_transition_t)(__ccgo_up(initial + uintptr(i)*56))).Fstate = UintptrFromInt32(0) + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_transitions = Uint32FromInt32(add) + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ffinal = transitions + uintptr(**(**int32)(__ccgo_up(offs + uintptr((**(**Ttre_pos_and_tags_t)(__ccgo_up((*Ttre_ast_node_t)(unsafe.Pointer(tree)).Flastpos))).Fposition)*4)))*56 + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states = (**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fposition + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags = cflags + X__tre_mem_destroy(tls, mem) + _tre_stack_destroy(tls, stack) + Xfree(tls, counts) + Xfree(tls, offs) + (*Tregex_t)(unsafe.Pointer(preg)).F__opaque = tnfa + return REG_OK + goto error_exit +error_exit: + ; + /* Free everything that was allocated and return the error code. */ + X__tre_mem_destroy(tls, mem) + if stack != UintptrFromInt32(0) { + _tre_stack_destroy(tls, stack) + } + if counts != UintptrFromInt32(0) { + Xfree(tls, counts) + } + if offs != UintptrFromInt32(0) { + Xfree(tls, offs) + } + (*Tregex_t)(unsafe.Pointer(preg)).F__opaque = tnfa + Xregfree(tls, preg) + return errcode +} + +func Xregfree(tls *TLS, preg uintptr) { + if __ccgo_strace { + trc("tls=%v preg=%v, (%v:)", tls, preg, origin(2)) + } + var i uint32 + var tnfa, trans uintptr + _, _, _ = i, tnfa, trans + tnfa = (*Tregex_t)(unsafe.Pointer(preg)).F__opaque + if !(tnfa != 0) { + return + } + i = uint32(0) + for { + if !(i < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_transitions) { + break + } + if (**(**Ttre_tnfa_transition_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftransitions + uintptr(i)*56))).Fstate != 0 { + if (**(**Ttre_tnfa_transition_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftransitions + uintptr(i)*56))).Ftags != 0 { + Xfree(tls, (**(**Ttre_tnfa_transition_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftransitions + uintptr(i)*56))).Ftags) + } + if (**(**Ttre_tnfa_transition_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftransitions + uintptr(i)*56))).Fneg_classes != 0 { + Xfree(tls, (**(**Ttre_tnfa_transition_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftransitions + uintptr(i)*56))).Fneg_classes) + } + } + goto _1 + _1: + ; + i = i + 1 + } + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftransitions != 0 { + Xfree(tls, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftransitions) + } + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Finitial != 0 { + trans = (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Finitial + for { + if !((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fstate != 0) { + break + } + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags != 0 { + Xfree(tls, (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags) + } + goto _2 + _2: + ; + trans += 56 + } + Xfree(tls, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Finitial) + } + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fsubmatch_data != 0 { + i = uint32(0) + for { + if !(i < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_submatches) { + break + } + if (**(**Ttre_submatch_data_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fsubmatch_data + uintptr(i)*16))).Fparents != 0 { + Xfree(tls, (**(**Ttre_submatch_data_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fsubmatch_data + uintptr(i)*16))).Fparents) + } + goto _3 + _3: + ; + i = i + 1 + } + Xfree(tls, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fsubmatch_data) + } + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions != 0 { + Xfree(tls, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions) + } + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ffirstpos_chars != 0 { + Xfree(tls, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ffirstpos_chars) + } + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags != 0 { + Xfree(tls, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags) + } + Xfree(tls, tnfa) +} + +/* Error message strings for error codes listed in `regex.h'. This list + needs to be in sync with the codes listed there, naturally. */ + +/* Converted to single string by Rich Felker to remove the need for + * data relocations at runtime, 27 Feb 2006. */ + +var _messages = [286]uint8{'N', 'o', ' ', 'e', 'r', 'r', 'o', 'r', 0, 'N', 'o', ' ', 'm', 'a', 't', 'c', 'h', 0, 'I', 'n', 'v', 'a', 'l', 'i', 'd', ' ', 'r', 'e', 'g', 'e', 'x', 'p', 0, 'U', 'n', 'k', 'n', 'o', 'w', 'n', ' ', 'c', 'o', 'l', 'l', 'a', 't', 'i', 'n', 'g', ' ', 'e', 'l', 'e', 'm', 'e', 'n', 't', 0, 'U', 'n', 'k', 'n', 'o', 'w', 'n', ' ', 'c', 'h', 'a', 'r', 'a', 'c', 't', 'e', 'r', ' ', 'c', 'l', 'a', 's', 's', ' ', 'n', 'a', 'm', 'e', 0, 'T', 'r', 'a', 'i', 'l', 'i', 'n', 'g', ' ', 'b', 'a', 'c', 'k', 's', 'l', 'a', 's', 'h', 0, 'I', 'n', 'v', 'a', 'l', 'i', 'd', ' ', 'b', 'a', 'c', 'k', ' ', 'r', 'e', 'f', 'e', 'r', 'e', 'n', 'c', 'e', 0, 'M', 'i', 's', 's', 'i', 'n', 'g', ' ', '\'', ']', '\'', 0, 'M', 'i', 's', 's', 'i', 'n', 'g', ' ', '\'', ')', '\'', 0, 'M', 'i', 's', 's', 'i', 'n', 'g', ' ', '\'', '}', '\'', 0, 'I', 'n', 'v', 'a', 'l', 'i', 'd', ' ', 'c', 'o', 'n', 't', 'e', 'n', 't', 's', ' ', 'o', 'f', ' ', '{', '}', 0, 'I', 'n', 'v', 'a', 'l', 'i', 'd', ' ', 'c', 'h', 'a', 'r', 'a', 'c', 't', 'e', 'r', ' ', 'r', 'a', 'n', 'g', 'e', 0, 'O', 'u', 't', ' ', 'o', 'f', ' ', 'm', 'e', 'm', 'o', 'r', 'y', 0, 'R', 'e', 'p', 'e', 't', 'i', 't', 'i', 'o', 'n', ' ', 'n', 'o', 't', ' ', 'p', 'r', 'e', 'c', 'e', 'd', 'e', 'd', ' ', 'b', 'y', ' ', 'v', 'a', 'l', 'i', 'd', ' ', 'e', 'x', 'p', 'r', 'e', 's', 's', 'i', 'o', 'n', 0, 0, 'U', 'n', 'k', 'n', 'o', 'w', 'n', ' ', 'e', 'r', 'r', 'o', 'r'} + +func Xregerror(tls *TLS, e int32, preg uintptr, buf uintptr, size Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v e=%v preg=%v buf=%v size=%v, (%v:)", tls, e, preg, buf, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var s uintptr + _ = s + s = uintptr(unsafe.Pointer(&_messages)) + for { + if !(e != 0 && **(**uint8)(__ccgo_up(s)) != 0) { + break + } + goto _1 + _1: + ; + e = e - 1 + s = s + uintptr(_strlen(tls, s)+uint64(1)) + } + if !(**(**uint8)(__ccgo_up(s)) != 0) { + s = s + 1 + } + s = X__lctrans_cur(tls, s) + return Uint64FromInt32(int32(1) + Xsnprintf(tls, buf, size, __ccgo_ts+15, VaList(bp+8, s))) +} + +const tre_bt_mem_alloc = 0 +const tre_bt_mem_destroy = 0 +const tre_bt_mem_new = 0 + +/*********************************************************************** + from tre-match-utils.h +***********************************************************************/ + +// C documentation +// +// /* Returns 1 if `t1' wins `t2', 0 otherwise. */ +func _tre_tag_order(tls *TLS, num_tags int32, tag_directions uintptr, t1 uintptr, t2 uintptr) (r int32) { + var i int32 + _ = i + i = 0 + for { + if !(i < num_tags) { + break + } + if **(**Ttre_tag_direction_t)(__ccgo_up(tag_directions + uintptr(i)*4)) == int32(_TRE_TAG_MINIMIZE) { + if **(**Tregoff_t)(__ccgo_up(t1 + uintptr(i)*8)) < **(**Tregoff_t)(__ccgo_up(t2 + uintptr(i)*8)) { + return int32(1) + } + if **(**Tregoff_t)(__ccgo_up(t1 + uintptr(i)*8)) > **(**Tregoff_t)(__ccgo_up(t2 + uintptr(i)*8)) { + return 0 + } + } else { + if **(**Tregoff_t)(__ccgo_up(t1 + uintptr(i)*8)) > **(**Tregoff_t)(__ccgo_up(t2 + uintptr(i)*8)) { + return int32(1) + } + if **(**Tregoff_t)(__ccgo_up(t1 + uintptr(i)*8)) < **(**Tregoff_t)(__ccgo_up(t2 + uintptr(i)*8)) { + return 0 + } + } + goto _1 + _1: + ; + i = i + 1 + } + /* assert(0);*/ + return 0 +} + +func _tre_neg_char_classes_match(tls *TLS, classes uintptr, wc Ttre_cint_t, icase int32) (r int32) { + for **(**Ttre_ctype_t)(__ccgo_up(classes)) != Uint64FromInt32(0) { + if !(icase != 0) && Xiswctype(tls, wc, **(**Ttre_ctype_t)(__ccgo_up(classes))) != 0 || icase != 0 && (Xiswctype(tls, Xtowupper(tls, wc), **(**Ttre_ctype_t)(__ccgo_up(classes))) != 0 || Xiswctype(tls, Xtowlower(tls, wc), **(**Ttre_ctype_t)(__ccgo_up(classes))) != 0) { + return int32(1) + } else { + classes += 8 + } + } + return 0 /* No match. */ +} + +/*********************************************************************** + from tre-match-parallel.c +***********************************************************************/ + +/* + This algorithm searches for matches basically by reading characters + in the searched string one by one, starting at the beginning. All + matching paths in the TNFA are traversed in parallel. When two or + more paths reach the same state, exactly one is chosen according to + tag ordering rules; if returning submatches is not required it does + not matter which path is chosen. + + The worst case time required for finding the leftmost and longest + match, or determining that there is no match, is always linearly + dependent on the length of the text being searched. + + This algorithm cannot handle TNFAs with back referencing nodes. + See `tre-match-backtrack.c'. +*/ + +type Ttre_tnfa_reach_t = struct { + Fstate uintptr + Ftags uintptr +} + +type Ttre_reach_pos_t = struct { + Fpos Tregoff_t + Ftags uintptr +} + +func _tre_tnfa_run_parallel(tls *TLS, tnfa uintptr, string1 uintptr, match_tags uintptr, eflags int32, match_end_ofs uintptr) (r Treg_errcode_t) { + bp := tls.Alloc(16) + defer tls.Free(16) + var buf, reach, reach_i, reach_next, reach_next_i, reach_pos, str_byte, tag_i, tmp_buf, tmp_iptr, tmp_tags, trans_i uintptr + var end, i, new_match, num_tags, reg_newline, reg_notbol, reg_noteol, skip, start, v18 int32 + var match_eo, pos, pos_add_next, v7 Tregoff_t + var pbytes, rbytes, tbytes, total_bytes, xbytes Tsize_t + var prev_c Ttre_char_t + var ret Treg_errcode_t + var v1 uint64 + var _ /* next_c at bp+0 */ Ttre_char_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = buf, end, i, match_eo, new_match, num_tags, pbytes, pos, pos_add_next, prev_c, rbytes, reach, reach_i, reach_next, reach_next_i, reach_pos, reg_newline, reg_notbol, reg_noteol, ret, skip, start, str_byte, tag_i, tbytes, tmp_buf, tmp_iptr, tmp_tags, total_bytes, trans_i, xbytes, v1, v18, v7 + /* State variables required by GET_NEXT_WCHAR. */ + prev_c = 0 + **(**Ttre_char_t)(__ccgo_up(bp)) = 0 + str_byte = string1 + pos = int64(-int32(1)) + pos_add_next = int64(1) + reg_notbol = eflags & int32(REG_NOTBOL) + reg_noteol = eflags & int32(REG_NOTEOL) + reg_newline = (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags & int32(REG_NEWLINE) + match_eo = int64(-int32(1)) /* end offset of match (-1 if no match found yet) */ + new_match = 0 + tmp_tags = UintptrFromInt32(0) + if !(match_tags != 0) { + num_tags = 0 + } else { + num_tags = (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags + } + /* Allocate memory for temporary data required for matching. This needs to + be done for every matching operation to be thread safe. This allocates + everything in a single large block with calloc(). */ + /* Ensure that tbytes and xbytes*num_states cannot overflow, and that + * they don't contribute more than 1/8 of SIZE_MAX to total_bytes. */ + if Uint64FromInt32(num_tags) > uint64(0xffffffffffffffff)/(Uint64FromInt32(8)*Uint64FromInt64(8)*Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states)) { + return int32(REG_ESPACE) + } + /* Likewise check rbytes. */ + if Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states+int32(1)) > Uint64FromUint64(0xffffffffffffffff)/(Uint64FromInt32(8)*Uint64FromInt64(16)) { + return int32(REG_ESPACE) + } + /* Likewise check pbytes. */ + if Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states) > Uint64FromUint64(0xffffffffffffffff)/(Uint64FromInt32(8)*Uint64FromInt64(16)) { + return int32(REG_ESPACE) + } + /* Compute the length of the block we need. */ + tbytes = uint64(8) * Uint64FromInt32(num_tags) + rbytes = uint64(16) * Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states+Int32FromInt32(1)) + pbytes = uint64(16) * Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states) + xbytes = uint64(8) * Uint64FromInt32(num_tags) + total_bytes = (Uint64FromInt64(8)-Uint64FromInt32(1))*Uint64FromInt32(4) + (rbytes+xbytes*Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states))*uint64(2) + tbytes + pbytes + /* Allocate the memory. */ + buf = Xcalloc(tls, total_bytes, uint64(1)) + if buf == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + /* Get the various pointers within tmp_buf (properly aligned). */ + tmp_tags = buf + tmp_buf = buf + uintptr(tbytes) + if Uint64FromInt64(int64(tmp_buf))%uint64(8) != 0 { + v1 = uint64(8) - Uint64FromInt64(int64(tmp_buf))%uint64(8) + } else { + v1 = uint64(0) + } + tmp_buf = tmp_buf + uintptr(v1) + reach_next = tmp_buf + tmp_buf = tmp_buf + uintptr(rbytes) + if Uint64FromInt64(int64(tmp_buf))%uint64(8) != 0 { + v1 = uint64(8) - Uint64FromInt64(int64(tmp_buf))%uint64(8) + } else { + v1 = uint64(0) + } + tmp_buf = tmp_buf + uintptr(v1) + reach = tmp_buf + tmp_buf = tmp_buf + uintptr(rbytes) + if Uint64FromInt64(int64(tmp_buf))%uint64(8) != 0 { + v1 = uint64(8) - Uint64FromInt64(int64(tmp_buf))%uint64(8) + } else { + v1 = uint64(0) + } + tmp_buf = tmp_buf + uintptr(v1) + reach_pos = tmp_buf + tmp_buf = tmp_buf + uintptr(pbytes) + if Uint64FromInt64(int64(tmp_buf))%uint64(8) != 0 { + v1 = uint64(8) - Uint64FromInt64(int64(tmp_buf))%uint64(8) + } else { + v1 = uint64(0) + } + tmp_buf = tmp_buf + uintptr(v1) + i = 0 + for { + if !(i < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states) { + break + } + (**(**Ttre_tnfa_reach_t)(__ccgo_up(reach + uintptr(i)*16))).Ftags = tmp_buf + tmp_buf = tmp_buf + uintptr(xbytes) + (**(**Ttre_tnfa_reach_t)(__ccgo_up(reach_next + uintptr(i)*16))).Ftags = tmp_buf + tmp_buf = tmp_buf + uintptr(xbytes) + goto _5 + _5: + ; + i = i + 1 + } + i = 0 + for { + if !(i < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states) { + break + } + (**(**Ttre_reach_pos_t)(__ccgo_up(reach_pos + uintptr(i)*16))).Fpos = int64(-int32(1)) + goto _6 + _6: + ; + i = i + 1 + } + prev_c = **(**Ttre_char_t)(__ccgo_up(bp)) + pos = pos + pos_add_next + v7 = int64(Xmbtowc(tls, bp, str_byte, uint64(MB_LEN_MAX))) + pos_add_next = v7 + if v7 <= 0 { + if pos_add_next < 0 { + ret = int32(REG_NOMATCH) + goto error_exit + } else { + pos_add_next = pos_add_next + 1 + } + } + str_byte = str_byte + uintptr(pos_add_next) + pos = 0 + reach_next_i = reach_next + for int32(1) != 0 { + /* If no match found yet, add the initial states to `reach_next'. */ + if match_eo < 0 { + trans_i = (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Finitial + for (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate != UintptrFromInt32(0) { + if (**(**Ttre_reach_pos_t)(__ccgo_up(reach_pos + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*16))).Fpos < pos { + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions != 0 && ((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_BOL) != 0 && (pos > 0 || reg_notbol != 0) && (prev_c != int32('\n') || !(reg_newline != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_EOL) != 0 && (**(**Ttre_char_t)(__ccgo_up(bp)) != int32('\000') || reg_noteol != 0) && (**(**Ttre_char_t)(__ccgo_up(bp)) != int32('\n') || !(reg_newline != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_BOW) != 0 && (prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0 || !(**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_EOW) != 0 && (!(prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0) || (**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_WB) != 0 && (pos != 0 && **(**Ttre_char_t)(__ccgo_up(bp)) != int32('\000') && BoolInt32(prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0) == BoolInt32(**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_WB_NEG) != 0 && (pos == 0 || **(**Ttre_char_t)(__ccgo_up(bp)) == int32('\000') || BoolInt32(prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0) != BoolInt32(**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0))) { + trans_i += 56 + continue + } + (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Fstate = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate + i = 0 + for { + if !(i < num_tags) { + break + } + **(**Tregoff_t)(__ccgo_up((*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Ftags + uintptr(i)*8)) = int64(-int32(1)) + goto _8 + _8: + ; + i = i + 1 + } + tag_i = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Ftags + if tag_i != 0 { + for **(**int32)(__ccgo_up(tag_i)) >= 0 { + if **(**int32)(__ccgo_up(tag_i)) < num_tags { + **(**Tregoff_t)(__ccgo_up((*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Ftags + uintptr(**(**int32)(__ccgo_up(tag_i)))*8)) = pos + } + tag_i += 4 + } + } + if (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Fstate == (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ffinal { + match_eo = pos + new_match = int32(1) + i = 0 + for { + if !(i < num_tags) { + break + } + **(**Tregoff_t)(__ccgo_up(match_tags + uintptr(i)*8)) = **(**Tregoff_t)(__ccgo_up((*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Ftags + uintptr(i)*8)) + goto _9 + _9: + ; + i = i + 1 + } + } + (**(**Ttre_reach_pos_t)(__ccgo_up(reach_pos + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*16))).Fpos = pos + (**(**Ttre_reach_pos_t)(__ccgo_up(reach_pos + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*16))).Ftags = reach_next_i + 8 + reach_next_i += 16 + } + trans_i += 56 + } + (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Fstate = UintptrFromInt32(0) + } else { + if num_tags == 0 || reach_next_i == reach_next { + /* We have found a match. */ + break + } + } + /* Check for end of string. */ + if !(**(**Ttre_char_t)(__ccgo_up(bp)) != 0) { + break + } + prev_c = **(**Ttre_char_t)(__ccgo_up(bp)) + pos = pos + pos_add_next + v7 = int64(Xmbtowc(tls, bp, str_byte, uint64(MB_LEN_MAX))) + pos_add_next = v7 + if v7 <= 0 { + if pos_add_next < 0 { + ret = int32(REG_NOMATCH) + goto error_exit + } else { + pos_add_next = pos_add_next + 1 + } + } + str_byte = str_byte + uintptr(pos_add_next) + /* Swap `reach' and `reach_next'. */ + reach_i = reach + reach = reach_next + reach_next = reach_i + /* For each state in `reach', weed out states that don't fulfill the + minimal matching conditions. */ + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_minimals != 0 && new_match != 0 { + new_match = 0 + reach_next_i = reach_next + reach_i = reach + for { + if !((*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_i)).Fstate != 0) { + break + } + skip = 0 + i = 0 + for { + if !(**(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i)*4)) >= 0) { + break + } + end = **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i)*4)) + start = **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i+int32(1))*4)) + if end >= num_tags { + skip = int32(1) + break + } else { + if **(**Tregoff_t)(__ccgo_up((*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_i)).Ftags + uintptr(start)*8)) == **(**Tregoff_t)(__ccgo_up(match_tags + uintptr(start)*8)) && **(**Tregoff_t)(__ccgo_up((*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_i)).Ftags + uintptr(end)*8)) < **(**Tregoff_t)(__ccgo_up(match_tags + uintptr(end)*8)) { + skip = int32(1) + break + } + } + goto _12 + _12: + ; + i = i + int32(2) + } + if !(skip != 0) { + (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Fstate = (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_i)).Fstate + tmp_iptr = (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Ftags + (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Ftags = (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_i)).Ftags + (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_i)).Ftags = tmp_iptr + reach_next_i += 16 + } + goto _11 + _11: + ; + reach_i += 16 + } + (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Fstate = UintptrFromInt32(0) + /* Swap `reach' and `reach_next'. */ + reach_i = reach + reach = reach_next + reach_next = reach_i + } + /* For each state in `reach' see if there is a transition leaving with + the current input symbol to a state not yet in `reach_next', and + add the destination states to `reach_next'. */ + reach_next_i = reach_next + reach_i = reach + for { + if !((*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_i)).Fstate != 0) { + break + } + trans_i = (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_i)).Fstate + for { + if !((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate != 0) { + break + } + /* Does this transition match the input symbol? */ + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fcode_min <= Uint32FromInt32(prev_c) && (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fcode_max >= Uint32FromInt32(prev_c) { + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions != 0 && ((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_BOL) != 0 && (pos > 0 || reg_notbol != 0) && (prev_c != int32('\n') || !(reg_newline != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_EOL) != 0 && (**(**Ttre_char_t)(__ccgo_up(bp)) != int32('\000') || reg_noteol != 0) && (**(**Ttre_char_t)(__ccgo_up(bp)) != int32('\n') || !(reg_newline != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_BOW) != 0 && (prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0 || !(**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_EOW) != 0 && (!(prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0) || (**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_WB) != 0 && (pos != 0 && **(**Ttre_char_t)(__ccgo_up(bp)) != int32('\000') && BoolInt32(prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0) == BoolInt32(**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_WB_NEG) != 0 && (pos == 0 || **(**Ttre_char_t)(__ccgo_up(bp)) == int32('\000') || BoolInt32(prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0) != BoolInt32(**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || ((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_CHAR_CLASS) != 0 && !((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags&Int32FromInt32(REG_ICASE) != 0) && !(Xiswctype(tls, Uint32FromInt32(prev_c), *(*Ttre_ctype_t)(unsafe.Pointer(trans_i + 40))) != 0) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_CHAR_CLASS) != 0 && (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags&int32(REG_ICASE) != 0 && !(Xiswctype(tls, Xtowlower(tls, Uint32FromInt32(prev_c)), *(*Ttre_ctype_t)(unsafe.Pointer(trans_i + 40))) != 0) && !(Xiswctype(tls, Xtowupper(tls, Uint32FromInt32(prev_c)), *(*Ttre_ctype_t)(unsafe.Pointer(trans_i + 40))) != 0) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_CHAR_CLASS_NEG) != 0 && _tre_neg_char_classes_match(tls, (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fneg_classes, Uint32FromInt32(prev_c), (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags&int32(REG_ICASE)) != 0)) { + goto _14 + } + /* Compute the tags after this transition. */ + i = 0 + for { + if !(i < num_tags) { + break + } + **(**Tregoff_t)(__ccgo_up(tmp_tags + uintptr(i)*8)) = **(**Tregoff_t)(__ccgo_up((*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_i)).Ftags + uintptr(i)*8)) + goto _15 + _15: + ; + i = i + 1 + } + tag_i = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Ftags + if tag_i != UintptrFromInt32(0) { + for **(**int32)(__ccgo_up(tag_i)) >= 0 { + if **(**int32)(__ccgo_up(tag_i)) < num_tags { + **(**Tregoff_t)(__ccgo_up(tmp_tags + uintptr(**(**int32)(__ccgo_up(tag_i)))*8)) = pos + } + tag_i += 4 + } + } + if (**(**Ttre_reach_pos_t)(__ccgo_up(reach_pos + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*16))).Fpos < pos { + /* Found an unvisited node. */ + (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Fstate = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate + tmp_iptr = (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Ftags + (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Ftags = tmp_tags + tmp_tags = tmp_iptr + (**(**Ttre_reach_pos_t)(__ccgo_up(reach_pos + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*16))).Fpos = pos + (**(**Ttre_reach_pos_t)(__ccgo_up(reach_pos + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*16))).Ftags = reach_next_i + 8 + if (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Fstate == (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ffinal && (match_eo == int64(-int32(1)) || num_tags > 0 && **(**Tregoff_t)(__ccgo_up((*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Ftags)) <= **(**Tregoff_t)(__ccgo_up(match_tags))) { + match_eo = pos + new_match = int32(1) + i = 0 + for { + if !(i < num_tags) { + break + } + **(**Tregoff_t)(__ccgo_up(match_tags + uintptr(i)*8)) = **(**Tregoff_t)(__ccgo_up((*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Ftags + uintptr(i)*8)) + goto _16 + _16: + ; + i = i + 1 + } + } + reach_next_i += 16 + } else { + /* Another path has also reached this state. We choose + the winner by examining the tag values for both + paths. */ + if _tre_tag_order(tls, num_tags, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions, tmp_tags, **(**uintptr)(__ccgo_up((**(**Ttre_reach_pos_t)(__ccgo_up(reach_pos + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*16))).Ftags))) != 0 { + /* The new path wins. */ + tmp_iptr = **(**uintptr)(__ccgo_up((**(**Ttre_reach_pos_t)(__ccgo_up(reach_pos + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*16))).Ftags)) + **(**uintptr)(__ccgo_up((**(**Ttre_reach_pos_t)(__ccgo_up(reach_pos + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*16))).Ftags)) = tmp_tags + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate == (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ffinal { + match_eo = pos + new_match = int32(1) + i = 0 + for { + if !(i < num_tags) { + break + } + **(**Tregoff_t)(__ccgo_up(match_tags + uintptr(i)*8)) = **(**Tregoff_t)(__ccgo_up(tmp_tags + uintptr(i)*8)) + goto _17 + _17: + ; + i = i + 1 + } + } + tmp_tags = tmp_iptr + } + } + } + goto _14 + _14: + ; + trans_i += 56 + } + goto _13 + _13: + ; + reach_i += 16 + } + (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Fstate = UintptrFromInt32(0) + } + **(**Tregoff_t)(__ccgo_up(match_end_ofs)) = match_eo + if match_eo >= 0 { + v18 = REG_OK + } else { + v18 = int32(REG_NOMATCH) + } + ret = v18 + goto error_exit +error_exit: + ; + Xfree(tls, buf) + return ret +} + +/*********************************************************************** + from tre-match-backtrack.c +***********************************************************************/ + +/* + This matcher is for regexps that use back referencing. Regexp matching + with back referencing is an NP-complete problem on the number of back + references. The easiest way to match them is to use a backtracking + routine which basically goes through all possible paths in the TNFA + and chooses the one which results in the best (leftmost and longest) + match. This can be spectacularly expensive and may run out of stack + space, but there really is no better known generic algorithm. Quoting + Henry Spencer from comp.compilers: + + + POSIX.2 REs require longest match, which is really exciting to + implement since the obsolete ("basic") variant also includes + \. I haven't found a better way of tackling this than doing + a preliminary match using a DFA (or simulation) on a modified RE + that just replicates subREs for \, and then doing a + backtracking match to determine whether the subRE matches were + right. This can be rather slow, but I console myself with the + thought that people who use \ deserve very slow execution. + (Pun unintentional but very appropriate.) + +*/ + +type Ttre_backtrack_item_t = struct { + Fpos Tregoff_t + Fstr_byte uintptr + Fstate uintptr + Fstate_id int32 + Fnext_c int32 + Ftags uintptr +} + +type Ttre_backtrack_t = uintptr + +type Ttre_backtrack_struct = struct { + Fitem Ttre_backtrack_item_t + Fprev uintptr + Fnext uintptr +} + +func _tre_tnfa_run_backtrack(tls *TLS, tnfa uintptr, string1 uintptr, match_tags uintptr, eflags int32, match_end_ofs uintptr) (r Treg_errcode_t) { + bp := tls.Alloc(16) + defer tls.Free(16) + var bt, empty_br_match, i, i1, i2, i3, i4, next_c_start, reg_newline, reg_notbol, reg_noteol, result, ret, v20 int32 + var bt_len, eo, match_eo, pos, pos_add_next, pos_start, so, v3 Tregoff_t + var mem Ttre_mem_t + var next_state, next_tags, pmatch, state, states_seen, str_byte, str_byte_start, tags, tmp, tmp1, trans_i, v6 uintptr + var prev_c Ttre_char_t + var s, s1, stack Ttre_backtrack_t + var _ /* next_c at bp+0 */ Ttre_char_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = bt, bt_len, empty_br_match, eo, i, i1, i2, i3, i4, match_eo, mem, next_c_start, next_state, next_tags, pmatch, pos, pos_add_next, pos_start, prev_c, reg_newline, reg_notbol, reg_noteol, result, ret, s, s1, so, stack, state, states_seen, str_byte, str_byte_start, tags, tmp, tmp1, trans_i, v20, v3, v6 + /* State variables required by GET_NEXT_WCHAR. */ + prev_c = 0 + **(**Ttre_char_t)(__ccgo_up(bp)) = 0 + str_byte = string1 + pos = 0 + pos_add_next = int64(1) + reg_notbol = eflags & int32(REG_NOTBOL) + reg_noteol = eflags & int32(REG_NOTEOL) + reg_newline = (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags & int32(REG_NEWLINE) + pos_start = int64(-int32(1)) + /* End offset of best match so far, or -1 if no match found yet. */ + match_eo = int64(-int32(1)) + tags = UintptrFromInt32(0) + states_seen = UintptrFromInt32(0) + /* Memory allocator to for allocating the backtracking stack. */ + mem = X__tre_mem_new_impl(tls, 0, UintptrFromInt32(0)) + pmatch = UintptrFromInt32(0) + if !(mem != 0) { + return int32(REG_ESPACE) + } + stack = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint64(56)) + if !(stack != 0) { + ret = int32(REG_ESPACE) + goto error_exit + } + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fprev = UintptrFromInt32(0) + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fnext = UintptrFromInt32(0) + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags != 0 { + tags = Xmalloc(tls, uint64(8)*Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags)) + if !(tags != 0) { + ret = int32(REG_ESPACE) + goto error_exit + } + } + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_submatches != 0 { + pmatch = Xmalloc(tls, uint64(16)*uint64((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_submatches)) + if !(pmatch != 0) { + ret = int32(REG_ESPACE) + goto error_exit + } + } + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states != 0 { + states_seen = Xmalloc(tls, uint64(4)*Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states)) + if !(states_seen != 0) { + ret = int32(REG_ESPACE) + goto error_exit + } + } + goto retry +retry: + ; + i = 0 + for { + if !(i < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags) { + break + } + **(**Tregoff_t)(__ccgo_up(tags + uintptr(i)*8)) = int64(-int32(1)) + if match_tags != 0 { + **(**Tregoff_t)(__ccgo_up(match_tags + uintptr(i)*8)) = int64(-int32(1)) + } + goto _1 + _1: + ; + i = i + 1 + } + i = 0 + for { + if !(i < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states) { + break + } + **(**int32)(__ccgo_up(states_seen + uintptr(i)*4)) = 0 + goto _2 + _2: + ; + i = i + 1 + } + state = UintptrFromInt32(0) + pos = pos_start + prev_c = **(**Ttre_char_t)(__ccgo_up(bp)) + pos = pos + pos_add_next + v3 = int64(Xmbtowc(tls, bp, str_byte, uint64(MB_LEN_MAX))) + pos_add_next = v3 + if v3 <= 0 { + if pos_add_next < 0 { + ret = int32(REG_NOMATCH) + goto error_exit + } else { + pos_add_next = pos_add_next + 1 + } + } + str_byte = str_byte + uintptr(pos_add_next) + pos_start = pos + next_c_start = **(**Ttre_char_t)(__ccgo_up(bp)) + str_byte_start = str_byte + /* Handle initial states. */ + next_tags = UintptrFromInt32(0) + trans_i = (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Finitial + for { + if !((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate != 0) { + break + } + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions != 0 && ((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_BOL) != 0 && (pos > 0 || reg_notbol != 0) && (prev_c != int32('\n') || !(reg_newline != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_EOL) != 0 && (**(**Ttre_char_t)(__ccgo_up(bp)) != int32('\000') || reg_noteol != 0) && (**(**Ttre_char_t)(__ccgo_up(bp)) != int32('\n') || !(reg_newline != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_BOW) != 0 && (prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0 || !(**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_EOW) != 0 && (!(prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0) || (**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_WB) != 0 && (pos != 0 && **(**Ttre_char_t)(__ccgo_up(bp)) != int32('\000') && BoolInt32(prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0) == BoolInt32(**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_WB_NEG) != 0 && (pos == 0 || **(**Ttre_char_t)(__ccgo_up(bp)) == int32('\000') || BoolInt32(prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0) != BoolInt32(**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0))) { + goto _4 + } + if state == UintptrFromInt32(0) { + /* Start from this state. */ + state = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate + next_tags = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Ftags + } else { + /* Backtrack to this state. */ + if !((*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fnext != 0) { + s = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint64(56)) + if !(s != 0) { + X__tre_mem_destroy(tls, mem) + if tags != 0 { + Xfree(tls, tags) + } + if pmatch != 0 { + Xfree(tls, pmatch) + } + if states_seen != 0 { + Xfree(tls, states_seen) + } + return int32(REG_ESPACE) + } + (*Ttre_backtrack_struct)(unsafe.Pointer(s)).Fprev = stack + (*Ttre_backtrack_struct)(unsafe.Pointer(s)).Fnext = UintptrFromInt32(0) + (*Ttre_backtrack_struct)(unsafe.Pointer(s)).Fitem.Ftags = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint64(8)*Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags)) + if !((*Ttre_backtrack_struct)(unsafe.Pointer(s)).Fitem.Ftags != 0) { + X__tre_mem_destroy(tls, mem) + if tags != 0 { + Xfree(tls, tags) + } + if pmatch != 0 { + Xfree(tls, pmatch) + } + if states_seen != 0 { + Xfree(tls, states_seen) + } + return int32(REG_ESPACE) + } + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fnext = s + stack = s + } else { + stack = (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fnext + } + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fpos = pos + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstr_byte = str_byte + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstate = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstate_id = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fnext_c = **(**Ttre_char_t)(__ccgo_up(bp)) + i1 = 0 + for { + if !(i1 < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags) { + break + } + **(**Tregoff_t)(__ccgo_up((*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Ftags + uintptr(i1)*8)) = **(**Tregoff_t)(__ccgo_up(tags + uintptr(i1)*8)) + goto _5 + _5: + ; + i1 = i1 + 1 + } + tmp = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Ftags + if tmp != 0 { + for **(**int32)(__ccgo_up(tmp)) >= 0 { + v6 = tmp + tmp += 4 + **(**Tregoff_t)(__ccgo_up((*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Ftags + uintptr(**(**int32)(__ccgo_up(v6)))*8)) = pos + } + } + } + goto _4 + _4: + ; + trans_i += 56 + } + if next_tags != 0 { + for { + if !(**(**int32)(__ccgo_up(next_tags)) >= 0) { + break + } + **(**Tregoff_t)(__ccgo_up(tags + uintptr(**(**int32)(__ccgo_up(next_tags)))*8)) = pos + goto _7 + _7: + ; + next_tags += 4 + } + } + if state == UintptrFromInt32(0) { + goto backtrack + } +_9: + ; + if !(int32(1) != 0) { + goto _8 + } + if state == (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ffinal { + if match_eo < pos || match_eo == pos && match_tags != 0 && _tre_tag_order(tls, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions, tags, match_tags) != 0 { + /* This match wins the previous match. */ + match_eo = pos + if match_tags != 0 { + i2 = 0 + for { + if !(i2 < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags) { + break + } + **(**Tregoff_t)(__ccgo_up(match_tags + uintptr(i2)*8)) = **(**Tregoff_t)(__ccgo_up(tags + uintptr(i2)*8)) + goto _10 + _10: + ; + i2 = i2 + 1 + } + } + } + /* Our TNFAs never have transitions leaving from the final state, + so we jump right to backtracking. */ + goto backtrack + } + /* Go to the next character in the input string. */ + empty_br_match = 0 + trans_i = state + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate != 0 && (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_BACKREF) != 0 { + bt = *(*int32)(unsafe.Pointer(&(*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fu)) + /* Get the substring we need to match against. Remember to + turn off REG_NOSUB temporarily. */ + _tre_fill_pmatch(tls, Uint64FromInt32(bt+int32(1)), pmatch, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags & ^Int32FromInt32(REG_NOSUB), tnfa, tags, pos) + so = (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(bt)*16))).Frm_so + eo = (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(bt)*16))).Frm_eo + bt_len = eo - so + result = Xstrncmp(tls, string1+uintptr(so), str_byte-uintptr(1), Uint64FromInt64(bt_len)) + if result == 0 { + /* Back reference matched. Check for infinite loop. */ + if bt_len == 0 { + empty_br_match = int32(1) + } + if empty_br_match != 0 && **(**int32)(__ccgo_up(states_seen + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*4)) != 0 { + goto backtrack + } + **(**int32)(__ccgo_up(states_seen + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*4)) = empty_br_match + /* Advance in input string and resync `prev_c', `next_c' + and pos. */ + str_byte = str_byte + uintptr(bt_len-int64(1)) + pos = pos + (bt_len - int64(1)) + prev_c = **(**Ttre_char_t)(__ccgo_up(bp)) + pos = pos + pos_add_next + v3 = int64(Xmbtowc(tls, bp, str_byte, uint64(MB_LEN_MAX))) + pos_add_next = v3 + if v3 <= 0 { + if pos_add_next < 0 { + ret = int32(REG_NOMATCH) + goto error_exit + } else { + pos_add_next = pos_add_next + 1 + } + } + str_byte = str_byte + uintptr(pos_add_next) + } else { + goto backtrack + } + } else { + /* Check for end of string. */ + if **(**Ttre_char_t)(__ccgo_up(bp)) == int32('\000') { + goto backtrack + } + /* Read the next character. */ + prev_c = **(**Ttre_char_t)(__ccgo_up(bp)) + pos = pos + pos_add_next + v3 = int64(Xmbtowc(tls, bp, str_byte, uint64(MB_LEN_MAX))) + pos_add_next = v3 + if v3 <= 0 { + if pos_add_next < 0 { + ret = int32(REG_NOMATCH) + goto error_exit + } else { + pos_add_next = pos_add_next + 1 + } + } + str_byte = str_byte + uintptr(pos_add_next) + } + next_state = UintptrFromInt32(0) + trans_i = state + for { + if !((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate != 0) { + break + } + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fcode_min <= Uint32FromInt32(prev_c) && (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fcode_max >= Uint32FromInt32(prev_c) { + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions != 0 && ((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_BOL) != 0 && (pos > 0 || reg_notbol != 0) && (prev_c != int32('\n') || !(reg_newline != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_EOL) != 0 && (**(**Ttre_char_t)(__ccgo_up(bp)) != int32('\000') || reg_noteol != 0) && (**(**Ttre_char_t)(__ccgo_up(bp)) != int32('\n') || !(reg_newline != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_BOW) != 0 && (prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0 || !(**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_EOW) != 0 && (!(prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0) || (**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_WB) != 0 && (pos != 0 && **(**Ttre_char_t)(__ccgo_up(bp)) != int32('\000') && BoolInt32(prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0) == BoolInt32(**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_WB_NEG) != 0 && (pos == 0 || **(**Ttre_char_t)(__ccgo_up(bp)) == int32('\000') || BoolInt32(prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0) != BoolInt32(**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || ((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_CHAR_CLASS) != 0 && !((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags&Int32FromInt32(REG_ICASE) != 0) && !(Xiswctype(tls, Uint32FromInt32(prev_c), *(*Ttre_ctype_t)(unsafe.Pointer(trans_i + 40))) != 0) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_CHAR_CLASS) != 0 && (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags&int32(REG_ICASE) != 0 && !(Xiswctype(tls, Xtowlower(tls, Uint32FromInt32(prev_c)), *(*Ttre_ctype_t)(unsafe.Pointer(trans_i + 40))) != 0) && !(Xiswctype(tls, Xtowupper(tls, Uint32FromInt32(prev_c)), *(*Ttre_ctype_t)(unsafe.Pointer(trans_i + 40))) != 0) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_CHAR_CLASS_NEG) != 0 && _tre_neg_char_classes_match(tls, (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fneg_classes, Uint32FromInt32(prev_c), (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags&int32(REG_ICASE)) != 0)) { + goto _13 + } + if next_state == UintptrFromInt32(0) { + /* First matching transition. */ + next_state = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate + next_tags = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Ftags + } else { + /* Second matching transition. We may need to backtrack here + to take this transition instead of the first one, so we + push this transition in the backtracking stack so we can + jump back here if needed. */ + if !((*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fnext != 0) { + s1 = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint64(56)) + if !(s1 != 0) { + X__tre_mem_destroy(tls, mem) + if tags != 0 { + Xfree(tls, tags) + } + if pmatch != 0 { + Xfree(tls, pmatch) + } + if states_seen != 0 { + Xfree(tls, states_seen) + } + return int32(REG_ESPACE) + } + (*Ttre_backtrack_struct)(unsafe.Pointer(s1)).Fprev = stack + (*Ttre_backtrack_struct)(unsafe.Pointer(s1)).Fnext = UintptrFromInt32(0) + (*Ttre_backtrack_struct)(unsafe.Pointer(s1)).Fitem.Ftags = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint64(8)*Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags)) + if !((*Ttre_backtrack_struct)(unsafe.Pointer(s1)).Fitem.Ftags != 0) { + X__tre_mem_destroy(tls, mem) + if tags != 0 { + Xfree(tls, tags) + } + if pmatch != 0 { + Xfree(tls, pmatch) + } + if states_seen != 0 { + Xfree(tls, states_seen) + } + return int32(REG_ESPACE) + } + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fnext = s1 + stack = s1 + } else { + stack = (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fnext + } + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fpos = pos + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstr_byte = str_byte + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstate = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstate_id = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fnext_c = **(**Ttre_char_t)(__ccgo_up(bp)) + i3 = 0 + for { + if !(i3 < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags) { + break + } + **(**Tregoff_t)(__ccgo_up((*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Ftags + uintptr(i3)*8)) = **(**Tregoff_t)(__ccgo_up(tags + uintptr(i3)*8)) + goto _14 + _14: + ; + i3 = i3 + 1 + } + tmp1 = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Ftags + for { + if !(tmp1 != 0 && **(**int32)(__ccgo_up(tmp1)) >= 0) { + break + } + **(**Tregoff_t)(__ccgo_up((*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Ftags + uintptr(**(**int32)(__ccgo_up(tmp1)))*8)) = pos + goto _15 + _15: + ; + tmp1 += 4 + } + } + } + goto _13 + _13: + ; + trans_i += 56 + } + if !(next_state != UintptrFromInt32(0)) { + goto _16 + } + /* Matching transitions were found. Take the first one. */ + state = next_state + /* Update the tag values. */ + if next_tags != 0 { + for **(**int32)(__ccgo_up(next_tags)) >= 0 { + v6 = next_tags + next_tags += 4 + **(**Tregoff_t)(__ccgo_up(tags + uintptr(**(**int32)(__ccgo_up(v6)))*8)) = pos + } + } + goto _17 +_16: + ; + goto backtrack +backtrack: + ; + /* A matching transition was not found. Try to backtrack. */ + if (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fprev != 0 { + if (*Ttre_tnfa_transition_t)(unsafe.Pointer((*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstate)).Fassertions&int32(ASSERT_BACKREF) != 0 { + **(**int32)(__ccgo_up(states_seen + uintptr((*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstate_id)*4)) = 0 + } + pos = (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fpos + str_byte = (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstr_byte + state = (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstate + **(**Ttre_char_t)(__ccgo_up(bp)) = (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fnext_c + i4 = 0 + for { + if !(i4 < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags) { + break + } + **(**Tregoff_t)(__ccgo_up(tags + uintptr(i4)*8)) = **(**Tregoff_t)(__ccgo_up((*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Ftags + uintptr(i4)*8)) + goto _19 + _19: + ; + i4 = i4 + 1 + } + stack = (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fprev + } else { + if match_eo < 0 { + /* Try starting from a later position in the input string. */ + /* Check for end of string. */ + if **(**Ttre_char_t)(__ccgo_up(bp)) == int32('\000') { + goto _8 + } + **(**Ttre_char_t)(__ccgo_up(bp)) = next_c_start + str_byte = str_byte_start + goto retry + } else { + goto _8 + } + } +_17: + ; + goto _9 +_8: + ; + if match_eo >= 0 { + v20 = REG_OK + } else { + v20 = int32(REG_NOMATCH) + } + ret = v20 + **(**Tregoff_t)(__ccgo_up(match_end_ofs)) = match_eo + goto error_exit +error_exit: + ; + X__tre_mem_destroy(tls, mem) + if tags != 0 { + Xfree(tls, tags) + } + if pmatch != 0 { + Xfree(tls, pmatch) + } + if states_seen != 0 { + Xfree(tls, states_seen) + } + return ret +} + +/*********************************************************************** + from regexec.c +***********************************************************************/ + +// C documentation +// +// /* Fills the POSIX.2 regmatch_t array according to the TNFA tag and match +// endpoint values. */ +func _tre_fill_pmatch(tls *TLS, nmatch Tsize_t, pmatch uintptr, cflags int32, tnfa uintptr, tags uintptr, match_eo Tregoff_t) { + var i, j uint32 + var parents, submatch_data uintptr + var v1 Tregoff_t + _, _, _, _, _ = i, j, parents, submatch_data, v1 + i = uint32(0) + if match_eo >= 0 && !(cflags&Int32FromInt32(REG_NOSUB) != 0) { + /* Construct submatch offsets from the tags. */ + submatch_data = (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fsubmatch_data + for i < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_submatches && uint64(i) < nmatch { + if (**(**Ttre_submatch_data_t)(__ccgo_up(submatch_data + uintptr(i)*16))).Fso_tag == (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fend_tag { + (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_so = match_eo + } else { + (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_so = **(**Tregoff_t)(__ccgo_up(tags + uintptr((**(**Ttre_submatch_data_t)(__ccgo_up(submatch_data + uintptr(i)*16))).Fso_tag)*8)) + } + if (**(**Ttre_submatch_data_t)(__ccgo_up(submatch_data + uintptr(i)*16))).Feo_tag == (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fend_tag { + (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_eo = match_eo + } else { + (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_eo = **(**Tregoff_t)(__ccgo_up(tags + uintptr((**(**Ttre_submatch_data_t)(__ccgo_up(submatch_data + uintptr(i)*16))).Feo_tag)*8)) + } + /* If either of the endpoints were not used, this submatch + was not part of the match. */ + if (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_so == int64(-int32(1)) || (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_eo == int64(-int32(1)) { + v1 = int64(-Int32FromInt32(1)) + (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_eo = v1 + (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_so = v1 + } + i = i + 1 + } + /* Reset all submatches that are not within all of their parent + submatches. */ + i = uint32(0) + for i < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_submatches && uint64(i) < nmatch { + if (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_eo == int64(-int32(1)) { + } + parents = (**(**Ttre_submatch_data_t)(__ccgo_up(submatch_data + uintptr(i)*16))).Fparents + if parents != UintptrFromInt32(0) { + j = uint32(0) + for { + if !(**(**int32)(__ccgo_up(parents + uintptr(j)*4)) >= 0) { + break + } + if (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_so < (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(**(**int32)(__ccgo_up(parents + uintptr(j)*4)))*16))).Frm_so || (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_eo > (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(**(**int32)(__ccgo_up(parents + uintptr(j)*4)))*16))).Frm_eo { + v1 = int64(-Int32FromInt32(1)) + (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_eo = v1 + (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_so = v1 + } + goto _2 + _2: + ; + j = j + 1 + } + } + i = i + 1 + } + } + for uint64(i) < nmatch { + (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_so = int64(-int32(1)) + (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_eo = int64(-int32(1)) + i = i + 1 + } +} + +/* + Wrapper functions for POSIX compatible regexp matching. +*/ + +func Xregexec(tls *TLS, preg uintptr, string1 uintptr, nmatch Tsize_t, pmatch uintptr, eflags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v preg=%v string1=%v nmatch=%v pmatch=%v eflags=%v, (%v:)", tls, preg, string1, nmatch, pmatch, eflags, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var status Treg_errcode_t + var tags, tnfa uintptr + var _ /* eo at bp+0 */ Tregoff_t + _, _, _ = status, tags, tnfa + tnfa = (*Tregex_t)(unsafe.Pointer(preg)).F__opaque + tags = UintptrFromInt32(0) + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags&int32(REG_NOSUB) != 0 { + nmatch = uint64(0) + } + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags > 0 && nmatch > uint64(0) { + tags = Xmalloc(tls, uint64(8)*Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags)) + if tags == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + } + /* Dispatch to the appropriate matcher. */ + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fhave_backrefs != 0 { + /* The regex has back references, use the backtracking matcher. */ + status = _tre_tnfa_run_backtrack(tls, tnfa, string1, tags, eflags, bp) + } else { + /* Exact matching, no back references, use the parallel matcher. */ + status = _tre_tnfa_run_parallel(tls, tnfa, string1, tags, eflags, bp) + } + if status == REG_OK { + /* A match was found, so fill the submatch registers. */ + _tre_fill_pmatch(tls, nmatch, pmatch, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags, tnfa, tags, **(**Tregoff_t)(__ccgo_up(bp))) + } + if tags != 0 { + Xfree(tls, tags) + } + return status +} + +/* + This memory allocator is for allocating small memory blocks efficiently + in terms of memory overhead and execution speed. The allocated blocks + cannot be freed individually, only all at once. There can be multiple + allocators, though. +*/ + +// C documentation +// +// /* Returns a new memory allocator or NULL if out of memory. */ +func X__tre_mem_new_impl(tls *TLS, provided int32, provided_block uintptr) (r Ttre_mem_t) { + if __ccgo_strace { + trc("tls=%v provided=%v provided_block=%v, (%v:)", tls, provided, provided_block, origin(2)) + defer func() { trc("-> %v", r) }() + } + var mem Ttre_mem_t + _ = mem + if provided != 0 { + mem = provided_block + Xmemset(tls, mem, 0, uint64(48)) + } else { + mem = Xcalloc(tls, uint64(1), uint64(48)) + } + if mem == UintptrFromInt32(0) { + return UintptrFromInt32(0) + } + return mem +} + +// C documentation +// +// /* Frees the memory allocator and all memory allocated with it. */ +func X__tre_mem_destroy(tls *TLS, mem Ttre_mem_t) { + if __ccgo_strace { + trc("tls=%v mem=%v, (%v:)", tls, mem, origin(2)) + } + var l, tmp uintptr + _, _ = l, tmp + l = (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fblocks + for l != UintptrFromInt32(0) { + Xfree(tls, (*Ttre_list_t)(unsafe.Pointer(l)).Fdata) + tmp = (*Ttre_list_t)(unsafe.Pointer(l)).Fnext + Xfree(tls, l) + l = tmp + } + Xfree(tls, mem) +} + +// C documentation +// +// /* Allocates a block of `size' bytes from `mem'. Returns a pointer to the +// allocated block or NULL if an underlying malloc() failed. */ +func X__tre_mem_alloc_impl(tls *TLS, mem Ttre_mem_t, provided int32, provided_block uintptr, zero int32, size Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v mem=%v provided=%v provided_block=%v zero=%v size=%v, (%v:)", tls, mem, provided, provided_block, zero, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + var block_size int32 + var l, ptr uintptr + var v1 uint64 + _, _, _, _ = block_size, l, ptr, v1 + if (*Ttre_mem_struct)(unsafe.Pointer(mem)).Ffailed != 0 { + return UintptrFromInt32(0) + } + if (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fn < size { + if provided != 0 { + if provided_block == UintptrFromInt32(0) { + (*Ttre_mem_struct)(unsafe.Pointer(mem)).Ffailed = int32(1) + return UintptrFromInt32(0) + } + (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fptr = provided_block + (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fn = uint64(TRE_MEM_BLOCK_SIZE) + } else { + if size*uint64(8) > uint64(TRE_MEM_BLOCK_SIZE) { + block_size = Int32FromUint64(size * uint64(8)) + } else { + block_size = int32(TRE_MEM_BLOCK_SIZE) + } + l = Xmalloc(tls, uint64(16)) + if l == UintptrFromInt32(0) { + (*Ttre_mem_struct)(unsafe.Pointer(mem)).Ffailed = int32(1) + return UintptrFromInt32(0) + } + (*Ttre_list_t)(unsafe.Pointer(l)).Fdata = Xmalloc(tls, Uint64FromInt32(block_size)) + if (*Ttre_list_t)(unsafe.Pointer(l)).Fdata == UintptrFromInt32(0) { + Xfree(tls, l) + (*Ttre_mem_struct)(unsafe.Pointer(mem)).Ffailed = int32(1) + return UintptrFromInt32(0) + } + (*Ttre_list_t)(unsafe.Pointer(l)).Fnext = UintptrFromInt32(0) + if (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fcurrent != UintptrFromInt32(0) { + (*Ttre_list_t)(unsafe.Pointer((*Ttre_mem_struct)(unsafe.Pointer(mem)).Fcurrent)).Fnext = l + } + if (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fblocks == UintptrFromInt32(0) { + (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fblocks = l + } + (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fcurrent = l + (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fptr = (*Ttre_list_t)(unsafe.Pointer(l)).Fdata + (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fn = Uint64FromInt32(block_size) + } + } + /* Make sure the next pointer will be aligned. */ + if (Uint64FromInt64(int64((*Ttre_mem_struct)(unsafe.Pointer(mem)).Fptr))+size)%uint64(8) != 0 { + v1 = uint64(8) - (Uint64FromInt64(int64((*Ttre_mem_struct)(unsafe.Pointer(mem)).Fptr))+size)%uint64(8) + } else { + v1 = uint64(0) + } + size = size + v1 + /* Allocate from current block. */ + ptr = (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fptr + **(**uintptr)(__ccgo_up(mem + 16)) += uintptr(size) + **(**Tsize_t)(__ccgo_up(mem + 24)) -= size + /* Set to zero if needed. */ + if zero != 0 { + Xmemset(tls, ptr, 0, size) + } + return ptr +} + +const MAXSIZE = 1 +const MINSIZE = 8 + +type TACTION = int32 + +const _FIND = 0 +const _ENTER = 1 + +type TVISIT = int32 + +const _preorder = 0 +const _postorder = 1 +const _endorder = 2 +const _leaf = 3 + +type TENTRY = struct { + Fkey uintptr + Fdata uintptr +} + +type Tentry = TENTRY + +type Thsearch_data = struct { + F__tab uintptr + F__unused1 uint32 + F__unused2 uint32 +} + +type Tqelem = struct { + Fq_forw uintptr + Fq_back uintptr + Fq_data [1]uint8 +} + +/* +open addressing hash table with 2^n table size +quadratic probing is used in case of hash collision +tab indices and hash are size_t +after resize fails with ENOMEM the state of tab is still usable + +with the posix api items cannot be iterated and length cannot be queried +*/ + +type t__tab = struct { + Fentries uintptr + Fmask Tsize_t + Fused Tsize_t +} + +var _htab Thsearch_data + +func _keyhash(tls *TLS, k uintptr) (r Tsize_t) { + var h Tsize_t + var p, v1 uintptr + _, _, _ = h, p, v1 + p = k + h = uint64(0) + for **(**uint8)(__ccgo_up(p)) != 0 { + v1 = p + p = p + 1 + h = uint64(31)*h + uint64(**(**uint8)(__ccgo_up(v1))) + } + return h +} + +func _resize(tls *TLS, nel Tsize_t, htab uintptr) (r int32) { + var e, newe, oldtab uintptr + var i, j, newsize, oldsize, v4 Tsize_t + _, _, _, _, _, _, _, _ = e, i, j, newe, newsize, oldsize, oldtab, v4 + oldsize = (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fmask + uint64(1) + oldtab = (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fentries + if nel > Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(2)+Uint64FromInt32(1) { + nel = Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(2) + Uint64FromInt32(1) + } + newsize = uint64(MINSIZE) + for { + if !(newsize < nel) { + break + } + goto _1 + _1: + ; + newsize = newsize * uint64(2) + } + (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fentries = Xcalloc(tls, newsize, uint64(16)) + if !((*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fentries != 0) { + (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fentries = oldtab + return 0 + } + (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fmask = newsize - uint64(1) + if !(oldtab != 0) { + return int32(1) + } + e = oldtab + for { + if !(e < oldtab+uintptr(oldsize)*16) { + break + } + if (*TENTRY)(unsafe.Pointer(e)).Fkey != 0 { + i = _keyhash(tls, (*TENTRY)(unsafe.Pointer(e)).Fkey) + j = Uint64FromInt32(1) + for { + newe = (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fentries + uintptr(i&(*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fmask)*16 + if !((*TENTRY)(unsafe.Pointer(newe)).Fkey != 0) { + break + } + goto _3 + _3: + ; + v4 = j + j = j + 1 + i = i + v4 + } + **(**TENTRY)(__ccgo_up(newe)) = **(**TENTRY)(__ccgo_up(e)) + } + goto _2 + _2: + ; + e += 16 + } + Xfree(tls, oldtab) + return int32(1) +} + +func Xhcreate(tls *TLS, nel Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v nel=%v, (%v:)", tls, nel, origin(2)) + defer func() { trc("-> %v", r) }() + } + return ___hcreate_r(tls, nel, uintptr(unsafe.Pointer(&_htab))) +} + +func Xhdestroy(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + ___hdestroy_r(tls, uintptr(unsafe.Pointer(&_htab))) +} + +func _lookup(tls *TLS, key uintptr, hash Tsize_t, htab uintptr) (r uintptr) { + var e uintptr + var i, j, v2 Tsize_t + _, _, _, _ = e, i, j, v2 + i = hash + j = Uint64FromInt32(1) + for { + e = (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fentries + uintptr(i&(*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fmask)*16 + if !((*TENTRY)(unsafe.Pointer(e)).Fkey != 0) || Xstrcmp(tls, (*TENTRY)(unsafe.Pointer(e)).Fkey, key) == 0 { + break + } + goto _1 + _1: + ; + v2 = j + j = j + 1 + i = i + v2 + } + return e +} + +func Xhsearch(tls *TLS, item TENTRY, action TACTION) (r uintptr) { + if __ccgo_strace { + trc("tls=%v item=%v action=%v, (%v:)", tls, item, action, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* e at bp+0 */ uintptr + ___hsearch_r(tls, item, action, bp, uintptr(unsafe.Pointer(&_htab))) + return **(**uintptr)(__ccgo_up(bp)) +} + +func ___hcreate_r(tls *TLS, nel Tsize_t, htab uintptr) (r1 int32) { + var r int32 + _ = r + (*Thsearch_data)(unsafe.Pointer(htab)).F__tab = Xcalloc(tls, uint64(1), uint64(24)) + if !((*Thsearch_data)(unsafe.Pointer(htab)).F__tab != 0) { + return 0 + } + r = _resize(tls, nel, htab) + if r == 0 { + Xfree(tls, (*Thsearch_data)(unsafe.Pointer(htab)).F__tab) + (*Thsearch_data)(unsafe.Pointer(htab)).F__tab = uintptr(0) + } + return r +} + +func ___hdestroy_r(tls *TLS, htab uintptr) { + if (*Thsearch_data)(unsafe.Pointer(htab)).F__tab != 0 { + Xfree(tls, (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fentries) + } + Xfree(tls, (*Thsearch_data)(unsafe.Pointer(htab)).F__tab) + (*Thsearch_data)(unsafe.Pointer(htab)).F__tab = uintptr(0) +} + +func ___hsearch_r(tls *TLS, item TENTRY, action TACTION, retval uintptr, htab uintptr) (r int32) { + var e, v2 uintptr + var hash, v1 Tsize_t + _, _, _, _ = e, hash, v1, v2 + hash = _keyhash(tls, item.Fkey) + e = _lookup(tls, item.Fkey, hash, htab) + if (*TENTRY)(unsafe.Pointer(e)).Fkey != 0 { + **(**uintptr)(__ccgo_up(retval)) = e + return int32(1) + } + if action == int32(_FIND) { + **(**uintptr)(__ccgo_up(retval)) = uintptr(0) + return 0 + } + **(**TENTRY)(__ccgo_up(e)) = item + v2 = (*Thsearch_data)(unsafe.Pointer(htab)).F__tab + 16 + *(*Tsize_t)(unsafe.Pointer(v2)) = *(*Tsize_t)(unsafe.Pointer(v2)) + 1 + v1 = *(*Tsize_t)(unsafe.Pointer(v2)) + if v1 > (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fmask-(*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fmask/uint64(4) { + if !(_resize(tls, uint64(2)*(*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fused, htab) != 0) { + (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fused = (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fused - 1 + (*TENTRY)(unsafe.Pointer(e)).Fkey = uintptr(0) + **(**uintptr)(__ccgo_up(retval)) = uintptr(0) + return 0 + } + e = _lookup(tls, item.Fkey, hash, htab) + } + **(**uintptr)(__ccgo_up(retval)) = e + return int32(1) +} + +type Tnode = struct { + Fnext uintptr + Fprev uintptr +} + +func Xinsque(tls *TLS, element uintptr, pred uintptr) { + if __ccgo_strace { + trc("tls=%v element=%v pred=%v, (%v:)", tls, element, pred, origin(2)) + } + var e, p, v1 uintptr + _, _, _ = e, p, v1 + e = element + p = pred + if !(p != 0) { + v1 = UintptrFromInt32(0) + (*Tnode)(unsafe.Pointer(e)).Fprev = v1 + (*Tnode)(unsafe.Pointer(e)).Fnext = v1 + return + } + (*Tnode)(unsafe.Pointer(e)).Fnext = (*Tnode)(unsafe.Pointer(p)).Fnext + (*Tnode)(unsafe.Pointer(e)).Fprev = p + (*Tnode)(unsafe.Pointer(p)).Fnext = e + if (*Tnode)(unsafe.Pointer(e)).Fnext != 0 { + (*Tnode)(unsafe.Pointer((*Tnode)(unsafe.Pointer(e)).Fnext)).Fprev = e + } +} + +func Xremque(tls *TLS, element uintptr) { + if __ccgo_strace { + trc("tls=%v element=%v, (%v:)", tls, element, origin(2)) + } + var e uintptr + _ = e + e = element + if (*Tnode)(unsafe.Pointer(e)).Fnext != 0 { + (*Tnode)(unsafe.Pointer((*Tnode)(unsafe.Pointer(e)).Fnext)).Fprev = (*Tnode)(unsafe.Pointer(e)).Fprev + } + if (*Tnode)(unsafe.Pointer(e)).Fprev != 0 { + (*Tnode)(unsafe.Pointer((*Tnode)(unsafe.Pointer(e)).Fprev)).Fnext = (*Tnode)(unsafe.Pointer(e)).Fnext + } +} + +type t__ccgo_fp__Xlsearch_4 = func(*TLS, uintptr, uintptr) int32 + +func Xlsearch(tls *TLS, key uintptr, base uintptr, nelp uintptr, width Tsize_t, __ccgo_fp_compar uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v base=%v nelp=%v width=%v __ccgo_fp_compar=%v, (%v:)", tls, key, base, nelp, width, __ccgo_fp_compar, origin(2)) + defer func() { trc("-> %v", r) }() + } + var i, n Tsize_t + var p uintptr + var v1 t__predefined_size_t + _, _, _, _ = i, n, p, v1 + defer func() {}() + v1 = width + p = base + n = **(**Tsize_t)(__ccgo_up(nelp)) + i = uint64(0) + for { + if !(i < n) { + break + } + if (*(*func(*TLS, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_compar})))(tls, key, p+uintptr(i)*uintptr(v1)) == 0 { + return p + uintptr(i)*uintptr(v1) + } + goto _2 + _2: + ; + i = i + 1 + } + **(**Tsize_t)(__ccgo_up(nelp)) = n + uint64(1) + return Xmemcpy(tls, p+uintptr(n)*uintptr(v1), key, width) +} + +type t__ccgo_fp__Xlfind_4 = func(*TLS, uintptr, uintptr) int32 + +func Xlfind(tls *TLS, key uintptr, base uintptr, nelp uintptr, width Tsize_t, __ccgo_fp_compar uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v base=%v nelp=%v width=%v __ccgo_fp_compar=%v, (%v:)", tls, key, base, nelp, width, __ccgo_fp_compar, origin(2)) + defer func() { trc("-> %v", r) }() + } + var i, n Tsize_t + var p uintptr + var v1 t__predefined_size_t + _, _, _, _ = i, n, p, v1 + defer func() {}() + v1 = width + p = base + n = **(**Tsize_t)(__ccgo_up(nelp)) + i = uint64(0) + for { + if !(i < n) { + break + } + if (*(*func(*TLS, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_compar})))(tls, key, p+uintptr(i)*uintptr(v1)) == 0 { + return p + uintptr(i)*uintptr(v1) + } + goto _2 + _2: + ; + i = i + 1 + } + return uintptr(0) +} + +const MAXH = 0 + +type Tnode1 = struct { + Fkey uintptr + Fa [2]uintptr + Fh int32 +} + +type t__ccgo_fp__Xtdelete_2 = func(*TLS, uintptr, uintptr) int32 + +func Xtdelete(tls *TLS, key uintptr, rootp uintptr, __ccgo_fp_cmp uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v rootp=%v __ccgo_fp_cmp=%v, (%v:)", tls, key, rootp, __ccgo_fp_cmp, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a [97]uintptr + var c, i, v1 int32 + var child, deleted, n, parent uintptr + _, _, _, _, _, _, _, _ = a, c, child, deleted, i, n, parent, v1 + if !(rootp != 0) { + return uintptr(0) + } + n = **(**uintptr)(__ccgo_up(rootp)) + i = 0 + /* *a[0] is an arbitrary non-null pointer that is returned when + the root node is deleted. */ + v1 = i + i = i + 1 + a[v1] = rootp + v1 = i + i = i + 1 + a[v1] = rootp + for { + if !(n != 0) { + return uintptr(0) + } + c = (*(*func(*TLS, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cmp})))(tls, key, (*Tnode1)(unsafe.Pointer(n)).Fkey) + if !(c != 0) { + break + } + v1 = i + i = i + 1 + a[v1] = n + 8 + BoolUintptr(c > 0)*8 + n = **(**uintptr)(__ccgo_up(n + 8 + BoolUintptr(c > 0)*8)) + goto _3 + _3: + } + parent = **(**uintptr)(__ccgo_up(a[i-int32(2)])) + if **(**uintptr)(__ccgo_up(n + 8)) != 0 { + /* free the preceding node instead of the deleted one. */ + deleted = n + v1 = i + i = i + 1 + a[v1] = n + 8 + n = **(**uintptr)(__ccgo_up(n + 8)) + for **(**uintptr)(__ccgo_up(n + 8 + 1*8)) != 0 { + v1 = i + i = i + 1 + a[v1] = n + 8 + 1*8 + n = **(**uintptr)(__ccgo_up(n + 8 + 1*8)) + } + (*Tnode1)(unsafe.Pointer(deleted)).Fkey = (*Tnode1)(unsafe.Pointer(n)).Fkey + child = **(**uintptr)(__ccgo_up(n + 8)) + } else { + child = **(**uintptr)(__ccgo_up(n + 8 + 1*8)) + } + /* freed node has at most one child, move it up and rebalance. */ + Xfree(tls, n) + i = i - 1 + v1 = i + **(**uintptr)(__ccgo_up(a[v1])) = child + for { + i = i - 1 + v1 = i + if !(v1 != 0 && X__tsearch_balance(tls, a[i]) != 0) { + break + } + } + return parent +} + +type t__ccgo_fp__Xtdestroy_1 = func(*TLS, uintptr) + +func Xtdestroy(tls *TLS, root uintptr, __ccgo_fp_freekey uintptr) { + if __ccgo_strace { + trc("tls=%v root=%v __ccgo_fp_freekey=%v, (%v:)", tls, root, __ccgo_fp_freekey, origin(2)) + } + var r uintptr + _ = r + r = root + if r == uintptr(0) { + return + } + Xtdestroy(tls, **(**uintptr)(__ccgo_up(r + 8)), __ccgo_fp_freekey) + Xtdestroy(tls, **(**uintptr)(__ccgo_up(r + 8 + 1*8)), __ccgo_fp_freekey) + if __ccgo_fp_freekey != 0 { + (*(*func(*TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_freekey})))(tls, (*Tnode1)(unsafe.Pointer(r)).Fkey) + } + Xfree(tls, r) +} + +type t__ccgo_fp__Xtfind_2 = func(*TLS, uintptr, uintptr) int32 + +func Xtfind(tls *TLS, key uintptr, rootp uintptr, __ccgo_fp_cmp uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v rootp=%v __ccgo_fp_cmp=%v, (%v:)", tls, key, rootp, __ccgo_fp_cmp, origin(2)) + defer func() { trc("-> %v", r) }() + } + var c int32 + var n uintptr + _, _ = c, n + if !(rootp != 0) { + return uintptr(0) + } + n = **(**uintptr)(__ccgo_up(rootp)) + for { + if !(n != 0) { + break + } + c = (*(*func(*TLS, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cmp})))(tls, key, (*Tnode1)(unsafe.Pointer(n)).Fkey) + if !(c != 0) { + break + } + n = **(**uintptr)(__ccgo_up(n + 8 + BoolUintptr(c > 0)*8)) + goto _1 + _1: + } + return n +} + +func _height(tls *TLS, n uintptr) (r int32) { + var v1 int32 + _ = v1 + if n != 0 { + v1 = (*Tnode1)(unsafe.Pointer(n)).Fh + } else { + v1 = 0 + } + return v1 +} + +func _rot(tls *TLS, p uintptr, x uintptr, dir int32) (r int32) { + var hx, hz int32 + var y, z uintptr + _, _, _, _ = hx, hz, y, z + y = **(**uintptr)(__ccgo_up(x + 8 + uintptr(dir)*8)) + z = **(**uintptr)(__ccgo_up(y + 8 + BoolUintptr(!(dir != 0))*8)) + hx = (*Tnode1)(unsafe.Pointer(x)).Fh + hz = _height(tls, z) + if hz > _height(tls, **(**uintptr)(__ccgo_up(y + 8 + uintptr(dir)*8))) { + /* + * x + * / \ dir z + * A y / * / \ --> x y + * z D /| | * / \ A B C D + * B C + */ + **(**uintptr)(__ccgo_up(x + 8 + uintptr(dir)*8)) = **(**uintptr)(__ccgo_up(z + 8 + BoolUintptr(!(dir != 0))*8)) + **(**uintptr)(__ccgo_up(y + 8 + BoolUintptr(!(dir != 0))*8)) = **(**uintptr)(__ccgo_up(z + 8 + uintptr(dir)*8)) + **(**uintptr)(__ccgo_up(z + 8 + BoolUintptr(!(dir != 0))*8)) = x + **(**uintptr)(__ccgo_up(z + 8 + uintptr(dir)*8)) = y + (*Tnode1)(unsafe.Pointer(x)).Fh = hz + (*Tnode1)(unsafe.Pointer(y)).Fh = hz + (*Tnode1)(unsafe.Pointer(z)).Fh = hz + int32(1) + } else { + /* + * x y + * / \ / * A y --> x D + * / \ / * z D A z + */ + **(**uintptr)(__ccgo_up(x + 8 + uintptr(dir)*8)) = z + **(**uintptr)(__ccgo_up(y + 8 + BoolUintptr(!(dir != 0))*8)) = x + (*Tnode1)(unsafe.Pointer(x)).Fh = hz + int32(1) + (*Tnode1)(unsafe.Pointer(y)).Fh = hz + int32(2) + z = y + } + **(**uintptr)(__ccgo_up(p)) = z + return (*Tnode1)(unsafe.Pointer(z)).Fh - hx +} + +// C documentation +// +// /* balance *p, return 0 if height is unchanged. */ +func X__tsearch_balance(tls *TLS, p uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v p=%v, (%v:)", tls, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + var h0, h1, old, v1 int32 + var n uintptr + _, _, _, _, _ = h0, h1, n, old, v1 + n = **(**uintptr)(__ccgo_up(p)) + h0 = _height(tls, **(**uintptr)(__ccgo_up(n + 8))) + h1 = _height(tls, **(**uintptr)(__ccgo_up(n + 8 + 1*8))) + if Uint32FromInt32(h0-h1)+uint32(1) < uint32(3) { + old = (*Tnode1)(unsafe.Pointer(n)).Fh + if h0 < h1 { + v1 = h1 + int32(1) + } else { + v1 = h0 + int32(1) + } + (*Tnode1)(unsafe.Pointer(n)).Fh = v1 + return (*Tnode1)(unsafe.Pointer(n)).Fh - old + } + return _rot(tls, p, n, BoolInt32(h0 < h1)) +} + +type t__ccgo_fp__Xtsearch_2 = func(*TLS, uintptr, uintptr) int32 + +func Xtsearch(tls *TLS, key uintptr, rootp uintptr, __ccgo_fp_cmp uintptr) (r1 uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v rootp=%v __ccgo_fp_cmp=%v, (%v:)", tls, key, rootp, __ccgo_fp_cmp, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var a [96]uintptr + var c, i, v1 int32 + var n, r, v4 uintptr + var v7 bool + _, _, _, _, _, _, _, _ = a, c, i, n, r, v1, v4, v7 + if !(rootp != 0) { + return uintptr(0) + } + n = **(**uintptr)(__ccgo_up(rootp)) + i = 0 + v1 = i + i = i + 1 + a[v1] = rootp + for { + if !(n != 0) { + break + } + c = (*(*func(*TLS, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cmp})))(tls, key, (*Tnode1)(unsafe.Pointer(n)).Fkey) + if !(c != 0) { + return n + } + v1 = i + i = i + 1 + a[v1] = n + 8 + BoolUintptr(c > 0)*8 + n = **(**uintptr)(__ccgo_up(n + 8 + BoolUintptr(c > 0)*8)) + goto _2 + _2: + } + r = Xmalloc(tls, uint64(32)) + if !(r != 0) { + return uintptr(0) + } + (*Tnode1)(unsafe.Pointer(r)).Fkey = key + v4 = UintptrFromInt32(0) + **(**uintptr)(__ccgo_up(r + 8 + 1*8)) = v4 + **(**uintptr)(__ccgo_up(r + 8)) = v4 + (*Tnode1)(unsafe.Pointer(r)).Fh = int32(1) + /* insert new node, rebalance ancestors. */ + i = i - 1 + v1 = i + **(**uintptr)(__ccgo_up(a[v1])) = r + for { + if v7 = i != 0; v7 { + i = i - 1 + v1 = i + } + if !(v7 && X__tsearch_balance(tls, a[v1]) != 0) { + break + } + } + return r +} + +func _walk(tls *TLS, r uintptr, __ccgo_fp_action uintptr, d int32) { + if !(r != 0) { + return + } + if (*Tnode1)(unsafe.Pointer(r)).Fh == int32(1) { + (*(*func(*TLS, uintptr, TVISIT, int32))(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_action})))(tls, r, int32(_leaf), d) + } else { + (*(*func(*TLS, uintptr, TVISIT, int32))(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_action})))(tls, r, int32(_preorder), d) + _walk(tls, **(**uintptr)(__ccgo_up(r + 8)), __ccgo_fp_action, d+int32(1)) + (*(*func(*TLS, uintptr, TVISIT, int32))(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_action})))(tls, r, int32(_postorder), d) + _walk(tls, **(**uintptr)(__ccgo_up(r + 8 + 1*8)), __ccgo_fp_action, d+int32(1)) + (*(*func(*TLS, uintptr, TVISIT, int32))(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_action})))(tls, r, int32(_endorder), d) + } +} + +type t__ccgo_fp__Xtwalk_1 = func(*TLS, uintptr, int32, int32) + +func Xtwalk(tls *TLS, root uintptr, __ccgo_fp_action uintptr) { + if __ccgo_strace { + trc("tls=%v root=%v __ccgo_fp_action=%v, (%v:)", tls, root, __ccgo_fp_action, origin(2)) + } + _walk(tls, root, __ccgo_fp_action, 0) +} + +func Xpoll(tls *TLS, fds uintptr, n Tnfds_t, timeout int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fds=%v n=%v timeout=%v, (%v:)", tls, fds, n, timeout, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_poll), int64(fds), Int64FromUint64(n), int64(timeout), 0, 0, 0)))) +} + +func Xppoll(tls *TLS, fds uintptr, n Tnfds_t, to uintptr, mask uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fds=%v n=%v to=%v mask=%v, (%v:)", tls, fds, n, to, mask, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ns, v1, v2 int64 + var s Ttime_t + var v3 uintptr + _, _, _, _, _ = ns, s, v1, v2, v3 + if to != 0 { + v1 = (*Ttimespec)(unsafe.Pointer(to)).Ftv_sec + } else { + v1 = 0 + } + s = v1 + if to != 0 { + v2 = (*Ttimespec)(unsafe.Pointer(to)).Ftv_nsec + } else { + v2 = 0 + } + ns = v2 + if to != 0 { + *(*[2]int64)(unsafe.Pointer(bp)) = [2]int64{ + 0: s, + 1: ns, + } + v3 = bp + } else { + v3 = uintptr(0) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_ppoll), int64(fds), Int64FromUint64(n), int64(v3), int64(mask), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8)), 0)))) +} + +func Xpselect(tls *TLS, n int32, rfds uintptr, wfds uintptr, efds uintptr, ts uintptr, mask uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v n=%v rfds=%v wfds=%v efds=%v ts=%v mask=%v, (%v:)", tls, n, rfds, wfds, efds, ts, mask, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var ns, v1, v2 int64 + var s Ttime_t + var v3 uintptr + var _ /* data at bp+16 */ [2]Tsyscall_arg_t + _, _, _, _, _ = ns, s, v1, v2, v3 + **(**[2]Tsyscall_arg_t)(__ccgo_up(bp + 16)) = [2]Tsyscall_arg_t{ + 0: Int64FromUint64(uint64(mask)), + 1: int64(Int32FromInt32(_NSIG) / Int32FromInt32(8)), + } + if ts != 0 { + v1 = (*Ttimespec)(unsafe.Pointer(ts)).Ftv_sec + } else { + v1 = 0 + } + s = v1 + if ts != 0 { + v2 = (*Ttimespec)(unsafe.Pointer(ts)).Ftv_nsec + } else { + v2 = 0 + } + ns = v2 + if ts != 0 { + *(*[2]int64)(unsafe.Pointer(bp)) = [2]int64{ + 0: s, + 1: ns, + } + v3 = bp + } else { + v3 = uintptr(0) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_pselect6), int64(n), int64(rfds), int64(wfds), int64(efds), int64(v3), int64(bp+16))))) +} + +func Xselect(tls *TLS, n int32, rfds uintptr, wfds uintptr, efds uintptr, tv uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v n=%v rfds=%v wfds=%v efds=%v tv=%v, (%v:)", tls, n, rfds, wfds, efds, tv, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var max_time, s Ttime_t + var ns, v1, v2 int64 + var us Tsuseconds_t + var v3 uintptr + _, _, _, _, _, _, _ = max_time, ns, s, us, v1, v2, v3 + if tv != 0 { + v1 = (*Ttimeval)(unsafe.Pointer(tv)).Ftv_sec + } else { + v1 = 0 + } + s = v1 + if tv != 0 { + v2 = (*Ttimeval)(unsafe.Pointer(tv)).Ftv_usec + } else { + v2 = 0 + } + us = v2 + max_time = Int64FromUint64(Uint64FromUint64(1)<<(Uint64FromInt32(8)*Uint64FromInt64(8)-Uint64FromInt32(1)) - Uint64FromInt32(1)) + if s < 0 || us < 0 { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL)))) + } + if us/int64(1000000) > max_time-s { + s = max_time + us = int64(999999) + ns = int64(999999999) + } else { + s = s + us/int64(1000000) + us = us % int64(1000000) + ns = us * int64(1000) + } + if tv != 0 { + *(*[2]int64)(unsafe.Pointer(bp)) = [2]int64{ + 0: s, + 1: us, + } + v3 = bp + } else { + v3 = uintptr(0) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS__newselect), int64(n), int64(rfds), int64(wfds), int64(efds), int64(v3), 0)))) +} + +var _all_mask = [1]uint64{ + 0: -Uint64FromUint64(1), +} + +var _app_mask = [1]uint64{ + 0: uint64(0xfffffffc7fffffff), +} + +func X__block_all_sigs(tls *TLS, set uintptr) { + if __ccgo_strace { + trc("tls=%v set=%v, (%v:)", tls, set, origin(2)) + } + X__syscall4(tls, int64(SYS_rt_sigprocmask), int64(Int32FromInt32(SIG_BLOCK)), int64(uintptr(unsafe.Pointer(&_all_mask))), int64(set), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8))) +} + +func X__block_app_sigs(tls *TLS, set uintptr) { + if __ccgo_strace { + trc("tls=%v set=%v, (%v:)", tls, set, origin(2)) + } + X__syscall4(tls, int64(SYS_rt_sigprocmask), int64(Int32FromInt32(SIG_BLOCK)), int64(uintptr(unsafe.Pointer(&_app_mask))), int64(set), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8))) +} + +func X__restore_sigs(tls *TLS, set uintptr) { + if __ccgo_strace { + trc("tls=%v set=%v, (%v:)", tls, set, origin(2)) + } + X__syscall4(tls, int64(SYS_rt_sigprocmask), int64(Int32FromInt32(SIG_SETMASK)), int64(set), int64(Int32FromInt32(0)), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8))) +} + +func Xgetitimer(tls *TLS, which int32, old uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v which=%v old=%v, (%v:)", tls, which, old, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var r int32 + var _ /* old32 at bp+0 */ [4]int64 + _ = r + if uint64(8) > uint64(8) { + r = int32(X__syscall2(tls, int64(SYS_getitimer), int64(which), int64(bp))) + if !(r != 0) { + (*Titimerval)(unsafe.Pointer(old)).Fit_interval.Ftv_sec = (**(**[4]int64)(__ccgo_up(bp)))[0] + (*Titimerval)(unsafe.Pointer(old)).Fit_interval.Ftv_usec = (**(**[4]int64)(__ccgo_up(bp)))[int32(1)] + (*Titimerval)(unsafe.Pointer(old)).Fit_value.Ftv_sec = (**(**[4]int64)(__ccgo_up(bp)))[int32(2)] + (*Titimerval)(unsafe.Pointer(old)).Fit_value.Ftv_usec = (**(**[4]int64)(__ccgo_up(bp)))[int32(3)] + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_getitimer), int64(which), int64(old))))) +} + +func Xkill(tls *TLS, pid Tpid_t, sig int32) (r int32) { + if __ccgo_strace { + trc("tls=%v pid=%v sig=%v, (%v:)", tls, pid, sig, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_kill), int64(pid), int64(sig))))) +} + +func Xkillpg(tls *TLS, pgid Tpid_t, sig int32) (r int32) { + if __ccgo_strace { + trc("tls=%v pgid=%v sig=%v, (%v:)", tls, pgid, sig, origin(2)) + defer func() { trc("-> %v", r) }() + } + if pgid < 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + return Xkill(tls, -pgid, sig) +} + +func Xpsiginfo(tls *TLS, si uintptr, msg uintptr) { + if __ccgo_strace { + trc("tls=%v si=%v msg=%v, (%v:)", tls, si, msg, origin(2)) + } + Xpsignal(tls, (*Tsiginfo_t)(unsafe.Pointer(si)).Fsi_signo, msg) +} + +func Xpsignal(tls *TLS, sig int32, msg uintptr) { + if __ccgo_strace { + trc("tls=%v sig=%v msg=%v, (%v:)", tls, sig, msg, origin(2)) + } + bp := tls.Alloc(32) + defer tls.Free(32) + var __need_unlock, old_errno, old_mode, v1 int32 + var f, old_locale, s, v2, v3 uintptr + _, _, _, _, _, _, _, _, _ = __need_unlock, f, old_errno, old_locale, old_mode, s, v1, v2, v3 + f = uintptr(unsafe.Pointer(&X__stderr_FILE)) + s = Xstrsignal(tls, sig) + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + /* Save stderr's orientation and encoding rule, since psignal is not + * permitted to change them. Save errno and restore it if there is no + * error since fprintf might change it even on success but psignal is + * not permitted to do so. */ + old_locale = (*TFILE)(unsafe.Pointer(f)).Flocale + old_mode = (*TFILE)(unsafe.Pointer(f)).Fmode + old_errno = **(**int32)(__ccgo_up(X__errno_location(tls))) + if msg != 0 { + v2 = msg + } else { + v2 = __ccgo_ts + } + if msg != 0 { + v3 = __ccgo_ts + 386 + } else { + v3 = __ccgo_ts + } + if Xfprintf(tls, f, __ccgo_ts+1114, VaList(bp+8, v2, v3, s)) >= 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = old_errno + } + (*TFILE)(unsafe.Pointer(f)).Fmode = old_mode + (*TFILE)(unsafe.Pointer(f)).Flocale = old_locale + if __need_unlock != 0 { + ___unlockfile(tls, f) + } +} + +func Xraise(tls *TLS, sig int32) (r int32) { + if __ccgo_strace { + trc("tls=%v sig=%v, (%v:)", tls, sig, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(128) + defer tls.Free(128) + var ret int32 + var _ /* set at bp+0 */ Tsigset_t + _ = ret + X__block_app_sigs(tls, bp) + ret = int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_tkill), int64((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Ftid), int64(sig))))) + X__restore_sigs(tls, bp) + return ret +} + +/* These functions will not work, but suffice for targets where the + * kernel sigaction structure does not actually use sa_restorer. */ +func X__restore(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } +} + +func X__restore_rt(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } +} + +func Xsetitimer(tls *TLS, which int32, new1 uintptr, old uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v which=%v new1=%v old=%v, (%v:)", tls, which, new1, old, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var is, vs Ttime_t + var ius, vus int64 + var r int32 + var _ /* old32 at bp+32 */ [4]int64 + _, _, _, _, _ = is, ius, r, vs, vus + if uint64(8) > uint64(8) { + is = (*Titimerval)(unsafe.Pointer(new1)).Fit_interval.Ftv_sec + vs = (*Titimerval)(unsafe.Pointer(new1)).Fit_value.Ftv_sec + ius = (*Titimerval)(unsafe.Pointer(new1)).Fit_interval.Ftv_usec + vus = (*Titimerval)(unsafe.Pointer(new1)).Fit_value.Ftv_usec + if !!((Uint64FromInt64(is)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) || !!((Uint64FromInt64(vs)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EOPNOTSUPP)))) + } + *(*[4]int64)(unsafe.Pointer(bp)) = [4]int64{ + 0: is, + 1: ius, + 2: vs, + 3: vus, + } + r = int32(X__syscall3(tls, int64(SYS_setitimer), int64(which), int64(bp), int64(bp+32))) + if !(r != 0) && old != 0 { + (*Titimerval)(unsafe.Pointer(old)).Fit_interval.Ftv_sec = (**(**[4]int64)(__ccgo_up(bp + 32)))[0] + (*Titimerval)(unsafe.Pointer(old)).Fit_interval.Ftv_usec = (**(**[4]int64)(__ccgo_up(bp + 32)))[int32(1)] + (*Titimerval)(unsafe.Pointer(old)).Fit_value.Ftv_sec = (**(**[4]int64)(__ccgo_up(bp + 32)))[int32(2)] + (*Titimerval)(unsafe.Pointer(old)).Fit_value.Ftv_usec = (**(**[4]int64)(__ccgo_up(bp + 32)))[int32(3)] + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_setitimer), int64(which), int64(new1), int64(old))))) +} + +type Tk_sigaction = struct { + Fhandler uintptr + Fflags uint64 + Frestorer uintptr + Fmask [2]uint32 +} + +var _unmask_done int32 +var _handler_set [1]uint64 + +func X__get_handler_set(tls *TLS, set uintptr) { + if __ccgo_strace { + trc("tls=%v set=%v, (%v:)", tls, set, origin(2)) + } + Xmemcpy(tls, set, uintptr(unsafe.Pointer(&_handler_set)), uint64(8)) +} + +func X__libc_sigaction(tls *TLS, sig int32, sa uintptr, old1 uintptr) (r2 int32) { + if __ccgo_strace { + trc("tls=%v sig=%v sa=%v old1=%v, (%v:)", tls, sig, sa, old1, origin(2)) + defer func() { trc("-> %v", r2) }() + } + bp := tls.Alloc(80) + defer tls.Free(80) + var old, r, r1, v, v15, v19, v24, v28, v5, v9 int32 + var v1, v12, v13, v14, v18, v22, v23, v27, v3, v4, v8 uintptr + var v2 int64 + var _ /* ksa at bp+16 */ Tk_sigaction + var _ /* ksa_old at bp+48 */ Tk_sigaction + var _ /* u at bp+8 */ struct { + Fr [0][2]Tuint32_t + Fv Tuint64_t + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = old, r, r1, v, v1, v12, v13, v14, v15, v18, v19, v2, v22, v23, v24, v27, v28, v3, v4, v5, v8, v9 + if sa != 0 { + if uint64(*(*uintptr)(unsafe.Pointer(sa))) > uint64(1) { + v1 = uintptr(unsafe.Pointer(&_handler_set)) + uintptr(Uint64FromInt32(sig-Int32FromInt32(1))/(Uint64FromInt32(8)*Uint64FromInt64(8)))*8 + v2 = Int64FromUint64(uint64(1) << (Uint64FromInt32(sig-Int32FromInt32(1)) % (Uint64FromInt32(8) * Uint64FromInt64(8)))) + if Uint64FromInt64(8) == Uint64FromInt64(4) { + v3 = v1 + // __asm__ __volatile__ ("sync" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 40, __ccgo_ts+1529) + for { + v8 = v3 + // __asm__ __volatile__ ("lwarx %0, 0, %2" : "=r"(v) : "m"(*p), "r"(p)); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 5, __ccgo_ts+1529) + v9 = v + goto _10 + _10: + old = v9 + goto _7 + _7: + ; + v4 = v3 + // __asm__ __volatile__ ( + // + // "stwcx. %2, 0, %3 ; mfcr %0" + // : "=r"(r), "=m"(*p) : "r"(v), "r"(p) : "memory", "cc"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 13, __ccgo_ts+1529) + v5 = r & int32(0x20000000) + goto _6 + _6: + ; + if !!(v5 != 0) { + break + } + } + // __asm__ __volatile__ ("isync" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 48, __ccgo_ts+1529) + _ = old + goto _11 + _11: + } else { + v12 = v1 + *(*struct { + Fr [0][2]Tuint32_t + Fv Tuint64_t + })(unsafe.Pointer(bp + 8)) = struct { + Fr [0][2]Tuint32_t + Fv Tuint64_t + }{} + *(*uint64)(unsafe.Pointer(bp + 8)) = Uint64FromInt64(v2) + if **(**Tuint32_t)(__ccgo_up(bp + 8)) != 0 { + v13 = v12 + // __asm__ __volatile__ ("sync" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 40, __ccgo_ts+1529) + for { + v18 = v13 + // __asm__ __volatile__ ("lwarx %0, 0, %2" : "=r"(v) : "m"(*p), "r"(p)); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 5, __ccgo_ts+1529) + v19 = v + goto _20 + _20: + old = v19 + goto _17 + _17: + ; + v14 = v13 + // __asm__ __volatile__ ( + // + // "stwcx. %2, 0, %3 ; mfcr %0" + // : "=r"(r), "=m"(*p) : "r"(v), "r"(p) : "memory", "cc"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 13, __ccgo_ts+1529) + v15 = r & int32(0x20000000) + goto _16 + _16: + ; + if !!(v15 != 0) { + break + } + } + // __asm__ __volatile__ ("isync" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 48, __ccgo_ts+1529) + _ = old + goto _21 + _21: + } + if **(**Tuint32_t)(__ccgo_up(bp + 8 + 1*4)) != 0 { + v22 = v12 + uintptr(1)*4 + // __asm__ __volatile__ ("sync" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 40, __ccgo_ts+1529) + for { + v27 = v22 + // __asm__ __volatile__ ("lwarx %0, 0, %2" : "=r"(v) : "m"(*p), "r"(p)); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 5, __ccgo_ts+1529) + v28 = v + goto _29 + _29: + old = v28 + goto _26 + _26: + ; + v23 = v22 + // __asm__ __volatile__ ( + // + // "stwcx. %2, 0, %3 ; mfcr %0" + // : "=r"(r), "=m"(*p) : "r"(v), "r"(p) : "memory", "cc"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 13, __ccgo_ts+1529) + v24 = r & int32(0x20000000) + goto _25 + _25: + ; + if !!(v24 != 0) { + break + } + } + // __asm__ __volatile__ ("isync" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 48, __ccgo_ts+1529) + _ = old + goto _30 + _30: + } + } + /* If pthread_create has not yet been called, + * implementation-internal signals might not + * yet have been unblocked. They must be + * unblocked before any signal handler is + * installed, so that an application cannot + * receive an illegal sigset_t (with them + * blocked) as part of the ucontext_t passed + * to the signal handler. */ + if !(X__libc.Fthreaded != 0) && !(_unmask_done != 0) { + *(*[1]uint64)(unsafe.Pointer(bp)) = [1]uint64{ + 0: Uint64FromUint64(3) << (Int32FromInt32(32) * BoolInt32(Uint64FromInt64(8) > Uint64FromInt32(4))), + } + X__syscall4(tls, int64(SYS_rt_sigprocmask), int64(Int32FromInt32(SIG_UNBLOCK)), int64(bp), int64(Int32FromInt32(0)), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8))) + _unmask_done = int32(1) + } + if !(Uint32FromInt32((*Tsigaction)(unsafe.Pointer(sa)).Fsa_flags)&Uint32FromUint32(0x10000000) != 0) { + // __asm__ __volatile__ ("sync" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 40, __ccgo_ts+1529) + AtomicStorePInt32(uintptr(unsafe.Pointer(&X__eintr_valid_flag)), int32(1)) + // __asm__ __volatile__ ("sync" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 40, __ccgo_ts+1529) + } + } + (**(**Tk_sigaction)(__ccgo_up(bp + 16))).Fhandler = *(*uintptr)(unsafe.Pointer(sa)) + (**(**Tk_sigaction)(__ccgo_up(bp + 16))).Fflags = Uint64FromInt32((*Tsigaction)(unsafe.Pointer(sa)).Fsa_flags) + (**(**Tk_sigaction)(__ccgo_up(bp + 16))).Fflags |= uint64(0x04000000) + if Uint32FromInt32((*Tsigaction)(unsafe.Pointer(sa)).Fsa_flags)&uint32(4) != 0 { + v1 = __ccgo_fp(X__restore_rt) + } else { + v1 = __ccgo_fp(X__restore) + } + (**(**Tk_sigaction)(__ccgo_up(bp + 16))).Frestorer = v1 + Xmemcpy(tls, bp+16+24, sa+8, Uint64FromInt32(Int32FromInt32(_NSIG)/Int32FromInt32(8))) + } + if sa != 0 { + v1 = bp + 16 + } else { + v1 = uintptr(0) + } + if old1 != 0 { + v3 = bp + 48 + } else { + v3 = uintptr(0) + } + r1 = int32(X__syscall4(tls, int64(SYS_rt_sigaction), int64(sig), int64(v1), int64(v3), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8)))) + if old1 != 0 && !(r1 != 0) { + *(*uintptr)(unsafe.Pointer(old1)) = (**(**Tk_sigaction)(__ccgo_up(bp + 48))).Fhandler + (*Tsigaction)(unsafe.Pointer(old1)).Fsa_flags = Int32FromUint64((**(**Tk_sigaction)(__ccgo_up(bp + 48))).Fflags) + Xmemcpy(tls, old1+8, bp+48+24, Uint64FromInt32(Int32FromInt32(_NSIG)/Int32FromInt32(8))) + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r1))) +} + +func X__sigaction(tls *TLS, sig int32, sa uintptr, old uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v sig=%v sa=%v old=%v, (%v:)", tls, sig, sa, old, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var r int32 + var _ /* set at bp+0 */ [1]uint64 + _ = r + if Uint32FromInt32(sig)-uint32(32) < uint32(3) || Uint32FromInt32(sig)-uint32(1) >= Uint32FromInt32(Int32FromInt32(_NSIG)-Int32FromInt32(1)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + /* Doing anything with the disposition of SIGABRT requires a lock, + * so that it cannot be changed while abort is terminating the + * process and so any change made by abort can't be observed. */ + if sig == int32(SIGABRT) { + X__block_all_sigs(tls, bp) + ___lock(tls, uintptr(unsafe.Pointer(&X__abort_lock))) + } + r = X__libc_sigaction(tls, sig, sa, old) + if sig == int32(SIGABRT) { + ___unlock(tls, uintptr(unsafe.Pointer(&X__abort_lock))) + X__restore_sigs(tls, bp) + } + return r +} + +func Xsigaction(tls *TLS, sig int32, sa uintptr, old uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v sig=%v sa=%v old=%v, (%v:)", tls, sig, sa, old, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__sigaction(tls, sig, sa, old) +} + +func Xsigaddset(tls *TLS, set uintptr, sig int32) (r int32) { + if __ccgo_strace { + trc("tls=%v set=%v sig=%v, (%v:)", tls, set, sig, origin(2)) + defer func() { trc("-> %v", r) }() + } + var s uint32 + _ = s + s = Uint32FromInt32(sig - int32(1)) + if s >= Uint32FromInt32(Int32FromInt32(_NSIG)-Int32FromInt32(1)) || Uint32FromInt32(sig)-uint32(32) < uint32(3) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + **(**uint64)(__ccgo_up(set + uintptr(uint64(s/uint32(8))/uint64(8))*8)) |= uint64(1) << (uint64(s) & (Uint64FromInt32(8)*Uint64FromInt64(8) - Uint64FromInt32(1))) + return 0 +} + +func Xsigaltstack(tls *TLS, ss uintptr, old uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v ss=%v old=%v, (%v:)", tls, ss, old, origin(2)) + defer func() { trc("-> %v", r) }() + } + if ss != 0 { + if !((*Tstack_t)(unsafe.Pointer(ss)).Fss_flags&Int32FromInt32(SS_DISABLE) != 0) && (*Tstack_t)(unsafe.Pointer(ss)).Fss_size < uint64(MINSIGSTKSZ) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOMEM) + return -int32(1) + } + if (*Tstack_t)(unsafe.Pointer(ss)).Fss_flags&int32(SS_ONSTACK) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_sigaltstack), int64(ss), int64(old))))) +} + +const SST_SIZE = 8 + +func Xsigandset(tls *TLS, dest uintptr, left uintptr, right uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v dest=%v left=%v right=%v, (%v:)", tls, dest, left, right, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var d, l, r uintptr + var i uint64 + _, _, _, _ = d, i, l, r + i = uint64(0) + d = dest + l = left + r = right + for { + if !(i < Uint64FromInt32(Int32FromInt32(_NSIG)/Int32FromInt32(8))/Uint64FromInt64(8)) { + break + } + **(**uint64)(__ccgo_up(d + uintptr(i)*8)) = **(**uint64)(__ccgo_up(l + uintptr(i)*8)) & **(**uint64)(__ccgo_up(r + uintptr(i)*8)) + goto _1 + _1: + ; + i = i + 1 + } + return 0 +} + +func Xsigdelset(tls *TLS, set uintptr, sig int32) (r int32) { + if __ccgo_strace { + trc("tls=%v set=%v sig=%v, (%v:)", tls, set, sig, origin(2)) + defer func() { trc("-> %v", r) }() + } + var s uint32 + _ = s + s = Uint32FromInt32(sig - int32(1)) + if s >= Uint32FromInt32(Int32FromInt32(_NSIG)-Int32FromInt32(1)) || Uint32FromInt32(sig)-uint32(32) < uint32(3) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + **(**uint64)(__ccgo_up(set + uintptr(uint64(s/uint32(8))/uint64(8))*8)) &= ^(Uint64FromUint64(1) << (uint64(s) & (Uint64FromInt32(8)*Uint64FromInt64(8) - Uint64FromInt32(1)))) + return 0 +} + +func Xsigemptyset(tls *TLS, set uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v set=%v, (%v:)", tls, set, origin(2)) + defer func() { trc("-> %v", r) }() + } + **(**uint64)(__ccgo_up(set)) = uint64(0) + if Bool(uint64(8) == uint64(4)) || Bool(int32(_NSIG) > int32(65)) { + **(**uint64)(__ccgo_up(set + 1*8)) = uint64(0) + } + if Bool(uint64(8) == uint64(4)) && Bool(int32(_NSIG) > int32(65)) { + **(**uint64)(__ccgo_up(set + 2*8)) = uint64(0) + **(**uint64)(__ccgo_up(set + 3*8)) = uint64(0) + } + return 0 +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xsigfillset(tls *TLS, set uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v set=%v, (%v:)", tls, set, origin(2)) + defer func() { trc("-> %v", r) }() + } + **(**uint64)(__ccgo_up(set)) = uint64(0xfffffffc7fffffff) + if int32(_NSIG) > int32(65) { + **(**uint64)(__ccgo_up(set + 1*8)) = uint64(0xffffffffffffffff) + } + return 0 +} + +func Xsigisemptyset(tls *TLS, set uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v set=%v, (%v:)", tls, set, origin(2)) + defer func() { trc("-> %v", r) }() + } + var i Tsize_t + _ = i + i = uint64(0) + for { + if !(i < Uint64FromInt32(Int32FromInt32(_NSIG)/Int32FromInt32(8))/Uint64FromInt64(8)) { + break + } + if **(**uint64)(__ccgo_up(set + uintptr(i)*8)) != 0 { + return 0 + } + goto _1 + _1: + ; + i = i + 1 + } + return int32(1) +} + +func Xsigismember(tls *TLS, set uintptr, sig int32) (r int32) { + if __ccgo_strace { + trc("tls=%v set=%v sig=%v, (%v:)", tls, set, sig, origin(2)) + defer func() { trc("-> %v", r) }() + } + var s uint32 + _ = s + s = Uint32FromInt32(sig - int32(1)) + if s >= Uint32FromInt32(Int32FromInt32(_NSIG)-Int32FromInt32(1)) { + return 0 + } + return BoolInt32(!!(**(**uint64)(__ccgo_up(set + uintptr(uint64(s/uint32(8))/uint64(8))*8))&(Uint64FromUint64(1)<<(uint64(s)&(Uint64FromInt32(8)*Uint64FromInt64(8)-Uint64FromInt32(1)))) != 0)) +} + +func Xsigorset(tls *TLS, dest uintptr, left uintptr, right uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v dest=%v left=%v right=%v, (%v:)", tls, dest, left, right, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var d, l, r uintptr + var i uint64 + _, _, _, _ = d, i, l, r + i = uint64(0) + d = dest + l = left + r = right + for { + if !(i < Uint64FromInt32(Int32FromInt32(_NSIG)/Int32FromInt32(8))/Uint64FromInt64(8)) { + break + } + **(**uint64)(__ccgo_up(d + uintptr(i)*8)) = **(**uint64)(__ccgo_up(l + uintptr(i)*8)) | **(**uint64)(__ccgo_up(r + uintptr(i)*8)) + goto _1 + _1: + ; + i = i + 1 + } + return 0 +} + +func Xsigpending(tls *TLS, set uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v set=%v, (%v:)", tls, set, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_rt_sigpending), int64(set), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8)))))) +} + +func Xsigprocmask(tls *TLS, how int32, set uintptr, old uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v how=%v set=%v old=%v, (%v:)", tls, how, set, old, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + r = _pthread_sigmask(tls, how, set, old) + if !(r != 0) { + return r + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = r + return -int32(1) +} + +func Xsigqueue(tls *TLS, pid Tpid_t, sig int32, value Tsigval) (r1 int32) { + if __ccgo_strace { + trc("tls=%v pid=%v sig=%v value=%v, (%v:)", tls, pid, sig, value, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(256) + defer tls.Free(256) + var r int32 + var _ /* set at bp+128 */ Tsigset_t + var _ /* si at bp+0 */ Tsiginfo_t + _ = r + Xmemset(tls, bp, 0, uint64(128)) + (**(**Tsiginfo_t)(__ccgo_up(bp))).Fsi_signo = sig + (**(**Tsiginfo_t)(__ccgo_up(bp))).Fsi_code = -int32(1) + *(*Tsigval)(unsafe.Pointer(bp + 16 + 8)) = value + *(*Tuid_t)(unsafe.Pointer(bp + 16 + 4)) = Xgetuid(tls) + X__block_app_sigs(tls, bp+128) + *(*Tpid_t)(unsafe.Pointer(bp + 16)) = Xgetpid(tls) + r = int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_rt_sigqueueinfo), int64(pid), int64(sig), int64(bp))))) + X__restore_sigs(tls, bp+128) + return r +} + +func X__libc_current_sigrtmax(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Int32FromInt32(_NSIG) - Int32FromInt32(1) +} + +func X__libc_current_sigrtmin(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(35) +} + +type t__jmp_buf = [32][2]uint64 + +type Tjmp_buf = [1]t__jmp_buf_tag + +type t__jmp_buf_tag = struct { + F__ccgo_align [0]uint64 + F__jb t__jmp_buf + F__fl uint64 + F__ss [16]uint64 + F__ccgo_pad3 [8]byte +} + +type Tsigjmp_buf = [1]t__jmp_buf_tag + +func X__sigsetjmp_tail(tls *TLS, jb uintptr, ret int32) (r int32) { + if __ccgo_strace { + trc("tls=%v jb=%v ret=%v, (%v:)", tls, jb, ret, origin(2)) + defer func() { trc("-> %v", r) }() + } + var p, v1, v2 uintptr + _, _, _ = p, v1, v2 + p = jb + 520 + if ret != 0 { + v1 = p + } else { + v1 = uintptr(0) + } + if ret != 0 { + v2 = uintptr(0) + } else { + v2 = p + } + X__syscall4(tls, int64(SYS_rt_sigprocmask), int64(Int32FromInt32(SIG_SETMASK)), int64(v1), int64(v2), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8))) + return ret +} + +func Xsigsuspend(tls *TLS, mask uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v mask=%v, (%v:)", tls, mask, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_rt_sigsuspend), int64(mask), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8)), 0, 0, 0, 0)))) +} + +func _do_sigtimedwait(tls *TLS, mask uintptr, si uintptr, ts uintptr) (r int32) { + return int32(___syscall_cp(tls, int64(SYS_rt_sigtimedwait), int64(mask), int64(si), int64(ts), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8)), 0, 0)) +} + +func Xsigtimedwait(tls *TLS, mask uintptr, si uintptr, timeout uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v mask=%v si=%v timeout=%v, (%v:)", tls, mask, si, timeout, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret int32 + _ = ret + for cond := true; cond; cond = ret == -int32(EINTR) { + ret = _do_sigtimedwait(tls, mask, si, timeout) + } + return int32(X__syscall_ret(tls, Uint64FromInt32(ret))) +} + +func Xsigwait(tls *TLS, mask uintptr, sig uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v mask=%v sig=%v, (%v:)", tls, mask, sig, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(128) + defer tls.Free(128) + var _ /* si at bp+0 */ Tsiginfo_t + if Xsigtimedwait(tls, mask, bp, uintptr(0)) < 0 { + return -int32(1) + } + **(**int32)(__ccgo_up(sig)) = (**(**Tsiginfo_t)(__ccgo_up(bp))).Fsi_signo + return 0 +} + +func Xsigwaitinfo(tls *TLS, mask uintptr, si uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v mask=%v si=%v, (%v:)", tls, mask, si, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xsigtimedwait(tls, mask, si, uintptr(0)) +} + +func X__fxstat(tls *TLS, ver int32, fd int32, buf uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v ver=%v fd=%v buf=%v, (%v:)", tls, ver, fd, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfstat(tls, fd, buf) +} + +func X__fxstatat(tls *TLS, ver int32, fd int32, path uintptr, buf uintptr, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v ver=%v fd=%v path=%v buf=%v flag=%v, (%v:)", tls, ver, fd, path, buf, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfstatat(tls, fd, path, buf, flag) +} + +func X__lxstat(tls *TLS, ver int32, path uintptr, buf uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v ver=%v path=%v buf=%v, (%v:)", tls, ver, path, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xlstat(tls, path, buf) +} + +func X__xstat(tls *TLS, ver int32, path uintptr, buf uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v ver=%v path=%v buf=%v, (%v:)", tls, ver, path, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstat(tls, path, buf) +} + +func X__xmknod(tls *TLS, ver int32, path uintptr, mode Tmode_t, dev uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v ver=%v path=%v mode=%v dev=%v, (%v:)", tls, ver, path, mode, dev, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xmknod(tls, path, mode, **(**Tdev_t)(__ccgo_up(dev))) +} + +func X__xmknodat(tls *TLS, ver int32, fd int32, path uintptr, mode Tmode_t, dev uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v ver=%v fd=%v path=%v mode=%v dev=%v, (%v:)", tls, ver, fd, path, mode, dev, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xmknodat(tls, fd, path, mode, **(**Tdev_t)(__ccgo_up(dev))) +} + +func Xchmod(tls *TLS, path uintptr, mode Tmode_t) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v mode=%v, (%v:)", tls, path, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_chmod), int64(path), Int64FromUint32(mode))))) +} + +func Xfchmod(tls *TLS, fd int32, mode Tmode_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v mode=%v, (%v:)", tls, fd, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var ret int32 + var _ /* buf at bp+0 */ [27]uint8 + _ = ret + ret = int32(X__syscall2(tls, int64(SYS_fchmod), int64(fd), Int64FromUint32(mode))) + if ret != -int32(EBADF) || X__syscall2(tls, int64(SYS_fcntl), int64(fd), int64(Int32FromInt32(F_GETFD))) < 0 { + return int32(X__syscall_ret(tls, Uint64FromInt32(ret))) + } + X__procfdname(tls, bp, Uint32FromInt32(fd)) + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_chmod), int64(bp), Int64FromUint32(mode))))) +} + +func Xfchmodat(tls *TLS, fd int32, path uintptr, mode Tmode_t, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v path=%v mode=%v flag=%v, (%v:)", tls, fd, path, mode, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(176) + defer tls.Free(176) + var fd2, ret, v1 int32 + var _ /* proc at bp+144 */ [27]uint8 + var _ /* st at bp+0 */ Tstat + _, _, _ = fd2, ret, v1 + if !(flag != 0) { + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_fchmodat), int64(fd), int64(path), Int64FromUint32(mode))))) + } + ret = int32(X__syscall4(tls, int64(SYS_fchmodat2), int64(fd), int64(path), Int64FromUint32(mode), int64(flag))) + if ret != -int32(ENOSYS) { + return int32(X__syscall_ret(tls, Uint64FromInt32(ret))) + } + if flag != int32(AT_SYMLINK_NOFOLLOW) { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL)))) + } + if Xfstatat(tls, fd, path, bp, flag) != 0 { + return -int32(1) + } + if (**(**Tstat)(__ccgo_up(bp))).Fst_mode&uint32(S_IFMT) == uint32(S_IFLNK) { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EOPNOTSUPP)))) + } + v1 = int32(X__syscall3(tls, int64(SYS_openat), int64(fd), int64(path), int64(Int32FromInt32(O_RDONLY)|Int32FromInt32(O_PATH)|Int32FromInt32(O_NOFOLLOW)|Int32FromInt32(O_NOCTTY)|Int32FromInt32(O_CLOEXEC)))) + fd2 = v1 + if v1 < 0 { + if fd2 == -int32(ELOOP) { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EOPNOTSUPP)))) + } + return int32(X__syscall_ret(tls, Uint64FromInt32(fd2))) + } + X__procfdname(tls, bp+144, Uint32FromInt32(fd2)) + ret = Xstat(tls, bp+144, bp) + if !(ret != 0) { + if (**(**Tstat)(__ccgo_up(bp))).Fst_mode&uint32(S_IFMT) == uint32(S_IFLNK) { + ret = int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EOPNOTSUPP)))) + } else { + ret = int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_fchmodat), int64(-Int32FromInt32(100)), int64(bp+144), Int64FromUint32(mode))))) + } + } + X__syscall1(tls, int64(SYS_close), int64(fd2)) + return ret +} + +func X__fstat(tls *TLS, fd int32, st uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v st=%v, (%v:)", tls, fd, st, origin(2)) + defer func() { trc("-> %v", r) }() + } + if fd < 0 { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EBADF)))) + } + return X__fstatat(tls, fd, __ccgo_ts, st, int32(AT_EMPTY_PATH)) +} + +func Xfstat(tls *TLS, fd int32, st uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v st=%v, (%v:)", tls, fd, st, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fstat(tls, fd, st) +} + +type Tstatx1 = struct { + Fstx_mask Tuint32_t + Fstx_blksize Tuint32_t + Fstx_attributes Tuint64_t + Fstx_nlink Tuint32_t + Fstx_uid Tuint32_t + Fstx_gid Tuint32_t + Fstx_mode Tuint16_t + Fpad1 Tuint16_t + Fstx_ino Tuint64_t + Fstx_size Tuint64_t + Fstx_blocks Tuint64_t + Fstx_attributes_mask Tuint64_t + Fstx_atime struct { + Ftv_sec Tint64_t + Ftv_nsec Tuint32_t + Fpad Tint32_t + } + Fstx_btime struct { + Ftv_sec Tint64_t + Ftv_nsec Tuint32_t + Fpad Tint32_t + } + Fstx_ctime struct { + Ftv_sec Tint64_t + Ftv_nsec Tuint32_t + Fpad Tint32_t + } + Fstx_mtime struct { + Ftv_sec Tint64_t + Ftv_nsec Tuint32_t + Fpad Tint32_t + } + Fstx_rdev_major Tuint32_t + Fstx_rdev_minor Tuint32_t + Fstx_dev_major Tuint32_t + Fstx_dev_minor Tuint32_t + Fspare [14]Tuint64_t +} + +func _fstatat_statx(tls *TLS, fd int32, path uintptr, st uintptr, flag int32) (r int32) { + bp := tls.Alloc(256) + defer tls.Free(256) + var ret int32 + var _ /* stx at bp+0 */ Tstatx1 + _ = ret + flag = flag | int32(AT_NO_AUTOMOUNT) + ret = int32(X__syscall5(tls, int64(SYS_statx), int64(fd), int64(path), int64(flag), int64(Int32FromInt32(0x7ff)), int64(bp))) + if ret != 0 { + return ret + } + **(**Tstat)(__ccgo_up(st)) = Tstat{ + Fst_dev: uint64(uint64((**(**Tstatx1)(__ccgo_up(bp))).Fstx_dev_major)&Uint64FromUint64(0xfffff000)<= 0 && !(**(**uint8)(__ccgo_up(path)) != 0) { + ret = int32(X__syscall2(tls, int64(SYS_fstat), int64(fd), int64(bp))) + if ret == -int32(EBADF) && X__syscall2(tls, int64(SYS_fcntl), int64(fd), int64(Int32FromInt32(F_GETFD))) >= 0 { + ret = int32(X__syscall4(tls, int64(SYS_newfstatat), int64(fd), int64(path), int64(bp), int64(flag))) + if ret == -int32(EINVAL) { + X__procfdname(tls, bp+144, Uint32FromInt32(fd)) + ret = int32(X__syscall2(tls, int64(SYS_stat), int64(bp+144), int64(bp))) + } + } + } else { + if (fd == -int32(100) || Int32FromUint8(**(**uint8)(__ccgo_up(path))) == int32('/')) && flag == int32(AT_SYMLINK_NOFOLLOW) { + ret = int32(X__syscall2(tls, int64(SYS_lstat), int64(path), int64(bp))) + } else { + if (fd == -int32(100) || Int32FromUint8(**(**uint8)(__ccgo_up(path))) == int32('/')) && !(flag != 0) { + ret = int32(X__syscall2(tls, int64(SYS_stat), int64(path), int64(bp))) + } else { + ret = int32(X__syscall4(tls, int64(SYS_newfstatat), int64(fd), int64(path), int64(bp), int64(flag))) + } + } + } + if ret != 0 { + return ret + } + **(**Tstat)(__ccgo_up(st)) = Tstat{ + Fst_dev: (**(**Tkstat)(__ccgo_up(bp))).Fst_dev, + Fst_ino: (**(**Tkstat)(__ccgo_up(bp))).Fst_ino, + Fst_nlink: (**(**Tkstat)(__ccgo_up(bp))).Fst_nlink, + Fst_mode: (**(**Tkstat)(__ccgo_up(bp))).Fst_mode, + Fst_uid: (**(**Tkstat)(__ccgo_up(bp))).Fst_uid, + Fst_gid: (**(**Tkstat)(__ccgo_up(bp))).Fst_gid, + Fst_rdev: (**(**Tkstat)(__ccgo_up(bp))).Fst_rdev, + Fst_size: (**(**Tkstat)(__ccgo_up(bp))).Fst_size, + Fst_blksize: (**(**Tkstat)(__ccgo_up(bp))).Fst_blksize, + Fst_blocks: (**(**Tkstat)(__ccgo_up(bp))).Fst_blocks, + Fst_atim: Ttimespec{ + Ftv_sec: (**(**Tkstat)(__ccgo_up(bp))).Fst_atime_sec, + Ftv_nsec: (**(**Tkstat)(__ccgo_up(bp))).Fst_atime_nsec, + }, + Fst_mtim: Ttimespec{ + Ftv_sec: (**(**Tkstat)(__ccgo_up(bp))).Fst_mtime_sec, + Ftv_nsec: (**(**Tkstat)(__ccgo_up(bp))).Fst_mtime_nsec, + }, + Fst_ctim: Ttimespec{ + Ftv_sec: (**(**Tkstat)(__ccgo_up(bp))).Fst_ctime_sec, + Ftv_nsec: (**(**Tkstat)(__ccgo_up(bp))).Fst_ctime_nsec, + }, + } + return 0 +} + +func X__fstatat(tls *TLS, fd int32, path uintptr, st uintptr, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v path=%v st=%v flag=%v, (%v:)", tls, fd, path, st, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret int32 + _ = ret + if uint64(8) < uint64(8) { + ret = _fstatat_statx(tls, fd, path, st, flag) + if ret != -int32(ENOSYS) { + return int32(X__syscall_ret(tls, Uint64FromInt32(ret))) + } + } + ret = _fstatat_kstat(tls, fd, path, st, flag) + return int32(X__syscall_ret(tls, Uint64FromInt32(ret))) +} + +func Xfstatat(tls *TLS, fd int32, path uintptr, st uintptr, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v path=%v st=%v flag=%v, (%v:)", tls, fd, path, st, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fstatat(tls, fd, path, st, flag) +} + +func Xfutimens(tls *TLS, fd int32, times uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v times=%v, (%v:)", tls, fd, times, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xutimensat(tls, fd, uintptr(0), times, 0) +} + +func X__futimesat(tls *TLS, dirfd int32, pathname uintptr, times uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v dirfd=%v pathname=%v times=%v, (%v:)", tls, dirfd, pathname, times, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var i int32 + var v2 uintptr + var _ /* ts at bp+0 */ [2]Ttimespec + _, _ = i, v2 + if times != 0 { + i = 0 + for { + if !(i < int32(2)) { + break + } + if Uint64FromInt64((**(**Ttimeval)(__ccgo_up(times + uintptr(i)*16))).Ftv_usec) >= uint64(1000000) { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL)))) + } + (**(**[2]Ttimespec)(__ccgo_up(bp)))[i].Ftv_sec = (**(**Ttimeval)(__ccgo_up(times + uintptr(i)*16))).Ftv_sec + (**(**[2]Ttimespec)(__ccgo_up(bp)))[i].Ftv_nsec = (**(**Ttimeval)(__ccgo_up(times + uintptr(i)*16))).Ftv_usec * int64(1000) + goto _1 + _1: + ; + i = i + 1 + } + } + if times != 0 { + v2 = bp + } else { + v2 = uintptr(0) + } + return Xutimensat(tls, dirfd, pathname, v2, 0) +} + +func Xfutimesat(tls *TLS, dirfd int32, pathname uintptr, times uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v dirfd=%v pathname=%v times=%v, (%v:)", tls, dirfd, pathname, times, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__futimesat(tls, dirfd, pathname, times) +} + +func Xlchmod(tls *TLS, path uintptr, mode Tmode_t) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v mode=%v, (%v:)", tls, path, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfchmodat(tls, -int32(100), path, mode, int32(AT_SYMLINK_NOFOLLOW)) +} + +func Xlstat(tls *TLS, path uintptr, buf uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v buf=%v, (%v:)", tls, path, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfstatat(tls, -int32(100), path, buf, int32(AT_SYMLINK_NOFOLLOW)) +} + +func Xmkdir(tls *TLS, path uintptr, mode Tmode_t) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v mode=%v, (%v:)", tls, path, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_mkdir), int64(path), Int64FromUint32(mode))))) +} + +func Xmkdirat(tls *TLS, fd int32, path uintptr, mode Tmode_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v path=%v mode=%v, (%v:)", tls, fd, path, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_mkdirat), int64(fd), int64(path), Int64FromUint32(mode))))) +} + +func Xmkfifo(tls *TLS, path uintptr, mode Tmode_t) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v mode=%v, (%v:)", tls, path, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xmknod(tls, path, mode|uint32(S_IFIFO), uint64(0)) +} + +func Xmkfifoat(tls *TLS, fd int32, path uintptr, mode Tmode_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v path=%v mode=%v, (%v:)", tls, fd, path, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xmknodat(tls, fd, path, mode|uint32(S_IFIFO), uint64(0)) +} + +func Xmknod(tls *TLS, path uintptr, mode Tmode_t, dev Tdev_t) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v mode=%v dev=%v, (%v:)", tls, path, mode, dev, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_mknod), int64(path), Int64FromUint32(mode), Int64FromUint64(dev))))) +} + +func Xmknodat(tls *TLS, fd int32, path uintptr, mode Tmode_t, dev Tdev_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v path=%v mode=%v dev=%v, (%v:)", tls, fd, path, mode, dev, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_mknodat), int64(fd), int64(path), Int64FromUint32(mode), Int64FromUint64(dev))))) +} + +func Xstat(tls *TLS, path uintptr, buf uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v buf=%v, (%v:)", tls, path, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfstatat(tls, -int32(100), path, buf, 0) +} + +func ___statfs(tls *TLS, path uintptr, buf uintptr) (r int32) { + **(**Tstatfs)(__ccgo_up(buf)) = Tstatfs{} + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_statfs64), int64(path), Int64FromUint64(Uint64FromInt64(120)), int64(buf))))) +} + +func Xfstatfs(tls *TLS, fd int32, buf uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v, (%v:)", tls, fd, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + **(**Tstatfs)(__ccgo_up(buf)) = Tstatfs{} + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_fstatfs64), int64(fd), Int64FromUint64(Uint64FromInt64(120)), int64(buf))))) +} + +func _fixup(tls *TLS, out uintptr, in uintptr) { + var v1 uint64 + _ = v1 + **(**Tstatvfs)(__ccgo_up(out)) = Tstatvfs{} + (*Tstatvfs)(unsafe.Pointer(out)).Ff_bsize = (*Tstatfs)(unsafe.Pointer(in)).Ff_bsize + if (*Tstatfs)(unsafe.Pointer(in)).Ff_frsize != 0 { + v1 = (*Tstatfs)(unsafe.Pointer(in)).Ff_frsize + } else { + v1 = (*Tstatfs)(unsafe.Pointer(in)).Ff_bsize + } + (*Tstatvfs)(unsafe.Pointer(out)).Ff_frsize = v1 + (*Tstatvfs)(unsafe.Pointer(out)).Ff_blocks = (*Tstatfs)(unsafe.Pointer(in)).Ff_blocks + (*Tstatvfs)(unsafe.Pointer(out)).Ff_bfree = (*Tstatfs)(unsafe.Pointer(in)).Ff_bfree + (*Tstatvfs)(unsafe.Pointer(out)).Ff_bavail = (*Tstatfs)(unsafe.Pointer(in)).Ff_bavail + (*Tstatvfs)(unsafe.Pointer(out)).Ff_files = (*Tstatfs)(unsafe.Pointer(in)).Ff_files + (*Tstatvfs)(unsafe.Pointer(out)).Ff_ffree = (*Tstatfs)(unsafe.Pointer(in)).Ff_ffree + (*Tstatvfs)(unsafe.Pointer(out)).Ff_favail = (*Tstatfs)(unsafe.Pointer(in)).Ff_ffree + (*Tstatvfs)(unsafe.Pointer(out)).Ff_fsid = Uint64FromInt32(**(**int32)(__ccgo_up(in + 56))) + (*Tstatvfs)(unsafe.Pointer(out)).Ff_flag = (*Tstatfs)(unsafe.Pointer(in)).Ff_flags + (*Tstatvfs)(unsafe.Pointer(out)).Ff_namemax = (*Tstatfs)(unsafe.Pointer(in)).Ff_namelen + (*Tstatvfs)(unsafe.Pointer(out)).Ff_type = uint32((*Tstatfs)(unsafe.Pointer(in)).Ff_type) +} + +func Xstatvfs(tls *TLS, path uintptr, buf uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v buf=%v, (%v:)", tls, path, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(128) + defer tls.Free(128) + var _ /* kbuf at bp+0 */ Tstatfs + if ___statfs(tls, path, bp) < 0 { + return -int32(1) + } + _fixup(tls, buf, bp) + return 0 +} + +func Xfstatvfs(tls *TLS, fd int32, buf uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v, (%v:)", tls, fd, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(128) + defer tls.Free(128) + var _ /* kbuf at bp+0 */ Tstatfs + if Xfstatfs(tls, fd, bp) < 0 { + return -int32(1) + } + _fixup(tls, buf, bp) + return 0 +} + +func Xumask(tls *TLS, mode Tmode_t) (r Tmode_t) { + if __ccgo_strace { + trc("tls=%v mode=%v, (%v:)", tls, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Uint32FromInt64(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_umask), Int64FromUint32(mode))))) +} + +func Xutimensat(tls *TLS, fd int32, path uintptr, times uintptr, flags int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v path=%v times=%v flags=%v, (%v:)", tls, fd, path, times, flags, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var i, r int32 + var tv uintptr + var _ /* tmp at bp+0 */ [4]int64 + _, _, _ = i, r, tv + if times != 0 && (**(**Ttimespec)(__ccgo_up(times))).Ftv_nsec == int64(UTIME_NOW) && (**(**Ttimespec)(__ccgo_up(times + 1*16))).Ftv_nsec == int64(UTIME_NOW) { + times = uintptr(0) + } + r = int32(X__syscall4(tls, int64(SYS_utimensat), int64(fd), int64(path), int64(times), int64(flags))) + if r != -int32(ENOSYS) || flags != 0 { + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) + } + tv = uintptr(0) + if times != 0 { + tv = bp + i = 0 + for { + if !(i < int32(2)) { + break + } + if Uint64FromInt64((**(**Ttimespec)(__ccgo_up(times + uintptr(i)*16))).Ftv_nsec) >= uint64(1000000000) { + if (**(**Ttimespec)(__ccgo_up(times + uintptr(i)*16))).Ftv_nsec == int64(UTIME_NOW) || (**(**Ttimespec)(__ccgo_up(times + uintptr(i)*16))).Ftv_nsec == int64(UTIME_OMIT) { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(ENOSYS)))) + } + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL)))) + } + (**(**[4]int64)(__ccgo_up(bp)))[int32(2)*i+0] = (**(**Ttimespec)(__ccgo_up(times + uintptr(i)*16))).Ftv_sec + (**(**[4]int64)(__ccgo_up(bp)))[int32(2)*i+int32(1)] = (**(**Ttimespec)(__ccgo_up(times + uintptr(i)*16))).Ftv_nsec / int64(1000) + goto _1 + _1: + ; + i = i + 1 + } + } + r = int32(X__syscall3(tls, int64(SYS_futimesat), int64(fd), int64(path), int64(tv))) + if r != -int32(ENOSYS) || fd != -int32(100) { + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) + } + r = int32(X__syscall2(tls, int64(SYS_utimes), int64(path), int64(tv))) + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func X__fclose_ca(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return (*(*func(*TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fclose1})))(tls, f) +} + +func X__fdopen(tls *TLS, fd int32, mode uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v fd=%v mode=%v, (%v:)", tls, fd, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var f, v1 uintptr + var flags, v2 int32 + var _ /* wsz at bp+0 */ Twinsize + _, _, _, _ = f, flags, v1, v2 + /* Check for valid initial mode character */ + if !(Xstrchr(tls, __ccgo_ts+1546, Int32FromUint8(**(**uint8)(__ccgo_up(mode)))) != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(0) + } + /* Allocate FILE+buffer or fail */ + v1 = Xmalloc(tls, Uint64FromInt64(232)+Uint64FromInt32(UNGET)+Uint64FromInt32(BUFSIZ)) + f = v1 + if !(v1 != 0) { + return uintptr(0) + } + /* Zero-fill only the struct, not the buffer */ + Xmemset(tls, f, 0, uint64(232)) + /* Impose mode restrictions */ + if !(Xstrchr(tls, mode, int32('+')) != 0) { + if Int32FromUint8(**(**uint8)(__ccgo_up(mode))) == int32('r') { + v2 = int32(F_NOWR) + } else { + v2 = int32(F_NORD) + } + (*TFILE)(unsafe.Pointer(f)).Fflags = Uint32FromInt32(v2) + } + /* Apply close-on-exec flag */ + if Xstrchr(tls, mode, int32('e')) != 0 { + X__syscall3(tls, int64(SYS_fcntl), int64(fd), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + } + /* Set append mode on fd if opened for append */ + if Int32FromUint8(**(**uint8)(__ccgo_up(mode))) == int32('a') { + flags = int32(X__syscall2(tls, int64(SYS_fcntl), int64(fd), int64(Int32FromInt32(F_GETFL)))) + if !(flags&Int32FromInt32(O_APPEND) != 0) { + X__syscall3(tls, int64(SYS_fcntl), int64(fd), int64(Int32FromInt32(F_SETFL)), int64(flags|Int32FromInt32(O_APPEND))) + } + **(**uint32)(__ccgo_up(f)) |= uint32(F_APP) + } + (*TFILE)(unsafe.Pointer(f)).Ffd = fd + (*TFILE)(unsafe.Pointer(f)).Fbuf = f + uintptr(232) + uintptr(UNGET) + (*TFILE)(unsafe.Pointer(f)).Fbuf_size = uint64(BUFSIZ) + /* Activate line buffered mode for terminals */ + (*TFILE)(unsafe.Pointer(f)).Flbf = -int32(1) + if !((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_NOWR) != 0) && !(X__syscall3(tls, int64(SYS_ioctl), int64(fd), Int64FromUint64(uint64(Uint32FromUint32(2)< %v", r) }() + } + return X__fdopen(tls, fd, mode) +} + +func X__fmodeflags(tls *TLS, mode uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v mode=%v, (%v:)", tls, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + var flags int32 + _ = flags + if Xstrchr(tls, mode, int32('+')) != 0 { + flags = int32(O_RDWR) + } else { + if Int32FromUint8(**(**uint8)(__ccgo_up(mode))) == int32('r') { + flags = O_RDONLY + } else { + flags = int32(O_WRONLY) + } + } + if Xstrchr(tls, mode, int32('x')) != 0 { + flags = flags | int32(O_EXCL) + } + if Xstrchr(tls, mode, int32('e')) != 0 { + flags = flags | int32(O_CLOEXEC) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(mode))) != int32('r') { + flags = flags | int32(O_CREAT) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(mode))) == int32('w') { + flags = flags | int32(O_TRUNC) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(mode))) == int32('a') { + flags = flags | int32(O_APPEND) + } + return flags +} + +func X__fopen_rb_ca(tls *TLS, filename uintptr, f uintptr, buf uintptr, len1 Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v filename=%v f=%v buf=%v len1=%v, (%v:)", tls, filename, f, buf, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + Xmemset(tls, f, 0, uint64(232)) + (*TFILE)(unsafe.Pointer(f)).Ffd = int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_open), int64(filename), int64(Int32FromInt32(O_RDONLY)|Int32FromInt32(O_CLOEXEC)|Int32FromInt32(O_LARGEFILE)))))) + if (*TFILE)(unsafe.Pointer(f)).Ffd < 0 { + return uintptr(0) + } + X__syscall3(tls, int64(SYS_fcntl), int64((*TFILE)(unsafe.Pointer(f)).Ffd), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + (*TFILE)(unsafe.Pointer(f)).Fflags = Uint32FromInt32(Int32FromInt32(F_NOWR) | Int32FromInt32(F_PERM)) + (*TFILE)(unsafe.Pointer(f)).Fbuf = buf + uintptr(UNGET) + (*TFILE)(unsafe.Pointer(f)).Fbuf_size = len1 - uint64(UNGET) + (*TFILE)(unsafe.Pointer(f)).Fread = __ccgo_fp(X__stdio_read) + (*TFILE)(unsafe.Pointer(f)).Fseek = __ccgo_fp(X__stdio_seek) + (*TFILE)(unsafe.Pointer(f)).Fclose1 = __ccgo_fp(X__stdio_close) + AtomicStorePInt32(f+140, -int32(1)) + return f +} + +func X__overflow(tls *TLS, f uintptr, _c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v _c=%v, (%v:)", tls, f, _c, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uint8 + var v2, v3 uintptr + var _ /* c at bp+0 */ uint8 + _, _, _ = v1, v2, v3 + **(**uint8)(__ccgo_up(bp)) = Uint8FromInt32(_c) + if !((*TFILE)(unsafe.Pointer(f)).Fwend != 0) && X__towrite(tls, f) != 0 { + return -int32(1) + } + if (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwend && Int32FromUint8(**(**uint8)(__ccgo_up(bp))) != (*TFILE)(unsafe.Pointer(f)).Flbf { + v1 = **(**uint8)(__ccgo_up(bp)) + v3 = f + 40 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + **(**uint8)(__ccgo_up(v2)) = v1 + return Int32FromUint8(v1) + } + if (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tsize_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fwrite})))(tls, f, bp, uint64(1)) != uint64(1) { + return -int32(1) + } + return Int32FromUint8(**(**uint8)(__ccgo_up(bp))) +} + +func _dummy9(tls *TLS, fd int32) (r int32) { + return fd +} + +func X__stdio_close(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_close), int64(_dummy9(tls, (*TFILE)(unsafe.Pointer(f)).Ffd)))))) +} + +var _dummy_file = uintptr(0) + +func _close_file(tls *TLS, f uintptr) { + if !(f != 0) { + return + } + if AtomicLoadPInt32(f+140) >= 0 { + ___lockfile(tls, f) + } + if (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwbase { + (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tsize_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fwrite})))(tls, f, uintptr(0), uint64(0)) + } + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + (*(*func(*TLS, uintptr, Toff_t, int32) Toff_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fseek})))(tls, f, int64((*TFILE)(unsafe.Pointer(f)).Frpos)-int64((*TFILE)(unsafe.Pointer(f)).Frend), int32(1)) + } +} + +func X__stdio_exit(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + var f uintptr + _ = f + f = **(**uintptr)(__ccgo_up(X__ofl_lock(tls))) + for { + if !(f != 0) { + break + } + _close_file(tls, f) + goto _1 + _1: + ; + f = (*TFILE)(unsafe.Pointer(f)).Fnext + } + _close_file(tls, AtomicLoadPUintptr(uintptr(unsafe.Pointer(&X__stdin_used)))) + _close_file(tls, AtomicLoadPUintptr(uintptr(unsafe.Pointer(&X__stdout_used)))) + _close_file(tls, AtomicLoadPUintptr(uintptr(unsafe.Pointer(&X__stderr_used)))) +} + +func X__stdio_exit_needed(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + X__stdio_exit(tls) +} + +func X__stdio_read(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v f=%v buf=%v len1=%v, (%v:)", tls, f, buf, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var cnt Tssize_t + var v1 int64 + var v2 int32 + var v3, v4 uintptr + var _ /* iov at bp+0 */ [2]Tiovec + _, _, _, _, _ = cnt, v1, v2, v3, v4 + **(**[2]Tiovec)(__ccgo_up(bp)) = [2]Tiovec{ + 0: { + Fiov_base: buf, + Fiov_len: len1 - BoolUint64(!!((*TFILE)(unsafe.Pointer(f)).Fbuf_size != 0)), + }, + 1: { + Fiov_base: (*TFILE)(unsafe.Pointer(f)).Fbuf, + Fiov_len: (*TFILE)(unsafe.Pointer(f)).Fbuf_size, + }, + } + if (**(**[2]Tiovec)(__ccgo_up(bp)))[0].Fiov_len != 0 { + v1 = X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_readv), int64((*TFILE)(unsafe.Pointer(f)).Ffd), int64(bp), int64(Int32FromInt32(2))))) + } else { + v1 = X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_read), int64((*TFILE)(unsafe.Pointer(f)).Ffd), int64((**(**[2]Tiovec)(__ccgo_up(bp)))[int32(1)].Fiov_base), Int64FromUint64((**(**[2]Tiovec)(__ccgo_up(bp)))[int32(1)].Fiov_len)))) + } + cnt = v1 + if cnt <= 0 { + if cnt != 0 { + v2 = int32(F_ERR) + } else { + v2 = int32(F_EOF) + } + **(**uint32)(__ccgo_up(f)) |= Uint32FromInt32(v2) + return uint64(0) + } + if Uint64FromInt64(cnt) <= (**(**[2]Tiovec)(__ccgo_up(bp)))[0].Fiov_len { + return Uint64FromInt64(cnt) + } + cnt = Int64FromUint64(uint64(cnt) - (**(**[2]Tiovec)(__ccgo_up(bp)))[0].Fiov_len) + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Frend = (*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr(cnt) + if (*TFILE)(unsafe.Pointer(f)).Fbuf_size != 0 { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + **(**uint8)(__ccgo_up(buf + uintptr(len1-uint64(1)))) = **(**uint8)(__ccgo_up(v3)) + } + return len1 +} + +func X__stdio_seek(tls *TLS, f uintptr, off Toff_t, whence int32) (r Toff_t) { + if __ccgo_strace { + trc("tls=%v f=%v off=%v whence=%v, (%v:)", tls, f, off, whence, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lseek(tls, (*TFILE)(unsafe.Pointer(f)).Ffd, off, whence) +} + +func X__stdio_write(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v f=%v buf=%v len1=%v, (%v:)", tls, f, buf, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var cnt Tssize_t + var iov, v2, v3 uintptr + var iovcnt int32 + var rem Tsize_t + var v5 uint64 + var _ /* iovs at bp+0 */ [2]Tiovec + _, _, _, _, _, _, _ = cnt, iov, iovcnt, rem, v2, v3, v5 + **(**[2]Tiovec)(__ccgo_up(bp)) = [2]Tiovec{ + 0: { + Fiov_base: (*TFILE)(unsafe.Pointer(f)).Fwbase, + Fiov_len: Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Fwpos) - int64((*TFILE)(unsafe.Pointer(f)).Fwbase)), + }, + 1: { + Fiov_base: buf, + Fiov_len: len1, + }, + } + iov = bp + rem = (**(**Tiovec)(__ccgo_up(iov))).Fiov_len + (**(**Tiovec)(__ccgo_up(iov + 1*16))).Fiov_len + iovcnt = int32(2) + for { + cnt = X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_writev), int64((*TFILE)(unsafe.Pointer(f)).Ffd), int64(iov), int64(iovcnt)))) + if Uint64FromInt64(cnt) == rem { + (*TFILE)(unsafe.Pointer(f)).Fwend = (*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr((*TFILE)(unsafe.Pointer(f)).Fbuf_size) + v2 = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Fwbase = v2 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v2 + return len1 + } + if cnt < 0 { + v3 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Fwend = v3 + v2 = v3 + (*TFILE)(unsafe.Pointer(f)).Fwbase = v2 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v2 + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) + if iovcnt == int32(2) { + v5 = uint64(0) + } else { + v5 = len1 - (**(**Tiovec)(__ccgo_up(iov))).Fiov_len + } + return v5 + } + rem = rem - Uint64FromInt64(cnt) + if Uint64FromInt64(cnt) > (**(**Tiovec)(__ccgo_up(iov))).Fiov_len { + cnt = Int64FromUint64(uint64(cnt) - (**(**Tiovec)(__ccgo_up(iov))).Fiov_len) + iov += 16 + iovcnt = iovcnt - 1 + } + (**(**Tiovec)(__ccgo_up(iov))).Fiov_base = (**(**Tiovec)(__ccgo_up(iov))).Fiov_base + uintptr(cnt) + (**(**Tiovec)(__ccgo_up(iov))).Fiov_len -= Uint64FromInt64(cnt) + goto _1 + _1: + } + return r +} + +func X__stdout_write(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v f=%v buf=%v len1=%v, (%v:)", tls, f, buf, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* wsz at bp+0 */ Twinsize + (*TFILE)(unsafe.Pointer(f)).Fwrite = __ccgo_fp(X__stdio_write) + if !((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_SVB) != 0) && X__syscall3(tls, int64(SYS_ioctl), int64((*TFILE)(unsafe.Pointer(f)).Ffd), Int64FromUint64(uint64(Uint32FromUint32(2)< %v", r) }() + } + var v1, v2 uintptr + var v4 int32 + _, _, _ = v1, v2, v4 + **(**int32)(__ccgo_up(f + 136)) |= (*TFILE)(unsafe.Pointer(f)).Fmode - int32(1) + if (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwbase { + (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tsize_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fwrite})))(tls, f, uintptr(0), uint64(0)) + } + v2 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Fwend = v2 + v1 = v2 + (*TFILE)(unsafe.Pointer(f)).Fwbase = v1 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v1 + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_NORD) != 0 { + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) + return -int32(1) + } + v1 = (*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr((*TFILE)(unsafe.Pointer(f)).Fbuf_size) + (*TFILE)(unsafe.Pointer(f)).Frend = v1 + (*TFILE)(unsafe.Pointer(f)).Frpos = v1 + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_EOF) != 0 { + v4 = -int32(1) + } else { + v4 = 0 + } + return v4 +} + +func X__toread_needs_stdio_exit(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + X__stdio_exit_needed(tls) +} + +func X__towrite(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 uintptr + _ = v1 + **(**int32)(__ccgo_up(f + 136)) |= (*TFILE)(unsafe.Pointer(f)).Fmode - int32(1) + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_NOWR) != 0 { + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) + return -int32(1) + } + /* Clear read buffer (easier than summoning nasal demons) */ + v1 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Frend = v1 + (*TFILE)(unsafe.Pointer(f)).Frpos = v1 + /* Activate write through the buffer. */ + v1 = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Fwbase = v1 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v1 + (*TFILE)(unsafe.Pointer(f)).Fwend = (*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr((*TFILE)(unsafe.Pointer(f)).Fbuf_size) + return 0 +} + +func X__towrite_needs_stdio_exit(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + X__stdio_exit_needed(tls) +} + +/* This function assumes it will never be called if there is already + * data buffered for reading. */ + +func X__uflow(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* c at bp+0 */ uint8 + if !(X__toread(tls, f) != 0) && (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tsize_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fread})))(tls, f, bp, uint64(1)) == uint64(1) { + return Int32FromUint8(**(**uint8)(__ccgo_up(bp))) + } + return -int32(1) +} + +func Xasprintf(tls *TLS, s uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v va=%v, (%v:)", tls, s, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvasprintf(tls, s, fmt, ap) + _ = ap + return ret +} + +func Xclearerr(tls *TLS, f uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } + var __need_unlock, v1 int32 + _, _ = __need_unlock, v1 + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + **(**uint32)(__ccgo_up(f)) &= Uint32FromInt32(^(Int32FromInt32(F_EOF) | Int32FromInt32(F_ERR))) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } +} + +func Xclearerr_unlocked(tls *TLS, f uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } + Xclearerr(tls, f) +} + +func Xdprintf(tls *TLS, fd int32, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v fmt=%v va=%v, (%v:)", tls, fd, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvdprintf(tls, fd, fmt, ap) + _ = ap + return ret +} + +const FSETLOCKING_BYCALLER = 2 +const FSETLOCKING_INTERNAL = 1 +const FSETLOCKING_QUERY = 0 + +func X_flushlbf(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + Xfflush(tls, uintptr(0)) +} + +func X__fsetlocking(tls *TLS, f uintptr, type1 int32) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v type1=%v, (%v:)", tls, f, type1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return 0 +} + +func X__fwriting(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32((*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_NORD) != 0 || (*TFILE)(unsafe.Pointer(f)).Fwend != 0) +} + +func X__freading(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32((*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_NOWR) != 0 || (*TFILE)(unsafe.Pointer(f)).Frend != 0) +} + +func X__freadable(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(!((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_NORD) != 0)) +} + +func X__fwritable(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(!((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_NOWR) != 0)) +} + +func X__flbf(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32((*TFILE)(unsafe.Pointer(f)).Flbf >= 0) +} + +func X__fbufsize(tls *TLS, f uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return (*TFILE)(unsafe.Pointer(f)).Fbuf_size +} + +func X__fpending(tls *TLS, f uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int64 + _ = v1 + if (*TFILE)(unsafe.Pointer(f)).Fwend != 0 { + v1 = int64((*TFILE)(unsafe.Pointer(f)).Fwpos) - int64((*TFILE)(unsafe.Pointer(f)).Fwbase) + } else { + v1 = 0 + } + return Uint64FromInt64(v1) +} + +func X__fpurge(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1, v2 uintptr + _, _ = v1, v2 + if !(f != 0) { // libbsd fpurge test fails w/o this. + return int32(1) + } + v2 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Fwend = v2 + v1 = v2 + (*TFILE)(unsafe.Pointer(f)).Fwbase = v1 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v1 + v1 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Frend = v1 + (*TFILE)(unsafe.Pointer(f)).Frpos = v1 + return 0 +} + +func Xfpurge(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fpurge(tls, f) +} + +func X__freadahead(tls *TLS, f uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int64 + _ = v1 + if (*TFILE)(unsafe.Pointer(f)).Frend != 0 { + v1 = int64((*TFILE)(unsafe.Pointer(f)).Frend) - int64((*TFILE)(unsafe.Pointer(f)).Frpos) + } else { + v1 = 0 + } + return Uint64FromInt64(v1) +} + +func X__freadptr(tls *TLS, f uintptr, sizep uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v sizep=%v, (%v:)", tls, f, sizep, origin(2)) + defer func() { trc("-> %v", r) }() + } + if (*TFILE)(unsafe.Pointer(f)).Frpos == (*TFILE)(unsafe.Pointer(f)).Frend { + return uintptr(0) + } + **(**Tsize_t)(__ccgo_up(sizep)) = Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Frend) - int64((*TFILE)(unsafe.Pointer(f)).Frpos)) + return (*TFILE)(unsafe.Pointer(f)).Frpos +} + +func X__freadptrinc(tls *TLS, f uintptr, inc Tsize_t) { + if __ccgo_strace { + trc("tls=%v f=%v inc=%v, (%v:)", tls, f, inc, origin(2)) + } + **(**uintptr)(__ccgo_up(f + 8)) += uintptr(inc) +} + +func X__fseterr(tls *TLS, f uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) +} + +func _dummy10(tls *TLS, f uintptr) { +} + +func Xfclose(tls *TLS, f uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var __need_unlock, r, v1 int32 + var head uintptr + _, _, _, _ = __need_unlock, head, r, v1 + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + r = Xfflush(tls, f) + r = r | (*(*func(*TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fclose1})))(tls, f) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + /* Past this point, f is closed and any further explict access + * to it is undefined. However, it still exists as an entry in + * the open file list and possibly in the thread's locked files + * list, if it was closed while explicitly locked. Functions + * which process these lists must tolerate dead FILE objects + * (which necessarily have inactive buffer pointers) without + * producing any side effects. */ + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_PERM) != 0 { + return r + } + X__unlist_locked_file(tls, f) + head = X__ofl_lock(tls) + if (*TFILE)(unsafe.Pointer(f)).Fprev != 0 { + (*TFILE)(unsafe.Pointer((*TFILE)(unsafe.Pointer(f)).Fprev)).Fnext = (*TFILE)(unsafe.Pointer(f)).Fnext + } + if (*TFILE)(unsafe.Pointer(f)).Fnext != 0 { + (*TFILE)(unsafe.Pointer((*TFILE)(unsafe.Pointer(f)).Fnext)).Fprev = (*TFILE)(unsafe.Pointer(f)).Fprev + } + if **(**uintptr)(__ccgo_up(head)) == f { + **(**uintptr)(__ccgo_up(head)) = (*TFILE)(unsafe.Pointer(f)).Fnext + } + X__ofl_unlock(tls) + Xfree(tls, (*TFILE)(unsafe.Pointer(f)).Fgetln_buf) + Xfree(tls, f) + return r +} + +func Xfeof(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, ret, v1 int32 + _, _, _ = __need_unlock, ret, v1 + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + ret = BoolInt32(!!((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_EOF) != 0)) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return ret +} + +func X_IO_feof_unlocked(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfeof(tls, f) +} + +func Xfeof_unlocked(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfeof(tls, f) +} + +func Xferror(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, ret, v1 int32 + _, _, _ = __need_unlock, ret, v1 + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + ret = BoolInt32(!!((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_ERR) != 0)) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return ret +} + +func X_IO_ferror_unlocked(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xferror(tls, f) +} + +func Xferror_unlocked(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xferror(tls, f) +} + +// C documentation +// +// /* stdout.c will override this if linked */ +var _dummy11 = uintptr(0) + +func Xfflush(tls *TLS, f uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var __need_unlock, __need_unlock1, r, v2 int32 + var v4, v5 uintptr + _, _, _, _, _, _ = __need_unlock, __need_unlock1, r, v2, v4, v5 + if !(f != 0) { + r = 0 + if AtomicLoadPUintptr(uintptr(unsafe.Pointer(&X__stdout_used))) != 0 { + r = r | Xfflush(tls, AtomicLoadPUintptr(uintptr(unsafe.Pointer(&X__stdout_used)))) + } + if AtomicLoadPUintptr(uintptr(unsafe.Pointer(&X__stderr_used))) != 0 { + r = r | Xfflush(tls, AtomicLoadPUintptr(uintptr(unsafe.Pointer(&X__stderr_used)))) + } + f = **(**uintptr)(__ccgo_up(X__ofl_lock(tls))) + for { + if !(f != 0) { + break + } + if AtomicLoadPInt32(f+140) >= 0 { + v2 = ___lockfile(tls, f) + } else { + v2 = 0 + } + __need_unlock = v2 + if (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwbase { + r = r | Xfflush(tls, f) + } + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + goto _1 + _1: + ; + f = (*TFILE)(unsafe.Pointer(f)).Fnext + } + X__ofl_unlock(tls) + return r + } + if AtomicLoadPInt32(f+140) >= 0 { + v2 = ___lockfile(tls, f) + } else { + v2 = 0 + } + __need_unlock1 = v2 + /* If writing, flush output */ + if (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwbase { + (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tsize_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fwrite})))(tls, f, uintptr(0), uint64(0)) + if !((*TFILE)(unsafe.Pointer(f)).Fwpos != 0) { + if __need_unlock1 != 0 { + ___unlockfile(tls, f) + } + return -int32(1) + } + } + /* If reading, sync position, per POSIX */ + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + (*(*func(*TLS, uintptr, Toff_t, int32) Toff_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fseek})))(tls, f, int64((*TFILE)(unsafe.Pointer(f)).Frpos)-int64((*TFILE)(unsafe.Pointer(f)).Frend), int32(1)) + } + /* Clear read and write modes */ + v5 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Fwend = v5 + v4 = v5 + (*TFILE)(unsafe.Pointer(f)).Fwbase = v4 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v4 + v4 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Frend = v4 + (*TFILE)(unsafe.Pointer(f)).Frpos = v4 + if __need_unlock1 != 0 { + ___unlockfile(tls, f) + } + return 0 +} + +func Xfflush_unlocked(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfflush(tls, f) +} + +func _locking_getc(tls *TLS, f uintptr) (r1 int32) { + var c, old, old1, r, v, v10, v12, v17, v21, v3, v8 int32 + var v1, v13, v14, v15, v2, v7 uintptr + var v5 bool + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = c, old, old1, r, v, v1, v10, v12, v13, v14, v15, v17, v2, v21, v3, v5, v7, v8 + v1 = f + 140 + // __asm__ __volatile__ ("sync" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 40, __ccgo_ts+1550) + for { + v7 = v1 + // __asm__ __volatile__ ("lwarx %0, 0, %2" : "=r"(v) : "m"(*p), "r"(p)); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 5, __ccgo_ts+1550) + v8 = v + goto _9 + _9: + old = v8 + goto _6 + _6: + ; + if v5 = old == 0; v5 { + v2 = v1 + // __asm__ __volatile__ ( + // + // "stwcx. %2, 0, %3 ; mfcr %0" + // : "=r"(r), "=m"(*p) : "r"(v), "r"(p) : "memory", "cc"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 13, __ccgo_ts+1550) + v3 = r & int32(0x20000000) + goto _4 + _4: + } + if !(v5 && !(v3 != 0)) { + break + } + } + // __asm__ __volatile__ ("isync" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 48, __ccgo_ts+1550) + v10 = old + goto _11 +_11: + if v10 != 0 { + ___lockfile(tls, f) + } + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + v2 = f + 8 + v1 = *(*uintptr)(unsafe.Pointer(v2)) + *(*uintptr)(unsafe.Pointer(v2)) = *(*uintptr)(unsafe.Pointer(v2)) + 1 + v3 = Int32FromUint8(**(**uint8)(__ccgo_up(v1))) + } else { + v3 = X__uflow(tls, f) + } + c = v3 + v7 = f + 140 + // __asm__ __volatile__ ("sync" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 40, __ccgo_ts+1550) + for { + v14 = v7 + // __asm__ __volatile__ ("lwarx %0, 0, %2" : "=r"(v) : "m"(*p), "r"(p)); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 5, __ccgo_ts+1550) + v10 = v + goto _22 + _22: + old1 = v10 + goto _19 + _19: + ; + v13 = v7 + // __asm__ __volatile__ ( + // + // "stwcx. %2, 0, %3 ; mfcr %0" + // : "=r"(r), "=m"(*p) : "r"(v), "r"(p) : "memory", "cc"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 13, __ccgo_ts+1550) + v8 = r & int32(0x20000000) + goto _18 + _18: + ; + if !!(v8 != 0) { + break + } + } + // __asm__ __volatile__ ("isync" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 48, __ccgo_ts+1550) + v12 = old1 + goto _24 +_24: + if v12&int32(MAYBE_WAITERS) != 0 { + v15 = f + 140 + v17 = int32(1) + v21 = int32(1) + if v21 != 0 { + v21 = int32(FUTEX_PRIVATE) + } + if v17 < Int32FromInt32(0) { + v17 = int32(INT_MAX) + } + _ = X__syscall3(tls, int64(SYS_futex), int64(v15), int64(Int32FromInt32(FUTEX_WAKE)|v21), int64(v17)) != int64(-int32(ENOSYS)) || X__syscall3(tls, int64(SYS_futex), int64(v15), int64(Int32FromInt32(FUTEX_WAKE)), int64(v17)) != 0 + } + return c +} + +func Xfgetc(tls *TLS, f1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f1=%v, (%v:)", tls, f1, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l, v2, v4 int32 + var v1, v5, v6 uintptr + _, _, _, _, _, _ = l, v1, v2, v4, v5, v6 + v1 = f1 + l = AtomicLoadPInt32(v1 + 140) + if l < 0 || l != 0 && l & ^Int32FromInt32(MAYBE_WAITERS) == (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Ftid { + if (*TFILE)(unsafe.Pointer(v1)).Frpos != (*TFILE)(unsafe.Pointer(v1)).Frend { + v6 = v1 + 8 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + v4 = Int32FromUint8(**(**uint8)(__ccgo_up(v5))) + } else { + v4 = X__uflow(tls, v1) + } + v2 = v4 + goto _3 + } + v2 = _locking_getc(tls, v1) + goto _3 +_3: + return v2 +} + +func Xfgetln(tls *TLS, f uintptr, plen uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v plen=%v, (%v:)", tls, f, plen, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var __need_unlock, v1, v2 int32 + var l, v8 Tssize_t + var ret, z, v3, v4 uintptr + var v6 bool + _, _, _, _, _, _, _, _, _, _ = __need_unlock, l, ret, z, v1, v2, v3, v4, v6, v8 + ret = uintptr(0) + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v2 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v2 = X__uflow(tls, f) + } + Xungetc(tls, v2, f) + if v6 = (*TFILE)(unsafe.Pointer(f)).Frend != 0; v6 { + v3 = Xmemchr(tls, (*TFILE)(unsafe.Pointer(f)).Frpos, int32('\n'), Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Frend)-int64((*TFILE)(unsafe.Pointer(f)).Frpos))) + z = v3 + } + if v6 && v3 != 0 { + ret = (*TFILE)(unsafe.Pointer(f)).Frpos + z = z + 1 + v3 = z + **(**Tsize_t)(__ccgo_up(plen)) = Uint64FromInt64(int64(v3) - int64(ret)) + (*TFILE)(unsafe.Pointer(f)).Frpos = z + } else { + *(*[1]Tsize_t)(unsafe.Pointer(bp)) = [1]Tsize_t{} + v8 = Xgetline(tls, f+168, bp, f) + l = v8 + if v8 > 0 { + **(**Tsize_t)(__ccgo_up(plen)) = Uint64FromInt64(l) + ret = (*TFILE)(unsafe.Pointer(f)).Fgetln_buf + } + } + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return ret +} + +func Xfgetpos(tls *TLS, f uintptr, pos uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v pos=%v, (%v:)", tls, f, pos, origin(2)) + defer func() { trc("-> %v", r) }() + } + var off Toff_t + _ = off + off = X__ftello(tls, f) + if off < 0 { + return -int32(1) + } + **(**int64)(__ccgo_up(pos)) = off + return 0 +} + +func Xfgets(tls *TLS, s uintptr, n int32, f uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v f=%v, (%v:)", tls, s, n, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, c, v1, v4 int32 + var k Tsize_t + var p, z, v6, v7 uintptr + var v2 int64 + var v3 uint64 + var v8 uint8 + _, _, _, _, _, _, _, _, _, _, _, _ = __need_unlock, c, k, p, z, v1, v2, v3, v4, v6, v7, v8 + p = s + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + if n <= int32(1) { + **(**int32)(__ccgo_up(f + 136)) |= (*TFILE)(unsafe.Pointer(f)).Fmode - int32(1) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + if n < int32(1) { + return uintptr(0) + } + **(**uint8)(__ccgo_up(s)) = uint8(0) + return s + } + n = n - 1 + for n != 0 { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + z = Xmemchr(tls, (*TFILE)(unsafe.Pointer(f)).Frpos, int32('\n'), Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Frend)-int64((*TFILE)(unsafe.Pointer(f)).Frpos))) + if z != 0 { + v2 = int64(z) - int64((*TFILE)(unsafe.Pointer(f)).Frpos) + int64(1) + } else { + v2 = int64((*TFILE)(unsafe.Pointer(f)).Frend) - int64((*TFILE)(unsafe.Pointer(f)).Frpos) + } + k = Uint64FromInt64(v2) + if k < Uint64FromInt32(n) { + v3 = k + } else { + v3 = Uint64FromInt32(n) + } + k = v3 + Xmemcpy(tls, p, (*TFILE)(unsafe.Pointer(f)).Frpos, k) + **(**uintptr)(__ccgo_up(f + 8)) += uintptr(k) + p = p + uintptr(k) + n = Int32FromUint64(uint64(n) - k) + if z != 0 || !(n != 0) { + break + } + } + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + v7 = f + 8 + v6 = *(*uintptr)(unsafe.Pointer(v7)) + *(*uintptr)(unsafe.Pointer(v7)) = *(*uintptr)(unsafe.Pointer(v7)) + 1 + v4 = Int32FromUint8(**(**uint8)(__ccgo_up(v6))) + } else { + v4 = X__uflow(tls, f) + } + v1 = v4 + c = v1 + if v1 < 0 { + if p == s || !((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_EOF) != 0) { + s = uintptr(0) + } + break + } + n = n - 1 + v8 = Uint8FromInt32(c) + v6 = p + p = p + 1 + **(**uint8)(__ccgo_up(v6)) = v8 + if Int32FromUint8(v8) == int32('\n') { + break + } + } + if s != 0 { + **(**uint8)(__ccgo_up(p)) = uint8(0) + } + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return s +} + +func Xfgets_unlocked(tls *TLS, s uintptr, n int32, f uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v f=%v, (%v:)", tls, s, n, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfgets(tls, s, n, f) +} + +func ___fgetwc_unlocked_internal(tls *TLS, f uintptr) (r Twint_t) { + bp := tls.Alloc(32) + defer tls.Free(32) + var c, first, v1, v2 int32 + var l Tsize_t + var v3, v4 uintptr + var _ /* b at bp+16 */ uint8 + var _ /* st at bp+8 */ Tmbstate_t + var _ /* wc at bp+0 */ Twchar_t + _, _, _, _, _, _, _ = c, first, l, v1, v2, v3, v4 + /* Convert character from buffer if possible */ + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + l = Uint64FromInt32(Xmbtowc(tls, bp, (*TFILE)(unsafe.Pointer(f)).Frpos, Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Frend)-int64((*TFILE)(unsafe.Pointer(f)).Frpos)))) + if l+uint64(1) >= uint64(1) { + **(**uintptr)(__ccgo_up(f + 8)) += uintptr(l + BoolUint64(!(l != 0))) /* l==0 means 1 byte, null */ + return Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp))) + } + } + /* Convert character byte-by-byte */ + **(**Tmbstate_t)(__ccgo_up(bp + 8)) = Tmbstate_t{} + first = int32(1) + for cond := true; cond; cond = l == Uint64FromInt32(-Int32FromInt32(2)) { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v2 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v2 = X__uflow(tls, f) + } + v1 = v2 + c = v1 + **(**uint8)(__ccgo_up(bp + 16)) = Uint8FromInt32(v1) + if c < 0 { + if !(first != 0) { + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EILSEQ) + } + return uint32(0xffffffff) + } + l = Xmbrtowc(tls, bp, bp+16, uint64(1), bp+8) + if l == Uint64FromInt32(-Int32FromInt32(1)) { + if !(first != 0) { + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) + Xungetc(tls, Int32FromUint8(**(**uint8)(__ccgo_up(bp + 16))), f) + } + return uint32(0xffffffff) + } + first = 0 + } + return Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp))) +} + +func X__fgetwc_unlocked(tls *TLS, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var loc Tlocale_t + var ploc uintptr + var wc Twchar_t + _, _, _ = loc, ploc, wc + ploc = uintptr(___get_tp(tls)) + 152 + loc = **(**Tlocale_t)(__ccgo_up(ploc)) + if (*TFILE)(unsafe.Pointer(f)).Fmode <= 0 { + Xfwide(tls, f, int32(1)) + } + **(**Tlocale_t)(__ccgo_up(ploc)) = (*TFILE)(unsafe.Pointer(f)).Flocale + wc = Int32FromUint32(___fgetwc_unlocked_internal(tls, f)) + **(**Tlocale_t)(__ccgo_up(ploc)) = loc + return Uint32FromInt32(wc) +} + +func Xfgetwc(tls *TLS, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, v1 int32 + var c Twint_t + _, _, _ = __need_unlock, c, v1 + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + c = X__fgetwc_unlocked(tls, f) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return c +} + +func Xfgetwc_unlocked(tls *TLS, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fgetwc_unlocked(tls, f) +} + +func Xgetwc_unlocked(tls *TLS, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fgetwc_unlocked(tls, f) +} + +func Xfgetws(tls *TLS, s uintptr, n int32, f uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v f=%v, (%v:)", tls, s, n, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, v1 int32 + var c Twint_t + var p, v4 uintptr + _, _, _, _, _ = __need_unlock, c, p, v1, v4 + p = s + v1 = n + n = n - 1 + if !(v1 != 0) { + return s + } + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + for { + if !(n != 0) { + break + } + c = X__fgetwc_unlocked(tls, f) + if c == uint32(0xffffffff) { + break + } + v4 = p + p += 4 + **(**Twchar_t)(__ccgo_up(v4)) = Int32FromUint32(c) + if c == uint32('\n') { + break + } + goto _3 + _3: + ; + n = n - 1 + } + **(**Twchar_t)(__ccgo_up(p)) = 0 + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_ERR) != 0 { + p = s + } + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + if p == s { + v4 = UintptrFromInt32(0) + } else { + v4 = s + } + return v4 +} + +func Xfgetws_unlocked(tls *TLS, s uintptr, n int32, f uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v f=%v, (%v:)", tls, s, n, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfgetws(tls, s, n, f) +} + +func Xfileno(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, fd, v1 int32 + _, _, _ = __need_unlock, fd, v1 + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + fd = (*TFILE)(unsafe.Pointer(f)).Ffd + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + if fd < 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EBADF) + return -int32(1) + } + return fd +} + +func Xfileno_unlocked(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfileno(tls, f) +} + +func Xflockfile(tls *TLS, f uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } + if !(Xftrylockfile(tls, f) != 0) { + return + } + ___lockfile(tls, f) + X__register_locked_file(tls, f, uintptr(___get_tp(tls))) +} + +type Tcookie = struct { + Fpos Tsize_t + Flen1 Tsize_t + Fsize Tsize_t + Fbuf uintptr + Fmode int32 +} + +type Tmem_FILE = struct { + Ff TFILE + Fc Tcookie + Fbuf [1032]uint8 +} + +func _mseek(tls *TLS, f uintptr, off Toff_t, whence int32) (r Toff_t) { + bp := tls.Alloc(32) + defer tls.Free(32) + var base Tssize_t + var c uintptr + var v2 Tsize_t + _, _, _ = base, c, v2 + c = (*TFILE)(unsafe.Pointer(f)).Fcookie + if !(Uint32FromInt32(whence) > uint32(2)) { + goto _1 + } + goto fail +fail: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return int64(-int32(1)) +_1: + ; + *(*[3]Tsize_t)(unsafe.Pointer(bp)) = [3]Tsize_t{ + 1: (*Tcookie)(unsafe.Pointer(c)).Fpos, + 2: (*Tcookie)(unsafe.Pointer(c)).Flen1, + } + base = Int64FromUint64(**(**Tsize_t)(__ccgo_up(bp + uintptr(whence)*8))) + if off < -base || off > Int64FromUint64((*Tcookie)(unsafe.Pointer(c)).Fsize)-base { + goto fail + } + v2 = Uint64FromInt64(base + off) + (*Tcookie)(unsafe.Pointer(c)).Fpos = v2 + return Int64FromUint64(v2) +} + +func _mread(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + var c uintptr + var rem Tsize_t + _, _ = c, rem + c = (*TFILE)(unsafe.Pointer(f)).Fcookie + rem = (*Tcookie)(unsafe.Pointer(c)).Flen1 - (*Tcookie)(unsafe.Pointer(c)).Fpos + if (*Tcookie)(unsafe.Pointer(c)).Fpos > (*Tcookie)(unsafe.Pointer(c)).Flen1 { + rem = uint64(0) + } + if len1 > rem { + len1 = rem + **(**uint32)(__ccgo_up(f)) |= uint32(F_EOF) + } + Xmemcpy(tls, buf, (*Tcookie)(unsafe.Pointer(c)).Fbuf+uintptr((*Tcookie)(unsafe.Pointer(c)).Fpos), len1) + **(**Tsize_t)(__ccgo_up(c)) += len1 + rem = rem - len1 + if rem > (*TFILE)(unsafe.Pointer(f)).Fbuf_size { + rem = (*TFILE)(unsafe.Pointer(f)).Fbuf_size + } + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Frend = (*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr(rem) + Xmemcpy(tls, (*TFILE)(unsafe.Pointer(f)).Frpos, (*Tcookie)(unsafe.Pointer(c)).Fbuf+uintptr((*Tcookie)(unsafe.Pointer(c)).Fpos), rem) + **(**Tsize_t)(__ccgo_up(c)) += rem + return len1 +} + +func _mwrite(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + var c uintptr + var len2, rem Tsize_t + _, _, _ = c, len2, rem + c = (*TFILE)(unsafe.Pointer(f)).Fcookie + len2 = Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Fwpos) - int64((*TFILE)(unsafe.Pointer(f)).Fwbase)) + if len2 != 0 { + (*TFILE)(unsafe.Pointer(f)).Fwpos = (*TFILE)(unsafe.Pointer(f)).Fwbase + if _mwrite(tls, f, (*TFILE)(unsafe.Pointer(f)).Fwpos, len2) < len2 { + return uint64(0) + } + } + if (*Tcookie)(unsafe.Pointer(c)).Fmode == int32('a') { + (*Tcookie)(unsafe.Pointer(c)).Fpos = (*Tcookie)(unsafe.Pointer(c)).Flen1 + } + rem = (*Tcookie)(unsafe.Pointer(c)).Fsize - (*Tcookie)(unsafe.Pointer(c)).Fpos + if len1 > rem { + len1 = rem + } + Xmemcpy(tls, (*Tcookie)(unsafe.Pointer(c)).Fbuf+uintptr((*Tcookie)(unsafe.Pointer(c)).Fpos), buf, len1) + **(**Tsize_t)(__ccgo_up(c)) += len1 + if (*Tcookie)(unsafe.Pointer(c)).Fpos > (*Tcookie)(unsafe.Pointer(c)).Flen1 { + (*Tcookie)(unsafe.Pointer(c)).Flen1 = (*Tcookie)(unsafe.Pointer(c)).Fpos + if (*Tcookie)(unsafe.Pointer(c)).Flen1 < (*Tcookie)(unsafe.Pointer(c)).Fsize { + **(**uint8)(__ccgo_up((*Tcookie)(unsafe.Pointer(c)).Fbuf + uintptr((*Tcookie)(unsafe.Pointer(c)).Flen1))) = uint8(0) + } else { + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_NORD) != 0 && (*Tcookie)(unsafe.Pointer(c)).Fsize != 0 { + **(**uint8)(__ccgo_up((*Tcookie)(unsafe.Pointer(c)).Fbuf + uintptr((*Tcookie)(unsafe.Pointer(c)).Fsize-uint64(1)))) = uint8(0) + } + } + } + return len1 +} + +func _mclose(tls *TLS, m uintptr) (r int32) { + return 0 +} + +func Xfmemopen(tls *TLS, buf uintptr, size Tsize_t, mode uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v buf=%v size=%v mode=%v, (%v:)", tls, buf, size, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + var f uintptr + var plus, v2 int32 + var v1 uint64 + var v3 Tsize_t + _, _, _, _, _ = f, plus, v1, v2, v3 + plus = BoolInt32(!!(Xstrchr(tls, mode, int32('+')) != 0)) + if !(Xstrchr(tls, __ccgo_ts+1546, Int32FromUint8(**(**uint8)(__ccgo_up(mode)))) != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(0) + } + if !(buf != 0) && size > Uint64FromInt64(Int64FromInt64(INT64_MAX)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOMEM) + return uintptr(0) + } + if buf != 0 { + v1 = uint64(0) + } else { + v1 = size + } + f = Xmalloc(tls, uint64(1304)+v1) + if !(f != 0) { + return uintptr(0) + } + Xmemset(tls, f, 0, uint64(UintptrFromInt32(0)+272)) + (*Tmem_FILE)(unsafe.Pointer(f)).Ff.Fcookie = f + 232 + (*Tmem_FILE)(unsafe.Pointer(f)).Ff.Ffd = -int32(1) + (*Tmem_FILE)(unsafe.Pointer(f)).Ff.Flbf = -int32(1) + (*Tmem_FILE)(unsafe.Pointer(f)).Ff.Fbuf = f + 272 + uintptr(UNGET) + (*Tmem_FILE)(unsafe.Pointer(f)).Ff.Fbuf_size = Uint64FromInt64(1032) - Uint64FromInt32(UNGET) + if !(buf != 0) { + buf = f + 1304 + Xmemset(tls, buf, 0, size) + } + (*Tmem_FILE)(unsafe.Pointer(f)).Fc.Fbuf = buf + (*Tmem_FILE)(unsafe.Pointer(f)).Fc.Fsize = size + (*Tmem_FILE)(unsafe.Pointer(f)).Fc.Fmode = Int32FromUint8(**(**uint8)(__ccgo_up(mode))) + if !(plus != 0) { + if Int32FromUint8(**(**uint8)(__ccgo_up(mode))) == int32('r') { + v2 = int32(F_NOWR) + } else { + v2 = int32(F_NORD) + } + (*Tmem_FILE)(unsafe.Pointer(f)).Ff.Fflags = Uint32FromInt32(v2) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(mode))) == int32('r') { + (*Tmem_FILE)(unsafe.Pointer(f)).Fc.Flen1 = size + } else { + if Int32FromUint8(**(**uint8)(__ccgo_up(mode))) == int32('a') { + v3 = Xstrnlen(tls, buf, size) + (*Tmem_FILE)(unsafe.Pointer(f)).Fc.Fpos = v3 + (*Tmem_FILE)(unsafe.Pointer(f)).Fc.Flen1 = v3 + } else { + if plus != 0 { + **(**uint8)(__ccgo_up((*Tmem_FILE)(unsafe.Pointer(f)).Fc.Fbuf)) = uint8(0) + } + } + } + (*Tmem_FILE)(unsafe.Pointer(f)).Ff.Fread = __ccgo_fp(_mread) + (*Tmem_FILE)(unsafe.Pointer(f)).Ff.Fwrite = __ccgo_fp(_mwrite) + (*Tmem_FILE)(unsafe.Pointer(f)).Ff.Fseek = __ccgo_fp(_mseek) + (*Tmem_FILE)(unsafe.Pointer(f)).Ff.Fclose1 = __ccgo_fp(_mclose) + if !(X__libc.Fthreaded != 0) { + AtomicStorePInt32(f+140, -int32(1)) + } + return X__ofl_add(tls, f) +} + +func Xfopen(tls *TLS, filename uintptr, mode uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v filename=%v mode=%v, (%v:)", tls, filename, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + var f uintptr + var fd, flags int32 + _, _, _ = f, fd, flags + /* Check for valid initial mode character */ + if !(Xstrchr(tls, __ccgo_ts+1546, Int32FromUint8(**(**uint8)(__ccgo_up(mode)))) != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(0) + } + /* Compute the flags to pass to open() */ + flags = X__fmodeflags(tls, mode) + fd = int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_open), int64(filename), int64(flags|Int32FromInt32(O_LARGEFILE)), int64(Int32FromInt32(0666)))))) + if fd < 0 { + return uintptr(0) + } + if flags&int32(O_CLOEXEC) != 0 { + X__syscall3(tls, int64(SYS_fcntl), int64(fd), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + } + f = X__fdopen(tls, fd, mode) + if f != 0 { + return f + } + X__syscall1(tls, int64(SYS_close), int64(fd)) + return uintptr(0) +} + +type Tfcookie = struct { + Fcookie uintptr + Fiofuncs Tcookie_io_functions_t +} + +type Tcookie_FILE = struct { + Ff TFILE + Ffc Tfcookie + Fbuf [1032]uint8 +} + +func _cookieread(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + var fc, v2, v3 uintptr + var len2, readlen, remain, v1 Tsize_t + var ret Tssize_t + var v4 int32 + _, _, _, _, _, _, _, _, _ = fc, len2, readlen, remain, ret, v1, v2, v3, v4 + fc = (*TFILE)(unsafe.Pointer(f)).Fcookie + ret = int64(-int32(1)) + remain = len1 + readlen = uint64(0) + len2 = len1 - BoolUint64(!!((*TFILE)(unsafe.Pointer(f)).Fbuf_size != 0)) + if !((*Tfcookie)(unsafe.Pointer(fc)).Fiofuncs.Fread != 0) { + goto bail + } + if len2 != 0 { + ret = (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tssize_t)(unsafe.Pointer(&struct{ uintptr }{(*Tfcookie)(unsafe.Pointer(fc)).Fiofuncs.Fread})))(tls, (*Tfcookie)(unsafe.Pointer(fc)).Fcookie, buf, len2) + if ret <= 0 { + goto bail + } + readlen = readlen + Uint64FromInt64(ret) + remain = remain - Uint64FromInt64(ret) + } + if !((*TFILE)(unsafe.Pointer(f)).Fbuf_size != 0) || remain > BoolUint64(!!((*TFILE)(unsafe.Pointer(f)).Fbuf_size != 0)) { + return readlen + } + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Fbuf + ret = (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tssize_t)(unsafe.Pointer(&struct{ uintptr }{(*Tfcookie)(unsafe.Pointer(fc)).Fiofuncs.Fread})))(tls, (*Tfcookie)(unsafe.Pointer(fc)).Fcookie, (*TFILE)(unsafe.Pointer(f)).Frpos, (*TFILE)(unsafe.Pointer(f)).Fbuf_size) + if ret <= 0 { + goto bail + } + (*TFILE)(unsafe.Pointer(f)).Frend = (*TFILE)(unsafe.Pointer(f)).Frpos + uintptr(ret) + v1 = readlen + readlen = readlen + 1 + v3 = f + 8 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + **(**uint8)(__ccgo_up(buf + uintptr(v1))) = **(**uint8)(__ccgo_up(v2)) + return readlen + goto bail +bail: + ; + if ret == 0 { + v4 = int32(F_EOF) + } else { + v4 = int32(F_ERR) + } + **(**uint32)(__ccgo_up(f)) |= Uint32FromInt32(v4) + v2 = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Frend = v2 + (*TFILE)(unsafe.Pointer(f)).Frpos = v2 + return readlen +} + +func _cookiewrite(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + var fc, v1, v2 uintptr + var len2 Tsize_t + var ret Tssize_t + _, _, _, _, _ = fc, len2, ret, v1, v2 + fc = (*TFILE)(unsafe.Pointer(f)).Fcookie + len2 = Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Fwpos) - int64((*TFILE)(unsafe.Pointer(f)).Fwbase)) + if !((*Tfcookie)(unsafe.Pointer(fc)).Fiofuncs.Fwrite != 0) { + return len1 + } + if len2 != 0 { + (*TFILE)(unsafe.Pointer(f)).Fwpos = (*TFILE)(unsafe.Pointer(f)).Fwbase + if _cookiewrite(tls, f, (*TFILE)(unsafe.Pointer(f)).Fwpos, len2) < len2 { + return uint64(0) + } + } + ret = (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tssize_t)(unsafe.Pointer(&struct{ uintptr }{(*Tfcookie)(unsafe.Pointer(fc)).Fiofuncs.Fwrite})))(tls, (*Tfcookie)(unsafe.Pointer(fc)).Fcookie, buf, len1) + if ret < 0 { + v2 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Fwend = v2 + v1 = v2 + (*TFILE)(unsafe.Pointer(f)).Fwbase = v1 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v1 + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) + return uint64(0) + } + return Uint64FromInt64(ret) +} + +func _cookieseek(tls *TLS, f uintptr, _off Toff_t, whence int32) (r Toff_t) { + bp := tls.Alloc(16) + defer tls.Free(16) + *(*Toff_t)(unsafe.Pointer(bp)) = _off + var fc uintptr + var res int32 + _, _ = fc, res + fc = (*TFILE)(unsafe.Pointer(f)).Fcookie + if Uint32FromInt32(whence) > uint32(2) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return int64(-int32(1)) + } + if !((*Tfcookie)(unsafe.Pointer(fc)).Fiofuncs.Fseek != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOPNOTSUPP) + return int64(-int32(1)) + } + res = (*(*func(*TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(&struct{ uintptr }{(*Tfcookie)(unsafe.Pointer(fc)).Fiofuncs.Fseek})))(tls, (*Tfcookie)(unsafe.Pointer(fc)).Fcookie, bp, whence) + if res < 0 { + return int64(res) + } + return **(**Toff_t)(__ccgo_up(bp)) +} + +func _cookieclose(tls *TLS, f uintptr) (r int32) { + var fc uintptr + _ = fc + fc = (*TFILE)(unsafe.Pointer(f)).Fcookie + if (*Tfcookie)(unsafe.Pointer(fc)).Fiofuncs.Fclose1 != 0 { + return (*(*func(*TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*Tfcookie)(unsafe.Pointer(fc)).Fiofuncs.Fclose1})))(tls, (*Tfcookie)(unsafe.Pointer(fc)).Fcookie) + } + return 0 +} + +func Xfopencookie(tls *TLS, cookie uintptr, mode uintptr, iofuncs Tcookie_io_functions_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v cookie=%v mode=%v iofuncs=%v, (%v:)", tls, cookie, mode, iofuncs, origin(2)) + defer func() { trc("-> %v", r) }() + } + var f, v1 uintptr + var v2 int32 + _, _, _ = f, v1, v2 + /* Check for valid initial mode character */ + if !(Xstrchr(tls, __ccgo_ts+1546, Int32FromUint8(**(**uint8)(__ccgo_up(mode)))) != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(0) + } + /* Allocate FILE+fcookie+buffer or fail */ + v1 = Xmalloc(tls, uint64(1304)) + f = v1 + if !(v1 != 0) { + return uintptr(0) + } + /* Zero-fill only the struct, not the buffer */ + Xmemset(tls, f, 0, uint64(232)) + /* Impose mode restrictions */ + if !(Xstrchr(tls, mode, int32('+')) != 0) { + if Int32FromUint8(**(**uint8)(__ccgo_up(mode))) == int32('r') { + v2 = int32(F_NOWR) + } else { + v2 = int32(F_NORD) + } + (*Tcookie_FILE)(unsafe.Pointer(f)).Ff.Fflags = Uint32FromInt32(v2) + } + /* Set up our fcookie */ + (*Tcookie_FILE)(unsafe.Pointer(f)).Ffc.Fcookie = cookie + (*Tcookie_FILE)(unsafe.Pointer(f)).Ffc.Fiofuncs = iofuncs + (*Tcookie_FILE)(unsafe.Pointer(f)).Ff.Ffd = -int32(1) + (*Tcookie_FILE)(unsafe.Pointer(f)).Ff.Fcookie = f + 232 + (*Tcookie_FILE)(unsafe.Pointer(f)).Ff.Fbuf = f + 272 + uintptr(UNGET) + (*Tcookie_FILE)(unsafe.Pointer(f)).Ff.Fbuf_size = Uint64FromInt64(1032) - Uint64FromInt32(UNGET) + (*Tcookie_FILE)(unsafe.Pointer(f)).Ff.Flbf = -int32(1) + /* Initialize op ptrs. No problem if some are unneeded. */ + (*Tcookie_FILE)(unsafe.Pointer(f)).Ff.Fread = __ccgo_fp(_cookieread) + (*Tcookie_FILE)(unsafe.Pointer(f)).Ff.Fwrite = __ccgo_fp(_cookiewrite) + (*Tcookie_FILE)(unsafe.Pointer(f)).Ff.Fseek = __ccgo_fp(_cookieseek) + (*Tcookie_FILE)(unsafe.Pointer(f)).Ff.Fclose1 = __ccgo_fp(_cookieclose) + /* Add new FILE to open file list */ + return X__ofl_add(tls, f) +} + +func Xfprintf(tls *TLS, f uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v va=%v, (%v:)", tls, f, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvfprintf(tls, f, fmt, ap) + _ = ap + return ret +} + +func _locking_putc(tls *TLS, c int32, f uintptr) (r1 int32) { + var old, old1, r, v, v10, v12, v18, v3, v8 int32 + var v1, v14, v2, v7 uintptr + var v13 uint8 + var v5 bool + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = old, old1, r, v, v1, v10, v12, v13, v14, v18, v2, v3, v5, v7, v8 + v1 = f + 140 + // __asm__ __volatile__ ("sync" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 40, __ccgo_ts+1563) + for { + v7 = v1 + // __asm__ __volatile__ ("lwarx %0, 0, %2" : "=r"(v) : "m"(*p), "r"(p)); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 5, __ccgo_ts+1563) + v8 = v + goto _9 + _9: + old = v8 + goto _6 + _6: + ; + if v5 = old == 0; v5 { + v2 = v1 + // __asm__ __volatile__ ( + // + // "stwcx. %2, 0, %3 ; mfcr %0" + // : "=r"(r), "=m"(*p) : "r"(v), "r"(p) : "memory", "cc"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 13, __ccgo_ts+1563) + v3 = r & int32(0x20000000) + goto _4 + _4: + } + if !(v5 && !(v3 != 0)) { + break + } + } + // __asm__ __volatile__ ("isync" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 48, __ccgo_ts+1563) + v10 = old + goto _11 +_11: + if v10 != 0 { + ___lockfile(tls, f) + } + if Int32FromUint8(Uint8FromInt32(c)) != (*TFILE)(unsafe.Pointer(f)).Flbf && (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwend { + v13 = Uint8FromInt32(c) + v2 = f + 40 + v1 = *(*uintptr)(unsafe.Pointer(v2)) + *(*uintptr)(unsafe.Pointer(v2)) = *(*uintptr)(unsafe.Pointer(v2)) + 1 + **(**uint8)(__ccgo_up(v1)) = v13 + v3 = Int32FromUint8(v13) + } else { + v3 = X__overflow(tls, f, Int32FromUint8(Uint8FromInt32(c))) + } + c = v3 + v1 = f + 140 + // __asm__ __volatile__ ("sync" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 40, __ccgo_ts+1563) + for { + v7 = v1 + // __asm__ __volatile__ ("lwarx %0, 0, %2" : "=r"(v) : "m"(*p), "r"(p)); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 5, __ccgo_ts+1563) + v8 = v + goto _23 + _23: + old1 = v8 + goto _20 + _20: + ; + v2 = v1 + // __asm__ __volatile__ ( + // + // "stwcx. %2, 0, %3 ; mfcr %0" + // : "=r"(r), "=m"(*p) : "r"(v), "r"(p) : "memory", "cc"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 13, __ccgo_ts+1563) + v3 = r & int32(0x20000000) + goto _19 + _19: + ; + if !!(v3 != 0) { + break + } + } + // __asm__ __volatile__ ("isync" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 48, __ccgo_ts+1563) + v10 = old1 + goto _25 +_25: + if v10&int32(MAYBE_WAITERS) != 0 { + v14 = f + 140 + v12 = int32(1) + v18 = int32(1) + if v18 != 0 { + v18 = int32(FUTEX_PRIVATE) + } + if v12 < Int32FromInt32(0) { + v12 = int32(INT_MAX) + } + _ = X__syscall3(tls, int64(SYS_futex), int64(v14), int64(Int32FromInt32(FUTEX_WAKE)|v18), int64(v12)) != int64(-int32(ENOSYS)) || X__syscall3(tls, int64(SYS_futex), int64(v14), int64(Int32FromInt32(FUTEX_WAKE)), int64(v12)) != 0 + } + return c +} + +func Xfputc(tls *TLS, c1 int32, f1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v c1=%v f1=%v, (%v:)", tls, c1, f1, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l, v1, v3, v5 int32 + var v2, v7, v8 uintptr + var v6 uint8 + _, _, _, _, _, _, _, _ = l, v1, v2, v3, v5, v6, v7, v8 + v1 = c1 + v2 = f1 + l = AtomicLoadPInt32(v2 + 140) + if l < 0 || l != 0 && l & ^Int32FromInt32(MAYBE_WAITERS) == (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Ftid { + if Int32FromUint8(Uint8FromInt32(v1)) != (*TFILE)(unsafe.Pointer(v2)).Flbf && (*TFILE)(unsafe.Pointer(v2)).Fwpos != (*TFILE)(unsafe.Pointer(v2)).Fwend { + v6 = Uint8FromInt32(v1) + v8 = v2 + 40 + v7 = *(*uintptr)(unsafe.Pointer(v8)) + *(*uintptr)(unsafe.Pointer(v8)) = *(*uintptr)(unsafe.Pointer(v8)) + 1 + **(**uint8)(__ccgo_up(v7)) = v6 + v5 = Int32FromUint8(v6) + } else { + v5 = X__overflow(tls, v2, Int32FromUint8(Uint8FromInt32(v1))) + } + v3 = v5 + goto _4 + } + v3 = _locking_putc(tls, v1, v2) + goto _4 +_4: + return v3 +} + +func Xfputs(tls *TLS, s uintptr, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v f=%v, (%v:)", tls, s, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l Tsize_t + _ = l + l = _strlen(tls, s) + return BoolInt32(Xfwrite(tls, s, uint64(1), l, f) == l) - int32(1) +} + +func Xfputs_unlocked(tls *TLS, s uintptr, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v f=%v, (%v:)", tls, s, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfputs(tls, s, f) +} + +func X__fputwc_unlocked(tls *TLS, c Twchar_t, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v f=%v, (%v:)", tls, c, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var l, v1 int32 + var loc Tlocale_t + var ploc, v3, v4 uintptr + var v2 uint8 + var _ /* mbc at bp+0 */ [4]uint8 + _, _, _, _, _, _, _ = l, loc, ploc, v1, v2, v3, v4 + ploc = uintptr(___get_tp(tls)) + 152 + loc = **(**Tlocale_t)(__ccgo_up(ploc)) + if (*TFILE)(unsafe.Pointer(f)).Fmode <= 0 { + Xfwide(tls, f, int32(1)) + } + **(**Tlocale_t)(__ccgo_up(ploc)) = (*TFILE)(unsafe.Pointer(f)).Flocale + if BoolInt32(Uint32FromInt32(c) < uint32(128)) != 0 { + if Int32FromUint8(Uint8FromInt32(c)) != (*TFILE)(unsafe.Pointer(f)).Flbf && (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwend { + v2 = Uint8FromInt32(c) + v4 = f + 40 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + **(**uint8)(__ccgo_up(v3)) = v2 + v1 = Int32FromUint8(v2) + } else { + v1 = X__overflow(tls, f, Int32FromUint8(Uint8FromInt32(c))) + } + c = v1 + } else { + if (*TFILE)(unsafe.Pointer(f)).Fwpos+uintptr(MB_LEN_MAX) < (*TFILE)(unsafe.Pointer(f)).Fwend { + l = Xwctomb(tls, (*TFILE)(unsafe.Pointer(f)).Fwpos, c) + if l < 0 { + c = Int32FromUint32(0xffffffff) + } else { + **(**uintptr)(__ccgo_up(f + 40)) += uintptr(l) + } + } else { + l = Xwctomb(tls, bp, c) + if l < 0 || X__fwritex(tls, bp, Uint64FromInt32(l), f) < Uint64FromInt32(l) { + c = Int32FromUint32(0xffffffff) + } + } + } + if Uint32FromInt32(c) == uint32(0xffffffff) { + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) + } + **(**Tlocale_t)(__ccgo_up(ploc)) = loc + return Uint32FromInt32(c) +} + +func Xfputwc(tls *TLS, c Twchar_t, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v f=%v, (%v:)", tls, c, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, v1 int32 + _, _ = __need_unlock, v1 + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + c = Int32FromUint32(X__fputwc_unlocked(tls, c, f)) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return Uint32FromInt32(c) +} + +func Xfputwc_unlocked(tls *TLS, c Twchar_t, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v f=%v, (%v:)", tls, c, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fputwc_unlocked(tls, c, f) +} + +func Xputwc_unlocked(tls *TLS, c Twchar_t, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v f=%v, (%v:)", tls, c, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fputwc_unlocked(tls, c, f) +} + +func Xfputws(tls *TLS, _ws uintptr, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v _ws=%v f=%v, (%v:)", tls, _ws, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(1040) + defer tls.Free(1040) + *(*uintptr)(unsafe.Pointer(bp)) = _ws + var __need_unlock, v1 int32 + var l, v2 Tsize_t + var loc Tlocale_t + var ploc uintptr + var v3 bool + var _ /* buf at bp+8 */ [1024]uint8 + _, _, _, _, _, _, _ = __need_unlock, l, loc, ploc, v1, v2, v3 + l = uint64(0) + ploc = uintptr(___get_tp(tls)) + 152 + loc = **(**Tlocale_t)(__ccgo_up(ploc)) + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + Xfwide(tls, f, int32(1)) + **(**Tlocale_t)(__ccgo_up(ploc)) = (*TFILE)(unsafe.Pointer(f)).Flocale + for { + if v3 = **(**uintptr)(__ccgo_up(bp)) != 0; v3 { + v2 = Xwcsrtombs(tls, bp+8, bp, uint64(1024), uintptr(0)) + l = v2 + } + if !(v3 && v2+uint64(1) > uint64(1)) { + break + } + if X__fwritex(tls, bp+8, l, f) < l { + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + **(**Tlocale_t)(__ccgo_up(ploc)) = loc + return -int32(1) + } + } + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + **(**Tlocale_t)(__ccgo_up(ploc)) = loc + return Int32FromUint64(l) /* 0 or -1 */ +} + +func Xfputws_unlocked(tls *TLS, _ws uintptr, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v _ws=%v f=%v, (%v:)", tls, _ws, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfputws(tls, _ws, f) +} + +func Xfread(tls *TLS, destv uintptr, size Tsize_t, nmemb Tsize_t, f uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v destv=%v size=%v nmemb=%v f=%v, (%v:)", tls, destv, size, nmemb, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, v1 int32 + var dest uintptr + var k, l, len1 Tsize_t + var v2 uint64 + _, _, _, _, _, _, _ = __need_unlock, dest, k, l, len1, v1, v2 + dest = destv + len1 = size * nmemb + l = len1 + if !(size != 0) { + nmemb = uint64(0) + } + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + **(**int32)(__ccgo_up(f + 136)) |= (*TFILE)(unsafe.Pointer(f)).Fmode - int32(1) + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + /* First exhaust the buffer. */ + if Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Frend)-int64((*TFILE)(unsafe.Pointer(f)).Frpos)) < l { + v2 = Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Frend) - int64((*TFILE)(unsafe.Pointer(f)).Frpos)) + } else { + v2 = l + } + k = v2 + Xmemcpy(tls, dest, (*TFILE)(unsafe.Pointer(f)).Frpos, k) + **(**uintptr)(__ccgo_up(f + 8)) += uintptr(k) + dest = dest + uintptr(k) + l = l - k + } + /* Read the remainder directly */ + for { + if !(l != 0) { + break + } + if X__toread(tls, f) != 0 { + v2 = uint64(0) + } else { + v2 = (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tsize_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fread})))(tls, f, dest, l) + } + k = v2 + if !(k != 0) { + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return (len1 - l) / size + } + goto _3 + _3: + ; + l = l - k + dest = dest + uintptr(k) + } + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return nmemb +} + +func Xfread_unlocked(tls *TLS, destv uintptr, size Tsize_t, nmemb Tsize_t, f uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v destv=%v size=%v nmemb=%v f=%v, (%v:)", tls, destv, size, nmemb, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfread(tls, destv, size, nmemb, f) +} + +/* The basic idea of this implementation is to open a new FILE, + * hack the necessary parts of the new FILE into the old one, then + * close the new FILE. */ + +/* Locking IS necessary because another thread may provably hold the + * lock, via flockfile or otherwise, when freopen is called, and in that + * case, freopen cannot act until the lock is released. */ + +func Xfreopen(tls *TLS, filename uintptr, mode uintptr, f uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v filename=%v mode=%v f=%v, (%v:)", tls, filename, mode, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, fl, v1 int32 + var f2 uintptr + _, _, _, _ = __need_unlock, f2, fl, v1 + fl = X__fmodeflags(tls, mode) + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + Xfflush(tls, f) + if !(filename != 0) { + if fl&int32(O_CLOEXEC) != 0 { + X__syscall3(tls, int64(SYS_fcntl), int64((*TFILE)(unsafe.Pointer(f)).Ffd), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + } + fl = fl & ^(Int32FromInt32(O_CREAT) | Int32FromInt32(O_EXCL) | Int32FromInt32(O_CLOEXEC)) + if X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_fcntl), int64((*TFILE)(unsafe.Pointer(f)).Ffd), int64(Int32FromInt32(F_SETFL)), int64(fl)))) < 0 { + goto fail + } + } else { + f2 = Xfopen(tls, filename, mode) + if !(f2 != 0) { + goto fail + } + if (*TFILE)(unsafe.Pointer(f2)).Ffd == (*TFILE)(unsafe.Pointer(f)).Ffd { + (*TFILE)(unsafe.Pointer(f2)).Ffd = -int32(1) + } else { + if X__dup3(tls, (*TFILE)(unsafe.Pointer(f2)).Ffd, (*TFILE)(unsafe.Pointer(f)).Ffd, fl&int32(O_CLOEXEC)) < 0 { + goto fail2 + } + } + (*TFILE)(unsafe.Pointer(f)).Fflags = (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_PERM) | (*TFILE)(unsafe.Pointer(f2)).Fflags + (*TFILE)(unsafe.Pointer(f)).Fread = (*TFILE)(unsafe.Pointer(f2)).Fread + (*TFILE)(unsafe.Pointer(f)).Fwrite = (*TFILE)(unsafe.Pointer(f2)).Fwrite + (*TFILE)(unsafe.Pointer(f)).Fseek = (*TFILE)(unsafe.Pointer(f2)).Fseek + (*TFILE)(unsafe.Pointer(f)).Fclose1 = (*TFILE)(unsafe.Pointer(f2)).Fclose1 + Xfclose(tls, f2) + } + (*TFILE)(unsafe.Pointer(f)).Fmode = 0 + (*TFILE)(unsafe.Pointer(f)).Flocale = uintptr(0) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return f + goto fail2 +fail2: + ; + Xfclose(tls, f2) + goto fail +fail: + ; + Xfclose(tls, f) + return UintptrFromInt32(0) +} + +func Xfscanf(tls *TLS, f uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v va=%v, (%v:)", tls, f, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvfscanf(tls, f, fmt, ap) + _ = ap + return ret +} + +func X__isoc99_fscanf(tls *TLS, f uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v va=%v, (%v:)", tls, f, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfscanf(tls, f, fmt, va) +} + +func X__fseeko_unlocked(tls *TLS, f uintptr, off Toff_t, whence int32) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v off=%v whence=%v, (%v:)", tls, f, off, whence, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1, v2 uintptr + _, _ = v1, v2 + /* Fail immediately for invalid whence argument. */ + if whence != int32(1) && whence != 0 && whence != int32(2) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + /* Adjust relative offset for unread data in buffer, if any. */ + if whence == int32(1) && (*TFILE)(unsafe.Pointer(f)).Frend != 0 { + off = off - (int64((*TFILE)(unsafe.Pointer(f)).Frend) - int64((*TFILE)(unsafe.Pointer(f)).Frpos)) + } + /* Flush write buffer, and report error on failure. */ + if (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwbase { + (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tsize_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fwrite})))(tls, f, uintptr(0), uint64(0)) + if !((*TFILE)(unsafe.Pointer(f)).Fwpos != 0) { + return -int32(1) + } + } + /* Leave writing mode */ + v2 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Fwend = v2 + v1 = v2 + (*TFILE)(unsafe.Pointer(f)).Fwbase = v1 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v1 + /* Perform the underlying seek. */ + if (*(*func(*TLS, uintptr, Toff_t, int32) Toff_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fseek})))(tls, f, off, whence) < 0 { + return -int32(1) + } + /* If seek succeeded, file is seekable and we discard read buffer. */ + v1 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Frend = v1 + (*TFILE)(unsafe.Pointer(f)).Frpos = v1 + **(**uint32)(__ccgo_up(f)) &= Uint32FromInt32(^Int32FromInt32(F_EOF)) + return 0 +} + +func X__fseeko(tls *TLS, f uintptr, off Toff_t, whence int32) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v off=%v whence=%v, (%v:)", tls, f, off, whence, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, result, v1 int32 + _, _, _ = __need_unlock, result, v1 + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + result = X__fseeko_unlocked(tls, f, off, whence) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return result +} + +func Xfseek(tls *TLS, f uintptr, off int64, whence int32) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v off=%v whence=%v, (%v:)", tls, f, off, whence, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fseeko(tls, f, off, whence) +} + +func Xfseeko(tls *TLS, f uintptr, off Toff_t, whence int32) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v off=%v whence=%v, (%v:)", tls, f, off, whence, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fseeko(tls, f, off, whence) +} + +func Xfsetpos(tls *TLS, f uintptr, pos uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v pos=%v, (%v:)", tls, f, pos, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fseeko(tls, f, int64(**(**int64)(__ccgo_up(pos))), 0) +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func X__ftello_unlocked(tls *TLS, f uintptr) (r Toff_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var pos Toff_t + var v1 int32 + _, _ = pos, v1 + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_APP) != 0 && (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwbase { + v1 = int32(2) + } else { + v1 = int32(1) + } + pos = (*(*func(*TLS, uintptr, Toff_t, int32) Toff_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fseek})))(tls, f, 0, v1) + if pos < 0 { + return pos + } + /* Adjust for data in buffer. */ + if (*TFILE)(unsafe.Pointer(f)).Frend != 0 { + pos = pos + (int64((*TFILE)(unsafe.Pointer(f)).Frpos) - int64((*TFILE)(unsafe.Pointer(f)).Frend)) + } else { + if (*TFILE)(unsafe.Pointer(f)).Fwbase != 0 { + pos = pos + (int64((*TFILE)(unsafe.Pointer(f)).Fwpos) - int64((*TFILE)(unsafe.Pointer(f)).Fwbase)) + } + } + return pos +} + +func X__ftello(tls *TLS, f uintptr) (r Toff_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, v1 int32 + var pos Toff_t + _, _, _ = __need_unlock, pos, v1 + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + pos = X__ftello_unlocked(tls, f) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return pos +} + +func Xftell(tls *TLS, f uintptr) (r int64) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var pos Toff_t + _ = pos + pos = X__ftello(tls, f) + if pos > int64(0x7fffffffffffffff) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOVERFLOW) + return int64(-int32(1)) + } + return pos +} + +func Xftello(tls *TLS, f uintptr) (r Toff_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__ftello(tls, f) +} + +func X__do_orphaned_stdio_locks(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + var f uintptr + _ = f + f = (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Fstdio_locks + for { + if !(f != 0) { + break + } + // __asm__ __volatile__ ("sync" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 40, __ccgo_ts+1576) + AtomicStorePInt32(f+140, int32(0x40000000)) + // __asm__ __volatile__ ("sync" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 40, __ccgo_ts+1576) + goto _1 + _1: + ; + f = (*TFILE)(unsafe.Pointer(f)).Fnext_locked + } +} + +func X__unlist_locked_file(tls *TLS, f uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } + if (*TFILE)(unsafe.Pointer(f)).Flockcount != 0 { + if (*TFILE)(unsafe.Pointer(f)).Fnext_locked != 0 { + (*TFILE)(unsafe.Pointer((*TFILE)(unsafe.Pointer(f)).Fnext_locked)).Fprev_locked = (*TFILE)(unsafe.Pointer(f)).Fprev_locked + } + if (*TFILE)(unsafe.Pointer(f)).Fprev_locked != 0 { + (*TFILE)(unsafe.Pointer((*TFILE)(unsafe.Pointer(f)).Fprev_locked)).Fnext_locked = (*TFILE)(unsafe.Pointer(f)).Fnext_locked + } else { + (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Fstdio_locks = (*TFILE)(unsafe.Pointer(f)).Fnext_locked + } + } +} + +func X__register_locked_file(tls *TLS, f uintptr, self Tpthread_t) { + if __ccgo_strace { + trc("tls=%v f=%v self=%v, (%v:)", tls, f, self, origin(2)) + } + (*TFILE)(unsafe.Pointer(f)).Flockcount = int64(1) + (*TFILE)(unsafe.Pointer(f)).Fprev_locked = uintptr(0) + (*TFILE)(unsafe.Pointer(f)).Fnext_locked = (*t__pthread)(unsafe.Pointer(self)).Fstdio_locks + if (*TFILE)(unsafe.Pointer(f)).Fnext_locked != 0 { + (*TFILE)(unsafe.Pointer((*TFILE)(unsafe.Pointer(f)).Fnext_locked)).Fprev_locked = f + } + (*t__pthread)(unsafe.Pointer(self)).Fstdio_locks = f +} + +func Xftrylockfile(tls *TLS, f uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var old, owner, r, tid, v, v1, v4, v9 int32 + var self Tpthread_t + var v13, v6 bool + var v2, v3, v8 uintptr + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = old, owner, r, self, tid, v, v1, v13, v2, v3, v4, v6, v8, v9 + self = uintptr(___get_tp(tls)) + tid = (*t__pthread)(unsafe.Pointer(self)).Ftid + owner = AtomicLoadPInt32(f + 140) + if owner & ^Int32FromInt32(MAYBE_WAITERS) == tid { + if (*TFILE)(unsafe.Pointer(f)).Flockcount == int64(0x7fffffffffffffff) { + return -int32(1) + } + (*TFILE)(unsafe.Pointer(f)).Flockcount = (*TFILE)(unsafe.Pointer(f)).Flockcount + 1 + return 0 + } + if owner < 0 { + v1 = Int32FromInt32(0) + owner = v1 + AtomicStorePInt32(f+140, v1) + } + if v13 = owner != 0; !v13 { + v2 = f + 140 + // __asm__ __volatile__ ("sync" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 40, __ccgo_ts+1602) + for { + v8 = v2 + // __asm__ __volatile__ ("lwarx %0, 0, %2" : "=r"(v) : "m"(*p), "r"(p)); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 5, __ccgo_ts+1602) + v4 = v + goto _10 + _10: + old = v4 + goto _7 + _7: + ; + if v6 = old == 0; v6 { + v3 = v2 + // __asm__ __volatile__ ( + // + // "stwcx. %2, 0, %3 ; mfcr %0" + // : "=r"(r), "=m"(*p) : "r"(v), "r"(p) : "memory", "cc"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 13, __ccgo_ts+1602) + v1 = r & int32(0x20000000) + goto _5 + _5: + } + if !(v6 && !(v1 != 0)) { + break + } + } + // __asm__ __volatile__ ("isync" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 48, __ccgo_ts+1602) + v9 = old + goto _12 + _12: + } + if v13 || v9 != 0 { + return -int32(1) + } + X__register_locked_file(tls, f, self) + return 0 +} + +func Xfunlockfile(tls *TLS, f uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } + if (*TFILE)(unsafe.Pointer(f)).Flockcount == int64(1) { + X__unlist_locked_file(tls, f) + (*TFILE)(unsafe.Pointer(f)).Flockcount = 0 + ___unlockfile(tls, f) + } else { + (*TFILE)(unsafe.Pointer(f)).Flockcount = (*TFILE)(unsafe.Pointer(f)).Flockcount - 1 + } +} + +func Xfwide(tls *TLS, f uintptr, mode int32) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v mode=%v, (%v:)", tls, f, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, v1, v3 int32 + var v2 Tlocale_t + _, _, _, _ = __need_unlock, v1, v2, v3 + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + if mode != 0 { + if !((*TFILE)(unsafe.Pointer(f)).Flocale != 0) { + if !!(**(**uintptr)(__ccgo_up((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale)) != 0) { + v3 = int32(4) + } else { + v3 = int32(1) + } + if v3 == int32(1) { + v2 = uintptr(unsafe.Pointer(&X__c_locale)) + } else { + v2 = uintptr(unsafe.Pointer(&X__c_dot_utf8_locale)) + } + (*TFILE)(unsafe.Pointer(f)).Flocale = v2 + } + if !((*TFILE)(unsafe.Pointer(f)).Fmode != 0) { + if mode > 0 { + v1 = int32(1) + } else { + v1 = -int32(1) + } + (*TFILE)(unsafe.Pointer(f)).Fmode = v1 + } + } + mode = (*TFILE)(unsafe.Pointer(f)).Fmode + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return mode +} + +func Xfwprintf(tls *TLS, f uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v va=%v, (%v:)", tls, f, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvfwprintf(tls, f, fmt, ap) + _ = ap + return ret +} + +func X__fwritex(tls *TLS, s uintptr, l Tsize_t, f uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v l=%v f=%v, (%v:)", tls, s, l, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var i, n Tsize_t + _, _ = i, n + i = uint64(0) + if !((*TFILE)(unsafe.Pointer(f)).Fwend != 0) && X__towrite(tls, f) != 0 { + return uint64(0) + } + if l > Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Fwend)-int64((*TFILE)(unsafe.Pointer(f)).Fwpos)) { + return (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tsize_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fwrite})))(tls, f, s, l) + } + if (*TFILE)(unsafe.Pointer(f)).Flbf >= 0 { + /* Match /^(.*\n|)/ */ + i = l + for { + if !(i != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(i-uint64(1))))) != int32('\n')) { + break + } + goto _1 + _1: + ; + i = i - 1 + } + if i != 0 { + n = (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tsize_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fwrite})))(tls, f, s, i) + if n < i { + return n + } + s = s + uintptr(i) + l = l - i + } + } + Xmemcpy(tls, (*TFILE)(unsafe.Pointer(f)).Fwpos, s, l) + **(**uintptr)(__ccgo_up(f + 40)) += uintptr(l) + return l + i +} + +func Xfwrite(tls *TLS, src uintptr, size Tsize_t, nmemb Tsize_t, f uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v src=%v size=%v nmemb=%v f=%v, (%v:)", tls, src, size, nmemb, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, v1 int32 + var k, l Tsize_t + var v2 uint64 + _, _, _, _, _ = __need_unlock, k, l, v1, v2 + l = size * nmemb + if !(size != 0) { + nmemb = uint64(0) + } + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + k = X__fwritex(tls, src, l, f) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + if k == l { + v2 = nmemb + } else { + v2 = k / size + } + return v2 +} + +func Xfwrite_unlocked(tls *TLS, src uintptr, size Tsize_t, nmemb Tsize_t, f uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v src=%v size=%v nmemb=%v f=%v, (%v:)", tls, src, size, nmemb, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfwrite(tls, src, size, nmemb, f) +} + +func Xfwscanf(tls *TLS, f uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v va=%v, (%v:)", tls, f, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvfwscanf(tls, f, fmt, ap) + _ = ap + return ret +} + +func X__isoc99_fwscanf(tls *TLS, f uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v va=%v, (%v:)", tls, f, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfwscanf(tls, f, fmt, va) +} + +func _locking_getc1(tls *TLS, f uintptr) (r1 int32) { + var c, old, old1, r, v, v10, v12, v17, v21, v3, v8 int32 + var v1, v13, v14, v15, v2, v7 uintptr + var v5 bool + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = c, old, old1, r, v, v1, v10, v12, v13, v14, v15, v17, v2, v21, v3, v5, v7, v8 + v1 = f + 140 + // __asm__ __volatile__ ("sync" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 40, __ccgo_ts+1550) + for { + v7 = v1 + // __asm__ __volatile__ ("lwarx %0, 0, %2" : "=r"(v) : "m"(*p), "r"(p)); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 5, __ccgo_ts+1550) + v8 = v + goto _9 + _9: + old = v8 + goto _6 + _6: + ; + if v5 = old == 0; v5 { + v2 = v1 + // __asm__ __volatile__ ( + // + // "stwcx. %2, 0, %3 ; mfcr %0" + // : "=r"(r), "=m"(*p) : "r"(v), "r"(p) : "memory", "cc"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 13, __ccgo_ts+1550) + v3 = r & int32(0x20000000) + goto _4 + _4: + } + if !(v5 && !(v3 != 0)) { + break + } + } + // __asm__ __volatile__ ("isync" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 48, __ccgo_ts+1550) + v10 = old + goto _11 +_11: + if v10 != 0 { + ___lockfile(tls, f) + } + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + v2 = f + 8 + v1 = *(*uintptr)(unsafe.Pointer(v2)) + *(*uintptr)(unsafe.Pointer(v2)) = *(*uintptr)(unsafe.Pointer(v2)) + 1 + v3 = Int32FromUint8(**(**uint8)(__ccgo_up(v1))) + } else { + v3 = X__uflow(tls, f) + } + c = v3 + v7 = f + 140 + // __asm__ __volatile__ ("sync" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 40, __ccgo_ts+1550) + for { + v14 = v7 + // __asm__ __volatile__ ("lwarx %0, 0, %2" : "=r"(v) : "m"(*p), "r"(p)); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 5, __ccgo_ts+1550) + v10 = v + goto _22 + _22: + old1 = v10 + goto _19 + _19: + ; + v13 = v7 + // __asm__ __volatile__ ( + // + // "stwcx. %2, 0, %3 ; mfcr %0" + // : "=r"(r), "=m"(*p) : "r"(v), "r"(p) : "memory", "cc"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 13, __ccgo_ts+1550) + v8 = r & int32(0x20000000) + goto _18 + _18: + ; + if !!(v8 != 0) { + break + } + } + // __asm__ __volatile__ ("isync" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 48, __ccgo_ts+1550) + v12 = old1 + goto _24 +_24: + if v12&int32(MAYBE_WAITERS) != 0 { + v15 = f + 140 + v17 = int32(1) + v21 = int32(1) + if v21 != 0 { + v21 = int32(FUTEX_PRIVATE) + } + if v17 < Int32FromInt32(0) { + v17 = int32(INT_MAX) + } + _ = X__syscall3(tls, int64(SYS_futex), int64(v15), int64(Int32FromInt32(FUTEX_WAKE)|v21), int64(v17)) != int64(-int32(ENOSYS)) || X__syscall3(tls, int64(SYS_futex), int64(v15), int64(Int32FromInt32(FUTEX_WAKE)), int64(v17)) != 0 + } + return c +} + +func Xgetc(tls *TLS, f1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f1=%v, (%v:)", tls, f1, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l, v2, v4 int32 + var v1, v5, v6 uintptr + _, _, _, _, _, _ = l, v1, v2, v4, v5, v6 + v1 = f1 + l = AtomicLoadPInt32(v1 + 140) + if l < 0 || l != 0 && l & ^Int32FromInt32(MAYBE_WAITERS) == (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Ftid { + if (*TFILE)(unsafe.Pointer(v1)).Frpos != (*TFILE)(unsafe.Pointer(v1)).Frend { + v6 = v1 + 8 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + v4 = Int32FromUint8(**(**uint8)(__ccgo_up(v5))) + } else { + v4 = X__uflow(tls, v1) + } + v2 = v4 + goto _3 + } + v2 = _locking_getc1(tls, v1) + goto _3 +_3: + return v2 +} + +func X_IO_getc(tls *TLS, f1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f1=%v, (%v:)", tls, f1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetc(tls, f1) +} + +func Xgetc_unlocked(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + var v2, v3 uintptr + _, _, _ = v1, v2, v3 + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + v3 = f + 8 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__uflow(tls, f) + } + return v1 +} + +func X_IO_getc_unlocked(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetc_unlocked(tls, f) +} + +func Xfgetc_unlocked(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetc_unlocked(tls, f) +} + +func _locking_getc2(tls *TLS, f uintptr) (r1 int32) { + var c, old, old1, r, v, v10, v12, v17, v21, v3, v8 int32 + var v1, v13, v14, v15, v2, v7 uintptr + var v5 bool + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = c, old, old1, r, v, v1, v10, v12, v13, v14, v15, v17, v2, v21, v3, v5, v7, v8 + v1 = f + 140 + // __asm__ __volatile__ ("sync" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 40, __ccgo_ts+1550) + for { + v7 = v1 + // __asm__ __volatile__ ("lwarx %0, 0, %2" : "=r"(v) : "m"(*p), "r"(p)); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 5, __ccgo_ts+1550) + v8 = v + goto _9 + _9: + old = v8 + goto _6 + _6: + ; + if v5 = old == 0; v5 { + v2 = v1 + // __asm__ __volatile__ ( + // + // "stwcx. %2, 0, %3 ; mfcr %0" + // : "=r"(r), "=m"(*p) : "r"(v), "r"(p) : "memory", "cc"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 13, __ccgo_ts+1550) + v3 = r & int32(0x20000000) + goto _4 + _4: + } + if !(v5 && !(v3 != 0)) { + break + } + } + // __asm__ __volatile__ ("isync" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 48, __ccgo_ts+1550) + v10 = old + goto _11 +_11: + if v10 != 0 { + ___lockfile(tls, f) + } + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + v2 = f + 8 + v1 = *(*uintptr)(unsafe.Pointer(v2)) + *(*uintptr)(unsafe.Pointer(v2)) = *(*uintptr)(unsafe.Pointer(v2)) + 1 + v3 = Int32FromUint8(**(**uint8)(__ccgo_up(v1))) + } else { + v3 = X__uflow(tls, f) + } + c = v3 + v7 = f + 140 + // __asm__ __volatile__ ("sync" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 40, __ccgo_ts+1550) + for { + v14 = v7 + // __asm__ __volatile__ ("lwarx %0, 0, %2" : "=r"(v) : "m"(*p), "r"(p)); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 5, __ccgo_ts+1550) + v10 = v + goto _22 + _22: + old1 = v10 + goto _19 + _19: + ; + v13 = v7 + // __asm__ __volatile__ ( + // + // "stwcx. %2, 0, %3 ; mfcr %0" + // : "=r"(r), "=m"(*p) : "r"(v), "r"(p) : "memory", "cc"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 13, __ccgo_ts+1550) + v8 = r & int32(0x20000000) + goto _18 + _18: + ; + if !!(v8 != 0) { + break + } + } + // __asm__ __volatile__ ("isync" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 48, __ccgo_ts+1550) + v12 = old1 + goto _24 +_24: + if v12&int32(MAYBE_WAITERS) != 0 { + v15 = f + 140 + v17 = int32(1) + v21 = int32(1) + if v21 != 0 { + v21 = int32(FUTEX_PRIVATE) + } + if v17 < Int32FromInt32(0) { + v17 = int32(INT_MAX) + } + _ = X__syscall3(tls, int64(SYS_futex), int64(v15), int64(Int32FromInt32(FUTEX_WAKE)|v21), int64(v17)) != int64(-int32(ENOSYS)) || X__syscall3(tls, int64(SYS_futex), int64(v15), int64(Int32FromInt32(FUTEX_WAKE)), int64(v17)) != 0 + } + return c +} + +func Xgetchar(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l, v2, v4 int32 + var v1, v5, v6 uintptr + _, _, _, _, _, _ = l, v1, v2, v4, v5, v6 + v1 = uintptr(unsafe.Pointer(&X__stdin_FILE)) + l = AtomicLoadPInt32(v1 + 140) + if l < 0 || l != 0 && l & ^Int32FromInt32(MAYBE_WAITERS) == (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Ftid { + if (*TFILE)(unsafe.Pointer(v1)).Frpos != (*TFILE)(unsafe.Pointer(v1)).Frend { + v6 = v1 + 8 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + v4 = Int32FromUint8(**(**uint8)(__ccgo_up(v5))) + } else { + v4 = X__uflow(tls, v1) + } + v2 = v4 + goto _3 + } + v2 = _locking_getc2(tls, v1) + goto _3 +_3: + return v2 +} + +func Xgetchar_unlocked(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + var v2, v3 uintptr + _, _, _ = v1, v2, v3 + if (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdin_FILE)))).Frpos != (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdin_FILE)))).Frend { + v3 = uintptr(unsafe.Pointer(&X__stdin_FILE)) + 8 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__uflow(tls, uintptr(unsafe.Pointer(&X__stdin_FILE))) + } + return v1 +} + +func Xgetdelim(tls *TLS, s uintptr, n uintptr, delim int32, f uintptr) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v delim=%v f=%v, (%v:)", tls, s, n, delim, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, c, v1, v4 int32 + var i, k, m, v11 Tsize_t + var tmp, z, v6, v7 uintptr + var v10 uint8 + var v3 int64 + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = __need_unlock, c, i, k, m, tmp, z, v1, v10, v11, v3, v4, v6, v7 + i = uint64(0) + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + if !(n != 0) || !(s != 0) { + **(**int32)(__ccgo_up(f + 136)) |= (*TFILE)(unsafe.Pointer(f)).Fmode - int32(1) + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return int64(-int32(1)) + } + if !(**(**uintptr)(__ccgo_up(s)) != 0) { + **(**Tsize_t)(__ccgo_up(n)) = uint64(0) + } + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + z = Xmemchr(tls, (*TFILE)(unsafe.Pointer(f)).Frpos, delim, Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Frend)-int64((*TFILE)(unsafe.Pointer(f)).Frpos))) + if z != 0 { + v3 = int64(z) - int64((*TFILE)(unsafe.Pointer(f)).Frpos) + int64(1) + } else { + v3 = int64((*TFILE)(unsafe.Pointer(f)).Frend) - int64((*TFILE)(unsafe.Pointer(f)).Frpos) + } + k = Uint64FromInt64(v3) + } else { + z = uintptr(0) + k = uint64(0) + } + if i+k >= **(**Tsize_t)(__ccgo_up(n)) { + m = i + k + uint64(2) + if !(z != 0) && m < Uint64FromUint64(0xffffffffffffffff)/Uint64FromInt32(4) { + m = m + m/uint64(2) + } + tmp = Xrealloc(tls, **(**uintptr)(__ccgo_up(s)), m) + if !(tmp != 0) { + m = i + k + uint64(2) + tmp = Xrealloc(tls, **(**uintptr)(__ccgo_up(s)), m) + if !(tmp != 0) { + /* Copy as much as fits and ensure no + * pushback remains in the FILE buf. */ + k = **(**Tsize_t)(__ccgo_up(n)) - i + Xmemcpy(tls, **(**uintptr)(__ccgo_up(s))+uintptr(i), (*TFILE)(unsafe.Pointer(f)).Frpos, k) + **(**uintptr)(__ccgo_up(f + 8)) += uintptr(k) + **(**int32)(__ccgo_up(f + 136)) |= (*TFILE)(unsafe.Pointer(f)).Fmode - int32(1) + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOMEM) + return int64(-int32(1)) + } + } + **(**uintptr)(__ccgo_up(s)) = tmp + **(**Tsize_t)(__ccgo_up(n)) = m + } + if k != 0 { + Xmemcpy(tls, **(**uintptr)(__ccgo_up(s))+uintptr(i), (*TFILE)(unsafe.Pointer(f)).Frpos, k) + **(**uintptr)(__ccgo_up(f + 8)) += uintptr(k) + i = i + k + } + if z != 0 { + break + } + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + v7 = f + 8 + v6 = *(*uintptr)(unsafe.Pointer(v7)) + *(*uintptr)(unsafe.Pointer(v7)) = *(*uintptr)(unsafe.Pointer(v7)) + 1 + v4 = Int32FromUint8(**(**uint8)(__ccgo_up(v6))) + } else { + v4 = X__uflow(tls, f) + } + v1 = v4 + c = v1 + if v1 == -int32(1) { + if !(i != 0) || !((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_EOF) != 0) { + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return int64(-int32(1)) + } + break + } + /* If the byte read by getc won't fit without growing the + * output buffer, push it back for next iteration. */ + if i+uint64(1) >= **(**Tsize_t)(__ccgo_up(n)) { + v7 = f + 8 + *(*uintptr)(unsafe.Pointer(v7)) = *(*uintptr)(unsafe.Pointer(v7)) - 1 + v6 = *(*uintptr)(unsafe.Pointer(v7)) + **(**uint8)(__ccgo_up(v6)) = Uint8FromInt32(c) + } else { + v10 = Uint8FromInt32(c) + v11 = i + i = i + 1 + **(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(s)) + uintptr(v11))) = v10 + if Int32FromUint8(v10) == delim { + break + } + } + goto _2 + _2: + } + **(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(s)) + uintptr(i))) = uint8(0) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return Int64FromUint64(i) +} + +func X__getdelim(tls *TLS, s uintptr, n uintptr, delim int32, f uintptr) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v delim=%v f=%v, (%v:)", tls, s, n, delim, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetdelim(tls, s, n, delim, f) +} + +func Xgetline(tls *TLS, s uintptr, n uintptr, f uintptr) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v f=%v, (%v:)", tls, s, n, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetdelim(tls, s, n, int32('\n'), f) +} + +func Xgets(tls *TLS, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, c, v1, v2, v3 int32 + var i, v6 Tsize_t + var v4, v5 uintptr + _, _, _, _, _, _, _, _, _ = __need_unlock, c, i, v1, v2, v3, v4, v5, v6 + i = uint64(0) + if AtomicLoadPInt32(uintptr(unsafe.Pointer(&X__stdin_FILE))+140) >= 0 { + v1 = ___lockfile(tls, uintptr(unsafe.Pointer(&X__stdin_FILE))) + } else { + v1 = 0 + } + __need_unlock = v1 + for { + if (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdin_FILE)))).Frpos != (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdin_FILE)))).Frend { + v5 = uintptr(unsafe.Pointer(&X__stdin_FILE)) + 8 + v4 = *(*uintptr)(unsafe.Pointer(v5)) + *(*uintptr)(unsafe.Pointer(v5)) = *(*uintptr)(unsafe.Pointer(v5)) + 1 + v3 = Int32FromUint8(**(**uint8)(__ccgo_up(v4))) + } else { + v3 = X__uflow(tls, uintptr(unsafe.Pointer(&X__stdin_FILE))) + } + v2 = v3 + c = v2 + if !(v2 != -int32(1) && c != int32('\n')) { + break + } + v6 = i + i = i + 1 + **(**uint8)(__ccgo_up(s + uintptr(v6))) = Uint8FromInt32(c) + } + **(**uint8)(__ccgo_up(s + uintptr(i))) = uint8(0) + if c != int32('\n') && (!((*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdin_FILE)))).Fflags&Uint32FromInt32(F_EOF) != 0) || !(i != 0)) { + s = uintptr(0) + } + if __need_unlock != 0 { + ___unlockfile(tls, uintptr(unsafe.Pointer(&X__stdin_FILE))) + } + return s +} + +func Xgetw(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 int32 + var _ /* x at bp+0 */ int32 + _ = v1 + if Xfread(tls, bp, uint64(4), uint64(1), f) != 0 { + v1 = **(**int32)(__ccgo_up(bp)) + } else { + v1 = -int32(1) + } + return v1 +} + +func Xgetwc(tls *TLS, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfgetwc(tls, f) +} + +func Xgetwchar(tls *TLS) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfgetwc(tls, uintptr(unsafe.Pointer(&X__stdin_FILE))) +} + +func Xgetwchar_unlocked(tls *TLS) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetwchar(tls) +} + +var _ofl_head uintptr +var _ofl_lock [1]int32 + +func X__ofl_lock(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + ___lock(tls, uintptr(unsafe.Pointer(&_ofl_lock))) + return uintptr(unsafe.Pointer(&_ofl_head)) +} + +func X__ofl_unlock(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + ___unlock(tls, uintptr(unsafe.Pointer(&_ofl_lock))) +} + +func X__ofl_add(tls *TLS, f uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var head uintptr + _ = head + head = X__ofl_lock(tls) + (*TFILE)(unsafe.Pointer(f)).Fnext = **(**uintptr)(__ccgo_up(head)) + if **(**uintptr)(__ccgo_up(head)) != 0 { + (*TFILE)(unsafe.Pointer(**(**uintptr)(__ccgo_up(head)))).Fprev = f + } + **(**uintptr)(__ccgo_up(head)) = f + X__ofl_unlock(tls) + return f +} + +type Tcookie1 = struct { + Fbufp uintptr + Fsizep uintptr + Fpos Tsize_t + Fbuf uintptr + Flen1 Tsize_t + Fspace Tsize_t +} + +type Tms_FILE = struct { + Ff TFILE + Fc Tcookie1 + Fbuf [1024]uint8 +} + +func _ms_seek(tls *TLS, f uintptr, off Toff_t, whence int32) (r Toff_t) { + bp := tls.Alloc(32) + defer tls.Free(32) + var base Tssize_t + var c uintptr + var v2 Tsize_t + _, _, _ = base, c, v2 + c = (*TFILE)(unsafe.Pointer(f)).Fcookie + if !(Uint32FromInt32(whence) > uint32(2)) { + goto _1 + } + goto fail +fail: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return int64(-int32(1)) +_1: + ; + *(*[3]Tsize_t)(unsafe.Pointer(bp)) = [3]Tsize_t{ + 1: (*Tcookie1)(unsafe.Pointer(c)).Fpos, + 2: (*Tcookie1)(unsafe.Pointer(c)).Flen1, + } + base = Int64FromUint64(**(**Tsize_t)(__ccgo_up(bp + uintptr(whence)*8))) + if off < -base || off > int64(0x7fffffffffffffff)-base { + goto fail + } + v2 = Uint64FromInt64(base + off) + (*Tcookie1)(unsafe.Pointer(c)).Fpos = v2 + return Int64FromUint64(v2) +} + +func _ms_write(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + var c, newbuf, v1 uintptr + var len2 Tsize_t + _, _, _, _ = c, len2, newbuf, v1 + c = (*TFILE)(unsafe.Pointer(f)).Fcookie + len2 = Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Fwpos) - int64((*TFILE)(unsafe.Pointer(f)).Fwbase)) + if len2 != 0 { + (*TFILE)(unsafe.Pointer(f)).Fwpos = (*TFILE)(unsafe.Pointer(f)).Fwbase + if _ms_write(tls, f, (*TFILE)(unsafe.Pointer(f)).Fwbase, len2) < len2 { + return uint64(0) + } + } + if len1+(*Tcookie1)(unsafe.Pointer(c)).Fpos >= (*Tcookie1)(unsafe.Pointer(c)).Fspace { + len2 = uint64(2)*(*Tcookie1)(unsafe.Pointer(c)).Fspace + uint64(1) | ((*Tcookie1)(unsafe.Pointer(c)).Fpos + len1 + uint64(1)) + newbuf = Xrealloc(tls, (*Tcookie1)(unsafe.Pointer(c)).Fbuf, len2) + if !(newbuf != 0) { + return uint64(0) + } + v1 = newbuf + (*Tcookie1)(unsafe.Pointer(c)).Fbuf = v1 + **(**uintptr)(__ccgo_up((*Tcookie1)(unsafe.Pointer(c)).Fbufp)) = v1 + Xmemset(tls, (*Tcookie1)(unsafe.Pointer(c)).Fbuf+uintptr((*Tcookie1)(unsafe.Pointer(c)).Fspace), 0, len2-(*Tcookie1)(unsafe.Pointer(c)).Fspace) + (*Tcookie1)(unsafe.Pointer(c)).Fspace = len2 + } + Xmemcpy(tls, (*Tcookie1)(unsafe.Pointer(c)).Fbuf+uintptr((*Tcookie1)(unsafe.Pointer(c)).Fpos), buf, len1) + **(**Tsize_t)(__ccgo_up(c + 16)) += len1 + if (*Tcookie1)(unsafe.Pointer(c)).Fpos >= (*Tcookie1)(unsafe.Pointer(c)).Flen1 { + (*Tcookie1)(unsafe.Pointer(c)).Flen1 = (*Tcookie1)(unsafe.Pointer(c)).Fpos + } + **(**Tsize_t)(__ccgo_up((*Tcookie1)(unsafe.Pointer(c)).Fsizep)) = (*Tcookie1)(unsafe.Pointer(c)).Fpos + return len1 +} + +func _ms_close(tls *TLS, f uintptr) (r int32) { + return 0 +} + +func Xopen_memstream(tls *TLS, bufp uintptr, sizep uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v bufp=%v sizep=%v, (%v:)", tls, bufp, sizep, origin(2)) + defer func() { trc("-> %v", r) }() + } + var buf, f, v1 uintptr + var v3, v4, v5 Tsize_t + _, _, _, _, _, _ = buf, f, v1, v3, v4, v5 + v1 = Xmalloc(tls, uint64(1304)) + f = v1 + if !(v1 != 0) { + return uintptr(0) + } + v1 = Xmalloc(tls, uint64(1)) + buf = v1 + if !(v1 != 0) { + Xfree(tls, f) + return uintptr(0) + } + Xmemset(tls, f, 0, uint64(232)) + Xmemset(tls, f+232, 0, uint64(48)) + (*Tms_FILE)(unsafe.Pointer(f)).Ff.Fcookie = f + 232 + (*Tms_FILE)(unsafe.Pointer(f)).Fc.Fbufp = bufp + (*Tms_FILE)(unsafe.Pointer(f)).Fc.Fsizep = sizep + v5 = Uint64FromInt32(0) + **(**Tsize_t)(__ccgo_up(sizep)) = v5 + v4 = v5 + (*Tms_FILE)(unsafe.Pointer(f)).Fc.Fspace = v4 + v3 = v4 + (*Tms_FILE)(unsafe.Pointer(f)).Fc.Flen1 = v3 + (*Tms_FILE)(unsafe.Pointer(f)).Fc.Fpos = v3 + v1 = buf + **(**uintptr)(__ccgo_up(bufp)) = v1 + (*Tms_FILE)(unsafe.Pointer(f)).Fc.Fbuf = v1 + **(**uint8)(__ccgo_up(buf)) = uint8(0) + (*Tms_FILE)(unsafe.Pointer(f)).Ff.Fflags = uint32(F_NORD) + (*Tms_FILE)(unsafe.Pointer(f)).Ff.Ffd = -int32(1) + (*Tms_FILE)(unsafe.Pointer(f)).Ff.Fbuf = f + 280 + (*Tms_FILE)(unsafe.Pointer(f)).Ff.Fbuf_size = uint64(1024) + (*Tms_FILE)(unsafe.Pointer(f)).Ff.Flbf = -int32(1) + (*Tms_FILE)(unsafe.Pointer(f)).Ff.Fwrite = __ccgo_fp(_ms_write) + (*Tms_FILE)(unsafe.Pointer(f)).Ff.Fseek = __ccgo_fp(_ms_seek) + (*Tms_FILE)(unsafe.Pointer(f)).Ff.Fclose1 = __ccgo_fp(_ms_close) + (*Tms_FILE)(unsafe.Pointer(f)).Ff.Fmode = -int32(1) + if !(X__libc.Fthreaded != 0) { + AtomicStorePInt32(f+140, -int32(1)) + } + return X__ofl_add(tls, f) +} + +type Tcookie2 = struct { + Fbufp uintptr + Fsizep uintptr + Fpos Tsize_t + Fbuf uintptr + Flen1 Tsize_t + Fspace Tsize_t + Fmbs Tmbstate_t +} + +type Twms_FILE = struct { + Ff TFILE + Fc Tcookie2 + Fbuf [1]uint8 +} + +func _wms_seek(tls *TLS, f uintptr, off Toff_t, whence int32) (r Toff_t) { + bp := tls.Alloc(32) + defer tls.Free(32) + var base Tssize_t + var c uintptr + var v2 Tsize_t + _, _, _ = base, c, v2 + c = (*TFILE)(unsafe.Pointer(f)).Fcookie + if !(Uint32FromInt32(whence) > uint32(2)) { + goto _1 + } + goto fail +fail: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return int64(-int32(1)) +_1: + ; + *(*[3]Tsize_t)(unsafe.Pointer(bp)) = [3]Tsize_t{ + 1: (*Tcookie2)(unsafe.Pointer(c)).Fpos, + 2: (*Tcookie2)(unsafe.Pointer(c)).Flen1, + } + base = Int64FromUint64(**(**Tsize_t)(__ccgo_up(bp + uintptr(whence)*8))) + if off < -base || off > Int64FromInt64(0x7fffffffffffffff)/Int64FromInt32(4)-base { + goto fail + } + Xmemset(tls, c+48, 0, uint64(8)) + v2 = Uint64FromInt64(base + off) + (*Tcookie2)(unsafe.Pointer(c)).Fpos = v2 + return Int64FromUint64(v2) +} + +func _wms_write(tls *TLS, f uintptr, _buf uintptr, len1 Tsize_t) (r Tsize_t) { + bp := tls.Alloc(16) + defer tls.Free(16) + *(*uintptr)(unsafe.Pointer(bp)) = _buf + var c, newbuf, v1 uintptr + var len2 Tsize_t + _, _, _, _ = c, len2, newbuf, v1 + c = (*TFILE)(unsafe.Pointer(f)).Fcookie + len2 = Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Fwpos) - int64((*TFILE)(unsafe.Pointer(f)).Fwbase)) + if len2 != 0 { + (*TFILE)(unsafe.Pointer(f)).Fwpos = (*TFILE)(unsafe.Pointer(f)).Fwbase + if _wms_write(tls, f, (*TFILE)(unsafe.Pointer(f)).Fwbase, len2) < len2 { + return uint64(0) + } + } + if len1+(*Tcookie2)(unsafe.Pointer(c)).Fpos >= (*Tcookie2)(unsafe.Pointer(c)).Fspace { + len2 = uint64(2)*(*Tcookie2)(unsafe.Pointer(c)).Fspace + uint64(1) | ((*Tcookie2)(unsafe.Pointer(c)).Fpos + len1 + uint64(1)) + if len2 > Uint64FromInt64(Int64FromInt64(0x7fffffffffffffff)/Int64FromInt32(4)) { + return uint64(0) + } + newbuf = Xrealloc(tls, (*Tcookie2)(unsafe.Pointer(c)).Fbuf, len2*uint64(4)) + if !(newbuf != 0) { + return uint64(0) + } + v1 = newbuf + (*Tcookie2)(unsafe.Pointer(c)).Fbuf = v1 + **(**uintptr)(__ccgo_up((*Tcookie2)(unsafe.Pointer(c)).Fbufp)) = v1 + Xmemset(tls, (*Tcookie2)(unsafe.Pointer(c)).Fbuf+uintptr((*Tcookie2)(unsafe.Pointer(c)).Fspace)*4, 0, uint64(4)*(len2-(*Tcookie2)(unsafe.Pointer(c)).Fspace)) + (*Tcookie2)(unsafe.Pointer(c)).Fspace = len2 + } + len2 = Xmbsnrtowcs(tls, (*Tcookie2)(unsafe.Pointer(c)).Fbuf+uintptr((*Tcookie2)(unsafe.Pointer(c)).Fpos)*4, bp, len1, (*Tcookie2)(unsafe.Pointer(c)).Fspace-(*Tcookie2)(unsafe.Pointer(c)).Fpos, c+48) + if len2 == Uint64FromInt32(-Int32FromInt32(1)) { + return uint64(0) + } + **(**Tsize_t)(__ccgo_up(c + 16)) += len2 + if (*Tcookie2)(unsafe.Pointer(c)).Fpos >= (*Tcookie2)(unsafe.Pointer(c)).Flen1 { + (*Tcookie2)(unsafe.Pointer(c)).Flen1 = (*Tcookie2)(unsafe.Pointer(c)).Fpos + } + **(**Tsize_t)(__ccgo_up((*Tcookie2)(unsafe.Pointer(c)).Fsizep)) = (*Tcookie2)(unsafe.Pointer(c)).Fpos + return len1 +} + +func _wms_close(tls *TLS, f uintptr) (r int32) { + return 0 +} + +func Xopen_wmemstream(tls *TLS, bufp uintptr, sizep uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v bufp=%v sizep=%v, (%v:)", tls, bufp, sizep, origin(2)) + defer func() { trc("-> %v", r) }() + } + var buf, f, v1 uintptr + var v3, v4, v5 Tsize_t + _, _, _, _, _, _ = buf, f, v1, v3, v4, v5 + v1 = Xmalloc(tls, uint64(296)) + f = v1 + if !(v1 != 0) { + return uintptr(0) + } + v1 = Xmalloc(tls, uint64(4)) + buf = v1 + if !(v1 != 0) { + Xfree(tls, f) + return uintptr(0) + } + Xmemset(tls, f, 0, uint64(232)) + Xmemset(tls, f+232, 0, uint64(56)) + (*Twms_FILE)(unsafe.Pointer(f)).Ff.Fcookie = f + 232 + (*Twms_FILE)(unsafe.Pointer(f)).Fc.Fbufp = bufp + (*Twms_FILE)(unsafe.Pointer(f)).Fc.Fsizep = sizep + v5 = Uint64FromInt32(0) + **(**Tsize_t)(__ccgo_up(sizep)) = v5 + v4 = v5 + (*Twms_FILE)(unsafe.Pointer(f)).Fc.Fspace = v4 + v3 = v4 + (*Twms_FILE)(unsafe.Pointer(f)).Fc.Flen1 = v3 + (*Twms_FILE)(unsafe.Pointer(f)).Fc.Fpos = v3 + v1 = buf + **(**uintptr)(__ccgo_up(bufp)) = v1 + (*Twms_FILE)(unsafe.Pointer(f)).Fc.Fbuf = v1 + **(**Twchar_t)(__ccgo_up(buf)) = 0 + (*Twms_FILE)(unsafe.Pointer(f)).Ff.Fflags = uint32(F_NORD) + (*Twms_FILE)(unsafe.Pointer(f)).Ff.Ffd = -int32(1) + (*Twms_FILE)(unsafe.Pointer(f)).Ff.Fbuf = f + 288 + (*Twms_FILE)(unsafe.Pointer(f)).Ff.Fbuf_size = uint64(0) + (*Twms_FILE)(unsafe.Pointer(f)).Ff.Flbf = -int32(1) + (*Twms_FILE)(unsafe.Pointer(f)).Ff.Fwrite = __ccgo_fp(_wms_write) + (*Twms_FILE)(unsafe.Pointer(f)).Ff.Fseek = __ccgo_fp(_wms_seek) + (*Twms_FILE)(unsafe.Pointer(f)).Ff.Fclose1 = __ccgo_fp(_wms_close) + if !(X__libc.Fthreaded != 0) { + AtomicStorePInt32(f+140, -int32(1)) + } + Xfwide(tls, f, int32(1)) + return X__ofl_add(tls, f) +} + +func Xpclose(tls *TLS, f uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var pid Tpid_t + var r, v1 int32 + var _ /* status at bp+0 */ int32 + _, _, _ = pid, r, v1 + pid = (*TFILE)(unsafe.Pointer(f)).Fpipe_pid + Xfclose(tls, f) + for { + v1 = int32(X__syscall4(tls, int64(SYS_wait4), int64(pid), int64(bp), int64(Int32FromInt32(0)), int64(Int32FromInt32(0)))) + r = v1 + if !(v1 == -int32(EINTR)) { + break + } + } + if r < 0 { + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) + } + return **(**int32)(__ccgo_up(bp)) +} + +func Xperror(tls *TLS, msg uintptr) { + if __ccgo_strace { + trc("tls=%v msg=%v, (%v:)", tls, msg, origin(2)) + } + var __need_unlock, old_mode, v1 int32 + var errstr, f, old_locale uintptr + _, _, _, _, _, _ = __need_unlock, errstr, f, old_locale, old_mode, v1 + f = uintptr(unsafe.Pointer(&X__stderr_FILE)) + errstr = Xstrerror(tls, **(**int32)(__ccgo_up(X__errno_location(tls)))) + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + /* Save stderr's orientation and encoding rule, since perror is not + * permitted to change them. */ + old_locale = (*TFILE)(unsafe.Pointer(f)).Flocale + old_mode = (*TFILE)(unsafe.Pointer(f)).Fmode + if msg != 0 && **(**uint8)(__ccgo_up(msg)) != 0 { + Xfwrite(tls, msg, _strlen(tls, msg), uint64(1), f) + Xfputc(tls, int32(':'), f) + Xfputc(tls, int32(' '), f) + } + Xfwrite(tls, errstr, _strlen(tls, errstr), uint64(1), f) + Xfputc(tls, int32('\n'), f) + (*TFILE)(unsafe.Pointer(f)).Fmode = old_mode + (*TFILE)(unsafe.Pointer(f)).Flocale = old_locale + if __need_unlock != 0 { + ___unlockfile(tls, f) + } +} + +func Xprintf(tls *TLS, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v va=%v, (%v:)", tls, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvfprintf(tls, uintptr(unsafe.Pointer(&X__stdout_FILE)), fmt, ap) + _ = ap + return ret +} + +func _locking_putc1(tls *TLS, c int32, f uintptr) (r1 int32) { + var old, old1, r, v, v10, v12, v18, v3, v8 int32 + var v1, v14, v2, v7 uintptr + var v13 uint8 + var v5 bool + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = old, old1, r, v, v1, v10, v12, v13, v14, v18, v2, v3, v5, v7, v8 + v1 = f + 140 + // __asm__ __volatile__ ("sync" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 40, __ccgo_ts+1563) + for { + v7 = v1 + // __asm__ __volatile__ ("lwarx %0, 0, %2" : "=r"(v) : "m"(*p), "r"(p)); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 5, __ccgo_ts+1563) + v8 = v + goto _9 + _9: + old = v8 + goto _6 + _6: + ; + if v5 = old == 0; v5 { + v2 = v1 + // __asm__ __volatile__ ( + // + // "stwcx. %2, 0, %3 ; mfcr %0" + // : "=r"(r), "=m"(*p) : "r"(v), "r"(p) : "memory", "cc"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 13, __ccgo_ts+1563) + v3 = r & int32(0x20000000) + goto _4 + _4: + } + if !(v5 && !(v3 != 0)) { + break + } + } + // __asm__ __volatile__ ("isync" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 48, __ccgo_ts+1563) + v10 = old + goto _11 +_11: + if v10 != 0 { + ___lockfile(tls, f) + } + if Int32FromUint8(Uint8FromInt32(c)) != (*TFILE)(unsafe.Pointer(f)).Flbf && (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwend { + v13 = Uint8FromInt32(c) + v2 = f + 40 + v1 = *(*uintptr)(unsafe.Pointer(v2)) + *(*uintptr)(unsafe.Pointer(v2)) = *(*uintptr)(unsafe.Pointer(v2)) + 1 + **(**uint8)(__ccgo_up(v1)) = v13 + v3 = Int32FromUint8(v13) + } else { + v3 = X__overflow(tls, f, Int32FromUint8(Uint8FromInt32(c))) + } + c = v3 + v1 = f + 140 + // __asm__ __volatile__ ("sync" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 40, __ccgo_ts+1563) + for { + v7 = v1 + // __asm__ __volatile__ ("lwarx %0, 0, %2" : "=r"(v) : "m"(*p), "r"(p)); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 5, __ccgo_ts+1563) + v8 = v + goto _23 + _23: + old1 = v8 + goto _20 + _20: + ; + v2 = v1 + // __asm__ __volatile__ ( + // + // "stwcx. %2, 0, %3 ; mfcr %0" + // : "=r"(r), "=m"(*p) : "r"(v), "r"(p) : "memory", "cc"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 13, __ccgo_ts+1563) + v3 = r & int32(0x20000000) + goto _19 + _19: + ; + if !!(v3 != 0) { + break + } + } + // __asm__ __volatile__ ("isync" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 48, __ccgo_ts+1563) + v10 = old1 + goto _25 +_25: + if v10&int32(MAYBE_WAITERS) != 0 { + v14 = f + 140 + v12 = int32(1) + v18 = int32(1) + if v18 != 0 { + v18 = int32(FUTEX_PRIVATE) + } + if v12 < Int32FromInt32(0) { + v12 = int32(INT_MAX) + } + _ = X__syscall3(tls, int64(SYS_futex), int64(v14), int64(Int32FromInt32(FUTEX_WAKE)|v18), int64(v12)) != int64(-int32(ENOSYS)) || X__syscall3(tls, int64(SYS_futex), int64(v14), int64(Int32FromInt32(FUTEX_WAKE)), int64(v12)) != 0 + } + return c +} + +func Xputc(tls *TLS, c1 int32, f1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v c1=%v f1=%v, (%v:)", tls, c1, f1, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l, v1, v3, v5 int32 + var v2, v7, v8 uintptr + var v6 uint8 + _, _, _, _, _, _, _, _ = l, v1, v2, v3, v5, v6, v7, v8 + v1 = c1 + v2 = f1 + l = AtomicLoadPInt32(v2 + 140) + if l < 0 || l != 0 && l & ^Int32FromInt32(MAYBE_WAITERS) == (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Ftid { + if Int32FromUint8(Uint8FromInt32(v1)) != (*TFILE)(unsafe.Pointer(v2)).Flbf && (*TFILE)(unsafe.Pointer(v2)).Fwpos != (*TFILE)(unsafe.Pointer(v2)).Fwend { + v6 = Uint8FromInt32(v1) + v8 = v2 + 40 + v7 = *(*uintptr)(unsafe.Pointer(v8)) + *(*uintptr)(unsafe.Pointer(v8)) = *(*uintptr)(unsafe.Pointer(v8)) + 1 + **(**uint8)(__ccgo_up(v7)) = v6 + v5 = Int32FromUint8(v6) + } else { + v5 = X__overflow(tls, v2, Int32FromUint8(Uint8FromInt32(v1))) + } + v3 = v5 + goto _4 + } + v3 = _locking_putc1(tls, v1, v2) + goto _4 +_4: + return v3 +} + +func X_IO_putc(tls *TLS, c1 int32, f1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v c1=%v f1=%v, (%v:)", tls, c1, f1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xputc(tls, c1, f1) +} + +func Xputc_unlocked(tls *TLS, c int32, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v f=%v, (%v:)", tls, c, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + var v2 uint8 + var v3, v4 uintptr + _, _, _, _ = v1, v2, v3, v4 + if Int32FromUint8(Uint8FromInt32(c)) != (*TFILE)(unsafe.Pointer(f)).Flbf && (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwend { + v2 = Uint8FromInt32(c) + v4 = f + 40 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + **(**uint8)(__ccgo_up(v3)) = v2 + v1 = Int32FromUint8(v2) + } else { + v1 = X__overflow(tls, f, Int32FromUint8(Uint8FromInt32(c))) + } + return v1 +} + +func X_IO_putc_unlocked(tls *TLS, c int32, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v f=%v, (%v:)", tls, c, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xputc_unlocked(tls, c, f) +} + +func Xfputc_unlocked(tls *TLS, c int32, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v f=%v, (%v:)", tls, c, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xputc_unlocked(tls, c, f) +} + +func _locking_putc2(tls *TLS, c int32, f uintptr) (r1 int32) { + var old, old1, r, v, v10, v12, v18, v3, v8 int32 + var v1, v14, v2, v7 uintptr + var v13 uint8 + var v5 bool + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = old, old1, r, v, v1, v10, v12, v13, v14, v18, v2, v3, v5, v7, v8 + v1 = f + 140 + // __asm__ __volatile__ ("sync" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 40, __ccgo_ts+1563) + for { + v7 = v1 + // __asm__ __volatile__ ("lwarx %0, 0, %2" : "=r"(v) : "m"(*p), "r"(p)); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 5, __ccgo_ts+1563) + v8 = v + goto _9 + _9: + old = v8 + goto _6 + _6: + ; + if v5 = old == 0; v5 { + v2 = v1 + // __asm__ __volatile__ ( + // + // "stwcx. %2, 0, %3 ; mfcr %0" + // : "=r"(r), "=m"(*p) : "r"(v), "r"(p) : "memory", "cc"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 13, __ccgo_ts+1563) + v3 = r & int32(0x20000000) + goto _4 + _4: + } + if !(v5 && !(v3 != 0)) { + break + } + } + // __asm__ __volatile__ ("isync" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 48, __ccgo_ts+1563) + v10 = old + goto _11 +_11: + if v10 != 0 { + ___lockfile(tls, f) + } + if Int32FromUint8(Uint8FromInt32(c)) != (*TFILE)(unsafe.Pointer(f)).Flbf && (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwend { + v13 = Uint8FromInt32(c) + v2 = f + 40 + v1 = *(*uintptr)(unsafe.Pointer(v2)) + *(*uintptr)(unsafe.Pointer(v2)) = *(*uintptr)(unsafe.Pointer(v2)) + 1 + **(**uint8)(__ccgo_up(v1)) = v13 + v3 = Int32FromUint8(v13) + } else { + v3 = X__overflow(tls, f, Int32FromUint8(Uint8FromInt32(c))) + } + c = v3 + v1 = f + 140 + // __asm__ __volatile__ ("sync" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 40, __ccgo_ts+1563) + for { + v7 = v1 + // __asm__ __volatile__ ("lwarx %0, 0, %2" : "=r"(v) : "m"(*p), "r"(p)); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 5, __ccgo_ts+1563) + v8 = v + goto _23 + _23: + old1 = v8 + goto _20 + _20: + ; + v2 = v1 + // __asm__ __volatile__ ( + // + // "stwcx. %2, 0, %3 ; mfcr %0" + // : "=r"(r), "=m"(*p) : "r"(v), "r"(p) : "memory", "cc"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 13, __ccgo_ts+1563) + v3 = r & int32(0x20000000) + goto _19 + _19: + ; + if !!(v3 != 0) { + break + } + } + // __asm__ __volatile__ ("isync" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 48, __ccgo_ts+1563) + v10 = old1 + goto _25 +_25: + if v10&int32(MAYBE_WAITERS) != 0 { + v14 = f + 140 + v12 = int32(1) + v18 = int32(1) + if v18 != 0 { + v18 = int32(FUTEX_PRIVATE) + } + if v12 < Int32FromInt32(0) { + v12 = int32(INT_MAX) + } + _ = X__syscall3(tls, int64(SYS_futex), int64(v14), int64(Int32FromInt32(FUTEX_WAKE)|v18), int64(v12)) != int64(-int32(ENOSYS)) || X__syscall3(tls, int64(SYS_futex), int64(v14), int64(Int32FromInt32(FUTEX_WAKE)), int64(v12)) != 0 + } + return c +} + +func Xputchar(tls *TLS, c1 int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c1=%v, (%v:)", tls, c1, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l, v1, v3, v5 int32 + var v2, v7, v8 uintptr + var v6 uint8 + _, _, _, _, _, _, _, _ = l, v1, v2, v3, v5, v6, v7, v8 + v1 = c1 + v2 = uintptr(unsafe.Pointer(&X__stdout_FILE)) + l = AtomicLoadPInt32(v2 + 140) + if l < 0 || l != 0 && l & ^Int32FromInt32(MAYBE_WAITERS) == (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Ftid { + if Int32FromUint8(Uint8FromInt32(v1)) != (*TFILE)(unsafe.Pointer(v2)).Flbf && (*TFILE)(unsafe.Pointer(v2)).Fwpos != (*TFILE)(unsafe.Pointer(v2)).Fwend { + v6 = Uint8FromInt32(v1) + v8 = v2 + 40 + v7 = *(*uintptr)(unsafe.Pointer(v8)) + *(*uintptr)(unsafe.Pointer(v8)) = *(*uintptr)(unsafe.Pointer(v8)) + 1 + **(**uint8)(__ccgo_up(v7)) = v6 + v5 = Int32FromUint8(v6) + } else { + v5 = X__overflow(tls, v2, Int32FromUint8(Uint8FromInt32(v1))) + } + v3 = v5 + goto _4 + } + v3 = _locking_putc2(tls, v1, v2) + goto _4 +_4: + return v3 +} + +func Xputchar_unlocked(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + var v2 uint8 + var v3, v4 uintptr + _, _, _, _ = v1, v2, v3, v4 + if Int32FromUint8(Uint8FromInt32(c)) != (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdout_FILE)))).Flbf && (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdout_FILE)))).Fwpos != (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdout_FILE)))).Fwend { + v2 = Uint8FromInt32(c) + v4 = uintptr(unsafe.Pointer(&X__stdout_FILE)) + 40 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + **(**uint8)(__ccgo_up(v3)) = v2 + v1 = Int32FromUint8(v2) + } else { + v1 = X__overflow(tls, uintptr(unsafe.Pointer(&X__stdout_FILE)), Int32FromUint8(Uint8FromInt32(c))) + } + return v1 +} + +func Xputs(tls *TLS, s uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var __need_unlock, r, v1, v2 int32 + var v3 uint8 + var v4, v5 uintptr + var v6 bool + _, _, _, _, _, _, _, _ = __need_unlock, r, v1, v2, v3, v4, v5, v6 + if AtomicLoadPInt32(uintptr(unsafe.Pointer(&X__stdout_FILE))+140) >= 0 { + v1 = ___lockfile(tls, uintptr(unsafe.Pointer(&X__stdout_FILE))) + } else { + v1 = 0 + } + __need_unlock = v1 + if v6 = Xfputs(tls, s, uintptr(unsafe.Pointer(&X__stdout_FILE))) < 0; !v6 { + if Int32FromUint8(Uint8FromInt32(Int32FromUint8('\n'))) != (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdout_FILE)))).Flbf && (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdout_FILE)))).Fwpos != (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdout_FILE)))).Fwend { + v3 = Uint8FromInt32(Int32FromUint8('\n')) + v5 = uintptr(unsafe.Pointer(&X__stdout_FILE)) + 40 + v4 = *(*uintptr)(unsafe.Pointer(v5)) + *(*uintptr)(unsafe.Pointer(v5)) = *(*uintptr)(unsafe.Pointer(v5)) + 1 + **(**uint8)(__ccgo_up(v4)) = v3 + v2 = Int32FromUint8(v3) + } else { + v2 = X__overflow(tls, uintptr(unsafe.Pointer(&X__stdout_FILE)), Int32FromUint8(Uint8FromInt32(Int32FromUint8('\n')))) + } + } + r = -BoolInt32(v6 || v2 < 0) + if __need_unlock != 0 { + ___unlockfile(tls, uintptr(unsafe.Pointer(&X__stdout_FILE))) + } + return r +} + +func Xputw(tls *TLS, _x int32, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v _x=%v f=%v, (%v:)", tls, _x, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + *(*int32)(unsafe.Pointer(bp)) = _x + return Int32FromUint64(Xfwrite(tls, bp, uint64(4), uint64(1), f)) - int32(1) +} + +func Xputwc(tls *TLS, c Twchar_t, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v f=%v, (%v:)", tls, c, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfputwc(tls, c, f) +} + +func Xputwchar(tls *TLS, c Twchar_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfputwc(tls, c, uintptr(unsafe.Pointer(&X__stdout_FILE))) +} + +func Xputwchar_unlocked(tls *TLS, c Twchar_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xputwchar(tls, c) +} + +func Xremove(tls *TLS, path uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v path=%v, (%v:)", tls, path, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + r = int32(X__syscall1(tls, int64(SYS_unlink), int64(path))) + if r == -int32(EISDIR) { + r = int32(X__syscall1(tls, int64(SYS_rmdir), int64(path))) + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func Xrename(tls *TLS, old uintptr, new1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v old=%v new1=%v, (%v:)", tls, old, new1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_rename), int64(old), int64(new1))))) +} + +func Xrewind(tls *TLS, f uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } + var __need_unlock, v1 int32 + _, _ = __need_unlock, v1 + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + X__fseeko_unlocked(tls, f, 0, 0) + **(**uint32)(__ccgo_up(f)) &= Uint32FromInt32(^Int32FromInt32(F_ERR)) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } +} + +func Xscanf(tls *TLS, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v va=%v, (%v:)", tls, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvscanf(tls, fmt, ap) + _ = ap + return ret +} + +func X__isoc99_scanf(tls *TLS, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v va=%v, (%v:)", tls, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xscanf(tls, fmt, va) +} + +func Xsetbuf(tls *TLS, f uintptr, buf uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v buf=%v, (%v:)", tls, f, buf, origin(2)) + } + var v1 int32 + _ = v1 + if buf != 0 { + v1 = _IOFBF + } else { + v1 = int32(_IONBF) + } + Xsetvbuf(tls, f, buf, v1, uint64(BUFSIZ)) +} + +func Xsetbuffer(tls *TLS, f uintptr, buf uintptr, size Tsize_t) { + if __ccgo_strace { + trc("tls=%v f=%v buf=%v size=%v, (%v:)", tls, f, buf, size, origin(2)) + } + var v1 int32 + _ = v1 + if buf != 0 { + v1 = _IOFBF + } else { + v1 = int32(_IONBF) + } + Xsetvbuf(tls, f, buf, v1, size) +} + +func Xsetlinebuf(tls *TLS, f uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } + Xsetvbuf(tls, f, uintptr(0), int32(_IOLBF), uint64(0)) +} + +/* The behavior of this function is undefined except when it is the first + * operation on the stream, so the presence or absence of locking is not + * observable in a program whose behavior is defined. Thus no locking is + * performed here. No allocation of buffers is performed, but a buffer + * provided by the caller is used as long as it is suitably sized. */ + +func Xsetvbuf(tls *TLS, f uintptr, buf uintptr, type1 int32, size Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v buf=%v type1=%v size=%v, (%v:)", tls, f, buf, type1, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + (*TFILE)(unsafe.Pointer(f)).Flbf = -int32(1) + if type1 == int32(_IONBF) { + (*TFILE)(unsafe.Pointer(f)).Fbuf_size = uint64(0) + } else { + if type1 == int32(_IOLBF) || type1 == _IOFBF { + if buf != 0 && size >= uint64(UNGET) { + (*TFILE)(unsafe.Pointer(f)).Fbuf = buf + UintptrFromInt32(UNGET) + (*TFILE)(unsafe.Pointer(f)).Fbuf_size = size - uint64(UNGET) + } + if type1 == int32(_IOLBF) && (*TFILE)(unsafe.Pointer(f)).Fbuf_size != 0 { + (*TFILE)(unsafe.Pointer(f)).Flbf = int32('\n') + } + } else { + return -int32(1) + } + } + **(**uint32)(__ccgo_up(f)) |= uint32(F_SVB) + return 0 +} + +func Xsnprintf(tls *TLS, s uintptr, n Tsize_t, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v fmt=%v va=%v, (%v:)", tls, s, n, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvsnprintf(tls, s, n, fmt, ap) + _ = ap + return ret +} + +func Xsprintf(tls *TLS, s uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v va=%v, (%v:)", tls, s, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvsprintf(tls, s, fmt, ap) + _ = ap + return ret +} + +func Xsscanf(tls *TLS, s uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v va=%v, (%v:)", tls, s, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvsscanf(tls, s, fmt, ap) + _ = ap + return ret +} + +func X__isoc99_sscanf(tls *TLS, s uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v va=%v, (%v:)", tls, s, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xsscanf(tls, s, fmt, va) +} + +var _buf5 [8]uint8 + +func init() { + p := unsafe.Pointer(&X__stderr_FILE) + *(*uintptr)(unsafe.Add(p, 24)) = __ccgo_fp(X__stdio_close) + *(*uintptr)(unsafe.Add(p, 72)) = __ccgo_fp(X__stdio_write) + *(*uintptr)(unsafe.Add(p, 80)) = __ccgo_fp(X__stdio_seek) +} + +var _buf6 [1032]uint8 + +func init() { + p := unsafe.Pointer(&X__stdin_FILE) + *(*uintptr)(unsafe.Add(p, 24)) = __ccgo_fp(X__stdio_close) + *(*uintptr)(unsafe.Add(p, 64)) = __ccgo_fp(X__stdio_read) + *(*uintptr)(unsafe.Add(p, 80)) = __ccgo_fp(X__stdio_seek) +} + +var _buf7 [1032]uint8 + +func init() { + p := unsafe.Pointer(&X__stdout_FILE) + *(*uintptr)(unsafe.Add(p, 24)) = __ccgo_fp(X__stdio_close) + *(*uintptr)(unsafe.Add(p, 72)) = __ccgo_fp(X__stdout_write) + *(*uintptr)(unsafe.Add(p, 80)) = __ccgo_fp(X__stdio_seek) +} + +func Xswprintf(tls *TLS, s uintptr, n Tsize_t, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v fmt=%v va=%v, (%v:)", tls, s, n, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvswprintf(tls, s, n, fmt, ap) + _ = ap + return ret +} + +func Xswscanf(tls *TLS, s uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v va=%v, (%v:)", tls, s, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvswscanf(tls, s, fmt, ap) + _ = ap + return ret +} + +func X__isoc99_swscanf(tls *TLS, s uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v va=%v, (%v:)", tls, s, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xswscanf(tls, s, fmt, va) +} + +const MAXTRIES = 100 + +func Xtempnam(tls *TLS, dir uintptr, pfx uintptr) (r1 uintptr) { + if __ccgo_strace { + trc("tls=%v dir=%v pfx=%v, (%v:)", tls, dir, pfx, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(4112) + defer tls.Free(4112) + var dl, l, pl Tsize_t + var r, try int32 + var _ /* s at bp+1 */ [4096]uint8 + _, _, _, _, _ = dl, l, pl, r, try + if !(dir != 0) { + dir = __ccgo_ts + 1615 + } + if !(pfx != 0) { + pfx = __ccgo_ts + 1620 + } + dl = _strlen(tls, dir) + pl = _strlen(tls, pfx) + l = dl + uint64(1) + pl + uint64(1) + uint64(6) + if l >= uint64(PATH_MAX) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENAMETOOLONG) + return uintptr(0) + } + Xmemcpy(tls, bp+1, dir, dl) + (**(**[4096]uint8)(__ccgo_up(bp + 1)))[dl] = uint8('/') + Xmemcpy(tls, bp+1+uintptr(dl)+uintptr(1), pfx, pl) + (**(**[4096]uint8)(__ccgo_up(bp + 1)))[dl+uint64(1)+pl] = uint8('_') + (**(**[4096]uint8)(__ccgo_up(bp + 1)))[l] = uint8(0) + try = 0 + for { + if !(try < int32(MAXTRIES)) { + break + } + ___randname(tls, bp+1+uintptr(l)-uintptr(6)) + *(*[1]uint8)(unsafe.Pointer(bp)) = [1]uint8{} + r = int32(X__syscall3(tls, int64(SYS_readlink), int64(bp+1), int64(bp), int64(Int32FromInt32(1)))) + if r == -int32(ENOENT) { + return Xstrdup(tls, bp+1) + } + goto _1 + _1: + ; + try = try + 1 + } + return uintptr(0) +} + +func Xtmpfile(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var f uintptr + var fd, try int32 + var _ /* s at bp+0 */ [20]uint8 + _, _, _ = f, fd, try + **(**[20]uint8)(__ccgo_up(bp)) = [20]uint8{'/', 't', 'm', 'p', '/', 't', 'm', 'p', 'f', 'i', 'l', 'e', '_', 'X', 'X', 'X', 'X', 'X', 'X'} + try = 0 + for { + if !(try < int32(MAXTRIES)) { + break + } + ___randname(tls, bp+uintptr(13)) + fd = int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_open), int64(bp), int64(Int32FromInt32(O_RDWR)|Int32FromInt32(O_CREAT)|Int32FromInt32(O_EXCL)|Int32FromInt32(O_LARGEFILE)), int64(Int32FromInt32(0600)))))) + if fd >= 0 { + X__syscall1(tls, int64(SYS_unlink), int64(bp)) + f = X__fdopen(tls, fd, __ccgo_ts+1625) + if !(f != 0) { + X__syscall1(tls, int64(SYS_close), int64(fd)) + } + return f + } + goto _1 + _1: + ; + try = try + 1 + } + return uintptr(0) +} + +func Xtmpnam(tls *TLS, buf uintptr) (r1 uintptr) { + if __ccgo_strace { + trc("tls=%v buf=%v, (%v:)", tls, buf, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var r, try int32 + var v2 uintptr + var _ /* s at bp+1 */ [19]uint8 + _, _, _ = r, try, v2 + **(**[19]uint8)(__ccgo_up(bp + 1)) = [19]uint8{'/', 't', 'm', 'p', '/', 't', 'm', 'p', 'n', 'a', 'm', '_', 'X', 'X', 'X', 'X', 'X', 'X'} + try = 0 + for { + if !(try < int32(MAXTRIES)) { + break + } + ___randname(tls, bp+1+uintptr(12)) + *(*[1]uint8)(unsafe.Pointer(bp)) = [1]uint8{} + r = int32(X__syscall3(tls, int64(SYS_readlink), int64(bp+1), int64(bp), int64(Int32FromInt32(1)))) + if r == -int32(ENOENT) { + if buf != 0 { + v2 = buf + } else { + v2 = uintptr(unsafe.Pointer(&_internal1)) + } + return Xstrcpy(tls, v2, bp+1) + } + goto _1 + _1: + ; + try = try + 1 + } + return uintptr(0) +} + +var _internal1 [20]uint8 + +func Xungetc(tls *TLS, c int32, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v f=%v, (%v:)", tls, c, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, v1 int32 + var v2, v3 uintptr + _, _, _, _ = __need_unlock, v1, v2, v3 + if c == -int32(1) { + return c + } + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + if !((*TFILE)(unsafe.Pointer(f)).Frpos != 0) { + X__toread(tls, f) + } + if !((*TFILE)(unsafe.Pointer(f)).Frpos != 0) || (*TFILE)(unsafe.Pointer(f)).Frpos <= (*TFILE)(unsafe.Pointer(f)).Fbuf-uintptr(UNGET) { + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return -int32(1) + } + v3 = f + 8 + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) - 1 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + **(**uint8)(__ccgo_up(v2)) = Uint8FromInt32(c) + **(**uint32)(__ccgo_up(f)) &= Uint32FromInt32(^Int32FromInt32(F_EOF)) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return Int32FromUint8(Uint8FromInt32(c)) +} + +func Xungetwc(tls *TLS, c Twint_t, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v f=%v, (%v:)", tls, c, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var __need_unlock, l, v1 int32 + var loc Tlocale_t + var ploc, v4, v5 uintptr + var v3 bool + var _ /* mbc at bp+0 */ [4]uint8 + _, _, _, _, _, _, _, _ = __need_unlock, l, loc, ploc, v1, v3, v4, v5 + ploc = uintptr(___get_tp(tls)) + 152 + loc = **(**Tlocale_t)(__ccgo_up(ploc)) + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + if (*TFILE)(unsafe.Pointer(f)).Fmode <= 0 { + Xfwide(tls, f, int32(1)) + } + **(**Tlocale_t)(__ccgo_up(ploc)) = (*TFILE)(unsafe.Pointer(f)).Flocale + if !((*TFILE)(unsafe.Pointer(f)).Frpos != 0) { + X__toread(tls, f) + } + if v3 = !((*TFILE)(unsafe.Pointer(f)).Frpos != 0) || c == uint32(0xffffffff); !v3 { + v1 = Int32FromUint64(Xwcrtomb(tls, bp, Int32FromUint32(c), uintptr(0))) + l = v1 + } + if v3 || v1 < 0 || (*TFILE)(unsafe.Pointer(f)).Frpos < (*TFILE)(unsafe.Pointer(f)).Fbuf-uintptr(UNGET)+uintptr(l) { + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + **(**Tlocale_t)(__ccgo_up(ploc)) = loc + return uint32(0xffffffff) + } + if BoolInt32(c < uint32(128)) != 0 { + v5 = f + 8 + *(*uintptr)(unsafe.Pointer(v5)) = *(*uintptr)(unsafe.Pointer(v5)) - 1 + v4 = *(*uintptr)(unsafe.Pointer(v5)) + **(**uint8)(__ccgo_up(v4)) = uint8(c) + } else { + v4 = f + 8 + *(*uintptr)(unsafe.Pointer(v4)) -= uintptr(l) + Xmemcpy(tls, *(*uintptr)(unsafe.Pointer(v4)), bp, Uint64FromInt32(l)) + } + **(**uint32)(__ccgo_up(f)) &= Uint32FromInt32(^Int32FromInt32(F_EOF)) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + **(**Tlocale_t)(__ccgo_up(ploc)) = loc + return c +} + +func Xvasprintf(tls *TLS, s uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v ap=%v, (%v:)", tls, s, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap2 Tva_list + var l int32 + var v1 uintptr + var v2 bool + _, _, _, _ = ap2, l, v1, v2 + ap2 = ap + l = Xvsnprintf(tls, uintptr(0), uint64(0), fmt, ap2) + _ = ap2 + if v2 = l < 0; !v2 { + v1 = Xmalloc(tls, uint64(Uint32FromInt32(l)+uint32(1))) + **(**uintptr)(__ccgo_up(s)) = v1 + } + if v2 || !(v1 != 0) { + return -int32(1) + } + return Xvsnprintf(tls, **(**uintptr)(__ccgo_up(s)), uint64(Uint32FromInt32(l)+uint32(1)), fmt, ap) +} + +func Xvdprintf(tls *TLS, fd int32, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v fmt=%v ap=%v, (%v:)", tls, fd, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(240) + defer tls.Free(240) + var _ /* f at bp+0 */ TFILE + **(**TFILE)(__ccgo_up(bp)) = TFILE{ + Fwrite: __ccgo_fp(X__stdio_write), + Fbuf: fmt, + Ffd: fd, + Flock: -int32(1), + Flbf: -int32(1), + } + return Xvfprintf(tls, bp, fmt, ap) +} + +const ALT_FORM = 8 +const FLAGMASK = 75913 +const GROUPED = 128 +const LDBL_EPSILON3 = 2.22044604925031308085e-16 +const LEFT_ADJ = 8192 +const MARK_POS = 2048 +const PAD_POS = 1 +const ZERO_PAD = 65536 + +const _BARE = 0 +const _LPRE = 1 +const _LLPRE = 2 +const _HPRE = 3 +const _HHPRE = 4 +const _BIGLPRE = 5 +const _ZTPRE = 6 +const _JPRE = 7 +const _STOP = 8 +const _PTR = 9 +const _INT = 10 +const _UINT = 11 +const _ULLONG = 12 +const _LONG = 13 +const _ULONG = 14 +const _SHORT = 15 +const _USHORT = 16 +const _CHAR = 17 +const _UCHAR = 18 +const _LLONG = 19 +const _SIZET = 20 +const _IMAX = 21 +const _UMAX = 22 +const _PDIFF = 23 +const _UIPTR = 24 +const _DBL = 25 +const _LDBL = 26 +const _NOARG = 27 +const _MAXSTATE = 28 + +var _states = [8][58]uint8{ + 0: { + 0: uint8(_DBL), + 2: uint8(_UINT), + 4: uint8(_DBL), + 5: uint8(_DBL), + 6: uint8(_DBL), + 11: uint8(_BIGLPRE), + 18: uint8(_PTR), + 23: uint8(_UINT), + 32: uint8(_DBL), + 34: uint8(_INT), + 35: uint8(_INT), + 36: uint8(_DBL), + 37: uint8(_DBL), + 38: uint8(_DBL), + 39: uint8(_HPRE), + 40: uint8(_INT), + 41: uint8(_JPRE), + 43: uint8(_LPRE), + 44: uint8(_NOARG), + 45: uint8(_PTR), + 46: uint8(_UINT), + 47: uint8(_UIPTR), + 50: uint8(_PTR), + 51: uint8(_ZTPRE), + 52: uint8(_UINT), + 55: uint8(_UINT), + 57: uint8(_ZTPRE), + }, + 1: { + 0: uint8(_DBL), + 4: uint8(_DBL), + 5: uint8(_DBL), + 6: uint8(_DBL), + 23: uint8(_ULONG), + 32: uint8(_DBL), + 34: uint8(_UINT), + 35: uint8(_LONG), + 36: uint8(_DBL), + 37: uint8(_DBL), + 38: uint8(_DBL), + 40: uint8(_LONG), + 43: uint8(_LLPRE), + 45: uint8(_PTR), + 46: uint8(_ULONG), + 50: uint8(_PTR), + 52: uint8(_ULONG), + 55: uint8(_ULONG), + }, + 2: { + 23: uint8(_ULLONG), + 35: uint8(_LLONG), + 40: uint8(_LLONG), + 45: uint8(_PTR), + 46: uint8(_ULLONG), + 52: uint8(_ULLONG), + 55: uint8(_ULLONG), + }, + 3: { + 23: uint8(_USHORT), + 35: uint8(_SHORT), + 39: uint8(_HHPRE), + 40: uint8(_SHORT), + 45: uint8(_PTR), + 46: uint8(_USHORT), + 52: uint8(_USHORT), + 55: uint8(_USHORT), + }, + 4: { + 23: uint8(_UCHAR), + 35: uint8(_CHAR), + 40: uint8(_CHAR), + 45: uint8(_PTR), + 46: uint8(_UCHAR), + 52: uint8(_UCHAR), + 55: uint8(_UCHAR), + }, + 5: { + 0: uint8(_LDBL), + 4: uint8(_LDBL), + 5: uint8(_LDBL), + 6: uint8(_LDBL), + 32: uint8(_LDBL), + 36: uint8(_LDBL), + 37: uint8(_LDBL), + 38: uint8(_LDBL), + 45: uint8(_PTR), + }, + 6: { + 23: uint8(_SIZET), + 35: uint8(_PDIFF), + 40: uint8(_PDIFF), + 45: uint8(_PTR), + 46: uint8(_SIZET), + 52: uint8(_SIZET), + 55: uint8(_SIZET), + }, + 7: { + 23: uint8(_UMAX), + 35: uint8(_IMAX), + 40: uint8(_IMAX), + 45: uint8(_PTR), + 46: uint8(_UMAX), + 52: uint8(_UMAX), + 55: uint8(_UMAX), + }, +} + +type Targ = struct { + Ff [0]float64 + Fp [0]uintptr + Fi Tuintmax_t +} + +func _pop_arg(tls *TLS, arg uintptr, type1 int32, ap uintptr) { + switch type1 { + case int32(_PTR): + *(*uintptr)(unsafe.Pointer(arg)) = VaUintptr(&**(**Tva_list)(__ccgo_up(ap))) + case int32(_INT): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt32(VaInt32(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_UINT): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(VaUint32(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_LONG): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt64(VaInt64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_ULONG): + (*Targ)(unsafe.Pointer(arg)).Fi = VaUint64(&**(**Tva_list)(__ccgo_up(ap))) + case int32(_ULLONG): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(VaUint64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_SHORT): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt16(int16(VaInt32(&**(**Tva_list)(__ccgo_up(ap))))) + case int32(_USHORT): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(Uint16FromInt32(VaInt32(&**(**Tva_list)(__ccgo_up(ap))))) + case int32(_CHAR): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt8(int8(VaInt32(&**(**Tva_list)(__ccgo_up(ap))))) + case int32(_UCHAR): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(Uint8FromInt32(VaInt32(&**(**Tva_list)(__ccgo_up(ap))))) + case int32(_LLONG): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt64(VaInt64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_SIZET): + (*Targ)(unsafe.Pointer(arg)).Fi = VaUint64(&**(**Tva_list)(__ccgo_up(ap))) + case int32(_IMAX): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt64(VaInt64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_UMAX): + (*Targ)(unsafe.Pointer(arg)).Fi = VaUint64(&**(**Tva_list)(__ccgo_up(ap))) + case int32(_PDIFF): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt64(VaInt64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_UIPTR): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(VaUintptr(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_DBL): + *(*float64)(unsafe.Pointer(arg)) = float64(VaFloat64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_LDBL): + *(*float64)(unsafe.Pointer(arg)) = VaFloat64(&**(**Tva_list)(__ccgo_up(ap))) + } +} + +func _out(tls *TLS, f uintptr, s uintptr, l Tsize_t) { + if !((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_ERR) != 0) { + X__fwritex(tls, s, l, f) + } +} + +func _pad3(tls *TLS, f uintptr, c uint8, w int32, l int32, fl int32) { + bp := tls.Alloc(256) + defer tls.Free(256) + var v1 uint64 + var _ /* pad at bp+0 */ [256]uint8 + _ = v1 + if Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8('0')-Int32FromUint8(' '))) != 0 || l >= w { + return + } + l = w - l + if Uint64FromInt32(l) > uint64(256) { + v1 = uint64(256) + } else { + v1 = Uint64FromInt32(l) + } + Xmemset(tls, bp, Int32FromUint8(c), v1) + for { + if !(Uint64FromInt32(l) >= uint64(256)) { + break + } + _out(tls, f, bp, uint64(256)) + goto _2 + _2: + ; + l = Int32FromUint64(uint64(l) - Uint64FromInt64(256)) + } + _out(tls, f, bp, Uint64FromInt32(l)) +} + +var _xdigits1 = [16]uint8{'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'} + +func _fmt_x(tls *TLS, x Tuintmax_t, s uintptr, lower int32) (r uintptr) { + var v2 uintptr + _ = v2 + for { + if !(x != 0) { + break + } + s = s - 1 + v2 = s + **(**uint8)(__ccgo_up(v2)) = Uint8FromInt32(Int32FromUint8(_xdigits1[x&uint64(15)]) | lower) + goto _1 + _1: + ; + x = x >> uint64(4) + } + return s +} + +func _fmt_o(tls *TLS, x Tuintmax_t, s uintptr) (r uintptr) { + var v2 uintptr + _ = v2 + for { + if !(x != 0) { + break + } + s = s - 1 + v2 = s + **(**uint8)(__ccgo_up(v2)) = uint8(uint64('0') + x&uint64(7)) + goto _1 + _1: + ; + x = x >> uint64(3) + } + return s +} + +func _fmt_u(tls *TLS, x Tuintmax_t, s uintptr) (r uintptr) { + var y uint64 + var v2 uintptr + _, _ = y, v2 + for { + if !(x > Uint64FromUint64(2)*Uint64FromInt64(0x7fffffffffffffff)+Uint64FromInt32(1)) { + break + } + s = s - 1 + v2 = s + **(**uint8)(__ccgo_up(v2)) = uint8(uint64('0') + x%uint64(10)) + goto _1 + _1: + ; + x = x / uint64(10) + } + y = x + for { + if !(y != 0) { + break + } + s = s - 1 + v2 = s + **(**uint8)(__ccgo_up(v2)) = uint8(uint64('0') + y%uint64(10)) + goto _3 + _3: + ; + y = y / uint64(10) + } + return s +} + +// C documentation +// +// /* Do not override this check. The floating point printing code below +// * depends on the float.h constants being right. If they are wrong, it +// * may overflow the stack. */ +type Tcompiler_defines_long_double_incorrectly = [1]uint8 + +func _fmt_fp(tls *TLS, f uintptr, y float64, w int32, p int32, fl int32, t int32) (r1 int32) { + bp := tls.Alloc(560) + defer tls.Free(560) + var a, b, d, ebuf, estr, prefix, r, s, s1, s2, s3, s4, z, v5, v6 uintptr + var carry, carry1, rm, x2 Tuint32_t + var e, i, j, l, need, pl, re, sh, sh1, x, v7 int32 + var round, round1, small float64 + var x1 Tuint64_t + var v1 uint64 + var v36, v37, v38 int64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + var _ /* big at bp+8 */ [126]Tuint32_t + var _ /* buf at bp+516 */ [22]uint8 + var _ /* e2 at bp+512 */ int32 + var _ /* ebuf0 at bp+538 */ [12]uint8 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = a, b, carry, carry1, d, e, ebuf, estr, i, j, l, need, pl, prefix, r, re, rm, round, round1, s, s1, s2, s3, s4, sh, sh1, small, x, x1, x2, z, v1, v36, v37, v38, v5, v6, v7 + **(**int32)(__ccgo_up(bp + 512)) = 0 + prefix = __ccgo_ts + 1628 + ebuf = bp + 538 + uintptr(Uint64FromInt32(3)*Uint64FromInt64(4)) + pl = int32(1) + *(*float64)(unsafe.Pointer(bp)) = y + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + if Int32FromUint64(v1>>Int32FromInt32(63)) != 0 { + y = -y + } else { + if Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('+')-Int32FromUint8(' '))) != 0 { + prefix = prefix + uintptr(3) + } else { + if Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8(' ')-Int32FromUint8(' '))) != 0 { + prefix = prefix + uintptr(6) + } else { + prefix = prefix + 1 + pl = Int32FromInt32(0) + } + } + } + *(*float64)(unsafe.Pointer(bp)) = y + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _4 +_4: + if !(BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) < Uint64FromUint64(0x7ff)< int32(3)+pl { + v7 = w + } else { + v7 = int32(3) + pl + } + return v7 + } + y = float64(Xfrexpl(tls, y, bp+512) * Float64FromInt32(2)) + if y != 0 { + **(**int32)(__ccgo_up(bp + 512)) = **(**int32)(__ccgo_up(bp + 512)) - 1 + } + if t|int32(32) == int32('a') { + round = Float64FromFloat64(8) + if t&int32(32) != 0 { + prefix = prefix + uintptr(9) + } + pl = pl + int32(2) + if p < 0 || p >= Int32FromInt32(LDBL_MANT_DIG)/Int32FromInt32(4)-Int32FromInt32(1) { + re = 0 + } else { + re = Int32FromInt32(LDBL_MANT_DIG)/Int32FromInt32(4) - Int32FromInt32(1) - p + } + if re != 0 { + round = round * float64(Int32FromInt32(1)<<(Int32FromInt32(LDBL_MANT_DIG)%Int32FromInt32(4))) + for { + v7 = re + re = re - 1 + if !(v7 != 0) { + break + } + round = round * Float64FromInt32(16) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(prefix))) == int32('-') { + y = -y + y = y - round + y = y + round + y = -y + } else { + y = y + round + y = y - round + } + } + if **(**int32)(__ccgo_up(bp + 512)) < 0 { + v7 = -**(**int32)(__ccgo_up(bp + 512)) + } else { + v7 = **(**int32)(__ccgo_up(bp + 512)) + } + estr = _fmt_u(tls, Uint64FromInt32(v7), ebuf) + if estr == ebuf { + estr = estr - 1 + v5 = estr + **(**uint8)(__ccgo_up(v5)) = uint8('0') + } + estr = estr - 1 + v5 = estr + if **(**int32)(__ccgo_up(bp + 512)) < 0 { + v7 = int32('-') + } else { + v7 = int32('+') + } + **(**uint8)(__ccgo_up(v5)) = Uint8FromInt32(v7) + estr = estr - 1 + v5 = estr + **(**uint8)(__ccgo_up(v5)) = Uint8FromInt32(t + (Int32FromUint8('p') - Int32FromUint8('a'))) + s = bp + 516 + for cond := true; cond; cond = y != 0 { + x = int32(y) + v5 = s + s = s + 1 + **(**uint8)(__ccgo_up(v5)) = Uint8FromInt32(Int32FromUint8(_xdigits1[x]) | t&int32(32)) + y = float64(Float64FromInt32(16) * (y - float64(x))) + if int64(s)-t__predefined_ptrdiff_t(bp+516) == int64(1) && (y != 0 || p > 0 || Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0) { + v5 = s + s = s + 1 + **(**uint8)(__ccgo_up(v5)) = uint8('.') + } + } + if int64(p) > int64(Int32FromInt32(INT_MAX)-Int32FromInt32(2))-(int64(ebuf)-int64(estr))-int64(pl) { + return -int32(1) + } + if p != 0 && int64(s)-t__predefined_ptrdiff_t(bp+516)-int64(2) < int64(p) { + l = int32(int64(p+Int32FromInt32(2)) + (int64(ebuf) - int64(estr))) + } else { + l = int32(int64(s) - t__predefined_ptrdiff_t(bp+516) + (int64(ebuf) - int64(estr))) + } + _pad3(tls, f, uint8(' '), w, pl+l, fl) + _out(tls, f, prefix, Uint64FromInt32(pl)) + _pad3(tls, f, uint8('0'), w, pl+l, Int32FromUint32(Uint32FromInt32(fl)^Uint32FromUint32(1)<<(Int32FromUint8('0')-Int32FromUint8(' ')))) + _out(tls, f, bp+516, Uint64FromInt64(int64(s)-t__predefined_ptrdiff_t(bp+516))) + _pad3(tls, f, uint8('0'), int32(int64(l)-(int64(ebuf)-int64(estr))-(int64(s)-t__predefined_ptrdiff_t(bp+516))), 0, 0) + _out(tls, f, estr, Uint64FromInt64(int64(ebuf)-int64(estr))) + _pad3(tls, f, uint8(' '), w, pl+l, Int32FromUint32(Uint32FromInt32(fl)^Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' ')))) + if w > pl+l { + v7 = w + } else { + v7 = pl + l + } + return v7 + } + if p < 0 { + p = int32(6) + } + if y != 0 { + y = y * Float64FromFloat64(2.68435456e+08) + **(**int32)(__ccgo_up(bp + 512)) = **(**int32)(__ccgo_up(bp + 512)) - int32(28) + } + if **(**int32)(__ccgo_up(bp + 512)) < 0 { + v6 = bp + 8 + z = v6 + v5 = v6 + r = v5 + a = v5 + } else { + v6 = bp + 8 + uintptr(Uint64FromInt64(504)/Uint64FromInt64(4))*4 - UintptrFromInt32(LDBL_MANT_DIG)*4 - UintptrFromInt32(1)*4 + z = v6 + v5 = v6 + r = v5 + a = v5 + } + for cond := true; cond; cond = y != 0 { + **(**Tuint32_t)(__ccgo_up(z)) = uint32(y) + v5 = z + z += 4 + y = float64(Float64FromInt32(1000000000) * (y - float64(**(**Tuint32_t)(__ccgo_up(v5))))) + } + for **(**int32)(__ccgo_up(bp + 512)) > 0 { + carry = uint32(0) + if int32(29) < **(**int32)(__ccgo_up(bp + 512)) { + v7 = int32(29) + } else { + v7 = **(**int32)(__ccgo_up(bp + 512)) + } + sh = v7 + d = z - uintptr(1)*4 + for { + if !(d >= a) { + break + } + x1 = uint64(**(**Tuint32_t)(__ccgo_up(d)))< a && !(**(**Tuint32_t)(__ccgo_up(z + uintptr(-Int32FromInt32(1))*4)) != 0) { + z -= 4 + } + **(**int32)(__ccgo_up(bp + 512)) = **(**int32)(__ccgo_up(bp + 512)) - sh + } + for **(**int32)(__ccgo_up(bp + 512)) < 0 { + carry1 = uint32(0) + if int32(9) < -**(**int32)(__ccgo_up(bp + 512)) { + v7 = int32(9) + } else { + v7 = -**(**int32)(__ccgo_up(bp + 512)) + } + sh1 = v7 + need = Int32FromUint32(uint32(1) + (Uint32FromInt32(p)+Uint32FromInt32(LDBL_MANT_DIG)/Uint32FromUint32(3)+uint32(8))/uint32(9)) + d = a + for { + if !(d < z) { + break + } + rm = **(**Tuint32_t)(__ccgo_up(d)) & Uint32FromInt32(int32(1)<>sh1 + carry1 + carry1 = Uint32FromInt32(Int32FromInt32(1000000000)>>sh1) * rm + goto _26 + _26: + ; + d += 4 + } + if !(**(**Tuint32_t)(__ccgo_up(a)) != 0) { + a += 4 + } + if carry1 != 0 { + v5 = z + z += 4 + **(**Tuint32_t)(__ccgo_up(v5)) = carry1 + } + /* Avoid (slow!) computation past requested precision */ + if t|int32(32) == int32('f') { + v5 = r + } else { + v5 = a + } + b = v5 + if (int64(z)-int64(b))/4 > int64(need) { + z = b + uintptr(need)*4 + } + **(**int32)(__ccgo_up(bp + 512)) = **(**int32)(__ccgo_up(bp + 512)) + sh1 + } + if a < z { + i = int32(10) + e = int32(Int64FromInt32(9) * ((int64(r) - int64(a)) / 4)) + for { + if !(**(**Tuint32_t)(__ccgo_up(a)) >= Uint32FromInt32(i)) { + break + } + goto _29 + _29: + ; + i = i * int32(10) + e = e + 1 + } + } else { + e = 0 + } + /* Perform rounding: j is precision after the radix (possibly neg) */ + j = p - BoolInt32(t|int32(32) != int32('f'))*e - BoolInt32(t|int32(32) == int32('g') && p != 0) + if int64(j) < int64(9)*((int64(z)-int64(r))/4-int64(1)) { + /* We avoid C's broken division of negative numbers */ + d = r + uintptr(1)*4 + uintptr((j+Int32FromInt32(9)*Int32FromInt32(LDBL_MAX_EXP))/Int32FromInt32(9)-Int32FromInt32(LDBL_MAX_EXP))*4 + j = j + Int32FromInt32(9)*Int32FromInt32(LDBL_MAX_EXP) + j = j % int32(9) + i = int32(10) + j = j + 1 + for { + if !(j < int32(9)) { + break + } + goto _30 + _30: + ; + i = i * int32(10) + j = j + 1 + } + x2 = **(**Tuint32_t)(__ccgo_up(d)) % Uint32FromInt32(i) + /* Are there any significant digits past j? */ + if x2 != 0 || d+uintptr(1)*4 != z { + round1 = Float64FromInt32(2) / Float64FromFloat64(2.22044604925031308085e-16) + if **(**Tuint32_t)(__ccgo_up(d))/Uint32FromInt32(i)&uint32(1) != 0 || i == int32(1000000000) && d > a && **(**Tuint32_t)(__ccgo_up(d + uintptr(-Int32FromInt32(1))*4))&uint32(1) != 0 { + round1 = round1 + Float64FromInt32(2) + } + if x2 < Uint32FromInt32(i/int32(2)) { + small = Float64FromFloat64(0.5) + } else { + if x2 == Uint32FromInt32(i/int32(2)) && d+uintptr(1)*4 == z { + small = Float64FromFloat64(1) + } else { + small = Float64FromFloat64(1.5) + } + } + if pl != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(prefix))) == int32('-') { + round1 = round1 * float64(-Int32FromInt32(1)) + small = small * float64(-Int32FromInt32(1)) + } + **(**Tuint32_t)(__ccgo_up(d)) -= x2 + /* Decide whether to round by probing round+small */ + if round1+small != round1 { + **(**Tuint32_t)(__ccgo_up(d)) = **(**Tuint32_t)(__ccgo_up(d)) + Uint32FromInt32(i) + for **(**Tuint32_t)(__ccgo_up(d)) > uint32(999999999) { + v5 = d + d -= 4 + **(**Tuint32_t)(__ccgo_up(v5)) = uint32(0) + if d < a { + a -= 4 + v5 = a + **(**Tuint32_t)(__ccgo_up(v5)) = uint32(0) + } + **(**Tuint32_t)(__ccgo_up(d)) = **(**Tuint32_t)(__ccgo_up(d)) + 1 + } + i = int32(10) + e = int32(Int64FromInt32(9) * ((int64(r) - int64(a)) / 4)) + for { + if !(**(**Tuint32_t)(__ccgo_up(a)) >= Uint32FromInt32(i)) { + break + } + goto _33 + _33: + ; + i = i * int32(10) + e = e + 1 + } + } + } + if z > d+uintptr(1)*4 { + z = d + uintptr(1)*4 + } + } + for { + if !(z > a && !(**(**Tuint32_t)(__ccgo_up(z + uintptr(-Int32FromInt32(1))*4)) != 0)) { + break + } + goto _34 + _34: + ; + z -= 4 + } + if t|int32(32) == int32('g') { + if !(p != 0) { + p = p + 1 + } + if p > e && e >= -int32(4) { + t = t - 1 + p = p - (e + int32(1)) + } else { + t = t - int32(2) + p = p - 1 + } + if !(Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0) { + /* Count trailing zeros in last place */ + if z > a && **(**Tuint32_t)(__ccgo_up(z + uintptr(-Int32FromInt32(1))*4)) != 0 { + i = int32(10) + j = Int32FromInt32(0) + for { + if !(**(**Tuint32_t)(__ccgo_up(z + uintptr(-Int32FromInt32(1))*4))%Uint32FromInt32(i) == uint32(0)) { + break + } + goto _35 + _35: + ; + i = i * int32(10) + j = j + 1 + } + } else { + j = int32(9) + } + if t|int32(32) == int32('f') { + if int64(Int32FromInt32(0)) > int64(9)*((int64(z)-int64(r))/4-int64(1))-int64(j) { + v37 = int64(Int32FromInt32(0)) + } else { + v37 = int64(9)*((int64(z)-int64(r))/4-int64(1)) - int64(j) + } + if int64(p) < v37 { + v36 = int64(p) + } else { + if int64(Int32FromInt32(0)) > int64(9)*((int64(z)-int64(r))/4-int64(1))-int64(j) { + v38 = int64(Int32FromInt32(0)) + } else { + v38 = int64(9)*((int64(z)-int64(r))/4-int64(1)) - int64(j) + } + v36 = v38 + } + p = int32(v36) + } else { + if int64(Int32FromInt32(0)) > int64(9)*((int64(z)-int64(r))/4-int64(1))+int64(e)-int64(j) { + v37 = int64(Int32FromInt32(0)) + } else { + v37 = int64(9)*((int64(z)-int64(r))/4-int64(1)) + int64(e) - int64(j) + } + if int64(p) < v37 { + v36 = int64(p) + } else { + if int64(Int32FromInt32(0)) > int64(9)*((int64(z)-int64(r))/4-int64(1))+int64(e)-int64(j) { + v38 = int64(Int32FromInt32(0)) + } else { + v38 = int64(9)*((int64(z)-int64(r))/4-int64(1)) + int64(e) - int64(j) + } + v36 = v38 + } + p = int32(v36) + } + } + } + if p > Int32FromInt32(INT_MAX)-Int32FromInt32(1)-BoolInt32(p != 0 || Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0) { + return -int32(1) + } + l = int32(1) + p + BoolInt32(p != 0 || Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0) + if t|int32(32) == int32('f') { + if e > int32(INT_MAX)-l { + return -int32(1) + } + if e > 0 { + l = l + e + } + } else { + if e < 0 { + v7 = -e + } else { + v7 = e + } + estr = _fmt_u(tls, Uint64FromInt32(v7), ebuf) + for int64(ebuf)-int64(estr) < int64(2) { + estr = estr - 1 + v5 = estr + **(**uint8)(__ccgo_up(v5)) = uint8('0') + } + estr = estr - 1 + v5 = estr + if e < 0 { + v7 = int32('-') + } else { + v7 = int32('+') + } + **(**uint8)(__ccgo_up(v5)) = Uint8FromInt32(v7) + estr = estr - 1 + v5 = estr + **(**uint8)(__ccgo_up(v5)) = Uint8FromInt32(t) + if int64(ebuf)-int64(estr) > int64(int32(INT_MAX)-l) { + return -int32(1) + } + l = int32(int64(l) + (int64(ebuf) - int64(estr))) + } + if l > int32(INT_MAX)-pl { + return -int32(1) + } + _pad3(tls, f, uint8(' '), w, pl+l, fl) + _out(tls, f, prefix, Uint64FromInt32(pl)) + _pad3(tls, f, uint8('0'), w, pl+l, Int32FromUint32(Uint32FromInt32(fl)^Uint32FromUint32(1)<<(Int32FromUint8('0')-Int32FromUint8(' ')))) + if t|int32(32) == int32('f') { + if a > r { + a = r + } + d = a + for { + if !(d <= r) { + break + } + s2 = _fmt_u(tls, uint64(**(**Tuint32_t)(__ccgo_up(d))), bp+516+uintptr(9)) + if d != a { + for s2 > bp+516 { + s2 = s2 - 1 + v5 = s2 + **(**uint8)(__ccgo_up(v5)) = uint8('0') + } + } else { + if s2 == bp+516+uintptr(9) { + s2 = s2 - 1 + v5 = s2 + **(**uint8)(__ccgo_up(v5)) = uint8('0') + } + } + _out(tls, f, s2, Uint64FromInt64(int64(bp+516+uintptr(9))-int64(s2))) + goto _47 + _47: + ; + d += 4 + } + if p != 0 || Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0 { + _out(tls, f, __ccgo_ts+606, uint64(1)) + } + for { + if !(d < z && p > 0) { + break + } + s3 = _fmt_u(tls, uint64(**(**Tuint32_t)(__ccgo_up(d))), bp+516+uintptr(9)) + for s3 > bp+516 { + s3 = s3 - 1 + v5 = s3 + **(**uint8)(__ccgo_up(v5)) = uint8('0') + } + if int32(9) < p { + v7 = int32(9) + } else { + v7 = p + } + _out(tls, f, s3, Uint64FromInt32(v7)) + goto _50 + _50: + ; + d += 4 + p = p - int32(9) + } + _pad3(tls, f, uint8('0'), p+int32(9), int32(9), 0) + } else { + if z <= a { + z = a + uintptr(1)*4 + } + d = a + for { + if !(d < z && p >= 0) { + break + } + s4 = _fmt_u(tls, uint64(**(**Tuint32_t)(__ccgo_up(d))), bp+516+uintptr(9)) + if s4 == bp+516+uintptr(9) { + s4 = s4 - 1 + v5 = s4 + **(**uint8)(__ccgo_up(v5)) = uint8('0') + } + if d != a { + for s4 > bp+516 { + s4 = s4 - 1 + v5 = s4 + **(**uint8)(__ccgo_up(v5)) = uint8('0') + } + } else { + v5 = s4 + s4 = s4 + 1 + _out(tls, f, v5, uint64(1)) + if p > 0 || Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0 { + _out(tls, f, __ccgo_ts+606, uint64(1)) + } + } + if int64(bp+516+UintptrFromInt32(9))-int64(s4) < int64(p) { + v36 = int64(bp+516+UintptrFromInt32(9)) - int64(s4) + } else { + v36 = int64(p) + } + _out(tls, f, s4, Uint64FromInt64(v36)) + p = int32(int64(p) - (int64(bp+516+UintptrFromInt32(9)) - int64(s4))) + goto _53 + _53: + ; + d += 4 + } + _pad3(tls, f, uint8('0'), p+int32(18), int32(18), 0) + _out(tls, f, estr, Uint64FromInt64(int64(ebuf)-int64(estr))) + } + _pad3(tls, f, uint8(' '), w, pl+l, Int32FromUint32(Uint32FromInt32(fl)^Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' ')))) + if w > pl+l { + v7 = w + } else { + v7 = pl + l + } + return v7 +} + +func _getint(tls *TLS, s uintptr) (r int32) { + var i int32 + _ = i + i = 0 + for { + if !(BoolInt32(uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(s)))))-uint32('0') < uint32(10)) != 0) { + break + } + if Uint32FromInt32(i) > Uint32FromInt32(INT_MAX)/Uint32FromUint32(10) || Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(s)))))-int32('0') > int32(INT_MAX)-int32(10)*i { + i = -int32(1) + } else { + i = int32(10)*i + (Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(s))))) - int32('0')) + } + goto _1 + _1: + ; + **(**uintptr)(__ccgo_up(s)) = **(**uintptr)(__ccgo_up(s)) + 1 + } + return i +} + +func _printf_core(tls *TLS, f uintptr, fmt uintptr, ap uintptr, nl_arg uintptr, nl_type uintptr) (r int32) { + bp := tls.Alloc(64) + defer tls.Free(64) + var a, prefix, ws, z, v8 uintptr + var argpos, cnt, l, p, pl, t, w, xp, v5, v6 int32 + var fl, l10n, ps, st uint32 + var i Tsize_t + var v31 uint64 + var v34 int64 + var v45 bool + var _ /* arg at bp+8 */ Targ + var _ /* buf at bp+16 */ [24]uint8 + var _ /* mb at bp+48 */ [4]uint8 + var _ /* s at bp+0 */ uintptr + var _ /* wc at bp+40 */ [2]Twchar_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = a, argpos, cnt, fl, i, l, l10n, p, pl, prefix, ps, st, t, w, ws, xp, z, v31, v34, v45, v5, v6, v8 + **(**uintptr)(__ccgo_up(bp)) = fmt + l10n = uint32(0) + cnt = 0 + l = 0 + for { + /* This error is only specified for snprintf, but since it's + * unspecified for other forms, do the same. Stop immediately + * on overflow; otherwise %n could produce wrong results. */ + if l > int32(INT_MAX)-cnt { + goto overflow + } + /* Update output count, end loop when fmt is exhausted */ + cnt = cnt + l + if !(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)))) != 0) { + break + } + /* Handle literal text and %% format specifiers */ + a = **(**uintptr)(__ccgo_up(bp)) + for { + if !(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)))) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp))))) != int32('%')) { + break + } + goto _2 + _2: + ; + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + } + z = **(**uintptr)(__ccgo_up(bp)) + for { + if !(Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp))))) == int32('%') && Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 1))) == int32('%')) { + break + } + goto _3 + _3: + ; + z = z + 1 + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + uintptr(2) + } + if int64(z)-int64(a) > int64(int32(INT_MAX)-cnt) { + goto overflow + } + l = int32(int64(z) - int64(a)) + if f != 0 { + _out(tls, f, a, Uint64FromInt32(l)) + } + if l != 0 { + goto _1 + } + if BoolInt32(uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 1)))-uint32('0') < uint32(10)) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 2))) == int32('$') { + l10n = uint32(1) + argpos = Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 1))) - int32('0') + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + uintptr(3) + } else { + argpos = -int32(1) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + } + /* Read modifier flags */ + fl = uint32(0) + for { + if !(uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)))))-uint32(' ') < uint32(32) && (Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8('0')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8(' ')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8('+')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8('\'')-Int32FromUint8(' ')))&(uint32(1)<<(Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)))))-int32(' '))) != 0) { + break + } + fl = fl | uint32(1)<<(Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)))))-int32(' ')) + goto _4 + _4: + ; + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + } + /* Read field width */ + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp))))) == int32('*') { + if BoolInt32(uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 1)))-uint32('0') < uint32(10)) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 2))) == int32('$') { + l10n = uint32(1) + if !(f != 0) { + **(**int32)(__ccgo_up(nl_type + uintptr(Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 1)))-int32('0'))*4)) = int32(_INT) + w = Int32FromInt32(0) + } else { + w = Int32FromUint64(*(*Tuintmax_t)(unsafe.Pointer(nl_arg + uintptr(Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 1)))-int32('0'))*8))) + } + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + uintptr(3) + } else { + if !(l10n != 0) { + if f != 0 { + v5 = VaInt32(&**(**Tva_list)(__ccgo_up(ap))) + } else { + v5 = 0 + } + w = v5 + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + } else { + goto inval + } + } + if w < 0 { + fl = fl | Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' ')) + w = -w + } + } else { + v5 = _getint(tls, bp) + w = v5 + if v5 < 0 { + goto overflow + } + } + /* Read precision */ + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp))))) == int32('.') && Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 1))) == int32('*') { + if BoolInt32(uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 2)))-uint32('0') < uint32(10)) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 3))) == int32('$') { + if !(f != 0) { + **(**int32)(__ccgo_up(nl_type + uintptr(Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 2)))-int32('0'))*4)) = int32(_INT) + p = Int32FromInt32(0) + } else { + p = Int32FromUint64(*(*Tuintmax_t)(unsafe.Pointer(nl_arg + uintptr(Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 2)))-int32('0'))*8))) + } + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + uintptr(4) + } else { + if !(l10n != 0) { + if f != 0 { + v5 = VaInt32(&**(**Tva_list)(__ccgo_up(ap))) + } else { + v5 = 0 + } + p = v5 + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + uintptr(2) + } else { + goto inval + } + } + xp = BoolInt32(p >= 0) + } else { + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp))))) == int32('.') { + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + p = _getint(tls, bp) + xp = int32(1) + } else { + p = -int32(1) + xp = 0 + } + } + /* Format specifier state machine */ + st = uint32(0) + for cond := true; cond; cond = st-uint32(1) < uint32(_STOP) { + if uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)))))-uint32('A') > Uint32FromInt32(Int32FromUint8('z')-Int32FromUint8('A')) { + goto inval + } + ps = st + v8 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + st = uint32(**(**uint8)(__ccgo_up(uintptr(unsafe.Pointer(&_states)) + uintptr(st)*58 + uintptr(Int32FromUint8(**(**uint8)(__ccgo_up(v8)))-int32('A'))))) + } + if !(st != 0) { + goto inval + } + /* Check validity of argument type (nl/normal) */ + if st == uint32(_NOARG) { + if argpos >= 0 { + goto inval + } + } else { + if argpos >= 0 { + if !(f != 0) { + **(**int32)(__ccgo_up(nl_type + uintptr(argpos)*4)) = Int32FromUint32(st) + } else { + **(**Targ)(__ccgo_up(bp + 8)) = **(**Targ)(__ccgo_up(nl_arg + uintptr(argpos)*8)) + } + } else { + if f != 0 { + _pop_arg(tls, bp+8, Int32FromUint32(st), ap) + } else { + return 0 + } + } + } + if !(f != 0) { + goto _1 + } + /* Do not process any new directives once in error state. */ + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_ERR) != 0 { + return -int32(1) + } + z = bp + 16 + uintptr(24) + prefix = __ccgo_ts + 1659 + pl = 0 + t = Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + uintptr(-Int32FromInt32(1))))) + /* Transform ls,lc -> S,C */ + if ps != 0 && t&int32(15) == int32(3) { + t = t & ^Int32FromInt32(32) + } + /* - and 0 flags are mutually exclusive */ + if fl&(Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' '))) != 0 { + fl = fl & ^(Uint32FromUint32(1) << (Int32FromUint8('0') - Int32FromUint8(' '))) + } + switch t { + case int32('n'): + goto _9 + case int32('p'): + goto _10 + case int32('X'): + goto _11 + case int32('x'): + goto _12 + case int32('o'): + goto _13 + case int32('i'): + goto _14 + case int32('d'): + goto _15 + case int32('u'): + goto _16 + case int32('c'): + goto _17 + case int32('s'): + goto _18 + case int32('m'): + goto _19 + case int32('C'): + goto _20 + case int32('S'): + goto _21 + case int32('A'): + goto _22 + case int32('G'): + goto _23 + case int32('F'): + goto _24 + case int32('E'): + goto _25 + case int32('a'): + goto _26 + case int32('g'): + goto _27 + case int32('f'): + goto _28 + case int32('e'): + goto _29 + } + goto _30 + _9: + ; + switch ps { + case uint32(_BARE): + **(**int32)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 8)))) = cnt + case uint32(_LPRE): + **(**int64)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 8)))) = int64(cnt) + case uint32(_LLPRE): + **(**int64)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 8)))) = int64(cnt) + case uint32(_HPRE): + **(**uint16)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 8)))) = Uint16FromInt32(cnt) + case uint32(_HHPRE): + **(**uint8)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 8)))) = Uint8FromInt32(cnt) + case uint32(_ZTPRE): + **(**Tsize_t)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 8)))) = Uint64FromInt32(cnt) + case uint32(_JPRE): + **(**Tuintmax_t)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 8)))) = Uint64FromInt32(cnt) + break + } + goto _1 + _10: + ; + if Uint64FromInt32(p) > Uint64FromInt32(2)*Uint64FromInt64(8) { + v31 = Uint64FromInt32(p) + } else { + v31 = Uint64FromInt32(2) * Uint64FromInt64(8) + } + p = Int32FromUint64(v31) + t = int32('x') + fl = fl | Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' ')) + _12: + ; + _11: + ; + a = _fmt_x(tls, *(*Tuintmax_t)(unsafe.Pointer(bp + 8)), z, t&int32(32)) + if *(*Tuintmax_t)(unsafe.Pointer(bp + 8)) != 0 && fl&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0 { + prefix = prefix + uintptr(t>>Int32FromInt32(4)) + pl = Int32FromInt32(2) + } + if !(0 != 0) { + goto _32 + } + _13: + ; + a = _fmt_o(tls, *(*Tuintmax_t)(unsafe.Pointer(bp + 8)), z) + if fl&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0 && int64(p) < int64(z)-int64(a)+int64(1) { + p = int32(int64(z) - int64(a) + int64(1)) + } + _32: + ; + if !(0 != 0) { + goto _33 + } + _15: + ; + _14: + ; + pl = int32(1) + if *(*Tuintmax_t)(unsafe.Pointer(bp + 8)) > Uint64FromInt64(Int64FromInt64(INT64_MAX)) { + *(*Tuintmax_t)(unsafe.Pointer(bp + 8)) = -*(*Tuintmax_t)(unsafe.Pointer(bp + 8)) + } else { + if fl&(Uint32FromUint32(1)<<(Int32FromUint8('+')-Int32FromUint8(' '))) != 0 { + prefix = prefix + 1 + } else { + if fl&(Uint32FromUint32(1)<<(Int32FromUint8(' ')-Int32FromUint8(' '))) != 0 { + prefix = prefix + uintptr(2) + } else { + pl = 0 + } + } + } + _16: + ; + a = _fmt_u(tls, *(*Tuintmax_t)(unsafe.Pointer(bp + 8)), z) + _33: + ; + if xp != 0 && p < 0 { + goto overflow + } + if xp != 0 { + fl = fl & ^(Uint32FromUint32(1) << (Int32FromUint8('0') - Int32FromUint8(' '))) + } + if !(*(*Tuintmax_t)(unsafe.Pointer(bp + 8)) != 0) && !(p != 0) { + a = z + goto _30 + } + if int64(p) > int64(z)-int64(a)+BoolInt64(!(*(*Tuintmax_t)(unsafe.Pointer(bp + 8)) != 0)) { + v34 = int64(p) + } else { + v34 = int64(z) - int64(a) + BoolInt64(!(*(*Tuintmax_t)(unsafe.Pointer(bp + 8)) != 0)) + } + p = int32(v34) + goto _30 + goto narrow_c + narrow_c: + ; + _17: + ; + v5 = Int32FromInt32(1) + p = v5 + v8 = z - uintptr(v5) + a = v8 + **(**uint8)(__ccgo_up(v8)) = uint8(*(*Tuintmax_t)(unsafe.Pointer(bp + 8))) + fl = fl & ^(Uint32FromUint32(1) << (Int32FromUint8('0') - Int32FromUint8(' '))) + goto _30 + _19: + ; + if !(int32(1) != 0) { + goto _37 + } + a = Xstrerror(tls, **(**int32)(__ccgo_up(X__errno_location(tls)))) + goto _38 + _37: + ; + _18: + ; + if *(*uintptr)(unsafe.Pointer(bp + 8)) != 0 { + v8 = *(*uintptr)(unsafe.Pointer(bp + 8)) + } else { + v8 = __ccgo_ts + 1669 + } + a = v8 + _38: + ; + if p < 0 { + v5 = int32(INT_MAX) + } else { + v5 = p + } + z = a + uintptr(Xstrnlen(tls, a, Uint64FromInt32(v5))) + if p < 0 && **(**uint8)(__ccgo_up(z)) != 0 { + goto overflow + } + p = int32(int64(z) - int64(a)) + fl = fl & ^(Uint32FromUint32(1) << (Int32FromUint8('0') - Int32FromUint8(' '))) + goto _30 + _20: + ; + if !(*(*Tuintmax_t)(unsafe.Pointer(bp + 8)) != 0) { + goto narrow_c + } + (**(**[2]Twchar_t)(__ccgo_up(bp + 40)))[0] = Int32FromUint64(*(*Tuintmax_t)(unsafe.Pointer(bp + 8))) + (**(**[2]Twchar_t)(__ccgo_up(bp + 40)))[int32(1)] = 0 + *(*uintptr)(unsafe.Pointer(bp + 8)) = bp + 40 + p = -int32(1) + _21: + ; + ws = *(*uintptr)(unsafe.Pointer(bp + 8)) + v5 = Int32FromInt32(0) + l = v5 + i = Uint64FromInt32(v5) + for { + if v45 = i < Uint64FromInt32(p) && **(**Twchar_t)(__ccgo_up(ws)) != 0; v45 { + v8 = ws + ws += 4 + v6 = Xwctomb(tls, bp+48, **(**Twchar_t)(__ccgo_up(v8))) + l = v6 + } + if !(v45 && v6 >= 0 && Uint64FromInt32(l) <= Uint64FromInt32(p)-i) { + break + } + goto _41 + _41: + ; + i = i + Uint64FromInt32(l) + } + if l < 0 { + return -int32(1) + } + if i > uint64(INT_MAX) { + goto overflow + } + p = Int32FromUint64(i) + _pad3(tls, f, uint8(' '), w, p, Int32FromUint32(fl)) + ws = *(*uintptr)(unsafe.Pointer(bp + 8)) + i = uint64(0) + for { + if v45 = i < uint64(0+Uint32FromInt32(p)) && **(**Twchar_t)(__ccgo_up(ws)) != 0; v45 { + v8 = ws + ws += 4 + v5 = Xwctomb(tls, bp+48, **(**Twchar_t)(__ccgo_up(v8))) + l = v5 + } + if !(v45 && i+Uint64FromInt32(v5) <= Uint64FromInt32(p)) { + break + } + _out(tls, f, bp+48, Uint64FromInt32(l)) + goto _46 + _46: + ; + i = i + Uint64FromInt32(l) + } + _pad3(tls, f, uint8(' '), w, p, Int32FromUint32(fl^Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' ')))) + if w > p { + v5 = w + } else { + v5 = p + } + l = v5 + goto _1 + _29: + ; + _28: + ; + _27: + ; + _26: + ; + _25: + ; + _24: + ; + _23: + ; + _22: + ; + if xp != 0 && p < 0 { + goto overflow + } + l = _fmt_fp(tls, f, *(*float64)(unsafe.Pointer(bp + 8)), w, p, Int32FromUint32(fl), t) + if l < 0 { + goto overflow + } + goto _1 + _30: + ; + if int64(p) < int64(z)-int64(a) { + p = int32(int64(z) - int64(a)) + } + if p > int32(INT_MAX)-pl { + goto overflow + } + if w < pl+p { + w = pl + p + } + if w > int32(INT_MAX)-cnt { + goto overflow + } + _pad3(tls, f, uint8(' '), w, pl+p, Int32FromUint32(fl)) + _out(tls, f, prefix, Uint64FromInt32(pl)) + _pad3(tls, f, uint8('0'), w, pl+p, Int32FromUint32(fl^Uint32FromUint32(1)<<(Int32FromUint8('0')-Int32FromUint8(' ')))) + _pad3(tls, f, uint8('0'), p, int32(int64(z)-int64(a)), 0) + _out(tls, f, a, Uint64FromInt64(int64(z)-int64(a))) + _pad3(tls, f, uint8(' '), w, pl+p, Int32FromUint32(fl^Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' ')))) + l = w + goto _1 + _1: + } + if f != 0 { + return cnt + } + if !(l10n != 0) { + return 0 + } + i = uint64(1) + for { + if !(i <= uint64(NL_ARGMAX) && **(**int32)(__ccgo_up(nl_type + uintptr(i)*4)) != 0) { + break + } + _pop_arg(tls, nl_arg+uintptr(i)*8, **(**int32)(__ccgo_up(nl_type + uintptr(i)*4)), ap) + goto _51 + _51: + ; + i = i + 1 + } + for { + if !(i <= uint64(NL_ARGMAX) && !(**(**int32)(__ccgo_up(nl_type + uintptr(i)*4)) != 0)) { + break + } + goto _52 + _52: + ; + i = i + 1 + } + if i <= uint64(NL_ARGMAX) { + goto inval + } + return int32(1) + goto inval +inval: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + goto overflow +overflow: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOVERFLOW) + return -int32(1) +} + +func Xvfprintf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v ap=%v, (%v:)", tls, f, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(208) + defer tls.Free(208) + var __need_unlock, olderr, ret, v1 int32 + var saved_buf, v2, v3 uintptr + var _ /* ap2 at bp+0 */ Tva_list + var _ /* internal_buf at bp+128 */ [80]uint8 + var _ /* nl_arg at bp+48 */ [10]Targ + var _ /* nl_type at bp+8 */ [10]int32 + _, _, _, _, _, _, _ = __need_unlock, olderr, ret, saved_buf, v1, v2, v3 + **(**[10]int32)(__ccgo_up(bp + 8)) = [10]int32{} + saved_buf = uintptr(0) + /* the copy allows passing va_list* even if va_list is an array */ + **(**Tva_list)(__ccgo_up(bp)) = ap + if _printf_core(tls, uintptr(0), fmt, bp, bp+48, bp+8) < 0 { + _ = **(**Tva_list)(__ccgo_up(bp)) + return -int32(1) + } + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + olderr = Int32FromUint32((*TFILE)(unsafe.Pointer(f)).Fflags & uint32(F_ERR)) + **(**uint32)(__ccgo_up(f)) &= Uint32FromInt32(^Int32FromInt32(F_ERR)) + if !((*TFILE)(unsafe.Pointer(f)).Fbuf_size != 0) { + saved_buf = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Fbuf = bp + 128 + (*TFILE)(unsafe.Pointer(f)).Fbuf_size = uint64(80) + v3 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Fwend = v3 + v2 = v3 + (*TFILE)(unsafe.Pointer(f)).Fwbase = v2 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v2 + } + if !((*TFILE)(unsafe.Pointer(f)).Fwend != 0) && X__towrite(tls, f) != 0 { + ret = -int32(1) + } else { + ret = _printf_core(tls, f, fmt, bp, bp+48, bp+8) + } + if saved_buf != 0 { + (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tsize_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fwrite})))(tls, f, uintptr(0), uint64(0)) + if !((*TFILE)(unsafe.Pointer(f)).Fwpos != 0) { + ret = -int32(1) + } + (*TFILE)(unsafe.Pointer(f)).Fbuf = saved_buf + (*TFILE)(unsafe.Pointer(f)).Fbuf_size = uint64(0) + v3 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Fwend = v3 + v2 = v3 + (*TFILE)(unsafe.Pointer(f)).Fwbase = v2 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v2 + } + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_ERR) != 0 { + ret = -int32(1) + } + **(**uint32)(__ccgo_up(f)) |= Uint32FromInt32(olderr) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + _ = **(**Tva_list)(__ccgo_up(bp)) + return ret +} + +const SIZE_L = 2 +const SIZE_def = 0 +const SIZE_h = -1 +const SIZE_hh = -2 +const SIZE_l = 1 +const SIZE_ll = 3 + +func _store_int(tls *TLS, dest uintptr, size int32, i uint64) { + if !(dest != 0) { + return + } + switch size { + case -int32(2): + **(**uint8)(__ccgo_up(dest)) = uint8(i) + case -int32(1): + **(**int16)(__ccgo_up(dest)) = Int16FromUint64(i) + case SIZE_def: + **(**int32)(__ccgo_up(dest)) = Int32FromUint64(i) + case int32(SIZE_l): + **(**int64)(__ccgo_up(dest)) = Int64FromUint64(i) + case int32(SIZE_ll): + **(**int64)(__ccgo_up(dest)) = Int64FromUint64(i) + break + } +} + +func _arg_n(tls *TLS, ap Tva_list, n uint32) (r uintptr) { + var ap2 Tva_list + var i uint32 + var p uintptr + _, _, _ = ap2, i, p + ap2 = ap + i = n + for { + if !(i > uint32(1)) { + break + } + _ = VaUintptr(&ap2) + goto _1 + _1: + ; + i = i - 1 + } + p = VaUintptr(&ap2) + _ = ap2 + return p +} + +func Xvfscanf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v ap=%v, (%v:)", tls, f, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(288) + defer tls.Free(288) + var __need_unlock, alloc, base, c, invert, matches, size, t, width, v1, v3, v4, v6 int32 + var dest, p, s, tmp, tmp1, wcs, v10, v11, v17 uintptr + var i, k, v64 Tsize_t + var pos Toff_t + var x uint64 + var y float64 + var v59 uint32 + var _ /* scanset at bp+16 */ [257]uint8 + var _ /* st at bp+8 */ Tmbstate_t + var _ /* wc at bp+276 */ Twchar_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = __need_unlock, alloc, base, c, dest, i, invert, k, matches, p, pos, s, size, t, tmp, tmp1, wcs, width, x, y, v1, v10, v11, v17, v3, v4, v59, v6, v64 + alloc = 0 + dest = UintptrFromInt32(0) + matches = 0 + pos = 0 + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + if !((*TFILE)(unsafe.Pointer(f)).Frpos != 0) { + X__toread(tls, f) + } + if !((*TFILE)(unsafe.Pointer(f)).Frpos != 0) { + goto input_fail + } + p = fmt + for { + if !(**(**uint8)(__ccgo_up(p)) != 0) { + break + } + alloc = 0 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(p))) + v3 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _5 + _5: + if v3 != 0 { + for { + v4 = Int32FromUint8(**(**uint8)(__ccgo_up(p + 1))) + v6 = BoolInt32(v4 == int32(' ') || Uint32FromInt32(v4)-uint32('\t') < uint32(5)) + goto _8 + _8: + if !(v6 != 0) { + break + } + p = p + 1 + } + X__shlim(tls, f, int64(Int32FromInt32(0))) + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v11 = f + 8 + v10 = *(*uintptr)(unsafe.Pointer(v11)) + *(*uintptr)(unsafe.Pointer(v11)) = *(*uintptr)(unsafe.Pointer(v11)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v10))) + } else { + v1 = X__shgetc(tls, f) + } + v3 = v1 + v4 = BoolInt32(v3 == int32(' ') || Uint32FromInt32(v3)-uint32('\t') < uint32(5)) + goto _14 + _14: + if !(v4 != 0) { + break + } + } + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + pos = pos + ((*TFILE)(unsafe.Pointer(f)).Fshcnt + (int64((*TFILE)(unsafe.Pointer(f)).Frpos) - int64((*TFILE)(unsafe.Pointer(f)).Fbuf))) + goto _2 + } + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) != int32('%') || Int32FromUint8(**(**uint8)(__ccgo_up(p + 1))) == int32('%') { + X__shlim(tls, f, int64(Int32FromInt32(0))) + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('%') { + p = p + 1 + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v11 = f + 8 + v10 = *(*uintptr)(unsafe.Pointer(v11)) + *(*uintptr)(unsafe.Pointer(v11)) = *(*uintptr)(unsafe.Pointer(v11)) + 1 + v3 = Int32FromUint8(**(**uint8)(__ccgo_up(v10))) + } else { + v3 = X__shgetc(tls, f) + } + v1 = v3 + c = v1 + v4 = v1 + v6 = BoolInt32(v4 == int32(' ') || Uint32FromInt32(v4)-uint32('\t') < uint32(5)) + goto _21 + _21: + if !(v6 != 0) { + break + } + } + } else { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v11 = f + 8 + v10 = *(*uintptr)(unsafe.Pointer(v11)) + *(*uintptr)(unsafe.Pointer(v11)) = *(*uintptr)(unsafe.Pointer(v11)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v10))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + if c != Int32FromUint8(**(**uint8)(__ccgo_up(p))) { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + if c < 0 { + goto input_fail + } + goto match_fail + } + pos = pos + ((*TFILE)(unsafe.Pointer(f)).Fshcnt + (int64((*TFILE)(unsafe.Pointer(f)).Frpos) - int64((*TFILE)(unsafe.Pointer(f)).Fbuf))) + goto _2 + } + p = p + 1 + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('*') { + dest = uintptr(0) + p = p + 1 + } else { + if BoolInt32(uint32(**(**uint8)(__ccgo_up(p)))-uint32('0') < uint32(10)) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(p + 1))) == int32('$') { + dest = _arg_n(tls, ap, Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(p)))-int32('0'))) + p = p + uintptr(2) + } else { + dest = VaUintptr(&ap) + } + } + width = 0 + for { + if !(BoolInt32(uint32(**(**uint8)(__ccgo_up(p)))-uint32('0') < uint32(10)) != 0) { + break + } + width = int32(10)*width + Int32FromUint8(**(**uint8)(__ccgo_up(p))) - int32('0') + goto _25 + _25: + ; + p = p + 1 + } + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('m') { + wcs = uintptr(0) + s = uintptr(0) + alloc = BoolInt32(!!(dest != 0)) + p = p + 1 + } else { + alloc = 0 + } + size = SIZE_def + v10 = p + p = p + 1 + switch Int32FromUint8(**(**uint8)(__ccgo_up(v10))) { + case int32('h'): + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('h') { + p = p + 1 + size = -Int32FromInt32(2) + } else { + size = -int32(1) + } + case int32('l'): + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('l') { + p = p + 1 + size = Int32FromInt32(SIZE_ll) + } else { + size = int32(SIZE_l) + } + case int32('j'): + size = int32(SIZE_ll) + case int32('z'): + fallthrough + case int32('t'): + size = int32(SIZE_l) + case int32('L'): + size = int32(SIZE_L) + case int32('d'): + fallthrough + case int32('i'): + fallthrough + case int32('o'): + fallthrough + case int32('u'): + fallthrough + case int32('x'): + fallthrough + case int32('a'): + fallthrough + case int32('e'): + fallthrough + case int32('f'): + fallthrough + case int32('g'): + fallthrough + case int32('A'): + fallthrough + case int32('E'): + fallthrough + case int32('F'): + fallthrough + case int32('G'): + fallthrough + case int32('X'): + fallthrough + case int32('s'): + fallthrough + case int32('c'): + fallthrough + case int32('['): + fallthrough + case int32('S'): + fallthrough + case int32('C'): + fallthrough + case int32('p'): + fallthrough + case int32('n'): + p = p - 1 + default: + goto fmt_fail + } + t = Int32FromUint8(**(**uint8)(__ccgo_up(p))) + /* C or S */ + if t&int32(0x2f) == int32(3) { + t = t | int32(32) + size = int32(SIZE_l) + } + switch t { + case int32('c'): + if width < int32(1) { + width = int32(1) + } + fallthrough + case int32('['): + case int32('n'): + _store_int(tls, dest, size, Uint64FromInt64(pos)) + /* do not increment match count, etc! */ + goto _2 + default: + X__shlim(tls, f, int64(Int32FromInt32(0))) + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v11 = f + 8 + v10 = *(*uintptr)(unsafe.Pointer(v11)) + *(*uintptr)(unsafe.Pointer(v11)) = *(*uintptr)(unsafe.Pointer(v11)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v10))) + } else { + v1 = X__shgetc(tls, f) + } + v3 = v1 + v4 = BoolInt32(v3 == int32(' ') || Uint32FromInt32(v3)-uint32('\t') < uint32(5)) + goto _32 + _32: + if !(v4 != 0) { + break + } + } + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + pos = pos + ((*TFILE)(unsafe.Pointer(f)).Fshcnt + (int64((*TFILE)(unsafe.Pointer(f)).Frpos) - int64((*TFILE)(unsafe.Pointer(f)).Fbuf))) + } + X__shlim(tls, f, int64(width)) + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v11 = f + 8 + v10 = *(*uintptr)(unsafe.Pointer(v11)) + *(*uintptr)(unsafe.Pointer(v11)) = *(*uintptr)(unsafe.Pointer(v11)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v10))) + } else { + v1 = X__shgetc(tls, f) + } + if v1 < 0 { + goto input_fail + } + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + switch t { + case int32('['): + goto _36 + case int32('c'): + goto _37 + case int32('s'): + goto _38 + case int32('x'): + goto _39 + case int32('X'): + goto _40 + case int32('p'): + goto _41 + case int32('o'): + goto _42 + case int32('u'): + goto _43 + case int32('d'): + goto _44 + case int32('i'): + goto _45 + case int32('G'): + goto _46 + case int32('g'): + goto _47 + case int32('F'): + goto _48 + case int32('f'): + goto _49 + case int32('E'): + goto _50 + case int32('e'): + goto _51 + case int32('A'): + goto _52 + case int32('a'): + goto _53 + } + goto _54 + _38: + ; + _37: + ; + _36: + ; + if t == int32('c') || t == int32('s') { + Xmemset(tls, bp+16, -int32(1), uint64(257)) + (**(**[257]uint8)(__ccgo_up(bp + 16)))[0] = uint8(0) + if t == int32('s') { + (**(**[257]uint8)(__ccgo_up(bp + 16)))[Int32FromInt32(1)+Int32FromUint8('\t')] = uint8(0) + (**(**[257]uint8)(__ccgo_up(bp + 16)))[Int32FromInt32(1)+Int32FromUint8('\n')] = uint8(0) + (**(**[257]uint8)(__ccgo_up(bp + 16)))[Int32FromInt32(1)+Int32FromUint8('\v')] = uint8(0) + (**(**[257]uint8)(__ccgo_up(bp + 16)))[Int32FromInt32(1)+Int32FromUint8('\f')] = uint8(0) + (**(**[257]uint8)(__ccgo_up(bp + 16)))[Int32FromInt32(1)+Int32FromUint8('\r')] = uint8(0) + (**(**[257]uint8)(__ccgo_up(bp + 16)))[Int32FromInt32(1)+Int32FromUint8(' ')] = uint8(0) + } + } else { + p = p + 1 + v10 = p + if Int32FromUint8(**(**uint8)(__ccgo_up(v10))) == int32('^') { + p = p + 1 + invert = Int32FromInt32(1) + } else { + invert = 0 + } + Xmemset(tls, bp+16, invert, uint64(257)) + (**(**[257]uint8)(__ccgo_up(bp + 16)))[0] = uint8(0) + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('-') { + p = p + 1 + (**(**[257]uint8)(__ccgo_up(bp + 16)))[Int32FromInt32(1)+Int32FromUint8('-')] = Uint8FromInt32(Int32FromInt32(1) - invert) + } else { + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32(']') { + p = p + 1 + (**(**[257]uint8)(__ccgo_up(bp + 16)))[Int32FromInt32(1)+Int32FromUint8(']')] = Uint8FromInt32(Int32FromInt32(1) - invert) + } + } + for { + if !(Int32FromUint8(**(**uint8)(__ccgo_up(p))) != int32(']')) { + break + } + if !(**(**uint8)(__ccgo_up(p)) != 0) { + goto fmt_fail + } + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('-') && **(**uint8)(__ccgo_up(p + 1)) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(p + 1))) != int32(']') { + v10 = p + p = p + 1 + c = Int32FromUint8(**(**uint8)(__ccgo_up(v10 + uintptr(-Int32FromInt32(1))))) + for { + if !(c < Int32FromUint8(**(**uint8)(__ccgo_up(p)))) { + break + } + (**(**[257]uint8)(__ccgo_up(bp + 16)))[int32(1)+c] = Uint8FromInt32(int32(1) - invert) + goto _57 + _57: + ; + c = c + 1 + } + } + (**(**[257]uint8)(__ccgo_up(bp + 16)))[int32(1)+Int32FromUint8(**(**uint8)(__ccgo_up(p)))] = Uint8FromInt32(int32(1) - invert) + goto _56 + _56: + ; + p = p + 1 + } + } + wcs = uintptr(0) + s = uintptr(0) + i = uint64(0) + if t == int32('c') { + v59 = Uint32FromInt32(width) + uint32(1) + } else { + v59 = uint32(31) + } + k = uint64(v59) + if size == int32(SIZE_l) { + if alloc != 0 { + wcs = Xmalloc(tls, k*uint64(4)) + if !(wcs != 0) { + goto alloc_fail + } + } else { + wcs = dest + } + **(**Tmbstate_t)(__ccgo_up(bp + 8)) = Tmbstate_t{} + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v11 = f + 8 + v10 = *(*uintptr)(unsafe.Pointer(v11)) + *(*uintptr)(unsafe.Pointer(v11)) = *(*uintptr)(unsafe.Pointer(v11)) + 1 + v3 = Int32FromUint8(**(**uint8)(__ccgo_up(v10))) + } else { + v3 = X__shgetc(tls, f) + } + v1 = v3 + c = v1 + if !((**(**[257]uint8)(__ccgo_up(bp + 16)))[v1+int32(1)] != 0) { + break + } + *(*uint8)(unsafe.Pointer(bp)) = Uint8FromInt32(c) + switch Xmbrtowc(tls, bp+276, bp, uint64(1), bp+8) { + case Uint64FromInt32(-Int32FromInt32(1)): + goto input_fail + case Uint64FromInt32(-Int32FromInt32(2)): + continue + } + if wcs != 0 { + v64 = i + i = i + 1 + **(**Twchar_t)(__ccgo_up(wcs + uintptr(v64)*4)) = **(**Twchar_t)(__ccgo_up(bp + 276)) + } + if alloc != 0 && i == k { + k = k + (k + uint64(1)) + tmp = Xrealloc(tls, wcs, k*uint64(4)) + if !(tmp != 0) { + goto alloc_fail + } + wcs = tmp + } + } + if !(Xmbsinit(tls, bp+8) != 0) { + goto input_fail + } + } else { + if alloc != 0 { + s = Xmalloc(tls, k) + if !(s != 0) { + goto alloc_fail + } + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v11 = f + 8 + v10 = *(*uintptr)(unsafe.Pointer(v11)) + *(*uintptr)(unsafe.Pointer(v11)) = *(*uintptr)(unsafe.Pointer(v11)) + 1 + v3 = Int32FromUint8(**(**uint8)(__ccgo_up(v10))) + } else { + v3 = X__shgetc(tls, f) + } + v1 = v3 + c = v1 + if !((**(**[257]uint8)(__ccgo_up(bp + 16)))[v1+int32(1)] != 0) { + break + } + v64 = i + i = i + 1 + **(**uint8)(__ccgo_up(s + uintptr(v64))) = Uint8FromInt32(c) + if i == k { + k = k + (k + uint64(1)) + tmp1 = Xrealloc(tls, s, k) + if !(tmp1 != 0) { + goto alloc_fail + } + s = tmp1 + } + } + } else { + v10 = dest + s = v10 + if v10 != 0 { + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v17 = f + 8 + v11 = *(*uintptr)(unsafe.Pointer(v17)) + *(*uintptr)(unsafe.Pointer(v17)) = *(*uintptr)(unsafe.Pointer(v17)) + 1 + v3 = Int32FromUint8(**(**uint8)(__ccgo_up(v11))) + } else { + v3 = X__shgetc(tls, f) + } + v1 = v3 + c = v1 + if !((**(**[257]uint8)(__ccgo_up(bp + 16)))[v1+int32(1)] != 0) { + break + } + v64 = i + i = i + 1 + **(**uint8)(__ccgo_up(s + uintptr(v64))) = Uint8FromInt32(c) + } + } else { + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v11 = f + 8 + v10 = *(*uintptr)(unsafe.Pointer(v11)) + *(*uintptr)(unsafe.Pointer(v11)) = *(*uintptr)(unsafe.Pointer(v11)) + 1 + v3 = Int32FromUint8(**(**uint8)(__ccgo_up(v10))) + } else { + v3 = X__shgetc(tls, f) + } + v1 = v3 + c = v1 + if !((**(**[257]uint8)(__ccgo_up(bp + 16)))[v1+int32(1)] != 0) { + break + } + } + } + } + } + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + if !((*TFILE)(unsafe.Pointer(f)).Fshcnt+(int64((*TFILE)(unsafe.Pointer(f)).Frpos)-int64((*TFILE)(unsafe.Pointer(f)).Fbuf)) != 0) { + goto match_fail + } + if t == int32('c') && (*TFILE)(unsafe.Pointer(f)).Fshcnt+(int64((*TFILE)(unsafe.Pointer(f)).Frpos)-int64((*TFILE)(unsafe.Pointer(f)).Fbuf)) != int64(width) { + goto match_fail + } + if alloc != 0 { + if size == int32(SIZE_l) { + **(**uintptr)(__ccgo_up(dest)) = wcs + } else { + **(**uintptr)(__ccgo_up(dest)) = s + } + } + if t != int32('c') { + if wcs != 0 { + **(**Twchar_t)(__ccgo_up(wcs + uintptr(i)*4)) = 0 + } + if s != 0 { + **(**uint8)(__ccgo_up(s + uintptr(i))) = uint8(0) + } + } + goto _54 + _41: + ; + _40: + ; + _39: + ; + base = int32(16) + goto int_common + _42: + ; + base = int32(8) + goto int_common + _44: + ; + _43: + ; + base = int32(10) + goto int_common + _45: + ; + base = 0 + goto int_common + int_common: + ; + x = X__intscan(tls, f, Uint32FromInt32(base), 0, Uint64FromUint64(2)*Uint64FromInt64(0x7fffffffffffffff)+Uint64FromInt32(1)) + if !((*TFILE)(unsafe.Pointer(f)).Fshcnt+(int64((*TFILE)(unsafe.Pointer(f)).Frpos)-int64((*TFILE)(unsafe.Pointer(f)).Fbuf)) != 0) { + goto match_fail + } + if t == int32('p') && dest != 0 { + **(**uintptr)(__ccgo_up(dest)) = uintptr(x) + } else { + _store_int(tls, dest, size, x) + } + goto _54 + _53: + ; + _52: + ; + _51: + ; + _50: + ; + _49: + ; + _48: + ; + _47: + ; + _46: + ; + y = X__floatscan(tls, f, size, 0) + if !((*TFILE)(unsafe.Pointer(f)).Fshcnt+(int64((*TFILE)(unsafe.Pointer(f)).Frpos)-int64((*TFILE)(unsafe.Pointer(f)).Fbuf)) != 0) { + goto match_fail + } + if dest != 0 { + switch size { + case SIZE_def: + **(**float32)(__ccgo_up(dest)) = float32(y) + case int32(SIZE_l): + **(**float64)(__ccgo_up(dest)) = y + case int32(SIZE_L): + **(**float64)(__ccgo_up(dest)) = y + break + } + } + goto _54 + _54: + ; + pos = pos + ((*TFILE)(unsafe.Pointer(f)).Fshcnt + (int64((*TFILE)(unsafe.Pointer(f)).Frpos) - int64((*TFILE)(unsafe.Pointer(f)).Fbuf))) + if dest != 0 { + matches = matches + 1 + } + goto _2 + _2: + ; + p = p + 1 + } + if !(0 != 0) { + goto _80 + } + goto fmt_fail +fmt_fail: + ; + goto alloc_fail +alloc_fail: + ; + goto input_fail +input_fail: + ; + if !(matches != 0) { + matches = matches - 1 + } + goto match_fail +match_fail: + ; + if alloc != 0 { + Xfree(tls, s) + Xfree(tls, wcs) + } +_80: + ; + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return matches +} + +func X__isoc99_vfscanf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v ap=%v, (%v:)", tls, f, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvfscanf(tls, f, fmt, ap) +} + +var _states1 = [8][58]uint8{ + 0: { + 0: uint8(_DBL), + 2: uint8(_UINT), + 4: uint8(_DBL), + 5: uint8(_DBL), + 6: uint8(_DBL), + 11: uint8(_BIGLPRE), + 18: uint8(_PTR), + 23: uint8(_UINT), + 32: uint8(_DBL), + 34: uint8(_INT), + 35: uint8(_INT), + 36: uint8(_DBL), + 37: uint8(_DBL), + 38: uint8(_DBL), + 39: uint8(_HPRE), + 40: uint8(_INT), + 41: uint8(_JPRE), + 43: uint8(_LPRE), + 44: uint8(_NOARG), + 45: uint8(_PTR), + 46: uint8(_UINT), + 47: uint8(_UIPTR), + 50: uint8(_PTR), + 51: uint8(_ZTPRE), + 52: uint8(_UINT), + 55: uint8(_UINT), + 57: uint8(_ZTPRE), + }, + 1: { + 0: uint8(_DBL), + 4: uint8(_DBL), + 5: uint8(_DBL), + 6: uint8(_DBL), + 23: uint8(_ULONG), + 32: uint8(_DBL), + 34: uint8(_UINT), + 35: uint8(_LONG), + 36: uint8(_DBL), + 37: uint8(_DBL), + 38: uint8(_DBL), + 40: uint8(_LONG), + 43: uint8(_LLPRE), + 45: uint8(_PTR), + 46: uint8(_ULONG), + 50: uint8(_PTR), + 52: uint8(_ULONG), + 55: uint8(_ULONG), + }, + 2: { + 23: uint8(_ULLONG), + 35: uint8(_LLONG), + 40: uint8(_LLONG), + 45: uint8(_PTR), + 46: uint8(_ULLONG), + 52: uint8(_ULLONG), + 55: uint8(_ULLONG), + }, + 3: { + 23: uint8(_USHORT), + 35: uint8(_SHORT), + 39: uint8(_HHPRE), + 40: uint8(_SHORT), + 45: uint8(_PTR), + 46: uint8(_USHORT), + 52: uint8(_USHORT), + 55: uint8(_USHORT), + }, + 4: { + 23: uint8(_UCHAR), + 35: uint8(_CHAR), + 40: uint8(_CHAR), + 45: uint8(_PTR), + 46: uint8(_UCHAR), + 52: uint8(_UCHAR), + 55: uint8(_UCHAR), + }, + 5: { + 0: uint8(_LDBL), + 4: uint8(_LDBL), + 5: uint8(_LDBL), + 6: uint8(_LDBL), + 32: uint8(_LDBL), + 36: uint8(_LDBL), + 37: uint8(_LDBL), + 38: uint8(_LDBL), + 45: uint8(_PTR), + }, + 6: { + 23: uint8(_SIZET), + 35: uint8(_PDIFF), + 40: uint8(_PDIFF), + 45: uint8(_PTR), + 46: uint8(_SIZET), + 52: uint8(_SIZET), + 55: uint8(_SIZET), + }, + 7: { + 23: uint8(_UMAX), + 35: uint8(_IMAX), + 40: uint8(_IMAX), + 45: uint8(_PTR), + 46: uint8(_UMAX), + 52: uint8(_UMAX), + 55: uint8(_UMAX), + }, +} + +func _pop_arg1(tls *TLS, arg uintptr, type1 int32, ap uintptr) { + switch type1 { + case int32(_PTR): + *(*uintptr)(unsafe.Pointer(arg)) = VaUintptr(&**(**Tva_list)(__ccgo_up(ap))) + case int32(_INT): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt32(VaInt32(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_UINT): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(VaUint32(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_LONG): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt64(VaInt64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_ULONG): + (*Targ)(unsafe.Pointer(arg)).Fi = VaUint64(&**(**Tva_list)(__ccgo_up(ap))) + case int32(_ULLONG): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(VaUint64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_SHORT): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt16(int16(VaInt32(&**(**Tva_list)(__ccgo_up(ap))))) + case int32(_USHORT): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(Uint16FromInt32(VaInt32(&**(**Tva_list)(__ccgo_up(ap))))) + case int32(_CHAR): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt8(int8(VaInt32(&**(**Tva_list)(__ccgo_up(ap))))) + case int32(_UCHAR): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(Uint8FromInt32(VaInt32(&**(**Tva_list)(__ccgo_up(ap))))) + case int32(_LLONG): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt64(VaInt64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_SIZET): + (*Targ)(unsafe.Pointer(arg)).Fi = VaUint64(&**(**Tva_list)(__ccgo_up(ap))) + case int32(_IMAX): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt64(VaInt64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_UMAX): + (*Targ)(unsafe.Pointer(arg)).Fi = VaUint64(&**(**Tva_list)(__ccgo_up(ap))) + case int32(_PDIFF): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt64(VaInt64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_UIPTR): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(VaUintptr(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_DBL): + *(*float64)(unsafe.Pointer(arg)) = float64(VaFloat64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_LDBL): + *(*float64)(unsafe.Pointer(arg)) = VaFloat64(&**(**Tva_list)(__ccgo_up(ap))) + } +} + +func _out1(tls *TLS, f uintptr, s uintptr, l Tsize_t) { + var v1 Tsize_t + var v2 uintptr + _, _ = v1, v2 + for { + v1 = l + l = l - 1 + if !(v1 != 0 && !((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_ERR) != 0)) { + break + } + v2 = s + s += 4 + Xfputwc(tls, **(**Twchar_t)(__ccgo_up(v2)), f) + } +} + +func _pad4(tls *TLS, f uintptr, n int32, fl int32) { + bp := tls.Alloc(32) + defer tls.Free(32) + if Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' '))) != 0 || !(n != 0) || (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_ERR) != 0 { + return + } + Xfprintf(tls, f, __ccgo_ts+1676, VaList(bp+8, n, __ccgo_ts)) +} + +func _getint1(tls *TLS, s uintptr) (r int32) { + var i int32 + _ = i + i = 0 + for { + if !(BoolInt32(Uint32FromInt32(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(s)))))-uint32('0') < uint32(10)) != 0) { + break + } + if Uint32FromInt32(i) > Uint32FromInt32(INT_MAX)/Uint32FromUint32(10) || **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(s))))-int32('0') > int32(INT_MAX)-int32(10)*i { + i = -int32(1) + } else { + i = int32(10)*i + (**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(s)))) - int32('0')) + } + goto _1 + _1: + ; + **(**uintptr)(__ccgo_up(s)) += 4 + } + return i +} + +var _sizeprefix = [24]uint8{ + 0: uint8('L'), + 3: uint8('j'), + 4: uint8('L'), + 5: uint8('L'), + 6: uint8('L'), + 8: uint8('j'), + 14: uint8('j'), + 15: uint8('j'), + 20: uint8('j'), + 23: uint8('j'), +} + +func _wprintf_core(tls *TLS, f uintptr, fmt uintptr, ap uintptr, nl_arg uintptr, nl_type uintptr) (r int32) { + bp := tls.Alloc(112) + defer tls.Free(112) + var a, bs, z, v8 uintptr + var argpos, cnt, i, l, p, t, w, xp, v5, v6, v7 int32 + var fl, l10n, ps, st uint32 + var v15 bool + var v9 uint64 + var _ /* arg at bp+16 */ Targ + var _ /* charfmt at bp+24 */ [16]uint8 + var _ /* s at bp+8 */ uintptr + var _ /* wc at bp+40 */ Twchar_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = a, argpos, bs, cnt, fl, i, l, l10n, p, ps, st, t, w, xp, z, v15, v5, v6, v7, v8, v9 + **(**uintptr)(__ccgo_up(bp + 8)) = fmt + l10n = uint32(0) + cnt = 0 + l = 0 + for { + /* This error is only specified for snprintf, but since it's + * unspecified for other forms, do the same. Stop immediately + * on overflow; otherwise %n could produce wrong results. */ + if l > int32(INT_MAX)-cnt { + goto overflow + } + /* Update output count, end loop when fmt is exhausted */ + cnt = cnt + l + if !(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)))) != 0) { + break + } + /* Handle literal text and %% format specifiers */ + a = **(**uintptr)(__ccgo_up(bp + 8)) + for { + if !(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)))) != 0 && **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)))) != int32('%')) { + break + } + goto _2 + _2: + ; + **(**uintptr)(__ccgo_up(bp + 8)) += 4 + } + z = **(**uintptr)(__ccgo_up(bp + 8)) + for { + if !(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)))) == int32('%') && **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + 1*4)) == int32('%')) { + break + } + goto _3 + _3: + ; + z += 4 + **(**uintptr)(__ccgo_up(bp + 8)) = **(**uintptr)(__ccgo_up(bp + 8)) + uintptr(2)*4 + } + if (int64(z)-int64(a))/4 > int64(int32(INT_MAX)-cnt) { + goto overflow + } + l = int32((int64(z) - int64(a)) / 4) + if f != 0 { + _out1(tls, f, a, Uint64FromInt32(l)) + } + if l != 0 { + goto _1 + } + if BoolInt32(Uint32FromInt32(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + 1*4)))-uint32('0') < uint32(10)) != 0 && **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + 2*4)) == int32('$') { + l10n = uint32(1) + argpos = **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + 1*4)) - int32('0') + **(**uintptr)(__ccgo_up(bp + 8)) = **(**uintptr)(__ccgo_up(bp + 8)) + uintptr(3)*4 + } else { + argpos = -int32(1) + **(**uintptr)(__ccgo_up(bp + 8)) += 4 + } + /* Read modifier flags */ + fl = uint32(0) + for { + if !(Uint32FromInt32(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)))))-uint32(' ') < uint32(32) && (Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8('0')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8(' ')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8('+')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8('\'')-Int32FromUint8(' ')))&(uint32(1)<<(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8))))-int32(' '))) != 0) { + break + } + fl = fl | uint32(1)<<(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8))))-int32(' ')) + goto _4 + _4: + ; + **(**uintptr)(__ccgo_up(bp + 8)) += 4 + } + /* Read field width */ + if **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)))) == int32('*') { + if BoolInt32(Uint32FromInt32(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + 1*4)))-uint32('0') < uint32(10)) != 0 && **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + 2*4)) == int32('$') { + l10n = uint32(1) + **(**int32)(__ccgo_up(nl_type + uintptr(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + 1*4))-int32('0'))*4)) = int32(_INT) + w = Int32FromUint64(*(*Tuintmax_t)(unsafe.Pointer(nl_arg + uintptr(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + 1*4))-int32('0'))*8))) + **(**uintptr)(__ccgo_up(bp + 8)) = **(**uintptr)(__ccgo_up(bp + 8)) + uintptr(3)*4 + } else { + if !(l10n != 0) { + if f != 0 { + v5 = VaInt32(&**(**Tva_list)(__ccgo_up(ap))) + } else { + v5 = 0 + } + w = v5 + **(**uintptr)(__ccgo_up(bp + 8)) += 4 + } else { + goto inval + } + } + if w < 0 { + fl = fl | Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' ')) + w = -w + } + } else { + v5 = _getint1(tls, bp+8) + w = v5 + if v5 < 0 { + goto overflow + } + } + /* Read precision */ + if **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)))) == int32('.') && **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + 1*4)) == int32('*') { + if BoolInt32(Uint32FromInt32(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + 2*4)))-uint32('0') < uint32(10)) != 0 && **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + 3*4)) == int32('$') { + **(**int32)(__ccgo_up(nl_type + uintptr(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + 2*4))-int32('0'))*4)) = int32(_INT) + p = Int32FromUint64(*(*Tuintmax_t)(unsafe.Pointer(nl_arg + uintptr(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + 2*4))-int32('0'))*8))) + **(**uintptr)(__ccgo_up(bp + 8)) = **(**uintptr)(__ccgo_up(bp + 8)) + uintptr(4)*4 + } else { + if !(l10n != 0) { + if f != 0 { + v5 = VaInt32(&**(**Tva_list)(__ccgo_up(ap))) + } else { + v5 = 0 + } + p = v5 + **(**uintptr)(__ccgo_up(bp + 8)) = **(**uintptr)(__ccgo_up(bp + 8)) + uintptr(2)*4 + } else { + goto inval + } + } + xp = BoolInt32(p >= 0) + } else { + if **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)))) == int32('.') { + **(**uintptr)(__ccgo_up(bp + 8)) += 4 + p = _getint1(tls, bp+8) + xp = int32(1) + } else { + p = -int32(1) + xp = 0 + } + } + /* Format specifier state machine */ + st = uint32(0) + for cond := true; cond; cond = st-uint32(1) < uint32(_STOP) { + if Uint32FromInt32(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)))))-uint32('A') > Uint32FromInt32(Int32FromUint8('z')-Int32FromUint8('A')) { + goto inval + } + ps = st + v8 = **(**uintptr)(__ccgo_up(bp + 8)) + **(**uintptr)(__ccgo_up(bp + 8)) += 4 + st = uint32(**(**uint8)(__ccgo_up(uintptr(unsafe.Pointer(&_states1)) + uintptr(st)*58 + uintptr(**(**Twchar_t)(__ccgo_up(v8))-int32('A'))))) + } + if !(st != 0) { + goto inval + } + /* Check validity of argument type (nl/normal) */ + if st == uint32(_NOARG) { + if argpos >= 0 { + goto inval + } + } else { + if argpos >= 0 { + **(**int32)(__ccgo_up(nl_type + uintptr(argpos)*4)) = Int32FromUint32(st) + **(**Targ)(__ccgo_up(bp + 16)) = **(**Targ)(__ccgo_up(nl_arg + uintptr(argpos)*8)) + } else { + if f != 0 { + _pop_arg1(tls, bp+16, Int32FromUint32(st), ap) + } else { + return 0 + } + } + } + if !(f != 0) { + goto _1 + } + /* Do not process any new directives once in error state. */ + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_ERR) != 0 { + return -int32(1) + } + t = **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + uintptr(-Int32FromInt32(1))*4)) + if ps != 0 && t&int32(15) == int32(3) { + t = t & ^Int32FromInt32(32) + } + switch t { + case int32('n'): + switch ps { + case uint32(_BARE): + **(**int32)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 16)))) = cnt + case uint32(_LPRE): + **(**int64)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 16)))) = int64(cnt) + case uint32(_LLPRE): + **(**int64)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 16)))) = int64(cnt) + case uint32(_HPRE): + **(**uint16)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 16)))) = Uint16FromInt32(cnt) + case uint32(_HHPRE): + **(**uint8)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 16)))) = Uint8FromInt32(cnt) + case uint32(_ZTPRE): + **(**Tsize_t)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 16)))) = Uint64FromInt32(cnt) + case uint32(_JPRE): + **(**Tuintmax_t)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 16)))) = Uint64FromInt32(cnt) + break + } + goto _1 + case int32('c'): + fallthrough + case int32('C'): + if w < int32(1) { + w = int32(1) + } + _pad4(tls, f, w-int32(1), Int32FromUint32(fl)) + if t == int32('C') { + v9 = *(*Tuintmax_t)(unsafe.Pointer(bp + 16)) + } else { + v9 = uint64(Xbtowc(tls, Int32FromUint64(*(*Tuintmax_t)(unsafe.Pointer(bp + 16))))) + } + *(*Twchar_t)(unsafe.Pointer(bp)) = Int32FromUint64(v9) + _out1(tls, f, bp, uint64(1)) + _pad4(tls, f, w-int32(1), Int32FromUint32(fl^Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' ')))) + l = w + goto _1 + case int32('S'): + a = *(*uintptr)(unsafe.Pointer(bp + 16)) + if p < 0 { + v5 = int32(INT_MAX) + } else { + v5 = p + } + z = a + uintptr(Xwcsnlen(tls, a, Uint64FromInt32(v5)))*4 + if p < 0 && **(**Twchar_t)(__ccgo_up(z)) != 0 { + goto overflow + } + p = int32((int64(z) - int64(a)) / 4) + if w < p { + w = p + } + _pad4(tls, f, w-p, Int32FromUint32(fl)) + _out1(tls, f, a, Uint64FromInt32(p)) + _pad4(tls, f, w-p, Int32FromUint32(fl^Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' ')))) + l = w + goto _1 + case int32('m'): + *(*uintptr)(unsafe.Pointer(bp + 16)) = Xstrerror(tls, **(**int32)(__ccgo_up(X__errno_location(tls)))) + fallthrough + case int32('s'): + if !(*(*uintptr)(unsafe.Pointer(bp + 16)) != 0) { + *(*uintptr)(unsafe.Pointer(bp + 16)) = __ccgo_ts + 1669 + } + bs = *(*uintptr)(unsafe.Pointer(bp + 16)) + v5 = Int32FromInt32(0) + l = v5 + i = v5 + for { + if p < 0 { + v6 = int32(INT_MAX) + } else { + v6 = p + } + if v15 = l < v6; v15 { + v7 = Xmbtowc(tls, bp+40, bs, uint64(MB_LEN_MAX)) + i = v7 + } + if !(v15 && v7 > 0) { + break + } + goto _11 + _11: + ; + bs = bs + uintptr(i) + l = l + 1 + } + if i < 0 { + return -int32(1) + } + if p < 0 && **(**uint8)(__ccgo_up(bs)) != 0 { + goto overflow + } + p = l + if w < p { + w = p + } + _pad4(tls, f, w-p, Int32FromUint32(fl)) + bs = *(*uintptr)(unsafe.Pointer(bp + 16)) + for { + v5 = l + l = l - 1 + if !(v5 != 0) { + break + } + i = Xmbtowc(tls, bp+40, bs, uint64(MB_LEN_MAX)) + bs = bs + uintptr(i) + _out1(tls, f, bp+40, uint64(1)) + } + _pad4(tls, f, w-p, Int32FromUint32(fl^Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' ')))) + l = w + goto _1 + } + if xp != 0 && p < 0 { + goto overflow + } + Xsnprintf(tls, bp+24, uint64(16), __ccgo_ts+1680, VaList(bp+56, __ccgo_ts+1700+BoolUintptr(!(fl&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0)), __ccgo_ts+1702+BoolUintptr(!(fl&(Uint32FromUint32(1)<<(Int32FromUint8('+')-Int32FromUint8(' '))) != 0)), __ccgo_ts+1704+BoolUintptr(!(fl&(Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' '))) != 0)), __ccgo_ts+714+BoolUintptr(!(fl&(Uint32FromUint32(1)<<(Int32FromUint8(' ')-Int32FromUint8(' '))) != 0)), __ccgo_ts+1706+BoolUintptr(!(fl&(Uint32FromUint32(1)<<(Int32FromUint8('0')-Int32FromUint8(' '))) != 0)), Int32FromUint8(_sizeprefix[t|int32(32)-int32('a')]), t)) + switch t | Int32FromInt32(32) { + case int32('a'): + fallthrough + case int32('e'): + fallthrough + case int32('f'): + fallthrough + case int32('g'): + l = Xfprintf(tls, f, bp+24, VaList(bp+56, w, p, *(*float64)(unsafe.Pointer(bp + 16)))) + case int32('d'): + fallthrough + case int32('i'): + fallthrough + case int32('o'): + fallthrough + case int32('u'): + fallthrough + case int32('x'): + fallthrough + case int32('p'): + l = Xfprintf(tls, f, bp+24, VaList(bp+56, w, p, *(*Tuintmax_t)(unsafe.Pointer(bp + 16)))) + break + } + goto _1 + _1: + } + if f != 0 { + return cnt + } + if !(l10n != 0) { + return 0 + } + i = int32(1) + for { + if !(i <= int32(NL_ARGMAX) && **(**int32)(__ccgo_up(nl_type + uintptr(i)*4)) != 0) { + break + } + _pop_arg1(tls, nl_arg+uintptr(i)*8, **(**int32)(__ccgo_up(nl_type + uintptr(i)*4)), ap) + goto _17 + _17: + ; + i = i + 1 + } + for { + if !(i <= int32(NL_ARGMAX) && !(**(**int32)(__ccgo_up(nl_type + uintptr(i)*4)) != 0)) { + break + } + goto _18 + _18: + ; + i = i + 1 + } + if i <= int32(NL_ARGMAX) { + return -int32(1) + } + return int32(1) + goto inval +inval: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + goto overflow +overflow: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOVERFLOW) + return -int32(1) +} + +func Xvfwprintf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v ap=%v, (%v:)", tls, f, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(128) + defer tls.Free(128) + var __need_unlock, olderr, ret, v1 int32 + var _ /* ap2 at bp+0 */ Tva_list + var _ /* nl_arg at bp+48 */ [10]Targ + var _ /* nl_type at bp+8 */ [10]int32 + _, _, _, _ = __need_unlock, olderr, ret, v1 + **(**[10]int32)(__ccgo_up(bp + 8)) = [10]int32{} + /* the copy allows passing va_list* even if va_list is an array */ + **(**Tva_list)(__ccgo_up(bp)) = ap + if _wprintf_core(tls, uintptr(0), fmt, bp, bp+48, bp+8) < 0 { + _ = **(**Tva_list)(__ccgo_up(bp)) + return -int32(1) + } + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + Xfwide(tls, f, int32(1)) + olderr = Int32FromUint32((*TFILE)(unsafe.Pointer(f)).Fflags & uint32(F_ERR)) + **(**uint32)(__ccgo_up(f)) &= Uint32FromInt32(^Int32FromInt32(F_ERR)) + ret = _wprintf_core(tls, f, fmt, bp, bp+48, bp+8) + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_ERR) != 0 { + ret = -int32(1) + } + **(**uint32)(__ccgo_up(f)) |= Uint32FromInt32(olderr) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + _ = **(**Tva_list)(__ccgo_up(bp)) + return ret +} + +func _store_int1(tls *TLS, dest uintptr, size int32, i uint64) { + if !(dest != 0) { + return + } + switch size { + case -int32(2): + **(**uint8)(__ccgo_up(dest)) = uint8(i) + case -int32(1): + **(**int16)(__ccgo_up(dest)) = Int16FromUint64(i) + case SIZE_def: + **(**int32)(__ccgo_up(dest)) = Int32FromUint64(i) + case int32(SIZE_l): + **(**int64)(__ccgo_up(dest)) = Int64FromUint64(i) + case int32(SIZE_ll): + **(**int64)(__ccgo_up(dest)) = Int64FromUint64(i) + break + } +} + +func _arg_n1(tls *TLS, ap Tva_list, n uint32) (r uintptr) { + var ap2 Tva_list + var i uint32 + var p uintptr + _, _, _ = ap2, i, p + ap2 = ap + i = n + for { + if !(i > uint32(1)) { + break + } + _ = VaUintptr(&ap2) + goto _1 + _1: + ; + i = i - 1 + } + p = VaUintptr(&ap2) + _ = ap2 + return p +} + +func _in_set(tls *TLS, set uintptr, c int32) (r int32) { + var j int32 + var p, v3 uintptr + _, _, _ = j, p, v3 + p = set + if **(**Twchar_t)(__ccgo_up(p)) == int32('-') { + if c == int32('-') { + return int32(1) + } + p += 4 + } else { + if **(**Twchar_t)(__ccgo_up(p)) == int32(']') { + if c == int32(']') { + return int32(1) + } + p += 4 + } + } + for { + if !(**(**Twchar_t)(__ccgo_up(p)) != 0 && **(**Twchar_t)(__ccgo_up(p)) != int32(']')) { + break + } + if **(**Twchar_t)(__ccgo_up(p)) == int32('-') && **(**Twchar_t)(__ccgo_up(p + 1*4)) != 0 && **(**Twchar_t)(__ccgo_up(p + 1*4)) != int32(']') { + v3 = p + p += 4 + j = **(**Twchar_t)(__ccgo_up(v3 + uintptr(-Int32FromInt32(1))*4)) + for { + if !(j < **(**Twchar_t)(__ccgo_up(p))) { + break + } + if c == j { + return int32(1) + } + goto _2 + _2: + ; + j = j + 1 + } + } + if c == **(**Twchar_t)(__ccgo_up(p)) { + return int32(1) + } + goto _1 + _1: + ; + p += 4 + } + return 0 +} + +func Xvfwscanf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v ap=%v, (%v:)", tls, f, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(80) + defer tls.Free(80) + var __need_unlock, alloc, c, gotmatch, invert, l, matches, size, t, width, v1 int32 + var dest, p, s, set, tmp1, tmp2, wcs, v5, v6 uintptr + var i, k, v37 Tsize_t + var pos Toff_t + var v4 uint32 + var _ /* cnt at bp+0 */ Toff_t + var _ /* tmp at bp+8 */ [22]uint8 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = __need_unlock, alloc, c, dest, gotmatch, i, invert, k, l, matches, p, pos, s, set, size, t, tmp1, tmp2, wcs, width, v1, v37, v4, v5, v6 + dest = UintptrFromInt32(0) + matches = 0 + pos = 0 + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + Xfwide(tls, f, int32(1)) + p = fmt + for { + if !(**(**Twchar_t)(__ccgo_up(p)) != 0) { + break + } + alloc = 0 + if Xiswspace(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(p)))) != 0 { + for Xiswspace(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(p + 1*4)))) != 0 { + p += 4 + } + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend && Int32FromUint8(**(**uint8)(__ccgo_up((*TFILE)(unsafe.Pointer(f)).Frpos))) < int32(128) { + v6 = f + 8 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + v4 = uint32(**(**uint8)(__ccgo_up(v5))) + } else { + v4 = Xgetwc(tls, f) + } + v1 = Int32FromUint32(v4) + c = v1 + if !(Xiswspace(tls, Uint32FromInt32(v1)) != 0) { + break + } + pos = pos + 1 + } + if (*TFILE)(unsafe.Pointer(f)).Frend != 0 && Uint32FromInt32(c) < uint32(128) { + v6 = f + 8 + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) - 1 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + _ = **(**uint8)(__ccgo_up(v5)) + } else { + Xungetwc(tls, Uint32FromInt32(c), f) + } + goto _2 + } + if **(**Twchar_t)(__ccgo_up(p)) != int32('%') || **(**Twchar_t)(__ccgo_up(p + 1*4)) == int32('%') { + if **(**Twchar_t)(__ccgo_up(p)) == int32('%') { + p += 4 + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend && Int32FromUint8(**(**uint8)(__ccgo_up((*TFILE)(unsafe.Pointer(f)).Frpos))) < int32(128) { + v6 = f + 8 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + v4 = uint32(**(**uint8)(__ccgo_up(v5))) + } else { + v4 = Xgetwc(tls, f) + } + v1 = Int32FromUint32(v4) + c = v1 + if !(Xiswspace(tls, Uint32FromInt32(v1)) != 0) { + break + } + pos = pos + 1 + } + } else { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend && Int32FromUint8(**(**uint8)(__ccgo_up((*TFILE)(unsafe.Pointer(f)).Frpos))) < int32(128) { + v6 = f + 8 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + v4 = uint32(**(**uint8)(__ccgo_up(v5))) + } else { + v4 = Xgetwc(tls, f) + } + c = Int32FromUint32(v4) + } + if c != **(**Twchar_t)(__ccgo_up(p)) { + if (*TFILE)(unsafe.Pointer(f)).Frend != 0 && Uint32FromInt32(c) < uint32(128) { + v6 = f + 8 + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) - 1 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + _ = **(**uint8)(__ccgo_up(v5)) + } else { + Xungetwc(tls, Uint32FromInt32(c), f) + } + if c < 0 { + goto input_fail + } + goto match_fail + } + pos = pos + 1 + goto _2 + } + p += 4 + if **(**Twchar_t)(__ccgo_up(p)) == int32('*') { + dest = uintptr(0) + p += 4 + } else { + if BoolInt32(Uint32FromInt32(**(**Twchar_t)(__ccgo_up(p)))-uint32('0') < uint32(10)) != 0 && **(**Twchar_t)(__ccgo_up(p + 1*4)) == int32('$') { + dest = _arg_n1(tls, ap, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(p))-int32('0'))) + p = p + uintptr(2)*4 + } else { + dest = VaUintptr(&ap) + } + } + width = 0 + for { + if !(BoolInt32(Uint32FromInt32(**(**Twchar_t)(__ccgo_up(p)))-uint32('0') < uint32(10)) != 0) { + break + } + width = int32(10)*width + **(**Twchar_t)(__ccgo_up(p)) - int32('0') + goto _18 + _18: + ; + p += 4 + } + if **(**Twchar_t)(__ccgo_up(p)) == int32('m') { + wcs = uintptr(0) + s = uintptr(0) + alloc = BoolInt32(!!(dest != 0)) + p += 4 + } else { + alloc = 0 + } + size = SIZE_def + v5 = p + p += 4 + switch **(**Twchar_t)(__ccgo_up(v5)) { + case int32('h'): + if **(**Twchar_t)(__ccgo_up(p)) == int32('h') { + p += 4 + size = -Int32FromInt32(2) + } else { + size = -int32(1) + } + case int32('l'): + if **(**Twchar_t)(__ccgo_up(p)) == int32('l') { + p += 4 + size = Int32FromInt32(SIZE_ll) + } else { + size = int32(SIZE_l) + } + case int32('j'): + size = int32(SIZE_ll) + case int32('z'): + fallthrough + case int32('t'): + size = int32(SIZE_l) + case int32('L'): + size = int32(SIZE_L) + case int32('d'): + fallthrough + case int32('i'): + fallthrough + case int32('o'): + fallthrough + case int32('u'): + fallthrough + case int32('x'): + fallthrough + case int32('a'): + fallthrough + case int32('e'): + fallthrough + case int32('f'): + fallthrough + case int32('g'): + fallthrough + case int32('A'): + fallthrough + case int32('E'): + fallthrough + case int32('F'): + fallthrough + case int32('G'): + fallthrough + case int32('X'): + fallthrough + case int32('s'): + fallthrough + case int32('c'): + fallthrough + case int32('['): + fallthrough + case int32('S'): + fallthrough + case int32('C'): + fallthrough + case int32('p'): + fallthrough + case int32('n'): + p -= 4 + default: + goto fmt_fail + } + t = **(**Twchar_t)(__ccgo_up(p)) + /* Transform S,C -> ls,lc */ + if t&int32(0x2f) == int32(3) { + size = int32(SIZE_l) + t = t | int32(32) + } + if t != int32('n') { + if t != int32('[') && t|int32(32) != int32('c') { + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend && Int32FromUint8(**(**uint8)(__ccgo_up((*TFILE)(unsafe.Pointer(f)).Frpos))) < int32(128) { + v6 = f + 8 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + v4 = uint32(**(**uint8)(__ccgo_up(v5))) + } else { + v4 = Xgetwc(tls, f) + } + v1 = Int32FromUint32(v4) + c = v1 + if !(Xiswspace(tls, Uint32FromInt32(v1)) != 0) { + break + } + pos = pos + 1 + } + } else { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend && Int32FromUint8(**(**uint8)(__ccgo_up((*TFILE)(unsafe.Pointer(f)).Frpos))) < int32(128) { + v6 = f + 8 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + v4 = uint32(**(**uint8)(__ccgo_up(v5))) + } else { + v4 = Xgetwc(tls, f) + } + c = Int32FromUint32(v4) + } + if c < 0 { + goto input_fail + } + if (*TFILE)(unsafe.Pointer(f)).Frend != 0 && Uint32FromInt32(c) < uint32(128) { + v6 = f + 8 + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) - 1 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + _ = **(**uint8)(__ccgo_up(v5)) + } else { + Xungetwc(tls, Uint32FromInt32(c), f) + } + } + switch t { + case int32('n'): + _store_int1(tls, dest, size, Uint64FromInt64(pos)) + /* do not increment match count, etc! */ + goto _2 + case int32('s'): + fallthrough + case int32('c'): + fallthrough + case int32('['): + if t == int32('c') { + if width < int32(1) { + width = int32(1) + } + invert = int32(1) + set = __ccgo_ts + 1708 + } else { + if t == int32('s') { + invert = int32(1) + set = uintptr(unsafe.Pointer(&_spaces1)) + } else { + p += 4 + v5 = p + if **(**Twchar_t)(__ccgo_up(v5)) == int32('^') { + p += 4 + invert = Int32FromInt32(1) + } else { + invert = 0 + } + set = p + if **(**Twchar_t)(__ccgo_up(p)) == int32(']') { + p += 4 + } + for **(**Twchar_t)(__ccgo_up(p)) != int32(']') { + if !(**(**Twchar_t)(__ccgo_up(p)) != 0) { + goto fmt_fail + } + p += 4 + } + } + } + if size == SIZE_def { + v5 = dest + } else { + v5 = uintptr(0) + } + s = v5 + if size == int32(SIZE_l) { + v5 = dest + } else { + v5 = uintptr(0) + } + wcs = v5 + gotmatch = 0 + if width < int32(1) { + width = -int32(1) + } + i = uint64(0) + if alloc != 0 { + if t == int32('c') { + v4 = Uint32FromInt32(width) + uint32(1) + } else { + v4 = uint32(31) + } + k = uint64(v4) + if size == int32(SIZE_l) { + wcs = Xmalloc(tls, k*uint64(4)) + if !(wcs != 0) { + goto alloc_fail + } + } else { + s = Xmalloc(tls, k) + if !(s != 0) { + goto alloc_fail + } + } + } + for width != 0 { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend && Int32FromUint8(**(**uint8)(__ccgo_up((*TFILE)(unsafe.Pointer(f)).Frpos))) < int32(128) { + v6 = f + 8 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + v4 = uint32(**(**uint8)(__ccgo_up(v5))) + } else { + v4 = Xgetwc(tls, f) + } + v1 = Int32FromUint32(v4) + c = v1 + if v1 < 0 { + break + } + if _in_set(tls, set, c) == invert { + break + } + if wcs != 0 { + v37 = i + i = i + 1 + **(**Twchar_t)(__ccgo_up(wcs + uintptr(v37)*4)) = c + if alloc != 0 && i == k { + k = k + (k + uint64(1)) + tmp1 = Xrealloc(tls, wcs, k*uint64(4)) + if !(tmp1 != 0) { + goto alloc_fail + } + wcs = tmp1 + } + } else { + if size != int32(SIZE_l) { + if s != 0 { + v5 = s + uintptr(i) + } else { + v5 = bp + 8 + } + l = Xwctomb(tls, v5, c) + if l < 0 { + goto input_fail + } + i = i + Uint64FromInt32(l) + if alloc != 0 && i > k-uint64(4) { + k = k + (k + uint64(1)) + tmp2 = Xrealloc(tls, s, k) + if !(tmp2 != 0) { + goto alloc_fail + } + s = tmp2 + } + } + } + pos = pos + 1 + width = width - BoolInt32(width > 0) + gotmatch = int32(1) + } + if width != 0 { + if (*TFILE)(unsafe.Pointer(f)).Frend != 0 && Uint32FromInt32(c) < uint32(128) { + v6 = f + 8 + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) - 1 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + _ = **(**uint8)(__ccgo_up(v5)) + } else { + Xungetwc(tls, Uint32FromInt32(c), f) + } + if t == int32('c') || !(gotmatch != 0) { + goto match_fail + } + } + if alloc != 0 { + if size == int32(SIZE_l) { + **(**uintptr)(__ccgo_up(dest)) = wcs + } else { + **(**uintptr)(__ccgo_up(dest)) = s + } + } + if t != int32('c') { + if wcs != 0 { + **(**Twchar_t)(__ccgo_up(wcs + uintptr(i)*4)) = 0 + } + if s != 0 { + **(**uint8)(__ccgo_up(s + uintptr(i))) = uint8(0) + } + } + case int32('d'): + fallthrough + case int32('i'): + fallthrough + case int32('o'): + fallthrough + case int32('u'): + fallthrough + case int32('x'): + fallthrough + case int32('a'): + fallthrough + case int32('e'): + fallthrough + case int32('f'): + fallthrough + case int32('g'): + fallthrough + case int32('A'): + fallthrough + case int32('E'): + fallthrough + case int32('F'): + fallthrough + case int32('G'): + fallthrough + case int32('X'): + fallthrough + case int32('p'): + if width < int32(1) { + width = 0 + } + Xsnprintf(tls, bp+8, uint64(22), __ccgo_ts+1712, VaList(bp+40, int32(1)+BoolInt32(!(dest != 0)), __ccgo_ts+1730, width, uintptr(unsafe.Pointer(&_size_pfx))+uintptr(size+int32(2))*3, t)) + **(**Toff_t)(__ccgo_up(bp)) = 0 + if dest != 0 { + v5 = dest + } else { + v5 = bp + } + if Xfscanf(tls, f, bp+8, VaList(bp+40, v5, bp)) == -int32(1) { + goto input_fail + } else { + if !(**(**Toff_t)(__ccgo_up(bp)) != 0) { + goto match_fail + } + } + pos = pos + **(**Toff_t)(__ccgo_up(bp)) + default: + goto fmt_fail + } + if dest != 0 { + matches = matches + 1 + } + goto _2 + _2: + ; + p += 4 + } + if !(0 != 0) { + goto _42 + } + goto fmt_fail +fmt_fail: + ; + goto alloc_fail +alloc_fail: + ; + goto input_fail +input_fail: + ; + if !(matches != 0) { + matches = matches - 1 + } + goto match_fail +match_fail: + ; + if alloc != 0 { + Xfree(tls, s) + Xfree(tls, wcs) + } +_42: + ; + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return matches +} + +var _size_pfx = [6][3]uint8{ + 0: {'h', 'h'}, + 1: {'h'}, + 2: {}, + 3: {'l'}, + 4: {'L'}, + 5: {'l', 'l'}, +} + +var _spaces1 = [22]Twchar_t{ + 0: int32(' '), + 1: int32('\t'), + 2: int32('\n'), + 3: int32('\r'), + 4: int32(11), + 5: int32(12), + 6: int32(0x0085), + 7: int32(0x2000), + 8: int32(0x2001), + 9: int32(0x2002), + 10: int32(0x2003), + 11: int32(0x2004), + 12: int32(0x2005), + 13: int32(0x2006), + 14: int32(0x2008), + 15: int32(0x2009), + 16: int32(0x200a), + 17: int32(0x2028), + 18: int32(0x2029), + 19: int32(0x205f), + 20: int32(0x3000), +} + +func X__isoc99_vfwscanf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v ap=%v, (%v:)", tls, f, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvfwscanf(tls, f, fmt, ap) +} + +func Xvprintf(tls *TLS, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v ap=%v, (%v:)", tls, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvfprintf(tls, uintptr(unsafe.Pointer(&X__stdout_FILE)), fmt, ap) +} + +func Xvscanf(tls *TLS, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v ap=%v, (%v:)", tls, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvfscanf(tls, uintptr(unsafe.Pointer(&X__stdin_FILE)), fmt, ap) +} + +func X__isoc99_vscanf(tls *TLS, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v ap=%v, (%v:)", tls, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvscanf(tls, fmt, ap) +} + +type Tcookie3 = struct { + Fs uintptr + Fn Tsize_t +} + +func _sn_write(tls *TLS, f uintptr, s uintptr, l Tsize_t) (r Tsize_t) { + var c, v3 uintptr + var k Tsize_t + var v1 uint64 + _, _, _, _ = c, k, v1, v3 + c = (*TFILE)(unsafe.Pointer(f)).Fcookie + if (*Tcookie3)(unsafe.Pointer(c)).Fn < Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Fwpos)-int64((*TFILE)(unsafe.Pointer(f)).Fwbase)) { + v1 = (*Tcookie3)(unsafe.Pointer(c)).Fn + } else { + v1 = Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Fwpos) - int64((*TFILE)(unsafe.Pointer(f)).Fwbase)) + } + k = v1 + if k != 0 { + Xmemcpy(tls, (*Tcookie3)(unsafe.Pointer(c)).Fs, (*TFILE)(unsafe.Pointer(f)).Fwbase, k) + **(**uintptr)(__ccgo_up(c)) += uintptr(k) + **(**Tsize_t)(__ccgo_up(c + 8)) -= k + } + if (*Tcookie3)(unsafe.Pointer(c)).Fn < l { + v1 = (*Tcookie3)(unsafe.Pointer(c)).Fn + } else { + v1 = l + } + k = v1 + if k != 0 { + Xmemcpy(tls, (*Tcookie3)(unsafe.Pointer(c)).Fs, s, k) + **(**uintptr)(__ccgo_up(c)) += uintptr(k) + **(**Tsize_t)(__ccgo_up(c + 8)) -= k + } + **(**uint8)(__ccgo_up((*Tcookie3)(unsafe.Pointer(c)).Fs)) = uint8(0) + v3 = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Fwbase = v3 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v3 + /* pretend to succeed, even if we discarded extra data */ + return l +} + +func Xvsnprintf(tls *TLS, s uintptr, n Tsize_t, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v fmt=%v ap=%v, (%v:)", tls, s, n, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(256) + defer tls.Free(256) + var v1 uintptr + var v2 uint64 + var _ /* buf at bp+0 */ [1]uint8 + var _ /* c at bp+8 */ Tcookie3 + var _ /* dummy at bp+1 */ [1]uint8 + var _ /* f at bp+24 */ TFILE + _, _ = v1, v2 + if n != 0 { + v1 = s + } else { + v1 = bp + 1 + } + if n != 0 { + v2 = n - uint64(1) + } else { + v2 = uint64(0) + } + **(**Tcookie3)(__ccgo_up(bp + 8)) = Tcookie3{ + Fs: v1, + Fn: v2, + } + **(**TFILE)(__ccgo_up(bp + 24)) = TFILE{ + Fwrite: __ccgo_fp(_sn_write), + Fbuf: bp, + Flock: -int32(1), + Flbf: -int32(1), + Fcookie: bp + 8, + } + **(**uint8)(__ccgo_up((**(**Tcookie3)(__ccgo_up(bp + 8))).Fs)) = uint8(0) + return Xvfprintf(tls, bp+24, fmt, ap) +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xvsprintf(tls *TLS, s uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v ap=%v, (%v:)", tls, s, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvsnprintf(tls, s, uint64(INT_MAX), fmt, ap) +} + +func _string_read(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + var end, src uintptr + var k Tsize_t + _, _, _ = end, k, src + src = (*TFILE)(unsafe.Pointer(f)).Fcookie + k = len1 + uint64(256) + end = Xmemchr(tls, src, 0, k) + if end != 0 { + k = Uint64FromInt64(int64(end) - int64(src)) + } + if k < len1 { + len1 = k + } + Xmemcpy(tls, buf, src, len1) + (*TFILE)(unsafe.Pointer(f)).Frpos = src + uintptr(len1) + (*TFILE)(unsafe.Pointer(f)).Frend = src + uintptr(k) + (*TFILE)(unsafe.Pointer(f)).Fcookie = src + uintptr(k) + return len1 +} + +func Xvsscanf(tls *TLS, s uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v ap=%v, (%v:)", tls, s, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(240) + defer tls.Free(240) + var _ /* f at bp+0 */ TFILE + **(**TFILE)(__ccgo_up(bp)) = TFILE{ + Fread: __ccgo_fp(_string_read), + Fbuf: s, + Flock: -int32(1), + Fcookie: s, + } + return Xvfscanf(tls, bp, fmt, ap) +} + +func X__isoc99_vsscanf(tls *TLS, s uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v ap=%v, (%v:)", tls, s, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvsscanf(tls, s, fmt, ap) +} + +type Tcookie4 = struct { + Fws uintptr + Fl Tsize_t +} + +func _sw_write(tls *TLS, f uintptr, s uintptr, l Tsize_t) (r Tsize_t) { + var c, v3, v4 uintptr + var i, v1 int32 + var l0 Tsize_t + var v2 bool + _, _, _, _, _, _, _ = c, i, l0, v1, v2, v3, v4 + l0 = l + i = 0 + c = (*TFILE)(unsafe.Pointer(f)).Fcookie + if s != (*TFILE)(unsafe.Pointer(f)).Fwbase && _sw_write(tls, f, (*TFILE)(unsafe.Pointer(f)).Fwbase, Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Fwpos)-int64((*TFILE)(unsafe.Pointer(f)).Fwbase))) == Uint64FromInt32(-Int32FromInt32(1)) { + return Uint64FromInt32(-Int32FromInt32(1)) + } + for { + if v2 = (*Tcookie4)(unsafe.Pointer(c)).Fl != 0 && l != 0; v2 { + v1 = Xmbtowc(tls, (*Tcookie4)(unsafe.Pointer(c)).Fws, s, l) + i = v1 + } + if !(v2 && v1 >= 0) { + break + } + if !(i != 0) { + i = int32(1) + } + s = s + uintptr(i) + l = l - Uint64FromInt32(i) + (*Tcookie4)(unsafe.Pointer(c)).Fl = (*Tcookie4)(unsafe.Pointer(c)).Fl - 1 + (*Tcookie4)(unsafe.Pointer(c)).Fws += 4 + } + **(**Twchar_t)(__ccgo_up((*Tcookie4)(unsafe.Pointer(c)).Fws)) = 0 + if i < 0 { + v4 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Fwend = v4 + v3 = v4 + (*TFILE)(unsafe.Pointer(f)).Fwbase = v3 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v3 + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) + return Uint64FromInt32(i) + } + (*TFILE)(unsafe.Pointer(f)).Fwend = (*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr((*TFILE)(unsafe.Pointer(f)).Fbuf_size) + v3 = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Fwbase = v3 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v3 + return l0 +} + +func Xvswprintf(tls *TLS, s uintptr, n Tsize_t, fmt uintptr, ap Tva_list) (r1 int32) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v fmt=%v ap=%v, (%v:)", tls, s, n, fmt, ap, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(512) + defer tls.Free(512) + var r, v1 int32 + var _ /* buf at bp+0 */ [256]uint8 + var _ /* c at bp+256 */ Tcookie4 + var _ /* f at bp+272 */ TFILE + _, _ = r, v1 + **(**Tcookie4)(__ccgo_up(bp + 256)) = Tcookie4{ + Fws: s, + Fl: n - uint64(1), + } + **(**TFILE)(__ccgo_up(bp + 272)) = TFILE{ + Fwrite: __ccgo_fp(_sw_write), + Fbuf: bp, + Fbuf_size: uint64(256), + Flock: -int32(1), + Flbf: -int32(1), + Fcookie: bp + 256, + } + if !(n != 0) { + return -int32(1) + } + r = Xvfwprintf(tls, bp+272, fmt, ap) + _sw_write(tls, bp+272, uintptr(0), uint64(0)) + if Uint64FromInt32(r) >= n { + v1 = -int32(1) + } else { + v1 = r + } + return v1 +} + +func _wstring_read(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + bp := tls.Alloc(16) + defer tls.Free(16) + var k Tsize_t + var v1, v2 uintptr + var _ /* src at bp+0 */ uintptr + _, _, _ = k, v1, v2 + **(**uintptr)(__ccgo_up(bp)) = (*TFILE)(unsafe.Pointer(f)).Fcookie + if !(**(**uintptr)(__ccgo_up(bp)) != 0) { + return uint64(0) + } + k = Xwcsrtombs(tls, (*TFILE)(unsafe.Pointer(f)).Fbuf, bp, (*TFILE)(unsafe.Pointer(f)).Fbuf_size, uintptr(0)) + if k == Uint64FromInt32(-Int32FromInt32(1)) { + v1 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Frend = v1 + (*TFILE)(unsafe.Pointer(f)).Frpos = v1 + return uint64(0) + } + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Frend = (*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr(k) + (*TFILE)(unsafe.Pointer(f)).Fcookie = **(**uintptr)(__ccgo_up(bp)) + if !(len1 != 0) || !(k != 0) { + return uint64(0) + } + v2 = f + 8 + v1 = *(*uintptr)(unsafe.Pointer(v2)) + *(*uintptr)(unsafe.Pointer(v2)) = *(*uintptr)(unsafe.Pointer(v2)) + 1 + **(**uint8)(__ccgo_up(buf)) = **(**uint8)(__ccgo_up(v1)) + return uint64(1) +} + +func Xvswscanf(tls *TLS, s uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v ap=%v, (%v:)", tls, s, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(496) + defer tls.Free(496) + var _ /* buf at bp+0 */ [256]uint8 + var _ /* f at bp+256 */ TFILE + **(**TFILE)(__ccgo_up(bp + 256)) = TFILE{ + Fread: __ccgo_fp(_wstring_read), + Fbuf: bp, + Fbuf_size: uint64(256), + Flock: -int32(1), + Fcookie: s, + } + return Xvfwscanf(tls, bp+256, fmt, ap) +} + +func X__isoc99_vswscanf(tls *TLS, s uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v ap=%v, (%v:)", tls, s, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvswscanf(tls, s, fmt, ap) +} + +func Xvwprintf(tls *TLS, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v ap=%v, (%v:)", tls, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvfwprintf(tls, uintptr(unsafe.Pointer(&X__stdout_FILE)), fmt, ap) +} + +func Xvwscanf(tls *TLS, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v ap=%v, (%v:)", tls, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvfwscanf(tls, uintptr(unsafe.Pointer(&X__stdin_FILE)), fmt, ap) +} + +func X__isoc99_vwscanf(tls *TLS, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v ap=%v, (%v:)", tls, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvwscanf(tls, fmt, ap) +} + +func Xwprintf(tls *TLS, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v va=%v, (%v:)", tls, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvwprintf(tls, fmt, ap) + _ = ap + return ret +} + +func Xwscanf(tls *TLS, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v va=%v, (%v:)", tls, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvwscanf(tls, fmt, ap) + _ = ap + return ret +} + +func X__isoc99_wscanf(tls *TLS, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v va=%v, (%v:)", tls, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwscanf(tls, fmt, va) +} + +func Xabs(tls *TLS, a int32) (r int32) { + if __ccgo_strace { + trc("tls=%v a=%v, (%v:)", tls, a, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + _ = v1 + if a > 0 { + v1 = a + } else { + v1 = -a + } + return v1 +} + +func Xatof(tls *TLS, s uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtod(tls, s, uintptr(0)) +} + +func Xatoi(tls *TLS, s uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var n, neg, v1, v2 int32 + var v4 uintptr + _, _, _, _, _ = n, neg, v1, v2, v4 + n = 0 + neg = 0 + for { + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(s))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _3 + _3: + if !(v2 != 0) { + break + } + s = s + 1 + } + switch Int32FromUint8(**(**uint8)(__ccgo_up(s))) { + case int32('-'): + neg = int32(1) + fallthrough + case int32('+'): + s = s + 1 + } + /* Compute n as a negative number to avoid overflow on INT_MIN */ + for BoolInt32(uint32(**(**uint8)(__ccgo_up(s)))-uint32('0') < uint32(10)) != 0 { + v4 = s + s = s + 1 + n = int32(10)*n - (Int32FromUint8(**(**uint8)(__ccgo_up(v4))) - int32('0')) + } + if neg != 0 { + v1 = n + } else { + v1 = -n + } + return v1 +} + +func Xatol(tls *TLS, s uintptr) (r int64) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var n, v5 int64 + var neg, v1, v2 int32 + var v4 uintptr + _, _, _, _, _, _ = n, neg, v1, v2, v4, v5 + n = 0 + neg = 0 + for { + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(s))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _3 + _3: + if !(v2 != 0) { + break + } + s = s + 1 + } + switch Int32FromUint8(**(**uint8)(__ccgo_up(s))) { + case int32('-'): + neg = int32(1) + fallthrough + case int32('+'): + s = s + 1 + } + /* Compute n as a negative number to avoid overflow on LONG_MIN */ + for BoolInt32(uint32(**(**uint8)(__ccgo_up(s)))-uint32('0') < uint32(10)) != 0 { + v4 = s + s = s + 1 + n = int64(10)*n - int64(Int32FromUint8(**(**uint8)(__ccgo_up(v4)))-Int32FromUint8('0')) + } + if neg != 0 { + v5 = n + } else { + v5 = -n + } + return v5 +} + +func Xatoll(tls *TLS, s uintptr) (r int64) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var n, v5 int64 + var neg, v1, v2 int32 + var v4 uintptr + _, _, _, _, _, _ = n, neg, v1, v2, v4, v5 + n = 0 + neg = 0 + for { + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(s))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _3 + _3: + if !(v2 != 0) { + break + } + s = s + 1 + } + switch Int32FromUint8(**(**uint8)(__ccgo_up(s))) { + case int32('-'): + neg = int32(1) + fallthrough + case int32('+'): + s = s + 1 + } + /* Compute n as a negative number to avoid overflow on LLONG_MIN */ + for BoolInt32(uint32(**(**uint8)(__ccgo_up(s)))-uint32('0') < uint32(10)) != 0 { + v4 = s + s = s + 1 + n = int64(10)*n - int64(Int32FromUint8(**(**uint8)(__ccgo_up(v4)))-Int32FromUint8('0')) + } + if neg != 0 { + v5 = n + } else { + v5 = -n + } + return v5 +} + +type t__ccgo_fp__Xbsearch_4 = func(*TLS, uintptr, uintptr) int32 + +func Xbsearch(tls *TLS, key uintptr, base uintptr, nel Tsize_t, width Tsize_t, __ccgo_fp_cmp uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v base=%v nel=%v width=%v __ccgo_fp_cmp=%v, (%v:)", tls, key, base, nel, width, __ccgo_fp_cmp, origin(2)) + defer func() { trc("-> %v", r) }() + } + var sign int32 + var try uintptr + _, _ = sign, try + for nel > uint64(0) { + try = base + uintptr(width*(nel/uint64(2))) + sign = (*(*func(*TLS, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cmp})))(tls, key, try) + if sign < 0 { + nel = nel / uint64(2) + } else { + if sign > 0 { + base = try + uintptr(width) + nel = nel - (nel/uint64(2) + uint64(1)) + } else { + return try + } + } + } + return UintptrFromInt32(0) +} + +func Xdiv(tls *TLS, num int32, den int32) (r Tdiv_t) { + if __ccgo_strace { + trc("tls=%v num=%v den=%v, (%v:)", tls, num, den, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Tdiv_t{ + Fquot: num / den, + Frem: num % den, + } +} + +func Xecvt(tls *TLS, x float64, n int32, dp uintptr, sign uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v dp=%v sign=%v, (%v:)", tls, x, n, dp, sign, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var i, j, v1 int32 + var _ /* tmp at bp+0 */ [32]uint8 + _, _, _ = i, j, v1 + if Uint32FromInt32(n)-uint32(1) > uint32(15) { + n = int32(15) + } + Xsprintf(tls, bp, __ccgo_ts+1733, VaList(bp+40, n-int32(1), x)) + v1 = BoolInt32(Int32FromUint8((**(**[32]uint8)(__ccgo_up(bp)))[0]) == Int32FromUint8('-')) + **(**int32)(__ccgo_up(sign)) = v1 + i = v1 + j = 0 + for { + if !(Int32FromUint8((**(**[32]uint8)(__ccgo_up(bp)))[i]) != int32('e')) { + break + } + _buf8[j] = (**(**[32]uint8)(__ccgo_up(bp)))[i] + goto _2 + _2: + ; + v1 = i + i = i + 1 + j = j + BoolInt32(Int32FromUint8((**(**[32]uint8)(__ccgo_up(bp)))[v1]) != int32('.')) + } + _buf8[j] = uint8(0) + **(**int32)(__ccgo_up(dp)) = Xatoi(tls, bp+uintptr(i)+uintptr(1)) + int32(1) + return uintptr(unsafe.Pointer(&_buf8)) +} + +var _buf8 [16]uint8 + +func Xfcvt(tls *TLS, x float64, n int32, dp uintptr, sign uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v dp=%v sign=%v, (%v:)", tls, x, n, dp, sign, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(1536) + defer tls.Free(1536) + var i, lz int32 + var _ /* tmp at bp+0 */ [1500]uint8 + _, _ = i, lz + if Uint32FromInt32(n) > uint32(1400) { + n = int32(1400) + } + Xsprintf(tls, bp, __ccgo_ts+1738, VaList(bp+1512, n, x)) + i = BoolInt32(Int32FromUint8((**(**[1500]uint8)(__ccgo_up(bp)))[0]) == int32('-')) + if Int32FromUint8((**(**[1500]uint8)(__ccgo_up(bp)))[i]) == int32('0') { + lz = Int32FromUint64(Xstrspn(tls, bp+uintptr(i)+uintptr(2), __ccgo_ts+1706)) + } else { + lz = -Int32FromUint64(Xstrcspn(tls, bp+uintptr(i), __ccgo_ts+606)) + } + if n <= lz { + **(**int32)(__ccgo_up(sign)) = i + **(**int32)(__ccgo_up(dp)) = int32(1) + if Uint32FromInt32(n) > uint32(14) { + n = int32(14) + } + return __ccgo_ts + 1743 + UintptrFromInt32(14) - uintptr(n) + } + return Xecvt(tls, x, n-lz, dp, sign) +} + +func Xgcvt(tls *TLS, x float64, n int32, b uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v b=%v, (%v:)", tls, x, n, b, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + Xsprintf(tls, b, __ccgo_ts+1759, VaList(bp+8, n, x)) + return b +} + +func Ximaxabs(tls *TLS, a Tintmax_t) (r Tintmax_t) { + if __ccgo_strace { + trc("tls=%v a=%v, (%v:)", tls, a, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int64 + _ = v1 + if a > 0 { + v1 = a + } else { + v1 = -a + } + return v1 +} + +func Ximaxdiv(tls *TLS, num Tintmax_t, den Tintmax_t) (r Timaxdiv_t) { + if __ccgo_strace { + trc("tls=%v num=%v den=%v, (%v:)", tls, num, den, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Timaxdiv_t{ + Fquot: num / den, + Frem: num % den, + } +} + +func Xlabs(tls *TLS, a int64) (r int64) { + if __ccgo_strace { + trc("tls=%v a=%v, (%v:)", tls, a, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int64 + _ = v1 + if a > 0 { + v1 = a + } else { + v1 = -a + } + return v1 +} + +func Xldiv(tls *TLS, num int64, den int64) (r Tldiv_t) { + if __ccgo_strace { + trc("tls=%v num=%v den=%v, (%v:)", tls, num, den, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Tldiv_t{ + Fquot: num / den, + Frem: num % den, + } +} + +func Xllabs(tls *TLS, a int64) (r int64) { + if __ccgo_strace { + trc("tls=%v a=%v, (%v:)", tls, a, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int64 + _ = v1 + if a > 0 { + v1 = a + } else { + v1 = -a + } + return v1 +} + +func Xlldiv(tls *TLS, num int64, den int64) (r Tlldiv_t) { + if __ccgo_strace { + trc("tls=%v num=%v den=%v, (%v:)", tls, num, den, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Tlldiv_t{ + Fquot: num / den, + Frem: num % den, + } +} + +type Tcmpfun = uintptr + +func _pntz(tls *TLS, p uintptr) (r1 int32) { + var r, v2, v4, v6 int32 + var v1, v5 uint64 + var v8 bool + _, _, _, _, _, _, _ = r, v1, v2, v4, v5, v6, v8 + v1 = **(**Tsize_t)(__ccgo_up(p)) - uint64(1) + v2 = _a_ctz_64(tls, v1) + goto _3 +_3: + r = v2 + if v8 = r != 0; !v8 { + v5 = **(**Tsize_t)(__ccgo_up(p + 1*8)) + v6 = _a_ctz_64(tls, v5) + goto _7 + _7: + v4 = Int32FromUint64(Uint64FromInt32(8)*Uint64FromInt64(8) + Uint64FromInt32(v6)) + r = v4 + } + if v8 || Uint64FromInt32(v4) != Uint64FromInt32(8)*Uint64FromInt64(8) { + return r + } + return 0 +} + +func _cycle(tls *TLS, width Tsize_t, ar uintptr, n int32) { + bp := tls.Alloc(256) + defer tls.Free(256) + var i int32 + var l Tsize_t + var v1 uint64 + var _ /* tmp at bp+0 */ [256]uint8 + _, _, _ = i, l, v1 + if n < int32(2) { + return + } + **(**uintptr)(__ccgo_up(ar + uintptr(n)*8)) = bp + for width != 0 { + if uint64(256) < width { + v1 = uint64(256) + } else { + v1 = width + } + l = v1 + Xmemcpy(tls, **(**uintptr)(__ccgo_up(ar + uintptr(n)*8)), **(**uintptr)(__ccgo_up(ar)), l) + i = 0 + for { + if !(i < n) { + break + } + Xmemcpy(tls, **(**uintptr)(__ccgo_up(ar + uintptr(i)*8)), **(**uintptr)(__ccgo_up(ar + uintptr(i+int32(1))*8)), l) + **(**uintptr)(__ccgo_up(ar + uintptr(i)*8)) += uintptr(l) + goto _2 + _2: + ; + i = i + 1 + } + width = width - l + } +} + +// C documentation +// +// /* shl() and shr() need n > 0 */ +func _shl(tls *TLS, p uintptr, n int32) { + if Uint64FromInt32(n) >= Uint64FromInt32(8)*Uint64FromInt64(8) { + n = Int32FromUint64(uint64(n) - Uint64FromInt32(8)*Uint64FromInt64(8)) + **(**Tsize_t)(__ccgo_up(p + 1*8)) = **(**Tsize_t)(__ccgo_up(p)) + **(**Tsize_t)(__ccgo_up(p)) = uint64(0) + } + **(**Tsize_t)(__ccgo_up(p + 1*8)) <<= Uint64FromInt32(n) + **(**Tsize_t)(__ccgo_up(p + 1*8)) |= **(**Tsize_t)(__ccgo_up(p)) >> (Uint64FromInt64(8)*Uint64FromInt32(8) - Uint64FromInt32(n)) + **(**Tsize_t)(__ccgo_up(p)) <<= Uint64FromInt32(n) +} + +func _shr(tls *TLS, p uintptr, n int32) { + if Uint64FromInt32(n) >= Uint64FromInt32(8)*Uint64FromInt64(8) { + n = Int32FromUint64(uint64(n) - Uint64FromInt32(8)*Uint64FromInt64(8)) + **(**Tsize_t)(__ccgo_up(p)) = **(**Tsize_t)(__ccgo_up(p + 1*8)) + **(**Tsize_t)(__ccgo_up(p + 1*8)) = uint64(0) + } + **(**Tsize_t)(__ccgo_up(p)) >>= Uint64FromInt32(n) + **(**Tsize_t)(__ccgo_up(p)) |= **(**Tsize_t)(__ccgo_up(p + 1*8)) << (Uint64FromInt64(8)*Uint64FromInt32(8) - Uint64FromInt32(n)) + **(**Tsize_t)(__ccgo_up(p + 1*8)) >>= Uint64FromInt32(n) +} + +func _sift(tls *TLS, head uintptr, width Tsize_t, __ccgo_fp_cmp Tcmpfun, arg uintptr, pshift int32, lp uintptr) { + bp := tls.Alloc(912) + defer tls.Free(912) + var i, v1 int32 + var lf, rt uintptr + var _ /* ar at bp+0 */ [113]uintptr + _, _, _, _ = i, lf, rt, v1 + i = int32(1) + (**(**[113]uintptr)(__ccgo_up(bp)))[0] = head + for pshift > int32(1) { + rt = head - uintptr(width) + lf = head - uintptr(width) - uintptr(**(**Tsize_t)(__ccgo_up(lp + uintptr(pshift-int32(2))*8))) + if (*(*func(*TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cmp})))(tls, (**(**[113]uintptr)(__ccgo_up(bp)))[0], lf, arg) >= 0 && (*(*func(*TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cmp})))(tls, (**(**[113]uintptr)(__ccgo_up(bp)))[0], rt, arg) >= 0 { + break + } + if (*(*func(*TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cmp})))(tls, lf, rt, arg) >= 0 { + v1 = i + i = i + 1 + (**(**[113]uintptr)(__ccgo_up(bp)))[v1] = lf + head = lf + pshift = pshift - int32(1) + } else { + v1 = i + i = i + 1 + (**(**[113]uintptr)(__ccgo_up(bp)))[v1] = rt + head = rt + pshift = pshift - int32(2) + } + } + _cycle(tls, width, bp, i) +} + +func _trinkle(tls *TLS, head uintptr, width Tsize_t, __ccgo_fp_cmp Tcmpfun, arg uintptr, pp uintptr, pshift int32, trusty int32, lp uintptr) { + bp := tls.Alloc(928) + defer tls.Free(928) + var i, trail, v1 int32 + var lf, rt, stepson uintptr + var _ /* ar at bp+16 */ [113]uintptr + var _ /* p at bp+0 */ [2]Tsize_t + _, _, _, _, _, _ = i, lf, rt, stepson, trail, v1 + i = int32(1) + (**(**[2]Tsize_t)(__ccgo_up(bp)))[0] = **(**Tsize_t)(__ccgo_up(pp)) + (**(**[2]Tsize_t)(__ccgo_up(bp)))[int32(1)] = **(**Tsize_t)(__ccgo_up(pp + 1*8)) + (**(**[113]uintptr)(__ccgo_up(bp + 16)))[0] = head + for (**(**[2]Tsize_t)(__ccgo_up(bp)))[0] != uint64(1) || (**(**[2]Tsize_t)(__ccgo_up(bp)))[int32(1)] != uint64(0) { + stepson = head - uintptr(**(**Tsize_t)(__ccgo_up(lp + uintptr(pshift)*8))) + if (*(*func(*TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cmp})))(tls, stepson, (**(**[113]uintptr)(__ccgo_up(bp + 16)))[0], arg) <= 0 { + break + } + if !(trusty != 0) && pshift > int32(1) { + rt = head - uintptr(width) + lf = head - uintptr(width) - uintptr(**(**Tsize_t)(__ccgo_up(lp + uintptr(pshift-int32(2))*8))) + if (*(*func(*TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cmp})))(tls, rt, stepson, arg) >= 0 || (*(*func(*TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cmp})))(tls, lf, stepson, arg) >= 0 { + break + } + } + v1 = i + i = i + 1 + (**(**[113]uintptr)(__ccgo_up(bp + 16)))[v1] = stepson + head = stepson + trail = _pntz(tls, bp) + _shr(tls, bp, trail) + pshift = pshift + trail + trusty = 0 + } + if !(trusty != 0) { + _cycle(tls, width, bp+16, i) + _sift(tls, head, width, __ccgo_fp_cmp, arg, pshift, lp) + } +} + +type t__ccgo_fp__X__qsort_r_3 = func(*TLS, uintptr, uintptr, uintptr) int32 + +func X__qsort_r(tls *TLS, base uintptr, nel Tsize_t, width Tsize_t, __ccgo_fp_cmp Tcmpfun, arg uintptr) { + if __ccgo_strace { + trc("tls=%v base=%v nel=%v width=%v __ccgo_fp_cmp=%v arg=%v, (%v:)", tls, base, nel, width, __ccgo_fp_cmp, arg, origin(2)) + } + bp := tls.Alloc(784) + defer tls.Free(784) + var head, high uintptr + var i, size, v2, v3 Tsize_t + var pshift, trail int32 + var _ /* lp at bp+0 */ [96]Tsize_t + var _ /* p at bp+768 */ [2]Tsize_t + _, _, _, _, _, _, _, _ = head, high, i, pshift, size, trail, v2, v3 + size = width * nel + **(**[2]Tsize_t)(__ccgo_up(bp + 768)) = [2]Tsize_t{ + 0: uint64(1), + } + pshift = int32(1) + if !(size != 0) { + return + } + head = base + high = head + uintptr(size) - uintptr(width) + /* Precompute Leonardo numbers, scaled by element width */ + v2 = width + (**(**[96]Tsize_t)(__ccgo_up(bp)))[int32(1)] = v2 + (**(**[96]Tsize_t)(__ccgo_up(bp)))[0] = v2 + i = Uint64FromInt32(2) + for { + v3 = (**(**[96]Tsize_t)(__ccgo_up(bp)))[i-uint64(2)] + (**(**[96]Tsize_t)(__ccgo_up(bp)))[i-uint64(1)] + width + (**(**[96]Tsize_t)(__ccgo_up(bp)))[i] = v3 + if !(v3 < size) { + break + } + goto _1 + _1: + ; + i = i + 1 + } + for head < high { + if (**(**[2]Tsize_t)(__ccgo_up(bp + 768)))[0]&uint64(3) == uint64(3) { + _sift(tls, head, width, __ccgo_fp_cmp, arg, pshift, bp) + _shr(tls, bp+768, int32(2)) + pshift = pshift + int32(2) + } else { + if (**(**[96]Tsize_t)(__ccgo_up(bp)))[pshift-int32(1)] >= Uint64FromInt64(int64(high)-int64(head)) { + _trinkle(tls, head, width, __ccgo_fp_cmp, arg, bp+768, pshift, 0, bp) + } else { + _sift(tls, head, width, __ccgo_fp_cmp, arg, pshift, bp) + } + if pshift == int32(1) { + _shl(tls, bp+768, int32(1)) + pshift = 0 + } else { + _shl(tls, bp+768, pshift-int32(1)) + pshift = int32(1) + } + } + **(**Tsize_t)(__ccgo_up(bp + 768)) |= uint64(1) + head = head + uintptr(width) + } + _trinkle(tls, head, width, __ccgo_fp_cmp, arg, bp+768, pshift, 0, bp) + for pshift != int32(1) || (**(**[2]Tsize_t)(__ccgo_up(bp + 768)))[0] != uint64(1) || (**(**[2]Tsize_t)(__ccgo_up(bp + 768)))[int32(1)] != uint64(0) { + if pshift <= int32(1) { + trail = _pntz(tls, bp+768) + _shr(tls, bp+768, trail) + pshift = pshift + trail + } else { + _shl(tls, bp+768, int32(2)) + pshift = pshift - int32(2) + **(**Tsize_t)(__ccgo_up(bp + 768)) ^= uint64(7) + _shr(tls, bp+768, int32(1)) + _trinkle(tls, head-uintptr((**(**[96]Tsize_t)(__ccgo_up(bp)))[pshift])-uintptr(width), width, __ccgo_fp_cmp, arg, bp+768, pshift+int32(1), int32(1), bp) + _shl(tls, bp+768, int32(1)) + **(**Tsize_t)(__ccgo_up(bp + 768)) |= uint64(1) + _trinkle(tls, head-uintptr(width), width, __ccgo_fp_cmp, arg, bp+768, pshift, int32(1), bp) + } + head = head - uintptr(width) + } +} + +type t__ccgo_fp__Xqsort_r_3 = func(*TLS, uintptr, uintptr, uintptr) int32 + +func Xqsort_r(tls *TLS, base uintptr, nel Tsize_t, width Tsize_t, __ccgo_fp_cmp Tcmpfun, arg uintptr) { + if __ccgo_strace { + trc("tls=%v base=%v nel=%v width=%v __ccgo_fp_cmp=%v arg=%v, (%v:)", tls, base, nel, width, __ccgo_fp_cmp, arg, origin(2)) + } + X__qsort_r(tls, base, nel, width, __ccgo_fp_cmp, arg) +} + +func _wrapper_cmp(tls *TLS, v1 uintptr, v2 uintptr, cmp uintptr) (r int32) { + return (*(*func(*TLS, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{cmp})))(tls, v1, v2) +} + +type t__ccgo_fp__Xqsort_3 = func(*TLS, uintptr, uintptr) int32 + +func Xqsort(tls *TLS, base uintptr, nel Tsize_t, width Tsize_t, __ccgo_fp_cmp Tcmpfun) { + if __ccgo_strace { + trc("tls=%v base=%v nel=%v width=%v __ccgo_fp_cmp=%v, (%v:)", tls, base, nel, width, __ccgo_fp_cmp, origin(2)) + } + X__qsort_r(tls, base, nel, width, __ccgo_fp(_wrapper_cmp), __ccgo_fp_cmp) +} + +func _strtox(tls *TLS, s uintptr, p uintptr, prec int32) (r float64) { + bp := tls.Alloc(240) + defer tls.Free(240) + var cnt Toff_t + var y float64 + var v1 uintptr + var _ /* f at bp+0 */ TFILE + _, _, _ = cnt, y, v1 + v1 = s + (*TFILE)(unsafe.Pointer(bp)).Frpos = v1 + (*TFILE)(unsafe.Pointer(bp)).Fbuf = v1 + (*TFILE)(unsafe.Pointer(bp)).Frend = uintptr(-Int32FromInt32(1)) + X__shlim(tls, bp, int64(Int32FromInt32(0))) + y = X__floatscan(tls, bp, prec, int32(1)) + cnt = (*TFILE)(unsafe.Pointer(bp)).Fshcnt + (int64((*TFILE)(unsafe.Pointer(bp)).Frpos) - int64((*TFILE)(unsafe.Pointer(bp)).Fbuf)) + if p != 0 { + if cnt != 0 { + v1 = s + uintptr(cnt) + } else { + v1 = s + } + **(**uintptr)(__ccgo_up(p)) = v1 + } + return y +} + +func Xstrtof(tls *TLS, s uintptr, p uintptr) (r float32) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + return float32(_strtox(tls, s, p, 0)) +} + +func Xstrtod(tls *TLS, s uintptr, p uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _strtox(tls, s, p, int32(1)) +} + +func Xstrtold(tls *TLS, s uintptr, p uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _strtox(tls, s, p, int32(2)) +} + +func _strtox1(tls *TLS, s uintptr, p uintptr, base int32, lim uint64) (r uint64) { + bp := tls.Alloc(240) + defer tls.Free(240) + var cnt Tsize_t + var y uint64 + var v1 uintptr + var _ /* f at bp+0 */ TFILE + _, _, _ = cnt, y, v1 + v1 = s + (*TFILE)(unsafe.Pointer(bp)).Frpos = v1 + (*TFILE)(unsafe.Pointer(bp)).Fbuf = v1 + (*TFILE)(unsafe.Pointer(bp)).Frend = uintptr(-Int32FromInt32(1)) + X__shlim(tls, bp, int64(Int32FromInt32(0))) + y = X__intscan(tls, bp, Uint32FromInt32(base), int32(1), lim) + if p != 0 { + cnt = Uint64FromInt64((*TFILE)(unsafe.Pointer(bp)).Fshcnt + (int64((*TFILE)(unsafe.Pointer(bp)).Frpos) - int64((*TFILE)(unsafe.Pointer(bp)).Fbuf))) + **(**uintptr)(__ccgo_up(p)) = s + uintptr(cnt) + } + return y +} + +func Xstrtoull(tls *TLS, s uintptr, p uintptr, base int32) (r uint64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _strtox1(tls, s, p, base, Uint64FromUint64(2)*Uint64FromInt64(0x7fffffffffffffff)+Uint64FromInt32(1)) +} + +func Xstrtoll(tls *TLS, s uintptr, p uintptr, base int32) (r int64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Int64FromUint64(_strtox1(tls, s, p, base, Uint64FromInt64(-Int64FromInt64(0x7fffffffffffffff)-Int64FromInt32(1)))) +} + +func Xstrtoul(tls *TLS, s uintptr, p uintptr, base int32) (r uint64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _strtox1(tls, s, p, base, uint64(Uint64FromUint64(2)*Uint64FromInt64(0x7fffffffffffffff)+Uint64FromInt32(1))) +} + +func Xstrtol(tls *TLS, s uintptr, p uintptr, base int32) (r int64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Int64FromUint64(_strtox1(tls, s, p, base, uint64(Uint64FromUint64(0)+Uint64FromInt64(-Int64FromInt64(0x7fffffffffffffff)-Int64FromInt32(1))))) +} + +func Xstrtoimax(tls *TLS, s uintptr, p uintptr, base int32) (r Tintmax_t) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtoll(tls, s, p, base) +} + +func Xstrtoumax(tls *TLS, s uintptr, p uintptr, base int32) (r Tuintmax_t) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtoull(tls, s, p, base) +} + +func X__strtoimax_internal(tls *TLS, s uintptr, p uintptr, base int32) (r Tintmax_t) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtoimax(tls, s, p, base) +} + +func X__strtol_internal(tls *TLS, s uintptr, p uintptr, base int32) (r int64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtol(tls, s, p, base) +} + +func X__strtoll_internal(tls *TLS, s uintptr, p uintptr, base int32) (r int64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtoll(tls, s, p, base) +} + +func X__strtoul_internal(tls *TLS, s uintptr, p uintptr, base int32) (r uint64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtoul(tls, s, p, base) +} + +func X__strtoull_internal(tls *TLS, s uintptr, p uintptr, base int32) (r uint64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtoull(tls, s, p, base) +} + +func X__strtoumax_internal(tls *TLS, s uintptr, p uintptr, base int32) (r Tuintmax_t) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtoumax(tls, s, p, base) +} + +/* This read function heavily cheats. It knows: + * (1) len will always be 1 + * (2) non-ascii characters don't matter */ + +func _do_read(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + var i Tsize_t + var wcs, v3, v4 uintptr + var v2 int32 + _, _, _, _, _ = i, wcs, v2, v3, v4 + wcs = (*TFILE)(unsafe.Pointer(f)).Fcookie + if !(**(**Twchar_t)(__ccgo_up(wcs)) != 0) { + wcs = __ccgo_ts + 1764 + } + i = uint64(0) + for { + if !(i < (*TFILE)(unsafe.Pointer(f)).Fbuf_size && **(**Twchar_t)(__ccgo_up(wcs + uintptr(i)*4)) != 0) { + break + } + if **(**Twchar_t)(__ccgo_up(wcs + uintptr(i)*4)) < int32(128) { + v2 = **(**Twchar_t)(__ccgo_up(wcs + uintptr(i)*4)) + } else { + v2 = int32('@') + } + **(**uint8)(__ccgo_up((*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr(i))) = Uint8FromInt32(v2) + goto _1 + _1: + ; + i = i + 1 + } + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Frend = (*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr(i) + (*TFILE)(unsafe.Pointer(f)).Fcookie = wcs + uintptr(i)*4 + if i != 0 && len1 != 0 { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + **(**uint8)(__ccgo_up(buf)) = **(**uint8)(__ccgo_up(v3)) + return uint64(1) + } + return uint64(0) +} + +func _wcstox(tls *TLS, s uintptr, p uintptr, prec int32) (r float64) { + bp := tls.Alloc(304) + defer tls.Free(304) + var cnt Tsize_t + var t, v1, v2 uintptr + var y float64 + var _ /* buf at bp+0 */ [64]uint8 + var _ /* f at bp+64 */ TFILE + _, _, _, _, _ = cnt, t, y, v1, v2 + t = s + **(**TFILE)(__ccgo_up(bp + 64)) = TFILE{} + (**(**TFILE)(__ccgo_up(bp + 64))).Fflags = uint32(0) + v2 = bp + UintptrFromInt32(4) + (**(**TFILE)(__ccgo_up(bp + 64))).Fbuf = v2 + v1 = v2 + (**(**TFILE)(__ccgo_up(bp + 64))).Frend = v1 + (**(**TFILE)(__ccgo_up(bp + 64))).Frpos = v1 + (**(**TFILE)(__ccgo_up(bp + 64))).Fbuf_size = Uint64FromInt64(64) - Uint64FromInt32(4) + AtomicStorePInt32(bp+64+140, -int32(1)) + (**(**TFILE)(__ccgo_up(bp + 64))).Fread = __ccgo_fp(_do_read) + for Xiswspace(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(t)))) != 0 { + t += 4 + } + (**(**TFILE)(__ccgo_up(bp + 64))).Fcookie = t + X__shlim(tls, bp+64, int64(Int32FromInt32(0))) + y = X__floatscan(tls, bp+64, prec, int32(1)) + if p != 0 { + cnt = Uint64FromInt64((*TFILE)(unsafe.Pointer(bp+64)).Fshcnt + (int64((*TFILE)(unsafe.Pointer(bp+64)).Frpos) - int64((*TFILE)(unsafe.Pointer(bp+64)).Fbuf))) + if cnt != 0 { + v1 = t + uintptr(cnt)*4 + } else { + v1 = s + } + **(**uintptr)(__ccgo_up(p)) = v1 + } + return y +} + +func Xwcstof(tls *TLS, s uintptr, p uintptr) (r float32) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + return float32(_wcstox(tls, s, p, 0)) +} + +func Xwcstod(tls *TLS, s uintptr, p uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _wcstox(tls, s, p, int32(1)) +} + +func Xwcstold(tls *TLS, s uintptr, p uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _wcstox(tls, s, p, int32(2)) +} + +/* This read function heavily cheats. It knows: + * (1) len will always be 1 + * (2) non-ascii characters don't matter */ + +func _do_read1(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + var i Tsize_t + var wcs, v3, v4 uintptr + var v2 int32 + _, _, _, _, _ = i, wcs, v2, v3, v4 + wcs = (*TFILE)(unsafe.Pointer(f)).Fcookie + if !(**(**Twchar_t)(__ccgo_up(wcs)) != 0) { + wcs = __ccgo_ts + 1764 + } + i = uint64(0) + for { + if !(i < (*TFILE)(unsafe.Pointer(f)).Fbuf_size && **(**Twchar_t)(__ccgo_up(wcs + uintptr(i)*4)) != 0) { + break + } + if **(**Twchar_t)(__ccgo_up(wcs + uintptr(i)*4)) < int32(128) { + v2 = **(**Twchar_t)(__ccgo_up(wcs + uintptr(i)*4)) + } else { + v2 = int32('@') + } + **(**uint8)(__ccgo_up((*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr(i))) = Uint8FromInt32(v2) + goto _1 + _1: + ; + i = i + 1 + } + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Frend = (*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr(i) + (*TFILE)(unsafe.Pointer(f)).Fcookie = wcs + uintptr(i)*4 + if i != 0 && len1 != 0 { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + **(**uint8)(__ccgo_up(buf)) = **(**uint8)(__ccgo_up(v3)) + return uint64(1) + } + return uint64(0) +} + +func _wcstox1(tls *TLS, s uintptr, p uintptr, base int32, lim uint64) (r uint64) { + bp := tls.Alloc(304) + defer tls.Free(304) + var cnt Tsize_t + var t, v1, v2 uintptr + var y uint64 + var _ /* buf at bp+0 */ [64]uint8 + var _ /* f at bp+64 */ TFILE + _, _, _, _, _ = cnt, t, y, v1, v2 + t = s + **(**TFILE)(__ccgo_up(bp + 64)) = TFILE{} + (**(**TFILE)(__ccgo_up(bp + 64))).Fflags = uint32(0) + v2 = bp + UintptrFromInt32(4) + (**(**TFILE)(__ccgo_up(bp + 64))).Fbuf = v2 + v1 = v2 + (**(**TFILE)(__ccgo_up(bp + 64))).Frend = v1 + (**(**TFILE)(__ccgo_up(bp + 64))).Frpos = v1 + (**(**TFILE)(__ccgo_up(bp + 64))).Fbuf_size = Uint64FromInt64(64) - Uint64FromInt32(4) + AtomicStorePInt32(bp+64+140, -int32(1)) + (**(**TFILE)(__ccgo_up(bp + 64))).Fread = __ccgo_fp(_do_read1) + for Xiswspace(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(t)))) != 0 { + t += 4 + } + (**(**TFILE)(__ccgo_up(bp + 64))).Fcookie = t + X__shlim(tls, bp+64, int64(Int32FromInt32(0))) + y = X__intscan(tls, bp+64, Uint32FromInt32(base), int32(1), lim) + if p != 0 { + cnt = Uint64FromInt64((*TFILE)(unsafe.Pointer(bp+64)).Fshcnt + (int64((*TFILE)(unsafe.Pointer(bp+64)).Frpos) - int64((*TFILE)(unsafe.Pointer(bp+64)).Fbuf))) + if cnt != 0 { + v1 = t + uintptr(cnt)*4 + } else { + v1 = s + } + **(**uintptr)(__ccgo_up(p)) = v1 + } + return y +} + +func Xwcstoull(tls *TLS, s uintptr, p uintptr, base int32) (r uint64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _wcstox1(tls, s, p, base, Uint64FromUint64(2)*Uint64FromInt64(0x7fffffffffffffff)+Uint64FromInt32(1)) +} + +func Xwcstoll(tls *TLS, s uintptr, p uintptr, base int32) (r int64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Int64FromUint64(_wcstox1(tls, s, p, base, Uint64FromInt64(-Int64FromInt64(0x7fffffffffffffff)-Int64FromInt32(1)))) +} + +func Xwcstoul(tls *TLS, s uintptr, p uintptr, base int32) (r uint64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _wcstox1(tls, s, p, base, uint64(Uint64FromUint64(2)*Uint64FromInt64(0x7fffffffffffffff)+Uint64FromInt32(1))) +} + +func Xwcstol(tls *TLS, s uintptr, p uintptr, base int32) (r int64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Int64FromUint64(_wcstox1(tls, s, p, base, uint64(Uint64FromUint64(0)+Uint64FromInt64(-Int64FromInt64(0x7fffffffffffffff)-Int64FromInt32(1))))) +} + +func Xwcstoimax(tls *TLS, s uintptr, p uintptr, base int32) (r Tintmax_t) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwcstoll(tls, s, p, base) +} + +func Xwcstoumax(tls *TLS, s uintptr, p uintptr, base int32) (r Tuintmax_t) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwcstoull(tls, s, p, base) +} + +func Xbcmp(tls *TLS, s1 uintptr, s2 uintptr, n Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v s1=%v s2=%v n=%v, (%v:)", tls, s1, s2, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xmemcmp(tls, s1, s2, n) +} + +func Xbcopy(tls *TLS, s1 uintptr, s2 uintptr, n Tsize_t) { + if __ccgo_strace { + trc("tls=%v s1=%v s2=%v n=%v, (%v:)", tls, s1, s2, n, origin(2)) + } + Xmemmove(tls, s2, s1, n) +} + +func Xbzero(tls *TLS, s uintptr, n Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v, (%v:)", tls, s, n, origin(2)) + } + Xmemset(tls, s, 0, n) +} + +func Xexplicit_bzero(tls *TLS, d uintptr, n Tsize_t) { + if __ccgo_strace { + trc("tls=%v d=%v n=%v, (%v:)", tls, d, n, origin(2)) + } + d = Xmemset(tls, d, 0, n) +} + +func Xindex(tls *TLS, s uintptr, c int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrchr(tls, s, c) +} + +const ALIGN1 = -1 +const HIGHS = 0 +const ONES = 0 + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xmemccpy(tls *TLS, dest uintptr, src uintptr, c int32, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v c=%v n=%v, (%v:)", tls, dest, src, c, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var d, s, wd, ws uintptr + var k Tsize_t + var v2 uint8 + var v3 bool + _, _, _, _, _, _, _ = d, k, s, wd, ws, v2, v3 + d = dest + s = src + c = Int32FromUint8(Uint8FromInt32(c)) + if uint64(s)&(Uint64FromInt64(8)-Uint64FromInt32(1)) == uint64(d)&(Uint64FromInt64(8)-Uint64FromInt32(1)) { + for { + if v3 = uint64(s)&(Uint64FromInt64(8)-Uint64FromInt32(1)) != 0 && n != 0; v3 { + v2 = **(**uint8)(__ccgo_up(s)) + **(**uint8)(__ccgo_up(d)) = v2 + } + if !(v3 && Int32FromUint8(v2) != c) { + break + } + goto _1 + _1: + ; + n = n - 1 + s = s + 1 + d = d + 1 + } + if uint64(s)&(Uint64FromInt64(8)-Uint64FromInt32(1)) != 0 { + goto tail + } + k = Uint64FromInt32(-Int32FromInt32(1)) / Uint64FromInt32(UCHAR_MAX) * Uint64FromInt32(c) + wd = d + ws = s + for { + if !(n >= uint64(8) && !((**(**uint64)(__ccgo_up(ws))^k-Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)) & ^(**(**uint64)(__ccgo_up(ws))^k) & (Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)*Uint64FromInt32(Int32FromInt32(UCHAR_MAX)/Int32FromInt32(2)+Int32FromInt32(1))) != 0)) { + break + } + **(**uint64)(__ccgo_up(wd)) = **(**uint64)(__ccgo_up(ws)) + goto _4 + _4: + ; + n = n - uint64(8) + ws += 8 + wd += 8 + } + d = wd + s = ws + } + for { + if v3 = n != 0; v3 { + v2 = **(**uint8)(__ccgo_up(s)) + **(**uint8)(__ccgo_up(d)) = v2 + } + if !(v3 && Int32FromUint8(v2) != c) { + break + } + goto _5 + _5: + ; + n = n - 1 + s = s + 1 + d = d + 1 + } + goto tail +tail: + ; + if n != 0 { + return d + uintptr(1) + } + return uintptr(0) +} + +const SS = 0 + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xmemchr(tls *TLS, src uintptr, c int32, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v src=%v c=%v n=%v, (%v:)", tls, src, c, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var k Tsize_t + var s, w, v4 uintptr + _, _, _, _ = k, s, w, v4 + s = src + c = Int32FromUint8(Uint8FromInt32(c)) + for { + if !(uint64(s)&(Uint64FromInt64(8)-Uint64FromInt32(1)) != 0 && n != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(s))) != c) { + break + } + goto _1 + _1: + ; + s = s + 1 + n = n - 1 + } + if n != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(s))) != c { + k = Uint64FromInt32(-Int32FromInt32(1)) / Uint64FromInt32(UCHAR_MAX) * Uint64FromInt32(c) + w = s + for { + if !(n >= Uint64FromInt64(8) && !((**(**uint64)(__ccgo_up(w))^k-Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)) & ^(**(**uint64)(__ccgo_up(w))^k) & (Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)*Uint64FromInt32(Int32FromInt32(UCHAR_MAX)/Int32FromInt32(2)+Int32FromInt32(1))) != 0)) { + break + } + goto _2 + _2: + ; + w += 8 + n = n - Uint64FromInt64(8) + } + s = w + } + for { + if !(n != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(s))) != c) { + break + } + goto _3 + _3: + ; + s = s + 1 + n = n - 1 + } + if n != 0 { + v4 = s + } else { + v4 = uintptr(0) + } + return v4 +} + +func Xmemcmp(tls *TLS, vl uintptr, vr uintptr, n Tsize_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v vl=%v vr=%v n=%v, (%v:)", tls, vl, vr, n, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var l, r uintptr + var v2 int32 + _, _, _ = l, r, v2 + l = vl + r = vr + for { + if !(n != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(l))) == Int32FromUint8(**(**uint8)(__ccgo_up(r)))) { + break + } + goto _1 + _1: + ; + n = n - 1 + l = l + 1 + r = r + 1 + } + if n != 0 { + v2 = Int32FromUint8(**(**uint8)(__ccgo_up(l))) - Int32FromUint8(**(**uint8)(__ccgo_up(r))) + } else { + v2 = 0 + } + return v2 +} + +const LS = 0 +const RS = 0 + +func Xmemcpy(tls *TLS, dest uintptr, src uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v n=%v, (%v:)", tls, dest, src, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var d, s, v2, v3 uintptr + var w, x Tuint32_t + _, _, _, _, _, _ = d, s, w, x, v2, v3 + d = dest + s = src + for { + if !(uint64(s)%uint64(4) != 0 && n != 0) { + break + } + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + goto _1 + _1: + ; + n = n - 1 + } + if uint64(d)%uint64(4) == uint64(0) { + for { + if !(n >= uint64(16)) { + break + } + **(**uint32)(__ccgo_up(d + UintptrFromInt32(0))) = **(**uint32)(__ccgo_up(s + UintptrFromInt32(0))) + **(**uint32)(__ccgo_up(d + UintptrFromInt32(4))) = **(**uint32)(__ccgo_up(s + UintptrFromInt32(4))) + **(**uint32)(__ccgo_up(d + UintptrFromInt32(8))) = **(**uint32)(__ccgo_up(s + UintptrFromInt32(8))) + **(**uint32)(__ccgo_up(d + UintptrFromInt32(12))) = **(**uint32)(__ccgo_up(s + UintptrFromInt32(12))) + goto _4 + _4: + ; + s = s + uintptr(16) + d = d + uintptr(16) + n = n - uint64(16) + } + if n&uint64(8) != 0 { + **(**uint32)(__ccgo_up(d + UintptrFromInt32(0))) = **(**uint32)(__ccgo_up(s + UintptrFromInt32(0))) + **(**uint32)(__ccgo_up(d + UintptrFromInt32(4))) = **(**uint32)(__ccgo_up(s + UintptrFromInt32(4))) + d = d + uintptr(8) + s = s + uintptr(8) + } + if n&uint64(4) != 0 { + **(**uint32)(__ccgo_up(d + UintptrFromInt32(0))) = **(**uint32)(__ccgo_up(s + UintptrFromInt32(0))) + d = d + uintptr(4) + s = s + uintptr(4) + } + if n&uint64(2) != 0 { + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + } + if n&uint64(1) != 0 { + **(**uint8)(__ccgo_up(d)) = **(**uint8)(__ccgo_up(s)) + } + return dest + } + if n >= uint64(32) { + switch uint64(d) % Uint64FromInt32(4) { + case uint64(1): + w = **(**uint32)(__ccgo_up(s)) + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + n = n - uint64(3) + for { + if !(n >= uint64(17)) { + break + } + x = **(**uint32)(__ccgo_up(s + UintptrFromInt32(1))) + **(**uint32)(__ccgo_up(d + UintptrFromInt32(0))) = w>>Int32FromInt32(24) | x<>Int32FromInt32(24) | w<>Int32FromInt32(24) | x<>Int32FromInt32(24) | w<= uint64(18)) { + break + } + x = **(**uint32)(__ccgo_up(s + UintptrFromInt32(2))) + **(**uint32)(__ccgo_up(d + UintptrFromInt32(0))) = w>>Int32FromInt32(16) | x<>Int32FromInt32(16) | w<>Int32FromInt32(16) | x<>Int32FromInt32(16) | w<= uint64(19)) { + break + } + x = **(**uint32)(__ccgo_up(s + UintptrFromInt32(3))) + **(**uint32)(__ccgo_up(d + UintptrFromInt32(0))) = w>>Int32FromInt32(8) | x<>Int32FromInt32(8) | w<>Int32FromInt32(8) | x<>Int32FromInt32(8) | w< Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(jp+k)))) { + jp = jp + k + k = uint64(1) + p = jp - ip + } else { + v2 = jp + jp = jp + 1 + ip = v2 + v2 = Uint64FromInt32(1) + p = v2 + k = v2 + } + } + } + ms = ip + p0 = p + /* And with the opposite comparison */ + ip = Uint64FromInt32(-Int32FromInt32(1)) + jp = uint64(0) + v2 = Uint64FromInt32(1) + p = v2 + k = v2 + for jp+k < l { + if Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(ip+k)))) == Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(jp+k)))) { + if k == p { + jp = jp + p + k = uint64(1) + } else { + k = k + 1 + } + } else { + if Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(ip+k)))) < Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(jp+k)))) { + jp = jp + k + k = uint64(1) + p = jp - ip + } else { + v2 = jp + jp = jp + 1 + ip = v2 + v2 = Uint64FromInt32(1) + p = v2 + k = v2 + } + } + } + if ip+uint64(1) > ms+uint64(1) { + ms = ip + } else { + p = p0 + } + /* Periodic needle? */ + if Xmemcmp(tls, n, n+uintptr(p), ms+uint64(1)) != 0 { + mem0 = uint64(0) + if ms > l-ms-uint64(1) { + v8 = ms + } else { + v8 = l - ms - uint64(1) + } + p = v8 + uint64(1) + } else { + mem0 = l - p + } + mem = uint64(0) + /* Search loop */ + for { + /* If remainder of haystack is shorter than needle, done */ + if Uint64FromInt64(int64(z)-int64(h)) < l { + return uintptr(0) + } + /* Check last byte first; advance by shift on mismatch */ + if (**(**[4]Tsize_t)(__ccgo_up(bp)))[uint64(**(**uint8)(__ccgo_up(h + uintptr(l-uint64(1)))))/(Uint64FromInt32(8)*Uint64FromInt64(8))]&(Uint64FromInt32(1)<<(uint64(**(**uint8)(__ccgo_up(h + uintptr(l-uint64(1)))))%(Uint64FromInt32(8)*Uint64FromInt64(8)))) != 0 { + k = l - shift[**(**uint8)(__ccgo_up(h + uintptr(l-uint64(1))))] + if k != 0 { + if k < mem { + k = mem + } + h = h + uintptr(k) + mem = uint64(0) + goto _9 + } + } else { + h = h + uintptr(l) + mem = uint64(0) + goto _9 + } + /* Compare right half */ + if ms+uint64(1) > mem { + v8 = ms + uint64(1) + } else { + v8 = mem + } + k = v8 + for { + if !(k < l && Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(k)))) == Int32FromUint8(**(**uint8)(__ccgo_up(h + uintptr(k))))) { + break + } + goto _10 + _10: + ; + k = k + 1 + } + if k < l { + h = h + uintptr(k-ms) + mem = uint64(0) + goto _9 + } + /* Compare left half */ + k = ms + uint64(1) + for { + if !(k > mem && Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(k-uint64(1))))) == Int32FromUint8(**(**uint8)(__ccgo_up(h + uintptr(k-uint64(1)))))) { + break + } + goto _12 + _12: + ; + k = k - 1 + } + if k <= mem { + return h + } + h = h + uintptr(p) + mem = mem0 + goto _9 + _9: + } + return r +} + +func Xmemmem(tls *TLS, h0 uintptr, k Tsize_t, n0 uintptr, l Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v h0=%v k=%v n0=%v l=%v, (%v:)", tls, h0, k, n0, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + var h, n uintptr + _, _ = h, n + h = h0 + n = n0 + /* Return immediately on empty needle */ + if !(l != 0) { + return h + } + /* Return immediately when needle is longer than haystack */ + if k < l { + return uintptr(0) + } + /* Use faster algorithms for short needles */ + h = Xmemchr(tls, h0, Int32FromUint8(**(**uint8)(__ccgo_up(n))), k) + if !(h != 0) || l == uint64(1) { + return h + } + k = k - Uint64FromInt64(int64(h)-int64(h0)) + if k < l { + return uintptr(0) + } + if l == uint64(2) { + return _twobyte_memmem(tls, h, k, n) + } + if l == uint64(3) { + return _threebyte_memmem(tls, h, k, n) + } + if l == uint64(4) { + return _fourbyte_memmem(tls, h, k, n) + } + return _twoway_memmem(tls, h, h+uintptr(k), n, l) +} + +const WS = 0 + +type TWT = uint64 + +func Xmemmove(tls *TLS, dest uintptr, src uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v n=%v, (%v:)", tls, dest, src, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var d, s, v2, v3 uintptr + var v1 Tsize_t + _, _, _, _, _ = d, s, v1, v2, v3 + d = dest + s = src + if d == s { + return d + } + if uint64(s)-uint64(d)-n <= Uint64FromInt32(-Int32FromInt32(2))*n { + return Xmemcpy(tls, d, s, n) + } + if d < s { + if uint64(s)%Uint64FromInt64(8) == uint64(d)%Uint64FromInt64(8) { + for uint64(d)%Uint64FromInt64(8) != 0 { + v1 = n + n = n - 1 + if !(v1 != 0) { + return dest + } + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + } + for { + if !(n >= Uint64FromInt64(8)) { + break + } + **(**TWT)(__ccgo_up(d)) = **(**TWT)(__ccgo_up(s)) + goto _4 + _4: + ; + n = n - Uint64FromInt64(8) + d = d + uintptr(Uint64FromInt64(8)) + s = s + uintptr(Uint64FromInt64(8)) + } + } + for { + if !(n != 0) { + break + } + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + goto _5 + _5: + ; + n = n - 1 + } + } else { + if uint64(s)%Uint64FromInt64(8) == uint64(d)%Uint64FromInt64(8) { + for uint64(d+uintptr(n))%Uint64FromInt64(8) != 0 { + v1 = n + n = n - 1 + if !(v1 != 0) { + return dest + } + **(**uint8)(__ccgo_up(d + uintptr(n))) = **(**uint8)(__ccgo_up(s + uintptr(n))) + } + for n >= Uint64FromInt64(8) { + n = n - Uint64FromInt64(8) + **(**TWT)(__ccgo_up(d + uintptr(n))) = **(**TWT)(__ccgo_up(s + uintptr(n))) + } + } + for n != 0 { + n = n - 1 + **(**uint8)(__ccgo_up(d + uintptr(n))) = **(**uint8)(__ccgo_up(s + uintptr(n))) + } + } + return dest +} + +func Xmempcpy(tls *TLS, dest uintptr, src uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v n=%v, (%v:)", tls, dest, src, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xmemcpy(tls, dest, src, n) + uintptr(n) +} + +func X__memrchr(tls *TLS, m uintptr, c int32, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v m=%v c=%v n=%v, (%v:)", tls, m, c, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var s uintptr + var v1 Tsize_t + _, _ = s, v1 + s = m + c = Int32FromUint8(Uint8FromInt32(c)) + for { + v1 = n + n = n - 1 + if !(v1 != 0) { + break + } + if Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(n)))) == c { + return s + uintptr(n) + } + } + return uintptr(0) +} + +func Xmemrchr(tls *TLS, m uintptr, c int32, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v m=%v c=%v n=%v, (%v:)", tls, m, c, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__memrchr(tls, m, c, n) +} + +func Xmemset(tls *TLS, dest uintptr, c int32, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v dest=%v c=%v n=%v, (%v:)", tls, dest, c, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var c32 uint32 + var c64 uint64 + var k Tsize_t + var s uintptr + _, _, _, _ = c32, c64, k, s + s = dest + /* Fill head and tail with minimal branching. Each + * conditional ensures that all the subsequently used + * offsets are well-defined and in the dest region. */ + if !(n != 0) { + return dest + } + **(**uint8)(__ccgo_up(s)) = Uint8FromInt32(c) + **(**uint8)(__ccgo_up(s + uintptr(n-uint64(1)))) = Uint8FromInt32(c) + if n <= uint64(2) { + return dest + } + **(**uint8)(__ccgo_up(s + 1)) = Uint8FromInt32(c) + **(**uint8)(__ccgo_up(s + 2)) = Uint8FromInt32(c) + **(**uint8)(__ccgo_up(s + uintptr(n-uint64(2)))) = Uint8FromInt32(c) + **(**uint8)(__ccgo_up(s + uintptr(n-uint64(3)))) = Uint8FromInt32(c) + if n <= uint64(6) { + return dest + } + **(**uint8)(__ccgo_up(s + 3)) = Uint8FromInt32(c) + **(**uint8)(__ccgo_up(s + uintptr(n-uint64(4)))) = Uint8FromInt32(c) + if n <= uint64(8) { + return dest + } + /* Advance pointer to align it at a 4-byte boundary, + * and truncate n to a multiple of 4. The previous code + * already took care of any head/tail that get cut off + * by the alignment. */ + k = -uint64(s) & uint64(3) + s = s + uintptr(k) + n = n - k + n = n & Uint64FromInt32(-Int32FromInt32(4)) + c32 = Uint32FromInt32(-Int32FromInt32(1)) / Uint32FromInt32(255) * uint32(Uint8FromInt32(c)) + /* In preparation to copy 32 bytes at a time, aligned on + * an 8-byte bounary, fill head/tail up to 28 bytes each. + * As in the initial byte-based head/tail fill, each + * conditional below ensures that the subsequent offsets + * are valid (e.g. !(n<=24) implies n>=28). */ + **(**uint32)(__ccgo_up(s + UintptrFromInt32(0))) = c32 + **(**uint32)(__ccgo_up(s + uintptr(n) - UintptrFromInt32(4))) = c32 + if n <= uint64(8) { + return dest + } + **(**uint32)(__ccgo_up(s + UintptrFromInt32(4))) = c32 + **(**uint32)(__ccgo_up(s + UintptrFromInt32(8))) = c32 + **(**uint32)(__ccgo_up(s + uintptr(n) - UintptrFromInt32(12))) = c32 + **(**uint32)(__ccgo_up(s + uintptr(n) - UintptrFromInt32(8))) = c32 + if n <= uint64(24) { + return dest + } + **(**uint32)(__ccgo_up(s + UintptrFromInt32(12))) = c32 + **(**uint32)(__ccgo_up(s + UintptrFromInt32(16))) = c32 + **(**uint32)(__ccgo_up(s + UintptrFromInt32(20))) = c32 + **(**uint32)(__ccgo_up(s + UintptrFromInt32(24))) = c32 + **(**uint32)(__ccgo_up(s + uintptr(n) - UintptrFromInt32(28))) = c32 + **(**uint32)(__ccgo_up(s + uintptr(n) - UintptrFromInt32(24))) = c32 + **(**uint32)(__ccgo_up(s + uintptr(n) - UintptrFromInt32(20))) = c32 + **(**uint32)(__ccgo_up(s + uintptr(n) - UintptrFromInt32(16))) = c32 + /* Align to a multiple of 8 so we can fill 64 bits at a time, + * and avoid writing the same bytes twice as much as is + * practical without introducing additional branching. */ + k = uint64(24) + uint64(s)&uint64(4) + s = s + uintptr(k) + n = n - k + /* If this loop is reached, 28 tail bytes have already been + * filled, so any remainder when n drops below 32 can be + * safely ignored. */ + c64 = uint64(c32) | uint64(c32)<= uint64(32)) { + break + } + **(**uint64)(__ccgo_up(s + UintptrFromInt32(0))) = c64 + **(**uint64)(__ccgo_up(s + UintptrFromInt32(8))) = c64 + **(**uint64)(__ccgo_up(s + UintptrFromInt32(16))) = c64 + **(**uint64)(__ccgo_up(s + UintptrFromInt32(24))) = c64 + goto _1 + _1: + ; + n = n - uint64(32) + s = s + uintptr(32) + } + return dest +} + +func Xrindex(tls *TLS, s uintptr, c int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrrchr(tls, s, c) +} + +const ALIGN2 = 0 + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func X__stpcpy(tls *TLS, d uintptr, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v, (%v:)", tls, d, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var wd, ws, v4, v5 uintptr + var v2 uint8 + _, _, _, _, _ = wd, ws, v2, v4, v5 + if uint64(s)%Uint64FromInt64(8) == uint64(d)%Uint64FromInt64(8) { + for { + if !(uint64(s)%Uint64FromInt64(8) != 0) { + break + } + v2 = **(**uint8)(__ccgo_up(s)) + **(**uint8)(__ccgo_up(d)) = v2 + if !(v2 != 0) { + return d + } + goto _1 + _1: + ; + s = s + 1 + d = d + 1 + } + wd = d + ws = s + for { + if !!((**(**uint64)(__ccgo_up(ws))-Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)) & ^**(**uint64)(__ccgo_up(ws)) & (Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)*Uint64FromInt32(Int32FromInt32(UCHAR_MAX)/Int32FromInt32(2)+Int32FromInt32(1))) != 0) { + break + } + goto _3 + _3: + ; + v4 = wd + wd += 8 + v5 = ws + ws += 8 + **(**uint64)(__ccgo_up(v4)) = **(**uint64)(__ccgo_up(v5)) + } + d = wd + s = ws + } + for { + v2 = **(**uint8)(__ccgo_up(s)) + **(**uint8)(__ccgo_up(d)) = v2 + if !(v2 != 0) { + break + } + goto _6 + _6: + ; + s = s + 1 + d = d + 1 + } + return d +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xstpcpy(tls *TLS, d uintptr, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v, (%v:)", tls, d, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__stpcpy(tls, d, s) +} + +const ALIGN3 = -1 + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func X__stpncpy(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var wd, ws uintptr + var v2 uint8 + var v3 bool + _, _, _, _ = wd, ws, v2, v3 + if uint64(s)&(Uint64FromInt64(8)-Uint64FromInt32(1)) == uint64(d)&(Uint64FromInt64(8)-Uint64FromInt32(1)) { + for { + if v3 = uint64(s)&(Uint64FromInt64(8)-Uint64FromInt32(1)) != 0 && n != 0; v3 { + v2 = **(**uint8)(__ccgo_up(s)) + **(**uint8)(__ccgo_up(d)) = v2 + } + if !(v3 && v2 != 0) { + break + } + goto _1 + _1: + ; + n = n - 1 + s = s + 1 + d = d + 1 + } + if !(n != 0) || !(**(**uint8)(__ccgo_up(s)) != 0) { + goto tail + } + wd = d + ws = s + for { + if !(n >= uint64(8) && !((**(**uint64)(__ccgo_up(ws))-Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)) & ^**(**uint64)(__ccgo_up(ws)) & (Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)*Uint64FromInt32(Int32FromInt32(UCHAR_MAX)/Int32FromInt32(2)+Int32FromInt32(1))) != 0)) { + break + } + **(**uint64)(__ccgo_up(wd)) = **(**uint64)(__ccgo_up(ws)) + goto _4 + _4: + ; + n = n - uint64(8) + ws += 8 + wd += 8 + } + d = wd + s = ws + } + for { + if v3 = n != 0; v3 { + v2 = **(**uint8)(__ccgo_up(s)) + **(**uint8)(__ccgo_up(d)) = v2 + } + if !(v3 && v2 != 0) { + break + } + goto _5 + _5: + ; + n = n - 1 + s = s + 1 + d = d + 1 + } + goto tail +tail: + ; + Xmemset(tls, d, 0, n) + return d +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xstpncpy(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__stpncpy(tls, d, s, n) +} + +func Xstrcasecmp(tls *TLS, _l uintptr, _r uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v _l=%v _r=%v, (%v:)", tls, _l, _r, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var l, r uintptr + _, _ = l, r + l = _l + r = _r + for { + if !(**(**uint8)(__ccgo_up(l)) != 0 && **(**uint8)(__ccgo_up(r)) != 0 && (Int32FromUint8(**(**uint8)(__ccgo_up(l))) == Int32FromUint8(**(**uint8)(__ccgo_up(r))) || Xtolower(tls, Int32FromUint8(**(**uint8)(__ccgo_up(l)))) == Xtolower(tls, Int32FromUint8(**(**uint8)(__ccgo_up(r)))))) { + break + } + goto _1 + _1: + ; + l = l + 1 + r = r + 1 + } + return Xtolower(tls, Int32FromUint8(**(**uint8)(__ccgo_up(l)))) - Xtolower(tls, Int32FromUint8(**(**uint8)(__ccgo_up(r)))) +} + +func X__strcasecmp_l(tls *TLS, l uintptr, r uintptr, loc Tlocale_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v loc=%v, (%v:)", tls, l, r, loc, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return Xstrcasecmp(tls, l, r) +} + +func Xstrcasecmp_l(tls *TLS, l uintptr, r uintptr, loc Tlocale_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v loc=%v, (%v:)", tls, l, r, loc, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return X__strcasecmp_l(tls, l, r, loc) +} + +func Xstrcasestr(tls *TLS, h uintptr, n uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v h=%v n=%v, (%v:)", tls, h, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l Tsize_t + _ = l + l = _strlen(tls, n) + for { + if !(**(**uint8)(__ccgo_up(h)) != 0) { + break + } + if !(Xstrncasecmp(tls, h, n, l) != 0) { + return h + } + goto _1 + _1: + ; + h = h + 1 + } + return uintptr(0) +} + +func Xstrcat(tls *TLS, dest uintptr, src uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v, (%v:)", tls, dest, src, origin(2)) + defer func() { trc("-> %v", r) }() + } + Xstrcpy(tls, dest+uintptr(_strlen(tls, dest)), src) + return dest +} + +func Xstrchr(tls *TLS, s uintptr, c int32) (r1 uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v1 uintptr + _, _ = r, v1 + r = X__strchrnul(tls, s, c) + if Int32FromUint8(**(**uint8)(__ccgo_up(r))) == Int32FromUint8(Uint8FromInt32(c)) { + v1 = r + } else { + v1 = uintptr(0) + } + return v1 +} + +const ALIGN4 = 0 + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func X__strchrnul(tls *TLS, s uintptr, c int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + var k Tsize_t + var w uintptr + _, _ = k, w + c = Int32FromUint8(Uint8FromInt32(c)) + if !(c != 0) { + return s + uintptr(_strlen(tls, s)) + } + for { + if !(uint64(s)%Uint64FromInt64(8) != 0) { + break + } + if !(**(**uint8)(__ccgo_up(s)) != 0) || Int32FromUint8(**(**uint8)(__ccgo_up(s))) == c { + return s + } + goto _1 + _1: + ; + s = s + 1 + } + k = Uint64FromInt32(-Int32FromInt32(1)) / Uint64FromInt32(UCHAR_MAX) * Uint64FromInt32(c) + w = s + for { + if !(!((**(**uint64)(__ccgo_up(w))-Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)) & ^**(**uint64)(__ccgo_up(w)) & (Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)*Uint64FromInt32(Int32FromInt32(UCHAR_MAX)/Int32FromInt32(2)+Int32FromInt32(1))) != 0) && !((**(**uint64)(__ccgo_up(w))^k-Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)) & ^(**(**uint64)(__ccgo_up(w))^k) & (Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)*Uint64FromInt32(Int32FromInt32(UCHAR_MAX)/Int32FromInt32(2)+Int32FromInt32(1))) != 0)) { + break + } + goto _2 + _2: + ; + w += 8 + } + s = w + for { + if !(**(**uint8)(__ccgo_up(s)) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(s))) != c) { + break + } + goto _3 + _3: + ; + s = s + 1 + } + return s +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xstrchrnul(tls *TLS, s uintptr, c int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__strchrnul(tls, s, c) +} + +func Xstrcmp(tls *TLS, l uintptr, r uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v, (%v:)", tls, l, r, origin(2)) + defer func() { trc("-> %v", r1) }() + } + for { + if !(Int32FromUint8(**(**uint8)(__ccgo_up(l))) == Int32FromUint8(**(**uint8)(__ccgo_up(r))) && **(**uint8)(__ccgo_up(l)) != 0) { + break + } + goto _1 + _1: + ; + l = l + 1 + r = r + 1 + } + return Int32FromUint8(**(**uint8)(__ccgo_up(l))) - Int32FromUint8(**(**uint8)(__ccgo_up(r))) +} + +func Xstrcpy(tls *TLS, dest uintptr, src uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v, (%v:)", tls, dest, src, origin(2)) + defer func() { trc("-> %v", r) }() + } + X__stpcpy(tls, dest, src) + return dest +} + +func Xstrcspn(tls *TLS, s uintptr, c uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var a, v2 uintptr + var v3 bool + var _ /* byteset at bp+0 */ [4]Tsize_t + _, _, _ = a, v2, v3 + a = s + if !(**(**uint8)(__ccgo_up(c)) != 0) || !(**(**uint8)(__ccgo_up(c + 1)) != 0) { + return Uint64FromInt64(int64(X__strchrnul(tls, s, Int32FromUint8(**(**uint8)(__ccgo_up(c))))) - int64(a)) + } + Xmemset(tls, bp, 0, uint64(32)) + for { + if v3 = **(**uint8)(__ccgo_up(c)) != 0; v3 { + v2 = bp + uintptr(uint64(**(**uint8)(__ccgo_up(c)))/(Uint64FromInt32(8)*Uint64FromInt64(8)))*8 + *(*Tsize_t)(unsafe.Pointer(v2)) |= Uint64FromInt32(1) << (uint64(**(**uint8)(__ccgo_up(c))) % (Uint64FromInt32(8) * Uint64FromInt64(8))) + } + if !(v3 && *(*Tsize_t)(unsafe.Pointer(v2)) != 0) { + break + } + goto _1 + _1: + ; + c = c + 1 + } + for { + if !(**(**uint8)(__ccgo_up(s)) != 0 && !((**(**[4]Tsize_t)(__ccgo_up(bp)))[uint64(**(**uint8)(__ccgo_up(s)))/(Uint64FromInt32(8)*Uint64FromInt64(8))]&(Uint64FromInt32(1)<<(uint64(**(**uint8)(__ccgo_up(s)))%(Uint64FromInt32(8)*Uint64FromInt64(8)))) != 0)) { + break + } + goto _4 + _4: + ; + s = s + 1 + } + return Uint64FromInt64(int64(s) - int64(a)) +} + +func Xstrdup(tls *TLS, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var d uintptr + var l Tsize_t + _, _ = d, l + l = _strlen(tls, s) + d = Xmalloc(tls, l+uint64(1)) + if !(d != 0) { + return UintptrFromInt32(0) + } + return Xmemcpy(tls, d, s, l+uint64(1)) +} + +func Xstrerror_r(tls *TLS, err int32, buf uintptr, buflen Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v err=%v buf=%v buflen=%v, (%v:)", tls, err, buf, buflen, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l Tsize_t + var msg uintptr + _, _ = l, msg + msg = Xstrerror(tls, err) + l = _strlen(tls, msg) + if l >= buflen { + if buflen != 0 { + Xmemcpy(tls, buf, msg, buflen-uint64(1)) + **(**uint8)(__ccgo_up(buf + uintptr(buflen-uint64(1)))) = uint8(0) + } + return int32(ERANGE) + } + Xmemcpy(tls, buf, msg, l+uint64(1)) + return 0 +} + +func X__xpg_strerror_r(tls *TLS, err int32, buf uintptr, buflen Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v err=%v buf=%v buflen=%v, (%v:)", tls, err, buf, buflen, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrerror_r(tls, err, buf, buflen) +} + +func Xstrlcat(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l Tsize_t + _ = l + l = Xstrnlen(tls, d, n) + if l == n { + return l + _strlen(tls, s) + } + return l + Xstrlcpy(tls, d+uintptr(l), s, n-l) +} + +const ALIGN5 = -1 + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xstrlcpy(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var d0, wd, ws uintptr + var v1 Tsize_t + var v3 uint8 + var v4 bool + _, _, _, _, _, _ = d0, wd, ws, v1, v3, v4 + d0 = d + v1 = n + n = n - 1 + if !(v1 != 0) { + goto finish + } + if uint64(s)&(Uint64FromInt64(8)-Uint64FromInt32(1)) == uint64(d)&(Uint64FromInt64(8)-Uint64FromInt32(1)) { + for { + if v4 = uint64(s)&(Uint64FromInt64(8)-Uint64FromInt32(1)) != 0 && n != 0; v4 { + v3 = **(**uint8)(__ccgo_up(s)) + **(**uint8)(__ccgo_up(d)) = v3 + } + if !(v4 && v3 != 0) { + break + } + goto _2 + _2: + ; + n = n - 1 + s = s + 1 + d = d + 1 + } + if n != 0 && **(**uint8)(__ccgo_up(s)) != 0 { + wd = d + ws = s + for { + if !(n >= uint64(8) && !((**(**uint64)(__ccgo_up(ws))-Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)) & ^**(**uint64)(__ccgo_up(ws)) & (Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)*Uint64FromInt32(Int32FromInt32(UCHAR_MAX)/Int32FromInt32(2)+Int32FromInt32(1))) != 0)) { + break + } + **(**Tsize_t)(__ccgo_up(wd)) = **(**uint64)(__ccgo_up(ws)) + goto _5 + _5: + ; + n = n - uint64(8) + ws += 8 + wd += 8 + } + d = wd + s = ws + } + } + for { + if v4 = n != 0; v4 { + v3 = **(**uint8)(__ccgo_up(s)) + **(**uint8)(__ccgo_up(d)) = v3 + } + if !(v4 && v3 != 0) { + break + } + goto _6 + _6: + ; + n = n - 1 + s = s + 1 + d = d + 1 + } + **(**uint8)(__ccgo_up(d)) = uint8(0) + goto finish +finish: + ; + return Uint64FromInt64(int64(d)-int64(d0)) + _strlen(tls, s) + return r +} + +const ALIGN6 = 0 + +func Xstrncasecmp(tls *TLS, _l uintptr, _r uintptr, n Tsize_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v _l=%v _r=%v n=%v, (%v:)", tls, _l, _r, n, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var l, r uintptr + var v1 Tsize_t + _, _, _ = l, r, v1 + l = _l + r = _r + v1 = n + n = n - 1 + if !(v1 != 0) { + return 0 + } + for { + if !(**(**uint8)(__ccgo_up(l)) != 0 && **(**uint8)(__ccgo_up(r)) != 0 && n != 0 && (Int32FromUint8(**(**uint8)(__ccgo_up(l))) == Int32FromUint8(**(**uint8)(__ccgo_up(r))) || Xtolower(tls, Int32FromUint8(**(**uint8)(__ccgo_up(l)))) == Xtolower(tls, Int32FromUint8(**(**uint8)(__ccgo_up(r)))))) { + break + } + goto _2 + _2: + ; + l = l + 1 + r = r + 1 + n = n - 1 + } + return Xtolower(tls, Int32FromUint8(**(**uint8)(__ccgo_up(l)))) - Xtolower(tls, Int32FromUint8(**(**uint8)(__ccgo_up(r)))) +} + +func X__strncasecmp_l(tls *TLS, l uintptr, r uintptr, n Tsize_t, loc Tlocale_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v n=%v loc=%v, (%v:)", tls, l, r, n, loc, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return Xstrncasecmp(tls, l, r, n) +} + +func Xstrncasecmp_l(tls *TLS, l uintptr, r uintptr, n Tsize_t, loc Tlocale_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v n=%v loc=%v, (%v:)", tls, l, r, n, loc, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return X__strncasecmp_l(tls, l, r, n, loc) +} + +func Xstrncat(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, v1, v2 uintptr + _, _, _ = a, v1, v2 + a = d + d = d + uintptr(_strlen(tls, d)) + for n != 0 && **(**uint8)(__ccgo_up(s)) != 0 { + n = n - 1 + v1 = d + d = d + 1 + v2 = s + s = s + 1 + **(**uint8)(__ccgo_up(v1)) = **(**uint8)(__ccgo_up(v2)) + } + v1 = d + d = d + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(0) + return a +} + +func Xstrncmp(tls *TLS, _l uintptr, _r uintptr, n Tsize_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v _l=%v _r=%v n=%v, (%v:)", tls, _l, _r, n, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var l, r uintptr + var v1 Tsize_t + _, _, _ = l, r, v1 + l = _l + r = _r + v1 = n + n = n - 1 + if !(v1 != 0) { + return 0 + } + for { + if !(**(**uint8)(__ccgo_up(l)) != 0 && **(**uint8)(__ccgo_up(r)) != 0 && n != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(l))) == Int32FromUint8(**(**uint8)(__ccgo_up(r)))) { + break + } + goto _2 + _2: + ; + l = l + 1 + r = r + 1 + n = n - 1 + } + return Int32FromUint8(**(**uint8)(__ccgo_up(l))) - Int32FromUint8(**(**uint8)(__ccgo_up(r))) +} + +func Xstrncpy(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + X__stpncpy(tls, d, s, n) + return d +} + +func Xstrndup(tls *TLS, s uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v, (%v:)", tls, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var d uintptr + var l Tsize_t + _, _ = d, l + l = Xstrnlen(tls, s, n) + d = Xmalloc(tls, l+uint64(1)) + if !(d != 0) { + return UintptrFromInt32(0) + } + Xmemcpy(tls, d, s, l) + **(**uint8)(__ccgo_up(d + uintptr(l))) = uint8(0) + return d +} + +func Xstrnlen(tls *TLS, s uintptr, n Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v, (%v:)", tls, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var p uintptr + var v1 uint64 + _, _ = p, v1 + p = Xmemchr(tls, s, 0, n) + if p != 0 { + v1 = Uint64FromInt64(int64(p) - int64(s)) + } else { + v1 = n + } + return v1 +} + +func Xstrpbrk(tls *TLS, s uintptr, b uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v b=%v, (%v:)", tls, s, b, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 uintptr + _ = v1 + s = s + uintptr(Xstrcspn(tls, s, b)) + if **(**uint8)(__ccgo_up(s)) != 0 { + v1 = s + } else { + v1 = uintptr(0) + } + return v1 +} + +func Xstrrchr(tls *TLS, s uintptr, c int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__memrchr(tls, s, c, _strlen(tls, s)+uint64(1)) +} + +func Xstrsep(tls *TLS, str uintptr, sep uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v str=%v sep=%v, (%v:)", tls, str, sep, origin(2)) + defer func() { trc("-> %v", r) }() + } + var end, s, v1 uintptr + _, _, _ = end, s, v1 + s = **(**uintptr)(__ccgo_up(str)) + if !(s != 0) { + return UintptrFromInt32(0) + } + end = s + uintptr(Xstrcspn(tls, s, sep)) + if **(**uint8)(__ccgo_up(end)) != 0 { + v1 = end + end = end + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(0) + } else { + end = uintptr(0) + } + **(**uintptr)(__ccgo_up(str)) = end + return s +} + +var _strings = [671]uint8{'U', 'n', 'k', 'n', 'o', 'w', 'n', ' ', 's', 'i', 'g', 'n', 'a', 'l', 0, 'H', 'a', 'n', 'g', 'u', 'p', 0, 'I', 'n', 't', 'e', 'r', 'r', 'u', 'p', 't', 0, 'Q', 'u', 'i', 't', 0, 'I', 'l', 'l', 'e', 'g', 'a', 'l', ' ', 'i', 'n', 's', 't', 'r', 'u', 'c', 't', 'i', 'o', 'n', 0, 'T', 'r', 'a', 'c', 'e', '/', 'b', 'r', 'e', 'a', 'k', 'p', 'o', 'i', 'n', 't', ' ', 't', 'r', 'a', 'p', 0, 'A', 'b', 'o', 'r', 't', 'e', 'd', 0, 'B', 'u', 's', ' ', 'e', 'r', 'r', 'o', 'r', 0, 'A', 'r', 'i', 't', 'h', 'm', 'e', 't', 'i', 'c', ' ', 'e', 'x', 'c', 'e', 'p', 't', 'i', 'o', 'n', 0, 'K', 'i', 'l', 'l', 'e', 'd', 0, 'U', 's', 'e', 'r', ' ', 'd', 'e', 'f', 'i', 'n', 'e', 'd', ' ', 's', 'i', 'g', 'n', 'a', 'l', ' ', '1', 0, 'S', 'e', 'g', 'm', 'e', 'n', 't', 'a', 't', 'i', 'o', 'n', ' ', 'f', 'a', 'u', 'l', 't', 0, 'U', 's', 'e', 'r', ' ', 'd', 'e', 'f', 'i', 'n', 'e', 'd', ' ', 's', 'i', 'g', 'n', 'a', 'l', ' ', '2', 0, 'B', 'r', 'o', 'k', 'e', 'n', ' ', 'p', 'i', 'p', 'e', 0, 'A', 'l', 'a', 'r', 'm', ' ', 'c', 'l', 'o', 'c', 'k', 0, 'T', 'e', 'r', 'm', 'i', 'n', 'a', 't', 'e', 'd', 0, 'S', 't', 'a', 'c', 'k', ' ', 'f', 'a', 'u', 'l', 't', 0, 'C', 'h', 'i', 'l', 'd', ' ', 'p', 'r', 'o', 'c', 'e', 's', 's', ' ', 's', 't', 'a', 't', 'u', 's', 0, 'C', 'o', 'n', 't', 'i', 'n', 'u', 'e', 'd', 0, 'S', 't', 'o', 'p', 'p', 'e', 'd', ' ', '(', 's', 'i', 'g', 'n', 'a', 'l', ')', 0, 'S', 't', 'o', 'p', 'p', 'e', 'd', 0, 'S', 't', 'o', 'p', 'p', 'e', 'd', ' ', '(', 't', 't', 'y', ' ', 'i', 'n', 'p', 'u', 't', ')', 0, 'S', 't', 'o', 'p', 'p', 'e', 'd', ' ', '(', 't', 't', 'y', ' ', 'o', 'u', 't', 'p', 'u', 't', ')', 0, 'U', 'r', 'g', 'e', 'n', 't', ' ', 'I', '/', 'O', ' ', 'c', 'o', 'n', 'd', 'i', 't', 'i', 'o', 'n', 0, 'C', 'P', 'U', ' ', 't', 'i', 'm', 'e', ' ', 'l', 'i', 'm', 'i', 't', ' ', 'e', 'x', 'c', 'e', 'e', 'd', 'e', 'd', 0, 'F', 'i', 'l', 'e', ' ', 's', 'i', 'z', 'e', ' ', 'l', 'i', 'm', 'i', 't', ' ', 'e', 'x', 'c', 'e', 'e', 'd', 'e', 'd', 0, 'V', 'i', 'r', 't', 'u', 'a', 'l', ' ', 't', 'i', 'm', 'e', 'r', ' ', 'e', 'x', 'p', 'i', 'r', 'e', 'd', 0, 'P', 'r', 'o', 'f', 'i', 'l', 'i', 'n', 'g', ' ', 't', 'i', 'm', 'e', 'r', ' ', 'e', 'x', 'p', 'i', 'r', 'e', 'd', 0, 'W', 'i', 'n', 'd', 'o', 'w', ' ', 'c', 'h', 'a', 'n', 'g', 'e', 'd', 0, 'I', '/', 'O', ' ', 'p', 'o', 's', 's', 'i', 'b', 'l', 'e', 0, 'P', 'o', 'w', 'e', 'r', ' ', 'f', 'a', 'i', 'l', 'u', 'r', 'e', 0, 'B', 'a', 'd', ' ', 's', 'y', 's', 't', 'e', 'm', ' ', 'c', 'a', 'l', 'l', 0, 'R', 'T', '3', '2', 0, 'R', 'T', '3', '3', 0, 'R', 'T', '3', '4', 0, 'R', 'T', '3', '5', 0, 'R', 'T', '3', '6', 0, 'R', 'T', '3', '7', 0, 'R', 'T', '3', '8', 0, 'R', 'T', '3', '9', 0, 'R', 'T', '4', '0', 0, 'R', 'T', '4', '1', 0, 'R', 'T', '4', '2', 0, 'R', 'T', '4', '3', 0, 'R', 'T', '4', '4', 0, 'R', 'T', '4', '5', 0, 'R', 'T', '4', '6', 0, 'R', 'T', '4', '7', 0, 'R', 'T', '4', '8', 0, 'R', 'T', '4', '9', 0, 'R', 'T', '5', '0', 0, 'R', 'T', '5', '1', 0, 'R', 'T', '5', '2', 0, 'R', 'T', '5', '3', 0, 'R', 'T', '5', '4', 0, 'R', 'T', '5', '5', 0, 'R', 'T', '5', '6', 0, 'R', 'T', '5', '7', 0, 'R', 'T', '5', '8', 0, 'R', 'T', '5', '9', 0, 'R', 'T', '6', '0', 0, 'R', 'T', '6', '1', 0, 'R', 'T', '6', '2', 0, 'R', 'T', '6', '3', 0, 'R', 'T', '6', '4'} + +func Xstrsignal(tls *TLS, signum int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v signum=%v, (%v:)", tls, signum, origin(2)) + defer func() { trc("-> %v", r) }() + } + var s uintptr + var v2 int32 + _, _ = s, v2 + s = uintptr(unsafe.Pointer(&_strings)) + signum = signum + if Uint32FromInt32(signum)-uint32(1) >= Uint32FromInt32(Int32FromInt32(_NSIG)-Int32FromInt32(1)) { + signum = 0 + } + for { + v2 = signum + signum = signum - 1 + if !(v2 != 0) { + break + } + for { + if !(**(**uint8)(__ccgo_up(s)) != 0) { + break + } + goto _3 + _3: + ; + s = s + 1 + } + goto _1 + _1: + ; + s = s + 1 + } + return X__lctrans_cur(tls, s) +} + +func Xstrspn(tls *TLS, s uintptr, c uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var a, v3 uintptr + var v4 bool + var _ /* byteset at bp+0 */ [4]Tsize_t + _, _, _ = a, v3, v4 + a = s + **(**[4]Tsize_t)(__ccgo_up(bp)) = [4]Tsize_t{} + if !(**(**uint8)(__ccgo_up(c)) != 0) { + return uint64(0) + } + if !(**(**uint8)(__ccgo_up(c + 1)) != 0) { + for { + if !(Int32FromUint8(**(**uint8)(__ccgo_up(s))) == Int32FromUint8(**(**uint8)(__ccgo_up(c)))) { + break + } + goto _1 + _1: + ; + s = s + 1 + } + return Uint64FromInt64(int64(s) - int64(a)) + } + for { + if v4 = **(**uint8)(__ccgo_up(c)) != 0; v4 { + v3 = bp + uintptr(uint64(**(**uint8)(__ccgo_up(c)))/(Uint64FromInt32(8)*Uint64FromInt64(8)))*8 + *(*Tsize_t)(unsafe.Pointer(v3)) |= Uint64FromInt32(1) << (uint64(**(**uint8)(__ccgo_up(c))) % (Uint64FromInt32(8) * Uint64FromInt64(8))) + } + if !(v4 && *(*Tsize_t)(unsafe.Pointer(v3)) != 0) { + break + } + goto _2 + _2: + ; + c = c + 1 + } + for { + if !(**(**uint8)(__ccgo_up(s)) != 0 && (**(**[4]Tsize_t)(__ccgo_up(bp)))[uint64(**(**uint8)(__ccgo_up(s)))/(Uint64FromInt32(8)*Uint64FromInt64(8))]&(Uint64FromInt32(1)<<(uint64(**(**uint8)(__ccgo_up(s)))%(Uint64FromInt32(8)*Uint64FromInt64(8)))) != 0) { + break + } + goto _5 + _5: + ; + s = s + 1 + } + return Uint64FromInt64(int64(s) - int64(a)) +} + +func _twobyte_strstr(tls *TLS, h uintptr, n uintptr) (r uintptr) { + var hw, nw Tuint16_t + var v2 uintptr + _, _, _ = hw, nw, v2 + nw = Uint16FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(n)))< Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(jp+k)))) { + jp = jp + k + k = uint64(1) + p = jp - ip + } else { + v2 = jp + jp = jp + 1 + ip = v2 + v2 = Uint64FromInt32(1) + p = v2 + k = v2 + } + } + } + ms = ip + p0 = p + /* And with the opposite comparison */ + ip = Uint64FromInt32(-Int32FromInt32(1)) + jp = uint64(0) + v2 = Uint64FromInt32(1) + p = v2 + k = v2 + for jp+k < l { + if Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(ip+k)))) == Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(jp+k)))) { + if k == p { + jp = jp + p + k = uint64(1) + } else { + k = k + 1 + } + } else { + if Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(ip+k)))) < Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(jp+k)))) { + jp = jp + k + k = uint64(1) + p = jp - ip + } else { + v2 = jp + jp = jp + 1 + ip = v2 + v2 = Uint64FromInt32(1) + p = v2 + k = v2 + } + } + } + if ip+uint64(1) > ms+uint64(1) { + ms = ip + } else { + p = p0 + } + /* Periodic needle? */ + if Xmemcmp(tls, n, n+uintptr(p), ms+uint64(1)) != 0 { + mem0 = uint64(0) + if ms > l-ms-uint64(1) { + v8 = ms + } else { + v8 = l - ms - uint64(1) + } + p = v8 + uint64(1) + } else { + mem0 = l - p + } + mem = uint64(0) + /* Initialize incremental end-of-haystack pointer */ + z = h + /* Search loop */ + for { + /* Update incremental end-of-haystack pointer */ + if Uint64FromInt64(int64(z)-int64(h)) < l { + /* Fast estimate for MAX(l,63) */ + grow = l | uint64(63) + z2 = Xmemchr(tls, z, 0, grow) + if z2 != 0 { + z = z2 + if Uint64FromInt64(int64(z)-int64(h)) < l { + return uintptr(0) + } + } else { + z = z + uintptr(grow) + } + } + /* Check last byte first; advance by shift on mismatch */ + if (**(**[4]Tsize_t)(__ccgo_up(bp)))[uint64(**(**uint8)(__ccgo_up(h + uintptr(l-uint64(1)))))/(Uint64FromInt32(8)*Uint64FromInt64(8))]&(Uint64FromInt32(1)<<(uint64(**(**uint8)(__ccgo_up(h + uintptr(l-uint64(1)))))%(Uint64FromInt32(8)*Uint64FromInt64(8)))) != 0 { + k = l - shift[**(**uint8)(__ccgo_up(h + uintptr(l-uint64(1))))] + if k != 0 { + if k < mem { + k = mem + } + h = h + uintptr(k) + mem = uint64(0) + goto _9 + } + } else { + h = h + uintptr(l) + mem = uint64(0) + goto _9 + } + /* Compare right half */ + if ms+uint64(1) > mem { + v8 = ms + uint64(1) + } else { + v8 = mem + } + k = v8 + for { + if !(**(**uint8)(__ccgo_up(n + uintptr(k))) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(k)))) == Int32FromUint8(**(**uint8)(__ccgo_up(h + uintptr(k))))) { + break + } + goto _10 + _10: + ; + k = k + 1 + } + if **(**uint8)(__ccgo_up(n + uintptr(k))) != 0 { + h = h + uintptr(k-ms) + mem = uint64(0) + goto _9 + } + /* Compare left half */ + k = ms + uint64(1) + for { + if !(k > mem && Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(k-uint64(1))))) == Int32FromUint8(**(**uint8)(__ccgo_up(h + uintptr(k-uint64(1)))))) { + break + } + goto _12 + _12: + ; + k = k - 1 + } + if k <= mem { + return h + } + h = h + uintptr(p) + mem = mem0 + goto _9 + _9: + } + return r +} + +func Xstrstr(tls *TLS, h uintptr, n uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v h=%v n=%v, (%v:)", tls, h, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + /* Return immediately on empty needle */ + if !(**(**uint8)(__ccgo_up(n)) != 0) { + return h + } + /* Use faster algorithms for short needles */ + h = Xstrchr(tls, h, Int32FromUint8(**(**uint8)(__ccgo_up(n)))) + if !(h != 0) || !(**(**uint8)(__ccgo_up(n + 1)) != 0) { + return h + } + if !(**(**uint8)(__ccgo_up(h + 1)) != 0) { + return uintptr(0) + } + if !(**(**uint8)(__ccgo_up(n + 2)) != 0) { + return _twobyte_strstr(tls, h, n) + } + if !(**(**uint8)(__ccgo_up(h + 2)) != 0) { + return uintptr(0) + } + if !(**(**uint8)(__ccgo_up(n + 3)) != 0) { + return _threebyte_strstr(tls, h, n) + } + if !(**(**uint8)(__ccgo_up(h + 3)) != 0) { + return uintptr(0) + } + if !(**(**uint8)(__ccgo_up(n + 4)) != 0) { + return _fourbyte_strstr(tls, h, n) + } + return _twoway_strstr(tls, h, n) +} + +func Xstrtok(tls *TLS, s uintptr, sep uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v sep=%v, (%v:)", tls, s, sep, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 uintptr + var v2 bool + _, _ = v1, v2 + if v2 = !(s != 0); v2 { + v1 = _p2 + s = v1 + } + if v2 && !(v1 != 0) { + return UintptrFromInt32(0) + } + s = s + uintptr(Xstrspn(tls, s, sep)) + if !(**(**uint8)(__ccgo_up(s)) != 0) { + v1 = UintptrFromInt32(0) + _p2 = v1 + return v1 + } + _p2 = s + uintptr(Xstrcspn(tls, s, sep)) + if **(**uint8)(__ccgo_up(_p2)) != 0 { + v1 = _p2 + _p2 = _p2 + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(0) + } else { + _p2 = uintptr(0) + } + return s +} + +var _p2 uintptr + +func Xstrtok_r(tls *TLS, s uintptr, sep uintptr, p uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v sep=%v p=%v, (%v:)", tls, s, sep, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1, v3 uintptr + var v2 bool + _, _, _ = v1, v2, v3 + if v2 = !(s != 0); v2 { + v1 = **(**uintptr)(__ccgo_up(p)) + s = v1 + } + if v2 && !(v1 != 0) { + return UintptrFromInt32(0) + } + s = s + uintptr(Xstrspn(tls, s, sep)) + if !(**(**uint8)(__ccgo_up(s)) != 0) { + v1 = UintptrFromInt32(0) + **(**uintptr)(__ccgo_up(p)) = v1 + return v1 + } + **(**uintptr)(__ccgo_up(p)) = s + uintptr(Xstrcspn(tls, s, sep)) + if **(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(p)))) != 0 { + v3 = p + v1 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(0) + } else { + **(**uintptr)(__ccgo_up(p)) = uintptr(0) + } + return s +} + +func Xstrverscmp(tls *TLS, l0 uintptr, r0 uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l0=%v r0=%v, (%v:)", tls, l0, r0, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var c, z int32 + var dp, i, j, v2 Tsize_t + var l, r uintptr + _, _, _, _, _, _, _, _ = c, dp, i, j, l, r, z, v2 + l = l0 + r = r0 + z = int32(1) + /* Find maximal matching prefix and track its maximal digit + * suffix and whether those digits are all zeros. */ + v2 = Uint64FromInt32(0) + i = v2 + dp = v2 + for { + if !(Int32FromUint8(**(**uint8)(__ccgo_up(l + uintptr(i)))) == Int32FromUint8(**(**uint8)(__ccgo_up(r + uintptr(i))))) { + break + } + c = Int32FromUint8(**(**uint8)(__ccgo_up(l + uintptr(i)))) + if !(c != 0) { + return 0 + } + if !(BoolInt32(Uint32FromInt32(c)-Uint32FromUint8('0') < Uint32FromInt32(10)) != 0) { + dp = i + uint64(1) + z = Int32FromInt32(1) + } else { + if c != int32('0') { + z = 0 + } + } + goto _1 + _1: + ; + i = i + 1 + } + if Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(l + uintptr(dp))))-int32('1')) < uint32(9) && Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(r + uintptr(dp))))-int32('1')) < uint32(9) { + /* If we're looking at non-degenerate digit sequences starting + * with nonzero digits, longest digit string is greater. */ + j = i + for { + if !(BoolInt32(uint32(**(**uint8)(__ccgo_up(l + uintptr(j))))-uint32('0') < uint32(10)) != 0) { + break + } + if !(BoolInt32(uint32(**(**uint8)(__ccgo_up(r + uintptr(j))))-Uint32FromUint8('0') < Uint32FromInt32(10)) != 0) { + return int32(1) + } + goto _3 + _3: + ; + j = j + 1 + } + if BoolInt32(uint32(**(**uint8)(__ccgo_up(r + uintptr(j))))-uint32('0') < uint32(10)) != 0 { + return -int32(1) + } + } else { + if z != 0 && dp < i && (BoolInt32(uint32(**(**uint8)(__ccgo_up(l + uintptr(i))))-uint32('0') < uint32(10)) != 0 || BoolInt32(uint32(**(**uint8)(__ccgo_up(r + uintptr(i))))-uint32('0') < uint32(10)) != 0) { + /* Otherwise, if common prefix of digit sequence is + * all zeros, digits order less than non-digits. */ + return Int32FromUint8(Uint8FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(l + uintptr(i))))-Int32FromUint8('0'))) - Int32FromUint8(Uint8FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(r + uintptr(i))))-Int32FromUint8('0'))) + } + } + return Int32FromUint8(**(**uint8)(__ccgo_up(l + uintptr(i)))) - Int32FromUint8(**(**uint8)(__ccgo_up(r + uintptr(i)))) +} + +func Xswab(tls *TLS, _src uintptr, _dest uintptr, n Tssize_t) { + if __ccgo_strace { + trc("tls=%v _src=%v _dest=%v n=%v, (%v:)", tls, _src, _dest, n, origin(2)) + } + var dest, src uintptr + _, _ = dest, src + src = _src + dest = _dest + for { + if !(n > int64(1)) { + break + } + **(**uint8)(__ccgo_up(dest)) = **(**uint8)(__ccgo_up(src + 1)) + **(**uint8)(__ccgo_up(dest + 1)) = **(**uint8)(__ccgo_up(src)) + dest = dest + uintptr(2) + src = src + uintptr(2) + goto _1 + _1: + ; + n = n - int64(2) + } +} + +func Xwcpcpy(tls *TLS, d uintptr, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v, (%v:)", tls, d, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwcscpy(tls, d, s) + uintptr(Xwcslen(tls, s))*4 +} + +func Xwcpncpy(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwcsncpy(tls, d, s, n) + uintptr(Xwcsnlen(tls, s, n))*4 +} + +func Xwcscasecmp(tls *TLS, l uintptr, r uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v, (%v:)", tls, l, r, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return Xwcsncasecmp(tls, l, r, Uint64FromInt32(-Int32FromInt32(1))) +} + +func Xwcscasecmp_l(tls *TLS, l uintptr, r uintptr, locale Tlocale_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v locale=%v, (%v:)", tls, l, r, locale, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return Xwcscasecmp(tls, l, r) +} + +func Xwcscat(tls *TLS, dest uintptr, src uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v, (%v:)", tls, dest, src, origin(2)) + defer func() { trc("-> %v", r) }() + } + Xwcscpy(tls, dest+uintptr(Xwcslen(tls, dest))*4, src) + return dest +} + +func Xwcschr(tls *TLS, s uintptr, c Twchar_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v2 uintptr + _ = v2 + if !(c != 0) { + return s + uintptr(Xwcslen(tls, s))*4 + } + for { + if !(**(**Twchar_t)(__ccgo_up(s)) != 0 && **(**Twchar_t)(__ccgo_up(s)) != c) { + break + } + goto _1 + _1: + ; + s += 4 + } + if **(**Twchar_t)(__ccgo_up(s)) != 0 { + v2 = s + } else { + v2 = uintptr(0) + } + return v2 +} + +func Xwcscmp(tls *TLS, l uintptr, r uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v, (%v:)", tls, l, r, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var v2 int32 + _ = v2 + for { + if !(**(**Twchar_t)(__ccgo_up(l)) == **(**Twchar_t)(__ccgo_up(r)) && **(**Twchar_t)(__ccgo_up(l)) != 0 && **(**Twchar_t)(__ccgo_up(r)) != 0) { + break + } + goto _1 + _1: + ; + l += 4 + r += 4 + } + if **(**Twchar_t)(__ccgo_up(l)) < **(**Twchar_t)(__ccgo_up(r)) { + v2 = -int32(1) + } else { + v2 = BoolInt32(**(**Twchar_t)(__ccgo_up(l)) > **(**Twchar_t)(__ccgo_up(r))) + } + return v2 +} + +func Xwcscpy(tls *TLS, d uintptr, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v, (%v:)", tls, d, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, v2, v3 uintptr + var v1 Twchar_t + _, _, _, _ = a, v1, v2, v3 + a = d + for { + v2 = s + s += 4 + v1 = **(**Twchar_t)(__ccgo_up(v2)) + v3 = d + d += 4 + **(**Twchar_t)(__ccgo_up(v3)) = v1 + if !(v1 != 0) { + break + } + } + return a +} + +func Xwcscspn(tls *TLS, s uintptr, c uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, v2, v3 uintptr + var v1 uint64 + _, _, _, _ = a, v1, v2, v3 + if !(**(**Twchar_t)(__ccgo_up(c)) != 0) { + return Xwcslen(tls, s) + } + if !(**(**Twchar_t)(__ccgo_up(c + 1*4)) != 0) { + v3 = s + a = v3 + v2 = Xwcschr(tls, v3, **(**Twchar_t)(__ccgo_up(c))) + s = v2 + if v2 != 0 { + v1 = Uint64FromInt64((int64(s) - int64(a)) / 4) + } else { + v1 = Xwcslen(tls, a) + } + return v1 + } + a = s + for { + if !(**(**Twchar_t)(__ccgo_up(s)) != 0 && !(Xwcschr(tls, c, **(**Twchar_t)(__ccgo_up(s))) != 0)) { + break + } + goto _4 + _4: + ; + s += 4 + } + return Uint64FromInt64((int64(s) - int64(a)) / 4) +} + +func Xwcsdup(tls *TLS, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var d uintptr + var l Tsize_t + _, _ = d, l + l = Xwcslen(tls, s) + d = Xmalloc(tls, (l+uint64(1))*uint64(4)) + if !(d != 0) { + return UintptrFromInt32(0) + } + return Xwmemcpy(tls, d, s, l+uint64(1)) +} + +func Xwcslen(tls *TLS, s uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a uintptr + _ = a + a = s + for { + if !(**(**Twchar_t)(__ccgo_up(s)) != 0) { + break + } + goto _1 + _1: + ; + s += 4 + } + return Uint64FromInt64((int64(s) - int64(a)) / 4) +} + +func Xwcsncasecmp(tls *TLS, l uintptr, r uintptr, n Tsize_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v n=%v, (%v:)", tls, l, r, n, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var v1 Tsize_t + _ = v1 + v1 = n + n = n - 1 + if !(v1 != 0) { + return 0 + } + for { + if !(**(**Twchar_t)(__ccgo_up(l)) != 0 && **(**Twchar_t)(__ccgo_up(r)) != 0 && n != 0 && (**(**Twchar_t)(__ccgo_up(l)) == **(**Twchar_t)(__ccgo_up(r)) || Xtowlower(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(l)))) == Xtowlower(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(r)))))) { + break + } + goto _2 + _2: + ; + l += 4 + r += 4 + n = n - 1 + } + return Int32FromUint32(Xtowlower(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(l)))) - Xtowlower(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(r))))) +} + +func Xwcsncasecmp_l(tls *TLS, l uintptr, r uintptr, n Tsize_t, locale Tlocale_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v n=%v locale=%v, (%v:)", tls, l, r, n, locale, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return Xwcsncasecmp(tls, l, r, n) +} + +func Xwcsncat(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, v1, v2 uintptr + _, _, _ = a, v1, v2 + a = d + d = d + uintptr(Xwcslen(tls, d))*4 + for n != 0 && **(**Twchar_t)(__ccgo_up(s)) != 0 { + n = n - 1 + v1 = d + d += 4 + v2 = s + s += 4 + **(**Twchar_t)(__ccgo_up(v1)) = **(**Twchar_t)(__ccgo_up(v2)) + } + v1 = d + d += 4 + **(**Twchar_t)(__ccgo_up(v1)) = 0 + return a +} + +func Xwcsncmp(tls *TLS, l uintptr, r uintptr, n Tsize_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v n=%v, (%v:)", tls, l, r, n, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var v2, v3 int32 + _, _ = v2, v3 + for { + if !(n != 0 && **(**Twchar_t)(__ccgo_up(l)) == **(**Twchar_t)(__ccgo_up(r)) && **(**Twchar_t)(__ccgo_up(l)) != 0 && **(**Twchar_t)(__ccgo_up(r)) != 0) { + break + } + goto _1 + _1: + ; + n = n - 1 + l += 4 + r += 4 + } + if n != 0 { + if **(**Twchar_t)(__ccgo_up(l)) < **(**Twchar_t)(__ccgo_up(r)) { + v3 = -int32(1) + } else { + v3 = BoolInt32(**(**Twchar_t)(__ccgo_up(l)) > **(**Twchar_t)(__ccgo_up(r))) + } + v2 = v3 + } else { + v2 = 0 + } + return v2 +} + +func Xwcsncpy(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, v1, v2 uintptr + _, _, _ = a, v1, v2 + a = d + for n != 0 && **(**Twchar_t)(__ccgo_up(s)) != 0 { + n = n - 1 + v1 = d + d += 4 + v2 = s + s += 4 + **(**Twchar_t)(__ccgo_up(v1)) = **(**Twchar_t)(__ccgo_up(v2)) + } + Xwmemset(tls, d, 0, n) + return a +} + +func Xwcsnlen(tls *TLS, s uintptr, n Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v, (%v:)", tls, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var z uintptr + _ = z + z = Xwmemchr(tls, s, 0, n) + if z != 0 { + n = Uint64FromInt64((int64(z) - int64(s)) / 4) + } + return n +} + +func Xwcspbrk(tls *TLS, s uintptr, b uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v b=%v, (%v:)", tls, s, b, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 uintptr + _ = v1 + s = s + uintptr(Xwcscspn(tls, s, b))*4 + if **(**Twchar_t)(__ccgo_up(s)) != 0 { + v1 = s + } else { + v1 = UintptrFromInt32(0) + } + return v1 +} + +func Xwcsrchr(tls *TLS, s uintptr, c Twchar_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + var p, v2 uintptr + _, _ = p, v2 + p = s + uintptr(Xwcslen(tls, s))*4 + for { + if !(p >= s && **(**Twchar_t)(__ccgo_up(p)) != c) { + break + } + goto _1 + _1: + ; + p -= 4 + } + if p >= s { + v2 = p + } else { + v2 = uintptr(0) + } + return v2 +} + +func Xwcsspn(tls *TLS, s uintptr, c uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a uintptr + _ = a + a = s + for { + if !(**(**Twchar_t)(__ccgo_up(s)) != 0 && Xwcschr(tls, c, **(**Twchar_t)(__ccgo_up(s))) != 0) { + break + } + goto _1 + _1: + ; + s += 4 + } + return Uint64FromInt64((int64(s) - int64(a)) / 4) +} + +func _twoway_wcsstr(tls *TLS, h uintptr, n uintptr) (r uintptr) { + var grow, ip, jp, k, l, mem, mem0, ms, p, p0, v2 Tsize_t + var z, z2 uintptr + var v8 uint64 + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = grow, ip, jp, k, l, mem, mem0, ms, p, p0, z, z2, v2, v8 + /* Computing length of needle */ + l = uint64(0) + for { + if !(**(**Twchar_t)(__ccgo_up(n + uintptr(l)*4)) != 0 && **(**Twchar_t)(__ccgo_up(h + uintptr(l)*4)) != 0) { + break + } + goto _1 + _1: + ; + l = l + 1 + } + if **(**Twchar_t)(__ccgo_up(n + uintptr(l)*4)) != 0 { + return uintptr(0) + } /* hit the end of h */ + /* Compute maximal suffix */ + ip = Uint64FromInt32(-Int32FromInt32(1)) + jp = uint64(0) + v2 = Uint64FromInt32(1) + p = v2 + k = v2 + for jp+k < l { + if **(**Twchar_t)(__ccgo_up(n + uintptr(ip+k)*4)) == **(**Twchar_t)(__ccgo_up(n + uintptr(jp+k)*4)) { + if k == p { + jp = jp + p + k = uint64(1) + } else { + k = k + 1 + } + } else { + if **(**Twchar_t)(__ccgo_up(n + uintptr(ip+k)*4)) > **(**Twchar_t)(__ccgo_up(n + uintptr(jp+k)*4)) { + jp = jp + k + k = uint64(1) + p = jp - ip + } else { + v2 = jp + jp = jp + 1 + ip = v2 + v2 = Uint64FromInt32(1) + p = v2 + k = v2 + } + } + } + ms = ip + p0 = p + /* And with the opposite comparison */ + ip = Uint64FromInt32(-Int32FromInt32(1)) + jp = uint64(0) + v2 = Uint64FromInt32(1) + p = v2 + k = v2 + for jp+k < l { + if **(**Twchar_t)(__ccgo_up(n + uintptr(ip+k)*4)) == **(**Twchar_t)(__ccgo_up(n + uintptr(jp+k)*4)) { + if k == p { + jp = jp + p + k = uint64(1) + } else { + k = k + 1 + } + } else { + if **(**Twchar_t)(__ccgo_up(n + uintptr(ip+k)*4)) < **(**Twchar_t)(__ccgo_up(n + uintptr(jp+k)*4)) { + jp = jp + k + k = uint64(1) + p = jp - ip + } else { + v2 = jp + jp = jp + 1 + ip = v2 + v2 = Uint64FromInt32(1) + p = v2 + k = v2 + } + } + } + if ip+uint64(1) > ms+uint64(1) { + ms = ip + } else { + p = p0 + } + /* Periodic needle? */ + if Xwmemcmp(tls, n, n+uintptr(p)*4, ms+uint64(1)) != 0 { + mem0 = uint64(0) + if ms > l-ms-uint64(1) { + v8 = ms + } else { + v8 = l - ms - uint64(1) + } + p = v8 + uint64(1) + } else { + mem0 = l - p + } + mem = uint64(0) + /* Initialize incremental end-of-haystack pointer */ + z = h + /* Search loop */ + for { + /* Update incremental end-of-haystack pointer */ + if Uint64FromInt64((int64(z)-int64(h))/4) < l { + /* Fast estimate for MIN(l,63) */ + grow = l | uint64(63) + z2 = Xwmemchr(tls, z, 0, grow) + if z2 != 0 { + z = z2 + if Uint64FromInt64((int64(z)-int64(h))/4) < l { + return uintptr(0) + } + } else { + z = z + uintptr(grow)*4 + } + } + /* Compare right half */ + if ms+uint64(1) > mem { + v8 = ms + uint64(1) + } else { + v8 = mem + } + k = v8 + for { + if !(**(**Twchar_t)(__ccgo_up(n + uintptr(k)*4)) != 0 && **(**Twchar_t)(__ccgo_up(n + uintptr(k)*4)) == **(**Twchar_t)(__ccgo_up(h + uintptr(k)*4))) { + break + } + goto _10 + _10: + ; + k = k + 1 + } + if **(**Twchar_t)(__ccgo_up(n + uintptr(k)*4)) != 0 { + h = h + uintptr(k-ms)*4 + mem = uint64(0) + goto _9 + } + /* Compare left half */ + k = ms + uint64(1) + for { + if !(k > mem && **(**Twchar_t)(__ccgo_up(n + uintptr(k-uint64(1))*4)) == **(**Twchar_t)(__ccgo_up(h + uintptr(k-uint64(1))*4))) { + break + } + goto _12 + _12: + ; + k = k - 1 + } + if k <= mem { + return h + } + h = h + uintptr(p)*4 + mem = mem0 + goto _9 + _9: + } + return r +} + +func Xwcsstr(tls *TLS, h uintptr, n uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v h=%v n=%v, (%v:)", tls, h, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + /* Return immediately on empty needle or haystack */ + if !(**(**Twchar_t)(__ccgo_up(n)) != 0) { + return h + } + if !(**(**Twchar_t)(__ccgo_up(h)) != 0) { + return uintptr(0) + } + /* Use faster algorithms for short needles */ + h = Xwcschr(tls, h, **(**Twchar_t)(__ccgo_up(n))) + if !(h != 0) || !(**(**Twchar_t)(__ccgo_up(n + 1*4)) != 0) { + return h + } + if !(**(**Twchar_t)(__ccgo_up(h + 1*4)) != 0) { + return uintptr(0) + } + return _twoway_wcsstr(tls, h, n) +} + +func Xwcstok(tls *TLS, s uintptr, sep uintptr, p uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v sep=%v p=%v, (%v:)", tls, s, sep, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1, v3 uintptr + var v2 bool + _, _, _ = v1, v2, v3 + if v2 = !(s != 0); v2 { + v1 = **(**uintptr)(__ccgo_up(p)) + s = v1 + } + if v2 && !(v1 != 0) { + return UintptrFromInt32(0) + } + s = s + uintptr(Xwcsspn(tls, s, sep))*4 + if !(**(**Twchar_t)(__ccgo_up(s)) != 0) { + v1 = UintptrFromInt32(0) + **(**uintptr)(__ccgo_up(p)) = v1 + return v1 + } + **(**uintptr)(__ccgo_up(p)) = s + uintptr(Xwcscspn(tls, s, sep))*4 + if **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(p)))) != 0 { + v3 = p + v1 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) += 4 + **(**Twchar_t)(__ccgo_up(v1)) = 0 + } else { + **(**uintptr)(__ccgo_up(p)) = uintptr(0) + } + return s +} + +func Xwcswcs(tls *TLS, haystack uintptr, needle uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v haystack=%v needle=%v, (%v:)", tls, haystack, needle, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwcsstr(tls, haystack, needle) +} + +func Xwmemchr(tls *TLS, s uintptr, c Twchar_t, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v n=%v, (%v:)", tls, s, c, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v2 uintptr + _ = v2 + for { + if !(n != 0 && **(**Twchar_t)(__ccgo_up(s)) != c) { + break + } + goto _1 + _1: + ; + n = n - 1 + s += 4 + } + if n != 0 { + v2 = s + } else { + v2 = uintptr(0) + } + return v2 +} + +func Xwmemcmp(tls *TLS, l uintptr, r uintptr, n Tsize_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v n=%v, (%v:)", tls, l, r, n, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var v2, v3 int32 + _, _ = v2, v3 + for { + if !(n != 0 && **(**Twchar_t)(__ccgo_up(l)) == **(**Twchar_t)(__ccgo_up(r))) { + break + } + goto _1 + _1: + ; + n = n - 1 + l += 4 + r += 4 + } + if n != 0 { + if **(**Twchar_t)(__ccgo_up(l)) < **(**Twchar_t)(__ccgo_up(r)) { + v3 = -int32(1) + } else { + v3 = BoolInt32(**(**Twchar_t)(__ccgo_up(l)) > **(**Twchar_t)(__ccgo_up(r))) + } + v2 = v3 + } else { + v2 = 0 + } + return v2 +} + +func Xwmemcpy(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, v2, v3 uintptr + var v1 Tsize_t + _, _, _, _ = a, v1, v2, v3 + a = d + for { + v1 = n + n = n - 1 + if !(v1 != 0) { + break + } + v2 = d + d += 4 + v3 = s + s += 4 + **(**Twchar_t)(__ccgo_up(v2)) = **(**Twchar_t)(__ccgo_up(v3)) + } + return a +} + +func Xwmemmove(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var d0, v3, v4 uintptr + var v1 Tsize_t + _, _, _, _ = d0, v1, v3, v4 + d0 = d + if d == s { + return d + } + if uint64(d)-uint64(s) < n*uint64(4) { + for { + v1 = n + n = n - 1 + if !(v1 != 0) { + break + } + **(**Twchar_t)(__ccgo_up(d + uintptr(n)*4)) = **(**Twchar_t)(__ccgo_up(s + uintptr(n)*4)) + } + } else { + for { + v1 = n + n = n - 1 + if !(v1 != 0) { + break + } + v3 = d + d += 4 + v4 = s + s += 4 + **(**Twchar_t)(__ccgo_up(v3)) = **(**Twchar_t)(__ccgo_up(v4)) + } + } + return d0 +} + +func Xwmemset(tls *TLS, d uintptr, c Twchar_t, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v c=%v n=%v, (%v:)", tls, d, c, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret, v2 uintptr + var v1 Tsize_t + _, _, _ = ret, v1, v2 + ret = d + for { + v1 = n + n = n - 1 + if !(v1 != 0) { + break + } + v2 = d + d += 4 + **(**Twchar_t)(__ccgo_up(v2)) = c + } + return ret +} + +func Xmkdtemp(tls *TLS, template uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v template=%v, (%v:)", tls, template, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l Tsize_t + var retries, v1 int32 + _, _, _ = l, retries, v1 + l = _strlen(tls, template) + retries = int32(100) + if l < uint64(6) || Xmemcmp(tls, template+uintptr(l)-uintptr(6), __ccgo_ts+1772, uint64(6)) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(0) + } + for { + ___randname(tls, template+uintptr(l)-uintptr(6)) + if !(Xmkdir(tls, template, uint32(0700)) != 0) { + return template + } + goto _2 + _2: + ; + retries = retries - 1 + v1 = retries + if !(v1 != 0 && **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EEXIST)) { + break + } + } + Xmemcpy(tls, template+uintptr(l)-uintptr(6), __ccgo_ts+1772, uint64(6)) + return uintptr(0) +} + +func Xmkostemp(tls *TLS, template uintptr, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v template=%v flags=%v, (%v:)", tls, template, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__mkostemps(tls, template, 0, flags) +} + +func X__mkostemps(tls *TLS, template uintptr, len1 int32, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v template=%v len1=%v flags=%v, (%v:)", tls, template, len1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var fd, retries, v1 int32 + var l Tsize_t + _, _, _, _ = fd, l, retries, v1 + l = _strlen(tls, template) + if l < uint64(6) || Uint64FromInt32(len1) > l-uint64(6) || Xmemcmp(tls, template+uintptr(l)-uintptr(len1)-uintptr(6), __ccgo_ts+1772, uint64(6)) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + flags = flags - flags&(Int32FromInt32(03)|Int32FromInt32(O_PATH)) + retries = int32(100) + for { + ___randname(tls, template+uintptr(l)-uintptr(len1)-uintptr(6)) + v1 = Xopen(tls, template, flags|int32(O_RDWR)|int32(O_CREAT)|int32(O_EXCL), VaList(bp+8, int32(0600))) + fd = v1 + if v1 >= 0 { + return fd + } + goto _2 + _2: + ; + retries = retries - 1 + v1 = retries + if !(v1 != 0 && **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EEXIST)) { + break + } + } + Xmemcpy(tls, template+uintptr(l)-uintptr(len1)-uintptr(6), __ccgo_ts+1772, uint64(6)) + return -int32(1) +} + +func Xmkostemps(tls *TLS, template uintptr, len1 int32, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v template=%v len1=%v flags=%v, (%v:)", tls, template, len1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__mkostemps(tls, template, len1, flags) +} + +func Xmkstemp(tls *TLS, template uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v template=%v, (%v:)", tls, template, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__mkostemps(tls, template, 0, 0) +} + +func Xmkstemps(tls *TLS, template uintptr, len1 int32) (r int32) { + if __ccgo_strace { + trc("tls=%v template=%v len1=%v, (%v:)", tls, template, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__mkostemps(tls, template, len1, 0) +} + +func Xmktemp(tls *TLS, template uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v template=%v, (%v:)", tls, template, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(144) + defer tls.Free(144) + var l Tsize_t + var retries, v1 int32 + var _ /* st at bp+0 */ Tstat + _, _, _ = l, retries, v1 + l = _strlen(tls, template) + retries = int32(100) + if l < uint64(6) || Xmemcmp(tls, template+uintptr(l)-uintptr(6), __ccgo_ts+1772, uint64(6)) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + **(**uint8)(__ccgo_up(template)) = uint8(0) + return template + } + for { + ___randname(tls, template+uintptr(l)-uintptr(6)) + if Xstat(tls, template, bp) != 0 { + if **(**int32)(__ccgo_up(X__errno_location(tls))) != int32(ENOENT) { + **(**uint8)(__ccgo_up(template)) = uint8(0) + } + return template + } + goto _2 + _2: + ; + retries = retries - 1 + v1 = retries + if !(v1 != 0) { + break + } + } + **(**uint8)(__ccgo_up(template)) = uint8(0) + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EEXIST) + return template +} + +func Xcfgetospeed(tls *TLS, tio uintptr) (r Tspeed_t) { + if __ccgo_strace { + trc("tls=%v tio=%v, (%v:)", tls, tio, origin(2)) + defer func() { trc("-> %v", r) }() + } + return (*Ttermios)(unsafe.Pointer(tio)).Fc_cflag & uint32(CBAUD) +} + +func Xcfgetispeed(tls *TLS, tio uintptr) (r Tspeed_t) { + if __ccgo_strace { + trc("tls=%v tio=%v, (%v:)", tls, tio, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xcfgetospeed(tls, tio) +} + +func Xcfmakeraw(tls *TLS, t uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v, (%v:)", tls, t, origin(2)) + } + **(**Ttcflag_t)(__ccgo_up(t)) &= Uint32FromInt32(^(Int32FromInt32(IGNBRK) | Int32FromInt32(BRKINT) | Int32FromInt32(PARMRK) | Int32FromInt32(ISTRIP) | Int32FromInt32(INLCR) | Int32FromInt32(IGNCR) | Int32FromInt32(ICRNL) | Int32FromInt32(IXON))) + **(**Ttcflag_t)(__ccgo_up(t + 4)) &= Uint32FromInt32(^Int32FromInt32(OPOST)) + **(**Ttcflag_t)(__ccgo_up(t + 12)) &= Uint32FromInt32(^(Int32FromInt32(ECHO) | Int32FromInt32(ECHONL) | Int32FromInt32(ICANON) | Int32FromInt32(ISIG) | Int32FromInt32(IEXTEN))) + **(**Ttcflag_t)(__ccgo_up(t + 8)) &= Uint32FromInt32(^(Int32FromInt32(CSIZE) | Int32FromInt32(PARENB))) + **(**Ttcflag_t)(__ccgo_up(t + 8)) |= uint32(CS8) + **(**Tcc_t)(__ccgo_up(t + 16 + 5)) = uint8(1) + **(**Tcc_t)(__ccgo_up(t + 16 + 7)) = uint8(0) +} + +func Xcfsetospeed(tls *TLS, tio uintptr, speed Tspeed_t) (r int32) { + if __ccgo_strace { + trc("tls=%v tio=%v speed=%v, (%v:)", tls, tio, speed, origin(2)) + defer func() { trc("-> %v", r) }() + } + if speed&Uint32FromInt32(^Int32FromInt32(CBAUD)) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + **(**Ttcflag_t)(__ccgo_up(tio + 8)) &= Uint32FromInt32(^Int32FromInt32(CBAUD)) + **(**Ttcflag_t)(__ccgo_up(tio + 8)) |= speed + return 0 +} + +func Xcfsetispeed(tls *TLS, tio uintptr, speed Tspeed_t) (r int32) { + if __ccgo_strace { + trc("tls=%v tio=%v speed=%v, (%v:)", tls, tio, speed, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + _ = v1 + if speed != 0 { + v1 = Xcfsetospeed(tls, tio, speed) + } else { + v1 = 0 + } + return v1 +} + +func Xcfsetspeed(tls *TLS, tio uintptr, speed Tspeed_t) (r int32) { + if __ccgo_strace { + trc("tls=%v tio=%v speed=%v, (%v:)", tls, tio, speed, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xcfsetospeed(tls, tio, speed) +} + +func Xtcdrain(tls *TLS, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_ioctl), int64(fd), Int64FromUint32(Uint32FromUint32(1)< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + return Xioctl(tls, fd, Int32FromUint32(Uint32FromUint32(1)< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + return Xioctl(tls, fd, Int32FromUint32(Uint32FromUint32(1)< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + if Xioctl(tls, fd, Int32FromUint64(uint64(Uint32FromUint32(2)< %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var _ /* sid at bp+0 */ int32 + if Xioctl(tls, fd, int32(TIOCGSID), VaList(bp+16, bp)) < 0 { + return -int32(1) + } + return **(**int32)(__ccgo_up(bp)) +} + +func Xtcgetwinsize(tls *TLS, fd int32, wsz uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v wsz=%v, (%v:)", tls, fd, wsz, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_ioctl), int64(fd), Int64FromUint64(uint64(Uint32FromUint32(2)< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + /* nonzero duration is implementation-defined, so ignore it */ + return Xioctl(tls, fd, Int32FromUint32(Uint32FromUint32(1)< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + if act < 0 || act > int32(2) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + return Xioctl(tls, fd, Int32FromUint64(uint64(Uint32FromUint32(4)< %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_ioctl), int64(fd), Int64FromUint64(uint64(Uint32FromUint32(4)< %v", r) }() + } + bp := tls.Alloc(144) + defer tls.Free(144) + var fd int32 + var map1, v1 uintptr + var _ /* st at bp+0 */ Tstat + _, _, _ = fd, map1, v1 + map1 = uintptr(-Int32FromInt32(1)) + fd = int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_open), int64(pathname), int64(Int32FromInt32(O_RDONLY)|Int32FromInt32(O_CLOEXEC)|Int32FromInt32(O_NONBLOCK)|Int32FromInt32(O_LARGEFILE)))))) + if fd < 0 { + return uintptr(0) + } + if !(X__fstat(tls, fd, bp) != 0) { + map1 = X__mmap(tls, uintptr(0), Uint64FromInt64((**(**Tstat)(__ccgo_up(bp))).Fst_size), int32(PROT_READ), int32(MAP_SHARED), fd, 0) + **(**Tsize_t)(__ccgo_up(size)) = Uint64FromInt64((**(**Tstat)(__ccgo_up(bp))).Fst_size) + } + X__syscall1(tls, int64(SYS_close), int64(fd)) + if map1 == uintptr(-Int32FromInt32(1)) { + v1 = uintptr(0) + } else { + v1 = map1 + } + return v1 +} + +func X__month_to_secs(tls *TLS, month int32, is_leap int32) (r int32) { + if __ccgo_strace { + trc("tls=%v month=%v is_leap=%v, (%v:)", tls, month, is_leap, origin(2)) + defer func() { trc("-> %v", r) }() + } + var t int32 + _ = t + t = _secs_through_month[month] + if is_leap != 0 && month >= int32(2) { + t = t + int32(86400) + } + return t +} + +var _secs_through_month = [12]int32{ + 1: Int32FromInt32(31) * Int32FromInt32(86400), + 2: Int32FromInt32(59) * Int32FromInt32(86400), + 3: Int32FromInt32(90) * Int32FromInt32(86400), + 4: Int32FromInt32(120) * Int32FromInt32(86400), + 5: Int32FromInt32(151) * Int32FromInt32(86400), + 6: Int32FromInt32(181) * Int32FromInt32(86400), + 7: Int32FromInt32(212) * Int32FromInt32(86400), + 8: Int32FromInt32(243) * Int32FromInt32(86400), + 9: Int32FromInt32(273) * Int32FromInt32(86400), + 10: Int32FromInt32(304) * Int32FromInt32(86400), + 11: Int32FromInt32(334) * Int32FromInt32(86400), +} + +const DAYS_PER_100Y = 36524 +const DAYS_PER_400Y = 146097 +const DAYS_PER_4Y = 1461 +const LEAPOCH = 951868800 + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +/* 2000-03-01 (mod 400 year, immediately after feb29 */ + +func X__secs_to_tm(tls *TLS, t int64, tm uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v t=%v tm=%v, (%v:)", tls, t, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + var c_cycles, leap, months, q_cycles, qc_cycles, remdays, remsecs, remyears, wday, yday int32 + var days, secs, years int64 + _, _, _, _, _, _, _, _, _, _, _, _, _ = c_cycles, days, leap, months, q_cycles, qc_cycles, remdays, remsecs, remyears, secs, wday, yday, years + /* Reject time_t values whose year would overflow int */ + if t < int64(-Int32FromInt32(1)-Int32FromInt32(0x7fffffff))*Int64FromInt64(31622400) || t > Int64FromInt32(INT_MAX)*Int64FromInt64(31622400) { + return -int32(1) + } + secs = t - (Int64FromInt64(946684800) + int64(Int32FromInt32(86400)*(Int32FromInt32(31)+Int32FromInt32(29)))) + days = secs / int64(86400) + remsecs = int32(secs % int64(86400)) + if remsecs < 0 { + remsecs = remsecs + int32(86400) + days = days - 1 + } + wday = int32((int64(3) + days) % int64(7)) + if wday < 0 { + wday = wday + int32(7) + } + qc_cycles = int32(days / int64(Int32FromInt32(365)*Int32FromInt32(400)+Int32FromInt32(97))) + remdays = int32(days % int64(Int32FromInt32(365)*Int32FromInt32(400)+Int32FromInt32(97))) + if remdays < 0 { + remdays = remdays + (Int32FromInt32(365)*Int32FromInt32(400) + Int32FromInt32(97)) + qc_cycles = qc_cycles - 1 + } + c_cycles = remdays / (Int32FromInt32(365)*Int32FromInt32(100) + Int32FromInt32(24)) + if c_cycles == int32(4) { + c_cycles = c_cycles - 1 + } + remdays = remdays - c_cycles*(Int32FromInt32(365)*Int32FromInt32(100)+Int32FromInt32(24)) + q_cycles = remdays / (Int32FromInt32(365)*Int32FromInt32(4) + Int32FromInt32(1)) + if q_cycles == int32(25) { + q_cycles = q_cycles - 1 + } + remdays = remdays - q_cycles*(Int32FromInt32(365)*Int32FromInt32(4)+Int32FromInt32(1)) + remyears = remdays / int32(365) + if remyears == int32(4) { + remyears = remyears - 1 + } + remdays = remdays - remyears*int32(365) + leap = BoolInt32(!(remyears != 0) && (q_cycles != 0 || !(c_cycles != 0))) + yday = remdays + int32(31) + int32(28) + leap + if yday >= int32(365)+leap { + yday = yday - (int32(365) + leap) + } + years = int64(remyears+int32(4)*q_cycles+int32(100)*c_cycles) + int64(400)*int64(qc_cycles) + months = 0 + for { + if !(Int32FromUint8(_days_in_month[months]) <= remdays) { + break + } + remdays = remdays - Int32FromUint8(_days_in_month[months]) + goto _1 + _1: + ; + months = months + 1 + } + if months >= int32(10) { + months = months - int32(12) + years = years + 1 + } + if years+int64(100) > int64(INT_MAX) || years+int64(100) < int64(-Int32FromInt32(1)-Int32FromInt32(0x7fffffff)) { + return -int32(1) + } + (*Ttm)(unsafe.Pointer(tm)).Ftm_year = int32(years + int64(100)) + (*Ttm)(unsafe.Pointer(tm)).Ftm_mon = months + int32(2) + (*Ttm)(unsafe.Pointer(tm)).Ftm_mday = remdays + int32(1) + (*Ttm)(unsafe.Pointer(tm)).Ftm_wday = wday + (*Ttm)(unsafe.Pointer(tm)).Ftm_yday = yday + (*Ttm)(unsafe.Pointer(tm)).Ftm_hour = remsecs / int32(3600) + (*Ttm)(unsafe.Pointer(tm)).Ftm_min = remsecs / int32(60) % int32(60) + (*Ttm)(unsafe.Pointer(tm)).Ftm_sec = remsecs % int32(60) + return 0 +} + +var _days_in_month = [12]uint8{ + 0: uint8(31), + 1: uint8(30), + 2: uint8(31), + 3: uint8(30), + 4: uint8(31), + 5: uint8(31), + 6: uint8(30), + 7: uint8(31), + 8: uint8(30), + 9: uint8(31), + 10: uint8(31), + 11: uint8(29), +} + +func X__tm_to_secs(tls *TLS, tm uintptr) (r int64) { + if __ccgo_strace { + trc("tls=%v tm=%v, (%v:)", tls, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var adj, month int32 + var t, year int64 + var _ /* is_leap at bp+0 */ int32 + _, _, _, _ = adj, month, t, year + year = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_year) + month = (*Ttm)(unsafe.Pointer(tm)).Ftm_mon + if month >= int32(12) || month < 0 { + adj = month / int32(12) + month = month % int32(12) + if month < 0 { + adj = adj - 1 + month = month + int32(12) + } + year = year + int64(adj) + } + t = X__year_to_secs(tls, year, bp) + t = t + int64(X__month_to_secs(tls, month, **(**int32)(__ccgo_up(bp)))) + t = t + int64(86400)*int64((*Ttm)(unsafe.Pointer(tm)).Ftm_mday-Int32FromInt32(1)) + t = t + int64(3600)*int64((*Ttm)(unsafe.Pointer(tm)).Ftm_hour) + t = t + int64(60)*int64((*Ttm)(unsafe.Pointer(tm)).Ftm_min) + t = t + int64((*Ttm)(unsafe.Pointer(tm)).Ftm_sec) + return t +} + +var _std_name [7]uint8 +var _dst_name [7]uint8 + +var _dst_off int32 +var _r0 [5]int32 +var _r12 [5]int32 + +var _zi uintptr +var _trans uintptr +var _index uintptr +var _types uintptr +var _abbrevs uintptr +var _abbrevs_end uintptr +var _map_size Tsize_t + +var _old_tz_buf [32]uint8 +var _old_tz = uintptr(unsafe.Pointer(&_old_tz_buf)) +var _old_tz_size = uint64(32) + +var _lock4 [1]int32 + +func _getint2(tls *TLS, p uintptr) (r int32) { + var x uint32 + _ = x + x = uint32(0) + for { + if !(Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(p)))))-int32('0')) < uint32(10)) { + break + } + x = Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(p)))))-int32('0')) + uint32(10)*x + goto _1 + _1: + ; + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + } + return Int32FromUint32(x) +} + +func _getoff(tls *TLS, p uintptr) (r int32) { + var neg, off, v1 int32 + _, _, _ = neg, off, v1 + neg = 0 + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(p))))) == int32('-') { + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + neg = int32(1) + } else { + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(p))))) == int32('+') { + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + } + } + off = int32(3600) * _getint2(tls, p) + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(p))))) == int32(':') { + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + off = off + int32(60)*_getint2(tls, p) + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(p))))) == int32(':') { + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + off = off + _getint2(tls, p) + } + } + if neg != 0 { + v1 = -off + } else { + v1 = off + } + return v1 +} + +func _getrule(tls *TLS, p uintptr, rule uintptr) { + var r, v1 int32 + _, _ = r, v1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(p))))) + **(**int32)(__ccgo_up(rule)) = v1 + r = v1 + if r != int32('M') { + if r == int32('J') { + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + } else { + **(**int32)(__ccgo_up(rule)) = 0 + } + **(**int32)(__ccgo_up(rule + 1*4)) = _getint2(tls, p) + } else { + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + **(**int32)(__ccgo_up(rule + 1*4)) = _getint2(tls, p) + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + **(**int32)(__ccgo_up(rule + 2*4)) = _getint2(tls, p) + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + **(**int32)(__ccgo_up(rule + 3*4)) = _getint2(tls, p) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(p))))) == int32('/') { + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + **(**int32)(__ccgo_up(rule + 4*4)) = _getoff(tls, p) + } else { + **(**int32)(__ccgo_up(rule + 4*4)) = int32(7200) + } +} + +func _getname(tls *TLS, d uintptr, p uintptr) { + var i, v3 int32 + _, _ = i, v3 + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(p))))) == int32('<') { + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + i = 0 + for { + if !(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(p)) + uintptr(i))) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(p)) + uintptr(i)))) != int32('>')) { + break + } + if i < int32(TZNAME_MAX) { + **(**uint8)(__ccgo_up(d + uintptr(i))) = **(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(p)) + uintptr(i))) + } + goto _1 + _1: + ; + i = i + 1 + } + if **(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(p)) + uintptr(i))) != 0 { + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + } + } else { + i = 0 + for { + if !(Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(p)) + uintptr(i))))|int32(32)-int32('a')) < uint32(26)) { + break + } + if i < int32(TZNAME_MAX) { + **(**uint8)(__ccgo_up(d + uintptr(i))) = **(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(p)) + uintptr(i))) + } + goto _2 + _2: + ; + i = i + 1 + } + } + **(**uintptr)(__ccgo_up(p)) += uintptr(i) + if i < int32(TZNAME_MAX) { + v3 = i + } else { + v3 = int32(TZNAME_MAX) + } + **(**uint8)(__ccgo_up(d + uintptr(v3))) = uint8(0) +} + +func _zi_read32(tls *TLS, z uintptr) (r Tuint32_t) { + return uint32(**(**uint8)(__ccgo_up(z)))< Uint64FromInt32(Int32FromInt32(PATH_MAX)+Int32FromInt32(1)) { + **(**uintptr)(__ccgo_up(bp + 288)) = uintptr(unsafe.Pointer(&X__utc)) + i = Uint64FromInt32(3) + } + if i >= _old_tz_size { + _old_tz_size = _old_tz_size * uint64(2) + if i >= _old_tz_size { + _old_tz_size = i + uint64(1) + } + if _old_tz_size > Uint64FromInt32(Int32FromInt32(PATH_MAX)+Int32FromInt32(2)) { + _old_tz_size = Uint64FromInt32(Int32FromInt32(PATH_MAX) + Int32FromInt32(2)) + } + _old_tz = Xmalloc(tls, _old_tz_size) + } + if _old_tz != 0 { + Xmemcpy(tls, _old_tz, **(**uintptr)(__ccgo_up(bp + 288)), i+uint64(1)) + } + posix_form = 0 + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 288))))) != int32(':') { + **(**uintptr)(__ccgo_up(bp + 296)) = **(**uintptr)(__ccgo_up(bp + 288)) + _getname(tls, bp+308, bp+296) + if **(**uintptr)(__ccgo_up(bp + 296)) != **(**uintptr)(__ccgo_up(bp + 288)) && (Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 296))))) == int32('+') || Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 296))))) == int32('-') || BoolInt32(uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 296)))))-uint32('0') < uint32(10)) != 0 || !(Xstrcmp(tls, bp+308, __ccgo_ts+1797) != 0) || !(Xstrcmp(tls, bp+308, __ccgo_ts+1801) != 0)) { + posix_form = int32(1) + } + } + /* Non-suid can use an absolute tzfile pathname or a relative + * pathame beginning with "."; in secure mode, only the + * standard path will be searched. */ + if !(posix_form != 0) { + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 288))))) == int32(':') { + **(**uintptr)(__ccgo_up(bp + 288)) = **(**uintptr)(__ccgo_up(bp + 288)) + 1 + } + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 288))))) == int32('/') || Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 288))))) == int32('.') { + if !(X__libc.Fsecure != 0) || !(Xstrcmp(tls, **(**uintptr)(__ccgo_up(bp + 288)), __ccgo_ts+1782) != 0) { + map1 = X__map_file(tls, **(**uintptr)(__ccgo_up(bp + 288)), uintptr(unsafe.Pointer(&_map_size))) + } + } else { + l = _strlen(tls, **(**uintptr)(__ccgo_up(bp + 288))) + if l <= uint64(NAME_MAX) && !(Xstrchr(tls, **(**uintptr)(__ccgo_up(bp + 288)), int32('.')) != 0) { + Xmemcpy(tls, pathname, **(**uintptr)(__ccgo_up(bp + 288)), l+uint64(1)) + **(**uint8)(__ccgo_up(pathname + uintptr(l))) = uint8(0) + try = uintptr(unsafe.Pointer(&_search)) + for { + if !(!(map1 != 0) && **(**uint8)(__ccgo_up(try)) != 0) { + break + } + l = _strlen(tls, try) + Xmemcpy(tls, pathname-uintptr(l), try, l) + map1 = X__map_file(tls, pathname-uintptr(l), uintptr(unsafe.Pointer(&_map_size))) + goto _3 + _3: + ; + try = try + uintptr(l+uint64(1)) + } + } + } + if !(map1 != 0) { + **(**uintptr)(__ccgo_up(bp + 288)) = uintptr(unsafe.Pointer(&X__utc)) + } + } + if map1 != 0 && (_map_size < uint64(44) || Xmemcmp(tls, map1, __ccgo_ts+1805, uint64(4)) != 0) { + X__munmap(tls, map1, _map_size) + map1 = uintptr(0) + **(**uintptr)(__ccgo_up(bp + 288)) = uintptr(unsafe.Pointer(&X__utc)) + } + _zi = map1 + if map1 != 0 { + scale = int32(2) + if Int32FromUint8(**(**uint8)(__ccgo_up(map1 + 4))) != int32('1') { + *(*[6]uint8)(unsafe.Pointer(bp)) = [6]uint8{ + 0: uint8(1), + 1: uint8(1), + 2: uint8(8), + 3: uint8(5), + 4: uint8(6), + 5: uint8(1), + } + skip = _zi_dotprod(tls, _zi+uintptr(20), bp, uint64(6)) + _trans = _zi + uintptr(skip) + uintptr(44) + uintptr(44) + scale = scale + 1 + } else { + _trans = _zi + uintptr(44) + } + _index = _trans + uintptr(_zi_read32(tls, _trans-uintptr(12))<> scale) + if !(n != 0) { + if alt != 0 { + **(**Tsize_t)(__ccgo_up(alt)) = uint64(0) + } + return uint64(0) + } + /* Binary search for 'most-recent rule before t'. */ + for n > uint64(1) { + m = a + n/uint64(2) + x = uint64(_zi_read32(tls, _trans+uintptr(m<> scale) + if a == n-uint64(1) { + return Uint64FromInt32(-Int32FromInt32(1)) + } + if a == uint64(0) { + x = uint64(_zi_read32(tls, _trans)) + if scale == int32(3) { + x = x<>(m-int32(1))&int32(1) + } + return r +} + +/* Convert a POSIX DST rule plus year to seconds since epoch. */ + +func _rule_to_secs(tls *TLS, rule uintptr, year int32) (r int64) { + bp := tls.Alloc(16) + defer tls.Free(16) + var d, days, m, n, wday, x int32 + var t int64 + var _ /* is_leap at bp+0 */ int32 + _, _, _, _, _, _, _ = d, days, m, n, t, wday, x + t = X__year_to_secs(tls, int64(year), bp) + if **(**int32)(__ccgo_up(rule)) != int32('M') { + x = **(**int32)(__ccgo_up(rule + 1*4)) + if **(**int32)(__ccgo_up(rule)) == int32('J') && (x < int32(60) || !(**(**int32)(__ccgo_up(bp)) != 0)) { + x = x - 1 + } + t = t + int64(int32(86400)*x) + } else { + m = **(**int32)(__ccgo_up(rule + 1*4)) + n = **(**int32)(__ccgo_up(rule + 2*4)) + d = **(**int32)(__ccgo_up(rule + 3*4)) + t = t + int64(X__month_to_secs(tls, m-int32(1), **(**int32)(__ccgo_up(bp)))) + wday = int32((t+int64(Int32FromInt32(4)*Int32FromInt32(86400)))%int64(Int32FromInt32(7)*Int32FromInt32(86400))) / int32(86400) + days = d - wday + if days < 0 { + days = days + int32(7) + } + if n == int32(5) && days+int32(28) >= _days_in_month1(tls, m, **(**int32)(__ccgo_up(bp))) { + n = int32(4) + } + t = t + int64(int32(86400)*(days+int32(7)*(n-int32(1)))) + } + t = t + int64(**(**int32)(__ccgo_up(rule + 4*4))) + return t +} + +/* Determine the time zone in effect for a given time in seconds since the + * epoch. It can be given in local or universal time. The results will + * indicate whether DST is in effect at the queried time, and will give both + * the GMT offset for the active zone/DST rule and the opposite DST. This + * enables a caller to efficiently adjust for the case where an explicit + * DST specification mismatches what would be in effect at the time. */ + +func X__secs_to_zone(tls *TLS, t int64, local int32, isdst uintptr, offset uintptr, oppoff uintptr, zonename uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v local=%v isdst=%v offset=%v oppoff=%v zonename=%v, (%v:)", tls, t, local, isdst, offset, oppoff, zonename, origin(2)) + } + bp := tls.Alloc(16) + defer tls.Free(16) + var i Tsize_t + var t0, t1, y int64 + var _ /* alt at bp+0 */ Tsize_t + _, _, _, _ = i, t0, t1, y + ___lock(tls, uintptr(unsafe.Pointer(&_lock4))) + _do_tzset(tls) + if _zi != 0 { + i = _scan_trans(tls, t, local, bp) + if i != Uint64FromInt32(-Int32FromInt32(1)) { + **(**int32)(__ccgo_up(isdst)) = Int32FromUint8(**(**uint8)(__ccgo_up(_types + uintptr(uint64(6)*i+uint64(4))))) + **(**int64)(__ccgo_up(offset)) = int64(Int32FromUint32(_zi_read32(tls, _types+uintptr(uint64(6)*i)))) + **(**uintptr)(__ccgo_up(zonename)) = _abbrevs + uintptr(**(**uint8)(__ccgo_up(_types + uintptr(uint64(6)*i+uint64(5))))) + if oppoff != 0 { + **(**int64)(__ccgo_up(oppoff)) = int64(Int32FromUint32(_zi_read32(tls, _types+uintptr(uint64(6)***(**Tsize_t)(__ccgo_up(bp)))))) + } + ___unlock(tls, uintptr(unsafe.Pointer(&_lock4))) + return + } + } + if !(Xdaylight != 0) { + goto std + } + /* FIXME: may be broken if DST changes right at year boundary? + * Also, this could be more efficient.*/ + y = t/int64(31556952) + int64(70) + for X__year_to_secs(tls, y, uintptr(0)) > t { + y = y - 1 + } + for X__year_to_secs(tls, y+int64(1), uintptr(0)) < t { + y = y + 1 + } + t0 = _rule_to_secs(tls, uintptr(unsafe.Pointer(&_r0)), int32(y)) + t1 = _rule_to_secs(tls, uintptr(unsafe.Pointer(&_r12)), int32(y)) + if !(local != 0) { + t0 = t0 + Xtimezone + t1 = t1 + int64(_dst_off) + } + if t0 < t1 { + if t >= t0 && t < t1 { + goto dst + } + goto std + } else { + if t >= t1 && t < t0 { + goto std + } + goto dst + } + goto std +std: + ; + **(**int32)(__ccgo_up(isdst)) = 0 + **(**int64)(__ccgo_up(offset)) = -Xtimezone + if oppoff != 0 { + **(**int64)(__ccgo_up(oppoff)) = int64(-_dst_off) + } + **(**uintptr)(__ccgo_up(zonename)) = Xtzname[0] + ___unlock(tls, uintptr(unsafe.Pointer(&_lock4))) + return + goto dst +dst: + ; + **(**int32)(__ccgo_up(isdst)) = int32(1) + **(**int64)(__ccgo_up(offset)) = int64(-_dst_off) + if oppoff != 0 { + **(**int64)(__ccgo_up(oppoff)) = -Xtimezone + } + **(**uintptr)(__ccgo_up(zonename)) = Xtzname[int32(1)] + ___unlock(tls, uintptr(unsafe.Pointer(&_lock4))) +} + +func ___tzset(tls *TLS) { + ___lock(tls, uintptr(unsafe.Pointer(&_lock4))) + _do_tzset(tls) + ___unlock(tls, uintptr(unsafe.Pointer(&_lock4))) +} + +func X__tm_to_tzname(tls *TLS, tm uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v tm=%v, (%v:)", tls, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + var p uintptr + _ = p + p = (*Ttm)(unsafe.Pointer(tm)).F__tm_zone + ___lock(tls, uintptr(unsafe.Pointer(&_lock4))) + _do_tzset(tls) + if p != uintptr(unsafe.Pointer(&X__utc)) && p != Xtzname[0] && p != Xtzname[int32(1)] && (!(_zi != 0) || uint64(p)-uint64(_abbrevs) >= Uint64FromInt64(int64(_abbrevs_end)-int64(_abbrevs))) { + p = __ccgo_ts + } + ___unlock(tls, uintptr(unsafe.Pointer(&_lock4))) + return p +} + +func X__year_to_secs(tls *TLS, year int64, is_leap uintptr) (r int64) { + if __ccgo_strace { + trc("tls=%v year=%v is_leap=%v, (%v:)", tls, year, is_leap, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var centuries, cycles, leaps, leaps1, rem, y int32 + var _ /* dummy at bp+0 */ int32 + _, _, _, _, _, _ = centuries, cycles, leaps, leaps1, rem, y + if Uint64FromInt64(year)-uint64(2) <= uint64(136) { + y = int32(year) + leaps = (y - int32(68)) >> int32(2) + if !((y-Int32FromInt32(68))&Int32FromInt32(3) != 0) { + leaps = leaps - 1 + if is_leap != 0 { + **(**int32)(__ccgo_up(is_leap)) = int32(1) + } + } else { + if is_leap != 0 { + **(**int32)(__ccgo_up(is_leap)) = 0 + } + } + return int64(int32(31536000)*(y-int32(70)) + int32(86400)*leaps) + } + if !(is_leap != 0) { + is_leap = bp + } + cycles = int32((year - int64(100)) / int64(400)) + rem = int32((year - int64(100)) % int64(400)) + if rem < 0 { + cycles = cycles - 1 + rem = rem + int32(400) + } + if !(rem != 0) { + **(**int32)(__ccgo_up(is_leap)) = int32(1) + centuries = 0 + leaps1 = 0 + } else { + if rem >= int32(200) { + if rem >= int32(300) { + centuries = int32(3) + rem = rem - int32(300) + } else { + centuries = int32(2) + rem = rem - int32(200) + } + } else { + if rem >= int32(100) { + centuries = int32(1) + rem = rem - int32(100) + } else { + centuries = 0 + } + } + if !(rem != 0) { + **(**int32)(__ccgo_up(is_leap)) = 0 + leaps1 = 0 + } else { + leaps1 = Int32FromUint32(Uint32FromInt32(rem) / uint32(4)) + rem = Int32FromUint32(uint32(rem) % Uint32FromUint32(4)) + **(**int32)(__ccgo_up(is_leap)) = BoolInt32(!(rem != 0)) + } + } + leaps1 = leaps1 + (int32(97)*cycles + int32(24)*centuries - **(**int32)(__ccgo_up(is_leap))) + return (year-int64(100))*int64(31536000) + int64(leaps1)*int64(86400) + int64(946684800) + int64(86400) +} + +func Xasctime(tls *TLS, tm uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v tm=%v, (%v:)", tls, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__asctime_r(tls, tm, uintptr(unsafe.Pointer(&_buf9))) +} + +var _buf9 [26]uint8 + +func X__asctime_r(tls *TLS, tm uintptr, buf uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v tm=%v buf=%v, (%v:)", tls, tm, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + if Xsnprintf(tls, buf, uint64(26), __ccgo_ts+1810, VaList(bp+8, X__nl_langinfo_l(tls, int32(ABDAY_1)+(*Ttm)(unsafe.Pointer(tm)).Ftm_wday, uintptr(unsafe.Pointer(&X__c_locale))), X__nl_langinfo_l(tls, int32(ABMON_1)+(*Ttm)(unsafe.Pointer(tm)).Ftm_mon, uintptr(unsafe.Pointer(&X__c_locale))), (*Ttm)(unsafe.Pointer(tm)).Ftm_mday, (*Ttm)(unsafe.Pointer(tm)).Ftm_hour, (*Ttm)(unsafe.Pointer(tm)).Ftm_min, (*Ttm)(unsafe.Pointer(tm)).Ftm_sec, int32(1900)+(*Ttm)(unsafe.Pointer(tm)).Ftm_year)) >= int32(26) { + /* ISO C requires us to use the above format string, + * even if it will not fit in the buffer. Thus asctime_r + * is _supposed_ to crash if the fields in tm are too large. + * We follow this behavior and crash "gracefully" to warn + * application developers that they may not be so lucky + * on other implementations (e.g. stack smashing..). + */ + // __asm__ __volatile__ (".long 0"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 54, __ccgo_ts+1842) + } + return buf +} + +func Xasctime_r(tls *TLS, tm uintptr, buf uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v tm=%v buf=%v, (%v:)", tls, tm, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__asctime_r(tls, tm, buf) +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xclock(tls *TLS) (r Tclock_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* ts at bp+0 */ Ttimespec + if X__clock_gettime(tls, int32(CLOCK_PROCESS_CPUTIME_ID), bp) != 0 { + return int64(-int32(1)) + } + if (**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec > Int64FromInt64(0x7fffffffffffffff)/Int64FromInt32(1000000) || (**(**Ttimespec)(__ccgo_up(bp))).Ftv_nsec/int64(1000) > int64(0x7fffffffffffffff)-int64(1000000)*(**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec { + return int64(-int32(1)) + } + return (**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec*int64(1000000) + (**(**Ttimespec)(__ccgo_up(bp))).Ftv_nsec/int64(1000) +} + +func Xclock_getcpuclockid(tls *TLS, pid Tpid_t, clk uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v pid=%v clk=%v, (%v:)", tls, pid, clk, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var id Tclockid_t + var ret int32 + var _ /* ts at bp+0 */ Ttimespec + _, _ = id, ret + id = Int32FromUint32(Uint32FromInt32(-pid-Int32FromInt32(1))*uint32(8) + uint32(2)) + ret = int32(X__syscall2(tls, int64(SYS_clock_getres), int64(id), int64(bp))) + if ret == -int32(EINVAL) { + ret = -int32(ESRCH) + } + if ret != 0 { + return -ret + } + **(**Tclockid_t)(__ccgo_up(clk)) = id + return 0 +} + +func Xclock_getres(tls *TLS, clk Tclockid_t, ts uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v clk=%v ts=%v, (%v:)", tls, clk, ts, origin(2)) + defer func() { trc("-> %v", r) }() + } + /* If reaching this point, it's a 64-bit arch or time64-only + * 32-bit arch and we can get result directly into timespec. */ + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_clock_getres), int64(clk), int64(ts))))) +} + +func X__clock_gettime(tls *TLS, clk Tclockid_t, ts uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v clk=%v ts=%v, (%v:)", tls, clk, ts, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + r = int32(X__syscall2(tls, int64(SYS_clock_gettime), int64(clk), int64(ts))) + if r == -int32(ENOSYS) { + if clk == CLOCK_REALTIME { + X__syscall2(tls, int64(SYS_gettimeofday), int64(ts), int64(Int32FromInt32(0))) + (*Ttimespec)(unsafe.Pointer(ts)).Ftv_nsec = int64(int32((*Ttimespec)(unsafe.Pointer(ts)).Ftv_nsec) * int32(1000)) + return 0 + } + r = -int32(EINVAL) + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func Xclock_gettime(tls *TLS, clk Tclockid_t, ts uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v clk=%v ts=%v, (%v:)", tls, clk, ts, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__clock_gettime(tls, clk, ts) +} + +func X__clock_nanosleep(tls *TLS, clk Tclockid_t, flags int32, req uintptr, rem uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v clk=%v flags=%v req=%v rem=%v, (%v:)", tls, clk, flags, req, rem, origin(2)) + defer func() { trc("-> %v", r) }() + } + if clk == int32(CLOCK_THREAD_CPUTIME_ID) { + return int32(EINVAL) + } + if clk == CLOCK_REALTIME && !(flags != 0) { + return int32(-___syscall_cp(tls, int64(SYS_nanosleep), int64(req), int64(rem), 0, 0, 0, 0)) + } + return int32(-___syscall_cp(tls, int64(SYS_clock_nanosleep), int64(clk), int64(flags), int64(req), int64(rem), 0, 0)) +} + +func Xclock_nanosleep(tls *TLS, clk Tclockid_t, flags int32, req uintptr, rem uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v clk=%v flags=%v req=%v rem=%v, (%v:)", tls, clk, flags, req, rem, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__clock_nanosleep(tls, clk, flags, req, rem) +} + +func Xclock_settime(tls *TLS, clk Tclockid_t, ts uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v clk=%v ts=%v, (%v:)", tls, clk, ts, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_clock_settime), int64(clk), int64(ts))))) +} + +func Xctime(tls *TLS, t uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v, (%v:)", tls, t, origin(2)) + defer func() { trc("-> %v", r) }() + } + var tm uintptr + _ = tm + tm = Xlocaltime(tls, t) + if !(tm != 0) { + return uintptr(0) + } + return Xasctime(tls, tm) +} + +func Xctime_r(tls *TLS, t uintptr, buf uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v buf=%v, (%v:)", tls, t, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var tm_p, v1 uintptr + var _ /* tm at bp+0 */ Ttm + _, _ = tm_p, v1 + tm_p = Xlocaltime_r(tls, t, bp) + if tm_p != 0 { + v1 = Xasctime_r(tls, tm_p, buf) + } else { + v1 = uintptr(0) + } + return v1 +} + +func Xdifftime(tls *TLS, t1 Ttime_t, t0 Ttime_t) (r float64) { + if __ccgo_strace { + trc("tls=%v t1=%v t0=%v, (%v:)", tls, t1, t0, origin(2)) + defer func() { trc("-> %v", r) }() + } + return float64(t1 - t0) +} + +type Ttimeb = struct { + Ftime Ttime_t + Fmillitm uint16 + Ftimezone int16 + Fdstflag int16 +} + +func Xftime(tls *TLS, tp uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v tp=%v, (%v:)", tls, tp, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 int16 + var _ /* ts at bp+0 */ Ttimespec + _ = v1 + Xclock_gettime(tls, CLOCK_REALTIME, bp) + (*Ttimeb)(unsafe.Pointer(tp)).Ftime = (**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec + (*Ttimeb)(unsafe.Pointer(tp)).Fmillitm = Uint16FromInt64((**(**Ttimespec)(__ccgo_up(bp))).Ftv_nsec / int64(1000000)) + v1 = Int16FromInt32(0) + (*Ttimeb)(unsafe.Pointer(tp)).Fdstflag = v1 + (*Ttimeb)(unsafe.Pointer(tp)).Ftimezone = v1 + return 0 +} + +func Xgetdate(tls *TLS, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(112) + defer tls.Free(112) + var datemsk, f, p, ret uintptr + var _ /* cs at bp+100 */ int32 + var _ /* fmt at bp+0 */ [100]uint8 + _, _, _, _ = datemsk, f, p, ret + ret = uintptr(0) + datemsk = Xgetenv(tls, __ccgo_ts+1854) + f = uintptr(0) + _pthread_setcancelstate(tls, PTHREAD_CANCEL_DEFERRED, bp+100) + if !(datemsk != 0) { + Xgetdate_err = int32(1) + goto out + } + f = Xfopen(tls, datemsk, __ccgo_ts+412) + if !(f != 0) { + if **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(ENOMEM) { + Xgetdate_err = int32(6) + } else { + Xgetdate_err = int32(2) + } + goto out + } + for Xfgets(tls, bp, int32(100), f) != 0 { + p = Xstrptime(tls, s, bp, uintptr(unsafe.Pointer(&_tmbuf))) + if p != 0 && !(**(**uint8)(__ccgo_up(p)) != 0) { + ret = uintptr(unsafe.Pointer(&_tmbuf)) + goto out + } + } + if Xferror(tls, f) != 0 { + Xgetdate_err = int32(5) + } else { + Xgetdate_err = int32(7) + } + goto out +out: + ; + if f != 0 { + Xfclose(tls, f) + } + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 100)), uintptr(0)) + return ret +} + +var _tmbuf Ttm + +func Xgettimeofday(tls *TLS, tv uintptr, tz uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v tv=%v tz=%v, (%v:)", tls, tv, tz, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* ts at bp+0 */ Ttimespec + if !(tv != 0) { + return 0 + } + Xclock_gettime(tls, CLOCK_REALTIME, bp) + (*Ttimeval)(unsafe.Pointer(tv)).Ftv_sec = (**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec + (*Ttimeval)(unsafe.Pointer(tv)).Ftv_usec = int64(int32((**(**Ttimespec)(__ccgo_up(bp))).Ftv_nsec) / int32(1000)) + return 0 +} + +func Xgmtime(tls *TLS, t uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v, (%v:)", tls, t, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__gmtime_r(tls, t, uintptr(unsafe.Pointer(&_tm))) +} + +var _tm Ttm + +func X__gmtime_r(tls *TLS, t uintptr, tm uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v tm=%v, (%v:)", tls, t, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + if X__secs_to_tm(tls, int64(**(**Ttime_t)(__ccgo_up(t))), tm) < 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOVERFLOW) + return uintptr(0) + } + (*Ttm)(unsafe.Pointer(tm)).Ftm_isdst = 0 + (*Ttm)(unsafe.Pointer(tm)).F__tm_gmtoff = 0 + (*Ttm)(unsafe.Pointer(tm)).F__tm_zone = uintptr(unsafe.Pointer(&X__utc)) + return tm +} + +func Xgmtime_r(tls *TLS, t uintptr, tm uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v tm=%v, (%v:)", tls, t, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__gmtime_r(tls, t, tm) +} + +func Xlocaltime(tls *TLS, t uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v, (%v:)", tls, t, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__localtime_r(tls, t, uintptr(unsafe.Pointer(&_tm1))) +} + +var _tm1 Ttm + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func X__localtime_r(tls *TLS, t uintptr, tm uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v tm=%v, (%v:)", tls, t, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + /* Reject time_t values whose year would overflow int because + * __secs_to_zone cannot safely handle them. */ + if int64(**(**Ttime_t)(__ccgo_up(t))) < int64(-Int32FromInt32(1)-Int32FromInt32(0x7fffffff))*Int64FromInt64(31622400) || int64(**(**Ttime_t)(__ccgo_up(t))) > Int64FromInt32(INT_MAX)*Int64FromInt64(31622400) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOVERFLOW) + return uintptr(0) + } + X__secs_to_zone(tls, int64(**(**Ttime_t)(__ccgo_up(t))), 0, tm+32, tm+40, uintptr(0), tm+48) + if X__secs_to_tm(tls, int64(**(**Ttime_t)(__ccgo_up(t)))+(*Ttm)(unsafe.Pointer(tm)).F__tm_gmtoff, tm) < 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOVERFLOW) + return uintptr(0) + } + return tm +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xlocaltime_r(tls *TLS, t uintptr, tm uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v tm=%v, (%v:)", tls, t, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__localtime_r(tls, t, tm) +} + +func Xmktime(tls *TLS, tm uintptr) (r Ttime_t) { + if __ccgo_strace { + trc("tls=%v tm=%v, (%v:)", tls, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var t int64 + var _ /* new at bp+0 */ Ttm + var _ /* opp at bp+56 */ int64 + _ = t + t = X__tm_to_secs(tls, tm) + X__secs_to_zone(tls, t, int32(1), bp+32, bp+40, bp+56, bp+48) + if (*Ttm)(unsafe.Pointer(tm)).Ftm_isdst >= 0 && (**(**Ttm)(__ccgo_up(bp))).Ftm_isdst != (*Ttm)(unsafe.Pointer(tm)).Ftm_isdst { + t = t - int64(**(**int64)(__ccgo_up(bp + 56))-(**(**Ttm)(__ccgo_up(bp))).F__tm_gmtoff) + } + t = t - int64((**(**Ttm)(__ccgo_up(bp))).F__tm_gmtoff) + if t != t { + goto error + } + X__secs_to_zone(tls, t, 0, bp+32, bp+40, bp+56, bp+48) + if X__secs_to_tm(tls, t+int64((**(**Ttm)(__ccgo_up(bp))).F__tm_gmtoff), bp) < 0 { + goto error + } + **(**Ttm)(__ccgo_up(tm)) = **(**Ttm)(__ccgo_up(bp)) + return t + goto error +error: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOVERFLOW) + return int64(-int32(1)) +} + +func Xnanosleep(tls *TLS, req uintptr, rem uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v req=%v rem=%v, (%v:)", tls, req, rem, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt32(-X__clock_nanosleep(tls, CLOCK_REALTIME, 0, req, rem)))) +} + +func _is_leap(tls *TLS, y int32) (r int32) { + /* Avoid overflow */ + if y > Int32FromInt32(INT_MAX)-Int32FromInt32(1900) { + y = y - int32(2000) + } + y = y + int32(1900) + return BoolInt32(!(y%Int32FromInt32(4) != 0) && (y%int32(100) != 0 || !(y%Int32FromInt32(400) != 0))) +} + +func _week_num(tls *TLS, tm uintptr) (r int32) { + var dec31, jan1, val int32 + _, _, _ = dec31, jan1, val + val = Int32FromUint32((Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_yday) + uint32(7) - (Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_wday)+uint32(6))%uint32(7)) / uint32(7)) + /* If 1 Jan is just 1-3 days past Monday, + * the previous week is also in this year. */ + if (Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_wday)+uint32(371)-Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_yday)-uint32(2))%uint32(7) <= uint32(2) { + val = val + 1 + } + if !(val != 0) { + val = int32(52) + /* If 31 December of prev year a Thursday, + * or Friday of a leap year, then the + * prev year has 53 weeks. */ + dec31 = Int32FromUint32((Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_wday) + uint32(7) - Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_yday) - uint32(1)) % uint32(7)) + if dec31 == int32(4) || dec31 == int32(5) && _is_leap(tls, (*Ttm)(unsafe.Pointer(tm)).Ftm_year%int32(400)-int32(1)) != 0 { + val = val + 1 + } + } else { + if val == int32(53) { + /* If 1 January is not a Thursday, and not + * a Wednesday of a leap year, then this + * year has only 52 weeks. */ + jan1 = Int32FromUint32((Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_wday) + uint32(371) - Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_yday)) % uint32(7)) + if jan1 != int32(4) && (jan1 != int32(3) || !(_is_leap(tls, (*Ttm)(unsafe.Pointer(tm)).Ftm_year) != 0)) { + val = int32(1) + } + } + } + return val +} + +func X__strftime_fmt_1(tls *TLS, s uintptr, l uintptr, f int32, tm uintptr, loc Tlocale_t, pad int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v l=%v f=%v tm=%v loc=%v pad=%v, (%v:)", tls, s, l, f, tm, loc, pad, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var d, fmt, v4, v5 uintptr + var def_pad, width, v1 int32 + var item Tnl_item + var val int64 + _, _, _, _, _, _, _, _, _ = d, def_pad, fmt, item, val, width, v1, v4, v5 + fmt = __ccgo_ts + 1704 + width = int32(2) + def_pad = int32('0') + switch f { + case int32('a'): + if Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_wday) > uint32(6) { + goto string + } + item = int32(ABDAY_1) + (*Ttm)(unsafe.Pointer(tm)).Ftm_wday + goto nl_strcat + case int32('A'): + if Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_wday) > uint32(6) { + goto string + } + item = int32(DAY_1) + (*Ttm)(unsafe.Pointer(tm)).Ftm_wday + goto nl_strcat + case int32('h'): + fallthrough + case int32('b'): + if Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_mon) > uint32(11) { + goto string + } + item = int32(ABMON_1) + (*Ttm)(unsafe.Pointer(tm)).Ftm_mon + goto nl_strcat + case int32('B'): + if Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_mon) > uint32(11) { + goto string + } + item = int32(MON_1) + (*Ttm)(unsafe.Pointer(tm)).Ftm_mon + goto nl_strcat + case int32('c'): + item = int32(D_T_FMT) + goto nl_strftime + case int32('C'): + val = (int64(1900) + int64((*Ttm)(unsafe.Pointer(tm)).Ftm_year)) / int64(100) + goto number + case int32('e'): + def_pad = int32('_') + fallthrough + case int32('d'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_mday) + goto number + case int32('D'): + fmt = __ccgo_ts + 1862 + goto recu_strftime + case int32('F'): + fmt = __ccgo_ts + 1871 + goto recu_strftime + case int32('g'): + fallthrough + case int32('G'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_year) + int64(1900) + if (*Ttm)(unsafe.Pointer(tm)).Ftm_yday < int32(3) && _week_num(tls, tm) != int32(1) { + val = val - 1 + } else { + if (*Ttm)(unsafe.Pointer(tm)).Ftm_yday > int32(360) && _week_num(tls, tm) == int32(1) { + val = val + 1 + } + } + if f == int32('g') { + val = val % int64(100) + } else { + width = int32(4) + } + goto number + case int32('H'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_hour) + goto number + case int32('l'): + def_pad = int32('_') + fallthrough + case int32('I'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_hour) + if !(val != 0) { + val = int64(12) + } else { + if val > int64(12) { + val = val - int64(12) + } + } + goto number + case int32('j'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_yday + int32(1)) + width = int32(3) + goto number + case int32('k'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_hour) + def_pad = int32('_') + goto number + case int32('m'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_mon + int32(1)) + goto number + case int32('M'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_min) + goto number + case int32('n'): + **(**Tsize_t)(__ccgo_up(l)) = uint64(1) + return __ccgo_ts + 398 + case int32('p'): + if (*Ttm)(unsafe.Pointer(tm)).Ftm_hour >= int32(12) { + v1 = int32(PM_STR) + } else { + v1 = int32(AM_STR) + } + item = v1 + goto nl_strcat + case int32('P'): + if (*Ttm)(unsafe.Pointer(tm)).Ftm_hour >= int32(12) { + v1 = int32(PM_STR) + } else { + v1 = int32(AM_STR) + } + item = v1 + fmt = X__nl_langinfo_l(tls, item, loc) + d = s + **(**Tsize_t)(__ccgo_up(l)) = uint64(0) + for { + if !(**(**uint8)(__ccgo_up(fmt)) != 0) { + break + } + v4 = d + d = d + 1 + v5 = fmt + fmt = fmt + 1 + **(**uint8)(__ccgo_up(v4)) = Uint8FromInt32(Xtolower(tls, Int32FromUint8(**(**uint8)(__ccgo_up(v5))))) + goto _3 + _3: + ; + **(**Tsize_t)(__ccgo_up(l)) = **(**Tsize_t)(__ccgo_up(l)) + 1 + } + return s + case int32('r'): + item = int32(T_FMT_AMPM) + goto nl_strftime + case int32('R'): + fmt = __ccgo_ts + 1880 + goto recu_strftime + case int32('s'): + val = X__tm_to_secs(tls, tm) - (*Ttm)(unsafe.Pointer(tm)).F__tm_gmtoff + width = int32(1) + goto number + case int32('S'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_sec) + goto number + case int32('t'): + **(**Tsize_t)(__ccgo_up(l)) = uint64(1) + return __ccgo_ts + 1442 + case int32('T'): + fmt = __ccgo_ts + 1886 + goto recu_strftime + case int32('u'): + if (*Ttm)(unsafe.Pointer(tm)).Ftm_wday != 0 { + v1 = (*Ttm)(unsafe.Pointer(tm)).Ftm_wday + } else { + v1 = int32(7) + } + val = int64(v1) + width = int32(1) + goto number + case int32('U'): + val = Int64FromUint32((Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_yday) + uint32(7) - Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_wday)) / uint32(7)) + goto number + case int32('W'): + val = Int64FromUint32((Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_yday) + uint32(7) - (Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_wday)+uint32(6))%uint32(7)) / uint32(7)) + goto number + case int32('V'): + val = int64(_week_num(tls, tm)) + goto number + case int32('w'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_wday) + width = int32(1) + goto number + case int32('x'): + item = int32(D_FMT) + goto nl_strftime + case int32('X'): + item = int32(T_FMT) + goto nl_strftime + case int32('y'): + val = (int64((*Ttm)(unsafe.Pointer(tm)).Ftm_year) + int64(1900)) % int64(100) + if val < 0 { + val = -val + } + goto number + case int32('Y'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_year) + int64(1900) + if val >= int64(10000) { + **(**Tsize_t)(__ccgo_up(l)) = Uint64FromInt32(Xsnprintf(tls, s, uint64(100), __ccgo_ts+1895, VaList(bp+8, val))) + return s + } + width = int32(4) + goto number + case int32('z'): + if (*Ttm)(unsafe.Pointer(tm)).Ftm_isdst < 0 { + **(**Tsize_t)(__ccgo_up(l)) = uint64(0) + return __ccgo_ts + } + **(**Tsize_t)(__ccgo_up(l)) = Uint64FromInt32(Xsnprintf(tls, s, uint64(100), __ccgo_ts+1901, VaList(bp+8, (*Ttm)(unsafe.Pointer(tm)).F__tm_gmtoff/int64(3600)*int64(100)+(*Ttm)(unsafe.Pointer(tm)).F__tm_gmtoff%int64(3600)/int64(60)))) + return s + case int32('Z'): + if (*Ttm)(unsafe.Pointer(tm)).Ftm_isdst < 0 { + **(**Tsize_t)(__ccgo_up(l)) = uint64(0) + return __ccgo_ts + } + fmt = X__tm_to_tzname(tls, tm) + goto string + case int32('%'): + **(**Tsize_t)(__ccgo_up(l)) = uint64(1) + return __ccgo_ts + 445 + default: + return uintptr(0) + } + goto number +number: + ; + if pad != 0 { + v1 = pad + } else { + v1 = def_pad + } + switch v1 { + case int32('-'): + **(**Tsize_t)(__ccgo_up(l)) = Uint64FromInt32(Xsnprintf(tls, s, uint64(100), __ccgo_ts+1908, VaList(bp+8, val))) + case int32('_'): + **(**Tsize_t)(__ccgo_up(l)) = Uint64FromInt32(Xsnprintf(tls, s, uint64(100), __ccgo_ts+1913, VaList(bp+8, width, val))) + case int32('0'): + fallthrough + default: + **(**Tsize_t)(__ccgo_up(l)) = Uint64FromInt32(Xsnprintf(tls, s, uint64(100), __ccgo_ts+1919, VaList(bp+8, width, val))) + break + } + return s + goto nl_strcat +nl_strcat: + ; + fmt = X__nl_langinfo_l(tls, item, loc) + goto string +string: + ; + **(**Tsize_t)(__ccgo_up(l)) = _strlen(tls, fmt) + return fmt + goto nl_strftime +nl_strftime: + ; + fmt = X__nl_langinfo_l(tls, item, loc) + goto recu_strftime +recu_strftime: + ; + **(**Tsize_t)(__ccgo_up(l)) = X__strftime_l(tls, s, uint64(100), fmt, tm, loc) + if !(**(**Tsize_t)(__ccgo_up(l)) != 0) { + return uintptr(0) + } + return s +} + +func X__strftime_l(tls *TLS, s uintptr, n Tsize_t, f uintptr, tm uintptr, loc Tlocale_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v f=%v tm=%v loc=%v, (%v:)", tls, s, n, f, tm, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(128) + defer tls.Free(128) + var d, l, v2 Tsize_t + var pad, plus, v4 int32 + var t, v3 uintptr + var width uint64 + var v9 bool + var _ /* buf at bp+8 */ [100]uint8 + var _ /* k at bp+0 */ Tsize_t + var _ /* p at bp+112 */ uintptr + _, _, _, _, _, _, _, _, _, _ = d, l, pad, plus, t, width, v2, v3, v4, v9 + l = uint64(0) + for { + if !(l < n) { + break + } + if !(**(**uint8)(__ccgo_up(f)) != 0) { + **(**uint8)(__ccgo_up(s + uintptr(l))) = uint8(0) + return l + } + if Int32FromUint8(**(**uint8)(__ccgo_up(f))) != int32('%') { + v2 = l + l = l + 1 + **(**uint8)(__ccgo_up(s + uintptr(v2))) = **(**uint8)(__ccgo_up(f)) + goto _1 + } + f = f + 1 + pad = 0 + if Int32FromUint8(**(**uint8)(__ccgo_up(f))) == int32('-') || Int32FromUint8(**(**uint8)(__ccgo_up(f))) == int32('_') || Int32FromUint8(**(**uint8)(__ccgo_up(f))) == int32('0') { + v3 = f + f = f + 1 + pad = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } + v4 = BoolInt32(Int32FromUint8(**(**uint8)(__ccgo_up(f))) == Int32FromUint8('+')) + plus = v4 + if v4 != 0 { + f = f + 1 + } + if BoolInt32(uint32(**(**uint8)(__ccgo_up(f)))-uint32('0') < uint32(10)) != 0 { + width = Xstrtoul(tls, f, bp+112, int32(10)) + } else { + width = uint64(0) + **(**uintptr)(__ccgo_up(bp + 112)) = f + } + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 112))))) == int32('C') || Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 112))))) == int32('F') || Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 112))))) == int32('G') || Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 112))))) == int32('Y') { + if !(width != 0) && **(**uintptr)(__ccgo_up(bp + 112)) != f { + width = uint64(1) + } + } else { + width = uint64(0) + } + f = **(**uintptr)(__ccgo_up(bp + 112)) + if Int32FromUint8(**(**uint8)(__ccgo_up(f))) == int32('E') || Int32FromUint8(**(**uint8)(__ccgo_up(f))) == int32('O') { + f = f + 1 + } + t = X__strftime_fmt_1(tls, bp+8, bp, Int32FromUint8(**(**uint8)(__ccgo_up(f))), tm, loc, pad) + if !(t != 0) { + break + } + if width != 0 { + /* Trim off any sign and leading zeros, then + * count remaining digits to determine behavior + * for the + flag. */ + if Int32FromUint8(**(**uint8)(__ccgo_up(t))) == int32('+') || Int32FromUint8(**(**uint8)(__ccgo_up(t))) == int32('-') { + t = t + 1 + **(**Tsize_t)(__ccgo_up(bp)) = **(**Tsize_t)(__ccgo_up(bp)) - 1 + } + for { + if !(Int32FromUint8(**(**uint8)(__ccgo_up(t))) == int32('0') && Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(t + 1)))-int32('0')) < uint32(10)) { + break + } + goto _5 + _5: + ; + t = t + 1 + **(**Tsize_t)(__ccgo_up(bp)) = **(**Tsize_t)(__ccgo_up(bp)) - 1 + } + if width < **(**Tsize_t)(__ccgo_up(bp)) { + width = **(**Tsize_t)(__ccgo_up(bp)) + } + d = uint64(0) + for { + if !(Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(t + uintptr(d))))-int32('0')) < uint32(10)) { + break + } + goto _6 + _6: + ; + d = d + 1 + } + if (*Ttm)(unsafe.Pointer(tm)).Ftm_year < -int32(1900) { + v2 = l + l = l + 1 + **(**uint8)(__ccgo_up(s + uintptr(v2))) = uint8('-') + width = width - 1 + } else { + if v9 = plus != 0; v9 { + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 112))))) == int32('C') { + v4 = int32(3) + } else { + v4 = int32(5) + } + } + if v9 && d+(width-**(**Tsize_t)(__ccgo_up(bp))) >= Uint64FromInt32(v4) { + v2 = l + l = l + 1 + **(**uint8)(__ccgo_up(s + uintptr(v2))) = uint8('+') + width = width - 1 + } + } + for { + if !(width > **(**Tsize_t)(__ccgo_up(bp)) && l < n) { + break + } + v2 = l + l = l + 1 + **(**uint8)(__ccgo_up(s + uintptr(v2))) = uint8('0') + goto _11 + _11: + ; + width = width - 1 + } + } + if **(**Tsize_t)(__ccgo_up(bp)) > n-l { + **(**Tsize_t)(__ccgo_up(bp)) = n - l + } + Xmemcpy(tls, s+uintptr(l), t, **(**Tsize_t)(__ccgo_up(bp))) + l = l + **(**Tsize_t)(__ccgo_up(bp)) + goto _1 + _1: + ; + f = f + 1 + } + if n != 0 { + if l == n { + l = n - uint64(1) + } + **(**uint8)(__ccgo_up(s + uintptr(l))) = uint8(0) + } + return uint64(0) +} + +func Xstrftime(tls *TLS, s uintptr, n Tsize_t, f uintptr, tm uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v f=%v tm=%v, (%v:)", tls, s, n, f, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__strftime_l(tls, s, n, f, tm, (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale) +} + +func Xstrftime_l(tls *TLS, s uintptr, n Tsize_t, f uintptr, tm uintptr, loc Tlocale_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v f=%v tm=%v loc=%v, (%v:)", tls, s, n, f, tm, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__strftime_l(tls, s, n, f, tm, loc) +} + +func Xstrptime(tls *TLS, s uintptr, f uintptr, tm uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v f=%v tm=%v, (%v:)", tls, s, f, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var adj, i, min, neg, range1, w, want_century, v1, v2, v5, v6 int32 + var dest, ex, v9 uintptr + var len1 Tsize_t + var v8 bool + var _ /* century at bp+4 */ int32 + var _ /* dummy at bp+0 */ int32 + var _ /* new_f at bp+16 */ uintptr + var _ /* relyear at bp+8 */ int32 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = adj, dest, ex, i, len1, min, neg, range1, w, want_century, v1, v2, v5, v6, v8, v9 + want_century = 0 + **(**int32)(__ccgo_up(bp + 4)) = 0 + **(**int32)(__ccgo_up(bp + 8)) = 0 + for **(**uint8)(__ccgo_up(f)) != 0 { + if Int32FromUint8(**(**uint8)(__ccgo_up(f))) != int32('%') { + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(f))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _3 + _3: + if v2 != 0 { + for { + if v8 = **(**uint8)(__ccgo_up(s)) != 0; v8 { + v5 = Int32FromUint8(**(**uint8)(__ccgo_up(s))) + v6 = BoolInt32(v5 == int32(' ') || Uint32FromInt32(v5)-uint32('\t') < uint32(5)) + goto _7 + _7: + } + if !(v8 && v6 != 0) { + break + } + goto _4 + _4: + ; + s = s + 1 + } + } else { + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) != Int32FromUint8(**(**uint8)(__ccgo_up(f))) { + return uintptr(0) + } else { + s = s + 1 + } + } + f = f + 1 + continue + } + f = f + 1 + if Int32FromUint8(**(**uint8)(__ccgo_up(f))) == int32('+') { + f = f + 1 + } + if BoolInt32(uint32(**(**uint8)(__ccgo_up(f)))-uint32('0') < uint32(10)) != 0 { + w = Int32FromUint64(Xstrtoul(tls, f, bp+16, int32(10))) + f = **(**uintptr)(__ccgo_up(bp + 16)) + } else { + w = -int32(1) + } + adj = 0 + v9 = f + f = f + 1 + switch Int32FromUint8(**(**uint8)(__ccgo_up(v9))) { + case int32('A'): + goto _10 + case int32('a'): + goto _11 + case int32('h'): + goto _12 + case int32('B'): + goto _13 + case int32('b'): + goto _14 + case int32('c'): + goto _15 + case int32('C'): + goto _16 + case int32('e'): + goto _17 + case int32('d'): + goto _18 + case int32('D'): + goto _19 + case int32('H'): + goto _20 + case int32('I'): + goto _21 + case int32('j'): + goto _22 + case int32('m'): + goto _23 + case int32('M'): + goto _24 + case int32('t'): + goto _25 + case int32('n'): + goto _26 + case int32('p'): + goto _27 + case int32('r'): + goto _28 + case int32('R'): + goto _29 + case int32('S'): + goto _30 + case int32('T'): + goto _31 + case int32('W'): + goto _32 + case int32('U'): + goto _33 + case int32('w'): + goto _34 + case int32('x'): + goto _35 + case int32('X'): + goto _36 + case int32('y'): + goto _37 + case int32('Y'): + goto _38 + case int32('%'): + goto _39 + default: + goto _40 + } + goto _41 + _11: + ; + _10: + ; + dest = tm + 24 + min = int32(ABDAY_1) + range1 = int32(7) + goto symbolic_range + _14: + ; + _13: + ; + _12: + ; + dest = tm + 16 + min = int32(ABMON_1) + range1 = int32(12) + goto symbolic_range + _15: + ; + s = Xstrptime(tls, s, Xnl_langinfo(tls, int32(D_T_FMT)), tm) + if !(s != 0) { + return uintptr(0) + } + goto _41 + _16: + ; + dest = bp + 4 + if w < 0 { + w = int32(2) + } + want_century = want_century | int32(2) + goto numeric_digits + _18: + ; + _17: + ; + dest = tm + 12 + min = int32(1) + range1 = int32(31) + goto numeric_range + _19: + ; + s = Xstrptime(tls, s, __ccgo_ts+1862, tm) + if !(s != 0) { + return uintptr(0) + } + goto _41 + _20: + ; + dest = tm + 8 + min = 0 + range1 = int32(24) + goto numeric_range + _21: + ; + dest = tm + 8 + min = int32(1) + range1 = int32(12) + goto numeric_range + _22: + ; + dest = tm + 28 + min = int32(1) + range1 = int32(366) + adj = int32(1) + goto numeric_range + _23: + ; + dest = tm + 16 + min = int32(1) + range1 = int32(12) + adj = int32(1) + goto numeric_range + _24: + ; + dest = tm + 4 + min = 0 + range1 = int32(60) + goto numeric_range + _26: + ; + _25: + ; + _44: + ; + if v8 = **(**uint8)(__ccgo_up(s)) != 0; v8 { + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(s))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _47 + _47: + } + if !(v8 && v2 != 0) { + goto _42 + } + goto _43 + _43: + ; + s = s + 1 + goto _44 + goto _42 + _42: + ; + goto _41 + _27: + ; + ex = Xnl_langinfo(tls, int32(AM_STR)) + len1 = _strlen(tls, ex) + if !(Xstrncasecmp(tls, s, ex, len1) != 0) { + **(**int32)(__ccgo_up(tm + 8)) %= int32(12) + s = s + uintptr(len1) + goto _41 + } + ex = Xnl_langinfo(tls, int32(PM_STR)) + len1 = _strlen(tls, ex) + if !(Xstrncasecmp(tls, s, ex, len1) != 0) { + **(**int32)(__ccgo_up(tm + 8)) %= int32(12) + **(**int32)(__ccgo_up(tm + 8)) += int32(12) + s = s + uintptr(len1) + goto _41 + } + return uintptr(0) + _28: + ; + s = Xstrptime(tls, s, Xnl_langinfo(tls, int32(T_FMT_AMPM)), tm) + if !(s != 0) { + return uintptr(0) + } + goto _41 + _29: + ; + s = Xstrptime(tls, s, __ccgo_ts+1880, tm) + if !(s != 0) { + return uintptr(0) + } + goto _41 + _30: + ; + dest = tm + min = 0 + range1 = int32(61) + goto numeric_range + _31: + ; + s = Xstrptime(tls, s, __ccgo_ts+1886, tm) + if !(s != 0) { + return uintptr(0) + } + goto _41 + _33: + ; + _32: + ; + /* Throw away result, for now. (FIXME?) */ + dest = bp + min = 0 + range1 = int32(54) + goto numeric_range + _34: + ; + dest = tm + 24 + min = 0 + range1 = int32(7) + goto numeric_range + _35: + ; + s = Xstrptime(tls, s, Xnl_langinfo(tls, int32(D_FMT)), tm) + if !(s != 0) { + return uintptr(0) + } + goto _41 + _36: + ; + s = Xstrptime(tls, s, Xnl_langinfo(tls, int32(T_FMT)), tm) + if !(s != 0) { + return uintptr(0) + } + goto _41 + _37: + ; + dest = bp + 8 + w = int32(2) + want_century = want_century | int32(1) + goto numeric_digits + _38: + ; + dest = tm + 20 + if w < 0 { + w = int32(4) + } + adj = int32(1900) + want_century = 0 + goto numeric_digits + _39: + ; + v9 = s + s = s + 1 + if Int32FromUint8(**(**uint8)(__ccgo_up(v9))) != int32('%') { + return uintptr(0) + } + goto _41 + _40: + ; + return uintptr(0) + goto numeric_range + numeric_range: + ; + if !(BoolInt32(uint32(**(**uint8)(__ccgo_up(s)))-Uint32FromUint8('0') < Uint32FromInt32(10)) != 0) { + return uintptr(0) + } + **(**int32)(__ccgo_up(dest)) = 0 + i = int32(1) + for { + if !(i <= min+range1 && BoolInt32(uint32(**(**uint8)(__ccgo_up(s)))-uint32('0') < uint32(10)) != 0) { + break + } + v9 = s + s = s + 1 + **(**int32)(__ccgo_up(dest)) = **(**int32)(__ccgo_up(dest))*int32(10) + Int32FromUint8(**(**uint8)(__ccgo_up(v9))) - int32('0') + goto _50 + _50: + ; + i = i * int32(10) + } + if Uint32FromInt32(**(**int32)(__ccgo_up(dest))-min) >= Uint32FromInt32(range1) { + return uintptr(0) + } + **(**int32)(__ccgo_up(dest)) -= adj + switch int64(dest) - int64(tm) { + case Int64FromUint64(uint64(UintptrFromInt32(0) + 28)): + } + goto update + goto numeric_digits + numeric_digits: + ; + neg = 0 + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('+') { + s = s + 1 + } else { + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('-') { + neg = int32(1) + s = s + 1 + } + } + if !(BoolInt32(uint32(**(**uint8)(__ccgo_up(s)))-Uint32FromUint8('0') < Uint32FromInt32(10)) != 0) { + return uintptr(0) + } + v1 = Int32FromInt32(0) + i = v1 + **(**int32)(__ccgo_up(dest)) = v1 + for { + if !(i < w && BoolInt32(uint32(**(**uint8)(__ccgo_up(s)))-uint32('0') < uint32(10)) != 0) { + break + } + v9 = s + s = s + 1 + **(**int32)(__ccgo_up(dest)) = **(**int32)(__ccgo_up(dest))*int32(10) + Int32FromUint8(**(**uint8)(__ccgo_up(v9))) - int32('0') + goto _52 + _52: + ; + i = i + 1 + } + if neg != 0 { + **(**int32)(__ccgo_up(dest)) = -**(**int32)(__ccgo_up(dest)) + } + **(**int32)(__ccgo_up(dest)) -= adj + goto update + goto symbolic_range + symbolic_range: + ; + i = int32(2)*range1 - int32(1) + for { + if !(i >= 0) { + break + } + ex = Xnl_langinfo(tls, min+i) + len1 = _strlen(tls, ex) + if Xstrncasecmp(tls, s, ex, len1) != 0 { + goto _55 + } + s = s + uintptr(len1) + **(**int32)(__ccgo_up(dest)) = i % range1 + break + goto _55 + _55: + ; + i = i - 1 + } + if i < 0 { + return uintptr(0) + } + goto update + goto update + update: + ; + //FIXME + _41: + } + if want_century != 0 { + (*Ttm)(unsafe.Pointer(tm)).Ftm_year = **(**int32)(__ccgo_up(bp + 8)) + if want_century&int32(2) != 0 { + **(**int32)(__ccgo_up(tm + 20)) += **(**int32)(__ccgo_up(bp + 4))*int32(100) - int32(1900) + } else { + if (*Ttm)(unsafe.Pointer(tm)).Ftm_year <= int32(68) { + **(**int32)(__ccgo_up(tm + 20)) += int32(100) + } + } + } + return s +} + +func Xtime(tls *TLS, t uintptr) (r Ttime_t) { + if __ccgo_strace { + trc("tls=%v t=%v, (%v:)", tls, t, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* ts at bp+0 */ Ttimespec + X__clock_gettime(tls, CLOCK_REALTIME, bp) + if t != 0 { + **(**Ttime_t)(__ccgo_up(t)) = (**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec + } + return (**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec +} + +func Xtimegm(tls *TLS, tm uintptr) (r Ttime_t) { + if __ccgo_strace { + trc("tls=%v tm=%v, (%v:)", tls, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var t int64 + var _ /* new at bp+0 */ Ttm1 + _ = t + t = X__tm_to_secs(tls, tm) + if X__secs_to_tm(tls, t, bp) < 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOVERFLOW) + return int64(-int32(1)) + } + **(**Ttm1)(__ccgo_up(tm)) = **(**Ttm1)(__ccgo_up(bp)) + (*Ttm1)(unsafe.Pointer(tm)).Ftm_isdst = 0 + (*Ttm1)(unsafe.Pointer(tm)).Ftm_gmtoff = 0 + (*Ttm1)(unsafe.Pointer(tm)).Ftm_zone = uintptr(unsafe.Pointer(&X__utc)) + return t +} + +func Xtimer_delete(tls *TLS, t Ttimer_t) (r int32) { + if __ccgo_strace { + trc("tls=%v t=%v, (%v:)", tls, t, origin(2)) + defer func() { trc("-> %v", r) }() + } + var td Tpthread_t + _ = td + if int64(t) < 0 { + td = uintptr(uint64(t) << Int32FromInt32(1)) + // __asm__ __volatile__ ("sync" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 40, __ccgo_ts+1926) + AtomicStorePInt32(td+148, AtomicLoadPInt32(td+148)|(-Int32FromInt32(1)-Int32FromInt32(0x7fffffff))) + // __asm__ __volatile__ ("sync" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 40, __ccgo_ts+1926) + X__syscall2(tls, int64(SYS_tkill), int64((*t__pthread)(unsafe.Pointer(td)).Ftid), int64(Int32FromInt32(SIGTIMER))) + return 0 + } + return int32(X__syscall1(tls, int64(SYS_timer_delete), int64(t))) +} + +func Xtimer_getoverrun(tls *TLS, t Ttimer_t) (r int32) { + if __ccgo_strace { + trc("tls=%v t=%v, (%v:)", tls, t, origin(2)) + defer func() { trc("-> %v", r) }() + } + var td Tpthread_t + _ = td + if int64(t) < 0 { + td = uintptr(uint64(t) << Int32FromInt32(1)) + t = uintptr(Uint64FromInt32(AtomicLoadPInt32(td+148) & Int32FromInt32(INT_MAX))) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_timer_getoverrun), int64(t))))) +} + +func Xtimer_gettime(tls *TLS, t Ttimer_t, val uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v t=%v val=%v, (%v:)", tls, t, val, origin(2)) + defer func() { trc("-> %v", r) }() + } + var td Tpthread_t + _ = td + if int64(t) < 0 { + td = uintptr(uint64(t) << Int32FromInt32(1)) + t = uintptr(Uint64FromInt32(AtomicLoadPInt32(td+148) & Int32FromInt32(INT_MAX))) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_timer_gettime), int64(t), int64(val))))) +} + +func Xtimer_settime(tls *TLS, t Ttimer_t, flags int32, val uintptr, old uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v t=%v flags=%v val=%v old=%v, (%v:)", tls, t, flags, val, old, origin(2)) + defer func() { trc("-> %v", r) }() + } + var td Tpthread_t + _ = td + if int64(t) < 0 { + td = uintptr(uint64(t) << Int32FromInt32(1)) + t = uintptr(Uint64FromInt32(AtomicLoadPInt32(td+148) & Int32FromInt32(INT_MAX))) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_timer_settime), int64(t), int64(flags), int64(val), int64(old))))) +} + +type Ttms = struct { + Ftms_utime Tclock_t + Ftms_stime Tclock_t + Ftms_cutime Tclock_t + Ftms_cstime Tclock_t +} + +func Xtimes(tls *TLS, tms uintptr) (r Tclock_t) { + if __ccgo_strace { + trc("tls=%v tms=%v, (%v:)", tls, tms, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall1(tls, int64(SYS_times), int64(tms)) +} + +// C documentation +// +// /* There is no other implemented value than TIME_UTC; all other values +// * are considered erroneous. */ +func Xtimespec_get(tls *TLS, ts uintptr, base int32) (r int32) { + if __ccgo_strace { + trc("tls=%v ts=%v base=%v, (%v:)", tls, ts, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret, v1 int32 + _, _ = ret, v1 + if base != int32(TIME_UTC) { + return 0 + } + ret = X__clock_gettime(tls, CLOCK_REALTIME, ts) + if ret < 0 { + v1 = 0 + } else { + v1 = base + } + return v1 +} + +type Tutimbuf = struct { + Factime Ttime_t + Fmodtime Ttime_t +} + +func Xutime(tls *TLS, path uintptr, times uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v times=%v, (%v:)", tls, path, times, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var v1 uintptr + _ = v1 + if times != 0 { + *(*[2]Ttimespec)(unsafe.Pointer(bp)) = [2]Ttimespec{ + 0: { + Ftv_sec: (*Tutimbuf)(unsafe.Pointer(times)).Factime, + }, + 1: { + Ftv_sec: (*Tutimbuf)(unsafe.Pointer(times)).Fmodtime, + }, + } + v1 = bp + } else { + v1 = uintptr(0) + } + return Xutimensat(tls, -int32(100), path, v1, 0) +} + +func X__wcsftime_l(tls *TLS, s uintptr, n Tsize_t, f uintptr, tm uintptr, loc Tlocale_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v f=%v tm=%v loc=%v, (%v:)", tls, s, n, f, tm, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(528) + defer tls.Free(528) + var l, v2 Tsize_t + var pad, plus, v4 int32 + var t, t_mb, v3 uintptr + var width uint64 + var _ /* buf at bp+8 */ [100]uint8 + var _ /* k at bp+0 */ Tsize_t + var _ /* p at bp+512 */ uintptr + var _ /* wbuf at bp+108 */ [100]Twchar_t + _, _, _, _, _, _, _, _, _ = l, pad, plus, t, t_mb, width, v2, v3, v4 + l = uint64(0) + for { + if !(l < n) { + break + } + if !(**(**Twchar_t)(__ccgo_up(f)) != 0) { + **(**Twchar_t)(__ccgo_up(s + uintptr(l)*4)) = 0 + return l + } + if **(**Twchar_t)(__ccgo_up(f)) != int32('%') { + v2 = l + l = l + 1 + **(**Twchar_t)(__ccgo_up(s + uintptr(v2)*4)) = **(**Twchar_t)(__ccgo_up(f)) + goto _1 + } + f += 4 + pad = 0 + if **(**Twchar_t)(__ccgo_up(f)) == int32('-') || **(**Twchar_t)(__ccgo_up(f)) == int32('_') || **(**Twchar_t)(__ccgo_up(f)) == int32('0') { + v3 = f + f += 4 + pad = **(**Twchar_t)(__ccgo_up(v3)) + } + v4 = BoolInt32(**(**Twchar_t)(__ccgo_up(f)) == Int32FromUint8('+')) + plus = v4 + if v4 != 0 { + f += 4 + } + width = Xwcstoul(tls, f, bp+512, int32(10)) + if **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 512)))) == int32('C') || **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 512)))) == int32('F') || **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 512)))) == int32('G') || **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 512)))) == int32('Y') { + if !(width != 0) && **(**uintptr)(__ccgo_up(bp + 512)) != f { + width = uint64(1) + } + } else { + width = uint64(0) + } + f = **(**uintptr)(__ccgo_up(bp + 512)) + if **(**Twchar_t)(__ccgo_up(f)) == int32('E') || **(**Twchar_t)(__ccgo_up(f)) == int32('O') { + f += 4 + } + t_mb = X__strftime_fmt_1(tls, bp+8, bp, **(**Twchar_t)(__ccgo_up(f)), tm, loc, pad) + if !(t_mb != 0) { + break + } + **(**Tsize_t)(__ccgo_up(bp)) = Xmbstowcs(tls, bp+108, t_mb, Uint64FromInt64(400)/Uint64FromInt64(4)) + if **(**Tsize_t)(__ccgo_up(bp)) == Uint64FromInt32(-Int32FromInt32(1)) { + return uint64(0) + } + t = bp + 108 + if width != 0 { + for { + if !(**(**Twchar_t)(__ccgo_up(t)) == int32('+') || **(**Twchar_t)(__ccgo_up(t)) == int32('-') || **(**Twchar_t)(__ccgo_up(t)) == int32('0') && **(**Twchar_t)(__ccgo_up(t + 1*4)) != 0) { + break + } + goto _5 + _5: + ; + t += 4 + **(**Tsize_t)(__ccgo_up(bp)) = **(**Tsize_t)(__ccgo_up(bp)) - 1 + } + width = width - 1 + if plus != 0 && (*Ttm)(unsafe.Pointer(tm)).Ftm_year >= Int32FromInt32(10000)-Int32FromInt32(1900) { + v2 = l + l = l + 1 + **(**Twchar_t)(__ccgo_up(s + uintptr(v2)*4)) = int32('+') + } else { + if (*Ttm)(unsafe.Pointer(tm)).Ftm_year < -int32(1900) { + v2 = l + l = l + 1 + **(**Twchar_t)(__ccgo_up(s + uintptr(v2)*4)) = int32('-') + } else { + width = width + 1 + } + } + for { + if !(width > **(**Tsize_t)(__ccgo_up(bp)) && l < n) { + break + } + v2 = l + l = l + 1 + **(**Twchar_t)(__ccgo_up(s + uintptr(v2)*4)) = int32('0') + goto _8 + _8: + ; + width = width - 1 + } + } + if **(**Tsize_t)(__ccgo_up(bp)) >= n-l { + **(**Tsize_t)(__ccgo_up(bp)) = n - l + } + Xwmemcpy(tls, s+uintptr(l)*4, t, **(**Tsize_t)(__ccgo_up(bp))) + l = l + **(**Tsize_t)(__ccgo_up(bp)) + goto _1 + _1: + ; + f += 4 + } + if n != 0 { + if l == n { + l = n - uint64(1) + } + **(**Twchar_t)(__ccgo_up(s + uintptr(l)*4)) = 0 + } + return uint64(0) +} + +func Xwcsftime(tls *TLS, wcs uintptr, n Tsize_t, f uintptr, tm uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v wcs=%v n=%v f=%v tm=%v, (%v:)", tls, wcs, n, f, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__wcsftime_l(tls, wcs, n, f, tm, (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale) +} + +func Xwcsftime_l(tls *TLS, s uintptr, n Tsize_t, f uintptr, tm uintptr, loc Tlocale_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v f=%v tm=%v loc=%v, (%v:)", tls, s, n, f, tm, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__wcsftime_l(tls, s, n, f, tm, loc) +} + +func X_exit(tls *TLS, status int32) { + if __ccgo_strace { + trc("tls=%v status=%v, (%v:)", tls, status, origin(2)) + } + X_Exit(tls, status) +} + +func Xaccess(tls *TLS, filename uintptr, amode int32) (r int32) { + if __ccgo_strace { + trc("tls=%v filename=%v amode=%v, (%v:)", tls, filename, amode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_access), int64(filename), int64(amode))))) +} + +func Xacct(tls *TLS, filename uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v filename=%v, (%v:)", tls, filename, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_acct), int64(filename))))) +} + +func Xalarm(tls *TLS, seconds uint32) (r uint32) { + if __ccgo_strace { + trc("tls=%v seconds=%v, (%v:)", tls, seconds, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var _ /* it at bp+0 */ Titimerval + var _ /* old at bp+32 */ Titimerval + **(**Titimerval)(__ccgo_up(bp)) = Titimerval{ + Fit_value: Ttimeval{ + Ftv_sec: Int64FromUint32(seconds), + }, + } + **(**Titimerval)(__ccgo_up(bp + 32)) = Titimerval{} + Xsetitimer(tls, ITIMER_REAL, bp, bp+32) + return Uint32FromInt64((**(**Titimerval)(__ccgo_up(bp + 32))).Fit_value.Ftv_sec + BoolInt64(!!((**(**Titimerval)(__ccgo_up(bp + 32))).Fit_value.Ftv_usec != 0))) +} + +func Xchdir(tls *TLS, path uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v, (%v:)", tls, path, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_chdir), int64(path))))) +} + +func Xchown(tls *TLS, path uintptr, uid Tuid_t, gid Tgid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v uid=%v gid=%v, (%v:)", tls, path, uid, gid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_chown), int64(path), Int64FromUint32(uid), Int64FromUint32(gid))))) +} + +func _dummy12(tls *TLS, fd int32) (r int32) { + return fd +} + +func Xclose(tls *TLS, fd int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + fd = _dummy12(tls, fd) + r = int32(___syscall_cp(tls, int64(SYS_close), int64(fd), 0, 0, 0, 0, 0)) + if r == -int32(EINTR) { + r = 0 + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func Xctermid(tls *TLS, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 uintptr + _ = v1 + if s != 0 { + v1 = Xstrcpy(tls, s, __ccgo_ts+389) + } else { + v1 = __ccgo_ts + 389 + } + return v1 +} + +func Xdup(tls *TLS, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_dup), int64(fd))))) +} + +func Xdup2(tls *TLS, old int32, new1 int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v old=%v new1=%v, (%v:)", tls, old, new1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v1 int32 + _, _ = r, v1 + for { + v1 = int32(X__syscall2(tls, int64(SYS_dup2), int64(old), int64(new1))) + r = v1 + if !(v1 == -int32(EBUSY)) { + break + } + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func X__dup3(tls *TLS, old int32, new1 int32, flags int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v old=%v new1=%v flags=%v, (%v:)", tls, old, new1, flags, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v1 int32 + _, _ = r, v1 + if old == new1 { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL)))) + } + if flags != 0 { + for { + v1 = int32(X__syscall3(tls, int64(SYS_dup3), int64(old), int64(new1), int64(flags))) + r = v1 + if !(v1 == -int32(EBUSY)) { + break + } + } + if r != -int32(ENOSYS) { + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) + } + if flags & ^Int32FromInt32(O_CLOEXEC) != 0 { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL)))) + } + } + for { + v1 = int32(X__syscall2(tls, int64(SYS_dup2), int64(old), int64(new1))) + r = v1 + if !(v1 == -int32(EBUSY)) { + break + } + } + if r >= 0 && flags&int32(O_CLOEXEC) != 0 { + X__syscall3(tls, int64(SYS_fcntl), int64(new1), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func Xdup3(tls *TLS, old int32, new1 int32, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v old=%v new1=%v flags=%v, (%v:)", tls, old, new1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__dup3(tls, old, new1, flags) +} + +type Tctx1 = struct { + Ffd int32 + Ffilename uintptr + Famode int32 + Fp int32 +} + +func _checker(tls *TLS, p uintptr) (r int32) { + bp := tls.Alloc(16) + defer tls.Free(16) + var c uintptr + var _ /* ret at bp+0 */ int32 + _ = c + c = p + if X__syscall2(tls, int64(SYS_setregid), X__syscall0(tls, int64(SYS_getegid)), int64(-Int32FromInt32(1))) != 0 || X__syscall2(tls, int64(SYS_setreuid), X__syscall0(tls, int64(SYS_geteuid)), int64(-Int32FromInt32(1))) != 0 { + X__syscall1(tls, int64(SYS_exit), int64(Int32FromInt32(1))) + } + **(**int32)(__ccgo_up(bp)) = int32(X__syscall4(tls, int64(SYS_faccessat), int64((*Tctx1)(unsafe.Pointer(c)).Ffd), int64((*Tctx1)(unsafe.Pointer(c)).Ffilename), int64((*Tctx1)(unsafe.Pointer(c)).Famode), int64(Int32FromInt32(0)))) + X__syscall3(tls, int64(SYS_write), int64((*Tctx1)(unsafe.Pointer(c)).Fp), int64(bp), Int64FromUint64(Uint64FromInt64(4))) + return 0 +} + +func Xfaccessat(tls *TLS, fd int32, filename uintptr, amode int32, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v filename=%v amode=%v flag=%v, (%v:)", tls, fd, filename, amode, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret int32 + _ = ret + if flag != 0 { + ret = int32(X__syscall4(tls, int64(SYS_faccessat2), int64(fd), int64(filename), int64(amode), int64(flag))) + if ret != -int32(ENOSYS) { + return int32(X__syscall_ret(tls, Uint64FromInt32(ret))) + } + } + if flag & ^Int32FromInt32(AT_EACCESS) != 0 { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL)))) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_faccessat), int64(fd), int64(filename), int64(amode))))) +} + +func Xfchdir(tls *TLS, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var ret int32 + var _ /* buf at bp+0 */ [27]uint8 + _ = ret + ret = int32(X__syscall1(tls, int64(SYS_fchdir), int64(fd))) + if ret != -int32(EBADF) || X__syscall2(tls, int64(SYS_fcntl), int64(fd), int64(Int32FromInt32(F_GETFD))) < 0 { + return int32(X__syscall_ret(tls, Uint64FromInt32(ret))) + } + X__procfdname(tls, bp, Uint32FromInt32(fd)) + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_chdir), int64(bp))))) +} + +func Xfchown(tls *TLS, fd int32, uid Tuid_t, gid Tgid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v uid=%v gid=%v, (%v:)", tls, fd, uid, gid, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var ret int32 + var _ /* buf at bp+0 */ [27]uint8 + _ = ret + ret = int32(X__syscall3(tls, int64(SYS_fchown), int64(fd), Int64FromUint32(uid), Int64FromUint32(gid))) + if ret != -int32(EBADF) || X__syscall2(tls, int64(SYS_fcntl), int64(fd), int64(Int32FromInt32(F_GETFD))) < 0 { + return int32(X__syscall_ret(tls, Uint64FromInt32(ret))) + } + X__procfdname(tls, bp, Uint32FromInt32(fd)) + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_chown), int64(bp), Int64FromUint32(uid), Int64FromUint32(gid))))) +} + +func Xfchownat(tls *TLS, fd int32, path uintptr, uid Tuid_t, gid Tgid_t, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v path=%v uid=%v gid=%v flag=%v, (%v:)", tls, fd, path, uid, gid, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_fchownat), int64(fd), int64(path), Int64FromUint32(uid), Int64FromUint32(gid), int64(flag))))) +} + +func Xfdatasync(tls *TLS, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_fdatasync), int64(fd), 0, 0, 0, 0, 0)))) +} + +func Xfsync(tls *TLS, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_fsync), int64(fd), 0, 0, 0, 0, 0)))) +} + +func Xftruncate(tls *TLS, fd int32, length Toff_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v length=%v, (%v:)", tls, fd, length, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_ftruncate), int64(fd), length)))) +} + +func Xgetcwd(tls *TLS, buf uintptr, size Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v buf=%v size=%v, (%v:)", tls, buf, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret int64 + var tmp, v3 uintptr + var v1 t__predefined_size_t + var v2 int32 + _, _, _, _, _ = ret, tmp, v1, v2, v3 + defer func() { Xrealloc(tls, tmp, 0) }() + if buf != 0 { + v2 = int32(1) + } else { + v2 = int32(PATH_MAX) + } + v1 = Uint64FromInt32(v2) + tmp = Xrealloc(tls, tmp, v1) + if !(buf != 0) { + buf = tmp + size = v1 + } else { + if !(size != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(0) + } + } + ret = X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_getcwd), int64(buf), Int64FromUint64(size)))) + if ret < 0 { + return uintptr(0) + } + if ret == 0 || Int32FromUint8(**(**uint8)(__ccgo_up(buf))) != int32('/') { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOENT) + return uintptr(0) + } + if buf == tmp { + v3 = Xstrdup(tls, buf) + } else { + v3 = buf + } + return v3 +} + +func Xgetegid(tls *TLS) (r Tgid_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Uint32FromInt64(X__syscall0(tls, int64(SYS_getegid))) +} + +func Xgeteuid(tls *TLS) (r Tuid_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Uint32FromInt64(X__syscall0(tls, int64(SYS_geteuid))) +} + +func Xgetgid(tls *TLS) (r Tgid_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Uint32FromInt64(X__syscall0(tls, int64(SYS_getgid))) +} + +func Xgetgroups(tls *TLS, count int32, list uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v count=%v list=%v, (%v:)", tls, count, list, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_getgroups), int64(count), int64(list))))) +} + +func Xgethostname(tls *TLS, name uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v len1=%v, (%v:)", tls, name, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(400) + defer tls.Free(400) + var i Tsize_t + var v2 uint8 + var v3 bool + var _ /* uts at bp+0 */ Tutsname1 + _, _, _ = i, v2, v3 + if Xuname(tls, bp) != 0 { + return -int32(1) + } + if len1 > uint64(65) { + len1 = uint64(65) + } + i = uint64(0) + for { + if v3 = i < len1; v3 { + v2 = **(**uint8)(__ccgo_up(bp + 65 + uintptr(i))) + **(**uint8)(__ccgo_up(name + uintptr(i))) = v2 + } + if !(v3 && v2 != 0) { + break + } + goto _1 + _1: + ; + i = i + 1 + } + if i != 0 && i == len1 { + **(**uint8)(__ccgo_up(name + uintptr(i-uint64(1)))) = uint8(0) + } + return 0 +} + +func Xgetlogin(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetenv(tls, __ccgo_ts+1939) +} + +func Xgetlogin_r(tls *TLS, name uintptr, size Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v size=%v, (%v:)", tls, name, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + var logname uintptr + _ = logname + logname = Xgetlogin(tls) + if !(logname != 0) { + return int32(ENXIO) + } /* or...? */ + if _strlen(tls, logname) >= size { + return int32(ERANGE) + } + Xstrcpy(tls, name, logname) + return 0 +} + +func Xgetpgid(tls *TLS, pid Tpid_t) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v pid=%v, (%v:)", tls, pid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_getpgid), int64(pid))))) +} + +func Xgetpgrp(tls *TLS) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall1(tls, int64(SYS_getpgid), int64(Int32FromInt32(0)))) +} + +func Xgetpid(tls *TLS) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall0(tls, int64(SYS_getpid))) +} + +func Xgetppid(tls *TLS) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall0(tls, int64(SYS_getppid))) +} + +func Xgetsid(tls *TLS, pid Tpid_t) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v pid=%v, (%v:)", tls, pid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_getsid), int64(pid))))) +} + +func Xgetuid(tls *TLS) (r Tuid_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Uint32FromInt64(X__syscall0(tls, int64(SYS_getuid))) +} + +func Xisatty(tls *TLS, fd int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var r uint64 + var _ /* wsz at bp+0 */ Twinsize + _ = r + r = Uint64FromInt64(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_ioctl), int64(fd), Int64FromUint64(uint64(Uint32FromUint32(2)< %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_lchown), int64(path), Int64FromUint32(uid), Int64FromUint32(gid))))) +} + +func Xlink(tls *TLS, existing uintptr, new1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v existing=%v new1=%v, (%v:)", tls, existing, new1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_link), int64(existing), int64(new1))))) +} + +func Xlinkat(tls *TLS, fd1 int32, existing uintptr, fd2 int32, new1 uintptr, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd1=%v existing=%v fd2=%v new1=%v flag=%v, (%v:)", tls, fd1, existing, fd2, new1, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_linkat), int64(fd1), int64(existing), int64(fd2), int64(new1), int64(flag))))) +} + +func X__lseek(tls *TLS, fd int32, offset Toff_t, whence int32) (r Toff_t) { + if __ccgo_strace { + trc("tls=%v fd=%v offset=%v whence=%v, (%v:)", tls, fd, offset, whence, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 int64 + var _ /* result at bp+0 */ Toff_t + _ = v1 + if X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS__llseek), int64(fd), offset>>Int32FromInt32(32), offset, int64(bp), int64(whence)))) != 0 { + v1 = int64(-int32(1)) + } else { + v1 = **(**Toff_t)(__ccgo_up(bp)) + } + return v1 +} + +func Xlseek(tls *TLS, fd int32, offset Toff_t, whence int32) (r Toff_t) { + if __ccgo_strace { + trc("tls=%v fd=%v offset=%v whence=%v, (%v:)", tls, fd, offset, whence, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lseek(tls, fd, offset, whence) +} + +func Xnice(tls *TLS, inc int32) (r int32) { + if __ccgo_strace { + trc("tls=%v inc=%v, (%v:)", tls, inc, origin(2)) + defer func() { trc("-> %v", r) }() + } + var prio int32 + _ = prio + prio = inc + // Only query old priority if it can affect the result. + // This also avoids issues with integer overflow. + if inc > -Int32FromInt32(2)*Int32FromInt32(NZERO) && inc < Int32FromInt32(2)*Int32FromInt32(NZERO) { + prio = prio + Xgetpriority(tls, PRIO_PROCESS, uint32(0)) + } + if prio > Int32FromInt32(NZERO)-Int32FromInt32(1) { + prio = Int32FromInt32(NZERO) - Int32FromInt32(1) + } + if prio < -int32(NZERO) { + prio = -int32(NZERO) + } + if Xsetpriority(tls, PRIO_PROCESS, uint32(0), prio) != 0 { + if **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EACCES) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EPERM) + } + return -int32(1) + } else { + return prio + } + return r +} + +func Xpause(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_pause), 0, 0, 0, 0, 0, 0)))) +} + +func Xpipe(tls *TLS, fd uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_pipe), int64(fd))))) +} + +func Xpipe2(tls *TLS, fd uintptr, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v flag=%v, (%v:)", tls, fd, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret int32 + _ = ret + if !(flag != 0) { + return Xpipe(tls, fd) + } + ret = int32(X__syscall2(tls, int64(SYS_pipe2), int64(fd), int64(flag))) + if ret != -int32(ENOSYS) { + return int32(X__syscall_ret(tls, Uint64FromInt32(ret))) + } + if flag & ^(Int32FromInt32(O_CLOEXEC)|Int32FromInt32(O_NONBLOCK)) != 0 { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL)))) + } + ret = Xpipe(tls, fd) + if ret != 0 { + return ret + } + if flag&int32(O_CLOEXEC) != 0 { + X__syscall3(tls, int64(SYS_fcntl), int64(**(**int32)(__ccgo_up(fd))), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + X__syscall3(tls, int64(SYS_fcntl), int64(**(**int32)(__ccgo_up(fd + 1*4))), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + } + if flag&int32(O_NONBLOCK) != 0 { + X__syscall3(tls, int64(SYS_fcntl), int64(**(**int32)(__ccgo_up(fd))), int64(Int32FromInt32(F_SETFL)), int64(Int32FromInt32(O_NONBLOCK))) + X__syscall3(tls, int64(SYS_fcntl), int64(**(**int32)(__ccgo_up(fd + 1*4))), int64(Int32FromInt32(F_SETFL)), int64(Int32FromInt32(O_NONBLOCK))) + } + return 0 +} + +func Xposix_close(tls *TLS, fd int32, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v flags=%v, (%v:)", tls, fd, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xclose(tls, fd) +} + +func Xpread(tls *TLS, fd int32, buf uintptr, size Tsize_t, ofs Toff_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v size=%v ofs=%v, (%v:)", tls, fd, buf, size, ofs, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_pread64), int64(fd), int64(buf), Int64FromUint64(size), ofs, 0, 0))) +} + +func Xpreadv(tls *TLS, fd int32, iov uintptr, count int32, ofs Toff_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v iov=%v count=%v ofs=%v, (%v:)", tls, fd, iov, count, ofs, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_preadv), int64(fd), int64(iov), int64(count), ofs, ofs>>Int32FromInt32(32), 0))) +} + +func Xpwrite(tls *TLS, fd int32, buf uintptr, size Tsize_t, ofs Toff_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v size=%v ofs=%v, (%v:)", tls, fd, buf, size, ofs, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_pwrite64), int64(fd), int64(buf), Int64FromUint64(size), ofs, 0, 0))) +} + +func Xpwritev(tls *TLS, fd int32, iov uintptr, count int32, ofs Toff_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v iov=%v count=%v ofs=%v, (%v:)", tls, fd, iov, count, ofs, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_pwritev), int64(fd), int64(iov), int64(count), ofs, ofs>>Int32FromInt32(32), 0))) +} + +func Xread(tls *TLS, fd int32, buf uintptr, count Tsize_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v count=%v, (%v:)", tls, fd, buf, count, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_read), int64(fd), int64(buf), Int64FromUint64(count), 0, 0, 0))) +} + +func Xreadlink(tls *TLS, path uintptr, buf uintptr, bufsize Tsize_t) (r1 Tssize_t) { + if __ccgo_strace { + trc("tls=%v path=%v buf=%v bufsize=%v, (%v:)", tls, path, buf, bufsize, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var r int32 + var _ /* dummy at bp+0 */ [1]uint8 + _ = r + if !(bufsize != 0) { + buf = bp + bufsize = uint64(1) + } + r = int32(X__syscall3(tls, int64(SYS_readlink), int64(path), int64(buf), Int64FromUint64(bufsize))) + if buf == bp && r > 0 { + r = 0 + } + return X__syscall_ret(tls, Uint64FromInt32(r)) +} + +func Xreadlinkat(tls *TLS, fd int32, path uintptr, buf uintptr, bufsize Tsize_t) (r1 Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v path=%v buf=%v bufsize=%v, (%v:)", tls, fd, path, buf, bufsize, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var r int32 + var _ /* dummy at bp+0 */ [1]uint8 + _ = r + if !(bufsize != 0) { + buf = bp + bufsize = uint64(1) + } + r = int32(X__syscall4(tls, int64(SYS_readlinkat), int64(fd), int64(path), int64(buf), Int64FromUint64(bufsize))) + if buf == bp && r > 0 { + r = 0 + } + return X__syscall_ret(tls, Uint64FromInt32(r)) +} + +func Xreadv(tls *TLS, fd int32, iov uintptr, count int32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v iov=%v count=%v, (%v:)", tls, fd, iov, count, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_readv), int64(fd), int64(iov), int64(count), 0, 0, 0))) +} + +func Xrenameat(tls *TLS, oldfd int32, old uintptr, newfd int32, new1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v oldfd=%v old=%v newfd=%v new1=%v, (%v:)", tls, oldfd, old, newfd, new1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_renameat), int64(oldfd), int64(old), int64(newfd), int64(new1))))) +} + +func Xrmdir(tls *TLS, path uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v, (%v:)", tls, path, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_rmdir), int64(path))))) +} + +func Xsetgid(tls *TLS, gid Tgid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v gid=%v, (%v:)", tls, gid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__setxid(tls, int32(SYS_setgid), Int32FromUint32(gid), 0, 0) +} + +func Xsetpgid(tls *TLS, pid Tpid_t, pgid Tpid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v pid=%v pgid=%v, (%v:)", tls, pid, pgid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_setpgid), int64(pid), int64(pgid))))) +} + +func Xsetpgrp(tls *TLS) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xsetpgid(tls, 0, 0) +} + +func Xsetsid(tls *TLS) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall0(tls, int64(SYS_setsid))))) +} + +func Xsetuid(tls *TLS, uid Tuid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v uid=%v, (%v:)", tls, uid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__setxid(tls, int32(SYS_setuid), Int32FromUint32(uid), 0, 0) +} + +type Tctx2 = struct { + Fid int32 + Feid int32 + Fsid int32 + Fnr int32 + Fret int32 +} + +func _do_setxid(tls *TLS, p uintptr) { + var c uintptr + var ret int32 + _, _ = c, ret + c = p + if (*Tctx2)(unsafe.Pointer(c)).Fret < 0 { + return + } + ret = int32(X__syscall3(tls, int64((*Tctx2)(unsafe.Pointer(c)).Fnr), int64((*Tctx2)(unsafe.Pointer(c)).Fid), int64((*Tctx2)(unsafe.Pointer(c)).Feid), int64((*Tctx2)(unsafe.Pointer(c)).Fsid))) + if ret != 0 && !((*Tctx2)(unsafe.Pointer(c)).Fret != 0) { + /* If one thread fails to set ids after another has already + * succeeded, forcibly killing the process is the only safe + * thing to do. State is inconsistent and dangerous. Use + * SIGKILL because it is uncatchable. */ + X__block_all_sigs(tls, uintptr(0)) + X__syscall2(tls, int64(SYS_kill), X__syscall0(tls, int64(SYS_getpid)), int64(Int32FromInt32(SIGKILL))) + } + (*Tctx2)(unsafe.Pointer(c)).Fret = ret +} + +func X__setxid(tls *TLS, nr int32, id int32, eid int32, sid int32) (r int32) { + if __ccgo_strace { + trc("tls=%v nr=%v id=%v eid=%v sid=%v, (%v:)", tls, nr, id, eid, sid, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var v1 int32 + var _ /* c at bp+0 */ Tctx2 + _ = v1 + /* ret is initially nonzero so that failure of the first thread does not + * trigger the safety kill above. */ + **(**Tctx2)(__ccgo_up(bp)) = Tctx2{ + Fid: id, + Feid: eid, + Fsid: sid, + Fnr: nr, + Fret: int32(1), + } + ___synccall(tls, __ccgo_fp(_do_setxid), bp) + if (**(**Tctx2)(__ccgo_up(bp))).Fret > 0 { + v1 = -int32(EAGAIN) + } else { + v1 = (**(**Tctx2)(__ccgo_up(bp))).Fret + } + return int32(X__syscall_ret(tls, Uint64FromInt32(v1))) +} + +func Xsleep(tls *TLS, seconds uint32) (r uint32) { + if __ccgo_strace { + trc("tls=%v seconds=%v, (%v:)", tls, seconds, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* tv at bp+0 */ Ttimespec + **(**Ttimespec)(__ccgo_up(bp)) = Ttimespec{ + Ftv_sec: Int64FromUint32(seconds), + } + if Xnanosleep(tls, bp, bp) != 0 { + return Uint32FromInt64((**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec) + } + return uint32(0) +} + +func Xsymlink(tls *TLS, existing uintptr, new1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v existing=%v new1=%v, (%v:)", tls, existing, new1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_symlink), int64(existing), int64(new1))))) +} + +func Xsymlinkat(tls *TLS, existing uintptr, fd int32, new1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v existing=%v fd=%v new1=%v, (%v:)", tls, existing, fd, new1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_symlinkat), int64(existing), int64(fd), int64(new1))))) +} + +func Xsync(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + X__syscall0(tls, int64(SYS_sync)) +} + +func Xtcgetpgrp(tls *TLS, fd int32) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var _ /* pgrp at bp+0 */ int32 + if Xioctl(tls, fd, Int32FromUint64(uint64(Uint32FromUint32(2)< %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var _ /* pgrp_int at bp+0 */ int32 + **(**int32)(__ccgo_up(bp)) = pgrp + return Xioctl(tls, fd, Int32FromUint64(uint64(Uint32FromUint32(4)< %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_truncate), int64(path), length)))) +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xttyname(tls *TLS, fd int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + var result, v1 int32 + _, _ = result, v1 + v1 = Xttyname_r(tls, fd, uintptr(unsafe.Pointer(&_buf10)), uint64(32)) + result = v1 + if v1 != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = result + return UintptrFromInt32(0) + } + return uintptr(unsafe.Pointer(&_buf10)) +} + +var _buf10 [32]uint8 + +func Xttyname_r(tls *TLS, fd int32, name uintptr, size Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v name=%v size=%v, (%v:)", tls, fd, name, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(320) + defer tls.Free(320) + var l Tssize_t + var _ /* procname at bp+288 */ [29]uint8 + var _ /* st1 at bp+0 */ Tstat + var _ /* st2 at bp+144 */ Tstat + _ = l + if !(Xisatty(tls, fd) != 0) { + return **(**int32)(__ccgo_up(X__errno_location(tls))) + } + X__procfdname(tls, bp+288, Uint32FromInt32(fd)) + l = Xreadlink(tls, bp+288, name, size) + if l < 0 { + return **(**int32)(__ccgo_up(X__errno_location(tls))) + } else { + if Uint64FromInt64(l) == size { + return int32(ERANGE) + } + } + **(**uint8)(__ccgo_up(name + uintptr(l))) = uint8(0) + if Xstat(tls, name, bp) != 0 || Xfstat(tls, fd, bp+144) != 0 { + return **(**int32)(__ccgo_up(X__errno_location(tls))) + } + if (**(**Tstat)(__ccgo_up(bp))).Fst_dev != (**(**Tstat)(__ccgo_up(bp + 144))).Fst_dev || (**(**Tstat)(__ccgo_up(bp))).Fst_ino != (**(**Tstat)(__ccgo_up(bp + 144))).Fst_ino { + return int32(ENODEV) + } + return 0 +} + +func Xualarm(tls *TLS, value uint32, interval uint32) (r uint32) { + if __ccgo_strace { + trc("tls=%v value=%v interval=%v, (%v:)", tls, value, interval, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var _ /* it at bp+0 */ Titimerval + var _ /* it_old at bp+32 */ Titimerval + **(**Titimerval)(__ccgo_up(bp)) = Titimerval{ + Fit_interval: Ttimeval{ + Ftv_usec: Int64FromUint32(interval), + }, + Fit_value: Ttimeval{ + Ftv_usec: Int64FromUint32(value), + }, + } + Xsetitimer(tls, ITIMER_REAL, bp, bp+32) + return Uint32FromInt64((**(**Titimerval)(__ccgo_up(bp + 32))).Fit_value.Ftv_sec*int64(1000000) + (**(**Titimerval)(__ccgo_up(bp + 32))).Fit_value.Ftv_usec) +} + +func Xunlink(tls *TLS, path uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v, (%v:)", tls, path, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_unlink), int64(path))))) +} + +func Xunlinkat(tls *TLS, fd int32, path uintptr, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v path=%v flag=%v, (%v:)", tls, fd, path, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_unlinkat), int64(fd), int64(path), int64(flag))))) +} + +func Xusleep(tls *TLS, useconds uint32) (r int32) { + if __ccgo_strace { + trc("tls=%v useconds=%v, (%v:)", tls, useconds, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* tv at bp+0 */ Ttimespec + **(**Ttimespec)(__ccgo_up(bp)) = Ttimespec{ + Ftv_sec: Int64FromUint32(useconds / uint32(1000000)), + Ftv_nsec: Int64FromUint32(useconds % uint32(1000000) * uint32(1000)), + } + return Xnanosleep(tls, bp, bp) +} + +func Xwrite(tls *TLS, fd int32, buf uintptr, count Tsize_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v count=%v, (%v:)", tls, fd, buf, count, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_write), int64(fd), int64(buf), Int64FromUint64(count), 0, 0, 0))) +} + +func Xwritev(tls *TLS, fd int32, iov uintptr, count int32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v iov=%v count=%v, (%v:)", tls, fd, iov, count, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_writev), int64(fd), int64(iov), int64(count), 0, 0, 0))) +} + +func __ccgo_fp(f interface{}) uintptr { + type iface [2]uintptr + return (*iface)(unsafe.Pointer(&f))[1] +} + +func __ccgo_up(n uintptr) unsafe.Pointer { + return unsafe.Pointer(&n) +} + +var X__abort_lock [1]int32 + +var X__at_quick_exit_lockptr = uintptr(unsafe.Pointer(&_lock)) + +var X__c_dot_utf8 = t__locale_map{ + Fmap1: uintptr(unsafe.Pointer(&_empty_mo)), + Fmap_size: uint64(20), + Fname: [24]uint8{'C', '.', 'U', 'T', 'F', '-', '8'}, +} + +var X__c_dot_utf8_locale = t__locale_struct{ + Fcat: [6]uintptr{ + 0: uintptr(unsafe.Pointer(&X__c_dot_utf8)), + }, +} + +var X__c_locale = t__locale_struct{} + +var Xdaylight int32 + +var X__eintr_valid_flag int32 + +var Xenviron uintptr + +var X__exp2f_data = Texp2f_data{ + Ftab: [32]Tuint64_t{ + 0: uint64(0x3ff0000000000000), + 1: uint64(0x3fefd9b0d3158574), + 2: uint64(0x3fefb5586cf9890f), + 3: uint64(0x3fef9301d0125b51), + 4: uint64(0x3fef72b83c7d517b), + 5: uint64(0x3fef54873168b9aa), + 6: uint64(0x3fef387a6e756238), + 7: uint64(0x3fef1e9df51fdee1), + 8: uint64(0x3fef06fe0a31b715), + 9: uint64(0x3feef1a7373aa9cb), + 10: uint64(0x3feedea64c123422), + 11: uint64(0x3feece086061892d), + 12: uint64(0x3feebfdad5362a27), + 13: uint64(0x3feeb42b569d4f82), + 14: uint64(0x3feeab07dd485429), + 15: uint64(0x3feea47eb03a5585), + 16: uint64(0x3feea09e667f3bcd), + 17: uint64(0x3fee9f75e8ec5f74), + 18: uint64(0x3feea11473eb0187), + 19: uint64(0x3feea589994cce13), + 20: uint64(0x3feeace5422aa0db), + 21: uint64(0x3feeb737b0cdc5e5), + 22: uint64(0x3feec49182a3f090), + 23: uint64(0x3feed503b23e255d), + 24: uint64(0x3feee89f995ad3ad), + 25: uint64(0x3feeff76f2fb5e47), + 26: uint64(0x3fef199bdd85529c), + 27: uint64(0x3fef3720dcef9069), + 28: uint64(0x3fef5818dcfba487), + 29: uint64(0x3fef7c97337b9b5f), + 30: uint64(0x3fefa4afa2a490da), + 31: uint64(0x3fefd0765b6e4540), + }, + Fshift_scaled: Float64FromFloat64(6.755399441055744e+15) / float64(Int32FromInt32(1)<>Int32FromInt32(6) | Uint32FromInt32(0x0), + 31: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0x1), + 32: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0x2), + 33: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0x3), + 34: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0x4), + 35: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0x5), + 36: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0x6), + 37: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0x7), + 38: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0x8), + 39: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0x9), + 40: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0xa), + 41: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0xb), + 42: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0xc), + 43: (Uint32FromUint32(0x40)-Uint32FromInt32(0xa0))<>Int32FromInt32(6) | Uint32FromInt32(0xd), + 44: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0xe), + 45: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0xf), + 46: (Uint32FromUint32(0)-Uint32FromInt32(0x90))<>Int32FromInt32(6) | (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(12) | Uint32FromInt32(0x0), + 47: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(12) | Uint32FromInt32(0x1), + 48: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(12) | Uint32FromInt32(0x2), + 49: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(12) | Uint32FromInt32(0x3), + 50: (Uint32FromUint32(0x40)-Uint32FromInt32(0x90))<>Int32FromInt32(6) | (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(12) | Uint32FromInt32(0x4), +} + +var X__gettext_lockptr = uintptr(unsafe.Pointer(&_lock1)) + +var X__hwcap Tsize_t + +var X__libc t__libc + +var X__libc_version = [6]uint8{'1', '.', '2', '.', '5'} + +var X__locale_lock [1]int32 + +var X__locale_lockptr = uintptr(unsafe.Pointer(&X__locale_lock)) + +var X__log2_data = Tlog2_data{ + Finvln2hi: float64(1.4426950407214463), + Finvln2lo: float64(1.6751713164886512e-10), + Fpoly: [6]float64{ + 0: -Float64FromFloat64(0.7213475204444882), + 1: float64(0.4808983469629985), + 2: -Float64FromFloat64(0.36067375954075914), + 3: float64(0.2885390073180969), + 4: -Float64FromFloat64(0.2404693555628422), + 5: float64(0.2061202382173603), + }, + Fpoly1: [10]float64{ + 0: -Float64FromFloat64(0.7213475204444817), + 1: float64(0.48089834696298744), + 2: -Float64FromFloat64(0.360673760222145), + 3: float64(0.2885390081805197), + 4: -Float64FromFloat64(0.24044917405728863), + 5: float64(0.2060992861022954), + 6: -Float64FromFloat64(0.18033596705327856), + 7: float64(0.1603032746063156), + 8: -Float64FromFloat64(0.14483316576701266), + 9: float64(0.13046826811283835), + }, + Ftab: [64]struct { + Finvc float64 + Flogc float64 + }{ + 0: { + Finvc: float64(1.4463276106642393), + Flogc: -Float64FromFloat64(0.5323943771486483), + }, + 1: { + Finvc: float64(1.4301675812282968), + Flogc: -Float64FromFloat64(0.516184206053822), + }, + 2: { + Finvc: float64(1.4143648676229383), + Flogc: -Float64FromFloat64(0.5001543441974263), + }, + 3: { + Finvc: float64(1.3989068970611538), + Flogc: -Float64FromFloat64(0.4842999484799293), + }, + 4: { + Finvc: float64(1.3837838957784339), + Flogc: -Float64FromFloat64(0.46861865624623533), + }, + 5: { + Finvc: float64(1.368983882697786), + Flogc: -Float64FromFloat64(0.4531054615783887), + }, + 6: { + Finvc: float64(1.3544972916324536), + Flogc: -Float64FromFloat64(0.43775750882059583), + }, + 7: { + Finvc: float64(1.3403139676437443), + Flogc: -Float64FromFloat64(0.4225709906127122), + }, + 8: { + Finvc: float64(1.3264249304188642), + Flogc: -Float64FromFloat64(0.40754302793970965), + }, + 9: { + Finvc: float64(1.3128203652112156), + Flogc: -Float64FromFloat64(0.3926695240384106), + }, + 10: { + Finvc: float64(1.299492412370217), + Flogc: -Float64FromFloat64(0.3779482100565019), + }, + 11: { + Finvc: float64(1.28643198385998), + Flogc: -Float64FromFloat64(0.36337518101890964), + }, + 12: { + Finvc: float64(1.2736319291846832), + Flogc: -Float64FromFloat64(0.3489484089425332), + }, + 13: { + Finvc: float64(1.2610838968062879), + Flogc: -Float64FromFloat64(0.33466425780738973), + }, + 14: { + Finvc: float64(1.248780314313572), + Flogc: -Float64FromFloat64(0.3205197000629596), + }, + 15: { + Finvc: float64(1.2367150450059063), + Flogc: -Float64FromFloat64(0.3065131231801388), + }, + 16: { + Finvc: float64(1.2248804968401878), + Flogc: -Float64FromFloat64(0.2926410022678283), + }, + 17: { + Finvc: float64(1.2132702353497795), + Flogc: -Float64FromFloat64(0.2789009220805383), + }, + 18: { + Finvc: float64(1.2018780785715362), + Flogc: -Float64FromFloat64(0.2652905529862437), + }, + 19: { + Finvc: float64(1.190697765061355), + Flogc: -Float64FromFloat64(0.2518072602367738), + }, + 20: { + Finvc: float64(1.1797235410550593), + Flogc: -Float64FromFloat64(0.23844881494437686), + }, + 21: { + Finvc: float64(1.1689498986205256), + Flogc: -Float64FromFloat64(0.22521309705462045), + }, + 22: { + Finvc: float64(1.158371137408455), + Flogc: -Float64FromFloat64(0.21209756102439314), + }, + 23: { + Finvc: float64(1.1479820146386086), + Flogc: -Float64FromFloat64(0.1991000395789797), + }, + 24: { + Finvc: float64(1.1377775576851088), + Flogc: -Float64FromFloat64(0.18621852970682085), + }, + 25: { + Finvc: float64(1.127753150630225), + Flogc: -Float64FromFloat64(0.17345131655361), + }, + 26: { + Finvc: float64(1.1179037012282074), + Flogc: -Float64FromFloat64(0.16079591649577196), + }, + 27: { + Finvc: float64(1.1082251967632821), + Flogc: -Float64FromFloat64(0.14825107384353942), + }, + 28: { + Finvc: float64(1.098712461056607), + Flogc: -Float64FromFloat64(0.13581387465410444), + }, + 29: { + Finvc: float64(1.0893619091634283), + Flogc: -Float64FromFloat64(0.12348332762257996), + }, + 30: { + Finvc: float64(1.0801689912316736), + Flogc: -Float64FromFloat64(0.11125703807351783), + }, + 31: { + Finvc: float64(1.071129489697672), + Flogc: -Float64FromFloat64(0.09913289918449664), + }, + 32: { + Finvc: float64(1.0622406576750423), + Flogc: -Float64FromFloat64(0.08711065531497297), + }, + 33: { + Finvc: float64(1.0534977607927976), + Flogc: -Float64FromFloat64(0.07518724771330199), + }, + 34: { + Finvc: float64(1.044897877982342), + Flogc: -Float64FromFloat64(0.06336194888240243), + }, + 35: { + Finvc: float64(1.0364370289499079), + Flogc: -Float64FromFloat64(0.0516324649456692), + }, + 36: { + Finvc: float64(1.0281122132034575), + Flogc: -Float64FromFloat64(0.039997735929773626), + }, + 37: { + Finvc: float64(1.0199202450036955), + Flogc: -Float64FromFloat64(0.028456341769015125), + }, + 38: { + Finvc: float64(1.0118577522306755), + Flogc: -Float64FromFloat64(0.017006489068080555), + }, + 39: { + Finvc: float64(1.003921649236766), + Flogc: -Float64FromFloat64(0.005646678981520381), + }, + 40: { + Finvc: float64(0.9922480467550775), + Flogc: float64(0.011227277611396858), + }, + 41: { + Finvc: float64(0.9770993366178549), + Flogc: float64(0.033422853921138085), + }, + 42: { + Finvc: float64(0.9624059787315814), + Flogc: float64(0.05528248992573026), + }, + 43: { + Finvc: float64(0.9481480598286369), + Flogc: float64(0.07681573143713649), + }, + 44: { + Finvc: float64(0.9343065931261065), + Flogc: float64(0.09803204623631245), + }, + 45: { + Finvc: float64(0.9208633936884979), + Flogc: float64(0.11894094059630334), + }, + 46: { + Finvc: float64(0.9078013641840602), + Flogc: float64(0.13955143862290242), + }, + 47: { + Finvc: float64(0.8951048181512927), + Flogc: float64(0.15987146080919956), + }, + 48: { + Finvc: float64(0.882758574260473), + Flogc: float64(0.17990916589428707), + }, + 49: { + Finvc: float64(0.8707481902241709), + Flogc: float64(0.19967252559081317), + }, + 50: { + Finvc: float64(0.8590602881746972), + Flogc: float64(0.2191687127685782), + }, + 51: { + Finvc: float64(0.8476822044336688), + Flogc: float64(0.23840459427242422), + }, + 52: { + Finvc: float64(0.8366013284053287), + Flogc: float64(0.25738780610663525), + }, + 53: { + Finvc: float64(0.8258064913621258), + Flogc: float64(0.27612433583180973), + }, + 54: { + Finvc: float64(0.8152865101579193), + Flogc: float64(0.2946209507022104), + }, + 55: { + Finvc: float64(0.8050314363208223), + Flogc: float64(0.31288297359969874), + }, + 56: { + Finvc: float64(0.7950310492640542), + Flogc: float64(0.33091689015759584), + }, + 57: { + Finvc: float64(0.7852760432487271), + Flogc: float64(0.3487282100279572), + }, + 58: { + Finvc: float64(0.7757575660314712), + Flogc: float64(0.36632223233368677), + }, + 59: { + Finvc: float64(0.7664670566588946), + Flogc: float64(0.383704309808536), + }, + 60: { + Finvc: float64(0.7573965608078645), + Flogc: float64(0.4008792246509074), + }, + 61: { + Finvc: float64(0.7485380168514022), + Flogc: float64(0.41785250494945103), + }, + 62: { + Finvc: float64(0.7398844213755009), + Flogc: float64(0.4346281724315304), + }, + 63: { + Finvc: float64(0.7314286113178112), + Flogc: float64(0.45121103315341315), + }, + }, +} + +var X__log2f_data = Tlog2f_data{ + Ftab: [16]struct { + Finvc float64 + Flogc float64 + }{ + 0: { + Finvc: float64(1.398907162146528), + Flogc: -Float64FromFloat64(0.48430022186289673), + }, + 1: { + Finvc: float64(1.3403141896637998), + Flogc: -Float64FromFloat64(0.42257122959194704), + }, + 2: { + Finvc: float64(1.286432210124115), + Flogc: -Float64FromFloat64(0.3633754347673556), + }, + 3: { + Finvc: float64(1.2367150214269895), + Flogc: -Float64FromFloat64(0.30651309567405577), + }, + 4: { + Finvc: float64(1.1906977166711752), + Flogc: -Float64FromFloat64(0.25180720160537634), + }, + 5: { + Finvc: float64(1.1479821020556429), + Flogc: -Float64FromFloat64(0.19910014943794563), + }, + 6: { + Finvc: float64(1.1082251448272158), + Flogc: -Float64FromFloat64(0.14825100623281615), + }, + 7: { + Finvc: float64(1.0711297413057381), + Flogc: -Float64FromFloat64(0.09913323807318392), + }, + 8: { + Finvc: float64(1.036437278977283), + Flogc: -Float64FromFloat64(0.051632812977629436), + }, + 9: { + Finvc: float64(1), + }, + 10: { + Finvc: float64(0.9492859795739057), + Flogc: float64(0.07508531937943004), + }, + 11: { + Finvc: float64(0.8951049428609004), + Flogc: float64(0.15987125980713107), + }, + 12: { + Finvc: float64(0.8476821620351103), + Flogc: float64(0.2384046664317681), + }, + 13: { + Finvc: float64(0.8050314851692001), + Flogc: float64(0.31288288605863257), + }, + 14: { + Finvc: float64(0.7664671008843108), + Flogc: float64(0.38370422656453185), + }, + 15: { + Finvc: float64(0.731428603316328), + Flogc: float64(0.451211048935815), + }, + }, + Fpoly: [4]float64{ + 0: -Float64FromFloat64(0.36051725506874704), + 1: float64(0.4811247078767291), + 2: -Float64FromFloat64(0.7213476299867769), + 3: float64(1.4426950186867042), + }, +} + +var X__log_data = Tlog_data{ + Fln2hi: float64(0.6931471805598903), + Fln2lo: float64(5.497923018708371e-14), + Fpoly: [5]float64{ + 0: -Float64FromFloat64(0.5000000000000001), + 1: float64(0.33333333331825593), + 2: -Float64FromFloat64(0.2499999999622955), + 3: float64(0.20000304511814496), + 4: -Float64FromFloat64(0.16667054827627667), + }, + Fpoly1: [11]float64{ + 0: -Float64FromFloat64(0.5), + 1: float64(0.3333333333333352), + 2: -Float64FromFloat64(0.24999999999998432), + 3: float64(0.19999999999320328), + 4: -Float64FromFloat64(0.16666666669929706), + 5: float64(0.14285715076560868), + 6: -Float64FromFloat64(0.12499997863982555), + 7: float64(0.11110712032936046), + 8: -Float64FromFloat64(0.10000486757818193), + 9: float64(0.09181994006195467), + 10: -Float64FromFloat64(0.08328363062289341), + }, + Ftab: [128]struct { + Finvc float64 + Flogc float64 + }{ + 0: { + Finvc: float64(1.4504249240398293), + Flogc: -Float64FromFloat64(0.3718565645633589), + }, + 1: { + Finvc: float64(1.442253508327276), + Flogc: -Float64FromFloat64(0.36620682668944937), + }, + 2: { + Finvc: float64(1.4341736174350004), + Flogc: -Float64FromFloat64(0.3605888069791945), + }, + 3: { + Finvc: float64(1.426183816329995), + Flogc: -Float64FromFloat64(0.3550022171419869), + }, + 4: { + Finvc: float64(1.4182825527052965), + Flogc: -Float64FromFloat64(0.34944666968829097), + }, + 5: { + Finvc: float64(1.4104682921759335), + Flogc: -Float64FromFloat64(0.3439217713603284), + }, + 6: { + Finvc: float64(1.4027396147468003), + Flogc: -Float64FromFloat64(0.3384271921261188), + }, + 7: { + Finvc: float64(1.3950954438932313), + Flogc: -Float64FromFloat64(0.332962831494342), + }, + 8: { + Finvc: float64(1.3875338232485754), + Flogc: -Float64FromFloat64(0.32752794345742586), + }, + 9: { + Finvc: float64(1.3800539211058593), + Flogc: -Float64FromFloat64(0.32212257167088865), + }, + 10: { + Finvc: float64(1.3726542695419708), + Flogc: -Float64FromFloat64(0.3167462884799761), + }, + 11: { + Finvc: float64(1.3653332798446802), + Flogc: -Float64FromFloat64(0.3113985598928366), + }, + 12: { + Finvc: float64(1.358090204587874), + Flogc: -Float64FromFloat64(0.3060794515165526), + }, + 13: { + Finvc: float64(1.3509234892132138), + Flogc: -Float64FromFloat64(0.300788424667644), + }, + 14: { + Finvc: float64(1.3438320840699889), + Flogc: -Float64FromFloat64(0.2955252968476998), + }, + 15: { + Finvc: float64(1.3368146974742003), + Flogc: -Float64FromFloat64(0.29028969275850613), + }, + 16: { + Finvc: float64(1.329870114677736), + Flogc: -Float64FromFloat64(0.2850812793277555), + }, + 17: { + Finvc: float64(1.322997339161106), + Flogc: -Float64FromFloat64(0.27989987391470095), + }, + 18: { + Finvc: float64(1.316195352741367), + Flogc: -Float64FromFloat64(0.27474526621870154), + }, + 19: { + Finvc: float64(1.3094628125672239), + Flogc: -Float64FromFloat64(0.2696169863701243), + }, + 20: { + Finvc: float64(1.3027990455471041), + Flogc: -Float64FromFloat64(0.26451506180308115), + }, + 21: { + Finvc: float64(1.2962024229438942), + Flogc: -Float64FromFloat64(0.2594387762767383), + }, + 22: { + Finvc: float64(1.2896726275815547), + Flogc: -Float64FromFloat64(0.2543884090981692), + }, + 23: { + Finvc: float64(1.2832080305745537), + Flogc: -Float64FromFloat64(0.24936321635129843), + }, + 24: { + Finvc: float64(1.276807885983376), + Flogc: -Float64FromFloat64(0.24436312405975968), + }, + 25: { + Finvc: float64(1.2704714060687552), + Flogc: -Float64FromFloat64(0.23938801747897287), + }, + 26: { + Finvc: float64(1.2641976054949482), + Flogc: -Float64FromFloat64(0.23443761696705678), + }, + 27: { + Finvc: float64(1.257985357514882), + Flogc: -Float64FromFloat64(0.22951151871518505), + }, + 28: { + Finvc: float64(1.2518337750655457), + Flogc: -Float64FromFloat64(0.2246094963439873), + }, + 29: { + Finvc: float64(1.2457421919097305), + Flogc: -Float64FromFloat64(0.21973149037705753), + }, + 30: { + Finvc: float64(1.2397094966625508), + Flogc: -Float64FromFloat64(0.2148770752847895), + }, + 31: { + Finvc: float64(1.2337348463589233), + Flogc: -Float64FromFloat64(0.210046029103637), + }, + 32: { + Finvc: float64(1.2278176973028803), + Flogc: -Float64FromFloat64(0.20523836373934046), + }, + 33: { + Finvc: float64(1.2219570190618474), + Flogc: -Float64FromFloat64(0.20045368751368642), + }, + 34: { + Finvc: float64(1.2161519732977757), + Flogc: -Float64FromFloat64(0.1956917537758045), + }, + 35: { + Finvc: float64(1.2104018095009725), + Flogc: -Float64FromFloat64(0.19095237845203883), + }, + 36: { + Finvc: float64(1.204705805718973), + Flogc: -Float64FromFloat64(0.18623539250290833), + }, + 37: { + Finvc: float64(1.1990631185441964), + Flogc: -Float64FromFloat64(0.18154051731551135), + }, + 38: { + Finvc: float64(1.1934733004462308), + Flogc: -Float64FromFloat64(0.1768677957431919), + }, + 39: { + Finvc: float64(1.1879350812847385), + Flogc: -Float64FromFloat64(0.17221657406412305), + }, + 40: { + Finvc: float64(1.1824481322833125), + Flogc: -Float64FromFloat64(0.16758697765942543), + }, + 41: { + Finvc: float64(1.1770114976921955), + Flogc: -Float64FromFloat64(0.16297859687290384), + }, + 42: { + Finvc: float64(1.1716248121809465), + Flogc: -Float64FromFloat64(0.15839151377804228), + }, + 43: { + Finvc: float64(1.1662869231674715), + Flogc: -Float64FromFloat64(0.15382513241456763), + }, + 44: { + Finvc: float64(1.1609977486762766), + Flogc: -Float64FromFloat64(0.14927976358922024), + }, + 45: { + Finvc: float64(1.1557563220795803), + Flogc: -Float64FromFloat64(0.14475495398119165), + }, + 46: { + Finvc: float64(1.1505619105480347), + Flogc: -Float64FromFloat64(0.14025044090817573), + }, + 47: { + Finvc: float64(1.1454138888505974), + Flogc: -Float64FromFloat64(0.1357660466685502), + }, + 48: { + Finvc: float64(1.140311877374656), + Flogc: -Float64FromFloat64(0.1313018016355727), + }, + 49: { + Finvc: float64(1.1352550225747513), + Flogc: -Float64FromFloat64(0.12685731518763532), + }, + 50: { + Finvc: float64(1.1302429094831266), + Flogc: -Float64FromFloat64(0.1224325737671279), + }, + 51: { + Finvc: float64(1.1252747693068048), + Flogc: -Float64FromFloat64(0.11802724521862729), + }, + 52: { + Finvc: float64(1.1203501571039876), + Flogc: -Float64FromFloat64(0.11364127671663482), + }, + 53: { + Finvc: float64(1.1154683327680124), + Flogc: -Float64FromFloat64(0.10927434611278386), + }, + 54: { + Finvc: float64(1.1106291463292157), + Flogc: -Float64FromFloat64(0.10492665324943573), + }, + 55: { + Finvc: float64(1.1058315813301596), + Flogc: -Float64FromFloat64(0.10059761422644442), + }, + 56: { + Finvc: float64(1.1010752177696026), + Flogc: -Float64FromFloat64(0.09628717309055901), + }, + 57: { + Finvc: float64(1.0963597137952512), + Flogc: -Float64FromFloat64(0.09199534069557558), + }, + 58: { + Finvc: float64(1.0916844827550398), + Flogc: -Float64FromFloat64(0.08772190036688698), + }, + 59: { + Finvc: float64(1.0870487291277784), + Flogc: -Float64FromFloat64(0.08346643613867855), + }, + 60: { + Finvc: float64(1.082452357388312), + Flogc: -Float64FromFloat64(0.07922916827544668), + }, + 61: { + Finvc: float64(1.0778948225025884), + Flogc: -Float64FromFloat64(0.0750099004750382), + }, + 62: { + Finvc: float64(1.0733751731601076), + Flogc: -Float64FromFloat64(0.07080805133352897), + }, + 63: { + Finvc: float64(1.068893585073351), + Flogc: -Float64FromFloat64(0.06662408085151128), + }, + 64: { + Finvc: float64(1.0644491706655506), + Flogc: -Float64FromFloat64(0.06245745471915143), + }, + 65: { + Finvc: float64(1.0600414846328305), + Flogc: -Float64FromFloat64(0.0583080438042316), + }, + 66: { + Finvc: float64(1.0556701316181605), + Flogc: -Float64FromFloat64(0.05417576112313327), + }, + 67: { + Finvc: float64(1.051334750556926), + Flogc: -Float64FromFloat64(0.050060547896805474), + }, + 68: { + Finvc: float64(1.0470347288442157), + Flogc: -Float64FromFloat64(0.045962101199052086), + }, + 69: { + Finvc: float64(1.0427699229652954), + Flogc: -Float64FromFloat64(0.04188056008865715), + }, + 70: { + Finvc: float64(1.0385395013738175), + Flogc: -Float64FromFloat64(0.03781540056183985), + }, + 71: { + Finvc: float64(1.034343418940345), + Flogc: -Float64FromFloat64(0.03376684757915882), + }, + 72: { + Finvc: float64(1.0301811073173315), + Flogc: -Float64FromFloat64(0.029734619131772888), + }, + 73: { + Finvc: float64(1.026052043621297), + Flogc: -Float64FromFloat64(0.025718470239212365), + }, + 74: { + Finvc: float64(1.0219561082336197), + Flogc: -Float64FromFloat64(0.021718543925430822), + }, + 75: { + Finvc: float64(1.0178926505784922), + Flogc: -Float64FromFloat64(0.01773446126981071), + }, + 76: { + Finvc: float64(1.0138614436244586), + Flogc: -Float64FromFloat64(0.013766252464051831), + }, + 77: { + Finvc: float64(1.0098620186501341), + Flogc: -Float64FromFloat64(0.009813706322574944), + }, + 78: { + Finvc: float64(1.0058938559734134), + Flogc: -Float64FromFloat64(0.005876555150052809), + }, + 79: { + Finvc: float64(1.00195696235014), + Flogc: -Float64FromFloat64(0.0019550499938532084), + }, + 80: { + Finvc: float64(0.9961089923088509), + Flogc: float64(0.0038985973556009412), + }, + 81: { + Finvc: float64(0.9884170338185201), + Flogc: float64(0.011650571286395461), + }, + 82: { + Finvc: float64(0.9808429191005297), + Flogc: float64(0.019342955478919066), + }, + 83: { + Finvc: float64(0.9733840169987446), + Flogc: float64(0.0269766014846482), + }, + 84: { + Finvc: float64(0.9660377568876556), + Flogc: float64(0.034552359728422744), + }, + 85: { + Finvc: float64(0.9588014945307369), + Flogc: float64(0.04207121767183253), + }, + 86: { + Finvc: float64(0.9516728569073111), + Flogc: float64(0.049533940950141186), + }, + 87: { + Finvc: float64(0.9446494635965822), + Flogc: float64(0.056941358295944156), + }, + 88: { + Finvc: float64(0.9377288993026223), + Flogc: float64(0.06429439168346107), + }, + 89: { + Finvc: float64(0.9309091073790681), + Flogc: float64(0.0715936354946507), + }, + 90: { + Finvc: float64(0.924187681612722), + Flogc: float64(0.07884010933776153), + }, + 91: { + Finvc: float64(0.9175626765599192), + Flogc: float64(0.08603438905970506), + }, + 92: { + Finvc: float64(0.9110320403624034), + Flogc: float64(0.09317721180013905), + }, + 93: { + Finvc: float64(0.9045935839762024), + Flogc: float64(0.10026951462748457), + }, + 94: { + Finvc: float64(0.8982456375922825), + Flogc: float64(0.10731170956330516), + }, + 95: { + Finvc: float64(0.8919860966782501), + Flogc: float64(0.11430473320717738), + }, + 96: { + Finvc: float64(0.8858131121185129), + Flogc: float64(0.12124928503033061), + }, + 97: { + Finvc: float64(0.879725075760676), + Flogc: float64(0.12814583422959913), + }, + 98: { + Finvc: float64(0.8737201372634685), + Flogc: float64(0.1349951636851756), + }, + 99: { + Finvc: float64(0.8677966405782273), + Flogc: float64(0.1417978768189414), + }, + 100: { + Finvc: float64(0.8619528050060739), + Flogc: float64(0.14855476039031146), + }, + 101: { + Finvc: float64(0.8561872354420692), + Flogc: float64(0.1552661937658968), + }, + 102: { + Finvc: float64(0.8504983927816893), + Flogc: float64(0.16193275688146969), + }, + 103: { + Finvc: float64(0.8448844572790304), + Flogc: float64(0.16855539792220497), + }, + 104: { + Finvc: float64(0.8393442741575965), + Flogc: float64(0.1751343179947753), + }, + 105: { + Finvc: float64(0.8338762249349438), + Flogc: float64(0.1816702989864325), + }, + 106: { + Finvc: float64(0.8284789320557778), + Flogc: float64(0.18816387146023317), + }, + 107: { + Finvc: float64(0.8231510800065832), + Flogc: float64(0.1946155228479256), + }, + 108: { + Finvc: float64(0.8178913903778707), + Flogc: float64(0.20102572579389744), + }, + 109: { + Finvc: float64(0.8126984007245374), + Flogc: float64(0.2073952090795501), + }, + 110: { + Finvc: float64(0.8075710029460227), + Flogc: float64(0.21372429840596396), + }, + 111: { + Finvc: float64(0.8025078881160415), + Flogc: float64(0.2200135945981856), + }, + 112: { + Finvc: float64(0.7975077379364331), + Flogc: float64(0.22626374162859975), + }, + 113: { + Finvc: float64(0.792569604966373), + Flogc: float64(0.23247494747693054), + }, + 114: { + Finvc: float64(0.7876923641254114), + Flogc: float64(0.23864766620658884), + }, + 115: { + Finvc: float64(0.7828746724940998), + Flogc: float64(0.24478265647405806), + }, + 116: { + Finvc: float64(0.7781155388790811), + Flogc: float64(0.25088025827324145), + }, + 117: { + Finvc: float64(0.7734139557869777), + Flogc: float64(0.2569408552510595), + }, + 118: { + Finvc: float64(0.7687687179914933), + Flogc: float64(0.26296511155101143), + }, + 119: { + Finvc: float64(0.7641790698041854), + Flogc: float64(0.2689531327189343), + }, + 120: { + Finvc: float64(0.7596438763692399), + Flogc: float64(0.27490553924610595), + }, + 121: { + Finvc: float64(0.7551621951078668), + Flogc: float64(0.2808227248478943), + }, + 122: { + Finvc: float64(0.7507331780216866), + Flogc: float64(0.286704979267256), + }, + 123: { + Finvc: float64(0.7463557196361751), + Flogc: float64(0.29255295645509705), + }, + 124: { + Finvc: float64(0.7420289364869653), + Flogc: float64(0.2983670386142876), + }, + 125: { + Finvc: float64(0.7377521537065876), + Flogc: float64(0.30414734587282055), + }, + 126: { + Finvc: float64(0.7335242966002608), + Flogc: float64(0.30989455774829366), + }, + 127: { + Finvc: float64(0.729344777457841), + Flogc: float64(0.31560871301871884), + }, + }, +} + +var X__logf_data = Tlogf_data{ + Ftab: [16]struct { + Finvc float64 + Flogc float64 + }{ + 0: { + Finvc: float64(1.398907162146528), + Flogc: -Float64FromFloat64(0.33569133332882284), + }, + 1: { + Finvc: float64(1.3403141896637998), + Flogc: -Float64FromFloat64(0.2929040563774074), + }, + 2: { + Finvc: float64(1.286432210124115), + Flogc: -Float64FromFloat64(0.2518726580937369), + }, + 3: { + Finvc: float64(1.2367150214269895), + Flogc: -Float64FromFloat64(0.21245868807117255), + }, + 4: { + Finvc: float64(1.1906977166711752), + Flogc: -Float64FromFloat64(0.17453945183745634), + }, + 5: { + Finvc: float64(1.1479821020556429), + Flogc: -Float64FromFloat64(0.1380057072319758), + }, + 6: { + Finvc: float64(1.1082251448272158), + Flogc: -Float64FromFloat64(0.10275976698545139), + }, + 7: { + Finvc: float64(1.0711297413057381), + Flogc: -Float64FromFloat64(0.06871392447020525), + }, + 8: { + Finvc: float64(1.036437278977283), + Flogc: -Float64FromFloat64(0.0357891387398228), + }, + 9: { + Finvc: float64(1), + }, + 10: { + Finvc: float64(0.9492859795739057), + Flogc: float64(0.05204517742929496), + }, + 11: { + Finvc: float64(0.8951049428609004), + Flogc: float64(0.11081431298787942), + }, + 12: { + Finvc: float64(0.8476821620351103), + Flogc: float64(0.1652495223695143), + }, + 13: { + Finvc: float64(0.8050314851692001), + Flogc: float64(0.21687389031699977), + }, + 14: { + Finvc: float64(0.7664671008843108), + Flogc: float64(0.2659635028121397), + }, + 15: { + Finvc: float64(0.731428603316328), + Flogc: float64(0.3127556664073557), + }, + }, + Fln2: float64(0.6931471805599453), + Fpoly: [3]float64{ + 0: -Float64FromFloat64(0.25089342214237154), + 1: float64(0.333456765744066), + 2: -Float64FromFloat64(0.4999997485802103), + }, +} + +var X__optpos int32 + +var Xoptreset int32 + +var X__pow_log_data = Tpow_log_data{ + Fln2hi: float64(0.6931471805598903), + Fln2lo: float64(5.497923018708371e-14), + Fpoly: [7]float64{ + 0: -Float64FromFloat64(0.5), + 1: float64(Float64FromFloat64(0.3333333333333339) * float64(-Int32FromInt32(2))), + 2: float64(-Float64FromFloat64(0.25000000000000033) * float64(-Int32FromInt32(2))), + 3: float64(Float64FromFloat64(0.1999999998830994) * Float64FromInt32(4)), + 4: float64(-Float64FromFloat64(0.16666666658719348) * Float64FromInt32(4)), + 5: float64(Float64FromFloat64(0.14286370355743763) * float64(-Int32FromInt32(8))), + 6: float64(-Float64FromFloat64(0.12500519079594427) * float64(-Int32FromInt32(8))), + }, + Ftab: [128]struct { + Finvc float64 + Fpad float64 + Flogc float64 + Flogctail float64 + }{ + 0: { + Finvc: float64(1.4140625), + Flogc: -Float64FromFloat64(0.3464667673462145), + Flogctail: float64(5.929407345889625e-15), + }, + 1: { + Finvc: float64(1.40625), + Flogc: -Float64FromFloat64(0.34092658697056777), + Flogctail: -Float64FromFloat64(2.544157440035963e-14), + }, + 2: { + Finvc: float64(1.3984375), + Flogc: -Float64FromFloat64(0.3353555419211034), + Flogctail: -Float64FromFloat64(3.443525940775045e-14), + }, + 3: { + Finvc: float64(1.390625), + Flogc: -Float64FromFloat64(0.3297532863724655), + Flogctail: -Float64FromFloat64(2.500123826022799e-15), + }, + 4: { + Finvc: float64(1.3828125), + Flogc: -Float64FromFloat64(0.32411946865420305), + Flogctail: -Float64FromFloat64(8.929337133850617e-15), + }, + 5: { + Finvc: float64(1.375), + Flogc: -Float64FromFloat64(0.31845373111855224), + Flogctail: float64(1.7625431312172662e-14), + }, + 6: { + Finvc: float64(1.3671875), + Flogc: -Float64FromFloat64(0.31275571000389846), + Flogctail: float64(1.5688303180062087e-15), + }, + 7: { + Finvc: float64(1.359375), + Flogc: -Float64FromFloat64(0.3070250352949415), + Flogctail: float64(2.9655274673691784e-14), + }, + 8: { + Finvc: float64(1.3515625), + Flogc: -Float64FromFloat64(0.3012613305781997), + Flogctail: float64(3.7923164802093147e-14), + }, + 9: { + Finvc: float64(1.34375), + Flogc: -Float64FromFloat64(0.2954642128938758), + Flogctail: float64(3.993416384387844e-14), + }, + 10: { + Finvc: float64(1.3359375), + Flogc: -Float64FromFloat64(0.28963329258306203), + Flogctail: float64(1.9352855826489123e-14), + }, + 11: { + Finvc: float64(1.3359375), + Flogc: -Float64FromFloat64(0.28963329258306203), + Flogctail: float64(1.9352855826489123e-14), + }, + 12: { + Finvc: float64(1.328125), + Flogc: -Float64FromFloat64(0.28376817313062475), + Flogctail: -Float64FromFloat64(1.9852665484979036e-14), + }, + 13: { + Finvc: float64(1.3203125), + Flogc: -Float64FromFloat64(0.27786845100342816), + Flogctail: -Float64FromFloat64(2.814323765595281e-14), + }, + 14: { + Finvc: float64(1.3125), + Flogc: -Float64FromFloat64(0.2719337154836694), + Flogctail: float64(2.7643769993528702e-14), + }, + 15: { + Finvc: float64(1.3046875), + Flogc: -Float64FromFloat64(0.2659635484970977), + Flogctail: -Float64FromFloat64(4.025092402293806e-14), + }, + 16: { + Finvc: float64(1.296875), + Flogc: -Float64FromFloat64(0.25995752443691345), + Flogctail: -Float64FromFloat64(1.2621729398885316e-14), + }, + 17: { + Finvc: float64(1.2890625), + Flogc: -Float64FromFloat64(0.25391520998095984), + Flogctail: -Float64FromFloat64(3.600176732637335e-15), + }, + 18: { + Finvc: float64(1.2890625), + Flogc: -Float64FromFloat64(0.25391520998095984), + Flogctail: -Float64FromFloat64(3.600176732637335e-15), + }, + 19: { + Finvc: float64(1.28125), + Flogc: -Float64FromFloat64(0.2478361639045943), + Flogctail: float64(1.3029797173308663e-14), + }, + 20: { + Finvc: float64(1.2734375), + Flogc: -Float64FromFloat64(0.2417199368871934), + Flogctail: float64(4.8230289429940886e-14), + }, + 21: { + Finvc: float64(1.265625), + Flogc: -Float64FromFloat64(0.23556607131274632), + Flogctail: -Float64FromFloat64(2.0592242769647135e-14), + }, + 22: { + Finvc: float64(1.2578125), + Flogc: -Float64FromFloat64(0.22937410106487732), + Flogctail: float64(3.149265065191484e-14), + }, + 23: { + Finvc: float64(1.25), + Flogc: -Float64FromFloat64(0.22314355131425145), + Flogctail: float64(4.169796584527195e-14), + }, + 24: { + Finvc: float64(1.25), + Flogc: -Float64FromFloat64(0.22314355131425145), + Flogctail: float64(4.169796584527195e-14), + }, + 25: { + Finvc: float64(1.2421875), + Flogc: -Float64FromFloat64(0.21687393830063684), + Flogctail: float64(2.2477465222466186e-14), + }, + 26: { + Finvc: float64(1.234375), + Flogc: -Float64FromFloat64(0.21056476910735), + Flogctail: float64(3.6507188831790577e-16), + }, + 27: { + Finvc: float64(1.2265625), + Flogc: -Float64FromFloat64(0.2042155414286526), + Flogctail: -Float64FromFloat64(3.827767260205414e-14), + }, + 28: { + Finvc: float64(1.2265625), + Flogc: -Float64FromFloat64(0.2042155414286526), + Flogctail: -Float64FromFloat64(3.827767260205414e-14), + }, + 29: { + Finvc: float64(1.21875), + Flogc: -Float64FromFloat64(0.19782574332987224), + Flogctail: -Float64FromFloat64(4.7641388950792196e-14), + }, + 30: { + Finvc: float64(1.2109375), + Flogc: -Float64FromFloat64(0.19139485299967873), + Flogctail: float64(4.9278276214647115e-14), + }, + 31: { + Finvc: float64(1.203125), + Flogc: -Float64FromFloat64(0.18492233849406148), + Flogctail: float64(4.9485167661250996e-14), + }, + 32: { + Finvc: float64(1.203125), + Flogc: -Float64FromFloat64(0.18492233849406148), + Flogctail: float64(4.9485167661250996e-14), + }, + 33: { + Finvc: float64(1.1953125), + Flogc: -Float64FromFloat64(0.1784076574728033), + Flogctail: -Float64FromFloat64(1.5003333854266542e-14), + }, + 34: { + Finvc: float64(1.1875), + Flogc: -Float64FromFloat64(0.17185025692663203), + Flogctail: -Float64FromFloat64(2.7194441649495324e-14), + }, + 35: { + Finvc: float64(1.1875), + Flogc: -Float64FromFloat64(0.17185025692663203), + Flogctail: -Float64FromFloat64(2.7194441649495324e-14), + }, + 36: { + Finvc: float64(1.1796875), + Flogc: -Float64FromFloat64(0.1652495728952772), + Flogctail: -Float64FromFloat64(2.99659267292569e-14), + }, + 37: { + Finvc: float64(1.171875), + Flogc: -Float64FromFloat64(0.15860503017665906), + Flogctail: float64(2.0472357800461955e-14), + }, + 38: { + Finvc: float64(1.171875), + Flogc: -Float64FromFloat64(0.15860503017665906), + Flogctail: float64(2.0472357800461955e-14), + }, + 39: { + Finvc: float64(1.1640625), + Flogc: -Float64FromFloat64(0.15191604202584585), + Flogctail: float64(3.879296723063646e-15), + }, + 40: { + Finvc: float64(1.15625), + Flogc: -Float64FromFloat64(0.1451820098444614), + Flogctail: -Float64FromFloat64(3.6506824353335045e-14), + }, + 41: { + Finvc: float64(1.1484375), + Flogc: -Float64FromFloat64(0.13840232285906495), + Flogctail: -Float64FromFloat64(5.4183331379008994e-14), + }, + 42: { + Finvc: float64(1.1484375), + Flogc: -Float64FromFloat64(0.13840232285906495), + Flogctail: -Float64FromFloat64(5.4183331379008994e-14), + }, + 43: { + Finvc: float64(1.140625), + Flogc: -Float64FromFloat64(0.131576357788731), + Flogctail: float64(1.1729485484531301e-14), + }, + 44: { + Finvc: float64(1.140625), + Flogc: -Float64FromFloat64(0.131576357788731), + Flogctail: float64(1.1729485484531301e-14), + }, + 45: { + Finvc: float64(1.1328125), + Flogc: -Float64FromFloat64(0.12470347850091912), + Flogctail: -Float64FromFloat64(3.811763084710266e-14), + }, + 46: { + Finvc: float64(1.125), + Flogc: -Float64FromFloat64(0.11778303565643), + Flogctail: float64(4.654729747598445e-14), + }, + 47: { + Finvc: float64(1.125), + Flogc: -Float64FromFloat64(0.11778303565643), + Flogctail: float64(4.654729747598445e-14), + }, + 48: { + Finvc: float64(1.1171875), + Flogc: -Float64FromFloat64(0.11081436634026431), + Flogctail: -Float64FromFloat64(2.5799991283069902e-14), + }, + 49: { + Finvc: float64(1.109375), + Flogc: -Float64FromFloat64(0.10379679368168127), + Flogctail: float64(3.7700471749674615e-14), + }, + 50: { + Finvc: float64(1.109375), + Flogc: -Float64FromFloat64(0.10379679368168127), + Flogctail: float64(3.7700471749674615e-14), + }, + 51: { + Finvc: float64(1.1015625), + Flogc: -Float64FromFloat64(0.09672962645856842), + Flogctail: float64(1.7306161136093256e-14), + }, + 52: { + Finvc: float64(1.1015625), + Flogc: -Float64FromFloat64(0.09672962645856842), + Flogctail: float64(1.7306161136093256e-14), + }, + 53: { + Finvc: float64(1.09375), + Flogc: -Float64FromFloat64(0.089612158689647), + Flogctail: -Float64FromFloat64(4.012913552726574e-14), + }, + 54: { + Finvc: float64(1.0859375), + Flogc: -Float64FromFloat64(0.08244366921110213), + Flogctail: float64(2.7541708360737882e-14), + }, + 55: { + Finvc: float64(1.0859375), + Flogc: -Float64FromFloat64(0.08244366921110213), + Flogctail: float64(2.7541708360737882e-14), + }, + 56: { + Finvc: float64(1.078125), + Flogc: -Float64FromFloat64(0.07522342123763792), + Flogctail: float64(5.0396178134370583e-14), + }, + 57: { + Finvc: float64(1.078125), + Flogc: -Float64FromFloat64(0.07522342123763792), + Flogctail: float64(5.0396178134370583e-14), + }, + 58: { + Finvc: float64(1.0703125), + Flogc: -Float64FromFloat64(0.06795066190852594), + Flogctail: float64(1.8195060030168815e-14), + }, + 59: { + Finvc: float64(1.0625), + Flogc: -Float64FromFloat64(0.06062462181648698), + Flogctail: float64(5.213620639136504e-14), + }, + 60: { + Finvc: float64(1.0625), + Flogc: -Float64FromFloat64(0.06062462181648698), + Flogctail: float64(5.213620639136504e-14), + }, + 61: { + Finvc: float64(1.0546875), + Flogc: -Float64FromFloat64(0.053244514518837605), + Flogctail: float64(2.532168943117445e-14), + }, + 62: { + Finvc: float64(1.0546875), + Flogc: -Float64FromFloat64(0.053244514518837605), + Flogctail: float64(2.532168943117445e-14), + }, + 63: { + Finvc: float64(1.046875), + Flogc: -Float64FromFloat64(0.045809536031242715), + Flogctail: -Float64FromFloat64(5.148849572685811e-14), + }, + 64: { + Finvc: float64(1.046875), + Flogc: -Float64FromFloat64(0.045809536031242715), + Flogctail: -Float64FromFloat64(5.148849572685811e-14), + }, + 65: { + Finvc: float64(1.0390625), + Flogc: -Float64FromFloat64(0.038318864302141264), + Flogctail: float64(4.6652946995830086e-15), + }, + 66: { + Finvc: float64(1.0390625), + Flogc: -Float64FromFloat64(0.038318864302141264), + Flogctail: float64(4.6652946995830086e-15), + }, + 67: { + Finvc: float64(1.03125), + Flogc: -Float64FromFloat64(0.03077165866670839), + Flogctail: -Float64FromFloat64(4.529814257790929e-14), + }, + 68: { + Finvc: float64(1.03125), + Flogc: -Float64FromFloat64(0.03077165866670839), + Flogctail: -Float64FromFloat64(4.529814257790929e-14), + }, + 69: { + Finvc: float64(1.0234375), + Flogc: -Float64FromFloat64(0.023167059281490765), + Flogctail: -Float64FromFloat64(4.361324067851568e-14), + }, + 70: { + Finvc: float64(1.015625), + Flogc: -Float64FromFloat64(0.015504186535963527), + Flogctail: -Float64FromFloat64(1.7274567499706107e-15), + }, + 71: { + Finvc: float64(1.015625), + Flogc: -Float64FromFloat64(0.015504186535963527), + Flogctail: -Float64FromFloat64(1.7274567499706107e-15), + }, + 72: { + Finvc: float64(1.0078125), + Flogc: -Float64FromFloat64(0.0077821404420319595), + Flogctail: -Float64FromFloat64(2.298941004620351e-14), + }, + 73: { + Finvc: float64(1.0078125), + Flogc: -Float64FromFloat64(0.0077821404420319595), + Flogctail: -Float64FromFloat64(2.298941004620351e-14), + }, + 74: { + Finvc: float64(1), + }, + 75: { + Finvc: float64(1), + }, + 76: { + Finvc: float64(0.9921875), + Flogc: float64(0.007843177461040796), + Flogctail: -Float64FromFloat64(1.4902732911301337e-14), + }, + 77: { + Finvc: float64(0.984375), + Flogc: float64(0.01574835696817445), + Flogctail: -Float64FromFloat64(3.527980389655325e-14), + }, + 78: { + Finvc: float64(0.9765625), + Flogc: float64(0.023716526617363343), + Flogctail: -Float64FromFloat64(4.730054772033249e-14), + }, + 79: { + Finvc: float64(0.96875), + Flogc: float64(0.03174869831457272), + Flogctail: float64(7.580310369375161e-15), + }, + 80: { + Finvc: float64(0.9609375), + Flogc: float64(0.039845908547249564), + Flogctail: -Float64FromFloat64(4.9893776716773285e-14), + }, + 81: { + Finvc: float64(0.953125), + Flogc: float64(0.048009219186383234), + Flogctail: -Float64FromFloat64(2.262629393030674e-14), + }, + 82: { + Finvc: float64(0.9453125), + Flogc: float64(0.056239718322899535), + Flogctail: -Float64FromFloat64(2.345674491018699e-14), + }, + 83: { + Finvc: float64(0.94140625), + Flogc: float64(0.06038051098892083), + Flogctail: -Float64FromFloat64(1.3352588834854848e-14), + }, + 84: { + Finvc: float64(0.93359375), + Flogc: float64(0.06871389254808946), + Flogctail: -Float64FromFloat64(3.765296820388875e-14), + }, + 85: { + Finvc: float64(0.92578125), + Flogc: float64(0.07711730334438016), + Flogctail: float64(5.1128335719851986e-14), + }, + 86: { + Finvc: float64(0.91796875), + Flogc: float64(0.08559193033545398), + Flogctail: -Float64FromFloat64(5.046674438470119e-14), + }, + 87: { + Finvc: float64(0.9140625), + Flogc: float64(0.08985632912185793), + Flogctail: float64(3.1218748807418837e-15), + }, + 88: { + Finvc: float64(0.90625), + Flogc: float64(0.09844007281321865), + Flogctail: float64(3.3871241029241416e-14), + }, + 89: { + Finvc: float64(0.8984375), + Flogc: float64(0.10709813555638448), + Flogctail: -Float64FromFloat64(1.7376727386423858e-14), + }, + 90: { + Finvc: float64(0.89453125), + Flogc: float64(0.11145544092528326), + Flogctail: float64(3.957125899799804e-14), + }, + 91: { + Finvc: float64(0.88671875), + Flogc: float64(0.12022742699821265), + Flogctail: -Float64FromFloat64(5.2849453521890294e-14), + }, + 92: { + Finvc: float64(0.8828125), + Flogc: float64(0.12464244520731427), + Flogctail: -Float64FromFloat64(3.767012502308738e-14), + }, + 93: { + Finvc: float64(0.875), + Flogc: float64(0.13353139262449076), + Flogctail: float64(3.1859736349078334e-14), + }, + 94: { + Finvc: float64(0.87109375), + Flogc: float64(0.13800567301939282), + Flogctail: float64(5.0900642926060466e-14), + }, + 95: { + Finvc: float64(0.86328125), + Flogc: float64(0.14701474296180095), + Flogctail: float64(8.710783796122478e-15), + }, + 96: { + Finvc: float64(0.859375), + Flogc: float64(0.15154989812720032), + Flogctail: float64(6.157896229122976e-16), + }, + 97: { + Finvc: float64(0.8515625), + Flogc: float64(0.16068238169043525), + Flogctail: float64(3.821577743916796e-14), + }, + 98: { + Finvc: float64(0.84765625), + Flogc: float64(0.16528009093906348), + Flogctail: float64(3.9440046718453496e-14), + }, + 99: { + Finvc: float64(0.83984375), + Flogc: float64(0.17453941635187675), + Flogctail: float64(2.2924522154618074e-14), + }, + 100: { + Finvc: float64(0.8359375), + Flogc: float64(0.17920142945774842), + Flogctail: -Float64FromFloat64(3.742530094732263e-14), + }, + 101: { + Finvc: float64(0.83203125), + Flogc: float64(0.18388527877016259), + Flogctail: -Float64FromFloat64(2.5223102140407338e-14), + }, + 102: { + Finvc: float64(0.82421875), + Flogc: float64(0.1933193110035063), + Flogctail: -Float64FromFloat64(1.0320443688698849e-14), + }, + 103: { + Finvc: float64(0.8203125), + Flogc: float64(0.19806991376208316), + Flogctail: float64(1.0634128304268335e-14), + }, + 104: { + Finvc: float64(0.8125), + Flogc: float64(0.20763936477828793), + Flogctail: -Float64FromFloat64(4.3425422595242564e-14), + }, + 105: { + Finvc: float64(0.80859375), + Flogc: float64(0.21245865121420593), + Flogctail: -Float64FromFloat64(1.2527395755711364e-14), + }, + 106: { + Finvc: float64(0.8046875), + Flogc: float64(0.21730127569003344), + Flogctail: -Float64FromFloat64(5.204008743405884e-14), + }, + 107: { + Finvc: float64(0.80078125), + Flogc: float64(0.22216746534115828), + Flogctail: -Float64FromFloat64(3.979844515951702e-15), + }, + 108: { + Finvc: float64(0.79296875), + Flogc: float64(0.2319714654378231), + Flogctail: -Float64FromFloat64(4.7955860343296286e-14), + }, + 109: { + Finvc: float64(0.7890625), + Flogc: float64(0.2369097470783572), + Flogctail: float64(5.015686013791602e-16), + }, + 110: { + Finvc: float64(0.78515625), + Flogc: float64(0.24187253642048745), + Flogctail: -Float64FromFloat64(7.252318953240293e-16), + }, + 111: { + Finvc: float64(0.78125), + Flogc: float64(0.2468600779315011), + Flogctail: float64(2.4688324156011588e-14), + }, + 112: { + Finvc: float64(0.7734375), + Flogc: float64(0.2569104137850218), + Flogctail: float64(5.465121253624792e-15), + }, + 113: { + Finvc: float64(0.76953125), + Flogc: float64(0.26197371574153294), + Flogctail: float64(4.102651071698446e-14), + }, + 114: { + Finvc: float64(0.765625), + Flogc: float64(0.2670627852490952), + Flogctail: -Float64FromFloat64(4.996736502345936e-14), + }, + 115: { + Finvc: float64(0.76171875), + Flogc: float64(0.27217788591576664), + Flogctail: float64(4.903580708156347e-14), + }, + 116: { + Finvc: float64(0.7578125), + Flogc: float64(0.27731928541618345), + Flogctail: float64(5.089628039500759e-14), + }, + 117: { + Finvc: float64(0.75390625), + Flogc: float64(0.28248725557466514), + Flogctail: float64(1.1782016386565151e-14), + }, + 118: { + Finvc: float64(0.74609375), + Flogc: float64(0.29290401643288533), + Flogctail: float64(4.727452940514406e-14), + }, + 119: { + Finvc: float64(0.7421875), + Flogc: float64(0.29815337231912054), + Flogctail: -Float64FromFloat64(4.4204083338755686e-14), + }, + 120: { + Finvc: float64(0.73828125), + Flogc: float64(0.3034304294199046), + Flogctail: float64(1.548345993498083e-14), + }, + 121: { + Finvc: float64(0.734375), + Flogc: float64(0.30873548164959175), + Flogctail: float64(2.1522127491642888e-14), + }, + 122: { + Finvc: float64(0.73046875), + Flogc: float64(0.3140688276249648), + Flogctail: float64(1.1054030169005386e-14), + }, + 123: { + Finvc: float64(0.7265625), + Flogc: float64(0.31943077076641657), + Flogctail: -Float64FromFloat64(5.534326352070679e-14), + }, + 124: { + Finvc: float64(0.72265625), + Flogc: float64(0.3248216194012912), + Flogctail: -Float64FromFloat64(5.351646604259541e-14), + }, + 125: { + Finvc: float64(0.71875), + Flogc: float64(0.33024168687052224), + Flogctail: float64(5.4612144489920215e-14), + }, + 126: { + Finvc: float64(0.71484375), + Flogc: float64(0.3356912916381134), + Flogctail: float64(2.8136969901227338e-14), + }, + 127: { + Finvc: float64(0.7109375), + Flogc: float64(0.3411707574027787), + Flogctail: -Float64FromFloat64(1.156568624616423e-14), + }, + }, +} + +var X__powf_log2_data = Tpowf_log2_data{ + Ftab: [16]struct { + Finvc float64 + Flogc float64 + }{ + 0: { + Finvc: float64(1.398907162146528), + Flogc: float64(-Float64FromFloat64(0.48430022186289673) * float64(Int32FromInt32(1)<> int32(32)) + **(**int32)(__ccgo_up(expt)) = Int32FromUint32(hx>>Int32FromInt32(20) - Uint32FromInt32(Int32FromInt32(0x3ff)+Int32FromInt32(1023)) + _k) + v1 = uint64(hx&Uint32FromInt32(0xfffff)|Uint32FromInt32((Int32FromInt32(0x3ff)+Int32FromInt32(1023))<= ln(DBL_MAX)) +// * where care is needed to avoid overflow. +// * +// * The present implementation is narrowly tailored for our hyperbolic and +// * exponential functions. We assume expt is small (0 or -1), and the caller +// * has filtered out very large x, for which overflow would be inevitable. +// */ +func X__ldexp_cexp(tls *TLS, z complex128, expt int32) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v expt=%v, (%v:)", tls, z, expt, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var exp_x, scale1, scale2, x, y float64 + var half_expt int32 + var v1 Tuint64_t + var v3 [2]float64 + var _ /* ex_expt at bp+0 */ int32 + _, _, _, _, _, _, _, _ = exp_x, half_expt, scale1, scale2, x, y, v1, v3 + x = Float64FromComplex128(z) + y = +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] + exp_x = ___frexp_exp(tls, x, bp) + expt = expt + **(**int32)(__ccgo_up(bp)) + /* + * Arrange so that scale1 * scale2 == 2**expt. We use this to + * compensate for scalbn being horrendously slow. + */ + half_expt = expt / int32(2) + v1 = Uint64FromInt32((Int32FromInt32(0x3ff)+half_expt)<>Int32FromInt32(23) - Uint32FromInt32(Int32FromInt32(0x7f)+Int32FromInt32(127)) + _k1) + v1 = hx&uint32(0x7fffff) | Uint32FromInt32((Int32FromInt32(0x7f)+Int32FromInt32(127))< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var exp_x, scale1, scale2, x, y float32 + var half_expt int32 + var v1 Tuint32_t + var v3 [2]float32 + var _ /* ex_expt at bp+0 */ int32 + _, _, _, _, _, _, _, _ = exp_x, half_expt, scale1, scale2, x, y, v1, v3 + x = Float32FromComplex64(z) + y = +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] + exp_x = ___frexp_expf(tls, x, bp) + expt = expt + **(**int32)(__ccgo_up(bp)) + half_expt = expt / int32(2) + v1 = Uint32FromInt32((int32(0x7f) + half_expt) << int32(23)) + scale1 = *(*float32)(unsafe.Pointer(&v1)) + half_expt = expt - half_expt + v1 = Uint32FromInt32((int32(0x7f) + half_expt) << int32(23)) + scale2 = *(*float32)(unsafe.Pointer(&v1)) + v3 = [2]float32{ + 0: float32(float32(float32(Xcosf(tls, y)*exp_x)*scale1) * scale2), + 1: float32(float32(float32(Xsinf(tls, y)*exp_x)*scale1) * scale2), + } + return *(*complex64)(unsafe.Pointer(&v3)) +} + +func Xcabs(tls *TLS, z complex128) (r float64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xhypot(tls, Float64FromComplex128(z), +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)]) +} + +func Xcabsf(tls *TLS, z complex64) (r float32) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xhypotf(tls, Float32FromComplex64(z), +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)]) +} + +func Xcabsl(tls *TLS, z complex128) (r float64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xcabs(tls, Complex128FromComplex128(z)) +} + +const M_PI_21 = 1.5707963267948966 + +// FIXME: Hull et al. "Implementing the complex arcsine and arccosine functions using exception handling" 1997 + +/* acos(z) = pi/2 - asin(z) */ + +func Xcacos(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float64 + _ = v1 + z = Xcasin(tls, z) + v1 = [2]float64{ + 0: float64(1.5707963267948966) - Float64FromComplex128(z), + 1: -+(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +// FIXME + +var _float_pi_2 = float32(1.5707963267948966) + +func Xcacosf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float32 + _ = v1 + z = Xcasinf(tls, z) + v1 = [2]float32{ + 0: _float_pi_2 - Float32FromComplex64(z), + 1: -+(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + } + return *(*complex64)(unsafe.Pointer(&v1)) +} + +const M_PI_22 = 0 + +/* acosh(z) = i acos(z) */ + +func Xcacosh(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var zineg int32 + var v1 uint64 + var v3 [2]float64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _, _, _ = zineg, v1, v3 + *(*float64)(unsafe.Pointer(bp)) = +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + zineg = Int32FromUint64(v1 >> Int32FromInt32(63)) + z = Xcacos(tls, z) + if zineg != 0 { + v3 = [2]float64{ + 0: +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: -Float64FromComplex128(z), + } + return *(*complex128)(unsafe.Pointer(&v3)) + } else { + v3 = [2]float64{ + 0: -+(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: Float64FromComplex128(z), + } + return *(*complex128)(unsafe.Pointer(&v3)) + } + return r +} + +func Xcacoshf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var zineg int32 + var v1 uint32 + var v3 [2]float32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _, _, _ = zineg, v1, v3 + *(*float32)(unsafe.Pointer(bp)) = +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + zineg = Int32FromUint32(v1 >> Int32FromInt32(31)) + z = Xcacosf(tls, z) + if zineg != 0 { + v3 = [2]float32{ + 0: +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: -Float32FromComplex64(z), + } + return *(*complex64)(unsafe.Pointer(&v3)) + } else { + v3 = [2]float32{ + 0: -+(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: Float32FromComplex64(z), + } + return *(*complex64)(unsafe.Pointer(&v3)) + } + return r +} + +func Xcacoshl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcacosh(tls, Complex128FromComplex128(z))) +} + +func Xcacosl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcacos(tls, Complex128FromComplex128(z))) +} + +func Xcarg(tls *TLS, z complex128) (r float64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xatan2(tls, +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], Float64FromComplex128(z)) +} + +func Xcargf(tls *TLS, z complex64) (r float32) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xatan2f(tls, +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], Float32FromComplex64(z)) +} + +func Xcargl(tls *TLS, z complex128) (r float64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xcarg(tls, Complex128FromComplex128(z)) +} + +// FIXME + +/* asin(z) = -i log(i z + sqrt(1 - z*z)) */ + +func Xcasin(tls *TLS, z complex128) (r1 complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, w complex128 + var x, y float64 + var v1, v2 [2]float64 + _, _, _, _, _, _ = r, w, x, y, v1, v2 + x = Float64FromComplex128(z) + y = +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] + v1 = [2]float64{ + 0: float64(1) - float64((x-y)*(x+y)), + 1: float64(float64(-Float64FromFloat64(2)*x) * y), + } + w = *(*complex128)(unsafe.Pointer(&v1)) + v1 = [2]float64{ + 0: -y, + 1: x, + } + r = Xclog(tls, *(*complex128)(unsafe.Pointer(&v1))+Xcsqrt(tls, w)) + v2 = [2]float64{ + 0: +(*(*[2]float64)(unsafe.Pointer(&r)))[int32(1)], + 1: -Float64FromComplex128(r), + } + return *(*complex128)(unsafe.Pointer(&v2)) +} + +// FIXME + +func Xcasinf(tls *TLS, z complex64) (r1 complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, w complex64 + var x, y float32 + var v1, v2 [2]float32 + _, _, _, _, _, _ = r, w, x, y, v1, v2 + x = Float32FromComplex64(z) + y = +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] + v1 = [2]float32{ + 0: float32(Float64FromFloat64(1) - float64((x-y)*(x+y))), + 1: float32(float64(float64(-Float64FromFloat64(2)*float64(x)) * float64(y))), + } + w = *(*complex64)(unsafe.Pointer(&v1)) + v1 = [2]float32{ + 0: -y, + 1: x, + } + r = Xclogf(tls, *(*complex64)(unsafe.Pointer(&v1))+Xcsqrtf(tls, w)) + v2 = [2]float32{ + 0: +(*(*[2]float32)(unsafe.Pointer(&r)))[int32(1)], + 1: -Float32FromComplex64(r), + } + return *(*complex64)(unsafe.Pointer(&v2)) +} + +/* asinh(z) = -i asin(i z) */ + +func Xcasinh(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float64 + _ = v1 + v1 = [2]float64{ + 0: -+(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: Float64FromComplex128(z), + } + z = Xcasin(tls, *(*complex128)(unsafe.Pointer(&v1))) + v1 = [2]float64{ + 0: +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: -Float64FromComplex128(z), + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +func Xcasinhf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float32 + _ = v1 + v1 = [2]float32{ + 0: -+(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: Float32FromComplex64(z), + } + z = Xcasinf(tls, *(*complex64)(unsafe.Pointer(&v1))) + v1 = [2]float32{ + 0: +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: -Float32FromComplex64(z), + } + return *(*complex64)(unsafe.Pointer(&v1)) +} + +func Xcasinhl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcasinh(tls, Complex128FromComplex128(z))) +} + +func Xcasinl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcasin(tls, Complex128FromComplex128(z))) +} + +const MAXNUM = 0 +const M_PI1 = 3.141592653589793 + +var _DP1 = float64(3.141592651605606) +var _DP2 = float64(1.9841871479187034e-09) +var _DP3 = float64(1.1442377452219664e-17) + +func __redupi(tls *TLS, x float64) (r float64) { + var i int64 + var t float64 + _, _ = i, t + t = x / float64(3.141592653589793) + if t >= float64(0) { + t = t + float64(0.5) + } else { + t = t - float64(0.5) + } + i = int64(t) /* the multiple */ + t = float64(i) + t = x - float64(t*_DP1) - float64(t*_DP2) - float64(t*_DP3) + return t +} + +func Xcatan(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, t, x, x2, y float64 + var w complex128 + var v1 [2]float64 + _, _, _, _, _, _, _ = a, t, w, x, x2, y, v1 + x = Float64FromComplex128(z) + y = +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] + x2 = float64(x * x) + a = float64(1) - x2 - float64(y*y) + t = float64(float64(0.5) * Xatan2(tls, float64(float64(2)*x), a)) + w = Complex128FromFloat64(__redupi(tls, t)) + t = y - float64(1) + a = x2 + float64(t*t) + t = y + float64(1) + a = (x2 + float64(t*t)) / a + v1 = [2]float64{ + 0: Float64FromComplex128(w), + 1: float64(float64(0.25) * Xlog(tls, a)), + } + w = *(*complex128)(unsafe.Pointer(&v1)) + return w +} + +const MAXNUMF = 0 + +var _DP11 = float64(3.140625) +var _DP21 = float64(0.0009675025939941406) +var _DP31 = float64(1.5099579909783765e-07) + +var _float_pi = float32(3.141592653589793) + +func __redupif(tls *TLS, xx float32) (r float32) { + var i int64 + var t, x float32 + _, _, _ = i, t, x + x = xx + t = x / _float_pi + if t >= Float32FromFloat32(0) { + t = t + Float32FromFloat32(0.5) + } else { + t = t - Float32FromFloat32(0.5) + } + i = int64(t) /* the multiple */ + t = float32(i) + t = float32(float64(x) - float64(float64(t)*_DP11) - float64(float64(t)*_DP21) - float64(float64(t)*_DP31)) + return t +} + +func Xcatanf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, t, x, x2, y float32 + var w complex64 + var v1 [2]float32 + _, _, _, _, _, _, _ = a, t, w, x, x2, y, v1 + x = Float32FromComplex64(z) + y = +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] + x2 = float32(x * x) + a = Float32FromFloat32(1) - x2 - float32(y*y) + t = float32(Float32FromFloat32(0.5) * Xatan2f(tls, float32(Float32FromFloat32(2)*x), a)) + w = Complex64FromFloat32(__redupif(tls, t)) + t = y - Float32FromFloat32(1) + a = x2 + float32(t*t) + t = y + Float32FromFloat32(1) + a = (x2 + float32(t*t)) / a + v1 = [2]float32{ + 0: Float32FromComplex64(w), + 1: float32(Float32FromFloat32(0.25) * Xlogf(tls, a)), + } + w = *(*complex64)(unsafe.Pointer(&v1)) + return w +} + +const M_PI2 = 0 + +/* atanh = -i atan(i z) */ + +func Xcatanh(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float64 + _ = v1 + v1 = [2]float64{ + 0: -+(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: Float64FromComplex128(z), + } + z = Xcatan(tls, *(*complex128)(unsafe.Pointer(&v1))) + v1 = [2]float64{ + 0: +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: -Float64FromComplex128(z), + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +func Xcatanhf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float32 + _ = v1 + v1 = [2]float32{ + 0: -+(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: Float32FromComplex64(z), + } + z = Xcatanf(tls, *(*complex64)(unsafe.Pointer(&v1))) + v1 = [2]float32{ + 0: +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: -Float32FromComplex64(z), + } + return *(*complex64)(unsafe.Pointer(&v1)) +} + +func Xcatanhl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcatanh(tls, Complex128FromComplex128(z))) +} + +func Xcatanl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcatan(tls, Complex128FromComplex128(z))) +} + +/* cos(z) = cosh(i z) */ + +func Xccos(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float64 + _ = v1 + v1 = [2]float64{ + 0: -+(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: Float64FromComplex128(z), + } + return Xccosh(tls, *(*complex128)(unsafe.Pointer(&v1))) +} + +func Xccosf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float32 + _ = v1 + v1 = [2]float32{ + 0: -+(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: Float32FromComplex64(z), + } + return Xccoshf(tls, *(*complex64)(unsafe.Pointer(&v1))) +} + +var _huge = float64(8.98846567431158e+307) + +func Xccosh(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __u, __u1 Tuint64_t + var h, x, y float64 + var hx, hy, ix, iy, lx, ly Tint32_t + var v1 [2]float64 + _, _, _, _, _, _, _, _, _, _, _, _ = __u, __u1, h, hx, hy, ix, iy, lx, ly, x, y, v1 + x = Float64FromComplex128(z) + y = +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] + __u = *(*Tuint64_t)(unsafe.Pointer(&x)) + hx = Int32FromUint64(__u >> int32(32)) + lx = Int32FromUint32(uint32(__u)) + __u1 = *(*Tuint64_t)(unsafe.Pointer(&y)) + hy = Int32FromUint64(__u1 >> int32(32)) + ly = Int32FromUint32(uint32(__u1)) + ix = int32(0x7fffffff) & hx + iy = int32(0x7fffffff) & hy + /* Handle the nearly-non-exceptional cases where x and y are finite. */ + if ix < int32(0x7ff00000) && iy < int32(0x7ff00000) { + if iy|ly == 0 { + v1 = [2]float64{ + 0: Xcosh(tls, x), + 1: float64(x * y), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + if ix < int32(0x40360000) { /* small x: normal case */ + v1 = [2]float64{ + 0: float64(Xcosh(tls, x) * Xcos(tls, y)), + 1: float64(Xsinh(tls, x) * Xsin(tls, y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* |x| >= 22, so cosh(x) ~= exp(|x|) */ + if ix < int32(0x40862e42) { + /* x < 710: exp(|x|) won't overflow */ + h = float64(Xexp(tls, Xfabs(tls, x)) * float64(0.5)) + v1 = [2]float64{ + 0: float64(h * Xcos(tls, y)), + 1: float64(Xcopysign(tls, h, x) * Xsin(tls, y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } else { + if ix < int32(0x4096bbaa) { + /* x < 1455: scale to avoid overflow */ + v1 = [2]float64{ + 0: Xfabs(tls, x), + 1: y, + } + z = X__ldexp_cexp(tls, *(*complex128)(unsafe.Pointer(&v1)), -int32(1)) + v1 = [2]float64{ + 0: Float64FromComplex128(z), + 1: float64(+(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] * Xcopysign(tls, Float64FromInt32(1), x)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } else { + /* x >= 1455: the result always overflows */ + h = float64(_huge * x) + v1 = [2]float64{ + 0: float64(float64(h*h) * Xcos(tls, y)), + 1: float64(h * Xsin(tls, y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + } + } + /* + * cosh(+-0 +- I Inf) = dNaN + I sign(d(+-0, dNaN))0. + * The sign of 0 in the result is unspecified. Choice = normally + * the same as dNaN. Raise the invalid floating-point exception. + * + * cosh(+-0 +- I NaN) = d(NaN) + I sign(d(+-0, NaN))0. + * The sign of 0 in the result is unspecified. Choice = normally + * the same as d(NaN). + */ + if ix|lx == 0 && iy >= int32(0x7ff00000) { + v1 = [2]float64{ + 0: y - y, + 1: Xcopysign(tls, Float64FromInt32(0), float64(x*(y-y))), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* + * cosh(+-Inf +- I 0) = +Inf + I (+-)(+-)0. + * + * cosh(NaN +- I 0) = d(NaN) + I sign(d(NaN, +-0))0. + * The sign of 0 in the result is unspecified. + */ + if iy|ly == 0 && ix >= int32(0x7ff00000) { + if hx&int32(0xfffff)|lx == 0 { + v1 = [2]float64{ + 0: float64(x * x), + 1: float64(Xcopysign(tls, Float64FromInt32(0), x) * y), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + v1 = [2]float64{ + 0: float64(x * x), + 1: Xcopysign(tls, Float64FromInt32(0), float64((x+x)*y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* + * cosh(x +- I Inf) = dNaN + I dNaN. + * Raise the invalid floating-point exception for finite nonzero x. + * + * cosh(x + I NaN) = d(NaN) + I d(NaN). + * Optionally raises the invalid floating-point exception for finite + * nonzero x. Choice = don't raise (except for signaling NaNs). + */ + if ix < int32(0x7ff00000) && iy >= int32(0x7ff00000) { + v1 = [2]float64{ + 0: y - y, + 1: float64(x * (y - y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* + * cosh(+-Inf + I NaN) = +Inf + I d(NaN). + * + * cosh(+-Inf +- I Inf) = +Inf + I dNaN. + * The sign of Inf in the result is unspecified. Choice = always +. + * Raise the invalid floating-point exception. + * + * cosh(+-Inf + I y) = +Inf cos(y) +- I Inf sin(y) + */ + if ix >= int32(0x7ff00000) && hx&int32(0xfffff)|lx == 0 { + if iy >= int32(0x7ff00000) { + v1 = [2]float64{ + 0: float64(x * x), + 1: float64(x * (y - y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + v1 = [2]float64{ + 0: float64(float64(x*x) * Xcos(tls, y)), + 1: float64(x * Xsin(tls, y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* + * cosh(NaN + I NaN) = d(NaN) + I d(NaN). + * + * cosh(NaN +- I Inf) = d(NaN) + I d(NaN). + * Optionally raises the invalid floating-point exception. + * Choice = raise. + * + * cosh(NaN + I y) = d(NaN) + I d(NaN). + * Optionally raises the invalid floating-point exception for finite + * nonzero y. Choice = don't raise (except for signaling NaNs). + */ + v1 = [2]float64{ + 0: float64(float64(x*x) * (y - y)), + 1: float64((x + x) * (y - y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +var _huge1 = float32(1.7014118346046923e+38) + +func Xccoshf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var h, x, y float32 + var hx, hy, ix, iy Tint32_t + var v1 [2]float32 + _, _, _, _, _, _, _, _ = h, hx, hy, ix, iy, x, y, v1 + x = Float32FromComplex64(z) + y = +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] + hx = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(&x))) + hy = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(&y))) + ix = int32(0x7fffffff) & hx + iy = int32(0x7fffffff) & hy + if ix < int32(0x7f800000) && iy < int32(0x7f800000) { + if iy == 0 { + v1 = [2]float32{ + 0: Xcoshf(tls, x), + 1: float32(x * y), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + if ix < int32(0x41100000) { /* small x: normal case */ + v1 = [2]float32{ + 0: float32(Xcoshf(tls, x) * Xcosf(tls, y)), + 1: float32(Xsinhf(tls, x) * Xsinf(tls, y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + /* |x| >= 9, so cosh(x) ~= exp(|x|) */ + if ix < int32(0x42b17218) { + /* x < 88.7: expf(|x|) won't overflow */ + h = float32(Xexpf(tls, Xfabsf(tls, x)) * Float32FromFloat32(0.5)) + v1 = [2]float32{ + 0: float32(h * Xcosf(tls, y)), + 1: float32(Xcopysignf(tls, h, x) * Xsinf(tls, y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } else { + if ix < int32(0x4340b1e7) { + /* x < 192.7: scale to avoid overflow */ + v1 = [2]float32{ + 0: Xfabsf(tls, x), + 1: y, + } + z = X__ldexp_cexpf(tls, *(*complex64)(unsafe.Pointer(&v1)), -int32(1)) + v1 = [2]float32{ + 0: Float32FromComplex64(z), + 1: float32(+(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] * Xcopysignf(tls, Float32FromInt32(1), x)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } else { + /* x >= 192.7: the result always overflows */ + h = float32(_huge1 * x) + v1 = [2]float32{ + 0: float32(float32(h*h) * Xcosf(tls, y)), + 1: float32(h * Xsinf(tls, y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + } + } + if ix == 0 && iy >= int32(0x7f800000) { + v1 = [2]float32{ + 0: y - y, + 1: Xcopysignf(tls, Float32FromInt32(0), float32(x*(y-y))), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + if iy == 0 && ix >= int32(0x7f800000) { + if hx&int32(0x7fffff) == 0 { + v1 = [2]float32{ + 0: float32(x * x), + 1: float32(Xcopysignf(tls, Float32FromInt32(0), x) * y), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + v1 = [2]float32{ + 0: float32(x * x), + 1: Xcopysignf(tls, Float32FromInt32(0), float32((x+x)*y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + if ix < int32(0x7f800000) && iy >= int32(0x7f800000) { + v1 = [2]float32{ + 0: y - y, + 1: float32(x * (y - y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + if ix >= int32(0x7f800000) && hx&int32(0x7fffff) == 0 { + if iy >= int32(0x7f800000) { + v1 = [2]float32{ + 0: float32(x * x), + 1: float32(x * (y - y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + v1 = [2]float32{ + 0: float32(float32(x*x) * Xcosf(tls, y)), + 1: float32(x * Xsinf(tls, y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + v1 = [2]float32{ + 0: float32(float32(x*x) * (y - y)), + 1: float32((x + x) * (y - y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) +} + +// C documentation +// +// //FIXME +func Xccoshl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xccosh(tls, Complex128FromComplex128(z))) +} + +func Xccosl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xccos(tls, Complex128FromComplex128(z))) +} + +var _exp_ovfl = uint32(0x40862e42) /* high bits of MAX_EXP * ln2 ~= 710 */ +var _cexp_ovfl = uint32(0x4096b8e4) /* (MAX_EXP - MIN_DENORM_EXP) * ln2 */ + +func Xcexp(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __u, __u1 Tuint64_t + var exp_x, x, y float64 + var hx, hy, lx, ly Tuint32_t + var v1 [2]float64 + _, _, _, _, _, _, _, _, _, _ = __u, __u1, exp_x, hx, hy, lx, ly, x, y, v1 + x = Float64FromComplex128(z) + y = +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] + __u = *(*Tuint64_t)(unsafe.Pointer(&y)) + hy = uint32(__u >> int32(32)) + ly = uint32(__u) + hy = hy & uint32(0x7fffffff) + /* cexp(x + I 0) = exp(x) + I 0 */ + if hy|ly == uint32(0) { + v1 = [2]float64{ + 0: Xexp(tls, x), + 1: y, + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + __u1 = *(*Tuint64_t)(unsafe.Pointer(&x)) + hx = uint32(__u1 >> int32(32)) + lx = uint32(__u1) + /* cexp(0 + I y) = cos(y) + I sin(y) */ + if hx&uint32(0x7fffffff)|lx == uint32(0) { + v1 = [2]float64{ + 0: Xcos(tls, y), + 1: Xsin(tls, y), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + if hy >= uint32(0x7ff00000) { + if lx != uint32(0) || hx&uint32(0x7fffffff) != uint32(0x7ff00000) { + /* cexp(finite|NaN +- I Inf|NaN) = NaN + I NaN */ + v1 = [2]float64{ + 0: y - y, + 1: y - y, + } + return *(*complex128)(unsafe.Pointer(&v1)) + } else { + if hx&uint32(0x80000000) != 0 { + /* cexp(-Inf +- I Inf|NaN) = 0 + I 0 */ + v1 = [2]float64{} + return *(*complex128)(unsafe.Pointer(&v1)) + } else { + /* cexp(+Inf +- I Inf|NaN) = Inf + I NaN */ + v1 = [2]float64{ + 0: x, + 1: y - y, + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + } + } + if hx >= _exp_ovfl && hx <= _cexp_ovfl { + /* + * x is between 709.7 and 1454.3, so we must scale to avoid + * overflow in exp(x). + */ + return X__ldexp_cexp(tls, z, 0) + } else { + /* + * Cases covered here: + * - x < exp_ovfl and exp(x) won't overflow (common case) + * - x > cexp_ovfl, so exp(x) * s overflows for all s > 0 + * - x = +-Inf (generated by exp()) + * - x = NaN (spurious inexact exception from y) + */ + exp_x = Xexp(tls, x) + v1 = [2]float64{ + 0: float64(exp_x * Xcos(tls, y)), + 1: float64(exp_x * Xsin(tls, y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + return r +} + +var _exp_ovfl1 = uint32(0x42b17218) /* MAX_EXP * ln2 ~= 88.722839355 */ +var _cexp_ovfl1 = uint32(0x43400074) /* (MAX_EXP - MIN_DENORM_EXP) * ln2 */ + +func Xcexpf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var exp_x, x, y float32 + var hx, hy Tuint32_t + var v1 [2]float32 + _, _, _, _, _, _ = exp_x, hx, hy, x, y, v1 + x = Float32FromComplex64(z) + y = +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] + hy = *(*Tuint32_t)(unsafe.Pointer(&y)) + hy = hy & uint32(0x7fffffff) + /* cexp(x + I 0) = exp(x) + I 0 */ + if hy == uint32(0) { + v1 = [2]float32{ + 0: Xexpf(tls, x), + 1: y, + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + hx = *(*Tuint32_t)(unsafe.Pointer(&x)) + /* cexp(0 + I y) = cos(y) + I sin(y) */ + if hx&uint32(0x7fffffff) == uint32(0) { + v1 = [2]float32{ + 0: Xcosf(tls, y), + 1: Xsinf(tls, y), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + if hy >= uint32(0x7f800000) { + if hx&uint32(0x7fffffff) != uint32(0x7f800000) { + /* cexp(finite|NaN +- I Inf|NaN) = NaN + I NaN */ + v1 = [2]float32{ + 0: y - y, + 1: y - y, + } + return *(*complex64)(unsafe.Pointer(&v1)) + } else { + if hx&uint32(0x80000000) != 0 { + /* cexp(-Inf +- I Inf|NaN) = 0 + I 0 */ + v1 = [2]float32{} + return *(*complex64)(unsafe.Pointer(&v1)) + } else { + /* cexp(+Inf +- I Inf|NaN) = Inf + I NaN */ + v1 = [2]float32{ + 0: x, + 1: y - y, + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + } + } + if hx >= _exp_ovfl1 && hx <= _cexp_ovfl1 { + /* + * x is between 88.7 and 192, so we must scale to avoid + * overflow in expf(x). + */ + return X__ldexp_cexpf(tls, z, 0) + } else { + /* + * Cases covered here: + * - x < exp_ovfl and exp(x) won't overflow (common case) + * - x > cexp_ovfl, so exp(x) * s overflows for all s > 0 + * - x = +-Inf (generated by exp()) + * - x = NaN (spurious inexact exception from y) + */ + exp_x = Xexpf(tls, x) + v1 = [2]float32{ + 0: float32(exp_x * Xcosf(tls, y)), + 1: float32(exp_x * Xsinf(tls, y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + return r +} + +// C documentation +// +// //FIXME +func Xcexpl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcexp(tls, Complex128FromComplex128(z))) +} + +func Xcimag(tls *TLS, z complex128) (r float64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] +} + +func Xcimagf(tls *TLS, z complex64) (r float32) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] +} + +func Xcimagl(tls *TLS, z complex128) (r float64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] +} + +// FIXME + +/* log(z) = log(|z|) + i arg(z) */ + +func Xclog(tls *TLS, z complex128) (r1 complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var phi, r float64 + var v1 [2]float64 + _, _, _ = phi, r, v1 + r = Xcabs(tls, z) + phi = Xcarg(tls, z) + v1 = [2]float64{ + 0: Xlog(tls, r), + 1: phi, + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +// FIXME + +func Xclogf(tls *TLS, z complex64) (r1 complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var phi, r float32 + var v1 [2]float32 + _, _, _ = phi, r, v1 + r = Xcabsf(tls, z) + phi = Xcargf(tls, z) + v1 = [2]float32{ + 0: Xlogf(tls, r), + 1: phi, + } + return *(*complex64)(unsafe.Pointer(&v1)) +} + +func Xclogl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xclog(tls, Complex128FromComplex128(z))) +} + +func Xconj(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float64 + _ = v1 + v1 = [2]float64{ + 0: Float64FromComplex128(z), + 1: -+(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +func Xconjf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float32 + _ = v1 + v1 = [2]float32{ + 0: Float32FromComplex64(z), + 1: -+(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + } + return *(*complex64)(unsafe.Pointer(&v1)) +} + +func Xconjl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float64 + _ = v1 + v1 = [2]float64{ + 0: Float64FromComplex128(z), + 1: -+(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +/* pow(z, c) = exp(c log(z)), See C99 G.6.4.1 */ + +func Xcpow(tls *TLS, z complex128, c complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v c=%v, (%v:)", tls, z, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xcexp(tls, c*Xclog(tls, z)) +} + +func Xcpowf(tls *TLS, z complex64, c complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v c=%v, (%v:)", tls, z, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xcexpf(tls, c*Xclogf(tls, z)) +} + +func Xcpowl(tls *TLS, z complex128, c complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v c=%v, (%v:)", tls, z, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcpow(tls, Complex128FromComplex128(z), Complex128FromComplex128(c))) +} + +func Xcproj(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1, v3 uint64 + var v5 bool + var v6 [2]float64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _, _, _, _ = v1, v3, v5, v6 + *(*float64)(unsafe.Pointer(bp)) = Float64FromComplex128(z) + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + ; + if v5 = BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) == Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) == Uint64FromUint64(0x7ff)< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1, v3 uint32 + var v5 bool + var v6 [2]float32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _, _, _, _ = v1, v3, v5, v6 + *(*float32)(unsafe.Pointer(bp)) = Float32FromComplex64(z) + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + ; + if v5 = BoolInt32(v1&uint32(0x7fffffff) == uint32(0x7f800000)) != 0; !v5 { + *(*float32)(unsafe.Pointer(bp)) = +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] + v3 = *(*uint32)(unsafe.Pointer(bp)) + goto _4 + _4: + } + if v5 || BoolInt32(v3&uint32(0x7fffffff) == uint32(0x7f800000)) != 0 { + v6 = [2]float32{ + 0: X__builtin_inff(tls), + 1: Xcopysignf(tls, float32(0), +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)]), + } + return *(*complex64)(unsafe.Pointer(&v6)) + } + return z +} + +func Xcprojl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcproj(tls, Complex128FromComplex128(z))) +} + +func Xcreal(tls *TLS, z complex128) (r float64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Float64FromComplex128(z) +} + +func Xcrealf(tls *TLS, z complex64) (r float32) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Float32FromComplex64(z) +} + +func Xcreall(tls *TLS, z complex128) (r float64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Float64FromComplex128(z) +} + +/* sin(z) = -i sinh(i z) */ + +func Xcsin(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float64 + _ = v1 + v1 = [2]float64{ + 0: -+(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: Float64FromComplex128(z), + } + z = Xcsinh(tls, *(*complex128)(unsafe.Pointer(&v1))) + v1 = [2]float64{ + 0: +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: -Float64FromComplex128(z), + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +func Xcsinf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float32 + _ = v1 + v1 = [2]float32{ + 0: -+(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: Float32FromComplex64(z), + } + z = Xcsinhf(tls, *(*complex64)(unsafe.Pointer(&v1))) + v1 = [2]float32{ + 0: +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: -Float32FromComplex64(z), + } + return *(*complex64)(unsafe.Pointer(&v1)) +} + +var _huge2 = float64(8.98846567431158e+307) + +func Xcsinh(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __u, __u1 Tuint64_t + var h, x, y float64 + var hx, hy, ix, iy, lx, ly Tint32_t + var v1 [2]float64 + _, _, _, _, _, _, _, _, _, _, _, _ = __u, __u1, h, hx, hy, ix, iy, lx, ly, x, y, v1 + x = Float64FromComplex128(z) + y = +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] + __u = *(*Tuint64_t)(unsafe.Pointer(&x)) + hx = Int32FromUint64(__u >> int32(32)) + lx = Int32FromUint32(uint32(__u)) + __u1 = *(*Tuint64_t)(unsafe.Pointer(&y)) + hy = Int32FromUint64(__u1 >> int32(32)) + ly = Int32FromUint32(uint32(__u1)) + ix = int32(0x7fffffff) & hx + iy = int32(0x7fffffff) & hy + /* Handle the nearly-non-exceptional cases where x and y are finite. */ + if ix < int32(0x7ff00000) && iy < int32(0x7ff00000) { + if iy|ly == 0 { + v1 = [2]float64{ + 0: Xsinh(tls, x), + 1: y, + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + if ix < int32(0x40360000) { /* small x: normal case */ + v1 = [2]float64{ + 0: float64(Xsinh(tls, x) * Xcos(tls, y)), + 1: float64(Xcosh(tls, x) * Xsin(tls, y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* |x| >= 22, so cosh(x) ~= exp(|x|) */ + if ix < int32(0x40862e42) { + /* x < 710: exp(|x|) won't overflow */ + h = float64(Xexp(tls, Xfabs(tls, x)) * float64(0.5)) + v1 = [2]float64{ + 0: float64(Xcopysign(tls, h, x) * Xcos(tls, y)), + 1: float64(h * Xsin(tls, y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } else { + if ix < int32(0x4096bbaa) { + /* x < 1455: scale to avoid overflow */ + v1 = [2]float64{ + 0: Xfabs(tls, x), + 1: y, + } + z = X__ldexp_cexp(tls, *(*complex128)(unsafe.Pointer(&v1)), -int32(1)) + v1 = [2]float64{ + 0: float64(Float64FromComplex128(z) * Xcopysign(tls, Float64FromInt32(1), x)), + 1: +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + } + return *(*complex128)(unsafe.Pointer(&v1)) + } else { + /* x >= 1455: the result always overflows */ + h = float64(_huge2 * x) + v1 = [2]float64{ + 0: float64(h * Xcos(tls, y)), + 1: float64(float64(h*h) * Xsin(tls, y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + } + } + /* + * sinh(+-0 +- I Inf) = sign(d(+-0, dNaN))0 + I dNaN. + * The sign of 0 in the result is unspecified. Choice = normally + * the same as dNaN. Raise the invalid floating-point exception. + * + * sinh(+-0 +- I NaN) = sign(d(+-0, NaN))0 + I d(NaN). + * The sign of 0 in the result is unspecified. Choice = normally + * the same as d(NaN). + */ + if ix|lx == 0 && iy >= int32(0x7ff00000) { + v1 = [2]float64{ + 0: Xcopysign(tls, Float64FromInt32(0), float64(x*(y-y))), + 1: y - y, + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* + * sinh(+-Inf +- I 0) = +-Inf + I +-0. + * + * sinh(NaN +- I 0) = d(NaN) + I +-0. + */ + if iy|ly == 0 && ix >= int32(0x7ff00000) { + if hx&int32(0xfffff)|lx == 0 { + v1 = [2]float64{ + 0: x, + 1: y, + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + v1 = [2]float64{ + 0: x, + 1: Xcopysign(tls, Float64FromInt32(0), y), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* + * sinh(x +- I Inf) = dNaN + I dNaN. + * Raise the invalid floating-point exception for finite nonzero x. + * + * sinh(x + I NaN) = d(NaN) + I d(NaN). + * Optionally raises the invalid floating-point exception for finite + * nonzero x. Choice = don't raise (except for signaling NaNs). + */ + if ix < int32(0x7ff00000) && iy >= int32(0x7ff00000) { + v1 = [2]float64{ + 0: y - y, + 1: float64(x * (y - y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* + * sinh(+-Inf + I NaN) = +-Inf + I d(NaN). + * The sign of Inf in the result is unspecified. Choice = normally + * the same as d(NaN). + * + * sinh(+-Inf +- I Inf) = +Inf + I dNaN. + * The sign of Inf in the result is unspecified. Choice = always +. + * Raise the invalid floating-point exception. + * + * sinh(+-Inf + I y) = +-Inf cos(y) + I Inf sin(y) + */ + if ix >= int32(0x7ff00000) && hx&int32(0xfffff)|lx == 0 { + if iy >= int32(0x7ff00000) { + v1 = [2]float64{ + 0: float64(x * x), + 1: float64(x * (y - y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + v1 = [2]float64{ + 0: float64(x * Xcos(tls, y)), + 1: float64(float64(X__builtin_inff(tls)) * Xsin(tls, y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* + * sinh(NaN + I NaN) = d(NaN) + I d(NaN). + * + * sinh(NaN +- I Inf) = d(NaN) + I d(NaN). + * Optionally raises the invalid floating-point exception. + * Choice = raise. + * + * sinh(NaN + I y) = d(NaN) + I d(NaN). + * Optionally raises the invalid floating-point exception for finite + * nonzero y. Choice = don't raise (except for signaling NaNs). + */ + v1 = [2]float64{ + 0: float64(float64(x*x) * (y - y)), + 1: float64((x + x) * (y - y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +var _huge3 = float32(1.7014118346046923e+38) + +func Xcsinhf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var h, x, y float32 + var hx, hy, ix, iy Tint32_t + var v1 [2]float32 + _, _, _, _, _, _, _, _ = h, hx, hy, ix, iy, x, y, v1 + x = Float32FromComplex64(z) + y = +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] + hx = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(&x))) + hy = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(&y))) + ix = int32(0x7fffffff) & hx + iy = int32(0x7fffffff) & hy + if ix < int32(0x7f800000) && iy < int32(0x7f800000) { + if iy == 0 { + v1 = [2]float32{ + 0: Xsinhf(tls, x), + 1: y, + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + if ix < int32(0x41100000) { /* small x: normal case */ + v1 = [2]float32{ + 0: float32(Xsinhf(tls, x) * Xcosf(tls, y)), + 1: float32(Xcoshf(tls, x) * Xsinf(tls, y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + /* |x| >= 9, so cosh(x) ~= exp(|x|) */ + if ix < int32(0x42b17218) { + /* x < 88.7: expf(|x|) won't overflow */ + h = float32(Xexpf(tls, Xfabsf(tls, x)) * Float32FromFloat32(0.5)) + v1 = [2]float32{ + 0: float32(Xcopysignf(tls, h, x) * Xcosf(tls, y)), + 1: float32(h * Xsinf(tls, y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } else { + if ix < int32(0x4340b1e7) { + /* x < 192.7: scale to avoid overflow */ + v1 = [2]float32{ + 0: Xfabsf(tls, x), + 1: y, + } + z = X__ldexp_cexpf(tls, *(*complex64)(unsafe.Pointer(&v1)), -int32(1)) + v1 = [2]float32{ + 0: float32(Float32FromComplex64(z) * Xcopysignf(tls, Float32FromInt32(1), x)), + 1: +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + } + return *(*complex64)(unsafe.Pointer(&v1)) + } else { + /* x >= 192.7: the result always overflows */ + h = float32(_huge3 * x) + v1 = [2]float32{ + 0: float32(h * Xcosf(tls, y)), + 1: float32(float32(h*h) * Xsinf(tls, y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + } + } + if ix == 0 && iy >= int32(0x7f800000) { + v1 = [2]float32{ + 0: Xcopysignf(tls, Float32FromInt32(0), float32(x*(y-y))), + 1: y - y, + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + if iy == 0 && ix >= int32(0x7f800000) { + if hx&int32(0x7fffff) == 0 { + v1 = [2]float32{ + 0: x, + 1: y, + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + v1 = [2]float32{ + 0: x, + 1: Xcopysignf(tls, Float32FromInt32(0), y), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + if ix < int32(0x7f800000) && iy >= int32(0x7f800000) { + v1 = [2]float32{ + 0: y - y, + 1: float32(x * (y - y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + if ix >= int32(0x7f800000) && hx&int32(0x7fffff) == 0 { + if iy >= int32(0x7f800000) { + v1 = [2]float32{ + 0: float32(x * x), + 1: float32(x * (y - y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + v1 = [2]float32{ + 0: float32(x * Xcosf(tls, y)), + 1: float32(X__builtin_inff(tls) * Xsinf(tls, y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + v1 = [2]float32{ + 0: float32(float32(x*x) * (y - y)), + 1: float32((x + x) * (y - y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) +} + +// C documentation +// +// //FIXME +func Xcsinhl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcsinh(tls, Complex128FromComplex128(z))) +} + +func Xcsinl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcsin(tls, Complex128FromComplex128(z))) +} + +const THRESH = 7.446288774449766e+307 + +/* + * gcc doesn't implement complex multiplication or division correctly, + * so we need to handle infinities specially. We turn on this pragma to + * notify conforming c99 compilers that the fast-but-incorrect code that + * gcc generates is acceptable, since the special cases have already been + * handled. + */ + +/* We risk spurious overflow for components >= DBL_MAX / (1 + sqrt(2)). */ + +func Xcsqrt(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var a, b, t float64 + var result complex128 + var scale int32 + var v1 [2]float64 + var v2, v5 uint64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _, _, _, _, _, _, _, _ = a, b, result, scale, t, v1, v2, v5 + a = Float64FromComplex128(z) + b = +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] + /* Handle special cases. */ + if z == Complex128FromInt32(0) { + v1 = [2]float64{ + 1: b, + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + *(*float64)(unsafe.Pointer(bp)) = b + v2 = *(*uint64)(unsafe.Pointer(bp)) + goto _3 +_3: + if BoolInt32(v2&(-Uint64FromUint64(1)>>Int32FromInt32(1)) == Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) == Uint64FromUint64(0x7ff)<>Int32FromInt32(63)) != 0 { + v1 = [2]float64{ + 0: Xfabs(tls, b-b), + 1: Xcopysign(tls, a, b), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } else { + v1 = [2]float64{ + 0: a, + 1: Xcopysign(tls, b-b, b), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + } + /* + * The remaining special case (b is NaN) is handled just fine by + * the normal code path below. + */ + /* Scale to avoid overflow. */ + if Xfabs(tls, a) >= float64(7.446288774449766e+307) || Xfabs(tls, b) >= float64(7.446288774449766e+307) { + a = a * float64(0.25) + b = b * float64(0.25) + scale = int32(1) + } else { + scale = 0 + } + /* Algorithm 312, CACM vol 10, Oct 1967. */ + if a >= Float64FromInt32(0) { + t = Xsqrt(tls, float64((a+Xhypot(tls, a, b))*float64(0.5))) + v1 = [2]float64{ + 0: t, + 1: b / float64(Float64FromInt32(2)*t), + } + result = *(*complex128)(unsafe.Pointer(&v1)) + } else { + t = Xsqrt(tls, float64((-a+Xhypot(tls, a, b))*float64(0.5))) + v1 = [2]float64{ + 0: Xfabs(tls, b) / float64(Float64FromInt32(2)*t), + 1: Xcopysign(tls, t, b), + } + result = *(*complex128)(unsafe.Pointer(&v1)) + } + /* Rescale. */ + if scale != 0 { + result = result * Complex128FromInt32(2) + } + return result +} + +/* + * gcc doesn't implement complex multiplication or division correctly, + * so we need to handle infinities specially. We turn on this pragma to + * notify conforming c99 compilers that the fast-but-incorrect code that + * gcc generates is acceptable, since the special cases have already been + * handled. + */ + +func Xcsqrtf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var a, b float32 + var t float64 + var v1 [2]float32 + var v2, v5 uint32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _, _, _, _, _, _ = a, b, t, v1, v2, v5 + a = Float32FromComplex64(z) + b = +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] + /* Handle special cases. */ + if z == Complex64FromInt32(0) { + v1 = [2]float32{ + 1: b, + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + *(*float32)(unsafe.Pointer(bp)) = b + v2 = *(*uint32)(unsafe.Pointer(bp)) + goto _3 +_3: + if BoolInt32(v2&uint32(0x7fffffff) == uint32(0x7f800000)) != 0 { + v1 = [2]float32{ + 0: X__builtin_inff(tls), + 1: b, + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + *(*float32)(unsafe.Pointer(bp)) = a + v2 = *(*uint32)(unsafe.Pointer(bp)) + goto _6 +_6: + if BoolInt32(v2&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + t = float64((b - b) / (b - b)) /* raise invalid if b is not a NaN */ + v1 = [2]float32{ + 0: a, + 1: float32(t), + } + return *(*complex64)(unsafe.Pointer(&v1)) /* return NaN + NaN i */ + } + *(*float32)(unsafe.Pointer(bp)) = a + v2 = *(*uint32)(unsafe.Pointer(bp)) + goto _9 +_9: + if BoolInt32(v2&uint32(0x7fffffff) == uint32(0x7f800000)) != 0 { + /* + * csqrtf(inf + NaN i) = inf + NaN i + * csqrtf(inf + y i) = inf + 0 i + * csqrtf(-inf + NaN i) = NaN +- inf i + * csqrtf(-inf + y i) = 0 + inf i + */ + *(*float32)(unsafe.Pointer(bp)) = a + v5 = *(*uint32)(unsafe.Pointer(bp)) + goto _11 + _11: + if Int32FromUint32(v5>>Int32FromInt32(31)) != 0 { + v1 = [2]float32{ + 0: Xfabsf(tls, b-b), + 1: Xcopysignf(tls, a, b), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } else { + v1 = [2]float32{ + 0: a, + 1: Xcopysignf(tls, b-b, b), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + } + /* + * The remaining special case (b is NaN) is handled just fine by + * the normal code path below. + */ + /* + * We compute t in double precision to avoid overflow and to + * provide correct rounding in nearly all cases. + * This is Algorithm 312, CACM vol 10, Oct 1967. + */ + if a >= Float32FromInt32(0) { + t = Xsqrt(tls, float64((float64(a)+Xhypot(tls, float64(a), float64(b)))*float64(0.5))) + v1 = [2]float32{ + 0: float32(t), + 1: float32(float64(b) / float64(Float64FromFloat64(2)*t)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } else { + t = Xsqrt(tls, float64((float64(-a)+Xhypot(tls, float64(a), float64(b)))*float64(0.5))) + v1 = [2]float32{ + 0: float32(float64(Xfabsf(tls, b)) / float64(Float64FromFloat64(2)*t)), + 1: Xcopysignf(tls, float32(t), b), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + return r +} + +// C documentation +// +// //FIXME +func Xcsqrtl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcsqrt(tls, Complex128FromComplex128(z))) +} + +/* tan(z) = -i tanh(i z) */ + +func Xctan(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float64 + _ = v1 + v1 = [2]float64{ + 0: -+(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: Float64FromComplex128(z), + } + z = Xctanh(tls, *(*complex128)(unsafe.Pointer(&v1))) + v1 = [2]float64{ + 0: +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: -Float64FromComplex128(z), + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +func Xctanf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float32 + _ = v1 + v1 = [2]float32{ + 0: -+(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: Float32FromComplex64(z), + } + z = Xctanhf(tls, *(*complex64)(unsafe.Pointer(&v1))) + v1 = [2]float32{ + 0: +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: -Float32FromComplex64(z), + } + return *(*complex64)(unsafe.Pointer(&v1)) +} + +func Xctanh(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var __u1, v3 Tuint64_t + var beta, denom, exp_mx, rho, s, t, x, y, v2 float64 + var hx, ix, lx Tuint32_t + var v1 [2]float64 + var v6 uint64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = __u1, beta, denom, exp_mx, hx, ix, lx, rho, s, t, x, y, v1, v2, v3, v6 + x = Float64FromComplex128(z) + y = +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] + __u1 = *(*Tuint64_t)(unsafe.Pointer(&x)) + hx = uint32(__u1 >> int32(32)) + lx = uint32(__u1) + ix = hx & uint32(0x7fffffff) + /* + * ctanh(NaN + i 0) = NaN + i 0 + * + * ctanh(NaN + i y) = NaN + i NaN for y != 0 + * + * The imaginary part has the sign of x*sin(2*y), but there's no + * special effort to get this right. + * + * ctanh(+-Inf +- i Inf) = +-1 +- 0 + * + * ctanh(+-Inf + i y) = +-1 + 0 sin(2y) for y finite + * + * The imaginary part of the sign is unspecified. This special + * case is only needed to avoid a spurious invalid exception when + * y is infinite. + */ + if ix >= uint32(0x7ff00000) { + if ix&uint32(0xfffff)|lx != 0 { /* x is NaN */ + if y == Float64FromInt32(0) { + v2 = y + } else { + v2 = float64(x * y) + } + v1 = [2]float64{ + 0: x, + 1: v2, + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + v3 = uint64(hx-Uint32FromInt32(0x40000000))<>Int32FromInt32(1)) == Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) < Uint64FromUint64(0x7ff)<= uint32(0x40360000) { /* x >= 22 */ + exp_mx = Xexp(tls, -Xfabs(tls, x)) + v1 = [2]float64{ + 0: Xcopysign(tls, Float64FromInt32(1), x), + 1: float64(float64(float64(float64(Float64FromInt32(4)*Xsin(tls, y))*Xcos(tls, y))*exp_mx) * exp_mx), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* Kahan's algorithm */ + t = Xtan(tls, y) + beta = float64(1) + float64(t*t) /* = 1 / cos^2(y) */ + s = Xsinh(tls, x) + rho = Xsqrt(tls, Float64FromInt32(1)+float64(s*s)) /* = cosh(x) */ + denom = Float64FromInt32(1) + float64(float64(beta*s)*s) + v1 = [2]float64{ + 0: float64(float64(beta*rho)*s) / denom, + 1: t / denom, + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +func Xctanhf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var beta, denom, exp_mx, rho, s, t, x, y, v2 float32 + var hx, ix, v3 Tuint32_t + var v1 [2]float32 + var v6 uint32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = beta, denom, exp_mx, hx, ix, rho, s, t, x, y, v1, v2, v3, v6 + x = Float32FromComplex64(z) + y = +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] + hx = *(*Tuint32_t)(unsafe.Pointer(&x)) + ix = hx & uint32(0x7fffffff) + if ix >= uint32(0x7f800000) { + if ix&uint32(0x7fffff) != 0 { + if y == Float32FromInt32(0) { + v2 = y + } else { + v2 = float32(x * y) + } + v1 = [2]float32{ + 0: x, + 1: v2, + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + v3 = hx - uint32(0x40000000) + x = *(*float32)(unsafe.Pointer(&v3)) + *(*float32)(unsafe.Pointer(bp)) = y + v6 = *(*uint32)(unsafe.Pointer(bp)) + goto _7 + _7: + if BoolInt32(v6&uint32(0x7fffffff) == uint32(0x7f800000)) != 0 { + v2 = y + } else { + v2 = float32(Xsinf(tls, y) * Xcosf(tls, y)) + } + v1 = [2]float32{ + 0: x, + 1: Xcopysignf(tls, Float32FromInt32(0), v2), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + *(*float32)(unsafe.Pointer(bp)) = y + v6 = *(*uint32)(unsafe.Pointer(bp)) + goto _9 +_9: + if !(BoolInt32(v6&Uint32FromInt32(0x7fffffff) < Uint32FromInt32(0x7f800000)) != 0) { + if ix != 0 { + v2 = y - y + } else { + v2 = x + } + v1 = [2]float32{ + 0: v2, + 1: y - y, + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + if ix >= uint32(0x41300000) { /* x >= 11 */ + exp_mx = Xexpf(tls, -Xfabsf(tls, x)) + v1 = [2]float32{ + 0: Xcopysignf(tls, Float32FromInt32(1), x), + 1: float32(float32(float32(float32(Float32FromInt32(4)*Xsinf(tls, y))*Xcosf(tls, y))*exp_mx) * exp_mx), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + t = Xtanf(tls, y) + beta = float32(float64(1) + float64(t*t)) + s = Xsinhf(tls, x) + rho = Xsqrtf(tls, Float32FromInt32(1)+float32(s*s)) + denom = Float32FromInt32(1) + float32(float32(beta*s)*s) + v1 = [2]float32{ + 0: float32(float32(beta*rho)*s) / denom, + 1: t / denom, + } + return *(*complex64)(unsafe.Pointer(&v1)) +} + +// C documentation +// +// //FIXME +func Xctanhl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xctanh(tls, Complex128FromComplex128(z))) +} + +func Xctanl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xctan(tls, Complex128FromComplex128(z))) +} + +const BUFSIZ = 1024 +const E2BIG = 7 +const EACCES = 13 +const EADDRINUSE = 98 +const EADDRNOTAVAIL = 99 +const EADV = 68 +const EAFNOSUPPORT = 97 +const EAGAIN = 11 +const EALREADY = 114 +const EBADE = 52 +const EBADF = 9 +const EBADFD = 77 +const EBADMSG = 74 +const EBADR = 53 +const EBADRQC = 56 +const EBADSLT = 57 +const EBFONT = 59 +const EBUSY = 16 +const ECANCELED = 125 +const ECHILD = 10 +const ECHRNG = 44 +const ECOMM = 70 +const ECONNABORTED = 103 +const ECONNREFUSED = 111 +const ECONNRESET = 104 +const EDEADLK = 35 +const EDEADLOCK = 35 +const EDESTADDRREQ = 89 +const EDOM = 33 +const EDOTDOT = 73 +const EDQUOT = 122 +const EEXIST = 17 +const EFAULT = 14 +const EFBIG = 27 +const EHOSTDOWN = 112 +const EHOSTUNREACH = 113 +const EHWPOISON = 133 +const EIDRM = 43 +const EILSEQ = 84 +const EINPROGRESS = 115 +const EINTR = 4 +const EINVAL = 22 +const EIO = 5 +const EISCONN = 106 +const EISDIR = 21 +const EISNAM = 120 +const EKEYEXPIRED = 127 +const EKEYREJECTED = 129 +const EKEYREVOKED = 128 +const EL2HLT = 51 +const EL2NSYNC = 45 +const EL3HLT = 46 +const EL3RST = 47 +const ELIBACC = 79 +const ELIBBAD = 80 +const ELIBEXEC = 83 +const ELIBMAX = 82 +const ELIBSCN = 81 +const ELNRNG = 48 +const ELOOP = 40 +const EMEDIUMTYPE = 124 +const EMFILE = 24 +const EMLINK = 31 +const EMSGSIZE = 90 +const EMULTIHOP = 72 +const ENAMETOOLONG = 36 +const ENAVAIL = 119 +const ENETDOWN = 100 +const ENETRESET = 102 +const ENETUNREACH = 101 +const ENFILE = 23 +const ENOANO = 55 +const ENOBUFS = 105 +const ENOCSI = 50 +const ENODATA = 61 +const ENODEV = 19 +const ENOENT = 2 +const ENOEXEC = 8 +const ENOKEY = 126 +const ENOLCK = 37 +const ENOLINK = 67 +const ENOMEDIUM = 123 +const ENOMEM = 12 +const ENOMSG = 42 +const ENONET = 64 +const ENOPKG = 65 +const ENOPROTOOPT = 92 +const ENOSPC = 28 +const ENOSR = 63 +const ENOSTR = 60 +const ENOSYS = 38 +const ENOTBLK = 15 +const ENOTCONN = 107 +const ENOTDIR = 20 +const ENOTEMPTY = 39 +const ENOTNAM = 118 +const ENOTRECOVERABLE = 131 +const ENOTSOCK = 88 +const ENOTSUP = 95 +const ENOTTY = 25 +const ENOTUNIQ = 76 +const ENXIO = 6 +const EOPNOTSUPP = 95 +const EOVERFLOW = 75 +const EOWNERDEAD = 130 +const EPERM = 1 +const EPFNOSUPPORT = 96 +const EPIPE = 32 +const EPROTO = 71 +const EPROTONOSUPPORT = 93 +const EPROTOTYPE = 91 +const ERANGE = 34 +const EREMCHG = 78 +const EREMOTE = 66 +const EREMOTEIO = 121 +const ERESTART = 85 +const ERFKILL = 132 +const EROFS = 30 +const ESHUTDOWN = 108 +const ESOCKTNOSUPPORT = 94 +const ESPIPE = 29 +const ESRCH = 3 +const ESRMNT = 69 +const ESTALE = 116 +const ESTRPIPE = 86 +const ETIME = 62 +const ETIMEDOUT = 110 +const ETOOMANYREFS = 109 +const ETXTBSY = 26 +const EUCLEAN = 117 +const EUNATCH = 49 +const EUSERS = 87 +const EWOULDBLOCK = 11 +const EXDEV = 18 +const EXFULL = 54 +const FILENAME_MAX = 4096 +const FOPEN_MAX = 1000 +const F_LOCK = 1 +const F_OK = 0 +const F_TEST = 3 +const F_TLOCK = 2 +const F_ULOCK = 0 +const L_ctermid = 20 +const L_tmpnam = 20 +const POSIX_CLOSE_RESTART = 0 +const P_tmpdir = "/tmp" +const R_OK = 4 +const SEEK_DATA = 3 +const SEEK_HOLE = 4 +const STDERR_FILENO = 2 +const STDIN_FILENO = 0 +const STDOUT_FILENO = 1 +const TMP_MAX = 10000 +const W_OK = 2 +const X_OK = 1 +const _CS_GNU_LIBC_VERSION = 2 +const _CS_GNU_LIBPTHREAD_VERSION = 3 +const _CS_PATH = 0 +const _CS_POSIX_V5_WIDTH_RESTRICTED_ENVS = 4 +const _CS_POSIX_V6_ILP32_OFF32_CFLAGS = 1116 +const _CS_POSIX_V6_ILP32_OFF32_LDFLAGS = 1117 +const _CS_POSIX_V6_ILP32_OFF32_LIBS = 1118 +const _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS = 1119 +const _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS = 1120 +const _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS = 1121 +const _CS_POSIX_V6_ILP32_OFFBIG_LIBS = 1122 +const _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS = 1123 +const _CS_POSIX_V6_LP64_OFF64_CFLAGS = 1124 +const _CS_POSIX_V6_LP64_OFF64_LDFLAGS = 1125 +const _CS_POSIX_V6_LP64_OFF64_LIBS = 1126 +const _CS_POSIX_V6_LP64_OFF64_LINTFLAGS = 1127 +const _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS = 1128 +const _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS = 1129 +const _CS_POSIX_V6_LPBIG_OFFBIG_LIBS = 1130 +const _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS = 1131 +const _CS_POSIX_V6_WIDTH_RESTRICTED_ENVS = 1 +const _CS_POSIX_V7_ILP32_OFF32_CFLAGS = 1132 +const _CS_POSIX_V7_ILP32_OFF32_LDFLAGS = 1133 +const _CS_POSIX_V7_ILP32_OFF32_LIBS = 1134 +const _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS = 1135 +const _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS = 1136 +const _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS = 1137 +const _CS_POSIX_V7_ILP32_OFFBIG_LIBS = 1138 +const _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS = 1139 +const _CS_POSIX_V7_LP64_OFF64_CFLAGS = 1140 +const _CS_POSIX_V7_LP64_OFF64_LDFLAGS = 1141 +const _CS_POSIX_V7_LP64_OFF64_LIBS = 1142 +const _CS_POSIX_V7_LP64_OFF64_LINTFLAGS = 1143 +const _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS = 1144 +const _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS = 1145 +const _CS_POSIX_V7_LPBIG_OFFBIG_LIBS = 1146 +const _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS = 1147 +const _CS_POSIX_V7_THREADS_CFLAGS = 1150 +const _CS_POSIX_V7_THREADS_LDFLAGS = 1151 +const _CS_POSIX_V7_WIDTH_RESTRICTED_ENVS = 5 +const _CS_V6_ENV = 1148 +const _CS_V7_ENV = 1149 +const _IOFBF = 0 +const _IOLBF = 1 +const _IONBF = 2 +const _PC_2_SYMLINKS = 20 +const _PC_ALLOC_SIZE_MIN = 18 +const _PC_ASYNC_IO = 10 +const _PC_CHOWN_RESTRICTED = 6 +const _PC_FILESIZEBITS = 13 +const _PC_LINK_MAX = 0 +const _PC_MAX_CANON = 1 +const _PC_MAX_INPUT = 2 +const _PC_NAME_MAX = 3 +const _PC_NO_TRUNC = 7 +const _PC_PATH_MAX = 4 +const _PC_PIPE_BUF = 5 +const _PC_PRIO_IO = 11 +const _PC_REC_INCR_XFER_SIZE = 14 +const _PC_REC_MAX_XFER_SIZE = 15 +const _PC_REC_MIN_XFER_SIZE = 16 +const _PC_REC_XFER_ALIGN = 17 +const _PC_SOCK_MAXBUF = 12 +const _PC_SYMLINK_MAX = 19 +const _PC_SYNC_IO = 9 +const _PC_VDISABLE = 8 +const _POSIX2_C_BIND = 200809 +const _POSIX2_VERSION = 200809 +const _POSIX_ADVISORY_INFO = 200809 +const _POSIX_ASYNCHRONOUS_IO = 200809 +const _POSIX_BARRIERS = 200809 +const _POSIX_CHOWN_RESTRICTED = 1 +const _POSIX_CLOCK_SELECTION = 200809 +const _POSIX_CPUTIME = 200809 +const _POSIX_FSYNC = 200809 +const _POSIX_IPV6 = 200809 +const _POSIX_JOB_CONTROL = 1 +const _POSIX_MAPPED_FILES = 200809 +const _POSIX_MEMLOCK = 200809 +const _POSIX_MEMLOCK_RANGE = 200809 +const _POSIX_MEMORY_PROTECTION = 200809 +const _POSIX_MESSAGE_PASSING = 200809 +const _POSIX_MONOTONIC_CLOCK = 200809 +const _POSIX_NO_TRUNC = 1 +const _POSIX_RAW_SOCKETS = 200809 +const _POSIX_READER_WRITER_LOCKS = 200809 +const _POSIX_REALTIME_SIGNALS = 200809 +const _POSIX_REGEXP = 1 +const _POSIX_SAVED_IDS = 1 +const _POSIX_SEMAPHORES = 200809 +const _POSIX_SHARED_MEMORY_OBJECTS = 200809 +const _POSIX_SHELL = 1 +const _POSIX_SPAWN = 200809 +const _POSIX_SPIN_LOCKS = 200809 +const _POSIX_THREADS = 200809 +const _POSIX_THREAD_ATTR_STACKADDR = 200809 +const _POSIX_THREAD_ATTR_STACKSIZE = 200809 +const _POSIX_THREAD_CPUTIME = 200809 +const _POSIX_THREAD_PRIORITY_SCHEDULING = 200809 +const _POSIX_THREAD_PROCESS_SHARED = 200809 +const _POSIX_THREAD_SAFE_FUNCTIONS = 200809 +const _POSIX_TIMEOUTS = 200809 +const _POSIX_TIMERS = 200809 +const _POSIX_V6_LP64_OFF64 = 1 +const _POSIX_V7_LP64_OFF64 = 1 +const _POSIX_VDISABLE = 0 +const _POSIX_VERSION = 200809 +const _SC_2_CHAR_TERM = 95 +const _SC_2_C_BIND = 47 +const _SC_2_C_DEV = 48 +const _SC_2_FORT_DEV = 49 +const _SC_2_FORT_RUN = 50 +const _SC_2_LOCALEDEF = 52 +const _SC_2_PBS = 168 +const _SC_2_PBS_ACCOUNTING = 169 +const _SC_2_PBS_CHECKPOINT = 175 +const _SC_2_PBS_LOCATE = 170 +const _SC_2_PBS_MESSAGE = 171 +const _SC_2_PBS_TRACK = 172 +const _SC_2_SW_DEV = 51 +const _SC_2_UPE = 97 +const _SC_2_VERSION = 46 +const _SC_ADVISORY_INFO = 132 +const _SC_AIO_LISTIO_MAX = 23 +const _SC_AIO_MAX = 24 +const _SC_AIO_PRIO_DELTA_MAX = 25 +const _SC_ARG_MAX = 0 +const _SC_ASYNCHRONOUS_IO = 12 +const _SC_ATEXIT_MAX = 87 +const _SC_AVPHYS_PAGES = 86 +const _SC_BARRIERS = 133 +const _SC_BC_BASE_MAX = 36 +const _SC_BC_DIM_MAX = 37 +const _SC_BC_SCALE_MAX = 38 +const _SC_BC_STRING_MAX = 39 +const _SC_CHILD_MAX = 1 +const _SC_CLK_TCK = 2 +const _SC_CLOCK_SELECTION = 137 +const _SC_COLL_WEIGHTS_MAX = 40 +const _SC_CPUTIME = 138 +const _SC_DELAYTIMER_MAX = 26 +const _SC_EXPR_NEST_MAX = 42 +const _SC_FSYNC = 15 +const _SC_GETGR_R_SIZE_MAX = 69 +const _SC_GETPW_R_SIZE_MAX = 70 +const _SC_HOST_NAME_MAX = 180 +const _SC_IOV_MAX = 60 +const _SC_IPV6 = 235 +const _SC_JOB_CONTROL = 7 +const _SC_LINE_MAX = 43 +const _SC_LOGIN_NAME_MAX = 71 +const _SC_MAPPED_FILES = 16 +const _SC_MEMLOCK = 17 +const _SC_MEMLOCK_RANGE = 18 +const _SC_MEMORY_PROTECTION = 19 +const _SC_MESSAGE_PASSING = 20 +const _SC_MINSIGSTKSZ = 249 +const _SC_MONOTONIC_CLOCK = 149 +const _SC_MQ_OPEN_MAX = 27 +const _SC_MQ_PRIO_MAX = 28 +const _SC_NGROUPS_MAX = 3 +const _SC_NPROCESSORS_CONF = 83 +const _SC_NPROCESSORS_ONLN = 84 +const _SC_NZERO = 109 +const _SC_OPEN_MAX = 4 +const _SC_PAGESIZE = 30 +const _SC_PAGE_SIZE = 30 +const _SC_PASS_MAX = 88 +const _SC_PHYS_PAGES = 85 +const _SC_PRIORITIZED_IO = 13 +const _SC_PRIORITY_SCHEDULING = 10 +const _SC_RAW_SOCKETS = 236 +const _SC_READER_WRITER_LOCKS = 153 +const _SC_REALTIME_SIGNALS = 9 +const _SC_REGEXP = 155 +const _SC_RE_DUP_MAX = 44 +const _SC_RTSIG_MAX = 31 +const _SC_SAVED_IDS = 8 +const _SC_SEMAPHORES = 21 +const _SC_SEM_NSEMS_MAX = 32 +const _SC_SEM_VALUE_MAX = 33 +const _SC_SHARED_MEMORY_OBJECTS = 22 +const _SC_SHELL = 157 +const _SC_SIGQUEUE_MAX = 34 +const _SC_SIGSTKSZ = 250 +const _SC_SPAWN = 159 +const _SC_SPIN_LOCKS = 154 +const _SC_SPORADIC_SERVER = 160 +const _SC_SS_REPL_MAX = 241 +const _SC_STREAMS = 174 +const _SC_STREAM_MAX = 5 +const _SC_SYMLOOP_MAX = 173 +const _SC_SYNCHRONIZED_IO = 14 +const _SC_THREADS = 67 +const _SC_THREAD_ATTR_STACKADDR = 77 +const _SC_THREAD_ATTR_STACKSIZE = 78 +const _SC_THREAD_CPUTIME = 139 +const _SC_THREAD_DESTRUCTOR_ITERATIONS = 73 +const _SC_THREAD_KEYS_MAX = 74 +const _SC_THREAD_PRIORITY_SCHEDULING = 79 +const _SC_THREAD_PRIO_INHERIT = 80 +const _SC_THREAD_PRIO_PROTECT = 81 +const _SC_THREAD_PROCESS_SHARED = 82 +const _SC_THREAD_ROBUST_PRIO_INHERIT = 247 +const _SC_THREAD_ROBUST_PRIO_PROTECT = 248 +const _SC_THREAD_SAFE_FUNCTIONS = 68 +const _SC_THREAD_SPORADIC_SERVER = 161 +const _SC_THREAD_STACK_MIN = 75 +const _SC_THREAD_THREADS_MAX = 76 +const _SC_TIMEOUTS = 164 +const _SC_TIMERS = 11 +const _SC_TIMER_MAX = 35 +const _SC_TRACE = 181 +const _SC_TRACE_EVENT_FILTER = 182 +const _SC_TRACE_EVENT_NAME_MAX = 242 +const _SC_TRACE_INHERIT = 183 +const _SC_TRACE_LOG = 184 +const _SC_TRACE_NAME_MAX = 243 +const _SC_TRACE_SYS_MAX = 244 +const _SC_TRACE_USER_EVENT_MAX = 245 +const _SC_TTY_NAME_MAX = 72 +const _SC_TYPED_MEMORY_OBJECTS = 165 +const _SC_TZNAME_MAX = 6 +const _SC_UIO_MAXIOV = 60 +const _SC_V6_ILP32_OFF32 = 176 +const _SC_V6_ILP32_OFFBIG = 177 +const _SC_V6_LP64_OFF64 = 178 +const _SC_V6_LPBIG_OFFBIG = 179 +const _SC_V7_ILP32_OFF32 = 237 +const _SC_V7_ILP32_OFFBIG = 238 +const _SC_V7_LP64_OFF64 = 239 +const _SC_V7_LPBIG_OFFBIG = 240 +const _SC_VERSION = 29 +const _SC_XBS5_ILP32_OFF32 = 125 +const _SC_XBS5_ILP32_OFFBIG = 126 +const _SC_XBS5_LP64_OFF64 = 127 +const _SC_XBS5_LPBIG_OFFBIG = 128 +const _SC_XOPEN_CRYPT = 92 +const _SC_XOPEN_ENH_I18N = 93 +const _SC_XOPEN_LEGACY = 129 +const _SC_XOPEN_REALTIME = 130 +const _SC_XOPEN_REALTIME_THREADS = 131 +const _SC_XOPEN_SHM = 94 +const _SC_XOPEN_STREAMS = 246 +const _SC_XOPEN_UNIX = 91 +const _SC_XOPEN_VERSION = 89 +const _SC_XOPEN_XCU_VERSION = 90 +const _SC_XOPEN_XPG2 = 98 +const _SC_XOPEN_XPG3 = 99 +const _SC_XOPEN_XPG4 = 100 +const _XOPEN_ENH_I18N = 1 +const _XOPEN_UNIX = 1 +const _XOPEN_VERSION = 700 + +type Tsize_t = uint64 + +type Tssize_t = int64 + +type Toff_t = int64 + +type Tpid_t = int32 + +type Tuid_t = uint32 + +type Tgid_t = uint32 + +type Tuseconds_t = uint32 + +type Tva_list = uintptr + +type t__isoc_va_list = uintptr + +type Tfpos_t = struct { + F__lldata [0]int64 + F__align [0]float64 + F__opaque [16]uint8 +} + +type T_G_fpos64_t = Tfpos_t + +func Xconfstr(tls *TLS, name int32, buf uintptr, len1 Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v name=%v buf=%v len1=%v, (%v:)", tls, name, buf, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var s uintptr + _ = s + s = __ccgo_ts + if !(name != 0) { + s = __ccgo_ts + 1 + } else { + if Uint32FromInt32(name) & ^Uint32FromUint32(4) != uint32(1) && Uint32FromInt32(name-int32(_CS_POSIX_V6_ILP32_OFF32_CFLAGS)) > uint32(35) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uint64(0) + } + } + // snprintf is overkill but avoid wasting code size to implement + // this completely useless function and its truncation semantics + return Uint64FromInt32(Xsnprintf(tls, buf, len1, __ccgo_ts+15, VaList(bp+8, s)) + int32(1)) +} + +const ARG_MAX = 131072 +const BC_BASE_MAX = 99 +const BC_DIM_MAX = 2048 +const BC_SCALE_MAX = 99 +const BC_STRING_MAX = 1000 +const CHARCLASS_NAME_MAX = 14 +const CHAR_BIT = 8 +const CHAR_MAX = 255 +const CHAR_MIN = 0 +const COLL_WEIGHTS_MAX = 2 +const DELAYTIMER_MAX = 2147483647 +const EXPR_NEST_MAX = 32 +const FILESIZEBITS = 64 +const HOST_NAME_MAX = 255 +const INT_MAX = 2147483647 +const INT_MIN = -2147483648 +const IOV_MAX = 1024 +const LINE_MAX = 4096 +const LLONG_MAX = 9223372036854775807 +const LLONG_MIN = -9223372036854775808 +const LOGIN_NAME_MAX = 256 +const LONG_BIT = 64 +const LONG_MAX = 9223372036854775807 +const LONG_MIN = -9223372036854775808 +const MB_LEN_MAX = 4 +const MQ_PRIO_MAX = 32768 +const NAME_MAX = 255 +const NGROUPS_MAX = 32 +const NL_ARGMAX = 9 +const NL_LANGMAX = 32 +const NL_MSGMAX = 32767 +const NL_SETMAX = 255 +const NL_TEXTMAX = 2048 +const NZERO = 20 +const PATH_MAX = 4096 +const PIPE_BUF = 4096 +const PTHREAD_DESTRUCTOR_ITERATIONS = 4 +const PTHREAD_KEYS_MAX = 128 +const PTHREAD_STACK_MIN = 2048 +const RE_DUP_MAX = 255 +const SCHAR_MAX = 127 +const SCHAR_MIN = -128 +const SEEK_CUR = 1 +const SEEK_END = 2 +const SEEK_SET = 0 +const SEM_NSEMS_MAX = 256 +const SEM_VALUE_MAX = 2147483647 +const SHRT_MAX = 32767 +const SHRT_MIN = -32768 +const SSIZE_MAX = 9223372036854775807 +const SYMLOOP_MAX = 40 +const TTY_NAME_MAX = 32 +const TZNAME_MAX = 6 +const UCHAR_MAX = 255 +const UINT_MAX = 4294967295 +const ULLONG_MAX = 18446744073709551615 +const ULONG_MAX = 18446744073709551615 +const USHRT_MAX = 65535 +const WORD_BIT = 32 +const _POSIX2_BC_BASE_MAX = 99 +const _POSIX2_BC_DIM_MAX = 2048 +const _POSIX2_BC_SCALE_MAX = 99 +const _POSIX2_BC_STRING_MAX = 1000 +const _POSIX2_CHARCLASS_NAME_MAX = 14 +const _POSIX2_COLL_WEIGHTS_MAX = 2 +const _POSIX2_EXPR_NEST_MAX = 32 +const _POSIX2_LINE_MAX = 2048 +const _POSIX2_RE_DUP_MAX = 255 +const _POSIX_AIO_LISTIO_MAX = 2 +const _POSIX_AIO_MAX = 1 +const _POSIX_ARG_MAX = 4096 +const _POSIX_CHILD_MAX = 25 +const _POSIX_CLOCKRES_MIN = 20000000 +const _POSIX_DELAYTIMER_MAX = 32 +const _POSIX_HOST_NAME_MAX = 255 +const _POSIX_LINK_MAX = 8 +const _POSIX_LOGIN_NAME_MAX = 9 +const _POSIX_MAX_CANON = 255 +const _POSIX_MAX_INPUT = 255 +const _POSIX_MQ_OPEN_MAX = 8 +const _POSIX_MQ_PRIO_MAX = 32 +const _POSIX_NAME_MAX = 14 +const _POSIX_NGROUPS_MAX = 8 +const _POSIX_OPEN_MAX = 20 +const _POSIX_PATH_MAX = 256 +const _POSIX_PIPE_BUF = 512 +const _POSIX_RE_DUP_MAX = 255 +const _POSIX_RTSIG_MAX = 8 +const _POSIX_SEM_NSEMS_MAX = 256 +const _POSIX_SEM_VALUE_MAX = 32767 +const _POSIX_SIGQUEUE_MAX = 32 +const _POSIX_SSIZE_MAX = 32767 +const _POSIX_SS_REPL_MAX = 4 +const _POSIX_STREAM_MAX = 8 +const _POSIX_SYMLINK_MAX = 255 +const _POSIX_SYMLOOP_MAX = 8 +const _POSIX_THREAD_DESTRUCTOR_ITERATIONS = 4 +const _POSIX_THREAD_KEYS_MAX = 128 +const _POSIX_THREAD_THREADS_MAX = 64 +const _POSIX_TIMER_MAX = 32 +const _POSIX_TRACE_EVENT_NAME_MAX = 30 +const _POSIX_TRACE_NAME_MAX = 8 +const _POSIX_TRACE_SYS_MAX = 8 +const _POSIX_TRACE_USER_EVENT_MAX = 32 +const _POSIX_TTY_NAME_MAX = 9 +const _POSIX_TZNAME_MAX = 6 +const _XOPEN_IOV_MAX = 16 +const _XOPEN_NAME_MAX = 255 +const _XOPEN_PATH_MAX = 1024 + +func Xfpathconf(tls *TLS, fd int32, name int32) (r int64) { + if __ccgo_strace { + trc("tls=%v fd=%v name=%v, (%v:)", tls, fd, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + if Uint64FromInt32(name) >= Uint64FromInt64(42)/Uint64FromInt64(2) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return int64(-int32(1)) + } + return int64(_values[name]) +} + +var _values = [21]int16{ + 0: int16(_POSIX_LINK_MAX), + 1: int16(_POSIX_MAX_CANON), + 2: int16(_POSIX_MAX_INPUT), + 3: int16(NAME_MAX), + 4: int16(PATH_MAX), + 5: int16(PIPE_BUF), + 6: int16(1), + 7: int16(1), + 9: int16(1), + 10: int16(-int32(1)), + 11: int16(-int32(1)), + 12: int16(-int32(1)), + 13: int16(FILESIZEBITS), + 14: int16(4096), + 15: int16(4096), + 16: int16(4096), + 17: int16(4096), + 18: int16(4096), + 19: int16(-int32(1)), + 20: int16(1), +} + +const SI_LOAD_SHIFT = 16 + +type Tsysinfo = struct { + Fuptime uint64 + Floads [3]uint64 + Ftotalram uint64 + Ffreeram uint64 + Fsharedram uint64 + Fbufferram uint64 + Ftotalswap uint64 + Ffreeswap uint64 + Fprocs uint16 + Fpad uint16 + Ftotalhigh uint64 + Ffreehigh uint64 + Fmem_unit uint32 + F__reserved [256]uint8 +} + +func Xget_nprocs_conf(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(Xsysconf(tls, int32(_SC_NPROCESSORS_CONF))) +} + +func Xget_nprocs(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(Xsysconf(tls, int32(_SC_NPROCESSORS_ONLN))) +} + +func Xget_phys_pages(tls *TLS) (r int64) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xsysconf(tls, int32(_SC_PHYS_PAGES)) +} + +func Xget_avphys_pages(tls *TLS) (r int64) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xsysconf(tls, int32(_SC_AVPHYS_PAGES)) +} + +func Xpathconf(tls *TLS, path uintptr, name int32) (r int64) { + if __ccgo_strace { + trc("tls=%v path=%v name=%v, (%v:)", tls, path, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfpathconf(tls, -int32(1), name) +} + +const AT_BASE = 7 +const AT_BASE_PLATFORM = 24 +const AT_CLKTCK = 17 +const AT_DCACHEBSIZE = 19 +const AT_EGID = 14 +const AT_ENTRY = 9 +const AT_EUID = 12 +const AT_EXECFD = 2 +const AT_EXECFN = 31 +const AT_FLAGS = 8 +const AT_FPUCW = 18 +const AT_GID = 13 +const AT_HWCAP = 16 +const AT_HWCAP2 = 26 +const AT_ICACHEBSIZE = 20 +const AT_IGNORE = 1 +const AT_IGNOREPPC = 22 +const AT_L1D_CACHEGEOMETRY = 43 +const AT_L1D_CACHESHAPE = 35 +const AT_L1D_CACHESIZE = 42 +const AT_L1I_CACHEGEOMETRY = 41 +const AT_L1I_CACHESHAPE = 34 +const AT_L1I_CACHESIZE = 40 +const AT_L2_CACHEGEOMETRY = 45 +const AT_L2_CACHESHAPE = 36 +const AT_L2_CACHESIZE = 44 +const AT_L3_CACHEGEOMETRY = 47 +const AT_L3_CACHESHAPE = 37 +const AT_L3_CACHESIZE = 46 +const AT_MINSIGSTKSZ = 51 +const AT_NOTELF = 10 +const AT_NULL = 0 +const AT_PAGESZ = 6 +const AT_PHDR = 3 +const AT_PHENT = 4 +const AT_PHNUM = 5 +const AT_PLATFORM = 15 +const AT_RANDOM = 25 +const AT_SECURE = 23 +const AT_SYSINFO = 32 +const AT_SYSINFO_EHDR = 33 +const AT_UCACHEBSIZE = 21 +const AT_UID = 11 +const BUS_ADRALN = 1 +const BUS_ADRERR = 2 +const BUS_MCEERR_AO = 5 +const BUS_MCEERR_AR = 4 +const BUS_OBJERR = 3 +const CLD_CONTINUED = 6 +const CLD_DUMPED = 3 +const CLD_EXITED = 1 +const CLD_KILLED = 2 +const CLD_STOPPED = 5 +const CLD_TRAPPED = 4 +const DF_1_CONFALT = 8192 +const DF_1_DIRECT = 256 +const DF_1_DISPRELDNE = 32768 +const DF_1_DISPRELPND = 65536 +const DF_1_EDITED = 2097152 +const DF_1_ENDFILTEE = 16384 +const DF_1_GLOBAL = 2 +const DF_1_GLOBAUDIT = 16777216 +const DF_1_GROUP = 4 +const DF_1_IGNMULDEF = 262144 +const DF_1_INITFIRST = 32 +const DF_1_INTERPOSE = 1024 +const DF_1_LOADFLTR = 16 +const DF_1_NODEFLIB = 2048 +const DF_1_NODELETE = 8 +const DF_1_NODIRECT = 131072 +const DF_1_NODUMP = 4096 +const DF_1_NOHDR = 1048576 +const DF_1_NOKSYMS = 524288 +const DF_1_NOOPEN = 64 +const DF_1_NORELOC = 4194304 +const DF_1_NOW = 1 +const DF_1_ORIGIN = 128 +const DF_1_PIE = 134217728 +const DF_1_SINGLETON = 33554432 +const DF_1_STUB = 67108864 +const DF_1_SYMINTPOSE = 8388608 +const DF_1_TRANS = 512 +const DF_BIND_NOW = 8 +const DF_ORIGIN = 1 +const DF_P1_GROUPPERM = 2 +const DF_P1_LAZYLOAD = 1 +const DF_STATIC_TLS = 16 +const DF_SYMBOLIC = 2 +const DF_TEXTREL = 4 +const DTF_1_CONFEXP = 2 +const DTF_1_PARINIT = 1 +const DT_ADDRNUM = 11 +const DT_ADDRRNGHI = 1879047935 +const DT_ADDRRNGLO = 1879047680 +const DT_ALPHA_NUM = 1 +const DT_ALPHA_PLTRO = 1879048192 +const DT_AUDIT = 1879047932 +const DT_AUXILIARY = 2147483645 +const DT_BIND_NOW = 24 +const DT_CHECKSUM = 1879047672 +const DT_CONFIG = 1879047930 +const DT_DEBUG = 21 +const DT_DEPAUDIT = 1879047931 +const DT_ENCODING = 32 +const DT_EXTRANUM = 3 +const DT_FEATURE_1 = 1879047676 +const DT_FILTER = 2147483647 +const DT_FINI = 13 +const DT_FINI_ARRAY = 26 +const DT_FINI_ARRAYSZ = 28 +const DT_FLAGS = 30 +const DT_FLAGS_1 = 1879048187 +const DT_GNU_CONFLICT = 1879047928 +const DT_GNU_CONFLICTSZ = 1879047670 +const DT_GNU_HASH = 1879047925 +const DT_GNU_LIBLIST = 1879047929 +const DT_GNU_LIBLISTSZ = 1879047671 +const DT_GNU_PRELINKED = 1879047669 +const DT_HASH = 4 +const DT_HIOS = 1879044096 +const DT_HIPROC = 2147483647 +const DT_IA_64_NUM = 1 +const DT_IA_64_PLT_RESERVE = 1879048192 +const DT_INIT = 12 +const DT_INIT_ARRAY = 25 +const DT_INIT_ARRAYSZ = 27 +const DT_JMPREL = 23 +const DT_LOOS = 1610612749 +const DT_LOPROC = 1879048192 +const DT_MIPS_AUX_DYNAMIC = 1879048241 +const DT_MIPS_BASE_ADDRESS = 1879048198 +const DT_MIPS_COMPACT_SIZE = 1879048239 +const DT_MIPS_CONFLICT = 1879048200 +const DT_MIPS_CONFLICTNO = 1879048203 +const DT_MIPS_CXX_FLAGS = 1879048226 +const DT_MIPS_DELTA_CLASS = 1879048215 +const DT_MIPS_DELTA_CLASSSYM = 1879048224 +const DT_MIPS_DELTA_CLASSSYM_NO = 1879048225 +const DT_MIPS_DELTA_CLASS_NO = 1879048216 +const DT_MIPS_DELTA_INSTANCE = 1879048217 +const DT_MIPS_DELTA_INSTANCE_NO = 1879048218 +const DT_MIPS_DELTA_RELOC = 1879048219 +const DT_MIPS_DELTA_RELOC_NO = 1879048220 +const DT_MIPS_DELTA_SYM = 1879048221 +const DT_MIPS_DELTA_SYM_NO = 1879048222 +const DT_MIPS_DYNSTR_ALIGN = 1879048235 +const DT_MIPS_FLAGS = 1879048197 +const DT_MIPS_GOTSYM = 1879048211 +const DT_MIPS_GP_VALUE = 1879048240 +const DT_MIPS_HIDDEN_GOTIDX = 1879048231 +const DT_MIPS_HIPAGENO = 1879048212 +const DT_MIPS_ICHECKSUM = 1879048195 +const DT_MIPS_INTERFACE = 1879048234 +const DT_MIPS_INTERFACE_SIZE = 1879048236 +const DT_MIPS_IVERSION = 1879048196 +const DT_MIPS_LIBLIST = 1879048201 +const DT_MIPS_LIBLISTNO = 1879048208 +const DT_MIPS_LOCALPAGE_GOTIDX = 1879048229 +const DT_MIPS_LOCAL_GOTIDX = 1879048230 +const DT_MIPS_LOCAL_GOTNO = 1879048202 +const DT_MIPS_MSYM = 1879048199 +const DT_MIPS_NUM = 54 +const DT_MIPS_OPTIONS = 1879048233 +const DT_MIPS_PERF_SUFFIX = 1879048238 +const DT_MIPS_PIXIE_INIT = 1879048227 +const DT_MIPS_PLTGOT = 1879048242 +const DT_MIPS_PROTECTED_GOTIDX = 1879048232 +const DT_MIPS_RLD_MAP = 1879048214 +const DT_MIPS_RLD_MAP_REL = 1879048245 +const DT_MIPS_RLD_TEXT_RESOLVE_ADDR = 1879048237 +const DT_MIPS_RLD_VERSION = 1879048193 +const DT_MIPS_RWPLT = 1879048244 +const DT_MIPS_SYMBOL_LIB = 1879048228 +const DT_MIPS_SYMTABNO = 1879048209 +const DT_MIPS_TIME_STAMP = 1879048194 +const DT_MIPS_UNREFEXTNO = 1879048210 +const DT_MOVEENT = 1879047674 +const DT_MOVESZ = 1879047675 +const DT_MOVETAB = 1879047934 +const DT_NEEDED = 1 +const DT_NIOS2_GP = 1879048194 +const DT_NULL = 0 +const DT_NUM = 38 +const DT_PLTGOT = 3 +const DT_PLTPAD = 1879047933 +const DT_PLTPADSZ = 1879047673 +const DT_PLTREL = 20 +const DT_PLTRELSZ = 2 +const DT_POSFLAG_1 = 1879047677 +const DT_PPC64_GLINK = 1879048192 +const DT_PPC64_NUM = 4 +const DT_PPC64_OPD = 1879048193 +const DT_PPC64_OPDSZ = 1879048194 +const DT_PPC64_OPT = 1879048195 +const DT_PPC_GOT = 1879048192 +const DT_PPC_NUM = 2 +const DT_PPC_OPT = 1879048193 +const DT_PREINIT_ARRAY = 32 +const DT_PREINIT_ARRAYSZ = 33 +const DT_PROCNUM = 54 +const DT_REL = 17 +const DT_RELA = 7 +const DT_RELACOUNT = 1879048185 +const DT_RELAENT = 9 +const DT_RELASZ = 8 +const DT_RELCOUNT = 1879048186 +const DT_RELENT = 19 +const DT_RELR = 36 +const DT_RELRENT = 37 +const DT_RELRSZ = 35 +const DT_RELSZ = 18 +const DT_RPATH = 15 +const DT_RUNPATH = 29 +const DT_SONAME = 14 +const DT_SPARC_NUM = 2 +const DT_SPARC_REGISTER = 1879048193 +const DT_STRSZ = 10 +const DT_STRTAB = 5 +const DT_SYMBOLIC = 16 +const DT_SYMENT = 11 +const DT_SYMINENT = 1879047679 +const DT_SYMINFO = 1879047935 +const DT_SYMINSZ = 1879047678 +const DT_SYMTAB = 6 +const DT_SYMTAB_SHNDX = 34 +const DT_TEXTREL = 22 +const DT_TLSDESC_GOT = 1879047927 +const DT_TLSDESC_PLT = 1879047926 +const DT_VALNUM = 12 +const DT_VALRNGHI = 1879047679 +const DT_VALRNGLO = 1879047424 +const DT_VERDEF = 1879048188 +const DT_VERDEFNUM = 1879048189 +const DT_VERNEED = 1879048190 +const DT_VERNEEDNUM = 1879048191 +const DT_VERSIONTAGNUM = 16 +const DT_VERSYM = 1879048176 +const EFA_PARISC_1_0 = 523 +const EFA_PARISC_1_1 = 528 +const EFA_PARISC_2_0 = 532 +const EF_ALPHA_32BIT = 1 +const EF_ALPHA_CANRELAX = 2 +const EF_ARM_ABI_FLOAT_HARD = 1024 +const EF_ARM_ABI_FLOAT_SOFT = 512 +const EF_ARM_ALIGN8 = 64 +const EF_ARM_APCS_26 = 8 +const EF_ARM_APCS_FLOAT = 16 +const EF_ARM_BE8 = 8388608 +const EF_ARM_DYNSYMSUSESEGIDX = 8 +const EF_ARM_EABIMASK = 4278190080 +const EF_ARM_EABI_UNKNOWN = 0 +const EF_ARM_EABI_VER1 = 16777216 +const EF_ARM_EABI_VER2 = 33554432 +const EF_ARM_EABI_VER3 = 50331648 +const EF_ARM_EABI_VER4 = 67108864 +const EF_ARM_EABI_VER5 = 83886080 +const EF_ARM_HASENTRY = 2 +const EF_ARM_INTERWORK = 4 +const EF_ARM_LE8 = 4194304 +const EF_ARM_MAPSYMSFIRST = 16 +const EF_ARM_MAVERICK_FLOAT = 2048 +const EF_ARM_NEW_ABI = 128 +const EF_ARM_OLD_ABI = 256 +const EF_ARM_PIC = 32 +const EF_ARM_RELEXEC = 1 +const EF_ARM_SOFT_FLOAT = 512 +const EF_ARM_SYMSARESORTED = 4 +const EF_ARM_VFP_FLOAT = 1024 +const EF_CPU32 = 8454144 +const EF_IA_64_ABI64 = 16 +const EF_IA_64_ARCH = 4278190080 +const EF_IA_64_MASKOS = 15 +const EF_LARCH_ABI_DOUBLE_FLOAT = 3 +const EF_LARCH_ABI_MODIFIER_MASK = 7 +const EF_LARCH_ABI_SINGLE_FLOAT = 2 +const EF_LARCH_ABI_SOFT_FLOAT = 1 +const EF_LARCH_OBJABI_V1 = 64 +const EF_MIPS_64BIT_WHIRL = 16 +const EF_MIPS_ABI2 = 32 +const EF_MIPS_ABI_ON32 = 64 +const EF_MIPS_ARCH = 4026531840 +const EF_MIPS_ARCH_1 = 0 +const EF_MIPS_ARCH_2 = 268435456 +const EF_MIPS_ARCH_3 = 536870912 +const EF_MIPS_ARCH_32 = 1342177280 +const EF_MIPS_ARCH_32R2 = 1879048192 +const EF_MIPS_ARCH_4 = 805306368 +const EF_MIPS_ARCH_5 = 1073741824 +const EF_MIPS_ARCH_64 = 1610612736 +const EF_MIPS_ARCH_64R2 = 2147483648 +const EF_MIPS_CPIC = 4 +const EF_MIPS_FP64 = 512 +const EF_MIPS_NAN2008 = 1024 +const EF_MIPS_NOREORDER = 1 +const EF_MIPS_PIC = 2 +const EF_MIPS_XGOT = 8 +const EF_PARISC_ARCH = 65535 +const EF_PARISC_EXT = 131072 +const EF_PARISC_LAZYSWAP = 4194304 +const EF_PARISC_LSB = 262144 +const EF_PARISC_NO_KABP = 1048576 +const EF_PARISC_TRAPNIL = 65536 +const EF_PARISC_WIDE = 524288 +const EF_PPC64_ABI = 3 +const EF_PPC_EMB = 2147483648 +const EF_PPC_RELOCATABLE = 65536 +const EF_PPC_RELOCATABLE_LIB = 32768 +const EF_SH1 = 1 +const EF_SH2 = 2 +const EF_SH2A = 13 +const EF_SH2A_NOFPU = 19 +const EF_SH2A_SH3E = 24 +const EF_SH2A_SH3_NOFPU = 22 +const EF_SH2A_SH4 = 23 +const EF_SH2A_SH4_NOFPU = 21 +const EF_SH2E = 11 +const EF_SH3 = 3 +const EF_SH3E = 8 +const EF_SH3_DSP = 5 +const EF_SH3_NOMMU = 20 +const EF_SH4 = 9 +const EF_SH4A = 12 +const EF_SH4AL_DSP = 6 +const EF_SH4A_NOFPU = 17 +const EF_SH4_NOFPU = 16 +const EF_SH4_NOMMU_NOFPU = 18 +const EF_SH_DSP = 4 +const EF_SH_MACH_MASK = 31 +const EF_SH_UNKNOWN = 0 +const EF_SPARCV9_MM = 3 +const EF_SPARCV9_PSO = 1 +const EF_SPARCV9_RMO = 2 +const EF_SPARCV9_TSO = 0 +const EF_SPARC_32PLUS = 256 +const EF_SPARC_EXT_MASK = 16776960 +const EF_SPARC_HAL_R1 = 1024 +const EF_SPARC_LEDATA = 8388608 +const EF_SPARC_SUN_US1 = 512 +const EF_SPARC_SUN_US3 = 2048 +const EI_ABIVERSION = 8 +const EI_CLASS = 4 +const EI_DATA = 5 +const EI_MAG0 = 0 +const EI_MAG1 = 1 +const EI_MAG2 = 2 +const EI_MAG3 = 3 +const EI_NIDENT = 16 +const EI_OSABI = 7 +const EI_PAD = 9 +const EI_VERSION = 6 +const ELFCLASS32 = 1 +const ELFCLASS64 = 2 +const ELFCLASSNONE = 0 +const ELFCLASSNUM = 3 +const ELFCOMPRESS_HIOS = 1879048191 +const ELFCOMPRESS_HIPROC = 2147483647 +const ELFCOMPRESS_LOOS = 1610612736 +const ELFCOMPRESS_LOPROC = 1879048192 +const ELFCOMPRESS_ZLIB = 1 +const ELFCOMPRESS_ZSTD = 2 +const ELFDATA2LSB = 1 +const ELFDATA2MSB = 2 +const ELFDATANONE = 0 +const ELFDATANUM = 3 +const ELFMAG = "\\177ELF" +const ELFMAG0 = 127 +const ELFMAG1 = 69 +const ELFMAG2 = 76 +const ELFMAG3 = 70 +const ELFOSABI_AIX = 7 +const ELFOSABI_ARM = 97 +const ELFOSABI_FREEBSD = 9 +const ELFOSABI_GNU = 3 +const ELFOSABI_HPUX = 1 +const ELFOSABI_IRIX = 8 +const ELFOSABI_LINUX = 3 +const ELFOSABI_MODESTO = 11 +const ELFOSABI_NETBSD = 2 +const ELFOSABI_NONE = 0 +const ELFOSABI_OPENBSD = 12 +const ELFOSABI_SOLARIS = 6 +const ELFOSABI_STANDALONE = 255 +const ELFOSABI_SYSV = 0 +const ELFOSABI_TRU64 = 10 +const ELF_NOTE_ABI = 1 +const ELF_NOTE_GNU = "GNU" +const ELF_NOTE_OS_FREEBSD = 3 +const ELF_NOTE_OS_GNU = 1 +const ELF_NOTE_OS_LINUX = 0 +const ELF_NOTE_OS_SOLARIS2 = 2 +const ELF_NOTE_PAGESIZE_HINT = 1 +const ELF_NOTE_SOLARIS = "SUNW Solaris" +const EM_386 = 3 +const EM_56800EX = 200 +const EM_68HC05 = 72 +const EM_68HC08 = 71 +const EM_68HC11 = 70 +const EM_68HC12 = 53 +const EM_68HC16 = 69 +const EM_68K = 4 +const EM_78KOR = 199 +const EM_8051 = 165 +const EM_860 = 7 +const EM_88K = 5 +const EM_960 = 19 +const EM_AARCH64 = 183 +const EM_ALPHA = 36902 +const EM_ALTERA_NIOS2 = 113 +const EM_AMDGPU = 224 +const EM_ARC = 45 +const EM_ARCA = 109 +const EM_ARC_A5 = 93 +const EM_ARC_COMPACT = 93 +const EM_ARC_COMPACT2 = 195 +const EM_ARM = 40 +const EM_AVR = 83 +const EM_AVR32 = 185 +const EM_BA1 = 201 +const EM_BA2 = 202 +const EM_BLACKFIN = 106 +const EM_BPF = 247 +const EM_C166 = 116 +const EM_CDP = 215 +const EM_CE = 119 +const EM_CLOUDSHIELD = 192 +const EM_COGE = 216 +const EM_COLDFIRE = 52 +const EM_COOL = 217 +const EM_COREA_1ST = 193 +const EM_COREA_2ND = 194 +const EM_CR = 103 +const EM_CR16 = 177 +const EM_CRAYNV2 = 172 +const EM_CRIS = 76 +const EM_CRX = 114 +const EM_CSKY = 252 +const EM_CSR_KALIMBA = 219 +const EM_CUDA = 190 +const EM_CYPRESS_M8C = 161 +const EM_D10V = 85 +const EM_D30V = 86 +const EM_DSP24 = 136 +const EM_DSPIC30F = 118 +const EM_DXP = 112 +const EM_ECOG16 = 176 +const EM_ECOG1X = 168 +const EM_ECOG2 = 134 +const EM_EMX16 = 212 +const EM_EMX8 = 213 +const EM_ETPU = 178 +const EM_EXCESS = 111 +const EM_F2MC16 = 104 +const EM_FAKE_ALPHA = 41 +const EM_FIREPATH = 78 +const EM_FR20 = 37 +const EM_FR30 = 84 +const EM_FT32 = 222 +const EM_FX66 = 66 +const EM_H8S = 48 +const EM_H8_300 = 46 +const EM_H8_300H = 47 +const EM_H8_500 = 49 +const EM_HUANY = 81 +const EM_IA_64 = 50 +const EM_IP2K = 101 +const EM_JAVELIN = 77 +const EM_K10M = 181 +const EM_KM32 = 210 +const EM_KMX32 = 211 +const EM_KVARC = 214 +const EM_L10M = 180 +const EM_LATTICEMICO32 = 138 +const EM_LOONGARCH = 258 +const EM_M16C = 117 +const EM_M32 = 1 +const EM_M32C = 120 +const EM_M32R = 88 +const EM_MANIK = 171 +const EM_MAX = 102 +const EM_MAXQ30 = 169 +const EM_MCHP_PIC = 204 +const EM_MCST_ELBRUS = 175 +const EM_ME16 = 59 +const EM_METAG = 174 +const EM_MICROBLAZE = 189 +const EM_MIPS = 8 +const EM_MIPS_RS3_LE = 10 +const EM_MIPS_X = 51 +const EM_MMA = 54 +const EM_MMDSP_PLUS = 160 +const EM_MMIX = 80 +const EM_MN10200 = 90 +const EM_MN10300 = 89 +const EM_MOXIE = 223 +const EM_MSP430 = 105 +const EM_NCPU = 56 +const EM_NDR1 = 57 +const EM_NDS32 = 167 +const EM_NONE = 0 +const EM_NORC = 218 +const EM_NS32K = 97 +const EM_NUM = 259 +const EM_OPEN8 = 196 +const EM_OPENRISC = 92 +const EM_OR1K = 92 +const EM_PARISC = 15 +const EM_PCP = 55 +const EM_PDSP = 63 +const EM_PJ = 91 +const EM_PPC = 20 +const EM_PPC64 = 21 +const EM_PRISM = 82 +const EM_QDSP6 = 164 +const EM_R32C = 162 +const EM_RCE = 39 +const EM_RH32 = 38 +const EM_RISCV = 243 +const EM_RL78 = 197 +const EM_RS08 = 132 +const EM_RX = 173 +const EM_S370 = 9 +const EM_S390 = 22 +const EM_SCORE7 = 135 +const EM_SEP = 108 +const EM_SE_C17 = 139 +const EM_SE_C33 = 107 +const EM_SH = 42 +const EM_SHARC = 133 +const EM_SLE9X = 179 +const EM_SNP1K = 99 +const EM_SPARC = 2 +const EM_SPARC32PLUS = 18 +const EM_SPARCV9 = 43 +const EM_ST100 = 60 +const EM_ST19 = 74 +const EM_ST200 = 100 +const EM_ST7 = 68 +const EM_ST9PLUS = 67 +const EM_STARCORE = 58 +const EM_STM8 = 186 +const EM_STXP7X = 166 +const EM_SVX = 73 +const EM_TILE64 = 187 +const EM_TILEGX = 191 +const EM_TILEPRO = 188 +const EM_TINYJ = 61 +const EM_TI_ARP32 = 143 +const EM_TI_C2000 = 141 +const EM_TI_C5500 = 142 +const EM_TI_C6000 = 140 +const EM_TI_PRU = 144 +const EM_TMM_GPP = 96 +const EM_TPC = 98 +const EM_TRICORE = 44 +const EM_TRIMEDIA = 163 +const EM_TSK3000 = 131 +const EM_UNICORE = 110 +const EM_V800 = 36 +const EM_V850 = 87 +const EM_VAX = 75 +const EM_VIDEOCORE = 95 +const EM_VIDEOCORE3 = 137 +const EM_VIDEOCORE5 = 198 +const EM_VISIUM = 221 +const EM_VPP500 = 17 +const EM_X86_64 = 62 +const EM_XCORE = 203 +const EM_XGATE = 115 +const EM_XIMO16 = 170 +const EM_XTENSA = 94 +const EM_Z80 = 220 +const EM_ZSP = 79 +const ET_CORE = 4 +const ET_DYN = 3 +const ET_EXEC = 2 +const ET_HIOS = 65279 +const ET_HIPROC = 65535 +const ET_LOOS = 65024 +const ET_LOPROC = 65280 +const ET_NONE = 0 +const ET_NUM = 5 +const ET_REL = 1 +const EV_CURRENT = 1 +const EV_NONE = 0 +const EV_NUM = 2 +const EXIT_FAILURE = 1 +const EXIT_SUCCESS = 0 +const E_MIPS_ARCH_1 = 0 +const E_MIPS_ARCH_2 = 268435456 +const E_MIPS_ARCH_3 = 536870912 +const E_MIPS_ARCH_32 = 1342177280 +const E_MIPS_ARCH_4 = 805306368 +const E_MIPS_ARCH_5 = 1073741824 +const E_MIPS_ARCH_64 = 1610612736 +const FD_SETSIZE = 1024 +const FPE_FLTDIV = 3 +const FPE_FLTINV = 7 +const FPE_FLTOVF = 4 +const FPE_FLTRES = 6 +const FPE_FLTSUB = 8 +const FPE_FLTUND = 5 +const FPE_INTDIV = 1 +const FPE_INTOVF = 2 +const GRP_COMDAT = 1 +const ILL_BADSTK = 8 +const ILL_COPROC = 7 +const ILL_ILLADR = 3 +const ILL_ILLOPC = 1 +const ILL_ILLOPN = 2 +const ILL_ILLTRP = 4 +const ILL_PRVOPC = 5 +const ILL_PRVREG = 6 +const IPC_64 = 0 +const ITIMER_PROF = 2 +const ITIMER_REAL = 0 +const ITIMER_VIRTUAL = 1 +const JT_ARG_MAX = -254 +const JT_AVPHYS_PAGES = -247 +const JT_DELAYTIMER_MAX = -245 +const JT_MINSIGSTKSZ = -244 +const JT_MQ_PRIO_MAX = -253 +const JT_NPROCESSORS_CONF = -250 +const JT_NPROCESSORS_ONLN = -249 +const JT_PAGE_SIZE = -252 +const JT_PHYS_PAGES = -248 +const JT_SEM_VALUE_MAX = -251 +const JT_SIGSTKSZ = -243 +const JT_ZERO = -246 +const LITUSE_ALPHA_ADDR = 0 +const LITUSE_ALPHA_BASE = 1 +const LITUSE_ALPHA_BYTOFF = 2 +const LITUSE_ALPHA_JSR = 3 +const LITUSE_ALPHA_TLS_GD = 4 +const LITUSE_ALPHA_TLS_LDM = 5 +const LL_DELAY_LOAD = 16 +const LL_DELTA = 32 +const LL_EXACT_MATCH = 1 +const LL_EXPORTS = 8 +const LL_IGNORE_INT_VER = 2 +const LL_NONE = 0 +const LL_REQUIRE_MINOR = 4 +const MB_CUR_MAX = 0 +const MINSIGSTKSZ = 2048 +const MIPS_AFL_ASE_DSP = 1 +const MIPS_AFL_ASE_DSPR2 = 2 +const MIPS_AFL_ASE_EVA = 4 +const MIPS_AFL_ASE_MASK = 8191 +const MIPS_AFL_ASE_MCU = 8 +const MIPS_AFL_ASE_MDMX = 16 +const MIPS_AFL_ASE_MICROMIPS = 2048 +const MIPS_AFL_ASE_MIPS16 = 1024 +const MIPS_AFL_ASE_MIPS3D = 32 +const MIPS_AFL_ASE_MSA = 512 +const MIPS_AFL_ASE_MT = 64 +const MIPS_AFL_ASE_SMARTMIPS = 128 +const MIPS_AFL_ASE_VIRT = 256 +const MIPS_AFL_ASE_XPA = 4096 +const MIPS_AFL_EXT_10000 = 11 +const MIPS_AFL_EXT_3900 = 10 +const MIPS_AFL_EXT_4010 = 8 +const MIPS_AFL_EXT_4100 = 9 +const MIPS_AFL_EXT_4111 = 13 +const MIPS_AFL_EXT_4120 = 14 +const MIPS_AFL_EXT_4650 = 7 +const MIPS_AFL_EXT_5400 = 15 +const MIPS_AFL_EXT_5500 = 16 +const MIPS_AFL_EXT_5900 = 6 +const MIPS_AFL_EXT_LOONGSON_2E = 17 +const MIPS_AFL_EXT_LOONGSON_2F = 18 +const MIPS_AFL_EXT_LOONGSON_3A = 4 +const MIPS_AFL_EXT_OCTEON = 5 +const MIPS_AFL_EXT_OCTEON2 = 2 +const MIPS_AFL_EXT_OCTEONP = 3 +const MIPS_AFL_EXT_SB1 = 12 +const MIPS_AFL_EXT_XLR = 1 +const MIPS_AFL_FLAGS1_ODDSPREG = 1 +const MIPS_AFL_REG_128 = 3 +const MIPS_AFL_REG_32 = 1 +const MIPS_AFL_REG_64 = 2 +const MIPS_AFL_REG_NONE = 0 +const NT_386_IOPERM = 513 +const NT_386_TLS = 512 +const NT_ARC_V2 = 1536 +const NT_ARM_HW_BREAK = 1026 +const NT_ARM_HW_WATCH = 1027 +const NT_ARM_PACA_KEYS = 1031 +const NT_ARM_PACG_KEYS = 1032 +const NT_ARM_PAC_ENABLED_KEYS = 1034 +const NT_ARM_PAC_MASK = 1030 +const NT_ARM_SVE = 1029 +const NT_ARM_SYSTEM_CALL = 1028 +const NT_ARM_TAGGED_ADDR_CTRL = 1033 +const NT_ARM_TLS = 1025 +const NT_ARM_VFP = 1024 +const NT_ASRS = 8 +const NT_AUXV = 6 +const NT_FILE = 1179208773 +const NT_FPREGSET = 2 +const NT_GNU_ABI_TAG = 1 +const NT_GNU_BUILD_ID = 3 +const NT_GNU_GOLD_VERSION = 4 +const NT_GNU_PROPERTY_TYPE_0 = 5 +const NT_GWINDOWS = 7 +const NT_LOONGARCH_CPUCFG = 2560 +const NT_LOONGARCH_CSR = 2561 +const NT_LOONGARCH_LASX = 2563 +const NT_LOONGARCH_LBT = 2564 +const NT_LOONGARCH_LSX = 2562 +const NT_LWPSINFO = 17 +const NT_LWPSTATUS = 16 +const NT_METAG_CBUF = 1280 +const NT_METAG_RPIPE = 1281 +const NT_METAG_TLS = 1282 +const NT_MIPS_DSP = 2048 +const NT_MIPS_FP_MODE = 2049 +const NT_MIPS_MSA = 2050 +const NT_PLATFORM = 5 +const NT_PPC_DSCR = 261 +const NT_PPC_EBB = 262 +const NT_PPC_PMU = 263 +const NT_PPC_PPR = 260 +const NT_PPC_SPE = 257 +const NT_PPC_TAR = 259 +const NT_PPC_TM_CDSCR = 271 +const NT_PPC_TM_CFPR = 265 +const NT_PPC_TM_CGPR = 264 +const NT_PPC_TM_CPPR = 270 +const NT_PPC_TM_CTAR = 269 +const NT_PPC_TM_CVMX = 266 +const NT_PPC_TM_CVSX = 267 +const NT_PPC_TM_SPR = 268 +const NT_PPC_VMX = 256 +const NT_PPC_VSX = 258 +const NT_PRCRED = 14 +const NT_PRFPREG = 2 +const NT_PRFPXREG = 20 +const NT_PRPSINFO = 3 +const NT_PRSTATUS = 1 +const NT_PRXFPREG = 1189489535 +const NT_PRXREG = 4 +const NT_PSINFO = 13 +const NT_PSTATUS = 10 +const NT_RISCV_CSR = 2304 +const NT_RISCV_VECTOR = 2305 +const NT_S390_CTRS = 772 +const NT_S390_GS_BC = 780 +const NT_S390_GS_CB = 779 +const NT_S390_HIGH_GPRS = 768 +const NT_S390_LAST_BREAK = 774 +const NT_S390_PREFIX = 773 +const NT_S390_RI_CB = 781 +const NT_S390_SYSTEM_CALL = 775 +const NT_S390_TDB = 776 +const NT_S390_TIMER = 769 +const NT_S390_TODCMP = 770 +const NT_S390_TODPREG = 771 +const NT_S390_VXRS_HIGH = 778 +const NT_S390_VXRS_LOW = 777 +const NT_SIGINFO = 1397311305 +const NT_TASKSTRUCT = 4 +const NT_UTSNAME = 15 +const NT_VERSION = 1 +const NT_VMCOREDD = 1792 +const NT_X86_XSTATE = 514 +const ODK_EXCEPTIONS = 2 +const ODK_FILL = 5 +const ODK_HWAND = 7 +const ODK_HWOR = 8 +const ODK_HWPATCH = 4 +const ODK_NULL = 0 +const ODK_PAD = 3 +const ODK_REGINFO = 1 +const ODK_TAGS = 6 +const OEX_DISMISS = 524288 +const OEX_FPDBUG = 262144 +const OEX_FPU_DIV0 = 8 +const OEX_FPU_INEX = 1 +const OEX_FPU_INVAL = 16 +const OEX_FPU_MAX = 7936 +const OEX_FPU_MIN = 31 +const OEX_FPU_OFLO = 4 +const OEX_FPU_UFLO = 2 +const OEX_PAGE0 = 65536 +const OEX_PRECISEFP = 262144 +const OEX_SMM = 131072 +const OHWA0_R4KEOP_CHECKED = 1 +const OHWA1_R4KEOP_CLEAN = 2 +const OHW_R4KEOP = 1 +const OHW_R5KCVTL = 8 +const OHW_R5KEOP = 4 +const OHW_R8KPFETCH = 2 +const OPAD_POSTFIX = 2 +const OPAD_PREFIX = 1 +const OPAD_SYMBOL = 4 +const PF_ARM_ABS = 1073741824 +const PF_ARM_PI = 536870912 +const PF_ARM_SB = 268435456 +const PF_HP_CODE = 16777216 +const PF_HP_FAR_SHARED = 2097152 +const PF_HP_LAZYSWAP = 67108864 +const PF_HP_MODIFY = 33554432 +const PF_HP_NEAR_SHARED = 4194304 +const PF_HP_PAGE_SIZE = 1048576 +const PF_HP_SBP = 134217728 +const PF_IA_64_NORECOV = 2147483648 +const PF_MASKOS = 267386880 +const PF_MASKPROC = 4026531840 +const PF_MIPS_LOCAL = 268435456 +const PF_PARISC_SBP = 134217728 +const PF_R = 4 +const PF_W = 2 +const PF_X = 1 +const PN_XNUM = 65535 +const POLL_ERR = 4 +const POLL_HUP = 6 +const POLL_IN = 1 +const POLL_MSG = 3 +const POLL_OUT = 2 +const POLL_PRI = 5 +const PPC64_OPT_LOCALENTRY = 4 +const PPC64_OPT_MULTI_TOC = 2 +const PPC64_OPT_TLS = 1 +const PPC_OPT_TLS = 1 +const PRIO_MAX = 20 +const PRIO_MIN = -20 +const PRIO_PGRP = 1 +const PRIO_PROCESS = 0 +const PRIO_USER = 2 +const PT_ARM_EXIDX = 1879048193 +const PT_DYNAMIC = 2 +const PT_GNU_EH_FRAME = 1685382480 +const PT_GNU_PROPERTY = 1685382483 +const PT_GNU_RELRO = 1685382482 +const PT_GNU_STACK = 1685382481 +const PT_HIOS = 1879048191 +const PT_HIPROC = 2147483647 +const PT_HISUNW = 1879048191 +const PT_HP_CORE_COMM = 1610612740 +const PT_HP_CORE_KERNEL = 1610612739 +const PT_HP_CORE_LOADABLE = 1610612742 +const PT_HP_CORE_MMF = 1610612745 +const PT_HP_CORE_NONE = 1610612737 +const PT_HP_CORE_PROC = 1610612741 +const PT_HP_CORE_SHM = 1610612744 +const PT_HP_CORE_STACK = 1610612743 +const PT_HP_CORE_VERSION = 1610612738 +const PT_HP_FASTBIND = 1610612753 +const PT_HP_HSL_ANNOT = 1610612755 +const PT_HP_OPT_ANNOT = 1610612754 +const PT_HP_PARALLEL = 1610612752 +const PT_HP_STACK = 1610612756 +const PT_HP_TLS = 1610612736 +const PT_IA_64_ARCHEXT = 1879048192 +const PT_IA_64_HP_HSL_ANOT = 1610612755 +const PT_IA_64_HP_OPT_ANOT = 1610612754 +const PT_IA_64_HP_STACK = 1610612756 +const PT_IA_64_UNWIND = 1879048193 +const PT_INTERP = 3 +const PT_LOAD = 1 +const PT_LOOS = 1610612736 +const PT_LOPROC = 1879048192 +const PT_LOSUNW = 1879048186 +const PT_MIPS_ABIFLAGS = 1879048195 +const PT_MIPS_OPTIONS = 1879048194 +const PT_MIPS_REGINFO = 1879048192 +const PT_MIPS_RTPROC = 1879048193 +const PT_NOTE = 4 +const PT_NULL = 0 +const PT_NUM = 8 +const PT_PARISC_ARCHEXT = 1879048192 +const PT_PARISC_UNWIND = 1879048193 +const PT_PHDR = 6 +const PT_SHLIB = 5 +const PT_SUNWBSS = 1879048186 +const PT_SUNWSTACK = 1879048187 +const PT_TLS = 7 +const RAND_MAX = 2147483647 +const RHF_CORD = 4096 +const RHF_DEFAULT_DELAY_LOAD = 512 +const RHF_DELTA_C_PLUS_PLUS = 64 +const RHF_GUARANTEE_INIT = 32 +const RHF_GUARANTEE_START_INIT = 128 +const RHF_NONE = 0 +const RHF_NOTPOT = 2 +const RHF_NO_LIBRARY_REPLACEMENT = 4 +const RHF_NO_MOVE = 8 +const RHF_NO_UNRES_UNDEF = 8192 +const RHF_PIXIE = 256 +const RHF_QUICKSTART = 1 +const RHF_REQUICKSTART = 1024 +const RHF_REQUICKSTARTED = 2048 +const RHF_RLD_ORDER_SAFE = 16384 +const RHF_SGI_ONLY = 16 +const RLIMIT_AS = 9 +const RLIMIT_CORE = 4 +const RLIMIT_CPU = 0 +const RLIMIT_DATA = 2 +const RLIMIT_FSIZE = 1 +const RLIMIT_LOCKS = 10 +const RLIMIT_MEMLOCK = 8 +const RLIMIT_MSGQUEUE = 12 +const RLIMIT_NICE = 13 +const RLIMIT_NLIMITS = 16 +const RLIMIT_NOFILE = 7 +const RLIMIT_NPROC = 6 +const RLIMIT_RSS = 5 +const RLIMIT_RTPRIO = 14 +const RLIMIT_RTTIME = 15 +const RLIMIT_SIGPENDING = 11 +const RLIMIT_STACK = 3 +const RLIM_INFINITY = 18446744073709551615 +const RLIM_NLIMITS = 16 +const RLIM_SAVED_CUR = 18446744073709551615 +const RLIM_SAVED_MAX = 18446744073709551615 +const RUSAGE_CHILDREN = -1 +const RUSAGE_SELF = 0 +const RUSAGE_THREAD = 1 +const R_386_16 = 20 +const R_386_32 = 1 +const R_386_32PLT = 11 +const R_386_8 = 22 +const R_386_COPY = 5 +const R_386_GLOB_DAT = 6 +const R_386_GOT32 = 3 +const R_386_GOT32X = 43 +const R_386_GOTOFF = 9 +const R_386_GOTPC = 10 +const R_386_IRELATIVE = 42 +const R_386_JMP_SLOT = 7 +const R_386_NONE = 0 +const R_386_NUM = 44 +const R_386_PC16 = 21 +const R_386_PC32 = 2 +const R_386_PC8 = 23 +const R_386_PLT32 = 4 +const R_386_RELATIVE = 8 +const R_386_SIZE32 = 38 +const R_386_TLS_DESC = 41 +const R_386_TLS_DESC_CALL = 40 +const R_386_TLS_DTPMOD32 = 35 +const R_386_TLS_DTPOFF32 = 36 +const R_386_TLS_GD = 18 +const R_386_TLS_GD_32 = 24 +const R_386_TLS_GD_CALL = 26 +const R_386_TLS_GD_POP = 27 +const R_386_TLS_GD_PUSH = 25 +const R_386_TLS_GOTDESC = 39 +const R_386_TLS_GOTIE = 16 +const R_386_TLS_IE = 15 +const R_386_TLS_IE_32 = 33 +const R_386_TLS_LDM = 19 +const R_386_TLS_LDM_32 = 28 +const R_386_TLS_LDM_CALL = 30 +const R_386_TLS_LDM_POP = 31 +const R_386_TLS_LDM_PUSH = 29 +const R_386_TLS_LDO_32 = 32 +const R_386_TLS_LE = 17 +const R_386_TLS_LE_32 = 34 +const R_386_TLS_TPOFF = 14 +const R_386_TLS_TPOFF32 = 37 +const R_390_12 = 2 +const R_390_16 = 3 +const R_390_20 = 57 +const R_390_32 = 4 +const R_390_64 = 22 +const R_390_8 = 1 +const R_390_COPY = 9 +const R_390_GLOB_DAT = 10 +const R_390_GOT12 = 6 +const R_390_GOT16 = 15 +const R_390_GOT20 = 58 +const R_390_GOT32 = 7 +const R_390_GOT64 = 24 +const R_390_GOTENT = 26 +const R_390_GOTOFF16 = 27 +const R_390_GOTOFF32 = 13 +const R_390_GOTOFF64 = 28 +const R_390_GOTPC = 14 +const R_390_GOTPCDBL = 21 +const R_390_GOTPLT12 = 29 +const R_390_GOTPLT16 = 30 +const R_390_GOTPLT20 = 59 +const R_390_GOTPLT32 = 31 +const R_390_GOTPLT64 = 32 +const R_390_GOTPLTENT = 33 +const R_390_JMP_SLOT = 11 +const R_390_NONE = 0 +const R_390_NUM = 61 +const R_390_PC16 = 16 +const R_390_PC16DBL = 17 +const R_390_PC32 = 5 +const R_390_PC32DBL = 19 +const R_390_PC64 = 23 +const R_390_PLT16DBL = 18 +const R_390_PLT32 = 8 +const R_390_PLT32DBL = 20 +const R_390_PLT64 = 25 +const R_390_PLTOFF16 = 34 +const R_390_PLTOFF32 = 35 +const R_390_PLTOFF64 = 36 +const R_390_RELATIVE = 12 +const R_390_TLS_DTPMOD = 54 +const R_390_TLS_DTPOFF = 55 +const R_390_TLS_GD32 = 40 +const R_390_TLS_GD64 = 41 +const R_390_TLS_GDCALL = 38 +const R_390_TLS_GOTIE12 = 42 +const R_390_TLS_GOTIE20 = 60 +const R_390_TLS_GOTIE32 = 43 +const R_390_TLS_GOTIE64 = 44 +const R_390_TLS_IE32 = 47 +const R_390_TLS_IE64 = 48 +const R_390_TLS_IEENT = 49 +const R_390_TLS_LDCALL = 39 +const R_390_TLS_LDM32 = 45 +const R_390_TLS_LDM64 = 46 +const R_390_TLS_LDO32 = 52 +const R_390_TLS_LDO64 = 53 +const R_390_TLS_LE32 = 50 +const R_390_TLS_LE64 = 51 +const R_390_TLS_LOAD = 37 +const R_390_TLS_TPOFF = 56 +const R_68K_16 = 2 +const R_68K_32 = 1 +const R_68K_8 = 3 +const R_68K_COPY = 19 +const R_68K_GLOB_DAT = 20 +const R_68K_GOT16 = 8 +const R_68K_GOT16O = 11 +const R_68K_GOT32 = 7 +const R_68K_GOT32O = 10 +const R_68K_GOT8 = 9 +const R_68K_GOT8O = 12 +const R_68K_JMP_SLOT = 21 +const R_68K_NONE = 0 +const R_68K_NUM = 43 +const R_68K_PC16 = 5 +const R_68K_PC32 = 4 +const R_68K_PC8 = 6 +const R_68K_PLT16 = 14 +const R_68K_PLT16O = 17 +const R_68K_PLT32 = 13 +const R_68K_PLT32O = 16 +const R_68K_PLT8 = 15 +const R_68K_PLT8O = 18 +const R_68K_RELATIVE = 22 +const R_68K_TLS_DTPMOD32 = 40 +const R_68K_TLS_DTPREL32 = 41 +const R_68K_TLS_GD16 = 26 +const R_68K_TLS_GD32 = 25 +const R_68K_TLS_GD8 = 27 +const R_68K_TLS_IE16 = 35 +const R_68K_TLS_IE32 = 34 +const R_68K_TLS_IE8 = 36 +const R_68K_TLS_LDM16 = 29 +const R_68K_TLS_LDM32 = 28 +const R_68K_TLS_LDM8 = 30 +const R_68K_TLS_LDO16 = 32 +const R_68K_TLS_LDO32 = 31 +const R_68K_TLS_LDO8 = 33 +const R_68K_TLS_LE16 = 38 +const R_68K_TLS_LE32 = 37 +const R_68K_TLS_LE8 = 39 +const R_68K_TLS_TPREL32 = 42 +const R_AARCH64_ABS16 = 259 +const R_AARCH64_ABS32 = 258 +const R_AARCH64_ABS64 = 257 +const R_AARCH64_ADD_ABS_LO12_NC = 277 +const R_AARCH64_ADR_GOT_PAGE = 311 +const R_AARCH64_ADR_PREL_LO21 = 274 +const R_AARCH64_ADR_PREL_PG_HI21 = 275 +const R_AARCH64_ADR_PREL_PG_HI21_NC = 276 +const R_AARCH64_CALL26 = 283 +const R_AARCH64_CONDBR19 = 280 +const R_AARCH64_COPY = 1024 +const R_AARCH64_GLOB_DAT = 1025 +const R_AARCH64_GOTREL32 = 308 +const R_AARCH64_GOTREL64 = 307 +const R_AARCH64_GOT_LD_PREL19 = 309 +const R_AARCH64_JUMP26 = 282 +const R_AARCH64_JUMP_SLOT = 1026 +const R_AARCH64_LD64_GOTOFF_LO15 = 310 +const R_AARCH64_LD64_GOTPAGE_LO15 = 313 +const R_AARCH64_LD64_GOT_LO12_NC = 312 +const R_AARCH64_LDST128_ABS_LO12_NC = 299 +const R_AARCH64_LDST16_ABS_LO12_NC = 284 +const R_AARCH64_LDST32_ABS_LO12_NC = 285 +const R_AARCH64_LDST64_ABS_LO12_NC = 286 +const R_AARCH64_LDST8_ABS_LO12_NC = 278 +const R_AARCH64_LD_PREL_LO19 = 273 +const R_AARCH64_MOVW_GOTOFF_G0 = 300 +const R_AARCH64_MOVW_GOTOFF_G0_NC = 301 +const R_AARCH64_MOVW_GOTOFF_G1 = 302 +const R_AARCH64_MOVW_GOTOFF_G1_NC = 303 +const R_AARCH64_MOVW_GOTOFF_G2 = 304 +const R_AARCH64_MOVW_GOTOFF_G2_NC = 305 +const R_AARCH64_MOVW_GOTOFF_G3 = 306 +const R_AARCH64_MOVW_PREL_G0 = 287 +const R_AARCH64_MOVW_PREL_G0_NC = 288 +const R_AARCH64_MOVW_PREL_G1 = 289 +const R_AARCH64_MOVW_PREL_G1_NC = 290 +const R_AARCH64_MOVW_PREL_G2 = 291 +const R_AARCH64_MOVW_PREL_G2_NC = 292 +const R_AARCH64_MOVW_PREL_G3 = 293 +const R_AARCH64_MOVW_SABS_G0 = 270 +const R_AARCH64_MOVW_SABS_G1 = 271 +const R_AARCH64_MOVW_SABS_G2 = 272 +const R_AARCH64_MOVW_UABS_G0 = 263 +const R_AARCH64_MOVW_UABS_G0_NC = 264 +const R_AARCH64_MOVW_UABS_G1 = 265 +const R_AARCH64_MOVW_UABS_G1_NC = 266 +const R_AARCH64_MOVW_UABS_G2 = 267 +const R_AARCH64_MOVW_UABS_G2_NC = 268 +const R_AARCH64_MOVW_UABS_G3 = 269 +const R_AARCH64_NONE = 0 +const R_AARCH64_P32_ABS32 = 1 +const R_AARCH64_P32_COPY = 180 +const R_AARCH64_P32_GLOB_DAT = 181 +const R_AARCH64_P32_IRELATIVE = 188 +const R_AARCH64_P32_JUMP_SLOT = 182 +const R_AARCH64_P32_RELATIVE = 183 +const R_AARCH64_P32_TLSDESC = 187 +const R_AARCH64_P32_TLS_DTPMOD = 184 +const R_AARCH64_P32_TLS_DTPREL = 185 +const R_AARCH64_P32_TLS_TPREL = 186 +const R_AARCH64_PREL16 = 262 +const R_AARCH64_PREL32 = 261 +const R_AARCH64_PREL64 = 260 +const R_AARCH64_RELATIVE = 1027 +const R_AARCH64_TLSDESC = 1031 +const R_AARCH64_TLSDESC_ADD = 568 +const R_AARCH64_TLSDESC_ADD_LO12 = 564 +const R_AARCH64_TLSDESC_ADR_PAGE21 = 562 +const R_AARCH64_TLSDESC_ADR_PREL21 = 561 +const R_AARCH64_TLSDESC_CALL = 569 +const R_AARCH64_TLSDESC_LD64_LO12 = 563 +const R_AARCH64_TLSDESC_LDR = 567 +const R_AARCH64_TLSDESC_LD_PREL19 = 560 +const R_AARCH64_TLSDESC_OFF_G0_NC = 566 +const R_AARCH64_TLSDESC_OFF_G1 = 565 +const R_AARCH64_TLSGD_ADD_LO12_NC = 514 +const R_AARCH64_TLSGD_ADR_PAGE21 = 513 +const R_AARCH64_TLSGD_ADR_PREL21 = 512 +const R_AARCH64_TLSGD_MOVW_G0_NC = 516 +const R_AARCH64_TLSGD_MOVW_G1 = 515 +const R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21 = 541 +const R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC = 542 +const R_AARCH64_TLSIE_LD_GOTTPREL_PREL19 = 543 +const R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC = 540 +const R_AARCH64_TLSIE_MOVW_GOTTPREL_G1 = 539 +const R_AARCH64_TLSLD_ADD_DTPREL_HI12 = 528 +const R_AARCH64_TLSLD_ADD_DTPREL_LO12 = 529 +const R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC = 530 +const R_AARCH64_TLSLD_ADD_LO12_NC = 519 +const R_AARCH64_TLSLD_ADR_PAGE21 = 518 +const R_AARCH64_TLSLD_ADR_PREL21 = 517 +const R_AARCH64_TLSLD_LDST128_DTPREL_LO12 = 572 +const R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC = 573 +const R_AARCH64_TLSLD_LDST16_DTPREL_LO12 = 533 +const R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC = 534 +const R_AARCH64_TLSLD_LDST32_DTPREL_LO12 = 535 +const R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC = 536 +const R_AARCH64_TLSLD_LDST64_DTPREL_LO12 = 537 +const R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC = 538 +const R_AARCH64_TLSLD_LDST8_DTPREL_LO12 = 531 +const R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC = 532 +const R_AARCH64_TLSLD_LD_PREL19 = 522 +const R_AARCH64_TLSLD_MOVW_DTPREL_G0 = 526 +const R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC = 527 +const R_AARCH64_TLSLD_MOVW_DTPREL_G1 = 524 +const R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC = 525 +const R_AARCH64_TLSLD_MOVW_DTPREL_G2 = 523 +const R_AARCH64_TLSLD_MOVW_G0_NC = 521 +const R_AARCH64_TLSLD_MOVW_G1 = 520 +const R_AARCH64_TLSLE_ADD_TPREL_HI12 = 549 +const R_AARCH64_TLSLE_ADD_TPREL_LO12 = 550 +const R_AARCH64_TLSLE_ADD_TPREL_LO12_NC = 551 +const R_AARCH64_TLSLE_LDST128_TPREL_LO12 = 570 +const R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC = 571 +const R_AARCH64_TLSLE_LDST16_TPREL_LO12 = 554 +const R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC = 555 +const R_AARCH64_TLSLE_LDST32_TPREL_LO12 = 556 +const R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC = 557 +const R_AARCH64_TLSLE_LDST64_TPREL_LO12 = 558 +const R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC = 559 +const R_AARCH64_TLSLE_LDST8_TPREL_LO12 = 552 +const R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC = 553 +const R_AARCH64_TLSLE_MOVW_TPREL_G0 = 547 +const R_AARCH64_TLSLE_MOVW_TPREL_G0_NC = 548 +const R_AARCH64_TLSLE_MOVW_TPREL_G1 = 545 +const R_AARCH64_TLSLE_MOVW_TPREL_G1_NC = 546 +const R_AARCH64_TLSLE_MOVW_TPREL_G2 = 544 +const R_AARCH64_TLS_DTPMOD = 1028 +const R_AARCH64_TLS_DTPMOD64 = 1028 +const R_AARCH64_TLS_DTPREL = 1029 +const R_AARCH64_TLS_DTPREL64 = 1029 +const R_AARCH64_TLS_TPREL = 1030 +const R_AARCH64_TLS_TPREL64 = 1030 +const R_AARCH64_TSTBR14 = 279 +const R_ALPHA_BRADDR = 7 +const R_ALPHA_COPY = 24 +const R_ALPHA_DTPMOD64 = 31 +const R_ALPHA_DTPREL16 = 36 +const R_ALPHA_DTPREL64 = 33 +const R_ALPHA_DTPRELHI = 34 +const R_ALPHA_DTPRELLO = 35 +const R_ALPHA_GLOB_DAT = 25 +const R_ALPHA_GOTDTPREL = 32 +const R_ALPHA_GOTTPREL = 37 +const R_ALPHA_GPDISP = 6 +const R_ALPHA_GPREL16 = 19 +const R_ALPHA_GPREL32 = 3 +const R_ALPHA_GPRELHIGH = 17 +const R_ALPHA_GPRELLOW = 18 +const R_ALPHA_HINT = 8 +const R_ALPHA_JMP_SLOT = 26 +const R_ALPHA_LITERAL = 4 +const R_ALPHA_LITUSE = 5 +const R_ALPHA_NONE = 0 +const R_ALPHA_NUM = 46 +const R_ALPHA_REFLONG = 1 +const R_ALPHA_REFQUAD = 2 +const R_ALPHA_RELATIVE = 27 +const R_ALPHA_SREL16 = 9 +const R_ALPHA_SREL32 = 10 +const R_ALPHA_SREL64 = 11 +const R_ALPHA_TLSGD = 29 +const R_ALPHA_TLS_GD_HI = 28 +const R_ALPHA_TLS_LDM = 30 +const R_ALPHA_TPREL16 = 41 +const R_ALPHA_TPREL64 = 38 +const R_ALPHA_TPRELHI = 39 +const R_ALPHA_TPRELLO = 40 +const R_ARM_ABS12 = 6 +const R_ARM_ABS16 = 5 +const R_ARM_ABS32 = 2 +const R_ARM_ABS32_NOI = 55 +const R_ARM_ABS8 = 8 +const R_ARM_ALU_PCREL_15_8 = 33 +const R_ARM_ALU_PCREL_23_15 = 34 +const R_ARM_ALU_PCREL_7_0 = 32 +const R_ARM_ALU_PC_G0 = 58 +const R_ARM_ALU_PC_G0_NC = 57 +const R_ARM_ALU_PC_G1 = 60 +const R_ARM_ALU_PC_G1_NC = 59 +const R_ARM_ALU_PC_G2 = 61 +const R_ARM_ALU_SBREL_19_12 = 36 +const R_ARM_ALU_SBREL_27_20 = 37 +const R_ARM_ALU_SB_G0 = 71 +const R_ARM_ALU_SB_G0_NC = 70 +const R_ARM_ALU_SB_G1 = 73 +const R_ARM_ALU_SB_G1_NC = 72 +const R_ARM_ALU_SB_G2 = 74 +const R_ARM_AMP_VCALL9 = 12 +const R_ARM_BASE_ABS = 31 +const R_ARM_CALL = 28 +const R_ARM_COPY = 20 +const R_ARM_GLOB_DAT = 21 +const R_ARM_GNU_VTENTRY = 100 +const R_ARM_GNU_VTINHERIT = 101 +const R_ARM_GOT32 = 26 +const R_ARM_GOTOFF = 24 +const R_ARM_GOTOFF12 = 98 +const R_ARM_GOTPC = 25 +const R_ARM_GOTRELAX = 99 +const R_ARM_GOT_ABS = 95 +const R_ARM_GOT_BREL12 = 97 +const R_ARM_GOT_PREL = 96 +const R_ARM_IRELATIVE = 160 +const R_ARM_JUMP24 = 29 +const R_ARM_JUMP_SLOT = 22 +const R_ARM_LDC_PC_G0 = 67 +const R_ARM_LDC_PC_G1 = 68 +const R_ARM_LDC_PC_G2 = 69 +const R_ARM_LDC_SB_G0 = 81 +const R_ARM_LDC_SB_G1 = 82 +const R_ARM_LDC_SB_G2 = 83 +const R_ARM_LDRS_PC_G0 = 64 +const R_ARM_LDRS_PC_G1 = 65 +const R_ARM_LDRS_PC_G2 = 66 +const R_ARM_LDRS_SB_G0 = 78 +const R_ARM_LDRS_SB_G1 = 79 +const R_ARM_LDRS_SB_G2 = 80 +const R_ARM_LDR_PC_G1 = 62 +const R_ARM_LDR_PC_G2 = 63 +const R_ARM_LDR_SBREL_11_0 = 35 +const R_ARM_LDR_SB_G0 = 75 +const R_ARM_LDR_SB_G1 = 76 +const R_ARM_LDR_SB_G2 = 77 +const R_ARM_ME_TOO = 128 +const R_ARM_MOVT_ABS = 44 +const R_ARM_MOVT_BREL = 85 +const R_ARM_MOVT_PREL = 46 +const R_ARM_MOVW_ABS_NC = 43 +const R_ARM_MOVW_BREL = 86 +const R_ARM_MOVW_BREL_NC = 84 +const R_ARM_MOVW_PREL_NC = 45 +const R_ARM_NONE = 0 +const R_ARM_NUM = 256 +const R_ARM_PC13 = 4 +const R_ARM_PC24 = 1 +const R_ARM_PLT32 = 27 +const R_ARM_PLT32_ABS = 94 +const R_ARM_PREL31 = 42 +const R_ARM_RABS22 = 253 +const R_ARM_RBASE = 255 +const R_ARM_REL32 = 3 +const R_ARM_REL32_NOI = 56 +const R_ARM_RELATIVE = 23 +const R_ARM_RPC24 = 254 +const R_ARM_RREL32 = 252 +const R_ARM_RSBREL32 = 250 +const R_ARM_RXPC25 = 249 +const R_ARM_SBREL31 = 39 +const R_ARM_SBREL32 = 9 +const R_ARM_TARGET1 = 38 +const R_ARM_TARGET2 = 41 +const R_ARM_THM_ABS5 = 7 +const R_ARM_THM_ALU_PREL_11_0 = 53 +const R_ARM_THM_GOT_BREL12 = 131 +const R_ARM_THM_JUMP19 = 51 +const R_ARM_THM_JUMP24 = 30 +const R_ARM_THM_JUMP6 = 52 +const R_ARM_THM_MOVT_ABS = 48 +const R_ARM_THM_MOVT_BREL = 88 +const R_ARM_THM_MOVT_PREL = 50 +const R_ARM_THM_MOVW_ABS_NC = 47 +const R_ARM_THM_MOVW_BREL = 89 +const R_ARM_THM_MOVW_BREL_NC = 87 +const R_ARM_THM_MOVW_PREL_NC = 49 +const R_ARM_THM_PC11 = 102 +const R_ARM_THM_PC12 = 54 +const R_ARM_THM_PC22 = 10 +const R_ARM_THM_PC8 = 11 +const R_ARM_THM_PC9 = 103 +const R_ARM_THM_RPC22 = 251 +const R_ARM_THM_SWI8 = 14 +const R_ARM_THM_TLS_CALL = 93 +const R_ARM_THM_TLS_DESCSEQ = 129 +const R_ARM_THM_TLS_DESCSEQ16 = 129 +const R_ARM_THM_TLS_DESCSEQ32 = 130 +const R_ARM_THM_XPC22 = 16 +const R_ARM_TLS_CALL = 91 +const R_ARM_TLS_DESC = 13 +const R_ARM_TLS_DESCSEQ = 92 +const R_ARM_TLS_DTPMOD32 = 17 +const R_ARM_TLS_DTPOFF32 = 18 +const R_ARM_TLS_GD32 = 104 +const R_ARM_TLS_GOTDESC = 90 +const R_ARM_TLS_IE12GP = 111 +const R_ARM_TLS_IE32 = 107 +const R_ARM_TLS_LDM32 = 105 +const R_ARM_TLS_LDO12 = 109 +const R_ARM_TLS_LDO32 = 106 +const R_ARM_TLS_LE12 = 110 +const R_ARM_TLS_LE32 = 108 +const R_ARM_TLS_TPOFF32 = 19 +const R_ARM_V4BX = 40 +const R_ARM_XPC25 = 15 +const R_BPF_MAP_FD = 1 +const R_BPF_NONE = 0 +const R_CKCORE_ADDR32 = 1 +const R_CKCORE_ADDRGOT = 17 +const R_CKCORE_ADDRGOT_HI16 = 36 +const R_CKCORE_ADDRGOT_LO16 = 37 +const R_CKCORE_ADDRPLT = 18 +const R_CKCORE_ADDRPLT_HI16 = 38 +const R_CKCORE_ADDRPLT_LO16 = 39 +const R_CKCORE_ADDR_HI16 = 24 +const R_CKCORE_ADDR_LO16 = 25 +const R_CKCORE_COPY = 10 +const R_CKCORE_DOFFSET_IMM18 = 44 +const R_CKCORE_DOFFSET_IMM18BY2 = 45 +const R_CKCORE_DOFFSET_IMM18BY4 = 46 +const R_CKCORE_DOFFSET_LO16 = 42 +const R_CKCORE_GLOB_DAT = 11 +const R_CKCORE_GOT12 = 30 +const R_CKCORE_GOT32 = 15 +const R_CKCORE_GOTOFF = 13 +const R_CKCORE_GOTOFF_HI16 = 28 +const R_CKCORE_GOTOFF_LO16 = 29 +const R_CKCORE_GOTPC = 14 +const R_CKCORE_GOTPC_HI16 = 26 +const R_CKCORE_GOTPC_LO16 = 27 +const R_CKCORE_GOT_HI16 = 31 +const R_CKCORE_GOT_IMM18BY4 = 48 +const R_CKCORE_GOT_LO16 = 32 +const R_CKCORE_JUMP_SLOT = 12 +const R_CKCORE_NONE = 0 +const R_CKCORE_PCREL32 = 5 +const R_CKCORE_PCRELIMM11BY2 = 3 +const R_CKCORE_PCRELIMM8BY4 = 2 +const R_CKCORE_PCRELJSR_IMM11BY2 = 6 +const R_CKCORE_PCREL_IMM10BY2 = 22 +const R_CKCORE_PCREL_IMM10BY4 = 23 +const R_CKCORE_PCREL_IMM16BY2 = 20 +const R_CKCORE_PCREL_IMM16BY4 = 21 +const R_CKCORE_PCREL_IMM18BY2 = 43 +const R_CKCORE_PCREL_IMM26BY2 = 19 +const R_CKCORE_PCREL_IMM7BY4 = 50 +const R_CKCORE_PCREL_JSR_IMM26BY2 = 40 +const R_CKCORE_PLT12 = 33 +const R_CKCORE_PLT32 = 16 +const R_CKCORE_PLT_HI16 = 34 +const R_CKCORE_PLT_IMM18BY4 = 49 +const R_CKCORE_PLT_LO16 = 35 +const R_CKCORE_RELATIVE = 9 +const R_CKCORE_TLS_DTPMOD32 = 56 +const R_CKCORE_TLS_DTPOFF32 = 57 +const R_CKCORE_TLS_GD32 = 53 +const R_CKCORE_TLS_IE32 = 52 +const R_CKCORE_TLS_LDM32 = 54 +const R_CKCORE_TLS_LDO32 = 55 +const R_CKCORE_TLS_LE32 = 51 +const R_CKCORE_TLS_TPOFF32 = 58 +const R_CKCORE_TOFFSET_LO16 = 41 +const R_CRIS_16 = 2 +const R_CRIS_16_GOT = 13 +const R_CRIS_16_GOTPLT = 15 +const R_CRIS_16_PCREL = 5 +const R_CRIS_32 = 3 +const R_CRIS_32_GOT = 14 +const R_CRIS_32_GOTPLT = 16 +const R_CRIS_32_GOTREL = 17 +const R_CRIS_32_PCREL = 6 +const R_CRIS_32_PLT_GOTREL = 18 +const R_CRIS_32_PLT_PCREL = 19 +const R_CRIS_8 = 1 +const R_CRIS_8_PCREL = 4 +const R_CRIS_COPY = 9 +const R_CRIS_GLOB_DAT = 10 +const R_CRIS_GNU_VTENTRY = 8 +const R_CRIS_GNU_VTINHERIT = 7 +const R_CRIS_JUMP_SLOT = 11 +const R_CRIS_NONE = 0 +const R_CRIS_NUM = 20 +const R_CRIS_RELATIVE = 12 +const R_IA64_COPY = 132 +const R_IA64_DIR32LSB = 37 +const R_IA64_DIR32MSB = 36 +const R_IA64_DIR64LSB = 39 +const R_IA64_DIR64MSB = 38 +const R_IA64_DTPMOD64LSB = 167 +const R_IA64_DTPMOD64MSB = 166 +const R_IA64_DTPREL14 = 177 +const R_IA64_DTPREL22 = 178 +const R_IA64_DTPREL32LSB = 181 +const R_IA64_DTPREL32MSB = 180 +const R_IA64_DTPREL64I = 179 +const R_IA64_DTPREL64LSB = 183 +const R_IA64_DTPREL64MSB = 182 +const R_IA64_FPTR32LSB = 69 +const R_IA64_FPTR32MSB = 68 +const R_IA64_FPTR64I = 67 +const R_IA64_FPTR64LSB = 71 +const R_IA64_FPTR64MSB = 70 +const R_IA64_GPREL22 = 42 +const R_IA64_GPREL32LSB = 45 +const R_IA64_GPREL32MSB = 44 +const R_IA64_GPREL64I = 43 +const R_IA64_GPREL64LSB = 47 +const R_IA64_GPREL64MSB = 46 +const R_IA64_IMM14 = 33 +const R_IA64_IMM22 = 34 +const R_IA64_IMM64 = 35 +const R_IA64_IPLTLSB = 129 +const R_IA64_IPLTMSB = 128 +const R_IA64_LDXMOV = 135 +const R_IA64_LTOFF22 = 50 +const R_IA64_LTOFF22X = 134 +const R_IA64_LTOFF64I = 51 +const R_IA64_LTOFF_DTPMOD22 = 170 +const R_IA64_LTOFF_DTPREL22 = 186 +const R_IA64_LTOFF_FPTR22 = 82 +const R_IA64_LTOFF_FPTR32LSB = 85 +const R_IA64_LTOFF_FPTR32MSB = 84 +const R_IA64_LTOFF_FPTR64I = 83 +const R_IA64_LTOFF_FPTR64LSB = 87 +const R_IA64_LTOFF_FPTR64MSB = 86 +const R_IA64_LTOFF_TPREL22 = 154 +const R_IA64_LTV32LSB = 117 +const R_IA64_LTV32MSB = 116 +const R_IA64_LTV64LSB = 119 +const R_IA64_LTV64MSB = 118 +const R_IA64_NONE = 0 +const R_IA64_PCREL21B = 73 +const R_IA64_PCREL21BI = 121 +const R_IA64_PCREL21F = 75 +const R_IA64_PCREL21M = 74 +const R_IA64_PCREL22 = 122 +const R_IA64_PCREL32LSB = 77 +const R_IA64_PCREL32MSB = 76 +const R_IA64_PCREL60B = 72 +const R_IA64_PCREL64I = 123 +const R_IA64_PCREL64LSB = 79 +const R_IA64_PCREL64MSB = 78 +const R_IA64_PLTOFF22 = 58 +const R_IA64_PLTOFF64I = 59 +const R_IA64_PLTOFF64LSB = 63 +const R_IA64_PLTOFF64MSB = 62 +const R_IA64_REL32LSB = 109 +const R_IA64_REL32MSB = 108 +const R_IA64_REL64LSB = 111 +const R_IA64_REL64MSB = 110 +const R_IA64_SECREL32LSB = 101 +const R_IA64_SECREL32MSB = 100 +const R_IA64_SECREL64LSB = 103 +const R_IA64_SECREL64MSB = 102 +const R_IA64_SEGREL32LSB = 93 +const R_IA64_SEGREL32MSB = 92 +const R_IA64_SEGREL64LSB = 95 +const R_IA64_SEGREL64MSB = 94 +const R_IA64_SUB = 133 +const R_IA64_TPREL14 = 145 +const R_IA64_TPREL22 = 146 +const R_IA64_TPREL64I = 147 +const R_IA64_TPREL64LSB = 151 +const R_IA64_TPREL64MSB = 150 +const R_LARCH_32 = 1 +const R_LARCH_32_PCREL = 99 +const R_LARCH_64 = 2 +const R_LARCH_ABS64_HI12 = 70 +const R_LARCH_ABS64_LO20 = 69 +const R_LARCH_ABS_HI20 = 67 +const R_LARCH_ABS_LO12 = 68 +const R_LARCH_ADD16 = 48 +const R_LARCH_ADD24 = 49 +const R_LARCH_ADD32 = 50 +const R_LARCH_ADD64 = 51 +const R_LARCH_ADD8 = 47 +const R_LARCH_B16 = 64 +const R_LARCH_B21 = 65 +const R_LARCH_B26 = 66 +const R_LARCH_COPY = 4 +const R_LARCH_GNU_VTENTRY = 58 +const R_LARCH_GNU_VTINHERIT = 57 +const R_LARCH_GOT64_HI12 = 82 +const R_LARCH_GOT64_LO20 = 81 +const R_LARCH_GOT64_PC_HI12 = 78 +const R_LARCH_GOT64_PC_LO20 = 77 +const R_LARCH_GOT_HI20 = 79 +const R_LARCH_GOT_LO12 = 80 +const R_LARCH_GOT_PC_HI20 = 75 +const R_LARCH_GOT_PC_LO12 = 76 +const R_LARCH_IRELATIVE = 12 +const R_LARCH_JUMP_SLOT = 5 +const R_LARCH_MARK_LA = 20 +const R_LARCH_MARK_PCREL = 21 +const R_LARCH_NONE = 0 +const R_LARCH_PCALA64_HI12 = 74 +const R_LARCH_PCALA64_LO20 = 73 +const R_LARCH_PCALA_HI20 = 71 +const R_LARCH_PCALA_LO12 = 72 +const R_LARCH_RELATIVE = 3 +const R_LARCH_RELAX = 100 +const R_LARCH_SOP_ADD = 35 +const R_LARCH_SOP_AND = 36 +const R_LARCH_SOP_ASSERT = 30 +const R_LARCH_SOP_IF_ELSE = 37 +const R_LARCH_SOP_NOT = 31 +const R_LARCH_SOP_POP_32_S_0_10_10_16_S2 = 45 +const R_LARCH_SOP_POP_32_S_0_5_10_16_S2 = 44 +const R_LARCH_SOP_POP_32_S_10_12 = 40 +const R_LARCH_SOP_POP_32_S_10_16 = 41 +const R_LARCH_SOP_POP_32_S_10_16_S2 = 42 +const R_LARCH_SOP_POP_32_S_10_5 = 38 +const R_LARCH_SOP_POP_32_S_5_20 = 43 +const R_LARCH_SOP_POP_32_U = 46 +const R_LARCH_SOP_POP_32_U_10_12 = 39 +const R_LARCH_SOP_PUSH_ABSOLUTE = 23 +const R_LARCH_SOP_PUSH_DUP = 24 +const R_LARCH_SOP_PUSH_GPREL = 25 +const R_LARCH_SOP_PUSH_PCREL = 22 +const R_LARCH_SOP_PUSH_PLT_PCREL = 29 +const R_LARCH_SOP_PUSH_TLS_GD = 28 +const R_LARCH_SOP_PUSH_TLS_GOT = 27 +const R_LARCH_SOP_PUSH_TLS_TPREL = 26 +const R_LARCH_SOP_SL = 33 +const R_LARCH_SOP_SR = 34 +const R_LARCH_SOP_SUB = 32 +const R_LARCH_SUB16 = 53 +const R_LARCH_SUB24 = 54 +const R_LARCH_SUB32 = 55 +const R_LARCH_SUB64 = 56 +const R_LARCH_SUB8 = 52 +const R_LARCH_TLS_DTPMOD32 = 6 +const R_LARCH_TLS_DTPMOD64 = 7 +const R_LARCH_TLS_DTPREL32 = 8 +const R_LARCH_TLS_DTPREL64 = 9 +const R_LARCH_TLS_GD_HI20 = 98 +const R_LARCH_TLS_GD_PC_HI20 = 97 +const R_LARCH_TLS_IE64_HI12 = 94 +const R_LARCH_TLS_IE64_LO20 = 93 +const R_LARCH_TLS_IE64_PC_HI12 = 90 +const R_LARCH_TLS_IE64_PC_LO20 = 89 +const R_LARCH_TLS_IE_HI20 = 91 +const R_LARCH_TLS_IE_LO12 = 92 +const R_LARCH_TLS_IE_PC_HI20 = 87 +const R_LARCH_TLS_IE_PC_LO12 = 88 +const R_LARCH_TLS_LD_HI20 = 96 +const R_LARCH_TLS_LD_PC_HI20 = 95 +const R_LARCH_TLS_LE64_HI12 = 86 +const R_LARCH_TLS_LE64_LO20 = 85 +const R_LARCH_TLS_LE_HI20 = 83 +const R_LARCH_TLS_LE_LO12 = 84 +const R_LARCH_TLS_TPREL32 = 10 +const R_LARCH_TLS_TPREL64 = 11 +const R_M32R_10_PCREL = 4 +const R_M32R_10_PCREL_RELA = 36 +const R_M32R_16 = 1 +const R_M32R_16_RELA = 33 +const R_M32R_18_PCREL = 5 +const R_M32R_18_PCREL_RELA = 37 +const R_M32R_24 = 3 +const R_M32R_24_RELA = 35 +const R_M32R_26_PCREL = 6 +const R_M32R_26_PCREL_RELA = 38 +const R_M32R_26_PLTREL = 49 +const R_M32R_32 = 2 +const R_M32R_32_RELA = 34 +const R_M32R_COPY = 50 +const R_M32R_GLOB_DAT = 51 +const R_M32R_GNU_VTENTRY = 12 +const R_M32R_GNU_VTINHERIT = 11 +const R_M32R_GOT16_HI_SLO = 57 +const R_M32R_GOT16_HI_ULO = 56 +const R_M32R_GOT16_LO = 58 +const R_M32R_GOT24 = 48 +const R_M32R_GOTOFF = 54 +const R_M32R_GOTOFF_HI_SLO = 63 +const R_M32R_GOTOFF_HI_ULO = 62 +const R_M32R_GOTOFF_LO = 64 +const R_M32R_GOTPC24 = 55 +const R_M32R_GOTPC_HI_SLO = 60 +const R_M32R_GOTPC_HI_ULO = 59 +const R_M32R_GOTPC_LO = 61 +const R_M32R_HI16_SLO = 8 +const R_M32R_HI16_SLO_RELA = 40 +const R_M32R_HI16_ULO = 7 +const R_M32R_HI16_ULO_RELA = 39 +const R_M32R_JMP_SLOT = 52 +const R_M32R_LO16 = 9 +const R_M32R_LO16_RELA = 41 +const R_M32R_NONE = 0 +const R_M32R_NUM = 256 +const R_M32R_REL32 = 45 +const R_M32R_RELATIVE = 53 +const R_M32R_RELA_GNU_VTENTRY = 44 +const R_M32R_RELA_GNU_VTINHERIT = 43 +const R_M32R_SDA16 = 10 +const R_M32R_SDA16_RELA = 42 +const R_MICROBLAZE_32 = 1 +const R_MICROBLAZE_32_LO = 6 +const R_MICROBLAZE_32_PCREL = 2 +const R_MICROBLAZE_32_PCREL_LO = 4 +const R_MICROBLAZE_32_SYM_OP_SYM = 10 +const R_MICROBLAZE_64 = 5 +const R_MICROBLAZE_64_NONE = 9 +const R_MICROBLAZE_64_PCREL = 3 +const R_MICROBLAZE_COPY = 21 +const R_MICROBLAZE_GLOB_DAT = 18 +const R_MICROBLAZE_GNU_VTENTRY = 12 +const R_MICROBLAZE_GNU_VTINHERIT = 11 +const R_MICROBLAZE_GOTOFF_32 = 20 +const R_MICROBLAZE_GOTOFF_64 = 19 +const R_MICROBLAZE_GOTPC_64 = 13 +const R_MICROBLAZE_GOT_64 = 14 +const R_MICROBLAZE_JUMP_SLOT = 17 +const R_MICROBLAZE_NONE = 0 +const R_MICROBLAZE_PLT_64 = 15 +const R_MICROBLAZE_REL = 16 +const R_MICROBLAZE_SRO32 = 7 +const R_MICROBLAZE_SRW32 = 8 +const R_MICROBLAZE_TLS = 22 +const R_MICROBLAZE_TLSDTPMOD32 = 25 +const R_MICROBLAZE_TLSDTPREL32 = 26 +const R_MICROBLAZE_TLSDTPREL64 = 27 +const R_MICROBLAZE_TLSGD = 23 +const R_MICROBLAZE_TLSGOTTPREL32 = 28 +const R_MICROBLAZE_TLSLD = 24 +const R_MICROBLAZE_TLSTPREL32 = 29 +const R_MIPS_16 = 1 +const R_MIPS_26 = 4 +const R_MIPS_32 = 2 +const R_MIPS_64 = 18 +const R_MIPS_ADD_IMMEDIATE = 34 +const R_MIPS_CALL16 = 11 +const R_MIPS_CALL_HI16 = 30 +const R_MIPS_CALL_LO16 = 31 +const R_MIPS_COPY = 126 +const R_MIPS_DELETE = 27 +const R_MIPS_GLOB_DAT = 51 +const R_MIPS_GOT16 = 9 +const R_MIPS_GOT_DISP = 19 +const R_MIPS_GOT_HI16 = 22 +const R_MIPS_GOT_LO16 = 23 +const R_MIPS_GOT_OFST = 21 +const R_MIPS_GOT_PAGE = 20 +const R_MIPS_GPREL16 = 7 +const R_MIPS_GPREL32 = 12 +const R_MIPS_HI16 = 5 +const R_MIPS_HIGHER = 28 +const R_MIPS_HIGHEST = 29 +const R_MIPS_INSERT_A = 25 +const R_MIPS_INSERT_B = 26 +const R_MIPS_JALR = 37 +const R_MIPS_JUMP_SLOT = 127 +const R_MIPS_LITERAL = 8 +const R_MIPS_LO16 = 6 +const R_MIPS_NONE = 0 +const R_MIPS_NUM = 128 +const R_MIPS_PC16 = 10 +const R_MIPS_PJUMP = 35 +const R_MIPS_REL16 = 33 +const R_MIPS_REL32 = 3 +const R_MIPS_RELGOT = 36 +const R_MIPS_SCN_DISP = 32 +const R_MIPS_SHIFT5 = 16 +const R_MIPS_SHIFT6 = 17 +const R_MIPS_SUB = 24 +const R_MIPS_TLS_DTPMOD32 = 38 +const R_MIPS_TLS_DTPMOD64 = 40 +const R_MIPS_TLS_DTPREL32 = 39 +const R_MIPS_TLS_DTPREL64 = 41 +const R_MIPS_TLS_DTPREL_HI16 = 44 +const R_MIPS_TLS_DTPREL_LO16 = 45 +const R_MIPS_TLS_GD = 42 +const R_MIPS_TLS_GOTTPREL = 46 +const R_MIPS_TLS_LDM = 43 +const R_MIPS_TLS_TPREL32 = 47 +const R_MIPS_TLS_TPREL64 = 48 +const R_MIPS_TLS_TPREL_HI16 = 49 +const R_MIPS_TLS_TPREL_LO16 = 50 +const R_MN10300_16 = 2 +const R_MN10300_24 = 9 +const R_MN10300_32 = 1 +const R_MN10300_8 = 3 +const R_MN10300_COPY = 20 +const R_MN10300_GLOB_DAT = 21 +const R_MN10300_GNU_VTENTRY = 8 +const R_MN10300_GNU_VTINHERIT = 7 +const R_MN10300_GOT16 = 19 +const R_MN10300_GOT24 = 18 +const R_MN10300_GOT32 = 17 +const R_MN10300_GOTOFF16 = 14 +const R_MN10300_GOTOFF24 = 13 +const R_MN10300_GOTOFF32 = 12 +const R_MN10300_GOTPC16 = 11 +const R_MN10300_GOTPC32 = 10 +const R_MN10300_JMP_SLOT = 22 +const R_MN10300_NONE = 0 +const R_MN10300_NUM = 24 +const R_MN10300_PCREL16 = 5 +const R_MN10300_PCREL32 = 4 +const R_MN10300_PCREL8 = 6 +const R_MN10300_PLT16 = 16 +const R_MN10300_PLT32 = 15 +const R_MN10300_RELATIVE = 23 +const R_NIOS2_ALIGN = 21 +const R_NIOS2_BFD_RELOC_16 = 13 +const R_NIOS2_BFD_RELOC_32 = 12 +const R_NIOS2_BFD_RELOC_8 = 14 +const R_NIOS2_CACHE_OPX = 6 +const R_NIOS2_CALL16 = 23 +const R_NIOS2_CALL26 = 4 +const R_NIOS2_CALL26_NOAT = 41 +const R_NIOS2_CALLR = 20 +const R_NIOS2_CALL_HA = 45 +const R_NIOS2_CALL_LO = 44 +const R_NIOS2_CJMP = 19 +const R_NIOS2_COPY = 36 +const R_NIOS2_GLOB_DAT = 37 +const R_NIOS2_GNU_VTENTRY = 17 +const R_NIOS2_GNU_VTINHERIT = 16 +const R_NIOS2_GOT16 = 22 +const R_NIOS2_GOTOFF = 40 +const R_NIOS2_GOTOFF_HA = 25 +const R_NIOS2_GOTOFF_LO = 24 +const R_NIOS2_GOT_HA = 43 +const R_NIOS2_GOT_LO = 42 +const R_NIOS2_GPREL = 15 +const R_NIOS2_HI16 = 9 +const R_NIOS2_HIADJ16 = 11 +const R_NIOS2_IMM5 = 5 +const R_NIOS2_IMM6 = 7 +const R_NIOS2_IMM8 = 8 +const R_NIOS2_JUMP_SLOT = 38 +const R_NIOS2_LO16 = 10 +const R_NIOS2_NONE = 0 +const R_NIOS2_PCREL16 = 3 +const R_NIOS2_PCREL_HA = 27 +const R_NIOS2_PCREL_LO = 26 +const R_NIOS2_RELATIVE = 39 +const R_NIOS2_S16 = 1 +const R_NIOS2_TLS_DTPMOD = 33 +const R_NIOS2_TLS_DTPREL = 34 +const R_NIOS2_TLS_GD16 = 28 +const R_NIOS2_TLS_IE16 = 31 +const R_NIOS2_TLS_LDM16 = 29 +const R_NIOS2_TLS_LDO16 = 30 +const R_NIOS2_TLS_LE16 = 32 +const R_NIOS2_TLS_TPREL = 35 +const R_NIOS2_U16 = 2 +const R_NIOS2_UJMP = 18 +const R_OR1K_16 = 2 +const R_OR1K_16_PCREL = 10 +const R_OR1K_32 = 1 +const R_OR1K_32_PCREL = 9 +const R_OR1K_8 = 3 +const R_OR1K_8_PCREL = 11 +const R_OR1K_COPY = 18 +const R_OR1K_GLOB_DAT = 19 +const R_OR1K_GNU_VTENTRY = 7 +const R_OR1K_GNU_VTINHERIT = 8 +const R_OR1K_GOT16 = 14 +const R_OR1K_GOTOFF_HI16 = 16 +const R_OR1K_GOTOFF_LO16 = 17 +const R_OR1K_GOTPC_HI16 = 12 +const R_OR1K_GOTPC_LO16 = 13 +const R_OR1K_HI_16_IN_INSN = 5 +const R_OR1K_INSN_REL_26 = 6 +const R_OR1K_JMP_SLOT = 20 +const R_OR1K_LO_16_IN_INSN = 4 +const R_OR1K_NONE = 0 +const R_OR1K_PLT26 = 15 +const R_OR1K_RELATIVE = 21 +const R_OR1K_TLS_DTPMOD = 34 +const R_OR1K_TLS_DTPOFF = 33 +const R_OR1K_TLS_GD_HI16 = 22 +const R_OR1K_TLS_GD_LO16 = 23 +const R_OR1K_TLS_IE_HI16 = 28 +const R_OR1K_TLS_IE_LO16 = 29 +const R_OR1K_TLS_LDM_HI16 = 24 +const R_OR1K_TLS_LDM_LO16 = 25 +const R_OR1K_TLS_LDO_HI16 = 26 +const R_OR1K_TLS_LDO_LO16 = 27 +const R_OR1K_TLS_LE_HI16 = 30 +const R_OR1K_TLS_LE_LO16 = 31 +const R_OR1K_TLS_TPOFF = 32 +const R_PARISC_COPY = 128 +const R_PARISC_DIR14DR = 84 +const R_PARISC_DIR14R = 6 +const R_PARISC_DIR14WR = 83 +const R_PARISC_DIR16DF = 87 +const R_PARISC_DIR16F = 85 +const R_PARISC_DIR16WF = 86 +const R_PARISC_DIR17F = 4 +const R_PARISC_DIR17R = 3 +const R_PARISC_DIR21L = 2 +const R_PARISC_DIR32 = 1 +const R_PARISC_DIR64 = 80 +const R_PARISC_DPREL14R = 22 +const R_PARISC_DPREL21L = 18 +const R_PARISC_EPLT = 130 +const R_PARISC_FPTR64 = 64 +const R_PARISC_GNU_VTENTRY = 232 +const R_PARISC_GNU_VTINHERIT = 233 +const R_PARISC_GPREL14DR = 92 +const R_PARISC_GPREL14R = 30 +const R_PARISC_GPREL14WR = 91 +const R_PARISC_GPREL16DF = 95 +const R_PARISC_GPREL16F = 93 +const R_PARISC_GPREL16WF = 94 +const R_PARISC_GPREL21L = 26 +const R_PARISC_GPREL64 = 88 +const R_PARISC_HIRESERVE = 255 +const R_PARISC_IPLT = 129 +const R_PARISC_LORESERVE = 128 +const R_PARISC_LTOFF14DR = 100 +const R_PARISC_LTOFF14R = 38 +const R_PARISC_LTOFF14WR = 99 +const R_PARISC_LTOFF16DF = 103 +const R_PARISC_LTOFF16F = 101 +const R_PARISC_LTOFF16WF = 102 +const R_PARISC_LTOFF21L = 34 +const R_PARISC_LTOFF64 = 96 +const R_PARISC_LTOFF_FPTR14DR = 124 +const R_PARISC_LTOFF_FPTR14R = 62 +const R_PARISC_LTOFF_FPTR14WR = 123 +const R_PARISC_LTOFF_FPTR16DF = 127 +const R_PARISC_LTOFF_FPTR16F = 125 +const R_PARISC_LTOFF_FPTR16WF = 126 +const R_PARISC_LTOFF_FPTR21L = 58 +const R_PARISC_LTOFF_FPTR32 = 57 +const R_PARISC_LTOFF_FPTR64 = 120 +const R_PARISC_LTOFF_TP14DR = 228 +const R_PARISC_LTOFF_TP14F = 167 +const R_PARISC_LTOFF_TP14R = 166 +const R_PARISC_LTOFF_TP14WR = 227 +const R_PARISC_LTOFF_TP16DF = 231 +const R_PARISC_LTOFF_TP16F = 229 +const R_PARISC_LTOFF_TP16WF = 230 +const R_PARISC_LTOFF_TP21L = 162 +const R_PARISC_LTOFF_TP64 = 224 +const R_PARISC_NONE = 0 +const R_PARISC_PCREL14DR = 76 +const R_PARISC_PCREL14R = 14 +const R_PARISC_PCREL14WR = 75 +const R_PARISC_PCREL16DF = 79 +const R_PARISC_PCREL16F = 77 +const R_PARISC_PCREL16WF = 78 +const R_PARISC_PCREL17F = 12 +const R_PARISC_PCREL17R = 11 +const R_PARISC_PCREL21L = 10 +const R_PARISC_PCREL22F = 74 +const R_PARISC_PCREL32 = 9 +const R_PARISC_PCREL64 = 72 +const R_PARISC_PLABEL14R = 70 +const R_PARISC_PLABEL21L = 66 +const R_PARISC_PLABEL32 = 65 +const R_PARISC_PLTOFF14DR = 116 +const R_PARISC_PLTOFF14R = 54 +const R_PARISC_PLTOFF14WR = 115 +const R_PARISC_PLTOFF16DF = 119 +const R_PARISC_PLTOFF16F = 117 +const R_PARISC_PLTOFF16WF = 118 +const R_PARISC_PLTOFF21L = 50 +const R_PARISC_SECREL32 = 41 +const R_PARISC_SECREL64 = 104 +const R_PARISC_SEGBASE = 48 +const R_PARISC_SEGREL32 = 49 +const R_PARISC_SEGREL64 = 112 +const R_PARISC_TLS_DTPMOD32 = 242 +const R_PARISC_TLS_DTPMOD64 = 243 +const R_PARISC_TLS_DTPOFF32 = 244 +const R_PARISC_TLS_DTPOFF64 = 245 +const R_PARISC_TLS_GD14R = 235 +const R_PARISC_TLS_GD21L = 234 +const R_PARISC_TLS_GDCALL = 236 +const R_PARISC_TLS_IE14R = 166 +const R_PARISC_TLS_IE21L = 162 +const R_PARISC_TLS_LDM14R = 238 +const R_PARISC_TLS_LDM21L = 237 +const R_PARISC_TLS_LDMCALL = 239 +const R_PARISC_TLS_LDO14R = 241 +const R_PARISC_TLS_LDO21L = 240 +const R_PARISC_TLS_LE14R = 158 +const R_PARISC_TLS_LE21L = 154 +const R_PARISC_TLS_TPREL32 = 153 +const R_PARISC_TLS_TPREL64 = 216 +const R_PARISC_TPREL14DR = 220 +const R_PARISC_TPREL14R = 158 +const R_PARISC_TPREL14WR = 219 +const R_PARISC_TPREL16DF = 223 +const R_PARISC_TPREL16F = 221 +const R_PARISC_TPREL16WF = 222 +const R_PARISC_TPREL21L = 154 +const R_PARISC_TPREL32 = 153 +const R_PARISC_TPREL64 = 216 +const R_PPC64_ADDR14 = 7 +const R_PPC64_ADDR14_BRNTAKEN = 9 +const R_PPC64_ADDR14_BRTAKEN = 8 +const R_PPC64_ADDR16 = 3 +const R_PPC64_ADDR16_DS = 56 +const R_PPC64_ADDR16_HA = 6 +const R_PPC64_ADDR16_HI = 5 +const R_PPC64_ADDR16_HIGH = 110 +const R_PPC64_ADDR16_HIGHA = 111 +const R_PPC64_ADDR16_HIGHER = 39 +const R_PPC64_ADDR16_HIGHERA = 40 +const R_PPC64_ADDR16_HIGHEST = 41 +const R_PPC64_ADDR16_HIGHESTA = 42 +const R_PPC64_ADDR16_LO = 4 +const R_PPC64_ADDR16_LO_DS = 57 +const R_PPC64_ADDR24 = 2 +const R_PPC64_ADDR30 = 37 +const R_PPC64_ADDR32 = 1 +const R_PPC64_ADDR64 = 38 +const R_PPC64_COPY = 19 +const R_PPC64_DTPMOD64 = 68 +const R_PPC64_DTPREL16 = 74 +const R_PPC64_DTPREL16_DS = 101 +const R_PPC64_DTPREL16_HA = 77 +const R_PPC64_DTPREL16_HI = 76 +const R_PPC64_DTPREL16_HIGH = 114 +const R_PPC64_DTPREL16_HIGHA = 115 +const R_PPC64_DTPREL16_HIGHER = 103 +const R_PPC64_DTPREL16_HIGHERA = 104 +const R_PPC64_DTPREL16_HIGHEST = 105 +const R_PPC64_DTPREL16_HIGHESTA = 106 +const R_PPC64_DTPREL16_LO = 75 +const R_PPC64_DTPREL16_LO_DS = 102 +const R_PPC64_DTPREL64 = 78 +const R_PPC64_GLOB_DAT = 20 +const R_PPC64_GOT16 = 14 +const R_PPC64_GOT16_DS = 58 +const R_PPC64_GOT16_HA = 17 +const R_PPC64_GOT16_HI = 16 +const R_PPC64_GOT16_LO = 15 +const R_PPC64_GOT16_LO_DS = 59 +const R_PPC64_GOT_DTPREL16_DS = 91 +const R_PPC64_GOT_DTPREL16_HA = 94 +const R_PPC64_GOT_DTPREL16_HI = 93 +const R_PPC64_GOT_DTPREL16_LO_DS = 92 +const R_PPC64_GOT_TLSGD16 = 79 +const R_PPC64_GOT_TLSGD16_HA = 82 +const R_PPC64_GOT_TLSGD16_HI = 81 +const R_PPC64_GOT_TLSGD16_LO = 80 +const R_PPC64_GOT_TLSLD16 = 83 +const R_PPC64_GOT_TLSLD16_HA = 86 +const R_PPC64_GOT_TLSLD16_HI = 85 +const R_PPC64_GOT_TLSLD16_LO = 84 +const R_PPC64_GOT_TPREL16_DS = 87 +const R_PPC64_GOT_TPREL16_HA = 90 +const R_PPC64_GOT_TPREL16_HI = 89 +const R_PPC64_GOT_TPREL16_LO_DS = 88 +const R_PPC64_IRELATIVE = 248 +const R_PPC64_JMP_IREL = 247 +const R_PPC64_JMP_SLOT = 21 +const R_PPC64_NONE = 0 +const R_PPC64_PLT16_HA = 31 +const R_PPC64_PLT16_HI = 30 +const R_PPC64_PLT16_LO = 29 +const R_PPC64_PLT16_LO_DS = 60 +const R_PPC64_PLT32 = 27 +const R_PPC64_PLT64 = 45 +const R_PPC64_PLTGOT16 = 52 +const R_PPC64_PLTGOT16_DS = 65 +const R_PPC64_PLTGOT16_HA = 55 +const R_PPC64_PLTGOT16_HI = 54 +const R_PPC64_PLTGOT16_LO = 53 +const R_PPC64_PLTGOT16_LO_DS = 66 +const R_PPC64_PLTREL32 = 28 +const R_PPC64_PLTREL64 = 46 +const R_PPC64_REL14 = 11 +const R_PPC64_REL14_BRNTAKEN = 13 +const R_PPC64_REL14_BRTAKEN = 12 +const R_PPC64_REL16 = 249 +const R_PPC64_REL16_HA = 252 +const R_PPC64_REL16_HI = 251 +const R_PPC64_REL16_LO = 250 +const R_PPC64_REL24 = 10 +const R_PPC64_REL32 = 26 +const R_PPC64_REL64 = 44 +const R_PPC64_RELATIVE = 22 +const R_PPC64_SECTOFF = 33 +const R_PPC64_SECTOFF_DS = 61 +const R_PPC64_SECTOFF_HA = 36 +const R_PPC64_SECTOFF_HI = 35 +const R_PPC64_SECTOFF_LO = 34 +const R_PPC64_SECTOFF_LO_DS = 62 +const R_PPC64_TLS = 67 +const R_PPC64_TLSGD = 107 +const R_PPC64_TLSLD = 108 +const R_PPC64_TOC = 51 +const R_PPC64_TOC16 = 47 +const R_PPC64_TOC16_DS = 63 +const R_PPC64_TOC16_HA = 50 +const R_PPC64_TOC16_HI = 49 +const R_PPC64_TOC16_LO = 48 +const R_PPC64_TOC16_LO_DS = 64 +const R_PPC64_TOCSAVE = 109 +const R_PPC64_TPREL16 = 69 +const R_PPC64_TPREL16_DS = 95 +const R_PPC64_TPREL16_HA = 72 +const R_PPC64_TPREL16_HI = 71 +const R_PPC64_TPREL16_HIGH = 112 +const R_PPC64_TPREL16_HIGHA = 113 +const R_PPC64_TPREL16_HIGHER = 97 +const R_PPC64_TPREL16_HIGHERA = 98 +const R_PPC64_TPREL16_HIGHEST = 99 +const R_PPC64_TPREL16_HIGHESTA = 100 +const R_PPC64_TPREL16_LO = 70 +const R_PPC64_TPREL16_LO_DS = 96 +const R_PPC64_TPREL64 = 73 +const R_PPC64_UADDR16 = 25 +const R_PPC64_UADDR32 = 24 +const R_PPC64_UADDR64 = 43 +const R_PPC_ADDR14 = 7 +const R_PPC_ADDR14_BRNTAKEN = 9 +const R_PPC_ADDR14_BRTAKEN = 8 +const R_PPC_ADDR16 = 3 +const R_PPC_ADDR16_HA = 6 +const R_PPC_ADDR16_HI = 5 +const R_PPC_ADDR16_LO = 4 +const R_PPC_ADDR24 = 2 +const R_PPC_ADDR32 = 1 +const R_PPC_COPY = 19 +const R_PPC_DIAB_RELSDA_HA = 185 +const R_PPC_DIAB_RELSDA_HI = 184 +const R_PPC_DIAB_RELSDA_LO = 183 +const R_PPC_DIAB_SDA21_HA = 182 +const R_PPC_DIAB_SDA21_HI = 181 +const R_PPC_DIAB_SDA21_LO = 180 +const R_PPC_DTPMOD32 = 68 +const R_PPC_DTPREL16 = 74 +const R_PPC_DTPREL16_HA = 77 +const R_PPC_DTPREL16_HI = 76 +const R_PPC_DTPREL16_LO = 75 +const R_PPC_DTPREL32 = 78 +const R_PPC_EMB_BIT_FLD = 115 +const R_PPC_EMB_MRKREF = 110 +const R_PPC_EMB_NADDR16 = 102 +const R_PPC_EMB_NADDR16_HA = 105 +const R_PPC_EMB_NADDR16_HI = 104 +const R_PPC_EMB_NADDR16_LO = 103 +const R_PPC_EMB_NADDR32 = 101 +const R_PPC_EMB_RELSDA = 116 +const R_PPC_EMB_RELSEC16 = 111 +const R_PPC_EMB_RELST_HA = 114 +const R_PPC_EMB_RELST_HI = 113 +const R_PPC_EMB_RELST_LO = 112 +const R_PPC_EMB_SDA21 = 109 +const R_PPC_EMB_SDA2I16 = 107 +const R_PPC_EMB_SDA2REL = 108 +const R_PPC_EMB_SDAI16 = 106 +const R_PPC_GLOB_DAT = 20 +const R_PPC_GOT16 = 14 +const R_PPC_GOT16_HA = 17 +const R_PPC_GOT16_HI = 16 +const R_PPC_GOT16_LO = 15 +const R_PPC_GOT_DTPREL16 = 91 +const R_PPC_GOT_DTPREL16_HA = 94 +const R_PPC_GOT_DTPREL16_HI = 93 +const R_PPC_GOT_DTPREL16_LO = 92 +const R_PPC_GOT_TLSGD16 = 79 +const R_PPC_GOT_TLSGD16_HA = 82 +const R_PPC_GOT_TLSGD16_HI = 81 +const R_PPC_GOT_TLSGD16_LO = 80 +const R_PPC_GOT_TLSLD16 = 83 +const R_PPC_GOT_TLSLD16_HA = 86 +const R_PPC_GOT_TLSLD16_HI = 85 +const R_PPC_GOT_TLSLD16_LO = 84 +const R_PPC_GOT_TPREL16 = 87 +const R_PPC_GOT_TPREL16_HA = 90 +const R_PPC_GOT_TPREL16_HI = 89 +const R_PPC_GOT_TPREL16_LO = 88 +const R_PPC_IRELATIVE = 248 +const R_PPC_JMP_SLOT = 21 +const R_PPC_LOCAL24PC = 23 +const R_PPC_NONE = 0 +const R_PPC_PLT16_HA = 31 +const R_PPC_PLT16_HI = 30 +const R_PPC_PLT16_LO = 29 +const R_PPC_PLT32 = 27 +const R_PPC_PLTREL24 = 18 +const R_PPC_PLTREL32 = 28 +const R_PPC_REL14 = 11 +const R_PPC_REL14_BRNTAKEN = 13 +const R_PPC_REL14_BRTAKEN = 12 +const R_PPC_REL16 = 249 +const R_PPC_REL16_HA = 252 +const R_PPC_REL16_HI = 251 +const R_PPC_REL16_LO = 250 +const R_PPC_REL24 = 10 +const R_PPC_REL32 = 26 +const R_PPC_RELATIVE = 22 +const R_PPC_SDAREL16 = 32 +const R_PPC_SECTOFF = 33 +const R_PPC_SECTOFF_HA = 36 +const R_PPC_SECTOFF_HI = 35 +const R_PPC_SECTOFF_LO = 34 +const R_PPC_TLS = 67 +const R_PPC_TLSGD = 95 +const R_PPC_TLSLD = 96 +const R_PPC_TOC16 = 255 +const R_PPC_TPREL16 = 69 +const R_PPC_TPREL16_HA = 72 +const R_PPC_TPREL16_HI = 71 +const R_PPC_TPREL16_LO = 70 +const R_PPC_TPREL32 = 73 +const R_PPC_UADDR16 = 25 +const R_PPC_UADDR32 = 24 +const R_RISCV_32 = 1 +const R_RISCV_32_PCREL = 57 +const R_RISCV_64 = 2 +const R_RISCV_ADD16 = 34 +const R_RISCV_ADD32 = 35 +const R_RISCV_ADD64 = 36 +const R_RISCV_ADD8 = 33 +const R_RISCV_ALIGN = 43 +const R_RISCV_BRANCH = 16 +const R_RISCV_CALL = 18 +const R_RISCV_CALL_PLT = 19 +const R_RISCV_COPY = 4 +const R_RISCV_GOT32_PCREL = 41 +const R_RISCV_GOT_HI20 = 20 +const R_RISCV_HI20 = 26 +const R_RISCV_IRELATIVE = 58 +const R_RISCV_JAL = 17 +const R_RISCV_JUMP_SLOT = 5 +const R_RISCV_LO12_I = 27 +const R_RISCV_LO12_S = 28 +const R_RISCV_NONE = 0 +const R_RISCV_PCREL_HI20 = 23 +const R_RISCV_PCREL_LO12_I = 24 +const R_RISCV_PCREL_LO12_S = 25 +const R_RISCV_PLT32 = 59 +const R_RISCV_RELATIVE = 3 +const R_RISCV_RELAX = 51 +const R_RISCV_RVC_BRANCH = 44 +const R_RISCV_RVC_JUMP = 45 +const R_RISCV_RVC_LUI = 46 +const R_RISCV_SET16 = 55 +const R_RISCV_SET32 = 56 +const R_RISCV_SET6 = 53 +const R_RISCV_SET8 = 54 +const R_RISCV_SET_ULEB128 = 60 +const R_RISCV_SUB16 = 38 +const R_RISCV_SUB32 = 39 +const R_RISCV_SUB6 = 52 +const R_RISCV_SUB64 = 40 +const R_RISCV_SUB8 = 37 +const R_RISCV_SUB_ULEB128 = 61 +const R_RISCV_TLSDESC = 12 +const R_RISCV_TLSDESC_ADD_LO12 = 64 +const R_RISCV_TLSDESC_CALL = 65 +const R_RISCV_TLSDESC_HI20 = 62 +const R_RISCV_TLSDESC_LOAD_LO12 = 63 +const R_RISCV_TLS_DTPMOD32 = 6 +const R_RISCV_TLS_DTPMOD64 = 7 +const R_RISCV_TLS_DTPREL32 = 8 +const R_RISCV_TLS_DTPREL64 = 9 +const R_RISCV_TLS_GD_HI20 = 22 +const R_RISCV_TLS_GOT_HI20 = 21 +const R_RISCV_TLS_TPREL32 = 10 +const R_RISCV_TLS_TPREL64 = 11 +const R_RISCV_TPREL_ADD = 32 +const R_RISCV_TPREL_HI20 = 29 +const R_RISCV_TPREL_LO12_I = 30 +const R_RISCV_TPREL_LO12_S = 31 +const R_SH_ALIGN = 29 +const R_SH_CODE = 30 +const R_SH_COPY = 162 +const R_SH_COUNT = 28 +const R_SH_DATA = 31 +const R_SH_DIR32 = 1 +const R_SH_DIR8BP = 7 +const R_SH_DIR8L = 9 +const R_SH_DIR8W = 8 +const R_SH_DIR8WPL = 5 +const R_SH_DIR8WPN = 3 +const R_SH_DIR8WPZ = 6 +const R_SH_FUNCDESC = 207 +const R_SH_FUNCDESC_VALUE = 208 +const R_SH_GLOB_DAT = 163 +const R_SH_GNU_VTENTRY = 35 +const R_SH_GNU_VTINHERIT = 34 +const R_SH_GOT20 = 201 +const R_SH_GOT32 = 160 +const R_SH_GOTFUNCDESC = 203 +const R_SH_GOTFUNCDEST20 = 204 +const R_SH_GOTOFF = 166 +const R_SH_GOTOFF20 = 202 +const R_SH_GOTOFFFUNCDESC = 205 +const R_SH_GOTOFFFUNCDEST20 = 206 +const R_SH_GOTPC = 167 +const R_SH_IND12W = 4 +const R_SH_JMP_SLOT = 164 +const R_SH_LABEL = 32 +const R_SH_NONE = 0 +const R_SH_NUM = 256 +const R_SH_PLT32 = 161 +const R_SH_REL32 = 2 +const R_SH_RELATIVE = 165 +const R_SH_SWITCH16 = 25 +const R_SH_SWITCH32 = 26 +const R_SH_SWITCH8 = 33 +const R_SH_TLS_DTPMOD32 = 149 +const R_SH_TLS_DTPOFF32 = 150 +const R_SH_TLS_GD_32 = 144 +const R_SH_TLS_IE_32 = 147 +const R_SH_TLS_LDO_32 = 146 +const R_SH_TLS_LD_32 = 145 +const R_SH_TLS_LE_32 = 148 +const R_SH_TLS_TPOFF32 = 151 +const R_SH_USES = 27 +const R_SPARC_10 = 30 +const R_SPARC_11 = 31 +const R_SPARC_13 = 11 +const R_SPARC_16 = 2 +const R_SPARC_22 = 10 +const R_SPARC_32 = 3 +const R_SPARC_5 = 44 +const R_SPARC_6 = 45 +const R_SPARC_64 = 32 +const R_SPARC_7 = 43 +const R_SPARC_8 = 1 +const R_SPARC_COPY = 19 +const R_SPARC_DISP16 = 5 +const R_SPARC_DISP32 = 6 +const R_SPARC_DISP64 = 46 +const R_SPARC_DISP8 = 4 +const R_SPARC_GLOB_DAT = 20 +const R_SPARC_GLOB_JMP = 42 +const R_SPARC_GNU_VTENTRY = 251 +const R_SPARC_GNU_VTINHERIT = 250 +const R_SPARC_GOT10 = 13 +const R_SPARC_GOT13 = 14 +const R_SPARC_GOT22 = 15 +const R_SPARC_GOTDATA_HIX22 = 80 +const R_SPARC_GOTDATA_LOX10 = 81 +const R_SPARC_GOTDATA_OP = 84 +const R_SPARC_GOTDATA_OP_HIX22 = 82 +const R_SPARC_GOTDATA_OP_LOX10 = 83 +const R_SPARC_H34 = 85 +const R_SPARC_H44 = 50 +const R_SPARC_HH22 = 34 +const R_SPARC_HI22 = 9 +const R_SPARC_HIPLT22 = 25 +const R_SPARC_HIX22 = 48 +const R_SPARC_HM10 = 35 +const R_SPARC_JMP_SLOT = 21 +const R_SPARC_L44 = 52 +const R_SPARC_LM22 = 36 +const R_SPARC_LO10 = 12 +const R_SPARC_LOPLT10 = 26 +const R_SPARC_LOX10 = 49 +const R_SPARC_M44 = 51 +const R_SPARC_NONE = 0 +const R_SPARC_NUM = 253 +const R_SPARC_OLO10 = 33 +const R_SPARC_PC10 = 16 +const R_SPARC_PC22 = 17 +const R_SPARC_PCPLT10 = 29 +const R_SPARC_PCPLT22 = 28 +const R_SPARC_PCPLT32 = 27 +const R_SPARC_PC_HH22 = 37 +const R_SPARC_PC_HM10 = 38 +const R_SPARC_PC_LM22 = 39 +const R_SPARC_PLT32 = 24 +const R_SPARC_PLT64 = 47 +const R_SPARC_REGISTER = 53 +const R_SPARC_RELATIVE = 22 +const R_SPARC_REV32 = 252 +const R_SPARC_SIZE32 = 86 +const R_SPARC_SIZE64 = 87 +const R_SPARC_TLS_DTPMOD32 = 74 +const R_SPARC_TLS_DTPMOD64 = 75 +const R_SPARC_TLS_DTPOFF32 = 76 +const R_SPARC_TLS_DTPOFF64 = 77 +const R_SPARC_TLS_GD_ADD = 58 +const R_SPARC_TLS_GD_CALL = 59 +const R_SPARC_TLS_GD_HI22 = 56 +const R_SPARC_TLS_GD_LO10 = 57 +const R_SPARC_TLS_IE_ADD = 71 +const R_SPARC_TLS_IE_HI22 = 67 +const R_SPARC_TLS_IE_LD = 69 +const R_SPARC_TLS_IE_LDX = 70 +const R_SPARC_TLS_IE_LO10 = 68 +const R_SPARC_TLS_LDM_ADD = 62 +const R_SPARC_TLS_LDM_CALL = 63 +const R_SPARC_TLS_LDM_HI22 = 60 +const R_SPARC_TLS_LDM_LO10 = 61 +const R_SPARC_TLS_LDO_ADD = 66 +const R_SPARC_TLS_LDO_HIX22 = 64 +const R_SPARC_TLS_LDO_LOX10 = 65 +const R_SPARC_TLS_LE_HIX22 = 72 +const R_SPARC_TLS_LE_LOX10 = 73 +const R_SPARC_TLS_TPOFF32 = 78 +const R_SPARC_TLS_TPOFF64 = 79 +const R_SPARC_UA16 = 55 +const R_SPARC_UA32 = 23 +const R_SPARC_UA64 = 54 +const R_SPARC_WDISP16 = 40 +const R_SPARC_WDISP19 = 41 +const R_SPARC_WDISP22 = 8 +const R_SPARC_WDISP30 = 7 +const R_SPARC_WPLT30 = 18 +const R_X86_64_16 = 12 +const R_X86_64_32 = 10 +const R_X86_64_32S = 11 +const R_X86_64_64 = 1 +const R_X86_64_8 = 14 +const R_X86_64_COPY = 5 +const R_X86_64_DTPMOD64 = 16 +const R_X86_64_DTPOFF32 = 21 +const R_X86_64_DTPOFF64 = 17 +const R_X86_64_GLOB_DAT = 6 +const R_X86_64_GOT32 = 3 +const R_X86_64_GOT64 = 27 +const R_X86_64_GOTOFF64 = 25 +const R_X86_64_GOTPC32 = 26 +const R_X86_64_GOTPC32_TLSDESC = 34 +const R_X86_64_GOTPC64 = 29 +const R_X86_64_GOTPCREL = 9 +const R_X86_64_GOTPCREL64 = 28 +const R_X86_64_GOTPCRELX = 41 +const R_X86_64_GOTPLT64 = 30 +const R_X86_64_GOTTPOFF = 22 +const R_X86_64_IRELATIVE = 37 +const R_X86_64_JUMP_SLOT = 7 +const R_X86_64_NONE = 0 +const R_X86_64_NUM = 43 +const R_X86_64_PC16 = 13 +const R_X86_64_PC32 = 2 +const R_X86_64_PC64 = 24 +const R_X86_64_PC8 = 15 +const R_X86_64_PLT32 = 4 +const R_X86_64_PLTOFF64 = 31 +const R_X86_64_RELATIVE = 8 +const R_X86_64_RELATIVE64 = 38 +const R_X86_64_REX_GOTPCRELX = 42 +const R_X86_64_SIZE32 = 32 +const R_X86_64_SIZE64 = 33 +const R_X86_64_TLSDESC = 36 +const R_X86_64_TLSDESC_CALL = 35 +const R_X86_64_TLSGD = 19 +const R_X86_64_TLSLD = 20 +const R_X86_64_TPOFF32 = 23 +const R_X86_64_TPOFF64 = 18 +const SA_EXPOSE_TAGBITS = 2048 +const SA_NOCLDSTOP = 1 +const SA_NOCLDWAIT = 2 +const SA_NODEFER = 1073741824 +const SA_ONSTACK = 134217728 +const SA_RESETHAND = 2147483648 +const SA_RESTART = 268435456 +const SA_SIGINFO = 4 +const SA_UNSUPPORTED = 1024 +const SCM_TIMESTAMPING_OLD = 37 +const SCM_TIMESTAMPNS_OLD = 35 +const SCM_TIMESTAMP_OLD = 29 +const SEGV_ACCERR = 2 +const SEGV_BNDERR = 3 +const SEGV_MAPERR = 1 +const SEGV_MTEAERR = 8 +const SEGV_MTESERR = 9 +const SEGV_PKUERR = 4 +const SELFMAG = 4 +const SHF_ALLOC = 2 +const SHF_ALPHA_GPREL = 268435456 +const SHF_ARM_COMDEF = 2147483648 +const SHF_ARM_ENTRYSECT = 268435456 +const SHF_COMPRESSED = 2048 +const SHF_EXCLUDE = 2147483648 +const SHF_EXECINSTR = 4 +const SHF_GROUP = 512 +const SHF_IA_64_NORECOV = 536870912 +const SHF_IA_64_SHORT = 268435456 +const SHF_INFO_LINK = 64 +const SHF_LINK_ORDER = 128 +const SHF_MASKOS = 267386880 +const SHF_MASKPROC = 4026531840 +const SHF_MERGE = 16 +const SHF_MIPS_ADDR = 1073741824 +const SHF_MIPS_GPREL = 268435456 +const SHF_MIPS_LOCAL = 67108864 +const SHF_MIPS_MERGE = 536870912 +const SHF_MIPS_NAMES = 33554432 +const SHF_MIPS_NODUPE = 16777216 +const SHF_MIPS_NOSTRIP = 134217728 +const SHF_MIPS_STRINGS = 2147483648 +const SHF_ORDERED = 1073741824 +const SHF_OS_NONCONFORMING = 256 +const SHF_PARISC_HUGE = 1073741824 +const SHF_PARISC_SBP = 2147483648 +const SHF_PARISC_SHORT = 536870912 +const SHF_STRINGS = 32 +const SHF_TLS = 1024 +const SHF_WRITE = 1 +const SHN_ABS = 65521 +const SHN_AFTER = 65281 +const SHN_BEFORE = 65280 +const SHN_COMMON = 65522 +const SHN_HIOS = 65343 +const SHN_HIPROC = 65311 +const SHN_HIRESERVE = 65535 +const SHN_LOOS = 65312 +const SHN_LOPROC = 65280 +const SHN_LORESERVE = 65280 +const SHN_MIPS_ACOMMON = 65280 +const SHN_MIPS_DATA = 65282 +const SHN_MIPS_SCOMMON = 65283 +const SHN_MIPS_SUNDEFINED = 65284 +const SHN_MIPS_TEXT = 65281 +const SHN_PARISC_ANSI_COMMON = 65280 +const SHN_PARISC_HUGE_COMMON = 65281 +const SHN_UNDEF = 0 +const SHN_XINDEX = 65535 +const SHT_ALPHA_DEBUG = 1879048193 +const SHT_ALPHA_REGINFO = 1879048194 +const SHT_ARM_ATTRIBUTES = 1879048195 +const SHT_ARM_EXIDX = 1879048193 +const SHT_ARM_PREEMPTMAP = 1879048194 +const SHT_CHECKSUM = 1879048184 +const SHT_DYNAMIC = 6 +const SHT_DYNSYM = 11 +const SHT_FINI_ARRAY = 15 +const SHT_GNU_ATTRIBUTES = 1879048181 +const SHT_GNU_HASH = 1879048182 +const SHT_GNU_LIBLIST = 1879048183 +const SHT_GNU_verdef = 1879048189 +const SHT_GNU_verneed = 1879048190 +const SHT_GNU_versym = 1879048191 +const SHT_GROUP = 17 +const SHT_HASH = 5 +const SHT_HIOS = 1879048191 +const SHT_HIPROC = 2147483647 +const SHT_HISUNW = 1879048191 +const SHT_HIUSER = 2415919103 +const SHT_IA_64_EXT = 1879048192 +const SHT_IA_64_UNWIND = 1879048193 +const SHT_INIT_ARRAY = 14 +const SHT_LOOS = 1610612736 +const SHT_LOPROC = 1879048192 +const SHT_LOSUNW = 1879048186 +const SHT_LOUSER = 2147483648 +const SHT_MIPS_AUXSYM = 1879048214 +const SHT_MIPS_CONFLICT = 1879048194 +const SHT_MIPS_CONTENT = 1879048204 +const SHT_MIPS_DEBUG = 1879048197 +const SHT_MIPS_DELTACLASS = 1879048221 +const SHT_MIPS_DELTADECL = 1879048223 +const SHT_MIPS_DELTAINST = 1879048220 +const SHT_MIPS_DELTASYM = 1879048219 +const SHT_MIPS_DENSE = 1879048211 +const SHT_MIPS_DWARF = 1879048222 +const SHT_MIPS_EH_REGION = 1879048231 +const SHT_MIPS_EVENTS = 1879048225 +const SHT_MIPS_EXTSYM = 1879048210 +const SHT_MIPS_FDESC = 1879048209 +const SHT_MIPS_GPTAB = 1879048195 +const SHT_MIPS_IFACE = 1879048203 +const SHT_MIPS_LIBLIST = 1879048192 +const SHT_MIPS_LINE = 1879048217 +const SHT_MIPS_LOCSTR = 1879048216 +const SHT_MIPS_LOCSYM = 1879048213 +const SHT_MIPS_MSYM = 1879048193 +const SHT_MIPS_OPTIONS = 1879048205 +const SHT_MIPS_OPTSYM = 1879048215 +const SHT_MIPS_PACKAGE = 1879048199 +const SHT_MIPS_PACKSYM = 1879048200 +const SHT_MIPS_PDESC = 1879048212 +const SHT_MIPS_PDR_EXCEPTION = 1879048233 +const SHT_MIPS_PIXIE = 1879048227 +const SHT_MIPS_REGINFO = 1879048198 +const SHT_MIPS_RELD = 1879048201 +const SHT_MIPS_RFDESC = 1879048218 +const SHT_MIPS_SHDR = 1879048208 +const SHT_MIPS_SYMBOL_LIB = 1879048224 +const SHT_MIPS_TRANSLATE = 1879048226 +const SHT_MIPS_UCODE = 1879048196 +const SHT_MIPS_WHIRL = 1879048230 +const SHT_MIPS_XLATE = 1879048228 +const SHT_MIPS_XLATE_DEBUG = 1879048229 +const SHT_MIPS_XLATE_OLD = 1879048232 +const SHT_NOBITS = 8 +const SHT_NOTE = 7 +const SHT_NULL = 0 +const SHT_NUM = 20 +const SHT_PARISC_DOC = 1879048194 +const SHT_PARISC_EXT = 1879048192 +const SHT_PARISC_UNWIND = 1879048193 +const SHT_PREINIT_ARRAY = 16 +const SHT_PROGBITS = 1 +const SHT_REL = 9 +const SHT_RELA = 4 +const SHT_RELR = 19 +const SHT_SHLIB = 10 +const SHT_STRTAB = 3 +const SHT_SUNW_COMDAT = 1879048187 +const SHT_SUNW_move = 1879048186 +const SHT_SUNW_syminfo = 1879048188 +const SHT_SYMTAB = 2 +const SHT_SYMTAB_SHNDX = 18 +const SIGABRT = 6 +const SIGALRM = 14 +const SIGBUS = 7 +const SIGCHLD = 17 +const SIGCONT = 18 +const SIGEV_NONE = 1 +const SIGEV_SIGNAL = 0 +const SIGEV_THREAD = 2 +const SIGEV_THREAD_ID = 4 +const SIGFPE = 8 +const SIGHUP = 1 +const SIGILL = 4 +const SIGINT = 2 +const SIGIO = 29 +const SIGIOT = 6 +const SIGKILL = 9 +const SIGPIPE = 13 +const SIGPOLL = 29 +const SIGPROF = 27 +const SIGPWR = 30 +const SIGQUIT = 3 +const SIGRTMAX = 0 +const SIGRTMIN = 0 +const SIGSEGV = 11 +const SIGSTKFLT = 16 +const SIGSTKSZ = 8192 +const SIGSTOP = 19 +const SIGSYS = 31 +const SIGTERM = 15 +const SIGTRAP = 5 +const SIGTSTP = 20 +const SIGTTIN = 21 +const SIGTTOU = 22 +const SIGUNUSED = 31 +const SIGURG = 23 +const SIGUSR1 = 10 +const SIGUSR2 = 12 +const SIGVTALRM = 26 +const SIGWINCH = 28 +const SIGXCPU = 24 +const SIGXFSZ = 25 +const SIG_BLOCK = 0 +const SIG_SETMASK = 2 +const SIG_UNBLOCK = 1 +const SIOCGSTAMPNS_OLD = 35079 +const SIOCGSTAMP_OLD = 35078 +const SI_ASYNCIO = -4 +const SI_ASYNCNL = -60 +const SI_KERNEL = 128 +const SI_MESGQ = -3 +const SI_QUEUE = -1 +const SI_SIGIO = -5 +const SI_TIMER = -2 +const SI_TKILL = -6 +const SI_USER = 0 +const SO_RCVTIMEO_OLD = 20 +const SO_SNDTIMEO_OLD = 21 +const SO_TIMESTAMPING_OLD = 37 +const SO_TIMESTAMPNS_OLD = 35 +const SO_TIMESTAMP_OLD = 29 +const SS_AUTODISARM = 2147483648 +const SS_DISABLE = 2 +const SS_FLAG_BITS = 2147483648 +const SS_ONSTACK = 1 +const STB_GLOBAL = 1 +const STB_GNU_UNIQUE = 10 +const STB_HIOS = 12 +const STB_HIPROC = 15 +const STB_LOCAL = 0 +const STB_LOOS = 10 +const STB_LOPROC = 13 +const STB_MIPS_SPLIT_COMMON = 13 +const STB_NUM = 3 +const STB_WEAK = 2 +const STN_UNDEF = 0 +const STO_ALPHA_NOPV = 128 +const STO_ALPHA_STD_GPLOAD = 136 +const STO_MIPS_DEFAULT = 0 +const STO_MIPS_HIDDEN = 2 +const STO_MIPS_INTERNAL = 1 +const STO_MIPS_PLT = 8 +const STO_MIPS_PROTECTED = 3 +const STO_MIPS_SC_ALIGN_UNUSED = 255 +const STO_PPC64_LOCAL_BIT = 5 +const STO_PPC64_LOCAL_MASK = 224 +const STT_ARM_16BIT = 15 +const STT_ARM_TFUNC = 13 +const STT_COMMON = 5 +const STT_FILE = 4 +const STT_FUNC = 2 +const STT_GNU_IFUNC = 10 +const STT_HIOS = 12 +const STT_HIPROC = 15 +const STT_HP_OPAQUE = 11 +const STT_HP_STUB = 12 +const STT_LOOS = 10 +const STT_LOPROC = 13 +const STT_NOTYPE = 0 +const STT_NUM = 7 +const STT_OBJECT = 1 +const STT_PARISC_MILLICODE = 13 +const STT_SECTION = 3 +const STT_SPARC_REGISTER = 13 +const STT_TLS = 6 +const STV_DEFAULT = 0 +const STV_HIDDEN = 2 +const STV_INTERNAL = 1 +const STV_PROTECTED = 3 +const SYMINFO_BT_LOWRESERVE = 65280 +const SYMINFO_BT_PARENT = 65534 +const SYMINFO_BT_SELF = 65535 +const SYMINFO_CURRENT = 1 +const SYMINFO_FLG_COPY = 4 +const SYMINFO_FLG_DIRECT = 1 +const SYMINFO_FLG_LAZYLOAD = 8 +const SYMINFO_FLG_PASSTHRU = 2 +const SYMINFO_NONE = 0 +const SYMINFO_NUM = 2 +const SYSCALL_MMAP2_UNIT = 4096 +const SYSCALL_RLIM_INFINITY = 18446744073709551615 +const SYS_accept = 202 +const SYS_accept4 = 242 +const SYS_acct = 89 +const SYS_add_key = 217 +const SYS_adjtimex = 171 +const SYS_arch_specific_syscall = 244 +const SYS_bind = 200 +const SYS_bpf = 280 +const SYS_brk = 214 +const SYS_cachestat = 451 +const SYS_capget = 90 +const SYS_capset = 91 +const SYS_chdir = 49 +const SYS_chroot = 51 +const SYS_clock_adjtime = 266 +const SYS_clock_getres = 114 +const SYS_clock_gettime = 113 +const SYS_clock_nanosleep = 115 +const SYS_clock_settime = 112 +const SYS_clone = 220 +const SYS_clone3 = 435 +const SYS_close = 57 +const SYS_close_range = 436 +const SYS_connect = 203 +const SYS_copy_file_range = 285 +const SYS_delete_module = 106 +const SYS_dup = 23 +const SYS_dup3 = 24 +const SYS_epoll_create1 = 20 +const SYS_epoll_ctl = 21 +const SYS_epoll_pwait = 22 +const SYS_epoll_pwait2 = 441 +const SYS_eventfd2 = 19 +const SYS_execve = 221 +const SYS_execveat = 281 +const SYS_exit = 93 +const SYS_exit_group = 94 +const SYS_faccessat = 48 +const SYS_faccessat2 = 439 +const SYS_fadvise64 = 223 +const SYS_fallocate = 47 +const SYS_fanotify_init = 262 +const SYS_fanotify_mark = 263 +const SYS_fchdir = 50 +const SYS_fchmod = 52 +const SYS_fchmodat = 53 +const SYS_fchmodat2 = 452 +const SYS_fchown = 55 +const SYS_fchownat = 54 +const SYS_fcntl = 25 +const SYS_fdatasync = 83 +const SYS_fgetxattr = 10 +const SYS_finit_module = 273 +const SYS_flistxattr = 13 +const SYS_flock = 32 +const SYS_fremovexattr = 16 +const SYS_fsconfig = 431 +const SYS_fsetxattr = 7 +const SYS_fsmount = 432 +const SYS_fsopen = 430 +const SYS_fspick = 433 +const SYS_fstat = 80 +const SYS_fstatfs = 44 +const SYS_fsync = 82 +const SYS_ftruncate = 46 +const SYS_futex = 98 +const SYS_futex_waitv = 449 +const SYS_get_mempolicy = 236 +const SYS_get_robust_list = 100 +const SYS_getcpu = 168 +const SYS_getcwd = 17 +const SYS_getdents64 = 61 +const SYS_getegid = 177 +const SYS_geteuid = 175 +const SYS_getgid = 176 +const SYS_getgroups = 158 +const SYS_getitimer = 102 +const SYS_getpeername = 205 +const SYS_getpgid = 155 +const SYS_getpid = 172 +const SYS_getppid = 173 +const SYS_getpriority = 141 +const SYS_getrandom = 278 +const SYS_getresgid = 150 +const SYS_getresuid = 148 +const SYS_getrlimit = 163 +const SYS_getrusage = 165 +const SYS_getsid = 156 +const SYS_getsockname = 204 +const SYS_getsockopt = 209 +const SYS_gettid = 178 +const SYS_gettimeofday = 169 +const SYS_getuid = 174 +const SYS_getxattr = 8 +const SYS_init_module = 105 +const SYS_inotify_add_watch = 27 +const SYS_inotify_init1 = 26 +const SYS_inotify_rm_watch = 28 +const SYS_io_cancel = 3 +const SYS_io_destroy = 1 +const SYS_io_getevents = 4 +const SYS_io_pgetevents = 292 +const SYS_io_setup = 0 +const SYS_io_submit = 2 +const SYS_io_uring_enter = 426 +const SYS_io_uring_register = 427 +const SYS_io_uring_setup = 425 +const SYS_ioctl = 29 +const SYS_ioprio_get = 31 +const SYS_ioprio_set = 30 +const SYS_kcmp = 272 +const SYS_kexec_file_load = 294 +const SYS_kexec_load = 104 +const SYS_keyctl = 219 +const SYS_kill = 129 +const SYS_landlock_add_rule = 445 +const SYS_landlock_create_ruleset = 444 +const SYS_landlock_restrict_self = 446 +const SYS_lgetxattr = 9 +const SYS_linkat = 37 +const SYS_listen = 201 +const SYS_listxattr = 11 +const SYS_llistxattr = 12 +const SYS_lookup_dcookie = 18 +const SYS_lremovexattr = 15 +const SYS_lseek = 62 +const SYS_lsetxattr = 6 +const SYS_madvise = 233 +const SYS_mbind = 235 +const SYS_membarrier = 283 +const SYS_memfd_create = 279 +const SYS_migrate_pages = 238 +const SYS_mincore = 232 +const SYS_mkdirat = 34 +const SYS_mknodat = 33 +const SYS_mlock = 228 +const SYS_mlock2 = 284 +const SYS_mlockall = 230 +const SYS_mmap = 222 +const SYS_mount = 40 +const SYS_mount_setattr = 442 +const SYS_move_mount = 429 +const SYS_move_pages = 239 +const SYS_mprotect = 226 +const SYS_mq_getsetattr = 185 +const SYS_mq_notify = 184 +const SYS_mq_open = 180 +const SYS_mq_timedreceive = 183 +const SYS_mq_timedsend = 182 +const SYS_mq_unlink = 181 +const SYS_mremap = 216 +const SYS_msgctl = 187 +const SYS_msgget = 186 +const SYS_msgrcv = 188 +const SYS_msgsnd = 189 +const SYS_msync = 227 +const SYS_munlock = 229 +const SYS_munlockall = 231 +const SYS_munmap = 215 +const SYS_name_to_handle_at = 264 +const SYS_nanosleep = 101 +const SYS_newfstatat = 79 +const SYS_nfsservctl = 42 +const SYS_open_by_handle_at = 265 +const SYS_open_tree = 428 +const SYS_openat = 56 +const SYS_openat2 = 437 +const SYS_perf_event_open = 241 +const SYS_personality = 92 +const SYS_pidfd_getfd = 438 +const SYS_pidfd_open = 434 +const SYS_pidfd_send_signal = 424 +const SYS_pipe2 = 59 +const SYS_pivot_root = 41 +const SYS_pkey_alloc = 289 +const SYS_pkey_free = 290 +const SYS_pkey_mprotect = 288 +const SYS_ppoll = 73 +const SYS_prctl = 167 +const SYS_pread64 = 67 +const SYS_preadv = 69 +const SYS_preadv2 = 286 +const SYS_prlimit64 = 261 +const SYS_process_madvise = 440 +const SYS_process_mrelease = 448 +const SYS_process_vm_readv = 270 +const SYS_process_vm_writev = 271 +const SYS_pselect6 = 72 +const SYS_ptrace = 117 +const SYS_pwrite64 = 68 +const SYS_pwritev = 70 +const SYS_pwritev2 = 287 +const SYS_quotactl = 60 +const SYS_read = 63 +const SYS_readahead = 213 +const SYS_readlinkat = 78 +const SYS_readv = 65 +const SYS_reboot = 142 +const SYS_recvfrom = 207 +const SYS_recvmmsg = 243 +const SYS_recvmsg = 212 +const SYS_remap_file_pages = 234 +const SYS_removexattr = 14 +const SYS_renameat2 = 276 +const SYS_request_key = 218 +const SYS_restart_syscall = 128 +const SYS_riscv_flush_icache = 259 +const SYS_rseq = 293 +const SYS_rt_sigaction = 134 +const SYS_rt_sigpending = 136 +const SYS_rt_sigprocmask = 135 +const SYS_rt_sigqueueinfo = 138 +const SYS_rt_sigreturn = 139 +const SYS_rt_sigsuspend = 133 +const SYS_rt_sigtimedwait = 137 +const SYS_rt_tgsigqueueinfo = 240 +const SYS_sched_get_priority_max = 125 +const SYS_sched_get_priority_min = 126 +const SYS_sched_getaffinity = 123 +const SYS_sched_getattr = 275 +const SYS_sched_getparam = 121 +const SYS_sched_getscheduler = 120 +const SYS_sched_rr_get_interval = 127 +const SYS_sched_setaffinity = 122 +const SYS_sched_setattr = 274 +const SYS_sched_setparam = 118 +const SYS_sched_setscheduler = 119 +const SYS_sched_yield = 124 +const SYS_seccomp = 277 +const SYS_semctl = 191 +const SYS_semget = 190 +const SYS_semop = 193 +const SYS_semtimedop = 192 +const SYS_sendfile = 71 +const SYS_sendmmsg = 269 +const SYS_sendmsg = 211 +const SYS_sendto = 206 +const SYS_set_mempolicy = 237 +const SYS_set_mempolicy_home_node = 450 +const SYS_set_robust_list = 99 +const SYS_set_tid_address = 96 +const SYS_setdomainname = 162 +const SYS_setfsgid = 152 +const SYS_setfsuid = 151 +const SYS_setgid = 144 +const SYS_setgroups = 159 +const SYS_sethostname = 161 +const SYS_setitimer = 103 +const SYS_setns = 268 +const SYS_setpgid = 154 +const SYS_setpriority = 140 +const SYS_setregid = 143 +const SYS_setresgid = 149 +const SYS_setresuid = 147 +const SYS_setreuid = 145 +const SYS_setrlimit = 164 +const SYS_setsid = 157 +const SYS_setsockopt = 208 +const SYS_settimeofday = 170 +const SYS_setuid = 146 +const SYS_setxattr = 5 +const SYS_shmat = 196 +const SYS_shmctl = 195 +const SYS_shmdt = 197 +const SYS_shmget = 194 +const SYS_shutdown = 210 +const SYS_sigaltstack = 132 +const SYS_signalfd4 = 74 +const SYS_socket = 198 +const SYS_socketpair = 199 +const SYS_splice = 76 +const SYS_statfs = 43 +const SYS_statx = 291 +const SYS_swapoff = 225 +const SYS_swapon = 224 +const SYS_symlinkat = 36 +const SYS_sync = 81 +const SYS_sync_file_range = 84 +const SYS_syncfs = 267 +const SYS_sysinfo = 179 +const SYS_syslog = 116 +const SYS_sysriscv = 244 +const SYS_tee = 77 +const SYS_tgkill = 131 +const SYS_timer_create = 107 +const SYS_timer_delete = 111 +const SYS_timer_getoverrun = 109 +const SYS_timer_gettime = 108 +const SYS_timer_settime = 110 +const SYS_timerfd_create = 85 +const SYS_timerfd_gettime = 87 +const SYS_timerfd_settime = 86 +const SYS_times = 153 +const SYS_tkill = 130 +const SYS_truncate = 45 +const SYS_umask = 166 +const SYS_umount2 = 39 +const SYS_uname = 160 +const SYS_unlinkat = 35 +const SYS_unshare = 97 +const SYS_userfaultfd = 282 +const SYS_utimensat = 88 +const SYS_vhangup = 58 +const SYS_vmsplice = 75 +const SYS_wait4 = 260 +const SYS_waitid = 95 +const SYS_write = 64 +const SYS_writev = 66 +const TRAP_BRANCH = 3 +const TRAP_BRKPT = 1 +const TRAP_HWBKPT = 4 +const TRAP_TRACE = 2 +const TRAP_UNK = 5 +const VER = -255 +const VER_DEF_CURRENT = 1 +const VER_DEF_NONE = 0 +const VER_DEF_NUM = 2 +const VER_FLG_BASE = 1 +const VER_FLG_WEAK = 2 +const VER_NDX_ELIMINATE = 65281 +const VER_NDX_GLOBAL = 1 +const VER_NDX_LOCAL = 0 +const VER_NDX_LORESERVE = 65280 +const VER_NEED_CURRENT = 1 +const VER_NEED_NONE = 0 +const VER_NEED_NUM = 2 +const WNOHANG = 1 +const WUNTRACED = 2 +const _NSIG = 65 +const __NR_accept = 202 +const __NR_accept4 = 242 +const __NR_acct = 89 +const __NR_add_key = 217 +const __NR_adjtimex = 171 +const __NR_arch_specific_syscall = 244 +const __NR_bind = 200 +const __NR_bpf = 280 +const __NR_brk = 214 +const __NR_cachestat = 451 +const __NR_capget = 90 +const __NR_capset = 91 +const __NR_chdir = 49 +const __NR_chroot = 51 +const __NR_clock_adjtime = 266 +const __NR_clock_getres = 114 +const __NR_clock_gettime = 113 +const __NR_clock_nanosleep = 115 +const __NR_clock_settime = 112 +const __NR_clone = 220 +const __NR_clone3 = 435 +const __NR_close = 57 +const __NR_close_range = 436 +const __NR_connect = 203 +const __NR_copy_file_range = 285 +const __NR_delete_module = 106 +const __NR_dup = 23 +const __NR_dup3 = 24 +const __NR_epoll_create1 = 20 +const __NR_epoll_ctl = 21 +const __NR_epoll_pwait = 22 +const __NR_epoll_pwait2 = 441 +const __NR_eventfd2 = 19 +const __NR_execve = 221 +const __NR_execveat = 281 +const __NR_exit = 93 +const __NR_exit_group = 94 +const __NR_faccessat = 48 +const __NR_faccessat2 = 439 +const __NR_fadvise64 = 223 +const __NR_fallocate = 47 +const __NR_fanotify_init = 262 +const __NR_fanotify_mark = 263 +const __NR_fchdir = 50 +const __NR_fchmod = 52 +const __NR_fchmodat = 53 +const __NR_fchmodat2 = 452 +const __NR_fchown = 55 +const __NR_fchownat = 54 +const __NR_fcntl = 25 +const __NR_fdatasync = 83 +const __NR_fgetxattr = 10 +const __NR_finit_module = 273 +const __NR_flistxattr = 13 +const __NR_flock = 32 +const __NR_fremovexattr = 16 +const __NR_fsconfig = 431 +const __NR_fsetxattr = 7 +const __NR_fsmount = 432 +const __NR_fsopen = 430 +const __NR_fspick = 433 +const __NR_fstat = 80 +const __NR_fstatfs = 44 +const __NR_fsync = 82 +const __NR_ftruncate = 46 +const __NR_futex = 98 +const __NR_futex_waitv = 449 +const __NR_get_mempolicy = 236 +const __NR_get_robust_list = 100 +const __NR_getcpu = 168 +const __NR_getcwd = 17 +const __NR_getdents64 = 61 +const __NR_getegid = 177 +const __NR_geteuid = 175 +const __NR_getgid = 176 +const __NR_getgroups = 158 +const __NR_getitimer = 102 +const __NR_getpeername = 205 +const __NR_getpgid = 155 +const __NR_getpid = 172 +const __NR_getppid = 173 +const __NR_getpriority = 141 +const __NR_getrandom = 278 +const __NR_getresgid = 150 +const __NR_getresuid = 148 +const __NR_getrlimit = 163 +const __NR_getrusage = 165 +const __NR_getsid = 156 +const __NR_getsockname = 204 +const __NR_getsockopt = 209 +const __NR_gettid = 178 +const __NR_gettimeofday = 169 +const __NR_getuid = 174 +const __NR_getxattr = 8 +const __NR_init_module = 105 +const __NR_inotify_add_watch = 27 +const __NR_inotify_init1 = 26 +const __NR_inotify_rm_watch = 28 +const __NR_io_cancel = 3 +const __NR_io_destroy = 1 +const __NR_io_getevents = 4 +const __NR_io_pgetevents = 292 +const __NR_io_setup = 0 +const __NR_io_submit = 2 +const __NR_io_uring_enter = 426 +const __NR_io_uring_register = 427 +const __NR_io_uring_setup = 425 +const __NR_ioctl = 29 +const __NR_ioprio_get = 31 +const __NR_ioprio_set = 30 +const __NR_kcmp = 272 +const __NR_kexec_file_load = 294 +const __NR_kexec_load = 104 +const __NR_keyctl = 219 +const __NR_kill = 129 +const __NR_landlock_add_rule = 445 +const __NR_landlock_create_ruleset = 444 +const __NR_landlock_restrict_self = 446 +const __NR_lgetxattr = 9 +const __NR_linkat = 37 +const __NR_listen = 201 +const __NR_listxattr = 11 +const __NR_llistxattr = 12 +const __NR_lookup_dcookie = 18 +const __NR_lremovexattr = 15 +const __NR_lseek = 62 +const __NR_lsetxattr = 6 +const __NR_madvise = 233 +const __NR_mbind = 235 +const __NR_membarrier = 283 +const __NR_memfd_create = 279 +const __NR_migrate_pages = 238 +const __NR_mincore = 232 +const __NR_mkdirat = 34 +const __NR_mknodat = 33 +const __NR_mlock = 228 +const __NR_mlock2 = 284 +const __NR_mlockall = 230 +const __NR_mmap = 222 +const __NR_mount = 40 +const __NR_mount_setattr = 442 +const __NR_move_mount = 429 +const __NR_move_pages = 239 +const __NR_mprotect = 226 +const __NR_mq_getsetattr = 185 +const __NR_mq_notify = 184 +const __NR_mq_open = 180 +const __NR_mq_timedreceive = 183 +const __NR_mq_timedsend = 182 +const __NR_mq_unlink = 181 +const __NR_mremap = 216 +const __NR_msgctl = 187 +const __NR_msgget = 186 +const __NR_msgrcv = 188 +const __NR_msgsnd = 189 +const __NR_msync = 227 +const __NR_munlock = 229 +const __NR_munlockall = 231 +const __NR_munmap = 215 +const __NR_name_to_handle_at = 264 +const __NR_nanosleep = 101 +const __NR_newfstatat = 79 +const __NR_nfsservctl = 42 +const __NR_open_by_handle_at = 265 +const __NR_open_tree = 428 +const __NR_openat = 56 +const __NR_openat2 = 437 +const __NR_perf_event_open = 241 +const __NR_personality = 92 +const __NR_pidfd_getfd = 438 +const __NR_pidfd_open = 434 +const __NR_pidfd_send_signal = 424 +const __NR_pipe2 = 59 +const __NR_pivot_root = 41 +const __NR_pkey_alloc = 289 +const __NR_pkey_free = 290 +const __NR_pkey_mprotect = 288 +const __NR_ppoll = 73 +const __NR_prctl = 167 +const __NR_pread64 = 67 +const __NR_preadv = 69 +const __NR_preadv2 = 286 +const __NR_prlimit64 = 261 +const __NR_process_madvise = 440 +const __NR_process_mrelease = 448 +const __NR_process_vm_readv = 270 +const __NR_process_vm_writev = 271 +const __NR_pselect6 = 72 +const __NR_ptrace = 117 +const __NR_pwrite64 = 68 +const __NR_pwritev = 70 +const __NR_pwritev2 = 287 +const __NR_quotactl = 60 +const __NR_read = 63 +const __NR_readahead = 213 +const __NR_readlinkat = 78 +const __NR_readv = 65 +const __NR_reboot = 142 +const __NR_recvfrom = 207 +const __NR_recvmmsg = 243 +const __NR_recvmsg = 212 +const __NR_remap_file_pages = 234 +const __NR_removexattr = 14 +const __NR_renameat2 = 276 +const __NR_request_key = 218 +const __NR_restart_syscall = 128 +const __NR_riscv_flush_icache = 259 +const __NR_rseq = 293 +const __NR_rt_sigaction = 134 +const __NR_rt_sigpending = 136 +const __NR_rt_sigprocmask = 135 +const __NR_rt_sigqueueinfo = 138 +const __NR_rt_sigreturn = 139 +const __NR_rt_sigsuspend = 133 +const __NR_rt_sigtimedwait = 137 +const __NR_rt_tgsigqueueinfo = 240 +const __NR_sched_get_priority_max = 125 +const __NR_sched_get_priority_min = 126 +const __NR_sched_getaffinity = 123 +const __NR_sched_getattr = 275 +const __NR_sched_getparam = 121 +const __NR_sched_getscheduler = 120 +const __NR_sched_rr_get_interval = 127 +const __NR_sched_setaffinity = 122 +const __NR_sched_setattr = 274 +const __NR_sched_setparam = 118 +const __NR_sched_setscheduler = 119 +const __NR_sched_yield = 124 +const __NR_seccomp = 277 +const __NR_semctl = 191 +const __NR_semget = 190 +const __NR_semop = 193 +const __NR_semtimedop = 192 +const __NR_sendfile = 71 +const __NR_sendmmsg = 269 +const __NR_sendmsg = 211 +const __NR_sendto = 206 +const __NR_set_mempolicy = 237 +const __NR_set_mempolicy_home_node = 450 +const __NR_set_robust_list = 99 +const __NR_set_tid_address = 96 +const __NR_setdomainname = 162 +const __NR_setfsgid = 152 +const __NR_setfsuid = 151 +const __NR_setgid = 144 +const __NR_setgroups = 159 +const __NR_sethostname = 161 +const __NR_setitimer = 103 +const __NR_setns = 268 +const __NR_setpgid = 154 +const __NR_setpriority = 140 +const __NR_setregid = 143 +const __NR_setresgid = 149 +const __NR_setresuid = 147 +const __NR_setreuid = 145 +const __NR_setrlimit = 164 +const __NR_setsid = 157 +const __NR_setsockopt = 208 +const __NR_settimeofday = 170 +const __NR_setuid = 146 +const __NR_setxattr = 5 +const __NR_shmat = 196 +const __NR_shmctl = 195 +const __NR_shmdt = 197 +const __NR_shmget = 194 +const __NR_shutdown = 210 +const __NR_sigaltstack = 132 +const __NR_signalfd4 = 74 +const __NR_socket = 198 +const __NR_socketpair = 199 +const __NR_splice = 76 +const __NR_statfs = 43 +const __NR_statx = 291 +const __NR_swapoff = 225 +const __NR_swapon = 224 +const __NR_symlinkat = 36 +const __NR_sync = 81 +const __NR_sync_file_range = 84 +const __NR_syncfs = 267 +const __NR_sysinfo = 179 +const __NR_syslog = 116 +const __NR_sysriscv = 244 +const __NR_tee = 77 +const __NR_tgkill = 131 +const __NR_timer_create = 107 +const __NR_timer_delete = 111 +const __NR_timer_getoverrun = 109 +const __NR_timer_gettime = 108 +const __NR_timer_settime = 110 +const __NR_timerfd_create = 85 +const __NR_timerfd_gettime = 87 +const __NR_timerfd_settime = 86 +const __NR_times = 153 +const __NR_tkill = 130 +const __NR_truncate = 45 +const __NR_umask = 166 +const __NR_umount2 = 39 +const __NR_uname = 160 +const __NR_unlinkat = 35 +const __NR_unshare = 97 +const __NR_userfaultfd = 282 +const __NR_utimensat = 88 +const __NR_vhangup = 58 +const __NR_vmsplice = 75 +const __NR_wait4 = 260 +const __NR_waitid = 95 +const __NR_write = 64 +const __NR_writev = 66 +const __SC_accept = 5 +const __SC_accept4 = 18 +const __SC_bind = 2 +const __SC_connect = 3 +const __SC_getpeername = 7 +const __SC_getsockname = 6 +const __SC_getsockopt = 15 +const __SC_listen = 4 +const __SC_recv = 10 +const __SC_recvfrom = 12 +const __SC_recvmmsg = 19 +const __SC_recvmsg = 17 +const __SC_send = 9 +const __SC_sendmmsg = 20 +const __SC_sendmsg = 16 +const __SC_sendto = 11 +const __SC_setsockopt = 14 +const __SC_shutdown = 13 +const __SC_socket = 1 +const __SC_socketpair = 8 +const libc = 0 + +type Ttime_t = int64 + +type Tsuseconds_t = int64 + +type Ttimeval = struct { + Ftv_sec Ttime_t + Ftv_usec Tsuseconds_t +} + +type Ttimespec = struct { + Ftv_sec Ttime_t + Ftv_nsec int64 +} + +type Tsigset_t = struct { + F__bits [16]uint64 +} + +type t__sigset_t = Tsigset_t + +type Tfd_mask = uint64 + +type Tfd_set = struct { + Ffds_bits [16]uint64 +} + +type Titimerval = struct { + Fit_interval Ttimeval + Fit_value Ttimeval +} + +type Tid_t = uint32 + +type Trlim_t = uint64 + +type Trlimit = struct { + Frlim_cur Trlim_t + Frlim_max Trlim_t +} + +type Trusage = struct { + Fru_utime Ttimeval + Fru_stime Ttimeval + Fru_maxrss int64 + Fru_ixrss int64 + Fru_idrss int64 + Fru_isrss int64 + Fru_minflt int64 + Fru_majflt int64 + Fru_nswap int64 + Fru_inblock int64 + Fru_oublock int64 + Fru_msgsnd int64 + Fru_msgrcv int64 + Fru_nsignals int64 + Fru_nvcsw int64 + Fru_nivcsw int64 + F__reserved [16]int64 +} + +type Tclock_t = int64 + +type Tpthread_t = uintptr + +type Tpthread_attr_t = struct { + F__u struct { + F__vi [0][14]int32 + F__s [0][7]uint64 + F__i [14]int32 + } +} + +type Tstack_t = struct { + Fss_sp uintptr + Fss_flags int32 + Fss_size Tsize_t +} + +type Tsigaltstack = Tstack_t + +type t__riscv_mc_gp_state = [32]uint64 + +type t__riscv_mc_f_ext_state = struct { + F__f [32]uint32 + F__fcsr uint32 +} + +type t__riscv_mc_d_ext_state = struct { + F__f [32]uint64 + F__fcsr uint32 +} + +type t__riscv_mc_q_ext_state = struct { + F__f [64]uint64 + F__fcsr uint32 + F__reserved [3]uint32 +} + +type t__riscv_mc_fp_state = struct { + F__d [0]t__riscv_mc_d_ext_state + F__q [0]t__riscv_mc_q_ext_state + F__f t__riscv_mc_f_ext_state + F__ccgo_pad3 [396]byte +} + +type Tmcontext_t = struct { + F__gregs t__riscv_mc_gp_state + F__fpregs t__riscv_mc_fp_state +} + +type Tucontext_t = struct { + Fuc_flags uint64 + Fuc_link uintptr + Fuc_stack Tstack_t + Fuc_sigmask Tsigset_t + Fuc_mcontext Tmcontext_t +} + +type t__ucontext = Tucontext_t + +type Tsigval = struct { + Fsival_ptr [0]uintptr + Fsival_int int32 + F__ccgo_pad2 [4]byte +} + +type Tsiginfo_t = struct { + Fsi_signo int32 + Fsi_errno int32 + Fsi_code int32 + F__si_fields struct { + F__si_common [0]struct { + F__first struct { + F__timer [0]struct { + Fsi_timerid int32 + Fsi_overrun int32 + } + F__piduid struct { + Fsi_pid Tpid_t + Fsi_uid Tuid_t + } + } + F__second struct { + F__sigchld [0]struct { + Fsi_status int32 + Fsi_utime Tclock_t + Fsi_stime Tclock_t + } + Fsi_value Tsigval + F__ccgo_pad2 [16]byte + } + } + F__sigfault [0]struct { + Fsi_addr uintptr + Fsi_addr_lsb int16 + F__first struct { + Fsi_pkey [0]uint32 + F__addr_bnd struct { + Fsi_lower uintptr + Fsi_upper uintptr + } + } + } + F__sigpoll [0]struct { + Fsi_band int64 + Fsi_fd int32 + } + F__sigsys [0]struct { + Fsi_call_addr uintptr + Fsi_syscall int32 + Fsi_arch uint32 + } + F__pad [112]uint8 + } +} + +type Tsigaction = struct { + F__sa_handler struct { + Fsa_sigaction [0]uintptr + Fsa_handler uintptr + } + Fsa_mask Tsigset_t + Fsa_flags int32 + Fsa_restorer uintptr +} + +type Tsigevent = struct { + Fsigev_value Tsigval + Fsigev_signo int32 + Fsigev_notify int32 + F__sev_fields struct { + Fsigev_notify_thread_id [0]Tpid_t + F__sev_thread [0]struct { + Fsigev_notify_function uintptr + Fsigev_notify_attributes uintptr + } + F__pad [48]uint8 + } +} + +type Tsig_atomic_t = int32 + +type TElf32_Half = uint16 + +type TElf64_Half = uint16 + +type TElf32_Word = uint32 + +type TElf32_Sword = int32 + +type TElf64_Word = uint32 + +type TElf64_Sword = int32 + +type TElf32_Xword = uint64 + +type TElf32_Sxword = int64 + +type TElf64_Xword = uint64 + +type TElf64_Sxword = int64 + +type TElf32_Addr = uint32 + +type TElf64_Addr = uint64 + +type TElf32_Off = uint32 + +type TElf64_Off = uint64 + +type TElf32_Section = uint16 + +type TElf64_Section = uint16 + +type TElf32_Versym = uint16 + +type TElf64_Versym = uint16 + +type TElf32_Ehdr = struct { + Fe_ident [16]uint8 + Fe_type TElf32_Half + Fe_machine TElf32_Half + Fe_version TElf32_Word + Fe_entry TElf32_Addr + Fe_phoff TElf32_Off + Fe_shoff TElf32_Off + Fe_flags TElf32_Word + Fe_ehsize TElf32_Half + Fe_phentsize TElf32_Half + Fe_phnum TElf32_Half + Fe_shentsize TElf32_Half + Fe_shnum TElf32_Half + Fe_shstrndx TElf32_Half +} + +type TElf64_Ehdr = struct { + Fe_ident [16]uint8 + Fe_type TElf64_Half + Fe_machine TElf64_Half + Fe_version TElf64_Word + Fe_entry TElf64_Addr + Fe_phoff TElf64_Off + Fe_shoff TElf64_Off + Fe_flags TElf64_Word + Fe_ehsize TElf64_Half + Fe_phentsize TElf64_Half + Fe_phnum TElf64_Half + Fe_shentsize TElf64_Half + Fe_shnum TElf64_Half + Fe_shstrndx TElf64_Half +} + +type TElf32_Shdr = struct { + Fsh_name TElf32_Word + Fsh_type TElf32_Word + Fsh_flags TElf32_Word + Fsh_addr TElf32_Addr + Fsh_offset TElf32_Off + Fsh_size TElf32_Word + Fsh_link TElf32_Word + Fsh_info TElf32_Word + Fsh_addralign TElf32_Word + Fsh_entsize TElf32_Word +} + +type TElf64_Shdr = struct { + Fsh_name TElf64_Word + Fsh_type TElf64_Word + Fsh_flags TElf64_Xword + Fsh_addr TElf64_Addr + Fsh_offset TElf64_Off + Fsh_size TElf64_Xword + Fsh_link TElf64_Word + Fsh_info TElf64_Word + Fsh_addralign TElf64_Xword + Fsh_entsize TElf64_Xword +} + +type TElf32_Chdr = struct { + Fch_type TElf32_Word + Fch_size TElf32_Word + Fch_addralign TElf32_Word +} + +type TElf64_Chdr = struct { + Fch_type TElf64_Word + Fch_reserved TElf64_Word + Fch_size TElf64_Xword + Fch_addralign TElf64_Xword +} + +type TElf32_Sym = struct { + Fst_name TElf32_Word + Fst_value TElf32_Addr + Fst_size TElf32_Word + Fst_info uint8 + Fst_other uint8 + Fst_shndx TElf32_Section +} + +type TElf64_Sym = struct { + Fst_name TElf64_Word + Fst_info uint8 + Fst_other uint8 + Fst_shndx TElf64_Section + Fst_value TElf64_Addr + Fst_size TElf64_Xword +} + +type TElf32_Syminfo = struct { + Fsi_boundto TElf32_Half + Fsi_flags TElf32_Half +} + +type TElf64_Syminfo = struct { + Fsi_boundto TElf64_Half + Fsi_flags TElf64_Half +} + +type TElf32_Rel = struct { + Fr_offset TElf32_Addr + Fr_info TElf32_Word +} + +type TElf64_Rel = struct { + Fr_offset TElf64_Addr + Fr_info TElf64_Xword +} + +type TElf32_Rela = struct { + Fr_offset TElf32_Addr + Fr_info TElf32_Word + Fr_addend TElf32_Sword +} + +type TElf64_Rela = struct { + Fr_offset TElf64_Addr + Fr_info TElf64_Xword + Fr_addend TElf64_Sxword +} + +type TElf32_Relr = uint32 + +type TElf64_Relr = uint64 + +type TElf32_Phdr = struct { + Fp_type TElf32_Word + Fp_offset TElf32_Off + Fp_vaddr TElf32_Addr + Fp_paddr TElf32_Addr + Fp_filesz TElf32_Word + Fp_memsz TElf32_Word + Fp_flags TElf32_Word + Fp_align TElf32_Word +} + +type TElf64_Phdr = struct { + Fp_type TElf64_Word + Fp_flags TElf64_Word + Fp_offset TElf64_Off + Fp_vaddr TElf64_Addr + Fp_paddr TElf64_Addr + Fp_filesz TElf64_Xword + Fp_memsz TElf64_Xword + Fp_align TElf64_Xword +} + +type TElf32_Dyn = struct { + Fd_tag TElf32_Sword + Fd_un struct { + Fd_ptr [0]TElf32_Addr + Fd_val TElf32_Word + } +} + +type TElf64_Dyn = struct { + Fd_tag TElf64_Sxword + Fd_un struct { + Fd_ptr [0]TElf64_Addr + Fd_val TElf64_Xword + } +} + +type TElf32_Verdef = struct { + Fvd_version TElf32_Half + Fvd_flags TElf32_Half + Fvd_ndx TElf32_Half + Fvd_cnt TElf32_Half + Fvd_hash TElf32_Word + Fvd_aux TElf32_Word + Fvd_next TElf32_Word +} + +type TElf64_Verdef = struct { + Fvd_version TElf64_Half + Fvd_flags TElf64_Half + Fvd_ndx TElf64_Half + Fvd_cnt TElf64_Half + Fvd_hash TElf64_Word + Fvd_aux TElf64_Word + Fvd_next TElf64_Word +} + +type TElf32_Verdaux = struct { + Fvda_name TElf32_Word + Fvda_next TElf32_Word +} + +type TElf64_Verdaux = struct { + Fvda_name TElf64_Word + Fvda_next TElf64_Word +} + +type TElf32_Verneed = struct { + Fvn_version TElf32_Half + Fvn_cnt TElf32_Half + Fvn_file TElf32_Word + Fvn_aux TElf32_Word + Fvn_next TElf32_Word +} + +type TElf64_Verneed = struct { + Fvn_version TElf64_Half + Fvn_cnt TElf64_Half + Fvn_file TElf64_Word + Fvn_aux TElf64_Word + Fvn_next TElf64_Word +} + +type TElf32_Vernaux = struct { + Fvna_hash TElf32_Word + Fvna_flags TElf32_Half + Fvna_other TElf32_Half + Fvna_name TElf32_Word + Fvna_next TElf32_Word +} + +type TElf64_Vernaux = struct { + Fvna_hash TElf64_Word + Fvna_flags TElf64_Half + Fvna_other TElf64_Half + Fvna_name TElf64_Word + Fvna_next TElf64_Word +} + +type TElf32_auxv_t = struct { + Fa_type Tuint32_t + Fa_un struct { + Fa_val Tuint32_t + } +} + +type TElf64_auxv_t = struct { + Fa_type Tuint64_t + Fa_un struct { + Fa_val Tuint64_t + } +} + +type TElf32_Nhdr = struct { + Fn_namesz TElf32_Word + Fn_descsz TElf32_Word + Fn_type TElf32_Word +} + +type TElf64_Nhdr = struct { + Fn_namesz TElf64_Word + Fn_descsz TElf64_Word + Fn_type TElf64_Word +} + +type TElf32_Move = struct { + Fm_value TElf32_Xword + Fm_info TElf32_Word + Fm_poffset TElf32_Word + Fm_repeat TElf32_Half + Fm_stride TElf32_Half +} + +type TElf64_Move = struct { + Fm_value TElf64_Xword + Fm_info TElf64_Xword + Fm_poffset TElf64_Xword + Fm_repeat TElf64_Half + Fm_stride TElf64_Half +} + +type TElf32_gptab = struct { + Fgt_entry [0]struct { + Fgt_g_value TElf32_Word + Fgt_bytes TElf32_Word + } + Fgt_header struct { + Fgt_current_g_value TElf32_Word + Fgt_unused TElf32_Word + } +} + +type TElf32_RegInfo = struct { + Fri_gprmask TElf32_Word + Fri_cprmask [4]TElf32_Word + Fri_gp_value TElf32_Sword +} + +type TElf_Options = struct { + Fkind uint8 + Fsize uint8 + Fsection TElf32_Section + Finfo TElf32_Word +} + +type TElf_Options_Hw = struct { + Fhwp_flags1 TElf32_Word + Fhwp_flags2 TElf32_Word +} + +type TElf32_Lib = struct { + Fl_name TElf32_Word + Fl_time_stamp TElf32_Word + Fl_checksum TElf32_Word + Fl_version TElf32_Word + Fl_flags TElf32_Word +} + +type TElf64_Lib = struct { + Fl_name TElf64_Word + Fl_time_stamp TElf64_Word + Fl_checksum TElf64_Word + Fl_version TElf64_Word + Fl_flags TElf64_Word +} + +type TElf32_Conflict = uint32 + +type TElf_MIPS_ABIFlags_v0 = struct { + Fversion TElf32_Half + Fisa_level uint8 + Fisa_rev uint8 + Fgpr_size uint8 + Fcpr1_size uint8 + Fcpr2_size uint8 + Ffp_abi uint8 + Fisa_ext TElf32_Word + Fases TElf32_Word + Fflags1 TElf32_Word + Fflags2 TElf32_Word +} + +const _Val_GNU_MIPS_ABI_FP_ANY = 0 +const _Val_GNU_MIPS_ABI_FP_DOUBLE = 1 +const _Val_GNU_MIPS_ABI_FP_SINGLE = 2 +const _Val_GNU_MIPS_ABI_FP_SOFT = 3 +const _Val_GNU_MIPS_ABI_FP_OLD_64 = 4 +const _Val_GNU_MIPS_ABI_FP_XX = 5 +const _Val_GNU_MIPS_ABI_FP_64 = 6 +const _Val_GNU_MIPS_ABI_FP_64A = 7 +const _Val_GNU_MIPS_ABI_FP_MAX = 7 + +type Tsyscall_arg_t = int64 + +type Twchar_t = int32 + +type Tdiv_t = struct { + Fquot int32 + Frem int32 +} + +type Tldiv_t = struct { + Fquot int64 + Frem int64 +} + +type Tlldiv_t = struct { + Fquot int64 + Frem int64 +} + +type t__locale_struct = struct { + Fcat [6]uintptr +} + +type Ttls_module = struct { + Fnext uintptr + Fimage uintptr + Flen1 Tsize_t + Fsize Tsize_t + Falign Tsize_t + Foffset Tsize_t +} + +type t__libc = struct { + Fcan_do_threads uint8 + Fthreaded uint8 + Fsecure uint8 + Fneed_locks int8 + Fthreads_minus_1 int32 + Fauxv uintptr + Ftls_head uintptr + Ftls_size Tsize_t + Ftls_align Tsize_t + Ftls_cnt Tsize_t + Fpage_size Tsize_t + Fglobal_locale t__locale_struct +} + +func Xsysconf(tls *TLS, name int32) (r int64) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(512) + defer tls.Free(512) + var cnt, i, v3 int32 + var mem, v1 uint64 + var val int64 + var v5 uintptr + var _ /* lim at bp+0 */ Trlimit + var _ /* set at bp+16 */ [128]uint8 + var _ /* si at bp+144 */ Tsysinfo + _, _, _, _, _, _, _ = cnt, i, mem, val, v1, v3, v5 + if Uint64FromInt32(name) >= Uint64FromInt64(502)/Uint64FromInt64(2) || !(_values1[name] != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return int64(-int32(1)) + } else { + if int32(_values1[name]) >= -int32(1) { + return int64(_values1[name]) + } else { + if int32(_values1[name]) < -int32(256) { + Xgetrlimit(tls, int32(_values1[name])&int32(16383), bp) + if (**(**Trlimit)(__ccgo_up(bp))).Frlim_cur == ^Uint64FromUint64(0) { + return int64(-int32(1)) + } + if (**(**Trlimit)(__ccgo_up(bp))).Frlim_cur > uint64(0x7fffffffffffffff) { + v1 = uint64(0x7fffffffffffffff) + } else { + v1 = (**(**Trlimit)(__ccgo_up(bp))).Frlim_cur + } + return Int64FromUint64(v1) + } + } + } + switch Int32FromUint8(Uint8FromInt16(_values1[name])) { + case (-Int32FromInt32(256) | Int32FromInt32(1)) & Int32FromInt32(255): + return int64(200809) + case (-Int32FromInt32(256) | Int32FromInt32(2)) & Int32FromInt32(255): + return int64(ARG_MAX) + case (-Int32FromInt32(256) | Int32FromInt32(3)) & Int32FromInt32(255): + return int64(MQ_PRIO_MAX) + case (-Int32FromInt32(256) | Int32FromInt32(4)) & Int32FromInt32(255): + return Int64FromUint64(X__libc.Fpage_size) + case (-Int32FromInt32(256) | Int32FromInt32(5)) & Int32FromInt32(255): + return int64(SEM_VALUE_MAX) + case (-Int32FromInt32(256) | Int32FromInt32(11)) & Int32FromInt32(255): + return int64(DELAYTIMER_MAX) + case (-Int32FromInt32(256) | Int32FromInt32(6)) & Int32FromInt32(255): + fallthrough + case (-Int32FromInt32(256) | Int32FromInt32(7)) & Int32FromInt32(255): + **(**[128]uint8)(__ccgo_up(bp + 16)) = [128]uint8{ + 0: uint8(1), + } + X__syscall3(tls, int64(SYS_sched_getaffinity), int64(Int32FromInt32(0)), Int64FromUint64(Uint64FromInt64(128)), int64(bp+16)) + v3 = Int32FromInt32(0) + cnt = v3 + i = v3 + for { + if !(Uint64FromInt32(i) < uint64(128)) { + break + } + for { + if !((**(**[128]uint8)(__ccgo_up(bp + 16)))[i] != 0) { + break + } + goto _4 + _4: + ; + v5 = bp + 16 + uintptr(i) + *(*uint8)(unsafe.Pointer(v5)) = uint8(int32(*(*uint8)(unsafe.Pointer(v5))) & (Int32FromUint8((**(**[128]uint8)(__ccgo_up(bp + 16)))[i]) - Int32FromInt32(1))) + cnt = cnt + 1 + } + goto _2 + _2: + ; + i = i + 1 + } + return int64(cnt) + case (-Int32FromInt32(256) | Int32FromInt32(8)) & Int32FromInt32(255): + fallthrough + case (-Int32FromInt32(256) | Int32FromInt32(9)) & Int32FromInt32(255): + X__lsysinfo(tls, bp+144) + if !((**(**Tsysinfo)(__ccgo_up(bp + 144))).Fmem_unit != 0) { + (**(**Tsysinfo)(__ccgo_up(bp + 144))).Fmem_unit = uint32(1) + } + if name == int32(_SC_PHYS_PAGES) { + mem = uint64((**(**Tsysinfo)(__ccgo_up(bp + 144))).Ftotalram) + } else { + mem = uint64((**(**Tsysinfo)(__ccgo_up(bp + 144))).Ffreeram + (**(**Tsysinfo)(__ccgo_up(bp + 144))).Fbufferram) + } + mem = mem * uint64((**(**Tsysinfo)(__ccgo_up(bp + 144))).Fmem_unit) + mem = mem / X__libc.Fpage_size + if mem > uint64(0x7fffffffffffffff) { + v1 = uint64(0x7fffffffffffffff) + } else { + v1 = mem + } + return Int64FromUint64(v1) + case (-Int32FromInt32(256) | Int32FromInt32(12)) & Int32FromInt32(255): + fallthrough + case (-Int32FromInt32(256) | Int32FromInt32(13)) & Int32FromInt32(255): + val = Int64FromUint64(X__getauxval(tls, uint64(AT_MINSIGSTKSZ))) + if val < int64(MINSIGSTKSZ) { + val = int64(MINSIGSTKSZ) + } + if int32(_values1[name]) == -Int32FromInt32(256)|Int32FromInt32(13) { + val = val + int64(Int32FromInt32(SIGSTKSZ)-Int32FromInt32(MINSIGSTKSZ)) + } + return val + case (-Int32FromInt32(256) | Int32FromInt32(10)) & Int32FromInt32(255): + return 0 + } + return int64(_values1[name]) +} + +var _values1 = [251]int16{ + 0: int16(-Int32FromInt32(256) | Int32FromInt32(2)), + 1: int16(-Int32FromInt32(32768) | Int32FromInt32(RLIMIT_NPROC)), + 2: int16(100), + 3: int16(32), + 4: int16(-Int32FromInt32(32768) | Int32FromInt32(RLIMIT_NOFILE)), + 5: int16(-int32(1)), + 6: int16(TZNAME_MAX), + 7: int16(1), + 8: int16(1), + 9: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 10: int16(-int32(1)), + 11: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 12: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 13: int16(-int32(1)), + 14: int16(-int32(1)), + 15: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 16: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 17: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 18: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 19: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 20: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 21: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 22: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 23: int16(-int32(1)), + 24: int16(-int32(1)), + 25: int16(-Int32FromInt32(256) | Int32FromInt32(10)), + 26: int16(-Int32FromInt32(256) | Int32FromInt32(11)), + 27: int16(-int32(1)), + 28: int16(-Int32FromInt32(256) | Int32FromInt32(3)), + 29: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 30: int16(-Int32FromInt32(256) | Int32FromInt32(4)), + 31: int16(Int32FromInt32(_NSIG) - Int32FromInt32(1) - Int32FromInt32(31) - Int32FromInt32(3)), + 32: int16(SEM_NSEMS_MAX), + 33: int16(-Int32FromInt32(256) | Int32FromInt32(5)), + 34: int16(-int32(1)), + 35: int16(-int32(1)), + 36: int16(_POSIX2_BC_BASE_MAX), + 37: int16(_POSIX2_BC_DIM_MAX), + 38: int16(_POSIX2_BC_SCALE_MAX), + 39: int16(_POSIX2_BC_STRING_MAX), + 40: int16(COLL_WEIGHTS_MAX), + 42: int16(-int32(1)), + 43: int16(-int32(1)), + 44: int16(RE_DUP_MAX), + 46: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 47: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 48: int16(-int32(1)), + 49: int16(-int32(1)), + 50: int16(-int32(1)), + 51: int16(-int32(1)), + 52: int16(-int32(1)), + 60: int16(IOV_MAX), + 67: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 68: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 69: int16(-int32(1)), + 70: int16(-int32(1)), + 71: int16(256), + 72: int16(TTY_NAME_MAX), + 73: int16(PTHREAD_DESTRUCTOR_ITERATIONS), + 74: int16(PTHREAD_KEYS_MAX), + 75: int16(PTHREAD_STACK_MIN), + 76: int16(-int32(1)), + 77: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 78: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 79: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 80: int16(-int32(1)), + 81: int16(-int32(1)), + 82: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 83: int16(-Int32FromInt32(256) | Int32FromInt32(6)), + 84: int16(-Int32FromInt32(256) | Int32FromInt32(7)), + 85: int16(-Int32FromInt32(256) | Int32FromInt32(8)), + 86: int16(-Int32FromInt32(256) | Int32FromInt32(9)), + 87: int16(-int32(1)), + 88: int16(-int32(1)), + 89: int16(_XOPEN_VERSION), + 90: int16(_XOPEN_VERSION), + 91: int16(1), + 92: int16(-int32(1)), + 93: int16(1), + 94: int16(1), + 95: int16(-int32(1)), + 97: int16(-int32(1)), + 98: int16(-int32(1)), + 99: int16(-int32(1)), + 100: int16(-int32(1)), + 109: int16(NZERO), + 125: int16(-int32(1)), + 126: int16(-int32(1)), + 127: int16(1), + 128: int16(-int32(1)), + 129: int16(-int32(1)), + 130: int16(-int32(1)), + 131: int16(-int32(1)), + 132: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 133: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 137: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 138: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 139: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 149: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 153: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 154: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 155: int16(1), + 157: int16(1), + 159: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 160: int16(-int32(1)), + 161: int16(-int32(1)), + 164: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 165: int16(-int32(1)), + 168: int16(-int32(1)), + 169: int16(-int32(1)), + 170: int16(-int32(1)), + 171: int16(-int32(1)), + 172: int16(-int32(1)), + 173: int16(SYMLOOP_MAX), + 174: int16(-Int32FromInt32(256) | Int32FromInt32(10)), + 175: int16(-int32(1)), + 176: int16(-int32(1)), + 177: int16(-int32(1)), + 178: int16(1), + 179: int16(-int32(1)), + 180: int16(HOST_NAME_MAX), + 181: int16(-int32(1)), + 182: int16(-int32(1)), + 183: int16(-int32(1)), + 184: int16(-int32(1)), + 235: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 236: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 237: int16(-int32(1)), + 238: int16(-int32(1)), + 239: int16(1), + 240: int16(-int32(1)), + 241: int16(-int32(1)), + 242: int16(-int32(1)), + 243: int16(-int32(1)), + 244: int16(-int32(1)), + 245: int16(-int32(1)), + 246: int16(-Int32FromInt32(256) | Int32FromInt32(10)), + 247: int16(-int32(1)), + 248: int16(-int32(1)), + 249: int16(-Int32FromInt32(256) | Int32FromInt32(12)), + 250: int16(-Int32FromInt32(256) | Int32FromInt32(13)), +} + +type Tcrypt_data = struct { + Finitialized int32 + F__buf [256]uint8 +} + +func Xcrypt(tls *TLS, key uintptr, salt uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v salt=%v, (%v:)", tls, key, salt, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__crypt_r(tls, key, salt, uintptr(unsafe.Pointer(&_buf))) +} + +/* This buffer is sufficiently large for all + * currently-supported hash types. It needs to be updated if + * longer hashes are added. The cast to struct crypt_data * is + * purely to meet the public API requirements of the crypt_r + * function; the implementation of crypt_r uses the object + * purely as a char buffer. */ +var _buf [128]uint8 + +const BF_N = 16 + +type Tlocale_t = uintptr + +type TBF_word = uint32 + +type TBF_word_signed = int32 + +/* Number of Blowfish rounds, this is also hardcoded into a few places */ + +type TBF_key = [18]TBF_word + +type TBF_ctx = struct { + FPS [0][1042]TBF_word + Fs struct { + FP TBF_key + FS [4][256]TBF_word + } +} + +// C documentation +// +// /* +// * Magic IV for 64 Blowfish encryptions that we do at the end. +// * The string is "OrpheanBeholderScryDoubt" on big-endian. +// */ +var _BF_magic_w = [6]TBF_word{ + 0: uint32(0x4F727068), + 1: uint32(0x65616E42), + 2: uint32(0x65686F6C), + 3: uint32(0x64657253), + 4: uint32(0x63727944), + 5: uint32(0x6F756274), +} + +// C documentation +// +// /* +// * P-box and S-box tables initialized with digits of Pi. +// */ +var _BF_init_state = *(*TBF_ctx)(unsafe.Pointer(&struct { + FP TBF_key + FS [4][256]TBF_word +}{ + FP: TBF_key{ + 0: uint32(0x243f6a88), + 1: uint32(0x85a308d3), + 2: uint32(0x13198a2e), + 3: uint32(0x03707344), + 4: uint32(0xa4093822), + 5: uint32(0x299f31d0), + 6: uint32(0x082efa98), + 7: uint32(0xec4e6c89), + 8: uint32(0x452821e6), + 9: uint32(0x38d01377), + 10: uint32(0xbe5466cf), + 11: uint32(0x34e90c6c), + 12: uint32(0xc0ac29b7), + 13: uint32(0xc97c50dd), + 14: uint32(0x3f84d5b5), + 15: uint32(0xb5470917), + 16: uint32(0x9216d5d9), + 17: uint32(0x8979fb1b), + }, + FS: [4][256]TBF_word{ + 0: { + 0: uint32(0xd1310ba6), + 1: uint32(0x98dfb5ac), + 2: uint32(0x2ffd72db), + 3: uint32(0xd01adfb7), + 4: uint32(0xb8e1afed), + 5: uint32(0x6a267e96), + 6: uint32(0xba7c9045), + 7: uint32(0xf12c7f99), + 8: uint32(0x24a19947), + 9: uint32(0xb3916cf7), + 10: uint32(0x0801f2e2), + 11: uint32(0x858efc16), + 12: uint32(0x636920d8), + 13: uint32(0x71574e69), + 14: uint32(0xa458fea3), + 15: uint32(0xf4933d7e), + 16: uint32(0x0d95748f), + 17: uint32(0x728eb658), + 18: uint32(0x718bcd58), + 19: uint32(0x82154aee), + 20: uint32(0x7b54a41d), + 21: uint32(0xc25a59b5), + 22: uint32(0x9c30d539), + 23: uint32(0x2af26013), + 24: uint32(0xc5d1b023), + 25: uint32(0x286085f0), + 26: uint32(0xca417918), + 27: uint32(0xb8db38ef), + 28: uint32(0x8e79dcb0), + 29: uint32(0x603a180e), + 30: uint32(0x6c9e0e8b), + 31: uint32(0xb01e8a3e), + 32: uint32(0xd71577c1), + 33: uint32(0xbd314b27), + 34: uint32(0x78af2fda), + 35: uint32(0x55605c60), + 36: uint32(0xe65525f3), + 37: uint32(0xaa55ab94), + 38: uint32(0x57489862), + 39: uint32(0x63e81440), + 40: uint32(0x55ca396a), + 41: uint32(0x2aab10b6), + 42: uint32(0xb4cc5c34), + 43: uint32(0x1141e8ce), + 44: uint32(0xa15486af), + 45: uint32(0x7c72e993), + 46: uint32(0xb3ee1411), + 47: uint32(0x636fbc2a), + 48: uint32(0x2ba9c55d), + 49: uint32(0x741831f6), + 50: uint32(0xce5c3e16), + 51: uint32(0x9b87931e), + 52: uint32(0xafd6ba33), + 53: uint32(0x6c24cf5c), + 54: uint32(0x7a325381), + 55: uint32(0x28958677), + 56: uint32(0x3b8f4898), + 57: uint32(0x6b4bb9af), + 58: uint32(0xc4bfe81b), + 59: uint32(0x66282193), + 60: uint32(0x61d809cc), + 61: uint32(0xfb21a991), + 62: uint32(0x487cac60), + 63: uint32(0x5dec8032), + 64: uint32(0xef845d5d), + 65: uint32(0xe98575b1), + 66: uint32(0xdc262302), + 67: uint32(0xeb651b88), + 68: uint32(0x23893e81), + 69: uint32(0xd396acc5), + 70: uint32(0x0f6d6ff3), + 71: uint32(0x83f44239), + 72: uint32(0x2e0b4482), + 73: uint32(0xa4842004), + 74: uint32(0x69c8f04a), + 75: uint32(0x9e1f9b5e), + 76: uint32(0x21c66842), + 77: uint32(0xf6e96c9a), + 78: uint32(0x670c9c61), + 79: uint32(0xabd388f0), + 80: uint32(0x6a51a0d2), + 81: uint32(0xd8542f68), + 82: uint32(0x960fa728), + 83: uint32(0xab5133a3), + 84: uint32(0x6eef0b6c), + 85: uint32(0x137a3be4), + 86: uint32(0xba3bf050), + 87: uint32(0x7efb2a98), + 88: uint32(0xa1f1651d), + 89: uint32(0x39af0176), + 90: uint32(0x66ca593e), + 91: uint32(0x82430e88), + 92: uint32(0x8cee8619), + 93: uint32(0x456f9fb4), + 94: uint32(0x7d84a5c3), + 95: uint32(0x3b8b5ebe), + 96: uint32(0xe06f75d8), + 97: uint32(0x85c12073), + 98: uint32(0x401a449f), + 99: uint32(0x56c16aa6), + 100: uint32(0x4ed3aa62), + 101: uint32(0x363f7706), + 102: uint32(0x1bfedf72), + 103: uint32(0x429b023d), + 104: uint32(0x37d0d724), + 105: uint32(0xd00a1248), + 106: uint32(0xdb0fead3), + 107: uint32(0x49f1c09b), + 108: uint32(0x075372c9), + 109: uint32(0x80991b7b), + 110: uint32(0x25d479d8), + 111: uint32(0xf6e8def7), + 112: uint32(0xe3fe501a), + 113: uint32(0xb6794c3b), + 114: uint32(0x976ce0bd), + 115: uint32(0x04c006ba), + 116: uint32(0xc1a94fb6), + 117: uint32(0x409f60c4), + 118: uint32(0x5e5c9ec2), + 119: uint32(0x196a2463), + 120: uint32(0x68fb6faf), + 121: uint32(0x3e6c53b5), + 122: uint32(0x1339b2eb), + 123: uint32(0x3b52ec6f), + 124: uint32(0x6dfc511f), + 125: uint32(0x9b30952c), + 126: uint32(0xcc814544), + 127: uint32(0xaf5ebd09), + 128: uint32(0xbee3d004), + 129: uint32(0xde334afd), + 130: uint32(0x660f2807), + 131: uint32(0x192e4bb3), + 132: uint32(0xc0cba857), + 133: uint32(0x45c8740f), + 134: uint32(0xd20b5f39), + 135: uint32(0xb9d3fbdb), + 136: uint32(0x5579c0bd), + 137: uint32(0x1a60320a), + 138: uint32(0xd6a100c6), + 139: uint32(0x402c7279), + 140: uint32(0x679f25fe), + 141: uint32(0xfb1fa3cc), + 142: uint32(0x8ea5e9f8), + 143: uint32(0xdb3222f8), + 144: uint32(0x3c7516df), + 145: uint32(0xfd616b15), + 146: uint32(0x2f501ec8), + 147: uint32(0xad0552ab), + 148: uint32(0x323db5fa), + 149: uint32(0xfd238760), + 150: uint32(0x53317b48), + 151: uint32(0x3e00df82), + 152: uint32(0x9e5c57bb), + 153: uint32(0xca6f8ca0), + 154: uint32(0x1a87562e), + 155: uint32(0xdf1769db), + 156: uint32(0xd542a8f6), + 157: uint32(0x287effc3), + 158: uint32(0xac6732c6), + 159: uint32(0x8c4f5573), + 160: uint32(0x695b27b0), + 161: uint32(0xbbca58c8), + 162: uint32(0xe1ffa35d), + 163: uint32(0xb8f011a0), + 164: uint32(0x10fa3d98), + 165: uint32(0xfd2183b8), + 166: uint32(0x4afcb56c), + 167: uint32(0x2dd1d35b), + 168: uint32(0x9a53e479), + 169: uint32(0xb6f84565), + 170: uint32(0xd28e49bc), + 171: uint32(0x4bfb9790), + 172: uint32(0xe1ddf2da), + 173: uint32(0xa4cb7e33), + 174: uint32(0x62fb1341), + 175: uint32(0xcee4c6e8), + 176: uint32(0xef20cada), + 177: uint32(0x36774c01), + 178: uint32(0xd07e9efe), + 179: uint32(0x2bf11fb4), + 180: uint32(0x95dbda4d), + 181: uint32(0xae909198), + 182: uint32(0xeaad8e71), + 183: uint32(0x6b93d5a0), + 184: uint32(0xd08ed1d0), + 185: uint32(0xafc725e0), + 186: uint32(0x8e3c5b2f), + 187: uint32(0x8e7594b7), + 188: uint32(0x8ff6e2fb), + 189: uint32(0xf2122b64), + 190: uint32(0x8888b812), + 191: uint32(0x900df01c), + 192: uint32(0x4fad5ea0), + 193: uint32(0x688fc31c), + 194: uint32(0xd1cff191), + 195: uint32(0xb3a8c1ad), + 196: uint32(0x2f2f2218), + 197: uint32(0xbe0e1777), + 198: uint32(0xea752dfe), + 199: uint32(0x8b021fa1), + 200: uint32(0xe5a0cc0f), + 201: uint32(0xb56f74e8), + 202: uint32(0x18acf3d6), + 203: uint32(0xce89e299), + 204: uint32(0xb4a84fe0), + 205: uint32(0xfd13e0b7), + 206: uint32(0x7cc43b81), + 207: uint32(0xd2ada8d9), + 208: uint32(0x165fa266), + 209: uint32(0x80957705), + 210: uint32(0x93cc7314), + 211: uint32(0x211a1477), + 212: uint32(0xe6ad2065), + 213: uint32(0x77b5fa86), + 214: uint32(0xc75442f5), + 215: uint32(0xfb9d35cf), + 216: uint32(0xebcdaf0c), + 217: uint32(0x7b3e89a0), + 218: uint32(0xd6411bd3), + 219: uint32(0xae1e7e49), + 220: uint32(0x00250e2d), + 221: uint32(0x2071b35e), + 222: uint32(0x226800bb), + 223: uint32(0x57b8e0af), + 224: uint32(0x2464369b), + 225: uint32(0xf009b91e), + 226: uint32(0x5563911d), + 227: uint32(0x59dfa6aa), + 228: uint32(0x78c14389), + 229: uint32(0xd95a537f), + 230: uint32(0x207d5ba2), + 231: uint32(0x02e5b9c5), + 232: uint32(0x83260376), + 233: uint32(0x6295cfa9), + 234: uint32(0x11c81968), + 235: uint32(0x4e734a41), + 236: uint32(0xb3472dca), + 237: uint32(0x7b14a94a), + 238: uint32(0x1b510052), + 239: uint32(0x9a532915), + 240: uint32(0xd60f573f), + 241: uint32(0xbc9bc6e4), + 242: uint32(0x2b60a476), + 243: uint32(0x81e67400), + 244: uint32(0x08ba6fb5), + 245: uint32(0x571be91f), + 246: uint32(0xf296ec6b), + 247: uint32(0x2a0dd915), + 248: uint32(0xb6636521), + 249: uint32(0xe7b9f9b6), + 250: uint32(0xff34052e), + 251: uint32(0xc5855664), + 252: uint32(0x53b02d5d), + 253: uint32(0xa99f8fa1), + 254: uint32(0x08ba4799), + 255: uint32(0x6e85076a), + }, + 1: { + 0: uint32(0x4b7a70e9), + 1: uint32(0xb5b32944), + 2: uint32(0xdb75092e), + 3: uint32(0xc4192623), + 4: uint32(0xad6ea6b0), + 5: uint32(0x49a7df7d), + 6: uint32(0x9cee60b8), + 7: uint32(0x8fedb266), + 8: uint32(0xecaa8c71), + 9: uint32(0x699a17ff), + 10: uint32(0x5664526c), + 11: uint32(0xc2b19ee1), + 12: uint32(0x193602a5), + 13: uint32(0x75094c29), + 14: uint32(0xa0591340), + 15: uint32(0xe4183a3e), + 16: uint32(0x3f54989a), + 17: uint32(0x5b429d65), + 18: uint32(0x6b8fe4d6), + 19: uint32(0x99f73fd6), + 20: uint32(0xa1d29c07), + 21: uint32(0xefe830f5), + 22: uint32(0x4d2d38e6), + 23: uint32(0xf0255dc1), + 24: uint32(0x4cdd2086), + 25: uint32(0x8470eb26), + 26: uint32(0x6382e9c6), + 27: uint32(0x021ecc5e), + 28: uint32(0x09686b3f), + 29: uint32(0x3ebaefc9), + 30: uint32(0x3c971814), + 31: uint32(0x6b6a70a1), + 32: uint32(0x687f3584), + 33: uint32(0x52a0e286), + 34: uint32(0xb79c5305), + 35: uint32(0xaa500737), + 36: uint32(0x3e07841c), + 37: uint32(0x7fdeae5c), + 38: uint32(0x8e7d44ec), + 39: uint32(0x5716f2b8), + 40: uint32(0xb03ada37), + 41: uint32(0xf0500c0d), + 42: uint32(0xf01c1f04), + 43: uint32(0x0200b3ff), + 44: uint32(0xae0cf51a), + 45: uint32(0x3cb574b2), + 46: uint32(0x25837a58), + 47: uint32(0xdc0921bd), + 48: uint32(0xd19113f9), + 49: uint32(0x7ca92ff6), + 50: uint32(0x94324773), + 51: uint32(0x22f54701), + 52: uint32(0x3ae5e581), + 53: uint32(0x37c2dadc), + 54: uint32(0xc8b57634), + 55: uint32(0x9af3dda7), + 56: uint32(0xa9446146), + 57: uint32(0x0fd0030e), + 58: uint32(0xecc8c73e), + 59: uint32(0xa4751e41), + 60: uint32(0xe238cd99), + 61: uint32(0x3bea0e2f), + 62: uint32(0x3280bba1), + 63: uint32(0x183eb331), + 64: uint32(0x4e548b38), + 65: uint32(0x4f6db908), + 66: uint32(0x6f420d03), + 67: uint32(0xf60a04bf), + 68: uint32(0x2cb81290), + 69: uint32(0x24977c79), + 70: uint32(0x5679b072), + 71: uint32(0xbcaf89af), + 72: uint32(0xde9a771f), + 73: uint32(0xd9930810), + 74: uint32(0xb38bae12), + 75: uint32(0xdccf3f2e), + 76: uint32(0x5512721f), + 77: uint32(0x2e6b7124), + 78: uint32(0x501adde6), + 79: uint32(0x9f84cd87), + 80: uint32(0x7a584718), + 81: uint32(0x7408da17), + 82: uint32(0xbc9f9abc), + 83: uint32(0xe94b7d8c), + 84: uint32(0xec7aec3a), + 85: uint32(0xdb851dfa), + 86: uint32(0x63094366), + 87: uint32(0xc464c3d2), + 88: uint32(0xef1c1847), + 89: uint32(0x3215d908), + 90: uint32(0xdd433b37), + 91: uint32(0x24c2ba16), + 92: uint32(0x12a14d43), + 93: uint32(0x2a65c451), + 94: uint32(0x50940002), + 95: uint32(0x133ae4dd), + 96: uint32(0x71dff89e), + 97: uint32(0x10314e55), + 98: uint32(0x81ac77d6), + 99: uint32(0x5f11199b), + 100: uint32(0x043556f1), + 101: uint32(0xd7a3c76b), + 102: uint32(0x3c11183b), + 103: uint32(0x5924a509), + 104: uint32(0xf28fe6ed), + 105: uint32(0x97f1fbfa), + 106: uint32(0x9ebabf2c), + 107: uint32(0x1e153c6e), + 108: uint32(0x86e34570), + 109: uint32(0xeae96fb1), + 110: uint32(0x860e5e0a), + 111: uint32(0x5a3e2ab3), + 112: uint32(0x771fe71c), + 113: uint32(0x4e3d06fa), + 114: uint32(0x2965dcb9), + 115: uint32(0x99e71d0f), + 116: uint32(0x803e89d6), + 117: uint32(0x5266c825), + 118: uint32(0x2e4cc978), + 119: uint32(0x9c10b36a), + 120: uint32(0xc6150eba), + 121: uint32(0x94e2ea78), + 122: uint32(0xa5fc3c53), + 123: uint32(0x1e0a2df4), + 124: uint32(0xf2f74ea7), + 125: uint32(0x361d2b3d), + 126: uint32(0x1939260f), + 127: uint32(0x19c27960), + 128: uint32(0x5223a708), + 129: uint32(0xf71312b6), + 130: uint32(0xebadfe6e), + 131: uint32(0xeac31f66), + 132: uint32(0xe3bc4595), + 133: uint32(0xa67bc883), + 134: uint32(0xb17f37d1), + 135: uint32(0x018cff28), + 136: uint32(0xc332ddef), + 137: uint32(0xbe6c5aa5), + 138: uint32(0x65582185), + 139: uint32(0x68ab9802), + 140: uint32(0xeecea50f), + 141: uint32(0xdb2f953b), + 142: uint32(0x2aef7dad), + 143: uint32(0x5b6e2f84), + 144: uint32(0x1521b628), + 145: uint32(0x29076170), + 146: uint32(0xecdd4775), + 147: uint32(0x619f1510), + 148: uint32(0x13cca830), + 149: uint32(0xeb61bd96), + 150: uint32(0x0334fe1e), + 151: uint32(0xaa0363cf), + 152: uint32(0xb5735c90), + 153: uint32(0x4c70a239), + 154: uint32(0xd59e9e0b), + 155: uint32(0xcbaade14), + 156: uint32(0xeecc86bc), + 157: uint32(0x60622ca7), + 158: uint32(0x9cab5cab), + 159: uint32(0xb2f3846e), + 160: uint32(0x648b1eaf), + 161: uint32(0x19bdf0ca), + 162: uint32(0xa02369b9), + 163: uint32(0x655abb50), + 164: uint32(0x40685a32), + 165: uint32(0x3c2ab4b3), + 166: uint32(0x319ee9d5), + 167: uint32(0xc021b8f7), + 168: uint32(0x9b540b19), + 169: uint32(0x875fa099), + 170: uint32(0x95f7997e), + 171: uint32(0x623d7da8), + 172: uint32(0xf837889a), + 173: uint32(0x97e32d77), + 174: uint32(0x11ed935f), + 175: uint32(0x16681281), + 176: uint32(0x0e358829), + 177: uint32(0xc7e61fd6), + 178: uint32(0x96dedfa1), + 179: uint32(0x7858ba99), + 180: uint32(0x57f584a5), + 181: uint32(0x1b227263), + 182: uint32(0x9b83c3ff), + 183: uint32(0x1ac24696), + 184: uint32(0xcdb30aeb), + 185: uint32(0x532e3054), + 186: uint32(0x8fd948e4), + 187: uint32(0x6dbc3128), + 188: uint32(0x58ebf2ef), + 189: uint32(0x34c6ffea), + 190: uint32(0xfe28ed61), + 191: uint32(0xee7c3c73), + 192: uint32(0x5d4a14d9), + 193: uint32(0xe864b7e3), + 194: uint32(0x42105d14), + 195: uint32(0x203e13e0), + 196: uint32(0x45eee2b6), + 197: uint32(0xa3aaabea), + 198: uint32(0xdb6c4f15), + 199: uint32(0xfacb4fd0), + 200: uint32(0xc742f442), + 201: uint32(0xef6abbb5), + 202: uint32(0x654f3b1d), + 203: uint32(0x41cd2105), + 204: uint32(0xd81e799e), + 205: uint32(0x86854dc7), + 206: uint32(0xe44b476a), + 207: uint32(0x3d816250), + 208: uint32(0xcf62a1f2), + 209: uint32(0x5b8d2646), + 210: uint32(0xfc8883a0), + 211: uint32(0xc1c7b6a3), + 212: uint32(0x7f1524c3), + 213: uint32(0x69cb7492), + 214: uint32(0x47848a0b), + 215: uint32(0x5692b285), + 216: uint32(0x095bbf00), + 217: uint32(0xad19489d), + 218: uint32(0x1462b174), + 219: uint32(0x23820e00), + 220: uint32(0x58428d2a), + 221: uint32(0x0c55f5ea), + 222: uint32(0x1dadf43e), + 223: uint32(0x233f7061), + 224: uint32(0x3372f092), + 225: uint32(0x8d937e41), + 226: uint32(0xd65fecf1), + 227: uint32(0x6c223bdb), + 228: uint32(0x7cde3759), + 229: uint32(0xcbee7460), + 230: uint32(0x4085f2a7), + 231: uint32(0xce77326e), + 232: uint32(0xa6078084), + 233: uint32(0x19f8509e), + 234: uint32(0xe8efd855), + 235: uint32(0x61d99735), + 236: uint32(0xa969a7aa), + 237: uint32(0xc50c06c2), + 238: uint32(0x5a04abfc), + 239: uint32(0x800bcadc), + 240: uint32(0x9e447a2e), + 241: uint32(0xc3453484), + 242: uint32(0xfdd56705), + 243: uint32(0x0e1e9ec9), + 244: uint32(0xdb73dbd3), + 245: uint32(0x105588cd), + 246: uint32(0x675fda79), + 247: uint32(0xe3674340), + 248: uint32(0xc5c43465), + 249: uint32(0x713e38d8), + 250: uint32(0x3d28f89e), + 251: uint32(0xf16dff20), + 252: uint32(0x153e21e7), + 253: uint32(0x8fb03d4a), + 254: uint32(0xe6e39f2b), + 255: uint32(0xdb83adf7), + }, + 2: { + 0: uint32(0xe93d5a68), + 1: uint32(0x948140f7), + 2: uint32(0xf64c261c), + 3: uint32(0x94692934), + 4: uint32(0x411520f7), + 5: uint32(0x7602d4f7), + 6: uint32(0xbcf46b2e), + 7: uint32(0xd4a20068), + 8: uint32(0xd4082471), + 9: uint32(0x3320f46a), + 10: uint32(0x43b7d4b7), + 11: uint32(0x500061af), + 12: uint32(0x1e39f62e), + 13: uint32(0x97244546), + 14: uint32(0x14214f74), + 15: uint32(0xbf8b8840), + 16: uint32(0x4d95fc1d), + 17: uint32(0x96b591af), + 18: uint32(0x70f4ddd3), + 19: uint32(0x66a02f45), + 20: uint32(0xbfbc09ec), + 21: uint32(0x03bd9785), + 22: uint32(0x7fac6dd0), + 23: uint32(0x31cb8504), + 24: uint32(0x96eb27b3), + 25: uint32(0x55fd3941), + 26: uint32(0xda2547e6), + 27: uint32(0xabca0a9a), + 28: uint32(0x28507825), + 29: uint32(0x530429f4), + 30: uint32(0x0a2c86da), + 31: uint32(0xe9b66dfb), + 32: uint32(0x68dc1462), + 33: uint32(0xd7486900), + 34: uint32(0x680ec0a4), + 35: uint32(0x27a18dee), + 36: uint32(0x4f3ffea2), + 37: uint32(0xe887ad8c), + 38: uint32(0xb58ce006), + 39: uint32(0x7af4d6b6), + 40: uint32(0xaace1e7c), + 41: uint32(0xd3375fec), + 42: uint32(0xce78a399), + 43: uint32(0x406b2a42), + 44: uint32(0x20fe9e35), + 45: uint32(0xd9f385b9), + 46: uint32(0xee39d7ab), + 47: uint32(0x3b124e8b), + 48: uint32(0x1dc9faf7), + 49: uint32(0x4b6d1856), + 50: uint32(0x26a36631), + 51: uint32(0xeae397b2), + 52: uint32(0x3a6efa74), + 53: uint32(0xdd5b4332), + 54: uint32(0x6841e7f7), + 55: uint32(0xca7820fb), + 56: uint32(0xfb0af54e), + 57: uint32(0xd8feb397), + 58: uint32(0x454056ac), + 59: uint32(0xba489527), + 60: uint32(0x55533a3a), + 61: uint32(0x20838d87), + 62: uint32(0xfe6ba9b7), + 63: uint32(0xd096954b), + 64: uint32(0x55a867bc), + 65: uint32(0xa1159a58), + 66: uint32(0xcca92963), + 67: uint32(0x99e1db33), + 68: uint32(0xa62a4a56), + 69: uint32(0x3f3125f9), + 70: uint32(0x5ef47e1c), + 71: uint32(0x9029317c), + 72: uint32(0xfdf8e802), + 73: uint32(0x04272f70), + 74: uint32(0x80bb155c), + 75: uint32(0x05282ce3), + 76: uint32(0x95c11548), + 77: uint32(0xe4c66d22), + 78: uint32(0x48c1133f), + 79: uint32(0xc70f86dc), + 80: uint32(0x07f9c9ee), + 81: uint32(0x41041f0f), + 82: uint32(0x404779a4), + 83: uint32(0x5d886e17), + 84: uint32(0x325f51eb), + 85: uint32(0xd59bc0d1), + 86: uint32(0xf2bcc18f), + 87: uint32(0x41113564), + 88: uint32(0x257b7834), + 89: uint32(0x602a9c60), + 90: uint32(0xdff8e8a3), + 91: uint32(0x1f636c1b), + 92: uint32(0x0e12b4c2), + 93: uint32(0x02e1329e), + 94: uint32(0xaf664fd1), + 95: uint32(0xcad18115), + 96: uint32(0x6b2395e0), + 97: uint32(0x333e92e1), + 98: uint32(0x3b240b62), + 99: uint32(0xeebeb922), + 100: uint32(0x85b2a20e), + 101: uint32(0xe6ba0d99), + 102: uint32(0xde720c8c), + 103: uint32(0x2da2f728), + 104: uint32(0xd0127845), + 105: uint32(0x95b794fd), + 106: uint32(0x647d0862), + 107: uint32(0xe7ccf5f0), + 108: uint32(0x5449a36f), + 109: uint32(0x877d48fa), + 110: uint32(0xc39dfd27), + 111: uint32(0xf33e8d1e), + 112: uint32(0x0a476341), + 113: uint32(0x992eff74), + 114: uint32(0x3a6f6eab), + 115: uint32(0xf4f8fd37), + 116: uint32(0xa812dc60), + 117: uint32(0xa1ebddf8), + 118: uint32(0x991be14c), + 119: uint32(0xdb6e6b0d), + 120: uint32(0xc67b5510), + 121: uint32(0x6d672c37), + 122: uint32(0x2765d43b), + 123: uint32(0xdcd0e804), + 124: uint32(0xf1290dc7), + 125: uint32(0xcc00ffa3), + 126: uint32(0xb5390f92), + 127: uint32(0x690fed0b), + 128: uint32(0x667b9ffb), + 129: uint32(0xcedb7d9c), + 130: uint32(0xa091cf0b), + 131: uint32(0xd9155ea3), + 132: uint32(0xbb132f88), + 133: uint32(0x515bad24), + 134: uint32(0x7b9479bf), + 135: uint32(0x763bd6eb), + 136: uint32(0x37392eb3), + 137: uint32(0xcc115979), + 138: uint32(0x8026e297), + 139: uint32(0xf42e312d), + 140: uint32(0x6842ada7), + 141: uint32(0xc66a2b3b), + 142: uint32(0x12754ccc), + 143: uint32(0x782ef11c), + 144: uint32(0x6a124237), + 145: uint32(0xb79251e7), + 146: uint32(0x06a1bbe6), + 147: uint32(0x4bfb6350), + 148: uint32(0x1a6b1018), + 149: uint32(0x11caedfa), + 150: uint32(0x3d25bdd8), + 151: uint32(0xe2e1c3c9), + 152: uint32(0x44421659), + 153: uint32(0x0a121386), + 154: uint32(0xd90cec6e), + 155: uint32(0xd5abea2a), + 156: uint32(0x64af674e), + 157: uint32(0xda86a85f), + 158: uint32(0xbebfe988), + 159: uint32(0x64e4c3fe), + 160: uint32(0x9dbc8057), + 161: uint32(0xf0f7c086), + 162: uint32(0x60787bf8), + 163: uint32(0x6003604d), + 164: uint32(0xd1fd8346), + 165: uint32(0xf6381fb0), + 166: uint32(0x7745ae04), + 167: uint32(0xd736fccc), + 168: uint32(0x83426b33), + 169: uint32(0xf01eab71), + 170: uint32(0xb0804187), + 171: uint32(0x3c005e5f), + 172: uint32(0x77a057be), + 173: uint32(0xbde8ae24), + 174: uint32(0x55464299), + 175: uint32(0xbf582e61), + 176: uint32(0x4e58f48f), + 177: uint32(0xf2ddfda2), + 178: uint32(0xf474ef38), + 179: uint32(0x8789bdc2), + 180: uint32(0x5366f9c3), + 181: uint32(0xc8b38e74), + 182: uint32(0xb475f255), + 183: uint32(0x46fcd9b9), + 184: uint32(0x7aeb2661), + 185: uint32(0x8b1ddf84), + 186: uint32(0x846a0e79), + 187: uint32(0x915f95e2), + 188: uint32(0x466e598e), + 189: uint32(0x20b45770), + 190: uint32(0x8cd55591), + 191: uint32(0xc902de4c), + 192: uint32(0xb90bace1), + 193: uint32(0xbb8205d0), + 194: uint32(0x11a86248), + 195: uint32(0x7574a99e), + 196: uint32(0xb77f19b6), + 197: uint32(0xe0a9dc09), + 198: uint32(0x662d09a1), + 199: uint32(0xc4324633), + 200: uint32(0xe85a1f02), + 201: uint32(0x09f0be8c), + 202: uint32(0x4a99a025), + 203: uint32(0x1d6efe10), + 204: uint32(0x1ab93d1d), + 205: uint32(0x0ba5a4df), + 206: uint32(0xa186f20f), + 207: uint32(0x2868f169), + 208: uint32(0xdcb7da83), + 209: uint32(0x573906fe), + 210: uint32(0xa1e2ce9b), + 211: uint32(0x4fcd7f52), + 212: uint32(0x50115e01), + 213: uint32(0xa70683fa), + 214: uint32(0xa002b5c4), + 215: uint32(0x0de6d027), + 216: uint32(0x9af88c27), + 217: uint32(0x773f8641), + 218: uint32(0xc3604c06), + 219: uint32(0x61a806b5), + 220: uint32(0xf0177a28), + 221: uint32(0xc0f586e0), + 222: uint32(0x006058aa), + 223: uint32(0x30dc7d62), + 224: uint32(0x11e69ed7), + 225: uint32(0x2338ea63), + 226: uint32(0x53c2dd94), + 227: uint32(0xc2c21634), + 228: uint32(0xbbcbee56), + 229: uint32(0x90bcb6de), + 230: uint32(0xebfc7da1), + 231: uint32(0xce591d76), + 232: uint32(0x6f05e409), + 233: uint32(0x4b7c0188), + 234: uint32(0x39720a3d), + 235: uint32(0x7c927c24), + 236: uint32(0x86e3725f), + 237: uint32(0x724d9db9), + 238: uint32(0x1ac15bb4), + 239: uint32(0xd39eb8fc), + 240: uint32(0xed545578), + 241: uint32(0x08fca5b5), + 242: uint32(0xd83d7cd3), + 243: uint32(0x4dad0fc4), + 244: uint32(0x1e50ef5e), + 245: uint32(0xb161e6f8), + 246: uint32(0xa28514d9), + 247: uint32(0x6c51133c), + 248: uint32(0x6fd5c7e7), + 249: uint32(0x56e14ec4), + 250: uint32(0x362abfce), + 251: uint32(0xddc6c837), + 252: uint32(0xd79a3234), + 253: uint32(0x92638212), + 254: uint32(0x670efa8e), + 255: uint32(0x406000e0), + }, + 3: { + 0: uint32(0x3a39ce37), + 1: uint32(0xd3faf5cf), + 2: uint32(0xabc27737), + 3: uint32(0x5ac52d1b), + 4: uint32(0x5cb0679e), + 5: uint32(0x4fa33742), + 6: uint32(0xd3822740), + 7: uint32(0x99bc9bbe), + 8: uint32(0xd5118e9d), + 9: uint32(0xbf0f7315), + 10: uint32(0xd62d1c7e), + 11: uint32(0xc700c47b), + 12: uint32(0xb78c1b6b), + 13: uint32(0x21a19045), + 14: uint32(0xb26eb1be), + 15: uint32(0x6a366eb4), + 16: uint32(0x5748ab2f), + 17: uint32(0xbc946e79), + 18: uint32(0xc6a376d2), + 19: uint32(0x6549c2c8), + 20: uint32(0x530ff8ee), + 21: uint32(0x468dde7d), + 22: uint32(0xd5730a1d), + 23: uint32(0x4cd04dc6), + 24: uint32(0x2939bbdb), + 25: uint32(0xa9ba4650), + 26: uint32(0xac9526e8), + 27: uint32(0xbe5ee304), + 28: uint32(0xa1fad5f0), + 29: uint32(0x6a2d519a), + 30: uint32(0x63ef8ce2), + 31: uint32(0x9a86ee22), + 32: uint32(0xc089c2b8), + 33: uint32(0x43242ef6), + 34: uint32(0xa51e03aa), + 35: uint32(0x9cf2d0a4), + 36: uint32(0x83c061ba), + 37: uint32(0x9be96a4d), + 38: uint32(0x8fe51550), + 39: uint32(0xba645bd6), + 40: uint32(0x2826a2f9), + 41: uint32(0xa73a3ae1), + 42: uint32(0x4ba99586), + 43: uint32(0xef5562e9), + 44: uint32(0xc72fefd3), + 45: uint32(0xf752f7da), + 46: uint32(0x3f046f69), + 47: uint32(0x77fa0a59), + 48: uint32(0x80e4a915), + 49: uint32(0x87b08601), + 50: uint32(0x9b09e6ad), + 51: uint32(0x3b3ee593), + 52: uint32(0xe990fd5a), + 53: uint32(0x9e34d797), + 54: uint32(0x2cf0b7d9), + 55: uint32(0x022b8b51), + 56: uint32(0x96d5ac3a), + 57: uint32(0x017da67d), + 58: uint32(0xd1cf3ed6), + 59: uint32(0x7c7d2d28), + 60: uint32(0x1f9f25cf), + 61: uint32(0xadf2b89b), + 62: uint32(0x5ad6b472), + 63: uint32(0x5a88f54c), + 64: uint32(0xe029ac71), + 65: uint32(0xe019a5e6), + 66: uint32(0x47b0acfd), + 67: uint32(0xed93fa9b), + 68: uint32(0xe8d3c48d), + 69: uint32(0x283b57cc), + 70: uint32(0xf8d56629), + 71: uint32(0x79132e28), + 72: uint32(0x785f0191), + 73: uint32(0xed756055), + 74: uint32(0xf7960e44), + 75: uint32(0xe3d35e8c), + 76: uint32(0x15056dd4), + 77: uint32(0x88f46dba), + 78: uint32(0x03a16125), + 79: uint32(0x0564f0bd), + 80: uint32(0xc3eb9e15), + 81: uint32(0x3c9057a2), + 82: uint32(0x97271aec), + 83: uint32(0xa93a072a), + 84: uint32(0x1b3f6d9b), + 85: uint32(0x1e6321f5), + 86: uint32(0xf59c66fb), + 87: uint32(0x26dcf319), + 88: uint32(0x7533d928), + 89: uint32(0xb155fdf5), + 90: uint32(0x03563482), + 91: uint32(0x8aba3cbb), + 92: uint32(0x28517711), + 93: uint32(0xc20ad9f8), + 94: uint32(0xabcc5167), + 95: uint32(0xccad925f), + 96: uint32(0x4de81751), + 97: uint32(0x3830dc8e), + 98: uint32(0x379d5862), + 99: uint32(0x9320f991), + 100: uint32(0xea7a90c2), + 101: uint32(0xfb3e7bce), + 102: uint32(0x5121ce64), + 103: uint32(0x774fbe32), + 104: uint32(0xa8b6e37e), + 105: uint32(0xc3293d46), + 106: uint32(0x48de5369), + 107: uint32(0x6413e680), + 108: uint32(0xa2ae0810), + 109: uint32(0xdd6db224), + 110: uint32(0x69852dfd), + 111: uint32(0x09072166), + 112: uint32(0xb39a460a), + 113: uint32(0x6445c0dd), + 114: uint32(0x586cdecf), + 115: uint32(0x1c20c8ae), + 116: uint32(0x5bbef7dd), + 117: uint32(0x1b588d40), + 118: uint32(0xccd2017f), + 119: uint32(0x6bb4e3bb), + 120: uint32(0xdda26a7e), + 121: uint32(0x3a59ff45), + 122: uint32(0x3e350a44), + 123: uint32(0xbcb4cdd5), + 124: uint32(0x72eacea8), + 125: uint32(0xfa6484bb), + 126: uint32(0x8d6612ae), + 127: uint32(0xbf3c6f47), + 128: uint32(0xd29be463), + 129: uint32(0x542f5d9e), + 130: uint32(0xaec2771b), + 131: uint32(0xf64e6370), + 132: uint32(0x740e0d8d), + 133: uint32(0xe75b1357), + 134: uint32(0xf8721671), + 135: uint32(0xaf537d5d), + 136: uint32(0x4040cb08), + 137: uint32(0x4eb4e2cc), + 138: uint32(0x34d2466a), + 139: uint32(0x0115af84), + 140: uint32(0xe1b00428), + 141: uint32(0x95983a1d), + 142: uint32(0x06b89fb4), + 143: uint32(0xce6ea048), + 144: uint32(0x6f3f3b82), + 145: uint32(0x3520ab82), + 146: uint32(0x011a1d4b), + 147: uint32(0x277227f8), + 148: uint32(0x611560b1), + 149: uint32(0xe7933fdc), + 150: uint32(0xbb3a792b), + 151: uint32(0x344525bd), + 152: uint32(0xa08839e1), + 153: uint32(0x51ce794b), + 154: uint32(0x2f32c9b7), + 155: uint32(0xa01fbac9), + 156: uint32(0xe01cc87e), + 157: uint32(0xbcc7d1f6), + 158: uint32(0xcf0111c3), + 159: uint32(0xa1e8aac7), + 160: uint32(0x1a908749), + 161: uint32(0xd44fbd9a), + 162: uint32(0xd0dadecb), + 163: uint32(0xd50ada38), + 164: uint32(0x0339c32a), + 165: uint32(0xc6913667), + 166: uint32(0x8df9317c), + 167: uint32(0xe0b12b4f), + 168: uint32(0xf79e59b7), + 169: uint32(0x43f5bb3a), + 170: uint32(0xf2d519ff), + 171: uint32(0x27d9459c), + 172: uint32(0xbf97222c), + 173: uint32(0x15e6fc2a), + 174: uint32(0x0f91fc71), + 175: uint32(0x9b941525), + 176: uint32(0xfae59361), + 177: uint32(0xceb69ceb), + 178: uint32(0xc2a86459), + 179: uint32(0x12baa8d1), + 180: uint32(0xb6c1075e), + 181: uint32(0xe3056a0c), + 182: uint32(0x10d25065), + 183: uint32(0xcb03a442), + 184: uint32(0xe0ec6e0e), + 185: uint32(0x1698db3b), + 186: uint32(0x4c98a0be), + 187: uint32(0x3278e964), + 188: uint32(0x9f1f9532), + 189: uint32(0xe0d392df), + 190: uint32(0xd3a0342b), + 191: uint32(0x8971f21e), + 192: uint32(0x1b0a7441), + 193: uint32(0x4ba3348c), + 194: uint32(0xc5be7120), + 195: uint32(0xc37632d8), + 196: uint32(0xdf359f8d), + 197: uint32(0x9b992f2e), + 198: uint32(0xe60b6f47), + 199: uint32(0x0fe3f11d), + 200: uint32(0xe54cda54), + 201: uint32(0x1edad891), + 202: uint32(0xce6279cf), + 203: uint32(0xcd3e7e6f), + 204: uint32(0x1618b166), + 205: uint32(0xfd2c1d05), + 206: uint32(0x848fd2c5), + 207: uint32(0xf6fb2299), + 208: uint32(0xf523f357), + 209: uint32(0xa6327623), + 210: uint32(0x93a83531), + 211: uint32(0x56cccd02), + 212: uint32(0xacf08162), + 213: uint32(0x5a75ebb5), + 214: uint32(0x6e163697), + 215: uint32(0x88d273cc), + 216: uint32(0xde966292), + 217: uint32(0x81b949d0), + 218: uint32(0x4c50901b), + 219: uint32(0x71c65614), + 220: uint32(0xe6c6c7bd), + 221: uint32(0x327a140a), + 222: uint32(0x45e1d006), + 223: uint32(0xc3f27b9a), + 224: uint32(0xc9aa53fd), + 225: uint32(0x62a80f00), + 226: uint32(0xbb25bfe2), + 227: uint32(0x35bdd2f6), + 228: uint32(0x71126905), + 229: uint32(0xb2040222), + 230: uint32(0xb6cbcf7c), + 231: uint32(0xcd769c2b), + 232: uint32(0x53113ec0), + 233: uint32(0x1640e3d3), + 234: uint32(0x38abbd60), + 235: uint32(0x2547adf0), + 236: uint32(0xba38209c), + 237: uint32(0xf746ce76), + 238: uint32(0x77afa1c5), + 239: uint32(0x20756060), + 240: uint32(0x85cbfe4e), + 241: uint32(0x8ae88dd8), + 242: uint32(0x7aaaf9b0), + 243: uint32(0x4cf9aa7e), + 244: uint32(0x1948c25c), + 245: uint32(0x02fb8a8c), + 246: uint32(0x01c36ae4), + 247: uint32(0xd6ebe1f9), + 248: uint32(0x90d4f869), + 249: uint32(0xa65cdea0), + 250: uint32(0x3f09252d), + 251: uint32(0xc208e69f), + 252: uint32(0xb74e6132), + 253: uint32(0xce77e25b), + 254: uint32(0x578fdfe3), + 255: uint32(0x3ac372e6), + }, + }, +})) + +var _BF_itoa64 = [65]uint8{'.', '/', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9'} + +var _BF_atoi64 = [96]uint8{ + 0: uint8(64), + 1: uint8(64), + 2: uint8(64), + 3: uint8(64), + 4: uint8(64), + 5: uint8(64), + 6: uint8(64), + 7: uint8(64), + 8: uint8(64), + 9: uint8(64), + 10: uint8(64), + 11: uint8(64), + 12: uint8(64), + 13: uint8(64), + 15: uint8(1), + 16: uint8(54), + 17: uint8(55), + 18: uint8(56), + 19: uint8(57), + 20: uint8(58), + 21: uint8(59), + 22: uint8(60), + 23: uint8(61), + 24: uint8(62), + 25: uint8(63), + 26: uint8(64), + 27: uint8(64), + 28: uint8(64), + 29: uint8(64), + 30: uint8(64), + 31: uint8(64), + 32: uint8(64), + 33: uint8(2), + 34: uint8(3), + 35: uint8(4), + 36: uint8(5), + 37: uint8(6), + 38: uint8(7), + 39: uint8(8), + 40: uint8(9), + 41: uint8(10), + 42: uint8(11), + 43: uint8(12), + 44: uint8(13), + 45: uint8(14), + 46: uint8(15), + 47: uint8(16), + 48: uint8(17), + 49: uint8(18), + 50: uint8(19), + 51: uint8(20), + 52: uint8(21), + 53: uint8(22), + 54: uint8(23), + 55: uint8(24), + 56: uint8(25), + 57: uint8(26), + 58: uint8(27), + 59: uint8(64), + 60: uint8(64), + 61: uint8(64), + 62: uint8(64), + 63: uint8(64), + 64: uint8(64), + 65: uint8(28), + 66: uint8(29), + 67: uint8(30), + 68: uint8(31), + 69: uint8(32), + 70: uint8(33), + 71: uint8(34), + 72: uint8(35), + 73: uint8(36), + 74: uint8(37), + 75: uint8(38), + 76: uint8(39), + 77: uint8(40), + 78: uint8(41), + 79: uint8(42), + 80: uint8(43), + 81: uint8(44), + 82: uint8(45), + 83: uint8(46), + 84: uint8(47), + 85: uint8(48), + 86: uint8(49), + 87: uint8(50), + 88: uint8(51), + 89: uint8(52), + 90: uint8(53), + 91: uint8(64), + 92: uint8(64), + 93: uint8(64), + 94: uint8(64), + 95: uint8(64), +} + +func _BF_decode(tls *TLS, dst uintptr, src uintptr, size int32) (r int32) { + var c1, c2, c3, c4, tmp uint32 + var dptr, end, sptr, v1 uintptr + _, _, _, _, _, _, _, _, _ = c1, c2, c3, c4, dptr, end, sptr, tmp, v1 + dptr = dst + end = dptr + uintptr(size) + sptr = src + for cond := true; cond; cond = dptr < end { + v1 = sptr + sptr = sptr + 1 + tmp = uint32(**(**uint8)(__ccgo_up(v1))) + tmp = tmp - uint32(0x20) + if tmp >= uint32(0x60) { + return -int32(1) + } + tmp = uint32(_BF_atoi64[tmp]) + if tmp > uint32(63) { + return -int32(1) + } + c1 = tmp + v1 = sptr + sptr = sptr + 1 + tmp = uint32(**(**uint8)(__ccgo_up(v1))) + tmp = tmp - uint32(0x20) + if tmp >= uint32(0x60) { + return -int32(1) + } + tmp = uint32(_BF_atoi64[tmp]) + if tmp > uint32(63) { + return -int32(1) + } + c2 = tmp + v1 = dptr + dptr = dptr + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(c1<>int32(4)) + if dptr >= end { + break + } + v1 = sptr + sptr = sptr + 1 + tmp = uint32(**(**uint8)(__ccgo_up(v1))) + tmp = tmp - uint32(0x20) + if tmp >= uint32(0x60) { + return -int32(1) + } + tmp = uint32(_BF_atoi64[tmp]) + if tmp > uint32(63) { + return -int32(1) + } + c3 = tmp + v1 = dptr + dptr = dptr + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(c2&uint32(0x0F)<>int32(2)) + if dptr >= end { + break + } + v1 = sptr + sptr = sptr + 1 + tmp = uint32(**(**uint8)(__ccgo_up(v1))) + tmp = tmp - uint32(0x20) + if tmp >= uint32(0x60) { + return -int32(1) + } + tmp = uint32(_BF_atoi64[tmp]) + if tmp > uint32(63) { + return -int32(1) + } + c4 = tmp + v1 = dptr + dptr = dptr + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(c3&uint32(0x03)<>int32(2)] + c1 = c1 & uint32(0x03) << int32(4) + if sptr >= end { + v1 = dptr + dptr = dptr + 1 + **(**uint8)(__ccgo_up(v1)) = _BF_itoa64[c1] + break + } + v1 = sptr + sptr = sptr + 1 + c2 = uint32(**(**uint8)(__ccgo_up(v1))) + c1 = c1 | c2>>int32(4) + v1 = dptr + dptr = dptr + 1 + **(**uint8)(__ccgo_up(v1)) = _BF_itoa64[c1] + c1 = c2 & uint32(0x0f) << int32(2) + if sptr >= end { + v1 = dptr + dptr = dptr + 1 + **(**uint8)(__ccgo_up(v1)) = _BF_itoa64[c1] + break + } + v1 = sptr + sptr = sptr + 1 + c2 = uint32(**(**uint8)(__ccgo_up(v1))) + c1 = c1 | c2>>int32(6) + v1 = dptr + dptr = dptr + 1 + **(**uint8)(__ccgo_up(v1)) = _BF_itoa64[c1] + v1 = dptr + dptr = dptr + 1 + **(**uint8)(__ccgo_up(v1)) = _BF_itoa64[c2&uint32(0x3f)] + } +} + +func _BF_swap(tls *TLS, x uintptr, count int32) { + var tmp TBF_word + var v1, v2 int32 + var v4 uintptr + _, _, _, _ = tmp, v1, v2, v4 + v1 = int32(1) + if *(*uint8)(unsafe.Pointer(&v1)) != 0 { + for { + tmp = **(**TBF_word)(__ccgo_up(x)) + tmp = tmp<>Int32FromInt32(16) + v4 = x + x += 4 + **(**TBF_word)(__ccgo_up(v4)) = tmp&uint32(0x00FF00FF)<>Int32FromInt32(8)&uint32(0x00FF00FF) + goto _3 + _3: + ; + count = count - 1 + v2 = count + if !(v2 != 0) { + break + } + } + } +} + +func _BF_encrypt(tls *TLS, ctx uintptr, L TBF_word, R TBF_word, start uintptr, end uintptr) (r TBF_word) { + var i int32 + var ptr, v2 uintptr + var tmp1, tmp2, tmp3, tmp4 TBF_word + _, _, _, _, _, _, _ = i, ptr, tmp1, tmp2, tmp3, tmp4, v2 + ptr = start + for cond := true; cond; cond = ptr < end { + L = L ^ **(**TBF_word)(__ccgo_up(ctx)) + i = 0 + for { + if !(i < int32(16)) { + break + } + tmp1 = L & uint32(0xFF) + tmp2 = L >> int32(8) + tmp2 = tmp2 & uint32(0xFF) + tmp3 = L >> int32(16) + tmp3 = tmp3 & uint32(0xFF) + tmp4 = L >> int32(24) + tmp1 = **(**TBF_word)(__ccgo_up(ctx + 72 + 3*1024 + uintptr(tmp1)*4)) + tmp2 = **(**TBF_word)(__ccgo_up(ctx + 72 + 2*1024 + uintptr(tmp2)*4)) + tmp3 = **(**TBF_word)(__ccgo_up(ctx + 72 + 1*1024 + uintptr(tmp3)*4)) + tmp3 = tmp3 + **(**TBF_word)(__ccgo_up(ctx + 72 + uintptr(tmp4)*4)) + tmp3 = tmp3 ^ tmp2 + R = R ^ **(**TBF_word)(__ccgo_up(ctx + uintptr(i+int32(1))*4)) + tmp3 = tmp3 + tmp1 + R = R ^ tmp3 + tmp1 = R & uint32(0xFF) + tmp2 = R >> int32(8) + tmp2 = tmp2 & uint32(0xFF) + tmp3 = R >> int32(16) + tmp3 = tmp3 & uint32(0xFF) + tmp4 = R >> int32(24) + tmp1 = **(**TBF_word)(__ccgo_up(ctx + 72 + 3*1024 + uintptr(tmp1)*4)) + tmp2 = **(**TBF_word)(__ccgo_up(ctx + 72 + 2*1024 + uintptr(tmp2)*4)) + tmp3 = **(**TBF_word)(__ccgo_up(ctx + 72 + 1*1024 + uintptr(tmp3)*4)) + tmp3 = tmp3 + **(**TBF_word)(__ccgo_up(ctx + 72 + uintptr(tmp4)*4)) + tmp3 = tmp3 ^ tmp2 + L = L ^ **(**TBF_word)(__ccgo_up(ctx + uintptr(i+int32(1)+int32(1))*4)) + tmp3 = tmp3 + tmp1 + L = L ^ tmp3 + goto _1 + _1: + ; + i = i + int32(2) + } + tmp4 = R + R = L + L = tmp4 ^ **(**TBF_word)(__ccgo_up(ctx + uintptr(Int32FromInt32(BF_N)+Int32FromInt32(1))*4)) + v2 = ptr + ptr += 4 + **(**TBF_word)(__ccgo_up(v2)) = L + v2 = ptr + ptr += 4 + **(**TBF_word)(__ccgo_up(v2)) = R + } + return L +} + +func _BF_set_key(tls *TLS, key uintptr, expanded uintptr, initial uintptr, flags uint8) { + bp := tls.Alloc(16) + defer tls.Free(16) + var bug, i, j uint32 + var diff, safety, sign, v1 TBF_word + var ptr uintptr + var _ /* tmp at bp+0 */ [2]TBF_word + _, _, _, _, _, _, _, _ = bug, diff, i, j, ptr, safety, sign, v1 + ptr = key + /* + * There was a sign extension bug in older revisions of this function. While + * we would have liked to simply fix the bug and move on, we have to provide + * a backwards compatibility feature (essentially the bug) for some systems and + * a safety measure for some others. The latter is needed because for certain + * multiple inputs to the buggy algorithm there exist easily found inputs to + * the correct algorithm that produce the same hash. Thus, we optionally + * deviate from the correct algorithm just enough to avoid such collisions. + * While the bug itself affected the majority of passwords containing + * characters with the 8th bit set (although only a percentage of those in a + * collision-producing way), the anti-collision safety measure affects + * only a subset of passwords containing the '\xff' character (not even all of + * those passwords, just some of them). This character is not found in valid + * UTF-8 sequences and is rarely used in popular 8-bit character encodings. + * Thus, the safety measure is unlikely to cause much annoyance, and is a + * reasonable tradeoff to use when authenticating against existing hashes that + * are not reliably known to have been computed with the correct algorithm. + * + * We use an approach that tries to minimize side-channel leaks of password + * information - that is, we mostly use fixed-cost bitwise operations instead + * of branches or table lookups. (One conditional branch based on password + * length remains. It is not part of the bug aftermath, though, and is + * difficult and possibly unreasonable to avoid given the use of C strings by + * the caller, which results in similar timing leaks anyway.) + * + * For actual implementation, we set an array index in the variable "bug" + * (0 means no bug, 1 means sign extension bug emulation) and a flag in the + * variable "safety" (bit 16 is set when the safety measure is requested). + * Valid combinations of settings are: + * + * Prefix "$2a$": bug = 0, safety = 0x10000 + * Prefix "$2b$": bug = 0, safety = 0 + * Prefix "$2x$": bug = 1, safety = 0 + * Prefix "$2y$": bug = 0, safety = 0 + */ + bug = Uint32FromInt32(Int32FromUint8(flags) & int32(1)) + safety = uint32(flags) & uint32(2) << int32(15) + v1 = Uint32FromInt32(0) + diff = v1 + sign = v1 + i = uint32(0) + for { + if !(i < Uint32FromInt32(Int32FromInt32(BF_N)+Int32FromInt32(2))) { + break + } + v1 = Uint32FromInt32(0) + (**(**[2]TBF_word)(__ccgo_up(bp)))[int32(1)] = v1 + (**(**[2]TBF_word)(__ccgo_up(bp)))[0] = v1 + j = uint32(0) + for { + if !(j < uint32(4)) { + break + } + **(**TBF_word)(__ccgo_up(bp)) <<= uint32(8) + **(**TBF_word)(__ccgo_up(bp)) |= uint32(uint8(**(**uint8)(__ccgo_up(ptr)))) /* correct */ + **(**TBF_word)(__ccgo_up(bp + 1*4)) <<= uint32(8) + **(**TBF_word)(__ccgo_up(bp + 1*4)) |= Uint32FromInt8(Int8FromUint8(**(**uint8)(__ccgo_up(ptr)))) /* bug */ + /* + * Sign extension in the first char has no effect - nothing to overwrite yet, + * and those extra 24 bits will be fully shifted out of the 32-bit word. For + * chars 2, 3, 4 in each four-char block, we set bit 7 of "sign" if sign + * extension in tmp[1] occurs. Once this flag is set, it remains set. + */ + if j != 0 { + sign = sign | (**(**[2]TBF_word)(__ccgo_up(bp)))[int32(1)]&uint32(0x80) + } + if !(**(**uint8)(__ccgo_up(ptr)) != 0) { + ptr = key + } else { + ptr = ptr + 1 + } + goto _4 + _4: + ; + j = j + 1 + } + diff = diff | ((**(**[2]TBF_word)(__ccgo_up(bp)))[0] ^ (**(**[2]TBF_word)(__ccgo_up(bp)))[int32(1)]) /* Non-zero on any differences */ + **(**TBF_word)(__ccgo_up(expanded + uintptr(i)*4)) = (**(**[2]TBF_word)(__ccgo_up(bp)))[bug] + **(**TBF_word)(__ccgo_up(initial + uintptr(i)*4)) = **(**TBF_word)(__ccgo_up(uintptr(unsafe.Pointer(&_BF_init_state)) + uintptr(i)*4)) ^ (**(**[2]TBF_word)(__ccgo_up(bp)))[bug] + goto _2 + _2: + ; + i = i + 1 + } + /* + * At this point, "diff" is zero iff the correct and buggy algorithms produced + * exactly the same result. If so and if "sign" is non-zero, which indicates + * that there was a non-benign sign extension, this means that we have a + * collision between the correctly computed hash for this password and a set of + * passwords that could be supplied to the buggy algorithm. Our safety measure + * is meant to protect from such many-buggy to one-correct collisions, by + * deviating from the correct algorithm in such cases. Let's check for this. + */ + diff = diff | diff>>int32(16) /* still zero iff exact match */ + diff = diff & uint32(0xffff) /* ditto */ + diff = diff + uint32(0xffff) /* bit 16 set iff "diff" was non-zero (on non-match) */ + sign = sign << uint32(9) /* move the non-benign sign extension flag to bit 16 */ + sign = sign & (^diff & safety) /* action needed? */ + /* + * If we have determined that we need to deviate from the correct algorithm, + * flip bit 16 in initial expanded key. (The choice of 16 is arbitrary, but + * let's stick to it now. It came out of the approach we used above, and it's + * not any worse than any other choice we could make.) + * + * It is crucial that we don't do the same to the expanded key used in the main + * Eksblowfish loop. By doing it to only one of these two, we deviate from a + * state that could be directly specified by a password to the buggy algorithm + * (and to the fully correct one as well, but that's a side-effect). + */ + **(**TBF_word)(__ccgo_up(initial)) ^= sign +} + +var _flags_by_subtype = [26]uint8{ + 0: uint8(2), + 1: uint8(4), + 23: uint8(1), + 24: uint8(4), +} + +func _BF_crypt(tls *TLS, key uintptr, setting uintptr, output uintptr, min TBF_word) (r uintptr) { + bp := tls.Alloc(4272) + defer tls.Free(4272) + var L, L1, R, count, tmp1, tmp2, tmp3, tmp4, v1 TBF_word + var done, i int32 + var ptr uintptr + var _ /* LR at bp+4264 */ [2]TBF_word + var _ /* data at bp+0 */ struct { + Fctx TBF_ctx + Fexpanded_key TBF_key + Fbinary struct { + Foutput [0][6]TBF_word + Fsalt [4]TBF_word + F__ccgo_pad2 [8]byte + } + } + _, _, _, _, _, _, _, _, _, _, _, _ = L, L1, R, count, done, i, ptr, tmp1, tmp2, tmp3, tmp4, v1 + if Int32FromUint8(**(**uint8)(__ccgo_up(setting))) != int32('$') || Int32FromUint8(**(**uint8)(__ccgo_up(setting + 1))) != int32('2') || Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(setting + 2)))-int32('a')) > uint32(25) || !(_flags_by_subtype[Int32FromUint8(**(**uint8)(__ccgo_up(setting + 2)))-int32('a')] != 0) || Int32FromUint8(**(**uint8)(__ccgo_up(setting + 3))) != int32('$') || Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(setting + 4)))-int32('0')) > uint32(1) || Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(setting + 5)))-int32('0')) > uint32(9) || Int32FromUint8(**(**uint8)(__ccgo_up(setting + 6))) != int32('$') { + return UintptrFromInt32(0) + } + count = Uint32FromInt32(1) << ((Int32FromUint8(**(**uint8)(__ccgo_up(setting + 4)))-int32('0'))*int32(10) + (Int32FromUint8(**(**uint8)(__ccgo_up(setting + 5))) - int32('0'))) + if count < min || _BF_decode(tls, bp+4240, setting+7, int32(16)) != 0 { + return UintptrFromInt32(0) + } + _BF_swap(tls, bp+4240, int32(4)) + _BF_set_key(tls, key, bp+4168, bp, _flags_by_subtype[Int32FromUint8(**(**uint8)(__ccgo_up(setting + 2)))-int32('a')]) + Xmemcpy(tls, bp+72, uintptr(unsafe.Pointer(&_BF_init_state))+72, uint64(4096)) + L = uint32(0) + R = uint32(0) + ptr = bp + for cond := true; cond; cond = int32(1) != 0 { + L = _BF_encrypt(tls, bp, L^**(**TBF_word)(__ccgo_up(bp + 4240)), R^**(**TBF_word)(__ccgo_up(bp + 4240 + 1*4)), ptr, ptr) + R = **(**TBF_word)(__ccgo_up(ptr + UintptrFromInt32(1)*4)) + ptr = ptr + uintptr(2)*4 + if ptr >= bp+uintptr(Int32FromInt32(BF_N)+Int32FromInt32(2)+Int32FromInt32(4)*Int32FromInt32(0x100))*4 { + break + } + L = _BF_encrypt(tls, bp, L^**(**TBF_word)(__ccgo_up(bp + 4240 + 2*4)), R^**(**TBF_word)(__ccgo_up(bp + 4240 + 3*4)), ptr, ptr) + R = **(**TBF_word)(__ccgo_up(ptr + UintptrFromInt32(1)*4)) + ptr = ptr + uintptr(2)*4 + } + for { + i = 0 + for { + if !(i < Int32FromInt32(BF_N)+Int32FromInt32(2)) { + break + } + **(**TBF_word)(__ccgo_up(bp + uintptr(i)*4)) ^= **(**TBF_word)(__ccgo_up(bp + 4168 + uintptr(i)*4)) + **(**TBF_word)(__ccgo_up(bp + uintptr(i+int32(1))*4)) ^= **(**TBF_word)(__ccgo_up(bp + 4168 + uintptr(i+int32(1))*4)) + goto _3 + _3: + ; + i = i + int32(2) + } + done = 0 + for cond := true; cond; cond = int32(1) != 0 { + _BF_encrypt(tls, bp, uint32(0), uint32(0), bp, bp+uintptr(Int32FromInt32(BF_N)+Int32FromInt32(2)+Int32FromInt32(4)*Int32FromInt32(0x100))*4) + if done != 0 { + break + } + done = int32(1) + tmp1 = **(**TBF_word)(__ccgo_up(bp + 4240)) + tmp2 = **(**TBF_word)(__ccgo_up(bp + 4240 + 1*4)) + tmp3 = **(**TBF_word)(__ccgo_up(bp + 4240 + 2*4)) + tmp4 = **(**TBF_word)(__ccgo_up(bp + 4240 + 3*4)) + i = 0 + for { + if !(i < int32(BF_N)) { + break + } + **(**TBF_word)(__ccgo_up(bp + uintptr(i)*4)) ^= tmp1 + **(**TBF_word)(__ccgo_up(bp + uintptr(i+int32(1))*4)) ^= tmp2 + **(**TBF_word)(__ccgo_up(bp + uintptr(i+int32(2))*4)) ^= tmp3 + **(**TBF_word)(__ccgo_up(bp + uintptr(i+int32(3))*4)) ^= tmp4 + goto _4 + _4: + ; + i = i + int32(4) + } + **(**TBF_word)(__ccgo_up(bp + 16*4)) ^= tmp1 + **(**TBF_word)(__ccgo_up(bp + 17*4)) ^= tmp2 + } + goto _2 + _2: + ; + count = count - 1 + v1 = count + if !(v1 != 0) { + break + } + } + i = 0 + for { + if !(i < int32(6)) { + break + } + L1 = _BF_magic_w[i] + (**(**[2]TBF_word)(__ccgo_up(bp + 4264)))[int32(1)] = _BF_magic_w[i+int32(1)] + count = uint32(64) + for { + L1 = _BF_encrypt(tls, bp, L1, (**(**[2]TBF_word)(__ccgo_up(bp + 4264)))[int32(1)], bp+4264, bp+4264) + goto _7 + _7: + ; + count = count - 1 + v1 = count + if !(v1 != 0) { + break + } + } + **(**TBF_word)(__ccgo_up(bp + 4240 + uintptr(i)*4)) = L1 + **(**TBF_word)(__ccgo_up(bp + 4240 + uintptr(i+int32(1))*4)) = (**(**[2]TBF_word)(__ccgo_up(bp + 4264)))[int32(1)] + goto _5 + _5: + ; + i = i + int32(2) + } + Xmemcpy(tls, output, setting, Uint64FromInt32(Int32FromInt32(7)+Int32FromInt32(22)-Int32FromInt32(1))) + **(**uint8)(__ccgo_up(output + uintptr(Int32FromInt32(7)+Int32FromInt32(22)-Int32FromInt32(1)))) = _BF_itoa64[Int32FromUint8(_BF_atoi64[Int32FromUint8(**(**uint8)(__ccgo_up(setting + uintptr(Int32FromInt32(7)+Int32FromInt32(22)-Int32FromInt32(1)))))-int32(0x20)])&int32(0x30)] + /* This has to be bug-compatible with the original implementation, so + * only encode 23 of the 24 bytes. :-) */ + _BF_swap(tls, bp+4240, int32(6)) + _BF_encode(tls, output+uintptr(Int32FromInt32(7)+Int32FromInt32(22)), bp+4240, int32(23)) + **(**uint8)(__ccgo_up(output + uintptr(Int32FromInt32(7)+Int32FromInt32(22)+Int32FromInt32(31)))) = uint8('\000') + return output +} + +// C documentation +// +// /* +// * Please preserve the runtime self-test. It serves two purposes at once: +// * +// * 1. We really can't afford the risk of producing incompatible hashes e.g. +// * when there's something like gcc bug 26587 again, whereas an application or +// * library integrating this code might not also integrate our external tests or +// * it might not run them after every build. Even if it does, the miscompile +// * might only occur on the production build, but not on a testing build (such +// * as because of different optimization settings). It is painful to recover +// * from incorrectly-computed hashes - merely fixing whatever broke is not +// * enough. Thus, a proactive measure like this self-test is needed. +// * +// * 2. We don't want to leave sensitive data from our actual password hash +// * computation on the stack or in registers. Previous revisions of the code +// * would do explicit cleanups, but simply running the self-test after hash +// * computation is more reliable. +// * +// * The performance cost of this quick self-test is around 0.6% at the "$2a$08" +// * setting. +// */ +func X__crypt_blowfish(tls *TLS, key uintptr, setting uintptr, output uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v setting=%v output=%v, (%v:)", tls, key, setting, output, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(384) + defer tls.Free(384) + var flags uint32 + var k, p, retval, test_hash, test_key, test_setting uintptr + var ok int32 + var _ /* ae at bp+96 */ TBF_key + var _ /* ai at bp+168 */ TBF_key + var _ /* buf at bp+0 */ struct { + Fs [30]uint8 + Fo [63]uint8 + } + var _ /* ye at bp+240 */ TBF_key + var _ /* yi at bp+312 */ TBF_key + _, _, _, _, _, _, _, _ = flags, k, ok, p, retval, test_hash, test_key, test_setting + test_key = __ccgo_ts + 18 + test_setting = __ccgo_ts + 28 + test_hash = uintptr(unsafe.Pointer(&_test_hashes)) + /* Hash the supplied password */ + retval = _BF_crypt(tls, key, setting, output, uint32(16)) + /* + * Do a quick self-test. It is important that we make both calls to BF_crypt() + * from the same scope such that they likely use the same stack locations, + * which makes the second call overwrite the first call's sensitive data on the + * stack and makes it more likely that any alignment related issues would be + * detected by the self-test. + */ + Xmemcpy(tls, bp, test_setting, uint64(30)) + if retval != 0 { + flags = uint32(_flags_by_subtype[Int32FromUint8(**(**uint8)(__ccgo_up(setting + 2)))-int32('a')]) + test_hash = uintptr(unsafe.Pointer(&_test_hashes)) + uintptr(flags&uint32(1))*34 + **(**uint8)(__ccgo_up(bp + 2)) = **(**uint8)(__ccgo_up(setting + 2)) + } + Xmemset(tls, bp+30, int32(0x55), uint64(63)) + **(**uint8)(__ccgo_up(bp + 30 + uintptr(Uint64FromInt64(63)-Uint64FromInt32(1)))) = uint8(0) + p = _BF_crypt(tls, test_key, bp, bp+30, uint32(1)) + ok = BoolInt32(p == bp+30 && !(Xmemcmp(tls, p, bp, Uint64FromInt32(Int32FromInt32(7)+Int32FromInt32(22))) != 0) && !(Xmemcmp(tls, p+uintptr(Int32FromInt32(7)+Int32FromInt32(22)), test_hash, Uint64FromInt32(Int32FromInt32(31)+Int32FromInt32(1)+Int32FromInt32(1)+Int32FromInt32(1))) != 0)) + k = __ccgo_ts + 58 + _BF_set_key(tls, k, bp+96, bp+168, uint8(2)) /* $2a$ */ + _BF_set_key(tls, k, bp+240, bp+312, uint8(4)) /* $2y$ */ + **(**TBF_word)(__ccgo_up(bp + 168)) ^= uint32(0x10000) /* undo the safety (for comparison) */ + ok = BoolInt32(ok != 0 && (**(**TBF_key)(__ccgo_up(bp + 168)))[0] == uint32(0xdb9c59bc) && (**(**TBF_key)(__ccgo_up(bp + 240)))[int32(17)] == uint32(0x33343500) && !(Xmemcmp(tls, bp+96, bp+240, uint64(72)) != 0) && !(Xmemcmp(tls, bp+168, bp+312, uint64(72)) != 0)) + if ok != 0 && retval != 0 { + return retval + } + return __ccgo_ts + 70 +} + +var _test_hashes = [2][34]uint8{ + 0: {'i', '1', 'D', '7', '0', '9', 'v', 'f', 'a', 'm', 'u', 'l', 'i', 'm', 'l', 'G', 'c', 'q', '0', 'q', 'q', '3', 'U', 'v', 'u', 'U', 'a', 's', 'v', 'E', 'a', 0, 'U'}, + 1: {'V', 'U', 'r', 'P', 'm', 'X', 'D', '6', 'q', '/', 'n', 'V', 'S', 'S', 'p', '7', 'p', 'N', 'D', 'h', 'C', 'R', '9', '0', '7', '1', 'I', 'f', 'I', 'R', 'e', 0, 'U'}, +} + +const _PASSWORD_EFMT1 = 95 + +type Texpanded_key = struct { + Fl [16]Tuint32_t + Fr [16]Tuint32_t +} + +var _key_shifts = [16]uint8{ + 0: uint8(1), + 1: uint8(1), + 2: uint8(2), + 3: uint8(2), + 4: uint8(2), + 5: uint8(2), + 6: uint8(2), + 7: uint8(2), + 8: uint8(1), + 9: uint8(2), + 10: uint8(2), + 11: uint8(2), + 12: uint8(2), + 13: uint8(2), + 14: uint8(2), + 15: uint8(1), +} + +var _psbox = [8][64]Tuint32_t{ + 0: { + 0: uint32(0x00808200), + 2: uint32(0x00008000), + 3: uint32(0x00808202), + 4: uint32(0x00808002), + 5: uint32(0x00008202), + 6: uint32(0x00000002), + 7: uint32(0x00008000), + 8: uint32(0x00000200), + 9: uint32(0x00808200), + 10: uint32(0x00808202), + 11: uint32(0x00000200), + 12: uint32(0x00800202), + 13: uint32(0x00808002), + 14: uint32(0x00800000), + 15: uint32(0x00000002), + 16: uint32(0x00000202), + 17: uint32(0x00800200), + 18: uint32(0x00800200), + 19: uint32(0x00008200), + 20: uint32(0x00008200), + 21: uint32(0x00808000), + 22: uint32(0x00808000), + 23: uint32(0x00800202), + 24: uint32(0x00008002), + 25: uint32(0x00800002), + 26: uint32(0x00800002), + 27: uint32(0x00008002), + 29: uint32(0x00000202), + 30: uint32(0x00008202), + 31: uint32(0x00800000), + 32: uint32(0x00008000), + 33: uint32(0x00808202), + 34: uint32(0x00000002), + 35: uint32(0x00808000), + 36: uint32(0x00808200), + 37: uint32(0x00800000), + 38: uint32(0x00800000), + 39: uint32(0x00000200), + 40: uint32(0x00808002), + 41: uint32(0x00008000), + 42: uint32(0x00008200), + 43: uint32(0x00800002), + 44: uint32(0x00000200), + 45: uint32(0x00000002), + 46: uint32(0x00800202), + 47: uint32(0x00008202), + 48: uint32(0x00808202), + 49: uint32(0x00008002), + 50: uint32(0x00808000), + 51: uint32(0x00800202), + 52: uint32(0x00800002), + 53: uint32(0x00000202), + 54: uint32(0x00008202), + 55: uint32(0x00808200), + 56: uint32(0x00000202), + 57: uint32(0x00800200), + 58: uint32(0x00800200), + 60: uint32(0x00008002), + 61: uint32(0x00008200), + 63: uint32(0x00808002), + }, + 1: { + 0: uint32(0x40084010), + 1: uint32(0x40004000), + 2: uint32(0x00004000), + 3: uint32(0x00084010), + 4: uint32(0x00080000), + 5: uint32(0x00000010), + 6: uint32(0x40080010), + 7: uint32(0x40004010), + 8: uint32(0x40000010), + 9: uint32(0x40084010), + 10: uint32(0x40084000), + 11: uint32(0x40000000), + 12: uint32(0x40004000), + 13: uint32(0x00080000), + 14: uint32(0x00000010), + 15: uint32(0x40080010), + 16: uint32(0x00084000), + 17: uint32(0x00080010), + 18: uint32(0x40004010), + 20: uint32(0x40000000), + 21: uint32(0x00004000), + 22: uint32(0x00084010), + 23: uint32(0x40080000), + 24: uint32(0x00080010), + 25: uint32(0x40000010), + 27: uint32(0x00084000), + 28: uint32(0x00004010), + 29: uint32(0x40084000), + 30: uint32(0x40080000), + 31: uint32(0x00004010), + 33: uint32(0x00084010), + 34: uint32(0x40080010), + 35: uint32(0x00080000), + 36: uint32(0x40004010), + 37: uint32(0x40080000), + 38: uint32(0x40084000), + 39: uint32(0x00004000), + 40: uint32(0x40080000), + 41: uint32(0x40004000), + 42: uint32(0x00000010), + 43: uint32(0x40084010), + 44: uint32(0x00084010), + 45: uint32(0x00000010), + 46: uint32(0x00004000), + 47: uint32(0x40000000), + 48: uint32(0x00004010), + 49: uint32(0x40084000), + 50: uint32(0x00080000), + 51: uint32(0x40000010), + 52: uint32(0x00080010), + 53: uint32(0x40004010), + 54: uint32(0x40000010), + 55: uint32(0x00080010), + 56: uint32(0x00084000), + 58: uint32(0x40004000), + 59: uint32(0x00004010), + 60: uint32(0x40000000), + 61: uint32(0x40080010), + 62: uint32(0x40084010), + 63: uint32(0x00084000), + }, + 2: { + 0: uint32(0x00000104), + 1: uint32(0x04010100), + 3: uint32(0x04010004), + 4: uint32(0x04000100), + 6: uint32(0x00010104), + 7: uint32(0x04000100), + 8: uint32(0x00010004), + 9: uint32(0x04000004), + 10: uint32(0x04000004), + 11: uint32(0x00010000), + 12: uint32(0x04010104), + 13: uint32(0x00010004), + 14: uint32(0x04010000), + 15: uint32(0x00000104), + 16: uint32(0x04000000), + 17: uint32(0x00000004), + 18: uint32(0x04010100), + 19: uint32(0x00000100), + 20: uint32(0x00010100), + 21: uint32(0x04010000), + 22: uint32(0x04010004), + 23: uint32(0x00010104), + 24: uint32(0x04000104), + 25: uint32(0x00010100), + 26: uint32(0x00010000), + 27: uint32(0x04000104), + 28: uint32(0x00000004), + 29: uint32(0x04010104), + 30: uint32(0x00000100), + 31: uint32(0x04000000), + 32: uint32(0x04010100), + 33: uint32(0x04000000), + 34: uint32(0x00010004), + 35: uint32(0x00000104), + 36: uint32(0x00010000), + 37: uint32(0x04010100), + 38: uint32(0x04000100), + 40: uint32(0x00000100), + 41: uint32(0x00010004), + 42: uint32(0x04010104), + 43: uint32(0x04000100), + 44: uint32(0x04000004), + 45: uint32(0x00000100), + 47: uint32(0x04010004), + 48: uint32(0x04000104), + 49: uint32(0x00010000), + 50: uint32(0x04000000), + 51: uint32(0x04010104), + 52: uint32(0x00000004), + 53: uint32(0x00010104), + 54: uint32(0x00010100), + 55: uint32(0x04000004), + 56: uint32(0x04010000), + 57: uint32(0x04000104), + 58: uint32(0x00000104), + 59: uint32(0x04010000), + 60: uint32(0x00010104), + 61: uint32(0x00000004), + 62: uint32(0x04010004), + 63: uint32(0x00010100), + }, + 3: { + 0: uint32(0x80401000), + 1: uint32(0x80001040), + 2: uint32(0x80001040), + 3: uint32(0x00000040), + 4: uint32(0x00401040), + 5: uint32(0x80400040), + 6: uint32(0x80400000), + 7: uint32(0x80001000), + 9: uint32(0x00401000), + 10: uint32(0x00401000), + 11: uint32(0x80401040), + 12: uint32(0x80000040), + 14: uint32(0x00400040), + 15: uint32(0x80400000), + 16: uint32(0x80000000), + 17: uint32(0x00001000), + 18: uint32(0x00400000), + 19: uint32(0x80401000), + 20: uint32(0x00000040), + 21: uint32(0x00400000), + 22: uint32(0x80001000), + 23: uint32(0x00001040), + 24: uint32(0x80400040), + 25: uint32(0x80000000), + 26: uint32(0x00001040), + 27: uint32(0x00400040), + 28: uint32(0x00001000), + 29: uint32(0x00401040), + 30: uint32(0x80401040), + 31: uint32(0x80000040), + 32: uint32(0x00400040), + 33: uint32(0x80400000), + 34: uint32(0x00401000), + 35: uint32(0x80401040), + 36: uint32(0x80000040), + 39: uint32(0x00401000), + 40: uint32(0x00001040), + 41: uint32(0x00400040), + 42: uint32(0x80400040), + 43: uint32(0x80000000), + 44: uint32(0x80401000), + 45: uint32(0x80001040), + 46: uint32(0x80001040), + 47: uint32(0x00000040), + 48: uint32(0x80401040), + 49: uint32(0x80000040), + 50: uint32(0x80000000), + 51: uint32(0x00001000), + 52: uint32(0x80400000), + 53: uint32(0x80001000), + 54: uint32(0x00401040), + 55: uint32(0x80400040), + 56: uint32(0x80001000), + 57: uint32(0x00001040), + 58: uint32(0x00400000), + 59: uint32(0x80401000), + 60: uint32(0x00000040), + 61: uint32(0x00400000), + 62: uint32(0x00001000), + 63: uint32(0x00401040), + }, + 4: { + 0: uint32(0x00000080), + 1: uint32(0x01040080), + 2: uint32(0x01040000), + 3: uint32(0x21000080), + 4: uint32(0x00040000), + 5: uint32(0x00000080), + 6: uint32(0x20000000), + 7: uint32(0x01040000), + 8: uint32(0x20040080), + 9: uint32(0x00040000), + 10: uint32(0x01000080), + 11: uint32(0x20040080), + 12: uint32(0x21000080), + 13: uint32(0x21040000), + 14: uint32(0x00040080), + 15: uint32(0x20000000), + 16: uint32(0x01000000), + 17: uint32(0x20040000), + 18: uint32(0x20040000), + 20: uint32(0x20000080), + 21: uint32(0x21040080), + 22: uint32(0x21040080), + 23: uint32(0x01000080), + 24: uint32(0x21040000), + 25: uint32(0x20000080), + 27: uint32(0x21000000), + 28: uint32(0x01040080), + 29: uint32(0x01000000), + 30: uint32(0x21000000), + 31: uint32(0x00040080), + 32: uint32(0x00040000), + 33: uint32(0x21000080), + 34: uint32(0x00000080), + 35: uint32(0x01000000), + 36: uint32(0x20000000), + 37: uint32(0x01040000), + 38: uint32(0x21000080), + 39: uint32(0x20040080), + 40: uint32(0x01000080), + 41: uint32(0x20000000), + 42: uint32(0x21040000), + 43: uint32(0x01040080), + 44: uint32(0x20040080), + 45: uint32(0x00000080), + 46: uint32(0x01000000), + 47: uint32(0x21040000), + 48: uint32(0x21040080), + 49: uint32(0x00040080), + 50: uint32(0x21000000), + 51: uint32(0x21040080), + 52: uint32(0x01040000), + 54: uint32(0x20040000), + 55: uint32(0x21000000), + 56: uint32(0x00040080), + 57: uint32(0x01000080), + 58: uint32(0x20000080), + 59: uint32(0x00040000), + 61: uint32(0x20040000), + 62: uint32(0x01040080), + 63: uint32(0x20000080), + }, + 5: { + 0: uint32(0x10000008), + 1: uint32(0x10200000), + 2: uint32(0x00002000), + 3: uint32(0x10202008), + 4: uint32(0x10200000), + 5: uint32(0x00000008), + 6: uint32(0x10202008), + 7: uint32(0x00200000), + 8: uint32(0x10002000), + 9: uint32(0x00202008), + 10: uint32(0x00200000), + 11: uint32(0x10000008), + 12: uint32(0x00200008), + 13: uint32(0x10002000), + 14: uint32(0x10000000), + 15: uint32(0x00002008), + 17: uint32(0x00200008), + 18: uint32(0x10002008), + 19: uint32(0x00002000), + 20: uint32(0x00202000), + 21: uint32(0x10002008), + 22: uint32(0x00000008), + 23: uint32(0x10200008), + 24: uint32(0x10200008), + 26: uint32(0x00202008), + 27: uint32(0x10202000), + 28: uint32(0x00002008), + 29: uint32(0x00202000), + 30: uint32(0x10202000), + 31: uint32(0x10000000), + 32: uint32(0x10002000), + 33: uint32(0x00000008), + 34: uint32(0x10200008), + 35: uint32(0x00202000), + 36: uint32(0x10202008), + 37: uint32(0x00200000), + 38: uint32(0x00002008), + 39: uint32(0x10000008), + 40: uint32(0x00200000), + 41: uint32(0x10002000), + 42: uint32(0x10000000), + 43: uint32(0x00002008), + 44: uint32(0x10000008), + 45: uint32(0x10202008), + 46: uint32(0x00202000), + 47: uint32(0x10200000), + 48: uint32(0x00202008), + 49: uint32(0x10202000), + 51: uint32(0x10200008), + 52: uint32(0x00000008), + 53: uint32(0x00002000), + 54: uint32(0x10200000), + 55: uint32(0x00202008), + 56: uint32(0x00002000), + 57: uint32(0x00200008), + 58: uint32(0x10002008), + 60: uint32(0x10202000), + 61: uint32(0x10000000), + 62: uint32(0x00200008), + 63: uint32(0x10002008), + }, + 6: { + 0: uint32(0x00100000), + 1: uint32(0x02100001), + 2: uint32(0x02000401), + 4: uint32(0x00000400), + 5: uint32(0x02000401), + 6: uint32(0x00100401), + 7: uint32(0x02100400), + 8: uint32(0x02100401), + 9: uint32(0x00100000), + 11: uint32(0x02000001), + 12: uint32(0x00000001), + 13: uint32(0x02000000), + 14: uint32(0x02100001), + 15: uint32(0x00000401), + 16: uint32(0x02000400), + 17: uint32(0x00100401), + 18: uint32(0x00100001), + 19: uint32(0x02000400), + 20: uint32(0x02000001), + 21: uint32(0x02100000), + 22: uint32(0x02100400), + 23: uint32(0x00100001), + 24: uint32(0x02100000), + 25: uint32(0x00000400), + 26: uint32(0x00000401), + 27: uint32(0x02100401), + 28: uint32(0x00100400), + 29: uint32(0x00000001), + 30: uint32(0x02000000), + 31: uint32(0x00100400), + 32: uint32(0x02000000), + 33: uint32(0x00100400), + 34: uint32(0x00100000), + 35: uint32(0x02000401), + 36: uint32(0x02000401), + 37: uint32(0x02100001), + 38: uint32(0x02100001), + 39: uint32(0x00000001), + 40: uint32(0x00100001), + 41: uint32(0x02000000), + 42: uint32(0x02000400), + 43: uint32(0x00100000), + 44: uint32(0x02100400), + 45: uint32(0x00000401), + 46: uint32(0x00100401), + 47: uint32(0x02100400), + 48: uint32(0x00000401), + 49: uint32(0x02000001), + 50: uint32(0x02100401), + 51: uint32(0x02100000), + 52: uint32(0x00100400), + 54: uint32(0x00000001), + 55: uint32(0x02100401), + 57: uint32(0x00100401), + 58: uint32(0x02100000), + 59: uint32(0x00000400), + 60: uint32(0x02000001), + 61: uint32(0x02000400), + 62: uint32(0x00000400), + 63: uint32(0x00100001), + }, + 7: { + 0: uint32(0x08000820), + 1: uint32(0x00000800), + 2: uint32(0x00020000), + 3: uint32(0x08020820), + 4: uint32(0x08000000), + 5: uint32(0x08000820), + 6: uint32(0x00000020), + 7: uint32(0x08000000), + 8: uint32(0x00020020), + 9: uint32(0x08020000), + 10: uint32(0x08020820), + 11: uint32(0x00020800), + 12: uint32(0x08020800), + 13: uint32(0x00020820), + 14: uint32(0x00000800), + 15: uint32(0x00000020), + 16: uint32(0x08020000), + 17: uint32(0x08000020), + 18: uint32(0x08000800), + 19: uint32(0x00000820), + 20: uint32(0x00020800), + 21: uint32(0x00020020), + 22: uint32(0x08020020), + 23: uint32(0x08020800), + 24: uint32(0x00000820), + 27: uint32(0x08020020), + 28: uint32(0x08000020), + 29: uint32(0x08000800), + 30: uint32(0x00020820), + 31: uint32(0x00020000), + 32: uint32(0x00020820), + 33: uint32(0x00020000), + 34: uint32(0x08020800), + 35: uint32(0x00000800), + 36: uint32(0x00000020), + 37: uint32(0x08020020), + 38: uint32(0x00000800), + 39: uint32(0x00020820), + 40: uint32(0x08000800), + 41: uint32(0x00000020), + 42: uint32(0x08000020), + 43: uint32(0x08020000), + 44: uint32(0x08020020), + 45: uint32(0x08000000), + 46: uint32(0x00020000), + 47: uint32(0x08000820), + 49: uint32(0x08020820), + 50: uint32(0x00020020), + 51: uint32(0x08000020), + 52: uint32(0x08020000), + 53: uint32(0x08000800), + 54: uint32(0x08000820), + 56: uint32(0x08020820), + 57: uint32(0x00020800), + 58: uint32(0x00020800), + 59: uint32(0x00000820), + 60: uint32(0x00000820), + 61: uint32(0x00020020), + 62: uint32(0x08000000), + 63: uint32(0x08020800), + }, +} +var _ip_maskl = [16][16]Tuint32_t{ + 0: { + 1: uint32(0x00010000), + 3: uint32(0x00010000), + 4: uint32(0x01000000), + 5: uint32(0x01010000), + 6: uint32(0x01000000), + 7: uint32(0x01010000), + 9: uint32(0x00010000), + 11: uint32(0x00010000), + 12: uint32(0x01000000), + 13: uint32(0x01010000), + 14: uint32(0x01000000), + 15: uint32(0x01010000), + }, + 1: { + 1: uint32(0x00000001), + 3: uint32(0x00000001), + 4: uint32(0x00000100), + 5: uint32(0x00000101), + 6: uint32(0x00000100), + 7: uint32(0x00000101), + 9: uint32(0x00000001), + 11: uint32(0x00000001), + 12: uint32(0x00000100), + 13: uint32(0x00000101), + 14: uint32(0x00000100), + 15: uint32(0x00000101), + }, + 2: { + 1: uint32(0x00020000), + 3: uint32(0x00020000), + 4: uint32(0x02000000), + 5: uint32(0x02020000), + 6: uint32(0x02000000), + 7: uint32(0x02020000), + 9: uint32(0x00020000), + 11: uint32(0x00020000), + 12: uint32(0x02000000), + 13: uint32(0x02020000), + 14: uint32(0x02000000), + 15: uint32(0x02020000), + }, + 3: { + 1: uint32(0x00000002), + 3: uint32(0x00000002), + 4: uint32(0x00000200), + 5: uint32(0x00000202), + 6: uint32(0x00000200), + 7: uint32(0x00000202), + 9: uint32(0x00000002), + 11: uint32(0x00000002), + 12: uint32(0x00000200), + 13: uint32(0x00000202), + 14: uint32(0x00000200), + 15: uint32(0x00000202), + }, + 4: { + 1: uint32(0x00040000), + 3: uint32(0x00040000), + 4: uint32(0x04000000), + 5: uint32(0x04040000), + 6: uint32(0x04000000), + 7: uint32(0x04040000), + 9: uint32(0x00040000), + 11: uint32(0x00040000), + 12: uint32(0x04000000), + 13: uint32(0x04040000), + 14: uint32(0x04000000), + 15: uint32(0x04040000), + }, + 5: { + 1: uint32(0x00000004), + 3: uint32(0x00000004), + 4: uint32(0x00000400), + 5: uint32(0x00000404), + 6: uint32(0x00000400), + 7: uint32(0x00000404), + 9: uint32(0x00000004), + 11: uint32(0x00000004), + 12: uint32(0x00000400), + 13: uint32(0x00000404), + 14: uint32(0x00000400), + 15: uint32(0x00000404), + }, + 6: { + 1: uint32(0x00080000), + 3: uint32(0x00080000), + 4: uint32(0x08000000), + 5: uint32(0x08080000), + 6: uint32(0x08000000), + 7: uint32(0x08080000), + 9: uint32(0x00080000), + 11: uint32(0x00080000), + 12: uint32(0x08000000), + 13: uint32(0x08080000), + 14: uint32(0x08000000), + 15: uint32(0x08080000), + }, + 7: { + 1: uint32(0x00000008), + 3: uint32(0x00000008), + 4: uint32(0x00000800), + 5: uint32(0x00000808), + 6: uint32(0x00000800), + 7: uint32(0x00000808), + 9: uint32(0x00000008), + 11: uint32(0x00000008), + 12: uint32(0x00000800), + 13: uint32(0x00000808), + 14: uint32(0x00000800), + 15: uint32(0x00000808), + }, + 8: { + 1: uint32(0x00100000), + 3: uint32(0x00100000), + 4: uint32(0x10000000), + 5: uint32(0x10100000), + 6: uint32(0x10000000), + 7: uint32(0x10100000), + 9: uint32(0x00100000), + 11: uint32(0x00100000), + 12: uint32(0x10000000), + 13: uint32(0x10100000), + 14: uint32(0x10000000), + 15: uint32(0x10100000), + }, + 9: { + 1: uint32(0x00000010), + 3: uint32(0x00000010), + 4: uint32(0x00001000), + 5: uint32(0x00001010), + 6: uint32(0x00001000), + 7: uint32(0x00001010), + 9: uint32(0x00000010), + 11: uint32(0x00000010), + 12: uint32(0x00001000), + 13: uint32(0x00001010), + 14: uint32(0x00001000), + 15: uint32(0x00001010), + }, + 10: { + 1: uint32(0x00200000), + 3: uint32(0x00200000), + 4: uint32(0x20000000), + 5: uint32(0x20200000), + 6: uint32(0x20000000), + 7: uint32(0x20200000), + 9: uint32(0x00200000), + 11: uint32(0x00200000), + 12: uint32(0x20000000), + 13: uint32(0x20200000), + 14: uint32(0x20000000), + 15: uint32(0x20200000), + }, + 11: { + 1: uint32(0x00000020), + 3: uint32(0x00000020), + 4: uint32(0x00002000), + 5: uint32(0x00002020), + 6: uint32(0x00002000), + 7: uint32(0x00002020), + 9: uint32(0x00000020), + 11: uint32(0x00000020), + 12: uint32(0x00002000), + 13: uint32(0x00002020), + 14: uint32(0x00002000), + 15: uint32(0x00002020), + }, + 12: { + 1: uint32(0x00400000), + 3: uint32(0x00400000), + 4: uint32(0x40000000), + 5: uint32(0x40400000), + 6: uint32(0x40000000), + 7: uint32(0x40400000), + 9: uint32(0x00400000), + 11: uint32(0x00400000), + 12: uint32(0x40000000), + 13: uint32(0x40400000), + 14: uint32(0x40000000), + 15: uint32(0x40400000), + }, + 13: { + 1: uint32(0x00000040), + 3: uint32(0x00000040), + 4: uint32(0x00004000), + 5: uint32(0x00004040), + 6: uint32(0x00004000), + 7: uint32(0x00004040), + 9: uint32(0x00000040), + 11: uint32(0x00000040), + 12: uint32(0x00004000), + 13: uint32(0x00004040), + 14: uint32(0x00004000), + 15: uint32(0x00004040), + }, + 14: { + 1: uint32(0x00800000), + 3: uint32(0x00800000), + 4: uint32(0x80000000), + 5: uint32(0x80800000), + 6: uint32(0x80000000), + 7: uint32(0x80800000), + 9: uint32(0x00800000), + 11: uint32(0x00800000), + 12: uint32(0x80000000), + 13: uint32(0x80800000), + 14: uint32(0x80000000), + 15: uint32(0x80800000), + }, + 15: { + 1: uint32(0x00000080), + 3: uint32(0x00000080), + 4: uint32(0x00008000), + 5: uint32(0x00008080), + 6: uint32(0x00008000), + 7: uint32(0x00008080), + 9: uint32(0x00000080), + 11: uint32(0x00000080), + 12: uint32(0x00008000), + 13: uint32(0x00008080), + 14: uint32(0x00008000), + 15: uint32(0x00008080), + }, +} +var _ip_maskr = [16][16]Tuint32_t{ + 0: { + 2: uint32(0x00010000), + 3: uint32(0x00010000), + 6: uint32(0x00010000), + 7: uint32(0x00010000), + 8: uint32(0x01000000), + 9: uint32(0x01000000), + 10: uint32(0x01010000), + 11: uint32(0x01010000), + 12: uint32(0x01000000), + 13: uint32(0x01000000), + 14: uint32(0x01010000), + 15: uint32(0x01010000), + }, + 1: { + 2: uint32(0x00000001), + 3: uint32(0x00000001), + 6: uint32(0x00000001), + 7: uint32(0x00000001), + 8: uint32(0x00000100), + 9: uint32(0x00000100), + 10: uint32(0x00000101), + 11: uint32(0x00000101), + 12: uint32(0x00000100), + 13: uint32(0x00000100), + 14: uint32(0x00000101), + 15: uint32(0x00000101), + }, + 2: { + 2: uint32(0x00020000), + 3: uint32(0x00020000), + 6: uint32(0x00020000), + 7: uint32(0x00020000), + 8: uint32(0x02000000), + 9: uint32(0x02000000), + 10: uint32(0x02020000), + 11: uint32(0x02020000), + 12: uint32(0x02000000), + 13: uint32(0x02000000), + 14: uint32(0x02020000), + 15: uint32(0x02020000), + }, + 3: { + 2: uint32(0x00000002), + 3: uint32(0x00000002), + 6: uint32(0x00000002), + 7: uint32(0x00000002), + 8: uint32(0x00000200), + 9: uint32(0x00000200), + 10: uint32(0x00000202), + 11: uint32(0x00000202), + 12: uint32(0x00000200), + 13: uint32(0x00000200), + 14: uint32(0x00000202), + 15: uint32(0x00000202), + }, + 4: { + 2: uint32(0x00040000), + 3: uint32(0x00040000), + 6: uint32(0x00040000), + 7: uint32(0x00040000), + 8: uint32(0x04000000), + 9: uint32(0x04000000), + 10: uint32(0x04040000), + 11: uint32(0x04040000), + 12: uint32(0x04000000), + 13: uint32(0x04000000), + 14: uint32(0x04040000), + 15: uint32(0x04040000), + }, + 5: { + 2: uint32(0x00000004), + 3: uint32(0x00000004), + 6: uint32(0x00000004), + 7: uint32(0x00000004), + 8: uint32(0x00000400), + 9: uint32(0x00000400), + 10: uint32(0x00000404), + 11: uint32(0x00000404), + 12: uint32(0x00000400), + 13: uint32(0x00000400), + 14: uint32(0x00000404), + 15: uint32(0x00000404), + }, + 6: { + 2: uint32(0x00080000), + 3: uint32(0x00080000), + 6: uint32(0x00080000), + 7: uint32(0x00080000), + 8: uint32(0x08000000), + 9: uint32(0x08000000), + 10: uint32(0x08080000), + 11: uint32(0x08080000), + 12: uint32(0x08000000), + 13: uint32(0x08000000), + 14: uint32(0x08080000), + 15: uint32(0x08080000), + }, + 7: { + 2: uint32(0x00000008), + 3: uint32(0x00000008), + 6: uint32(0x00000008), + 7: uint32(0x00000008), + 8: uint32(0x00000800), + 9: uint32(0x00000800), + 10: uint32(0x00000808), + 11: uint32(0x00000808), + 12: uint32(0x00000800), + 13: uint32(0x00000800), + 14: uint32(0x00000808), + 15: uint32(0x00000808), + }, + 8: { + 2: uint32(0x00100000), + 3: uint32(0x00100000), + 6: uint32(0x00100000), + 7: uint32(0x00100000), + 8: uint32(0x10000000), + 9: uint32(0x10000000), + 10: uint32(0x10100000), + 11: uint32(0x10100000), + 12: uint32(0x10000000), + 13: uint32(0x10000000), + 14: uint32(0x10100000), + 15: uint32(0x10100000), + }, + 9: { + 2: uint32(0x00000010), + 3: uint32(0x00000010), + 6: uint32(0x00000010), + 7: uint32(0x00000010), + 8: uint32(0x00001000), + 9: uint32(0x00001000), + 10: uint32(0x00001010), + 11: uint32(0x00001010), + 12: uint32(0x00001000), + 13: uint32(0x00001000), + 14: uint32(0x00001010), + 15: uint32(0x00001010), + }, + 10: { + 2: uint32(0x00200000), + 3: uint32(0x00200000), + 6: uint32(0x00200000), + 7: uint32(0x00200000), + 8: uint32(0x20000000), + 9: uint32(0x20000000), + 10: uint32(0x20200000), + 11: uint32(0x20200000), + 12: uint32(0x20000000), + 13: uint32(0x20000000), + 14: uint32(0x20200000), + 15: uint32(0x20200000), + }, + 11: { + 2: uint32(0x00000020), + 3: uint32(0x00000020), + 6: uint32(0x00000020), + 7: uint32(0x00000020), + 8: uint32(0x00002000), + 9: uint32(0x00002000), + 10: uint32(0x00002020), + 11: uint32(0x00002020), + 12: uint32(0x00002000), + 13: uint32(0x00002000), + 14: uint32(0x00002020), + 15: uint32(0x00002020), + }, + 12: { + 2: uint32(0x00400000), + 3: uint32(0x00400000), + 6: uint32(0x00400000), + 7: uint32(0x00400000), + 8: uint32(0x40000000), + 9: uint32(0x40000000), + 10: uint32(0x40400000), + 11: uint32(0x40400000), + 12: uint32(0x40000000), + 13: uint32(0x40000000), + 14: uint32(0x40400000), + 15: uint32(0x40400000), + }, + 13: { + 2: uint32(0x00000040), + 3: uint32(0x00000040), + 6: uint32(0x00000040), + 7: uint32(0x00000040), + 8: uint32(0x00004000), + 9: uint32(0x00004000), + 10: uint32(0x00004040), + 11: uint32(0x00004040), + 12: uint32(0x00004000), + 13: uint32(0x00004000), + 14: uint32(0x00004040), + 15: uint32(0x00004040), + }, + 14: { + 2: uint32(0x00800000), + 3: uint32(0x00800000), + 6: uint32(0x00800000), + 7: uint32(0x00800000), + 8: uint32(0x80000000), + 9: uint32(0x80000000), + 10: uint32(0x80800000), + 11: uint32(0x80800000), + 12: uint32(0x80000000), + 13: uint32(0x80000000), + 14: uint32(0x80800000), + 15: uint32(0x80800000), + }, + 15: { + 2: uint32(0x00000080), + 3: uint32(0x00000080), + 6: uint32(0x00000080), + 7: uint32(0x00000080), + 8: uint32(0x00008000), + 9: uint32(0x00008000), + 10: uint32(0x00008080), + 11: uint32(0x00008080), + 12: uint32(0x00008000), + 13: uint32(0x00008000), + 14: uint32(0x00008080), + 15: uint32(0x00008080), + }, +} +var _fp_maskl = [8][16]Tuint32_t{ + 0: { + 1: uint32(0x40000000), + 2: uint32(0x00400000), + 3: uint32(0x40400000), + 4: uint32(0x00004000), + 5: uint32(0x40004000), + 6: uint32(0x00404000), + 7: uint32(0x40404000), + 8: uint32(0x00000040), + 9: uint32(0x40000040), + 10: uint32(0x00400040), + 11: uint32(0x40400040), + 12: uint32(0x00004040), + 13: uint32(0x40004040), + 14: uint32(0x00404040), + 15: uint32(0x40404040), + }, + 1: { + 1: uint32(0x10000000), + 2: uint32(0x00100000), + 3: uint32(0x10100000), + 4: uint32(0x00001000), + 5: uint32(0x10001000), + 6: uint32(0x00101000), + 7: uint32(0x10101000), + 8: uint32(0x00000010), + 9: uint32(0x10000010), + 10: uint32(0x00100010), + 11: uint32(0x10100010), + 12: uint32(0x00001010), + 13: uint32(0x10001010), + 14: uint32(0x00101010), + 15: uint32(0x10101010), + }, + 2: { + 1: uint32(0x04000000), + 2: uint32(0x00040000), + 3: uint32(0x04040000), + 4: uint32(0x00000400), + 5: uint32(0x04000400), + 6: uint32(0x00040400), + 7: uint32(0x04040400), + 8: uint32(0x00000004), + 9: uint32(0x04000004), + 10: uint32(0x00040004), + 11: uint32(0x04040004), + 12: uint32(0x00000404), + 13: uint32(0x04000404), + 14: uint32(0x00040404), + 15: uint32(0x04040404), + }, + 3: { + 1: uint32(0x01000000), + 2: uint32(0x00010000), + 3: uint32(0x01010000), + 4: uint32(0x00000100), + 5: uint32(0x01000100), + 6: uint32(0x00010100), + 7: uint32(0x01010100), + 8: uint32(0x00000001), + 9: uint32(0x01000001), + 10: uint32(0x00010001), + 11: uint32(0x01010001), + 12: uint32(0x00000101), + 13: uint32(0x01000101), + 14: uint32(0x00010101), + 15: uint32(0x01010101), + }, + 4: { + 1: uint32(0x80000000), + 2: uint32(0x00800000), + 3: uint32(0x80800000), + 4: uint32(0x00008000), + 5: uint32(0x80008000), + 6: uint32(0x00808000), + 7: uint32(0x80808000), + 8: uint32(0x00000080), + 9: uint32(0x80000080), + 10: uint32(0x00800080), + 11: uint32(0x80800080), + 12: uint32(0x00008080), + 13: uint32(0x80008080), + 14: uint32(0x00808080), + 15: uint32(0x80808080), + }, + 5: { + 1: uint32(0x20000000), + 2: uint32(0x00200000), + 3: uint32(0x20200000), + 4: uint32(0x00002000), + 5: uint32(0x20002000), + 6: uint32(0x00202000), + 7: uint32(0x20202000), + 8: uint32(0x00000020), + 9: uint32(0x20000020), + 10: uint32(0x00200020), + 11: uint32(0x20200020), + 12: uint32(0x00002020), + 13: uint32(0x20002020), + 14: uint32(0x00202020), + 15: uint32(0x20202020), + }, + 6: { + 1: uint32(0x08000000), + 2: uint32(0x00080000), + 3: uint32(0x08080000), + 4: uint32(0x00000800), + 5: uint32(0x08000800), + 6: uint32(0x00080800), + 7: uint32(0x08080800), + 8: uint32(0x00000008), + 9: uint32(0x08000008), + 10: uint32(0x00080008), + 11: uint32(0x08080008), + 12: uint32(0x00000808), + 13: uint32(0x08000808), + 14: uint32(0x00080808), + 15: uint32(0x08080808), + }, + 7: { + 1: uint32(0x02000000), + 2: uint32(0x00020000), + 3: uint32(0x02020000), + 4: uint32(0x00000200), + 5: uint32(0x02000200), + 6: uint32(0x00020200), + 7: uint32(0x02020200), + 8: uint32(0x00000002), + 9: uint32(0x02000002), + 10: uint32(0x00020002), + 11: uint32(0x02020002), + 12: uint32(0x00000202), + 13: uint32(0x02000202), + 14: uint32(0x00020202), + 15: uint32(0x02020202), + }, +} +var _fp_maskr = [8][16]Tuint32_t{ + 0: { + 1: uint32(0x40000000), + 2: uint32(0x00400000), + 3: uint32(0x40400000), + 4: uint32(0x00004000), + 5: uint32(0x40004000), + 6: uint32(0x00404000), + 7: uint32(0x40404000), + 8: uint32(0x00000040), + 9: uint32(0x40000040), + 10: uint32(0x00400040), + 11: uint32(0x40400040), + 12: uint32(0x00004040), + 13: uint32(0x40004040), + 14: uint32(0x00404040), + 15: uint32(0x40404040), + }, + 1: { + 1: uint32(0x10000000), + 2: uint32(0x00100000), + 3: uint32(0x10100000), + 4: uint32(0x00001000), + 5: uint32(0x10001000), + 6: uint32(0x00101000), + 7: uint32(0x10101000), + 8: uint32(0x00000010), + 9: uint32(0x10000010), + 10: uint32(0x00100010), + 11: uint32(0x10100010), + 12: uint32(0x00001010), + 13: uint32(0x10001010), + 14: uint32(0x00101010), + 15: uint32(0x10101010), + }, + 2: { + 1: uint32(0x04000000), + 2: uint32(0x00040000), + 3: uint32(0x04040000), + 4: uint32(0x00000400), + 5: uint32(0x04000400), + 6: uint32(0x00040400), + 7: uint32(0x04040400), + 8: uint32(0x00000004), + 9: uint32(0x04000004), + 10: uint32(0x00040004), + 11: uint32(0x04040004), + 12: uint32(0x00000404), + 13: uint32(0x04000404), + 14: uint32(0x00040404), + 15: uint32(0x04040404), + }, + 3: { + 1: uint32(0x01000000), + 2: uint32(0x00010000), + 3: uint32(0x01010000), + 4: uint32(0x00000100), + 5: uint32(0x01000100), + 6: uint32(0x00010100), + 7: uint32(0x01010100), + 8: uint32(0x00000001), + 9: uint32(0x01000001), + 10: uint32(0x00010001), + 11: uint32(0x01010001), + 12: uint32(0x00000101), + 13: uint32(0x01000101), + 14: uint32(0x00010101), + 15: uint32(0x01010101), + }, + 4: { + 1: uint32(0x80000000), + 2: uint32(0x00800000), + 3: uint32(0x80800000), + 4: uint32(0x00008000), + 5: uint32(0x80008000), + 6: uint32(0x00808000), + 7: uint32(0x80808000), + 8: uint32(0x00000080), + 9: uint32(0x80000080), + 10: uint32(0x00800080), + 11: uint32(0x80800080), + 12: uint32(0x00008080), + 13: uint32(0x80008080), + 14: uint32(0x00808080), + 15: uint32(0x80808080), + }, + 5: { + 1: uint32(0x20000000), + 2: uint32(0x00200000), + 3: uint32(0x20200000), + 4: uint32(0x00002000), + 5: uint32(0x20002000), + 6: uint32(0x00202000), + 7: uint32(0x20202000), + 8: uint32(0x00000020), + 9: uint32(0x20000020), + 10: uint32(0x00200020), + 11: uint32(0x20200020), + 12: uint32(0x00002020), + 13: uint32(0x20002020), + 14: uint32(0x00202020), + 15: uint32(0x20202020), + }, + 6: { + 1: uint32(0x08000000), + 2: uint32(0x00080000), + 3: uint32(0x08080000), + 4: uint32(0x00000800), + 5: uint32(0x08000800), + 6: uint32(0x00080800), + 7: uint32(0x08080800), + 8: uint32(0x00000008), + 9: uint32(0x08000008), + 10: uint32(0x00080008), + 11: uint32(0x08080008), + 12: uint32(0x00000808), + 13: uint32(0x08000808), + 14: uint32(0x00080808), + 15: uint32(0x08080808), + }, + 7: { + 1: uint32(0x02000000), + 2: uint32(0x00020000), + 3: uint32(0x02020000), + 4: uint32(0x00000200), + 5: uint32(0x02000200), + 6: uint32(0x00020200), + 7: uint32(0x02020200), + 8: uint32(0x00000002), + 9: uint32(0x02000002), + 10: uint32(0x00020002), + 11: uint32(0x02020002), + 12: uint32(0x00000202), + 13: uint32(0x02000202), + 14: uint32(0x00020202), + 15: uint32(0x02020202), + }, +} +var _key_perm_maskl = [8][16]Tuint32_t{ + 0: { + 2: uint32(0x00000010), + 3: uint32(0x00000010), + 4: uint32(0x00001000), + 5: uint32(0x00001000), + 6: uint32(0x00001010), + 7: uint32(0x00001010), + 8: uint32(0x00100000), + 9: uint32(0x00100000), + 10: uint32(0x00100010), + 11: uint32(0x00100010), + 12: uint32(0x00101000), + 13: uint32(0x00101000), + 14: uint32(0x00101010), + 15: uint32(0x00101010), + }, + 1: { + 2: uint32(0x00000020), + 3: uint32(0x00000020), + 4: uint32(0x00002000), + 5: uint32(0x00002000), + 6: uint32(0x00002020), + 7: uint32(0x00002020), + 8: uint32(0x00200000), + 9: uint32(0x00200000), + 10: uint32(0x00200020), + 11: uint32(0x00200020), + 12: uint32(0x00202000), + 13: uint32(0x00202000), + 14: uint32(0x00202020), + 15: uint32(0x00202020), + }, + 2: { + 2: uint32(0x00000040), + 3: uint32(0x00000040), + 4: uint32(0x00004000), + 5: uint32(0x00004000), + 6: uint32(0x00004040), + 7: uint32(0x00004040), + 8: uint32(0x00400000), + 9: uint32(0x00400000), + 10: uint32(0x00400040), + 11: uint32(0x00400040), + 12: uint32(0x00404000), + 13: uint32(0x00404000), + 14: uint32(0x00404040), + 15: uint32(0x00404040), + }, + 3: { + 2: uint32(0x00000080), + 3: uint32(0x00000080), + 4: uint32(0x00008000), + 5: uint32(0x00008000), + 6: uint32(0x00008080), + 7: uint32(0x00008080), + 8: uint32(0x00800000), + 9: uint32(0x00800000), + 10: uint32(0x00800080), + 11: uint32(0x00800080), + 12: uint32(0x00808000), + 13: uint32(0x00808000), + 14: uint32(0x00808080), + 15: uint32(0x00808080), + }, + 4: { + 1: uint32(0x00000001), + 2: uint32(0x00000100), + 3: uint32(0x00000101), + 4: uint32(0x00010000), + 5: uint32(0x00010001), + 6: uint32(0x00010100), + 7: uint32(0x00010101), + 8: uint32(0x01000000), + 9: uint32(0x01000001), + 10: uint32(0x01000100), + 11: uint32(0x01000101), + 12: uint32(0x01010000), + 13: uint32(0x01010001), + 14: uint32(0x01010100), + 15: uint32(0x01010101), + }, + 5: { + 1: uint32(0x00000002), + 2: uint32(0x00000200), + 3: uint32(0x00000202), + 4: uint32(0x00020000), + 5: uint32(0x00020002), + 6: uint32(0x00020200), + 7: uint32(0x00020202), + 8: uint32(0x02000000), + 9: uint32(0x02000002), + 10: uint32(0x02000200), + 11: uint32(0x02000202), + 12: uint32(0x02020000), + 13: uint32(0x02020002), + 14: uint32(0x02020200), + 15: uint32(0x02020202), + }, + 6: { + 1: uint32(0x00000004), + 2: uint32(0x00000400), + 3: uint32(0x00000404), + 4: uint32(0x00040000), + 5: uint32(0x00040004), + 6: uint32(0x00040400), + 7: uint32(0x00040404), + 8: uint32(0x04000000), + 9: uint32(0x04000004), + 10: uint32(0x04000400), + 11: uint32(0x04000404), + 12: uint32(0x04040000), + 13: uint32(0x04040004), + 14: uint32(0x04040400), + 15: uint32(0x04040404), + }, + 7: { + 1: uint32(0x00000008), + 2: uint32(0x00000800), + 3: uint32(0x00000808), + 4: uint32(0x00080000), + 5: uint32(0x00080008), + 6: uint32(0x00080800), + 7: uint32(0x00080808), + 8: uint32(0x08000000), + 9: uint32(0x08000008), + 10: uint32(0x08000800), + 11: uint32(0x08000808), + 12: uint32(0x08080000), + 13: uint32(0x08080008), + 14: uint32(0x08080800), + 15: uint32(0x08080808), + }, +} +var _key_perm_maskr = [12][16]Tuint32_t{ + 0: { + 1: uint32(0x00000001), + 3: uint32(0x00000001), + 5: uint32(0x00000001), + 7: uint32(0x00000001), + 9: uint32(0x00000001), + 11: uint32(0x00000001), + 13: uint32(0x00000001), + 15: uint32(0x00000001), + }, + 1: { + 2: uint32(0x00100000), + 3: uint32(0x00100000), + 4: uint32(0x00001000), + 5: uint32(0x00001000), + 6: uint32(0x00101000), + 7: uint32(0x00101000), + 8: uint32(0x00000010), + 9: uint32(0x00000010), + 10: uint32(0x00100010), + 11: uint32(0x00100010), + 12: uint32(0x00001010), + 13: uint32(0x00001010), + 14: uint32(0x00101010), + 15: uint32(0x00101010), + }, + 2: { + 1: uint32(0x00000002), + 3: uint32(0x00000002), + 5: uint32(0x00000002), + 7: uint32(0x00000002), + 9: uint32(0x00000002), + 11: uint32(0x00000002), + 13: uint32(0x00000002), + 15: uint32(0x00000002), + }, + 3: { + 2: uint32(0x00200000), + 3: uint32(0x00200000), + 4: uint32(0x00002000), + 5: uint32(0x00002000), + 6: uint32(0x00202000), + 7: uint32(0x00202000), + 8: uint32(0x00000020), + 9: uint32(0x00000020), + 10: uint32(0x00200020), + 11: uint32(0x00200020), + 12: uint32(0x00002020), + 13: uint32(0x00002020), + 14: uint32(0x00202020), + 15: uint32(0x00202020), + }, + 4: { + 1: uint32(0x00000004), + 3: uint32(0x00000004), + 5: uint32(0x00000004), + 7: uint32(0x00000004), + 9: uint32(0x00000004), + 11: uint32(0x00000004), + 13: uint32(0x00000004), + 15: uint32(0x00000004), + }, + 5: { + 2: uint32(0x00400000), + 3: uint32(0x00400000), + 4: uint32(0x00004000), + 5: uint32(0x00004000), + 6: uint32(0x00404000), + 7: uint32(0x00404000), + 8: uint32(0x00000040), + 9: uint32(0x00000040), + 10: uint32(0x00400040), + 11: uint32(0x00400040), + 12: uint32(0x00004040), + 13: uint32(0x00004040), + 14: uint32(0x00404040), + 15: uint32(0x00404040), + }, + 6: { + 1: uint32(0x00000008), + 3: uint32(0x00000008), + 5: uint32(0x00000008), + 7: uint32(0x00000008), + 9: uint32(0x00000008), + 11: uint32(0x00000008), + 13: uint32(0x00000008), + 15: uint32(0x00000008), + }, + 7: { + 2: uint32(0x00800000), + 3: uint32(0x00800000), + 4: uint32(0x00008000), + 5: uint32(0x00008000), + 6: uint32(0x00808000), + 7: uint32(0x00808000), + 8: uint32(0x00000080), + 9: uint32(0x00000080), + 10: uint32(0x00800080), + 11: uint32(0x00800080), + 12: uint32(0x00008080), + 13: uint32(0x00008080), + 14: uint32(0x00808080), + 15: uint32(0x00808080), + }, + 8: { + 2: uint32(0x01000000), + 3: uint32(0x01000000), + 4: uint32(0x00010000), + 5: uint32(0x00010000), + 6: uint32(0x01010000), + 7: uint32(0x01010000), + 8: uint32(0x00000100), + 9: uint32(0x00000100), + 10: uint32(0x01000100), + 11: uint32(0x01000100), + 12: uint32(0x00010100), + 13: uint32(0x00010100), + 14: uint32(0x01010100), + 15: uint32(0x01010100), + }, + 9: { + 2: uint32(0x02000000), + 3: uint32(0x02000000), + 4: uint32(0x00020000), + 5: uint32(0x00020000), + 6: uint32(0x02020000), + 7: uint32(0x02020000), + 8: uint32(0x00000200), + 9: uint32(0x00000200), + 10: uint32(0x02000200), + 11: uint32(0x02000200), + 12: uint32(0x00020200), + 13: uint32(0x00020200), + 14: uint32(0x02020200), + 15: uint32(0x02020200), + }, + 10: { + 2: uint32(0x04000000), + 3: uint32(0x04000000), + 4: uint32(0x00040000), + 5: uint32(0x00040000), + 6: uint32(0x04040000), + 7: uint32(0x04040000), + 8: uint32(0x00000400), + 9: uint32(0x00000400), + 10: uint32(0x04000400), + 11: uint32(0x04000400), + 12: uint32(0x00040400), + 13: uint32(0x00040400), + 14: uint32(0x04040400), + 15: uint32(0x04040400), + }, + 11: { + 2: uint32(0x08000000), + 3: uint32(0x08000000), + 4: uint32(0x00080000), + 5: uint32(0x00080000), + 6: uint32(0x08080000), + 7: uint32(0x08080000), + 8: uint32(0x00000800), + 9: uint32(0x00000800), + 10: uint32(0x08000800), + 11: uint32(0x08000800), + 12: uint32(0x00080800), + 13: uint32(0x00080800), + 14: uint32(0x08080800), + 15: uint32(0x08080800), + }, +} +var _comp_maskl0 = [4][8]Tuint32_t{ + 0: { + 1: uint32(0x00020000), + 2: uint32(0x00000001), + 3: uint32(0x00020001), + 4: uint32(0x00080000), + 5: uint32(0x000a0000), + 6: uint32(0x00080001), + 7: uint32(0x000a0001), + }, + 1: { + 1: uint32(0x00001000), + 3: uint32(0x00001000), + 4: uint32(0x00000040), + 5: uint32(0x00001040), + 6: uint32(0x00000040), + 7: uint32(0x00001040), + }, + 2: { + 1: uint32(0x00400000), + 2: uint32(0x00000020), + 3: uint32(0x00400020), + 4: uint32(0x00008000), + 5: uint32(0x00408000), + 6: uint32(0x00008020), + 7: uint32(0x00408020), + }, + 3: { + 1: uint32(0x00100000), + 2: uint32(0x00000800), + 3: uint32(0x00100800), + 5: uint32(0x00100000), + 6: uint32(0x00000800), + 7: uint32(0x00100800), + }, +} +var _comp_maskr0 = [4][8]Tuint32_t{ + 0: { + 1: uint32(0x00200000), + 2: uint32(0x00020000), + 3: uint32(0x00220000), + 4: uint32(0x00000002), + 5: uint32(0x00200002), + 6: uint32(0x00020002), + 7: uint32(0x00220002), + }, + 1: { + 2: uint32(0x00100000), + 3: uint32(0x00100000), + 4: uint32(0x00000004), + 5: uint32(0x00000004), + 6: uint32(0x00100004), + 7: uint32(0x00100004), + }, + 2: { + 1: uint32(0x00004000), + 2: uint32(0x00000800), + 3: uint32(0x00004800), + 5: uint32(0x00004000), + 6: uint32(0x00000800), + 7: uint32(0x00004800), + }, + 3: { + 1: uint32(0x00400000), + 2: uint32(0x00008000), + 3: uint32(0x00408000), + 4: uint32(0x00000008), + 5: uint32(0x00400008), + 6: uint32(0x00008008), + 7: uint32(0x00408008), + }, +} +var _comp_maskl1 = [4][16]Tuint32_t{ + 0: { + 1: uint32(0x00000010), + 2: uint32(0x00004000), + 3: uint32(0x00004010), + 4: uint32(0x00040000), + 5: uint32(0x00040010), + 6: uint32(0x00044000), + 7: uint32(0x00044010), + 8: uint32(0x00000100), + 9: uint32(0x00000110), + 10: uint32(0x00004100), + 11: uint32(0x00004110), + 12: uint32(0x00040100), + 13: uint32(0x00040110), + 14: uint32(0x00044100), + 15: uint32(0x00044110), + }, + 1: { + 1: uint32(0x00800000), + 2: uint32(0x00000002), + 3: uint32(0x00800002), + 4: uint32(0x00000200), + 5: uint32(0x00800200), + 6: uint32(0x00000202), + 7: uint32(0x00800202), + 8: uint32(0x00200000), + 9: uint32(0x00a00000), + 10: uint32(0x00200002), + 11: uint32(0x00a00002), + 12: uint32(0x00200200), + 13: uint32(0x00a00200), + 14: uint32(0x00200202), + 15: uint32(0x00a00202), + }, + 2: { + 1: uint32(0x00002000), + 2: uint32(0x00000004), + 3: uint32(0x00002004), + 4: uint32(0x00000400), + 5: uint32(0x00002400), + 6: uint32(0x00000404), + 7: uint32(0x00002404), + 9: uint32(0x00002000), + 10: uint32(0x00000004), + 11: uint32(0x00002004), + 12: uint32(0x00000400), + 13: uint32(0x00002400), + 14: uint32(0x00000404), + 15: uint32(0x00002404), + }, + 3: { + 1: uint32(0x00010000), + 2: uint32(0x00000008), + 3: uint32(0x00010008), + 4: uint32(0x00000080), + 5: uint32(0x00010080), + 6: uint32(0x00000088), + 7: uint32(0x00010088), + 9: uint32(0x00010000), + 10: uint32(0x00000008), + 11: uint32(0x00010008), + 12: uint32(0x00000080), + 13: uint32(0x00010080), + 14: uint32(0x00000088), + 15: uint32(0x00010088), + }, +} +var _comp_maskr1 = [4][16]Tuint32_t{ + 0: { + 2: uint32(0x00000080), + 3: uint32(0x00000080), + 4: uint32(0x00002000), + 5: uint32(0x00002000), + 6: uint32(0x00002080), + 7: uint32(0x00002080), + 8: uint32(0x00000001), + 9: uint32(0x00000001), + 10: uint32(0x00000081), + 11: uint32(0x00000081), + 12: uint32(0x00002001), + 13: uint32(0x00002001), + 14: uint32(0x00002081), + 15: uint32(0x00002081), + }, + 1: { + 1: uint32(0x00000010), + 2: uint32(0x00800000), + 3: uint32(0x00800010), + 4: uint32(0x00010000), + 5: uint32(0x00010010), + 6: uint32(0x00810000), + 7: uint32(0x00810010), + 8: uint32(0x00000200), + 9: uint32(0x00000210), + 10: uint32(0x00800200), + 11: uint32(0x00800210), + 12: uint32(0x00010200), + 13: uint32(0x00010210), + 14: uint32(0x00810200), + 15: uint32(0x00810210), + }, + 2: { + 1: uint32(0x00000400), + 2: uint32(0x00001000), + 3: uint32(0x00001400), + 4: uint32(0x00080000), + 5: uint32(0x00080400), + 6: uint32(0x00081000), + 7: uint32(0x00081400), + 8: uint32(0x00000020), + 9: uint32(0x00000420), + 10: uint32(0x00001020), + 11: uint32(0x00001420), + 12: uint32(0x00080020), + 13: uint32(0x00080420), + 14: uint32(0x00081020), + 15: uint32(0x00081420), + }, + 3: { + 1: uint32(0x00000100), + 2: uint32(0x00040000), + 3: uint32(0x00040100), + 5: uint32(0x00000100), + 6: uint32(0x00040000), + 7: uint32(0x00040100), + 8: uint32(0x00000040), + 9: uint32(0x00000140), + 10: uint32(0x00040040), + 11: uint32(0x00040140), + 12: uint32(0x00000040), + 13: uint32(0x00000140), + 14: uint32(0x00040040), + 15: uint32(0x00040140), + }, +} + +var _ascii64 = [65]uint8{'.', '/', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'} + +/* 0000000000111111111122222222223333333333444444444455555555556666 */ +/* 0123456789012345678901234567890123456789012345678901234567890123 */ + +// C documentation +// +// /* +// * We match the behavior of UFC-crypt on systems where "char" is signed by +// * default (the majority), regardless of char's signedness on our system. +// */ +func _ascii_to_bin(tls *TLS, ch int32) (r Tuint32_t) { + var retval, sch, v1 int32 + _, _, _ = retval, sch, v1 + if ch < int32(0x80) { + v1 = ch + } else { + v1 = -(int32(0x100) - ch) + } + sch = v1 + retval = sch - int32('.') + if sch >= int32('A') { + retval = sch - (Int32FromUint8('A') - Int32FromInt32(12)) + if sch >= int32('a') { + retval = sch - (Int32FromUint8('a') - Int32FromInt32(38)) + } + } + retval = retval & int32(0x3f) + return Uint32FromInt32(retval) +} + +// C documentation +// +// /* +// * When we choose to "support" invalid salts, nevertheless disallow those +// * containing characters that would violate the passwd file format. +// */ +func _ascii_is_unsafe(tls *TLS, ch uint8) (r int32) { + return BoolInt32(!(ch != 0) || Int32FromUint8(ch) == int32('\n') || Int32FromUint8(ch) == int32(':')) +} + +func _setup_salt(tls *TLS, salt Tuint32_t) (r Tuint32_t) { + var i uint32 + var obit, saltbit, saltbits Tuint32_t + _, _, _, _ = i, obit, saltbit, saltbits + saltbits = uint32(0) + saltbit = uint32(1) + obit = uint32(0x800000) + i = uint32(0) + for { + if !(i < uint32(24)) { + break + } + if salt&saltbit != 0 { + saltbits = saltbits | obit + } + saltbit = saltbit << uint32(1) + obit = obit >> uint32(1) + goto _1 + _1: + ; + i = i + 1 + } + return saltbits +} + +func X__des_setkey(tls *TLS, key uintptr, ekey uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v ekey=%v, (%v:)", tls, key, ekey, origin(2)) + } + var i, ibit, j, round, shifts uint32 + var k0, k1, kl, kr, rawkey0, rawkey1, t0, t1, v1 Tuint32_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = i, ibit, j, k0, k1, kl, kr, rawkey0, rawkey1, round, shifts, t0, t1, v1 + rawkey0 = uint32(**(**uint8)(__ccgo_up(key + 3))) | uint32(**(**uint8)(__ccgo_up(key + 2)))<>ibit&uint32(0xf))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_key_perm_maskl)) + uintptr(i+uint32(4))*64 + uintptr(rawkey1>>ibit&uint32(0xf))*4))) + k1 = k1 | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_key_perm_maskr)) + uintptr(j)*64 + uintptr(rawkey0>>ibit&uint32(0xf))*4)) + ibit = ibit - uint32(4) + k1 = k1 | (**(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_key_perm_maskr)) + uintptr(j+uint32(1))*64 + uintptr(rawkey0>>ibit&uint32(0xf))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_key_perm_maskr)) + uintptr(i+uint32(8))*64 + uintptr(rawkey1>>ibit&uint32(0xf))*4))) + goto _2 + _2: + ; + i = i + 1 + ibit = ibit - uint32(4) + } + /* + * Rotate subkeys and do compression permutation. + */ + shifts = uint32(0) + round = uint32(0) + for { + if !(round < uint32(16)) { + break + } + shifts = shifts + uint32(_key_shifts[round]) + t0 = k0<>(Uint32FromInt32(28)-shifts) + t1 = k1<>(Uint32FromInt32(28)-shifts) + v1 = Uint32FromInt32(0) + kr = v1 + kl = v1 + ibit = uint32(25) + i = uint32(0) + for { + if !(i < uint32(4)) { + break + } + kl = kl | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_comp_maskl0)) + uintptr(i)*32 + uintptr(t0>>ibit&uint32(7))*4)) + kr = kr | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_comp_maskr0)) + uintptr(i)*32 + uintptr(t1>>ibit&uint32(7))*4)) + ibit = ibit - uint32(4) + kl = kl | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_comp_maskl1)) + uintptr(i)*64 + uintptr(t0>>ibit&uint32(0xf))*4)) + kr = kr | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_comp_maskr1)) + uintptr(i)*64 + uintptr(t1>>ibit&uint32(0xf))*4)) + ibit = ibit - uint32(3) + goto _5 + _5: + ; + i = i + 1 + } + **(**Tuint32_t)(__ccgo_up(ekey + uintptr(round)*4)) = kl + **(**Tuint32_t)(__ccgo_up(ekey + 64 + uintptr(round)*4)) = kr + goto _3 + _3: + ; + round = round + 1 + } +} + +// C documentation +// +// /* +// * l_in, r_in, l_out, and r_out are in pseudo-"big-endian" format. +// */ +func X__do_des(tls *TLS, l_in Tuint32_t, r_in Tuint32_t, l_out uintptr, r_out uintptr, count Tuint32_t, saltbits Tuint32_t, ekey uintptr) { + if __ccgo_strace { + trc("tls=%v l_in=%v r_in=%v l_out=%v r_out=%v count=%v saltbits=%v ekey=%v, (%v:)", tls, l_in, r_in, l_out, r_out, count, saltbits, ekey, origin(2)) + } + var f, l, lo, r, r48l, r48r, ro, v1 Tuint32_t + var i, i1, ibit, ibit1, round, v4 uint32 + var kl, kr, v5 uintptr + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = f, i, i1, ibit, ibit1, kl, kr, l, lo, r, r48l, r48r, ro, round, v1, v4, v5 + /* + * Do initial permutation (IP). + */ + v1 = Uint32FromInt32(0) + r = v1 + l = v1 + if l_in|r_in != 0 { + i = uint32(0) + ibit = Uint32FromInt32(28) + for { + if !(i < uint32(8)) { + break + } + l = l | (**(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_ip_maskl)) + uintptr(i)*64 + uintptr(l_in>>ibit&uint32(0xf))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_ip_maskl)) + uintptr(i+uint32(8))*64 + uintptr(r_in>>ibit&uint32(0xf))*4))) + r = r | (**(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_ip_maskr)) + uintptr(i)*64 + uintptr(l_in>>ibit&uint32(0xf))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_ip_maskr)) + uintptr(i+uint32(8))*64 + uintptr(r_in>>ibit&uint32(0xf))*4))) + goto _2 + _2: + ; + i = i + 1 + ibit = ibit - uint32(4) + } + } + for { + v1 = count + count = count - 1 + if !(v1 != 0) { + break + } + /* + * Do each round. + */ + round = uint32(16) + kl = ekey + kr = ekey + 64 + for { + v4 = round + round = round - 1 + if !(v4 != 0) { + break + } + /* + * Expand R to 48 bits (simulate the E-box). + */ + r48l = r&uint32(0x00000001)<>int32(9) | r&uint32(0x1f800000)>>int32(11) | r&uint32(0x01f80000)>>int32(13) | r&uint32(0x001f8000)>>int32(15) + r48r = r&uint32(0x0001f800)<>int32(31) + /* + * Do salting for crypt() and friends, and + * XOR with the permuted key. + */ + f = (r48l ^ r48r) & saltbits + v5 = kl + kl += 4 + r48l = r48l ^ (f ^ **(**Tuint32_t)(__ccgo_up(v5))) + v5 = kr + kr += 4 + r48r = r48r ^ (f ^ **(**Tuint32_t)(__ccgo_up(v5))) + /* + * Do S-box lookups (which shrink it back to 32 bits) + * and do the P-box permutation at the same time. + */ + f = **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_psbox)) + uintptr(r48l>>int32(18))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_psbox)) + 1*256 + uintptr(r48l>>Int32FromInt32(12)&uint32(0x3f))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_psbox)) + 2*256 + uintptr(r48l>>Int32FromInt32(6)&uint32(0x3f))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_psbox)) + 3*256 + uintptr(r48l&uint32(0x3f))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_psbox)) + 4*256 + uintptr(r48r>>int32(18))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_psbox)) + 5*256 + uintptr(r48r>>Int32FromInt32(12)&uint32(0x3f))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_psbox)) + 6*256 + uintptr(r48r>>Int32FromInt32(6)&uint32(0x3f))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_psbox)) + 7*256 + uintptr(r48r&uint32(0x3f))*4)) + /* + * Now that we've permuted things, complete f(). + */ + f = f ^ l + l = r + r = f + } + r = l + l = f + } + /* + * Do final permutation (inverse of IP). + */ + v1 = Uint32FromInt32(0) + ro = v1 + lo = v1 + i1 = uint32(0) + ibit1 = Uint32FromInt32(28) + for { + if !(i1 < uint32(4)) { + break + } + ro = ro | (**(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_fp_maskr)) + uintptr(i1)*64 + uintptr(l>>ibit1&uint32(0xf))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_fp_maskr)) + uintptr(i1+uint32(4))*64 + uintptr(r>>ibit1&uint32(0xf))*4))) + ibit1 = ibit1 - uint32(4) + lo = lo | (**(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_fp_maskl)) + uintptr(i1)*64 + uintptr(l>>ibit1&uint32(0xf))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_fp_maskl)) + uintptr(i1+uint32(4))*64 + uintptr(r>>ibit1&uint32(0xf))*4))) + goto _8 + _8: + ; + i1 = i1 + 1 + ibit1 = ibit1 - uint32(4) + } + **(**Tuint32_t)(__ccgo_up(l_out)) = lo + **(**Tuint32_t)(__ccgo_up(r_out)) = ro +} + +func _des_cipher(tls *TLS, in uintptr, out uintptr, count Tuint32_t, saltbits Tuint32_t, ekey uintptr) { + bp := tls.Alloc(16) + defer tls.Free(16) + var rawl, rawr Tuint32_t + var _ /* l_out at bp+0 */ Tuint32_t + var _ /* r_out at bp+4 */ Tuint32_t + _, _ = rawl, rawr + rawl = uint32(**(**uint8)(__ccgo_up(in + 3))) | uint32(**(**uint8)(__ccgo_up(in + 2)))<> int32(24)) + **(**uint8)(__ccgo_up(out + 1)) = uint8(**(**Tuint32_t)(__ccgo_up(bp)) >> int32(16)) + **(**uint8)(__ccgo_up(out + 2)) = uint8(**(**Tuint32_t)(__ccgo_up(bp)) >> int32(8)) + **(**uint8)(__ccgo_up(out + 3)) = uint8(**(**Tuint32_t)(__ccgo_up(bp))) + **(**uint8)(__ccgo_up(out + 4)) = uint8(**(**Tuint32_t)(__ccgo_up(bp + 4)) >> int32(24)) + **(**uint8)(__ccgo_up(out + 5)) = uint8(**(**Tuint32_t)(__ccgo_up(bp + 4)) >> int32(16)) + **(**uint8)(__ccgo_up(out + 6)) = uint8(**(**Tuint32_t)(__ccgo_up(bp + 4)) >> int32(8)) + **(**uint8)(__ccgo_up(out + 7)) = uint8(**(**Tuint32_t)(__ccgo_up(bp + 4))) +} + +func __crypt_extended_r_uut(tls *TLS, _key uintptr, _setting uintptr, output uintptr) (r uintptr) { + bp := tls.Alloc(144) + defer tls.Free(144) + var count, l, salt, value, value1 Tuint32_t + var i uint32 + var key, p, q, setting, v1, v4, v5 uintptr + var _ /* ekey at bp+0 */ Texpanded_key + var _ /* keybuf at bp+128 */ [8]uint8 + var _ /* r0 at bp+136 */ Tuint32_t + var _ /* r1 at bp+140 */ Tuint32_t + _, _, _, _, _, _, _, _, _, _, _, _, _ = count, i, key, l, p, q, salt, setting, value, value1, v1, v4, v5 + key = _key + setting = _setting + /* + * Copy the key, shifting each character left by one bit and padding + * with zeroes. + */ + q = bp + 128 + for q <= bp+128+uintptr(Uint64FromInt64(8)-Uint64FromInt32(1)) { + v1 = q + q = q + 1 + **(**uint8)(__ccgo_up(v1)) = Uint8FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(key))) << int32(1)) + if **(**uint8)(__ccgo_up(key)) != 0 { + key = key + 1 + } + } + X__des_setkey(tls, bp+128, bp) + if Int32FromUint8(**(**uint8)(__ccgo_up(setting))) == int32('_') { + /* + * "new"-style: + * setting - underscore, 4 chars of count, 4 chars of salt + * key - unlimited characters + */ + i = uint32(1) + count = Uint32FromInt32(0) + for { + if !(i < uint32(5)) { + break + } + value = _ascii_to_bin(tls, Int32FromUint8(**(**uint8)(__ccgo_up(setting + uintptr(i))))) + if Int32FromUint8(_ascii64[value]) != Int32FromUint8(**(**uint8)(__ccgo_up(setting + uintptr(i)))) { + return UintptrFromInt32(0) + } + count = count | value<<((i-uint32(1))*uint32(6)) + goto _2 + _2: + ; + i = i + 1 + } + if !(count != 0) { + return UintptrFromInt32(0) + } + i = uint32(5) + salt = Uint32FromInt32(0) + for { + if !(i < uint32(9)) { + break + } + value1 = _ascii_to_bin(tls, Int32FromUint8(**(**uint8)(__ccgo_up(setting + uintptr(i))))) + if Int32FromUint8(_ascii64[value1]) != Int32FromUint8(**(**uint8)(__ccgo_up(setting + uintptr(i)))) { + return UintptrFromInt32(0) + } + salt = salt | value1<<((i-uint32(5))*uint32(6)) + goto _3 + _3: + ; + i = i + 1 + } + for **(**uint8)(__ccgo_up(key)) != 0 { + /* + * Encrypt the key with itself. + */ + _des_cipher(tls, bp+128, bp+128, uint32(1), uint32(0), bp) + /* + * And XOR with the next 8 characters of the key. + */ + q = bp + 128 + for q <= bp+128+uintptr(Uint64FromInt64(8)-Uint64FromInt32(1)) && **(**uint8)(__ccgo_up(key)) != 0 { + v4 = q + q = q + 1 + v1 = v4 + v5 = key + key = key + 1 + *(*uint8)(unsafe.Pointer(v1)) = uint8(int32(*(*uint8)(unsafe.Pointer(v1))) ^ Int32FromUint8(**(**uint8)(__ccgo_up(v5)))<> int32(8) + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l>>Int32FromInt32(18)&uint32(0x3f)] + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l>>Int32FromInt32(12)&uint32(0x3f)] + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l>>Int32FromInt32(6)&uint32(0x3f)] + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l&uint32(0x3f)] + l = **(**Tuint32_t)(__ccgo_up(bp + 136))<>Int32FromInt32(16)&uint32(0xffff) + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l>>Int32FromInt32(18)&uint32(0x3f)] + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l>>Int32FromInt32(12)&uint32(0x3f)] + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l>>Int32FromInt32(6)&uint32(0x3f)] + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l&uint32(0x3f)] + l = **(**Tuint32_t)(__ccgo_up(bp + 140)) << int32(2) + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l>>Int32FromInt32(12)&uint32(0x3f)] + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l>>Int32FromInt32(6)&uint32(0x3f)] + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l&uint32(0x3f)] + **(**uint8)(__ccgo_up(p)) = uint8(0) + return output +} + +func X__crypt_des(tls *TLS, key uintptr, setting uintptr, output uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v setting=%v output=%v, (%v:)", tls, key, setting, output, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var p, retval, test_hash, test_key, test_setting, v1 uintptr + var _ /* test_buf at bp+0 */ [21]uint8 + _, _, _, _, _, _ = p, retval, test_hash, test_key, test_setting, v1 + test_key = __ccgo_ts + 72 + test_setting = __ccgo_ts + 93 + test_hash = __ccgo_ts + 103 + if Int32FromUint8(**(**uint8)(__ccgo_up(setting))) != int32('_') { + test_setting = __ccgo_ts + 124 + test_hash = __ccgo_ts + 127 + } + /* + * Hash the supplied password. + */ + retval = __crypt_extended_r_uut(tls, key, setting, output) + /* + * Perform a quick self-test. It is important that we make both calls + * to _crypt_extended_r_uut() from the same scope such that they likely + * use the same stack locations, which makes the second call overwrite + * the first call's sensitive data on the stack and makes it more + * likely that any alignment related issues would be detected. + */ + p = __crypt_extended_r_uut(tls, test_key, test_setting, bp) + if p != 0 && !(Xstrcmp(tls, p, test_hash) != 0) && retval != 0 { + return retval + } + if Int32FromUint8(**(**uint8)(__ccgo_up(setting))) == int32('*') { + v1 = __ccgo_ts + 141 + } else { + v1 = __ccgo_ts + 70 + } + return v1 +} + +const KEY_MAX = 30000 +const SALT_MAX = 8 + +/* public domain md5 implementation based on rfc1321 and libtomcrypt */ + +type Tmd5 = struct { + Flen1 Tuint64_t + Fh [4]Tuint32_t + Fbuf [64]Tuint8_t +} + +func _rol(tls *TLS, n Tuint32_t, k int32) (r Tuint32_t) { + return n<>(Int32FromInt32(32)-k) +} + +var _tab = [64]Tuint32_t{ + 0: uint32(0xd76aa478), + 1: uint32(0xe8c7b756), + 2: uint32(0x242070db), + 3: uint32(0xc1bdceee), + 4: uint32(0xf57c0faf), + 5: uint32(0x4787c62a), + 6: uint32(0xa8304613), + 7: uint32(0xfd469501), + 8: uint32(0x698098d8), + 9: uint32(0x8b44f7af), + 10: uint32(0xffff5bb1), + 11: uint32(0x895cd7be), + 12: uint32(0x6b901122), + 13: uint32(0xfd987193), + 14: uint32(0xa679438e), + 15: uint32(0x49b40821), + 16: uint32(0xf61e2562), + 17: uint32(0xc040b340), + 18: uint32(0x265e5a51), + 19: uint32(0xe9b6c7aa), + 20: uint32(0xd62f105d), + 21: uint32(0x02441453), + 22: uint32(0xd8a1e681), + 23: uint32(0xe7d3fbc8), + 24: uint32(0x21e1cde6), + 25: uint32(0xc33707d6), + 26: uint32(0xf4d50d87), + 27: uint32(0x455a14ed), + 28: uint32(0xa9e3e905), + 29: uint32(0xfcefa3f8), + 30: uint32(0x676f02d9), + 31: uint32(0x8d2a4c8a), + 32: uint32(0xfffa3942), + 33: uint32(0x8771f681), + 34: uint32(0x6d9d6122), + 35: uint32(0xfde5380c), + 36: uint32(0xa4beea44), + 37: uint32(0x4bdecfa9), + 38: uint32(0xf6bb4b60), + 39: uint32(0xbebfbc70), + 40: uint32(0x289b7ec6), + 41: uint32(0xeaa127fa), + 42: uint32(0xd4ef3085), + 43: uint32(0x04881d05), + 44: uint32(0xd9d4d039), + 45: uint32(0xe6db99e5), + 46: uint32(0x1fa27cf8), + 47: uint32(0xc4ac5665), + 48: uint32(0xf4292244), + 49: uint32(0x432aff97), + 50: uint32(0xab9423a7), + 51: uint32(0xfc93a039), + 52: uint32(0x655b59c3), + 53: uint32(0x8f0ccc92), + 54: uint32(0xffeff47d), + 55: uint32(0x85845dd1), + 56: uint32(0x6fa87e4f), + 57: uint32(0xfe2ce6e0), + 58: uint32(0xa3014314), + 59: uint32(0x4e0811a1), + 60: uint32(0xf7537e82), + 61: uint32(0xbd3af235), + 62: uint32(0x2ad7d2bb), + 63: uint32(0xeb86d391), +} + +func _processblock(tls *TLS, s uintptr, buf uintptr) { + bp := tls.Alloc(64) + defer tls.Free(64) + var a, b, c, d, i Tuint32_t + var _ /* W at bp+0 */ [16]Tuint32_t + _, _, _, _, _ = a, b, c, d, i + i = uint32(0) + for { + if !(i < uint32(16)) { + break + } + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[i] = uint32(**(**Tuint8_t)(__ccgo_up(buf + uintptr(uint32(4)*i)))) + **(**Tuint32_t)(__ccgo_up(bp + uintptr(i)*4)) |= uint32(**(**Tuint8_t)(__ccgo_up(buf + uintptr(uint32(4)*i+uint32(1))))) << int32(8) + **(**Tuint32_t)(__ccgo_up(bp + uintptr(i)*4)) |= uint32(**(**Tuint8_t)(__ccgo_up(buf + uintptr(uint32(4)*i+uint32(2))))) << int32(16) + **(**Tuint32_t)(__ccgo_up(bp + uintptr(i)*4)) |= uint32(**(**Tuint8_t)(__ccgo_up(buf + uintptr(uint32(4)*i+uint32(3))))) << int32(24) + goto _1 + _1: + ; + i = i + 1 + } + a = **(**Tuint32_t)(__ccgo_up(s + 8)) + b = **(**Tuint32_t)(__ccgo_up(s + 8 + 1*4)) + c = **(**Tuint32_t)(__ccgo_up(s + 8 + 2*4)) + d = **(**Tuint32_t)(__ccgo_up(s + 8 + 3*4)) + i = uint32(0) + for i < uint32(16) { + a = a + (d ^ b&(c^d) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[i] + _tab[i]) + a = _rol(tls, a, int32(7)) + b + i = i + 1 + d = d + (c ^ a&(b^c) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[i] + _tab[i]) + d = _rol(tls, d, int32(12)) + a + i = i + 1 + c = c + (b ^ d&(a^b) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[i] + _tab[i]) + c = _rol(tls, c, int32(17)) + d + i = i + 1 + b = b + (a ^ c&(d^a) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[i] + _tab[i]) + b = _rol(tls, b, int32(22)) + c + i = i + 1 + } + for i < uint32(32) { + a = a + (c ^ d&(c^b) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[(uint32(5)*i+uint32(1))%uint32(16)] + _tab[i]) + a = _rol(tls, a, int32(5)) + b + i = i + 1 + d = d + (b ^ c&(b^a) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[(uint32(5)*i+uint32(1))%uint32(16)] + _tab[i]) + d = _rol(tls, d, int32(9)) + a + i = i + 1 + c = c + (a ^ b&(a^d) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[(uint32(5)*i+uint32(1))%uint32(16)] + _tab[i]) + c = _rol(tls, c, int32(14)) + d + i = i + 1 + b = b + (d ^ a&(d^c) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[(uint32(5)*i+uint32(1))%uint32(16)] + _tab[i]) + b = _rol(tls, b, int32(20)) + c + i = i + 1 + } + for i < uint32(48) { + a = a + (b ^ c ^ d + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[(uint32(3)*i+uint32(5))%uint32(16)] + _tab[i]) + a = _rol(tls, a, int32(4)) + b + i = i + 1 + d = d + (a ^ b ^ c + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[(uint32(3)*i+uint32(5))%uint32(16)] + _tab[i]) + d = _rol(tls, d, int32(11)) + a + i = i + 1 + c = c + (d ^ a ^ b + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[(uint32(3)*i+uint32(5))%uint32(16)] + _tab[i]) + c = _rol(tls, c, int32(16)) + d + i = i + 1 + b = b + (c ^ d ^ a + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[(uint32(3)*i+uint32(5))%uint32(16)] + _tab[i]) + b = _rol(tls, b, int32(23)) + c + i = i + 1 + } + for i < uint32(64) { + a = a + (c ^ (b | ^d) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[uint32(7)*i%uint32(16)] + _tab[i]) + a = _rol(tls, a, int32(6)) + b + i = i + 1 + d = d + (b ^ (a | ^c) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[uint32(7)*i%uint32(16)] + _tab[i]) + d = _rol(tls, d, int32(10)) + a + i = i + 1 + c = c + (a ^ (d | ^b) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[uint32(7)*i%uint32(16)] + _tab[i]) + c = _rol(tls, c, int32(15)) + d + i = i + 1 + b = b + (d ^ (c | ^a) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[uint32(7)*i%uint32(16)] + _tab[i]) + b = _rol(tls, b, int32(21)) + c + i = i + 1 + } + **(**Tuint32_t)(__ccgo_up(s + 8)) += a + **(**Tuint32_t)(__ccgo_up(s + 8 + 1*4)) += b + **(**Tuint32_t)(__ccgo_up(s + 8 + 2*4)) += c + **(**Tuint32_t)(__ccgo_up(s + 8 + 3*4)) += d +} + +func _pad(tls *TLS, s uintptr) { + var r, v1 uint32 + _, _ = r, v1 + r = uint32((*Tmd5)(unsafe.Pointer(s)).Flen1 % uint64(64)) + v1 = r + r = r + 1 + **(**Tuint8_t)(__ccgo_up(s + 24 + uintptr(v1))) = uint8(0x80) + if r > uint32(56) { + Xmemset(tls, s+24+uintptr(r), 0, uint64(uint32(64)-r)) + r = uint32(0) + _processblock(tls, s, s+24) + } + Xmemset(tls, s+24+uintptr(r), 0, uint64(uint32(56)-r)) + **(**Tuint64_t)(__ccgo_up(s)) *= uint64(8) + **(**Tuint8_t)(__ccgo_up(s + 24 + 56)) = uint8((*Tmd5)(unsafe.Pointer(s)).Flen1) + **(**Tuint8_t)(__ccgo_up(s + 24 + 57)) = uint8((*Tmd5)(unsafe.Pointer(s)).Flen1 >> int32(8)) + **(**Tuint8_t)(__ccgo_up(s + 24 + 58)) = uint8((*Tmd5)(unsafe.Pointer(s)).Flen1 >> int32(16)) + **(**Tuint8_t)(__ccgo_up(s + 24 + 59)) = uint8((*Tmd5)(unsafe.Pointer(s)).Flen1 >> int32(24)) + **(**Tuint8_t)(__ccgo_up(s + 24 + 60)) = uint8((*Tmd5)(unsafe.Pointer(s)).Flen1 >> int32(32)) + **(**Tuint8_t)(__ccgo_up(s + 24 + 61)) = uint8((*Tmd5)(unsafe.Pointer(s)).Flen1 >> int32(40)) + **(**Tuint8_t)(__ccgo_up(s + 24 + 62)) = uint8((*Tmd5)(unsafe.Pointer(s)).Flen1 >> int32(48)) + **(**Tuint8_t)(__ccgo_up(s + 24 + 63)) = uint8((*Tmd5)(unsafe.Pointer(s)).Flen1 >> int32(56)) + _processblock(tls, s, s+24) +} + +func _md5_init(tls *TLS, s uintptr) { + (*Tmd5)(unsafe.Pointer(s)).Flen1 = uint64(0) + **(**Tuint32_t)(__ccgo_up(s + 8)) = uint32(0x67452301) + **(**Tuint32_t)(__ccgo_up(s + 8 + 1*4)) = uint32(0xefcdab89) + **(**Tuint32_t)(__ccgo_up(s + 8 + 2*4)) = uint32(0x98badcfe) + **(**Tuint32_t)(__ccgo_up(s + 8 + 3*4)) = uint32(0x10325476) +} + +func _md5_sum(tls *TLS, s uintptr, md uintptr) { + var i int32 + _ = i + _pad(tls, s) + i = 0 + for { + if !(i < int32(4)) { + break + } + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(4)*i))) = uint8(**(**Tuint32_t)(__ccgo_up(s + 8 + uintptr(i)*4))) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(4)*i+int32(1)))) = uint8(**(**Tuint32_t)(__ccgo_up(s + 8 + uintptr(i)*4)) >> int32(8)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(4)*i+int32(2)))) = uint8(**(**Tuint32_t)(__ccgo_up(s + 8 + uintptr(i)*4)) >> int32(16)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(4)*i+int32(3)))) = uint8(**(**Tuint32_t)(__ccgo_up(s + 8 + uintptr(i)*4)) >> int32(24)) + goto _1 + _1: + ; + i = i + 1 + } +} + +func _md5_update(tls *TLS, s uintptr, m uintptr, len1 uint64) { + var p uintptr + var r uint32 + _, _ = p, r + p = m + r = uint32((*Tmd5)(unsafe.Pointer(s)).Flen1 % uint64(64)) + **(**Tuint64_t)(__ccgo_up(s)) += len1 + if r != 0 { + if len1 < uint64(uint32(64)-r) { + Xmemcpy(tls, s+24+uintptr(r), p, len1) + return + } + Xmemcpy(tls, s+24+uintptr(r), p, uint64(uint32(64)-r)) + len1 = len1 - uint64(uint32(64)-r) + p = p + uintptr(uint32(64)-r) + _processblock(tls, s, s+24) + } + for { + if !(len1 >= uint64(64)) { + break + } + _processblock(tls, s, p) + goto _1 + _1: + ; + len1 = len1 - uint64(64) + p = p + uintptr(64) + } + Xmemcpy(tls, s+24, p, len1) +} + +/*- + * Copyright (c) 2003 Poul-Henning Kamp + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + */ + +/* key limit is not part of the original design, added for DoS protection */ + +var _b64 = [65]uint8{'.', '/', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'} + +func _to64(tls *TLS, s uintptr, u uint32, n int32) (r uintptr) { + var v1 int32 + var v2 uintptr + _, _ = v1, v2 + for { + n = n - 1 + v1 = n + if !(v1 >= 0) { + break + } + v2 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = _b64[u%uint32(64)] + u = u / uint32(64) + } + return s +} + +func _md5crypt(tls *TLS, key uintptr, setting uintptr, output uintptr) (r uintptr) { + bp := tls.Alloc(112) + defer tls.Free(112) + var i, klen, slen uint32 + var p, salt, v5 uintptr + var _ /* ctx at bp+0 */ Tmd5 + var _ /* md at bp+88 */ [16]uint8 + _, _, _, _, _, _ = i, klen, p, salt, slen, v5 + /* reject large keys */ + klen = uint32(Xstrnlen(tls, key, Uint64FromInt32(Int32FromInt32(KEY_MAX)+Int32FromInt32(1)))) + if klen > uint32(KEY_MAX) { + return uintptr(0) + } + /* setting: $1$salt$ (closing $ is optional) */ + if Xstrncmp(tls, setting, __ccgo_ts+143, uint64(3)) != 0 { + return uintptr(0) + } + salt = setting + uintptr(3) + i = uint32(0) + for { + if !(i < uint32(SALT_MAX) && **(**uint8)(__ccgo_up(salt + uintptr(i))) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(salt + uintptr(i)))) != int32('$')) { + break + } + goto _1 + _1: + ; + i = i + 1 + } + slen = i + /* md5(key salt key) */ + _md5_init(tls, bp) + _md5_update(tls, bp, key, uint64(klen)) + _md5_update(tls, bp, salt, uint64(slen)) + _md5_update(tls, bp, key, uint64(klen)) + _md5_sum(tls, bp, bp+88) + /* md5(key $1$ salt repeated-md weird-key[0]-0) */ + _md5_init(tls, bp) + _md5_update(tls, bp, key, uint64(klen)) + _md5_update(tls, bp, setting, uint64(uint32(3)+slen)) + i = klen + for { + if !(uint64(i) > uint64(16)) { + break + } + _md5_update(tls, bp, bp+88, uint64(16)) + goto _2 + _2: + ; + i = uint32(uint64(i) - Uint64FromInt64(16)) + } + _md5_update(tls, bp, bp+88, uint64(i)) + (**(**[16]uint8)(__ccgo_up(bp + 88)))[0] = uint8(0) + i = klen + for { + if !(i != 0) { + break + } + if i&uint32(1) != 0 { + _md5_update(tls, bp, bp+88, uint64(1)) + } else { + _md5_update(tls, bp, key, uint64(1)) + } + goto _3 + _3: + ; + i = i >> uint32(1) + } + _md5_sum(tls, bp, bp+88) + /* md = f(md, key, salt) iteration */ + i = uint32(0) + for { + if !(i < uint32(1000)) { + break + } + _md5_init(tls, bp) + if i%uint32(2) != 0 { + _md5_update(tls, bp, key, uint64(klen)) + } else { + _md5_update(tls, bp, bp+88, uint64(16)) + } + if i%uint32(3) != 0 { + _md5_update(tls, bp, salt, uint64(slen)) + } + if i%uint32(7) != 0 { + _md5_update(tls, bp, key, uint64(klen)) + } + if i%uint32(2) != 0 { + _md5_update(tls, bp, bp+88, uint64(16)) + } else { + _md5_update(tls, bp, key, uint64(klen)) + } + _md5_sum(tls, bp, bp+88) + goto _4 + _4: + ; + i = i + 1 + } + /* output is $1$salt$hash */ + Xmemcpy(tls, output, setting, uint64(uint32(3)+slen)) + p = output + uintptr(3) + uintptr(slen) + v5 = p + p = p + 1 + **(**uint8)(__ccgo_up(v5)) = uint8('$') + i = uint32(0) + for { + if !(i < uint32(5)) { + break + } + p = _to64(tls, p, Uint32FromInt32(Int32FromUint8((**(**[16]uint8)(__ccgo_up(bp + 88)))[**(**uint8)(__ccgo_up(uintptr(unsafe.Pointer(&_perm)) + uintptr(i)*3))])< %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var p, q uintptr + var _ /* testbuf at bp+0 */ [64]uint8 + _, _ = p, q + p = _md5crypt(tls, key, setting, output) + /* self test and stack cleanup */ + q = _md5crypt(tls, uintptr(unsafe.Pointer(&_testkey)), uintptr(unsafe.Pointer(&_testsetting)), bp) + if !(p != 0) || q != bp || Xmemcmp(tls, bp, uintptr(unsafe.Pointer(&_testhash)), uint64(35)) != 0 { + return __ccgo_ts + 70 + } + return p +} + +var _testkey = [18]uint8{'X', 'y', '0', '1', '@', '#', 1, 2, 128, 127, 255, 13, 10, 129, 9, ' ', '!'} + +var _testsetting = [13]uint8{'$', '1', '$', 'a', 'b', 'c', 'd', '0', '1', '2', '3', '$'} + +var _testhash = [35]uint8{'$', '1', '$', 'a', 'b', 'c', 'd', '0', '1', '2', '3', '$', '9', 'Q', 'c', 'g', '8', 'D', 'y', 'v', 'i', 'e', 'k', 'V', '3', 't', 'D', 'G', 'M', 'Z', 'y', 'n', 'J', '1'} + +func X__crypt_r(tls *TLS, key uintptr, salt uintptr, data uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v salt=%v data=%v, (%v:)", tls, key, salt, data, origin(2)) + defer func() { trc("-> %v", r) }() + } + var output uintptr + _ = output + /* Per the crypt_r API, the caller has provided a pointer to + * struct crypt_data; however, this implementation does not + * use the structure to store any internal state, and treats + * it purely as a char buffer for storing the result. */ + output = data + if Int32FromUint8(**(**uint8)(__ccgo_up(salt))) == int32('$') && **(**uint8)(__ccgo_up(salt + 1)) != 0 && **(**uint8)(__ccgo_up(salt + 2)) != 0 { + if Int32FromUint8(**(**uint8)(__ccgo_up(salt + 1))) == int32('1') && Int32FromUint8(**(**uint8)(__ccgo_up(salt + 2))) == int32('$') { + return X__crypt_md5(tls, key, salt, output) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(salt + 1))) == int32('2') && Int32FromUint8(**(**uint8)(__ccgo_up(salt + 3))) == int32('$') { + return X__crypt_blowfish(tls, key, salt, output) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(salt + 1))) == int32('5') && Int32FromUint8(**(**uint8)(__ccgo_up(salt + 2))) == int32('$') { + return X__crypt_sha256(tls, key, salt, output) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(salt + 1))) == int32('6') && Int32FromUint8(**(**uint8)(__ccgo_up(salt + 2))) == int32('$') { + return X__crypt_sha512(tls, key, salt, output) + } + } + return X__crypt_des(tls, key, salt, output) +} + +func Xcrypt_r(tls *TLS, key uintptr, salt uintptr, data uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v salt=%v data=%v, (%v:)", tls, key, salt, data, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__crypt_r(tls, key, salt, data) +} + +const KEY_MAX1 = 256 +const ROUNDS_DEFAULT = 5000 +const ROUNDS_MAX = 9999999 +const ROUNDS_MIN = 1000 +const SALT_MAX1 = 16 + +/* public domain sha256 implementation based on fips180-3 */ + +type Tsha256 = struct { + Flen1 Tuint64_t + Fh [8]Tuint32_t + Fbuf [64]Tuint8_t +} + +func _ror(tls *TLS, n Tuint32_t, k int32) (r Tuint32_t) { + return n>>k | n<<(Int32FromInt32(32)-k) +} + +var _K = [64]Tuint32_t{ + 0: uint32(0x428a2f98), + 1: uint32(0x71374491), + 2: uint32(0xb5c0fbcf), + 3: uint32(0xe9b5dba5), + 4: uint32(0x3956c25b), + 5: uint32(0x59f111f1), + 6: uint32(0x923f82a4), + 7: uint32(0xab1c5ed5), + 8: uint32(0xd807aa98), + 9: uint32(0x12835b01), + 10: uint32(0x243185be), + 11: uint32(0x550c7dc3), + 12: uint32(0x72be5d74), + 13: uint32(0x80deb1fe), + 14: uint32(0x9bdc06a7), + 15: uint32(0xc19bf174), + 16: uint32(0xe49b69c1), + 17: uint32(0xefbe4786), + 18: uint32(0x0fc19dc6), + 19: uint32(0x240ca1cc), + 20: uint32(0x2de92c6f), + 21: uint32(0x4a7484aa), + 22: uint32(0x5cb0a9dc), + 23: uint32(0x76f988da), + 24: uint32(0x983e5152), + 25: uint32(0xa831c66d), + 26: uint32(0xb00327c8), + 27: uint32(0xbf597fc7), + 28: uint32(0xc6e00bf3), + 29: uint32(0xd5a79147), + 30: uint32(0x06ca6351), + 31: uint32(0x14292967), + 32: uint32(0x27b70a85), + 33: uint32(0x2e1b2138), + 34: uint32(0x4d2c6dfc), + 35: uint32(0x53380d13), + 36: uint32(0x650a7354), + 37: uint32(0x766a0abb), + 38: uint32(0x81c2c92e), + 39: uint32(0x92722c85), + 40: uint32(0xa2bfe8a1), + 41: uint32(0xa81a664b), + 42: uint32(0xc24b8b70), + 43: uint32(0xc76c51a3), + 44: uint32(0xd192e819), + 45: uint32(0xd6990624), + 46: uint32(0xf40e3585), + 47: uint32(0x106aa070), + 48: uint32(0x19a4c116), + 49: uint32(0x1e376c08), + 50: uint32(0x2748774c), + 51: uint32(0x34b0bcb5), + 52: uint32(0x391c0cb3), + 53: uint32(0x4ed8aa4a), + 54: uint32(0x5b9cca4f), + 55: uint32(0x682e6ff3), + 56: uint32(0x748f82ee), + 57: uint32(0x78a5636f), + 58: uint32(0x84c87814), + 59: uint32(0x8cc70208), + 60: uint32(0x90befffa), + 61: uint32(0xa4506ceb), + 62: uint32(0xbef9a3f7), + 63: uint32(0xc67178f2), +} + +func _processblock1(tls *TLS, s uintptr, buf uintptr) { + bp := tls.Alloc(256) + defer tls.Free(256) + var a, b, c, d, e, f, g, h, t1, t2 Tuint32_t + var i int32 + var _ /* W at bp+0 */ [64]Tuint32_t + _, _, _, _, _, _, _, _, _, _, _ = a, b, c, d, e, f, g, h, i, t1, t2 + i = 0 + for { + if !(i < int32(16)) { + break + } + (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i] = uint32(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(4)*i)))) << int32(24) + **(**Tuint32_t)(__ccgo_up(bp + uintptr(i)*4)) |= uint32(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(4)*i+int32(1))))) << int32(16) + **(**Tuint32_t)(__ccgo_up(bp + uintptr(i)*4)) |= uint32(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(4)*i+int32(2))))) << int32(8) + **(**Tuint32_t)(__ccgo_up(bp + uintptr(i)*4)) |= uint32(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(4)*i+int32(3))))) + goto _1 + _1: + ; + i = i + 1 + } + for { + if !(i < int32(64)) { + break + } + (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i] = _ror(tls, (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i-int32(2)], int32(17)) ^ _ror(tls, (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i-int32(2)], int32(19)) ^ (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i-int32(2)]>>Int32FromInt32(10) + (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i-int32(7)] + (_ror(tls, (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i-int32(15)], int32(7)) ^ _ror(tls, (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i-int32(15)], int32(18)) ^ (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i-int32(15)]>>Int32FromInt32(3)) + (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i-int32(16)] + goto _2 + _2: + ; + i = i + 1 + } + a = **(**Tuint32_t)(__ccgo_up(s + 8)) + b = **(**Tuint32_t)(__ccgo_up(s + 8 + 1*4)) + c = **(**Tuint32_t)(__ccgo_up(s + 8 + 2*4)) + d = **(**Tuint32_t)(__ccgo_up(s + 8 + 3*4)) + e = **(**Tuint32_t)(__ccgo_up(s + 8 + 4*4)) + f = **(**Tuint32_t)(__ccgo_up(s + 8 + 5*4)) + g = **(**Tuint32_t)(__ccgo_up(s + 8 + 6*4)) + h = **(**Tuint32_t)(__ccgo_up(s + 8 + 7*4)) + i = 0 + for { + if !(i < int32(64)) { + break + } + t1 = h + (_ror(tls, e, int32(6)) ^ _ror(tls, e, int32(11)) ^ _ror(tls, e, int32(25))) + (g ^ e&(f^g)) + _K[i] + (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i] + t2 = _ror(tls, a, int32(2)) ^ _ror(tls, a, int32(13)) ^ _ror(tls, a, int32(22)) + (a&b | c&(a|b)) + h = g + g = f + f = e + e = d + t1 + d = c + c = b + b = a + a = t1 + t2 + goto _3 + _3: + ; + i = i + 1 + } + **(**Tuint32_t)(__ccgo_up(s + 8)) += a + **(**Tuint32_t)(__ccgo_up(s + 8 + 1*4)) += b + **(**Tuint32_t)(__ccgo_up(s + 8 + 2*4)) += c + **(**Tuint32_t)(__ccgo_up(s + 8 + 3*4)) += d + **(**Tuint32_t)(__ccgo_up(s + 8 + 4*4)) += e + **(**Tuint32_t)(__ccgo_up(s + 8 + 5*4)) += f + **(**Tuint32_t)(__ccgo_up(s + 8 + 6*4)) += g + **(**Tuint32_t)(__ccgo_up(s + 8 + 7*4)) += h +} + +func _pad1(tls *TLS, s uintptr) { + var r, v1 uint32 + _, _ = r, v1 + r = uint32((*Tsha256)(unsafe.Pointer(s)).Flen1 % uint64(64)) + v1 = r + r = r + 1 + **(**Tuint8_t)(__ccgo_up(s + 40 + uintptr(v1))) = uint8(0x80) + if r > uint32(56) { + Xmemset(tls, s+40+uintptr(r), 0, uint64(uint32(64)-r)) + r = uint32(0) + _processblock1(tls, s, s+40) + } + Xmemset(tls, s+40+uintptr(r), 0, uint64(uint32(56)-r)) + **(**Tuint64_t)(__ccgo_up(s)) *= uint64(8) + **(**Tuint8_t)(__ccgo_up(s + 40 + 56)) = uint8((*Tsha256)(unsafe.Pointer(s)).Flen1 >> int32(56)) + **(**Tuint8_t)(__ccgo_up(s + 40 + 57)) = uint8((*Tsha256)(unsafe.Pointer(s)).Flen1 >> int32(48)) + **(**Tuint8_t)(__ccgo_up(s + 40 + 58)) = uint8((*Tsha256)(unsafe.Pointer(s)).Flen1 >> int32(40)) + **(**Tuint8_t)(__ccgo_up(s + 40 + 59)) = uint8((*Tsha256)(unsafe.Pointer(s)).Flen1 >> int32(32)) + **(**Tuint8_t)(__ccgo_up(s + 40 + 60)) = uint8((*Tsha256)(unsafe.Pointer(s)).Flen1 >> int32(24)) + **(**Tuint8_t)(__ccgo_up(s + 40 + 61)) = uint8((*Tsha256)(unsafe.Pointer(s)).Flen1 >> int32(16)) + **(**Tuint8_t)(__ccgo_up(s + 40 + 62)) = uint8((*Tsha256)(unsafe.Pointer(s)).Flen1 >> int32(8)) + **(**Tuint8_t)(__ccgo_up(s + 40 + 63)) = uint8((*Tsha256)(unsafe.Pointer(s)).Flen1) + _processblock1(tls, s, s+40) +} + +func _sha256_init(tls *TLS, s uintptr) { + (*Tsha256)(unsafe.Pointer(s)).Flen1 = uint64(0) + **(**Tuint32_t)(__ccgo_up(s + 8)) = uint32(0x6a09e667) + **(**Tuint32_t)(__ccgo_up(s + 8 + 1*4)) = uint32(0xbb67ae85) + **(**Tuint32_t)(__ccgo_up(s + 8 + 2*4)) = uint32(0x3c6ef372) + **(**Tuint32_t)(__ccgo_up(s + 8 + 3*4)) = uint32(0xa54ff53a) + **(**Tuint32_t)(__ccgo_up(s + 8 + 4*4)) = uint32(0x510e527f) + **(**Tuint32_t)(__ccgo_up(s + 8 + 5*4)) = uint32(0x9b05688c) + **(**Tuint32_t)(__ccgo_up(s + 8 + 6*4)) = uint32(0x1f83d9ab) + **(**Tuint32_t)(__ccgo_up(s + 8 + 7*4)) = uint32(0x5be0cd19) +} + +func _sha256_sum(tls *TLS, s uintptr, md uintptr) { + var i int32 + _ = i + _pad1(tls, s) + i = 0 + for { + if !(i < int32(8)) { + break + } + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(4)*i))) = uint8(**(**Tuint32_t)(__ccgo_up(s + 8 + uintptr(i)*4)) >> int32(24)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(4)*i+int32(1)))) = uint8(**(**Tuint32_t)(__ccgo_up(s + 8 + uintptr(i)*4)) >> int32(16)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(4)*i+int32(2)))) = uint8(**(**Tuint32_t)(__ccgo_up(s + 8 + uintptr(i)*4)) >> int32(8)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(4)*i+int32(3)))) = uint8(**(**Tuint32_t)(__ccgo_up(s + 8 + uintptr(i)*4))) + goto _1 + _1: + ; + i = i + 1 + } +} + +func _sha256_update(tls *TLS, s uintptr, m uintptr, len1 uint64) { + var p uintptr + var r uint32 + _, _ = p, r + p = m + r = uint32((*Tsha256)(unsafe.Pointer(s)).Flen1 % uint64(64)) + **(**Tuint64_t)(__ccgo_up(s)) += len1 + if r != 0 { + if len1 < uint64(uint32(64)-r) { + Xmemcpy(tls, s+40+uintptr(r), p, len1) + return + } + Xmemcpy(tls, s+40+uintptr(r), p, uint64(uint32(64)-r)) + len1 = len1 - uint64(uint32(64)-r) + p = p + uintptr(uint32(64)-r) + _processblock1(tls, s, s+40) + } + for { + if !(len1 >= uint64(64)) { + break + } + _processblock1(tls, s, p) + goto _1 + _1: + ; + len1 = len1 - uint64(64) + p = p + uintptr(64) + } + Xmemcpy(tls, s+40, p, len1) +} + +var _b641 = [65]uint8{'.', '/', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'} + +func _to641(tls *TLS, s uintptr, u uint32, n int32) (r uintptr) { + var v1 int32 + var v2 uintptr + _, _ = v1, v2 + for { + n = n - 1 + v1 = n + if !(v1 >= 0) { + break + } + v2 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = _b641[u%uint32(64)] + u = u / uint32(64) + } + return s +} + +/* key limit is not part of the original design, added for DoS protection. + * rounds limit has been lowered (versus the reference/spec), also for DoS + * protection. runtime is O(klen^2 + klen*rounds) */ + +// C documentation +// +// /* hash n bytes of the repeated md message digest */ +func _hashmd(tls *TLS, s uintptr, n uint32, md uintptr) { + var i uint32 + _ = i + i = n + for { + if !(i > uint32(32)) { + break + } + _sha256_update(tls, s, md, uint64(32)) + goto _1 + _1: + ; + i = i - uint32(32) + } + _sha256_update(tls, s, md, uint64(i)) +} + +func _sha256crypt(tls *TLS, key uintptr, setting uintptr, output uintptr) (r1 uintptr) { + bp := tls.Alloc(272) + defer tls.Free(272) + var i, klen, r, slen uint32 + var p, salt uintptr + var u uint64 + var _ /* ctx at bp+0 */ Tsha256 + var _ /* end at bp+224 */ uintptr + var _ /* kmd at bp+136 */ [32]uint8 + var _ /* md at bp+104 */ [32]uint8 + var _ /* rounds at bp+200 */ [20]uint8 + var _ /* smd at bp+168 */ [32]uint8 + _, _, _, _, _, _, _ = i, klen, p, r, salt, slen, u + **(**[20]uint8)(__ccgo_up(bp + 200)) = [20]uint8{} + /* reject large keys */ + klen = uint32(Xstrnlen(tls, key, Uint64FromInt32(Int32FromInt32(KEY_MAX1)+Int32FromInt32(1)))) + if klen > uint32(KEY_MAX1) { + return uintptr(0) + } + /* setting: $5$rounds=n$salt$ (rounds=n$ and closing $ are optional) */ + if Xstrncmp(tls, setting, __ccgo_ts+147, uint64(3)) != 0 { + return uintptr(0) + } + salt = setting + uintptr(3) + r = uint32(ROUNDS_DEFAULT) + if Xstrncmp(tls, salt, __ccgo_ts+151, Uint64FromInt64(8)-Uint64FromInt32(1)) == 0 { + /* + * this is a deviation from the reference: + * bad rounds setting is rejected if it is + * - empty + * - unterminated (missing '$') + * - begins with anything but a decimal digit + * the reference implementation treats these bad + * rounds as part of the salt or parse them with + * strtoul semantics which may cause problems + * including non-portable hashes that depend on + * the host's value of ULONG_MAX. + */ + salt = salt + uintptr(Uint64FromInt64(8)-Uint64FromInt32(1)) + if !(BoolInt32(uint32(**(**uint8)(__ccgo_up(salt)))-Uint32FromUint8('0') < Uint32FromInt32(10)) != 0) { + return uintptr(0) + } + u = Xstrtoul(tls, salt, bp+224, int32(10)) + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 224))))) != int32('$') { + return uintptr(0) + } + salt = **(**uintptr)(__ccgo_up(bp + 224)) + uintptr(1) + if u < uint64(ROUNDS_MIN) { + r = uint32(ROUNDS_MIN) + } else { + if u > uint64(ROUNDS_MAX) { + return uintptr(0) + } else { + r = uint32(u) + } + } + /* needed when rounds is zero prefixed or out of bounds */ + Xsprintf(tls, bp+200, __ccgo_ts+159, VaList(bp+240, r)) + } + i = uint32(0) + for { + if !(i < uint32(SALT_MAX1) && **(**uint8)(__ccgo_up(salt + uintptr(i))) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(salt + uintptr(i)))) != int32('$')) { + break + } + /* reject characters that interfere with /etc/shadow parsing */ + if Int32FromUint8(**(**uint8)(__ccgo_up(salt + uintptr(i)))) == int32('\n') || Int32FromUint8(**(**uint8)(__ccgo_up(salt + uintptr(i)))) == int32(':') { + return uintptr(0) + } + goto _1 + _1: + ; + i = i + 1 + } + slen = i + /* B = sha(key salt key) */ + _sha256_init(tls, bp) + _sha256_update(tls, bp, key, uint64(klen)) + _sha256_update(tls, bp, salt, uint64(slen)) + _sha256_update(tls, bp, key, uint64(klen)) + _sha256_sum(tls, bp, bp+104) + /* A = sha(key salt repeat-B alternate-B-key) */ + _sha256_init(tls, bp) + _sha256_update(tls, bp, key, uint64(klen)) + _sha256_update(tls, bp, salt, uint64(slen)) + _hashmd(tls, bp, klen, bp+104) + i = klen + for { + if !(i > uint32(0)) { + break + } + if i&uint32(1) != 0 { + _sha256_update(tls, bp, bp+104, uint64(32)) + } else { + _sha256_update(tls, bp, key, uint64(klen)) + } + goto _2 + _2: + ; + i = i >> uint32(1) + } + _sha256_sum(tls, bp, bp+104) + /* DP = sha(repeat-key), this step takes O(klen^2) time */ + _sha256_init(tls, bp) + i = uint32(0) + for { + if !(i < klen) { + break + } + _sha256_update(tls, bp, key, uint64(klen)) + goto _3 + _3: + ; + i = i + 1 + } + _sha256_sum(tls, bp, bp+136) + /* DS = sha(repeat-salt) */ + _sha256_init(tls, bp) + i = uint32(0) + for { + if !(i < Uint32FromInt32(int32(16)+Int32FromUint8((**(**[32]uint8)(__ccgo_up(bp + 104)))[0]))) { + break + } + _sha256_update(tls, bp, salt, uint64(slen)) + goto _4 + _4: + ; + i = i + 1 + } + _sha256_sum(tls, bp, bp+168) + /* iterate A = f(A,DP,DS), this step takes O(rounds*klen) time */ + i = uint32(0) + for { + if !(i < r) { + break + } + _sha256_init(tls, bp) + if i%uint32(2) != 0 { + _hashmd(tls, bp, klen, bp+136) + } else { + _sha256_update(tls, bp, bp+104, uint64(32)) + } + if i%uint32(3) != 0 { + _sha256_update(tls, bp, bp+168, uint64(slen)) + } + if i%uint32(7) != 0 { + _hashmd(tls, bp, klen, bp+136) + } + if i%uint32(2) != 0 { + _sha256_update(tls, bp, bp+104, uint64(32)) + } else { + _hashmd(tls, bp, klen, bp+136) + } + _sha256_sum(tls, bp, bp+104) + goto _5 + _5: + ; + i = i + 1 + } + /* output is $5$rounds=n$salt$hash */ + p = output + p = p + uintptr(Xsprintf(tls, p, __ccgo_ts+170, VaList(bp+240, bp+200, slen, salt))) + i = uint32(0) + for { + if !(i < uint32(10)) { + break + } + p = _to641(tls, p, Uint32FromInt32(Int32FromUint8((**(**[32]uint8)(__ccgo_up(bp + 104)))[**(**uint8)(__ccgo_up(uintptr(unsafe.Pointer(&_perm1)) + uintptr(i)*3))])< %v", r) }() + } + bp := tls.Alloc(128) + defer tls.Free(128) + var p, q uintptr + var _ /* testbuf at bp+0 */ [128]uint8 + _, _ = p, q + p = _sha256crypt(tls, key, setting, output) + /* self test and stack cleanup */ + q = _sha256crypt(tls, uintptr(unsafe.Pointer(&_testkey1)), uintptr(unsafe.Pointer(&_testsetting1)), bp) + if !(p != 0) || q != bp || Xmemcmp(tls, bp, uintptr(unsafe.Pointer(&_testhash1)), uint64(73)) != 0 { + return __ccgo_ts + 70 + } + return p +} + +var _testkey1 = [18]uint8{'X', 'y', '0', '1', '@', '#', 1, 2, 128, 127, 255, 13, 10, 129, 9, ' ', '!'} + +var _testsetting1 = [30]uint8{'$', '5', '$', 'r', 'o', 'u', 'n', 'd', 's', '=', '1', '2', '3', '4', '$', 'a', 'b', 'c', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '$'} + +var _testhash1 = [73]uint8{'$', '5', '$', 'r', 'o', 'u', 'n', 'd', 's', '=', '1', '2', '3', '4', '$', 'a', 'b', 'c', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '$', '3', 'V', 'f', 'D', 'j', 'P', 't', '0', '5', 'V', 'H', 'F', 'n', '4', '7', 'C', '/', 'o', 'j', 'F', 'Z', '6', 'K', 'R', 'P', 'Y', 'r', 'O', 'j', 'j', '1', 'l', 'L', 'b', 'H', '.', 'd', 'k', 'F', '3', 'b', 'Z', '6'} + +/* public domain sha512 implementation based on fips180-3 */ +/* >=2^64 bits messages are not supported (about 2000 peta bytes) */ + +type Tsha512 = struct { + Flen1 Tuint64_t + Fh [8]Tuint64_t + Fbuf [128]Tuint8_t +} + +func _ror1(tls *TLS, n Tuint64_t, k int32) (r Tuint64_t) { + return n>>k | n<<(Int32FromInt32(64)-k) +} + +var _K1 = [80]Tuint64_t{ + 0: uint64(0x428a2f98d728ae22), + 1: uint64(0x7137449123ef65cd), + 2: uint64(0xb5c0fbcfec4d3b2f), + 3: uint64(0xe9b5dba58189dbbc), + 4: uint64(0x3956c25bf348b538), + 5: uint64(0x59f111f1b605d019), + 6: uint64(0x923f82a4af194f9b), + 7: uint64(0xab1c5ed5da6d8118), + 8: uint64(0xd807aa98a3030242), + 9: uint64(0x12835b0145706fbe), + 10: uint64(0x243185be4ee4b28c), + 11: uint64(0x550c7dc3d5ffb4e2), + 12: uint64(0x72be5d74f27b896f), + 13: uint64(0x80deb1fe3b1696b1), + 14: uint64(0x9bdc06a725c71235), + 15: uint64(0xc19bf174cf692694), + 16: uint64(0xe49b69c19ef14ad2), + 17: uint64(0xefbe4786384f25e3), + 18: uint64(0x0fc19dc68b8cd5b5), + 19: uint64(0x240ca1cc77ac9c65), + 20: uint64(0x2de92c6f592b0275), + 21: uint64(0x4a7484aa6ea6e483), + 22: uint64(0x5cb0a9dcbd41fbd4), + 23: uint64(0x76f988da831153b5), + 24: uint64(0x983e5152ee66dfab), + 25: uint64(0xa831c66d2db43210), + 26: uint64(0xb00327c898fb213f), + 27: uint64(0xbf597fc7beef0ee4), + 28: uint64(0xc6e00bf33da88fc2), + 29: uint64(0xd5a79147930aa725), + 30: uint64(0x06ca6351e003826f), + 31: uint64(0x142929670a0e6e70), + 32: uint64(0x27b70a8546d22ffc), + 33: uint64(0x2e1b21385c26c926), + 34: uint64(0x4d2c6dfc5ac42aed), + 35: uint64(0x53380d139d95b3df), + 36: uint64(0x650a73548baf63de), + 37: uint64(0x766a0abb3c77b2a8), + 38: uint64(0x81c2c92e47edaee6), + 39: uint64(0x92722c851482353b), + 40: uint64(0xa2bfe8a14cf10364), + 41: uint64(0xa81a664bbc423001), + 42: uint64(0xc24b8b70d0f89791), + 43: uint64(0xc76c51a30654be30), + 44: uint64(0xd192e819d6ef5218), + 45: uint64(0xd69906245565a910), + 46: uint64(0xf40e35855771202a), + 47: uint64(0x106aa07032bbd1b8), + 48: uint64(0x19a4c116b8d2d0c8), + 49: uint64(0x1e376c085141ab53), + 50: uint64(0x2748774cdf8eeb99), + 51: uint64(0x34b0bcb5e19b48a8), + 52: uint64(0x391c0cb3c5c95a63), + 53: uint64(0x4ed8aa4ae3418acb), + 54: uint64(0x5b9cca4f7763e373), + 55: uint64(0x682e6ff3d6b2b8a3), + 56: uint64(0x748f82ee5defb2fc), + 57: uint64(0x78a5636f43172f60), + 58: uint64(0x84c87814a1f0ab72), + 59: uint64(0x8cc702081a6439ec), + 60: uint64(0x90befffa23631e28), + 61: uint64(0xa4506cebde82bde9), + 62: uint64(0xbef9a3f7b2c67915), + 63: uint64(0xc67178f2e372532b), + 64: uint64(0xca273eceea26619c), + 65: uint64(0xd186b8c721c0c207), + 66: uint64(0xeada7dd6cde0eb1e), + 67: uint64(0xf57d4f7fee6ed178), + 68: uint64(0x06f067aa72176fba), + 69: uint64(0x0a637dc5a2c898a6), + 70: uint64(0x113f9804bef90dae), + 71: uint64(0x1b710b35131c471b), + 72: uint64(0x28db77f523047d84), + 73: uint64(0x32caab7b40c72493), + 74: uint64(0x3c9ebe0a15c9bebc), + 75: uint64(0x431d67c49c100d4c), + 76: uint64(0x4cc5d4becb3e42b6), + 77: uint64(0x597f299cfc657e2a), + 78: uint64(0x5fcb6fab3ad6faec), + 79: uint64(0x6c44198c4a475817), +} + +func _processblock2(tls *TLS, s uintptr, buf uintptr) { + bp := tls.Alloc(640) + defer tls.Free(640) + var a, b, c, d, e, f, g, h, t1, t2 Tuint64_t + var i int32 + var _ /* W at bp+0 */ [80]Tuint64_t + _, _, _, _, _, _, _, _, _, _, _ = a, b, c, d, e, f, g, h, i, t1, t2 + i = 0 + for { + if !(i < int32(16)) { + break + } + (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i] = uint64(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(8)*i)))) << int32(56) + **(**Tuint64_t)(__ccgo_up(bp + uintptr(i)*8)) |= uint64(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(8)*i+int32(1))))) << int32(48) + **(**Tuint64_t)(__ccgo_up(bp + uintptr(i)*8)) |= uint64(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(8)*i+int32(2))))) << int32(40) + **(**Tuint64_t)(__ccgo_up(bp + uintptr(i)*8)) |= uint64(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(8)*i+int32(3))))) << int32(32) + **(**Tuint64_t)(__ccgo_up(bp + uintptr(i)*8)) |= uint64(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(8)*i+int32(4))))) << int32(24) + **(**Tuint64_t)(__ccgo_up(bp + uintptr(i)*8)) |= uint64(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(8)*i+int32(5))))) << int32(16) + **(**Tuint64_t)(__ccgo_up(bp + uintptr(i)*8)) |= uint64(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(8)*i+int32(6))))) << int32(8) + **(**Tuint64_t)(__ccgo_up(bp + uintptr(i)*8)) |= uint64(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(8)*i+int32(7))))) + goto _1 + _1: + ; + i = i + 1 + } + for { + if !(i < int32(80)) { + break + } + (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i] = _ror1(tls, (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i-int32(2)], int32(19)) ^ _ror1(tls, (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i-int32(2)], int32(61)) ^ (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i-int32(2)]>>Int32FromInt32(6) + (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i-int32(7)] + (_ror1(tls, (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i-int32(15)], int32(1)) ^ _ror1(tls, (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i-int32(15)], int32(8)) ^ (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i-int32(15)]>>Int32FromInt32(7)) + (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i-int32(16)] + goto _2 + _2: + ; + i = i + 1 + } + a = **(**Tuint64_t)(__ccgo_up(s + 8)) + b = **(**Tuint64_t)(__ccgo_up(s + 8 + 1*8)) + c = **(**Tuint64_t)(__ccgo_up(s + 8 + 2*8)) + d = **(**Tuint64_t)(__ccgo_up(s + 8 + 3*8)) + e = **(**Tuint64_t)(__ccgo_up(s + 8 + 4*8)) + f = **(**Tuint64_t)(__ccgo_up(s + 8 + 5*8)) + g = **(**Tuint64_t)(__ccgo_up(s + 8 + 6*8)) + h = **(**Tuint64_t)(__ccgo_up(s + 8 + 7*8)) + i = 0 + for { + if !(i < int32(80)) { + break + } + t1 = h + (_ror1(tls, e, int32(14)) ^ _ror1(tls, e, int32(18)) ^ _ror1(tls, e, int32(41))) + (g ^ e&(f^g)) + _K1[i] + (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i] + t2 = _ror1(tls, a, int32(28)) ^ _ror1(tls, a, int32(34)) ^ _ror1(tls, a, int32(39)) + (a&b | c&(a|b)) + h = g + g = f + f = e + e = d + t1 + d = c + c = b + b = a + a = t1 + t2 + goto _3 + _3: + ; + i = i + 1 + } + **(**Tuint64_t)(__ccgo_up(s + 8)) += a + **(**Tuint64_t)(__ccgo_up(s + 8 + 1*8)) += b + **(**Tuint64_t)(__ccgo_up(s + 8 + 2*8)) += c + **(**Tuint64_t)(__ccgo_up(s + 8 + 3*8)) += d + **(**Tuint64_t)(__ccgo_up(s + 8 + 4*8)) += e + **(**Tuint64_t)(__ccgo_up(s + 8 + 5*8)) += f + **(**Tuint64_t)(__ccgo_up(s + 8 + 6*8)) += g + **(**Tuint64_t)(__ccgo_up(s + 8 + 7*8)) += h +} + +func _pad2(tls *TLS, s uintptr) { + var r, v1 uint32 + _, _ = r, v1 + r = uint32((*Tsha512)(unsafe.Pointer(s)).Flen1 % uint64(128)) + v1 = r + r = r + 1 + **(**Tuint8_t)(__ccgo_up(s + 72 + uintptr(v1))) = uint8(0x80) + if r > uint32(112) { + Xmemset(tls, s+72+uintptr(r), 0, uint64(uint32(128)-r)) + r = uint32(0) + _processblock2(tls, s, s+72) + } + Xmemset(tls, s+72+uintptr(r), 0, uint64(uint32(120)-r)) + **(**Tuint64_t)(__ccgo_up(s)) *= uint64(8) + **(**Tuint8_t)(__ccgo_up(s + 72 + 120)) = uint8((*Tsha512)(unsafe.Pointer(s)).Flen1 >> int32(56)) + **(**Tuint8_t)(__ccgo_up(s + 72 + 121)) = uint8((*Tsha512)(unsafe.Pointer(s)).Flen1 >> int32(48)) + **(**Tuint8_t)(__ccgo_up(s + 72 + 122)) = uint8((*Tsha512)(unsafe.Pointer(s)).Flen1 >> int32(40)) + **(**Tuint8_t)(__ccgo_up(s + 72 + 123)) = uint8((*Tsha512)(unsafe.Pointer(s)).Flen1 >> int32(32)) + **(**Tuint8_t)(__ccgo_up(s + 72 + 124)) = uint8((*Tsha512)(unsafe.Pointer(s)).Flen1 >> int32(24)) + **(**Tuint8_t)(__ccgo_up(s + 72 + 125)) = uint8((*Tsha512)(unsafe.Pointer(s)).Flen1 >> int32(16)) + **(**Tuint8_t)(__ccgo_up(s + 72 + 126)) = uint8((*Tsha512)(unsafe.Pointer(s)).Flen1 >> int32(8)) + **(**Tuint8_t)(__ccgo_up(s + 72 + 127)) = uint8((*Tsha512)(unsafe.Pointer(s)).Flen1) + _processblock2(tls, s, s+72) +} + +func _sha512_init(tls *TLS, s uintptr) { + (*Tsha512)(unsafe.Pointer(s)).Flen1 = uint64(0) + **(**Tuint64_t)(__ccgo_up(s + 8)) = uint64(0x6a09e667f3bcc908) + **(**Tuint64_t)(__ccgo_up(s + 8 + 1*8)) = uint64(0xbb67ae8584caa73b) + **(**Tuint64_t)(__ccgo_up(s + 8 + 2*8)) = uint64(0x3c6ef372fe94f82b) + **(**Tuint64_t)(__ccgo_up(s + 8 + 3*8)) = uint64(0xa54ff53a5f1d36f1) + **(**Tuint64_t)(__ccgo_up(s + 8 + 4*8)) = uint64(0x510e527fade682d1) + **(**Tuint64_t)(__ccgo_up(s + 8 + 5*8)) = uint64(0x9b05688c2b3e6c1f) + **(**Tuint64_t)(__ccgo_up(s + 8 + 6*8)) = uint64(0x1f83d9abfb41bd6b) + **(**Tuint64_t)(__ccgo_up(s + 8 + 7*8)) = uint64(0x5be0cd19137e2179) +} + +func _sha512_sum(tls *TLS, s uintptr, md uintptr) { + var i int32 + _ = i + _pad2(tls, s) + i = 0 + for { + if !(i < int32(8)) { + break + } + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(8)*i))) = uint8(**(**Tuint64_t)(__ccgo_up(s + 8 + uintptr(i)*8)) >> int32(56)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(8)*i+int32(1)))) = uint8(**(**Tuint64_t)(__ccgo_up(s + 8 + uintptr(i)*8)) >> int32(48)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(8)*i+int32(2)))) = uint8(**(**Tuint64_t)(__ccgo_up(s + 8 + uintptr(i)*8)) >> int32(40)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(8)*i+int32(3)))) = uint8(**(**Tuint64_t)(__ccgo_up(s + 8 + uintptr(i)*8)) >> int32(32)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(8)*i+int32(4)))) = uint8(**(**Tuint64_t)(__ccgo_up(s + 8 + uintptr(i)*8)) >> int32(24)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(8)*i+int32(5)))) = uint8(**(**Tuint64_t)(__ccgo_up(s + 8 + uintptr(i)*8)) >> int32(16)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(8)*i+int32(6)))) = uint8(**(**Tuint64_t)(__ccgo_up(s + 8 + uintptr(i)*8)) >> int32(8)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(8)*i+int32(7)))) = uint8(**(**Tuint64_t)(__ccgo_up(s + 8 + uintptr(i)*8))) + goto _1 + _1: + ; + i = i + 1 + } +} + +func _sha512_update(tls *TLS, s uintptr, m uintptr, len1 uint64) { + var p uintptr + var r uint32 + _, _ = p, r + p = m + r = uint32((*Tsha512)(unsafe.Pointer(s)).Flen1 % uint64(128)) + **(**Tuint64_t)(__ccgo_up(s)) += len1 + if r != 0 { + if len1 < uint64(uint32(128)-r) { + Xmemcpy(tls, s+72+uintptr(r), p, len1) + return + } + Xmemcpy(tls, s+72+uintptr(r), p, uint64(uint32(128)-r)) + len1 = len1 - uint64(uint32(128)-r) + p = p + uintptr(uint32(128)-r) + _processblock2(tls, s, s+72) + } + for { + if !(len1 >= uint64(128)) { + break + } + _processblock2(tls, s, p) + goto _1 + _1: + ; + len1 = len1 - uint64(128) + p = p + uintptr(128) + } + Xmemcpy(tls, s+72, p, len1) +} + +var _b642 = [65]uint8{'.', '/', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'} + +func _to642(tls *TLS, s uintptr, u uint32, n int32) (r uintptr) { + var v1 int32 + var v2 uintptr + _, _ = v1, v2 + for { + n = n - 1 + v1 = n + if !(v1 >= 0) { + break + } + v2 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = _b642[u%uint32(64)] + u = u / uint32(64) + } + return s +} + +/* key limit is not part of the original design, added for DoS protection. + * rounds limit has been lowered (versus the reference/spec), also for DoS + * protection. runtime is O(klen^2 + klen*rounds) */ + +// C documentation +// +// /* hash n bytes of the repeated md message digest */ +func _hashmd1(tls *TLS, s uintptr, n uint32, md uintptr) { + var i uint32 + _ = i + i = n + for { + if !(i > uint32(64)) { + break + } + _sha512_update(tls, s, md, uint64(64)) + goto _1 + _1: + ; + i = i - uint32(64) + } + _sha512_update(tls, s, md, uint64(i)) +} + +func _sha512crypt(tls *TLS, key uintptr, setting uintptr, output uintptr) (r1 uintptr) { + bp := tls.Alloc(464) + defer tls.Free(464) + var i, klen, r, slen uint32 + var p, salt uintptr + var u uint64 + var _ /* ctx at bp+0 */ Tsha512 + var _ /* end at bp+416 */ uintptr + var _ /* kmd at bp+264 */ [64]uint8 + var _ /* md at bp+200 */ [64]uint8 + var _ /* rounds at bp+392 */ [20]uint8 + var _ /* smd at bp+328 */ [64]uint8 + _, _, _, _, _, _, _ = i, klen, p, r, salt, slen, u + **(**[20]uint8)(__ccgo_up(bp + 392)) = [20]uint8{} + /* reject large keys */ + i = uint32(0) + for { + if !(i <= uint32(KEY_MAX1) && **(**uint8)(__ccgo_up(key + uintptr(i))) != 0) { + break + } + goto _1 + _1: + ; + i = i + 1 + } + if i > uint32(KEY_MAX1) { + return uintptr(0) + } + klen = i + /* setting: $6$rounds=n$salt$ (rounds=n$ and closing $ are optional) */ + if Xstrncmp(tls, setting, __ccgo_ts+181, uint64(3)) != 0 { + return uintptr(0) + } + salt = setting + uintptr(3) + r = uint32(ROUNDS_DEFAULT) + if Xstrncmp(tls, salt, __ccgo_ts+151, Uint64FromInt64(8)-Uint64FromInt32(1)) == 0 { + /* + * this is a deviation from the reference: + * bad rounds setting is rejected if it is + * - empty + * - unterminated (missing '$') + * - begins with anything but a decimal digit + * the reference implementation treats these bad + * rounds as part of the salt or parse them with + * strtoul semantics which may cause problems + * including non-portable hashes that depend on + * the host's value of ULONG_MAX. + */ + salt = salt + uintptr(Uint64FromInt64(8)-Uint64FromInt32(1)) + if !(BoolInt32(uint32(**(**uint8)(__ccgo_up(salt)))-Uint32FromUint8('0') < Uint32FromInt32(10)) != 0) { + return uintptr(0) + } + u = Xstrtoul(tls, salt, bp+416, int32(10)) + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 416))))) != int32('$') { + return uintptr(0) + } + salt = **(**uintptr)(__ccgo_up(bp + 416)) + uintptr(1) + if u < uint64(ROUNDS_MIN) { + r = uint32(ROUNDS_MIN) + } else { + if u > uint64(ROUNDS_MAX) { + return uintptr(0) + } else { + r = uint32(u) + } + } + /* needed when rounds is zero prefixed or out of bounds */ + Xsprintf(tls, bp+392, __ccgo_ts+159, VaList(bp+432, r)) + } + i = uint32(0) + for { + if !(i < uint32(SALT_MAX1) && **(**uint8)(__ccgo_up(salt + uintptr(i))) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(salt + uintptr(i)))) != int32('$')) { + break + } + /* reject characters that interfere with /etc/shadow parsing */ + if Int32FromUint8(**(**uint8)(__ccgo_up(salt + uintptr(i)))) == int32('\n') || Int32FromUint8(**(**uint8)(__ccgo_up(salt + uintptr(i)))) == int32(':') { + return uintptr(0) + } + goto _2 + _2: + ; + i = i + 1 + } + slen = i + /* B = sha(key salt key) */ + _sha512_init(tls, bp) + _sha512_update(tls, bp, key, uint64(klen)) + _sha512_update(tls, bp, salt, uint64(slen)) + _sha512_update(tls, bp, key, uint64(klen)) + _sha512_sum(tls, bp, bp+200) + /* A = sha(key salt repeat-B alternate-B-key) */ + _sha512_init(tls, bp) + _sha512_update(tls, bp, key, uint64(klen)) + _sha512_update(tls, bp, salt, uint64(slen)) + _hashmd1(tls, bp, klen, bp+200) + i = klen + for { + if !(i > uint32(0)) { + break + } + if i&uint32(1) != 0 { + _sha512_update(tls, bp, bp+200, uint64(64)) + } else { + _sha512_update(tls, bp, key, uint64(klen)) + } + goto _3 + _3: + ; + i = i >> uint32(1) + } + _sha512_sum(tls, bp, bp+200) + /* DP = sha(repeat-key), this step takes O(klen^2) time */ + _sha512_init(tls, bp) + i = uint32(0) + for { + if !(i < klen) { + break + } + _sha512_update(tls, bp, key, uint64(klen)) + goto _4 + _4: + ; + i = i + 1 + } + _sha512_sum(tls, bp, bp+264) + /* DS = sha(repeat-salt) */ + _sha512_init(tls, bp) + i = uint32(0) + for { + if !(i < Uint32FromInt32(int32(16)+Int32FromUint8((**(**[64]uint8)(__ccgo_up(bp + 200)))[0]))) { + break + } + _sha512_update(tls, bp, salt, uint64(slen)) + goto _5 + _5: + ; + i = i + 1 + } + _sha512_sum(tls, bp, bp+328) + /* iterate A = f(A,DP,DS), this step takes O(rounds*klen) time */ + i = uint32(0) + for { + if !(i < r) { + break + } + _sha512_init(tls, bp) + if i%uint32(2) != 0 { + _hashmd1(tls, bp, klen, bp+264) + } else { + _sha512_update(tls, bp, bp+200, uint64(64)) + } + if i%uint32(3) != 0 { + _sha512_update(tls, bp, bp+328, uint64(slen)) + } + if i%uint32(7) != 0 { + _hashmd1(tls, bp, klen, bp+264) + } + if i%uint32(2) != 0 { + _sha512_update(tls, bp, bp+200, uint64(64)) + } else { + _hashmd1(tls, bp, klen, bp+264) + } + _sha512_sum(tls, bp, bp+200) + goto _6 + _6: + ; + i = i + 1 + } + /* output is $6$rounds=n$salt$hash */ + p = output + p = p + uintptr(Xsprintf(tls, p, __ccgo_ts+185, VaList(bp+432, bp+392, slen, salt))) + i = uint32(0) + for { + if !(i < uint32(21)) { + break + } + p = _to642(tls, p, Uint32FromInt32(Int32FromUint8((**(**[64]uint8)(__ccgo_up(bp + 200)))[**(**uint8)(__ccgo_up(uintptr(unsafe.Pointer(&_perm2)) + uintptr(i)*3))])< %v", r) }() + } + bp := tls.Alloc(128) + defer tls.Free(128) + var p, q uintptr + var _ /* testbuf at bp+0 */ [128]uint8 + _, _ = p, q + p = _sha512crypt(tls, key, setting, output) + /* self test and stack cleanup */ + q = _sha512crypt(tls, uintptr(unsafe.Pointer(&_testkey2)), uintptr(unsafe.Pointer(&_testsetting2)), bp) + if !(p != 0) || q != bp || Xmemcmp(tls, bp, uintptr(unsafe.Pointer(&_testhash2)), uint64(116)) != 0 { + return __ccgo_ts + 70 + } + return p +} + +var _testkey2 = [18]uint8{'X', 'y', '0', '1', '@', '#', 1, 2, 128, 127, 255, 13, 10, 129, 9, ' ', '!'} + +var _testsetting2 = [30]uint8{'$', '6', '$', 'r', 'o', 'u', 'n', 'd', 's', '=', '1', '2', '3', '4', '$', 'a', 'b', 'c', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '$'} + +var _testhash2 = [116]uint8{'$', '6', '$', 'r', 'o', 'u', 'n', 'd', 's', '=', '1', '2', '3', '4', '$', 'a', 'b', 'c', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '$', 'B', 'C', 'p', 't', '8', 'z', 'L', 'r', 'c', '/', 'R', 'c', 'y', 'u', 'X', 'm', 'C', 'D', 'O', 'E', '1', 'A', 'L', 'q', 'M', 'X', 'B', '2', 'M', 'H', '6', 'n', '1', 'g', '8', '9', '1', 'H', 'h', 'F', 'j', '8', '.', 'w', '7', 'L', 'x', 'G', 'v', '.', 'F', 'T', 'k', 'q', 'q', '6', 'V', 'x', 'c', '/', 'k', 'm', '3', 'Y', '0', 'j', 'E', '0', 'j', '2', '4', 'j', 'Y', '5', 'P', 'I', 'v', '/', 'o', 'O', 'u', '6', 'r', 'e', 'g', '1'} + +var ___encrypt_key Texpanded_key + +func Xsetkey(tls *TLS, key uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v, (%v:)", tls, key, origin(2)) + } + bp := tls.Alloc(16) + defer tls.Free(16) + var i, j int32 + var v3 uintptr + var _ /* bkey at bp+0 */ [8]uint8 + _, _, _ = i, j, v3 + i = 0 + for { + if !(i < int32(8)) { + break + } + (**(**[8]uint8)(__ccgo_up(bp)))[i] = uint8(0) + j = int32(7) + for { + if !(j >= 0) { + break + } + v3 = bp + uintptr(i) + *(*uint8)(unsafe.Pointer(v3)) = uint8(uint32(*(*uint8)(unsafe.Pointer(v3))) | Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(key)))&Int32FromInt32(1))<= 0) { + break + } + **(**Tuint32_t)(__ccgo_up(bp + 128 + uintptr(i)*4)) |= Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(p)))&Int32FromInt32(1)) << j + goto _2 + _2: + ; + j = j - 1 + p = p + 1 + } + goto _1 + _1: + ; + i = i + 1 + } + key = uintptr(unsafe.Pointer(&___encrypt_key)) + if edflag != 0 { + key = bp + i = 0 + for { + if !(i < int32(16)) { + break + } + **(**Tuint32_t)(__ccgo_up(bp + uintptr(i)*4)) = **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&___encrypt_key)) + uintptr(int32(15)-i)*4)) + **(**Tuint32_t)(__ccgo_up(bp + 64 + uintptr(i)*4)) = **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&___encrypt_key)) + 64 + uintptr(int32(15)-i)*4)) + goto _3 + _3: + ; + i = i + 1 + } + } + X__do_des(tls, (**(**[2]Tuint32_t)(__ccgo_up(bp + 128)))[0], (**(**[2]Tuint32_t)(__ccgo_up(bp + 128)))[int32(1)], bp+128, bp+128+uintptr(1)*4, uint32(1), uint32(0), key) + p = block + i = 0 + for { + if !(i < int32(2)) { + break + } + j = int32(31) + for { + if !(j >= 0) { + break + } + v6 = p + p = p + 1 + **(**uint8)(__ccgo_up(v6)) = uint8((**(**[2]Tuint32_t)(__ccgo_up(bp + 128)))[i] >> j & uint32(1)) + goto _5 + _5: + ; + j = j - 1 + } + goto _4 + _4: + ; + i = i + 1 + } +} + +var _table = [384]uint16{ + 128: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 129: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 130: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 131: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 132: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 133: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 134: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 135: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 136: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 137: Uint16FromInt32((Int32FromInt32(0x320)/Int32FromInt32(256) | Int32FromInt32(0x320)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 138: Uint16FromInt32((Int32FromInt32(0x220)/Int32FromInt32(256) | Int32FromInt32(0x220)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 139: Uint16FromInt32((Int32FromInt32(0x220)/Int32FromInt32(256) | Int32FromInt32(0x220)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 140: Uint16FromInt32((Int32FromInt32(0x220)/Int32FromInt32(256) | Int32FromInt32(0x220)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 141: Uint16FromInt32((Int32FromInt32(0x220)/Int32FromInt32(256) | Int32FromInt32(0x220)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 142: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 143: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 144: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 145: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 146: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 147: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 148: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 149: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 150: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 151: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 152: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 153: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 154: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 155: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 156: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 157: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 158: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 159: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 160: Uint16FromInt32((Int32FromInt32(0x160)/Int32FromInt32(256) | Int32FromInt32(0x160)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 161: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 162: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 163: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 164: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 165: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 166: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 167: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 168: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 169: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 170: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 171: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 172: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 173: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 174: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 175: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 176: Uint16FromInt32((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 177: Uint16FromInt32((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 178: Uint16FromInt32((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 179: Uint16FromInt32((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 180: Uint16FromInt32((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 181: Uint16FromInt32((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 182: Uint16FromInt32((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 183: Uint16FromInt32((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 184: Uint16FromInt32((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 185: Uint16FromInt32((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 186: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 187: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 188: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 189: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 190: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 191: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 192: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 193: Uint16FromInt32((Int32FromInt32(0x8d5)/Int32FromInt32(256) | Int32FromInt32(0x8d5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 194: Uint16FromInt32((Int32FromInt32(0x8d5)/Int32FromInt32(256) | Int32FromInt32(0x8d5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 195: Uint16FromInt32((Int32FromInt32(0x8d5)/Int32FromInt32(256) | Int32FromInt32(0x8d5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 196: Uint16FromInt32((Int32FromInt32(0x8d5)/Int32FromInt32(256) | Int32FromInt32(0x8d5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 197: Uint16FromInt32((Int32FromInt32(0x8d5)/Int32FromInt32(256) | Int32FromInt32(0x8d5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 198: Uint16FromInt32((Int32FromInt32(0x8d5)/Int32FromInt32(256) | Int32FromInt32(0x8d5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 199: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 200: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 201: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 202: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 203: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 204: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 205: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 206: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 207: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 208: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 209: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 210: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 211: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 212: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 213: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 214: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 215: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 216: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 217: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 218: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 219: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 220: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 221: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 222: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 223: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 224: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 225: Uint16FromInt32((Int32FromInt32(0x8d6)/Int32FromInt32(256) | Int32FromInt32(0x8d6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 226: Uint16FromInt32((Int32FromInt32(0x8d6)/Int32FromInt32(256) | Int32FromInt32(0x8d6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 227: Uint16FromInt32((Int32FromInt32(0x8d6)/Int32FromInt32(256) | Int32FromInt32(0x8d6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 228: Uint16FromInt32((Int32FromInt32(0x8d6)/Int32FromInt32(256) | Int32FromInt32(0x8d6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 229: Uint16FromInt32((Int32FromInt32(0x8d6)/Int32FromInt32(256) | Int32FromInt32(0x8d6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 230: Uint16FromInt32((Int32FromInt32(0x8d6)/Int32FromInt32(256) | Int32FromInt32(0x8d6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 231: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 232: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 233: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 234: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 235: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 236: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 237: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 238: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 239: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 240: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 241: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 242: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 243: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 244: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 245: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 246: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 247: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 248: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 249: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 250: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 251: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 252: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 253: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 254: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)), + 255: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)), +} + +var _ptable = uintptr(unsafe.Pointer(&_table)) + uintptr(128)*2 + +func X__ctype_b_loc(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(unsafe.Pointer(&_ptable)) +} + +const CLOCKS_PER_SEC = 1000000 +const CLOCK_BOOTTIME = 7 +const CLOCK_BOOTTIME_ALARM = 9 +const CLOCK_MONOTONIC = 1 +const CLOCK_MONOTONIC_COARSE = 6 +const CLOCK_MONOTONIC_RAW = 4 +const CLOCK_PROCESS_CPUTIME_ID = 2 +const CLOCK_REALTIME = 0 +const CLOCK_REALTIME_ALARM = 8 +const CLOCK_REALTIME_COARSE = 5 +const CLOCK_SGI_CYCLE = 10 +const CLOCK_TAI = 11 +const CLOCK_THREAD_CPUTIME_ID = 3 +const C_LOCALE = 0 +const DEFAULT_GUARD_MAX = 1048576 +const DEFAULT_GUARD_SIZE = 8192 +const DEFAULT_STACK_MAX = 8388608 +const DEFAULT_STACK_SIZE = 131072 +const DTP_OFFSET = 2048 +const FUTEX_CLOCK_REALTIME = 256 +const FUTEX_CMP_REQUEUE = 4 +const FUTEX_FD = 2 +const FUTEX_LOCK_PI = 6 +const FUTEX_PRIVATE = 128 +const FUTEX_REQUEUE = 3 +const FUTEX_TRYLOCK_PI = 8 +const FUTEX_UNLOCK_PI = 7 +const FUTEX_WAIT = 0 +const FUTEX_WAIT_BITSET = 9 +const FUTEX_WAKE = 1 +const FUTEX_WAKE_OP = 5 +const GAP_ABOVE_TP = 0 +const LC_ALL = 6 +const LC_ALL_MASK = 2147483647 +const LC_COLLATE = 3 +const LC_COLLATE_MASK = 8 +const LC_CTYPE = 0 +const LC_CTYPE_MASK = 1 +const LC_GLOBAL_LOCALE = -1 +const LC_MESSAGES = 5 +const LC_MESSAGES_MASK = 32 +const LC_MONETARY = 4 +const LC_MONETARY_MASK = 16 +const LC_NUMERIC = 1 +const LC_NUMERIC_MASK = 2 +const LC_TIME = 2 +const LC_TIME_MASK = 4 +const LOCALE_NAME_MAX = 23 +const MAP_ANON = 32 +const MAP_ANONYMOUS = 32 +const MAP_DENYWRITE = 2048 +const MAP_EXECUTABLE = 4096 +const MAP_FAILED = -1 +const MAP_FILE = 0 +const MAP_FIXED = 16 +const MAP_FIXED_NOREPLACE = 1048576 +const MAP_GROWSDOWN = 256 +const MAP_HUGETLB = 262144 +const MAP_HUGE_16GB = 2281701376 +const MAP_HUGE_16KB = 939524096 +const MAP_HUGE_16MB = 1610612736 +const MAP_HUGE_1GB = 2013265920 +const MAP_HUGE_1MB = 1342177280 +const MAP_HUGE_256MB = 1879048192 +const MAP_HUGE_2GB = 2080374784 +const MAP_HUGE_2MB = 1409286144 +const MAP_HUGE_32MB = 1677721600 +const MAP_HUGE_512KB = 1275068416 +const MAP_HUGE_512MB = 1946157056 +const MAP_HUGE_64KB = 1073741824 +const MAP_HUGE_8MB = 1543503872 +const MAP_HUGE_MASK = 63 +const MAP_HUGE_SHIFT = 26 +const MAP_LOCKED = 8192 +const MAP_NONBLOCK = 65536 +const MAP_NORESERVE = 16384 +const MAP_POPULATE = 32768 +const MAP_PRIVATE = 2 +const MAP_SHARED = 1 +const MAP_SHARED_VALIDATE = 3 +const MAP_STACK = 131072 +const MAP_SYNC = 524288 +const MAP_TYPE = 15 +const MCL_CURRENT = 1 +const MCL_FUTURE = 2 +const MCL_ONFAULT = 4 +const MS_ASYNC = 1 +const MS_INVALIDATE = 2 +const MS_SYNC = 4 +const POSIX_MADV_DONTNEED = 4 +const POSIX_MADV_NORMAL = 0 +const POSIX_MADV_RANDOM = 1 +const POSIX_MADV_SEQUENTIAL = 2 +const POSIX_MADV_WILLNEED = 3 +const PROT_EXEC = 4 +const PROT_GROWSDOWN = 16777216 +const PROT_GROWSUP = 33554432 +const PROT_NONE = 0 +const PROT_READ = 1 +const PROT_WRITE = 2 +const PTHREAD_BARRIER_SERIAL_THREAD = -1 +const PTHREAD_CANCELED = -1 +const PTHREAD_CANCEL_ASYNCHRONOUS = 1 +const PTHREAD_CANCEL_DEFERRED = 0 +const PTHREAD_CANCEL_DISABLE = 1 +const PTHREAD_CANCEL_ENABLE = 0 +const PTHREAD_CANCEL_MASKED = 2 +const PTHREAD_CREATE_DETACHED = 1 +const PTHREAD_CREATE_JOINABLE = 0 +const PTHREAD_EXPLICIT_SCHED = 1 +const PTHREAD_INHERIT_SCHED = 0 +const PTHREAD_MUTEX_DEFAULT = 0 +const PTHREAD_MUTEX_ERRORCHECK = 2 +const PTHREAD_MUTEX_NORMAL = 0 +const PTHREAD_MUTEX_RECURSIVE = 1 +const PTHREAD_MUTEX_ROBUST = 1 +const PTHREAD_MUTEX_STALLED = 0 +const PTHREAD_ONCE_INIT = 0 +const PTHREAD_PRIO_INHERIT = 1 +const PTHREAD_PRIO_NONE = 0 +const PTHREAD_PRIO_PROTECT = 2 +const PTHREAD_PROCESS_PRIVATE = 0 +const PTHREAD_PROCESS_SHARED = 1 +const PTHREAD_SCOPE_PROCESS = 1 +const PTHREAD_SCOPE_SYSTEM = 0 +const SCHED_BATCH = 3 +const SCHED_DEADLINE = 6 +const SCHED_FIFO = 1 +const SCHED_IDLE = 5 +const SCHED_OTHER = 0 +const SCHED_RESET_ON_FORK = 1073741824 +const SCHED_RR = 2 +const SIGCANCEL = 33 +const SIGSYNCCALL = 34 +const SIGTIMER = 32 +const TIMER_ABSTIME = 1 +const TIME_UTC = 1 +const TP_OFFSET = 0 +const UTF8_LOCALE = 0 +const __CCGO_SIZEOF_GO_MUTEX = 8 +const __SU = 0 +const a_spin = 0 +const pthread = 0 +const tls_mod_off_t = 0 + +type Tlconv = struct { + Fdecimal_point uintptr + Fthousands_sep uintptr + Fgrouping uintptr + Fint_curr_symbol uintptr + Fcurrency_symbol uintptr + Fmon_decimal_point uintptr + Fmon_thousands_sep uintptr + Fmon_grouping uintptr + Fpositive_sign uintptr + Fnegative_sign uintptr + Fint_frac_digits uint8 + Ffrac_digits uint8 + Fp_cs_precedes uint8 + Fp_sep_by_space uint8 + Fn_cs_precedes uint8 + Fn_sep_by_space uint8 + Fp_sign_posn uint8 + Fn_sign_posn uint8 + Fint_p_cs_precedes uint8 + Fint_p_sep_by_space uint8 + Fint_n_cs_precedes uint8 + Fint_n_sep_by_space uint8 + Fint_p_sign_posn uint8 + Fint_n_sign_posn uint8 +} + +type t__locale_map = struct { + Fmap1 uintptr + Fmap_size Tsize_t + Fname [24]uint8 + Fnext uintptr +} + +type Tclockid_t = int32 + +type t__pthread = struct { + Fself uintptr + Fprev uintptr + Fnext uintptr + Fsysinfo Tuintptr_t + Ftid int32 + Ferrno_val int32 + Fdetach_state int32 + Fcancel int32 + Fcanceldisable uint8 + Fcancelasync uint8 + F__ccgo50 uint8 + Fmap_base uintptr + Fmap_size Tsize_t + Fstack uintptr + Fstack_size Tsize_t + Fguard_size Tsize_t + Fresult uintptr + Fcancelbuf uintptr + Ftsd uintptr + Frobust_list struct { + Fhead uintptr + Foff int64 + Fpending uintptr + } + Fh_errno_val int32 + Ftimer_id int32 + Flocale Tlocale_t + Fkilllock [1]int32 + Fdlerror_buf uintptr + Fstdio_locks uintptr + F__ccgo_join_mutex [1]int64 + Fcanary Tuintptr_t + Fdtv uintptr +} + +type Tpthread_once_t = int32 + +type Tpthread_key_t = uint32 + +type Tpthread_spinlock_t = int32 + +type Tpthread_mutexattr_t = struct { + F__attr uint32 +} + +type Tpthread_condattr_t = struct { + F__attr uint32 +} + +type Tpthread_barrierattr_t = struct { + F__attr uint32 +} + +type Tpthread_rwlockattr_t = struct { + F__attr [2]uint32 +} + +type Tpthread_mutex_t = struct { + F__u struct { + F__vi [0][10]int32 + F__p [0][5]uintptr + F__i [10]int32 + } +} + +type Tpthread_cond_t = struct { + F__u struct { + F__vi [0][12]int32 + F__p [0][6]uintptr + F__i [12]int32 + } +} + +type Tpthread_rwlock_t = struct { + F__u struct { + F__vi [0][14]int32 + F__p [0][7]uintptr + F__i [14]int32 + } +} + +type Tpthread_barrier_t = struct { + F__u struct { + F__vi [0][8]int32 + F__p [0][4]uintptr + F__i [8]int32 + } +} + +type Tsched_param = struct { + Fsched_priority int32 + F__reserved1 int32 + F__reserved2 [2]struct { + F__reserved1 Ttime_t + F__reserved2 int64 + } + F__reserved3 int32 +} + +type Ttimer_t = uintptr + +type Ttm = struct { + Ftm_sec int32 + Ftm_min int32 + Ftm_hour int32 + Ftm_mday int32 + Ftm_mon int32 + Ftm_year int32 + Ftm_wday int32 + Ftm_yday int32 + Ftm_isdst int32 + F__tm_gmtoff int64 + F__tm_zone uintptr +} + +type Titimerspec = struct { + Fit_interval Ttimespec + Fit_value Ttimespec +} + +type t__ptcb = struct { + F__f uintptr + F__x uintptr + F__next uintptr +} + +type Tmode_t = uint32 + +const _DT_EXITED = 0 +const _DT_EXITING = 1 +const _DT_JOINABLE = 2 +const _DT_DETACHED = 3 + +func X__ctype_get_mb_cur_max(tls *TLS) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + _ = v1 + if !!(**(**uintptr)(__ccgo_up((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale)) != 0) { + v1 = int32(4) + } else { + v1 = int32(1) + } + return Uint64FromInt32(v1) +} + +var _table1 = [384]Tint32_t{ + 129: int32(1), + 130: int32(2), + 131: int32(3), + 132: int32(4), + 133: int32(5), + 134: int32(6), + 135: int32(7), + 136: int32(8), + 137: int32(9), + 138: int32(10), + 139: int32(11), + 140: int32(12), + 141: int32(13), + 142: int32(14), + 143: int32(15), + 144: int32(16), + 145: int32(17), + 146: int32(18), + 147: int32(19), + 148: int32(20), + 149: int32(21), + 150: int32(22), + 151: int32(23), + 152: int32(24), + 153: int32(25), + 154: int32(26), + 155: int32(27), + 156: int32(28), + 157: int32(29), + 158: int32(30), + 159: int32(31), + 160: int32(32), + 161: int32(33), + 162: int32(34), + 163: int32(35), + 164: int32(36), + 165: int32(37), + 166: int32(38), + 167: int32(39), + 168: int32(40), + 169: int32(41), + 170: int32(42), + 171: int32(43), + 172: int32(44), + 173: int32(45), + 174: int32(46), + 175: int32(47), + 176: int32(48), + 177: int32(49), + 178: int32(50), + 179: int32(51), + 180: int32(52), + 181: int32(53), + 182: int32(54), + 183: int32(55), + 184: int32(56), + 185: int32(57), + 186: int32(58), + 187: int32(59), + 188: int32(60), + 189: int32(61), + 190: int32(62), + 191: int32(63), + 192: int32(64), + 193: int32('a'), + 194: int32('b'), + 195: int32('c'), + 196: int32('d'), + 197: int32('e'), + 198: int32('f'), + 199: int32('g'), + 200: int32('h'), + 201: int32('i'), + 202: int32('j'), + 203: int32('k'), + 204: int32('l'), + 205: int32('m'), + 206: int32('n'), + 207: int32('o'), + 208: int32('p'), + 209: int32('q'), + 210: int32('r'), + 211: int32('s'), + 212: int32('t'), + 213: int32('u'), + 214: int32('v'), + 215: int32('w'), + 216: int32('x'), + 217: int32('y'), + 218: int32('z'), + 219: int32(91), + 220: int32(92), + 221: int32(93), + 222: int32(94), + 223: int32(95), + 224: int32(96), + 225: int32('a'), + 226: int32('b'), + 227: int32('c'), + 228: int32('d'), + 229: int32('e'), + 230: int32('f'), + 231: int32('g'), + 232: int32('h'), + 233: int32('i'), + 234: int32('j'), + 235: int32('k'), + 236: int32('l'), + 237: int32('m'), + 238: int32('n'), + 239: int32('o'), + 240: int32('p'), + 241: int32('q'), + 242: int32('r'), + 243: int32('s'), + 244: int32('t'), + 245: int32('u'), + 246: int32('v'), + 247: int32('w'), + 248: int32('x'), + 249: int32('y'), + 250: int32('z'), + 251: int32(123), + 252: int32(124), + 253: int32(125), + 254: int32(126), + 255: int32(127), +} + +var _ptable1 = uintptr(unsafe.Pointer(&_table1)) + uintptr(128)*4 + +func X__ctype_tolower_loc(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(unsafe.Pointer(&_ptable1)) +} + +var _table2 = [384]Tint32_t{ + 129: int32(1), + 130: int32(2), + 131: int32(3), + 132: int32(4), + 133: int32(5), + 134: int32(6), + 135: int32(7), + 136: int32(8), + 137: int32(9), + 138: int32(10), + 139: int32(11), + 140: int32(12), + 141: int32(13), + 142: int32(14), + 143: int32(15), + 144: int32(16), + 145: int32(17), + 146: int32(18), + 147: int32(19), + 148: int32(20), + 149: int32(21), + 150: int32(22), + 151: int32(23), + 152: int32(24), + 153: int32(25), + 154: int32(26), + 155: int32(27), + 156: int32(28), + 157: int32(29), + 158: int32(30), + 159: int32(31), + 160: int32(32), + 161: int32(33), + 162: int32(34), + 163: int32(35), + 164: int32(36), + 165: int32(37), + 166: int32(38), + 167: int32(39), + 168: int32(40), + 169: int32(41), + 170: int32(42), + 171: int32(43), + 172: int32(44), + 173: int32(45), + 174: int32(46), + 175: int32(47), + 176: int32(48), + 177: int32(49), + 178: int32(50), + 179: int32(51), + 180: int32(52), + 181: int32(53), + 182: int32(54), + 183: int32(55), + 184: int32(56), + 185: int32(57), + 186: int32(58), + 187: int32(59), + 188: int32(60), + 189: int32(61), + 190: int32(62), + 191: int32(63), + 192: int32(64), + 193: int32('A'), + 194: int32('B'), + 195: int32('C'), + 196: int32('D'), + 197: int32('E'), + 198: int32('F'), + 199: int32('G'), + 200: int32('H'), + 201: int32('I'), + 202: int32('J'), + 203: int32('K'), + 204: int32('L'), + 205: int32('M'), + 206: int32('N'), + 207: int32('O'), + 208: int32('P'), + 209: int32('Q'), + 210: int32('R'), + 211: int32('S'), + 212: int32('T'), + 213: int32('U'), + 214: int32('V'), + 215: int32('W'), + 216: int32('X'), + 217: int32('Y'), + 218: int32('Z'), + 219: int32(91), + 220: int32(92), + 221: int32(93), + 222: int32(94), + 223: int32(95), + 224: int32(96), + 225: int32('A'), + 226: int32('B'), + 227: int32('C'), + 228: int32('D'), + 229: int32('E'), + 230: int32('F'), + 231: int32('G'), + 232: int32('H'), + 233: int32('I'), + 234: int32('J'), + 235: int32('K'), + 236: int32('L'), + 237: int32('M'), + 238: int32('N'), + 239: int32('O'), + 240: int32('P'), + 241: int32('Q'), + 242: int32('R'), + 243: int32('S'), + 244: int32('T'), + 245: int32('U'), + 246: int32('V'), + 247: int32('W'), + 248: int32('X'), + 249: int32('Y'), + 250: int32('Z'), + 251: int32(123), + 252: int32(124), + 253: int32(125), + 254: int32(126), + 255: int32(127), +} + +var _ptable2 = uintptr(unsafe.Pointer(&_table2)) + uintptr(128)*4 + +func X__ctype_toupper_loc(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(unsafe.Pointer(&_ptable2)) +} + +func Xisalnum(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(BoolInt32(Uint32FromInt32(c)|uint32(32)-uint32('a') < uint32(26)) != 0 || BoolInt32(Uint32FromInt32(c)-uint32('0') < uint32(10)) != 0) +} + +func X__isalnum_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xisalnum(tls, c) +} + +func Xisalnum_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__isalnum_l(tls, c, l) +} + +func Xisalpha(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(Uint32FromInt32(c)|uint32(32)-uint32('a') < uint32(26)) +} + +func X__isalpha_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xisalpha(tls, c) +} + +func Xisalpha_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__isalpha_l(tls, c, l) +} + +func Xisascii(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(!(c & ^Int32FromInt32(0x7f) != 0)) +} + +func Xisblank(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(c == int32(' ') || c == int32('\t')) +} + +func X__isblank_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xisblank(tls, c) +} + +func Xisblank_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__isblank_l(tls, c, l) +} + +func Xiscntrl(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(Uint32FromInt32(c) < uint32(0x20) || c == int32(0x7f)) +} + +func X__iscntrl_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiscntrl(tls, c) +} + +func Xiscntrl_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iscntrl_l(tls, c, l) +} + +func Xisdigit(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(Uint32FromInt32(c)-uint32('0') < uint32(10)) +} + +func X__isdigit_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xisdigit(tls, c) +} + +func Xisdigit_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__isdigit_l(tls, c, l) +} + +func Xisgraph(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(Uint32FromInt32(c)-uint32(0x21) < uint32(0x5e)) +} + +func X__isgraph_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xisgraph(tls, c) +} + +func Xisgraph_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__isgraph_l(tls, c, l) +} + +func Xislower(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(Uint32FromInt32(c)-uint32('a') < uint32(26)) +} + +func X__islower_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xislower(tls, c) +} + +func Xislower_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__islower_l(tls, c, l) +} + +func Xisprint(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(Uint32FromInt32(c)-uint32(0x20) < uint32(0x5f)) +} + +func X__isprint_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xisprint(tls, c) +} + +func Xisprint_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__isprint_l(tls, c, l) +} + +func Xispunct(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(BoolInt32(Uint32FromInt32(c)-uint32(0x21) < uint32(0x5e)) != 0 && !(Xisalnum(tls, c) != 0)) +} + +func X__ispunct_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xispunct(tls, c) +} + +func Xispunct_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__ispunct_l(tls, c, l) +} + +func Xisspace(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(c == int32(' ') || Uint32FromInt32(c)-uint32('\t') < uint32(5)) +} + +func X__isspace_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xisspace(tls, c) +} + +func Xisspace_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__isspace_l(tls, c, l) +} + +func Xisupper(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(Uint32FromInt32(c)-uint32('A') < uint32(26)) +} + +func X__isupper_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xisupper(tls, c) +} + +func Xisupper_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__isupper_l(tls, c, l) +} + +type Twint_t = uint32 + +type Twctype_t = uint64 + +type Twctrans_t = uintptr + +func Xiswalnum(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(BoolInt32(wc-uint32('0') < uint32(10)) != 0 || Xiswalpha(tls, wc) != 0) +} + +func X__iswalnum_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswalnum(tls, c) +} + +func Xiswalnum_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswalnum_l(tls, c, l) +} + +var _table3 = [3904]uint8{ + 0: uint8(18), + 1: uint8(17), + 2: uint8(19), + 3: uint8(20), + 4: uint8(21), + 5: uint8(22), + 6: uint8(23), + 7: uint8(24), + 8: uint8(25), + 9: uint8(26), + 10: uint8(27), + 11: uint8(28), + 12: uint8(29), + 13: uint8(30), + 14: uint8(31), + 15: uint8(32), + 16: uint8(33), + 17: uint8(17), + 18: uint8(34), + 19: uint8(35), + 20: uint8(36), + 21: uint8(17), + 22: uint8(37), + 23: uint8(38), + 24: uint8(39), + 25: uint8(40), + 26: uint8(41), + 27: uint8(42), + 28: uint8(43), + 29: uint8(44), + 30: uint8(17), + 31: uint8(45), + 32: uint8(46), + 33: uint8(47), + 34: uint8(16), + 35: uint8(16), + 36: uint8(48), + 37: uint8(16), + 38: uint8(16), + 39: uint8(16), + 40: uint8(16), + 41: uint8(16), + 42: uint8(16), + 43: uint8(16), + 44: uint8(49), + 45: uint8(50), + 46: uint8(51), + 47: uint8(16), + 48: uint8(52), + 49: uint8(53), + 50: uint8(16), + 51: uint8(16), + 52: uint8(17), + 53: uint8(17), + 54: uint8(17), + 55: uint8(17), + 56: uint8(17), + 57: uint8(17), + 58: uint8(17), + 59: uint8(17), + 60: uint8(17), + 61: uint8(17), + 62: uint8(17), + 63: uint8(17), + 64: uint8(17), + 65: uint8(17), + 66: uint8(17), + 67: uint8(17), + 68: uint8(17), + 69: uint8(17), + 70: uint8(17), + 71: uint8(17), + 72: uint8(17), + 73: uint8(17), + 74: uint8(17), + 75: uint8(17), + 76: uint8(17), + 77: uint8(54), + 78: uint8(17), + 79: uint8(17), + 80: uint8(17), + 81: uint8(17), + 82: uint8(17), + 83: uint8(17), + 84: uint8(17), + 85: uint8(17), + 86: uint8(17), + 87: uint8(17), + 88: uint8(17), + 89: uint8(17), + 90: uint8(17), + 91: uint8(17), + 92: uint8(17), + 93: uint8(17), + 94: uint8(17), + 95: uint8(17), + 96: uint8(17), + 97: uint8(17), + 98: uint8(17), + 99: uint8(17), + 100: uint8(17), + 101: uint8(17), + 102: uint8(17), + 103: uint8(17), + 104: uint8(17), + 105: uint8(17), + 106: uint8(17), + 107: uint8(17), + 108: uint8(17), + 109: uint8(17), + 110: uint8(17), + 111: uint8(17), + 112: uint8(17), + 113: uint8(17), + 114: uint8(17), + 115: uint8(17), + 116: uint8(17), + 117: uint8(17), + 118: uint8(17), + 119: uint8(17), + 120: uint8(17), + 121: uint8(17), + 122: uint8(17), + 123: uint8(17), + 124: uint8(17), + 125: uint8(17), + 126: uint8(17), + 127: uint8(17), + 128: uint8(17), + 129: uint8(17), + 130: uint8(17), + 131: uint8(17), + 132: uint8(17), + 133: uint8(17), + 134: uint8(17), + 135: uint8(17), + 136: uint8(17), + 137: uint8(17), + 138: uint8(17), + 139: uint8(17), + 140: uint8(17), + 141: uint8(17), + 142: uint8(17), + 143: uint8(17), + 144: uint8(17), + 145: uint8(17), + 146: uint8(17), + 147: uint8(17), + 148: uint8(17), + 149: uint8(17), + 150: uint8(17), + 151: uint8(17), + 152: uint8(17), + 153: uint8(17), + 154: uint8(17), + 155: uint8(17), + 156: uint8(17), + 157: uint8(17), + 158: uint8(17), + 159: uint8(55), + 160: uint8(17), + 161: uint8(17), + 162: uint8(17), + 163: uint8(17), + 164: uint8(56), + 165: uint8(17), + 166: uint8(57), + 167: uint8(58), + 168: uint8(59), + 169: uint8(60), + 170: uint8(61), + 171: uint8(62), + 172: uint8(17), + 173: uint8(17), + 174: uint8(17), + 175: uint8(17), + 176: uint8(17), + 177: uint8(17), + 178: uint8(17), + 179: uint8(17), + 180: uint8(17), + 181: uint8(17), + 182: uint8(17), + 183: uint8(17), + 184: uint8(17), + 185: uint8(17), + 186: uint8(17), + 187: uint8(17), + 188: uint8(17), + 189: uint8(17), + 190: uint8(17), + 191: uint8(17), + 192: uint8(17), + 193: uint8(17), + 194: uint8(17), + 195: uint8(17), + 196: uint8(17), + 197: uint8(17), + 198: uint8(17), + 199: uint8(17), + 200: uint8(17), + 201: uint8(17), + 202: uint8(17), + 203: uint8(17), + 204: uint8(17), + 205: uint8(17), + 206: uint8(17), + 207: uint8(17), + 208: uint8(17), + 209: uint8(17), + 210: uint8(17), + 211: uint8(17), + 212: uint8(17), + 213: uint8(17), + 214: uint8(17), + 215: uint8(63), + 216: uint8(16), + 217: uint8(16), + 218: uint8(16), + 219: uint8(16), + 220: uint8(16), + 221: uint8(16), + 222: uint8(16), + 223: uint8(16), + 224: uint8(16), + 225: uint8(16), + 226: uint8(16), + 227: uint8(16), + 228: uint8(16), + 229: uint8(16), + 230: uint8(16), + 231: uint8(16), + 232: uint8(16), + 233: uint8(16), + 234: uint8(16), + 235: uint8(16), + 236: uint8(16), + 237: uint8(16), + 238: uint8(16), + 239: uint8(16), + 240: uint8(16), + 241: uint8(16), + 242: uint8(16), + 243: uint8(16), + 244: uint8(16), + 245: uint8(16), + 246: uint8(16), + 247: uint8(16), + 248: uint8(16), + 249: uint8(17), + 250: uint8(64), + 251: uint8(65), + 252: uint8(17), + 253: uint8(66), + 254: uint8(67), + 255: uint8(68), + 256: uint8(69), + 257: uint8(70), + 258: uint8(71), + 259: uint8(72), + 260: uint8(73), + 261: uint8(74), + 262: uint8(17), + 263: uint8(75), + 264: uint8(76), + 265: uint8(77), + 266: uint8(78), + 267: uint8(79), + 268: uint8(80), + 269: uint8(81), + 270: uint8(16), + 271: uint8(82), + 272: uint8(83), + 273: uint8(84), + 274: uint8(85), + 275: uint8(86), + 276: uint8(87), + 277: uint8(88), + 278: uint8(89), + 279: uint8(90), + 280: uint8(91), + 281: uint8(92), + 282: uint8(93), + 283: uint8(16), + 284: uint8(94), + 285: uint8(95), + 286: uint8(96), + 287: uint8(16), + 288: uint8(17), + 289: uint8(17), + 290: uint8(17), + 291: uint8(97), + 292: uint8(98), + 293: uint8(99), + 294: uint8(16), + 295: uint8(16), + 296: uint8(16), + 297: uint8(16), + 298: uint8(16), + 299: uint8(16), + 300: uint8(16), + 301: uint8(16), + 302: uint8(16), + 303: uint8(16), + 304: uint8(17), + 305: uint8(17), + 306: uint8(17), + 307: uint8(17), + 308: uint8(100), + 309: uint8(16), + 310: uint8(16), + 311: uint8(16), + 312: uint8(16), + 313: uint8(16), + 314: uint8(16), + 315: uint8(16), + 316: uint8(16), + 317: uint8(16), + 318: uint8(16), + 319: uint8(16), + 320: uint8(16), + 321: uint8(16), + 322: uint8(16), + 323: uint8(16), + 324: uint8(17), + 325: uint8(17), + 326: uint8(101), + 327: uint8(16), + 328: uint8(16), + 329: uint8(16), + 330: uint8(16), + 331: uint8(16), + 332: uint8(16), + 333: uint8(16), + 334: uint8(16), + 335: uint8(16), + 336: uint8(16), + 337: uint8(16), + 338: uint8(16), + 339: uint8(16), + 340: uint8(16), + 341: uint8(16), + 342: uint8(16), + 343: uint8(16), + 344: uint8(16), + 345: uint8(16), + 346: uint8(16), + 347: uint8(16), + 348: uint8(16), + 349: uint8(16), + 350: uint8(16), + 351: uint8(16), + 352: uint8(16), + 353: uint8(16), + 354: uint8(16), + 355: uint8(16), + 356: uint8(16), + 357: uint8(16), + 358: uint8(16), + 359: uint8(16), + 360: uint8(17), + 361: uint8(17), + 362: uint8(102), + 363: uint8(103), + 364: uint8(16), + 365: uint8(16), + 366: uint8(104), + 367: uint8(105), + 368: uint8(17), + 369: uint8(17), + 370: uint8(17), + 371: uint8(17), + 372: uint8(17), + 373: uint8(17), + 374: uint8(17), + 375: uint8(17), + 376: uint8(17), + 377: uint8(17), + 378: uint8(17), + 379: uint8(17), + 380: uint8(17), + 381: uint8(17), + 382: uint8(17), + 383: uint8(17), + 384: uint8(17), + 385: uint8(17), + 386: uint8(17), + 387: uint8(17), + 388: uint8(17), + 389: uint8(17), + 390: uint8(17), + 391: uint8(106), + 392: uint8(17), + 393: uint8(17), + 394: uint8(107), + 395: uint8(16), + 396: uint8(16), + 397: uint8(16), + 398: uint8(16), + 399: uint8(16), + 400: uint8(16), + 401: uint8(16), + 402: uint8(16), + 403: uint8(16), + 404: uint8(16), + 405: uint8(16), + 406: uint8(16), + 407: uint8(16), + 408: uint8(16), + 409: uint8(16), + 410: uint8(16), + 411: uint8(16), + 412: uint8(16), + 413: uint8(16), + 414: uint8(16), + 415: uint8(16), + 416: uint8(16), + 417: uint8(16), + 418: uint8(16), + 419: uint8(16), + 420: uint8(16), + 421: uint8(16), + 422: uint8(16), + 423: uint8(16), + 424: uint8(16), + 425: uint8(16), + 426: uint8(16), + 427: uint8(16), + 428: uint8(16), + 429: uint8(16), + 430: uint8(16), + 431: uint8(16), + 432: uint8(17), + 433: uint8(108), + 434: uint8(109), + 435: uint8(16), + 436: uint8(16), + 437: uint8(16), + 438: uint8(16), + 439: uint8(16), + 440: uint8(16), + 441: uint8(16), + 442: uint8(16), + 443: uint8(16), + 444: uint8(110), + 445: uint8(16), + 446: uint8(16), + 447: uint8(16), + 448: uint8(16), + 449: uint8(16), + 450: uint8(16), + 451: uint8(16), + 452: uint8(16), + 453: uint8(16), + 454: uint8(16), + 455: uint8(16), + 456: uint8(16), + 457: uint8(16), + 458: uint8(16), + 459: uint8(16), + 460: uint8(16), + 461: uint8(16), + 462: uint8(16), + 463: uint8(16), + 464: uint8(16), + 465: uint8(16), + 466: uint8(16), + 467: uint8(16), + 468: uint8(111), + 469: uint8(112), + 470: uint8(113), + 471: uint8(114), + 472: uint8(16), + 473: uint8(16), + 474: uint8(16), + 475: uint8(16), + 476: uint8(16), + 477: uint8(16), + 478: uint8(16), + 479: uint8(16), + 480: uint8(115), + 481: uint8(116), + 482: uint8(117), + 483: uint8(16), + 484: uint8(16), + 485: uint8(16), + 486: uint8(16), + 487: uint8(16), + 488: uint8(118), + 489: uint8(119), + 490: uint8(16), + 491: uint8(16), + 492: uint8(16), + 493: uint8(16), + 494: uint8(120), + 495: uint8(16), + 496: uint8(16), + 497: uint8(121), + 498: uint8(16), + 499: uint8(16), + 500: uint8(16), + 501: uint8(16), + 502: uint8(16), + 503: uint8(16), + 504: uint8(16), + 505: uint8(16), + 506: uint8(16), + 507: uint8(16), + 508: uint8(16), + 509: uint8(16), + 510: uint8(16), + 511: uint8(16), + 544: uint8(255), + 545: uint8(255), + 546: uint8(255), + 547: uint8(255), + 548: uint8(255), + 549: uint8(255), + 550: uint8(255), + 551: uint8(255), + 552: uint8(255), + 553: uint8(255), + 554: uint8(255), + 555: uint8(255), + 556: uint8(255), + 557: uint8(255), + 558: uint8(255), + 559: uint8(255), + 560: uint8(255), + 561: uint8(255), + 562: uint8(255), + 563: uint8(255), + 564: uint8(255), + 565: uint8(255), + 566: uint8(255), + 567: uint8(255), + 568: uint8(255), + 569: uint8(255), + 570: uint8(255), + 571: uint8(255), + 572: uint8(255), + 573: uint8(255), + 574: uint8(255), + 575: uint8(255), + 584: uint8(254), + 585: uint8(255), + 586: uint8(255), + 587: uint8(7), + 588: uint8(254), + 589: uint8(255), + 590: uint8(255), + 591: uint8(7), + 597: uint8(4), + 598: uint8(32), + 599: uint8(4), + 600: uint8(255), + 601: uint8(255), + 602: uint8(127), + 603: uint8(255), + 604: uint8(255), + 605: uint8(255), + 606: uint8(127), + 607: uint8(255), + 608: uint8(255), + 609: uint8(255), + 610: uint8(255), + 611: uint8(255), + 612: uint8(255), + 613: uint8(255), + 614: uint8(255), + 615: uint8(255), + 616: uint8(255), + 617: uint8(255), + 618: uint8(255), + 619: uint8(255), + 620: uint8(255), + 621: uint8(255), + 622: uint8(255), + 623: uint8(255), + 624: uint8(255), + 625: uint8(255), + 626: uint8(255), + 627: uint8(255), + 628: uint8(255), + 629: uint8(255), + 630: uint8(255), + 631: uint8(255), + 632: uint8(195), + 633: uint8(255), + 634: uint8(3), + 636: uint8(31), + 637: uint8(80), + 648: uint8(32), + 654: uint8(223), + 655: uint8(188), + 656: uint8(64), + 657: uint8(215), + 658: uint8(255), + 659: uint8(255), + 660: uint8(251), + 661: uint8(255), + 662: uint8(255), + 663: uint8(255), + 664: uint8(255), + 665: uint8(255), + 666: uint8(255), + 667: uint8(255), + 668: uint8(255), + 669: uint8(255), + 670: uint8(191), + 671: uint8(255), + 672: uint8(255), + 673: uint8(255), + 674: uint8(255), + 675: uint8(255), + 676: uint8(255), + 677: uint8(255), + 678: uint8(255), + 679: uint8(255), + 680: uint8(255), + 681: uint8(255), + 682: uint8(255), + 683: uint8(255), + 684: uint8(255), + 685: uint8(255), + 686: uint8(255), + 687: uint8(255), + 688: uint8(3), + 689: uint8(252), + 690: uint8(255), + 691: uint8(255), + 692: uint8(255), + 693: uint8(255), + 694: uint8(255), + 695: uint8(255), + 696: uint8(255), + 697: uint8(255), + 698: uint8(255), + 699: uint8(255), + 700: uint8(255), + 701: uint8(255), + 702: uint8(255), + 703: uint8(255), + 704: uint8(255), + 705: uint8(255), + 706: uint8(255), + 707: uint8(255), + 708: uint8(255), + 709: uint8(255), + 710: uint8(254), + 711: uint8(255), + 712: uint8(255), + 713: uint8(255), + 714: uint8(127), + 715: uint8(2), + 716: uint8(255), + 717: uint8(255), + 718: uint8(255), + 719: uint8(255), + 720: uint8(255), + 721: uint8(1), + 726: uint8(255), + 727: uint8(191), + 728: uint8(182), + 730: uint8(255), + 731: uint8(255), + 732: uint8(255), + 733: uint8(135), + 734: uint8(7), + 738: uint8(255), + 739: uint8(7), + 740: uint8(255), + 741: uint8(255), + 742: uint8(255), + 743: uint8(255), + 744: uint8(255), + 745: uint8(255), + 746: uint8(255), + 747: uint8(254), + 748: uint8(255), + 749: uint8(195), + 750: uint8(255), + 751: uint8(255), + 752: uint8(255), + 753: uint8(255), + 754: uint8(255), + 755: uint8(255), + 756: uint8(255), + 757: uint8(255), + 758: uint8(255), + 759: uint8(255), + 760: uint8(255), + 761: uint8(255), + 762: uint8(239), + 763: uint8(31), + 764: uint8(254), + 765: uint8(225), + 766: uint8(255), + 767: uint8(159), + 770: uint8(255), + 771: uint8(255), + 772: uint8(255), + 773: uint8(255), + 774: uint8(255), + 775: uint8(255), + 777: uint8(224), + 778: uint8(255), + 779: uint8(255), + 780: uint8(255), + 781: uint8(255), + 782: uint8(255), + 783: uint8(255), + 784: uint8(255), + 785: uint8(255), + 786: uint8(255), + 787: uint8(255), + 788: uint8(255), + 789: uint8(255), + 790: uint8(3), + 792: uint8(255), + 793: uint8(255), + 794: uint8(255), + 795: uint8(255), + 796: uint8(255), + 797: uint8(7), + 798: uint8(48), + 799: uint8(4), + 800: uint8(255), + 801: uint8(255), + 802: uint8(255), + 803: uint8(252), + 804: uint8(255), + 805: uint8(31), + 808: uint8(255), + 809: uint8(255), + 810: uint8(255), + 811: uint8(1), + 812: uint8(255), + 813: uint8(7), + 820: uint8(255), + 821: uint8(255), + 822: uint8(223), + 823: uint8(63), + 826: uint8(240), + 827: uint8(255), + 828: uint8(248), + 829: uint8(3), + 830: uint8(255), + 831: uint8(255), + 832: uint8(255), + 833: uint8(255), + 834: uint8(255), + 835: uint8(255), + 836: uint8(255), + 837: uint8(255), + 838: uint8(255), + 839: uint8(239), + 840: uint8(255), + 841: uint8(223), + 842: uint8(225), + 843: uint8(255), + 844: uint8(207), + 845: uint8(255), + 846: uint8(254), + 847: uint8(255), + 848: uint8(239), + 849: uint8(159), + 850: uint8(249), + 851: uint8(255), + 852: uint8(255), + 853: uint8(253), + 854: uint8(197), + 855: uint8(227), + 856: uint8(159), + 857: uint8(89), + 858: uint8(128), + 859: uint8(176), + 860: uint8(207), + 861: uint8(255), + 862: uint8(3), + 863: uint8(16), + 864: uint8(238), + 865: uint8(135), + 866: uint8(249), + 867: uint8(255), + 868: uint8(255), + 869: uint8(253), + 870: uint8(109), + 871: uint8(195), + 872: uint8(135), + 873: uint8(25), + 874: uint8(2), + 875: uint8(94), + 876: uint8(192), + 877: uint8(255), + 878: uint8(63), + 880: uint8(238), + 881: uint8(191), + 882: uint8(251), + 883: uint8(255), + 884: uint8(255), + 885: uint8(253), + 886: uint8(237), + 887: uint8(227), + 888: uint8(191), + 889: uint8(27), + 890: uint8(1), + 892: uint8(207), + 893: uint8(255), + 895: uint8(30), + 896: uint8(238), + 897: uint8(159), + 898: uint8(249), + 899: uint8(255), + 900: uint8(255), + 901: uint8(253), + 902: uint8(237), + 903: uint8(227), + 904: uint8(159), + 905: uint8(25), + 906: uint8(192), + 907: uint8(176), + 908: uint8(207), + 909: uint8(255), + 910: uint8(2), + 912: uint8(236), + 913: uint8(199), + 914: uint8(61), + 915: uint8(214), + 916: uint8(24), + 917: uint8(199), + 918: uint8(255), + 919: uint8(195), + 920: uint8(199), + 921: uint8(29), + 922: uint8(129), + 924: uint8(192), + 925: uint8(255), + 928: uint8(239), + 929: uint8(223), + 930: uint8(253), + 931: uint8(255), + 932: uint8(255), + 933: uint8(253), + 934: uint8(255), + 935: uint8(227), + 936: uint8(223), + 937: uint8(29), + 938: uint8(96), + 939: uint8(7), + 940: uint8(207), + 941: uint8(255), + 944: uint8(239), + 945: uint8(223), + 946: uint8(253), + 947: uint8(255), + 948: uint8(255), + 949: uint8(253), + 950: uint8(239), + 951: uint8(227), + 952: uint8(223), + 953: uint8(29), + 954: uint8(96), + 955: uint8(64), + 956: uint8(207), + 957: uint8(255), + 958: uint8(6), + 960: uint8(239), + 961: uint8(223), + 962: uint8(253), + 963: uint8(255), + 964: uint8(255), + 965: uint8(255), + 966: uint8(255), + 967: uint8(231), + 968: uint8(223), + 969: uint8(93), + 970: uint8(240), + 971: uint8(128), + 972: uint8(207), + 973: uint8(255), + 975: uint8(252), + 976: uint8(236), + 977: uint8(255), + 978: uint8(127), + 979: uint8(252), + 980: uint8(255), + 981: uint8(255), + 982: uint8(251), + 983: uint8(47), + 984: uint8(127), + 985: uint8(128), + 986: uint8(95), + 987: uint8(255), + 988: uint8(192), + 989: uint8(255), + 990: uint8(12), + 992: uint8(254), + 993: uint8(255), + 994: uint8(255), + 995: uint8(255), + 996: uint8(255), + 997: uint8(127), + 998: uint8(255), + 999: uint8(7), + 1000: uint8(63), + 1001: uint8(32), + 1002: uint8(255), + 1003: uint8(3), + 1008: uint8(214), + 1009: uint8(247), + 1010: uint8(255), + 1011: uint8(255), + 1012: uint8(175), + 1013: uint8(255), + 1014: uint8(255), + 1015: uint8(59), + 1016: uint8(95), + 1017: uint8(32), + 1018: uint8(255), + 1019: uint8(243), + 1024: uint8(1), + 1028: uint8(255), + 1029: uint8(3), + 1032: uint8(255), + 1033: uint8(254), + 1034: uint8(255), + 1035: uint8(255), + 1036: uint8(255), + 1037: uint8(31), + 1038: uint8(254), + 1039: uint8(255), + 1040: uint8(3), + 1041: uint8(255), + 1042: uint8(255), + 1043: uint8(254), + 1044: uint8(255), + 1045: uint8(255), + 1046: uint8(255), + 1047: uint8(31), + 1056: uint8(255), + 1057: uint8(255), + 1058: uint8(255), + 1059: uint8(255), + 1060: uint8(255), + 1061: uint8(255), + 1062: uint8(127), + 1063: uint8(249), + 1064: uint8(255), + 1065: uint8(3), + 1066: uint8(255), + 1067: uint8(255), + 1068: uint8(255), + 1069: uint8(255), + 1070: uint8(255), + 1071: uint8(255), + 1072: uint8(255), + 1073: uint8(255), + 1074: uint8(255), + 1075: uint8(63), + 1076: uint8(255), + 1077: uint8(255), + 1078: uint8(255), + 1079: uint8(255), + 1080: uint8(191), + 1081: uint8(32), + 1082: uint8(255), + 1083: uint8(255), + 1084: uint8(255), + 1085: uint8(255), + 1086: uint8(255), + 1087: uint8(247), + 1088: uint8(255), + 1089: uint8(255), + 1090: uint8(255), + 1091: uint8(255), + 1092: uint8(255), + 1093: uint8(255), + 1094: uint8(255), + 1095: uint8(255), + 1096: uint8(255), + 1097: uint8(61), + 1098: uint8(127), + 1099: uint8(61), + 1100: uint8(255), + 1101: uint8(255), + 1102: uint8(255), + 1103: uint8(255), + 1104: uint8(255), + 1105: uint8(61), + 1106: uint8(255), + 1107: uint8(255), + 1108: uint8(255), + 1109: uint8(255), + 1110: uint8(61), + 1111: uint8(127), + 1112: uint8(61), + 1113: uint8(255), + 1114: uint8(127), + 1115: uint8(255), + 1116: uint8(255), + 1117: uint8(255), + 1118: uint8(255), + 1119: uint8(255), + 1120: uint8(255), + 1121: uint8(255), + 1122: uint8(61), + 1123: uint8(255), + 1124: uint8(255), + 1125: uint8(255), + 1126: uint8(255), + 1127: uint8(255), + 1128: uint8(255), + 1129: uint8(255), + 1130: uint8(255), + 1131: uint8(7), + 1136: uint8(255), + 1137: uint8(255), + 1140: uint8(255), + 1141: uint8(255), + 1142: uint8(255), + 1143: uint8(255), + 1144: uint8(255), + 1145: uint8(255), + 1146: uint8(255), + 1147: uint8(255), + 1148: uint8(255), + 1149: uint8(255), + 1150: uint8(63), + 1151: uint8(63), + 1152: uint8(254), + 1153: uint8(255), + 1154: uint8(255), + 1155: uint8(255), + 1156: uint8(255), + 1157: uint8(255), + 1158: uint8(255), + 1159: uint8(255), + 1160: uint8(255), + 1161: uint8(255), + 1162: uint8(255), + 1163: uint8(255), + 1164: uint8(255), + 1165: uint8(255), + 1166: uint8(255), + 1167: uint8(255), + 1168: uint8(255), + 1169: uint8(255), + 1170: uint8(255), + 1171: uint8(255), + 1172: uint8(255), + 1173: uint8(255), + 1174: uint8(255), + 1175: uint8(255), + 1176: uint8(255), + 1177: uint8(255), + 1178: uint8(255), + 1179: uint8(255), + 1180: uint8(255), + 1181: uint8(255), + 1182: uint8(255), + 1183: uint8(255), + 1184: uint8(255), + 1185: uint8(255), + 1186: uint8(255), + 1187: uint8(255), + 1188: uint8(255), + 1189: uint8(255), + 1190: uint8(255), + 1191: uint8(255), + 1192: uint8(255), + 1193: uint8(255), + 1194: uint8(255), + 1195: uint8(255), + 1196: uint8(255), + 1197: uint8(159), + 1198: uint8(255), + 1199: uint8(255), + 1200: uint8(254), + 1201: uint8(255), + 1202: uint8(255), + 1203: uint8(7), + 1204: uint8(255), + 1205: uint8(255), + 1206: uint8(255), + 1207: uint8(255), + 1208: uint8(255), + 1209: uint8(255), + 1210: uint8(255), + 1211: uint8(255), + 1212: uint8(255), + 1213: uint8(199), + 1214: uint8(255), + 1215: uint8(1), + 1216: uint8(255), + 1217: uint8(223), + 1218: uint8(15), + 1220: uint8(255), + 1221: uint8(255), + 1222: uint8(15), + 1224: uint8(255), + 1225: uint8(255), + 1226: uint8(15), + 1228: uint8(255), + 1229: uint8(223), + 1230: uint8(13), + 1232: uint8(255), + 1233: uint8(255), + 1234: uint8(255), + 1235: uint8(255), + 1236: uint8(255), + 1237: uint8(255), + 1238: uint8(207), + 1239: uint8(255), + 1240: uint8(255), + 1241: uint8(1), + 1242: uint8(128), + 1243: uint8(16), + 1244: uint8(255), + 1245: uint8(3), + 1250: uint8(255), + 1251: uint8(3), + 1252: uint8(255), + 1253: uint8(255), + 1254: uint8(255), + 1255: uint8(255), + 1256: uint8(255), + 1257: uint8(255), + 1258: uint8(255), + 1259: uint8(255), + 1260: uint8(255), + 1261: uint8(255), + 1262: uint8(255), + 1263: uint8(1), + 1264: uint8(255), + 1265: uint8(255), + 1266: uint8(255), + 1267: uint8(255), + 1268: uint8(255), + 1269: uint8(7), + 1270: uint8(255), + 1271: uint8(255), + 1272: uint8(255), + 1273: uint8(255), + 1274: uint8(255), + 1275: uint8(255), + 1276: uint8(255), + 1277: uint8(255), + 1278: uint8(63), + 1280: uint8(255), + 1281: uint8(255), + 1282: uint8(255), + 1283: uint8(127), + 1284: uint8(255), + 1285: uint8(15), + 1286: uint8(255), + 1287: uint8(1), + 1288: uint8(192), + 1289: uint8(255), + 1290: uint8(255), + 1291: uint8(255), + 1292: uint8(255), + 1293: uint8(63), + 1294: uint8(31), + 1296: uint8(255), + 1297: uint8(255), + 1298: uint8(255), + 1299: uint8(255), + 1300: uint8(255), + 1301: uint8(15), + 1302: uint8(255), + 1303: uint8(255), + 1304: uint8(255), + 1305: uint8(3), + 1306: uint8(255), + 1307: uint8(3), + 1312: uint8(255), + 1313: uint8(255), + 1314: uint8(255), + 1315: uint8(15), + 1316: uint8(255), + 1317: uint8(255), + 1318: uint8(255), + 1319: uint8(255), + 1320: uint8(255), + 1321: uint8(255), + 1322: uint8(255), + 1323: uint8(127), + 1324: uint8(254), + 1325: uint8(255), + 1326: uint8(31), + 1328: uint8(255), + 1329: uint8(3), + 1330: uint8(255), + 1331: uint8(3), + 1332: uint8(128), + 1344: uint8(255), + 1345: uint8(255), + 1346: uint8(255), + 1347: uint8(255), + 1348: uint8(255), + 1349: uint8(255), + 1350: uint8(239), + 1351: uint8(255), + 1352: uint8(239), + 1353: uint8(15), + 1354: uint8(255), + 1355: uint8(3), + 1360: uint8(255), + 1361: uint8(255), + 1362: uint8(255), + 1363: uint8(255), + 1364: uint8(255), + 1365: uint8(243), + 1366: uint8(255), + 1367: uint8(255), + 1368: uint8(255), + 1369: uint8(255), + 1370: uint8(255), + 1371: uint8(255), + 1372: uint8(191), + 1373: uint8(255), + 1374: uint8(3), + 1376: uint8(255), + 1377: uint8(255), + 1378: uint8(255), + 1379: uint8(255), + 1380: uint8(255), + 1381: uint8(255), + 1382: uint8(127), + 1384: uint8(255), + 1385: uint8(227), + 1386: uint8(255), + 1387: uint8(255), + 1388: uint8(255), + 1389: uint8(255), + 1390: uint8(255), + 1391: uint8(63), + 1392: uint8(255), + 1393: uint8(1), + 1394: uint8(255), + 1395: uint8(255), + 1396: uint8(255), + 1397: uint8(255), + 1398: uint8(255), + 1399: uint8(231), + 1405: uint8(222), + 1406: uint8(111), + 1407: uint8(4), + 1408: uint8(255), + 1409: uint8(255), + 1410: uint8(255), + 1411: uint8(255), + 1412: uint8(255), + 1413: uint8(255), + 1414: uint8(255), + 1415: uint8(255), + 1416: uint8(255), + 1417: uint8(255), + 1418: uint8(255), + 1419: uint8(255), + 1420: uint8(255), + 1421: uint8(255), + 1422: uint8(255), + 1423: uint8(255), + 1424: uint8(255), + 1425: uint8(255), + 1426: uint8(255), + 1427: uint8(255), + 1428: uint8(255), + 1429: uint8(255), + 1430: uint8(255), + 1431: uint8(255), + 1436: uint8(128), + 1437: uint8(255), + 1438: uint8(31), + 1440: uint8(255), + 1441: uint8(255), + 1442: uint8(63), + 1443: uint8(63), + 1444: uint8(255), + 1445: uint8(255), + 1446: uint8(255), + 1447: uint8(255), + 1448: uint8(63), + 1449: uint8(63), + 1450: uint8(255), + 1451: uint8(170), + 1452: uint8(255), + 1453: uint8(255), + 1454: uint8(255), + 1455: uint8(63), + 1456: uint8(255), + 1457: uint8(255), + 1458: uint8(255), + 1459: uint8(255), + 1460: uint8(255), + 1461: uint8(255), + 1462: uint8(223), + 1463: uint8(95), + 1464: uint8(220), + 1465: uint8(31), + 1466: uint8(207), + 1467: uint8(15), + 1468: uint8(255), + 1469: uint8(31), + 1470: uint8(220), + 1471: uint8(31), + 1486: uint8(2), + 1487: uint8(128), + 1490: uint8(255), + 1491: uint8(31), + 1504: uint8(132), + 1505: uint8(252), + 1506: uint8(47), + 1507: uint8(62), + 1508: uint8(80), + 1509: uint8(189), + 1510: uint8(255), + 1511: uint8(243), + 1512: uint8(224), + 1513: uint8(67), + 1516: uint8(255), + 1517: uint8(255), + 1518: uint8(255), + 1519: uint8(255), + 1520: uint8(255), + 1521: uint8(1), + 1558: uint8(192), + 1559: uint8(255), + 1560: uint8(255), + 1561: uint8(255), + 1562: uint8(255), + 1563: uint8(255), + 1564: uint8(255), + 1565: uint8(3), + 1568: uint8(255), + 1569: uint8(255), + 1570: uint8(255), + 1571: uint8(255), + 1572: uint8(255), + 1573: uint8(127), + 1574: uint8(255), + 1575: uint8(255), + 1576: uint8(255), + 1577: uint8(255), + 1578: uint8(255), + 1579: uint8(127), + 1580: uint8(255), + 1581: uint8(255), + 1582: uint8(255), + 1583: uint8(255), + 1584: uint8(255), + 1585: uint8(255), + 1586: uint8(255), + 1587: uint8(255), + 1588: uint8(255), + 1589: uint8(255), + 1590: uint8(255), + 1591: uint8(255), + 1592: uint8(255), + 1593: uint8(255), + 1594: uint8(255), + 1595: uint8(255), + 1596: uint8(31), + 1597: uint8(120), + 1598: uint8(12), + 1600: uint8(255), + 1601: uint8(255), + 1602: uint8(255), + 1603: uint8(255), + 1604: uint8(191), + 1605: uint8(32), + 1606: uint8(255), + 1607: uint8(255), + 1608: uint8(255), + 1609: uint8(255), + 1610: uint8(255), + 1611: uint8(255), + 1612: uint8(255), + 1613: uint8(128), + 1616: uint8(255), + 1617: uint8(255), + 1618: uint8(127), + 1620: uint8(127), + 1621: uint8(127), + 1622: uint8(127), + 1623: uint8(127), + 1624: uint8(127), + 1625: uint8(127), + 1626: uint8(127), + 1627: uint8(127), + 1628: uint8(255), + 1629: uint8(255), + 1630: uint8(255), + 1631: uint8(255), + 1637: uint8(128), + 1664: uint8(224), + 1668: uint8(254), + 1669: uint8(3), + 1670: uint8(62), + 1671: uint8(31), + 1672: uint8(254), + 1673: uint8(255), + 1674: uint8(255), + 1675: uint8(255), + 1676: uint8(255), + 1677: uint8(255), + 1678: uint8(255), + 1679: uint8(255), + 1680: uint8(255), + 1681: uint8(255), + 1682: uint8(127), + 1683: uint8(224), + 1684: uint8(254), + 1685: uint8(255), + 1686: uint8(255), + 1687: uint8(255), + 1688: uint8(255), + 1689: uint8(255), + 1690: uint8(255), + 1691: uint8(255), + 1692: uint8(255), + 1693: uint8(255), + 1694: uint8(255), + 1695: uint8(247), + 1696: uint8(224), + 1697: uint8(255), + 1698: uint8(255), + 1699: uint8(255), + 1700: uint8(255), + 1701: uint8(255), + 1702: uint8(254), + 1703: uint8(255), + 1704: uint8(255), + 1705: uint8(255), + 1706: uint8(255), + 1707: uint8(255), + 1708: uint8(255), + 1709: uint8(255), + 1710: uint8(255), + 1711: uint8(255), + 1712: uint8(255), + 1713: uint8(127), + 1716: uint8(255), + 1717: uint8(255), + 1718: uint8(255), + 1719: uint8(7), + 1726: uint8(255), + 1727: uint8(255), + 1728: uint8(255), + 1729: uint8(255), + 1730: uint8(255), + 1731: uint8(255), + 1732: uint8(255), + 1733: uint8(255), + 1734: uint8(255), + 1735: uint8(255), + 1736: uint8(255), + 1737: uint8(255), + 1738: uint8(255), + 1739: uint8(255), + 1740: uint8(255), + 1741: uint8(255), + 1742: uint8(255), + 1743: uint8(255), + 1744: uint8(255), + 1745: uint8(255), + 1746: uint8(255), + 1747: uint8(255), + 1748: uint8(255), + 1749: uint8(255), + 1750: uint8(63), + 1760: uint8(255), + 1761: uint8(255), + 1762: uint8(255), + 1763: uint8(255), + 1764: uint8(255), + 1765: uint8(255), + 1766: uint8(255), + 1767: uint8(255), + 1768: uint8(255), + 1769: uint8(255), + 1770: uint8(255), + 1771: uint8(255), + 1772: uint8(255), + 1773: uint8(255), + 1774: uint8(255), + 1775: uint8(255), + 1776: uint8(255), + 1777: uint8(255), + 1778: uint8(255), + 1779: uint8(255), + 1780: uint8(255), + 1781: uint8(255), + 1782: uint8(255), + 1783: uint8(255), + 1784: uint8(255), + 1785: uint8(255), + 1786: uint8(255), + 1787: uint8(255), + 1788: uint8(255), + 1789: uint8(255), + 1792: uint8(255), + 1793: uint8(255), + 1794: uint8(255), + 1795: uint8(255), + 1796: uint8(255), + 1797: uint8(255), + 1798: uint8(255), + 1799: uint8(255), + 1800: uint8(255), + 1801: uint8(255), + 1802: uint8(255), + 1803: uint8(255), + 1804: uint8(255), + 1805: uint8(255), + 1806: uint8(255), + 1807: uint8(255), + 1808: uint8(255), + 1809: uint8(31), + 1818: uint8(255), + 1819: uint8(255), + 1820: uint8(255), + 1821: uint8(255), + 1822: uint8(255), + 1823: uint8(63), + 1824: uint8(255), + 1825: uint8(31), + 1826: uint8(255), + 1827: uint8(255), + 1828: uint8(255), + 1829: uint8(15), + 1832: uint8(255), + 1833: uint8(255), + 1834: uint8(255), + 1835: uint8(255), + 1836: uint8(255), + 1837: uint8(127), + 1838: uint8(240), + 1839: uint8(143), + 1840: uint8(255), + 1841: uint8(255), + 1842: uint8(255), + 1843: uint8(255), + 1844: uint8(255), + 1845: uint8(255), + 1846: uint8(255), + 1847: uint8(255), + 1848: uint8(255), + 1849: uint8(255), + 1850: uint8(255), + 1851: uint8(255), + 1852: uint8(255), + 1853: uint8(255), + 1858: uint8(128), + 1859: uint8(255), + 1860: uint8(252), + 1861: uint8(255), + 1862: uint8(255), + 1863: uint8(255), + 1864: uint8(255), + 1865: uint8(255), + 1866: uint8(255), + 1867: uint8(255), + 1868: uint8(255), + 1869: uint8(255), + 1870: uint8(255), + 1871: uint8(255), + 1872: uint8(255), + 1873: uint8(249), + 1874: uint8(255), + 1875: uint8(255), + 1876: uint8(255), + 1877: uint8(255), + 1878: uint8(255), + 1879: uint8(255), + 1880: uint8(124), + 1886: uint8(128), + 1887: uint8(255), + 1888: uint8(191), + 1889: uint8(255), + 1890: uint8(255), + 1891: uint8(255), + 1892: uint8(255), + 1896: uint8(255), + 1897: uint8(255), + 1898: uint8(255), + 1899: uint8(255), + 1900: uint8(255), + 1901: uint8(255), + 1902: uint8(15), + 1904: uint8(255), + 1905: uint8(255), + 1906: uint8(255), + 1907: uint8(255), + 1908: uint8(255), + 1909: uint8(255), + 1910: uint8(255), + 1911: uint8(255), + 1912: uint8(47), + 1914: uint8(255), + 1915: uint8(3), + 1918: uint8(252), + 1919: uint8(232), + 1920: uint8(255), + 1921: uint8(255), + 1922: uint8(255), + 1923: uint8(255), + 1924: uint8(255), + 1925: uint8(7), + 1926: uint8(255), + 1927: uint8(255), + 1928: uint8(255), + 1929: uint8(255), + 1930: uint8(7), + 1932: uint8(255), + 1933: uint8(255), + 1934: uint8(255), + 1935: uint8(31), + 1936: uint8(255), + 1937: uint8(255), + 1938: uint8(255), + 1939: uint8(255), + 1940: uint8(255), + 1941: uint8(255), + 1942: uint8(247), + 1943: uint8(255), + 1945: uint8(128), + 1946: uint8(255), + 1947: uint8(3), + 1948: uint8(255), + 1949: uint8(255), + 1950: uint8(255), + 1951: uint8(127), + 1952: uint8(255), + 1953: uint8(255), + 1954: uint8(255), + 1955: uint8(255), + 1956: uint8(255), + 1957: uint8(255), + 1958: uint8(127), + 1960: uint8(255), + 1961: uint8(63), + 1962: uint8(255), + 1963: uint8(3), + 1964: uint8(255), + 1965: uint8(255), + 1966: uint8(127), + 1967: uint8(252), + 1968: uint8(255), + 1969: uint8(255), + 1970: uint8(255), + 1971: uint8(255), + 1972: uint8(255), + 1973: uint8(255), + 1974: uint8(255), + 1975: uint8(127), + 1976: uint8(5), + 1979: uint8(56), + 1980: uint8(255), + 1981: uint8(255), + 1982: uint8(60), + 1984: uint8(126), + 1985: uint8(126), + 1986: uint8(126), + 1988: uint8(127), + 1989: uint8(127), + 1990: uint8(255), + 1991: uint8(255), + 1992: uint8(255), + 1993: uint8(255), + 1994: uint8(255), + 1995: uint8(247), + 1996: uint8(255), + 1998: uint8(255), + 1999: uint8(255), + 2000: uint8(255), + 2001: uint8(255), + 2002: uint8(255), + 2003: uint8(255), + 2004: uint8(255), + 2005: uint8(255), + 2006: uint8(255), + 2007: uint8(255), + 2008: uint8(255), + 2009: uint8(255), + 2010: uint8(255), + 2011: uint8(255), + 2012: uint8(255), + 2013: uint8(7), + 2014: uint8(255), + 2015: uint8(3), + 2016: uint8(255), + 2017: uint8(255), + 2018: uint8(255), + 2019: uint8(255), + 2020: uint8(255), + 2021: uint8(255), + 2022: uint8(255), + 2023: uint8(255), + 2024: uint8(255), + 2025: uint8(255), + 2026: uint8(255), + 2027: uint8(255), + 2028: uint8(255), + 2029: uint8(255), + 2030: uint8(255), + 2031: uint8(255), + 2032: uint8(255), + 2033: uint8(255), + 2034: uint8(255), + 2035: uint8(255), + 2036: uint8(15), + 2038: uint8(255), + 2039: uint8(255), + 2040: uint8(127), + 2041: uint8(248), + 2042: uint8(255), + 2043: uint8(255), + 2044: uint8(255), + 2045: uint8(255), + 2046: uint8(255), + 2047: uint8(15), + 2048: uint8(255), + 2049: uint8(255), + 2050: uint8(255), + 2051: uint8(255), + 2052: uint8(255), + 2053: uint8(255), + 2054: uint8(255), + 2055: uint8(255), + 2056: uint8(255), + 2057: uint8(255), + 2058: uint8(255), + 2059: uint8(255), + 2060: uint8(255), + 2061: uint8(63), + 2062: uint8(255), + 2063: uint8(255), + 2064: uint8(255), + 2065: uint8(255), + 2066: uint8(255), + 2067: uint8(255), + 2068: uint8(255), + 2069: uint8(255), + 2070: uint8(255), + 2071: uint8(255), + 2072: uint8(255), + 2073: uint8(255), + 2074: uint8(255), + 2075: uint8(3), + 2080: uint8(127), + 2082: uint8(248), + 2083: uint8(224), + 2084: uint8(255), + 2085: uint8(253), + 2086: uint8(127), + 2087: uint8(95), + 2088: uint8(219), + 2089: uint8(255), + 2090: uint8(255), + 2091: uint8(255), + 2092: uint8(255), + 2093: uint8(255), + 2094: uint8(255), + 2095: uint8(255), + 2096: uint8(255), + 2097: uint8(255), + 2098: uint8(255), + 2099: uint8(255), + 2100: uint8(255), + 2101: uint8(255), + 2102: uint8(3), + 2106: uint8(248), + 2107: uint8(255), + 2108: uint8(255), + 2109: uint8(255), + 2110: uint8(255), + 2111: uint8(255), + 2112: uint8(255), + 2113: uint8(255), + 2114: uint8(255), + 2115: uint8(255), + 2116: uint8(255), + 2117: uint8(255), + 2118: uint8(255), + 2119: uint8(63), + 2122: uint8(255), + 2123: uint8(255), + 2124: uint8(255), + 2125: uint8(255), + 2126: uint8(255), + 2127: uint8(255), + 2128: uint8(255), + 2129: uint8(255), + 2130: uint8(252), + 2131: uint8(255), + 2132: uint8(255), + 2133: uint8(255), + 2134: uint8(255), + 2135: uint8(255), + 2136: uint8(255), + 2142: uint8(255), + 2143: uint8(15), + 2158: uint8(223), + 2159: uint8(255), + 2160: uint8(255), + 2161: uint8(255), + 2162: uint8(255), + 2163: uint8(255), + 2164: uint8(255), + 2165: uint8(255), + 2166: uint8(255), + 2167: uint8(255), + 2168: uint8(255), + 2169: uint8(255), + 2170: uint8(255), + 2171: uint8(255), + 2172: uint8(255), + 2173: uint8(255), + 2174: uint8(255), + 2175: uint8(31), + 2178: uint8(255), + 2179: uint8(3), + 2180: uint8(254), + 2181: uint8(255), + 2182: uint8(255), + 2183: uint8(7), + 2184: uint8(254), + 2185: uint8(255), + 2186: uint8(255), + 2187: uint8(7), + 2188: uint8(192), + 2189: uint8(255), + 2190: uint8(255), + 2191: uint8(255), + 2192: uint8(255), + 2193: uint8(255), + 2194: uint8(255), + 2195: uint8(255), + 2196: uint8(255), + 2197: uint8(255), + 2198: uint8(255), + 2199: uint8(127), + 2200: uint8(252), + 2201: uint8(252), + 2202: uint8(252), + 2203: uint8(28), + 2208: uint8(255), + 2209: uint8(239), + 2210: uint8(255), + 2211: uint8(255), + 2212: uint8(127), + 2213: uint8(255), + 2214: uint8(255), + 2215: uint8(183), + 2216: uint8(255), + 2217: uint8(63), + 2218: uint8(255), + 2219: uint8(63), + 2224: uint8(255), + 2225: uint8(255), + 2226: uint8(255), + 2227: uint8(255), + 2228: uint8(255), + 2229: uint8(255), + 2230: uint8(255), + 2231: uint8(255), + 2232: uint8(255), + 2233: uint8(255), + 2234: uint8(255), + 2235: uint8(255), + 2236: uint8(255), + 2237: uint8(255), + 2238: uint8(255), + 2239: uint8(7), + 2248: uint8(255), + 2249: uint8(255), + 2250: uint8(255), + 2251: uint8(255), + 2252: uint8(255), + 2253: uint8(255), + 2254: uint8(31), + 2288: uint8(255), + 2289: uint8(255), + 2290: uint8(255), + 2291: uint8(31), + 2292: uint8(255), + 2293: uint8(255), + 2294: uint8(255), + 2295: uint8(255), + 2296: uint8(255), + 2297: uint8(255), + 2298: uint8(1), + 2304: uint8(255), + 2305: uint8(255), + 2306: uint8(255), + 2307: uint8(255), + 2309: uint8(224), + 2310: uint8(255), + 2311: uint8(255), + 2312: uint8(255), + 2313: uint8(7), + 2314: uint8(255), + 2315: uint8(255), + 2316: uint8(255), + 2317: uint8(255), + 2318: uint8(255), + 2319: uint8(7), + 2320: uint8(255), + 2321: uint8(255), + 2322: uint8(255), + 2323: uint8(63), + 2324: uint8(255), + 2325: uint8(255), + 2326: uint8(255), + 2327: uint8(255), + 2328: uint8(15), + 2329: uint8(255), + 2330: uint8(62), + 2336: uint8(255), + 2337: uint8(255), + 2338: uint8(255), + 2339: uint8(255), + 2340: uint8(255), + 2341: uint8(255), + 2342: uint8(255), + 2343: uint8(255), + 2344: uint8(255), + 2345: uint8(255), + 2346: uint8(255), + 2347: uint8(255), + 2348: uint8(255), + 2349: uint8(255), + 2350: uint8(255), + 2351: uint8(255), + 2352: uint8(255), + 2353: uint8(255), + 2354: uint8(255), + 2355: uint8(63), + 2356: uint8(255), + 2357: uint8(3), + 2358: uint8(255), + 2359: uint8(255), + 2360: uint8(255), + 2361: uint8(255), + 2362: uint8(15), + 2363: uint8(255), + 2364: uint8(255), + 2365: uint8(255), + 2366: uint8(255), + 2367: uint8(15), + 2368: uint8(255), + 2369: uint8(255), + 2370: uint8(255), + 2371: uint8(255), + 2372: uint8(255), + 2374: uint8(255), + 2375: uint8(255), + 2376: uint8(255), + 2377: uint8(255), + 2378: uint8(255), + 2379: uint8(255), + 2380: uint8(15), + 2400: uint8(255), + 2401: uint8(255), + 2402: uint8(255), + 2403: uint8(255), + 2404: uint8(255), + 2405: uint8(255), + 2406: uint8(127), + 2408: uint8(255), + 2409: uint8(255), + 2410: uint8(63), + 2412: uint8(255), + 2432: uint8(63), + 2433: uint8(253), + 2434: uint8(255), + 2435: uint8(255), + 2436: uint8(255), + 2437: uint8(255), + 2438: uint8(191), + 2439: uint8(145), + 2440: uint8(255), + 2441: uint8(255), + 2442: uint8(63), + 2444: uint8(255), + 2445: uint8(255), + 2446: uint8(127), + 2448: uint8(255), + 2449: uint8(255), + 2450: uint8(255), + 2451: uint8(127), + 2460: uint8(255), + 2461: uint8(255), + 2462: uint8(55), + 2464: uint8(255), + 2465: uint8(255), + 2466: uint8(63), + 2468: uint8(255), + 2469: uint8(255), + 2470: uint8(255), + 2471: uint8(3), + 2480: uint8(255), + 2481: uint8(255), + 2482: uint8(255), + 2483: uint8(255), + 2484: uint8(255), + 2485: uint8(255), + 2486: uint8(255), + 2487: uint8(192), + 2496: uint8(111), + 2497: uint8(240), + 2498: uint8(239), + 2499: uint8(254), + 2500: uint8(255), + 2501: uint8(255), + 2502: uint8(63), + 2508: uint8(255), + 2509: uint8(255), + 2510: uint8(255), + 2511: uint8(31), + 2512: uint8(255), + 2513: uint8(255), + 2514: uint8(255), + 2515: uint8(31), + 2520: uint8(255), + 2521: uint8(254), + 2522: uint8(255), + 2523: uint8(255), + 2524: uint8(31), + 2528: uint8(255), + 2529: uint8(255), + 2530: uint8(255), + 2531: uint8(255), + 2532: uint8(255), + 2533: uint8(255), + 2534: uint8(63), + 2536: uint8(255), + 2537: uint8(255), + 2538: uint8(63), + 2540: uint8(255), + 2541: uint8(255), + 2542: uint8(7), + 2544: uint8(255), + 2545: uint8(255), + 2546: uint8(3), + 2560: uint8(255), + 2561: uint8(255), + 2562: uint8(255), + 2563: uint8(255), + 2564: uint8(255), + 2565: uint8(255), + 2566: uint8(255), + 2567: uint8(255), + 2568: uint8(255), + 2569: uint8(1), + 2576: uint8(255), + 2577: uint8(255), + 2578: uint8(255), + 2579: uint8(255), + 2580: uint8(255), + 2581: uint8(255), + 2582: uint8(7), + 2584: uint8(255), + 2585: uint8(255), + 2586: uint8(255), + 2587: uint8(255), + 2588: uint8(255), + 2589: uint8(255), + 2590: uint8(7), + 2592: uint8(255), + 2593: uint8(255), + 2594: uint8(255), + 2595: uint8(255), + 2596: uint8(255), + 2598: uint8(255), + 2599: uint8(3), + 2624: uint8(255), + 2625: uint8(255), + 2626: uint8(255), + 2627: uint8(31), + 2628: uint8(128), + 2630: uint8(255), + 2631: uint8(255), + 2632: uint8(63), + 2652: uint8(255), + 2653: uint8(255), + 2654: uint8(127), + 2656: uint8(255), + 2657: uint8(255), + 2658: uint8(255), + 2659: uint8(255), + 2660: uint8(255), + 2661: uint8(255), + 2662: uint8(255), + 2663: uint8(255), + 2664: uint8(63), + 2668: uint8(192), + 2669: uint8(255), + 2672: uint8(252), + 2673: uint8(255), + 2674: uint8(255), + 2675: uint8(255), + 2676: uint8(255), + 2677: uint8(255), + 2678: uint8(255), + 2679: uint8(1), + 2682: uint8(255), + 2683: uint8(255), + 2684: uint8(255), + 2685: uint8(1), + 2686: uint8(255), + 2687: uint8(3), + 2688: uint8(255), + 2689: uint8(255), + 2690: uint8(255), + 2691: uint8(255), + 2692: uint8(255), + 2693: uint8(255), + 2694: uint8(199), + 2695: uint8(255), + 2696: uint8(112), + 2698: uint8(255), + 2699: uint8(255), + 2700: uint8(255), + 2701: uint8(255), + 2702: uint8(71), + 2704: uint8(255), + 2705: uint8(255), + 2706: uint8(255), + 2707: uint8(255), + 2708: uint8(255), + 2709: uint8(255), + 2710: uint8(255), + 2711: uint8(255), + 2712: uint8(30), + 2714: uint8(255), + 2715: uint8(23), + 2720: uint8(255), + 2721: uint8(255), + 2722: uint8(251), + 2723: uint8(255), + 2724: uint8(255), + 2725: uint8(255), + 2726: uint8(159), + 2727: uint8(64), + 2736: uint8(127), + 2737: uint8(189), + 2738: uint8(255), + 2739: uint8(191), + 2740: uint8(255), + 2741: uint8(1), + 2742: uint8(255), + 2743: uint8(255), + 2744: uint8(255), + 2745: uint8(255), + 2746: uint8(255), + 2747: uint8(255), + 2748: uint8(255), + 2749: uint8(1), + 2750: uint8(255), + 2751: uint8(3), + 2752: uint8(239), + 2753: uint8(159), + 2754: uint8(249), + 2755: uint8(255), + 2756: uint8(255), + 2757: uint8(253), + 2758: uint8(237), + 2759: uint8(227), + 2760: uint8(159), + 2761: uint8(25), + 2762: uint8(129), + 2763: uint8(224), + 2764: uint8(15), + 2784: uint8(255), + 2785: uint8(255), + 2786: uint8(255), + 2787: uint8(255), + 2788: uint8(255), + 2789: uint8(255), + 2790: uint8(255), + 2791: uint8(255), + 2792: uint8(187), + 2793: uint8(7), + 2794: uint8(255), + 2795: uint8(131), + 2800: uint8(255), + 2801: uint8(255), + 2802: uint8(255), + 2803: uint8(255), + 2804: uint8(255), + 2805: uint8(255), + 2806: uint8(255), + 2807: uint8(255), + 2808: uint8(179), + 2810: uint8(255), + 2811: uint8(3), + 2832: uint8(255), + 2833: uint8(255), + 2834: uint8(255), + 2835: uint8(255), + 2836: uint8(255), + 2837: uint8(255), + 2838: uint8(63), + 2839: uint8(127), + 2843: uint8(63), + 2848: uint8(255), + 2849: uint8(255), + 2850: uint8(255), + 2851: uint8(255), + 2852: uint8(255), + 2853: uint8(255), + 2854: uint8(255), + 2855: uint8(127), + 2856: uint8(17), + 2858: uint8(255), + 2859: uint8(3), + 2864: uint8(255), + 2865: uint8(255), + 2866: uint8(255), + 2867: uint8(255), + 2868: uint8(255), + 2869: uint8(255), + 2870: uint8(63), + 2871: uint8(1), + 2872: uint8(255), + 2873: uint8(3), + 2880: uint8(255), + 2881: uint8(255), + 2882: uint8(255), + 2883: uint8(231), + 2884: uint8(255), + 2885: uint8(7), + 2886: uint8(255), + 2887: uint8(3), + 2912: uint8(255), + 2913: uint8(255), + 2914: uint8(255), + 2915: uint8(255), + 2916: uint8(255), + 2917: uint8(255), + 2918: uint8(255), + 2919: uint8(1), + 2932: uint8(255), + 2933: uint8(255), + 2934: uint8(255), + 2935: uint8(255), + 2936: uint8(255), + 2937: uint8(255), + 2938: uint8(255), + 2939: uint8(255), + 2940: uint8(255), + 2941: uint8(3), + 2943: uint8(128), + 2964: uint8(255), + 2965: uint8(252), + 2966: uint8(255), + 2967: uint8(255), + 2968: uint8(255), + 2969: uint8(255), + 2970: uint8(255), + 2971: uint8(252), + 2972: uint8(26), + 2976: uint8(255), + 2977: uint8(255), + 2978: uint8(255), + 2979: uint8(255), + 2980: uint8(255), + 2981: uint8(255), + 2982: uint8(231), + 2983: uint8(127), + 2986: uint8(255), + 2987: uint8(255), + 2988: uint8(255), + 2989: uint8(255), + 2990: uint8(255), + 2991: uint8(255), + 2992: uint8(255), + 2993: uint8(255), + 2994: uint8(255), + 2995: uint8(32), + 3000: uint8(255), + 3001: uint8(255), + 3002: uint8(255), + 3003: uint8(255), + 3004: uint8(255), + 3005: uint8(255), + 3006: uint8(255), + 3007: uint8(1), + 3008: uint8(255), + 3009: uint8(253), + 3010: uint8(255), + 3011: uint8(255), + 3012: uint8(255), + 3013: uint8(255), + 3014: uint8(127), + 3015: uint8(127), + 3016: uint8(1), + 3018: uint8(255), + 3019: uint8(3), + 3022: uint8(252), + 3023: uint8(255), + 3024: uint8(255), + 3025: uint8(255), + 3026: uint8(252), + 3027: uint8(255), + 3028: uint8(255), + 3029: uint8(254), + 3030: uint8(127), + 3040: uint8(127), + 3041: uint8(251), + 3042: uint8(255), + 3043: uint8(255), + 3044: uint8(255), + 3045: uint8(255), + 3046: uint8(127), + 3047: uint8(180), + 3048: uint8(203), + 3050: uint8(255), + 3051: uint8(3), + 3052: uint8(191), + 3053: uint8(253), + 3054: uint8(255), + 3055: uint8(255), + 3056: uint8(255), + 3057: uint8(127), + 3058: uint8(123), + 3059: uint8(1), + 3060: uint8(255), + 3061: uint8(3), + 3100: uint8(255), + 3101: uint8(255), + 3102: uint8(127), + 3104: uint8(255), + 3105: uint8(255), + 3106: uint8(255), + 3107: uint8(255), + 3108: uint8(255), + 3109: uint8(255), + 3110: uint8(255), + 3111: uint8(255), + 3112: uint8(255), + 3113: uint8(255), + 3114: uint8(255), + 3115: uint8(255), + 3116: uint8(255), + 3117: uint8(255), + 3118: uint8(255), + 3119: uint8(255), + 3120: uint8(255), + 3121: uint8(255), + 3122: uint8(255), + 3123: uint8(3), + 3136: uint8(255), + 3137: uint8(255), + 3138: uint8(255), + 3139: uint8(255), + 3140: uint8(255), + 3141: uint8(255), + 3142: uint8(255), + 3143: uint8(255), + 3144: uint8(255), + 3145: uint8(255), + 3146: uint8(255), + 3147: uint8(255), + 3148: uint8(255), + 3149: uint8(127), + 3152: uint8(255), + 3153: uint8(255), + 3154: uint8(255), + 3155: uint8(255), + 3156: uint8(255), + 3157: uint8(255), + 3158: uint8(255), + 3159: uint8(255), + 3160: uint8(255), + 3161: uint8(255), + 3162: uint8(255), + 3163: uint8(255), + 3164: uint8(255), + 3165: uint8(255), + 3166: uint8(255), + 3167: uint8(255), + 3168: uint8(255), + 3169: uint8(255), + 3170: uint8(255), + 3171: uint8(255), + 3172: uint8(255), + 3173: uint8(255), + 3174: uint8(255), + 3175: uint8(255), + 3176: uint8(15), + 3200: uint8(255), + 3201: uint8(255), + 3202: uint8(255), + 3203: uint8(255), + 3204: uint8(255), + 3205: uint8(127), + 3232: uint8(255), + 3233: uint8(255), + 3234: uint8(255), + 3235: uint8(255), + 3236: uint8(255), + 3237: uint8(255), + 3238: uint8(255), + 3239: uint8(255), + 3240: uint8(127), + 3264: uint8(255), + 3265: uint8(255), + 3266: uint8(255), + 3267: uint8(255), + 3268: uint8(255), + 3269: uint8(255), + 3270: uint8(255), + 3271: uint8(1), + 3272: uint8(255), + 3273: uint8(255), + 3274: uint8(255), + 3275: uint8(127), + 3276: uint8(255), + 3277: uint8(3), + 3290: uint8(255), + 3291: uint8(255), + 3292: uint8(255), + 3293: uint8(63), + 3296: uint8(255), + 3297: uint8(255), + 3298: uint8(255), + 3299: uint8(255), + 3300: uint8(255), + 3301: uint8(255), + 3304: uint8(15), + 3306: uint8(255), + 3307: uint8(3), + 3308: uint8(248), + 3309: uint8(255), + 3310: uint8(255), + 3311: uint8(224), + 3312: uint8(255), + 3313: uint8(255), + 3336: uint8(255), + 3337: uint8(255), + 3338: uint8(255), + 3339: uint8(255), + 3340: uint8(255), + 3341: uint8(255), + 3342: uint8(255), + 3343: uint8(255), + 3360: uint8(255), + 3361: uint8(255), + 3362: uint8(255), + 3363: uint8(255), + 3364: uint8(255), + 3365: uint8(255), + 3366: uint8(255), + 3367: uint8(255), + 3368: uint8(255), + 3369: uint8(135), + 3370: uint8(255), + 3371: uint8(255), + 3372: uint8(255), + 3373: uint8(255), + 3374: uint8(255), + 3375: uint8(255), + 3376: uint8(255), + 3377: uint8(128), + 3378: uint8(255), + 3379: uint8(255), + 3388: uint8(11), + 3392: uint8(255), + 3393: uint8(255), + 3394: uint8(255), + 3395: uint8(255), + 3396: uint8(255), + 3397: uint8(255), + 3398: uint8(255), + 3399: uint8(255), + 3400: uint8(255), + 3401: uint8(255), + 3402: uint8(255), + 3403: uint8(255), + 3404: uint8(255), + 3405: uint8(255), + 3406: uint8(255), + 3407: uint8(255), + 3408: uint8(255), + 3409: uint8(255), + 3410: uint8(255), + 3411: uint8(255), + 3412: uint8(255), + 3413: uint8(255), + 3414: uint8(255), + 3415: uint8(255), + 3416: uint8(255), + 3417: uint8(255), + 3418: uint8(255), + 3419: uint8(255), + 3420: uint8(255), + 3421: uint8(255), + 3422: uint8(255), + 3424: uint8(255), + 3425: uint8(255), + 3426: uint8(255), + 3427: uint8(255), + 3428: uint8(255), + 3429: uint8(255), + 3430: uint8(255), + 3431: uint8(255), + 3432: uint8(255), + 3433: uint8(255), + 3434: uint8(255), + 3435: uint8(255), + 3436: uint8(255), + 3437: uint8(255), + 3438: uint8(255), + 3439: uint8(255), + 3440: uint8(255), + 3441: uint8(255), + 3442: uint8(255), + 3443: uint8(255), + 3444: uint8(255), + 3445: uint8(255), + 3446: uint8(255), + 3447: uint8(255), + 3448: uint8(255), + 3449: uint8(255), + 3450: uint8(255), + 3451: uint8(255), + 3452: uint8(255), + 3453: uint8(255), + 3454: uint8(7), + 3456: uint8(255), + 3457: uint8(255), + 3458: uint8(255), + 3459: uint8(127), + 3466: uint8(7), + 3468: uint8(240), + 3470: uint8(255), + 3471: uint8(255), + 3472: uint8(255), + 3473: uint8(255), + 3474: uint8(255), + 3475: uint8(255), + 3476: uint8(255), + 3477: uint8(255), + 3478: uint8(255), + 3479: uint8(255), + 3480: uint8(255), + 3481: uint8(255), + 3482: uint8(255), + 3483: uint8(255), + 3484: uint8(255), + 3485: uint8(255), + 3486: uint8(255), + 3487: uint8(255), + 3488: uint8(255), + 3489: uint8(255), + 3490: uint8(255), + 3491: uint8(255), + 3492: uint8(255), + 3493: uint8(255), + 3494: uint8(255), + 3495: uint8(255), + 3496: uint8(255), + 3497: uint8(255), + 3498: uint8(255), + 3499: uint8(255), + 3500: uint8(255), + 3501: uint8(255), + 3502: uint8(255), + 3503: uint8(255), + 3504: uint8(255), + 3505: uint8(255), + 3506: uint8(255), + 3507: uint8(255), + 3508: uint8(255), + 3509: uint8(255), + 3510: uint8(255), + 3511: uint8(255), + 3512: uint8(255), + 3513: uint8(255), + 3514: uint8(255), + 3515: uint8(255), + 3516: uint8(255), + 3517: uint8(255), + 3518: uint8(255), + 3519: uint8(15), + 3520: uint8(255), + 3521: uint8(255), + 3522: uint8(255), + 3523: uint8(255), + 3524: uint8(255), + 3525: uint8(255), + 3526: uint8(255), + 3527: uint8(255), + 3528: uint8(255), + 3529: uint8(255), + 3530: uint8(255), + 3531: uint8(255), + 3532: uint8(255), + 3533: uint8(7), + 3534: uint8(255), + 3535: uint8(31), + 3536: uint8(255), + 3537: uint8(1), + 3538: uint8(255), + 3539: uint8(67), + 3552: uint8(255), + 3553: uint8(255), + 3554: uint8(255), + 3555: uint8(255), + 3556: uint8(255), + 3557: uint8(255), + 3558: uint8(255), + 3559: uint8(255), + 3560: uint8(255), + 3561: uint8(255), + 3562: uint8(223), + 3563: uint8(255), + 3564: uint8(255), + 3565: uint8(255), + 3566: uint8(255), + 3567: uint8(255), + 3568: uint8(255), + 3569: uint8(255), + 3570: uint8(255), + 3571: uint8(223), + 3572: uint8(100), + 3573: uint8(222), + 3574: uint8(255), + 3575: uint8(235), + 3576: uint8(239), + 3577: uint8(255), + 3578: uint8(255), + 3579: uint8(255), + 3580: uint8(255), + 3581: uint8(255), + 3582: uint8(255), + 3583: uint8(255), + 3584: uint8(191), + 3585: uint8(231), + 3586: uint8(223), + 3587: uint8(223), + 3588: uint8(255), + 3589: uint8(255), + 3590: uint8(255), + 3591: uint8(123), + 3592: uint8(95), + 3593: uint8(252), + 3594: uint8(253), + 3595: uint8(255), + 3596: uint8(255), + 3597: uint8(255), + 3598: uint8(255), + 3599: uint8(255), + 3600: uint8(255), + 3601: uint8(255), + 3602: uint8(255), + 3603: uint8(255), + 3604: uint8(255), + 3605: uint8(255), + 3606: uint8(255), + 3607: uint8(255), + 3608: uint8(255), + 3609: uint8(255), + 3610: uint8(255), + 3611: uint8(255), + 3612: uint8(255), + 3613: uint8(255), + 3614: uint8(255), + 3615: uint8(255), + 3616: uint8(255), + 3617: uint8(255), + 3618: uint8(255), + 3619: uint8(255), + 3620: uint8(255), + 3621: uint8(255), + 3622: uint8(255), + 3623: uint8(255), + 3624: uint8(255), + 3625: uint8(255), + 3626: uint8(255), + 3627: uint8(255), + 3628: uint8(255), + 3629: uint8(255), + 3630: uint8(255), + 3631: uint8(255), + 3632: uint8(255), + 3633: uint8(255), + 3634: uint8(255), + 3635: uint8(255), + 3636: uint8(63), + 3637: uint8(255), + 3638: uint8(255), + 3639: uint8(255), + 3640: uint8(253), + 3641: uint8(255), + 3642: uint8(255), + 3643: uint8(247), + 3644: uint8(255), + 3645: uint8(255), + 3646: uint8(255), + 3647: uint8(247), + 3648: uint8(255), + 3649: uint8(255), + 3650: uint8(223), + 3651: uint8(255), + 3652: uint8(255), + 3653: uint8(255), + 3654: uint8(223), + 3655: uint8(255), + 3656: uint8(255), + 3657: uint8(127), + 3658: uint8(255), + 3659: uint8(255), + 3660: uint8(255), + 3661: uint8(127), + 3662: uint8(255), + 3663: uint8(255), + 3664: uint8(255), + 3665: uint8(253), + 3666: uint8(255), + 3667: uint8(255), + 3668: uint8(255), + 3669: uint8(253), + 3670: uint8(255), + 3671: uint8(255), + 3672: uint8(247), + 3673: uint8(207), + 3674: uint8(255), + 3675: uint8(255), + 3676: uint8(255), + 3677: uint8(255), + 3678: uint8(255), + 3679: uint8(255), + 3680: uint8(127), + 3681: uint8(255), + 3682: uint8(255), + 3683: uint8(249), + 3684: uint8(219), + 3685: uint8(7), + 3712: uint8(255), + 3713: uint8(255), + 3714: uint8(255), + 3715: uint8(255), + 3716: uint8(255), + 3717: uint8(31), + 3718: uint8(128), + 3719: uint8(63), + 3720: uint8(255), + 3721: uint8(67), + 3768: uint8(255), + 3769: uint8(255), + 3770: uint8(255), + 3771: uint8(255), + 3772: uint8(255), + 3773: uint8(15), + 3774: uint8(255), + 3775: uint8(3), + 3776: uint8(255), + 3777: uint8(255), + 3778: uint8(255), + 3779: uint8(255), + 3780: uint8(255), + 3781: uint8(255), + 3782: uint8(255), + 3783: uint8(255), + 3784: uint8(255), + 3785: uint8(255), + 3786: uint8(255), + 3787: uint8(255), + 3788: uint8(255), + 3789: uint8(255), + 3790: uint8(255), + 3791: uint8(255), + 3792: uint8(255), + 3793: uint8(255), + 3794: uint8(255), + 3795: uint8(255), + 3796: uint8(255), + 3797: uint8(255), + 3798: uint8(255), + 3799: uint8(255), + 3800: uint8(31), + 3808: uint8(255), + 3809: uint8(255), + 3810: uint8(255), + 3811: uint8(255), + 3812: uint8(255), + 3813: uint8(255), + 3814: uint8(255), + 3815: uint8(255), + 3816: uint8(143), + 3817: uint8(8), + 3818: uint8(255), + 3819: uint8(3), + 3840: uint8(239), + 3841: uint8(255), + 3842: uint8(255), + 3843: uint8(255), + 3844: uint8(150), + 3845: uint8(254), + 3846: uint8(247), + 3847: uint8(10), + 3848: uint8(132), + 3849: uint8(234), + 3850: uint8(150), + 3851: uint8(170), + 3852: uint8(150), + 3853: uint8(247), + 3854: uint8(247), + 3855: uint8(94), + 3856: uint8(255), + 3857: uint8(251), + 3858: uint8(255), + 3859: uint8(15), + 3860: uint8(238), + 3861: uint8(251), + 3862: uint8(255), + 3863: uint8(15), + 3878: uint8(255), + 3879: uint8(255), + 3880: uint8(255), + 3881: uint8(3), + 3882: uint8(255), + 3883: uint8(255), + 3884: uint8(255), + 3885: uint8(3), + 3886: uint8(255), + 3887: uint8(255), + 3888: uint8(255), + 3889: uint8(3), +} + +func Xiswalpha(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + if wc < uint32(0x20000) { + return Int32FromUint8(_table3[Uint32FromInt32(Int32FromUint8(_table3[wc>>int32(8)])*int32(32))+wc&uint32(255)>>int32(3)]) >> (wc & uint32(7)) & int32(1) + } + if wc < uint32(0x2fffe) { + return int32(1) + } + return 0 +} + +func X__iswalpha_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswalpha(tls, c) +} + +func Xiswalpha_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswalpha_l(tls, c, l) +} + +func Xiswblank(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xisblank(tls, Int32FromUint32(wc)) +} + +func X__iswblank_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswblank(tls, c) +} + +func Xiswblank_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswblank_l(tls, c, l) +} + +func Xiswcntrl(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(wc < uint32(32) || wc-Uint32FromInt32(0x7f) < uint32(33) || wc-Uint32FromInt32(0x2028) < uint32(2) || wc-Uint32FromInt32(0xfff9) < uint32(3)) +} + +func X__iswcntrl_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswcntrl(tls, c) +} + +func Xiswcntrl_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswcntrl_l(tls, c, l) +} + +const WCTYPE_ALNUM = 1 +const WCTYPE_ALPHA = 2 +const WCTYPE_BLANK = 3 +const WCTYPE_CNTRL = 4 +const WCTYPE_DIGIT = 5 +const WCTYPE_GRAPH = 6 +const WCTYPE_LOWER = 7 +const WCTYPE_PRINT = 8 +const WCTYPE_PUNCT = 9 +const WCTYPE_SPACE = 10 +const WCTYPE_UPPER = 11 +const WCTYPE_XDIGIT = 12 + +func Xiswctype(tls *TLS, wc Twint_t, type1 Twctype_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v type1=%v, (%v:)", tls, wc, type1, origin(2)) + defer func() { trc("-> %v", r) }() + } + switch type1 { + case uint64(WCTYPE_ALNUM): + return Xiswalnum(tls, wc) + case uint64(WCTYPE_ALPHA): + return Xiswalpha(tls, wc) + case uint64(WCTYPE_BLANK): + return Xiswblank(tls, wc) + case uint64(WCTYPE_CNTRL): + return Xiswcntrl(tls, wc) + case uint64(WCTYPE_DIGIT): + return BoolInt32(wc-uint32('0') < uint32(10)) + case uint64(WCTYPE_GRAPH): + return Xiswgraph(tls, wc) + case uint64(WCTYPE_LOWER): + return Xiswlower(tls, wc) + case uint64(WCTYPE_PRINT): + return Xiswprint(tls, wc) + case uint64(WCTYPE_PUNCT): + return Xiswpunct(tls, wc) + case uint64(WCTYPE_SPACE): + return Xiswspace(tls, wc) + case uint64(WCTYPE_UPPER): + return Xiswupper(tls, wc) + case uint64(WCTYPE_XDIGIT): + return Xiswxdigit(tls, wc) + } + return 0 +} + +func Xwctype(tls *TLS, s uintptr) (r Twctype_t) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var i int32 + var p uintptr + _, _ = i, p + i = int32(1) + p = uintptr(unsafe.Pointer(&_names)) + for { + if !(**(**uint8)(__ccgo_up(p)) != 0) { + break + } + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == Int32FromUint8(**(**uint8)(__ccgo_up(p))) && !(Xstrcmp(tls, s, p) != 0) { + return Uint64FromInt32(i) + } + goto _1 + _1: + ; + i = i + 1 + p = p + uintptr(6) + } + return uint64(0) +} + +/* order must match! */ +var _names = [73]uint8{'a', 'l', 'n', 'u', 'm', 0, 'a', 'l', 'p', 'h', 'a', 0, 'b', 'l', 'a', 'n', 'k', 0, 'c', 'n', 't', 'r', 'l', 0, 'd', 'i', 'g', 'i', 't', 0, 'g', 'r', 'a', 'p', 'h', 0, 'l', 'o', 'w', 'e', 'r', 0, 'p', 'r', 'i', 'n', 't', 0, 'p', 'u', 'n', 'c', 't', 0, 's', 'p', 'a', 'c', 'e', 0, 'u', 'p', 'p', 'e', 'r', 0, 'x', 'd', 'i', 'g', 'i', 't'} + +func X__iswctype_l(tls *TLS, c Twint_t, t Twctype_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v t=%v l=%v, (%v:)", tls, c, t, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswctype(tls, c, t) +} + +func X__wctype_l(tls *TLS, s uintptr, l Tlocale_t) (r Twctype_t) { + if __ccgo_strace { + trc("tls=%v s=%v l=%v, (%v:)", tls, s, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwctype(tls, s) +} + +func Xiswctype_l(tls *TLS, c Twint_t, t Twctype_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v t=%v l=%v, (%v:)", tls, c, t, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswctype_l(tls, c, t, l) +} + +func Xwctype_l(tls *TLS, s uintptr, l Tlocale_t) (r Twctype_t) { + if __ccgo_strace { + trc("tls=%v s=%v l=%v, (%v:)", tls, s, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__wctype_l(tls, s, l) +} + +func Xiswdigit(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(wc-uint32('0') < uint32(10)) +} + +func X__iswdigit_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswdigit(tls, c) +} + +func Xiswdigit_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswdigit_l(tls, c, l) +} + +func Xiswgraph(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + /* ISO C defines this function as: */ + return BoolInt32(!(Xiswspace(tls, wc) != 0) && Xiswprint(tls, wc) != 0) +} + +func X__iswgraph_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswgraph(tls, c) +} + +func Xiswgraph_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswgraph_l(tls, c, l) +} + +func Xiswlower(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(Xtowupper(tls, wc) != wc) +} + +func X__iswlower_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswlower(tls, c) +} + +func Xiswlower_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswlower_l(tls, c, l) +} + +/* Consider all legal codepoints as printable except for: + * - C0 and C1 control characters + * - U+2028 and U+2029 (line/para break) + * - U+FFF9 through U+FFFB (interlinear annotation controls) + * The following code is optimized heavily to make hot paths for the + * expected printable characters. */ + +func Xiswprint(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + if wc < uint32(0xff) { + return BoolInt32((wc+uint32(1))&uint32(0x7f) >= uint32(0x21)) + } + if wc < uint32(0x2028) || wc-uint32(0x202a) < Uint32FromInt32(Int32FromInt32(0xd800)-Int32FromInt32(0x202a)) || wc-uint32(0xe000) < Uint32FromInt32(Int32FromInt32(0xfff9)-Int32FromInt32(0xe000)) { + return int32(1) + } + if wc-uint32(0xfffc) > Uint32FromInt32(Int32FromInt32(0x10ffff)-Int32FromInt32(0xfffc)) || wc&uint32(0xfffe) == uint32(0xfffe) { + return 0 + } + return int32(1) +} + +func X__iswprint_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswprint(tls, c) +} + +func Xiswprint_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswprint_l(tls, c, l) +} + +var _table4 = [4000]uint8{ + 0: uint8(18), + 1: uint8(16), + 2: uint8(19), + 3: uint8(20), + 4: uint8(21), + 5: uint8(22), + 6: uint8(23), + 7: uint8(24), + 8: uint8(25), + 9: uint8(26), + 10: uint8(27), + 11: uint8(28), + 12: uint8(29), + 13: uint8(30), + 14: uint8(31), + 15: uint8(32), + 16: uint8(33), + 17: uint8(16), + 18: uint8(16), + 19: uint8(34), + 20: uint8(35), + 21: uint8(16), + 22: uint8(36), + 23: uint8(37), + 24: uint8(38), + 25: uint8(39), + 26: uint8(40), + 27: uint8(41), + 28: uint8(42), + 29: uint8(43), + 30: uint8(16), + 31: uint8(44), + 32: uint8(45), + 33: uint8(46), + 34: uint8(17), + 35: uint8(17), + 36: uint8(47), + 37: uint8(17), + 38: uint8(17), + 39: uint8(17), + 40: uint8(17), + 41: uint8(17), + 42: uint8(17), + 43: uint8(48), + 44: uint8(49), + 45: uint8(50), + 46: uint8(51), + 47: uint8(52), + 48: uint8(53), + 49: uint8(54), + 50: uint8(55), + 51: uint8(17), + 52: uint8(16), + 53: uint8(16), + 54: uint8(16), + 55: uint8(16), + 56: uint8(16), + 57: uint8(16), + 58: uint8(16), + 59: uint8(16), + 60: uint8(16), + 61: uint8(16), + 62: uint8(16), + 63: uint8(16), + 64: uint8(16), + 65: uint8(16), + 66: uint8(16), + 67: uint8(16), + 68: uint8(16), + 69: uint8(16), + 70: uint8(16), + 71: uint8(16), + 72: uint8(16), + 73: uint8(16), + 74: uint8(16), + 75: uint8(16), + 76: uint8(16), + 77: uint8(56), + 78: uint8(16), + 79: uint8(16), + 80: uint8(16), + 81: uint8(16), + 82: uint8(16), + 83: uint8(16), + 84: uint8(16), + 85: uint8(16), + 86: uint8(16), + 87: uint8(16), + 88: uint8(16), + 89: uint8(16), + 90: uint8(16), + 91: uint8(16), + 92: uint8(16), + 93: uint8(16), + 94: uint8(16), + 95: uint8(16), + 96: uint8(16), + 97: uint8(16), + 98: uint8(16), + 99: uint8(16), + 100: uint8(16), + 101: uint8(16), + 102: uint8(16), + 103: uint8(16), + 104: uint8(16), + 105: uint8(16), + 106: uint8(16), + 107: uint8(16), + 108: uint8(16), + 109: uint8(16), + 110: uint8(16), + 111: uint8(16), + 112: uint8(16), + 113: uint8(16), + 114: uint8(16), + 115: uint8(16), + 116: uint8(16), + 117: uint8(16), + 118: uint8(16), + 119: uint8(16), + 120: uint8(16), + 121: uint8(16), + 122: uint8(16), + 123: uint8(16), + 124: uint8(16), + 125: uint8(16), + 126: uint8(16), + 127: uint8(16), + 128: uint8(16), + 129: uint8(16), + 130: uint8(16), + 131: uint8(16), + 132: uint8(16), + 133: uint8(16), + 134: uint8(16), + 135: uint8(16), + 136: uint8(16), + 137: uint8(16), + 138: uint8(16), + 139: uint8(16), + 140: uint8(16), + 141: uint8(16), + 142: uint8(16), + 143: uint8(16), + 144: uint8(16), + 145: uint8(16), + 146: uint8(16), + 147: uint8(16), + 148: uint8(16), + 149: uint8(16), + 150: uint8(16), + 151: uint8(16), + 152: uint8(16), + 153: uint8(16), + 154: uint8(16), + 155: uint8(16), + 156: uint8(16), + 157: uint8(16), + 158: uint8(16), + 159: uint8(16), + 160: uint8(16), + 161: uint8(16), + 162: uint8(16), + 163: uint8(16), + 164: uint8(57), + 165: uint8(16), + 166: uint8(58), + 167: uint8(59), + 168: uint8(60), + 169: uint8(61), + 170: uint8(62), + 171: uint8(63), + 172: uint8(16), + 173: uint8(16), + 174: uint8(16), + 175: uint8(16), + 176: uint8(16), + 177: uint8(16), + 178: uint8(16), + 179: uint8(16), + 180: uint8(16), + 181: uint8(16), + 182: uint8(16), + 183: uint8(16), + 184: uint8(16), + 185: uint8(16), + 186: uint8(16), + 187: uint8(16), + 188: uint8(16), + 189: uint8(16), + 190: uint8(16), + 191: uint8(16), + 192: uint8(16), + 193: uint8(16), + 194: uint8(16), + 195: uint8(16), + 196: uint8(16), + 197: uint8(16), + 198: uint8(16), + 199: uint8(16), + 200: uint8(16), + 201: uint8(16), + 202: uint8(16), + 203: uint8(16), + 204: uint8(16), + 205: uint8(16), + 206: uint8(16), + 207: uint8(16), + 208: uint8(16), + 209: uint8(16), + 210: uint8(16), + 211: uint8(16), + 212: uint8(16), + 213: uint8(16), + 214: uint8(16), + 215: uint8(16), + 216: uint8(16), + 217: uint8(16), + 218: uint8(16), + 219: uint8(16), + 220: uint8(16), + 221: uint8(16), + 222: uint8(16), + 223: uint8(16), + 224: uint8(64), + 225: uint8(16), + 226: uint8(16), + 227: uint8(16), + 228: uint8(16), + 229: uint8(16), + 230: uint8(16), + 231: uint8(16), + 232: uint8(16), + 233: uint8(16), + 234: uint8(16), + 235: uint8(16), + 236: uint8(16), + 237: uint8(16), + 238: uint8(16), + 239: uint8(16), + 240: uint8(16), + 241: uint8(16), + 242: uint8(16), + 243: uint8(16), + 244: uint8(16), + 245: uint8(16), + 246: uint8(16), + 247: uint8(16), + 248: uint8(65), + 249: uint8(16), + 250: uint8(16), + 251: uint8(66), + 252: uint8(16), + 253: uint8(67), + 254: uint8(68), + 255: uint8(69), + 256: uint8(16), + 257: uint8(70), + 258: uint8(71), + 259: uint8(72), + 260: uint8(16), + 261: uint8(73), + 262: uint8(16), + 263: uint8(16), + 264: uint8(74), + 265: uint8(75), + 266: uint8(76), + 267: uint8(77), + 268: uint8(78), + 269: uint8(16), + 270: uint8(79), + 271: uint8(80), + 272: uint8(81), + 273: uint8(82), + 274: uint8(83), + 275: uint8(84), + 276: uint8(85), + 277: uint8(86), + 278: uint8(87), + 279: uint8(88), + 280: uint8(89), + 281: uint8(90), + 282: uint8(91), + 283: uint8(16), + 284: uint8(92), + 285: uint8(93), + 286: uint8(94), + 287: uint8(95), + 288: uint8(16), + 289: uint8(16), + 290: uint8(16), + 291: uint8(16), + 292: uint8(96), + 293: uint8(16), + 294: uint8(16), + 295: uint8(16), + 296: uint8(16), + 297: uint8(16), + 298: uint8(16), + 299: uint8(16), + 300: uint8(16), + 301: uint8(16), + 302: uint8(16), + 303: uint8(16), + 304: uint8(16), + 305: uint8(16), + 306: uint8(16), + 307: uint8(16), + 308: uint8(97), + 309: uint8(16), + 310: uint8(16), + 311: uint8(16), + 312: uint8(16), + 313: uint8(16), + 314: uint8(16), + 315: uint8(16), + 316: uint8(16), + 317: uint8(16), + 318: uint8(16), + 319: uint8(16), + 320: uint8(16), + 321: uint8(16), + 322: uint8(16), + 323: uint8(16), + 324: uint8(16), + 325: uint8(16), + 326: uint8(16), + 327: uint8(16), + 328: uint8(16), + 329: uint8(16), + 330: uint8(16), + 331: uint8(16), + 332: uint8(16), + 333: uint8(16), + 334: uint8(16), + 335: uint8(16), + 336: uint8(16), + 337: uint8(16), + 338: uint8(16), + 339: uint8(16), + 340: uint8(16), + 341: uint8(16), + 342: uint8(16), + 343: uint8(16), + 344: uint8(16), + 345: uint8(16), + 346: uint8(16), + 347: uint8(16), + 348: uint8(16), + 349: uint8(16), + 350: uint8(16), + 351: uint8(16), + 352: uint8(16), + 353: uint8(16), + 354: uint8(16), + 355: uint8(16), + 356: uint8(16), + 357: uint8(16), + 358: uint8(16), + 359: uint8(16), + 360: uint8(16), + 361: uint8(16), + 362: uint8(98), + 363: uint8(99), + 364: uint8(16), + 365: uint8(16), + 366: uint8(100), + 367: uint8(101), + 368: uint8(16), + 369: uint8(16), + 370: uint8(16), + 371: uint8(16), + 372: uint8(16), + 373: uint8(16), + 374: uint8(16), + 375: uint8(16), + 376: uint8(16), + 377: uint8(16), + 378: uint8(16), + 379: uint8(16), + 380: uint8(16), + 381: uint8(16), + 382: uint8(16), + 383: uint8(16), + 384: uint8(16), + 385: uint8(16), + 386: uint8(16), + 387: uint8(16), + 388: uint8(16), + 389: uint8(16), + 390: uint8(16), + 391: uint8(16), + 392: uint8(16), + 393: uint8(16), + 394: uint8(16), + 395: uint8(16), + 396: uint8(16), + 397: uint8(16), + 398: uint8(16), + 399: uint8(16), + 400: uint8(16), + 401: uint8(16), + 402: uint8(16), + 403: uint8(16), + 404: uint8(16), + 405: uint8(16), + 406: uint8(16), + 407: uint8(16), + 408: uint8(16), + 409: uint8(16), + 410: uint8(16), + 411: uint8(16), + 412: uint8(16), + 413: uint8(16), + 414: uint8(16), + 415: uint8(16), + 416: uint8(16), + 417: uint8(16), + 418: uint8(16), + 419: uint8(16), + 420: uint8(16), + 421: uint8(16), + 422: uint8(16), + 423: uint8(16), + 424: uint8(16), + 425: uint8(16), + 426: uint8(16), + 427: uint8(16), + 428: uint8(16), + 429: uint8(16), + 430: uint8(16), + 431: uint8(16), + 432: uint8(16), + 433: uint8(16), + 434: uint8(16), + 435: uint8(16), + 436: uint8(16), + 437: uint8(16), + 438: uint8(16), + 439: uint8(16), + 440: uint8(16), + 441: uint8(16), + 442: uint8(16), + 443: uint8(16), + 444: uint8(102), + 445: uint8(16), + 446: uint8(16), + 447: uint8(16), + 448: uint8(16), + 449: uint8(16), + 450: uint8(16), + 451: uint8(16), + 452: uint8(16), + 453: uint8(16), + 454: uint8(16), + 455: uint8(16), + 456: uint8(16), + 457: uint8(16), + 458: uint8(16), + 459: uint8(16), + 460: uint8(16), + 461: uint8(16), + 462: uint8(16), + 463: uint8(16), + 464: uint8(103), + 465: uint8(104), + 466: uint8(105), + 467: uint8(106), + 468: uint8(16), + 469: uint8(16), + 470: uint8(107), + 471: uint8(108), + 472: uint8(17), + 473: uint8(17), + 474: uint8(109), + 475: uint8(16), + 476: uint8(16), + 477: uint8(16), + 478: uint8(16), + 479: uint8(16), + 480: uint8(16), + 481: uint8(110), + 482: uint8(111), + 483: uint8(16), + 484: uint8(16), + 485: uint8(16), + 486: uint8(16), + 487: uint8(16), + 488: uint8(112), + 489: uint8(113), + 490: uint8(16), + 491: uint8(16), + 492: uint8(114), + 493: uint8(115), + 494: uint8(116), + 495: uint8(16), + 496: uint8(117), + 497: uint8(118), + 498: uint8(119), + 499: uint8(17), + 500: uint8(17), + 501: uint8(17), + 502: uint8(120), + 503: uint8(121), + 504: uint8(122), + 505: uint8(123), + 506: uint8(124), + 507: uint8(16), + 508: uint8(16), + 509: uint8(16), + 510: uint8(16), + 511: uint8(16), + 544: uint8(255), + 545: uint8(255), + 546: uint8(255), + 547: uint8(255), + 548: uint8(255), + 549: uint8(255), + 550: uint8(255), + 551: uint8(255), + 552: uint8(255), + 553: uint8(255), + 554: uint8(255), + 555: uint8(255), + 556: uint8(255), + 557: uint8(255), + 558: uint8(255), + 559: uint8(255), + 560: uint8(255), + 561: uint8(255), + 562: uint8(255), + 563: uint8(255), + 564: uint8(255), + 565: uint8(255), + 566: uint8(255), + 567: uint8(255), + 568: uint8(255), + 569: uint8(255), + 570: uint8(255), + 571: uint8(255), + 572: uint8(255), + 573: uint8(255), + 574: uint8(255), + 575: uint8(255), + 580: uint8(254), + 581: uint8(255), + 583: uint8(252), + 584: uint8(1), + 587: uint8(248), + 588: uint8(1), + 591: uint8(120), + 596: uint8(255), + 597: uint8(251), + 598: uint8(223), + 599: uint8(251), + 602: uint8(128), + 606: uint8(128), + 632: uint8(60), + 634: uint8(252), + 635: uint8(255), + 636: uint8(224), + 637: uint8(175), + 638: uint8(255), + 639: uint8(255), + 640: uint8(255), + 641: uint8(255), + 642: uint8(255), + 643: uint8(255), + 644: uint8(255), + 645: uint8(255), + 646: uint8(255), + 647: uint8(255), + 648: uint8(223), + 649: uint8(255), + 650: uint8(255), + 651: uint8(255), + 652: uint8(255), + 653: uint8(255), + 654: uint8(32), + 655: uint8(64), + 656: uint8(176), + 670: uint8(64), + 688: uint8(252), + 689: uint8(3), + 715: uint8(252), + 721: uint8(230), + 722: uint8(254), + 723: uint8(255), + 724: uint8(255), + 725: uint8(255), + 727: uint8(64), + 728: uint8(73), + 734: uint8(24), + 736: uint8(255), + 737: uint8(255), + 739: uint8(216), + 747: uint8(1), + 749: uint8(60), + 762: uint8(16), + 763: uint8(224), + 764: uint8(1), + 765: uint8(30), + 767: uint8(96), + 768: uint8(255), + 769: uint8(191), + 776: uint8(255), + 777: uint8(7), + 797: uint8(248), + 798: uint8(207), + 799: uint8(227), + 803: uint8(3), + 805: uint8(32), + 806: uint8(255), + 807: uint8(127), + 811: uint8(78), + 826: uint8(8), + 828: uint8(7), + 829: uint8(252), + 839: uint8(16), + 841: uint8(32), + 842: uint8(30), + 844: uint8(48), + 846: uint8(1), + 855: uint8(16), + 857: uint8(32), + 862: uint8(252), + 863: uint8(111), + 871: uint8(16), + 873: uint8(32), + 878: uint8(64), + 887: uint8(16), + 889: uint8(32), + 894: uint8(3), + 895: uint8(224), + 903: uint8(16), + 905: uint8(32), + 910: uint8(253), + 921: uint8(32), + 926: uint8(255), + 927: uint8(7), + 928: uint8(16), + 937: uint8(32), + 942: uint8(128), + 943: uint8(255), + 944: uint8(16), + 951: uint8(16), + 953: uint8(32), + 967: uint8(24), + 969: uint8(160), + 971: uint8(127), + 974: uint8(255), + 975: uint8(3), + 985: uint8(4), + 990: uint8(16), + 997: uint8(128), + 999: uint8(128), + 1000: uint8(192), + 1001: uint8(223), + 1003: uint8(12), + 1015: uint8(4), + 1017: uint8(31), + 1024: uint8(254), + 1025: uint8(255), + 1026: uint8(255), + 1027: uint8(255), + 1029: uint8(252), + 1030: uint8(255), + 1031: uint8(255), + 1040: uint8(252), + 1047: uint8(192), + 1048: uint8(255), + 1049: uint8(223), + 1050: uint8(255), + 1051: uint8(7), + 1062: uint8(128), + 1063: uint8(6), + 1065: uint8(252), + 1075: uint8(192), + 1087: uint8(8), + 1099: uint8(224), + 1100: uint8(255), + 1101: uint8(255), + 1102: uint8(255), + 1103: uint8(31), + 1106: uint8(255), + 1107: uint8(3), + 1120: uint8(1), + 1165: uint8(96), + 1168: uint8(1), + 1171: uint8(24), + 1181: uint8(56), + 1186: uint8(16), + 1190: uint8(112), + 1206: uint8(48), + 1209: uint8(254), + 1210: uint8(127), + 1211: uint8(47), + 1214: uint8(255), + 1215: uint8(3), + 1216: uint8(255), + 1217: uint8(127), + 1255: uint8(14), + 1256: uint8(49), + 1275: uint8(196), + 1276: uint8(255), + 1277: uint8(255), + 1278: uint8(255), + 1279: uint8(255), + 1283: uint8(192), + 1292: uint8(1), + 1294: uint8(224), + 1295: uint8(159), + 1300: uint8(127), + 1301: uint8(63), + 1302: uint8(255), + 1303: uint8(127), + 1318: uint8(16), + 1320: uint8(16), + 1323: uint8(252), + 1324: uint8(255), + 1325: uint8(255), + 1326: uint8(255), + 1327: uint8(31), + 1333: uint8(12), + 1340: uint8(64), + 1342: uint8(12), + 1343: uint8(240), + 1350: uint8(128), + 1351: uint8(248), + 1359: uint8(192), + 1368: uint8(255), + 1370: uint8(255), + 1371: uint8(255), + 1372: uint8(255), + 1373: uint8(33), + 1374: uint8(144), + 1375: uint8(3), + 1400: uint8(255), + 1401: uint8(255), + 1402: uint8(255), + 1403: uint8(255), + 1404: uint8(127), + 1406: uint8(224), + 1407: uint8(251), + 1431: uint8(160), + 1432: uint8(3), + 1433: uint8(224), + 1435: uint8(224), + 1437: uint8(224), + 1439: uint8(96), + 1440: uint8(128), + 1441: uint8(248), + 1442: uint8(255), + 1443: uint8(255), + 1444: uint8(255), + 1445: uint8(252), + 1446: uint8(255), + 1447: uint8(255), + 1448: uint8(255), + 1449: uint8(255), + 1450: uint8(255), + 1451: uint8(127), + 1452: uint8(223), + 1453: uint8(255), + 1454: uint8(241), + 1455: uint8(127), + 1456: uint8(255), + 1457: uint8(127), + 1460: uint8(255), + 1461: uint8(255), + 1462: uint8(255), + 1463: uint8(255), + 1466: uint8(255), + 1467: uint8(255), + 1468: uint8(255), + 1469: uint8(255), + 1470: uint8(1), + 1472: uint8(123), + 1473: uint8(3), + 1474: uint8(208), + 1475: uint8(193), + 1476: uint8(175), + 1477: uint8(66), + 1479: uint8(12), + 1480: uint8(31), + 1481: uint8(188), + 1482: uint8(255), + 1483: uint8(255), + 1489: uint8(14), + 1490: uint8(255), + 1491: uint8(255), + 1492: uint8(255), + 1493: uint8(255), + 1494: uint8(255), + 1495: uint8(255), + 1496: uint8(255), + 1497: uint8(255), + 1498: uint8(255), + 1499: uint8(255), + 1500: uint8(255), + 1501: uint8(255), + 1502: uint8(255), + 1503: uint8(255), + 1504: uint8(255), + 1505: uint8(255), + 1506: uint8(255), + 1507: uint8(255), + 1508: uint8(127), + 1512: uint8(255), + 1513: uint8(7), + 1516: uint8(255), + 1517: uint8(255), + 1518: uint8(255), + 1519: uint8(255), + 1520: uint8(255), + 1521: uint8(255), + 1522: uint8(255), + 1523: uint8(255), + 1524: uint8(255), + 1525: uint8(255), + 1526: uint8(63), + 1533: uint8(252), + 1534: uint8(255), + 1535: uint8(255), + 1536: uint8(255), + 1537: uint8(255), + 1538: uint8(255), + 1539: uint8(255), + 1540: uint8(255), + 1541: uint8(255), + 1542: uint8(255), + 1543: uint8(255), + 1544: uint8(255), + 1545: uint8(255), + 1546: uint8(255), + 1547: uint8(255), + 1548: uint8(255), + 1549: uint8(255), + 1550: uint8(207), + 1551: uint8(255), + 1552: uint8(255), + 1553: uint8(255), + 1554: uint8(63), + 1555: uint8(255), + 1556: uint8(255), + 1557: uint8(255), + 1558: uint8(255), + 1559: uint8(255), + 1560: uint8(255), + 1561: uint8(255), + 1562: uint8(255), + 1563: uint8(255), + 1564: uint8(255), + 1565: uint8(255), + 1566: uint8(255), + 1567: uint8(255), + 1596: uint8(224), + 1597: uint8(135), + 1598: uint8(3), + 1599: uint8(254), + 1614: uint8(1), + 1615: uint8(128), + 1632: uint8(255), + 1633: uint8(255), + 1634: uint8(255), + 1635: uint8(255), + 1636: uint8(255), + 1637: uint8(127), + 1638: uint8(255), + 1639: uint8(255), + 1640: uint8(255), + 1641: uint8(255), + 1648: uint8(255), + 1649: uint8(255), + 1650: uint8(255), + 1651: uint8(251), + 1652: uint8(255), + 1653: uint8(255), + 1654: uint8(255), + 1655: uint8(255), + 1656: uint8(255), + 1657: uint8(255), + 1658: uint8(255), + 1659: uint8(255), + 1660: uint8(255), + 1661: uint8(255), + 1662: uint8(15), + 1664: uint8(255), + 1665: uint8(255), + 1666: uint8(255), + 1667: uint8(255), + 1668: uint8(255), + 1669: uint8(255), + 1670: uint8(255), + 1671: uint8(255), + 1672: uint8(255), + 1673: uint8(255), + 1674: uint8(255), + 1675: uint8(255), + 1676: uint8(255), + 1677: uint8(255), + 1678: uint8(255), + 1679: uint8(255), + 1680: uint8(255), + 1681: uint8(255), + 1682: uint8(255), + 1683: uint8(255), + 1684: uint8(255), + 1685: uint8(255), + 1686: uint8(255), + 1687: uint8(255), + 1688: uint8(255), + 1689: uint8(255), + 1690: uint8(63), + 1694: uint8(255), + 1695: uint8(15), + 1696: uint8(30), + 1697: uint8(255), + 1698: uint8(255), + 1699: uint8(255), + 1700: uint8(1), + 1701: uint8(252), + 1702: uint8(193), + 1703: uint8(224), + 1715: uint8(30), + 1716: uint8(1), + 1727: uint8(8), + 1746: uint8(255), + 1747: uint8(255), + 1752: uint8(255), + 1753: uint8(255), + 1754: uint8(255), + 1755: uint8(255), + 1756: uint8(15), + 1760: uint8(255), + 1761: uint8(255), + 1762: uint8(255), + 1763: uint8(127), + 1764: uint8(255), + 1765: uint8(255), + 1766: uint8(255), + 1767: uint8(255), + 1768: uint8(255), + 1769: uint8(255), + 1770: uint8(255), + 1771: uint8(255), + 1772: uint8(255), + 1773: uint8(255), + 1774: uint8(255), + 1775: uint8(255), + 1776: uint8(255), + 1777: uint8(255), + 1778: uint8(255), + 1779: uint8(255), + 1780: uint8(255), + 1781: uint8(255), + 1782: uint8(255), + 1783: uint8(255), + 1784: uint8(255), + 1785: uint8(255), + 1786: uint8(255), + 1787: uint8(255), + 1788: uint8(255), + 1789: uint8(255), + 1790: uint8(255), + 1791: uint8(255), + 1816: uint8(255), + 1817: uint8(255), + 1818: uint8(255), + 1819: uint8(255), + 1820: uint8(255), + 1821: uint8(255), + 1822: uint8(255), + 1823: uint8(255), + 1842: uint8(255), + 1843: uint8(255), + 1844: uint8(255), + 1845: uint8(255), + 1846: uint8(255), + 1847: uint8(255), + 1848: uint8(127), + 1855: uint8(192), + 1857: uint8(224), + 1869: uint8(128), + 1870: uint8(15), + 1871: uint8(112), + 1886: uint8(255), + 1888: uint8(255), + 1889: uint8(255), + 1890: uint8(127), + 1892: uint8(3), + 1905: uint8(6), + 1920: uint8(64), + 1925: uint8(15), + 1926: uint8(255), + 1927: uint8(3), + 1934: uint8(240), + 1944: uint8(16), + 1945: uint8(192), + 1948: uint8(255), + 1949: uint8(255), + 1950: uint8(3), + 1951: uint8(23), + 1957: uint8(248), + 1962: uint8(8), + 1963: uint8(128), + 1974: uint8(8), + 1976: uint8(255), + 1977: uint8(63), + 1979: uint8(192), + 1995: uint8(240), + 1998: uint8(128), + 1999: uint8(3), + 2007: uint8(128), + 2008: uint8(2), + 2011: uint8(192), + 2014: uint8(67), + 2027: uint8(8), + 2045: uint8(56), + 2048: uint8(1), + 2111: uint8(128), + 2117: uint8(2), + 2134: uint8(252), + 2135: uint8(255), + 2136: uint8(3), + 2151: uint8(192), + 2175: uint8(48), + 2176: uint8(255), + 2177: uint8(255), + 2178: uint8(255), + 2179: uint8(3), + 2180: uint8(255), + 2181: uint8(255), + 2182: uint8(255), + 2183: uint8(255), + 2184: uint8(255), + 2185: uint8(255), + 2186: uint8(247), + 2187: uint8(255), + 2188: uint8(127), + 2189: uint8(15), + 2207: uint8(128), + 2208: uint8(254), + 2209: uint8(255), + 2211: uint8(252), + 2212: uint8(1), + 2215: uint8(248), + 2216: uint8(1), + 2219: uint8(248), + 2220: uint8(63), + 2236: uint8(127), + 2237: uint8(127), + 2239: uint8(48), + 2240: uint8(135), + 2241: uint8(255), + 2242: uint8(255), + 2243: uint8(255), + 2244: uint8(255), + 2245: uint8(255), + 2246: uint8(143), + 2247: uint8(255), + 2254: uint8(224), + 2255: uint8(255), + 2256: uint8(255), + 2257: uint8(127), + 2258: uint8(255), + 2259: uint8(15), + 2260: uint8(1), + 2266: uint8(255), + 2267: uint8(255), + 2268: uint8(255), + 2269: uint8(255), + 2270: uint8(255), + 2271: uint8(63), + 2300: uint8(255), + 2301: uint8(255), + 2302: uint8(255), + 2303: uint8(15), + 2308: uint8(15), + 2323: uint8(128), + 2330: uint8(1), + 2349: uint8(128), + 2378: uint8(128), + 2379: uint8(255), + 2382: uint8(128), + 2383: uint8(255), + 2388: uint8(128), + 2389: uint8(255), + 2399: uint8(248), + 2402: uint8(192), + 2403: uint8(143), + 2407: uint8(128), + 2423: uint8(48), + 2424: uint8(255), + 2425: uint8(255), + 2426: uint8(252), + 2427: uint8(255), + 2428: uint8(255), + 2429: uint8(255), + 2430: uint8(255), + 2431: uint8(255), + 2439: uint8(135), + 2440: uint8(255), + 2441: uint8(1), + 2442: uint8(255), + 2443: uint8(1), + 2447: uint8(224), + 2451: uint8(224), + 2457: uint8(1), + 2460: uint8(96), + 2461: uint8(248), + 2462: uint8(127), + 2471: uint8(254), + 2475: uint8(255), + 2479: uint8(255), + 2483: uint8(30), + 2485: uint8(254), + 2527: uint8(252), + 2540: uint8(255), + 2541: uint8(255), + 2542: uint8(255), + 2543: uint8(127), + 2563: uint8(224), + 2564: uint8(127), + 2568: uint8(192), + 2569: uint8(255), + 2570: uint8(255), + 2571: uint8(3), + 2600: uint8(192), + 2601: uint8(63), + 2602: uint8(252), + 2603: uint8(255), + 2604: uint8(63), + 2607: uint8(128), + 2608: uint8(3), + 2615: uint8(254), + 2616: uint8(3), + 2617: uint8(32), + 2630: uint8(24), + 2632: uint8(15), + 2638: uint8(56), + 2648: uint8(225), + 2649: uint8(63), + 2651: uint8(232), + 2652: uint8(254), + 2653: uint8(255), + 2654: uint8(31), + 2662: uint8(96), + 2663: uint8(63), + 2677: uint8(2), + 2685: uint8(6), + 2695: uint8(24), + 2697: uint8(32), + 2700: uint8(192), + 2701: uint8(31), + 2702: uint8(31), + 2728: uint8(68), + 2729: uint8(248), + 2731: uint8(104), + 2744: uint8(76), + 2775: uint8(128), + 2776: uint8(255), + 2777: uint8(255), + 2778: uint8(255), + 2791: uint8(128), + 2792: uint8(14), + 2796: uint8(255), + 2797: uint8(31), + 2806: uint8(192), + 2821: uint8(8), + 2823: uint8(252), + 2855: uint8(14), + 2877: uint8(252), + 2878: uint8(7), + 2908: uint8(5), + 2918: uint8(24), + 2919: uint8(128), + 2920: uint8(255), + 2931: uint8(223), + 2932: uint8(7), + 2951: uint8(128), + 2952: uint8(62), + 2955: uint8(252), + 2956: uint8(255), + 2957: uint8(31), + 2958: uint8(3), + 2984: uint8(52), + 2994: uint8(128), + 3038: uint8(128), + 3039: uint8(1), + 3064: uint8(255), + 3065: uint8(255), + 3066: uint8(255), + 3067: uint8(255), + 3068: uint8(255), + 3069: uint8(255), + 3070: uint8(3), + 3071: uint8(128), + 3086: uint8(31), + 3110: uint8(255), + 3111: uint8(1), + 3149: uint8(192), + 3166: uint8(63), + 3174: uint8(255), + 3175: uint8(255), + 3176: uint8(48), + 3179: uint8(248), + 3180: uint8(3), + 3216: uint8(255), + 3217: uint8(255), + 3218: uint8(255), + 3219: uint8(7), + 3260: uint8(4), + 3283: uint8(176), + 3284: uint8(15), + 3296: uint8(255), + 3297: uint8(255), + 3298: uint8(255), + 3299: uint8(255), + 3300: uint8(255), + 3301: uint8(255), + 3302: uint8(255), + 3303: uint8(255), + 3304: uint8(255), + 3305: uint8(255), + 3306: uint8(255), + 3307: uint8(255), + 3308: uint8(255), + 3309: uint8(255), + 3310: uint8(255), + 3311: uint8(255), + 3312: uint8(255), + 3313: uint8(255), + 3314: uint8(255), + 3315: uint8(255), + 3316: uint8(255), + 3317: uint8(255), + 3318: uint8(255), + 3319: uint8(255), + 3320: uint8(255), + 3321: uint8(255), + 3322: uint8(255), + 3323: uint8(255), + 3324: uint8(255), + 3325: uint8(255), + 3326: uint8(63), + 3328: uint8(255), + 3329: uint8(255), + 3330: uint8(255), + 3331: uint8(255), + 3332: uint8(127), + 3333: uint8(254), + 3334: uint8(255), + 3335: uint8(255), + 3336: uint8(255), + 3337: uint8(255), + 3338: uint8(255), + 3339: uint8(255), + 3340: uint8(255), + 3341: uint8(255), + 3342: uint8(255), + 3343: uint8(255), + 3344: uint8(255), + 3345: uint8(255), + 3346: uint8(255), + 3347: uint8(255), + 3348: uint8(255), + 3349: uint8(255), + 3350: uint8(255), + 3351: uint8(255), + 3352: uint8(255), + 3353: uint8(255), + 3354: uint8(255), + 3355: uint8(255), + 3356: uint8(255), + 3357: uint8(1), + 3360: uint8(255), + 3361: uint8(255), + 3362: uint8(255), + 3363: uint8(255), + 3364: uint8(255), + 3365: uint8(255), + 3366: uint8(255), + 3367: uint8(255), + 3368: uint8(63), + 3388: uint8(255), + 3389: uint8(255), + 3390: uint8(15), + 3392: uint8(255), + 3393: uint8(255), + 3394: uint8(255), + 3395: uint8(255), + 3396: uint8(255), + 3397: uint8(255), + 3398: uint8(255), + 3399: uint8(255), + 3400: uint8(255), + 3401: uint8(255), + 3402: uint8(127), + 3404: uint8(255), + 3405: uint8(255), + 3406: uint8(255), + 3407: uint8(1), + 3448: uint8(2), + 3451: uint8(8), + 3455: uint8(8), + 3458: uint8(32), + 3462: uint8(32), + 3465: uint8(128), + 3469: uint8(128), + 3473: uint8(2), + 3477: uint8(2), + 3480: uint8(8), + 3488: uint8(255), + 3489: uint8(255), + 3490: uint8(255), + 3491: uint8(255), + 3492: uint8(255), + 3493: uint8(255), + 3494: uint8(255), + 3495: uint8(255), + 3496: uint8(255), + 3497: uint8(255), + 3498: uint8(255), + 3499: uint8(255), + 3500: uint8(255), + 3501: uint8(255), + 3502: uint8(255), + 3503: uint8(255), + 3504: uint8(255), + 3505: uint8(15), + 3507: uint8(248), + 3508: uint8(254), + 3509: uint8(255), + 3526: uint8(127), + 3529: uint8(128), + 3581: uint8(240), + 3583: uint8(128), + 3608: uint8(128), + 3609: uint8(255), + 3610: uint8(127), + 3624: uint8(112), + 3625: uint8(7), + 3627: uint8(192), + 3662: uint8(254), + 3663: uint8(255), + 3664: uint8(255), + 3665: uint8(255), + 3666: uint8(255), + 3667: uint8(255), + 3668: uint8(255), + 3669: uint8(255), + 3670: uint8(31), + 3680: uint8(254), + 3681: uint8(255), + 3682: uint8(255), + 3683: uint8(255), + 3684: uint8(255), + 3685: uint8(255), + 3686: uint8(255), + 3687: uint8(63), + 3742: uint8(3), + 3744: uint8(255), + 3745: uint8(255), + 3746: uint8(255), + 3747: uint8(255), + 3748: uint8(255), + 3749: uint8(15), + 3750: uint8(255), + 3751: uint8(255), + 3752: uint8(255), + 3753: uint8(255), + 3754: uint8(255), + 3755: uint8(255), + 3756: uint8(255), + 3757: uint8(255), + 3758: uint8(255), + 3759: uint8(255), + 3760: uint8(255), + 3761: uint8(255), + 3762: uint8(15), + 3764: uint8(255), + 3765: uint8(127), + 3766: uint8(254), + 3767: uint8(255), + 3768: uint8(254), + 3769: uint8(255), + 3770: uint8(254), + 3771: uint8(255), + 3772: uint8(255), + 3773: uint8(255), + 3774: uint8(63), + 3776: uint8(255), + 3777: uint8(31), + 3778: uint8(255), + 3779: uint8(255), + 3780: uint8(255), + 3781: uint8(255), + 3785: uint8(252), + 3789: uint8(28), + 3793: uint8(252), + 3794: uint8(255), + 3795: uint8(255), + 3796: uint8(255), + 3797: uint8(31), + 3804: uint8(192), + 3805: uint8(255), + 3806: uint8(255), + 3807: uint8(255), + 3808: uint8(7), + 3810: uint8(255), + 3811: uint8(255), + 3812: uint8(255), + 3813: uint8(255), + 3814: uint8(255), + 3815: uint8(15), + 3816: uint8(255), + 3817: uint8(1), + 3818: uint8(3), + 3820: uint8(63), + 3840: uint8(255), + 3841: uint8(255), + 3842: uint8(255), + 3843: uint8(255), + 3844: uint8(255), + 3845: uint8(255), + 3846: uint8(255), + 3847: uint8(255), + 3848: uint8(255), + 3849: uint8(255), + 3850: uint8(255), + 3851: uint8(255), + 3852: uint8(255), + 3853: uint8(255), + 3854: uint8(255), + 3855: uint8(255), + 3856: uint8(255), + 3857: uint8(255), + 3858: uint8(255), + 3859: uint8(255), + 3860: uint8(255), + 3861: uint8(255), + 3862: uint8(255), + 3863: uint8(255), + 3864: uint8(255), + 3865: uint8(255), + 3866: uint8(63), + 3868: uint8(255), + 3869: uint8(31), + 3870: uint8(255), + 3871: uint8(7), + 3872: uint8(255), + 3873: uint8(255), + 3874: uint8(255), + 3875: uint8(255), + 3876: uint8(255), + 3877: uint8(255), + 3878: uint8(255), + 3879: uint8(255), + 3880: uint8(255), + 3881: uint8(255), + 3882: uint8(255), + 3883: uint8(255), + 3884: uint8(255), + 3885: uint8(255), + 3886: uint8(15), + 3888: uint8(255), + 3889: uint8(255), + 3890: uint8(255), + 3891: uint8(255), + 3892: uint8(255), + 3893: uint8(255), + 3894: uint8(255), + 3895: uint8(255), + 3896: uint8(255), + 3897: uint8(255), + 3898: uint8(255), + 3899: uint8(1), + 3900: uint8(255), + 3901: uint8(15), + 3904: uint8(255), + 3905: uint8(15), + 3906: uint8(255), + 3907: uint8(255), + 3908: uint8(255), + 3909: uint8(255), + 3910: uint8(255), + 3911: uint8(255), + 3912: uint8(255), + 3914: uint8(255), + 3915: uint8(3), + 3916: uint8(255), + 3917: uint8(255), + 3918: uint8(255), + 3919: uint8(255), + 3920: uint8(255), + 3922: uint8(255), + 3923: uint8(255), + 3924: uint8(255), + 3925: uint8(63), + 3936: uint8(255), + 3937: uint8(239), + 3938: uint8(255), + 3939: uint8(255), + 3940: uint8(255), + 3941: uint8(255), + 3942: uint8(255), + 3943: uint8(255), + 3944: uint8(255), + 3945: uint8(255), + 3946: uint8(255), + 3947: uint8(255), + 3948: uint8(255), + 3949: uint8(255), + 3950: uint8(123), + 3951: uint8(252), + 3952: uint8(255), + 3953: uint8(255), + 3954: uint8(255), + 3955: uint8(255), + 3956: uint8(231), + 3957: uint8(199), + 3958: uint8(255), + 3959: uint8(255), + 3960: uint8(255), + 3961: uint8(231), + 3962: uint8(255), + 3963: uint8(255), + 3964: uint8(255), + 3965: uint8(255), + 3966: uint8(255), + 3967: uint8(255), + 3968: uint8(255), + 3969: uint8(255), + 3970: uint8(255), + 3971: uint8(255), + 3972: uint8(255), + 3973: uint8(255), + 3974: uint8(255), + 3975: uint8(255), + 3976: uint8(255), + 3977: uint8(255), + 3978: uint8(15), + 3980: uint8(255), + 3981: uint8(63), + 3982: uint8(15), + 3983: uint8(7), + 3984: uint8(7), + 3986: uint8(63), +} + +func Xiswpunct(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + if wc < uint32(0x20000) { + return Int32FromUint8(_table4[Uint32FromInt32(Int32FromUint8(_table4[wc>>int32(8)])*int32(32))+wc&uint32(255)>>int32(3)]) >> (wc & uint32(7)) & int32(1) + } + return 0 +} + +func X__iswpunct_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswpunct(tls, c) +} + +func Xiswpunct_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswpunct_l(tls, c, l) +} + +type Tmbstate_t = struct { + F__opaque1 uint32 + F__opaque2 uint32 +} + +type t__mbstate_t = Tmbstate_t + +/* Our definition of whitespace is the Unicode White_Space property, + * minus non-breaking spaces (U+00A0, U+2007, and U+202F) and script- + * specific characters with non-blank glyphs (U+1680 and U+180E). */ + +func Xiswspace(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(wc != 0 && Xwcschr(tls, uintptr(unsafe.Pointer(&_spaces)), Int32FromUint32(wc)) != 0) +} + +var _spaces = [22]Twchar_t{ + 0: int32(' '), + 1: int32('\t'), + 2: int32('\n'), + 3: int32('\r'), + 4: int32(11), + 5: int32(12), + 6: int32(0x0085), + 7: int32(0x2000), + 8: int32(0x2001), + 9: int32(0x2002), + 10: int32(0x2003), + 11: int32(0x2004), + 12: int32(0x2005), + 13: int32(0x2006), + 14: int32(0x2008), + 15: int32(0x2009), + 16: int32(0x200a), + 17: int32(0x2028), + 18: int32(0x2029), + 19: int32(0x205f), + 20: int32(0x3000), +} + +func X__iswspace_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswspace(tls, c) +} + +func Xiswspace_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswspace_l(tls, c, l) +} + +func Xiswupper(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(Xtowlower(tls, wc) != wc) +} + +func X__iswupper_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswupper(tls, c) +} + +func Xiswupper_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswupper_l(tls, c, l) +} + +func Xiswxdigit(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(wc-Uint32FromUint8('0') < uint32(10) || wc|Uint32FromInt32(32)-Uint32FromUint8('a') < uint32(6)) +} + +func X__iswxdigit_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswxdigit(tls, c) +} + +func Xiswxdigit_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswxdigit_l(tls, c, l) +} + +func Xisxdigit(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(BoolInt32(Uint32FromInt32(c)-uint32('0') < uint32(10)) != 0 || Uint32FromInt32(c)|uint32(32)-uint32('a') < uint32(6)) +} + +func X__isxdigit_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xisxdigit(tls, c) +} + +func Xisxdigit_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__isxdigit_l(tls, c, l) +} + +// C documentation +// +// /* nonsense function that should NEVER be used! */ +func Xtoascii(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return c & int32(0x7f) +} + +func Xtolower(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + if BoolInt32(Uint32FromInt32(c)-uint32('A') < uint32(26)) != 0 { + return c | int32(32) + } + return c +} + +func X__tolower_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xtolower(tls, c) +} + +func Xtolower_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__tolower_l(tls, c, l) +} + +func Xtoupper(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + if BoolInt32(Uint32FromInt32(c)-uint32('a') < uint32(26)) != 0 { + return c & int32(0x5f) + } + return c +} + +func X__toupper_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xtoupper(tls, c) +} + +func Xtoupper_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__toupper_l(tls, c, l) +} + +var _tab1 = [2666]uint8{ + 0: uint8(7), + 1: uint8(8), + 2: uint8(9), + 3: uint8(10), + 4: uint8(11), + 5: uint8(12), + 6: uint8(6), + 7: uint8(6), + 8: uint8(6), + 9: uint8(6), + 10: uint8(6), + 11: uint8(6), + 12: uint8(6), + 13: uint8(6), + 14: uint8(6), + 15: uint8(6), + 16: uint8(13), + 17: uint8(6), + 18: uint8(6), + 19: uint8(14), + 20: uint8(6), + 21: uint8(6), + 22: uint8(6), + 23: uint8(6), + 24: uint8(6), + 25: uint8(6), + 26: uint8(6), + 27: uint8(6), + 28: uint8(15), + 29: uint8(16), + 30: uint8(17), + 31: uint8(18), + 32: uint8(6), + 33: uint8(19), + 34: uint8(6), + 35: uint8(6), + 36: uint8(6), + 37: uint8(6), + 38: uint8(6), + 39: uint8(6), + 40: uint8(6), + 41: uint8(6), + 42: uint8(6), + 43: uint8(6), + 44: uint8(20), + 45: uint8(21), + 46: uint8(6), + 47: uint8(6), + 48: uint8(6), + 49: uint8(6), + 50: uint8(6), + 51: uint8(6), + 52: uint8(6), + 53: uint8(6), + 54: uint8(6), + 55: uint8(6), + 56: uint8(6), + 57: uint8(6), + 58: uint8(6), + 59: uint8(6), + 60: uint8(6), + 61: uint8(6), + 62: uint8(6), + 63: uint8(6), + 64: uint8(6), + 65: uint8(6), + 66: uint8(6), + 67: uint8(6), + 68: uint8(6), + 69: uint8(6), + 70: uint8(6), + 71: uint8(6), + 72: uint8(6), + 73: uint8(6), + 74: uint8(6), + 75: uint8(6), + 76: uint8(6), + 77: uint8(6), + 78: uint8(6), + 79: uint8(6), + 80: uint8(6), + 81: uint8(6), + 82: uint8(6), + 83: uint8(6), + 84: uint8(6), + 85: uint8(6), + 86: uint8(6), + 87: uint8(6), + 88: uint8(6), + 89: uint8(6), + 90: uint8(6), + 91: uint8(6), + 92: uint8(6), + 93: uint8(6), + 94: uint8(6), + 95: uint8(6), + 96: uint8(6), + 97: uint8(6), + 98: uint8(6), + 99: uint8(6), + 100: uint8(6), + 101: uint8(6), + 102: uint8(6), + 103: uint8(6), + 104: uint8(6), + 105: uint8(6), + 106: uint8(6), + 107: uint8(6), + 108: uint8(6), + 109: uint8(6), + 110: uint8(6), + 111: uint8(6), + 112: uint8(6), + 113: uint8(6), + 114: uint8(6), + 115: uint8(6), + 116: uint8(6), + 117: uint8(6), + 118: uint8(6), + 119: uint8(6), + 120: uint8(6), + 121: uint8(6), + 122: uint8(6), + 123: uint8(6), + 124: uint8(6), + 125: uint8(6), + 126: uint8(6), + 127: uint8(6), + 128: uint8(6), + 129: uint8(6), + 130: uint8(6), + 131: uint8(6), + 132: uint8(6), + 133: uint8(6), + 134: uint8(6), + 135: uint8(6), + 136: uint8(6), + 137: uint8(6), + 138: uint8(6), + 139: uint8(6), + 140: uint8(6), + 141: uint8(6), + 142: uint8(6), + 143: uint8(6), + 144: uint8(6), + 145: uint8(6), + 146: uint8(6), + 147: uint8(6), + 148: uint8(6), + 149: uint8(6), + 150: uint8(6), + 151: uint8(6), + 152: uint8(6), + 153: uint8(6), + 154: uint8(6), + 155: uint8(6), + 156: uint8(6), + 157: uint8(6), + 158: uint8(6), + 159: uint8(6), + 160: uint8(6), + 161: uint8(6), + 162: uint8(6), + 163: uint8(6), + 164: uint8(6), + 165: uint8(6), + 166: uint8(22), + 167: uint8(23), + 168: uint8(6), + 169: uint8(6), + 170: uint8(6), + 171: uint8(24), + 172: uint8(6), + 173: uint8(6), + 174: uint8(6), + 175: uint8(6), + 176: uint8(6), + 177: uint8(6), + 178: uint8(6), + 179: uint8(6), + 180: uint8(6), + 181: uint8(6), + 182: uint8(6), + 183: uint8(6), + 184: uint8(6), + 185: uint8(6), + 186: uint8(6), + 187: uint8(6), + 188: uint8(6), + 189: uint8(6), + 190: uint8(6), + 191: uint8(6), + 192: uint8(6), + 193: uint8(6), + 194: uint8(6), + 195: uint8(6), + 196: uint8(6), + 197: uint8(6), + 198: uint8(6), + 199: uint8(6), + 200: uint8(6), + 201: uint8(6), + 202: uint8(6), + 203: uint8(6), + 204: uint8(6), + 205: uint8(6), + 206: uint8(6), + 207: uint8(6), + 208: uint8(6), + 209: uint8(6), + 210: uint8(6), + 211: uint8(6), + 212: uint8(6), + 213: uint8(6), + 214: uint8(6), + 215: uint8(6), + 216: uint8(6), + 217: uint8(6), + 218: uint8(6), + 219: uint8(6), + 220: uint8(6), + 221: uint8(6), + 222: uint8(6), + 223: uint8(6), + 224: uint8(6), + 225: uint8(6), + 226: uint8(6), + 227: uint8(6), + 228: uint8(6), + 229: uint8(6), + 230: uint8(6), + 231: uint8(6), + 232: uint8(6), + 233: uint8(6), + 234: uint8(6), + 235: uint8(6), + 236: uint8(6), + 237: uint8(6), + 238: uint8(6), + 239: uint8(6), + 240: uint8(6), + 241: uint8(6), + 242: uint8(6), + 243: uint8(6), + 244: uint8(6), + 245: uint8(6), + 246: uint8(6), + 247: uint8(6), + 248: uint8(6), + 249: uint8(6), + 250: uint8(6), + 251: uint8(6), + 252: uint8(6), + 253: uint8(6), + 254: uint8(6), + 255: uint8(25), + 256: uint8(6), + 257: uint8(6), + 258: uint8(6), + 259: uint8(6), + 260: uint8(26), + 261: uint8(6), + 262: uint8(6), + 263: uint8(6), + 264: uint8(6), + 265: uint8(6), + 266: uint8(6), + 267: uint8(6), + 268: uint8(27), + 269: uint8(6), + 270: uint8(6), + 271: uint8(6), + 272: uint8(6), + 273: uint8(6), + 274: uint8(6), + 275: uint8(6), + 276: uint8(6), + 277: uint8(6), + 278: uint8(6), + 279: uint8(6), + 280: uint8(28), + 281: uint8(6), + 282: uint8(6), + 283: uint8(6), + 284: uint8(6), + 285: uint8(6), + 286: uint8(6), + 287: uint8(6), + 288: uint8(6), + 289: uint8(6), + 290: uint8(6), + 291: uint8(6), + 292: uint8(6), + 293: uint8(6), + 294: uint8(6), + 295: uint8(6), + 296: uint8(6), + 297: uint8(6), + 298: uint8(6), + 299: uint8(6), + 300: uint8(6), + 301: uint8(6), + 302: uint8(6), + 303: uint8(6), + 304: uint8(6), + 305: uint8(6), + 306: uint8(6), + 307: uint8(6), + 308: uint8(6), + 309: uint8(6), + 310: uint8(6), + 311: uint8(6), + 312: uint8(6), + 313: uint8(6), + 314: uint8(6), + 315: uint8(6), + 316: uint8(6), + 317: uint8(6), + 318: uint8(6), + 319: uint8(6), + 320: uint8(6), + 321: uint8(6), + 322: uint8(6), + 323: uint8(6), + 324: uint8(6), + 325: uint8(6), + 326: uint8(6), + 327: uint8(6), + 328: uint8(6), + 329: uint8(6), + 330: uint8(6), + 331: uint8(6), + 332: uint8(6), + 333: uint8(6), + 334: uint8(6), + 335: uint8(6), + 336: uint8(6), + 337: uint8(6), + 338: uint8(6), + 339: uint8(6), + 340: uint8(6), + 341: uint8(6), + 342: uint8(6), + 343: uint8(6), + 344: uint8(6), + 345: uint8(6), + 346: uint8(6), + 347: uint8(6), + 348: uint8(6), + 349: uint8(6), + 350: uint8(6), + 351: uint8(6), + 352: uint8(6), + 353: uint8(6), + 354: uint8(6), + 355: uint8(6), + 356: uint8(6), + 357: uint8(6), + 358: uint8(6), + 359: uint8(6), + 360: uint8(6), + 361: uint8(6), + 362: uint8(6), + 363: uint8(6), + 364: uint8(6), + 365: uint8(6), + 366: uint8(29), + 367: uint8(6), + 368: uint8(6), + 369: uint8(6), + 370: uint8(6), + 371: uint8(6), + 372: uint8(6), + 373: uint8(6), + 374: uint8(6), + 375: uint8(6), + 376: uint8(6), + 377: uint8(6), + 378: uint8(6), + 379: uint8(6), + 380: uint8(6), + 381: uint8(6), + 382: uint8(6), + 383: uint8(6), + 384: uint8(6), + 385: uint8(6), + 386: uint8(6), + 387: uint8(6), + 388: uint8(6), + 389: uint8(6), + 390: uint8(6), + 391: uint8(6), + 392: uint8(6), + 393: uint8(6), + 394: uint8(6), + 395: uint8(6), + 396: uint8(6), + 397: uint8(6), + 398: uint8(6), + 399: uint8(6), + 400: uint8(6), + 401: uint8(6), + 402: uint8(6), + 403: uint8(6), + 404: uint8(6), + 405: uint8(6), + 406: uint8(6), + 407: uint8(6), + 408: uint8(6), + 409: uint8(6), + 410: uint8(6), + 411: uint8(6), + 412: uint8(6), + 413: uint8(6), + 414: uint8(6), + 415: uint8(6), + 416: uint8(6), + 417: uint8(6), + 418: uint8(6), + 419: uint8(6), + 420: uint8(6), + 421: uint8(6), + 422: uint8(6), + 423: uint8(6), + 424: uint8(6), + 425: uint8(6), + 426: uint8(6), + 427: uint8(6), + 428: uint8(6), + 429: uint8(6), + 430: uint8(6), + 431: uint8(6), + 432: uint8(6), + 433: uint8(6), + 434: uint8(6), + 435: uint8(6), + 436: uint8(6), + 437: uint8(6), + 438: uint8(6), + 439: uint8(6), + 440: uint8(6), + 441: uint8(6), + 442: uint8(6), + 443: uint8(6), + 444: uint8(6), + 445: uint8(6), + 446: uint8(6), + 447: uint8(6), + 448: uint8(6), + 449: uint8(6), + 450: uint8(6), + 451: uint8(6), + 452: uint8(6), + 453: uint8(6), + 454: uint8(6), + 455: uint8(6), + 456: uint8(6), + 457: uint8(6), + 458: uint8(6), + 459: uint8(6), + 460: uint8(6), + 461: uint8(6), + 462: uint8(6), + 463: uint8(6), + 464: uint8(6), + 465: uint8(6), + 466: uint8(6), + 467: uint8(6), + 468: uint8(6), + 469: uint8(6), + 470: uint8(6), + 471: uint8(6), + 472: uint8(6), + 473: uint8(6), + 474: uint8(6), + 475: uint8(6), + 476: uint8(6), + 477: uint8(6), + 478: uint8(6), + 479: uint8(6), + 480: uint8(6), + 481: uint8(6), + 482: uint8(6), + 483: uint8(6), + 484: uint8(6), + 485: uint8(6), + 486: uint8(6), + 487: uint8(6), + 488: uint8(6), + 489: uint8(30), + 490: uint8(6), + 491: uint8(6), + 492: uint8(6), + 493: uint8(6), + 494: uint8(6), + 495: uint8(6), + 496: uint8(6), + 497: uint8(6), + 498: uint8(6), + 499: uint8(6), + 500: uint8(6), + 501: uint8(6), + 502: uint8(6), + 503: uint8(6), + 504: uint8(6), + 505: uint8(6), + 506: uint8(6), + 507: uint8(6), + 508: uint8(6), + 509: uint8(6), + 510: uint8(6), + 511: uint8(6), + 623: uint8(36), + 624: uint8(43), + 625: uint8(43), + 626: uint8(43), + 627: uint8(43), + 628: uint8(43), + 629: uint8(43), + 630: uint8(43), + 631: uint8(43), + 632: uint8(1), + 634: uint8(84), + 635: uint8(86), + 636: uint8(86), + 637: uint8(86), + 638: uint8(86), + 639: uint8(86), + 640: uint8(86), + 641: uint8(86), + 642: uint8(86), + 662: uint8(24), + 666: uint8(43), + 667: uint8(43), + 668: uint8(43), + 669: uint8(43), + 670: uint8(43), + 671: uint8(43), + 672: uint8(43), + 673: uint8(7), + 674: uint8(43), + 675: uint8(43), + 676: uint8(91), + 677: uint8(86), + 678: uint8(86), + 679: uint8(86), + 680: uint8(86), + 681: uint8(86), + 682: uint8(86), + 683: uint8(86), + 684: uint8(74), + 685: uint8(86), + 686: uint8(86), + 687: uint8(5), + 688: uint8(49), + 689: uint8(80), + 690: uint8(49), + 691: uint8(80), + 692: uint8(49), + 693: uint8(80), + 694: uint8(49), + 695: uint8(80), + 696: uint8(49), + 697: uint8(80), + 698: uint8(49), + 699: uint8(80), + 700: uint8(49), + 701: uint8(80), + 702: uint8(49), + 703: uint8(80), + 704: uint8(36), + 705: uint8(80), + 706: uint8(121), + 707: uint8(49), + 708: uint8(80), + 709: uint8(49), + 710: uint8(80), + 711: uint8(49), + 712: uint8(56), + 713: uint8(80), + 714: uint8(49), + 715: uint8(80), + 716: uint8(49), + 717: uint8(80), + 718: uint8(49), + 719: uint8(80), + 720: uint8(49), + 721: uint8(80), + 722: uint8(49), + 723: uint8(80), + 724: uint8(49), + 725: uint8(80), + 726: uint8(49), + 727: uint8(80), + 728: uint8(78), + 729: uint8(49), + 730: uint8(2), + 731: uint8(78), + 732: uint8(13), + 733: uint8(13), + 734: uint8(78), + 735: uint8(3), + 736: uint8(78), + 738: uint8(36), + 739: uint8(110), + 741: uint8(78), + 742: uint8(49), + 743: uint8(38), + 744: uint8(110), + 745: uint8(81), + 746: uint8(78), + 747: uint8(36), + 748: uint8(80), + 749: uint8(78), + 750: uint8(57), + 751: uint8(20), + 752: uint8(129), + 753: uint8(27), + 754: uint8(29), + 755: uint8(29), + 756: uint8(83), + 757: uint8(49), + 758: uint8(80), + 759: uint8(49), + 760: uint8(80), + 761: uint8(13), + 762: uint8(49), + 763: uint8(80), + 764: uint8(49), + 765: uint8(80), + 766: uint8(49), + 767: uint8(80), + 768: uint8(27), + 769: uint8(83), + 770: uint8(36), + 771: uint8(80), + 772: uint8(49), + 773: uint8(2), + 774: uint8(92), + 775: uint8(123), + 776: uint8(92), + 777: uint8(123), + 778: uint8(92), + 779: uint8(123), + 780: uint8(92), + 781: uint8(123), + 782: uint8(92), + 783: uint8(123), + 784: uint8(20), + 785: uint8(121), + 786: uint8(92), + 787: uint8(123), + 788: uint8(92), + 789: uint8(123), + 790: uint8(92), + 791: uint8(45), + 792: uint8(43), + 793: uint8(73), + 794: uint8(3), + 795: uint8(72), + 796: uint8(3), + 797: uint8(120), + 798: uint8(92), + 799: uint8(123), + 800: uint8(20), + 802: uint8(150), + 803: uint8(10), + 804: uint8(1), + 805: uint8(43), + 806: uint8(40), + 807: uint8(6), + 808: uint8(6), + 810: uint8(42), + 811: uint8(6), + 812: uint8(42), + 813: uint8(42), + 814: uint8(43), + 815: uint8(7), + 816: uint8(187), + 817: uint8(181), + 818: uint8(43), + 819: uint8(30), + 821: uint8(43), + 822: uint8(7), + 823: uint8(43), + 824: uint8(43), + 825: uint8(43), + 826: uint8(1), + 827: uint8(43), + 828: uint8(43), + 829: uint8(43), + 830: uint8(43), + 831: uint8(43), + 832: uint8(43), + 833: uint8(43), + 834: uint8(43), + 835: uint8(43), + 836: uint8(43), + 837: uint8(43), + 838: uint8(43), + 839: uint8(43), + 840: uint8(43), + 841: uint8(43), + 842: uint8(43), + 843: uint8(43), + 844: uint8(43), + 845: uint8(43), + 846: uint8(43), + 847: uint8(43), + 848: uint8(43), + 849: uint8(43), + 850: uint8(43), + 851: uint8(43), + 852: uint8(43), + 853: uint8(43), + 854: uint8(43), + 855: uint8(43), + 856: uint8(43), + 857: uint8(43), + 858: uint8(43), + 859: uint8(1), + 860: uint8(43), + 861: uint8(43), + 862: uint8(43), + 863: uint8(43), + 864: uint8(43), + 865: uint8(43), + 866: uint8(43), + 867: uint8(43), + 868: uint8(43), + 869: uint8(43), + 870: uint8(43), + 871: uint8(43), + 872: uint8(43), + 873: uint8(43), + 874: uint8(43), + 875: uint8(43), + 876: uint8(43), + 877: uint8(43), + 878: uint8(43), + 879: uint8(43), + 880: uint8(43), + 881: uint8(43), + 882: uint8(43), + 883: uint8(42), + 884: uint8(43), + 885: uint8(43), + 886: uint8(43), + 887: uint8(43), + 888: uint8(43), + 889: uint8(43), + 890: uint8(43), + 891: uint8(43), + 892: uint8(43), + 893: uint8(43), + 894: uint8(43), + 895: uint8(43), + 896: uint8(43), + 897: uint8(205), + 898: uint8(70), + 899: uint8(205), + 900: uint8(43), + 902: uint8(37), + 903: uint8(43), + 904: uint8(7), + 905: uint8(1), + 906: uint8(6), + 907: uint8(1), + 908: uint8(85), + 909: uint8(86), + 910: uint8(86), + 911: uint8(86), + 912: uint8(86), + 913: uint8(86), + 914: uint8(85), + 915: uint8(86), + 916: uint8(86), + 917: uint8(2), + 918: uint8(36), + 919: uint8(129), + 920: uint8(129), + 921: uint8(129), + 922: uint8(129), + 923: uint8(129), + 924: uint8(21), + 925: uint8(129), + 926: uint8(129), + 927: uint8(129), + 930: uint8(43), + 932: uint8(178), + 933: uint8(209), + 934: uint8(178), + 935: uint8(209), + 936: uint8(178), + 937: uint8(209), + 938: uint8(178), + 939: uint8(209), + 942: uint8(205), + 943: uint8(204), + 944: uint8(1), + 946: uint8(215), + 947: uint8(215), + 948: uint8(215), + 949: uint8(215), + 950: uint8(215), + 951: uint8(131), + 952: uint8(129), + 953: uint8(129), + 954: uint8(129), + 955: uint8(129), + 956: uint8(129), + 957: uint8(129), + 958: uint8(129), + 959: uint8(129), + 960: uint8(129), + 961: uint8(129), + 962: uint8(172), + 963: uint8(172), + 964: uint8(172), + 965: uint8(172), + 966: uint8(172), + 967: uint8(172), + 968: uint8(172), + 969: uint8(172), + 970: uint8(172), + 971: uint8(172), + 972: uint8(28), + 978: uint8(49), + 979: uint8(80), + 980: uint8(49), + 981: uint8(80), + 982: uint8(49), + 983: uint8(80), + 984: uint8(49), + 985: uint8(80), + 986: uint8(49), + 987: uint8(80), + 988: uint8(49), + 989: uint8(2), + 992: uint8(49), + 993: uint8(80), + 994: uint8(49), + 995: uint8(80), + 996: uint8(49), + 997: uint8(80), + 998: uint8(49), + 999: uint8(80), + 1000: uint8(49), + 1001: uint8(80), + 1002: uint8(49), + 1003: uint8(80), + 1004: uint8(49), + 1005: uint8(80), + 1006: uint8(49), + 1007: uint8(80), + 1008: uint8(49), + 1009: uint8(80), + 1010: uint8(78), + 1011: uint8(49), + 1012: uint8(80), + 1013: uint8(49), + 1014: uint8(80), + 1015: uint8(78), + 1016: uint8(49), + 1017: uint8(80), + 1018: uint8(49), + 1019: uint8(80), + 1020: uint8(49), + 1021: uint8(80), + 1022: uint8(49), + 1023: uint8(80), + 1024: uint8(49), + 1025: uint8(80), + 1026: uint8(49), + 1027: uint8(80), + 1028: uint8(49), + 1029: uint8(80), + 1030: uint8(49), + 1031: uint8(2), + 1032: uint8(135), + 1033: uint8(166), + 1034: uint8(135), + 1035: uint8(166), + 1036: uint8(135), + 1037: uint8(166), + 1038: uint8(135), + 1039: uint8(166), + 1040: uint8(135), + 1041: uint8(166), + 1042: uint8(135), + 1043: uint8(166), + 1044: uint8(135), + 1045: uint8(166), + 1046: uint8(135), + 1047: uint8(166), + 1048: uint8(42), + 1049: uint8(43), + 1050: uint8(43), + 1051: uint8(43), + 1052: uint8(43), + 1053: uint8(43), + 1054: uint8(43), + 1055: uint8(43), + 1056: uint8(43), + 1057: uint8(43), + 1058: uint8(43), + 1059: uint8(43), + 1060: uint8(43), + 1064: uint8(84), + 1065: uint8(86), + 1066: uint8(86), + 1067: uint8(86), + 1068: uint8(86), + 1069: uint8(86), + 1070: uint8(86), + 1071: uint8(86), + 1072: uint8(86), + 1073: uint8(86), + 1074: uint8(86), + 1075: uint8(86), + 1076: uint8(86), + 1171: uint8(84), + 1172: uint8(86), + 1173: uint8(86), + 1174: uint8(86), + 1175: uint8(86), + 1176: uint8(86), + 1177: uint8(86), + 1178: uint8(86), + 1179: uint8(86), + 1180: uint8(86), + 1181: uint8(86), + 1182: uint8(86), + 1183: uint8(86), + 1184: uint8(12), + 1186: uint8(12), + 1187: uint8(42), + 1188: uint8(43), + 1189: uint8(43), + 1190: uint8(43), + 1191: uint8(43), + 1192: uint8(43), + 1193: uint8(43), + 1194: uint8(43), + 1195: uint8(43), + 1196: uint8(43), + 1197: uint8(43), + 1198: uint8(43), + 1199: uint8(43), + 1200: uint8(43), + 1201: uint8(7), + 1202: uint8(42), + 1203: uint8(1), + 1257: uint8(42), + 1258: uint8(43), + 1259: uint8(43), + 1260: uint8(43), + 1261: uint8(43), + 1262: uint8(43), + 1263: uint8(43), + 1264: uint8(43), + 1265: uint8(43), + 1266: uint8(43), + 1267: uint8(43), + 1268: uint8(43), + 1269: uint8(43), + 1270: uint8(43), + 1271: uint8(43), + 1272: uint8(43), + 1273: uint8(43), + 1274: uint8(43), + 1275: uint8(43), + 1276: uint8(43), + 1277: uint8(43), + 1278: uint8(43), + 1279: uint8(43), + 1280: uint8(43), + 1281: uint8(43), + 1282: uint8(43), + 1283: uint8(43), + 1284: uint8(86), + 1285: uint8(86), + 1286: uint8(108), + 1287: uint8(129), + 1288: uint8(21), + 1290: uint8(43), + 1291: uint8(43), + 1292: uint8(43), + 1293: uint8(43), + 1294: uint8(43), + 1295: uint8(43), + 1296: uint8(43), + 1297: uint8(43), + 1298: uint8(43), + 1299: uint8(43), + 1300: uint8(43), + 1301: uint8(43), + 1302: uint8(43), + 1303: uint8(43), + 1304: uint8(43), + 1305: uint8(43), + 1306: uint8(43), + 1307: uint8(43), + 1308: uint8(43), + 1309: uint8(43), + 1310: uint8(43), + 1311: uint8(43), + 1312: uint8(43), + 1313: uint8(43), + 1314: uint8(43), + 1315: uint8(43), + 1316: uint8(43), + 1317: uint8(43), + 1318: uint8(43), + 1319: uint8(43), + 1320: uint8(43), + 1321: uint8(43), + 1322: uint8(43), + 1323: uint8(43), + 1324: uint8(43), + 1325: uint8(43), + 1326: uint8(43), + 1327: uint8(43), + 1328: uint8(43), + 1329: uint8(43), + 1330: uint8(43), + 1331: uint8(43), + 1332: uint8(7), + 1333: uint8(108), + 1334: uint8(3), + 1335: uint8(65), + 1336: uint8(43), + 1337: uint8(43), + 1338: uint8(86), + 1339: uint8(86), + 1340: uint8(86), + 1341: uint8(86), + 1342: uint8(86), + 1343: uint8(86), + 1344: uint8(86), + 1345: uint8(86), + 1346: uint8(86), + 1347: uint8(86), + 1348: uint8(86), + 1349: uint8(86), + 1350: uint8(86), + 1351: uint8(86), + 1352: uint8(44), + 1353: uint8(86), + 1354: uint8(43), + 1355: uint8(43), + 1356: uint8(43), + 1357: uint8(43), + 1358: uint8(43), + 1359: uint8(43), + 1360: uint8(43), + 1361: uint8(43), + 1362: uint8(43), + 1363: uint8(43), + 1364: uint8(43), + 1365: uint8(43), + 1366: uint8(43), + 1367: uint8(43), + 1368: uint8(43), + 1369: uint8(43), + 1370: uint8(43), + 1371: uint8(43), + 1372: uint8(43), + 1373: uint8(43), + 1374: uint8(43), + 1375: uint8(1), + 1416: uint8(12), + 1417: uint8(108), + 1423: uint8(6), + 1462: uint8(6), + 1463: uint8(37), + 1464: uint8(6), + 1465: uint8(37), + 1466: uint8(6), + 1467: uint8(37), + 1468: uint8(6), + 1469: uint8(37), + 1470: uint8(6), + 1471: uint8(37), + 1472: uint8(6), + 1473: uint8(37), + 1474: uint8(6), + 1475: uint8(37), + 1476: uint8(6), + 1477: uint8(37), + 1478: uint8(6), + 1479: uint8(37), + 1480: uint8(6), + 1481: uint8(37), + 1482: uint8(6), + 1483: uint8(37), + 1484: uint8(6), + 1485: uint8(37), + 1486: uint8(6), + 1487: uint8(37), + 1488: uint8(6), + 1489: uint8(37), + 1490: uint8(6), + 1491: uint8(37), + 1492: uint8(6), + 1493: uint8(37), + 1494: uint8(6), + 1495: uint8(37), + 1496: uint8(6), + 1497: uint8(37), + 1498: uint8(6), + 1499: uint8(37), + 1500: uint8(6), + 1501: uint8(37), + 1502: uint8(6), + 1503: uint8(37), + 1504: uint8(6), + 1505: uint8(37), + 1506: uint8(6), + 1507: uint8(37), + 1508: uint8(6), + 1509: uint8(37), + 1510: uint8(6), + 1511: uint8(37), + 1512: uint8(86), + 1513: uint8(122), + 1514: uint8(158), + 1515: uint8(38), + 1516: uint8(6), + 1517: uint8(37), + 1518: uint8(6), + 1519: uint8(37), + 1520: uint8(6), + 1521: uint8(37), + 1522: uint8(6), + 1523: uint8(37), + 1524: uint8(6), + 1525: uint8(37), + 1526: uint8(6), + 1527: uint8(37), + 1528: uint8(6), + 1529: uint8(37), + 1530: uint8(6), + 1531: uint8(37), + 1532: uint8(6), + 1533: uint8(37), + 1534: uint8(6), + 1535: uint8(37), + 1536: uint8(6), + 1537: uint8(37), + 1538: uint8(6), + 1539: uint8(37), + 1540: uint8(6), + 1541: uint8(37), + 1542: uint8(6), + 1543: uint8(37), + 1544: uint8(6), + 1545: uint8(37), + 1546: uint8(6), + 1547: uint8(1), + 1548: uint8(43), + 1549: uint8(43), + 1550: uint8(79), + 1551: uint8(86), + 1552: uint8(86), + 1553: uint8(44), + 1554: uint8(43), + 1555: uint8(127), + 1556: uint8(86), + 1557: uint8(86), + 1558: uint8(57), + 1559: uint8(43), + 1560: uint8(43), + 1561: uint8(85), + 1562: uint8(86), + 1563: uint8(86), + 1564: uint8(43), + 1565: uint8(43), + 1566: uint8(79), + 1567: uint8(86), + 1568: uint8(86), + 1569: uint8(44), + 1570: uint8(43), + 1571: uint8(127), + 1572: uint8(86), + 1573: uint8(86), + 1574: uint8(129), + 1575: uint8(55), + 1576: uint8(117), + 1577: uint8(91), + 1578: uint8(123), + 1579: uint8(92), + 1580: uint8(43), + 1581: uint8(43), + 1582: uint8(79), + 1583: uint8(86), + 1584: uint8(86), + 1585: uint8(2), + 1586: uint8(172), + 1587: uint8(4), + 1590: uint8(57), + 1591: uint8(43), + 1592: uint8(43), + 1593: uint8(85), + 1594: uint8(86), + 1595: uint8(86), + 1596: uint8(43), + 1597: uint8(43), + 1598: uint8(79), + 1599: uint8(86), + 1600: uint8(86), + 1601: uint8(44), + 1602: uint8(43), + 1603: uint8(43), + 1604: uint8(86), + 1605: uint8(86), + 1606: uint8(50), + 1607: uint8(19), + 1608: uint8(129), + 1609: uint8(87), + 1611: uint8(111), + 1612: uint8(129), + 1613: uint8(126), + 1614: uint8(201), + 1615: uint8(215), + 1616: uint8(126), + 1617: uint8(45), + 1618: uint8(129), + 1619: uint8(129), + 1620: uint8(14), + 1621: uint8(126), + 1622: uint8(57), + 1623: uint8(127), + 1624: uint8(111), + 1625: uint8(87), + 1627: uint8(129), + 1628: uint8(129), + 1629: uint8(126), + 1630: uint8(21), + 1632: uint8(126), + 1633: uint8(3), + 1634: uint8(43), + 1635: uint8(43), + 1636: uint8(43), + 1637: uint8(43), + 1638: uint8(43), + 1639: uint8(43), + 1640: uint8(43), + 1641: uint8(43), + 1642: uint8(43), + 1643: uint8(43), + 1644: uint8(43), + 1645: uint8(43), + 1646: uint8(7), + 1647: uint8(43), + 1648: uint8(36), + 1649: uint8(43), + 1650: uint8(151), + 1651: uint8(43), + 1652: uint8(43), + 1653: uint8(43), + 1654: uint8(43), + 1655: uint8(43), + 1656: uint8(43), + 1657: uint8(43), + 1658: uint8(43), + 1659: uint8(43), + 1660: uint8(42), + 1661: uint8(43), + 1662: uint8(43), + 1663: uint8(43), + 1664: uint8(43), + 1665: uint8(43), + 1666: uint8(86), + 1667: uint8(86), + 1668: uint8(86), + 1669: uint8(86), + 1670: uint8(86), + 1671: uint8(128), + 1672: uint8(129), + 1673: uint8(129), + 1674: uint8(129), + 1675: uint8(129), + 1676: uint8(57), + 1677: uint8(187), + 1678: uint8(42), + 1679: uint8(43), + 1680: uint8(43), + 1681: uint8(43), + 1682: uint8(43), + 1683: uint8(43), + 1684: uint8(43), + 1685: uint8(43), + 1686: uint8(43), + 1687: uint8(43), + 1688: uint8(43), + 1689: uint8(43), + 1690: uint8(43), + 1691: uint8(43), + 1692: uint8(43), + 1693: uint8(43), + 1694: uint8(43), + 1695: uint8(43), + 1696: uint8(43), + 1697: uint8(43), + 1698: uint8(43), + 1699: uint8(43), + 1700: uint8(43), + 1701: uint8(43), + 1702: uint8(43), + 1703: uint8(43), + 1704: uint8(43), + 1705: uint8(43), + 1706: uint8(43), + 1707: uint8(43), + 1708: uint8(43), + 1709: uint8(43), + 1710: uint8(43), + 1711: uint8(43), + 1712: uint8(43), + 1713: uint8(43), + 1714: uint8(43), + 1715: uint8(43), + 1716: uint8(43), + 1717: uint8(43), + 1718: uint8(43), + 1719: uint8(1), + 1720: uint8(129), + 1721: uint8(129), + 1722: uint8(129), + 1723: uint8(129), + 1724: uint8(129), + 1725: uint8(129), + 1726: uint8(129), + 1727: uint8(129), + 1728: uint8(129), + 1729: uint8(129), + 1730: uint8(129), + 1731: uint8(129), + 1732: uint8(129), + 1733: uint8(129), + 1734: uint8(129), + 1735: uint8(201), + 1736: uint8(172), + 1737: uint8(172), + 1738: uint8(172), + 1739: uint8(172), + 1740: uint8(172), + 1741: uint8(172), + 1742: uint8(172), + 1743: uint8(172), + 1744: uint8(172), + 1745: uint8(172), + 1746: uint8(172), + 1747: uint8(172), + 1748: uint8(172), + 1749: uint8(172), + 1750: uint8(172), + 1751: uint8(208), + 1752: uint8(13), + 1754: uint8(78), + 1755: uint8(49), + 1756: uint8(2), + 1757: uint8(180), + 1758: uint8(193), + 1759: uint8(193), + 1760: uint8(215), + 1761: uint8(215), + 1762: uint8(36), + 1763: uint8(80), + 1764: uint8(49), + 1765: uint8(80), + 1766: uint8(49), + 1767: uint8(80), + 1768: uint8(49), + 1769: uint8(80), + 1770: uint8(49), + 1771: uint8(80), + 1772: uint8(49), + 1773: uint8(80), + 1774: uint8(49), + 1775: uint8(80), + 1776: uint8(49), + 1777: uint8(80), + 1778: uint8(49), + 1779: uint8(80), + 1780: uint8(49), + 1781: uint8(80), + 1782: uint8(49), + 1783: uint8(80), + 1784: uint8(49), + 1785: uint8(80), + 1786: uint8(49), + 1787: uint8(80), + 1788: uint8(49), + 1789: uint8(80), + 1790: uint8(49), + 1791: uint8(80), + 1792: uint8(49), + 1793: uint8(80), + 1794: uint8(49), + 1795: uint8(80), + 1796: uint8(215), + 1797: uint8(215), + 1798: uint8(83), + 1799: uint8(193), + 1800: uint8(71), + 1801: uint8(212), + 1802: uint8(215), + 1803: uint8(215), + 1804: uint8(215), + 1805: uint8(5), + 1806: uint8(43), + 1807: uint8(43), + 1808: uint8(43), + 1809: uint8(43), + 1810: uint8(43), + 1811: uint8(43), + 1812: uint8(43), + 1813: uint8(43), + 1814: uint8(43), + 1815: uint8(43), + 1816: uint8(43), + 1817: uint8(43), + 1818: uint8(7), + 1819: uint8(1), + 1821: uint8(1), + 1913: uint8(78), + 1914: uint8(49), + 1915: uint8(80), + 1916: uint8(49), + 1917: uint8(80), + 1918: uint8(49), + 1919: uint8(80), + 1920: uint8(49), + 1921: uint8(80), + 1922: uint8(49), + 1923: uint8(80), + 1924: uint8(49), + 1925: uint8(80), + 1926: uint8(49), + 1927: uint8(80), + 1928: uint8(13), + 1934: uint8(36), + 1935: uint8(80), + 1936: uint8(49), + 1937: uint8(80), + 1938: uint8(49), + 1939: uint8(80), + 1940: uint8(49), + 1941: uint8(80), + 1942: uint8(49), + 1943: uint8(80), + 1978: uint8(43), + 1979: uint8(43), + 1980: uint8(43), + 1981: uint8(43), + 1982: uint8(43), + 1983: uint8(43), + 1984: uint8(43), + 1985: uint8(43), + 1986: uint8(43), + 1987: uint8(43), + 1988: uint8(43), + 1989: uint8(121), + 1990: uint8(92), + 1991: uint8(123), + 1992: uint8(92), + 1993: uint8(123), + 1994: uint8(79), + 1995: uint8(123), + 1996: uint8(92), + 1997: uint8(123), + 1998: uint8(92), + 1999: uint8(123), + 2000: uint8(92), + 2001: uint8(123), + 2002: uint8(92), + 2003: uint8(123), + 2004: uint8(92), + 2005: uint8(123), + 2006: uint8(92), + 2007: uint8(123), + 2008: uint8(92), + 2009: uint8(123), + 2010: uint8(92), + 2011: uint8(123), + 2012: uint8(92), + 2013: uint8(123), + 2014: uint8(92), + 2015: uint8(45), + 2016: uint8(43), + 2017: uint8(43), + 2018: uint8(121), + 2019: uint8(20), + 2020: uint8(92), + 2021: uint8(123), + 2022: uint8(92), + 2023: uint8(45), + 2024: uint8(121), + 2025: uint8(42), + 2026: uint8(92), + 2027: uint8(39), + 2028: uint8(92), + 2029: uint8(123), + 2030: uint8(92), + 2031: uint8(123), + 2032: uint8(92), + 2033: uint8(123), + 2034: uint8(164), + 2036: uint8(10), + 2037: uint8(180), + 2038: uint8(92), + 2039: uint8(123), + 2040: uint8(92), + 2041: uint8(123), + 2042: uint8(79), + 2043: uint8(3), + 2044: uint8(42), + 2045: uint8(43), + 2046: uint8(43), + 2047: uint8(43), + 2048: uint8(43), + 2049: uint8(43), + 2050: uint8(43), + 2051: uint8(43), + 2052: uint8(43), + 2053: uint8(43), + 2054: uint8(43), + 2055: uint8(43), + 2056: uint8(43), + 2057: uint8(43), + 2058: uint8(43), + 2059: uint8(43), + 2060: uint8(43), + 2061: uint8(43), + 2062: uint8(43), + 2063: uint8(1), + 2091: uint8(72), + 2101: uint8(42), + 2102: uint8(43), + 2103: uint8(43), + 2104: uint8(43), + 2105: uint8(43), + 2106: uint8(43), + 2107: uint8(43), + 2108: uint8(43), + 2109: uint8(43), + 2110: uint8(43), + 2111: uint8(43), + 2112: uint8(43), + 2113: uint8(43), + 2114: uint8(43), + 2115: uint8(43), + 2116: uint8(43), + 2117: uint8(43), + 2118: uint8(43), + 2119: uint8(43), + 2120: uint8(43), + 2121: uint8(43), + 2122: uint8(43), + 2123: uint8(43), + 2124: uint8(43), + 2125: uint8(43), + 2126: uint8(43), + 2127: uint8(43), + 2161: uint8(43), + 2162: uint8(43), + 2163: uint8(43), + 2164: uint8(43), + 2165: uint8(43), + 2166: uint8(43), + 2167: uint8(43), + 2168: uint8(43), + 2169: uint8(7), + 2171: uint8(72), + 2172: uint8(86), + 2173: uint8(86), + 2174: uint8(86), + 2175: uint8(86), + 2176: uint8(86), + 2177: uint8(86), + 2178: uint8(86), + 2179: uint8(86), + 2180: uint8(2), + 2236: uint8(43), + 2237: uint8(43), + 2238: uint8(43), + 2239: uint8(43), + 2240: uint8(43), + 2241: uint8(43), + 2242: uint8(43), + 2243: uint8(43), + 2244: uint8(43), + 2245: uint8(43), + 2246: uint8(43), + 2247: uint8(43), + 2248: uint8(43), + 2249: uint8(85), + 2250: uint8(86), + 2251: uint8(86), + 2252: uint8(86), + 2253: uint8(86), + 2254: uint8(86), + 2255: uint8(86), + 2256: uint8(86), + 2257: uint8(86), + 2258: uint8(86), + 2259: uint8(86), + 2260: uint8(86), + 2261: uint8(86), + 2262: uint8(14), + 2294: uint8(36), + 2295: uint8(43), + 2296: uint8(43), + 2297: uint8(43), + 2298: uint8(43), + 2299: uint8(43), + 2300: uint8(43), + 2301: uint8(43), + 2302: uint8(43), + 2303: uint8(43), + 2304: uint8(43), + 2305: uint8(43), + 2306: uint8(7), + 2308: uint8(86), + 2309: uint8(86), + 2310: uint8(86), + 2311: uint8(86), + 2312: uint8(86), + 2313: uint8(86), + 2314: uint8(86), + 2315: uint8(86), + 2316: uint8(86), + 2317: uint8(86), + 2318: uint8(86), + 2319: uint8(86), + 2364: uint8(36), + 2365: uint8(43), + 2366: uint8(43), + 2367: uint8(43), + 2368: uint8(43), + 2369: uint8(43), + 2370: uint8(43), + 2371: uint8(43), + 2372: uint8(43), + 2373: uint8(43), + 2374: uint8(43), + 2375: uint8(43), + 2376: uint8(43), + 2377: uint8(43), + 2378: uint8(43), + 2379: uint8(43), + 2380: uint8(43), + 2381: uint8(7), + 2386: uint8(86), + 2387: uint8(86), + 2388: uint8(86), + 2389: uint8(86), + 2390: uint8(86), + 2391: uint8(86), + 2392: uint8(86), + 2393: uint8(86), + 2394: uint8(86), + 2395: uint8(86), + 2396: uint8(86), + 2397: uint8(86), + 2398: uint8(86), + 2399: uint8(86), + 2400: uint8(86), + 2401: uint8(86), + 2402: uint8(86), + 2461: uint8(42), + 2462: uint8(43), + 2463: uint8(43), + 2464: uint8(43), + 2465: uint8(43), + 2466: uint8(43), + 2467: uint8(43), + 2468: uint8(43), + 2469: uint8(43), + 2470: uint8(43), + 2471: uint8(43), + 2472: uint8(86), + 2473: uint8(86), + 2474: uint8(86), + 2475: uint8(86), + 2476: uint8(86), + 2477: uint8(86), + 2478: uint8(86), + 2479: uint8(86), + 2480: uint8(86), + 2481: uint8(86), + 2482: uint8(14), + 2515: uint8(42), + 2516: uint8(43), + 2517: uint8(43), + 2518: uint8(43), + 2519: uint8(43), + 2520: uint8(43), + 2521: uint8(43), + 2522: uint8(43), + 2523: uint8(43), + 2524: uint8(43), + 2525: uint8(43), + 2526: uint8(86), + 2527: uint8(86), + 2528: uint8(86), + 2529: uint8(86), + 2530: uint8(86), + 2531: uint8(86), + 2532: uint8(86), + 2533: uint8(86), + 2534: uint8(86), + 2535: uint8(86), + 2536: uint8(14), + 2580: uint8(43), + 2581: uint8(43), + 2582: uint8(43), + 2583: uint8(43), + 2584: uint8(43), + 2585: uint8(43), + 2586: uint8(43), + 2587: uint8(43), + 2588: uint8(43), + 2589: uint8(43), + 2590: uint8(43), + 2591: uint8(85), + 2592: uint8(86), + 2593: uint8(86), + 2594: uint8(86), + 2595: uint8(86), + 2596: uint8(86), + 2597: uint8(86), + 2598: uint8(86), + 2599: uint8(86), + 2600: uint8(86), + 2601: uint8(86), + 2602: uint8(14), +} +var _rules = [240]int32{ + 1: int32(0x2001), + 2: -int32(0x2000), + 3: int32(0x1dbf00), + 4: int32(0x2e700), + 5: int32(0x7900), + 6: int32(0x2402), + 7: int32(0x101), + 8: -int32(0x100), + 10: int32(0x201), + 11: -int32(0x200), + 12: -int32(0xc6ff), + 13: -int32(0xe800), + 14: -int32(0x78ff), + 15: -int32(0x12c00), + 16: int32(0xc300), + 17: int32(0xd201), + 18: int32(0xce01), + 19: int32(0xcd01), + 20: int32(0x4f01), + 21: int32(0xca01), + 22: int32(0xcb01), + 23: int32(0xcf01), + 24: int32(0x6100), + 25: int32(0xd301), + 26: int32(0xd101), + 27: int32(0xa300), + 28: int32(0xd501), + 29: int32(0x8200), + 30: int32(0xd601), + 31: int32(0xda01), + 32: int32(0xd901), + 33: int32(0xdb01), + 34: int32(0x3800), + 35: int32(0x3), + 36: -int32(0x4f00), + 37: -int32(0x60ff), + 38: -int32(0x37ff), + 39: int32(0x242802), + 41: int32(0x101), + 42: -int32(0x100), + 43: -int32(0xcd00), + 44: -int32(0xda00), + 45: -int32(0x81ff), + 46: int32(0x2a2b01), + 47: -int32(0xa2ff), + 48: int32(0x2a2801), + 49: int32(0x2a3f00), + 50: -int32(0xc2ff), + 51: int32(0x4501), + 52: int32(0x4701), + 53: int32(0x2a1f00), + 54: int32(0x2a1c00), + 55: int32(0x2a1e00), + 56: -int32(0xd200), + 57: -int32(0xce00), + 58: -int32(0xca00), + 59: -int32(0xcb00), + 60: int32(0xa54f00), + 61: int32(0xa54b00), + 62: -int32(0xcf00), + 63: int32(0xa52800), + 64: int32(0xa54400), + 65: -int32(0xd100), + 66: -int32(0xd300), + 67: int32(0x29f700), + 68: int32(0xa54100), + 69: int32(0x29fd00), + 70: -int32(0xd500), + 71: -int32(0xd600), + 72: int32(0x29e700), + 73: int32(0xa54300), + 74: int32(0xa52a00), + 75: -int32(0x4500), + 76: -int32(0xd900), + 77: -int32(0x4700), + 78: -int32(0xdb00), + 79: int32(0xa51500), + 80: int32(0xa51200), + 81: int32(0x4c2402), + 83: int32(0x2001), + 84: -int32(0x2000), + 85: int32(0x101), + 86: -int32(0x100), + 87: int32(0x5400), + 88: int32(0x7401), + 89: int32(0x2601), + 90: int32(0x2501), + 91: int32(0x4001), + 92: int32(0x3f01), + 93: -int32(0x2600), + 94: -int32(0x2500), + 95: -int32(0x1f00), + 96: -int32(0x4000), + 97: -int32(0x3f00), + 98: int32(0x801), + 99: -int32(0x3e00), + 100: -int32(0x3900), + 101: -int32(0x2f00), + 102: -int32(0x3600), + 103: -int32(0x800), + 104: -int32(0x5600), + 105: -int32(0x5000), + 106: int32(0x700), + 107: -int32(0x7400), + 108: -int32(0x3bff), + 109: -int32(0x6000), + 110: -int32(0x6ff), + 111: int32(0x701a02), + 112: int32(0x101), + 113: -int32(0x100), + 114: int32(0x2001), + 115: -int32(0x2000), + 116: int32(0x5001), + 117: int32(0xf01), + 118: -int32(0xf00), + 120: int32(0x3001), + 121: -int32(0x3000), + 122: int32(0x101), + 123: -int32(0x100), + 125: int32(0xbc000), + 126: int32(0x1c6001), + 128: int32(0x97d001), + 129: int32(0x801), + 130: -int32(0x800), + 131: int32(0x8a0502), + 133: -int32(0xbbfff), + 134: -int32(0x186200), + 135: int32(0x89c200), + 136: -int32(0x182500), + 137: -int32(0x186e00), + 138: -int32(0x186d00), + 139: -int32(0x186400), + 140: -int32(0x186300), + 141: -int32(0x185c00), + 143: int32(0x8a3800), + 144: int32(0x8a0400), + 145: int32(0xee600), + 146: int32(0x101), + 147: -int32(0x100), + 149: -int32(0x3b00), + 150: -int32(0x1dbeff), + 151: int32(0x8f1d02), + 152: int32(0x800), + 153: -int32(0x7ff), + 155: int32(0x5600), + 156: -int32(0x55ff), + 157: int32(0x4a00), + 158: int32(0x6400), + 159: int32(0x8000), + 160: int32(0x7000), + 161: int32(0x7e00), + 162: int32(0x900), + 163: -int32(0x49ff), + 164: -int32(0x8ff), + 165: -int32(0x1c2500), + 166: -int32(0x63ff), + 167: -int32(0x6fff), + 168: -int32(0x7fff), + 169: -int32(0x7dff), + 170: int32(0xac0502), + 172: int32(0x1001), + 173: -int32(0x1000), + 174: int32(0x1c01), + 175: int32(0x101), + 176: -int32(0x1d5cff), + 177: -int32(0x20beff), + 178: -int32(0x2045ff), + 179: -int32(0x1c00), + 180: int32(0xb10b02), + 181: int32(0x101), + 182: -int32(0x100), + 183: int32(0x3001), + 184: -int32(0x3000), + 186: -int32(0x29f6ff), + 187: -int32(0xee5ff), + 188: -int32(0x29e6ff), + 189: -int32(0x2a2b00), + 190: -int32(0x2a2800), + 191: -int32(0x2a1bff), + 192: -int32(0x29fcff), + 193: -int32(0x2a1eff), + 194: -int32(0x2a1dff), + 195: -int32(0x2a3eff), + 197: -int32(0x1c6000), + 199: int32(0x101), + 200: -int32(0x100), + 201: int32(0xbc0c02), + 203: int32(0x101), + 204: -int32(0x100), + 205: -int32(0xa543ff), + 206: int32(0x3a001), + 207: -int32(0x8a03ff), + 208: -int32(0xa527ff), + 209: int32(0x3000), + 210: -int32(0xa54eff), + 211: -int32(0xa54aff), + 212: -int32(0xa540ff), + 213: -int32(0xa511ff), + 214: -int32(0xa529ff), + 215: -int32(0xa514ff), + 216: -int32(0x2fff), + 217: -int32(0xa542ff), + 218: -int32(0x8a37ff), + 220: -int32(0x97d000), + 221: -int32(0x3a000), + 223: int32(0x2001), + 224: -int32(0x2000), + 226: int32(0x2801), + 227: -int32(0x2800), + 229: int32(0x4001), + 230: -int32(0x4000), + 232: int32(0x2001), + 233: -int32(0x2000), + 235: int32(0x2001), + 236: -int32(0x2000), + 238: int32(0x2201), + 239: -int32(0x2200), +} +var _rulebases = [512]uint8{ + 1: uint8(6), + 2: uint8(39), + 3: uint8(81), + 4: uint8(111), + 5: uint8(119), + 16: uint8(124), + 19: uint8(127), + 28: uint8(131), + 29: uint8(142), + 30: uint8(146), + 31: uint8(151), + 33: uint8(170), + 44: uint8(180), + 45: uint8(196), + 166: uint8(198), + 167: uint8(201), + 171: uint8(219), + 255: uint8(222), + 260: uint8(225), + 268: uint8(228), + 280: uint8(231), + 366: uint8(234), + 489: uint8(237), +} +var _exceptions = [200][2]uint8{ + 0: { + 0: uint8(48), + 1: uint8(12), + }, + 1: { + 0: uint8(49), + 1: uint8(13), + }, + 2: { + 0: uint8(120), + 1: uint8(14), + }, + 3: { + 0: uint8(127), + 1: uint8(15), + }, + 4: { + 0: uint8(128), + 1: uint8(16), + }, + 5: { + 0: uint8(129), + 1: uint8(17), + }, + 6: { + 0: uint8(134), + 1: uint8(18), + }, + 7: { + 0: uint8(137), + 1: uint8(19), + }, + 8: { + 0: uint8(138), + 1: uint8(19), + }, + 9: { + 0: uint8(142), + 1: uint8(20), + }, + 10: { + 0: uint8(143), + 1: uint8(21), + }, + 11: { + 0: uint8(144), + 1: uint8(22), + }, + 12: { + 0: uint8(147), + 1: uint8(19), + }, + 13: { + 0: uint8(148), + 1: uint8(23), + }, + 14: { + 0: uint8(149), + 1: uint8(24), + }, + 15: { + 0: uint8(150), + 1: uint8(25), + }, + 16: { + 0: uint8(151), + 1: uint8(26), + }, + 17: { + 0: uint8(154), + 1: uint8(27), + }, + 18: { + 0: uint8(156), + 1: uint8(25), + }, + 19: { + 0: uint8(157), + 1: uint8(28), + }, + 20: { + 0: uint8(158), + 1: uint8(29), + }, + 21: { + 0: uint8(159), + 1: uint8(30), + }, + 22: { + 0: uint8(166), + 1: uint8(31), + }, + 23: { + 0: uint8(169), + 1: uint8(31), + }, + 24: { + 0: uint8(174), + 1: uint8(31), + }, + 25: { + 0: uint8(177), + 1: uint8(32), + }, + 26: { + 0: uint8(178), + 1: uint8(32), + }, + 27: { + 0: uint8(183), + 1: uint8(33), + }, + 28: { + 0: uint8(191), + 1: uint8(34), + }, + 29: { + 0: uint8(197), + 1: uint8(35), + }, + 30: { + 0: uint8(200), + 1: uint8(35), + }, + 31: { + 0: uint8(203), + 1: uint8(35), + }, + 32: { + 0: uint8(221), + 1: uint8(36), + }, + 33: { + 0: uint8(242), + 1: uint8(35), + }, + 34: { + 0: uint8(246), + 1: uint8(37), + }, + 35: { + 0: uint8(247), + 1: uint8(38), + }, + 36: { + 0: uint8(32), + 1: uint8(45), + }, + 37: { + 0: uint8(58), + 1: uint8(46), + }, + 38: { + 0: uint8(61), + 1: uint8(47), + }, + 39: { + 0: uint8(62), + 1: uint8(48), + }, + 40: { + 0: uint8(63), + 1: uint8(49), + }, + 41: { + 0: uint8(64), + 1: uint8(49), + }, + 42: { + 0: uint8(67), + 1: uint8(50), + }, + 43: { + 0: uint8(68), + 1: uint8(51), + }, + 44: { + 0: uint8(69), + 1: uint8(52), + }, + 45: { + 0: uint8(80), + 1: uint8(53), + }, + 46: { + 0: uint8(81), + 1: uint8(54), + }, + 47: { + 0: uint8(82), + 1: uint8(55), + }, + 48: { + 0: uint8(83), + 1: uint8(56), + }, + 49: { + 0: uint8(84), + 1: uint8(57), + }, + 50: { + 0: uint8(89), + 1: uint8(58), + }, + 51: { + 0: uint8(91), + 1: uint8(59), + }, + 52: { + 0: uint8(92), + 1: uint8(60), + }, + 53: { + 0: uint8(97), + 1: uint8(61), + }, + 54: { + 0: uint8(99), + 1: uint8(62), + }, + 55: { + 0: uint8(101), + 1: uint8(63), + }, + 56: { + 0: uint8(102), + 1: uint8(64), + }, + 57: { + 0: uint8(104), + 1: uint8(65), + }, + 58: { + 0: uint8(105), + 1: uint8(66), + }, + 59: { + 0: uint8(106), + 1: uint8(64), + }, + 60: { + 0: uint8(107), + 1: uint8(67), + }, + 61: { + 0: uint8(108), + 1: uint8(68), + }, + 62: { + 0: uint8(111), + 1: uint8(66), + }, + 63: { + 0: uint8(113), + 1: uint8(69), + }, + 64: { + 0: uint8(114), + 1: uint8(70), + }, + 65: { + 0: uint8(117), + 1: uint8(71), + }, + 66: { + 0: uint8(125), + 1: uint8(72), + }, + 67: { + 0: uint8(130), + 1: uint8(73), + }, + 68: { + 0: uint8(135), + 1: uint8(74), + }, + 69: { + 0: uint8(137), + 1: uint8(75), + }, + 70: { + 0: uint8(138), + 1: uint8(76), + }, + 71: { + 0: uint8(139), + 1: uint8(76), + }, + 72: { + 0: uint8(140), + 1: uint8(77), + }, + 73: { + 0: uint8(146), + 1: uint8(78), + }, + 74: { + 0: uint8(157), + 1: uint8(79), + }, + 75: { + 0: uint8(158), + 1: uint8(80), + }, + 76: { + 0: uint8(69), + 1: uint8(87), + }, + 77: { + 0: uint8(123), + 1: uint8(29), + }, + 78: { + 0: uint8(124), + 1: uint8(29), + }, + 79: { + 0: uint8(125), + 1: uint8(29), + }, + 80: { + 0: uint8(127), + 1: uint8(88), + }, + 81: { + 0: uint8(134), + 1: uint8(89), + }, + 82: { + 0: uint8(136), + 1: uint8(90), + }, + 83: { + 0: uint8(137), + 1: uint8(90), + }, + 84: { + 0: uint8(138), + 1: uint8(90), + }, + 85: { + 0: uint8(140), + 1: uint8(91), + }, + 86: { + 0: uint8(142), + 1: uint8(92), + }, + 87: { + 0: uint8(143), + 1: uint8(92), + }, + 88: { + 0: uint8(172), + 1: uint8(93), + }, + 89: { + 0: uint8(173), + 1: uint8(94), + }, + 90: { + 0: uint8(174), + 1: uint8(94), + }, + 91: { + 0: uint8(175), + 1: uint8(94), + }, + 92: { + 0: uint8(194), + 1: uint8(95), + }, + 93: { + 0: uint8(204), + 1: uint8(96), + }, + 94: { + 0: uint8(205), + 1: uint8(97), + }, + 95: { + 0: uint8(206), + 1: uint8(97), + }, + 96: { + 0: uint8(207), + 1: uint8(98), + }, + 97: { + 0: uint8(208), + 1: uint8(99), + }, + 98: { + 0: uint8(209), + 1: uint8(100), + }, + 99: { + 0: uint8(213), + 1: uint8(101), + }, + 100: { + 0: uint8(214), + 1: uint8(102), + }, + 101: { + 0: uint8(215), + 1: uint8(103), + }, + 102: { + 0: uint8(240), + 1: uint8(104), + }, + 103: { + 0: uint8(241), + 1: uint8(105), + }, + 104: { + 0: uint8(242), + 1: uint8(106), + }, + 105: { + 0: uint8(243), + 1: uint8(107), + }, + 106: { + 0: uint8(244), + 1: uint8(108), + }, + 107: { + 0: uint8(245), + 1: uint8(109), + }, + 108: { + 0: uint8(249), + 1: uint8(110), + }, + 109: { + 0: uint8(253), + 1: uint8(45), + }, + 110: { + 0: uint8(254), + 1: uint8(45), + }, + 111: { + 0: uint8(255), + 1: uint8(45), + }, + 112: { + 0: uint8(80), + 1: uint8(105), + }, + 113: { + 0: uint8(81), + 1: uint8(105), + }, + 114: { + 0: uint8(82), + 1: uint8(105), + }, + 115: { + 0: uint8(83), + 1: uint8(105), + }, + 116: { + 0: uint8(84), + 1: uint8(105), + }, + 117: { + 0: uint8(85), + 1: uint8(105), + }, + 118: { + 0: uint8(86), + 1: uint8(105), + }, + 119: { + 0: uint8(87), + 1: uint8(105), + }, + 120: { + 0: uint8(88), + 1: uint8(105), + }, + 121: { + 0: uint8(89), + 1: uint8(105), + }, + 122: { + 0: uint8(90), + 1: uint8(105), + }, + 123: { + 0: uint8(91), + 1: uint8(105), + }, + 124: { + 0: uint8(92), + 1: uint8(105), + }, + 125: { + 0: uint8(93), + 1: uint8(105), + }, + 126: { + 0: uint8(94), + 1: uint8(105), + }, + 127: { + 0: uint8(95), + 1: uint8(105), + }, + 128: { + 0: uint8(130), + }, + 129: { + 0: uint8(131), + }, + 130: { + 0: uint8(132), + }, + 131: { + 0: uint8(133), + }, + 132: { + 0: uint8(134), + }, + 133: { + 0: uint8(135), + }, + 134: { + 0: uint8(136), + }, + 135: { + 0: uint8(137), + }, + 136: { + 0: uint8(192), + 1: uint8(117), + }, + 137: { + 0: uint8(207), + 1: uint8(118), + }, + 138: { + 0: uint8(128), + 1: uint8(137), + }, + 139: { + 0: uint8(129), + 1: uint8(138), + }, + 140: { + 0: uint8(130), + 1: uint8(139), + }, + 141: { + 0: uint8(133), + 1: uint8(140), + }, + 142: { + 0: uint8(134), + 1: uint8(141), + }, + 143: { + 0: uint8(112), + 1: uint8(157), + }, + 144: { + 0: uint8(113), + 1: uint8(157), + }, + 145: { + 0: uint8(118), + 1: uint8(158), + }, + 146: { + 0: uint8(119), + 1: uint8(158), + }, + 147: { + 0: uint8(120), + 1: uint8(159), + }, + 148: { + 0: uint8(121), + 1: uint8(159), + }, + 149: { + 0: uint8(122), + 1: uint8(160), + }, + 150: { + 0: uint8(123), + 1: uint8(160), + }, + 151: { + 0: uint8(124), + 1: uint8(161), + }, + 152: { + 0: uint8(125), + 1: uint8(161), + }, + 153: { + 0: uint8(179), + 1: uint8(162), + }, + 154: { + 0: uint8(186), + 1: uint8(163), + }, + 155: { + 0: uint8(187), + 1: uint8(163), + }, + 156: { + 0: uint8(188), + 1: uint8(164), + }, + 157: { + 0: uint8(190), + 1: uint8(165), + }, + 158: { + 0: uint8(195), + 1: uint8(162), + }, + 159: { + 0: uint8(204), + 1: uint8(164), + }, + 160: { + 0: uint8(218), + 1: uint8(166), + }, + 161: { + 0: uint8(219), + 1: uint8(166), + }, + 162: { + 0: uint8(229), + 1: uint8(106), + }, + 163: { + 0: uint8(234), + 1: uint8(167), + }, + 164: { + 0: uint8(235), + 1: uint8(167), + }, + 165: { + 0: uint8(236), + 1: uint8(110), + }, + 166: { + 0: uint8(243), + 1: uint8(162), + }, + 167: { + 0: uint8(248), + 1: uint8(168), + }, + 168: { + 0: uint8(249), + 1: uint8(168), + }, + 169: { + 0: uint8(250), + 1: uint8(169), + }, + 170: { + 0: uint8(251), + 1: uint8(169), + }, + 171: { + 0: uint8(252), + 1: uint8(164), + }, + 172: { + 0: uint8(38), + 1: uint8(176), + }, + 173: { + 0: uint8(42), + 1: uint8(177), + }, + 174: { + 0: uint8(43), + 1: uint8(178), + }, + 175: { + 0: uint8(78), + 1: uint8(179), + }, + 176: { + 0: uint8(132), + 1: uint8(8), + }, + 177: { + 0: uint8(98), + 1: uint8(186), + }, + 178: { + 0: uint8(99), + 1: uint8(187), + }, + 179: { + 0: uint8(100), + 1: uint8(188), + }, + 180: { + 0: uint8(101), + 1: uint8(189), + }, + 181: { + 0: uint8(102), + 1: uint8(190), + }, + 182: { + 0: uint8(109), + 1: uint8(191), + }, + 183: { + 0: uint8(110), + 1: uint8(192), + }, + 184: { + 0: uint8(111), + 1: uint8(193), + }, + 185: { + 0: uint8(112), + 1: uint8(194), + }, + 186: { + 0: uint8(126), + 1: uint8(195), + }, + 187: { + 0: uint8(127), + 1: uint8(195), + }, + 188: { + 0: uint8(125), + 1: uint8(207), + }, + 189: { + 0: uint8(141), + 1: uint8(208), + }, + 190: { + 0: uint8(148), + 1: uint8(209), + }, + 191: { + 0: uint8(171), + 1: uint8(210), + }, + 192: { + 0: uint8(172), + 1: uint8(211), + }, + 193: { + 0: uint8(173), + 1: uint8(212), + }, + 194: { + 0: uint8(176), + 1: uint8(213), + }, + 195: { + 0: uint8(177), + 1: uint8(214), + }, + 196: { + 0: uint8(178), + 1: uint8(215), + }, + 197: { + 0: uint8(196), + 1: uint8(216), + }, + 198: { + 0: uint8(197), + 1: uint8(217), + }, + 199: { + 0: uint8(198), + 1: uint8(218), + }, +} + +func _casemap(tls *TLS, c uint32, dir int32) (r1 int32) { + var b, rt, try, v, x, xb, xn, y uint32 + var c0, r, rd, v1 int32 + _, _, _, _, _, _, _, _, _, _, _, _ = b, c0, r, rd, rt, try, v, x, xb, xn, y, v1 + c0 = Int32FromUint32(c) + if c >= uint32(0x20000) { + return Int32FromUint32(c) + } + b = c >> int32(8) + c = c & uint32(255) + x = c / uint32(3) + y = c % uint32(3) + /* lookup entry in two-level base-6 table */ + v = uint32(_tab1[Uint32FromInt32(Int32FromUint8(_tab1[b])*int32(86))+x]) + v = v * Uint32FromInt32(_mt[y]) >> int32(11) % uint32(6) + /* use the bit vector out of the tables as an index into + * a block-specific set of rules and decode the rule into + * a type and a case-mapping delta. */ + r = _rules[uint32(_rulebases[b])+v] + rt = Uint32FromInt32(r & int32(255)) + rd = r >> int32(8) + /* rules 0/1 are simple lower/upper case with a delta. + * apply according to desired mapping direction. */ + if rt < uint32(2) { + return Int32FromUint32(Uint32FromInt32(c0) + Uint32FromInt32(rd)&-(rt^Uint32FromInt32(dir))) + } + /* binary search. endpoints of the binary search for + * this block are stored in the rule delta field. */ + xn = Uint32FromInt32(rd & int32(0xff)) + xb = Uint32FromInt32(rd) >> int32(8) + for xn != 0 { + try = uint32(**(**uint8)(__ccgo_up(uintptr(unsafe.Pointer(&_exceptions)) + uintptr(xb+xn/uint32(2))*2))) + if try == c { + r = _rules[**(**uint8)(__ccgo_up(uintptr(unsafe.Pointer(&_exceptions)) + uintptr(xb+xn/uint32(2))*2 + 1))] + rt = Uint32FromInt32(r & int32(255)) + rd = r >> int32(8) + if rt < uint32(2) { + return Int32FromUint32(Uint32FromInt32(c0) + Uint32FromInt32(rd)&-(rt^Uint32FromInt32(dir))) + } + /* Hard-coded for the four exceptional titlecase */ + if dir != 0 { + v1 = -int32(1) + } else { + v1 = int32(1) + } + return c0 + v1 + } else { + if try > c { + xn = xn / uint32(2) + } else { + xb = xb + xn/uint32(2) + xn = xn - xn/uint32(2) + } + } + } + return c0 +} + +var _mt = [3]int32{ + 0: int32(2048), + 1: int32(342), + 2: int32(57), +} + +func Xtowlower(tls *TLS, wc Twint_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Uint32FromInt32(_casemap(tls, wc, 0)) +} + +func Xtowupper(tls *TLS, wc Twint_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Uint32FromInt32(_casemap(tls, wc, int32(1))) +} + +func X__towupper_l(tls *TLS, c Twint_t, l Tlocale_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xtowupper(tls, c) +} + +func X__towlower_l(tls *TLS, c Twint_t, l Tlocale_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xtowlower(tls, c) +} + +func Xtowlower_l(tls *TLS, c Twint_t, l Tlocale_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__towlower_l(tls, c, l) +} + +func Xtowupper_l(tls *TLS, c Twint_t, l Tlocale_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__towupper_l(tls, c, l) +} + +func Xwcswidth(tls *TLS, wcs uintptr, n Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wcs=%v n=%v, (%v:)", tls, wcs, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var k, l, v3 int32 + var v2 Tsize_t + var v4 bool + _, _, _, _, _ = k, l, v2, v3, v4 + l = 0 + k = 0 + for { + v2 = n + n = n - 1 + if v4 = v2 != 0 && **(**Twchar_t)(__ccgo_up(wcs)) != 0; v4 { + v3 = Xwcwidth(tls, **(**Twchar_t)(__ccgo_up(wcs))) + k = v3 + } + if !(v4 && v3 >= 0) { + break + } + goto _1 + _1: + ; + l = l + k + wcs += 4 + } + if k < 0 { + v3 = k + } else { + v3 = l + } + return v3 +} + +func Xwctrans(tls *TLS, class uintptr) (r Twctrans_t) { + if __ccgo_strace { + trc("tls=%v class=%v, (%v:)", tls, class, origin(2)) + defer func() { trc("-> %v", r) }() + } + if !(Xstrcmp(tls, class, __ccgo_ts+196) != 0) { + return UintptrFromInt32(1) + } + if !(Xstrcmp(tls, class, __ccgo_ts+204) != 0) { + return UintptrFromInt32(2) + } + return uintptr(0) +} + +func Xtowctrans(tls *TLS, wc Twint_t, trans Twctrans_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v wc=%v trans=%v, (%v:)", tls, wc, trans, origin(2)) + defer func() { trc("-> %v", r) }() + } + if trans == UintptrFromInt32(1) { + return Xtowupper(tls, wc) + } + if trans == UintptrFromInt32(2) { + return Xtowlower(tls, wc) + } + return wc +} + +func X__wctrans_l(tls *TLS, s uintptr, l Tlocale_t) (r Twctrans_t) { + if __ccgo_strace { + trc("tls=%v s=%v l=%v, (%v:)", tls, s, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwctrans(tls, s) +} + +func X__towctrans_l(tls *TLS, c Twint_t, t Twctrans_t, l Tlocale_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v t=%v l=%v, (%v:)", tls, c, t, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xtowctrans(tls, c, t) +} + +func Xtowctrans_l(tls *TLS, c Twint_t, t Twctrans_t, l Tlocale_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v t=%v l=%v, (%v:)", tls, c, t, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__towctrans_l(tls, c, t, l) +} + +func Xwctrans_l(tls *TLS, s uintptr, l Tlocale_t) (r Twctrans_t) { + if __ccgo_strace { + trc("tls=%v s=%v l=%v, (%v:)", tls, s, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__wctrans_l(tls, s, l) +} + +var _table5 = [2784]uint8{ + 0: uint8(16), + 1: uint8(16), + 2: uint8(16), + 3: uint8(18), + 4: uint8(19), + 5: uint8(20), + 6: uint8(21), + 7: uint8(22), + 8: uint8(23), + 9: uint8(24), + 10: uint8(25), + 11: uint8(26), + 12: uint8(27), + 13: uint8(28), + 14: uint8(29), + 15: uint8(30), + 16: uint8(31), + 17: uint8(32), + 18: uint8(16), + 19: uint8(33), + 20: uint8(16), + 21: uint8(16), + 22: uint8(16), + 23: uint8(34), + 24: uint8(35), + 25: uint8(36), + 26: uint8(37), + 27: uint8(38), + 28: uint8(39), + 29: uint8(40), + 30: uint8(16), + 31: uint8(16), + 32: uint8(41), + 33: uint8(16), + 34: uint8(16), + 35: uint8(16), + 36: uint8(16), + 37: uint8(16), + 38: uint8(16), + 39: uint8(16), + 40: uint8(16), + 41: uint8(16), + 42: uint8(16), + 43: uint8(16), + 44: uint8(42), + 45: uint8(43), + 46: uint8(16), + 47: uint8(16), + 48: uint8(44), + 49: uint8(16), + 50: uint8(16), + 51: uint8(16), + 52: uint8(16), + 53: uint8(16), + 54: uint8(16), + 55: uint8(16), + 56: uint8(16), + 57: uint8(16), + 58: uint8(16), + 59: uint8(16), + 60: uint8(16), + 61: uint8(16), + 62: uint8(16), + 63: uint8(16), + 64: uint8(16), + 65: uint8(16), + 66: uint8(16), + 67: uint8(16), + 68: uint8(16), + 69: uint8(16), + 70: uint8(16), + 71: uint8(16), + 72: uint8(16), + 73: uint8(16), + 74: uint8(16), + 75: uint8(16), + 76: uint8(16), + 77: uint8(16), + 78: uint8(16), + 79: uint8(16), + 80: uint8(16), + 81: uint8(16), + 82: uint8(16), + 83: uint8(16), + 84: uint8(16), + 85: uint8(16), + 86: uint8(16), + 87: uint8(16), + 88: uint8(16), + 89: uint8(16), + 90: uint8(16), + 91: uint8(16), + 92: uint8(16), + 93: uint8(16), + 94: uint8(16), + 95: uint8(16), + 96: uint8(16), + 97: uint8(16), + 98: uint8(16), + 99: uint8(16), + 100: uint8(16), + 101: uint8(16), + 102: uint8(16), + 103: uint8(16), + 104: uint8(16), + 105: uint8(16), + 106: uint8(16), + 107: uint8(16), + 108: uint8(16), + 109: uint8(16), + 110: uint8(16), + 111: uint8(16), + 112: uint8(16), + 113: uint8(16), + 114: uint8(16), + 115: uint8(16), + 116: uint8(16), + 117: uint8(16), + 118: uint8(16), + 119: uint8(16), + 120: uint8(16), + 121: uint8(16), + 122: uint8(16), + 123: uint8(16), + 124: uint8(16), + 125: uint8(16), + 126: uint8(16), + 127: uint8(16), + 128: uint8(16), + 129: uint8(16), + 130: uint8(16), + 131: uint8(16), + 132: uint8(16), + 133: uint8(16), + 134: uint8(16), + 135: uint8(16), + 136: uint8(16), + 137: uint8(16), + 138: uint8(16), + 139: uint8(16), + 140: uint8(16), + 141: uint8(16), + 142: uint8(16), + 143: uint8(16), + 144: uint8(16), + 145: uint8(16), + 146: uint8(16), + 147: uint8(16), + 148: uint8(16), + 149: uint8(16), + 150: uint8(16), + 151: uint8(16), + 152: uint8(16), + 153: uint8(16), + 154: uint8(16), + 155: uint8(16), + 156: uint8(16), + 157: uint8(16), + 158: uint8(16), + 159: uint8(16), + 160: uint8(16), + 161: uint8(16), + 162: uint8(16), + 163: uint8(16), + 164: uint8(16), + 165: uint8(16), + 166: uint8(45), + 167: uint8(16), + 168: uint8(46), + 169: uint8(47), + 170: uint8(48), + 171: uint8(49), + 172: uint8(16), + 173: uint8(16), + 174: uint8(16), + 175: uint8(16), + 176: uint8(16), + 177: uint8(16), + 178: uint8(16), + 179: uint8(16), + 180: uint8(16), + 181: uint8(16), + 182: uint8(16), + 183: uint8(16), + 184: uint8(16), + 185: uint8(16), + 186: uint8(16), + 187: uint8(16), + 188: uint8(16), + 189: uint8(16), + 190: uint8(16), + 191: uint8(16), + 192: uint8(16), + 193: uint8(16), + 194: uint8(16), + 195: uint8(16), + 196: uint8(16), + 197: uint8(16), + 198: uint8(16), + 199: uint8(16), + 200: uint8(16), + 201: uint8(16), + 202: uint8(16), + 203: uint8(16), + 204: uint8(16), + 205: uint8(16), + 206: uint8(16), + 207: uint8(16), + 208: uint8(16), + 209: uint8(16), + 210: uint8(16), + 211: uint8(16), + 212: uint8(16), + 213: uint8(16), + 214: uint8(16), + 215: uint8(50), + 216: uint8(16), + 217: uint8(16), + 218: uint8(16), + 219: uint8(16), + 220: uint8(16), + 221: uint8(16), + 222: uint8(16), + 223: uint8(16), + 224: uint8(16), + 225: uint8(16), + 226: uint8(16), + 227: uint8(16), + 228: uint8(16), + 229: uint8(16), + 230: uint8(16), + 231: uint8(16), + 232: uint8(16), + 233: uint8(16), + 234: uint8(16), + 235: uint8(16), + 236: uint8(16), + 237: uint8(16), + 238: uint8(16), + 239: uint8(16), + 240: uint8(16), + 241: uint8(16), + 242: uint8(16), + 243: uint8(16), + 244: uint8(16), + 245: uint8(16), + 246: uint8(16), + 247: uint8(16), + 248: uint8(16), + 249: uint8(16), + 250: uint8(16), + 251: uint8(51), + 252: uint8(16), + 253: uint8(16), + 254: uint8(52), + 255: uint8(53), + 256: uint8(16), + 257: uint8(54), + 258: uint8(55), + 259: uint8(56), + 260: uint8(16), + 261: uint8(16), + 262: uint8(16), + 263: uint8(16), + 264: uint8(16), + 265: uint8(16), + 266: uint8(57), + 267: uint8(16), + 268: uint8(16), + 269: uint8(58), + 270: uint8(16), + 271: uint8(59), + 272: uint8(60), + 273: uint8(61), + 274: uint8(62), + 275: uint8(63), + 276: uint8(64), + 277: uint8(65), + 278: uint8(66), + 279: uint8(67), + 280: uint8(68), + 281: uint8(69), + 282: uint8(70), + 283: uint8(16), + 284: uint8(71), + 285: uint8(72), + 286: uint8(73), + 287: uint8(16), + 288: uint8(16), + 289: uint8(16), + 290: uint8(16), + 291: uint8(16), + 292: uint8(16), + 293: uint8(16), + 294: uint8(16), + 295: uint8(16), + 296: uint8(16), + 297: uint8(16), + 298: uint8(16), + 299: uint8(16), + 300: uint8(16), + 301: uint8(16), + 302: uint8(16), + 303: uint8(16), + 304: uint8(16), + 305: uint8(16), + 306: uint8(16), + 307: uint8(16), + 308: uint8(74), + 309: uint8(16), + 310: uint8(16), + 311: uint8(16), + 312: uint8(16), + 313: uint8(16), + 314: uint8(16), + 315: uint8(16), + 316: uint8(16), + 317: uint8(16), + 318: uint8(16), + 319: uint8(16), + 320: uint8(16), + 321: uint8(16), + 322: uint8(16), + 323: uint8(16), + 324: uint8(16), + 325: uint8(16), + 326: uint8(16), + 327: uint8(16), + 328: uint8(16), + 329: uint8(16), + 330: uint8(16), + 331: uint8(16), + 332: uint8(16), + 333: uint8(16), + 334: uint8(16), + 335: uint8(16), + 336: uint8(16), + 337: uint8(16), + 338: uint8(16), + 339: uint8(16), + 340: uint8(16), + 341: uint8(16), + 342: uint8(16), + 343: uint8(16), + 344: uint8(16), + 345: uint8(16), + 346: uint8(16), + 347: uint8(16), + 348: uint8(16), + 349: uint8(16), + 350: uint8(16), + 351: uint8(16), + 352: uint8(16), + 353: uint8(16), + 354: uint8(16), + 355: uint8(16), + 356: uint8(16), + 357: uint8(16), + 358: uint8(16), + 359: uint8(16), + 360: uint8(16), + 361: uint8(16), + 362: uint8(75), + 363: uint8(76), + 364: uint8(16), + 365: uint8(16), + 366: uint8(16), + 367: uint8(77), + 368: uint8(16), + 369: uint8(16), + 370: uint8(16), + 371: uint8(16), + 372: uint8(16), + 373: uint8(16), + 374: uint8(16), + 375: uint8(16), + 376: uint8(16), + 377: uint8(16), + 378: uint8(16), + 379: uint8(16), + 380: uint8(16), + 381: uint8(16), + 382: uint8(16), + 383: uint8(16), + 384: uint8(16), + 385: uint8(16), + 386: uint8(16), + 387: uint8(16), + 388: uint8(16), + 389: uint8(16), + 390: uint8(16), + 391: uint8(16), + 392: uint8(16), + 393: uint8(16), + 394: uint8(16), + 395: uint8(16), + 396: uint8(16), + 397: uint8(16), + 398: uint8(16), + 399: uint8(16), + 400: uint8(16), + 401: uint8(16), + 402: uint8(16), + 403: uint8(16), + 404: uint8(16), + 405: uint8(16), + 406: uint8(16), + 407: uint8(16), + 408: uint8(16), + 409: uint8(16), + 410: uint8(16), + 411: uint8(16), + 412: uint8(16), + 413: uint8(16), + 414: uint8(16), + 415: uint8(16), + 416: uint8(16), + 417: uint8(16), + 418: uint8(16), + 419: uint8(16), + 420: uint8(16), + 421: uint8(16), + 422: uint8(16), + 423: uint8(16), + 424: uint8(16), + 425: uint8(16), + 426: uint8(16), + 427: uint8(16), + 428: uint8(16), + 429: uint8(16), + 430: uint8(16), + 431: uint8(16), + 432: uint8(16), + 433: uint8(16), + 434: uint8(16), + 435: uint8(16), + 436: uint8(16), + 437: uint8(16), + 438: uint8(16), + 439: uint8(16), + 440: uint8(16), + 441: uint8(16), + 442: uint8(16), + 443: uint8(16), + 444: uint8(78), + 445: uint8(16), + 446: uint8(16), + 447: uint8(16), + 448: uint8(16), + 449: uint8(16), + 450: uint8(16), + 451: uint8(16), + 452: uint8(16), + 453: uint8(16), + 454: uint8(16), + 455: uint8(16), + 456: uint8(16), + 457: uint8(16), + 458: uint8(16), + 459: uint8(16), + 460: uint8(16), + 461: uint8(16), + 462: uint8(16), + 463: uint8(16), + 464: uint8(16), + 465: uint8(79), + 466: uint8(80), + 467: uint8(16), + 468: uint8(16), + 469: uint8(16), + 470: uint8(16), + 471: uint8(16), + 472: uint8(16), + 473: uint8(16), + 474: uint8(81), + 475: uint8(16), + 476: uint8(16), + 477: uint8(16), + 478: uint8(16), + 479: uint8(16), + 480: uint8(82), + 481: uint8(83), + 482: uint8(84), + 483: uint8(16), + 484: uint8(16), + 485: uint8(16), + 486: uint8(16), + 487: uint8(16), + 488: uint8(85), + 489: uint8(86), + 490: uint8(16), + 491: uint8(16), + 492: uint8(16), + 493: uint8(16), + 494: uint8(16), + 495: uint8(16), + 496: uint8(16), + 497: uint8(16), + 498: uint8(16), + 499: uint8(16), + 500: uint8(16), + 501: uint8(16), + 502: uint8(16), + 503: uint8(16), + 504: uint8(16), + 505: uint8(16), + 506: uint8(16), + 507: uint8(16), + 508: uint8(16), + 509: uint8(16), + 510: uint8(16), + 511: uint8(16), + 544: uint8(255), + 545: uint8(255), + 546: uint8(255), + 547: uint8(255), + 548: uint8(255), + 549: uint8(255), + 550: uint8(255), + 551: uint8(255), + 552: uint8(255), + 553: uint8(255), + 554: uint8(255), + 555: uint8(255), + 556: uint8(255), + 557: uint8(255), + 558: uint8(255), + 559: uint8(255), + 560: uint8(255), + 561: uint8(255), + 562: uint8(255), + 563: uint8(255), + 564: uint8(255), + 565: uint8(255), + 566: uint8(255), + 567: uint8(255), + 568: uint8(255), + 569: uint8(255), + 570: uint8(255), + 571: uint8(255), + 572: uint8(255), + 573: uint8(255), + 574: uint8(255), + 575: uint8(255), + 576: uint8(255), + 577: uint8(255), + 578: uint8(255), + 579: uint8(255), + 580: uint8(255), + 581: uint8(255), + 582: uint8(255), + 583: uint8(255), + 584: uint8(255), + 585: uint8(255), + 586: uint8(255), + 587: uint8(255), + 588: uint8(255), + 589: uint8(255), + 624: uint8(248), + 625: uint8(3), + 658: uint8(254), + 659: uint8(255), + 660: uint8(255), + 661: uint8(255), + 662: uint8(255), + 663: uint8(191), + 664: uint8(182), + 672: uint8(63), + 674: uint8(255), + 675: uint8(23), + 681: uint8(248), + 682: uint8(255), + 683: uint8(255), + 686: uint8(1), + 698: uint8(192), + 699: uint8(191), + 700: uint8(159), + 701: uint8(61), + 705: uint8(128), + 706: uint8(2), + 710: uint8(255), + 711: uint8(255), + 712: uint8(255), + 713: uint8(7), + 724: uint8(192), + 725: uint8(255), + 726: uint8(1), + 733: uint8(248), + 734: uint8(15), + 735: uint8(32), + 738: uint8(192), + 739: uint8(251), + 740: uint8(239), + 741: uint8(62), + 747: uint8(14), + 762: uint8(248), + 763: uint8(255), + 764: uint8(255), + 765: uint8(255), + 766: uint8(255), + 767: uint8(255), + 768: uint8(7), + 775: uint8(20), + 776: uint8(254), + 777: uint8(33), + 778: uint8(254), + 780: uint8(12), + 784: uint8(2), + 791: uint8(16), + 792: uint8(30), + 793: uint8(32), + 796: uint8(12), + 799: uint8(64), + 800: uint8(6), + 807: uint8(16), + 808: uint8(134), + 809: uint8(57), + 810: uint8(2), + 814: uint8(35), + 816: uint8(6), + 823: uint8(16), + 824: uint8(190), + 825: uint8(33), + 828: uint8(12), + 831: uint8(252), + 832: uint8(2), + 839: uint8(144), + 840: uint8(30), + 841: uint8(32), + 842: uint8(64), + 844: uint8(12), + 848: uint8(4), + 856: uint8(1), + 857: uint8(32), + 864: uint8(17), + 871: uint8(192), + 872: uint8(193), + 873: uint8(61), + 874: uint8(96), + 876: uint8(12), + 880: uint8(2), + 887: uint8(144), + 888: uint8(64), + 889: uint8(48), + 892: uint8(12), + 896: uint8(3), + 903: uint8(24), + 904: uint8(30), + 905: uint8(32), + 908: uint8(12), + 921: uint8(4), + 922: uint8(92), + 934: uint8(242), + 935: uint8(7), + 936: uint8(128), + 937: uint8(127), + 950: uint8(242), + 951: uint8(31), + 953: uint8(63), + 963: uint8(3), + 966: uint8(160), + 967: uint8(2), + 974: uint8(254), + 975: uint8(127), + 976: uint8(223), + 977: uint8(224), + 978: uint8(255), + 979: uint8(254), + 980: uint8(255), + 981: uint8(255), + 982: uint8(255), + 983: uint8(31), + 984: uint8(64), + 997: uint8(224), + 998: uint8(253), + 999: uint8(102), + 1003: uint8(195), + 1004: uint8(1), + 1006: uint8(30), + 1008: uint8(100), + 1009: uint8(32), + 1011: uint8(32), + 1036: uint8(255), + 1037: uint8(255), + 1038: uint8(255), + 1039: uint8(255), + 1040: uint8(255), + 1041: uint8(255), + 1042: uint8(255), + 1043: uint8(255), + 1044: uint8(255), + 1045: uint8(255), + 1046: uint8(255), + 1047: uint8(255), + 1048: uint8(255), + 1049: uint8(255), + 1050: uint8(255), + 1051: uint8(255), + 1052: uint8(255), + 1053: uint8(255), + 1054: uint8(255), + 1055: uint8(255), + 1067: uint8(224), + 1090: uint8(28), + 1094: uint8(28), + 1098: uint8(12), + 1102: uint8(12), + 1110: uint8(176), + 1111: uint8(63), + 1112: uint8(64), + 1113: uint8(254), + 1114: uint8(15), + 1115: uint8(32), + 1121: uint8(120), + 1136: uint8(96), + 1141: uint8(2), + 1156: uint8(135), + 1157: uint8(1), + 1158: uint8(4), + 1159: uint8(14), + 1186: uint8(128), + 1187: uint8(9), + 1194: uint8(64), + 1195: uint8(127), + 1196: uint8(229), + 1197: uint8(31), + 1198: uint8(248), + 1199: uint8(159), + 1206: uint8(255), + 1207: uint8(127), + 1216: uint8(15), + 1222: uint8(208), + 1223: uint8(23), + 1224: uint8(4), + 1229: uint8(248), + 1230: uint8(15), + 1232: uint8(3), + 1236: uint8(60), + 1237: uint8(59), + 1244: uint8(64), + 1245: uint8(163), + 1246: uint8(3), + 1253: uint8(240), + 1254: uint8(207), + 1274: uint8(247), + 1275: uint8(255), + 1276: uint8(253), + 1277: uint8(33), + 1278: uint8(16), + 1279: uint8(3), + 1304: uint8(255), + 1305: uint8(255), + 1306: uint8(255), + 1307: uint8(255), + 1308: uint8(255), + 1309: uint8(255), + 1310: uint8(255), + 1311: uint8(251), + 1313: uint8(248), + 1317: uint8(124), + 1324: uint8(223), + 1325: uint8(255), + 1338: uint8(255), + 1339: uint8(255), + 1340: uint8(255), + 1341: uint8(255), + 1342: uint8(1), + 1373: uint8(128), + 1374: uint8(3), + 1391: uint8(128), + 1404: uint8(255), + 1405: uint8(255), + 1406: uint8(255), + 1407: uint8(255), + 1413: uint8(60), + 1427: uint8(6), + 1453: uint8(128), + 1454: uint8(247), + 1455: uint8(63), + 1459: uint8(192), + 1470: uint8(3), + 1472: uint8(68), + 1473: uint8(8), + 1476: uint8(96), + 1496: uint8(48), + 1500: uint8(255), + 1501: uint8(255), + 1502: uint8(3), + 1503: uint8(128), + 1508: uint8(192), + 1509: uint8(63), + 1512: uint8(128), + 1513: uint8(255), + 1514: uint8(3), + 1520: uint8(7), + 1526: uint8(200), + 1527: uint8(51), + 1532: uint8(32), + 1541: uint8(126), + 1542: uint8(102), + 1544: uint8(8), + 1545: uint8(16), + 1551: uint8(16), + 1558: uint8(157), + 1559: uint8(193), + 1560: uint8(2), + 1565: uint8(48), + 1566: uint8(64), + 1596: uint8(32), + 1597: uint8(33), + 1622: uint8(255), + 1623: uint8(255), + 1624: uint8(255), + 1625: uint8(255), + 1626: uint8(255), + 1627: uint8(255), + 1628: uint8(255), + 1629: uint8(255), + 1630: uint8(255), + 1631: uint8(255), + 1635: uint8(64), + 1664: uint8(255), + 1665: uint8(255), + 1668: uint8(255), + 1669: uint8(255), + 1695: uint8(128), + 1727: uint8(14), + 1759: uint8(32), + 1788: uint8(1), + 1806: uint8(192), + 1807: uint8(7), + 1824: uint8(110), + 1825: uint8(240), + 1831: uint8(135), + 1852: uint8(96), + 1860: uint8(240), + 1896: uint8(192), + 1897: uint8(255), + 1898: uint8(1), + 1920: uint8(2), + 1927: uint8(255), + 1928: uint8(127), + 1935: uint8(128), + 1936: uint8(3), + 1942: uint8(120), + 1943: uint8(38), + 1945: uint8(32), + 1952: uint8(7), + 1956: uint8(128), + 1957: uint8(239), + 1958: uint8(31), + 1966: uint8(8), + 1968: uint8(3), + 1974: uint8(192), + 1975: uint8(127), + 1977: uint8(30), + 1989: uint8(128), + 1990: uint8(211), + 1991: uint8(64), + 2011: uint8(128), + 2012: uint8(248), + 2013: uint8(7), + 2016: uint8(3), + 2023: uint8(24), + 2024: uint8(1), + 2028: uint8(192), + 2029: uint8(31), + 2030: uint8(31), + 2055: uint8(255), + 2056: uint8(92), + 2059: uint8(64), + 2070: uint8(248), + 2071: uint8(133), + 2072: uint8(13), + 2102: uint8(60), + 2103: uint8(176), + 2104: uint8(1), + 2107: uint8(48), + 2118: uint8(248), + 2119: uint8(167), + 2120: uint8(1), + 2133: uint8(40), + 2134: uint8(191), + 2147: uint8(224), + 2148: uint8(188), + 2149: uint8(15), + 2181: uint8(128), + 2182: uint8(255), + 2183: uint8(6), + 2234: uint8(240), + 2235: uint8(12), + 2236: uint8(1), + 2240: uint8(254), + 2241: uint8(7), + 2246: uint8(248), + 2247: uint8(121), + 2248: uint8(128), + 2250: uint8(126), + 2251: uint8(14), + 2257: uint8(252), + 2258: uint8(127), + 2259: uint8(3), + 2278: uint8(127), + 2279: uint8(191), + 2290: uint8(252), + 2291: uint8(255), + 2292: uint8(255), + 2293: uint8(252), + 2294: uint8(109), + 2310: uint8(126), + 2311: uint8(180), + 2312: uint8(191), + 2322: uint8(163), + 2366: uint8(24), + 2374: uint8(255), + 2375: uint8(1), + 2430: uint8(31), + 2438: uint8(127), + 2473: uint8(128), + 2481: uint8(128), + 2482: uint8(7), + 2515: uint8(96), + 2516: uint8(15), + 2540: uint8(128), + 2541: uint8(3), + 2542: uint8(248), + 2543: uint8(255), + 2544: uint8(231), + 2545: uint8(15), + 2549: uint8(60), + 2568: uint8(28), + 2592: uint8(255), + 2593: uint8(255), + 2594: uint8(255), + 2595: uint8(255), + 2596: uint8(255), + 2597: uint8(255), + 2598: uint8(127), + 2599: uint8(248), + 2600: uint8(255), + 2601: uint8(255), + 2602: uint8(255), + 2603: uint8(255), + 2604: uint8(255), + 2605: uint8(31), + 2606: uint8(32), + 2608: uint8(16), + 2611: uint8(248), + 2612: uint8(254), + 2613: uint8(255), + 2624: uint8(127), + 2625: uint8(255), + 2626: uint8(255), + 2627: uint8(249), + 2628: uint8(219), + 2629: uint8(7), + 2662: uint8(127), + 2717: uint8(240), + 2746: uint8(127), + 2760: uint8(240), + 2761: uint8(7), +} + +var _wtable = [1600]uint8{ + 0: uint8(16), + 1: uint8(16), + 2: uint8(16), + 3: uint8(16), + 4: uint8(16), + 5: uint8(16), + 6: uint8(16), + 7: uint8(16), + 8: uint8(16), + 9: uint8(16), + 10: uint8(16), + 11: uint8(16), + 12: uint8(16), + 13: uint8(16), + 14: uint8(16), + 15: uint8(16), + 16: uint8(16), + 17: uint8(18), + 18: uint8(16), + 19: uint8(16), + 20: uint8(16), + 21: uint8(16), + 22: uint8(16), + 23: uint8(16), + 24: uint8(16), + 25: uint8(16), + 26: uint8(16), + 27: uint8(16), + 28: uint8(16), + 29: uint8(16), + 30: uint8(16), + 31: uint8(16), + 32: uint8(16), + 33: uint8(16), + 34: uint8(16), + 35: uint8(19), + 36: uint8(16), + 37: uint8(20), + 38: uint8(21), + 39: uint8(22), + 40: uint8(16), + 41: uint8(16), + 42: uint8(16), + 43: uint8(23), + 44: uint8(16), + 45: uint8(16), + 46: uint8(24), + 47: uint8(25), + 48: uint8(26), + 49: uint8(27), + 50: uint8(28), + 51: uint8(17), + 52: uint8(17), + 53: uint8(17), + 54: uint8(17), + 55: uint8(17), + 56: uint8(17), + 57: uint8(17), + 58: uint8(17), + 59: uint8(17), + 60: uint8(17), + 61: uint8(17), + 62: uint8(17), + 63: uint8(17), + 64: uint8(17), + 65: uint8(17), + 66: uint8(17), + 67: uint8(17), + 68: uint8(17), + 69: uint8(17), + 70: uint8(17), + 71: uint8(17), + 72: uint8(17), + 73: uint8(17), + 74: uint8(17), + 75: uint8(17), + 76: uint8(17), + 77: uint8(29), + 78: uint8(17), + 79: uint8(17), + 80: uint8(17), + 81: uint8(17), + 82: uint8(17), + 83: uint8(17), + 84: uint8(17), + 85: uint8(17), + 86: uint8(17), + 87: uint8(17), + 88: uint8(17), + 89: uint8(17), + 90: uint8(17), + 91: uint8(17), + 92: uint8(17), + 93: uint8(17), + 94: uint8(17), + 95: uint8(17), + 96: uint8(17), + 97: uint8(17), + 98: uint8(17), + 99: uint8(17), + 100: uint8(17), + 101: uint8(17), + 102: uint8(17), + 103: uint8(17), + 104: uint8(17), + 105: uint8(17), + 106: uint8(17), + 107: uint8(17), + 108: uint8(17), + 109: uint8(17), + 110: uint8(17), + 111: uint8(17), + 112: uint8(17), + 113: uint8(17), + 114: uint8(17), + 115: uint8(17), + 116: uint8(17), + 117: uint8(17), + 118: uint8(17), + 119: uint8(17), + 120: uint8(17), + 121: uint8(17), + 122: uint8(17), + 123: uint8(17), + 124: uint8(17), + 125: uint8(17), + 126: uint8(17), + 127: uint8(17), + 128: uint8(17), + 129: uint8(17), + 130: uint8(17), + 131: uint8(17), + 132: uint8(17), + 133: uint8(17), + 134: uint8(17), + 135: uint8(17), + 136: uint8(17), + 137: uint8(17), + 138: uint8(17), + 139: uint8(17), + 140: uint8(17), + 141: uint8(17), + 142: uint8(17), + 143: uint8(17), + 144: uint8(17), + 145: uint8(17), + 146: uint8(17), + 147: uint8(17), + 148: uint8(17), + 149: uint8(17), + 150: uint8(17), + 151: uint8(17), + 152: uint8(17), + 153: uint8(17), + 154: uint8(17), + 155: uint8(17), + 156: uint8(17), + 157: uint8(17), + 158: uint8(17), + 159: uint8(17), + 160: uint8(17), + 161: uint8(17), + 162: uint8(17), + 163: uint8(17), + 164: uint8(30), + 165: uint8(16), + 166: uint8(16), + 167: uint8(16), + 168: uint8(16), + 169: uint8(31), + 170: uint8(16), + 171: uint8(16), + 172: uint8(17), + 173: uint8(17), + 174: uint8(17), + 175: uint8(17), + 176: uint8(17), + 177: uint8(17), + 178: uint8(17), + 179: uint8(17), + 180: uint8(17), + 181: uint8(17), + 182: uint8(17), + 183: uint8(17), + 184: uint8(17), + 185: uint8(17), + 186: uint8(17), + 187: uint8(17), + 188: uint8(17), + 189: uint8(17), + 190: uint8(17), + 191: uint8(17), + 192: uint8(17), + 193: uint8(17), + 194: uint8(17), + 195: uint8(17), + 196: uint8(17), + 197: uint8(17), + 198: uint8(17), + 199: uint8(17), + 200: uint8(17), + 201: uint8(17), + 202: uint8(17), + 203: uint8(17), + 204: uint8(17), + 205: uint8(17), + 206: uint8(17), + 207: uint8(17), + 208: uint8(17), + 209: uint8(17), + 210: uint8(17), + 211: uint8(17), + 212: uint8(17), + 213: uint8(17), + 214: uint8(17), + 215: uint8(32), + 216: uint8(16), + 217: uint8(16), + 218: uint8(16), + 219: uint8(16), + 220: uint8(16), + 221: uint8(16), + 222: uint8(16), + 223: uint8(16), + 224: uint8(16), + 225: uint8(16), + 226: uint8(16), + 227: uint8(16), + 228: uint8(16), + 229: uint8(16), + 230: uint8(16), + 231: uint8(16), + 232: uint8(16), + 233: uint8(16), + 234: uint8(16), + 235: uint8(16), + 236: uint8(16), + 237: uint8(16), + 238: uint8(16), + 239: uint8(16), + 240: uint8(16), + 241: uint8(16), + 242: uint8(16), + 243: uint8(16), + 244: uint8(16), + 245: uint8(16), + 246: uint8(16), + 247: uint8(16), + 248: uint8(16), + 249: uint8(17), + 250: uint8(17), + 251: uint8(16), + 252: uint8(16), + 253: uint8(16), + 254: uint8(33), + 255: uint8(34), + 256: uint8(16), + 257: uint8(16), + 258: uint8(16), + 259: uint8(16), + 260: uint8(16), + 261: uint8(16), + 262: uint8(16), + 263: uint8(16), + 264: uint8(16), + 265: uint8(16), + 266: uint8(16), + 267: uint8(16), + 268: uint8(16), + 269: uint8(16), + 270: uint8(16), + 271: uint8(16), + 272: uint8(16), + 273: uint8(16), + 274: uint8(16), + 275: uint8(16), + 276: uint8(16), + 277: uint8(16), + 278: uint8(16), + 279: uint8(16), + 280: uint8(16), + 281: uint8(16), + 282: uint8(16), + 283: uint8(16), + 284: uint8(16), + 285: uint8(16), + 286: uint8(16), + 287: uint8(16), + 288: uint8(16), + 289: uint8(16), + 290: uint8(16), + 291: uint8(16), + 292: uint8(16), + 293: uint8(16), + 294: uint8(16), + 295: uint8(16), + 296: uint8(16), + 297: uint8(16), + 298: uint8(16), + 299: uint8(16), + 300: uint8(16), + 301: uint8(16), + 302: uint8(16), + 303: uint8(16), + 304: uint8(16), + 305: uint8(16), + 306: uint8(16), + 307: uint8(16), + 308: uint8(16), + 309: uint8(16), + 310: uint8(16), + 311: uint8(16), + 312: uint8(16), + 313: uint8(16), + 314: uint8(16), + 315: uint8(16), + 316: uint8(16), + 317: uint8(16), + 318: uint8(16), + 319: uint8(16), + 320: uint8(16), + 321: uint8(16), + 322: uint8(16), + 323: uint8(16), + 324: uint8(16), + 325: uint8(16), + 326: uint8(16), + 327: uint8(16), + 328: uint8(16), + 329: uint8(16), + 330: uint8(16), + 331: uint8(16), + 332: uint8(16), + 333: uint8(16), + 334: uint8(16), + 335: uint8(16), + 336: uint8(16), + 337: uint8(16), + 338: uint8(16), + 339: uint8(16), + 340: uint8(16), + 341: uint8(16), + 342: uint8(16), + 343: uint8(16), + 344: uint8(16), + 345: uint8(16), + 346: uint8(16), + 347: uint8(16), + 348: uint8(16), + 349: uint8(16), + 350: uint8(16), + 351: uint8(16), + 352: uint8(16), + 353: uint8(16), + 354: uint8(16), + 355: uint8(16), + 356: uint8(16), + 357: uint8(16), + 358: uint8(16), + 359: uint8(16), + 360: uint8(16), + 361: uint8(16), + 362: uint8(16), + 363: uint8(16), + 364: uint8(16), + 365: uint8(16), + 366: uint8(16), + 367: uint8(35), + 368: uint8(17), + 369: uint8(17), + 370: uint8(17), + 371: uint8(17), + 372: uint8(17), + 373: uint8(17), + 374: uint8(17), + 375: uint8(17), + 376: uint8(17), + 377: uint8(17), + 378: uint8(17), + 379: uint8(17), + 380: uint8(17), + 381: uint8(17), + 382: uint8(17), + 383: uint8(17), + 384: uint8(17), + 385: uint8(17), + 386: uint8(17), + 387: uint8(17), + 388: uint8(17), + 389: uint8(17), + 390: uint8(17), + 391: uint8(36), + 392: uint8(17), + 393: uint8(17), + 394: uint8(37), + 395: uint8(16), + 396: uint8(16), + 397: uint8(16), + 398: uint8(16), + 399: uint8(16), + 400: uint8(16), + 401: uint8(16), + 402: uint8(16), + 403: uint8(16), + 404: uint8(16), + 405: uint8(16), + 406: uint8(16), + 407: uint8(16), + 408: uint8(16), + 409: uint8(16), + 410: uint8(16), + 411: uint8(16), + 412: uint8(16), + 413: uint8(16), + 414: uint8(16), + 415: uint8(16), + 416: uint8(16), + 417: uint8(16), + 418: uint8(16), + 419: uint8(16), + 420: uint8(16), + 421: uint8(16), + 422: uint8(16), + 423: uint8(16), + 424: uint8(16), + 425: uint8(16), + 426: uint8(16), + 427: uint8(16), + 428: uint8(16), + 429: uint8(16), + 430: uint8(16), + 431: uint8(16), + 432: uint8(17), + 433: uint8(38), + 434: uint8(39), + 435: uint8(16), + 436: uint8(16), + 437: uint8(16), + 438: uint8(16), + 439: uint8(16), + 440: uint8(16), + 441: uint8(16), + 442: uint8(16), + 443: uint8(16), + 444: uint8(16), + 445: uint8(16), + 446: uint8(16), + 447: uint8(16), + 448: uint8(16), + 449: uint8(16), + 450: uint8(16), + 451: uint8(16), + 452: uint8(16), + 453: uint8(16), + 454: uint8(16), + 455: uint8(16), + 456: uint8(16), + 457: uint8(16), + 458: uint8(16), + 459: uint8(16), + 460: uint8(16), + 461: uint8(16), + 462: uint8(16), + 463: uint8(16), + 464: uint8(16), + 465: uint8(16), + 466: uint8(16), + 467: uint8(16), + 468: uint8(16), + 469: uint8(16), + 470: uint8(16), + 471: uint8(16), + 472: uint8(16), + 473: uint8(16), + 474: uint8(16), + 475: uint8(16), + 476: uint8(16), + 477: uint8(16), + 478: uint8(16), + 479: uint8(16), + 480: uint8(16), + 481: uint8(16), + 482: uint8(16), + 483: uint8(16), + 484: uint8(16), + 485: uint8(16), + 486: uint8(16), + 487: uint8(16), + 488: uint8(16), + 489: uint8(16), + 490: uint8(16), + 491: uint8(16), + 492: uint8(16), + 493: uint8(16), + 494: uint8(16), + 495: uint8(16), + 496: uint8(40), + 497: uint8(41), + 498: uint8(42), + 499: uint8(43), + 500: uint8(44), + 501: uint8(45), + 502: uint8(46), + 503: uint8(47), + 504: uint8(16), + 505: uint8(48), + 506: uint8(49), + 507: uint8(16), + 508: uint8(16), + 509: uint8(16), + 510: uint8(16), + 511: uint8(16), + 544: uint8(255), + 545: uint8(255), + 546: uint8(255), + 547: uint8(255), + 548: uint8(255), + 549: uint8(255), + 550: uint8(255), + 551: uint8(255), + 552: uint8(255), + 553: uint8(255), + 554: uint8(255), + 555: uint8(255), + 556: uint8(255), + 557: uint8(255), + 558: uint8(255), + 559: uint8(255), + 560: uint8(255), + 561: uint8(255), + 562: uint8(255), + 563: uint8(255), + 564: uint8(255), + 565: uint8(255), + 566: uint8(255), + 567: uint8(255), + 568: uint8(255), + 569: uint8(255), + 570: uint8(255), + 571: uint8(255), + 572: uint8(255), + 573: uint8(255), + 574: uint8(255), + 575: uint8(255), + 576: uint8(255), + 577: uint8(255), + 578: uint8(255), + 579: uint8(255), + 580: uint8(255), + 581: uint8(255), + 582: uint8(255), + 583: uint8(255), + 584: uint8(255), + 585: uint8(255), + 586: uint8(255), + 587: uint8(255), + 611: uint8(12), + 613: uint8(6), + 637: uint8(30), + 638: uint8(9), + 671: uint8(96), + 674: uint8(48), + 681: uint8(255), + 682: uint8(15), + 687: uint8(128), + 690: uint8(8), + 692: uint8(2), + 693: uint8(12), + 695: uint8(96), + 696: uint8(48), + 697: uint8(64), + 698: uint8(16), + 701: uint8(4), + 702: uint8(44), + 703: uint8(36), + 704: uint8(32), + 705: uint8(12), + 709: uint8(1), + 713: uint8(80), + 714: uint8(184), + 722: uint8(224), + 726: uint8(1), + 727: uint8(128), + 739: uint8(24), + 746: uint8(33), + 784: uint8(255), + 785: uint8(255), + 786: uint8(255), + 787: uint8(251), + 788: uint8(255), + 789: uint8(255), + 790: uint8(255), + 791: uint8(255), + 792: uint8(255), + 793: uint8(255), + 794: uint8(255), + 795: uint8(255), + 796: uint8(255), + 797: uint8(255), + 798: uint8(15), + 800: uint8(255), + 801: uint8(255), + 802: uint8(255), + 803: uint8(255), + 804: uint8(255), + 805: uint8(255), + 806: uint8(255), + 807: uint8(255), + 808: uint8(255), + 809: uint8(255), + 810: uint8(255), + 811: uint8(255), + 812: uint8(255), + 813: uint8(255), + 814: uint8(255), + 815: uint8(255), + 816: uint8(255), + 817: uint8(255), + 818: uint8(255), + 819: uint8(255), + 820: uint8(255), + 821: uint8(255), + 822: uint8(255), + 823: uint8(255), + 824: uint8(255), + 825: uint8(255), + 826: uint8(63), + 830: uint8(255), + 831: uint8(15), + 832: uint8(255), + 833: uint8(255), + 834: uint8(255), + 835: uint8(255), + 836: uint8(255), + 837: uint8(255), + 838: uint8(255), + 839: uint8(127), + 840: uint8(254), + 841: uint8(255), + 842: uint8(255), + 843: uint8(255), + 844: uint8(255), + 845: uint8(255), + 846: uint8(255), + 847: uint8(255), + 848: uint8(255), + 849: uint8(255), + 850: uint8(127), + 851: uint8(254), + 852: uint8(255), + 853: uint8(255), + 854: uint8(255), + 855: uint8(255), + 856: uint8(255), + 857: uint8(255), + 858: uint8(255), + 859: uint8(255), + 860: uint8(255), + 861: uint8(255), + 862: uint8(255), + 863: uint8(255), + 864: uint8(224), + 865: uint8(255), + 866: uint8(255), + 867: uint8(255), + 868: uint8(255), + 869: uint8(255), + 870: uint8(254), + 871: uint8(255), + 872: uint8(255), + 873: uint8(255), + 874: uint8(255), + 875: uint8(255), + 876: uint8(255), + 877: uint8(255), + 878: uint8(255), + 879: uint8(255), + 880: uint8(255), + 881: uint8(127), + 882: uint8(255), + 883: uint8(255), + 884: uint8(255), + 885: uint8(255), + 886: uint8(255), + 887: uint8(7), + 888: uint8(255), + 889: uint8(255), + 890: uint8(255), + 891: uint8(255), + 892: uint8(15), + 894: uint8(255), + 895: uint8(255), + 896: uint8(255), + 897: uint8(255), + 898: uint8(255), + 899: uint8(127), + 900: uint8(255), + 901: uint8(255), + 902: uint8(255), + 903: uint8(255), + 904: uint8(255), + 906: uint8(255), + 907: uint8(255), + 908: uint8(255), + 909: uint8(255), + 910: uint8(255), + 911: uint8(255), + 912: uint8(255), + 913: uint8(255), + 914: uint8(255), + 915: uint8(255), + 916: uint8(255), + 917: uint8(255), + 918: uint8(255), + 919: uint8(255), + 920: uint8(255), + 921: uint8(255), + 922: uint8(255), + 923: uint8(255), + 924: uint8(255), + 925: uint8(255), + 926: uint8(255), + 927: uint8(255), + 928: uint8(255), + 929: uint8(255), + 930: uint8(255), + 931: uint8(255), + 932: uint8(255), + 933: uint8(255), + 934: uint8(255), + 935: uint8(255), + 936: uint8(255), + 937: uint8(255), + 938: uint8(255), + 939: uint8(255), + 940: uint8(255), + 941: uint8(255), + 942: uint8(255), + 943: uint8(255), + 944: uint8(255), + 945: uint8(255), + 946: uint8(255), + 947: uint8(255), + 948: uint8(255), + 949: uint8(255), + 950: uint8(255), + 951: uint8(255), + 960: uint8(255), + 961: uint8(255), + 962: uint8(255), + 963: uint8(255), + 964: uint8(255), + 965: uint8(255), + 966: uint8(255), + 967: uint8(255), + 968: uint8(255), + 969: uint8(255), + 970: uint8(255), + 971: uint8(255), + 972: uint8(255), + 973: uint8(255), + 974: uint8(255), + 975: uint8(255), + 976: uint8(255), + 977: uint8(31), + 978: uint8(255), + 979: uint8(255), + 980: uint8(255), + 981: uint8(255), + 982: uint8(255), + 983: uint8(255), + 984: uint8(127), + 1004: uint8(255), + 1005: uint8(255), + 1006: uint8(255), + 1007: uint8(31), + 1024: uint8(255), + 1025: uint8(255), + 1026: uint8(255), + 1027: uint8(255), + 1028: uint8(255), + 1029: uint8(255), + 1030: uint8(255), + 1031: uint8(255), + 1032: uint8(255), + 1033: uint8(255), + 1034: uint8(255), + 1035: uint8(255), + 1036: uint8(255), + 1037: uint8(255), + 1038: uint8(255), + 1039: uint8(255), + 1040: uint8(255), + 1041: uint8(255), + 1042: uint8(255), + 1043: uint8(255), + 1044: uint8(15), + 1058: uint8(255), + 1059: uint8(3), + 1062: uint8(255), + 1063: uint8(255), + 1064: uint8(255), + 1065: uint8(255), + 1066: uint8(247), + 1067: uint8(255), + 1068: uint8(127), + 1069: uint8(15), + 1088: uint8(254), + 1089: uint8(255), + 1090: uint8(255), + 1091: uint8(255), + 1092: uint8(255), + 1093: uint8(255), + 1094: uint8(255), + 1095: uint8(255), + 1096: uint8(255), + 1097: uint8(255), + 1098: uint8(255), + 1099: uint8(255), + 1100: uint8(1), + 1116: uint8(127), + 1148: uint8(15), + 1152: uint8(255), + 1153: uint8(255), + 1154: uint8(255), + 1155: uint8(255), + 1156: uint8(255), + 1157: uint8(255), + 1158: uint8(255), + 1159: uint8(255), + 1160: uint8(255), + 1161: uint8(255), + 1162: uint8(255), + 1163: uint8(255), + 1164: uint8(255), + 1165: uint8(255), + 1166: uint8(255), + 1167: uint8(255), + 1168: uint8(255), + 1169: uint8(255), + 1170: uint8(255), + 1171: uint8(255), + 1172: uint8(255), + 1173: uint8(255), + 1174: uint8(255), + 1175: uint8(255), + 1176: uint8(255), + 1177: uint8(255), + 1178: uint8(255), + 1179: uint8(255), + 1180: uint8(255), + 1181: uint8(255), + 1182: uint8(255), + 1184: uint8(255), + 1185: uint8(255), + 1186: uint8(255), + 1187: uint8(255), + 1188: uint8(255), + 1189: uint8(255), + 1190: uint8(255), + 1191: uint8(255), + 1192: uint8(255), + 1193: uint8(255), + 1194: uint8(255), + 1195: uint8(255), + 1196: uint8(255), + 1197: uint8(255), + 1198: uint8(255), + 1199: uint8(255), + 1200: uint8(255), + 1201: uint8(255), + 1202: uint8(255), + 1203: uint8(255), + 1204: uint8(255), + 1205: uint8(255), + 1206: uint8(255), + 1207: uint8(255), + 1208: uint8(255), + 1209: uint8(255), + 1210: uint8(255), + 1211: uint8(255), + 1212: uint8(255), + 1213: uint8(255), + 1214: uint8(7), + 1216: uint8(255), + 1217: uint8(255), + 1218: uint8(255), + 1219: uint8(127), + 1226: uint8(7), + 1228: uint8(240), + 1230: uint8(255), + 1231: uint8(255), + 1232: uint8(255), + 1233: uint8(255), + 1234: uint8(255), + 1235: uint8(255), + 1236: uint8(255), + 1237: uint8(255), + 1238: uint8(255), + 1239: uint8(255), + 1240: uint8(255), + 1241: uint8(255), + 1242: uint8(255), + 1243: uint8(255), + 1244: uint8(255), + 1245: uint8(255), + 1246: uint8(255), + 1247: uint8(255), + 1248: uint8(255), + 1249: uint8(255), + 1250: uint8(255), + 1251: uint8(255), + 1252: uint8(255), + 1253: uint8(255), + 1254: uint8(255), + 1255: uint8(255), + 1256: uint8(255), + 1257: uint8(255), + 1258: uint8(255), + 1259: uint8(255), + 1260: uint8(255), + 1261: uint8(255), + 1262: uint8(255), + 1263: uint8(255), + 1264: uint8(255), + 1265: uint8(255), + 1266: uint8(255), + 1267: uint8(255), + 1268: uint8(255), + 1269: uint8(255), + 1270: uint8(255), + 1271: uint8(255), + 1272: uint8(255), + 1273: uint8(255), + 1274: uint8(255), + 1275: uint8(255), + 1276: uint8(255), + 1277: uint8(255), + 1278: uint8(255), + 1279: uint8(15), + 1280: uint8(16), + 1305: uint8(128), + 1329: uint8(64), + 1330: uint8(254), + 1331: uint8(7), + 1344: uint8(7), + 1346: uint8(255), + 1347: uint8(255), + 1348: uint8(255), + 1349: uint8(255), + 1350: uint8(255), + 1351: uint8(15), + 1352: uint8(255), + 1353: uint8(1), + 1354: uint8(3), + 1356: uint8(63), + 1376: uint8(255), + 1377: uint8(255), + 1378: uint8(255), + 1379: uint8(255), + 1380: uint8(1), + 1381: uint8(224), + 1382: uint8(191), + 1383: uint8(255), + 1384: uint8(255), + 1385: uint8(255), + 1386: uint8(255), + 1387: uint8(255), + 1388: uint8(255), + 1389: uint8(255), + 1390: uint8(255), + 1391: uint8(223), + 1392: uint8(255), + 1393: uint8(255), + 1394: uint8(15), + 1396: uint8(255), + 1397: uint8(255), + 1398: uint8(255), + 1399: uint8(255), + 1400: uint8(255), + 1401: uint8(135), + 1402: uint8(15), + 1404: uint8(255), + 1405: uint8(255), + 1406: uint8(17), + 1407: uint8(255), + 1408: uint8(255), + 1409: uint8(255), + 1410: uint8(255), + 1411: uint8(255), + 1412: uint8(255), + 1413: uint8(255), + 1414: uint8(255), + 1415: uint8(127), + 1416: uint8(253), + 1417: uint8(255), + 1418: uint8(255), + 1419: uint8(255), + 1420: uint8(255), + 1421: uint8(255), + 1422: uint8(255), + 1423: uint8(255), + 1424: uint8(255), + 1425: uint8(255), + 1426: uint8(255), + 1427: uint8(255), + 1428: uint8(255), + 1429: uint8(255), + 1430: uint8(255), + 1431: uint8(255), + 1432: uint8(255), + 1433: uint8(255), + 1434: uint8(255), + 1435: uint8(255), + 1436: uint8(255), + 1437: uint8(255), + 1438: uint8(255), + 1439: uint8(159), + 1440: uint8(255), + 1441: uint8(255), + 1442: uint8(255), + 1443: uint8(255), + 1444: uint8(255), + 1445: uint8(255), + 1446: uint8(255), + 1447: uint8(63), + 1449: uint8(120), + 1450: uint8(255), + 1451: uint8(255), + 1452: uint8(255), + 1455: uint8(4), + 1458: uint8(96), + 1460: uint8(16), + 1471: uint8(248), + 1472: uint8(255), + 1473: uint8(255), + 1474: uint8(255), + 1475: uint8(255), + 1476: uint8(255), + 1477: uint8(255), + 1478: uint8(255), + 1479: uint8(255), + 1480: uint8(255), + 1481: uint8(255), + 1488: uint8(255), + 1489: uint8(255), + 1490: uint8(255), + 1491: uint8(255), + 1492: uint8(255), + 1493: uint8(255), + 1494: uint8(255), + 1495: uint8(255), + 1496: uint8(63), + 1497: uint8(16), + 1498: uint8(39), + 1501: uint8(24), + 1502: uint8(240), + 1503: uint8(7), + 1532: uint8(255), + 1533: uint8(15), + 1537: uint8(224), + 1538: uint8(255), + 1539: uint8(255), + 1540: uint8(255), + 1541: uint8(255), + 1542: uint8(255), + 1543: uint8(255), + 1544: uint8(255), + 1545: uint8(255), + 1546: uint8(255), + 1547: uint8(255), + 1548: uint8(255), + 1549: uint8(255), + 1550: uint8(123), + 1551: uint8(252), + 1552: uint8(255), + 1553: uint8(255), + 1554: uint8(255), + 1555: uint8(255), + 1556: uint8(231), + 1557: uint8(199), + 1558: uint8(255), + 1559: uint8(255), + 1560: uint8(255), + 1561: uint8(231), + 1562: uint8(255), + 1563: uint8(255), + 1564: uint8(255), + 1565: uint8(255), + 1566: uint8(255), + 1567: uint8(255), + 1582: uint8(15), + 1583: uint8(7), + 1584: uint8(7), + 1586: uint8(63), +} + +func Xwcwidth(tls *TLS, wc Twchar_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1, v2 int32 + _, _ = v1, v2 + if Uint32FromInt32(wc) < uint32(0xff) { + if (wc+int32(1))&int32(0x7f) >= int32(0x21) { + v1 = int32(1) + } else { + if wc != 0 { + v2 = -int32(1) + } else { + v2 = 0 + } + v1 = v2 + } + return v1 + } + if Uint32FromInt32(wc)&uint32(0xfffeffff) < uint32(0xfffe) { + if Int32FromUint8(_table5[Int32FromUint8(_table5[wc>>int32(8)])*int32(32)+wc&int32(255)>>int32(3)])>>(wc&int32(7))&int32(1) != 0 { + return 0 + } + if Int32FromUint8(_wtable[Int32FromUint8(_wtable[wc>>int32(8)])*int32(32)+wc&int32(255)>>int32(3)])>>(wc&int32(7))&int32(1) != 0 { + return int32(2) + } + return int32(1) + } + if wc&int32(0xfffe) == int32(0xfffe) { + return -int32(1) + } + if Uint32FromInt32(wc)-uint32(0x20000) < uint32(0x20000) { + return int32(2) + } + if wc == int32(0xe0001) || Uint32FromInt32(wc)-uint32(0xe0020) < uint32(0x5f) || Uint32FromInt32(wc)-uint32(0xe0100) < uint32(0xef) { + return 0 + } + return int32(1) +} + +const d_fileno = 0 + +type Tino_t = uint64 + +type Tdirent = struct { + Fd_ino Tino_t + Fd_off Toff_t + Fd_reclen uint16 + Fd_type uint8 + Fd_name [256]uint8 +} + +func Xalphasort(tls *TLS, a uintptr, b uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v a=%v b=%v, (%v:)", tls, a, b, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrcoll(tls, **(**uintptr)(__ccgo_up(a))+19, **(**uintptr)(__ccgo_up(b))+19) +} + +type TDIR = struct { + Ftell Toff_t + Ffd int32 + Fbuf_pos int32 + Fbuf_end int32 + Flock [1]int32 + Fbuf [2048]uint8 +} + +type t__dirstream = TDIR + +func Xclosedir(tls *TLS, dir uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v dir=%v, (%v:)", tls, dir, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret int32 + _ = ret + ret = Xclose(tls, (*TDIR)(unsafe.Pointer(dir)).Ffd) + Xfree(tls, dir) + return ret +} + +func Xdirfd(tls *TLS, d uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v d=%v, (%v:)", tls, d, origin(2)) + defer func() { trc("-> %v", r) }() + } + return (*TDIR)(unsafe.Pointer(d)).Ffd +} + +const AT_EACCESS = 512 +const AT_FDCWD = -100 +const AT_REMOVEDIR = 512 +const AT_SYMLINK_FOLLOW = 1024 +const AT_SYMLINK_NOFOLLOW = 256 +const FD_CLOEXEC = 1 +const F_DUPFD = 0 +const F_DUPFD_CLOEXEC = 1030 +const F_GETFD = 1 +const F_GETFL = 3 +const F_GETLK = 5 +const F_GETOWN = 9 +const F_GETOWNER_UIDS = 17 +const F_GETOWN_EX = 16 +const F_GETSIG = 11 +const F_OFD_GETLK = 36 +const F_OFD_SETLK = 37 +const F_OFD_SETLKW = 38 +const F_RDLCK = 0 +const F_SETFD = 2 +const F_SETFL = 4 +const F_SETLK = 6 +const F_SETLKW = 7 +const F_SETOWN = 8 +const F_SETOWN_EX = 15 +const F_SETSIG = 10 +const F_UNLCK = 2 +const F_WRLCK = 1 +const O_ACCMODE = 2097155 +const O_APPEND = 1024 +const O_ASYNC = 8192 +const O_CLOEXEC = 524288 +const O_CREAT = 64 +const O_DIRECT = 16384 +const O_DIRECTORY = 65536 +const O_DSYNC = 4096 +const O_EXCL = 128 +const O_EXEC = 2097152 +const O_LARGEFILE = 32768 +const O_NDELAY = 2048 +const O_NOATIME = 262144 +const O_NOCTTY = 256 +const O_NOFOLLOW = 131072 +const O_NONBLOCK = 2048 +const O_PATH = 2097152 +const O_RDONLY = 0 +const O_RDWR = 2 +const O_RSYNC = 1052672 +const O_SEARCH = 2097152 +const O_SYNC = 1052672 +const O_TMPFILE = 4259840 +const O_TRUNC = 512 +const O_TTY_INIT = 0 +const O_WRONLY = 1 +const POSIX_FADV_DONTNEED = 4 +const POSIX_FADV_NOREUSE = 5 +const POSIX_FADV_NORMAL = 0 +const POSIX_FADV_RANDOM = 1 +const POSIX_FADV_SEQUENTIAL = 2 +const POSIX_FADV_WILLNEED = 3 +const S_IFBLK = 24576 +const S_IFCHR = 8192 +const S_IFDIR = 16384 +const S_IFIFO = 4096 +const S_IFLNK = 40960 +const S_IFMT = 61440 +const S_IFREG = 32768 +const S_IFSOCK = 49152 +const S_IRGRP = 32 +const S_IROTH = 4 +const S_IRUSR = 256 +const S_IRWXG = 56 +const S_IRWXO = 7 +const S_IRWXU = 448 +const S_ISGID = 1024 +const S_ISUID = 2048 +const S_ISVTX = 512 +const S_IWGRP = 16 +const S_IWOTH = 2 +const S_IWUSR = 128 +const S_IXGRP = 8 +const S_IXOTH = 1 +const S_IXUSR = 64 +const UTIME_NOW = 1073741823 +const UTIME_OMIT = 1073741822 + +type Tflock = struct { + Fl_type int16 + Fl_whence int16 + Fl_start Toff_t + Fl_len Toff_t + Fl_pid Tpid_t +} + +type Tblksize_t = int32 + +type Tnlink_t = uint32 + +type Tdev_t = uint64 + +type Tblkcnt_t = int64 + +type Tstat = struct { + Fst_dev Tdev_t + Fst_ino Tino_t + Fst_mode Tmode_t + Fst_nlink Tnlink_t + Fst_uid Tuid_t + Fst_gid Tgid_t + Fst_rdev Tdev_t + F__pad uint64 + Fst_size Toff_t + Fst_blksize Tblksize_t + F__pad2 int32 + Fst_blocks Tblkcnt_t + Fst_atim Ttimespec + Fst_mtim Ttimespec + Fst_ctim Ttimespec + F__unused [2]uint32 +} + +func Xfdopendir(tls *TLS, fd int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(144) + defer tls.Free(144) + var dir, v1 uintptr + var _ /* st at bp+0 */ Tstat + _, _ = dir, v1 + if Xfstat(tls, fd, bp) < 0 { + return uintptr(0) + } + if Xfcntl(tls, fd, int32(F_GETFL), 0)&int32(O_PATH) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EBADF) + return uintptr(0) + } + if !((**(**Tstat)(__ccgo_up(bp))).Fst_mode&Uint32FromInt32(S_IFMT) == Uint32FromInt32(S_IFDIR)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOTDIR) + return uintptr(0) + } + v1 = Xcalloc(tls, uint64(1), uint64(2072)) + dir = v1 + if !(v1 != 0) { + return uintptr(0) + } + Xfcntl(tls, fd, int32(F_SETFD), VaList(bp+136, int32(FD_CLOEXEC))) + (*TDIR)(unsafe.Pointer(dir)).Ffd = fd + return dir +} + +const AT_EMPTY_PATH = 4096 +const AT_NO_AUTOMOUNT = 2048 +const AT_RECURSIVE = 32768 +const AT_STATX_DONT_SYNC = 16384 +const AT_STATX_FORCE_SYNC = 8192 +const AT_STATX_SYNC_AS_STAT = 0 +const AT_STATX_SYNC_TYPE = 24576 +const DN_ACCESS = 1 +const DN_ATTRIB = 32 +const DN_CREATE = 4 +const DN_DELETE = 8 +const DN_MODIFY = 2 +const DN_MULTISHOT = 2147483648 +const DN_RENAME = 16 +const DT_BLK = 6 +const DT_CHR = 2 +const DT_DIR = 4 +const DT_FIFO = 1 +const DT_LNK = 10 +const DT_REG = 8 +const DT_SOCK = 12 +const DT_UNKNOWN = 0 +const DT_WHT = 14 +const FALLOC_FL_KEEP_SIZE = 1 +const FALLOC_FL_PUNCH_HOLE = 2 +const FAPPEND = 1024 +const FASYNC = 8192 +const FFSYNC = 1052672 +const FNDELAY = 2048 +const FNONBLOCK = 2048 +const F_ADD_SEALS = 1033 +const F_CANCELLK = 1029 +const F_GETLEASE = 1025 +const F_GETPIPE_SZ = 1032 +const F_GET_FILE_RW_HINT = 1037 +const F_GET_RW_HINT = 1035 +const F_GET_SEALS = 1034 +const F_NOTIFY = 1026 +const F_OWNER_GID = 2 +const F_OWNER_PGRP = 2 +const F_OWNER_PID = 1 +const F_OWNER_TID = 0 +const F_SEAL_FUTURE_WRITE = 16 +const F_SEAL_GROW = 4 +const F_SEAL_SEAL = 1 +const F_SEAL_SHRINK = 2 +const F_SEAL_WRITE = 8 +const F_SETLEASE = 1024 +const F_SETPIPE_SZ = 1031 +const F_SET_FILE_RW_HINT = 1038 +const F_SET_RW_HINT = 1036 +const MAX_HANDLE_SZ = 128 +const RWF_WRITE_LIFE_NOT_SET = 0 +const RWH_WRITE_LIFE_EXTREME = 5 +const RWH_WRITE_LIFE_LONG = 4 +const RWH_WRITE_LIFE_MEDIUM = 3 +const RWH_WRITE_LIFE_NONE = 1 +const RWH_WRITE_LIFE_SHORT = 2 +const SPLICE_F_GIFT = 8 +const SPLICE_F_MORE = 4 +const SPLICE_F_MOVE = 1 +const SPLICE_F_NONBLOCK = 2 +const SYNC_FILE_RANGE_WAIT_AFTER = 4 +const SYNC_FILE_RANGE_WAIT_BEFORE = 1 +const SYNC_FILE_RANGE_WRITE = 2 +const alloca = 0 +const loff_t = 0 + +type Tiovec = struct { + Fiov_base uintptr + Fiov_len Tsize_t +} + +type Tfile_handle = struct { + Fhandle_bytes uint32 + Fhandle_type int32 +} + +type Tf_owner_ex = struct { + Ftype1 int32 + Fpid Tpid_t +} + +func Xopendir(tls *TLS, name uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + var dir, v2 uintptr + var fd, v1 int32 + _, _, _, _ = dir, fd, v1, v2 + v1 = Xopen(tls, name, Int32FromInt32(O_RDONLY)|Int32FromInt32(O_DIRECTORY)|Int32FromInt32(O_CLOEXEC), 0) + fd = v1 + if v1 < 0 { + return uintptr(0) + } + v2 = Xcalloc(tls, uint64(1), uint64(2072)) + dir = v2 + if !(v2 != 0) { + X__syscall1(tls, int64(SYS_close), int64(fd)) + return uintptr(0) + } + (*TDIR)(unsafe.Pointer(dir)).Ffd = fd + return dir +} + +type Tptrdiff_t = int64 + +type Tdirstream_buf_alignment_check = [1]uint8 + +func Xreaddir(tls *TLS, dir uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v dir=%v, (%v:)", tls, dir, origin(2)) + defer func() { trc("-> %v", r) }() + } + var de uintptr + var len1 int32 + _, _ = de, len1 + if (*TDIR)(unsafe.Pointer(dir)).Fbuf_pos >= (*TDIR)(unsafe.Pointer(dir)).Fbuf_end { + len1 = int32(X__syscall3(tls, int64(SYS_getdents64), int64((*TDIR)(unsafe.Pointer(dir)).Ffd), int64(dir+24), Int64FromUint64(Uint64FromInt64(2048)))) + if len1 <= 0 { + if len1 < 0 && len1 != -int32(ENOENT) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = -len1 + } + return uintptr(0) + } + (*TDIR)(unsafe.Pointer(dir)).Fbuf_end = len1 + (*TDIR)(unsafe.Pointer(dir)).Fbuf_pos = 0 + } + de = dir + 24 + uintptr((*TDIR)(unsafe.Pointer(dir)).Fbuf_pos) + **(**int32)(__ccgo_up(dir + 12)) += Int32FromUint16((*Tdirent)(unsafe.Pointer(de)).Fd_reclen) + (*TDIR)(unsafe.Pointer(dir)).Ftell = (*Tdirent)(unsafe.Pointer(de)).Fd_off + return de +} + +func Xreaddir_r(tls *TLS, dir uintptr, buf uintptr, result uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v dir=%v buf=%v result=%v, (%v:)", tls, dir, buf, result, origin(2)) + defer func() { trc("-> %v", r) }() + } + var de uintptr + var errno_save, ret, v1 int32 + _, _, _, _ = de, errno_save, ret, v1 + errno_save = **(**int32)(__ccgo_up(X__errno_location(tls))) + ___lock(tls, dir+20) + **(**int32)(__ccgo_up(X__errno_location(tls))) = 0 + de = Xreaddir(tls, dir) + v1 = **(**int32)(__ccgo_up(X__errno_location(tls))) + ret = v1 + if v1 != 0 { + ___unlock(tls, dir+20) + return ret + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = errno_save + if de != 0 { + Xmemcpy(tls, buf, de, uint64((*Tdirent)(unsafe.Pointer(de)).Fd_reclen)) + } else { + buf = UintptrFromInt32(0) + } + ___unlock(tls, dir+20) + **(**uintptr)(__ccgo_up(result)) = buf + return 0 +} + +func Xrewinddir(tls *TLS, dir uintptr) { + if __ccgo_strace { + trc("tls=%v dir=%v, (%v:)", tls, dir, origin(2)) + } + var v1 int32 + _ = v1 + ___lock(tls, dir+20) + Xlseek(tls, (*TDIR)(unsafe.Pointer(dir)).Ffd, 0, SEEK_SET) + v1 = Int32FromInt32(0) + (*TDIR)(unsafe.Pointer(dir)).Fbuf_end = v1 + (*TDIR)(unsafe.Pointer(dir)).Fbuf_pos = v1 + (*TDIR)(unsafe.Pointer(dir)).Ftell = 0 + ___unlock(tls, dir+20) +} + +type t__ccgo_fp__Xscandir_2 = func(*TLS, uintptr) int32 + +type t__ccgo_fp__Xscandir_3 = func(*TLS, uintptr, uintptr) int32 + +func Xscandir(tls *TLS, path uintptr, res uintptr, __ccgo_fp_sel uintptr, __ccgo_fp_cmp uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v res=%v __ccgo_fp_sel=%v __ccgo_fp_cmp=%v, (%v:)", tls, path, res, __ccgo_fp_sel, __ccgo_fp_cmp, origin(2)) + defer func() { trc("-> %v", r) }() + } + var cnt, len1, v2 Tsize_t + var d, de, names, tmp, v1 uintptr + var old_errno int32 + _, _, _, _, _, _, _, _, _ = cnt, d, de, len1, names, old_errno, tmp, v1, v2 + d = Xopendir(tls, path) + names = uintptr(0) + cnt = uint64(0) + len1 = uint64(0) + old_errno = **(**int32)(__ccgo_up(X__errno_location(tls))) + if !(d != 0) { + return -int32(1) + } + for { + **(**int32)(__ccgo_up(X__errno_location(tls))) = 0 + v1 = Xreaddir(tls, d) + de = v1 + if !(v1 != 0) { + break + } + if __ccgo_fp_sel != 0 && !((*(*func(*TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_sel})))(tls, de) != 0) { + continue + } + if cnt >= len1 { + len1 = uint64(2)*len1 + uint64(1) + if len1 > Uint64FromUint64(0xffffffffffffffff)/Uint64FromInt64(8) { + break + } + tmp = Xrealloc(tls, names, len1*uint64(8)) + if !(tmp != 0) { + break + } + names = tmp + } + **(**uintptr)(__ccgo_up(names + uintptr(cnt)*8)) = Xmalloc(tls, uint64((*Tdirent)(unsafe.Pointer(de)).Fd_reclen)) + if !(**(**uintptr)(__ccgo_up(names + uintptr(cnt)*8)) != 0) { + break + } + v2 = cnt + cnt = cnt + 1 + Xmemcpy(tls, **(**uintptr)(__ccgo_up(names + uintptr(v2)*8)), de, uint64((*Tdirent)(unsafe.Pointer(de)).Fd_reclen)) + } + Xclosedir(tls, d) + if **(**int32)(__ccgo_up(X__errno_location(tls))) != 0 { + if names != 0 { + for { + v2 = cnt + cnt = cnt - 1 + if !(v2 > uint64(0)) { + break + } + Xfree(tls, **(**uintptr)(__ccgo_up(names + uintptr(cnt)*8))) + } + } + Xfree(tls, names) + return -int32(1) + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = old_errno + if __ccgo_fp_cmp != 0 { + Xqsort(tls, names, cnt, uint64(8), __ccgo_fp_cmp) + } + **(**uintptr)(__ccgo_up(res)) = names + return Int32FromUint64(cnt) +} + +func Xseekdir(tls *TLS, dir uintptr, off int64) { + if __ccgo_strace { + trc("tls=%v dir=%v off=%v, (%v:)", tls, dir, off, origin(2)) + } + var v1 int32 + _ = v1 + ___lock(tls, dir+20) + (*TDIR)(unsafe.Pointer(dir)).Ftell = Xlseek(tls, (*TDIR)(unsafe.Pointer(dir)).Ffd, off, SEEK_SET) + v1 = Int32FromInt32(0) + (*TDIR)(unsafe.Pointer(dir)).Fbuf_end = v1 + (*TDIR)(unsafe.Pointer(dir)).Fbuf_pos = v1 + ___unlock(tls, dir+20) +} + +func Xtelldir(tls *TLS, dir uintptr) (r int64) { + if __ccgo_strace { + trc("tls=%v dir=%v, (%v:)", tls, dir, origin(2)) + defer func() { trc("-> %v", r) }() + } + return (*TDIR)(unsafe.Pointer(dir)).Ftell +} + +func Xversionsort(tls *TLS, a uintptr, b uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v a=%v b=%v, (%v:)", tls, a, b, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrverscmp(tls, **(**uintptr)(__ccgo_up(a))+19, **(**uintptr)(__ccgo_up(b))+19) +} + +func X__reset_tls(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + var i, n Tsize_t + var mem, p uintptr + var self Tpthread_t + _, _, _, _, _ = i, mem, n, p, self + self = uintptr(___get_tp(tls)) + n = **(**Tuintptr_t)(__ccgo_up((*t__pthread)(unsafe.Pointer(self)).Fdtv)) + if n != 0 { + p = X__libc.Ftls_head + i = Uint64FromInt32(1) + for { + if !(i <= n) { + break + } + mem = uintptr(**(**Tuintptr_t)(__ccgo_up((*t__pthread)(unsafe.Pointer(self)).Fdtv + uintptr(i)*8)) - Uint64FromInt32(DTP_OFFSET)) + Xmemcpy(tls, mem, (*Ttls_module)(unsafe.Pointer(p)).Fimage, (*Ttls_module)(unsafe.Pointer(p)).Flen1) + Xmemset(tls, mem+uintptr((*Ttls_module)(unsafe.Pointer(p)).Flen1), 0, (*Ttls_module)(unsafe.Pointer(p)).Fsize-(*Ttls_module)(unsafe.Pointer(p)).Flen1) + goto _1 + _1: + ; + i = i + 1 + p = (*Ttls_module)(unsafe.Pointer(p)).Fnext + } + } +} + +func X__init_ssp(tls *TLS, entropy uintptr) { + if __ccgo_strace { + trc("tls=%v entropy=%v, (%v:)", tls, entropy, origin(2)) + } + if entropy != 0 { + Xmemcpy(tls, uintptr(unsafe.Pointer(&X__stack_chk_guard)), entropy, uint64(8)) + } else { + X__stack_chk_guard = Tuintptr_t(uintptr(unsafe.Pointer(&X__stack_chk_guard))) * uint64(1103515245) + } + /* Sacrifice 8 bits of entropy on 64bit to prevent leaking/ + * overwriting the canary via string-manipulation functions. + * The NULL byte is on the second byte so that off-by-ones can + * still be detected. Endianness is taken care of + * automatically. */ + **(**uint8)(__ccgo_up(uintptr(unsafe.Pointer(&X__stack_chk_guard)) + 1)) = uint8(0) + (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Fcanary = X__stack_chk_guard +} + +func X__stack_chk_fail(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + **(**uint8)(__ccgo_up(UintptrFromInt32(0))) = uint8(0) +} + +func X__stack_chk_fail_local(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + X__stack_chk_fail(tls) +} + +const L_INCR = 1 +const L_SET = 0 +const L_XTND = 2 + +func _dummy(tls *TLS, old uintptr, new1 uintptr) { +} + +func Xclearenv(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + var e, v1 uintptr + _, _ = e, v1 + e = Xenviron + Xenviron = uintptr(0) + if e != 0 { + for **(**uintptr)(__ccgo_up(e)) != 0 { + v1 = e + e += 8 + X__env_rm_add(tls, **(**uintptr)(__ccgo_up(v1)), uintptr(0)) + } + } + return 0 +} + +func Xgetenv(tls *TLS, name uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + var e uintptr + var l Tsize_t + _, _ = e, l + l = Uint64FromInt64(int64(X__strchrnul(tls, name, int32('='))) - int64(name)) + if l != 0 && !(**(**uint8)(__ccgo_up(name + uintptr(l))) != 0) && Xenviron != 0 { + e = Xenviron + for { + if !(**(**uintptr)(__ccgo_up(e)) != 0) { + break + } + if !(Xstrncmp(tls, name, **(**uintptr)(__ccgo_up(e)), l) != 0) && Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(e)) + uintptr(l)))) == int32('=') { + return **(**uintptr)(__ccgo_up(e)) + uintptr(l) + uintptr(1) + } + goto _1 + _1: + ; + e += 8 + } + } + return uintptr(0) +} + +func _dummy1(tls *TLS, old uintptr, new1 uintptr) { +} + +func X__putenv(tls *TLS, s uintptr, l Tsize_t, r uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v s=%v l=%v r=%v, (%v:)", tls, s, l, r, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var e, newenv, tmp, v2 uintptr + var i Tsize_t + _, _, _, _, _ = e, i, newenv, tmp, v2 + i = uint64(0) + if Xenviron != 0 { + e = Xenviron + for { + if !(**(**uintptr)(__ccgo_up(e)) != 0) { + break + } + if !(Xstrncmp(tls, s, **(**uintptr)(__ccgo_up(e)), l+uint64(1)) != 0) { + tmp = **(**uintptr)(__ccgo_up(e)) + **(**uintptr)(__ccgo_up(e)) = s + X__env_rm_add(tls, tmp, r) + return 0 + } + goto _1 + _1: + ; + e += 8 + i = i + 1 + } + } + if Xenviron == _oldenv { + newenv = Xrealloc(tls, _oldenv, uint64(8)*(i+uint64(2))) + if !(newenv != 0) { + goto oom + } + } else { + newenv = Xmalloc(tls, uint64(8)*(i+uint64(2))) + if !(newenv != 0) { + goto oom + } + if i != 0 { + Xmemcpy(tls, newenv, Xenviron, uint64(8)*i) + } + Xfree(tls, _oldenv) + } + **(**uintptr)(__ccgo_up(newenv + uintptr(i)*8)) = s + **(**uintptr)(__ccgo_up(newenv + uintptr(i+uint64(1))*8)) = uintptr(0) + v2 = newenv + _oldenv = v2 + Xenviron = v2 + if r != 0 { + X__env_rm_add(tls, uintptr(0), r) + } + return 0 + goto oom +oom: + ; + Xfree(tls, r) + return -int32(1) +} + +var _oldenv uintptr + +func Xputenv(tls *TLS, s uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l Tsize_t + _ = l + l = Uint64FromInt64(int64(X__strchrnul(tls, s, int32('='))) - int64(s)) + if !(l != 0) || !(**(**uint8)(__ccgo_up(s + uintptr(l))) != 0) { + return Xunsetenv(tls, s) + } + return X__putenv(tls, s, l, uintptr(0)) +} + +const L_cuserid = 20 +const NL_NMAX = 16 + +type Tcookie_io_functions_t = struct { + Fread uintptr + Fwrite uintptr + Fseek uintptr + Fclose1 uintptr +} + +type T_IO_cookie_io_functions_t = Tcookie_io_functions_t + +func Xsecure_getenv(tls *TLS, name uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 uintptr + _ = v1 + if X__libc.Fsecure != 0 { + v1 = UintptrFromInt32(0) + } else { + v1 = Xgetenv(tls, name) + } + return v1 +} + +func X__env_rm_add(tls *TLS, old uintptr, new1 uintptr) { + if __ccgo_strace { + trc("tls=%v old=%v new1=%v, (%v:)", tls, old, new1, origin(2)) + } + var i, v3 Tsize_t + var t, v2 uintptr + _, _, _, _ = i, t, v2, v3 + i = uint64(0) + for { + if !(i < _env_alloced_n) { + break + } + if **(**uintptr)(__ccgo_up(_env_alloced + uintptr(i)*8)) == old { + **(**uintptr)(__ccgo_up(_env_alloced + uintptr(i)*8)) = new1 + Xfree(tls, old) + return + } else { + if !(**(**uintptr)(__ccgo_up(_env_alloced + uintptr(i)*8)) != 0) && new1 != 0 { + **(**uintptr)(__ccgo_up(_env_alloced + uintptr(i)*8)) = new1 + new1 = uintptr(0) + } + } + goto _1 + _1: + ; + i = i + 1 + } + if !(new1 != 0) { + return + } + t = Xrealloc(tls, _env_alloced, uint64(8)*(_env_alloced_n+uint64(1))) + if !(t != 0) { + return + } + v2 = t + _env_alloced = v2 + v3 = _env_alloced_n + _env_alloced_n = _env_alloced_n + 1 + **(**uintptr)(__ccgo_up(v2 + uintptr(v3)*8)) = new1 +} + +var _env_alloced uintptr + +var _env_alloced_n Tsize_t + +func Xsetenv(tls *TLS, var1 uintptr, value uintptr, overwrite int32) (r int32) { + if __ccgo_strace { + trc("tls=%v var1=%v value=%v overwrite=%v, (%v:)", tls, var1, value, overwrite, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l1, l2, v1 Tsize_t + var s uintptr + var v2 bool + _, _, _, _, _ = l1, l2, s, v1, v2 + if v2 = !(var1 != 0); !v2 { + v1 = Uint64FromInt64(int64(X__strchrnul(tls, var1, int32('='))) - int64(var1)) + l1 = v1 + } + if v2 || !(v1 != 0) || **(**uint8)(__ccgo_up(var1 + uintptr(l1))) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + if !(overwrite != 0) && Xgetenv(tls, var1) != 0 { + return 0 + } + l2 = _strlen(tls, value) + s = Xmalloc(tls, l1+l2+uint64(2)) + if !(s != 0) { + return -int32(1) + } + Xmemcpy(tls, s, var1, l1) + **(**uint8)(__ccgo_up(s + uintptr(l1))) = uint8('=') + Xmemcpy(tls, s+uintptr(l1)+uintptr(1), value, l2+uint64(1)) + return X__putenv(tls, s, l1, s) +} + +func _dummy2(tls *TLS, old uintptr, new1 uintptr) { +} + +func Xunsetenv(tls *TLS, name uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + var e, eo, v2 uintptr + var l Tsize_t + _, _, _, _ = e, eo, l, v2 + l = Uint64FromInt64(int64(X__strchrnul(tls, name, int32('='))) - int64(name)) + if !(l != 0) || **(**uint8)(__ccgo_up(name + uintptr(l))) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + if Xenviron != 0 { + e = Xenviron + eo = e + for { + if !(**(**uintptr)(__ccgo_up(e)) != 0) { + break + } + if !(Xstrncmp(tls, name, **(**uintptr)(__ccgo_up(e)), l) != 0) && Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(e)) + uintptr(l)))) == int32('=') { + X__env_rm_add(tls, **(**uintptr)(__ccgo_up(e)), uintptr(0)) + } else { + if eo != e { + v2 = eo + eo += 8 + **(**uintptr)(__ccgo_up(v2)) = **(**uintptr)(__ccgo_up(e)) + } else { + eo += 8 + } + } + goto _1 + _1: + ; + e += 8 + } + if eo != e { + **(**uintptr)(__ccgo_up(eo)) = uintptr(0) + } + } + return 0 +} + +/* mips has one error code outside of the 8-bit range due to a + * historical typo, so we just remap it. */ + +type Terrmsgstr_t = struct { + Fstr0 [21]uint8 + FstrEILSEQ [22]uint8 + FstrEDOM [13]uint8 + FstrERANGE [25]uint8 + FstrENOTTY [10]uint8 + FstrEACCES [18]uint8 + FstrEPERM [24]uint8 + FstrENOENT [26]uint8 + FstrESRCH [16]uint8 + FstrEEXIST [12]uint8 + FstrEOVERFLOW [30]uint8 + FstrENOSPC [24]uint8 + FstrENOMEM [14]uint8 + FstrEBUSY [14]uint8 + FstrEINTR [24]uint8 + FstrEAGAIN [33]uint8 + FstrESPIPE [13]uint8 + FstrEXDEV [18]uint8 + FstrEROFS [22]uint8 + FstrENOTEMPTY [20]uint8 + FstrECONNRESET [25]uint8 + FstrETIMEDOUT [20]uint8 + FstrECONNREFUSED [19]uint8 + FstrEHOSTDOWN [13]uint8 + FstrEHOSTUNREACH [20]uint8 + FstrEADDRINUSE [15]uint8 + FstrEPIPE [12]uint8 + FstrEIO [10]uint8 + FstrENXIO [26]uint8 + FstrENOTBLK [22]uint8 + FstrENODEV [15]uint8 + FstrENOTDIR [16]uint8 + FstrEISDIR [15]uint8 + FstrETXTBSY [15]uint8 + FstrENOEXEC [18]uint8 + FstrEINVAL [17]uint8 + FstrE2BIG [23]uint8 + FstrELOOP [19]uint8 + FstrENAMETOOLONG [18]uint8 + FstrENFILE [30]uint8 + FstrEMFILE [30]uint8 + FstrEBADF [20]uint8 + FstrECHILD [17]uint8 + FstrEFAULT [12]uint8 + FstrEFBIG [15]uint8 + FstrEMLINK [15]uint8 + FstrENOLCK [19]uint8 + FstrEDEADLK [30]uint8 + FstrENOTRECOVERABLE [22]uint8 + FstrEOWNERDEAD [20]uint8 + FstrECANCELED [19]uint8 + FstrENOSYS [25]uint8 + FstrENOMSG [27]uint8 + FstrEIDRM [19]uint8 + FstrENOSTR [20]uint8 + FstrENODATA [18]uint8 + FstrETIME [15]uint8 + FstrENOSR [25]uint8 + FstrENOLINK [22]uint8 + FstrEPROTO [15]uint8 + FstrEBADMSG [12]uint8 + FstrEBADFD [29]uint8 + FstrENOTSOCK [13]uint8 + FstrEDESTADDRREQ [29]uint8 + FstrEMSGSIZE [18]uint8 + FstrEPROTOTYPE [31]uint8 + FstrENOPROTOOPT [23]uint8 + FstrEPROTONOSUPPORT [23]uint8 + FstrESOCKTNOSUPPORT [26]uint8 + FstrENOTSUP [14]uint8 + FstrEPFNOSUPPORT [30]uint8 + FstrEAFNOSUPPORT [41]uint8 + FstrEADDRNOTAVAIL [22]uint8 + FstrENETDOWN [16]uint8 + FstrENETUNREACH [20]uint8 + FstrENETRESET [28]uint8 + FstrECONNABORTED [19]uint8 + FstrENOBUFS [26]uint8 + FstrEISCONN [20]uint8 + FstrENOTCONN [21]uint8 + FstrESHUTDOWN [34]uint8 + FstrEALREADY [30]uint8 + FstrEINPROGRESS [22]uint8 + FstrESTALE [18]uint8 + FstrEREMOTEIO [17]uint8 + FstrEDQUOT [15]uint8 + FstrENOMEDIUM [16]uint8 + FstrEMEDIUMTYPE [18]uint8 + FstrEMULTIHOP [19]uint8 + FstrENOKEY [27]uint8 + FstrEKEYEXPIRED [16]uint8 + FstrEKEYREVOKED [21]uint8 + FstrEKEYREJECTED [28]uint8 +} + +/* mips has one error code outside of the 8-bit range due to a + * historical typo, so we just remap it. */ + +var _errmsgstr = Terrmsgstr_t{ + Fstr0: [21]uint8{'N', 'o', ' ', 'e', 'r', 'r', 'o', 'r', ' ', 'i', 'n', 'f', 'o', 'r', 'm', 'a', 't', 'i', 'o', 'n'}, + FstrEILSEQ: [22]uint8{'I', 'l', 'l', 'e', 'g', 'a', 'l', ' ', 'b', 'y', 't', 'e', ' ', 's', 'e', 'q', 'u', 'e', 'n', 'c', 'e'}, + FstrEDOM: [13]uint8{'D', 'o', 'm', 'a', 'i', 'n', ' ', 'e', 'r', 'r', 'o', 'r'}, + FstrERANGE: [25]uint8{'R', 'e', 's', 'u', 'l', 't', ' ', 'n', 'o', 't', ' ', 'r', 'e', 'p', 'r', 'e', 's', 'e', 'n', 't', 'a', 'b', 'l', 'e'}, + FstrENOTTY: [10]uint8{'N', 'o', 't', ' ', 'a', ' ', 't', 't', 'y'}, + FstrEACCES: [18]uint8{'P', 'e', 'r', 'm', 'i', 's', 's', 'i', 'o', 'n', ' ', 'd', 'e', 'n', 'i', 'e', 'd'}, + FstrEPERM: [24]uint8{'O', 'p', 'e', 'r', 'a', 't', 'i', 'o', 'n', ' ', 'n', 'o', 't', ' ', 'p', 'e', 'r', 'm', 'i', 't', 't', 'e', 'd'}, + FstrENOENT: [26]uint8{'N', 'o', ' ', 's', 'u', 'c', 'h', ' ', 'f', 'i', 'l', 'e', ' ', 'o', 'r', ' ', 'd', 'i', 'r', 'e', 'c', 't', 'o', 'r', 'y'}, + FstrESRCH: [16]uint8{'N', 'o', ' ', 's', 'u', 'c', 'h', ' ', 'p', 'r', 'o', 'c', 'e', 's', 's'}, + FstrEEXIST: [12]uint8{'F', 'i', 'l', 'e', ' ', 'e', 'x', 'i', 's', 't', 's'}, + FstrEOVERFLOW: [30]uint8{'V', 'a', 'l', 'u', 'e', ' ', 't', 'o', 'o', ' ', 'l', 'a', 'r', 'g', 'e', ' ', 'f', 'o', 'r', ' ', 'd', 'a', 't', 'a', ' ', 't', 'y', 'p', 'e'}, + FstrENOSPC: [24]uint8{'N', 'o', ' ', 's', 'p', 'a', 'c', 'e', ' ', 'l', 'e', 'f', 't', ' ', 'o', 'n', ' ', 'd', 'e', 'v', 'i', 'c', 'e'}, + FstrENOMEM: [14]uint8{'O', 'u', 't', ' ', 'o', 'f', ' ', 'm', 'e', 'm', 'o', 'r', 'y'}, + FstrEBUSY: [14]uint8{'R', 'e', 's', 'o', 'u', 'r', 'c', 'e', ' ', 'b', 'u', 's', 'y'}, + FstrEINTR: [24]uint8{'I', 'n', 't', 'e', 'r', 'r', 'u', 'p', 't', 'e', 'd', ' ', 's', 'y', 's', 't', 'e', 'm', ' ', 'c', 'a', 'l', 'l'}, + FstrEAGAIN: [33]uint8{'R', 'e', 's', 'o', 'u', 'r', 'c', 'e', ' ', 't', 'e', 'm', 'p', 'o', 'r', 'a', 'r', 'i', 'l', 'y', ' ', 'u', 'n', 'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e'}, + FstrESPIPE: [13]uint8{'I', 'n', 'v', 'a', 'l', 'i', 'd', ' ', 's', 'e', 'e', 'k'}, + FstrEXDEV: [18]uint8{'C', 'r', 'o', 's', 's', '-', 'd', 'e', 'v', 'i', 'c', 'e', ' ', 'l', 'i', 'n', 'k'}, + FstrEROFS: [22]uint8{'R', 'e', 'a', 'd', '-', 'o', 'n', 'l', 'y', ' ', 'f', 'i', 'l', 'e', ' ', 's', 'y', 's', 't', 'e', 'm'}, + FstrENOTEMPTY: [20]uint8{'D', 'i', 'r', 'e', 'c', 't', 'o', 'r', 'y', ' ', 'n', 'o', 't', ' ', 'e', 'm', 'p', 't', 'y'}, + FstrECONNRESET: [25]uint8{'C', 'o', 'n', 'n', 'e', 'c', 't', 'i', 'o', 'n', ' ', 'r', 'e', 's', 'e', 't', ' ', 'b', 'y', ' ', 'p', 'e', 'e', 'r'}, + FstrETIMEDOUT: [20]uint8{'O', 'p', 'e', 'r', 'a', 't', 'i', 'o', 'n', ' ', 't', 'i', 'm', 'e', 'd', ' ', 'o', 'u', 't'}, + FstrECONNREFUSED: [19]uint8{'C', 'o', 'n', 'n', 'e', 'c', 't', 'i', 'o', 'n', ' ', 'r', 'e', 'f', 'u', 's', 'e', 'd'}, + FstrEHOSTDOWN: [13]uint8{'H', 'o', 's', 't', ' ', 'i', 's', ' ', 'd', 'o', 'w', 'n'}, + FstrEHOSTUNREACH: [20]uint8{'H', 'o', 's', 't', ' ', 'i', 's', ' ', 'u', 'n', 'r', 'e', 'a', 'c', 'h', 'a', 'b', 'l', 'e'}, + FstrEADDRINUSE: [15]uint8{'A', 'd', 'd', 'r', 'e', 's', 's', ' ', 'i', 'n', ' ', 'u', 's', 'e'}, + FstrEPIPE: [12]uint8{'B', 'r', 'o', 'k', 'e', 'n', ' ', 'p', 'i', 'p', 'e'}, + FstrEIO: [10]uint8{'I', '/', 'O', ' ', 'e', 'r', 'r', 'o', 'r'}, + FstrENXIO: [26]uint8{'N', 'o', ' ', 's', 'u', 'c', 'h', ' ', 'd', 'e', 'v', 'i', 'c', 'e', ' ', 'o', 'r', ' ', 'a', 'd', 'd', 'r', 'e', 's', 's'}, + FstrENOTBLK: [22]uint8{'B', 'l', 'o', 'c', 'k', ' ', 'd', 'e', 'v', 'i', 'c', 'e', ' ', 'r', 'e', 'q', 'u', 'i', 'r', 'e', 'd'}, + FstrENODEV: [15]uint8{'N', 'o', ' ', 's', 'u', 'c', 'h', ' ', 'd', 'e', 'v', 'i', 'c', 'e'}, + FstrENOTDIR: [16]uint8{'N', 'o', 't', ' ', 'a', ' ', 'd', 'i', 'r', 'e', 'c', 't', 'o', 'r', 'y'}, + FstrEISDIR: [15]uint8{'I', 's', ' ', 'a', ' ', 'd', 'i', 'r', 'e', 'c', 't', 'o', 'r', 'y'}, + FstrETXTBSY: [15]uint8{'T', 'e', 'x', 't', ' ', 'f', 'i', 'l', 'e', ' ', 'b', 'u', 's', 'y'}, + FstrENOEXEC: [18]uint8{'E', 'x', 'e', 'c', ' ', 'f', 'o', 'r', 'm', 'a', 't', ' ', 'e', 'r', 'r', 'o', 'r'}, + FstrEINVAL: [17]uint8{'I', 'n', 'v', 'a', 'l', 'i', 'd', ' ', 'a', 'r', 'g', 'u', 'm', 'e', 'n', 't'}, + FstrE2BIG: [23]uint8{'A', 'r', 'g', 'u', 'm', 'e', 'n', 't', ' ', 'l', 'i', 's', 't', ' ', 't', 'o', 'o', ' ', 'l', 'o', 'n', 'g'}, + FstrELOOP: [19]uint8{'S', 'y', 'm', 'b', 'o', 'l', 'i', 'c', ' ', 'l', 'i', 'n', 'k', ' ', 'l', 'o', 'o', 'p'}, + FstrENAMETOOLONG: [18]uint8{'F', 'i', 'l', 'e', 'n', 'a', 'm', 'e', ' ', 't', 'o', 'o', ' ', 'l', 'o', 'n', 'g'}, + FstrENFILE: [30]uint8{'T', 'o', 'o', ' ', 'm', 'a', 'n', 'y', ' ', 'o', 'p', 'e', 'n', ' ', 'f', 'i', 'l', 'e', 's', ' ', 'i', 'n', ' ', 's', 'y', 's', 't', 'e', 'm'}, + FstrEMFILE: [30]uint8{'N', 'o', ' ', 'f', 'i', 'l', 'e', ' ', 'd', 'e', 's', 'c', 'r', 'i', 'p', 't', 'o', 'r', 's', ' ', 'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e'}, + FstrEBADF: [20]uint8{'B', 'a', 'd', ' ', 'f', 'i', 'l', 'e', ' ', 'd', 'e', 's', 'c', 'r', 'i', 'p', 't', 'o', 'r'}, + FstrECHILD: [17]uint8{'N', 'o', ' ', 'c', 'h', 'i', 'l', 'd', ' ', 'p', 'r', 'o', 'c', 'e', 's', 's'}, + FstrEFAULT: [12]uint8{'B', 'a', 'd', ' ', 'a', 'd', 'd', 'r', 'e', 's', 's'}, + FstrEFBIG: [15]uint8{'F', 'i', 'l', 'e', ' ', 't', 'o', 'o', ' ', 'l', 'a', 'r', 'g', 'e'}, + FstrEMLINK: [15]uint8{'T', 'o', 'o', ' ', 'm', 'a', 'n', 'y', ' ', 'l', 'i', 'n', 'k', 's'}, + FstrENOLCK: [19]uint8{'N', 'o', ' ', 'l', 'o', 'c', 'k', 's', ' ', 'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e'}, + FstrEDEADLK: [30]uint8{'R', 'e', 's', 'o', 'u', 'r', 'c', 'e', ' ', 'd', 'e', 'a', 'd', 'l', 'o', 'c', 'k', ' ', 'w', 'o', 'u', 'l', 'd', ' ', 'o', 'c', 'c', 'u', 'r'}, + FstrENOTRECOVERABLE: [22]uint8{'S', 't', 'a', 't', 'e', ' ', 'n', 'o', 't', ' ', 'r', 'e', 'c', 'o', 'v', 'e', 'r', 'a', 'b', 'l', 'e'}, + FstrEOWNERDEAD: [20]uint8{'P', 'r', 'e', 'v', 'i', 'o', 'u', 's', ' ', 'o', 'w', 'n', 'e', 'r', ' ', 'd', 'i', 'e', 'd'}, + FstrECANCELED: [19]uint8{'O', 'p', 'e', 'r', 'a', 't', 'i', 'o', 'n', ' ', 'c', 'a', 'n', 'c', 'e', 'l', 'e', 'd'}, + FstrENOSYS: [25]uint8{'F', 'u', 'n', 'c', 't', 'i', 'o', 'n', ' ', 'n', 'o', 't', ' ', 'i', 'm', 'p', 'l', 'e', 'm', 'e', 'n', 't', 'e', 'd'}, + FstrENOMSG: [27]uint8{'N', 'o', ' ', 'm', 'e', 's', 's', 'a', 'g', 'e', ' ', 'o', 'f', ' ', 'd', 'e', 's', 'i', 'r', 'e', 'd', ' ', 't', 'y', 'p', 'e'}, + FstrEIDRM: [19]uint8{'I', 'd', 'e', 'n', 't', 'i', 'f', 'i', 'e', 'r', ' ', 'r', 'e', 'm', 'o', 'v', 'e', 'd'}, + FstrENOSTR: [20]uint8{'D', 'e', 'v', 'i', 'c', 'e', ' ', 'n', 'o', 't', ' ', 'a', ' ', 's', 't', 'r', 'e', 'a', 'm'}, + FstrENODATA: [18]uint8{'N', 'o', ' ', 'd', 'a', 't', 'a', ' ', 'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e'}, + FstrETIME: [15]uint8{'D', 'e', 'v', 'i', 'c', 'e', ' ', 't', 'i', 'm', 'e', 'o', 'u', 't'}, + FstrENOSR: [25]uint8{'O', 'u', 't', ' ', 'o', 'f', ' ', 's', 't', 'r', 'e', 'a', 'm', 's', ' ', 'r', 'e', 's', 'o', 'u', 'r', 'c', 'e', 's'}, + FstrENOLINK: [22]uint8{'L', 'i', 'n', 'k', ' ', 'h', 'a', 's', ' ', 'b', 'e', 'e', 'n', ' ', 's', 'e', 'v', 'e', 'r', 'e', 'd'}, + FstrEPROTO: [15]uint8{'P', 'r', 'o', 't', 'o', 'c', 'o', 'l', ' ', 'e', 'r', 'r', 'o', 'r'}, + FstrEBADMSG: [12]uint8{'B', 'a', 'd', ' ', 'm', 'e', 's', 's', 'a', 'g', 'e'}, + FstrEBADFD: [29]uint8{'F', 'i', 'l', 'e', ' ', 'd', 'e', 's', 'c', 'r', 'i', 'p', 't', 'o', 'r', ' ', 'i', 'n', ' ', 'b', 'a', 'd', ' ', 's', 't', 'a', 't', 'e'}, + FstrENOTSOCK: [13]uint8{'N', 'o', 't', ' ', 'a', ' ', 's', 'o', 'c', 'k', 'e', 't'}, + FstrEDESTADDRREQ: [29]uint8{'D', 'e', 's', 't', 'i', 'n', 'a', 't', 'i', 'o', 'n', ' ', 'a', 'd', 'd', 'r', 'e', 's', 's', ' ', 'r', 'e', 'q', 'u', 'i', 'r', 'e', 'd'}, + FstrEMSGSIZE: [18]uint8{'M', 'e', 's', 's', 'a', 'g', 'e', ' ', 't', 'o', 'o', ' ', 'l', 'a', 'r', 'g', 'e'}, + FstrEPROTOTYPE: [31]uint8{'P', 'r', 'o', 't', 'o', 'c', 'o', 'l', ' ', 'w', 'r', 'o', 'n', 'g', ' ', 't', 'y', 'p', 'e', ' ', 'f', 'o', 'r', ' ', 's', 'o', 'c', 'k', 'e', 't'}, + FstrENOPROTOOPT: [23]uint8{'P', 'r', 'o', 't', 'o', 'c', 'o', 'l', ' ', 'n', 'o', 't', ' ', 'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e'}, + FstrEPROTONOSUPPORT: [23]uint8{'P', 'r', 'o', 't', 'o', 'c', 'o', 'l', ' ', 'n', 'o', 't', ' ', 's', 'u', 'p', 'p', 'o', 'r', 't', 'e', 'd'}, + FstrESOCKTNOSUPPORT: [26]uint8{'S', 'o', 'c', 'k', 'e', 't', ' ', 't', 'y', 'p', 'e', ' ', 'n', 'o', 't', ' ', 's', 'u', 'p', 'p', 'o', 'r', 't', 'e', 'd'}, + FstrENOTSUP: [14]uint8{'N', 'o', 't', ' ', 's', 'u', 'p', 'p', 'o', 'r', 't', 'e', 'd'}, + FstrEPFNOSUPPORT: [30]uint8{'P', 'r', 'o', 't', 'o', 'c', 'o', 'l', ' ', 'f', 'a', 'm', 'i', 'l', 'y', ' ', 'n', 'o', 't', ' ', 's', 'u', 'p', 'p', 'o', 'r', 't', 'e', 'd'}, + FstrEAFNOSUPPORT: [41]uint8{'A', 'd', 'd', 'r', 'e', 's', 's', ' ', 'f', 'a', 'm', 'i', 'l', 'y', ' ', 'n', 'o', 't', ' ', 's', 'u', 'p', 'p', 'o', 'r', 't', 'e', 'd', ' ', 'b', 'y', ' ', 'p', 'r', 'o', 't', 'o', 'c', 'o', 'l'}, + FstrEADDRNOTAVAIL: [22]uint8{'A', 'd', 'd', 'r', 'e', 's', 's', ' ', 'n', 'o', 't', ' ', 'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e'}, + FstrENETDOWN: [16]uint8{'N', 'e', 't', 'w', 'o', 'r', 'k', ' ', 'i', 's', ' ', 'd', 'o', 'w', 'n'}, + FstrENETUNREACH: [20]uint8{'N', 'e', 't', 'w', 'o', 'r', 'k', ' ', 'u', 'n', 'r', 'e', 'a', 'c', 'h', 'a', 'b', 'l', 'e'}, + FstrENETRESET: [28]uint8{'C', 'o', 'n', 'n', 'e', 'c', 't', 'i', 'o', 'n', ' ', 'r', 'e', 's', 'e', 't', ' ', 'b', 'y', ' ', 'n', 'e', 't', 'w', 'o', 'r', 'k'}, + FstrECONNABORTED: [19]uint8{'C', 'o', 'n', 'n', 'e', 'c', 't', 'i', 'o', 'n', ' ', 'a', 'b', 'o', 'r', 't', 'e', 'd'}, + FstrENOBUFS: [26]uint8{'N', 'o', ' ', 'b', 'u', 'f', 'f', 'e', 'r', ' ', 's', 'p', 'a', 'c', 'e', ' ', 'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e'}, + FstrEISCONN: [20]uint8{'S', 'o', 'c', 'k', 'e', 't', ' ', 'i', 's', ' ', 'c', 'o', 'n', 'n', 'e', 'c', 't', 'e', 'd'}, + FstrENOTCONN: [21]uint8{'S', 'o', 'c', 'k', 'e', 't', ' ', 'n', 'o', 't', ' ', 'c', 'o', 'n', 'n', 'e', 'c', 't', 'e', 'd'}, + FstrESHUTDOWN: [34]uint8{'C', 'a', 'n', 'n', 'o', 't', ' ', 's', 'e', 'n', 'd', ' ', 'a', 'f', 't', 'e', 'r', ' ', 's', 'o', 'c', 'k', 'e', 't', ' ', 's', 'h', 'u', 't', 'd', 'o', 'w', 'n'}, + FstrEALREADY: [30]uint8{'O', 'p', 'e', 'r', 'a', 't', 'i', 'o', 'n', ' ', 'a', 'l', 'r', 'e', 'a', 'd', 'y', ' ', 'i', 'n', ' ', 'p', 'r', 'o', 'g', 'r', 'e', 's', 's'}, + FstrEINPROGRESS: [22]uint8{'O', 'p', 'e', 'r', 'a', 't', 'i', 'o', 'n', ' ', 'i', 'n', ' ', 'p', 'r', 'o', 'g', 'r', 'e', 's', 's'}, + FstrESTALE: [18]uint8{'S', 't', 'a', 'l', 'e', ' ', 'f', 'i', 'l', 'e', ' ', 'h', 'a', 'n', 'd', 'l', 'e'}, + FstrEREMOTEIO: [17]uint8{'R', 'e', 'm', 'o', 't', 'e', ' ', 'I', '/', 'O', ' ', 'e', 'r', 'r', 'o', 'r'}, + FstrEDQUOT: [15]uint8{'Q', 'u', 'o', 't', 'a', ' ', 'e', 'x', 'c', 'e', 'e', 'd', 'e', 'd'}, + FstrENOMEDIUM: [16]uint8{'N', 'o', ' ', 'm', 'e', 'd', 'i', 'u', 'm', ' ', 'f', 'o', 'u', 'n', 'd'}, + FstrEMEDIUMTYPE: [18]uint8{'W', 'r', 'o', 'n', 'g', ' ', 'm', 'e', 'd', 'i', 'u', 'm', ' ', 't', 'y', 'p', 'e'}, + FstrEMULTIHOP: [19]uint8{'M', 'u', 'l', 't', 'i', 'h', 'o', 'p', ' ', 'a', 't', 't', 'e', 'm', 'p', 't', 'e', 'd'}, + FstrENOKEY: [27]uint8{'R', 'e', 'q', 'u', 'i', 'r', 'e', 'd', ' ', 'k', 'e', 'y', ' ', 'n', 'o', 't', ' ', 'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e'}, + FstrEKEYEXPIRED: [16]uint8{'K', 'e', 'y', ' ', 'h', 'a', 's', ' ', 'e', 'x', 'p', 'i', 'r', 'e', 'd'}, + FstrEKEYREVOKED: [21]uint8{'K', 'e', 'y', ' ', 'h', 'a', 's', ' ', 'b', 'e', 'e', 'n', ' ', 'r', 'e', 'v', 'o', 'k', 'e', 'd'}, + FstrEKEYREJECTED: [28]uint8{'K', 'e', 'y', ' ', 'w', 'a', 's', ' ', 'r', 'e', 'j', 'e', 'c', 't', 'e', 'd', ' ', 'b', 'y', ' ', 's', 'e', 'r', 'v', 'i', 'c', 'e'}, +} + +var _errmsgidx = [132]uint16{ + 1: uint16(uint64(UintptrFromInt32(0) + 109)), + 2: uint16(uint64(UintptrFromInt32(0) + 133)), + 3: uint16(uint64(UintptrFromInt32(0) + 159)), + 4: uint16(uint64(UintptrFromInt32(0) + 269)), + 5: uint16(uint64(UintptrFromInt32(0) + 523)), + 6: uint16(uint64(UintptrFromInt32(0) + 533)), + 7: uint16(uint64(UintptrFromInt32(0) + 677)), + 8: uint16(uint64(UintptrFromInt32(0) + 642)), + 9: uint16(uint64(UintptrFromInt32(0) + 797)), + 10: uint16(uint64(UintptrFromInt32(0) + 817)), + 11: uint16(uint64(UintptrFromInt32(0) + 293)), + 12: uint16(uint64(UintptrFromInt32(0) + 241)), + 13: uint16(uint64(UintptrFromInt32(0) + 91)), + 14: uint16(uint64(UintptrFromInt32(0) + 834)), + 15: uint16(uint64(UintptrFromInt32(0) + 559)), + 16: uint16(uint64(UintptrFromInt32(0) + 255)), + 17: uint16(uint64(UintptrFromInt32(0) + 175)), + 18: uint16(uint64(UintptrFromInt32(0) + 339)), + 19: uint16(uint64(UintptrFromInt32(0) + 581)), + 20: uint16(uint64(UintptrFromInt32(0) + 596)), + 21: uint16(uint64(UintptrFromInt32(0) + 612)), + 22: uint16(uint64(UintptrFromInt32(0) + 660)), + 23: uint16(uint64(UintptrFromInt32(0) + 737)), + 24: uint16(uint64(UintptrFromInt32(0) + 767)), + 25: uint16(uint64(UintptrFromInt32(0) + 81)), + 26: uint16(uint64(UintptrFromInt32(0) + 627)), + 27: uint16(uint64(UintptrFromInt32(0) + 846)), + 28: uint16(uint64(UintptrFromInt32(0) + 217)), + 29: uint16(uint64(UintptrFromInt32(0) + 326)), + 30: uint16(uint64(UintptrFromInt32(0) + 357)), + 31: uint16(uint64(UintptrFromInt32(0) + 861)), + 32: uint16(uint64(UintptrFromInt32(0) + 511)), + 33: uint16(uint64(UintptrFromInt32(0) + 43)), + 34: uint16(uint64(UintptrFromInt32(0) + 56)), + 35: uint16(uint64(UintptrFromInt32(0) + 895)), + 36: uint16(uint64(UintptrFromInt32(0) + 719)), + 37: uint16(uint64(UintptrFromInt32(0) + 876)), + 38: uint16(uint64(UintptrFromInt32(0) + 986)), + 39: uint16(uint64(UintptrFromInt32(0) + 379)), + 40: uint16(uint64(UintptrFromInt32(0) + 700)), + 42: uint16(uint64(UintptrFromInt32(0) + 1011)), + 43: uint16(uint64(UintptrFromInt32(0) + 1038)), + 60: uint16(uint64(UintptrFromInt32(0) + 1057)), + 61: uint16(uint64(UintptrFromInt32(0) + 1077)), + 62: uint16(uint64(UintptrFromInt32(0) + 1095)), + 63: uint16(uint64(UintptrFromInt32(0) + 1110)), + 67: uint16(uint64(UintptrFromInt32(0) + 1135)), + 71: uint16(uint64(UintptrFromInt32(0) + 1157)), + 72: uint16(uint64(UintptrFromInt32(0) + 1803)), + 74: uint16(uint64(UintptrFromInt32(0) + 1172)), + 75: uint16(uint64(UintptrFromInt32(0) + 187)), + 77: uint16(uint64(UintptrFromInt32(0) + 1184)), + 84: uint16(uint64(UintptrFromInt32(0) + 21)), + 88: uint16(uint64(UintptrFromInt32(0) + 1213)), + 89: uint16(uint64(UintptrFromInt32(0) + 1226)), + 90: uint16(uint64(UintptrFromInt32(0) + 1255)), + 91: uint16(uint64(UintptrFromInt32(0) + 1273)), + 92: uint16(uint64(UintptrFromInt32(0) + 1304)), + 93: uint16(uint64(UintptrFromInt32(0) + 1327)), + 94: uint16(uint64(UintptrFromInt32(0) + 1350)), + 95: uint16(uint64(UintptrFromInt32(0) + 1376)), + 96: uint16(uint64(UintptrFromInt32(0) + 1390)), + 97: uint16(uint64(UintptrFromInt32(0) + 1420)), + 98: uint16(uint64(UintptrFromInt32(0) + 496)), + 99: uint16(uint64(UintptrFromInt32(0) + 1461)), + 100: uint16(uint64(UintptrFromInt32(0) + 1483)), + 101: uint16(uint64(UintptrFromInt32(0) + 1499)), + 102: uint16(uint64(UintptrFromInt32(0) + 1519)), + 103: uint16(uint64(UintptrFromInt32(0) + 1547)), + 104: uint16(uint64(UintptrFromInt32(0) + 399)), + 105: uint16(uint64(UintptrFromInt32(0) + 1566)), + 106: uint16(uint64(UintptrFromInt32(0) + 1592)), + 107: uint16(uint64(UintptrFromInt32(0) + 1612)), + 108: uint16(uint64(UintptrFromInt32(0) + 1633)), + 110: uint16(uint64(UintptrFromInt32(0) + 424)), + 111: uint16(uint64(UintptrFromInt32(0) + 444)), + 112: uint16(uint64(UintptrFromInt32(0) + 463)), + 113: uint16(uint64(UintptrFromInt32(0) + 476)), + 114: uint16(uint64(UintptrFromInt32(0) + 1667)), + 115: uint16(uint64(UintptrFromInt32(0) + 1697)), + 116: uint16(uint64(UintptrFromInt32(0) + 1719)), + 121: uint16(uint64(UintptrFromInt32(0) + 1737)), + 122: uint16(uint64(UintptrFromInt32(0) + 1754)), + 123: uint16(uint64(UintptrFromInt32(0) + 1769)), + 124: uint16(uint64(UintptrFromInt32(0) + 1785)), + 125: uint16(uint64(UintptrFromInt32(0) + 967)), + 126: uint16(uint64(UintptrFromInt32(0) + 1822)), + 127: uint16(uint64(UintptrFromInt32(0) + 1849)), + 128: uint16(uint64(UintptrFromInt32(0) + 1865)), + 129: uint16(uint64(UintptrFromInt32(0) + 1886)), + 130: uint16(uint64(UintptrFromInt32(0) + 947)), + 131: uint16(uint64(UintptrFromInt32(0) + 925)), +} + +func X__strerror_l(tls *TLS, e int32, loc Tlocale_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v e=%v loc=%v, (%v:)", tls, e, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + var s uintptr + _ = s + if Uint64FromInt32(e) >= Uint64FromInt64(264)/Uint64FromInt64(2) { + e = 0 + } + s = uintptr(unsafe.Pointer(&_errmsgstr)) + uintptr(_errmsgidx[e]) + return X__lctrans(tls, s, **(**uintptr)(__ccgo_up(loc + 5*8))) +} + +func Xstrerror(tls *TLS, e int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v e=%v, (%v:)", tls, e, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__strerror_l(tls, e, (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale) +} + +func Xstrerror_l(tls *TLS, e int32, loc Tlocale_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v e=%v loc=%v, (%v:)", tls, e, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__strerror_l(tls, e, loc) +} + +func X_Exit(tls *TLS, ec int32) { + if __ccgo_strace { + trc("tls=%v ec=%v, (%v:)", tls, ec, origin(2)) + } + X__syscall1(tls, int64(SYS_exit_group), int64(ec)) + for { + X__syscall1(tls, int64(SYS_exit), int64(ec)) + goto _1 + _1: + } +} + +func X__assert_fail(tls *TLS, expr uintptr, file uintptr, line int32, func1 uintptr) { + if __ccgo_strace { + trc("tls=%v expr=%v file=%v line=%v func1=%v, (%v:)", tls, expr, file, line, func1, origin(2)) + } + bp := tls.Alloc(48) + defer tls.Free(48) + Xfprintf(tls, uintptr(unsafe.Pointer(&X__stderr_FILE)), __ccgo_ts+212, VaList(bp+8, expr, file, func1, line)) + Xabort(tls) +} + +const COUNT = 32 + +var _funcs [32]uintptr +var _count int32 +var _lock [1]int32 + +func X__funcs_on_quick_exit(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + var func1 uintptr + var v1 int32 + _, _ = func1, v1 + ___lock(tls, uintptr(unsafe.Pointer(&_lock))) + for _count > 0 { + _count = _count - 1 + v1 = _count + func1 = _funcs[v1] + ___unlock(tls, uintptr(unsafe.Pointer(&_lock))) + (*(*func(*TLS))(unsafe.Pointer(&struct{ uintptr }{func1})))(tls) + ___lock(tls, uintptr(unsafe.Pointer(&_lock))) + } +} + +type t__ccgo_fp__Xat_quick_exit_0 = func(*TLS) + +func Xat_quick_exit(tls *TLS, __ccgo_fp_func uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v __ccgo_fp_func=%v, (%v:)", tls, __ccgo_fp_func, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v1 int32 + _, _ = r, v1 + r = 0 + ___lock(tls, uintptr(unsafe.Pointer(&_lock))) + if _count == int32(32) { + r = -int32(1) + } else { + v1 = _count + _count = _count + 1 + _funcs[v1] = __ccgo_fp_func + } + ___unlock(tls, uintptr(unsafe.Pointer(&_lock))) + return r +} + +func _dummy3(tls *TLS) { +} + +func Xquick_exit(tls *TLS, code int32) { + if __ccgo_strace { + trc("tls=%v code=%v, (%v:)", tls, code, origin(2)) + } + X__funcs_on_quick_exit(tls) + X_Exit(tls, code) +} + +func Xcreat(tls *TLS, filename uintptr, mode Tmode_t) (r int32) { + if __ccgo_strace { + trc("tls=%v filename=%v mode=%v, (%v:)", tls, filename, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + return Xopen(tls, filename, Int32FromInt32(O_CREAT)|Int32FromInt32(O_WRONLY)|Int32FromInt32(O_TRUNC), VaList(bp+8, mode)) +} + +func Xfcntl(tls *TLS, fd int32, cmd int32, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v cmd=%v va=%v, (%v:)", tls, fd, cmd, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ap Tva_list + var arg uint64 + var ret, ret1, v1 int32 + var _ /* ex at bp+0 */ Tf_owner_ex + _, _, _, _, _ = ap, arg, ret, ret1, v1 + ap = va + arg = VaUint64(&ap) + _ = ap + if cmd == int32(F_SETFL) { + arg = arg | uint64(O_LARGEFILE) + } + if cmd == int32(F_SETLKW) { + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_fcntl), int64(fd), int64(cmd), int64(uintptr(arg)), 0, 0, 0)))) + } + if cmd == int32(F_GETOWN) { + ret = int32(X__syscall3(tls, int64(SYS_fcntl), int64(fd), int64(Int32FromInt32(F_GETOWN_EX)), int64(bp))) + if ret == -int32(EINVAL) { + return int32(X__syscall3(tls, int64(SYS_fcntl), int64(fd), int64(cmd), int64(uintptr(arg)))) + } + if ret != 0 { + return int32(X__syscall_ret(tls, Uint64FromInt32(ret))) + } + if (**(**Tf_owner_ex)(__ccgo_up(bp))).Ftype1 == int32(F_OWNER_PGRP) { + v1 = -(**(**Tf_owner_ex)(__ccgo_up(bp))).Fpid + } else { + v1 = (**(**Tf_owner_ex)(__ccgo_up(bp))).Fpid + } + return v1 + } + if cmd == int32(F_DUPFD_CLOEXEC) { + ret1 = int32(X__syscall3(tls, int64(SYS_fcntl), int64(fd), int64(Int32FromInt32(F_DUPFD_CLOEXEC)), Int64FromUint64(arg))) + if ret1 != -int32(EINVAL) { + if ret1 >= 0 { + X__syscall3(tls, int64(SYS_fcntl), int64(ret1), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + } + return int32(X__syscall_ret(tls, Uint64FromInt32(ret1))) + } + ret1 = int32(X__syscall3(tls, int64(SYS_fcntl), int64(fd), int64(Int32FromInt32(F_DUPFD_CLOEXEC)), int64(Int32FromInt32(0)))) + if ret1 != -int32(EINVAL) { + if ret1 >= 0 { + X__syscall1(tls, int64(SYS_close), int64(ret1)) + } + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL)))) + } + ret1 = int32(X__syscall3(tls, int64(SYS_fcntl), int64(fd), int64(Int32FromInt32(F_DUPFD)), Int64FromUint64(arg))) + if ret1 >= 0 { + X__syscall3(tls, int64(SYS_fcntl), int64(ret1), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + } + return int32(X__syscall_ret(tls, Uint64FromInt32(ret1))) + } + switch cmd { + case int32(F_SETLK): + fallthrough + case int32(F_GETLK): + fallthrough + case int32(F_GETOWN_EX): + fallthrough + case int32(F_SETOWN_EX): + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_fcntl), int64(fd), int64(cmd), int64(uintptr(arg)))))) + default: + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_fcntl), int64(fd), int64(cmd), Int64FromUint64(arg))))) + } + return r +} + +func Xopen(tls *TLS, filename uintptr, flags int32, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v filename=%v flags=%v va=%v, (%v:)", tls, filename, flags, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var fd int32 + var mode Tmode_t + _, _, _ = ap, fd, mode + mode = uint32(0) + if flags&int32(O_CREAT) != 0 || flags&int32(O_TMPFILE) == int32(O_TMPFILE) { + ap = va + mode = VaUint32(&ap) + _ = ap + } + fd = int32(___syscall_cp(tls, int64(SYS_openat), int64(-Int32FromInt32(100)), int64(filename), int64(flags|Int32FromInt32(O_LARGEFILE)), Int64FromUint32(mode), 0, 0)) + if fd >= 0 && flags&int32(O_CLOEXEC) != 0 { + X__syscall3(tls, int64(SYS_fcntl), int64(fd), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + } + return int32(X__syscall_ret(tls, Uint64FromInt32(fd))) +} + +func Xopenat(tls *TLS, fd int32, filename uintptr, flags int32, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v filename=%v flags=%v va=%v, (%v:)", tls, fd, filename, flags, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var mode Tmode_t + _, _ = ap, mode + mode = uint32(0) + if flags&int32(O_CREAT) != 0 || flags&int32(O_TMPFILE) == int32(O_TMPFILE) { + ap = va + mode = VaUint32(&ap) + _ = ap + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_openat), int64(fd), int64(filename), int64(flags|Int32FromInt32(O_LARGEFILE)), Int64FromUint32(mode), 0, 0)))) +} + +func Xposix_fadvise(tls *TLS, fd int32, base Toff_t, len1 Toff_t, advice int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v base=%v len1=%v advice=%v, (%v:)", tls, fd, base, len1, advice, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(-X__syscall4(tls, int64(SYS_fadvise64), int64(fd), base, len1, int64(advice))) +} + +func Xposix_fallocate(tls *TLS, fd int32, base Toff_t, len1 Toff_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v base=%v len1=%v, (%v:)", tls, fd, base, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(-X__syscall4(tls, int64(SYS_fallocate), int64(fd), int64(Int32FromInt32(0)), base, len1)) +} + +const WCONTINUED = 8 +const WEXITED = 4 +const WNOWAIT = 16777216 +const WSTOPPED = 2 +const __WALL = 1073741824 +const __WCLONE = 2147483648 +const __WNOTHREAD = 536870912 + +type Tidtype_t = int32 + +const _P_ALL = 0 +const _P_PID = 1 +const _P_PGID = 2 +const _P_PIDFD = 3 +const F_APP = 128 +const F_EOF = 16 +const F_ERR = 32 +const F_NORD = 4 +const F_NOWR = 8 +const F_PERM = 1 +const F_SVB = 64 +const KMAX = 128 +const LDBL_EPSILON1 = 2.22044604925031308085e-16 +const LDBL_MAX1 = 1.79769313486231570815e+308 +const LDBL_MIN1 = 2.22507385850720138309e-308 +const LD_B1B_DIG = 2 +const LD_B1B_MAX = 254740991 +const MASK = 127 +const MAYBE_WAITERS = 1073741824 +const UNGET = 8 + +type TFILE = struct { + Fflags uint32 + Frpos uintptr + Frend uintptr + Fclose1 uintptr + Fwend uintptr + Fwpos uintptr + Fmustbezero_1 uintptr + Fwbase uintptr + Fread uintptr + Fwrite uintptr + Fseek uintptr + Fbuf uintptr + Fbuf_size Tsize_t + Fprev uintptr + Fnext uintptr + Ffd int32 + Fpipe_pid int32 + Flockcount int64 + Fmode int32 + Flock int32 + Flbf int32 + Fcookie uintptr + Foff Toff_t + Fgetln_buf uintptr + Fmustbezero_2 uintptr + Fshend uintptr + Fshlim Toff_t + Fshcnt Toff_t + Fprev_locked uintptr + Fnext_locked uintptr + Flocale uintptr +} + +type T_IO_FILE = TFILE + +func _scanexp(tls *TLS, f uintptr, pok int32) (r int64) { + var c, neg, x, v1 int32 + var y, v19 int64 + var v2, v3 uintptr + _, _, _, _, _, _, _, _ = c, neg, x, y, v1, v19, v2, v3 + neg = 0 + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v3 = f + 8 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + if c == int32('+') || c == int32('-') { + neg = BoolInt32(c == int32('-')) + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v3 = f + 8 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + if Uint32FromInt32(c-int32('0')) >= uint32(10) && pok != 0 { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + } + } + if Uint32FromInt32(c-int32('0')) >= uint32(10) { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + return -Int64FromInt64(0x7fffffffffffffff) - Int64FromInt32(1) + } + x = 0 + for { + if !(Uint32FromInt32(c-int32('0')) < uint32(10) && x < Int32FromInt32(INT_MAX)/Int32FromInt32(10)) { + break + } + x = int32(10)*x + c - int32('0') + goto _7 + _7: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v3 = f + 8 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + y = int64(x) + for { + if !(Uint32FromInt32(c-int32('0')) < uint32(10) && y < Int64FromInt64(0x7fffffffffffffff)/Int64FromInt32(100)) { + break + } + y = int64(10)*y + int64(c) - int64('0') + goto _11 + _11: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v3 = f + 8 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + for { + if !(Uint32FromInt32(c-int32('0')) < uint32(10)) { + break + } + goto _15 + _15: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v3 = f + 8 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + if neg != 0 { + v19 = -y + } else { + v19 = y + } + return v19 +} + +func _decfloat(tls *TLS, f uintptr, c int32, bits int32, emin int32, sign int32, pok int32) (r float64) { + bp := tls.Alloc(512) + defer tls.Free(512) + var a, bitlim, denormal, e2, emax, gotdig, gotrad, i, j, k, lnz, p10, rp, rpm9, sh, z, v2, v6 int32 + var bias, frac, y float64 + var carry, carry1, carry2, t, tmp, tmp2 Tuint32_t + var dc, e10, lrp int64 + var tmp1 Tuint64_t + var v3, v4 uintptr + var _ /* x at bp+0 */ [128]Tuint32_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = a, bias, bitlim, carry, carry1, carry2, dc, denormal, e10, e2, emax, frac, gotdig, gotrad, i, j, k, lnz, lrp, p10, rp, rpm9, sh, t, tmp, tmp1, tmp2, y, z, v2, v3, v4, v6 + lrp = 0 + dc = 0 + e10 = 0 + lnz = 0 + gotdig = 0 + gotrad = 0 + emax = -emin - bits + int32(3) + denormal = 0 + frac = Float64FromInt32(0) + bias = Float64FromInt32(0) + j = 0 + k = 0 + /* Don't let leading zeros consume buffer space */ + for { + if !(c == int32('0')) { + break + } + gotdig = int32(1) + goto _1 + _1: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v2 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v2 = X__shgetc(tls, f) + } + c = v2 + } + if c == int32('.') { + gotrad = int32(1) + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v2 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v2 = X__shgetc(tls, f) + } + c = v2 + for { + if !(c == int32('0')) { + break + } + gotdig = int32(1) + lrp = lrp - 1 + goto _5 + _5: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v2 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v2 = X__shgetc(tls, f) + } + c = v2 + } + } + (**(**[128]Tuint32_t)(__ccgo_up(bp)))[0] = uint32(0) + for { + if !(Uint32FromInt32(c-int32('0')) < uint32(10) || c == int32('.')) { + break + } + if c == int32('.') { + if gotrad != 0 { + break + } + gotrad = int32(1) + lrp = dc + } else { + if k < Int32FromInt32(KMAX)-Int32FromInt32(3) { + dc = dc + 1 + if c != int32('0') { + lnz = int32(dc) + } + if j != 0 { + (**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] = (**(**[128]Tuint32_t)(__ccgo_up(bp)))[k]*uint32(10) + Uint32FromInt32(c) - uint32('0') + } else { + (**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] = Uint32FromInt32(c - int32('0')) + } + j = j + 1 + v2 = j + if v2 == int32(9) { + k = k + 1 + j = 0 + } + gotdig = int32(1) + } else { + dc = dc + 1 + if c != int32('0') { + lnz = (Int32FromInt32(KMAX) - Int32FromInt32(4)) * Int32FromInt32(9) + **(**Tuint32_t)(__ccgo_up(bp + uintptr(Int32FromInt32(KMAX)-Int32FromInt32(4))*4)) |= uint32(1) + } + } + } + goto _12 + _12: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v2 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v2 = X__shgetc(tls, f) + } + c = v2 + } + if !(gotrad != 0) { + lrp = dc + } + if gotdig != 0 && c|int32(32) == int32('e') { + e10 = _scanexp(tls, f, pok) + if e10 == -Int64FromInt64(0x7fffffffffffffff)-Int64FromInt32(1) { + if pok != 0 { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + } else { + X__shlim(tls, f, int64(Int32FromInt32(0))) + return Float64FromInt32(0) + } + e10 = 0 + } + lrp = lrp + e10 + } else { + if c >= 0 { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + } + } + if !(gotdig != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + X__shlim(tls, f, int64(Int32FromInt32(0))) + return Float64FromInt32(0) + } + /* Handle zero specially to avoid nasty special cases later */ + if !((**(**[128]Tuint32_t)(__ccgo_up(bp)))[0] != 0) { + return float64(float64(sign) * float64(0)) + } + /* Optimize small integers (w/no exponent) and over/under-flow */ + if lrp == dc && dc < int64(10) && (bits > int32(30) || (**(**[128]Tuint32_t)(__ccgo_up(bp)))[0]>>bits == uint32(0)) { + return float64(float64(sign) * float64((**(**[128]Tuint32_t)(__ccgo_up(bp)))[0])) + } + if lrp > int64(-emin/int32(2)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ERANGE) + return float64(float64(float64(sign)*Float64FromFloat64(1.79769313486231570815e+308)) * Float64FromFloat64(1.79769313486231570815e+308)) + } + if lrp < int64(emin-Int32FromInt32(2)*Int32FromInt32(LDBL_MANT_DIG)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ERANGE) + return float64(float64(float64(sign)*Float64FromFloat64(2.22507385850720138309e-308)) * Float64FromFloat64(2.22507385850720138309e-308)) + } + /* Align incomplete final B1B digit */ + if j != 0 { + for { + if !(j < int32(9)) { + break + } + **(**Tuint32_t)(__ccgo_up(bp + uintptr(k)*4)) *= uint32(10) + goto _17 + _17: + ; + j = j + 1 + } + k = k + 1 + j = 0 + } + a = 0 + z = k + e2 = 0 + rp = int32(lrp) + /* Optimize small to mid-size integers (even in exp. notation) */ + if lnz < int32(9) && lnz <= rp && rp < int32(18) { + if rp == int32(9) { + return float64(float64(sign) * float64((**(**[128]Tuint32_t)(__ccgo_up(bp)))[0])) + } + if rp < int32(9) { + return float64(float64(sign)*float64((**(**[128]Tuint32_t)(__ccgo_up(bp)))[0])) / float64(_p10s[int32(8)-rp]) + } + bitlim = bits - int32(3)*(rp-Int32FromInt32(9)) + if bitlim > int32(30) || (**(**[128]Tuint32_t)(__ccgo_up(bp)))[0]>>bitlim == uint32(0) { + return float64(float64(float64(sign)*float64((**(**[128]Tuint32_t)(__ccgo_up(bp)))[0])) * float64(_p10s[rp-int32(10)])) + } + } + /* Drop trailing zeros */ + for { + if !!((**(**[128]Tuint32_t)(__ccgo_up(bp)))[z-int32(1)] != 0) { + break + } + goto _18 + _18: + ; + z = z - 1 + } + /* Align radix point to B1B digit boundary */ + if rp%int32(9) != 0 { + if rp >= 0 { + v2 = rp % int32(9) + } else { + v2 = rp%int32(9) + int32(9) + } + rpm9 = v2 + p10 = _p10s[int32(8)-rpm9] + carry = uint32(0) + k = a + for { + if !(k != z) { + break + } + tmp = (**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] % Uint32FromInt32(p10) + (**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] = (**(**[128]Tuint32_t)(__ccgo_up(bp)))[k]/Uint32FromInt32(p10) + carry + carry = Uint32FromInt32(int32(1000000000)/p10) * tmp + if k == a && !((**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] != 0) { + a = (a + int32(1)) & (Int32FromInt32(KMAX) - Int32FromInt32(1)) + rp = rp - int32(9) + } + goto _20 + _20: + ; + k = k + 1 + } + if carry != 0 { + v2 = z + z = z + 1 + (**(**[128]Tuint32_t)(__ccgo_up(bp)))[v2] = carry + } + rp = rp + (int32(9) - rpm9) + } + /* Upscale until desired number of bits are left of radix point */ + for rp < Int32FromInt32(9)*Int32FromInt32(LD_B1B_DIG) || rp == Int32FromInt32(9)*Int32FromInt32(LD_B1B_DIG) && (**(**[128]Tuint32_t)(__ccgo_up(bp)))[a] < _th[0] { + carry1 = uint32(0) + e2 = e2 - int32(29) + k = (z - int32(1)) & (Int32FromInt32(KMAX) - Int32FromInt32(1)) + for { + tmp1 = uint64((**(**[128]Tuint32_t)(__ccgo_up(bp)))[k])< uint64(1000000000) { + carry1 = uint32(tmp1 / uint64(1000000000)) + (**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] = uint32(tmp1 % uint64(1000000000)) + } else { + carry1 = uint32(0) + (**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] = uint32(tmp1) + } + if k == (z-int32(1))&(Int32FromInt32(KMAX)-Int32FromInt32(1)) && k != a && !((**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] != 0) { + z = k + } + if k == a { + break + } + goto _22 + _22: + ; + k = (k - int32(1)) & (Int32FromInt32(KMAX) - Int32FromInt32(1)) + } + if carry1 != 0 { + rp = rp + int32(9) + a = (a - int32(1)) & (Int32FromInt32(KMAX) - Int32FromInt32(1)) + if a == z { + z = (z - int32(1)) & (Int32FromInt32(KMAX) - Int32FromInt32(1)) + **(**Tuint32_t)(__ccgo_up(bp + uintptr((z-int32(1))&(Int32FromInt32(KMAX)-Int32FromInt32(1)))*4)) |= (**(**[128]Tuint32_t)(__ccgo_up(bp)))[z] + } + (**(**[128]Tuint32_t)(__ccgo_up(bp)))[a] = carry1 + } + } + /* Downscale until exactly number of bits are left of radix point */ + for { + carry2 = uint32(0) + sh = int32(1) + i = 0 + for { + if !(i < int32(LD_B1B_DIG)) { + break + } + k = (a + i) & (Int32FromInt32(KMAX) - Int32FromInt32(1)) + if k == z || (**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] < _th[i] { + i = int32(LD_B1B_DIG) + break + } + if (**(**[128]Tuint32_t)(__ccgo_up(bp)))[(a+i)&(Int32FromInt32(KMAX)-Int32FromInt32(1))] > _th[i] { + break + } + goto _24 + _24: + ; + i = i + 1 + } + if i == int32(LD_B1B_DIG) && rp == Int32FromInt32(9)*Int32FromInt32(LD_B1B_DIG) { + break + } + /* FIXME: find a way to compute optimal sh */ + if rp > Int32FromInt32(9)+Int32FromInt32(9)*Int32FromInt32(LD_B1B_DIG) { + sh = int32(9) + } + e2 = e2 + sh + k = a + for { + if !(k != z) { + break + } + tmp2 = (**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] & Uint32FromInt32(int32(1)<>sh + carry2 + carry2 = Uint32FromInt32(Int32FromInt32(1000000000)>>sh) * tmp2 + if k == a && !((**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] != 0) { + a = (a + int32(1)) & (Int32FromInt32(KMAX) - Int32FromInt32(1)) + i = i - 1 + rp = rp - int32(9) + } + goto _25 + _25: + ; + k = (k + int32(1)) & (Int32FromInt32(KMAX) - Int32FromInt32(1)) + } + if carry2 != 0 { + if (z+int32(1))&(Int32FromInt32(KMAX)-Int32FromInt32(1)) != a { + (**(**[128]Tuint32_t)(__ccgo_up(bp)))[z] = carry2 + z = (z + int32(1)) & (Int32FromInt32(KMAX) - Int32FromInt32(1)) + } else { + **(**Tuint32_t)(__ccgo_up(bp + uintptr((z-int32(1))&(Int32FromInt32(KMAX)-Int32FromInt32(1)))*4)) |= uint32(1) + } + } + goto _23 + _23: + } + /* Assemble desired bits into floating point variable */ + v2 = Int32FromInt32(0) + i = v2 + y = float64(v2) + for { + if !(i < int32(LD_B1B_DIG)) { + break + } + if (a+i)&(Int32FromInt32(KMAX)-Int32FromInt32(1)) == z { + v6 = (z + Int32FromInt32(1)) & (Int32FromInt32(KMAX) - Int32FromInt32(1)) + z = v6 + (**(**[128]Tuint32_t)(__ccgo_up(bp)))[v6-int32(1)] = uint32(0) + } + y = float64(Float64FromFloat64(1e+09)*y) + float64((**(**[128]Tuint32_t)(__ccgo_up(bp)))[(a+i)&(Int32FromInt32(KMAX)-Int32FromInt32(1))]) + goto _26 + _26: + ; + i = i + 1 + } + y = y * float64(sign) + /* Limit precision for denormal results */ + if bits > int32(LDBL_MANT_DIG)+e2-emin { + bits = int32(LDBL_MANT_DIG) + e2 - emin + if bits < 0 { + bits = 0 + } + denormal = int32(1) + } + /* Calculate bias term to force rounding, move out lower bits */ + if bits < int32(LDBL_MANT_DIG) { + bias = Xcopysignl(tls, Xscalbn(tls, Float64FromInt32(1), Int32FromInt32(2)*Int32FromInt32(LDBL_MANT_DIG)-bits-int32(1)), y) + frac = Xfmodl(tls, y, Xscalbn(tls, Float64FromInt32(1), int32(LDBL_MANT_DIG)-bits)) + y = y - frac + y = y + bias + } + /* Process tail of decimal input so it can affect rounding */ + if (a+i)&(Int32FromInt32(KMAX)-Int32FromInt32(1)) != z { + t = (**(**[128]Tuint32_t)(__ccgo_up(bp)))[(a+i)&(Int32FromInt32(KMAX)-Int32FromInt32(1))] + if t < uint32(500000000) && (t != 0 || (a+i+int32(1))&(Int32FromInt32(KMAX)-Int32FromInt32(1)) != z) { + frac = frac + float64(float64(0.25)*float64(sign)) + } else { + if t > uint32(500000000) { + frac = frac + float64(float64(0.75)*float64(sign)) + } else { + if t == uint32(500000000) { + if (a+i+int32(1))&(Int32FromInt32(KMAX)-Int32FromInt32(1)) == z { + frac = frac + float64(float64(0.5)*float64(sign)) + } else { + frac = frac + float64(float64(0.75)*float64(sign)) + } + } + } + } + if int32(LDBL_MANT_DIG)-bits >= int32(2) && !(Xfmodl(tls, frac, Float64FromInt32(1)) != 0) { + frac = frac + 1 + } + } + y = y + frac + y = y - bias + if (e2+int32(LDBL_MANT_DIG))&int32(INT_MAX) > emax-int32(5) { + if Xfabsl(tls, y) >= Float64FromInt32(2)/Float64FromFloat64(2.22044604925031308085e-16) { + if denormal != 0 && bits == int32(LDBL_MANT_DIG)+e2-emin { + denormal = 0 + } + y = y * Float64FromFloat64(0.5) + e2 = e2 + 1 + } + if e2+int32(LDBL_MANT_DIG) > emax || denormal != 0 && frac != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ERANGE) + } + } + return Xscalbnl(tls, y, e2) +} + +var _th = [2]Tuint32_t{ + 0: uint32(9007199), + 1: uint32(254740991), +} + +var _p10s = [8]int32{ + 0: int32(10), + 1: int32(100), + 2: int32(1000), + 3: int32(10000), + 4: int32(100000), + 5: int32(1000000), + 6: int32(10000000), + 7: int32(100000000), +} + +func _hexfloat(tls *TLS, f uintptr, bits int32, emin int32, sign int32, pok int32) (r float64) { + var bias, scale, y float64 + var c, d, gotdig, gotrad, gottail, v1 int32 + var dc, e2, rp int64 + var x Tuint32_t + var v2, v3 uintptr + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = bias, c, d, dc, e2, gotdig, gotrad, gottail, rp, scale, x, y, v1, v2, v3 + x = uint32(0) + y = Float64FromInt32(0) + scale = Float64FromInt32(1) + bias = Float64FromInt32(0) + gottail = 0 + gotrad = 0 + gotdig = 0 + rp = 0 + dc = 0 + e2 = 0 + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v3 = f + 8 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + /* Skip leading zeros */ + for { + if !(c == int32('0')) { + break + } + gotdig = int32(1) + goto _4 + _4: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v3 = f + 8 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + if c == int32('.') { + gotrad = int32(1) + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v3 = f + 8 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + /* Count zeros after the radix point before significand */ + rp = 0 + for { + if !(c == int32('0')) { + break + } + gotdig = int32(1) + goto _11 + _11: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v3 = f + 8 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + rp = rp - 1 + } + } + for { + if !(Uint32FromInt32(c-int32('0')) < uint32(10) || Uint32FromInt32(c|int32(32)-int32('a')) < uint32(6) || c == int32('.')) { + break + } + if c == int32('.') { + if gotrad != 0 { + break + } + rp = dc + gotrad = int32(1) + } else { + gotdig = int32(1) + if c > int32('9') { + d = c | int32(32) + int32(10) - int32('a') + } else { + d = c - int32('0') + } + if dc < int64(8) { + x = x*uint32(16) + Uint32FromInt32(d) + } else { + if dc < int64(Int32FromInt32(LDBL_MANT_DIG)/Int32FromInt32(4)+Int32FromInt32(1)) { + scale = scale / Float64FromInt32(16) + y = y + float64(float64(d)*scale) + } else { + if d != 0 && !(gottail != 0) { + y = y + float64(Float64FromFloat64(0.5)*scale) + gottail = int32(1) + } + } + } + dc = dc + 1 + } + goto _15 + _15: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v3 = f + 8 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + if !(gotdig != 0) { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + if pok != 0 { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + if gotrad != 0 { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + } + } else { + X__shlim(tls, f, int64(Int32FromInt32(0))) + } + return float64(float64(sign) * float64(0)) + } + if !(gotrad != 0) { + rp = dc + } + for dc < int64(8) { + x = x * uint32(16) + dc = dc + 1 + } + if c|int32(32) == int32('p') { + e2 = _scanexp(tls, f, pok) + if e2 == -Int64FromInt64(0x7fffffffffffffff)-Int64FromInt32(1) { + if pok != 0 { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + } else { + X__shlim(tls, f, int64(Int32FromInt32(0))) + return Float64FromInt32(0) + } + e2 = 0 + } + } else { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + } + e2 = e2 + (int64(4)*rp - int64(32)) + if !(x != 0) { + return float64(float64(sign) * float64(0)) + } + if e2 > int64(-emin) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ERANGE) + return float64(float64(float64(sign)*Float64FromFloat64(1.79769313486231570815e+308)) * Float64FromFloat64(1.79769313486231570815e+308)) + } + if e2 < int64(emin-Int32FromInt32(2)*Int32FromInt32(LDBL_MANT_DIG)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ERANGE) + return float64(float64(float64(sign)*Float64FromFloat64(2.22507385850720138309e-308)) * Float64FromFloat64(2.22507385850720138309e-308)) + } + for x < uint32(0x80000000) { + if y >= Float64FromFloat64(0.5) { + x = x + (x + uint32(1)) + y = y + (y - Float64FromInt32(1)) + } else { + x = x + x + y = y + y + } + e2 = e2 - 1 + } + if int64(bits) > int64(32)+e2-int64(emin) { + bits = int32(int64(32) + e2 - int64(emin)) + if bits < 0 { + bits = 0 + } + } + if bits < int32(LDBL_MANT_DIG) { + bias = Xcopysignl(tls, Xscalbn(tls, Float64FromInt32(1), Int32FromInt32(32)+Int32FromInt32(LDBL_MANT_DIG)-bits-int32(1)), float64(sign)) + } + if bits < int32(32) && y != 0 && !(x&Uint32FromInt32(1) != 0) { + x = x + 1 + y = Float64FromInt32(0) + } + y = bias + float64(float64(sign)*float64(x)) + float64(float64(sign)*y) + y = y - bias + if !(y != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ERANGE) + } + return Xscalbnl(tls, y, int32(e2)) +} + +func X__floatscan(tls *TLS, f uintptr, prec int32, pok int32) (r float64) { + if __ccgo_strace { + trc("tls=%v f=%v prec=%v pok=%v, (%v:)", tls, f, prec, pok, origin(2)) + defer func() { trc("-> %v", r) }() + } + var bits, c, emin, sign, v1, v2, v5, v6 int32 + var i, v27 Tsize_t + var v3, v4 uintptr + _, _, _, _, _, _, _, _, _, _, _, _ = bits, c, emin, i, sign, v1, v2, v27, v3, v4, v5, v6 + sign = int32(1) + switch prec { + case 0: + bits = int32(FLT_MANT_DIG) + emin = -int32(125) - bits + case int32(1): + bits = int32(DBL_MANT_DIG) + emin = -int32(1021) - bits + case int32(2): + bits = int32(LDBL_MANT_DIG) + emin = -int32(1021) - bits + default: + return Float64FromInt32(0) + } + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v2 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v2 = X__shgetc(tls, f) + } + v1 = v2 + c = v1 + v5 = v1 + v6 = BoolInt32(v5 == int32(' ') || Uint32FromInt32(v5)-uint32('\t') < uint32(5)) + goto _7 + _7: + if !(v6 != 0) { + break + } + } + if c == int32('+') || c == int32('-') { + sign = sign - int32(2)*BoolInt32(c == int32('-')) + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + i = uint64(0) + for { + if !(i < uint64(8) && c|int32(32) == Int32FromUint8(**(**uint8)(__ccgo_up(__ccgo_ts + 247 + uintptr(i))))) { + break + } + if i < uint64(7) { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + goto _11 + _11: + ; + i = i + 1 + } + if i == uint64(3) || i == uint64(8) || i > uint64(3) && pok != 0 { + if i != uint64(8) { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + if pok != 0 { + for { + if !(i > uint64(3)) { + break + } + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + goto _15 + _15: + ; + i = i - 1 + } + } + } + return float64(float32(sign) * X__builtin_inff(tls)) + } + if !(i != 0) { + i = uint64(0) + for { + if !(i < uint64(3) && c|int32(32) == Int32FromUint8(**(**uint8)(__ccgo_up(__ccgo_ts + 256 + uintptr(i))))) { + break + } + if i < uint64(2) { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + goto _16 + _16: + ; + i = i + 1 + } + } + if i == uint64(3) { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + if v1 != int32('(') { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + return float64(X__builtin_nanf(tls, __ccgo_ts)) + } + i = uint64(1) + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + if Uint32FromInt32(c-int32('0')) < uint32(10) || Uint32FromInt32(c-int32('A')) < uint32(26) || Uint32FromInt32(c-int32('a')) < uint32(26) || c == int32('_') { + goto _23 + } + if c == int32(')') { + return float64(X__builtin_nanf(tls, __ccgo_ts)) + } + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + if !(pok != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + X__shlim(tls, f, int64(Int32FromInt32(0))) + return Float64FromInt32(0) + } + for { + v27 = i + i = i - 1 + if !(v27 != 0) { + break + } + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + } + return float64(X__builtin_nanf(tls, __ccgo_ts)) + goto _23 + _23: + ; + i = i + 1 + } + return float64(X__builtin_nanf(tls, __ccgo_ts)) + } + if i != 0 { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + X__shlim(tls, f, int64(Int32FromInt32(0))) + return Float64FromInt32(0) + } + if c == int32('0') { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + if c|int32(32) == int32('x') { + return _hexfloat(tls, f, bits, emin, sign, pok) + } + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + c = int32('0') + } + return _decfloat(tls, f, c, bits, emin, sign, pok) +} + +// C documentation +// +// /* Lookup table for digit values. -1==255>=36 -> invalid */ +var _table6 = [257]uint8{ + 0: Uint8FromInt32(-Int32FromInt32(1)), + 1: Uint8FromInt32(-Int32FromInt32(1)), + 2: Uint8FromInt32(-Int32FromInt32(1)), + 3: Uint8FromInt32(-Int32FromInt32(1)), + 4: Uint8FromInt32(-Int32FromInt32(1)), + 5: Uint8FromInt32(-Int32FromInt32(1)), + 6: Uint8FromInt32(-Int32FromInt32(1)), + 7: Uint8FromInt32(-Int32FromInt32(1)), + 8: Uint8FromInt32(-Int32FromInt32(1)), + 9: Uint8FromInt32(-Int32FromInt32(1)), + 10: Uint8FromInt32(-Int32FromInt32(1)), + 11: Uint8FromInt32(-Int32FromInt32(1)), + 12: Uint8FromInt32(-Int32FromInt32(1)), + 13: Uint8FromInt32(-Int32FromInt32(1)), + 14: Uint8FromInt32(-Int32FromInt32(1)), + 15: Uint8FromInt32(-Int32FromInt32(1)), + 16: Uint8FromInt32(-Int32FromInt32(1)), + 17: Uint8FromInt32(-Int32FromInt32(1)), + 18: Uint8FromInt32(-Int32FromInt32(1)), + 19: Uint8FromInt32(-Int32FromInt32(1)), + 20: Uint8FromInt32(-Int32FromInt32(1)), + 21: Uint8FromInt32(-Int32FromInt32(1)), + 22: Uint8FromInt32(-Int32FromInt32(1)), + 23: Uint8FromInt32(-Int32FromInt32(1)), + 24: Uint8FromInt32(-Int32FromInt32(1)), + 25: Uint8FromInt32(-Int32FromInt32(1)), + 26: Uint8FromInt32(-Int32FromInt32(1)), + 27: Uint8FromInt32(-Int32FromInt32(1)), + 28: Uint8FromInt32(-Int32FromInt32(1)), + 29: Uint8FromInt32(-Int32FromInt32(1)), + 30: Uint8FromInt32(-Int32FromInt32(1)), + 31: Uint8FromInt32(-Int32FromInt32(1)), + 32: Uint8FromInt32(-Int32FromInt32(1)), + 33: Uint8FromInt32(-Int32FromInt32(1)), + 34: Uint8FromInt32(-Int32FromInt32(1)), + 35: Uint8FromInt32(-Int32FromInt32(1)), + 36: Uint8FromInt32(-Int32FromInt32(1)), + 37: Uint8FromInt32(-Int32FromInt32(1)), + 38: Uint8FromInt32(-Int32FromInt32(1)), + 39: Uint8FromInt32(-Int32FromInt32(1)), + 40: Uint8FromInt32(-Int32FromInt32(1)), + 41: Uint8FromInt32(-Int32FromInt32(1)), + 42: Uint8FromInt32(-Int32FromInt32(1)), + 43: Uint8FromInt32(-Int32FromInt32(1)), + 44: Uint8FromInt32(-Int32FromInt32(1)), + 45: Uint8FromInt32(-Int32FromInt32(1)), + 46: Uint8FromInt32(-Int32FromInt32(1)), + 47: Uint8FromInt32(-Int32FromInt32(1)), + 48: Uint8FromInt32(-Int32FromInt32(1)), + 50: uint8(1), + 51: uint8(2), + 52: uint8(3), + 53: uint8(4), + 54: uint8(5), + 55: uint8(6), + 56: uint8(7), + 57: uint8(8), + 58: uint8(9), + 59: Uint8FromInt32(-Int32FromInt32(1)), + 60: Uint8FromInt32(-Int32FromInt32(1)), + 61: Uint8FromInt32(-Int32FromInt32(1)), + 62: Uint8FromInt32(-Int32FromInt32(1)), + 63: Uint8FromInt32(-Int32FromInt32(1)), + 64: Uint8FromInt32(-Int32FromInt32(1)), + 65: Uint8FromInt32(-Int32FromInt32(1)), + 66: uint8(10), + 67: uint8(11), + 68: uint8(12), + 69: uint8(13), + 70: uint8(14), + 71: uint8(15), + 72: uint8(16), + 73: uint8(17), + 74: uint8(18), + 75: uint8(19), + 76: uint8(20), + 77: uint8(21), + 78: uint8(22), + 79: uint8(23), + 80: uint8(24), + 81: uint8(25), + 82: uint8(26), + 83: uint8(27), + 84: uint8(28), + 85: uint8(29), + 86: uint8(30), + 87: uint8(31), + 88: uint8(32), + 89: uint8(33), + 90: uint8(34), + 91: uint8(35), + 92: Uint8FromInt32(-Int32FromInt32(1)), + 93: Uint8FromInt32(-Int32FromInt32(1)), + 94: Uint8FromInt32(-Int32FromInt32(1)), + 95: Uint8FromInt32(-Int32FromInt32(1)), + 96: Uint8FromInt32(-Int32FromInt32(1)), + 97: Uint8FromInt32(-Int32FromInt32(1)), + 98: uint8(10), + 99: uint8(11), + 100: uint8(12), + 101: uint8(13), + 102: uint8(14), + 103: uint8(15), + 104: uint8(16), + 105: uint8(17), + 106: uint8(18), + 107: uint8(19), + 108: uint8(20), + 109: uint8(21), + 110: uint8(22), + 111: uint8(23), + 112: uint8(24), + 113: uint8(25), + 114: uint8(26), + 115: uint8(27), + 116: uint8(28), + 117: uint8(29), + 118: uint8(30), + 119: uint8(31), + 120: uint8(32), + 121: uint8(33), + 122: uint8(34), + 123: uint8(35), + 124: Uint8FromInt32(-Int32FromInt32(1)), + 125: Uint8FromInt32(-Int32FromInt32(1)), + 126: Uint8FromInt32(-Int32FromInt32(1)), + 127: Uint8FromInt32(-Int32FromInt32(1)), + 128: Uint8FromInt32(-Int32FromInt32(1)), + 129: Uint8FromInt32(-Int32FromInt32(1)), + 130: Uint8FromInt32(-Int32FromInt32(1)), + 131: Uint8FromInt32(-Int32FromInt32(1)), + 132: Uint8FromInt32(-Int32FromInt32(1)), + 133: Uint8FromInt32(-Int32FromInt32(1)), + 134: Uint8FromInt32(-Int32FromInt32(1)), + 135: Uint8FromInt32(-Int32FromInt32(1)), + 136: Uint8FromInt32(-Int32FromInt32(1)), + 137: Uint8FromInt32(-Int32FromInt32(1)), + 138: Uint8FromInt32(-Int32FromInt32(1)), + 139: Uint8FromInt32(-Int32FromInt32(1)), + 140: Uint8FromInt32(-Int32FromInt32(1)), + 141: Uint8FromInt32(-Int32FromInt32(1)), + 142: Uint8FromInt32(-Int32FromInt32(1)), + 143: Uint8FromInt32(-Int32FromInt32(1)), + 144: Uint8FromInt32(-Int32FromInt32(1)), + 145: Uint8FromInt32(-Int32FromInt32(1)), + 146: Uint8FromInt32(-Int32FromInt32(1)), + 147: Uint8FromInt32(-Int32FromInt32(1)), + 148: Uint8FromInt32(-Int32FromInt32(1)), + 149: Uint8FromInt32(-Int32FromInt32(1)), + 150: Uint8FromInt32(-Int32FromInt32(1)), + 151: Uint8FromInt32(-Int32FromInt32(1)), + 152: Uint8FromInt32(-Int32FromInt32(1)), + 153: Uint8FromInt32(-Int32FromInt32(1)), + 154: Uint8FromInt32(-Int32FromInt32(1)), + 155: Uint8FromInt32(-Int32FromInt32(1)), + 156: Uint8FromInt32(-Int32FromInt32(1)), + 157: Uint8FromInt32(-Int32FromInt32(1)), + 158: Uint8FromInt32(-Int32FromInt32(1)), + 159: Uint8FromInt32(-Int32FromInt32(1)), + 160: Uint8FromInt32(-Int32FromInt32(1)), + 161: Uint8FromInt32(-Int32FromInt32(1)), + 162: Uint8FromInt32(-Int32FromInt32(1)), + 163: Uint8FromInt32(-Int32FromInt32(1)), + 164: Uint8FromInt32(-Int32FromInt32(1)), + 165: Uint8FromInt32(-Int32FromInt32(1)), + 166: Uint8FromInt32(-Int32FromInt32(1)), + 167: Uint8FromInt32(-Int32FromInt32(1)), + 168: Uint8FromInt32(-Int32FromInt32(1)), + 169: Uint8FromInt32(-Int32FromInt32(1)), + 170: Uint8FromInt32(-Int32FromInt32(1)), + 171: Uint8FromInt32(-Int32FromInt32(1)), + 172: Uint8FromInt32(-Int32FromInt32(1)), + 173: Uint8FromInt32(-Int32FromInt32(1)), + 174: Uint8FromInt32(-Int32FromInt32(1)), + 175: Uint8FromInt32(-Int32FromInt32(1)), + 176: Uint8FromInt32(-Int32FromInt32(1)), + 177: Uint8FromInt32(-Int32FromInt32(1)), + 178: Uint8FromInt32(-Int32FromInt32(1)), + 179: Uint8FromInt32(-Int32FromInt32(1)), + 180: Uint8FromInt32(-Int32FromInt32(1)), + 181: Uint8FromInt32(-Int32FromInt32(1)), + 182: Uint8FromInt32(-Int32FromInt32(1)), + 183: Uint8FromInt32(-Int32FromInt32(1)), + 184: Uint8FromInt32(-Int32FromInt32(1)), + 185: Uint8FromInt32(-Int32FromInt32(1)), + 186: Uint8FromInt32(-Int32FromInt32(1)), + 187: Uint8FromInt32(-Int32FromInt32(1)), + 188: Uint8FromInt32(-Int32FromInt32(1)), + 189: Uint8FromInt32(-Int32FromInt32(1)), + 190: Uint8FromInt32(-Int32FromInt32(1)), + 191: Uint8FromInt32(-Int32FromInt32(1)), + 192: Uint8FromInt32(-Int32FromInt32(1)), + 193: Uint8FromInt32(-Int32FromInt32(1)), + 194: Uint8FromInt32(-Int32FromInt32(1)), + 195: Uint8FromInt32(-Int32FromInt32(1)), + 196: Uint8FromInt32(-Int32FromInt32(1)), + 197: Uint8FromInt32(-Int32FromInt32(1)), + 198: Uint8FromInt32(-Int32FromInt32(1)), + 199: Uint8FromInt32(-Int32FromInt32(1)), + 200: Uint8FromInt32(-Int32FromInt32(1)), + 201: Uint8FromInt32(-Int32FromInt32(1)), + 202: Uint8FromInt32(-Int32FromInt32(1)), + 203: Uint8FromInt32(-Int32FromInt32(1)), + 204: Uint8FromInt32(-Int32FromInt32(1)), + 205: Uint8FromInt32(-Int32FromInt32(1)), + 206: Uint8FromInt32(-Int32FromInt32(1)), + 207: Uint8FromInt32(-Int32FromInt32(1)), + 208: Uint8FromInt32(-Int32FromInt32(1)), + 209: Uint8FromInt32(-Int32FromInt32(1)), + 210: Uint8FromInt32(-Int32FromInt32(1)), + 211: Uint8FromInt32(-Int32FromInt32(1)), + 212: Uint8FromInt32(-Int32FromInt32(1)), + 213: Uint8FromInt32(-Int32FromInt32(1)), + 214: Uint8FromInt32(-Int32FromInt32(1)), + 215: Uint8FromInt32(-Int32FromInt32(1)), + 216: Uint8FromInt32(-Int32FromInt32(1)), + 217: Uint8FromInt32(-Int32FromInt32(1)), + 218: Uint8FromInt32(-Int32FromInt32(1)), + 219: Uint8FromInt32(-Int32FromInt32(1)), + 220: Uint8FromInt32(-Int32FromInt32(1)), + 221: Uint8FromInt32(-Int32FromInt32(1)), + 222: Uint8FromInt32(-Int32FromInt32(1)), + 223: Uint8FromInt32(-Int32FromInt32(1)), + 224: Uint8FromInt32(-Int32FromInt32(1)), + 225: Uint8FromInt32(-Int32FromInt32(1)), + 226: Uint8FromInt32(-Int32FromInt32(1)), + 227: Uint8FromInt32(-Int32FromInt32(1)), + 228: Uint8FromInt32(-Int32FromInt32(1)), + 229: Uint8FromInt32(-Int32FromInt32(1)), + 230: Uint8FromInt32(-Int32FromInt32(1)), + 231: Uint8FromInt32(-Int32FromInt32(1)), + 232: Uint8FromInt32(-Int32FromInt32(1)), + 233: Uint8FromInt32(-Int32FromInt32(1)), + 234: Uint8FromInt32(-Int32FromInt32(1)), + 235: Uint8FromInt32(-Int32FromInt32(1)), + 236: Uint8FromInt32(-Int32FromInt32(1)), + 237: Uint8FromInt32(-Int32FromInt32(1)), + 238: Uint8FromInt32(-Int32FromInt32(1)), + 239: Uint8FromInt32(-Int32FromInt32(1)), + 240: Uint8FromInt32(-Int32FromInt32(1)), + 241: Uint8FromInt32(-Int32FromInt32(1)), + 242: Uint8FromInt32(-Int32FromInt32(1)), + 243: Uint8FromInt32(-Int32FromInt32(1)), + 244: Uint8FromInt32(-Int32FromInt32(1)), + 245: Uint8FromInt32(-Int32FromInt32(1)), + 246: Uint8FromInt32(-Int32FromInt32(1)), + 247: Uint8FromInt32(-Int32FromInt32(1)), + 248: Uint8FromInt32(-Int32FromInt32(1)), + 249: Uint8FromInt32(-Int32FromInt32(1)), + 250: Uint8FromInt32(-Int32FromInt32(1)), + 251: Uint8FromInt32(-Int32FromInt32(1)), + 252: Uint8FromInt32(-Int32FromInt32(1)), + 253: Uint8FromInt32(-Int32FromInt32(1)), + 254: Uint8FromInt32(-Int32FromInt32(1)), + 255: Uint8FromInt32(-Int32FromInt32(1)), + 256: Uint8FromInt32(-Int32FromInt32(1)), +} + +func X__intscan(tls *TLS, f uintptr, base uint32, pok int32, lim uint64) (r uint64) { + if __ccgo_strace { + trc("tls=%v f=%v base=%v pok=%v lim=%v, (%v:)", tls, f, base, pok, lim, origin(2)) + defer func() { trc("-> %v", r) }() + } + var bs, c, neg, v1, v2, v5, v6 int32 + var val, v3, v4 uintptr + var x uint32 + var y uint64 + _, _, _, _, _, _, _, _, _, _, _, _ = bs, c, neg, val, x, y, v1, v2, v3, v4, v5, v6 + val = uintptr(unsafe.Pointer(&_table6)) + uintptr(1) + neg = 0 + if base > uint32(36) || base == uint32(1) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uint64(0) + } + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v2 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v2 = X__shgetc(tls, f) + } + v1 = v2 + c = v1 + v5 = v1 + v6 = BoolInt32(v5 == int32(' ') || Uint32FromInt32(v5)-uint32('\t') < uint32(5)) + goto _7 + _7: + if !(v6 != 0) { + break + } + } + if c == int32('+') || c == int32('-') { + neg = -BoolInt32(c == int32('-')) + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + if (base == uint32(0) || base == uint32(16)) && c == int32('0') { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + if c|int32(32) == int32('x') { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + if Int32FromUint8(**(**uint8)(__ccgo_up(val + uintptr(c)))) >= int32(16) { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + if pok != 0 { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + } else { + X__shlim(tls, f, int64(Int32FromInt32(0))) + } + return uint64(0) + } + base = uint32(16) + } else { + if base == uint32(0) { + base = uint32(8) + } + } + } else { + if base == uint32(0) { + base = uint32(10) + } + if uint32(**(**uint8)(__ccgo_up(val + uintptr(c)))) >= base { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + X__shlim(tls, f, int64(Int32FromInt32(0))) + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uint64(0) + } + } + if base == uint32(10) { + x = uint32(0) + for { + if !(Uint32FromInt32(c-int32('0')) < uint32(10) && x <= Uint32FromUint32(0xffffffff)/Uint32FromInt32(10)-Uint32FromInt32(1)) { + break + } + x = x*uint32(10) + Uint32FromInt32(c-Int32FromUint8('0')) + goto _17 + _17: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + y = uint64(x) + for { + if !(Uint32FromInt32(c-int32('0')) < uint32(10) && y <= (Uint64FromUint64(2)*Uint64FromInt64(0x7fffffffffffffff)+Uint64FromInt32(1))/Uint64FromInt32(10) && uint64(10)*y <= Uint64FromUint64(2)*Uint64FromInt64(0x7fffffffffffffff)+Uint64FromInt32(1)-Uint64FromInt32(c-Int32FromUint8('0'))) { + break + } + y = y*uint64(10) + Uint64FromInt32(c-Int32FromUint8('0')) + goto _21 + _21: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + if Uint32FromInt32(c-int32('0')) >= uint32(10) { + goto done + } + } else { + if !(base&(base-Uint32FromInt32(1)) != 0) { + bs = Int32FromUint8(**(**uint8)(__ccgo_up(__ccgo_ts + 260 + uintptr(uint32(0x17)*base>>int32(5)&uint32(7))))) + x = uint32(0) + for { + if !(uint32(**(**uint8)(__ccgo_up(val + uintptr(c)))) < base && x <= Uint32FromUint32(0xffffffff)/Uint32FromInt32(32)) { + break + } + x = x<>bs) { + break + } + y = y<= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + if y >= lim { + if !(lim&Uint64FromInt32(1) != 0) && !(neg != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ERANGE) + return lim - uint64(1) + } else { + if y > lim { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ERANGE) + return lim + } + } + } + return y ^ Uint64FromInt32(neg) - Uint64FromInt32(neg) +} + +func X__procfdname(tls *TLS, buf uintptr, fd uint32) { + if __ccgo_strace { + trc("tls=%v buf=%v fd=%v, (%v:)", tls, buf, fd, origin(2)) + } + var i, j, v5 uint32 + var v2 uint8 + _, _, _, _ = i, j, v2, v5 + i = uint32(0) + for { + v2 = **(**uint8)(__ccgo_up(__ccgo_ts + 269 + uintptr(i))) + **(**uint8)(__ccgo_up(buf + uintptr(i))) = v2 + if !(v2 != 0) { + break + } + goto _1 + _1: + ; + i = i + 1 + } + if !(fd != 0) { + **(**uint8)(__ccgo_up(buf + uintptr(i))) = uint8('0') + **(**uint8)(__ccgo_up(buf + uintptr(i+uint32(1)))) = uint8(0) + return + } + j = fd + for { + if !(j != 0) { + break + } + goto _3 + _3: + ; + j = j / uint32(10) + i = i + 1 + } + **(**uint8)(__ccgo_up(buf + uintptr(i))) = uint8(0) + for { + if !(fd != 0) { + break + } + i = i - 1 + v5 = i + **(**uint8)(__ccgo_up(buf + uintptr(v5))) = uint8(uint32('0') + fd%uint32(10)) + goto _4 + _4: + ; + fd = fd / uint32(10) + } +} + +/* The shcnt field stores the number of bytes read so far, offset by + * the value of buf-rpos at the last function call (__shlim or __shgetc), + * so that between calls the inline shcnt macro can add rpos-buf to get + * the actual count. */ + +func X__shlim(tls *TLS, f uintptr, lim Toff_t) { + if __ccgo_strace { + trc("tls=%v f=%v lim=%v, (%v:)", tls, f, lim, origin(2)) + } + (*TFILE)(unsafe.Pointer(f)).Fshlim = lim + (*TFILE)(unsafe.Pointer(f)).Fshcnt = int64((*TFILE)(unsafe.Pointer(f)).Fbuf) - int64((*TFILE)(unsafe.Pointer(f)).Frpos) + /* If lim is nonzero, rend must be a valid pointer. */ + if lim != 0 && int64((*TFILE)(unsafe.Pointer(f)).Frend)-int64((*TFILE)(unsafe.Pointer(f)).Frpos) > lim { + (*TFILE)(unsafe.Pointer(f)).Fshend = (*TFILE)(unsafe.Pointer(f)).Frpos + uintptr(lim) + } else { + (*TFILE)(unsafe.Pointer(f)).Fshend = (*TFILE)(unsafe.Pointer(f)).Frend + } +} + +func X__shgetc(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var c, v1 int32 + var cnt Toff_t + var v2 bool + _, _, _, _ = c, cnt, v1, v2 + cnt = (*TFILE)(unsafe.Pointer(f)).Fshcnt + (int64((*TFILE)(unsafe.Pointer(f)).Frpos) - int64((*TFILE)(unsafe.Pointer(f)).Fbuf)) + if v2 = (*TFILE)(unsafe.Pointer(f)).Fshlim != 0 && cnt >= (*TFILE)(unsafe.Pointer(f)).Fshlim; !v2 { + v1 = X__uflow(tls, f) + c = v1 + } + if v2 || v1 < 0 { + (*TFILE)(unsafe.Pointer(f)).Fshcnt = int64((*TFILE)(unsafe.Pointer(f)).Fbuf) - int64((*TFILE)(unsafe.Pointer(f)).Frpos) + cnt + (*TFILE)(unsafe.Pointer(f)).Fshend = (*TFILE)(unsafe.Pointer(f)).Frpos + (*TFILE)(unsafe.Pointer(f)).Fshlim = int64(-int32(1)) + return -int32(1) + } + cnt = cnt + 1 + if (*TFILE)(unsafe.Pointer(f)).Fshlim != 0 && int64((*TFILE)(unsafe.Pointer(f)).Frend)-int64((*TFILE)(unsafe.Pointer(f)).Frpos) > (*TFILE)(unsafe.Pointer(f)).Fshlim-cnt { + (*TFILE)(unsafe.Pointer(f)).Fshend = (*TFILE)(unsafe.Pointer(f)).Frpos + uintptr((*TFILE)(unsafe.Pointer(f)).Fshlim-cnt) + } else { + (*TFILE)(unsafe.Pointer(f)).Fshend = (*TFILE)(unsafe.Pointer(f)).Frend + } + (*TFILE)(unsafe.Pointer(f)).Fshcnt = int64((*TFILE)(unsafe.Pointer(f)).Fbuf) - int64((*TFILE)(unsafe.Pointer(f)).Frpos) + cnt + if (*TFILE)(unsafe.Pointer(f)).Frpos <= (*TFILE)(unsafe.Pointer(f)).Fbuf { + **(**uint8)(__ccgo_up((*TFILE)(unsafe.Pointer(f)).Frpos + uintptr(-Int32FromInt32(1)))) = Uint8FromInt32(c) + } + return c +} + +func X__syscall_ret(tls *TLS, r uint64) (r1 int64) { + if __ccgo_strace { + trc("tls=%v r=%v, (%v:)", tls, r, origin(2)) + defer func() { trc("-> %v", r1) }() + } + if r > -Uint64FromUint64(4096) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = Int32FromUint64(-r) + return int64(-int32(1)) + } + return Int64FromUint64(r) +} + +const OK_BINDS = 1030 +const OK_TYPES = 39 + +type TElf_Symndx = uint32 + +type Tdl_phdr_info = struct { + Fdlpi_addr TElf64_Addr + Fdlpi_name uintptr + Fdlpi_phdr uintptr + Fdlpi_phnum TElf64_Half + Fdlpi_adds uint64 + Fdlpi_subs uint64 + Fdlpi_tls_modid Tsize_t + Fdlpi_tls_data uintptr +} + +type Tlink_map = struct { + Fl_addr TElf64_Addr + Fl_name uintptr + Fl_ld uintptr + Fl_next uintptr + Fl_prev uintptr +} + +type Tr_debug = struct { + Fr_version int32 + Fr_map uintptr + Fr_brk TElf64_Addr + Fr_state int32 + Fr_ldbase TElf64_Addr +} + +const _RT_CONSISTENT = 0 +const _RT_ADD = 1 +const _RT_DELETE = 2 + +type TEhdr = struct { + Fe_ident [16]uint8 + Fe_type TElf64_Half + Fe_machine TElf64_Half + Fe_version TElf64_Word + Fe_entry TElf64_Addr + Fe_phoff TElf64_Off + Fe_shoff TElf64_Off + Fe_flags TElf64_Word + Fe_ehsize TElf64_Half + Fe_phentsize TElf64_Half + Fe_phnum TElf64_Half + Fe_shentsize TElf64_Half + Fe_shnum TElf64_Half + Fe_shstrndx TElf64_Half +} + +type TPhdr = struct { + Fp_type TElf64_Word + Fp_flags TElf64_Word + Fp_offset TElf64_Off + Fp_vaddr TElf64_Addr + Fp_paddr TElf64_Addr + Fp_filesz TElf64_Xword + Fp_memsz TElf64_Xword + Fp_align TElf64_Xword +} + +type TSym = struct { + Fst_name TElf64_Word + Fst_info uint8 + Fst_other uint8 + Fst_shndx TElf64_Section + Fst_value TElf64_Addr + Fst_size TElf64_Xword +} + +type TVerdef = struct { + Fvd_version TElf64_Half + Fvd_flags TElf64_Half + Fvd_ndx TElf64_Half + Fvd_cnt TElf64_Half + Fvd_hash TElf64_Word + Fvd_aux TElf64_Word + Fvd_next TElf64_Word +} + +type TVerdaux = struct { + Fvda_name TElf64_Word + Fvda_next TElf64_Word +} + +func _checkver(tls *TLS, def uintptr, vsym int32, vername uintptr, strings uintptr) (r int32) { + var aux uintptr + _ = aux + vsym = vsym & int32(0x7fff) + for { + if !(Int32FromUint16((*TVerdef)(unsafe.Pointer(def)).Fvd_flags)&Int32FromInt32(VER_FLG_BASE) != 0) && Int32FromUint16((*TVerdef)(unsafe.Pointer(def)).Fvd_ndx)&int32(0x7fff) == vsym { + break + } + if (*TVerdef)(unsafe.Pointer(def)).Fvd_next == uint32(0) { + return 0 + } + def = def + uintptr((*TVerdef)(unsafe.Pointer(def)).Fvd_next) + goto _1 + _1: + } + aux = def + uintptr((*TVerdef)(unsafe.Pointer(def)).Fvd_aux) + return BoolInt32(!(Xstrcmp(tls, vername, strings+uintptr((*TVerdaux)(unsafe.Pointer(aux)).Fvda_name)) != 0)) +} + +func X__vdsosym(tls *TLS, vername uintptr, name uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v vername=%v name=%v, (%v:)", tls, vername, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + var base, i Tsize_t + var dynv, eh, hashtab, p, ph, strings, syms, verdef, versym uintptr + _, _, _, _, _, _, _, _, _, _, _ = base, dynv, eh, hashtab, i, p, ph, strings, syms, verdef, versym + i = uint64(0) + for { + if !(**(**Tsize_t)(__ccgo_up(X__libc.Fauxv + uintptr(i)*8)) != uint64(AT_SYSINFO_EHDR)) { + break + } + if !(**(**Tsize_t)(__ccgo_up(X__libc.Fauxv + uintptr(i)*8)) != 0) { + return uintptr(0) + } + goto _1 + _1: + ; + i = i + uint64(2) + } + if !(**(**Tsize_t)(__ccgo_up(X__libc.Fauxv + uintptr(i+uint64(1))*8)) != 0) { + return uintptr(0) + } + eh = uintptr(**(**Tsize_t)(__ccgo_up(X__libc.Fauxv + uintptr(i+uint64(1))*8))) + ph = eh + uintptr((*TEhdr)(unsafe.Pointer(eh)).Fe_phoff) + dynv = uintptr(0) + base = Uint64FromInt32(-Int32FromInt32(1)) + i = uint64(0) + for { + if !(i < uint64((*TEhdr)(unsafe.Pointer(eh)).Fe_phnum)) { + break + } + if (*TPhdr)(unsafe.Pointer(ph)).Fp_type == uint32(PT_LOAD) { + base = uint64(eh) + (*TPhdr)(unsafe.Pointer(ph)).Fp_offset - (*TPhdr)(unsafe.Pointer(ph)).Fp_vaddr + } else { + if (*TPhdr)(unsafe.Pointer(ph)).Fp_type == uint32(PT_DYNAMIC) { + dynv = eh + uintptr((*TPhdr)(unsafe.Pointer(ph)).Fp_offset) + } + } + goto _2 + _2: + ; + i = i + 1 + ph = ph + uintptr((*TEhdr)(unsafe.Pointer(eh)).Fe_phentsize) + } + if !(dynv != 0) || base == Uint64FromInt32(-Int32FromInt32(1)) { + return uintptr(0) + } + strings = uintptr(0) + syms = uintptr(0) + hashtab = uintptr(0) + versym = uintptr(0) + verdef = uintptr(0) + i = uint64(0) + for { + if !(**(**Tsize_t)(__ccgo_up(dynv + uintptr(i)*8)) != 0) { + break + } + p = uintptr(base + **(**Tsize_t)(__ccgo_up(dynv + uintptr(i+uint64(1))*8))) + switch **(**Tsize_t)(__ccgo_up(dynv + uintptr(i)*8)) { + case uint64(DT_STRTAB): + strings = p + case uint64(DT_SYMTAB): + syms = p + case uint64(DT_HASH): + hashtab = p + case uint64(DT_VERSYM): + versym = p + case uint64(DT_VERDEF): + verdef = p + break + } + goto _3 + _3: + ; + i = i + uint64(2) + } + if !(strings != 0) || !(syms != 0) || !(hashtab != 0) { + return uintptr(0) + } + if !(verdef != 0) { + versym = uintptr(0) + } + i = uint64(0) + for { + if !(i < uint64(**(**TElf_Symndx)(__ccgo_up(hashtab + 1*4)))) { + break + } + if !(Int32FromInt32(1)<<(Int32FromUint8((**(**TSym)(__ccgo_up(syms + uintptr(i)*24))).Fst_info)&Int32FromInt32(0xf))&(Int32FromInt32(1)<>Int32FromInt32(4))&(Int32FromInt32(1)< %v", r) }() + } + bp := tls.Alloc(128) + defer tls.Free(128) + var _ /* st at bp+0 */ Tstat + if Xstat(tls, path, bp) < 0 { + return -int32(1) + } + return Int32FromUint64((**(**Tstat)(__ccgo_up(bp))).Fst_ino&Uint64FromInt32(0xffff) | (**(**Tstat)(__ccgo_up(bp))).Fst_dev&Uint64FromInt32(0xff)< %v", r1) }() + } + var r int32 + _ = r + r = int32(X__syscall3(tls, int64(SYS_msgctl), int64(q), int64(cmd & ^(Int32FromInt32(IPC_STAT)&Int32FromInt32(0x100)) | Int32FromInt32(IPC_64)), int64(buf))) + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func Xmsgget(tls *TLS, k Tkey_t, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v k=%v flag=%v, (%v:)", tls, k, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_msgget), int64(k), int64(flag))))) +} + +func Xmsgrcv(tls *TLS, q int32, m uintptr, len1 Tsize_t, type1 int64, flag int32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v q=%v m=%v len1=%v type1=%v flag=%v, (%v:)", tls, q, m, len1, type1, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_msgrcv), int64(q), int64(m), Int64FromUint64(len1), type1, int64(flag), 0))) +} + +func Xmsgsnd(tls *TLS, q int32, m uintptr, len1 Tsize_t, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v q=%v m=%v len1=%v flag=%v, (%v:)", tls, q, m, len1, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_msgsnd), int64(q), int64(m), Int64FromUint64(len1), int64(flag), 0, 0)))) +} + +const GETALL = 13 +const GETNCNT = 14 +const GETPID = 11 +const GETVAL = 12 +const GETZCNT = 15 +const SEM_INFO = 19 +const SEM_STAT = 18 +const SEM_STAT_ANY = 20 +const SEM_UNDO = 4096 +const SETALL = 17 +const SETVAL = 16 +const _SEM_SEMUN_UNDEFINED = 1 + +type Tsemid_ds = struct { + Fsem_perm Tipc_perm + Fsem_otime Ttime_t + Fsem_ctime Ttime_t + Fsem_nsems uint16 + F__sem_nsems_pad [6]uint8 + F__unused3 int64 + F__unused4 int64 +} + +type Tseminfo = struct { + Fsemmap int32 + Fsemmni int32 + Fsemmns int32 + Fsemmnu int32 + Fsemmsl int32 + Fsemopm int32 + Fsemume int32 + Fsemusz int32 + Fsemvmx int32 + Fsemaem int32 +} + +type Tsembuf = struct { + Fsem_num uint16 + Fsem_op int16 + Fsem_flg int16 +} + +type Tsemun = struct { + Fbuf [0]uintptr + Farray [0]uintptr + Fval int32 + F__ccgo_pad3 [4]byte +} + +func Xsemctl(tls *TLS, id int32, num int32, cmd int32, va uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v id=%v num=%v cmd=%v va=%v, (%v:)", tls, id, num, cmd, va, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ap Tva_list + var r int32 + var _ /* arg at bp+0 */ Tsemun + _, _ = ap, r + *(*Tsemun)(unsafe.Pointer(bp)) = Tsemun{} + *(*int32)(unsafe.Pointer(bp)) = 0 + switch cmd & ^(Int32FromInt32(IPC_STAT) & Int32FromInt32(0x100)) { + case int32(SETVAL): + fallthrough + case int32(GETALL): + fallthrough + case int32(SETALL): + fallthrough + case int32(IPC_SET): + fallthrough + case int32(IPC_INFO): + fallthrough + case int32(SEM_INFO): + fallthrough + case Int32FromInt32(IPC_STAT) & ^(Int32FromInt32(IPC_STAT) & Int32FromInt32(0x100)): + fallthrough + case (Int32FromInt32(18) | Int32FromInt32(IPC_STAT)&Int32FromInt32(0x100)) & ^(Int32FromInt32(IPC_STAT) & Int32FromInt32(0x100)): + fallthrough + case (Int32FromInt32(20) | Int32FromInt32(IPC_STAT)&Int32FromInt32(0x100)) & ^(Int32FromInt32(IPC_STAT) & Int32FromInt32(0x100)): + ap = va + **(**Tsemun)(__ccgo_up(bp)) = *(*Tsemun)(unsafe.Pointer(VaOther(&ap, 8))) + _ = ap + } + r = int32(X__syscall4(tls, int64(SYS_semctl), int64(id), int64(num), int64(cmd & ^(Int32FromInt32(IPC_STAT)&Int32FromInt32(0x100)) | Int32FromInt32(IPC_64)), int64(*(*uintptr)(unsafe.Pointer(bp))))) + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func Xsemget(tls *TLS, key Tkey_t, n int32, fl int32) (r int32) { + if __ccgo_strace { + trc("tls=%v key=%v n=%v fl=%v, (%v:)", tls, key, n, fl, origin(2)) + defer func() { trc("-> %v", r) }() + } + /* The kernel uses the wrong type for the sem_nsems member + * of struct semid_ds, and thus might not check that the + * n fits in the correct (per POSIX) userspace type, so + * we have to check here. */ + if n > int32(USHRT_MAX) { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL)))) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_semget), int64(key), int64(n), int64(fl))))) +} + +func Xsemop(tls *TLS, id int32, buf uintptr, n Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v id=%v buf=%v n=%v, (%v:)", tls, id, buf, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_semop), int64(id), int64(buf), Int64FromUint64(n))))) +} + +const NO_TIME32 = 0 +const __key = 0 +const __seq = 0 + +type Tipc_perm1 = struct { + Fkey Tkey_t + Fuid Tuid_t + Fgid Tgid_t + Fcuid Tuid_t + Fcgid Tgid_t + Fmode Tmode_t + Fseq int32 + F__pad1 int64 + F__pad2 int64 +} + +type Tsemid_ds1 = struct { + Fsem_perm Tipc_perm1 + Fsem_otime Ttime_t + Fsem_ctime Ttime_t + Fsem_nsems uint16 + F__sem_nsems_pad [6]uint8 + F__unused3 int64 + F__unused4 int64 +} + +func Xsemtimedop(tls *TLS, id int32, buf uintptr, n Tsize_t, ts uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v id=%v buf=%v n=%v ts=%v, (%v:)", tls, id, buf, n, ts, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_semtimedop), int64(id), int64(buf), Int64FromUint64(n), int64(ts))))) +} + +const SHMLBA = 4096 +const SHM_DEST = 512 +const SHM_EXEC = 32768 +const SHM_HUGETLB = 2048 +const SHM_HUGE_16GB = 2281701376 +const SHM_HUGE_16MB = 1610612736 +const SHM_HUGE_1GB = 2013265920 +const SHM_HUGE_1MB = 1342177280 +const SHM_HUGE_256MB = 1879048192 +const SHM_HUGE_2GB = 2080374784 +const SHM_HUGE_2MB = 1409286144 +const SHM_HUGE_32MB = 1677721600 +const SHM_HUGE_512KB = 1275068416 +const SHM_HUGE_512MB = 1946157056 +const SHM_HUGE_64KB = 1073741824 +const SHM_HUGE_8MB = 1543503872 +const SHM_HUGE_MASK = 63 +const SHM_HUGE_SHIFT = 26 +const SHM_INFO = 14 +const SHM_LOCK = 11 +const SHM_LOCKED = 1024 +const SHM_NORESERVE = 4096 +const SHM_R = 256 +const SHM_RDONLY = 4096 +const SHM_REMAP = 16384 +const SHM_RND = 8192 +const SHM_STAT = 13 +const SHM_STAT_ANY = 15 +const SHM_UNLOCK = 12 +const SHM_W = 128 + +type Tshmid_ds = struct { + Fshm_perm Tipc_perm + Fshm_segsz Tsize_t + Fshm_atime Ttime_t + Fshm_dtime Ttime_t + Fshm_ctime Ttime_t + Fshm_cpid Tpid_t + Fshm_lpid Tpid_t + Fshm_nattch uint64 + F__pad1 uint64 + F__pad2 uint64 +} + +type Tshminfo = struct { + Fshmmax uint64 + Fshmmin uint64 + Fshmmni uint64 + Fshmseg uint64 + Fshmall uint64 + F__unused [4]uint64 +} + +type Tshm_info = struct { + F__used_ids int32 + Fshm_tot uint64 + Fshm_rss uint64 + Fshm_swp uint64 + F__swap_attempts uint64 + F__swap_successes uint64 +} + +type Tshmatt_t = uint64 + +func Xshmat(tls *TLS, id int32, addr uintptr, flag int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v id=%v addr=%v flag=%v, (%v:)", tls, id, addr, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_shmat), int64(id), int64(addr), int64(flag))))) +} + +func Xshmctl(tls *TLS, id int32, cmd int32, buf uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v id=%v cmd=%v buf=%v, (%v:)", tls, id, cmd, buf, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + r = int32(X__syscall3(tls, int64(SYS_shmctl), int64(id), int64(cmd & ^(Int32FromInt32(IPC_STAT)&Int32FromInt32(0x100)) | Int32FromInt32(IPC_64)), int64(buf))) + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func Xshmdt(tls *TLS, addr uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v, (%v:)", tls, addr, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_shmdt), int64(addr))))) +} + +func Xshmget(tls *TLS, key Tkey_t, size Tsize_t, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v key=%v size=%v flag=%v, (%v:)", tls, key, size, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + if size > Uint64FromInt64(Int64FromInt64(INT64_MAX)) { + size = Uint64FromUint64(0xffffffffffffffff) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_shmget), int64(key), Int64FromUint64(size), int64(flag))))) +} + +type Tpasswd = struct { + Fpw_name uintptr + Fpw_passwd uintptr + Fpw_uid Tuid_t + Fpw_gid Tgid_t + Fpw_gecos uintptr + Fpw_dir uintptr + Fpw_shell uintptr +} + +func Xcuserid(tls *TLS, buf uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v buf=%v, (%v:)", tls, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(2112) + defer tls.Free(2112) + var len1 Tsize_t + var _ /* ppw at bp+48 */ uintptr + var _ /* pw at bp+0 */ Tpasswd + var _ /* pwb at bp+56 */ [256]int64 + _ = len1 + if buf != 0 { + **(**uint8)(__ccgo_up(buf)) = uint8(0) + } + Xgetpwuid_r(tls, Xgeteuid(tls), bp, bp+56, uint64(2048), bp+48) + if !(**(**uintptr)(__ccgo_up(bp + 48)) != 0) { + return buf + } + len1 = Xstrnlen(tls, (**(**Tpasswd)(__ccgo_up(bp))).Fpw_name, uint64(L_cuserid)) + if len1 == uint64(L_cuserid) { + return buf + } + if !(buf != 0) { + buf = uintptr(unsafe.Pointer(&_usridbuf)) + } + Xmemcpy(tls, buf, (**(**Tpasswd)(__ccgo_up(bp))).Fpw_name, len1+uint64(1)) + return buf +} + +var _usridbuf [20]uint8 + +func Xvwarn(tls *TLS, fmt uintptr, ap Tva_list) { + if __ccgo_strace { + trc("tls=%v fmt=%v ap=%v, (%v:)", tls, fmt, ap, origin(2)) + } + bp := tls.Alloc(16) + defer tls.Free(16) + Xfprintf(tls, uintptr(unsafe.Pointer(&X__stderr_FILE)), __ccgo_ts+284, VaList(bp+8, Xprogram_invocation_short_name)) + if fmt != 0 { + Xvfprintf(tls, uintptr(unsafe.Pointer(&X__stderr_FILE)), fmt, ap) + Xfputs(tls, __ccgo_ts+289, uintptr(unsafe.Pointer(&X__stderr_FILE))) + } + Xperror(tls, uintptr(0)) +} + +func Xvwarnx(tls *TLS, fmt uintptr, ap Tva_list) { + if __ccgo_strace { + trc("tls=%v fmt=%v ap=%v, (%v:)", tls, fmt, ap, origin(2)) + } + bp := tls.Alloc(16) + defer tls.Free(16) + Xfprintf(tls, uintptr(unsafe.Pointer(&X__stderr_FILE)), __ccgo_ts+284, VaList(bp+8, Xprogram_invocation_short_name)) + if fmt != 0 { + Xvfprintf(tls, uintptr(unsafe.Pointer(&X__stderr_FILE)), fmt, ap) + } + Xputc(tls, int32('\n'), uintptr(unsafe.Pointer(&X__stderr_FILE))) +} + +func Xverr(tls *TLS, status int32, fmt uintptr, ap Tva_list) { + if __ccgo_strace { + trc("tls=%v status=%v fmt=%v ap=%v, (%v:)", tls, status, fmt, ap, origin(2)) + } + Xvwarn(tls, fmt, ap) + _exit(tls, status) +} + +func Xverrx(tls *TLS, status int32, fmt uintptr, ap Tva_list) { + if __ccgo_strace { + trc("tls=%v status=%v fmt=%v ap=%v, (%v:)", tls, status, fmt, ap, origin(2)) + } + Xvwarnx(tls, fmt, ap) + _exit(tls, status) +} + +func Xwarn(tls *TLS, fmt uintptr, va uintptr) { + if __ccgo_strace { + trc("tls=%v fmt=%v va=%v, (%v:)", tls, fmt, va, origin(2)) + } + var ap Tva_list + _ = ap + ap = va + Xvwarn(tls, fmt, ap) + _ = ap +} + +func Xwarnx(tls *TLS, fmt uintptr, va uintptr) { + if __ccgo_strace { + trc("tls=%v fmt=%v va=%v, (%v:)", tls, fmt, va, origin(2)) + } + var ap Tva_list + _ = ap + ap = va + Xvwarnx(tls, fmt, ap) + _ = ap +} + +func Xerr(tls *TLS, status int32, fmt uintptr, va uintptr) { + if __ccgo_strace { + trc("tls=%v status=%v fmt=%v va=%v, (%v:)", tls, status, fmt, va, origin(2)) + } + var ap Tva_list + _ = ap + ap = va + Xverr(tls, status, fmt, ap) + _ = ap +} + +func Xerrx(tls *TLS, status int32, fmt uintptr, va uintptr) { + if __ccgo_strace { + trc("tls=%v status=%v fmt=%v va=%v, (%v:)", tls, status, fmt, va, origin(2)) + } + var ap Tva_list + _ = ap + ap = va + Xverrx(tls, status, fmt, ap) + _ = ap +} + +func Xeuidaccess(tls *TLS, filename uintptr, amode int32) (r int32) { + if __ccgo_strace { + trc("tls=%v filename=%v amode=%v, (%v:)", tls, filename, amode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfaccessat(tls, -int32(100), filename, amode, int32(AT_EACCESS)) +} + +func Xeaccess(tls *TLS, filename uintptr, amode int32) (r int32) { + if __ccgo_strace { + trc("tls=%v filename=%v amode=%v, (%v:)", tls, filename, amode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xeuidaccess(tls, filename, amode) +} + +const FTW_CHDIR = 4 +const FTW_D = 2 +const FTW_DEPTH = 8 +const FTW_DNR = 3 +const FTW_DP = 6 +const FTW_F = 1 +const FTW_MOUNT = 2 +const FTW_NS = 4 +const FTW_PHYS = 1 +const FTW_SL = 5 +const FTW_SLN = 7 + +type TFTW = struct { + Fbase int32 + Flevel int32 +} + +type t__ccgo_fp__Xftw_1 = func(*TLS, uintptr, uintptr, int32) int32 + +func Xftw(tls *TLS, path uintptr, __ccgo_fp_fn uintptr, fd_limit int32) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v __ccgo_fp_fn=%v fd_limit=%v, (%v:)", tls, path, __ccgo_fp_fn, fd_limit, origin(2)) + defer func() { trc("-> %v", r) }() + } + /* The following cast assumes that calling a function with one + * argument more than it needs behaves as expected. This is + * actually undefined, but works on all real-world machines. */ + return Xnftw(tls, path, __ccgo_fp_fn, fd_limit, int32(FTW_PHYS)) +} + +const STATX_ALL = 4095 +const STATX_ATIME = 32 +const STATX_BASIC_STATS = 2047 +const STATX_BLOCKS = 1024 +const STATX_BTIME = 2048 +const STATX_CTIME = 128 +const STATX_GID = 16 +const STATX_INO = 256 +const STATX_MODE = 2 +const STATX_MTIME = 64 +const STATX_NLINK = 4 +const STATX_SIZE = 512 +const STATX_TYPE = 1 +const STATX_UID = 8 +const S_IEXEC = 64 +const S_IREAD = 256 +const S_IWRITE = 128 + +type Tstatx_timestamp = struct { + Ftv_sec Tint64_t + Ftv_nsec Tuint32_t + F__pad Tuint32_t +} + +type Tstatx = struct { + Fstx_mask Tuint32_t + Fstx_blksize Tuint32_t + Fstx_attributes Tuint64_t + Fstx_nlink Tuint32_t + Fstx_uid Tuint32_t + Fstx_gid Tuint32_t + Fstx_mode Tuint16_t + F__pad0 [1]Tuint16_t + Fstx_ino Tuint64_t + Fstx_size Tuint64_t + Fstx_blocks Tuint64_t + Fstx_attributes_mask Tuint64_t + Fstx_atime Tstatx_timestamp + Fstx_btime Tstatx_timestamp + Fstx_ctime Tstatx_timestamp + Fstx_mtime Tstatx_timestamp + Fstx_rdev_major Tuint32_t + Fstx_rdev_minor Tuint32_t + Fstx_dev_major Tuint32_t + Fstx_dev_minor Tuint32_t + F__pad1 [14]Tuint64_t +} + +type Ttimezone = struct { + Ftz_minuteswest int32 + Ftz_dsttime int32 +} + +func Xfutimes(tls *TLS, fd int32, tv uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v tv=%v, (%v:)", tls, fd, tv, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var _ /* times at bp+0 */ [2]Ttimespec + if !(tv != 0) { + return Xfutimens(tls, fd, uintptr(0)) + } + (**(**[2]Ttimespec)(__ccgo_up(bp)))[0].Ftv_sec = (**(**Ttimeval)(__ccgo_up(tv))).Ftv_sec + (**(**[2]Ttimespec)(__ccgo_up(bp)))[0].Ftv_nsec = (**(**Ttimeval)(__ccgo_up(tv))).Ftv_usec * int64(1000) + (**(**[2]Ttimespec)(__ccgo_up(bp)))[int32(1)].Ftv_sec = (**(**Ttimeval)(__ccgo_up(tv + 1*16))).Ftv_sec + (**(**[2]Ttimespec)(__ccgo_up(bp)))[int32(1)].Ftv_nsec = (**(**Ttimeval)(__ccgo_up(tv + 1*16))).Ftv_usec * int64(1000) + return Xfutimens(tls, fd, bp) +} + +const prlimit64 = 0 + +func Xgetdtablesize(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uint64 + var _ /* rl at bp+0 */ Trlimit + _ = v1 + Xgetrlimit(tls, int32(RLIMIT_NOFILE), bp) + if (**(**Trlimit)(__ccgo_up(bp))).Frlim_cur < uint64(INT_MAX) { + v1 = (**(**Trlimit)(__ccgo_up(bp))).Frlim_cur + } else { + v1 = uint64(INT_MAX) + } + return Int32FromUint64(v1) +} + +func Xgetloadavg(tls *TLS, a uintptr, n int32) (r int32) { + if __ccgo_strace { + trc("tls=%v a=%v n=%v, (%v:)", tls, a, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(368) + defer tls.Free(368) + var i, v1 int32 + var _ /* si at bp+0 */ Tsysinfo + _, _ = i, v1 + if n <= 0 { + if n != 0 { + v1 = -int32(1) + } else { + v1 = 0 + } + return v1 + } + Xsysinfo(tls, bp) + if n > int32(3) { + n = int32(3) + } + i = 0 + for { + if !(i < n) { + break + } + **(**float64)(__ccgo_up(a + uintptr(i)*8)) = float64(Float64FromFloat64(1) / float64(Int32FromInt32(1)< %v", r) }() + } + return Int32FromUint64(X__libc.Fpage_size) +} + +const B0 = 0 +const B1000000 = 4104 +const B110 = 3 +const B115200 = 4098 +const B1152000 = 4105 +const B1200 = 9 +const B134 = 4 +const B150 = 5 +const B1500000 = 4106 +const B1800 = 10 +const B19200 = 14 +const B200 = 6 +const B2000000 = 4107 +const B230400 = 4099 +const B2400 = 11 +const B2500000 = 4108 +const B300 = 7 +const B3000000 = 4109 +const B3500000 = 4110 +const B38400 = 15 +const B4000000 = 4111 +const B460800 = 4100 +const B4800 = 12 +const B50 = 1 +const B500000 = 4101 +const B57600 = 4097 +const B576000 = 4102 +const B600 = 8 +const B75 = 2 +const B921600 = 4103 +const B9600 = 13 +const BRKINT = 2 +const BS0 = 0 +const BS1 = 8192 +const BSDLY = 8192 +const CBAUD = 4111 +const CBAUDEX = 4096 +const CIBAUD = 269418496 +const CLOCAL = 2048 +const CMSPAR = 1073741824 +const CR0 = 0 +const CR1 = 512 +const CR2 = 1024 +const CR3 = 1536 +const CRDLY = 1536 +const CREAD = 128 +const CRTSCTS = 2147483648 +const CS5 = 0 +const CS6 = 16 +const CS7 = 32 +const CS8 = 48 +const CSIZE = 48 +const CSTOPB = 64 +const ECHO = 8 +const ECHOCTL = 512 +const ECHOE = 16 +const ECHOK = 32 +const ECHOKE = 2048 +const ECHONL = 64 +const ECHOPRT = 1024 +const EXTA = 14 +const EXTB = 15 +const EXTPROC = 65536 +const FF0 = 0 +const FF1 = 32768 +const FFDLY = 32768 +const FLUSHO = 4096 +const HUPCL = 1024 +const ICANON = 2 +const ICRNL = 256 +const IEXTEN = 32768 +const IGNBRK = 1 +const IGNCR = 128 +const IGNPAR = 4 +const IMAXBEL = 8192 +const INLCR = 64 +const INPCK = 16 +const ISIG = 1 +const ISTRIP = 32 +const IUCLC = 512 +const IUTF8 = 16384 +const IXANY = 2048 +const IXOFF = 4096 +const IXON = 1024 +const NCCS = 32 +const NL0 = 0 +const NL1 = 256 +const NLDLY = 256 +const NOFLSH = 128 +const OCRNL = 8 +const OFDEL = 128 +const OFILL = 64 +const OLCUC = 2 +const ONLCR = 4 +const ONLRET = 32 +const ONOCR = 16 +const OPOST = 1 +const PARENB = 256 +const PARMRK = 8 +const PARODD = 512 +const PENDIN = 16384 +const TAB0 = 0 +const TAB1 = 2048 +const TAB2 = 4096 +const TAB3 = 6144 +const TABDLY = 6144 +const TCIFLUSH = 0 +const TCIOFF = 2 +const TCIOFLUSH = 2 +const TCION = 3 +const TCOFLUSH = 1 +const TCOOFF = 0 +const TCOON = 1 +const TCSADRAIN = 1 +const TCSAFLUSH = 2 +const TCSANOW = 0 +const TOSTOP = 256 +const VDISCARD = 13 +const VEOF = 4 +const VEOL = 11 +const VEOL2 = 16 +const VERASE = 2 +const VINTR = 0 +const VKILL = 3 +const VLNEXT = 15 +const VMIN = 6 +const VQUIT = 1 +const VREPRINT = 12 +const VSTART = 8 +const VSTOP = 9 +const VSUSP = 10 +const VSWTC = 7 +const VT0 = 0 +const VT1 = 16384 +const VTDLY = 16384 +const VTIME = 5 +const VWERASE = 14 +const XCASE = 4 +const XTABS = 6144 + +type Twinsize = struct { + Fws_row uint16 + Fws_col uint16 + Fws_xpixel uint16 + Fws_ypixel uint16 +} + +type Tcc_t = uint8 + +type Tspeed_t = uint32 + +type Ttcflag_t = uint32 + +type Ttermios = struct { + Fc_iflag Ttcflag_t + Fc_oflag Ttcflag_t + Fc_cflag Ttcflag_t + Fc_lflag Ttcflag_t + Fc_line Tcc_t + Fc_cc [32]Tcc_t + F__c_ispeed Tspeed_t + F__c_ospeed Tspeed_t +} + +func Xgetpass(tls *TLS, prompt uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v prompt=%v, (%v:)", tls, prompt, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(144) + defer tls.Free(144) + var fd, v1 int32 + var l Tssize_t + var v2 uintptr + var _ /* s at bp+0 */ Ttermios + var _ /* t at bp+60 */ Ttermios + _, _, _, _ = fd, l, v1, v2 + v1 = Xopen(tls, __ccgo_ts+292, Int32FromInt32(O_RDWR)|Int32FromInt32(O_NOCTTY)|Int32FromInt32(O_CLOEXEC), 0) + fd = v1 + if v1 < 0 { + return uintptr(0) + } + Xtcgetattr(tls, fd, bp+60) + **(**Ttermios)(__ccgo_up(bp)) = **(**Ttermios)(__ccgo_up(bp + 60)) + (**(**Ttermios)(__ccgo_up(bp + 60))).Fc_lflag &= Uint32FromInt32(^(Int32FromInt32(ECHO) | Int32FromInt32(ISIG))) + (**(**Ttermios)(__ccgo_up(bp + 60))).Fc_lflag |= uint32(ICANON) + (**(**Ttermios)(__ccgo_up(bp + 60))).Fc_iflag &= Uint32FromInt32(^(Int32FromInt32(INLCR) | Int32FromInt32(IGNCR))) + (**(**Ttermios)(__ccgo_up(bp + 60))).Fc_iflag |= uint32(ICRNL) + Xtcsetattr(tls, fd, int32(TCSAFLUSH), bp+60) + Xtcdrain(tls, fd) + Xdprintf(tls, fd, __ccgo_ts+15, VaList(bp+128, prompt)) + l = Xread(tls, fd, uintptr(unsafe.Pointer(&_password)), uint64(128)) + if l >= 0 { + if l > 0 && Int32FromUint8(_password[l-int64(1)]) == int32('\n') || Uint64FromInt64(l) == uint64(128) { + l = l - 1 + } + _password[l] = uint8(0) + } + Xtcsetattr(tls, fd, int32(TCSAFLUSH), bp) + Xdprintf(tls, fd, __ccgo_ts+301, 0) + Xclose(tls, fd) + if l < 0 { + v2 = uintptr(0) + } else { + v2 = uintptr(unsafe.Pointer(&_password)) + } + return v2 +} + +var _password [128]uint8 + +var _defshells = [18]uint8{'/', 'b', 'i', 'n', '/', 's', 'h', 10, '/', 'b', 'i', 'n', '/', 'c', 's', 'h', 10} + +var _line uintptr +var _linesize Tsize_t +var _f uintptr + +func Xendusershell(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + if _f != 0 { + Xfclose(tls, _f) + } + _f = uintptr(0) +} + +func Xsetusershell(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + if !(_f != 0) { + _f = Xfopen(tls, __ccgo_ts+303, __ccgo_ts+315) + } + if !(_f != 0) { + _f = Xfmemopen(tls, uintptr(unsafe.Pointer(&_defshells)), Uint64FromInt64(18)-Uint64FromInt32(1), __ccgo_ts+319) + } +} + +func Xgetusershell(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l Tssize_t + _ = l + if !(_f != 0) { + Xsetusershell(tls) + } + if !(_f != 0) { + return uintptr(0) + } + l = Xgetline(tls, uintptr(unsafe.Pointer(&_line)), uintptr(unsafe.Pointer(&_linesize)), _f) + if l <= 0 { + return uintptr(0) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(_line + uintptr(l-int64(1))))) == int32('\n') { + **(**uint8)(__ccgo_up(_line + uintptr(l-int64(1)))) = uint8(0) + } + return _line +} + +const ANYMARK = 1 +const FLUSHBAND = 4 +const FLUSHR = 1 +const FLUSHRW = 3 +const FLUSHW = 2 +const FMNAMESZ = 8 +const I_ATMARK = 21279 +const I_CANPUT = 21282 +const I_CKBAND = 21277 +const I_FDINSERT = 21264 +const I_FIND = 21259 +const I_FLUSH = 21253 +const I_FLUSHBAND = 21276 +const I_GETBAND = 21278 +const I_GETCLTIME = 21281 +const I_GETSIG = 21258 +const I_GRDOPT = 21255 +const I_GWROPT = 21268 +const I_LINK = 21260 +const I_LIST = 21269 +const I_LOOK = 21252 +const I_NREAD = 21249 +const I_PEEK = 21263 +const I_PLINK = 21270 +const I_POP = 21251 +const I_PUNLINK = 21271 +const I_PUSH = 21250 +const I_RECVFD = 21262 +const I_SENDFD = 21265 +const I_SETCLTIME = 21280 +const I_SETSIG = 21257 +const I_SRDOPT = 21254 +const I_STR = 21256 +const I_SWROPT = 21267 +const I_UNLINK = 21261 +const LASTMARK = 2 +const MORECTL = 1 +const MOREDATA = 2 +const MSG_ANY = 2 +const MSG_BAND = 4 +const MSG_HIPRI = 1 +const MUXID_ALL = -1 +const RMSGD = 1 +const RMSGN = 2 +const RNORM = 0 +const RPROTDAT = 4 +const RPROTDIS = 8 +const RPROTMASK = 28 +const RPROTNORM = 16 +const RS_HIPRI = 1 +const SNDPIPE = 2 +const SNDZERO = 1 +const S_BANDURG = 512 +const S_ERROR = 16 +const S_HANGUP = 32 +const S_HIPRI = 2 +const S_INPUT = 1 +const S_MSG = 8 +const S_OUTPUT = 4 +const S_RDBAND = 128 +const S_RDNORM = 64 +const S_WRBAND = 256 +const S_WRNORM = 4 +const __SID = 21248 + +type Tbandinfo = struct { + Fbi_pri uint8 + Fbi_flag int32 +} + +type Tstrbuf = struct { + Fmaxlen int32 + Flen1 int32 + Fbuf uintptr +} + +type Tstrpeek = struct { + Fctlbuf Tstrbuf + Fdatabuf Tstrbuf + Fflags uint32 +} + +type Tstrfdinsert = struct { + Fctlbuf Tstrbuf + Fdatabuf Tstrbuf + Fflags uint32 + Ffildes int32 + Foffset int32 +} + +type Tstrioctl = struct { + Fic_cmd int32 + Fic_timout int32 + Fic_len int32 + Fic_dp uintptr +} + +type Tstrrecvfd = struct { + Ffd int32 + Fuid int32 + Fgid int32 + F__fill [8]uint8 +} + +type Tstr_mlist = struct { + Fl_name [9]uint8 +} + +type Tstr_list = struct { + Fsl_nmods int32 + Fsl_modlist uintptr +} + +func Xisastream(tls *TLS, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + _ = v1 + if Xfcntl(tls, fd, int32(F_GETFD), 0) < 0 { + v1 = -int32(1) + } else { + v1 = 0 + } + return v1 +} + +func Xlutimes(tls *TLS, filename uintptr, tv uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v filename=%v tv=%v, (%v:)", tls, filename, tv, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var v1 uintptr + var _ /* times at bp+0 */ [2]Ttimespec + _ = v1 + if tv != 0 { + (**(**[2]Ttimespec)(__ccgo_up(bp)))[0].Ftv_sec = (**(**Ttimeval)(__ccgo_up(tv))).Ftv_sec + (**(**[2]Ttimespec)(__ccgo_up(bp)))[0].Ftv_nsec = (**(**Ttimeval)(__ccgo_up(tv))).Ftv_usec * int64(1000) + (**(**[2]Ttimespec)(__ccgo_up(bp)))[int32(1)].Ftv_sec = (**(**Ttimeval)(__ccgo_up(tv + 1*16))).Ftv_sec + (**(**[2]Ttimespec)(__ccgo_up(bp)))[int32(1)].Ftv_nsec = (**(**Ttimeval)(__ccgo_up(tv + 1*16))).Ftv_usec * int64(1000) + } + if tv != 0 { + v1 = bp + } else { + v1 = uintptr(0) + } + return Xutimensat(tls, -int32(100), filename, v1, int32(AT_SYMLINK_NOFOLLOW)) +} + +const UL_GETFSIZE = 1 +const UL_SETFSIZE = 2 + +func Xulimit(tls *TLS, cmd int32, va uintptr) (r int64) { + if __ccgo_strace { + trc("tls=%v cmd=%v va=%v, (%v:)", tls, cmd, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ap Tva_list + var val int64 + var _ /* rl at bp+0 */ Trlimit + _, _ = ap, val + Xgetrlimit(tls, int32(RLIMIT_FSIZE), bp) + if cmd == int32(UL_SETFSIZE) { + ap = va + val = VaInt64(&ap) + _ = ap + (**(**Trlimit)(__ccgo_up(bp))).Frlim_cur = uint64(512) * Uint64FromInt64(val) + if Xsetrlimit(tls, int32(RLIMIT_FSIZE), bp) != 0 { + return int64(-int32(1)) + } + } + return Int64FromUint64((**(**Trlimit)(__ccgo_up(bp))).Frlim_cur / uint64(512)) +} + +const BOOT_TIME = 2 +const DEAD_PROCESS = 8 +const EMPTY = 0 +const INIT_PROCESS = 5 +const LOGIN_PROCESS = 6 +const NEW_TIME = 3 +const OLD_TIME = 4 +const RUN_LVL = 1 +const USER_PROCESS = 7 +const e_exit = 0 +const e_termination = 0 + +type Tutmpx = struct { + Fut_type int16 + F__ut_pad1 int16 + Fut_pid Tpid_t + Fut_line [32]uint8 + Fut_id [4]uint8 + Fut_user [32]uint8 + Fut_host [256]uint8 + Fut_exit struct { + F__e_termination int16 + F__e_exit int16 + } + Fut_session int32 + F__ut_pad2 int32 + Fut_tv Ttimeval + Fut_addr_v6 [4]uint32 + F__unused [20]uint8 +} + +func Xendutxent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } +} + +func Xsetutxent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } +} + +func Xgetutxent(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return UintptrFromInt32(0) +} + +func Xgetutxid(tls *TLS, ut uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v ut=%v, (%v:)", tls, ut, origin(2)) + defer func() { trc("-> %v", r) }() + } + return UintptrFromInt32(0) +} + +func Xgetutxline(tls *TLS, ut uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v ut=%v, (%v:)", tls, ut, origin(2)) + defer func() { trc("-> %v", r) }() + } + return UintptrFromInt32(0) +} + +func Xpututxline(tls *TLS, ut uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v ut=%v, (%v:)", tls, ut, origin(2)) + defer func() { trc("-> %v", r) }() + } + return UintptrFromInt32(0) +} + +func Xupdwtmpx(tls *TLS, f uintptr, u uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v u=%v, (%v:)", tls, f, u, origin(2)) + } +} + +func ___utmpxname(tls *TLS, f uintptr) (r int32) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOPNOTSUPP) + return -int32(1) +} + +func Xendutent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + Xendutxent(tls) +} + +func Xgetutent(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetutxent(tls) +} + +func Xgetutid(tls *TLS, ut uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v ut=%v, (%v:)", tls, ut, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetutxid(tls, ut) +} + +func Xgetutline(tls *TLS, ut uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v ut=%v, (%v:)", tls, ut, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetutxline(tls, ut) +} + +func Xpututline(tls *TLS, ut uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v ut=%v, (%v:)", tls, ut, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xpututxline(tls, ut) +} + +func Xsetutent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + Xsetutxent(tls) +} + +func Xupdwtmp(tls *TLS, f uintptr, u uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v u=%v, (%v:)", tls, f, u, origin(2)) + } + Xupdwtmpx(tls, f, u) +} + +const ADJ_ESTERROR = 8 +const ADJ_FREQUENCY = 2 +const ADJ_MAXERROR = 4 +const ADJ_MICRO = 4096 +const ADJ_NANO = 8192 +const ADJ_OFFSET = 1 +const ADJ_OFFSET_SINGLESHOT = 32769 +const ADJ_OFFSET_SS_READ = 40961 +const ADJ_SETOFFSET = 256 +const ADJ_STATUS = 16 +const ADJ_TAI = 128 +const ADJ_TICK = 16384 +const ADJ_TIMECONST = 32 +const MAXTC = 6 +const MOD_CLKA = 32769 +const MOD_CLKB = 16384 +const MOD_ESTERROR = 8 +const MOD_FREQUENCY = 2 +const MOD_MAXERROR = 4 +const MOD_MICRO = 4096 +const MOD_NANO = 8192 +const MOD_OFFSET = 1 +const MOD_STATUS = 16 +const MOD_TAI = 128 +const MOD_TIMECONST = 32 +const STA_CLK = 32768 +const STA_CLOCKERR = 4096 +const STA_DEL = 32 +const STA_FLL = 8 +const STA_FREQHOLD = 128 +const STA_INS = 16 +const STA_MODE = 16384 +const STA_NANO = 8192 +const STA_PLL = 1 +const STA_PPSERROR = 2048 +const STA_PPSFREQ = 2 +const STA_PPSJITTER = 512 +const STA_PPSSIGNAL = 256 +const STA_PPSTIME = 4 +const STA_PPSWANDER = 1024 +const STA_RONLY = 65280 +const STA_UNSYNC = 64 +const TIME_BAD = 5 +const TIME_DEL = 2 +const TIME_ERROR = 5 +const TIME_INS = 1 +const TIME_OK = 0 +const TIME_OOP = 3 +const TIME_WAIT = 4 + +type Tntptimeval = struct { + Ftime Ttimeval + Fmaxerror int64 + Festerror int64 +} + +type Ttimex = struct { + Fmodes uint32 + Foffset int64 + Ffreq int64 + Fmaxerror int64 + Festerror int64 + Fstatus int32 + Fconstant int64 + Fprecision int64 + Ftolerance int64 + Ftime Ttimeval + Ftick int64 + Fppsfreq int64 + Fjitter int64 + Fshift int32 + Fstabil int64 + Fjitcnt int64 + Fcalcnt int64 + Ferrcnt int64 + Fstbcnt int64 + Ftai int32 + F__padding [11]int32 +} + +func Xadjtime(tls *TLS, in uintptr, out uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v in=%v out=%v, (%v:)", tls, in, out, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(208) + defer tls.Free(208) + var v1 Tsuseconds_t + var _ /* tx at bp+0 */ Ttimex + _ = v1 + **(**Ttimex)(__ccgo_up(bp)) = Ttimex{} + if in != 0 { + if (*Ttimeval)(unsafe.Pointer(in)).Ftv_sec > int64(1000) || (*Ttimeval)(unsafe.Pointer(in)).Ftv_usec > int64(1000000000) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + (**(**Ttimex)(__ccgo_up(bp))).Foffset = (*Ttimeval)(unsafe.Pointer(in)).Ftv_sec*int64(1000000) + (*Ttimeval)(unsafe.Pointer(in)).Ftv_usec + (**(**Ttimex)(__ccgo_up(bp))).Fmodes = uint32(ADJ_OFFSET_SINGLESHOT) + } + if Xadjtimex(tls, bp) < 0 { + return -int32(1) + } + if out != 0 { + (*Ttimeval)(unsafe.Pointer(out)).Ftv_sec = (**(**Ttimex)(__ccgo_up(bp))).Foffset / int64(1000000) + v1 = (**(**Ttimex)(__ccgo_up(bp))).Foffset % Int64FromInt32(1000000) + (*Ttimeval)(unsafe.Pointer(out)).Ftv_usec = v1 + if v1 < 0 { + (*Ttimeval)(unsafe.Pointer(out)).Ftv_sec = (*Ttimeval)(unsafe.Pointer(out)).Ftv_sec - 1 + **(**Tsuseconds_t)(__ccgo_up(out + 8)) += int64(1000000) + } + } + return 0 +} + +func Xadjtimex(tls *TLS, tx uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v tx=%v, (%v:)", tls, tx, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xclock_adjtime(tls, CLOCK_REALTIME, tx) +} + +func Xbrk(tls *TLS, end uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v end=%v, (%v:)", tls, end, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(ENOMEM)))) +} + +const VDSO_FLUSH_ICACHE_SYM = "__vdso_flush_icache" +const VDSO_FLUSH_ICACHE_VER = "LINUX_4.15" + +func _flush_icache_init(tls *TLS, start uintptr, end uintptr, flags uint64) (r int32) { + var f, p1 uintptr + var v2 int32 + _, _, _ = f, p1, v2 + p1 = X__vdsosym(tls, __ccgo_ts+322, __ccgo_ts+333) + f = p1 + // __asm__ __volatile__ ( + // + // "\n1: lr.d.aqrl %0, (%2)\n bne %0, %3, 1f\n sc.d.aqrl %1, %4, (%2)\n bnez %1, 1b\n1:" + // : "=&r"(old), "=&r"(tmp) + // : "r"(p), "r"(t), "r"(s) + // : "memory"); + X__assert_fail(tls, __ccgo_ts+353, __ccgo_ts+388, 28, __ccgo_ts+402) + + goto _1 +_1: + ; + if f != 0 { + v2 = (*(*func(*TLS, uintptr, uintptr, uint64) int32)(unsafe.Pointer(&struct{ uintptr }{f})))(tls, start, end, flags) + } else { + v2 = -int32(ENOSYS) + } + return v2 +} + +var _vdso_func = uintptr(0) + +func init() { + p := unsafe.Pointer(&_vdso_func) + *(*uintptr)(unsafe.Add(p, 0)) = __ccgo_fp(_flush_icache_init) +} + +func X__riscv_flush_icache(tls *TLS, start uintptr, end uintptr, flags uint64) (r1 int32) { + if __ccgo_strace { + trc("tls=%v start=%v end=%v flags=%v, (%v:)", tls, start, end, flags, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var f uintptr + var r int32 + _, _ = f, r + f = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_vdso_func))) + if f != 0 { + r = (*(*func(*TLS, uintptr, uintptr, uint64) int32)(unsafe.Pointer(&struct{ uintptr }{f})))(tls, start, end, flags) + if !(r != 0) { + return r + } + if r != -int32(ENOSYS) { + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) + } + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(Int32FromInt32(__NR_arch_specific_syscall)+Int32FromInt32(15)), int64(start), int64(end), Int64FromUint64(flags))))) +} + +func Xriscv_flush_icache(tls *TLS, start uintptr, end uintptr, flags uint64) (r int32) { + if __ccgo_strace { + trc("tls=%v start=%v end=%v flags=%v, (%v:)", tls, start, end, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__riscv_flush_icache(tls, start, end, flags) +} + +func Xcapset(tls *TLS, a uintptr, b uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v a=%v b=%v, (%v:)", tls, a, b, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_capset), int64(a), int64(b))))) +} + +func Xcapget(tls *TLS, a uintptr, b uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v a=%v b=%v, (%v:)", tls, a, b, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_capget), int64(a), int64(b))))) +} + +func Xchroot(tls *TLS, path uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v, (%v:)", tls, path, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_chroot), int64(path))))) +} + +type Tktimex64 = struct { + Fmodes uint32 + F__ccgo4 uint32 + Foffset int64 + Ffreq int64 + Fmaxerror int64 + Festerror int64 + Fstatus int32 + F__ccgo44 uint32 + Fconstant int64 + Fprecision int64 + Ftolerance int64 + Ftime_sec int64 + Ftime_usec int64 + Ftick int64 + Fppsfreq int64 + Fjitter int64 + Fshift int32 + F__ccgo116 uint32 + Fstabil int64 + Fjitcnt int64 + Fcalcnt int64 + Ferrcnt int64 + Fstbcnt int64 + Ftai int32 + F__padding [11]int32 +} + +type Tktimex = struct { + Fmodes uint32 + Foffset int64 + Ffreq int64 + Fmaxerror int64 + Festerror int64 + Fstatus int32 + Fconstant int64 + Fprecision int64 + Ftolerance int64 + Ftime_sec int64 + Ftime_usec int64 + Ftick int64 + Fppsfreq int64 + Fjitter int64 + Fshift int32 + Fstabil int64 + Fjitcnt int64 + Fcalcnt int64 + Ferrcnt int64 + Fstbcnt int64 + Ftai int32 + F__padding [11]int32 +} + +func Xclock_adjtime(tls *TLS, clock_id Tclockid_t, utx uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v clock_id=%v utx=%v, (%v:)", tls, clock_id, utx, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(208) + defer tls.Free(208) + var r int32 + var _ /* ktx at bp+0 */ Tktimex + _ = r + r = -int32(ENOSYS) + if uint64(8) > uint64(8) { + **(**Tktimex)(__ccgo_up(bp)) = Tktimex{ + Fmodes: (*Ttimex)(unsafe.Pointer(utx)).Fmodes, + Foffset: (*Ttimex)(unsafe.Pointer(utx)).Foffset, + Ffreq: (*Ttimex)(unsafe.Pointer(utx)).Ffreq, + Fmaxerror: (*Ttimex)(unsafe.Pointer(utx)).Fmaxerror, + Festerror: (*Ttimex)(unsafe.Pointer(utx)).Festerror, + Fstatus: (*Ttimex)(unsafe.Pointer(utx)).Fstatus, + Fconstant: (*Ttimex)(unsafe.Pointer(utx)).Fconstant, + Fprecision: (*Ttimex)(unsafe.Pointer(utx)).Fprecision, + Ftolerance: (*Ttimex)(unsafe.Pointer(utx)).Ftolerance, + Ftime_sec: (*Ttimex)(unsafe.Pointer(utx)).Ftime.Ftv_sec, + Ftime_usec: (*Ttimex)(unsafe.Pointer(utx)).Ftime.Ftv_usec, + Ftick: (*Ttimex)(unsafe.Pointer(utx)).Ftick, + Fppsfreq: (*Ttimex)(unsafe.Pointer(utx)).Fppsfreq, + Fjitter: (*Ttimex)(unsafe.Pointer(utx)).Fjitter, + Fshift: (*Ttimex)(unsafe.Pointer(utx)).Fshift, + Fstabil: (*Ttimex)(unsafe.Pointer(utx)).Fstabil, + Fjitcnt: (*Ttimex)(unsafe.Pointer(utx)).Fjitcnt, + Fcalcnt: (*Ttimex)(unsafe.Pointer(utx)).Fcalcnt, + Ferrcnt: (*Ttimex)(unsafe.Pointer(utx)).Ferrcnt, + Fstbcnt: (*Ttimex)(unsafe.Pointer(utx)).Fstbcnt, + Ftai: (*Ttimex)(unsafe.Pointer(utx)).Ftai, + } + if clock_id == CLOCK_REALTIME { + r = int32(X__syscall1(tls, int64(SYS_adjtimex), int64(bp))) + } else { + r = int32(X__syscall2(tls, int64(SYS_clock_adjtime), int64(clock_id), int64(bp))) + } + if r >= 0 { + (*Ttimex)(unsafe.Pointer(utx)).Fmodes = (**(**Tktimex)(__ccgo_up(bp))).Fmodes + (*Ttimex)(unsafe.Pointer(utx)).Foffset = (**(**Tktimex)(__ccgo_up(bp))).Foffset + (*Ttimex)(unsafe.Pointer(utx)).Ffreq = (**(**Tktimex)(__ccgo_up(bp))).Ffreq + (*Ttimex)(unsafe.Pointer(utx)).Fmaxerror = (**(**Tktimex)(__ccgo_up(bp))).Fmaxerror + (*Ttimex)(unsafe.Pointer(utx)).Festerror = (**(**Tktimex)(__ccgo_up(bp))).Festerror + (*Ttimex)(unsafe.Pointer(utx)).Fstatus = (**(**Tktimex)(__ccgo_up(bp))).Fstatus + (*Ttimex)(unsafe.Pointer(utx)).Fconstant = (**(**Tktimex)(__ccgo_up(bp))).Fconstant + (*Ttimex)(unsafe.Pointer(utx)).Fprecision = (**(**Tktimex)(__ccgo_up(bp))).Fprecision + (*Ttimex)(unsafe.Pointer(utx)).Ftolerance = (**(**Tktimex)(__ccgo_up(bp))).Ftolerance + (*Ttimex)(unsafe.Pointer(utx)).Ftime.Ftv_sec = (**(**Tktimex)(__ccgo_up(bp))).Ftime_sec + (*Ttimex)(unsafe.Pointer(utx)).Ftime.Ftv_usec = (**(**Tktimex)(__ccgo_up(bp))).Ftime_usec + (*Ttimex)(unsafe.Pointer(utx)).Ftick = (**(**Tktimex)(__ccgo_up(bp))).Ftick + (*Ttimex)(unsafe.Pointer(utx)).Fppsfreq = (**(**Tktimex)(__ccgo_up(bp))).Fppsfreq + (*Ttimex)(unsafe.Pointer(utx)).Fjitter = (**(**Tktimex)(__ccgo_up(bp))).Fjitter + (*Ttimex)(unsafe.Pointer(utx)).Fshift = (**(**Tktimex)(__ccgo_up(bp))).Fshift + (*Ttimex)(unsafe.Pointer(utx)).Fstabil = (**(**Tktimex)(__ccgo_up(bp))).Fstabil + (*Ttimex)(unsafe.Pointer(utx)).Fjitcnt = (**(**Tktimex)(__ccgo_up(bp))).Fjitcnt + (*Ttimex)(unsafe.Pointer(utx)).Fcalcnt = (**(**Tktimex)(__ccgo_up(bp))).Fcalcnt + (*Ttimex)(unsafe.Pointer(utx)).Ferrcnt = (**(**Tktimex)(__ccgo_up(bp))).Ferrcnt + (*Ttimex)(unsafe.Pointer(utx)).Fstbcnt = (**(**Tktimex)(__ccgo_up(bp))).Fstbcnt + (*Ttimex)(unsafe.Pointer(utx)).Ftai = (**(**Tktimex)(__ccgo_up(bp))).Ftai + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) + } + if clock_id == CLOCK_REALTIME { + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_adjtimex), int64(utx))))) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_clock_adjtime), int64(clock_id), int64(utx))))) +} + +func Xcopy_file_range(tls *TLS, fd_in int32, off_in uintptr, fd_out int32, off_out uintptr, len1 Tsize_t, flags uint32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd_in=%v off_in=%v fd_out=%v off_out=%v len1=%v flags=%v, (%v:)", tls, fd_in, off_in, fd_out, off_out, len1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall6(tls, int64(SYS_copy_file_range), int64(fd_in), int64(off_in), int64(fd_out), int64(off_out), Int64FromUint64(len1), Int64FromUint32(flags)))) +} + +const EPOLLERR = 8 +const EPOLLET = 2147483648 +const EPOLLEXCLUSIVE = 268435456 +const EPOLLHUP = 16 +const EPOLLIN = 1 +const EPOLLMSG = 1024 +const EPOLLNVAL = 32 +const EPOLLONESHOT = 1073741824 +const EPOLLOUT = 4 +const EPOLLPRI = 2 +const EPOLLRDBAND = 128 +const EPOLLRDHUP = 8192 +const EPOLLRDNORM = 64 +const EPOLLWAKEUP = 536870912 +const EPOLLWRBAND = 512 +const EPOLLWRNORM = 256 +const EPOLL_CLOEXEC = 524288 +const EPOLL_CTL_ADD = 1 +const EPOLL_CTL_DEL = 2 +const EPOLL_CTL_MOD = 3 +const EPOLL_NONBLOCK = 2048 + +type Tfsblkcnt_t = uint64 + +type Tfsfilcnt_t = uint64 + +type _EPOLL_EVENTS = int32 + +const ___EPOLL_DUMMY = 0 + +type Tepoll_data_t = struct { + Ffd [0]int32 + Fu32 [0]Tuint32_t + Fu64 [0]Tuint64_t + Fptr uintptr +} + +type Tepoll_data = Tepoll_data_t + +type Tepoll_event = struct { + Fevents Tuint32_t + Fdata Tepoll_data_t +} + +func Xepoll_create(tls *TLS, size int32) (r int32) { + if __ccgo_strace { + trc("tls=%v size=%v, (%v:)", tls, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + if size <= 0 { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL)))) + } + return Xepoll_create1(tls, 0) +} + +func Xepoll_create1(tls *TLS, flags int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v flags=%v, (%v:)", tls, flags, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + r = int32(X__syscall1(tls, int64(SYS_epoll_create1), int64(flags))) + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func Xepoll_ctl(tls *TLS, fd int32, op int32, fd2 int32, ev uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v op=%v fd2=%v ev=%v, (%v:)", tls, fd, op, fd2, ev, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_epoll_ctl), int64(fd), int64(op), int64(fd2), int64(ev))))) +} + +func Xepoll_pwait(tls *TLS, fd int32, ev uintptr, cnt int32, to int32, sigs uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v ev=%v cnt=%v to=%v sigs=%v, (%v:)", tls, fd, ev, cnt, to, sigs, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + r = int32(___syscall_cp(tls, int64(SYS_epoll_pwait), int64(fd), int64(ev), int64(cnt), int64(to), int64(sigs), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8)))) + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func Xepoll_wait(tls *TLS, fd int32, ev uintptr, cnt int32, to int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v ev=%v cnt=%v to=%v, (%v:)", tls, fd, ev, cnt, to, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xepoll_pwait(tls, fd, ev, cnt, to, uintptr(0)) +} + +const EFD_CLOEXEC = 524288 +const EFD_NONBLOCK = 2048 +const EFD_SEMAPHORE = 1 + +type Teventfd_t = uint64 + +func Xeventfd(tls *TLS, count uint32, flags int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v count=%v flags=%v, (%v:)", tls, count, flags, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + r = int32(X__syscall2(tls, int64(SYS_eventfd2), Int64FromUint32(count), int64(flags))) + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func Xeventfd_read(tls *TLS, fd int32, value uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v value=%v, (%v:)", tls, fd, value, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + _ = v1 + if uint64(8) == Uint64FromInt64(Xread(tls, fd, value, uint64(8))) { + v1 = 0 + } else { + v1 = -int32(1) + } + return v1 +} + +func Xeventfd_write(tls *TLS, fd int32, _value Teventfd_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v _value=%v, (%v:)", tls, fd, _value, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + *(*Teventfd_t)(unsafe.Pointer(bp)) = _value + var v1 int32 + _ = v1 + if uint64(8) == Uint64FromInt64(Xwrite(tls, fd, bp, uint64(8))) { + v1 = 0 + } else { + v1 = -int32(1) + } + return v1 +} + +func Xfallocate(tls *TLS, fd int32, mode int32, base Toff_t, len1 Toff_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v mode=%v base=%v len1=%v, (%v:)", tls, fd, mode, base, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_fallocate), int64(fd), int64(mode), base, len1)))) +} + +const FANOTIFY_METADATA_VERSION = 3 +const FAN_ACCESS = 1 +const FAN_ACCESS_PERM = 131072 +const FAN_ALLOW = 1 +const FAN_ALL_CLASS_BITS = 12 +const FAN_ALL_EVENTS = 59 +const FAN_ALL_INIT_FLAGS = 63 +const FAN_ALL_MARK_FLAGS = 255 +const FAN_ALL_OUTGOING_EVENTS = 213051 +const FAN_ALL_PERM_EVENTS = 196608 +const FAN_ATTRIB = 4 +const FAN_AUDIT = 16 +const FAN_CLASS_CONTENT = 4 +const FAN_CLASS_NOTIF = 0 +const FAN_CLASS_PRE_CONTENT = 8 +const FAN_CLOEXEC = 1 +const FAN_CLOSE = 24 +const FAN_CLOSE_NOWRITE = 16 +const FAN_CLOSE_WRITE = 8 +const FAN_CREATE = 256 +const FAN_DELETE = 512 +const FAN_DELETE_SELF = 1024 +const FAN_DENY = 2 +const FAN_DIR_MODIFY = 524288 +const FAN_ENABLE_AUDIT = 64 +const FAN_EVENT_INFO_TYPE_DFID = 3 +const FAN_EVENT_INFO_TYPE_DFID_NAME = 2 +const FAN_EVENT_INFO_TYPE_FID = 1 +const FAN_EVENT_METADATA_LEN = 0 +const FAN_EVENT_ON_CHILD = 134217728 +const FAN_MARK_ADD = 1 +const FAN_MARK_DONT_FOLLOW = 4 +const FAN_MARK_FILESYSTEM = 256 +const FAN_MARK_FLUSH = 128 +const FAN_MARK_IGNORED_MASK = 32 +const FAN_MARK_IGNORED_SURV_MODIFY = 64 +const FAN_MARK_INODE = 0 +const FAN_MARK_MOUNT = 16 +const FAN_MARK_ONLYDIR = 8 +const FAN_MARK_REMOVE = 2 +const FAN_MARK_TYPE_MASK = 272 +const FAN_MODIFY = 2 +const FAN_MOVE = 192 +const FAN_MOVED_FROM = 64 +const FAN_MOVED_TO = 128 +const FAN_MOVE_SELF = 2048 +const FAN_NOFD = -1 +const FAN_NONBLOCK = 2 +const FAN_ONDIR = 1073741824 +const FAN_OPEN = 32 +const FAN_OPEN_EXEC = 4096 +const FAN_OPEN_EXEC_PERM = 262144 +const FAN_OPEN_PERM = 65536 +const FAN_Q_OVERFLOW = 16384 +const FAN_REPORT_DFID_NAME = 3072 +const FAN_REPORT_DIR_FID = 1024 +const FAN_REPORT_FID = 512 +const FAN_REPORT_NAME = 2048 +const FAN_REPORT_TID = 256 +const FAN_UNLIMITED_MARKS = 32 +const FAN_UNLIMITED_QUEUE = 16 +const ST_APPEND = 256 +const ST_IMMUTABLE = 512 +const ST_MANDLOCK = 64 +const ST_NOATIME = 1024 +const ST_NODEV = 4 +const ST_NODIRATIME = 2048 +const ST_NOEXEC = 8 +const ST_NOSUID = 2 +const ST_RDONLY = 1 +const ST_RELATIME = 4096 +const ST_SYNCHRONOUS = 16 +const ST_WRITE = 128 + +type Tstatvfs = struct { + Ff_bsize uint64 + Ff_frsize uint64 + Ff_blocks Tfsblkcnt_t + Ff_bfree Tfsblkcnt_t + Ff_bavail Tfsblkcnt_t + Ff_files Tfsfilcnt_t + Ff_ffree Tfsfilcnt_t + Ff_favail Tfsfilcnt_t + Ff_fsid uint64 + Ff_flag uint64 + Ff_namemax uint64 + Ff_type uint32 + F__reserved [5]int32 +} + +type Tfsid_t = struct { + F__val [2]int32 +} + +type t__fsid_t = Tfsid_t + +type Tstatfs = struct { + Ff_type uint64 + Ff_bsize uint64 + Ff_blocks Tfsblkcnt_t + Ff_bfree Tfsblkcnt_t + Ff_bavail Tfsblkcnt_t + Ff_files Tfsfilcnt_t + Ff_ffree Tfsfilcnt_t + Ff_fsid Tfsid_t + Ff_namelen uint64 + Ff_frsize uint64 + Ff_flags uint64 + Ff_spare [4]uint64 +} + +type Tfanotify_event_metadata = struct { + Fevent_len uint32 + Fvers uint8 + Freserved uint8 + Fmetadata_len uint16 + Fmask uint64 + Ffd int32 + Fpid int32 +} + +type Tfanotify_event_info_header = struct { + Finfo_type uint8 + Fpad uint8 + Flen1 uint16 +} + +type Tfanotify_event_info_fid = struct { + Fhdr Tfanotify_event_info_header + Ffsid Tfsid_t +} + +type Tfanotify_response = struct { + Ffd int32 + Fresponse uint32 +} + +func Xfanotify_init(tls *TLS, flags uint32, event_f_flags uint32) (r int32) { + if __ccgo_strace { + trc("tls=%v flags=%v event_f_flags=%v, (%v:)", tls, flags, event_f_flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_fanotify_init), Int64FromUint32(flags), Int64FromUint32(event_f_flags))))) +} + +func Xfanotify_mark(tls *TLS, fanotify_fd int32, flags uint32, mask uint64, dfd int32, pathname uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fanotify_fd=%v flags=%v mask=%v dfd=%v pathname=%v, (%v:)", tls, fanotify_fd, flags, mask, dfd, pathname, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_fanotify_mark), int64(fanotify_fd), Int64FromUint32(flags), Int64FromUint64(mask), int64(dfd), int64(pathname))))) +} + +const LOCK_EX = 2 +const LOCK_NB = 4 +const LOCK_SH = 1 +const LOCK_UN = 8 + +func Xflock(tls *TLS, fd int32, op int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v op=%v, (%v:)", tls, fd, op, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_flock), int64(fd), int64(op))))) +} + +func Xgetdents(tls *TLS, fd int32, buf uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v len1=%v, (%v:)", tls, fd, buf, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + if len1 > uint64(INT_MAX) { + len1 = uint64(INT_MAX) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_getdents64), int64(fd), int64(buf), Int64FromUint64(len1))))) +} + +const GRND_INSECURE = 4 +const GRND_NONBLOCK = 1 +const GRND_RANDOM = 2 + +func Xgetrandom(tls *TLS, buf uintptr, buflen Tsize_t, flags uint32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v buf=%v buflen=%v flags=%v, (%v:)", tls, buf, buflen, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_getrandom), int64(buf), Int64FromUint64(buflen), Int64FromUint32(flags), 0, 0, 0))) +} + +const IN_ACCESS = 1 +const IN_ALL_EVENTS = 4095 +const IN_ATTRIB = 4 +const IN_CLOEXEC = 524288 +const IN_CLOSE = 24 +const IN_CLOSE_NOWRITE = 16 +const IN_CLOSE_WRITE = 8 +const IN_CREATE = 256 +const IN_DELETE = 512 +const IN_DELETE_SELF = 1024 +const IN_DONT_FOLLOW = 33554432 +const IN_EXCL_UNLINK = 67108864 +const IN_IGNORED = 32768 +const IN_ISDIR = 1073741824 +const IN_MASK_ADD = 536870912 +const IN_MASK_CREATE = 268435456 +const IN_MODIFY = 2 +const IN_MOVE = 192 +const IN_MOVED_FROM = 64 +const IN_MOVED_TO = 128 +const IN_MOVE_SELF = 2048 +const IN_NONBLOCK = 2048 +const IN_ONESHOT = 2147483648 +const IN_ONLYDIR = 16777216 +const IN_OPEN = 32 +const IN_Q_OVERFLOW = 16384 +const IN_UNMOUNT = 8192 + +type Tinotify_event = struct { + Fwd int32 + Fmask Tuint32_t + Fcookie Tuint32_t + Flen1 Tuint32_t +} + +func Xinotify_init(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xinotify_init1(tls, 0) +} + +func Xinotify_init1(tls *TLS, flags int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v flags=%v, (%v:)", tls, flags, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + r = int32(X__syscall1(tls, int64(SYS_inotify_init1), int64(flags))) + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func Xinotify_add_watch(tls *TLS, fd int32, pathname uintptr, mask Tuint32_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v pathname=%v mask=%v, (%v:)", tls, fd, pathname, mask, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_inotify_add_watch), int64(fd), int64(pathname), Int64FromUint32(mask))))) +} + +func Xinotify_rm_watch(tls *TLS, fd int32, wd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v wd=%v, (%v:)", tls, fd, wd, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_inotify_rm_watch), int64(fd), int64(wd))))) +} + +func Xklogctl(tls *TLS, type1 int32, buf uintptr, len1 int32) (r int32) { + if __ccgo_strace { + trc("tls=%v type1=%v buf=%v len1=%v, (%v:)", tls, type1, buf, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_syslog), int64(type1), int64(buf), int64(len1))))) +} + +const MADV_COLD = 20 +const MADV_DODUMP = 17 +const MADV_DOFORK = 11 +const MADV_DONTDUMP = 16 +const MADV_DONTFORK = 10 +const MADV_DONTNEED = 4 +const MADV_FREE = 8 +const MADV_HUGEPAGE = 14 +const MADV_HWPOISON = 100 +const MADV_KEEPONFORK = 19 +const MADV_MERGEABLE = 12 +const MADV_NOHUGEPAGE = 15 +const MADV_NORMAL = 0 +const MADV_PAGEOUT = 21 +const MADV_RANDOM = 1 +const MADV_REMOVE = 9 +const MADV_SEQUENTIAL = 2 +const MADV_SOFT_OFFLINE = 101 +const MADV_UNMERGEABLE = 13 +const MADV_WILLNEED = 3 +const MADV_WIPEONFORK = 18 +const MFD_ALLOW_SEALING = 2 +const MFD_CLOEXEC = 1 +const MFD_HUGETLB = 4 +const MLOCK_ONFAULT = 1 +const MREMAP_DONTUNMAP = 4 +const MREMAP_FIXED = 2 +const MREMAP_MAYMOVE = 1 +const _GNU_SOURCE = 1 + +func Xmemfd_create(tls *TLS, name uintptr, flags uint32) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v flags=%v, (%v:)", tls, name, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_memfd_create), int64(name), Int64FromUint32(flags))))) +} + +func Xmlock2(tls *TLS, addr uintptr, len1 Tsize_t, flags uint32) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v len1=%v flags=%v, (%v:)", tls, addr, len1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + if flags == uint32(0) { + return Xmlock(tls, addr, len1) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_mlock2), int64(addr), Int64FromUint64(len1), Int64FromUint32(flags))))) +} + +func Xinit_module(tls *TLS, a uintptr, b uint64, c uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v a=%v b=%v c=%v, (%v:)", tls, a, b, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_init_module), int64(a), Int64FromUint64(b), int64(c))))) +} + +func Xdelete_module(tls *TLS, a uintptr, b uint32) (r int32) { + if __ccgo_strace { + trc("tls=%v a=%v b=%v, (%v:)", tls, a, b, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_delete_module), int64(a), Int64FromUint32(b))))) +} + +const BLKBSZGET = 2147488368 +const BLKBSZSET = 1073746545 +const BLKFLSBUF = 4705 +const BLKFRAGET = 4709 +const BLKFRASET = 4708 +const BLKGETSIZE = 4704 +const BLKGETSIZE64 = 2147488370 +const BLKRAGET = 4707 +const BLKRASET = 4706 +const BLKROGET = 4702 +const BLKROSET = 4701 +const BLKRRPART = 4703 +const BLKSECTGET = 4711 +const BLKSECTSET = 4710 +const BLKSSZGET = 4712 +const FIOASYNC = 21586 +const FIOCLEX = 21585 +const FIOGETOWN = 35075 +const FIONBIO = 21537 +const FIONCLEX = 21584 +const FIONREAD = 21531 +const FIOQSIZE = 21600 +const FIOSETOWN = 35073 +const MNT_DETACH = 2 +const MNT_EXPIRE = 4 +const MNT_FORCE = 1 +const MS_ACTIVE = 1073741824 +const MS_BIND = 4096 +const MS_BORN = 536870912 +const MS_DIRSYNC = 128 +const MS_I_VERSION = 8388608 +const MS_KERNMOUNT = 4194304 +const MS_LAZYTIME = 33554432 +const MS_MANDLOCK = 64 +const MS_MGC_MSK = 4294901760 +const MS_MGC_VAL = 3236757504 +const MS_MOVE = 8192 +const MS_NOATIME = 1024 +const MS_NODEV = 4 +const MS_NODIRATIME = 2048 +const MS_NOEXEC = 8 +const MS_NOREMOTELOCK = 134217728 +const MS_NOSEC = 268435456 +const MS_NOSUID = 2 +const MS_NOSYMFOLLOW = 256 +const MS_NOUSER = 2147483648 +const MS_POSIXACL = 65536 +const MS_PRIVATE = 262144 +const MS_RDONLY = 1 +const MS_REC = 16384 +const MS_RELATIME = 2097152 +const MS_REMOUNT = 32 +const MS_RMT_MASK = 41943121 +const MS_SHARED = 1048576 +const MS_SILENT = 32768 +const MS_SLAVE = 524288 +const MS_STRICTATIME = 16777216 +const MS_SYNCHRONOUS = 16 +const MS_UNBINDABLE = 131072 +const N_6PACK = 7 +const N_AX25 = 5 +const N_CAIF = 20 +const N_GIGASET_M101 = 16 +const N_GSM0710 = 21 +const N_HCI = 15 +const N_HDLC = 13 +const N_IRDA = 11 +const N_MASC = 8 +const N_MOUSE = 2 +const N_NCI = 25 +const N_NULL = 27 +const N_PPP = 3 +const N_PPS = 18 +const N_PROFIBUS_FDL = 10 +const N_R3964 = 9 +const N_SLCAN = 17 +const N_SLIP = 1 +const N_SMSBLOCK = 12 +const N_SPEAKUP = 26 +const N_STRIP = 4 +const N_SYNC_PPP = 14 +const N_TI_WL = 22 +const N_TRACEROUTER = 24 +const N_TRACESINK = 23 +const N_TTY = 0 +const N_V253 = 19 +const N_X25 = 6 +const SIOCADDDLCI = 35200 +const SIOCADDMULTI = 35121 +const SIOCADDRT = 35083 +const SIOCATMARK = 35077 +const SIOCDARP = 35155 +const SIOCDELDLCI = 35201 +const SIOCDELMULTI = 35122 +const SIOCDELRT = 35084 +const SIOCDEVPRIVATE = 35312 +const SIOCDIFADDR = 35126 +const SIOCDRARP = 35168 +const SIOCGARP = 35156 +const SIOCGIFADDR = 35093 +const SIOCGIFBR = 35136 +const SIOCGIFBRDADDR = 35097 +const SIOCGIFCONF = 35090 +const SIOCGIFCOUNT = 35128 +const SIOCGIFDSTADDR = 35095 +const SIOCGIFENCAP = 35109 +const SIOCGIFFLAGS = 35091 +const SIOCGIFHWADDR = 35111 +const SIOCGIFINDEX = 35123 +const SIOCGIFMAP = 35184 +const SIOCGIFMEM = 35103 +const SIOCGIFMETRIC = 35101 +const SIOCGIFMTU = 35105 +const SIOCGIFNAME = 35088 +const SIOCGIFNETMASK = 35099 +const SIOCGIFPFLAGS = 35125 +const SIOCGIFSLAVE = 35113 +const SIOCGIFTXQLEN = 35138 +const SIOCGPGRP = 35076 +const SIOCGRARP = 35169 +const SIOCGSTAMP = 35078 +const SIOCGSTAMPNS = 35079 +const SIOCPROTOPRIVATE = 35296 +const SIOCRTMSG = 35085 +const SIOCSARP = 35157 +const SIOCSIFADDR = 35094 +const SIOCSIFBR = 35137 +const SIOCSIFBRDADDR = 35098 +const SIOCSIFDSTADDR = 35096 +const SIOCSIFENCAP = 35110 +const SIOCSIFFLAGS = 35092 +const SIOCSIFHWADDR = 35108 +const SIOCSIFHWBROADCAST = 35127 +const SIOCSIFLINK = 35089 +const SIOCSIFMAP = 35185 +const SIOCSIFMEM = 35104 +const SIOCSIFMETRIC = 35102 +const SIOCSIFMTU = 35106 +const SIOCSIFNAME = 35107 +const SIOCSIFNETMASK = 35100 +const SIOCSIFPFLAGS = 35124 +const SIOCSIFSLAVE = 35120 +const SIOCSIFTXQLEN = 35139 +const SIOCSPGRP = 35074 +const SIOCSRARP = 35170 +const SIOGIFINDEX = 35123 +const TCFLSH = 21515 +const TCGETA = 21509 +const TCGETS = 21505 +const TCGETX = 21554 +const TCSBRK = 21513 +const TCSBRKP = 21541 +const TCSETA = 21510 +const TCSETAF = 21512 +const TCSETAW = 21511 +const TCSETS = 21506 +const TCSETSF = 21508 +const TCSETSW = 21507 +const TCSETX = 21555 +const TCSETXF = 21556 +const TCSETXW = 21557 +const TCXONC = 21514 +const TIOCCBRK = 21544 +const TIOCCONS = 21533 +const TIOCEXCL = 21516 +const TIOCGDEV = 2147767346 +const TIOCGETD = 21540 +const TIOCGEXCL = 2147767360 +const TIOCGICOUNT = 21597 +const TIOCGISO7816 = 2150126658 +const TIOCGLCKTRMIOS = 21590 +const TIOCGPGRP = 21519 +const TIOCGPKT = 2147767352 +const TIOCGPTLCK = 2147767353 +const TIOCGPTN = 2147767344 +const TIOCGPTPEER = 21569 +const TIOCGRS485 = 21550 +const TIOCGSERIAL = 21534 +const TIOCGSID = 21545 +const TIOCGSOFTCAR = 21529 +const TIOCGWINSZ = 21523 +const TIOCINQ = 21531 +const TIOCLINUX = 21532 +const TIOCMBIC = 21527 +const TIOCMBIS = 21526 +const TIOCMGET = 21525 +const TIOCMIWAIT = 21596 +const TIOCMSET = 21528 +const TIOCM_CAR = 64 +const TIOCM_CD = 64 +const TIOCM_CTS = 32 +const TIOCM_DSR = 256 +const TIOCM_DTR = 2 +const TIOCM_LE = 1 +const TIOCM_LOOP = 32768 +const TIOCM_OUT1 = 8192 +const TIOCM_OUT2 = 16384 +const TIOCM_RI = 128 +const TIOCM_RNG = 128 +const TIOCM_RTS = 4 +const TIOCM_SR = 16 +const TIOCM_ST = 8 +const TIOCNOTTY = 21538 +const TIOCNXCL = 21517 +const TIOCOUTQ = 21521 +const TIOCPKT = 21536 +const TIOCPKT_DATA = 0 +const TIOCPKT_DOSTOP = 32 +const TIOCPKT_FLUSHREAD = 1 +const TIOCPKT_FLUSHWRITE = 2 +const TIOCPKT_IOCTL = 64 +const TIOCPKT_NOSTOP = 16 +const TIOCPKT_START = 8 +const TIOCPKT_STOP = 4 +const TIOCSBRK = 21543 +const TIOCSCTTY = 21518 +const TIOCSERCONFIG = 21587 +const TIOCSERGETLSR = 21593 +const TIOCSERGETMULTI = 21594 +const TIOCSERGSTRUCT = 21592 +const TIOCSERGWILD = 21588 +const TIOCSERSETMULTI = 21595 +const TIOCSERSWILD = 21589 +const TIOCSER_TEMT = 1 +const TIOCSETD = 21539 +const TIOCSIG = 1074025526 +const TIOCSISO7816 = 3223868483 +const TIOCSLCKTRMIOS = 21591 +const TIOCSPGRP = 21520 +const TIOCSPTLCK = 1074025521 +const TIOCSRS485 = 21551 +const TIOCSSERIAL = 21535 +const TIOCSSOFTCAR = 21530 +const TIOCSTI = 21522 +const TIOCSWINSZ = 21524 +const TIOCVHANGUP = 21559 +const UMOUNT_NOFOLLOW = 8 +const _IOC_NONE = 0 +const _IOC_READ = 2 +const _IOC_WRITE = 1 + +func Xmount(tls *TLS, special uintptr, dir uintptr, fstype uintptr, flags uint64, data uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v special=%v dir=%v fstype=%v flags=%v data=%v, (%v:)", tls, special, dir, fstype, flags, data, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_mount), int64(special), int64(dir), int64(fstype), Int64FromUint64(flags), int64(data))))) +} + +func Xumount(tls *TLS, special uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v special=%v, (%v:)", tls, special, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_umount2), int64(special), int64(Int32FromInt32(0)))))) +} + +func Xumount2(tls *TLS, special uintptr, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v special=%v flags=%v, (%v:)", tls, special, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_umount2), int64(special), int64(flags))))) +} + +func Xname_to_handle_at(tls *TLS, dirfd int32, pathname uintptr, handle uintptr, mount_id uintptr, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v dirfd=%v pathname=%v handle=%v mount_id=%v flags=%v, (%v:)", tls, dirfd, pathname, handle, mount_id, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_name_to_handle_at), int64(dirfd), int64(pathname), int64(handle), int64(mount_id), int64(flags))))) +} + +func Xopen_by_handle_at(tls *TLS, mount_fd int32, handle uintptr, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v mount_fd=%v handle=%v flags=%v, (%v:)", tls, mount_fd, handle, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_open_by_handle_at), int64(mount_fd), int64(handle), int64(flags))))) +} + +const ADDR_COMPAT_LAYOUT = 2097152 +const ADDR_LIMIT_32BIT = 8388608 +const ADDR_LIMIT_3GB = 134217728 +const ADDR_NO_RANDOMIZE = 262144 +const FDPIC_FUNCPTRS = 524288 +const MMAP_PAGE_ZERO = 1048576 +const PER_BSD = 6 +const PER_HPUX = 16 +const PER_IRIX32 = 67108873 +const PER_IRIX64 = 67108875 +const PER_IRIXN32 = 67108874 +const PER_ISCR4 = 67108869 +const PER_LINUX = 0 +const PER_LINUX32 = 8 +const PER_LINUX32_3GB = 134217736 +const PER_LINUX_32BIT = 8388608 +const PER_LINUX_FDPIC = 524288 +const PER_MASK = 255 +const PER_OSF4 = 15 +const PER_OSR5 = 100663299 +const PER_RISCOS = 12 +const PER_SCOSVR3 = 117440515 +const PER_SOLARIS = 67108877 +const PER_SUNOS = 67108870 +const PER_SVR3 = 83886082 +const PER_SVR4 = 68157441 +const PER_UW7 = 68157454 +const PER_WYSEV386 = 83886084 +const PER_XENIX = 83886087 +const READ_IMPLIES_EXEC = 4194304 +const SHORT_INODE = 16777216 +const STICKY_TIMEOUTS = 67108864 +const UNAME26 = 131072 +const WHOLE_SECONDS = 33554432 + +func Xpersonality(tls *TLS, persona uint64) (r int32) { + if __ccgo_strace { + trc("tls=%v persona=%v, (%v:)", tls, persona, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_personality), Int64FromUint64(persona))))) +} + +func Xpivot_root(tls *TLS, new1 uintptr, old uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v new1=%v old=%v, (%v:)", tls, new1, old, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_pivot_root), int64(new1), int64(old))))) +} + +const PR_CAPBSET_DROP = 24 +const PR_CAPBSET_READ = 23 +const PR_CAP_AMBIENT = 47 +const PR_CAP_AMBIENT_CLEAR_ALL = 4 +const PR_CAP_AMBIENT_IS_SET = 1 +const PR_CAP_AMBIENT_LOWER = 3 +const PR_CAP_AMBIENT_RAISE = 2 +const PR_ENDIAN_BIG = 0 +const PR_ENDIAN_LITTLE = 1 +const PR_ENDIAN_PPC_LITTLE = 2 +const PR_FPEMU_NOPRINT = 1 +const PR_FPEMU_SIGFPE = 2 +const PR_FP_EXC_ASYNC = 2 +const PR_FP_EXC_DISABLED = 0 +const PR_FP_EXC_DIV = 65536 +const PR_FP_EXC_INV = 1048576 +const PR_FP_EXC_NONRECOV = 1 +const PR_FP_EXC_OVF = 131072 +const PR_FP_EXC_PRECISE = 3 +const PR_FP_EXC_RES = 524288 +const PR_FP_EXC_SW_ENABLE = 128 +const PR_FP_EXC_UND = 262144 +const PR_FP_MODE_FR = 1 +const PR_FP_MODE_FRE = 2 +const PR_GET_CHILD_SUBREAPER = 37 +const PR_GET_DUMPABLE = 3 +const PR_GET_ENDIAN = 19 +const PR_GET_FPEMU = 9 +const PR_GET_FPEXC = 11 +const PR_GET_FP_MODE = 46 +const PR_GET_IO_FLUSHER = 58 +const PR_GET_KEEPCAPS = 7 +const PR_GET_NAME = 16 +const PR_GET_NO_NEW_PRIVS = 39 +const PR_GET_PDEATHSIG = 2 +const PR_GET_SECCOMP = 21 +const PR_GET_SECUREBITS = 27 +const PR_GET_SPECULATION_CTRL = 52 +const PR_GET_TAGGED_ADDR_CTRL = 56 +const PR_GET_THP_DISABLE = 42 +const PR_GET_TID_ADDRESS = 40 +const PR_GET_TIMERSLACK = 30 +const PR_GET_TIMING = 13 +const PR_GET_TSC = 25 +const PR_GET_UNALIGN = 5 +const PR_MCE_KILL = 33 +const PR_MCE_KILL_CLEAR = 0 +const PR_MCE_KILL_DEFAULT = 2 +const PR_MCE_KILL_EARLY = 1 +const PR_MCE_KILL_GET = 34 +const PR_MCE_KILL_LATE = 0 +const PR_MCE_KILL_SET = 1 +const PR_MPX_DISABLE_MANAGEMENT = 44 +const PR_MPX_ENABLE_MANAGEMENT = 43 +const PR_MTE_TAG_MASK = 524280 +const PR_MTE_TAG_SHIFT = 3 +const PR_MTE_TCF_ASYNC = 4 +const PR_MTE_TCF_MASK = 6 +const PR_MTE_TCF_NONE = 0 +const PR_MTE_TCF_SHIFT = 1 +const PR_MTE_TCF_SYNC = 2 +const PR_PAC_APDAKEY = 4 +const PR_PAC_APDBKEY = 8 +const PR_PAC_APGAKEY = 16 +const PR_PAC_APIAKEY = 1 +const PR_PAC_APIBKEY = 2 +const PR_PAC_GET_ENABLED_KEYS = 61 +const PR_PAC_RESET_KEYS = 54 +const PR_PAC_SET_ENABLED_KEYS = 60 +const PR_SET_CHILD_SUBREAPER = 36 +const PR_SET_DUMPABLE = 4 +const PR_SET_ENDIAN = 20 +const PR_SET_FPEMU = 10 +const PR_SET_FPEXC = 12 +const PR_SET_FP_MODE = 45 +const PR_SET_IO_FLUSHER = 57 +const PR_SET_KEEPCAPS = 8 +const PR_SET_MM = 35 +const PR_SET_MM_ARG_END = 9 +const PR_SET_MM_ARG_START = 8 +const PR_SET_MM_AUXV = 12 +const PR_SET_MM_BRK = 7 +const PR_SET_MM_END_CODE = 2 +const PR_SET_MM_END_DATA = 4 +const PR_SET_MM_ENV_END = 11 +const PR_SET_MM_ENV_START = 10 +const PR_SET_MM_EXE_FILE = 13 +const PR_SET_MM_MAP = 14 +const PR_SET_MM_MAP_SIZE = 15 +const PR_SET_MM_START_BRK = 6 +const PR_SET_MM_START_CODE = 1 +const PR_SET_MM_START_DATA = 3 +const PR_SET_MM_START_STACK = 5 +const PR_SET_NAME = 15 +const PR_SET_NO_NEW_PRIVS = 38 +const PR_SET_PDEATHSIG = 1 +const PR_SET_PTRACER = 1499557217 +const PR_SET_PTRACER_ANY = 18446744073709551615 +const PR_SET_SECCOMP = 22 +const PR_SET_SECUREBITS = 28 +const PR_SET_SPECULATION_CTRL = 53 +const PR_SET_SYSCALL_USER_DISPATCH = 59 +const PR_SET_TAGGED_ADDR_CTRL = 55 +const PR_SET_THP_DISABLE = 41 +const PR_SET_TIMERSLACK = 29 +const PR_SET_TIMING = 14 +const PR_SET_TSC = 26 +const PR_SET_UNALIGN = 6 +const PR_SPEC_DISABLE = 4 +const PR_SPEC_DISABLE_NOEXEC = 16 +const PR_SPEC_ENABLE = 2 +const PR_SPEC_FORCE_DISABLE = 8 +const PR_SPEC_INDIRECT_BRANCH = 1 +const PR_SPEC_NOT_AFFECTED = 0 +const PR_SPEC_PRCTL = 1 +const PR_SPEC_STORE_BYPASS = 0 +const PR_SVE_GET_VL = 51 +const PR_SVE_SET_VL = 50 +const PR_SVE_SET_VL_ONEXEC = 262144 +const PR_SVE_VL_INHERIT = 131072 +const PR_SVE_VL_LEN_MASK = 65535 +const PR_SYS_DISPATCH_OFF = 0 +const PR_SYS_DISPATCH_ON = 1 +const PR_TAGGED_ADDR_ENABLE = 1 +const PR_TASK_PERF_EVENTS_DISABLE = 31 +const PR_TASK_PERF_EVENTS_ENABLE = 32 +const PR_TIMING_STATISTICAL = 0 +const PR_TIMING_TIMESTAMP = 1 +const PR_TSC_ENABLE = 1 +const PR_TSC_SIGSEGV = 2 +const PR_UNALIGN_NOPRINT = 1 +const PR_UNALIGN_SIGBUS = 2 +const SYSCALL_DISPATCH_FILTER_ALLOW = 0 +const SYSCALL_DISPATCH_FILTER_BLOCK = 1 + +type Tprctl_mm_map = struct { + Fstart_code Tuint64_t + Fend_code Tuint64_t + Fstart_data Tuint64_t + Fend_data Tuint64_t + Fstart_brk Tuint64_t + Fbrk Tuint64_t + Fstart_stack Tuint64_t + Farg_start Tuint64_t + Farg_end Tuint64_t + Fenv_start Tuint64_t + Fenv_end Tuint64_t + Fauxv uintptr + Fauxv_size Tuint32_t + Fexe_fd Tuint32_t +} + +func Xprctl(tls *TLS, op int32, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v op=%v va=%v, (%v:)", tls, op, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var i int32 + var x [4]uint64 + _, _, _ = ap, i, x + ap = va + i = 0 + for { + if !(i < int32(4)) { + break + } + x[i] = VaUint64(&ap) + goto _1 + _1: + ; + i = i + 1 + } + _ = ap + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_prctl), int64(op), Int64FromUint64(x[0]), Int64FromUint64(x[int32(1)]), Int64FromUint64(x[int32(2)]), Int64FromUint64(x[int32(3)]))))) +} + +const RWF_APPEND = 16 +const RWF_DSYNC = 2 +const RWF_HIPRI = 1 +const RWF_NOWAIT = 8 +const RWF_SYNC = 4 +const UIO_MAXIOV = 1024 + +func Xpreadv2(tls *TLS, fd int32, iov uintptr, count int32, ofs Toff_t, flags int32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v iov=%v count=%v ofs=%v flags=%v, (%v:)", tls, fd, iov, count, ofs, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + if !(flags != 0) { + if ofs == int64(-int32(1)) { + return Xreadv(tls, fd, iov, count) + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_preadv), int64(fd), int64(iov), int64(count), ofs, ofs>>Int32FromInt32(32), 0))) + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_preadv2), int64(fd), int64(iov), int64(count), ofs, ofs>>Int32FromInt32(32), int64(flags)))) +} + +func Xprlimit(tls *TLS, pid Tpid_t, resource int32, new_limit uintptr, old_limit uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v pid=%v resource=%v new_limit=%v old_limit=%v, (%v:)", tls, pid, resource, new_limit, old_limit, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var r int32 + var _ /* tmp at bp+0 */ Trlimit + _ = r + if new_limit != 0 && Bool(^Uint64FromUint64(0) != ^Uint64FromUint64(0)) { + **(**Trlimit)(__ccgo_up(bp)) = **(**Trlimit)(__ccgo_up(new_limit)) + if (**(**Trlimit)(__ccgo_up(bp))).Frlim_cur >= ^Uint64FromUint64(0) { + (**(**Trlimit)(__ccgo_up(bp))).Frlim_cur = ^Uint64FromUint64(0) + } + if (**(**Trlimit)(__ccgo_up(bp))).Frlim_max >= ^Uint64FromUint64(0) { + (**(**Trlimit)(__ccgo_up(bp))).Frlim_max = ^Uint64FromUint64(0) + } + new_limit = bp + } + r = int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_prlimit64), int64(pid), int64(resource), int64(new_limit), int64(old_limit))))) + if !(r != 0) && old_limit != 0 && Bool(^Uint64FromUint64(0) != ^Uint64FromUint64(0)) { + if (*Trlimit)(unsafe.Pointer(old_limit)).Frlim_cur >= ^Uint64FromUint64(0) { + (*Trlimit)(unsafe.Pointer(old_limit)).Frlim_cur = ^Uint64FromUint64(0) + } + if (*Trlimit)(unsafe.Pointer(old_limit)).Frlim_max >= ^Uint64FromUint64(0) { + (*Trlimit)(unsafe.Pointer(old_limit)).Frlim_max = ^Uint64FromUint64(0) + } + } + return r +} + +func Xprocess_vm_writev(tls *TLS, pid Tpid_t, lvec uintptr, liovcnt uint64, rvec uintptr, riovcnt uint64, flags uint64) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v pid=%v lvec=%v liovcnt=%v rvec=%v riovcnt=%v flags=%v, (%v:)", tls, pid, lvec, liovcnt, rvec, riovcnt, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall6(tls, int64(SYS_process_vm_writev), int64(pid), int64(lvec), Int64FromUint64(liovcnt), int64(rvec), Int64FromUint64(riovcnt), Int64FromUint64(flags)))) +} + +func Xprocess_vm_readv(tls *TLS, pid Tpid_t, lvec uintptr, liovcnt uint64, rvec uintptr, riovcnt uint64, flags uint64) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v pid=%v lvec=%v liovcnt=%v rvec=%v riovcnt=%v flags=%v, (%v:)", tls, pid, lvec, liovcnt, rvec, riovcnt, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall6(tls, int64(SYS_process_vm_readv), int64(pid), int64(lvec), Int64FromUint64(liovcnt), int64(rvec), Int64FromUint64(riovcnt), Int64FromUint64(flags)))) +} + +const PTRACE_ATTACH = 16 +const PTRACE_CONT = 7 +const PTRACE_DETACH = 17 +const PTRACE_EVENT_CLONE = 3 +const PTRACE_EVENT_EXEC = 4 +const PTRACE_EVENT_EXIT = 6 +const PTRACE_EVENT_FORK = 1 +const PTRACE_EVENT_SECCOMP = 7 +const PTRACE_EVENT_STOP = 128 +const PTRACE_EVENT_VFORK = 2 +const PTRACE_EVENT_VFORK_DONE = 5 +const PTRACE_GETEVENTMSG = 16897 +const PTRACE_GETFPREGS = 14 +const PTRACE_GETFPXREGS = 18 +const PTRACE_GETREGS = 12 +const PTRACE_GETREGSET = 16900 +const PTRACE_GETSIGINFO = 16898 +const PTRACE_GETSIGMASK = 16906 +const PTRACE_GET_RSEQ_CONFIGURATION = 16911 +const PTRACE_GET_SYSCALL_INFO = 16910 +const PTRACE_INTERRUPT = 16903 +const PTRACE_KILL = 8 +const PTRACE_LISTEN = 16904 +const PTRACE_O_EXITKILL = 1048576 +const PTRACE_O_MASK = 3145983 +const PTRACE_O_SUSPEND_SECCOMP = 2097152 +const PTRACE_O_TRACECLONE = 8 +const PTRACE_O_TRACEEXEC = 16 +const PTRACE_O_TRACEEXIT = 64 +const PTRACE_O_TRACEFORK = 2 +const PTRACE_O_TRACESECCOMP = 128 +const PTRACE_O_TRACESYSGOOD = 1 +const PTRACE_O_TRACEVFORK = 4 +const PTRACE_O_TRACEVFORKDONE = 32 +const PTRACE_PEEKDATA = 2 +const PTRACE_PEEKSIGINFO = 16905 +const PTRACE_PEEKSIGINFO_SHARED = 1 +const PTRACE_PEEKTEXT = 1 +const PTRACE_PEEKUSER = 3 +const PTRACE_POKEDATA = 5 +const PTRACE_POKETEXT = 4 +const PTRACE_POKEUSER = 6 +const PTRACE_SECCOMP_GET_FILTER = 16908 +const PTRACE_SECCOMP_GET_METADATA = 16909 +const PTRACE_SEIZE = 16902 +const PTRACE_SETFPREGS = 15 +const PTRACE_SETFPXREGS = 19 +const PTRACE_SETOPTIONS = 16896 +const PTRACE_SETREGS = 13 +const PTRACE_SETREGSET = 16901 +const PTRACE_SETSIGINFO = 16899 +const PTRACE_SETSIGMASK = 16907 +const PTRACE_SINGLESTEP = 9 +const PTRACE_SYSCALL = 24 +const PTRACE_SYSCALL_INFO_ENTRY = 1 +const PTRACE_SYSCALL_INFO_EXIT = 2 +const PTRACE_SYSCALL_INFO_NONE = 0 +const PTRACE_SYSCALL_INFO_SECCOMP = 3 +const PTRACE_TRACEME = 0 +const PT_ATTACH = 16 +const PT_CONTINUE = 7 +const PT_DETACH = 17 +const PT_GETEVENTMSG = 16897 +const PT_GETFPREGS = 14 +const PT_GETFPXREGS = 18 +const PT_GETREGS = 12 +const PT_GETSIGINFO = 16898 +const PT_KILL = 8 +const PT_READ_D = 2 +const PT_READ_I = 1 +const PT_READ_U = 3 +const PT_SETFPREGS = 15 +const PT_SETFPXREGS = 19 +const PT_SETOPTIONS = 16896 +const PT_SETREGS = 13 +const PT_SETSIGINFO = 16899 +const PT_STEP = 9 +const PT_SYSCALL = 24 +const PT_TRACE_ME = 0 +const PT_WRITE_D = 5 +const PT_WRITE_I = 4 +const PT_WRITE_U = 6 + +type t__ptrace_peeksiginfo_args = struct { + Foff Tuint64_t + Fflags Tuint32_t + Fnr Tint32_t +} + +type t__ptrace_seccomp_metadata = struct { + Ffilter_off Tuint64_t + Fflags Tuint64_t +} + +type t__ptrace_syscall_info = struct { + Fop Tuint8_t + F__pad [3]Tuint8_t + Farch Tuint32_t + Finstruction_pointer Tuint64_t + Fstack_pointer Tuint64_t + F__ccgo5_24 struct { + Fexit [0]struct { + Frval Tint64_t + Fis_error Tuint8_t + } + Fseccomp [0]struct { + Fnr Tuint64_t + Fargs [6]Tuint64_t + Fret_data Tuint32_t + } + Fentry struct { + Fnr Tuint64_t + Fargs [6]Tuint64_t + } + F__ccgo_pad3 [8]byte + } +} + +type t__ptrace_rseq_configuration = struct { + Frseq_abi_pointer Tuint64_t + Frseq_abi_size Tuint32_t + Fsignature Tuint32_t + Fflags Tuint32_t + Fpad Tuint32_t +} + +func Xptrace(tls *TLS, req int32, va uintptr) (r int64) { + if __ccgo_strace { + trc("tls=%v req=%v va=%v, (%v:)", tls, req, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var addr, addr2, data uintptr + var ap Tva_list + var pid Tpid_t + var ret int64 + var _ /* result at bp+0 */ int64 + _, _, _, _, _, _ = addr, addr2, ap, data, pid, ret + addr2 = uintptr(0) + ap = va + pid = VaInt32(&ap) + addr = VaUintptr(&ap) + data = VaUintptr(&ap) + /* PTRACE_{READ,WRITE}{DATA,TEXT} (16...19) are specific to SPARC. */ + _ = ap + if Uint32FromInt32(req)-uint32(1) < uint32(3) { + data = bp + } + ret = X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_ptrace), int64(req), int64(pid), int64(addr), int64(data), int64(addr2)))) + if ret < 0 || Uint32FromInt32(req)-uint32(1) >= uint32(3) { + return ret + } + return **(**int64)(__ccgo_up(bp)) +} + +func Xpwritev2(tls *TLS, fd int32, iov uintptr, count int32, ofs Toff_t, flags int32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v iov=%v count=%v ofs=%v flags=%v, (%v:)", tls, fd, iov, count, ofs, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + if !(flags != 0) { + if ofs == int64(-int32(1)) { + return Xwritev(tls, fd, iov, count) + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_pwritev), int64(fd), int64(iov), int64(count), ofs, ofs>>Int32FromInt32(32), 0))) + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_pwritev2), int64(fd), int64(iov), int64(count), ofs, ofs>>Int32FromInt32(32), int64(flags)))) +} + +const GRPQUOTA = 1 +const IIF_ALL = 7 +const IIF_BGRACE = 1 +const IIF_FLAGS = 4 +const IIF_IGRACE = 2 +const MAXQUOTAS = 2 +const MAX_DQ_TIME = 604800 +const MAX_IQ_TIME = 604800 +const NR_DQHASH = 43 +const NR_DQUOTS = 256 +const QFMT_OCFS2 = 3 +const QFMT_VFS_OLD = 1 +const QFMT_VFS_V0 = 2 +const QFMT_VFS_V1 = 4 +const QIF_ALL = 63 +const QIF_BLIMITS = 1 +const QIF_BTIME = 16 +const QIF_ILIMITS = 4 +const QIF_INODES = 8 +const QIF_ITIME = 32 +const QIF_LIMITS = 5 +const QIF_SPACE = 2 +const QIF_TIMES = 48 +const QIF_USAGE = 10 +const QUOTAFILENAME = "quota" +const QUOTAGROUP = "staff" +const Q_GETFMT = 8388612 +const Q_GETINFO = 8388613 +const Q_GETQUOTA = 8388615 +const Q_QUOTAOFF = 8388611 +const Q_QUOTAON = 8388610 +const Q_SETINFO = 8388614 +const Q_SETQUOTA = 8388616 +const Q_SYNC = 8388609 +const SUBCMDMASK = 255 +const SUBCMDSHIFT = 8 +const USRQUOTA = 0 +const _LINUX_QUOTA_VERSION = 2 + +type Tdqblk = struct { + Fdqb_bhardlimit Tuint64_t + Fdqb_bsoftlimit Tuint64_t + Fdqb_curspace Tuint64_t + Fdqb_ihardlimit Tuint64_t + Fdqb_isoftlimit Tuint64_t + Fdqb_curinodes Tuint64_t + Fdqb_btime Tuint64_t + Fdqb_itime Tuint64_t + Fdqb_valid Tuint32_t +} + +type Tdqinfo = struct { + Fdqi_bgrace Tuint64_t + Fdqi_igrace Tuint64_t + Fdqi_flags Tuint32_t + Fdqi_valid Tuint32_t +} + +func Xquotactl(tls *TLS, cmd int32, special uintptr, id int32, addr uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v cmd=%v special=%v id=%v addr=%v, (%v:)", tls, cmd, special, id, addr, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_quotactl), int64(cmd), int64(special), int64(id), int64(addr))))) +} + +func Xreadahead(tls *TLS, fd int32, pos Toff_t, len1 Tsize_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v pos=%v len1=%v, (%v:)", tls, fd, pos, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_readahead), int64(fd), pos, Int64FromUint64(len1)))) +} + +const RB_AUTOBOOT = 19088743 +const RB_DISABLE_CAD = 0 +const RB_ENABLE_CAD = 2309737967 +const RB_HALT_SYSTEM = 3454992675 +const RB_KEXEC = 1163412803 +const RB_POWER_OFF = 1126301404 +const RB_SW_SUSPEND = 3489725666 + +func Xreboot(tls *TLS, type1 int32) (r int32) { + if __ccgo_strace { + trc("tls=%v type1=%v, (%v:)", tls, type1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_reboot), Int64FromUint32(Uint32FromUint32(0xfee1dead)), int64(Int32FromInt32(672274793)), int64(type1))))) +} + +func Xremap_file_pages(tls *TLS, addr uintptr, size Tsize_t, prot int32, pgoff Tsize_t, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v size=%v prot=%v pgoff=%v flags=%v, (%v:)", tls, addr, size, prot, pgoff, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_remap_file_pages), int64(addr), Int64FromUint64(size), int64(prot), Int64FromUint64(pgoff), int64(flags))))) +} + +func Xsbrk(tls *TLS, inc Tintptr_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v inc=%v, (%v:)", tls, inc, origin(2)) + defer func() { trc("-> %v", r) }() + } + if inc != 0 { + return uintptr(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(ENOMEM)))) + } + return uintptr(X__syscall1(tls, int64(SYS_brk), int64(Int32FromInt32(0)))) +} + +func Xsendfile(tls *TLS, out_fd int32, in_fd int32, ofs uintptr, count Tsize_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v out_fd=%v in_fd=%v ofs=%v count=%v, (%v:)", tls, out_fd, in_fd, ofs, count, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_sendfile), int64(out_fd), int64(in_fd), int64(ofs), Int64FromUint64(count)))) +} + +func Xsetfsgid(tls *TLS, gid Tgid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v gid=%v, (%v:)", tls, gid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_setfsgid), Int64FromUint32(gid))))) +} + +func Xsetfsuid(tls *TLS, uid Tuid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v uid=%v, (%v:)", tls, uid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_setfsuid), Int64FromUint32(uid))))) +} + +func Xsethostname(tls *TLS, name uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v len1=%v, (%v:)", tls, name, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_sethostname), int64(name), Int64FromUint64(len1))))) +} + +const CLONE_CHILD_CLEARTID = 2097152 +const CLONE_CHILD_SETTID = 16777216 +const CLONE_DETACHED = 4194304 +const CLONE_FILES = 1024 +const CLONE_FS = 512 +const CLONE_IO = 2147483648 +const CLONE_NEWCGROUP = 33554432 +const CLONE_NEWIPC = 134217728 +const CLONE_NEWNET = 1073741824 +const CLONE_NEWNS = 131072 +const CLONE_NEWPID = 536870912 +const CLONE_NEWTIME = 128 +const CLONE_NEWUSER = 268435456 +const CLONE_NEWUTS = 67108864 +const CLONE_PARENT = 32768 +const CLONE_PARENT_SETTID = 1048576 +const CLONE_PIDFD = 4096 +const CLONE_PTRACE = 8192 +const CLONE_SETTLS = 524288 +const CLONE_SIGHAND = 2048 +const CLONE_SYSVSEM = 262144 +const CLONE_THREAD = 65536 +const CLONE_UNTRACED = 8388608 +const CLONE_VFORK = 16384 +const CLONE_VM = 256 +const CPU_SETSIZE = 1024 +const CSIGNAL = 255 + +type Tcpu_set_t = struct { + F__bits [16]uint64 +} + +func Xsetns(tls *TLS, fd int32, nstype int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v nstype=%v, (%v:)", tls, fd, nstype, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_setns), int64(fd), int64(nstype))))) +} + +const __tm_gmtoff = 0 +const __tm_zone = 0 + +type Ttm1 = struct { + Ftm_sec int32 + Ftm_min int32 + Ftm_hour int32 + Ftm_mday int32 + Ftm_mon int32 + Ftm_year int32 + Ftm_wday int32 + Ftm_yday int32 + Ftm_isdst int32 + Ftm_gmtoff int64 + Ftm_zone uintptr +} + +func Xsettimeofday(tls *TLS, tv uintptr, tz uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v tv=%v tz=%v, (%v:)", tls, tv, tz, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + if !(tv != 0) { + return 0 + } + if Uint64FromInt64((*Ttimeval)(unsafe.Pointer(tv)).Ftv_usec) >= uint64(1000000) { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL)))) + } + *(*Ttimespec)(unsafe.Pointer(bp)) = Ttimespec{ + Ftv_sec: (*Ttimeval)(unsafe.Pointer(tv)).Ftv_sec, + Ftv_nsec: (*Ttimeval)(unsafe.Pointer(tv)).Ftv_usec * int64(1000), + } + return Xclock_settime(tls, CLOCK_REALTIME, bp) +} + +const SFD_CLOEXEC = 524288 +const SFD_NONBLOCK = 2048 + +type Tsignalfd_siginfo = struct { + Fssi_signo Tuint32_t + Fssi_errno Tint32_t + Fssi_code Tint32_t + Fssi_pid Tuint32_t + Fssi_uid Tuint32_t + Fssi_fd Tint32_t + Fssi_tid Tuint32_t + Fssi_band Tuint32_t + Fssi_overrun Tuint32_t + Fssi_trapno Tuint32_t + Fssi_status Tint32_t + Fssi_int Tint32_t + Fssi_ptr Tuint64_t + Fssi_utime Tuint64_t + Fssi_stime Tuint64_t + Fssi_addr Tuint64_t + Fssi_addr_lsb Tuint16_t + F__pad2 Tuint16_t + Fssi_syscall Tint32_t + Fssi_call_addr Tuint64_t + Fssi_arch Tuint32_t + F__pad [28]Tuint8_t +} + +func Xsignalfd(tls *TLS, fd int32, sigs uintptr, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v sigs=%v flags=%v, (%v:)", tls, fd, sigs, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret int32 + _ = ret + ret = int32(X__syscall4(tls, int64(SYS_signalfd4), int64(fd), int64(sigs), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8)), int64(flags))) + return int32(X__syscall_ret(tls, Uint64FromInt32(ret))) +} + +func Xsplice(tls *TLS, fd_in int32, off_in uintptr, fd_out int32, off_out uintptr, len1 Tsize_t, flags uint32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd_in=%v off_in=%v fd_out=%v off_out=%v len1=%v flags=%v, (%v:)", tls, fd_in, off_in, fd_out, off_out, len1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall6(tls, int64(SYS_splice), int64(fd_in), int64(off_in), int64(fd_out), int64(off_out), Int64FromUint64(len1), Int64FromUint32(flags)))) +} + +func Xstatx(tls *TLS, dirfd int32, path uintptr, flags int32, mask uint32, stx uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v dirfd=%v path=%v flags=%v mask=%v stx=%v, (%v:)", tls, dirfd, path, flags, mask, stx, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(128) + defer tls.Free(128) + var ret int32 + var _ /* st at bp+0 */ Tstat + _ = ret + ret = int32(X__syscall5(tls, int64(SYS_statx), int64(dirfd), int64(path), int64(flags), Int64FromUint32(mask), int64(stx))) + if ret != -int32(ENOSYS) { + return int32(X__syscall_ret(tls, Uint64FromInt32(ret))) + } + ret = Xfstatat(tls, dirfd, path, bp, flags) + if ret != 0 { + return ret + } + (*Tstatx)(unsafe.Pointer(stx)).Fstx_dev_major = uint32((**(**Tstat)(__ccgo_up(bp))).Fst_dev>>Int32FromInt32(31)>>Int32FromInt32(1)&Uint64FromUint32(0xfffff000) | (**(**Tstat)(__ccgo_up(bp))).Fst_dev>>Int32FromInt32(8)&Uint64FromInt32(0x00000fff)) + (*Tstatx)(unsafe.Pointer(stx)).Fstx_dev_minor = uint32((**(**Tstat)(__ccgo_up(bp))).Fst_dev>>Int32FromInt32(12)&Uint64FromUint32(0xffffff00) | (**(**Tstat)(__ccgo_up(bp))).Fst_dev&Uint64FromInt32(0x000000ff)) + (*Tstatx)(unsafe.Pointer(stx)).Fstx_ino = (**(**Tstat)(__ccgo_up(bp))).Fst_ino + (*Tstatx)(unsafe.Pointer(stx)).Fstx_mode = uint16((**(**Tstat)(__ccgo_up(bp))).Fst_mode) + (*Tstatx)(unsafe.Pointer(stx)).Fstx_nlink = (**(**Tstat)(__ccgo_up(bp))).Fst_nlink + (*Tstatx)(unsafe.Pointer(stx)).Fstx_uid = (**(**Tstat)(__ccgo_up(bp))).Fst_uid + (*Tstatx)(unsafe.Pointer(stx)).Fstx_gid = (**(**Tstat)(__ccgo_up(bp))).Fst_gid + (*Tstatx)(unsafe.Pointer(stx)).Fstx_size = Uint64FromInt64((**(**Tstat)(__ccgo_up(bp))).Fst_size) + (*Tstatx)(unsafe.Pointer(stx)).Fstx_blksize = Uint32FromInt32((**(**Tstat)(__ccgo_up(bp))).Fst_blksize) + (*Tstatx)(unsafe.Pointer(stx)).Fstx_blocks = Uint64FromInt64((**(**Tstat)(__ccgo_up(bp))).Fst_blocks) + (*Tstatx)(unsafe.Pointer(stx)).Fstx_atime.Ftv_sec = (**(**Tstat)(__ccgo_up(bp))).Fst_atim.Ftv_sec + (*Tstatx)(unsafe.Pointer(stx)).Fstx_atime.Ftv_nsec = Uint32FromInt64((**(**Tstat)(__ccgo_up(bp))).Fst_atim.Ftv_nsec) + (*Tstatx)(unsafe.Pointer(stx)).Fstx_mtime.Ftv_sec = (**(**Tstat)(__ccgo_up(bp))).Fst_mtim.Ftv_sec + (*Tstatx)(unsafe.Pointer(stx)).Fstx_mtime.Ftv_nsec = Uint32FromInt64((**(**Tstat)(__ccgo_up(bp))).Fst_mtim.Ftv_nsec) + (*Tstatx)(unsafe.Pointer(stx)).Fstx_ctime.Ftv_sec = (**(**Tstat)(__ccgo_up(bp))).Fst_ctim.Ftv_sec + (*Tstatx)(unsafe.Pointer(stx)).Fstx_ctime.Ftv_nsec = Uint32FromInt64((**(**Tstat)(__ccgo_up(bp))).Fst_ctim.Ftv_nsec) + (*Tstatx)(unsafe.Pointer(stx)).Fstx_btime = Tstatx_timestamp{} + (*Tstatx)(unsafe.Pointer(stx)).Fstx_mask = uint32(0x7ff) + return 0 +} + +func Xstime(tls *TLS, t uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v t=%v, (%v:)", tls, t, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* tv at bp+0 */ Ttimeval + **(**Ttimeval)(__ccgo_up(bp)) = Ttimeval{ + Ftv_sec: **(**Ttime_t)(__ccgo_up(t)), + } + return Xsettimeofday(tls, bp, UintptrFromInt32(0)) +} + +const SWAP_FLAG_DISCARD = 65536 +const SWAP_FLAG_PREFER = 32768 +const SWAP_FLAG_PRIO_MASK = 32767 +const SWAP_FLAG_PRIO_SHIFT = 0 + +func Xswapon(tls *TLS, path uintptr, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v flags=%v, (%v:)", tls, path, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_swapon), int64(path), int64(flags))))) +} + +func Xswapoff(tls *TLS, path uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v, (%v:)", tls, path, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_swapoff), int64(path))))) +} + +func Xsync_file_range(tls *TLS, fd int32, pos Toff_t, len1 Toff_t, flags uint32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v pos=%v len1=%v flags=%v, (%v:)", tls, fd, pos, len1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_sync_file_range), int64(fd), pos, len1, Int64FromUint32(flags))))) +} + +func Xsyncfs(tls *TLS, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_syncfs), int64(fd))))) +} + +func X__lsysinfo(tls *TLS, info uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v info=%v, (%v:)", tls, info, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_sysinfo), int64(info))))) +} + +func Xsysinfo(tls *TLS, info uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v info=%v, (%v:)", tls, info, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lsysinfo(tls, info) +} + +func Xtee(tls *TLS, src int32, dest int32, len1 Tsize_t, flags uint32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v src=%v dest=%v len1=%v flags=%v, (%v:)", tls, src, dest, len1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_tee), int64(src), int64(dest), Int64FromUint64(len1), Int64FromUint32(flags)))) +} + +const TFD_CLOEXEC = 524288 +const TFD_NONBLOCK = 2048 +const TFD_TIMER_ABSTIME = 1 +const TFD_TIMER_CANCEL_ON_SET = 2 + +func Xtimerfd_create(tls *TLS, clockid int32, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v clockid=%v flags=%v, (%v:)", tls, clockid, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_timerfd_create), int64(clockid), int64(flags))))) +} + +func Xtimerfd_settime(tls *TLS, fd int32, flags int32, new1 uintptr, old uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v flags=%v new1=%v old=%v, (%v:)", tls, fd, flags, new1, old, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_timerfd_settime), int64(fd), int64(flags), int64(new1), int64(old))))) +} + +func Xtimerfd_gettime(tls *TLS, fd int32, cur uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v cur=%v, (%v:)", tls, fd, cur, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_timerfd_gettime), int64(fd), int64(cur))))) +} + +func Xunshare(tls *TLS, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v flags=%v, (%v:)", tls, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_unshare), int64(flags))))) +} + +func Xutimes(tls *TLS, path uintptr, times uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v times=%v, (%v:)", tls, path, times, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__futimesat(tls, -int32(100), path, times) +} + +func Xvhangup(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall0(tls, int64(SYS_vhangup))))) +} + +func Xvmsplice(tls *TLS, fd int32, iov uintptr, cnt Tsize_t, flags uint32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v iov=%v cnt=%v flags=%v, (%v:)", tls, fd, iov, cnt, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_vmsplice), int64(fd), int64(iov), Int64FromUint64(cnt), Int64FromUint32(flags)))) +} + +const NSIG = 65 +const REG_A0 = 10 +const REG_PC = 0 +const REG_RA = 1 +const REG_S0 = 8 +const REG_S1 = 9 +const REG_S2 = 18 +const REG_SP = 2 +const REG_TP = 4 +const SA_NOMASK = 1073741824 +const SA_ONESHOT = 2147483648 +const SYS_SECCOMP = 1 +const SYS_USER_DISPATCH = 2 +const __ucontext = 0 + +type Tgreg_t = uint64 + +type Tgregset_t = [32]uint64 + +type Tfpregset_t = struct { + F__d [0]t__riscv_mc_d_ext_state + F__q [0]t__riscv_mc_q_ext_state + F__f t__riscv_mc_f_ext_state + F__ccgo_pad3 [396]byte +} + +type Tsigcontext = struct { + Fgregs Tgregset_t + Ffpregs Tfpregset_t +} + +type Tucontext = Tucontext_t + +type Tsig_t = uintptr + +type Tsighandler_t = uintptr + +func Xwait3(tls *TLS, status uintptr, options int32, usage uintptr) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v status=%v options=%v usage=%v, (%v:)", tls, status, options, usage, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwait4(tls, -int32(1), status, options, usage) +} + +func Xwait4(tls *TLS, pid Tpid_t, status uintptr, options int32, ru uintptr) (r1 Tpid_t) { + if __ccgo_strace { + trc("tls=%v pid=%v status=%v options=%v ru=%v, (%v:)", tls, pid, status, options, ru, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var dest, v1 uintptr + var r int32 + var _ /* kru at bp+0 */ [4]int64 + _, _, _ = dest, r, v1 + if ru != 0 { + v1 = ru + 32 - uintptr(Uint64FromInt32(4)*Uint64FromInt64(8)) + } else { + v1 = uintptr(0) + } + dest = v1 + r = int32(X__syscall4(tls, int64(SYS_wait4), int64(pid), int64(status), int64(options), int64(dest))) + if r > 0 && ru != 0 && Bool(uint64(8) > uint64(8)) { + Xmemcpy(tls, bp, dest, Uint64FromInt32(4)*Uint64FromInt64(8)) + (*Trusage)(unsafe.Pointer(ru)).Fru_utime = Ttimeval{ + Ftv_sec: (**(**[4]int64)(__ccgo_up(bp)))[0], + Ftv_usec: (**(**[4]int64)(__ccgo_up(bp)))[int32(1)], + } + (*Trusage)(unsafe.Pointer(ru)).Fru_stime = Ttimeval{ + Ftv_sec: (**(**[4]int64)(__ccgo_up(bp)))[int32(2)], + Ftv_usec: (**(**[4]int64)(__ccgo_up(bp)))[int32(3)], + } + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +const XATTR_CREATE = 1 +const XATTR_REPLACE = 2 +const __UAPI_DEF_XATTR = 0 + +func Xgetxattr(tls *TLS, path uintptr, name uintptr, value uintptr, size Tsize_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v path=%v name=%v value=%v size=%v, (%v:)", tls, path, name, value, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_getxattr), int64(path), int64(name), int64(value), Int64FromUint64(size)))) +} + +func Xlgetxattr(tls *TLS, path uintptr, name uintptr, value uintptr, size Tsize_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v path=%v name=%v value=%v size=%v, (%v:)", tls, path, name, value, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_lgetxattr), int64(path), int64(name), int64(value), Int64FromUint64(size)))) +} + +func Xfgetxattr(tls *TLS, filedes int32, name uintptr, value uintptr, size Tsize_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v filedes=%v name=%v value=%v size=%v, (%v:)", tls, filedes, name, value, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_fgetxattr), int64(filedes), int64(name), int64(value), Int64FromUint64(size)))) +} + +func Xlistxattr(tls *TLS, path uintptr, list uintptr, size Tsize_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v path=%v list=%v size=%v, (%v:)", tls, path, list, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_listxattr), int64(path), int64(list), Int64FromUint64(size)))) +} + +func Xllistxattr(tls *TLS, path uintptr, list uintptr, size Tsize_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v path=%v list=%v size=%v, (%v:)", tls, path, list, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_llistxattr), int64(path), int64(list), Int64FromUint64(size)))) +} + +func Xflistxattr(tls *TLS, filedes int32, list uintptr, size Tsize_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v filedes=%v list=%v size=%v, (%v:)", tls, filedes, list, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_flistxattr), int64(filedes), int64(list), Int64FromUint64(size)))) +} + +func Xsetxattr(tls *TLS, path uintptr, name uintptr, value uintptr, size Tsize_t, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v name=%v value=%v size=%v flags=%v, (%v:)", tls, path, name, value, size, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_setxattr), int64(path), int64(name), int64(value), Int64FromUint64(size), int64(flags))))) +} + +func Xlsetxattr(tls *TLS, path uintptr, name uintptr, value uintptr, size Tsize_t, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v name=%v value=%v size=%v flags=%v, (%v:)", tls, path, name, value, size, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_lsetxattr), int64(path), int64(name), int64(value), Int64FromUint64(size), int64(flags))))) +} + +func Xfsetxattr(tls *TLS, filedes int32, name uintptr, value uintptr, size Tsize_t, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v filedes=%v name=%v value=%v size=%v flags=%v, (%v:)", tls, filedes, name, value, size, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_fsetxattr), int64(filedes), int64(name), int64(value), Int64FromUint64(size), int64(flags))))) +} + +func Xremovexattr(tls *TLS, path uintptr, name uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v name=%v, (%v:)", tls, path, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_removexattr), int64(path), int64(name))))) +} + +func Xlremovexattr(tls *TLS, path uintptr, name uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v name=%v, (%v:)", tls, path, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_lremovexattr), int64(path), int64(name))))) +} + +func Xfremovexattr(tls *TLS, fd int32, name uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v name=%v, (%v:)", tls, fd, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_fremovexattr), int64(fd), int64(name))))) +} + +func _dummy4(tls *TLS, msg uintptr, lm uintptr) (r uintptr) { + return msg +} + +func X__lctrans(tls *TLS, msg uintptr, lm uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v msg=%v lm=%v, (%v:)", tls, msg, lm, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lctrans_impl(tls, msg, lm) +} + +func X__lctrans_cur(tls *TLS, msg uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v msg=%v, (%v:)", tls, msg, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lctrans_impl(tls, msg, **(**uintptr)(__ccgo_up((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale + 5*8))) +} + +func _swapc(tls *TLS, x Tuint32_t, c int32) (r Tuint32_t) { + var v1 uint32 + _ = v1 + if c != 0 { + v1 = x>>int32(24) | x>>int32(8)&uint32(0xff00) | x< %v", r) }() + } + var b, n, o, ol, os, t, tl, ts Tuint32_t + var mo uintptr + var sign, sw int32 + _, _, _, _, _, _, _, _, _, _, _ = b, mo, n, o, ol, os, sign, sw, t, tl, ts + mo = p + sw = Int32FromUint32(**(**Tuint32_t)(__ccgo_up(mo)) - uint32(0x950412de)) + b = uint32(0) + n = _swapc(tls, **(**Tuint32_t)(__ccgo_up(mo + 2*4)), sw) + o = _swapc(tls, **(**Tuint32_t)(__ccgo_up(mo + 3*4)), sw) + t = _swapc(tls, **(**Tuint32_t)(__ccgo_up(mo + 4*4)), sw) + if uint64(n) >= size/uint64(4) || uint64(o) >= size-uint64(uint32(4)*n) || uint64(t) >= size-uint64(uint32(4)*n) || (o|t)%uint32(4) != 0 { + return uintptr(0) + } + o = o / uint32(4) + t = t / uint32(4) + for { + ol = _swapc(tls, **(**Tuint32_t)(__ccgo_up(mo + uintptr(o+uint32(2)*(b+n/uint32(2)))*4)), sw) + os = _swapc(tls, **(**Tuint32_t)(__ccgo_up(mo + uintptr(o+uint32(2)*(b+n/uint32(2))+uint32(1))*4)), sw) + if uint64(os) >= size || uint64(ol) >= size-uint64(os) || **(**uint8)(__ccgo_up(p + uintptr(os+ol))) != 0 { + return uintptr(0) + } + sign = Xstrcmp(tls, s, p+uintptr(os)) + if !(sign != 0) { + tl = _swapc(tls, **(**Tuint32_t)(__ccgo_up(mo + uintptr(t+uint32(2)*(b+n/uint32(2)))*4)), sw) + ts = _swapc(tls, **(**Tuint32_t)(__ccgo_up(mo + uintptr(t+uint32(2)*(b+n/uint32(2))+uint32(1))*4)), sw) + if uint64(ts) >= size || uint64(tl) >= size-uint64(ts) || **(**uint8)(__ccgo_up(p + uintptr(ts+tl))) != 0 { + return uintptr(0) + } + return p + uintptr(ts) + } else { + if n == uint32(1) { + return uintptr(0) + } else { + if sign < 0 { + n = n / uint32(2) + } else { + b = b + n/uint32(2) + n = n - n/uint32(2) + } + } + } + goto _1 + _1: + } + return uintptr(0) +} + +const __USE_GNU_GETTEXT = 1 + +func Xbind_textdomain_codeset(tls *TLS, domainname uintptr, codeset uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v domainname=%v codeset=%v, (%v:)", tls, domainname, codeset, origin(2)) + defer func() { trc("-> %v", r) }() + } + if codeset != 0 && Xstrcasecmp(tls, codeset, __ccgo_ts+420) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + } + return UintptrFromInt32(0) +} + +var _empty_mo = [5]Tuint32_t{ + 0: uint32(0x950412de), + 2: Uint32FromInt32(-Int32FromInt32(1)), + 3: Uint32FromInt32(-Int32FromInt32(1)), + 4: Uint32FromInt32(-Int32FromInt32(1)), +} + +const NL_CAT_LOCALE = 1 +const NL_SETD = 1 + +type Tnl_item = int32 + +type Tnl_catd = uintptr + +func Xcatclose(tls *TLS, catd Tnl_catd) (r int32) { + if __ccgo_strace { + trc("tls=%v catd=%v, (%v:)", tls, catd, origin(2)) + defer func() { trc("-> %v", r) }() + } + var map1 uintptr + var v1, v2 Tuint32_t + _, _, _ = map1, v1, v2 + map1 = catd + v1 = **(**Tuint32_t)(__ccgo_up(map1 + UintptrFromInt32(8))) + v2 = v1>>int32(24) | v1>>int32(8)&uint32(0xff00) | v1<>int32(24) | v1>>int32(8)&uint32(0xff00) | v1<>int32(24) | v4>>int32(8)&uint32(0xff00) | v4< y { + v8 = int32(1) + } else { + v8 = 0 + } + v7 = v8 + } + return v7 +} + +func Xcatgets(tls *TLS, catd Tnl_catd, set_id int32, msg_id int32, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v catd=%v set_id=%v msg_id=%v s=%v, (%v:)", tls, catd, set_id, msg_id, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var map1, msg, msgs, set, sets, strings uintptr + var nmsgs, nsets, v1, v10, v11, v13, v14, v2, v4, v5, v7, v8 Tuint32_t + var _ /* msg_id_be at bp+4 */ Tuint32_t + var _ /* set_id_be at bp+0 */ Tuint32_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = map1, msg, msgs, nmsgs, nsets, set, sets, strings, v1, v10, v11, v13, v14, v2, v4, v5, v7, v8 + map1 = catd + v1 = **(**Tuint32_t)(__ccgo_up(map1 + UintptrFromInt32(4))) + v2 = v1>>int32(24) | v1>>int32(8)&uint32(0xff00) | v1<>int32(24) | v4>>int32(8)&uint32(0xff00) | v4<>int32(24) | v7>>int32(8)&uint32(0xff00) | v7<>int32(24) | v10>>int32(8)&uint32(0xff00) | v10<>int32(24) | v13>>int32(8)&uint32(0xff00) | v13<>int32(24) | v1>>int32(8)&uint32(0xff00) | v1<>int32(24) | v4>>int32(8)&uint32(0xff00) | v4<>int32(24) | v1>>int32(8)&uint32(0xff00) | v1<>int32(24) | v1>>int32(8)&uint32(0xff00) | v1<>int32(24) | v5>>int32(8)&uint32(0xff00) | v5< %v", r) }() + } + bp := tls.Alloc(4096) + defer tls.Free(4096) + var catd Tnl_catd + var i, l Tsize_t + var lang, p, path, v, z, v1 uintptr + var v2 bool + var _ /* buf at bp+0 */ [4096]uint8 + _, _, _, _, _, _, _, _, _, _ = catd, i, l, lang, p, path, v, z, v1, v2 + if Xstrchr(tls, name, int32('/')) != 0 { + return _do_catopen(tls, name) + } + if v2 = X__libc.Fsecure != 0; !v2 { + v1 = Xgetenv(tls, __ccgo_ts+426) + path = v1 + } + if v2 || !(v1 != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOENT) + return uintptr(-Int32FromInt32(1)) + } + if oflag != 0 { + v1 = Xnl_langinfo(tls, Int32FromInt32(LC_MESSAGES)<= uint64(4096)-i { + break + } + Xmemcpy(tls, bp+uintptr(i), v, l) + i = i + l + goto _5 + _5: + ; + p = p + 1 + } + if !(**(**uint8)(__ccgo_up(z)) != 0) && (p < z || !(i != 0)) { + break + } + if p < z { + goto _4 + } + if **(**uint8)(__ccgo_up(z)) != 0 { + z = z + 1 + } + (**(**[4096]uint8)(__ccgo_up(bp)))[i] = uint8(0) + /* Leading : or :: in NLSPATH is same as %N */ + if i != 0 { + v1 = bp + } else { + v1 = name + } + catd = _do_catopen(tls, v1) + if catd != uintptr(-Int32FromInt32(1)) { + return catd + } + goto _4 + _4: + ; + p = z + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOENT) + return uintptr(-Int32FromInt32(1)) +} + +const calloc = 0 +const free = 0 +const malloc = 0 +const realloc = 0 + +type Tbinding = struct { + Fnext uintptr + Fdirlen int32 + Factive int32 + Fdomainname uintptr + Fdirname uintptr +} + +var _bindings uintptr + +func _gettextdir(tls *TLS, domainname uintptr, dirlen uintptr) (r uintptr) { + var p uintptr + _ = p + p = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_bindings))) + for { + if !(p != 0) { + break + } + if !(Xstrcmp(tls, (*Tbinding)(unsafe.Pointer(p)).Fdomainname, domainname) != 0) && AtomicLoadPInt32(p+12) != 0 { + **(**Tsize_t)(__ccgo_up(dirlen)) = Uint64FromInt32((*Tbinding)(unsafe.Pointer(p)).Fdirlen) + return (*Tbinding)(unsafe.Pointer(p)).Fdirname + } + goto _1 + _1: + ; + p = (*Tbinding)(unsafe.Pointer(p)).Fnext + } + return uintptr(0) +} + +var _lock1 [1]int32 + +func Xbindtextdomain(tls *TLS, domainname uintptr, dirname uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v domainname=%v dirname=%v, (%v:)", tls, domainname, dirname, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var dirlen, domlen Tsize_t + var p2, q uintptr + + _, _, _, _ = dirlen, domlen, p2, q + if !(domainname != 0) { + return uintptr(0) + } + if !(dirname != 0) { + *(*Tsize_t)(unsafe.Pointer(bp)) = uint64(0) + return _gettextdir(tls, domainname, bp) + } + domlen = Xstrnlen(tls, domainname, Uint64FromInt32(Int32FromInt32(NAME_MAX)+Int32FromInt32(1))) + dirlen = Xstrnlen(tls, dirname, uint64(PATH_MAX)) + if domlen > uint64(NAME_MAX) || dirlen >= uint64(PATH_MAX) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(0) + } + ___lock(tls, uintptr(unsafe.Pointer(&_lock1))) + p2 = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_bindings))) + for { + if !(p2 != 0) { + break + } + if !(Xstrcmp(tls, (*Tbinding)(unsafe.Pointer(p2)).Fdomainname, domainname) != 0) && !(Xstrcmp(tls, (*Tbinding)(unsafe.Pointer(p2)).Fdirname, dirname) != 0) { + break + } + goto _1 + _1: + ; + p2 = (*Tbinding)(unsafe.Pointer(p2)).Fnext + } + if !(p2 != 0) { + p2 = Xcalloc(tls, uint64(32)+domlen+dirlen+uint64(2), uint64(1)) + if !(p2 != 0) { + ___unlock(tls, uintptr(unsafe.Pointer(&_lock1))) + return uintptr(0) + } + (*Tbinding)(unsafe.Pointer(p2)).Fnext = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_bindings))) + (*Tbinding)(unsafe.Pointer(p2)).Fdirlen = Int32FromUint64(dirlen) + (*Tbinding)(unsafe.Pointer(p2)).Fdomainname = p2 + 32 + (*Tbinding)(unsafe.Pointer(p2)).Fdirname = p2 + 32 + uintptr(domlen) + uintptr(1) + Xmemcpy(tls, (*Tbinding)(unsafe.Pointer(p2)).Fdomainname, domainname, domlen+uint64(1)) + Xmemcpy(tls, (*Tbinding)(unsafe.Pointer(p2)).Fdirname, dirname, dirlen+uint64(1)) + // __asm__ __volatile__ ( + // + // "\n1: lr.d.aqrl %0, (%2)\n bne %0, %3, 1f\n sc.d.aqrl %1, %4, (%2)\n bnez %1, 1b\n1:" + // : "=&r"(old), "=&r"(tmp) + // : "r"(p), "r"(t), "r"(s) + // : "memory"); + X__assert_fail(tls, __ccgo_ts+353, __ccgo_ts+388, 28, __ccgo_ts+448) + + goto _2 + _2: + } + // __asm__ __volatile__ ("fence rw,rw" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+353, __ccgo_ts+388, 4, __ccgo_ts+448) + AtomicStorePInt32(p2+12, int32(1)) + // __asm__ __volatile__ ("fence rw,rw" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+353, __ccgo_ts+388, 4, __ccgo_ts+448) + q = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_bindings))) + for { + if !(q != 0) { + break + } + if !(Xstrcmp(tls, (*Tbinding)(unsafe.Pointer(q)).Fdomainname, domainname) != 0) && q != p2 { + // __asm__ __volatile__ ("fence rw,rw" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+353, __ccgo_ts+388, 4, __ccgo_ts+448) + AtomicStorePInt32(q+12, 0) + // __asm__ __volatile__ ("fence rw,rw" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+353, __ccgo_ts+388, 4, __ccgo_ts+448) + } + goto _3 + _3: + ; + q = (*Tbinding)(unsafe.Pointer(q)).Fnext + } + ___unlock(tls, uintptr(unsafe.Pointer(&_lock1))) + return (*Tbinding)(unsafe.Pointer(p2)).Fdirname +} + +var _catnames = [6][12]uint8{ + 0: {'L', 'C', '_', 'C', 'T', 'Y', 'P', 'E'}, + 1: {'L', 'C', '_', 'N', 'U', 'M', 'E', 'R', 'I', 'C'}, + 2: {'L', 'C', '_', 'T', 'I', 'M', 'E'}, + 3: {'L', 'C', '_', 'C', 'O', 'L', 'L', 'A', 'T', 'E'}, + 4: {'L', 'C', '_', 'M', 'O', 'N', 'E', 'T', 'A', 'R', 'Y'}, + 5: {'L', 'C', '_', 'M', 'E', 'S', 'S', 'A', 'G', 'E', 'S'}, +} + +var _catlens = [6]uint8{ + 0: uint8(8), + 1: uint8(10), + 2: uint8(7), + 3: uint8(10), + 4: uint8(11), + 5: uint8(11), +} + +type Tmsgcat = struct { + Fnext uintptr + Fmap1 uintptr + Fmap_size Tsize_t + Fplural_rule uintptr + Fnplurals int32 + Fbinding uintptr + Flm uintptr + Fcat int32 +} + +func _dummy_gettextdomain(tls *TLS) (r uintptr) { + return __ccgo_ts + 463 +} + +func Xdcngettext(tls *TLS, domainname uintptr, msgid1 uintptr, msgid2 uintptr, n uint64, category int32) (r1 uintptr) { + if __ccgo_strace { + trc("tls=%v domainname=%v msgid1=%v msgid2=%v n=%v category=%v, (%v:)", tls, domainname, msgid1, msgid2, n, category, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(80) + defer tls.Free(80) + var alt_modlen, catlen, dirlen, domlen, l, loclen, modlen, rem, v5 Tsize_t + var catname, csp, dirname, lm, loc, locname, locp, map1, modname, name, old, old_cats, p1, q, r, rule, trans, v3 uintptr + var np, plural, v20 uint64 + var old_errno, v11, v12 int32 + var v6 t__predefined_size_t + var _ /* map_size at bp+0 */ Tsize_t + var _ /* z at bp+8 */ uintptr + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = alt_modlen, catlen, catname, csp, dirlen, dirname, domlen, l, lm, loc, loclen, locname, locp, map1, modlen, modname, name, np, old, old_cats, old_errno, p1, plural, q, r, rem, rule, trans, v11, v12, v20, v3, v5, v6 + defer func() { Xrealloc(tls, name, 0) }() + loc = (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale + old_errno = **(**int32)(__ccgo_up(X__errno_location(tls))) + /* match gnu gettext behaviour */ + if !(msgid1 != 0) { + goto notrans + } + if Uint32FromInt32(category) >= uint32(LC_ALL) { + goto notrans + } + if !(domainname != 0) { + domainname = X__gettextdomain(tls) + } + domlen = Xstrnlen(tls, domainname, Uint64FromInt32(Int32FromInt32(NAME_MAX)+Int32FromInt32(1))) + if domlen > uint64(NAME_MAX) { + goto notrans + } + q = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_bindings))) + for { + if !(q != 0) { + break + } + if !(Xstrcmp(tls, (*Tbinding)(unsafe.Pointer(q)).Fdomainname, domainname) != 0) && AtomicLoadPInt32(q+12) != 0 { + break + } + goto _1 + _1: + ; + q = (*Tbinding)(unsafe.Pointer(q)).Fnext + } + if !(q != 0) { + goto notrans + } + lm = **(**uintptr)(__ccgo_up(loc + uintptr(category)*8)) + if !!(lm != 0) { + goto _2 + } + goto notrans +notrans: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = old_errno + if n == uint64(1) { + v3 = msgid1 + } else { + v3 = msgid2 + } + return v3 +_2: + ; + p1 = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_cats))) + for { + if !(p1 != 0) { + break + } + if (*Tmsgcat)(unsafe.Pointer(p1)).Fbinding == q && (*Tmsgcat)(unsafe.Pointer(p1)).Flm == lm && (*Tmsgcat)(unsafe.Pointer(p1)).Fcat == category { + break + } + goto _4 + _4: + ; + p1 = (*Tmsgcat)(unsafe.Pointer(p1)).Fnext + } + if !(p1 != 0) { + dirname = (*Tbinding)(unsafe.Pointer(q)).Fdirname + locname = lm + 16 + catname = uintptr(unsafe.Pointer(&_catnames)) + uintptr(category)*12 + dirlen = Uint64FromInt32((*Tbinding)(unsafe.Pointer(q)).Fdirlen) + loclen = _strlen(tls, locname) + catlen = uint64(_catlens[category]) + /* Logically split @mod suffix from locale name. */ + modname = Xmemchr(tls, locname, int32('@'), loclen) + if !(modname != 0) { + modname = locname + uintptr(loclen) + } + v5 = loclen - Uint64FromInt64(int64(modname)-int64(locname)) + modlen = v5 + alt_modlen = v5 + loclen = Uint64FromInt64(int64(modname) - int64(locname)) + /* Drop .charset identifier; it is not used. */ + csp = Xmemchr(tls, locname, int32('.'), loclen) + if csp != 0 { + loclen = Uint64FromInt64(int64(csp) - int64(locname)) + } + v6 = dirlen + uint64(1) + loclen + modlen + uint64(1) + catlen + uint64(1) + domlen + uint64(3) + uint64(1) + name = Xrealloc(tls, name, v6) + for { + Xsnprintf(tls, name, v6, __ccgo_ts+472, VaList(bp+24, dirname, Int32FromUint64(loclen), locname, Int32FromUint64(alt_modlen), modname, catname, domainname)) + v3 = X__map_file(tls, name, bp) + map1 = v3 + if v3 != 0 { + break + } + /* Try dropping @mod, _YY, then both. */ + if alt_modlen != 0 { + alt_modlen = uint64(0) + } else { + v3 = Xmemchr(tls, locname, int32('_'), loclen) + locp = v3 + if v3 != 0 { + loclen = Uint64FromInt64(int64(locp) - int64(locname)) + alt_modlen = modlen + } else { + break + } + } + goto _7 + _7: + } + if !(map1 != 0) { + goto notrans + } + p1 = Xcalloc(tls, uint64(64), uint64(1)) + if !(p1 != 0) { + X__munmap(tls, map1, **(**Tsize_t)(__ccgo_up(bp))) + goto notrans + } + (*Tmsgcat)(unsafe.Pointer(p1)).Fcat = category + (*Tmsgcat)(unsafe.Pointer(p1)).Fbinding = q + (*Tmsgcat)(unsafe.Pointer(p1)).Flm = lm + (*Tmsgcat)(unsafe.Pointer(p1)).Fmap1 = map1 + (*Tmsgcat)(unsafe.Pointer(p1)).Fmap_size = **(**Tsize_t)(__ccgo_up(bp)) + rule = __ccgo_ts + 494 + np = uint64(2) + r = X__mo_lookup(tls, (*Tmsgcat)(unsafe.Pointer(p1)).Fmap1, (*Tmsgcat)(unsafe.Pointer(p1)).Fmap_size, __ccgo_ts) + for r != 0 && Xstrncmp(tls, r, __ccgo_ts+500, uint64(13)) != 0 { + **(**uintptr)(__ccgo_up(bp + 8)) = Xstrchr(tls, r, int32('\n')) + if **(**uintptr)(__ccgo_up(bp + 8)) != 0 { + v3 = **(**uintptr)(__ccgo_up(bp + 8)) + uintptr(1) + } else { + v3 = uintptr(0) + } + r = v3 + } + if r != 0 { + r = r + uintptr(13) + for { + v11 = Int32FromUint8(**(**uint8)(__ccgo_up(r))) + v12 = BoolInt32(v11 == int32(' ') || Uint32FromInt32(v11)-uint32('\t') < uint32(5)) + goto _13 + _13: + if !(v12 != 0) { + break + } + r = r + 1 + } + if !(Xstrncmp(tls, r, __ccgo_ts+514, uint64(9)) != 0) { + np = Xstrtoul(tls, r+uintptr(9), bp+8, int32(10)) + r = **(**uintptr)(__ccgo_up(bp + 8)) + } + for **(**uint8)(__ccgo_up(r)) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(r))) != int32(';') { + r = r + 1 + } + if **(**uint8)(__ccgo_up(r)) != 0 { + r = r + 1 + for { + v11 = Int32FromUint8(**(**uint8)(__ccgo_up(r))) + v12 = BoolInt32(v11 == int32(' ') || Uint32FromInt32(v11)-uint32('\t') < uint32(5)) + goto _16 + _16: + if !(v12 != 0) { + break + } + r = r + 1 + } + if !(Xstrncmp(tls, r, __ccgo_ts+524, uint64(7)) != 0) { + rule = r + uintptr(7) + } + } + } + (*Tmsgcat)(unsafe.Pointer(p1)).Fnplurals = Int32FromUint64(np) + (*Tmsgcat)(unsafe.Pointer(p1)).Fplural_rule = rule + for { + old_cats = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_cats))) + (*Tmsgcat)(unsafe.Pointer(p1)).Fnext = old_cats + goto _19 + _19: + ; + // __asm__ __volatile__ ( + // + // "\n1: lr.d.aqrl %0, (%2)\n bne %0, %3, 1f\n sc.d.aqrl %1, %4, (%2)\n bnez %1, 1b\n1:" + // : "=&r"(old), "=&r"(tmp) + // : "r"(p), "r"(t), "r"(s) + // : "memory"); + X__assert_fail(tls, __ccgo_ts+353, __ccgo_ts+388, 28, __ccgo_ts+532) + v3 = old + goto _18 + _18: + ; + if !(v3 != old_cats) { + break + } + } + } + trans = X__mo_lookup(tls, (*Tmsgcat)(unsafe.Pointer(p1)).Fmap1, (*Tmsgcat)(unsafe.Pointer(p1)).Fmap_size, msgid1) + if !(trans != 0) { + goto notrans + } + /* Non-plural-processing gettext forms pass a null pointer as + * msgid2 to request that dcngettext suppress plural processing. */ + if msgid2 != 0 && (*Tmsgcat)(unsafe.Pointer(p1)).Fnplurals != 0 { + plural = X__pleval(tls, (*Tmsgcat)(unsafe.Pointer(p1)).Fplural_rule, n) + if plural > Uint64FromInt32((*Tmsgcat)(unsafe.Pointer(p1)).Fnplurals) { + goto notrans + } + for { + v20 = plural + plural = plural - 1 + if !(v20 != 0) { + break + } + rem = (*Tmsgcat)(unsafe.Pointer(p1)).Fmap_size - Uint64FromInt64(int64(trans)-int64((*Tmsgcat)(unsafe.Pointer(p1)).Fmap1)) + l = Xstrnlen(tls, trans, rem) + if l+uint64(1) >= rem { + goto notrans + } + trans = trans + uintptr(l+uint64(1)) + } + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = old_errno + return trans +} + +var _cats uintptr + +func Xdcgettext(tls *TLS, domainname uintptr, msgid uintptr, category int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v domainname=%v msgid=%v category=%v, (%v:)", tls, domainname, msgid, category, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xdcngettext(tls, domainname, msgid, uintptr(0), uint64(1), category) +} + +func Xdngettext(tls *TLS, domainname uintptr, msgid1 uintptr, msgid2 uintptr, n uint64) (r uintptr) { + if __ccgo_strace { + trc("tls=%v domainname=%v msgid1=%v msgid2=%v n=%v, (%v:)", tls, domainname, msgid1, msgid2, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xdcngettext(tls, domainname, msgid1, msgid2, n, int32(LC_MESSAGES)) +} + +func Xdgettext(tls *TLS, domainname uintptr, msgid uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v domainname=%v msgid=%v, (%v:)", tls, domainname, msgid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xdcngettext(tls, domainname, msgid, uintptr(0), uint64(1), int32(LC_MESSAGES)) +} + +func X__duplocale(tls *TLS, old Tlocale_t) (r Tlocale_t) { + if __ccgo_strace { + trc("tls=%v old=%v, (%v:)", tls, old, origin(2)) + defer func() { trc("-> %v", r) }() + } + var new1 Tlocale_t + _ = new1 + new1 = Xmalloc(tls, uint64(48)) + if !(new1 != 0) { + return uintptr(0) + } + if old == uintptr(-Int32FromInt32(1)) { + old = uintptr(unsafe.Pointer(&X__libc)) + 56 + } + **(**t__locale_struct)(__ccgo_up(new1)) = **(**t__locale_struct)(__ccgo_up(old)) + return new1 +} + +func Xduplocale(tls *TLS, old Tlocale_t) (r Tlocale_t) { + if __ccgo_strace { + trc("tls=%v old=%v, (%v:)", tls, old, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__duplocale(tls, old) +} + +func Xfreelocale(tls *TLS, l Tlocale_t) { + if __ccgo_strace { + trc("tls=%v l=%v, (%v:)", tls, l, origin(2)) + } + if X__loc_is_allocated(tls, l) != 0 { + Xfree(tls, l) + } +} + +func X__freelocale(tls *TLS, l Tlocale_t) { + if __ccgo_strace { + trc("tls=%v l=%v, (%v:)", tls, l, origin(2)) + } + Xfreelocale(tls, l) +} + +const BIG5 = 224 +const EUC_JP = 208 +const EUC_KR = 232 +const GB18030 = 216 +const GB2312 = 218 +const GBK = 217 +const ISO2022_JP = 210 +const SHIFT_JIS = 209 +const UCS2 = 204 +const UCS2BE = 196 +const UCS2LE = 197 +const US_ASCII = 199 +const UTF_16 = 202 +const UTF_16BE = 194 +const UTF_16LE = 193 +const UTF_32 = 203 +const UTF_32BE = 192 +const UTF_32LE = 195 +const UTF_8 = 200 +const WCHAR_T = 198 +const mbrtowc_utf8 = 0 +const wctomb_utf8 = 0 + +type Ticonv_t = uintptr + +/* Definitions of charmaps. Each charmap consists of: + * 1. Empty-string-terminated list of null-terminated aliases. + * 2. Special type code or number of elided quads of entries. + * 3. Character table (size determined by field 2), consisting + * of 5 bytes for every 4 characters, interpreted as 10-bit + * indices into the legacy_chars table. */ + +var _charmaps = [4907]uint8{'u', 't', 'f', '8', 0, 'c', 'h', 'a', 'r', 0, 0, 200, 'w', 'c', 'h', 'a', 'r', 't', 0, 0, 198, 'u', 'c', 's', '2', 'b', 'e', 0, 0, 196, 'u', 'c', 's', '2', 'l', 'e', 0, 0, 197, 'u', 't', 'f', '1', '6', 'b', 'e', 0, 0, 194, 'u', 't', 'f', '1', '6', 'l', 'e', 0, 0, 193, 'u', 'c', 's', '4', 'b', 'e', 0, 'u', 't', 'f', '3', '2', 'b', 'e', 0, 0, 192, 'u', 'c', 's', '4', 'l', 'e', 0, 'u', 't', 'f', '3', '2', 'l', 'e', 0, 0, 195, 'a', 's', 'c', 'i', 'i', 0, 'u', 's', 'a', 's', 'c', 'i', 'i', 0, 'i', 's', 'o', '6', '4', '6', 0, 'i', 's', 'o', '6', '4', '6', 'u', 's', 0, 0, 199, 'u', 't', 'f', '1', '6', 0, 0, 202, 'u', 'c', 's', '4', 0, 'u', 't', 'f', '3', '2', 0, 0, 203, 'u', 'c', 's', '2', 0, 0, 204, 'e', 'u', 'c', 'j', 'p', 0, 0, 208, 's', 'h', 'i', 'f', 't', 'j', 'i', 's', 0, 's', 'j', 'i', 's', 0, 'c', 'p', '9', '3', '2', 0, 0, 209, 'i', 's', 'o', '2', '0', '2', '2', 'j', 'p', 0, 0, 210, 'g', 'b', '1', '8', '0', '3', '0', 0, 0, 216, 'g', 'b', 'k', 0, 'c', 'p', '9', '3', '6', 0, 'w', 'i', 'n', 'd', 'o', 'w', 's', '9', '3', '6', 0, 0, 217, 'g', 'b', '2', '3', '1', '2', 0, 0, 218, 'b', 'i', 'g', '5', 0, 'b', 'i', 'g', 'f', 'i', 'v', 'e', 0, 'c', 'p', '9', '5', '0', 0, 'b', 'i', 'g', '5', 'h', 'k', 's', 'c', 's', 0, 0, 224, 'e', 'u', 'c', 'k', 'r', 0, 'k', 's', 'c', '5', '6', '0', '1', 0, 'k', 's', 'x', '1', '0', '0', '1', 0, 'c', 'p', '9', '4', '9', 0, 0, 232, 'i', 's', 'o', '8', '8', '5', '9', '1', 0, 'l', 'a', 't', 'i', 'n', '1', 0, 0, '@', 'i', 's', 'o', '8', '8', '5', '9', '2', 0, 0, '(', 160, 16, 244, 'W', 'N', 164, 220, 244, 212, ')', 168, 'T', '5', 'U', 'V', 'n', 181, '"', 23, '\\', 176, 20, 20, 152, 'N', 180, 224, 4, 149, '_', 184, 'X', 'E', 149, 'V', 'o', 13, '6', 'W', '\\', 'I', 5, '#', 140, '@', 196, 204, 'd', 208, '1', 12, '%', 'c', 209, '2', 24, '5', 227, 140, 'C', 16, 237, 244, 211, '4', 212, 20, 'e', 205, '5', 'M', 141, 165, 'M', 'Y', 220, 't', 's', 213, '7', 'J', 133, '#', 206, '@', 228, 208, 't', 208, '9', 13, 165, 's', 209, ':', 25, 181, 227, 206, 'C', 17, 241, 4, 212, '<', 244, 24, 'e', 207, '=', 'N', 145, 165, 143, 'Y', 252, 244, 131, 21, '`', 'i', 's', 'o', '8', '8', '5', '9', '3', 0, 0, '(', 160, 144, 244, 215, '(', 164, 0, ' ', 210, ')', 168, 176, '4', 21, 'G', '.', 181, 2, 0, '\\', 176, 148, '$', 203, ',', 180, 212, '2', 210, '-', 184, 180, 'D', 'U', 'G', '/', 245, 2, '@', '\\', 192, 4, '#', 12, 0, 196, '(', 132, 208, '1', 200, '$', 163, 204, '2', 204, '4', 227, 204, '3', 0, 'D', '#', 205, '4', 212, 'x', 'd', 205, '5', 26, 'e', 163, 205, '6', 220, 132, 21, 213, '7', 224, 132, '#', 14, 0, 228, ',', 148, 208, '9', 232, 164, 163, 206, ':', 236, 180, 227, 206, ';', 0, 196, '#', 207, '<', 244, '|', 'd', 207, '=', 27, 229, 163, 207, '>', 252, 136, '%', 21, '`', 'i', 's', 'o', '8', '8', '5', '9', '4', 0, 0, '(', 160, 16, '$', 211, 'R', 164, 152, 'T', 211, ')', 168, 'T', '%', 17, 'H', '[', 181, '"', 215, '+', 176, 20, 20, 24, 'S', 180, 156, 'd', 147, '_', 184, 'X', '5', 'Q', 'H', '\\', 5, '5', 151, 'P', 0, 5, '#', 204, '0', 196, 20, 'c', 140, 'J', 12, '%', 'c', 209, '2', 20, '5', 227, 12, 'J', 16, 245, '4', 20, 'L', 212, 'T', 'c', 205, '5', 216, 156, 165, 205, '6', 220, 't', 245, 213, '7', 1, 133, '#', 206, '8', 228, 148, 'c', 206, 'J', 13, 165, 's', 209, ':', 21, 181, 227, 'N', 'J', 17, 249, 'D', 'T', 'L', 244, 212, 'c', 207, '=', 248, 160, 165, 207, '>', 252, 'x', 5, 22, '`', 'i', 's', 'o', '8', '8', '5', '9', '5', 0, 0, '(', 160, 'D', '\'', 221, 't', 212, 'U', 'g', 221, 'u', 216, 'e', 167, 221, 'v', 220, 181, 210, 157, 'w', 223, 129, 23, 158, 'x', 227, 145, 'W', 158, 'y', 231, 161, 151, 158, 'z', 235, 177, 215, 158, '{', 239, 193, 23, 159, '|', 243, 209, 'W', 159, '}', 247, 225, 151, 159, '~', 251, 241, 215, 159, 127, 255, 1, 24, 160, 128, 3, 18, 'X', 160, 129, 7, '"', 152, 160, 130, 11, '2', 216, 160, 131, 15, 'B', 24, 161, 132, 19, 'R', 'X', 161, 133, 23, 'b', 152, 161, 134, 27, 'r', 216, 161, 135, '&', 127, 8, 'b', 136, '"', 142, 'H', 'b', 137, '&', 158, 136, 'b', 138, '*', 158, 178, '"', 139, 'i', 's', 'o', '8', '8', '5', '9', '6', 0, 0, '(', 160, 0, 0, 0, 0, 164, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'b', 182, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 192, 152, 0, 0, 0, 0, 153, 0, 148, 'i', 230, 153, 'h', 166, 169, 230, 154, 'l', 182, 233, 230, 155, 'p', 198, ')', 231, 156, 't', 214, 'i', 231, 157, 'x', 230, 169, 231, 158, '|', 246, 233, '\'', 0, 0, 0, 0, 0, 0, 127, 2, 26, 168, 160, 131, 18, 'Z', 168, 161, 135, '"', 154, 168, 162, 139, '2', 218, 168, 163, 143, 'B', 26, ')', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'i', 's', 'o', '8', '8', '5', '9', '7', 0, 0, '(', 160, 'L', 'L', 241, '(', '$', 151, 'l', 202, ')', 168, 164, 146, 216, '*', 172, 180, 2, '@', 196, 176, 196, '"', 203, ',', 138, '-', 198, 216, '-', 141, '9', 246, 216, '.', 144, 245, 18, 153, 'd', 147, 'Q', 'V', 153, 'e', 151, 'a', 150, 153, 'f', 155, 'q', 214, 153, 'g', 159, 129, 22, 154, 'h', 163, 145, 6, '@', 'i', 166, 157, 134, 'Z', 'j', 170, 173, 198, 'Z', 'k', 174, 189, 6, '[', 'l', 178, 205, 'F', '[', 'm', 182, 221, 134, '[', 'n', 186, 237, 198, '[', 'o', 190, 253, 6, '\\', 'p', 194, 13, 'G', '\\', 'q', 198, 29, 135, '\\', 'r', 202, '-', 199, '\\', 's', 206, '=', 7, 29, 0, 'i', 's', 'o', '8', '8', '5', '9', '8', 0, 0, '(', 160, 0, ' ', 202, '(', 164, 148, 'b', 202, ')', 168, 164, 'r', 205, '*', 172, 180, 226, 202, '+', 176, 196, '"', 203, ',', 180, 212, 'b', 203, '-', 184, 228, 'r', 207, '.', 188, 244, 226, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 128, 196, 'B', 14, 'I', 'd', 145, 'F', 30, 137, 'd', 146, 'J', '.', 201, 'd', 147, 'N', '>', 9, 'e', 148, 'R', 'N', 'I', 'e', 149, 'V', '^', 137, 'e', 150, 'Z', 'n', 201, '%', 0, 0, '4', 236, '0', 0, 'i', 's', 'o', '8', '8', '5', '9', '9', 0, 0, '4', 28, 'E', '#', 205, '4', 212, 'T', 'c', 205, '5', 216, 'd', 163, 205, '6', 220, 176, '4', 213, '7', 224, 132, '#', 206, '8', 228, 148, 'c', 206, '9', 232, 164, 163, 206, ':', 236, 180, 227, 206, ';', 29, 197, '#', 207, '<', 244, 212, 'c', 207, '=', 248, 228, 163, 207, '>', 252, 180, 'D', 213, '?', 'i', 's', 'o', '8', '8', '5', '9', '1', '0', 0, 0, '(', 160, 16, '$', 17, 'H', '(', 153, 4, 211, ')', '5', 'A', 'T', 213, 'V', 'r', 181, 242, 'U', 'P', 176, 20, '4', 'Q', 'H', ')', 157, 20, 211, '-', '6', 'E', 'd', 21, 'W', 's', 'E', 12, 150, 'P', 0, 5, '#', 204, '0', 196, 20, 'c', 140, 'J', 12, '%', 'c', 209, '2', 20, '5', 227, 204, '3', 208, 244, '4', 212, '4', 212, 'T', 'c', 'M', 'W', 216, 156, 165, 205, '6', 220, 't', 227, 205, '7', 1, 133, '#', 206, '8', 228, 148, 'c', 206, 'J', 13, 165, 's', 209, ':', 21, 181, 227, 206, ';', 240, 248, 'D', 212, '<', 244, 212, 'c', 143, 'W', 248, 160, 165, 207, '>', 252, 244, 227, 143, 'L', 'i', 's', 'o', '8', '8', '5', '9', '1', '1', 0, 't', 'i', 's', '6', '2', '0', 0, 0, '(', 160, 'x', 250, ')', 168, 161, 138, ':', '*', 169, 165, 154, 'z', '*', 170, 169, 170, 186, '*', 171, 173, 186, 250, '*', 172, 177, 202, ':', '+', 173, 181, 218, 'z', '+', 174, 185, 234, 186, '+', 175, 189, 250, 250, '+', 176, 193, 10, ';', ',', 177, 197, 26, '{', ',', 178, 201, '*', 187, ',', 179, 205, ':', 251, ',', 180, 209, 'J', ';', '-', 181, 213, 'Z', '{', '-', 0, 0, 0, 0, 0, 182, 217, 'j', 187, '-', 183, 221, 'z', 251, '-', 184, 225, 138, ';', '.', 185, 229, 154, '{', '.', 186, 233, 170, 187, '.', 187, 237, 186, 251, '.', 188, 241, 202, ';', '/', 189, 0, 0, 0, 0, 0, 'i', 's', 'o', '8', '8', '5', '9', '1', '3', 0, 0, '(', 160, '\\', ',', 202, '(', 164, '`', 'l', 202, ')', 216, 164, 178, 212, '*', 172, 180, 226, 138, '1', 176, 196, '"', 203, ',', 22, 215, 'b', 203, '-', 248, 228, 194, 212, '.', 188, 244, 226, 139, '9', 4, 169, 4, 144, 'A', 196, 20, 'c', 145, 'D', 12, '%', 227, 22, 'E', ' ', 193, 132, 'R', 'M', 'U', 237, 212, 211, '4', 'C', 'U', 'c', 205, '5', 'g', 229, 244, 212, 'W', 220, 192, '%', 215, '7', 5, 173, 20, 208, 'A', 228, 148, 's', 209, 'D', 13, 165, 243, 'V', 'E', '!', 197, 148, 146, 'M', 'V', 241, 228, 211, '<', 'D', 213, 'c', 207, '=', 'h', 233, 4, 21, 'X', 252, 196, '5', 23, 197, 'i', 's', 'o', '8', '8', '5', '9', '1', '4', 0, 0, '(', 160, 212, 'k', 239, '(', 10, '-', 't', 239, ')', 3, 167, 'R', '0', 190, 9, 183, 226, 'J', '[', 249, 234, 235, 209, 'G', 251, 242, 'k', 'K', 191, 4, 251, 'k', 240, 191, 10, 31, 140, '0', 192, 192, 4, '#', 204, '0', 196, 20, 'c', 204, '1', 200, '$', 163, 204, '2', 204, '4', 227, 204, '3', 'i', 'E', '#', 205, '4', 212, 'T', 'c', 'M', 192, 216, 'd', 163, 205, '6', 220, 't', 179, 214, '7', 224, 132, '#', 206, '8', 228, 148, 'c', 206, '9', 232, 164, 163, 206, ':', 236, 180, 227, 206, ';', 'j', 197, '#', 207, '<', 244, 212, 'c', 143, 192, 248, 228, 163, 207, '>', 252, 244, 195, 214, '?', 'i', 's', 'o', '8', '8', '5', '9', '1', '5', 0, 'l', 'a', 't', 'i', 'n', '9', 0, 0, ')', '$', 151, 'R', 213, ')', 'V', 165, 162, 202, '*', 172, 180, 226, 202, '+', 176, 196, '"', 203, ',', 'r', 213, 'b', 203, '-', 's', 229, 162, 203, '.', 'G', '!', 213, 214, '/', 192, 4, '#', 204, '0', 196, 20, 'c', 204, '1', 200, '$', 163, 204, '2', 204, '4', 227, 204, '3', 208, 'D', '#', 205, '4', 212, 'T', 'c', 205, '5', 216, 'd', 163, 205, '6', 220, 't', 227, 205, '7', 224, 132, '#', 206, '8', 228, 148, 'c', 206, '9', 232, 164, 163, 206, ':', 236, 180, 227, 206, ';', 240, 196, '#', 207, '<', 244, 212, 'c', 207, '=', 248, 228, 163, 207, '>', 252, 244, 227, 207, '?', 'i', 's', 'o', '8', '8', '5', '9', '1', '6', 0, 0, '(', 160, 16, 'T', 'P', 'N', '$', 'c', '\\', 213, ')', 'V', 165, 146, 215, '*', 'n', 181, 242, 22, '\\', 176, 196, 194, 144, 'N', 'r', ']', 'l', 203, '-', 's', '5', 164, 215, '.', 'G', '!', 213, 'V', '\\', 192, 4, '#', 140, '@', 196, 24, 'd', 204, '1', 200, '$', 163, 204, '2', 204, '4', 227, 204, '3', 16, 237, '$', 205, '4', 212, 20, 'e', 205, 'S', 'e', 'e', 163, 205, '6', 220, 'X', 180, 215, '7', 224, 132, '#', 206, '@', 228, 28, 'd', 206, '9', 232, 164, 163, 206, ':', 236, 180, 227, 206, ';', 17, 241, '$', 207, '<', 244, 24, 'e', 15, 'T', 'f', 229, 163, 207, '>', 252, '\\', 196, 215, '?', 'c', 'p', '1', '2', '5', '0', 0, 'w', 'i', 'n', 'd', 'o', 'w', 's', '1', '2', '5', '0', 0, 0, ' ', '$', 3, 'P', '1', 0, 24, 's', 156, 177, 198, 0, 't', '\\', 149, 199, 'O', 'e', '%', 151, '[', 0, 'L', 'L', 177, 197, 23, 'o', 252, '0', 196, 0, 156, 'l', 213, 199, 'P', 'i', '5', 215, '[', 160, 248, 245, 'W', 'N', 164, 16, 'd', 202, ')', 168, 164, '2', 213, '*', 172, 180, 226, 10, '\\', 176, 196, 18, 152, 'N', 180, 212, 'b', 203, '-', 184, 20, 'D', 213, '.', '7', 13, 134, 'S', '\\', 'I', 5, '#', 140, '@', 196, 204, 'd', 208, '1', 12, '%', 'c', 209, '2', 24, '5', 227, 140, 'C', 16, 237, 244, 211, '4', 212, 20, 'e', 205, '5', 'M', 141, 165, 'M', 'Y', 220, 't', 's', 213, '7', 'J', 133, '#', 206, '@', 228, 208, 't', 208, '9', 13, 165, 's', 209, ':', 25, 181, 227, 206, 'C', 17, 241, 4, 212, '<', 244, 24, 'e', 207, '=', 'N', 145, 165, 143, 'Y', 252, 244, 131, 21, '`', 'c', 'p', '1', '2', '5', '1', 0, 'w', 'i', 'n', 'd', 'o', 'w', 's', '1', '2', '5', '1', 0, 0, ' ', 210, 'M', 'W', 'q', 136, 24, 's', 156, 177, 198, '$', 'w', 156, 157, 199, 218, 'q', 183, 157, 'w', ' ', 'N', 'L', 177, 197, 23, 'o', 252, '0', 196, 0, 156, '|', 226, 199, '(', 170, 152, '"', 139, 160, 't', 183, '"', 'v', 164, 180, 'h', 202, ')', 209, 165, 'B', 221, '*', 172, 180, 226, 202, 'u', 176, 196, 'b', 29, 137, '.', 214, 'b', 203, '-', 31, 154, ',', 226, '.', '&', 'V', '7', 'b', 137, 223, 129, 23, 158, 'x', 227, 145, 'W', 158, 'y', 231, 161, 151, 158, 'z', 235, 177, 215, 158, '{', 239, 193, 23, 159, '|', 243, 209, 'W', 159, '}', 247, 225, 151, 159, '~', 251, 241, 215, 159, 127, 255, 1, 24, 160, 128, 3, 18, 'X', 160, 129, 7, '"', 152, 160, 130, 11, '2', 216, 160, 131, 15, 'B', 24, 161, 132, 19, 'R', 'X', 161, 133, 23, 'b', 152, 161, 134, 27, 'r', 216, 161, 135, 'c', 'p', '1', '2', '5', '2', 0, 'w', 'i', 'n', 'd', 'o', 'w', 's', '1', '2', '5', '2', 0, 0, ' ', '$', 3, 'P', '1', ']', 24, 's', 156, 177, 198, '}', 'u', '\\', 149, 199, 'G', 1, ' ', 23, 0, 0, 'L', 'L', 177, 197, 23, 'o', 252, '0', 196, 130, 157, 'l', 213, 199, 'H', 1, '0', 'W', '[', 160, 132, '"', 202, '(', 164, 148, 'b', 202, ')', 168, 164, 162, 202, '*', 172, 180, 226, 202, '+', 176, 196, '"', 203, ',', 180, 212, 'b', 203, '-', 184, 228, 162, 203, '.', 188, 244, 226, 203, '/', 192, 4, '#', 204, '0', 196, 20, 'c', 204, '1', 200, '$', 163, 204, '2', 204, '4', 227, 204, '3', 208, 'D', '#', 205, '4', 212, 'T', 'c', 205, '5', 216, 'd', 163, 205, '6', 220, 't', 227, 205, '7', 224, 132, '#', 206, '8', 228, 148, 'c', 206, '9', 232, 164, 163, 206, ':', 236, 180, 227, 206, ';', 240, 196, '#', 207, '<', 244, 212, 'c', 207, '=', 248, 228, 163, 207, '>', 252, 244, 227, 207, '?', 'c', 'p', '1', '2', '5', '3', 0, 'w', 'i', 'n', 'd', 'o', 'w', 's', '1', '2', '5', '3', 0, 0, ' ', '$', 3, 'P', '1', ']', 24, 's', 156, 177, 198, 0, 't', 12, 128, 199, 0, 0, 0, 0, 0, 0, 'L', 'L', 177, 197, 23, 'o', 252, '0', 196, 0, 156, 12, 192, 199, 0, 0, 0, 0, 0, 160, ',', 198, 216, '(', 164, 148, 'b', 202, ')', 168, 164, 2, 192, '*', 172, 180, 226, 'J', 196, 176, 196, '"', 203, ',', 138, 213, 'b', 203, '-', 141, '9', 246, 216, '.', 144, 245, 18, 153, 'd', 147, 'Q', 'V', 153, 'e', 151, 'a', 150, 153, 'f', 155, 'q', 214, 153, 'g', 159, 129, 22, 154, 'h', 163, 145, 6, '@', 'i', 166, 157, 134, 'Z', 'j', 170, 173, 198, 'Z', 'k', 174, 189, 6, '[', 'l', 178, 205, 'F', '[', 'm', 182, 221, 134, '[', 'n', 186, 237, 198, '[', 'o', 190, 253, 6, '\\', 'p', 194, 13, 'G', '\\', 'q', 198, 29, 135, '\\', 'r', 202, '-', 199, '\\', 's', 206, '=', 7, 29, 0, 'c', 'p', '1', '2', '5', '4', 0, 'w', 'i', 'n', 'd', 'o', 'w', 's', '1', '2', '5', '4', 0, 0, ' ', '$', 3, 'P', '1', ']', 24, 's', 156, 177, 198, '}', 'u', '\\', 149, 199, 'G', 1, 0, 0, 0, 0, 'L', 'L', 177, 197, 23, 'o', 252, '0', 196, 130, 157, 'l', 213, 199, 'H', 1, 0, '@', '[', 160, 132, '"', 202, '(', 164, 148, 'b', 202, ')', 168, 164, 162, 202, '*', 172, 180, 226, 202, '+', 176, 196, '"', 203, ',', 180, 212, 'b', 203, '-', 184, 228, 162, 203, '.', 188, 244, 226, 203, '/', 192, 4, '#', 204, '0', 196, 20, 'c', 204, '1', 200, '$', 163, 204, '2', 204, '4', 227, 204, '3', 28, 'E', '#', 205, '4', 212, 'T', 'c', 205, '5', 216, 'd', 163, 205, '6', 220, 176, '4', 213, '7', 224, 132, '#', 206, '8', 228, 148, 'c', 206, '9', 232, 164, 163, 206, ':', 236, 180, 227, 206, ';', 29, 197, '#', 207, '<', 244, 212, 'c', 207, '=', 248, 228, 163, 207, '>', 252, 180, 'D', 213, '?', 'c', 'p', '1', '2', '5', '5', 0, 'w', 'i', 'n', 'd', 'o', 'w', 's', '1', '2', '5', '5', 0, 0, ' ', '$', 3, 'P', '1', ']', 24, 's', 156, 177, 198, '}', 'u', 12, 128, 199, 0, 0, 0, 0, 0, 0, 'L', 'L', 177, 197, 23, 'o', 252, '0', 196, 130, 157, 12, 192, 199, 0, 0, 0, 0, 0, 160, 132, '"', 202, '(', '"', 151, 'b', 202, ')', 168, 164, 'r', 205, '*', 172, 180, 226, 202, '+', 176, 196, '"', 203, ',', 180, 212, 'b', 203, '-', 184, 228, 'r', 207, '.', 188, 244, 226, 203, '/', '/', 194, 24, 163, 140, '3', 210, 'X', 163, 141, '7', 226, 8, '@', 142, ':', 238, 200, 'c', 143, '>', 254, 8, 'd', 144, ']', 'z', 249, '%', 152, 'a', 2, 0, 0, 0, 0, 0, 0, 0, 0, 'B', 14, 'I', 'd', 145, 'F', 30, 137, 'd', 146, 'J', '.', 201, 'd', 147, 'N', '>', 9, 'e', 148, 'R', 'N', 'I', 'e', 149, 'V', '^', 137, 'e', 150, 'Z', 'n', 201, '%', 0, 0, '4', 236, '0', 0, 'c', 'p', '1', '2', '5', '6', 0, 'w', 'i', 'n', 'd', 'o', 'w', 's', '1', '2', '5', '6', 0, 0, ' ', '$', 'O', 'Z', '1', ']', 24, 's', 156, 177, 198, '}', 'u', ',', 169, 199, 'G', 'Q', 'z', 'i', 165, 153, 'N', 'L', 177, 197, 23, 'o', 252, '0', 196, 152, 158, 'l', 233, 199, 'H', '-', 204, 176, 166, 160, 136, ')', 202, '(', 164, 148, 'b', 202, ')', 168, 164, 178, 233, '*', 172, 180, 226, 202, '+', 176, 196, '"', 203, ',', 180, 212, 'b', 203, '-', 184, 228, '2', 230, '.', 188, 244, 226, 11, 153, 156, 150, 'i', 230, 153, 'h', 166, 169, 230, 154, 'l', 182, 233, 230, 155, 'p', 198, ')', 231, 156, 't', 214, 'i', 231, 157, 'x', 230, 169, 231, '5', '{', 242, 217, 167, 159, 127, 2, 26, 168, 160, 224, 12, '*', 14, 161, 133, 26, 'z', 232, '9', 232, 164, 163, 206, ':', 136, '&', 234, 206, ';', 138, '.', 202, 'h', 163, 244, '8', 250, 232, '=', 144, 230, 19, 233, '>', 252, '4', 236, 'p', 167, 'c', 'p', '1', '2', '5', '7', 0, 'w', 'i', 'n', 'd', 'o', 'w', 's', '1', '2', '5', '7', 0, 0, ' ', '$', 3, 'P', '1', 0, 24, 's', 156, 177, 198, 0, 't', 12, 128, 199, 0, 160, 226, 23, '.', 0, 'L', 'L', 177, 197, 23, 'o', 252, '0', 196, 0, 156, 12, 192, 199, 0, 188, 18, 24, 0, 160, 0, ' ', 202, '(', 164, 0, '`', 202, ')', 216, 164, 178, 212, '*', 172, 180, 226, 138, '1', 176, 196, '"', 203, ',', 180, 212, 'b', 203, '-', 248, 228, 194, 212, '.', 188, 244, 226, 139, '9', 4, 169, 4, 144, 'A', 196, 20, 'c', 145, 'D', 12, '%', 227, 22, 'E', ' ', 193, 132, 'R', 'M', 'U', 237, 212, 211, '4', 'C', 'U', 'c', 205, '5', 'g', 229, 244, 212, 'W', 220, 192, '%', 215, '7', 5, 173, 20, 208, 'A', 228, 148, 's', 209, 'D', 13, 165, 243, 'V', 'E', '!', 197, 148, 146, 'M', 'V', 241, 228, 211, '<', 'D', 213, 'c', 207, '=', 'h', 233, 4, 21, 'X', 252, 196, '5', 23, '`', 'c', 'p', '1', '2', '5', '8', 0, 'w', 'i', 'n', 'd', 'o', 'w', 's', '1', '2', '5', '8', 0, 0, ' ', '$', 3, 'P', '1', ']', 24, 's', 156, 177, 198, '}', 'u', 12, 128, 199, 'G', 1, 0, 0, 0, 0, 'L', 'L', 177, 197, 23, 'o', 252, '0', 196, 130, 157, 12, 192, 199, 'H', 1, 0, '@', '[', 160, 132, '"', 202, '(', 164, 148, 'b', 202, ')', 168, 164, 162, 202, '*', 172, 180, 226, 202, '+', 176, 196, '"', 203, ',', 180, 212, 'b', 203, '-', 184, 228, 162, 203, '.', 188, 244, 226, 203, '/', 192, 4, '#', 140, '@', 196, 20, 'c', 204, '1', 200, '$', 163, 204, '2', 132, '5', 227, 204, '3', 16, 'E', 's', 216, '4', 212, 212, 'e', 205, '5', 216, 'd', 163, 205, '6', 220, 220, 'e', 216, '7', 224, 132, '#', 206, '@', 228, 148, 'c', 206, '9', 232, 164, 163, 206, ':', 133, 181, 227, 206, ';', 17, 197, 131, 216, '<', 244, 216, 'e', 207, '=', 248, 228, 163, 207, '>', 252, 224, '5', 242, '?', 'k', 'o', 'i', '8', 'r', 0, 0, ' ', '3', 211, '\\', 179, 205, '7', 227, 156, 179, 206, ';', 243, 220, 243, 214, '\\', 'w', 237, 245, 215, '`', 135, '-', 'v', 204, 'c', 163, 156, '2', 203, '.', 191, 12, 138, 204, 176, 200, 'r', 203, '=', '>', 255, 12, 244, 135, 'A', 11, '=', '4', 209, 'E', 27, '}', '4', 210, 'I', '+', 189, '4', 211, 'M', ';', 253, 't', 't', 'P', 'G', '-', 245, 212, 'T', 'W', 'm', 245, 213, 'X', 'g', 173, 'u', '*', 29, 254, 7, '`', 133, 3, 18, '8', 161, 128, 20, 30, 136, '`', 130, 10, '.', 200, '`', 131, 14, 'z', 248, ' ', 132, 17, 'J', 'X', '`', 128, 27, 'j', 'h', 224, 133, 28, 'b', 'h', 'a', 134, 253, '}', 7, '^', '}', 227, 145, '7', 159, 'x', 244, 157, 135, '^', 'z', 234, 173, 199, '^', '{', 238, 249, 247, 30, '|', 241, 201, 'W', '^', 'x', 251, 233, 'g', 222, '}', 252, 225, 'g', '_', '~', 'k', 'o', 'i', '8', 'u', 0, 0, ' ', '3', 211, '\\', 179, 205, '7', 227, 156, 179, 206, ';', 243, 220, 243, 214, '\\', 'w', 237, 245, 215, '`', 135, '-', 'v', 204, 'c', 163, 156, '2', 203, '.', 191, 12, 138, 204, 176, 200, 'r', 203, '=', '>', 255, 12, 244, 135, '"', 10, 'M', 'b', 137, 'E', 27, '}', '4', 210, 'I', 187, 184, '4', 211, 'M', ';', 253, 't', 't', 212, 'E', 'm', 221, 'u', 'T', 'W', 'm', 245, 213, 'X', 183, 168, 'u', '*', 29, 254, 7, '`', 133, 3, 18, '8', 161, 128, 20, 30, 136, '`', 130, 10, '.', 200, '`', 131, 14, 'z', 248, ' ', 132, 17, 'J', 'X', '`', 128, 27, 'j', 'h', 224, 133, 28, 'b', 'h', 'a', 134, 253, '}', 7, '^', '}', 227, 145, '7', 159, 'x', 244, 157, 135, '^', 'z', 234, 173, 199, '^', '{', 238, 249, 247, 30, '|', 241, 201, 'W', '^', 'x', 251, 233, 'g', 222, '}', 252, 225, 'g', '_', '~', 'c', 'p', '4', '3', '7', 0, 0, ' ', 199, 240, 147, 142, '8', 228, 128, 'S', 206, '9', 234, 172, 131, 206, ';', 238, 176, 'C', 'L', '1', 201, 152, 'c', 12, '=', 246, 200, 179, 'O', '>', 255, 'X', 195, 141, '(', 163, 148, 18, '2', ']', 225, 180, '3', 143, '>', 241, 'D', 163, 138, '.', 191, 192, 204, 'J', '/', 188, 132, 178, 202, '.', '`', 135, '-', '6', 205, ':', '?', 13, '5', 209, 'C', 'G', 253, 's', 209, 'K', '+', 157, 180, 205, '7', 243, 188, 's', 206, '3', 247, 204, 't', 211, 'H', 11, '}', '5', 213, 'N', 251, 172, 'u', 213, 'V', 'K', '=', 245, 209, 'F', 3, 29, 't', 214, 'X', 227, '\\', 's', 215, '\\', '{', 253, 245, 214, 179, '}', 'c', 153, 'p', 165, 21, 'W', 139, 'q', 168, 'm', 182, 154, 'm', '*', '#', 'w', 219, 202, '-', 199, 242, 178, 203, '1', 203, '|', 15, 203, 176, 160, '|', 'K', 202, ' ', 203, '2', '6', '(', 'c', 'p', '8', '5', '0', 0, 0, ' ', 199, 240, 147, 142, '8', 228, 128, 'S', 206, '9', 234, 172, 131, 206, ';', 238, 176, 'C', 'L', '1', 201, 152, 'c', 12, '=', 246, 200, 179, 'O', '>', 255, 'X', 195, 13, '>', 163, '`', 's', 13, ']', 225, 180, '3', 143, '>', 241, 'D', 163, 138, '.', 191, 184, 194, 'J', '/', 188, 132, 178, 202, '.', '`', 135, '-', '6', 205, ':', 7, '#', 12, '0', 169, 'D', 253, 's', 209, 'K', 139, 'R', 138, 205, '7', 243, 188, 's', 206, '3', 247, '<', 206, '0', 'H', 11, '}', '5', 213, 'N', 251, 172, '5', ')', 240, '@', 163, 204, '2', 200, 180, 212, 140, '3', 207, 224, '\\', 's', 215, '\\', 155, 194, 204, 214, 211, '|', 'C', 141, '4', 245, 'T', 'S', 139, '?', 222, 'h', 179, 'M', '6', 253, 't', 243, 10, '-', 173, 196, '"', 177, '/', 182, 156, 'r', 15, '.', 176, 160, 'r', 'K', '.', 179, 200, '2', '6', '(', 'c', 'p', '8', '6', '6', 0, 0, ' ', 223, 129, 23, 158, 'x', 227, 145, 'W', 158, 'y', 231, 161, 151, 158, 'z', 235, 177, 215, 158, '{', 239, 193, 23, 159, '|', 243, 209, 'W', 159, '}', 247, 225, 151, 159, '~', 251, 241, 215, 159, 127, 255, 1, 24, 160, 128, 3, 18, 'X', 160, 129, 7, '"', 152, 160, 130, 11, '2', 216, 160, 131, '`', 135, '-', '6', 205, ':', '?', 13, '5', 209, 'C', 'G', 253, 's', 209, 'K', '+', 157, 180, 205, '7', 243, 188, 's', 206, '3', 247, 204, 't', 211, 'H', 11, '}', '5', 213, 'N', 251, 172, 'u', 213, 'V', 'K', '=', 245, 209, 'F', 3, 29, 't', 214, 'X', 227, '\\', 's', 215, '\\', '{', 253, 245, 214, 15, 'B', 24, 161, 132, 19, 'R', 'X', 161, 133, 23, 'b', 152, 161, 134, 27, 'r', 216, 161, 135, 209, '}', 'H', 157, 136, 215, 149, 216, 221, 138, 176, 160, '|', 'K', 202, '&', 147, '2', '6', '(', 'i', 'b', 'm', '1', '0', '4', '7', 0, 'c', 'p', '1', '0', '4', '7', 0, 0, 1, 156, '$', '`', 200, 31, 151, '4', 226, 200, 2, 12, '4', 224, 192, 3, 16, 'D', ' ', 193, 4, 157, 20, 130, 192, '!', 24, 'd', ' ', 201, '#', 28, 't', 224, 193, 7, 128, 4, '"', 200, ' ', 132, '(', 'p', 193, 6, 136, '$', 162, 200, '"', 140, 20, '`', 192, 1, 144, 'D', 'b', 193, '$', 148, 'T', 'b', 9, 1, 152, 'd', 162, 201, '&', 20, 'T', 224, 137, 6, ' ', 128, '"', 14, '9', 224, 132, '3', 'N', '9', 231, 196, '#', 138, 11, '<', 160, 176, 2, 31, '&', 164, 163, 206, ':', 232, 180, 227, 206, ';', 236, '|', 19, 2, 9, '*', 164, 176, 131, 23, '-', 188, ' ', 12, '1', 192, 4, '3', 'L', '1', 199, 'D', 'c', 10, 11, '%', '|', 225, 195, 15, 248, '$', 163, 204, '2', 200, '4', 227, 204, '3', 204, 128, 161, 195, 8, '@', 156, 208, 131, 8, 216, 132, '!', 198, 24, 'd', 148, 'a', 198, 25, 'h', 164, 177, 202, '.', 240, 244, 227, 'O', ',', 176, 168, 177, 6, 27, 'm', 184, 241, 6, 28, 'q', 200, 161, 138, '.', 230, 224, 'b', 12, ')', 181, 248, '1', 7, 29, 'u', 216, 'q', 7, 30, 'y', 232, 17, 202, '/', 208, 'l', 225, 141, '+', 172, 140, 'R', 202, '-', 169, 156, 'b', 11, '/', 189, 248, 210, 13, '*', 175, 't', 'A', 203, '5', '{', 4, '!', 196, 16, 'D', 20, 'a', 196, 17, 'H', '$', 209, 10, '=', 246, 200, '3', 'O', '=', '}', '(', 177, 4, 19, 'M', '8', 241, 4, 20, 'Q', 'H', 145, 203, '>', 252, 228, 163, 207, '?', '\\', 220, '3', 5, 21, 'U', 'X', 'q', 5, 22, 'Y', 'h', '!', 11, '5', 214, 'H', '3', 'M', '5', '0', 196, ' ', 195, 12, '4', 212, '`', 195, 13, '8', 228, '0', 203, '6', 220, 'd', 163, 205, '\''} + +// C documentation +// +// /* Table of characters that appear in legacy 8-bit codepages, +// * limited to 1024 slots (10 bit indices). The first 256 entries +// * are elided since those characters are obviously all included. */ +var _legacy_chars = [612]uint16{ + 0: uint16(256), + 1: uint16(257), + 2: uint16(258), + 3: uint16(259), + 4: uint16(260), + 5: uint16(261), + 6: uint16(262), + 7: uint16(263), + 8: uint16(264), + 9: uint16(265), + 10: uint16(266), + 11: uint16(267), + 12: uint16(268), + 13: uint16(269), + 14: uint16(270), + 15: uint16(271), + 16: uint16(272), + 17: uint16(273), + 18: uint16(274), + 19: uint16(275), + 20: uint16(278), + 21: uint16(279), + 22: uint16(280), + 23: uint16(281), + 24: uint16(282), + 25: uint16(283), + 26: uint16(284), + 27: uint16(285), + 28: uint16(286), + 29: uint16(287), + 30: uint16(288), + 31: uint16(289), + 32: uint16(290), + 33: uint16(291), + 34: uint16(292), + 35: uint16(293), + 36: uint16(294), + 37: uint16(295), + 38: uint16(296), + 39: uint16(297), + 40: uint16(298), + 41: uint16(299), + 42: uint16(302), + 43: uint16(303), + 44: uint16(304), + 45: uint16(305), + 46: uint16(308), + 47: uint16(309), + 48: uint16(310), + 49: uint16(311), + 50: uint16(312), + 51: uint16(313), + 52: uint16(314), + 53: uint16(315), + 54: uint16(316), + 55: uint16(317), + 56: uint16(318), + 57: uint16(321), + 58: uint16(322), + 59: uint16(323), + 60: uint16(324), + 61: uint16(325), + 62: uint16(326), + 63: uint16(327), + 64: uint16(328), + 65: uint16(330), + 66: uint16(331), + 67: uint16(332), + 68: uint16(333), + 69: uint16(336), + 70: uint16(337), + 71: uint16(338), + 72: uint16(339), + 73: uint16(340), + 74: uint16(341), + 75: uint16(342), + 76: uint16(343), + 77: uint16(344), + 78: uint16(345), + 79: uint16(346), + 80: uint16(347), + 81: uint16(348), + 82: uint16(349), + 83: uint16(350), + 84: uint16(351), + 85: uint16(352), + 86: uint16(353), + 87: uint16(354), + 88: uint16(355), + 89: uint16(356), + 90: uint16(357), + 91: uint16(358), + 92: uint16(359), + 93: uint16(360), + 94: uint16(361), + 95: uint16(362), + 96: uint16(363), + 97: uint16(364), + 98: uint16(365), + 99: uint16(366), + 100: uint16(367), + 101: uint16(368), + 102: uint16(369), + 103: uint16(370), + 104: uint16(371), + 105: uint16(372), + 106: uint16(373), + 107: uint16(374), + 108: uint16(375), + 109: uint16(376), + 110: uint16(377), + 111: uint16(378), + 112: uint16(379), + 113: uint16(380), + 114: uint16(381), + 115: uint16(382), + 116: uint16(402), + 117: uint16(416), + 118: uint16(417), + 119: uint16(431), + 120: uint16(432), + 121: uint16(536), + 122: uint16(537), + 123: uint16(538), + 124: uint16(539), + 125: uint16(710), + 126: uint16(711), + 127: uint16(728), + 128: uint16(729), + 129: uint16(731), + 130: uint16(732), + 131: uint16(733), + 132: uint16(768), + 133: uint16(769), + 134: uint16(771), + 135: uint16(777), + 136: uint16(803), + 137: uint16(890), + 138: uint16(900), + 139: uint16(901), + 140: uint16(902), + 141: uint16(904), + 142: uint16(905), + 143: uint16(906), + 144: uint16(908), + 145: uint16(910), + 146: uint16(911), + 147: uint16(912), + 148: uint16(913), + 149: uint16(914), + 150: uint16(915), + 151: uint16(916), + 152: uint16(917), + 153: uint16(918), + 154: uint16(919), + 155: uint16(920), + 156: uint16(921), + 157: uint16(922), + 158: uint16(923), + 159: uint16(924), + 160: uint16(925), + 161: uint16(926), + 162: uint16(927), + 163: uint16(928), + 164: uint16(929), + 165: uint16(931), + 166: uint16(932), + 167: uint16(933), + 168: uint16(934), + 169: uint16(935), + 170: uint16(936), + 171: uint16(937), + 172: uint16(938), + 173: uint16(939), + 174: uint16(940), + 175: uint16(941), + 176: uint16(942), + 177: uint16(943), + 178: uint16(944), + 179: uint16(945), + 180: uint16(946), + 181: uint16(947), + 182: uint16(948), + 183: uint16(949), + 184: uint16(950), + 185: uint16(951), + 186: uint16(952), + 187: uint16(953), + 188: uint16(954), + 189: uint16(955), + 190: uint16(956), + 191: uint16(957), + 192: uint16(958), + 193: uint16(959), + 194: uint16(960), + 195: uint16(961), + 196: uint16(962), + 197: uint16(963), + 198: uint16(964), + 199: uint16(965), + 200: uint16(966), + 201: uint16(967), + 202: uint16(968), + 203: uint16(969), + 204: uint16(970), + 205: uint16(971), + 206: uint16(972), + 207: uint16(973), + 208: uint16(974), + 209: uint16(1025), + 210: uint16(1026), + 211: uint16(1027), + 212: uint16(1028), + 213: uint16(1029), + 214: uint16(1030), + 215: uint16(1031), + 216: uint16(1032), + 217: uint16(1033), + 218: uint16(1034), + 219: uint16(1035), + 220: uint16(1036), + 221: uint16(1038), + 222: uint16(1039), + 223: uint16(1040), + 224: uint16(1041), + 225: uint16(1042), + 226: uint16(1043), + 227: uint16(1044), + 228: uint16(1045), + 229: uint16(1046), + 230: uint16(1047), + 231: uint16(1048), + 232: uint16(1049), + 233: uint16(1050), + 234: uint16(1051), + 235: uint16(1052), + 236: uint16(1053), + 237: uint16(1054), + 238: uint16(1055), + 239: uint16(1056), + 240: uint16(1057), + 241: uint16(1058), + 242: uint16(1059), + 243: uint16(1060), + 244: uint16(1061), + 245: uint16(1062), + 246: uint16(1063), + 247: uint16(1064), + 248: uint16(1065), + 249: uint16(1066), + 250: uint16(1067), + 251: uint16(1068), + 252: uint16(1069), + 253: uint16(1070), + 254: uint16(1071), + 255: uint16(1072), + 256: uint16(1073), + 257: uint16(1074), + 258: uint16(1075), + 259: uint16(1076), + 260: uint16(1077), + 261: uint16(1078), + 262: uint16(1079), + 263: uint16(1080), + 264: uint16(1081), + 265: uint16(1082), + 266: uint16(1083), + 267: uint16(1084), + 268: uint16(1085), + 269: uint16(1086), + 270: uint16(1087), + 271: uint16(1088), + 272: uint16(1089), + 273: uint16(1090), + 274: uint16(1091), + 275: uint16(1092), + 276: uint16(1093), + 277: uint16(1094), + 278: uint16(1095), + 279: uint16(1096), + 280: uint16(1097), + 281: uint16(1098), + 282: uint16(1099), + 283: uint16(1100), + 284: uint16(1101), + 285: uint16(1102), + 286: uint16(1103), + 287: uint16(1105), + 288: uint16(1106), + 289: uint16(1107), + 290: uint16(1108), + 291: uint16(1109), + 292: uint16(1110), + 293: uint16(1111), + 294: uint16(1112), + 295: uint16(1113), + 296: uint16(1114), + 297: uint16(1115), + 298: uint16(1116), + 299: uint16(1118), + 300: uint16(1119), + 301: uint16(1168), + 302: uint16(1169), + 303: uint16(1456), + 304: uint16(1457), + 305: uint16(1458), + 306: uint16(1459), + 307: uint16(1460), + 308: uint16(1461), + 309: uint16(1462), + 310: uint16(1463), + 311: uint16(1464), + 312: uint16(1465), + 313: uint16(1467), + 314: uint16(1468), + 315: uint16(1469), + 316: uint16(1470), + 317: uint16(1471), + 318: uint16(1472), + 319: uint16(1473), + 320: uint16(1474), + 321: uint16(1475), + 322: uint16(1488), + 323: uint16(1489), + 324: uint16(1490), + 325: uint16(1491), + 326: uint16(1492), + 327: uint16(1493), + 328: uint16(1494), + 329: uint16(1495), + 330: uint16(1496), + 331: uint16(1497), + 332: uint16(1498), + 333: uint16(1499), + 334: uint16(1500), + 335: uint16(1501), + 336: uint16(1502), + 337: uint16(1503), + 338: uint16(1504), + 339: uint16(1505), + 340: uint16(1506), + 341: uint16(1507), + 342: uint16(1508), + 343: uint16(1509), + 344: uint16(1510), + 345: uint16(1511), + 346: uint16(1512), + 347: uint16(1513), + 348: uint16(1514), + 349: uint16(1520), + 350: uint16(1521), + 351: uint16(1522), + 352: uint16(1523), + 353: uint16(1524), + 354: uint16(1548), + 355: uint16(1563), + 356: uint16(1567), + 357: uint16(1569), + 358: uint16(1570), + 359: uint16(1571), + 360: uint16(1572), + 361: uint16(1573), + 362: uint16(1574), + 363: uint16(1575), + 364: uint16(1576), + 365: uint16(1577), + 366: uint16(1578), + 367: uint16(1579), + 368: uint16(1580), + 369: uint16(1581), + 370: uint16(1582), + 371: uint16(1583), + 372: uint16(1584), + 373: uint16(1585), + 374: uint16(1586), + 375: uint16(1587), + 376: uint16(1588), + 377: uint16(1589), + 378: uint16(1590), + 379: uint16(1591), + 380: uint16(1592), + 381: uint16(1593), + 382: uint16(1594), + 383: uint16(1600), + 384: uint16(1601), + 385: uint16(1602), + 386: uint16(1603), + 387: uint16(1604), + 388: uint16(1605), + 389: uint16(1606), + 390: uint16(1607), + 391: uint16(1608), + 392: uint16(1609), + 393: uint16(1610), + 394: uint16(1611), + 395: uint16(1612), + 396: uint16(1613), + 397: uint16(1614), + 398: uint16(1615), + 399: uint16(1616), + 400: uint16(1617), + 401: uint16(1618), + 402: uint16(1657), + 403: uint16(1662), + 404: uint16(1670), + 405: uint16(1672), + 406: uint16(1681), + 407: uint16(1688), + 408: uint16(1705), + 409: uint16(1711), + 410: uint16(1722), + 411: uint16(1726), + 412: uint16(1729), + 413: uint16(1746), + 414: uint16(3585), + 415: uint16(3586), + 416: uint16(3587), + 417: uint16(3588), + 418: uint16(3589), + 419: uint16(3590), + 420: uint16(3591), + 421: uint16(3592), + 422: uint16(3593), + 423: uint16(3594), + 424: uint16(3595), + 425: uint16(3596), + 426: uint16(3597), + 427: uint16(3598), + 428: uint16(3599), + 429: uint16(3600), + 430: uint16(3601), + 431: uint16(3602), + 432: uint16(3603), + 433: uint16(3604), + 434: uint16(3605), + 435: uint16(3606), + 436: uint16(3607), + 437: uint16(3608), + 438: uint16(3609), + 439: uint16(3610), + 440: uint16(3611), + 441: uint16(3612), + 442: uint16(3613), + 443: uint16(3614), + 444: uint16(3615), + 445: uint16(3616), + 446: uint16(3617), + 447: uint16(3618), + 448: uint16(3619), + 449: uint16(3620), + 450: uint16(3621), + 451: uint16(3622), + 452: uint16(3623), + 453: uint16(3624), + 454: uint16(3625), + 455: uint16(3626), + 456: uint16(3627), + 457: uint16(3628), + 458: uint16(3629), + 459: uint16(3630), + 460: uint16(3631), + 461: uint16(3632), + 462: uint16(3633), + 463: uint16(3634), + 464: uint16(3635), + 465: uint16(3636), + 466: uint16(3637), + 467: uint16(3638), + 468: uint16(3639), + 469: uint16(3640), + 470: uint16(3641), + 471: uint16(3642), + 472: uint16(3647), + 473: uint16(3648), + 474: uint16(3649), + 475: uint16(3650), + 476: uint16(3651), + 477: uint16(3652), + 478: uint16(3653), + 479: uint16(3654), + 480: uint16(3655), + 481: uint16(3656), + 482: uint16(3657), + 483: uint16(3658), + 484: uint16(3659), + 485: uint16(3660), + 486: uint16(3661), + 487: uint16(3662), + 488: uint16(3663), + 489: uint16(3664), + 490: uint16(3665), + 491: uint16(3666), + 492: uint16(3667), + 493: uint16(3668), + 494: uint16(3669), + 495: uint16(3670), + 496: uint16(3671), + 497: uint16(3672), + 498: uint16(3673), + 499: uint16(3674), + 500: uint16(3675), + 501: uint16(7682), + 502: uint16(7683), + 503: uint16(7690), + 504: uint16(7691), + 505: uint16(7710), + 506: uint16(7711), + 507: uint16(7744), + 508: uint16(7745), + 509: uint16(7766), + 510: uint16(7767), + 511: uint16(7776), + 512: uint16(7777), + 513: uint16(7786), + 514: uint16(7787), + 515: uint16(7808), + 516: uint16(7809), + 517: uint16(7810), + 518: uint16(7811), + 519: uint16(7812), + 520: uint16(7813), + 521: uint16(7922), + 522: uint16(7923), + 523: uint16(8204), + 524: uint16(8205), + 525: uint16(8206), + 526: uint16(8207), + 527: uint16(8211), + 528: uint16(8212), + 529: uint16(8213), + 530: uint16(8215), + 531: uint16(8216), + 532: uint16(8217), + 533: uint16(8218), + 534: uint16(8220), + 535: uint16(8221), + 536: uint16(8222), + 537: uint16(8224), + 538: uint16(8225), + 539: uint16(8226), + 540: uint16(8230), + 541: uint16(8240), + 542: uint16(8249), + 543: uint16(8250), + 544: uint16(8319), + 545: uint16(8359), + 546: uint16(8362), + 547: uint16(8363), + 548: uint16(8364), + 549: uint16(8367), + 550: uint16(8470), + 551: uint16(8482), + 552: uint16(8729), + 553: uint16(8730), + 554: uint16(8734), + 555: uint16(8745), + 556: uint16(8776), + 557: uint16(8801), + 558: uint16(8804), + 559: uint16(8805), + 560: uint16(8976), + 561: uint16(8992), + 562: uint16(8993), + 563: uint16(9472), + 564: uint16(9474), + 565: uint16(9484), + 566: uint16(9488), + 567: uint16(9492), + 568: uint16(9496), + 569: uint16(9500), + 570: uint16(9508), + 571: uint16(9516), + 572: uint16(9524), + 573: uint16(9532), + 574: uint16(9552), + 575: uint16(9553), + 576: uint16(9554), + 577: uint16(9555), + 578: uint16(9556), + 579: uint16(9557), + 580: uint16(9558), + 581: uint16(9559), + 582: uint16(9560), + 583: uint16(9561), + 584: uint16(9562), + 585: uint16(9563), + 586: uint16(9564), + 587: uint16(9565), + 588: uint16(9566), + 589: uint16(9567), + 590: uint16(9568), + 591: uint16(9569), + 592: uint16(9570), + 593: uint16(9571), + 594: uint16(9572), + 595: uint16(9573), + 596: uint16(9574), + 597: uint16(9575), + 598: uint16(9576), + 599: uint16(9577), + 600: uint16(9578), + 601: uint16(9579), + 602: uint16(9580), + 603: uint16(9600), + 604: uint16(9604), + 605: uint16(9608), + 606: uint16(9612), + 607: uint16(9616), + 608: uint16(9617), + 609: uint16(9618), + 610: uint16(9619), + 611: uint16(9632), +} + +var _jis0208 = [84][94]uint16{ + 0: { + 0: uint16(12288), + 1: uint16(12289), + 2: uint16(12290), + 3: uint16(65292), + 4: uint16(65294), + 5: uint16(12539), + 6: uint16(65306), + 7: uint16(65307), + 8: uint16(65311), + 9: uint16(65281), + 10: uint16(12443), + 11: uint16(12444), + 12: uint16(180), + 13: uint16(65344), + 14: uint16(168), + 15: uint16(65342), + 16: uint16(65507), + 17: uint16(65343), + 18: uint16(12541), + 19: uint16(12542), + 20: uint16(12445), + 21: uint16(12446), + 22: uint16(12291), + 23: uint16(20189), + 24: uint16(12293), + 25: uint16(12294), + 26: uint16(12295), + 27: uint16(12540), + 28: uint16(8213), + 29: uint16(8208), + 30: uint16(65295), + 31: uint16(92), + 32: uint16(12316), + 33: uint16(8214), + 34: uint16(65372), + 35: uint16(8230), + 36: uint16(8229), + 37: uint16(8216), + 38: uint16(8217), + 39: uint16(8220), + 40: uint16(8221), + 41: uint16(65288), + 42: uint16(65289), + 43: uint16(12308), + 44: uint16(12309), + 45: uint16(65339), + 46: uint16(65341), + 47: uint16(65371), + 48: uint16(65373), + 49: uint16(12296), + 50: uint16(12297), + 51: uint16(12298), + 52: uint16(12299), + 53: uint16(12300), + 54: uint16(12301), + 55: uint16(12302), + 56: uint16(12303), + 57: uint16(12304), + 58: uint16(12305), + 59: uint16(65291), + 60: uint16(8722), + 61: uint16(177), + 62: uint16(215), + 63: uint16(247), + 64: uint16(65309), + 65: uint16(8800), + 66: uint16(65308), + 67: uint16(65310), + 68: uint16(8806), + 69: uint16(8807), + 70: uint16(8734), + 71: uint16(8756), + 72: uint16(9794), + 73: uint16(9792), + 74: uint16(176), + 75: uint16(8242), + 76: uint16(8243), + 77: uint16(8451), + 78: uint16(65509), + 79: uint16(65284), + 80: uint16(162), + 81: uint16(163), + 82: uint16(65285), + 83: uint16(65283), + 84: uint16(65286), + 85: uint16(65290), + 86: uint16(65312), + 87: uint16(167), + 88: uint16(9734), + 89: uint16(9733), + 90: uint16(9675), + 91: uint16(9679), + 92: uint16(9678), + 93: uint16(9671), + }, + 1: { + 0: uint16(9670), + 1: uint16(9633), + 2: uint16(9632), + 3: uint16(9651), + 4: uint16(9650), + 5: uint16(9661), + 6: uint16(9660), + 7: uint16(8251), + 8: uint16(12306), + 9: uint16(8594), + 10: uint16(8592), + 11: uint16(8593), + 12: uint16(8595), + 13: uint16(12307), + 25: uint16(8712), + 26: uint16(8715), + 27: uint16(8838), + 28: uint16(8839), + 29: uint16(8834), + 30: uint16(8835), + 31: uint16(8746), + 32: uint16(8745), + 41: uint16(8743), + 42: uint16(8744), + 43: uint16(172), + 44: uint16(8658), + 45: uint16(8660), + 46: uint16(8704), + 47: uint16(8707), + 59: uint16(8736), + 60: uint16(8869), + 61: uint16(8978), + 62: uint16(8706), + 63: uint16(8711), + 64: uint16(8801), + 65: uint16(8786), + 66: uint16(8810), + 67: uint16(8811), + 68: uint16(8730), + 69: uint16(8765), + 70: uint16(8733), + 71: uint16(8757), + 72: uint16(8747), + 73: uint16(8748), + 81: uint16(8491), + 82: uint16(8240), + 83: uint16(9839), + 84: uint16(9837), + 85: uint16(9834), + 86: uint16(8224), + 87: uint16(8225), + 88: uint16(182), + 93: uint16(9711), + }, + 2: { + 15: uint16(65296), + 16: uint16(65297), + 17: uint16(65298), + 18: uint16(65299), + 19: uint16(65300), + 20: uint16(65301), + 21: uint16(65302), + 22: uint16(65303), + 23: uint16(65304), + 24: uint16(65305), + 32: uint16(65313), + 33: uint16(65314), + 34: uint16(65315), + 35: uint16(65316), + 36: uint16(65317), + 37: uint16(65318), + 38: uint16(65319), + 39: uint16(65320), + 40: uint16(65321), + 41: uint16(65322), + 42: uint16(65323), + 43: uint16(65324), + 44: uint16(65325), + 45: uint16(65326), + 46: uint16(65327), + 47: uint16(65328), + 48: uint16(65329), + 49: uint16(65330), + 50: uint16(65331), + 51: uint16(65332), + 52: uint16(65333), + 53: uint16(65334), + 54: uint16(65335), + 55: uint16(65336), + 56: uint16(65337), + 57: uint16(65338), + 64: uint16(65345), + 65: uint16(65346), + 66: uint16(65347), + 67: uint16(65348), + 68: uint16(65349), + 69: uint16(65350), + 70: uint16(65351), + 71: uint16(65352), + 72: uint16(65353), + 73: uint16(65354), + 74: uint16(65355), + 75: uint16(65356), + 76: uint16(65357), + 77: uint16(65358), + 78: uint16(65359), + 79: uint16(65360), + 80: uint16(65361), + 81: uint16(65362), + 82: uint16(65363), + 83: uint16(65364), + 84: uint16(65365), + 85: uint16(65366), + 86: uint16(65367), + 87: uint16(65368), + 88: uint16(65369), + 89: uint16(65370), + }, + 3: { + 0: uint16(12353), + 1: uint16(12354), + 2: uint16(12355), + 3: uint16(12356), + 4: uint16(12357), + 5: uint16(12358), + 6: uint16(12359), + 7: uint16(12360), + 8: uint16(12361), + 9: uint16(12362), + 10: uint16(12363), + 11: uint16(12364), + 12: uint16(12365), + 13: uint16(12366), + 14: uint16(12367), + 15: uint16(12368), + 16: uint16(12369), + 17: uint16(12370), + 18: uint16(12371), + 19: uint16(12372), + 20: uint16(12373), + 21: uint16(12374), + 22: uint16(12375), + 23: uint16(12376), + 24: uint16(12377), + 25: uint16(12378), + 26: uint16(12379), + 27: uint16(12380), + 28: uint16(12381), + 29: uint16(12382), + 30: uint16(12383), + 31: uint16(12384), + 32: uint16(12385), + 33: uint16(12386), + 34: uint16(12387), + 35: uint16(12388), + 36: uint16(12389), + 37: uint16(12390), + 38: uint16(12391), + 39: uint16(12392), + 40: uint16(12393), + 41: uint16(12394), + 42: uint16(12395), + 43: uint16(12396), + 44: uint16(12397), + 45: uint16(12398), + 46: uint16(12399), + 47: uint16(12400), + 48: uint16(12401), + 49: uint16(12402), + 50: uint16(12403), + 51: uint16(12404), + 52: uint16(12405), + 53: uint16(12406), + 54: uint16(12407), + 55: uint16(12408), + 56: uint16(12409), + 57: uint16(12410), + 58: uint16(12411), + 59: uint16(12412), + 60: uint16(12413), + 61: uint16(12414), + 62: uint16(12415), + 63: uint16(12416), + 64: uint16(12417), + 65: uint16(12418), + 66: uint16(12419), + 67: uint16(12420), + 68: uint16(12421), + 69: uint16(12422), + 70: uint16(12423), + 71: uint16(12424), + 72: uint16(12425), + 73: uint16(12426), + 74: uint16(12427), + 75: uint16(12428), + 76: uint16(12429), + 77: uint16(12430), + 78: uint16(12431), + 79: uint16(12432), + 80: uint16(12433), + 81: uint16(12434), + 82: uint16(12435), + }, + 4: { + 0: uint16(12449), + 1: uint16(12450), + 2: uint16(12451), + 3: uint16(12452), + 4: uint16(12453), + 5: uint16(12454), + 6: uint16(12455), + 7: uint16(12456), + 8: uint16(12457), + 9: uint16(12458), + 10: uint16(12459), + 11: uint16(12460), + 12: uint16(12461), + 13: uint16(12462), + 14: uint16(12463), + 15: uint16(12464), + 16: uint16(12465), + 17: uint16(12466), + 18: uint16(12467), + 19: uint16(12468), + 20: uint16(12469), + 21: uint16(12470), + 22: uint16(12471), + 23: uint16(12472), + 24: uint16(12473), + 25: uint16(12474), + 26: uint16(12475), + 27: uint16(12476), + 28: uint16(12477), + 29: uint16(12478), + 30: uint16(12479), + 31: uint16(12480), + 32: uint16(12481), + 33: uint16(12482), + 34: uint16(12483), + 35: uint16(12484), + 36: uint16(12485), + 37: uint16(12486), + 38: uint16(12487), + 39: uint16(12488), + 40: uint16(12489), + 41: uint16(12490), + 42: uint16(12491), + 43: uint16(12492), + 44: uint16(12493), + 45: uint16(12494), + 46: uint16(12495), + 47: uint16(12496), + 48: uint16(12497), + 49: uint16(12498), + 50: uint16(12499), + 51: uint16(12500), + 52: uint16(12501), + 53: uint16(12502), + 54: uint16(12503), + 55: uint16(12504), + 56: uint16(12505), + 57: uint16(12506), + 58: uint16(12507), + 59: uint16(12508), + 60: uint16(12509), + 61: uint16(12510), + 62: uint16(12511), + 63: uint16(12512), + 64: uint16(12513), + 65: uint16(12514), + 66: uint16(12515), + 67: uint16(12516), + 68: uint16(12517), + 69: uint16(12518), + 70: uint16(12519), + 71: uint16(12520), + 72: uint16(12521), + 73: uint16(12522), + 74: uint16(12523), + 75: uint16(12524), + 76: uint16(12525), + 77: uint16(12526), + 78: uint16(12527), + 79: uint16(12528), + 80: uint16(12529), + 81: uint16(12530), + 82: uint16(12531), + 83: uint16(12532), + 84: uint16(12533), + 85: uint16(12534), + }, + 5: { + 0: uint16(913), + 1: uint16(914), + 2: uint16(915), + 3: uint16(916), + 4: uint16(917), + 5: uint16(918), + 6: uint16(919), + 7: uint16(920), + 8: uint16(921), + 9: uint16(922), + 10: uint16(923), + 11: uint16(924), + 12: uint16(925), + 13: uint16(926), + 14: uint16(927), + 15: uint16(928), + 16: uint16(929), + 17: uint16(931), + 18: uint16(932), + 19: uint16(933), + 20: uint16(934), + 21: uint16(935), + 22: uint16(936), + 23: uint16(937), + 32: uint16(945), + 33: uint16(946), + 34: uint16(947), + 35: uint16(948), + 36: uint16(949), + 37: uint16(950), + 38: uint16(951), + 39: uint16(952), + 40: uint16(953), + 41: uint16(954), + 42: uint16(955), + 43: uint16(956), + 44: uint16(957), + 45: uint16(958), + 46: uint16(959), + 47: uint16(960), + 48: uint16(961), + 49: uint16(963), + 50: uint16(964), + 51: uint16(965), + 52: uint16(966), + 53: uint16(967), + 54: uint16(968), + 55: uint16(969), + }, + 6: { + 0: uint16(1040), + 1: uint16(1041), + 2: uint16(1042), + 3: uint16(1043), + 4: uint16(1044), + 5: uint16(1045), + 6: uint16(1025), + 7: uint16(1046), + 8: uint16(1047), + 9: uint16(1048), + 10: uint16(1049), + 11: uint16(1050), + 12: uint16(1051), + 13: uint16(1052), + 14: uint16(1053), + 15: uint16(1054), + 16: uint16(1055), + 17: uint16(1056), + 18: uint16(1057), + 19: uint16(1058), + 20: uint16(1059), + 21: uint16(1060), + 22: uint16(1061), + 23: uint16(1062), + 24: uint16(1063), + 25: uint16(1064), + 26: uint16(1065), + 27: uint16(1066), + 28: uint16(1067), + 29: uint16(1068), + 30: uint16(1069), + 31: uint16(1070), + 32: uint16(1071), + 48: uint16(1072), + 49: uint16(1073), + 50: uint16(1074), + 51: uint16(1075), + 52: uint16(1076), + 53: uint16(1077), + 54: uint16(1105), + 55: uint16(1078), + 56: uint16(1079), + 57: uint16(1080), + 58: uint16(1081), + 59: uint16(1082), + 60: uint16(1083), + 61: uint16(1084), + 62: uint16(1085), + 63: uint16(1086), + 64: uint16(1087), + 65: uint16(1088), + 66: uint16(1089), + 67: uint16(1090), + 68: uint16(1091), + 69: uint16(1092), + 70: uint16(1093), + 71: uint16(1094), + 72: uint16(1095), + 73: uint16(1096), + 74: uint16(1097), + 75: uint16(1098), + 76: uint16(1099), + 77: uint16(1100), + 78: uint16(1101), + 79: uint16(1102), + 80: uint16(1103), + }, + 7: { + 0: uint16(9472), + 1: uint16(9474), + 2: uint16(9484), + 3: uint16(9488), + 4: uint16(9496), + 5: uint16(9492), + 6: uint16(9500), + 7: uint16(9516), + 8: uint16(9508), + 9: uint16(9524), + 10: uint16(9532), + 11: uint16(9473), + 12: uint16(9475), + 13: uint16(9487), + 14: uint16(9491), + 15: uint16(9499), + 16: uint16(9495), + 17: uint16(9507), + 18: uint16(9523), + 19: uint16(9515), + 20: uint16(9531), + 21: uint16(9547), + 22: uint16(9504), + 23: uint16(9519), + 24: uint16(9512), + 25: uint16(9527), + 26: uint16(9535), + 27: uint16(9501), + 28: uint16(9520), + 29: uint16(9509), + 30: uint16(9528), + 31: uint16(9538), + }, + 8: {}, + 9: {}, + 10: {}, + 11: {}, + 12: {}, + 13: {}, + 14: {}, + 15: { + 0: uint16(20124), + 1: uint16(21782), + 2: uint16(23043), + 3: uint16(38463), + 4: uint16(21696), + 5: uint16(24859), + 6: uint16(25384), + 7: uint16(23030), + 8: uint16(36898), + 9: uint16(33909), + 10: uint16(33564), + 11: uint16(31312), + 12: uint16(24746), + 13: uint16(25569), + 14: uint16(28197), + 15: uint16(26093), + 16: uint16(33894), + 17: uint16(33446), + 18: uint16(39925), + 19: uint16(26771), + 20: uint16(22311), + 21: uint16(26017), + 22: uint16(25201), + 23: uint16(23451), + 24: uint16(22992), + 25: uint16(34427), + 26: uint16(39156), + 27: uint16(32098), + 28: uint16(32190), + 29: uint16(39822), + 30: uint16(25110), + 31: uint16(31903), + 32: uint16(34999), + 33: uint16(23433), + 34: uint16(24245), + 35: uint16(25353), + 36: uint16(26263), + 37: uint16(26696), + 38: uint16(38343), + 39: uint16(38797), + 40: uint16(26447), + 41: uint16(20197), + 42: uint16(20234), + 43: uint16(20301), + 44: uint16(20381), + 45: uint16(20553), + 46: uint16(22258), + 47: uint16(22839), + 48: uint16(22996), + 49: uint16(23041), + 50: uint16(23561), + 51: uint16(24799), + 52: uint16(24847), + 53: uint16(24944), + 54: uint16(26131), + 55: uint16(26885), + 56: uint16(28858), + 57: uint16(30031), + 58: uint16(30064), + 59: uint16(31227), + 60: uint16(32173), + 61: uint16(32239), + 62: uint16(32963), + 63: uint16(33806), + 64: uint16(34915), + 65: uint16(35586), + 66: uint16(36949), + 67: uint16(36986), + 68: uint16(21307), + 69: uint16(20117), + 70: uint16(20133), + 71: uint16(22495), + 72: uint16(32946), + 73: uint16(37057), + 74: uint16(30959), + 75: uint16(19968), + 76: uint16(22769), + 77: uint16(28322), + 78: uint16(36920), + 79: uint16(31282), + 80: uint16(33576), + 81: uint16(33419), + 82: uint16(39983), + 83: uint16(20801), + 84: uint16(21360), + 85: uint16(21693), + 86: uint16(21729), + 87: uint16(22240), + 88: uint16(23035), + 89: uint16(24341), + 90: uint16(39154), + 91: uint16(28139), + 92: uint16(32996), + 93: uint16(34093), + }, + 16: { + 0: uint16(38498), + 1: uint16(38512), + 2: uint16(38560), + 3: uint16(38907), + 4: uint16(21515), + 5: uint16(21491), + 6: uint16(23431), + 7: uint16(28879), + 8: uint16(32701), + 9: uint16(36802), + 10: uint16(38632), + 11: uint16(21359), + 12: uint16(40284), + 13: uint16(31418), + 14: uint16(19985), + 15: uint16(30867), + 16: uint16(33276), + 17: uint16(28198), + 18: uint16(22040), + 19: uint16(21764), + 20: uint16(27421), + 21: uint16(34074), + 22: uint16(39995), + 23: uint16(23013), + 24: uint16(21417), + 25: uint16(28006), + 26: uint16(29916), + 27: uint16(38287), + 28: uint16(22082), + 29: uint16(20113), + 30: uint16(36939), + 31: uint16(38642), + 32: uint16(33615), + 33: uint16(39180), + 34: uint16(21473), + 35: uint16(21942), + 36: uint16(23344), + 37: uint16(24433), + 38: uint16(26144), + 39: uint16(26355), + 40: uint16(26628), + 41: uint16(27704), + 42: uint16(27891), + 43: uint16(27945), + 44: uint16(29787), + 45: uint16(30408), + 46: uint16(31310), + 47: uint16(38964), + 48: uint16(33521), + 49: uint16(34907), + 50: uint16(35424), + 51: uint16(37613), + 52: uint16(28082), + 53: uint16(30123), + 54: uint16(30410), + 55: uint16(39365), + 56: uint16(24742), + 57: uint16(35585), + 58: uint16(36234), + 59: uint16(38322), + 60: uint16(27022), + 61: uint16(21421), + 62: uint16(20870), + 63: uint16(22290), + 64: uint16(22576), + 65: uint16(22852), + 66: uint16(23476), + 67: uint16(24310), + 68: uint16(24616), + 69: uint16(25513), + 70: uint16(25588), + 71: uint16(27839), + 72: uint16(28436), + 73: uint16(28814), + 74: uint16(28948), + 75: uint16(29017), + 76: uint16(29141), + 77: uint16(29503), + 78: uint16(32257), + 79: uint16(33398), + 80: uint16(33489), + 81: uint16(34199), + 82: uint16(36960), + 83: uint16(37467), + 84: uint16(40219), + 85: uint16(22633), + 86: uint16(26044), + 87: uint16(27738), + 88: uint16(29989), + 89: uint16(20985), + 90: uint16(22830), + 91: uint16(22885), + 92: uint16(24448), + 93: uint16(24540), + }, + 17: { + 0: uint16(25276), + 1: uint16(26106), + 2: uint16(27178), + 3: uint16(27431), + 4: uint16(27572), + 5: uint16(29579), + 6: uint16(32705), + 7: uint16(35158), + 8: uint16(40236), + 9: uint16(40206), + 10: uint16(40644), + 11: uint16(23713), + 12: uint16(27798), + 13: uint16(33659), + 14: uint16(20740), + 15: uint16(23627), + 16: uint16(25014), + 17: uint16(33222), + 18: uint16(26742), + 19: uint16(29281), + 20: uint16(20057), + 21: uint16(20474), + 22: uint16(21368), + 23: uint16(24681), + 24: uint16(28201), + 25: uint16(31311), + 26: uint16(38899), + 27: uint16(19979), + 28: uint16(21270), + 29: uint16(20206), + 30: uint16(20309), + 31: uint16(20285), + 32: uint16(20385), + 33: uint16(20339), + 34: uint16(21152), + 35: uint16(21487), + 36: uint16(22025), + 37: uint16(22799), + 38: uint16(23233), + 39: uint16(23478), + 40: uint16(23521), + 41: uint16(31185), + 42: uint16(26247), + 43: uint16(26524), + 44: uint16(26550), + 45: uint16(27468), + 46: uint16(27827), + 47: uint16(28779), + 48: uint16(29634), + 49: uint16(31117), + 50: uint16(31166), + 51: uint16(31292), + 52: uint16(31623), + 53: uint16(33457), + 54: uint16(33499), + 55: uint16(33540), + 56: uint16(33655), + 57: uint16(33775), + 58: uint16(33747), + 59: uint16(34662), + 60: uint16(35506), + 61: uint16(22057), + 62: uint16(36008), + 63: uint16(36838), + 64: uint16(36942), + 65: uint16(38686), + 66: uint16(34442), + 67: uint16(20420), + 68: uint16(23784), + 69: uint16(25105), + 70: uint16(29273), + 71: uint16(30011), + 72: uint16(33253), + 73: uint16(33469), + 74: uint16(34558), + 75: uint16(36032), + 76: uint16(38597), + 77: uint16(39187), + 78: uint16(39381), + 79: uint16(20171), + 80: uint16(20250), + 81: uint16(35299), + 82: uint16(22238), + 83: uint16(22602), + 84: uint16(22730), + 85: uint16(24315), + 86: uint16(24555), + 87: uint16(24618), + 88: uint16(24724), + 89: uint16(24674), + 90: uint16(25040), + 91: uint16(25106), + 92: uint16(25296), + 93: uint16(25913), + }, + 18: { + 0: uint16(39745), + 1: uint16(26214), + 2: uint16(26800), + 3: uint16(28023), + 4: uint16(28784), + 5: uint16(30028), + 6: uint16(30342), + 7: uint16(32117), + 8: uint16(33445), + 9: uint16(34809), + 10: uint16(38283), + 11: uint16(38542), + 12: uint16(35997), + 13: uint16(20977), + 14: uint16(21182), + 15: uint16(22806), + 16: uint16(21683), + 17: uint16(23475), + 18: uint16(23830), + 19: uint16(24936), + 20: uint16(27010), + 21: uint16(28079), + 22: uint16(30861), + 23: uint16(33995), + 24: uint16(34903), + 25: uint16(35442), + 26: uint16(37799), + 27: uint16(39608), + 28: uint16(28012), + 29: uint16(39336), + 30: uint16(34521), + 31: uint16(22435), + 32: uint16(26623), + 33: uint16(34510), + 34: uint16(37390), + 35: uint16(21123), + 36: uint16(22151), + 37: uint16(21508), + 38: uint16(24275), + 39: uint16(25313), + 40: uint16(25785), + 41: uint16(26684), + 42: uint16(26680), + 43: uint16(27579), + 44: uint16(29554), + 45: uint16(30906), + 46: uint16(31339), + 47: uint16(35226), + 48: uint16(35282), + 49: uint16(36203), + 50: uint16(36611), + 51: uint16(37101), + 52: uint16(38307), + 53: uint16(38548), + 54: uint16(38761), + 55: uint16(23398), + 56: uint16(23731), + 57: uint16(27005), + 58: uint16(38989), + 59: uint16(38990), + 60: uint16(25499), + 61: uint16(31520), + 62: uint16(27179), + 63: uint16(27263), + 64: uint16(26806), + 65: uint16(39949), + 66: uint16(28511), + 67: uint16(21106), + 68: uint16(21917), + 69: uint16(24688), + 70: uint16(25324), + 71: uint16(27963), + 72: uint16(28167), + 73: uint16(28369), + 74: uint16(33883), + 75: uint16(35088), + 76: uint16(36676), + 77: uint16(19988), + 78: uint16(39993), + 79: uint16(21494), + 80: uint16(26907), + 81: uint16(27194), + 82: uint16(38788), + 83: uint16(26666), + 84: uint16(20828), + 85: uint16(31427), + 86: uint16(33970), + 87: uint16(37340), + 88: uint16(37772), + 89: uint16(22107), + 90: uint16(40232), + 91: uint16(26658), + 92: uint16(33541), + 93: uint16(33841), + }, + 19: { + 0: uint16(31909), + 1: uint16(21000), + 2: uint16(33477), + 3: uint16(29926), + 4: uint16(20094), + 5: uint16(20355), + 6: uint16(20896), + 7: uint16(23506), + 8: uint16(21002), + 9: uint16(21208), + 10: uint16(21223), + 11: uint16(24059), + 12: uint16(21914), + 13: uint16(22570), + 14: uint16(23014), + 15: uint16(23436), + 16: uint16(23448), + 17: uint16(23515), + 18: uint16(24178), + 19: uint16(24185), + 20: uint16(24739), + 21: uint16(24863), + 22: uint16(24931), + 23: uint16(25022), + 24: uint16(25563), + 25: uint16(25954), + 26: uint16(26577), + 27: uint16(26707), + 28: uint16(26874), + 29: uint16(27454), + 30: uint16(27475), + 31: uint16(27735), + 32: uint16(28450), + 33: uint16(28567), + 34: uint16(28485), + 35: uint16(29872), + 36: uint16(29976), + 37: uint16(30435), + 38: uint16(30475), + 39: uint16(31487), + 40: uint16(31649), + 41: uint16(31777), + 42: uint16(32233), + 43: uint16(32566), + 44: uint16(32752), + 45: uint16(32925), + 46: uint16(33382), + 47: uint16(33694), + 48: uint16(35251), + 49: uint16(35532), + 50: uint16(36011), + 51: uint16(36996), + 52: uint16(37969), + 53: uint16(38291), + 54: uint16(38289), + 55: uint16(38306), + 56: uint16(38501), + 57: uint16(38867), + 58: uint16(39208), + 59: uint16(33304), + 60: uint16(20024), + 61: uint16(21547), + 62: uint16(23736), + 63: uint16(24012), + 64: uint16(29609), + 65: uint16(30284), + 66: uint16(30524), + 67: uint16(23721), + 68: uint16(32747), + 69: uint16(36107), + 70: uint16(38593), + 71: uint16(38929), + 72: uint16(38996), + 73: uint16(39000), + 74: uint16(20225), + 75: uint16(20238), + 76: uint16(21361), + 77: uint16(21916), + 78: uint16(22120), + 79: uint16(22522), + 80: uint16(22855), + 81: uint16(23305), + 82: uint16(23492), + 83: uint16(23696), + 84: uint16(24076), + 85: uint16(24190), + 86: uint16(24524), + 87: uint16(25582), + 88: uint16(26426), + 89: uint16(26071), + 90: uint16(26082), + 91: uint16(26399), + 92: uint16(26827), + 93: uint16(26820), + }, + 20: { + 0: uint16(27231), + 1: uint16(24112), + 2: uint16(27589), + 3: uint16(27671), + 4: uint16(27773), + 5: uint16(30079), + 6: uint16(31048), + 7: uint16(23395), + 8: uint16(31232), + 9: uint16(32000), + 10: uint16(24509), + 11: uint16(35215), + 12: uint16(35352), + 13: uint16(36020), + 14: uint16(36215), + 15: uint16(36556), + 16: uint16(36637), + 17: uint16(39138), + 18: uint16(39438), + 19: uint16(39740), + 20: uint16(20096), + 21: uint16(20605), + 22: uint16(20736), + 23: uint16(22931), + 24: uint16(23452), + 25: uint16(25135), + 26: uint16(25216), + 27: uint16(25836), + 28: uint16(27450), + 29: uint16(29344), + 30: uint16(30097), + 31: uint16(31047), + 32: uint16(32681), + 33: uint16(34811), + 34: uint16(35516), + 35: uint16(35696), + 36: uint16(25516), + 37: uint16(33738), + 38: uint16(38816), + 39: uint16(21513), + 40: uint16(21507), + 41: uint16(21931), + 42: uint16(26708), + 43: uint16(27224), + 44: uint16(35440), + 45: uint16(30759), + 46: uint16(26485), + 47: uint16(40653), + 48: uint16(21364), + 49: uint16(23458), + 50: uint16(33050), + 51: uint16(34384), + 52: uint16(36870), + 53: uint16(19992), + 54: uint16(20037), + 55: uint16(20167), + 56: uint16(20241), + 57: uint16(21450), + 58: uint16(21560), + 59: uint16(23470), + 60: uint16(24339), + 61: uint16(24613), + 62: uint16(25937), + 63: uint16(26429), + 64: uint16(27714), + 65: uint16(27762), + 66: uint16(27875), + 67: uint16(28792), + 68: uint16(29699), + 69: uint16(31350), + 70: uint16(31406), + 71: uint16(31496), + 72: uint16(32026), + 73: uint16(31998), + 74: uint16(32102), + 75: uint16(26087), + 76: uint16(29275), + 77: uint16(21435), + 78: uint16(23621), + 79: uint16(24040), + 80: uint16(25298), + 81: uint16(25312), + 82: uint16(25369), + 83: uint16(28192), + 84: uint16(34394), + 85: uint16(35377), + 86: uint16(36317), + 87: uint16(37624), + 88: uint16(28417), + 89: uint16(31142), + 90: uint16(39770), + 91: uint16(20136), + 92: uint16(20139), + 93: uint16(20140), + }, + 21: { + 0: uint16(20379), + 1: uint16(20384), + 2: uint16(20689), + 3: uint16(20807), + 4: uint16(31478), + 5: uint16(20849), + 6: uint16(20982), + 7: uint16(21332), + 8: uint16(21281), + 9: uint16(21375), + 10: uint16(21483), + 11: uint16(21932), + 12: uint16(22659), + 13: uint16(23777), + 14: uint16(24375), + 15: uint16(24394), + 16: uint16(24623), + 17: uint16(24656), + 18: uint16(24685), + 19: uint16(25375), + 20: uint16(25945), + 21: uint16(27211), + 22: uint16(27841), + 23: uint16(29378), + 24: uint16(29421), + 25: uint16(30703), + 26: uint16(33016), + 27: uint16(33029), + 28: uint16(33288), + 29: uint16(34126), + 30: uint16(37111), + 31: uint16(37857), + 32: uint16(38911), + 33: uint16(39255), + 34: uint16(39514), + 35: uint16(20208), + 36: uint16(20957), + 37: uint16(23597), + 38: uint16(26241), + 39: uint16(26989), + 40: uint16(23616), + 41: uint16(26354), + 42: uint16(26997), + 43: uint16(29577), + 44: uint16(26704), + 45: uint16(31873), + 46: uint16(20677), + 47: uint16(21220), + 48: uint16(22343), + 49: uint16(24062), + 50: uint16(37670), + 51: uint16(26020), + 52: uint16(27427), + 53: uint16(27453), + 54: uint16(29748), + 55: uint16(31105), + 56: uint16(31165), + 57: uint16(31563), + 58: uint16(32202), + 59: uint16(33465), + 60: uint16(33740), + 61: uint16(34943), + 62: uint16(35167), + 63: uint16(35641), + 64: uint16(36817), + 65: uint16(37329), + 66: uint16(21535), + 67: uint16(37504), + 68: uint16(20061), + 69: uint16(20534), + 70: uint16(21477), + 71: uint16(21306), + 72: uint16(29399), + 73: uint16(29590), + 74: uint16(30697), + 75: uint16(33510), + 76: uint16(36527), + 77: uint16(39366), + 78: uint16(39368), + 79: uint16(39378), + 80: uint16(20855), + 81: uint16(24858), + 82: uint16(34398), + 83: uint16(21936), + 84: uint16(31354), + 85: uint16(20598), + 86: uint16(23507), + 87: uint16(36935), + 88: uint16(38533), + 89: uint16(20018), + 90: uint16(27355), + 91: uint16(37351), + 92: uint16(23633), + 93: uint16(23624), + }, + 22: { + 0: uint16(25496), + 1: uint16(31391), + 2: uint16(27795), + 3: uint16(38772), + 4: uint16(36705), + 5: uint16(31402), + 6: uint16(29066), + 7: uint16(38536), + 8: uint16(31874), + 9: uint16(26647), + 10: uint16(32368), + 11: uint16(26705), + 12: uint16(37740), + 13: uint16(21234), + 14: uint16(21531), + 15: uint16(34219), + 16: uint16(35347), + 17: uint16(32676), + 18: uint16(36557), + 19: uint16(37089), + 20: uint16(21350), + 21: uint16(34952), + 22: uint16(31041), + 23: uint16(20418), + 24: uint16(20670), + 25: uint16(21009), + 26: uint16(20804), + 27: uint16(21843), + 28: uint16(22317), + 29: uint16(29674), + 30: uint16(22411), + 31: uint16(22865), + 32: uint16(24418), + 33: uint16(24452), + 34: uint16(24693), + 35: uint16(24950), + 36: uint16(24935), + 37: uint16(25001), + 38: uint16(25522), + 39: uint16(25658), + 40: uint16(25964), + 41: uint16(26223), + 42: uint16(26690), + 43: uint16(28179), + 44: uint16(30054), + 45: uint16(31293), + 46: uint16(31995), + 47: uint16(32076), + 48: uint16(32153), + 49: uint16(32331), + 50: uint16(32619), + 51: uint16(33550), + 52: uint16(33610), + 53: uint16(34509), + 54: uint16(35336), + 55: uint16(35427), + 56: uint16(35686), + 57: uint16(36605), + 58: uint16(38938), + 59: uint16(40335), + 60: uint16(33464), + 61: uint16(36814), + 62: uint16(39912), + 63: uint16(21127), + 64: uint16(25119), + 65: uint16(25731), + 66: uint16(28608), + 67: uint16(38553), + 68: uint16(26689), + 69: uint16(20625), + 70: uint16(27424), + 71: uint16(27770), + 72: uint16(28500), + 73: uint16(31348), + 74: uint16(32080), + 75: uint16(34880), + 76: uint16(35363), + 77: uint16(26376), + 78: uint16(20214), + 79: uint16(20537), + 80: uint16(20518), + 81: uint16(20581), + 82: uint16(20860), + 83: uint16(21048), + 84: uint16(21091), + 85: uint16(21927), + 86: uint16(22287), + 87: uint16(22533), + 88: uint16(23244), + 89: uint16(24314), + 90: uint16(25010), + 91: uint16(25080), + 92: uint16(25331), + 93: uint16(25458), + }, + 23: { + 0: uint16(26908), + 1: uint16(27177), + 2: uint16(29309), + 3: uint16(29356), + 4: uint16(29486), + 5: uint16(30740), + 6: uint16(30831), + 7: uint16(32121), + 8: uint16(30476), + 9: uint16(32937), + 10: uint16(35211), + 11: uint16(35609), + 12: uint16(36066), + 13: uint16(36562), + 14: uint16(36963), + 15: uint16(37749), + 16: uint16(38522), + 17: uint16(38997), + 18: uint16(39443), + 19: uint16(40568), + 20: uint16(20803), + 21: uint16(21407), + 22: uint16(21427), + 23: uint16(24187), + 24: uint16(24358), + 25: uint16(28187), + 26: uint16(28304), + 27: uint16(29572), + 28: uint16(29694), + 29: uint16(32067), + 30: uint16(33335), + 31: uint16(35328), + 32: uint16(35578), + 33: uint16(38480), + 34: uint16(20046), + 35: uint16(20491), + 36: uint16(21476), + 37: uint16(21628), + 38: uint16(22266), + 39: uint16(22993), + 40: uint16(23396), + 41: uint16(24049), + 42: uint16(24235), + 43: uint16(24359), + 44: uint16(25144), + 45: uint16(25925), + 46: uint16(26543), + 47: uint16(28246), + 48: uint16(29392), + 49: uint16(31946), + 50: uint16(34996), + 51: uint16(32929), + 52: uint16(32993), + 53: uint16(33776), + 54: uint16(34382), + 55: uint16(35463), + 56: uint16(36328), + 57: uint16(37431), + 58: uint16(38599), + 59: uint16(39015), + 60: uint16(40723), + 61: uint16(20116), + 62: uint16(20114), + 63: uint16(20237), + 64: uint16(21320), + 65: uint16(21577), + 66: uint16(21566), + 67: uint16(23087), + 68: uint16(24460), + 69: uint16(24481), + 70: uint16(24735), + 71: uint16(26791), + 72: uint16(27278), + 73: uint16(29786), + 74: uint16(30849), + 75: uint16(35486), + 76: uint16(35492), + 77: uint16(35703), + 78: uint16(37264), + 79: uint16(20062), + 80: uint16(39881), + 81: uint16(20132), + 82: uint16(20348), + 83: uint16(20399), + 84: uint16(20505), + 85: uint16(20502), + 86: uint16(20809), + 87: uint16(20844), + 88: uint16(21151), + 89: uint16(21177), + 90: uint16(21246), + 91: uint16(21402), + 92: uint16(21475), + 93: uint16(21521), + }, + 24: { + 0: uint16(21518), + 1: uint16(21897), + 2: uint16(22353), + 3: uint16(22434), + 4: uint16(22909), + 5: uint16(23380), + 6: uint16(23389), + 7: uint16(23439), + 8: uint16(24037), + 9: uint16(24039), + 10: uint16(24055), + 11: uint16(24184), + 12: uint16(24195), + 13: uint16(24218), + 14: uint16(24247), + 15: uint16(24344), + 16: uint16(24658), + 17: uint16(24908), + 18: uint16(25239), + 19: uint16(25304), + 20: uint16(25511), + 21: uint16(25915), + 22: uint16(26114), + 23: uint16(26179), + 24: uint16(26356), + 25: uint16(26477), + 26: uint16(26657), + 27: uint16(26775), + 28: uint16(27083), + 29: uint16(27743), + 30: uint16(27946), + 31: uint16(28009), + 32: uint16(28207), + 33: uint16(28317), + 34: uint16(30002), + 35: uint16(30343), + 36: uint16(30828), + 37: uint16(31295), + 38: uint16(31968), + 39: uint16(32005), + 40: uint16(32024), + 41: uint16(32094), + 42: uint16(32177), + 43: uint16(32789), + 44: uint16(32771), + 45: uint16(32943), + 46: uint16(32945), + 47: uint16(33108), + 48: uint16(33167), + 49: uint16(33322), + 50: uint16(33618), + 51: uint16(34892), + 52: uint16(34913), + 53: uint16(35611), + 54: uint16(36002), + 55: uint16(36092), + 56: uint16(37066), + 57: uint16(37237), + 58: uint16(37489), + 59: uint16(30783), + 60: uint16(37628), + 61: uint16(38308), + 62: uint16(38477), + 63: uint16(38917), + 64: uint16(39321), + 65: uint16(39640), + 66: uint16(40251), + 67: uint16(21083), + 68: uint16(21163), + 69: uint16(21495), + 70: uint16(21512), + 71: uint16(22741), + 72: uint16(25335), + 73: uint16(28640), + 74: uint16(35946), + 75: uint16(36703), + 76: uint16(40633), + 77: uint16(20811), + 78: uint16(21051), + 79: uint16(21578), + 80: uint16(22269), + 81: uint16(31296), + 82: uint16(37239), + 83: uint16(40288), + 84: uint16(40658), + 85: uint16(29508), + 86: uint16(28425), + 87: uint16(33136), + 88: uint16(29969), + 89: uint16(24573), + 90: uint16(24794), + 91: uint16(39592), + 92: uint16(29403), + 93: uint16(36796), + }, + 25: { + 0: uint16(27492), + 1: uint16(38915), + 2: uint16(20170), + 3: uint16(22256), + 4: uint16(22372), + 5: uint16(22718), + 6: uint16(23130), + 7: uint16(24680), + 8: uint16(25031), + 9: uint16(26127), + 10: uint16(26118), + 11: uint16(26681), + 12: uint16(26801), + 13: uint16(28151), + 14: uint16(30165), + 15: uint16(32058), + 16: uint16(33390), + 17: uint16(39746), + 18: uint16(20123), + 19: uint16(20304), + 20: uint16(21449), + 21: uint16(21766), + 22: uint16(23919), + 23: uint16(24038), + 24: uint16(24046), + 25: uint16(26619), + 26: uint16(27801), + 27: uint16(29811), + 28: uint16(30722), + 29: uint16(35408), + 30: uint16(37782), + 31: uint16(35039), + 32: uint16(22352), + 33: uint16(24231), + 34: uint16(25387), + 35: uint16(20661), + 36: uint16(20652), + 37: uint16(20877), + 38: uint16(26368), + 39: uint16(21705), + 40: uint16(22622), + 41: uint16(22971), + 42: uint16(23472), + 43: uint16(24425), + 44: uint16(25165), + 45: uint16(25505), + 46: uint16(26685), + 47: uint16(27507), + 48: uint16(28168), + 49: uint16(28797), + 50: uint16(37319), + 51: uint16(29312), + 52: uint16(30741), + 53: uint16(30758), + 54: uint16(31085), + 55: uint16(25998), + 56: uint16(32048), + 57: uint16(33756), + 58: uint16(35009), + 59: uint16(36617), + 60: uint16(38555), + 61: uint16(21092), + 62: uint16(22312), + 63: uint16(26448), + 64: uint16(32618), + 65: uint16(36001), + 66: uint16(20916), + 67: uint16(22338), + 68: uint16(38442), + 69: uint16(22586), + 70: uint16(27018), + 71: uint16(32948), + 72: uint16(21682), + 73: uint16(23822), + 74: uint16(22524), + 75: uint16(30869), + 76: uint16(40442), + 77: uint16(20316), + 78: uint16(21066), + 79: uint16(21643), + 80: uint16(25662), + 81: uint16(26152), + 82: uint16(26388), + 83: uint16(26613), + 84: uint16(31364), + 85: uint16(31574), + 86: uint16(32034), + 87: uint16(37679), + 88: uint16(26716), + 89: uint16(39853), + 90: uint16(31545), + 91: uint16(21273), + 92: uint16(20874), + 93: uint16(21047), + }, + 26: { + 0: uint16(23519), + 1: uint16(25334), + 2: uint16(25774), + 3: uint16(25830), + 4: uint16(26413), + 5: uint16(27578), + 6: uint16(34217), + 7: uint16(38609), + 8: uint16(30352), + 9: uint16(39894), + 10: uint16(25420), + 11: uint16(37638), + 12: uint16(39851), + 13: uint16(30399), + 14: uint16(26194), + 15: uint16(19977), + 16: uint16(20632), + 17: uint16(21442), + 18: uint16(23665), + 19: uint16(24808), + 20: uint16(25746), + 21: uint16(25955), + 22: uint16(26719), + 23: uint16(29158), + 24: uint16(29642), + 25: uint16(29987), + 26: uint16(31639), + 27: uint16(32386), + 28: uint16(34453), + 29: uint16(35715), + 30: uint16(36059), + 31: uint16(37240), + 32: uint16(39184), + 33: uint16(26028), + 34: uint16(26283), + 35: uint16(27531), + 36: uint16(20181), + 37: uint16(20180), + 38: uint16(20282), + 39: uint16(20351), + 40: uint16(21050), + 41: uint16(21496), + 42: uint16(21490), + 43: uint16(21987), + 44: uint16(22235), + 45: uint16(22763), + 46: uint16(22987), + 47: uint16(22985), + 48: uint16(23039), + 49: uint16(23376), + 50: uint16(23629), + 51: uint16(24066), + 52: uint16(24107), + 53: uint16(24535), + 54: uint16(24605), + 55: uint16(25351), + 56: uint16(25903), + 57: uint16(23388), + 58: uint16(26031), + 59: uint16(26045), + 60: uint16(26088), + 61: uint16(26525), + 62: uint16(27490), + 63: uint16(27515), + 64: uint16(27663), + 65: uint16(29509), + 66: uint16(31049), + 67: uint16(31169), + 68: uint16(31992), + 69: uint16(32025), + 70: uint16(32043), + 71: uint16(32930), + 72: uint16(33026), + 73: uint16(33267), + 74: uint16(35222), + 75: uint16(35422), + 76: uint16(35433), + 77: uint16(35430), + 78: uint16(35468), + 79: uint16(35566), + 80: uint16(36039), + 81: uint16(36060), + 82: uint16(38604), + 83: uint16(39164), + 84: uint16(27503), + 85: uint16(20107), + 86: uint16(20284), + 87: uint16(20365), + 88: uint16(20816), + 89: uint16(23383), + 90: uint16(23546), + 91: uint16(24904), + 92: uint16(25345), + 93: uint16(26178), + }, + 27: { + 0: uint16(27425), + 1: uint16(28363), + 2: uint16(27835), + 3: uint16(29246), + 4: uint16(29885), + 5: uint16(30164), + 6: uint16(30913), + 7: uint16(31034), + 8: uint16(32780), + 9: uint16(32819), + 10: uint16(33258), + 11: uint16(33940), + 12: uint16(36766), + 13: uint16(27728), + 14: uint16(40575), + 15: uint16(24335), + 16: uint16(35672), + 17: uint16(40235), + 18: uint16(31482), + 19: uint16(36600), + 20: uint16(23437), + 21: uint16(38635), + 22: uint16(19971), + 23: uint16(21489), + 24: uint16(22519), + 25: uint16(22833), + 26: uint16(23241), + 27: uint16(23460), + 28: uint16(24713), + 29: uint16(28287), + 30: uint16(28422), + 31: uint16(30142), + 32: uint16(36074), + 33: uint16(23455), + 34: uint16(34048), + 35: uint16(31712), + 36: uint16(20594), + 37: uint16(26612), + 38: uint16(33437), + 39: uint16(23649), + 40: uint16(34122), + 41: uint16(32286), + 42: uint16(33294), + 43: uint16(20889), + 44: uint16(23556), + 45: uint16(25448), + 46: uint16(36198), + 47: uint16(26012), + 48: uint16(29038), + 49: uint16(31038), + 50: uint16(32023), + 51: uint16(32773), + 52: uint16(35613), + 53: uint16(36554), + 54: uint16(36974), + 55: uint16(34503), + 56: uint16(37034), + 57: uint16(20511), + 58: uint16(21242), + 59: uint16(23610), + 60: uint16(26451), + 61: uint16(28796), + 62: uint16(29237), + 63: uint16(37196), + 64: uint16(37320), + 65: uint16(37675), + 66: uint16(33509), + 67: uint16(23490), + 68: uint16(24369), + 69: uint16(24825), + 70: uint16(20027), + 71: uint16(21462), + 72: uint16(23432), + 73: uint16(25163), + 74: uint16(26417), + 75: uint16(27530), + 76: uint16(29417), + 77: uint16(29664), + 78: uint16(31278), + 79: uint16(33131), + 80: uint16(36259), + 81: uint16(37202), + 82: uint16(39318), + 83: uint16(20754), + 84: uint16(21463), + 85: uint16(21610), + 86: uint16(23551), + 87: uint16(25480), + 88: uint16(27193), + 89: uint16(32172), + 90: uint16(38656), + 91: uint16(22234), + 92: uint16(21454), + 93: uint16(21608), + }, + 28: { + 0: uint16(23447), + 1: uint16(23601), + 2: uint16(24030), + 3: uint16(20462), + 4: uint16(24833), + 5: uint16(25342), + 6: uint16(27954), + 7: uint16(31168), + 8: uint16(31179), + 9: uint16(32066), + 10: uint16(32333), + 11: uint16(32722), + 12: uint16(33261), + 13: uint16(33311), + 14: uint16(33936), + 15: uint16(34886), + 16: uint16(35186), + 17: uint16(35728), + 18: uint16(36468), + 19: uint16(36655), + 20: uint16(36913), + 21: uint16(37195), + 22: uint16(37228), + 23: uint16(38598), + 24: uint16(37276), + 25: uint16(20160), + 26: uint16(20303), + 27: uint16(20805), + 28: uint16(21313), + 29: uint16(24467), + 30: uint16(25102), + 31: uint16(26580), + 32: uint16(27713), + 33: uint16(28171), + 34: uint16(29539), + 35: uint16(32294), + 36: uint16(37325), + 37: uint16(37507), + 38: uint16(21460), + 39: uint16(22809), + 40: uint16(23487), + 41: uint16(28113), + 42: uint16(31069), + 43: uint16(32302), + 44: uint16(31899), + 45: uint16(22654), + 46: uint16(29087), + 47: uint16(20986), + 48: uint16(34899), + 49: uint16(36848), + 50: uint16(20426), + 51: uint16(23803), + 52: uint16(26149), + 53: uint16(30636), + 54: uint16(31459), + 55: uint16(33308), + 56: uint16(39423), + 57: uint16(20934), + 58: uint16(24490), + 59: uint16(26092), + 60: uint16(26991), + 61: uint16(27529), + 62: uint16(28147), + 63: uint16(28310), + 64: uint16(28516), + 65: uint16(30462), + 66: uint16(32020), + 67: uint16(24033), + 68: uint16(36981), + 69: uint16(37255), + 70: uint16(38918), + 71: uint16(20966), + 72: uint16(21021), + 73: uint16(25152), + 74: uint16(26257), + 75: uint16(26329), + 76: uint16(28186), + 77: uint16(24246), + 78: uint16(32210), + 79: uint16(32626), + 80: uint16(26360), + 81: uint16(34223), + 82: uint16(34295), + 83: uint16(35576), + 84: uint16(21161), + 85: uint16(21465), + 86: uint16(22899), + 87: uint16(24207), + 88: uint16(24464), + 89: uint16(24661), + 90: uint16(37604), + 91: uint16(38500), + 92: uint16(20663), + 93: uint16(20767), + }, + 29: { + 0: uint16(21213), + 1: uint16(21280), + 2: uint16(21319), + 3: uint16(21484), + 4: uint16(21736), + 5: uint16(21830), + 6: uint16(21809), + 7: uint16(22039), + 8: uint16(22888), + 9: uint16(22974), + 10: uint16(23100), + 11: uint16(23477), + 12: uint16(23558), + 13: uint16(23567), + 14: uint16(23569), + 15: uint16(23578), + 16: uint16(24196), + 17: uint16(24202), + 18: uint16(24288), + 19: uint16(24432), + 20: uint16(25215), + 21: uint16(25220), + 22: uint16(25307), + 23: uint16(25484), + 24: uint16(25463), + 25: uint16(26119), + 26: uint16(26124), + 27: uint16(26157), + 28: uint16(26230), + 29: uint16(26494), + 30: uint16(26786), + 31: uint16(27167), + 32: uint16(27189), + 33: uint16(27836), + 34: uint16(28040), + 35: uint16(28169), + 36: uint16(28248), + 37: uint16(28988), + 38: uint16(28966), + 39: uint16(29031), + 40: uint16(30151), + 41: uint16(30465), + 42: uint16(30813), + 43: uint16(30977), + 44: uint16(31077), + 45: uint16(31216), + 46: uint16(31456), + 47: uint16(31505), + 48: uint16(31911), + 49: uint16(32057), + 50: uint16(32918), + 51: uint16(33750), + 52: uint16(33931), + 53: uint16(34121), + 54: uint16(34909), + 55: uint16(35059), + 56: uint16(35359), + 57: uint16(35388), + 58: uint16(35412), + 59: uint16(35443), + 60: uint16(35937), + 61: uint16(36062), + 62: uint16(37284), + 63: uint16(37478), + 64: uint16(37758), + 65: uint16(37912), + 66: uint16(38556), + 67: uint16(38808), + 68: uint16(19978), + 69: uint16(19976), + 70: uint16(19998), + 71: uint16(20055), + 72: uint16(20887), + 73: uint16(21104), + 74: uint16(22478), + 75: uint16(22580), + 76: uint16(22732), + 77: uint16(23330), + 78: uint16(24120), + 79: uint16(24773), + 80: uint16(25854), + 81: uint16(26465), + 82: uint16(26454), + 83: uint16(27972), + 84: uint16(29366), + 85: uint16(30067), + 86: uint16(31331), + 87: uint16(33976), + 88: uint16(35698), + 89: uint16(37304), + 90: uint16(37664), + 91: uint16(22065), + 92: uint16(22516), + 93: uint16(39166), + }, + 30: { + 0: uint16(25325), + 1: uint16(26893), + 2: uint16(27542), + 3: uint16(29165), + 4: uint16(32340), + 5: uint16(32887), + 6: uint16(33394), + 7: uint16(35302), + 8: uint16(39135), + 9: uint16(34645), + 10: uint16(36785), + 11: uint16(23611), + 12: uint16(20280), + 13: uint16(20449), + 14: uint16(20405), + 15: uint16(21767), + 16: uint16(23072), + 17: uint16(23517), + 18: uint16(23529), + 19: uint16(24515), + 20: uint16(24910), + 21: uint16(25391), + 22: uint16(26032), + 23: uint16(26187), + 24: uint16(26862), + 25: uint16(27035), + 26: uint16(28024), + 27: uint16(28145), + 28: uint16(30003), + 29: uint16(30137), + 30: uint16(30495), + 31: uint16(31070), + 32: uint16(31206), + 33: uint16(32051), + 34: uint16(33251), + 35: uint16(33455), + 36: uint16(34218), + 37: uint16(35242), + 38: uint16(35386), + 39: uint16(36523), + 40: uint16(36763), + 41: uint16(36914), + 42: uint16(37341), + 43: uint16(38663), + 44: uint16(20154), + 45: uint16(20161), + 46: uint16(20995), + 47: uint16(22645), + 48: uint16(22764), + 49: uint16(23563), + 50: uint16(29978), + 51: uint16(23613), + 52: uint16(33102), + 53: uint16(35338), + 54: uint16(36805), + 55: uint16(38499), + 56: uint16(38765), + 57: uint16(31525), + 58: uint16(35535), + 59: uint16(38920), + 60: uint16(37218), + 61: uint16(22259), + 62: uint16(21416), + 63: uint16(36887), + 64: uint16(21561), + 65: uint16(22402), + 66: uint16(24101), + 67: uint16(25512), + 68: uint16(27700), + 69: uint16(28810), + 70: uint16(30561), + 71: uint16(31883), + 72: uint16(32736), + 73: uint16(34928), + 74: uint16(36930), + 75: uint16(37204), + 76: uint16(37648), + 77: uint16(37656), + 78: uint16(38543), + 79: uint16(29790), + 80: uint16(39620), + 81: uint16(23815), + 82: uint16(23913), + 83: uint16(25968), + 84: uint16(26530), + 85: uint16(36264), + 86: uint16(38619), + 87: uint16(25454), + 88: uint16(26441), + 89: uint16(26905), + 90: uint16(33733), + 91: uint16(38935), + 92: uint16(38592), + 93: uint16(35070), + }, + 31: { + 0: uint16(28548), + 1: uint16(25722), + 2: uint16(23544), + 3: uint16(19990), + 4: uint16(28716), + 5: uint16(30045), + 6: uint16(26159), + 7: uint16(20932), + 8: uint16(21046), + 9: uint16(21218), + 10: uint16(22995), + 11: uint16(24449), + 12: uint16(24615), + 13: uint16(25104), + 14: uint16(25919), + 15: uint16(25972), + 16: uint16(26143), + 17: uint16(26228), + 18: uint16(26866), + 19: uint16(26646), + 20: uint16(27491), + 21: uint16(28165), + 22: uint16(29298), + 23: uint16(29983), + 24: uint16(30427), + 25: uint16(31934), + 26: uint16(32854), + 27: uint16(22768), + 28: uint16(35069), + 29: uint16(35199), + 30: uint16(35488), + 31: uint16(35475), + 32: uint16(35531), + 33: uint16(36893), + 34: uint16(37266), + 35: uint16(38738), + 36: uint16(38745), + 37: uint16(25993), + 38: uint16(31246), + 39: uint16(33030), + 40: uint16(38587), + 41: uint16(24109), + 42: uint16(24796), + 43: uint16(25114), + 44: uint16(26021), + 45: uint16(26132), + 46: uint16(26512), + 47: uint16(30707), + 48: uint16(31309), + 49: uint16(31821), + 50: uint16(32318), + 51: uint16(33034), + 52: uint16(36012), + 53: uint16(36196), + 54: uint16(36321), + 55: uint16(36447), + 56: uint16(30889), + 57: uint16(20999), + 58: uint16(25305), + 59: uint16(25509), + 60: uint16(25666), + 61: uint16(25240), + 62: uint16(35373), + 63: uint16(31363), + 64: uint16(31680), + 65: uint16(35500), + 66: uint16(38634), + 67: uint16(32118), + 68: uint16(33292), + 69: uint16(34633), + 70: uint16(20185), + 71: uint16(20808), + 72: uint16(21315), + 73: uint16(21344), + 74: uint16(23459), + 75: uint16(23554), + 76: uint16(23574), + 77: uint16(24029), + 78: uint16(25126), + 79: uint16(25159), + 80: uint16(25776), + 81: uint16(26643), + 82: uint16(26676), + 83: uint16(27849), + 84: uint16(27973), + 85: uint16(27927), + 86: uint16(26579), + 87: uint16(28508), + 88: uint16(29006), + 89: uint16(29053), + 90: uint16(26059), + 91: uint16(31359), + 92: uint16(31661), + 93: uint16(32218), + }, + 32: { + 0: uint16(32330), + 1: uint16(32680), + 2: uint16(33146), + 3: uint16(33307), + 4: uint16(33337), + 5: uint16(34214), + 6: uint16(35438), + 7: uint16(36046), + 8: uint16(36341), + 9: uint16(36984), + 10: uint16(36983), + 11: uint16(37549), + 12: uint16(37521), + 13: uint16(38275), + 14: uint16(39854), + 15: uint16(21069), + 16: uint16(21892), + 17: uint16(28472), + 18: uint16(28982), + 19: uint16(20840), + 20: uint16(31109), + 21: uint16(32341), + 22: uint16(33203), + 23: uint16(31950), + 24: uint16(22092), + 25: uint16(22609), + 26: uint16(23720), + 27: uint16(25514), + 28: uint16(26366), + 29: uint16(26365), + 30: uint16(26970), + 31: uint16(29401), + 32: uint16(30095), + 33: uint16(30094), + 34: uint16(30990), + 35: uint16(31062), + 36: uint16(31199), + 37: uint16(31895), + 38: uint16(32032), + 39: uint16(32068), + 40: uint16(34311), + 41: uint16(35380), + 42: uint16(38459), + 43: uint16(36961), + 44: uint16(40736), + 45: uint16(20711), + 46: uint16(21109), + 47: uint16(21452), + 48: uint16(21474), + 49: uint16(20489), + 50: uint16(21930), + 51: uint16(22766), + 52: uint16(22863), + 53: uint16(29245), + 54: uint16(23435), + 55: uint16(23652), + 56: uint16(21277), + 57: uint16(24803), + 58: uint16(24819), + 59: uint16(25436), + 60: uint16(25475), + 61: uint16(25407), + 62: uint16(25531), + 63: uint16(25805), + 64: uint16(26089), + 65: uint16(26361), + 66: uint16(24035), + 67: uint16(27085), + 68: uint16(27133), + 69: uint16(28437), + 70: uint16(29157), + 71: uint16(20105), + 72: uint16(30185), + 73: uint16(30456), + 74: uint16(31379), + 75: uint16(31967), + 76: uint16(32207), + 77: uint16(32156), + 78: uint16(32865), + 79: uint16(33609), + 80: uint16(33624), + 81: uint16(33900), + 82: uint16(33980), + 83: uint16(34299), + 84: uint16(35013), + 85: uint16(36208), + 86: uint16(36865), + 87: uint16(36973), + 88: uint16(37783), + 89: uint16(38684), + 90: uint16(39442), + 91: uint16(20687), + 92: uint16(22679), + 93: uint16(24974), + }, + 33: { + 0: uint16(33235), + 1: uint16(34101), + 2: uint16(36104), + 3: uint16(36896), + 4: uint16(20419), + 5: uint16(20596), + 6: uint16(21063), + 7: uint16(21363), + 8: uint16(24687), + 9: uint16(25417), + 10: uint16(26463), + 11: uint16(28204), + 12: uint16(36275), + 13: uint16(36895), + 14: uint16(20439), + 15: uint16(23646), + 16: uint16(36042), + 17: uint16(26063), + 18: uint16(32154), + 19: uint16(21330), + 20: uint16(34966), + 21: uint16(20854), + 22: uint16(25539), + 23: uint16(23384), + 24: uint16(23403), + 25: uint16(23562), + 26: uint16(25613), + 27: uint16(26449), + 28: uint16(36956), + 29: uint16(20182), + 30: uint16(22810), + 31: uint16(22826), + 32: uint16(27760), + 33: uint16(35409), + 34: uint16(21822), + 35: uint16(22549), + 36: uint16(22949), + 37: uint16(24816), + 38: uint16(25171), + 39: uint16(26561), + 40: uint16(33333), + 41: uint16(26965), + 42: uint16(38464), + 43: uint16(39364), + 44: uint16(39464), + 45: uint16(20307), + 46: uint16(22534), + 47: uint16(23550), + 48: uint16(32784), + 49: uint16(23729), + 50: uint16(24111), + 51: uint16(24453), + 52: uint16(24608), + 53: uint16(24907), + 54: uint16(25140), + 55: uint16(26367), + 56: uint16(27888), + 57: uint16(28382), + 58: uint16(32974), + 59: uint16(33151), + 60: uint16(33492), + 61: uint16(34955), + 62: uint16(36024), + 63: uint16(36864), + 64: uint16(36910), + 65: uint16(38538), + 66: uint16(40667), + 67: uint16(39899), + 68: uint16(20195), + 69: uint16(21488), + 70: uint16(22823), + 71: uint16(31532), + 72: uint16(37261), + 73: uint16(38988), + 74: uint16(40441), + 75: uint16(28381), + 76: uint16(28711), + 77: uint16(21331), + 78: uint16(21828), + 79: uint16(23429), + 80: uint16(25176), + 81: uint16(25246), + 82: uint16(25299), + 83: uint16(27810), + 84: uint16(28655), + 85: uint16(29730), + 86: uint16(35351), + 87: uint16(37944), + 88: uint16(28609), + 89: uint16(35582), + 90: uint16(33592), + 91: uint16(20967), + 92: uint16(34552), + 93: uint16(21482), + }, + 34: { + 0: uint16(21481), + 1: uint16(20294), + 2: uint16(36948), + 3: uint16(36784), + 4: uint16(22890), + 5: uint16(33073), + 6: uint16(24061), + 7: uint16(31466), + 8: uint16(36799), + 9: uint16(26842), + 10: uint16(35895), + 11: uint16(29432), + 12: uint16(40008), + 13: uint16(27197), + 14: uint16(35504), + 15: uint16(20025), + 16: uint16(21336), + 17: uint16(22022), + 18: uint16(22374), + 19: uint16(25285), + 20: uint16(25506), + 21: uint16(26086), + 22: uint16(27470), + 23: uint16(28129), + 24: uint16(28251), + 25: uint16(28845), + 26: uint16(30701), + 27: uint16(31471), + 28: uint16(31658), + 29: uint16(32187), + 30: uint16(32829), + 31: uint16(32966), + 32: uint16(34507), + 33: uint16(35477), + 34: uint16(37723), + 35: uint16(22243), + 36: uint16(22727), + 37: uint16(24382), + 38: uint16(26029), + 39: uint16(26262), + 40: uint16(27264), + 41: uint16(27573), + 42: uint16(30007), + 43: uint16(35527), + 44: uint16(20516), + 45: uint16(30693), + 46: uint16(22320), + 47: uint16(24347), + 48: uint16(24677), + 49: uint16(26234), + 50: uint16(27744), + 51: uint16(30196), + 52: uint16(31258), + 53: uint16(32622), + 54: uint16(33268), + 55: uint16(34584), + 56: uint16(36933), + 57: uint16(39347), + 58: uint16(31689), + 59: uint16(30044), + 60: uint16(31481), + 61: uint16(31569), + 62: uint16(33988), + 63: uint16(36880), + 64: uint16(31209), + 65: uint16(31378), + 66: uint16(33590), + 67: uint16(23265), + 68: uint16(30528), + 69: uint16(20013), + 70: uint16(20210), + 71: uint16(23449), + 72: uint16(24544), + 73: uint16(25277), + 74: uint16(26172), + 75: uint16(26609), + 76: uint16(27880), + 77: uint16(34411), + 78: uint16(34935), + 79: uint16(35387), + 80: uint16(37198), + 81: uint16(37619), + 82: uint16(39376), + 83: uint16(27159), + 84: uint16(28710), + 85: uint16(29482), + 86: uint16(33511), + 87: uint16(33879), + 88: uint16(36015), + 89: uint16(19969), + 90: uint16(20806), + 91: uint16(20939), + 92: uint16(21899), + 93: uint16(23541), + }, + 35: { + 0: uint16(24086), + 1: uint16(24115), + 2: uint16(24193), + 3: uint16(24340), + 4: uint16(24373), + 5: uint16(24427), + 6: uint16(24500), + 7: uint16(25074), + 8: uint16(25361), + 9: uint16(26274), + 10: uint16(26397), + 11: uint16(28526), + 12: uint16(29266), + 13: uint16(30010), + 14: uint16(30522), + 15: uint16(32884), + 16: uint16(33081), + 17: uint16(33144), + 18: uint16(34678), + 19: uint16(35519), + 20: uint16(35548), + 21: uint16(36229), + 22: uint16(36339), + 23: uint16(37530), + 24: uint16(38263), + 25: uint16(38914), + 26: uint16(40165), + 27: uint16(21189), + 28: uint16(25431), + 29: uint16(30452), + 30: uint16(26389), + 31: uint16(27784), + 32: uint16(29645), + 33: uint16(36035), + 34: uint16(37806), + 35: uint16(38515), + 36: uint16(27941), + 37: uint16(22684), + 38: uint16(26894), + 39: uint16(27084), + 40: uint16(36861), + 41: uint16(37786), + 42: uint16(30171), + 43: uint16(36890), + 44: uint16(22618), + 45: uint16(26626), + 46: uint16(25524), + 47: uint16(27131), + 48: uint16(20291), + 49: uint16(28460), + 50: uint16(26584), + 51: uint16(36795), + 52: uint16(34086), + 53: uint16(32180), + 54: uint16(37716), + 55: uint16(26943), + 56: uint16(28528), + 57: uint16(22378), + 58: uint16(22775), + 59: uint16(23340), + 60: uint16(32044), + 61: uint16(29226), + 62: uint16(21514), + 63: uint16(37347), + 64: uint16(40372), + 65: uint16(20141), + 66: uint16(20302), + 67: uint16(20572), + 68: uint16(20597), + 69: uint16(21059), + 70: uint16(35998), + 71: uint16(21576), + 72: uint16(22564), + 73: uint16(23450), + 74: uint16(24093), + 75: uint16(24213), + 76: uint16(24237), + 77: uint16(24311), + 78: uint16(24351), + 79: uint16(24716), + 80: uint16(25269), + 81: uint16(25402), + 82: uint16(25552), + 83: uint16(26799), + 84: uint16(27712), + 85: uint16(30855), + 86: uint16(31118), + 87: uint16(31243), + 88: uint16(32224), + 89: uint16(33351), + 90: uint16(35330), + 91: uint16(35558), + 92: uint16(36420), + 93: uint16(36883), + }, + 36: { + 0: uint16(37048), + 1: uint16(37165), + 2: uint16(37336), + 3: uint16(40718), + 4: uint16(27877), + 5: uint16(25688), + 6: uint16(25826), + 7: uint16(25973), + 8: uint16(28404), + 9: uint16(30340), + 10: uint16(31515), + 11: uint16(36969), + 12: uint16(37841), + 13: uint16(28346), + 14: uint16(21746), + 15: uint16(24505), + 16: uint16(25764), + 17: uint16(36685), + 18: uint16(36845), + 19: uint16(37444), + 20: uint16(20856), + 21: uint16(22635), + 22: uint16(22825), + 23: uint16(23637), + 24: uint16(24215), + 25: uint16(28155), + 26: uint16(32399), + 27: uint16(29980), + 28: uint16(36028), + 29: uint16(36578), + 30: uint16(39003), + 31: uint16(28857), + 32: uint16(20253), + 33: uint16(27583), + 34: uint16(28593), + 35: uint16(30000), + 36: uint16(38651), + 37: uint16(20814), + 38: uint16(21520), + 39: uint16(22581), + 40: uint16(22615), + 41: uint16(22956), + 42: uint16(23648), + 43: uint16(24466), + 44: uint16(26007), + 45: uint16(26460), + 46: uint16(28193), + 47: uint16(30331), + 48: uint16(33759), + 49: uint16(36077), + 50: uint16(36884), + 51: uint16(37117), + 52: uint16(37709), + 53: uint16(30757), + 54: uint16(30778), + 55: uint16(21162), + 56: uint16(24230), + 57: uint16(22303), + 58: uint16(22900), + 59: uint16(24594), + 60: uint16(20498), + 61: uint16(20826), + 62: uint16(20908), + 63: uint16(20941), + 64: uint16(20992), + 65: uint16(21776), + 66: uint16(22612), + 67: uint16(22616), + 68: uint16(22871), + 69: uint16(23445), + 70: uint16(23798), + 71: uint16(23947), + 72: uint16(24764), + 73: uint16(25237), + 74: uint16(25645), + 75: uint16(26481), + 76: uint16(26691), + 77: uint16(26812), + 78: uint16(26847), + 79: uint16(30423), + 80: uint16(28120), + 81: uint16(28271), + 82: uint16(28059), + 83: uint16(28783), + 84: uint16(29128), + 85: uint16(24403), + 86: uint16(30168), + 87: uint16(31095), + 88: uint16(31561), + 89: uint16(31572), + 90: uint16(31570), + 91: uint16(31958), + 92: uint16(32113), + 93: uint16(21040), + }, + 37: { + 0: uint16(33891), + 1: uint16(34153), + 2: uint16(34276), + 3: uint16(35342), + 4: uint16(35588), + 5: uint16(35910), + 6: uint16(36367), + 7: uint16(36867), + 8: uint16(36879), + 9: uint16(37913), + 10: uint16(38518), + 11: uint16(38957), + 12: uint16(39472), + 13: uint16(38360), + 14: uint16(20685), + 15: uint16(21205), + 16: uint16(21516), + 17: uint16(22530), + 18: uint16(23566), + 19: uint16(24999), + 20: uint16(25758), + 21: uint16(27934), + 22: uint16(30643), + 23: uint16(31461), + 24: uint16(33012), + 25: uint16(33796), + 26: uint16(36947), + 27: uint16(37509), + 28: uint16(23776), + 29: uint16(40199), + 30: uint16(21311), + 31: uint16(24471), + 32: uint16(24499), + 33: uint16(28060), + 34: uint16(29305), + 35: uint16(30563), + 36: uint16(31167), + 37: uint16(31716), + 38: uint16(27602), + 39: uint16(29420), + 40: uint16(35501), + 41: uint16(26627), + 42: uint16(27233), + 43: uint16(20984), + 44: uint16(31361), + 45: uint16(26932), + 46: uint16(23626), + 47: uint16(40182), + 48: uint16(33515), + 49: uint16(23493), + 50: uint16(37193), + 51: uint16(28702), + 52: uint16(22136), + 53: uint16(23663), + 54: uint16(24775), + 55: uint16(25958), + 56: uint16(27788), + 57: uint16(35930), + 58: uint16(36929), + 59: uint16(38931), + 60: uint16(21585), + 61: uint16(26311), + 62: uint16(37389), + 63: uint16(22856), + 64: uint16(37027), + 65: uint16(20869), + 66: uint16(20045), + 67: uint16(20970), + 68: uint16(34201), + 69: uint16(35598), + 70: uint16(28760), + 71: uint16(25466), + 72: uint16(37707), + 73: uint16(26978), + 74: uint16(39348), + 75: uint16(32260), + 76: uint16(30071), + 77: uint16(21335), + 78: uint16(26976), + 79: uint16(36575), + 80: uint16(38627), + 81: uint16(27741), + 82: uint16(20108), + 83: uint16(23612), + 84: uint16(24336), + 85: uint16(36841), + 86: uint16(21250), + 87: uint16(36049), + 88: uint16(32905), + 89: uint16(34425), + 90: uint16(24319), + 91: uint16(26085), + 92: uint16(20083), + 93: uint16(20837), + }, + 38: { + 0: uint16(22914), + 1: uint16(23615), + 2: uint16(38894), + 3: uint16(20219), + 4: uint16(22922), + 5: uint16(24525), + 6: uint16(35469), + 7: uint16(28641), + 8: uint16(31152), + 9: uint16(31074), + 10: uint16(23527), + 11: uint16(33905), + 12: uint16(29483), + 13: uint16(29105), + 14: uint16(24180), + 15: uint16(24565), + 16: uint16(25467), + 17: uint16(25754), + 18: uint16(29123), + 19: uint16(31896), + 20: uint16(20035), + 21: uint16(24316), + 22: uint16(20043), + 23: uint16(22492), + 24: uint16(22178), + 25: uint16(24745), + 26: uint16(28611), + 27: uint16(32013), + 28: uint16(33021), + 29: uint16(33075), + 30: uint16(33215), + 31: uint16(36786), + 32: uint16(35223), + 33: uint16(34468), + 34: uint16(24052), + 35: uint16(25226), + 36: uint16(25773), + 37: uint16(35207), + 38: uint16(26487), + 39: uint16(27874), + 40: uint16(27966), + 41: uint16(29750), + 42: uint16(30772), + 43: uint16(23110), + 44: uint16(32629), + 45: uint16(33453), + 46: uint16(39340), + 47: uint16(20467), + 48: uint16(24259), + 49: uint16(25309), + 50: uint16(25490), + 51: uint16(25943), + 52: uint16(26479), + 53: uint16(30403), + 54: uint16(29260), + 55: uint16(32972), + 56: uint16(32954), + 57: uint16(36649), + 58: uint16(37197), + 59: uint16(20493), + 60: uint16(22521), + 61: uint16(23186), + 62: uint16(26757), + 63: uint16(26995), + 64: uint16(29028), + 65: uint16(29437), + 66: uint16(36023), + 67: uint16(22770), + 68: uint16(36064), + 69: uint16(38506), + 70: uint16(36889), + 71: uint16(34687), + 72: uint16(31204), + 73: uint16(30695), + 74: uint16(33833), + 75: uint16(20271), + 76: uint16(21093), + 77: uint16(21338), + 78: uint16(25293), + 79: uint16(26575), + 80: uint16(27850), + 81: uint16(30333), + 82: uint16(31636), + 83: uint16(31893), + 84: uint16(33334), + 85: uint16(34180), + 86: uint16(36843), + 87: uint16(26333), + 88: uint16(28448), + 89: uint16(29190), + 90: uint16(32283), + 91: uint16(33707), + 92: uint16(39361), + 93: uint16(40614), + }, + 39: { + 0: uint16(20989), + 1: uint16(31665), + 2: uint16(30834), + 3: uint16(31672), + 4: uint16(32903), + 5: uint16(31560), + 6: uint16(27368), + 7: uint16(24161), + 8: uint16(32908), + 9: uint16(30033), + 10: uint16(30048), + 11: uint16(20843), + 12: uint16(37474), + 13: uint16(28300), + 14: uint16(30330), + 15: uint16(37271), + 16: uint16(39658), + 17: uint16(20240), + 18: uint16(32624), + 19: uint16(25244), + 20: uint16(31567), + 21: uint16(38309), + 22: uint16(40169), + 23: uint16(22138), + 24: uint16(22617), + 25: uint16(34532), + 26: uint16(38588), + 27: uint16(20276), + 28: uint16(21028), + 29: uint16(21322), + 30: uint16(21453), + 31: uint16(21467), + 32: uint16(24070), + 33: uint16(25644), + 34: uint16(26001), + 35: uint16(26495), + 36: uint16(27710), + 37: uint16(27726), + 38: uint16(29256), + 39: uint16(29359), + 40: uint16(29677), + 41: uint16(30036), + 42: uint16(32321), + 43: uint16(33324), + 44: uint16(34281), + 45: uint16(36009), + 46: uint16(31684), + 47: uint16(37318), + 48: uint16(29033), + 49: uint16(38930), + 50: uint16(39151), + 51: uint16(25405), + 52: uint16(26217), + 53: uint16(30058), + 54: uint16(30436), + 55: uint16(30928), + 56: uint16(34115), + 57: uint16(34542), + 58: uint16(21290), + 59: uint16(21329), + 60: uint16(21542), + 61: uint16(22915), + 62: uint16(24199), + 63: uint16(24444), + 64: uint16(24754), + 65: uint16(25161), + 66: uint16(25209), + 67: uint16(25259), + 68: uint16(26000), + 69: uint16(27604), + 70: uint16(27852), + 71: uint16(30130), + 72: uint16(30382), + 73: uint16(30865), + 74: uint16(31192), + 75: uint16(32203), + 76: uint16(32631), + 77: uint16(32933), + 78: uint16(34987), + 79: uint16(35513), + 80: uint16(36027), + 81: uint16(36991), + 82: uint16(38750), + 83: uint16(39131), + 84: uint16(27147), + 85: uint16(31800), + 86: uint16(20633), + 87: uint16(23614), + 88: uint16(24494), + 89: uint16(26503), + 90: uint16(27608), + 91: uint16(29749), + 92: uint16(30473), + 93: uint16(32654), + }, + 40: { + 0: uint16(40763), + 1: uint16(26570), + 2: uint16(31255), + 3: uint16(21305), + 4: uint16(30091), + 5: uint16(39661), + 6: uint16(24422), + 7: uint16(33181), + 8: uint16(33777), + 9: uint16(32920), + 10: uint16(24380), + 11: uint16(24517), + 12: uint16(30050), + 13: uint16(31558), + 14: uint16(36924), + 15: uint16(26727), + 16: uint16(23019), + 17: uint16(23195), + 18: uint16(32016), + 19: uint16(30334), + 20: uint16(35628), + 21: uint16(20469), + 22: uint16(24426), + 23: uint16(27161), + 24: uint16(27703), + 25: uint16(28418), + 26: uint16(29922), + 27: uint16(31080), + 28: uint16(34920), + 29: uint16(35413), + 30: uint16(35961), + 31: uint16(24287), + 32: uint16(25551), + 33: uint16(30149), + 34: uint16(31186), + 35: uint16(33495), + 36: uint16(37672), + 37: uint16(37618), + 38: uint16(33948), + 39: uint16(34541), + 40: uint16(39981), + 41: uint16(21697), + 42: uint16(24428), + 43: uint16(25996), + 44: uint16(27996), + 45: uint16(28693), + 46: uint16(36007), + 47: uint16(36051), + 48: uint16(38971), + 49: uint16(25935), + 50: uint16(29942), + 51: uint16(19981), + 52: uint16(20184), + 53: uint16(22496), + 54: uint16(22827), + 55: uint16(23142), + 56: uint16(23500), + 57: uint16(20904), + 58: uint16(24067), + 59: uint16(24220), + 60: uint16(24598), + 61: uint16(25206), + 62: uint16(25975), + 63: uint16(26023), + 64: uint16(26222), + 65: uint16(28014), + 66: uint16(29238), + 67: uint16(31526), + 68: uint16(33104), + 69: uint16(33178), + 70: uint16(33433), + 71: uint16(35676), + 72: uint16(36000), + 73: uint16(36070), + 74: uint16(36212), + 75: uint16(38428), + 76: uint16(38468), + 77: uint16(20398), + 78: uint16(25771), + 79: uint16(27494), + 80: uint16(33310), + 81: uint16(33889), + 82: uint16(34154), + 83: uint16(37096), + 84: uint16(23553), + 85: uint16(26963), + 86: uint16(39080), + 87: uint16(33914), + 88: uint16(34135), + 89: uint16(20239), + 90: uint16(21103), + 91: uint16(24489), + 92: uint16(24133), + 93: uint16(26381), + }, + 41: { + 0: uint16(31119), + 1: uint16(33145), + 2: uint16(35079), + 3: uint16(35206), + 4: uint16(28149), + 5: uint16(24343), + 6: uint16(25173), + 7: uint16(27832), + 8: uint16(20175), + 9: uint16(29289), + 10: uint16(39826), + 11: uint16(20998), + 12: uint16(21563), + 13: uint16(22132), + 14: uint16(22707), + 15: uint16(24996), + 16: uint16(25198), + 17: uint16(28954), + 18: uint16(22894), + 19: uint16(31881), + 20: uint16(31966), + 21: uint16(32027), + 22: uint16(38640), + 23: uint16(25991), + 24: uint16(32862), + 25: uint16(19993), + 26: uint16(20341), + 27: uint16(20853), + 28: uint16(22592), + 29: uint16(24163), + 30: uint16(24179), + 31: uint16(24330), + 32: uint16(26564), + 33: uint16(20006), + 34: uint16(34109), + 35: uint16(38281), + 36: uint16(38491), + 37: uint16(31859), + 38: uint16(38913), + 39: uint16(20731), + 40: uint16(22721), + 41: uint16(30294), + 42: uint16(30887), + 43: uint16(21029), + 44: uint16(30629), + 45: uint16(34065), + 46: uint16(31622), + 47: uint16(20559), + 48: uint16(22793), + 49: uint16(29255), + 50: uint16(31687), + 51: uint16(32232), + 52: uint16(36794), + 53: uint16(36820), + 54: uint16(36941), + 55: uint16(20415), + 56: uint16(21193), + 57: uint16(23081), + 58: uint16(24321), + 59: uint16(38829), + 60: uint16(20445), + 61: uint16(33303), + 62: uint16(37610), + 63: uint16(22275), + 64: uint16(25429), + 65: uint16(27497), + 66: uint16(29995), + 67: uint16(35036), + 68: uint16(36628), + 69: uint16(31298), + 70: uint16(21215), + 71: uint16(22675), + 72: uint16(24917), + 73: uint16(25098), + 74: uint16(26286), + 75: uint16(27597), + 76: uint16(31807), + 77: uint16(33769), + 78: uint16(20515), + 79: uint16(20472), + 80: uint16(21253), + 81: uint16(21574), + 82: uint16(22577), + 83: uint16(22857), + 84: uint16(23453), + 85: uint16(23792), + 86: uint16(23791), + 87: uint16(23849), + 88: uint16(24214), + 89: uint16(25265), + 90: uint16(25447), + 91: uint16(25918), + 92: uint16(26041), + 93: uint16(26379), + }, + 42: { + 0: uint16(27861), + 1: uint16(27873), + 2: uint16(28921), + 3: uint16(30770), + 4: uint16(32299), + 5: uint16(32990), + 6: uint16(33459), + 7: uint16(33804), + 8: uint16(34028), + 9: uint16(34562), + 10: uint16(35090), + 11: uint16(35370), + 12: uint16(35914), + 13: uint16(37030), + 14: uint16(37586), + 15: uint16(39165), + 16: uint16(40179), + 17: uint16(40300), + 18: uint16(20047), + 19: uint16(20129), + 20: uint16(20621), + 21: uint16(21078), + 22: uint16(22346), + 23: uint16(22952), + 24: uint16(24125), + 25: uint16(24536), + 26: uint16(24537), + 27: uint16(25151), + 28: uint16(26292), + 29: uint16(26395), + 30: uint16(26576), + 31: uint16(26834), + 32: uint16(20882), + 33: uint16(32033), + 34: uint16(32938), + 35: uint16(33192), + 36: uint16(35584), + 37: uint16(35980), + 38: uint16(36031), + 39: uint16(37502), + 40: uint16(38450), + 41: uint16(21536), + 42: uint16(38956), + 43: uint16(21271), + 44: uint16(20693), + 45: uint16(21340), + 46: uint16(22696), + 47: uint16(25778), + 48: uint16(26420), + 49: uint16(29287), + 50: uint16(30566), + 51: uint16(31302), + 52: uint16(37350), + 53: uint16(21187), + 54: uint16(27809), + 55: uint16(27526), + 56: uint16(22528), + 57: uint16(24140), + 58: uint16(22868), + 59: uint16(26412), + 60: uint16(32763), + 61: uint16(20961), + 62: uint16(30406), + 63: uint16(25705), + 64: uint16(30952), + 65: uint16(39764), + 66: uint16(40635), + 67: uint16(22475), + 68: uint16(22969), + 69: uint16(26151), + 70: uint16(26522), + 71: uint16(27598), + 72: uint16(21737), + 73: uint16(27097), + 74: uint16(24149), + 75: uint16(33180), + 76: uint16(26517), + 77: uint16(39850), + 78: uint16(26622), + 79: uint16(40018), + 80: uint16(26717), + 81: uint16(20134), + 82: uint16(20451), + 83: uint16(21448), + 84: uint16(25273), + 85: uint16(26411), + 86: uint16(27819), + 87: uint16(36804), + 88: uint16(20397), + 89: uint16(32365), + 90: uint16(40639), + 91: uint16(19975), + 92: uint16(24930), + 93: uint16(28288), + }, + 43: { + 0: uint16(28459), + 1: uint16(34067), + 2: uint16(21619), + 3: uint16(26410), + 4: uint16(39749), + 5: uint16(24051), + 6: uint16(31637), + 7: uint16(23724), + 8: uint16(23494), + 9: uint16(34588), + 10: uint16(28234), + 11: uint16(34001), + 12: uint16(31252), + 13: uint16(33032), + 14: uint16(22937), + 15: uint16(31885), + 16: uint16(27665), + 17: uint16(30496), + 18: uint16(21209), + 19: uint16(22818), + 20: uint16(28961), + 21: uint16(29279), + 22: uint16(30683), + 23: uint16(38695), + 24: uint16(40289), + 25: uint16(26891), + 26: uint16(23167), + 27: uint16(23064), + 28: uint16(20901), + 29: uint16(21517), + 30: uint16(21629), + 31: uint16(26126), + 32: uint16(30431), + 33: uint16(36855), + 34: uint16(37528), + 35: uint16(40180), + 36: uint16(23018), + 37: uint16(29277), + 38: uint16(28357), + 39: uint16(20813), + 40: uint16(26825), + 41: uint16(32191), + 42: uint16(32236), + 43: uint16(38754), + 44: uint16(40634), + 45: uint16(25720), + 46: uint16(27169), + 47: uint16(33538), + 48: uint16(22916), + 49: uint16(23391), + 50: uint16(27611), + 51: uint16(29467), + 52: uint16(30450), + 53: uint16(32178), + 54: uint16(32791), + 55: uint16(33945), + 56: uint16(20786), + 57: uint16(26408), + 58: uint16(40665), + 59: uint16(30446), + 60: uint16(26466), + 61: uint16(21247), + 62: uint16(39173), + 63: uint16(23588), + 64: uint16(25147), + 65: uint16(31870), + 66: uint16(36016), + 67: uint16(21839), + 68: uint16(24758), + 69: uint16(32011), + 70: uint16(38272), + 71: uint16(21249), + 72: uint16(20063), + 73: uint16(20918), + 74: uint16(22812), + 75: uint16(29242), + 76: uint16(32822), + 77: uint16(37326), + 78: uint16(24357), + 79: uint16(30690), + 80: uint16(21380), + 81: uint16(24441), + 82: uint16(32004), + 83: uint16(34220), + 84: uint16(35379), + 85: uint16(36493), + 86: uint16(38742), + 87: uint16(26611), + 88: uint16(34222), + 89: uint16(37971), + 90: uint16(24841), + 91: uint16(24840), + 92: uint16(27833), + 93: uint16(30290), + }, + 44: { + 0: uint16(35565), + 1: uint16(36664), + 2: uint16(21807), + 3: uint16(20305), + 4: uint16(20778), + 5: uint16(21191), + 6: uint16(21451), + 7: uint16(23461), + 8: uint16(24189), + 9: uint16(24736), + 10: uint16(24962), + 11: uint16(25558), + 12: uint16(26377), + 13: uint16(26586), + 14: uint16(28263), + 15: uint16(28044), + 16: uint16(29494), + 17: uint16(29495), + 18: uint16(30001), + 19: uint16(31056), + 20: uint16(35029), + 21: uint16(35480), + 22: uint16(36938), + 23: uint16(37009), + 24: uint16(37109), + 25: uint16(38596), + 26: uint16(34701), + 27: uint16(22805), + 28: uint16(20104), + 29: uint16(20313), + 30: uint16(19982), + 31: uint16(35465), + 32: uint16(36671), + 33: uint16(38928), + 34: uint16(20653), + 35: uint16(24188), + 36: uint16(22934), + 37: uint16(23481), + 38: uint16(24248), + 39: uint16(25562), + 40: uint16(25594), + 41: uint16(25793), + 42: uint16(26332), + 43: uint16(26954), + 44: uint16(27096), + 45: uint16(27915), + 46: uint16(28342), + 47: uint16(29076), + 48: uint16(29992), + 49: uint16(31407), + 50: uint16(32650), + 51: uint16(32768), + 52: uint16(33865), + 53: uint16(33993), + 54: uint16(35201), + 55: uint16(35617), + 56: uint16(36362), + 57: uint16(36965), + 58: uint16(38525), + 59: uint16(39178), + 60: uint16(24958), + 61: uint16(25233), + 62: uint16(27442), + 63: uint16(27779), + 64: uint16(28020), + 65: uint16(32716), + 66: uint16(32764), + 67: uint16(28096), + 68: uint16(32645), + 69: uint16(34746), + 70: uint16(35064), + 71: uint16(26469), + 72: uint16(33713), + 73: uint16(38972), + 74: uint16(38647), + 75: uint16(27931), + 76: uint16(32097), + 77: uint16(33853), + 78: uint16(37226), + 79: uint16(20081), + 80: uint16(21365), + 81: uint16(23888), + 82: uint16(27396), + 83: uint16(28651), + 84: uint16(34253), + 85: uint16(34349), + 86: uint16(35239), + 87: uint16(21033), + 88: uint16(21519), + 89: uint16(23653), + 90: uint16(26446), + 91: uint16(26792), + 92: uint16(29702), + 93: uint16(29827), + }, + 45: { + 0: uint16(30178), + 1: uint16(35023), + 2: uint16(35041), + 3: uint16(37324), + 4: uint16(38626), + 5: uint16(38520), + 6: uint16(24459), + 7: uint16(29575), + 8: uint16(31435), + 9: uint16(33870), + 10: uint16(25504), + 11: uint16(30053), + 12: uint16(21129), + 13: uint16(27969), + 14: uint16(28316), + 15: uint16(29705), + 16: uint16(30041), + 17: uint16(30827), + 18: uint16(31890), + 19: uint16(38534), + 20: uint16(31452), + 21: uint16(40845), + 22: uint16(20406), + 23: uint16(24942), + 24: uint16(26053), + 25: uint16(34396), + 26: uint16(20102), + 27: uint16(20142), + 28: uint16(20698), + 29: uint16(20001), + 30: uint16(20940), + 31: uint16(23534), + 32: uint16(26009), + 33: uint16(26753), + 34: uint16(28092), + 35: uint16(29471), + 36: uint16(30274), + 37: uint16(30637), + 38: uint16(31260), + 39: uint16(31975), + 40: uint16(33391), + 41: uint16(35538), + 42: uint16(36988), + 43: uint16(37327), + 44: uint16(38517), + 45: uint16(38936), + 46: uint16(21147), + 47: uint16(32209), + 48: uint16(20523), + 49: uint16(21400), + 50: uint16(26519), + 51: uint16(28107), + 52: uint16(29136), + 53: uint16(29747), + 54: uint16(33256), + 55: uint16(36650), + 56: uint16(38563), + 57: uint16(40023), + 58: uint16(40607), + 59: uint16(29792), + 60: uint16(22593), + 61: uint16(28057), + 62: uint16(32047), + 63: uint16(39006), + 64: uint16(20196), + 65: uint16(20278), + 66: uint16(20363), + 67: uint16(20919), + 68: uint16(21169), + 69: uint16(23994), + 70: uint16(24604), + 71: uint16(29618), + 72: uint16(31036), + 73: uint16(33491), + 74: uint16(37428), + 75: uint16(38583), + 76: uint16(38646), + 77: uint16(38666), + 78: uint16(40599), + 79: uint16(40802), + 80: uint16(26278), + 81: uint16(27508), + 82: uint16(21015), + 83: uint16(21155), + 84: uint16(28872), + 85: uint16(35010), + 86: uint16(24265), + 87: uint16(24651), + 88: uint16(24976), + 89: uint16(28451), + 90: uint16(29001), + 91: uint16(31806), + 92: uint16(32244), + 93: uint16(32879), + }, + 46: { + 0: uint16(34030), + 1: uint16(36899), + 2: uint16(37676), + 3: uint16(21570), + 4: uint16(39791), + 5: uint16(27347), + 6: uint16(28809), + 7: uint16(36034), + 8: uint16(36335), + 9: uint16(38706), + 10: uint16(21172), + 11: uint16(23105), + 12: uint16(24266), + 13: uint16(24324), + 14: uint16(26391), + 15: uint16(27004), + 16: uint16(27028), + 17: uint16(28010), + 18: uint16(28431), + 19: uint16(29282), + 20: uint16(29436), + 21: uint16(31725), + 22: uint16(32769), + 23: uint16(32894), + 24: uint16(34635), + 25: uint16(37070), + 26: uint16(20845), + 27: uint16(40595), + 28: uint16(31108), + 29: uint16(32907), + 30: uint16(37682), + 31: uint16(35542), + 32: uint16(20525), + 33: uint16(21644), + 34: uint16(35441), + 35: uint16(27498), + 36: uint16(36036), + 37: uint16(33031), + 38: uint16(24785), + 39: uint16(26528), + 40: uint16(40434), + 41: uint16(20121), + 42: uint16(20120), + 43: uint16(39952), + 44: uint16(35435), + 45: uint16(34241), + 46: uint16(34152), + 47: uint16(26880), + 48: uint16(28286), + 49: uint16(30871), + 50: uint16(33109), + }, + 47: { + 0: uint16(24332), + 1: uint16(19984), + 2: uint16(19989), + 3: uint16(20010), + 4: uint16(20017), + 5: uint16(20022), + 6: uint16(20028), + 7: uint16(20031), + 8: uint16(20034), + 9: uint16(20054), + 10: uint16(20056), + 11: uint16(20098), + 12: uint16(20101), + 13: uint16(35947), + 14: uint16(20106), + 15: uint16(33298), + 16: uint16(24333), + 17: uint16(20110), + 18: uint16(20126), + 19: uint16(20127), + 20: uint16(20128), + 21: uint16(20130), + 22: uint16(20144), + 23: uint16(20147), + 24: uint16(20150), + 25: uint16(20174), + 26: uint16(20173), + 27: uint16(20164), + 28: uint16(20166), + 29: uint16(20162), + 30: uint16(20183), + 31: uint16(20190), + 32: uint16(20205), + 33: uint16(20191), + 34: uint16(20215), + 35: uint16(20233), + 36: uint16(20314), + 37: uint16(20272), + 38: uint16(20315), + 39: uint16(20317), + 40: uint16(20311), + 41: uint16(20295), + 42: uint16(20342), + 43: uint16(20360), + 44: uint16(20367), + 45: uint16(20376), + 46: uint16(20347), + 47: uint16(20329), + 48: uint16(20336), + 49: uint16(20369), + 50: uint16(20335), + 51: uint16(20358), + 52: uint16(20374), + 53: uint16(20760), + 54: uint16(20436), + 55: uint16(20447), + 56: uint16(20430), + 57: uint16(20440), + 58: uint16(20443), + 59: uint16(20433), + 60: uint16(20442), + 61: uint16(20432), + 62: uint16(20452), + 63: uint16(20453), + 64: uint16(20506), + 65: uint16(20520), + 66: uint16(20500), + 67: uint16(20522), + 68: uint16(20517), + 69: uint16(20485), + 70: uint16(20252), + 71: uint16(20470), + 72: uint16(20513), + 73: uint16(20521), + 74: uint16(20524), + 75: uint16(20478), + 76: uint16(20463), + 77: uint16(20497), + 78: uint16(20486), + 79: uint16(20547), + 80: uint16(20551), + 81: uint16(26371), + 82: uint16(20565), + 83: uint16(20560), + 84: uint16(20552), + 85: uint16(20570), + 86: uint16(20566), + 87: uint16(20588), + 88: uint16(20600), + 89: uint16(20608), + 90: uint16(20634), + 91: uint16(20613), + 92: uint16(20660), + 93: uint16(20658), + }, + 48: { + 0: uint16(20681), + 1: uint16(20682), + 2: uint16(20659), + 3: uint16(20674), + 4: uint16(20694), + 5: uint16(20702), + 6: uint16(20709), + 7: uint16(20717), + 8: uint16(20707), + 9: uint16(20718), + 10: uint16(20729), + 11: uint16(20725), + 12: uint16(20745), + 13: uint16(20737), + 14: uint16(20738), + 15: uint16(20758), + 16: uint16(20757), + 17: uint16(20756), + 18: uint16(20762), + 19: uint16(20769), + 20: uint16(20794), + 21: uint16(20791), + 22: uint16(20796), + 23: uint16(20795), + 24: uint16(20799), + 25: uint16(20800), + 26: uint16(20818), + 27: uint16(20812), + 28: uint16(20820), + 29: uint16(20834), + 30: uint16(31480), + 31: uint16(20841), + 32: uint16(20842), + 33: uint16(20846), + 34: uint16(20864), + 35: uint16(20866), + 36: uint16(22232), + 37: uint16(20876), + 38: uint16(20873), + 39: uint16(20879), + 40: uint16(20881), + 41: uint16(20883), + 42: uint16(20885), + 43: uint16(20886), + 44: uint16(20900), + 45: uint16(20902), + 46: uint16(20898), + 47: uint16(20905), + 48: uint16(20906), + 49: uint16(20907), + 50: uint16(20915), + 51: uint16(20913), + 52: uint16(20914), + 53: uint16(20912), + 54: uint16(20917), + 55: uint16(20925), + 56: uint16(20933), + 57: uint16(20937), + 58: uint16(20955), + 59: uint16(20960), + 60: uint16(34389), + 61: uint16(20969), + 62: uint16(20973), + 63: uint16(20976), + 64: uint16(20981), + 65: uint16(20990), + 66: uint16(20996), + 67: uint16(21003), + 68: uint16(21012), + 69: uint16(21006), + 70: uint16(21031), + 71: uint16(21034), + 72: uint16(21038), + 73: uint16(21043), + 74: uint16(21049), + 75: uint16(21071), + 76: uint16(21060), + 77: uint16(21067), + 78: uint16(21068), + 79: uint16(21086), + 80: uint16(21076), + 81: uint16(21098), + 82: uint16(21108), + 83: uint16(21097), + 84: uint16(21107), + 85: uint16(21119), + 86: uint16(21117), + 87: uint16(21133), + 88: uint16(21140), + 89: uint16(21138), + 90: uint16(21105), + 91: uint16(21128), + 92: uint16(21137), + 93: uint16(36776), + }, + 49: { + 0: uint16(36775), + 1: uint16(21164), + 2: uint16(21165), + 3: uint16(21180), + 4: uint16(21173), + 5: uint16(21185), + 6: uint16(21197), + 7: uint16(21207), + 8: uint16(21214), + 9: uint16(21219), + 10: uint16(21222), + 11: uint16(39149), + 12: uint16(21216), + 13: uint16(21235), + 14: uint16(21237), + 15: uint16(21240), + 16: uint16(21241), + 17: uint16(21254), + 18: uint16(21256), + 19: uint16(30008), + 20: uint16(21261), + 21: uint16(21264), + 22: uint16(21263), + 23: uint16(21269), + 24: uint16(21274), + 25: uint16(21283), + 26: uint16(21295), + 27: uint16(21297), + 28: uint16(21299), + 29: uint16(21304), + 30: uint16(21312), + 31: uint16(21318), + 32: uint16(21317), + 33: uint16(19991), + 34: uint16(21321), + 35: uint16(21325), + 36: uint16(20950), + 37: uint16(21342), + 38: uint16(21353), + 39: uint16(21358), + 40: uint16(22808), + 41: uint16(21371), + 42: uint16(21367), + 43: uint16(21378), + 44: uint16(21398), + 45: uint16(21408), + 46: uint16(21414), + 47: uint16(21413), + 48: uint16(21422), + 49: uint16(21424), + 50: uint16(21430), + 51: uint16(21443), + 52: uint16(31762), + 53: uint16(38617), + 54: uint16(21471), + 55: uint16(26364), + 56: uint16(29166), + 57: uint16(21486), + 58: uint16(21480), + 59: uint16(21485), + 60: uint16(21498), + 61: uint16(21505), + 62: uint16(21565), + 63: uint16(21568), + 64: uint16(21548), + 65: uint16(21549), + 66: uint16(21564), + 67: uint16(21550), + 68: uint16(21558), + 69: uint16(21545), + 70: uint16(21533), + 71: uint16(21582), + 72: uint16(21647), + 73: uint16(21621), + 74: uint16(21646), + 75: uint16(21599), + 76: uint16(21617), + 77: uint16(21623), + 78: uint16(21616), + 79: uint16(21650), + 80: uint16(21627), + 81: uint16(21632), + 82: uint16(21622), + 83: uint16(21636), + 84: uint16(21648), + 85: uint16(21638), + 86: uint16(21703), + 87: uint16(21666), + 88: uint16(21688), + 89: uint16(21669), + 90: uint16(21676), + 91: uint16(21700), + 92: uint16(21704), + 93: uint16(21672), + }, + 50: { + 0: uint16(21675), + 1: uint16(21698), + 2: uint16(21668), + 3: uint16(21694), + 4: uint16(21692), + 5: uint16(21720), + 6: uint16(21733), + 7: uint16(21734), + 8: uint16(21775), + 9: uint16(21780), + 10: uint16(21757), + 11: uint16(21742), + 12: uint16(21741), + 13: uint16(21754), + 14: uint16(21730), + 15: uint16(21817), + 16: uint16(21824), + 17: uint16(21859), + 18: uint16(21836), + 19: uint16(21806), + 20: uint16(21852), + 21: uint16(21829), + 22: uint16(21846), + 23: uint16(21847), + 24: uint16(21816), + 25: uint16(21811), + 26: uint16(21853), + 27: uint16(21913), + 28: uint16(21888), + 29: uint16(21679), + 30: uint16(21898), + 31: uint16(21919), + 32: uint16(21883), + 33: uint16(21886), + 34: uint16(21912), + 35: uint16(21918), + 36: uint16(21934), + 37: uint16(21884), + 38: uint16(21891), + 39: uint16(21929), + 40: uint16(21895), + 41: uint16(21928), + 42: uint16(21978), + 43: uint16(21957), + 44: uint16(21983), + 45: uint16(21956), + 46: uint16(21980), + 47: uint16(21988), + 48: uint16(21972), + 49: uint16(22036), + 50: uint16(22007), + 51: uint16(22038), + 52: uint16(22014), + 53: uint16(22013), + 54: uint16(22043), + 55: uint16(22009), + 56: uint16(22094), + 57: uint16(22096), + 58: uint16(29151), + 59: uint16(22068), + 60: uint16(22070), + 61: uint16(22066), + 62: uint16(22072), + 63: uint16(22123), + 64: uint16(22116), + 65: uint16(22063), + 66: uint16(22124), + 67: uint16(22122), + 68: uint16(22150), + 69: uint16(22144), + 70: uint16(22154), + 71: uint16(22176), + 72: uint16(22164), + 73: uint16(22159), + 74: uint16(22181), + 75: uint16(22190), + 76: uint16(22198), + 77: uint16(22196), + 78: uint16(22210), + 79: uint16(22204), + 80: uint16(22209), + 81: uint16(22211), + 82: uint16(22208), + 83: uint16(22216), + 84: uint16(22222), + 85: uint16(22225), + 86: uint16(22227), + 87: uint16(22231), + 88: uint16(22254), + 89: uint16(22265), + 90: uint16(22272), + 91: uint16(22271), + 92: uint16(22276), + 93: uint16(22281), + }, + 51: { + 0: uint16(22280), + 1: uint16(22283), + 2: uint16(22285), + 3: uint16(22291), + 4: uint16(22296), + 5: uint16(22294), + 6: uint16(21959), + 7: uint16(22300), + 8: uint16(22310), + 9: uint16(22327), + 10: uint16(22328), + 11: uint16(22350), + 12: uint16(22331), + 13: uint16(22336), + 14: uint16(22351), + 15: uint16(22377), + 16: uint16(22464), + 17: uint16(22408), + 18: uint16(22369), + 19: uint16(22399), + 20: uint16(22409), + 21: uint16(22419), + 22: uint16(22432), + 23: uint16(22451), + 24: uint16(22436), + 25: uint16(22442), + 26: uint16(22448), + 27: uint16(22467), + 28: uint16(22470), + 29: uint16(22484), + 30: uint16(22482), + 31: uint16(22483), + 32: uint16(22538), + 33: uint16(22486), + 34: uint16(22499), + 35: uint16(22539), + 36: uint16(22553), + 37: uint16(22557), + 38: uint16(22642), + 39: uint16(22561), + 40: uint16(22626), + 41: uint16(22603), + 42: uint16(22640), + 43: uint16(27584), + 44: uint16(22610), + 45: uint16(22589), + 46: uint16(22649), + 47: uint16(22661), + 48: uint16(22713), + 49: uint16(22687), + 50: uint16(22699), + 51: uint16(22714), + 52: uint16(22750), + 53: uint16(22715), + 54: uint16(22712), + 55: uint16(22702), + 56: uint16(22725), + 57: uint16(22739), + 58: uint16(22737), + 59: uint16(22743), + 60: uint16(22745), + 61: uint16(22744), + 62: uint16(22757), + 63: uint16(22748), + 64: uint16(22756), + 65: uint16(22751), + 66: uint16(22767), + 67: uint16(22778), + 68: uint16(22777), + 69: uint16(22779), + 70: uint16(22780), + 71: uint16(22781), + 72: uint16(22786), + 73: uint16(22794), + 74: uint16(22800), + 75: uint16(22811), + 76: uint16(26790), + 77: uint16(22821), + 78: uint16(22828), + 79: uint16(22829), + 80: uint16(22834), + 81: uint16(22840), + 82: uint16(22846), + 83: uint16(31442), + 84: uint16(22869), + 85: uint16(22864), + 86: uint16(22862), + 87: uint16(22874), + 88: uint16(22872), + 89: uint16(22882), + 90: uint16(22880), + 91: uint16(22887), + 92: uint16(22892), + 93: uint16(22889), + }, + 52: { + 0: uint16(22904), + 1: uint16(22913), + 2: uint16(22941), + 3: uint16(20318), + 4: uint16(20395), + 5: uint16(22947), + 6: uint16(22962), + 7: uint16(22982), + 8: uint16(23016), + 9: uint16(23004), + 10: uint16(22925), + 11: uint16(23001), + 12: uint16(23002), + 13: uint16(23077), + 14: uint16(23071), + 15: uint16(23057), + 16: uint16(23068), + 17: uint16(23049), + 18: uint16(23066), + 19: uint16(23104), + 20: uint16(23148), + 21: uint16(23113), + 22: uint16(23093), + 23: uint16(23094), + 24: uint16(23138), + 25: uint16(23146), + 26: uint16(23194), + 27: uint16(23228), + 28: uint16(23230), + 29: uint16(23243), + 30: uint16(23234), + 31: uint16(23229), + 32: uint16(23267), + 33: uint16(23255), + 34: uint16(23270), + 35: uint16(23273), + 36: uint16(23254), + 37: uint16(23290), + 38: uint16(23291), + 39: uint16(23308), + 40: uint16(23307), + 41: uint16(23318), + 42: uint16(23346), + 43: uint16(23248), + 44: uint16(23338), + 45: uint16(23350), + 46: uint16(23358), + 47: uint16(23363), + 48: uint16(23365), + 49: uint16(23360), + 50: uint16(23377), + 51: uint16(23381), + 52: uint16(23386), + 53: uint16(23387), + 54: uint16(23397), + 55: uint16(23401), + 56: uint16(23408), + 57: uint16(23411), + 58: uint16(23413), + 59: uint16(23416), + 60: uint16(25992), + 61: uint16(23418), + 62: uint16(23424), + 63: uint16(23427), + 64: uint16(23462), + 65: uint16(23480), + 66: uint16(23491), + 67: uint16(23495), + 68: uint16(23497), + 69: uint16(23508), + 70: uint16(23504), + 71: uint16(23524), + 72: uint16(23526), + 73: uint16(23522), + 74: uint16(23518), + 75: uint16(23525), + 76: uint16(23531), + 77: uint16(23536), + 78: uint16(23542), + 79: uint16(23539), + 80: uint16(23557), + 81: uint16(23559), + 82: uint16(23560), + 83: uint16(23565), + 84: uint16(23571), + 85: uint16(23584), + 86: uint16(23586), + 87: uint16(23592), + 88: uint16(23608), + 89: uint16(23609), + 90: uint16(23617), + 91: uint16(23622), + 92: uint16(23630), + 93: uint16(23635), + }, + 53: { + 0: uint16(23632), + 1: uint16(23631), + 2: uint16(23409), + 3: uint16(23660), + 4: uint16(23662), + 5: uint16(20066), + 6: uint16(23670), + 7: uint16(23673), + 8: uint16(23692), + 9: uint16(23697), + 10: uint16(23700), + 11: uint16(22939), + 12: uint16(23723), + 13: uint16(23739), + 14: uint16(23734), + 15: uint16(23740), + 16: uint16(23735), + 17: uint16(23749), + 18: uint16(23742), + 19: uint16(23751), + 20: uint16(23769), + 21: uint16(23785), + 22: uint16(23805), + 23: uint16(23802), + 24: uint16(23789), + 25: uint16(23948), + 26: uint16(23786), + 27: uint16(23819), + 28: uint16(23829), + 29: uint16(23831), + 30: uint16(23900), + 31: uint16(23839), + 32: uint16(23835), + 33: uint16(23825), + 34: uint16(23828), + 35: uint16(23842), + 36: uint16(23834), + 37: uint16(23833), + 38: uint16(23832), + 39: uint16(23884), + 40: uint16(23890), + 41: uint16(23886), + 42: uint16(23883), + 43: uint16(23916), + 44: uint16(23923), + 45: uint16(23926), + 46: uint16(23943), + 47: uint16(23940), + 48: uint16(23938), + 49: uint16(23970), + 50: uint16(23965), + 51: uint16(23980), + 52: uint16(23982), + 53: uint16(23997), + 54: uint16(23952), + 55: uint16(23991), + 56: uint16(23996), + 57: uint16(24009), + 58: uint16(24013), + 59: uint16(24019), + 60: uint16(24018), + 61: uint16(24022), + 62: uint16(24027), + 63: uint16(24043), + 64: uint16(24050), + 65: uint16(24053), + 66: uint16(24075), + 67: uint16(24090), + 68: uint16(24089), + 69: uint16(24081), + 70: uint16(24091), + 71: uint16(24118), + 72: uint16(24119), + 73: uint16(24132), + 74: uint16(24131), + 75: uint16(24128), + 76: uint16(24142), + 77: uint16(24151), + 78: uint16(24148), + 79: uint16(24159), + 80: uint16(24162), + 81: uint16(24164), + 82: uint16(24135), + 83: uint16(24181), + 84: uint16(24182), + 85: uint16(24186), + 86: uint16(40636), + 87: uint16(24191), + 88: uint16(24224), + 89: uint16(24257), + 90: uint16(24258), + 91: uint16(24264), + 92: uint16(24272), + 93: uint16(24271), + }, + 54: { + 0: uint16(24278), + 1: uint16(24291), + 2: uint16(24285), + 3: uint16(24282), + 4: uint16(24283), + 5: uint16(24290), + 6: uint16(24289), + 7: uint16(24296), + 8: uint16(24297), + 9: uint16(24300), + 10: uint16(24305), + 11: uint16(24307), + 12: uint16(24304), + 13: uint16(24308), + 14: uint16(24312), + 15: uint16(24318), + 16: uint16(24323), + 17: uint16(24329), + 18: uint16(24413), + 19: uint16(24412), + 20: uint16(24331), + 21: uint16(24337), + 22: uint16(24342), + 23: uint16(24361), + 24: uint16(24365), + 25: uint16(24376), + 26: uint16(24385), + 27: uint16(24392), + 28: uint16(24396), + 29: uint16(24398), + 30: uint16(24367), + 31: uint16(24401), + 32: uint16(24406), + 33: uint16(24407), + 34: uint16(24409), + 35: uint16(24417), + 36: uint16(24429), + 37: uint16(24435), + 38: uint16(24439), + 39: uint16(24451), + 40: uint16(24450), + 41: uint16(24447), + 42: uint16(24458), + 43: uint16(24456), + 44: uint16(24465), + 45: uint16(24455), + 46: uint16(24478), + 47: uint16(24473), + 48: uint16(24472), + 49: uint16(24480), + 50: uint16(24488), + 51: uint16(24493), + 52: uint16(24508), + 53: uint16(24534), + 54: uint16(24571), + 55: uint16(24548), + 56: uint16(24568), + 57: uint16(24561), + 58: uint16(24541), + 59: uint16(24755), + 60: uint16(24575), + 61: uint16(24609), + 62: uint16(24672), + 63: uint16(24601), + 64: uint16(24592), + 65: uint16(24617), + 66: uint16(24590), + 67: uint16(24625), + 68: uint16(24603), + 69: uint16(24597), + 70: uint16(24619), + 71: uint16(24614), + 72: uint16(24591), + 73: uint16(24634), + 74: uint16(24666), + 75: uint16(24641), + 76: uint16(24682), + 77: uint16(24695), + 78: uint16(24671), + 79: uint16(24650), + 80: uint16(24646), + 81: uint16(24653), + 82: uint16(24675), + 83: uint16(24643), + 84: uint16(24676), + 85: uint16(24642), + 86: uint16(24684), + 87: uint16(24683), + 88: uint16(24665), + 89: uint16(24705), + 90: uint16(24717), + 91: uint16(24807), + 92: uint16(24707), + 93: uint16(24730), + }, + 55: { + 0: uint16(24708), + 1: uint16(24731), + 2: uint16(24726), + 3: uint16(24727), + 4: uint16(24722), + 5: uint16(24743), + 6: uint16(24715), + 7: uint16(24801), + 8: uint16(24760), + 9: uint16(24800), + 10: uint16(24787), + 11: uint16(24756), + 12: uint16(24560), + 13: uint16(24765), + 14: uint16(24774), + 15: uint16(24757), + 16: uint16(24792), + 17: uint16(24909), + 18: uint16(24853), + 19: uint16(24838), + 20: uint16(24822), + 21: uint16(24823), + 22: uint16(24832), + 23: uint16(24820), + 24: uint16(24826), + 25: uint16(24835), + 26: uint16(24865), + 27: uint16(24827), + 28: uint16(24817), + 29: uint16(24845), + 30: uint16(24846), + 31: uint16(24903), + 32: uint16(24894), + 33: uint16(24872), + 34: uint16(24871), + 35: uint16(24906), + 36: uint16(24895), + 37: uint16(24892), + 38: uint16(24876), + 39: uint16(24884), + 40: uint16(24893), + 41: uint16(24898), + 42: uint16(24900), + 43: uint16(24947), + 44: uint16(24951), + 45: uint16(24920), + 46: uint16(24921), + 47: uint16(24922), + 48: uint16(24939), + 49: uint16(24948), + 50: uint16(24943), + 51: uint16(24933), + 52: uint16(24945), + 53: uint16(24927), + 54: uint16(24925), + 55: uint16(24915), + 56: uint16(24949), + 57: uint16(24985), + 58: uint16(24982), + 59: uint16(24967), + 60: uint16(25004), + 61: uint16(24980), + 62: uint16(24986), + 63: uint16(24970), + 64: uint16(24977), + 65: uint16(25003), + 66: uint16(25006), + 67: uint16(25036), + 68: uint16(25034), + 69: uint16(25033), + 70: uint16(25079), + 71: uint16(25032), + 72: uint16(25027), + 73: uint16(25030), + 74: uint16(25018), + 75: uint16(25035), + 76: uint16(32633), + 77: uint16(25037), + 78: uint16(25062), + 79: uint16(25059), + 80: uint16(25078), + 81: uint16(25082), + 82: uint16(25076), + 83: uint16(25087), + 84: uint16(25085), + 85: uint16(25084), + 86: uint16(25086), + 87: uint16(25088), + 88: uint16(25096), + 89: uint16(25097), + 90: uint16(25101), + 91: uint16(25100), + 92: uint16(25108), + 93: uint16(25115), + }, + 56: { + 0: uint16(25118), + 1: uint16(25121), + 2: uint16(25130), + 3: uint16(25134), + 4: uint16(25136), + 5: uint16(25138), + 6: uint16(25139), + 7: uint16(25153), + 8: uint16(25166), + 9: uint16(25182), + 10: uint16(25187), + 11: uint16(25179), + 12: uint16(25184), + 13: uint16(25192), + 14: uint16(25212), + 15: uint16(25218), + 16: uint16(25225), + 17: uint16(25214), + 18: uint16(25234), + 19: uint16(25235), + 20: uint16(25238), + 21: uint16(25300), + 22: uint16(25219), + 23: uint16(25236), + 24: uint16(25303), + 25: uint16(25297), + 26: uint16(25275), + 27: uint16(25295), + 28: uint16(25343), + 29: uint16(25286), + 30: uint16(25812), + 31: uint16(25288), + 32: uint16(25308), + 33: uint16(25292), + 34: uint16(25290), + 35: uint16(25282), + 36: uint16(25287), + 37: uint16(25243), + 38: uint16(25289), + 39: uint16(25356), + 40: uint16(25326), + 41: uint16(25329), + 42: uint16(25383), + 43: uint16(25346), + 44: uint16(25352), + 45: uint16(25327), + 46: uint16(25333), + 47: uint16(25424), + 48: uint16(25406), + 49: uint16(25421), + 50: uint16(25628), + 51: uint16(25423), + 52: uint16(25494), + 53: uint16(25486), + 54: uint16(25472), + 55: uint16(25515), + 56: uint16(25462), + 57: uint16(25507), + 58: uint16(25487), + 59: uint16(25481), + 60: uint16(25503), + 61: uint16(25525), + 62: uint16(25451), + 63: uint16(25449), + 64: uint16(25534), + 65: uint16(25577), + 66: uint16(25536), + 67: uint16(25542), + 68: uint16(25571), + 69: uint16(25545), + 70: uint16(25554), + 71: uint16(25590), + 72: uint16(25540), + 73: uint16(25622), + 74: uint16(25652), + 75: uint16(25606), + 76: uint16(25619), + 77: uint16(25638), + 78: uint16(25654), + 79: uint16(25885), + 80: uint16(25623), + 81: uint16(25640), + 82: uint16(25615), + 83: uint16(25703), + 84: uint16(25711), + 85: uint16(25718), + 86: uint16(25678), + 87: uint16(25898), + 88: uint16(25749), + 89: uint16(25747), + 90: uint16(25765), + 91: uint16(25769), + 92: uint16(25736), + 93: uint16(25788), + }, + 57: { + 0: uint16(25818), + 1: uint16(25810), + 2: uint16(25797), + 3: uint16(25799), + 4: uint16(25787), + 5: uint16(25816), + 6: uint16(25794), + 7: uint16(25841), + 8: uint16(25831), + 9: uint16(33289), + 10: uint16(25824), + 11: uint16(25825), + 12: uint16(25260), + 13: uint16(25827), + 14: uint16(25839), + 15: uint16(25900), + 16: uint16(25846), + 17: uint16(25844), + 18: uint16(25842), + 19: uint16(25850), + 20: uint16(25856), + 21: uint16(25853), + 22: uint16(25880), + 23: uint16(25884), + 24: uint16(25861), + 25: uint16(25892), + 26: uint16(25891), + 27: uint16(25899), + 28: uint16(25908), + 29: uint16(25909), + 30: uint16(25911), + 31: uint16(25910), + 32: uint16(25912), + 33: uint16(30027), + 34: uint16(25928), + 35: uint16(25942), + 36: uint16(25941), + 37: uint16(25933), + 38: uint16(25944), + 39: uint16(25950), + 40: uint16(25949), + 41: uint16(25970), + 42: uint16(25976), + 43: uint16(25986), + 44: uint16(25987), + 45: uint16(35722), + 46: uint16(26011), + 47: uint16(26015), + 48: uint16(26027), + 49: uint16(26039), + 50: uint16(26051), + 51: uint16(26054), + 52: uint16(26049), + 53: uint16(26052), + 54: uint16(26060), + 55: uint16(26066), + 56: uint16(26075), + 57: uint16(26073), + 58: uint16(26080), + 59: uint16(26081), + 60: uint16(26097), + 61: uint16(26482), + 62: uint16(26122), + 63: uint16(26115), + 64: uint16(26107), + 65: uint16(26483), + 66: uint16(26165), + 67: uint16(26166), + 68: uint16(26164), + 69: uint16(26140), + 70: uint16(26191), + 71: uint16(26180), + 72: uint16(26185), + 73: uint16(26177), + 74: uint16(26206), + 75: uint16(26205), + 76: uint16(26212), + 77: uint16(26215), + 78: uint16(26216), + 79: uint16(26207), + 80: uint16(26210), + 81: uint16(26224), + 82: uint16(26243), + 83: uint16(26248), + 84: uint16(26254), + 85: uint16(26249), + 86: uint16(26244), + 87: uint16(26264), + 88: uint16(26269), + 89: uint16(26305), + 90: uint16(26297), + 91: uint16(26313), + 92: uint16(26302), + 93: uint16(26300), + }, + 58: { + 0: uint16(26308), + 1: uint16(26296), + 2: uint16(26326), + 3: uint16(26330), + 4: uint16(26336), + 5: uint16(26175), + 6: uint16(26342), + 7: uint16(26345), + 8: uint16(26352), + 9: uint16(26357), + 10: uint16(26359), + 11: uint16(26383), + 12: uint16(26390), + 13: uint16(26398), + 14: uint16(26406), + 15: uint16(26407), + 16: uint16(38712), + 17: uint16(26414), + 18: uint16(26431), + 19: uint16(26422), + 20: uint16(26433), + 21: uint16(26424), + 22: uint16(26423), + 23: uint16(26438), + 24: uint16(26462), + 25: uint16(26464), + 26: uint16(26457), + 27: uint16(26467), + 28: uint16(26468), + 29: uint16(26505), + 30: uint16(26480), + 31: uint16(26537), + 32: uint16(26492), + 33: uint16(26474), + 34: uint16(26508), + 35: uint16(26507), + 36: uint16(26534), + 37: uint16(26529), + 38: uint16(26501), + 39: uint16(26551), + 40: uint16(26607), + 41: uint16(26548), + 42: uint16(26604), + 43: uint16(26547), + 44: uint16(26601), + 45: uint16(26552), + 46: uint16(26596), + 47: uint16(26590), + 48: uint16(26589), + 49: uint16(26594), + 50: uint16(26606), + 51: uint16(26553), + 52: uint16(26574), + 53: uint16(26566), + 54: uint16(26599), + 55: uint16(27292), + 56: uint16(26654), + 57: uint16(26694), + 58: uint16(26665), + 59: uint16(26688), + 60: uint16(26701), + 61: uint16(26674), + 62: uint16(26702), + 63: uint16(26803), + 64: uint16(26667), + 65: uint16(26713), + 66: uint16(26723), + 67: uint16(26743), + 68: uint16(26751), + 69: uint16(26783), + 70: uint16(26767), + 71: uint16(26797), + 72: uint16(26772), + 73: uint16(26781), + 74: uint16(26779), + 75: uint16(26755), + 76: uint16(27310), + 77: uint16(26809), + 78: uint16(26740), + 79: uint16(26805), + 80: uint16(26784), + 81: uint16(26810), + 82: uint16(26895), + 83: uint16(26765), + 84: uint16(26750), + 85: uint16(26881), + 86: uint16(26826), + 87: uint16(26888), + 88: uint16(26840), + 89: uint16(26914), + 90: uint16(26918), + 91: uint16(26849), + 92: uint16(26892), + 93: uint16(26829), + }, + 59: { + 0: uint16(26836), + 1: uint16(26855), + 2: uint16(26837), + 3: uint16(26934), + 4: uint16(26898), + 5: uint16(26884), + 6: uint16(26839), + 7: uint16(26851), + 8: uint16(26917), + 9: uint16(26873), + 10: uint16(26848), + 11: uint16(26863), + 12: uint16(26920), + 13: uint16(26922), + 14: uint16(26906), + 15: uint16(26915), + 16: uint16(26913), + 17: uint16(26822), + 18: uint16(27001), + 19: uint16(26999), + 20: uint16(26972), + 21: uint16(27000), + 22: uint16(26987), + 23: uint16(26964), + 24: uint16(27006), + 25: uint16(26990), + 26: uint16(26937), + 27: uint16(26996), + 28: uint16(26941), + 29: uint16(26969), + 30: uint16(26928), + 31: uint16(26977), + 32: uint16(26974), + 33: uint16(26973), + 34: uint16(27009), + 35: uint16(26986), + 36: uint16(27058), + 37: uint16(27054), + 38: uint16(27088), + 39: uint16(27071), + 40: uint16(27073), + 41: uint16(27091), + 42: uint16(27070), + 43: uint16(27086), + 44: uint16(23528), + 45: uint16(27082), + 46: uint16(27101), + 47: uint16(27067), + 48: uint16(27075), + 49: uint16(27047), + 50: uint16(27182), + 51: uint16(27025), + 52: uint16(27040), + 53: uint16(27036), + 54: uint16(27029), + 55: uint16(27060), + 56: uint16(27102), + 57: uint16(27112), + 58: uint16(27138), + 59: uint16(27163), + 60: uint16(27135), + 61: uint16(27402), + 62: uint16(27129), + 63: uint16(27122), + 64: uint16(27111), + 65: uint16(27141), + 66: uint16(27057), + 67: uint16(27166), + 68: uint16(27117), + 69: uint16(27156), + 70: uint16(27115), + 71: uint16(27146), + 72: uint16(27154), + 73: uint16(27329), + 74: uint16(27171), + 75: uint16(27155), + 76: uint16(27204), + 77: uint16(27148), + 78: uint16(27250), + 79: uint16(27190), + 80: uint16(27256), + 81: uint16(27207), + 82: uint16(27234), + 83: uint16(27225), + 84: uint16(27238), + 85: uint16(27208), + 86: uint16(27192), + 87: uint16(27170), + 88: uint16(27280), + 89: uint16(27277), + 90: uint16(27296), + 91: uint16(27268), + 92: uint16(27298), + 93: uint16(27299), + }, + 60: { + 0: uint16(27287), + 1: uint16(34327), + 2: uint16(27323), + 3: uint16(27331), + 4: uint16(27330), + 5: uint16(27320), + 6: uint16(27315), + 7: uint16(27308), + 8: uint16(27358), + 9: uint16(27345), + 10: uint16(27359), + 11: uint16(27306), + 12: uint16(27354), + 13: uint16(27370), + 14: uint16(27387), + 15: uint16(27397), + 16: uint16(34326), + 17: uint16(27386), + 18: uint16(27410), + 19: uint16(27414), + 20: uint16(39729), + 21: uint16(27423), + 22: uint16(27448), + 23: uint16(27447), + 24: uint16(30428), + 25: uint16(27449), + 26: uint16(39150), + 27: uint16(27463), + 28: uint16(27459), + 29: uint16(27465), + 30: uint16(27472), + 31: uint16(27481), + 32: uint16(27476), + 33: uint16(27483), + 34: uint16(27487), + 35: uint16(27489), + 36: uint16(27512), + 37: uint16(27513), + 38: uint16(27519), + 39: uint16(27520), + 40: uint16(27524), + 41: uint16(27523), + 42: uint16(27533), + 43: uint16(27544), + 44: uint16(27541), + 45: uint16(27550), + 46: uint16(27556), + 47: uint16(27562), + 48: uint16(27563), + 49: uint16(27567), + 50: uint16(27570), + 51: uint16(27569), + 52: uint16(27571), + 53: uint16(27575), + 54: uint16(27580), + 55: uint16(27590), + 56: uint16(27595), + 57: uint16(27603), + 58: uint16(27615), + 59: uint16(27628), + 60: uint16(27627), + 61: uint16(27635), + 62: uint16(27631), + 63: uint16(40638), + 64: uint16(27656), + 65: uint16(27667), + 66: uint16(27668), + 67: uint16(27675), + 68: uint16(27684), + 69: uint16(27683), + 70: uint16(27742), + 71: uint16(27733), + 72: uint16(27746), + 73: uint16(27754), + 74: uint16(27778), + 75: uint16(27789), + 76: uint16(27802), + 77: uint16(27777), + 78: uint16(27803), + 79: uint16(27774), + 80: uint16(27752), + 81: uint16(27763), + 82: uint16(27794), + 83: uint16(27792), + 84: uint16(27844), + 85: uint16(27889), + 86: uint16(27859), + 87: uint16(27837), + 88: uint16(27863), + 89: uint16(27845), + 90: uint16(27869), + 91: uint16(27822), + 92: uint16(27825), + 93: uint16(27838), + }, + 61: { + 0: uint16(27834), + 1: uint16(27867), + 2: uint16(27887), + 3: uint16(27865), + 4: uint16(27882), + 5: uint16(27935), + 6: uint16(34893), + 7: uint16(27958), + 8: uint16(27947), + 9: uint16(27965), + 10: uint16(27960), + 11: uint16(27929), + 12: uint16(27957), + 13: uint16(27955), + 14: uint16(27922), + 15: uint16(27916), + 16: uint16(28003), + 17: uint16(28051), + 18: uint16(28004), + 19: uint16(27994), + 20: uint16(28025), + 21: uint16(27993), + 22: uint16(28046), + 23: uint16(28053), + 24: uint16(28644), + 25: uint16(28037), + 26: uint16(28153), + 27: uint16(28181), + 28: uint16(28170), + 29: uint16(28085), + 30: uint16(28103), + 31: uint16(28134), + 32: uint16(28088), + 33: uint16(28102), + 34: uint16(28140), + 35: uint16(28126), + 36: uint16(28108), + 37: uint16(28136), + 38: uint16(28114), + 39: uint16(28101), + 40: uint16(28154), + 41: uint16(28121), + 42: uint16(28132), + 43: uint16(28117), + 44: uint16(28138), + 45: uint16(28142), + 46: uint16(28205), + 47: uint16(28270), + 48: uint16(28206), + 49: uint16(28185), + 50: uint16(28274), + 51: uint16(28255), + 52: uint16(28222), + 53: uint16(28195), + 54: uint16(28267), + 55: uint16(28203), + 56: uint16(28278), + 57: uint16(28237), + 58: uint16(28191), + 59: uint16(28227), + 60: uint16(28218), + 61: uint16(28238), + 62: uint16(28196), + 63: uint16(28415), + 64: uint16(28189), + 65: uint16(28216), + 66: uint16(28290), + 67: uint16(28330), + 68: uint16(28312), + 69: uint16(28361), + 70: uint16(28343), + 71: uint16(28371), + 72: uint16(28349), + 73: uint16(28335), + 74: uint16(28356), + 75: uint16(28338), + 76: uint16(28372), + 77: uint16(28373), + 78: uint16(28303), + 79: uint16(28325), + 80: uint16(28354), + 81: uint16(28319), + 82: uint16(28481), + 83: uint16(28433), + 84: uint16(28748), + 85: uint16(28396), + 86: uint16(28408), + 87: uint16(28414), + 88: uint16(28479), + 89: uint16(28402), + 90: uint16(28465), + 91: uint16(28399), + 92: uint16(28466), + 93: uint16(28364), + }, + 62: { + 0: uint16(28478), + 1: uint16(28435), + 2: uint16(28407), + 3: uint16(28550), + 4: uint16(28538), + 5: uint16(28536), + 6: uint16(28545), + 7: uint16(28544), + 8: uint16(28527), + 9: uint16(28507), + 10: uint16(28659), + 11: uint16(28525), + 12: uint16(28546), + 13: uint16(28540), + 14: uint16(28504), + 15: uint16(28558), + 16: uint16(28561), + 17: uint16(28610), + 18: uint16(28518), + 19: uint16(28595), + 20: uint16(28579), + 21: uint16(28577), + 22: uint16(28580), + 23: uint16(28601), + 24: uint16(28614), + 25: uint16(28586), + 26: uint16(28639), + 27: uint16(28629), + 28: uint16(28652), + 29: uint16(28628), + 30: uint16(28632), + 31: uint16(28657), + 32: uint16(28654), + 33: uint16(28635), + 34: uint16(28681), + 35: uint16(28683), + 36: uint16(28666), + 37: uint16(28689), + 38: uint16(28673), + 39: uint16(28687), + 40: uint16(28670), + 41: uint16(28699), + 42: uint16(28698), + 43: uint16(28532), + 44: uint16(28701), + 45: uint16(28696), + 46: uint16(28703), + 47: uint16(28720), + 48: uint16(28734), + 49: uint16(28722), + 50: uint16(28753), + 51: uint16(28771), + 52: uint16(28825), + 53: uint16(28818), + 54: uint16(28847), + 55: uint16(28913), + 56: uint16(28844), + 57: uint16(28856), + 58: uint16(28851), + 59: uint16(28846), + 60: uint16(28895), + 61: uint16(28875), + 62: uint16(28893), + 63: uint16(28889), + 64: uint16(28937), + 65: uint16(28925), + 66: uint16(28956), + 67: uint16(28953), + 68: uint16(29029), + 69: uint16(29013), + 70: uint16(29064), + 71: uint16(29030), + 72: uint16(29026), + 73: uint16(29004), + 74: uint16(29014), + 75: uint16(29036), + 76: uint16(29071), + 77: uint16(29179), + 78: uint16(29060), + 79: uint16(29077), + 80: uint16(29096), + 81: uint16(29100), + 82: uint16(29143), + 83: uint16(29113), + 84: uint16(29118), + 85: uint16(29138), + 86: uint16(29129), + 87: uint16(29140), + 88: uint16(29134), + 89: uint16(29152), + 90: uint16(29164), + 91: uint16(29159), + 92: uint16(29173), + 93: uint16(29180), + }, + 63: { + 0: uint16(29177), + 1: uint16(29183), + 2: uint16(29197), + 3: uint16(29200), + 4: uint16(29211), + 5: uint16(29224), + 6: uint16(29229), + 7: uint16(29228), + 8: uint16(29232), + 9: uint16(29234), + 10: uint16(29243), + 11: uint16(29244), + 12: uint16(29247), + 13: uint16(29248), + 14: uint16(29254), + 15: uint16(29259), + 16: uint16(29272), + 17: uint16(29300), + 18: uint16(29310), + 19: uint16(29314), + 20: uint16(29313), + 21: uint16(29319), + 22: uint16(29330), + 23: uint16(29334), + 24: uint16(29346), + 25: uint16(29351), + 26: uint16(29369), + 27: uint16(29362), + 28: uint16(29379), + 29: uint16(29382), + 30: uint16(29380), + 31: uint16(29390), + 32: uint16(29394), + 33: uint16(29410), + 34: uint16(29408), + 35: uint16(29409), + 36: uint16(29433), + 37: uint16(29431), + 38: uint16(20495), + 39: uint16(29463), + 40: uint16(29450), + 41: uint16(29468), + 42: uint16(29462), + 43: uint16(29469), + 44: uint16(29492), + 45: uint16(29487), + 46: uint16(29481), + 47: uint16(29477), + 48: uint16(29502), + 49: uint16(29518), + 50: uint16(29519), + 51: uint16(40664), + 52: uint16(29527), + 53: uint16(29546), + 54: uint16(29544), + 55: uint16(29552), + 56: uint16(29560), + 57: uint16(29557), + 58: uint16(29563), + 59: uint16(29562), + 60: uint16(29640), + 61: uint16(29619), + 62: uint16(29646), + 63: uint16(29627), + 64: uint16(29632), + 65: uint16(29669), + 66: uint16(29678), + 67: uint16(29662), + 68: uint16(29858), + 69: uint16(29701), + 70: uint16(29807), + 71: uint16(29733), + 72: uint16(29688), + 73: uint16(29746), + 74: uint16(29754), + 75: uint16(29781), + 76: uint16(29759), + 77: uint16(29791), + 78: uint16(29785), + 79: uint16(29761), + 80: uint16(29788), + 81: uint16(29801), + 82: uint16(29808), + 83: uint16(29795), + 84: uint16(29802), + 85: uint16(29814), + 86: uint16(29822), + 87: uint16(29835), + 88: uint16(29854), + 89: uint16(29863), + 90: uint16(29898), + 91: uint16(29903), + 92: uint16(29908), + 93: uint16(29681), + }, + 64: { + 0: uint16(29920), + 1: uint16(29923), + 2: uint16(29927), + 3: uint16(29929), + 4: uint16(29934), + 5: uint16(29938), + 6: uint16(29936), + 7: uint16(29937), + 8: uint16(29944), + 9: uint16(29943), + 10: uint16(29956), + 11: uint16(29955), + 12: uint16(29957), + 13: uint16(29964), + 14: uint16(29966), + 15: uint16(29965), + 16: uint16(29973), + 17: uint16(29971), + 18: uint16(29982), + 19: uint16(29990), + 20: uint16(29996), + 21: uint16(30012), + 22: uint16(30020), + 23: uint16(30029), + 24: uint16(30026), + 25: uint16(30025), + 26: uint16(30043), + 27: uint16(30022), + 28: uint16(30042), + 29: uint16(30057), + 30: uint16(30052), + 31: uint16(30055), + 32: uint16(30059), + 33: uint16(30061), + 34: uint16(30072), + 35: uint16(30070), + 36: uint16(30086), + 37: uint16(30087), + 38: uint16(30068), + 39: uint16(30090), + 40: uint16(30089), + 41: uint16(30082), + 42: uint16(30100), + 43: uint16(30106), + 44: uint16(30109), + 45: uint16(30117), + 46: uint16(30115), + 47: uint16(30146), + 48: uint16(30131), + 49: uint16(30147), + 50: uint16(30133), + 51: uint16(30141), + 52: uint16(30136), + 53: uint16(30140), + 54: uint16(30129), + 55: uint16(30157), + 56: uint16(30154), + 57: uint16(30162), + 58: uint16(30169), + 59: uint16(30179), + 60: uint16(30174), + 61: uint16(30206), + 62: uint16(30207), + 63: uint16(30204), + 64: uint16(30209), + 65: uint16(30192), + 66: uint16(30202), + 67: uint16(30194), + 68: uint16(30195), + 69: uint16(30219), + 70: uint16(30221), + 71: uint16(30217), + 72: uint16(30239), + 73: uint16(30247), + 74: uint16(30240), + 75: uint16(30241), + 76: uint16(30242), + 77: uint16(30244), + 78: uint16(30260), + 79: uint16(30256), + 80: uint16(30267), + 81: uint16(30279), + 82: uint16(30280), + 83: uint16(30278), + 84: uint16(30300), + 85: uint16(30296), + 86: uint16(30305), + 87: uint16(30306), + 88: uint16(30312), + 89: uint16(30313), + 90: uint16(30314), + 91: uint16(30311), + 92: uint16(30316), + 93: uint16(30320), + }, + 65: { + 0: uint16(30322), + 1: uint16(30326), + 2: uint16(30328), + 3: uint16(30332), + 4: uint16(30336), + 5: uint16(30339), + 6: uint16(30344), + 7: uint16(30347), + 8: uint16(30350), + 9: uint16(30358), + 10: uint16(30355), + 11: uint16(30361), + 12: uint16(30362), + 13: uint16(30384), + 14: uint16(30388), + 15: uint16(30392), + 16: uint16(30393), + 17: uint16(30394), + 18: uint16(30402), + 19: uint16(30413), + 20: uint16(30422), + 21: uint16(30418), + 22: uint16(30430), + 23: uint16(30433), + 24: uint16(30437), + 25: uint16(30439), + 26: uint16(30442), + 27: uint16(34351), + 28: uint16(30459), + 29: uint16(30472), + 30: uint16(30471), + 31: uint16(30468), + 32: uint16(30505), + 33: uint16(30500), + 34: uint16(30494), + 35: uint16(30501), + 36: uint16(30502), + 37: uint16(30491), + 38: uint16(30519), + 39: uint16(30520), + 40: uint16(30535), + 41: uint16(30554), + 42: uint16(30568), + 43: uint16(30571), + 44: uint16(30555), + 45: uint16(30565), + 46: uint16(30591), + 47: uint16(30590), + 48: uint16(30585), + 49: uint16(30606), + 50: uint16(30603), + 51: uint16(30609), + 52: uint16(30624), + 53: uint16(30622), + 54: uint16(30640), + 55: uint16(30646), + 56: uint16(30649), + 57: uint16(30655), + 58: uint16(30652), + 59: uint16(30653), + 60: uint16(30651), + 61: uint16(30663), + 62: uint16(30669), + 63: uint16(30679), + 64: uint16(30682), + 65: uint16(30684), + 66: uint16(30691), + 67: uint16(30702), + 68: uint16(30716), + 69: uint16(30732), + 70: uint16(30738), + 71: uint16(31014), + 72: uint16(30752), + 73: uint16(31018), + 74: uint16(30789), + 75: uint16(30862), + 76: uint16(30836), + 77: uint16(30854), + 78: uint16(30844), + 79: uint16(30874), + 80: uint16(30860), + 81: uint16(30883), + 82: uint16(30901), + 83: uint16(30890), + 84: uint16(30895), + 85: uint16(30929), + 86: uint16(30918), + 87: uint16(30923), + 88: uint16(30932), + 89: uint16(30910), + 90: uint16(30908), + 91: uint16(30917), + 92: uint16(30922), + 93: uint16(30956), + }, + 66: { + 0: uint16(30951), + 1: uint16(30938), + 2: uint16(30973), + 3: uint16(30964), + 4: uint16(30983), + 5: uint16(30994), + 6: uint16(30993), + 7: uint16(31001), + 8: uint16(31020), + 9: uint16(31019), + 10: uint16(31040), + 11: uint16(31072), + 12: uint16(31063), + 13: uint16(31071), + 14: uint16(31066), + 15: uint16(31061), + 16: uint16(31059), + 17: uint16(31098), + 18: uint16(31103), + 19: uint16(31114), + 20: uint16(31133), + 21: uint16(31143), + 22: uint16(40779), + 23: uint16(31146), + 24: uint16(31150), + 25: uint16(31155), + 26: uint16(31161), + 27: uint16(31162), + 28: uint16(31177), + 29: uint16(31189), + 30: uint16(31207), + 31: uint16(31212), + 32: uint16(31201), + 33: uint16(31203), + 34: uint16(31240), + 35: uint16(31245), + 36: uint16(31256), + 37: uint16(31257), + 38: uint16(31264), + 39: uint16(31263), + 40: uint16(31104), + 41: uint16(31281), + 42: uint16(31291), + 43: uint16(31294), + 44: uint16(31287), + 45: uint16(31299), + 46: uint16(31319), + 47: uint16(31305), + 48: uint16(31329), + 49: uint16(31330), + 50: uint16(31337), + 51: uint16(40861), + 52: uint16(31344), + 53: uint16(31353), + 54: uint16(31357), + 55: uint16(31368), + 56: uint16(31383), + 57: uint16(31381), + 58: uint16(31384), + 59: uint16(31382), + 60: uint16(31401), + 61: uint16(31432), + 62: uint16(31408), + 63: uint16(31414), + 64: uint16(31429), + 65: uint16(31428), + 66: uint16(31423), + 67: uint16(36995), + 68: uint16(31431), + 69: uint16(31434), + 70: uint16(31437), + 71: uint16(31439), + 72: uint16(31445), + 73: uint16(31443), + 74: uint16(31449), + 75: uint16(31450), + 76: uint16(31453), + 77: uint16(31457), + 78: uint16(31458), + 79: uint16(31462), + 80: uint16(31469), + 81: uint16(31472), + 82: uint16(31490), + 83: uint16(31503), + 84: uint16(31498), + 85: uint16(31494), + 86: uint16(31539), + 87: uint16(31512), + 88: uint16(31513), + 89: uint16(31518), + 90: uint16(31541), + 91: uint16(31528), + 92: uint16(31542), + 93: uint16(31568), + }, + 67: { + 0: uint16(31610), + 1: uint16(31492), + 2: uint16(31565), + 3: uint16(31499), + 4: uint16(31564), + 5: uint16(31557), + 6: uint16(31605), + 7: uint16(31589), + 8: uint16(31604), + 9: uint16(31591), + 10: uint16(31600), + 11: uint16(31601), + 12: uint16(31596), + 13: uint16(31598), + 14: uint16(31645), + 15: uint16(31640), + 16: uint16(31647), + 17: uint16(31629), + 18: uint16(31644), + 19: uint16(31642), + 20: uint16(31627), + 21: uint16(31634), + 22: uint16(31631), + 23: uint16(31581), + 24: uint16(31641), + 25: uint16(31691), + 26: uint16(31681), + 27: uint16(31692), + 28: uint16(31695), + 29: uint16(31668), + 30: uint16(31686), + 31: uint16(31709), + 32: uint16(31721), + 33: uint16(31761), + 34: uint16(31764), + 35: uint16(31718), + 36: uint16(31717), + 37: uint16(31840), + 38: uint16(31744), + 39: uint16(31751), + 40: uint16(31763), + 41: uint16(31731), + 42: uint16(31735), + 43: uint16(31767), + 44: uint16(31757), + 45: uint16(31734), + 46: uint16(31779), + 47: uint16(31783), + 48: uint16(31786), + 49: uint16(31775), + 50: uint16(31799), + 51: uint16(31787), + 52: uint16(31805), + 53: uint16(31820), + 54: uint16(31811), + 55: uint16(31828), + 56: uint16(31823), + 57: uint16(31808), + 58: uint16(31824), + 59: uint16(31832), + 60: uint16(31839), + 61: uint16(31844), + 62: uint16(31830), + 63: uint16(31845), + 64: uint16(31852), + 65: uint16(31861), + 66: uint16(31875), + 67: uint16(31888), + 68: uint16(31908), + 69: uint16(31917), + 70: uint16(31906), + 71: uint16(31915), + 72: uint16(31905), + 73: uint16(31912), + 74: uint16(31923), + 75: uint16(31922), + 76: uint16(31921), + 77: uint16(31918), + 78: uint16(31929), + 79: uint16(31933), + 80: uint16(31936), + 81: uint16(31941), + 82: uint16(31938), + 83: uint16(31960), + 84: uint16(31954), + 85: uint16(31964), + 86: uint16(31970), + 87: uint16(39739), + 88: uint16(31983), + 89: uint16(31986), + 90: uint16(31988), + 91: uint16(31990), + 92: uint16(31994), + 93: uint16(32006), + }, + 68: { + 0: uint16(32002), + 1: uint16(32028), + 2: uint16(32021), + 3: uint16(32010), + 4: uint16(32069), + 5: uint16(32075), + 6: uint16(32046), + 7: uint16(32050), + 8: uint16(32063), + 9: uint16(32053), + 10: uint16(32070), + 11: uint16(32115), + 12: uint16(32086), + 13: uint16(32078), + 14: uint16(32114), + 15: uint16(32104), + 16: uint16(32110), + 17: uint16(32079), + 18: uint16(32099), + 19: uint16(32147), + 20: uint16(32137), + 21: uint16(32091), + 22: uint16(32143), + 23: uint16(32125), + 24: uint16(32155), + 25: uint16(32186), + 26: uint16(32174), + 27: uint16(32163), + 28: uint16(32181), + 29: uint16(32199), + 30: uint16(32189), + 31: uint16(32171), + 32: uint16(32317), + 33: uint16(32162), + 34: uint16(32175), + 35: uint16(32220), + 36: uint16(32184), + 37: uint16(32159), + 38: uint16(32176), + 39: uint16(32216), + 40: uint16(32221), + 41: uint16(32228), + 42: uint16(32222), + 43: uint16(32251), + 44: uint16(32242), + 45: uint16(32225), + 46: uint16(32261), + 47: uint16(32266), + 48: uint16(32291), + 49: uint16(32289), + 50: uint16(32274), + 51: uint16(32305), + 52: uint16(32287), + 53: uint16(32265), + 54: uint16(32267), + 55: uint16(32290), + 56: uint16(32326), + 57: uint16(32358), + 58: uint16(32315), + 59: uint16(32309), + 60: uint16(32313), + 61: uint16(32323), + 62: uint16(32311), + 63: uint16(32306), + 64: uint16(32314), + 65: uint16(32359), + 66: uint16(32349), + 67: uint16(32342), + 68: uint16(32350), + 69: uint16(32345), + 70: uint16(32346), + 71: uint16(32377), + 72: uint16(32362), + 73: uint16(32361), + 74: uint16(32380), + 75: uint16(32379), + 76: uint16(32387), + 77: uint16(32213), + 78: uint16(32381), + 79: uint16(36782), + 80: uint16(32383), + 81: uint16(32392), + 82: uint16(32393), + 83: uint16(32396), + 84: uint16(32402), + 85: uint16(32400), + 86: uint16(32403), + 87: uint16(32404), + 88: uint16(32406), + 89: uint16(32398), + 90: uint16(32411), + 91: uint16(32412), + 92: uint16(32568), + 93: uint16(32570), + }, + 69: { + 0: uint16(32581), + 1: uint16(32588), + 2: uint16(32589), + 3: uint16(32590), + 4: uint16(32592), + 5: uint16(32593), + 6: uint16(32597), + 7: uint16(32596), + 8: uint16(32600), + 9: uint16(32607), + 10: uint16(32608), + 11: uint16(32616), + 12: uint16(32617), + 13: uint16(32615), + 14: uint16(32632), + 15: uint16(32642), + 16: uint16(32646), + 17: uint16(32643), + 18: uint16(32648), + 19: uint16(32647), + 20: uint16(32652), + 21: uint16(32660), + 22: uint16(32670), + 23: uint16(32669), + 24: uint16(32666), + 25: uint16(32675), + 26: uint16(32687), + 27: uint16(32690), + 28: uint16(32697), + 29: uint16(32686), + 30: uint16(32694), + 31: uint16(32696), + 32: uint16(35697), + 33: uint16(32709), + 34: uint16(32710), + 35: uint16(32714), + 36: uint16(32725), + 37: uint16(32724), + 38: uint16(32737), + 39: uint16(32742), + 40: uint16(32745), + 41: uint16(32755), + 42: uint16(32761), + 43: uint16(39132), + 44: uint16(32774), + 45: uint16(32772), + 46: uint16(32779), + 47: uint16(32786), + 48: uint16(32792), + 49: uint16(32793), + 50: uint16(32796), + 51: uint16(32801), + 52: uint16(32808), + 53: uint16(32831), + 54: uint16(32827), + 55: uint16(32842), + 56: uint16(32838), + 57: uint16(32850), + 58: uint16(32856), + 59: uint16(32858), + 60: uint16(32863), + 61: uint16(32866), + 62: uint16(32872), + 63: uint16(32883), + 64: uint16(32882), + 65: uint16(32880), + 66: uint16(32886), + 67: uint16(32889), + 68: uint16(32893), + 69: uint16(32895), + 70: uint16(32900), + 71: uint16(32902), + 72: uint16(32901), + 73: uint16(32923), + 74: uint16(32915), + 75: uint16(32922), + 76: uint16(32941), + 77: uint16(20880), + 78: uint16(32940), + 79: uint16(32987), + 80: uint16(32997), + 81: uint16(32985), + 82: uint16(32989), + 83: uint16(32964), + 84: uint16(32986), + 85: uint16(32982), + 86: uint16(33033), + 87: uint16(33007), + 88: uint16(33009), + 89: uint16(33051), + 90: uint16(33065), + 91: uint16(33059), + 92: uint16(33071), + 93: uint16(33099), + }, + 70: { + 0: uint16(38539), + 1: uint16(33094), + 2: uint16(33086), + 3: uint16(33107), + 4: uint16(33105), + 5: uint16(33020), + 6: uint16(33137), + 7: uint16(33134), + 8: uint16(33125), + 9: uint16(33126), + 10: uint16(33140), + 11: uint16(33155), + 12: uint16(33160), + 13: uint16(33162), + 14: uint16(33152), + 15: uint16(33154), + 16: uint16(33184), + 17: uint16(33173), + 18: uint16(33188), + 19: uint16(33187), + 20: uint16(33119), + 21: uint16(33171), + 22: uint16(33193), + 23: uint16(33200), + 24: uint16(33205), + 25: uint16(33214), + 26: uint16(33208), + 27: uint16(33213), + 28: uint16(33216), + 29: uint16(33218), + 30: uint16(33210), + 31: uint16(33225), + 32: uint16(33229), + 33: uint16(33233), + 34: uint16(33241), + 35: uint16(33240), + 36: uint16(33224), + 37: uint16(33242), + 38: uint16(33247), + 39: uint16(33248), + 40: uint16(33255), + 41: uint16(33274), + 42: uint16(33275), + 43: uint16(33278), + 44: uint16(33281), + 45: uint16(33282), + 46: uint16(33285), + 47: uint16(33287), + 48: uint16(33290), + 49: uint16(33293), + 50: uint16(33296), + 51: uint16(33302), + 52: uint16(33321), + 53: uint16(33323), + 54: uint16(33336), + 55: uint16(33331), + 56: uint16(33344), + 57: uint16(33369), + 58: uint16(33368), + 59: uint16(33373), + 60: uint16(33370), + 61: uint16(33375), + 62: uint16(33380), + 63: uint16(33378), + 64: uint16(33384), + 65: uint16(33386), + 66: uint16(33387), + 67: uint16(33326), + 68: uint16(33393), + 69: uint16(33399), + 70: uint16(33400), + 71: uint16(33406), + 72: uint16(33421), + 73: uint16(33426), + 74: uint16(33451), + 75: uint16(33439), + 76: uint16(33467), + 77: uint16(33452), + 78: uint16(33505), + 79: uint16(33507), + 80: uint16(33503), + 81: uint16(33490), + 82: uint16(33524), + 83: uint16(33523), + 84: uint16(33530), + 85: uint16(33683), + 86: uint16(33539), + 87: uint16(33531), + 88: uint16(33529), + 89: uint16(33502), + 90: uint16(33542), + 91: uint16(33500), + 92: uint16(33545), + 93: uint16(33497), + }, + 71: { + 0: uint16(33589), + 1: uint16(33588), + 2: uint16(33558), + 3: uint16(33586), + 4: uint16(33585), + 5: uint16(33600), + 6: uint16(33593), + 7: uint16(33616), + 8: uint16(33605), + 9: uint16(33583), + 10: uint16(33579), + 11: uint16(33559), + 12: uint16(33560), + 13: uint16(33669), + 14: uint16(33690), + 15: uint16(33706), + 16: uint16(33695), + 17: uint16(33698), + 18: uint16(33686), + 19: uint16(33571), + 20: uint16(33678), + 21: uint16(33671), + 22: uint16(33674), + 23: uint16(33660), + 24: uint16(33717), + 25: uint16(33651), + 26: uint16(33653), + 27: uint16(33696), + 28: uint16(33673), + 29: uint16(33704), + 30: uint16(33780), + 31: uint16(33811), + 32: uint16(33771), + 33: uint16(33742), + 34: uint16(33789), + 35: uint16(33795), + 36: uint16(33752), + 37: uint16(33803), + 38: uint16(33729), + 39: uint16(33783), + 40: uint16(33799), + 41: uint16(33760), + 42: uint16(33778), + 43: uint16(33805), + 44: uint16(33826), + 45: uint16(33824), + 46: uint16(33725), + 47: uint16(33848), + 48: uint16(34054), + 49: uint16(33787), + 50: uint16(33901), + 51: uint16(33834), + 52: uint16(33852), + 53: uint16(34138), + 54: uint16(33924), + 55: uint16(33911), + 56: uint16(33899), + 57: uint16(33965), + 58: uint16(33902), + 59: uint16(33922), + 60: uint16(33897), + 61: uint16(33862), + 62: uint16(33836), + 63: uint16(33903), + 64: uint16(33913), + 65: uint16(33845), + 66: uint16(33994), + 67: uint16(33890), + 68: uint16(33977), + 69: uint16(33983), + 70: uint16(33951), + 71: uint16(34009), + 72: uint16(33997), + 73: uint16(33979), + 74: uint16(34010), + 75: uint16(34000), + 76: uint16(33985), + 77: uint16(33990), + 78: uint16(34006), + 79: uint16(33953), + 80: uint16(34081), + 81: uint16(34047), + 82: uint16(34036), + 83: uint16(34071), + 84: uint16(34072), + 85: uint16(34092), + 86: uint16(34079), + 87: uint16(34069), + 88: uint16(34068), + 89: uint16(34044), + 90: uint16(34112), + 91: uint16(34147), + 92: uint16(34136), + 93: uint16(34120), + }, + 72: { + 0: uint16(34113), + 1: uint16(34306), + 2: uint16(34123), + 3: uint16(34133), + 4: uint16(34176), + 5: uint16(34212), + 6: uint16(34184), + 7: uint16(34193), + 8: uint16(34186), + 9: uint16(34216), + 10: uint16(34157), + 11: uint16(34196), + 12: uint16(34203), + 13: uint16(34282), + 14: uint16(34183), + 15: uint16(34204), + 16: uint16(34167), + 17: uint16(34174), + 18: uint16(34192), + 19: uint16(34249), + 20: uint16(34234), + 21: uint16(34255), + 22: uint16(34233), + 23: uint16(34256), + 24: uint16(34261), + 25: uint16(34269), + 26: uint16(34277), + 27: uint16(34268), + 28: uint16(34297), + 29: uint16(34314), + 30: uint16(34323), + 31: uint16(34315), + 32: uint16(34302), + 33: uint16(34298), + 34: uint16(34310), + 35: uint16(34338), + 36: uint16(34330), + 37: uint16(34352), + 38: uint16(34367), + 39: uint16(34381), + 40: uint16(20053), + 41: uint16(34388), + 42: uint16(34399), + 43: uint16(34407), + 44: uint16(34417), + 45: uint16(34451), + 46: uint16(34467), + 47: uint16(34473), + 48: uint16(34474), + 49: uint16(34443), + 50: uint16(34444), + 51: uint16(34486), + 52: uint16(34479), + 53: uint16(34500), + 54: uint16(34502), + 55: uint16(34480), + 56: uint16(34505), + 57: uint16(34851), + 58: uint16(34475), + 59: uint16(34516), + 60: uint16(34526), + 61: uint16(34537), + 62: uint16(34540), + 63: uint16(34527), + 64: uint16(34523), + 65: uint16(34543), + 66: uint16(34578), + 67: uint16(34566), + 68: uint16(34568), + 69: uint16(34560), + 70: uint16(34563), + 71: uint16(34555), + 72: uint16(34577), + 73: uint16(34569), + 74: uint16(34573), + 75: uint16(34553), + 76: uint16(34570), + 77: uint16(34612), + 78: uint16(34623), + 79: uint16(34615), + 80: uint16(34619), + 81: uint16(34597), + 82: uint16(34601), + 83: uint16(34586), + 84: uint16(34656), + 85: uint16(34655), + 86: uint16(34680), + 87: uint16(34636), + 88: uint16(34638), + 89: uint16(34676), + 90: uint16(34647), + 91: uint16(34664), + 92: uint16(34670), + 93: uint16(34649), + }, + 73: { + 0: uint16(34643), + 1: uint16(34659), + 2: uint16(34666), + 3: uint16(34821), + 4: uint16(34722), + 5: uint16(34719), + 6: uint16(34690), + 7: uint16(34735), + 8: uint16(34763), + 9: uint16(34749), + 10: uint16(34752), + 11: uint16(34768), + 12: uint16(38614), + 13: uint16(34731), + 14: uint16(34756), + 15: uint16(34739), + 16: uint16(34759), + 17: uint16(34758), + 18: uint16(34747), + 19: uint16(34799), + 20: uint16(34802), + 21: uint16(34784), + 22: uint16(34831), + 23: uint16(34829), + 24: uint16(34814), + 25: uint16(34806), + 26: uint16(34807), + 27: uint16(34830), + 28: uint16(34770), + 29: uint16(34833), + 30: uint16(34838), + 31: uint16(34837), + 32: uint16(34850), + 33: uint16(34849), + 34: uint16(34865), + 35: uint16(34870), + 36: uint16(34873), + 37: uint16(34855), + 38: uint16(34875), + 39: uint16(34884), + 40: uint16(34882), + 41: uint16(34898), + 42: uint16(34905), + 43: uint16(34910), + 44: uint16(34914), + 45: uint16(34923), + 46: uint16(34945), + 47: uint16(34942), + 48: uint16(34974), + 49: uint16(34933), + 50: uint16(34941), + 51: uint16(34997), + 52: uint16(34930), + 53: uint16(34946), + 54: uint16(34967), + 55: uint16(34962), + 56: uint16(34990), + 57: uint16(34969), + 58: uint16(34978), + 59: uint16(34957), + 60: uint16(34980), + 61: uint16(34992), + 62: uint16(35007), + 63: uint16(34993), + 64: uint16(35011), + 65: uint16(35012), + 66: uint16(35028), + 67: uint16(35032), + 68: uint16(35033), + 69: uint16(35037), + 70: uint16(35065), + 71: uint16(35074), + 72: uint16(35068), + 73: uint16(35060), + 74: uint16(35048), + 75: uint16(35058), + 76: uint16(35076), + 77: uint16(35084), + 78: uint16(35082), + 79: uint16(35091), + 80: uint16(35139), + 81: uint16(35102), + 82: uint16(35109), + 83: uint16(35114), + 84: uint16(35115), + 85: uint16(35137), + 86: uint16(35140), + 87: uint16(35131), + 88: uint16(35126), + 89: uint16(35128), + 90: uint16(35148), + 91: uint16(35101), + 92: uint16(35168), + 93: uint16(35166), + }, + 74: { + 0: uint16(35174), + 1: uint16(35172), + 2: uint16(35181), + 3: uint16(35178), + 4: uint16(35183), + 5: uint16(35188), + 6: uint16(35191), + 7: uint16(35198), + 8: uint16(35203), + 9: uint16(35208), + 10: uint16(35210), + 11: uint16(35219), + 12: uint16(35224), + 13: uint16(35233), + 14: uint16(35241), + 15: uint16(35238), + 16: uint16(35244), + 17: uint16(35247), + 18: uint16(35250), + 19: uint16(35258), + 20: uint16(35261), + 21: uint16(35263), + 22: uint16(35264), + 23: uint16(35290), + 24: uint16(35292), + 25: uint16(35293), + 26: uint16(35303), + 27: uint16(35316), + 28: uint16(35320), + 29: uint16(35331), + 30: uint16(35350), + 31: uint16(35344), + 32: uint16(35340), + 33: uint16(35355), + 34: uint16(35357), + 35: uint16(35365), + 36: uint16(35382), + 37: uint16(35393), + 38: uint16(35419), + 39: uint16(35410), + 40: uint16(35398), + 41: uint16(35400), + 42: uint16(35452), + 43: uint16(35437), + 44: uint16(35436), + 45: uint16(35426), + 46: uint16(35461), + 47: uint16(35458), + 48: uint16(35460), + 49: uint16(35496), + 50: uint16(35489), + 51: uint16(35473), + 52: uint16(35493), + 53: uint16(35494), + 54: uint16(35482), + 55: uint16(35491), + 56: uint16(35524), + 57: uint16(35533), + 58: uint16(35522), + 59: uint16(35546), + 60: uint16(35563), + 61: uint16(35571), + 62: uint16(35559), + 63: uint16(35556), + 64: uint16(35569), + 65: uint16(35604), + 66: uint16(35552), + 67: uint16(35554), + 68: uint16(35575), + 69: uint16(35550), + 70: uint16(35547), + 71: uint16(35596), + 72: uint16(35591), + 73: uint16(35610), + 74: uint16(35553), + 75: uint16(35606), + 76: uint16(35600), + 77: uint16(35607), + 78: uint16(35616), + 79: uint16(35635), + 80: uint16(38827), + 81: uint16(35622), + 82: uint16(35627), + 83: uint16(35646), + 84: uint16(35624), + 85: uint16(35649), + 86: uint16(35660), + 87: uint16(35663), + 88: uint16(35662), + 89: uint16(35657), + 90: uint16(35670), + 91: uint16(35675), + 92: uint16(35674), + 93: uint16(35691), + }, + 75: { + 0: uint16(35679), + 1: uint16(35692), + 2: uint16(35695), + 3: uint16(35700), + 4: uint16(35709), + 5: uint16(35712), + 6: uint16(35724), + 7: uint16(35726), + 8: uint16(35730), + 9: uint16(35731), + 10: uint16(35734), + 11: uint16(35737), + 12: uint16(35738), + 13: uint16(35898), + 14: uint16(35905), + 15: uint16(35903), + 16: uint16(35912), + 17: uint16(35916), + 18: uint16(35918), + 19: uint16(35920), + 20: uint16(35925), + 21: uint16(35938), + 22: uint16(35948), + 23: uint16(35960), + 24: uint16(35962), + 25: uint16(35970), + 26: uint16(35977), + 27: uint16(35973), + 28: uint16(35978), + 29: uint16(35981), + 30: uint16(35982), + 31: uint16(35988), + 32: uint16(35964), + 33: uint16(35992), + 34: uint16(25117), + 35: uint16(36013), + 36: uint16(36010), + 37: uint16(36029), + 38: uint16(36018), + 39: uint16(36019), + 40: uint16(36014), + 41: uint16(36022), + 42: uint16(36040), + 43: uint16(36033), + 44: uint16(36068), + 45: uint16(36067), + 46: uint16(36058), + 47: uint16(36093), + 48: uint16(36090), + 49: uint16(36091), + 50: uint16(36100), + 51: uint16(36101), + 52: uint16(36106), + 53: uint16(36103), + 54: uint16(36111), + 55: uint16(36109), + 56: uint16(36112), + 57: uint16(40782), + 58: uint16(36115), + 59: uint16(36045), + 60: uint16(36116), + 61: uint16(36118), + 62: uint16(36199), + 63: uint16(36205), + 64: uint16(36209), + 65: uint16(36211), + 66: uint16(36225), + 67: uint16(36249), + 68: uint16(36290), + 69: uint16(36286), + 70: uint16(36282), + 71: uint16(36303), + 72: uint16(36314), + 73: uint16(36310), + 74: uint16(36300), + 75: uint16(36315), + 76: uint16(36299), + 77: uint16(36330), + 78: uint16(36331), + 79: uint16(36319), + 80: uint16(36323), + 81: uint16(36348), + 82: uint16(36360), + 83: uint16(36361), + 84: uint16(36351), + 85: uint16(36381), + 86: uint16(36382), + 87: uint16(36368), + 88: uint16(36383), + 89: uint16(36418), + 90: uint16(36405), + 91: uint16(36400), + 92: uint16(36404), + 93: uint16(36426), + }, + 76: { + 0: uint16(36423), + 1: uint16(36425), + 2: uint16(36428), + 3: uint16(36432), + 4: uint16(36424), + 5: uint16(36441), + 6: uint16(36452), + 7: uint16(36448), + 8: uint16(36394), + 9: uint16(36451), + 10: uint16(36437), + 11: uint16(36470), + 12: uint16(36466), + 13: uint16(36476), + 14: uint16(36481), + 15: uint16(36487), + 16: uint16(36485), + 17: uint16(36484), + 18: uint16(36491), + 19: uint16(36490), + 20: uint16(36499), + 21: uint16(36497), + 22: uint16(36500), + 23: uint16(36505), + 24: uint16(36522), + 25: uint16(36513), + 26: uint16(36524), + 27: uint16(36528), + 28: uint16(36550), + 29: uint16(36529), + 30: uint16(36542), + 31: uint16(36549), + 32: uint16(36552), + 33: uint16(36555), + 34: uint16(36571), + 35: uint16(36579), + 36: uint16(36604), + 37: uint16(36603), + 38: uint16(36587), + 39: uint16(36606), + 40: uint16(36618), + 41: uint16(36613), + 42: uint16(36629), + 43: uint16(36626), + 44: uint16(36633), + 45: uint16(36627), + 46: uint16(36636), + 47: uint16(36639), + 48: uint16(36635), + 49: uint16(36620), + 50: uint16(36646), + 51: uint16(36659), + 52: uint16(36667), + 53: uint16(36665), + 54: uint16(36677), + 55: uint16(36674), + 56: uint16(36670), + 57: uint16(36684), + 58: uint16(36681), + 59: uint16(36678), + 60: uint16(36686), + 61: uint16(36695), + 62: uint16(36700), + 63: uint16(36706), + 64: uint16(36707), + 65: uint16(36708), + 66: uint16(36764), + 67: uint16(36767), + 68: uint16(36771), + 69: uint16(36781), + 70: uint16(36783), + 71: uint16(36791), + 72: uint16(36826), + 73: uint16(36837), + 74: uint16(36834), + 75: uint16(36842), + 76: uint16(36847), + 77: uint16(36999), + 78: uint16(36852), + 79: uint16(36869), + 80: uint16(36857), + 81: uint16(36858), + 82: uint16(36881), + 83: uint16(36885), + 84: uint16(36897), + 85: uint16(36877), + 86: uint16(36894), + 87: uint16(36886), + 88: uint16(36875), + 89: uint16(36903), + 90: uint16(36918), + 91: uint16(36917), + 92: uint16(36921), + 93: uint16(36856), + }, + 77: { + 0: uint16(36943), + 1: uint16(36944), + 2: uint16(36945), + 3: uint16(36946), + 4: uint16(36878), + 5: uint16(36937), + 6: uint16(36926), + 7: uint16(36950), + 8: uint16(36952), + 9: uint16(36958), + 10: uint16(36968), + 11: uint16(36975), + 12: uint16(36982), + 13: uint16(38568), + 14: uint16(36978), + 15: uint16(36994), + 16: uint16(36989), + 17: uint16(36993), + 18: uint16(36992), + 19: uint16(37002), + 20: uint16(37001), + 21: uint16(37007), + 22: uint16(37032), + 23: uint16(37039), + 24: uint16(37041), + 25: uint16(37045), + 26: uint16(37090), + 27: uint16(37092), + 28: uint16(25160), + 29: uint16(37083), + 30: uint16(37122), + 31: uint16(37138), + 32: uint16(37145), + 33: uint16(37170), + 34: uint16(37168), + 35: uint16(37194), + 36: uint16(37206), + 37: uint16(37208), + 38: uint16(37219), + 39: uint16(37221), + 40: uint16(37225), + 41: uint16(37235), + 42: uint16(37234), + 43: uint16(37259), + 44: uint16(37257), + 45: uint16(37250), + 46: uint16(37282), + 47: uint16(37291), + 48: uint16(37295), + 49: uint16(37290), + 50: uint16(37301), + 51: uint16(37300), + 52: uint16(37306), + 53: uint16(37312), + 54: uint16(37313), + 55: uint16(37321), + 56: uint16(37323), + 57: uint16(37328), + 58: uint16(37334), + 59: uint16(37343), + 60: uint16(37345), + 61: uint16(37339), + 62: uint16(37372), + 63: uint16(37365), + 64: uint16(37366), + 65: uint16(37406), + 66: uint16(37375), + 67: uint16(37396), + 68: uint16(37420), + 69: uint16(37397), + 70: uint16(37393), + 71: uint16(37470), + 72: uint16(37463), + 73: uint16(37445), + 74: uint16(37449), + 75: uint16(37476), + 76: uint16(37448), + 77: uint16(37525), + 78: uint16(37439), + 79: uint16(37451), + 80: uint16(37456), + 81: uint16(37532), + 82: uint16(37526), + 83: uint16(37523), + 84: uint16(37531), + 85: uint16(37466), + 86: uint16(37583), + 87: uint16(37561), + 88: uint16(37559), + 89: uint16(37609), + 90: uint16(37647), + 91: uint16(37626), + 92: uint16(37700), + 93: uint16(37678), + }, + 78: { + 0: uint16(37657), + 1: uint16(37666), + 2: uint16(37658), + 3: uint16(37667), + 4: uint16(37690), + 5: uint16(37685), + 6: uint16(37691), + 7: uint16(37724), + 8: uint16(37728), + 9: uint16(37756), + 10: uint16(37742), + 11: uint16(37718), + 12: uint16(37808), + 13: uint16(37804), + 14: uint16(37805), + 15: uint16(37780), + 16: uint16(37817), + 17: uint16(37846), + 18: uint16(37847), + 19: uint16(37864), + 20: uint16(37861), + 21: uint16(37848), + 22: uint16(37827), + 23: uint16(37853), + 24: uint16(37840), + 25: uint16(37832), + 26: uint16(37860), + 27: uint16(37914), + 28: uint16(37908), + 29: uint16(37907), + 30: uint16(37891), + 31: uint16(37895), + 32: uint16(37904), + 33: uint16(37942), + 34: uint16(37931), + 35: uint16(37941), + 36: uint16(37921), + 37: uint16(37946), + 38: uint16(37953), + 39: uint16(37970), + 40: uint16(37956), + 41: uint16(37979), + 42: uint16(37984), + 43: uint16(37986), + 44: uint16(37982), + 45: uint16(37994), + 46: uint16(37417), + 47: uint16(38000), + 48: uint16(38005), + 49: uint16(38007), + 50: uint16(38013), + 51: uint16(37978), + 52: uint16(38012), + 53: uint16(38014), + 54: uint16(38017), + 55: uint16(38015), + 56: uint16(38274), + 57: uint16(38279), + 58: uint16(38282), + 59: uint16(38292), + 60: uint16(38294), + 61: uint16(38296), + 62: uint16(38297), + 63: uint16(38304), + 64: uint16(38312), + 65: uint16(38311), + 66: uint16(38317), + 67: uint16(38332), + 68: uint16(38331), + 69: uint16(38329), + 70: uint16(38334), + 71: uint16(38346), + 72: uint16(28662), + 73: uint16(38339), + 74: uint16(38349), + 75: uint16(38348), + 76: uint16(38357), + 77: uint16(38356), + 78: uint16(38358), + 79: uint16(38364), + 80: uint16(38369), + 81: uint16(38373), + 82: uint16(38370), + 83: uint16(38433), + 84: uint16(38440), + 85: uint16(38446), + 86: uint16(38447), + 87: uint16(38466), + 88: uint16(38476), + 89: uint16(38479), + 90: uint16(38475), + 91: uint16(38519), + 92: uint16(38492), + 93: uint16(38494), + }, + 79: { + 0: uint16(38493), + 1: uint16(38495), + 2: uint16(38502), + 3: uint16(38514), + 4: uint16(38508), + 5: uint16(38541), + 6: uint16(38552), + 7: uint16(38549), + 8: uint16(38551), + 9: uint16(38570), + 10: uint16(38567), + 11: uint16(38577), + 12: uint16(38578), + 13: uint16(38576), + 14: uint16(38580), + 15: uint16(38582), + 16: uint16(38584), + 17: uint16(38585), + 18: uint16(38606), + 19: uint16(38603), + 20: uint16(38601), + 21: uint16(38605), + 22: uint16(35149), + 23: uint16(38620), + 24: uint16(38669), + 25: uint16(38613), + 26: uint16(38649), + 27: uint16(38660), + 28: uint16(38662), + 29: uint16(38664), + 30: uint16(38675), + 31: uint16(38670), + 32: uint16(38673), + 33: uint16(38671), + 34: uint16(38678), + 35: uint16(38681), + 36: uint16(38692), + 37: uint16(38698), + 38: uint16(38704), + 39: uint16(38713), + 40: uint16(38717), + 41: uint16(38718), + 42: uint16(38724), + 43: uint16(38726), + 44: uint16(38728), + 45: uint16(38722), + 46: uint16(38729), + 47: uint16(38748), + 48: uint16(38752), + 49: uint16(38756), + 50: uint16(38758), + 51: uint16(38760), + 52: uint16(21202), + 53: uint16(38763), + 54: uint16(38769), + 55: uint16(38777), + 56: uint16(38789), + 57: uint16(38780), + 58: uint16(38785), + 59: uint16(38778), + 60: uint16(38790), + 61: uint16(38795), + 62: uint16(38799), + 63: uint16(38800), + 64: uint16(38812), + 65: uint16(38824), + 66: uint16(38822), + 67: uint16(38819), + 68: uint16(38835), + 69: uint16(38836), + 70: uint16(38851), + 71: uint16(38854), + 72: uint16(38856), + 73: uint16(38859), + 74: uint16(38876), + 75: uint16(38893), + 76: uint16(40783), + 77: uint16(38898), + 78: uint16(31455), + 79: uint16(38902), + 80: uint16(38901), + 81: uint16(38927), + 82: uint16(38924), + 83: uint16(38968), + 84: uint16(38948), + 85: uint16(38945), + 86: uint16(38967), + 87: uint16(38973), + 88: uint16(38982), + 89: uint16(38991), + 90: uint16(38987), + 91: uint16(39019), + 92: uint16(39023), + 93: uint16(39024), + }, + 80: { + 0: uint16(39025), + 1: uint16(39028), + 2: uint16(39027), + 3: uint16(39082), + 4: uint16(39087), + 5: uint16(39089), + 6: uint16(39094), + 7: uint16(39108), + 8: uint16(39107), + 9: uint16(39110), + 10: uint16(39145), + 11: uint16(39147), + 12: uint16(39171), + 13: uint16(39177), + 14: uint16(39186), + 15: uint16(39188), + 16: uint16(39192), + 17: uint16(39201), + 18: uint16(39197), + 19: uint16(39198), + 20: uint16(39204), + 21: uint16(39200), + 22: uint16(39212), + 23: uint16(39214), + 24: uint16(39229), + 25: uint16(39230), + 26: uint16(39234), + 27: uint16(39241), + 28: uint16(39237), + 29: uint16(39248), + 30: uint16(39243), + 31: uint16(39249), + 32: uint16(39250), + 33: uint16(39244), + 34: uint16(39253), + 35: uint16(39319), + 36: uint16(39320), + 37: uint16(39333), + 38: uint16(39341), + 39: uint16(39342), + 40: uint16(39356), + 41: uint16(39391), + 42: uint16(39387), + 43: uint16(39389), + 44: uint16(39384), + 45: uint16(39377), + 46: uint16(39405), + 47: uint16(39406), + 48: uint16(39409), + 49: uint16(39410), + 50: uint16(39419), + 51: uint16(39416), + 52: uint16(39425), + 53: uint16(39439), + 54: uint16(39429), + 55: uint16(39394), + 56: uint16(39449), + 57: uint16(39467), + 58: uint16(39479), + 59: uint16(39493), + 60: uint16(39490), + 61: uint16(39488), + 62: uint16(39491), + 63: uint16(39486), + 64: uint16(39509), + 65: uint16(39501), + 66: uint16(39515), + 67: uint16(39511), + 68: uint16(39519), + 69: uint16(39522), + 70: uint16(39525), + 71: uint16(39524), + 72: uint16(39529), + 73: uint16(39531), + 74: uint16(39530), + 75: uint16(39597), + 76: uint16(39600), + 77: uint16(39612), + 78: uint16(39616), + 79: uint16(39631), + 80: uint16(39633), + 81: uint16(39635), + 82: uint16(39636), + 83: uint16(39646), + 84: uint16(39647), + 85: uint16(39650), + 86: uint16(39651), + 87: uint16(39654), + 88: uint16(39663), + 89: uint16(39659), + 90: uint16(39662), + 91: uint16(39668), + 92: uint16(39665), + 93: uint16(39671), + }, + 81: { + 0: uint16(39675), + 1: uint16(39686), + 2: uint16(39704), + 3: uint16(39706), + 4: uint16(39711), + 5: uint16(39714), + 6: uint16(39715), + 7: uint16(39717), + 8: uint16(39719), + 9: uint16(39720), + 10: uint16(39721), + 11: uint16(39722), + 12: uint16(39726), + 13: uint16(39727), + 14: uint16(39730), + 15: uint16(39748), + 16: uint16(39747), + 17: uint16(39759), + 18: uint16(39757), + 19: uint16(39758), + 20: uint16(39761), + 21: uint16(39768), + 22: uint16(39796), + 23: uint16(39827), + 24: uint16(39811), + 25: uint16(39825), + 26: uint16(39830), + 27: uint16(39831), + 28: uint16(39839), + 29: uint16(39840), + 30: uint16(39848), + 31: uint16(39860), + 32: uint16(39872), + 33: uint16(39882), + 34: uint16(39865), + 35: uint16(39878), + 36: uint16(39887), + 37: uint16(39889), + 38: uint16(39890), + 39: uint16(39907), + 40: uint16(39906), + 41: uint16(39908), + 42: uint16(39892), + 43: uint16(39905), + 44: uint16(39994), + 45: uint16(39922), + 46: uint16(39921), + 47: uint16(39920), + 48: uint16(39957), + 49: uint16(39956), + 50: uint16(39945), + 51: uint16(39955), + 52: uint16(39948), + 53: uint16(39942), + 54: uint16(39944), + 55: uint16(39954), + 56: uint16(39946), + 57: uint16(39940), + 58: uint16(39982), + 59: uint16(39963), + 60: uint16(39973), + 61: uint16(39972), + 62: uint16(39969), + 63: uint16(39984), + 64: uint16(40007), + 65: uint16(39986), + 66: uint16(40006), + 67: uint16(39998), + 68: uint16(40026), + 69: uint16(40032), + 70: uint16(40039), + 71: uint16(40054), + 72: uint16(40056), + 73: uint16(40167), + 74: uint16(40172), + 75: uint16(40176), + 76: uint16(40201), + 77: uint16(40200), + 78: uint16(40171), + 79: uint16(40195), + 80: uint16(40198), + 81: uint16(40234), + 82: uint16(40230), + 83: uint16(40367), + 84: uint16(40227), + 85: uint16(40223), + 86: uint16(40260), + 87: uint16(40213), + 88: uint16(40210), + 89: uint16(40257), + 90: uint16(40255), + 91: uint16(40254), + 92: uint16(40262), + 93: uint16(40264), + }, + 82: { + 0: uint16(40285), + 1: uint16(40286), + 2: uint16(40292), + 3: uint16(40273), + 4: uint16(40272), + 5: uint16(40281), + 6: uint16(40306), + 7: uint16(40329), + 8: uint16(40327), + 9: uint16(40363), + 10: uint16(40303), + 11: uint16(40314), + 12: uint16(40346), + 13: uint16(40356), + 14: uint16(40361), + 15: uint16(40370), + 16: uint16(40388), + 17: uint16(40385), + 18: uint16(40379), + 19: uint16(40376), + 20: uint16(40378), + 21: uint16(40390), + 22: uint16(40399), + 23: uint16(40386), + 24: uint16(40409), + 25: uint16(40403), + 26: uint16(40440), + 27: uint16(40422), + 28: uint16(40429), + 29: uint16(40431), + 30: uint16(40445), + 31: uint16(40474), + 32: uint16(40475), + 33: uint16(40478), + 34: uint16(40565), + 35: uint16(40569), + 36: uint16(40573), + 37: uint16(40577), + 38: uint16(40584), + 39: uint16(40587), + 40: uint16(40588), + 41: uint16(40594), + 42: uint16(40597), + 43: uint16(40593), + 44: uint16(40605), + 45: uint16(40613), + 46: uint16(40617), + 47: uint16(40632), + 48: uint16(40618), + 49: uint16(40621), + 50: uint16(38753), + 51: uint16(40652), + 52: uint16(40654), + 53: uint16(40655), + 54: uint16(40656), + 55: uint16(40660), + 56: uint16(40668), + 57: uint16(40670), + 58: uint16(40669), + 59: uint16(40672), + 60: uint16(40677), + 61: uint16(40680), + 62: uint16(40687), + 63: uint16(40692), + 64: uint16(40694), + 65: uint16(40695), + 66: uint16(40697), + 67: uint16(40699), + 68: uint16(40700), + 69: uint16(40701), + 70: uint16(40711), + 71: uint16(40712), + 72: uint16(30391), + 73: uint16(40725), + 74: uint16(40737), + 75: uint16(40748), + 76: uint16(40766), + 77: uint16(40778), + 78: uint16(40786), + 79: uint16(40788), + 80: uint16(40803), + 81: uint16(40799), + 82: uint16(40800), + 83: uint16(40801), + 84: uint16(40806), + 85: uint16(40807), + 86: uint16(40812), + 87: uint16(40810), + 88: uint16(40823), + 89: uint16(40818), + 90: uint16(40822), + 91: uint16(40853), + 92: uint16(40860), + 93: uint16(40864), + }, + 83: { + 0: uint16(22575), + 1: uint16(27079), + 2: uint16(36953), + 3: uint16(29796), + 4: uint16(20956), + 5: uint16(29081), + }, +} + +var _gb18030 = [126][190]uint16{ + 0: { + 0: uint16(19970), + 1: uint16(19972), + 2: uint16(19973), + 3: uint16(19974), + 4: uint16(19983), + 5: uint16(19986), + 6: uint16(19991), + 7: uint16(19999), + 8: uint16(20000), + 9: uint16(20001), + 10: uint16(20003), + 11: uint16(20006), + 12: uint16(20009), + 13: uint16(20014), + 14: uint16(20015), + 15: uint16(20017), + 16: uint16(20019), + 17: uint16(20021), + 18: uint16(20023), + 19: uint16(20028), + 20: uint16(20032), + 21: uint16(20033), + 22: uint16(20034), + 23: uint16(20036), + 24: uint16(20038), + 25: uint16(20042), + 26: uint16(20049), + 27: uint16(20053), + 28: uint16(20055), + 29: uint16(20058), + 30: uint16(20059), + 31: uint16(20066), + 32: uint16(20067), + 33: uint16(20068), + 34: uint16(20069), + 35: uint16(20071), + 36: uint16(20072), + 37: uint16(20074), + 38: uint16(20075), + 39: uint16(20076), + 40: uint16(20077), + 41: uint16(20078), + 42: uint16(20079), + 43: uint16(20082), + 44: uint16(20084), + 45: uint16(20085), + 46: uint16(20086), + 47: uint16(20087), + 48: uint16(20088), + 49: uint16(20089), + 50: uint16(20090), + 51: uint16(20091), + 52: uint16(20092), + 53: uint16(20093), + 54: uint16(20095), + 55: uint16(20096), + 56: uint16(20097), + 57: uint16(20098), + 58: uint16(20099), + 59: uint16(20100), + 60: uint16(20101), + 61: uint16(20103), + 62: uint16(20106), + 63: uint16(20112), + 64: uint16(20118), + 65: uint16(20119), + 66: uint16(20121), + 67: uint16(20124), + 68: uint16(20125), + 69: uint16(20126), + 70: uint16(20131), + 71: uint16(20138), + 72: uint16(20143), + 73: uint16(20144), + 74: uint16(20145), + 75: uint16(20148), + 76: uint16(20150), + 77: uint16(20151), + 78: uint16(20152), + 79: uint16(20153), + 80: uint16(20156), + 81: uint16(20157), + 82: uint16(20158), + 83: uint16(20168), + 84: uint16(20172), + 85: uint16(20175), + 86: uint16(20176), + 87: uint16(20178), + 88: uint16(20186), + 89: uint16(20187), + 90: uint16(20188), + 91: uint16(20192), + 92: uint16(20194), + 93: uint16(20198), + 94: uint16(20199), + 95: uint16(20201), + 96: uint16(20205), + 97: uint16(20206), + 98: uint16(20207), + 99: uint16(20209), + 100: uint16(20212), + 101: uint16(20216), + 102: uint16(20217), + 103: uint16(20218), + 104: uint16(20220), + 105: uint16(20222), + 106: uint16(20224), + 107: uint16(20226), + 108: uint16(20227), + 109: uint16(20228), + 110: uint16(20229), + 111: uint16(20230), + 112: uint16(20231), + 113: uint16(20232), + 114: uint16(20235), + 115: uint16(20236), + 116: uint16(20242), + 117: uint16(20243), + 118: uint16(20244), + 119: uint16(20245), + 120: uint16(20246), + 121: uint16(20252), + 122: uint16(20253), + 123: uint16(20257), + 124: uint16(20259), + 125: uint16(20264), + 126: uint16(20265), + 127: uint16(20268), + 128: uint16(20269), + 129: uint16(20270), + 130: uint16(20273), + 131: uint16(20275), + 132: uint16(20277), + 133: uint16(20279), + 134: uint16(20281), + 135: uint16(20283), + 136: uint16(20286), + 137: uint16(20287), + 138: uint16(20288), + 139: uint16(20289), + 140: uint16(20290), + 141: uint16(20292), + 142: uint16(20293), + 143: uint16(20295), + 144: uint16(20296), + 145: uint16(20297), + 146: uint16(20298), + 147: uint16(20299), + 148: uint16(20300), + 149: uint16(20306), + 150: uint16(20308), + 151: uint16(20310), + 152: uint16(20321), + 153: uint16(20322), + 154: uint16(20326), + 155: uint16(20328), + 156: uint16(20330), + 157: uint16(20331), + 158: uint16(20333), + 159: uint16(20334), + 160: uint16(20337), + 161: uint16(20338), + 162: uint16(20341), + 163: uint16(20343), + 164: uint16(20344), + 165: uint16(20345), + 166: uint16(20346), + 167: uint16(20349), + 168: uint16(20352), + 169: uint16(20353), + 170: uint16(20354), + 171: uint16(20357), + 172: uint16(20358), + 173: uint16(20359), + 174: uint16(20362), + 175: uint16(20364), + 176: uint16(20366), + 177: uint16(20368), + 178: uint16(20370), + 179: uint16(20371), + 180: uint16(20373), + 181: uint16(20374), + 182: uint16(20376), + 183: uint16(20377), + 184: uint16(20378), + 185: uint16(20380), + 186: uint16(20382), + 187: uint16(20383), + 188: uint16(20385), + 189: uint16(20386), + }, + 1: { + 0: uint16(20388), + 1: uint16(20395), + 2: uint16(20397), + 3: uint16(20400), + 4: uint16(20401), + 5: uint16(20402), + 6: uint16(20403), + 7: uint16(20404), + 8: uint16(20406), + 9: uint16(20407), + 10: uint16(20408), + 11: uint16(20409), + 12: uint16(20410), + 13: uint16(20411), + 14: uint16(20412), + 15: uint16(20413), + 16: uint16(20414), + 17: uint16(20416), + 18: uint16(20417), + 19: uint16(20418), + 20: uint16(20422), + 21: uint16(20423), + 22: uint16(20424), + 23: uint16(20425), + 24: uint16(20427), + 25: uint16(20428), + 26: uint16(20429), + 27: uint16(20434), + 28: uint16(20435), + 29: uint16(20436), + 30: uint16(20437), + 31: uint16(20438), + 32: uint16(20441), + 33: uint16(20443), + 34: uint16(20448), + 35: uint16(20450), + 36: uint16(20452), + 37: uint16(20453), + 38: uint16(20455), + 39: uint16(20459), + 40: uint16(20460), + 41: uint16(20464), + 42: uint16(20466), + 43: uint16(20468), + 44: uint16(20469), + 45: uint16(20470), + 46: uint16(20471), + 47: uint16(20473), + 48: uint16(20475), + 49: uint16(20476), + 50: uint16(20477), + 51: uint16(20479), + 52: uint16(20480), + 53: uint16(20481), + 54: uint16(20482), + 55: uint16(20483), + 56: uint16(20484), + 57: uint16(20485), + 58: uint16(20486), + 59: uint16(20487), + 60: uint16(20488), + 61: uint16(20489), + 62: uint16(20490), + 63: uint16(20491), + 64: uint16(20494), + 65: uint16(20496), + 66: uint16(20497), + 67: uint16(20499), + 68: uint16(20501), + 69: uint16(20502), + 70: uint16(20503), + 71: uint16(20507), + 72: uint16(20509), + 73: uint16(20510), + 74: uint16(20512), + 75: uint16(20514), + 76: uint16(20515), + 77: uint16(20516), + 78: uint16(20519), + 79: uint16(20523), + 80: uint16(20527), + 81: uint16(20528), + 82: uint16(20529), + 83: uint16(20530), + 84: uint16(20531), + 85: uint16(20532), + 86: uint16(20533), + 87: uint16(20534), + 88: uint16(20535), + 89: uint16(20536), + 90: uint16(20537), + 91: uint16(20539), + 92: uint16(20541), + 93: uint16(20543), + 94: uint16(20544), + 95: uint16(20545), + 96: uint16(20546), + 97: uint16(20548), + 98: uint16(20549), + 99: uint16(20550), + 100: uint16(20553), + 101: uint16(20554), + 102: uint16(20555), + 103: uint16(20557), + 104: uint16(20560), + 105: uint16(20561), + 106: uint16(20562), + 107: uint16(20563), + 108: uint16(20564), + 109: uint16(20566), + 110: uint16(20567), + 111: uint16(20568), + 112: uint16(20569), + 113: uint16(20571), + 114: uint16(20573), + 115: uint16(20574), + 116: uint16(20575), + 117: uint16(20576), + 118: uint16(20577), + 119: uint16(20578), + 120: uint16(20579), + 121: uint16(20580), + 122: uint16(20582), + 123: uint16(20583), + 124: uint16(20584), + 125: uint16(20585), + 126: uint16(20586), + 127: uint16(20587), + 128: uint16(20589), + 129: uint16(20590), + 130: uint16(20591), + 131: uint16(20592), + 132: uint16(20593), + 133: uint16(20594), + 134: uint16(20595), + 135: uint16(20596), + 136: uint16(20597), + 137: uint16(20600), + 138: uint16(20601), + 139: uint16(20602), + 140: uint16(20604), + 141: uint16(20605), + 142: uint16(20609), + 143: uint16(20610), + 144: uint16(20611), + 145: uint16(20612), + 146: uint16(20614), + 147: uint16(20615), + 148: uint16(20617), + 149: uint16(20618), + 150: uint16(20619), + 151: uint16(20620), + 152: uint16(20622), + 153: uint16(20623), + 154: uint16(20624), + 155: uint16(20625), + 156: uint16(20626), + 157: uint16(20627), + 158: uint16(20628), + 159: uint16(20629), + 160: uint16(20630), + 161: uint16(20631), + 162: uint16(20632), + 163: uint16(20633), + 164: uint16(20634), + 165: uint16(20635), + 166: uint16(20636), + 167: uint16(20637), + 168: uint16(20638), + 169: uint16(20639), + 170: uint16(20640), + 171: uint16(20641), + 172: uint16(20642), + 173: uint16(20644), + 174: uint16(20646), + 175: uint16(20650), + 176: uint16(20651), + 177: uint16(20653), + 178: uint16(20654), + 179: uint16(20655), + 180: uint16(20656), + 181: uint16(20657), + 182: uint16(20659), + 183: uint16(20660), + 184: uint16(20661), + 185: uint16(20662), + 186: uint16(20663), + 187: uint16(20664), + 188: uint16(20665), + 189: uint16(20668), + }, + 2: { + 0: uint16(20669), + 1: uint16(20670), + 2: uint16(20671), + 3: uint16(20672), + 4: uint16(20673), + 5: uint16(20674), + 6: uint16(20675), + 7: uint16(20676), + 8: uint16(20677), + 9: uint16(20678), + 10: uint16(20679), + 11: uint16(20680), + 12: uint16(20681), + 13: uint16(20682), + 14: uint16(20683), + 15: uint16(20684), + 16: uint16(20685), + 17: uint16(20686), + 18: uint16(20688), + 19: uint16(20689), + 20: uint16(20690), + 21: uint16(20691), + 22: uint16(20692), + 23: uint16(20693), + 24: uint16(20695), + 25: uint16(20696), + 26: uint16(20697), + 27: uint16(20699), + 28: uint16(20700), + 29: uint16(20701), + 30: uint16(20702), + 31: uint16(20703), + 32: uint16(20704), + 33: uint16(20705), + 34: uint16(20706), + 35: uint16(20707), + 36: uint16(20708), + 37: uint16(20709), + 38: uint16(20712), + 39: uint16(20713), + 40: uint16(20714), + 41: uint16(20715), + 42: uint16(20719), + 43: uint16(20720), + 44: uint16(20721), + 45: uint16(20722), + 46: uint16(20724), + 47: uint16(20726), + 48: uint16(20727), + 49: uint16(20728), + 50: uint16(20729), + 51: uint16(20730), + 52: uint16(20732), + 53: uint16(20733), + 54: uint16(20734), + 55: uint16(20735), + 56: uint16(20736), + 57: uint16(20737), + 58: uint16(20738), + 59: uint16(20739), + 60: uint16(20740), + 61: uint16(20741), + 62: uint16(20744), + 63: uint16(20745), + 64: uint16(20746), + 65: uint16(20748), + 66: uint16(20749), + 67: uint16(20750), + 68: uint16(20751), + 69: uint16(20752), + 70: uint16(20753), + 71: uint16(20755), + 72: uint16(20756), + 73: uint16(20757), + 74: uint16(20758), + 75: uint16(20759), + 76: uint16(20760), + 77: uint16(20761), + 78: uint16(20762), + 79: uint16(20763), + 80: uint16(20764), + 81: uint16(20765), + 82: uint16(20766), + 83: uint16(20767), + 84: uint16(20768), + 85: uint16(20770), + 86: uint16(20771), + 87: uint16(20772), + 88: uint16(20773), + 89: uint16(20774), + 90: uint16(20775), + 91: uint16(20776), + 92: uint16(20777), + 93: uint16(20778), + 94: uint16(20779), + 95: uint16(20780), + 96: uint16(20781), + 97: uint16(20782), + 98: uint16(20783), + 99: uint16(20784), + 100: uint16(20785), + 101: uint16(20786), + 102: uint16(20787), + 103: uint16(20788), + 104: uint16(20789), + 105: uint16(20790), + 106: uint16(20791), + 107: uint16(20792), + 108: uint16(20793), + 109: uint16(20794), + 110: uint16(20795), + 111: uint16(20796), + 112: uint16(20797), + 113: uint16(20798), + 114: uint16(20802), + 115: uint16(20807), + 116: uint16(20810), + 117: uint16(20812), + 118: uint16(20814), + 119: uint16(20815), + 120: uint16(20816), + 121: uint16(20818), + 122: uint16(20819), + 123: uint16(20823), + 124: uint16(20824), + 125: uint16(20825), + 126: uint16(20827), + 127: uint16(20829), + 128: uint16(20830), + 129: uint16(20831), + 130: uint16(20832), + 131: uint16(20833), + 132: uint16(20835), + 133: uint16(20836), + 134: uint16(20838), + 135: uint16(20839), + 136: uint16(20841), + 137: uint16(20842), + 138: uint16(20847), + 139: uint16(20850), + 140: uint16(20858), + 141: uint16(20862), + 142: uint16(20863), + 143: uint16(20867), + 144: uint16(20868), + 145: uint16(20870), + 146: uint16(20871), + 147: uint16(20874), + 148: uint16(20875), + 149: uint16(20878), + 150: uint16(20879), + 151: uint16(20880), + 152: uint16(20881), + 153: uint16(20883), + 154: uint16(20884), + 155: uint16(20888), + 156: uint16(20890), + 157: uint16(20893), + 158: uint16(20894), + 159: uint16(20895), + 160: uint16(20897), + 161: uint16(20899), + 162: uint16(20902), + 163: uint16(20903), + 164: uint16(20904), + 165: uint16(20905), + 166: uint16(20906), + 167: uint16(20909), + 168: uint16(20910), + 169: uint16(20916), + 170: uint16(20920), + 171: uint16(20921), + 172: uint16(20922), + 173: uint16(20926), + 174: uint16(20927), + 175: uint16(20929), + 176: uint16(20930), + 177: uint16(20931), + 178: uint16(20933), + 179: uint16(20936), + 180: uint16(20938), + 181: uint16(20941), + 182: uint16(20942), + 183: uint16(20944), + 184: uint16(20946), + 185: uint16(20947), + 186: uint16(20948), + 187: uint16(20949), + 188: uint16(20950), + 189: uint16(20951), + }, + 3: { + 0: uint16(20952), + 1: uint16(20953), + 2: uint16(20954), + 3: uint16(20956), + 4: uint16(20958), + 5: uint16(20959), + 6: uint16(20962), + 7: uint16(20963), + 8: uint16(20965), + 9: uint16(20966), + 10: uint16(20967), + 11: uint16(20968), + 12: uint16(20969), + 13: uint16(20970), + 14: uint16(20972), + 15: uint16(20974), + 16: uint16(20977), + 17: uint16(20978), + 18: uint16(20980), + 19: uint16(20983), + 20: uint16(20990), + 21: uint16(20996), + 22: uint16(20997), + 23: uint16(21001), + 24: uint16(21003), + 25: uint16(21004), + 26: uint16(21007), + 27: uint16(21008), + 28: uint16(21011), + 29: uint16(21012), + 30: uint16(21013), + 31: uint16(21020), + 32: uint16(21022), + 33: uint16(21023), + 34: uint16(21025), + 35: uint16(21026), + 36: uint16(21027), + 37: uint16(21029), + 38: uint16(21030), + 39: uint16(21031), + 40: uint16(21034), + 41: uint16(21036), + 42: uint16(21039), + 43: uint16(21041), + 44: uint16(21042), + 45: uint16(21044), + 46: uint16(21045), + 47: uint16(21052), + 48: uint16(21054), + 49: uint16(21060), + 50: uint16(21061), + 51: uint16(21062), + 52: uint16(21063), + 53: uint16(21064), + 54: uint16(21065), + 55: uint16(21067), + 56: uint16(21070), + 57: uint16(21071), + 58: uint16(21074), + 59: uint16(21075), + 60: uint16(21077), + 61: uint16(21079), + 62: uint16(21080), + 63: uint16(21081), + 64: uint16(21082), + 65: uint16(21083), + 66: uint16(21085), + 67: uint16(21087), + 68: uint16(21088), + 69: uint16(21090), + 70: uint16(21091), + 71: uint16(21092), + 72: uint16(21094), + 73: uint16(21096), + 74: uint16(21099), + 75: uint16(21100), + 76: uint16(21101), + 77: uint16(21102), + 78: uint16(21104), + 79: uint16(21105), + 80: uint16(21107), + 81: uint16(21108), + 82: uint16(21109), + 83: uint16(21110), + 84: uint16(21111), + 85: uint16(21112), + 86: uint16(21113), + 87: uint16(21114), + 88: uint16(21115), + 89: uint16(21116), + 90: uint16(21118), + 91: uint16(21120), + 92: uint16(21123), + 93: uint16(21124), + 94: uint16(21125), + 95: uint16(21126), + 96: uint16(21127), + 97: uint16(21129), + 98: uint16(21130), + 99: uint16(21131), + 100: uint16(21132), + 101: uint16(21133), + 102: uint16(21134), + 103: uint16(21135), + 104: uint16(21137), + 105: uint16(21138), + 106: uint16(21140), + 107: uint16(21141), + 108: uint16(21142), + 109: uint16(21143), + 110: uint16(21144), + 111: uint16(21145), + 112: uint16(21146), + 113: uint16(21148), + 114: uint16(21156), + 115: uint16(21157), + 116: uint16(21158), + 117: uint16(21159), + 118: uint16(21166), + 119: uint16(21167), + 120: uint16(21168), + 121: uint16(21172), + 122: uint16(21173), + 123: uint16(21174), + 124: uint16(21175), + 125: uint16(21176), + 126: uint16(21177), + 127: uint16(21178), + 128: uint16(21179), + 129: uint16(21180), + 130: uint16(21181), + 131: uint16(21184), + 132: uint16(21185), + 133: uint16(21186), + 134: uint16(21188), + 135: uint16(21189), + 136: uint16(21190), + 137: uint16(21192), + 138: uint16(21194), + 139: uint16(21196), + 140: uint16(21197), + 141: uint16(21198), + 142: uint16(21199), + 143: uint16(21201), + 144: uint16(21203), + 145: uint16(21204), + 146: uint16(21205), + 147: uint16(21207), + 148: uint16(21209), + 149: uint16(21210), + 150: uint16(21211), + 151: uint16(21212), + 152: uint16(21213), + 153: uint16(21214), + 154: uint16(21216), + 155: uint16(21217), + 156: uint16(21218), + 157: uint16(21219), + 158: uint16(21221), + 159: uint16(21222), + 160: uint16(21223), + 161: uint16(21224), + 162: uint16(21225), + 163: uint16(21226), + 164: uint16(21227), + 165: uint16(21228), + 166: uint16(21229), + 167: uint16(21230), + 168: uint16(21231), + 169: uint16(21233), + 170: uint16(21234), + 171: uint16(21235), + 172: uint16(21236), + 173: uint16(21237), + 174: uint16(21238), + 175: uint16(21239), + 176: uint16(21240), + 177: uint16(21243), + 178: uint16(21244), + 179: uint16(21245), + 180: uint16(21249), + 181: uint16(21250), + 182: uint16(21251), + 183: uint16(21252), + 184: uint16(21255), + 185: uint16(21257), + 186: uint16(21258), + 187: uint16(21259), + 188: uint16(21260), + 189: uint16(21262), + }, + 4: { + 0: uint16(21265), + 1: uint16(21266), + 2: uint16(21267), + 3: uint16(21268), + 4: uint16(21272), + 5: uint16(21275), + 6: uint16(21276), + 7: uint16(21278), + 8: uint16(21279), + 9: uint16(21282), + 10: uint16(21284), + 11: uint16(21285), + 12: uint16(21287), + 13: uint16(21288), + 14: uint16(21289), + 15: uint16(21291), + 16: uint16(21292), + 17: uint16(21293), + 18: uint16(21295), + 19: uint16(21296), + 20: uint16(21297), + 21: uint16(21298), + 22: uint16(21299), + 23: uint16(21300), + 24: uint16(21301), + 25: uint16(21302), + 26: uint16(21303), + 27: uint16(21304), + 28: uint16(21308), + 29: uint16(21309), + 30: uint16(21312), + 31: uint16(21314), + 32: uint16(21316), + 33: uint16(21318), + 34: uint16(21323), + 35: uint16(21324), + 36: uint16(21325), + 37: uint16(21328), + 38: uint16(21332), + 39: uint16(21336), + 40: uint16(21337), + 41: uint16(21339), + 42: uint16(21341), + 43: uint16(21349), + 44: uint16(21352), + 45: uint16(21354), + 46: uint16(21356), + 47: uint16(21357), + 48: uint16(21362), + 49: uint16(21366), + 50: uint16(21369), + 51: uint16(21371), + 52: uint16(21372), + 53: uint16(21373), + 54: uint16(21374), + 55: uint16(21376), + 56: uint16(21377), + 57: uint16(21379), + 58: uint16(21383), + 59: uint16(21384), + 60: uint16(21386), + 61: uint16(21390), + 62: uint16(21391), + 63: uint16(21392), + 64: uint16(21393), + 65: uint16(21394), + 66: uint16(21395), + 67: uint16(21396), + 68: uint16(21398), + 69: uint16(21399), + 70: uint16(21401), + 71: uint16(21403), + 72: uint16(21404), + 73: uint16(21406), + 74: uint16(21408), + 75: uint16(21409), + 76: uint16(21412), + 77: uint16(21415), + 78: uint16(21418), + 79: uint16(21419), + 80: uint16(21420), + 81: uint16(21421), + 82: uint16(21423), + 83: uint16(21424), + 84: uint16(21425), + 85: uint16(21426), + 86: uint16(21427), + 87: uint16(21428), + 88: uint16(21429), + 89: uint16(21431), + 90: uint16(21432), + 91: uint16(21433), + 92: uint16(21434), + 93: uint16(21436), + 94: uint16(21437), + 95: uint16(21438), + 96: uint16(21440), + 97: uint16(21443), + 98: uint16(21444), + 99: uint16(21445), + 100: uint16(21446), + 101: uint16(21447), + 102: uint16(21454), + 103: uint16(21455), + 104: uint16(21456), + 105: uint16(21458), + 106: uint16(21459), + 107: uint16(21461), + 108: uint16(21466), + 109: uint16(21468), + 110: uint16(21469), + 111: uint16(21470), + 112: uint16(21473), + 113: uint16(21474), + 114: uint16(21479), + 115: uint16(21492), + 116: uint16(21498), + 117: uint16(21502), + 118: uint16(21503), + 119: uint16(21504), + 120: uint16(21506), + 121: uint16(21509), + 122: uint16(21511), + 123: uint16(21515), + 124: uint16(21524), + 125: uint16(21528), + 126: uint16(21529), + 127: uint16(21530), + 128: uint16(21532), + 129: uint16(21538), + 130: uint16(21540), + 131: uint16(21541), + 132: uint16(21546), + 133: uint16(21552), + 134: uint16(21555), + 135: uint16(21558), + 136: uint16(21559), + 137: uint16(21562), + 138: uint16(21565), + 139: uint16(21567), + 140: uint16(21569), + 141: uint16(21570), + 142: uint16(21572), + 143: uint16(21573), + 144: uint16(21575), + 145: uint16(21577), + 146: uint16(21580), + 147: uint16(21581), + 148: uint16(21582), + 149: uint16(21583), + 150: uint16(21585), + 151: uint16(21594), + 152: uint16(21597), + 153: uint16(21598), + 154: uint16(21599), + 155: uint16(21600), + 156: uint16(21601), + 157: uint16(21603), + 158: uint16(21605), + 159: uint16(21607), + 160: uint16(21609), + 161: uint16(21610), + 162: uint16(21611), + 163: uint16(21612), + 164: uint16(21613), + 165: uint16(21614), + 166: uint16(21615), + 167: uint16(21616), + 168: uint16(21620), + 169: uint16(21625), + 170: uint16(21626), + 171: uint16(21630), + 172: uint16(21631), + 173: uint16(21633), + 174: uint16(21635), + 175: uint16(21637), + 176: uint16(21639), + 177: uint16(21640), + 178: uint16(21641), + 179: uint16(21642), + 180: uint16(21645), + 181: uint16(21649), + 182: uint16(21651), + 183: uint16(21655), + 184: uint16(21656), + 185: uint16(21660), + 186: uint16(21662), + 187: uint16(21663), + 188: uint16(21664), + 189: uint16(21665), + }, + 5: { + 0: uint16(21666), + 1: uint16(21669), + 2: uint16(21678), + 3: uint16(21680), + 4: uint16(21682), + 5: uint16(21685), + 6: uint16(21686), + 7: uint16(21687), + 8: uint16(21689), + 9: uint16(21690), + 10: uint16(21692), + 11: uint16(21694), + 12: uint16(21699), + 13: uint16(21701), + 14: uint16(21706), + 15: uint16(21707), + 16: uint16(21718), + 17: uint16(21720), + 18: uint16(21723), + 19: uint16(21728), + 20: uint16(21729), + 21: uint16(21730), + 22: uint16(21731), + 23: uint16(21732), + 24: uint16(21739), + 25: uint16(21740), + 26: uint16(21743), + 27: uint16(21744), + 28: uint16(21745), + 29: uint16(21748), + 30: uint16(21749), + 31: uint16(21750), + 32: uint16(21751), + 33: uint16(21752), + 34: uint16(21753), + 35: uint16(21755), + 36: uint16(21758), + 37: uint16(21760), + 38: uint16(21762), + 39: uint16(21763), + 40: uint16(21764), + 41: uint16(21765), + 42: uint16(21768), + 43: uint16(21770), + 44: uint16(21771), + 45: uint16(21772), + 46: uint16(21773), + 47: uint16(21774), + 48: uint16(21778), + 49: uint16(21779), + 50: uint16(21781), + 51: uint16(21782), + 52: uint16(21783), + 53: uint16(21784), + 54: uint16(21785), + 55: uint16(21786), + 56: uint16(21788), + 57: uint16(21789), + 58: uint16(21790), + 59: uint16(21791), + 60: uint16(21793), + 61: uint16(21797), + 62: uint16(21798), + 63: uint16(21800), + 64: uint16(21801), + 65: uint16(21803), + 66: uint16(21805), + 67: uint16(21810), + 68: uint16(21812), + 69: uint16(21813), + 70: uint16(21814), + 71: uint16(21816), + 72: uint16(21817), + 73: uint16(21818), + 74: uint16(21819), + 75: uint16(21821), + 76: uint16(21824), + 77: uint16(21826), + 78: uint16(21829), + 79: uint16(21831), + 80: uint16(21832), + 81: uint16(21835), + 82: uint16(21836), + 83: uint16(21837), + 84: uint16(21838), + 85: uint16(21839), + 86: uint16(21841), + 87: uint16(21842), + 88: uint16(21843), + 89: uint16(21844), + 90: uint16(21847), + 91: uint16(21848), + 92: uint16(21849), + 93: uint16(21850), + 94: uint16(21851), + 95: uint16(21853), + 96: uint16(21854), + 97: uint16(21855), + 98: uint16(21856), + 99: uint16(21858), + 100: uint16(21859), + 101: uint16(21864), + 102: uint16(21865), + 103: uint16(21867), + 104: uint16(21871), + 105: uint16(21872), + 106: uint16(21873), + 107: uint16(21874), + 108: uint16(21875), + 109: uint16(21876), + 110: uint16(21881), + 111: uint16(21882), + 112: uint16(21885), + 113: uint16(21887), + 114: uint16(21893), + 115: uint16(21894), + 116: uint16(21900), + 117: uint16(21901), + 118: uint16(21902), + 119: uint16(21904), + 120: uint16(21906), + 121: uint16(21907), + 122: uint16(21909), + 123: uint16(21910), + 124: uint16(21911), + 125: uint16(21914), + 126: uint16(21915), + 127: uint16(21918), + 128: uint16(21920), + 129: uint16(21921), + 130: uint16(21922), + 131: uint16(21923), + 132: uint16(21924), + 133: uint16(21925), + 134: uint16(21926), + 135: uint16(21928), + 136: uint16(21929), + 137: uint16(21930), + 138: uint16(21931), + 139: uint16(21932), + 140: uint16(21933), + 141: uint16(21934), + 142: uint16(21935), + 143: uint16(21936), + 144: uint16(21938), + 145: uint16(21940), + 146: uint16(21942), + 147: uint16(21944), + 148: uint16(21946), + 149: uint16(21948), + 150: uint16(21951), + 151: uint16(21952), + 152: uint16(21953), + 153: uint16(21954), + 154: uint16(21955), + 155: uint16(21958), + 156: uint16(21959), + 157: uint16(21960), + 158: uint16(21962), + 159: uint16(21963), + 160: uint16(21966), + 161: uint16(21967), + 162: uint16(21968), + 163: uint16(21973), + 164: uint16(21975), + 165: uint16(21976), + 166: uint16(21977), + 167: uint16(21978), + 168: uint16(21979), + 169: uint16(21982), + 170: uint16(21984), + 171: uint16(21986), + 172: uint16(21991), + 173: uint16(21993), + 174: uint16(21997), + 175: uint16(21998), + 176: uint16(22000), + 177: uint16(22001), + 178: uint16(22004), + 179: uint16(22006), + 180: uint16(22008), + 181: uint16(22009), + 182: uint16(22010), + 183: uint16(22011), + 184: uint16(22012), + 185: uint16(22015), + 186: uint16(22018), + 187: uint16(22019), + 188: uint16(22020), + 189: uint16(22021), + }, + 6: { + 0: uint16(22022), + 1: uint16(22023), + 2: uint16(22026), + 3: uint16(22027), + 4: uint16(22029), + 5: uint16(22032), + 6: uint16(22033), + 7: uint16(22034), + 8: uint16(22035), + 9: uint16(22036), + 10: uint16(22037), + 11: uint16(22038), + 12: uint16(22039), + 13: uint16(22041), + 14: uint16(22042), + 15: uint16(22044), + 16: uint16(22045), + 17: uint16(22048), + 18: uint16(22049), + 19: uint16(22050), + 20: uint16(22053), + 21: uint16(22054), + 22: uint16(22056), + 23: uint16(22057), + 24: uint16(22058), + 25: uint16(22059), + 26: uint16(22062), + 27: uint16(22063), + 28: uint16(22064), + 29: uint16(22067), + 30: uint16(22069), + 31: uint16(22071), + 32: uint16(22072), + 33: uint16(22074), + 34: uint16(22076), + 35: uint16(22077), + 36: uint16(22078), + 37: uint16(22080), + 38: uint16(22081), + 39: uint16(22082), + 40: uint16(22083), + 41: uint16(22084), + 42: uint16(22085), + 43: uint16(22086), + 44: uint16(22087), + 45: uint16(22088), + 46: uint16(22089), + 47: uint16(22090), + 48: uint16(22091), + 49: uint16(22095), + 50: uint16(22096), + 51: uint16(22097), + 52: uint16(22098), + 53: uint16(22099), + 54: uint16(22101), + 55: uint16(22102), + 56: uint16(22106), + 57: uint16(22107), + 58: uint16(22109), + 59: uint16(22110), + 60: uint16(22111), + 61: uint16(22112), + 62: uint16(22113), + 63: uint16(22115), + 64: uint16(22117), + 65: uint16(22118), + 66: uint16(22119), + 67: uint16(22125), + 68: uint16(22126), + 69: uint16(22127), + 70: uint16(22128), + 71: uint16(22130), + 72: uint16(22131), + 73: uint16(22132), + 74: uint16(22133), + 75: uint16(22135), + 76: uint16(22136), + 77: uint16(22137), + 78: uint16(22138), + 79: uint16(22141), + 80: uint16(22142), + 81: uint16(22143), + 82: uint16(22144), + 83: uint16(22145), + 84: uint16(22146), + 85: uint16(22147), + 86: uint16(22148), + 87: uint16(22151), + 88: uint16(22152), + 89: uint16(22153), + 90: uint16(22154), + 91: uint16(22155), + 92: uint16(22156), + 93: uint16(22157), + 94: uint16(22160), + 95: uint16(22161), + 96: uint16(22162), + 97: uint16(22164), + 98: uint16(22165), + 99: uint16(22166), + 100: uint16(22167), + 101: uint16(22168), + 102: uint16(22169), + 103: uint16(22170), + 104: uint16(22171), + 105: uint16(22172), + 106: uint16(22173), + 107: uint16(22174), + 108: uint16(22175), + 109: uint16(22176), + 110: uint16(22177), + 111: uint16(22178), + 112: uint16(22180), + 113: uint16(22181), + 114: uint16(22182), + 115: uint16(22183), + 116: uint16(22184), + 117: uint16(22185), + 118: uint16(22186), + 119: uint16(22187), + 120: uint16(22188), + 121: uint16(22189), + 122: uint16(22190), + 123: uint16(22192), + 124: uint16(22193), + 125: uint16(22194), + 126: uint16(22195), + 127: uint16(22196), + 128: uint16(22197), + 129: uint16(22198), + 130: uint16(22200), + 131: uint16(22201), + 132: uint16(22202), + 133: uint16(22203), + 134: uint16(22205), + 135: uint16(22206), + 136: uint16(22207), + 137: uint16(22208), + 138: uint16(22209), + 139: uint16(22210), + 140: uint16(22211), + 141: uint16(22212), + 142: uint16(22213), + 143: uint16(22214), + 144: uint16(22215), + 145: uint16(22216), + 146: uint16(22217), + 147: uint16(22219), + 148: uint16(22220), + 149: uint16(22221), + 150: uint16(22222), + 151: uint16(22223), + 152: uint16(22224), + 153: uint16(22225), + 154: uint16(22226), + 155: uint16(22227), + 156: uint16(22229), + 157: uint16(22230), + 158: uint16(22232), + 159: uint16(22233), + 160: uint16(22236), + 161: uint16(22243), + 162: uint16(22245), + 163: uint16(22246), + 164: uint16(22247), + 165: uint16(22248), + 166: uint16(22249), + 167: uint16(22250), + 168: uint16(22252), + 169: uint16(22254), + 170: uint16(22255), + 171: uint16(22258), + 172: uint16(22259), + 173: uint16(22262), + 174: uint16(22263), + 175: uint16(22264), + 176: uint16(22267), + 177: uint16(22268), + 178: uint16(22272), + 179: uint16(22273), + 180: uint16(22274), + 181: uint16(22277), + 182: uint16(22279), + 183: uint16(22283), + 184: uint16(22284), + 185: uint16(22285), + 186: uint16(22286), + 187: uint16(22287), + 188: uint16(22288), + 189: uint16(22289), + }, + 7: { + 0: uint16(22290), + 1: uint16(22291), + 2: uint16(22292), + 3: uint16(22293), + 4: uint16(22294), + 5: uint16(22295), + 6: uint16(22296), + 7: uint16(22297), + 8: uint16(22298), + 9: uint16(22299), + 10: uint16(22301), + 11: uint16(22302), + 12: uint16(22304), + 13: uint16(22305), + 14: uint16(22306), + 15: uint16(22308), + 16: uint16(22309), + 17: uint16(22310), + 18: uint16(22311), + 19: uint16(22315), + 20: uint16(22321), + 21: uint16(22322), + 22: uint16(22324), + 23: uint16(22325), + 24: uint16(22326), + 25: uint16(22327), + 26: uint16(22328), + 27: uint16(22332), + 28: uint16(22333), + 29: uint16(22335), + 30: uint16(22337), + 31: uint16(22339), + 32: uint16(22340), + 33: uint16(22341), + 34: uint16(22342), + 35: uint16(22344), + 36: uint16(22345), + 37: uint16(22347), + 38: uint16(22354), + 39: uint16(22355), + 40: uint16(22356), + 41: uint16(22357), + 42: uint16(22358), + 43: uint16(22360), + 44: uint16(22361), + 45: uint16(22370), + 46: uint16(22371), + 47: uint16(22373), + 48: uint16(22375), + 49: uint16(22380), + 50: uint16(22382), + 51: uint16(22384), + 52: uint16(22385), + 53: uint16(22386), + 54: uint16(22388), + 55: uint16(22389), + 56: uint16(22392), + 57: uint16(22393), + 58: uint16(22394), + 59: uint16(22397), + 60: uint16(22398), + 61: uint16(22399), + 62: uint16(22400), + 63: uint16(22401), + 64: uint16(22407), + 65: uint16(22408), + 66: uint16(22409), + 67: uint16(22410), + 68: uint16(22413), + 69: uint16(22414), + 70: uint16(22415), + 71: uint16(22416), + 72: uint16(22417), + 73: uint16(22420), + 74: uint16(22421), + 75: uint16(22422), + 76: uint16(22423), + 77: uint16(22424), + 78: uint16(22425), + 79: uint16(22426), + 80: uint16(22428), + 81: uint16(22429), + 82: uint16(22430), + 83: uint16(22431), + 84: uint16(22437), + 85: uint16(22440), + 86: uint16(22442), + 87: uint16(22444), + 88: uint16(22447), + 89: uint16(22448), + 90: uint16(22449), + 91: uint16(22451), + 92: uint16(22453), + 93: uint16(22454), + 94: uint16(22455), + 95: uint16(22457), + 96: uint16(22458), + 97: uint16(22459), + 98: uint16(22460), + 99: uint16(22461), + 100: uint16(22462), + 101: uint16(22463), + 102: uint16(22464), + 103: uint16(22465), + 104: uint16(22468), + 105: uint16(22469), + 106: uint16(22470), + 107: uint16(22471), + 108: uint16(22472), + 109: uint16(22473), + 110: uint16(22474), + 111: uint16(22476), + 112: uint16(22477), + 113: uint16(22480), + 114: uint16(22481), + 115: uint16(22483), + 116: uint16(22486), + 117: uint16(22487), + 118: uint16(22491), + 119: uint16(22492), + 120: uint16(22494), + 121: uint16(22497), + 122: uint16(22498), + 123: uint16(22499), + 124: uint16(22501), + 125: uint16(22502), + 126: uint16(22503), + 127: uint16(22504), + 128: uint16(22505), + 129: uint16(22506), + 130: uint16(22507), + 131: uint16(22508), + 132: uint16(22510), + 133: uint16(22512), + 134: uint16(22513), + 135: uint16(22514), + 136: uint16(22515), + 137: uint16(22517), + 138: uint16(22518), + 139: uint16(22519), + 140: uint16(22523), + 141: uint16(22524), + 142: uint16(22526), + 143: uint16(22527), + 144: uint16(22529), + 145: uint16(22531), + 146: uint16(22532), + 147: uint16(22533), + 148: uint16(22536), + 149: uint16(22537), + 150: uint16(22538), + 151: uint16(22540), + 152: uint16(22542), + 153: uint16(22543), + 154: uint16(22544), + 155: uint16(22546), + 156: uint16(22547), + 157: uint16(22548), + 158: uint16(22550), + 159: uint16(22551), + 160: uint16(22552), + 161: uint16(22554), + 162: uint16(22555), + 163: uint16(22556), + 164: uint16(22557), + 165: uint16(22559), + 166: uint16(22562), + 167: uint16(22563), + 168: uint16(22565), + 169: uint16(22566), + 170: uint16(22567), + 171: uint16(22568), + 172: uint16(22569), + 173: uint16(22571), + 174: uint16(22572), + 175: uint16(22573), + 176: uint16(22574), + 177: uint16(22575), + 178: uint16(22577), + 179: uint16(22578), + 180: uint16(22579), + 181: uint16(22580), + 182: uint16(22582), + 183: uint16(22583), + 184: uint16(22584), + 185: uint16(22585), + 186: uint16(22586), + 187: uint16(22587), + 188: uint16(22588), + 189: uint16(22589), + }, + 8: { + 0: uint16(22590), + 1: uint16(22591), + 2: uint16(22592), + 3: uint16(22593), + 4: uint16(22594), + 5: uint16(22595), + 6: uint16(22597), + 7: uint16(22598), + 8: uint16(22599), + 9: uint16(22600), + 10: uint16(22601), + 11: uint16(22602), + 12: uint16(22603), + 13: uint16(22606), + 14: uint16(22607), + 15: uint16(22608), + 16: uint16(22610), + 17: uint16(22611), + 18: uint16(22613), + 19: uint16(22614), + 20: uint16(22615), + 21: uint16(22617), + 22: uint16(22618), + 23: uint16(22619), + 24: uint16(22620), + 25: uint16(22621), + 26: uint16(22623), + 27: uint16(22624), + 28: uint16(22625), + 29: uint16(22626), + 30: uint16(22627), + 31: uint16(22628), + 32: uint16(22630), + 33: uint16(22631), + 34: uint16(22632), + 35: uint16(22633), + 36: uint16(22634), + 37: uint16(22637), + 38: uint16(22638), + 39: uint16(22639), + 40: uint16(22640), + 41: uint16(22641), + 42: uint16(22642), + 43: uint16(22643), + 44: uint16(22644), + 45: uint16(22645), + 46: uint16(22646), + 47: uint16(22647), + 48: uint16(22648), + 49: uint16(22649), + 50: uint16(22650), + 51: uint16(22651), + 52: uint16(22652), + 53: uint16(22653), + 54: uint16(22655), + 55: uint16(22658), + 56: uint16(22660), + 57: uint16(22662), + 58: uint16(22663), + 59: uint16(22664), + 60: uint16(22666), + 61: uint16(22667), + 62: uint16(22668), + 63: uint16(22669), + 64: uint16(22670), + 65: uint16(22671), + 66: uint16(22672), + 67: uint16(22673), + 68: uint16(22676), + 69: uint16(22677), + 70: uint16(22678), + 71: uint16(22679), + 72: uint16(22680), + 73: uint16(22683), + 74: uint16(22684), + 75: uint16(22685), + 76: uint16(22688), + 77: uint16(22689), + 78: uint16(22690), + 79: uint16(22691), + 80: uint16(22692), + 81: uint16(22693), + 82: uint16(22694), + 83: uint16(22695), + 84: uint16(22698), + 85: uint16(22699), + 86: uint16(22700), + 87: uint16(22701), + 88: uint16(22702), + 89: uint16(22703), + 90: uint16(22704), + 91: uint16(22705), + 92: uint16(22706), + 93: uint16(22707), + 94: uint16(22708), + 95: uint16(22709), + 96: uint16(22710), + 97: uint16(22711), + 98: uint16(22712), + 99: uint16(22713), + 100: uint16(22714), + 101: uint16(22715), + 102: uint16(22717), + 103: uint16(22718), + 104: uint16(22719), + 105: uint16(22720), + 106: uint16(22722), + 107: uint16(22723), + 108: uint16(22724), + 109: uint16(22726), + 110: uint16(22727), + 111: uint16(22728), + 112: uint16(22729), + 113: uint16(22730), + 114: uint16(22731), + 115: uint16(22732), + 116: uint16(22733), + 117: uint16(22734), + 118: uint16(22735), + 119: uint16(22736), + 120: uint16(22738), + 121: uint16(22739), + 122: uint16(22740), + 123: uint16(22742), + 124: uint16(22743), + 125: uint16(22744), + 126: uint16(22745), + 127: uint16(22746), + 128: uint16(22747), + 129: uint16(22748), + 130: uint16(22749), + 131: uint16(22750), + 132: uint16(22751), + 133: uint16(22752), + 134: uint16(22753), + 135: uint16(22754), + 136: uint16(22755), + 137: uint16(22757), + 138: uint16(22758), + 139: uint16(22759), + 140: uint16(22760), + 141: uint16(22761), + 142: uint16(22762), + 143: uint16(22765), + 144: uint16(22767), + 145: uint16(22769), + 146: uint16(22770), + 147: uint16(22772), + 148: uint16(22773), + 149: uint16(22775), + 150: uint16(22776), + 151: uint16(22778), + 152: uint16(22779), + 153: uint16(22780), + 154: uint16(22781), + 155: uint16(22782), + 156: uint16(22783), + 157: uint16(22784), + 158: uint16(22785), + 159: uint16(22787), + 160: uint16(22789), + 161: uint16(22790), + 162: uint16(22792), + 163: uint16(22793), + 164: uint16(22794), + 165: uint16(22795), + 166: uint16(22796), + 167: uint16(22798), + 168: uint16(22800), + 169: uint16(22801), + 170: uint16(22802), + 171: uint16(22803), + 172: uint16(22807), + 173: uint16(22808), + 174: uint16(22811), + 175: uint16(22813), + 176: uint16(22814), + 177: uint16(22816), + 178: uint16(22817), + 179: uint16(22818), + 180: uint16(22819), + 181: uint16(22822), + 182: uint16(22824), + 183: uint16(22828), + 184: uint16(22832), + 185: uint16(22834), + 186: uint16(22835), + 187: uint16(22837), + 188: uint16(22838), + 189: uint16(22843), + }, + 9: { + 0: uint16(22845), + 1: uint16(22846), + 2: uint16(22847), + 3: uint16(22848), + 4: uint16(22851), + 5: uint16(22853), + 6: uint16(22854), + 7: uint16(22858), + 8: uint16(22860), + 9: uint16(22861), + 10: uint16(22864), + 11: uint16(22866), + 12: uint16(22867), + 13: uint16(22873), + 14: uint16(22875), + 15: uint16(22876), + 16: uint16(22877), + 17: uint16(22878), + 18: uint16(22879), + 19: uint16(22881), + 20: uint16(22883), + 21: uint16(22884), + 22: uint16(22886), + 23: uint16(22887), + 24: uint16(22888), + 25: uint16(22889), + 26: uint16(22890), + 27: uint16(22891), + 28: uint16(22892), + 29: uint16(22893), + 30: uint16(22894), + 31: uint16(22895), + 32: uint16(22896), + 33: uint16(22897), + 34: uint16(22898), + 35: uint16(22901), + 36: uint16(22903), + 37: uint16(22906), + 38: uint16(22907), + 39: uint16(22908), + 40: uint16(22910), + 41: uint16(22911), + 42: uint16(22912), + 43: uint16(22917), + 44: uint16(22921), + 45: uint16(22923), + 46: uint16(22924), + 47: uint16(22926), + 48: uint16(22927), + 49: uint16(22928), + 50: uint16(22929), + 51: uint16(22932), + 52: uint16(22933), + 53: uint16(22936), + 54: uint16(22938), + 55: uint16(22939), + 56: uint16(22940), + 57: uint16(22941), + 58: uint16(22943), + 59: uint16(22944), + 60: uint16(22945), + 61: uint16(22946), + 62: uint16(22950), + 63: uint16(22951), + 64: uint16(22956), + 65: uint16(22957), + 66: uint16(22960), + 67: uint16(22961), + 68: uint16(22963), + 69: uint16(22964), + 70: uint16(22965), + 71: uint16(22966), + 72: uint16(22967), + 73: uint16(22968), + 74: uint16(22970), + 75: uint16(22972), + 76: uint16(22973), + 77: uint16(22975), + 78: uint16(22976), + 79: uint16(22977), + 80: uint16(22978), + 81: uint16(22979), + 82: uint16(22980), + 83: uint16(22981), + 84: uint16(22983), + 85: uint16(22984), + 86: uint16(22985), + 87: uint16(22988), + 88: uint16(22989), + 89: uint16(22990), + 90: uint16(22991), + 91: uint16(22997), + 92: uint16(22998), + 93: uint16(23001), + 94: uint16(23003), + 95: uint16(23006), + 96: uint16(23007), + 97: uint16(23008), + 98: uint16(23009), + 99: uint16(23010), + 100: uint16(23012), + 101: uint16(23014), + 102: uint16(23015), + 103: uint16(23017), + 104: uint16(23018), + 105: uint16(23019), + 106: uint16(23021), + 107: uint16(23022), + 108: uint16(23023), + 109: uint16(23024), + 110: uint16(23025), + 111: uint16(23026), + 112: uint16(23027), + 113: uint16(23028), + 114: uint16(23029), + 115: uint16(23030), + 116: uint16(23031), + 117: uint16(23032), + 118: uint16(23034), + 119: uint16(23036), + 120: uint16(23037), + 121: uint16(23038), + 122: uint16(23040), + 123: uint16(23042), + 124: uint16(23050), + 125: uint16(23051), + 126: uint16(23053), + 127: uint16(23054), + 128: uint16(23055), + 129: uint16(23056), + 130: uint16(23058), + 131: uint16(23060), + 132: uint16(23061), + 133: uint16(23062), + 134: uint16(23063), + 135: uint16(23065), + 136: uint16(23066), + 137: uint16(23067), + 138: uint16(23069), + 139: uint16(23070), + 140: uint16(23073), + 141: uint16(23074), + 142: uint16(23076), + 143: uint16(23078), + 144: uint16(23079), + 145: uint16(23080), + 146: uint16(23082), + 147: uint16(23083), + 148: uint16(23084), + 149: uint16(23085), + 150: uint16(23086), + 151: uint16(23087), + 152: uint16(23088), + 153: uint16(23091), + 154: uint16(23093), + 155: uint16(23095), + 156: uint16(23096), + 157: uint16(23097), + 158: uint16(23098), + 159: uint16(23099), + 160: uint16(23101), + 161: uint16(23102), + 162: uint16(23103), + 163: uint16(23105), + 164: uint16(23106), + 165: uint16(23107), + 166: uint16(23108), + 167: uint16(23109), + 168: uint16(23111), + 169: uint16(23112), + 170: uint16(23115), + 171: uint16(23116), + 172: uint16(23117), + 173: uint16(23118), + 174: uint16(23119), + 175: uint16(23120), + 176: uint16(23121), + 177: uint16(23122), + 178: uint16(23123), + 179: uint16(23124), + 180: uint16(23126), + 181: uint16(23127), + 182: uint16(23128), + 183: uint16(23129), + 184: uint16(23131), + 185: uint16(23132), + 186: uint16(23133), + 187: uint16(23134), + 188: uint16(23135), + 189: uint16(23136), + }, + 10: { + 0: uint16(23137), + 1: uint16(23139), + 2: uint16(23140), + 3: uint16(23141), + 4: uint16(23142), + 5: uint16(23144), + 6: uint16(23145), + 7: uint16(23147), + 8: uint16(23148), + 9: uint16(23149), + 10: uint16(23150), + 11: uint16(23151), + 12: uint16(23152), + 13: uint16(23153), + 14: uint16(23154), + 15: uint16(23155), + 16: uint16(23160), + 17: uint16(23161), + 18: uint16(23163), + 19: uint16(23164), + 20: uint16(23165), + 21: uint16(23166), + 22: uint16(23168), + 23: uint16(23169), + 24: uint16(23170), + 25: uint16(23171), + 26: uint16(23172), + 27: uint16(23173), + 28: uint16(23174), + 29: uint16(23175), + 30: uint16(23176), + 31: uint16(23177), + 32: uint16(23178), + 33: uint16(23179), + 34: uint16(23180), + 35: uint16(23181), + 36: uint16(23182), + 37: uint16(23183), + 38: uint16(23184), + 39: uint16(23185), + 40: uint16(23187), + 41: uint16(23188), + 42: uint16(23189), + 43: uint16(23190), + 44: uint16(23191), + 45: uint16(23192), + 46: uint16(23193), + 47: uint16(23196), + 48: uint16(23197), + 49: uint16(23198), + 50: uint16(23199), + 51: uint16(23200), + 52: uint16(23201), + 53: uint16(23202), + 54: uint16(23203), + 55: uint16(23204), + 56: uint16(23205), + 57: uint16(23206), + 58: uint16(23207), + 59: uint16(23208), + 60: uint16(23209), + 61: uint16(23211), + 62: uint16(23212), + 63: uint16(23213), + 64: uint16(23214), + 65: uint16(23215), + 66: uint16(23216), + 67: uint16(23217), + 68: uint16(23220), + 69: uint16(23222), + 70: uint16(23223), + 71: uint16(23225), + 72: uint16(23226), + 73: uint16(23227), + 74: uint16(23228), + 75: uint16(23229), + 76: uint16(23231), + 77: uint16(23232), + 78: uint16(23235), + 79: uint16(23236), + 80: uint16(23237), + 81: uint16(23238), + 82: uint16(23239), + 83: uint16(23240), + 84: uint16(23242), + 85: uint16(23243), + 86: uint16(23245), + 87: uint16(23246), + 88: uint16(23247), + 89: uint16(23248), + 90: uint16(23249), + 91: uint16(23251), + 92: uint16(23253), + 93: uint16(23255), + 94: uint16(23257), + 95: uint16(23258), + 96: uint16(23259), + 97: uint16(23261), + 98: uint16(23262), + 99: uint16(23263), + 100: uint16(23266), + 101: uint16(23268), + 102: uint16(23269), + 103: uint16(23271), + 104: uint16(23272), + 105: uint16(23274), + 106: uint16(23276), + 107: uint16(23277), + 108: uint16(23278), + 109: uint16(23279), + 110: uint16(23280), + 111: uint16(23282), + 112: uint16(23283), + 113: uint16(23284), + 114: uint16(23285), + 115: uint16(23286), + 116: uint16(23287), + 117: uint16(23288), + 118: uint16(23289), + 119: uint16(23290), + 120: uint16(23291), + 121: uint16(23292), + 122: uint16(23293), + 123: uint16(23294), + 124: uint16(23295), + 125: uint16(23296), + 126: uint16(23297), + 127: uint16(23298), + 128: uint16(23299), + 129: uint16(23300), + 130: uint16(23301), + 131: uint16(23302), + 132: uint16(23303), + 133: uint16(23304), + 134: uint16(23306), + 135: uint16(23307), + 136: uint16(23308), + 137: uint16(23309), + 138: uint16(23310), + 139: uint16(23311), + 140: uint16(23312), + 141: uint16(23313), + 142: uint16(23314), + 143: uint16(23315), + 144: uint16(23316), + 145: uint16(23317), + 146: uint16(23320), + 147: uint16(23321), + 148: uint16(23322), + 149: uint16(23323), + 150: uint16(23324), + 151: uint16(23325), + 152: uint16(23326), + 153: uint16(23327), + 154: uint16(23328), + 155: uint16(23329), + 156: uint16(23330), + 157: uint16(23331), + 158: uint16(23332), + 159: uint16(23333), + 160: uint16(23334), + 161: uint16(23335), + 162: uint16(23336), + 163: uint16(23337), + 164: uint16(23338), + 165: uint16(23339), + 166: uint16(23340), + 167: uint16(23341), + 168: uint16(23342), + 169: uint16(23343), + 170: uint16(23344), + 171: uint16(23345), + 172: uint16(23347), + 173: uint16(23349), + 174: uint16(23350), + 175: uint16(23352), + 176: uint16(23353), + 177: uint16(23354), + 178: uint16(23355), + 179: uint16(23356), + 180: uint16(23357), + 181: uint16(23358), + 182: uint16(23359), + 183: uint16(23361), + 184: uint16(23362), + 185: uint16(23363), + 186: uint16(23364), + 187: uint16(23365), + 188: uint16(23366), + 189: uint16(23367), + }, + 11: { + 0: uint16(23368), + 1: uint16(23369), + 2: uint16(23370), + 3: uint16(23371), + 4: uint16(23372), + 5: uint16(23373), + 6: uint16(23374), + 7: uint16(23375), + 8: uint16(23378), + 9: uint16(23382), + 10: uint16(23390), + 11: uint16(23392), + 12: uint16(23393), + 13: uint16(23399), + 14: uint16(23400), + 15: uint16(23403), + 16: uint16(23405), + 17: uint16(23406), + 18: uint16(23407), + 19: uint16(23410), + 20: uint16(23412), + 21: uint16(23414), + 22: uint16(23415), + 23: uint16(23416), + 24: uint16(23417), + 25: uint16(23419), + 26: uint16(23420), + 27: uint16(23422), + 28: uint16(23423), + 29: uint16(23426), + 30: uint16(23430), + 31: uint16(23434), + 32: uint16(23437), + 33: uint16(23438), + 34: uint16(23440), + 35: uint16(23441), + 36: uint16(23442), + 37: uint16(23444), + 38: uint16(23446), + 39: uint16(23455), + 40: uint16(23463), + 41: uint16(23464), + 42: uint16(23465), + 43: uint16(23468), + 44: uint16(23469), + 45: uint16(23470), + 46: uint16(23471), + 47: uint16(23473), + 48: uint16(23474), + 49: uint16(23479), + 50: uint16(23482), + 51: uint16(23483), + 52: uint16(23484), + 53: uint16(23488), + 54: uint16(23489), + 55: uint16(23491), + 56: uint16(23496), + 57: uint16(23497), + 58: uint16(23498), + 59: uint16(23499), + 60: uint16(23501), + 61: uint16(23502), + 62: uint16(23503), + 63: uint16(23505), + 64: uint16(23508), + 65: uint16(23509), + 66: uint16(23510), + 67: uint16(23511), + 68: uint16(23512), + 69: uint16(23513), + 70: uint16(23514), + 71: uint16(23515), + 72: uint16(23516), + 73: uint16(23520), + 74: uint16(23522), + 75: uint16(23523), + 76: uint16(23526), + 77: uint16(23527), + 78: uint16(23529), + 79: uint16(23530), + 80: uint16(23531), + 81: uint16(23532), + 82: uint16(23533), + 83: uint16(23535), + 84: uint16(23537), + 85: uint16(23538), + 86: uint16(23539), + 87: uint16(23540), + 88: uint16(23541), + 89: uint16(23542), + 90: uint16(23543), + 91: uint16(23549), + 92: uint16(23550), + 93: uint16(23552), + 94: uint16(23554), + 95: uint16(23555), + 96: uint16(23557), + 97: uint16(23559), + 98: uint16(23560), + 99: uint16(23563), + 100: uint16(23564), + 101: uint16(23565), + 102: uint16(23566), + 103: uint16(23568), + 104: uint16(23570), + 105: uint16(23571), + 106: uint16(23575), + 107: uint16(23577), + 108: uint16(23579), + 109: uint16(23582), + 110: uint16(23583), + 111: uint16(23584), + 112: uint16(23585), + 113: uint16(23587), + 114: uint16(23590), + 115: uint16(23592), + 116: uint16(23593), + 117: uint16(23594), + 118: uint16(23595), + 119: uint16(23597), + 120: uint16(23598), + 121: uint16(23599), + 122: uint16(23600), + 123: uint16(23602), + 124: uint16(23603), + 125: uint16(23605), + 126: uint16(23606), + 127: uint16(23607), + 128: uint16(23619), + 129: uint16(23620), + 130: uint16(23622), + 131: uint16(23623), + 132: uint16(23628), + 133: uint16(23629), + 134: uint16(23634), + 135: uint16(23635), + 136: uint16(23636), + 137: uint16(23638), + 138: uint16(23639), + 139: uint16(23640), + 140: uint16(23642), + 141: uint16(23643), + 142: uint16(23644), + 143: uint16(23645), + 144: uint16(23647), + 145: uint16(23650), + 146: uint16(23652), + 147: uint16(23655), + 148: uint16(23656), + 149: uint16(23657), + 150: uint16(23658), + 151: uint16(23659), + 152: uint16(23660), + 153: uint16(23661), + 154: uint16(23664), + 155: uint16(23666), + 156: uint16(23667), + 157: uint16(23668), + 158: uint16(23669), + 159: uint16(23670), + 160: uint16(23671), + 161: uint16(23672), + 162: uint16(23675), + 163: uint16(23676), + 164: uint16(23677), + 165: uint16(23678), + 166: uint16(23680), + 167: uint16(23683), + 168: uint16(23684), + 169: uint16(23685), + 170: uint16(23686), + 171: uint16(23687), + 172: uint16(23689), + 173: uint16(23690), + 174: uint16(23691), + 175: uint16(23694), + 176: uint16(23695), + 177: uint16(23698), + 178: uint16(23699), + 179: uint16(23701), + 180: uint16(23709), + 181: uint16(23710), + 182: uint16(23711), + 183: uint16(23712), + 184: uint16(23713), + 185: uint16(23716), + 186: uint16(23717), + 187: uint16(23718), + 188: uint16(23719), + 189: uint16(23720), + }, + 12: { + 0: uint16(23722), + 1: uint16(23726), + 2: uint16(23727), + 3: uint16(23728), + 4: uint16(23730), + 5: uint16(23732), + 6: uint16(23734), + 7: uint16(23737), + 8: uint16(23738), + 9: uint16(23739), + 10: uint16(23740), + 11: uint16(23742), + 12: uint16(23744), + 13: uint16(23746), + 14: uint16(23747), + 15: uint16(23749), + 16: uint16(23750), + 17: uint16(23751), + 18: uint16(23752), + 19: uint16(23753), + 20: uint16(23754), + 21: uint16(23756), + 22: uint16(23757), + 23: uint16(23758), + 24: uint16(23759), + 25: uint16(23760), + 26: uint16(23761), + 27: uint16(23763), + 28: uint16(23764), + 29: uint16(23765), + 30: uint16(23766), + 31: uint16(23767), + 32: uint16(23768), + 33: uint16(23770), + 34: uint16(23771), + 35: uint16(23772), + 36: uint16(23773), + 37: uint16(23774), + 38: uint16(23775), + 39: uint16(23776), + 40: uint16(23778), + 41: uint16(23779), + 42: uint16(23783), + 43: uint16(23785), + 44: uint16(23787), + 45: uint16(23788), + 46: uint16(23790), + 47: uint16(23791), + 48: uint16(23793), + 49: uint16(23794), + 50: uint16(23795), + 51: uint16(23796), + 52: uint16(23797), + 53: uint16(23798), + 54: uint16(23799), + 55: uint16(23800), + 56: uint16(23801), + 57: uint16(23802), + 58: uint16(23804), + 59: uint16(23805), + 60: uint16(23806), + 61: uint16(23807), + 62: uint16(23808), + 63: uint16(23809), + 64: uint16(23812), + 65: uint16(23813), + 66: uint16(23816), + 67: uint16(23817), + 68: uint16(23818), + 69: uint16(23819), + 70: uint16(23820), + 71: uint16(23821), + 72: uint16(23823), + 73: uint16(23824), + 74: uint16(23825), + 75: uint16(23826), + 76: uint16(23827), + 77: uint16(23829), + 78: uint16(23831), + 79: uint16(23832), + 80: uint16(23833), + 81: uint16(23834), + 82: uint16(23836), + 83: uint16(23837), + 84: uint16(23839), + 85: uint16(23840), + 86: uint16(23841), + 87: uint16(23842), + 88: uint16(23843), + 89: uint16(23845), + 90: uint16(23848), + 91: uint16(23850), + 92: uint16(23851), + 93: uint16(23852), + 94: uint16(23855), + 95: uint16(23856), + 96: uint16(23857), + 97: uint16(23858), + 98: uint16(23859), + 99: uint16(23861), + 100: uint16(23862), + 101: uint16(23863), + 102: uint16(23864), + 103: uint16(23865), + 104: uint16(23866), + 105: uint16(23867), + 106: uint16(23868), + 107: uint16(23871), + 108: uint16(23872), + 109: uint16(23873), + 110: uint16(23874), + 111: uint16(23875), + 112: uint16(23876), + 113: uint16(23877), + 114: uint16(23878), + 115: uint16(23880), + 116: uint16(23881), + 117: uint16(23885), + 118: uint16(23886), + 119: uint16(23887), + 120: uint16(23888), + 121: uint16(23889), + 122: uint16(23890), + 123: uint16(23891), + 124: uint16(23892), + 125: uint16(23893), + 126: uint16(23894), + 127: uint16(23895), + 128: uint16(23897), + 129: uint16(23898), + 130: uint16(23900), + 131: uint16(23902), + 132: uint16(23903), + 133: uint16(23904), + 134: uint16(23905), + 135: uint16(23906), + 136: uint16(23907), + 137: uint16(23908), + 138: uint16(23909), + 139: uint16(23910), + 140: uint16(23911), + 141: uint16(23912), + 142: uint16(23914), + 143: uint16(23917), + 144: uint16(23918), + 145: uint16(23920), + 146: uint16(23921), + 147: uint16(23922), + 148: uint16(23923), + 149: uint16(23925), + 150: uint16(23926), + 151: uint16(23927), + 152: uint16(23928), + 153: uint16(23929), + 154: uint16(23930), + 155: uint16(23931), + 156: uint16(23932), + 157: uint16(23933), + 158: uint16(23934), + 159: uint16(23935), + 160: uint16(23936), + 161: uint16(23937), + 162: uint16(23939), + 163: uint16(23940), + 164: uint16(23941), + 165: uint16(23942), + 166: uint16(23943), + 167: uint16(23944), + 168: uint16(23945), + 169: uint16(23946), + 170: uint16(23947), + 171: uint16(23948), + 172: uint16(23949), + 173: uint16(23950), + 174: uint16(23951), + 175: uint16(23952), + 176: uint16(23953), + 177: uint16(23954), + 178: uint16(23955), + 179: uint16(23956), + 180: uint16(23957), + 181: uint16(23958), + 182: uint16(23959), + 183: uint16(23960), + 184: uint16(23962), + 185: uint16(23963), + 186: uint16(23964), + 187: uint16(23966), + 188: uint16(23967), + 189: uint16(23968), + }, + 13: { + 0: uint16(23969), + 1: uint16(23970), + 2: uint16(23971), + 3: uint16(23972), + 4: uint16(23973), + 5: uint16(23974), + 6: uint16(23975), + 7: uint16(23976), + 8: uint16(23977), + 9: uint16(23978), + 10: uint16(23979), + 11: uint16(23980), + 12: uint16(23981), + 13: uint16(23982), + 14: uint16(23983), + 15: uint16(23984), + 16: uint16(23985), + 17: uint16(23986), + 18: uint16(23987), + 19: uint16(23988), + 20: uint16(23989), + 21: uint16(23990), + 22: uint16(23992), + 23: uint16(23993), + 24: uint16(23994), + 25: uint16(23995), + 26: uint16(23996), + 27: uint16(23997), + 28: uint16(23998), + 29: uint16(23999), + 30: uint16(24000), + 31: uint16(24001), + 32: uint16(24002), + 33: uint16(24003), + 34: uint16(24004), + 35: uint16(24006), + 36: uint16(24007), + 37: uint16(24008), + 38: uint16(24009), + 39: uint16(24010), + 40: uint16(24011), + 41: uint16(24012), + 42: uint16(24014), + 43: uint16(24015), + 44: uint16(24016), + 45: uint16(24017), + 46: uint16(24018), + 47: uint16(24019), + 48: uint16(24020), + 49: uint16(24021), + 50: uint16(24022), + 51: uint16(24023), + 52: uint16(24024), + 53: uint16(24025), + 54: uint16(24026), + 55: uint16(24028), + 56: uint16(24031), + 57: uint16(24032), + 58: uint16(24035), + 59: uint16(24036), + 60: uint16(24042), + 61: uint16(24044), + 62: uint16(24045), + 63: uint16(24048), + 64: uint16(24053), + 65: uint16(24054), + 66: uint16(24056), + 67: uint16(24057), + 68: uint16(24058), + 69: uint16(24059), + 70: uint16(24060), + 71: uint16(24063), + 72: uint16(24064), + 73: uint16(24068), + 74: uint16(24071), + 75: uint16(24073), + 76: uint16(24074), + 77: uint16(24075), + 78: uint16(24077), + 79: uint16(24078), + 80: uint16(24082), + 81: uint16(24083), + 82: uint16(24087), + 83: uint16(24094), + 84: uint16(24095), + 85: uint16(24096), + 86: uint16(24097), + 87: uint16(24098), + 88: uint16(24099), + 89: uint16(24100), + 90: uint16(24101), + 91: uint16(24104), + 92: uint16(24105), + 93: uint16(24106), + 94: uint16(24107), + 95: uint16(24108), + 96: uint16(24111), + 97: uint16(24112), + 98: uint16(24114), + 99: uint16(24115), + 100: uint16(24116), + 101: uint16(24117), + 102: uint16(24118), + 103: uint16(24121), + 104: uint16(24122), + 105: uint16(24126), + 106: uint16(24127), + 107: uint16(24128), + 108: uint16(24129), + 109: uint16(24131), + 110: uint16(24134), + 111: uint16(24135), + 112: uint16(24136), + 113: uint16(24137), + 114: uint16(24138), + 115: uint16(24139), + 116: uint16(24141), + 117: uint16(24142), + 118: uint16(24143), + 119: uint16(24144), + 120: uint16(24145), + 121: uint16(24146), + 122: uint16(24147), + 123: uint16(24150), + 124: uint16(24151), + 125: uint16(24152), + 126: uint16(24153), + 127: uint16(24154), + 128: uint16(24156), + 129: uint16(24157), + 130: uint16(24159), + 131: uint16(24160), + 132: uint16(24163), + 133: uint16(24164), + 134: uint16(24165), + 135: uint16(24166), + 136: uint16(24167), + 137: uint16(24168), + 138: uint16(24169), + 139: uint16(24170), + 140: uint16(24171), + 141: uint16(24172), + 142: uint16(24173), + 143: uint16(24174), + 144: uint16(24175), + 145: uint16(24176), + 146: uint16(24177), + 147: uint16(24181), + 148: uint16(24183), + 149: uint16(24185), + 150: uint16(24190), + 151: uint16(24193), + 152: uint16(24194), + 153: uint16(24195), + 154: uint16(24197), + 155: uint16(24200), + 156: uint16(24201), + 157: uint16(24204), + 158: uint16(24205), + 159: uint16(24206), + 160: uint16(24210), + 161: uint16(24216), + 162: uint16(24219), + 163: uint16(24221), + 164: uint16(24225), + 165: uint16(24226), + 166: uint16(24227), + 167: uint16(24228), + 168: uint16(24232), + 169: uint16(24233), + 170: uint16(24234), + 171: uint16(24235), + 172: uint16(24236), + 173: uint16(24238), + 174: uint16(24239), + 175: uint16(24240), + 176: uint16(24241), + 177: uint16(24242), + 178: uint16(24244), + 179: uint16(24250), + 180: uint16(24251), + 181: uint16(24252), + 182: uint16(24253), + 183: uint16(24255), + 184: uint16(24256), + 185: uint16(24257), + 186: uint16(24258), + 187: uint16(24259), + 188: uint16(24260), + 189: uint16(24261), + }, + 14: { + 0: uint16(24262), + 1: uint16(24263), + 2: uint16(24264), + 3: uint16(24267), + 4: uint16(24268), + 5: uint16(24269), + 6: uint16(24270), + 7: uint16(24271), + 8: uint16(24272), + 9: uint16(24276), + 10: uint16(24277), + 11: uint16(24279), + 12: uint16(24280), + 13: uint16(24281), + 14: uint16(24282), + 15: uint16(24284), + 16: uint16(24285), + 17: uint16(24286), + 18: uint16(24287), + 19: uint16(24288), + 20: uint16(24289), + 21: uint16(24290), + 22: uint16(24291), + 23: uint16(24292), + 24: uint16(24293), + 25: uint16(24294), + 26: uint16(24295), + 27: uint16(24297), + 28: uint16(24299), + 29: uint16(24300), + 30: uint16(24301), + 31: uint16(24302), + 32: uint16(24303), + 33: uint16(24304), + 34: uint16(24305), + 35: uint16(24306), + 36: uint16(24307), + 37: uint16(24309), + 38: uint16(24312), + 39: uint16(24313), + 40: uint16(24315), + 41: uint16(24316), + 42: uint16(24317), + 43: uint16(24325), + 44: uint16(24326), + 45: uint16(24327), + 46: uint16(24329), + 47: uint16(24332), + 48: uint16(24333), + 49: uint16(24334), + 50: uint16(24336), + 51: uint16(24338), + 52: uint16(24340), + 53: uint16(24342), + 54: uint16(24345), + 55: uint16(24346), + 56: uint16(24348), + 57: uint16(24349), + 58: uint16(24350), + 59: uint16(24353), + 60: uint16(24354), + 61: uint16(24355), + 62: uint16(24356), + 63: uint16(24360), + 64: uint16(24363), + 65: uint16(24364), + 66: uint16(24366), + 67: uint16(24368), + 68: uint16(24370), + 69: uint16(24371), + 70: uint16(24372), + 71: uint16(24373), + 72: uint16(24374), + 73: uint16(24375), + 74: uint16(24376), + 75: uint16(24379), + 76: uint16(24381), + 77: uint16(24382), + 78: uint16(24383), + 79: uint16(24385), + 80: uint16(24386), + 81: uint16(24387), + 82: uint16(24388), + 83: uint16(24389), + 84: uint16(24390), + 85: uint16(24391), + 86: uint16(24392), + 87: uint16(24393), + 88: uint16(24394), + 89: uint16(24395), + 90: uint16(24396), + 91: uint16(24397), + 92: uint16(24398), + 93: uint16(24399), + 94: uint16(24401), + 95: uint16(24404), + 96: uint16(24409), + 97: uint16(24410), + 98: uint16(24411), + 99: uint16(24412), + 100: uint16(24414), + 101: uint16(24415), + 102: uint16(24416), + 103: uint16(24419), + 104: uint16(24421), + 105: uint16(24423), + 106: uint16(24424), + 107: uint16(24427), + 108: uint16(24430), + 109: uint16(24431), + 110: uint16(24434), + 111: uint16(24436), + 112: uint16(24437), + 113: uint16(24438), + 114: uint16(24440), + 115: uint16(24442), + 116: uint16(24445), + 117: uint16(24446), + 118: uint16(24447), + 119: uint16(24451), + 120: uint16(24454), + 121: uint16(24461), + 122: uint16(24462), + 123: uint16(24463), + 124: uint16(24465), + 125: uint16(24467), + 126: uint16(24468), + 127: uint16(24470), + 128: uint16(24474), + 129: uint16(24475), + 130: uint16(24477), + 131: uint16(24478), + 132: uint16(24479), + 133: uint16(24480), + 134: uint16(24482), + 135: uint16(24483), + 136: uint16(24484), + 137: uint16(24485), + 138: uint16(24486), + 139: uint16(24487), + 140: uint16(24489), + 141: uint16(24491), + 142: uint16(24492), + 143: uint16(24495), + 144: uint16(24496), + 145: uint16(24497), + 146: uint16(24498), + 147: uint16(24499), + 148: uint16(24500), + 149: uint16(24502), + 150: uint16(24504), + 151: uint16(24505), + 152: uint16(24506), + 153: uint16(24507), + 154: uint16(24510), + 155: uint16(24511), + 156: uint16(24512), + 157: uint16(24513), + 158: uint16(24514), + 159: uint16(24519), + 160: uint16(24520), + 161: uint16(24522), + 162: uint16(24523), + 163: uint16(24526), + 164: uint16(24531), + 165: uint16(24532), + 166: uint16(24533), + 167: uint16(24538), + 168: uint16(24539), + 169: uint16(24540), + 170: uint16(24542), + 171: uint16(24543), + 172: uint16(24546), + 173: uint16(24547), + 174: uint16(24549), + 175: uint16(24550), + 176: uint16(24552), + 177: uint16(24553), + 178: uint16(24556), + 179: uint16(24559), + 180: uint16(24560), + 181: uint16(24562), + 182: uint16(24563), + 183: uint16(24564), + 184: uint16(24566), + 185: uint16(24567), + 186: uint16(24569), + 187: uint16(24570), + 188: uint16(24572), + 189: uint16(24583), + }, + 15: { + 0: uint16(24584), + 1: uint16(24585), + 2: uint16(24587), + 3: uint16(24588), + 4: uint16(24592), + 5: uint16(24593), + 6: uint16(24595), + 7: uint16(24599), + 8: uint16(24600), + 9: uint16(24602), + 10: uint16(24606), + 11: uint16(24607), + 12: uint16(24610), + 13: uint16(24611), + 14: uint16(24612), + 15: uint16(24620), + 16: uint16(24621), + 17: uint16(24622), + 18: uint16(24624), + 19: uint16(24625), + 20: uint16(24626), + 21: uint16(24627), + 22: uint16(24628), + 23: uint16(24630), + 24: uint16(24631), + 25: uint16(24632), + 26: uint16(24633), + 27: uint16(24634), + 28: uint16(24637), + 29: uint16(24638), + 30: uint16(24640), + 31: uint16(24644), + 32: uint16(24645), + 33: uint16(24646), + 34: uint16(24647), + 35: uint16(24648), + 36: uint16(24649), + 37: uint16(24650), + 38: uint16(24652), + 39: uint16(24654), + 40: uint16(24655), + 41: uint16(24657), + 42: uint16(24659), + 43: uint16(24660), + 44: uint16(24662), + 45: uint16(24663), + 46: uint16(24664), + 47: uint16(24667), + 48: uint16(24668), + 49: uint16(24670), + 50: uint16(24671), + 51: uint16(24672), + 52: uint16(24673), + 53: uint16(24677), + 54: uint16(24678), + 55: uint16(24686), + 56: uint16(24689), + 57: uint16(24690), + 58: uint16(24692), + 59: uint16(24693), + 60: uint16(24695), + 61: uint16(24702), + 62: uint16(24704), + 63: uint16(24705), + 64: uint16(24706), + 65: uint16(24709), + 66: uint16(24710), + 67: uint16(24711), + 68: uint16(24712), + 69: uint16(24714), + 70: uint16(24715), + 71: uint16(24718), + 72: uint16(24719), + 73: uint16(24720), + 74: uint16(24721), + 75: uint16(24723), + 76: uint16(24725), + 77: uint16(24727), + 78: uint16(24728), + 79: uint16(24729), + 80: uint16(24732), + 81: uint16(24734), + 82: uint16(24737), + 83: uint16(24738), + 84: uint16(24740), + 85: uint16(24741), + 86: uint16(24743), + 87: uint16(24745), + 88: uint16(24746), + 89: uint16(24750), + 90: uint16(24752), + 91: uint16(24755), + 92: uint16(24757), + 93: uint16(24758), + 94: uint16(24759), + 95: uint16(24761), + 96: uint16(24762), + 97: uint16(24765), + 98: uint16(24766), + 99: uint16(24767), + 100: uint16(24768), + 101: uint16(24769), + 102: uint16(24770), + 103: uint16(24771), + 104: uint16(24772), + 105: uint16(24775), + 106: uint16(24776), + 107: uint16(24777), + 108: uint16(24780), + 109: uint16(24781), + 110: uint16(24782), + 111: uint16(24783), + 112: uint16(24784), + 113: uint16(24786), + 114: uint16(24787), + 115: uint16(24788), + 116: uint16(24790), + 117: uint16(24791), + 118: uint16(24793), + 119: uint16(24795), + 120: uint16(24798), + 121: uint16(24801), + 122: uint16(24802), + 123: uint16(24803), + 124: uint16(24804), + 125: uint16(24805), + 126: uint16(24810), + 127: uint16(24817), + 128: uint16(24818), + 129: uint16(24821), + 130: uint16(24823), + 131: uint16(24824), + 132: uint16(24827), + 133: uint16(24828), + 134: uint16(24829), + 135: uint16(24830), + 136: uint16(24831), + 137: uint16(24834), + 138: uint16(24835), + 139: uint16(24836), + 140: uint16(24837), + 141: uint16(24839), + 142: uint16(24842), + 143: uint16(24843), + 144: uint16(24844), + 145: uint16(24848), + 146: uint16(24849), + 147: uint16(24850), + 148: uint16(24851), + 149: uint16(24852), + 150: uint16(24854), + 151: uint16(24855), + 152: uint16(24856), + 153: uint16(24857), + 154: uint16(24859), + 155: uint16(24860), + 156: uint16(24861), + 157: uint16(24862), + 158: uint16(24865), + 159: uint16(24866), + 160: uint16(24869), + 161: uint16(24872), + 162: uint16(24873), + 163: uint16(24874), + 164: uint16(24876), + 165: uint16(24877), + 166: uint16(24878), + 167: uint16(24879), + 168: uint16(24880), + 169: uint16(24881), + 170: uint16(24882), + 171: uint16(24883), + 172: uint16(24884), + 173: uint16(24885), + 174: uint16(24886), + 175: uint16(24887), + 176: uint16(24888), + 177: uint16(24889), + 178: uint16(24890), + 179: uint16(24891), + 180: uint16(24892), + 181: uint16(24893), + 182: uint16(24894), + 183: uint16(24896), + 184: uint16(24897), + 185: uint16(24898), + 186: uint16(24899), + 187: uint16(24900), + 188: uint16(24901), + 189: uint16(24902), + }, + 16: { + 0: uint16(24903), + 1: uint16(24905), + 2: uint16(24907), + 3: uint16(24909), + 4: uint16(24911), + 5: uint16(24912), + 6: uint16(24914), + 7: uint16(24915), + 8: uint16(24916), + 9: uint16(24918), + 10: uint16(24919), + 11: uint16(24920), + 12: uint16(24921), + 13: uint16(24922), + 14: uint16(24923), + 15: uint16(24924), + 16: uint16(24926), + 17: uint16(24927), + 18: uint16(24928), + 19: uint16(24929), + 20: uint16(24931), + 21: uint16(24932), + 22: uint16(24933), + 23: uint16(24934), + 24: uint16(24937), + 25: uint16(24938), + 26: uint16(24939), + 27: uint16(24940), + 28: uint16(24941), + 29: uint16(24942), + 30: uint16(24943), + 31: uint16(24945), + 32: uint16(24946), + 33: uint16(24947), + 34: uint16(24948), + 35: uint16(24950), + 36: uint16(24952), + 37: uint16(24953), + 38: uint16(24954), + 39: uint16(24955), + 40: uint16(24956), + 41: uint16(24957), + 42: uint16(24958), + 43: uint16(24959), + 44: uint16(24960), + 45: uint16(24961), + 46: uint16(24962), + 47: uint16(24963), + 48: uint16(24964), + 49: uint16(24965), + 50: uint16(24966), + 51: uint16(24967), + 52: uint16(24968), + 53: uint16(24969), + 54: uint16(24970), + 55: uint16(24972), + 56: uint16(24973), + 57: uint16(24975), + 58: uint16(24976), + 59: uint16(24977), + 60: uint16(24978), + 61: uint16(24979), + 62: uint16(24981), + 63: uint16(24982), + 64: uint16(24983), + 65: uint16(24984), + 66: uint16(24985), + 67: uint16(24986), + 68: uint16(24987), + 69: uint16(24988), + 70: uint16(24990), + 71: uint16(24991), + 72: uint16(24992), + 73: uint16(24993), + 74: uint16(24994), + 75: uint16(24995), + 76: uint16(24996), + 77: uint16(24997), + 78: uint16(24998), + 79: uint16(25002), + 80: uint16(25003), + 81: uint16(25005), + 82: uint16(25006), + 83: uint16(25007), + 84: uint16(25008), + 85: uint16(25009), + 86: uint16(25010), + 87: uint16(25011), + 88: uint16(25012), + 89: uint16(25013), + 90: uint16(25014), + 91: uint16(25016), + 92: uint16(25017), + 93: uint16(25018), + 94: uint16(25019), + 95: uint16(25020), + 96: uint16(25021), + 97: uint16(25023), + 98: uint16(25024), + 99: uint16(25025), + 100: uint16(25027), + 101: uint16(25028), + 102: uint16(25029), + 103: uint16(25030), + 104: uint16(25031), + 105: uint16(25033), + 106: uint16(25036), + 107: uint16(25037), + 108: uint16(25038), + 109: uint16(25039), + 110: uint16(25040), + 111: uint16(25043), + 112: uint16(25045), + 113: uint16(25046), + 114: uint16(25047), + 115: uint16(25048), + 116: uint16(25049), + 117: uint16(25050), + 118: uint16(25051), + 119: uint16(25052), + 120: uint16(25053), + 121: uint16(25054), + 122: uint16(25055), + 123: uint16(25056), + 124: uint16(25057), + 125: uint16(25058), + 126: uint16(25059), + 127: uint16(25060), + 128: uint16(25061), + 129: uint16(25063), + 130: uint16(25064), + 131: uint16(25065), + 132: uint16(25066), + 133: uint16(25067), + 134: uint16(25068), + 135: uint16(25069), + 136: uint16(25070), + 137: uint16(25071), + 138: uint16(25072), + 139: uint16(25073), + 140: uint16(25074), + 141: uint16(25075), + 142: uint16(25076), + 143: uint16(25078), + 144: uint16(25079), + 145: uint16(25080), + 146: uint16(25081), + 147: uint16(25082), + 148: uint16(25083), + 149: uint16(25084), + 150: uint16(25085), + 151: uint16(25086), + 152: uint16(25088), + 153: uint16(25089), + 154: uint16(25090), + 155: uint16(25091), + 156: uint16(25092), + 157: uint16(25093), + 158: uint16(25095), + 159: uint16(25097), + 160: uint16(25107), + 161: uint16(25108), + 162: uint16(25113), + 163: uint16(25116), + 164: uint16(25117), + 165: uint16(25118), + 166: uint16(25120), + 167: uint16(25123), + 168: uint16(25126), + 169: uint16(25127), + 170: uint16(25128), + 171: uint16(25129), + 172: uint16(25131), + 173: uint16(25133), + 174: uint16(25135), + 175: uint16(25136), + 176: uint16(25137), + 177: uint16(25138), + 178: uint16(25141), + 179: uint16(25142), + 180: uint16(25144), + 181: uint16(25145), + 182: uint16(25146), + 183: uint16(25147), + 184: uint16(25148), + 185: uint16(25154), + 186: uint16(25156), + 187: uint16(25157), + 188: uint16(25158), + 189: uint16(25162), + }, + 17: { + 0: uint16(25167), + 1: uint16(25168), + 2: uint16(25173), + 3: uint16(25174), + 4: uint16(25175), + 5: uint16(25177), + 6: uint16(25178), + 7: uint16(25180), + 8: uint16(25181), + 9: uint16(25182), + 10: uint16(25183), + 11: uint16(25184), + 12: uint16(25185), + 13: uint16(25186), + 14: uint16(25188), + 15: uint16(25189), + 16: uint16(25192), + 17: uint16(25201), + 18: uint16(25202), + 19: uint16(25204), + 20: uint16(25205), + 21: uint16(25207), + 22: uint16(25208), + 23: uint16(25210), + 24: uint16(25211), + 25: uint16(25213), + 26: uint16(25217), + 27: uint16(25218), + 28: uint16(25219), + 29: uint16(25221), + 30: uint16(25222), + 31: uint16(25223), + 32: uint16(25224), + 33: uint16(25227), + 34: uint16(25228), + 35: uint16(25229), + 36: uint16(25230), + 37: uint16(25231), + 38: uint16(25232), + 39: uint16(25236), + 40: uint16(25241), + 41: uint16(25244), + 42: uint16(25245), + 43: uint16(25246), + 44: uint16(25251), + 45: uint16(25254), + 46: uint16(25255), + 47: uint16(25257), + 48: uint16(25258), + 49: uint16(25261), + 50: uint16(25262), + 51: uint16(25263), + 52: uint16(25264), + 53: uint16(25266), + 54: uint16(25267), + 55: uint16(25268), + 56: uint16(25270), + 57: uint16(25271), + 58: uint16(25272), + 59: uint16(25274), + 60: uint16(25278), + 61: uint16(25280), + 62: uint16(25281), + 63: uint16(25283), + 64: uint16(25291), + 65: uint16(25295), + 66: uint16(25297), + 67: uint16(25301), + 68: uint16(25309), + 69: uint16(25310), + 70: uint16(25312), + 71: uint16(25313), + 72: uint16(25316), + 73: uint16(25322), + 74: uint16(25323), + 75: uint16(25328), + 76: uint16(25330), + 77: uint16(25333), + 78: uint16(25336), + 79: uint16(25337), + 80: uint16(25338), + 81: uint16(25339), + 82: uint16(25344), + 83: uint16(25347), + 84: uint16(25348), + 85: uint16(25349), + 86: uint16(25350), + 87: uint16(25354), + 88: uint16(25355), + 89: uint16(25356), + 90: uint16(25357), + 91: uint16(25359), + 92: uint16(25360), + 93: uint16(25362), + 94: uint16(25363), + 95: uint16(25364), + 96: uint16(25365), + 97: uint16(25367), + 98: uint16(25368), + 99: uint16(25369), + 100: uint16(25372), + 101: uint16(25382), + 102: uint16(25383), + 103: uint16(25385), + 104: uint16(25388), + 105: uint16(25389), + 106: uint16(25390), + 107: uint16(25392), + 108: uint16(25393), + 109: uint16(25395), + 110: uint16(25396), + 111: uint16(25397), + 112: uint16(25398), + 113: uint16(25399), + 114: uint16(25400), + 115: uint16(25403), + 116: uint16(25404), + 117: uint16(25406), + 118: uint16(25407), + 119: uint16(25408), + 120: uint16(25409), + 121: uint16(25412), + 122: uint16(25415), + 123: uint16(25416), + 124: uint16(25418), + 125: uint16(25425), + 126: uint16(25426), + 127: uint16(25427), + 128: uint16(25428), + 129: uint16(25430), + 130: uint16(25431), + 131: uint16(25432), + 132: uint16(25433), + 133: uint16(25434), + 134: uint16(25435), + 135: uint16(25436), + 136: uint16(25437), + 137: uint16(25440), + 138: uint16(25444), + 139: uint16(25445), + 140: uint16(25446), + 141: uint16(25448), + 142: uint16(25450), + 143: uint16(25451), + 144: uint16(25452), + 145: uint16(25455), + 146: uint16(25456), + 147: uint16(25458), + 148: uint16(25459), + 149: uint16(25460), + 150: uint16(25461), + 151: uint16(25464), + 152: uint16(25465), + 153: uint16(25468), + 154: uint16(25469), + 155: uint16(25470), + 156: uint16(25471), + 157: uint16(25473), + 158: uint16(25475), + 159: uint16(25476), + 160: uint16(25477), + 161: uint16(25478), + 162: uint16(25483), + 163: uint16(25485), + 164: uint16(25489), + 165: uint16(25491), + 166: uint16(25492), + 167: uint16(25493), + 168: uint16(25495), + 169: uint16(25497), + 170: uint16(25498), + 171: uint16(25499), + 172: uint16(25500), + 173: uint16(25501), + 174: uint16(25502), + 175: uint16(25503), + 176: uint16(25505), + 177: uint16(25508), + 178: uint16(25510), + 179: uint16(25515), + 180: uint16(25519), + 181: uint16(25521), + 182: uint16(25522), + 183: uint16(25525), + 184: uint16(25526), + 185: uint16(25529), + 186: uint16(25531), + 187: uint16(25533), + 188: uint16(25535), + 189: uint16(25536), + }, + 18: { + 0: uint16(25537), + 1: uint16(25538), + 2: uint16(25539), + 3: uint16(25541), + 4: uint16(25543), + 5: uint16(25544), + 6: uint16(25546), + 7: uint16(25547), + 8: uint16(25548), + 9: uint16(25553), + 10: uint16(25555), + 11: uint16(25556), + 12: uint16(25557), + 13: uint16(25559), + 14: uint16(25560), + 15: uint16(25561), + 16: uint16(25562), + 17: uint16(25563), + 18: uint16(25564), + 19: uint16(25565), + 20: uint16(25567), + 21: uint16(25570), + 22: uint16(25572), + 23: uint16(25573), + 24: uint16(25574), + 25: uint16(25575), + 26: uint16(25576), + 27: uint16(25579), + 28: uint16(25580), + 29: uint16(25582), + 30: uint16(25583), + 31: uint16(25584), + 32: uint16(25585), + 33: uint16(25587), + 34: uint16(25589), + 35: uint16(25591), + 36: uint16(25593), + 37: uint16(25594), + 38: uint16(25595), + 39: uint16(25596), + 40: uint16(25598), + 41: uint16(25603), + 42: uint16(25604), + 43: uint16(25606), + 44: uint16(25607), + 45: uint16(25608), + 46: uint16(25609), + 47: uint16(25610), + 48: uint16(25613), + 49: uint16(25614), + 50: uint16(25617), + 51: uint16(25618), + 52: uint16(25621), + 53: uint16(25622), + 54: uint16(25623), + 55: uint16(25624), + 56: uint16(25625), + 57: uint16(25626), + 58: uint16(25629), + 59: uint16(25631), + 60: uint16(25634), + 61: uint16(25635), + 62: uint16(25636), + 63: uint16(25637), + 64: uint16(25639), + 65: uint16(25640), + 66: uint16(25641), + 67: uint16(25643), + 68: uint16(25646), + 69: uint16(25647), + 70: uint16(25648), + 71: uint16(25649), + 72: uint16(25650), + 73: uint16(25651), + 74: uint16(25653), + 75: uint16(25654), + 76: uint16(25655), + 77: uint16(25656), + 78: uint16(25657), + 79: uint16(25659), + 80: uint16(25660), + 81: uint16(25662), + 82: uint16(25664), + 83: uint16(25666), + 84: uint16(25667), + 85: uint16(25673), + 86: uint16(25675), + 87: uint16(25676), + 88: uint16(25677), + 89: uint16(25678), + 90: uint16(25679), + 91: uint16(25680), + 92: uint16(25681), + 93: uint16(25683), + 94: uint16(25685), + 95: uint16(25686), + 96: uint16(25687), + 97: uint16(25689), + 98: uint16(25690), + 99: uint16(25691), + 100: uint16(25692), + 101: uint16(25693), + 102: uint16(25695), + 103: uint16(25696), + 104: uint16(25697), + 105: uint16(25698), + 106: uint16(25699), + 107: uint16(25700), + 108: uint16(25701), + 109: uint16(25702), + 110: uint16(25704), + 111: uint16(25706), + 112: uint16(25707), + 113: uint16(25708), + 114: uint16(25710), + 115: uint16(25711), + 116: uint16(25712), + 117: uint16(25713), + 118: uint16(25714), + 119: uint16(25715), + 120: uint16(25716), + 121: uint16(25717), + 122: uint16(25718), + 123: uint16(25719), + 124: uint16(25723), + 125: uint16(25724), + 126: uint16(25725), + 127: uint16(25726), + 128: uint16(25727), + 129: uint16(25728), + 130: uint16(25729), + 131: uint16(25731), + 132: uint16(25734), + 133: uint16(25736), + 134: uint16(25737), + 135: uint16(25738), + 136: uint16(25739), + 137: uint16(25740), + 138: uint16(25741), + 139: uint16(25742), + 140: uint16(25743), + 141: uint16(25744), + 142: uint16(25747), + 143: uint16(25748), + 144: uint16(25751), + 145: uint16(25752), + 146: uint16(25754), + 147: uint16(25755), + 148: uint16(25756), + 149: uint16(25757), + 150: uint16(25759), + 151: uint16(25760), + 152: uint16(25761), + 153: uint16(25762), + 154: uint16(25763), + 155: uint16(25765), + 156: uint16(25766), + 157: uint16(25767), + 158: uint16(25768), + 159: uint16(25770), + 160: uint16(25771), + 161: uint16(25775), + 162: uint16(25777), + 163: uint16(25778), + 164: uint16(25779), + 165: uint16(25780), + 166: uint16(25782), + 167: uint16(25785), + 168: uint16(25787), + 169: uint16(25789), + 170: uint16(25790), + 171: uint16(25791), + 172: uint16(25793), + 173: uint16(25795), + 174: uint16(25796), + 175: uint16(25798), + 176: uint16(25799), + 177: uint16(25800), + 178: uint16(25801), + 179: uint16(25802), + 180: uint16(25803), + 181: uint16(25804), + 182: uint16(25807), + 183: uint16(25809), + 184: uint16(25811), + 185: uint16(25812), + 186: uint16(25813), + 187: uint16(25814), + 188: uint16(25817), + 189: uint16(25818), + }, + 19: { + 0: uint16(25819), + 1: uint16(25820), + 2: uint16(25821), + 3: uint16(25823), + 4: uint16(25824), + 5: uint16(25825), + 6: uint16(25827), + 7: uint16(25829), + 8: uint16(25831), + 9: uint16(25832), + 10: uint16(25833), + 11: uint16(25834), + 12: uint16(25835), + 13: uint16(25836), + 14: uint16(25837), + 15: uint16(25838), + 16: uint16(25839), + 17: uint16(25840), + 18: uint16(25841), + 19: uint16(25842), + 20: uint16(25843), + 21: uint16(25844), + 22: uint16(25845), + 23: uint16(25846), + 24: uint16(25847), + 25: uint16(25848), + 26: uint16(25849), + 27: uint16(25850), + 28: uint16(25851), + 29: uint16(25852), + 30: uint16(25853), + 31: uint16(25854), + 32: uint16(25855), + 33: uint16(25857), + 34: uint16(25858), + 35: uint16(25859), + 36: uint16(25860), + 37: uint16(25861), + 38: uint16(25862), + 39: uint16(25863), + 40: uint16(25864), + 41: uint16(25866), + 42: uint16(25867), + 43: uint16(25868), + 44: uint16(25869), + 45: uint16(25870), + 46: uint16(25871), + 47: uint16(25872), + 48: uint16(25873), + 49: uint16(25875), + 50: uint16(25876), + 51: uint16(25877), + 52: uint16(25878), + 53: uint16(25879), + 54: uint16(25881), + 55: uint16(25882), + 56: uint16(25883), + 57: uint16(25884), + 58: uint16(25885), + 59: uint16(25886), + 60: uint16(25887), + 61: uint16(25888), + 62: uint16(25889), + 63: uint16(25890), + 64: uint16(25891), + 65: uint16(25892), + 66: uint16(25894), + 67: uint16(25895), + 68: uint16(25896), + 69: uint16(25897), + 70: uint16(25898), + 71: uint16(25900), + 72: uint16(25901), + 73: uint16(25904), + 74: uint16(25905), + 75: uint16(25906), + 76: uint16(25907), + 77: uint16(25911), + 78: uint16(25914), + 79: uint16(25916), + 80: uint16(25917), + 81: uint16(25920), + 82: uint16(25921), + 83: uint16(25922), + 84: uint16(25923), + 85: uint16(25924), + 86: uint16(25926), + 87: uint16(25927), + 88: uint16(25930), + 89: uint16(25931), + 90: uint16(25933), + 91: uint16(25934), + 92: uint16(25936), + 93: uint16(25938), + 94: uint16(25939), + 95: uint16(25940), + 96: uint16(25943), + 97: uint16(25944), + 98: uint16(25946), + 99: uint16(25948), + 100: uint16(25951), + 101: uint16(25952), + 102: uint16(25953), + 103: uint16(25956), + 104: uint16(25957), + 105: uint16(25959), + 106: uint16(25960), + 107: uint16(25961), + 108: uint16(25962), + 109: uint16(25965), + 110: uint16(25966), + 111: uint16(25967), + 112: uint16(25969), + 113: uint16(25971), + 114: uint16(25973), + 115: uint16(25974), + 116: uint16(25976), + 117: uint16(25977), + 118: uint16(25978), + 119: uint16(25979), + 120: uint16(25980), + 121: uint16(25981), + 122: uint16(25982), + 123: uint16(25983), + 124: uint16(25984), + 125: uint16(25985), + 126: uint16(25986), + 127: uint16(25987), + 128: uint16(25988), + 129: uint16(25989), + 130: uint16(25990), + 131: uint16(25992), + 132: uint16(25993), + 133: uint16(25994), + 134: uint16(25997), + 135: uint16(25998), + 136: uint16(25999), + 137: uint16(26002), + 138: uint16(26004), + 139: uint16(26005), + 140: uint16(26006), + 141: uint16(26008), + 142: uint16(26010), + 143: uint16(26013), + 144: uint16(26014), + 145: uint16(26016), + 146: uint16(26018), + 147: uint16(26019), + 148: uint16(26022), + 149: uint16(26024), + 150: uint16(26026), + 151: uint16(26028), + 152: uint16(26030), + 153: uint16(26033), + 154: uint16(26034), + 155: uint16(26035), + 156: uint16(26036), + 157: uint16(26037), + 158: uint16(26038), + 159: uint16(26039), + 160: uint16(26040), + 161: uint16(26042), + 162: uint16(26043), + 163: uint16(26046), + 164: uint16(26047), + 165: uint16(26048), + 166: uint16(26050), + 167: uint16(26055), + 168: uint16(26056), + 169: uint16(26057), + 170: uint16(26058), + 171: uint16(26061), + 172: uint16(26064), + 173: uint16(26065), + 174: uint16(26067), + 175: uint16(26068), + 176: uint16(26069), + 177: uint16(26072), + 178: uint16(26073), + 179: uint16(26074), + 180: uint16(26075), + 181: uint16(26076), + 182: uint16(26077), + 183: uint16(26078), + 184: uint16(26079), + 185: uint16(26081), + 186: uint16(26083), + 187: uint16(26084), + 188: uint16(26090), + 189: uint16(26091), + }, + 20: { + 0: uint16(26098), + 1: uint16(26099), + 2: uint16(26100), + 3: uint16(26101), + 4: uint16(26104), + 5: uint16(26105), + 6: uint16(26107), + 7: uint16(26108), + 8: uint16(26109), + 9: uint16(26110), + 10: uint16(26111), + 11: uint16(26113), + 12: uint16(26116), + 13: uint16(26117), + 14: uint16(26119), + 15: uint16(26120), + 16: uint16(26121), + 17: uint16(26123), + 18: uint16(26125), + 19: uint16(26128), + 20: uint16(26129), + 21: uint16(26130), + 22: uint16(26134), + 23: uint16(26135), + 24: uint16(26136), + 25: uint16(26138), + 26: uint16(26139), + 27: uint16(26140), + 28: uint16(26142), + 29: uint16(26145), + 30: uint16(26146), + 31: uint16(26147), + 32: uint16(26148), + 33: uint16(26150), + 34: uint16(26153), + 35: uint16(26154), + 36: uint16(26155), + 37: uint16(26156), + 38: uint16(26158), + 39: uint16(26160), + 40: uint16(26162), + 41: uint16(26163), + 42: uint16(26167), + 43: uint16(26168), + 44: uint16(26169), + 45: uint16(26170), + 46: uint16(26171), + 47: uint16(26173), + 48: uint16(26175), + 49: uint16(26176), + 50: uint16(26178), + 51: uint16(26180), + 52: uint16(26181), + 53: uint16(26182), + 54: uint16(26183), + 55: uint16(26184), + 56: uint16(26185), + 57: uint16(26186), + 58: uint16(26189), + 59: uint16(26190), + 60: uint16(26192), + 61: uint16(26193), + 62: uint16(26200), + 63: uint16(26201), + 64: uint16(26203), + 65: uint16(26204), + 66: uint16(26205), + 67: uint16(26206), + 68: uint16(26208), + 69: uint16(26210), + 70: uint16(26211), + 71: uint16(26213), + 72: uint16(26215), + 73: uint16(26217), + 74: uint16(26218), + 75: uint16(26219), + 76: uint16(26220), + 77: uint16(26221), + 78: uint16(26225), + 79: uint16(26226), + 80: uint16(26227), + 81: uint16(26229), + 82: uint16(26232), + 83: uint16(26233), + 84: uint16(26235), + 85: uint16(26236), + 86: uint16(26237), + 87: uint16(26239), + 88: uint16(26240), + 89: uint16(26241), + 90: uint16(26243), + 91: uint16(26245), + 92: uint16(26246), + 93: uint16(26248), + 94: uint16(26249), + 95: uint16(26250), + 96: uint16(26251), + 97: uint16(26253), + 98: uint16(26254), + 99: uint16(26255), + 100: uint16(26256), + 101: uint16(26258), + 102: uint16(26259), + 103: uint16(26260), + 104: uint16(26261), + 105: uint16(26264), + 106: uint16(26265), + 107: uint16(26266), + 108: uint16(26267), + 109: uint16(26268), + 110: uint16(26270), + 111: uint16(26271), + 112: uint16(26272), + 113: uint16(26273), + 114: uint16(26274), + 115: uint16(26275), + 116: uint16(26276), + 117: uint16(26277), + 118: uint16(26278), + 119: uint16(26281), + 120: uint16(26282), + 121: uint16(26283), + 122: uint16(26284), + 123: uint16(26285), + 124: uint16(26287), + 125: uint16(26288), + 126: uint16(26289), + 127: uint16(26290), + 128: uint16(26291), + 129: uint16(26293), + 130: uint16(26294), + 131: uint16(26295), + 132: uint16(26296), + 133: uint16(26298), + 134: uint16(26299), + 135: uint16(26300), + 136: uint16(26301), + 137: uint16(26303), + 138: uint16(26304), + 139: uint16(26305), + 140: uint16(26306), + 141: uint16(26307), + 142: uint16(26308), + 143: uint16(26309), + 144: uint16(26310), + 145: uint16(26311), + 146: uint16(26312), + 147: uint16(26313), + 148: uint16(26314), + 149: uint16(26315), + 150: uint16(26316), + 151: uint16(26317), + 152: uint16(26318), + 153: uint16(26319), + 154: uint16(26320), + 155: uint16(26321), + 156: uint16(26322), + 157: uint16(26323), + 158: uint16(26324), + 159: uint16(26325), + 160: uint16(26326), + 161: uint16(26327), + 162: uint16(26328), + 163: uint16(26330), + 164: uint16(26334), + 165: uint16(26335), + 166: uint16(26336), + 167: uint16(26337), + 168: uint16(26338), + 169: uint16(26339), + 170: uint16(26340), + 171: uint16(26341), + 172: uint16(26343), + 173: uint16(26344), + 174: uint16(26346), + 175: uint16(26347), + 176: uint16(26348), + 177: uint16(26349), + 178: uint16(26350), + 179: uint16(26351), + 180: uint16(26353), + 181: uint16(26357), + 182: uint16(26358), + 183: uint16(26360), + 184: uint16(26362), + 185: uint16(26363), + 186: uint16(26365), + 187: uint16(26369), + 188: uint16(26370), + 189: uint16(26371), + }, + 21: { + 0: uint16(26372), + 1: uint16(26373), + 2: uint16(26374), + 3: uint16(26375), + 4: uint16(26380), + 5: uint16(26382), + 6: uint16(26383), + 7: uint16(26385), + 8: uint16(26386), + 9: uint16(26387), + 10: uint16(26390), + 11: uint16(26392), + 12: uint16(26393), + 13: uint16(26394), + 14: uint16(26396), + 15: uint16(26398), + 16: uint16(26400), + 17: uint16(26401), + 18: uint16(26402), + 19: uint16(26403), + 20: uint16(26404), + 21: uint16(26405), + 22: uint16(26407), + 23: uint16(26409), + 24: uint16(26414), + 25: uint16(26416), + 26: uint16(26418), + 27: uint16(26419), + 28: uint16(26422), + 29: uint16(26423), + 30: uint16(26424), + 31: uint16(26425), + 32: uint16(26427), + 33: uint16(26428), + 34: uint16(26430), + 35: uint16(26431), + 36: uint16(26433), + 37: uint16(26436), + 38: uint16(26437), + 39: uint16(26439), + 40: uint16(26442), + 41: uint16(26443), + 42: uint16(26445), + 43: uint16(26450), + 44: uint16(26452), + 45: uint16(26453), + 46: uint16(26455), + 47: uint16(26456), + 48: uint16(26457), + 49: uint16(26458), + 50: uint16(26459), + 51: uint16(26461), + 52: uint16(26466), + 53: uint16(26467), + 54: uint16(26468), + 55: uint16(26470), + 56: uint16(26471), + 57: uint16(26475), + 58: uint16(26476), + 59: uint16(26478), + 60: uint16(26481), + 61: uint16(26484), + 62: uint16(26486), + 63: uint16(26488), + 64: uint16(26489), + 65: uint16(26490), + 66: uint16(26491), + 67: uint16(26493), + 68: uint16(26496), + 69: uint16(26498), + 70: uint16(26499), + 71: uint16(26501), + 72: uint16(26502), + 73: uint16(26504), + 74: uint16(26506), + 75: uint16(26508), + 76: uint16(26509), + 77: uint16(26510), + 78: uint16(26511), + 79: uint16(26513), + 80: uint16(26514), + 81: uint16(26515), + 82: uint16(26516), + 83: uint16(26518), + 84: uint16(26521), + 85: uint16(26523), + 86: uint16(26527), + 87: uint16(26528), + 88: uint16(26529), + 89: uint16(26532), + 90: uint16(26534), + 91: uint16(26537), + 92: uint16(26540), + 93: uint16(26542), + 94: uint16(26545), + 95: uint16(26546), + 96: uint16(26548), + 97: uint16(26553), + 98: uint16(26554), + 99: uint16(26555), + 100: uint16(26556), + 101: uint16(26557), + 102: uint16(26558), + 103: uint16(26559), + 104: uint16(26560), + 105: uint16(26562), + 106: uint16(26565), + 107: uint16(26566), + 108: uint16(26567), + 109: uint16(26568), + 110: uint16(26569), + 111: uint16(26570), + 112: uint16(26571), + 113: uint16(26572), + 114: uint16(26573), + 115: uint16(26574), + 116: uint16(26581), + 117: uint16(26582), + 118: uint16(26583), + 119: uint16(26587), + 120: uint16(26591), + 121: uint16(26593), + 122: uint16(26595), + 123: uint16(26596), + 124: uint16(26598), + 125: uint16(26599), + 126: uint16(26600), + 127: uint16(26602), + 128: uint16(26603), + 129: uint16(26605), + 130: uint16(26606), + 131: uint16(26610), + 132: uint16(26613), + 133: uint16(26614), + 134: uint16(26615), + 135: uint16(26616), + 136: uint16(26617), + 137: uint16(26618), + 138: uint16(26619), + 139: uint16(26620), + 140: uint16(26622), + 141: uint16(26625), + 142: uint16(26626), + 143: uint16(26627), + 144: uint16(26628), + 145: uint16(26630), + 146: uint16(26637), + 147: uint16(26640), + 148: uint16(26642), + 149: uint16(26644), + 150: uint16(26645), + 151: uint16(26648), + 152: uint16(26649), + 153: uint16(26650), + 154: uint16(26651), + 155: uint16(26652), + 156: uint16(26654), + 157: uint16(26655), + 158: uint16(26656), + 159: uint16(26658), + 160: uint16(26659), + 161: uint16(26660), + 162: uint16(26661), + 163: uint16(26662), + 164: uint16(26663), + 165: uint16(26664), + 166: uint16(26667), + 167: uint16(26668), + 168: uint16(26669), + 169: uint16(26670), + 170: uint16(26671), + 171: uint16(26672), + 172: uint16(26673), + 173: uint16(26676), + 174: uint16(26677), + 175: uint16(26678), + 176: uint16(26682), + 177: uint16(26683), + 178: uint16(26687), + 179: uint16(26695), + 180: uint16(26699), + 181: uint16(26701), + 182: uint16(26703), + 183: uint16(26706), + 184: uint16(26710), + 185: uint16(26711), + 186: uint16(26712), + 187: uint16(26713), + 188: uint16(26714), + 189: uint16(26715), + }, + 22: { + 0: uint16(26716), + 1: uint16(26717), + 2: uint16(26718), + 3: uint16(26719), + 4: uint16(26730), + 5: uint16(26732), + 6: uint16(26733), + 7: uint16(26734), + 8: uint16(26735), + 9: uint16(26736), + 10: uint16(26737), + 11: uint16(26738), + 12: uint16(26739), + 13: uint16(26741), + 14: uint16(26744), + 15: uint16(26745), + 16: uint16(26746), + 17: uint16(26747), + 18: uint16(26748), + 19: uint16(26749), + 20: uint16(26750), + 21: uint16(26751), + 22: uint16(26752), + 23: uint16(26754), + 24: uint16(26756), + 25: uint16(26759), + 26: uint16(26760), + 27: uint16(26761), + 28: uint16(26762), + 29: uint16(26763), + 30: uint16(26764), + 31: uint16(26765), + 32: uint16(26766), + 33: uint16(26768), + 34: uint16(26769), + 35: uint16(26770), + 36: uint16(26772), + 37: uint16(26773), + 38: uint16(26774), + 39: uint16(26776), + 40: uint16(26777), + 41: uint16(26778), + 42: uint16(26779), + 43: uint16(26780), + 44: uint16(26781), + 45: uint16(26782), + 46: uint16(26783), + 47: uint16(26784), + 48: uint16(26785), + 49: uint16(26787), + 50: uint16(26788), + 51: uint16(26789), + 52: uint16(26793), + 53: uint16(26794), + 54: uint16(26795), + 55: uint16(26796), + 56: uint16(26798), + 57: uint16(26801), + 58: uint16(26802), + 59: uint16(26804), + 60: uint16(26806), + 61: uint16(26807), + 62: uint16(26808), + 63: uint16(26809), + 64: uint16(26810), + 65: uint16(26811), + 66: uint16(26812), + 67: uint16(26813), + 68: uint16(26814), + 69: uint16(26815), + 70: uint16(26817), + 71: uint16(26819), + 72: uint16(26820), + 73: uint16(26821), + 74: uint16(26822), + 75: uint16(26823), + 76: uint16(26824), + 77: uint16(26826), + 78: uint16(26828), + 79: uint16(26830), + 80: uint16(26831), + 81: uint16(26832), + 82: uint16(26833), + 83: uint16(26835), + 84: uint16(26836), + 85: uint16(26838), + 86: uint16(26839), + 87: uint16(26841), + 88: uint16(26843), + 89: uint16(26844), + 90: uint16(26845), + 91: uint16(26846), + 92: uint16(26847), + 93: uint16(26849), + 94: uint16(26850), + 95: uint16(26852), + 96: uint16(26853), + 97: uint16(26854), + 98: uint16(26855), + 99: uint16(26856), + 100: uint16(26857), + 101: uint16(26858), + 102: uint16(26859), + 103: uint16(26860), + 104: uint16(26861), + 105: uint16(26863), + 106: uint16(26866), + 107: uint16(26867), + 108: uint16(26868), + 109: uint16(26870), + 110: uint16(26871), + 111: uint16(26872), + 112: uint16(26875), + 113: uint16(26877), + 114: uint16(26878), + 115: uint16(26879), + 116: uint16(26880), + 117: uint16(26882), + 118: uint16(26883), + 119: uint16(26884), + 120: uint16(26886), + 121: uint16(26887), + 122: uint16(26888), + 123: uint16(26889), + 124: uint16(26890), + 125: uint16(26892), + 126: uint16(26895), + 127: uint16(26897), + 128: uint16(26899), + 129: uint16(26900), + 130: uint16(26901), + 131: uint16(26902), + 132: uint16(26903), + 133: uint16(26904), + 134: uint16(26905), + 135: uint16(26906), + 136: uint16(26907), + 137: uint16(26908), + 138: uint16(26909), + 139: uint16(26910), + 140: uint16(26913), + 141: uint16(26914), + 142: uint16(26915), + 143: uint16(26917), + 144: uint16(26918), + 145: uint16(26919), + 146: uint16(26920), + 147: uint16(26921), + 148: uint16(26922), + 149: uint16(26923), + 150: uint16(26924), + 151: uint16(26926), + 152: uint16(26927), + 153: uint16(26929), + 154: uint16(26930), + 155: uint16(26931), + 156: uint16(26933), + 157: uint16(26934), + 158: uint16(26935), + 159: uint16(26936), + 160: uint16(26938), + 161: uint16(26939), + 162: uint16(26940), + 163: uint16(26942), + 164: uint16(26944), + 165: uint16(26945), + 166: uint16(26947), + 167: uint16(26948), + 168: uint16(26949), + 169: uint16(26950), + 170: uint16(26951), + 171: uint16(26952), + 172: uint16(26953), + 173: uint16(26954), + 174: uint16(26955), + 175: uint16(26956), + 176: uint16(26957), + 177: uint16(26958), + 178: uint16(26959), + 179: uint16(26960), + 180: uint16(26961), + 181: uint16(26962), + 182: uint16(26963), + 183: uint16(26965), + 184: uint16(26966), + 185: uint16(26968), + 186: uint16(26969), + 187: uint16(26971), + 188: uint16(26972), + 189: uint16(26975), + }, + 23: { + 0: uint16(26977), + 1: uint16(26978), + 2: uint16(26980), + 3: uint16(26981), + 4: uint16(26983), + 5: uint16(26984), + 6: uint16(26985), + 7: uint16(26986), + 8: uint16(26988), + 9: uint16(26989), + 10: uint16(26991), + 11: uint16(26992), + 12: uint16(26994), + 13: uint16(26995), + 14: uint16(26996), + 15: uint16(26997), + 16: uint16(26998), + 17: uint16(27002), + 18: uint16(27003), + 19: uint16(27005), + 20: uint16(27006), + 21: uint16(27007), + 22: uint16(27009), + 23: uint16(27011), + 24: uint16(27013), + 25: uint16(27018), + 26: uint16(27019), + 27: uint16(27020), + 28: uint16(27022), + 29: uint16(27023), + 30: uint16(27024), + 31: uint16(27025), + 32: uint16(27026), + 33: uint16(27027), + 34: uint16(27030), + 35: uint16(27031), + 36: uint16(27033), + 37: uint16(27034), + 38: uint16(27037), + 39: uint16(27038), + 40: uint16(27039), + 41: uint16(27040), + 42: uint16(27041), + 43: uint16(27042), + 44: uint16(27043), + 45: uint16(27044), + 46: uint16(27045), + 47: uint16(27046), + 48: uint16(27049), + 49: uint16(27050), + 50: uint16(27052), + 51: uint16(27054), + 52: uint16(27055), + 53: uint16(27056), + 54: uint16(27058), + 55: uint16(27059), + 56: uint16(27061), + 57: uint16(27062), + 58: uint16(27064), + 59: uint16(27065), + 60: uint16(27066), + 61: uint16(27068), + 62: uint16(27069), + 63: uint16(27070), + 64: uint16(27071), + 65: uint16(27072), + 66: uint16(27074), + 67: uint16(27075), + 68: uint16(27076), + 69: uint16(27077), + 70: uint16(27078), + 71: uint16(27079), + 72: uint16(27080), + 73: uint16(27081), + 74: uint16(27083), + 75: uint16(27085), + 76: uint16(27087), + 77: uint16(27089), + 78: uint16(27090), + 79: uint16(27091), + 80: uint16(27093), + 81: uint16(27094), + 82: uint16(27095), + 83: uint16(27096), + 84: uint16(27097), + 85: uint16(27098), + 86: uint16(27100), + 87: uint16(27101), + 88: uint16(27102), + 89: uint16(27105), + 90: uint16(27106), + 91: uint16(27107), + 92: uint16(27108), + 93: uint16(27109), + 94: uint16(27110), + 95: uint16(27111), + 96: uint16(27112), + 97: uint16(27113), + 98: uint16(27114), + 99: uint16(27115), + 100: uint16(27116), + 101: uint16(27118), + 102: uint16(27119), + 103: uint16(27120), + 104: uint16(27121), + 105: uint16(27123), + 106: uint16(27124), + 107: uint16(27125), + 108: uint16(27126), + 109: uint16(27127), + 110: uint16(27128), + 111: uint16(27129), + 112: uint16(27130), + 113: uint16(27131), + 114: uint16(27132), + 115: uint16(27134), + 116: uint16(27136), + 117: uint16(27137), + 118: uint16(27138), + 119: uint16(27139), + 120: uint16(27140), + 121: uint16(27141), + 122: uint16(27142), + 123: uint16(27143), + 124: uint16(27144), + 125: uint16(27145), + 126: uint16(27147), + 127: uint16(27148), + 128: uint16(27149), + 129: uint16(27150), + 130: uint16(27151), + 131: uint16(27152), + 132: uint16(27153), + 133: uint16(27154), + 134: uint16(27155), + 135: uint16(27156), + 136: uint16(27157), + 137: uint16(27158), + 138: uint16(27161), + 139: uint16(27162), + 140: uint16(27163), + 141: uint16(27164), + 142: uint16(27165), + 143: uint16(27166), + 144: uint16(27168), + 145: uint16(27170), + 146: uint16(27171), + 147: uint16(27172), + 148: uint16(27173), + 149: uint16(27174), + 150: uint16(27175), + 151: uint16(27177), + 152: uint16(27179), + 153: uint16(27180), + 154: uint16(27181), + 155: uint16(27182), + 156: uint16(27184), + 157: uint16(27186), + 158: uint16(27187), + 159: uint16(27188), + 160: uint16(27190), + 161: uint16(27191), + 162: uint16(27192), + 163: uint16(27193), + 164: uint16(27194), + 165: uint16(27195), + 166: uint16(27196), + 167: uint16(27199), + 168: uint16(27200), + 169: uint16(27201), + 170: uint16(27202), + 171: uint16(27203), + 172: uint16(27205), + 173: uint16(27206), + 174: uint16(27208), + 175: uint16(27209), + 176: uint16(27210), + 177: uint16(27211), + 178: uint16(27212), + 179: uint16(27213), + 180: uint16(27214), + 181: uint16(27215), + 182: uint16(27217), + 183: uint16(27218), + 184: uint16(27219), + 185: uint16(27220), + 186: uint16(27221), + 187: uint16(27222), + 188: uint16(27223), + 189: uint16(27226), + }, + 24: { + 0: uint16(27228), + 1: uint16(27229), + 2: uint16(27230), + 3: uint16(27231), + 4: uint16(27232), + 5: uint16(27234), + 6: uint16(27235), + 7: uint16(27236), + 8: uint16(27238), + 9: uint16(27239), + 10: uint16(27240), + 11: uint16(27241), + 12: uint16(27242), + 13: uint16(27243), + 14: uint16(27244), + 15: uint16(27245), + 16: uint16(27246), + 17: uint16(27247), + 18: uint16(27248), + 19: uint16(27250), + 20: uint16(27251), + 21: uint16(27252), + 22: uint16(27253), + 23: uint16(27254), + 24: uint16(27255), + 25: uint16(27256), + 26: uint16(27258), + 27: uint16(27259), + 28: uint16(27261), + 29: uint16(27262), + 30: uint16(27263), + 31: uint16(27265), + 32: uint16(27266), + 33: uint16(27267), + 34: uint16(27269), + 35: uint16(27270), + 36: uint16(27271), + 37: uint16(27272), + 38: uint16(27273), + 39: uint16(27274), + 40: uint16(27275), + 41: uint16(27276), + 42: uint16(27277), + 43: uint16(27279), + 44: uint16(27282), + 45: uint16(27283), + 46: uint16(27284), + 47: uint16(27285), + 48: uint16(27286), + 49: uint16(27288), + 50: uint16(27289), + 51: uint16(27290), + 52: uint16(27291), + 53: uint16(27292), + 54: uint16(27293), + 55: uint16(27294), + 56: uint16(27295), + 57: uint16(27297), + 58: uint16(27298), + 59: uint16(27299), + 60: uint16(27300), + 61: uint16(27301), + 62: uint16(27302), + 63: uint16(27303), + 64: uint16(27304), + 65: uint16(27306), + 66: uint16(27309), + 67: uint16(27310), + 68: uint16(27311), + 69: uint16(27312), + 70: uint16(27313), + 71: uint16(27314), + 72: uint16(27315), + 73: uint16(27316), + 74: uint16(27317), + 75: uint16(27318), + 76: uint16(27319), + 77: uint16(27320), + 78: uint16(27321), + 79: uint16(27322), + 80: uint16(27323), + 81: uint16(27324), + 82: uint16(27325), + 83: uint16(27326), + 84: uint16(27327), + 85: uint16(27328), + 86: uint16(27329), + 87: uint16(27330), + 88: uint16(27331), + 89: uint16(27332), + 90: uint16(27333), + 91: uint16(27334), + 92: uint16(27335), + 93: uint16(27336), + 94: uint16(27337), + 95: uint16(27338), + 96: uint16(27339), + 97: uint16(27340), + 98: uint16(27341), + 99: uint16(27342), + 100: uint16(27343), + 101: uint16(27344), + 102: uint16(27345), + 103: uint16(27346), + 104: uint16(27347), + 105: uint16(27348), + 106: uint16(27349), + 107: uint16(27350), + 108: uint16(27351), + 109: uint16(27352), + 110: uint16(27353), + 111: uint16(27354), + 112: uint16(27355), + 113: uint16(27356), + 114: uint16(27357), + 115: uint16(27358), + 116: uint16(27359), + 117: uint16(27360), + 118: uint16(27361), + 119: uint16(27362), + 120: uint16(27363), + 121: uint16(27364), + 122: uint16(27365), + 123: uint16(27366), + 124: uint16(27367), + 125: uint16(27368), + 126: uint16(27369), + 127: uint16(27370), + 128: uint16(27371), + 129: uint16(27372), + 130: uint16(27373), + 131: uint16(27374), + 132: uint16(27375), + 133: uint16(27376), + 134: uint16(27377), + 135: uint16(27378), + 136: uint16(27379), + 137: uint16(27380), + 138: uint16(27381), + 139: uint16(27382), + 140: uint16(27383), + 141: uint16(27384), + 142: uint16(27385), + 143: uint16(27386), + 144: uint16(27387), + 145: uint16(27388), + 146: uint16(27389), + 147: uint16(27390), + 148: uint16(27391), + 149: uint16(27392), + 150: uint16(27393), + 151: uint16(27394), + 152: uint16(27395), + 153: uint16(27396), + 154: uint16(27397), + 155: uint16(27398), + 156: uint16(27399), + 157: uint16(27400), + 158: uint16(27401), + 159: uint16(27402), + 160: uint16(27403), + 161: uint16(27404), + 162: uint16(27405), + 163: uint16(27406), + 164: uint16(27407), + 165: uint16(27408), + 166: uint16(27409), + 167: uint16(27410), + 168: uint16(27411), + 169: uint16(27412), + 170: uint16(27413), + 171: uint16(27414), + 172: uint16(27415), + 173: uint16(27416), + 174: uint16(27417), + 175: uint16(27418), + 176: uint16(27419), + 177: uint16(27420), + 178: uint16(27421), + 179: uint16(27422), + 180: uint16(27423), + 181: uint16(27429), + 182: uint16(27430), + 183: uint16(27432), + 184: uint16(27433), + 185: uint16(27434), + 186: uint16(27435), + 187: uint16(27436), + 188: uint16(27437), + 189: uint16(27438), + }, + 25: { + 0: uint16(27439), + 1: uint16(27440), + 2: uint16(27441), + 3: uint16(27443), + 4: uint16(27444), + 5: uint16(27445), + 6: uint16(27446), + 7: uint16(27448), + 8: uint16(27451), + 9: uint16(27452), + 10: uint16(27453), + 11: uint16(27455), + 12: uint16(27456), + 13: uint16(27457), + 14: uint16(27458), + 15: uint16(27460), + 16: uint16(27461), + 17: uint16(27464), + 18: uint16(27466), + 19: uint16(27467), + 20: uint16(27469), + 21: uint16(27470), + 22: uint16(27471), + 23: uint16(27472), + 24: uint16(27473), + 25: uint16(27474), + 26: uint16(27475), + 27: uint16(27476), + 28: uint16(27477), + 29: uint16(27478), + 30: uint16(27479), + 31: uint16(27480), + 32: uint16(27482), + 33: uint16(27483), + 34: uint16(27484), + 35: uint16(27485), + 36: uint16(27486), + 37: uint16(27487), + 38: uint16(27488), + 39: uint16(27489), + 40: uint16(27496), + 41: uint16(27497), + 42: uint16(27499), + 43: uint16(27500), + 44: uint16(27501), + 45: uint16(27502), + 46: uint16(27503), + 47: uint16(27504), + 48: uint16(27505), + 49: uint16(27506), + 50: uint16(27507), + 51: uint16(27508), + 52: uint16(27509), + 53: uint16(27510), + 54: uint16(27511), + 55: uint16(27512), + 56: uint16(27514), + 57: uint16(27517), + 58: uint16(27518), + 59: uint16(27519), + 60: uint16(27520), + 61: uint16(27525), + 62: uint16(27528), + 63: uint16(27532), + 64: uint16(27534), + 65: uint16(27535), + 66: uint16(27536), + 67: uint16(27537), + 68: uint16(27540), + 69: uint16(27541), + 70: uint16(27543), + 71: uint16(27544), + 72: uint16(27545), + 73: uint16(27548), + 74: uint16(27549), + 75: uint16(27550), + 76: uint16(27551), + 77: uint16(27552), + 78: uint16(27554), + 79: uint16(27555), + 80: uint16(27556), + 81: uint16(27557), + 82: uint16(27558), + 83: uint16(27559), + 84: uint16(27560), + 85: uint16(27561), + 86: uint16(27563), + 87: uint16(27564), + 88: uint16(27565), + 89: uint16(27566), + 90: uint16(27567), + 91: uint16(27568), + 92: uint16(27569), + 93: uint16(27570), + 94: uint16(27574), + 95: uint16(27576), + 96: uint16(27577), + 97: uint16(27578), + 98: uint16(27579), + 99: uint16(27580), + 100: uint16(27581), + 101: uint16(27582), + 102: uint16(27584), + 103: uint16(27587), + 104: uint16(27588), + 105: uint16(27590), + 106: uint16(27591), + 107: uint16(27592), + 108: uint16(27593), + 109: uint16(27594), + 110: uint16(27596), + 111: uint16(27598), + 112: uint16(27600), + 113: uint16(27601), + 114: uint16(27608), + 115: uint16(27610), + 116: uint16(27612), + 117: uint16(27613), + 118: uint16(27614), + 119: uint16(27615), + 120: uint16(27616), + 121: uint16(27618), + 122: uint16(27619), + 123: uint16(27620), + 124: uint16(27621), + 125: uint16(27622), + 126: uint16(27623), + 127: uint16(27624), + 128: uint16(27625), + 129: uint16(27628), + 130: uint16(27629), + 131: uint16(27630), + 132: uint16(27632), + 133: uint16(27633), + 134: uint16(27634), + 135: uint16(27636), + 136: uint16(27638), + 137: uint16(27639), + 138: uint16(27640), + 139: uint16(27642), + 140: uint16(27643), + 141: uint16(27644), + 142: uint16(27646), + 143: uint16(27647), + 144: uint16(27648), + 145: uint16(27649), + 146: uint16(27650), + 147: uint16(27651), + 148: uint16(27652), + 149: uint16(27656), + 150: uint16(27657), + 151: uint16(27658), + 152: uint16(27659), + 153: uint16(27660), + 154: uint16(27662), + 155: uint16(27666), + 156: uint16(27671), + 157: uint16(27676), + 158: uint16(27677), + 159: uint16(27678), + 160: uint16(27680), + 161: uint16(27683), + 162: uint16(27685), + 163: uint16(27691), + 164: uint16(27692), + 165: uint16(27693), + 166: uint16(27697), + 167: uint16(27699), + 168: uint16(27702), + 169: uint16(27703), + 170: uint16(27705), + 171: uint16(27706), + 172: uint16(27707), + 173: uint16(27708), + 174: uint16(27710), + 175: uint16(27711), + 176: uint16(27715), + 177: uint16(27716), + 178: uint16(27717), + 179: uint16(27720), + 180: uint16(27723), + 181: uint16(27724), + 182: uint16(27725), + 183: uint16(27726), + 184: uint16(27727), + 185: uint16(27729), + 186: uint16(27730), + 187: uint16(27731), + 188: uint16(27734), + 189: uint16(27736), + }, + 26: { + 0: uint16(27737), + 1: uint16(27738), + 2: uint16(27746), + 3: uint16(27747), + 4: uint16(27749), + 5: uint16(27750), + 6: uint16(27751), + 7: uint16(27755), + 8: uint16(27756), + 9: uint16(27757), + 10: uint16(27758), + 11: uint16(27759), + 12: uint16(27761), + 13: uint16(27763), + 14: uint16(27765), + 15: uint16(27767), + 16: uint16(27768), + 17: uint16(27770), + 18: uint16(27771), + 19: uint16(27772), + 20: uint16(27775), + 21: uint16(27776), + 22: uint16(27780), + 23: uint16(27783), + 24: uint16(27786), + 25: uint16(27787), + 26: uint16(27789), + 27: uint16(27790), + 28: uint16(27793), + 29: uint16(27794), + 30: uint16(27797), + 31: uint16(27798), + 32: uint16(27799), + 33: uint16(27800), + 34: uint16(27802), + 35: uint16(27804), + 36: uint16(27805), + 37: uint16(27806), + 38: uint16(27808), + 39: uint16(27810), + 40: uint16(27816), + 41: uint16(27820), + 42: uint16(27823), + 43: uint16(27824), + 44: uint16(27828), + 45: uint16(27829), + 46: uint16(27830), + 47: uint16(27831), + 48: uint16(27834), + 49: uint16(27840), + 50: uint16(27841), + 51: uint16(27842), + 52: uint16(27843), + 53: uint16(27846), + 54: uint16(27847), + 55: uint16(27848), + 56: uint16(27851), + 57: uint16(27853), + 58: uint16(27854), + 59: uint16(27855), + 60: uint16(27857), + 61: uint16(27858), + 62: uint16(27864), + 63: uint16(27865), + 64: uint16(27866), + 65: uint16(27868), + 66: uint16(27869), + 67: uint16(27871), + 68: uint16(27876), + 69: uint16(27878), + 70: uint16(27879), + 71: uint16(27881), + 72: uint16(27884), + 73: uint16(27885), + 74: uint16(27890), + 75: uint16(27892), + 76: uint16(27897), + 77: uint16(27903), + 78: uint16(27904), + 79: uint16(27906), + 80: uint16(27907), + 81: uint16(27909), + 82: uint16(27910), + 83: uint16(27912), + 84: uint16(27913), + 85: uint16(27914), + 86: uint16(27917), + 87: uint16(27919), + 88: uint16(27920), + 89: uint16(27921), + 90: uint16(27923), + 91: uint16(27924), + 92: uint16(27925), + 93: uint16(27926), + 94: uint16(27928), + 95: uint16(27932), + 96: uint16(27933), + 97: uint16(27935), + 98: uint16(27936), + 99: uint16(27937), + 100: uint16(27938), + 101: uint16(27939), + 102: uint16(27940), + 103: uint16(27942), + 104: uint16(27944), + 105: uint16(27945), + 106: uint16(27948), + 107: uint16(27949), + 108: uint16(27951), + 109: uint16(27952), + 110: uint16(27956), + 111: uint16(27958), + 112: uint16(27959), + 113: uint16(27960), + 114: uint16(27962), + 115: uint16(27967), + 116: uint16(27968), + 117: uint16(27970), + 118: uint16(27972), + 119: uint16(27977), + 120: uint16(27980), + 121: uint16(27984), + 122: uint16(27989), + 123: uint16(27990), + 124: uint16(27991), + 125: uint16(27992), + 126: uint16(27995), + 127: uint16(27997), + 128: uint16(27999), + 129: uint16(28001), + 130: uint16(28002), + 131: uint16(28004), + 132: uint16(28005), + 133: uint16(28007), + 134: uint16(28008), + 135: uint16(28011), + 136: uint16(28012), + 137: uint16(28013), + 138: uint16(28016), + 139: uint16(28017), + 140: uint16(28018), + 141: uint16(28019), + 142: uint16(28021), + 143: uint16(28022), + 144: uint16(28025), + 145: uint16(28026), + 146: uint16(28027), + 147: uint16(28029), + 148: uint16(28030), + 149: uint16(28031), + 150: uint16(28032), + 151: uint16(28033), + 152: uint16(28035), + 153: uint16(28036), + 154: uint16(28038), + 155: uint16(28039), + 156: uint16(28042), + 157: uint16(28043), + 158: uint16(28045), + 159: uint16(28047), + 160: uint16(28048), + 161: uint16(28050), + 162: uint16(28054), + 163: uint16(28055), + 164: uint16(28056), + 165: uint16(28057), + 166: uint16(28058), + 167: uint16(28060), + 168: uint16(28066), + 169: uint16(28069), + 170: uint16(28076), + 171: uint16(28077), + 172: uint16(28080), + 173: uint16(28081), + 174: uint16(28083), + 175: uint16(28084), + 176: uint16(28086), + 177: uint16(28087), + 178: uint16(28089), + 179: uint16(28090), + 180: uint16(28091), + 181: uint16(28092), + 182: uint16(28093), + 183: uint16(28094), + 184: uint16(28097), + 185: uint16(28098), + 186: uint16(28099), + 187: uint16(28104), + 188: uint16(28105), + 189: uint16(28106), + }, + 27: { + 0: uint16(28109), + 1: uint16(28110), + 2: uint16(28111), + 3: uint16(28112), + 4: uint16(28114), + 5: uint16(28115), + 6: uint16(28116), + 7: uint16(28117), + 8: uint16(28119), + 9: uint16(28122), + 10: uint16(28123), + 11: uint16(28124), + 12: uint16(28127), + 13: uint16(28130), + 14: uint16(28131), + 15: uint16(28133), + 16: uint16(28135), + 17: uint16(28136), + 18: uint16(28137), + 19: uint16(28138), + 20: uint16(28141), + 21: uint16(28143), + 22: uint16(28144), + 23: uint16(28146), + 24: uint16(28148), + 25: uint16(28149), + 26: uint16(28150), + 27: uint16(28152), + 28: uint16(28154), + 29: uint16(28157), + 30: uint16(28158), + 31: uint16(28159), + 32: uint16(28160), + 33: uint16(28161), + 34: uint16(28162), + 35: uint16(28163), + 36: uint16(28164), + 37: uint16(28166), + 38: uint16(28167), + 39: uint16(28168), + 40: uint16(28169), + 41: uint16(28171), + 42: uint16(28175), + 43: uint16(28178), + 44: uint16(28179), + 45: uint16(28181), + 46: uint16(28184), + 47: uint16(28185), + 48: uint16(28187), + 49: uint16(28188), + 50: uint16(28190), + 51: uint16(28191), + 52: uint16(28194), + 53: uint16(28198), + 54: uint16(28199), + 55: uint16(28200), + 56: uint16(28202), + 57: uint16(28204), + 58: uint16(28206), + 59: uint16(28208), + 60: uint16(28209), + 61: uint16(28211), + 62: uint16(28213), + 63: uint16(28214), + 64: uint16(28215), + 65: uint16(28217), + 66: uint16(28219), + 67: uint16(28220), + 68: uint16(28221), + 69: uint16(28222), + 70: uint16(28223), + 71: uint16(28224), + 72: uint16(28225), + 73: uint16(28226), + 74: uint16(28229), + 75: uint16(28230), + 76: uint16(28231), + 77: uint16(28232), + 78: uint16(28233), + 79: uint16(28234), + 80: uint16(28235), + 81: uint16(28236), + 82: uint16(28239), + 83: uint16(28240), + 84: uint16(28241), + 85: uint16(28242), + 86: uint16(28245), + 87: uint16(28247), + 88: uint16(28249), + 89: uint16(28250), + 90: uint16(28252), + 91: uint16(28253), + 92: uint16(28254), + 93: uint16(28256), + 94: uint16(28257), + 95: uint16(28258), + 96: uint16(28259), + 97: uint16(28260), + 98: uint16(28261), + 99: uint16(28262), + 100: uint16(28263), + 101: uint16(28264), + 102: uint16(28265), + 103: uint16(28266), + 104: uint16(28268), + 105: uint16(28269), + 106: uint16(28271), + 107: uint16(28272), + 108: uint16(28273), + 109: uint16(28274), + 110: uint16(28275), + 111: uint16(28276), + 112: uint16(28277), + 113: uint16(28278), + 114: uint16(28279), + 115: uint16(28280), + 116: uint16(28281), + 117: uint16(28282), + 118: uint16(28283), + 119: uint16(28284), + 120: uint16(28285), + 121: uint16(28288), + 122: uint16(28289), + 123: uint16(28290), + 124: uint16(28292), + 125: uint16(28295), + 126: uint16(28296), + 127: uint16(28298), + 128: uint16(28299), + 129: uint16(28300), + 130: uint16(28301), + 131: uint16(28302), + 132: uint16(28305), + 133: uint16(28306), + 134: uint16(28307), + 135: uint16(28308), + 136: uint16(28309), + 137: uint16(28310), + 138: uint16(28311), + 139: uint16(28313), + 140: uint16(28314), + 141: uint16(28315), + 142: uint16(28317), + 143: uint16(28318), + 144: uint16(28320), + 145: uint16(28321), + 146: uint16(28323), + 147: uint16(28324), + 148: uint16(28326), + 149: uint16(28328), + 150: uint16(28329), + 151: uint16(28331), + 152: uint16(28332), + 153: uint16(28333), + 154: uint16(28334), + 155: uint16(28336), + 156: uint16(28339), + 157: uint16(28341), + 158: uint16(28344), + 159: uint16(28345), + 160: uint16(28348), + 161: uint16(28350), + 162: uint16(28351), + 163: uint16(28352), + 164: uint16(28355), + 165: uint16(28356), + 166: uint16(28357), + 167: uint16(28358), + 168: uint16(28360), + 169: uint16(28361), + 170: uint16(28362), + 171: uint16(28364), + 172: uint16(28365), + 173: uint16(28366), + 174: uint16(28368), + 175: uint16(28370), + 176: uint16(28374), + 177: uint16(28376), + 178: uint16(28377), + 179: uint16(28379), + 180: uint16(28380), + 181: uint16(28381), + 182: uint16(28387), + 183: uint16(28391), + 184: uint16(28394), + 185: uint16(28395), + 186: uint16(28396), + 187: uint16(28397), + 188: uint16(28398), + 189: uint16(28399), + }, + 28: { + 0: uint16(28400), + 1: uint16(28401), + 2: uint16(28402), + 3: uint16(28403), + 4: uint16(28405), + 5: uint16(28406), + 6: uint16(28407), + 7: uint16(28408), + 8: uint16(28410), + 9: uint16(28411), + 10: uint16(28412), + 11: uint16(28413), + 12: uint16(28414), + 13: uint16(28415), + 14: uint16(28416), + 15: uint16(28417), + 16: uint16(28419), + 17: uint16(28420), + 18: uint16(28421), + 19: uint16(28423), + 20: uint16(28424), + 21: uint16(28426), + 22: uint16(28427), + 23: uint16(28428), + 24: uint16(28429), + 25: uint16(28430), + 26: uint16(28432), + 27: uint16(28433), + 28: uint16(28434), + 29: uint16(28438), + 30: uint16(28439), + 31: uint16(28440), + 32: uint16(28441), + 33: uint16(28442), + 34: uint16(28443), + 35: uint16(28444), + 36: uint16(28445), + 37: uint16(28446), + 38: uint16(28447), + 39: uint16(28449), + 40: uint16(28450), + 41: uint16(28451), + 42: uint16(28453), + 43: uint16(28454), + 44: uint16(28455), + 45: uint16(28456), + 46: uint16(28460), + 47: uint16(28462), + 48: uint16(28464), + 49: uint16(28466), + 50: uint16(28468), + 51: uint16(28469), + 52: uint16(28471), + 53: uint16(28472), + 54: uint16(28473), + 55: uint16(28474), + 56: uint16(28475), + 57: uint16(28476), + 58: uint16(28477), + 59: uint16(28479), + 60: uint16(28480), + 61: uint16(28481), + 62: uint16(28482), + 63: uint16(28483), + 64: uint16(28484), + 65: uint16(28485), + 66: uint16(28488), + 67: uint16(28489), + 68: uint16(28490), + 69: uint16(28492), + 70: uint16(28494), + 71: uint16(28495), + 72: uint16(28496), + 73: uint16(28497), + 74: uint16(28498), + 75: uint16(28499), + 76: uint16(28500), + 77: uint16(28501), + 78: uint16(28502), + 79: uint16(28503), + 80: uint16(28505), + 81: uint16(28506), + 82: uint16(28507), + 83: uint16(28509), + 84: uint16(28511), + 85: uint16(28512), + 86: uint16(28513), + 87: uint16(28515), + 88: uint16(28516), + 89: uint16(28517), + 90: uint16(28519), + 91: uint16(28520), + 92: uint16(28521), + 93: uint16(28522), + 94: uint16(28523), + 95: uint16(28524), + 96: uint16(28527), + 97: uint16(28528), + 98: uint16(28529), + 99: uint16(28531), + 100: uint16(28533), + 101: uint16(28534), + 102: uint16(28535), + 103: uint16(28537), + 104: uint16(28539), + 105: uint16(28541), + 106: uint16(28542), + 107: uint16(28543), + 108: uint16(28544), + 109: uint16(28545), + 110: uint16(28546), + 111: uint16(28547), + 112: uint16(28549), + 113: uint16(28550), + 114: uint16(28551), + 115: uint16(28554), + 116: uint16(28555), + 117: uint16(28559), + 118: uint16(28560), + 119: uint16(28561), + 120: uint16(28562), + 121: uint16(28563), + 122: uint16(28564), + 123: uint16(28565), + 124: uint16(28566), + 125: uint16(28567), + 126: uint16(28568), + 127: uint16(28569), + 128: uint16(28570), + 129: uint16(28571), + 130: uint16(28573), + 131: uint16(28574), + 132: uint16(28575), + 133: uint16(28576), + 134: uint16(28578), + 135: uint16(28579), + 136: uint16(28580), + 137: uint16(28581), + 138: uint16(28582), + 139: uint16(28584), + 140: uint16(28585), + 141: uint16(28586), + 142: uint16(28587), + 143: uint16(28588), + 144: uint16(28589), + 145: uint16(28590), + 146: uint16(28591), + 147: uint16(28592), + 148: uint16(28593), + 149: uint16(28594), + 150: uint16(28596), + 151: uint16(28597), + 152: uint16(28599), + 153: uint16(28600), + 154: uint16(28602), + 155: uint16(28603), + 156: uint16(28604), + 157: uint16(28605), + 158: uint16(28606), + 159: uint16(28607), + 160: uint16(28609), + 161: uint16(28611), + 162: uint16(28612), + 163: uint16(28613), + 164: uint16(28614), + 165: uint16(28615), + 166: uint16(28616), + 167: uint16(28618), + 168: uint16(28619), + 169: uint16(28620), + 170: uint16(28621), + 171: uint16(28622), + 172: uint16(28623), + 173: uint16(28624), + 174: uint16(28627), + 175: uint16(28628), + 176: uint16(28629), + 177: uint16(28630), + 178: uint16(28631), + 179: uint16(28632), + 180: uint16(28633), + 181: uint16(28634), + 182: uint16(28635), + 183: uint16(28636), + 184: uint16(28637), + 185: uint16(28639), + 186: uint16(28642), + 187: uint16(28643), + 188: uint16(28644), + 189: uint16(28645), + }, + 29: { + 0: uint16(28646), + 1: uint16(28647), + 2: uint16(28648), + 3: uint16(28649), + 4: uint16(28650), + 5: uint16(28651), + 6: uint16(28652), + 7: uint16(28653), + 8: uint16(28656), + 9: uint16(28657), + 10: uint16(28658), + 11: uint16(28659), + 12: uint16(28660), + 13: uint16(28661), + 14: uint16(28662), + 15: uint16(28663), + 16: uint16(28664), + 17: uint16(28665), + 18: uint16(28666), + 19: uint16(28667), + 20: uint16(28668), + 21: uint16(28669), + 22: uint16(28670), + 23: uint16(28671), + 24: uint16(28672), + 25: uint16(28673), + 26: uint16(28674), + 27: uint16(28675), + 28: uint16(28676), + 29: uint16(28677), + 30: uint16(28678), + 31: uint16(28679), + 32: uint16(28680), + 33: uint16(28681), + 34: uint16(28682), + 35: uint16(28683), + 36: uint16(28684), + 37: uint16(28685), + 38: uint16(28686), + 39: uint16(28687), + 40: uint16(28688), + 41: uint16(28690), + 42: uint16(28691), + 43: uint16(28692), + 44: uint16(28693), + 45: uint16(28694), + 46: uint16(28695), + 47: uint16(28696), + 48: uint16(28697), + 49: uint16(28700), + 50: uint16(28701), + 51: uint16(28702), + 52: uint16(28703), + 53: uint16(28704), + 54: uint16(28705), + 55: uint16(28706), + 56: uint16(28708), + 57: uint16(28709), + 58: uint16(28710), + 59: uint16(28711), + 60: uint16(28712), + 61: uint16(28713), + 62: uint16(28714), + 63: uint16(28715), + 64: uint16(28716), + 65: uint16(28717), + 66: uint16(28718), + 67: uint16(28719), + 68: uint16(28720), + 69: uint16(28721), + 70: uint16(28722), + 71: uint16(28723), + 72: uint16(28724), + 73: uint16(28726), + 74: uint16(28727), + 75: uint16(28728), + 76: uint16(28730), + 77: uint16(28731), + 78: uint16(28732), + 79: uint16(28733), + 80: uint16(28734), + 81: uint16(28735), + 82: uint16(28736), + 83: uint16(28737), + 84: uint16(28738), + 85: uint16(28739), + 86: uint16(28740), + 87: uint16(28741), + 88: uint16(28742), + 89: uint16(28743), + 90: uint16(28744), + 91: uint16(28745), + 92: uint16(28746), + 93: uint16(28747), + 94: uint16(28749), + 95: uint16(28750), + 96: uint16(28752), + 97: uint16(28753), + 98: uint16(28754), + 99: uint16(28755), + 100: uint16(28756), + 101: uint16(28757), + 102: uint16(28758), + 103: uint16(28759), + 104: uint16(28760), + 105: uint16(28761), + 106: uint16(28762), + 107: uint16(28763), + 108: uint16(28764), + 109: uint16(28765), + 110: uint16(28767), + 111: uint16(28768), + 112: uint16(28769), + 113: uint16(28770), + 114: uint16(28771), + 115: uint16(28772), + 116: uint16(28773), + 117: uint16(28774), + 118: uint16(28775), + 119: uint16(28776), + 120: uint16(28777), + 121: uint16(28778), + 122: uint16(28782), + 123: uint16(28785), + 124: uint16(28786), + 125: uint16(28787), + 126: uint16(28788), + 127: uint16(28791), + 128: uint16(28793), + 129: uint16(28794), + 130: uint16(28795), + 131: uint16(28797), + 132: uint16(28801), + 133: uint16(28802), + 134: uint16(28803), + 135: uint16(28804), + 136: uint16(28806), + 137: uint16(28807), + 138: uint16(28808), + 139: uint16(28811), + 140: uint16(28812), + 141: uint16(28813), + 142: uint16(28815), + 143: uint16(28816), + 144: uint16(28817), + 145: uint16(28819), + 146: uint16(28823), + 147: uint16(28824), + 148: uint16(28826), + 149: uint16(28827), + 150: uint16(28830), + 151: uint16(28831), + 152: uint16(28832), + 153: uint16(28833), + 154: uint16(28834), + 155: uint16(28835), + 156: uint16(28836), + 157: uint16(28837), + 158: uint16(28838), + 159: uint16(28839), + 160: uint16(28840), + 161: uint16(28841), + 162: uint16(28842), + 163: uint16(28848), + 164: uint16(28850), + 165: uint16(28852), + 166: uint16(28853), + 167: uint16(28854), + 168: uint16(28858), + 169: uint16(28862), + 170: uint16(28863), + 171: uint16(28868), + 172: uint16(28869), + 173: uint16(28870), + 174: uint16(28871), + 175: uint16(28873), + 176: uint16(28875), + 177: uint16(28876), + 178: uint16(28877), + 179: uint16(28878), + 180: uint16(28879), + 181: uint16(28880), + 182: uint16(28881), + 183: uint16(28882), + 184: uint16(28883), + 185: uint16(28884), + 186: uint16(28885), + 187: uint16(28886), + 188: uint16(28887), + 189: uint16(28890), + }, + 30: { + 0: uint16(28892), + 1: uint16(28893), + 2: uint16(28894), + 3: uint16(28896), + 4: uint16(28897), + 5: uint16(28898), + 6: uint16(28899), + 7: uint16(28901), + 8: uint16(28906), + 9: uint16(28910), + 10: uint16(28912), + 11: uint16(28913), + 12: uint16(28914), + 13: uint16(28915), + 14: uint16(28916), + 15: uint16(28917), + 16: uint16(28918), + 17: uint16(28920), + 18: uint16(28922), + 19: uint16(28923), + 20: uint16(28924), + 21: uint16(28926), + 22: uint16(28927), + 23: uint16(28928), + 24: uint16(28929), + 25: uint16(28930), + 26: uint16(28931), + 27: uint16(28932), + 28: uint16(28933), + 29: uint16(28934), + 30: uint16(28935), + 31: uint16(28936), + 32: uint16(28939), + 33: uint16(28940), + 34: uint16(28941), + 35: uint16(28942), + 36: uint16(28943), + 37: uint16(28945), + 38: uint16(28946), + 39: uint16(28948), + 40: uint16(28951), + 41: uint16(28955), + 42: uint16(28956), + 43: uint16(28957), + 44: uint16(28958), + 45: uint16(28959), + 46: uint16(28960), + 47: uint16(28961), + 48: uint16(28962), + 49: uint16(28963), + 50: uint16(28964), + 51: uint16(28965), + 52: uint16(28967), + 53: uint16(28968), + 54: uint16(28969), + 55: uint16(28970), + 56: uint16(28971), + 57: uint16(28972), + 58: uint16(28973), + 59: uint16(28974), + 60: uint16(28978), + 61: uint16(28979), + 62: uint16(28980), + 63: uint16(28981), + 64: uint16(28983), + 65: uint16(28984), + 66: uint16(28985), + 67: uint16(28986), + 68: uint16(28987), + 69: uint16(28988), + 70: uint16(28989), + 71: uint16(28990), + 72: uint16(28991), + 73: uint16(28992), + 74: uint16(28993), + 75: uint16(28994), + 76: uint16(28995), + 77: uint16(28996), + 78: uint16(28998), + 79: uint16(28999), + 80: uint16(29000), + 81: uint16(29001), + 82: uint16(29003), + 83: uint16(29005), + 84: uint16(29007), + 85: uint16(29008), + 86: uint16(29009), + 87: uint16(29010), + 88: uint16(29011), + 89: uint16(29012), + 90: uint16(29013), + 91: uint16(29014), + 92: uint16(29015), + 93: uint16(29016), + 94: uint16(29017), + 95: uint16(29018), + 96: uint16(29019), + 97: uint16(29021), + 98: uint16(29023), + 99: uint16(29024), + 100: uint16(29025), + 101: uint16(29026), + 102: uint16(29027), + 103: uint16(29029), + 104: uint16(29033), + 105: uint16(29034), + 106: uint16(29035), + 107: uint16(29036), + 108: uint16(29037), + 109: uint16(29039), + 110: uint16(29040), + 111: uint16(29041), + 112: uint16(29044), + 113: uint16(29045), + 114: uint16(29046), + 115: uint16(29047), + 116: uint16(29049), + 117: uint16(29051), + 118: uint16(29052), + 119: uint16(29054), + 120: uint16(29055), + 121: uint16(29056), + 122: uint16(29057), + 123: uint16(29058), + 124: uint16(29059), + 125: uint16(29061), + 126: uint16(29062), + 127: uint16(29063), + 128: uint16(29064), + 129: uint16(29065), + 130: uint16(29067), + 131: uint16(29068), + 132: uint16(29069), + 133: uint16(29070), + 134: uint16(29072), + 135: uint16(29073), + 136: uint16(29074), + 137: uint16(29075), + 138: uint16(29077), + 139: uint16(29078), + 140: uint16(29079), + 141: uint16(29082), + 142: uint16(29083), + 143: uint16(29084), + 144: uint16(29085), + 145: uint16(29086), + 146: uint16(29089), + 147: uint16(29090), + 148: uint16(29091), + 149: uint16(29092), + 150: uint16(29093), + 151: uint16(29094), + 152: uint16(29095), + 153: uint16(29097), + 154: uint16(29098), + 155: uint16(29099), + 156: uint16(29101), + 157: uint16(29102), + 158: uint16(29103), + 159: uint16(29104), + 160: uint16(29105), + 161: uint16(29106), + 162: uint16(29108), + 163: uint16(29110), + 164: uint16(29111), + 165: uint16(29112), + 166: uint16(29114), + 167: uint16(29115), + 168: uint16(29116), + 169: uint16(29117), + 170: uint16(29118), + 171: uint16(29119), + 172: uint16(29120), + 173: uint16(29121), + 174: uint16(29122), + 175: uint16(29124), + 176: uint16(29125), + 177: uint16(29126), + 178: uint16(29127), + 179: uint16(29128), + 180: uint16(29129), + 181: uint16(29130), + 182: uint16(29131), + 183: uint16(29132), + 184: uint16(29133), + 185: uint16(29135), + 186: uint16(29136), + 187: uint16(29137), + 188: uint16(29138), + 189: uint16(29139), + }, + 31: { + 0: uint16(29142), + 1: uint16(29143), + 2: uint16(29144), + 3: uint16(29145), + 4: uint16(29146), + 5: uint16(29147), + 6: uint16(29148), + 7: uint16(29149), + 8: uint16(29150), + 9: uint16(29151), + 10: uint16(29153), + 11: uint16(29154), + 12: uint16(29155), + 13: uint16(29156), + 14: uint16(29158), + 15: uint16(29160), + 16: uint16(29161), + 17: uint16(29162), + 18: uint16(29163), + 19: uint16(29164), + 20: uint16(29165), + 21: uint16(29167), + 22: uint16(29168), + 23: uint16(29169), + 24: uint16(29170), + 25: uint16(29171), + 26: uint16(29172), + 27: uint16(29173), + 28: uint16(29174), + 29: uint16(29175), + 30: uint16(29176), + 31: uint16(29178), + 32: uint16(29179), + 33: uint16(29180), + 34: uint16(29181), + 35: uint16(29182), + 36: uint16(29183), + 37: uint16(29184), + 38: uint16(29185), + 39: uint16(29186), + 40: uint16(29187), + 41: uint16(29188), + 42: uint16(29189), + 43: uint16(29191), + 44: uint16(29192), + 45: uint16(29193), + 46: uint16(29194), + 47: uint16(29195), + 48: uint16(29196), + 49: uint16(29197), + 50: uint16(29198), + 51: uint16(29199), + 52: uint16(29200), + 53: uint16(29201), + 54: uint16(29202), + 55: uint16(29203), + 56: uint16(29204), + 57: uint16(29205), + 58: uint16(29206), + 59: uint16(29207), + 60: uint16(29208), + 61: uint16(29209), + 62: uint16(29210), + 63: uint16(29211), + 64: uint16(29212), + 65: uint16(29214), + 66: uint16(29215), + 67: uint16(29216), + 68: uint16(29217), + 69: uint16(29218), + 70: uint16(29219), + 71: uint16(29220), + 72: uint16(29221), + 73: uint16(29222), + 74: uint16(29223), + 75: uint16(29225), + 76: uint16(29227), + 77: uint16(29229), + 78: uint16(29230), + 79: uint16(29231), + 80: uint16(29234), + 81: uint16(29235), + 82: uint16(29236), + 83: uint16(29242), + 84: uint16(29244), + 85: uint16(29246), + 86: uint16(29248), + 87: uint16(29249), + 88: uint16(29250), + 89: uint16(29251), + 90: uint16(29252), + 91: uint16(29253), + 92: uint16(29254), + 93: uint16(29257), + 94: uint16(29258), + 95: uint16(29259), + 96: uint16(29262), + 97: uint16(29263), + 98: uint16(29264), + 99: uint16(29265), + 100: uint16(29267), + 101: uint16(29268), + 102: uint16(29269), + 103: uint16(29271), + 104: uint16(29272), + 105: uint16(29274), + 106: uint16(29276), + 107: uint16(29278), + 108: uint16(29280), + 109: uint16(29283), + 110: uint16(29284), + 111: uint16(29285), + 112: uint16(29288), + 113: uint16(29290), + 114: uint16(29291), + 115: uint16(29292), + 116: uint16(29293), + 117: uint16(29296), + 118: uint16(29297), + 119: uint16(29299), + 120: uint16(29300), + 121: uint16(29302), + 122: uint16(29303), + 123: uint16(29304), + 124: uint16(29307), + 125: uint16(29308), + 126: uint16(29309), + 127: uint16(29314), + 128: uint16(29315), + 129: uint16(29317), + 130: uint16(29318), + 131: uint16(29319), + 132: uint16(29320), + 133: uint16(29321), + 134: uint16(29324), + 135: uint16(29326), + 136: uint16(29328), + 137: uint16(29329), + 138: uint16(29331), + 139: uint16(29332), + 140: uint16(29333), + 141: uint16(29334), + 142: uint16(29335), + 143: uint16(29336), + 144: uint16(29337), + 145: uint16(29338), + 146: uint16(29339), + 147: uint16(29340), + 148: uint16(29341), + 149: uint16(29342), + 150: uint16(29344), + 151: uint16(29345), + 152: uint16(29346), + 153: uint16(29347), + 154: uint16(29348), + 155: uint16(29349), + 156: uint16(29350), + 157: uint16(29351), + 158: uint16(29352), + 159: uint16(29353), + 160: uint16(29354), + 161: uint16(29355), + 162: uint16(29358), + 163: uint16(29361), + 164: uint16(29362), + 165: uint16(29363), + 166: uint16(29365), + 167: uint16(29370), + 168: uint16(29371), + 169: uint16(29372), + 170: uint16(29373), + 171: uint16(29374), + 172: uint16(29375), + 173: uint16(29376), + 174: uint16(29381), + 175: uint16(29382), + 176: uint16(29383), + 177: uint16(29385), + 178: uint16(29386), + 179: uint16(29387), + 180: uint16(29388), + 181: uint16(29391), + 182: uint16(29393), + 183: uint16(29395), + 184: uint16(29396), + 185: uint16(29397), + 186: uint16(29398), + 187: uint16(29400), + 188: uint16(29402), + 189: uint16(29403), + }, + 32: { + 0: uint16(58566), + 1: uint16(58567), + 2: uint16(58568), + 3: uint16(58569), + 4: uint16(58570), + 5: uint16(58571), + 6: uint16(58572), + 7: uint16(58573), + 8: uint16(58574), + 9: uint16(58575), + 10: uint16(58576), + 11: uint16(58577), + 12: uint16(58578), + 13: uint16(58579), + 14: uint16(58580), + 15: uint16(58581), + 16: uint16(58582), + 17: uint16(58583), + 18: uint16(58584), + 19: uint16(58585), + 20: uint16(58586), + 21: uint16(58587), + 22: uint16(58588), + 23: uint16(58589), + 24: uint16(58590), + 25: uint16(58591), + 26: uint16(58592), + 27: uint16(58593), + 28: uint16(58594), + 29: uint16(58595), + 30: uint16(58596), + 31: uint16(58597), + 32: uint16(58598), + 33: uint16(58599), + 34: uint16(58600), + 35: uint16(58601), + 36: uint16(58602), + 37: uint16(58603), + 38: uint16(58604), + 39: uint16(58605), + 40: uint16(58606), + 41: uint16(58607), + 42: uint16(58608), + 43: uint16(58609), + 44: uint16(58610), + 45: uint16(58611), + 46: uint16(58612), + 47: uint16(58613), + 48: uint16(58614), + 49: uint16(58615), + 50: uint16(58616), + 51: uint16(58617), + 52: uint16(58618), + 53: uint16(58619), + 54: uint16(58620), + 55: uint16(58621), + 56: uint16(58622), + 57: uint16(58623), + 58: uint16(58624), + 59: uint16(58625), + 60: uint16(58626), + 61: uint16(58627), + 62: uint16(58628), + 63: uint16(58629), + 64: uint16(58630), + 65: uint16(58631), + 66: uint16(58632), + 67: uint16(58633), + 68: uint16(58634), + 69: uint16(58635), + 70: uint16(58636), + 71: uint16(58637), + 72: uint16(58638), + 73: uint16(58639), + 74: uint16(58640), + 75: uint16(58641), + 76: uint16(58642), + 77: uint16(58643), + 78: uint16(58644), + 79: uint16(58645), + 80: uint16(58646), + 81: uint16(58647), + 82: uint16(58648), + 83: uint16(58649), + 84: uint16(58650), + 85: uint16(58651), + 86: uint16(58652), + 87: uint16(58653), + 88: uint16(58654), + 89: uint16(58655), + 90: uint16(58656), + 91: uint16(58657), + 92: uint16(58658), + 93: uint16(58659), + 94: uint16(58660), + 95: uint16(58661), + 96: uint16(12288), + 97: uint16(12289), + 98: uint16(12290), + 99: uint16(183), + 100: uint16(713), + 101: uint16(711), + 102: uint16(168), + 103: uint16(12291), + 104: uint16(12293), + 105: uint16(8212), + 106: uint16(65374), + 107: uint16(8214), + 108: uint16(8230), + 109: uint16(8216), + 110: uint16(8217), + 111: uint16(8220), + 112: uint16(8221), + 113: uint16(12308), + 114: uint16(12309), + 115: uint16(12296), + 116: uint16(12297), + 117: uint16(12298), + 118: uint16(12299), + 119: uint16(12300), + 120: uint16(12301), + 121: uint16(12302), + 122: uint16(12303), + 123: uint16(12310), + 124: uint16(12311), + 125: uint16(12304), + 126: uint16(12305), + 127: uint16(177), + 128: uint16(215), + 129: uint16(247), + 130: uint16(8758), + 131: uint16(8743), + 132: uint16(8744), + 133: uint16(8721), + 134: uint16(8719), + 135: uint16(8746), + 136: uint16(8745), + 137: uint16(8712), + 138: uint16(8759), + 139: uint16(8730), + 140: uint16(8869), + 141: uint16(8741), + 142: uint16(8736), + 143: uint16(8978), + 144: uint16(8857), + 145: uint16(8747), + 146: uint16(8750), + 147: uint16(8801), + 148: uint16(8780), + 149: uint16(8776), + 150: uint16(8765), + 151: uint16(8733), + 152: uint16(8800), + 153: uint16(8814), + 154: uint16(8815), + 155: uint16(8804), + 156: uint16(8805), + 157: uint16(8734), + 158: uint16(8757), + 159: uint16(8756), + 160: uint16(9794), + 161: uint16(9792), + 162: uint16(176), + 163: uint16(8242), + 164: uint16(8243), + 165: uint16(8451), + 166: uint16(65284), + 167: uint16(164), + 168: uint16(65504), + 169: uint16(65505), + 170: uint16(8240), + 171: uint16(167), + 172: uint16(8470), + 173: uint16(9734), + 174: uint16(9733), + 175: uint16(9675), + 176: uint16(9679), + 177: uint16(9678), + 178: uint16(9671), + 179: uint16(9670), + 180: uint16(9633), + 181: uint16(9632), + 182: uint16(9651), + 183: uint16(9650), + 184: uint16(8251), + 185: uint16(8594), + 186: uint16(8592), + 187: uint16(8593), + 188: uint16(8595), + 189: uint16(12307), + }, + 33: { + 0: uint16(58662), + 1: uint16(58663), + 2: uint16(58664), + 3: uint16(58665), + 4: uint16(58666), + 5: uint16(58667), + 6: uint16(58668), + 7: uint16(58669), + 8: uint16(58670), + 9: uint16(58671), + 10: uint16(58672), + 11: uint16(58673), + 12: uint16(58674), + 13: uint16(58675), + 14: uint16(58676), + 15: uint16(58677), + 16: uint16(58678), + 17: uint16(58679), + 18: uint16(58680), + 19: uint16(58681), + 20: uint16(58682), + 21: uint16(58683), + 22: uint16(58684), + 23: uint16(58685), + 24: uint16(58686), + 25: uint16(58687), + 26: uint16(58688), + 27: uint16(58689), + 28: uint16(58690), + 29: uint16(58691), + 30: uint16(58692), + 31: uint16(58693), + 32: uint16(58694), + 33: uint16(58695), + 34: uint16(58696), + 35: uint16(58697), + 36: uint16(58698), + 37: uint16(58699), + 38: uint16(58700), + 39: uint16(58701), + 40: uint16(58702), + 41: uint16(58703), + 42: uint16(58704), + 43: uint16(58705), + 44: uint16(58706), + 45: uint16(58707), + 46: uint16(58708), + 47: uint16(58709), + 48: uint16(58710), + 49: uint16(58711), + 50: uint16(58712), + 51: uint16(58713), + 52: uint16(58714), + 53: uint16(58715), + 54: uint16(58716), + 55: uint16(58717), + 56: uint16(58718), + 57: uint16(58719), + 58: uint16(58720), + 59: uint16(58721), + 60: uint16(58722), + 61: uint16(58723), + 62: uint16(58724), + 63: uint16(58725), + 64: uint16(58726), + 65: uint16(58727), + 66: uint16(58728), + 67: uint16(58729), + 68: uint16(58730), + 69: uint16(58731), + 70: uint16(58732), + 71: uint16(58733), + 72: uint16(58734), + 73: uint16(58735), + 74: uint16(58736), + 75: uint16(58737), + 76: uint16(58738), + 77: uint16(58739), + 78: uint16(58740), + 79: uint16(58741), + 80: uint16(58742), + 81: uint16(58743), + 82: uint16(58744), + 83: uint16(58745), + 84: uint16(58746), + 85: uint16(58747), + 86: uint16(58748), + 87: uint16(58749), + 88: uint16(58750), + 89: uint16(58751), + 90: uint16(58752), + 91: uint16(58753), + 92: uint16(58754), + 93: uint16(58755), + 94: uint16(58756), + 95: uint16(58757), + 96: uint16(8560), + 97: uint16(8561), + 98: uint16(8562), + 99: uint16(8563), + 100: uint16(8564), + 101: uint16(8565), + 102: uint16(8566), + 103: uint16(8567), + 104: uint16(8568), + 105: uint16(8569), + 106: uint16(59238), + 107: uint16(59239), + 108: uint16(59240), + 109: uint16(59241), + 110: uint16(59242), + 111: uint16(59243), + 112: uint16(9352), + 113: uint16(9353), + 114: uint16(9354), + 115: uint16(9355), + 116: uint16(9356), + 117: uint16(9357), + 118: uint16(9358), + 119: uint16(9359), + 120: uint16(9360), + 121: uint16(9361), + 122: uint16(9362), + 123: uint16(9363), + 124: uint16(9364), + 125: uint16(9365), + 126: uint16(9366), + 127: uint16(9367), + 128: uint16(9368), + 129: uint16(9369), + 130: uint16(9370), + 131: uint16(9371), + 132: uint16(9332), + 133: uint16(9333), + 134: uint16(9334), + 135: uint16(9335), + 136: uint16(9336), + 137: uint16(9337), + 138: uint16(9338), + 139: uint16(9339), + 140: uint16(9340), + 141: uint16(9341), + 142: uint16(9342), + 143: uint16(9343), + 144: uint16(9344), + 145: uint16(9345), + 146: uint16(9346), + 147: uint16(9347), + 148: uint16(9348), + 149: uint16(9349), + 150: uint16(9350), + 151: uint16(9351), + 152: uint16(9312), + 153: uint16(9313), + 154: uint16(9314), + 155: uint16(9315), + 156: uint16(9316), + 157: uint16(9317), + 158: uint16(9318), + 159: uint16(9319), + 160: uint16(9320), + 161: uint16(9321), + 162: uint16(8364), + 163: uint16(59245), + 164: uint16(12832), + 165: uint16(12833), + 166: uint16(12834), + 167: uint16(12835), + 168: uint16(12836), + 169: uint16(12837), + 170: uint16(12838), + 171: uint16(12839), + 172: uint16(12840), + 173: uint16(12841), + 174: uint16(59246), + 175: uint16(59247), + 176: uint16(8544), + 177: uint16(8545), + 178: uint16(8546), + 179: uint16(8547), + 180: uint16(8548), + 181: uint16(8549), + 182: uint16(8550), + 183: uint16(8551), + 184: uint16(8552), + 185: uint16(8553), + 186: uint16(8554), + 187: uint16(8555), + 188: uint16(59248), + 189: uint16(59249), + }, + 34: { + 0: uint16(58758), + 1: uint16(58759), + 2: uint16(58760), + 3: uint16(58761), + 4: uint16(58762), + 5: uint16(58763), + 6: uint16(58764), + 7: uint16(58765), + 8: uint16(58766), + 9: uint16(58767), + 10: uint16(58768), + 11: uint16(58769), + 12: uint16(58770), + 13: uint16(58771), + 14: uint16(58772), + 15: uint16(58773), + 16: uint16(58774), + 17: uint16(58775), + 18: uint16(58776), + 19: uint16(58777), + 20: uint16(58778), + 21: uint16(58779), + 22: uint16(58780), + 23: uint16(58781), + 24: uint16(58782), + 25: uint16(58783), + 26: uint16(58784), + 27: uint16(58785), + 28: uint16(58786), + 29: uint16(58787), + 30: uint16(58788), + 31: uint16(58789), + 32: uint16(58790), + 33: uint16(58791), + 34: uint16(58792), + 35: uint16(58793), + 36: uint16(58794), + 37: uint16(58795), + 38: uint16(58796), + 39: uint16(58797), + 40: uint16(58798), + 41: uint16(58799), + 42: uint16(58800), + 43: uint16(58801), + 44: uint16(58802), + 45: uint16(58803), + 46: uint16(58804), + 47: uint16(58805), + 48: uint16(58806), + 49: uint16(58807), + 50: uint16(58808), + 51: uint16(58809), + 52: uint16(58810), + 53: uint16(58811), + 54: uint16(58812), + 55: uint16(58813), + 56: uint16(58814), + 57: uint16(58815), + 58: uint16(58816), + 59: uint16(58817), + 60: uint16(58818), + 61: uint16(58819), + 62: uint16(58820), + 63: uint16(58821), + 64: uint16(58822), + 65: uint16(58823), + 66: uint16(58824), + 67: uint16(58825), + 68: uint16(58826), + 69: uint16(58827), + 70: uint16(58828), + 71: uint16(58829), + 72: uint16(58830), + 73: uint16(58831), + 74: uint16(58832), + 75: uint16(58833), + 76: uint16(58834), + 77: uint16(58835), + 78: uint16(58836), + 79: uint16(58837), + 80: uint16(58838), + 81: uint16(58839), + 82: uint16(58840), + 83: uint16(58841), + 84: uint16(58842), + 85: uint16(58843), + 86: uint16(58844), + 87: uint16(58845), + 88: uint16(58846), + 89: uint16(58847), + 90: uint16(58848), + 91: uint16(58849), + 92: uint16(58850), + 93: uint16(58851), + 94: uint16(58852), + 95: uint16(58853), + 96: uint16(65281), + 97: uint16(65282), + 98: uint16(65283), + 99: uint16(65509), + 100: uint16(65285), + 101: uint16(65286), + 102: uint16(65287), + 103: uint16(65288), + 104: uint16(65289), + 105: uint16(65290), + 106: uint16(65291), + 107: uint16(65292), + 108: uint16(65293), + 109: uint16(65294), + 110: uint16(65295), + 111: uint16(65296), + 112: uint16(65297), + 113: uint16(65298), + 114: uint16(65299), + 115: uint16(65300), + 116: uint16(65301), + 117: uint16(65302), + 118: uint16(65303), + 119: uint16(65304), + 120: uint16(65305), + 121: uint16(65306), + 122: uint16(65307), + 123: uint16(65308), + 124: uint16(65309), + 125: uint16(65310), + 126: uint16(65311), + 127: uint16(65312), + 128: uint16(65313), + 129: uint16(65314), + 130: uint16(65315), + 131: uint16(65316), + 132: uint16(65317), + 133: uint16(65318), + 134: uint16(65319), + 135: uint16(65320), + 136: uint16(65321), + 137: uint16(65322), + 138: uint16(65323), + 139: uint16(65324), + 140: uint16(65325), + 141: uint16(65326), + 142: uint16(65327), + 143: uint16(65328), + 144: uint16(65329), + 145: uint16(65330), + 146: uint16(65331), + 147: uint16(65332), + 148: uint16(65333), + 149: uint16(65334), + 150: uint16(65335), + 151: uint16(65336), + 152: uint16(65337), + 153: uint16(65338), + 154: uint16(65339), + 155: uint16(65340), + 156: uint16(65341), + 157: uint16(65342), + 158: uint16(65343), + 159: uint16(65344), + 160: uint16(65345), + 161: uint16(65346), + 162: uint16(65347), + 163: uint16(65348), + 164: uint16(65349), + 165: uint16(65350), + 166: uint16(65351), + 167: uint16(65352), + 168: uint16(65353), + 169: uint16(65354), + 170: uint16(65355), + 171: uint16(65356), + 172: uint16(65357), + 173: uint16(65358), + 174: uint16(65359), + 175: uint16(65360), + 176: uint16(65361), + 177: uint16(65362), + 178: uint16(65363), + 179: uint16(65364), + 180: uint16(65365), + 181: uint16(65366), + 182: uint16(65367), + 183: uint16(65368), + 184: uint16(65369), + 185: uint16(65370), + 186: uint16(65371), + 187: uint16(65372), + 188: uint16(65373), + 189: uint16(65507), + }, + 35: { + 0: uint16(58854), + 1: uint16(58855), + 2: uint16(58856), + 3: uint16(58857), + 4: uint16(58858), + 5: uint16(58859), + 6: uint16(58860), + 7: uint16(58861), + 8: uint16(58862), + 9: uint16(58863), + 10: uint16(58864), + 11: uint16(58865), + 12: uint16(58866), + 13: uint16(58867), + 14: uint16(58868), + 15: uint16(58869), + 16: uint16(58870), + 17: uint16(58871), + 18: uint16(58872), + 19: uint16(58873), + 20: uint16(58874), + 21: uint16(58875), + 22: uint16(58876), + 23: uint16(58877), + 24: uint16(58878), + 25: uint16(58879), + 26: uint16(58880), + 27: uint16(58881), + 28: uint16(58882), + 29: uint16(58883), + 30: uint16(58884), + 31: uint16(58885), + 32: uint16(58886), + 33: uint16(58887), + 34: uint16(58888), + 35: uint16(58889), + 36: uint16(58890), + 37: uint16(58891), + 38: uint16(58892), + 39: uint16(58893), + 40: uint16(58894), + 41: uint16(58895), + 42: uint16(58896), + 43: uint16(58897), + 44: uint16(58898), + 45: uint16(58899), + 46: uint16(58900), + 47: uint16(58901), + 48: uint16(58902), + 49: uint16(58903), + 50: uint16(58904), + 51: uint16(58905), + 52: uint16(58906), + 53: uint16(58907), + 54: uint16(58908), + 55: uint16(58909), + 56: uint16(58910), + 57: uint16(58911), + 58: uint16(58912), + 59: uint16(58913), + 60: uint16(58914), + 61: uint16(58915), + 62: uint16(58916), + 63: uint16(58917), + 64: uint16(58918), + 65: uint16(58919), + 66: uint16(58920), + 67: uint16(58921), + 68: uint16(58922), + 69: uint16(58923), + 70: uint16(58924), + 71: uint16(58925), + 72: uint16(58926), + 73: uint16(58927), + 74: uint16(58928), + 75: uint16(58929), + 76: uint16(58930), + 77: uint16(58931), + 78: uint16(58932), + 79: uint16(58933), + 80: uint16(58934), + 81: uint16(58935), + 82: uint16(58936), + 83: uint16(58937), + 84: uint16(58938), + 85: uint16(58939), + 86: uint16(58940), + 87: uint16(58941), + 88: uint16(58942), + 89: uint16(58943), + 90: uint16(58944), + 91: uint16(58945), + 92: uint16(58946), + 93: uint16(58947), + 94: uint16(58948), + 95: uint16(58949), + 96: uint16(12353), + 97: uint16(12354), + 98: uint16(12355), + 99: uint16(12356), + 100: uint16(12357), + 101: uint16(12358), + 102: uint16(12359), + 103: uint16(12360), + 104: uint16(12361), + 105: uint16(12362), + 106: uint16(12363), + 107: uint16(12364), + 108: uint16(12365), + 109: uint16(12366), + 110: uint16(12367), + 111: uint16(12368), + 112: uint16(12369), + 113: uint16(12370), + 114: uint16(12371), + 115: uint16(12372), + 116: uint16(12373), + 117: uint16(12374), + 118: uint16(12375), + 119: uint16(12376), + 120: uint16(12377), + 121: uint16(12378), + 122: uint16(12379), + 123: uint16(12380), + 124: uint16(12381), + 125: uint16(12382), + 126: uint16(12383), + 127: uint16(12384), + 128: uint16(12385), + 129: uint16(12386), + 130: uint16(12387), + 131: uint16(12388), + 132: uint16(12389), + 133: uint16(12390), + 134: uint16(12391), + 135: uint16(12392), + 136: uint16(12393), + 137: uint16(12394), + 138: uint16(12395), + 139: uint16(12396), + 140: uint16(12397), + 141: uint16(12398), + 142: uint16(12399), + 143: uint16(12400), + 144: uint16(12401), + 145: uint16(12402), + 146: uint16(12403), + 147: uint16(12404), + 148: uint16(12405), + 149: uint16(12406), + 150: uint16(12407), + 151: uint16(12408), + 152: uint16(12409), + 153: uint16(12410), + 154: uint16(12411), + 155: uint16(12412), + 156: uint16(12413), + 157: uint16(12414), + 158: uint16(12415), + 159: uint16(12416), + 160: uint16(12417), + 161: uint16(12418), + 162: uint16(12419), + 163: uint16(12420), + 164: uint16(12421), + 165: uint16(12422), + 166: uint16(12423), + 167: uint16(12424), + 168: uint16(12425), + 169: uint16(12426), + 170: uint16(12427), + 171: uint16(12428), + 172: uint16(12429), + 173: uint16(12430), + 174: uint16(12431), + 175: uint16(12432), + 176: uint16(12433), + 177: uint16(12434), + 178: uint16(12435), + 179: uint16(59250), + 180: uint16(59251), + 181: uint16(59252), + 182: uint16(59253), + 183: uint16(59254), + 184: uint16(59255), + 185: uint16(59256), + 186: uint16(59257), + 187: uint16(59258), + 188: uint16(59259), + 189: uint16(59260), + }, + 36: { + 0: uint16(58950), + 1: uint16(58951), + 2: uint16(58952), + 3: uint16(58953), + 4: uint16(58954), + 5: uint16(58955), + 6: uint16(58956), + 7: uint16(58957), + 8: uint16(58958), + 9: uint16(58959), + 10: uint16(58960), + 11: uint16(58961), + 12: uint16(58962), + 13: uint16(58963), + 14: uint16(58964), + 15: uint16(58965), + 16: uint16(58966), + 17: uint16(58967), + 18: uint16(58968), + 19: uint16(58969), + 20: uint16(58970), + 21: uint16(58971), + 22: uint16(58972), + 23: uint16(58973), + 24: uint16(58974), + 25: uint16(58975), + 26: uint16(58976), + 27: uint16(58977), + 28: uint16(58978), + 29: uint16(58979), + 30: uint16(58980), + 31: uint16(58981), + 32: uint16(58982), + 33: uint16(58983), + 34: uint16(58984), + 35: uint16(58985), + 36: uint16(58986), + 37: uint16(58987), + 38: uint16(58988), + 39: uint16(58989), + 40: uint16(58990), + 41: uint16(58991), + 42: uint16(58992), + 43: uint16(58993), + 44: uint16(58994), + 45: uint16(58995), + 46: uint16(58996), + 47: uint16(58997), + 48: uint16(58998), + 49: uint16(58999), + 50: uint16(59000), + 51: uint16(59001), + 52: uint16(59002), + 53: uint16(59003), + 54: uint16(59004), + 55: uint16(59005), + 56: uint16(59006), + 57: uint16(59007), + 58: uint16(59008), + 59: uint16(59009), + 60: uint16(59010), + 61: uint16(59011), + 62: uint16(59012), + 63: uint16(59013), + 64: uint16(59014), + 65: uint16(59015), + 66: uint16(59016), + 67: uint16(59017), + 68: uint16(59018), + 69: uint16(59019), + 70: uint16(59020), + 71: uint16(59021), + 72: uint16(59022), + 73: uint16(59023), + 74: uint16(59024), + 75: uint16(59025), + 76: uint16(59026), + 77: uint16(59027), + 78: uint16(59028), + 79: uint16(59029), + 80: uint16(59030), + 81: uint16(59031), + 82: uint16(59032), + 83: uint16(59033), + 84: uint16(59034), + 85: uint16(59035), + 86: uint16(59036), + 87: uint16(59037), + 88: uint16(59038), + 89: uint16(59039), + 90: uint16(59040), + 91: uint16(59041), + 92: uint16(59042), + 93: uint16(59043), + 94: uint16(59044), + 95: uint16(59045), + 96: uint16(12449), + 97: uint16(12450), + 98: uint16(12451), + 99: uint16(12452), + 100: uint16(12453), + 101: uint16(12454), + 102: uint16(12455), + 103: uint16(12456), + 104: uint16(12457), + 105: uint16(12458), + 106: uint16(12459), + 107: uint16(12460), + 108: uint16(12461), + 109: uint16(12462), + 110: uint16(12463), + 111: uint16(12464), + 112: uint16(12465), + 113: uint16(12466), + 114: uint16(12467), + 115: uint16(12468), + 116: uint16(12469), + 117: uint16(12470), + 118: uint16(12471), + 119: uint16(12472), + 120: uint16(12473), + 121: uint16(12474), + 122: uint16(12475), + 123: uint16(12476), + 124: uint16(12477), + 125: uint16(12478), + 126: uint16(12479), + 127: uint16(12480), + 128: uint16(12481), + 129: uint16(12482), + 130: uint16(12483), + 131: uint16(12484), + 132: uint16(12485), + 133: uint16(12486), + 134: uint16(12487), + 135: uint16(12488), + 136: uint16(12489), + 137: uint16(12490), + 138: uint16(12491), + 139: uint16(12492), + 140: uint16(12493), + 141: uint16(12494), + 142: uint16(12495), + 143: uint16(12496), + 144: uint16(12497), + 145: uint16(12498), + 146: uint16(12499), + 147: uint16(12500), + 148: uint16(12501), + 149: uint16(12502), + 150: uint16(12503), + 151: uint16(12504), + 152: uint16(12505), + 153: uint16(12506), + 154: uint16(12507), + 155: uint16(12508), + 156: uint16(12509), + 157: uint16(12510), + 158: uint16(12511), + 159: uint16(12512), + 160: uint16(12513), + 161: uint16(12514), + 162: uint16(12515), + 163: uint16(12516), + 164: uint16(12517), + 165: uint16(12518), + 166: uint16(12519), + 167: uint16(12520), + 168: uint16(12521), + 169: uint16(12522), + 170: uint16(12523), + 171: uint16(12524), + 172: uint16(12525), + 173: uint16(12526), + 174: uint16(12527), + 175: uint16(12528), + 176: uint16(12529), + 177: uint16(12530), + 178: uint16(12531), + 179: uint16(12532), + 180: uint16(12533), + 181: uint16(12534), + 182: uint16(59261), + 183: uint16(59262), + 184: uint16(59263), + 185: uint16(59264), + 186: uint16(59265), + 187: uint16(59266), + 188: uint16(59267), + 189: uint16(59268), + }, + 37: { + 0: uint16(59046), + 1: uint16(59047), + 2: uint16(59048), + 3: uint16(59049), + 4: uint16(59050), + 5: uint16(59051), + 6: uint16(59052), + 7: uint16(59053), + 8: uint16(59054), + 9: uint16(59055), + 10: uint16(59056), + 11: uint16(59057), + 12: uint16(59058), + 13: uint16(59059), + 14: uint16(59060), + 15: uint16(59061), + 16: uint16(59062), + 17: uint16(59063), + 18: uint16(59064), + 19: uint16(59065), + 20: uint16(59066), + 21: uint16(59067), + 22: uint16(59068), + 23: uint16(59069), + 24: uint16(59070), + 25: uint16(59071), + 26: uint16(59072), + 27: uint16(59073), + 28: uint16(59074), + 29: uint16(59075), + 30: uint16(59076), + 31: uint16(59077), + 32: uint16(59078), + 33: uint16(59079), + 34: uint16(59080), + 35: uint16(59081), + 36: uint16(59082), + 37: uint16(59083), + 38: uint16(59084), + 39: uint16(59085), + 40: uint16(59086), + 41: uint16(59087), + 42: uint16(59088), + 43: uint16(59089), + 44: uint16(59090), + 45: uint16(59091), + 46: uint16(59092), + 47: uint16(59093), + 48: uint16(59094), + 49: uint16(59095), + 50: uint16(59096), + 51: uint16(59097), + 52: uint16(59098), + 53: uint16(59099), + 54: uint16(59100), + 55: uint16(59101), + 56: uint16(59102), + 57: uint16(59103), + 58: uint16(59104), + 59: uint16(59105), + 60: uint16(59106), + 61: uint16(59107), + 62: uint16(59108), + 63: uint16(59109), + 64: uint16(59110), + 65: uint16(59111), + 66: uint16(59112), + 67: uint16(59113), + 68: uint16(59114), + 69: uint16(59115), + 70: uint16(59116), + 71: uint16(59117), + 72: uint16(59118), + 73: uint16(59119), + 74: uint16(59120), + 75: uint16(59121), + 76: uint16(59122), + 77: uint16(59123), + 78: uint16(59124), + 79: uint16(59125), + 80: uint16(59126), + 81: uint16(59127), + 82: uint16(59128), + 83: uint16(59129), + 84: uint16(59130), + 85: uint16(59131), + 86: uint16(59132), + 87: uint16(59133), + 88: uint16(59134), + 89: uint16(59135), + 90: uint16(59136), + 91: uint16(59137), + 92: uint16(59138), + 93: uint16(59139), + 94: uint16(59140), + 95: uint16(59141), + 96: uint16(913), + 97: uint16(914), + 98: uint16(915), + 99: uint16(916), + 100: uint16(917), + 101: uint16(918), + 102: uint16(919), + 103: uint16(920), + 104: uint16(921), + 105: uint16(922), + 106: uint16(923), + 107: uint16(924), + 108: uint16(925), + 109: uint16(926), + 110: uint16(927), + 111: uint16(928), + 112: uint16(929), + 113: uint16(931), + 114: uint16(932), + 115: uint16(933), + 116: uint16(934), + 117: uint16(935), + 118: uint16(936), + 119: uint16(937), + 120: uint16(59269), + 121: uint16(59270), + 122: uint16(59271), + 123: uint16(59272), + 124: uint16(59273), + 125: uint16(59274), + 126: uint16(59275), + 127: uint16(59276), + 128: uint16(945), + 129: uint16(946), + 130: uint16(947), + 131: uint16(948), + 132: uint16(949), + 133: uint16(950), + 134: uint16(951), + 135: uint16(952), + 136: uint16(953), + 137: uint16(954), + 138: uint16(955), + 139: uint16(956), + 140: uint16(957), + 141: uint16(958), + 142: uint16(959), + 143: uint16(960), + 144: uint16(961), + 145: uint16(963), + 146: uint16(964), + 147: uint16(965), + 148: uint16(966), + 149: uint16(967), + 150: uint16(968), + 151: uint16(969), + 152: uint16(59277), + 153: uint16(59278), + 154: uint16(59279), + 155: uint16(59280), + 156: uint16(59281), + 157: uint16(59282), + 158: uint16(59283), + 159: uint16(65077), + 160: uint16(65078), + 161: uint16(65081), + 162: uint16(65082), + 163: uint16(65087), + 164: uint16(65088), + 165: uint16(65085), + 166: uint16(65086), + 167: uint16(65089), + 168: uint16(65090), + 169: uint16(65091), + 170: uint16(65092), + 171: uint16(59284), + 172: uint16(59285), + 173: uint16(65083), + 174: uint16(65084), + 175: uint16(65079), + 176: uint16(65080), + 177: uint16(65073), + 178: uint16(59286), + 179: uint16(65075), + 180: uint16(65076), + 181: uint16(59287), + 182: uint16(59288), + 183: uint16(59289), + 184: uint16(59290), + 185: uint16(59291), + 186: uint16(59292), + 187: uint16(59293), + 188: uint16(59294), + 189: uint16(59295), + }, + 38: { + 0: uint16(59142), + 1: uint16(59143), + 2: uint16(59144), + 3: uint16(59145), + 4: uint16(59146), + 5: uint16(59147), + 6: uint16(59148), + 7: uint16(59149), + 8: uint16(59150), + 9: uint16(59151), + 10: uint16(59152), + 11: uint16(59153), + 12: uint16(59154), + 13: uint16(59155), + 14: uint16(59156), + 15: uint16(59157), + 16: uint16(59158), + 17: uint16(59159), + 18: uint16(59160), + 19: uint16(59161), + 20: uint16(59162), + 21: uint16(59163), + 22: uint16(59164), + 23: uint16(59165), + 24: uint16(59166), + 25: uint16(59167), + 26: uint16(59168), + 27: uint16(59169), + 28: uint16(59170), + 29: uint16(59171), + 30: uint16(59172), + 31: uint16(59173), + 32: uint16(59174), + 33: uint16(59175), + 34: uint16(59176), + 35: uint16(59177), + 36: uint16(59178), + 37: uint16(59179), + 38: uint16(59180), + 39: uint16(59181), + 40: uint16(59182), + 41: uint16(59183), + 42: uint16(59184), + 43: uint16(59185), + 44: uint16(59186), + 45: uint16(59187), + 46: uint16(59188), + 47: uint16(59189), + 48: uint16(59190), + 49: uint16(59191), + 50: uint16(59192), + 51: uint16(59193), + 52: uint16(59194), + 53: uint16(59195), + 54: uint16(59196), + 55: uint16(59197), + 56: uint16(59198), + 57: uint16(59199), + 58: uint16(59200), + 59: uint16(59201), + 60: uint16(59202), + 61: uint16(59203), + 62: uint16(59204), + 63: uint16(59205), + 64: uint16(59206), + 65: uint16(59207), + 66: uint16(59208), + 67: uint16(59209), + 68: uint16(59210), + 69: uint16(59211), + 70: uint16(59212), + 71: uint16(59213), + 72: uint16(59214), + 73: uint16(59215), + 74: uint16(59216), + 75: uint16(59217), + 76: uint16(59218), + 77: uint16(59219), + 78: uint16(59220), + 79: uint16(59221), + 80: uint16(59222), + 81: uint16(59223), + 82: uint16(59224), + 83: uint16(59225), + 84: uint16(59226), + 85: uint16(59227), + 86: uint16(59228), + 87: uint16(59229), + 88: uint16(59230), + 89: uint16(59231), + 90: uint16(59232), + 91: uint16(59233), + 92: uint16(59234), + 93: uint16(59235), + 94: uint16(59236), + 95: uint16(59237), + 96: uint16(1040), + 97: uint16(1041), + 98: uint16(1042), + 99: uint16(1043), + 100: uint16(1044), + 101: uint16(1045), + 102: uint16(1025), + 103: uint16(1046), + 104: uint16(1047), + 105: uint16(1048), + 106: uint16(1049), + 107: uint16(1050), + 108: uint16(1051), + 109: uint16(1052), + 110: uint16(1053), + 111: uint16(1054), + 112: uint16(1055), + 113: uint16(1056), + 114: uint16(1057), + 115: uint16(1058), + 116: uint16(1059), + 117: uint16(1060), + 118: uint16(1061), + 119: uint16(1062), + 120: uint16(1063), + 121: uint16(1064), + 122: uint16(1065), + 123: uint16(1066), + 124: uint16(1067), + 125: uint16(1068), + 126: uint16(1069), + 127: uint16(1070), + 128: uint16(1071), + 129: uint16(59296), + 130: uint16(59297), + 131: uint16(59298), + 132: uint16(59299), + 133: uint16(59300), + 134: uint16(59301), + 135: uint16(59302), + 136: uint16(59303), + 137: uint16(59304), + 138: uint16(59305), + 139: uint16(59306), + 140: uint16(59307), + 141: uint16(59308), + 142: uint16(59309), + 143: uint16(59310), + 144: uint16(1072), + 145: uint16(1073), + 146: uint16(1074), + 147: uint16(1075), + 148: uint16(1076), + 149: uint16(1077), + 150: uint16(1105), + 151: uint16(1078), + 152: uint16(1079), + 153: uint16(1080), + 154: uint16(1081), + 155: uint16(1082), + 156: uint16(1083), + 157: uint16(1084), + 158: uint16(1085), + 159: uint16(1086), + 160: uint16(1087), + 161: uint16(1088), + 162: uint16(1089), + 163: uint16(1090), + 164: uint16(1091), + 165: uint16(1092), + 166: uint16(1093), + 167: uint16(1094), + 168: uint16(1095), + 169: uint16(1096), + 170: uint16(1097), + 171: uint16(1098), + 172: uint16(1099), + 173: uint16(1100), + 174: uint16(1101), + 175: uint16(1102), + 176: uint16(1103), + 177: uint16(59311), + 178: uint16(59312), + 179: uint16(59313), + 180: uint16(59314), + 181: uint16(59315), + 182: uint16(59316), + 183: uint16(59317), + 184: uint16(59318), + 185: uint16(59319), + 186: uint16(59320), + 187: uint16(59321), + 188: uint16(59322), + 189: uint16(59323), + }, + 39: { + 0: uint16(714), + 1: uint16(715), + 2: uint16(729), + 3: uint16(8211), + 4: uint16(8213), + 5: uint16(8229), + 6: uint16(8245), + 7: uint16(8453), + 8: uint16(8457), + 9: uint16(8598), + 10: uint16(8599), + 11: uint16(8600), + 12: uint16(8601), + 13: uint16(8725), + 14: uint16(8735), + 15: uint16(8739), + 16: uint16(8786), + 17: uint16(8806), + 18: uint16(8807), + 19: uint16(8895), + 20: uint16(9552), + 21: uint16(9553), + 22: uint16(9554), + 23: uint16(9555), + 24: uint16(9556), + 25: uint16(9557), + 26: uint16(9558), + 27: uint16(9559), + 28: uint16(9560), + 29: uint16(9561), + 30: uint16(9562), + 31: uint16(9563), + 32: uint16(9564), + 33: uint16(9565), + 34: uint16(9566), + 35: uint16(9567), + 36: uint16(9568), + 37: uint16(9569), + 38: uint16(9570), + 39: uint16(9571), + 40: uint16(9572), + 41: uint16(9573), + 42: uint16(9574), + 43: uint16(9575), + 44: uint16(9576), + 45: uint16(9577), + 46: uint16(9578), + 47: uint16(9579), + 48: uint16(9580), + 49: uint16(9581), + 50: uint16(9582), + 51: uint16(9583), + 52: uint16(9584), + 53: uint16(9585), + 54: uint16(9586), + 55: uint16(9587), + 56: uint16(9601), + 57: uint16(9602), + 58: uint16(9603), + 59: uint16(9604), + 60: uint16(9605), + 61: uint16(9606), + 62: uint16(9607), + 63: uint16(9608), + 64: uint16(9609), + 65: uint16(9610), + 66: uint16(9611), + 67: uint16(9612), + 68: uint16(9613), + 69: uint16(9614), + 70: uint16(9615), + 71: uint16(9619), + 72: uint16(9620), + 73: uint16(9621), + 74: uint16(9660), + 75: uint16(9661), + 76: uint16(9698), + 77: uint16(9699), + 78: uint16(9700), + 79: uint16(9701), + 80: uint16(9737), + 81: uint16(8853), + 82: uint16(12306), + 83: uint16(12317), + 84: uint16(12318), + 85: uint16(59324), + 86: uint16(59325), + 87: uint16(59326), + 88: uint16(59327), + 89: uint16(59328), + 90: uint16(59329), + 91: uint16(59330), + 92: uint16(59331), + 93: uint16(59332), + 94: uint16(59333), + 95: uint16(59334), + 96: uint16(257), + 97: uint16(225), + 98: uint16(462), + 99: uint16(224), + 100: uint16(275), + 101: uint16(233), + 102: uint16(283), + 103: uint16(232), + 104: uint16(299), + 105: uint16(237), + 106: uint16(464), + 107: uint16(236), + 108: uint16(333), + 109: uint16(243), + 110: uint16(466), + 111: uint16(242), + 112: uint16(363), + 113: uint16(250), + 114: uint16(468), + 115: uint16(249), + 116: uint16(470), + 117: uint16(472), + 118: uint16(474), + 119: uint16(476), + 120: uint16(252), + 121: uint16(234), + 122: uint16(593), + 123: uint16(59335), + 124: uint16(324), + 125: uint16(328), + 126: uint16(505), + 127: uint16(609), + 128: uint16(59337), + 129: uint16(59338), + 130: uint16(59339), + 131: uint16(59340), + 132: uint16(12549), + 133: uint16(12550), + 134: uint16(12551), + 135: uint16(12552), + 136: uint16(12553), + 137: uint16(12554), + 138: uint16(12555), + 139: uint16(12556), + 140: uint16(12557), + 141: uint16(12558), + 142: uint16(12559), + 143: uint16(12560), + 144: uint16(12561), + 145: uint16(12562), + 146: uint16(12563), + 147: uint16(12564), + 148: uint16(12565), + 149: uint16(12566), + 150: uint16(12567), + 151: uint16(12568), + 152: uint16(12569), + 153: uint16(12570), + 154: uint16(12571), + 155: uint16(12572), + 156: uint16(12573), + 157: uint16(12574), + 158: uint16(12575), + 159: uint16(12576), + 160: uint16(12577), + 161: uint16(12578), + 162: uint16(12579), + 163: uint16(12580), + 164: uint16(12581), + 165: uint16(12582), + 166: uint16(12583), + 167: uint16(12584), + 168: uint16(12585), + 169: uint16(59341), + 170: uint16(59342), + 171: uint16(59343), + 172: uint16(59344), + 173: uint16(59345), + 174: uint16(59346), + 175: uint16(59347), + 176: uint16(59348), + 177: uint16(59349), + 178: uint16(59350), + 179: uint16(59351), + 180: uint16(59352), + 181: uint16(59353), + 182: uint16(59354), + 183: uint16(59355), + 184: uint16(59356), + 185: uint16(59357), + 186: uint16(59358), + 187: uint16(59359), + 188: uint16(59360), + 189: uint16(59361), + }, + 40: { + 0: uint16(12321), + 1: uint16(12322), + 2: uint16(12323), + 3: uint16(12324), + 4: uint16(12325), + 5: uint16(12326), + 6: uint16(12327), + 7: uint16(12328), + 8: uint16(12329), + 9: uint16(12963), + 10: uint16(13198), + 11: uint16(13199), + 12: uint16(13212), + 13: uint16(13213), + 14: uint16(13214), + 15: uint16(13217), + 16: uint16(13252), + 17: uint16(13262), + 18: uint16(13265), + 19: uint16(13266), + 20: uint16(13269), + 21: uint16(65072), + 22: uint16(65506), + 23: uint16(65508), + 24: uint16(59362), + 25: uint16(8481), + 26: uint16(12849), + 27: uint16(59363), + 28: uint16(8208), + 29: uint16(59364), + 30: uint16(59365), + 31: uint16(59366), + 32: uint16(12540), + 33: uint16(12443), + 34: uint16(12444), + 35: uint16(12541), + 36: uint16(12542), + 37: uint16(12294), + 38: uint16(12445), + 39: uint16(12446), + 40: uint16(65097), + 41: uint16(65098), + 42: uint16(65099), + 43: uint16(65100), + 44: uint16(65101), + 45: uint16(65102), + 46: uint16(65103), + 47: uint16(65104), + 48: uint16(65105), + 49: uint16(65106), + 50: uint16(65108), + 51: uint16(65109), + 52: uint16(65110), + 53: uint16(65111), + 54: uint16(65113), + 55: uint16(65114), + 56: uint16(65115), + 57: uint16(65116), + 58: uint16(65117), + 59: uint16(65118), + 60: uint16(65119), + 61: uint16(65120), + 62: uint16(65121), + 63: uint16(65122), + 64: uint16(65123), + 65: uint16(65124), + 66: uint16(65125), + 67: uint16(65126), + 68: uint16(65128), + 69: uint16(65129), + 70: uint16(65130), + 71: uint16(65131), + 72: uint16(12350), + 73: uint16(12272), + 74: uint16(12273), + 75: uint16(12274), + 76: uint16(12275), + 77: uint16(12276), + 78: uint16(12277), + 79: uint16(12278), + 80: uint16(12279), + 81: uint16(12280), + 82: uint16(12281), + 83: uint16(12282), + 84: uint16(12283), + 85: uint16(12295), + 86: uint16(59380), + 87: uint16(59381), + 88: uint16(59382), + 89: uint16(59383), + 90: uint16(59384), + 91: uint16(59385), + 92: uint16(59386), + 93: uint16(59387), + 94: uint16(59388), + 95: uint16(59389), + 96: uint16(59390), + 97: uint16(59391), + 98: uint16(59392), + 99: uint16(9472), + 100: uint16(9473), + 101: uint16(9474), + 102: uint16(9475), + 103: uint16(9476), + 104: uint16(9477), + 105: uint16(9478), + 106: uint16(9479), + 107: uint16(9480), + 108: uint16(9481), + 109: uint16(9482), + 110: uint16(9483), + 111: uint16(9484), + 112: uint16(9485), + 113: uint16(9486), + 114: uint16(9487), + 115: uint16(9488), + 116: uint16(9489), + 117: uint16(9490), + 118: uint16(9491), + 119: uint16(9492), + 120: uint16(9493), + 121: uint16(9494), + 122: uint16(9495), + 123: uint16(9496), + 124: uint16(9497), + 125: uint16(9498), + 126: uint16(9499), + 127: uint16(9500), + 128: uint16(9501), + 129: uint16(9502), + 130: uint16(9503), + 131: uint16(9504), + 132: uint16(9505), + 133: uint16(9506), + 134: uint16(9507), + 135: uint16(9508), + 136: uint16(9509), + 137: uint16(9510), + 138: uint16(9511), + 139: uint16(9512), + 140: uint16(9513), + 141: uint16(9514), + 142: uint16(9515), + 143: uint16(9516), + 144: uint16(9517), + 145: uint16(9518), + 146: uint16(9519), + 147: uint16(9520), + 148: uint16(9521), + 149: uint16(9522), + 150: uint16(9523), + 151: uint16(9524), + 152: uint16(9525), + 153: uint16(9526), + 154: uint16(9527), + 155: uint16(9528), + 156: uint16(9529), + 157: uint16(9530), + 158: uint16(9531), + 159: uint16(9532), + 160: uint16(9533), + 161: uint16(9534), + 162: uint16(9535), + 163: uint16(9536), + 164: uint16(9537), + 165: uint16(9538), + 166: uint16(9539), + 167: uint16(9540), + 168: uint16(9541), + 169: uint16(9542), + 170: uint16(9543), + 171: uint16(9544), + 172: uint16(9545), + 173: uint16(9546), + 174: uint16(9547), + 175: uint16(59393), + 176: uint16(59394), + 177: uint16(59395), + 178: uint16(59396), + 179: uint16(59397), + 180: uint16(59398), + 181: uint16(59399), + 182: uint16(59400), + 183: uint16(59401), + 184: uint16(59402), + 185: uint16(59403), + 186: uint16(59404), + 187: uint16(59405), + 188: uint16(59406), + 189: uint16(59407), + }, + 41: { + 0: uint16(29404), + 1: uint16(29405), + 2: uint16(29407), + 3: uint16(29410), + 4: uint16(29411), + 5: uint16(29412), + 6: uint16(29413), + 7: uint16(29414), + 8: uint16(29415), + 9: uint16(29418), + 10: uint16(29419), + 11: uint16(29429), + 12: uint16(29430), + 13: uint16(29433), + 14: uint16(29437), + 15: uint16(29438), + 16: uint16(29439), + 17: uint16(29440), + 18: uint16(29442), + 19: uint16(29444), + 20: uint16(29445), + 21: uint16(29446), + 22: uint16(29447), + 23: uint16(29448), + 24: uint16(29449), + 25: uint16(29451), + 26: uint16(29452), + 27: uint16(29453), + 28: uint16(29455), + 29: uint16(29456), + 30: uint16(29457), + 31: uint16(29458), + 32: uint16(29460), + 33: uint16(29464), + 34: uint16(29465), + 35: uint16(29466), + 36: uint16(29471), + 37: uint16(29472), + 38: uint16(29475), + 39: uint16(29476), + 40: uint16(29478), + 41: uint16(29479), + 42: uint16(29480), + 43: uint16(29485), + 44: uint16(29487), + 45: uint16(29488), + 46: uint16(29490), + 47: uint16(29491), + 48: uint16(29493), + 49: uint16(29494), + 50: uint16(29498), + 51: uint16(29499), + 52: uint16(29500), + 53: uint16(29501), + 54: uint16(29504), + 55: uint16(29505), + 56: uint16(29506), + 57: uint16(29507), + 58: uint16(29508), + 59: uint16(29509), + 60: uint16(29510), + 61: uint16(29511), + 62: uint16(29512), + 63: uint16(29513), + 64: uint16(29514), + 65: uint16(29515), + 66: uint16(29516), + 67: uint16(29518), + 68: uint16(29519), + 69: uint16(29521), + 70: uint16(29523), + 71: uint16(29524), + 72: uint16(29525), + 73: uint16(29526), + 74: uint16(29528), + 75: uint16(29529), + 76: uint16(29530), + 77: uint16(29531), + 78: uint16(29532), + 79: uint16(29533), + 80: uint16(29534), + 81: uint16(29535), + 82: uint16(29537), + 83: uint16(29538), + 84: uint16(29539), + 85: uint16(29540), + 86: uint16(29541), + 87: uint16(29542), + 88: uint16(29543), + 89: uint16(29544), + 90: uint16(29545), + 91: uint16(29546), + 92: uint16(29547), + 93: uint16(29550), + 94: uint16(29552), + 95: uint16(29553), + 96: uint16(57344), + 97: uint16(57345), + 98: uint16(57346), + 99: uint16(57347), + 100: uint16(57348), + 101: uint16(57349), + 102: uint16(57350), + 103: uint16(57351), + 104: uint16(57352), + 105: uint16(57353), + 106: uint16(57354), + 107: uint16(57355), + 108: uint16(57356), + 109: uint16(57357), + 110: uint16(57358), + 111: uint16(57359), + 112: uint16(57360), + 113: uint16(57361), + 114: uint16(57362), + 115: uint16(57363), + 116: uint16(57364), + 117: uint16(57365), + 118: uint16(57366), + 119: uint16(57367), + 120: uint16(57368), + 121: uint16(57369), + 122: uint16(57370), + 123: uint16(57371), + 124: uint16(57372), + 125: uint16(57373), + 126: uint16(57374), + 127: uint16(57375), + 128: uint16(57376), + 129: uint16(57377), + 130: uint16(57378), + 131: uint16(57379), + 132: uint16(57380), + 133: uint16(57381), + 134: uint16(57382), + 135: uint16(57383), + 136: uint16(57384), + 137: uint16(57385), + 138: uint16(57386), + 139: uint16(57387), + 140: uint16(57388), + 141: uint16(57389), + 142: uint16(57390), + 143: uint16(57391), + 144: uint16(57392), + 145: uint16(57393), + 146: uint16(57394), + 147: uint16(57395), + 148: uint16(57396), + 149: uint16(57397), + 150: uint16(57398), + 151: uint16(57399), + 152: uint16(57400), + 153: uint16(57401), + 154: uint16(57402), + 155: uint16(57403), + 156: uint16(57404), + 157: uint16(57405), + 158: uint16(57406), + 159: uint16(57407), + 160: uint16(57408), + 161: uint16(57409), + 162: uint16(57410), + 163: uint16(57411), + 164: uint16(57412), + 165: uint16(57413), + 166: uint16(57414), + 167: uint16(57415), + 168: uint16(57416), + 169: uint16(57417), + 170: uint16(57418), + 171: uint16(57419), + 172: uint16(57420), + 173: uint16(57421), + 174: uint16(57422), + 175: uint16(57423), + 176: uint16(57424), + 177: uint16(57425), + 178: uint16(57426), + 179: uint16(57427), + 180: uint16(57428), + 181: uint16(57429), + 182: uint16(57430), + 183: uint16(57431), + 184: uint16(57432), + 185: uint16(57433), + 186: uint16(57434), + 187: uint16(57435), + 188: uint16(57436), + 189: uint16(57437), + }, + 42: { + 0: uint16(29554), + 1: uint16(29555), + 2: uint16(29556), + 3: uint16(29557), + 4: uint16(29558), + 5: uint16(29559), + 6: uint16(29560), + 7: uint16(29561), + 8: uint16(29562), + 9: uint16(29563), + 10: uint16(29564), + 11: uint16(29565), + 12: uint16(29567), + 13: uint16(29568), + 14: uint16(29569), + 15: uint16(29570), + 16: uint16(29571), + 17: uint16(29573), + 18: uint16(29574), + 19: uint16(29576), + 20: uint16(29578), + 21: uint16(29580), + 22: uint16(29581), + 23: uint16(29583), + 24: uint16(29584), + 25: uint16(29586), + 26: uint16(29587), + 27: uint16(29588), + 28: uint16(29589), + 29: uint16(29591), + 30: uint16(29592), + 31: uint16(29593), + 32: uint16(29594), + 33: uint16(29596), + 34: uint16(29597), + 35: uint16(29598), + 36: uint16(29600), + 37: uint16(29601), + 38: uint16(29603), + 39: uint16(29604), + 40: uint16(29605), + 41: uint16(29606), + 42: uint16(29607), + 43: uint16(29608), + 44: uint16(29610), + 45: uint16(29612), + 46: uint16(29613), + 47: uint16(29617), + 48: uint16(29620), + 49: uint16(29621), + 50: uint16(29622), + 51: uint16(29624), + 52: uint16(29625), + 53: uint16(29628), + 54: uint16(29629), + 55: uint16(29630), + 56: uint16(29631), + 57: uint16(29633), + 58: uint16(29635), + 59: uint16(29636), + 60: uint16(29637), + 61: uint16(29638), + 62: uint16(29639), + 63: uint16(29643), + 64: uint16(29644), + 65: uint16(29646), + 66: uint16(29650), + 67: uint16(29651), + 68: uint16(29652), + 69: uint16(29653), + 70: uint16(29654), + 71: uint16(29655), + 72: uint16(29656), + 73: uint16(29658), + 74: uint16(29659), + 75: uint16(29660), + 76: uint16(29661), + 77: uint16(29663), + 78: uint16(29665), + 79: uint16(29666), + 80: uint16(29667), + 81: uint16(29668), + 82: uint16(29670), + 83: uint16(29672), + 84: uint16(29674), + 85: uint16(29675), + 86: uint16(29676), + 87: uint16(29678), + 88: uint16(29679), + 89: uint16(29680), + 90: uint16(29681), + 91: uint16(29683), + 92: uint16(29684), + 93: uint16(29685), + 94: uint16(29686), + 95: uint16(29687), + 96: uint16(57438), + 97: uint16(57439), + 98: uint16(57440), + 99: uint16(57441), + 100: uint16(57442), + 101: uint16(57443), + 102: uint16(57444), + 103: uint16(57445), + 104: uint16(57446), + 105: uint16(57447), + 106: uint16(57448), + 107: uint16(57449), + 108: uint16(57450), + 109: uint16(57451), + 110: uint16(57452), + 111: uint16(57453), + 112: uint16(57454), + 113: uint16(57455), + 114: uint16(57456), + 115: uint16(57457), + 116: uint16(57458), + 117: uint16(57459), + 118: uint16(57460), + 119: uint16(57461), + 120: uint16(57462), + 121: uint16(57463), + 122: uint16(57464), + 123: uint16(57465), + 124: uint16(57466), + 125: uint16(57467), + 126: uint16(57468), + 127: uint16(57469), + 128: uint16(57470), + 129: uint16(57471), + 130: uint16(57472), + 131: uint16(57473), + 132: uint16(57474), + 133: uint16(57475), + 134: uint16(57476), + 135: uint16(57477), + 136: uint16(57478), + 137: uint16(57479), + 138: uint16(57480), + 139: uint16(57481), + 140: uint16(57482), + 141: uint16(57483), + 142: uint16(57484), + 143: uint16(57485), + 144: uint16(57486), + 145: uint16(57487), + 146: uint16(57488), + 147: uint16(57489), + 148: uint16(57490), + 149: uint16(57491), + 150: uint16(57492), + 151: uint16(57493), + 152: uint16(57494), + 153: uint16(57495), + 154: uint16(57496), + 155: uint16(57497), + 156: uint16(57498), + 157: uint16(57499), + 158: uint16(57500), + 159: uint16(57501), + 160: uint16(57502), + 161: uint16(57503), + 162: uint16(57504), + 163: uint16(57505), + 164: uint16(57506), + 165: uint16(57507), + 166: uint16(57508), + 167: uint16(57509), + 168: uint16(57510), + 169: uint16(57511), + 170: uint16(57512), + 171: uint16(57513), + 172: uint16(57514), + 173: uint16(57515), + 174: uint16(57516), + 175: uint16(57517), + 176: uint16(57518), + 177: uint16(57519), + 178: uint16(57520), + 179: uint16(57521), + 180: uint16(57522), + 181: uint16(57523), + 182: uint16(57524), + 183: uint16(57525), + 184: uint16(57526), + 185: uint16(57527), + 186: uint16(57528), + 187: uint16(57529), + 188: uint16(57530), + 189: uint16(57531), + }, + 43: { + 0: uint16(29688), + 1: uint16(29689), + 2: uint16(29690), + 3: uint16(29691), + 4: uint16(29692), + 5: uint16(29693), + 6: uint16(29694), + 7: uint16(29695), + 8: uint16(29696), + 9: uint16(29697), + 10: uint16(29698), + 11: uint16(29700), + 12: uint16(29703), + 13: uint16(29704), + 14: uint16(29707), + 15: uint16(29708), + 16: uint16(29709), + 17: uint16(29710), + 18: uint16(29713), + 19: uint16(29714), + 20: uint16(29715), + 21: uint16(29716), + 22: uint16(29717), + 23: uint16(29718), + 24: uint16(29719), + 25: uint16(29720), + 26: uint16(29721), + 27: uint16(29724), + 28: uint16(29725), + 29: uint16(29726), + 30: uint16(29727), + 31: uint16(29728), + 32: uint16(29729), + 33: uint16(29731), + 34: uint16(29732), + 35: uint16(29735), + 36: uint16(29737), + 37: uint16(29739), + 38: uint16(29741), + 39: uint16(29743), + 40: uint16(29745), + 41: uint16(29746), + 42: uint16(29751), + 43: uint16(29752), + 44: uint16(29753), + 45: uint16(29754), + 46: uint16(29755), + 47: uint16(29757), + 48: uint16(29758), + 49: uint16(29759), + 50: uint16(29760), + 51: uint16(29762), + 52: uint16(29763), + 53: uint16(29764), + 54: uint16(29765), + 55: uint16(29766), + 56: uint16(29767), + 57: uint16(29768), + 58: uint16(29769), + 59: uint16(29770), + 60: uint16(29771), + 61: uint16(29772), + 62: uint16(29773), + 63: uint16(29774), + 64: uint16(29775), + 65: uint16(29776), + 66: uint16(29777), + 67: uint16(29778), + 68: uint16(29779), + 69: uint16(29780), + 70: uint16(29782), + 71: uint16(29784), + 72: uint16(29789), + 73: uint16(29792), + 74: uint16(29793), + 75: uint16(29794), + 76: uint16(29795), + 77: uint16(29796), + 78: uint16(29797), + 79: uint16(29798), + 80: uint16(29799), + 81: uint16(29800), + 82: uint16(29801), + 83: uint16(29802), + 84: uint16(29803), + 85: uint16(29804), + 86: uint16(29806), + 87: uint16(29807), + 88: uint16(29809), + 89: uint16(29810), + 90: uint16(29811), + 91: uint16(29812), + 92: uint16(29813), + 93: uint16(29816), + 94: uint16(29817), + 95: uint16(29818), + 96: uint16(57532), + 97: uint16(57533), + 98: uint16(57534), + 99: uint16(57535), + 100: uint16(57536), + 101: uint16(57537), + 102: uint16(57538), + 103: uint16(57539), + 104: uint16(57540), + 105: uint16(57541), + 106: uint16(57542), + 107: uint16(57543), + 108: uint16(57544), + 109: uint16(57545), + 110: uint16(57546), + 111: uint16(57547), + 112: uint16(57548), + 113: uint16(57549), + 114: uint16(57550), + 115: uint16(57551), + 116: uint16(57552), + 117: uint16(57553), + 118: uint16(57554), + 119: uint16(57555), + 120: uint16(57556), + 121: uint16(57557), + 122: uint16(57558), + 123: uint16(57559), + 124: uint16(57560), + 125: uint16(57561), + 126: uint16(57562), + 127: uint16(57563), + 128: uint16(57564), + 129: uint16(57565), + 130: uint16(57566), + 131: uint16(57567), + 132: uint16(57568), + 133: uint16(57569), + 134: uint16(57570), + 135: uint16(57571), + 136: uint16(57572), + 137: uint16(57573), + 138: uint16(57574), + 139: uint16(57575), + 140: uint16(57576), + 141: uint16(57577), + 142: uint16(57578), + 143: uint16(57579), + 144: uint16(57580), + 145: uint16(57581), + 146: uint16(57582), + 147: uint16(57583), + 148: uint16(57584), + 149: uint16(57585), + 150: uint16(57586), + 151: uint16(57587), + 152: uint16(57588), + 153: uint16(57589), + 154: uint16(57590), + 155: uint16(57591), + 156: uint16(57592), + 157: uint16(57593), + 158: uint16(57594), + 159: uint16(57595), + 160: uint16(57596), + 161: uint16(57597), + 162: uint16(57598), + 163: uint16(57599), + 164: uint16(57600), + 165: uint16(57601), + 166: uint16(57602), + 167: uint16(57603), + 168: uint16(57604), + 169: uint16(57605), + 170: uint16(57606), + 171: uint16(57607), + 172: uint16(57608), + 173: uint16(57609), + 174: uint16(57610), + 175: uint16(57611), + 176: uint16(57612), + 177: uint16(57613), + 178: uint16(57614), + 179: uint16(57615), + 180: uint16(57616), + 181: uint16(57617), + 182: uint16(57618), + 183: uint16(57619), + 184: uint16(57620), + 185: uint16(57621), + 186: uint16(57622), + 187: uint16(57623), + 188: uint16(57624), + 189: uint16(57625), + }, + 44: { + 0: uint16(29819), + 1: uint16(29820), + 2: uint16(29821), + 3: uint16(29823), + 4: uint16(29826), + 5: uint16(29828), + 6: uint16(29829), + 7: uint16(29830), + 8: uint16(29832), + 9: uint16(29833), + 10: uint16(29834), + 11: uint16(29836), + 12: uint16(29837), + 13: uint16(29839), + 14: uint16(29841), + 15: uint16(29842), + 16: uint16(29843), + 17: uint16(29844), + 18: uint16(29845), + 19: uint16(29846), + 20: uint16(29847), + 21: uint16(29848), + 22: uint16(29849), + 23: uint16(29850), + 24: uint16(29851), + 25: uint16(29853), + 26: uint16(29855), + 27: uint16(29856), + 28: uint16(29857), + 29: uint16(29858), + 30: uint16(29859), + 31: uint16(29860), + 32: uint16(29861), + 33: uint16(29862), + 34: uint16(29866), + 35: uint16(29867), + 36: uint16(29868), + 37: uint16(29869), + 38: uint16(29870), + 39: uint16(29871), + 40: uint16(29872), + 41: uint16(29873), + 42: uint16(29874), + 43: uint16(29875), + 44: uint16(29876), + 45: uint16(29877), + 46: uint16(29878), + 47: uint16(29879), + 48: uint16(29880), + 49: uint16(29881), + 50: uint16(29883), + 51: uint16(29884), + 52: uint16(29885), + 53: uint16(29886), + 54: uint16(29887), + 55: uint16(29888), + 56: uint16(29889), + 57: uint16(29890), + 58: uint16(29891), + 59: uint16(29892), + 60: uint16(29893), + 61: uint16(29894), + 62: uint16(29895), + 63: uint16(29896), + 64: uint16(29897), + 65: uint16(29898), + 66: uint16(29899), + 67: uint16(29900), + 68: uint16(29901), + 69: uint16(29902), + 70: uint16(29903), + 71: uint16(29904), + 72: uint16(29905), + 73: uint16(29907), + 74: uint16(29908), + 75: uint16(29909), + 76: uint16(29910), + 77: uint16(29911), + 78: uint16(29912), + 79: uint16(29913), + 80: uint16(29914), + 81: uint16(29915), + 82: uint16(29917), + 83: uint16(29919), + 84: uint16(29921), + 85: uint16(29925), + 86: uint16(29927), + 87: uint16(29928), + 88: uint16(29929), + 89: uint16(29930), + 90: uint16(29931), + 91: uint16(29932), + 92: uint16(29933), + 93: uint16(29936), + 94: uint16(29937), + 95: uint16(29938), + 96: uint16(57626), + 97: uint16(57627), + 98: uint16(57628), + 99: uint16(57629), + 100: uint16(57630), + 101: uint16(57631), + 102: uint16(57632), + 103: uint16(57633), + 104: uint16(57634), + 105: uint16(57635), + 106: uint16(57636), + 107: uint16(57637), + 108: uint16(57638), + 109: uint16(57639), + 110: uint16(57640), + 111: uint16(57641), + 112: uint16(57642), + 113: uint16(57643), + 114: uint16(57644), + 115: uint16(57645), + 116: uint16(57646), + 117: uint16(57647), + 118: uint16(57648), + 119: uint16(57649), + 120: uint16(57650), + 121: uint16(57651), + 122: uint16(57652), + 123: uint16(57653), + 124: uint16(57654), + 125: uint16(57655), + 126: uint16(57656), + 127: uint16(57657), + 128: uint16(57658), + 129: uint16(57659), + 130: uint16(57660), + 131: uint16(57661), + 132: uint16(57662), + 133: uint16(57663), + 134: uint16(57664), + 135: uint16(57665), + 136: uint16(57666), + 137: uint16(57667), + 138: uint16(57668), + 139: uint16(57669), + 140: uint16(57670), + 141: uint16(57671), + 142: uint16(57672), + 143: uint16(57673), + 144: uint16(57674), + 145: uint16(57675), + 146: uint16(57676), + 147: uint16(57677), + 148: uint16(57678), + 149: uint16(57679), + 150: uint16(57680), + 151: uint16(57681), + 152: uint16(57682), + 153: uint16(57683), + 154: uint16(57684), + 155: uint16(57685), + 156: uint16(57686), + 157: uint16(57687), + 158: uint16(57688), + 159: uint16(57689), + 160: uint16(57690), + 161: uint16(57691), + 162: uint16(57692), + 163: uint16(57693), + 164: uint16(57694), + 165: uint16(57695), + 166: uint16(57696), + 167: uint16(57697), + 168: uint16(57698), + 169: uint16(57699), + 170: uint16(57700), + 171: uint16(57701), + 172: uint16(57702), + 173: uint16(57703), + 174: uint16(57704), + 175: uint16(57705), + 176: uint16(57706), + 177: uint16(57707), + 178: uint16(57708), + 179: uint16(57709), + 180: uint16(57710), + 181: uint16(57711), + 182: uint16(57712), + 183: uint16(57713), + 184: uint16(57714), + 185: uint16(57715), + 186: uint16(57716), + 187: uint16(57717), + 188: uint16(57718), + 189: uint16(57719), + }, + 45: { + 0: uint16(29939), + 1: uint16(29941), + 2: uint16(29944), + 3: uint16(29945), + 4: uint16(29946), + 5: uint16(29947), + 6: uint16(29948), + 7: uint16(29949), + 8: uint16(29950), + 9: uint16(29952), + 10: uint16(29953), + 11: uint16(29954), + 12: uint16(29955), + 13: uint16(29957), + 14: uint16(29958), + 15: uint16(29959), + 16: uint16(29960), + 17: uint16(29961), + 18: uint16(29962), + 19: uint16(29963), + 20: uint16(29964), + 21: uint16(29966), + 22: uint16(29968), + 23: uint16(29970), + 24: uint16(29972), + 25: uint16(29973), + 26: uint16(29974), + 27: uint16(29975), + 28: uint16(29979), + 29: uint16(29981), + 30: uint16(29982), + 31: uint16(29984), + 32: uint16(29985), + 33: uint16(29986), + 34: uint16(29987), + 35: uint16(29988), + 36: uint16(29990), + 37: uint16(29991), + 38: uint16(29994), + 39: uint16(29998), + 40: uint16(30004), + 41: uint16(30006), + 42: uint16(30009), + 43: uint16(30012), + 44: uint16(30013), + 45: uint16(30015), + 46: uint16(30017), + 47: uint16(30018), + 48: uint16(30019), + 49: uint16(30020), + 50: uint16(30022), + 51: uint16(30023), + 52: uint16(30025), + 53: uint16(30026), + 54: uint16(30029), + 55: uint16(30032), + 56: uint16(30033), + 57: uint16(30034), + 58: uint16(30035), + 59: uint16(30037), + 60: uint16(30038), + 61: uint16(30039), + 62: uint16(30040), + 63: uint16(30045), + 64: uint16(30046), + 65: uint16(30047), + 66: uint16(30048), + 67: uint16(30049), + 68: uint16(30050), + 69: uint16(30051), + 70: uint16(30052), + 71: uint16(30055), + 72: uint16(30056), + 73: uint16(30057), + 74: uint16(30059), + 75: uint16(30060), + 76: uint16(30061), + 77: uint16(30062), + 78: uint16(30063), + 79: uint16(30064), + 80: uint16(30065), + 81: uint16(30067), + 82: uint16(30069), + 83: uint16(30070), + 84: uint16(30071), + 85: uint16(30074), + 86: uint16(30075), + 87: uint16(30076), + 88: uint16(30077), + 89: uint16(30078), + 90: uint16(30080), + 91: uint16(30081), + 92: uint16(30082), + 93: uint16(30084), + 94: uint16(30085), + 95: uint16(30087), + 96: uint16(57720), + 97: uint16(57721), + 98: uint16(57722), + 99: uint16(57723), + 100: uint16(57724), + 101: uint16(57725), + 102: uint16(57726), + 103: uint16(57727), + 104: uint16(57728), + 105: uint16(57729), + 106: uint16(57730), + 107: uint16(57731), + 108: uint16(57732), + 109: uint16(57733), + 110: uint16(57734), + 111: uint16(57735), + 112: uint16(57736), + 113: uint16(57737), + 114: uint16(57738), + 115: uint16(57739), + 116: uint16(57740), + 117: uint16(57741), + 118: uint16(57742), + 119: uint16(57743), + 120: uint16(57744), + 121: uint16(57745), + 122: uint16(57746), + 123: uint16(57747), + 124: uint16(57748), + 125: uint16(57749), + 126: uint16(57750), + 127: uint16(57751), + 128: uint16(57752), + 129: uint16(57753), + 130: uint16(57754), + 131: uint16(57755), + 132: uint16(57756), + 133: uint16(57757), + 134: uint16(57758), + 135: uint16(57759), + 136: uint16(57760), + 137: uint16(57761), + 138: uint16(57762), + 139: uint16(57763), + 140: uint16(57764), + 141: uint16(57765), + 142: uint16(57766), + 143: uint16(57767), + 144: uint16(57768), + 145: uint16(57769), + 146: uint16(57770), + 147: uint16(57771), + 148: uint16(57772), + 149: uint16(57773), + 150: uint16(57774), + 151: uint16(57775), + 152: uint16(57776), + 153: uint16(57777), + 154: uint16(57778), + 155: uint16(57779), + 156: uint16(57780), + 157: uint16(57781), + 158: uint16(57782), + 159: uint16(57783), + 160: uint16(57784), + 161: uint16(57785), + 162: uint16(57786), + 163: uint16(57787), + 164: uint16(57788), + 165: uint16(57789), + 166: uint16(57790), + 167: uint16(57791), + 168: uint16(57792), + 169: uint16(57793), + 170: uint16(57794), + 171: uint16(57795), + 172: uint16(57796), + 173: uint16(57797), + 174: uint16(57798), + 175: uint16(57799), + 176: uint16(57800), + 177: uint16(57801), + 178: uint16(57802), + 179: uint16(57803), + 180: uint16(57804), + 181: uint16(57805), + 182: uint16(57806), + 183: uint16(57807), + 184: uint16(57808), + 185: uint16(57809), + 186: uint16(57810), + 187: uint16(57811), + 188: uint16(57812), + 189: uint16(57813), + }, + 46: { + 0: uint16(30088), + 1: uint16(30089), + 2: uint16(30090), + 3: uint16(30092), + 4: uint16(30093), + 5: uint16(30094), + 6: uint16(30096), + 7: uint16(30099), + 8: uint16(30101), + 9: uint16(30104), + 10: uint16(30107), + 11: uint16(30108), + 12: uint16(30110), + 13: uint16(30114), + 14: uint16(30118), + 15: uint16(30119), + 16: uint16(30120), + 17: uint16(30121), + 18: uint16(30122), + 19: uint16(30125), + 20: uint16(30134), + 21: uint16(30135), + 22: uint16(30138), + 23: uint16(30139), + 24: uint16(30143), + 25: uint16(30144), + 26: uint16(30145), + 27: uint16(30150), + 28: uint16(30155), + 29: uint16(30156), + 30: uint16(30158), + 31: uint16(30159), + 32: uint16(30160), + 33: uint16(30161), + 34: uint16(30163), + 35: uint16(30167), + 36: uint16(30169), + 37: uint16(30170), + 38: uint16(30172), + 39: uint16(30173), + 40: uint16(30175), + 41: uint16(30176), + 42: uint16(30177), + 43: uint16(30181), + 44: uint16(30185), + 45: uint16(30188), + 46: uint16(30189), + 47: uint16(30190), + 48: uint16(30191), + 49: uint16(30194), + 50: uint16(30195), + 51: uint16(30197), + 52: uint16(30198), + 53: uint16(30199), + 54: uint16(30200), + 55: uint16(30202), + 56: uint16(30203), + 57: uint16(30205), + 58: uint16(30206), + 59: uint16(30210), + 60: uint16(30212), + 61: uint16(30214), + 62: uint16(30215), + 63: uint16(30216), + 64: uint16(30217), + 65: uint16(30219), + 66: uint16(30221), + 67: uint16(30222), + 68: uint16(30223), + 69: uint16(30225), + 70: uint16(30226), + 71: uint16(30227), + 72: uint16(30228), + 73: uint16(30230), + 74: uint16(30234), + 75: uint16(30236), + 76: uint16(30237), + 77: uint16(30238), + 78: uint16(30241), + 79: uint16(30243), + 80: uint16(30247), + 81: uint16(30248), + 82: uint16(30252), + 83: uint16(30254), + 84: uint16(30255), + 85: uint16(30257), + 86: uint16(30258), + 87: uint16(30262), + 88: uint16(30263), + 89: uint16(30265), + 90: uint16(30266), + 91: uint16(30267), + 92: uint16(30269), + 93: uint16(30273), + 94: uint16(30274), + 95: uint16(30276), + 96: uint16(57814), + 97: uint16(57815), + 98: uint16(57816), + 99: uint16(57817), + 100: uint16(57818), + 101: uint16(57819), + 102: uint16(57820), + 103: uint16(57821), + 104: uint16(57822), + 105: uint16(57823), + 106: uint16(57824), + 107: uint16(57825), + 108: uint16(57826), + 109: uint16(57827), + 110: uint16(57828), + 111: uint16(57829), + 112: uint16(57830), + 113: uint16(57831), + 114: uint16(57832), + 115: uint16(57833), + 116: uint16(57834), + 117: uint16(57835), + 118: uint16(57836), + 119: uint16(57837), + 120: uint16(57838), + 121: uint16(57839), + 122: uint16(57840), + 123: uint16(57841), + 124: uint16(57842), + 125: uint16(57843), + 126: uint16(57844), + 127: uint16(57845), + 128: uint16(57846), + 129: uint16(57847), + 130: uint16(57848), + 131: uint16(57849), + 132: uint16(57850), + 133: uint16(57851), + 134: uint16(57852), + 135: uint16(57853), + 136: uint16(57854), + 137: uint16(57855), + 138: uint16(57856), + 139: uint16(57857), + 140: uint16(57858), + 141: uint16(57859), + 142: uint16(57860), + 143: uint16(57861), + 144: uint16(57862), + 145: uint16(57863), + 146: uint16(57864), + 147: uint16(57865), + 148: uint16(57866), + 149: uint16(57867), + 150: uint16(57868), + 151: uint16(57869), + 152: uint16(57870), + 153: uint16(57871), + 154: uint16(57872), + 155: uint16(57873), + 156: uint16(57874), + 157: uint16(57875), + 158: uint16(57876), + 159: uint16(57877), + 160: uint16(57878), + 161: uint16(57879), + 162: uint16(57880), + 163: uint16(57881), + 164: uint16(57882), + 165: uint16(57883), + 166: uint16(57884), + 167: uint16(57885), + 168: uint16(57886), + 169: uint16(57887), + 170: uint16(57888), + 171: uint16(57889), + 172: uint16(57890), + 173: uint16(57891), + 174: uint16(57892), + 175: uint16(57893), + 176: uint16(57894), + 177: uint16(57895), + 178: uint16(57896), + 179: uint16(57897), + 180: uint16(57898), + 181: uint16(57899), + 182: uint16(57900), + 183: uint16(57901), + 184: uint16(57902), + 185: uint16(57903), + 186: uint16(57904), + 187: uint16(57905), + 188: uint16(57906), + 189: uint16(57907), + }, + 47: { + 0: uint16(30277), + 1: uint16(30278), + 2: uint16(30279), + 3: uint16(30280), + 4: uint16(30281), + 5: uint16(30282), + 6: uint16(30283), + 7: uint16(30286), + 8: uint16(30287), + 9: uint16(30288), + 10: uint16(30289), + 11: uint16(30290), + 12: uint16(30291), + 13: uint16(30293), + 14: uint16(30295), + 15: uint16(30296), + 16: uint16(30297), + 17: uint16(30298), + 18: uint16(30299), + 19: uint16(30301), + 20: uint16(30303), + 21: uint16(30304), + 22: uint16(30305), + 23: uint16(30306), + 24: uint16(30308), + 25: uint16(30309), + 26: uint16(30310), + 27: uint16(30311), + 28: uint16(30312), + 29: uint16(30313), + 30: uint16(30314), + 31: uint16(30316), + 32: uint16(30317), + 33: uint16(30318), + 34: uint16(30320), + 35: uint16(30321), + 36: uint16(30322), + 37: uint16(30323), + 38: uint16(30324), + 39: uint16(30325), + 40: uint16(30326), + 41: uint16(30327), + 42: uint16(30329), + 43: uint16(30330), + 44: uint16(30332), + 45: uint16(30335), + 46: uint16(30336), + 47: uint16(30337), + 48: uint16(30339), + 49: uint16(30341), + 50: uint16(30345), + 51: uint16(30346), + 52: uint16(30348), + 53: uint16(30349), + 54: uint16(30351), + 55: uint16(30352), + 56: uint16(30354), + 57: uint16(30356), + 58: uint16(30357), + 59: uint16(30359), + 60: uint16(30360), + 61: uint16(30362), + 62: uint16(30363), + 63: uint16(30364), + 64: uint16(30365), + 65: uint16(30366), + 66: uint16(30367), + 67: uint16(30368), + 68: uint16(30369), + 69: uint16(30370), + 70: uint16(30371), + 71: uint16(30373), + 72: uint16(30374), + 73: uint16(30375), + 74: uint16(30376), + 75: uint16(30377), + 76: uint16(30378), + 77: uint16(30379), + 78: uint16(30380), + 79: uint16(30381), + 80: uint16(30383), + 81: uint16(30384), + 82: uint16(30387), + 83: uint16(30389), + 84: uint16(30390), + 85: uint16(30391), + 86: uint16(30392), + 87: uint16(30393), + 88: uint16(30394), + 89: uint16(30395), + 90: uint16(30396), + 91: uint16(30397), + 92: uint16(30398), + 93: uint16(30400), + 94: uint16(30401), + 95: uint16(30403), + 96: uint16(21834), + 97: uint16(38463), + 98: uint16(22467), + 99: uint16(25384), + 100: uint16(21710), + 101: uint16(21769), + 102: uint16(21696), + 103: uint16(30353), + 104: uint16(30284), + 105: uint16(34108), + 106: uint16(30702), + 107: uint16(33406), + 108: uint16(30861), + 109: uint16(29233), + 110: uint16(38552), + 111: uint16(38797), + 112: uint16(27688), + 113: uint16(23433), + 114: uint16(20474), + 115: uint16(25353), + 116: uint16(26263), + 117: uint16(23736), + 118: uint16(33018), + 119: uint16(26696), + 120: uint16(32942), + 121: uint16(26114), + 122: uint16(30414), + 123: uint16(20985), + 124: uint16(25942), + 125: uint16(29100), + 126: uint16(32753), + 127: uint16(34948), + 128: uint16(20658), + 129: uint16(22885), + 130: uint16(25034), + 131: uint16(28595), + 132: uint16(33453), + 133: uint16(25420), + 134: uint16(25170), + 135: uint16(21485), + 136: uint16(21543), + 137: uint16(31494), + 138: uint16(20843), + 139: uint16(30116), + 140: uint16(24052), + 141: uint16(25300), + 142: uint16(36299), + 143: uint16(38774), + 144: uint16(25226), + 145: uint16(32793), + 146: uint16(22365), + 147: uint16(38712), + 148: uint16(32610), + 149: uint16(29240), + 150: uint16(30333), + 151: uint16(26575), + 152: uint16(30334), + 153: uint16(25670), + 154: uint16(20336), + 155: uint16(36133), + 156: uint16(25308), + 157: uint16(31255), + 158: uint16(26001), + 159: uint16(29677), + 160: uint16(25644), + 161: uint16(25203), + 162: uint16(33324), + 163: uint16(39041), + 164: uint16(26495), + 165: uint16(29256), + 166: uint16(25198), + 167: uint16(25292), + 168: uint16(20276), + 169: uint16(29923), + 170: uint16(21322), + 171: uint16(21150), + 172: uint16(32458), + 173: uint16(37030), + 174: uint16(24110), + 175: uint16(26758), + 176: uint16(27036), + 177: uint16(33152), + 178: uint16(32465), + 179: uint16(26834), + 180: uint16(30917), + 181: uint16(34444), + 182: uint16(38225), + 183: uint16(20621), + 184: uint16(35876), + 185: uint16(33502), + 186: uint16(32990), + 187: uint16(21253), + 188: uint16(35090), + 189: uint16(21093), + }, + 48: { + 0: uint16(30404), + 1: uint16(30407), + 2: uint16(30409), + 3: uint16(30411), + 4: uint16(30412), + 5: uint16(30419), + 6: uint16(30421), + 7: uint16(30425), + 8: uint16(30426), + 9: uint16(30428), + 10: uint16(30429), + 11: uint16(30430), + 12: uint16(30432), + 13: uint16(30433), + 14: uint16(30434), + 15: uint16(30435), + 16: uint16(30436), + 17: uint16(30438), + 18: uint16(30439), + 19: uint16(30440), + 20: uint16(30441), + 21: uint16(30442), + 22: uint16(30443), + 23: uint16(30444), + 24: uint16(30445), + 25: uint16(30448), + 26: uint16(30451), + 27: uint16(30453), + 28: uint16(30454), + 29: uint16(30455), + 30: uint16(30458), + 31: uint16(30459), + 32: uint16(30461), + 33: uint16(30463), + 34: uint16(30464), + 35: uint16(30466), + 36: uint16(30467), + 37: uint16(30469), + 38: uint16(30470), + 39: uint16(30474), + 40: uint16(30476), + 41: uint16(30478), + 42: uint16(30479), + 43: uint16(30480), + 44: uint16(30481), + 45: uint16(30482), + 46: uint16(30483), + 47: uint16(30484), + 48: uint16(30485), + 49: uint16(30486), + 50: uint16(30487), + 51: uint16(30488), + 52: uint16(30491), + 53: uint16(30492), + 54: uint16(30493), + 55: uint16(30494), + 56: uint16(30497), + 57: uint16(30499), + 58: uint16(30500), + 59: uint16(30501), + 60: uint16(30503), + 61: uint16(30506), + 62: uint16(30507), + 63: uint16(30508), + 64: uint16(30510), + 65: uint16(30512), + 66: uint16(30513), + 67: uint16(30514), + 68: uint16(30515), + 69: uint16(30516), + 70: uint16(30521), + 71: uint16(30523), + 72: uint16(30525), + 73: uint16(30526), + 74: uint16(30527), + 75: uint16(30530), + 76: uint16(30532), + 77: uint16(30533), + 78: uint16(30534), + 79: uint16(30536), + 80: uint16(30537), + 81: uint16(30538), + 82: uint16(30539), + 83: uint16(30540), + 84: uint16(30541), + 85: uint16(30542), + 86: uint16(30543), + 87: uint16(30546), + 88: uint16(30547), + 89: uint16(30548), + 90: uint16(30549), + 91: uint16(30550), + 92: uint16(30551), + 93: uint16(30552), + 94: uint16(30553), + 95: uint16(30556), + 96: uint16(34180), + 97: uint16(38649), + 98: uint16(20445), + 99: uint16(22561), + 100: uint16(39281), + 101: uint16(23453), + 102: uint16(25265), + 103: uint16(25253), + 104: uint16(26292), + 105: uint16(35961), + 106: uint16(40077), + 107: uint16(29190), + 108: uint16(26479), + 109: uint16(30865), + 110: uint16(24754), + 111: uint16(21329), + 112: uint16(21271), + 113: uint16(36744), + 114: uint16(32972), + 115: uint16(36125), + 116: uint16(38049), + 117: uint16(20493), + 118: uint16(29384), + 119: uint16(22791), + 120: uint16(24811), + 121: uint16(28953), + 122: uint16(34987), + 123: uint16(22868), + 124: uint16(33519), + 125: uint16(26412), + 126: uint16(31528), + 127: uint16(23849), + 128: uint16(32503), + 129: uint16(29997), + 130: uint16(27893), + 131: uint16(36454), + 132: uint16(36856), + 133: uint16(36924), + 134: uint16(40763), + 135: uint16(27604), + 136: uint16(37145), + 137: uint16(31508), + 138: uint16(24444), + 139: uint16(30887), + 140: uint16(34006), + 141: uint16(34109), + 142: uint16(27605), + 143: uint16(27609), + 144: uint16(27606), + 145: uint16(24065), + 146: uint16(24199), + 147: uint16(30201), + 148: uint16(38381), + 149: uint16(25949), + 150: uint16(24330), + 151: uint16(24517), + 152: uint16(36767), + 153: uint16(22721), + 154: uint16(33218), + 155: uint16(36991), + 156: uint16(38491), + 157: uint16(38829), + 158: uint16(36793), + 159: uint16(32534), + 160: uint16(36140), + 161: uint16(25153), + 162: uint16(20415), + 163: uint16(21464), + 164: uint16(21342), + 165: uint16(36776), + 166: uint16(36777), + 167: uint16(36779), + 168: uint16(36941), + 169: uint16(26631), + 170: uint16(24426), + 171: uint16(33176), + 172: uint16(34920), + 173: uint16(40150), + 174: uint16(24971), + 175: uint16(21035), + 176: uint16(30250), + 177: uint16(24428), + 178: uint16(25996), + 179: uint16(28626), + 180: uint16(28392), + 181: uint16(23486), + 182: uint16(25672), + 183: uint16(20853), + 184: uint16(20912), + 185: uint16(26564), + 186: uint16(19993), + 187: uint16(31177), + 188: uint16(39292), + 189: uint16(28851), + }, + 49: { + 0: uint16(30557), + 1: uint16(30558), + 2: uint16(30559), + 3: uint16(30560), + 4: uint16(30564), + 5: uint16(30567), + 6: uint16(30569), + 7: uint16(30570), + 8: uint16(30573), + 9: uint16(30574), + 10: uint16(30575), + 11: uint16(30576), + 12: uint16(30577), + 13: uint16(30578), + 14: uint16(30579), + 15: uint16(30580), + 16: uint16(30581), + 17: uint16(30582), + 18: uint16(30583), + 19: uint16(30584), + 20: uint16(30586), + 21: uint16(30587), + 22: uint16(30588), + 23: uint16(30593), + 24: uint16(30594), + 25: uint16(30595), + 26: uint16(30598), + 27: uint16(30599), + 28: uint16(30600), + 29: uint16(30601), + 30: uint16(30602), + 31: uint16(30603), + 32: uint16(30607), + 33: uint16(30608), + 34: uint16(30611), + 35: uint16(30612), + 36: uint16(30613), + 37: uint16(30614), + 38: uint16(30615), + 39: uint16(30616), + 40: uint16(30617), + 41: uint16(30618), + 42: uint16(30619), + 43: uint16(30620), + 44: uint16(30621), + 45: uint16(30622), + 46: uint16(30625), + 47: uint16(30627), + 48: uint16(30628), + 49: uint16(30630), + 50: uint16(30632), + 51: uint16(30635), + 52: uint16(30637), + 53: uint16(30638), + 54: uint16(30639), + 55: uint16(30641), + 56: uint16(30642), + 57: uint16(30644), + 58: uint16(30646), + 59: uint16(30647), + 60: uint16(30648), + 61: uint16(30649), + 62: uint16(30650), + 63: uint16(30652), + 64: uint16(30654), + 65: uint16(30656), + 66: uint16(30657), + 67: uint16(30658), + 68: uint16(30659), + 69: uint16(30660), + 70: uint16(30661), + 71: uint16(30662), + 72: uint16(30663), + 73: uint16(30664), + 74: uint16(30665), + 75: uint16(30666), + 76: uint16(30667), + 77: uint16(30668), + 78: uint16(30670), + 79: uint16(30671), + 80: uint16(30672), + 81: uint16(30673), + 82: uint16(30674), + 83: uint16(30675), + 84: uint16(30676), + 85: uint16(30677), + 86: uint16(30678), + 87: uint16(30680), + 88: uint16(30681), + 89: uint16(30682), + 90: uint16(30685), + 91: uint16(30686), + 92: uint16(30687), + 93: uint16(30688), + 94: uint16(30689), + 95: uint16(30692), + 96: uint16(30149), + 97: uint16(24182), + 98: uint16(29627), + 99: uint16(33760), + 100: uint16(25773), + 101: uint16(25320), + 102: uint16(38069), + 103: uint16(27874), + 104: uint16(21338), + 105: uint16(21187), + 106: uint16(25615), + 107: uint16(38082), + 108: uint16(31636), + 109: uint16(20271), + 110: uint16(24091), + 111: uint16(33334), + 112: uint16(33046), + 113: uint16(33162), + 114: uint16(28196), + 115: uint16(27850), + 116: uint16(39539), + 117: uint16(25429), + 118: uint16(21340), + 119: uint16(21754), + 120: uint16(34917), + 121: uint16(22496), + 122: uint16(19981), + 123: uint16(24067), + 124: uint16(27493), + 125: uint16(31807), + 126: uint16(37096), + 127: uint16(24598), + 128: uint16(25830), + 129: uint16(29468), + 130: uint16(35009), + 131: uint16(26448), + 132: uint16(25165), + 133: uint16(36130), + 134: uint16(30572), + 135: uint16(36393), + 136: uint16(37319), + 137: uint16(24425), + 138: uint16(33756), + 139: uint16(34081), + 140: uint16(39184), + 141: uint16(21442), + 142: uint16(34453), + 143: uint16(27531), + 144: uint16(24813), + 145: uint16(24808), + 146: uint16(28799), + 147: uint16(33485), + 148: uint16(33329), + 149: uint16(20179), + 150: uint16(27815), + 151: uint16(34255), + 152: uint16(25805), + 153: uint16(31961), + 154: uint16(27133), + 155: uint16(26361), + 156: uint16(33609), + 157: uint16(21397), + 158: uint16(31574), + 159: uint16(20391), + 160: uint16(20876), + 161: uint16(27979), + 162: uint16(23618), + 163: uint16(36461), + 164: uint16(25554), + 165: uint16(21449), + 166: uint16(33580), + 167: uint16(33590), + 168: uint16(26597), + 169: uint16(30900), + 170: uint16(25661), + 171: uint16(23519), + 172: uint16(23700), + 173: uint16(24046), + 174: uint16(35815), + 175: uint16(25286), + 176: uint16(26612), + 177: uint16(35962), + 178: uint16(25600), + 179: uint16(25530), + 180: uint16(34633), + 181: uint16(39307), + 182: uint16(35863), + 183: uint16(32544), + 184: uint16(38130), + 185: uint16(20135), + 186: uint16(38416), + 187: uint16(39076), + 188: uint16(26124), + 189: uint16(29462), + }, + 50: { + 0: uint16(30694), + 1: uint16(30696), + 2: uint16(30698), + 3: uint16(30703), + 4: uint16(30704), + 5: uint16(30705), + 6: uint16(30706), + 7: uint16(30708), + 8: uint16(30709), + 9: uint16(30711), + 10: uint16(30713), + 11: uint16(30714), + 12: uint16(30715), + 13: uint16(30716), + 14: uint16(30723), + 15: uint16(30724), + 16: uint16(30725), + 17: uint16(30726), + 18: uint16(30727), + 19: uint16(30728), + 20: uint16(30730), + 21: uint16(30731), + 22: uint16(30734), + 23: uint16(30735), + 24: uint16(30736), + 25: uint16(30739), + 26: uint16(30741), + 27: uint16(30745), + 28: uint16(30747), + 29: uint16(30750), + 30: uint16(30752), + 31: uint16(30753), + 32: uint16(30754), + 33: uint16(30756), + 34: uint16(30760), + 35: uint16(30762), + 36: uint16(30763), + 37: uint16(30766), + 38: uint16(30767), + 39: uint16(30769), + 40: uint16(30770), + 41: uint16(30771), + 42: uint16(30773), + 43: uint16(30774), + 44: uint16(30781), + 45: uint16(30783), + 46: uint16(30785), + 47: uint16(30786), + 48: uint16(30787), + 49: uint16(30788), + 50: uint16(30790), + 51: uint16(30792), + 52: uint16(30793), + 53: uint16(30794), + 54: uint16(30795), + 55: uint16(30797), + 56: uint16(30799), + 57: uint16(30801), + 58: uint16(30803), + 59: uint16(30804), + 60: uint16(30808), + 61: uint16(30809), + 62: uint16(30810), + 63: uint16(30811), + 64: uint16(30812), + 65: uint16(30814), + 66: uint16(30815), + 67: uint16(30816), + 68: uint16(30817), + 69: uint16(30818), + 70: uint16(30819), + 71: uint16(30820), + 72: uint16(30821), + 73: uint16(30822), + 74: uint16(30823), + 75: uint16(30824), + 76: uint16(30825), + 77: uint16(30831), + 78: uint16(30832), + 79: uint16(30833), + 80: uint16(30834), + 81: uint16(30835), + 82: uint16(30836), + 83: uint16(30837), + 84: uint16(30838), + 85: uint16(30840), + 86: uint16(30841), + 87: uint16(30842), + 88: uint16(30843), + 89: uint16(30845), + 90: uint16(30846), + 91: uint16(30847), + 92: uint16(30848), + 93: uint16(30849), + 94: uint16(30850), + 95: uint16(30851), + 96: uint16(22330), + 97: uint16(23581), + 98: uint16(24120), + 99: uint16(38271), + 100: uint16(20607), + 101: uint16(32928), + 102: uint16(21378), + 103: uint16(25950), + 104: uint16(30021), + 105: uint16(21809), + 106: uint16(20513), + 107: uint16(36229), + 108: uint16(25220), + 109: uint16(38046), + 110: uint16(26397), + 111: uint16(22066), + 112: uint16(28526), + 113: uint16(24034), + 114: uint16(21557), + 115: uint16(28818), + 116: uint16(36710), + 117: uint16(25199), + 118: uint16(25764), + 119: uint16(25507), + 120: uint16(24443), + 121: uint16(28552), + 122: uint16(37108), + 123: uint16(33251), + 124: uint16(36784), + 125: uint16(23576), + 126: uint16(26216), + 127: uint16(24561), + 128: uint16(27785), + 129: uint16(38472), + 130: uint16(36225), + 131: uint16(34924), + 132: uint16(25745), + 133: uint16(31216), + 134: uint16(22478), + 135: uint16(27225), + 136: uint16(25104), + 137: uint16(21576), + 138: uint16(20056), + 139: uint16(31243), + 140: uint16(24809), + 141: uint16(28548), + 142: uint16(35802), + 143: uint16(25215), + 144: uint16(36894), + 145: uint16(39563), + 146: uint16(31204), + 147: uint16(21507), + 148: uint16(30196), + 149: uint16(25345), + 150: uint16(21273), + 151: uint16(27744), + 152: uint16(36831), + 153: uint16(24347), + 154: uint16(39536), + 155: uint16(32827), + 156: uint16(40831), + 157: uint16(20360), + 158: uint16(23610), + 159: uint16(36196), + 160: uint16(32709), + 161: uint16(26021), + 162: uint16(28861), + 163: uint16(20805), + 164: uint16(20914), + 165: uint16(34411), + 166: uint16(23815), + 167: uint16(23456), + 168: uint16(25277), + 169: uint16(37228), + 170: uint16(30068), + 171: uint16(36364), + 172: uint16(31264), + 173: uint16(24833), + 174: uint16(31609), + 175: uint16(20167), + 176: uint16(32504), + 177: uint16(30597), + 178: uint16(19985), + 179: uint16(33261), + 180: uint16(21021), + 181: uint16(20986), + 182: uint16(27249), + 183: uint16(21416), + 184: uint16(36487), + 185: uint16(38148), + 186: uint16(38607), + 187: uint16(28353), + 188: uint16(38500), + 189: uint16(26970), + }, + 51: { + 0: uint16(30852), + 1: uint16(30853), + 2: uint16(30854), + 3: uint16(30856), + 4: uint16(30858), + 5: uint16(30859), + 6: uint16(30863), + 7: uint16(30864), + 8: uint16(30866), + 9: uint16(30868), + 10: uint16(30869), + 11: uint16(30870), + 12: uint16(30873), + 13: uint16(30877), + 14: uint16(30878), + 15: uint16(30880), + 16: uint16(30882), + 17: uint16(30884), + 18: uint16(30886), + 19: uint16(30888), + 20: uint16(30889), + 21: uint16(30890), + 22: uint16(30891), + 23: uint16(30892), + 24: uint16(30893), + 25: uint16(30894), + 26: uint16(30895), + 27: uint16(30901), + 28: uint16(30902), + 29: uint16(30903), + 30: uint16(30904), + 31: uint16(30906), + 32: uint16(30907), + 33: uint16(30908), + 34: uint16(30909), + 35: uint16(30911), + 36: uint16(30912), + 37: uint16(30914), + 38: uint16(30915), + 39: uint16(30916), + 40: uint16(30918), + 41: uint16(30919), + 42: uint16(30920), + 43: uint16(30924), + 44: uint16(30925), + 45: uint16(30926), + 46: uint16(30927), + 47: uint16(30929), + 48: uint16(30930), + 49: uint16(30931), + 50: uint16(30934), + 51: uint16(30935), + 52: uint16(30936), + 53: uint16(30938), + 54: uint16(30939), + 55: uint16(30940), + 56: uint16(30941), + 57: uint16(30942), + 58: uint16(30943), + 59: uint16(30944), + 60: uint16(30945), + 61: uint16(30946), + 62: uint16(30947), + 63: uint16(30948), + 64: uint16(30949), + 65: uint16(30950), + 66: uint16(30951), + 67: uint16(30953), + 68: uint16(30954), + 69: uint16(30955), + 70: uint16(30957), + 71: uint16(30958), + 72: uint16(30959), + 73: uint16(30960), + 74: uint16(30961), + 75: uint16(30963), + 76: uint16(30965), + 77: uint16(30966), + 78: uint16(30968), + 79: uint16(30969), + 80: uint16(30971), + 81: uint16(30972), + 82: uint16(30973), + 83: uint16(30974), + 84: uint16(30975), + 85: uint16(30976), + 86: uint16(30978), + 87: uint16(30979), + 88: uint16(30980), + 89: uint16(30982), + 90: uint16(30983), + 91: uint16(30984), + 92: uint16(30985), + 93: uint16(30986), + 94: uint16(30987), + 95: uint16(30988), + 96: uint16(30784), + 97: uint16(20648), + 98: uint16(30679), + 99: uint16(25616), + 100: uint16(35302), + 101: uint16(22788), + 102: uint16(25571), + 103: uint16(24029), + 104: uint16(31359), + 105: uint16(26941), + 106: uint16(20256), + 107: uint16(33337), + 108: uint16(21912), + 109: uint16(20018), + 110: uint16(30126), + 111: uint16(31383), + 112: uint16(24162), + 113: uint16(24202), + 114: uint16(38383), + 115: uint16(21019), + 116: uint16(21561), + 117: uint16(28810), + 118: uint16(25462), + 119: uint16(38180), + 120: uint16(22402), + 121: uint16(26149), + 122: uint16(26943), + 123: uint16(37255), + 124: uint16(21767), + 125: uint16(28147), + 126: uint16(32431), + 127: uint16(34850), + 128: uint16(25139), + 129: uint16(32496), + 130: uint16(30133), + 131: uint16(33576), + 132: uint16(30913), + 133: uint16(38604), + 134: uint16(36766), + 135: uint16(24904), + 136: uint16(29943), + 137: uint16(35789), + 138: uint16(27492), + 139: uint16(21050), + 140: uint16(36176), + 141: uint16(27425), + 142: uint16(32874), + 143: uint16(33905), + 144: uint16(22257), + 145: uint16(21254), + 146: uint16(20174), + 147: uint16(19995), + 148: uint16(20945), + 149: uint16(31895), + 150: uint16(37259), + 151: uint16(31751), + 152: uint16(20419), + 153: uint16(36479), + 154: uint16(31713), + 155: uint16(31388), + 156: uint16(25703), + 157: uint16(23828), + 158: uint16(20652), + 159: uint16(33030), + 160: uint16(30209), + 161: uint16(31929), + 162: uint16(28140), + 163: uint16(32736), + 164: uint16(26449), + 165: uint16(23384), + 166: uint16(23544), + 167: uint16(30923), + 168: uint16(25774), + 169: uint16(25619), + 170: uint16(25514), + 171: uint16(25387), + 172: uint16(38169), + 173: uint16(25645), + 174: uint16(36798), + 175: uint16(31572), + 176: uint16(30249), + 177: uint16(25171), + 178: uint16(22823), + 179: uint16(21574), + 180: uint16(27513), + 181: uint16(20643), + 182: uint16(25140), + 183: uint16(24102), + 184: uint16(27526), + 185: uint16(20195), + 186: uint16(36151), + 187: uint16(34955), + 188: uint16(24453), + 189: uint16(36910), + }, + 52: { + 0: uint16(30989), + 1: uint16(30990), + 2: uint16(30991), + 3: uint16(30992), + 4: uint16(30993), + 5: uint16(30994), + 6: uint16(30996), + 7: uint16(30997), + 8: uint16(30998), + 9: uint16(30999), + 10: uint16(31000), + 11: uint16(31001), + 12: uint16(31002), + 13: uint16(31003), + 14: uint16(31004), + 15: uint16(31005), + 16: uint16(31007), + 17: uint16(31008), + 18: uint16(31009), + 19: uint16(31010), + 20: uint16(31011), + 21: uint16(31013), + 22: uint16(31014), + 23: uint16(31015), + 24: uint16(31016), + 25: uint16(31017), + 26: uint16(31018), + 27: uint16(31019), + 28: uint16(31020), + 29: uint16(31021), + 30: uint16(31022), + 31: uint16(31023), + 32: uint16(31024), + 33: uint16(31025), + 34: uint16(31026), + 35: uint16(31027), + 36: uint16(31029), + 37: uint16(31030), + 38: uint16(31031), + 39: uint16(31032), + 40: uint16(31033), + 41: uint16(31037), + 42: uint16(31039), + 43: uint16(31042), + 44: uint16(31043), + 45: uint16(31044), + 46: uint16(31045), + 47: uint16(31047), + 48: uint16(31050), + 49: uint16(31051), + 50: uint16(31052), + 51: uint16(31053), + 52: uint16(31054), + 53: uint16(31055), + 54: uint16(31056), + 55: uint16(31057), + 56: uint16(31058), + 57: uint16(31060), + 58: uint16(31061), + 59: uint16(31064), + 60: uint16(31065), + 61: uint16(31073), + 62: uint16(31075), + 63: uint16(31076), + 64: uint16(31078), + 65: uint16(31081), + 66: uint16(31082), + 67: uint16(31083), + 68: uint16(31084), + 69: uint16(31086), + 70: uint16(31088), + 71: uint16(31089), + 72: uint16(31090), + 73: uint16(31091), + 74: uint16(31092), + 75: uint16(31093), + 76: uint16(31094), + 77: uint16(31097), + 78: uint16(31099), + 79: uint16(31100), + 80: uint16(31101), + 81: uint16(31102), + 82: uint16(31103), + 83: uint16(31106), + 84: uint16(31107), + 85: uint16(31110), + 86: uint16(31111), + 87: uint16(31112), + 88: uint16(31113), + 89: uint16(31115), + 90: uint16(31116), + 91: uint16(31117), + 92: uint16(31118), + 93: uint16(31120), + 94: uint16(31121), + 95: uint16(31122), + 96: uint16(24608), + 97: uint16(32829), + 98: uint16(25285), + 99: uint16(20025), + 100: uint16(21333), + 101: uint16(37112), + 102: uint16(25528), + 103: uint16(32966), + 104: uint16(26086), + 105: uint16(27694), + 106: uint16(20294), + 107: uint16(24814), + 108: uint16(28129), + 109: uint16(35806), + 110: uint16(24377), + 111: uint16(34507), + 112: uint16(24403), + 113: uint16(25377), + 114: uint16(20826), + 115: uint16(33633), + 116: uint16(26723), + 117: uint16(20992), + 118: uint16(25443), + 119: uint16(36424), + 120: uint16(20498), + 121: uint16(23707), + 122: uint16(31095), + 123: uint16(23548), + 124: uint16(21040), + 125: uint16(31291), + 126: uint16(24764), + 127: uint16(36947), + 128: uint16(30423), + 129: uint16(24503), + 130: uint16(24471), + 131: uint16(30340), + 132: uint16(36460), + 133: uint16(28783), + 134: uint16(30331), + 135: uint16(31561), + 136: uint16(30634), + 137: uint16(20979), + 138: uint16(37011), + 139: uint16(22564), + 140: uint16(20302), + 141: uint16(28404), + 142: uint16(36842), + 143: uint16(25932), + 144: uint16(31515), + 145: uint16(29380), + 146: uint16(28068), + 147: uint16(32735), + 148: uint16(23265), + 149: uint16(25269), + 150: uint16(24213), + 151: uint16(22320), + 152: uint16(33922), + 153: uint16(31532), + 154: uint16(24093), + 155: uint16(24351), + 156: uint16(36882), + 157: uint16(32532), + 158: uint16(39072), + 159: uint16(25474), + 160: uint16(28359), + 161: uint16(30872), + 162: uint16(28857), + 163: uint16(20856), + 164: uint16(38747), + 165: uint16(22443), + 166: uint16(30005), + 167: uint16(20291), + 168: uint16(30008), + 169: uint16(24215), + 170: uint16(24806), + 171: uint16(22880), + 172: uint16(28096), + 173: uint16(27583), + 174: uint16(30857), + 175: uint16(21500), + 176: uint16(38613), + 177: uint16(20939), + 178: uint16(20993), + 179: uint16(25481), + 180: uint16(21514), + 181: uint16(38035), + 182: uint16(35843), + 183: uint16(36300), + 184: uint16(29241), + 185: uint16(30879), + 186: uint16(34678), + 187: uint16(36845), + 188: uint16(35853), + 189: uint16(21472), + }, + 53: { + 0: uint16(31123), + 1: uint16(31124), + 2: uint16(31125), + 3: uint16(31126), + 4: uint16(31127), + 5: uint16(31128), + 6: uint16(31129), + 7: uint16(31131), + 8: uint16(31132), + 9: uint16(31133), + 10: uint16(31134), + 11: uint16(31135), + 12: uint16(31136), + 13: uint16(31137), + 14: uint16(31138), + 15: uint16(31139), + 16: uint16(31140), + 17: uint16(31141), + 18: uint16(31142), + 19: uint16(31144), + 20: uint16(31145), + 21: uint16(31146), + 22: uint16(31147), + 23: uint16(31148), + 24: uint16(31149), + 25: uint16(31150), + 26: uint16(31151), + 27: uint16(31152), + 28: uint16(31153), + 29: uint16(31154), + 30: uint16(31156), + 31: uint16(31157), + 32: uint16(31158), + 33: uint16(31159), + 34: uint16(31160), + 35: uint16(31164), + 36: uint16(31167), + 37: uint16(31170), + 38: uint16(31172), + 39: uint16(31173), + 40: uint16(31175), + 41: uint16(31176), + 42: uint16(31178), + 43: uint16(31180), + 44: uint16(31182), + 45: uint16(31183), + 46: uint16(31184), + 47: uint16(31187), + 48: uint16(31188), + 49: uint16(31190), + 50: uint16(31191), + 51: uint16(31193), + 52: uint16(31194), + 53: uint16(31195), + 54: uint16(31196), + 55: uint16(31197), + 56: uint16(31198), + 57: uint16(31200), + 58: uint16(31201), + 59: uint16(31202), + 60: uint16(31205), + 61: uint16(31208), + 62: uint16(31210), + 63: uint16(31212), + 64: uint16(31214), + 65: uint16(31217), + 66: uint16(31218), + 67: uint16(31219), + 68: uint16(31220), + 69: uint16(31221), + 70: uint16(31222), + 71: uint16(31223), + 72: uint16(31225), + 73: uint16(31226), + 74: uint16(31228), + 75: uint16(31230), + 76: uint16(31231), + 77: uint16(31233), + 78: uint16(31236), + 79: uint16(31237), + 80: uint16(31239), + 81: uint16(31240), + 82: uint16(31241), + 83: uint16(31242), + 84: uint16(31244), + 85: uint16(31247), + 86: uint16(31248), + 87: uint16(31249), + 88: uint16(31250), + 89: uint16(31251), + 90: uint16(31253), + 91: uint16(31254), + 92: uint16(31256), + 93: uint16(31257), + 94: uint16(31259), + 95: uint16(31260), + 96: uint16(19969), + 97: uint16(30447), + 98: uint16(21486), + 99: uint16(38025), + 100: uint16(39030), + 101: uint16(40718), + 102: uint16(38189), + 103: uint16(23450), + 104: uint16(35746), + 105: uint16(20002), + 106: uint16(19996), + 107: uint16(20908), + 108: uint16(33891), + 109: uint16(25026), + 110: uint16(21160), + 111: uint16(26635), + 112: uint16(20375), + 113: uint16(24683), + 114: uint16(20923), + 115: uint16(27934), + 116: uint16(20828), + 117: uint16(25238), + 118: uint16(26007), + 119: uint16(38497), + 120: uint16(35910), + 121: uint16(36887), + 122: uint16(30168), + 123: uint16(37117), + 124: uint16(30563), + 125: uint16(27602), + 126: uint16(29322), + 127: uint16(29420), + 128: uint16(35835), + 129: uint16(22581), + 130: uint16(30585), + 131: uint16(36172), + 132: uint16(26460), + 133: uint16(38208), + 134: uint16(32922), + 135: uint16(24230), + 136: uint16(28193), + 137: uint16(22930), + 138: uint16(31471), + 139: uint16(30701), + 140: uint16(38203), + 141: uint16(27573), + 142: uint16(26029), + 143: uint16(32526), + 144: uint16(22534), + 145: uint16(20817), + 146: uint16(38431), + 147: uint16(23545), + 148: uint16(22697), + 149: uint16(21544), + 150: uint16(36466), + 151: uint16(25958), + 152: uint16(39039), + 153: uint16(22244), + 154: uint16(38045), + 155: uint16(30462), + 156: uint16(36929), + 157: uint16(25479), + 158: uint16(21702), + 159: uint16(22810), + 160: uint16(22842), + 161: uint16(22427), + 162: uint16(36530), + 163: uint16(26421), + 164: uint16(36346), + 165: uint16(33333), + 166: uint16(21057), + 167: uint16(24816), + 168: uint16(22549), + 169: uint16(34558), + 170: uint16(23784), + 171: uint16(40517), + 172: uint16(20420), + 173: uint16(39069), + 174: uint16(35769), + 175: uint16(23077), + 176: uint16(24694), + 177: uint16(21380), + 178: uint16(25212), + 179: uint16(36943), + 180: uint16(37122), + 181: uint16(39295), + 182: uint16(24681), + 183: uint16(32780), + 184: uint16(20799), + 185: uint16(32819), + 186: uint16(23572), + 187: uint16(39285), + 188: uint16(27953), + 189: uint16(20108), + }, + 54: { + 0: uint16(31261), + 1: uint16(31263), + 2: uint16(31265), + 3: uint16(31266), + 4: uint16(31268), + 5: uint16(31269), + 6: uint16(31270), + 7: uint16(31271), + 8: uint16(31272), + 9: uint16(31273), + 10: uint16(31274), + 11: uint16(31275), + 12: uint16(31276), + 13: uint16(31277), + 14: uint16(31278), + 15: uint16(31279), + 16: uint16(31280), + 17: uint16(31281), + 18: uint16(31282), + 19: uint16(31284), + 20: uint16(31285), + 21: uint16(31286), + 22: uint16(31288), + 23: uint16(31290), + 24: uint16(31294), + 25: uint16(31296), + 26: uint16(31297), + 27: uint16(31298), + 28: uint16(31299), + 29: uint16(31300), + 30: uint16(31301), + 31: uint16(31303), + 32: uint16(31304), + 33: uint16(31305), + 34: uint16(31306), + 35: uint16(31307), + 36: uint16(31308), + 37: uint16(31309), + 38: uint16(31310), + 39: uint16(31311), + 40: uint16(31312), + 41: uint16(31314), + 42: uint16(31315), + 43: uint16(31316), + 44: uint16(31317), + 45: uint16(31318), + 46: uint16(31320), + 47: uint16(31321), + 48: uint16(31322), + 49: uint16(31323), + 50: uint16(31324), + 51: uint16(31325), + 52: uint16(31326), + 53: uint16(31327), + 54: uint16(31328), + 55: uint16(31329), + 56: uint16(31330), + 57: uint16(31331), + 58: uint16(31332), + 59: uint16(31333), + 60: uint16(31334), + 61: uint16(31335), + 62: uint16(31336), + 63: uint16(31337), + 64: uint16(31338), + 65: uint16(31339), + 66: uint16(31340), + 67: uint16(31341), + 68: uint16(31342), + 69: uint16(31343), + 70: uint16(31345), + 71: uint16(31346), + 72: uint16(31347), + 73: uint16(31349), + 74: uint16(31355), + 75: uint16(31356), + 76: uint16(31357), + 77: uint16(31358), + 78: uint16(31362), + 79: uint16(31365), + 80: uint16(31367), + 81: uint16(31369), + 82: uint16(31370), + 83: uint16(31371), + 84: uint16(31372), + 85: uint16(31374), + 86: uint16(31375), + 87: uint16(31376), + 88: uint16(31379), + 89: uint16(31380), + 90: uint16(31385), + 91: uint16(31386), + 92: uint16(31387), + 93: uint16(31390), + 94: uint16(31393), + 95: uint16(31394), + 96: uint16(36144), + 97: uint16(21457), + 98: uint16(32602), + 99: uint16(31567), + 100: uint16(20240), + 101: uint16(20047), + 102: uint16(38400), + 103: uint16(27861), + 104: uint16(29648), + 105: uint16(34281), + 106: uint16(24070), + 107: uint16(30058), + 108: uint16(32763), + 109: uint16(27146), + 110: uint16(30718), + 111: uint16(38034), + 112: uint16(32321), + 113: uint16(20961), + 114: uint16(28902), + 115: uint16(21453), + 116: uint16(36820), + 117: uint16(33539), + 118: uint16(36137), + 119: uint16(29359), + 120: uint16(39277), + 121: uint16(27867), + 122: uint16(22346), + 123: uint16(33459), + 124: uint16(26041), + 125: uint16(32938), + 126: uint16(25151), + 127: uint16(38450), + 128: uint16(22952), + 129: uint16(20223), + 130: uint16(35775), + 131: uint16(32442), + 132: uint16(25918), + 133: uint16(33778), + 134: uint16(38750), + 135: uint16(21857), + 136: uint16(39134), + 137: uint16(32933), + 138: uint16(21290), + 139: uint16(35837), + 140: uint16(21536), + 141: uint16(32954), + 142: uint16(24223), + 143: uint16(27832), + 144: uint16(36153), + 145: uint16(33452), + 146: uint16(37210), + 147: uint16(21545), + 148: uint16(27675), + 149: uint16(20998), + 150: uint16(32439), + 151: uint16(22367), + 152: uint16(28954), + 153: uint16(27774), + 154: uint16(31881), + 155: uint16(22859), + 156: uint16(20221), + 157: uint16(24575), + 158: uint16(24868), + 159: uint16(31914), + 160: uint16(20016), + 161: uint16(23553), + 162: uint16(26539), + 163: uint16(34562), + 164: uint16(23792), + 165: uint16(38155), + 166: uint16(39118), + 167: uint16(30127), + 168: uint16(28925), + 169: uint16(36898), + 170: uint16(20911), + 171: uint16(32541), + 172: uint16(35773), + 173: uint16(22857), + 174: uint16(20964), + 175: uint16(20315), + 176: uint16(21542), + 177: uint16(22827), + 178: uint16(25975), + 179: uint16(32932), + 180: uint16(23413), + 181: uint16(25206), + 182: uint16(25282), + 183: uint16(36752), + 184: uint16(24133), + 185: uint16(27679), + 186: uint16(31526), + 187: uint16(20239), + 188: uint16(20440), + 189: uint16(26381), + }, + 55: { + 0: uint16(31395), + 1: uint16(31396), + 2: uint16(31399), + 3: uint16(31401), + 4: uint16(31402), + 5: uint16(31403), + 6: uint16(31406), + 7: uint16(31407), + 8: uint16(31408), + 9: uint16(31409), + 10: uint16(31410), + 11: uint16(31412), + 12: uint16(31413), + 13: uint16(31414), + 14: uint16(31415), + 15: uint16(31416), + 16: uint16(31417), + 17: uint16(31418), + 18: uint16(31419), + 19: uint16(31420), + 20: uint16(31421), + 21: uint16(31422), + 22: uint16(31424), + 23: uint16(31425), + 24: uint16(31426), + 25: uint16(31427), + 26: uint16(31428), + 27: uint16(31429), + 28: uint16(31430), + 29: uint16(31431), + 30: uint16(31432), + 31: uint16(31433), + 32: uint16(31434), + 33: uint16(31436), + 34: uint16(31437), + 35: uint16(31438), + 36: uint16(31439), + 37: uint16(31440), + 38: uint16(31441), + 39: uint16(31442), + 40: uint16(31443), + 41: uint16(31444), + 42: uint16(31445), + 43: uint16(31447), + 44: uint16(31448), + 45: uint16(31450), + 46: uint16(31451), + 47: uint16(31452), + 48: uint16(31453), + 49: uint16(31457), + 50: uint16(31458), + 51: uint16(31460), + 52: uint16(31463), + 53: uint16(31464), + 54: uint16(31465), + 55: uint16(31466), + 56: uint16(31467), + 57: uint16(31468), + 58: uint16(31470), + 59: uint16(31472), + 60: uint16(31473), + 61: uint16(31474), + 62: uint16(31475), + 63: uint16(31476), + 64: uint16(31477), + 65: uint16(31478), + 66: uint16(31479), + 67: uint16(31480), + 68: uint16(31483), + 69: uint16(31484), + 70: uint16(31486), + 71: uint16(31488), + 72: uint16(31489), + 73: uint16(31490), + 74: uint16(31493), + 75: uint16(31495), + 76: uint16(31497), + 77: uint16(31500), + 78: uint16(31501), + 79: uint16(31502), + 80: uint16(31504), + 81: uint16(31506), + 82: uint16(31507), + 83: uint16(31510), + 84: uint16(31511), + 85: uint16(31512), + 86: uint16(31514), + 87: uint16(31516), + 88: uint16(31517), + 89: uint16(31519), + 90: uint16(31521), + 91: uint16(31522), + 92: uint16(31523), + 93: uint16(31527), + 94: uint16(31529), + 95: uint16(31533), + 96: uint16(28014), + 97: uint16(28074), + 98: uint16(31119), + 99: uint16(34993), + 100: uint16(24343), + 101: uint16(29995), + 102: uint16(25242), + 103: uint16(36741), + 104: uint16(20463), + 105: uint16(37340), + 106: uint16(26023), + 107: uint16(33071), + 108: uint16(33105), + 109: uint16(24220), + 110: uint16(33104), + 111: uint16(36212), + 112: uint16(21103), + 113: uint16(35206), + 114: uint16(36171), + 115: uint16(22797), + 116: uint16(20613), + 117: uint16(20184), + 118: uint16(38428), + 119: uint16(29238), + 120: uint16(33145), + 121: uint16(36127), + 122: uint16(23500), + 123: uint16(35747), + 124: uint16(38468), + 125: uint16(22919), + 126: uint16(32538), + 127: uint16(21648), + 128: uint16(22134), + 129: uint16(22030), + 130: uint16(35813), + 131: uint16(25913), + 132: uint16(27010), + 133: uint16(38041), + 134: uint16(30422), + 135: uint16(28297), + 136: uint16(24178), + 137: uint16(29976), + 138: uint16(26438), + 139: uint16(26577), + 140: uint16(31487), + 141: uint16(32925), + 142: uint16(36214), + 143: uint16(24863), + 144: uint16(31174), + 145: uint16(25954), + 146: uint16(36195), + 147: uint16(20872), + 148: uint16(21018), + 149: uint16(38050), + 150: uint16(32568), + 151: uint16(32923), + 152: uint16(32434), + 153: uint16(23703), + 154: uint16(28207), + 155: uint16(26464), + 156: uint16(31705), + 157: uint16(30347), + 158: uint16(39640), + 159: uint16(33167), + 160: uint16(32660), + 161: uint16(31957), + 162: uint16(25630), + 163: uint16(38224), + 164: uint16(31295), + 165: uint16(21578), + 166: uint16(21733), + 167: uint16(27468), + 168: uint16(25601), + 169: uint16(25096), + 170: uint16(40509), + 171: uint16(33011), + 172: uint16(30105), + 173: uint16(21106), + 174: uint16(38761), + 175: uint16(33883), + 176: uint16(26684), + 177: uint16(34532), + 178: uint16(38401), + 179: uint16(38548), + 180: uint16(38124), + 181: uint16(20010), + 182: uint16(21508), + 183: uint16(32473), + 184: uint16(26681), + 185: uint16(36319), + 186: uint16(32789), + 187: uint16(26356), + 188: uint16(24218), + 189: uint16(32697), + }, + 56: { + 0: uint16(31535), + 1: uint16(31536), + 2: uint16(31538), + 3: uint16(31540), + 4: uint16(31541), + 5: uint16(31542), + 6: uint16(31543), + 7: uint16(31545), + 8: uint16(31547), + 9: uint16(31549), + 10: uint16(31551), + 11: uint16(31552), + 12: uint16(31553), + 13: uint16(31554), + 14: uint16(31555), + 15: uint16(31556), + 16: uint16(31558), + 17: uint16(31560), + 18: uint16(31562), + 19: uint16(31565), + 20: uint16(31566), + 21: uint16(31571), + 22: uint16(31573), + 23: uint16(31575), + 24: uint16(31577), + 25: uint16(31580), + 26: uint16(31582), + 27: uint16(31583), + 28: uint16(31585), + 29: uint16(31587), + 30: uint16(31588), + 31: uint16(31589), + 32: uint16(31590), + 33: uint16(31591), + 34: uint16(31592), + 35: uint16(31593), + 36: uint16(31594), + 37: uint16(31595), + 38: uint16(31596), + 39: uint16(31597), + 40: uint16(31599), + 41: uint16(31600), + 42: uint16(31603), + 43: uint16(31604), + 44: uint16(31606), + 45: uint16(31608), + 46: uint16(31610), + 47: uint16(31612), + 48: uint16(31613), + 49: uint16(31615), + 50: uint16(31617), + 51: uint16(31618), + 52: uint16(31619), + 53: uint16(31620), + 54: uint16(31622), + 55: uint16(31623), + 56: uint16(31624), + 57: uint16(31625), + 58: uint16(31626), + 59: uint16(31627), + 60: uint16(31628), + 61: uint16(31630), + 62: uint16(31631), + 63: uint16(31633), + 64: uint16(31634), + 65: uint16(31635), + 66: uint16(31638), + 67: uint16(31640), + 68: uint16(31641), + 69: uint16(31642), + 70: uint16(31643), + 71: uint16(31646), + 72: uint16(31647), + 73: uint16(31648), + 74: uint16(31651), + 75: uint16(31652), + 76: uint16(31653), + 77: uint16(31662), + 78: uint16(31663), + 79: uint16(31664), + 80: uint16(31666), + 81: uint16(31667), + 82: uint16(31669), + 83: uint16(31670), + 84: uint16(31671), + 85: uint16(31673), + 86: uint16(31674), + 87: uint16(31675), + 88: uint16(31676), + 89: uint16(31677), + 90: uint16(31678), + 91: uint16(31679), + 92: uint16(31680), + 93: uint16(31682), + 94: uint16(31683), + 95: uint16(31684), + 96: uint16(22466), + 97: uint16(32831), + 98: uint16(26775), + 99: uint16(24037), + 100: uint16(25915), + 101: uint16(21151), + 102: uint16(24685), + 103: uint16(40858), + 104: uint16(20379), + 105: uint16(36524), + 106: uint16(20844), + 107: uint16(23467), + 108: uint16(24339), + 109: uint16(24041), + 110: uint16(27742), + 111: uint16(25329), + 112: uint16(36129), + 113: uint16(20849), + 114: uint16(38057), + 115: uint16(21246), + 116: uint16(27807), + 117: uint16(33503), + 118: uint16(29399), + 119: uint16(22434), + 120: uint16(26500), + 121: uint16(36141), + 122: uint16(22815), + 123: uint16(36764), + 124: uint16(33735), + 125: uint16(21653), + 126: uint16(31629), + 127: uint16(20272), + 128: uint16(27837), + 129: uint16(23396), + 130: uint16(22993), + 131: uint16(40723), + 132: uint16(21476), + 133: uint16(34506), + 134: uint16(39592), + 135: uint16(35895), + 136: uint16(32929), + 137: uint16(25925), + 138: uint16(39038), + 139: uint16(22266), + 140: uint16(38599), + 141: uint16(21038), + 142: uint16(29916), + 143: uint16(21072), + 144: uint16(23521), + 145: uint16(25346), + 146: uint16(35074), + 147: uint16(20054), + 148: uint16(25296), + 149: uint16(24618), + 150: uint16(26874), + 151: uint16(20851), + 152: uint16(23448), + 153: uint16(20896), + 154: uint16(35266), + 155: uint16(31649), + 156: uint16(39302), + 157: uint16(32592), + 158: uint16(24815), + 159: uint16(28748), + 160: uint16(36143), + 161: uint16(20809), + 162: uint16(24191), + 163: uint16(36891), + 164: uint16(29808), + 165: uint16(35268), + 166: uint16(22317), + 167: uint16(30789), + 168: uint16(24402), + 169: uint16(40863), + 170: uint16(38394), + 171: uint16(36712), + 172: uint16(39740), + 173: uint16(35809), + 174: uint16(30328), + 175: uint16(26690), + 176: uint16(26588), + 177: uint16(36330), + 178: uint16(36149), + 179: uint16(21053), + 180: uint16(36746), + 181: uint16(28378), + 182: uint16(26829), + 183: uint16(38149), + 184: uint16(37101), + 185: uint16(22269), + 186: uint16(26524), + 187: uint16(35065), + 188: uint16(36807), + 189: uint16(21704), + }, + 57: { + 0: uint16(31685), + 1: uint16(31688), + 2: uint16(31689), + 3: uint16(31690), + 4: uint16(31691), + 5: uint16(31693), + 6: uint16(31694), + 7: uint16(31695), + 8: uint16(31696), + 9: uint16(31698), + 10: uint16(31700), + 11: uint16(31701), + 12: uint16(31702), + 13: uint16(31703), + 14: uint16(31704), + 15: uint16(31707), + 16: uint16(31708), + 17: uint16(31710), + 18: uint16(31711), + 19: uint16(31712), + 20: uint16(31714), + 21: uint16(31715), + 22: uint16(31716), + 23: uint16(31719), + 24: uint16(31720), + 25: uint16(31721), + 26: uint16(31723), + 27: uint16(31724), + 28: uint16(31725), + 29: uint16(31727), + 30: uint16(31728), + 31: uint16(31730), + 32: uint16(31731), + 33: uint16(31732), + 34: uint16(31733), + 35: uint16(31734), + 36: uint16(31736), + 37: uint16(31737), + 38: uint16(31738), + 39: uint16(31739), + 40: uint16(31741), + 41: uint16(31743), + 42: uint16(31744), + 43: uint16(31745), + 44: uint16(31746), + 45: uint16(31747), + 46: uint16(31748), + 47: uint16(31749), + 48: uint16(31750), + 49: uint16(31752), + 50: uint16(31753), + 51: uint16(31754), + 52: uint16(31757), + 53: uint16(31758), + 54: uint16(31760), + 55: uint16(31761), + 56: uint16(31762), + 57: uint16(31763), + 58: uint16(31764), + 59: uint16(31765), + 60: uint16(31767), + 61: uint16(31768), + 62: uint16(31769), + 63: uint16(31770), + 64: uint16(31771), + 65: uint16(31772), + 66: uint16(31773), + 67: uint16(31774), + 68: uint16(31776), + 69: uint16(31777), + 70: uint16(31778), + 71: uint16(31779), + 72: uint16(31780), + 73: uint16(31781), + 74: uint16(31784), + 75: uint16(31785), + 76: uint16(31787), + 77: uint16(31788), + 78: uint16(31789), + 79: uint16(31790), + 80: uint16(31791), + 81: uint16(31792), + 82: uint16(31793), + 83: uint16(31794), + 84: uint16(31795), + 85: uint16(31796), + 86: uint16(31797), + 87: uint16(31798), + 88: uint16(31799), + 89: uint16(31801), + 90: uint16(31802), + 91: uint16(31803), + 92: uint16(31804), + 93: uint16(31805), + 94: uint16(31806), + 95: uint16(31810), + 96: uint16(39608), + 97: uint16(23401), + 98: uint16(28023), + 99: uint16(27686), + 100: uint16(20133), + 101: uint16(23475), + 102: uint16(39559), + 103: uint16(37219), + 104: uint16(25000), + 105: uint16(37039), + 106: uint16(38889), + 107: uint16(21547), + 108: uint16(28085), + 109: uint16(23506), + 110: uint16(20989), + 111: uint16(21898), + 112: uint16(32597), + 113: uint16(32752), + 114: uint16(25788), + 115: uint16(25421), + 116: uint16(26097), + 117: uint16(25022), + 118: uint16(24717), + 119: uint16(28938), + 120: uint16(27735), + 121: uint16(27721), + 122: uint16(22831), + 123: uint16(26477), + 124: uint16(33322), + 125: uint16(22741), + 126: uint16(22158), + 127: uint16(35946), + 128: uint16(27627), + 129: uint16(37085), + 130: uint16(22909), + 131: uint16(32791), + 132: uint16(21495), + 133: uint16(28009), + 134: uint16(21621), + 135: uint16(21917), + 136: uint16(33655), + 137: uint16(33743), + 138: uint16(26680), + 139: uint16(31166), + 140: uint16(21644), + 141: uint16(20309), + 142: uint16(21512), + 143: uint16(30418), + 144: uint16(35977), + 145: uint16(38402), + 146: uint16(27827), + 147: uint16(28088), + 148: uint16(36203), + 149: uint16(35088), + 150: uint16(40548), + 151: uint16(36154), + 152: uint16(22079), + 153: uint16(40657), + 154: uint16(30165), + 155: uint16(24456), + 156: uint16(29408), + 157: uint16(24680), + 158: uint16(21756), + 159: uint16(20136), + 160: uint16(27178), + 161: uint16(34913), + 162: uint16(24658), + 163: uint16(36720), + 164: uint16(21700), + 165: uint16(28888), + 166: uint16(34425), + 167: uint16(40511), + 168: uint16(27946), + 169: uint16(23439), + 170: uint16(24344), + 171: uint16(32418), + 172: uint16(21897), + 173: uint16(20399), + 174: uint16(29492), + 175: uint16(21564), + 176: uint16(21402), + 177: uint16(20505), + 178: uint16(21518), + 179: uint16(21628), + 180: uint16(20046), + 181: uint16(24573), + 182: uint16(29786), + 183: uint16(22774), + 184: uint16(33899), + 185: uint16(32993), + 186: uint16(34676), + 187: uint16(29392), + 188: uint16(31946), + 189: uint16(28246), + }, + 58: { + 0: uint16(31811), + 1: uint16(31812), + 2: uint16(31813), + 3: uint16(31814), + 4: uint16(31815), + 5: uint16(31816), + 6: uint16(31817), + 7: uint16(31818), + 8: uint16(31819), + 9: uint16(31820), + 10: uint16(31822), + 11: uint16(31823), + 12: uint16(31824), + 13: uint16(31825), + 14: uint16(31826), + 15: uint16(31827), + 16: uint16(31828), + 17: uint16(31829), + 18: uint16(31830), + 19: uint16(31831), + 20: uint16(31832), + 21: uint16(31833), + 22: uint16(31834), + 23: uint16(31835), + 24: uint16(31836), + 25: uint16(31837), + 26: uint16(31838), + 27: uint16(31839), + 28: uint16(31840), + 29: uint16(31841), + 30: uint16(31842), + 31: uint16(31843), + 32: uint16(31844), + 33: uint16(31845), + 34: uint16(31846), + 35: uint16(31847), + 36: uint16(31848), + 37: uint16(31849), + 38: uint16(31850), + 39: uint16(31851), + 40: uint16(31852), + 41: uint16(31853), + 42: uint16(31854), + 43: uint16(31855), + 44: uint16(31856), + 45: uint16(31857), + 46: uint16(31858), + 47: uint16(31861), + 48: uint16(31862), + 49: uint16(31863), + 50: uint16(31864), + 51: uint16(31865), + 52: uint16(31866), + 53: uint16(31870), + 54: uint16(31871), + 55: uint16(31872), + 56: uint16(31873), + 57: uint16(31874), + 58: uint16(31875), + 59: uint16(31876), + 60: uint16(31877), + 61: uint16(31878), + 62: uint16(31879), + 63: uint16(31880), + 64: uint16(31882), + 65: uint16(31883), + 66: uint16(31884), + 67: uint16(31885), + 68: uint16(31886), + 69: uint16(31887), + 70: uint16(31888), + 71: uint16(31891), + 72: uint16(31892), + 73: uint16(31894), + 74: uint16(31897), + 75: uint16(31898), + 76: uint16(31899), + 77: uint16(31904), + 78: uint16(31905), + 79: uint16(31907), + 80: uint16(31910), + 81: uint16(31911), + 82: uint16(31912), + 83: uint16(31913), + 84: uint16(31915), + 85: uint16(31916), + 86: uint16(31917), + 87: uint16(31919), + 88: uint16(31920), + 89: uint16(31924), + 90: uint16(31925), + 91: uint16(31926), + 92: uint16(31927), + 93: uint16(31928), + 94: uint16(31930), + 95: uint16(31931), + 96: uint16(24359), + 97: uint16(34382), + 98: uint16(21804), + 99: uint16(25252), + 100: uint16(20114), + 101: uint16(27818), + 102: uint16(25143), + 103: uint16(33457), + 104: uint16(21719), + 105: uint16(21326), + 106: uint16(29502), + 107: uint16(28369), + 108: uint16(30011), + 109: uint16(21010), + 110: uint16(21270), + 111: uint16(35805), + 112: uint16(27088), + 113: uint16(24458), + 114: uint16(24576), + 115: uint16(28142), + 116: uint16(22351), + 117: uint16(27426), + 118: uint16(29615), + 119: uint16(26707), + 120: uint16(36824), + 121: uint16(32531), + 122: uint16(25442), + 123: uint16(24739), + 124: uint16(21796), + 125: uint16(30186), + 126: uint16(35938), + 127: uint16(28949), + 128: uint16(28067), + 129: uint16(23462), + 130: uint16(24187), + 131: uint16(33618), + 132: uint16(24908), + 133: uint16(40644), + 134: uint16(30970), + 135: uint16(34647), + 136: uint16(31783), + 137: uint16(30343), + 138: uint16(20976), + 139: uint16(24822), + 140: uint16(29004), + 141: uint16(26179), + 142: uint16(24140), + 143: uint16(24653), + 144: uint16(35854), + 145: uint16(28784), + 146: uint16(25381), + 147: uint16(36745), + 148: uint16(24509), + 149: uint16(24674), + 150: uint16(34516), + 151: uint16(22238), + 152: uint16(27585), + 153: uint16(24724), + 154: uint16(24935), + 155: uint16(21321), + 156: uint16(24800), + 157: uint16(26214), + 158: uint16(36159), + 159: uint16(31229), + 160: uint16(20250), + 161: uint16(28905), + 162: uint16(27719), + 163: uint16(35763), + 164: uint16(35826), + 165: uint16(32472), + 166: uint16(33636), + 167: uint16(26127), + 168: uint16(23130), + 169: uint16(39746), + 170: uint16(27985), + 171: uint16(28151), + 172: uint16(35905), + 173: uint16(27963), + 174: uint16(20249), + 175: uint16(28779), + 176: uint16(33719), + 177: uint16(25110), + 178: uint16(24785), + 179: uint16(38669), + 180: uint16(36135), + 181: uint16(31096), + 182: uint16(20987), + 183: uint16(22334), + 184: uint16(22522), + 185: uint16(26426), + 186: uint16(30072), + 187: uint16(31293), + 188: uint16(31215), + 189: uint16(31637), + }, + 59: { + 0: uint16(31935), + 1: uint16(31936), + 2: uint16(31938), + 3: uint16(31939), + 4: uint16(31940), + 5: uint16(31942), + 6: uint16(31945), + 7: uint16(31947), + 8: uint16(31950), + 9: uint16(31951), + 10: uint16(31952), + 11: uint16(31953), + 12: uint16(31954), + 13: uint16(31955), + 14: uint16(31956), + 15: uint16(31960), + 16: uint16(31962), + 17: uint16(31963), + 18: uint16(31965), + 19: uint16(31966), + 20: uint16(31969), + 21: uint16(31970), + 22: uint16(31971), + 23: uint16(31972), + 24: uint16(31973), + 25: uint16(31974), + 26: uint16(31975), + 27: uint16(31977), + 28: uint16(31978), + 29: uint16(31979), + 30: uint16(31980), + 31: uint16(31981), + 32: uint16(31982), + 33: uint16(31984), + 34: uint16(31985), + 35: uint16(31986), + 36: uint16(31987), + 37: uint16(31988), + 38: uint16(31989), + 39: uint16(31990), + 40: uint16(31991), + 41: uint16(31993), + 42: uint16(31994), + 43: uint16(31996), + 44: uint16(31997), + 45: uint16(31998), + 46: uint16(31999), + 47: uint16(32000), + 48: uint16(32001), + 49: uint16(32002), + 50: uint16(32003), + 51: uint16(32004), + 52: uint16(32005), + 53: uint16(32006), + 54: uint16(32007), + 55: uint16(32008), + 56: uint16(32009), + 57: uint16(32011), + 58: uint16(32012), + 59: uint16(32013), + 60: uint16(32014), + 61: uint16(32015), + 62: uint16(32016), + 63: uint16(32017), + 64: uint16(32018), + 65: uint16(32019), + 66: uint16(32020), + 67: uint16(32021), + 68: uint16(32022), + 69: uint16(32023), + 70: uint16(32024), + 71: uint16(32025), + 72: uint16(32026), + 73: uint16(32027), + 74: uint16(32028), + 75: uint16(32029), + 76: uint16(32030), + 77: uint16(32031), + 78: uint16(32033), + 79: uint16(32035), + 80: uint16(32036), + 81: uint16(32037), + 82: uint16(32038), + 83: uint16(32040), + 84: uint16(32041), + 85: uint16(32042), + 86: uint16(32044), + 87: uint16(32045), + 88: uint16(32046), + 89: uint16(32048), + 90: uint16(32049), + 91: uint16(32050), + 92: uint16(32051), + 93: uint16(32052), + 94: uint16(32053), + 95: uint16(32054), + 96: uint16(32908), + 97: uint16(39269), + 98: uint16(36857), + 99: uint16(28608), + 100: uint16(35749), + 101: uint16(40481), + 102: uint16(23020), + 103: uint16(32489), + 104: uint16(32521), + 105: uint16(21513), + 106: uint16(26497), + 107: uint16(26840), + 108: uint16(36753), + 109: uint16(31821), + 110: uint16(38598), + 111: uint16(21450), + 112: uint16(24613), + 113: uint16(30142), + 114: uint16(27762), + 115: uint16(21363), + 116: uint16(23241), + 117: uint16(32423), + 118: uint16(25380), + 119: uint16(20960), + 120: uint16(33034), + 121: uint16(24049), + 122: uint16(34015), + 123: uint16(25216), + 124: uint16(20864), + 125: uint16(23395), + 126: uint16(20238), + 127: uint16(31085), + 128: uint16(21058), + 129: uint16(24760), + 130: uint16(27982), + 131: uint16(23492), + 132: uint16(23490), + 133: uint16(35745), + 134: uint16(35760), + 135: uint16(26082), + 136: uint16(24524), + 137: uint16(38469), + 138: uint16(22931), + 139: uint16(32487), + 140: uint16(32426), + 141: uint16(22025), + 142: uint16(26551), + 143: uint16(22841), + 144: uint16(20339), + 145: uint16(23478), + 146: uint16(21152), + 147: uint16(33626), + 148: uint16(39050), + 149: uint16(36158), + 150: uint16(30002), + 151: uint16(38078), + 152: uint16(20551), + 153: uint16(31292), + 154: uint16(20215), + 155: uint16(26550), + 156: uint16(39550), + 157: uint16(23233), + 158: uint16(27516), + 159: uint16(30417), + 160: uint16(22362), + 161: uint16(23574), + 162: uint16(31546), + 163: uint16(38388), + 164: uint16(29006), + 165: uint16(20860), + 166: uint16(32937), + 167: uint16(33392), + 168: uint16(22904), + 169: uint16(32516), + 170: uint16(33575), + 171: uint16(26816), + 172: uint16(26604), + 173: uint16(30897), + 174: uint16(30839), + 175: uint16(25315), + 176: uint16(25441), + 177: uint16(31616), + 178: uint16(20461), + 179: uint16(21098), + 180: uint16(20943), + 181: uint16(33616), + 182: uint16(27099), + 183: uint16(37492), + 184: uint16(36341), + 185: uint16(36145), + 186: uint16(35265), + 187: uint16(38190), + 188: uint16(31661), + 189: uint16(20214), + }, + 60: { + 0: uint16(32055), + 1: uint16(32056), + 2: uint16(32057), + 3: uint16(32058), + 4: uint16(32059), + 5: uint16(32060), + 6: uint16(32061), + 7: uint16(32062), + 8: uint16(32063), + 9: uint16(32064), + 10: uint16(32065), + 11: uint16(32066), + 12: uint16(32067), + 13: uint16(32068), + 14: uint16(32069), + 15: uint16(32070), + 16: uint16(32071), + 17: uint16(32072), + 18: uint16(32073), + 19: uint16(32074), + 20: uint16(32075), + 21: uint16(32076), + 22: uint16(32077), + 23: uint16(32078), + 24: uint16(32079), + 25: uint16(32080), + 26: uint16(32081), + 27: uint16(32082), + 28: uint16(32083), + 29: uint16(32084), + 30: uint16(32085), + 31: uint16(32086), + 32: uint16(32087), + 33: uint16(32088), + 34: uint16(32089), + 35: uint16(32090), + 36: uint16(32091), + 37: uint16(32092), + 38: uint16(32093), + 39: uint16(32094), + 40: uint16(32095), + 41: uint16(32096), + 42: uint16(32097), + 43: uint16(32098), + 44: uint16(32099), + 45: uint16(32100), + 46: uint16(32101), + 47: uint16(32102), + 48: uint16(32103), + 49: uint16(32104), + 50: uint16(32105), + 51: uint16(32106), + 52: uint16(32107), + 53: uint16(32108), + 54: uint16(32109), + 55: uint16(32111), + 56: uint16(32112), + 57: uint16(32113), + 58: uint16(32114), + 59: uint16(32115), + 60: uint16(32116), + 61: uint16(32117), + 62: uint16(32118), + 63: uint16(32120), + 64: uint16(32121), + 65: uint16(32122), + 66: uint16(32123), + 67: uint16(32124), + 68: uint16(32125), + 69: uint16(32126), + 70: uint16(32127), + 71: uint16(32128), + 72: uint16(32129), + 73: uint16(32130), + 74: uint16(32131), + 75: uint16(32132), + 76: uint16(32133), + 77: uint16(32134), + 78: uint16(32135), + 79: uint16(32136), + 80: uint16(32137), + 81: uint16(32138), + 82: uint16(32139), + 83: uint16(32140), + 84: uint16(32141), + 85: uint16(32142), + 86: uint16(32143), + 87: uint16(32144), + 88: uint16(32145), + 89: uint16(32146), + 90: uint16(32147), + 91: uint16(32148), + 92: uint16(32149), + 93: uint16(32150), + 94: uint16(32151), + 95: uint16(32152), + 96: uint16(20581), + 97: uint16(33328), + 98: uint16(21073), + 99: uint16(39279), + 100: uint16(28176), + 101: uint16(28293), + 102: uint16(28071), + 103: uint16(24314), + 104: uint16(20725), + 105: uint16(23004), + 106: uint16(23558), + 107: uint16(27974), + 108: uint16(27743), + 109: uint16(30086), + 110: uint16(33931), + 111: uint16(26728), + 112: uint16(22870), + 113: uint16(35762), + 114: uint16(21280), + 115: uint16(37233), + 116: uint16(38477), + 117: uint16(34121), + 118: uint16(26898), + 119: uint16(30977), + 120: uint16(28966), + 121: uint16(33014), + 122: uint16(20132), + 123: uint16(37066), + 124: uint16(27975), + 125: uint16(39556), + 126: uint16(23047), + 127: uint16(22204), + 128: uint16(25605), + 129: uint16(38128), + 130: uint16(30699), + 131: uint16(20389), + 132: uint16(33050), + 133: uint16(29409), + 134: uint16(35282), + 135: uint16(39290), + 136: uint16(32564), + 137: uint16(32478), + 138: uint16(21119), + 139: uint16(25945), + 140: uint16(37237), + 141: uint16(36735), + 142: uint16(36739), + 143: uint16(21483), + 144: uint16(31382), + 145: uint16(25581), + 146: uint16(25509), + 147: uint16(30342), + 148: uint16(31224), + 149: uint16(34903), + 150: uint16(38454), + 151: uint16(25130), + 152: uint16(21163), + 153: uint16(33410), + 154: uint16(26708), + 155: uint16(26480), + 156: uint16(25463), + 157: uint16(30571), + 158: uint16(31469), + 159: uint16(27905), + 160: uint16(32467), + 161: uint16(35299), + 162: uint16(22992), + 163: uint16(25106), + 164: uint16(34249), + 165: uint16(33445), + 166: uint16(30028), + 167: uint16(20511), + 168: uint16(20171), + 169: uint16(30117), + 170: uint16(35819), + 171: uint16(23626), + 172: uint16(24062), + 173: uint16(31563), + 174: uint16(26020), + 175: uint16(37329), + 176: uint16(20170), + 177: uint16(27941), + 178: uint16(35167), + 179: uint16(32039), + 180: uint16(38182), + 181: uint16(20165), + 182: uint16(35880), + 183: uint16(36827), + 184: uint16(38771), + 185: uint16(26187), + 186: uint16(31105), + 187: uint16(36817), + 188: uint16(28908), + 189: uint16(28024), + }, + 61: { + 0: uint16(32153), + 1: uint16(32154), + 2: uint16(32155), + 3: uint16(32156), + 4: uint16(32157), + 5: uint16(32158), + 6: uint16(32159), + 7: uint16(32160), + 8: uint16(32161), + 9: uint16(32162), + 10: uint16(32163), + 11: uint16(32164), + 12: uint16(32165), + 13: uint16(32167), + 14: uint16(32168), + 15: uint16(32169), + 16: uint16(32170), + 17: uint16(32171), + 18: uint16(32172), + 19: uint16(32173), + 20: uint16(32175), + 21: uint16(32176), + 22: uint16(32177), + 23: uint16(32178), + 24: uint16(32179), + 25: uint16(32180), + 26: uint16(32181), + 27: uint16(32182), + 28: uint16(32183), + 29: uint16(32184), + 30: uint16(32185), + 31: uint16(32186), + 32: uint16(32187), + 33: uint16(32188), + 34: uint16(32189), + 35: uint16(32190), + 36: uint16(32191), + 37: uint16(32192), + 38: uint16(32193), + 39: uint16(32194), + 40: uint16(32195), + 41: uint16(32196), + 42: uint16(32197), + 43: uint16(32198), + 44: uint16(32199), + 45: uint16(32200), + 46: uint16(32201), + 47: uint16(32202), + 48: uint16(32203), + 49: uint16(32204), + 50: uint16(32205), + 51: uint16(32206), + 52: uint16(32207), + 53: uint16(32208), + 54: uint16(32209), + 55: uint16(32210), + 56: uint16(32211), + 57: uint16(32212), + 58: uint16(32213), + 59: uint16(32214), + 60: uint16(32215), + 61: uint16(32216), + 62: uint16(32217), + 63: uint16(32218), + 64: uint16(32219), + 65: uint16(32220), + 66: uint16(32221), + 67: uint16(32222), + 68: uint16(32223), + 69: uint16(32224), + 70: uint16(32225), + 71: uint16(32226), + 72: uint16(32227), + 73: uint16(32228), + 74: uint16(32229), + 75: uint16(32230), + 76: uint16(32231), + 77: uint16(32232), + 78: uint16(32233), + 79: uint16(32234), + 80: uint16(32235), + 81: uint16(32236), + 82: uint16(32237), + 83: uint16(32238), + 84: uint16(32239), + 85: uint16(32240), + 86: uint16(32241), + 87: uint16(32242), + 88: uint16(32243), + 89: uint16(32244), + 90: uint16(32245), + 91: uint16(32246), + 92: uint16(32247), + 93: uint16(32248), + 94: uint16(32249), + 95: uint16(32250), + 96: uint16(23613), + 97: uint16(21170), + 98: uint16(33606), + 99: uint16(20834), + 100: uint16(33550), + 101: uint16(30555), + 102: uint16(26230), + 103: uint16(40120), + 104: uint16(20140), + 105: uint16(24778), + 106: uint16(31934), + 107: uint16(31923), + 108: uint16(32463), + 109: uint16(20117), + 110: uint16(35686), + 111: uint16(26223), + 112: uint16(39048), + 113: uint16(38745), + 114: uint16(22659), + 115: uint16(25964), + 116: uint16(38236), + 117: uint16(24452), + 118: uint16(30153), + 119: uint16(38742), + 120: uint16(31455), + 121: uint16(31454), + 122: uint16(20928), + 123: uint16(28847), + 124: uint16(31384), + 125: uint16(25578), + 126: uint16(31350), + 127: uint16(32416), + 128: uint16(29590), + 129: uint16(38893), + 130: uint16(20037), + 131: uint16(28792), + 132: uint16(20061), + 133: uint16(37202), + 134: uint16(21417), + 135: uint16(25937), + 136: uint16(26087), + 137: uint16(33276), + 138: uint16(33285), + 139: uint16(21646), + 140: uint16(23601), + 141: uint16(30106), + 142: uint16(38816), + 143: uint16(25304), + 144: uint16(29401), + 145: uint16(30141), + 146: uint16(23621), + 147: uint16(39545), + 148: uint16(33738), + 149: uint16(23616), + 150: uint16(21632), + 151: uint16(30697), + 152: uint16(20030), + 153: uint16(27822), + 154: uint16(32858), + 155: uint16(25298), + 156: uint16(25454), + 157: uint16(24040), + 158: uint16(20855), + 159: uint16(36317), + 160: uint16(36382), + 161: uint16(38191), + 162: uint16(20465), + 163: uint16(21477), + 164: uint16(24807), + 165: uint16(28844), + 166: uint16(21095), + 167: uint16(25424), + 168: uint16(40515), + 169: uint16(23071), + 170: uint16(20518), + 171: uint16(30519), + 172: uint16(21367), + 173: uint16(32482), + 174: uint16(25733), + 175: uint16(25899), + 176: uint16(25225), + 177: uint16(25496), + 178: uint16(20500), + 179: uint16(29237), + 180: uint16(35273), + 181: uint16(20915), + 182: uint16(35776), + 183: uint16(32477), + 184: uint16(22343), + 185: uint16(33740), + 186: uint16(38055), + 187: uint16(20891), + 188: uint16(21531), + 189: uint16(23803), + }, + 62: { + 0: uint16(32251), + 1: uint16(32252), + 2: uint16(32253), + 3: uint16(32254), + 4: uint16(32255), + 5: uint16(32256), + 6: uint16(32257), + 7: uint16(32258), + 8: uint16(32259), + 9: uint16(32260), + 10: uint16(32261), + 11: uint16(32262), + 12: uint16(32263), + 13: uint16(32264), + 14: uint16(32265), + 15: uint16(32266), + 16: uint16(32267), + 17: uint16(32268), + 18: uint16(32269), + 19: uint16(32270), + 20: uint16(32271), + 21: uint16(32272), + 22: uint16(32273), + 23: uint16(32274), + 24: uint16(32275), + 25: uint16(32276), + 26: uint16(32277), + 27: uint16(32278), + 28: uint16(32279), + 29: uint16(32280), + 30: uint16(32281), + 31: uint16(32282), + 32: uint16(32283), + 33: uint16(32284), + 34: uint16(32285), + 35: uint16(32286), + 36: uint16(32287), + 37: uint16(32288), + 38: uint16(32289), + 39: uint16(32290), + 40: uint16(32291), + 41: uint16(32292), + 42: uint16(32293), + 43: uint16(32294), + 44: uint16(32295), + 45: uint16(32296), + 46: uint16(32297), + 47: uint16(32298), + 48: uint16(32299), + 49: uint16(32300), + 50: uint16(32301), + 51: uint16(32302), + 52: uint16(32303), + 53: uint16(32304), + 54: uint16(32305), + 55: uint16(32306), + 56: uint16(32307), + 57: uint16(32308), + 58: uint16(32309), + 59: uint16(32310), + 60: uint16(32311), + 61: uint16(32312), + 62: uint16(32313), + 63: uint16(32314), + 64: uint16(32316), + 65: uint16(32317), + 66: uint16(32318), + 67: uint16(32319), + 68: uint16(32320), + 69: uint16(32322), + 70: uint16(32323), + 71: uint16(32324), + 72: uint16(32325), + 73: uint16(32326), + 74: uint16(32328), + 75: uint16(32329), + 76: uint16(32330), + 77: uint16(32331), + 78: uint16(32332), + 79: uint16(32333), + 80: uint16(32334), + 81: uint16(32335), + 82: uint16(32336), + 83: uint16(32337), + 84: uint16(32338), + 85: uint16(32339), + 86: uint16(32340), + 87: uint16(32341), + 88: uint16(32342), + 89: uint16(32343), + 90: uint16(32344), + 91: uint16(32345), + 92: uint16(32346), + 93: uint16(32347), + 94: uint16(32348), + 95: uint16(32349), + 96: uint16(20426), + 97: uint16(31459), + 98: uint16(27994), + 99: uint16(37089), + 100: uint16(39567), + 101: uint16(21888), + 102: uint16(21654), + 103: uint16(21345), + 104: uint16(21679), + 105: uint16(24320), + 106: uint16(25577), + 107: uint16(26999), + 108: uint16(20975), + 109: uint16(24936), + 110: uint16(21002), + 111: uint16(22570), + 112: uint16(21208), + 113: uint16(22350), + 114: uint16(30733), + 115: uint16(30475), + 116: uint16(24247), + 117: uint16(24951), + 118: uint16(31968), + 119: uint16(25179), + 120: uint16(25239), + 121: uint16(20130), + 122: uint16(28821), + 123: uint16(32771), + 124: uint16(25335), + 125: uint16(28900), + 126: uint16(38752), + 127: uint16(22391), + 128: uint16(33499), + 129: uint16(26607), + 130: uint16(26869), + 131: uint16(30933), + 132: uint16(39063), + 133: uint16(31185), + 134: uint16(22771), + 135: uint16(21683), + 136: uint16(21487), + 137: uint16(28212), + 138: uint16(20811), + 139: uint16(21051), + 140: uint16(23458), + 141: uint16(35838), + 142: uint16(32943), + 143: uint16(21827), + 144: uint16(22438), + 145: uint16(24691), + 146: uint16(22353), + 147: uint16(21549), + 148: uint16(31354), + 149: uint16(24656), + 150: uint16(23380), + 151: uint16(25511), + 152: uint16(25248), + 153: uint16(21475), + 154: uint16(25187), + 155: uint16(23495), + 156: uint16(26543), + 157: uint16(21741), + 158: uint16(31391), + 159: uint16(33510), + 160: uint16(37239), + 161: uint16(24211), + 162: uint16(35044), + 163: uint16(22840), + 164: uint16(22446), + 165: uint16(25358), + 166: uint16(36328), + 167: uint16(33007), + 168: uint16(22359), + 169: uint16(31607), + 170: uint16(20393), + 171: uint16(24555), + 172: uint16(23485), + 173: uint16(27454), + 174: uint16(21281), + 175: uint16(31568), + 176: uint16(29378), + 177: uint16(26694), + 178: uint16(30719), + 179: uint16(30518), + 180: uint16(26103), + 181: uint16(20917), + 182: uint16(20111), + 183: uint16(30420), + 184: uint16(23743), + 185: uint16(31397), + 186: uint16(33909), + 187: uint16(22862), + 188: uint16(39745), + 189: uint16(20608), + }, + 63: { + 0: uint16(32350), + 1: uint16(32351), + 2: uint16(32352), + 3: uint16(32353), + 4: uint16(32354), + 5: uint16(32355), + 6: uint16(32356), + 7: uint16(32357), + 8: uint16(32358), + 9: uint16(32359), + 10: uint16(32360), + 11: uint16(32361), + 12: uint16(32362), + 13: uint16(32363), + 14: uint16(32364), + 15: uint16(32365), + 16: uint16(32366), + 17: uint16(32367), + 18: uint16(32368), + 19: uint16(32369), + 20: uint16(32370), + 21: uint16(32371), + 22: uint16(32372), + 23: uint16(32373), + 24: uint16(32374), + 25: uint16(32375), + 26: uint16(32376), + 27: uint16(32377), + 28: uint16(32378), + 29: uint16(32379), + 30: uint16(32380), + 31: uint16(32381), + 32: uint16(32382), + 33: uint16(32383), + 34: uint16(32384), + 35: uint16(32385), + 36: uint16(32387), + 37: uint16(32388), + 38: uint16(32389), + 39: uint16(32390), + 40: uint16(32391), + 41: uint16(32392), + 42: uint16(32393), + 43: uint16(32394), + 44: uint16(32395), + 45: uint16(32396), + 46: uint16(32397), + 47: uint16(32398), + 48: uint16(32399), + 49: uint16(32400), + 50: uint16(32401), + 51: uint16(32402), + 52: uint16(32403), + 53: uint16(32404), + 54: uint16(32405), + 55: uint16(32406), + 56: uint16(32407), + 57: uint16(32408), + 58: uint16(32409), + 59: uint16(32410), + 60: uint16(32412), + 61: uint16(32413), + 62: uint16(32414), + 63: uint16(32430), + 64: uint16(32436), + 65: uint16(32443), + 66: uint16(32444), + 67: uint16(32470), + 68: uint16(32484), + 69: uint16(32492), + 70: uint16(32505), + 71: uint16(32522), + 72: uint16(32528), + 73: uint16(32542), + 74: uint16(32567), + 75: uint16(32569), + 76: uint16(32571), + 77: uint16(32572), + 78: uint16(32573), + 79: uint16(32574), + 80: uint16(32575), + 81: uint16(32576), + 82: uint16(32577), + 83: uint16(32579), + 84: uint16(32582), + 85: uint16(32583), + 86: uint16(32584), + 87: uint16(32585), + 88: uint16(32586), + 89: uint16(32587), + 90: uint16(32588), + 91: uint16(32589), + 92: uint16(32590), + 93: uint16(32591), + 94: uint16(32594), + 95: uint16(32595), + 96: uint16(39304), + 97: uint16(24871), + 98: uint16(28291), + 99: uint16(22372), + 100: uint16(26118), + 101: uint16(25414), + 102: uint16(22256), + 103: uint16(25324), + 104: uint16(25193), + 105: uint16(24275), + 106: uint16(38420), + 107: uint16(22403), + 108: uint16(25289), + 109: uint16(21895), + 110: uint16(34593), + 111: uint16(33098), + 112: uint16(36771), + 113: uint16(21862), + 114: uint16(33713), + 115: uint16(26469), + 116: uint16(36182), + 117: uint16(34013), + 118: uint16(23146), + 119: uint16(26639), + 120: uint16(25318), + 121: uint16(31726), + 122: uint16(38417), + 123: uint16(20848), + 124: uint16(28572), + 125: uint16(35888), + 126: uint16(25597), + 127: uint16(35272), + 128: uint16(25042), + 129: uint16(32518), + 130: uint16(28866), + 131: uint16(28389), + 132: uint16(29701), + 133: uint16(27028), + 134: uint16(29436), + 135: uint16(24266), + 136: uint16(37070), + 137: uint16(26391), + 138: uint16(28010), + 139: uint16(25438), + 140: uint16(21171), + 141: uint16(29282), + 142: uint16(32769), + 143: uint16(20332), + 144: uint16(23013), + 145: uint16(37226), + 146: uint16(28889), + 147: uint16(28061), + 148: uint16(21202), + 149: uint16(20048), + 150: uint16(38647), + 151: uint16(38253), + 152: uint16(34174), + 153: uint16(30922), + 154: uint16(32047), + 155: uint16(20769), + 156: uint16(22418), + 157: uint16(25794), + 158: uint16(32907), + 159: uint16(31867), + 160: uint16(27882), + 161: uint16(26865), + 162: uint16(26974), + 163: uint16(20919), + 164: uint16(21400), + 165: uint16(26792), + 166: uint16(29313), + 167: uint16(40654), + 168: uint16(31729), + 169: uint16(29432), + 170: uint16(31163), + 171: uint16(28435), + 172: uint16(29702), + 173: uint16(26446), + 174: uint16(37324), + 175: uint16(40100), + 176: uint16(31036), + 177: uint16(33673), + 178: uint16(33620), + 179: uint16(21519), + 180: uint16(26647), + 181: uint16(20029), + 182: uint16(21385), + 183: uint16(21169), + 184: uint16(30782), + 185: uint16(21382), + 186: uint16(21033), + 187: uint16(20616), + 188: uint16(20363), + 189: uint16(20432), + }, + 64: { + 0: uint16(32598), + 1: uint16(32601), + 2: uint16(32603), + 3: uint16(32604), + 4: uint16(32605), + 5: uint16(32606), + 6: uint16(32608), + 7: uint16(32611), + 8: uint16(32612), + 9: uint16(32613), + 10: uint16(32614), + 11: uint16(32615), + 12: uint16(32619), + 13: uint16(32620), + 14: uint16(32621), + 15: uint16(32623), + 16: uint16(32624), + 17: uint16(32627), + 18: uint16(32629), + 19: uint16(32630), + 20: uint16(32631), + 21: uint16(32632), + 22: uint16(32634), + 23: uint16(32635), + 24: uint16(32636), + 25: uint16(32637), + 26: uint16(32639), + 27: uint16(32640), + 28: uint16(32642), + 29: uint16(32643), + 30: uint16(32644), + 31: uint16(32645), + 32: uint16(32646), + 33: uint16(32647), + 34: uint16(32648), + 35: uint16(32649), + 36: uint16(32651), + 37: uint16(32653), + 38: uint16(32655), + 39: uint16(32656), + 40: uint16(32657), + 41: uint16(32658), + 42: uint16(32659), + 43: uint16(32661), + 44: uint16(32662), + 45: uint16(32663), + 46: uint16(32664), + 47: uint16(32665), + 48: uint16(32667), + 49: uint16(32668), + 50: uint16(32672), + 51: uint16(32674), + 52: uint16(32675), + 53: uint16(32677), + 54: uint16(32678), + 55: uint16(32680), + 56: uint16(32681), + 57: uint16(32682), + 58: uint16(32683), + 59: uint16(32684), + 60: uint16(32685), + 61: uint16(32686), + 62: uint16(32689), + 63: uint16(32691), + 64: uint16(32692), + 65: uint16(32693), + 66: uint16(32694), + 67: uint16(32695), + 68: uint16(32698), + 69: uint16(32699), + 70: uint16(32702), + 71: uint16(32704), + 72: uint16(32706), + 73: uint16(32707), + 74: uint16(32708), + 75: uint16(32710), + 76: uint16(32711), + 77: uint16(32712), + 78: uint16(32713), + 79: uint16(32715), + 80: uint16(32717), + 81: uint16(32719), + 82: uint16(32720), + 83: uint16(32721), + 84: uint16(32722), + 85: uint16(32723), + 86: uint16(32726), + 87: uint16(32727), + 88: uint16(32729), + 89: uint16(32730), + 90: uint16(32731), + 91: uint16(32732), + 92: uint16(32733), + 93: uint16(32734), + 94: uint16(32738), + 95: uint16(32739), + 96: uint16(30178), + 97: uint16(31435), + 98: uint16(31890), + 99: uint16(27813), + 100: uint16(38582), + 101: uint16(21147), + 102: uint16(29827), + 103: uint16(21737), + 104: uint16(20457), + 105: uint16(32852), + 106: uint16(33714), + 107: uint16(36830), + 108: uint16(38256), + 109: uint16(24265), + 110: uint16(24604), + 111: uint16(28063), + 112: uint16(24088), + 113: uint16(25947), + 114: uint16(33080), + 115: uint16(38142), + 116: uint16(24651), + 117: uint16(28860), + 118: uint16(32451), + 119: uint16(31918), + 120: uint16(20937), + 121: uint16(26753), + 122: uint16(31921), + 123: uint16(33391), + 124: uint16(20004), + 125: uint16(36742), + 126: uint16(37327), + 127: uint16(26238), + 128: uint16(20142), + 129: uint16(35845), + 130: uint16(25769), + 131: uint16(32842), + 132: uint16(20698), + 133: uint16(30103), + 134: uint16(29134), + 135: uint16(23525), + 136: uint16(36797), + 137: uint16(28518), + 138: uint16(20102), + 139: uint16(25730), + 140: uint16(38243), + 141: uint16(24278), + 142: uint16(26009), + 143: uint16(21015), + 144: uint16(35010), + 145: uint16(28872), + 146: uint16(21155), + 147: uint16(29454), + 148: uint16(29747), + 149: uint16(26519), + 150: uint16(30967), + 151: uint16(38678), + 152: uint16(20020), + 153: uint16(37051), + 154: uint16(40158), + 155: uint16(28107), + 156: uint16(20955), + 157: uint16(36161), + 158: uint16(21533), + 159: uint16(25294), + 160: uint16(29618), + 161: uint16(33777), + 162: uint16(38646), + 163: uint16(40836), + 164: uint16(38083), + 165: uint16(20278), + 166: uint16(32666), + 167: uint16(20940), + 168: uint16(28789), + 169: uint16(38517), + 170: uint16(23725), + 171: uint16(39046), + 172: uint16(21478), + 173: uint16(20196), + 174: uint16(28316), + 175: uint16(29705), + 176: uint16(27060), + 177: uint16(30827), + 178: uint16(39311), + 179: uint16(30041), + 180: uint16(21016), + 181: uint16(30244), + 182: uint16(27969), + 183: uint16(26611), + 184: uint16(20845), + 185: uint16(40857), + 186: uint16(32843), + 187: uint16(21657), + 188: uint16(31548), + 189: uint16(31423), + }, + 65: { + 0: uint16(32740), + 1: uint16(32743), + 2: uint16(32744), + 3: uint16(32746), + 4: uint16(32747), + 5: uint16(32748), + 6: uint16(32749), + 7: uint16(32751), + 8: uint16(32754), + 9: uint16(32756), + 10: uint16(32757), + 11: uint16(32758), + 12: uint16(32759), + 13: uint16(32760), + 14: uint16(32761), + 15: uint16(32762), + 16: uint16(32765), + 17: uint16(32766), + 18: uint16(32767), + 19: uint16(32770), + 20: uint16(32775), + 21: uint16(32776), + 22: uint16(32777), + 23: uint16(32778), + 24: uint16(32782), + 25: uint16(32783), + 26: uint16(32785), + 27: uint16(32787), + 28: uint16(32794), + 29: uint16(32795), + 30: uint16(32797), + 31: uint16(32798), + 32: uint16(32799), + 33: uint16(32801), + 34: uint16(32803), + 35: uint16(32804), + 36: uint16(32811), + 37: uint16(32812), + 38: uint16(32813), + 39: uint16(32814), + 40: uint16(32815), + 41: uint16(32816), + 42: uint16(32818), + 43: uint16(32820), + 44: uint16(32825), + 45: uint16(32826), + 46: uint16(32828), + 47: uint16(32830), + 48: uint16(32832), + 49: uint16(32833), + 50: uint16(32836), + 51: uint16(32837), + 52: uint16(32839), + 53: uint16(32840), + 54: uint16(32841), + 55: uint16(32846), + 56: uint16(32847), + 57: uint16(32848), + 58: uint16(32849), + 59: uint16(32851), + 60: uint16(32853), + 61: uint16(32854), + 62: uint16(32855), + 63: uint16(32857), + 64: uint16(32859), + 65: uint16(32860), + 66: uint16(32861), + 67: uint16(32862), + 68: uint16(32863), + 69: uint16(32864), + 70: uint16(32865), + 71: uint16(32866), + 72: uint16(32867), + 73: uint16(32868), + 74: uint16(32869), + 75: uint16(32870), + 76: uint16(32871), + 77: uint16(32872), + 78: uint16(32875), + 79: uint16(32876), + 80: uint16(32877), + 81: uint16(32878), + 82: uint16(32879), + 83: uint16(32880), + 84: uint16(32882), + 85: uint16(32883), + 86: uint16(32884), + 87: uint16(32885), + 88: uint16(32886), + 89: uint16(32887), + 90: uint16(32888), + 91: uint16(32889), + 92: uint16(32890), + 93: uint16(32891), + 94: uint16(32892), + 95: uint16(32893), + 96: uint16(38534), + 97: uint16(22404), + 98: uint16(25314), + 99: uint16(38471), + 100: uint16(27004), + 101: uint16(23044), + 102: uint16(25602), + 103: uint16(31699), + 104: uint16(28431), + 105: uint16(38475), + 106: uint16(33446), + 107: uint16(21346), + 108: uint16(39045), + 109: uint16(24208), + 110: uint16(28809), + 111: uint16(25523), + 112: uint16(21348), + 113: uint16(34383), + 114: uint16(40065), + 115: uint16(40595), + 116: uint16(30860), + 117: uint16(38706), + 118: uint16(36335), + 119: uint16(36162), + 120: uint16(40575), + 121: uint16(28510), + 122: uint16(31108), + 123: uint16(24405), + 124: uint16(38470), + 125: uint16(25134), + 126: uint16(39540), + 127: uint16(21525), + 128: uint16(38109), + 129: uint16(20387), + 130: uint16(26053), + 131: uint16(23653), + 132: uint16(23649), + 133: uint16(32533), + 134: uint16(34385), + 135: uint16(27695), + 136: uint16(24459), + 137: uint16(29575), + 138: uint16(28388), + 139: uint16(32511), + 140: uint16(23782), + 141: uint16(25371), + 142: uint16(23402), + 143: uint16(28390), + 144: uint16(21365), + 145: uint16(20081), + 146: uint16(25504), + 147: uint16(30053), + 148: uint16(25249), + 149: uint16(36718), + 150: uint16(20262), + 151: uint16(20177), + 152: uint16(27814), + 153: uint16(32438), + 154: uint16(35770), + 155: uint16(33821), + 156: uint16(34746), + 157: uint16(32599), + 158: uint16(36923), + 159: uint16(38179), + 160: uint16(31657), + 161: uint16(39585), + 162: uint16(35064), + 163: uint16(33853), + 164: uint16(27931), + 165: uint16(39558), + 166: uint16(32476), + 167: uint16(22920), + 168: uint16(40635), + 169: uint16(29595), + 170: uint16(30721), + 171: uint16(34434), + 172: uint16(39532), + 173: uint16(39554), + 174: uint16(22043), + 175: uint16(21527), + 176: uint16(22475), + 177: uint16(20080), + 178: uint16(40614), + 179: uint16(21334), + 180: uint16(36808), + 181: uint16(33033), + 182: uint16(30610), + 183: uint16(39314), + 184: uint16(34542), + 185: uint16(28385), + 186: uint16(34067), + 187: uint16(26364), + 188: uint16(24930), + 189: uint16(28459), + }, + 66: { + 0: uint16(32894), + 1: uint16(32897), + 2: uint16(32898), + 3: uint16(32901), + 4: uint16(32904), + 5: uint16(32906), + 6: uint16(32909), + 7: uint16(32910), + 8: uint16(32911), + 9: uint16(32912), + 10: uint16(32913), + 11: uint16(32914), + 12: uint16(32916), + 13: uint16(32917), + 14: uint16(32919), + 15: uint16(32921), + 16: uint16(32926), + 17: uint16(32931), + 18: uint16(32934), + 19: uint16(32935), + 20: uint16(32936), + 21: uint16(32940), + 22: uint16(32944), + 23: uint16(32947), + 24: uint16(32949), + 25: uint16(32950), + 26: uint16(32952), + 27: uint16(32953), + 28: uint16(32955), + 29: uint16(32965), + 30: uint16(32967), + 31: uint16(32968), + 32: uint16(32969), + 33: uint16(32970), + 34: uint16(32971), + 35: uint16(32975), + 36: uint16(32976), + 37: uint16(32977), + 38: uint16(32978), + 39: uint16(32979), + 40: uint16(32980), + 41: uint16(32981), + 42: uint16(32984), + 43: uint16(32991), + 44: uint16(32992), + 45: uint16(32994), + 46: uint16(32995), + 47: uint16(32998), + 48: uint16(33006), + 49: uint16(33013), + 50: uint16(33015), + 51: uint16(33017), + 52: uint16(33019), + 53: uint16(33022), + 54: uint16(33023), + 55: uint16(33024), + 56: uint16(33025), + 57: uint16(33027), + 58: uint16(33028), + 59: uint16(33029), + 60: uint16(33031), + 61: uint16(33032), + 62: uint16(33035), + 63: uint16(33036), + 64: uint16(33045), + 65: uint16(33047), + 66: uint16(33049), + 67: uint16(33051), + 68: uint16(33052), + 69: uint16(33053), + 70: uint16(33055), + 71: uint16(33056), + 72: uint16(33057), + 73: uint16(33058), + 74: uint16(33059), + 75: uint16(33060), + 76: uint16(33061), + 77: uint16(33062), + 78: uint16(33063), + 79: uint16(33064), + 80: uint16(33065), + 81: uint16(33066), + 82: uint16(33067), + 83: uint16(33069), + 84: uint16(33070), + 85: uint16(33072), + 86: uint16(33075), + 87: uint16(33076), + 88: uint16(33077), + 89: uint16(33079), + 90: uint16(33081), + 91: uint16(33082), + 92: uint16(33083), + 93: uint16(33084), + 94: uint16(33085), + 95: uint16(33087), + 96: uint16(35881), + 97: uint16(33426), + 98: uint16(33579), + 99: uint16(30450), + 100: uint16(27667), + 101: uint16(24537), + 102: uint16(33725), + 103: uint16(29483), + 104: uint16(33541), + 105: uint16(38170), + 106: uint16(27611), + 107: uint16(30683), + 108: uint16(38086), + 109: uint16(21359), + 110: uint16(33538), + 111: uint16(20882), + 112: uint16(24125), + 113: uint16(35980), + 114: uint16(36152), + 115: uint16(20040), + 116: uint16(29611), + 117: uint16(26522), + 118: uint16(26757), + 119: uint16(37238), + 120: uint16(38665), + 121: uint16(29028), + 122: uint16(27809), + 123: uint16(30473), + 124: uint16(23186), + 125: uint16(38209), + 126: uint16(27599), + 127: uint16(32654), + 128: uint16(26151), + 129: uint16(23504), + 130: uint16(22969), + 131: uint16(23194), + 132: uint16(38376), + 133: uint16(38391), + 134: uint16(20204), + 135: uint16(33804), + 136: uint16(33945), + 137: uint16(27308), + 138: uint16(30431), + 139: uint16(38192), + 140: uint16(29467), + 141: uint16(26790), + 142: uint16(23391), + 143: uint16(30511), + 144: uint16(37274), + 145: uint16(38753), + 146: uint16(31964), + 147: uint16(36855), + 148: uint16(35868), + 149: uint16(24357), + 150: uint16(31859), + 151: uint16(31192), + 152: uint16(35269), + 153: uint16(27852), + 154: uint16(34588), + 155: uint16(23494), + 156: uint16(24130), + 157: uint16(26825), + 158: uint16(30496), + 159: uint16(32501), + 160: uint16(20885), + 161: uint16(20813), + 162: uint16(21193), + 163: uint16(23081), + 164: uint16(32517), + 165: uint16(38754), + 166: uint16(33495), + 167: uint16(25551), + 168: uint16(30596), + 169: uint16(34256), + 170: uint16(31186), + 171: uint16(28218), + 172: uint16(24217), + 173: uint16(22937), + 174: uint16(34065), + 175: uint16(28781), + 176: uint16(27665), + 177: uint16(25279), + 178: uint16(30399), + 179: uint16(25935), + 180: uint16(24751), + 181: uint16(38397), + 182: uint16(26126), + 183: uint16(34719), + 184: uint16(40483), + 185: uint16(38125), + 186: uint16(21517), + 187: uint16(21629), + 188: uint16(35884), + 189: uint16(25720), + }, + 67: { + 0: uint16(33088), + 1: uint16(33089), + 2: uint16(33090), + 3: uint16(33091), + 4: uint16(33092), + 5: uint16(33093), + 6: uint16(33095), + 7: uint16(33097), + 8: uint16(33101), + 9: uint16(33102), + 10: uint16(33103), + 11: uint16(33106), + 12: uint16(33110), + 13: uint16(33111), + 14: uint16(33112), + 15: uint16(33115), + 16: uint16(33116), + 17: uint16(33117), + 18: uint16(33118), + 19: uint16(33119), + 20: uint16(33121), + 21: uint16(33122), + 22: uint16(33123), + 23: uint16(33124), + 24: uint16(33126), + 25: uint16(33128), + 26: uint16(33130), + 27: uint16(33131), + 28: uint16(33132), + 29: uint16(33135), + 30: uint16(33138), + 31: uint16(33139), + 32: uint16(33141), + 33: uint16(33142), + 34: uint16(33143), + 35: uint16(33144), + 36: uint16(33153), + 37: uint16(33155), + 38: uint16(33156), + 39: uint16(33157), + 40: uint16(33158), + 41: uint16(33159), + 42: uint16(33161), + 43: uint16(33163), + 44: uint16(33164), + 45: uint16(33165), + 46: uint16(33166), + 47: uint16(33168), + 48: uint16(33170), + 49: uint16(33171), + 50: uint16(33172), + 51: uint16(33173), + 52: uint16(33174), + 53: uint16(33175), + 54: uint16(33177), + 55: uint16(33178), + 56: uint16(33182), + 57: uint16(33183), + 58: uint16(33184), + 59: uint16(33185), + 60: uint16(33186), + 61: uint16(33188), + 62: uint16(33189), + 63: uint16(33191), + 64: uint16(33193), + 65: uint16(33195), + 66: uint16(33196), + 67: uint16(33197), + 68: uint16(33198), + 69: uint16(33199), + 70: uint16(33200), + 71: uint16(33201), + 72: uint16(33202), + 73: uint16(33204), + 74: uint16(33205), + 75: uint16(33206), + 76: uint16(33207), + 77: uint16(33208), + 78: uint16(33209), + 79: uint16(33212), + 80: uint16(33213), + 81: uint16(33214), + 82: uint16(33215), + 83: uint16(33220), + 84: uint16(33221), + 85: uint16(33223), + 86: uint16(33224), + 87: uint16(33225), + 88: uint16(33227), + 89: uint16(33229), + 90: uint16(33230), + 91: uint16(33231), + 92: uint16(33232), + 93: uint16(33233), + 94: uint16(33234), + 95: uint16(33235), + 96: uint16(25721), + 97: uint16(34321), + 98: uint16(27169), + 99: uint16(33180), + 100: uint16(30952), + 101: uint16(25705), + 102: uint16(39764), + 103: uint16(25273), + 104: uint16(26411), + 105: uint16(33707), + 106: uint16(22696), + 107: uint16(40664), + 108: uint16(27819), + 109: uint16(28448), + 110: uint16(23518), + 111: uint16(38476), + 112: uint16(35851), + 113: uint16(29279), + 114: uint16(26576), + 115: uint16(25287), + 116: uint16(29281), + 117: uint16(20137), + 118: uint16(22982), + 119: uint16(27597), + 120: uint16(22675), + 121: uint16(26286), + 122: uint16(24149), + 123: uint16(21215), + 124: uint16(24917), + 125: uint16(26408), + 126: uint16(30446), + 127: uint16(30566), + 128: uint16(29287), + 129: uint16(31302), + 130: uint16(25343), + 131: uint16(21738), + 132: uint16(21584), + 133: uint16(38048), + 134: uint16(37027), + 135: uint16(23068), + 136: uint16(32435), + 137: uint16(27670), + 138: uint16(20035), + 139: uint16(22902), + 140: uint16(32784), + 141: uint16(22856), + 142: uint16(21335), + 143: uint16(30007), + 144: uint16(38590), + 145: uint16(22218), + 146: uint16(25376), + 147: uint16(33041), + 148: uint16(24700), + 149: uint16(38393), + 150: uint16(28118), + 151: uint16(21602), + 152: uint16(39297), + 153: uint16(20869), + 154: uint16(23273), + 155: uint16(33021), + 156: uint16(22958), + 157: uint16(38675), + 158: uint16(20522), + 159: uint16(27877), + 160: uint16(23612), + 161: uint16(25311), + 162: uint16(20320), + 163: uint16(21311), + 164: uint16(33147), + 165: uint16(36870), + 166: uint16(28346), + 167: uint16(34091), + 168: uint16(25288), + 169: uint16(24180), + 170: uint16(30910), + 171: uint16(25781), + 172: uint16(25467), + 173: uint16(24565), + 174: uint16(23064), + 175: uint16(37247), + 176: uint16(40479), + 177: uint16(23615), + 178: uint16(25423), + 179: uint16(32834), + 180: uint16(23421), + 181: uint16(21870), + 182: uint16(38218), + 183: uint16(38221), + 184: uint16(28037), + 185: uint16(24744), + 186: uint16(26592), + 187: uint16(29406), + 188: uint16(20957), + 189: uint16(23425), + }, + 68: { + 0: uint16(33236), + 1: uint16(33237), + 2: uint16(33238), + 3: uint16(33239), + 4: uint16(33240), + 5: uint16(33241), + 6: uint16(33242), + 7: uint16(33243), + 8: uint16(33244), + 9: uint16(33245), + 10: uint16(33246), + 11: uint16(33247), + 12: uint16(33248), + 13: uint16(33249), + 14: uint16(33250), + 15: uint16(33252), + 16: uint16(33253), + 17: uint16(33254), + 18: uint16(33256), + 19: uint16(33257), + 20: uint16(33259), + 21: uint16(33262), + 22: uint16(33263), + 23: uint16(33264), + 24: uint16(33265), + 25: uint16(33266), + 26: uint16(33269), + 27: uint16(33270), + 28: uint16(33271), + 29: uint16(33272), + 30: uint16(33273), + 31: uint16(33274), + 32: uint16(33277), + 33: uint16(33279), + 34: uint16(33283), + 35: uint16(33287), + 36: uint16(33288), + 37: uint16(33289), + 38: uint16(33290), + 39: uint16(33291), + 40: uint16(33294), + 41: uint16(33295), + 42: uint16(33297), + 43: uint16(33299), + 44: uint16(33301), + 45: uint16(33302), + 46: uint16(33303), + 47: uint16(33304), + 48: uint16(33305), + 49: uint16(33306), + 50: uint16(33309), + 51: uint16(33312), + 52: uint16(33316), + 53: uint16(33317), + 54: uint16(33318), + 55: uint16(33319), + 56: uint16(33321), + 57: uint16(33326), + 58: uint16(33330), + 59: uint16(33338), + 60: uint16(33340), + 61: uint16(33341), + 62: uint16(33343), + 63: uint16(33344), + 64: uint16(33345), + 65: uint16(33346), + 66: uint16(33347), + 67: uint16(33349), + 68: uint16(33350), + 69: uint16(33352), + 70: uint16(33354), + 71: uint16(33356), + 72: uint16(33357), + 73: uint16(33358), + 74: uint16(33360), + 75: uint16(33361), + 76: uint16(33362), + 77: uint16(33363), + 78: uint16(33364), + 79: uint16(33365), + 80: uint16(33366), + 81: uint16(33367), + 82: uint16(33369), + 83: uint16(33371), + 84: uint16(33372), + 85: uint16(33373), + 86: uint16(33374), + 87: uint16(33376), + 88: uint16(33377), + 89: uint16(33378), + 90: uint16(33379), + 91: uint16(33380), + 92: uint16(33381), + 93: uint16(33382), + 94: uint16(33383), + 95: uint16(33385), + 96: uint16(25319), + 97: uint16(27870), + 98: uint16(29275), + 99: uint16(25197), + 100: uint16(38062), + 101: uint16(32445), + 102: uint16(33043), + 103: uint16(27987), + 104: uint16(20892), + 105: uint16(24324), + 106: uint16(22900), + 107: uint16(21162), + 108: uint16(24594), + 109: uint16(22899), + 110: uint16(26262), + 111: uint16(34384), + 112: uint16(30111), + 113: uint16(25386), + 114: uint16(25062), + 115: uint16(31983), + 116: uint16(35834), + 117: uint16(21734), + 118: uint16(27431), + 119: uint16(40485), + 120: uint16(27572), + 121: uint16(34261), + 122: uint16(21589), + 123: uint16(20598), + 124: uint16(27812), + 125: uint16(21866), + 126: uint16(36276), + 127: uint16(29228), + 128: uint16(24085), + 129: uint16(24597), + 130: uint16(29750), + 131: uint16(25293), + 132: uint16(25490), + 133: uint16(29260), + 134: uint16(24472), + 135: uint16(28227), + 136: uint16(27966), + 137: uint16(25856), + 138: uint16(28504), + 139: uint16(30424), + 140: uint16(30928), + 141: uint16(30460), + 142: uint16(30036), + 143: uint16(21028), + 144: uint16(21467), + 145: uint16(20051), + 146: uint16(24222), + 147: uint16(26049), + 148: uint16(32810), + 149: uint16(32982), + 150: uint16(25243), + 151: uint16(21638), + 152: uint16(21032), + 153: uint16(28846), + 154: uint16(34957), + 155: uint16(36305), + 156: uint16(27873), + 157: uint16(21624), + 158: uint16(32986), + 159: uint16(22521), + 160: uint16(35060), + 161: uint16(36180), + 162: uint16(38506), + 163: uint16(37197), + 164: uint16(20329), + 165: uint16(27803), + 166: uint16(21943), + 167: uint16(30406), + 168: uint16(30768), + 169: uint16(25256), + 170: uint16(28921), + 171: uint16(28558), + 172: uint16(24429), + 173: uint16(34028), + 174: uint16(26842), + 175: uint16(30844), + 176: uint16(31735), + 177: uint16(33192), + 178: uint16(26379), + 179: uint16(40527), + 180: uint16(25447), + 181: uint16(30896), + 182: uint16(22383), + 183: uint16(30738), + 184: uint16(38713), + 185: uint16(25209), + 186: uint16(25259), + 187: uint16(21128), + 188: uint16(29749), + 189: uint16(27607), + }, + 69: { + 0: uint16(33386), + 1: uint16(33387), + 2: uint16(33388), + 3: uint16(33389), + 4: uint16(33393), + 5: uint16(33397), + 6: uint16(33398), + 7: uint16(33399), + 8: uint16(33400), + 9: uint16(33403), + 10: uint16(33404), + 11: uint16(33408), + 12: uint16(33409), + 13: uint16(33411), + 14: uint16(33413), + 15: uint16(33414), + 16: uint16(33415), + 17: uint16(33417), + 18: uint16(33420), + 19: uint16(33424), + 20: uint16(33427), + 21: uint16(33428), + 22: uint16(33429), + 23: uint16(33430), + 24: uint16(33434), + 25: uint16(33435), + 26: uint16(33438), + 27: uint16(33440), + 28: uint16(33442), + 29: uint16(33443), + 30: uint16(33447), + 31: uint16(33458), + 32: uint16(33461), + 33: uint16(33462), + 34: uint16(33466), + 35: uint16(33467), + 36: uint16(33468), + 37: uint16(33471), + 38: uint16(33472), + 39: uint16(33474), + 40: uint16(33475), + 41: uint16(33477), + 42: uint16(33478), + 43: uint16(33481), + 44: uint16(33488), + 45: uint16(33494), + 46: uint16(33497), + 47: uint16(33498), + 48: uint16(33501), + 49: uint16(33506), + 50: uint16(33511), + 51: uint16(33512), + 52: uint16(33513), + 53: uint16(33514), + 54: uint16(33516), + 55: uint16(33517), + 56: uint16(33518), + 57: uint16(33520), + 58: uint16(33522), + 59: uint16(33523), + 60: uint16(33525), + 61: uint16(33526), + 62: uint16(33528), + 63: uint16(33530), + 64: uint16(33532), + 65: uint16(33533), + 66: uint16(33534), + 67: uint16(33535), + 68: uint16(33536), + 69: uint16(33546), + 70: uint16(33547), + 71: uint16(33549), + 72: uint16(33552), + 73: uint16(33554), + 74: uint16(33555), + 75: uint16(33558), + 76: uint16(33560), + 77: uint16(33561), + 78: uint16(33565), + 79: uint16(33566), + 80: uint16(33567), + 81: uint16(33568), + 82: uint16(33569), + 83: uint16(33570), + 84: uint16(33571), + 85: uint16(33572), + 86: uint16(33573), + 87: uint16(33574), + 88: uint16(33577), + 89: uint16(33578), + 90: uint16(33582), + 91: uint16(33584), + 92: uint16(33586), + 93: uint16(33591), + 94: uint16(33595), + 95: uint16(33597), + 96: uint16(21860), + 97: uint16(33086), + 98: uint16(30130), + 99: uint16(30382), + 100: uint16(21305), + 101: uint16(30174), + 102: uint16(20731), + 103: uint16(23617), + 104: uint16(35692), + 105: uint16(31687), + 106: uint16(20559), + 107: uint16(29255), + 108: uint16(39575), + 109: uint16(39128), + 110: uint16(28418), + 111: uint16(29922), + 112: uint16(31080), + 113: uint16(25735), + 114: uint16(30629), + 115: uint16(25340), + 116: uint16(39057), + 117: uint16(36139), + 118: uint16(21697), + 119: uint16(32856), + 120: uint16(20050), + 121: uint16(22378), + 122: uint16(33529), + 123: uint16(33805), + 124: uint16(24179), + 125: uint16(20973), + 126: uint16(29942), + 127: uint16(35780), + 128: uint16(23631), + 129: uint16(22369), + 130: uint16(27900), + 131: uint16(39047), + 132: uint16(23110), + 133: uint16(30772), + 134: uint16(39748), + 135: uint16(36843), + 136: uint16(31893), + 137: uint16(21078), + 138: uint16(25169), + 139: uint16(38138), + 140: uint16(20166), + 141: uint16(33670), + 142: uint16(33889), + 143: uint16(33769), + 144: uint16(33970), + 145: uint16(22484), + 146: uint16(26420), + 147: uint16(22275), + 148: uint16(26222), + 149: uint16(28006), + 150: uint16(35889), + 151: uint16(26333), + 152: uint16(28689), + 153: uint16(26399), + 154: uint16(27450), + 155: uint16(26646), + 156: uint16(25114), + 157: uint16(22971), + 158: uint16(19971), + 159: uint16(20932), + 160: uint16(28422), + 161: uint16(26578), + 162: uint16(27791), + 163: uint16(20854), + 164: uint16(26827), + 165: uint16(22855), + 166: uint16(27495), + 167: uint16(30054), + 168: uint16(23822), + 169: uint16(33040), + 170: uint16(40784), + 171: uint16(26071), + 172: uint16(31048), + 173: uint16(31041), + 174: uint16(39569), + 175: uint16(36215), + 176: uint16(23682), + 177: uint16(20062), + 178: uint16(20225), + 179: uint16(21551), + 180: uint16(22865), + 181: uint16(30732), + 182: uint16(22120), + 183: uint16(27668), + 184: uint16(36804), + 185: uint16(24323), + 186: uint16(27773), + 187: uint16(27875), + 188: uint16(35755), + 189: uint16(25488), + }, + 70: { + 0: uint16(33598), + 1: uint16(33599), + 2: uint16(33601), + 3: uint16(33602), + 4: uint16(33604), + 5: uint16(33605), + 6: uint16(33608), + 7: uint16(33610), + 8: uint16(33611), + 9: uint16(33612), + 10: uint16(33613), + 11: uint16(33614), + 12: uint16(33619), + 13: uint16(33621), + 14: uint16(33622), + 15: uint16(33623), + 16: uint16(33624), + 17: uint16(33625), + 18: uint16(33629), + 19: uint16(33634), + 20: uint16(33648), + 21: uint16(33649), + 22: uint16(33650), + 23: uint16(33651), + 24: uint16(33652), + 25: uint16(33653), + 26: uint16(33654), + 27: uint16(33657), + 28: uint16(33658), + 29: uint16(33662), + 30: uint16(33663), + 31: uint16(33664), + 32: uint16(33665), + 33: uint16(33666), + 34: uint16(33667), + 35: uint16(33668), + 36: uint16(33671), + 37: uint16(33672), + 38: uint16(33674), + 39: uint16(33675), + 40: uint16(33676), + 41: uint16(33677), + 42: uint16(33679), + 43: uint16(33680), + 44: uint16(33681), + 45: uint16(33684), + 46: uint16(33685), + 47: uint16(33686), + 48: uint16(33687), + 49: uint16(33689), + 50: uint16(33690), + 51: uint16(33693), + 52: uint16(33695), + 53: uint16(33697), + 54: uint16(33698), + 55: uint16(33699), + 56: uint16(33700), + 57: uint16(33701), + 58: uint16(33702), + 59: uint16(33703), + 60: uint16(33708), + 61: uint16(33709), + 62: uint16(33710), + 63: uint16(33711), + 64: uint16(33717), + 65: uint16(33723), + 66: uint16(33726), + 67: uint16(33727), + 68: uint16(33730), + 69: uint16(33731), + 70: uint16(33732), + 71: uint16(33734), + 72: uint16(33736), + 73: uint16(33737), + 74: uint16(33739), + 75: uint16(33741), + 76: uint16(33742), + 77: uint16(33744), + 78: uint16(33745), + 79: uint16(33746), + 80: uint16(33747), + 81: uint16(33749), + 82: uint16(33751), + 83: uint16(33753), + 84: uint16(33754), + 85: uint16(33755), + 86: uint16(33758), + 87: uint16(33762), + 88: uint16(33763), + 89: uint16(33764), + 90: uint16(33766), + 91: uint16(33767), + 92: uint16(33768), + 93: uint16(33771), + 94: uint16(33772), + 95: uint16(33773), + 96: uint16(24688), + 97: uint16(27965), + 98: uint16(29301), + 99: uint16(25190), + 100: uint16(38030), + 101: uint16(38085), + 102: uint16(21315), + 103: uint16(36801), + 104: uint16(31614), + 105: uint16(20191), + 106: uint16(35878), + 107: uint16(20094), + 108: uint16(40660), + 109: uint16(38065), + 110: uint16(38067), + 111: uint16(21069), + 112: uint16(28508), + 113: uint16(36963), + 114: uint16(27973), + 115: uint16(35892), + 116: uint16(22545), + 117: uint16(23884), + 118: uint16(27424), + 119: uint16(27465), + 120: uint16(26538), + 121: uint16(21595), + 122: uint16(33108), + 123: uint16(32652), + 124: uint16(22681), + 125: uint16(34103), + 126: uint16(24378), + 127: uint16(25250), + 128: uint16(27207), + 129: uint16(38201), + 130: uint16(25970), + 131: uint16(24708), + 132: uint16(26725), + 133: uint16(30631), + 134: uint16(20052), + 135: uint16(20392), + 136: uint16(24039), + 137: uint16(38808), + 138: uint16(25772), + 139: uint16(32728), + 140: uint16(23789), + 141: uint16(20431), + 142: uint16(31373), + 143: uint16(20999), + 144: uint16(33540), + 145: uint16(19988), + 146: uint16(24623), + 147: uint16(31363), + 148: uint16(38054), + 149: uint16(20405), + 150: uint16(20146), + 151: uint16(31206), + 152: uint16(29748), + 153: uint16(21220), + 154: uint16(33465), + 155: uint16(25810), + 156: uint16(31165), + 157: uint16(23517), + 158: uint16(27777), + 159: uint16(38738), + 160: uint16(36731), + 161: uint16(27682), + 162: uint16(20542), + 163: uint16(21375), + 164: uint16(28165), + 165: uint16(25806), + 166: uint16(26228), + 167: uint16(27696), + 168: uint16(24773), + 169: uint16(39031), + 170: uint16(35831), + 171: uint16(24198), + 172: uint16(29756), + 173: uint16(31351), + 174: uint16(31179), + 175: uint16(19992), + 176: uint16(37041), + 177: uint16(29699), + 178: uint16(27714), + 179: uint16(22234), + 180: uint16(37195), + 181: uint16(27845), + 182: uint16(36235), + 183: uint16(21306), + 184: uint16(34502), + 185: uint16(26354), + 186: uint16(36527), + 187: uint16(23624), + 188: uint16(39537), + 189: uint16(28192), + }, + 71: { + 0: uint16(33774), + 1: uint16(33775), + 2: uint16(33779), + 3: uint16(33780), + 4: uint16(33781), + 5: uint16(33782), + 6: uint16(33783), + 7: uint16(33786), + 8: uint16(33787), + 9: uint16(33788), + 10: uint16(33790), + 11: uint16(33791), + 12: uint16(33792), + 13: uint16(33794), + 14: uint16(33797), + 15: uint16(33799), + 16: uint16(33800), + 17: uint16(33801), + 18: uint16(33802), + 19: uint16(33808), + 20: uint16(33810), + 21: uint16(33811), + 22: uint16(33812), + 23: uint16(33813), + 24: uint16(33814), + 25: uint16(33815), + 26: uint16(33817), + 27: uint16(33818), + 28: uint16(33819), + 29: uint16(33822), + 30: uint16(33823), + 31: uint16(33824), + 32: uint16(33825), + 33: uint16(33826), + 34: uint16(33827), + 35: uint16(33833), + 36: uint16(33834), + 37: uint16(33835), + 38: uint16(33836), + 39: uint16(33837), + 40: uint16(33838), + 41: uint16(33839), + 42: uint16(33840), + 43: uint16(33842), + 44: uint16(33843), + 45: uint16(33844), + 46: uint16(33845), + 47: uint16(33846), + 48: uint16(33847), + 49: uint16(33849), + 50: uint16(33850), + 51: uint16(33851), + 52: uint16(33854), + 53: uint16(33855), + 54: uint16(33856), + 55: uint16(33857), + 56: uint16(33858), + 57: uint16(33859), + 58: uint16(33860), + 59: uint16(33861), + 60: uint16(33863), + 61: uint16(33864), + 62: uint16(33865), + 63: uint16(33866), + 64: uint16(33867), + 65: uint16(33868), + 66: uint16(33869), + 67: uint16(33870), + 68: uint16(33871), + 69: uint16(33872), + 70: uint16(33874), + 71: uint16(33875), + 72: uint16(33876), + 73: uint16(33877), + 74: uint16(33878), + 75: uint16(33880), + 76: uint16(33885), + 77: uint16(33886), + 78: uint16(33887), + 79: uint16(33888), + 80: uint16(33890), + 81: uint16(33892), + 82: uint16(33893), + 83: uint16(33894), + 84: uint16(33895), + 85: uint16(33896), + 86: uint16(33898), + 87: uint16(33902), + 88: uint16(33903), + 89: uint16(33904), + 90: uint16(33906), + 91: uint16(33908), + 92: uint16(33911), + 93: uint16(33913), + 94: uint16(33915), + 95: uint16(33916), + 96: uint16(21462), + 97: uint16(23094), + 98: uint16(40843), + 99: uint16(36259), + 100: uint16(21435), + 101: uint16(22280), + 102: uint16(39079), + 103: uint16(26435), + 104: uint16(37275), + 105: uint16(27849), + 106: uint16(20840), + 107: uint16(30154), + 108: uint16(25331), + 109: uint16(29356), + 110: uint16(21048), + 111: uint16(21149), + 112: uint16(32570), + 113: uint16(28820), + 114: uint16(30264), + 115: uint16(21364), + 116: uint16(40522), + 117: uint16(27063), + 118: uint16(30830), + 119: uint16(38592), + 120: uint16(35033), + 121: uint16(32676), + 122: uint16(28982), + 123: uint16(29123), + 124: uint16(20873), + 125: uint16(26579), + 126: uint16(29924), + 127: uint16(22756), + 128: uint16(25880), + 129: uint16(22199), + 130: uint16(35753), + 131: uint16(39286), + 132: uint16(25200), + 133: uint16(32469), + 134: uint16(24825), + 135: uint16(28909), + 136: uint16(22764), + 137: uint16(20161), + 138: uint16(20154), + 139: uint16(24525), + 140: uint16(38887), + 141: uint16(20219), + 142: uint16(35748), + 143: uint16(20995), + 144: uint16(22922), + 145: uint16(32427), + 146: uint16(25172), + 147: uint16(20173), + 148: uint16(26085), + 149: uint16(25102), + 150: uint16(33592), + 151: uint16(33993), + 152: uint16(33635), + 153: uint16(34701), + 154: uint16(29076), + 155: uint16(28342), + 156: uint16(23481), + 157: uint16(32466), + 158: uint16(20887), + 159: uint16(25545), + 160: uint16(26580), + 161: uint16(32905), + 162: uint16(33593), + 163: uint16(34837), + 164: uint16(20754), + 165: uint16(23418), + 166: uint16(22914), + 167: uint16(36785), + 168: uint16(20083), + 169: uint16(27741), + 170: uint16(20837), + 171: uint16(35109), + 172: uint16(36719), + 173: uint16(38446), + 174: uint16(34122), + 175: uint16(29790), + 176: uint16(38160), + 177: uint16(38384), + 178: uint16(28070), + 179: uint16(33509), + 180: uint16(24369), + 181: uint16(25746), + 182: uint16(27922), + 183: uint16(33832), + 184: uint16(33134), + 185: uint16(40131), + 186: uint16(22622), + 187: uint16(36187), + 188: uint16(19977), + 189: uint16(21441), + }, + 72: { + 0: uint16(33917), + 1: uint16(33918), + 2: uint16(33919), + 3: uint16(33920), + 4: uint16(33921), + 5: uint16(33923), + 6: uint16(33924), + 7: uint16(33925), + 8: uint16(33926), + 9: uint16(33930), + 10: uint16(33933), + 11: uint16(33935), + 12: uint16(33936), + 13: uint16(33937), + 14: uint16(33938), + 15: uint16(33939), + 16: uint16(33940), + 17: uint16(33941), + 18: uint16(33942), + 19: uint16(33944), + 20: uint16(33946), + 21: uint16(33947), + 22: uint16(33949), + 23: uint16(33950), + 24: uint16(33951), + 25: uint16(33952), + 26: uint16(33954), + 27: uint16(33955), + 28: uint16(33956), + 29: uint16(33957), + 30: uint16(33958), + 31: uint16(33959), + 32: uint16(33960), + 33: uint16(33961), + 34: uint16(33962), + 35: uint16(33963), + 36: uint16(33964), + 37: uint16(33965), + 38: uint16(33966), + 39: uint16(33968), + 40: uint16(33969), + 41: uint16(33971), + 42: uint16(33973), + 43: uint16(33974), + 44: uint16(33975), + 45: uint16(33979), + 46: uint16(33980), + 47: uint16(33982), + 48: uint16(33984), + 49: uint16(33986), + 50: uint16(33987), + 51: uint16(33989), + 52: uint16(33990), + 53: uint16(33991), + 54: uint16(33992), + 55: uint16(33995), + 56: uint16(33996), + 57: uint16(33998), + 58: uint16(33999), + 59: uint16(34002), + 60: uint16(34004), + 61: uint16(34005), + 62: uint16(34007), + 63: uint16(34008), + 64: uint16(34009), + 65: uint16(34010), + 66: uint16(34011), + 67: uint16(34012), + 68: uint16(34014), + 69: uint16(34017), + 70: uint16(34018), + 71: uint16(34020), + 72: uint16(34023), + 73: uint16(34024), + 74: uint16(34025), + 75: uint16(34026), + 76: uint16(34027), + 77: uint16(34029), + 78: uint16(34030), + 79: uint16(34031), + 80: uint16(34033), + 81: uint16(34034), + 82: uint16(34035), + 83: uint16(34036), + 84: uint16(34037), + 85: uint16(34038), + 86: uint16(34039), + 87: uint16(34040), + 88: uint16(34041), + 89: uint16(34042), + 90: uint16(34043), + 91: uint16(34045), + 92: uint16(34046), + 93: uint16(34048), + 94: uint16(34049), + 95: uint16(34050), + 96: uint16(20254), + 97: uint16(25955), + 98: uint16(26705), + 99: uint16(21971), + 100: uint16(20007), + 101: uint16(25620), + 102: uint16(39578), + 103: uint16(25195), + 104: uint16(23234), + 105: uint16(29791), + 106: uint16(33394), + 107: uint16(28073), + 108: uint16(26862), + 109: uint16(20711), + 110: uint16(33678), + 111: uint16(30722), + 112: uint16(26432), + 113: uint16(21049), + 114: uint16(27801), + 115: uint16(32433), + 116: uint16(20667), + 117: uint16(21861), + 118: uint16(29022), + 119: uint16(31579), + 120: uint16(26194), + 121: uint16(29642), + 122: uint16(33515), + 123: uint16(26441), + 124: uint16(23665), + 125: uint16(21024), + 126: uint16(29053), + 127: uint16(34923), + 128: uint16(38378), + 129: uint16(38485), + 130: uint16(25797), + 131: uint16(36193), + 132: uint16(33203), + 133: uint16(21892), + 134: uint16(27733), + 135: uint16(25159), + 136: uint16(32558), + 137: uint16(22674), + 138: uint16(20260), + 139: uint16(21830), + 140: uint16(36175), + 141: uint16(26188), + 142: uint16(19978), + 143: uint16(23578), + 144: uint16(35059), + 145: uint16(26786), + 146: uint16(25422), + 147: uint16(31245), + 148: uint16(28903), + 149: uint16(33421), + 150: uint16(21242), + 151: uint16(38902), + 152: uint16(23569), + 153: uint16(21736), + 154: uint16(37045), + 155: uint16(32461), + 156: uint16(22882), + 157: uint16(36170), + 158: uint16(34503), + 159: uint16(33292), + 160: uint16(33293), + 161: uint16(36198), + 162: uint16(25668), + 163: uint16(23556), + 164: uint16(24913), + 165: uint16(28041), + 166: uint16(31038), + 167: uint16(35774), + 168: uint16(30775), + 169: uint16(30003), + 170: uint16(21627), + 171: uint16(20280), + 172: uint16(36523), + 173: uint16(28145), + 174: uint16(23072), + 175: uint16(32453), + 176: uint16(31070), + 177: uint16(27784), + 178: uint16(23457), + 179: uint16(23158), + 180: uint16(29978), + 181: uint16(32958), + 182: uint16(24910), + 183: uint16(28183), + 184: uint16(22768), + 185: uint16(29983), + 186: uint16(29989), + 187: uint16(29298), + 188: uint16(21319), + 189: uint16(32499), + }, + 73: { + 0: uint16(34051), + 1: uint16(34052), + 2: uint16(34053), + 3: uint16(34054), + 4: uint16(34055), + 5: uint16(34056), + 6: uint16(34057), + 7: uint16(34058), + 8: uint16(34059), + 9: uint16(34061), + 10: uint16(34062), + 11: uint16(34063), + 12: uint16(34064), + 13: uint16(34066), + 14: uint16(34068), + 15: uint16(34069), + 16: uint16(34070), + 17: uint16(34072), + 18: uint16(34073), + 19: uint16(34075), + 20: uint16(34076), + 21: uint16(34077), + 22: uint16(34078), + 23: uint16(34080), + 24: uint16(34082), + 25: uint16(34083), + 26: uint16(34084), + 27: uint16(34085), + 28: uint16(34086), + 29: uint16(34087), + 30: uint16(34088), + 31: uint16(34089), + 32: uint16(34090), + 33: uint16(34093), + 34: uint16(34094), + 35: uint16(34095), + 36: uint16(34096), + 37: uint16(34097), + 38: uint16(34098), + 39: uint16(34099), + 40: uint16(34100), + 41: uint16(34101), + 42: uint16(34102), + 43: uint16(34110), + 44: uint16(34111), + 45: uint16(34112), + 46: uint16(34113), + 47: uint16(34114), + 48: uint16(34116), + 49: uint16(34117), + 50: uint16(34118), + 51: uint16(34119), + 52: uint16(34123), + 53: uint16(34124), + 54: uint16(34125), + 55: uint16(34126), + 56: uint16(34127), + 57: uint16(34128), + 58: uint16(34129), + 59: uint16(34130), + 60: uint16(34131), + 61: uint16(34132), + 62: uint16(34133), + 63: uint16(34135), + 64: uint16(34136), + 65: uint16(34138), + 66: uint16(34139), + 67: uint16(34140), + 68: uint16(34141), + 69: uint16(34143), + 70: uint16(34144), + 71: uint16(34145), + 72: uint16(34146), + 73: uint16(34147), + 74: uint16(34149), + 75: uint16(34150), + 76: uint16(34151), + 77: uint16(34153), + 78: uint16(34154), + 79: uint16(34155), + 80: uint16(34156), + 81: uint16(34157), + 82: uint16(34158), + 83: uint16(34159), + 84: uint16(34160), + 85: uint16(34161), + 86: uint16(34163), + 87: uint16(34165), + 88: uint16(34166), + 89: uint16(34167), + 90: uint16(34168), + 91: uint16(34172), + 92: uint16(34173), + 93: uint16(34175), + 94: uint16(34176), + 95: uint16(34177), + 96: uint16(30465), + 97: uint16(30427), + 98: uint16(21097), + 99: uint16(32988), + 100: uint16(22307), + 101: uint16(24072), + 102: uint16(22833), + 103: uint16(29422), + 104: uint16(26045), + 105: uint16(28287), + 106: uint16(35799), + 107: uint16(23608), + 108: uint16(34417), + 109: uint16(21313), + 110: uint16(30707), + 111: uint16(25342), + 112: uint16(26102), + 113: uint16(20160), + 114: uint16(39135), + 115: uint16(34432), + 116: uint16(23454), + 117: uint16(35782), + 118: uint16(21490), + 119: uint16(30690), + 120: uint16(20351), + 121: uint16(23630), + 122: uint16(39542), + 123: uint16(22987), + 124: uint16(24335), + 125: uint16(31034), + 126: uint16(22763), + 127: uint16(19990), + 128: uint16(26623), + 129: uint16(20107), + 130: uint16(25325), + 131: uint16(35475), + 132: uint16(36893), + 133: uint16(21183), + 134: uint16(26159), + 135: uint16(21980), + 136: uint16(22124), + 137: uint16(36866), + 138: uint16(20181), + 139: uint16(20365), + 140: uint16(37322), + 141: uint16(39280), + 142: uint16(27663), + 143: uint16(24066), + 144: uint16(24643), + 145: uint16(23460), + 146: uint16(35270), + 147: uint16(35797), + 148: uint16(25910), + 149: uint16(25163), + 150: uint16(39318), + 151: uint16(23432), + 152: uint16(23551), + 153: uint16(25480), + 154: uint16(21806), + 155: uint16(21463), + 156: uint16(30246), + 157: uint16(20861), + 158: uint16(34092), + 159: uint16(26530), + 160: uint16(26803), + 161: uint16(27530), + 162: uint16(25234), + 163: uint16(36755), + 164: uint16(21460), + 165: uint16(33298), + 166: uint16(28113), + 167: uint16(30095), + 168: uint16(20070), + 169: uint16(36174), + 170: uint16(23408), + 171: uint16(29087), + 172: uint16(34223), + 173: uint16(26257), + 174: uint16(26329), + 175: uint16(32626), + 176: uint16(34560), + 177: uint16(40653), + 178: uint16(40736), + 179: uint16(23646), + 180: uint16(26415), + 181: uint16(36848), + 182: uint16(26641), + 183: uint16(26463), + 184: uint16(25101), + 185: uint16(31446), + 186: uint16(22661), + 187: uint16(24246), + 188: uint16(25968), + 189: uint16(28465), + }, + 74: { + 0: uint16(34178), + 1: uint16(34179), + 2: uint16(34182), + 3: uint16(34184), + 4: uint16(34185), + 5: uint16(34186), + 6: uint16(34187), + 7: uint16(34188), + 8: uint16(34189), + 9: uint16(34190), + 10: uint16(34192), + 11: uint16(34193), + 12: uint16(34194), + 13: uint16(34195), + 14: uint16(34196), + 15: uint16(34197), + 16: uint16(34198), + 17: uint16(34199), + 18: uint16(34200), + 19: uint16(34201), + 20: uint16(34202), + 21: uint16(34205), + 22: uint16(34206), + 23: uint16(34207), + 24: uint16(34208), + 25: uint16(34209), + 26: uint16(34210), + 27: uint16(34211), + 28: uint16(34213), + 29: uint16(34214), + 30: uint16(34215), + 31: uint16(34217), + 32: uint16(34219), + 33: uint16(34220), + 34: uint16(34221), + 35: uint16(34225), + 36: uint16(34226), + 37: uint16(34227), + 38: uint16(34228), + 39: uint16(34229), + 40: uint16(34230), + 41: uint16(34232), + 42: uint16(34234), + 43: uint16(34235), + 44: uint16(34236), + 45: uint16(34237), + 46: uint16(34238), + 47: uint16(34239), + 48: uint16(34240), + 49: uint16(34242), + 50: uint16(34243), + 51: uint16(34244), + 52: uint16(34245), + 53: uint16(34246), + 54: uint16(34247), + 55: uint16(34248), + 56: uint16(34250), + 57: uint16(34251), + 58: uint16(34252), + 59: uint16(34253), + 60: uint16(34254), + 61: uint16(34257), + 62: uint16(34258), + 63: uint16(34260), + 64: uint16(34262), + 65: uint16(34263), + 66: uint16(34264), + 67: uint16(34265), + 68: uint16(34266), + 69: uint16(34267), + 70: uint16(34269), + 71: uint16(34270), + 72: uint16(34271), + 73: uint16(34272), + 74: uint16(34273), + 75: uint16(34274), + 76: uint16(34275), + 77: uint16(34277), + 78: uint16(34278), + 79: uint16(34279), + 80: uint16(34280), + 81: uint16(34282), + 82: uint16(34283), + 83: uint16(34284), + 84: uint16(34285), + 85: uint16(34286), + 86: uint16(34287), + 87: uint16(34288), + 88: uint16(34289), + 89: uint16(34290), + 90: uint16(34291), + 91: uint16(34292), + 92: uint16(34293), + 93: uint16(34294), + 94: uint16(34295), + 95: uint16(34296), + 96: uint16(24661), + 97: uint16(21047), + 98: uint16(32781), + 99: uint16(25684), + 100: uint16(34928), + 101: uint16(29993), + 102: uint16(24069), + 103: uint16(26643), + 104: uint16(25332), + 105: uint16(38684), + 106: uint16(21452), + 107: uint16(29245), + 108: uint16(35841), + 109: uint16(27700), + 110: uint16(30561), + 111: uint16(31246), + 112: uint16(21550), + 113: uint16(30636), + 114: uint16(39034), + 115: uint16(33308), + 116: uint16(35828), + 117: uint16(30805), + 118: uint16(26388), + 119: uint16(28865), + 120: uint16(26031), + 121: uint16(25749), + 122: uint16(22070), + 123: uint16(24605), + 124: uint16(31169), + 125: uint16(21496), + 126: uint16(19997), + 127: uint16(27515), + 128: uint16(32902), + 129: uint16(23546), + 130: uint16(21987), + 131: uint16(22235), + 132: uint16(20282), + 133: uint16(20284), + 134: uint16(39282), + 135: uint16(24051), + 136: uint16(26494), + 137: uint16(32824), + 138: uint16(24578), + 139: uint16(39042), + 140: uint16(36865), + 141: uint16(23435), + 142: uint16(35772), + 143: uint16(35829), + 144: uint16(25628), + 145: uint16(33368), + 146: uint16(25822), + 147: uint16(22013), + 148: uint16(33487), + 149: uint16(37221), + 150: uint16(20439), + 151: uint16(32032), + 152: uint16(36895), + 153: uint16(31903), + 154: uint16(20723), + 155: uint16(22609), + 156: uint16(28335), + 157: uint16(23487), + 158: uint16(35785), + 159: uint16(32899), + 160: uint16(37240), + 161: uint16(33948), + 162: uint16(31639), + 163: uint16(34429), + 164: uint16(38539), + 165: uint16(38543), + 166: uint16(32485), + 167: uint16(39635), + 168: uint16(30862), + 169: uint16(23681), + 170: uint16(31319), + 171: uint16(36930), + 172: uint16(38567), + 173: uint16(31071), + 174: uint16(23385), + 175: uint16(25439), + 176: uint16(31499), + 177: uint16(34001), + 178: uint16(26797), + 179: uint16(21766), + 180: uint16(32553), + 181: uint16(29712), + 182: uint16(32034), + 183: uint16(38145), + 184: uint16(25152), + 185: uint16(22604), + 186: uint16(20182), + 187: uint16(23427), + 188: uint16(22905), + 189: uint16(22612), + }, + 75: { + 0: uint16(34297), + 1: uint16(34298), + 2: uint16(34300), + 3: uint16(34301), + 4: uint16(34302), + 5: uint16(34304), + 6: uint16(34305), + 7: uint16(34306), + 8: uint16(34307), + 9: uint16(34308), + 10: uint16(34310), + 11: uint16(34311), + 12: uint16(34312), + 13: uint16(34313), + 14: uint16(34314), + 15: uint16(34315), + 16: uint16(34316), + 17: uint16(34317), + 18: uint16(34318), + 19: uint16(34319), + 20: uint16(34320), + 21: uint16(34322), + 22: uint16(34323), + 23: uint16(34324), + 24: uint16(34325), + 25: uint16(34327), + 26: uint16(34328), + 27: uint16(34329), + 28: uint16(34330), + 29: uint16(34331), + 30: uint16(34332), + 31: uint16(34333), + 32: uint16(34334), + 33: uint16(34335), + 34: uint16(34336), + 35: uint16(34337), + 36: uint16(34338), + 37: uint16(34339), + 38: uint16(34340), + 39: uint16(34341), + 40: uint16(34342), + 41: uint16(34344), + 42: uint16(34346), + 43: uint16(34347), + 44: uint16(34348), + 45: uint16(34349), + 46: uint16(34350), + 47: uint16(34351), + 48: uint16(34352), + 49: uint16(34353), + 50: uint16(34354), + 51: uint16(34355), + 52: uint16(34356), + 53: uint16(34357), + 54: uint16(34358), + 55: uint16(34359), + 56: uint16(34361), + 57: uint16(34362), + 58: uint16(34363), + 59: uint16(34365), + 60: uint16(34366), + 61: uint16(34367), + 62: uint16(34368), + 63: uint16(34369), + 64: uint16(34370), + 65: uint16(34371), + 66: uint16(34372), + 67: uint16(34373), + 68: uint16(34374), + 69: uint16(34375), + 70: uint16(34376), + 71: uint16(34377), + 72: uint16(34378), + 73: uint16(34379), + 74: uint16(34380), + 75: uint16(34386), + 76: uint16(34387), + 77: uint16(34389), + 78: uint16(34390), + 79: uint16(34391), + 80: uint16(34392), + 81: uint16(34393), + 82: uint16(34395), + 83: uint16(34396), + 84: uint16(34397), + 85: uint16(34399), + 86: uint16(34400), + 87: uint16(34401), + 88: uint16(34403), + 89: uint16(34404), + 90: uint16(34405), + 91: uint16(34406), + 92: uint16(34407), + 93: uint16(34408), + 94: uint16(34409), + 95: uint16(34410), + 96: uint16(29549), + 97: uint16(25374), + 98: uint16(36427), + 99: uint16(36367), + 100: uint16(32974), + 101: uint16(33492), + 102: uint16(25260), + 103: uint16(21488), + 104: uint16(27888), + 105: uint16(37214), + 106: uint16(22826), + 107: uint16(24577), + 108: uint16(27760), + 109: uint16(22349), + 110: uint16(25674), + 111: uint16(36138), + 112: uint16(30251), + 113: uint16(28393), + 114: uint16(22363), + 115: uint16(27264), + 116: uint16(30192), + 117: uint16(28525), + 118: uint16(35885), + 119: uint16(35848), + 120: uint16(22374), + 121: uint16(27631), + 122: uint16(34962), + 123: uint16(30899), + 124: uint16(25506), + 125: uint16(21497), + 126: uint16(28845), + 127: uint16(27748), + 128: uint16(22616), + 129: uint16(25642), + 130: uint16(22530), + 131: uint16(26848), + 132: uint16(33179), + 133: uint16(21776), + 134: uint16(31958), + 135: uint16(20504), + 136: uint16(36538), + 137: uint16(28108), + 138: uint16(36255), + 139: uint16(28907), + 140: uint16(25487), + 141: uint16(28059), + 142: uint16(28372), + 143: uint16(32486), + 144: uint16(33796), + 145: uint16(26691), + 146: uint16(36867), + 147: uint16(28120), + 148: uint16(38518), + 149: uint16(35752), + 150: uint16(22871), + 151: uint16(29305), + 152: uint16(34276), + 153: uint16(33150), + 154: uint16(30140), + 155: uint16(35466), + 156: uint16(26799), + 157: uint16(21076), + 158: uint16(36386), + 159: uint16(38161), + 160: uint16(25552), + 161: uint16(39064), + 162: uint16(36420), + 163: uint16(21884), + 164: uint16(20307), + 165: uint16(26367), + 166: uint16(22159), + 167: uint16(24789), + 168: uint16(28053), + 169: uint16(21059), + 170: uint16(23625), + 171: uint16(22825), + 172: uint16(28155), + 173: uint16(22635), + 174: uint16(30000), + 175: uint16(29980), + 176: uint16(24684), + 177: uint16(33300), + 178: uint16(33094), + 179: uint16(25361), + 180: uint16(26465), + 181: uint16(36834), + 182: uint16(30522), + 183: uint16(36339), + 184: uint16(36148), + 185: uint16(38081), + 186: uint16(24086), + 187: uint16(21381), + 188: uint16(21548), + 189: uint16(28867), + }, + 76: { + 0: uint16(34413), + 1: uint16(34415), + 2: uint16(34416), + 3: uint16(34418), + 4: uint16(34419), + 5: uint16(34420), + 6: uint16(34421), + 7: uint16(34422), + 8: uint16(34423), + 9: uint16(34424), + 10: uint16(34435), + 11: uint16(34436), + 12: uint16(34437), + 13: uint16(34438), + 14: uint16(34439), + 15: uint16(34440), + 16: uint16(34441), + 17: uint16(34446), + 18: uint16(34447), + 19: uint16(34448), + 20: uint16(34449), + 21: uint16(34450), + 22: uint16(34452), + 23: uint16(34454), + 24: uint16(34455), + 25: uint16(34456), + 26: uint16(34457), + 27: uint16(34458), + 28: uint16(34459), + 29: uint16(34462), + 30: uint16(34463), + 31: uint16(34464), + 32: uint16(34465), + 33: uint16(34466), + 34: uint16(34469), + 35: uint16(34470), + 36: uint16(34475), + 37: uint16(34477), + 38: uint16(34478), + 39: uint16(34482), + 40: uint16(34483), + 41: uint16(34487), + 42: uint16(34488), + 43: uint16(34489), + 44: uint16(34491), + 45: uint16(34492), + 46: uint16(34493), + 47: uint16(34494), + 48: uint16(34495), + 49: uint16(34497), + 50: uint16(34498), + 51: uint16(34499), + 52: uint16(34501), + 53: uint16(34504), + 54: uint16(34508), + 55: uint16(34509), + 56: uint16(34514), + 57: uint16(34515), + 58: uint16(34517), + 59: uint16(34518), + 60: uint16(34519), + 61: uint16(34522), + 62: uint16(34524), + 63: uint16(34525), + 64: uint16(34528), + 65: uint16(34529), + 66: uint16(34530), + 67: uint16(34531), + 68: uint16(34533), + 69: uint16(34534), + 70: uint16(34535), + 71: uint16(34536), + 72: uint16(34538), + 73: uint16(34539), + 74: uint16(34540), + 75: uint16(34543), + 76: uint16(34549), + 77: uint16(34550), + 78: uint16(34551), + 79: uint16(34554), + 80: uint16(34555), + 81: uint16(34556), + 82: uint16(34557), + 83: uint16(34559), + 84: uint16(34561), + 85: uint16(34564), + 86: uint16(34565), + 87: uint16(34566), + 88: uint16(34571), + 89: uint16(34572), + 90: uint16(34574), + 91: uint16(34575), + 92: uint16(34576), + 93: uint16(34577), + 94: uint16(34580), + 95: uint16(34582), + 96: uint16(27712), + 97: uint16(24311), + 98: uint16(20572), + 99: uint16(20141), + 100: uint16(24237), + 101: uint16(25402), + 102: uint16(33351), + 103: uint16(36890), + 104: uint16(26704), + 105: uint16(37230), + 106: uint16(30643), + 107: uint16(21516), + 108: uint16(38108), + 109: uint16(24420), + 110: uint16(31461), + 111: uint16(26742), + 112: uint16(25413), + 113: uint16(31570), + 114: uint16(32479), + 115: uint16(30171), + 116: uint16(20599), + 117: uint16(25237), + 118: uint16(22836), + 119: uint16(36879), + 120: uint16(20984), + 121: uint16(31171), + 122: uint16(31361), + 123: uint16(22270), + 124: uint16(24466), + 125: uint16(36884), + 126: uint16(28034), + 127: uint16(23648), + 128: uint16(22303), + 129: uint16(21520), + 130: uint16(20820), + 131: uint16(28237), + 132: uint16(22242), + 133: uint16(25512), + 134: uint16(39059), + 135: uint16(33151), + 136: uint16(34581), + 137: uint16(35114), + 138: uint16(36864), + 139: uint16(21534), + 140: uint16(23663), + 141: uint16(33216), + 142: uint16(25302), + 143: uint16(25176), + 144: uint16(33073), + 145: uint16(40501), + 146: uint16(38464), + 147: uint16(39534), + 148: uint16(39548), + 149: uint16(26925), + 150: uint16(22949), + 151: uint16(25299), + 152: uint16(21822), + 153: uint16(25366), + 154: uint16(21703), + 155: uint16(34521), + 156: uint16(27964), + 157: uint16(23043), + 158: uint16(29926), + 159: uint16(34972), + 160: uint16(27498), + 161: uint16(22806), + 162: uint16(35916), + 163: uint16(24367), + 164: uint16(28286), + 165: uint16(29609), + 166: uint16(39037), + 167: uint16(20024), + 168: uint16(28919), + 169: uint16(23436), + 170: uint16(30871), + 171: uint16(25405), + 172: uint16(26202), + 173: uint16(30358), + 174: uint16(24779), + 175: uint16(23451), + 176: uint16(23113), + 177: uint16(19975), + 178: uint16(33109), + 179: uint16(27754), + 180: uint16(29579), + 181: uint16(20129), + 182: uint16(26505), + 183: uint16(32593), + 184: uint16(24448), + 185: uint16(26106), + 186: uint16(26395), + 187: uint16(24536), + 188: uint16(22916), + 189: uint16(23041), + }, + 77: { + 0: uint16(34585), + 1: uint16(34587), + 2: uint16(34589), + 3: uint16(34591), + 4: uint16(34592), + 5: uint16(34596), + 6: uint16(34598), + 7: uint16(34599), + 8: uint16(34600), + 9: uint16(34602), + 10: uint16(34603), + 11: uint16(34604), + 12: uint16(34605), + 13: uint16(34607), + 14: uint16(34608), + 15: uint16(34610), + 16: uint16(34611), + 17: uint16(34613), + 18: uint16(34614), + 19: uint16(34616), + 20: uint16(34617), + 21: uint16(34618), + 22: uint16(34620), + 23: uint16(34621), + 24: uint16(34624), + 25: uint16(34625), + 26: uint16(34626), + 27: uint16(34627), + 28: uint16(34628), + 29: uint16(34629), + 30: uint16(34630), + 31: uint16(34634), + 32: uint16(34635), + 33: uint16(34637), + 34: uint16(34639), + 35: uint16(34640), + 36: uint16(34641), + 37: uint16(34642), + 38: uint16(34644), + 39: uint16(34645), + 40: uint16(34646), + 41: uint16(34648), + 42: uint16(34650), + 43: uint16(34651), + 44: uint16(34652), + 45: uint16(34653), + 46: uint16(34654), + 47: uint16(34655), + 48: uint16(34657), + 49: uint16(34658), + 50: uint16(34662), + 51: uint16(34663), + 52: uint16(34664), + 53: uint16(34665), + 54: uint16(34666), + 55: uint16(34667), + 56: uint16(34668), + 57: uint16(34669), + 58: uint16(34671), + 59: uint16(34673), + 60: uint16(34674), + 61: uint16(34675), + 62: uint16(34677), + 63: uint16(34679), + 64: uint16(34680), + 65: uint16(34681), + 66: uint16(34682), + 67: uint16(34687), + 68: uint16(34688), + 69: uint16(34689), + 70: uint16(34692), + 71: uint16(34694), + 72: uint16(34695), + 73: uint16(34697), + 74: uint16(34698), + 75: uint16(34700), + 76: uint16(34702), + 77: uint16(34703), + 78: uint16(34704), + 79: uint16(34705), + 80: uint16(34706), + 81: uint16(34708), + 82: uint16(34709), + 83: uint16(34710), + 84: uint16(34712), + 85: uint16(34713), + 86: uint16(34714), + 87: uint16(34715), + 88: uint16(34716), + 89: uint16(34717), + 90: uint16(34718), + 91: uint16(34720), + 92: uint16(34721), + 93: uint16(34722), + 94: uint16(34723), + 95: uint16(34724), + 96: uint16(24013), + 97: uint16(24494), + 98: uint16(21361), + 99: uint16(38886), + 100: uint16(36829), + 101: uint16(26693), + 102: uint16(22260), + 103: uint16(21807), + 104: uint16(24799), + 105: uint16(20026), + 106: uint16(28493), + 107: uint16(32500), + 108: uint16(33479), + 109: uint16(33806), + 110: uint16(22996), + 111: uint16(20255), + 112: uint16(20266), + 113: uint16(23614), + 114: uint16(32428), + 115: uint16(26410), + 116: uint16(34074), + 117: uint16(21619), + 118: uint16(30031), + 119: uint16(32963), + 120: uint16(21890), + 121: uint16(39759), + 122: uint16(20301), + 123: uint16(28205), + 124: uint16(35859), + 125: uint16(23561), + 126: uint16(24944), + 127: uint16(21355), + 128: uint16(30239), + 129: uint16(28201), + 130: uint16(34442), + 131: uint16(25991), + 132: uint16(38395), + 133: uint16(32441), + 134: uint16(21563), + 135: uint16(31283), + 136: uint16(32010), + 137: uint16(38382), + 138: uint16(21985), + 139: uint16(32705), + 140: uint16(29934), + 141: uint16(25373), + 142: uint16(34583), + 143: uint16(28065), + 144: uint16(31389), + 145: uint16(25105), + 146: uint16(26017), + 147: uint16(21351), + 148: uint16(25569), + 149: uint16(27779), + 150: uint16(24043), + 151: uint16(21596), + 152: uint16(38056), + 153: uint16(20044), + 154: uint16(27745), + 155: uint16(35820), + 156: uint16(23627), + 157: uint16(26080), + 158: uint16(33436), + 159: uint16(26791), + 160: uint16(21566), + 161: uint16(21556), + 162: uint16(27595), + 163: uint16(27494), + 164: uint16(20116), + 165: uint16(25410), + 166: uint16(21320), + 167: uint16(33310), + 168: uint16(20237), + 169: uint16(20398), + 170: uint16(22366), + 171: uint16(25098), + 172: uint16(38654), + 173: uint16(26212), + 174: uint16(29289), + 175: uint16(21247), + 176: uint16(21153), + 177: uint16(24735), + 178: uint16(35823), + 179: uint16(26132), + 180: uint16(29081), + 181: uint16(26512), + 182: uint16(35199), + 183: uint16(30802), + 184: uint16(30717), + 185: uint16(26224), + 186: uint16(22075), + 187: uint16(21560), + 188: uint16(38177), + 189: uint16(29306), + }, + 78: { + 0: uint16(34725), + 1: uint16(34726), + 2: uint16(34727), + 3: uint16(34729), + 4: uint16(34730), + 5: uint16(34734), + 6: uint16(34736), + 7: uint16(34737), + 8: uint16(34738), + 9: uint16(34740), + 10: uint16(34742), + 11: uint16(34743), + 12: uint16(34744), + 13: uint16(34745), + 14: uint16(34747), + 15: uint16(34748), + 16: uint16(34750), + 17: uint16(34751), + 18: uint16(34753), + 19: uint16(34754), + 20: uint16(34755), + 21: uint16(34756), + 22: uint16(34757), + 23: uint16(34759), + 24: uint16(34760), + 25: uint16(34761), + 26: uint16(34764), + 27: uint16(34765), + 28: uint16(34766), + 29: uint16(34767), + 30: uint16(34768), + 31: uint16(34772), + 32: uint16(34773), + 33: uint16(34774), + 34: uint16(34775), + 35: uint16(34776), + 36: uint16(34777), + 37: uint16(34778), + 38: uint16(34780), + 39: uint16(34781), + 40: uint16(34782), + 41: uint16(34783), + 42: uint16(34785), + 43: uint16(34786), + 44: uint16(34787), + 45: uint16(34788), + 46: uint16(34790), + 47: uint16(34791), + 48: uint16(34792), + 49: uint16(34793), + 50: uint16(34795), + 51: uint16(34796), + 52: uint16(34797), + 53: uint16(34799), + 54: uint16(34800), + 55: uint16(34801), + 56: uint16(34802), + 57: uint16(34803), + 58: uint16(34804), + 59: uint16(34805), + 60: uint16(34806), + 61: uint16(34807), + 62: uint16(34808), + 63: uint16(34810), + 64: uint16(34811), + 65: uint16(34812), + 66: uint16(34813), + 67: uint16(34815), + 68: uint16(34816), + 69: uint16(34817), + 70: uint16(34818), + 71: uint16(34820), + 72: uint16(34821), + 73: uint16(34822), + 74: uint16(34823), + 75: uint16(34824), + 76: uint16(34825), + 77: uint16(34827), + 78: uint16(34828), + 79: uint16(34829), + 80: uint16(34830), + 81: uint16(34831), + 82: uint16(34832), + 83: uint16(34833), + 84: uint16(34834), + 85: uint16(34836), + 86: uint16(34839), + 87: uint16(34840), + 88: uint16(34841), + 89: uint16(34842), + 90: uint16(34844), + 91: uint16(34845), + 92: uint16(34846), + 93: uint16(34847), + 94: uint16(34848), + 95: uint16(34851), + 96: uint16(31232), + 97: uint16(24687), + 98: uint16(24076), + 99: uint16(24713), + 100: uint16(33181), + 101: uint16(22805), + 102: uint16(24796), + 103: uint16(29060), + 104: uint16(28911), + 105: uint16(28330), + 106: uint16(27728), + 107: uint16(29312), + 108: uint16(27268), + 109: uint16(34989), + 110: uint16(24109), + 111: uint16(20064), + 112: uint16(23219), + 113: uint16(21916), + 114: uint16(38115), + 115: uint16(27927), + 116: uint16(31995), + 117: uint16(38553), + 118: uint16(25103), + 119: uint16(32454), + 120: uint16(30606), + 121: uint16(34430), + 122: uint16(21283), + 123: uint16(38686), + 124: uint16(36758), + 125: uint16(26247), + 126: uint16(23777), + 127: uint16(20384), + 128: uint16(29421), + 129: uint16(19979), + 130: uint16(21414), + 131: uint16(22799), + 132: uint16(21523), + 133: uint16(25472), + 134: uint16(38184), + 135: uint16(20808), + 136: uint16(20185), + 137: uint16(40092), + 138: uint16(32420), + 139: uint16(21688), + 140: uint16(36132), + 141: uint16(34900), + 142: uint16(33335), + 143: uint16(38386), + 144: uint16(28046), + 145: uint16(24358), + 146: uint16(23244), + 147: uint16(26174), + 148: uint16(38505), + 149: uint16(29616), + 150: uint16(29486), + 151: uint16(21439), + 152: uint16(33146), + 153: uint16(39301), + 154: uint16(32673), + 155: uint16(23466), + 156: uint16(38519), + 157: uint16(38480), + 158: uint16(32447), + 159: uint16(30456), + 160: uint16(21410), + 161: uint16(38262), + 162: uint16(39321), + 163: uint16(31665), + 164: uint16(35140), + 165: uint16(28248), + 166: uint16(20065), + 167: uint16(32724), + 168: uint16(31077), + 169: uint16(35814), + 170: uint16(24819), + 171: uint16(21709), + 172: uint16(20139), + 173: uint16(39033), + 174: uint16(24055), + 175: uint16(27233), + 176: uint16(20687), + 177: uint16(21521), + 178: uint16(35937), + 179: uint16(33831), + 180: uint16(30813), + 181: uint16(38660), + 182: uint16(21066), + 183: uint16(21742), + 184: uint16(22179), + 185: uint16(38144), + 186: uint16(28040), + 187: uint16(23477), + 188: uint16(28102), + 189: uint16(26195), + }, + 79: { + 0: uint16(34852), + 1: uint16(34853), + 2: uint16(34854), + 3: uint16(34855), + 4: uint16(34856), + 5: uint16(34857), + 6: uint16(34858), + 7: uint16(34859), + 8: uint16(34860), + 9: uint16(34861), + 10: uint16(34862), + 11: uint16(34863), + 12: uint16(34864), + 13: uint16(34865), + 14: uint16(34867), + 15: uint16(34868), + 16: uint16(34869), + 17: uint16(34870), + 18: uint16(34871), + 19: uint16(34872), + 20: uint16(34874), + 21: uint16(34875), + 22: uint16(34877), + 23: uint16(34878), + 24: uint16(34879), + 25: uint16(34881), + 26: uint16(34882), + 27: uint16(34883), + 28: uint16(34886), + 29: uint16(34887), + 30: uint16(34888), + 31: uint16(34889), + 32: uint16(34890), + 33: uint16(34891), + 34: uint16(34894), + 35: uint16(34895), + 36: uint16(34896), + 37: uint16(34897), + 38: uint16(34898), + 39: uint16(34899), + 40: uint16(34901), + 41: uint16(34902), + 42: uint16(34904), + 43: uint16(34906), + 44: uint16(34907), + 45: uint16(34908), + 46: uint16(34909), + 47: uint16(34910), + 48: uint16(34911), + 49: uint16(34912), + 50: uint16(34918), + 51: uint16(34919), + 52: uint16(34922), + 53: uint16(34925), + 54: uint16(34927), + 55: uint16(34929), + 56: uint16(34931), + 57: uint16(34932), + 58: uint16(34933), + 59: uint16(34934), + 60: uint16(34936), + 61: uint16(34937), + 62: uint16(34938), + 63: uint16(34939), + 64: uint16(34940), + 65: uint16(34944), + 66: uint16(34947), + 67: uint16(34950), + 68: uint16(34951), + 69: uint16(34953), + 70: uint16(34954), + 71: uint16(34956), + 72: uint16(34958), + 73: uint16(34959), + 74: uint16(34960), + 75: uint16(34961), + 76: uint16(34963), + 77: uint16(34964), + 78: uint16(34965), + 79: uint16(34967), + 80: uint16(34968), + 81: uint16(34969), + 82: uint16(34970), + 83: uint16(34971), + 84: uint16(34973), + 85: uint16(34974), + 86: uint16(34975), + 87: uint16(34976), + 88: uint16(34977), + 89: uint16(34979), + 90: uint16(34981), + 91: uint16(34982), + 92: uint16(34983), + 93: uint16(34984), + 94: uint16(34985), + 95: uint16(34986), + 96: uint16(23567), + 97: uint16(23389), + 98: uint16(26657), + 99: uint16(32918), + 100: uint16(21880), + 101: uint16(31505), + 102: uint16(25928), + 103: uint16(26964), + 104: uint16(20123), + 105: uint16(27463), + 106: uint16(34638), + 107: uint16(38795), + 108: uint16(21327), + 109: uint16(25375), + 110: uint16(25658), + 111: uint16(37034), + 112: uint16(26012), + 113: uint16(32961), + 114: uint16(35856), + 115: uint16(20889), + 116: uint16(26800), + 117: uint16(21368), + 118: uint16(34809), + 119: uint16(25032), + 120: uint16(27844), + 121: uint16(27899), + 122: uint16(35874), + 123: uint16(23633), + 124: uint16(34218), + 125: uint16(33455), + 126: uint16(38156), + 127: uint16(27427), + 128: uint16(36763), + 129: uint16(26032), + 130: uint16(24571), + 131: uint16(24515), + 132: uint16(20449), + 133: uint16(34885), + 134: uint16(26143), + 135: uint16(33125), + 136: uint16(29481), + 137: uint16(24826), + 138: uint16(20852), + 139: uint16(21009), + 140: uint16(22411), + 141: uint16(24418), + 142: uint16(37026), + 143: uint16(34892), + 144: uint16(37266), + 145: uint16(24184), + 146: uint16(26447), + 147: uint16(24615), + 148: uint16(22995), + 149: uint16(20804), + 150: uint16(20982), + 151: uint16(33016), + 152: uint16(21256), + 153: uint16(27769), + 154: uint16(38596), + 155: uint16(29066), + 156: uint16(20241), + 157: uint16(20462), + 158: uint16(32670), + 159: uint16(26429), + 160: uint16(21957), + 161: uint16(38152), + 162: uint16(31168), + 163: uint16(34966), + 164: uint16(32483), + 165: uint16(22687), + 166: uint16(25100), + 167: uint16(38656), + 168: uint16(34394), + 169: uint16(22040), + 170: uint16(39035), + 171: uint16(24464), + 172: uint16(35768), + 173: uint16(33988), + 174: uint16(37207), + 175: uint16(21465), + 176: uint16(26093), + 177: uint16(24207), + 178: uint16(30044), + 179: uint16(24676), + 180: uint16(32110), + 181: uint16(23167), + 182: uint16(32490), + 183: uint16(32493), + 184: uint16(36713), + 185: uint16(21927), + 186: uint16(23459), + 187: uint16(24748), + 188: uint16(26059), + 189: uint16(29572), + }, + 80: { + 0: uint16(34988), + 1: uint16(34990), + 2: uint16(34991), + 3: uint16(34992), + 4: uint16(34994), + 5: uint16(34995), + 6: uint16(34996), + 7: uint16(34997), + 8: uint16(34998), + 9: uint16(35000), + 10: uint16(35001), + 11: uint16(35002), + 12: uint16(35003), + 13: uint16(35005), + 14: uint16(35006), + 15: uint16(35007), + 16: uint16(35008), + 17: uint16(35011), + 18: uint16(35012), + 19: uint16(35015), + 20: uint16(35016), + 21: uint16(35018), + 22: uint16(35019), + 23: uint16(35020), + 24: uint16(35021), + 25: uint16(35023), + 26: uint16(35024), + 27: uint16(35025), + 28: uint16(35027), + 29: uint16(35030), + 30: uint16(35031), + 31: uint16(35034), + 32: uint16(35035), + 33: uint16(35036), + 34: uint16(35037), + 35: uint16(35038), + 36: uint16(35040), + 37: uint16(35041), + 38: uint16(35046), + 39: uint16(35047), + 40: uint16(35049), + 41: uint16(35050), + 42: uint16(35051), + 43: uint16(35052), + 44: uint16(35053), + 45: uint16(35054), + 46: uint16(35055), + 47: uint16(35058), + 48: uint16(35061), + 49: uint16(35062), + 50: uint16(35063), + 51: uint16(35066), + 52: uint16(35067), + 53: uint16(35069), + 54: uint16(35071), + 55: uint16(35072), + 56: uint16(35073), + 57: uint16(35075), + 58: uint16(35076), + 59: uint16(35077), + 60: uint16(35078), + 61: uint16(35079), + 62: uint16(35080), + 63: uint16(35081), + 64: uint16(35083), + 65: uint16(35084), + 66: uint16(35085), + 67: uint16(35086), + 68: uint16(35087), + 69: uint16(35089), + 70: uint16(35092), + 71: uint16(35093), + 72: uint16(35094), + 73: uint16(35095), + 74: uint16(35096), + 75: uint16(35100), + 76: uint16(35101), + 77: uint16(35102), + 78: uint16(35103), + 79: uint16(35104), + 80: uint16(35106), + 81: uint16(35107), + 82: uint16(35108), + 83: uint16(35110), + 84: uint16(35111), + 85: uint16(35112), + 86: uint16(35113), + 87: uint16(35116), + 88: uint16(35117), + 89: uint16(35118), + 90: uint16(35119), + 91: uint16(35121), + 92: uint16(35122), + 93: uint16(35123), + 94: uint16(35125), + 95: uint16(35127), + 96: uint16(36873), + 97: uint16(30307), + 98: uint16(30505), + 99: uint16(32474), + 100: uint16(38772), + 101: uint16(34203), + 102: uint16(23398), + 103: uint16(31348), + 104: uint16(38634), + 105: uint16(34880), + 106: uint16(21195), + 107: uint16(29071), + 108: uint16(24490), + 109: uint16(26092), + 110: uint16(35810), + 111: uint16(23547), + 112: uint16(39535), + 113: uint16(24033), + 114: uint16(27529), + 115: uint16(27739), + 116: uint16(35757), + 117: uint16(35759), + 118: uint16(36874), + 119: uint16(36805), + 120: uint16(21387), + 121: uint16(25276), + 122: uint16(40486), + 123: uint16(40493), + 124: uint16(21568), + 125: uint16(20011), + 126: uint16(33469), + 127: uint16(29273), + 128: uint16(34460), + 129: uint16(23830), + 130: uint16(34905), + 131: uint16(28079), + 132: uint16(38597), + 133: uint16(21713), + 134: uint16(20122), + 135: uint16(35766), + 136: uint16(28937), + 137: uint16(21693), + 138: uint16(38409), + 139: uint16(28895), + 140: uint16(28153), + 141: uint16(30416), + 142: uint16(20005), + 143: uint16(30740), + 144: uint16(34578), + 145: uint16(23721), + 146: uint16(24310), + 147: uint16(35328), + 148: uint16(39068), + 149: uint16(38414), + 150: uint16(28814), + 151: uint16(27839), + 152: uint16(22852), + 153: uint16(25513), + 154: uint16(30524), + 155: uint16(34893), + 156: uint16(28436), + 157: uint16(33395), + 158: uint16(22576), + 159: uint16(29141), + 160: uint16(21388), + 161: uint16(30746), + 162: uint16(38593), + 163: uint16(21761), + 164: uint16(24422), + 165: uint16(28976), + 166: uint16(23476), + 167: uint16(35866), + 168: uint16(39564), + 169: uint16(27523), + 170: uint16(22830), + 171: uint16(40495), + 172: uint16(31207), + 173: uint16(26472), + 174: uint16(25196), + 175: uint16(20335), + 176: uint16(30113), + 177: uint16(32650), + 178: uint16(27915), + 179: uint16(38451), + 180: uint16(27687), + 181: uint16(20208), + 182: uint16(30162), + 183: uint16(20859), + 184: uint16(26679), + 185: uint16(28478), + 186: uint16(36992), + 187: uint16(33136), + 188: uint16(22934), + 189: uint16(29814), + }, + 81: { + 0: uint16(35128), + 1: uint16(35129), + 2: uint16(35130), + 3: uint16(35131), + 4: uint16(35132), + 5: uint16(35133), + 6: uint16(35134), + 7: uint16(35135), + 8: uint16(35136), + 9: uint16(35138), + 10: uint16(35139), + 11: uint16(35141), + 12: uint16(35142), + 13: uint16(35143), + 14: uint16(35144), + 15: uint16(35145), + 16: uint16(35146), + 17: uint16(35147), + 18: uint16(35148), + 19: uint16(35149), + 20: uint16(35150), + 21: uint16(35151), + 22: uint16(35152), + 23: uint16(35153), + 24: uint16(35154), + 25: uint16(35155), + 26: uint16(35156), + 27: uint16(35157), + 28: uint16(35158), + 29: uint16(35159), + 30: uint16(35160), + 31: uint16(35161), + 32: uint16(35162), + 33: uint16(35163), + 34: uint16(35164), + 35: uint16(35165), + 36: uint16(35168), + 37: uint16(35169), + 38: uint16(35170), + 39: uint16(35171), + 40: uint16(35172), + 41: uint16(35173), + 42: uint16(35175), + 43: uint16(35176), + 44: uint16(35177), + 45: uint16(35178), + 46: uint16(35179), + 47: uint16(35180), + 48: uint16(35181), + 49: uint16(35182), + 50: uint16(35183), + 51: uint16(35184), + 52: uint16(35185), + 53: uint16(35186), + 54: uint16(35187), + 55: uint16(35188), + 56: uint16(35189), + 57: uint16(35190), + 58: uint16(35191), + 59: uint16(35192), + 60: uint16(35193), + 61: uint16(35194), + 62: uint16(35196), + 63: uint16(35197), + 64: uint16(35198), + 65: uint16(35200), + 66: uint16(35202), + 67: uint16(35204), + 68: uint16(35205), + 69: uint16(35207), + 70: uint16(35208), + 71: uint16(35209), + 72: uint16(35210), + 73: uint16(35211), + 74: uint16(35212), + 75: uint16(35213), + 76: uint16(35214), + 77: uint16(35215), + 78: uint16(35216), + 79: uint16(35217), + 80: uint16(35218), + 81: uint16(35219), + 82: uint16(35220), + 83: uint16(35221), + 84: uint16(35222), + 85: uint16(35223), + 86: uint16(35224), + 87: uint16(35225), + 88: uint16(35226), + 89: uint16(35227), + 90: uint16(35228), + 91: uint16(35229), + 92: uint16(35230), + 93: uint16(35231), + 94: uint16(35232), + 95: uint16(35233), + 96: uint16(25671), + 97: uint16(23591), + 98: uint16(36965), + 99: uint16(31377), + 100: uint16(35875), + 101: uint16(23002), + 102: uint16(21676), + 103: uint16(33280), + 104: uint16(33647), + 105: uint16(35201), + 106: uint16(32768), + 107: uint16(26928), + 108: uint16(22094), + 109: uint16(32822), + 110: uint16(29239), + 111: uint16(37326), + 112: uint16(20918), + 113: uint16(20063), + 114: uint16(39029), + 115: uint16(25494), + 116: uint16(19994), + 117: uint16(21494), + 118: uint16(26355), + 119: uint16(33099), + 120: uint16(22812), + 121: uint16(28082), + 122: uint16(19968), + 123: uint16(22777), + 124: uint16(21307), + 125: uint16(25558), + 126: uint16(38129), + 127: uint16(20381), + 128: uint16(20234), + 129: uint16(34915), + 130: uint16(39056), + 131: uint16(22839), + 132: uint16(36951), + 133: uint16(31227), + 134: uint16(20202), + 135: uint16(33008), + 136: uint16(30097), + 137: uint16(27778), + 138: uint16(23452), + 139: uint16(23016), + 140: uint16(24413), + 141: uint16(26885), + 142: uint16(34433), + 143: uint16(20506), + 144: uint16(24050), + 145: uint16(20057), + 146: uint16(30691), + 147: uint16(20197), + 148: uint16(33402), + 149: uint16(25233), + 150: uint16(26131), + 151: uint16(37009), + 152: uint16(23673), + 153: uint16(20159), + 154: uint16(24441), + 155: uint16(33222), + 156: uint16(36920), + 157: uint16(32900), + 158: uint16(30123), + 159: uint16(20134), + 160: uint16(35028), + 161: uint16(24847), + 162: uint16(27589), + 163: uint16(24518), + 164: uint16(20041), + 165: uint16(30410), + 166: uint16(28322), + 167: uint16(35811), + 168: uint16(35758), + 169: uint16(35850), + 170: uint16(35793), + 171: uint16(24322), + 172: uint16(32764), + 173: uint16(32716), + 174: uint16(32462), + 175: uint16(33589), + 176: uint16(33643), + 177: uint16(22240), + 178: uint16(27575), + 179: uint16(38899), + 180: uint16(38452), + 181: uint16(23035), + 182: uint16(21535), + 183: uint16(38134), + 184: uint16(28139), + 185: uint16(23493), + 186: uint16(39278), + 187: uint16(23609), + 188: uint16(24341), + 189: uint16(38544), + }, + 82: { + 0: uint16(35234), + 1: uint16(35235), + 2: uint16(35236), + 3: uint16(35237), + 4: uint16(35238), + 5: uint16(35239), + 6: uint16(35240), + 7: uint16(35241), + 8: uint16(35242), + 9: uint16(35243), + 10: uint16(35244), + 11: uint16(35245), + 12: uint16(35246), + 13: uint16(35247), + 14: uint16(35248), + 15: uint16(35249), + 16: uint16(35250), + 17: uint16(35251), + 18: uint16(35252), + 19: uint16(35253), + 20: uint16(35254), + 21: uint16(35255), + 22: uint16(35256), + 23: uint16(35257), + 24: uint16(35258), + 25: uint16(35259), + 26: uint16(35260), + 27: uint16(35261), + 28: uint16(35262), + 29: uint16(35263), + 30: uint16(35264), + 31: uint16(35267), + 32: uint16(35277), + 33: uint16(35283), + 34: uint16(35284), + 35: uint16(35285), + 36: uint16(35287), + 37: uint16(35288), + 38: uint16(35289), + 39: uint16(35291), + 40: uint16(35293), + 41: uint16(35295), + 42: uint16(35296), + 43: uint16(35297), + 44: uint16(35298), + 45: uint16(35300), + 46: uint16(35303), + 47: uint16(35304), + 48: uint16(35305), + 49: uint16(35306), + 50: uint16(35308), + 51: uint16(35309), + 52: uint16(35310), + 53: uint16(35312), + 54: uint16(35313), + 55: uint16(35314), + 56: uint16(35316), + 57: uint16(35317), + 58: uint16(35318), + 59: uint16(35319), + 60: uint16(35320), + 61: uint16(35321), + 62: uint16(35322), + 63: uint16(35323), + 64: uint16(35324), + 65: uint16(35325), + 66: uint16(35326), + 67: uint16(35327), + 68: uint16(35329), + 69: uint16(35330), + 70: uint16(35331), + 71: uint16(35332), + 72: uint16(35333), + 73: uint16(35334), + 74: uint16(35336), + 75: uint16(35337), + 76: uint16(35338), + 77: uint16(35339), + 78: uint16(35340), + 79: uint16(35341), + 80: uint16(35342), + 81: uint16(35343), + 82: uint16(35344), + 83: uint16(35345), + 84: uint16(35346), + 85: uint16(35347), + 86: uint16(35348), + 87: uint16(35349), + 88: uint16(35350), + 89: uint16(35351), + 90: uint16(35352), + 91: uint16(35353), + 92: uint16(35354), + 93: uint16(35355), + 94: uint16(35356), + 95: uint16(35357), + 96: uint16(21360), + 97: uint16(33521), + 98: uint16(27185), + 99: uint16(23156), + 100: uint16(40560), + 101: uint16(24212), + 102: uint16(32552), + 103: uint16(33721), + 104: uint16(33828), + 105: uint16(33829), + 106: uint16(33639), + 107: uint16(34631), + 108: uint16(36814), + 109: uint16(36194), + 110: uint16(30408), + 111: uint16(24433), + 112: uint16(39062), + 113: uint16(30828), + 114: uint16(26144), + 115: uint16(21727), + 116: uint16(25317), + 117: uint16(20323), + 118: uint16(33219), + 119: uint16(30152), + 120: uint16(24248), + 121: uint16(38605), + 122: uint16(36362), + 123: uint16(34553), + 124: uint16(21647), + 125: uint16(27891), + 126: uint16(28044), + 127: uint16(27704), + 128: uint16(24703), + 129: uint16(21191), + 130: uint16(29992), + 131: uint16(24189), + 132: uint16(20248), + 133: uint16(24736), + 134: uint16(24551), + 135: uint16(23588), + 136: uint16(30001), + 137: uint16(37038), + 138: uint16(38080), + 139: uint16(29369), + 140: uint16(27833), + 141: uint16(28216), + 142: uint16(37193), + 143: uint16(26377), + 144: uint16(21451), + 145: uint16(21491), + 146: uint16(20305), + 147: uint16(37321), + 148: uint16(35825), + 149: uint16(21448), + 150: uint16(24188), + 151: uint16(36802), + 152: uint16(28132), + 153: uint16(20110), + 154: uint16(30402), + 155: uint16(27014), + 156: uint16(34398), + 157: uint16(24858), + 158: uint16(33286), + 159: uint16(20313), + 160: uint16(20446), + 161: uint16(36926), + 162: uint16(40060), + 163: uint16(24841), + 164: uint16(28189), + 165: uint16(28180), + 166: uint16(38533), + 167: uint16(20104), + 168: uint16(23089), + 169: uint16(38632), + 170: uint16(19982), + 171: uint16(23679), + 172: uint16(31161), + 173: uint16(23431), + 174: uint16(35821), + 175: uint16(32701), + 176: uint16(29577), + 177: uint16(22495), + 178: uint16(33419), + 179: uint16(37057), + 180: uint16(21505), + 181: uint16(36935), + 182: uint16(21947), + 183: uint16(23786), + 184: uint16(24481), + 185: uint16(24840), + 186: uint16(27442), + 187: uint16(29425), + 188: uint16(32946), + 189: uint16(35465), + }, + 83: { + 0: uint16(35358), + 1: uint16(35359), + 2: uint16(35360), + 3: uint16(35361), + 4: uint16(35362), + 5: uint16(35363), + 6: uint16(35364), + 7: uint16(35365), + 8: uint16(35366), + 9: uint16(35367), + 10: uint16(35368), + 11: uint16(35369), + 12: uint16(35370), + 13: uint16(35371), + 14: uint16(35372), + 15: uint16(35373), + 16: uint16(35374), + 17: uint16(35375), + 18: uint16(35376), + 19: uint16(35377), + 20: uint16(35378), + 21: uint16(35379), + 22: uint16(35380), + 23: uint16(35381), + 24: uint16(35382), + 25: uint16(35383), + 26: uint16(35384), + 27: uint16(35385), + 28: uint16(35386), + 29: uint16(35387), + 30: uint16(35388), + 31: uint16(35389), + 32: uint16(35391), + 33: uint16(35392), + 34: uint16(35393), + 35: uint16(35394), + 36: uint16(35395), + 37: uint16(35396), + 38: uint16(35397), + 39: uint16(35398), + 40: uint16(35399), + 41: uint16(35401), + 42: uint16(35402), + 43: uint16(35403), + 44: uint16(35404), + 45: uint16(35405), + 46: uint16(35406), + 47: uint16(35407), + 48: uint16(35408), + 49: uint16(35409), + 50: uint16(35410), + 51: uint16(35411), + 52: uint16(35412), + 53: uint16(35413), + 54: uint16(35414), + 55: uint16(35415), + 56: uint16(35416), + 57: uint16(35417), + 58: uint16(35418), + 59: uint16(35419), + 60: uint16(35420), + 61: uint16(35421), + 62: uint16(35422), + 63: uint16(35423), + 64: uint16(35424), + 65: uint16(35425), + 66: uint16(35426), + 67: uint16(35427), + 68: uint16(35428), + 69: uint16(35429), + 70: uint16(35430), + 71: uint16(35431), + 72: uint16(35432), + 73: uint16(35433), + 74: uint16(35434), + 75: uint16(35435), + 76: uint16(35436), + 77: uint16(35437), + 78: uint16(35438), + 79: uint16(35439), + 80: uint16(35440), + 81: uint16(35441), + 82: uint16(35442), + 83: uint16(35443), + 84: uint16(35444), + 85: uint16(35445), + 86: uint16(35446), + 87: uint16(35447), + 88: uint16(35448), + 89: uint16(35450), + 90: uint16(35451), + 91: uint16(35452), + 92: uint16(35453), + 93: uint16(35454), + 94: uint16(35455), + 95: uint16(35456), + 96: uint16(28020), + 97: uint16(23507), + 98: uint16(35029), + 99: uint16(39044), + 100: uint16(35947), + 101: uint16(39533), + 102: uint16(40499), + 103: uint16(28170), + 104: uint16(20900), + 105: uint16(20803), + 106: uint16(22435), + 107: uint16(34945), + 108: uint16(21407), + 109: uint16(25588), + 110: uint16(36757), + 111: uint16(22253), + 112: uint16(21592), + 113: uint16(22278), + 114: uint16(29503), + 115: uint16(28304), + 116: uint16(32536), + 117: uint16(36828), + 118: uint16(33489), + 119: uint16(24895), + 120: uint16(24616), + 121: uint16(38498), + 122: uint16(26352), + 123: uint16(32422), + 124: uint16(36234), + 125: uint16(36291), + 126: uint16(38053), + 127: uint16(23731), + 128: uint16(31908), + 129: uint16(26376), + 130: uint16(24742), + 131: uint16(38405), + 132: uint16(32792), + 133: uint16(20113), + 134: uint16(37095), + 135: uint16(21248), + 136: uint16(38504), + 137: uint16(20801), + 138: uint16(36816), + 139: uint16(34164), + 140: uint16(37213), + 141: uint16(26197), + 142: uint16(38901), + 143: uint16(23381), + 144: uint16(21277), + 145: uint16(30776), + 146: uint16(26434), + 147: uint16(26685), + 148: uint16(21705), + 149: uint16(28798), + 150: uint16(23472), + 151: uint16(36733), + 152: uint16(20877), + 153: uint16(22312), + 154: uint16(21681), + 155: uint16(25874), + 156: uint16(26242), + 157: uint16(36190), + 158: uint16(36163), + 159: uint16(33039), + 160: uint16(33900), + 161: uint16(36973), + 162: uint16(31967), + 163: uint16(20991), + 164: uint16(34299), + 165: uint16(26531), + 166: uint16(26089), + 167: uint16(28577), + 168: uint16(34468), + 169: uint16(36481), + 170: uint16(22122), + 171: uint16(36896), + 172: uint16(30338), + 173: uint16(28790), + 174: uint16(29157), + 175: uint16(36131), + 176: uint16(25321), + 177: uint16(21017), + 178: uint16(27901), + 179: uint16(36156), + 180: uint16(24590), + 181: uint16(22686), + 182: uint16(24974), + 183: uint16(26366), + 184: uint16(36192), + 185: uint16(25166), + 186: uint16(21939), + 187: uint16(28195), + 188: uint16(26413), + 189: uint16(36711), + }, + 84: { + 0: uint16(35457), + 1: uint16(35458), + 2: uint16(35459), + 3: uint16(35460), + 4: uint16(35461), + 5: uint16(35462), + 6: uint16(35463), + 7: uint16(35464), + 8: uint16(35467), + 9: uint16(35468), + 10: uint16(35469), + 11: uint16(35470), + 12: uint16(35471), + 13: uint16(35472), + 14: uint16(35473), + 15: uint16(35474), + 16: uint16(35476), + 17: uint16(35477), + 18: uint16(35478), + 19: uint16(35479), + 20: uint16(35480), + 21: uint16(35481), + 22: uint16(35482), + 23: uint16(35483), + 24: uint16(35484), + 25: uint16(35485), + 26: uint16(35486), + 27: uint16(35487), + 28: uint16(35488), + 29: uint16(35489), + 30: uint16(35490), + 31: uint16(35491), + 32: uint16(35492), + 33: uint16(35493), + 34: uint16(35494), + 35: uint16(35495), + 36: uint16(35496), + 37: uint16(35497), + 38: uint16(35498), + 39: uint16(35499), + 40: uint16(35500), + 41: uint16(35501), + 42: uint16(35502), + 43: uint16(35503), + 44: uint16(35504), + 45: uint16(35505), + 46: uint16(35506), + 47: uint16(35507), + 48: uint16(35508), + 49: uint16(35509), + 50: uint16(35510), + 51: uint16(35511), + 52: uint16(35512), + 53: uint16(35513), + 54: uint16(35514), + 55: uint16(35515), + 56: uint16(35516), + 57: uint16(35517), + 58: uint16(35518), + 59: uint16(35519), + 60: uint16(35520), + 61: uint16(35521), + 62: uint16(35522), + 63: uint16(35523), + 64: uint16(35524), + 65: uint16(35525), + 66: uint16(35526), + 67: uint16(35527), + 68: uint16(35528), + 69: uint16(35529), + 70: uint16(35530), + 71: uint16(35531), + 72: uint16(35532), + 73: uint16(35533), + 74: uint16(35534), + 75: uint16(35535), + 76: uint16(35536), + 77: uint16(35537), + 78: uint16(35538), + 79: uint16(35539), + 80: uint16(35540), + 81: uint16(35541), + 82: uint16(35542), + 83: uint16(35543), + 84: uint16(35544), + 85: uint16(35545), + 86: uint16(35546), + 87: uint16(35547), + 88: uint16(35548), + 89: uint16(35549), + 90: uint16(35550), + 91: uint16(35551), + 92: uint16(35552), + 93: uint16(35553), + 94: uint16(35554), + 95: uint16(35555), + 96: uint16(38113), + 97: uint16(38392), + 98: uint16(30504), + 99: uint16(26629), + 100: uint16(27048), + 101: uint16(21643), + 102: uint16(20045), + 103: uint16(28856), + 104: uint16(35784), + 105: uint16(25688), + 106: uint16(25995), + 107: uint16(23429), + 108: uint16(31364), + 109: uint16(20538), + 110: uint16(23528), + 111: uint16(30651), + 112: uint16(27617), + 113: uint16(35449), + 114: uint16(31896), + 115: uint16(27838), + 116: uint16(30415), + 117: uint16(26025), + 118: uint16(36759), + 119: uint16(23853), + 120: uint16(23637), + 121: uint16(34360), + 122: uint16(26632), + 123: uint16(21344), + 124: uint16(25112), + 125: uint16(31449), + 126: uint16(28251), + 127: uint16(32509), + 128: uint16(27167), + 129: uint16(31456), + 130: uint16(24432), + 131: uint16(28467), + 132: uint16(24352), + 133: uint16(25484), + 134: uint16(28072), + 135: uint16(26454), + 136: uint16(19976), + 137: uint16(24080), + 138: uint16(36134), + 139: uint16(20183), + 140: uint16(32960), + 141: uint16(30260), + 142: uint16(38556), + 143: uint16(25307), + 144: uint16(26157), + 145: uint16(25214), + 146: uint16(27836), + 147: uint16(36213), + 148: uint16(29031), + 149: uint16(32617), + 150: uint16(20806), + 151: uint16(32903), + 152: uint16(21484), + 153: uint16(36974), + 154: uint16(25240), + 155: uint16(21746), + 156: uint16(34544), + 157: uint16(36761), + 158: uint16(32773), + 159: uint16(38167), + 160: uint16(34071), + 161: uint16(36825), + 162: uint16(27993), + 163: uint16(29645), + 164: uint16(26015), + 165: uint16(30495), + 166: uint16(29956), + 167: uint16(30759), + 168: uint16(33275), + 169: uint16(36126), + 170: uint16(38024), + 171: uint16(20390), + 172: uint16(26517), + 173: uint16(30137), + 174: uint16(35786), + 175: uint16(38663), + 176: uint16(25391), + 177: uint16(38215), + 178: uint16(38453), + 179: uint16(33976), + 180: uint16(25379), + 181: uint16(30529), + 182: uint16(24449), + 183: uint16(29424), + 184: uint16(20105), + 185: uint16(24596), + 186: uint16(25972), + 187: uint16(25327), + 188: uint16(27491), + 189: uint16(25919), + }, + 85: { + 0: uint16(35556), + 1: uint16(35557), + 2: uint16(35558), + 3: uint16(35559), + 4: uint16(35560), + 5: uint16(35561), + 6: uint16(35562), + 7: uint16(35563), + 8: uint16(35564), + 9: uint16(35565), + 10: uint16(35566), + 11: uint16(35567), + 12: uint16(35568), + 13: uint16(35569), + 14: uint16(35570), + 15: uint16(35571), + 16: uint16(35572), + 17: uint16(35573), + 18: uint16(35574), + 19: uint16(35575), + 20: uint16(35576), + 21: uint16(35577), + 22: uint16(35578), + 23: uint16(35579), + 24: uint16(35580), + 25: uint16(35581), + 26: uint16(35582), + 27: uint16(35583), + 28: uint16(35584), + 29: uint16(35585), + 30: uint16(35586), + 31: uint16(35587), + 32: uint16(35588), + 33: uint16(35589), + 34: uint16(35590), + 35: uint16(35592), + 36: uint16(35593), + 37: uint16(35594), + 38: uint16(35595), + 39: uint16(35596), + 40: uint16(35597), + 41: uint16(35598), + 42: uint16(35599), + 43: uint16(35600), + 44: uint16(35601), + 45: uint16(35602), + 46: uint16(35603), + 47: uint16(35604), + 48: uint16(35605), + 49: uint16(35606), + 50: uint16(35607), + 51: uint16(35608), + 52: uint16(35609), + 53: uint16(35610), + 54: uint16(35611), + 55: uint16(35612), + 56: uint16(35613), + 57: uint16(35614), + 58: uint16(35615), + 59: uint16(35616), + 60: uint16(35617), + 61: uint16(35618), + 62: uint16(35619), + 63: uint16(35620), + 64: uint16(35621), + 65: uint16(35623), + 66: uint16(35624), + 67: uint16(35625), + 68: uint16(35626), + 69: uint16(35627), + 70: uint16(35628), + 71: uint16(35629), + 72: uint16(35630), + 73: uint16(35631), + 74: uint16(35632), + 75: uint16(35633), + 76: uint16(35634), + 77: uint16(35635), + 78: uint16(35636), + 79: uint16(35637), + 80: uint16(35638), + 81: uint16(35639), + 82: uint16(35640), + 83: uint16(35641), + 84: uint16(35642), + 85: uint16(35643), + 86: uint16(35644), + 87: uint16(35645), + 88: uint16(35646), + 89: uint16(35647), + 90: uint16(35648), + 91: uint16(35649), + 92: uint16(35650), + 93: uint16(35651), + 94: uint16(35652), + 95: uint16(35653), + 96: uint16(24103), + 97: uint16(30151), + 98: uint16(37073), + 99: uint16(35777), + 100: uint16(33437), + 101: uint16(26525), + 102: uint16(25903), + 103: uint16(21553), + 104: uint16(34584), + 105: uint16(30693), + 106: uint16(32930), + 107: uint16(33026), + 108: uint16(27713), + 109: uint16(20043), + 110: uint16(32455), + 111: uint16(32844), + 112: uint16(30452), + 113: uint16(26893), + 114: uint16(27542), + 115: uint16(25191), + 116: uint16(20540), + 117: uint16(20356), + 118: uint16(22336), + 119: uint16(25351), + 120: uint16(27490), + 121: uint16(36286), + 122: uint16(21482), + 123: uint16(26088), + 124: uint16(32440), + 125: uint16(24535), + 126: uint16(25370), + 127: uint16(25527), + 128: uint16(33267), + 129: uint16(33268), + 130: uint16(32622), + 131: uint16(24092), + 132: uint16(23769), + 133: uint16(21046), + 134: uint16(26234), + 135: uint16(31209), + 136: uint16(31258), + 137: uint16(36136), + 138: uint16(28825), + 139: uint16(30164), + 140: uint16(28382), + 141: uint16(27835), + 142: uint16(31378), + 143: uint16(20013), + 144: uint16(30405), + 145: uint16(24544), + 146: uint16(38047), + 147: uint16(34935), + 148: uint16(32456), + 149: uint16(31181), + 150: uint16(32959), + 151: uint16(37325), + 152: uint16(20210), + 153: uint16(20247), + 154: uint16(33311), + 155: uint16(21608), + 156: uint16(24030), + 157: uint16(27954), + 158: uint16(35788), + 159: uint16(31909), + 160: uint16(36724), + 161: uint16(32920), + 162: uint16(24090), + 163: uint16(21650), + 164: uint16(30385), + 165: uint16(23449), + 166: uint16(26172), + 167: uint16(39588), + 168: uint16(29664), + 169: uint16(26666), + 170: uint16(34523), + 171: uint16(26417), + 172: uint16(29482), + 173: uint16(35832), + 174: uint16(35803), + 175: uint16(36880), + 176: uint16(31481), + 177: uint16(28891), + 178: uint16(29038), + 179: uint16(25284), + 180: uint16(30633), + 181: uint16(22065), + 182: uint16(20027), + 183: uint16(33879), + 184: uint16(26609), + 185: uint16(21161), + 186: uint16(34496), + 187: uint16(36142), + 188: uint16(38136), + 189: uint16(31569), + }, + 86: { + 0: uint16(35654), + 1: uint16(35655), + 2: uint16(35656), + 3: uint16(35657), + 4: uint16(35658), + 5: uint16(35659), + 6: uint16(35660), + 7: uint16(35661), + 8: uint16(35662), + 9: uint16(35663), + 10: uint16(35664), + 11: uint16(35665), + 12: uint16(35666), + 13: uint16(35667), + 14: uint16(35668), + 15: uint16(35669), + 16: uint16(35670), + 17: uint16(35671), + 18: uint16(35672), + 19: uint16(35673), + 20: uint16(35674), + 21: uint16(35675), + 22: uint16(35676), + 23: uint16(35677), + 24: uint16(35678), + 25: uint16(35679), + 26: uint16(35680), + 27: uint16(35681), + 28: uint16(35682), + 29: uint16(35683), + 30: uint16(35684), + 31: uint16(35685), + 32: uint16(35687), + 33: uint16(35688), + 34: uint16(35689), + 35: uint16(35690), + 36: uint16(35691), + 37: uint16(35693), + 38: uint16(35694), + 39: uint16(35695), + 40: uint16(35696), + 41: uint16(35697), + 42: uint16(35698), + 43: uint16(35699), + 44: uint16(35700), + 45: uint16(35701), + 46: uint16(35702), + 47: uint16(35703), + 48: uint16(35704), + 49: uint16(35705), + 50: uint16(35706), + 51: uint16(35707), + 52: uint16(35708), + 53: uint16(35709), + 54: uint16(35710), + 55: uint16(35711), + 56: uint16(35712), + 57: uint16(35713), + 58: uint16(35714), + 59: uint16(35715), + 60: uint16(35716), + 61: uint16(35717), + 62: uint16(35718), + 63: uint16(35719), + 64: uint16(35720), + 65: uint16(35721), + 66: uint16(35722), + 67: uint16(35723), + 68: uint16(35724), + 69: uint16(35725), + 70: uint16(35726), + 71: uint16(35727), + 72: uint16(35728), + 73: uint16(35729), + 74: uint16(35730), + 75: uint16(35731), + 76: uint16(35732), + 77: uint16(35733), + 78: uint16(35734), + 79: uint16(35735), + 80: uint16(35736), + 81: uint16(35737), + 82: uint16(35738), + 83: uint16(35739), + 84: uint16(35740), + 85: uint16(35741), + 86: uint16(35742), + 87: uint16(35743), + 88: uint16(35756), + 89: uint16(35761), + 90: uint16(35771), + 91: uint16(35783), + 92: uint16(35792), + 93: uint16(35818), + 94: uint16(35849), + 95: uint16(35870), + 96: uint16(20303), + 97: uint16(27880), + 98: uint16(31069), + 99: uint16(39547), + 100: uint16(25235), + 101: uint16(29226), + 102: uint16(25341), + 103: uint16(19987), + 104: uint16(30742), + 105: uint16(36716), + 106: uint16(25776), + 107: uint16(36186), + 108: uint16(31686), + 109: uint16(26729), + 110: uint16(24196), + 111: uint16(35013), + 112: uint16(22918), + 113: uint16(25758), + 114: uint16(22766), + 115: uint16(29366), + 116: uint16(26894), + 117: uint16(38181), + 118: uint16(36861), + 119: uint16(36184), + 120: uint16(22368), + 121: uint16(32512), + 122: uint16(35846), + 123: uint16(20934), + 124: uint16(25417), + 125: uint16(25305), + 126: uint16(21331), + 127: uint16(26700), + 128: uint16(29730), + 129: uint16(33537), + 130: uint16(37196), + 131: uint16(21828), + 132: uint16(30528), + 133: uint16(28796), + 134: uint16(27978), + 135: uint16(20857), + 136: uint16(21672), + 137: uint16(36164), + 138: uint16(23039), + 139: uint16(28363), + 140: uint16(28100), + 141: uint16(23388), + 142: uint16(32043), + 143: uint16(20180), + 144: uint16(31869), + 145: uint16(28371), + 146: uint16(23376), + 147: uint16(33258), + 148: uint16(28173), + 149: uint16(23383), + 150: uint16(39683), + 151: uint16(26837), + 152: uint16(36394), + 153: uint16(23447), + 154: uint16(32508), + 155: uint16(24635), + 156: uint16(32437), + 157: uint16(37049), + 158: uint16(36208), + 159: uint16(22863), + 160: uint16(25549), + 161: uint16(31199), + 162: uint16(36275), + 163: uint16(21330), + 164: uint16(26063), + 165: uint16(31062), + 166: uint16(35781), + 167: uint16(38459), + 168: uint16(32452), + 169: uint16(38075), + 170: uint16(32386), + 171: uint16(22068), + 172: uint16(37257), + 173: uint16(26368), + 174: uint16(32618), + 175: uint16(23562), + 176: uint16(36981), + 177: uint16(26152), + 178: uint16(24038), + 179: uint16(20304), + 180: uint16(26590), + 181: uint16(20570), + 182: uint16(20316), + 183: uint16(22352), + 184: uint16(24231), + 185: uint16(59408), + 186: uint16(59409), + 187: uint16(59410), + 188: uint16(59411), + 189: uint16(59412), + }, + 87: { + 0: uint16(35896), + 1: uint16(35897), + 2: uint16(35898), + 3: uint16(35899), + 4: uint16(35900), + 5: uint16(35901), + 6: uint16(35902), + 7: uint16(35903), + 8: uint16(35904), + 9: uint16(35906), + 10: uint16(35907), + 11: uint16(35908), + 12: uint16(35909), + 13: uint16(35912), + 14: uint16(35914), + 15: uint16(35915), + 16: uint16(35917), + 17: uint16(35918), + 18: uint16(35919), + 19: uint16(35920), + 20: uint16(35921), + 21: uint16(35922), + 22: uint16(35923), + 23: uint16(35924), + 24: uint16(35926), + 25: uint16(35927), + 26: uint16(35928), + 27: uint16(35929), + 28: uint16(35931), + 29: uint16(35932), + 30: uint16(35933), + 31: uint16(35934), + 32: uint16(35935), + 33: uint16(35936), + 34: uint16(35939), + 35: uint16(35940), + 36: uint16(35941), + 37: uint16(35942), + 38: uint16(35943), + 39: uint16(35944), + 40: uint16(35945), + 41: uint16(35948), + 42: uint16(35949), + 43: uint16(35950), + 44: uint16(35951), + 45: uint16(35952), + 46: uint16(35953), + 47: uint16(35954), + 48: uint16(35956), + 49: uint16(35957), + 50: uint16(35958), + 51: uint16(35959), + 52: uint16(35963), + 53: uint16(35964), + 54: uint16(35965), + 55: uint16(35966), + 56: uint16(35967), + 57: uint16(35968), + 58: uint16(35969), + 59: uint16(35971), + 60: uint16(35972), + 61: uint16(35974), + 62: uint16(35975), + 63: uint16(35976), + 64: uint16(35979), + 65: uint16(35981), + 66: uint16(35982), + 67: uint16(35983), + 68: uint16(35984), + 69: uint16(35985), + 70: uint16(35986), + 71: uint16(35987), + 72: uint16(35989), + 73: uint16(35990), + 74: uint16(35991), + 75: uint16(35993), + 76: uint16(35994), + 77: uint16(35995), + 78: uint16(35996), + 79: uint16(35997), + 80: uint16(35998), + 81: uint16(35999), + 82: uint16(36000), + 83: uint16(36001), + 84: uint16(36002), + 85: uint16(36003), + 86: uint16(36004), + 87: uint16(36005), + 88: uint16(36006), + 89: uint16(36007), + 90: uint16(36008), + 91: uint16(36009), + 92: uint16(36010), + 93: uint16(36011), + 94: uint16(36012), + 95: uint16(36013), + 96: uint16(20109), + 97: uint16(19980), + 98: uint16(20800), + 99: uint16(19984), + 100: uint16(24319), + 101: uint16(21317), + 102: uint16(19989), + 103: uint16(20120), + 104: uint16(19998), + 105: uint16(39730), + 106: uint16(23404), + 107: uint16(22121), + 108: uint16(20008), + 109: uint16(31162), + 110: uint16(20031), + 111: uint16(21269), + 112: uint16(20039), + 113: uint16(22829), + 114: uint16(29243), + 115: uint16(21358), + 116: uint16(27664), + 117: uint16(22239), + 118: uint16(32996), + 119: uint16(39319), + 120: uint16(27603), + 121: uint16(30590), + 122: uint16(40727), + 123: uint16(20022), + 124: uint16(20127), + 125: uint16(40720), + 126: uint16(20060), + 127: uint16(20073), + 128: uint16(20115), + 129: uint16(33416), + 130: uint16(23387), + 131: uint16(21868), + 132: uint16(22031), + 133: uint16(20164), + 134: uint16(21389), + 135: uint16(21405), + 136: uint16(21411), + 137: uint16(21413), + 138: uint16(21422), + 139: uint16(38757), + 140: uint16(36189), + 141: uint16(21274), + 142: uint16(21493), + 143: uint16(21286), + 144: uint16(21294), + 145: uint16(21310), + 146: uint16(36188), + 147: uint16(21350), + 148: uint16(21347), + 149: uint16(20994), + 150: uint16(21000), + 151: uint16(21006), + 152: uint16(21037), + 153: uint16(21043), + 154: uint16(21055), + 155: uint16(21056), + 156: uint16(21068), + 157: uint16(21086), + 158: uint16(21089), + 159: uint16(21084), + 160: uint16(33967), + 161: uint16(21117), + 162: uint16(21122), + 163: uint16(21121), + 164: uint16(21136), + 165: uint16(21139), + 166: uint16(20866), + 167: uint16(32596), + 168: uint16(20155), + 169: uint16(20163), + 170: uint16(20169), + 171: uint16(20162), + 172: uint16(20200), + 173: uint16(20193), + 174: uint16(20203), + 175: uint16(20190), + 176: uint16(20251), + 177: uint16(20211), + 178: uint16(20258), + 179: uint16(20324), + 180: uint16(20213), + 181: uint16(20261), + 182: uint16(20263), + 183: uint16(20233), + 184: uint16(20267), + 185: uint16(20318), + 186: uint16(20327), + 187: uint16(25912), + 188: uint16(20314), + 189: uint16(20317), + }, + 88: { + 0: uint16(36014), + 1: uint16(36015), + 2: uint16(36016), + 3: uint16(36017), + 4: uint16(36018), + 5: uint16(36019), + 6: uint16(36020), + 7: uint16(36021), + 8: uint16(36022), + 9: uint16(36023), + 10: uint16(36024), + 11: uint16(36025), + 12: uint16(36026), + 13: uint16(36027), + 14: uint16(36028), + 15: uint16(36029), + 16: uint16(36030), + 17: uint16(36031), + 18: uint16(36032), + 19: uint16(36033), + 20: uint16(36034), + 21: uint16(36035), + 22: uint16(36036), + 23: uint16(36037), + 24: uint16(36038), + 25: uint16(36039), + 26: uint16(36040), + 27: uint16(36041), + 28: uint16(36042), + 29: uint16(36043), + 30: uint16(36044), + 31: uint16(36045), + 32: uint16(36046), + 33: uint16(36047), + 34: uint16(36048), + 35: uint16(36049), + 36: uint16(36050), + 37: uint16(36051), + 38: uint16(36052), + 39: uint16(36053), + 40: uint16(36054), + 41: uint16(36055), + 42: uint16(36056), + 43: uint16(36057), + 44: uint16(36058), + 45: uint16(36059), + 46: uint16(36060), + 47: uint16(36061), + 48: uint16(36062), + 49: uint16(36063), + 50: uint16(36064), + 51: uint16(36065), + 52: uint16(36066), + 53: uint16(36067), + 54: uint16(36068), + 55: uint16(36069), + 56: uint16(36070), + 57: uint16(36071), + 58: uint16(36072), + 59: uint16(36073), + 60: uint16(36074), + 61: uint16(36075), + 62: uint16(36076), + 63: uint16(36077), + 64: uint16(36078), + 65: uint16(36079), + 66: uint16(36080), + 67: uint16(36081), + 68: uint16(36082), + 69: uint16(36083), + 70: uint16(36084), + 71: uint16(36085), + 72: uint16(36086), + 73: uint16(36087), + 74: uint16(36088), + 75: uint16(36089), + 76: uint16(36090), + 77: uint16(36091), + 78: uint16(36092), + 79: uint16(36093), + 80: uint16(36094), + 81: uint16(36095), + 82: uint16(36096), + 83: uint16(36097), + 84: uint16(36098), + 85: uint16(36099), + 86: uint16(36100), + 87: uint16(36101), + 88: uint16(36102), + 89: uint16(36103), + 90: uint16(36104), + 91: uint16(36105), + 92: uint16(36106), + 93: uint16(36107), + 94: uint16(36108), + 95: uint16(36109), + 96: uint16(20319), + 97: uint16(20311), + 98: uint16(20274), + 99: uint16(20285), + 100: uint16(20342), + 101: uint16(20340), + 102: uint16(20369), + 103: uint16(20361), + 104: uint16(20355), + 105: uint16(20367), + 106: uint16(20350), + 107: uint16(20347), + 108: uint16(20394), + 109: uint16(20348), + 110: uint16(20396), + 111: uint16(20372), + 112: uint16(20454), + 113: uint16(20456), + 114: uint16(20458), + 115: uint16(20421), + 116: uint16(20442), + 117: uint16(20451), + 118: uint16(20444), + 119: uint16(20433), + 120: uint16(20447), + 121: uint16(20472), + 122: uint16(20521), + 123: uint16(20556), + 124: uint16(20467), + 125: uint16(20524), + 126: uint16(20495), + 127: uint16(20526), + 128: uint16(20525), + 129: uint16(20478), + 130: uint16(20508), + 131: uint16(20492), + 132: uint16(20517), + 133: uint16(20520), + 134: uint16(20606), + 135: uint16(20547), + 136: uint16(20565), + 137: uint16(20552), + 138: uint16(20558), + 139: uint16(20588), + 140: uint16(20603), + 141: uint16(20645), + 142: uint16(20647), + 143: uint16(20649), + 144: uint16(20666), + 145: uint16(20694), + 146: uint16(20742), + 147: uint16(20717), + 148: uint16(20716), + 149: uint16(20710), + 150: uint16(20718), + 151: uint16(20743), + 152: uint16(20747), + 153: uint16(20189), + 154: uint16(27709), + 155: uint16(20312), + 156: uint16(20325), + 157: uint16(20430), + 158: uint16(40864), + 159: uint16(27718), + 160: uint16(31860), + 161: uint16(20846), + 162: uint16(24061), + 163: uint16(40649), + 164: uint16(39320), + 165: uint16(20865), + 166: uint16(22804), + 167: uint16(21241), + 168: uint16(21261), + 169: uint16(35335), + 170: uint16(21264), + 171: uint16(20971), + 172: uint16(22809), + 173: uint16(20821), + 174: uint16(20128), + 175: uint16(20822), + 176: uint16(20147), + 177: uint16(34926), + 178: uint16(34980), + 179: uint16(20149), + 180: uint16(33044), + 181: uint16(35026), + 182: uint16(31104), + 183: uint16(23348), + 184: uint16(34819), + 185: uint16(32696), + 186: uint16(20907), + 187: uint16(20913), + 188: uint16(20925), + 189: uint16(20924), + }, + 89: { + 0: uint16(36110), + 1: uint16(36111), + 2: uint16(36112), + 3: uint16(36113), + 4: uint16(36114), + 5: uint16(36115), + 6: uint16(36116), + 7: uint16(36117), + 8: uint16(36118), + 9: uint16(36119), + 10: uint16(36120), + 11: uint16(36121), + 12: uint16(36122), + 13: uint16(36123), + 14: uint16(36124), + 15: uint16(36128), + 16: uint16(36177), + 17: uint16(36178), + 18: uint16(36183), + 19: uint16(36191), + 20: uint16(36197), + 21: uint16(36200), + 22: uint16(36201), + 23: uint16(36202), + 24: uint16(36204), + 25: uint16(36206), + 26: uint16(36207), + 27: uint16(36209), + 28: uint16(36210), + 29: uint16(36216), + 30: uint16(36217), + 31: uint16(36218), + 32: uint16(36219), + 33: uint16(36220), + 34: uint16(36221), + 35: uint16(36222), + 36: uint16(36223), + 37: uint16(36224), + 38: uint16(36226), + 39: uint16(36227), + 40: uint16(36230), + 41: uint16(36231), + 42: uint16(36232), + 43: uint16(36233), + 44: uint16(36236), + 45: uint16(36237), + 46: uint16(36238), + 47: uint16(36239), + 48: uint16(36240), + 49: uint16(36242), + 50: uint16(36243), + 51: uint16(36245), + 52: uint16(36246), + 53: uint16(36247), + 54: uint16(36248), + 55: uint16(36249), + 56: uint16(36250), + 57: uint16(36251), + 58: uint16(36252), + 59: uint16(36253), + 60: uint16(36254), + 61: uint16(36256), + 62: uint16(36257), + 63: uint16(36258), + 64: uint16(36260), + 65: uint16(36261), + 66: uint16(36262), + 67: uint16(36263), + 68: uint16(36264), + 69: uint16(36265), + 70: uint16(36266), + 71: uint16(36267), + 72: uint16(36268), + 73: uint16(36269), + 74: uint16(36270), + 75: uint16(36271), + 76: uint16(36272), + 77: uint16(36274), + 78: uint16(36278), + 79: uint16(36279), + 80: uint16(36281), + 81: uint16(36283), + 82: uint16(36285), + 83: uint16(36288), + 84: uint16(36289), + 85: uint16(36290), + 86: uint16(36293), + 87: uint16(36295), + 88: uint16(36296), + 89: uint16(36297), + 90: uint16(36298), + 91: uint16(36301), + 92: uint16(36304), + 93: uint16(36306), + 94: uint16(36307), + 95: uint16(36308), + 96: uint16(20935), + 97: uint16(20886), + 98: uint16(20898), + 99: uint16(20901), + 100: uint16(35744), + 101: uint16(35750), + 102: uint16(35751), + 103: uint16(35754), + 104: uint16(35764), + 105: uint16(35765), + 106: uint16(35767), + 107: uint16(35778), + 108: uint16(35779), + 109: uint16(35787), + 110: uint16(35791), + 111: uint16(35790), + 112: uint16(35794), + 113: uint16(35795), + 114: uint16(35796), + 115: uint16(35798), + 116: uint16(35800), + 117: uint16(35801), + 118: uint16(35804), + 119: uint16(35807), + 120: uint16(35808), + 121: uint16(35812), + 122: uint16(35816), + 123: uint16(35817), + 124: uint16(35822), + 125: uint16(35824), + 126: uint16(35827), + 127: uint16(35830), + 128: uint16(35833), + 129: uint16(35836), + 130: uint16(35839), + 131: uint16(35840), + 132: uint16(35842), + 133: uint16(35844), + 134: uint16(35847), + 135: uint16(35852), + 136: uint16(35855), + 137: uint16(35857), + 138: uint16(35858), + 139: uint16(35860), + 140: uint16(35861), + 141: uint16(35862), + 142: uint16(35865), + 143: uint16(35867), + 144: uint16(35864), + 145: uint16(35869), + 146: uint16(35871), + 147: uint16(35872), + 148: uint16(35873), + 149: uint16(35877), + 150: uint16(35879), + 151: uint16(35882), + 152: uint16(35883), + 153: uint16(35886), + 154: uint16(35887), + 155: uint16(35890), + 156: uint16(35891), + 157: uint16(35893), + 158: uint16(35894), + 159: uint16(21353), + 160: uint16(21370), + 161: uint16(38429), + 162: uint16(38434), + 163: uint16(38433), + 164: uint16(38449), + 165: uint16(38442), + 166: uint16(38461), + 167: uint16(38460), + 168: uint16(38466), + 169: uint16(38473), + 170: uint16(38484), + 171: uint16(38495), + 172: uint16(38503), + 173: uint16(38508), + 174: uint16(38514), + 175: uint16(38516), + 176: uint16(38536), + 177: uint16(38541), + 178: uint16(38551), + 179: uint16(38576), + 180: uint16(37015), + 181: uint16(37019), + 182: uint16(37021), + 183: uint16(37017), + 184: uint16(37036), + 185: uint16(37025), + 186: uint16(37044), + 187: uint16(37043), + 188: uint16(37046), + 189: uint16(37050), + }, + 90: { + 0: uint16(36309), + 1: uint16(36312), + 2: uint16(36313), + 3: uint16(36316), + 4: uint16(36320), + 5: uint16(36321), + 6: uint16(36322), + 7: uint16(36325), + 8: uint16(36326), + 9: uint16(36327), + 10: uint16(36329), + 11: uint16(36333), + 12: uint16(36334), + 13: uint16(36336), + 14: uint16(36337), + 15: uint16(36338), + 16: uint16(36340), + 17: uint16(36342), + 18: uint16(36348), + 19: uint16(36350), + 20: uint16(36351), + 21: uint16(36352), + 22: uint16(36353), + 23: uint16(36354), + 24: uint16(36355), + 25: uint16(36356), + 26: uint16(36358), + 27: uint16(36359), + 28: uint16(36360), + 29: uint16(36363), + 30: uint16(36365), + 31: uint16(36366), + 32: uint16(36368), + 33: uint16(36369), + 34: uint16(36370), + 35: uint16(36371), + 36: uint16(36373), + 37: uint16(36374), + 38: uint16(36375), + 39: uint16(36376), + 40: uint16(36377), + 41: uint16(36378), + 42: uint16(36379), + 43: uint16(36380), + 44: uint16(36384), + 45: uint16(36385), + 46: uint16(36388), + 47: uint16(36389), + 48: uint16(36390), + 49: uint16(36391), + 50: uint16(36392), + 51: uint16(36395), + 52: uint16(36397), + 53: uint16(36400), + 54: uint16(36402), + 55: uint16(36403), + 56: uint16(36404), + 57: uint16(36406), + 58: uint16(36407), + 59: uint16(36408), + 60: uint16(36411), + 61: uint16(36412), + 62: uint16(36414), + 63: uint16(36415), + 64: uint16(36419), + 65: uint16(36421), + 66: uint16(36422), + 67: uint16(36428), + 68: uint16(36429), + 69: uint16(36430), + 70: uint16(36431), + 71: uint16(36432), + 72: uint16(36435), + 73: uint16(36436), + 74: uint16(36437), + 75: uint16(36438), + 76: uint16(36439), + 77: uint16(36440), + 78: uint16(36442), + 79: uint16(36443), + 80: uint16(36444), + 81: uint16(36445), + 82: uint16(36446), + 83: uint16(36447), + 84: uint16(36448), + 85: uint16(36449), + 86: uint16(36450), + 87: uint16(36451), + 88: uint16(36452), + 89: uint16(36453), + 90: uint16(36455), + 91: uint16(36456), + 92: uint16(36458), + 93: uint16(36459), + 94: uint16(36462), + 95: uint16(36465), + 96: uint16(37048), + 97: uint16(37040), + 98: uint16(37071), + 99: uint16(37061), + 100: uint16(37054), + 101: uint16(37072), + 102: uint16(37060), + 103: uint16(37063), + 104: uint16(37075), + 105: uint16(37094), + 106: uint16(37090), + 107: uint16(37084), + 108: uint16(37079), + 109: uint16(37083), + 110: uint16(37099), + 111: uint16(37103), + 112: uint16(37118), + 113: uint16(37124), + 114: uint16(37154), + 115: uint16(37150), + 116: uint16(37155), + 117: uint16(37169), + 118: uint16(37167), + 119: uint16(37177), + 120: uint16(37187), + 121: uint16(37190), + 122: uint16(21005), + 123: uint16(22850), + 124: uint16(21154), + 125: uint16(21164), + 126: uint16(21165), + 127: uint16(21182), + 128: uint16(21759), + 129: uint16(21200), + 130: uint16(21206), + 131: uint16(21232), + 132: uint16(21471), + 133: uint16(29166), + 134: uint16(30669), + 135: uint16(24308), + 136: uint16(20981), + 137: uint16(20988), + 138: uint16(39727), + 139: uint16(21430), + 140: uint16(24321), + 141: uint16(30042), + 142: uint16(24047), + 143: uint16(22348), + 144: uint16(22441), + 145: uint16(22433), + 146: uint16(22654), + 147: uint16(22716), + 148: uint16(22725), + 149: uint16(22737), + 150: uint16(22313), + 151: uint16(22316), + 152: uint16(22314), + 153: uint16(22323), + 154: uint16(22329), + 155: uint16(22318), + 156: uint16(22319), + 157: uint16(22364), + 158: uint16(22331), + 159: uint16(22338), + 160: uint16(22377), + 161: uint16(22405), + 162: uint16(22379), + 163: uint16(22406), + 164: uint16(22396), + 165: uint16(22395), + 166: uint16(22376), + 167: uint16(22381), + 168: uint16(22390), + 169: uint16(22387), + 170: uint16(22445), + 171: uint16(22436), + 172: uint16(22412), + 173: uint16(22450), + 174: uint16(22479), + 175: uint16(22439), + 176: uint16(22452), + 177: uint16(22419), + 178: uint16(22432), + 179: uint16(22485), + 180: uint16(22488), + 181: uint16(22490), + 182: uint16(22489), + 183: uint16(22482), + 184: uint16(22456), + 185: uint16(22516), + 186: uint16(22511), + 187: uint16(22520), + 188: uint16(22500), + 189: uint16(22493), + }, + 91: { + 0: uint16(36467), + 1: uint16(36469), + 2: uint16(36471), + 3: uint16(36472), + 4: uint16(36473), + 5: uint16(36474), + 6: uint16(36475), + 7: uint16(36477), + 8: uint16(36478), + 9: uint16(36480), + 10: uint16(36482), + 11: uint16(36483), + 12: uint16(36484), + 13: uint16(36486), + 14: uint16(36488), + 15: uint16(36489), + 16: uint16(36490), + 17: uint16(36491), + 18: uint16(36492), + 19: uint16(36493), + 20: uint16(36494), + 21: uint16(36497), + 22: uint16(36498), + 23: uint16(36499), + 24: uint16(36501), + 25: uint16(36502), + 26: uint16(36503), + 27: uint16(36504), + 28: uint16(36505), + 29: uint16(36506), + 30: uint16(36507), + 31: uint16(36509), + 32: uint16(36511), + 33: uint16(36512), + 34: uint16(36513), + 35: uint16(36514), + 36: uint16(36515), + 37: uint16(36516), + 38: uint16(36517), + 39: uint16(36518), + 40: uint16(36519), + 41: uint16(36520), + 42: uint16(36521), + 43: uint16(36522), + 44: uint16(36525), + 45: uint16(36526), + 46: uint16(36528), + 47: uint16(36529), + 48: uint16(36531), + 49: uint16(36532), + 50: uint16(36533), + 51: uint16(36534), + 52: uint16(36535), + 53: uint16(36536), + 54: uint16(36537), + 55: uint16(36539), + 56: uint16(36540), + 57: uint16(36541), + 58: uint16(36542), + 59: uint16(36543), + 60: uint16(36544), + 61: uint16(36545), + 62: uint16(36546), + 63: uint16(36547), + 64: uint16(36548), + 65: uint16(36549), + 66: uint16(36550), + 67: uint16(36551), + 68: uint16(36552), + 69: uint16(36553), + 70: uint16(36554), + 71: uint16(36555), + 72: uint16(36556), + 73: uint16(36557), + 74: uint16(36559), + 75: uint16(36560), + 76: uint16(36561), + 77: uint16(36562), + 78: uint16(36563), + 79: uint16(36564), + 80: uint16(36565), + 81: uint16(36566), + 82: uint16(36567), + 83: uint16(36568), + 84: uint16(36569), + 85: uint16(36570), + 86: uint16(36571), + 87: uint16(36572), + 88: uint16(36573), + 89: uint16(36574), + 90: uint16(36575), + 91: uint16(36576), + 92: uint16(36577), + 93: uint16(36578), + 94: uint16(36579), + 95: uint16(36580), + 96: uint16(22539), + 97: uint16(22541), + 98: uint16(22525), + 99: uint16(22509), + 100: uint16(22528), + 101: uint16(22558), + 102: uint16(22553), + 103: uint16(22596), + 104: uint16(22560), + 105: uint16(22629), + 106: uint16(22636), + 107: uint16(22657), + 108: uint16(22665), + 109: uint16(22682), + 110: uint16(22656), + 111: uint16(39336), + 112: uint16(40729), + 113: uint16(25087), + 114: uint16(33401), + 115: uint16(33405), + 116: uint16(33407), + 117: uint16(33423), + 118: uint16(33418), + 119: uint16(33448), + 120: uint16(33412), + 121: uint16(33422), + 122: uint16(33425), + 123: uint16(33431), + 124: uint16(33433), + 125: uint16(33451), + 126: uint16(33464), + 127: uint16(33470), + 128: uint16(33456), + 129: uint16(33480), + 130: uint16(33482), + 131: uint16(33507), + 132: uint16(33432), + 133: uint16(33463), + 134: uint16(33454), + 135: uint16(33483), + 136: uint16(33484), + 137: uint16(33473), + 138: uint16(33449), + 139: uint16(33460), + 140: uint16(33441), + 141: uint16(33450), + 142: uint16(33439), + 143: uint16(33476), + 144: uint16(33486), + 145: uint16(33444), + 146: uint16(33505), + 147: uint16(33545), + 148: uint16(33527), + 149: uint16(33508), + 150: uint16(33551), + 151: uint16(33543), + 152: uint16(33500), + 153: uint16(33524), + 154: uint16(33490), + 155: uint16(33496), + 156: uint16(33548), + 157: uint16(33531), + 158: uint16(33491), + 159: uint16(33553), + 160: uint16(33562), + 161: uint16(33542), + 162: uint16(33556), + 163: uint16(33557), + 164: uint16(33504), + 165: uint16(33493), + 166: uint16(33564), + 167: uint16(33617), + 168: uint16(33627), + 169: uint16(33628), + 170: uint16(33544), + 171: uint16(33682), + 172: uint16(33596), + 173: uint16(33588), + 174: uint16(33585), + 175: uint16(33691), + 176: uint16(33630), + 177: uint16(33583), + 178: uint16(33615), + 179: uint16(33607), + 180: uint16(33603), + 181: uint16(33631), + 182: uint16(33600), + 183: uint16(33559), + 184: uint16(33632), + 185: uint16(33581), + 186: uint16(33594), + 187: uint16(33587), + 188: uint16(33638), + 189: uint16(33637), + }, + 92: { + 0: uint16(36581), + 1: uint16(36582), + 2: uint16(36583), + 3: uint16(36584), + 4: uint16(36585), + 5: uint16(36586), + 6: uint16(36587), + 7: uint16(36588), + 8: uint16(36589), + 9: uint16(36590), + 10: uint16(36591), + 11: uint16(36592), + 12: uint16(36593), + 13: uint16(36594), + 14: uint16(36595), + 15: uint16(36596), + 16: uint16(36597), + 17: uint16(36598), + 18: uint16(36599), + 19: uint16(36600), + 20: uint16(36601), + 21: uint16(36602), + 22: uint16(36603), + 23: uint16(36604), + 24: uint16(36605), + 25: uint16(36606), + 26: uint16(36607), + 27: uint16(36608), + 28: uint16(36609), + 29: uint16(36610), + 30: uint16(36611), + 31: uint16(36612), + 32: uint16(36613), + 33: uint16(36614), + 34: uint16(36615), + 35: uint16(36616), + 36: uint16(36617), + 37: uint16(36618), + 38: uint16(36619), + 39: uint16(36620), + 40: uint16(36621), + 41: uint16(36622), + 42: uint16(36623), + 43: uint16(36624), + 44: uint16(36625), + 45: uint16(36626), + 46: uint16(36627), + 47: uint16(36628), + 48: uint16(36629), + 49: uint16(36630), + 50: uint16(36631), + 51: uint16(36632), + 52: uint16(36633), + 53: uint16(36634), + 54: uint16(36635), + 55: uint16(36636), + 56: uint16(36637), + 57: uint16(36638), + 58: uint16(36639), + 59: uint16(36640), + 60: uint16(36641), + 61: uint16(36642), + 62: uint16(36643), + 63: uint16(36644), + 64: uint16(36645), + 65: uint16(36646), + 66: uint16(36647), + 67: uint16(36648), + 68: uint16(36649), + 69: uint16(36650), + 70: uint16(36651), + 71: uint16(36652), + 72: uint16(36653), + 73: uint16(36654), + 74: uint16(36655), + 75: uint16(36656), + 76: uint16(36657), + 77: uint16(36658), + 78: uint16(36659), + 79: uint16(36660), + 80: uint16(36661), + 81: uint16(36662), + 82: uint16(36663), + 83: uint16(36664), + 84: uint16(36665), + 85: uint16(36666), + 86: uint16(36667), + 87: uint16(36668), + 88: uint16(36669), + 89: uint16(36670), + 90: uint16(36671), + 91: uint16(36672), + 92: uint16(36673), + 93: uint16(36674), + 94: uint16(36675), + 95: uint16(36676), + 96: uint16(33640), + 97: uint16(33563), + 98: uint16(33641), + 99: uint16(33644), + 100: uint16(33642), + 101: uint16(33645), + 102: uint16(33646), + 103: uint16(33712), + 104: uint16(33656), + 105: uint16(33715), + 106: uint16(33716), + 107: uint16(33696), + 108: uint16(33706), + 109: uint16(33683), + 110: uint16(33692), + 111: uint16(33669), + 112: uint16(33660), + 113: uint16(33718), + 114: uint16(33705), + 115: uint16(33661), + 116: uint16(33720), + 117: uint16(33659), + 118: uint16(33688), + 119: uint16(33694), + 120: uint16(33704), + 121: uint16(33722), + 122: uint16(33724), + 123: uint16(33729), + 124: uint16(33793), + 125: uint16(33765), + 126: uint16(33752), + 127: uint16(22535), + 128: uint16(33816), + 129: uint16(33803), + 130: uint16(33757), + 131: uint16(33789), + 132: uint16(33750), + 133: uint16(33820), + 134: uint16(33848), + 135: uint16(33809), + 136: uint16(33798), + 137: uint16(33748), + 138: uint16(33759), + 139: uint16(33807), + 140: uint16(33795), + 141: uint16(33784), + 142: uint16(33785), + 143: uint16(33770), + 144: uint16(33733), + 145: uint16(33728), + 146: uint16(33830), + 147: uint16(33776), + 148: uint16(33761), + 149: uint16(33884), + 150: uint16(33873), + 151: uint16(33882), + 152: uint16(33881), + 153: uint16(33907), + 154: uint16(33927), + 155: uint16(33928), + 156: uint16(33914), + 157: uint16(33929), + 158: uint16(33912), + 159: uint16(33852), + 160: uint16(33862), + 161: uint16(33897), + 162: uint16(33910), + 163: uint16(33932), + 164: uint16(33934), + 165: uint16(33841), + 166: uint16(33901), + 167: uint16(33985), + 168: uint16(33997), + 169: uint16(34000), + 170: uint16(34022), + 171: uint16(33981), + 172: uint16(34003), + 173: uint16(33994), + 174: uint16(33983), + 175: uint16(33978), + 176: uint16(34016), + 177: uint16(33953), + 178: uint16(33977), + 179: uint16(33972), + 180: uint16(33943), + 181: uint16(34021), + 182: uint16(34019), + 183: uint16(34060), + 184: uint16(29965), + 185: uint16(34104), + 186: uint16(34032), + 187: uint16(34105), + 188: uint16(34079), + 189: uint16(34106), + }, + 93: { + 0: uint16(36677), + 1: uint16(36678), + 2: uint16(36679), + 3: uint16(36680), + 4: uint16(36681), + 5: uint16(36682), + 6: uint16(36683), + 7: uint16(36684), + 8: uint16(36685), + 9: uint16(36686), + 10: uint16(36687), + 11: uint16(36688), + 12: uint16(36689), + 13: uint16(36690), + 14: uint16(36691), + 15: uint16(36692), + 16: uint16(36693), + 17: uint16(36694), + 18: uint16(36695), + 19: uint16(36696), + 20: uint16(36697), + 21: uint16(36698), + 22: uint16(36699), + 23: uint16(36700), + 24: uint16(36701), + 25: uint16(36702), + 26: uint16(36703), + 27: uint16(36704), + 28: uint16(36705), + 29: uint16(36706), + 30: uint16(36707), + 31: uint16(36708), + 32: uint16(36709), + 33: uint16(36714), + 34: uint16(36736), + 35: uint16(36748), + 36: uint16(36754), + 37: uint16(36765), + 38: uint16(36768), + 39: uint16(36769), + 40: uint16(36770), + 41: uint16(36772), + 42: uint16(36773), + 43: uint16(36774), + 44: uint16(36775), + 45: uint16(36778), + 46: uint16(36780), + 47: uint16(36781), + 48: uint16(36782), + 49: uint16(36783), + 50: uint16(36786), + 51: uint16(36787), + 52: uint16(36788), + 53: uint16(36789), + 54: uint16(36791), + 55: uint16(36792), + 56: uint16(36794), + 57: uint16(36795), + 58: uint16(36796), + 59: uint16(36799), + 60: uint16(36800), + 61: uint16(36803), + 62: uint16(36806), + 63: uint16(36809), + 64: uint16(36810), + 65: uint16(36811), + 66: uint16(36812), + 67: uint16(36813), + 68: uint16(36815), + 69: uint16(36818), + 70: uint16(36822), + 71: uint16(36823), + 72: uint16(36826), + 73: uint16(36832), + 74: uint16(36833), + 75: uint16(36835), + 76: uint16(36839), + 77: uint16(36844), + 78: uint16(36847), + 79: uint16(36849), + 80: uint16(36850), + 81: uint16(36852), + 82: uint16(36853), + 83: uint16(36854), + 84: uint16(36858), + 85: uint16(36859), + 86: uint16(36860), + 87: uint16(36862), + 88: uint16(36863), + 89: uint16(36871), + 90: uint16(36872), + 91: uint16(36876), + 92: uint16(36878), + 93: uint16(36883), + 94: uint16(36885), + 95: uint16(36888), + 96: uint16(34134), + 97: uint16(34107), + 98: uint16(34047), + 99: uint16(34044), + 100: uint16(34137), + 101: uint16(34120), + 102: uint16(34152), + 103: uint16(34148), + 104: uint16(34142), + 105: uint16(34170), + 106: uint16(30626), + 107: uint16(34115), + 108: uint16(34162), + 109: uint16(34171), + 110: uint16(34212), + 111: uint16(34216), + 112: uint16(34183), + 113: uint16(34191), + 114: uint16(34169), + 115: uint16(34222), + 116: uint16(34204), + 117: uint16(34181), + 118: uint16(34233), + 119: uint16(34231), + 120: uint16(34224), + 121: uint16(34259), + 122: uint16(34241), + 123: uint16(34268), + 124: uint16(34303), + 125: uint16(34343), + 126: uint16(34309), + 127: uint16(34345), + 128: uint16(34326), + 129: uint16(34364), + 130: uint16(24318), + 131: uint16(24328), + 132: uint16(22844), + 133: uint16(22849), + 134: uint16(32823), + 135: uint16(22869), + 136: uint16(22874), + 137: uint16(22872), + 138: uint16(21263), + 139: uint16(23586), + 140: uint16(23589), + 141: uint16(23596), + 142: uint16(23604), + 143: uint16(25164), + 144: uint16(25194), + 145: uint16(25247), + 146: uint16(25275), + 147: uint16(25290), + 148: uint16(25306), + 149: uint16(25303), + 150: uint16(25326), + 151: uint16(25378), + 152: uint16(25334), + 153: uint16(25401), + 154: uint16(25419), + 155: uint16(25411), + 156: uint16(25517), + 157: uint16(25590), + 158: uint16(25457), + 159: uint16(25466), + 160: uint16(25486), + 161: uint16(25524), + 162: uint16(25453), + 163: uint16(25516), + 164: uint16(25482), + 165: uint16(25449), + 166: uint16(25518), + 167: uint16(25532), + 168: uint16(25586), + 169: uint16(25592), + 170: uint16(25568), + 171: uint16(25599), + 172: uint16(25540), + 173: uint16(25566), + 174: uint16(25550), + 175: uint16(25682), + 176: uint16(25542), + 177: uint16(25534), + 178: uint16(25669), + 179: uint16(25665), + 180: uint16(25611), + 181: uint16(25627), + 182: uint16(25632), + 183: uint16(25612), + 184: uint16(25638), + 185: uint16(25633), + 186: uint16(25694), + 187: uint16(25732), + 188: uint16(25709), + 189: uint16(25750), + }, + 94: { + 0: uint16(36889), + 1: uint16(36892), + 2: uint16(36899), + 3: uint16(36900), + 4: uint16(36901), + 5: uint16(36903), + 6: uint16(36904), + 7: uint16(36905), + 8: uint16(36906), + 9: uint16(36907), + 10: uint16(36908), + 11: uint16(36912), + 12: uint16(36913), + 13: uint16(36914), + 14: uint16(36915), + 15: uint16(36916), + 16: uint16(36919), + 17: uint16(36921), + 18: uint16(36922), + 19: uint16(36925), + 20: uint16(36927), + 21: uint16(36928), + 22: uint16(36931), + 23: uint16(36933), + 24: uint16(36934), + 25: uint16(36936), + 26: uint16(36937), + 27: uint16(36938), + 28: uint16(36939), + 29: uint16(36940), + 30: uint16(36942), + 31: uint16(36948), + 32: uint16(36949), + 33: uint16(36950), + 34: uint16(36953), + 35: uint16(36954), + 36: uint16(36956), + 37: uint16(36957), + 38: uint16(36958), + 39: uint16(36959), + 40: uint16(36960), + 41: uint16(36961), + 42: uint16(36964), + 43: uint16(36966), + 44: uint16(36967), + 45: uint16(36969), + 46: uint16(36970), + 47: uint16(36971), + 48: uint16(36972), + 49: uint16(36975), + 50: uint16(36976), + 51: uint16(36977), + 52: uint16(36978), + 53: uint16(36979), + 54: uint16(36982), + 55: uint16(36983), + 56: uint16(36984), + 57: uint16(36985), + 58: uint16(36986), + 59: uint16(36987), + 60: uint16(36988), + 61: uint16(36990), + 62: uint16(36993), + 63: uint16(36996), + 64: uint16(36997), + 65: uint16(36998), + 66: uint16(36999), + 67: uint16(37001), + 68: uint16(37002), + 69: uint16(37004), + 70: uint16(37005), + 71: uint16(37006), + 72: uint16(37007), + 73: uint16(37008), + 74: uint16(37010), + 75: uint16(37012), + 76: uint16(37014), + 77: uint16(37016), + 78: uint16(37018), + 79: uint16(37020), + 80: uint16(37022), + 81: uint16(37023), + 82: uint16(37024), + 83: uint16(37028), + 84: uint16(37029), + 85: uint16(37031), + 86: uint16(37032), + 87: uint16(37033), + 88: uint16(37035), + 89: uint16(37037), + 90: uint16(37042), + 91: uint16(37047), + 92: uint16(37052), + 93: uint16(37053), + 94: uint16(37055), + 95: uint16(37056), + 96: uint16(25722), + 97: uint16(25783), + 98: uint16(25784), + 99: uint16(25753), + 100: uint16(25786), + 101: uint16(25792), + 102: uint16(25808), + 103: uint16(25815), + 104: uint16(25828), + 105: uint16(25826), + 106: uint16(25865), + 107: uint16(25893), + 108: uint16(25902), + 109: uint16(24331), + 110: uint16(24530), + 111: uint16(29977), + 112: uint16(24337), + 113: uint16(21343), + 114: uint16(21489), + 115: uint16(21501), + 116: uint16(21481), + 117: uint16(21480), + 118: uint16(21499), + 119: uint16(21522), + 120: uint16(21526), + 121: uint16(21510), + 122: uint16(21579), + 123: uint16(21586), + 124: uint16(21587), + 125: uint16(21588), + 126: uint16(21590), + 127: uint16(21571), + 128: uint16(21537), + 129: uint16(21591), + 130: uint16(21593), + 131: uint16(21539), + 132: uint16(21554), + 133: uint16(21634), + 134: uint16(21652), + 135: uint16(21623), + 136: uint16(21617), + 137: uint16(21604), + 138: uint16(21658), + 139: uint16(21659), + 140: uint16(21636), + 141: uint16(21622), + 142: uint16(21606), + 143: uint16(21661), + 144: uint16(21712), + 145: uint16(21677), + 146: uint16(21698), + 147: uint16(21684), + 148: uint16(21714), + 149: uint16(21671), + 150: uint16(21670), + 151: uint16(21715), + 152: uint16(21716), + 153: uint16(21618), + 154: uint16(21667), + 155: uint16(21717), + 156: uint16(21691), + 157: uint16(21695), + 158: uint16(21708), + 159: uint16(21721), + 160: uint16(21722), + 161: uint16(21724), + 162: uint16(21673), + 163: uint16(21674), + 164: uint16(21668), + 165: uint16(21725), + 166: uint16(21711), + 167: uint16(21726), + 168: uint16(21787), + 169: uint16(21735), + 170: uint16(21792), + 171: uint16(21757), + 172: uint16(21780), + 173: uint16(21747), + 174: uint16(21794), + 175: uint16(21795), + 176: uint16(21775), + 177: uint16(21777), + 178: uint16(21799), + 179: uint16(21802), + 180: uint16(21863), + 181: uint16(21903), + 182: uint16(21941), + 183: uint16(21833), + 184: uint16(21869), + 185: uint16(21825), + 186: uint16(21845), + 187: uint16(21823), + 188: uint16(21840), + 189: uint16(21820), + }, + 95: { + 0: uint16(37058), + 1: uint16(37059), + 2: uint16(37062), + 3: uint16(37064), + 4: uint16(37065), + 5: uint16(37067), + 6: uint16(37068), + 7: uint16(37069), + 8: uint16(37074), + 9: uint16(37076), + 10: uint16(37077), + 11: uint16(37078), + 12: uint16(37080), + 13: uint16(37081), + 14: uint16(37082), + 15: uint16(37086), + 16: uint16(37087), + 17: uint16(37088), + 18: uint16(37091), + 19: uint16(37092), + 20: uint16(37093), + 21: uint16(37097), + 22: uint16(37098), + 23: uint16(37100), + 24: uint16(37102), + 25: uint16(37104), + 26: uint16(37105), + 27: uint16(37106), + 28: uint16(37107), + 29: uint16(37109), + 30: uint16(37110), + 31: uint16(37111), + 32: uint16(37113), + 33: uint16(37114), + 34: uint16(37115), + 35: uint16(37116), + 36: uint16(37119), + 37: uint16(37120), + 38: uint16(37121), + 39: uint16(37123), + 40: uint16(37125), + 41: uint16(37126), + 42: uint16(37127), + 43: uint16(37128), + 44: uint16(37129), + 45: uint16(37130), + 46: uint16(37131), + 47: uint16(37132), + 48: uint16(37133), + 49: uint16(37134), + 50: uint16(37135), + 51: uint16(37136), + 52: uint16(37137), + 53: uint16(37138), + 54: uint16(37139), + 55: uint16(37140), + 56: uint16(37141), + 57: uint16(37142), + 58: uint16(37143), + 59: uint16(37144), + 60: uint16(37146), + 61: uint16(37147), + 62: uint16(37148), + 63: uint16(37149), + 64: uint16(37151), + 65: uint16(37152), + 66: uint16(37153), + 67: uint16(37156), + 68: uint16(37157), + 69: uint16(37158), + 70: uint16(37159), + 71: uint16(37160), + 72: uint16(37161), + 73: uint16(37162), + 74: uint16(37163), + 75: uint16(37164), + 76: uint16(37165), + 77: uint16(37166), + 78: uint16(37168), + 79: uint16(37170), + 80: uint16(37171), + 81: uint16(37172), + 82: uint16(37173), + 83: uint16(37174), + 84: uint16(37175), + 85: uint16(37176), + 86: uint16(37178), + 87: uint16(37179), + 88: uint16(37180), + 89: uint16(37181), + 90: uint16(37182), + 91: uint16(37183), + 92: uint16(37184), + 93: uint16(37185), + 94: uint16(37186), + 95: uint16(37188), + 96: uint16(21815), + 97: uint16(21846), + 98: uint16(21877), + 99: uint16(21878), + 100: uint16(21879), + 101: uint16(21811), + 102: uint16(21808), + 103: uint16(21852), + 104: uint16(21899), + 105: uint16(21970), + 106: uint16(21891), + 107: uint16(21937), + 108: uint16(21945), + 109: uint16(21896), + 110: uint16(21889), + 111: uint16(21919), + 112: uint16(21886), + 113: uint16(21974), + 114: uint16(21905), + 115: uint16(21883), + 116: uint16(21983), + 117: uint16(21949), + 118: uint16(21950), + 119: uint16(21908), + 120: uint16(21913), + 121: uint16(21994), + 122: uint16(22007), + 123: uint16(21961), + 124: uint16(22047), + 125: uint16(21969), + 126: uint16(21995), + 127: uint16(21996), + 128: uint16(21972), + 129: uint16(21990), + 130: uint16(21981), + 131: uint16(21956), + 132: uint16(21999), + 133: uint16(21989), + 134: uint16(22002), + 135: uint16(22003), + 136: uint16(21964), + 137: uint16(21965), + 138: uint16(21992), + 139: uint16(22005), + 140: uint16(21988), + 141: uint16(36756), + 142: uint16(22046), + 143: uint16(22024), + 144: uint16(22028), + 145: uint16(22017), + 146: uint16(22052), + 147: uint16(22051), + 148: uint16(22014), + 149: uint16(22016), + 150: uint16(22055), + 151: uint16(22061), + 152: uint16(22104), + 153: uint16(22073), + 154: uint16(22103), + 155: uint16(22060), + 156: uint16(22093), + 157: uint16(22114), + 158: uint16(22105), + 159: uint16(22108), + 160: uint16(22092), + 161: uint16(22100), + 162: uint16(22150), + 163: uint16(22116), + 164: uint16(22129), + 165: uint16(22123), + 166: uint16(22139), + 167: uint16(22140), + 168: uint16(22149), + 169: uint16(22163), + 170: uint16(22191), + 171: uint16(22228), + 172: uint16(22231), + 173: uint16(22237), + 174: uint16(22241), + 175: uint16(22261), + 176: uint16(22251), + 177: uint16(22265), + 178: uint16(22271), + 179: uint16(22276), + 180: uint16(22282), + 181: uint16(22281), + 182: uint16(22300), + 183: uint16(24079), + 184: uint16(24089), + 185: uint16(24084), + 186: uint16(24081), + 187: uint16(24113), + 188: uint16(24123), + 189: uint16(24124), + }, + 96: { + 0: uint16(37189), + 1: uint16(37191), + 2: uint16(37192), + 3: uint16(37201), + 4: uint16(37203), + 5: uint16(37204), + 6: uint16(37205), + 7: uint16(37206), + 8: uint16(37208), + 9: uint16(37209), + 10: uint16(37211), + 11: uint16(37212), + 12: uint16(37215), + 13: uint16(37216), + 14: uint16(37222), + 15: uint16(37223), + 16: uint16(37224), + 17: uint16(37227), + 18: uint16(37229), + 19: uint16(37235), + 20: uint16(37242), + 21: uint16(37243), + 22: uint16(37244), + 23: uint16(37248), + 24: uint16(37249), + 25: uint16(37250), + 26: uint16(37251), + 27: uint16(37252), + 28: uint16(37254), + 29: uint16(37256), + 30: uint16(37258), + 31: uint16(37262), + 32: uint16(37263), + 33: uint16(37267), + 34: uint16(37268), + 35: uint16(37269), + 36: uint16(37270), + 37: uint16(37271), + 38: uint16(37272), + 39: uint16(37273), + 40: uint16(37276), + 41: uint16(37277), + 42: uint16(37278), + 43: uint16(37279), + 44: uint16(37280), + 45: uint16(37281), + 46: uint16(37284), + 47: uint16(37285), + 48: uint16(37286), + 49: uint16(37287), + 50: uint16(37288), + 51: uint16(37289), + 52: uint16(37291), + 53: uint16(37292), + 54: uint16(37296), + 55: uint16(37297), + 56: uint16(37298), + 57: uint16(37299), + 58: uint16(37302), + 59: uint16(37303), + 60: uint16(37304), + 61: uint16(37305), + 62: uint16(37307), + 63: uint16(37308), + 64: uint16(37309), + 65: uint16(37310), + 66: uint16(37311), + 67: uint16(37312), + 68: uint16(37313), + 69: uint16(37314), + 70: uint16(37315), + 71: uint16(37316), + 72: uint16(37317), + 73: uint16(37318), + 74: uint16(37320), + 75: uint16(37323), + 76: uint16(37328), + 77: uint16(37330), + 78: uint16(37331), + 79: uint16(37332), + 80: uint16(37333), + 81: uint16(37334), + 82: uint16(37335), + 83: uint16(37336), + 84: uint16(37337), + 85: uint16(37338), + 86: uint16(37339), + 87: uint16(37341), + 88: uint16(37342), + 89: uint16(37343), + 90: uint16(37344), + 91: uint16(37345), + 92: uint16(37346), + 93: uint16(37347), + 94: uint16(37348), + 95: uint16(37349), + 96: uint16(24119), + 97: uint16(24132), + 98: uint16(24148), + 99: uint16(24155), + 100: uint16(24158), + 101: uint16(24161), + 102: uint16(23692), + 103: uint16(23674), + 104: uint16(23693), + 105: uint16(23696), + 106: uint16(23702), + 107: uint16(23688), + 108: uint16(23704), + 109: uint16(23705), + 110: uint16(23697), + 111: uint16(23706), + 112: uint16(23708), + 113: uint16(23733), + 114: uint16(23714), + 115: uint16(23741), + 116: uint16(23724), + 117: uint16(23723), + 118: uint16(23729), + 119: uint16(23715), + 120: uint16(23745), + 121: uint16(23735), + 122: uint16(23748), + 123: uint16(23762), + 124: uint16(23780), + 125: uint16(23755), + 126: uint16(23781), + 127: uint16(23810), + 128: uint16(23811), + 129: uint16(23847), + 130: uint16(23846), + 131: uint16(23854), + 132: uint16(23844), + 133: uint16(23838), + 134: uint16(23814), + 135: uint16(23835), + 136: uint16(23896), + 137: uint16(23870), + 138: uint16(23860), + 139: uint16(23869), + 140: uint16(23916), + 141: uint16(23899), + 142: uint16(23919), + 143: uint16(23901), + 144: uint16(23915), + 145: uint16(23883), + 146: uint16(23882), + 147: uint16(23913), + 148: uint16(23924), + 149: uint16(23938), + 150: uint16(23961), + 151: uint16(23965), + 152: uint16(35955), + 153: uint16(23991), + 154: uint16(24005), + 155: uint16(24435), + 156: uint16(24439), + 157: uint16(24450), + 158: uint16(24455), + 159: uint16(24457), + 160: uint16(24460), + 161: uint16(24469), + 162: uint16(24473), + 163: uint16(24476), + 164: uint16(24488), + 165: uint16(24493), + 166: uint16(24501), + 167: uint16(24508), + 168: uint16(34914), + 169: uint16(24417), + 170: uint16(29357), + 171: uint16(29360), + 172: uint16(29364), + 173: uint16(29367), + 174: uint16(29368), + 175: uint16(29379), + 176: uint16(29377), + 177: uint16(29390), + 178: uint16(29389), + 179: uint16(29394), + 180: uint16(29416), + 181: uint16(29423), + 182: uint16(29417), + 183: uint16(29426), + 184: uint16(29428), + 185: uint16(29431), + 186: uint16(29441), + 187: uint16(29427), + 188: uint16(29443), + 189: uint16(29434), + }, + 97: { + 0: uint16(37350), + 1: uint16(37351), + 2: uint16(37352), + 3: uint16(37353), + 4: uint16(37354), + 5: uint16(37355), + 6: uint16(37356), + 7: uint16(37357), + 8: uint16(37358), + 9: uint16(37359), + 10: uint16(37360), + 11: uint16(37361), + 12: uint16(37362), + 13: uint16(37363), + 14: uint16(37364), + 15: uint16(37365), + 16: uint16(37366), + 17: uint16(37367), + 18: uint16(37368), + 19: uint16(37369), + 20: uint16(37370), + 21: uint16(37371), + 22: uint16(37372), + 23: uint16(37373), + 24: uint16(37374), + 25: uint16(37375), + 26: uint16(37376), + 27: uint16(37377), + 28: uint16(37378), + 29: uint16(37379), + 30: uint16(37380), + 31: uint16(37381), + 32: uint16(37382), + 33: uint16(37383), + 34: uint16(37384), + 35: uint16(37385), + 36: uint16(37386), + 37: uint16(37387), + 38: uint16(37388), + 39: uint16(37389), + 40: uint16(37390), + 41: uint16(37391), + 42: uint16(37392), + 43: uint16(37393), + 44: uint16(37394), + 45: uint16(37395), + 46: uint16(37396), + 47: uint16(37397), + 48: uint16(37398), + 49: uint16(37399), + 50: uint16(37400), + 51: uint16(37401), + 52: uint16(37402), + 53: uint16(37403), + 54: uint16(37404), + 55: uint16(37405), + 56: uint16(37406), + 57: uint16(37407), + 58: uint16(37408), + 59: uint16(37409), + 60: uint16(37410), + 61: uint16(37411), + 62: uint16(37412), + 63: uint16(37413), + 64: uint16(37414), + 65: uint16(37415), + 66: uint16(37416), + 67: uint16(37417), + 68: uint16(37418), + 69: uint16(37419), + 70: uint16(37420), + 71: uint16(37421), + 72: uint16(37422), + 73: uint16(37423), + 74: uint16(37424), + 75: uint16(37425), + 76: uint16(37426), + 77: uint16(37427), + 78: uint16(37428), + 79: uint16(37429), + 80: uint16(37430), + 81: uint16(37431), + 82: uint16(37432), + 83: uint16(37433), + 84: uint16(37434), + 85: uint16(37435), + 86: uint16(37436), + 87: uint16(37437), + 88: uint16(37438), + 89: uint16(37439), + 90: uint16(37440), + 91: uint16(37441), + 92: uint16(37442), + 93: uint16(37443), + 94: uint16(37444), + 95: uint16(37445), + 96: uint16(29435), + 97: uint16(29463), + 98: uint16(29459), + 99: uint16(29473), + 100: uint16(29450), + 101: uint16(29470), + 102: uint16(29469), + 103: uint16(29461), + 104: uint16(29474), + 105: uint16(29497), + 106: uint16(29477), + 107: uint16(29484), + 108: uint16(29496), + 109: uint16(29489), + 110: uint16(29520), + 111: uint16(29517), + 112: uint16(29527), + 113: uint16(29536), + 114: uint16(29548), + 115: uint16(29551), + 116: uint16(29566), + 117: uint16(33307), + 118: uint16(22821), + 119: uint16(39143), + 120: uint16(22820), + 121: uint16(22786), + 122: uint16(39267), + 123: uint16(39271), + 124: uint16(39272), + 125: uint16(39273), + 126: uint16(39274), + 127: uint16(39275), + 128: uint16(39276), + 129: uint16(39284), + 130: uint16(39287), + 131: uint16(39293), + 132: uint16(39296), + 133: uint16(39300), + 134: uint16(39303), + 135: uint16(39306), + 136: uint16(39309), + 137: uint16(39312), + 138: uint16(39313), + 139: uint16(39315), + 140: uint16(39316), + 141: uint16(39317), + 142: uint16(24192), + 143: uint16(24209), + 144: uint16(24203), + 145: uint16(24214), + 146: uint16(24229), + 147: uint16(24224), + 148: uint16(24249), + 149: uint16(24245), + 150: uint16(24254), + 151: uint16(24243), + 152: uint16(36179), + 153: uint16(24274), + 154: uint16(24273), + 155: uint16(24283), + 156: uint16(24296), + 157: uint16(24298), + 158: uint16(33210), + 159: uint16(24516), + 160: uint16(24521), + 161: uint16(24534), + 162: uint16(24527), + 163: uint16(24579), + 164: uint16(24558), + 165: uint16(24580), + 166: uint16(24545), + 167: uint16(24548), + 168: uint16(24574), + 169: uint16(24581), + 170: uint16(24582), + 171: uint16(24554), + 172: uint16(24557), + 173: uint16(24568), + 174: uint16(24601), + 175: uint16(24629), + 176: uint16(24614), + 177: uint16(24603), + 178: uint16(24591), + 179: uint16(24589), + 180: uint16(24617), + 181: uint16(24619), + 182: uint16(24586), + 183: uint16(24639), + 184: uint16(24609), + 185: uint16(24696), + 186: uint16(24697), + 187: uint16(24699), + 188: uint16(24698), + 189: uint16(24642), + }, + 98: { + 0: uint16(37446), + 1: uint16(37447), + 2: uint16(37448), + 3: uint16(37449), + 4: uint16(37450), + 5: uint16(37451), + 6: uint16(37452), + 7: uint16(37453), + 8: uint16(37454), + 9: uint16(37455), + 10: uint16(37456), + 11: uint16(37457), + 12: uint16(37458), + 13: uint16(37459), + 14: uint16(37460), + 15: uint16(37461), + 16: uint16(37462), + 17: uint16(37463), + 18: uint16(37464), + 19: uint16(37465), + 20: uint16(37466), + 21: uint16(37467), + 22: uint16(37468), + 23: uint16(37469), + 24: uint16(37470), + 25: uint16(37471), + 26: uint16(37472), + 27: uint16(37473), + 28: uint16(37474), + 29: uint16(37475), + 30: uint16(37476), + 31: uint16(37477), + 32: uint16(37478), + 33: uint16(37479), + 34: uint16(37480), + 35: uint16(37481), + 36: uint16(37482), + 37: uint16(37483), + 38: uint16(37484), + 39: uint16(37485), + 40: uint16(37486), + 41: uint16(37487), + 42: uint16(37488), + 43: uint16(37489), + 44: uint16(37490), + 45: uint16(37491), + 46: uint16(37493), + 47: uint16(37494), + 48: uint16(37495), + 49: uint16(37496), + 50: uint16(37497), + 51: uint16(37498), + 52: uint16(37499), + 53: uint16(37500), + 54: uint16(37501), + 55: uint16(37502), + 56: uint16(37503), + 57: uint16(37504), + 58: uint16(37505), + 59: uint16(37506), + 60: uint16(37507), + 61: uint16(37508), + 62: uint16(37509), + 63: uint16(37510), + 64: uint16(37511), + 65: uint16(37512), + 66: uint16(37513), + 67: uint16(37514), + 68: uint16(37515), + 69: uint16(37516), + 70: uint16(37517), + 71: uint16(37519), + 72: uint16(37520), + 73: uint16(37521), + 74: uint16(37522), + 75: uint16(37523), + 76: uint16(37524), + 77: uint16(37525), + 78: uint16(37526), + 79: uint16(37527), + 80: uint16(37528), + 81: uint16(37529), + 82: uint16(37530), + 83: uint16(37531), + 84: uint16(37532), + 85: uint16(37533), + 86: uint16(37534), + 87: uint16(37535), + 88: uint16(37536), + 89: uint16(37537), + 90: uint16(37538), + 91: uint16(37539), + 92: uint16(37540), + 93: uint16(37541), + 94: uint16(37542), + 95: uint16(37543), + 96: uint16(24682), + 97: uint16(24701), + 98: uint16(24726), + 99: uint16(24730), + 100: uint16(24749), + 101: uint16(24733), + 102: uint16(24707), + 103: uint16(24722), + 104: uint16(24716), + 105: uint16(24731), + 106: uint16(24812), + 107: uint16(24763), + 108: uint16(24753), + 109: uint16(24797), + 110: uint16(24792), + 111: uint16(24774), + 112: uint16(24794), + 113: uint16(24756), + 114: uint16(24864), + 115: uint16(24870), + 116: uint16(24853), + 117: uint16(24867), + 118: uint16(24820), + 119: uint16(24832), + 120: uint16(24846), + 121: uint16(24875), + 122: uint16(24906), + 123: uint16(24949), + 124: uint16(25004), + 125: uint16(24980), + 126: uint16(24999), + 127: uint16(25015), + 128: uint16(25044), + 129: uint16(25077), + 130: uint16(24541), + 131: uint16(38579), + 132: uint16(38377), + 133: uint16(38379), + 134: uint16(38385), + 135: uint16(38387), + 136: uint16(38389), + 137: uint16(38390), + 138: uint16(38396), + 139: uint16(38398), + 140: uint16(38403), + 141: uint16(38404), + 142: uint16(38406), + 143: uint16(38408), + 144: uint16(38410), + 145: uint16(38411), + 146: uint16(38412), + 147: uint16(38413), + 148: uint16(38415), + 149: uint16(38418), + 150: uint16(38421), + 151: uint16(38422), + 152: uint16(38423), + 153: uint16(38425), + 154: uint16(38426), + 155: uint16(20012), + 156: uint16(29247), + 157: uint16(25109), + 158: uint16(27701), + 159: uint16(27732), + 160: uint16(27740), + 161: uint16(27722), + 162: uint16(27811), + 163: uint16(27781), + 164: uint16(27792), + 165: uint16(27796), + 166: uint16(27788), + 167: uint16(27752), + 168: uint16(27753), + 169: uint16(27764), + 170: uint16(27766), + 171: uint16(27782), + 172: uint16(27817), + 173: uint16(27856), + 174: uint16(27860), + 175: uint16(27821), + 176: uint16(27895), + 177: uint16(27896), + 178: uint16(27889), + 179: uint16(27863), + 180: uint16(27826), + 181: uint16(27872), + 182: uint16(27862), + 183: uint16(27898), + 184: uint16(27883), + 185: uint16(27886), + 186: uint16(27825), + 187: uint16(27859), + 188: uint16(27887), + 189: uint16(27902), + }, + 99: { + 0: uint16(37544), + 1: uint16(37545), + 2: uint16(37546), + 3: uint16(37547), + 4: uint16(37548), + 5: uint16(37549), + 6: uint16(37551), + 7: uint16(37552), + 8: uint16(37553), + 9: uint16(37554), + 10: uint16(37555), + 11: uint16(37556), + 12: uint16(37557), + 13: uint16(37558), + 14: uint16(37559), + 15: uint16(37560), + 16: uint16(37561), + 17: uint16(37562), + 18: uint16(37563), + 19: uint16(37564), + 20: uint16(37565), + 21: uint16(37566), + 22: uint16(37567), + 23: uint16(37568), + 24: uint16(37569), + 25: uint16(37570), + 26: uint16(37571), + 27: uint16(37572), + 28: uint16(37573), + 29: uint16(37574), + 30: uint16(37575), + 31: uint16(37577), + 32: uint16(37578), + 33: uint16(37579), + 34: uint16(37580), + 35: uint16(37581), + 36: uint16(37582), + 37: uint16(37583), + 38: uint16(37584), + 39: uint16(37585), + 40: uint16(37586), + 41: uint16(37587), + 42: uint16(37588), + 43: uint16(37589), + 44: uint16(37590), + 45: uint16(37591), + 46: uint16(37592), + 47: uint16(37593), + 48: uint16(37594), + 49: uint16(37595), + 50: uint16(37596), + 51: uint16(37597), + 52: uint16(37598), + 53: uint16(37599), + 54: uint16(37600), + 55: uint16(37601), + 56: uint16(37602), + 57: uint16(37603), + 58: uint16(37604), + 59: uint16(37605), + 60: uint16(37606), + 61: uint16(37607), + 62: uint16(37608), + 63: uint16(37609), + 64: uint16(37610), + 65: uint16(37611), + 66: uint16(37612), + 67: uint16(37613), + 68: uint16(37614), + 69: uint16(37615), + 70: uint16(37616), + 71: uint16(37617), + 72: uint16(37618), + 73: uint16(37619), + 74: uint16(37620), + 75: uint16(37621), + 76: uint16(37622), + 77: uint16(37623), + 78: uint16(37624), + 79: uint16(37625), + 80: uint16(37626), + 81: uint16(37627), + 82: uint16(37628), + 83: uint16(37629), + 84: uint16(37630), + 85: uint16(37631), + 86: uint16(37632), + 87: uint16(37633), + 88: uint16(37634), + 89: uint16(37635), + 90: uint16(37636), + 91: uint16(37637), + 92: uint16(37638), + 93: uint16(37639), + 94: uint16(37640), + 95: uint16(37641), + 96: uint16(27961), + 97: uint16(27943), + 98: uint16(27916), + 99: uint16(27971), + 100: uint16(27976), + 101: uint16(27911), + 102: uint16(27908), + 103: uint16(27929), + 104: uint16(27918), + 105: uint16(27947), + 106: uint16(27981), + 107: uint16(27950), + 108: uint16(27957), + 109: uint16(27930), + 110: uint16(27983), + 111: uint16(27986), + 112: uint16(27988), + 113: uint16(27955), + 114: uint16(28049), + 115: uint16(28015), + 116: uint16(28062), + 117: uint16(28064), + 118: uint16(27998), + 119: uint16(28051), + 120: uint16(28052), + 121: uint16(27996), + 122: uint16(28000), + 123: uint16(28028), + 124: uint16(28003), + 125: uint16(28186), + 126: uint16(28103), + 127: uint16(28101), + 128: uint16(28126), + 129: uint16(28174), + 130: uint16(28095), + 131: uint16(28128), + 132: uint16(28177), + 133: uint16(28134), + 134: uint16(28125), + 135: uint16(28121), + 136: uint16(28182), + 137: uint16(28075), + 138: uint16(28172), + 139: uint16(28078), + 140: uint16(28203), + 141: uint16(28270), + 142: uint16(28238), + 143: uint16(28267), + 144: uint16(28338), + 145: uint16(28255), + 146: uint16(28294), + 147: uint16(28243), + 148: uint16(28244), + 149: uint16(28210), + 150: uint16(28197), + 151: uint16(28228), + 152: uint16(28383), + 153: uint16(28337), + 154: uint16(28312), + 155: uint16(28384), + 156: uint16(28461), + 157: uint16(28386), + 158: uint16(28325), + 159: uint16(28327), + 160: uint16(28349), + 161: uint16(28347), + 162: uint16(28343), + 163: uint16(28375), + 164: uint16(28340), + 165: uint16(28367), + 166: uint16(28303), + 167: uint16(28354), + 168: uint16(28319), + 169: uint16(28514), + 170: uint16(28486), + 171: uint16(28487), + 172: uint16(28452), + 173: uint16(28437), + 174: uint16(28409), + 175: uint16(28463), + 176: uint16(28470), + 177: uint16(28491), + 178: uint16(28532), + 179: uint16(28458), + 180: uint16(28425), + 181: uint16(28457), + 182: uint16(28553), + 183: uint16(28557), + 184: uint16(28556), + 185: uint16(28536), + 186: uint16(28530), + 187: uint16(28540), + 188: uint16(28538), + 189: uint16(28625), + }, + 100: { + 0: uint16(37642), + 1: uint16(37643), + 2: uint16(37644), + 3: uint16(37645), + 4: uint16(37646), + 5: uint16(37647), + 6: uint16(37648), + 7: uint16(37649), + 8: uint16(37650), + 9: uint16(37651), + 10: uint16(37652), + 11: uint16(37653), + 12: uint16(37654), + 13: uint16(37655), + 14: uint16(37656), + 15: uint16(37657), + 16: uint16(37658), + 17: uint16(37659), + 18: uint16(37660), + 19: uint16(37661), + 20: uint16(37662), + 21: uint16(37663), + 22: uint16(37664), + 23: uint16(37665), + 24: uint16(37666), + 25: uint16(37667), + 26: uint16(37668), + 27: uint16(37669), + 28: uint16(37670), + 29: uint16(37671), + 30: uint16(37672), + 31: uint16(37673), + 32: uint16(37674), + 33: uint16(37675), + 34: uint16(37676), + 35: uint16(37677), + 36: uint16(37678), + 37: uint16(37679), + 38: uint16(37680), + 39: uint16(37681), + 40: uint16(37682), + 41: uint16(37683), + 42: uint16(37684), + 43: uint16(37685), + 44: uint16(37686), + 45: uint16(37687), + 46: uint16(37688), + 47: uint16(37689), + 48: uint16(37690), + 49: uint16(37691), + 50: uint16(37692), + 51: uint16(37693), + 52: uint16(37695), + 53: uint16(37696), + 54: uint16(37697), + 55: uint16(37698), + 56: uint16(37699), + 57: uint16(37700), + 58: uint16(37701), + 59: uint16(37702), + 60: uint16(37703), + 61: uint16(37704), + 62: uint16(37705), + 63: uint16(37706), + 64: uint16(37707), + 65: uint16(37708), + 66: uint16(37709), + 67: uint16(37710), + 68: uint16(37711), + 69: uint16(37712), + 70: uint16(37713), + 71: uint16(37714), + 72: uint16(37715), + 73: uint16(37716), + 74: uint16(37717), + 75: uint16(37718), + 76: uint16(37719), + 77: uint16(37720), + 78: uint16(37721), + 79: uint16(37722), + 80: uint16(37723), + 81: uint16(37724), + 82: uint16(37725), + 83: uint16(37726), + 84: uint16(37727), + 85: uint16(37728), + 86: uint16(37729), + 87: uint16(37730), + 88: uint16(37731), + 89: uint16(37732), + 90: uint16(37733), + 91: uint16(37734), + 92: uint16(37735), + 93: uint16(37736), + 94: uint16(37737), + 95: uint16(37739), + 96: uint16(28617), + 97: uint16(28583), + 98: uint16(28601), + 99: uint16(28598), + 100: uint16(28610), + 101: uint16(28641), + 102: uint16(28654), + 103: uint16(28638), + 104: uint16(28640), + 105: uint16(28655), + 106: uint16(28698), + 107: uint16(28707), + 108: uint16(28699), + 109: uint16(28729), + 110: uint16(28725), + 111: uint16(28751), + 112: uint16(28766), + 113: uint16(23424), + 114: uint16(23428), + 115: uint16(23445), + 116: uint16(23443), + 117: uint16(23461), + 118: uint16(23480), + 119: uint16(29999), + 120: uint16(39582), + 121: uint16(25652), + 122: uint16(23524), + 123: uint16(23534), + 124: uint16(35120), + 125: uint16(23536), + 126: uint16(36423), + 127: uint16(35591), + 128: uint16(36790), + 129: uint16(36819), + 130: uint16(36821), + 131: uint16(36837), + 132: uint16(36846), + 133: uint16(36836), + 134: uint16(36841), + 135: uint16(36838), + 136: uint16(36851), + 137: uint16(36840), + 138: uint16(36869), + 139: uint16(36868), + 140: uint16(36875), + 141: uint16(36902), + 142: uint16(36881), + 143: uint16(36877), + 144: uint16(36886), + 145: uint16(36897), + 146: uint16(36917), + 147: uint16(36918), + 148: uint16(36909), + 149: uint16(36911), + 150: uint16(36932), + 151: uint16(36945), + 152: uint16(36946), + 153: uint16(36944), + 154: uint16(36968), + 155: uint16(36952), + 156: uint16(36962), + 157: uint16(36955), + 158: uint16(26297), + 159: uint16(36980), + 160: uint16(36989), + 161: uint16(36994), + 162: uint16(37000), + 163: uint16(36995), + 164: uint16(37003), + 165: uint16(24400), + 166: uint16(24407), + 167: uint16(24406), + 168: uint16(24408), + 169: uint16(23611), + 170: uint16(21675), + 171: uint16(23632), + 172: uint16(23641), + 173: uint16(23409), + 174: uint16(23651), + 175: uint16(23654), + 176: uint16(32700), + 177: uint16(24362), + 178: uint16(24361), + 179: uint16(24365), + 180: uint16(33396), + 181: uint16(24380), + 182: uint16(39739), + 183: uint16(23662), + 184: uint16(22913), + 185: uint16(22915), + 186: uint16(22925), + 187: uint16(22953), + 188: uint16(22954), + 189: uint16(22947), + }, + 101: { + 0: uint16(37740), + 1: uint16(37741), + 2: uint16(37742), + 3: uint16(37743), + 4: uint16(37744), + 5: uint16(37745), + 6: uint16(37746), + 7: uint16(37747), + 8: uint16(37748), + 9: uint16(37749), + 10: uint16(37750), + 11: uint16(37751), + 12: uint16(37752), + 13: uint16(37753), + 14: uint16(37754), + 15: uint16(37755), + 16: uint16(37756), + 17: uint16(37757), + 18: uint16(37758), + 19: uint16(37759), + 20: uint16(37760), + 21: uint16(37761), + 22: uint16(37762), + 23: uint16(37763), + 24: uint16(37764), + 25: uint16(37765), + 26: uint16(37766), + 27: uint16(37767), + 28: uint16(37768), + 29: uint16(37769), + 30: uint16(37770), + 31: uint16(37771), + 32: uint16(37772), + 33: uint16(37773), + 34: uint16(37774), + 35: uint16(37776), + 36: uint16(37777), + 37: uint16(37778), + 38: uint16(37779), + 39: uint16(37780), + 40: uint16(37781), + 41: uint16(37782), + 42: uint16(37783), + 43: uint16(37784), + 44: uint16(37785), + 45: uint16(37786), + 46: uint16(37787), + 47: uint16(37788), + 48: uint16(37789), + 49: uint16(37790), + 50: uint16(37791), + 51: uint16(37792), + 52: uint16(37793), + 53: uint16(37794), + 54: uint16(37795), + 55: uint16(37796), + 56: uint16(37797), + 57: uint16(37798), + 58: uint16(37799), + 59: uint16(37800), + 60: uint16(37801), + 61: uint16(37802), + 62: uint16(37803), + 63: uint16(37804), + 64: uint16(37805), + 65: uint16(37806), + 66: uint16(37807), + 67: uint16(37808), + 68: uint16(37809), + 69: uint16(37810), + 70: uint16(37811), + 71: uint16(37812), + 72: uint16(37813), + 73: uint16(37814), + 74: uint16(37815), + 75: uint16(37816), + 76: uint16(37817), + 77: uint16(37818), + 78: uint16(37819), + 79: uint16(37820), + 80: uint16(37821), + 81: uint16(37822), + 82: uint16(37823), + 83: uint16(37824), + 84: uint16(37825), + 85: uint16(37826), + 86: uint16(37827), + 87: uint16(37828), + 88: uint16(37829), + 89: uint16(37830), + 90: uint16(37831), + 91: uint16(37832), + 92: uint16(37833), + 93: uint16(37835), + 94: uint16(37836), + 95: uint16(37837), + 96: uint16(22935), + 97: uint16(22986), + 98: uint16(22955), + 99: uint16(22942), + 100: uint16(22948), + 101: uint16(22994), + 102: uint16(22962), + 103: uint16(22959), + 104: uint16(22999), + 105: uint16(22974), + 106: uint16(23045), + 107: uint16(23046), + 108: uint16(23005), + 109: uint16(23048), + 110: uint16(23011), + 111: uint16(23000), + 112: uint16(23033), + 113: uint16(23052), + 114: uint16(23049), + 115: uint16(23090), + 116: uint16(23092), + 117: uint16(23057), + 118: uint16(23075), + 119: uint16(23059), + 120: uint16(23104), + 121: uint16(23143), + 122: uint16(23114), + 123: uint16(23125), + 124: uint16(23100), + 125: uint16(23138), + 126: uint16(23157), + 127: uint16(33004), + 128: uint16(23210), + 129: uint16(23195), + 130: uint16(23159), + 131: uint16(23162), + 132: uint16(23230), + 133: uint16(23275), + 134: uint16(23218), + 135: uint16(23250), + 136: uint16(23252), + 137: uint16(23224), + 138: uint16(23264), + 139: uint16(23267), + 140: uint16(23281), + 141: uint16(23254), + 142: uint16(23270), + 143: uint16(23256), + 144: uint16(23260), + 145: uint16(23305), + 146: uint16(23319), + 147: uint16(23318), + 148: uint16(23346), + 149: uint16(23351), + 150: uint16(23360), + 151: uint16(23573), + 152: uint16(23580), + 153: uint16(23386), + 154: uint16(23397), + 155: uint16(23411), + 156: uint16(23377), + 157: uint16(23379), + 158: uint16(23394), + 159: uint16(39541), + 160: uint16(39543), + 161: uint16(39544), + 162: uint16(39546), + 163: uint16(39551), + 164: uint16(39549), + 165: uint16(39552), + 166: uint16(39553), + 167: uint16(39557), + 168: uint16(39560), + 169: uint16(39562), + 170: uint16(39568), + 171: uint16(39570), + 172: uint16(39571), + 173: uint16(39574), + 174: uint16(39576), + 175: uint16(39579), + 176: uint16(39580), + 177: uint16(39581), + 178: uint16(39583), + 179: uint16(39584), + 180: uint16(39586), + 181: uint16(39587), + 182: uint16(39589), + 183: uint16(39591), + 184: uint16(32415), + 185: uint16(32417), + 186: uint16(32419), + 187: uint16(32421), + 188: uint16(32424), + 189: uint16(32425), + }, + 102: { + 0: uint16(37838), + 1: uint16(37839), + 2: uint16(37840), + 3: uint16(37841), + 4: uint16(37842), + 5: uint16(37843), + 6: uint16(37844), + 7: uint16(37845), + 8: uint16(37847), + 9: uint16(37848), + 10: uint16(37849), + 11: uint16(37850), + 12: uint16(37851), + 13: uint16(37852), + 14: uint16(37853), + 15: uint16(37854), + 16: uint16(37855), + 17: uint16(37856), + 18: uint16(37857), + 19: uint16(37858), + 20: uint16(37859), + 21: uint16(37860), + 22: uint16(37861), + 23: uint16(37862), + 24: uint16(37863), + 25: uint16(37864), + 26: uint16(37865), + 27: uint16(37866), + 28: uint16(37867), + 29: uint16(37868), + 30: uint16(37869), + 31: uint16(37870), + 32: uint16(37871), + 33: uint16(37872), + 34: uint16(37873), + 35: uint16(37874), + 36: uint16(37875), + 37: uint16(37876), + 38: uint16(37877), + 39: uint16(37878), + 40: uint16(37879), + 41: uint16(37880), + 42: uint16(37881), + 43: uint16(37882), + 44: uint16(37883), + 45: uint16(37884), + 46: uint16(37885), + 47: uint16(37886), + 48: uint16(37887), + 49: uint16(37888), + 50: uint16(37889), + 51: uint16(37890), + 52: uint16(37891), + 53: uint16(37892), + 54: uint16(37893), + 55: uint16(37894), + 56: uint16(37895), + 57: uint16(37896), + 58: uint16(37897), + 59: uint16(37898), + 60: uint16(37899), + 61: uint16(37900), + 62: uint16(37901), + 63: uint16(37902), + 64: uint16(37903), + 65: uint16(37904), + 66: uint16(37905), + 67: uint16(37906), + 68: uint16(37907), + 69: uint16(37908), + 70: uint16(37909), + 71: uint16(37910), + 72: uint16(37911), + 73: uint16(37912), + 74: uint16(37913), + 75: uint16(37914), + 76: uint16(37915), + 77: uint16(37916), + 78: uint16(37917), + 79: uint16(37918), + 80: uint16(37919), + 81: uint16(37920), + 82: uint16(37921), + 83: uint16(37922), + 84: uint16(37923), + 85: uint16(37924), + 86: uint16(37925), + 87: uint16(37926), + 88: uint16(37927), + 89: uint16(37928), + 90: uint16(37929), + 91: uint16(37930), + 92: uint16(37931), + 93: uint16(37932), + 94: uint16(37933), + 95: uint16(37934), + 96: uint16(32429), + 97: uint16(32432), + 98: uint16(32446), + 99: uint16(32448), + 100: uint16(32449), + 101: uint16(32450), + 102: uint16(32457), + 103: uint16(32459), + 104: uint16(32460), + 105: uint16(32464), + 106: uint16(32468), + 107: uint16(32471), + 108: uint16(32475), + 109: uint16(32480), + 110: uint16(32481), + 111: uint16(32488), + 112: uint16(32491), + 113: uint16(32494), + 114: uint16(32495), + 115: uint16(32497), + 116: uint16(32498), + 117: uint16(32525), + 118: uint16(32502), + 119: uint16(32506), + 120: uint16(32507), + 121: uint16(32510), + 122: uint16(32513), + 123: uint16(32514), + 124: uint16(32515), + 125: uint16(32519), + 126: uint16(32520), + 127: uint16(32523), + 128: uint16(32524), + 129: uint16(32527), + 130: uint16(32529), + 131: uint16(32530), + 132: uint16(32535), + 133: uint16(32537), + 134: uint16(32540), + 135: uint16(32539), + 136: uint16(32543), + 137: uint16(32545), + 138: uint16(32546), + 139: uint16(32547), + 140: uint16(32548), + 141: uint16(32549), + 142: uint16(32550), + 143: uint16(32551), + 144: uint16(32554), + 145: uint16(32555), + 146: uint16(32556), + 147: uint16(32557), + 148: uint16(32559), + 149: uint16(32560), + 150: uint16(32561), + 151: uint16(32562), + 152: uint16(32563), + 153: uint16(32565), + 154: uint16(24186), + 155: uint16(30079), + 156: uint16(24027), + 157: uint16(30014), + 158: uint16(37013), + 159: uint16(29582), + 160: uint16(29585), + 161: uint16(29614), + 162: uint16(29602), + 163: uint16(29599), + 164: uint16(29647), + 165: uint16(29634), + 166: uint16(29649), + 167: uint16(29623), + 168: uint16(29619), + 169: uint16(29632), + 170: uint16(29641), + 171: uint16(29640), + 172: uint16(29669), + 173: uint16(29657), + 174: uint16(39036), + 175: uint16(29706), + 176: uint16(29673), + 177: uint16(29671), + 178: uint16(29662), + 179: uint16(29626), + 180: uint16(29682), + 181: uint16(29711), + 182: uint16(29738), + 183: uint16(29787), + 184: uint16(29734), + 185: uint16(29733), + 186: uint16(29736), + 187: uint16(29744), + 188: uint16(29742), + 189: uint16(29740), + }, + 103: { + 0: uint16(37935), + 1: uint16(37936), + 2: uint16(37937), + 3: uint16(37938), + 4: uint16(37939), + 5: uint16(37940), + 6: uint16(37941), + 7: uint16(37942), + 8: uint16(37943), + 9: uint16(37944), + 10: uint16(37945), + 11: uint16(37946), + 12: uint16(37947), + 13: uint16(37948), + 14: uint16(37949), + 15: uint16(37951), + 16: uint16(37952), + 17: uint16(37953), + 18: uint16(37954), + 19: uint16(37955), + 20: uint16(37956), + 21: uint16(37957), + 22: uint16(37958), + 23: uint16(37959), + 24: uint16(37960), + 25: uint16(37961), + 26: uint16(37962), + 27: uint16(37963), + 28: uint16(37964), + 29: uint16(37965), + 30: uint16(37966), + 31: uint16(37967), + 32: uint16(37968), + 33: uint16(37969), + 34: uint16(37970), + 35: uint16(37971), + 36: uint16(37972), + 37: uint16(37973), + 38: uint16(37974), + 39: uint16(37975), + 40: uint16(37976), + 41: uint16(37977), + 42: uint16(37978), + 43: uint16(37979), + 44: uint16(37980), + 45: uint16(37981), + 46: uint16(37982), + 47: uint16(37983), + 48: uint16(37984), + 49: uint16(37985), + 50: uint16(37986), + 51: uint16(37987), + 52: uint16(37988), + 53: uint16(37989), + 54: uint16(37990), + 55: uint16(37991), + 56: uint16(37992), + 57: uint16(37993), + 58: uint16(37994), + 59: uint16(37996), + 60: uint16(37997), + 61: uint16(37998), + 62: uint16(37999), + 63: uint16(38000), + 64: uint16(38001), + 65: uint16(38002), + 66: uint16(38003), + 67: uint16(38004), + 68: uint16(38005), + 69: uint16(38006), + 70: uint16(38007), + 71: uint16(38008), + 72: uint16(38009), + 73: uint16(38010), + 74: uint16(38011), + 75: uint16(38012), + 76: uint16(38013), + 77: uint16(38014), + 78: uint16(38015), + 79: uint16(38016), + 80: uint16(38017), + 81: uint16(38018), + 82: uint16(38019), + 83: uint16(38020), + 84: uint16(38033), + 85: uint16(38038), + 86: uint16(38040), + 87: uint16(38087), + 88: uint16(38095), + 89: uint16(38099), + 90: uint16(38100), + 91: uint16(38106), + 92: uint16(38118), + 93: uint16(38139), + 94: uint16(38172), + 95: uint16(38176), + 96: uint16(29723), + 97: uint16(29722), + 98: uint16(29761), + 99: uint16(29788), + 100: uint16(29783), + 101: uint16(29781), + 102: uint16(29785), + 103: uint16(29815), + 104: uint16(29805), + 105: uint16(29822), + 106: uint16(29852), + 107: uint16(29838), + 108: uint16(29824), + 109: uint16(29825), + 110: uint16(29831), + 111: uint16(29835), + 112: uint16(29854), + 113: uint16(29864), + 114: uint16(29865), + 115: uint16(29840), + 116: uint16(29863), + 117: uint16(29906), + 118: uint16(29882), + 119: uint16(38890), + 120: uint16(38891), + 121: uint16(38892), + 122: uint16(26444), + 123: uint16(26451), + 124: uint16(26462), + 125: uint16(26440), + 126: uint16(26473), + 127: uint16(26533), + 128: uint16(26503), + 129: uint16(26474), + 130: uint16(26483), + 131: uint16(26520), + 132: uint16(26535), + 133: uint16(26485), + 134: uint16(26536), + 135: uint16(26526), + 136: uint16(26541), + 137: uint16(26507), + 138: uint16(26487), + 139: uint16(26492), + 140: uint16(26608), + 141: uint16(26633), + 142: uint16(26584), + 143: uint16(26634), + 144: uint16(26601), + 145: uint16(26544), + 146: uint16(26636), + 147: uint16(26585), + 148: uint16(26549), + 149: uint16(26586), + 150: uint16(26547), + 151: uint16(26589), + 152: uint16(26624), + 153: uint16(26563), + 154: uint16(26552), + 155: uint16(26594), + 156: uint16(26638), + 157: uint16(26561), + 158: uint16(26621), + 159: uint16(26674), + 160: uint16(26675), + 161: uint16(26720), + 162: uint16(26721), + 163: uint16(26702), + 164: uint16(26722), + 165: uint16(26692), + 166: uint16(26724), + 167: uint16(26755), + 168: uint16(26653), + 169: uint16(26709), + 170: uint16(26726), + 171: uint16(26689), + 172: uint16(26727), + 173: uint16(26688), + 174: uint16(26686), + 175: uint16(26698), + 176: uint16(26697), + 177: uint16(26665), + 178: uint16(26805), + 179: uint16(26767), + 180: uint16(26740), + 181: uint16(26743), + 182: uint16(26771), + 183: uint16(26731), + 184: uint16(26818), + 185: uint16(26990), + 186: uint16(26876), + 187: uint16(26911), + 188: uint16(26912), + 189: uint16(26873), + }, + 104: { + 0: uint16(38183), + 1: uint16(38195), + 2: uint16(38205), + 3: uint16(38211), + 4: uint16(38216), + 5: uint16(38219), + 6: uint16(38229), + 7: uint16(38234), + 8: uint16(38240), + 9: uint16(38254), + 10: uint16(38260), + 11: uint16(38261), + 12: uint16(38263), + 13: uint16(38264), + 14: uint16(38265), + 15: uint16(38266), + 16: uint16(38267), + 17: uint16(38268), + 18: uint16(38269), + 19: uint16(38270), + 20: uint16(38272), + 21: uint16(38273), + 22: uint16(38274), + 23: uint16(38275), + 24: uint16(38276), + 25: uint16(38277), + 26: uint16(38278), + 27: uint16(38279), + 28: uint16(38280), + 29: uint16(38281), + 30: uint16(38282), + 31: uint16(38283), + 32: uint16(38284), + 33: uint16(38285), + 34: uint16(38286), + 35: uint16(38287), + 36: uint16(38288), + 37: uint16(38289), + 38: uint16(38290), + 39: uint16(38291), + 40: uint16(38292), + 41: uint16(38293), + 42: uint16(38294), + 43: uint16(38295), + 44: uint16(38296), + 45: uint16(38297), + 46: uint16(38298), + 47: uint16(38299), + 48: uint16(38300), + 49: uint16(38301), + 50: uint16(38302), + 51: uint16(38303), + 52: uint16(38304), + 53: uint16(38305), + 54: uint16(38306), + 55: uint16(38307), + 56: uint16(38308), + 57: uint16(38309), + 58: uint16(38310), + 59: uint16(38311), + 60: uint16(38312), + 61: uint16(38313), + 62: uint16(38314), + 63: uint16(38315), + 64: uint16(38316), + 65: uint16(38317), + 66: uint16(38318), + 67: uint16(38319), + 68: uint16(38320), + 69: uint16(38321), + 70: uint16(38322), + 71: uint16(38323), + 72: uint16(38324), + 73: uint16(38325), + 74: uint16(38326), + 75: uint16(38327), + 76: uint16(38328), + 77: uint16(38329), + 78: uint16(38330), + 79: uint16(38331), + 80: uint16(38332), + 81: uint16(38333), + 82: uint16(38334), + 83: uint16(38335), + 84: uint16(38336), + 85: uint16(38337), + 86: uint16(38338), + 87: uint16(38339), + 88: uint16(38340), + 89: uint16(38341), + 90: uint16(38342), + 91: uint16(38343), + 92: uint16(38344), + 93: uint16(38345), + 94: uint16(38346), + 95: uint16(38347), + 96: uint16(26916), + 97: uint16(26864), + 98: uint16(26891), + 99: uint16(26881), + 100: uint16(26967), + 101: uint16(26851), + 102: uint16(26896), + 103: uint16(26993), + 104: uint16(26937), + 105: uint16(26976), + 106: uint16(26946), + 107: uint16(26973), + 108: uint16(27012), + 109: uint16(26987), + 110: uint16(27008), + 111: uint16(27032), + 112: uint16(27000), + 113: uint16(26932), + 114: uint16(27084), + 115: uint16(27015), + 116: uint16(27016), + 117: uint16(27086), + 118: uint16(27017), + 119: uint16(26982), + 120: uint16(26979), + 121: uint16(27001), + 122: uint16(27035), + 123: uint16(27047), + 124: uint16(27067), + 125: uint16(27051), + 126: uint16(27053), + 127: uint16(27092), + 128: uint16(27057), + 129: uint16(27073), + 130: uint16(27082), + 131: uint16(27103), + 132: uint16(27029), + 133: uint16(27104), + 134: uint16(27021), + 135: uint16(27135), + 136: uint16(27183), + 137: uint16(27117), + 138: uint16(27159), + 139: uint16(27160), + 140: uint16(27237), + 141: uint16(27122), + 142: uint16(27204), + 143: uint16(27198), + 144: uint16(27296), + 145: uint16(27216), + 146: uint16(27227), + 147: uint16(27189), + 148: uint16(27278), + 149: uint16(27257), + 150: uint16(27197), + 151: uint16(27176), + 152: uint16(27224), + 153: uint16(27260), + 154: uint16(27281), + 155: uint16(27280), + 156: uint16(27305), + 157: uint16(27287), + 158: uint16(27307), + 159: uint16(29495), + 160: uint16(29522), + 161: uint16(27521), + 162: uint16(27522), + 163: uint16(27527), + 164: uint16(27524), + 165: uint16(27538), + 166: uint16(27539), + 167: uint16(27533), + 168: uint16(27546), + 169: uint16(27547), + 170: uint16(27553), + 171: uint16(27562), + 172: uint16(36715), + 173: uint16(36717), + 174: uint16(36721), + 175: uint16(36722), + 176: uint16(36723), + 177: uint16(36725), + 178: uint16(36726), + 179: uint16(36728), + 180: uint16(36727), + 181: uint16(36729), + 182: uint16(36730), + 183: uint16(36732), + 184: uint16(36734), + 185: uint16(36737), + 186: uint16(36738), + 187: uint16(36740), + 188: uint16(36743), + 189: uint16(36747), + }, + 105: { + 0: uint16(38348), + 1: uint16(38349), + 2: uint16(38350), + 3: uint16(38351), + 4: uint16(38352), + 5: uint16(38353), + 6: uint16(38354), + 7: uint16(38355), + 8: uint16(38356), + 9: uint16(38357), + 10: uint16(38358), + 11: uint16(38359), + 12: uint16(38360), + 13: uint16(38361), + 14: uint16(38362), + 15: uint16(38363), + 16: uint16(38364), + 17: uint16(38365), + 18: uint16(38366), + 19: uint16(38367), + 20: uint16(38368), + 21: uint16(38369), + 22: uint16(38370), + 23: uint16(38371), + 24: uint16(38372), + 25: uint16(38373), + 26: uint16(38374), + 27: uint16(38375), + 28: uint16(38380), + 29: uint16(38399), + 30: uint16(38407), + 31: uint16(38419), + 32: uint16(38424), + 33: uint16(38427), + 34: uint16(38430), + 35: uint16(38432), + 36: uint16(38435), + 37: uint16(38436), + 38: uint16(38437), + 39: uint16(38438), + 40: uint16(38439), + 41: uint16(38440), + 42: uint16(38441), + 43: uint16(38443), + 44: uint16(38444), + 45: uint16(38445), + 46: uint16(38447), + 47: uint16(38448), + 48: uint16(38455), + 49: uint16(38456), + 50: uint16(38457), + 51: uint16(38458), + 52: uint16(38462), + 53: uint16(38465), + 54: uint16(38467), + 55: uint16(38474), + 56: uint16(38478), + 57: uint16(38479), + 58: uint16(38481), + 59: uint16(38482), + 60: uint16(38483), + 61: uint16(38486), + 62: uint16(38487), + 63: uint16(38488), + 64: uint16(38489), + 65: uint16(38490), + 66: uint16(38492), + 67: uint16(38493), + 68: uint16(38494), + 69: uint16(38496), + 70: uint16(38499), + 71: uint16(38501), + 72: uint16(38502), + 73: uint16(38507), + 74: uint16(38509), + 75: uint16(38510), + 76: uint16(38511), + 77: uint16(38512), + 78: uint16(38513), + 79: uint16(38515), + 80: uint16(38520), + 81: uint16(38521), + 82: uint16(38522), + 83: uint16(38523), + 84: uint16(38524), + 85: uint16(38525), + 86: uint16(38526), + 87: uint16(38527), + 88: uint16(38528), + 89: uint16(38529), + 90: uint16(38530), + 91: uint16(38531), + 92: uint16(38532), + 93: uint16(38535), + 94: uint16(38537), + 95: uint16(38538), + 96: uint16(36749), + 97: uint16(36750), + 98: uint16(36751), + 99: uint16(36760), + 100: uint16(36762), + 101: uint16(36558), + 102: uint16(25099), + 103: uint16(25111), + 104: uint16(25115), + 105: uint16(25119), + 106: uint16(25122), + 107: uint16(25121), + 108: uint16(25125), + 109: uint16(25124), + 110: uint16(25132), + 111: uint16(33255), + 112: uint16(29935), + 113: uint16(29940), + 114: uint16(29951), + 115: uint16(29967), + 116: uint16(29969), + 117: uint16(29971), + 118: uint16(25908), + 119: uint16(26094), + 120: uint16(26095), + 121: uint16(26096), + 122: uint16(26122), + 123: uint16(26137), + 124: uint16(26482), + 125: uint16(26115), + 126: uint16(26133), + 127: uint16(26112), + 128: uint16(28805), + 129: uint16(26359), + 130: uint16(26141), + 131: uint16(26164), + 132: uint16(26161), + 133: uint16(26166), + 134: uint16(26165), + 135: uint16(32774), + 136: uint16(26207), + 137: uint16(26196), + 138: uint16(26177), + 139: uint16(26191), + 140: uint16(26198), + 141: uint16(26209), + 142: uint16(26199), + 143: uint16(26231), + 144: uint16(26244), + 145: uint16(26252), + 146: uint16(26279), + 147: uint16(26269), + 148: uint16(26302), + 149: uint16(26331), + 150: uint16(26332), + 151: uint16(26342), + 152: uint16(26345), + 153: uint16(36146), + 154: uint16(36147), + 155: uint16(36150), + 156: uint16(36155), + 157: uint16(36157), + 158: uint16(36160), + 159: uint16(36165), + 160: uint16(36166), + 161: uint16(36168), + 162: uint16(36169), + 163: uint16(36167), + 164: uint16(36173), + 165: uint16(36181), + 166: uint16(36185), + 167: uint16(35271), + 168: uint16(35274), + 169: uint16(35275), + 170: uint16(35276), + 171: uint16(35278), + 172: uint16(35279), + 173: uint16(35280), + 174: uint16(35281), + 175: uint16(29294), + 176: uint16(29343), + 177: uint16(29277), + 178: uint16(29286), + 179: uint16(29295), + 180: uint16(29310), + 181: uint16(29311), + 182: uint16(29316), + 183: uint16(29323), + 184: uint16(29325), + 185: uint16(29327), + 186: uint16(29330), + 187: uint16(25352), + 188: uint16(25394), + 189: uint16(25520), + }, + 106: { + 0: uint16(38540), + 1: uint16(38542), + 2: uint16(38545), + 3: uint16(38546), + 4: uint16(38547), + 5: uint16(38549), + 6: uint16(38550), + 7: uint16(38554), + 8: uint16(38555), + 9: uint16(38557), + 10: uint16(38558), + 11: uint16(38559), + 12: uint16(38560), + 13: uint16(38561), + 14: uint16(38562), + 15: uint16(38563), + 16: uint16(38564), + 17: uint16(38565), + 18: uint16(38566), + 19: uint16(38568), + 20: uint16(38569), + 21: uint16(38570), + 22: uint16(38571), + 23: uint16(38572), + 24: uint16(38573), + 25: uint16(38574), + 26: uint16(38575), + 27: uint16(38577), + 28: uint16(38578), + 29: uint16(38580), + 30: uint16(38581), + 31: uint16(38583), + 32: uint16(38584), + 33: uint16(38586), + 34: uint16(38587), + 35: uint16(38591), + 36: uint16(38594), + 37: uint16(38595), + 38: uint16(38600), + 39: uint16(38602), + 40: uint16(38603), + 41: uint16(38608), + 42: uint16(38609), + 43: uint16(38611), + 44: uint16(38612), + 45: uint16(38614), + 46: uint16(38615), + 47: uint16(38616), + 48: uint16(38617), + 49: uint16(38618), + 50: uint16(38619), + 51: uint16(38620), + 52: uint16(38621), + 53: uint16(38622), + 54: uint16(38623), + 55: uint16(38625), + 56: uint16(38626), + 57: uint16(38627), + 58: uint16(38628), + 59: uint16(38629), + 60: uint16(38630), + 61: uint16(38631), + 62: uint16(38635), + 63: uint16(38636), + 64: uint16(38637), + 65: uint16(38638), + 66: uint16(38640), + 67: uint16(38641), + 68: uint16(38642), + 69: uint16(38644), + 70: uint16(38645), + 71: uint16(38648), + 72: uint16(38650), + 73: uint16(38651), + 74: uint16(38652), + 75: uint16(38653), + 76: uint16(38655), + 77: uint16(38658), + 78: uint16(38659), + 79: uint16(38661), + 80: uint16(38666), + 81: uint16(38667), + 82: uint16(38668), + 83: uint16(38672), + 84: uint16(38673), + 85: uint16(38674), + 86: uint16(38676), + 87: uint16(38677), + 88: uint16(38679), + 89: uint16(38680), + 90: uint16(38681), + 91: uint16(38682), + 92: uint16(38683), + 93: uint16(38685), + 94: uint16(38687), + 95: uint16(38688), + 96: uint16(25663), + 97: uint16(25816), + 98: uint16(32772), + 99: uint16(27626), + 100: uint16(27635), + 101: uint16(27645), + 102: uint16(27637), + 103: uint16(27641), + 104: uint16(27653), + 105: uint16(27655), + 106: uint16(27654), + 107: uint16(27661), + 108: uint16(27669), + 109: uint16(27672), + 110: uint16(27673), + 111: uint16(27674), + 112: uint16(27681), + 113: uint16(27689), + 114: uint16(27684), + 115: uint16(27690), + 116: uint16(27698), + 117: uint16(25909), + 118: uint16(25941), + 119: uint16(25963), + 120: uint16(29261), + 121: uint16(29266), + 122: uint16(29270), + 123: uint16(29232), + 124: uint16(34402), + 125: uint16(21014), + 126: uint16(32927), + 127: uint16(32924), + 128: uint16(32915), + 129: uint16(32956), + 130: uint16(26378), + 131: uint16(32957), + 132: uint16(32945), + 133: uint16(32939), + 134: uint16(32941), + 135: uint16(32948), + 136: uint16(32951), + 137: uint16(32999), + 138: uint16(33000), + 139: uint16(33001), + 140: uint16(33002), + 141: uint16(32987), + 142: uint16(32962), + 143: uint16(32964), + 144: uint16(32985), + 145: uint16(32973), + 146: uint16(32983), + 147: uint16(26384), + 148: uint16(32989), + 149: uint16(33003), + 150: uint16(33009), + 151: uint16(33012), + 152: uint16(33005), + 153: uint16(33037), + 154: uint16(33038), + 155: uint16(33010), + 156: uint16(33020), + 157: uint16(26389), + 158: uint16(33042), + 159: uint16(35930), + 160: uint16(33078), + 161: uint16(33054), + 162: uint16(33068), + 163: uint16(33048), + 164: uint16(33074), + 165: uint16(33096), + 166: uint16(33100), + 167: uint16(33107), + 168: uint16(33140), + 169: uint16(33113), + 170: uint16(33114), + 171: uint16(33137), + 172: uint16(33120), + 173: uint16(33129), + 174: uint16(33148), + 175: uint16(33149), + 176: uint16(33133), + 177: uint16(33127), + 178: uint16(22605), + 179: uint16(23221), + 180: uint16(33160), + 181: uint16(33154), + 182: uint16(33169), + 183: uint16(28373), + 184: uint16(33187), + 185: uint16(33194), + 186: uint16(33228), + 187: uint16(26406), + 188: uint16(33226), + 189: uint16(33211), + }, + 107: { + 0: uint16(38689), + 1: uint16(38690), + 2: uint16(38691), + 3: uint16(38692), + 4: uint16(38693), + 5: uint16(38694), + 6: uint16(38695), + 7: uint16(38696), + 8: uint16(38697), + 9: uint16(38699), + 10: uint16(38700), + 11: uint16(38702), + 12: uint16(38703), + 13: uint16(38705), + 14: uint16(38707), + 15: uint16(38708), + 16: uint16(38709), + 17: uint16(38710), + 18: uint16(38711), + 19: uint16(38714), + 20: uint16(38715), + 21: uint16(38716), + 22: uint16(38717), + 23: uint16(38719), + 24: uint16(38720), + 25: uint16(38721), + 26: uint16(38722), + 27: uint16(38723), + 28: uint16(38724), + 29: uint16(38725), + 30: uint16(38726), + 31: uint16(38727), + 32: uint16(38728), + 33: uint16(38729), + 34: uint16(38730), + 35: uint16(38731), + 36: uint16(38732), + 37: uint16(38733), + 38: uint16(38734), + 39: uint16(38735), + 40: uint16(38736), + 41: uint16(38737), + 42: uint16(38740), + 43: uint16(38741), + 44: uint16(38743), + 45: uint16(38744), + 46: uint16(38746), + 47: uint16(38748), + 48: uint16(38749), + 49: uint16(38751), + 50: uint16(38755), + 51: uint16(38756), + 52: uint16(38758), + 53: uint16(38759), + 54: uint16(38760), + 55: uint16(38762), + 56: uint16(38763), + 57: uint16(38764), + 58: uint16(38765), + 59: uint16(38766), + 60: uint16(38767), + 61: uint16(38768), + 62: uint16(38769), + 63: uint16(38770), + 64: uint16(38773), + 65: uint16(38775), + 66: uint16(38776), + 67: uint16(38777), + 68: uint16(38778), + 69: uint16(38779), + 70: uint16(38781), + 71: uint16(38782), + 72: uint16(38783), + 73: uint16(38784), + 74: uint16(38785), + 75: uint16(38786), + 76: uint16(38787), + 77: uint16(38788), + 78: uint16(38790), + 79: uint16(38791), + 80: uint16(38792), + 81: uint16(38793), + 82: uint16(38794), + 83: uint16(38796), + 84: uint16(38798), + 85: uint16(38799), + 86: uint16(38800), + 87: uint16(38803), + 88: uint16(38805), + 89: uint16(38806), + 90: uint16(38807), + 91: uint16(38809), + 92: uint16(38810), + 93: uint16(38811), + 94: uint16(38812), + 95: uint16(38813), + 96: uint16(33217), + 97: uint16(33190), + 98: uint16(27428), + 99: uint16(27447), + 100: uint16(27449), + 101: uint16(27459), + 102: uint16(27462), + 103: uint16(27481), + 104: uint16(39121), + 105: uint16(39122), + 106: uint16(39123), + 107: uint16(39125), + 108: uint16(39129), + 109: uint16(39130), + 110: uint16(27571), + 111: uint16(24384), + 112: uint16(27586), + 113: uint16(35315), + 114: uint16(26000), + 115: uint16(40785), + 116: uint16(26003), + 117: uint16(26044), + 118: uint16(26054), + 119: uint16(26052), + 120: uint16(26051), + 121: uint16(26060), + 122: uint16(26062), + 123: uint16(26066), + 124: uint16(26070), + 125: uint16(28800), + 126: uint16(28828), + 127: uint16(28822), + 128: uint16(28829), + 129: uint16(28859), + 130: uint16(28864), + 131: uint16(28855), + 132: uint16(28843), + 133: uint16(28849), + 134: uint16(28904), + 135: uint16(28874), + 136: uint16(28944), + 137: uint16(28947), + 138: uint16(28950), + 139: uint16(28975), + 140: uint16(28977), + 141: uint16(29043), + 142: uint16(29020), + 143: uint16(29032), + 144: uint16(28997), + 145: uint16(29042), + 146: uint16(29002), + 147: uint16(29048), + 148: uint16(29050), + 149: uint16(29080), + 150: uint16(29107), + 151: uint16(29109), + 152: uint16(29096), + 153: uint16(29088), + 154: uint16(29152), + 155: uint16(29140), + 156: uint16(29159), + 157: uint16(29177), + 158: uint16(29213), + 159: uint16(29224), + 160: uint16(28780), + 161: uint16(28952), + 162: uint16(29030), + 163: uint16(29113), + 164: uint16(25150), + 165: uint16(25149), + 166: uint16(25155), + 167: uint16(25160), + 168: uint16(25161), + 169: uint16(31035), + 170: uint16(31040), + 171: uint16(31046), + 172: uint16(31049), + 173: uint16(31067), + 174: uint16(31068), + 175: uint16(31059), + 176: uint16(31066), + 177: uint16(31074), + 178: uint16(31063), + 179: uint16(31072), + 180: uint16(31087), + 181: uint16(31079), + 182: uint16(31098), + 183: uint16(31109), + 184: uint16(31114), + 185: uint16(31130), + 186: uint16(31143), + 187: uint16(31155), + 188: uint16(24529), + 189: uint16(24528), + }, + 108: { + 0: uint16(38814), + 1: uint16(38815), + 2: uint16(38817), + 3: uint16(38818), + 4: uint16(38820), + 5: uint16(38821), + 6: uint16(38822), + 7: uint16(38823), + 8: uint16(38824), + 9: uint16(38825), + 10: uint16(38826), + 11: uint16(38828), + 12: uint16(38830), + 13: uint16(38832), + 14: uint16(38833), + 15: uint16(38835), + 16: uint16(38837), + 17: uint16(38838), + 18: uint16(38839), + 19: uint16(38840), + 20: uint16(38841), + 21: uint16(38842), + 22: uint16(38843), + 23: uint16(38844), + 24: uint16(38845), + 25: uint16(38846), + 26: uint16(38847), + 27: uint16(38848), + 28: uint16(38849), + 29: uint16(38850), + 30: uint16(38851), + 31: uint16(38852), + 32: uint16(38853), + 33: uint16(38854), + 34: uint16(38855), + 35: uint16(38856), + 36: uint16(38857), + 37: uint16(38858), + 38: uint16(38859), + 39: uint16(38860), + 40: uint16(38861), + 41: uint16(38862), + 42: uint16(38863), + 43: uint16(38864), + 44: uint16(38865), + 45: uint16(38866), + 46: uint16(38867), + 47: uint16(38868), + 48: uint16(38869), + 49: uint16(38870), + 50: uint16(38871), + 51: uint16(38872), + 52: uint16(38873), + 53: uint16(38874), + 54: uint16(38875), + 55: uint16(38876), + 56: uint16(38877), + 57: uint16(38878), + 58: uint16(38879), + 59: uint16(38880), + 60: uint16(38881), + 61: uint16(38882), + 62: uint16(38883), + 63: uint16(38884), + 64: uint16(38885), + 65: uint16(38888), + 66: uint16(38894), + 67: uint16(38895), + 68: uint16(38896), + 69: uint16(38897), + 70: uint16(38898), + 71: uint16(38900), + 72: uint16(38903), + 73: uint16(38904), + 74: uint16(38905), + 75: uint16(38906), + 76: uint16(38907), + 77: uint16(38908), + 78: uint16(38909), + 79: uint16(38910), + 80: uint16(38911), + 81: uint16(38912), + 82: uint16(38913), + 83: uint16(38914), + 84: uint16(38915), + 85: uint16(38916), + 86: uint16(38917), + 87: uint16(38918), + 88: uint16(38919), + 89: uint16(38920), + 90: uint16(38921), + 91: uint16(38922), + 92: uint16(38923), + 93: uint16(38924), + 94: uint16(38925), + 95: uint16(38926), + 96: uint16(24636), + 97: uint16(24669), + 98: uint16(24666), + 99: uint16(24679), + 100: uint16(24641), + 101: uint16(24665), + 102: uint16(24675), + 103: uint16(24747), + 104: uint16(24838), + 105: uint16(24845), + 106: uint16(24925), + 107: uint16(25001), + 108: uint16(24989), + 109: uint16(25035), + 110: uint16(25041), + 111: uint16(25094), + 112: uint16(32896), + 113: uint16(32895), + 114: uint16(27795), + 115: uint16(27894), + 116: uint16(28156), + 117: uint16(30710), + 118: uint16(30712), + 119: uint16(30720), + 120: uint16(30729), + 121: uint16(30743), + 122: uint16(30744), + 123: uint16(30737), + 124: uint16(26027), + 125: uint16(30765), + 126: uint16(30748), + 127: uint16(30749), + 128: uint16(30777), + 129: uint16(30778), + 130: uint16(30779), + 131: uint16(30751), + 132: uint16(30780), + 133: uint16(30757), + 134: uint16(30764), + 135: uint16(30755), + 136: uint16(30761), + 137: uint16(30798), + 138: uint16(30829), + 139: uint16(30806), + 140: uint16(30807), + 141: uint16(30758), + 142: uint16(30800), + 143: uint16(30791), + 144: uint16(30796), + 145: uint16(30826), + 146: uint16(30875), + 147: uint16(30867), + 148: uint16(30874), + 149: uint16(30855), + 150: uint16(30876), + 151: uint16(30881), + 152: uint16(30883), + 153: uint16(30898), + 154: uint16(30905), + 155: uint16(30885), + 156: uint16(30932), + 157: uint16(30937), + 158: uint16(30921), + 159: uint16(30956), + 160: uint16(30962), + 161: uint16(30981), + 162: uint16(30964), + 163: uint16(30995), + 164: uint16(31012), + 165: uint16(31006), + 166: uint16(31028), + 167: uint16(40859), + 168: uint16(40697), + 169: uint16(40699), + 170: uint16(40700), + 171: uint16(30449), + 172: uint16(30468), + 173: uint16(30477), + 174: uint16(30457), + 175: uint16(30471), + 176: uint16(30472), + 177: uint16(30490), + 178: uint16(30498), + 179: uint16(30489), + 180: uint16(30509), + 181: uint16(30502), + 182: uint16(30517), + 183: uint16(30520), + 184: uint16(30544), + 185: uint16(30545), + 186: uint16(30535), + 187: uint16(30531), + 188: uint16(30554), + 189: uint16(30568), + }, + 109: { + 0: uint16(38927), + 1: uint16(38928), + 2: uint16(38929), + 3: uint16(38930), + 4: uint16(38931), + 5: uint16(38932), + 6: uint16(38933), + 7: uint16(38934), + 8: uint16(38935), + 9: uint16(38936), + 10: uint16(38937), + 11: uint16(38938), + 12: uint16(38939), + 13: uint16(38940), + 14: uint16(38941), + 15: uint16(38942), + 16: uint16(38943), + 17: uint16(38944), + 18: uint16(38945), + 19: uint16(38946), + 20: uint16(38947), + 21: uint16(38948), + 22: uint16(38949), + 23: uint16(38950), + 24: uint16(38951), + 25: uint16(38952), + 26: uint16(38953), + 27: uint16(38954), + 28: uint16(38955), + 29: uint16(38956), + 30: uint16(38957), + 31: uint16(38958), + 32: uint16(38959), + 33: uint16(38960), + 34: uint16(38961), + 35: uint16(38962), + 36: uint16(38963), + 37: uint16(38964), + 38: uint16(38965), + 39: uint16(38966), + 40: uint16(38967), + 41: uint16(38968), + 42: uint16(38969), + 43: uint16(38970), + 44: uint16(38971), + 45: uint16(38972), + 46: uint16(38973), + 47: uint16(38974), + 48: uint16(38975), + 49: uint16(38976), + 50: uint16(38977), + 51: uint16(38978), + 52: uint16(38979), + 53: uint16(38980), + 54: uint16(38981), + 55: uint16(38982), + 56: uint16(38983), + 57: uint16(38984), + 58: uint16(38985), + 59: uint16(38986), + 60: uint16(38987), + 61: uint16(38988), + 62: uint16(38989), + 63: uint16(38990), + 64: uint16(38991), + 65: uint16(38992), + 66: uint16(38993), + 67: uint16(38994), + 68: uint16(38995), + 69: uint16(38996), + 70: uint16(38997), + 71: uint16(38998), + 72: uint16(38999), + 73: uint16(39000), + 74: uint16(39001), + 75: uint16(39002), + 76: uint16(39003), + 77: uint16(39004), + 78: uint16(39005), + 79: uint16(39006), + 80: uint16(39007), + 81: uint16(39008), + 82: uint16(39009), + 83: uint16(39010), + 84: uint16(39011), + 85: uint16(39012), + 86: uint16(39013), + 87: uint16(39014), + 88: uint16(39015), + 89: uint16(39016), + 90: uint16(39017), + 91: uint16(39018), + 92: uint16(39019), + 93: uint16(39020), + 94: uint16(39021), + 95: uint16(39022), + 96: uint16(30562), + 97: uint16(30565), + 98: uint16(30591), + 99: uint16(30605), + 100: uint16(30589), + 101: uint16(30592), + 102: uint16(30604), + 103: uint16(30609), + 104: uint16(30623), + 105: uint16(30624), + 106: uint16(30640), + 107: uint16(30645), + 108: uint16(30653), + 109: uint16(30010), + 110: uint16(30016), + 111: uint16(30030), + 112: uint16(30027), + 113: uint16(30024), + 114: uint16(30043), + 115: uint16(30066), + 116: uint16(30073), + 117: uint16(30083), + 118: uint16(32600), + 119: uint16(32609), + 120: uint16(32607), + 121: uint16(35400), + 122: uint16(32616), + 123: uint16(32628), + 124: uint16(32625), + 125: uint16(32633), + 126: uint16(32641), + 127: uint16(32638), + 128: uint16(30413), + 129: uint16(30437), + 130: uint16(34866), + 131: uint16(38021), + 132: uint16(38022), + 133: uint16(38023), + 134: uint16(38027), + 135: uint16(38026), + 136: uint16(38028), + 137: uint16(38029), + 138: uint16(38031), + 139: uint16(38032), + 140: uint16(38036), + 141: uint16(38039), + 142: uint16(38037), + 143: uint16(38042), + 144: uint16(38043), + 145: uint16(38044), + 146: uint16(38051), + 147: uint16(38052), + 148: uint16(38059), + 149: uint16(38058), + 150: uint16(38061), + 151: uint16(38060), + 152: uint16(38063), + 153: uint16(38064), + 154: uint16(38066), + 155: uint16(38068), + 156: uint16(38070), + 157: uint16(38071), + 158: uint16(38072), + 159: uint16(38073), + 160: uint16(38074), + 161: uint16(38076), + 162: uint16(38077), + 163: uint16(38079), + 164: uint16(38084), + 165: uint16(38088), + 166: uint16(38089), + 167: uint16(38090), + 168: uint16(38091), + 169: uint16(38092), + 170: uint16(38093), + 171: uint16(38094), + 172: uint16(38096), + 173: uint16(38097), + 174: uint16(38098), + 175: uint16(38101), + 176: uint16(38102), + 177: uint16(38103), + 178: uint16(38105), + 179: uint16(38104), + 180: uint16(38107), + 181: uint16(38110), + 182: uint16(38111), + 183: uint16(38112), + 184: uint16(38114), + 185: uint16(38116), + 186: uint16(38117), + 187: uint16(38119), + 188: uint16(38120), + 189: uint16(38122), + }, + 110: { + 0: uint16(39023), + 1: uint16(39024), + 2: uint16(39025), + 3: uint16(39026), + 4: uint16(39027), + 5: uint16(39028), + 6: uint16(39051), + 7: uint16(39054), + 8: uint16(39058), + 9: uint16(39061), + 10: uint16(39065), + 11: uint16(39075), + 12: uint16(39080), + 13: uint16(39081), + 14: uint16(39082), + 15: uint16(39083), + 16: uint16(39084), + 17: uint16(39085), + 18: uint16(39086), + 19: uint16(39087), + 20: uint16(39088), + 21: uint16(39089), + 22: uint16(39090), + 23: uint16(39091), + 24: uint16(39092), + 25: uint16(39093), + 26: uint16(39094), + 27: uint16(39095), + 28: uint16(39096), + 29: uint16(39097), + 30: uint16(39098), + 31: uint16(39099), + 32: uint16(39100), + 33: uint16(39101), + 34: uint16(39102), + 35: uint16(39103), + 36: uint16(39104), + 37: uint16(39105), + 38: uint16(39106), + 39: uint16(39107), + 40: uint16(39108), + 41: uint16(39109), + 42: uint16(39110), + 43: uint16(39111), + 44: uint16(39112), + 45: uint16(39113), + 46: uint16(39114), + 47: uint16(39115), + 48: uint16(39116), + 49: uint16(39117), + 50: uint16(39119), + 51: uint16(39120), + 52: uint16(39124), + 53: uint16(39126), + 54: uint16(39127), + 55: uint16(39131), + 56: uint16(39132), + 57: uint16(39133), + 58: uint16(39136), + 59: uint16(39137), + 60: uint16(39138), + 61: uint16(39139), + 62: uint16(39140), + 63: uint16(39141), + 64: uint16(39142), + 65: uint16(39145), + 66: uint16(39146), + 67: uint16(39147), + 68: uint16(39148), + 69: uint16(39149), + 70: uint16(39150), + 71: uint16(39151), + 72: uint16(39152), + 73: uint16(39153), + 74: uint16(39154), + 75: uint16(39155), + 76: uint16(39156), + 77: uint16(39157), + 78: uint16(39158), + 79: uint16(39159), + 80: uint16(39160), + 81: uint16(39161), + 82: uint16(39162), + 83: uint16(39163), + 84: uint16(39164), + 85: uint16(39165), + 86: uint16(39166), + 87: uint16(39167), + 88: uint16(39168), + 89: uint16(39169), + 90: uint16(39170), + 91: uint16(39171), + 92: uint16(39172), + 93: uint16(39173), + 94: uint16(39174), + 95: uint16(39175), + 96: uint16(38121), + 97: uint16(38123), + 98: uint16(38126), + 99: uint16(38127), + 100: uint16(38131), + 101: uint16(38132), + 102: uint16(38133), + 103: uint16(38135), + 104: uint16(38137), + 105: uint16(38140), + 106: uint16(38141), + 107: uint16(38143), + 108: uint16(38147), + 109: uint16(38146), + 110: uint16(38150), + 111: uint16(38151), + 112: uint16(38153), + 113: uint16(38154), + 114: uint16(38157), + 115: uint16(38158), + 116: uint16(38159), + 117: uint16(38162), + 118: uint16(38163), + 119: uint16(38164), + 120: uint16(38165), + 121: uint16(38166), + 122: uint16(38168), + 123: uint16(38171), + 124: uint16(38173), + 125: uint16(38174), + 126: uint16(38175), + 127: uint16(38178), + 128: uint16(38186), + 129: uint16(38187), + 130: uint16(38185), + 131: uint16(38188), + 132: uint16(38193), + 133: uint16(38194), + 134: uint16(38196), + 135: uint16(38198), + 136: uint16(38199), + 137: uint16(38200), + 138: uint16(38204), + 139: uint16(38206), + 140: uint16(38207), + 141: uint16(38210), + 142: uint16(38197), + 143: uint16(38212), + 144: uint16(38213), + 145: uint16(38214), + 146: uint16(38217), + 147: uint16(38220), + 148: uint16(38222), + 149: uint16(38223), + 150: uint16(38226), + 151: uint16(38227), + 152: uint16(38228), + 153: uint16(38230), + 154: uint16(38231), + 155: uint16(38232), + 156: uint16(38233), + 157: uint16(38235), + 158: uint16(38238), + 159: uint16(38239), + 160: uint16(38237), + 161: uint16(38241), + 162: uint16(38242), + 163: uint16(38244), + 164: uint16(38245), + 165: uint16(38246), + 166: uint16(38247), + 167: uint16(38248), + 168: uint16(38249), + 169: uint16(38250), + 170: uint16(38251), + 171: uint16(38252), + 172: uint16(38255), + 173: uint16(38257), + 174: uint16(38258), + 175: uint16(38259), + 176: uint16(38202), + 177: uint16(30695), + 178: uint16(30700), + 179: uint16(38601), + 180: uint16(31189), + 181: uint16(31213), + 182: uint16(31203), + 183: uint16(31211), + 184: uint16(31238), + 185: uint16(23879), + 186: uint16(31235), + 187: uint16(31234), + 188: uint16(31262), + 189: uint16(31252), + }, + 111: { + 0: uint16(39176), + 1: uint16(39177), + 2: uint16(39178), + 3: uint16(39179), + 4: uint16(39180), + 5: uint16(39182), + 6: uint16(39183), + 7: uint16(39185), + 8: uint16(39186), + 9: uint16(39187), + 10: uint16(39188), + 11: uint16(39189), + 12: uint16(39190), + 13: uint16(39191), + 14: uint16(39192), + 15: uint16(39193), + 16: uint16(39194), + 17: uint16(39195), + 18: uint16(39196), + 19: uint16(39197), + 20: uint16(39198), + 21: uint16(39199), + 22: uint16(39200), + 23: uint16(39201), + 24: uint16(39202), + 25: uint16(39203), + 26: uint16(39204), + 27: uint16(39205), + 28: uint16(39206), + 29: uint16(39207), + 30: uint16(39208), + 31: uint16(39209), + 32: uint16(39210), + 33: uint16(39211), + 34: uint16(39212), + 35: uint16(39213), + 36: uint16(39215), + 37: uint16(39216), + 38: uint16(39217), + 39: uint16(39218), + 40: uint16(39219), + 41: uint16(39220), + 42: uint16(39221), + 43: uint16(39222), + 44: uint16(39223), + 45: uint16(39224), + 46: uint16(39225), + 47: uint16(39226), + 48: uint16(39227), + 49: uint16(39228), + 50: uint16(39229), + 51: uint16(39230), + 52: uint16(39231), + 53: uint16(39232), + 54: uint16(39233), + 55: uint16(39234), + 56: uint16(39235), + 57: uint16(39236), + 58: uint16(39237), + 59: uint16(39238), + 60: uint16(39239), + 61: uint16(39240), + 62: uint16(39241), + 63: uint16(39242), + 64: uint16(39243), + 65: uint16(39244), + 66: uint16(39245), + 67: uint16(39246), + 68: uint16(39247), + 69: uint16(39248), + 70: uint16(39249), + 71: uint16(39250), + 72: uint16(39251), + 73: uint16(39254), + 74: uint16(39255), + 75: uint16(39256), + 76: uint16(39257), + 77: uint16(39258), + 78: uint16(39259), + 79: uint16(39260), + 80: uint16(39261), + 81: uint16(39262), + 82: uint16(39263), + 83: uint16(39264), + 84: uint16(39265), + 85: uint16(39266), + 86: uint16(39268), + 87: uint16(39270), + 88: uint16(39283), + 89: uint16(39288), + 90: uint16(39289), + 91: uint16(39291), + 92: uint16(39294), + 93: uint16(39298), + 94: uint16(39299), + 95: uint16(39305), + 96: uint16(31289), + 97: uint16(31287), + 98: uint16(31313), + 99: uint16(40655), + 100: uint16(39333), + 101: uint16(31344), + 102: uint16(30344), + 103: uint16(30350), + 104: uint16(30355), + 105: uint16(30361), + 106: uint16(30372), + 107: uint16(29918), + 108: uint16(29920), + 109: uint16(29996), + 110: uint16(40480), + 111: uint16(40482), + 112: uint16(40488), + 113: uint16(40489), + 114: uint16(40490), + 115: uint16(40491), + 116: uint16(40492), + 117: uint16(40498), + 118: uint16(40497), + 119: uint16(40502), + 120: uint16(40504), + 121: uint16(40503), + 122: uint16(40505), + 123: uint16(40506), + 124: uint16(40510), + 125: uint16(40513), + 126: uint16(40514), + 127: uint16(40516), + 128: uint16(40518), + 129: uint16(40519), + 130: uint16(40520), + 131: uint16(40521), + 132: uint16(40523), + 133: uint16(40524), + 134: uint16(40526), + 135: uint16(40529), + 136: uint16(40533), + 137: uint16(40535), + 138: uint16(40538), + 139: uint16(40539), + 140: uint16(40540), + 141: uint16(40542), + 142: uint16(40547), + 143: uint16(40550), + 144: uint16(40551), + 145: uint16(40552), + 146: uint16(40553), + 147: uint16(40554), + 148: uint16(40555), + 149: uint16(40556), + 150: uint16(40561), + 151: uint16(40557), + 152: uint16(40563), + 153: uint16(30098), + 154: uint16(30100), + 155: uint16(30102), + 156: uint16(30112), + 157: uint16(30109), + 158: uint16(30124), + 159: uint16(30115), + 160: uint16(30131), + 161: uint16(30132), + 162: uint16(30136), + 163: uint16(30148), + 164: uint16(30129), + 165: uint16(30128), + 166: uint16(30147), + 167: uint16(30146), + 168: uint16(30166), + 169: uint16(30157), + 170: uint16(30179), + 171: uint16(30184), + 172: uint16(30182), + 173: uint16(30180), + 174: uint16(30187), + 175: uint16(30183), + 176: uint16(30211), + 177: uint16(30193), + 178: uint16(30204), + 179: uint16(30207), + 180: uint16(30224), + 181: uint16(30208), + 182: uint16(30213), + 183: uint16(30220), + 184: uint16(30231), + 185: uint16(30218), + 186: uint16(30245), + 187: uint16(30232), + 188: uint16(30229), + 189: uint16(30233), + }, + 112: { + 0: uint16(39308), + 1: uint16(39310), + 2: uint16(39322), + 3: uint16(39323), + 4: uint16(39324), + 5: uint16(39325), + 6: uint16(39326), + 7: uint16(39327), + 8: uint16(39328), + 9: uint16(39329), + 10: uint16(39330), + 11: uint16(39331), + 12: uint16(39332), + 13: uint16(39334), + 14: uint16(39335), + 15: uint16(39337), + 16: uint16(39338), + 17: uint16(39339), + 18: uint16(39340), + 19: uint16(39341), + 20: uint16(39342), + 21: uint16(39343), + 22: uint16(39344), + 23: uint16(39345), + 24: uint16(39346), + 25: uint16(39347), + 26: uint16(39348), + 27: uint16(39349), + 28: uint16(39350), + 29: uint16(39351), + 30: uint16(39352), + 31: uint16(39353), + 32: uint16(39354), + 33: uint16(39355), + 34: uint16(39356), + 35: uint16(39357), + 36: uint16(39358), + 37: uint16(39359), + 38: uint16(39360), + 39: uint16(39361), + 40: uint16(39362), + 41: uint16(39363), + 42: uint16(39364), + 43: uint16(39365), + 44: uint16(39366), + 45: uint16(39367), + 46: uint16(39368), + 47: uint16(39369), + 48: uint16(39370), + 49: uint16(39371), + 50: uint16(39372), + 51: uint16(39373), + 52: uint16(39374), + 53: uint16(39375), + 54: uint16(39376), + 55: uint16(39377), + 56: uint16(39378), + 57: uint16(39379), + 58: uint16(39380), + 59: uint16(39381), + 60: uint16(39382), + 61: uint16(39383), + 62: uint16(39384), + 63: uint16(39385), + 64: uint16(39386), + 65: uint16(39387), + 66: uint16(39388), + 67: uint16(39389), + 68: uint16(39390), + 69: uint16(39391), + 70: uint16(39392), + 71: uint16(39393), + 72: uint16(39394), + 73: uint16(39395), + 74: uint16(39396), + 75: uint16(39397), + 76: uint16(39398), + 77: uint16(39399), + 78: uint16(39400), + 79: uint16(39401), + 80: uint16(39402), + 81: uint16(39403), + 82: uint16(39404), + 83: uint16(39405), + 84: uint16(39406), + 85: uint16(39407), + 86: uint16(39408), + 87: uint16(39409), + 88: uint16(39410), + 89: uint16(39411), + 90: uint16(39412), + 91: uint16(39413), + 92: uint16(39414), + 93: uint16(39415), + 94: uint16(39416), + 95: uint16(39417), + 96: uint16(30235), + 97: uint16(30268), + 98: uint16(30242), + 99: uint16(30240), + 100: uint16(30272), + 101: uint16(30253), + 102: uint16(30256), + 103: uint16(30271), + 104: uint16(30261), + 105: uint16(30275), + 106: uint16(30270), + 107: uint16(30259), + 108: uint16(30285), + 109: uint16(30302), + 110: uint16(30292), + 111: uint16(30300), + 112: uint16(30294), + 113: uint16(30315), + 114: uint16(30319), + 115: uint16(32714), + 116: uint16(31462), + 117: uint16(31352), + 118: uint16(31353), + 119: uint16(31360), + 120: uint16(31366), + 121: uint16(31368), + 122: uint16(31381), + 123: uint16(31398), + 124: uint16(31392), + 125: uint16(31404), + 126: uint16(31400), + 127: uint16(31405), + 128: uint16(31411), + 129: uint16(34916), + 130: uint16(34921), + 131: uint16(34930), + 132: uint16(34941), + 133: uint16(34943), + 134: uint16(34946), + 135: uint16(34978), + 136: uint16(35014), + 137: uint16(34999), + 138: uint16(35004), + 139: uint16(35017), + 140: uint16(35042), + 141: uint16(35022), + 142: uint16(35043), + 143: uint16(35045), + 144: uint16(35057), + 145: uint16(35098), + 146: uint16(35068), + 147: uint16(35048), + 148: uint16(35070), + 149: uint16(35056), + 150: uint16(35105), + 151: uint16(35097), + 152: uint16(35091), + 153: uint16(35099), + 154: uint16(35082), + 155: uint16(35124), + 156: uint16(35115), + 157: uint16(35126), + 158: uint16(35137), + 159: uint16(35174), + 160: uint16(35195), + 161: uint16(30091), + 162: uint16(32997), + 163: uint16(30386), + 164: uint16(30388), + 165: uint16(30684), + 166: uint16(32786), + 167: uint16(32788), + 168: uint16(32790), + 169: uint16(32796), + 170: uint16(32800), + 171: uint16(32802), + 172: uint16(32805), + 173: uint16(32806), + 174: uint16(32807), + 175: uint16(32809), + 176: uint16(32808), + 177: uint16(32817), + 178: uint16(32779), + 179: uint16(32821), + 180: uint16(32835), + 181: uint16(32838), + 182: uint16(32845), + 183: uint16(32850), + 184: uint16(32873), + 185: uint16(32881), + 186: uint16(35203), + 187: uint16(39032), + 188: uint16(39040), + 189: uint16(39043), + }, + 113: { + 0: uint16(39418), + 1: uint16(39419), + 2: uint16(39420), + 3: uint16(39421), + 4: uint16(39422), + 5: uint16(39423), + 6: uint16(39424), + 7: uint16(39425), + 8: uint16(39426), + 9: uint16(39427), + 10: uint16(39428), + 11: uint16(39429), + 12: uint16(39430), + 13: uint16(39431), + 14: uint16(39432), + 15: uint16(39433), + 16: uint16(39434), + 17: uint16(39435), + 18: uint16(39436), + 19: uint16(39437), + 20: uint16(39438), + 21: uint16(39439), + 22: uint16(39440), + 23: uint16(39441), + 24: uint16(39442), + 25: uint16(39443), + 26: uint16(39444), + 27: uint16(39445), + 28: uint16(39446), + 29: uint16(39447), + 30: uint16(39448), + 31: uint16(39449), + 32: uint16(39450), + 33: uint16(39451), + 34: uint16(39452), + 35: uint16(39453), + 36: uint16(39454), + 37: uint16(39455), + 38: uint16(39456), + 39: uint16(39457), + 40: uint16(39458), + 41: uint16(39459), + 42: uint16(39460), + 43: uint16(39461), + 44: uint16(39462), + 45: uint16(39463), + 46: uint16(39464), + 47: uint16(39465), + 48: uint16(39466), + 49: uint16(39467), + 50: uint16(39468), + 51: uint16(39469), + 52: uint16(39470), + 53: uint16(39471), + 54: uint16(39472), + 55: uint16(39473), + 56: uint16(39474), + 57: uint16(39475), + 58: uint16(39476), + 59: uint16(39477), + 60: uint16(39478), + 61: uint16(39479), + 62: uint16(39480), + 63: uint16(39481), + 64: uint16(39482), + 65: uint16(39483), + 66: uint16(39484), + 67: uint16(39485), + 68: uint16(39486), + 69: uint16(39487), + 70: uint16(39488), + 71: uint16(39489), + 72: uint16(39490), + 73: uint16(39491), + 74: uint16(39492), + 75: uint16(39493), + 76: uint16(39494), + 77: uint16(39495), + 78: uint16(39496), + 79: uint16(39497), + 80: uint16(39498), + 81: uint16(39499), + 82: uint16(39500), + 83: uint16(39501), + 84: uint16(39502), + 85: uint16(39503), + 86: uint16(39504), + 87: uint16(39505), + 88: uint16(39506), + 89: uint16(39507), + 90: uint16(39508), + 91: uint16(39509), + 92: uint16(39510), + 93: uint16(39511), + 94: uint16(39512), + 95: uint16(39513), + 96: uint16(39049), + 97: uint16(39052), + 98: uint16(39053), + 99: uint16(39055), + 100: uint16(39060), + 101: uint16(39066), + 102: uint16(39067), + 103: uint16(39070), + 104: uint16(39071), + 105: uint16(39073), + 106: uint16(39074), + 107: uint16(39077), + 108: uint16(39078), + 109: uint16(34381), + 110: uint16(34388), + 111: uint16(34412), + 112: uint16(34414), + 113: uint16(34431), + 114: uint16(34426), + 115: uint16(34428), + 116: uint16(34427), + 117: uint16(34472), + 118: uint16(34445), + 119: uint16(34443), + 120: uint16(34476), + 121: uint16(34461), + 122: uint16(34471), + 123: uint16(34467), + 124: uint16(34474), + 125: uint16(34451), + 126: uint16(34473), + 127: uint16(34486), + 128: uint16(34500), + 129: uint16(34485), + 130: uint16(34510), + 131: uint16(34480), + 132: uint16(34490), + 133: uint16(34481), + 134: uint16(34479), + 135: uint16(34505), + 136: uint16(34511), + 137: uint16(34484), + 138: uint16(34537), + 139: uint16(34545), + 140: uint16(34546), + 141: uint16(34541), + 142: uint16(34547), + 143: uint16(34512), + 144: uint16(34579), + 145: uint16(34526), + 146: uint16(34548), + 147: uint16(34527), + 148: uint16(34520), + 149: uint16(34513), + 150: uint16(34563), + 151: uint16(34567), + 152: uint16(34552), + 153: uint16(34568), + 154: uint16(34570), + 155: uint16(34573), + 156: uint16(34569), + 157: uint16(34595), + 158: uint16(34619), + 159: uint16(34590), + 160: uint16(34597), + 161: uint16(34606), + 162: uint16(34586), + 163: uint16(34622), + 164: uint16(34632), + 165: uint16(34612), + 166: uint16(34609), + 167: uint16(34601), + 168: uint16(34615), + 169: uint16(34623), + 170: uint16(34690), + 171: uint16(34594), + 172: uint16(34685), + 173: uint16(34686), + 174: uint16(34683), + 175: uint16(34656), + 176: uint16(34672), + 177: uint16(34636), + 178: uint16(34670), + 179: uint16(34699), + 180: uint16(34643), + 181: uint16(34659), + 182: uint16(34684), + 183: uint16(34660), + 184: uint16(34649), + 185: uint16(34661), + 186: uint16(34707), + 187: uint16(34735), + 188: uint16(34728), + 189: uint16(34770), + }, + 114: { + 0: uint16(39514), + 1: uint16(39515), + 2: uint16(39516), + 3: uint16(39517), + 4: uint16(39518), + 5: uint16(39519), + 6: uint16(39520), + 7: uint16(39521), + 8: uint16(39522), + 9: uint16(39523), + 10: uint16(39524), + 11: uint16(39525), + 12: uint16(39526), + 13: uint16(39527), + 14: uint16(39528), + 15: uint16(39529), + 16: uint16(39530), + 17: uint16(39531), + 18: uint16(39538), + 19: uint16(39555), + 20: uint16(39561), + 21: uint16(39565), + 22: uint16(39566), + 23: uint16(39572), + 24: uint16(39573), + 25: uint16(39577), + 26: uint16(39590), + 27: uint16(39593), + 28: uint16(39594), + 29: uint16(39595), + 30: uint16(39596), + 31: uint16(39597), + 32: uint16(39598), + 33: uint16(39599), + 34: uint16(39602), + 35: uint16(39603), + 36: uint16(39604), + 37: uint16(39605), + 38: uint16(39609), + 39: uint16(39611), + 40: uint16(39613), + 41: uint16(39614), + 42: uint16(39615), + 43: uint16(39619), + 44: uint16(39620), + 45: uint16(39622), + 46: uint16(39623), + 47: uint16(39624), + 48: uint16(39625), + 49: uint16(39626), + 50: uint16(39629), + 51: uint16(39630), + 52: uint16(39631), + 53: uint16(39632), + 54: uint16(39634), + 55: uint16(39636), + 56: uint16(39637), + 57: uint16(39638), + 58: uint16(39639), + 59: uint16(39641), + 60: uint16(39642), + 61: uint16(39643), + 62: uint16(39644), + 63: uint16(39645), + 64: uint16(39646), + 65: uint16(39648), + 66: uint16(39650), + 67: uint16(39651), + 68: uint16(39652), + 69: uint16(39653), + 70: uint16(39655), + 71: uint16(39656), + 72: uint16(39657), + 73: uint16(39658), + 74: uint16(39660), + 75: uint16(39662), + 76: uint16(39664), + 77: uint16(39665), + 78: uint16(39666), + 79: uint16(39667), + 80: uint16(39668), + 81: uint16(39669), + 82: uint16(39670), + 83: uint16(39671), + 84: uint16(39672), + 85: uint16(39674), + 86: uint16(39676), + 87: uint16(39677), + 88: uint16(39678), + 89: uint16(39679), + 90: uint16(39680), + 91: uint16(39681), + 92: uint16(39682), + 93: uint16(39684), + 94: uint16(39685), + 95: uint16(39686), + 96: uint16(34758), + 97: uint16(34696), + 98: uint16(34693), + 99: uint16(34733), + 100: uint16(34711), + 101: uint16(34691), + 102: uint16(34731), + 103: uint16(34789), + 104: uint16(34732), + 105: uint16(34741), + 106: uint16(34739), + 107: uint16(34763), + 108: uint16(34771), + 109: uint16(34749), + 110: uint16(34769), + 111: uint16(34752), + 112: uint16(34762), + 113: uint16(34779), + 114: uint16(34794), + 115: uint16(34784), + 116: uint16(34798), + 117: uint16(34838), + 118: uint16(34835), + 119: uint16(34814), + 120: uint16(34826), + 121: uint16(34843), + 122: uint16(34849), + 123: uint16(34873), + 124: uint16(34876), + 125: uint16(32566), + 126: uint16(32578), + 127: uint16(32580), + 128: uint16(32581), + 129: uint16(33296), + 130: uint16(31482), + 131: uint16(31485), + 132: uint16(31496), + 133: uint16(31491), + 134: uint16(31492), + 135: uint16(31509), + 136: uint16(31498), + 137: uint16(31531), + 138: uint16(31503), + 139: uint16(31559), + 140: uint16(31544), + 141: uint16(31530), + 142: uint16(31513), + 143: uint16(31534), + 144: uint16(31537), + 145: uint16(31520), + 146: uint16(31525), + 147: uint16(31524), + 148: uint16(31539), + 149: uint16(31550), + 150: uint16(31518), + 151: uint16(31576), + 152: uint16(31578), + 153: uint16(31557), + 154: uint16(31605), + 155: uint16(31564), + 156: uint16(31581), + 157: uint16(31584), + 158: uint16(31598), + 159: uint16(31611), + 160: uint16(31586), + 161: uint16(31602), + 162: uint16(31601), + 163: uint16(31632), + 164: uint16(31654), + 165: uint16(31655), + 166: uint16(31672), + 167: uint16(31660), + 168: uint16(31645), + 169: uint16(31656), + 170: uint16(31621), + 171: uint16(31658), + 172: uint16(31644), + 173: uint16(31650), + 174: uint16(31659), + 175: uint16(31668), + 176: uint16(31697), + 177: uint16(31681), + 178: uint16(31692), + 179: uint16(31709), + 180: uint16(31706), + 181: uint16(31717), + 182: uint16(31718), + 183: uint16(31722), + 184: uint16(31756), + 185: uint16(31742), + 186: uint16(31740), + 187: uint16(31759), + 188: uint16(31766), + 189: uint16(31755), + }, + 115: { + 0: uint16(39687), + 1: uint16(39689), + 2: uint16(39690), + 3: uint16(39691), + 4: uint16(39692), + 5: uint16(39693), + 6: uint16(39694), + 7: uint16(39696), + 8: uint16(39697), + 9: uint16(39698), + 10: uint16(39700), + 11: uint16(39701), + 12: uint16(39702), + 13: uint16(39703), + 14: uint16(39704), + 15: uint16(39705), + 16: uint16(39706), + 17: uint16(39707), + 18: uint16(39708), + 19: uint16(39709), + 20: uint16(39710), + 21: uint16(39712), + 22: uint16(39713), + 23: uint16(39714), + 24: uint16(39716), + 25: uint16(39717), + 26: uint16(39718), + 27: uint16(39719), + 28: uint16(39720), + 29: uint16(39721), + 30: uint16(39722), + 31: uint16(39723), + 32: uint16(39724), + 33: uint16(39725), + 34: uint16(39726), + 35: uint16(39728), + 36: uint16(39729), + 37: uint16(39731), + 38: uint16(39732), + 39: uint16(39733), + 40: uint16(39734), + 41: uint16(39735), + 42: uint16(39736), + 43: uint16(39737), + 44: uint16(39738), + 45: uint16(39741), + 46: uint16(39742), + 47: uint16(39743), + 48: uint16(39744), + 49: uint16(39750), + 50: uint16(39754), + 51: uint16(39755), + 52: uint16(39756), + 53: uint16(39758), + 54: uint16(39760), + 55: uint16(39762), + 56: uint16(39763), + 57: uint16(39765), + 58: uint16(39766), + 59: uint16(39767), + 60: uint16(39768), + 61: uint16(39769), + 62: uint16(39770), + 63: uint16(39771), + 64: uint16(39772), + 65: uint16(39773), + 66: uint16(39774), + 67: uint16(39775), + 68: uint16(39776), + 69: uint16(39777), + 70: uint16(39778), + 71: uint16(39779), + 72: uint16(39780), + 73: uint16(39781), + 74: uint16(39782), + 75: uint16(39783), + 76: uint16(39784), + 77: uint16(39785), + 78: uint16(39786), + 79: uint16(39787), + 80: uint16(39788), + 81: uint16(39789), + 82: uint16(39790), + 83: uint16(39791), + 84: uint16(39792), + 85: uint16(39793), + 86: uint16(39794), + 87: uint16(39795), + 88: uint16(39796), + 89: uint16(39797), + 90: uint16(39798), + 91: uint16(39799), + 92: uint16(39800), + 93: uint16(39801), + 94: uint16(39802), + 95: uint16(39803), + 96: uint16(31775), + 97: uint16(31786), + 98: uint16(31782), + 99: uint16(31800), + 100: uint16(31809), + 101: uint16(31808), + 102: uint16(33278), + 103: uint16(33281), + 104: uint16(33282), + 105: uint16(33284), + 106: uint16(33260), + 107: uint16(34884), + 108: uint16(33313), + 109: uint16(33314), + 110: uint16(33315), + 111: uint16(33325), + 112: uint16(33327), + 113: uint16(33320), + 114: uint16(33323), + 115: uint16(33336), + 116: uint16(33339), + 117: uint16(33331), + 118: uint16(33332), + 119: uint16(33342), + 120: uint16(33348), + 121: uint16(33353), + 122: uint16(33355), + 123: uint16(33359), + 124: uint16(33370), + 125: uint16(33375), + 126: uint16(33384), + 127: uint16(34942), + 128: uint16(34949), + 129: uint16(34952), + 130: uint16(35032), + 131: uint16(35039), + 132: uint16(35166), + 133: uint16(32669), + 134: uint16(32671), + 135: uint16(32679), + 136: uint16(32687), + 137: uint16(32688), + 138: uint16(32690), + 139: uint16(31868), + 140: uint16(25929), + 141: uint16(31889), + 142: uint16(31901), + 143: uint16(31900), + 144: uint16(31902), + 145: uint16(31906), + 146: uint16(31922), + 147: uint16(31932), + 148: uint16(31933), + 149: uint16(31937), + 150: uint16(31943), + 151: uint16(31948), + 152: uint16(31949), + 153: uint16(31944), + 154: uint16(31941), + 155: uint16(31959), + 156: uint16(31976), + 157: uint16(33390), + 158: uint16(26280), + 159: uint16(32703), + 160: uint16(32718), + 161: uint16(32725), + 162: uint16(32741), + 163: uint16(32737), + 164: uint16(32742), + 165: uint16(32745), + 166: uint16(32750), + 167: uint16(32755), + 168: uint16(31992), + 169: uint16(32119), + 170: uint16(32166), + 171: uint16(32174), + 172: uint16(32327), + 173: uint16(32411), + 174: uint16(40632), + 175: uint16(40628), + 176: uint16(36211), + 177: uint16(36228), + 178: uint16(36244), + 179: uint16(36241), + 180: uint16(36273), + 181: uint16(36199), + 182: uint16(36205), + 183: uint16(35911), + 184: uint16(35913), + 185: uint16(37194), + 186: uint16(37200), + 187: uint16(37198), + 188: uint16(37199), + 189: uint16(37220), + }, + 116: { + 0: uint16(39804), + 1: uint16(39805), + 2: uint16(39806), + 3: uint16(39807), + 4: uint16(39808), + 5: uint16(39809), + 6: uint16(39810), + 7: uint16(39811), + 8: uint16(39812), + 9: uint16(39813), + 10: uint16(39814), + 11: uint16(39815), + 12: uint16(39816), + 13: uint16(39817), + 14: uint16(39818), + 15: uint16(39819), + 16: uint16(39820), + 17: uint16(39821), + 18: uint16(39822), + 19: uint16(39823), + 20: uint16(39824), + 21: uint16(39825), + 22: uint16(39826), + 23: uint16(39827), + 24: uint16(39828), + 25: uint16(39829), + 26: uint16(39830), + 27: uint16(39831), + 28: uint16(39832), + 29: uint16(39833), + 30: uint16(39834), + 31: uint16(39835), + 32: uint16(39836), + 33: uint16(39837), + 34: uint16(39838), + 35: uint16(39839), + 36: uint16(39840), + 37: uint16(39841), + 38: uint16(39842), + 39: uint16(39843), + 40: uint16(39844), + 41: uint16(39845), + 42: uint16(39846), + 43: uint16(39847), + 44: uint16(39848), + 45: uint16(39849), + 46: uint16(39850), + 47: uint16(39851), + 48: uint16(39852), + 49: uint16(39853), + 50: uint16(39854), + 51: uint16(39855), + 52: uint16(39856), + 53: uint16(39857), + 54: uint16(39858), + 55: uint16(39859), + 56: uint16(39860), + 57: uint16(39861), + 58: uint16(39862), + 59: uint16(39863), + 60: uint16(39864), + 61: uint16(39865), + 62: uint16(39866), + 63: uint16(39867), + 64: uint16(39868), + 65: uint16(39869), + 66: uint16(39870), + 67: uint16(39871), + 68: uint16(39872), + 69: uint16(39873), + 70: uint16(39874), + 71: uint16(39875), + 72: uint16(39876), + 73: uint16(39877), + 74: uint16(39878), + 75: uint16(39879), + 76: uint16(39880), + 77: uint16(39881), + 78: uint16(39882), + 79: uint16(39883), + 80: uint16(39884), + 81: uint16(39885), + 82: uint16(39886), + 83: uint16(39887), + 84: uint16(39888), + 85: uint16(39889), + 86: uint16(39890), + 87: uint16(39891), + 88: uint16(39892), + 89: uint16(39893), + 90: uint16(39894), + 91: uint16(39895), + 92: uint16(39896), + 93: uint16(39897), + 94: uint16(39898), + 95: uint16(39899), + 96: uint16(37218), + 97: uint16(37217), + 98: uint16(37232), + 99: uint16(37225), + 100: uint16(37231), + 101: uint16(37245), + 102: uint16(37246), + 103: uint16(37234), + 104: uint16(37236), + 105: uint16(37241), + 106: uint16(37260), + 107: uint16(37253), + 108: uint16(37264), + 109: uint16(37261), + 110: uint16(37265), + 111: uint16(37282), + 112: uint16(37283), + 113: uint16(37290), + 114: uint16(37293), + 115: uint16(37294), + 116: uint16(37295), + 117: uint16(37301), + 118: uint16(37300), + 119: uint16(37306), + 120: uint16(35925), + 121: uint16(40574), + 122: uint16(36280), + 123: uint16(36331), + 124: uint16(36357), + 125: uint16(36441), + 126: uint16(36457), + 127: uint16(36277), + 128: uint16(36287), + 129: uint16(36284), + 130: uint16(36282), + 131: uint16(36292), + 132: uint16(36310), + 133: uint16(36311), + 134: uint16(36314), + 135: uint16(36318), + 136: uint16(36302), + 137: uint16(36303), + 138: uint16(36315), + 139: uint16(36294), + 140: uint16(36332), + 141: uint16(36343), + 142: uint16(36344), + 143: uint16(36323), + 144: uint16(36345), + 145: uint16(36347), + 146: uint16(36324), + 147: uint16(36361), + 148: uint16(36349), + 149: uint16(36372), + 150: uint16(36381), + 151: uint16(36383), + 152: uint16(36396), + 153: uint16(36398), + 154: uint16(36387), + 155: uint16(36399), + 156: uint16(36410), + 157: uint16(36416), + 158: uint16(36409), + 159: uint16(36405), + 160: uint16(36413), + 161: uint16(36401), + 162: uint16(36425), + 163: uint16(36417), + 164: uint16(36418), + 165: uint16(36433), + 166: uint16(36434), + 167: uint16(36426), + 168: uint16(36464), + 169: uint16(36470), + 170: uint16(36476), + 171: uint16(36463), + 172: uint16(36468), + 173: uint16(36485), + 174: uint16(36495), + 175: uint16(36500), + 176: uint16(36496), + 177: uint16(36508), + 178: uint16(36510), + 179: uint16(35960), + 180: uint16(35970), + 181: uint16(35978), + 182: uint16(35973), + 183: uint16(35992), + 184: uint16(35988), + 185: uint16(26011), + 186: uint16(35286), + 187: uint16(35294), + 188: uint16(35290), + 189: uint16(35292), + }, + 117: { + 0: uint16(39900), + 1: uint16(39901), + 2: uint16(39902), + 3: uint16(39903), + 4: uint16(39904), + 5: uint16(39905), + 6: uint16(39906), + 7: uint16(39907), + 8: uint16(39908), + 9: uint16(39909), + 10: uint16(39910), + 11: uint16(39911), + 12: uint16(39912), + 13: uint16(39913), + 14: uint16(39914), + 15: uint16(39915), + 16: uint16(39916), + 17: uint16(39917), + 18: uint16(39918), + 19: uint16(39919), + 20: uint16(39920), + 21: uint16(39921), + 22: uint16(39922), + 23: uint16(39923), + 24: uint16(39924), + 25: uint16(39925), + 26: uint16(39926), + 27: uint16(39927), + 28: uint16(39928), + 29: uint16(39929), + 30: uint16(39930), + 31: uint16(39931), + 32: uint16(39932), + 33: uint16(39933), + 34: uint16(39934), + 35: uint16(39935), + 36: uint16(39936), + 37: uint16(39937), + 38: uint16(39938), + 39: uint16(39939), + 40: uint16(39940), + 41: uint16(39941), + 42: uint16(39942), + 43: uint16(39943), + 44: uint16(39944), + 45: uint16(39945), + 46: uint16(39946), + 47: uint16(39947), + 48: uint16(39948), + 49: uint16(39949), + 50: uint16(39950), + 51: uint16(39951), + 52: uint16(39952), + 53: uint16(39953), + 54: uint16(39954), + 55: uint16(39955), + 56: uint16(39956), + 57: uint16(39957), + 58: uint16(39958), + 59: uint16(39959), + 60: uint16(39960), + 61: uint16(39961), + 62: uint16(39962), + 63: uint16(39963), + 64: uint16(39964), + 65: uint16(39965), + 66: uint16(39966), + 67: uint16(39967), + 68: uint16(39968), + 69: uint16(39969), + 70: uint16(39970), + 71: uint16(39971), + 72: uint16(39972), + 73: uint16(39973), + 74: uint16(39974), + 75: uint16(39975), + 76: uint16(39976), + 77: uint16(39977), + 78: uint16(39978), + 79: uint16(39979), + 80: uint16(39980), + 81: uint16(39981), + 82: uint16(39982), + 83: uint16(39983), + 84: uint16(39984), + 85: uint16(39985), + 86: uint16(39986), + 87: uint16(39987), + 88: uint16(39988), + 89: uint16(39989), + 90: uint16(39990), + 91: uint16(39991), + 92: uint16(39992), + 93: uint16(39993), + 94: uint16(39994), + 95: uint16(39995), + 96: uint16(35301), + 97: uint16(35307), + 98: uint16(35311), + 99: uint16(35390), + 100: uint16(35622), + 101: uint16(38739), + 102: uint16(38633), + 103: uint16(38643), + 104: uint16(38639), + 105: uint16(38662), + 106: uint16(38657), + 107: uint16(38664), + 108: uint16(38671), + 109: uint16(38670), + 110: uint16(38698), + 111: uint16(38701), + 112: uint16(38704), + 113: uint16(38718), + 114: uint16(40832), + 115: uint16(40835), + 116: uint16(40837), + 117: uint16(40838), + 118: uint16(40839), + 119: uint16(40840), + 120: uint16(40841), + 121: uint16(40842), + 122: uint16(40844), + 123: uint16(40702), + 124: uint16(40715), + 125: uint16(40717), + 126: uint16(38585), + 127: uint16(38588), + 128: uint16(38589), + 129: uint16(38606), + 130: uint16(38610), + 131: uint16(30655), + 132: uint16(38624), + 133: uint16(37518), + 134: uint16(37550), + 135: uint16(37576), + 136: uint16(37694), + 137: uint16(37738), + 138: uint16(37834), + 139: uint16(37775), + 140: uint16(37950), + 141: uint16(37995), + 142: uint16(40063), + 143: uint16(40066), + 144: uint16(40069), + 145: uint16(40070), + 146: uint16(40071), + 147: uint16(40072), + 148: uint16(31267), + 149: uint16(40075), + 150: uint16(40078), + 151: uint16(40080), + 152: uint16(40081), + 153: uint16(40082), + 154: uint16(40084), + 155: uint16(40085), + 156: uint16(40090), + 157: uint16(40091), + 158: uint16(40094), + 159: uint16(40095), + 160: uint16(40096), + 161: uint16(40097), + 162: uint16(40098), + 163: uint16(40099), + 164: uint16(40101), + 165: uint16(40102), + 166: uint16(40103), + 167: uint16(40104), + 168: uint16(40105), + 169: uint16(40107), + 170: uint16(40109), + 171: uint16(40110), + 172: uint16(40112), + 173: uint16(40113), + 174: uint16(40114), + 175: uint16(40115), + 176: uint16(40116), + 177: uint16(40117), + 178: uint16(40118), + 179: uint16(40119), + 180: uint16(40122), + 181: uint16(40123), + 182: uint16(40124), + 183: uint16(40125), + 184: uint16(40132), + 185: uint16(40133), + 186: uint16(40134), + 187: uint16(40135), + 188: uint16(40138), + 189: uint16(40139), + }, + 118: { + 0: uint16(39996), + 1: uint16(39997), + 2: uint16(39998), + 3: uint16(39999), + 4: uint16(40000), + 5: uint16(40001), + 6: uint16(40002), + 7: uint16(40003), + 8: uint16(40004), + 9: uint16(40005), + 10: uint16(40006), + 11: uint16(40007), + 12: uint16(40008), + 13: uint16(40009), + 14: uint16(40010), + 15: uint16(40011), + 16: uint16(40012), + 17: uint16(40013), + 18: uint16(40014), + 19: uint16(40015), + 20: uint16(40016), + 21: uint16(40017), + 22: uint16(40018), + 23: uint16(40019), + 24: uint16(40020), + 25: uint16(40021), + 26: uint16(40022), + 27: uint16(40023), + 28: uint16(40024), + 29: uint16(40025), + 30: uint16(40026), + 31: uint16(40027), + 32: uint16(40028), + 33: uint16(40029), + 34: uint16(40030), + 35: uint16(40031), + 36: uint16(40032), + 37: uint16(40033), + 38: uint16(40034), + 39: uint16(40035), + 40: uint16(40036), + 41: uint16(40037), + 42: uint16(40038), + 43: uint16(40039), + 44: uint16(40040), + 45: uint16(40041), + 46: uint16(40042), + 47: uint16(40043), + 48: uint16(40044), + 49: uint16(40045), + 50: uint16(40046), + 51: uint16(40047), + 52: uint16(40048), + 53: uint16(40049), + 54: uint16(40050), + 55: uint16(40051), + 56: uint16(40052), + 57: uint16(40053), + 58: uint16(40054), + 59: uint16(40055), + 60: uint16(40056), + 61: uint16(40057), + 62: uint16(40058), + 63: uint16(40059), + 64: uint16(40061), + 65: uint16(40062), + 66: uint16(40064), + 67: uint16(40067), + 68: uint16(40068), + 69: uint16(40073), + 70: uint16(40074), + 71: uint16(40076), + 72: uint16(40079), + 73: uint16(40083), + 74: uint16(40086), + 75: uint16(40087), + 76: uint16(40088), + 77: uint16(40089), + 78: uint16(40093), + 79: uint16(40106), + 80: uint16(40108), + 81: uint16(40111), + 82: uint16(40121), + 83: uint16(40126), + 84: uint16(40127), + 85: uint16(40128), + 86: uint16(40129), + 87: uint16(40130), + 88: uint16(40136), + 89: uint16(40137), + 90: uint16(40145), + 91: uint16(40146), + 92: uint16(40154), + 93: uint16(40155), + 94: uint16(40160), + 95: uint16(40161), + 96: uint16(40140), + 97: uint16(40141), + 98: uint16(40142), + 99: uint16(40143), + 100: uint16(40144), + 101: uint16(40147), + 102: uint16(40148), + 103: uint16(40149), + 104: uint16(40151), + 105: uint16(40152), + 106: uint16(40153), + 107: uint16(40156), + 108: uint16(40157), + 109: uint16(40159), + 110: uint16(40162), + 111: uint16(38780), + 112: uint16(38789), + 113: uint16(38801), + 114: uint16(38802), + 115: uint16(38804), + 116: uint16(38831), + 117: uint16(38827), + 118: uint16(38819), + 119: uint16(38834), + 120: uint16(38836), + 121: uint16(39601), + 122: uint16(39600), + 123: uint16(39607), + 124: uint16(40536), + 125: uint16(39606), + 126: uint16(39610), + 127: uint16(39612), + 128: uint16(39617), + 129: uint16(39616), + 130: uint16(39621), + 131: uint16(39618), + 132: uint16(39627), + 133: uint16(39628), + 134: uint16(39633), + 135: uint16(39749), + 136: uint16(39747), + 137: uint16(39751), + 138: uint16(39753), + 139: uint16(39752), + 140: uint16(39757), + 141: uint16(39761), + 142: uint16(39144), + 143: uint16(39181), + 144: uint16(39214), + 145: uint16(39253), + 146: uint16(39252), + 147: uint16(39647), + 148: uint16(39649), + 149: uint16(39654), + 150: uint16(39663), + 151: uint16(39659), + 152: uint16(39675), + 153: uint16(39661), + 154: uint16(39673), + 155: uint16(39688), + 156: uint16(39695), + 157: uint16(39699), + 158: uint16(39711), + 159: uint16(39715), + 160: uint16(40637), + 161: uint16(40638), + 162: uint16(32315), + 163: uint16(40578), + 164: uint16(40583), + 165: uint16(40584), + 166: uint16(40587), + 167: uint16(40594), + 168: uint16(37846), + 169: uint16(40605), + 170: uint16(40607), + 171: uint16(40667), + 172: uint16(40668), + 173: uint16(40669), + 174: uint16(40672), + 175: uint16(40671), + 176: uint16(40674), + 177: uint16(40681), + 178: uint16(40679), + 179: uint16(40677), + 180: uint16(40682), + 181: uint16(40687), + 182: uint16(40738), + 183: uint16(40748), + 184: uint16(40751), + 185: uint16(40761), + 186: uint16(40759), + 187: uint16(40765), + 188: uint16(40766), + 189: uint16(40772), + }, + 119: { + 0: uint16(40163), + 1: uint16(40164), + 2: uint16(40165), + 3: uint16(40166), + 4: uint16(40167), + 5: uint16(40168), + 6: uint16(40169), + 7: uint16(40170), + 8: uint16(40171), + 9: uint16(40172), + 10: uint16(40173), + 11: uint16(40174), + 12: uint16(40175), + 13: uint16(40176), + 14: uint16(40177), + 15: uint16(40178), + 16: uint16(40179), + 17: uint16(40180), + 18: uint16(40181), + 19: uint16(40182), + 20: uint16(40183), + 21: uint16(40184), + 22: uint16(40185), + 23: uint16(40186), + 24: uint16(40187), + 25: uint16(40188), + 26: uint16(40189), + 27: uint16(40190), + 28: uint16(40191), + 29: uint16(40192), + 30: uint16(40193), + 31: uint16(40194), + 32: uint16(40195), + 33: uint16(40196), + 34: uint16(40197), + 35: uint16(40198), + 36: uint16(40199), + 37: uint16(40200), + 38: uint16(40201), + 39: uint16(40202), + 40: uint16(40203), + 41: uint16(40204), + 42: uint16(40205), + 43: uint16(40206), + 44: uint16(40207), + 45: uint16(40208), + 46: uint16(40209), + 47: uint16(40210), + 48: uint16(40211), + 49: uint16(40212), + 50: uint16(40213), + 51: uint16(40214), + 52: uint16(40215), + 53: uint16(40216), + 54: uint16(40217), + 55: uint16(40218), + 56: uint16(40219), + 57: uint16(40220), + 58: uint16(40221), + 59: uint16(40222), + 60: uint16(40223), + 61: uint16(40224), + 62: uint16(40225), + 63: uint16(40226), + 64: uint16(40227), + 65: uint16(40228), + 66: uint16(40229), + 67: uint16(40230), + 68: uint16(40231), + 69: uint16(40232), + 70: uint16(40233), + 71: uint16(40234), + 72: uint16(40235), + 73: uint16(40236), + 74: uint16(40237), + 75: uint16(40238), + 76: uint16(40239), + 77: uint16(40240), + 78: uint16(40241), + 79: uint16(40242), + 80: uint16(40243), + 81: uint16(40244), + 82: uint16(40245), + 83: uint16(40246), + 84: uint16(40247), + 85: uint16(40248), + 86: uint16(40249), + 87: uint16(40250), + 88: uint16(40251), + 89: uint16(40252), + 90: uint16(40253), + 91: uint16(40254), + 92: uint16(40255), + 93: uint16(40256), + 94: uint16(40257), + 95: uint16(40258), + 96: uint16(57908), + 97: uint16(57909), + 98: uint16(57910), + 99: uint16(57911), + 100: uint16(57912), + 101: uint16(57913), + 102: uint16(57914), + 103: uint16(57915), + 104: uint16(57916), + 105: uint16(57917), + 106: uint16(57918), + 107: uint16(57919), + 108: uint16(57920), + 109: uint16(57921), + 110: uint16(57922), + 111: uint16(57923), + 112: uint16(57924), + 113: uint16(57925), + 114: uint16(57926), + 115: uint16(57927), + 116: uint16(57928), + 117: uint16(57929), + 118: uint16(57930), + 119: uint16(57931), + 120: uint16(57932), + 121: uint16(57933), + 122: uint16(57934), + 123: uint16(57935), + 124: uint16(57936), + 125: uint16(57937), + 126: uint16(57938), + 127: uint16(57939), + 128: uint16(57940), + 129: uint16(57941), + 130: uint16(57942), + 131: uint16(57943), + 132: uint16(57944), + 133: uint16(57945), + 134: uint16(57946), + 135: uint16(57947), + 136: uint16(57948), + 137: uint16(57949), + 138: uint16(57950), + 139: uint16(57951), + 140: uint16(57952), + 141: uint16(57953), + 142: uint16(57954), + 143: uint16(57955), + 144: uint16(57956), + 145: uint16(57957), + 146: uint16(57958), + 147: uint16(57959), + 148: uint16(57960), + 149: uint16(57961), + 150: uint16(57962), + 151: uint16(57963), + 152: uint16(57964), + 153: uint16(57965), + 154: uint16(57966), + 155: uint16(57967), + 156: uint16(57968), + 157: uint16(57969), + 158: uint16(57970), + 159: uint16(57971), + 160: uint16(57972), + 161: uint16(57973), + 162: uint16(57974), + 163: uint16(57975), + 164: uint16(57976), + 165: uint16(57977), + 166: uint16(57978), + 167: uint16(57979), + 168: uint16(57980), + 169: uint16(57981), + 170: uint16(57982), + 171: uint16(57983), + 172: uint16(57984), + 173: uint16(57985), + 174: uint16(57986), + 175: uint16(57987), + 176: uint16(57988), + 177: uint16(57989), + 178: uint16(57990), + 179: uint16(57991), + 180: uint16(57992), + 181: uint16(57993), + 182: uint16(57994), + 183: uint16(57995), + 184: uint16(57996), + 185: uint16(57997), + 186: uint16(57998), + 187: uint16(57999), + 188: uint16(58000), + 189: uint16(58001), + }, + 120: { + 0: uint16(40259), + 1: uint16(40260), + 2: uint16(40261), + 3: uint16(40262), + 4: uint16(40263), + 5: uint16(40264), + 6: uint16(40265), + 7: uint16(40266), + 8: uint16(40267), + 9: uint16(40268), + 10: uint16(40269), + 11: uint16(40270), + 12: uint16(40271), + 13: uint16(40272), + 14: uint16(40273), + 15: uint16(40274), + 16: uint16(40275), + 17: uint16(40276), + 18: uint16(40277), + 19: uint16(40278), + 20: uint16(40279), + 21: uint16(40280), + 22: uint16(40281), + 23: uint16(40282), + 24: uint16(40283), + 25: uint16(40284), + 26: uint16(40285), + 27: uint16(40286), + 28: uint16(40287), + 29: uint16(40288), + 30: uint16(40289), + 31: uint16(40290), + 32: uint16(40291), + 33: uint16(40292), + 34: uint16(40293), + 35: uint16(40294), + 36: uint16(40295), + 37: uint16(40296), + 38: uint16(40297), + 39: uint16(40298), + 40: uint16(40299), + 41: uint16(40300), + 42: uint16(40301), + 43: uint16(40302), + 44: uint16(40303), + 45: uint16(40304), + 46: uint16(40305), + 47: uint16(40306), + 48: uint16(40307), + 49: uint16(40308), + 50: uint16(40309), + 51: uint16(40310), + 52: uint16(40311), + 53: uint16(40312), + 54: uint16(40313), + 55: uint16(40314), + 56: uint16(40315), + 57: uint16(40316), + 58: uint16(40317), + 59: uint16(40318), + 60: uint16(40319), + 61: uint16(40320), + 62: uint16(40321), + 63: uint16(40322), + 64: uint16(40323), + 65: uint16(40324), + 66: uint16(40325), + 67: uint16(40326), + 68: uint16(40327), + 69: uint16(40328), + 70: uint16(40329), + 71: uint16(40330), + 72: uint16(40331), + 73: uint16(40332), + 74: uint16(40333), + 75: uint16(40334), + 76: uint16(40335), + 77: uint16(40336), + 78: uint16(40337), + 79: uint16(40338), + 80: uint16(40339), + 81: uint16(40340), + 82: uint16(40341), + 83: uint16(40342), + 84: uint16(40343), + 85: uint16(40344), + 86: uint16(40345), + 87: uint16(40346), + 88: uint16(40347), + 89: uint16(40348), + 90: uint16(40349), + 91: uint16(40350), + 92: uint16(40351), + 93: uint16(40352), + 94: uint16(40353), + 95: uint16(40354), + 96: uint16(58002), + 97: uint16(58003), + 98: uint16(58004), + 99: uint16(58005), + 100: uint16(58006), + 101: uint16(58007), + 102: uint16(58008), + 103: uint16(58009), + 104: uint16(58010), + 105: uint16(58011), + 106: uint16(58012), + 107: uint16(58013), + 108: uint16(58014), + 109: uint16(58015), + 110: uint16(58016), + 111: uint16(58017), + 112: uint16(58018), + 113: uint16(58019), + 114: uint16(58020), + 115: uint16(58021), + 116: uint16(58022), + 117: uint16(58023), + 118: uint16(58024), + 119: uint16(58025), + 120: uint16(58026), + 121: uint16(58027), + 122: uint16(58028), + 123: uint16(58029), + 124: uint16(58030), + 125: uint16(58031), + 126: uint16(58032), + 127: uint16(58033), + 128: uint16(58034), + 129: uint16(58035), + 130: uint16(58036), + 131: uint16(58037), + 132: uint16(58038), + 133: uint16(58039), + 134: uint16(58040), + 135: uint16(58041), + 136: uint16(58042), + 137: uint16(58043), + 138: uint16(58044), + 139: uint16(58045), + 140: uint16(58046), + 141: uint16(58047), + 142: uint16(58048), + 143: uint16(58049), + 144: uint16(58050), + 145: uint16(58051), + 146: uint16(58052), + 147: uint16(58053), + 148: uint16(58054), + 149: uint16(58055), + 150: uint16(58056), + 151: uint16(58057), + 152: uint16(58058), + 153: uint16(58059), + 154: uint16(58060), + 155: uint16(58061), + 156: uint16(58062), + 157: uint16(58063), + 158: uint16(58064), + 159: uint16(58065), + 160: uint16(58066), + 161: uint16(58067), + 162: uint16(58068), + 163: uint16(58069), + 164: uint16(58070), + 165: uint16(58071), + 166: uint16(58072), + 167: uint16(58073), + 168: uint16(58074), + 169: uint16(58075), + 170: uint16(58076), + 171: uint16(58077), + 172: uint16(58078), + 173: uint16(58079), + 174: uint16(58080), + 175: uint16(58081), + 176: uint16(58082), + 177: uint16(58083), + 178: uint16(58084), + 179: uint16(58085), + 180: uint16(58086), + 181: uint16(58087), + 182: uint16(58088), + 183: uint16(58089), + 184: uint16(58090), + 185: uint16(58091), + 186: uint16(58092), + 187: uint16(58093), + 188: uint16(58094), + 189: uint16(58095), + }, + 121: { + 0: uint16(40355), + 1: uint16(40356), + 2: uint16(40357), + 3: uint16(40358), + 4: uint16(40359), + 5: uint16(40360), + 6: uint16(40361), + 7: uint16(40362), + 8: uint16(40363), + 9: uint16(40364), + 10: uint16(40365), + 11: uint16(40366), + 12: uint16(40367), + 13: uint16(40368), + 14: uint16(40369), + 15: uint16(40370), + 16: uint16(40371), + 17: uint16(40372), + 18: uint16(40373), + 19: uint16(40374), + 20: uint16(40375), + 21: uint16(40376), + 22: uint16(40377), + 23: uint16(40378), + 24: uint16(40379), + 25: uint16(40380), + 26: uint16(40381), + 27: uint16(40382), + 28: uint16(40383), + 29: uint16(40384), + 30: uint16(40385), + 31: uint16(40386), + 32: uint16(40387), + 33: uint16(40388), + 34: uint16(40389), + 35: uint16(40390), + 36: uint16(40391), + 37: uint16(40392), + 38: uint16(40393), + 39: uint16(40394), + 40: uint16(40395), + 41: uint16(40396), + 42: uint16(40397), + 43: uint16(40398), + 44: uint16(40399), + 45: uint16(40400), + 46: uint16(40401), + 47: uint16(40402), + 48: uint16(40403), + 49: uint16(40404), + 50: uint16(40405), + 51: uint16(40406), + 52: uint16(40407), + 53: uint16(40408), + 54: uint16(40409), + 55: uint16(40410), + 56: uint16(40411), + 57: uint16(40412), + 58: uint16(40413), + 59: uint16(40414), + 60: uint16(40415), + 61: uint16(40416), + 62: uint16(40417), + 63: uint16(40418), + 64: uint16(40419), + 65: uint16(40420), + 66: uint16(40421), + 67: uint16(40422), + 68: uint16(40423), + 69: uint16(40424), + 70: uint16(40425), + 71: uint16(40426), + 72: uint16(40427), + 73: uint16(40428), + 74: uint16(40429), + 75: uint16(40430), + 76: uint16(40431), + 77: uint16(40432), + 78: uint16(40433), + 79: uint16(40434), + 80: uint16(40435), + 81: uint16(40436), + 82: uint16(40437), + 83: uint16(40438), + 84: uint16(40439), + 85: uint16(40440), + 86: uint16(40441), + 87: uint16(40442), + 88: uint16(40443), + 89: uint16(40444), + 90: uint16(40445), + 91: uint16(40446), + 92: uint16(40447), + 93: uint16(40448), + 94: uint16(40449), + 95: uint16(40450), + 96: uint16(58096), + 97: uint16(58097), + 98: uint16(58098), + 99: uint16(58099), + 100: uint16(58100), + 101: uint16(58101), + 102: uint16(58102), + 103: uint16(58103), + 104: uint16(58104), + 105: uint16(58105), + 106: uint16(58106), + 107: uint16(58107), + 108: uint16(58108), + 109: uint16(58109), + 110: uint16(58110), + 111: uint16(58111), + 112: uint16(58112), + 113: uint16(58113), + 114: uint16(58114), + 115: uint16(58115), + 116: uint16(58116), + 117: uint16(58117), + 118: uint16(58118), + 119: uint16(58119), + 120: uint16(58120), + 121: uint16(58121), + 122: uint16(58122), + 123: uint16(58123), + 124: uint16(58124), + 125: uint16(58125), + 126: uint16(58126), + 127: uint16(58127), + 128: uint16(58128), + 129: uint16(58129), + 130: uint16(58130), + 131: uint16(58131), + 132: uint16(58132), + 133: uint16(58133), + 134: uint16(58134), + 135: uint16(58135), + 136: uint16(58136), + 137: uint16(58137), + 138: uint16(58138), + 139: uint16(58139), + 140: uint16(58140), + 141: uint16(58141), + 142: uint16(58142), + 143: uint16(58143), + 144: uint16(58144), + 145: uint16(58145), + 146: uint16(58146), + 147: uint16(58147), + 148: uint16(58148), + 149: uint16(58149), + 150: uint16(58150), + 151: uint16(58151), + 152: uint16(58152), + 153: uint16(58153), + 154: uint16(58154), + 155: uint16(58155), + 156: uint16(58156), + 157: uint16(58157), + 158: uint16(58158), + 159: uint16(58159), + 160: uint16(58160), + 161: uint16(58161), + 162: uint16(58162), + 163: uint16(58163), + 164: uint16(58164), + 165: uint16(58165), + 166: uint16(58166), + 167: uint16(58167), + 168: uint16(58168), + 169: uint16(58169), + 170: uint16(58170), + 171: uint16(58171), + 172: uint16(58172), + 173: uint16(58173), + 174: uint16(58174), + 175: uint16(58175), + 176: uint16(58176), + 177: uint16(58177), + 178: uint16(58178), + 179: uint16(58179), + 180: uint16(58180), + 181: uint16(58181), + 182: uint16(58182), + 183: uint16(58183), + 184: uint16(58184), + 185: uint16(58185), + 186: uint16(58186), + 187: uint16(58187), + 188: uint16(58188), + 189: uint16(58189), + }, + 122: { + 0: uint16(40451), + 1: uint16(40452), + 2: uint16(40453), + 3: uint16(40454), + 4: uint16(40455), + 5: uint16(40456), + 6: uint16(40457), + 7: uint16(40458), + 8: uint16(40459), + 9: uint16(40460), + 10: uint16(40461), + 11: uint16(40462), + 12: uint16(40463), + 13: uint16(40464), + 14: uint16(40465), + 15: uint16(40466), + 16: uint16(40467), + 17: uint16(40468), + 18: uint16(40469), + 19: uint16(40470), + 20: uint16(40471), + 21: uint16(40472), + 22: uint16(40473), + 23: uint16(40474), + 24: uint16(40475), + 25: uint16(40476), + 26: uint16(40477), + 27: uint16(40478), + 28: uint16(40484), + 29: uint16(40487), + 30: uint16(40494), + 31: uint16(40496), + 32: uint16(40500), + 33: uint16(40507), + 34: uint16(40508), + 35: uint16(40512), + 36: uint16(40525), + 37: uint16(40528), + 38: uint16(40530), + 39: uint16(40531), + 40: uint16(40532), + 41: uint16(40534), + 42: uint16(40537), + 43: uint16(40541), + 44: uint16(40543), + 45: uint16(40544), + 46: uint16(40545), + 47: uint16(40546), + 48: uint16(40549), + 49: uint16(40558), + 50: uint16(40559), + 51: uint16(40562), + 52: uint16(40564), + 53: uint16(40565), + 54: uint16(40566), + 55: uint16(40567), + 56: uint16(40568), + 57: uint16(40569), + 58: uint16(40570), + 59: uint16(40571), + 60: uint16(40572), + 61: uint16(40573), + 62: uint16(40576), + 63: uint16(40577), + 64: uint16(40579), + 65: uint16(40580), + 66: uint16(40581), + 67: uint16(40582), + 68: uint16(40585), + 69: uint16(40586), + 70: uint16(40588), + 71: uint16(40589), + 72: uint16(40590), + 73: uint16(40591), + 74: uint16(40592), + 75: uint16(40593), + 76: uint16(40596), + 77: uint16(40597), + 78: uint16(40598), + 79: uint16(40599), + 80: uint16(40600), + 81: uint16(40601), + 82: uint16(40602), + 83: uint16(40603), + 84: uint16(40604), + 85: uint16(40606), + 86: uint16(40608), + 87: uint16(40609), + 88: uint16(40610), + 89: uint16(40611), + 90: uint16(40612), + 91: uint16(40613), + 92: uint16(40615), + 93: uint16(40616), + 94: uint16(40617), + 95: uint16(40618), + 96: uint16(58190), + 97: uint16(58191), + 98: uint16(58192), + 99: uint16(58193), + 100: uint16(58194), + 101: uint16(58195), + 102: uint16(58196), + 103: uint16(58197), + 104: uint16(58198), + 105: uint16(58199), + 106: uint16(58200), + 107: uint16(58201), + 108: uint16(58202), + 109: uint16(58203), + 110: uint16(58204), + 111: uint16(58205), + 112: uint16(58206), + 113: uint16(58207), + 114: uint16(58208), + 115: uint16(58209), + 116: uint16(58210), + 117: uint16(58211), + 118: uint16(58212), + 119: uint16(58213), + 120: uint16(58214), + 121: uint16(58215), + 122: uint16(58216), + 123: uint16(58217), + 124: uint16(58218), + 125: uint16(58219), + 126: uint16(58220), + 127: uint16(58221), + 128: uint16(58222), + 129: uint16(58223), + 130: uint16(58224), + 131: uint16(58225), + 132: uint16(58226), + 133: uint16(58227), + 134: uint16(58228), + 135: uint16(58229), + 136: uint16(58230), + 137: uint16(58231), + 138: uint16(58232), + 139: uint16(58233), + 140: uint16(58234), + 141: uint16(58235), + 142: uint16(58236), + 143: uint16(58237), + 144: uint16(58238), + 145: uint16(58239), + 146: uint16(58240), + 147: uint16(58241), + 148: uint16(58242), + 149: uint16(58243), + 150: uint16(58244), + 151: uint16(58245), + 152: uint16(58246), + 153: uint16(58247), + 154: uint16(58248), + 155: uint16(58249), + 156: uint16(58250), + 157: uint16(58251), + 158: uint16(58252), + 159: uint16(58253), + 160: uint16(58254), + 161: uint16(58255), + 162: uint16(58256), + 163: uint16(58257), + 164: uint16(58258), + 165: uint16(58259), + 166: uint16(58260), + 167: uint16(58261), + 168: uint16(58262), + 169: uint16(58263), + 170: uint16(58264), + 171: uint16(58265), + 172: uint16(58266), + 173: uint16(58267), + 174: uint16(58268), + 175: uint16(58269), + 176: uint16(58270), + 177: uint16(58271), + 178: uint16(58272), + 179: uint16(58273), + 180: uint16(58274), + 181: uint16(58275), + 182: uint16(58276), + 183: uint16(58277), + 184: uint16(58278), + 185: uint16(58279), + 186: uint16(58280), + 187: uint16(58281), + 188: uint16(58282), + 189: uint16(58283), + }, + 123: { + 0: uint16(40619), + 1: uint16(40620), + 2: uint16(40621), + 3: uint16(40622), + 4: uint16(40623), + 5: uint16(40624), + 6: uint16(40625), + 7: uint16(40626), + 8: uint16(40627), + 9: uint16(40629), + 10: uint16(40630), + 11: uint16(40631), + 12: uint16(40633), + 13: uint16(40634), + 14: uint16(40636), + 15: uint16(40639), + 16: uint16(40640), + 17: uint16(40641), + 18: uint16(40642), + 19: uint16(40643), + 20: uint16(40645), + 21: uint16(40646), + 22: uint16(40647), + 23: uint16(40648), + 24: uint16(40650), + 25: uint16(40651), + 26: uint16(40652), + 27: uint16(40656), + 28: uint16(40658), + 29: uint16(40659), + 30: uint16(40661), + 31: uint16(40662), + 32: uint16(40663), + 33: uint16(40665), + 34: uint16(40666), + 35: uint16(40670), + 36: uint16(40673), + 37: uint16(40675), + 38: uint16(40676), + 39: uint16(40678), + 40: uint16(40680), + 41: uint16(40683), + 42: uint16(40684), + 43: uint16(40685), + 44: uint16(40686), + 45: uint16(40688), + 46: uint16(40689), + 47: uint16(40690), + 48: uint16(40691), + 49: uint16(40692), + 50: uint16(40693), + 51: uint16(40694), + 52: uint16(40695), + 53: uint16(40696), + 54: uint16(40698), + 55: uint16(40701), + 56: uint16(40703), + 57: uint16(40704), + 58: uint16(40705), + 59: uint16(40706), + 60: uint16(40707), + 61: uint16(40708), + 62: uint16(40709), + 63: uint16(40710), + 64: uint16(40711), + 65: uint16(40712), + 66: uint16(40713), + 67: uint16(40714), + 68: uint16(40716), + 69: uint16(40719), + 70: uint16(40721), + 71: uint16(40722), + 72: uint16(40724), + 73: uint16(40725), + 74: uint16(40726), + 75: uint16(40728), + 76: uint16(40730), + 77: uint16(40731), + 78: uint16(40732), + 79: uint16(40733), + 80: uint16(40734), + 81: uint16(40735), + 82: uint16(40737), + 83: uint16(40739), + 84: uint16(40740), + 85: uint16(40741), + 86: uint16(40742), + 87: uint16(40743), + 88: uint16(40744), + 89: uint16(40745), + 90: uint16(40746), + 91: uint16(40747), + 92: uint16(40749), + 93: uint16(40750), + 94: uint16(40752), + 95: uint16(40753), + 96: uint16(58284), + 97: uint16(58285), + 98: uint16(58286), + 99: uint16(58287), + 100: uint16(58288), + 101: uint16(58289), + 102: uint16(58290), + 103: uint16(58291), + 104: uint16(58292), + 105: uint16(58293), + 106: uint16(58294), + 107: uint16(58295), + 108: uint16(58296), + 109: uint16(58297), + 110: uint16(58298), + 111: uint16(58299), + 112: uint16(58300), + 113: uint16(58301), + 114: uint16(58302), + 115: uint16(58303), + 116: uint16(58304), + 117: uint16(58305), + 118: uint16(58306), + 119: uint16(58307), + 120: uint16(58308), + 121: uint16(58309), + 122: uint16(58310), + 123: uint16(58311), + 124: uint16(58312), + 125: uint16(58313), + 126: uint16(58314), + 127: uint16(58315), + 128: uint16(58316), + 129: uint16(58317), + 130: uint16(58318), + 131: uint16(58319), + 132: uint16(58320), + 133: uint16(58321), + 134: uint16(58322), + 135: uint16(58323), + 136: uint16(58324), + 137: uint16(58325), + 138: uint16(58326), + 139: uint16(58327), + 140: uint16(58328), + 141: uint16(58329), + 142: uint16(58330), + 143: uint16(58331), + 144: uint16(58332), + 145: uint16(58333), + 146: uint16(58334), + 147: uint16(58335), + 148: uint16(58336), + 149: uint16(58337), + 150: uint16(58338), + 151: uint16(58339), + 152: uint16(58340), + 153: uint16(58341), + 154: uint16(58342), + 155: uint16(58343), + 156: uint16(58344), + 157: uint16(58345), + 158: uint16(58346), + 159: uint16(58347), + 160: uint16(58348), + 161: uint16(58349), + 162: uint16(58350), + 163: uint16(58351), + 164: uint16(58352), + 165: uint16(58353), + 166: uint16(58354), + 167: uint16(58355), + 168: uint16(58356), + 169: uint16(58357), + 170: uint16(58358), + 171: uint16(58359), + 172: uint16(58360), + 173: uint16(58361), + 174: uint16(58362), + 175: uint16(58363), + 176: uint16(58364), + 177: uint16(58365), + 178: uint16(58366), + 179: uint16(58367), + 180: uint16(58368), + 181: uint16(58369), + 182: uint16(58370), + 183: uint16(58371), + 184: uint16(58372), + 185: uint16(58373), + 186: uint16(58374), + 187: uint16(58375), + 188: uint16(58376), + 189: uint16(58377), + }, + 124: { + 0: uint16(40754), + 1: uint16(40755), + 2: uint16(40756), + 3: uint16(40757), + 4: uint16(40758), + 5: uint16(40760), + 6: uint16(40762), + 7: uint16(40764), + 8: uint16(40767), + 9: uint16(40768), + 10: uint16(40769), + 11: uint16(40770), + 12: uint16(40771), + 13: uint16(40773), + 14: uint16(40774), + 15: uint16(40775), + 16: uint16(40776), + 17: uint16(40777), + 18: uint16(40778), + 19: uint16(40779), + 20: uint16(40780), + 21: uint16(40781), + 22: uint16(40782), + 23: uint16(40783), + 24: uint16(40786), + 25: uint16(40787), + 26: uint16(40788), + 27: uint16(40789), + 28: uint16(40790), + 29: uint16(40791), + 30: uint16(40792), + 31: uint16(40793), + 32: uint16(40794), + 33: uint16(40795), + 34: uint16(40796), + 35: uint16(40797), + 36: uint16(40798), + 37: uint16(40799), + 38: uint16(40800), + 39: uint16(40801), + 40: uint16(40802), + 41: uint16(40803), + 42: uint16(40804), + 43: uint16(40805), + 44: uint16(40806), + 45: uint16(40807), + 46: uint16(40808), + 47: uint16(40809), + 48: uint16(40810), + 49: uint16(40811), + 50: uint16(40812), + 51: uint16(40813), + 52: uint16(40814), + 53: uint16(40815), + 54: uint16(40816), + 55: uint16(40817), + 56: uint16(40818), + 57: uint16(40819), + 58: uint16(40820), + 59: uint16(40821), + 60: uint16(40822), + 61: uint16(40823), + 62: uint16(40824), + 63: uint16(40825), + 64: uint16(40826), + 65: uint16(40827), + 66: uint16(40828), + 67: uint16(40829), + 68: uint16(40830), + 69: uint16(40833), + 70: uint16(40834), + 71: uint16(40845), + 72: uint16(40846), + 73: uint16(40847), + 74: uint16(40848), + 75: uint16(40849), + 76: uint16(40850), + 77: uint16(40851), + 78: uint16(40852), + 79: uint16(40853), + 80: uint16(40854), + 81: uint16(40855), + 82: uint16(40856), + 83: uint16(40860), + 84: uint16(40861), + 85: uint16(40862), + 86: uint16(40865), + 87: uint16(40866), + 88: uint16(40867), + 89: uint16(40868), + 90: uint16(40869), + 91: uint16(63788), + 92: uint16(63865), + 93: uint16(63893), + 94: uint16(63975), + 95: uint16(63985), + 96: uint16(58378), + 97: uint16(58379), + 98: uint16(58380), + 99: uint16(58381), + 100: uint16(58382), + 101: uint16(58383), + 102: uint16(58384), + 103: uint16(58385), + 104: uint16(58386), + 105: uint16(58387), + 106: uint16(58388), + 107: uint16(58389), + 108: uint16(58390), + 109: uint16(58391), + 110: uint16(58392), + 111: uint16(58393), + 112: uint16(58394), + 113: uint16(58395), + 114: uint16(58396), + 115: uint16(58397), + 116: uint16(58398), + 117: uint16(58399), + 118: uint16(58400), + 119: uint16(58401), + 120: uint16(58402), + 121: uint16(58403), + 122: uint16(58404), + 123: uint16(58405), + 124: uint16(58406), + 125: uint16(58407), + 126: uint16(58408), + 127: uint16(58409), + 128: uint16(58410), + 129: uint16(58411), + 130: uint16(58412), + 131: uint16(58413), + 132: uint16(58414), + 133: uint16(58415), + 134: uint16(58416), + 135: uint16(58417), + 136: uint16(58418), + 137: uint16(58419), + 138: uint16(58420), + 139: uint16(58421), + 140: uint16(58422), + 141: uint16(58423), + 142: uint16(58424), + 143: uint16(58425), + 144: uint16(58426), + 145: uint16(58427), + 146: uint16(58428), + 147: uint16(58429), + 148: uint16(58430), + 149: uint16(58431), + 150: uint16(58432), + 151: uint16(58433), + 152: uint16(58434), + 153: uint16(58435), + 154: uint16(58436), + 155: uint16(58437), + 156: uint16(58438), + 157: uint16(58439), + 158: uint16(58440), + 159: uint16(58441), + 160: uint16(58442), + 161: uint16(58443), + 162: uint16(58444), + 163: uint16(58445), + 164: uint16(58446), + 165: uint16(58447), + 166: uint16(58448), + 167: uint16(58449), + 168: uint16(58450), + 169: uint16(58451), + 170: uint16(58452), + 171: uint16(58453), + 172: uint16(58454), + 173: uint16(58455), + 174: uint16(58456), + 175: uint16(58457), + 176: uint16(58458), + 177: uint16(58459), + 178: uint16(58460), + 179: uint16(58461), + 180: uint16(58462), + 181: uint16(58463), + 182: uint16(58464), + 183: uint16(58465), + 184: uint16(58466), + 185: uint16(58467), + 186: uint16(58468), + 187: uint16(58469), + 188: uint16(58470), + 189: uint16(58471), + }, + 125: { + 0: uint16(64012), + 1: uint16(64013), + 2: uint16(64014), + 3: uint16(64015), + 4: uint16(64017), + 5: uint16(64019), + 6: uint16(64020), + 7: uint16(64024), + 8: uint16(64031), + 9: uint16(64032), + 10: uint16(64033), + 11: uint16(64035), + 12: uint16(64036), + 13: uint16(64039), + 14: uint16(64040), + 15: uint16(64041), + 16: uint16(11905), + 17: uint16(59414), + 18: uint16(59415), + 19: uint16(59416), + 20: uint16(11908), + 21: uint16(13427), + 22: uint16(13383), + 23: uint16(11912), + 24: uint16(11915), + 25: uint16(59422), + 26: uint16(13726), + 27: uint16(13850), + 28: uint16(13838), + 29: uint16(11916), + 30: uint16(11927), + 31: uint16(14702), + 32: uint16(14616), + 33: uint16(59430), + 34: uint16(14799), + 35: uint16(14815), + 36: uint16(14963), + 37: uint16(14800), + 38: uint16(59435), + 39: uint16(59436), + 40: uint16(15182), + 41: uint16(15470), + 42: uint16(15584), + 43: uint16(11943), + 44: uint16(59441), + 45: uint16(59442), + 46: uint16(11946), + 47: uint16(16470), + 48: uint16(16735), + 49: uint16(11950), + 50: uint16(17207), + 51: uint16(11955), + 52: uint16(11958), + 53: uint16(11959), + 54: uint16(59451), + 55: uint16(17329), + 56: uint16(17324), + 57: uint16(11963), + 58: uint16(17373), + 59: uint16(17622), + 60: uint16(18017), + 61: uint16(17996), + 62: uint16(59459), + 63: uint16(18211), + 64: uint16(18217), + 65: uint16(18300), + 66: uint16(18317), + 67: uint16(11978), + 68: uint16(18759), + 69: uint16(18810), + 70: uint16(18813), + 71: uint16(18818), + 72: uint16(18819), + 73: uint16(18821), + 74: uint16(18822), + 75: uint16(18847), + 76: uint16(18843), + 77: uint16(18871), + 78: uint16(18870), + 79: uint16(59476), + 80: uint16(59477), + 81: uint16(19619), + 82: uint16(19615), + 83: uint16(19616), + 84: uint16(19617), + 85: uint16(19575), + 86: uint16(19618), + 87: uint16(19731), + 88: uint16(19732), + 89: uint16(19733), + 90: uint16(19734), + 91: uint16(19735), + 92: uint16(19736), + 93: uint16(19737), + 94: uint16(19886), + 95: uint16(59492), + 96: uint16(58472), + 97: uint16(58473), + 98: uint16(58474), + 99: uint16(58475), + 100: uint16(58476), + 101: uint16(58477), + 102: uint16(58478), + 103: uint16(58479), + 104: uint16(58480), + 105: uint16(58481), + 106: uint16(58482), + 107: uint16(58483), + 108: uint16(58484), + 109: uint16(58485), + 110: uint16(58486), + 111: uint16(58487), + 112: uint16(58488), + 113: uint16(58489), + 114: uint16(58490), + 115: uint16(58491), + 116: uint16(58492), + 117: uint16(58493), + 118: uint16(58494), + 119: uint16(58495), + 120: uint16(58496), + 121: uint16(58497), + 122: uint16(58498), + 123: uint16(58499), + 124: uint16(58500), + 125: uint16(58501), + 126: uint16(58502), + 127: uint16(58503), + 128: uint16(58504), + 129: uint16(58505), + 130: uint16(58506), + 131: uint16(58507), + 132: uint16(58508), + 133: uint16(58509), + 134: uint16(58510), + 135: uint16(58511), + 136: uint16(58512), + 137: uint16(58513), + 138: uint16(58514), + 139: uint16(58515), + 140: uint16(58516), + 141: uint16(58517), + 142: uint16(58518), + 143: uint16(58519), + 144: uint16(58520), + 145: uint16(58521), + 146: uint16(58522), + 147: uint16(58523), + 148: uint16(58524), + 149: uint16(58525), + 150: uint16(58526), + 151: uint16(58527), + 152: uint16(58528), + 153: uint16(58529), + 154: uint16(58530), + 155: uint16(58531), + 156: uint16(58532), + 157: uint16(58533), + 158: uint16(58534), + 159: uint16(58535), + 160: uint16(58536), + 161: uint16(58537), + 162: uint16(58538), + 163: uint16(58539), + 164: uint16(58540), + 165: uint16(58541), + 166: uint16(58542), + 167: uint16(58543), + 168: uint16(58544), + 169: uint16(58545), + 170: uint16(58546), + 171: uint16(58547), + 172: uint16(58548), + 173: uint16(58549), + 174: uint16(58550), + 175: uint16(58551), + 176: uint16(58552), + 177: uint16(58553), + 178: uint16(58554), + 179: uint16(58555), + 180: uint16(58556), + 181: uint16(58557), + 182: uint16(58558), + 183: uint16(58559), + 184: uint16(58560), + 185: uint16(58561), + 186: uint16(58562), + 187: uint16(58563), + 188: uint16(58564), + 189: uint16(58565), + }, +} + +var _big5 = [89][157]uint16{ + 0: { + 0: uint16(12288), + 1: uint16(65292), + 2: uint16(12289), + 3: uint16(12290), + 4: uint16(65294), + 5: uint16(8231), + 6: uint16(65307), + 7: uint16(65306), + 8: uint16(65311), + 9: uint16(65281), + 10: uint16(65072), + 11: uint16(8230), + 12: uint16(8229), + 13: uint16(65104), + 14: uint16(65105), + 15: uint16(65106), + 16: uint16(183), + 17: uint16(65108), + 18: uint16(65109), + 19: uint16(65110), + 20: uint16(65111), + 21: uint16(65372), + 22: uint16(8211), + 23: uint16(65073), + 24: uint16(8212), + 25: uint16(65075), + 26: uint16(9588), + 27: uint16(65076), + 28: uint16(65103), + 29: uint16(65288), + 30: uint16(65289), + 31: uint16(65077), + 32: uint16(65078), + 33: uint16(65371), + 34: uint16(65373), + 35: uint16(65079), + 36: uint16(65080), + 37: uint16(12308), + 38: uint16(12309), + 39: uint16(65081), + 40: uint16(65082), + 41: uint16(12304), + 42: uint16(12305), + 43: uint16(65083), + 44: uint16(65084), + 45: uint16(12298), + 46: uint16(12299), + 47: uint16(65085), + 48: uint16(65086), + 49: uint16(12296), + 50: uint16(12297), + 51: uint16(65087), + 52: uint16(65088), + 53: uint16(12300), + 54: uint16(12301), + 55: uint16(65089), + 56: uint16(65090), + 57: uint16(12302), + 58: uint16(12303), + 59: uint16(65091), + 60: uint16(65092), + 61: uint16(65113), + 62: uint16(65114), + 63: uint16(65115), + 64: uint16(65116), + 65: uint16(65117), + 66: uint16(65118), + 67: uint16(8216), + 68: uint16(8217), + 69: uint16(8220), + 70: uint16(8221), + 71: uint16(12317), + 72: uint16(12318), + 73: uint16(8245), + 74: uint16(8242), + 75: uint16(65283), + 76: uint16(65286), + 77: uint16(65290), + 78: uint16(8251), + 79: uint16(167), + 80: uint16(12291), + 81: uint16(9675), + 82: uint16(9679), + 83: uint16(9651), + 84: uint16(9650), + 85: uint16(9678), + 86: uint16(9734), + 87: uint16(9733), + 88: uint16(9671), + 89: uint16(9670), + 90: uint16(9633), + 91: uint16(9632), + 92: uint16(9661), + 93: uint16(9660), + 94: uint16(12963), + 95: uint16(8453), + 96: uint16(175), + 97: uint16(65507), + 98: uint16(65343), + 99: uint16(717), + 100: uint16(65097), + 101: uint16(65098), + 102: uint16(65101), + 103: uint16(65102), + 104: uint16(65099), + 105: uint16(65100), + 106: uint16(65119), + 107: uint16(65120), + 108: uint16(65121), + 109: uint16(65291), + 110: uint16(65293), + 111: uint16(215), + 112: uint16(247), + 113: uint16(177), + 114: uint16(8730), + 115: uint16(65308), + 116: uint16(65310), + 117: uint16(65309), + 118: uint16(8806), + 119: uint16(8807), + 120: uint16(8800), + 121: uint16(8734), + 122: uint16(8786), + 123: uint16(8801), + 124: uint16(65122), + 125: uint16(65123), + 126: uint16(65124), + 127: uint16(65125), + 128: uint16(65126), + 129: uint16(65374), + 130: uint16(8745), + 131: uint16(8746), + 132: uint16(8869), + 133: uint16(8736), + 134: uint16(8735), + 135: uint16(8895), + 136: uint16(13266), + 137: uint16(13265), + 138: uint16(8747), + 139: uint16(8750), + 140: uint16(8757), + 141: uint16(8756), + 142: uint16(9792), + 143: uint16(9794), + 144: uint16(8853), + 145: uint16(8857), + 146: uint16(8593), + 147: uint16(8595), + 148: uint16(8592), + 149: uint16(8594), + 150: uint16(8598), + 151: uint16(8599), + 152: uint16(8601), + 153: uint16(8600), + 154: uint16(8741), + 155: uint16(8739), + 156: uint16(65295), + }, + 1: { + 0: uint16(65340), + 1: uint16(8725), + 2: uint16(65128), + 3: uint16(65284), + 4: uint16(65509), + 5: uint16(12306), + 6: uint16(65504), + 7: uint16(65505), + 8: uint16(65285), + 9: uint16(65312), + 10: uint16(8451), + 11: uint16(8457), + 12: uint16(65129), + 13: uint16(65130), + 14: uint16(65131), + 15: uint16(13269), + 16: uint16(13212), + 17: uint16(13213), + 18: uint16(13214), + 19: uint16(13262), + 20: uint16(13217), + 21: uint16(13198), + 22: uint16(13199), + 23: uint16(13252), + 24: uint16(176), + 25: uint16(20825), + 26: uint16(20827), + 27: uint16(20830), + 28: uint16(20829), + 29: uint16(20833), + 30: uint16(20835), + 31: uint16(21991), + 32: uint16(29929), + 33: uint16(31950), + 34: uint16(9601), + 35: uint16(9602), + 36: uint16(9603), + 37: uint16(9604), + 38: uint16(9605), + 39: uint16(9606), + 40: uint16(9607), + 41: uint16(9608), + 42: uint16(9615), + 43: uint16(9614), + 44: uint16(9613), + 45: uint16(9612), + 46: uint16(9611), + 47: uint16(9610), + 48: uint16(9609), + 49: uint16(9532), + 50: uint16(9524), + 51: uint16(9516), + 52: uint16(9508), + 53: uint16(9500), + 54: uint16(9620), + 55: uint16(9472), + 56: uint16(9474), + 57: uint16(9621), + 58: uint16(9484), + 59: uint16(9488), + 60: uint16(9492), + 61: uint16(9496), + 62: uint16(9581), + 63: uint16(9582), + 64: uint16(9584), + 65: uint16(9583), + 66: uint16(9552), + 67: uint16(9566), + 68: uint16(9578), + 69: uint16(9569), + 70: uint16(9698), + 71: uint16(9699), + 72: uint16(9701), + 73: uint16(9700), + 74: uint16(9585), + 75: uint16(9586), + 76: uint16(9587), + 77: uint16(65296), + 78: uint16(65297), + 79: uint16(65298), + 80: uint16(65299), + 81: uint16(65300), + 82: uint16(65301), + 83: uint16(65302), + 84: uint16(65303), + 85: uint16(65304), + 86: uint16(65305), + 87: uint16(8544), + 88: uint16(8545), + 89: uint16(8546), + 90: uint16(8547), + 91: uint16(8548), + 92: uint16(8549), + 93: uint16(8550), + 94: uint16(8551), + 95: uint16(8552), + 96: uint16(8553), + 97: uint16(12321), + 98: uint16(12322), + 99: uint16(12323), + 100: uint16(12324), + 101: uint16(12325), + 102: uint16(12326), + 103: uint16(12327), + 104: uint16(12328), + 105: uint16(12329), + 106: uint16(21313), + 107: uint16(21316), + 108: uint16(21317), + 109: uint16(65313), + 110: uint16(65314), + 111: uint16(65315), + 112: uint16(65316), + 113: uint16(65317), + 114: uint16(65318), + 115: uint16(65319), + 116: uint16(65320), + 117: uint16(65321), + 118: uint16(65322), + 119: uint16(65323), + 120: uint16(65324), + 121: uint16(65325), + 122: uint16(65326), + 123: uint16(65327), + 124: uint16(65328), + 125: uint16(65329), + 126: uint16(65330), + 127: uint16(65331), + 128: uint16(65332), + 129: uint16(65333), + 130: uint16(65334), + 131: uint16(65335), + 132: uint16(65336), + 133: uint16(65337), + 134: uint16(65338), + 135: uint16(65345), + 136: uint16(65346), + 137: uint16(65347), + 138: uint16(65348), + 139: uint16(65349), + 140: uint16(65350), + 141: uint16(65351), + 142: uint16(65352), + 143: uint16(65353), + 144: uint16(65354), + 145: uint16(65355), + 146: uint16(65356), + 147: uint16(65357), + 148: uint16(65358), + 149: uint16(65359), + 150: uint16(65360), + 151: uint16(65361), + 152: uint16(65362), + 153: uint16(65363), + 154: uint16(65364), + 155: uint16(65365), + 156: uint16(65366), + }, + 2: { + 0: uint16(65367), + 1: uint16(65368), + 2: uint16(65369), + 3: uint16(65370), + 4: uint16(913), + 5: uint16(914), + 6: uint16(915), + 7: uint16(916), + 8: uint16(917), + 9: uint16(918), + 10: uint16(919), + 11: uint16(920), + 12: uint16(921), + 13: uint16(922), + 14: uint16(923), + 15: uint16(924), + 16: uint16(925), + 17: uint16(926), + 18: uint16(927), + 19: uint16(928), + 20: uint16(929), + 21: uint16(931), + 22: uint16(932), + 23: uint16(933), + 24: uint16(934), + 25: uint16(935), + 26: uint16(936), + 27: uint16(937), + 28: uint16(945), + 29: uint16(946), + 30: uint16(947), + 31: uint16(948), + 32: uint16(949), + 33: uint16(950), + 34: uint16(951), + 35: uint16(952), + 36: uint16(953), + 37: uint16(954), + 38: uint16(955), + 39: uint16(956), + 40: uint16(957), + 41: uint16(958), + 42: uint16(959), + 43: uint16(960), + 44: uint16(961), + 45: uint16(963), + 46: uint16(964), + 47: uint16(965), + 48: uint16(966), + 49: uint16(967), + 50: uint16(968), + 51: uint16(969), + 52: uint16(12549), + 53: uint16(12550), + 54: uint16(12551), + 55: uint16(12552), + 56: uint16(12553), + 57: uint16(12554), + 58: uint16(12555), + 59: uint16(12556), + 60: uint16(12557), + 61: uint16(12558), + 62: uint16(12559), + 63: uint16(12560), + 64: uint16(12561), + 65: uint16(12562), + 66: uint16(12563), + 67: uint16(12564), + 68: uint16(12565), + 69: uint16(12566), + 70: uint16(12567), + 71: uint16(12568), + 72: uint16(12569), + 73: uint16(12570), + 74: uint16(12571), + 75: uint16(12572), + 76: uint16(12573), + 77: uint16(12574), + 78: uint16(12575), + 79: uint16(12576), + 80: uint16(12577), + 81: uint16(12578), + 82: uint16(12579), + 83: uint16(12580), + 84: uint16(12581), + 85: uint16(12582), + 86: uint16(12583), + 87: uint16(12584), + 88: uint16(12585), + 89: uint16(729), + 90: uint16(713), + 91: uint16(714), + 92: uint16(711), + 93: uint16(715), + 94: uint16(9216), + 95: uint16(9217), + 96: uint16(9218), + 97: uint16(9219), + 98: uint16(9220), + 99: uint16(9221), + 100: uint16(9222), + 101: uint16(9223), + 102: uint16(9224), + 103: uint16(9225), + 104: uint16(9226), + 105: uint16(9227), + 106: uint16(9228), + 107: uint16(9229), + 108: uint16(9230), + 109: uint16(9231), + 110: uint16(9232), + 111: uint16(9233), + 112: uint16(9234), + 113: uint16(9235), + 114: uint16(9236), + 115: uint16(9237), + 116: uint16(9238), + 117: uint16(9239), + 118: uint16(9240), + 119: uint16(9241), + 120: uint16(9242), + 121: uint16(9243), + 122: uint16(9244), + 123: uint16(9245), + 124: uint16(9246), + 125: uint16(9247), + 126: uint16(9249), + 127: uint16(8364), + }, + 3: { + 0: uint16(19968), + 1: uint16(20057), + 2: uint16(19969), + 3: uint16(19971), + 4: uint16(20035), + 5: uint16(20061), + 6: uint16(20102), + 7: uint16(20108), + 8: uint16(20154), + 9: uint16(20799), + 10: uint16(20837), + 11: uint16(20843), + 12: uint16(20960), + 13: uint16(20992), + 14: uint16(20993), + 15: uint16(21147), + 16: uint16(21269), + 17: uint16(21313), + 18: uint16(21340), + 19: uint16(21448), + 20: uint16(19977), + 21: uint16(19979), + 22: uint16(19976), + 23: uint16(19978), + 24: uint16(20011), + 25: uint16(20024), + 26: uint16(20961), + 27: uint16(20037), + 28: uint16(20040), + 29: uint16(20063), + 30: uint16(20062), + 31: uint16(20110), + 32: uint16(20129), + 33: uint16(20800), + 34: uint16(20995), + 35: uint16(21242), + 36: uint16(21315), + 37: uint16(21449), + 38: uint16(21475), + 39: uint16(22303), + 40: uint16(22763), + 41: uint16(22805), + 42: uint16(22823), + 43: uint16(22899), + 44: uint16(23376), + 45: uint16(23377), + 46: uint16(23379), + 47: uint16(23544), + 48: uint16(23567), + 49: uint16(23586), + 50: uint16(23608), + 51: uint16(23665), + 52: uint16(24029), + 53: uint16(24037), + 54: uint16(24049), + 55: uint16(24050), + 56: uint16(24051), + 57: uint16(24062), + 58: uint16(24178), + 59: uint16(24318), + 60: uint16(24331), + 61: uint16(24339), + 62: uint16(25165), + 63: uint16(19985), + 64: uint16(19984), + 65: uint16(19981), + 66: uint16(20013), + 67: uint16(20016), + 68: uint16(20025), + 69: uint16(20043), + 70: uint16(23609), + 71: uint16(20104), + 72: uint16(20113), + 73: uint16(20117), + 74: uint16(20114), + 75: uint16(20116), + 76: uint16(20130), + 77: uint16(20161), + 78: uint16(20160), + 79: uint16(20163), + 80: uint16(20166), + 81: uint16(20167), + 82: uint16(20173), + 83: uint16(20170), + 84: uint16(20171), + 85: uint16(20164), + 86: uint16(20803), + 87: uint16(20801), + 88: uint16(20839), + 89: uint16(20845), + 90: uint16(20846), + 91: uint16(20844), + 92: uint16(20887), + 93: uint16(20982), + 94: uint16(20998), + 95: uint16(20999), + 96: uint16(21000), + 97: uint16(21243), + 98: uint16(21246), + 99: uint16(21247), + 100: uint16(21270), + 101: uint16(21305), + 102: uint16(21320), + 103: uint16(21319), + 104: uint16(21317), + 105: uint16(21342), + 106: uint16(21380), + 107: uint16(21451), + 108: uint16(21450), + 109: uint16(21453), + 110: uint16(22764), + 111: uint16(22825), + 112: uint16(22827), + 113: uint16(22826), + 114: uint16(22829), + 115: uint16(23380), + 116: uint16(23569), + 117: uint16(23588), + 118: uint16(23610), + 119: uint16(23663), + 120: uint16(24052), + 121: uint16(24187), + 122: uint16(24319), + 123: uint16(24340), + 124: uint16(24341), + 125: uint16(24515), + 126: uint16(25096), + 127: uint16(25142), + 128: uint16(25163), + 129: uint16(25166), + 130: uint16(25903), + 131: uint16(25991), + 132: uint16(26007), + 133: uint16(26020), + 134: uint16(26041), + 135: uint16(26085), + 136: uint16(26352), + 137: uint16(26376), + 138: uint16(26408), + 139: uint16(27424), + 140: uint16(27490), + 141: uint16(27513), + 142: uint16(27595), + 143: uint16(27604), + 144: uint16(27611), + 145: uint16(27663), + 146: uint16(27700), + 147: uint16(28779), + 148: uint16(29226), + 149: uint16(29238), + 150: uint16(29243), + 151: uint16(29255), + 152: uint16(29273), + 153: uint16(29275), + 154: uint16(29356), + 155: uint16(29579), + 156: uint16(19993), + }, + 4: { + 0: uint16(19990), + 1: uint16(19989), + 2: uint16(19988), + 3: uint16(19992), + 4: uint16(20027), + 5: uint16(20045), + 6: uint16(20047), + 7: uint16(20046), + 8: uint16(20197), + 9: uint16(20184), + 10: uint16(20180), + 11: uint16(20181), + 12: uint16(20182), + 13: uint16(20183), + 14: uint16(20195), + 15: uint16(20196), + 16: uint16(20185), + 17: uint16(20190), + 18: uint16(20805), + 19: uint16(20804), + 20: uint16(20873), + 21: uint16(20874), + 22: uint16(20908), + 23: uint16(20985), + 24: uint16(20986), + 25: uint16(20984), + 26: uint16(21002), + 27: uint16(21152), + 28: uint16(21151), + 29: uint16(21253), + 30: uint16(21254), + 31: uint16(21271), + 32: uint16(21277), + 33: uint16(20191), + 34: uint16(21322), + 35: uint16(21321), + 36: uint16(21345), + 37: uint16(21344), + 38: uint16(21359), + 39: uint16(21358), + 40: uint16(21435), + 41: uint16(21487), + 42: uint16(21476), + 43: uint16(21491), + 44: uint16(21484), + 45: uint16(21486), + 46: uint16(21481), + 47: uint16(21480), + 48: uint16(21500), + 49: uint16(21496), + 50: uint16(21493), + 51: uint16(21483), + 52: uint16(21478), + 53: uint16(21482), + 54: uint16(21490), + 55: uint16(21489), + 56: uint16(21488), + 57: uint16(21477), + 58: uint16(21485), + 59: uint16(21499), + 60: uint16(22235), + 61: uint16(22234), + 62: uint16(22806), + 63: uint16(22830), + 64: uint16(22833), + 65: uint16(22900), + 66: uint16(22902), + 67: uint16(23381), + 68: uint16(23427), + 69: uint16(23612), + 70: uint16(24040), + 71: uint16(24039), + 72: uint16(24038), + 73: uint16(24066), + 74: uint16(24067), + 75: uint16(24179), + 76: uint16(24188), + 77: uint16(24321), + 78: uint16(24344), + 79: uint16(24343), + 80: uint16(24517), + 81: uint16(25098), + 82: uint16(25171), + 83: uint16(25172), + 84: uint16(25170), + 85: uint16(25169), + 86: uint16(26021), + 87: uint16(26086), + 88: uint16(26414), + 89: uint16(26412), + 90: uint16(26410), + 91: uint16(26411), + 92: uint16(26413), + 93: uint16(27491), + 94: uint16(27597), + 95: uint16(27665), + 96: uint16(27664), + 97: uint16(27704), + 98: uint16(27713), + 99: uint16(27712), + 100: uint16(27710), + 101: uint16(29359), + 102: uint16(29572), + 103: uint16(29577), + 104: uint16(29916), + 105: uint16(29926), + 106: uint16(29976), + 107: uint16(29983), + 108: uint16(29992), + 109: uint16(29993), + 110: uint16(30000), + 111: uint16(30001), + 112: uint16(30002), + 113: uint16(30003), + 114: uint16(30091), + 115: uint16(30333), + 116: uint16(30382), + 117: uint16(30399), + 118: uint16(30446), + 119: uint16(30683), + 120: uint16(30690), + 121: uint16(30707), + 122: uint16(31034), + 123: uint16(31166), + 124: uint16(31348), + 125: uint16(31435), + 126: uint16(19998), + 127: uint16(19999), + 128: uint16(20050), + 129: uint16(20051), + 130: uint16(20073), + 131: uint16(20121), + 132: uint16(20132), + 133: uint16(20134), + 134: uint16(20133), + 135: uint16(20223), + 136: uint16(20233), + 137: uint16(20249), + 138: uint16(20234), + 139: uint16(20245), + 140: uint16(20237), + 141: uint16(20240), + 142: uint16(20241), + 143: uint16(20239), + 144: uint16(20210), + 145: uint16(20214), + 146: uint16(20219), + 147: uint16(20208), + 148: uint16(20211), + 149: uint16(20221), + 150: uint16(20225), + 151: uint16(20235), + 152: uint16(20809), + 153: uint16(20807), + 154: uint16(20806), + 155: uint16(20808), + 156: uint16(20840), + }, + 5: { + 0: uint16(20849), + 1: uint16(20877), + 2: uint16(20912), + 3: uint16(21015), + 4: uint16(21009), + 5: uint16(21010), + 6: uint16(21006), + 7: uint16(21014), + 8: uint16(21155), + 9: uint16(21256), + 10: uint16(21281), + 11: uint16(21280), + 12: uint16(21360), + 13: uint16(21361), + 14: uint16(21513), + 15: uint16(21519), + 16: uint16(21516), + 17: uint16(21514), + 18: uint16(21520), + 19: uint16(21505), + 20: uint16(21515), + 21: uint16(21508), + 22: uint16(21521), + 23: uint16(21517), + 24: uint16(21512), + 25: uint16(21507), + 26: uint16(21518), + 27: uint16(21510), + 28: uint16(21522), + 29: uint16(22240), + 30: uint16(22238), + 31: uint16(22237), + 32: uint16(22323), + 33: uint16(22320), + 34: uint16(22312), + 35: uint16(22317), + 36: uint16(22316), + 37: uint16(22319), + 38: uint16(22313), + 39: uint16(22809), + 40: uint16(22810), + 41: uint16(22839), + 42: uint16(22840), + 43: uint16(22916), + 44: uint16(22904), + 45: uint16(22915), + 46: uint16(22909), + 47: uint16(22905), + 48: uint16(22914), + 49: uint16(22913), + 50: uint16(23383), + 51: uint16(23384), + 52: uint16(23431), + 53: uint16(23432), + 54: uint16(23429), + 55: uint16(23433), + 56: uint16(23546), + 57: uint16(23574), + 58: uint16(23673), + 59: uint16(24030), + 60: uint16(24070), + 61: uint16(24182), + 62: uint16(24180), + 63: uint16(24335), + 64: uint16(24347), + 65: uint16(24537), + 66: uint16(24534), + 67: uint16(25102), + 68: uint16(25100), + 69: uint16(25101), + 70: uint16(25104), + 71: uint16(25187), + 72: uint16(25179), + 73: uint16(25176), + 74: uint16(25910), + 75: uint16(26089), + 76: uint16(26088), + 77: uint16(26092), + 78: uint16(26093), + 79: uint16(26354), + 80: uint16(26355), + 81: uint16(26377), + 82: uint16(26429), + 83: uint16(26420), + 84: uint16(26417), + 85: uint16(26421), + 86: uint16(27425), + 87: uint16(27492), + 88: uint16(27515), + 89: uint16(27670), + 90: uint16(27741), + 91: uint16(27735), + 92: uint16(27737), + 93: uint16(27743), + 94: uint16(27744), + 95: uint16(27728), + 96: uint16(27733), + 97: uint16(27745), + 98: uint16(27739), + 99: uint16(27725), + 100: uint16(27726), + 101: uint16(28784), + 102: uint16(29279), + 103: uint16(29277), + 104: uint16(30334), + 105: uint16(31481), + 106: uint16(31859), + 107: uint16(31992), + 108: uint16(32566), + 109: uint16(32650), + 110: uint16(32701), + 111: uint16(32769), + 112: uint16(32771), + 113: uint16(32780), + 114: uint16(32786), + 115: uint16(32819), + 116: uint16(32895), + 117: uint16(32905), + 118: uint16(32907), + 119: uint16(32908), + 120: uint16(33251), + 121: uint16(33258), + 122: uint16(33267), + 123: uint16(33276), + 124: uint16(33292), + 125: uint16(33307), + 126: uint16(33311), + 127: uint16(33390), + 128: uint16(33394), + 129: uint16(33406), + 130: uint16(34411), + 131: uint16(34880), + 132: uint16(34892), + 133: uint16(34915), + 134: uint16(35199), + 135: uint16(38433), + 136: uint16(20018), + 137: uint16(20136), + 138: uint16(20301), + 139: uint16(20303), + 140: uint16(20295), + 141: uint16(20311), + 142: uint16(20318), + 143: uint16(20276), + 144: uint16(20315), + 145: uint16(20309), + 146: uint16(20272), + 147: uint16(20304), + 148: uint16(20305), + 149: uint16(20285), + 150: uint16(20282), + 151: uint16(20280), + 152: uint16(20291), + 153: uint16(20308), + 154: uint16(20284), + 155: uint16(20294), + 156: uint16(20323), + }, + 6: { + 0: uint16(20316), + 1: uint16(20320), + 2: uint16(20271), + 3: uint16(20302), + 4: uint16(20278), + 5: uint16(20313), + 6: uint16(20317), + 7: uint16(20296), + 8: uint16(20314), + 9: uint16(20812), + 10: uint16(20811), + 11: uint16(20813), + 12: uint16(20853), + 13: uint16(20918), + 14: uint16(20919), + 15: uint16(21029), + 16: uint16(21028), + 17: uint16(21033), + 18: uint16(21034), + 19: uint16(21032), + 20: uint16(21163), + 21: uint16(21161), + 22: uint16(21162), + 23: uint16(21164), + 24: uint16(21283), + 25: uint16(21363), + 26: uint16(21365), + 27: uint16(21533), + 28: uint16(21549), + 29: uint16(21534), + 30: uint16(21566), + 31: uint16(21542), + 32: uint16(21582), + 33: uint16(21543), + 34: uint16(21574), + 35: uint16(21571), + 36: uint16(21555), + 37: uint16(21576), + 38: uint16(21570), + 39: uint16(21531), + 40: uint16(21545), + 41: uint16(21578), + 42: uint16(21561), + 43: uint16(21563), + 44: uint16(21560), + 45: uint16(21550), + 46: uint16(21557), + 47: uint16(21558), + 48: uint16(21536), + 49: uint16(21564), + 50: uint16(21568), + 51: uint16(21553), + 52: uint16(21547), + 53: uint16(21535), + 54: uint16(21548), + 55: uint16(22250), + 56: uint16(22256), + 57: uint16(22244), + 58: uint16(22251), + 59: uint16(22346), + 60: uint16(22353), + 61: uint16(22336), + 62: uint16(22349), + 63: uint16(22343), + 64: uint16(22350), + 65: uint16(22334), + 66: uint16(22352), + 67: uint16(22351), + 68: uint16(22331), + 69: uint16(22767), + 70: uint16(22846), + 71: uint16(22941), + 72: uint16(22930), + 73: uint16(22952), + 74: uint16(22942), + 75: uint16(22947), + 76: uint16(22937), + 77: uint16(22934), + 78: uint16(22925), + 79: uint16(22948), + 80: uint16(22931), + 81: uint16(22922), + 82: uint16(22949), + 83: uint16(23389), + 84: uint16(23388), + 85: uint16(23386), + 86: uint16(23387), + 87: uint16(23436), + 88: uint16(23435), + 89: uint16(23439), + 90: uint16(23596), + 91: uint16(23616), + 92: uint16(23617), + 93: uint16(23615), + 94: uint16(23614), + 95: uint16(23696), + 96: uint16(23697), + 97: uint16(23700), + 98: uint16(23692), + 99: uint16(24043), + 100: uint16(24076), + 101: uint16(24207), + 102: uint16(24199), + 103: uint16(24202), + 104: uint16(24311), + 105: uint16(24324), + 106: uint16(24351), + 107: uint16(24420), + 108: uint16(24418), + 109: uint16(24439), + 110: uint16(24441), + 111: uint16(24536), + 112: uint16(24524), + 113: uint16(24535), + 114: uint16(24525), + 115: uint16(24561), + 116: uint16(24555), + 117: uint16(24568), + 118: uint16(24554), + 119: uint16(25106), + 120: uint16(25105), + 121: uint16(25220), + 122: uint16(25239), + 123: uint16(25238), + 124: uint16(25216), + 125: uint16(25206), + 126: uint16(25225), + 127: uint16(25197), + 128: uint16(25226), + 129: uint16(25212), + 130: uint16(25214), + 131: uint16(25209), + 132: uint16(25203), + 133: uint16(25234), + 134: uint16(25199), + 135: uint16(25240), + 136: uint16(25198), + 137: uint16(25237), + 138: uint16(25235), + 139: uint16(25233), + 140: uint16(25222), + 141: uint16(25913), + 142: uint16(25915), + 143: uint16(25912), + 144: uint16(26097), + 145: uint16(26356), + 146: uint16(26463), + 147: uint16(26446), + 148: uint16(26447), + 149: uint16(26448), + 150: uint16(26449), + 151: uint16(26460), + 152: uint16(26454), + 153: uint16(26462), + 154: uint16(26441), + 155: uint16(26438), + 156: uint16(26464), + }, + 7: { + 0: uint16(26451), + 1: uint16(26455), + 2: uint16(27493), + 3: uint16(27599), + 4: uint16(27714), + 5: uint16(27742), + 6: uint16(27801), + 7: uint16(27777), + 8: uint16(27784), + 9: uint16(27785), + 10: uint16(27781), + 11: uint16(27803), + 12: uint16(27754), + 13: uint16(27770), + 14: uint16(27792), + 15: uint16(27760), + 16: uint16(27788), + 17: uint16(27752), + 18: uint16(27798), + 19: uint16(27794), + 20: uint16(27773), + 21: uint16(27779), + 22: uint16(27762), + 23: uint16(27774), + 24: uint16(27764), + 25: uint16(27782), + 26: uint16(27766), + 27: uint16(27789), + 28: uint16(27796), + 29: uint16(27800), + 30: uint16(27778), + 31: uint16(28790), + 32: uint16(28796), + 33: uint16(28797), + 34: uint16(28792), + 35: uint16(29282), + 36: uint16(29281), + 37: uint16(29280), + 38: uint16(29380), + 39: uint16(29378), + 40: uint16(29590), + 41: uint16(29996), + 42: uint16(29995), + 43: uint16(30007), + 44: uint16(30008), + 45: uint16(30338), + 46: uint16(30447), + 47: uint16(30691), + 48: uint16(31169), + 49: uint16(31168), + 50: uint16(31167), + 51: uint16(31350), + 52: uint16(31995), + 53: uint16(32597), + 54: uint16(32918), + 55: uint16(32915), + 56: uint16(32925), + 57: uint16(32920), + 58: uint16(32923), + 59: uint16(32922), + 60: uint16(32946), + 61: uint16(33391), + 62: uint16(33426), + 63: uint16(33419), + 64: uint16(33421), + 65: uint16(35211), + 66: uint16(35282), + 67: uint16(35328), + 68: uint16(35895), + 69: uint16(35910), + 70: uint16(35925), + 71: uint16(35997), + 72: uint16(36196), + 73: uint16(36208), + 74: uint16(36275), + 75: uint16(36523), + 76: uint16(36554), + 77: uint16(36763), + 78: uint16(36784), + 79: uint16(36802), + 80: uint16(36806), + 81: uint16(36805), + 82: uint16(36804), + 83: uint16(24033), + 84: uint16(37009), + 85: uint16(37026), + 86: uint16(37034), + 87: uint16(37030), + 88: uint16(37027), + 89: uint16(37193), + 90: uint16(37318), + 91: uint16(37324), + 92: uint16(38450), + 93: uint16(38446), + 94: uint16(38449), + 95: uint16(38442), + 96: uint16(38444), + 97: uint16(20006), + 98: uint16(20054), + 99: uint16(20083), + 100: uint16(20107), + 101: uint16(20123), + 102: uint16(20126), + 103: uint16(20139), + 104: uint16(20140), + 105: uint16(20335), + 106: uint16(20381), + 107: uint16(20365), + 108: uint16(20339), + 109: uint16(20351), + 110: uint16(20332), + 111: uint16(20379), + 112: uint16(20363), + 113: uint16(20358), + 114: uint16(20355), + 115: uint16(20336), + 116: uint16(20341), + 117: uint16(20360), + 118: uint16(20329), + 119: uint16(20347), + 120: uint16(20374), + 121: uint16(20350), + 122: uint16(20367), + 123: uint16(20369), + 124: uint16(20346), + 125: uint16(20820), + 126: uint16(20818), + 127: uint16(20821), + 128: uint16(20841), + 129: uint16(20855), + 130: uint16(20854), + 131: uint16(20856), + 132: uint16(20925), + 133: uint16(20989), + 134: uint16(21051), + 135: uint16(21048), + 136: uint16(21047), + 137: uint16(21050), + 138: uint16(21040), + 139: uint16(21038), + 140: uint16(21046), + 141: uint16(21057), + 142: uint16(21182), + 143: uint16(21179), + 144: uint16(21330), + 145: uint16(21332), + 146: uint16(21331), + 147: uint16(21329), + 148: uint16(21350), + 149: uint16(21367), + 150: uint16(21368), + 151: uint16(21369), + 152: uint16(21462), + 153: uint16(21460), + 154: uint16(21463), + 155: uint16(21619), + 156: uint16(21621), + }, + 8: { + 0: uint16(21654), + 1: uint16(21624), + 2: uint16(21653), + 3: uint16(21632), + 4: uint16(21627), + 5: uint16(21623), + 6: uint16(21636), + 7: uint16(21650), + 8: uint16(21638), + 9: uint16(21628), + 10: uint16(21648), + 11: uint16(21617), + 12: uint16(21622), + 13: uint16(21644), + 14: uint16(21658), + 15: uint16(21602), + 16: uint16(21608), + 17: uint16(21643), + 18: uint16(21629), + 19: uint16(21646), + 20: uint16(22266), + 21: uint16(22403), + 22: uint16(22391), + 23: uint16(22378), + 24: uint16(22377), + 25: uint16(22369), + 26: uint16(22374), + 27: uint16(22372), + 28: uint16(22396), + 29: uint16(22812), + 30: uint16(22857), + 31: uint16(22855), + 32: uint16(22856), + 33: uint16(22852), + 34: uint16(22868), + 35: uint16(22974), + 36: uint16(22971), + 37: uint16(22996), + 38: uint16(22969), + 39: uint16(22958), + 40: uint16(22993), + 41: uint16(22982), + 42: uint16(22992), + 43: uint16(22989), + 44: uint16(22987), + 45: uint16(22995), + 46: uint16(22986), + 47: uint16(22959), + 48: uint16(22963), + 49: uint16(22994), + 50: uint16(22981), + 51: uint16(23391), + 52: uint16(23396), + 53: uint16(23395), + 54: uint16(23447), + 55: uint16(23450), + 56: uint16(23448), + 57: uint16(23452), + 58: uint16(23449), + 59: uint16(23451), + 60: uint16(23578), + 61: uint16(23624), + 62: uint16(23621), + 63: uint16(23622), + 64: uint16(23735), + 65: uint16(23713), + 66: uint16(23736), + 67: uint16(23721), + 68: uint16(23723), + 69: uint16(23729), + 70: uint16(23731), + 71: uint16(24088), + 72: uint16(24090), + 73: uint16(24086), + 74: uint16(24085), + 75: uint16(24091), + 76: uint16(24081), + 77: uint16(24184), + 78: uint16(24218), + 79: uint16(24215), + 80: uint16(24220), + 81: uint16(24213), + 82: uint16(24214), + 83: uint16(24310), + 84: uint16(24358), + 85: uint16(24359), + 86: uint16(24361), + 87: uint16(24448), + 88: uint16(24449), + 89: uint16(24447), + 90: uint16(24444), + 91: uint16(24541), + 92: uint16(24544), + 93: uint16(24573), + 94: uint16(24565), + 95: uint16(24575), + 96: uint16(24591), + 97: uint16(24596), + 98: uint16(24623), + 99: uint16(24629), + 100: uint16(24598), + 101: uint16(24618), + 102: uint16(24597), + 103: uint16(24609), + 104: uint16(24615), + 105: uint16(24617), + 106: uint16(24619), + 107: uint16(24603), + 108: uint16(25110), + 109: uint16(25109), + 110: uint16(25151), + 111: uint16(25150), + 112: uint16(25152), + 113: uint16(25215), + 114: uint16(25289), + 115: uint16(25292), + 116: uint16(25284), + 117: uint16(25279), + 118: uint16(25282), + 119: uint16(25273), + 120: uint16(25298), + 121: uint16(25307), + 122: uint16(25259), + 123: uint16(25299), + 124: uint16(25300), + 125: uint16(25291), + 126: uint16(25288), + 127: uint16(25256), + 128: uint16(25277), + 129: uint16(25276), + 130: uint16(25296), + 131: uint16(25305), + 132: uint16(25287), + 133: uint16(25293), + 134: uint16(25269), + 135: uint16(25306), + 136: uint16(25265), + 137: uint16(25304), + 138: uint16(25302), + 139: uint16(25303), + 140: uint16(25286), + 141: uint16(25260), + 142: uint16(25294), + 143: uint16(25918), + 144: uint16(26023), + 145: uint16(26044), + 146: uint16(26106), + 147: uint16(26132), + 148: uint16(26131), + 149: uint16(26124), + 150: uint16(26118), + 151: uint16(26114), + 152: uint16(26126), + 153: uint16(26112), + 154: uint16(26127), + 155: uint16(26133), + 156: uint16(26122), + }, + 9: { + 0: uint16(26119), + 1: uint16(26381), + 2: uint16(26379), + 3: uint16(26477), + 4: uint16(26507), + 5: uint16(26517), + 6: uint16(26481), + 7: uint16(26524), + 8: uint16(26483), + 9: uint16(26487), + 10: uint16(26503), + 11: uint16(26525), + 12: uint16(26519), + 13: uint16(26479), + 14: uint16(26480), + 15: uint16(26495), + 16: uint16(26505), + 17: uint16(26494), + 18: uint16(26512), + 19: uint16(26485), + 20: uint16(26522), + 21: uint16(26515), + 22: uint16(26492), + 23: uint16(26474), + 24: uint16(26482), + 25: uint16(27427), + 26: uint16(27494), + 27: uint16(27495), + 28: uint16(27519), + 29: uint16(27667), + 30: uint16(27675), + 31: uint16(27875), + 32: uint16(27880), + 33: uint16(27891), + 34: uint16(27825), + 35: uint16(27852), + 36: uint16(27877), + 37: uint16(27827), + 38: uint16(27837), + 39: uint16(27838), + 40: uint16(27836), + 41: uint16(27874), + 42: uint16(27819), + 43: uint16(27861), + 44: uint16(27859), + 45: uint16(27832), + 46: uint16(27844), + 47: uint16(27833), + 48: uint16(27841), + 49: uint16(27822), + 50: uint16(27863), + 51: uint16(27845), + 52: uint16(27889), + 53: uint16(27839), + 54: uint16(27835), + 55: uint16(27873), + 56: uint16(27867), + 57: uint16(27850), + 58: uint16(27820), + 59: uint16(27887), + 60: uint16(27868), + 61: uint16(27862), + 62: uint16(27872), + 63: uint16(28821), + 64: uint16(28814), + 65: uint16(28818), + 66: uint16(28810), + 67: uint16(28825), + 68: uint16(29228), + 69: uint16(29229), + 70: uint16(29240), + 71: uint16(29256), + 72: uint16(29287), + 73: uint16(29289), + 74: uint16(29376), + 75: uint16(29390), + 76: uint16(29401), + 77: uint16(29399), + 78: uint16(29392), + 79: uint16(29609), + 80: uint16(29608), + 81: uint16(29599), + 82: uint16(29611), + 83: uint16(29605), + 84: uint16(30013), + 85: uint16(30109), + 86: uint16(30105), + 87: uint16(30106), + 88: uint16(30340), + 89: uint16(30402), + 90: uint16(30450), + 91: uint16(30452), + 92: uint16(30693), + 93: uint16(30717), + 94: uint16(31038), + 95: uint16(31040), + 96: uint16(31041), + 97: uint16(31177), + 98: uint16(31176), + 99: uint16(31354), + 100: uint16(31353), + 101: uint16(31482), + 102: uint16(31998), + 103: uint16(32596), + 104: uint16(32652), + 105: uint16(32651), + 106: uint16(32773), + 107: uint16(32954), + 108: uint16(32933), + 109: uint16(32930), + 110: uint16(32945), + 111: uint16(32929), + 112: uint16(32939), + 113: uint16(32937), + 114: uint16(32948), + 115: uint16(32938), + 116: uint16(32943), + 117: uint16(33253), + 118: uint16(33278), + 119: uint16(33293), + 120: uint16(33459), + 121: uint16(33437), + 122: uint16(33433), + 123: uint16(33453), + 124: uint16(33469), + 125: uint16(33439), + 126: uint16(33465), + 127: uint16(33457), + 128: uint16(33452), + 129: uint16(33445), + 130: uint16(33455), + 131: uint16(33464), + 132: uint16(33443), + 133: uint16(33456), + 134: uint16(33470), + 135: uint16(33463), + 136: uint16(34382), + 137: uint16(34417), + 138: uint16(21021), + 139: uint16(34920), + 140: uint16(36555), + 141: uint16(36814), + 142: uint16(36820), + 143: uint16(36817), + 144: uint16(37045), + 145: uint16(37048), + 146: uint16(37041), + 147: uint16(37046), + 148: uint16(37319), + 149: uint16(37329), + 150: uint16(38263), + 151: uint16(38272), + 152: uint16(38428), + 153: uint16(38464), + 154: uint16(38463), + 155: uint16(38459), + 156: uint16(38468), + }, + 10: { + 0: uint16(38466), + 1: uint16(38585), + 2: uint16(38632), + 3: uint16(38738), + 4: uint16(38750), + 5: uint16(20127), + 6: uint16(20141), + 7: uint16(20142), + 8: uint16(20449), + 9: uint16(20405), + 10: uint16(20399), + 11: uint16(20415), + 12: uint16(20448), + 13: uint16(20433), + 14: uint16(20431), + 15: uint16(20445), + 16: uint16(20419), + 17: uint16(20406), + 18: uint16(20440), + 19: uint16(20447), + 20: uint16(20426), + 21: uint16(20439), + 22: uint16(20398), + 23: uint16(20432), + 24: uint16(20420), + 25: uint16(20418), + 26: uint16(20442), + 27: uint16(20430), + 28: uint16(20446), + 29: uint16(20407), + 30: uint16(20823), + 31: uint16(20882), + 32: uint16(20881), + 33: uint16(20896), + 34: uint16(21070), + 35: uint16(21059), + 36: uint16(21066), + 37: uint16(21069), + 38: uint16(21068), + 39: uint16(21067), + 40: uint16(21063), + 41: uint16(21191), + 42: uint16(21193), + 43: uint16(21187), + 44: uint16(21185), + 45: uint16(21261), + 46: uint16(21335), + 47: uint16(21371), + 48: uint16(21402), + 49: uint16(21467), + 50: uint16(21676), + 51: uint16(21696), + 52: uint16(21672), + 53: uint16(21710), + 54: uint16(21705), + 55: uint16(21688), + 56: uint16(21670), + 57: uint16(21683), + 58: uint16(21703), + 59: uint16(21698), + 60: uint16(21693), + 61: uint16(21674), + 62: uint16(21697), + 63: uint16(21700), + 64: uint16(21704), + 65: uint16(21679), + 66: uint16(21675), + 67: uint16(21681), + 68: uint16(21691), + 69: uint16(21673), + 70: uint16(21671), + 71: uint16(21695), + 72: uint16(22271), + 73: uint16(22402), + 74: uint16(22411), + 75: uint16(22432), + 76: uint16(22435), + 77: uint16(22434), + 78: uint16(22478), + 79: uint16(22446), + 80: uint16(22419), + 81: uint16(22869), + 82: uint16(22865), + 83: uint16(22863), + 84: uint16(22862), + 85: uint16(22864), + 86: uint16(23004), + 87: uint16(23000), + 88: uint16(23039), + 89: uint16(23011), + 90: uint16(23016), + 91: uint16(23043), + 92: uint16(23013), + 93: uint16(23018), + 94: uint16(23002), + 95: uint16(23014), + 96: uint16(23041), + 97: uint16(23035), + 98: uint16(23401), + 99: uint16(23459), + 100: uint16(23462), + 101: uint16(23460), + 102: uint16(23458), + 103: uint16(23461), + 104: uint16(23553), + 105: uint16(23630), + 106: uint16(23631), + 107: uint16(23629), + 108: uint16(23627), + 109: uint16(23769), + 110: uint16(23762), + 111: uint16(24055), + 112: uint16(24093), + 113: uint16(24101), + 114: uint16(24095), + 115: uint16(24189), + 116: uint16(24224), + 117: uint16(24230), + 118: uint16(24314), + 119: uint16(24328), + 120: uint16(24365), + 121: uint16(24421), + 122: uint16(24456), + 123: uint16(24453), + 124: uint16(24458), + 125: uint16(24459), + 126: uint16(24455), + 127: uint16(24460), + 128: uint16(24457), + 129: uint16(24594), + 130: uint16(24605), + 131: uint16(24608), + 132: uint16(24613), + 133: uint16(24590), + 134: uint16(24616), + 135: uint16(24653), + 136: uint16(24688), + 137: uint16(24680), + 138: uint16(24674), + 139: uint16(24646), + 140: uint16(24643), + 141: uint16(24684), + 142: uint16(24683), + 143: uint16(24682), + 144: uint16(24676), + 145: uint16(25153), + 146: uint16(25308), + 147: uint16(25366), + 148: uint16(25353), + 149: uint16(25340), + 150: uint16(25325), + 151: uint16(25345), + 152: uint16(25326), + 153: uint16(25341), + 154: uint16(25351), + 155: uint16(25329), + 156: uint16(25335), + }, + 11: { + 0: uint16(25327), + 1: uint16(25324), + 2: uint16(25342), + 3: uint16(25332), + 4: uint16(25361), + 5: uint16(25346), + 6: uint16(25919), + 7: uint16(25925), + 8: uint16(26027), + 9: uint16(26045), + 10: uint16(26082), + 11: uint16(26149), + 12: uint16(26157), + 13: uint16(26144), + 14: uint16(26151), + 15: uint16(26159), + 16: uint16(26143), + 17: uint16(26152), + 18: uint16(26161), + 19: uint16(26148), + 20: uint16(26359), + 21: uint16(26623), + 22: uint16(26579), + 23: uint16(26609), + 24: uint16(26580), + 25: uint16(26576), + 26: uint16(26604), + 27: uint16(26550), + 28: uint16(26543), + 29: uint16(26613), + 30: uint16(26601), + 31: uint16(26607), + 32: uint16(26564), + 33: uint16(26577), + 34: uint16(26548), + 35: uint16(26586), + 36: uint16(26597), + 37: uint16(26552), + 38: uint16(26575), + 39: uint16(26590), + 40: uint16(26611), + 41: uint16(26544), + 42: uint16(26585), + 43: uint16(26594), + 44: uint16(26589), + 45: uint16(26578), + 46: uint16(27498), + 47: uint16(27523), + 48: uint16(27526), + 49: uint16(27573), + 50: uint16(27602), + 51: uint16(27607), + 52: uint16(27679), + 53: uint16(27849), + 54: uint16(27915), + 55: uint16(27954), + 56: uint16(27946), + 57: uint16(27969), + 58: uint16(27941), + 59: uint16(27916), + 60: uint16(27953), + 61: uint16(27934), + 62: uint16(27927), + 63: uint16(27963), + 64: uint16(27965), + 65: uint16(27966), + 66: uint16(27958), + 67: uint16(27931), + 68: uint16(27893), + 69: uint16(27961), + 70: uint16(27943), + 71: uint16(27960), + 72: uint16(27945), + 73: uint16(27950), + 74: uint16(27957), + 75: uint16(27918), + 76: uint16(27947), + 77: uint16(28843), + 78: uint16(28858), + 79: uint16(28851), + 80: uint16(28844), + 81: uint16(28847), + 82: uint16(28845), + 83: uint16(28856), + 84: uint16(28846), + 85: uint16(28836), + 86: uint16(29232), + 87: uint16(29298), + 88: uint16(29295), + 89: uint16(29300), + 90: uint16(29417), + 91: uint16(29408), + 92: uint16(29409), + 93: uint16(29623), + 94: uint16(29642), + 95: uint16(29627), + 96: uint16(29618), + 97: uint16(29645), + 98: uint16(29632), + 99: uint16(29619), + 100: uint16(29978), + 101: uint16(29997), + 102: uint16(30031), + 103: uint16(30028), + 104: uint16(30030), + 105: uint16(30027), + 106: uint16(30123), + 107: uint16(30116), + 108: uint16(30117), + 109: uint16(30114), + 110: uint16(30115), + 111: uint16(30328), + 112: uint16(30342), + 113: uint16(30343), + 114: uint16(30344), + 115: uint16(30408), + 116: uint16(30406), + 117: uint16(30403), + 118: uint16(30405), + 119: uint16(30465), + 120: uint16(30457), + 121: uint16(30456), + 122: uint16(30473), + 123: uint16(30475), + 124: uint16(30462), + 125: uint16(30460), + 126: uint16(30471), + 127: uint16(30684), + 128: uint16(30722), + 129: uint16(30740), + 130: uint16(30732), + 131: uint16(30733), + 132: uint16(31046), + 133: uint16(31049), + 134: uint16(31048), + 135: uint16(31047), + 136: uint16(31161), + 137: uint16(31162), + 138: uint16(31185), + 139: uint16(31186), + 140: uint16(31179), + 141: uint16(31359), + 142: uint16(31361), + 143: uint16(31487), + 144: uint16(31485), + 145: uint16(31869), + 146: uint16(32002), + 147: uint16(32005), + 148: uint16(32000), + 149: uint16(32009), + 150: uint16(32007), + 151: uint16(32004), + 152: uint16(32006), + 153: uint16(32568), + 154: uint16(32654), + 155: uint16(32703), + 156: uint16(32772), + }, + 12: { + 0: uint16(32784), + 1: uint16(32781), + 2: uint16(32785), + 3: uint16(32822), + 4: uint16(32982), + 5: uint16(32997), + 6: uint16(32986), + 7: uint16(32963), + 8: uint16(32964), + 9: uint16(32972), + 10: uint16(32993), + 11: uint16(32987), + 12: uint16(32974), + 13: uint16(32990), + 14: uint16(32996), + 15: uint16(32989), + 16: uint16(33268), + 17: uint16(33314), + 18: uint16(33511), + 19: uint16(33539), + 20: uint16(33541), + 21: uint16(33507), + 22: uint16(33499), + 23: uint16(33510), + 24: uint16(33540), + 25: uint16(33509), + 26: uint16(33538), + 27: uint16(33545), + 28: uint16(33490), + 29: uint16(33495), + 30: uint16(33521), + 31: uint16(33537), + 32: uint16(33500), + 33: uint16(33492), + 34: uint16(33489), + 35: uint16(33502), + 36: uint16(33491), + 37: uint16(33503), + 38: uint16(33519), + 39: uint16(33542), + 40: uint16(34384), + 41: uint16(34425), + 42: uint16(34427), + 43: uint16(34426), + 44: uint16(34893), + 45: uint16(34923), + 46: uint16(35201), + 47: uint16(35284), + 48: uint16(35336), + 49: uint16(35330), + 50: uint16(35331), + 51: uint16(35998), + 52: uint16(36000), + 53: uint16(36212), + 54: uint16(36211), + 55: uint16(36276), + 56: uint16(36557), + 57: uint16(36556), + 58: uint16(36848), + 59: uint16(36838), + 60: uint16(36834), + 61: uint16(36842), + 62: uint16(36837), + 63: uint16(36845), + 64: uint16(36843), + 65: uint16(36836), + 66: uint16(36840), + 67: uint16(37066), + 68: uint16(37070), + 69: uint16(37057), + 70: uint16(37059), + 71: uint16(37195), + 72: uint16(37194), + 73: uint16(37325), + 74: uint16(38274), + 75: uint16(38480), + 76: uint16(38475), + 77: uint16(38476), + 78: uint16(38477), + 79: uint16(38754), + 80: uint16(38761), + 81: uint16(38859), + 82: uint16(38893), + 83: uint16(38899), + 84: uint16(38913), + 85: uint16(39080), + 86: uint16(39131), + 87: uint16(39135), + 88: uint16(39318), + 89: uint16(39321), + 90: uint16(20056), + 91: uint16(20147), + 92: uint16(20492), + 93: uint16(20493), + 94: uint16(20515), + 95: uint16(20463), + 96: uint16(20518), + 97: uint16(20517), + 98: uint16(20472), + 99: uint16(20521), + 100: uint16(20502), + 101: uint16(20486), + 102: uint16(20540), + 103: uint16(20511), + 104: uint16(20506), + 105: uint16(20498), + 106: uint16(20497), + 107: uint16(20474), + 108: uint16(20480), + 109: uint16(20500), + 110: uint16(20520), + 111: uint16(20465), + 112: uint16(20513), + 113: uint16(20491), + 114: uint16(20505), + 115: uint16(20504), + 116: uint16(20467), + 117: uint16(20462), + 118: uint16(20525), + 119: uint16(20522), + 120: uint16(20478), + 121: uint16(20523), + 122: uint16(20489), + 123: uint16(20860), + 124: uint16(20900), + 125: uint16(20901), + 126: uint16(20898), + 127: uint16(20941), + 128: uint16(20940), + 129: uint16(20934), + 130: uint16(20939), + 131: uint16(21078), + 132: uint16(21084), + 133: uint16(21076), + 134: uint16(21083), + 135: uint16(21085), + 136: uint16(21290), + 137: uint16(21375), + 138: uint16(21407), + 139: uint16(21405), + 140: uint16(21471), + 141: uint16(21736), + 142: uint16(21776), + 143: uint16(21761), + 144: uint16(21815), + 145: uint16(21756), + 146: uint16(21733), + 147: uint16(21746), + 148: uint16(21766), + 149: uint16(21754), + 150: uint16(21780), + 151: uint16(21737), + 152: uint16(21741), + 153: uint16(21729), + 154: uint16(21769), + 155: uint16(21742), + 156: uint16(21738), + }, + 13: { + 0: uint16(21734), + 1: uint16(21799), + 2: uint16(21767), + 3: uint16(21757), + 4: uint16(21775), + 5: uint16(22275), + 6: uint16(22276), + 7: uint16(22466), + 8: uint16(22484), + 9: uint16(22475), + 10: uint16(22467), + 11: uint16(22537), + 12: uint16(22799), + 13: uint16(22871), + 14: uint16(22872), + 15: uint16(22874), + 16: uint16(23057), + 17: uint16(23064), + 18: uint16(23068), + 19: uint16(23071), + 20: uint16(23067), + 21: uint16(23059), + 22: uint16(23020), + 23: uint16(23072), + 24: uint16(23075), + 25: uint16(23081), + 26: uint16(23077), + 27: uint16(23052), + 28: uint16(23049), + 29: uint16(23403), + 30: uint16(23640), + 31: uint16(23472), + 32: uint16(23475), + 33: uint16(23478), + 34: uint16(23476), + 35: uint16(23470), + 36: uint16(23477), + 37: uint16(23481), + 38: uint16(23480), + 39: uint16(23556), + 40: uint16(23633), + 41: uint16(23637), + 42: uint16(23632), + 43: uint16(23789), + 44: uint16(23805), + 45: uint16(23803), + 46: uint16(23786), + 47: uint16(23784), + 48: uint16(23792), + 49: uint16(23798), + 50: uint16(23809), + 51: uint16(23796), + 52: uint16(24046), + 53: uint16(24109), + 54: uint16(24107), + 55: uint16(24235), + 56: uint16(24237), + 57: uint16(24231), + 58: uint16(24369), + 59: uint16(24466), + 60: uint16(24465), + 61: uint16(24464), + 62: uint16(24665), + 63: uint16(24675), + 64: uint16(24677), + 65: uint16(24656), + 66: uint16(24661), + 67: uint16(24685), + 68: uint16(24681), + 69: uint16(24687), + 70: uint16(24708), + 71: uint16(24735), + 72: uint16(24730), + 73: uint16(24717), + 74: uint16(24724), + 75: uint16(24716), + 76: uint16(24709), + 77: uint16(24726), + 78: uint16(25159), + 79: uint16(25331), + 80: uint16(25352), + 81: uint16(25343), + 82: uint16(25422), + 83: uint16(25406), + 84: uint16(25391), + 85: uint16(25429), + 86: uint16(25410), + 87: uint16(25414), + 88: uint16(25423), + 89: uint16(25417), + 90: uint16(25402), + 91: uint16(25424), + 92: uint16(25405), + 93: uint16(25386), + 94: uint16(25387), + 95: uint16(25384), + 96: uint16(25421), + 97: uint16(25420), + 98: uint16(25928), + 99: uint16(25929), + 100: uint16(26009), + 101: uint16(26049), + 102: uint16(26053), + 103: uint16(26178), + 104: uint16(26185), + 105: uint16(26191), + 106: uint16(26179), + 107: uint16(26194), + 108: uint16(26188), + 109: uint16(26181), + 110: uint16(26177), + 111: uint16(26360), + 112: uint16(26388), + 113: uint16(26389), + 114: uint16(26391), + 115: uint16(26657), + 116: uint16(26680), + 117: uint16(26696), + 118: uint16(26694), + 119: uint16(26707), + 120: uint16(26681), + 121: uint16(26690), + 122: uint16(26708), + 123: uint16(26665), + 124: uint16(26803), + 125: uint16(26647), + 126: uint16(26700), + 127: uint16(26705), + 128: uint16(26685), + 129: uint16(26612), + 130: uint16(26704), + 131: uint16(26688), + 132: uint16(26684), + 133: uint16(26691), + 134: uint16(26666), + 135: uint16(26693), + 136: uint16(26643), + 137: uint16(26648), + 138: uint16(26689), + 139: uint16(27530), + 140: uint16(27529), + 141: uint16(27575), + 142: uint16(27683), + 143: uint16(27687), + 144: uint16(27688), + 145: uint16(27686), + 146: uint16(27684), + 147: uint16(27888), + 148: uint16(28010), + 149: uint16(28053), + 150: uint16(28040), + 151: uint16(28039), + 152: uint16(28006), + 153: uint16(28024), + 154: uint16(28023), + 155: uint16(27993), + 156: uint16(28051), + }, + 14: { + 0: uint16(28012), + 1: uint16(28041), + 2: uint16(28014), + 3: uint16(27994), + 4: uint16(28020), + 5: uint16(28009), + 6: uint16(28044), + 7: uint16(28042), + 8: uint16(28025), + 9: uint16(28037), + 10: uint16(28005), + 11: uint16(28052), + 12: uint16(28874), + 13: uint16(28888), + 14: uint16(28900), + 15: uint16(28889), + 16: uint16(28872), + 17: uint16(28879), + 18: uint16(29241), + 19: uint16(29305), + 20: uint16(29436), + 21: uint16(29433), + 22: uint16(29437), + 23: uint16(29432), + 24: uint16(29431), + 25: uint16(29574), + 26: uint16(29677), + 27: uint16(29705), + 28: uint16(29678), + 29: uint16(29664), + 30: uint16(29674), + 31: uint16(29662), + 32: uint16(30036), + 33: uint16(30045), + 34: uint16(30044), + 35: uint16(30042), + 36: uint16(30041), + 37: uint16(30142), + 38: uint16(30149), + 39: uint16(30151), + 40: uint16(30130), + 41: uint16(30131), + 42: uint16(30141), + 43: uint16(30140), + 44: uint16(30137), + 45: uint16(30146), + 46: uint16(30136), + 47: uint16(30347), + 48: uint16(30384), + 49: uint16(30410), + 50: uint16(30413), + 51: uint16(30414), + 52: uint16(30505), + 53: uint16(30495), + 54: uint16(30496), + 55: uint16(30504), + 56: uint16(30697), + 57: uint16(30768), + 58: uint16(30759), + 59: uint16(30776), + 60: uint16(30749), + 61: uint16(30772), + 62: uint16(30775), + 63: uint16(30757), + 64: uint16(30765), + 65: uint16(30752), + 66: uint16(30751), + 67: uint16(30770), + 68: uint16(31061), + 69: uint16(31056), + 70: uint16(31072), + 71: uint16(31071), + 72: uint16(31062), + 73: uint16(31070), + 74: uint16(31069), + 75: uint16(31063), + 76: uint16(31066), + 77: uint16(31204), + 78: uint16(31203), + 79: uint16(31207), + 80: uint16(31199), + 81: uint16(31206), + 82: uint16(31209), + 83: uint16(31192), + 84: uint16(31364), + 85: uint16(31368), + 86: uint16(31449), + 87: uint16(31494), + 88: uint16(31505), + 89: uint16(31881), + 90: uint16(32033), + 91: uint16(32023), + 92: uint16(32011), + 93: uint16(32010), + 94: uint16(32032), + 95: uint16(32034), + 96: uint16(32020), + 97: uint16(32016), + 98: uint16(32021), + 99: uint16(32026), + 100: uint16(32028), + 101: uint16(32013), + 102: uint16(32025), + 103: uint16(32027), + 104: uint16(32570), + 105: uint16(32607), + 106: uint16(32660), + 107: uint16(32709), + 108: uint16(32705), + 109: uint16(32774), + 110: uint16(32792), + 111: uint16(32789), + 112: uint16(32793), + 113: uint16(32791), + 114: uint16(32829), + 115: uint16(32831), + 116: uint16(33009), + 117: uint16(33026), + 118: uint16(33008), + 119: uint16(33029), + 120: uint16(33005), + 121: uint16(33012), + 122: uint16(33030), + 123: uint16(33016), + 124: uint16(33011), + 125: uint16(33032), + 126: uint16(33021), + 127: uint16(33034), + 128: uint16(33020), + 129: uint16(33007), + 130: uint16(33261), + 131: uint16(33260), + 132: uint16(33280), + 133: uint16(33296), + 134: uint16(33322), + 135: uint16(33323), + 136: uint16(33320), + 137: uint16(33324), + 138: uint16(33467), + 139: uint16(33579), + 140: uint16(33618), + 141: uint16(33620), + 142: uint16(33610), + 143: uint16(33592), + 144: uint16(33616), + 145: uint16(33609), + 146: uint16(33589), + 147: uint16(33588), + 148: uint16(33615), + 149: uint16(33586), + 150: uint16(33593), + 151: uint16(33590), + 152: uint16(33559), + 153: uint16(33600), + 154: uint16(33585), + 155: uint16(33576), + 156: uint16(33603), + }, + 15: { + 0: uint16(34388), + 1: uint16(34442), + 2: uint16(34474), + 3: uint16(34451), + 4: uint16(34468), + 5: uint16(34473), + 6: uint16(34444), + 7: uint16(34467), + 8: uint16(34460), + 9: uint16(34928), + 10: uint16(34935), + 11: uint16(34945), + 12: uint16(34946), + 13: uint16(34941), + 14: uint16(34937), + 15: uint16(35352), + 16: uint16(35344), + 17: uint16(35342), + 18: uint16(35340), + 19: uint16(35349), + 20: uint16(35338), + 21: uint16(35351), + 22: uint16(35347), + 23: uint16(35350), + 24: uint16(35343), + 25: uint16(35345), + 26: uint16(35912), + 27: uint16(35962), + 28: uint16(35961), + 29: uint16(36001), + 30: uint16(36002), + 31: uint16(36215), + 32: uint16(36524), + 33: uint16(36562), + 34: uint16(36564), + 35: uint16(36559), + 36: uint16(36785), + 37: uint16(36865), + 38: uint16(36870), + 39: uint16(36855), + 40: uint16(36864), + 41: uint16(36858), + 42: uint16(36852), + 43: uint16(36867), + 44: uint16(36861), + 45: uint16(36869), + 46: uint16(36856), + 47: uint16(37013), + 48: uint16(37089), + 49: uint16(37085), + 50: uint16(37090), + 51: uint16(37202), + 52: uint16(37197), + 53: uint16(37196), + 54: uint16(37336), + 55: uint16(37341), + 56: uint16(37335), + 57: uint16(37340), + 58: uint16(37337), + 59: uint16(38275), + 60: uint16(38498), + 61: uint16(38499), + 62: uint16(38497), + 63: uint16(38491), + 64: uint16(38493), + 65: uint16(38500), + 66: uint16(38488), + 67: uint16(38494), + 68: uint16(38587), + 69: uint16(39138), + 70: uint16(39340), + 71: uint16(39592), + 72: uint16(39640), + 73: uint16(39717), + 74: uint16(39730), + 75: uint16(39740), + 76: uint16(20094), + 77: uint16(20602), + 78: uint16(20605), + 79: uint16(20572), + 80: uint16(20551), + 81: uint16(20547), + 82: uint16(20556), + 83: uint16(20570), + 84: uint16(20553), + 85: uint16(20581), + 86: uint16(20598), + 87: uint16(20558), + 88: uint16(20565), + 89: uint16(20597), + 90: uint16(20596), + 91: uint16(20599), + 92: uint16(20559), + 93: uint16(20495), + 94: uint16(20591), + 95: uint16(20589), + 96: uint16(20828), + 97: uint16(20885), + 98: uint16(20976), + 99: uint16(21098), + 100: uint16(21103), + 101: uint16(21202), + 102: uint16(21209), + 103: uint16(21208), + 104: uint16(21205), + 105: uint16(21264), + 106: uint16(21263), + 107: uint16(21273), + 108: uint16(21311), + 109: uint16(21312), + 110: uint16(21310), + 111: uint16(21443), + 112: uint16(26364), + 113: uint16(21830), + 114: uint16(21866), + 115: uint16(21862), + 116: uint16(21828), + 117: uint16(21854), + 118: uint16(21857), + 119: uint16(21827), + 120: uint16(21834), + 121: uint16(21809), + 122: uint16(21846), + 123: uint16(21839), + 124: uint16(21845), + 125: uint16(21807), + 126: uint16(21860), + 127: uint16(21816), + 128: uint16(21806), + 129: uint16(21852), + 130: uint16(21804), + 131: uint16(21859), + 132: uint16(21811), + 133: uint16(21825), + 134: uint16(21847), + 135: uint16(22280), + 136: uint16(22283), + 137: uint16(22281), + 138: uint16(22495), + 139: uint16(22533), + 140: uint16(22538), + 141: uint16(22534), + 142: uint16(22496), + 143: uint16(22500), + 144: uint16(22522), + 145: uint16(22530), + 146: uint16(22581), + 147: uint16(22519), + 148: uint16(22521), + 149: uint16(22816), + 150: uint16(22882), + 151: uint16(23094), + 152: uint16(23105), + 153: uint16(23113), + 154: uint16(23142), + 155: uint16(23146), + 156: uint16(23104), + }, + 16: { + 0: uint16(23100), + 1: uint16(23138), + 2: uint16(23130), + 3: uint16(23110), + 4: uint16(23114), + 5: uint16(23408), + 6: uint16(23495), + 7: uint16(23493), + 8: uint16(23492), + 9: uint16(23490), + 10: uint16(23487), + 11: uint16(23494), + 12: uint16(23561), + 13: uint16(23560), + 14: uint16(23559), + 15: uint16(23648), + 16: uint16(23644), + 17: uint16(23645), + 18: uint16(23815), + 19: uint16(23814), + 20: uint16(23822), + 21: uint16(23835), + 22: uint16(23830), + 23: uint16(23842), + 24: uint16(23825), + 25: uint16(23849), + 26: uint16(23828), + 27: uint16(23833), + 28: uint16(23844), + 29: uint16(23847), + 30: uint16(23831), + 31: uint16(24034), + 32: uint16(24120), + 33: uint16(24118), + 34: uint16(24115), + 35: uint16(24119), + 36: uint16(24247), + 37: uint16(24248), + 38: uint16(24246), + 39: uint16(24245), + 40: uint16(24254), + 41: uint16(24373), + 42: uint16(24375), + 43: uint16(24407), + 44: uint16(24428), + 45: uint16(24425), + 46: uint16(24427), + 47: uint16(24471), + 48: uint16(24473), + 49: uint16(24478), + 50: uint16(24472), + 51: uint16(24481), + 52: uint16(24480), + 53: uint16(24476), + 54: uint16(24703), + 55: uint16(24739), + 56: uint16(24713), + 57: uint16(24736), + 58: uint16(24744), + 59: uint16(24779), + 60: uint16(24756), + 61: uint16(24806), + 62: uint16(24765), + 63: uint16(24773), + 64: uint16(24763), + 65: uint16(24757), + 66: uint16(24796), + 67: uint16(24764), + 68: uint16(24792), + 69: uint16(24789), + 70: uint16(24774), + 71: uint16(24799), + 72: uint16(24760), + 73: uint16(24794), + 74: uint16(24775), + 75: uint16(25114), + 76: uint16(25115), + 77: uint16(25160), + 78: uint16(25504), + 79: uint16(25511), + 80: uint16(25458), + 81: uint16(25494), + 82: uint16(25506), + 83: uint16(25509), + 84: uint16(25463), + 85: uint16(25447), + 86: uint16(25496), + 87: uint16(25514), + 88: uint16(25457), + 89: uint16(25513), + 90: uint16(25481), + 91: uint16(25475), + 92: uint16(25499), + 93: uint16(25451), + 94: uint16(25512), + 95: uint16(25476), + 96: uint16(25480), + 97: uint16(25497), + 98: uint16(25505), + 99: uint16(25516), + 100: uint16(25490), + 101: uint16(25487), + 102: uint16(25472), + 103: uint16(25467), + 104: uint16(25449), + 105: uint16(25448), + 106: uint16(25466), + 107: uint16(25949), + 108: uint16(25942), + 109: uint16(25937), + 110: uint16(25945), + 111: uint16(25943), + 112: uint16(21855), + 113: uint16(25935), + 114: uint16(25944), + 115: uint16(25941), + 116: uint16(25940), + 117: uint16(26012), + 118: uint16(26011), + 119: uint16(26028), + 120: uint16(26063), + 121: uint16(26059), + 122: uint16(26060), + 123: uint16(26062), + 124: uint16(26205), + 125: uint16(26202), + 126: uint16(26212), + 127: uint16(26216), + 128: uint16(26214), + 129: uint16(26206), + 130: uint16(26361), + 131: uint16(21207), + 132: uint16(26395), + 133: uint16(26753), + 134: uint16(26799), + 135: uint16(26786), + 136: uint16(26771), + 137: uint16(26805), + 138: uint16(26751), + 139: uint16(26742), + 140: uint16(26801), + 141: uint16(26791), + 142: uint16(26775), + 143: uint16(26800), + 144: uint16(26755), + 145: uint16(26820), + 146: uint16(26797), + 147: uint16(26758), + 148: uint16(26757), + 149: uint16(26772), + 150: uint16(26781), + 151: uint16(26792), + 152: uint16(26783), + 153: uint16(26785), + 154: uint16(26754), + 155: uint16(27442), + 156: uint16(27578), + }, + 17: { + 0: uint16(27627), + 1: uint16(27628), + 2: uint16(27691), + 3: uint16(28046), + 4: uint16(28092), + 5: uint16(28147), + 6: uint16(28121), + 7: uint16(28082), + 8: uint16(28129), + 9: uint16(28108), + 10: uint16(28132), + 11: uint16(28155), + 12: uint16(28154), + 13: uint16(28165), + 14: uint16(28103), + 15: uint16(28107), + 16: uint16(28079), + 17: uint16(28113), + 18: uint16(28078), + 19: uint16(28126), + 20: uint16(28153), + 21: uint16(28088), + 22: uint16(28151), + 23: uint16(28149), + 24: uint16(28101), + 25: uint16(28114), + 26: uint16(28186), + 27: uint16(28085), + 28: uint16(28122), + 29: uint16(28139), + 30: uint16(28120), + 31: uint16(28138), + 32: uint16(28145), + 33: uint16(28142), + 34: uint16(28136), + 35: uint16(28102), + 36: uint16(28100), + 37: uint16(28074), + 38: uint16(28140), + 39: uint16(28095), + 40: uint16(28134), + 41: uint16(28921), + 42: uint16(28937), + 43: uint16(28938), + 44: uint16(28925), + 45: uint16(28911), + 46: uint16(29245), + 47: uint16(29309), + 48: uint16(29313), + 49: uint16(29468), + 50: uint16(29467), + 51: uint16(29462), + 52: uint16(29459), + 53: uint16(29465), + 54: uint16(29575), + 55: uint16(29701), + 56: uint16(29706), + 57: uint16(29699), + 58: uint16(29702), + 59: uint16(29694), + 60: uint16(29709), + 61: uint16(29920), + 62: uint16(29942), + 63: uint16(29943), + 64: uint16(29980), + 65: uint16(29986), + 66: uint16(30053), + 67: uint16(30054), + 68: uint16(30050), + 69: uint16(30064), + 70: uint16(30095), + 71: uint16(30164), + 72: uint16(30165), + 73: uint16(30133), + 74: uint16(30154), + 75: uint16(30157), + 76: uint16(30350), + 77: uint16(30420), + 78: uint16(30418), + 79: uint16(30427), + 80: uint16(30519), + 81: uint16(30526), + 82: uint16(30524), + 83: uint16(30518), + 84: uint16(30520), + 85: uint16(30522), + 86: uint16(30827), + 87: uint16(30787), + 88: uint16(30798), + 89: uint16(31077), + 90: uint16(31080), + 91: uint16(31085), + 92: uint16(31227), + 93: uint16(31378), + 94: uint16(31381), + 95: uint16(31520), + 96: uint16(31528), + 97: uint16(31515), + 98: uint16(31532), + 99: uint16(31526), + 100: uint16(31513), + 101: uint16(31518), + 102: uint16(31534), + 103: uint16(31890), + 104: uint16(31895), + 105: uint16(31893), + 106: uint16(32070), + 107: uint16(32067), + 108: uint16(32113), + 109: uint16(32046), + 110: uint16(32057), + 111: uint16(32060), + 112: uint16(32064), + 113: uint16(32048), + 114: uint16(32051), + 115: uint16(32068), + 116: uint16(32047), + 117: uint16(32066), + 118: uint16(32050), + 119: uint16(32049), + 120: uint16(32573), + 121: uint16(32670), + 122: uint16(32666), + 123: uint16(32716), + 124: uint16(32718), + 125: uint16(32722), + 126: uint16(32796), + 127: uint16(32842), + 128: uint16(32838), + 129: uint16(33071), + 130: uint16(33046), + 131: uint16(33059), + 132: uint16(33067), + 133: uint16(33065), + 134: uint16(33072), + 135: uint16(33060), + 136: uint16(33282), + 137: uint16(33333), + 138: uint16(33335), + 139: uint16(33334), + 140: uint16(33337), + 141: uint16(33678), + 142: uint16(33694), + 143: uint16(33688), + 144: uint16(33656), + 145: uint16(33698), + 146: uint16(33686), + 147: uint16(33725), + 148: uint16(33707), + 149: uint16(33682), + 150: uint16(33674), + 151: uint16(33683), + 152: uint16(33673), + 153: uint16(33696), + 154: uint16(33655), + 155: uint16(33659), + 156: uint16(33660), + }, + 18: { + 0: uint16(33670), + 1: uint16(33703), + 2: uint16(34389), + 3: uint16(24426), + 4: uint16(34503), + 5: uint16(34496), + 6: uint16(34486), + 7: uint16(34500), + 8: uint16(34485), + 9: uint16(34502), + 10: uint16(34507), + 11: uint16(34481), + 12: uint16(34479), + 13: uint16(34505), + 14: uint16(34899), + 15: uint16(34974), + 16: uint16(34952), + 17: uint16(34987), + 18: uint16(34962), + 19: uint16(34966), + 20: uint16(34957), + 21: uint16(34955), + 22: uint16(35219), + 23: uint16(35215), + 24: uint16(35370), + 25: uint16(35357), + 26: uint16(35363), + 27: uint16(35365), + 28: uint16(35377), + 29: uint16(35373), + 30: uint16(35359), + 31: uint16(35355), + 32: uint16(35362), + 33: uint16(35913), + 34: uint16(35930), + 35: uint16(36009), + 36: uint16(36012), + 37: uint16(36011), + 38: uint16(36008), + 39: uint16(36010), + 40: uint16(36007), + 41: uint16(36199), + 42: uint16(36198), + 43: uint16(36286), + 44: uint16(36282), + 45: uint16(36571), + 46: uint16(36575), + 47: uint16(36889), + 48: uint16(36877), + 49: uint16(36890), + 50: uint16(36887), + 51: uint16(36899), + 52: uint16(36895), + 53: uint16(36893), + 54: uint16(36880), + 55: uint16(36885), + 56: uint16(36894), + 57: uint16(36896), + 58: uint16(36879), + 59: uint16(36898), + 60: uint16(36886), + 61: uint16(36891), + 62: uint16(36884), + 63: uint16(37096), + 64: uint16(37101), + 65: uint16(37117), + 66: uint16(37207), + 67: uint16(37326), + 68: uint16(37365), + 69: uint16(37350), + 70: uint16(37347), + 71: uint16(37351), + 72: uint16(37357), + 73: uint16(37353), + 74: uint16(38281), + 75: uint16(38506), + 76: uint16(38517), + 77: uint16(38515), + 78: uint16(38520), + 79: uint16(38512), + 80: uint16(38516), + 81: uint16(38518), + 82: uint16(38519), + 83: uint16(38508), + 84: uint16(38592), + 85: uint16(38634), + 86: uint16(38633), + 87: uint16(31456), + 88: uint16(31455), + 89: uint16(38914), + 90: uint16(38915), + 91: uint16(39770), + 92: uint16(40165), + 93: uint16(40565), + 94: uint16(40575), + 95: uint16(40613), + 96: uint16(40635), + 97: uint16(20642), + 98: uint16(20621), + 99: uint16(20613), + 100: uint16(20633), + 101: uint16(20625), + 102: uint16(20608), + 103: uint16(20630), + 104: uint16(20632), + 105: uint16(20634), + 106: uint16(26368), + 107: uint16(20977), + 108: uint16(21106), + 109: uint16(21108), + 110: uint16(21109), + 111: uint16(21097), + 112: uint16(21214), + 113: uint16(21213), + 114: uint16(21211), + 115: uint16(21338), + 116: uint16(21413), + 117: uint16(21883), + 118: uint16(21888), + 119: uint16(21927), + 120: uint16(21884), + 121: uint16(21898), + 122: uint16(21917), + 123: uint16(21912), + 124: uint16(21890), + 125: uint16(21916), + 126: uint16(21930), + 127: uint16(21908), + 128: uint16(21895), + 129: uint16(21899), + 130: uint16(21891), + 131: uint16(21939), + 132: uint16(21934), + 133: uint16(21919), + 134: uint16(21822), + 135: uint16(21938), + 136: uint16(21914), + 137: uint16(21947), + 138: uint16(21932), + 139: uint16(21937), + 140: uint16(21886), + 141: uint16(21897), + 142: uint16(21931), + 143: uint16(21913), + 144: uint16(22285), + 145: uint16(22575), + 146: uint16(22570), + 147: uint16(22580), + 148: uint16(22564), + 149: uint16(22576), + 150: uint16(22577), + 151: uint16(22561), + 152: uint16(22557), + 153: uint16(22560), + 154: uint16(22777), + 155: uint16(22778), + 156: uint16(22880), + }, + 19: { + 0: uint16(23159), + 1: uint16(23194), + 2: uint16(23167), + 3: uint16(23186), + 4: uint16(23195), + 5: uint16(23207), + 6: uint16(23411), + 7: uint16(23409), + 8: uint16(23506), + 9: uint16(23500), + 10: uint16(23507), + 11: uint16(23504), + 12: uint16(23562), + 13: uint16(23563), + 14: uint16(23601), + 15: uint16(23884), + 16: uint16(23888), + 17: uint16(23860), + 18: uint16(23879), + 19: uint16(24061), + 20: uint16(24133), + 21: uint16(24125), + 22: uint16(24128), + 23: uint16(24131), + 24: uint16(24190), + 25: uint16(24266), + 26: uint16(24257), + 27: uint16(24258), + 28: uint16(24260), + 29: uint16(24380), + 30: uint16(24429), + 31: uint16(24489), + 32: uint16(24490), + 33: uint16(24488), + 34: uint16(24785), + 35: uint16(24801), + 36: uint16(24754), + 37: uint16(24758), + 38: uint16(24800), + 39: uint16(24860), + 40: uint16(24867), + 41: uint16(24826), + 42: uint16(24853), + 43: uint16(24816), + 44: uint16(24827), + 45: uint16(24820), + 46: uint16(24936), + 47: uint16(24817), + 48: uint16(24846), + 49: uint16(24822), + 50: uint16(24841), + 51: uint16(24832), + 52: uint16(24850), + 53: uint16(25119), + 54: uint16(25161), + 55: uint16(25507), + 56: uint16(25484), + 57: uint16(25551), + 58: uint16(25536), + 59: uint16(25577), + 60: uint16(25545), + 61: uint16(25542), + 62: uint16(25549), + 63: uint16(25554), + 64: uint16(25571), + 65: uint16(25552), + 66: uint16(25569), + 67: uint16(25558), + 68: uint16(25581), + 69: uint16(25582), + 70: uint16(25462), + 71: uint16(25588), + 72: uint16(25578), + 73: uint16(25563), + 74: uint16(25682), + 75: uint16(25562), + 76: uint16(25593), + 77: uint16(25950), + 78: uint16(25958), + 79: uint16(25954), + 80: uint16(25955), + 81: uint16(26001), + 82: uint16(26000), + 83: uint16(26031), + 84: uint16(26222), + 85: uint16(26224), + 86: uint16(26228), + 87: uint16(26230), + 88: uint16(26223), + 89: uint16(26257), + 90: uint16(26234), + 91: uint16(26238), + 92: uint16(26231), + 93: uint16(26366), + 94: uint16(26367), + 95: uint16(26399), + 96: uint16(26397), + 97: uint16(26874), + 98: uint16(26837), + 99: uint16(26848), + 100: uint16(26840), + 101: uint16(26839), + 102: uint16(26885), + 103: uint16(26847), + 104: uint16(26869), + 105: uint16(26862), + 106: uint16(26855), + 107: uint16(26873), + 108: uint16(26834), + 109: uint16(26866), + 110: uint16(26851), + 111: uint16(26827), + 112: uint16(26829), + 113: uint16(26893), + 114: uint16(26898), + 115: uint16(26894), + 116: uint16(26825), + 117: uint16(26842), + 118: uint16(26990), + 119: uint16(26875), + 120: uint16(27454), + 121: uint16(27450), + 122: uint16(27453), + 123: uint16(27544), + 124: uint16(27542), + 125: uint16(27580), + 126: uint16(27631), + 127: uint16(27694), + 128: uint16(27695), + 129: uint16(27692), + 130: uint16(28207), + 131: uint16(28216), + 132: uint16(28244), + 133: uint16(28193), + 134: uint16(28210), + 135: uint16(28263), + 136: uint16(28234), + 137: uint16(28192), + 138: uint16(28197), + 139: uint16(28195), + 140: uint16(28187), + 141: uint16(28251), + 142: uint16(28248), + 143: uint16(28196), + 144: uint16(28246), + 145: uint16(28270), + 146: uint16(28205), + 147: uint16(28198), + 148: uint16(28271), + 149: uint16(28212), + 150: uint16(28237), + 151: uint16(28218), + 152: uint16(28204), + 153: uint16(28227), + 154: uint16(28189), + 155: uint16(28222), + 156: uint16(28363), + }, + 20: { + 0: uint16(28297), + 1: uint16(28185), + 2: uint16(28238), + 3: uint16(28259), + 4: uint16(28228), + 5: uint16(28274), + 6: uint16(28265), + 7: uint16(28255), + 8: uint16(28953), + 9: uint16(28954), + 10: uint16(28966), + 11: uint16(28976), + 12: uint16(28961), + 13: uint16(28982), + 14: uint16(29038), + 15: uint16(28956), + 16: uint16(29260), + 17: uint16(29316), + 18: uint16(29312), + 19: uint16(29494), + 20: uint16(29477), + 21: uint16(29492), + 22: uint16(29481), + 23: uint16(29754), + 24: uint16(29738), + 25: uint16(29747), + 26: uint16(29730), + 27: uint16(29733), + 28: uint16(29749), + 29: uint16(29750), + 30: uint16(29748), + 31: uint16(29743), + 32: uint16(29723), + 33: uint16(29734), + 34: uint16(29736), + 35: uint16(29989), + 36: uint16(29990), + 37: uint16(30059), + 38: uint16(30058), + 39: uint16(30178), + 40: uint16(30171), + 41: uint16(30179), + 42: uint16(30169), + 43: uint16(30168), + 44: uint16(30174), + 45: uint16(30176), + 46: uint16(30331), + 47: uint16(30332), + 48: uint16(30358), + 49: uint16(30355), + 50: uint16(30388), + 51: uint16(30428), + 52: uint16(30543), + 53: uint16(30701), + 54: uint16(30813), + 55: uint16(30828), + 56: uint16(30831), + 57: uint16(31245), + 58: uint16(31240), + 59: uint16(31243), + 60: uint16(31237), + 61: uint16(31232), + 62: uint16(31384), + 63: uint16(31383), + 64: uint16(31382), + 65: uint16(31461), + 66: uint16(31459), + 67: uint16(31561), + 68: uint16(31574), + 69: uint16(31558), + 70: uint16(31568), + 71: uint16(31570), + 72: uint16(31572), + 73: uint16(31565), + 74: uint16(31563), + 75: uint16(31567), + 76: uint16(31569), + 77: uint16(31903), + 78: uint16(31909), + 79: uint16(32094), + 80: uint16(32080), + 81: uint16(32104), + 82: uint16(32085), + 83: uint16(32043), + 84: uint16(32110), + 85: uint16(32114), + 86: uint16(32097), + 87: uint16(32102), + 88: uint16(32098), + 89: uint16(32112), + 90: uint16(32115), + 91: uint16(21892), + 92: uint16(32724), + 93: uint16(32725), + 94: uint16(32779), + 95: uint16(32850), + 96: uint16(32901), + 97: uint16(33109), + 98: uint16(33108), + 99: uint16(33099), + 100: uint16(33105), + 101: uint16(33102), + 102: uint16(33081), + 103: uint16(33094), + 104: uint16(33086), + 105: uint16(33100), + 106: uint16(33107), + 107: uint16(33140), + 108: uint16(33298), + 109: uint16(33308), + 110: uint16(33769), + 111: uint16(33795), + 112: uint16(33784), + 113: uint16(33805), + 114: uint16(33760), + 115: uint16(33733), + 116: uint16(33803), + 117: uint16(33729), + 118: uint16(33775), + 119: uint16(33777), + 120: uint16(33780), + 121: uint16(33879), + 122: uint16(33802), + 123: uint16(33776), + 124: uint16(33804), + 125: uint16(33740), + 126: uint16(33789), + 127: uint16(33778), + 128: uint16(33738), + 129: uint16(33848), + 130: uint16(33806), + 131: uint16(33796), + 132: uint16(33756), + 133: uint16(33799), + 134: uint16(33748), + 135: uint16(33759), + 136: uint16(34395), + 137: uint16(34527), + 138: uint16(34521), + 139: uint16(34541), + 140: uint16(34516), + 141: uint16(34523), + 142: uint16(34532), + 143: uint16(34512), + 144: uint16(34526), + 145: uint16(34903), + 146: uint16(35009), + 147: uint16(35010), + 148: uint16(34993), + 149: uint16(35203), + 150: uint16(35222), + 151: uint16(35387), + 152: uint16(35424), + 153: uint16(35413), + 154: uint16(35422), + 155: uint16(35388), + 156: uint16(35393), + }, + 21: { + 0: uint16(35412), + 1: uint16(35419), + 2: uint16(35408), + 3: uint16(35398), + 4: uint16(35380), + 5: uint16(35386), + 6: uint16(35382), + 7: uint16(35414), + 8: uint16(35937), + 9: uint16(35970), + 10: uint16(36015), + 11: uint16(36028), + 12: uint16(36019), + 13: uint16(36029), + 14: uint16(36033), + 15: uint16(36027), + 16: uint16(36032), + 17: uint16(36020), + 18: uint16(36023), + 19: uint16(36022), + 20: uint16(36031), + 21: uint16(36024), + 22: uint16(36234), + 23: uint16(36229), + 24: uint16(36225), + 25: uint16(36302), + 26: uint16(36317), + 27: uint16(36299), + 28: uint16(36314), + 29: uint16(36305), + 30: uint16(36300), + 31: uint16(36315), + 32: uint16(36294), + 33: uint16(36603), + 34: uint16(36600), + 35: uint16(36604), + 36: uint16(36764), + 37: uint16(36910), + 38: uint16(36917), + 39: uint16(36913), + 40: uint16(36920), + 41: uint16(36914), + 42: uint16(36918), + 43: uint16(37122), + 44: uint16(37109), + 45: uint16(37129), + 46: uint16(37118), + 47: uint16(37219), + 48: uint16(37221), + 49: uint16(37327), + 50: uint16(37396), + 51: uint16(37397), + 52: uint16(37411), + 53: uint16(37385), + 54: uint16(37406), + 55: uint16(37389), + 56: uint16(37392), + 57: uint16(37383), + 58: uint16(37393), + 59: uint16(38292), + 60: uint16(38287), + 61: uint16(38283), + 62: uint16(38289), + 63: uint16(38291), + 64: uint16(38290), + 65: uint16(38286), + 66: uint16(38538), + 67: uint16(38542), + 68: uint16(38539), + 69: uint16(38525), + 70: uint16(38533), + 71: uint16(38534), + 72: uint16(38541), + 73: uint16(38514), + 74: uint16(38532), + 75: uint16(38593), + 76: uint16(38597), + 77: uint16(38596), + 78: uint16(38598), + 79: uint16(38599), + 80: uint16(38639), + 81: uint16(38642), + 82: uint16(38860), + 83: uint16(38917), + 84: uint16(38918), + 85: uint16(38920), + 86: uint16(39143), + 87: uint16(39146), + 88: uint16(39151), + 89: uint16(39145), + 90: uint16(39154), + 91: uint16(39149), + 92: uint16(39342), + 93: uint16(39341), + 94: uint16(40643), + 95: uint16(40653), + 96: uint16(40657), + 97: uint16(20098), + 98: uint16(20653), + 99: uint16(20661), + 100: uint16(20658), + 101: uint16(20659), + 102: uint16(20677), + 103: uint16(20670), + 104: uint16(20652), + 105: uint16(20663), + 106: uint16(20667), + 107: uint16(20655), + 108: uint16(20679), + 109: uint16(21119), + 110: uint16(21111), + 111: uint16(21117), + 112: uint16(21215), + 113: uint16(21222), + 114: uint16(21220), + 115: uint16(21218), + 116: uint16(21219), + 117: uint16(21295), + 118: uint16(21983), + 119: uint16(21992), + 120: uint16(21971), + 121: uint16(21990), + 122: uint16(21966), + 123: uint16(21980), + 124: uint16(21959), + 125: uint16(21969), + 126: uint16(21987), + 127: uint16(21988), + 128: uint16(21999), + 129: uint16(21978), + 130: uint16(21985), + 131: uint16(21957), + 132: uint16(21958), + 133: uint16(21989), + 134: uint16(21961), + 135: uint16(22290), + 136: uint16(22291), + 137: uint16(22622), + 138: uint16(22609), + 139: uint16(22616), + 140: uint16(22615), + 141: uint16(22618), + 142: uint16(22612), + 143: uint16(22635), + 144: uint16(22604), + 145: uint16(22637), + 146: uint16(22602), + 147: uint16(22626), + 148: uint16(22610), + 149: uint16(22603), + 150: uint16(22887), + 151: uint16(23233), + 152: uint16(23241), + 153: uint16(23244), + 154: uint16(23230), + 155: uint16(23229), + 156: uint16(23228), + }, + 22: { + 0: uint16(23219), + 1: uint16(23234), + 2: uint16(23218), + 3: uint16(23913), + 4: uint16(23919), + 5: uint16(24140), + 6: uint16(24185), + 7: uint16(24265), + 8: uint16(24264), + 9: uint16(24338), + 10: uint16(24409), + 11: uint16(24492), + 12: uint16(24494), + 13: uint16(24858), + 14: uint16(24847), + 15: uint16(24904), + 16: uint16(24863), + 17: uint16(24819), + 18: uint16(24859), + 19: uint16(24825), + 20: uint16(24833), + 21: uint16(24840), + 22: uint16(24910), + 23: uint16(24908), + 24: uint16(24900), + 25: uint16(24909), + 26: uint16(24894), + 27: uint16(24884), + 28: uint16(24871), + 29: uint16(24845), + 30: uint16(24838), + 31: uint16(24887), + 32: uint16(25121), + 33: uint16(25122), + 34: uint16(25619), + 35: uint16(25662), + 36: uint16(25630), + 37: uint16(25642), + 38: uint16(25645), + 39: uint16(25661), + 40: uint16(25644), + 41: uint16(25615), + 42: uint16(25628), + 43: uint16(25620), + 44: uint16(25613), + 45: uint16(25654), + 46: uint16(25622), + 47: uint16(25623), + 48: uint16(25606), + 49: uint16(25964), + 50: uint16(26015), + 51: uint16(26032), + 52: uint16(26263), + 53: uint16(26249), + 54: uint16(26247), + 55: uint16(26248), + 56: uint16(26262), + 57: uint16(26244), + 58: uint16(26264), + 59: uint16(26253), + 60: uint16(26371), + 61: uint16(27028), + 62: uint16(26989), + 63: uint16(26970), + 64: uint16(26999), + 65: uint16(26976), + 66: uint16(26964), + 67: uint16(26997), + 68: uint16(26928), + 69: uint16(27010), + 70: uint16(26954), + 71: uint16(26984), + 72: uint16(26987), + 73: uint16(26974), + 74: uint16(26963), + 75: uint16(27001), + 76: uint16(27014), + 77: uint16(26973), + 78: uint16(26979), + 79: uint16(26971), + 80: uint16(27463), + 81: uint16(27506), + 82: uint16(27584), + 83: uint16(27583), + 84: uint16(27603), + 85: uint16(27645), + 86: uint16(28322), + 87: uint16(28335), + 88: uint16(28371), + 89: uint16(28342), + 90: uint16(28354), + 91: uint16(28304), + 92: uint16(28317), + 93: uint16(28359), + 94: uint16(28357), + 95: uint16(28325), + 96: uint16(28312), + 97: uint16(28348), + 98: uint16(28346), + 99: uint16(28331), + 100: uint16(28369), + 101: uint16(28310), + 102: uint16(28316), + 103: uint16(28356), + 104: uint16(28372), + 105: uint16(28330), + 106: uint16(28327), + 107: uint16(28340), + 108: uint16(29006), + 109: uint16(29017), + 110: uint16(29033), + 111: uint16(29028), + 112: uint16(29001), + 113: uint16(29031), + 114: uint16(29020), + 115: uint16(29036), + 116: uint16(29030), + 117: uint16(29004), + 118: uint16(29029), + 119: uint16(29022), + 120: uint16(28998), + 121: uint16(29032), + 122: uint16(29014), + 123: uint16(29242), + 124: uint16(29266), + 125: uint16(29495), + 126: uint16(29509), + 127: uint16(29503), + 128: uint16(29502), + 129: uint16(29807), + 130: uint16(29786), + 131: uint16(29781), + 132: uint16(29791), + 133: uint16(29790), + 134: uint16(29761), + 135: uint16(29759), + 136: uint16(29785), + 137: uint16(29787), + 138: uint16(29788), + 139: uint16(30070), + 140: uint16(30072), + 141: uint16(30208), + 142: uint16(30192), + 143: uint16(30209), + 144: uint16(30194), + 145: uint16(30193), + 146: uint16(30202), + 147: uint16(30207), + 148: uint16(30196), + 149: uint16(30195), + 150: uint16(30430), + 151: uint16(30431), + 152: uint16(30555), + 153: uint16(30571), + 154: uint16(30566), + 155: uint16(30558), + 156: uint16(30563), + }, + 23: { + 0: uint16(30585), + 1: uint16(30570), + 2: uint16(30572), + 3: uint16(30556), + 4: uint16(30565), + 5: uint16(30568), + 6: uint16(30562), + 7: uint16(30702), + 8: uint16(30862), + 9: uint16(30896), + 10: uint16(30871), + 11: uint16(30872), + 12: uint16(30860), + 13: uint16(30857), + 14: uint16(30844), + 15: uint16(30865), + 16: uint16(30867), + 17: uint16(30847), + 18: uint16(31098), + 19: uint16(31103), + 20: uint16(31105), + 21: uint16(33836), + 22: uint16(31165), + 23: uint16(31260), + 24: uint16(31258), + 25: uint16(31264), + 26: uint16(31252), + 27: uint16(31263), + 28: uint16(31262), + 29: uint16(31391), + 30: uint16(31392), + 31: uint16(31607), + 32: uint16(31680), + 33: uint16(31584), + 34: uint16(31598), + 35: uint16(31591), + 36: uint16(31921), + 37: uint16(31923), + 38: uint16(31925), + 39: uint16(32147), + 40: uint16(32121), + 41: uint16(32145), + 42: uint16(32129), + 43: uint16(32143), + 44: uint16(32091), + 45: uint16(32622), + 46: uint16(32617), + 47: uint16(32618), + 48: uint16(32626), + 49: uint16(32681), + 50: uint16(32680), + 51: uint16(32676), + 52: uint16(32854), + 53: uint16(32856), + 54: uint16(32902), + 55: uint16(32900), + 56: uint16(33137), + 57: uint16(33136), + 58: uint16(33144), + 59: uint16(33125), + 60: uint16(33134), + 61: uint16(33139), + 62: uint16(33131), + 63: uint16(33145), + 64: uint16(33146), + 65: uint16(33126), + 66: uint16(33285), + 67: uint16(33351), + 68: uint16(33922), + 69: uint16(33911), + 70: uint16(33853), + 71: uint16(33841), + 72: uint16(33909), + 73: uint16(33894), + 74: uint16(33899), + 75: uint16(33865), + 76: uint16(33900), + 77: uint16(33883), + 78: uint16(33852), + 79: uint16(33845), + 80: uint16(33889), + 81: uint16(33891), + 82: uint16(33897), + 83: uint16(33901), + 84: uint16(33862), + 85: uint16(34398), + 86: uint16(34396), + 87: uint16(34399), + 88: uint16(34553), + 89: uint16(34579), + 90: uint16(34568), + 91: uint16(34567), + 92: uint16(34560), + 93: uint16(34558), + 94: uint16(34555), + 95: uint16(34562), + 96: uint16(34563), + 97: uint16(34566), + 98: uint16(34570), + 99: uint16(34905), + 100: uint16(35039), + 101: uint16(35028), + 102: uint16(35033), + 103: uint16(35036), + 104: uint16(35032), + 105: uint16(35037), + 106: uint16(35041), + 107: uint16(35018), + 108: uint16(35029), + 109: uint16(35026), + 110: uint16(35228), + 111: uint16(35299), + 112: uint16(35435), + 113: uint16(35442), + 114: uint16(35443), + 115: uint16(35430), + 116: uint16(35433), + 117: uint16(35440), + 118: uint16(35463), + 119: uint16(35452), + 120: uint16(35427), + 121: uint16(35488), + 122: uint16(35441), + 123: uint16(35461), + 124: uint16(35437), + 125: uint16(35426), + 126: uint16(35438), + 127: uint16(35436), + 128: uint16(35449), + 129: uint16(35451), + 130: uint16(35390), + 131: uint16(35432), + 132: uint16(35938), + 133: uint16(35978), + 134: uint16(35977), + 135: uint16(36042), + 136: uint16(36039), + 137: uint16(36040), + 138: uint16(36036), + 139: uint16(36018), + 140: uint16(36035), + 141: uint16(36034), + 142: uint16(36037), + 143: uint16(36321), + 144: uint16(36319), + 145: uint16(36328), + 146: uint16(36335), + 147: uint16(36339), + 148: uint16(36346), + 149: uint16(36330), + 150: uint16(36324), + 151: uint16(36326), + 152: uint16(36530), + 153: uint16(36611), + 154: uint16(36617), + 155: uint16(36606), + 156: uint16(36618), + }, + 24: { + 0: uint16(36767), + 1: uint16(36786), + 2: uint16(36939), + 3: uint16(36938), + 4: uint16(36947), + 5: uint16(36930), + 6: uint16(36948), + 7: uint16(36924), + 8: uint16(36949), + 9: uint16(36944), + 10: uint16(36935), + 11: uint16(36943), + 12: uint16(36942), + 13: uint16(36941), + 14: uint16(36945), + 15: uint16(36926), + 16: uint16(36929), + 17: uint16(37138), + 18: uint16(37143), + 19: uint16(37228), + 20: uint16(37226), + 21: uint16(37225), + 22: uint16(37321), + 23: uint16(37431), + 24: uint16(37463), + 25: uint16(37432), + 26: uint16(37437), + 27: uint16(37440), + 28: uint16(37438), + 29: uint16(37467), + 30: uint16(37451), + 31: uint16(37476), + 32: uint16(37457), + 33: uint16(37428), + 34: uint16(37449), + 35: uint16(37453), + 36: uint16(37445), + 37: uint16(37433), + 38: uint16(37439), + 39: uint16(37466), + 40: uint16(38296), + 41: uint16(38552), + 42: uint16(38548), + 43: uint16(38549), + 44: uint16(38605), + 45: uint16(38603), + 46: uint16(38601), + 47: uint16(38602), + 48: uint16(38647), + 49: uint16(38651), + 50: uint16(38649), + 51: uint16(38646), + 52: uint16(38742), + 53: uint16(38772), + 54: uint16(38774), + 55: uint16(38928), + 56: uint16(38929), + 57: uint16(38931), + 58: uint16(38922), + 59: uint16(38930), + 60: uint16(38924), + 61: uint16(39164), + 62: uint16(39156), + 63: uint16(39165), + 64: uint16(39166), + 65: uint16(39347), + 66: uint16(39345), + 67: uint16(39348), + 68: uint16(39649), + 69: uint16(40169), + 70: uint16(40578), + 71: uint16(40718), + 72: uint16(40723), + 73: uint16(40736), + 74: uint16(20711), + 75: uint16(20718), + 76: uint16(20709), + 77: uint16(20694), + 78: uint16(20717), + 79: uint16(20698), + 80: uint16(20693), + 81: uint16(20687), + 82: uint16(20689), + 83: uint16(20721), + 84: uint16(20686), + 85: uint16(20713), + 86: uint16(20834), + 87: uint16(20979), + 88: uint16(21123), + 89: uint16(21122), + 90: uint16(21297), + 91: uint16(21421), + 92: uint16(22014), + 93: uint16(22016), + 94: uint16(22043), + 95: uint16(22039), + 96: uint16(22013), + 97: uint16(22036), + 98: uint16(22022), + 99: uint16(22025), + 100: uint16(22029), + 101: uint16(22030), + 102: uint16(22007), + 103: uint16(22038), + 104: uint16(22047), + 105: uint16(22024), + 106: uint16(22032), + 107: uint16(22006), + 108: uint16(22296), + 109: uint16(22294), + 110: uint16(22645), + 111: uint16(22654), + 112: uint16(22659), + 113: uint16(22675), + 114: uint16(22666), + 115: uint16(22649), + 116: uint16(22661), + 117: uint16(22653), + 118: uint16(22781), + 119: uint16(22821), + 120: uint16(22818), + 121: uint16(22820), + 122: uint16(22890), + 123: uint16(22889), + 124: uint16(23265), + 125: uint16(23270), + 126: uint16(23273), + 127: uint16(23255), + 128: uint16(23254), + 129: uint16(23256), + 130: uint16(23267), + 131: uint16(23413), + 132: uint16(23518), + 133: uint16(23527), + 134: uint16(23521), + 135: uint16(23525), + 136: uint16(23526), + 137: uint16(23528), + 138: uint16(23522), + 139: uint16(23524), + 140: uint16(23519), + 141: uint16(23565), + 142: uint16(23650), + 143: uint16(23940), + 144: uint16(23943), + 145: uint16(24155), + 146: uint16(24163), + 147: uint16(24149), + 148: uint16(24151), + 149: uint16(24148), + 150: uint16(24275), + 151: uint16(24278), + 152: uint16(24330), + 153: uint16(24390), + 154: uint16(24432), + 155: uint16(24505), + 156: uint16(24903), + }, + 25: { + 0: uint16(24895), + 1: uint16(24907), + 2: uint16(24951), + 3: uint16(24930), + 4: uint16(24931), + 5: uint16(24927), + 6: uint16(24922), + 7: uint16(24920), + 8: uint16(24949), + 9: uint16(25130), + 10: uint16(25735), + 11: uint16(25688), + 12: uint16(25684), + 13: uint16(25764), + 14: uint16(25720), + 15: uint16(25695), + 16: uint16(25722), + 17: uint16(25681), + 18: uint16(25703), + 19: uint16(25652), + 20: uint16(25709), + 21: uint16(25723), + 22: uint16(25970), + 23: uint16(26017), + 24: uint16(26071), + 25: uint16(26070), + 26: uint16(26274), + 27: uint16(26280), + 28: uint16(26269), + 29: uint16(27036), + 30: uint16(27048), + 31: uint16(27029), + 32: uint16(27073), + 33: uint16(27054), + 34: uint16(27091), + 35: uint16(27083), + 36: uint16(27035), + 37: uint16(27063), + 38: uint16(27067), + 39: uint16(27051), + 40: uint16(27060), + 41: uint16(27088), + 42: uint16(27085), + 43: uint16(27053), + 44: uint16(27084), + 45: uint16(27046), + 46: uint16(27075), + 47: uint16(27043), + 48: uint16(27465), + 49: uint16(27468), + 50: uint16(27699), + 51: uint16(28467), + 52: uint16(28436), + 53: uint16(28414), + 54: uint16(28435), + 55: uint16(28404), + 56: uint16(28457), + 57: uint16(28478), + 58: uint16(28448), + 59: uint16(28460), + 60: uint16(28431), + 61: uint16(28418), + 62: uint16(28450), + 63: uint16(28415), + 64: uint16(28399), + 65: uint16(28422), + 66: uint16(28465), + 67: uint16(28472), + 68: uint16(28466), + 69: uint16(28451), + 70: uint16(28437), + 71: uint16(28459), + 72: uint16(28463), + 73: uint16(28552), + 74: uint16(28458), + 75: uint16(28396), + 76: uint16(28417), + 77: uint16(28402), + 78: uint16(28364), + 79: uint16(28407), + 80: uint16(29076), + 81: uint16(29081), + 82: uint16(29053), + 83: uint16(29066), + 84: uint16(29060), + 85: uint16(29074), + 86: uint16(29246), + 87: uint16(29330), + 88: uint16(29334), + 89: uint16(29508), + 90: uint16(29520), + 91: uint16(29796), + 92: uint16(29795), + 93: uint16(29802), + 94: uint16(29808), + 95: uint16(29805), + 96: uint16(29956), + 97: uint16(30097), + 98: uint16(30247), + 99: uint16(30221), + 100: uint16(30219), + 101: uint16(30217), + 102: uint16(30227), + 103: uint16(30433), + 104: uint16(30435), + 105: uint16(30596), + 106: uint16(30589), + 107: uint16(30591), + 108: uint16(30561), + 109: uint16(30913), + 110: uint16(30879), + 111: uint16(30887), + 112: uint16(30899), + 113: uint16(30889), + 114: uint16(30883), + 115: uint16(31118), + 116: uint16(31119), + 117: uint16(31117), + 118: uint16(31278), + 119: uint16(31281), + 120: uint16(31402), + 121: uint16(31401), + 122: uint16(31469), + 123: uint16(31471), + 124: uint16(31649), + 125: uint16(31637), + 126: uint16(31627), + 127: uint16(31605), + 128: uint16(31639), + 129: uint16(31645), + 130: uint16(31636), + 131: uint16(31631), + 132: uint16(31672), + 133: uint16(31623), + 134: uint16(31620), + 135: uint16(31929), + 136: uint16(31933), + 137: uint16(31934), + 138: uint16(32187), + 139: uint16(32176), + 140: uint16(32156), + 141: uint16(32189), + 142: uint16(32190), + 143: uint16(32160), + 144: uint16(32202), + 145: uint16(32180), + 146: uint16(32178), + 147: uint16(32177), + 148: uint16(32186), + 149: uint16(32162), + 150: uint16(32191), + 151: uint16(32181), + 152: uint16(32184), + 153: uint16(32173), + 154: uint16(32210), + 155: uint16(32199), + 156: uint16(32172), + }, + 26: { + 0: uint16(32624), + 1: uint16(32736), + 2: uint16(32737), + 3: uint16(32735), + 4: uint16(32862), + 5: uint16(32858), + 6: uint16(32903), + 7: uint16(33104), + 8: uint16(33152), + 9: uint16(33167), + 10: uint16(33160), + 11: uint16(33162), + 12: uint16(33151), + 13: uint16(33154), + 14: uint16(33255), + 15: uint16(33274), + 16: uint16(33287), + 17: uint16(33300), + 18: uint16(33310), + 19: uint16(33355), + 20: uint16(33993), + 21: uint16(33983), + 22: uint16(33990), + 23: uint16(33988), + 24: uint16(33945), + 25: uint16(33950), + 26: uint16(33970), + 27: uint16(33948), + 28: uint16(33995), + 29: uint16(33976), + 30: uint16(33984), + 31: uint16(34003), + 32: uint16(33936), + 33: uint16(33980), + 34: uint16(34001), + 35: uint16(33994), + 36: uint16(34623), + 37: uint16(34588), + 38: uint16(34619), + 39: uint16(34594), + 40: uint16(34597), + 41: uint16(34612), + 42: uint16(34584), + 43: uint16(34645), + 44: uint16(34615), + 45: uint16(34601), + 46: uint16(35059), + 47: uint16(35074), + 48: uint16(35060), + 49: uint16(35065), + 50: uint16(35064), + 51: uint16(35069), + 52: uint16(35048), + 53: uint16(35098), + 54: uint16(35055), + 55: uint16(35494), + 56: uint16(35468), + 57: uint16(35486), + 58: uint16(35491), + 59: uint16(35469), + 60: uint16(35489), + 61: uint16(35475), + 62: uint16(35492), + 63: uint16(35498), + 64: uint16(35493), + 65: uint16(35496), + 66: uint16(35480), + 67: uint16(35473), + 68: uint16(35482), + 69: uint16(35495), + 70: uint16(35946), + 71: uint16(35981), + 72: uint16(35980), + 73: uint16(36051), + 74: uint16(36049), + 75: uint16(36050), + 76: uint16(36203), + 77: uint16(36249), + 78: uint16(36245), + 79: uint16(36348), + 80: uint16(36628), + 81: uint16(36626), + 82: uint16(36629), + 83: uint16(36627), + 84: uint16(36771), + 85: uint16(36960), + 86: uint16(36952), + 87: uint16(36956), + 88: uint16(36963), + 89: uint16(36953), + 90: uint16(36958), + 91: uint16(36962), + 92: uint16(36957), + 93: uint16(36955), + 94: uint16(37145), + 95: uint16(37144), + 96: uint16(37150), + 97: uint16(37237), + 98: uint16(37240), + 99: uint16(37239), + 100: uint16(37236), + 101: uint16(37496), + 102: uint16(37504), + 103: uint16(37509), + 104: uint16(37528), + 105: uint16(37526), + 106: uint16(37499), + 107: uint16(37523), + 108: uint16(37532), + 109: uint16(37544), + 110: uint16(37500), + 111: uint16(37521), + 112: uint16(38305), + 113: uint16(38312), + 114: uint16(38313), + 115: uint16(38307), + 116: uint16(38309), + 117: uint16(38308), + 118: uint16(38553), + 119: uint16(38556), + 120: uint16(38555), + 121: uint16(38604), + 122: uint16(38610), + 123: uint16(38656), + 124: uint16(38780), + 125: uint16(38789), + 126: uint16(38902), + 127: uint16(38935), + 128: uint16(38936), + 129: uint16(39087), + 130: uint16(39089), + 131: uint16(39171), + 132: uint16(39173), + 133: uint16(39180), + 134: uint16(39177), + 135: uint16(39361), + 136: uint16(39599), + 137: uint16(39600), + 138: uint16(39654), + 139: uint16(39745), + 140: uint16(39746), + 141: uint16(40180), + 142: uint16(40182), + 143: uint16(40179), + 144: uint16(40636), + 145: uint16(40763), + 146: uint16(40778), + 147: uint16(20740), + 148: uint16(20736), + 149: uint16(20731), + 150: uint16(20725), + 151: uint16(20729), + 152: uint16(20738), + 153: uint16(20744), + 154: uint16(20745), + 155: uint16(20741), + 156: uint16(20956), + }, + 27: { + 0: uint16(21127), + 1: uint16(21128), + 2: uint16(21129), + 3: uint16(21133), + 4: uint16(21130), + 5: uint16(21232), + 6: uint16(21426), + 7: uint16(22062), + 8: uint16(22075), + 9: uint16(22073), + 10: uint16(22066), + 11: uint16(22079), + 12: uint16(22068), + 13: uint16(22057), + 14: uint16(22099), + 15: uint16(22094), + 16: uint16(22103), + 17: uint16(22132), + 18: uint16(22070), + 19: uint16(22063), + 20: uint16(22064), + 21: uint16(22656), + 22: uint16(22687), + 23: uint16(22686), + 24: uint16(22707), + 25: uint16(22684), + 26: uint16(22702), + 27: uint16(22697), + 28: uint16(22694), + 29: uint16(22893), + 30: uint16(23305), + 31: uint16(23291), + 32: uint16(23307), + 33: uint16(23285), + 34: uint16(23308), + 35: uint16(23304), + 36: uint16(23534), + 37: uint16(23532), + 38: uint16(23529), + 39: uint16(23531), + 40: uint16(23652), + 41: uint16(23653), + 42: uint16(23965), + 43: uint16(23956), + 44: uint16(24162), + 45: uint16(24159), + 46: uint16(24161), + 47: uint16(24290), + 48: uint16(24282), + 49: uint16(24287), + 50: uint16(24285), + 51: uint16(24291), + 52: uint16(24288), + 53: uint16(24392), + 54: uint16(24433), + 55: uint16(24503), + 56: uint16(24501), + 57: uint16(24950), + 58: uint16(24935), + 59: uint16(24942), + 60: uint16(24925), + 61: uint16(24917), + 62: uint16(24962), + 63: uint16(24956), + 64: uint16(24944), + 65: uint16(24939), + 66: uint16(24958), + 67: uint16(24999), + 68: uint16(24976), + 69: uint16(25003), + 70: uint16(24974), + 71: uint16(25004), + 72: uint16(24986), + 73: uint16(24996), + 74: uint16(24980), + 75: uint16(25006), + 76: uint16(25134), + 77: uint16(25705), + 78: uint16(25711), + 79: uint16(25721), + 80: uint16(25758), + 81: uint16(25778), + 82: uint16(25736), + 83: uint16(25744), + 84: uint16(25776), + 85: uint16(25765), + 86: uint16(25747), + 87: uint16(25749), + 88: uint16(25769), + 89: uint16(25746), + 90: uint16(25774), + 91: uint16(25773), + 92: uint16(25771), + 93: uint16(25754), + 94: uint16(25772), + 95: uint16(25753), + 96: uint16(25762), + 97: uint16(25779), + 98: uint16(25973), + 99: uint16(25975), + 100: uint16(25976), + 101: uint16(26286), + 102: uint16(26283), + 103: uint16(26292), + 104: uint16(26289), + 105: uint16(27171), + 106: uint16(27167), + 107: uint16(27112), + 108: uint16(27137), + 109: uint16(27166), + 110: uint16(27161), + 111: uint16(27133), + 112: uint16(27169), + 113: uint16(27155), + 114: uint16(27146), + 115: uint16(27123), + 116: uint16(27138), + 117: uint16(27141), + 118: uint16(27117), + 119: uint16(27153), + 120: uint16(27472), + 121: uint16(27470), + 122: uint16(27556), + 123: uint16(27589), + 124: uint16(27590), + 125: uint16(28479), + 126: uint16(28540), + 127: uint16(28548), + 128: uint16(28497), + 129: uint16(28518), + 130: uint16(28500), + 131: uint16(28550), + 132: uint16(28525), + 133: uint16(28507), + 134: uint16(28536), + 135: uint16(28526), + 136: uint16(28558), + 137: uint16(28538), + 138: uint16(28528), + 139: uint16(28516), + 140: uint16(28567), + 141: uint16(28504), + 142: uint16(28373), + 143: uint16(28527), + 144: uint16(28512), + 145: uint16(28511), + 146: uint16(29087), + 147: uint16(29100), + 148: uint16(29105), + 149: uint16(29096), + 150: uint16(29270), + 151: uint16(29339), + 152: uint16(29518), + 153: uint16(29527), + 154: uint16(29801), + 155: uint16(29835), + 156: uint16(29827), + }, + 28: { + 0: uint16(29822), + 1: uint16(29824), + 2: uint16(30079), + 3: uint16(30240), + 4: uint16(30249), + 5: uint16(30239), + 6: uint16(30244), + 7: uint16(30246), + 8: uint16(30241), + 9: uint16(30242), + 10: uint16(30362), + 11: uint16(30394), + 12: uint16(30436), + 13: uint16(30606), + 14: uint16(30599), + 15: uint16(30604), + 16: uint16(30609), + 17: uint16(30603), + 18: uint16(30923), + 19: uint16(30917), + 20: uint16(30906), + 21: uint16(30922), + 22: uint16(30910), + 23: uint16(30933), + 24: uint16(30908), + 25: uint16(30928), + 26: uint16(31295), + 27: uint16(31292), + 28: uint16(31296), + 29: uint16(31293), + 30: uint16(31287), + 31: uint16(31291), + 32: uint16(31407), + 33: uint16(31406), + 34: uint16(31661), + 35: uint16(31665), + 36: uint16(31684), + 37: uint16(31668), + 38: uint16(31686), + 39: uint16(31687), + 40: uint16(31681), + 41: uint16(31648), + 42: uint16(31692), + 43: uint16(31946), + 44: uint16(32224), + 45: uint16(32244), + 46: uint16(32239), + 47: uint16(32251), + 48: uint16(32216), + 49: uint16(32236), + 50: uint16(32221), + 51: uint16(32232), + 52: uint16(32227), + 53: uint16(32218), + 54: uint16(32222), + 55: uint16(32233), + 56: uint16(32158), + 57: uint16(32217), + 58: uint16(32242), + 59: uint16(32249), + 60: uint16(32629), + 61: uint16(32631), + 62: uint16(32687), + 63: uint16(32745), + 64: uint16(32806), + 65: uint16(33179), + 66: uint16(33180), + 67: uint16(33181), + 68: uint16(33184), + 69: uint16(33178), + 70: uint16(33176), + 71: uint16(34071), + 72: uint16(34109), + 73: uint16(34074), + 74: uint16(34030), + 75: uint16(34092), + 76: uint16(34093), + 77: uint16(34067), + 78: uint16(34065), + 79: uint16(34083), + 80: uint16(34081), + 81: uint16(34068), + 82: uint16(34028), + 83: uint16(34085), + 84: uint16(34047), + 85: uint16(34054), + 86: uint16(34690), + 87: uint16(34676), + 88: uint16(34678), + 89: uint16(34656), + 90: uint16(34662), + 91: uint16(34680), + 92: uint16(34664), + 93: uint16(34649), + 94: uint16(34647), + 95: uint16(34636), + 96: uint16(34643), + 97: uint16(34907), + 98: uint16(34909), + 99: uint16(35088), + 100: uint16(35079), + 101: uint16(35090), + 102: uint16(35091), + 103: uint16(35093), + 104: uint16(35082), + 105: uint16(35516), + 106: uint16(35538), + 107: uint16(35527), + 108: uint16(35524), + 109: uint16(35477), + 110: uint16(35531), + 111: uint16(35576), + 112: uint16(35506), + 113: uint16(35529), + 114: uint16(35522), + 115: uint16(35519), + 116: uint16(35504), + 117: uint16(35542), + 118: uint16(35533), + 119: uint16(35510), + 120: uint16(35513), + 121: uint16(35547), + 122: uint16(35916), + 123: uint16(35918), + 124: uint16(35948), + 125: uint16(36064), + 126: uint16(36062), + 127: uint16(36070), + 128: uint16(36068), + 129: uint16(36076), + 130: uint16(36077), + 131: uint16(36066), + 132: uint16(36067), + 133: uint16(36060), + 134: uint16(36074), + 135: uint16(36065), + 136: uint16(36205), + 137: uint16(36255), + 138: uint16(36259), + 139: uint16(36395), + 140: uint16(36368), + 141: uint16(36381), + 142: uint16(36386), + 143: uint16(36367), + 144: uint16(36393), + 145: uint16(36383), + 146: uint16(36385), + 147: uint16(36382), + 148: uint16(36538), + 149: uint16(36637), + 150: uint16(36635), + 151: uint16(36639), + 152: uint16(36649), + 153: uint16(36646), + 154: uint16(36650), + 155: uint16(36636), + 156: uint16(36638), + }, + 29: { + 0: uint16(36645), + 1: uint16(36969), + 2: uint16(36974), + 3: uint16(36968), + 4: uint16(36973), + 5: uint16(36983), + 6: uint16(37168), + 7: uint16(37165), + 8: uint16(37159), + 9: uint16(37169), + 10: uint16(37255), + 11: uint16(37257), + 12: uint16(37259), + 13: uint16(37251), + 14: uint16(37573), + 15: uint16(37563), + 16: uint16(37559), + 17: uint16(37610), + 18: uint16(37548), + 19: uint16(37604), + 20: uint16(37569), + 21: uint16(37555), + 22: uint16(37564), + 23: uint16(37586), + 24: uint16(37575), + 25: uint16(37616), + 26: uint16(37554), + 27: uint16(38317), + 28: uint16(38321), + 29: uint16(38660), + 30: uint16(38662), + 31: uint16(38663), + 32: uint16(38665), + 33: uint16(38752), + 34: uint16(38797), + 35: uint16(38795), + 36: uint16(38799), + 37: uint16(38945), + 38: uint16(38955), + 39: uint16(38940), + 40: uint16(39091), + 41: uint16(39178), + 42: uint16(39187), + 43: uint16(39186), + 44: uint16(39192), + 45: uint16(39389), + 46: uint16(39376), + 47: uint16(39391), + 48: uint16(39387), + 49: uint16(39377), + 50: uint16(39381), + 51: uint16(39378), + 52: uint16(39385), + 53: uint16(39607), + 54: uint16(39662), + 55: uint16(39663), + 56: uint16(39719), + 57: uint16(39749), + 58: uint16(39748), + 59: uint16(39799), + 60: uint16(39791), + 61: uint16(40198), + 62: uint16(40201), + 63: uint16(40195), + 64: uint16(40617), + 65: uint16(40638), + 66: uint16(40654), + 67: uint16(22696), + 68: uint16(40786), + 69: uint16(20754), + 70: uint16(20760), + 71: uint16(20756), + 72: uint16(20752), + 73: uint16(20757), + 74: uint16(20864), + 75: uint16(20906), + 76: uint16(20957), + 77: uint16(21137), + 78: uint16(21139), + 79: uint16(21235), + 80: uint16(22105), + 81: uint16(22123), + 82: uint16(22137), + 83: uint16(22121), + 84: uint16(22116), + 85: uint16(22136), + 86: uint16(22122), + 87: uint16(22120), + 88: uint16(22117), + 89: uint16(22129), + 90: uint16(22127), + 91: uint16(22124), + 92: uint16(22114), + 93: uint16(22134), + 94: uint16(22721), + 95: uint16(22718), + 96: uint16(22727), + 97: uint16(22725), + 98: uint16(22894), + 99: uint16(23325), + 100: uint16(23348), + 101: uint16(23416), + 102: uint16(23536), + 103: uint16(23566), + 104: uint16(24394), + 105: uint16(25010), + 106: uint16(24977), + 107: uint16(25001), + 108: uint16(24970), + 109: uint16(25037), + 110: uint16(25014), + 111: uint16(25022), + 112: uint16(25034), + 113: uint16(25032), + 114: uint16(25136), + 115: uint16(25797), + 116: uint16(25793), + 117: uint16(25803), + 118: uint16(25787), + 119: uint16(25788), + 120: uint16(25818), + 121: uint16(25796), + 122: uint16(25799), + 123: uint16(25794), + 124: uint16(25805), + 125: uint16(25791), + 126: uint16(25810), + 127: uint16(25812), + 128: uint16(25790), + 129: uint16(25972), + 130: uint16(26310), + 131: uint16(26313), + 132: uint16(26297), + 133: uint16(26308), + 134: uint16(26311), + 135: uint16(26296), + 136: uint16(27197), + 137: uint16(27192), + 138: uint16(27194), + 139: uint16(27225), + 140: uint16(27243), + 141: uint16(27224), + 142: uint16(27193), + 143: uint16(27204), + 144: uint16(27234), + 145: uint16(27233), + 146: uint16(27211), + 147: uint16(27207), + 148: uint16(27189), + 149: uint16(27231), + 150: uint16(27208), + 151: uint16(27481), + 152: uint16(27511), + 153: uint16(27653), + 154: uint16(28610), + 155: uint16(28593), + 156: uint16(28577), + }, + 30: { + 0: uint16(28611), + 1: uint16(28580), + 2: uint16(28609), + 3: uint16(28583), + 4: uint16(28595), + 5: uint16(28608), + 6: uint16(28601), + 7: uint16(28598), + 8: uint16(28582), + 9: uint16(28576), + 10: uint16(28596), + 11: uint16(29118), + 12: uint16(29129), + 13: uint16(29136), + 14: uint16(29138), + 15: uint16(29128), + 16: uint16(29141), + 17: uint16(29113), + 18: uint16(29134), + 19: uint16(29145), + 20: uint16(29148), + 21: uint16(29123), + 22: uint16(29124), + 23: uint16(29544), + 24: uint16(29852), + 25: uint16(29859), + 26: uint16(29848), + 27: uint16(29855), + 28: uint16(29854), + 29: uint16(29922), + 30: uint16(29964), + 31: uint16(29965), + 32: uint16(30260), + 33: uint16(30264), + 34: uint16(30266), + 35: uint16(30439), + 36: uint16(30437), + 37: uint16(30624), + 38: uint16(30622), + 39: uint16(30623), + 40: uint16(30629), + 41: uint16(30952), + 42: uint16(30938), + 43: uint16(30956), + 44: uint16(30951), + 45: uint16(31142), + 46: uint16(31309), + 47: uint16(31310), + 48: uint16(31302), + 49: uint16(31308), + 50: uint16(31307), + 51: uint16(31418), + 52: uint16(31705), + 53: uint16(31761), + 54: uint16(31689), + 55: uint16(31716), + 56: uint16(31707), + 57: uint16(31713), + 58: uint16(31721), + 59: uint16(31718), + 60: uint16(31957), + 61: uint16(31958), + 62: uint16(32266), + 63: uint16(32273), + 64: uint16(32264), + 65: uint16(32283), + 66: uint16(32291), + 67: uint16(32286), + 68: uint16(32285), + 69: uint16(32265), + 70: uint16(32272), + 71: uint16(32633), + 72: uint16(32690), + 73: uint16(32752), + 74: uint16(32753), + 75: uint16(32750), + 76: uint16(32808), + 77: uint16(33203), + 78: uint16(33193), + 79: uint16(33192), + 80: uint16(33275), + 81: uint16(33288), + 82: uint16(33368), + 83: uint16(33369), + 84: uint16(34122), + 85: uint16(34137), + 86: uint16(34120), + 87: uint16(34152), + 88: uint16(34153), + 89: uint16(34115), + 90: uint16(34121), + 91: uint16(34157), + 92: uint16(34154), + 93: uint16(34142), + 94: uint16(34691), + 95: uint16(34719), + 96: uint16(34718), + 97: uint16(34722), + 98: uint16(34701), + 99: uint16(34913), + 100: uint16(35114), + 101: uint16(35122), + 102: uint16(35109), + 103: uint16(35115), + 104: uint16(35105), + 105: uint16(35242), + 106: uint16(35238), + 107: uint16(35558), + 108: uint16(35578), + 109: uint16(35563), + 110: uint16(35569), + 111: uint16(35584), + 112: uint16(35548), + 113: uint16(35559), + 114: uint16(35566), + 115: uint16(35582), + 116: uint16(35585), + 117: uint16(35586), + 118: uint16(35575), + 119: uint16(35565), + 120: uint16(35571), + 121: uint16(35574), + 122: uint16(35580), + 123: uint16(35947), + 124: uint16(35949), + 125: uint16(35987), + 126: uint16(36084), + 127: uint16(36420), + 128: uint16(36401), + 129: uint16(36404), + 130: uint16(36418), + 131: uint16(36409), + 132: uint16(36405), + 133: uint16(36667), + 134: uint16(36655), + 135: uint16(36664), + 136: uint16(36659), + 137: uint16(36776), + 138: uint16(36774), + 139: uint16(36981), + 140: uint16(36980), + 141: uint16(36984), + 142: uint16(36978), + 143: uint16(36988), + 144: uint16(36986), + 145: uint16(37172), + 146: uint16(37266), + 147: uint16(37664), + 148: uint16(37686), + 149: uint16(37624), + 150: uint16(37683), + 151: uint16(37679), + 152: uint16(37666), + 153: uint16(37628), + 154: uint16(37675), + 155: uint16(37636), + 156: uint16(37658), + }, + 31: { + 0: uint16(37648), + 1: uint16(37670), + 2: uint16(37665), + 3: uint16(37653), + 4: uint16(37678), + 5: uint16(37657), + 6: uint16(38331), + 7: uint16(38567), + 8: uint16(38568), + 9: uint16(38570), + 10: uint16(38613), + 11: uint16(38670), + 12: uint16(38673), + 13: uint16(38678), + 14: uint16(38669), + 15: uint16(38675), + 16: uint16(38671), + 17: uint16(38747), + 18: uint16(38748), + 19: uint16(38758), + 20: uint16(38808), + 21: uint16(38960), + 22: uint16(38968), + 23: uint16(38971), + 24: uint16(38967), + 25: uint16(38957), + 26: uint16(38969), + 27: uint16(38948), + 28: uint16(39184), + 29: uint16(39208), + 30: uint16(39198), + 31: uint16(39195), + 32: uint16(39201), + 33: uint16(39194), + 34: uint16(39405), + 35: uint16(39394), + 36: uint16(39409), + 37: uint16(39608), + 38: uint16(39612), + 39: uint16(39675), + 40: uint16(39661), + 41: uint16(39720), + 42: uint16(39825), + 43: uint16(40213), + 44: uint16(40227), + 45: uint16(40230), + 46: uint16(40232), + 47: uint16(40210), + 48: uint16(40219), + 49: uint16(40664), + 50: uint16(40660), + 51: uint16(40845), + 52: uint16(40860), + 53: uint16(20778), + 54: uint16(20767), + 55: uint16(20769), + 56: uint16(20786), + 57: uint16(21237), + 58: uint16(22158), + 59: uint16(22144), + 60: uint16(22160), + 61: uint16(22149), + 62: uint16(22151), + 63: uint16(22159), + 64: uint16(22741), + 65: uint16(22739), + 66: uint16(22737), + 67: uint16(22734), + 68: uint16(23344), + 69: uint16(23338), + 70: uint16(23332), + 71: uint16(23418), + 72: uint16(23607), + 73: uint16(23656), + 74: uint16(23996), + 75: uint16(23994), + 76: uint16(23997), + 77: uint16(23992), + 78: uint16(24171), + 79: uint16(24396), + 80: uint16(24509), + 81: uint16(25033), + 82: uint16(25026), + 83: uint16(25031), + 84: uint16(25062), + 85: uint16(25035), + 86: uint16(25138), + 87: uint16(25140), + 88: uint16(25806), + 89: uint16(25802), + 90: uint16(25816), + 91: uint16(25824), + 92: uint16(25840), + 93: uint16(25830), + 94: uint16(25836), + 95: uint16(25841), + 96: uint16(25826), + 97: uint16(25837), + 98: uint16(25986), + 99: uint16(25987), + 100: uint16(26329), + 101: uint16(26326), + 102: uint16(27264), + 103: uint16(27284), + 104: uint16(27268), + 105: uint16(27298), + 106: uint16(27292), + 107: uint16(27355), + 108: uint16(27299), + 109: uint16(27262), + 110: uint16(27287), + 111: uint16(27280), + 112: uint16(27296), + 113: uint16(27484), + 114: uint16(27566), + 115: uint16(27610), + 116: uint16(27656), + 117: uint16(28632), + 118: uint16(28657), + 119: uint16(28639), + 120: uint16(28640), + 121: uint16(28635), + 122: uint16(28644), + 123: uint16(28651), + 124: uint16(28655), + 125: uint16(28544), + 126: uint16(28652), + 127: uint16(28641), + 128: uint16(28649), + 129: uint16(28629), + 130: uint16(28654), + 131: uint16(28656), + 132: uint16(29159), + 133: uint16(29151), + 134: uint16(29166), + 135: uint16(29158), + 136: uint16(29157), + 137: uint16(29165), + 138: uint16(29164), + 139: uint16(29172), + 140: uint16(29152), + 141: uint16(29237), + 142: uint16(29254), + 143: uint16(29552), + 144: uint16(29554), + 145: uint16(29865), + 146: uint16(29872), + 147: uint16(29862), + 148: uint16(29864), + 149: uint16(30278), + 150: uint16(30274), + 151: uint16(30284), + 152: uint16(30442), + 153: uint16(30643), + 154: uint16(30634), + 155: uint16(30640), + 156: uint16(30636), + }, + 32: { + 0: uint16(30631), + 1: uint16(30637), + 2: uint16(30703), + 3: uint16(30967), + 4: uint16(30970), + 5: uint16(30964), + 6: uint16(30959), + 7: uint16(30977), + 8: uint16(31143), + 9: uint16(31146), + 10: uint16(31319), + 11: uint16(31423), + 12: uint16(31751), + 13: uint16(31757), + 14: uint16(31742), + 15: uint16(31735), + 16: uint16(31756), + 17: uint16(31712), + 18: uint16(31968), + 19: uint16(31964), + 20: uint16(31966), + 21: uint16(31970), + 22: uint16(31967), + 23: uint16(31961), + 24: uint16(31965), + 25: uint16(32302), + 26: uint16(32318), + 27: uint16(32326), + 28: uint16(32311), + 29: uint16(32306), + 30: uint16(32323), + 31: uint16(32299), + 32: uint16(32317), + 33: uint16(32305), + 34: uint16(32325), + 35: uint16(32321), + 36: uint16(32308), + 37: uint16(32313), + 38: uint16(32328), + 39: uint16(32309), + 40: uint16(32319), + 41: uint16(32303), + 42: uint16(32580), + 43: uint16(32755), + 44: uint16(32764), + 45: uint16(32881), + 46: uint16(32882), + 47: uint16(32880), + 48: uint16(32879), + 49: uint16(32883), + 50: uint16(33222), + 51: uint16(33219), + 52: uint16(33210), + 53: uint16(33218), + 54: uint16(33216), + 55: uint16(33215), + 56: uint16(33213), + 57: uint16(33225), + 58: uint16(33214), + 59: uint16(33256), + 60: uint16(33289), + 61: uint16(33393), + 62: uint16(34218), + 63: uint16(34180), + 64: uint16(34174), + 65: uint16(34204), + 66: uint16(34193), + 67: uint16(34196), + 68: uint16(34223), + 69: uint16(34203), + 70: uint16(34183), + 71: uint16(34216), + 72: uint16(34186), + 73: uint16(34407), + 74: uint16(34752), + 75: uint16(34769), + 76: uint16(34739), + 77: uint16(34770), + 78: uint16(34758), + 79: uint16(34731), + 80: uint16(34747), + 81: uint16(34746), + 82: uint16(34760), + 83: uint16(34763), + 84: uint16(35131), + 85: uint16(35126), + 86: uint16(35140), + 87: uint16(35128), + 88: uint16(35133), + 89: uint16(35244), + 90: uint16(35598), + 91: uint16(35607), + 92: uint16(35609), + 93: uint16(35611), + 94: uint16(35594), + 95: uint16(35616), + 96: uint16(35613), + 97: uint16(35588), + 98: uint16(35600), + 99: uint16(35905), + 100: uint16(35903), + 101: uint16(35955), + 102: uint16(36090), + 103: uint16(36093), + 104: uint16(36092), + 105: uint16(36088), + 106: uint16(36091), + 107: uint16(36264), + 108: uint16(36425), + 109: uint16(36427), + 110: uint16(36424), + 111: uint16(36426), + 112: uint16(36676), + 113: uint16(36670), + 114: uint16(36674), + 115: uint16(36677), + 116: uint16(36671), + 117: uint16(36991), + 118: uint16(36989), + 119: uint16(36996), + 120: uint16(36993), + 121: uint16(36994), + 122: uint16(36992), + 123: uint16(37177), + 124: uint16(37283), + 125: uint16(37278), + 126: uint16(37276), + 127: uint16(37709), + 128: uint16(37762), + 129: uint16(37672), + 130: uint16(37749), + 131: uint16(37706), + 132: uint16(37733), + 133: uint16(37707), + 134: uint16(37656), + 135: uint16(37758), + 136: uint16(37740), + 137: uint16(37723), + 138: uint16(37744), + 139: uint16(37722), + 140: uint16(37716), + 141: uint16(38346), + 142: uint16(38347), + 143: uint16(38348), + 144: uint16(38344), + 145: uint16(38342), + 146: uint16(38577), + 147: uint16(38584), + 148: uint16(38614), + 149: uint16(38684), + 150: uint16(38686), + 151: uint16(38816), + 152: uint16(38867), + 153: uint16(38982), + 154: uint16(39094), + 155: uint16(39221), + 156: uint16(39425), + }, + 33: { + 0: uint16(39423), + 1: uint16(39854), + 2: uint16(39851), + 3: uint16(39850), + 4: uint16(39853), + 5: uint16(40251), + 6: uint16(40255), + 7: uint16(40587), + 8: uint16(40655), + 9: uint16(40670), + 10: uint16(40668), + 11: uint16(40669), + 12: uint16(40667), + 13: uint16(40766), + 14: uint16(40779), + 15: uint16(21474), + 16: uint16(22165), + 17: uint16(22190), + 18: uint16(22745), + 19: uint16(22744), + 20: uint16(23352), + 21: uint16(24413), + 22: uint16(25059), + 23: uint16(25139), + 24: uint16(25844), + 25: uint16(25842), + 26: uint16(25854), + 27: uint16(25862), + 28: uint16(25850), + 29: uint16(25851), + 30: uint16(25847), + 31: uint16(26039), + 32: uint16(26332), + 33: uint16(26406), + 34: uint16(27315), + 35: uint16(27308), + 36: uint16(27331), + 37: uint16(27323), + 38: uint16(27320), + 39: uint16(27330), + 40: uint16(27310), + 41: uint16(27311), + 42: uint16(27487), + 43: uint16(27512), + 44: uint16(27567), + 45: uint16(28681), + 46: uint16(28683), + 47: uint16(28670), + 48: uint16(28678), + 49: uint16(28666), + 50: uint16(28689), + 51: uint16(28687), + 52: uint16(29179), + 53: uint16(29180), + 54: uint16(29182), + 55: uint16(29176), + 56: uint16(29559), + 57: uint16(29557), + 58: uint16(29863), + 59: uint16(29887), + 60: uint16(29973), + 61: uint16(30294), + 62: uint16(30296), + 63: uint16(30290), + 64: uint16(30653), + 65: uint16(30655), + 66: uint16(30651), + 67: uint16(30652), + 68: uint16(30990), + 69: uint16(31150), + 70: uint16(31329), + 71: uint16(31330), + 72: uint16(31328), + 73: uint16(31428), + 74: uint16(31429), + 75: uint16(31787), + 76: uint16(31783), + 77: uint16(31786), + 78: uint16(31774), + 79: uint16(31779), + 80: uint16(31777), + 81: uint16(31975), + 82: uint16(32340), + 83: uint16(32341), + 84: uint16(32350), + 85: uint16(32346), + 86: uint16(32353), + 87: uint16(32338), + 88: uint16(32345), + 89: uint16(32584), + 90: uint16(32761), + 91: uint16(32763), + 92: uint16(32887), + 93: uint16(32886), + 94: uint16(33229), + 95: uint16(33231), + 96: uint16(33290), + 97: uint16(34255), + 98: uint16(34217), + 99: uint16(34253), + 100: uint16(34256), + 101: uint16(34249), + 102: uint16(34224), + 103: uint16(34234), + 104: uint16(34233), + 105: uint16(34214), + 106: uint16(34799), + 107: uint16(34796), + 108: uint16(34802), + 109: uint16(34784), + 110: uint16(35206), + 111: uint16(35250), + 112: uint16(35316), + 113: uint16(35624), + 114: uint16(35641), + 115: uint16(35628), + 116: uint16(35627), + 117: uint16(35920), + 118: uint16(36101), + 119: uint16(36441), + 120: uint16(36451), + 121: uint16(36454), + 122: uint16(36452), + 123: uint16(36447), + 124: uint16(36437), + 125: uint16(36544), + 126: uint16(36681), + 127: uint16(36685), + 128: uint16(36999), + 129: uint16(36995), + 130: uint16(37000), + 131: uint16(37291), + 132: uint16(37292), + 133: uint16(37328), + 134: uint16(37780), + 135: uint16(37770), + 136: uint16(37782), + 137: uint16(37794), + 138: uint16(37811), + 139: uint16(37806), + 140: uint16(37804), + 141: uint16(37808), + 142: uint16(37784), + 143: uint16(37786), + 144: uint16(37783), + 145: uint16(38356), + 146: uint16(38358), + 147: uint16(38352), + 148: uint16(38357), + 149: uint16(38626), + 150: uint16(38620), + 151: uint16(38617), + 152: uint16(38619), + 153: uint16(38622), + 154: uint16(38692), + 155: uint16(38819), + 156: uint16(38822), + }, + 34: { + 0: uint16(38829), + 1: uint16(38905), + 2: uint16(38989), + 3: uint16(38991), + 4: uint16(38988), + 5: uint16(38990), + 6: uint16(38995), + 7: uint16(39098), + 8: uint16(39230), + 9: uint16(39231), + 10: uint16(39229), + 11: uint16(39214), + 12: uint16(39333), + 13: uint16(39438), + 14: uint16(39617), + 15: uint16(39683), + 16: uint16(39686), + 17: uint16(39759), + 18: uint16(39758), + 19: uint16(39757), + 20: uint16(39882), + 21: uint16(39881), + 22: uint16(39933), + 23: uint16(39880), + 24: uint16(39872), + 25: uint16(40273), + 26: uint16(40285), + 27: uint16(40288), + 28: uint16(40672), + 29: uint16(40725), + 30: uint16(40748), + 31: uint16(20787), + 32: uint16(22181), + 33: uint16(22750), + 34: uint16(22751), + 35: uint16(22754), + 36: uint16(23541), + 37: uint16(40848), + 38: uint16(24300), + 39: uint16(25074), + 40: uint16(25079), + 41: uint16(25078), + 42: uint16(25077), + 43: uint16(25856), + 44: uint16(25871), + 45: uint16(26336), + 46: uint16(26333), + 47: uint16(27365), + 48: uint16(27357), + 49: uint16(27354), + 50: uint16(27347), + 51: uint16(28699), + 52: uint16(28703), + 53: uint16(28712), + 54: uint16(28698), + 55: uint16(28701), + 56: uint16(28693), + 57: uint16(28696), + 58: uint16(29190), + 59: uint16(29197), + 60: uint16(29272), + 61: uint16(29346), + 62: uint16(29560), + 63: uint16(29562), + 64: uint16(29885), + 65: uint16(29898), + 66: uint16(29923), + 67: uint16(30087), + 68: uint16(30086), + 69: uint16(30303), + 70: uint16(30305), + 71: uint16(30663), + 72: uint16(31001), + 73: uint16(31153), + 74: uint16(31339), + 75: uint16(31337), + 76: uint16(31806), + 77: uint16(31807), + 78: uint16(31800), + 79: uint16(31805), + 80: uint16(31799), + 81: uint16(31808), + 82: uint16(32363), + 83: uint16(32365), + 84: uint16(32377), + 85: uint16(32361), + 86: uint16(32362), + 87: uint16(32645), + 88: uint16(32371), + 89: uint16(32694), + 90: uint16(32697), + 91: uint16(32696), + 92: uint16(33240), + 93: uint16(34281), + 94: uint16(34269), + 95: uint16(34282), + 96: uint16(34261), + 97: uint16(34276), + 98: uint16(34277), + 99: uint16(34295), + 100: uint16(34811), + 101: uint16(34821), + 102: uint16(34829), + 103: uint16(34809), + 104: uint16(34814), + 105: uint16(35168), + 106: uint16(35167), + 107: uint16(35158), + 108: uint16(35166), + 109: uint16(35649), + 110: uint16(35676), + 111: uint16(35672), + 112: uint16(35657), + 113: uint16(35674), + 114: uint16(35662), + 115: uint16(35663), + 116: uint16(35654), + 117: uint16(35673), + 118: uint16(36104), + 119: uint16(36106), + 120: uint16(36476), + 121: uint16(36466), + 122: uint16(36487), + 123: uint16(36470), + 124: uint16(36460), + 125: uint16(36474), + 126: uint16(36468), + 127: uint16(36692), + 128: uint16(36686), + 129: uint16(36781), + 130: uint16(37002), + 131: uint16(37003), + 132: uint16(37297), + 133: uint16(37294), + 134: uint16(37857), + 135: uint16(37841), + 136: uint16(37855), + 137: uint16(37827), + 138: uint16(37832), + 139: uint16(37852), + 140: uint16(37853), + 141: uint16(37846), + 142: uint16(37858), + 143: uint16(37837), + 144: uint16(37848), + 145: uint16(37860), + 146: uint16(37847), + 147: uint16(37864), + 148: uint16(38364), + 149: uint16(38580), + 150: uint16(38627), + 151: uint16(38698), + 152: uint16(38695), + 153: uint16(38753), + 154: uint16(38876), + 155: uint16(38907), + 156: uint16(39006), + }, + 35: { + 0: uint16(39000), + 1: uint16(39003), + 2: uint16(39100), + 3: uint16(39237), + 4: uint16(39241), + 5: uint16(39446), + 6: uint16(39449), + 7: uint16(39693), + 8: uint16(39912), + 9: uint16(39911), + 10: uint16(39894), + 11: uint16(39899), + 12: uint16(40329), + 13: uint16(40289), + 14: uint16(40306), + 15: uint16(40298), + 16: uint16(40300), + 17: uint16(40594), + 18: uint16(40599), + 19: uint16(40595), + 20: uint16(40628), + 21: uint16(21240), + 22: uint16(22184), + 23: uint16(22199), + 24: uint16(22198), + 25: uint16(22196), + 26: uint16(22204), + 27: uint16(22756), + 28: uint16(23360), + 29: uint16(23363), + 30: uint16(23421), + 31: uint16(23542), + 32: uint16(24009), + 33: uint16(25080), + 34: uint16(25082), + 35: uint16(25880), + 36: uint16(25876), + 37: uint16(25881), + 38: uint16(26342), + 39: uint16(26407), + 40: uint16(27372), + 41: uint16(28734), + 42: uint16(28720), + 43: uint16(28722), + 44: uint16(29200), + 45: uint16(29563), + 46: uint16(29903), + 47: uint16(30306), + 48: uint16(30309), + 49: uint16(31014), + 50: uint16(31018), + 51: uint16(31020), + 52: uint16(31019), + 53: uint16(31431), + 54: uint16(31478), + 55: uint16(31820), + 56: uint16(31811), + 57: uint16(31821), + 58: uint16(31983), + 59: uint16(31984), + 60: uint16(36782), + 61: uint16(32381), + 62: uint16(32380), + 63: uint16(32386), + 64: uint16(32588), + 65: uint16(32768), + 66: uint16(33242), + 67: uint16(33382), + 68: uint16(34299), + 69: uint16(34297), + 70: uint16(34321), + 71: uint16(34298), + 72: uint16(34310), + 73: uint16(34315), + 74: uint16(34311), + 75: uint16(34314), + 76: uint16(34836), + 77: uint16(34837), + 78: uint16(35172), + 79: uint16(35258), + 80: uint16(35320), + 81: uint16(35696), + 82: uint16(35692), + 83: uint16(35686), + 84: uint16(35695), + 85: uint16(35679), + 86: uint16(35691), + 87: uint16(36111), + 88: uint16(36109), + 89: uint16(36489), + 90: uint16(36481), + 91: uint16(36485), + 92: uint16(36482), + 93: uint16(37300), + 94: uint16(37323), + 95: uint16(37912), + 96: uint16(37891), + 97: uint16(37885), + 98: uint16(38369), + 99: uint16(38704), + 100: uint16(39108), + 101: uint16(39250), + 102: uint16(39249), + 103: uint16(39336), + 104: uint16(39467), + 105: uint16(39472), + 106: uint16(39479), + 107: uint16(39477), + 108: uint16(39955), + 109: uint16(39949), + 110: uint16(40569), + 111: uint16(40629), + 112: uint16(40680), + 113: uint16(40751), + 114: uint16(40799), + 115: uint16(40803), + 116: uint16(40801), + 117: uint16(20791), + 118: uint16(20792), + 119: uint16(22209), + 120: uint16(22208), + 121: uint16(22210), + 122: uint16(22804), + 123: uint16(23660), + 124: uint16(24013), + 125: uint16(25084), + 126: uint16(25086), + 127: uint16(25885), + 128: uint16(25884), + 129: uint16(26005), + 130: uint16(26345), + 131: uint16(27387), + 132: uint16(27396), + 133: uint16(27386), + 134: uint16(27570), + 135: uint16(28748), + 136: uint16(29211), + 137: uint16(29351), + 138: uint16(29910), + 139: uint16(29908), + 140: uint16(30313), + 141: uint16(30675), + 142: uint16(31824), + 143: uint16(32399), + 144: uint16(32396), + 145: uint16(32700), + 146: uint16(34327), + 147: uint16(34349), + 148: uint16(34330), + 149: uint16(34851), + 150: uint16(34850), + 151: uint16(34849), + 152: uint16(34847), + 153: uint16(35178), + 154: uint16(35180), + 155: uint16(35261), + 156: uint16(35700), + }, + 36: { + 0: uint16(35703), + 1: uint16(35709), + 2: uint16(36115), + 3: uint16(36490), + 4: uint16(36493), + 5: uint16(36491), + 6: uint16(36703), + 7: uint16(36783), + 8: uint16(37306), + 9: uint16(37934), + 10: uint16(37939), + 11: uint16(37941), + 12: uint16(37946), + 13: uint16(37944), + 14: uint16(37938), + 15: uint16(37931), + 16: uint16(38370), + 17: uint16(38712), + 18: uint16(38713), + 19: uint16(38706), + 20: uint16(38911), + 21: uint16(39015), + 22: uint16(39013), + 23: uint16(39255), + 24: uint16(39493), + 25: uint16(39491), + 26: uint16(39488), + 27: uint16(39486), + 28: uint16(39631), + 29: uint16(39764), + 30: uint16(39761), + 31: uint16(39981), + 32: uint16(39973), + 33: uint16(40367), + 34: uint16(40372), + 35: uint16(40386), + 36: uint16(40376), + 37: uint16(40605), + 38: uint16(40687), + 39: uint16(40729), + 40: uint16(40796), + 41: uint16(40806), + 42: uint16(40807), + 43: uint16(20796), + 44: uint16(20795), + 45: uint16(22216), + 46: uint16(22218), + 47: uint16(22217), + 48: uint16(23423), + 49: uint16(24020), + 50: uint16(24018), + 51: uint16(24398), + 52: uint16(25087), + 53: uint16(25892), + 54: uint16(27402), + 55: uint16(27489), + 56: uint16(28753), + 57: uint16(28760), + 58: uint16(29568), + 59: uint16(29924), + 60: uint16(30090), + 61: uint16(30318), + 62: uint16(30316), + 63: uint16(31155), + 64: uint16(31840), + 65: uint16(31839), + 66: uint16(32894), + 67: uint16(32893), + 68: uint16(33247), + 69: uint16(35186), + 70: uint16(35183), + 71: uint16(35324), + 72: uint16(35712), + 73: uint16(36118), + 74: uint16(36119), + 75: uint16(36497), + 76: uint16(36499), + 77: uint16(36705), + 78: uint16(37192), + 79: uint16(37956), + 80: uint16(37969), + 81: uint16(37970), + 82: uint16(38717), + 83: uint16(38718), + 84: uint16(38851), + 85: uint16(38849), + 86: uint16(39019), + 87: uint16(39253), + 88: uint16(39509), + 89: uint16(39501), + 90: uint16(39634), + 91: uint16(39706), + 92: uint16(40009), + 93: uint16(39985), + 94: uint16(39998), + 95: uint16(39995), + 96: uint16(40403), + 97: uint16(40407), + 98: uint16(40756), + 99: uint16(40812), + 100: uint16(40810), + 101: uint16(40852), + 102: uint16(22220), + 103: uint16(24022), + 104: uint16(25088), + 105: uint16(25891), + 106: uint16(25899), + 107: uint16(25898), + 108: uint16(26348), + 109: uint16(27408), + 110: uint16(29914), + 111: uint16(31434), + 112: uint16(31844), + 113: uint16(31843), + 114: uint16(31845), + 115: uint16(32403), + 116: uint16(32406), + 117: uint16(32404), + 118: uint16(33250), + 119: uint16(34360), + 120: uint16(34367), + 121: uint16(34865), + 122: uint16(35722), + 123: uint16(37008), + 124: uint16(37007), + 125: uint16(37987), + 126: uint16(37984), + 127: uint16(37988), + 128: uint16(38760), + 129: uint16(39023), + 130: uint16(39260), + 131: uint16(39514), + 132: uint16(39515), + 133: uint16(39511), + 134: uint16(39635), + 135: uint16(39636), + 136: uint16(39633), + 137: uint16(40020), + 138: uint16(40023), + 139: uint16(40022), + 140: uint16(40421), + 141: uint16(40607), + 142: uint16(40692), + 143: uint16(22225), + 144: uint16(22761), + 145: uint16(25900), + 146: uint16(28766), + 147: uint16(30321), + 148: uint16(30322), + 149: uint16(30679), + 150: uint16(32592), + 151: uint16(32648), + 152: uint16(34870), + 153: uint16(34873), + 154: uint16(34914), + 155: uint16(35731), + 156: uint16(35730), + }, + 37: { + 0: uint16(35734), + 1: uint16(33399), + 2: uint16(36123), + 3: uint16(37312), + 4: uint16(37994), + 5: uint16(38722), + 6: uint16(38728), + 7: uint16(38724), + 8: uint16(38854), + 9: uint16(39024), + 10: uint16(39519), + 11: uint16(39714), + 12: uint16(39768), + 13: uint16(40031), + 14: uint16(40441), + 15: uint16(40442), + 16: uint16(40572), + 17: uint16(40573), + 18: uint16(40711), + 19: uint16(40823), + 20: uint16(40818), + 21: uint16(24307), + 22: uint16(27414), + 23: uint16(28771), + 24: uint16(31852), + 25: uint16(31854), + 26: uint16(34875), + 27: uint16(35264), + 28: uint16(36513), + 29: uint16(37313), + 30: uint16(38002), + 31: uint16(38000), + 32: uint16(39025), + 33: uint16(39262), + 34: uint16(39638), + 35: uint16(39715), + 36: uint16(40652), + 37: uint16(28772), + 38: uint16(30682), + 39: uint16(35738), + 40: uint16(38007), + 41: uint16(38857), + 42: uint16(39522), + 43: uint16(39525), + 44: uint16(32412), + 45: uint16(35740), + 46: uint16(36522), + 47: uint16(37317), + 48: uint16(38013), + 49: uint16(38014), + 50: uint16(38012), + 51: uint16(40055), + 52: uint16(40056), + 53: uint16(40695), + 54: uint16(35924), + 55: uint16(38015), + 56: uint16(40474), + 57: uint16(29224), + 58: uint16(39530), + 59: uint16(39729), + 60: uint16(40475), + 61: uint16(40478), + 62: uint16(31858), + 63: uint16(9312), + 64: uint16(9313), + 65: uint16(9314), + 66: uint16(9315), + 67: uint16(9316), + 68: uint16(9317), + 69: uint16(9318), + 70: uint16(9319), + 71: uint16(9320), + 72: uint16(9321), + 73: uint16(9332), + 74: uint16(9333), + 75: uint16(9334), + 76: uint16(9335), + 77: uint16(9336), + 78: uint16(9337), + 79: uint16(9338), + 80: uint16(9339), + 81: uint16(9340), + 82: uint16(9341), + 83: uint16(8560), + 84: uint16(8561), + 85: uint16(8562), + 86: uint16(8563), + 87: uint16(8564), + 88: uint16(8565), + 89: uint16(8566), + 90: uint16(8567), + 91: uint16(8568), + 92: uint16(8569), + 93: uint16(20022), + 94: uint16(20031), + 95: uint16(20101), + 96: uint16(20128), + 97: uint16(20866), + 98: uint16(20886), + 99: uint16(20907), + 100: uint16(21241), + 101: uint16(21304), + 102: uint16(21353), + 103: uint16(21430), + 104: uint16(22794), + 105: uint16(23424), + 106: uint16(24027), + 107: uint16(24186), + 108: uint16(24191), + 109: uint16(24308), + 110: uint16(24400), + 111: uint16(24417), + 112: uint16(25908), + 113: uint16(26080), + 114: uint16(30098), + 115: uint16(30326), + 116: uint16(36789), + 117: uint16(38582), + 118: uint16(168), + 119: uint16(710), + 120: uint16(12541), + 121: uint16(12542), + 122: uint16(12445), + 123: uint16(12446), + 126: uint16(12293), + 127: uint16(12294), + 128: uint16(12295), + 129: uint16(12540), + 130: uint16(65339), + 131: uint16(65341), + 132: uint16(10045), + 133: uint16(12353), + 134: uint16(12354), + 135: uint16(12355), + 136: uint16(12356), + 137: uint16(12357), + 138: uint16(12358), + 139: uint16(12359), + 140: uint16(12360), + 141: uint16(12361), + 142: uint16(12362), + 143: uint16(12363), + 144: uint16(12364), + 145: uint16(12365), + 146: uint16(12366), + 147: uint16(12367), + 148: uint16(12368), + 149: uint16(12369), + 150: uint16(12370), + 151: uint16(12371), + 152: uint16(12372), + 153: uint16(12373), + 154: uint16(12374), + 155: uint16(12375), + 156: uint16(12376), + }, + 38: { + 0: uint16(12377), + 1: uint16(12378), + 2: uint16(12379), + 3: uint16(12380), + 4: uint16(12381), + 5: uint16(12382), + 6: uint16(12383), + 7: uint16(12384), + 8: uint16(12385), + 9: uint16(12386), + 10: uint16(12387), + 11: uint16(12388), + 12: uint16(12389), + 13: uint16(12390), + 14: uint16(12391), + 15: uint16(12392), + 16: uint16(12393), + 17: uint16(12394), + 18: uint16(12395), + 19: uint16(12396), + 20: uint16(12397), + 21: uint16(12398), + 22: uint16(12399), + 23: uint16(12400), + 24: uint16(12401), + 25: uint16(12402), + 26: uint16(12403), + 27: uint16(12404), + 28: uint16(12405), + 29: uint16(12406), + 30: uint16(12407), + 31: uint16(12408), + 32: uint16(12409), + 33: uint16(12410), + 34: uint16(12411), + 35: uint16(12412), + 36: uint16(12413), + 37: uint16(12414), + 38: uint16(12415), + 39: uint16(12416), + 40: uint16(12417), + 41: uint16(12418), + 42: uint16(12419), + 43: uint16(12420), + 44: uint16(12421), + 45: uint16(12422), + 46: uint16(12423), + 47: uint16(12424), + 48: uint16(12425), + 49: uint16(12426), + 50: uint16(12427), + 51: uint16(12428), + 52: uint16(12429), + 53: uint16(12430), + 54: uint16(12431), + 55: uint16(12432), + 56: uint16(12433), + 57: uint16(12434), + 58: uint16(12435), + 59: uint16(12449), + 60: uint16(12450), + 61: uint16(12451), + 62: uint16(12452), + 63: uint16(12453), + 64: uint16(12454), + 65: uint16(12455), + 66: uint16(12456), + 67: uint16(12457), + 68: uint16(12458), + 69: uint16(12459), + 70: uint16(12460), + 71: uint16(12461), + 72: uint16(12462), + 73: uint16(12463), + 74: uint16(12464), + 75: uint16(12465), + 76: uint16(12466), + 77: uint16(12467), + 78: uint16(12468), + 79: uint16(12469), + 80: uint16(12470), + 81: uint16(12471), + 82: uint16(12472), + 83: uint16(12473), + 84: uint16(12474), + 85: uint16(12475), + 86: uint16(12476), + 87: uint16(12477), + 88: uint16(12478), + 89: uint16(12479), + 90: uint16(12480), + 91: uint16(12481), + 92: uint16(12482), + 93: uint16(12483), + 94: uint16(12484), + 95: uint16(12485), + 96: uint16(12486), + 97: uint16(12487), + 98: uint16(12488), + 99: uint16(12489), + 100: uint16(12490), + 101: uint16(12491), + 102: uint16(12492), + 103: uint16(12493), + 104: uint16(12494), + 105: uint16(12495), + 106: uint16(12496), + 107: uint16(12497), + 108: uint16(12498), + 109: uint16(12499), + 110: uint16(12500), + 111: uint16(12501), + 112: uint16(12502), + 113: uint16(12503), + 114: uint16(12504), + 115: uint16(12505), + 116: uint16(12506), + 117: uint16(12507), + 118: uint16(12508), + 119: uint16(12509), + 120: uint16(12510), + 121: uint16(12511), + 122: uint16(12512), + 123: uint16(12513), + 124: uint16(12514), + 125: uint16(12515), + 126: uint16(12516), + 127: uint16(12517), + 128: uint16(12518), + 129: uint16(12519), + 130: uint16(12520), + 131: uint16(12521), + 132: uint16(12522), + 133: uint16(12523), + 134: uint16(12524), + 135: uint16(12525), + 136: uint16(12526), + 137: uint16(12527), + 138: uint16(12528), + 139: uint16(12529), + 140: uint16(12530), + 141: uint16(12531), + 142: uint16(12532), + 143: uint16(12533), + 144: uint16(12534), + 145: uint16(1040), + 146: uint16(1041), + 147: uint16(1042), + 148: uint16(1043), + 149: uint16(1044), + 150: uint16(1045), + 151: uint16(1025), + 152: uint16(1046), + 153: uint16(1047), + 154: uint16(1048), + 155: uint16(1049), + 156: uint16(1050), + }, + 39: { + 0: uint16(1051), + 1: uint16(1052), + 2: uint16(1053), + 3: uint16(1054), + 4: uint16(1055), + 5: uint16(1056), + 6: uint16(1057), + 7: uint16(1058), + 8: uint16(1059), + 9: uint16(1060), + 10: uint16(1061), + 11: uint16(1062), + 12: uint16(1063), + 13: uint16(1064), + 14: uint16(1065), + 15: uint16(1066), + 16: uint16(1067), + 17: uint16(1068), + 18: uint16(1069), + 19: uint16(1070), + 20: uint16(1071), + 21: uint16(1072), + 22: uint16(1073), + 23: uint16(1074), + 24: uint16(1075), + 25: uint16(1076), + 26: uint16(1077), + 27: uint16(1105), + 28: uint16(1078), + 29: uint16(1079), + 30: uint16(1080), + 31: uint16(1081), + 32: uint16(1082), + 33: uint16(1083), + 34: uint16(1084), + 35: uint16(1085), + 36: uint16(1086), + 37: uint16(1087), + 38: uint16(1088), + 39: uint16(1089), + 40: uint16(1090), + 41: uint16(1091), + 42: uint16(1092), + 43: uint16(1093), + 44: uint16(1094), + 45: uint16(1095), + 46: uint16(1096), + 47: uint16(1097), + 48: uint16(1098), + 49: uint16(1099), + 50: uint16(1100), + 51: uint16(1101), + 52: uint16(1102), + 53: uint16(1103), + 54: uint16(8679), + 55: uint16(8632), + 56: uint16(8633), + 57: uint16(12751), + 58: uint16(204), + 59: uint16(20058), + 60: uint16(138), + 61: uint16(20994), + 62: uint16(17553), + 63: uint16(40880), + 64: uint16(20872), + 65: uint16(40881), + 66: uint16(30215), + 107: uint16(65506), + 108: uint16(65508), + 109: uint16(65287), + 110: uint16(65282), + 111: uint16(12849), + 112: uint16(8470), + 113: uint16(8481), + 114: uint16(12443), + 115: uint16(12444), + 116: uint16(11904), + 117: uint16(11908), + 118: uint16(11910), + 119: uint16(11911), + 120: uint16(11912), + 121: uint16(11914), + 122: uint16(11916), + 123: uint16(11917), + 124: uint16(11925), + 125: uint16(11932), + 126: uint16(11933), + 127: uint16(11941), + 128: uint16(11943), + 129: uint16(11946), + 130: uint16(11948), + 131: uint16(11950), + 132: uint16(11958), + 133: uint16(11964), + 134: uint16(11966), + 135: uint16(11974), + 136: uint16(11978), + 137: uint16(11980), + 138: uint16(11981), + 139: uint16(11983), + 140: uint16(11990), + 141: uint16(11991), + 142: uint16(11998), + 143: uint16(12003), + 147: uint16(643), + 148: uint16(592), + 149: uint16(603), + 150: uint16(596), + 151: uint16(629), + 152: uint16(339), + 153: uint16(248), + 154: uint16(331), + 155: uint16(650), + 156: uint16(618), + }, + 40: { + 0: uint16(20034), + 1: uint16(20060), + 2: uint16(20981), + 3: uint16(21274), + 4: uint16(21378), + 5: uint16(19975), + 6: uint16(19980), + 7: uint16(20039), + 8: uint16(20109), + 9: uint16(22231), + 10: uint16(64012), + 11: uint16(23662), + 12: uint16(24435), + 13: uint16(19983), + 14: uint16(20871), + 15: uint16(19982), + 16: uint16(20014), + 17: uint16(20115), + 18: uint16(20162), + 19: uint16(20169), + 20: uint16(20168), + 21: uint16(20888), + 22: uint16(21244), + 23: uint16(21356), + 24: uint16(21433), + 25: uint16(22304), + 26: uint16(22787), + 27: uint16(22828), + 28: uint16(23568), + 29: uint16(24063), + 30: uint16(26081), + 31: uint16(27571), + 32: uint16(27596), + 33: uint16(27668), + 34: uint16(29247), + 35: uint16(20017), + 36: uint16(20028), + 37: uint16(20200), + 38: uint16(20188), + 39: uint16(20201), + 40: uint16(20193), + 41: uint16(20189), + 42: uint16(20186), + 43: uint16(21004), + 44: uint16(21276), + 45: uint16(21324), + 46: uint16(22306), + 47: uint16(22307), + 48: uint16(22807), + 49: uint16(22831), + 50: uint16(23425), + 51: uint16(23428), + 52: uint16(23570), + 53: uint16(23611), + 54: uint16(23668), + 55: uint16(23667), + 56: uint16(24068), + 57: uint16(24192), + 58: uint16(24194), + 59: uint16(24521), + 60: uint16(25097), + 61: uint16(25168), + 62: uint16(27669), + 63: uint16(27702), + 64: uint16(27715), + 65: uint16(27711), + 66: uint16(27707), + 67: uint16(29358), + 68: uint16(29360), + 69: uint16(29578), + 70: uint16(31160), + 71: uint16(32906), + 72: uint16(38430), + 73: uint16(20238), + 74: uint16(20248), + 75: uint16(20268), + 76: uint16(20213), + 77: uint16(20244), + 78: uint16(20209), + 79: uint16(20224), + 80: uint16(20215), + 81: uint16(20232), + 82: uint16(20253), + 83: uint16(20226), + 84: uint16(20229), + 85: uint16(20258), + 86: uint16(20243), + 87: uint16(20228), + 88: uint16(20212), + 89: uint16(20242), + 90: uint16(20913), + 91: uint16(21011), + 92: uint16(21001), + 93: uint16(21008), + 94: uint16(21158), + 95: uint16(21282), + 96: uint16(21279), + 97: uint16(21325), + 98: uint16(21386), + 99: uint16(21511), + 100: uint16(22241), + 101: uint16(22239), + 102: uint16(22318), + 103: uint16(22314), + 104: uint16(22324), + 105: uint16(22844), + 106: uint16(22912), + 107: uint16(22908), + 108: uint16(22917), + 109: uint16(22907), + 110: uint16(22910), + 111: uint16(22903), + 112: uint16(22911), + 113: uint16(23382), + 114: uint16(23573), + 115: uint16(23589), + 116: uint16(23676), + 117: uint16(23674), + 118: uint16(23675), + 119: uint16(23678), + 120: uint16(24031), + 121: uint16(24181), + 122: uint16(24196), + 123: uint16(24322), + 124: uint16(24346), + 125: uint16(24436), + 126: uint16(24533), + 127: uint16(24532), + 128: uint16(24527), + 129: uint16(25180), + 130: uint16(25182), + 131: uint16(25188), + 132: uint16(25185), + 133: uint16(25190), + 134: uint16(25186), + 135: uint16(25177), + 136: uint16(25184), + 137: uint16(25178), + 138: uint16(25189), + 139: uint16(26095), + 140: uint16(26094), + 141: uint16(26430), + 142: uint16(26425), + 143: uint16(26424), + 144: uint16(26427), + 145: uint16(26426), + 146: uint16(26431), + 147: uint16(26428), + 148: uint16(26419), + 149: uint16(27672), + 150: uint16(27718), + 151: uint16(27730), + 152: uint16(27740), + 153: uint16(27727), + 154: uint16(27722), + 155: uint16(27732), + 156: uint16(27723), + }, + 41: { + 0: uint16(27724), + 1: uint16(28785), + 2: uint16(29278), + 3: uint16(29364), + 4: uint16(29365), + 5: uint16(29582), + 6: uint16(29994), + 7: uint16(30335), + 8: uint16(31349), + 9: uint16(32593), + 10: uint16(33400), + 11: uint16(33404), + 12: uint16(33408), + 13: uint16(33405), + 14: uint16(33407), + 15: uint16(34381), + 16: uint16(35198), + 17: uint16(37017), + 18: uint16(37015), + 19: uint16(37016), + 20: uint16(37019), + 21: uint16(37012), + 22: uint16(38434), + 23: uint16(38436), + 24: uint16(38432), + 25: uint16(38435), + 26: uint16(20310), + 27: uint16(20283), + 28: uint16(20322), + 29: uint16(20297), + 30: uint16(20307), + 31: uint16(20324), + 32: uint16(20286), + 33: uint16(20327), + 34: uint16(20306), + 35: uint16(20319), + 36: uint16(20289), + 37: uint16(20312), + 38: uint16(20269), + 39: uint16(20275), + 40: uint16(20287), + 41: uint16(20321), + 42: uint16(20879), + 43: uint16(20921), + 44: uint16(21020), + 45: uint16(21022), + 46: uint16(21025), + 47: uint16(21165), + 48: uint16(21166), + 49: uint16(21257), + 50: uint16(21347), + 51: uint16(21362), + 52: uint16(21390), + 53: uint16(21391), + 54: uint16(21552), + 55: uint16(21559), + 56: uint16(21546), + 57: uint16(21588), + 58: uint16(21573), + 59: uint16(21529), + 60: uint16(21532), + 61: uint16(21541), + 62: uint16(21528), + 63: uint16(21565), + 64: uint16(21583), + 65: uint16(21569), + 66: uint16(21544), + 67: uint16(21540), + 68: uint16(21575), + 69: uint16(22254), + 70: uint16(22247), + 71: uint16(22245), + 72: uint16(22337), + 73: uint16(22341), + 74: uint16(22348), + 75: uint16(22345), + 76: uint16(22347), + 77: uint16(22354), + 78: uint16(22790), + 79: uint16(22848), + 80: uint16(22950), + 81: uint16(22936), + 82: uint16(22944), + 83: uint16(22935), + 84: uint16(22926), + 85: uint16(22946), + 86: uint16(22928), + 87: uint16(22927), + 88: uint16(22951), + 89: uint16(22945), + 90: uint16(23438), + 91: uint16(23442), + 92: uint16(23592), + 93: uint16(23594), + 94: uint16(23693), + 95: uint16(23695), + 96: uint16(23688), + 97: uint16(23691), + 98: uint16(23689), + 99: uint16(23698), + 100: uint16(23690), + 101: uint16(23686), + 102: uint16(23699), + 103: uint16(23701), + 104: uint16(24032), + 105: uint16(24074), + 106: uint16(24078), + 107: uint16(24203), + 108: uint16(24201), + 109: uint16(24204), + 110: uint16(24200), + 111: uint16(24205), + 112: uint16(24325), + 113: uint16(24349), + 114: uint16(24440), + 115: uint16(24438), + 116: uint16(24530), + 117: uint16(24529), + 118: uint16(24528), + 119: uint16(24557), + 120: uint16(24552), + 121: uint16(24558), + 122: uint16(24563), + 123: uint16(24545), + 124: uint16(24548), + 125: uint16(24547), + 126: uint16(24570), + 127: uint16(24559), + 128: uint16(24567), + 129: uint16(24571), + 130: uint16(24576), + 131: uint16(24564), + 132: uint16(25146), + 133: uint16(25219), + 134: uint16(25228), + 135: uint16(25230), + 136: uint16(25231), + 137: uint16(25236), + 138: uint16(25223), + 139: uint16(25201), + 140: uint16(25211), + 141: uint16(25210), + 142: uint16(25200), + 143: uint16(25217), + 144: uint16(25224), + 145: uint16(25207), + 146: uint16(25213), + 147: uint16(25202), + 148: uint16(25204), + 149: uint16(25911), + 150: uint16(26096), + 151: uint16(26100), + 152: uint16(26099), + 153: uint16(26098), + 154: uint16(26101), + 155: uint16(26437), + 156: uint16(26439), + }, + 42: { + 0: uint16(26457), + 1: uint16(26453), + 2: uint16(26444), + 3: uint16(26440), + 4: uint16(26461), + 5: uint16(26445), + 6: uint16(26458), + 7: uint16(26443), + 8: uint16(27600), + 9: uint16(27673), + 10: uint16(27674), + 11: uint16(27768), + 12: uint16(27751), + 13: uint16(27755), + 14: uint16(27780), + 15: uint16(27787), + 16: uint16(27791), + 17: uint16(27761), + 18: uint16(27759), + 19: uint16(27753), + 20: uint16(27802), + 21: uint16(27757), + 22: uint16(27783), + 23: uint16(27797), + 24: uint16(27804), + 25: uint16(27750), + 26: uint16(27763), + 27: uint16(27749), + 28: uint16(27771), + 29: uint16(27790), + 30: uint16(28788), + 31: uint16(28794), + 32: uint16(29283), + 33: uint16(29375), + 34: uint16(29373), + 35: uint16(29379), + 36: uint16(29382), + 37: uint16(29377), + 38: uint16(29370), + 39: uint16(29381), + 40: uint16(29589), + 41: uint16(29591), + 42: uint16(29587), + 43: uint16(29588), + 44: uint16(29586), + 45: uint16(30010), + 46: uint16(30009), + 47: uint16(30100), + 48: uint16(30101), + 49: uint16(30337), + 50: uint16(31037), + 51: uint16(32820), + 52: uint16(32917), + 53: uint16(32921), + 54: uint16(32912), + 55: uint16(32914), + 56: uint16(32924), + 57: uint16(33424), + 58: uint16(33423), + 59: uint16(33413), + 60: uint16(33422), + 61: uint16(33425), + 62: uint16(33427), + 63: uint16(33418), + 64: uint16(33411), + 65: uint16(33412), + 66: uint16(35960), + 67: uint16(36809), + 68: uint16(36799), + 69: uint16(37023), + 70: uint16(37025), + 71: uint16(37029), + 72: uint16(37022), + 73: uint16(37031), + 74: uint16(37024), + 75: uint16(38448), + 76: uint16(38440), + 77: uint16(38447), + 78: uint16(38445), + 79: uint16(20019), + 80: uint16(20376), + 81: uint16(20348), + 82: uint16(20357), + 83: uint16(20349), + 84: uint16(20352), + 85: uint16(20359), + 86: uint16(20342), + 87: uint16(20340), + 88: uint16(20361), + 89: uint16(20356), + 90: uint16(20343), + 91: uint16(20300), + 92: uint16(20375), + 93: uint16(20330), + 94: uint16(20378), + 95: uint16(20345), + 96: uint16(20353), + 97: uint16(20344), + 98: uint16(20368), + 99: uint16(20380), + 100: uint16(20372), + 101: uint16(20382), + 102: uint16(20370), + 103: uint16(20354), + 104: uint16(20373), + 105: uint16(20331), + 106: uint16(20334), + 107: uint16(20894), + 108: uint16(20924), + 109: uint16(20926), + 110: uint16(21045), + 111: uint16(21042), + 112: uint16(21043), + 113: uint16(21062), + 114: uint16(21041), + 115: uint16(21180), + 116: uint16(21258), + 117: uint16(21259), + 118: uint16(21308), + 119: uint16(21394), + 120: uint16(21396), + 121: uint16(21639), + 122: uint16(21631), + 123: uint16(21633), + 124: uint16(21649), + 125: uint16(21634), + 126: uint16(21640), + 127: uint16(21611), + 128: uint16(21626), + 129: uint16(21630), + 130: uint16(21605), + 131: uint16(21612), + 132: uint16(21620), + 133: uint16(21606), + 134: uint16(21645), + 135: uint16(21615), + 136: uint16(21601), + 137: uint16(21600), + 138: uint16(21656), + 139: uint16(21603), + 140: uint16(21607), + 141: uint16(21604), + 142: uint16(22263), + 143: uint16(22265), + 144: uint16(22383), + 145: uint16(22386), + 146: uint16(22381), + 147: uint16(22379), + 148: uint16(22385), + 149: uint16(22384), + 150: uint16(22390), + 151: uint16(22400), + 152: uint16(22389), + 153: uint16(22395), + 154: uint16(22387), + 155: uint16(22388), + 156: uint16(22370), + }, + 43: { + 0: uint16(22376), + 1: uint16(22397), + 2: uint16(22796), + 3: uint16(22853), + 4: uint16(22965), + 5: uint16(22970), + 6: uint16(22991), + 7: uint16(22990), + 8: uint16(22962), + 9: uint16(22988), + 10: uint16(22977), + 11: uint16(22966), + 12: uint16(22972), + 13: uint16(22979), + 14: uint16(22998), + 15: uint16(22961), + 16: uint16(22973), + 17: uint16(22976), + 18: uint16(22984), + 19: uint16(22964), + 20: uint16(22983), + 21: uint16(23394), + 22: uint16(23397), + 23: uint16(23443), + 24: uint16(23445), + 25: uint16(23620), + 26: uint16(23623), + 27: uint16(23726), + 28: uint16(23716), + 29: uint16(23712), + 30: uint16(23733), + 31: uint16(23727), + 32: uint16(23720), + 33: uint16(23724), + 34: uint16(23711), + 35: uint16(23715), + 36: uint16(23725), + 37: uint16(23714), + 38: uint16(23722), + 39: uint16(23719), + 40: uint16(23709), + 41: uint16(23717), + 42: uint16(23734), + 43: uint16(23728), + 44: uint16(23718), + 45: uint16(24087), + 46: uint16(24084), + 47: uint16(24089), + 48: uint16(24360), + 49: uint16(24354), + 50: uint16(24355), + 51: uint16(24356), + 52: uint16(24404), + 53: uint16(24450), + 54: uint16(24446), + 55: uint16(24445), + 56: uint16(24542), + 57: uint16(24549), + 58: uint16(24621), + 59: uint16(24614), + 60: uint16(24601), + 61: uint16(24626), + 62: uint16(24587), + 63: uint16(24628), + 64: uint16(24586), + 65: uint16(24599), + 66: uint16(24627), + 67: uint16(24602), + 68: uint16(24606), + 69: uint16(24620), + 70: uint16(24610), + 71: uint16(24589), + 72: uint16(24592), + 73: uint16(24622), + 74: uint16(24595), + 75: uint16(24593), + 76: uint16(24588), + 77: uint16(24585), + 78: uint16(24604), + 79: uint16(25108), + 80: uint16(25149), + 81: uint16(25261), + 82: uint16(25268), + 83: uint16(25297), + 84: uint16(25278), + 85: uint16(25258), + 86: uint16(25270), + 87: uint16(25290), + 88: uint16(25262), + 89: uint16(25267), + 90: uint16(25263), + 91: uint16(25275), + 92: uint16(25257), + 93: uint16(25264), + 94: uint16(25272), + 95: uint16(25917), + 96: uint16(26024), + 97: uint16(26043), + 98: uint16(26121), + 99: uint16(26108), + 100: uint16(26116), + 101: uint16(26130), + 102: uint16(26120), + 103: uint16(26107), + 104: uint16(26115), + 105: uint16(26123), + 106: uint16(26125), + 107: uint16(26117), + 108: uint16(26109), + 109: uint16(26129), + 110: uint16(26128), + 111: uint16(26358), + 112: uint16(26378), + 113: uint16(26501), + 114: uint16(26476), + 115: uint16(26510), + 116: uint16(26514), + 117: uint16(26486), + 118: uint16(26491), + 119: uint16(26520), + 120: uint16(26502), + 121: uint16(26500), + 122: uint16(26484), + 123: uint16(26509), + 124: uint16(26508), + 125: uint16(26490), + 126: uint16(26527), + 127: uint16(26513), + 128: uint16(26521), + 129: uint16(26499), + 130: uint16(26493), + 131: uint16(26497), + 132: uint16(26488), + 133: uint16(26489), + 134: uint16(26516), + 135: uint16(27429), + 136: uint16(27520), + 137: uint16(27518), + 138: uint16(27614), + 139: uint16(27677), + 140: uint16(27795), + 141: uint16(27884), + 142: uint16(27883), + 143: uint16(27886), + 144: uint16(27865), + 145: uint16(27830), + 146: uint16(27860), + 147: uint16(27821), + 148: uint16(27879), + 149: uint16(27831), + 150: uint16(27856), + 151: uint16(27842), + 152: uint16(27834), + 153: uint16(27843), + 154: uint16(27846), + 155: uint16(27885), + 156: uint16(27890), + }, + 44: { + 0: uint16(27858), + 1: uint16(27869), + 2: uint16(27828), + 3: uint16(27786), + 4: uint16(27805), + 5: uint16(27776), + 6: uint16(27870), + 7: uint16(27840), + 8: uint16(27952), + 9: uint16(27853), + 10: uint16(27847), + 11: uint16(27824), + 12: uint16(27897), + 13: uint16(27855), + 14: uint16(27881), + 15: uint16(27857), + 16: uint16(28820), + 17: uint16(28824), + 18: uint16(28805), + 19: uint16(28819), + 20: uint16(28806), + 21: uint16(28804), + 22: uint16(28817), + 23: uint16(28822), + 24: uint16(28802), + 25: uint16(28826), + 26: uint16(28803), + 27: uint16(29290), + 28: uint16(29398), + 29: uint16(29387), + 30: uint16(29400), + 31: uint16(29385), + 32: uint16(29404), + 33: uint16(29394), + 34: uint16(29396), + 35: uint16(29402), + 36: uint16(29388), + 37: uint16(29393), + 38: uint16(29604), + 39: uint16(29601), + 40: uint16(29613), + 41: uint16(29606), + 42: uint16(29602), + 43: uint16(29600), + 44: uint16(29612), + 45: uint16(29597), + 46: uint16(29917), + 47: uint16(29928), + 48: uint16(30015), + 49: uint16(30016), + 50: uint16(30014), + 51: uint16(30092), + 52: uint16(30104), + 53: uint16(30383), + 54: uint16(30451), + 55: uint16(30449), + 56: uint16(30448), + 57: uint16(30453), + 58: uint16(30712), + 59: uint16(30716), + 60: uint16(30713), + 61: uint16(30715), + 62: uint16(30714), + 63: uint16(30711), + 64: uint16(31042), + 65: uint16(31039), + 66: uint16(31173), + 67: uint16(31352), + 68: uint16(31355), + 69: uint16(31483), + 70: uint16(31861), + 71: uint16(31997), + 72: uint16(32821), + 73: uint16(32911), + 74: uint16(32942), + 75: uint16(32931), + 76: uint16(32952), + 77: uint16(32949), + 78: uint16(32941), + 79: uint16(33312), + 80: uint16(33440), + 81: uint16(33472), + 82: uint16(33451), + 83: uint16(33434), + 84: uint16(33432), + 85: uint16(33435), + 86: uint16(33461), + 87: uint16(33447), + 88: uint16(33454), + 89: uint16(33468), + 90: uint16(33438), + 91: uint16(33466), + 92: uint16(33460), + 93: uint16(33448), + 94: uint16(33441), + 95: uint16(33449), + 96: uint16(33474), + 97: uint16(33444), + 98: uint16(33475), + 99: uint16(33462), + 100: uint16(33442), + 101: uint16(34416), + 102: uint16(34415), + 103: uint16(34413), + 104: uint16(34414), + 105: uint16(35926), + 106: uint16(36818), + 107: uint16(36811), + 108: uint16(36819), + 109: uint16(36813), + 110: uint16(36822), + 111: uint16(36821), + 112: uint16(36823), + 113: uint16(37042), + 114: uint16(37044), + 115: uint16(37039), + 116: uint16(37043), + 117: uint16(37040), + 118: uint16(38457), + 119: uint16(38461), + 120: uint16(38460), + 121: uint16(38458), + 122: uint16(38467), + 123: uint16(20429), + 124: uint16(20421), + 125: uint16(20435), + 126: uint16(20402), + 127: uint16(20425), + 128: uint16(20427), + 129: uint16(20417), + 130: uint16(20436), + 131: uint16(20444), + 132: uint16(20441), + 133: uint16(20411), + 134: uint16(20403), + 135: uint16(20443), + 136: uint16(20423), + 137: uint16(20438), + 138: uint16(20410), + 139: uint16(20416), + 140: uint16(20409), + 141: uint16(20460), + 142: uint16(21060), + 143: uint16(21065), + 144: uint16(21184), + 145: uint16(21186), + 146: uint16(21309), + 147: uint16(21372), + 148: uint16(21399), + 149: uint16(21398), + 150: uint16(21401), + 151: uint16(21400), + 152: uint16(21690), + 153: uint16(21665), + 154: uint16(21677), + 155: uint16(21669), + 156: uint16(21711), + }, + 45: { + 0: uint16(21699), + 1: uint16(33549), + 2: uint16(21687), + 3: uint16(21678), + 4: uint16(21718), + 5: uint16(21686), + 6: uint16(21701), + 7: uint16(21702), + 8: uint16(21664), + 9: uint16(21616), + 10: uint16(21692), + 11: uint16(21666), + 12: uint16(21694), + 13: uint16(21618), + 14: uint16(21726), + 15: uint16(21680), + 16: uint16(22453), + 17: uint16(22430), + 18: uint16(22431), + 19: uint16(22436), + 20: uint16(22412), + 21: uint16(22423), + 22: uint16(22429), + 23: uint16(22427), + 24: uint16(22420), + 25: uint16(22424), + 26: uint16(22415), + 27: uint16(22425), + 28: uint16(22437), + 29: uint16(22426), + 30: uint16(22421), + 31: uint16(22772), + 32: uint16(22797), + 33: uint16(22867), + 34: uint16(23009), + 35: uint16(23006), + 36: uint16(23022), + 37: uint16(23040), + 38: uint16(23025), + 39: uint16(23005), + 40: uint16(23034), + 41: uint16(23037), + 42: uint16(23036), + 43: uint16(23030), + 44: uint16(23012), + 45: uint16(23026), + 46: uint16(23031), + 47: uint16(23003), + 48: uint16(23017), + 49: uint16(23027), + 50: uint16(23029), + 51: uint16(23008), + 52: uint16(23038), + 53: uint16(23028), + 54: uint16(23021), + 55: uint16(23464), + 56: uint16(23628), + 57: uint16(23760), + 58: uint16(23768), + 59: uint16(23756), + 60: uint16(23767), + 61: uint16(23755), + 62: uint16(23771), + 63: uint16(23774), + 64: uint16(23770), + 65: uint16(23753), + 66: uint16(23751), + 67: uint16(23754), + 68: uint16(23766), + 69: uint16(23763), + 70: uint16(23764), + 71: uint16(23759), + 72: uint16(23752), + 73: uint16(23750), + 74: uint16(23758), + 75: uint16(23775), + 76: uint16(23800), + 77: uint16(24057), + 78: uint16(24097), + 79: uint16(24098), + 80: uint16(24099), + 81: uint16(24096), + 82: uint16(24100), + 83: uint16(24240), + 84: uint16(24228), + 85: uint16(24226), + 86: uint16(24219), + 87: uint16(24227), + 88: uint16(24229), + 89: uint16(24327), + 90: uint16(24366), + 91: uint16(24406), + 92: uint16(24454), + 93: uint16(24631), + 94: uint16(24633), + 95: uint16(24660), + 96: uint16(24690), + 97: uint16(24670), + 98: uint16(24645), + 99: uint16(24659), + 100: uint16(24647), + 101: uint16(24649), + 102: uint16(24667), + 103: uint16(24652), + 104: uint16(24640), + 105: uint16(24642), + 106: uint16(24671), + 107: uint16(24612), + 108: uint16(24644), + 109: uint16(24664), + 110: uint16(24678), + 111: uint16(24686), + 112: uint16(25154), + 113: uint16(25155), + 114: uint16(25295), + 115: uint16(25357), + 116: uint16(25355), + 117: uint16(25333), + 118: uint16(25358), + 119: uint16(25347), + 120: uint16(25323), + 121: uint16(25337), + 122: uint16(25359), + 123: uint16(25356), + 124: uint16(25336), + 125: uint16(25334), + 126: uint16(25344), + 127: uint16(25363), + 128: uint16(25364), + 129: uint16(25338), + 130: uint16(25365), + 131: uint16(25339), + 132: uint16(25328), + 133: uint16(25921), + 134: uint16(25923), + 135: uint16(26026), + 136: uint16(26047), + 137: uint16(26166), + 138: uint16(26145), + 139: uint16(26162), + 140: uint16(26165), + 141: uint16(26140), + 142: uint16(26150), + 143: uint16(26146), + 144: uint16(26163), + 145: uint16(26155), + 146: uint16(26170), + 147: uint16(26141), + 148: uint16(26164), + 149: uint16(26169), + 150: uint16(26158), + 151: uint16(26383), + 152: uint16(26384), + 153: uint16(26561), + 154: uint16(26610), + 155: uint16(26568), + 156: uint16(26554), + }, + 46: { + 0: uint16(26588), + 1: uint16(26555), + 2: uint16(26616), + 3: uint16(26584), + 4: uint16(26560), + 5: uint16(26551), + 6: uint16(26565), + 7: uint16(26603), + 8: uint16(26596), + 9: uint16(26591), + 10: uint16(26549), + 11: uint16(26573), + 12: uint16(26547), + 13: uint16(26615), + 14: uint16(26614), + 15: uint16(26606), + 16: uint16(26595), + 17: uint16(26562), + 18: uint16(26553), + 19: uint16(26574), + 20: uint16(26599), + 21: uint16(26608), + 22: uint16(26546), + 23: uint16(26620), + 24: uint16(26566), + 25: uint16(26605), + 26: uint16(26572), + 27: uint16(26542), + 28: uint16(26598), + 29: uint16(26587), + 30: uint16(26618), + 31: uint16(26569), + 32: uint16(26570), + 33: uint16(26563), + 34: uint16(26602), + 35: uint16(26571), + 36: uint16(27432), + 37: uint16(27522), + 38: uint16(27524), + 39: uint16(27574), + 40: uint16(27606), + 41: uint16(27608), + 42: uint16(27616), + 43: uint16(27680), + 44: uint16(27681), + 45: uint16(27944), + 46: uint16(27956), + 47: uint16(27949), + 48: uint16(27935), + 49: uint16(27964), + 50: uint16(27967), + 51: uint16(27922), + 52: uint16(27914), + 53: uint16(27866), + 54: uint16(27955), + 55: uint16(27908), + 56: uint16(27929), + 57: uint16(27962), + 58: uint16(27930), + 59: uint16(27921), + 60: uint16(27904), + 61: uint16(27933), + 62: uint16(27970), + 63: uint16(27905), + 64: uint16(27928), + 65: uint16(27959), + 66: uint16(27907), + 67: uint16(27919), + 68: uint16(27968), + 69: uint16(27911), + 70: uint16(27936), + 71: uint16(27948), + 72: uint16(27912), + 73: uint16(27938), + 74: uint16(27913), + 75: uint16(27920), + 76: uint16(28855), + 77: uint16(28831), + 78: uint16(28862), + 79: uint16(28849), + 80: uint16(28848), + 81: uint16(28833), + 82: uint16(28852), + 83: uint16(28853), + 84: uint16(28841), + 85: uint16(29249), + 86: uint16(29257), + 87: uint16(29258), + 88: uint16(29292), + 89: uint16(29296), + 90: uint16(29299), + 91: uint16(29294), + 92: uint16(29386), + 93: uint16(29412), + 94: uint16(29416), + 95: uint16(29419), + 96: uint16(29407), + 97: uint16(29418), + 98: uint16(29414), + 99: uint16(29411), + 100: uint16(29573), + 101: uint16(29644), + 102: uint16(29634), + 103: uint16(29640), + 104: uint16(29637), + 105: uint16(29625), + 106: uint16(29622), + 107: uint16(29621), + 108: uint16(29620), + 109: uint16(29675), + 110: uint16(29631), + 111: uint16(29639), + 112: uint16(29630), + 113: uint16(29635), + 114: uint16(29638), + 115: uint16(29624), + 116: uint16(29643), + 117: uint16(29932), + 118: uint16(29934), + 119: uint16(29998), + 120: uint16(30023), + 121: uint16(30024), + 122: uint16(30119), + 123: uint16(30122), + 124: uint16(30329), + 125: uint16(30404), + 126: uint16(30472), + 127: uint16(30467), + 128: uint16(30468), + 129: uint16(30469), + 130: uint16(30474), + 131: uint16(30455), + 132: uint16(30459), + 133: uint16(30458), + 134: uint16(30695), + 135: uint16(30696), + 136: uint16(30726), + 137: uint16(30737), + 138: uint16(30738), + 139: uint16(30725), + 140: uint16(30736), + 141: uint16(30735), + 142: uint16(30734), + 143: uint16(30729), + 144: uint16(30723), + 145: uint16(30739), + 146: uint16(31050), + 147: uint16(31052), + 148: uint16(31051), + 149: uint16(31045), + 150: uint16(31044), + 151: uint16(31189), + 152: uint16(31181), + 153: uint16(31183), + 154: uint16(31190), + 155: uint16(31182), + 156: uint16(31360), + }, + 47: { + 0: uint16(31358), + 1: uint16(31441), + 2: uint16(31488), + 3: uint16(31489), + 4: uint16(31866), + 5: uint16(31864), + 6: uint16(31865), + 7: uint16(31871), + 8: uint16(31872), + 9: uint16(31873), + 10: uint16(32003), + 11: uint16(32008), + 12: uint16(32001), + 13: uint16(32600), + 14: uint16(32657), + 15: uint16(32653), + 16: uint16(32702), + 17: uint16(32775), + 18: uint16(32782), + 19: uint16(32783), + 20: uint16(32788), + 21: uint16(32823), + 22: uint16(32984), + 23: uint16(32967), + 24: uint16(32992), + 25: uint16(32977), + 26: uint16(32968), + 27: uint16(32962), + 28: uint16(32976), + 29: uint16(32965), + 30: uint16(32995), + 31: uint16(32985), + 32: uint16(32988), + 33: uint16(32970), + 34: uint16(32981), + 35: uint16(32969), + 36: uint16(32975), + 37: uint16(32983), + 38: uint16(32998), + 39: uint16(32973), + 40: uint16(33279), + 41: uint16(33313), + 42: uint16(33428), + 43: uint16(33497), + 44: uint16(33534), + 45: uint16(33529), + 46: uint16(33543), + 47: uint16(33512), + 48: uint16(33536), + 49: uint16(33493), + 50: uint16(33594), + 51: uint16(33515), + 52: uint16(33494), + 53: uint16(33524), + 54: uint16(33516), + 55: uint16(33505), + 56: uint16(33522), + 57: uint16(33525), + 58: uint16(33548), + 59: uint16(33531), + 60: uint16(33526), + 61: uint16(33520), + 62: uint16(33514), + 63: uint16(33508), + 64: uint16(33504), + 65: uint16(33530), + 66: uint16(33523), + 67: uint16(33517), + 68: uint16(34423), + 69: uint16(34420), + 70: uint16(34428), + 71: uint16(34419), + 72: uint16(34881), + 73: uint16(34894), + 74: uint16(34919), + 75: uint16(34922), + 76: uint16(34921), + 77: uint16(35283), + 78: uint16(35332), + 79: uint16(35335), + 80: uint16(36210), + 81: uint16(36835), + 82: uint16(36833), + 83: uint16(36846), + 84: uint16(36832), + 85: uint16(37105), + 86: uint16(37053), + 87: uint16(37055), + 88: uint16(37077), + 89: uint16(37061), + 90: uint16(37054), + 91: uint16(37063), + 92: uint16(37067), + 93: uint16(37064), + 94: uint16(37332), + 95: uint16(37331), + 96: uint16(38484), + 97: uint16(38479), + 98: uint16(38481), + 99: uint16(38483), + 100: uint16(38474), + 101: uint16(38478), + 102: uint16(20510), + 103: uint16(20485), + 104: uint16(20487), + 105: uint16(20499), + 106: uint16(20514), + 107: uint16(20528), + 108: uint16(20507), + 109: uint16(20469), + 110: uint16(20468), + 111: uint16(20531), + 112: uint16(20535), + 113: uint16(20524), + 114: uint16(20470), + 115: uint16(20471), + 116: uint16(20503), + 117: uint16(20508), + 118: uint16(20512), + 119: uint16(20519), + 120: uint16(20533), + 121: uint16(20527), + 122: uint16(20529), + 123: uint16(20494), + 124: uint16(20826), + 125: uint16(20884), + 126: uint16(20883), + 127: uint16(20938), + 128: uint16(20932), + 129: uint16(20933), + 130: uint16(20936), + 131: uint16(20942), + 132: uint16(21089), + 133: uint16(21082), + 134: uint16(21074), + 135: uint16(21086), + 136: uint16(21087), + 137: uint16(21077), + 138: uint16(21090), + 139: uint16(21197), + 140: uint16(21262), + 141: uint16(21406), + 142: uint16(21798), + 143: uint16(21730), + 144: uint16(21783), + 145: uint16(21778), + 146: uint16(21735), + 147: uint16(21747), + 148: uint16(21732), + 149: uint16(21786), + 150: uint16(21759), + 151: uint16(21764), + 152: uint16(21768), + 153: uint16(21739), + 154: uint16(21777), + 155: uint16(21765), + 156: uint16(21745), + }, + 48: { + 0: uint16(21770), + 1: uint16(21755), + 2: uint16(21751), + 3: uint16(21752), + 4: uint16(21728), + 5: uint16(21774), + 6: uint16(21763), + 7: uint16(21771), + 8: uint16(22273), + 9: uint16(22274), + 10: uint16(22476), + 11: uint16(22578), + 12: uint16(22485), + 13: uint16(22482), + 14: uint16(22458), + 15: uint16(22470), + 16: uint16(22461), + 17: uint16(22460), + 18: uint16(22456), + 19: uint16(22454), + 20: uint16(22463), + 21: uint16(22471), + 22: uint16(22480), + 23: uint16(22457), + 24: uint16(22465), + 25: uint16(22798), + 26: uint16(22858), + 27: uint16(23065), + 28: uint16(23062), + 29: uint16(23085), + 30: uint16(23086), + 31: uint16(23061), + 32: uint16(23055), + 33: uint16(23063), + 34: uint16(23050), + 35: uint16(23070), + 36: uint16(23091), + 37: uint16(23404), + 38: uint16(23463), + 39: uint16(23469), + 40: uint16(23468), + 41: uint16(23555), + 42: uint16(23638), + 43: uint16(23636), + 44: uint16(23788), + 45: uint16(23807), + 46: uint16(23790), + 47: uint16(23793), + 48: uint16(23799), + 49: uint16(23808), + 50: uint16(23801), + 51: uint16(24105), + 52: uint16(24104), + 53: uint16(24232), + 54: uint16(24238), + 55: uint16(24234), + 56: uint16(24236), + 57: uint16(24371), + 58: uint16(24368), + 59: uint16(24423), + 60: uint16(24669), + 61: uint16(24666), + 62: uint16(24679), + 63: uint16(24641), + 64: uint16(24738), + 65: uint16(24712), + 66: uint16(24704), + 67: uint16(24722), + 68: uint16(24705), + 69: uint16(24733), + 70: uint16(24707), + 71: uint16(24725), + 72: uint16(24731), + 73: uint16(24727), + 74: uint16(24711), + 75: uint16(24732), + 76: uint16(24718), + 77: uint16(25113), + 78: uint16(25158), + 79: uint16(25330), + 80: uint16(25360), + 81: uint16(25430), + 82: uint16(25388), + 83: uint16(25412), + 84: uint16(25413), + 85: uint16(25398), + 86: uint16(25411), + 87: uint16(25572), + 88: uint16(25401), + 89: uint16(25419), + 90: uint16(25418), + 91: uint16(25404), + 92: uint16(25385), + 93: uint16(25409), + 94: uint16(25396), + 95: uint16(25432), + 96: uint16(25428), + 97: uint16(25433), + 98: uint16(25389), + 99: uint16(25415), + 100: uint16(25395), + 101: uint16(25434), + 102: uint16(25425), + 103: uint16(25400), + 104: uint16(25431), + 105: uint16(25408), + 106: uint16(25416), + 107: uint16(25930), + 108: uint16(25926), + 109: uint16(26054), + 110: uint16(26051), + 111: uint16(26052), + 112: uint16(26050), + 113: uint16(26186), + 114: uint16(26207), + 115: uint16(26183), + 116: uint16(26193), + 117: uint16(26386), + 118: uint16(26387), + 119: uint16(26655), + 120: uint16(26650), + 121: uint16(26697), + 122: uint16(26674), + 123: uint16(26675), + 124: uint16(26683), + 125: uint16(26699), + 126: uint16(26703), + 127: uint16(26646), + 128: uint16(26673), + 129: uint16(26652), + 130: uint16(26677), + 131: uint16(26667), + 132: uint16(26669), + 133: uint16(26671), + 134: uint16(26702), + 135: uint16(26692), + 136: uint16(26676), + 137: uint16(26653), + 138: uint16(26642), + 139: uint16(26644), + 140: uint16(26662), + 141: uint16(26664), + 142: uint16(26670), + 143: uint16(26701), + 144: uint16(26682), + 145: uint16(26661), + 146: uint16(26656), + 147: uint16(27436), + 148: uint16(27439), + 149: uint16(27437), + 150: uint16(27441), + 151: uint16(27444), + 152: uint16(27501), + 153: uint16(32898), + 154: uint16(27528), + 155: uint16(27622), + 156: uint16(27620), + }, + 49: { + 0: uint16(27624), + 1: uint16(27619), + 2: uint16(27618), + 3: uint16(27623), + 4: uint16(27685), + 5: uint16(28026), + 6: uint16(28003), + 7: uint16(28004), + 8: uint16(28022), + 9: uint16(27917), + 10: uint16(28001), + 11: uint16(28050), + 12: uint16(27992), + 13: uint16(28002), + 14: uint16(28013), + 15: uint16(28015), + 16: uint16(28049), + 17: uint16(28045), + 18: uint16(28143), + 19: uint16(28031), + 20: uint16(28038), + 21: uint16(27998), + 22: uint16(28007), + 23: uint16(28000), + 24: uint16(28055), + 25: uint16(28016), + 26: uint16(28028), + 27: uint16(27999), + 28: uint16(28034), + 29: uint16(28056), + 30: uint16(27951), + 31: uint16(28008), + 32: uint16(28043), + 33: uint16(28030), + 34: uint16(28032), + 35: uint16(28036), + 36: uint16(27926), + 37: uint16(28035), + 38: uint16(28027), + 39: uint16(28029), + 40: uint16(28021), + 41: uint16(28048), + 42: uint16(28892), + 43: uint16(28883), + 44: uint16(28881), + 45: uint16(28893), + 46: uint16(28875), + 47: uint16(32569), + 48: uint16(28898), + 49: uint16(28887), + 50: uint16(28882), + 51: uint16(28894), + 52: uint16(28896), + 53: uint16(28884), + 54: uint16(28877), + 55: uint16(28869), + 56: uint16(28870), + 57: uint16(28871), + 58: uint16(28890), + 59: uint16(28878), + 60: uint16(28897), + 61: uint16(29250), + 62: uint16(29304), + 63: uint16(29303), + 64: uint16(29302), + 65: uint16(29440), + 66: uint16(29434), + 67: uint16(29428), + 68: uint16(29438), + 69: uint16(29430), + 70: uint16(29427), + 71: uint16(29435), + 72: uint16(29441), + 73: uint16(29651), + 74: uint16(29657), + 75: uint16(29669), + 76: uint16(29654), + 77: uint16(29628), + 78: uint16(29671), + 79: uint16(29667), + 80: uint16(29673), + 81: uint16(29660), + 82: uint16(29650), + 83: uint16(29659), + 84: uint16(29652), + 85: uint16(29661), + 86: uint16(29658), + 87: uint16(29655), + 88: uint16(29656), + 89: uint16(29672), + 90: uint16(29918), + 91: uint16(29919), + 92: uint16(29940), + 93: uint16(29941), + 94: uint16(29985), + 95: uint16(30043), + 96: uint16(30047), + 97: uint16(30128), + 98: uint16(30145), + 99: uint16(30139), + 100: uint16(30148), + 101: uint16(30144), + 102: uint16(30143), + 103: uint16(30134), + 104: uint16(30138), + 105: uint16(30346), + 106: uint16(30409), + 107: uint16(30493), + 108: uint16(30491), + 109: uint16(30480), + 110: uint16(30483), + 111: uint16(30482), + 112: uint16(30499), + 113: uint16(30481), + 114: uint16(30485), + 115: uint16(30489), + 116: uint16(30490), + 117: uint16(30498), + 118: uint16(30503), + 119: uint16(30755), + 120: uint16(30764), + 121: uint16(30754), + 122: uint16(30773), + 123: uint16(30767), + 124: uint16(30760), + 125: uint16(30766), + 126: uint16(30763), + 127: uint16(30753), + 128: uint16(30761), + 129: uint16(30771), + 130: uint16(30762), + 131: uint16(30769), + 132: uint16(31060), + 133: uint16(31067), + 134: uint16(31055), + 135: uint16(31068), + 136: uint16(31059), + 137: uint16(31058), + 138: uint16(31057), + 139: uint16(31211), + 140: uint16(31212), + 141: uint16(31200), + 142: uint16(31214), + 143: uint16(31213), + 144: uint16(31210), + 145: uint16(31196), + 146: uint16(31198), + 147: uint16(31197), + 148: uint16(31366), + 149: uint16(31369), + 150: uint16(31365), + 151: uint16(31371), + 152: uint16(31372), + 153: uint16(31370), + 154: uint16(31367), + 155: uint16(31448), + 156: uint16(31504), + }, + 50: { + 0: uint16(31492), + 1: uint16(31507), + 2: uint16(31493), + 3: uint16(31503), + 4: uint16(31496), + 5: uint16(31498), + 6: uint16(31502), + 7: uint16(31497), + 8: uint16(31506), + 9: uint16(31876), + 10: uint16(31889), + 11: uint16(31882), + 12: uint16(31884), + 13: uint16(31880), + 14: uint16(31885), + 15: uint16(31877), + 16: uint16(32030), + 17: uint16(32029), + 18: uint16(32017), + 19: uint16(32014), + 20: uint16(32024), + 21: uint16(32022), + 22: uint16(32019), + 23: uint16(32031), + 24: uint16(32018), + 25: uint16(32015), + 26: uint16(32012), + 27: uint16(32604), + 28: uint16(32609), + 29: uint16(32606), + 30: uint16(32608), + 31: uint16(32605), + 32: uint16(32603), + 33: uint16(32662), + 34: uint16(32658), + 35: uint16(32707), + 36: uint16(32706), + 37: uint16(32704), + 38: uint16(32790), + 39: uint16(32830), + 40: uint16(32825), + 41: uint16(33018), + 42: uint16(33010), + 43: uint16(33017), + 44: uint16(33013), + 45: uint16(33025), + 46: uint16(33019), + 47: uint16(33024), + 48: uint16(33281), + 49: uint16(33327), + 50: uint16(33317), + 51: uint16(33587), + 52: uint16(33581), + 53: uint16(33604), + 54: uint16(33561), + 55: uint16(33617), + 56: uint16(33573), + 57: uint16(33622), + 58: uint16(33599), + 59: uint16(33601), + 60: uint16(33574), + 61: uint16(33564), + 62: uint16(33570), + 63: uint16(33602), + 64: uint16(33614), + 65: uint16(33563), + 66: uint16(33578), + 67: uint16(33544), + 68: uint16(33596), + 69: uint16(33613), + 70: uint16(33558), + 71: uint16(33572), + 72: uint16(33568), + 73: uint16(33591), + 74: uint16(33583), + 75: uint16(33577), + 76: uint16(33607), + 77: uint16(33605), + 78: uint16(33612), + 79: uint16(33619), + 80: uint16(33566), + 81: uint16(33580), + 82: uint16(33611), + 83: uint16(33575), + 84: uint16(33608), + 85: uint16(34387), + 86: uint16(34386), + 87: uint16(34466), + 88: uint16(34472), + 89: uint16(34454), + 90: uint16(34445), + 91: uint16(34449), + 92: uint16(34462), + 93: uint16(34439), + 94: uint16(34455), + 95: uint16(34438), + 96: uint16(34443), + 97: uint16(34458), + 98: uint16(34437), + 99: uint16(34469), + 100: uint16(34457), + 101: uint16(34465), + 102: uint16(34471), + 103: uint16(34453), + 104: uint16(34456), + 105: uint16(34446), + 106: uint16(34461), + 107: uint16(34448), + 108: uint16(34452), + 109: uint16(34883), + 110: uint16(34884), + 111: uint16(34925), + 112: uint16(34933), + 113: uint16(34934), + 114: uint16(34930), + 115: uint16(34944), + 116: uint16(34929), + 117: uint16(34943), + 118: uint16(34927), + 119: uint16(34947), + 120: uint16(34942), + 121: uint16(34932), + 122: uint16(34940), + 123: uint16(35346), + 124: uint16(35911), + 125: uint16(35927), + 126: uint16(35963), + 127: uint16(36004), + 128: uint16(36003), + 129: uint16(36214), + 130: uint16(36216), + 131: uint16(36277), + 132: uint16(36279), + 133: uint16(36278), + 134: uint16(36561), + 135: uint16(36563), + 136: uint16(36862), + 137: uint16(36853), + 138: uint16(36866), + 139: uint16(36863), + 140: uint16(36859), + 141: uint16(36868), + 142: uint16(36860), + 143: uint16(36854), + 144: uint16(37078), + 145: uint16(37088), + 146: uint16(37081), + 147: uint16(37082), + 148: uint16(37091), + 149: uint16(37087), + 150: uint16(37093), + 151: uint16(37080), + 152: uint16(37083), + 153: uint16(37079), + 154: uint16(37084), + 155: uint16(37092), + 156: uint16(37200), + }, + 51: { + 0: uint16(37198), + 1: uint16(37199), + 2: uint16(37333), + 3: uint16(37346), + 4: uint16(37338), + 5: uint16(38492), + 6: uint16(38495), + 7: uint16(38588), + 8: uint16(39139), + 9: uint16(39647), + 10: uint16(39727), + 11: uint16(20095), + 12: uint16(20592), + 13: uint16(20586), + 14: uint16(20577), + 15: uint16(20574), + 16: uint16(20576), + 17: uint16(20563), + 18: uint16(20555), + 19: uint16(20573), + 20: uint16(20594), + 21: uint16(20552), + 22: uint16(20557), + 23: uint16(20545), + 24: uint16(20571), + 25: uint16(20554), + 26: uint16(20578), + 27: uint16(20501), + 28: uint16(20549), + 29: uint16(20575), + 30: uint16(20585), + 31: uint16(20587), + 32: uint16(20579), + 33: uint16(20580), + 34: uint16(20550), + 35: uint16(20544), + 36: uint16(20590), + 37: uint16(20595), + 38: uint16(20567), + 39: uint16(20561), + 40: uint16(20944), + 41: uint16(21099), + 42: uint16(21101), + 43: uint16(21100), + 44: uint16(21102), + 45: uint16(21206), + 46: uint16(21203), + 47: uint16(21293), + 48: uint16(21404), + 49: uint16(21877), + 50: uint16(21878), + 51: uint16(21820), + 52: uint16(21837), + 53: uint16(21840), + 54: uint16(21812), + 55: uint16(21802), + 56: uint16(21841), + 57: uint16(21858), + 58: uint16(21814), + 59: uint16(21813), + 60: uint16(21808), + 61: uint16(21842), + 62: uint16(21829), + 63: uint16(21772), + 64: uint16(21810), + 65: uint16(21861), + 66: uint16(21838), + 67: uint16(21817), + 68: uint16(21832), + 69: uint16(21805), + 70: uint16(21819), + 71: uint16(21824), + 72: uint16(21835), + 73: uint16(22282), + 74: uint16(22279), + 75: uint16(22523), + 76: uint16(22548), + 77: uint16(22498), + 78: uint16(22518), + 79: uint16(22492), + 80: uint16(22516), + 81: uint16(22528), + 82: uint16(22509), + 83: uint16(22525), + 84: uint16(22536), + 85: uint16(22520), + 86: uint16(22539), + 87: uint16(22515), + 88: uint16(22479), + 89: uint16(22535), + 90: uint16(22510), + 91: uint16(22499), + 92: uint16(22514), + 93: uint16(22501), + 94: uint16(22508), + 95: uint16(22497), + 96: uint16(22542), + 97: uint16(22524), + 98: uint16(22544), + 99: uint16(22503), + 100: uint16(22529), + 101: uint16(22540), + 102: uint16(22513), + 103: uint16(22505), + 104: uint16(22512), + 105: uint16(22541), + 106: uint16(22532), + 107: uint16(22876), + 108: uint16(23136), + 109: uint16(23128), + 110: uint16(23125), + 111: uint16(23143), + 112: uint16(23134), + 113: uint16(23096), + 114: uint16(23093), + 115: uint16(23149), + 116: uint16(23120), + 117: uint16(23135), + 118: uint16(23141), + 119: uint16(23148), + 120: uint16(23123), + 121: uint16(23140), + 122: uint16(23127), + 123: uint16(23107), + 124: uint16(23133), + 125: uint16(23122), + 126: uint16(23108), + 127: uint16(23131), + 128: uint16(23112), + 129: uint16(23182), + 130: uint16(23102), + 131: uint16(23117), + 132: uint16(23097), + 133: uint16(23116), + 134: uint16(23152), + 135: uint16(23145), + 136: uint16(23111), + 137: uint16(23121), + 138: uint16(23126), + 139: uint16(23106), + 140: uint16(23132), + 141: uint16(23410), + 142: uint16(23406), + 143: uint16(23489), + 144: uint16(23488), + 145: uint16(23641), + 146: uint16(23838), + 147: uint16(23819), + 148: uint16(23837), + 149: uint16(23834), + 150: uint16(23840), + 151: uint16(23820), + 152: uint16(23848), + 153: uint16(23821), + 154: uint16(23846), + 155: uint16(23845), + 156: uint16(23823), + }, + 52: { + 0: uint16(23856), + 1: uint16(23826), + 2: uint16(23843), + 3: uint16(23839), + 4: uint16(23854), + 5: uint16(24126), + 6: uint16(24116), + 7: uint16(24241), + 8: uint16(24244), + 9: uint16(24249), + 10: uint16(24242), + 11: uint16(24243), + 12: uint16(24374), + 13: uint16(24376), + 14: uint16(24475), + 15: uint16(24470), + 16: uint16(24479), + 17: uint16(24714), + 18: uint16(24720), + 19: uint16(24710), + 20: uint16(24766), + 21: uint16(24752), + 22: uint16(24762), + 23: uint16(24787), + 24: uint16(24788), + 25: uint16(24783), + 26: uint16(24804), + 27: uint16(24793), + 28: uint16(24797), + 29: uint16(24776), + 30: uint16(24753), + 31: uint16(24795), + 32: uint16(24759), + 33: uint16(24778), + 34: uint16(24767), + 35: uint16(24771), + 36: uint16(24781), + 37: uint16(24768), + 38: uint16(25394), + 39: uint16(25445), + 40: uint16(25482), + 41: uint16(25474), + 42: uint16(25469), + 43: uint16(25533), + 44: uint16(25502), + 45: uint16(25517), + 46: uint16(25501), + 47: uint16(25495), + 48: uint16(25515), + 49: uint16(25486), + 50: uint16(25455), + 51: uint16(25479), + 52: uint16(25488), + 53: uint16(25454), + 54: uint16(25519), + 55: uint16(25461), + 56: uint16(25500), + 57: uint16(25453), + 58: uint16(25518), + 59: uint16(25468), + 60: uint16(25508), + 61: uint16(25403), + 62: uint16(25503), + 63: uint16(25464), + 64: uint16(25477), + 65: uint16(25473), + 66: uint16(25489), + 67: uint16(25485), + 68: uint16(25456), + 69: uint16(25939), + 70: uint16(26061), + 71: uint16(26213), + 72: uint16(26209), + 73: uint16(26203), + 74: uint16(26201), + 75: uint16(26204), + 76: uint16(26210), + 77: uint16(26392), + 78: uint16(26745), + 79: uint16(26759), + 80: uint16(26768), + 81: uint16(26780), + 82: uint16(26733), + 83: uint16(26734), + 84: uint16(26798), + 85: uint16(26795), + 86: uint16(26966), + 87: uint16(26735), + 88: uint16(26787), + 89: uint16(26796), + 90: uint16(26793), + 91: uint16(26741), + 92: uint16(26740), + 93: uint16(26802), + 94: uint16(26767), + 95: uint16(26743), + 96: uint16(26770), + 97: uint16(26748), + 98: uint16(26731), + 99: uint16(26738), + 100: uint16(26794), + 101: uint16(26752), + 102: uint16(26737), + 103: uint16(26750), + 104: uint16(26779), + 105: uint16(26774), + 106: uint16(26763), + 107: uint16(26784), + 108: uint16(26761), + 109: uint16(26788), + 110: uint16(26744), + 111: uint16(26747), + 112: uint16(26769), + 113: uint16(26764), + 114: uint16(26762), + 115: uint16(26749), + 116: uint16(27446), + 117: uint16(27443), + 118: uint16(27447), + 119: uint16(27448), + 120: uint16(27537), + 121: uint16(27535), + 122: uint16(27533), + 123: uint16(27534), + 124: uint16(27532), + 125: uint16(27690), + 126: uint16(28096), + 127: uint16(28075), + 128: uint16(28084), + 129: uint16(28083), + 130: uint16(28276), + 131: uint16(28076), + 132: uint16(28137), + 133: uint16(28130), + 134: uint16(28087), + 135: uint16(28150), + 136: uint16(28116), + 137: uint16(28160), + 138: uint16(28104), + 139: uint16(28128), + 140: uint16(28127), + 141: uint16(28118), + 142: uint16(28094), + 143: uint16(28133), + 144: uint16(28124), + 145: uint16(28125), + 146: uint16(28123), + 147: uint16(28148), + 148: uint16(28106), + 149: uint16(28093), + 150: uint16(28141), + 151: uint16(28144), + 152: uint16(28090), + 153: uint16(28117), + 154: uint16(28098), + 155: uint16(28111), + 156: uint16(28105), + }, + 53: { + 0: uint16(28112), + 1: uint16(28146), + 2: uint16(28115), + 3: uint16(28157), + 4: uint16(28119), + 5: uint16(28109), + 6: uint16(28131), + 7: uint16(28091), + 8: uint16(28922), + 9: uint16(28941), + 10: uint16(28919), + 11: uint16(28951), + 12: uint16(28916), + 13: uint16(28940), + 14: uint16(28912), + 15: uint16(28932), + 16: uint16(28915), + 17: uint16(28944), + 18: uint16(28924), + 19: uint16(28927), + 20: uint16(28934), + 21: uint16(28947), + 22: uint16(28928), + 23: uint16(28920), + 24: uint16(28918), + 25: uint16(28939), + 26: uint16(28930), + 27: uint16(28942), + 28: uint16(29310), + 29: uint16(29307), + 30: uint16(29308), + 31: uint16(29311), + 32: uint16(29469), + 33: uint16(29463), + 34: uint16(29447), + 35: uint16(29457), + 36: uint16(29464), + 37: uint16(29450), + 38: uint16(29448), + 39: uint16(29439), + 40: uint16(29455), + 41: uint16(29470), + 42: uint16(29576), + 43: uint16(29686), + 44: uint16(29688), + 45: uint16(29685), + 46: uint16(29700), + 47: uint16(29697), + 48: uint16(29693), + 49: uint16(29703), + 50: uint16(29696), + 51: uint16(29690), + 52: uint16(29692), + 53: uint16(29695), + 54: uint16(29708), + 55: uint16(29707), + 56: uint16(29684), + 57: uint16(29704), + 58: uint16(30052), + 59: uint16(30051), + 60: uint16(30158), + 61: uint16(30162), + 62: uint16(30159), + 63: uint16(30155), + 64: uint16(30156), + 65: uint16(30161), + 66: uint16(30160), + 67: uint16(30351), + 68: uint16(30345), + 69: uint16(30419), + 70: uint16(30521), + 71: uint16(30511), + 72: uint16(30509), + 73: uint16(30513), + 74: uint16(30514), + 75: uint16(30516), + 76: uint16(30515), + 77: uint16(30525), + 78: uint16(30501), + 79: uint16(30523), + 80: uint16(30517), + 81: uint16(30792), + 82: uint16(30802), + 83: uint16(30793), + 84: uint16(30797), + 85: uint16(30794), + 86: uint16(30796), + 87: uint16(30758), + 88: uint16(30789), + 89: uint16(30800), + 90: uint16(31076), + 91: uint16(31079), + 92: uint16(31081), + 93: uint16(31082), + 94: uint16(31075), + 95: uint16(31083), + 96: uint16(31073), + 97: uint16(31163), + 98: uint16(31226), + 99: uint16(31224), + 100: uint16(31222), + 101: uint16(31223), + 102: uint16(31375), + 103: uint16(31380), + 104: uint16(31376), + 105: uint16(31541), + 106: uint16(31559), + 107: uint16(31540), + 108: uint16(31525), + 109: uint16(31536), + 110: uint16(31522), + 111: uint16(31524), + 112: uint16(31539), + 113: uint16(31512), + 114: uint16(31530), + 115: uint16(31517), + 116: uint16(31537), + 117: uint16(31531), + 118: uint16(31533), + 119: uint16(31535), + 120: uint16(31538), + 121: uint16(31544), + 122: uint16(31514), + 123: uint16(31523), + 124: uint16(31892), + 125: uint16(31896), + 126: uint16(31894), + 127: uint16(31907), + 128: uint16(32053), + 129: uint16(32061), + 130: uint16(32056), + 131: uint16(32054), + 132: uint16(32058), + 133: uint16(32069), + 134: uint16(32044), + 135: uint16(32041), + 136: uint16(32065), + 137: uint16(32071), + 138: uint16(32062), + 139: uint16(32063), + 140: uint16(32074), + 141: uint16(32059), + 142: uint16(32040), + 143: uint16(32611), + 144: uint16(32661), + 145: uint16(32668), + 146: uint16(32669), + 147: uint16(32667), + 148: uint16(32714), + 149: uint16(32715), + 150: uint16(32717), + 151: uint16(32720), + 152: uint16(32721), + 153: uint16(32711), + 154: uint16(32719), + 155: uint16(32713), + 156: uint16(32799), + }, + 54: { + 0: uint16(32798), + 1: uint16(32795), + 2: uint16(32839), + 3: uint16(32835), + 4: uint16(32840), + 5: uint16(33048), + 6: uint16(33061), + 7: uint16(33049), + 8: uint16(33051), + 9: uint16(33069), + 10: uint16(33055), + 11: uint16(33068), + 12: uint16(33054), + 13: uint16(33057), + 14: uint16(33045), + 15: uint16(33063), + 16: uint16(33053), + 17: uint16(33058), + 18: uint16(33297), + 19: uint16(33336), + 20: uint16(33331), + 21: uint16(33338), + 22: uint16(33332), + 23: uint16(33330), + 24: uint16(33396), + 25: uint16(33680), + 26: uint16(33699), + 27: uint16(33704), + 28: uint16(33677), + 29: uint16(33658), + 30: uint16(33651), + 31: uint16(33700), + 32: uint16(33652), + 33: uint16(33679), + 34: uint16(33665), + 35: uint16(33685), + 36: uint16(33689), + 37: uint16(33653), + 38: uint16(33684), + 39: uint16(33705), + 40: uint16(33661), + 41: uint16(33667), + 42: uint16(33676), + 43: uint16(33693), + 44: uint16(33691), + 45: uint16(33706), + 46: uint16(33675), + 47: uint16(33662), + 48: uint16(33701), + 49: uint16(33711), + 50: uint16(33672), + 51: uint16(33687), + 52: uint16(33712), + 53: uint16(33663), + 54: uint16(33702), + 55: uint16(33671), + 56: uint16(33710), + 57: uint16(33654), + 58: uint16(33690), + 59: uint16(34393), + 60: uint16(34390), + 61: uint16(34495), + 62: uint16(34487), + 63: uint16(34498), + 64: uint16(34497), + 65: uint16(34501), + 66: uint16(34490), + 67: uint16(34480), + 68: uint16(34504), + 69: uint16(34489), + 70: uint16(34483), + 71: uint16(34488), + 72: uint16(34508), + 73: uint16(34484), + 74: uint16(34491), + 75: uint16(34492), + 76: uint16(34499), + 77: uint16(34493), + 78: uint16(34494), + 79: uint16(34898), + 80: uint16(34953), + 81: uint16(34965), + 82: uint16(34984), + 83: uint16(34978), + 84: uint16(34986), + 85: uint16(34970), + 86: uint16(34961), + 87: uint16(34977), + 88: uint16(34975), + 89: uint16(34968), + 90: uint16(34983), + 91: uint16(34969), + 92: uint16(34971), + 93: uint16(34967), + 94: uint16(34980), + 95: uint16(34988), + 96: uint16(34956), + 97: uint16(34963), + 98: uint16(34958), + 99: uint16(35202), + 100: uint16(35286), + 101: uint16(35289), + 102: uint16(35285), + 103: uint16(35376), + 104: uint16(35367), + 105: uint16(35372), + 106: uint16(35358), + 107: uint16(35897), + 108: uint16(35899), + 109: uint16(35932), + 110: uint16(35933), + 111: uint16(35965), + 112: uint16(36005), + 113: uint16(36221), + 114: uint16(36219), + 115: uint16(36217), + 116: uint16(36284), + 117: uint16(36290), + 118: uint16(36281), + 119: uint16(36287), + 120: uint16(36289), + 121: uint16(36568), + 122: uint16(36574), + 123: uint16(36573), + 124: uint16(36572), + 125: uint16(36567), + 126: uint16(36576), + 127: uint16(36577), + 128: uint16(36900), + 129: uint16(36875), + 130: uint16(36881), + 131: uint16(36892), + 132: uint16(36876), + 133: uint16(36897), + 134: uint16(37103), + 135: uint16(37098), + 136: uint16(37104), + 137: uint16(37108), + 138: uint16(37106), + 139: uint16(37107), + 140: uint16(37076), + 141: uint16(37099), + 142: uint16(37100), + 143: uint16(37097), + 144: uint16(37206), + 145: uint16(37208), + 146: uint16(37210), + 147: uint16(37203), + 148: uint16(37205), + 149: uint16(37356), + 150: uint16(37364), + 151: uint16(37361), + 152: uint16(37363), + 153: uint16(37368), + 154: uint16(37348), + 155: uint16(37369), + 156: uint16(37354), + }, + 55: { + 0: uint16(37355), + 1: uint16(37367), + 2: uint16(37352), + 3: uint16(37358), + 4: uint16(38266), + 5: uint16(38278), + 6: uint16(38280), + 7: uint16(38524), + 8: uint16(38509), + 9: uint16(38507), + 10: uint16(38513), + 11: uint16(38511), + 12: uint16(38591), + 13: uint16(38762), + 14: uint16(38916), + 15: uint16(39141), + 16: uint16(39319), + 17: uint16(20635), + 18: uint16(20629), + 19: uint16(20628), + 20: uint16(20638), + 21: uint16(20619), + 22: uint16(20643), + 23: uint16(20611), + 24: uint16(20620), + 25: uint16(20622), + 26: uint16(20637), + 27: uint16(20584), + 28: uint16(20636), + 29: uint16(20626), + 30: uint16(20610), + 31: uint16(20615), + 32: uint16(20831), + 33: uint16(20948), + 34: uint16(21266), + 35: uint16(21265), + 36: uint16(21412), + 37: uint16(21415), + 38: uint16(21905), + 39: uint16(21928), + 40: uint16(21925), + 41: uint16(21933), + 42: uint16(21879), + 43: uint16(22085), + 44: uint16(21922), + 45: uint16(21907), + 46: uint16(21896), + 47: uint16(21903), + 48: uint16(21941), + 49: uint16(21889), + 50: uint16(21923), + 51: uint16(21906), + 52: uint16(21924), + 53: uint16(21885), + 54: uint16(21900), + 55: uint16(21926), + 56: uint16(21887), + 57: uint16(21909), + 58: uint16(21921), + 59: uint16(21902), + 60: uint16(22284), + 61: uint16(22569), + 62: uint16(22583), + 63: uint16(22553), + 64: uint16(22558), + 65: uint16(22567), + 66: uint16(22563), + 67: uint16(22568), + 68: uint16(22517), + 69: uint16(22600), + 70: uint16(22565), + 71: uint16(22556), + 72: uint16(22555), + 73: uint16(22579), + 74: uint16(22591), + 75: uint16(22582), + 76: uint16(22574), + 77: uint16(22585), + 78: uint16(22584), + 79: uint16(22573), + 80: uint16(22572), + 81: uint16(22587), + 82: uint16(22881), + 83: uint16(23215), + 84: uint16(23188), + 85: uint16(23199), + 86: uint16(23162), + 87: uint16(23202), + 88: uint16(23198), + 89: uint16(23160), + 90: uint16(23206), + 91: uint16(23164), + 92: uint16(23205), + 93: uint16(23212), + 94: uint16(23189), + 95: uint16(23214), + 96: uint16(23095), + 97: uint16(23172), + 98: uint16(23178), + 99: uint16(23191), + 100: uint16(23171), + 101: uint16(23179), + 102: uint16(23209), + 103: uint16(23163), + 104: uint16(23165), + 105: uint16(23180), + 106: uint16(23196), + 107: uint16(23183), + 108: uint16(23187), + 109: uint16(23197), + 110: uint16(23530), + 111: uint16(23501), + 112: uint16(23499), + 113: uint16(23508), + 114: uint16(23505), + 115: uint16(23498), + 116: uint16(23502), + 117: uint16(23564), + 118: uint16(23600), + 119: uint16(23863), + 120: uint16(23875), + 121: uint16(23915), + 122: uint16(23873), + 123: uint16(23883), + 124: uint16(23871), + 125: uint16(23861), + 126: uint16(23889), + 127: uint16(23886), + 128: uint16(23893), + 129: uint16(23859), + 130: uint16(23866), + 131: uint16(23890), + 132: uint16(23869), + 133: uint16(23857), + 134: uint16(23897), + 135: uint16(23874), + 136: uint16(23865), + 137: uint16(23881), + 138: uint16(23864), + 139: uint16(23868), + 140: uint16(23858), + 141: uint16(23862), + 142: uint16(23872), + 143: uint16(23877), + 144: uint16(24132), + 145: uint16(24129), + 146: uint16(24408), + 147: uint16(24486), + 148: uint16(24485), + 149: uint16(24491), + 150: uint16(24777), + 151: uint16(24761), + 152: uint16(24780), + 153: uint16(24802), + 154: uint16(24782), + 155: uint16(24772), + 156: uint16(24852), + }, + 56: { + 0: uint16(24818), + 1: uint16(24842), + 2: uint16(24854), + 3: uint16(24837), + 4: uint16(24821), + 5: uint16(24851), + 6: uint16(24824), + 7: uint16(24828), + 8: uint16(24830), + 9: uint16(24769), + 10: uint16(24835), + 11: uint16(24856), + 12: uint16(24861), + 13: uint16(24848), + 14: uint16(24831), + 15: uint16(24836), + 16: uint16(24843), + 17: uint16(25162), + 18: uint16(25492), + 19: uint16(25521), + 20: uint16(25520), + 21: uint16(25550), + 22: uint16(25573), + 23: uint16(25576), + 24: uint16(25583), + 25: uint16(25539), + 26: uint16(25757), + 27: uint16(25587), + 28: uint16(25546), + 29: uint16(25568), + 30: uint16(25590), + 31: uint16(25557), + 32: uint16(25586), + 33: uint16(25589), + 34: uint16(25697), + 35: uint16(25567), + 36: uint16(25534), + 37: uint16(25565), + 38: uint16(25564), + 39: uint16(25540), + 40: uint16(25560), + 41: uint16(25555), + 42: uint16(25538), + 43: uint16(25543), + 44: uint16(25548), + 45: uint16(25547), + 46: uint16(25544), + 47: uint16(25584), + 48: uint16(25559), + 49: uint16(25561), + 50: uint16(25906), + 51: uint16(25959), + 52: uint16(25962), + 53: uint16(25956), + 54: uint16(25948), + 55: uint16(25960), + 56: uint16(25957), + 57: uint16(25996), + 58: uint16(26013), + 59: uint16(26014), + 60: uint16(26030), + 61: uint16(26064), + 62: uint16(26066), + 63: uint16(26236), + 64: uint16(26220), + 65: uint16(26235), + 66: uint16(26240), + 67: uint16(26225), + 68: uint16(26233), + 69: uint16(26218), + 70: uint16(26226), + 71: uint16(26369), + 72: uint16(26892), + 73: uint16(26835), + 74: uint16(26884), + 75: uint16(26844), + 76: uint16(26922), + 77: uint16(26860), + 78: uint16(26858), + 79: uint16(26865), + 80: uint16(26895), + 81: uint16(26838), + 82: uint16(26871), + 83: uint16(26859), + 84: uint16(26852), + 85: uint16(26870), + 86: uint16(26899), + 87: uint16(26896), + 88: uint16(26867), + 89: uint16(26849), + 90: uint16(26887), + 91: uint16(26828), + 92: uint16(26888), + 93: uint16(26992), + 94: uint16(26804), + 95: uint16(26897), + 96: uint16(26863), + 97: uint16(26822), + 98: uint16(26900), + 99: uint16(26872), + 100: uint16(26832), + 101: uint16(26877), + 102: uint16(26876), + 103: uint16(26856), + 104: uint16(26891), + 105: uint16(26890), + 106: uint16(26903), + 107: uint16(26830), + 108: uint16(26824), + 109: uint16(26845), + 110: uint16(26846), + 111: uint16(26854), + 112: uint16(26868), + 113: uint16(26833), + 114: uint16(26886), + 115: uint16(26836), + 116: uint16(26857), + 117: uint16(26901), + 118: uint16(26917), + 119: uint16(26823), + 120: uint16(27449), + 121: uint16(27451), + 122: uint16(27455), + 123: uint16(27452), + 124: uint16(27540), + 125: uint16(27543), + 126: uint16(27545), + 127: uint16(27541), + 128: uint16(27581), + 129: uint16(27632), + 130: uint16(27634), + 131: uint16(27635), + 132: uint16(27696), + 133: uint16(28156), + 134: uint16(28230), + 135: uint16(28231), + 136: uint16(28191), + 137: uint16(28233), + 138: uint16(28296), + 139: uint16(28220), + 140: uint16(28221), + 141: uint16(28229), + 142: uint16(28258), + 143: uint16(28203), + 144: uint16(28223), + 145: uint16(28225), + 146: uint16(28253), + 147: uint16(28275), + 148: uint16(28188), + 149: uint16(28211), + 150: uint16(28235), + 151: uint16(28224), + 152: uint16(28241), + 153: uint16(28219), + 154: uint16(28163), + 155: uint16(28206), + 156: uint16(28254), + }, + 57: { + 0: uint16(28264), + 1: uint16(28252), + 2: uint16(28257), + 3: uint16(28209), + 4: uint16(28200), + 5: uint16(28256), + 6: uint16(28273), + 7: uint16(28267), + 8: uint16(28217), + 9: uint16(28194), + 10: uint16(28208), + 11: uint16(28243), + 12: uint16(28261), + 13: uint16(28199), + 14: uint16(28280), + 15: uint16(28260), + 16: uint16(28279), + 17: uint16(28245), + 18: uint16(28281), + 19: uint16(28242), + 20: uint16(28262), + 21: uint16(28213), + 22: uint16(28214), + 23: uint16(28250), + 24: uint16(28960), + 25: uint16(28958), + 26: uint16(28975), + 27: uint16(28923), + 28: uint16(28974), + 29: uint16(28977), + 30: uint16(28963), + 31: uint16(28965), + 32: uint16(28962), + 33: uint16(28978), + 34: uint16(28959), + 35: uint16(28968), + 36: uint16(28986), + 37: uint16(28955), + 38: uint16(29259), + 39: uint16(29274), + 40: uint16(29320), + 41: uint16(29321), + 42: uint16(29318), + 43: uint16(29317), + 44: uint16(29323), + 45: uint16(29458), + 46: uint16(29451), + 47: uint16(29488), + 48: uint16(29474), + 49: uint16(29489), + 50: uint16(29491), + 51: uint16(29479), + 52: uint16(29490), + 53: uint16(29485), + 54: uint16(29478), + 55: uint16(29475), + 56: uint16(29493), + 57: uint16(29452), + 58: uint16(29742), + 59: uint16(29740), + 60: uint16(29744), + 61: uint16(29739), + 62: uint16(29718), + 63: uint16(29722), + 64: uint16(29729), + 65: uint16(29741), + 66: uint16(29745), + 67: uint16(29732), + 68: uint16(29731), + 69: uint16(29725), + 70: uint16(29737), + 71: uint16(29728), + 72: uint16(29746), + 73: uint16(29947), + 74: uint16(29999), + 75: uint16(30063), + 76: uint16(30060), + 77: uint16(30183), + 78: uint16(30170), + 79: uint16(30177), + 80: uint16(30182), + 81: uint16(30173), + 82: uint16(30175), + 83: uint16(30180), + 84: uint16(30167), + 85: uint16(30357), + 86: uint16(30354), + 87: uint16(30426), + 88: uint16(30534), + 89: uint16(30535), + 90: uint16(30532), + 91: uint16(30541), + 92: uint16(30533), + 93: uint16(30538), + 94: uint16(30542), + 95: uint16(30539), + 96: uint16(30540), + 97: uint16(30686), + 98: uint16(30700), + 99: uint16(30816), + 100: uint16(30820), + 101: uint16(30821), + 102: uint16(30812), + 103: uint16(30829), + 104: uint16(30833), + 105: uint16(30826), + 106: uint16(30830), + 107: uint16(30832), + 108: uint16(30825), + 109: uint16(30824), + 110: uint16(30814), + 111: uint16(30818), + 112: uint16(31092), + 113: uint16(31091), + 114: uint16(31090), + 115: uint16(31088), + 116: uint16(31234), + 117: uint16(31242), + 118: uint16(31235), + 119: uint16(31244), + 120: uint16(31236), + 121: uint16(31385), + 122: uint16(31462), + 123: uint16(31460), + 124: uint16(31562), + 125: uint16(31547), + 126: uint16(31556), + 127: uint16(31560), + 128: uint16(31564), + 129: uint16(31566), + 130: uint16(31552), + 131: uint16(31576), + 132: uint16(31557), + 133: uint16(31906), + 134: uint16(31902), + 135: uint16(31912), + 136: uint16(31905), + 137: uint16(32088), + 138: uint16(32111), + 139: uint16(32099), + 140: uint16(32083), + 141: uint16(32086), + 142: uint16(32103), + 143: uint16(32106), + 144: uint16(32079), + 145: uint16(32109), + 146: uint16(32092), + 147: uint16(32107), + 148: uint16(32082), + 149: uint16(32084), + 150: uint16(32105), + 151: uint16(32081), + 152: uint16(32095), + 153: uint16(32078), + 154: uint16(32574), + 155: uint16(32575), + 156: uint16(32613), + }, + 58: { + 0: uint16(32614), + 1: uint16(32674), + 2: uint16(32672), + 3: uint16(32673), + 4: uint16(32727), + 5: uint16(32849), + 6: uint16(32847), + 7: uint16(32848), + 8: uint16(33022), + 9: uint16(32980), + 10: uint16(33091), + 11: uint16(33098), + 12: uint16(33106), + 13: uint16(33103), + 14: uint16(33095), + 15: uint16(33085), + 16: uint16(33101), + 17: uint16(33082), + 18: uint16(33254), + 19: uint16(33262), + 20: uint16(33271), + 21: uint16(33272), + 22: uint16(33273), + 23: uint16(33284), + 24: uint16(33340), + 25: uint16(33341), + 26: uint16(33343), + 27: uint16(33397), + 28: uint16(33595), + 29: uint16(33743), + 30: uint16(33785), + 31: uint16(33827), + 32: uint16(33728), + 33: uint16(33768), + 34: uint16(33810), + 35: uint16(33767), + 36: uint16(33764), + 37: uint16(33788), + 38: uint16(33782), + 39: uint16(33808), + 40: uint16(33734), + 41: uint16(33736), + 42: uint16(33771), + 43: uint16(33763), + 44: uint16(33727), + 45: uint16(33793), + 46: uint16(33757), + 47: uint16(33765), + 48: uint16(33752), + 49: uint16(33791), + 50: uint16(33761), + 51: uint16(33739), + 52: uint16(33742), + 53: uint16(33750), + 54: uint16(33781), + 55: uint16(33737), + 56: uint16(33801), + 57: uint16(33807), + 58: uint16(33758), + 59: uint16(33809), + 60: uint16(33798), + 61: uint16(33730), + 62: uint16(33779), + 63: uint16(33749), + 64: uint16(33786), + 65: uint16(33735), + 66: uint16(33745), + 67: uint16(33770), + 68: uint16(33811), + 69: uint16(33731), + 70: uint16(33772), + 71: uint16(33774), + 72: uint16(33732), + 73: uint16(33787), + 74: uint16(33751), + 75: uint16(33762), + 76: uint16(33819), + 77: uint16(33755), + 78: uint16(33790), + 79: uint16(34520), + 80: uint16(34530), + 81: uint16(34534), + 82: uint16(34515), + 83: uint16(34531), + 84: uint16(34522), + 85: uint16(34538), + 86: uint16(34525), + 87: uint16(34539), + 88: uint16(34524), + 89: uint16(34540), + 90: uint16(34537), + 91: uint16(34519), + 92: uint16(34536), + 93: uint16(34513), + 94: uint16(34888), + 95: uint16(34902), + 96: uint16(34901), + 97: uint16(35002), + 98: uint16(35031), + 99: uint16(35001), + 100: uint16(35000), + 101: uint16(35008), + 102: uint16(35006), + 103: uint16(34998), + 104: uint16(35004), + 105: uint16(34999), + 106: uint16(35005), + 107: uint16(34994), + 108: uint16(35073), + 109: uint16(35017), + 110: uint16(35221), + 111: uint16(35224), + 112: uint16(35223), + 113: uint16(35293), + 114: uint16(35290), + 115: uint16(35291), + 116: uint16(35406), + 117: uint16(35405), + 118: uint16(35385), + 119: uint16(35417), + 120: uint16(35392), + 121: uint16(35415), + 122: uint16(35416), + 123: uint16(35396), + 124: uint16(35397), + 125: uint16(35410), + 126: uint16(35400), + 127: uint16(35409), + 128: uint16(35402), + 129: uint16(35404), + 130: uint16(35407), + 131: uint16(35935), + 132: uint16(35969), + 133: uint16(35968), + 134: uint16(36026), + 135: uint16(36030), + 136: uint16(36016), + 137: uint16(36025), + 138: uint16(36021), + 139: uint16(36228), + 140: uint16(36224), + 141: uint16(36233), + 142: uint16(36312), + 143: uint16(36307), + 144: uint16(36301), + 145: uint16(36295), + 146: uint16(36310), + 147: uint16(36316), + 148: uint16(36303), + 149: uint16(36309), + 150: uint16(36313), + 151: uint16(36296), + 152: uint16(36311), + 153: uint16(36293), + 154: uint16(36591), + 155: uint16(36599), + 156: uint16(36602), + }, + 59: { + 0: uint16(36601), + 1: uint16(36582), + 2: uint16(36590), + 3: uint16(36581), + 4: uint16(36597), + 5: uint16(36583), + 6: uint16(36584), + 7: uint16(36598), + 8: uint16(36587), + 9: uint16(36593), + 10: uint16(36588), + 11: uint16(36596), + 12: uint16(36585), + 13: uint16(36909), + 14: uint16(36916), + 15: uint16(36911), + 16: uint16(37126), + 17: uint16(37164), + 18: uint16(37124), + 19: uint16(37119), + 20: uint16(37116), + 21: uint16(37128), + 22: uint16(37113), + 23: uint16(37115), + 24: uint16(37121), + 25: uint16(37120), + 26: uint16(37127), + 27: uint16(37125), + 28: uint16(37123), + 29: uint16(37217), + 30: uint16(37220), + 31: uint16(37215), + 32: uint16(37218), + 33: uint16(37216), + 34: uint16(37377), + 35: uint16(37386), + 36: uint16(37413), + 37: uint16(37379), + 38: uint16(37402), + 39: uint16(37414), + 40: uint16(37391), + 41: uint16(37388), + 42: uint16(37376), + 43: uint16(37394), + 44: uint16(37375), + 45: uint16(37373), + 46: uint16(37382), + 47: uint16(37380), + 48: uint16(37415), + 49: uint16(37378), + 50: uint16(37404), + 51: uint16(37412), + 52: uint16(37401), + 53: uint16(37399), + 54: uint16(37381), + 55: uint16(37398), + 56: uint16(38267), + 57: uint16(38285), + 58: uint16(38284), + 59: uint16(38288), + 60: uint16(38535), + 61: uint16(38526), + 62: uint16(38536), + 63: uint16(38537), + 64: uint16(38531), + 65: uint16(38528), + 66: uint16(38594), + 67: uint16(38600), + 68: uint16(38595), + 69: uint16(38641), + 70: uint16(38640), + 71: uint16(38764), + 72: uint16(38768), + 73: uint16(38766), + 74: uint16(38919), + 75: uint16(39081), + 76: uint16(39147), + 77: uint16(40166), + 78: uint16(40697), + 79: uint16(20099), + 80: uint16(20100), + 81: uint16(20150), + 82: uint16(20669), + 83: uint16(20671), + 84: uint16(20678), + 85: uint16(20654), + 86: uint16(20676), + 87: uint16(20682), + 88: uint16(20660), + 89: uint16(20680), + 90: uint16(20674), + 91: uint16(20656), + 92: uint16(20673), + 93: uint16(20666), + 94: uint16(20657), + 95: uint16(20683), + 96: uint16(20681), + 97: uint16(20662), + 98: uint16(20664), + 99: uint16(20951), + 100: uint16(21114), + 101: uint16(21112), + 102: uint16(21115), + 103: uint16(21116), + 104: uint16(21955), + 105: uint16(21979), + 106: uint16(21964), + 107: uint16(21968), + 108: uint16(21963), + 109: uint16(21962), + 110: uint16(21981), + 111: uint16(21952), + 112: uint16(21972), + 113: uint16(21956), + 114: uint16(21993), + 115: uint16(21951), + 116: uint16(21970), + 117: uint16(21901), + 118: uint16(21967), + 119: uint16(21973), + 120: uint16(21986), + 121: uint16(21974), + 122: uint16(21960), + 123: uint16(22002), + 124: uint16(21965), + 125: uint16(21977), + 126: uint16(21954), + 127: uint16(22292), + 128: uint16(22611), + 129: uint16(22632), + 130: uint16(22628), + 131: uint16(22607), + 132: uint16(22605), + 133: uint16(22601), + 134: uint16(22639), + 135: uint16(22613), + 136: uint16(22606), + 137: uint16(22621), + 138: uint16(22617), + 139: uint16(22629), + 140: uint16(22619), + 141: uint16(22589), + 142: uint16(22627), + 143: uint16(22641), + 144: uint16(22780), + 145: uint16(23239), + 146: uint16(23236), + 147: uint16(23243), + 148: uint16(23226), + 149: uint16(23224), + 150: uint16(23217), + 151: uint16(23221), + 152: uint16(23216), + 153: uint16(23231), + 154: uint16(23240), + 155: uint16(23227), + 156: uint16(23238), + }, + 60: { + 0: uint16(23223), + 1: uint16(23232), + 2: uint16(23242), + 3: uint16(23220), + 4: uint16(23222), + 5: uint16(23245), + 6: uint16(23225), + 7: uint16(23184), + 8: uint16(23510), + 9: uint16(23512), + 10: uint16(23513), + 11: uint16(23583), + 12: uint16(23603), + 13: uint16(23921), + 14: uint16(23907), + 15: uint16(23882), + 16: uint16(23909), + 17: uint16(23922), + 18: uint16(23916), + 19: uint16(23902), + 20: uint16(23912), + 21: uint16(23911), + 22: uint16(23906), + 23: uint16(24048), + 24: uint16(24143), + 25: uint16(24142), + 26: uint16(24138), + 27: uint16(24141), + 28: uint16(24139), + 29: uint16(24261), + 30: uint16(24268), + 31: uint16(24262), + 32: uint16(24267), + 33: uint16(24263), + 34: uint16(24384), + 35: uint16(24495), + 36: uint16(24493), + 37: uint16(24823), + 38: uint16(24905), + 39: uint16(24906), + 40: uint16(24875), + 41: uint16(24901), + 42: uint16(24886), + 43: uint16(24882), + 44: uint16(24878), + 45: uint16(24902), + 46: uint16(24879), + 47: uint16(24911), + 48: uint16(24873), + 49: uint16(24896), + 50: uint16(25120), + 51: uint16(37224), + 52: uint16(25123), + 53: uint16(25125), + 54: uint16(25124), + 55: uint16(25541), + 56: uint16(25585), + 57: uint16(25579), + 58: uint16(25616), + 59: uint16(25618), + 60: uint16(25609), + 61: uint16(25632), + 62: uint16(25636), + 63: uint16(25651), + 64: uint16(25667), + 65: uint16(25631), + 66: uint16(25621), + 67: uint16(25624), + 68: uint16(25657), + 69: uint16(25655), + 70: uint16(25634), + 71: uint16(25635), + 72: uint16(25612), + 73: uint16(25638), + 74: uint16(25648), + 75: uint16(25640), + 76: uint16(25665), + 77: uint16(25653), + 78: uint16(25647), + 79: uint16(25610), + 80: uint16(25626), + 81: uint16(25664), + 82: uint16(25637), + 83: uint16(25639), + 84: uint16(25611), + 85: uint16(25575), + 86: uint16(25627), + 87: uint16(25646), + 88: uint16(25633), + 89: uint16(25614), + 90: uint16(25967), + 91: uint16(26002), + 92: uint16(26067), + 93: uint16(26246), + 94: uint16(26252), + 95: uint16(26261), + 96: uint16(26256), + 97: uint16(26251), + 98: uint16(26250), + 99: uint16(26265), + 100: uint16(26260), + 101: uint16(26232), + 102: uint16(26400), + 103: uint16(26982), + 104: uint16(26975), + 105: uint16(26936), + 106: uint16(26958), + 107: uint16(26978), + 108: uint16(26993), + 109: uint16(26943), + 110: uint16(26949), + 111: uint16(26986), + 112: uint16(26937), + 113: uint16(26946), + 114: uint16(26967), + 115: uint16(26969), + 116: uint16(27002), + 117: uint16(26952), + 118: uint16(26953), + 119: uint16(26933), + 120: uint16(26988), + 121: uint16(26931), + 122: uint16(26941), + 123: uint16(26981), + 124: uint16(26864), + 125: uint16(27000), + 126: uint16(26932), + 127: uint16(26985), + 128: uint16(26944), + 129: uint16(26991), + 130: uint16(26948), + 131: uint16(26998), + 132: uint16(26968), + 133: uint16(26945), + 134: uint16(26996), + 135: uint16(26956), + 136: uint16(26939), + 137: uint16(26955), + 138: uint16(26935), + 139: uint16(26972), + 140: uint16(26959), + 141: uint16(26961), + 142: uint16(26930), + 143: uint16(26962), + 144: uint16(26927), + 145: uint16(27003), + 146: uint16(26940), + 147: uint16(27462), + 148: uint16(27461), + 149: uint16(27459), + 150: uint16(27458), + 151: uint16(27464), + 152: uint16(27457), + 153: uint16(27547), + 154: uint16(64013), + 155: uint16(27643), + 156: uint16(27644), + }, + 61: { + 0: uint16(27641), + 1: uint16(27639), + 2: uint16(27640), + 3: uint16(28315), + 4: uint16(28374), + 5: uint16(28360), + 6: uint16(28303), + 7: uint16(28352), + 8: uint16(28319), + 9: uint16(28307), + 10: uint16(28308), + 11: uint16(28320), + 12: uint16(28337), + 13: uint16(28345), + 14: uint16(28358), + 15: uint16(28370), + 16: uint16(28349), + 17: uint16(28353), + 18: uint16(28318), + 19: uint16(28361), + 20: uint16(28343), + 21: uint16(28336), + 22: uint16(28365), + 23: uint16(28326), + 24: uint16(28367), + 25: uint16(28338), + 26: uint16(28350), + 27: uint16(28355), + 28: uint16(28380), + 29: uint16(28376), + 30: uint16(28313), + 31: uint16(28306), + 32: uint16(28302), + 33: uint16(28301), + 34: uint16(28324), + 35: uint16(28321), + 36: uint16(28351), + 37: uint16(28339), + 38: uint16(28368), + 39: uint16(28362), + 40: uint16(28311), + 41: uint16(28334), + 42: uint16(28323), + 43: uint16(28999), + 44: uint16(29012), + 45: uint16(29010), + 46: uint16(29027), + 47: uint16(29024), + 48: uint16(28993), + 49: uint16(29021), + 50: uint16(29026), + 51: uint16(29042), + 52: uint16(29048), + 53: uint16(29034), + 54: uint16(29025), + 55: uint16(28994), + 56: uint16(29016), + 57: uint16(28995), + 58: uint16(29003), + 59: uint16(29040), + 60: uint16(29023), + 61: uint16(29008), + 62: uint16(29011), + 63: uint16(28996), + 64: uint16(29005), + 65: uint16(29018), + 66: uint16(29263), + 67: uint16(29325), + 68: uint16(29324), + 69: uint16(29329), + 70: uint16(29328), + 71: uint16(29326), + 72: uint16(29500), + 73: uint16(29506), + 74: uint16(29499), + 75: uint16(29498), + 76: uint16(29504), + 77: uint16(29514), + 78: uint16(29513), + 79: uint16(29764), + 80: uint16(29770), + 81: uint16(29771), + 82: uint16(29778), + 83: uint16(29777), + 84: uint16(29783), + 85: uint16(29760), + 86: uint16(29775), + 87: uint16(29776), + 88: uint16(29774), + 89: uint16(29762), + 90: uint16(29766), + 91: uint16(29773), + 92: uint16(29780), + 93: uint16(29921), + 94: uint16(29951), + 95: uint16(29950), + 96: uint16(29949), + 97: uint16(29981), + 98: uint16(30073), + 99: uint16(30071), + 100: uint16(27011), + 101: uint16(30191), + 102: uint16(30223), + 103: uint16(30211), + 104: uint16(30199), + 105: uint16(30206), + 106: uint16(30204), + 107: uint16(30201), + 108: uint16(30200), + 109: uint16(30224), + 110: uint16(30203), + 111: uint16(30198), + 112: uint16(30189), + 113: uint16(30197), + 114: uint16(30205), + 115: uint16(30361), + 116: uint16(30389), + 117: uint16(30429), + 118: uint16(30549), + 119: uint16(30559), + 120: uint16(30560), + 121: uint16(30546), + 122: uint16(30550), + 123: uint16(30554), + 124: uint16(30569), + 125: uint16(30567), + 126: uint16(30548), + 127: uint16(30553), + 128: uint16(30573), + 129: uint16(30688), + 130: uint16(30855), + 131: uint16(30874), + 132: uint16(30868), + 133: uint16(30863), + 134: uint16(30852), + 135: uint16(30869), + 136: uint16(30853), + 137: uint16(30854), + 138: uint16(30881), + 139: uint16(30851), + 140: uint16(30841), + 141: uint16(30873), + 142: uint16(30848), + 143: uint16(30870), + 144: uint16(30843), + 145: uint16(31100), + 146: uint16(31106), + 147: uint16(31101), + 148: uint16(31097), + 149: uint16(31249), + 150: uint16(31256), + 151: uint16(31257), + 152: uint16(31250), + 153: uint16(31255), + 154: uint16(31253), + 155: uint16(31266), + 156: uint16(31251), + }, + 62: { + 0: uint16(31259), + 1: uint16(31248), + 2: uint16(31395), + 3: uint16(31394), + 4: uint16(31390), + 5: uint16(31467), + 6: uint16(31590), + 7: uint16(31588), + 8: uint16(31597), + 9: uint16(31604), + 10: uint16(31593), + 11: uint16(31602), + 12: uint16(31589), + 13: uint16(31603), + 14: uint16(31601), + 15: uint16(31600), + 16: uint16(31585), + 17: uint16(31608), + 18: uint16(31606), + 19: uint16(31587), + 20: uint16(31922), + 21: uint16(31924), + 22: uint16(31919), + 23: uint16(32136), + 24: uint16(32134), + 25: uint16(32128), + 26: uint16(32141), + 27: uint16(32127), + 28: uint16(32133), + 29: uint16(32122), + 30: uint16(32142), + 31: uint16(32123), + 32: uint16(32131), + 33: uint16(32124), + 34: uint16(32140), + 35: uint16(32148), + 36: uint16(32132), + 37: uint16(32125), + 38: uint16(32146), + 39: uint16(32621), + 40: uint16(32619), + 41: uint16(32615), + 42: uint16(32616), + 43: uint16(32620), + 44: uint16(32678), + 45: uint16(32677), + 46: uint16(32679), + 47: uint16(32731), + 48: uint16(32732), + 49: uint16(32801), + 50: uint16(33124), + 51: uint16(33120), + 52: uint16(33143), + 53: uint16(33116), + 54: uint16(33129), + 55: uint16(33115), + 56: uint16(33122), + 57: uint16(33138), + 58: uint16(26401), + 59: uint16(33118), + 60: uint16(33142), + 61: uint16(33127), + 62: uint16(33135), + 63: uint16(33092), + 64: uint16(33121), + 65: uint16(33309), + 66: uint16(33353), + 67: uint16(33348), + 68: uint16(33344), + 69: uint16(33346), + 70: uint16(33349), + 71: uint16(34033), + 72: uint16(33855), + 73: uint16(33878), + 74: uint16(33910), + 75: uint16(33913), + 76: uint16(33935), + 77: uint16(33933), + 78: uint16(33893), + 79: uint16(33873), + 80: uint16(33856), + 81: uint16(33926), + 82: uint16(33895), + 83: uint16(33840), + 84: uint16(33869), + 85: uint16(33917), + 86: uint16(33882), + 87: uint16(33881), + 88: uint16(33908), + 89: uint16(33907), + 90: uint16(33885), + 91: uint16(34055), + 92: uint16(33886), + 93: uint16(33847), + 94: uint16(33850), + 95: uint16(33844), + 96: uint16(33914), + 97: uint16(33859), + 98: uint16(33912), + 99: uint16(33842), + 100: uint16(33861), + 101: uint16(33833), + 102: uint16(33753), + 103: uint16(33867), + 104: uint16(33839), + 105: uint16(33858), + 106: uint16(33837), + 107: uint16(33887), + 108: uint16(33904), + 109: uint16(33849), + 110: uint16(33870), + 111: uint16(33868), + 112: uint16(33874), + 113: uint16(33903), + 114: uint16(33989), + 115: uint16(33934), + 116: uint16(33851), + 117: uint16(33863), + 118: uint16(33846), + 119: uint16(33843), + 120: uint16(33896), + 121: uint16(33918), + 122: uint16(33860), + 123: uint16(33835), + 124: uint16(33888), + 125: uint16(33876), + 126: uint16(33902), + 127: uint16(33872), + 128: uint16(34571), + 129: uint16(34564), + 130: uint16(34551), + 131: uint16(34572), + 132: uint16(34554), + 133: uint16(34518), + 134: uint16(34549), + 135: uint16(34637), + 136: uint16(34552), + 137: uint16(34574), + 138: uint16(34569), + 139: uint16(34561), + 140: uint16(34550), + 141: uint16(34573), + 142: uint16(34565), + 143: uint16(35030), + 144: uint16(35019), + 145: uint16(35021), + 146: uint16(35022), + 147: uint16(35038), + 148: uint16(35035), + 149: uint16(35034), + 150: uint16(35020), + 151: uint16(35024), + 152: uint16(35205), + 153: uint16(35227), + 154: uint16(35295), + 155: uint16(35301), + 156: uint16(35300), + }, + 63: { + 0: uint16(35297), + 1: uint16(35296), + 2: uint16(35298), + 3: uint16(35292), + 4: uint16(35302), + 5: uint16(35446), + 6: uint16(35462), + 7: uint16(35455), + 8: uint16(35425), + 9: uint16(35391), + 10: uint16(35447), + 11: uint16(35458), + 12: uint16(35460), + 13: uint16(35445), + 14: uint16(35459), + 15: uint16(35457), + 16: uint16(35444), + 17: uint16(35450), + 18: uint16(35900), + 19: uint16(35915), + 20: uint16(35914), + 21: uint16(35941), + 22: uint16(35940), + 23: uint16(35942), + 24: uint16(35974), + 25: uint16(35972), + 26: uint16(35973), + 27: uint16(36044), + 28: uint16(36200), + 29: uint16(36201), + 30: uint16(36241), + 31: uint16(36236), + 32: uint16(36238), + 33: uint16(36239), + 34: uint16(36237), + 35: uint16(36243), + 36: uint16(36244), + 37: uint16(36240), + 38: uint16(36242), + 39: uint16(36336), + 40: uint16(36320), + 41: uint16(36332), + 42: uint16(36337), + 43: uint16(36334), + 44: uint16(36304), + 45: uint16(36329), + 46: uint16(36323), + 47: uint16(36322), + 48: uint16(36327), + 49: uint16(36338), + 50: uint16(36331), + 51: uint16(36340), + 52: uint16(36614), + 53: uint16(36607), + 54: uint16(36609), + 55: uint16(36608), + 56: uint16(36613), + 57: uint16(36615), + 58: uint16(36616), + 59: uint16(36610), + 60: uint16(36619), + 61: uint16(36946), + 62: uint16(36927), + 63: uint16(36932), + 64: uint16(36937), + 65: uint16(36925), + 66: uint16(37136), + 67: uint16(37133), + 68: uint16(37135), + 69: uint16(37137), + 70: uint16(37142), + 71: uint16(37140), + 72: uint16(37131), + 73: uint16(37134), + 74: uint16(37230), + 75: uint16(37231), + 76: uint16(37448), + 77: uint16(37458), + 78: uint16(37424), + 79: uint16(37434), + 80: uint16(37478), + 81: uint16(37427), + 82: uint16(37477), + 83: uint16(37470), + 84: uint16(37507), + 85: uint16(37422), + 86: uint16(37450), + 87: uint16(37446), + 88: uint16(37485), + 89: uint16(37484), + 90: uint16(37455), + 91: uint16(37472), + 92: uint16(37479), + 93: uint16(37487), + 94: uint16(37430), + 95: uint16(37473), + 96: uint16(37488), + 97: uint16(37425), + 98: uint16(37460), + 99: uint16(37475), + 100: uint16(37456), + 101: uint16(37490), + 102: uint16(37454), + 103: uint16(37459), + 104: uint16(37452), + 105: uint16(37462), + 106: uint16(37426), + 107: uint16(38303), + 108: uint16(38300), + 109: uint16(38302), + 110: uint16(38299), + 111: uint16(38546), + 112: uint16(38547), + 113: uint16(38545), + 114: uint16(38551), + 115: uint16(38606), + 116: uint16(38650), + 117: uint16(38653), + 118: uint16(38648), + 119: uint16(38645), + 120: uint16(38771), + 121: uint16(38775), + 122: uint16(38776), + 123: uint16(38770), + 124: uint16(38927), + 125: uint16(38925), + 126: uint16(38926), + 127: uint16(39084), + 128: uint16(39158), + 129: uint16(39161), + 130: uint16(39343), + 131: uint16(39346), + 132: uint16(39344), + 133: uint16(39349), + 134: uint16(39597), + 135: uint16(39595), + 136: uint16(39771), + 137: uint16(40170), + 138: uint16(40173), + 139: uint16(40167), + 140: uint16(40576), + 141: uint16(40701), + 142: uint16(20710), + 143: uint16(20692), + 144: uint16(20695), + 145: uint16(20712), + 146: uint16(20723), + 147: uint16(20699), + 148: uint16(20714), + 149: uint16(20701), + 150: uint16(20708), + 151: uint16(20691), + 152: uint16(20716), + 153: uint16(20720), + 154: uint16(20719), + 155: uint16(20707), + 156: uint16(20704), + }, + 64: { + 0: uint16(20952), + 1: uint16(21120), + 2: uint16(21121), + 3: uint16(21225), + 4: uint16(21227), + 5: uint16(21296), + 6: uint16(21420), + 7: uint16(22055), + 8: uint16(22037), + 9: uint16(22028), + 10: uint16(22034), + 11: uint16(22012), + 12: uint16(22031), + 13: uint16(22044), + 14: uint16(22017), + 15: uint16(22035), + 16: uint16(22018), + 17: uint16(22010), + 18: uint16(22045), + 19: uint16(22020), + 20: uint16(22015), + 21: uint16(22009), + 22: uint16(22665), + 23: uint16(22652), + 24: uint16(22672), + 25: uint16(22680), + 26: uint16(22662), + 27: uint16(22657), + 28: uint16(22655), + 29: uint16(22644), + 30: uint16(22667), + 31: uint16(22650), + 32: uint16(22663), + 33: uint16(22673), + 34: uint16(22670), + 35: uint16(22646), + 36: uint16(22658), + 37: uint16(22664), + 38: uint16(22651), + 39: uint16(22676), + 40: uint16(22671), + 41: uint16(22782), + 42: uint16(22891), + 43: uint16(23260), + 44: uint16(23278), + 45: uint16(23269), + 46: uint16(23253), + 47: uint16(23274), + 48: uint16(23258), + 49: uint16(23277), + 50: uint16(23275), + 51: uint16(23283), + 52: uint16(23266), + 53: uint16(23264), + 54: uint16(23259), + 55: uint16(23276), + 56: uint16(23262), + 57: uint16(23261), + 58: uint16(23257), + 59: uint16(23272), + 60: uint16(23263), + 61: uint16(23415), + 62: uint16(23520), + 63: uint16(23523), + 64: uint16(23651), + 65: uint16(23938), + 66: uint16(23936), + 67: uint16(23933), + 68: uint16(23942), + 69: uint16(23930), + 70: uint16(23937), + 71: uint16(23927), + 72: uint16(23946), + 73: uint16(23945), + 74: uint16(23944), + 75: uint16(23934), + 76: uint16(23932), + 77: uint16(23949), + 78: uint16(23929), + 79: uint16(23935), + 80: uint16(24152), + 81: uint16(24153), + 82: uint16(24147), + 83: uint16(24280), + 84: uint16(24273), + 85: uint16(24279), + 86: uint16(24270), + 87: uint16(24284), + 88: uint16(24277), + 89: uint16(24281), + 90: uint16(24274), + 91: uint16(24276), + 92: uint16(24388), + 93: uint16(24387), + 94: uint16(24431), + 95: uint16(24502), + 96: uint16(24876), + 97: uint16(24872), + 98: uint16(24897), + 99: uint16(24926), + 100: uint16(24945), + 101: uint16(24947), + 102: uint16(24914), + 103: uint16(24915), + 104: uint16(24946), + 105: uint16(24940), + 106: uint16(24960), + 107: uint16(24948), + 108: uint16(24916), + 109: uint16(24954), + 110: uint16(24923), + 111: uint16(24933), + 112: uint16(24891), + 113: uint16(24938), + 114: uint16(24929), + 115: uint16(24918), + 116: uint16(25129), + 117: uint16(25127), + 118: uint16(25131), + 119: uint16(25643), + 120: uint16(25677), + 121: uint16(25691), + 122: uint16(25693), + 123: uint16(25716), + 124: uint16(25718), + 125: uint16(25714), + 126: uint16(25715), + 127: uint16(25725), + 128: uint16(25717), + 129: uint16(25702), + 130: uint16(25766), + 131: uint16(25678), + 132: uint16(25730), + 133: uint16(25694), + 134: uint16(25692), + 135: uint16(25675), + 136: uint16(25683), + 137: uint16(25696), + 138: uint16(25680), + 139: uint16(25727), + 140: uint16(25663), + 141: uint16(25708), + 142: uint16(25707), + 143: uint16(25689), + 144: uint16(25701), + 145: uint16(25719), + 146: uint16(25971), + 147: uint16(26016), + 148: uint16(26273), + 149: uint16(26272), + 150: uint16(26271), + 151: uint16(26373), + 152: uint16(26372), + 153: uint16(26402), + 154: uint16(27057), + 155: uint16(27062), + 156: uint16(27081), + }, + 65: { + 0: uint16(27040), + 1: uint16(27086), + 2: uint16(27030), + 3: uint16(27056), + 4: uint16(27052), + 5: uint16(27068), + 6: uint16(27025), + 7: uint16(27033), + 8: uint16(27022), + 9: uint16(27047), + 10: uint16(27021), + 11: uint16(27049), + 12: uint16(27070), + 13: uint16(27055), + 14: uint16(27071), + 15: uint16(27076), + 16: uint16(27069), + 17: uint16(27044), + 18: uint16(27092), + 19: uint16(27065), + 20: uint16(27082), + 21: uint16(27034), + 22: uint16(27087), + 23: uint16(27059), + 24: uint16(27027), + 25: uint16(27050), + 26: uint16(27041), + 27: uint16(27038), + 28: uint16(27097), + 29: uint16(27031), + 30: uint16(27024), + 31: uint16(27074), + 32: uint16(27061), + 33: uint16(27045), + 34: uint16(27078), + 35: uint16(27466), + 36: uint16(27469), + 37: uint16(27467), + 38: uint16(27550), + 39: uint16(27551), + 40: uint16(27552), + 41: uint16(27587), + 42: uint16(27588), + 43: uint16(27646), + 44: uint16(28366), + 45: uint16(28405), + 46: uint16(28401), + 47: uint16(28419), + 48: uint16(28453), + 49: uint16(28408), + 50: uint16(28471), + 51: uint16(28411), + 52: uint16(28462), + 53: uint16(28425), + 54: uint16(28494), + 55: uint16(28441), + 56: uint16(28442), + 57: uint16(28455), + 58: uint16(28440), + 59: uint16(28475), + 60: uint16(28434), + 61: uint16(28397), + 62: uint16(28426), + 63: uint16(28470), + 64: uint16(28531), + 65: uint16(28409), + 66: uint16(28398), + 67: uint16(28461), + 68: uint16(28480), + 69: uint16(28464), + 70: uint16(28476), + 71: uint16(28469), + 72: uint16(28395), + 73: uint16(28423), + 74: uint16(28430), + 75: uint16(28483), + 76: uint16(28421), + 77: uint16(28413), + 78: uint16(28406), + 79: uint16(28473), + 80: uint16(28444), + 81: uint16(28412), + 82: uint16(28474), + 83: uint16(28447), + 84: uint16(28429), + 85: uint16(28446), + 86: uint16(28424), + 87: uint16(28449), + 88: uint16(29063), + 89: uint16(29072), + 90: uint16(29065), + 91: uint16(29056), + 92: uint16(29061), + 93: uint16(29058), + 94: uint16(29071), + 95: uint16(29051), + 96: uint16(29062), + 97: uint16(29057), + 98: uint16(29079), + 99: uint16(29252), + 100: uint16(29267), + 101: uint16(29335), + 102: uint16(29333), + 103: uint16(29331), + 104: uint16(29507), + 105: uint16(29517), + 106: uint16(29521), + 107: uint16(29516), + 108: uint16(29794), + 109: uint16(29811), + 110: uint16(29809), + 111: uint16(29813), + 112: uint16(29810), + 113: uint16(29799), + 114: uint16(29806), + 115: uint16(29952), + 116: uint16(29954), + 117: uint16(29955), + 118: uint16(30077), + 119: uint16(30096), + 120: uint16(30230), + 121: uint16(30216), + 122: uint16(30220), + 123: uint16(30229), + 124: uint16(30225), + 125: uint16(30218), + 126: uint16(30228), + 127: uint16(30392), + 128: uint16(30593), + 129: uint16(30588), + 130: uint16(30597), + 131: uint16(30594), + 132: uint16(30574), + 133: uint16(30592), + 134: uint16(30575), + 135: uint16(30590), + 136: uint16(30595), + 137: uint16(30898), + 138: uint16(30890), + 139: uint16(30900), + 140: uint16(30893), + 141: uint16(30888), + 142: uint16(30846), + 143: uint16(30891), + 144: uint16(30878), + 145: uint16(30885), + 146: uint16(30880), + 147: uint16(30892), + 148: uint16(30882), + 149: uint16(30884), + 150: uint16(31128), + 151: uint16(31114), + 152: uint16(31115), + 153: uint16(31126), + 154: uint16(31125), + 155: uint16(31124), + 156: uint16(31123), + }, + 66: { + 0: uint16(31127), + 1: uint16(31112), + 2: uint16(31122), + 3: uint16(31120), + 4: uint16(31275), + 5: uint16(31306), + 6: uint16(31280), + 7: uint16(31279), + 8: uint16(31272), + 9: uint16(31270), + 10: uint16(31400), + 11: uint16(31403), + 12: uint16(31404), + 13: uint16(31470), + 14: uint16(31624), + 15: uint16(31644), + 16: uint16(31626), + 17: uint16(31633), + 18: uint16(31632), + 19: uint16(31638), + 20: uint16(31629), + 21: uint16(31628), + 22: uint16(31643), + 23: uint16(31630), + 24: uint16(31621), + 25: uint16(31640), + 26: uint16(21124), + 27: uint16(31641), + 28: uint16(31652), + 29: uint16(31618), + 30: uint16(31931), + 31: uint16(31935), + 32: uint16(31932), + 33: uint16(31930), + 34: uint16(32167), + 35: uint16(32183), + 36: uint16(32194), + 37: uint16(32163), + 38: uint16(32170), + 39: uint16(32193), + 40: uint16(32192), + 41: uint16(32197), + 42: uint16(32157), + 43: uint16(32206), + 44: uint16(32196), + 45: uint16(32198), + 46: uint16(32203), + 47: uint16(32204), + 48: uint16(32175), + 49: uint16(32185), + 50: uint16(32150), + 51: uint16(32188), + 52: uint16(32159), + 53: uint16(32166), + 54: uint16(32174), + 55: uint16(32169), + 56: uint16(32161), + 57: uint16(32201), + 58: uint16(32627), + 59: uint16(32738), + 60: uint16(32739), + 61: uint16(32741), + 62: uint16(32734), + 63: uint16(32804), + 64: uint16(32861), + 65: uint16(32860), + 66: uint16(33161), + 67: uint16(33158), + 68: uint16(33155), + 69: uint16(33159), + 70: uint16(33165), + 71: uint16(33164), + 72: uint16(33163), + 73: uint16(33301), + 74: uint16(33943), + 75: uint16(33956), + 76: uint16(33953), + 77: uint16(33951), + 78: uint16(33978), + 79: uint16(33998), + 80: uint16(33986), + 81: uint16(33964), + 82: uint16(33966), + 83: uint16(33963), + 84: uint16(33977), + 85: uint16(33972), + 86: uint16(33985), + 87: uint16(33997), + 88: uint16(33962), + 89: uint16(33946), + 90: uint16(33969), + 91: uint16(34000), + 92: uint16(33949), + 93: uint16(33959), + 94: uint16(33979), + 95: uint16(33954), + 96: uint16(33940), + 97: uint16(33991), + 98: uint16(33996), + 99: uint16(33947), + 100: uint16(33961), + 101: uint16(33967), + 102: uint16(33960), + 103: uint16(34006), + 104: uint16(33944), + 105: uint16(33974), + 106: uint16(33999), + 107: uint16(33952), + 108: uint16(34007), + 109: uint16(34004), + 110: uint16(34002), + 111: uint16(34011), + 112: uint16(33968), + 113: uint16(33937), + 114: uint16(34401), + 115: uint16(34611), + 116: uint16(34595), + 117: uint16(34600), + 118: uint16(34667), + 119: uint16(34624), + 120: uint16(34606), + 121: uint16(34590), + 122: uint16(34593), + 123: uint16(34585), + 124: uint16(34587), + 125: uint16(34627), + 126: uint16(34604), + 127: uint16(34625), + 128: uint16(34622), + 129: uint16(34630), + 130: uint16(34592), + 131: uint16(34610), + 132: uint16(34602), + 133: uint16(34605), + 134: uint16(34620), + 135: uint16(34578), + 136: uint16(34618), + 137: uint16(34609), + 138: uint16(34613), + 139: uint16(34626), + 140: uint16(34598), + 141: uint16(34599), + 142: uint16(34616), + 143: uint16(34596), + 144: uint16(34586), + 145: uint16(34608), + 146: uint16(34577), + 147: uint16(35063), + 148: uint16(35047), + 149: uint16(35057), + 150: uint16(35058), + 151: uint16(35066), + 152: uint16(35070), + 153: uint16(35054), + 154: uint16(35068), + 155: uint16(35062), + 156: uint16(35067), + }, + 67: { + 0: uint16(35056), + 1: uint16(35052), + 2: uint16(35051), + 3: uint16(35229), + 4: uint16(35233), + 5: uint16(35231), + 6: uint16(35230), + 7: uint16(35305), + 8: uint16(35307), + 9: uint16(35304), + 10: uint16(35499), + 11: uint16(35481), + 12: uint16(35467), + 13: uint16(35474), + 14: uint16(35471), + 15: uint16(35478), + 16: uint16(35901), + 17: uint16(35944), + 18: uint16(35945), + 19: uint16(36053), + 20: uint16(36047), + 21: uint16(36055), + 22: uint16(36246), + 23: uint16(36361), + 24: uint16(36354), + 25: uint16(36351), + 26: uint16(36365), + 27: uint16(36349), + 28: uint16(36362), + 29: uint16(36355), + 30: uint16(36359), + 31: uint16(36358), + 32: uint16(36357), + 33: uint16(36350), + 34: uint16(36352), + 35: uint16(36356), + 36: uint16(36624), + 37: uint16(36625), + 38: uint16(36622), + 39: uint16(36621), + 40: uint16(37155), + 41: uint16(37148), + 42: uint16(37152), + 43: uint16(37154), + 44: uint16(37151), + 45: uint16(37149), + 46: uint16(37146), + 47: uint16(37156), + 48: uint16(37153), + 49: uint16(37147), + 50: uint16(37242), + 51: uint16(37234), + 52: uint16(37241), + 53: uint16(37235), + 54: uint16(37541), + 55: uint16(37540), + 56: uint16(37494), + 57: uint16(37531), + 58: uint16(37498), + 59: uint16(37536), + 60: uint16(37524), + 61: uint16(37546), + 62: uint16(37517), + 63: uint16(37542), + 64: uint16(37530), + 65: uint16(37547), + 66: uint16(37497), + 67: uint16(37527), + 68: uint16(37503), + 69: uint16(37539), + 70: uint16(37614), + 71: uint16(37518), + 72: uint16(37506), + 73: uint16(37525), + 74: uint16(37538), + 75: uint16(37501), + 76: uint16(37512), + 77: uint16(37537), + 78: uint16(37514), + 79: uint16(37510), + 80: uint16(37516), + 81: uint16(37529), + 82: uint16(37543), + 83: uint16(37502), + 84: uint16(37511), + 85: uint16(37545), + 86: uint16(37533), + 87: uint16(37515), + 88: uint16(37421), + 89: uint16(38558), + 90: uint16(38561), + 91: uint16(38655), + 92: uint16(38744), + 93: uint16(38781), + 94: uint16(38778), + 95: uint16(38782), + 96: uint16(38787), + 97: uint16(38784), + 98: uint16(38786), + 99: uint16(38779), + 100: uint16(38788), + 101: uint16(38785), + 102: uint16(38783), + 103: uint16(38862), + 104: uint16(38861), + 105: uint16(38934), + 106: uint16(39085), + 107: uint16(39086), + 108: uint16(39170), + 109: uint16(39168), + 110: uint16(39175), + 111: uint16(39325), + 112: uint16(39324), + 113: uint16(39363), + 114: uint16(39353), + 115: uint16(39355), + 116: uint16(39354), + 117: uint16(39362), + 118: uint16(39357), + 119: uint16(39367), + 120: uint16(39601), + 121: uint16(39651), + 122: uint16(39655), + 123: uint16(39742), + 124: uint16(39743), + 125: uint16(39776), + 126: uint16(39777), + 127: uint16(39775), + 128: uint16(40177), + 129: uint16(40178), + 130: uint16(40181), + 131: uint16(40615), + 132: uint16(20735), + 133: uint16(20739), + 134: uint16(20784), + 135: uint16(20728), + 136: uint16(20742), + 137: uint16(20743), + 138: uint16(20726), + 139: uint16(20734), + 140: uint16(20747), + 141: uint16(20748), + 142: uint16(20733), + 143: uint16(20746), + 144: uint16(21131), + 145: uint16(21132), + 146: uint16(21233), + 147: uint16(21231), + 148: uint16(22088), + 149: uint16(22082), + 150: uint16(22092), + 151: uint16(22069), + 152: uint16(22081), + 153: uint16(22090), + 154: uint16(22089), + 155: uint16(22086), + 156: uint16(22104), + }, + 68: { + 0: uint16(22106), + 1: uint16(22080), + 2: uint16(22067), + 3: uint16(22077), + 4: uint16(22060), + 5: uint16(22078), + 6: uint16(22072), + 7: uint16(22058), + 8: uint16(22074), + 9: uint16(22298), + 10: uint16(22699), + 11: uint16(22685), + 12: uint16(22705), + 13: uint16(22688), + 14: uint16(22691), + 15: uint16(22703), + 16: uint16(22700), + 17: uint16(22693), + 18: uint16(22689), + 19: uint16(22783), + 20: uint16(23295), + 21: uint16(23284), + 22: uint16(23293), + 23: uint16(23287), + 24: uint16(23286), + 25: uint16(23299), + 26: uint16(23288), + 27: uint16(23298), + 28: uint16(23289), + 29: uint16(23297), + 30: uint16(23303), + 31: uint16(23301), + 32: uint16(23311), + 33: uint16(23655), + 34: uint16(23961), + 35: uint16(23959), + 36: uint16(23967), + 37: uint16(23954), + 38: uint16(23970), + 39: uint16(23955), + 40: uint16(23957), + 41: uint16(23968), + 42: uint16(23964), + 43: uint16(23969), + 44: uint16(23962), + 45: uint16(23966), + 46: uint16(24169), + 47: uint16(24157), + 48: uint16(24160), + 49: uint16(24156), + 50: uint16(32243), + 51: uint16(24283), + 52: uint16(24286), + 53: uint16(24289), + 54: uint16(24393), + 55: uint16(24498), + 56: uint16(24971), + 57: uint16(24963), + 58: uint16(24953), + 59: uint16(25009), + 60: uint16(25008), + 61: uint16(24994), + 62: uint16(24969), + 63: uint16(24987), + 64: uint16(24979), + 65: uint16(25007), + 66: uint16(25005), + 67: uint16(24991), + 68: uint16(24978), + 69: uint16(25002), + 70: uint16(24993), + 71: uint16(24973), + 72: uint16(24934), + 73: uint16(25011), + 74: uint16(25133), + 75: uint16(25710), + 76: uint16(25712), + 77: uint16(25750), + 78: uint16(25760), + 79: uint16(25733), + 80: uint16(25751), + 81: uint16(25756), + 82: uint16(25743), + 83: uint16(25739), + 84: uint16(25738), + 85: uint16(25740), + 86: uint16(25763), + 87: uint16(25759), + 88: uint16(25704), + 89: uint16(25777), + 90: uint16(25752), + 91: uint16(25974), + 92: uint16(25978), + 93: uint16(25977), + 94: uint16(25979), + 95: uint16(26034), + 96: uint16(26035), + 97: uint16(26293), + 98: uint16(26288), + 99: uint16(26281), + 100: uint16(26290), + 101: uint16(26295), + 102: uint16(26282), + 103: uint16(26287), + 104: uint16(27136), + 105: uint16(27142), + 106: uint16(27159), + 107: uint16(27109), + 108: uint16(27128), + 109: uint16(27157), + 110: uint16(27121), + 111: uint16(27108), + 112: uint16(27168), + 113: uint16(27135), + 114: uint16(27116), + 115: uint16(27106), + 116: uint16(27163), + 117: uint16(27165), + 118: uint16(27134), + 119: uint16(27175), + 120: uint16(27122), + 121: uint16(27118), + 122: uint16(27156), + 123: uint16(27127), + 124: uint16(27111), + 125: uint16(27200), + 126: uint16(27144), + 127: uint16(27110), + 128: uint16(27131), + 129: uint16(27149), + 130: uint16(27132), + 131: uint16(27115), + 132: uint16(27145), + 133: uint16(27140), + 134: uint16(27160), + 135: uint16(27173), + 136: uint16(27151), + 137: uint16(27126), + 138: uint16(27174), + 139: uint16(27143), + 140: uint16(27124), + 141: uint16(27158), + 142: uint16(27473), + 143: uint16(27557), + 144: uint16(27555), + 145: uint16(27554), + 146: uint16(27558), + 147: uint16(27649), + 148: uint16(27648), + 149: uint16(27647), + 150: uint16(27650), + 151: uint16(28481), + 152: uint16(28454), + 153: uint16(28542), + 154: uint16(28551), + 155: uint16(28614), + 156: uint16(28562), + }, + 69: { + 0: uint16(28557), + 1: uint16(28553), + 2: uint16(28556), + 3: uint16(28514), + 4: uint16(28495), + 5: uint16(28549), + 6: uint16(28506), + 7: uint16(28566), + 8: uint16(28534), + 9: uint16(28524), + 10: uint16(28546), + 11: uint16(28501), + 12: uint16(28530), + 13: uint16(28498), + 14: uint16(28496), + 15: uint16(28503), + 16: uint16(28564), + 17: uint16(28563), + 18: uint16(28509), + 19: uint16(28416), + 20: uint16(28513), + 21: uint16(28523), + 22: uint16(28541), + 23: uint16(28519), + 24: uint16(28560), + 25: uint16(28499), + 26: uint16(28555), + 27: uint16(28521), + 28: uint16(28543), + 29: uint16(28565), + 30: uint16(28515), + 31: uint16(28535), + 32: uint16(28522), + 33: uint16(28539), + 34: uint16(29106), + 35: uint16(29103), + 36: uint16(29083), + 37: uint16(29104), + 38: uint16(29088), + 39: uint16(29082), + 40: uint16(29097), + 41: uint16(29109), + 42: uint16(29085), + 43: uint16(29093), + 44: uint16(29086), + 45: uint16(29092), + 46: uint16(29089), + 47: uint16(29098), + 48: uint16(29084), + 49: uint16(29095), + 50: uint16(29107), + 51: uint16(29336), + 52: uint16(29338), + 53: uint16(29528), + 54: uint16(29522), + 55: uint16(29534), + 56: uint16(29535), + 57: uint16(29536), + 58: uint16(29533), + 59: uint16(29531), + 60: uint16(29537), + 61: uint16(29530), + 62: uint16(29529), + 63: uint16(29538), + 64: uint16(29831), + 65: uint16(29833), + 66: uint16(29834), + 67: uint16(29830), + 68: uint16(29825), + 69: uint16(29821), + 70: uint16(29829), + 71: uint16(29832), + 72: uint16(29820), + 73: uint16(29817), + 74: uint16(29960), + 75: uint16(29959), + 76: uint16(30078), + 77: uint16(30245), + 78: uint16(30238), + 79: uint16(30233), + 80: uint16(30237), + 81: uint16(30236), + 82: uint16(30243), + 83: uint16(30234), + 84: uint16(30248), + 85: uint16(30235), + 86: uint16(30364), + 87: uint16(30365), + 88: uint16(30366), + 89: uint16(30363), + 90: uint16(30605), + 91: uint16(30607), + 92: uint16(30601), + 93: uint16(30600), + 94: uint16(30925), + 95: uint16(30907), + 96: uint16(30927), + 97: uint16(30924), + 98: uint16(30929), + 99: uint16(30926), + 100: uint16(30932), + 101: uint16(30920), + 102: uint16(30915), + 103: uint16(30916), + 104: uint16(30921), + 105: uint16(31130), + 106: uint16(31137), + 107: uint16(31136), + 108: uint16(31132), + 109: uint16(31138), + 110: uint16(31131), + 111: uint16(27510), + 112: uint16(31289), + 113: uint16(31410), + 114: uint16(31412), + 115: uint16(31411), + 116: uint16(31671), + 117: uint16(31691), + 118: uint16(31678), + 119: uint16(31660), + 120: uint16(31694), + 121: uint16(31663), + 122: uint16(31673), + 123: uint16(31690), + 124: uint16(31669), + 125: uint16(31941), + 126: uint16(31944), + 127: uint16(31948), + 128: uint16(31947), + 129: uint16(32247), + 130: uint16(32219), + 131: uint16(32234), + 132: uint16(32231), + 133: uint16(32215), + 134: uint16(32225), + 135: uint16(32259), + 136: uint16(32250), + 137: uint16(32230), + 138: uint16(32246), + 139: uint16(32241), + 140: uint16(32240), + 141: uint16(32238), + 142: uint16(32223), + 143: uint16(32630), + 144: uint16(32684), + 145: uint16(32688), + 146: uint16(32685), + 147: uint16(32749), + 148: uint16(32747), + 149: uint16(32746), + 150: uint16(32748), + 151: uint16(32742), + 152: uint16(32744), + 153: uint16(32868), + 154: uint16(32871), + 155: uint16(33187), + 156: uint16(33183), + }, + 70: { + 0: uint16(33182), + 1: uint16(33173), + 2: uint16(33186), + 3: uint16(33177), + 4: uint16(33175), + 5: uint16(33302), + 6: uint16(33359), + 7: uint16(33363), + 8: uint16(33362), + 9: uint16(33360), + 10: uint16(33358), + 11: uint16(33361), + 12: uint16(34084), + 13: uint16(34107), + 14: uint16(34063), + 15: uint16(34048), + 16: uint16(34089), + 17: uint16(34062), + 18: uint16(34057), + 19: uint16(34061), + 20: uint16(34079), + 21: uint16(34058), + 22: uint16(34087), + 23: uint16(34076), + 24: uint16(34043), + 25: uint16(34091), + 26: uint16(34042), + 27: uint16(34056), + 28: uint16(34060), + 29: uint16(34036), + 30: uint16(34090), + 31: uint16(34034), + 32: uint16(34069), + 33: uint16(34039), + 34: uint16(34027), + 35: uint16(34035), + 36: uint16(34044), + 37: uint16(34066), + 38: uint16(34026), + 39: uint16(34025), + 40: uint16(34070), + 41: uint16(34046), + 42: uint16(34088), + 43: uint16(34077), + 44: uint16(34094), + 45: uint16(34050), + 46: uint16(34045), + 47: uint16(34078), + 48: uint16(34038), + 49: uint16(34097), + 50: uint16(34086), + 51: uint16(34023), + 52: uint16(34024), + 53: uint16(34032), + 54: uint16(34031), + 55: uint16(34041), + 56: uint16(34072), + 57: uint16(34080), + 58: uint16(34096), + 59: uint16(34059), + 60: uint16(34073), + 61: uint16(34095), + 62: uint16(34402), + 63: uint16(34646), + 64: uint16(34659), + 65: uint16(34660), + 66: uint16(34679), + 67: uint16(34785), + 68: uint16(34675), + 69: uint16(34648), + 70: uint16(34644), + 71: uint16(34651), + 72: uint16(34642), + 73: uint16(34657), + 74: uint16(34650), + 75: uint16(34641), + 76: uint16(34654), + 77: uint16(34669), + 78: uint16(34666), + 79: uint16(34640), + 80: uint16(34638), + 81: uint16(34655), + 82: uint16(34653), + 83: uint16(34671), + 84: uint16(34668), + 85: uint16(34682), + 86: uint16(34670), + 87: uint16(34652), + 88: uint16(34661), + 89: uint16(34639), + 90: uint16(34683), + 91: uint16(34677), + 92: uint16(34658), + 93: uint16(34663), + 94: uint16(34665), + 95: uint16(34906), + 96: uint16(35077), + 97: uint16(35084), + 98: uint16(35092), + 99: uint16(35083), + 100: uint16(35095), + 101: uint16(35096), + 102: uint16(35097), + 103: uint16(35078), + 104: uint16(35094), + 105: uint16(35089), + 106: uint16(35086), + 107: uint16(35081), + 108: uint16(35234), + 109: uint16(35236), + 110: uint16(35235), + 111: uint16(35309), + 112: uint16(35312), + 113: uint16(35308), + 114: uint16(35535), + 115: uint16(35526), + 116: uint16(35512), + 117: uint16(35539), + 118: uint16(35537), + 119: uint16(35540), + 120: uint16(35541), + 121: uint16(35515), + 122: uint16(35543), + 123: uint16(35518), + 124: uint16(35520), + 125: uint16(35525), + 126: uint16(35544), + 127: uint16(35523), + 128: uint16(35514), + 129: uint16(35517), + 130: uint16(35545), + 131: uint16(35902), + 132: uint16(35917), + 133: uint16(35983), + 134: uint16(36069), + 135: uint16(36063), + 136: uint16(36057), + 137: uint16(36072), + 138: uint16(36058), + 139: uint16(36061), + 140: uint16(36071), + 141: uint16(36256), + 142: uint16(36252), + 143: uint16(36257), + 144: uint16(36251), + 145: uint16(36384), + 146: uint16(36387), + 147: uint16(36389), + 148: uint16(36388), + 149: uint16(36398), + 150: uint16(36373), + 151: uint16(36379), + 152: uint16(36374), + 153: uint16(36369), + 154: uint16(36377), + 155: uint16(36390), + 156: uint16(36391), + }, + 71: { + 0: uint16(36372), + 1: uint16(36370), + 2: uint16(36376), + 3: uint16(36371), + 4: uint16(36380), + 5: uint16(36375), + 6: uint16(36378), + 7: uint16(36652), + 8: uint16(36644), + 9: uint16(36632), + 10: uint16(36634), + 11: uint16(36640), + 12: uint16(36643), + 13: uint16(36630), + 14: uint16(36631), + 15: uint16(36979), + 16: uint16(36976), + 17: uint16(36975), + 18: uint16(36967), + 19: uint16(36971), + 20: uint16(37167), + 21: uint16(37163), + 22: uint16(37161), + 23: uint16(37162), + 24: uint16(37170), + 25: uint16(37158), + 26: uint16(37166), + 27: uint16(37253), + 28: uint16(37254), + 29: uint16(37258), + 30: uint16(37249), + 31: uint16(37250), + 32: uint16(37252), + 33: uint16(37248), + 34: uint16(37584), + 35: uint16(37571), + 36: uint16(37572), + 37: uint16(37568), + 38: uint16(37593), + 39: uint16(37558), + 40: uint16(37583), + 41: uint16(37617), + 42: uint16(37599), + 43: uint16(37592), + 44: uint16(37609), + 45: uint16(37591), + 46: uint16(37597), + 47: uint16(37580), + 48: uint16(37615), + 49: uint16(37570), + 50: uint16(37608), + 51: uint16(37578), + 52: uint16(37576), + 53: uint16(37582), + 54: uint16(37606), + 55: uint16(37581), + 56: uint16(37589), + 57: uint16(37577), + 58: uint16(37600), + 59: uint16(37598), + 60: uint16(37607), + 61: uint16(37585), + 62: uint16(37587), + 63: uint16(37557), + 64: uint16(37601), + 65: uint16(37574), + 66: uint16(37556), + 67: uint16(38268), + 68: uint16(38316), + 69: uint16(38315), + 70: uint16(38318), + 71: uint16(38320), + 72: uint16(38564), + 73: uint16(38562), + 74: uint16(38611), + 75: uint16(38661), + 76: uint16(38664), + 77: uint16(38658), + 78: uint16(38746), + 79: uint16(38794), + 80: uint16(38798), + 81: uint16(38792), + 82: uint16(38864), + 83: uint16(38863), + 84: uint16(38942), + 85: uint16(38941), + 86: uint16(38950), + 87: uint16(38953), + 88: uint16(38952), + 89: uint16(38944), + 90: uint16(38939), + 91: uint16(38951), + 92: uint16(39090), + 93: uint16(39176), + 94: uint16(39162), + 95: uint16(39185), + 96: uint16(39188), + 97: uint16(39190), + 98: uint16(39191), + 99: uint16(39189), + 100: uint16(39388), + 101: uint16(39373), + 102: uint16(39375), + 103: uint16(39379), + 104: uint16(39380), + 105: uint16(39374), + 106: uint16(39369), + 107: uint16(39382), + 108: uint16(39384), + 109: uint16(39371), + 110: uint16(39383), + 111: uint16(39372), + 112: uint16(39603), + 113: uint16(39660), + 114: uint16(39659), + 115: uint16(39667), + 116: uint16(39666), + 117: uint16(39665), + 118: uint16(39750), + 119: uint16(39747), + 120: uint16(39783), + 121: uint16(39796), + 122: uint16(39793), + 123: uint16(39782), + 124: uint16(39798), + 125: uint16(39797), + 126: uint16(39792), + 127: uint16(39784), + 128: uint16(39780), + 129: uint16(39788), + 130: uint16(40188), + 131: uint16(40186), + 132: uint16(40189), + 133: uint16(40191), + 134: uint16(40183), + 135: uint16(40199), + 136: uint16(40192), + 137: uint16(40185), + 138: uint16(40187), + 139: uint16(40200), + 140: uint16(40197), + 141: uint16(40196), + 142: uint16(40579), + 143: uint16(40659), + 144: uint16(40719), + 145: uint16(40720), + 146: uint16(20764), + 147: uint16(20755), + 148: uint16(20759), + 149: uint16(20762), + 150: uint16(20753), + 151: uint16(20958), + 152: uint16(21300), + 153: uint16(21473), + 154: uint16(22128), + 155: uint16(22112), + 156: uint16(22126), + }, + 72: { + 0: uint16(22131), + 1: uint16(22118), + 2: uint16(22115), + 3: uint16(22125), + 4: uint16(22130), + 5: uint16(22110), + 6: uint16(22135), + 7: uint16(22300), + 8: uint16(22299), + 9: uint16(22728), + 10: uint16(22717), + 11: uint16(22729), + 12: uint16(22719), + 13: uint16(22714), + 14: uint16(22722), + 15: uint16(22716), + 16: uint16(22726), + 17: uint16(23319), + 18: uint16(23321), + 19: uint16(23323), + 20: uint16(23329), + 21: uint16(23316), + 22: uint16(23315), + 23: uint16(23312), + 24: uint16(23318), + 25: uint16(23336), + 26: uint16(23322), + 27: uint16(23328), + 28: uint16(23326), + 29: uint16(23535), + 30: uint16(23980), + 31: uint16(23985), + 32: uint16(23977), + 33: uint16(23975), + 34: uint16(23989), + 35: uint16(23984), + 36: uint16(23982), + 37: uint16(23978), + 38: uint16(23976), + 39: uint16(23986), + 40: uint16(23981), + 41: uint16(23983), + 42: uint16(23988), + 43: uint16(24167), + 44: uint16(24168), + 45: uint16(24166), + 46: uint16(24175), + 47: uint16(24297), + 48: uint16(24295), + 49: uint16(24294), + 50: uint16(24296), + 51: uint16(24293), + 52: uint16(24395), + 53: uint16(24508), + 54: uint16(24989), + 55: uint16(25000), + 56: uint16(24982), + 57: uint16(25029), + 58: uint16(25012), + 59: uint16(25030), + 60: uint16(25025), + 61: uint16(25036), + 62: uint16(25018), + 63: uint16(25023), + 64: uint16(25016), + 65: uint16(24972), + 66: uint16(25815), + 67: uint16(25814), + 68: uint16(25808), + 69: uint16(25807), + 70: uint16(25801), + 71: uint16(25789), + 72: uint16(25737), + 73: uint16(25795), + 74: uint16(25819), + 75: uint16(25843), + 76: uint16(25817), + 77: uint16(25907), + 78: uint16(25983), + 79: uint16(25980), + 80: uint16(26018), + 81: uint16(26312), + 82: uint16(26302), + 83: uint16(26304), + 84: uint16(26314), + 85: uint16(26315), + 86: uint16(26319), + 87: uint16(26301), + 88: uint16(26299), + 89: uint16(26298), + 90: uint16(26316), + 91: uint16(26403), + 92: uint16(27188), + 93: uint16(27238), + 94: uint16(27209), + 95: uint16(27239), + 96: uint16(27186), + 97: uint16(27240), + 98: uint16(27198), + 99: uint16(27229), + 100: uint16(27245), + 101: uint16(27254), + 102: uint16(27227), + 103: uint16(27217), + 104: uint16(27176), + 105: uint16(27226), + 106: uint16(27195), + 107: uint16(27199), + 108: uint16(27201), + 109: uint16(27242), + 110: uint16(27236), + 111: uint16(27216), + 112: uint16(27215), + 113: uint16(27220), + 114: uint16(27247), + 115: uint16(27241), + 116: uint16(27232), + 117: uint16(27196), + 118: uint16(27230), + 119: uint16(27222), + 120: uint16(27221), + 121: uint16(27213), + 122: uint16(27214), + 123: uint16(27206), + 124: uint16(27477), + 125: uint16(27476), + 126: uint16(27478), + 127: uint16(27559), + 128: uint16(27562), + 129: uint16(27563), + 130: uint16(27592), + 131: uint16(27591), + 132: uint16(27652), + 133: uint16(27651), + 134: uint16(27654), + 135: uint16(28589), + 136: uint16(28619), + 137: uint16(28579), + 138: uint16(28615), + 139: uint16(28604), + 140: uint16(28622), + 141: uint16(28616), + 142: uint16(28510), + 143: uint16(28612), + 144: uint16(28605), + 145: uint16(28574), + 146: uint16(28618), + 147: uint16(28584), + 148: uint16(28676), + 149: uint16(28581), + 150: uint16(28590), + 151: uint16(28602), + 152: uint16(28588), + 153: uint16(28586), + 154: uint16(28623), + 155: uint16(28607), + 156: uint16(28600), + }, + 73: { + 0: uint16(28578), + 1: uint16(28617), + 2: uint16(28587), + 3: uint16(28621), + 4: uint16(28591), + 5: uint16(28594), + 6: uint16(28592), + 7: uint16(29125), + 8: uint16(29122), + 9: uint16(29119), + 10: uint16(29112), + 11: uint16(29142), + 12: uint16(29120), + 13: uint16(29121), + 14: uint16(29131), + 15: uint16(29140), + 16: uint16(29130), + 17: uint16(29127), + 18: uint16(29135), + 19: uint16(29117), + 20: uint16(29144), + 21: uint16(29116), + 22: uint16(29126), + 23: uint16(29146), + 24: uint16(29147), + 25: uint16(29341), + 26: uint16(29342), + 27: uint16(29545), + 28: uint16(29542), + 29: uint16(29543), + 30: uint16(29548), + 31: uint16(29541), + 32: uint16(29547), + 33: uint16(29546), + 34: uint16(29823), + 35: uint16(29850), + 36: uint16(29856), + 37: uint16(29844), + 38: uint16(29842), + 39: uint16(29845), + 40: uint16(29857), + 41: uint16(29963), + 42: uint16(30080), + 43: uint16(30255), + 44: uint16(30253), + 45: uint16(30257), + 46: uint16(30269), + 47: uint16(30259), + 48: uint16(30268), + 49: uint16(30261), + 50: uint16(30258), + 51: uint16(30256), + 52: uint16(30395), + 53: uint16(30438), + 54: uint16(30618), + 55: uint16(30621), + 56: uint16(30625), + 57: uint16(30620), + 58: uint16(30619), + 59: uint16(30626), + 60: uint16(30627), + 61: uint16(30613), + 62: uint16(30617), + 63: uint16(30615), + 64: uint16(30941), + 65: uint16(30953), + 66: uint16(30949), + 67: uint16(30954), + 68: uint16(30942), + 69: uint16(30947), + 70: uint16(30939), + 71: uint16(30945), + 72: uint16(30946), + 73: uint16(30957), + 74: uint16(30943), + 75: uint16(30944), + 76: uint16(31140), + 77: uint16(31300), + 78: uint16(31304), + 79: uint16(31303), + 80: uint16(31414), + 81: uint16(31416), + 82: uint16(31413), + 83: uint16(31409), + 84: uint16(31415), + 85: uint16(31710), + 86: uint16(31715), + 87: uint16(31719), + 88: uint16(31709), + 89: uint16(31701), + 90: uint16(31717), + 91: uint16(31706), + 92: uint16(31720), + 93: uint16(31737), + 94: uint16(31700), + 95: uint16(31722), + 96: uint16(31714), + 97: uint16(31708), + 98: uint16(31723), + 99: uint16(31704), + 100: uint16(31711), + 101: uint16(31954), + 102: uint16(31956), + 103: uint16(31959), + 104: uint16(31952), + 105: uint16(31953), + 106: uint16(32274), + 107: uint16(32289), + 108: uint16(32279), + 109: uint16(32268), + 110: uint16(32287), + 111: uint16(32288), + 112: uint16(32275), + 113: uint16(32270), + 114: uint16(32284), + 115: uint16(32277), + 116: uint16(32282), + 117: uint16(32290), + 118: uint16(32267), + 119: uint16(32271), + 120: uint16(32278), + 121: uint16(32269), + 122: uint16(32276), + 123: uint16(32293), + 124: uint16(32292), + 125: uint16(32579), + 126: uint16(32635), + 127: uint16(32636), + 128: uint16(32634), + 129: uint16(32689), + 130: uint16(32751), + 131: uint16(32810), + 132: uint16(32809), + 133: uint16(32876), + 134: uint16(33201), + 135: uint16(33190), + 136: uint16(33198), + 137: uint16(33209), + 138: uint16(33205), + 139: uint16(33195), + 140: uint16(33200), + 141: uint16(33196), + 142: uint16(33204), + 143: uint16(33202), + 144: uint16(33207), + 145: uint16(33191), + 146: uint16(33266), + 147: uint16(33365), + 148: uint16(33366), + 149: uint16(33367), + 150: uint16(34134), + 151: uint16(34117), + 152: uint16(34155), + 153: uint16(34125), + 154: uint16(34131), + 155: uint16(34145), + 156: uint16(34136), + }, + 74: { + 0: uint16(34112), + 1: uint16(34118), + 2: uint16(34148), + 3: uint16(34113), + 4: uint16(34146), + 5: uint16(34116), + 6: uint16(34129), + 7: uint16(34119), + 8: uint16(34147), + 9: uint16(34110), + 10: uint16(34139), + 11: uint16(34161), + 12: uint16(34126), + 13: uint16(34158), + 14: uint16(34165), + 15: uint16(34133), + 16: uint16(34151), + 17: uint16(34144), + 18: uint16(34188), + 19: uint16(34150), + 20: uint16(34141), + 21: uint16(34132), + 22: uint16(34149), + 23: uint16(34156), + 24: uint16(34403), + 25: uint16(34405), + 26: uint16(34404), + 27: uint16(34715), + 28: uint16(34703), + 29: uint16(34711), + 30: uint16(34707), + 31: uint16(34706), + 32: uint16(34696), + 33: uint16(34689), + 34: uint16(34710), + 35: uint16(34712), + 36: uint16(34681), + 37: uint16(34695), + 38: uint16(34723), + 39: uint16(34693), + 40: uint16(34704), + 41: uint16(34705), + 42: uint16(34717), + 43: uint16(34692), + 44: uint16(34708), + 45: uint16(34716), + 46: uint16(34714), + 47: uint16(34697), + 48: uint16(35102), + 49: uint16(35110), + 50: uint16(35120), + 51: uint16(35117), + 52: uint16(35118), + 53: uint16(35111), + 54: uint16(35121), + 55: uint16(35106), + 56: uint16(35113), + 57: uint16(35107), + 58: uint16(35119), + 59: uint16(35116), + 60: uint16(35103), + 61: uint16(35313), + 62: uint16(35552), + 63: uint16(35554), + 64: uint16(35570), + 65: uint16(35572), + 66: uint16(35573), + 67: uint16(35549), + 68: uint16(35604), + 69: uint16(35556), + 70: uint16(35551), + 71: uint16(35568), + 72: uint16(35528), + 73: uint16(35550), + 74: uint16(35553), + 75: uint16(35560), + 76: uint16(35583), + 77: uint16(35567), + 78: uint16(35579), + 79: uint16(35985), + 80: uint16(35986), + 81: uint16(35984), + 82: uint16(36085), + 83: uint16(36078), + 84: uint16(36081), + 85: uint16(36080), + 86: uint16(36083), + 87: uint16(36204), + 88: uint16(36206), + 89: uint16(36261), + 90: uint16(36263), + 91: uint16(36403), + 92: uint16(36414), + 93: uint16(36408), + 94: uint16(36416), + 95: uint16(36421), + 96: uint16(36406), + 97: uint16(36412), + 98: uint16(36413), + 99: uint16(36417), + 100: uint16(36400), + 101: uint16(36415), + 102: uint16(36541), + 103: uint16(36662), + 104: uint16(36654), + 105: uint16(36661), + 106: uint16(36658), + 107: uint16(36665), + 108: uint16(36663), + 109: uint16(36660), + 110: uint16(36982), + 111: uint16(36985), + 112: uint16(36987), + 113: uint16(36998), + 114: uint16(37114), + 115: uint16(37171), + 116: uint16(37173), + 117: uint16(37174), + 118: uint16(37267), + 119: uint16(37264), + 120: uint16(37265), + 121: uint16(37261), + 122: uint16(37263), + 123: uint16(37671), + 124: uint16(37662), + 125: uint16(37640), + 126: uint16(37663), + 127: uint16(37638), + 128: uint16(37647), + 129: uint16(37754), + 130: uint16(37688), + 131: uint16(37692), + 132: uint16(37659), + 133: uint16(37667), + 134: uint16(37650), + 135: uint16(37633), + 136: uint16(37702), + 137: uint16(37677), + 138: uint16(37646), + 139: uint16(37645), + 140: uint16(37579), + 141: uint16(37661), + 142: uint16(37626), + 143: uint16(37669), + 144: uint16(37651), + 145: uint16(37625), + 146: uint16(37623), + 147: uint16(37684), + 148: uint16(37634), + 149: uint16(37668), + 150: uint16(37631), + 151: uint16(37673), + 152: uint16(37689), + 153: uint16(37685), + 154: uint16(37674), + 155: uint16(37652), + 156: uint16(37644), + }, + 75: { + 0: uint16(37643), + 1: uint16(37630), + 2: uint16(37641), + 3: uint16(37632), + 4: uint16(37627), + 5: uint16(37654), + 6: uint16(38332), + 7: uint16(38349), + 8: uint16(38334), + 9: uint16(38329), + 10: uint16(38330), + 11: uint16(38326), + 12: uint16(38335), + 13: uint16(38325), + 14: uint16(38333), + 15: uint16(38569), + 16: uint16(38612), + 17: uint16(38667), + 18: uint16(38674), + 19: uint16(38672), + 20: uint16(38809), + 21: uint16(38807), + 22: uint16(38804), + 23: uint16(38896), + 24: uint16(38904), + 25: uint16(38965), + 26: uint16(38959), + 27: uint16(38962), + 28: uint16(39204), + 29: uint16(39199), + 30: uint16(39207), + 31: uint16(39209), + 32: uint16(39326), + 33: uint16(39406), + 34: uint16(39404), + 35: uint16(39397), + 36: uint16(39396), + 37: uint16(39408), + 38: uint16(39395), + 39: uint16(39402), + 40: uint16(39401), + 41: uint16(39399), + 42: uint16(39609), + 43: uint16(39615), + 44: uint16(39604), + 45: uint16(39611), + 46: uint16(39670), + 47: uint16(39674), + 48: uint16(39673), + 49: uint16(39671), + 50: uint16(39731), + 51: uint16(39808), + 52: uint16(39813), + 53: uint16(39815), + 54: uint16(39804), + 55: uint16(39806), + 56: uint16(39803), + 57: uint16(39810), + 58: uint16(39827), + 59: uint16(39826), + 60: uint16(39824), + 61: uint16(39802), + 62: uint16(39829), + 63: uint16(39805), + 64: uint16(39816), + 65: uint16(40229), + 66: uint16(40215), + 67: uint16(40224), + 68: uint16(40222), + 69: uint16(40212), + 70: uint16(40233), + 71: uint16(40221), + 72: uint16(40216), + 73: uint16(40226), + 74: uint16(40208), + 75: uint16(40217), + 76: uint16(40223), + 77: uint16(40584), + 78: uint16(40582), + 79: uint16(40583), + 80: uint16(40622), + 81: uint16(40621), + 82: uint16(40661), + 83: uint16(40662), + 84: uint16(40698), + 85: uint16(40722), + 86: uint16(40765), + 87: uint16(20774), + 88: uint16(20773), + 89: uint16(20770), + 90: uint16(20772), + 91: uint16(20768), + 92: uint16(20777), + 93: uint16(21236), + 94: uint16(22163), + 95: uint16(22156), + 96: uint16(22157), + 97: uint16(22150), + 98: uint16(22148), + 99: uint16(22147), + 100: uint16(22142), + 101: uint16(22146), + 102: uint16(22143), + 103: uint16(22145), + 104: uint16(22742), + 105: uint16(22740), + 106: uint16(22735), + 107: uint16(22738), + 108: uint16(23341), + 109: uint16(23333), + 110: uint16(23346), + 111: uint16(23331), + 112: uint16(23340), + 113: uint16(23335), + 114: uint16(23334), + 115: uint16(23343), + 116: uint16(23342), + 117: uint16(23419), + 118: uint16(23537), + 119: uint16(23538), + 120: uint16(23991), + 121: uint16(24172), + 122: uint16(24170), + 123: uint16(24510), + 124: uint16(24507), + 125: uint16(25027), + 126: uint16(25013), + 127: uint16(25020), + 128: uint16(25063), + 129: uint16(25056), + 130: uint16(25061), + 131: uint16(25060), + 132: uint16(25064), + 133: uint16(25054), + 134: uint16(25839), + 135: uint16(25833), + 136: uint16(25827), + 137: uint16(25835), + 138: uint16(25828), + 139: uint16(25832), + 140: uint16(25985), + 141: uint16(25984), + 142: uint16(26038), + 143: uint16(26074), + 144: uint16(26322), + 145: uint16(27277), + 146: uint16(27286), + 147: uint16(27265), + 148: uint16(27301), + 149: uint16(27273), + 150: uint16(27295), + 151: uint16(27291), + 152: uint16(27297), + 153: uint16(27294), + 154: uint16(27271), + 155: uint16(27283), + 156: uint16(27278), + }, + 76: { + 0: uint16(27285), + 1: uint16(27267), + 2: uint16(27304), + 3: uint16(27300), + 4: uint16(27281), + 5: uint16(27263), + 6: uint16(27302), + 7: uint16(27290), + 8: uint16(27269), + 9: uint16(27276), + 10: uint16(27282), + 11: uint16(27483), + 12: uint16(27565), + 13: uint16(27657), + 14: uint16(28620), + 15: uint16(28585), + 16: uint16(28660), + 17: uint16(28628), + 18: uint16(28643), + 19: uint16(28636), + 20: uint16(28653), + 21: uint16(28647), + 22: uint16(28646), + 23: uint16(28638), + 24: uint16(28658), + 25: uint16(28637), + 26: uint16(28642), + 27: uint16(28648), + 28: uint16(29153), + 29: uint16(29169), + 30: uint16(29160), + 31: uint16(29170), + 32: uint16(29156), + 33: uint16(29168), + 34: uint16(29154), + 35: uint16(29555), + 36: uint16(29550), + 37: uint16(29551), + 38: uint16(29847), + 39: uint16(29874), + 40: uint16(29867), + 41: uint16(29840), + 42: uint16(29866), + 43: uint16(29869), + 44: uint16(29873), + 45: uint16(29861), + 46: uint16(29871), + 47: uint16(29968), + 48: uint16(29969), + 49: uint16(29970), + 50: uint16(29967), + 51: uint16(30084), + 52: uint16(30275), + 53: uint16(30280), + 54: uint16(30281), + 55: uint16(30279), + 56: uint16(30372), + 57: uint16(30441), + 58: uint16(30645), + 59: uint16(30635), + 60: uint16(30642), + 61: uint16(30647), + 62: uint16(30646), + 63: uint16(30644), + 64: uint16(30641), + 65: uint16(30632), + 66: uint16(30704), + 67: uint16(30963), + 68: uint16(30973), + 69: uint16(30978), + 70: uint16(30971), + 71: uint16(30972), + 72: uint16(30962), + 73: uint16(30981), + 74: uint16(30969), + 75: uint16(30974), + 76: uint16(30980), + 77: uint16(31147), + 78: uint16(31144), + 79: uint16(31324), + 80: uint16(31323), + 81: uint16(31318), + 82: uint16(31320), + 83: uint16(31316), + 84: uint16(31322), + 85: uint16(31422), + 86: uint16(31424), + 87: uint16(31425), + 88: uint16(31749), + 89: uint16(31759), + 90: uint16(31730), + 91: uint16(31744), + 92: uint16(31743), + 93: uint16(31739), + 94: uint16(31758), + 95: uint16(31732), + 96: uint16(31755), + 97: uint16(31731), + 98: uint16(31746), + 99: uint16(31753), + 100: uint16(31747), + 101: uint16(31745), + 102: uint16(31736), + 103: uint16(31741), + 104: uint16(31750), + 105: uint16(31728), + 106: uint16(31729), + 107: uint16(31760), + 108: uint16(31754), + 109: uint16(31976), + 110: uint16(32301), + 111: uint16(32316), + 112: uint16(32322), + 113: uint16(32307), + 114: uint16(38984), + 115: uint16(32312), + 116: uint16(32298), + 117: uint16(32329), + 118: uint16(32320), + 119: uint16(32327), + 120: uint16(32297), + 121: uint16(32332), + 122: uint16(32304), + 123: uint16(32315), + 124: uint16(32310), + 125: uint16(32324), + 126: uint16(32314), + 127: uint16(32581), + 128: uint16(32639), + 129: uint16(32638), + 130: uint16(32637), + 131: uint16(32756), + 132: uint16(32754), + 133: uint16(32812), + 134: uint16(33211), + 135: uint16(33220), + 136: uint16(33228), + 137: uint16(33226), + 138: uint16(33221), + 139: uint16(33223), + 140: uint16(33212), + 141: uint16(33257), + 142: uint16(33371), + 143: uint16(33370), + 144: uint16(33372), + 145: uint16(34179), + 146: uint16(34176), + 147: uint16(34191), + 148: uint16(34215), + 149: uint16(34197), + 150: uint16(34208), + 151: uint16(34187), + 152: uint16(34211), + 153: uint16(34171), + 154: uint16(34212), + 155: uint16(34202), + 156: uint16(34206), + }, + 77: { + 0: uint16(34167), + 1: uint16(34172), + 2: uint16(34185), + 3: uint16(34209), + 4: uint16(34170), + 5: uint16(34168), + 6: uint16(34135), + 7: uint16(34190), + 8: uint16(34198), + 9: uint16(34182), + 10: uint16(34189), + 11: uint16(34201), + 12: uint16(34205), + 13: uint16(34177), + 14: uint16(34210), + 15: uint16(34178), + 16: uint16(34184), + 17: uint16(34181), + 18: uint16(34169), + 19: uint16(34166), + 20: uint16(34200), + 21: uint16(34192), + 22: uint16(34207), + 23: uint16(34408), + 24: uint16(34750), + 25: uint16(34730), + 26: uint16(34733), + 27: uint16(34757), + 28: uint16(34736), + 29: uint16(34732), + 30: uint16(34745), + 31: uint16(34741), + 32: uint16(34748), + 33: uint16(34734), + 34: uint16(34761), + 35: uint16(34755), + 36: uint16(34754), + 37: uint16(34764), + 38: uint16(34743), + 39: uint16(34735), + 40: uint16(34756), + 41: uint16(34762), + 42: uint16(34740), + 43: uint16(34742), + 44: uint16(34751), + 45: uint16(34744), + 46: uint16(34749), + 47: uint16(34782), + 48: uint16(34738), + 49: uint16(35125), + 50: uint16(35123), + 51: uint16(35132), + 52: uint16(35134), + 53: uint16(35137), + 54: uint16(35154), + 55: uint16(35127), + 56: uint16(35138), + 57: uint16(35245), + 58: uint16(35247), + 59: uint16(35246), + 60: uint16(35314), + 61: uint16(35315), + 62: uint16(35614), + 63: uint16(35608), + 64: uint16(35606), + 65: uint16(35601), + 66: uint16(35589), + 67: uint16(35595), + 68: uint16(35618), + 69: uint16(35599), + 70: uint16(35602), + 71: uint16(35605), + 72: uint16(35591), + 73: uint16(35597), + 74: uint16(35592), + 75: uint16(35590), + 76: uint16(35612), + 77: uint16(35603), + 78: uint16(35610), + 79: uint16(35919), + 80: uint16(35952), + 81: uint16(35954), + 82: uint16(35953), + 83: uint16(35951), + 84: uint16(35989), + 85: uint16(35988), + 86: uint16(36089), + 87: uint16(36207), + 88: uint16(36430), + 89: uint16(36429), + 90: uint16(36435), + 91: uint16(36432), + 92: uint16(36428), + 93: uint16(36423), + 94: uint16(36675), + 95: uint16(36672), + 96: uint16(36997), + 97: uint16(36990), + 98: uint16(37176), + 99: uint16(37274), + 100: uint16(37282), + 101: uint16(37275), + 102: uint16(37273), + 103: uint16(37279), + 104: uint16(37281), + 105: uint16(37277), + 106: uint16(37280), + 107: uint16(37793), + 108: uint16(37763), + 109: uint16(37807), + 110: uint16(37732), + 111: uint16(37718), + 112: uint16(37703), + 113: uint16(37756), + 114: uint16(37720), + 115: uint16(37724), + 116: uint16(37750), + 117: uint16(37705), + 118: uint16(37712), + 119: uint16(37713), + 120: uint16(37728), + 121: uint16(37741), + 122: uint16(37775), + 123: uint16(37708), + 124: uint16(37738), + 125: uint16(37753), + 126: uint16(37719), + 127: uint16(37717), + 128: uint16(37714), + 129: uint16(37711), + 130: uint16(37745), + 131: uint16(37751), + 132: uint16(37755), + 133: uint16(37729), + 134: uint16(37726), + 135: uint16(37731), + 136: uint16(37735), + 137: uint16(37760), + 138: uint16(37710), + 139: uint16(37721), + 140: uint16(38343), + 141: uint16(38336), + 142: uint16(38345), + 143: uint16(38339), + 144: uint16(38341), + 145: uint16(38327), + 146: uint16(38574), + 147: uint16(38576), + 148: uint16(38572), + 149: uint16(38688), + 150: uint16(38687), + 151: uint16(38680), + 152: uint16(38685), + 153: uint16(38681), + 154: uint16(38810), + 155: uint16(38817), + 156: uint16(38812), + }, + 78: { + 0: uint16(38814), + 1: uint16(38813), + 2: uint16(38869), + 3: uint16(38868), + 4: uint16(38897), + 5: uint16(38977), + 6: uint16(38980), + 7: uint16(38986), + 8: uint16(38985), + 9: uint16(38981), + 10: uint16(38979), + 11: uint16(39205), + 12: uint16(39211), + 13: uint16(39212), + 14: uint16(39210), + 15: uint16(39219), + 16: uint16(39218), + 17: uint16(39215), + 18: uint16(39213), + 19: uint16(39217), + 20: uint16(39216), + 21: uint16(39320), + 22: uint16(39331), + 23: uint16(39329), + 24: uint16(39426), + 25: uint16(39418), + 26: uint16(39412), + 27: uint16(39415), + 28: uint16(39417), + 29: uint16(39416), + 30: uint16(39414), + 31: uint16(39419), + 32: uint16(39421), + 33: uint16(39422), + 34: uint16(39420), + 35: uint16(39427), + 36: uint16(39614), + 37: uint16(39678), + 38: uint16(39677), + 39: uint16(39681), + 40: uint16(39676), + 41: uint16(39752), + 42: uint16(39834), + 43: uint16(39848), + 44: uint16(39838), + 45: uint16(39835), + 46: uint16(39846), + 47: uint16(39841), + 48: uint16(39845), + 49: uint16(39844), + 50: uint16(39814), + 51: uint16(39842), + 52: uint16(39840), + 53: uint16(39855), + 54: uint16(40243), + 55: uint16(40257), + 56: uint16(40295), + 57: uint16(40246), + 58: uint16(40238), + 59: uint16(40239), + 60: uint16(40241), + 61: uint16(40248), + 62: uint16(40240), + 63: uint16(40261), + 64: uint16(40258), + 65: uint16(40259), + 66: uint16(40254), + 67: uint16(40247), + 68: uint16(40256), + 69: uint16(40253), + 70: uint16(32757), + 71: uint16(40237), + 72: uint16(40586), + 73: uint16(40585), + 74: uint16(40589), + 75: uint16(40624), + 76: uint16(40648), + 77: uint16(40666), + 78: uint16(40699), + 79: uint16(40703), + 80: uint16(40740), + 81: uint16(40739), + 82: uint16(40738), + 83: uint16(40788), + 84: uint16(40864), + 85: uint16(20785), + 86: uint16(20781), + 87: uint16(20782), + 88: uint16(22168), + 89: uint16(22172), + 90: uint16(22167), + 91: uint16(22170), + 92: uint16(22173), + 93: uint16(22169), + 94: uint16(22896), + 95: uint16(23356), + 96: uint16(23657), + 97: uint16(23658), + 98: uint16(24000), + 99: uint16(24173), + 100: uint16(24174), + 101: uint16(25048), + 102: uint16(25055), + 103: uint16(25069), + 104: uint16(25070), + 105: uint16(25073), + 106: uint16(25066), + 107: uint16(25072), + 108: uint16(25067), + 109: uint16(25046), + 110: uint16(25065), + 111: uint16(25855), + 112: uint16(25860), + 113: uint16(25853), + 114: uint16(25848), + 115: uint16(25857), + 116: uint16(25859), + 117: uint16(25852), + 118: uint16(26004), + 119: uint16(26075), + 120: uint16(26330), + 121: uint16(26331), + 122: uint16(26328), + 123: uint16(27333), + 124: uint16(27321), + 125: uint16(27325), + 126: uint16(27361), + 127: uint16(27334), + 128: uint16(27322), + 129: uint16(27318), + 130: uint16(27319), + 131: uint16(27335), + 132: uint16(27316), + 133: uint16(27309), + 134: uint16(27486), + 135: uint16(27593), + 136: uint16(27659), + 137: uint16(28679), + 138: uint16(28684), + 139: uint16(28685), + 140: uint16(28673), + 141: uint16(28677), + 142: uint16(28692), + 143: uint16(28686), + 144: uint16(28671), + 145: uint16(28672), + 146: uint16(28667), + 147: uint16(28710), + 148: uint16(28668), + 149: uint16(28663), + 150: uint16(28682), + 151: uint16(29185), + 152: uint16(29183), + 153: uint16(29177), + 154: uint16(29187), + 155: uint16(29181), + 156: uint16(29558), + }, + 79: { + 0: uint16(29880), + 1: uint16(29888), + 2: uint16(29877), + 3: uint16(29889), + 4: uint16(29886), + 5: uint16(29878), + 6: uint16(29883), + 7: uint16(29890), + 8: uint16(29972), + 9: uint16(29971), + 10: uint16(30300), + 11: uint16(30308), + 12: uint16(30297), + 13: uint16(30288), + 14: uint16(30291), + 15: uint16(30295), + 16: uint16(30298), + 17: uint16(30374), + 18: uint16(30397), + 19: uint16(30444), + 20: uint16(30658), + 21: uint16(30650), + 22: uint16(30975), + 23: uint16(30988), + 24: uint16(30995), + 25: uint16(30996), + 26: uint16(30985), + 27: uint16(30992), + 28: uint16(30994), + 29: uint16(30993), + 30: uint16(31149), + 31: uint16(31148), + 32: uint16(31327), + 33: uint16(31772), + 34: uint16(31785), + 35: uint16(31769), + 36: uint16(31776), + 37: uint16(31775), + 38: uint16(31789), + 39: uint16(31773), + 40: uint16(31782), + 41: uint16(31784), + 42: uint16(31778), + 43: uint16(31781), + 44: uint16(31792), + 45: uint16(32348), + 46: uint16(32336), + 47: uint16(32342), + 48: uint16(32355), + 49: uint16(32344), + 50: uint16(32354), + 51: uint16(32351), + 52: uint16(32337), + 53: uint16(32352), + 54: uint16(32343), + 55: uint16(32339), + 56: uint16(32693), + 57: uint16(32691), + 58: uint16(32759), + 59: uint16(32760), + 60: uint16(32885), + 61: uint16(33233), + 62: uint16(33234), + 63: uint16(33232), + 64: uint16(33375), + 65: uint16(33374), + 66: uint16(34228), + 67: uint16(34246), + 68: uint16(34240), + 69: uint16(34243), + 70: uint16(34242), + 71: uint16(34227), + 72: uint16(34229), + 73: uint16(34237), + 74: uint16(34247), + 75: uint16(34244), + 76: uint16(34239), + 77: uint16(34251), + 78: uint16(34254), + 79: uint16(34248), + 80: uint16(34245), + 81: uint16(34225), + 82: uint16(34230), + 83: uint16(34258), + 84: uint16(34340), + 85: uint16(34232), + 86: uint16(34231), + 87: uint16(34238), + 88: uint16(34409), + 89: uint16(34791), + 90: uint16(34790), + 91: uint16(34786), + 92: uint16(34779), + 93: uint16(34795), + 94: uint16(34794), + 95: uint16(34789), + 96: uint16(34783), + 97: uint16(34803), + 98: uint16(34788), + 99: uint16(34772), + 100: uint16(34780), + 101: uint16(34771), + 102: uint16(34797), + 103: uint16(34776), + 104: uint16(34787), + 105: uint16(34724), + 106: uint16(34775), + 107: uint16(34777), + 108: uint16(34817), + 109: uint16(34804), + 110: uint16(34792), + 111: uint16(34781), + 112: uint16(35155), + 113: uint16(35147), + 114: uint16(35151), + 115: uint16(35148), + 116: uint16(35142), + 117: uint16(35152), + 118: uint16(35153), + 119: uint16(35145), + 120: uint16(35626), + 121: uint16(35623), + 122: uint16(35619), + 123: uint16(35635), + 124: uint16(35632), + 125: uint16(35637), + 126: uint16(35655), + 127: uint16(35631), + 128: uint16(35644), + 129: uint16(35646), + 130: uint16(35633), + 131: uint16(35621), + 132: uint16(35639), + 133: uint16(35622), + 134: uint16(35638), + 135: uint16(35630), + 136: uint16(35620), + 137: uint16(35643), + 138: uint16(35645), + 139: uint16(35642), + 140: uint16(35906), + 141: uint16(35957), + 142: uint16(35993), + 143: uint16(35992), + 144: uint16(35991), + 145: uint16(36094), + 146: uint16(36100), + 147: uint16(36098), + 148: uint16(36096), + 149: uint16(36444), + 150: uint16(36450), + 151: uint16(36448), + 152: uint16(36439), + 153: uint16(36438), + 154: uint16(36446), + 155: uint16(36453), + 156: uint16(36455), + }, + 80: { + 0: uint16(36443), + 1: uint16(36442), + 2: uint16(36449), + 3: uint16(36445), + 4: uint16(36457), + 5: uint16(36436), + 6: uint16(36678), + 7: uint16(36679), + 8: uint16(36680), + 9: uint16(36683), + 10: uint16(37160), + 11: uint16(37178), + 12: uint16(37179), + 13: uint16(37182), + 14: uint16(37288), + 15: uint16(37285), + 16: uint16(37287), + 17: uint16(37295), + 18: uint16(37290), + 19: uint16(37813), + 20: uint16(37772), + 21: uint16(37778), + 22: uint16(37815), + 23: uint16(37787), + 24: uint16(37789), + 25: uint16(37769), + 26: uint16(37799), + 27: uint16(37774), + 28: uint16(37802), + 29: uint16(37790), + 30: uint16(37798), + 31: uint16(37781), + 32: uint16(37768), + 33: uint16(37785), + 34: uint16(37791), + 35: uint16(37773), + 36: uint16(37809), + 37: uint16(37777), + 38: uint16(37810), + 39: uint16(37796), + 40: uint16(37800), + 41: uint16(37812), + 42: uint16(37795), + 43: uint16(37797), + 44: uint16(38354), + 45: uint16(38355), + 46: uint16(38353), + 47: uint16(38579), + 48: uint16(38615), + 49: uint16(38618), + 50: uint16(24002), + 51: uint16(38623), + 52: uint16(38616), + 53: uint16(38621), + 54: uint16(38691), + 55: uint16(38690), + 56: uint16(38693), + 57: uint16(38828), + 58: uint16(38830), + 59: uint16(38824), + 60: uint16(38827), + 61: uint16(38820), + 62: uint16(38826), + 63: uint16(38818), + 64: uint16(38821), + 65: uint16(38871), + 66: uint16(38873), + 67: uint16(38870), + 68: uint16(38872), + 69: uint16(38906), + 70: uint16(38992), + 71: uint16(38993), + 72: uint16(38994), + 73: uint16(39096), + 74: uint16(39233), + 75: uint16(39228), + 76: uint16(39226), + 77: uint16(39439), + 78: uint16(39435), + 79: uint16(39433), + 80: uint16(39437), + 81: uint16(39428), + 82: uint16(39441), + 83: uint16(39434), + 84: uint16(39429), + 85: uint16(39431), + 86: uint16(39430), + 87: uint16(39616), + 88: uint16(39644), + 89: uint16(39688), + 90: uint16(39684), + 91: uint16(39685), + 92: uint16(39721), + 93: uint16(39733), + 94: uint16(39754), + 95: uint16(39756), + 96: uint16(39755), + 97: uint16(39879), + 98: uint16(39878), + 99: uint16(39875), + 100: uint16(39871), + 101: uint16(39873), + 102: uint16(39861), + 103: uint16(39864), + 104: uint16(39891), + 105: uint16(39862), + 106: uint16(39876), + 107: uint16(39865), + 108: uint16(39869), + 109: uint16(40284), + 110: uint16(40275), + 111: uint16(40271), + 112: uint16(40266), + 113: uint16(40283), + 114: uint16(40267), + 115: uint16(40281), + 116: uint16(40278), + 117: uint16(40268), + 118: uint16(40279), + 119: uint16(40274), + 120: uint16(40276), + 121: uint16(40287), + 122: uint16(40280), + 123: uint16(40282), + 124: uint16(40590), + 125: uint16(40588), + 126: uint16(40671), + 127: uint16(40705), + 128: uint16(40704), + 129: uint16(40726), + 130: uint16(40741), + 131: uint16(40747), + 132: uint16(40746), + 133: uint16(40745), + 134: uint16(40744), + 135: uint16(40780), + 136: uint16(40789), + 137: uint16(20788), + 138: uint16(20789), + 139: uint16(21142), + 140: uint16(21239), + 141: uint16(21428), + 142: uint16(22187), + 143: uint16(22189), + 144: uint16(22182), + 145: uint16(22183), + 146: uint16(22186), + 147: uint16(22188), + 148: uint16(22746), + 149: uint16(22749), + 150: uint16(22747), + 151: uint16(22802), + 152: uint16(23357), + 153: uint16(23358), + 154: uint16(23359), + 155: uint16(24003), + 156: uint16(24176), + }, + 81: { + 0: uint16(24511), + 1: uint16(25083), + 2: uint16(25863), + 3: uint16(25872), + 4: uint16(25869), + 5: uint16(25865), + 6: uint16(25868), + 7: uint16(25870), + 8: uint16(25988), + 9: uint16(26078), + 10: uint16(26077), + 11: uint16(26334), + 12: uint16(27367), + 13: uint16(27360), + 14: uint16(27340), + 15: uint16(27345), + 16: uint16(27353), + 17: uint16(27339), + 18: uint16(27359), + 19: uint16(27356), + 20: uint16(27344), + 21: uint16(27371), + 22: uint16(27343), + 23: uint16(27341), + 24: uint16(27358), + 25: uint16(27488), + 26: uint16(27568), + 27: uint16(27660), + 28: uint16(28697), + 29: uint16(28711), + 30: uint16(28704), + 31: uint16(28694), + 32: uint16(28715), + 33: uint16(28705), + 34: uint16(28706), + 35: uint16(28707), + 36: uint16(28713), + 37: uint16(28695), + 38: uint16(28708), + 39: uint16(28700), + 40: uint16(28714), + 41: uint16(29196), + 42: uint16(29194), + 43: uint16(29191), + 44: uint16(29186), + 45: uint16(29189), + 46: uint16(29349), + 47: uint16(29350), + 48: uint16(29348), + 49: uint16(29347), + 50: uint16(29345), + 51: uint16(29899), + 52: uint16(29893), + 53: uint16(29879), + 54: uint16(29891), + 55: uint16(29974), + 56: uint16(30304), + 57: uint16(30665), + 58: uint16(30666), + 59: uint16(30660), + 60: uint16(30705), + 61: uint16(31005), + 62: uint16(31003), + 63: uint16(31009), + 64: uint16(31004), + 65: uint16(30999), + 66: uint16(31006), + 67: uint16(31152), + 68: uint16(31335), + 69: uint16(31336), + 70: uint16(31795), + 71: uint16(31804), + 72: uint16(31801), + 73: uint16(31788), + 74: uint16(31803), + 75: uint16(31980), + 76: uint16(31978), + 77: uint16(32374), + 78: uint16(32373), + 79: uint16(32376), + 80: uint16(32368), + 81: uint16(32375), + 82: uint16(32367), + 83: uint16(32378), + 84: uint16(32370), + 85: uint16(32372), + 86: uint16(32360), + 87: uint16(32587), + 88: uint16(32586), + 89: uint16(32643), + 90: uint16(32646), + 91: uint16(32695), + 92: uint16(32765), + 93: uint16(32766), + 94: uint16(32888), + 95: uint16(33239), + 96: uint16(33237), + 97: uint16(33380), + 98: uint16(33377), + 99: uint16(33379), + 100: uint16(34283), + 101: uint16(34289), + 102: uint16(34285), + 103: uint16(34265), + 104: uint16(34273), + 105: uint16(34280), + 106: uint16(34266), + 107: uint16(34263), + 108: uint16(34284), + 109: uint16(34290), + 110: uint16(34296), + 111: uint16(34264), + 112: uint16(34271), + 113: uint16(34275), + 114: uint16(34268), + 115: uint16(34257), + 116: uint16(34288), + 117: uint16(34278), + 118: uint16(34287), + 119: uint16(34270), + 120: uint16(34274), + 121: uint16(34816), + 122: uint16(34810), + 123: uint16(34819), + 124: uint16(34806), + 125: uint16(34807), + 126: uint16(34825), + 127: uint16(34828), + 128: uint16(34827), + 129: uint16(34822), + 130: uint16(34812), + 131: uint16(34824), + 132: uint16(34815), + 133: uint16(34826), + 134: uint16(34818), + 135: uint16(35170), + 136: uint16(35162), + 137: uint16(35163), + 138: uint16(35159), + 139: uint16(35169), + 140: uint16(35164), + 141: uint16(35160), + 142: uint16(35165), + 143: uint16(35161), + 144: uint16(35208), + 145: uint16(35255), + 146: uint16(35254), + 147: uint16(35318), + 148: uint16(35664), + 149: uint16(35656), + 150: uint16(35658), + 151: uint16(35648), + 152: uint16(35667), + 153: uint16(35670), + 154: uint16(35668), + 155: uint16(35659), + 156: uint16(35669), + }, + 82: { + 0: uint16(35665), + 1: uint16(35650), + 2: uint16(35666), + 3: uint16(35671), + 4: uint16(35907), + 5: uint16(35959), + 6: uint16(35958), + 7: uint16(35994), + 8: uint16(36102), + 9: uint16(36103), + 10: uint16(36105), + 11: uint16(36268), + 12: uint16(36266), + 13: uint16(36269), + 14: uint16(36267), + 15: uint16(36461), + 16: uint16(36472), + 17: uint16(36467), + 18: uint16(36458), + 19: uint16(36463), + 20: uint16(36475), + 21: uint16(36546), + 22: uint16(36690), + 23: uint16(36689), + 24: uint16(36687), + 25: uint16(36688), + 26: uint16(36691), + 27: uint16(36788), + 28: uint16(37184), + 29: uint16(37183), + 30: uint16(37296), + 31: uint16(37293), + 32: uint16(37854), + 33: uint16(37831), + 34: uint16(37839), + 35: uint16(37826), + 36: uint16(37850), + 37: uint16(37840), + 38: uint16(37881), + 39: uint16(37868), + 40: uint16(37836), + 41: uint16(37849), + 42: uint16(37801), + 43: uint16(37862), + 44: uint16(37834), + 45: uint16(37844), + 46: uint16(37870), + 47: uint16(37859), + 48: uint16(37845), + 49: uint16(37828), + 50: uint16(37838), + 51: uint16(37824), + 52: uint16(37842), + 53: uint16(37863), + 54: uint16(38269), + 55: uint16(38362), + 56: uint16(38363), + 57: uint16(38625), + 58: uint16(38697), + 59: uint16(38699), + 60: uint16(38700), + 61: uint16(38696), + 62: uint16(38694), + 63: uint16(38835), + 64: uint16(38839), + 65: uint16(38838), + 66: uint16(38877), + 67: uint16(38878), + 68: uint16(38879), + 69: uint16(39004), + 70: uint16(39001), + 71: uint16(39005), + 72: uint16(38999), + 73: uint16(39103), + 74: uint16(39101), + 75: uint16(39099), + 76: uint16(39102), + 77: uint16(39240), + 78: uint16(39239), + 79: uint16(39235), + 80: uint16(39334), + 81: uint16(39335), + 82: uint16(39450), + 83: uint16(39445), + 84: uint16(39461), + 85: uint16(39453), + 86: uint16(39460), + 87: uint16(39451), + 88: uint16(39458), + 89: uint16(39456), + 90: uint16(39463), + 91: uint16(39459), + 92: uint16(39454), + 93: uint16(39452), + 94: uint16(39444), + 95: uint16(39618), + 96: uint16(39691), + 97: uint16(39690), + 98: uint16(39694), + 99: uint16(39692), + 100: uint16(39735), + 101: uint16(39914), + 102: uint16(39915), + 103: uint16(39904), + 104: uint16(39902), + 105: uint16(39908), + 106: uint16(39910), + 107: uint16(39906), + 108: uint16(39920), + 109: uint16(39892), + 110: uint16(39895), + 111: uint16(39916), + 112: uint16(39900), + 113: uint16(39897), + 114: uint16(39909), + 115: uint16(39893), + 116: uint16(39905), + 117: uint16(39898), + 118: uint16(40311), + 119: uint16(40321), + 120: uint16(40330), + 121: uint16(40324), + 122: uint16(40328), + 123: uint16(40305), + 124: uint16(40320), + 125: uint16(40312), + 126: uint16(40326), + 127: uint16(40331), + 128: uint16(40332), + 129: uint16(40317), + 130: uint16(40299), + 131: uint16(40308), + 132: uint16(40309), + 133: uint16(40304), + 134: uint16(40297), + 135: uint16(40325), + 136: uint16(40307), + 137: uint16(40315), + 138: uint16(40322), + 139: uint16(40303), + 140: uint16(40313), + 141: uint16(40319), + 142: uint16(40327), + 143: uint16(40296), + 144: uint16(40596), + 145: uint16(40593), + 146: uint16(40640), + 147: uint16(40700), + 148: uint16(40749), + 149: uint16(40768), + 150: uint16(40769), + 151: uint16(40781), + 152: uint16(40790), + 153: uint16(40791), + 154: uint16(40792), + 155: uint16(21303), + 156: uint16(22194), + }, + 83: { + 0: uint16(22197), + 1: uint16(22195), + 2: uint16(22755), + 3: uint16(23365), + 4: uint16(24006), + 5: uint16(24007), + 6: uint16(24302), + 7: uint16(24303), + 8: uint16(24512), + 9: uint16(24513), + 10: uint16(25081), + 11: uint16(25879), + 12: uint16(25878), + 13: uint16(25877), + 14: uint16(25875), + 15: uint16(26079), + 16: uint16(26344), + 17: uint16(26339), + 18: uint16(26340), + 19: uint16(27379), + 20: uint16(27376), + 21: uint16(27370), + 22: uint16(27368), + 23: uint16(27385), + 24: uint16(27377), + 25: uint16(27374), + 26: uint16(27375), + 27: uint16(28732), + 28: uint16(28725), + 29: uint16(28719), + 30: uint16(28727), + 31: uint16(28724), + 32: uint16(28721), + 33: uint16(28738), + 34: uint16(28728), + 35: uint16(28735), + 36: uint16(28730), + 37: uint16(28729), + 38: uint16(28736), + 39: uint16(28731), + 40: uint16(28723), + 41: uint16(28737), + 42: uint16(29203), + 43: uint16(29204), + 44: uint16(29352), + 45: uint16(29565), + 46: uint16(29564), + 47: uint16(29882), + 48: uint16(30379), + 49: uint16(30378), + 50: uint16(30398), + 51: uint16(30445), + 52: uint16(30668), + 53: uint16(30670), + 54: uint16(30671), + 55: uint16(30669), + 56: uint16(30706), + 57: uint16(31013), + 58: uint16(31011), + 59: uint16(31015), + 60: uint16(31016), + 61: uint16(31012), + 62: uint16(31017), + 63: uint16(31154), + 64: uint16(31342), + 65: uint16(31340), + 66: uint16(31341), + 67: uint16(31479), + 68: uint16(31817), + 69: uint16(31816), + 70: uint16(31818), + 71: uint16(31815), + 72: uint16(31813), + 73: uint16(31982), + 74: uint16(32379), + 75: uint16(32382), + 76: uint16(32385), + 77: uint16(32384), + 78: uint16(32698), + 79: uint16(32767), + 80: uint16(32889), + 81: uint16(33243), + 82: uint16(33241), + 83: uint16(33291), + 84: uint16(33384), + 85: uint16(33385), + 86: uint16(34338), + 87: uint16(34303), + 88: uint16(34305), + 89: uint16(34302), + 90: uint16(34331), + 91: uint16(34304), + 92: uint16(34294), + 93: uint16(34308), + 94: uint16(34313), + 95: uint16(34309), + 96: uint16(34316), + 97: uint16(34301), + 98: uint16(34841), + 99: uint16(34832), + 100: uint16(34833), + 101: uint16(34839), + 102: uint16(34835), + 103: uint16(34838), + 104: uint16(35171), + 105: uint16(35174), + 106: uint16(35257), + 107: uint16(35319), + 108: uint16(35680), + 109: uint16(35690), + 110: uint16(35677), + 111: uint16(35688), + 112: uint16(35683), + 113: uint16(35685), + 114: uint16(35687), + 115: uint16(35693), + 116: uint16(36270), + 117: uint16(36486), + 118: uint16(36488), + 119: uint16(36484), + 120: uint16(36697), + 121: uint16(36694), + 122: uint16(36695), + 123: uint16(36693), + 124: uint16(36696), + 125: uint16(36698), + 126: uint16(37005), + 127: uint16(37187), + 128: uint16(37185), + 129: uint16(37303), + 130: uint16(37301), + 131: uint16(37298), + 132: uint16(37299), + 133: uint16(37899), + 134: uint16(37907), + 135: uint16(37883), + 136: uint16(37920), + 137: uint16(37903), + 138: uint16(37908), + 139: uint16(37886), + 140: uint16(37909), + 141: uint16(37904), + 142: uint16(37928), + 143: uint16(37913), + 144: uint16(37901), + 145: uint16(37877), + 146: uint16(37888), + 147: uint16(37879), + 148: uint16(37895), + 149: uint16(37902), + 150: uint16(37910), + 151: uint16(37906), + 152: uint16(37882), + 153: uint16(37897), + 154: uint16(37880), + 155: uint16(37898), + 156: uint16(37887), + }, + 84: { + 0: uint16(37884), + 1: uint16(37900), + 2: uint16(37878), + 3: uint16(37905), + 4: uint16(37894), + 5: uint16(38366), + 6: uint16(38368), + 7: uint16(38367), + 8: uint16(38702), + 9: uint16(38703), + 10: uint16(38841), + 11: uint16(38843), + 12: uint16(38909), + 13: uint16(38910), + 14: uint16(39008), + 15: uint16(39010), + 16: uint16(39011), + 17: uint16(39007), + 18: uint16(39105), + 19: uint16(39106), + 20: uint16(39248), + 21: uint16(39246), + 22: uint16(39257), + 23: uint16(39244), + 24: uint16(39243), + 25: uint16(39251), + 26: uint16(39474), + 27: uint16(39476), + 28: uint16(39473), + 29: uint16(39468), + 30: uint16(39466), + 31: uint16(39478), + 32: uint16(39465), + 33: uint16(39470), + 34: uint16(39480), + 35: uint16(39469), + 36: uint16(39623), + 37: uint16(39626), + 38: uint16(39622), + 39: uint16(39696), + 40: uint16(39698), + 41: uint16(39697), + 42: uint16(39947), + 43: uint16(39944), + 44: uint16(39927), + 45: uint16(39941), + 46: uint16(39954), + 47: uint16(39928), + 48: uint16(40000), + 49: uint16(39943), + 50: uint16(39950), + 51: uint16(39942), + 52: uint16(39959), + 53: uint16(39956), + 54: uint16(39945), + 55: uint16(40351), + 56: uint16(40345), + 57: uint16(40356), + 58: uint16(40349), + 59: uint16(40338), + 60: uint16(40344), + 61: uint16(40336), + 62: uint16(40347), + 63: uint16(40352), + 64: uint16(40340), + 65: uint16(40348), + 66: uint16(40362), + 67: uint16(40343), + 68: uint16(40353), + 69: uint16(40346), + 70: uint16(40354), + 71: uint16(40360), + 72: uint16(40350), + 73: uint16(40355), + 74: uint16(40383), + 75: uint16(40361), + 76: uint16(40342), + 77: uint16(40358), + 78: uint16(40359), + 79: uint16(40601), + 80: uint16(40603), + 81: uint16(40602), + 82: uint16(40677), + 83: uint16(40676), + 84: uint16(40679), + 85: uint16(40678), + 86: uint16(40752), + 87: uint16(40750), + 88: uint16(40795), + 89: uint16(40800), + 90: uint16(40798), + 91: uint16(40797), + 92: uint16(40793), + 93: uint16(40849), + 94: uint16(20794), + 95: uint16(20793), + 96: uint16(21144), + 97: uint16(21143), + 98: uint16(22211), + 99: uint16(22205), + 100: uint16(22206), + 101: uint16(23368), + 102: uint16(23367), + 103: uint16(24011), + 104: uint16(24015), + 105: uint16(24305), + 106: uint16(25085), + 107: uint16(25883), + 108: uint16(27394), + 109: uint16(27388), + 110: uint16(27395), + 111: uint16(27384), + 112: uint16(27392), + 113: uint16(28739), + 114: uint16(28740), + 115: uint16(28746), + 116: uint16(28744), + 117: uint16(28745), + 118: uint16(28741), + 119: uint16(28742), + 120: uint16(29213), + 121: uint16(29210), + 122: uint16(29209), + 123: uint16(29566), + 124: uint16(29975), + 125: uint16(30314), + 126: uint16(30672), + 127: uint16(31021), + 128: uint16(31025), + 129: uint16(31023), + 130: uint16(31828), + 131: uint16(31827), + 132: uint16(31986), + 133: uint16(32394), + 134: uint16(32391), + 135: uint16(32392), + 136: uint16(32395), + 137: uint16(32390), + 138: uint16(32397), + 139: uint16(32589), + 140: uint16(32699), + 141: uint16(32816), + 142: uint16(33245), + 143: uint16(34328), + 144: uint16(34346), + 145: uint16(34342), + 146: uint16(34335), + 147: uint16(34339), + 148: uint16(34332), + 149: uint16(34329), + 150: uint16(34343), + 151: uint16(34350), + 152: uint16(34337), + 153: uint16(34336), + 154: uint16(34345), + 155: uint16(34334), + 156: uint16(34341), + }, + 85: { + 0: uint16(34857), + 1: uint16(34845), + 2: uint16(34843), + 3: uint16(34848), + 4: uint16(34852), + 5: uint16(34844), + 6: uint16(34859), + 7: uint16(34890), + 8: uint16(35181), + 9: uint16(35177), + 10: uint16(35182), + 11: uint16(35179), + 12: uint16(35322), + 13: uint16(35705), + 14: uint16(35704), + 15: uint16(35653), + 16: uint16(35706), + 17: uint16(35707), + 18: uint16(36112), + 19: uint16(36116), + 20: uint16(36271), + 21: uint16(36494), + 22: uint16(36492), + 23: uint16(36702), + 24: uint16(36699), + 25: uint16(36701), + 26: uint16(37190), + 27: uint16(37188), + 28: uint16(37189), + 29: uint16(37305), + 30: uint16(37951), + 31: uint16(37947), + 32: uint16(37942), + 33: uint16(37929), + 34: uint16(37949), + 35: uint16(37948), + 36: uint16(37936), + 37: uint16(37945), + 38: uint16(37930), + 39: uint16(37943), + 40: uint16(37932), + 41: uint16(37952), + 42: uint16(37937), + 43: uint16(38373), + 44: uint16(38372), + 45: uint16(38371), + 46: uint16(38709), + 47: uint16(38714), + 48: uint16(38847), + 49: uint16(38881), + 50: uint16(39012), + 51: uint16(39113), + 52: uint16(39110), + 53: uint16(39104), + 54: uint16(39256), + 55: uint16(39254), + 56: uint16(39481), + 57: uint16(39485), + 58: uint16(39494), + 59: uint16(39492), + 60: uint16(39490), + 61: uint16(39489), + 62: uint16(39482), + 63: uint16(39487), + 64: uint16(39629), + 65: uint16(39701), + 66: uint16(39703), + 67: uint16(39704), + 68: uint16(39702), + 69: uint16(39738), + 70: uint16(39762), + 71: uint16(39979), + 72: uint16(39965), + 73: uint16(39964), + 74: uint16(39980), + 75: uint16(39971), + 76: uint16(39976), + 77: uint16(39977), + 78: uint16(39972), + 79: uint16(39969), + 80: uint16(40375), + 81: uint16(40374), + 82: uint16(40380), + 83: uint16(40385), + 84: uint16(40391), + 85: uint16(40394), + 86: uint16(40399), + 87: uint16(40382), + 88: uint16(40389), + 89: uint16(40387), + 90: uint16(40379), + 91: uint16(40373), + 92: uint16(40398), + 93: uint16(40377), + 94: uint16(40378), + 95: uint16(40364), + 96: uint16(40392), + 97: uint16(40369), + 98: uint16(40365), + 99: uint16(40396), + 100: uint16(40371), + 101: uint16(40397), + 102: uint16(40370), + 103: uint16(40570), + 104: uint16(40604), + 105: uint16(40683), + 106: uint16(40686), + 107: uint16(40685), + 108: uint16(40731), + 109: uint16(40728), + 110: uint16(40730), + 111: uint16(40753), + 112: uint16(40782), + 113: uint16(40805), + 114: uint16(40804), + 115: uint16(40850), + 116: uint16(20153), + 117: uint16(22214), + 118: uint16(22213), + 119: uint16(22219), + 120: uint16(22897), + 121: uint16(23371), + 122: uint16(23372), + 123: uint16(24021), + 124: uint16(24017), + 125: uint16(24306), + 126: uint16(25889), + 127: uint16(25888), + 128: uint16(25894), + 129: uint16(25890), + 130: uint16(27403), + 131: uint16(27400), + 132: uint16(27401), + 133: uint16(27661), + 134: uint16(28757), + 135: uint16(28758), + 136: uint16(28759), + 137: uint16(28754), + 138: uint16(29214), + 139: uint16(29215), + 140: uint16(29353), + 141: uint16(29567), + 142: uint16(29912), + 143: uint16(29909), + 144: uint16(29913), + 145: uint16(29911), + 146: uint16(30317), + 147: uint16(30381), + 148: uint16(31029), + 149: uint16(31156), + 150: uint16(31344), + 151: uint16(31345), + 152: uint16(31831), + 153: uint16(31836), + 154: uint16(31833), + 155: uint16(31835), + 156: uint16(31834), + }, + 86: { + 0: uint16(31988), + 1: uint16(31985), + 2: uint16(32401), + 3: uint16(32591), + 4: uint16(32647), + 5: uint16(33246), + 6: uint16(33387), + 7: uint16(34356), + 8: uint16(34357), + 9: uint16(34355), + 10: uint16(34348), + 11: uint16(34354), + 12: uint16(34358), + 13: uint16(34860), + 14: uint16(34856), + 15: uint16(34854), + 16: uint16(34858), + 17: uint16(34853), + 18: uint16(35185), + 19: uint16(35263), + 20: uint16(35262), + 21: uint16(35323), + 22: uint16(35710), + 23: uint16(35716), + 24: uint16(35714), + 25: uint16(35718), + 26: uint16(35717), + 27: uint16(35711), + 28: uint16(36117), + 29: uint16(36501), + 30: uint16(36500), + 31: uint16(36506), + 32: uint16(36498), + 33: uint16(36496), + 34: uint16(36502), + 35: uint16(36503), + 36: uint16(36704), + 37: uint16(36706), + 38: uint16(37191), + 39: uint16(37964), + 40: uint16(37968), + 41: uint16(37962), + 42: uint16(37963), + 43: uint16(37967), + 44: uint16(37959), + 45: uint16(37957), + 46: uint16(37960), + 47: uint16(37961), + 48: uint16(37958), + 49: uint16(38719), + 50: uint16(38883), + 51: uint16(39018), + 52: uint16(39017), + 53: uint16(39115), + 54: uint16(39252), + 55: uint16(39259), + 56: uint16(39502), + 57: uint16(39507), + 58: uint16(39508), + 59: uint16(39500), + 60: uint16(39503), + 61: uint16(39496), + 62: uint16(39498), + 63: uint16(39497), + 64: uint16(39506), + 65: uint16(39504), + 66: uint16(39632), + 67: uint16(39705), + 68: uint16(39723), + 69: uint16(39739), + 70: uint16(39766), + 71: uint16(39765), + 72: uint16(40006), + 73: uint16(40008), + 74: uint16(39999), + 75: uint16(40004), + 76: uint16(39993), + 77: uint16(39987), + 78: uint16(40001), + 79: uint16(39996), + 80: uint16(39991), + 81: uint16(39988), + 82: uint16(39986), + 83: uint16(39997), + 84: uint16(39990), + 85: uint16(40411), + 86: uint16(40402), + 87: uint16(40414), + 88: uint16(40410), + 89: uint16(40395), + 90: uint16(40400), + 91: uint16(40412), + 92: uint16(40401), + 93: uint16(40415), + 94: uint16(40425), + 95: uint16(40409), + 96: uint16(40408), + 97: uint16(40406), + 98: uint16(40437), + 99: uint16(40405), + 100: uint16(40413), + 101: uint16(40630), + 102: uint16(40688), + 103: uint16(40757), + 104: uint16(40755), + 105: uint16(40754), + 106: uint16(40770), + 107: uint16(40811), + 108: uint16(40853), + 109: uint16(40866), + 110: uint16(20797), + 111: uint16(21145), + 112: uint16(22760), + 113: uint16(22759), + 114: uint16(22898), + 115: uint16(23373), + 116: uint16(24024), + 117: uint16(34863), + 118: uint16(24399), + 119: uint16(25089), + 120: uint16(25091), + 121: uint16(25092), + 122: uint16(25897), + 123: uint16(25893), + 124: uint16(26006), + 125: uint16(26347), + 126: uint16(27409), + 127: uint16(27410), + 128: uint16(27407), + 129: uint16(27594), + 130: uint16(28763), + 131: uint16(28762), + 132: uint16(29218), + 133: uint16(29570), + 134: uint16(29569), + 135: uint16(29571), + 136: uint16(30320), + 137: uint16(30676), + 138: uint16(31847), + 139: uint16(31846), + 140: uint16(32405), + 141: uint16(33388), + 142: uint16(34362), + 143: uint16(34368), + 144: uint16(34361), + 145: uint16(34364), + 146: uint16(34353), + 147: uint16(34363), + 148: uint16(34366), + 149: uint16(34864), + 150: uint16(34866), + 151: uint16(34862), + 152: uint16(34867), + 153: uint16(35190), + 154: uint16(35188), + 155: uint16(35187), + 156: uint16(35326), + }, + 87: { + 0: uint16(35724), + 1: uint16(35726), + 2: uint16(35723), + 3: uint16(35720), + 4: uint16(35909), + 5: uint16(36121), + 6: uint16(36504), + 7: uint16(36708), + 8: uint16(36707), + 9: uint16(37308), + 10: uint16(37986), + 11: uint16(37973), + 12: uint16(37981), + 13: uint16(37975), + 14: uint16(37982), + 15: uint16(38852), + 16: uint16(38853), + 17: uint16(38912), + 18: uint16(39510), + 19: uint16(39513), + 20: uint16(39710), + 21: uint16(39711), + 22: uint16(39712), + 23: uint16(40018), + 24: uint16(40024), + 25: uint16(40016), + 26: uint16(40010), + 27: uint16(40013), + 28: uint16(40011), + 29: uint16(40021), + 30: uint16(40025), + 31: uint16(40012), + 32: uint16(40014), + 33: uint16(40443), + 34: uint16(40439), + 35: uint16(40431), + 36: uint16(40419), + 37: uint16(40427), + 38: uint16(40440), + 39: uint16(40420), + 40: uint16(40438), + 41: uint16(40417), + 42: uint16(40430), + 43: uint16(40422), + 44: uint16(40434), + 45: uint16(40432), + 46: uint16(40418), + 47: uint16(40428), + 48: uint16(40436), + 49: uint16(40435), + 50: uint16(40424), + 51: uint16(40429), + 52: uint16(40642), + 53: uint16(40656), + 54: uint16(40690), + 55: uint16(40691), + 56: uint16(40710), + 57: uint16(40732), + 58: uint16(40760), + 59: uint16(40759), + 60: uint16(40758), + 61: uint16(40771), + 62: uint16(40783), + 63: uint16(40817), + 64: uint16(40816), + 65: uint16(40814), + 66: uint16(40815), + 67: uint16(22227), + 68: uint16(22221), + 69: uint16(23374), + 70: uint16(23661), + 71: uint16(25901), + 72: uint16(26349), + 73: uint16(26350), + 74: uint16(27411), + 75: uint16(28767), + 76: uint16(28769), + 77: uint16(28765), + 78: uint16(28768), + 79: uint16(29219), + 80: uint16(29915), + 81: uint16(29925), + 82: uint16(30677), + 83: uint16(31032), + 84: uint16(31159), + 85: uint16(31158), + 86: uint16(31850), + 87: uint16(32407), + 88: uint16(32649), + 89: uint16(33389), + 90: uint16(34371), + 91: uint16(34872), + 92: uint16(34871), + 93: uint16(34869), + 94: uint16(34891), + 95: uint16(35732), + 96: uint16(35733), + 97: uint16(36510), + 98: uint16(36511), + 99: uint16(36512), + 100: uint16(36509), + 101: uint16(37310), + 102: uint16(37309), + 103: uint16(37314), + 104: uint16(37995), + 105: uint16(37992), + 106: uint16(37993), + 107: uint16(38629), + 108: uint16(38726), + 109: uint16(38723), + 110: uint16(38727), + 111: uint16(38855), + 112: uint16(38885), + 113: uint16(39518), + 114: uint16(39637), + 115: uint16(39769), + 116: uint16(40035), + 117: uint16(40039), + 118: uint16(40038), + 119: uint16(40034), + 120: uint16(40030), + 121: uint16(40032), + 122: uint16(40450), + 123: uint16(40446), + 124: uint16(40455), + 125: uint16(40451), + 126: uint16(40454), + 127: uint16(40453), + 128: uint16(40448), + 129: uint16(40449), + 130: uint16(40457), + 131: uint16(40447), + 132: uint16(40445), + 133: uint16(40452), + 134: uint16(40608), + 135: uint16(40734), + 136: uint16(40774), + 137: uint16(40820), + 138: uint16(40821), + 139: uint16(40822), + 140: uint16(22228), + 141: uint16(25902), + 142: uint16(26040), + 143: uint16(27416), + 144: uint16(27417), + 145: uint16(27415), + 146: uint16(27418), + 147: uint16(28770), + 148: uint16(29222), + 149: uint16(29354), + 150: uint16(30680), + 151: uint16(30681), + 152: uint16(31033), + 153: uint16(31849), + 154: uint16(31851), + 155: uint16(31990), + 156: uint16(32410), + }, + 88: { + 0: uint16(32408), + 1: uint16(32411), + 2: uint16(32409), + 3: uint16(33248), + 4: uint16(33249), + 5: uint16(34374), + 6: uint16(34375), + 7: uint16(34376), + 8: uint16(35193), + 9: uint16(35194), + 10: uint16(35196), + 11: uint16(35195), + 12: uint16(35327), + 13: uint16(35736), + 14: uint16(35737), + 15: uint16(36517), + 16: uint16(36516), + 17: uint16(36515), + 18: uint16(37998), + 19: uint16(37997), + 20: uint16(37999), + 21: uint16(38001), + 22: uint16(38003), + 23: uint16(38729), + 24: uint16(39026), + 25: uint16(39263), + 26: uint16(40040), + 27: uint16(40046), + 28: uint16(40045), + 29: uint16(40459), + 30: uint16(40461), + 31: uint16(40464), + 32: uint16(40463), + 33: uint16(40466), + 34: uint16(40465), + 35: uint16(40609), + 36: uint16(40693), + 37: uint16(40713), + 38: uint16(40775), + 39: uint16(40824), + 40: uint16(40827), + 41: uint16(40826), + 42: uint16(40825), + 43: uint16(22302), + 44: uint16(28774), + 45: uint16(31855), + 46: uint16(34876), + 47: uint16(36274), + 48: uint16(36518), + 49: uint16(37315), + 50: uint16(38004), + 51: uint16(38008), + 52: uint16(38006), + 53: uint16(38005), + 54: uint16(39520), + 55: uint16(40052), + 56: uint16(40051), + 57: uint16(40049), + 58: uint16(40053), + 59: uint16(40468), + 60: uint16(40467), + 61: uint16(40694), + 62: uint16(40714), + 63: uint16(40868), + 64: uint16(28776), + 65: uint16(28773), + 66: uint16(31991), + 67: uint16(34410), + 68: uint16(34878), + 69: uint16(34877), + 70: uint16(34879), + 71: uint16(35742), + 72: uint16(35996), + 73: uint16(36521), + 74: uint16(36553), + 75: uint16(38731), + 76: uint16(39027), + 77: uint16(39028), + 78: uint16(39116), + 79: uint16(39265), + 80: uint16(39339), + 81: uint16(39524), + 82: uint16(39526), + 83: uint16(39527), + 84: uint16(39716), + 85: uint16(40469), + 86: uint16(40471), + 87: uint16(40776), + 88: uint16(25095), + 89: uint16(27422), + 90: uint16(29223), + 91: uint16(34380), + 92: uint16(36520), + 93: uint16(38018), + 94: uint16(38016), + 95: uint16(38017), + 96: uint16(39529), + 97: uint16(39528), + 98: uint16(39726), + 99: uint16(40473), + 100: uint16(29225), + 101: uint16(34379), + 102: uint16(35743), + 103: uint16(38019), + 104: uint16(40057), + 105: uint16(40631), + 106: uint16(30325), + 107: uint16(39531), + 108: uint16(40058), + 109: uint16(40477), + 110: uint16(28777), + 111: uint16(28778), + 112: uint16(40612), + 113: uint16(40830), + 114: uint16(40777), + 115: uint16(40856), + 116: uint16(30849), + 117: uint16(37561), + 118: uint16(35023), + 119: uint16(22715), + 120: uint16(24658), + 121: uint16(31911), + 122: uint16(23290), + 123: uint16(9556), + 124: uint16(9574), + 125: uint16(9559), + 126: uint16(9568), + 127: uint16(9580), + 128: uint16(9571), + 129: uint16(9562), + 130: uint16(9577), + 131: uint16(9565), + 132: uint16(9554), + 133: uint16(9572), + 134: uint16(9557), + 135: uint16(9566), + 136: uint16(9578), + 137: uint16(9569), + 138: uint16(9560), + 139: uint16(9575), + 140: uint16(9563), + 141: uint16(9555), + 142: uint16(9573), + 143: uint16(9558), + 144: uint16(9567), + 145: uint16(9579), + 146: uint16(9570), + 147: uint16(9561), + 148: uint16(9576), + 149: uint16(9564), + 150: uint16(9553), + 151: uint16(9552), + 152: uint16(9581), + 153: uint16(9582), + 154: uint16(9584), + 155: uint16(9583), + 156: uint16(9619), + }, +} + +var _hkscs = [5172]uint16{ + 0: uint16(17392), + 1: uint16(19506), + 2: uint16(17923), + 3: uint16(17830), + 4: uint16(17784), + 5: uint16(29287), + 6: uint16(19831), + 7: uint16(17843), + 8: uint16(31921), + 9: uint16(19682), + 10: uint16(31941), + 11: uint16(15253), + 12: uint16(18230), + 13: uint16(18244), + 14: uint16(19527), + 15: uint16(19520), + 16: uint16(17087), + 17: uint16(13847), + 18: uint16(29522), + 19: uint16(28299), + 20: uint16(28882), + 21: uint16(19543), + 22: uint16(41809), + 23: uint16(18255), + 24: uint16(17882), + 25: uint16(19589), + 26: uint16(31852), + 27: uint16(19719), + 28: uint16(19108), + 29: uint16(18081), + 30: uint16(27427), + 31: uint16(29221), + 32: uint16(23124), + 33: uint16(6755), + 34: uint16(15878), + 35: uint16(16225), + 36: uint16(26189), + 37: uint16(22267), + 39: uint16(32149), + 40: uint16(22813), + 41: uint16(35769), + 42: uint16(15860), + 43: uint16(38708), + 44: uint16(31727), + 45: uint16(23515), + 46: uint16(7518), + 47: uint16(23204), + 48: uint16(13861), + 49: uint16(40624), + 50: uint16(23249), + 51: uint16(23479), + 52: uint16(23804), + 53: uint16(26478), + 54: uint16(34195), + 55: uint16(39237), + 56: uint16(29793), + 57: uint16(29853), + 58: uint16(14453), + 59: uint16(7507), + 60: uint16(13982), + 61: uint16(24609), + 62: uint16(16108), + 63: uint16(22750), + 64: uint16(15093), + 65: uint16(31484), + 66: uint16(40855), + 67: uint16(16737), + 68: uint16(35085), + 69: uint16(12778), + 70: uint16(2698), + 71: uint16(12894), + 72: uint16(17162), + 73: uint16(33924), + 74: uint16(40854), + 75: uint16(37935), + 76: uint16(18736), + 77: uint16(34323), + 78: uint16(22678), + 79: uint16(38730), + 80: uint16(37400), + 81: uint16(31184), + 82: uint16(31282), + 83: uint16(26208), + 84: uint16(27177), + 85: uint16(34973), + 86: uint16(29772), + 87: uint16(31685), + 88: uint16(26498), + 89: uint16(31276), + 90: uint16(21071), + 91: uint16(36934), + 92: uint16(13542), + 93: uint16(29636), + 94: uint16(23993), + 95: uint16(29894), + 96: uint16(40903), + 97: uint16(22451), + 98: uint16(18735), + 99: uint16(21580), + 100: uint16(16689), + 101: uint16(13966), + 102: uint16(22552), + 103: uint16(31346), + 104: uint16(31589), + 105: uint16(35727), + 106: uint16(18094), + 107: uint16(28296), + 108: uint16(16769), + 109: uint16(23961), + 110: uint16(31662), + 111: uint16(9404), + 112: uint16(40904), + 113: uint16(9409), + 114: uint16(9417), + 115: uint16(9420), + 116: uint16(40905), + 117: uint16(34052), + 118: uint16(13755), + 119: uint16(16564), + 120: uint16(40906), + 121: uint16(17633), + 122: uint16(44543), + 123: uint16(25281), + 124: uint16(28782), + 125: uint16(40907), + 157: uint16(12736), + 158: uint16(12737), + 159: uint16(12738), + 160: uint16(12739), + 161: uint16(12740), + 162: uint16(268), + 163: uint16(12741), + 164: uint16(209), + 165: uint16(205), + 166: uint16(12742), + 167: uint16(12743), + 168: uint16(203), + 169: uint16(8168), + 170: uint16(12744), + 171: uint16(202), + 172: uint16(12745), + 173: uint16(12746), + 174: uint16(12747), + 175: uint16(12748), + 176: uint16(270), + 177: uint16(12749), + 178: uint16(12750), + 179: uint16(256), + 180: uint16(193), + 181: uint16(461), + 182: uint16(192), + 183: uint16(274), + 184: uint16(201), + 185: uint16(282), + 186: uint16(200), + 187: uint16(332), + 188: uint16(211), + 189: uint16(465), + 190: uint16(210), + 191: uint16(56320), + 192: uint16(7870), + 193: uint16(56324), + 194: uint16(7872), + 195: uint16(202), + 196: uint16(257), + 197: uint16(225), + 198: uint16(462), + 199: uint16(224), + 200: uint16(593), + 201: uint16(275), + 202: uint16(233), + 203: uint16(283), + 204: uint16(232), + 205: uint16(299), + 206: uint16(237), + 207: uint16(464), + 208: uint16(236), + 209: uint16(333), + 210: uint16(243), + 211: uint16(466), + 212: uint16(242), + 213: uint16(363), + 214: uint16(250), + 215: uint16(468), + 216: uint16(249), + 217: uint16(470), + 218: uint16(472), + 219: uint16(474), + 220: uint16(476), + 221: uint16(252), + 222: uint16(56328), + 223: uint16(7871), + 224: uint16(56332), + 225: uint16(7873), + 226: uint16(234), + 227: uint16(609), + 228: uint16(9178), + 229: uint16(9179), + 314: uint16(41897), + 315: uint16(4421), + 317: uint16(25866), + 320: uint16(20029), + 321: uint16(28381), + 322: uint16(40270), + 323: uint16(37343), + 326: uint16(30517), + 327: uint16(25745), + 328: uint16(20250), + 329: uint16(20264), + 330: uint16(20392), + 331: uint16(20822), + 332: uint16(20852), + 333: uint16(20892), + 334: uint16(20964), + 335: uint16(21153), + 336: uint16(21160), + 337: uint16(21307), + 338: uint16(21326), + 339: uint16(21457), + 340: uint16(21464), + 341: uint16(22242), + 342: uint16(22768), + 343: uint16(22788), + 344: uint16(22791), + 345: uint16(22834), + 346: uint16(22836), + 347: uint16(23398), + 348: uint16(23454), + 349: uint16(23455), + 350: uint16(23706), + 351: uint16(24198), + 352: uint16(24635), + 353: uint16(25993), + 354: uint16(26622), + 355: uint16(26628), + 356: uint16(26725), + 357: uint16(27982), + 358: uint16(28860), + 359: uint16(30005), + 360: uint16(32420), + 361: uint16(32428), + 362: uint16(32442), + 363: uint16(32455), + 364: uint16(32463), + 365: uint16(32479), + 366: uint16(32518), + 367: uint16(32567), + 368: uint16(33402), + 369: uint16(33487), + 370: uint16(33647), + 371: uint16(35270), + 372: uint16(35774), + 373: uint16(35810), + 374: uint16(36710), + 375: uint16(36711), + 376: uint16(36718), + 377: uint16(29713), + 378: uint16(31996), + 379: uint16(32205), + 380: uint16(26950), + 381: uint16(31433), + 382: uint16(21031), + 387: uint16(37260), + 388: uint16(30904), + 389: uint16(37214), + 390: uint16(32956), + 392: uint16(36107), + 393: uint16(33014), + 394: uint16(2535), + 397: uint16(32927), + 398: uint16(40647), + 399: uint16(19661), + 400: uint16(40393), + 401: uint16(40460), + 402: uint16(19518), + 403: uint16(40438), + 404: uint16(28686), + 405: uint16(40458), + 406: uint16(41267), + 407: uint16(13761), + 409: uint16(28314), + 410: uint16(33342), + 411: uint16(29977), + 413: uint16(18705), + 414: uint16(39532), + 415: uint16(39567), + 416: uint16(40857), + 417: uint16(31111), + 418: uint16(33900), + 419: uint16(7626), + 420: uint16(1488), + 421: uint16(10982), + 422: uint16(20004), + 423: uint16(20097), + 424: uint16(20096), + 425: uint16(20103), + 426: uint16(20159), + 427: uint16(20203), + 428: uint16(20279), + 429: uint16(13388), + 430: uint16(20413), + 431: uint16(15944), + 432: uint16(20483), + 433: uint16(20616), + 434: uint16(13437), + 435: uint16(13459), + 436: uint16(13477), + 437: uint16(20870), + 438: uint16(22789), + 439: uint16(20955), + 440: uint16(20988), + 441: uint16(20997), + 442: uint16(20105), + 443: uint16(21113), + 444: uint16(21136), + 445: uint16(21287), + 446: uint16(13767), + 447: uint16(21417), + 448: uint16(13649), + 449: uint16(21424), + 450: uint16(13651), + 451: uint16(21442), + 452: uint16(21539), + 453: uint16(13677), + 454: uint16(13682), + 455: uint16(13953), + 456: uint16(21651), + 457: uint16(21667), + 458: uint16(21684), + 459: uint16(21689), + 460: uint16(21712), + 461: uint16(21743), + 462: uint16(21784), + 463: uint16(21795), + 464: uint16(21800), + 465: uint16(13720), + 466: uint16(21823), + 467: uint16(13733), + 468: uint16(13759), + 469: uint16(21975), + 470: uint16(13765), + 471: uint16(32132), + 472: uint16(21797), + 474: uint16(3138), + 475: uint16(3349), + 476: uint16(20779), + 477: uint16(21904), + 478: uint16(11462), + 479: uint16(14828), + 480: uint16(833), + 481: uint16(36422), + 482: uint16(19896), + 483: uint16(38117), + 484: uint16(16467), + 485: uint16(32958), + 486: uint16(30586), + 487: uint16(11320), + 488: uint16(14900), + 489: uint16(18389), + 490: uint16(33117), + 491: uint16(27122), + 492: uint16(19946), + 493: uint16(25821), + 494: uint16(3452), + 495: uint16(4020), + 496: uint16(3285), + 497: uint16(4340), + 498: uint16(25741), + 499: uint16(36478), + 500: uint16(3734), + 501: uint16(3083), + 502: uint16(3940), + 503: uint16(11433), + 504: uint16(33366), + 505: uint16(17619), + 507: uint16(3398), + 508: uint16(39501), + 509: uint16(33001), + 510: uint16(18420), + 511: uint16(20135), + 512: uint16(11458), + 513: uint16(39602), + 514: uint16(14951), + 515: uint16(38388), + 516: uint16(16365), + 517: uint16(13574), + 518: uint16(21191), + 519: uint16(38868), + 520: uint16(30920), + 521: uint16(11588), + 522: uint16(40302), + 523: uint16(38933), + 525: uint16(17369), + 526: uint16(24741), + 527: uint16(25780), + 528: uint16(21731), + 529: uint16(11596), + 530: uint16(11210), + 531: uint16(4215), + 532: uint16(14843), + 533: uint16(4207), + 534: uint16(26330), + 535: uint16(26390), + 536: uint16(31136), + 537: uint16(25834), + 538: uint16(20562), + 539: uint16(3139), + 540: uint16(36456), + 541: uint16(8609), + 542: uint16(35660), + 543: uint16(1841), + 545: uint16(18443), + 546: uint16(425), + 547: uint16(16378), + 548: uint16(22643), + 549: uint16(11661), + 551: uint16(17864), + 552: uint16(1276), + 553: uint16(24727), + 554: uint16(3916), + 555: uint16(3478), + 556: uint16(21881), + 557: uint16(16571), + 558: uint16(17338), + 560: uint16(19124), + 561: uint16(10854), + 562: uint16(4253), + 563: uint16(33194), + 564: uint16(39157), + 565: uint16(3484), + 566: uint16(25465), + 567: uint16(14846), + 568: uint16(10101), + 569: uint16(36288), + 570: uint16(22177), + 571: uint16(25724), + 572: uint16(15939), + 574: uint16(42497), + 575: uint16(3593), + 576: uint16(10959), + 577: uint16(11465), + 579: uint16(4296), + 580: uint16(14786), + 581: uint16(14738), + 582: uint16(14854), + 583: uint16(33435), + 584: uint16(13688), + 585: uint16(24137), + 586: uint16(8391), + 587: uint16(22098), + 588: uint16(3889), + 589: uint16(11442), + 590: uint16(38688), + 591: uint16(13500), + 592: uint16(27709), + 593: uint16(20027), + 596: uint16(30068), + 597: uint16(11915), + 598: uint16(8712), + 599: uint16(42587), + 600: uint16(36045), + 601: uint16(3706), + 602: uint16(3124), + 603: uint16(26652), + 604: uint16(32659), + 605: uint16(4303), + 606: uint16(10243), + 607: uint16(10553), + 608: uint16(13819), + 609: uint16(20963), + 610: uint16(3724), + 611: uint16(3981), + 612: uint16(3754), + 613: uint16(16275), + 614: uint16(3888), + 615: uint16(3399), + 616: uint16(4431), + 617: uint16(3660), + 619: uint16(3755), + 620: uint16(2985), + 621: uint16(3400), + 622: uint16(4288), + 623: uint16(4413), + 624: uint16(16377), + 625: uint16(9878), + 626: uint16(25650), + 627: uint16(4013), + 628: uint16(13300), + 629: uint16(30265), + 630: uint16(11214), + 631: uint16(3454), + 632: uint16(3455), + 633: uint16(11345), + 634: uint16(11349), + 635: uint16(14872), + 636: uint16(3736), + 637: uint16(4295), + 638: uint16(3886), + 639: uint16(42546), + 640: uint16(27472), + 641: uint16(36050), + 642: uint16(36249), + 643: uint16(36042), + 644: uint16(38314), + 645: uint16(21708), + 646: uint16(33476), + 647: uint16(21945), + 649: uint16(40643), + 650: uint16(39974), + 651: uint16(39606), + 652: uint16(30558), + 653: uint16(11758), + 654: uint16(28992), + 655: uint16(33133), + 656: uint16(33004), + 657: uint16(23580), + 658: uint16(25970), + 659: uint16(33076), + 660: uint16(14231), + 661: uint16(21343), + 662: uint16(32957), + 663: uint16(37302), + 664: uint16(3834), + 665: uint16(3599), + 666: uint16(3703), + 667: uint16(3835), + 668: uint16(13789), + 669: uint16(19947), + 670: uint16(13833), + 671: uint16(3286), + 672: uint16(22191), + 673: uint16(10165), + 674: uint16(4297), + 675: uint16(3600), + 676: uint16(3704), + 677: uint16(4216), + 678: uint16(4424), + 679: uint16(33287), + 680: uint16(5205), + 681: uint16(3705), + 682: uint16(20048), + 683: uint16(11684), + 684: uint16(23124), + 685: uint16(4125), + 686: uint16(4126), + 687: uint16(4341), + 688: uint16(4342), + 689: uint16(22428), + 690: uint16(3601), + 691: uint16(30356), + 692: uint16(33485), + 693: uint16(4021), + 694: uint16(3707), + 695: uint16(20862), + 696: uint16(14083), + 697: uint16(4022), + 698: uint16(4480), + 699: uint16(21208), + 700: uint16(41661), + 701: uint16(18906), + 702: uint16(6202), + 703: uint16(16759), + 704: uint16(33404), + 705: uint16(22681), + 706: uint16(21096), + 707: uint16(13850), + 708: uint16(22333), + 709: uint16(31666), + 710: uint16(23400), + 711: uint16(18432), + 712: uint16(19244), + 713: uint16(40743), + 714: uint16(18919), + 715: uint16(39967), + 716: uint16(39821), + 717: uint16(23412), + 718: uint16(12605), + 719: uint16(22011), + 720: uint16(13810), + 721: uint16(22153), + 722: uint16(20008), + 723: uint16(22786), + 724: uint16(7105), + 725: uint16(63608), + 726: uint16(38737), + 727: uint16(134), + 728: uint16(20059), + 729: uint16(20155), + 730: uint16(13630), + 731: uint16(23587), + 732: uint16(24401), + 733: uint16(24516), + 734: uint16(14586), + 735: uint16(25164), + 736: uint16(25909), + 737: uint16(27514), + 738: uint16(27701), + 739: uint16(27706), + 740: uint16(28780), + 741: uint16(29227), + 742: uint16(20012), + 743: uint16(29357), + 744: uint16(18665), + 745: uint16(32594), + 746: uint16(31035), + 747: uint16(31993), + 748: uint16(32595), + 749: uint16(25194), + 750: uint16(13505), + 752: uint16(25419), + 753: uint16(32770), + 754: uint16(32896), + 755: uint16(26130), + 756: uint16(26961), + 757: uint16(21341), + 758: uint16(34916), + 759: uint16(35265), + 760: uint16(30898), + 761: uint16(35744), + 762: uint16(36125), + 763: uint16(38021), + 764: uint16(38264), + 765: uint16(38271), + 766: uint16(38376), + 767: uint16(36367), + 768: uint16(38886), + 769: uint16(39029), + 770: uint16(39118), + 771: uint16(39134), + 772: uint16(39267), + 773: uint16(38928), + 774: uint16(40060), + 775: uint16(40479), + 776: uint16(40644), + 777: uint16(27503), + 778: uint16(63751), + 779: uint16(20023), + 780: uint16(135), + 781: uint16(38429), + 782: uint16(25143), + 783: uint16(38050), + 785: uint16(20539), + 786: uint16(28158), + 787: uint16(40051), + 788: uint16(40870), + 789: uint16(15817), + 790: uint16(34959), + 791: uint16(16718), + 792: uint16(28791), + 793: uint16(23797), + 794: uint16(19232), + 795: uint16(20941), + 796: uint16(13657), + 797: uint16(23856), + 798: uint16(24866), + 799: uint16(35378), + 800: uint16(36775), + 801: uint16(37366), + 802: uint16(29073), + 803: uint16(26393), + 804: uint16(29626), + 805: uint16(12929), + 806: uint16(41223), + 807: uint16(15499), + 808: uint16(6528), + 809: uint16(19216), + 810: uint16(30948), + 811: uint16(29698), + 812: uint16(20910), + 813: uint16(34575), + 814: uint16(16393), + 815: uint16(27235), + 816: uint16(41658), + 817: uint16(16931), + 818: uint16(34319), + 819: uint16(2671), + 820: uint16(31274), + 821: uint16(39239), + 822: uint16(35562), + 823: uint16(38741), + 824: uint16(28749), + 825: uint16(21284), + 826: uint16(8318), + 827: uint16(37876), + 828: uint16(30425), + 829: uint16(35299), + 830: uint16(40871), + 831: uint16(30685), + 832: uint16(20131), + 833: uint16(20464), + 834: uint16(20668), + 835: uint16(20015), + 836: uint16(20247), + 837: uint16(40872), + 838: uint16(21556), + 839: uint16(32139), + 840: uint16(22674), + 841: uint16(22736), + 842: uint16(7606), + 843: uint16(24210), + 844: uint16(24217), + 845: uint16(24514), + 846: uint16(10002), + 847: uint16(25995), + 848: uint16(13305), + 849: uint16(26905), + 850: uint16(27203), + 851: uint16(15459), + 852: uint16(27903), + 854: uint16(29184), + 855: uint16(17669), + 856: uint16(29580), + 857: uint16(16091), + 858: uint16(18963), + 859: uint16(23317), + 860: uint16(29881), + 861: uint16(35715), + 862: uint16(23716), + 863: uint16(22165), + 864: uint16(31379), + 865: uint16(31724), + 866: uint16(31939), + 867: uint16(32364), + 868: uint16(33528), + 869: uint16(34199), + 870: uint16(40873), + 871: uint16(34960), + 872: uint16(40874), + 873: uint16(36537), + 874: uint16(40875), + 875: uint16(36815), + 876: uint16(34143), + 877: uint16(39392), + 878: uint16(37409), + 879: uint16(40876), + 880: uint16(36281), + 881: uint16(5183), + 882: uint16(16497), + 883: uint16(17058), + 884: uint16(23066), + 888: uint16(39016), + 889: uint16(26475), + 890: uint16(17014), + 891: uint16(22333), + 893: uint16(34262), + 894: uint16(18811), + 895: uint16(33471), + 896: uint16(28941), + 897: uint16(19585), + 898: uint16(28020), + 899: uint16(23931), + 900: uint16(27413), + 901: uint16(28606), + 902: uint16(40877), + 903: uint16(40878), + 904: uint16(23446), + 905: uint16(40879), + 906: uint16(26343), + 907: uint16(32347), + 908: uint16(28247), + 909: uint16(31178), + 910: uint16(15752), + 911: uint16(17603), + 912: uint16(12886), + 913: uint16(10134), + 914: uint16(17306), + 915: uint16(17718), + 917: uint16(23765), + 918: uint16(15130), + 919: uint16(35577), + 920: uint16(23672), + 921: uint16(15634), + 922: uint16(13649), + 923: uint16(23928), + 924: uint16(40882), + 925: uint16(29015), + 926: uint16(17752), + 927: uint16(16620), + 928: uint16(7715), + 929: uint16(19575), + 930: uint16(14712), + 931: uint16(13386), + 932: uint16(420), + 933: uint16(27713), + 934: uint16(35532), + 935: uint16(20404), + 936: uint16(569), + 937: uint16(22975), + 938: uint16(33132), + 939: uint16(38998), + 940: uint16(39162), + 941: uint16(24379), + 942: uint16(2975), + 944: uint16(8641), + 945: uint16(35181), + 946: uint16(16642), + 947: uint16(18107), + 948: uint16(36985), + 949: uint16(16135), + 950: uint16(40883), + 951: uint16(41397), + 952: uint16(16632), + 953: uint16(14294), + 954: uint16(18167), + 955: uint16(27718), + 956: uint16(16764), + 957: uint16(34482), + 958: uint16(29695), + 959: uint16(17773), + 960: uint16(14548), + 961: uint16(21658), + 962: uint16(17761), + 963: uint16(17691), + 964: uint16(19849), + 965: uint16(19579), + 966: uint16(19830), + 967: uint16(17898), + 968: uint16(16328), + 969: uint16(19215), + 970: uint16(13921), + 971: uint16(17630), + 972: uint16(17597), + 973: uint16(16877), + 974: uint16(23870), + 975: uint16(23880), + 976: uint16(23894), + 977: uint16(15868), + 978: uint16(14351), + 979: uint16(23972), + 980: uint16(23993), + 981: uint16(14368), + 982: uint16(14392), + 983: uint16(24130), + 984: uint16(24253), + 985: uint16(24357), + 986: uint16(24451), + 987: uint16(14600), + 988: uint16(14612), + 989: uint16(14655), + 990: uint16(14669), + 991: uint16(24791), + 992: uint16(24893), + 993: uint16(23781), + 994: uint16(14729), + 995: uint16(25015), + 996: uint16(25017), + 997: uint16(25039), + 998: uint16(14776), + 999: uint16(25132), + 1000: uint16(25232), + 1001: uint16(25317), + 1002: uint16(25368), + 1003: uint16(14840), + 1004: uint16(22193), + 1005: uint16(14851), + 1006: uint16(25570), + 1007: uint16(25595), + 1008: uint16(25607), + 1009: uint16(25690), + 1010: uint16(14923), + 1011: uint16(25792), + 1012: uint16(23829), + 1013: uint16(22049), + 1014: uint16(40863), + 1015: uint16(14999), + 1016: uint16(25990), + 1017: uint16(15037), + 1018: uint16(26111), + 1019: uint16(26195), + 1020: uint16(15090), + 1021: uint16(26258), + 1022: uint16(15138), + 1023: uint16(26390), + 1024: uint16(15170), + 1025: uint16(26532), + 1026: uint16(26624), + 1027: uint16(15192), + 1028: uint16(26698), + 1029: uint16(26756), + 1030: uint16(15218), + 1031: uint16(15217), + 1032: uint16(15227), + 1033: uint16(26889), + 1034: uint16(26947), + 1035: uint16(29276), + 1036: uint16(26980), + 1037: uint16(27039), + 1038: uint16(27013), + 1039: uint16(15292), + 1040: uint16(27094), + 1041: uint16(15325), + 1042: uint16(27237), + 1043: uint16(27252), + 1044: uint16(27249), + 1045: uint16(27266), + 1046: uint16(15340), + 1047: uint16(27289), + 1048: uint16(15346), + 1049: uint16(27307), + 1050: uint16(27317), + 1051: uint16(27348), + 1052: uint16(27382), + 1053: uint16(27521), + 1054: uint16(27585), + 1055: uint16(27626), + 1056: uint16(27765), + 1057: uint16(27818), + 1058: uint16(15563), + 1059: uint16(27906), + 1060: uint16(27910), + 1061: uint16(27942), + 1062: uint16(28033), + 1063: uint16(15599), + 1064: uint16(28068), + 1065: uint16(28081), + 1066: uint16(28181), + 1067: uint16(28184), + 1068: uint16(28201), + 1069: uint16(28294), + 1070: uint16(35264), + 1071: uint16(28347), + 1072: uint16(28386), + 1073: uint16(28378), + 1074: uint16(40831), + 1075: uint16(28392), + 1076: uint16(28393), + 1077: uint16(28452), + 1078: uint16(28468), + 1079: uint16(15686), + 1080: uint16(16193), + 1081: uint16(28545), + 1082: uint16(28606), + 1083: uint16(15722), + 1084: uint16(15733), + 1085: uint16(29111), + 1086: uint16(23705), + 1087: uint16(15754), + 1088: uint16(28716), + 1089: uint16(15761), + 1090: uint16(28752), + 1091: uint16(28756), + 1092: uint16(28783), + 1093: uint16(28799), + 1094: uint16(28809), + 1095: uint16(805), + 1096: uint16(17345), + 1097: uint16(13809), + 1098: uint16(3800), + 1099: uint16(16087), + 1100: uint16(22462), + 1101: uint16(28371), + 1102: uint16(28990), + 1103: uint16(22496), + 1104: uint16(13902), + 1105: uint16(27042), + 1106: uint16(35817), + 1107: uint16(23412), + 1108: uint16(31305), + 1109: uint16(22753), + 1110: uint16(38105), + 1111: uint16(31333), + 1112: uint16(31357), + 1113: uint16(22956), + 1114: uint16(31419), + 1115: uint16(31408), + 1116: uint16(31426), + 1117: uint16(31427), + 1118: uint16(29137), + 1119: uint16(25741), + 1120: uint16(16842), + 1121: uint16(31450), + 1122: uint16(31453), + 1123: uint16(31466), + 1124: uint16(16879), + 1125: uint16(21682), + 1126: uint16(23553), + 1127: uint16(31499), + 1128: uint16(31573), + 1129: uint16(31529), + 1130: uint16(21262), + 1131: uint16(23806), + 1132: uint16(31650), + 1133: uint16(31599), + 1134: uint16(33692), + 1135: uint16(23476), + 1136: uint16(27775), + 1137: uint16(31696), + 1138: uint16(33825), + 1139: uint16(31634), + 1141: uint16(23840), + 1142: uint16(15789), + 1143: uint16(23653), + 1144: uint16(33938), + 1145: uint16(31738), + 1147: uint16(31797), + 1148: uint16(23745), + 1149: uint16(31812), + 1150: uint16(31875), + 1151: uint16(18562), + 1152: uint16(31910), + 1153: uint16(26237), + 1154: uint16(17784), + 1155: uint16(31945), + 1156: uint16(31943), + 1157: uint16(31974), + 1158: uint16(31860), + 1159: uint16(31987), + 1160: uint16(31989), + 1162: uint16(32359), + 1163: uint16(17693), + 1164: uint16(28228), + 1165: uint16(32093), + 1166: uint16(28374), + 1167: uint16(29837), + 1168: uint16(32137), + 1169: uint16(32171), + 1170: uint16(28981), + 1171: uint16(32179), + 1173: uint16(16471), + 1174: uint16(24617), + 1175: uint16(32228), + 1176: uint16(15635), + 1177: uint16(32245), + 1178: uint16(6137), + 1179: uint16(32229), + 1180: uint16(33645), + 1182: uint16(24865), + 1183: uint16(24922), + 1184: uint16(32366), + 1185: uint16(32402), + 1186: uint16(17195), + 1187: uint16(37996), + 1188: uint16(32295), + 1189: uint16(32576), + 1190: uint16(32577), + 1191: uint16(32583), + 1192: uint16(31030), + 1193: uint16(25296), + 1194: uint16(39393), + 1195: uint16(32663), + 1196: uint16(25425), + 1197: uint16(32675), + 1198: uint16(5729), + 1199: uint16(104), + 1200: uint16(17756), + 1201: uint16(14182), + 1202: uint16(17667), + 1203: uint16(33594), + 1204: uint16(32762), + 1205: uint16(25737), + 1207: uint16(32776), + 1208: uint16(32797), + 1210: uint16(32815), + 1211: uint16(41095), + 1212: uint16(27843), + 1213: uint16(32827), + 1214: uint16(32828), + 1215: uint16(32865), + 1216: uint16(10004), + 1217: uint16(18825), + 1218: uint16(26150), + 1219: uint16(15843), + 1220: uint16(26344), + 1221: uint16(26405), + 1222: uint16(32935), + 1223: uint16(35400), + 1224: uint16(33031), + 1225: uint16(33050), + 1226: uint16(22704), + 1227: uint16(9974), + 1228: uint16(27775), + 1229: uint16(25752), + 1230: uint16(20408), + 1231: uint16(25831), + 1232: uint16(5258), + 1233: uint16(33304), + 1234: uint16(6238), + 1235: uint16(27219), + 1236: uint16(19045), + 1237: uint16(19093), + 1238: uint16(17530), + 1239: uint16(33321), + 1240: uint16(2829), + 1241: uint16(27218), + 1242: uint16(15742), + 1243: uint16(20473), + 1244: uint16(5373), + 1245: uint16(34018), + 1246: uint16(33634), + 1247: uint16(27402), + 1248: uint16(18855), + 1249: uint16(13616), + 1250: uint16(6003), + 1251: uint16(15864), + 1252: uint16(33450), + 1253: uint16(26907), + 1254: uint16(63892), + 1255: uint16(16859), + 1256: uint16(34123), + 1257: uint16(33488), + 1258: uint16(33562), + 1259: uint16(3606), + 1260: uint16(6068), + 1261: uint16(14017), + 1262: uint16(12669), + 1263: uint16(13658), + 1264: uint16(33403), + 1265: uint16(33506), + 1266: uint16(33560), + 1267: uint16(16011), + 1268: uint16(28067), + 1269: uint16(27397), + 1270: uint16(27543), + 1271: uint16(13774), + 1272: uint16(15807), + 1273: uint16(33565), + 1274: uint16(21996), + 1275: uint16(33669), + 1276: uint16(17675), + 1277: uint16(28069), + 1278: uint16(33708), + 1280: uint16(33747), + 1281: uint16(13438), + 1282: uint16(28372), + 1283: uint16(27223), + 1284: uint16(34138), + 1285: uint16(13462), + 1286: uint16(28226), + 1287: uint16(12015), + 1288: uint16(33880), + 1289: uint16(23524), + 1290: uint16(33905), + 1291: uint16(15827), + 1292: uint16(17636), + 1293: uint16(27303), + 1294: uint16(33866), + 1295: uint16(15541), + 1296: uint16(31064), + 1298: uint16(27542), + 1299: uint16(28279), + 1300: uint16(28227), + 1301: uint16(34014), + 1303: uint16(33681), + 1304: uint16(17568), + 1305: uint16(33939), + 1306: uint16(34020), + 1307: uint16(23697), + 1308: uint16(16960), + 1309: uint16(23744), + 1310: uint16(17731), + 1311: uint16(34100), + 1312: uint16(23282), + 1313: uint16(28313), + 1314: uint16(17703), + 1315: uint16(34163), + 1316: uint16(17686), + 1317: uint16(26559), + 1318: uint16(34326), + 1319: uint16(34341), + 1320: uint16(34363), + 1321: uint16(34241), + 1322: uint16(28808), + 1323: uint16(34306), + 1324: uint16(5506), + 1325: uint16(28877), + 1326: uint16(63922), + 1327: uint16(17770), + 1328: uint16(34344), + 1329: uint16(13896), + 1330: uint16(6306), + 1331: uint16(21495), + 1332: uint16(29594), + 1333: uint16(34430), + 1334: uint16(34673), + 1335: uint16(41208), + 1336: uint16(34798), + 1337: uint16(11303), + 1338: uint16(34737), + 1339: uint16(34778), + 1340: uint16(34831), + 1341: uint16(22113), + 1342: uint16(34412), + 1343: uint16(26710), + 1344: uint16(17935), + 1345: uint16(34885), + 1346: uint16(34886), + 1347: uint16(30176), + 1348: uint16(15801), + 1349: uint16(30180), + 1350: uint16(34910), + 1351: uint16(34972), + 1352: uint16(18011), + 1353: uint16(34996), + 1354: uint16(34997), + 1355: uint16(25537), + 1356: uint16(35013), + 1357: uint16(30583), + 1358: uint16(30479), + 1359: uint16(35207), + 1360: uint16(35210), + 1363: uint16(35239), + 1364: uint16(35260), + 1365: uint16(35365), + 1366: uint16(35303), + 1367: uint16(31012), + 1368: uint16(31421), + 1369: uint16(35484), + 1370: uint16(30611), + 1371: uint16(37374), + 1372: uint16(35472), + 1373: uint16(31321), + 1374: uint16(31465), + 1375: uint16(31546), + 1376: uint16(16271), + 1377: uint16(18195), + 1378: uint16(31544), + 1379: uint16(29052), + 1380: uint16(35596), + 1381: uint16(35615), + 1382: uint16(21552), + 1383: uint16(21861), + 1384: uint16(35647), + 1385: uint16(35660), + 1386: uint16(35661), + 1387: uint16(35497), + 1388: uint16(19066), + 1389: uint16(35728), + 1390: uint16(35739), + 1391: uint16(35503), + 1392: uint16(5855), + 1393: uint16(17941), + 1394: uint16(34895), + 1395: uint16(35995), + 1396: uint16(32084), + 1397: uint16(32143), + 1398: uint16(63956), + 1399: uint16(14117), + 1400: uint16(32083), + 1401: uint16(36054), + 1402: uint16(32152), + 1403: uint16(32189), + 1404: uint16(36114), + 1405: uint16(36099), + 1406: uint16(6416), + 1407: uint16(36059), + 1408: uint16(28764), + 1409: uint16(36113), + 1410: uint16(19657), + 1411: uint16(16080), + 1413: uint16(36265), + 1414: uint16(32770), + 1415: uint16(4116), + 1416: uint16(18826), + 1417: uint16(15228), + 1418: uint16(33212), + 1419: uint16(28940), + 1420: uint16(31463), + 1421: uint16(36525), + 1422: uint16(36534), + 1423: uint16(36547), + 1424: uint16(37588), + 1425: uint16(36633), + 1426: uint16(36653), + 1427: uint16(33637), + 1428: uint16(33810), + 1429: uint16(36773), + 1430: uint16(37635), + 1431: uint16(41631), + 1432: uint16(2640), + 1433: uint16(36787), + 1434: uint16(18730), + 1435: uint16(35294), + 1436: uint16(34109), + 1437: uint16(15803), + 1438: uint16(24312), + 1439: uint16(12898), + 1440: uint16(36857), + 1441: uint16(40980), + 1442: uint16(34492), + 1443: uint16(34049), + 1444: uint16(8997), + 1445: uint16(14720), + 1446: uint16(28375), + 1447: uint16(36919), + 1448: uint16(34108), + 1449: uint16(31422), + 1450: uint16(36961), + 1451: uint16(34156), + 1452: uint16(34315), + 1453: uint16(37032), + 1454: uint16(34579), + 1455: uint16(37060), + 1456: uint16(34534), + 1457: uint16(37038), + 1459: uint16(37223), + 1460: uint16(15088), + 1461: uint16(37289), + 1462: uint16(37316), + 1463: uint16(31916), + 1464: uint16(35123), + 1465: uint16(7817), + 1466: uint16(37390), + 1467: uint16(27807), + 1468: uint16(37441), + 1469: uint16(37474), + 1470: uint16(21945), + 1472: uint16(35526), + 1473: uint16(15515), + 1474: uint16(35596), + 1475: uint16(21979), + 1476: uint16(3377), + 1477: uint16(37676), + 1478: uint16(37739), + 1479: uint16(35553), + 1480: uint16(35819), + 1481: uint16(28815), + 1482: uint16(23235), + 1483: uint16(35554), + 1484: uint16(35557), + 1485: uint16(18789), + 1486: uint16(37444), + 1487: uint16(35820), + 1488: uint16(35897), + 1489: uint16(35839), + 1490: uint16(37747), + 1491: uint16(37979), + 1492: uint16(36540), + 1493: uint16(38277), + 1494: uint16(38310), + 1495: uint16(37926), + 1496: uint16(38304), + 1497: uint16(28662), + 1498: uint16(17081), + 1499: uint16(9850), + 1500: uint16(34520), + 1501: uint16(4732), + 1502: uint16(15918), + 1503: uint16(18911), + 1504: uint16(27676), + 1505: uint16(38523), + 1506: uint16(38550), + 1507: uint16(16748), + 1508: uint16(38563), + 1509: uint16(28373), + 1510: uint16(25050), + 1511: uint16(38582), + 1512: uint16(30965), + 1513: uint16(35552), + 1514: uint16(38589), + 1515: uint16(21452), + 1516: uint16(18849), + 1517: uint16(27832), + 1518: uint16(628), + 1519: uint16(25616), + 1520: uint16(37039), + 1521: uint16(37093), + 1522: uint16(19153), + 1523: uint16(6421), + 1524: uint16(13066), + 1525: uint16(38705), + 1526: uint16(34370), + 1527: uint16(38710), + 1528: uint16(18959), + 1529: uint16(17725), + 1530: uint16(17797), + 1531: uint16(19177), + 1532: uint16(28789), + 1533: uint16(23361), + 1534: uint16(38683), + 1536: uint16(37333), + 1537: uint16(38743), + 1538: uint16(23370), + 1539: uint16(37355), + 1540: uint16(38751), + 1541: uint16(37925), + 1542: uint16(20688), + 1543: uint16(12471), + 1544: uint16(12476), + 1545: uint16(38793), + 1546: uint16(38815), + 1547: uint16(38833), + 1548: uint16(38846), + 1549: uint16(38848), + 1550: uint16(38866), + 1551: uint16(38880), + 1552: uint16(21612), + 1553: uint16(38894), + 1554: uint16(29724), + 1555: uint16(37939), + 1557: uint16(38901), + 1558: uint16(37917), + 1559: uint16(31098), + 1560: uint16(19153), + 1561: uint16(38964), + 1562: uint16(38963), + 1563: uint16(38987), + 1564: uint16(39014), + 1565: uint16(15118), + 1566: uint16(29045), + 1567: uint16(15697), + 1568: uint16(1584), + 1569: uint16(16732), + 1570: uint16(22278), + 1571: uint16(39114), + 1572: uint16(39095), + 1573: uint16(39112), + 1574: uint16(39111), + 1575: uint16(19199), + 1576: uint16(27943), + 1577: uint16(5843), + 1578: uint16(21936), + 1579: uint16(39137), + 1580: uint16(39142), + 1581: uint16(39148), + 1582: uint16(37752), + 1583: uint16(39225), + 1584: uint16(18985), + 1585: uint16(19314), + 1586: uint16(38999), + 1587: uint16(39173), + 1588: uint16(39413), + 1589: uint16(39436), + 1590: uint16(39483), + 1591: uint16(39440), + 1592: uint16(39512), + 1593: uint16(22309), + 1594: uint16(14020), + 1595: uint16(37041), + 1596: uint16(39893), + 1597: uint16(39648), + 1598: uint16(39650), + 1599: uint16(39685), + 1600: uint16(39668), + 1601: uint16(19470), + 1602: uint16(39700), + 1603: uint16(39725), + 1604: uint16(34304), + 1605: uint16(20532), + 1606: uint16(39732), + 1607: uint16(27048), + 1608: uint16(14531), + 1609: uint16(12413), + 1610: uint16(39760), + 1611: uint16(39744), + 1612: uint16(40254), + 1613: uint16(23109), + 1614: uint16(6243), + 1615: uint16(39822), + 1616: uint16(16971), + 1617: uint16(39938), + 1618: uint16(39935), + 1619: uint16(39948), + 1620: uint16(40552), + 1621: uint16(40404), + 1622: uint16(40887), + 1623: uint16(41362), + 1624: uint16(41387), + 1625: uint16(41185), + 1626: uint16(41251), + 1627: uint16(41439), + 1628: uint16(40318), + 1629: uint16(40323), + 1630: uint16(41268), + 1631: uint16(40462), + 1632: uint16(26760), + 1633: uint16(40388), + 1634: uint16(8539), + 1635: uint16(41363), + 1636: uint16(41504), + 1637: uint16(6459), + 1638: uint16(41523), + 1639: uint16(40249), + 1640: uint16(41145), + 1641: uint16(41652), + 1642: uint16(40592), + 1643: uint16(40597), + 1644: uint16(40606), + 1645: uint16(40610), + 1646: uint16(19764), + 1647: uint16(40618), + 1648: uint16(40623), + 1649: uint16(17252), + 1650: uint16(40641), + 1651: uint16(15200), + 1652: uint16(14821), + 1653: uint16(15645), + 1654: uint16(20274), + 1655: uint16(14270), + 1656: uint16(35883), + 1657: uint16(40706), + 1658: uint16(40712), + 1659: uint16(19350), + 1660: uint16(37924), + 1661: uint16(28066), + 1662: uint16(40727), + 1664: uint16(40761), + 1665: uint16(22175), + 1666: uint16(22154), + 1667: uint16(40773), + 1668: uint16(39352), + 1669: uint16(37003), + 1670: uint16(38898), + 1671: uint16(33919), + 1672: uint16(40802), + 1673: uint16(40809), + 1674: uint16(31452), + 1675: uint16(40846), + 1676: uint16(29206), + 1677: uint16(19390), + 1678: uint16(18805), + 1679: uint16(18875), + 1680: uint16(29047), + 1681: uint16(18936), + 1682: uint16(17224), + 1683: uint16(19025), + 1684: uint16(29598), + 1685: uint16(35802), + 1686: uint16(6394), + 1687: uint16(31135), + 1688: uint16(35198), + 1689: uint16(36406), + 1690: uint16(37737), + 1691: uint16(37875), + 1692: uint16(35396), + 1693: uint16(37612), + 1694: uint16(37761), + 1695: uint16(37835), + 1696: uint16(35180), + 1697: uint16(17593), + 1698: uint16(29207), + 1699: uint16(16107), + 1700: uint16(30578), + 1701: uint16(31299), + 1702: uint16(28880), + 1703: uint16(17523), + 1704: uint16(17400), + 1705: uint16(29054), + 1706: uint16(6127), + 1707: uint16(28835), + 1708: uint16(6334), + 1709: uint16(13721), + 1710: uint16(16071), + 1711: uint16(6277), + 1712: uint16(21551), + 1713: uint16(6136), + 1714: uint16(14114), + 1715: uint16(5883), + 1716: uint16(6201), + 1717: uint16(14049), + 1718: uint16(6004), + 1719: uint16(6353), + 1720: uint16(24395), + 1721: uint16(14115), + 1722: uint16(5824), + 1723: uint16(22363), + 1724: uint16(18981), + 1725: uint16(5118), + 1726: uint16(4776), + 1727: uint16(5062), + 1728: uint16(5302), + 1729: uint16(34051), + 1730: uint16(13990), + 1732: uint16(33877), + 1733: uint16(18836), + 1734: uint16(29029), + 1735: uint16(15921), + 1736: uint16(21852), + 1737: uint16(16123), + 1738: uint16(28754), + 1739: uint16(17652), + 1740: uint16(14062), + 1741: uint16(39325), + 1742: uint16(28454), + 1743: uint16(26617), + 1744: uint16(14131), + 1745: uint16(15381), + 1746: uint16(15847), + 1747: uint16(22636), + 1748: uint16(6434), + 1749: uint16(26640), + 1750: uint16(16471), + 1751: uint16(14143), + 1752: uint16(16609), + 1753: uint16(16523), + 1754: uint16(16655), + 1755: uint16(27681), + 1756: uint16(21707), + 1757: uint16(22174), + 1758: uint16(26289), + 1759: uint16(22162), + 1760: uint16(4063), + 1761: uint16(2984), + 1762: uint16(3597), + 1763: uint16(37830), + 1764: uint16(35603), + 1765: uint16(37788), + 1766: uint16(20216), + 1767: uint16(20779), + 1768: uint16(14361), + 1769: uint16(17462), + 1770: uint16(20156), + 1771: uint16(1125), + 1772: uint16(895), + 1773: uint16(20299), + 1774: uint16(20362), + 1775: uint16(22097), + 1776: uint16(23144), + 1777: uint16(427), + 1778: uint16(971), + 1779: uint16(14745), + 1780: uint16(778), + 1781: uint16(1044), + 1782: uint16(13365), + 1783: uint16(20265), + 1784: uint16(704), + 1785: uint16(36531), + 1786: uint16(629), + 1787: uint16(35546), + 1788: uint16(524), + 1789: uint16(20120), + 1790: uint16(20685), + 1791: uint16(20749), + 1792: uint16(20386), + 1793: uint16(20227), + 1794: uint16(18958), + 1795: uint16(16010), + 1796: uint16(20290), + 1797: uint16(20526), + 1798: uint16(20588), + 1799: uint16(20609), + 1800: uint16(20428), + 1801: uint16(20453), + 1802: uint16(20568), + 1803: uint16(20732), + 1808: uint16(28278), + 1809: uint16(13717), + 1810: uint16(15929), + 1811: uint16(16063), + 1812: uint16(28018), + 1813: uint16(6276), + 1814: uint16(16009), + 1815: uint16(20904), + 1816: uint16(20931), + 1817: uint16(1504), + 1818: uint16(17629), + 1819: uint16(1187), + 1820: uint16(1170), + 1821: uint16(1169), + 1822: uint16(36218), + 1823: uint16(35484), + 1824: uint16(1806), + 1825: uint16(21081), + 1826: uint16(21156), + 1827: uint16(2163), + 1828: uint16(21217), + 1830: uint16(18042), + 1831: uint16(29068), + 1832: uint16(17292), + 1833: uint16(3104), + 1834: uint16(18860), + 1835: uint16(4324), + 1836: uint16(27089), + 1837: uint16(3613), + 1839: uint16(16094), + 1840: uint16(29849), + 1841: uint16(29716), + 1842: uint16(29782), + 1843: uint16(29592), + 1844: uint16(19342), + 1845: uint16(19132), + 1846: uint16(16525), + 1847: uint16(21456), + 1848: uint16(13700), + 1849: uint16(29199), + 1850: uint16(16585), + 1851: uint16(21940), + 1852: uint16(837), + 1853: uint16(21709), + 1854: uint16(3014), + 1855: uint16(22301), + 1856: uint16(37469), + 1857: uint16(38644), + 1858: uint16(37734), + 1859: uint16(22493), + 1860: uint16(22413), + 1861: uint16(22399), + 1862: uint16(13886), + 1863: uint16(22731), + 1864: uint16(23193), + 1865: uint16(35398), + 1866: uint16(5882), + 1867: uint16(5999), + 1868: uint16(5904), + 1869: uint16(23084), + 1870: uint16(22968), + 1871: uint16(37519), + 1872: uint16(23166), + 1873: uint16(23247), + 1874: uint16(23058), + 1875: uint16(22854), + 1876: uint16(6643), + 1877: uint16(6241), + 1878: uint16(17045), + 1879: uint16(14069), + 1880: uint16(27909), + 1881: uint16(29763), + 1882: uint16(23073), + 1883: uint16(24195), + 1884: uint16(23169), + 1885: uint16(35799), + 1886: uint16(1043), + 1887: uint16(37856), + 1888: uint16(29836), + 1889: uint16(4867), + 1890: uint16(28933), + 1891: uint16(18802), + 1892: uint16(37896), + 1893: uint16(35323), + 1894: uint16(37821), + 1895: uint16(14240), + 1896: uint16(23582), + 1897: uint16(23710), + 1898: uint16(24158), + 1899: uint16(24136), + 1900: uint16(6550), + 1901: uint16(6524), + 1902: uint16(15086), + 1903: uint16(24269), + 1904: uint16(23375), + 1905: uint16(6403), + 1906: uint16(6404), + 1907: uint16(14081), + 1908: uint16(6304), + 1909: uint16(14045), + 1910: uint16(5886), + 1911: uint16(14035), + 1912: uint16(33066), + 1913: uint16(35399), + 1914: uint16(7610), + 1915: uint16(13426), + 1916: uint16(35240), + 1917: uint16(24332), + 1918: uint16(24334), + 1919: uint16(6439), + 1920: uint16(6059), + 1921: uint16(23147), + 1922: uint16(5947), + 1923: uint16(23364), + 1924: uint16(34324), + 1925: uint16(30205), + 1926: uint16(34912), + 1927: uint16(24702), + 1928: uint16(10336), + 1929: uint16(9771), + 1930: uint16(24539), + 1931: uint16(16056), + 1932: uint16(9647), + 1933: uint16(9662), + 1934: uint16(37000), + 1935: uint16(28531), + 1936: uint16(25024), + 1937: uint16(62), + 1938: uint16(70), + 1939: uint16(9755), + 1940: uint16(24985), + 1941: uint16(24984), + 1942: uint16(24693), + 1943: uint16(11419), + 1944: uint16(11527), + 1945: uint16(18132), + 1946: uint16(37197), + 1947: uint16(25713), + 1948: uint16(18021), + 1949: uint16(11114), + 1950: uint16(14889), + 1951: uint16(11042), + 1952: uint16(13392), + 1953: uint16(39146), + 1954: uint16(11896), + 1955: uint16(25399), + 1956: uint16(42075), + 1957: uint16(25782), + 1958: uint16(25393), + 1959: uint16(25553), + 1960: uint16(18915), + 1961: uint16(11623), + 1962: uint16(25252), + 1963: uint16(11425), + 1964: uint16(25659), + 1965: uint16(25963), + 1966: uint16(26994), + 1967: uint16(15348), + 1968: uint16(12430), + 1969: uint16(12973), + 1970: uint16(18825), + 1971: uint16(12971), + 1972: uint16(21773), + 1973: uint16(13024), + 1974: uint16(6361), + 1975: uint16(37951), + 1976: uint16(26318), + 1977: uint16(12937), + 1978: uint16(12723), + 1979: uint16(15072), + 1980: uint16(16784), + 1981: uint16(21892), + 1982: uint16(35618), + 1983: uint16(21903), + 1984: uint16(5884), + 1985: uint16(21851), + 1986: uint16(21541), + 1987: uint16(30958), + 1988: uint16(12547), + 1989: uint16(6186), + 1990: uint16(12852), + 1991: uint16(13412), + 1992: uint16(12815), + 1993: uint16(12674), + 1994: uint16(17097), + 1995: uint16(26254), + 1996: uint16(27940), + 1997: uint16(26219), + 1998: uint16(19347), + 1999: uint16(26160), + 2000: uint16(30832), + 2001: uint16(7659), + 2002: uint16(26211), + 2003: uint16(13010), + 2004: uint16(13025), + 2005: uint16(26142), + 2006: uint16(22642), + 2007: uint16(14545), + 2008: uint16(14394), + 2009: uint16(14268), + 2010: uint16(15257), + 2011: uint16(14242), + 2012: uint16(13310), + 2013: uint16(29904), + 2014: uint16(15254), + 2015: uint16(26511), + 2016: uint16(17962), + 2017: uint16(26806), + 2018: uint16(26654), + 2019: uint16(15300), + 2020: uint16(27326), + 2021: uint16(14435), + 2022: uint16(14293), + 2023: uint16(17543), + 2024: uint16(27187), + 2025: uint16(27218), + 2026: uint16(27337), + 2027: uint16(27397), + 2028: uint16(6418), + 2029: uint16(25873), + 2030: uint16(26776), + 2031: uint16(27212), + 2032: uint16(15319), + 2033: uint16(27258), + 2034: uint16(27479), + 2035: uint16(16320), + 2036: uint16(15514), + 2037: uint16(37792), + 2038: uint16(37618), + 2039: uint16(35818), + 2040: uint16(35531), + 2041: uint16(37513), + 2042: uint16(32798), + 2043: uint16(35292), + 2044: uint16(37991), + 2045: uint16(28069), + 2046: uint16(28427), + 2047: uint16(18924), + 2049: uint16(16255), + 2050: uint16(15759), + 2051: uint16(28164), + 2052: uint16(16444), + 2053: uint16(23101), + 2054: uint16(28170), + 2055: uint16(22599), + 2056: uint16(27940), + 2057: uint16(30786), + 2058: uint16(28987), + 2059: uint16(17178), + 2060: uint16(17014), + 2061: uint16(28913), + 2062: uint16(29264), + 2063: uint16(29319), + 2064: uint16(29332), + 2065: uint16(18319), + 2066: uint16(18213), + 2067: uint16(20857), + 2068: uint16(19108), + 2069: uint16(1515), + 2070: uint16(29818), + 2071: uint16(16120), + 2072: uint16(13919), + 2073: uint16(19018), + 2074: uint16(18711), + 2075: uint16(24545), + 2076: uint16(16134), + 2077: uint16(16049), + 2078: uint16(19167), + 2079: uint16(35875), + 2080: uint16(16181), + 2081: uint16(24743), + 2082: uint16(16115), + 2083: uint16(29900), + 2084: uint16(29756), + 2085: uint16(37767), + 2086: uint16(29751), + 2087: uint16(17567), + 2088: uint16(28138), + 2089: uint16(17745), + 2090: uint16(30083), + 2091: uint16(16227), + 2092: uint16(19673), + 2093: uint16(19718), + 2094: uint16(16216), + 2095: uint16(30037), + 2096: uint16(30323), + 2097: uint16(42438), + 2098: uint16(15129), + 2099: uint16(29800), + 2100: uint16(35532), + 2101: uint16(18859), + 2102: uint16(18830), + 2103: uint16(15099), + 2104: uint16(15821), + 2105: uint16(19022), + 2106: uint16(16127), + 2107: uint16(18885), + 2108: uint16(18675), + 2109: uint16(37370), + 2110: uint16(22322), + 2111: uint16(37698), + 2112: uint16(35555), + 2113: uint16(6244), + 2114: uint16(20703), + 2115: uint16(21025), + 2116: uint16(20967), + 2117: uint16(30584), + 2118: uint16(12850), + 2119: uint16(30478), + 2120: uint16(30479), + 2121: uint16(30587), + 2122: uint16(18071), + 2123: uint16(14209), + 2124: uint16(14942), + 2125: uint16(18672), + 2126: uint16(29752), + 2127: uint16(29851), + 2128: uint16(16063), + 2129: uint16(19130), + 2130: uint16(19143), + 2131: uint16(16584), + 2132: uint16(19094), + 2133: uint16(25006), + 2134: uint16(37639), + 2135: uint16(21889), + 2136: uint16(30750), + 2137: uint16(30861), + 2138: uint16(30856), + 2139: uint16(30930), + 2140: uint16(29648), + 2141: uint16(31065), + 2142: uint16(30529), + 2143: uint16(22243), + 2144: uint16(16654), + 2146: uint16(33942), + 2147: uint16(31141), + 2148: uint16(27181), + 2149: uint16(16122), + 2150: uint16(31290), + 2151: uint16(31220), + 2152: uint16(16750), + 2153: uint16(5862), + 2154: uint16(16690), + 2155: uint16(37429), + 2156: uint16(31217), + 2157: uint16(3404), + 2158: uint16(18828), + 2159: uint16(665), + 2160: uint16(15802), + 2161: uint16(5998), + 2162: uint16(13719), + 2163: uint16(21867), + 2164: uint16(13680), + 2165: uint16(13994), + 2166: uint16(468), + 2167: uint16(3085), + 2168: uint16(31458), + 2169: uint16(23129), + 2170: uint16(9973), + 2171: uint16(23215), + 2172: uint16(23196), + 2173: uint16(23053), + 2174: uint16(603), + 2175: uint16(30960), + 2176: uint16(23082), + 2177: uint16(23494), + 2178: uint16(31486), + 2179: uint16(16889), + 2180: uint16(31837), + 2181: uint16(31853), + 2182: uint16(16913), + 2183: uint16(23475), + 2184: uint16(24252), + 2185: uint16(24230), + 2186: uint16(31949), + 2187: uint16(18937), + 2188: uint16(6064), + 2189: uint16(31886), + 2190: uint16(31868), + 2191: uint16(31918), + 2192: uint16(27314), + 2193: uint16(32220), + 2194: uint16(32263), + 2195: uint16(32211), + 2196: uint16(32590), + 2197: uint16(25185), + 2198: uint16(24924), + 2199: uint16(31560), + 2200: uint16(32151), + 2201: uint16(24194), + 2202: uint16(17002), + 2203: uint16(27509), + 2204: uint16(2326), + 2205: uint16(26582), + 2206: uint16(78), + 2207: uint16(13775), + 2208: uint16(22468), + 2209: uint16(25618), + 2210: uint16(25592), + 2211: uint16(18786), + 2212: uint16(32733), + 2213: uint16(31527), + 2214: uint16(2092), + 2215: uint16(23273), + 2216: uint16(23875), + 2217: uint16(31500), + 2218: uint16(24078), + 2219: uint16(39398), + 2220: uint16(34373), + 2221: uint16(39523), + 2222: uint16(27164), + 2223: uint16(13375), + 2224: uint16(14818), + 2225: uint16(18935), + 2226: uint16(26029), + 2227: uint16(39455), + 2228: uint16(26016), + 2229: uint16(33920), + 2230: uint16(28967), + 2231: uint16(27857), + 2232: uint16(17642), + 2233: uint16(33079), + 2234: uint16(17410), + 2235: uint16(32966), + 2236: uint16(33033), + 2237: uint16(33090), + 2238: uint16(26548), + 2239: uint16(39107), + 2240: uint16(27202), + 2241: uint16(33378), + 2242: uint16(33381), + 2243: uint16(27217), + 2244: uint16(33875), + 2245: uint16(28071), + 2246: uint16(34320), + 2247: uint16(29211), + 2248: uint16(23174), + 2249: uint16(16767), + 2250: uint16(6208), + 2251: uint16(23339), + 2252: uint16(6305), + 2253: uint16(23268), + 2254: uint16(6360), + 2255: uint16(34464), + 2256: uint16(63932), + 2257: uint16(15759), + 2258: uint16(34861), + 2259: uint16(29730), + 2260: uint16(23042), + 2261: uint16(34926), + 2262: uint16(20293), + 2263: uint16(34951), + 2264: uint16(35007), + 2265: uint16(35046), + 2266: uint16(35173), + 2267: uint16(35149), + 2268: uint16(22147), + 2269: uint16(35156), + 2270: uint16(30597), + 2271: uint16(30596), + 2272: uint16(35829), + 2273: uint16(35801), + 2274: uint16(35740), + 2275: uint16(35321), + 2276: uint16(16045), + 2277: uint16(33955), + 2278: uint16(18165), + 2279: uint16(18127), + 2280: uint16(14322), + 2281: uint16(35389), + 2282: uint16(35356), + 2283: uint16(37960), + 2284: uint16(24397), + 2285: uint16(37419), + 2286: uint16(17028), + 2287: uint16(26068), + 2288: uint16(28969), + 2289: uint16(28868), + 2290: uint16(6213), + 2291: uint16(40301), + 2292: uint16(35999), + 2293: uint16(36073), + 2294: uint16(32220), + 2295: uint16(22938), + 2296: uint16(30659), + 2297: uint16(23024), + 2298: uint16(17262), + 2299: uint16(14036), + 2300: uint16(36394), + 2301: uint16(36519), + 2302: uint16(19465), + 2303: uint16(36656), + 2304: uint16(36682), + 2305: uint16(17140), + 2306: uint16(27736), + 2307: uint16(28603), + 2308: uint16(8993), + 2309: uint16(18587), + 2310: uint16(28537), + 2311: uint16(28299), + 2312: uint16(6106), + 2313: uint16(39913), + 2314: uint16(14005), + 2315: uint16(18735), + 2316: uint16(37051), + 2318: uint16(21873), + 2319: uint16(18694), + 2320: uint16(37307), + 2321: uint16(37892), + 2322: uint16(35403), + 2323: uint16(16482), + 2324: uint16(35580), + 2325: uint16(37927), + 2326: uint16(35869), + 2327: uint16(35899), + 2328: uint16(34021), + 2329: uint16(35371), + 2330: uint16(38297), + 2331: uint16(38311), + 2332: uint16(38295), + 2333: uint16(38294), + 2334: uint16(36148), + 2335: uint16(29765), + 2336: uint16(16066), + 2337: uint16(18687), + 2338: uint16(19010), + 2339: uint16(17386), + 2340: uint16(16103), + 2341: uint16(12837), + 2342: uint16(38543), + 2343: uint16(36583), + 2344: uint16(36454), + 2345: uint16(36453), + 2346: uint16(16076), + 2347: uint16(18925), + 2348: uint16(19064), + 2349: uint16(16366), + 2350: uint16(29714), + 2351: uint16(29803), + 2352: uint16(16124), + 2353: uint16(38721), + 2354: uint16(37040), + 2355: uint16(26695), + 2356: uint16(18973), + 2357: uint16(37011), + 2358: uint16(22495), + 2360: uint16(37736), + 2361: uint16(35209), + 2362: uint16(35878), + 2363: uint16(35631), + 2364: uint16(25534), + 2365: uint16(37562), + 2366: uint16(23313), + 2367: uint16(35689), + 2368: uint16(18748), + 2369: uint16(29689), + 2370: uint16(16923), + 2371: uint16(38811), + 2372: uint16(38769), + 2373: uint16(39224), + 2374: uint16(3878), + 2375: uint16(24001), + 2376: uint16(35781), + 2377: uint16(19122), + 2378: uint16(38943), + 2379: uint16(38106), + 2380: uint16(37622), + 2381: uint16(38359), + 2382: uint16(37349), + 2383: uint16(17600), + 2384: uint16(35664), + 2385: uint16(19047), + 2386: uint16(35684), + 2387: uint16(39132), + 2388: uint16(35397), + 2389: uint16(16128), + 2390: uint16(37418), + 2391: uint16(18725), + 2392: uint16(33812), + 2393: uint16(39227), + 2394: uint16(39245), + 2395: uint16(31494), + 2396: uint16(15869), + 2397: uint16(39323), + 2398: uint16(19311), + 2399: uint16(39338), + 2400: uint16(39516), + 2401: uint16(35685), + 2402: uint16(22728), + 2403: uint16(27279), + 2404: uint16(39457), + 2405: uint16(23294), + 2406: uint16(39471), + 2407: uint16(39153), + 2408: uint16(19344), + 2409: uint16(39240), + 2410: uint16(39356), + 2411: uint16(19389), + 2412: uint16(19351), + 2413: uint16(37757), + 2414: uint16(22642), + 2415: uint16(4866), + 2416: uint16(22562), + 2417: uint16(18872), + 2418: uint16(5352), + 2419: uint16(30788), + 2420: uint16(10015), + 2421: uint16(15800), + 2422: uint16(26821), + 2423: uint16(15741), + 2424: uint16(37976), + 2425: uint16(14631), + 2426: uint16(24912), + 2427: uint16(10113), + 2428: uint16(10603), + 2429: uint16(24839), + 2430: uint16(40015), + 2431: uint16(40019), + 2432: uint16(40059), + 2433: uint16(39989), + 2434: uint16(39952), + 2435: uint16(39807), + 2436: uint16(39887), + 2437: uint16(40493), + 2438: uint16(39839), + 2439: uint16(41461), + 2440: uint16(41214), + 2441: uint16(40225), + 2442: uint16(19630), + 2443: uint16(16644), + 2444: uint16(40472), + 2445: uint16(19632), + 2446: uint16(40204), + 2447: uint16(41396), + 2448: uint16(41197), + 2449: uint16(41203), + 2450: uint16(39215), + 2451: uint16(40357), + 2452: uint16(33981), + 2453: uint16(28178), + 2454: uint16(28639), + 2455: uint16(27522), + 2456: uint16(34300), + 2457: uint16(17715), + 2458: uint16(28068), + 2459: uint16(28292), + 2460: uint16(28144), + 2461: uint16(33824), + 2462: uint16(34286), + 2463: uint16(28160), + 2464: uint16(14295), + 2465: uint16(24676), + 2466: uint16(31202), + 2467: uint16(13724), + 2468: uint16(13888), + 2469: uint16(18733), + 2470: uint16(18910), + 2471: uint16(15714), + 2472: uint16(37851), + 2473: uint16(37566), + 2474: uint16(37704), + 2475: uint16(703), + 2476: uint16(30905), + 2477: uint16(37495), + 2478: uint16(37965), + 2479: uint16(20452), + 2480: uint16(13376), + 2481: uint16(36964), + 2482: uint16(21853), + 2483: uint16(30781), + 2484: uint16(30804), + 2485: uint16(30902), + 2486: uint16(30795), + 2487: uint16(5975), + 2488: uint16(12745), + 2489: uint16(18753), + 2490: uint16(13978), + 2491: uint16(20338), + 2492: uint16(28634), + 2493: uint16(28633), + 2495: uint16(28702), + 2496: uint16(21524), + 2497: uint16(16821), + 2498: uint16(22459), + 2499: uint16(22771), + 2500: uint16(22410), + 2501: uint16(40214), + 2502: uint16(22487), + 2503: uint16(28980), + 2504: uint16(13487), + 2505: uint16(16812), + 2506: uint16(29163), + 2507: uint16(27712), + 2508: uint16(20375), + 2510: uint16(6069), + 2511: uint16(35401), + 2512: uint16(24844), + 2513: uint16(23246), + 2514: uint16(23051), + 2515: uint16(17084), + 2516: uint16(17544), + 2517: uint16(14124), + 2518: uint16(19323), + 2519: uint16(35324), + 2520: uint16(37819), + 2521: uint16(37816), + 2522: uint16(6358), + 2523: uint16(3869), + 2524: uint16(33906), + 2525: uint16(27840), + 2526: uint16(5139), + 2527: uint16(17146), + 2528: uint16(11302), + 2529: uint16(17345), + 2530: uint16(22932), + 2531: uint16(15799), + 2532: uint16(26433), + 2533: uint16(32168), + 2534: uint16(24923), + 2535: uint16(24740), + 2536: uint16(18873), + 2537: uint16(18827), + 2538: uint16(35322), + 2539: uint16(37605), + 2540: uint16(29666), + 2541: uint16(16105), + 2542: uint16(29876), + 2543: uint16(35683), + 2544: uint16(6303), + 2545: uint16(16097), + 2546: uint16(19123), + 2547: uint16(27352), + 2548: uint16(29683), + 2549: uint16(29691), + 2550: uint16(16086), + 2551: uint16(19006), + 2552: uint16(19092), + 2553: uint16(6105), + 2554: uint16(19046), + 2555: uint16(935), + 2556: uint16(5156), + 2557: uint16(18917), + 2558: uint16(29768), + 2559: uint16(18710), + 2560: uint16(28837), + 2561: uint16(18806), + 2562: uint16(37508), + 2563: uint16(29670), + 2564: uint16(37727), + 2565: uint16(1278), + 2566: uint16(37681), + 2567: uint16(35534), + 2568: uint16(35350), + 2569: uint16(37766), + 2570: uint16(35815), + 2571: uint16(21973), + 2572: uint16(18741), + 2573: uint16(35458), + 2574: uint16(29035), + 2575: uint16(18755), + 2576: uint16(3327), + 2577: uint16(22180), + 2578: uint16(1562), + 2579: uint16(3051), + 2580: uint16(3256), + 2581: uint16(21762), + 2582: uint16(31172), + 2583: uint16(6138), + 2584: uint16(32254), + 2585: uint16(5826), + 2586: uint16(19024), + 2587: uint16(6226), + 2588: uint16(17710), + 2589: uint16(37889), + 2590: uint16(14090), + 2591: uint16(35520), + 2592: uint16(18861), + 2593: uint16(22960), + 2594: uint16(6335), + 2595: uint16(6275), + 2596: uint16(29828), + 2597: uint16(23201), + 2598: uint16(14050), + 2599: uint16(15707), + 2600: uint16(14000), + 2601: uint16(37471), + 2602: uint16(23161), + 2603: uint16(35457), + 2604: uint16(6242), + 2605: uint16(37748), + 2606: uint16(15565), + 2607: uint16(2740), + 2608: uint16(19094), + 2609: uint16(14730), + 2610: uint16(20724), + 2611: uint16(15721), + 2612: uint16(15692), + 2613: uint16(5020), + 2614: uint16(29045), + 2615: uint16(17147), + 2616: uint16(33304), + 2617: uint16(28175), + 2618: uint16(37092), + 2619: uint16(17643), + 2620: uint16(27991), + 2621: uint16(32335), + 2622: uint16(28775), + 2623: uint16(27823), + 2624: uint16(15574), + 2625: uint16(16365), + 2626: uint16(15917), + 2627: uint16(28162), + 2628: uint16(28428), + 2629: uint16(15727), + 2630: uint16(1013), + 2631: uint16(30033), + 2632: uint16(14012), + 2633: uint16(13512), + 2634: uint16(18048), + 2635: uint16(16090), + 2636: uint16(18545), + 2637: uint16(22980), + 2638: uint16(37486), + 2639: uint16(18750), + 2640: uint16(36673), + 2641: uint16(35868), + 2642: uint16(27584), + 2643: uint16(22546), + 2644: uint16(22472), + 2645: uint16(14038), + 2646: uint16(5202), + 2647: uint16(28926), + 2648: uint16(17250), + 2649: uint16(19057), + 2650: uint16(12259), + 2651: uint16(4784), + 2652: uint16(9149), + 2653: uint16(26809), + 2654: uint16(26983), + 2655: uint16(5016), + 2656: uint16(13541), + 2657: uint16(31732), + 2658: uint16(14047), + 2659: uint16(35459), + 2660: uint16(14294), + 2661: uint16(13306), + 2662: uint16(19615), + 2663: uint16(27162), + 2664: uint16(13997), + 2665: uint16(27831), + 2666: uint16(33854), + 2667: uint16(17631), + 2668: uint16(17614), + 2669: uint16(27942), + 2670: uint16(27985), + 2671: uint16(27778), + 2672: uint16(28638), + 2673: uint16(28439), + 2674: uint16(28937), + 2675: uint16(33597), + 2676: uint16(5946), + 2677: uint16(33773), + 2678: uint16(27776), + 2679: uint16(28755), + 2680: uint16(6107), + 2681: uint16(22921), + 2682: uint16(23170), + 2683: uint16(6067), + 2684: uint16(23137), + 2685: uint16(23153), + 2686: uint16(6405), + 2687: uint16(16892), + 2688: uint16(14125), + 2689: uint16(23023), + 2690: uint16(5948), + 2691: uint16(14023), + 2692: uint16(29070), + 2693: uint16(37776), + 2694: uint16(26266), + 2695: uint16(17061), + 2696: uint16(23150), + 2697: uint16(23083), + 2698: uint16(17043), + 2699: uint16(27179), + 2700: uint16(16121), + 2701: uint16(30518), + 2702: uint16(17499), + 2703: uint16(17098), + 2704: uint16(28957), + 2705: uint16(16985), + 2706: uint16(35297), + 2707: uint16(20400), + 2708: uint16(27944), + 2709: uint16(23746), + 2710: uint16(17614), + 2711: uint16(32333), + 2712: uint16(17341), + 2713: uint16(27148), + 2714: uint16(16982), + 2715: uint16(4868), + 2716: uint16(28838), + 2717: uint16(28979), + 2718: uint16(17385), + 2719: uint16(15781), + 2720: uint16(27871), + 2721: uint16(63525), + 2722: uint16(19023), + 2723: uint16(32357), + 2724: uint16(23019), + 2725: uint16(23855), + 2726: uint16(15859), + 2727: uint16(24412), + 2728: uint16(19037), + 2729: uint16(6111), + 2730: uint16(32164), + 2731: uint16(33830), + 2732: uint16(21637), + 2733: uint16(15098), + 2734: uint16(13056), + 2735: uint16(532), + 2736: uint16(22398), + 2737: uint16(2261), + 2738: uint16(1561), + 2739: uint16(16357), + 2740: uint16(8094), + 2741: uint16(41654), + 2742: uint16(28675), + 2743: uint16(37211), + 2744: uint16(23920), + 2745: uint16(29583), + 2746: uint16(31955), + 2747: uint16(35417), + 2748: uint16(37920), + 2749: uint16(20424), + 2750: uint16(32743), + 2751: uint16(29389), + 2752: uint16(29456), + 2753: uint16(31476), + 2754: uint16(29496), + 2755: uint16(29497), + 2756: uint16(22262), + 2757: uint16(29505), + 2758: uint16(29512), + 2759: uint16(16041), + 2760: uint16(31512), + 2761: uint16(36972), + 2762: uint16(29173), + 2763: uint16(18674), + 2764: uint16(29665), + 2765: uint16(33270), + 2766: uint16(16074), + 2767: uint16(30476), + 2768: uint16(16081), + 2769: uint16(27810), + 2770: uint16(22269), + 2771: uint16(29721), + 2772: uint16(29726), + 2773: uint16(29727), + 2774: uint16(16098), + 2775: uint16(16112), + 2776: uint16(16116), + 2777: uint16(16122), + 2778: uint16(29907), + 2779: uint16(16142), + 2780: uint16(16211), + 2781: uint16(30018), + 2782: uint16(30061), + 2783: uint16(30066), + 2784: uint16(30093), + 2785: uint16(16252), + 2786: uint16(30152), + 2787: uint16(30172), + 2788: uint16(16320), + 2789: uint16(30285), + 2790: uint16(16343), + 2791: uint16(30324), + 2792: uint16(16348), + 2793: uint16(30330), + 2794: uint16(20316), + 2795: uint16(29064), + 2796: uint16(22051), + 2797: uint16(35200), + 2798: uint16(22633), + 2799: uint16(16413), + 2800: uint16(30531), + 2801: uint16(16441), + 2802: uint16(26465), + 2803: uint16(16453), + 2804: uint16(13787), + 2805: uint16(30616), + 2806: uint16(16490), + 2807: uint16(16495), + 2808: uint16(23646), + 2809: uint16(30654), + 2810: uint16(30667), + 2811: uint16(22770), + 2812: uint16(30744), + 2813: uint16(28857), + 2814: uint16(30748), + 2815: uint16(16552), + 2816: uint16(30777), + 2817: uint16(30791), + 2818: uint16(30801), + 2819: uint16(30822), + 2820: uint16(33864), + 2821: uint16(21813), + 2822: uint16(31027), + 2823: uint16(26627), + 2824: uint16(31026), + 2825: uint16(16643), + 2826: uint16(16649), + 2827: uint16(31121), + 2828: uint16(31129), + 2829: uint16(36795), + 2830: uint16(31238), + 2831: uint16(36796), + 2832: uint16(16743), + 2833: uint16(31377), + 2834: uint16(16818), + 2835: uint16(31420), + 2836: uint16(33401), + 2837: uint16(16836), + 2838: uint16(31439), + 2839: uint16(31451), + 2840: uint16(16847), + 2841: uint16(20001), + 2842: uint16(31586), + 2843: uint16(31596), + 2844: uint16(31611), + 2845: uint16(31762), + 2846: uint16(31771), + 2847: uint16(16992), + 2848: uint16(17018), + 2849: uint16(31867), + 2850: uint16(31900), + 2851: uint16(17036), + 2852: uint16(31928), + 2853: uint16(17044), + 2854: uint16(31981), + 2855: uint16(36755), + 2856: uint16(28864), + 2857: uint16(3279), + 2858: uint16(32207), + 2859: uint16(32212), + 2860: uint16(32208), + 2861: uint16(32253), + 2862: uint16(32686), + 2863: uint16(32692), + 2864: uint16(29343), + 2865: uint16(17303), + 2866: uint16(32800), + 2867: uint16(32805), + 2868: uint16(31545), + 2869: uint16(32814), + 2870: uint16(32817), + 2871: uint16(32852), + 2872: uint16(15820), + 2873: uint16(22452), + 2874: uint16(28832), + 2875: uint16(32951), + 2876: uint16(33001), + 2877: uint16(17389), + 2878: uint16(33036), + 2879: uint16(29482), + 2880: uint16(33038), + 2881: uint16(33042), + 2882: uint16(30048), + 2883: uint16(33044), + 2884: uint16(17409), + 2885: uint16(15161), + 2886: uint16(33110), + 2887: uint16(33113), + 2888: uint16(33114), + 2889: uint16(17427), + 2890: uint16(22586), + 2891: uint16(33148), + 2892: uint16(33156), + 2893: uint16(17445), + 2894: uint16(33171), + 2895: uint16(17453), + 2896: uint16(33189), + 2897: uint16(22511), + 2898: uint16(33217), + 2899: uint16(33252), + 2900: uint16(33364), + 2901: uint16(17551), + 2902: uint16(33446), + 2903: uint16(33398), + 2904: uint16(33482), + 2905: uint16(33496), + 2906: uint16(33535), + 2907: uint16(17584), + 2908: uint16(33623), + 2909: uint16(38505), + 2910: uint16(27018), + 2911: uint16(33797), + 2912: uint16(28917), + 2913: uint16(33892), + 2914: uint16(24803), + 2915: uint16(33928), + 2916: uint16(17668), + 2917: uint16(33982), + 2918: uint16(34017), + 2919: uint16(34040), + 2920: uint16(34064), + 2921: uint16(34104), + 2922: uint16(34130), + 2923: uint16(17723), + 2924: uint16(34159), + 2925: uint16(34160), + 2926: uint16(34272), + 2927: uint16(17783), + 2928: uint16(34418), + 2929: uint16(34450), + 2930: uint16(34482), + 2931: uint16(34543), + 2932: uint16(38469), + 2933: uint16(34699), + 2934: uint16(17926), + 2935: uint16(17943), + 2936: uint16(34990), + 2937: uint16(35071), + 2938: uint16(35108), + 2939: uint16(35143), + 2940: uint16(35217), + 2941: uint16(31079), + 2942: uint16(35369), + 2943: uint16(35384), + 2944: uint16(35476), + 2945: uint16(35508), + 2946: uint16(35921), + 2947: uint16(36052), + 2948: uint16(36082), + 2949: uint16(36124), + 2950: uint16(18328), + 2951: uint16(22623), + 2952: uint16(36291), + 2953: uint16(18413), + 2954: uint16(20206), + 2955: uint16(36410), + 2956: uint16(21976), + 2957: uint16(22356), + 2958: uint16(36465), + 2959: uint16(22005), + 2960: uint16(36528), + 2961: uint16(18487), + 2962: uint16(36558), + 2963: uint16(36578), + 2964: uint16(36580), + 2965: uint16(36589), + 2966: uint16(36594), + 2967: uint16(36791), + 2968: uint16(36801), + 2969: uint16(36810), + 2970: uint16(36812), + 2971: uint16(36915), + 2972: uint16(39364), + 2973: uint16(18605), + 2974: uint16(39136), + 2975: uint16(37395), + 2976: uint16(18718), + 2977: uint16(37416), + 2978: uint16(37464), + 2979: uint16(37483), + 2980: uint16(37553), + 2981: uint16(37550), + 2982: uint16(37567), + 2983: uint16(37603), + 2984: uint16(37611), + 2985: uint16(37619), + 2986: uint16(37620), + 2987: uint16(37629), + 2988: uint16(37699), + 2989: uint16(37764), + 2990: uint16(37805), + 2991: uint16(18757), + 2992: uint16(18769), + 2993: uint16(40639), + 2994: uint16(37911), + 2995: uint16(21249), + 2996: uint16(37917), + 2997: uint16(37933), + 2998: uint16(37950), + 2999: uint16(18794), + 3000: uint16(37972), + 3001: uint16(38009), + 3002: uint16(38189), + 3003: uint16(38306), + 3004: uint16(18855), + 3005: uint16(38388), + 3006: uint16(38451), + 3007: uint16(18917), + 3008: uint16(26528), + 3009: uint16(18980), + 3010: uint16(38720), + 3011: uint16(18997), + 3012: uint16(38834), + 3013: uint16(38850), + 3014: uint16(22100), + 3015: uint16(19172), + 3016: uint16(24808), + 3017: uint16(39097), + 3018: uint16(19225), + 3019: uint16(39153), + 3020: uint16(22596), + 3021: uint16(39182), + 3022: uint16(39193), + 3023: uint16(20916), + 3024: uint16(39196), + 3025: uint16(39223), + 3026: uint16(39234), + 3027: uint16(39261), + 3028: uint16(39266), + 3029: uint16(19312), + 3030: uint16(39365), + 3031: uint16(19357), + 3032: uint16(39484), + 3033: uint16(39695), + 3034: uint16(31363), + 3035: uint16(39785), + 3036: uint16(39809), + 3037: uint16(39901), + 3038: uint16(39921), + 3039: uint16(39924), + 3040: uint16(19565), + 3041: uint16(39968), + 3042: uint16(14191), + 3043: uint16(7106), + 3044: uint16(40265), + 3045: uint16(39994), + 3046: uint16(40702), + 3047: uint16(22096), + 3048: uint16(40339), + 3049: uint16(40381), + 3050: uint16(40384), + 3051: uint16(40444), + 3052: uint16(38134), + 3053: uint16(36790), + 3054: uint16(40571), + 3055: uint16(40620), + 3056: uint16(40625), + 3057: uint16(40637), + 3058: uint16(40646), + 3059: uint16(38108), + 3060: uint16(40674), + 3061: uint16(40689), + 3062: uint16(40696), + 3063: uint16(31432), + 3064: uint16(40772), + 3065: uint16(148), + 3066: uint16(695), + 3067: uint16(928), + 3068: uint16(26906), + 3069: uint16(38083), + 3070: uint16(22956), + 3071: uint16(1239), + 3072: uint16(22592), + 3073: uint16(38081), + 3074: uint16(14265), + 3075: uint16(1493), + 3076: uint16(1557), + 3077: uint16(1654), + 3078: uint16(5818), + 3079: uint16(22359), + 3080: uint16(29043), + 3081: uint16(2754), + 3082: uint16(2765), + 3083: uint16(3007), + 3084: uint16(21610), + 3085: uint16(63547), + 3086: uint16(3019), + 3087: uint16(21662), + 3088: uint16(3067), + 3089: uint16(3131), + 3090: uint16(3155), + 3091: uint16(3173), + 3092: uint16(3196), + 3093: uint16(24807), + 3094: uint16(3213), + 3095: uint16(22138), + 3096: uint16(3253), + 3097: uint16(3293), + 3098: uint16(3309), + 3099: uint16(3439), + 3100: uint16(3506), + 3101: uint16(3528), + 3102: uint16(26965), + 3103: uint16(39983), + 3104: uint16(34725), + 3105: uint16(3588), + 3106: uint16(3598), + 3107: uint16(3799), + 3108: uint16(3984), + 3109: uint16(3885), + 3110: uint16(3699), + 3111: uint16(23584), + 3112: uint16(4028), + 3113: uint16(24075), + 3114: uint16(4188), + 3115: uint16(4175), + 3116: uint16(4214), + 3117: uint16(26398), + 3118: uint16(4219), + 3119: uint16(4232), + 3120: uint16(4246), + 3121: uint16(13895), + 3122: uint16(4287), + 3123: uint16(4307), + 3124: uint16(4399), + 3125: uint16(4411), + 3126: uint16(21348), + 3127: uint16(33965), + 3128: uint16(4835), + 3129: uint16(4981), + 3130: uint16(4918), + 3131: uint16(35713), + 3132: uint16(5495), + 3133: uint16(5657), + 3134: uint16(6083), + 3135: uint16(6087), + 3136: uint16(20088), + 3137: uint16(28859), + 3138: uint16(6189), + 3139: uint16(6506), + 3140: uint16(6701), + 3141: uint16(6725), + 3142: uint16(7210), + 3143: uint16(7280), + 3144: uint16(7340), + 3145: uint16(7880), + 3146: uint16(25283), + 3147: uint16(7893), + 3148: uint16(7957), + 3149: uint16(29080), + 3150: uint16(26709), + 3151: uint16(8261), + 3152: uint16(27113), + 3153: uint16(14024), + 3154: uint16(8828), + 3155: uint16(9175), + 3156: uint16(9210), + 3157: uint16(10026), + 3158: uint16(10353), + 3159: uint16(10575), + 3160: uint16(33533), + 3161: uint16(10599), + 3162: uint16(10643), + 3163: uint16(10965), + 3164: uint16(35237), + 3165: uint16(10984), + 3166: uint16(36768), + 3167: uint16(11022), + 3168: uint16(38840), + 3169: uint16(11071), + 3170: uint16(38983), + 3171: uint16(39613), + 3172: uint16(11340), + 3174: uint16(11400), + 3175: uint16(11447), + 3176: uint16(23528), + 3177: uint16(11528), + 3178: uint16(11538), + 3179: uint16(11703), + 3180: uint16(11669), + 3181: uint16(11842), + 3182: uint16(12148), + 3183: uint16(12236), + 3184: uint16(12339), + 3185: uint16(12390), + 3186: uint16(13087), + 3187: uint16(13278), + 3188: uint16(24497), + 3189: uint16(26184), + 3190: uint16(26303), + 3191: uint16(31353), + 3192: uint16(13671), + 3193: uint16(13811), + 3195: uint16(18874), + 3197: uint16(13850), + 3198: uint16(14102), + 3200: uint16(838), + 3201: uint16(22709), + 3202: uint16(26382), + 3203: uint16(26904), + 3204: uint16(15015), + 3205: uint16(30295), + 3206: uint16(24546), + 3207: uint16(15889), + 3208: uint16(16057), + 3209: uint16(30206), + 3210: uint16(8346), + 3211: uint16(18640), + 3212: uint16(19128), + 3213: uint16(16665), + 3214: uint16(35482), + 3215: uint16(17134), + 3216: uint16(17165), + 3217: uint16(16443), + 3218: uint16(17204), + 3219: uint16(17302), + 3220: uint16(19013), + 3221: uint16(1482), + 3222: uint16(20946), + 3223: uint16(1553), + 3224: uint16(22943), + 3225: uint16(7848), + 3226: uint16(15294), + 3227: uint16(15615), + 3228: uint16(17412), + 3229: uint16(17622), + 3230: uint16(22408), + 3231: uint16(18036), + 3232: uint16(14747), + 3233: uint16(18223), + 3234: uint16(34280), + 3235: uint16(39369), + 3236: uint16(14178), + 3237: uint16(8643), + 3238: uint16(35678), + 3239: uint16(35662), + 3241: uint16(18450), + 3242: uint16(18683), + 3243: uint16(18965), + 3244: uint16(29193), + 3245: uint16(19136), + 3246: uint16(3192), + 3247: uint16(22885), + 3248: uint16(20133), + 3249: uint16(20358), + 3250: uint16(1913), + 3251: uint16(36570), + 3252: uint16(20524), + 3253: uint16(21135), + 3254: uint16(22335), + 3255: uint16(29041), + 3256: uint16(21145), + 3257: uint16(21529), + 3258: uint16(16202), + 3259: uint16(19111), + 3260: uint16(21948), + 3261: uint16(21574), + 3262: uint16(21614), + 3263: uint16(27474), + 3265: uint16(13427), + 3266: uint16(21823), + 3267: uint16(30258), + 3268: uint16(21854), + 3269: uint16(18200), + 3270: uint16(21858), + 3271: uint16(21862), + 3272: uint16(22471), + 3273: uint16(18751), + 3274: uint16(22621), + 3275: uint16(20582), + 3276: uint16(13563), + 3277: uint16(13260), + 3279: uint16(22787), + 3280: uint16(18300), + 3281: uint16(35144), + 3282: uint16(23214), + 3283: uint16(23433), + 3284: uint16(23558), + 3285: uint16(7568), + 3286: uint16(22433), + 3287: uint16(29009), + 3289: uint16(24834), + 3290: uint16(31762), + 3291: uint16(36950), + 3292: uint16(25010), + 3293: uint16(20378), + 3294: uint16(35682), + 3295: uint16(25602), + 3296: uint16(25674), + 3297: uint16(23899), + 3298: uint16(27639), + 3300: uint16(25732), + 3301: uint16(6428), + 3302: uint16(35562), + 3303: uint16(18934), + 3304: uint16(25736), + 3305: uint16(16367), + 3306: uint16(25874), + 3307: uint16(19392), + 3308: uint16(26047), + 3309: uint16(26293), + 3310: uint16(10011), + 3311: uint16(37989), + 3312: uint16(22497), + 3313: uint16(24981), + 3314: uint16(23079), + 3315: uint16(63693), + 3317: uint16(22201), + 3318: uint16(17697), + 3319: uint16(26364), + 3320: uint16(20074), + 3321: uint16(18740), + 3322: uint16(38486), + 3323: uint16(28047), + 3324: uint16(27837), + 3325: uint16(13848), + 3326: uint16(35191), + 3327: uint16(26521), + 3328: uint16(26734), + 3329: uint16(25617), + 3330: uint16(26718), + 3332: uint16(26823), + 3333: uint16(31554), + 3334: uint16(37056), + 3335: uint16(2577), + 3336: uint16(26918), + 3338: uint16(26937), + 3339: uint16(31301), + 3341: uint16(27130), + 3342: uint16(39462), + 3343: uint16(27181), + 3344: uint16(13919), + 3345: uint16(25705), + 3346: uint16(33), + 3347: uint16(31107), + 3348: uint16(27188), + 3349: uint16(27483), + 3350: uint16(23852), + 3351: uint16(13593), + 3353: uint16(27549), + 3354: uint16(18128), + 3355: uint16(27812), + 3356: uint16(30011), + 3357: uint16(34917), + 3358: uint16(28078), + 3359: uint16(22710), + 3360: uint16(14108), + 3361: uint16(9613), + 3362: uint16(28747), + 3363: uint16(29133), + 3364: uint16(15444), + 3365: uint16(29312), + 3366: uint16(29317), + 3367: uint16(37505), + 3368: uint16(8570), + 3369: uint16(29323), + 3370: uint16(37680), + 3371: uint16(29414), + 3372: uint16(18896), + 3373: uint16(27705), + 3374: uint16(38047), + 3375: uint16(29776), + 3376: uint16(3832), + 3377: uint16(34855), + 3378: uint16(35061), + 3379: uint16(10534), + 3380: uint16(33907), + 3381: uint16(6065), + 3382: uint16(28344), + 3383: uint16(18986), + 3384: uint16(6176), + 3385: uint16(14756), + 3386: uint16(14009), + 3389: uint16(17727), + 3390: uint16(26294), + 3391: uint16(40109), + 3392: uint16(39076), + 3393: uint16(35139), + 3394: uint16(30668), + 3395: uint16(30808), + 3396: uint16(22230), + 3397: uint16(16607), + 3398: uint16(5642), + 3399: uint16(14753), + 3400: uint16(14127), + 3401: uint16(33000), + 3402: uint16(5061), + 3403: uint16(29101), + 3404: uint16(33638), + 3405: uint16(31197), + 3406: uint16(37288), + 3408: uint16(19639), + 3409: uint16(28847), + 3410: uint16(35243), + 3411: uint16(31229), + 3412: uint16(31242), + 3413: uint16(31499), + 3414: uint16(32102), + 3415: uint16(16762), + 3416: uint16(31555), + 3417: uint16(31102), + 3418: uint16(32777), + 3419: uint16(28597), + 3420: uint16(41695), + 3421: uint16(27139), + 3422: uint16(33560), + 3423: uint16(21410), + 3424: uint16(28167), + 3425: uint16(37823), + 3426: uint16(26678), + 3427: uint16(38749), + 3428: uint16(33135), + 3429: uint16(32803), + 3430: uint16(27061), + 3431: uint16(5101), + 3432: uint16(12847), + 3433: uint16(32840), + 3434: uint16(23941), + 3435: uint16(35888), + 3436: uint16(32899), + 3437: uint16(22293), + 3438: uint16(38947), + 3439: uint16(35145), + 3440: uint16(23979), + 3441: uint16(18824), + 3442: uint16(26046), + 3443: uint16(27093), + 3444: uint16(21458), + 3445: uint16(19109), + 3446: uint16(16257), + 3447: uint16(15377), + 3448: uint16(26422), + 3449: uint16(32912), + 3450: uint16(33012), + 3451: uint16(33070), + 3452: uint16(8097), + 3453: uint16(33103), + 3454: uint16(33161), + 3455: uint16(33199), + 3456: uint16(33306), + 3457: uint16(33542), + 3458: uint16(33583), + 3459: uint16(33674), + 3460: uint16(13770), + 3461: uint16(33896), + 3462: uint16(34474), + 3463: uint16(18682), + 3464: uint16(25574), + 3465: uint16(35158), + 3466: uint16(30728), + 3467: uint16(37461), + 3468: uint16(35256), + 3469: uint16(17394), + 3470: uint16(35303), + 3471: uint16(17375), + 3472: uint16(35304), + 3473: uint16(35654), + 3474: uint16(35796), + 3475: uint16(23032), + 3476: uint16(35849), + 3478: uint16(36805), + 3479: uint16(37100), + 3481: uint16(37136), + 3482: uint16(37180), + 3483: uint16(15863), + 3484: uint16(37214), + 3485: uint16(19146), + 3486: uint16(36816), + 3487: uint16(29327), + 3488: uint16(22155), + 3489: uint16(38119), + 3490: uint16(38377), + 3491: uint16(38320), + 3492: uint16(38328), + 3493: uint16(38706), + 3494: uint16(39121), + 3495: uint16(39241), + 3496: uint16(39274), + 3497: uint16(39363), + 3498: uint16(39464), + 3499: uint16(39694), + 3500: uint16(40282), + 3501: uint16(40347), + 3502: uint16(32415), + 3503: uint16(40696), + 3504: uint16(40739), + 3505: uint16(19620), + 3506: uint16(38215), + 3507: uint16(41619), + 3508: uint16(29090), + 3509: uint16(41727), + 3510: uint16(19857), + 3511: uint16(36882), + 3512: uint16(42443), + 3513: uint16(19868), + 3514: uint16(3228), + 3515: uint16(36798), + 3516: uint16(21953), + 3517: uint16(36794), + 3518: uint16(9392), + 3519: uint16(36793), + 3520: uint16(19091), + 3521: uint16(17673), + 3522: uint16(32383), + 3523: uint16(28502), + 3524: uint16(27313), + 3525: uint16(20202), + 3526: uint16(13540), + 3527: uint16(35628), + 3528: uint16(30877), + 3529: uint16(14138), + 3530: uint16(36480), + 3531: uint16(6133), + 3532: uint16(32804), + 3533: uint16(35692), + 3534: uint16(35737), + 3535: uint16(31294), + 3536: uint16(26287), + 3537: uint16(15851), + 3538: uint16(30293), + 3539: uint16(15543), + 3540: uint16(22069), + 3541: uint16(22870), + 3542: uint16(20122), + 3543: uint16(24193), + 3544: uint16(25176), + 3545: uint16(22207), + 3546: uint16(3693), + 3547: uint16(36366), + 3548: uint16(23405), + 3549: uint16(16008), + 3550: uint16(19614), + 3551: uint16(25566), + 3553: uint16(6134), + 3554: uint16(6267), + 3555: uint16(25904), + 3556: uint16(22061), + 3557: uint16(23626), + 3558: uint16(21530), + 3559: uint16(21265), + 3560: uint16(15814), + 3561: uint16(40344), + 3562: uint16(19581), + 3563: uint16(22050), + 3564: uint16(22046), + 3565: uint16(32585), + 3566: uint16(24280), + 3567: uint16(22901), + 3568: uint16(15680), + 3569: uint16(34672), + 3570: uint16(19996), + 3571: uint16(4074), + 3572: uint16(3401), + 3573: uint16(14010), + 3574: uint16(33047), + 3575: uint16(40286), + 3576: uint16(36120), + 3577: uint16(30267), + 3578: uint16(40005), + 3579: uint16(30286), + 3580: uint16(30649), + 3581: uint16(37701), + 3582: uint16(21554), + 3583: uint16(33096), + 3584: uint16(33527), + 3585: uint16(22053), + 3586: uint16(33074), + 3587: uint16(33816), + 3588: uint16(32957), + 3589: uint16(21994), + 3590: uint16(31074), + 3591: uint16(22083), + 3592: uint16(21526), + 3593: uint16(3741), + 3594: uint16(13774), + 3595: uint16(22021), + 3596: uint16(22001), + 3597: uint16(26353), + 3598: uint16(33506), + 3599: uint16(13869), + 3600: uint16(30004), + 3601: uint16(22000), + 3602: uint16(21946), + 3603: uint16(21655), + 3604: uint16(21874), + 3605: uint16(3137), + 3606: uint16(3222), + 3607: uint16(24272), + 3608: uint16(20808), + 3609: uint16(3702), + 3610: uint16(11362), + 3611: uint16(3746), + 3612: uint16(40619), + 3613: uint16(32090), + 3614: uint16(21982), + 3615: uint16(4213), + 3616: uint16(25245), + 3617: uint16(38765), + 3618: uint16(21652), + 3619: uint16(36045), + 3620: uint16(29174), + 3621: uint16(37238), + 3622: uint16(25596), + 3623: uint16(25529), + 3624: uint16(25598), + 3625: uint16(21865), + 3626: uint16(11075), + 3627: uint16(40050), + 3628: uint16(11955), + 3629: uint16(20890), + 3630: uint16(13535), + 3631: uint16(3495), + 3632: uint16(20903), + 3633: uint16(21581), + 3634: uint16(21790), + 3635: uint16(21779), + 3636: uint16(30310), + 3637: uint16(36397), + 3638: uint16(26762), + 3639: uint16(30129), + 3640: uint16(32950), + 3641: uint16(34820), + 3642: uint16(34694), + 3643: uint16(35015), + 3644: uint16(33206), + 3645: uint16(33820), + 3646: uint16(4289), + 3647: uint16(17644), + 3648: uint16(29444), + 3649: uint16(18182), + 3650: uint16(23440), + 3651: uint16(33547), + 3652: uint16(26771), + 3653: uint16(22139), + 3654: uint16(9972), + 3655: uint16(32047), + 3656: uint16(16803), + 3657: uint16(32115), + 3658: uint16(28368), + 3659: uint16(29366), + 3660: uint16(37232), + 3661: uint16(4569), + 3662: uint16(37384), + 3663: uint16(15612), + 3664: uint16(42665), + 3665: uint16(3756), + 3666: uint16(3833), + 3667: uint16(29286), + 3668: uint16(7330), + 3669: uint16(18254), + 3670: uint16(20418), + 3671: uint16(32761), + 3672: uint16(4075), + 3673: uint16(16634), + 3674: uint16(40029), + 3675: uint16(25887), + 3676: uint16(11680), + 3677: uint16(18675), + 3678: uint16(18400), + 3679: uint16(40316), + 3680: uint16(4076), + 3681: uint16(3594), + 3683: uint16(30115), + 3684: uint16(4077), + 3686: uint16(24648), + 3687: uint16(4487), + 3688: uint16(29091), + 3689: uint16(32398), + 3690: uint16(40272), + 3691: uint16(19994), + 3692: uint16(19972), + 3693: uint16(13687), + 3694: uint16(23309), + 3695: uint16(27826), + 3696: uint16(21351), + 3697: uint16(13996), + 3698: uint16(14812), + 3699: uint16(21373), + 3700: uint16(13989), + 3701: uint16(17944), + 3702: uint16(22682), + 3703: uint16(19310), + 3704: uint16(33325), + 3705: uint16(21579), + 3706: uint16(22442), + 3707: uint16(23189), + 3708: uint16(2425), + 3710: uint16(14930), + 3711: uint16(9317), + 3712: uint16(29556), + 3713: uint16(40620), + 3714: uint16(19721), + 3715: uint16(39917), + 3716: uint16(15614), + 3717: uint16(40752), + 3718: uint16(19547), + 3719: uint16(20393), + 3720: uint16(38302), + 3721: uint16(40926), + 3722: uint16(33884), + 3723: uint16(15798), + 3724: uint16(29362), + 3725: uint16(26547), + 3726: uint16(14112), + 3727: uint16(25390), + 3728: uint16(32037), + 3729: uint16(16119), + 3730: uint16(15916), + 3731: uint16(14890), + 3732: uint16(36872), + 3733: uint16(21196), + 3734: uint16(15988), + 3735: uint16(13946), + 3736: uint16(17897), + 3737: uint16(1166), + 3738: uint16(30272), + 3739: uint16(23280), + 3740: uint16(3766), + 3741: uint16(30842), + 3742: uint16(32558), + 3743: uint16(22695), + 3744: uint16(16575), + 3745: uint16(22140), + 3746: uint16(39819), + 3747: uint16(23924), + 3748: uint16(30292), + 3749: uint16(42036), + 3750: uint16(40581), + 3751: uint16(19681), + 3753: uint16(14331), + 3754: uint16(24857), + 3755: uint16(12506), + 3756: uint16(17394), + 3758: uint16(22109), + 3759: uint16(4777), + 3760: uint16(22439), + 3761: uint16(18787), + 3762: uint16(40454), + 3763: uint16(21044), + 3764: uint16(28846), + 3765: uint16(13741), + 3767: uint16(40316), + 3768: uint16(31830), + 3769: uint16(39737), + 3770: uint16(22494), + 3771: uint16(5996), + 3772: uint16(23635), + 3773: uint16(25811), + 3774: uint16(38096), + 3775: uint16(25397), + 3776: uint16(29028), + 3777: uint16(34477), + 3778: uint16(3368), + 3779: uint16(27938), + 3780: uint16(19170), + 3781: uint16(3441), + 3783: uint16(20990), + 3784: uint16(7951), + 3785: uint16(23950), + 3786: uint16(38659), + 3787: uint16(7633), + 3788: uint16(40577), + 3789: uint16(36940), + 3790: uint16(31519), + 3791: uint16(39682), + 3792: uint16(23761), + 3793: uint16(31651), + 3794: uint16(25192), + 3795: uint16(25397), + 3796: uint16(39679), + 3797: uint16(31695), + 3798: uint16(39722), + 3799: uint16(31870), + 3801: uint16(31810), + 3802: uint16(31878), + 3803: uint16(39957), + 3804: uint16(31740), + 3805: uint16(39689), + 3807: uint16(39963), + 3808: uint16(18750), + 3809: uint16(40794), + 3810: uint16(21875), + 3811: uint16(23491), + 3812: uint16(20477), + 3813: uint16(40600), + 3814: uint16(20466), + 3815: uint16(21088), + 3816: uint16(15878), + 3817: uint16(21201), + 3818: uint16(22375), + 3819: uint16(20566), + 3820: uint16(22967), + 3821: uint16(24082), + 3822: uint16(38856), + 3823: uint16(40363), + 3824: uint16(36700), + 3825: uint16(21609), + 3826: uint16(38836), + 3827: uint16(39232), + 3828: uint16(38842), + 3829: uint16(21292), + 3830: uint16(24880), + 3831: uint16(26924), + 3832: uint16(21466), + 3833: uint16(39946), + 3834: uint16(40194), + 3835: uint16(19515), + 3836: uint16(38465), + 3837: uint16(27008), + 3838: uint16(20646), + 3839: uint16(30022), + 3840: uint16(5997), + 3841: uint16(39386), + 3842: uint16(21107), + 3844: uint16(37209), + 3845: uint16(38529), + 3846: uint16(37212), + 3848: uint16(37201), + 3849: uint16(36503), + 3850: uint16(25471), + 3851: uint16(27939), + 3852: uint16(27338), + 3853: uint16(22033), + 3854: uint16(37262), + 3855: uint16(30074), + 3856: uint16(25221), + 3857: uint16(1020), + 3858: uint16(29519), + 3859: uint16(31856), + 3860: uint16(23585), + 3861: uint16(15613), + 3863: uint16(18713), + 3864: uint16(30422), + 3865: uint16(39837), + 3866: uint16(20010), + 3867: uint16(3284), + 3868: uint16(33726), + 3869: uint16(34882), + 3871: uint16(23626), + 3872: uint16(27072), + 3874: uint16(22394), + 3875: uint16(21023), + 3876: uint16(24053), + 3877: uint16(20174), + 3878: uint16(27697), + 3879: uint16(498), + 3880: uint16(20281), + 3881: uint16(21660), + 3882: uint16(21722), + 3883: uint16(21146), + 3884: uint16(36226), + 3885: uint16(13822), + 3887: uint16(13811), + 3889: uint16(27474), + 3890: uint16(37244), + 3891: uint16(40869), + 3892: uint16(39831), + 3893: uint16(38958), + 3894: uint16(39092), + 3895: uint16(39610), + 3896: uint16(40616), + 3897: uint16(40580), + 3898: uint16(29050), + 3899: uint16(31508), + 3901: uint16(27642), + 3902: uint16(34840), + 3903: uint16(32632), + 3905: uint16(22048), + 3906: uint16(42570), + 3907: uint16(36471), + 3908: uint16(40787), + 3910: uint16(36308), + 3911: uint16(36431), + 3912: uint16(40476), + 3913: uint16(36353), + 3914: uint16(25218), + 3915: uint16(33661), + 3916: uint16(36392), + 3917: uint16(36469), + 3918: uint16(31443), + 3919: uint16(19063), + 3920: uint16(31294), + 3921: uint16(30936), + 3922: uint16(27882), + 3923: uint16(35431), + 3924: uint16(30215), + 3925: uint16(35418), + 3926: uint16(40742), + 3927: uint16(27854), + 3928: uint16(34774), + 3929: uint16(30147), + 3930: uint16(41650), + 3931: uint16(30803), + 3932: uint16(63552), + 3933: uint16(36108), + 3934: uint16(29410), + 3935: uint16(29553), + 3936: uint16(35629), + 3937: uint16(29442), + 3938: uint16(29937), + 3939: uint16(36075), + 3940: uint16(19131), + 3941: uint16(34351), + 3942: uint16(24506), + 3943: uint16(34976), + 3944: uint16(17591), + 3946: uint16(6203), + 3947: uint16(28165), + 3949: uint16(35454), + 3950: uint16(9499), + 3952: uint16(24829), + 3953: uint16(30311), + 3954: uint16(39639), + 3955: uint16(40260), + 3956: uint16(37742), + 3957: uint16(39823), + 3958: uint16(34805), + 3961: uint16(36087), + 3962: uint16(29484), + 3963: uint16(38689), + 3964: uint16(39856), + 3965: uint16(13782), + 3966: uint16(29362), + 3967: uint16(19463), + 3968: uint16(31825), + 3969: uint16(39242), + 3970: uint16(24921), + 3971: uint16(24921), + 3972: uint16(19460), + 3973: uint16(40598), + 3974: uint16(24957), + 3976: uint16(22367), + 3977: uint16(24943), + 3978: uint16(25254), + 3979: uint16(25145), + 3981: uint16(14940), + 3982: uint16(25058), + 3983: uint16(21418), + 3984: uint16(13301), + 3985: uint16(25444), + 3986: uint16(26626), + 3987: uint16(13778), + 3988: uint16(23895), + 3989: uint16(35778), + 3990: uint16(36826), + 3991: uint16(36409), + 3993: uint16(20697), + 3994: uint16(7494), + 3995: uint16(30982), + 3996: uint16(21298), + 3997: uint16(38456), + 3998: uint16(3899), + 3999: uint16(16485), + 4001: uint16(30718), + 4003: uint16(31938), + 4004: uint16(24346), + 4005: uint16(31962), + 4006: uint16(31277), + 4007: uint16(32870), + 4008: uint16(32867), + 4009: uint16(32077), + 4010: uint16(29957), + 4011: uint16(29938), + 4012: uint16(35220), + 4013: uint16(33306), + 4014: uint16(26380), + 4015: uint16(32866), + 4016: uint16(29830), + 4017: uint16(32859), + 4018: uint16(29936), + 4019: uint16(33027), + 4020: uint16(30500), + 4021: uint16(35209), + 4022: uint16(26572), + 4023: uint16(30035), + 4024: uint16(28369), + 4025: uint16(34729), + 4026: uint16(34766), + 4027: uint16(33224), + 4028: uint16(34700), + 4029: uint16(35401), + 4030: uint16(36013), + 4031: uint16(35651), + 4032: uint16(30507), + 4033: uint16(29944), + 4034: uint16(34010), + 4035: uint16(13877), + 4036: uint16(27058), + 4037: uint16(36262), + 4039: uint16(35241), + 4041: uint16(28089), + 4042: uint16(34753), + 4043: uint16(16401), + 4044: uint16(29927), + 4045: uint16(15835), + 4046: uint16(29046), + 4047: uint16(24740), + 4048: uint16(24988), + 4049: uint16(15569), + 4051: uint16(24695), + 4053: uint16(32625), + 4054: uint16(35629), + 4056: uint16(24809), + 4057: uint16(19326), + 4058: uint16(21024), + 4059: uint16(15384), + 4060: uint16(15559), + 4061: uint16(24279), + 4062: uint16(30294), + 4063: uint16(21809), + 4064: uint16(6468), + 4065: uint16(4862), + 4066: uint16(39171), + 4067: uint16(28124), + 4068: uint16(28845), + 4069: uint16(23745), + 4070: uint16(25005), + 4071: uint16(35343), + 4072: uint16(13943), + 4073: uint16(238), + 4074: uint16(26694), + 4075: uint16(20238), + 4076: uint16(17762), + 4077: uint16(23327), + 4078: uint16(25420), + 4079: uint16(40784), + 4080: uint16(40614), + 4081: uint16(25195), + 4082: uint16(1351), + 4083: uint16(37595), + 4084: uint16(1503), + 4085: uint16(16325), + 4086: uint16(34124), + 4087: uint16(17077), + 4088: uint16(29679), + 4089: uint16(20917), + 4090: uint16(13897), + 4091: uint16(18754), + 4092: uint16(35300), + 4093: uint16(37700), + 4094: uint16(6619), + 4095: uint16(33518), + 4096: uint16(15560), + 4097: uint16(30780), + 4098: uint16(26436), + 4099: uint16(25311), + 4100: uint16(18739), + 4101: uint16(35242), + 4102: uint16(672), + 4103: uint16(27571), + 4104: uint16(4869), + 4105: uint16(20395), + 4106: uint16(9453), + 4107: uint16(20488), + 4108: uint16(27945), + 4109: uint16(31364), + 4110: uint16(13824), + 4111: uint16(19121), + 4112: uint16(9491), + 4114: uint16(894), + 4115: uint16(24484), + 4116: uint16(896), + 4117: uint16(839), + 4118: uint16(28379), + 4119: uint16(1055), + 4121: uint16(20737), + 4122: uint16(13434), + 4123: uint16(20750), + 4124: uint16(39020), + 4125: uint16(14147), + 4126: uint16(33814), + 4127: uint16(18852), + 4128: uint16(1159), + 4129: uint16(20832), + 4130: uint16(13236), + 4131: uint16(20842), + 4132: uint16(3071), + 4133: uint16(8444), + 4134: uint16(741), + 4135: uint16(9520), + 4136: uint16(1422), + 4137: uint16(12851), + 4138: uint16(6531), + 4139: uint16(23426), + 4140: uint16(34685), + 4141: uint16(1459), + 4142: uint16(15513), + 4143: uint16(20914), + 4144: uint16(20920), + 4145: uint16(40244), + 4146: uint16(20937), + 4147: uint16(20943), + 4148: uint16(20945), + 4149: uint16(15580), + 4150: uint16(20947), + 4151: uint16(19110), + 4152: uint16(20915), + 4153: uint16(20962), + 4154: uint16(21314), + 4155: uint16(20973), + 4156: uint16(33741), + 4157: uint16(26942), + 4158: uint16(14125), + 4159: uint16(24443), + 4160: uint16(21003), + 4161: uint16(21030), + 4162: uint16(21052), + 4163: uint16(21173), + 4164: uint16(21079), + 4165: uint16(21140), + 4166: uint16(21177), + 4167: uint16(21189), + 4168: uint16(31765), + 4169: uint16(34114), + 4170: uint16(21216), + 4171: uint16(34317), + 4172: uint16(27411), + 4174: uint16(35550), + 4175: uint16(21833), + 4176: uint16(28377), + 4177: uint16(16256), + 4178: uint16(2388), + 4179: uint16(16364), + 4180: uint16(21299), + 4182: uint16(3042), + 4183: uint16(27851), + 4184: uint16(5926), + 4185: uint16(26651), + 4186: uint16(29653), + 4187: uint16(24650), + 4188: uint16(16042), + 4189: uint16(14540), + 4190: uint16(5864), + 4191: uint16(29149), + 4192: uint16(17570), + 4193: uint16(21357), + 4194: uint16(21364), + 4195: uint16(34475), + 4196: uint16(21374), + 4198: uint16(5526), + 4199: uint16(5651), + 4200: uint16(30694), + 4201: uint16(21395), + 4202: uint16(35483), + 4203: uint16(21408), + 4204: uint16(21419), + 4205: uint16(21422), + 4206: uint16(29607), + 4207: uint16(22386), + 4208: uint16(16217), + 4209: uint16(29596), + 4210: uint16(21441), + 4211: uint16(21445), + 4212: uint16(27721), + 4213: uint16(20041), + 4214: uint16(22526), + 4215: uint16(21465), + 4216: uint16(15019), + 4217: uint16(2959), + 4218: uint16(21472), + 4219: uint16(16363), + 4220: uint16(11683), + 4221: uint16(21494), + 4222: uint16(3191), + 4223: uint16(21523), + 4224: uint16(28793), + 4225: uint16(21803), + 4226: uint16(26199), + 4227: uint16(27995), + 4228: uint16(21613), + 4229: uint16(27475), + 4230: uint16(3444), + 4231: uint16(21853), + 4232: uint16(21647), + 4233: uint16(21668), + 4234: uint16(18342), + 4235: uint16(5901), + 4236: uint16(3805), + 4237: uint16(15796), + 4238: uint16(3405), + 4239: uint16(35260), + 4240: uint16(9880), + 4241: uint16(21831), + 4242: uint16(19693), + 4243: uint16(21551), + 4244: uint16(29719), + 4245: uint16(21894), + 4246: uint16(21929), + 4248: uint16(6359), + 4249: uint16(16442), + 4250: uint16(17746), + 4251: uint16(17461), + 4252: uint16(26291), + 4253: uint16(4276), + 4254: uint16(22071), + 4255: uint16(26317), + 4256: uint16(12938), + 4257: uint16(26276), + 4258: uint16(26285), + 4259: uint16(22093), + 4260: uint16(22095), + 4261: uint16(30961), + 4262: uint16(22257), + 4263: uint16(38791), + 4264: uint16(21502), + 4265: uint16(22272), + 4266: uint16(22255), + 4267: uint16(22253), + 4268: uint16(35686), + 4269: uint16(13859), + 4270: uint16(4687), + 4271: uint16(22342), + 4272: uint16(16805), + 4273: uint16(27758), + 4274: uint16(28811), + 4275: uint16(22338), + 4276: uint16(14001), + 4277: uint16(27774), + 4278: uint16(22502), + 4279: uint16(5142), + 4280: uint16(22531), + 4281: uint16(5204), + 4282: uint16(17251), + 4283: uint16(22566), + 4284: uint16(19445), + 4285: uint16(22620), + 4286: uint16(22698), + 4287: uint16(13665), + 4288: uint16(22752), + 4289: uint16(22748), + 4290: uint16(4668), + 4291: uint16(22779), + 4292: uint16(23551), + 4293: uint16(22339), + 4294: uint16(41296), + 4295: uint16(17016), + 4296: uint16(37843), + 4297: uint16(13729), + 4298: uint16(22815), + 4299: uint16(26790), + 4300: uint16(14019), + 4301: uint16(28249), + 4302: uint16(5694), + 4303: uint16(23076), + 4304: uint16(21843), + 4305: uint16(5778), + 4306: uint16(34053), + 4307: uint16(22985), + 4308: uint16(3406), + 4309: uint16(27777), + 4310: uint16(27946), + 4311: uint16(6108), + 4312: uint16(23001), + 4313: uint16(6139), + 4314: uint16(6066), + 4315: uint16(28070), + 4316: uint16(28017), + 4317: uint16(6184), + 4318: uint16(5845), + 4319: uint16(23033), + 4320: uint16(28229), + 4321: uint16(23211), + 4322: uint16(23139), + 4323: uint16(14054), + 4324: uint16(18857), + 4326: uint16(14088), + 4327: uint16(23190), + 4328: uint16(29797), + 4329: uint16(23251), + 4330: uint16(28577), + 4331: uint16(9556), + 4332: uint16(15749), + 4333: uint16(6417), + 4334: uint16(14130), + 4335: uint16(5816), + 4336: uint16(24195), + 4337: uint16(21200), + 4338: uint16(23414), + 4339: uint16(25992), + 4340: uint16(23420), + 4341: uint16(31246), + 4342: uint16(16388), + 4343: uint16(18525), + 4344: uint16(516), + 4345: uint16(23509), + 4346: uint16(24928), + 4347: uint16(6708), + 4348: uint16(22988), + 4349: uint16(1445), + 4350: uint16(23539), + 4351: uint16(23453), + 4352: uint16(19728), + 4353: uint16(23557), + 4354: uint16(6980), + 4355: uint16(23571), + 4356: uint16(29646), + 4357: uint16(23572), + 4358: uint16(7333), + 4359: uint16(27432), + 4360: uint16(23625), + 4361: uint16(18653), + 4362: uint16(23685), + 4363: uint16(23785), + 4364: uint16(23791), + 4365: uint16(23947), + 4366: uint16(7673), + 4367: uint16(7735), + 4368: uint16(23824), + 4369: uint16(23832), + 4370: uint16(23878), + 4371: uint16(7844), + 4372: uint16(23738), + 4373: uint16(24023), + 4374: uint16(33532), + 4375: uint16(14381), + 4376: uint16(18689), + 4377: uint16(8265), + 4378: uint16(8563), + 4379: uint16(33415), + 4380: uint16(14390), + 4381: uint16(15298), + 4382: uint16(24110), + 4383: uint16(27274), + 4385: uint16(24186), + 4386: uint16(17596), + 4387: uint16(3283), + 4388: uint16(21414), + 4389: uint16(20151), + 4391: uint16(21416), + 4392: uint16(6001), + 4393: uint16(24073), + 4394: uint16(24308), + 4395: uint16(33922), + 4396: uint16(24313), + 4397: uint16(24315), + 4398: uint16(14496), + 4399: uint16(24316), + 4400: uint16(26686), + 4401: uint16(37915), + 4402: uint16(24333), + 4403: uint16(449), + 4404: uint16(63636), + 4405: uint16(15070), + 4406: uint16(18606), + 4407: uint16(4922), + 4408: uint16(24378), + 4409: uint16(26760), + 4410: uint16(9168), + 4412: uint16(9329), + 4413: uint16(24419), + 4414: uint16(38845), + 4415: uint16(28270), + 4416: uint16(24434), + 4417: uint16(37696), + 4418: uint16(35382), + 4419: uint16(24487), + 4420: uint16(23990), + 4421: uint16(15711), + 4422: uint16(21072), + 4423: uint16(8042), + 4424: uint16(28920), + 4425: uint16(9832), + 4426: uint16(37334), + 4427: uint16(670), + 4428: uint16(35369), + 4429: uint16(24625), + 4430: uint16(26245), + 4431: uint16(6263), + 4432: uint16(14691), + 4433: uint16(15815), + 4434: uint16(13881), + 4435: uint16(22416), + 4436: uint16(10164), + 4437: uint16(31089), + 4438: uint16(15936), + 4439: uint16(24734), + 4441: uint16(24755), + 4442: uint16(18818), + 4443: uint16(18831), + 4444: uint16(31315), + 4445: uint16(29860), + 4446: uint16(20705), + 4447: uint16(23200), + 4448: uint16(24932), + 4449: uint16(33828), + 4450: uint16(24898), + 4451: uint16(63654), + 4452: uint16(28370), + 4453: uint16(24961), + 4454: uint16(20980), + 4455: uint16(1622), + 4456: uint16(24967), + 4457: uint16(23466), + 4458: uint16(16311), + 4459: uint16(10335), + 4460: uint16(25043), + 4461: uint16(35741), + 4462: uint16(39261), + 4463: uint16(25040), + 4464: uint16(14642), + 4465: uint16(10624), + 4466: uint16(10433), + 4467: uint16(24611), + 4468: uint16(24924), + 4469: uint16(25886), + 4470: uint16(25483), + 4471: uint16(280), + 4472: uint16(25285), + 4473: uint16(6000), + 4474: uint16(25301), + 4475: uint16(11789), + 4476: uint16(25452), + 4477: uint16(18911), + 4478: uint16(14871), + 4479: uint16(25656), + 4480: uint16(25592), + 4481: uint16(5006), + 4482: uint16(6140), + 4484: uint16(28554), + 4485: uint16(11830), + 4486: uint16(38932), + 4487: uint16(16524), + 4488: uint16(22301), + 4489: uint16(25825), + 4490: uint16(25829), + 4491: uint16(38011), + 4492: uint16(14950), + 4493: uint16(25658), + 4494: uint16(14935), + 4495: uint16(25933), + 4496: uint16(28438), + 4497: uint16(18984), + 4498: uint16(18979), + 4499: uint16(25989), + 4500: uint16(25965), + 4501: uint16(25951), + 4502: uint16(12414), + 4503: uint16(26037), + 4504: uint16(18752), + 4505: uint16(19255), + 4506: uint16(26065), + 4507: uint16(16600), + 4508: uint16(6185), + 4509: uint16(26080), + 4510: uint16(26083), + 4511: uint16(24543), + 4512: uint16(13312), + 4513: uint16(26136), + 4514: uint16(12791), + 4515: uint16(12792), + 4516: uint16(26180), + 4517: uint16(12708), + 4518: uint16(12709), + 4519: uint16(26187), + 4520: uint16(3701), + 4521: uint16(26215), + 4522: uint16(20966), + 4523: uint16(26227), + 4525: uint16(7741), + 4526: uint16(12849), + 4527: uint16(34292), + 4528: uint16(12744), + 4529: uint16(21267), + 4530: uint16(30661), + 4531: uint16(10487), + 4532: uint16(39332), + 4533: uint16(26370), + 4534: uint16(17308), + 4535: uint16(18977), + 4536: uint16(15147), + 4537: uint16(27130), + 4538: uint16(14274), + 4540: uint16(26471), + 4541: uint16(26466), + 4542: uint16(16845), + 4543: uint16(37101), + 4544: uint16(26583), + 4545: uint16(17641), + 4546: uint16(26658), + 4547: uint16(28240), + 4548: uint16(37436), + 4549: uint16(26625), + 4550: uint16(13286), + 4551: uint16(28064), + 4552: uint16(26717), + 4553: uint16(13423), + 4554: uint16(27105), + 4555: uint16(27147), + 4556: uint16(35551), + 4557: uint16(26995), + 4558: uint16(26819), + 4559: uint16(13773), + 4560: uint16(26881), + 4561: uint16(26880), + 4562: uint16(15666), + 4563: uint16(14849), + 4564: uint16(13884), + 4565: uint16(15232), + 4566: uint16(26540), + 4567: uint16(26977), + 4568: uint16(35402), + 4569: uint16(17148), + 4570: uint16(26934), + 4571: uint16(27032), + 4572: uint16(15265), + 4573: uint16(969), + 4574: uint16(33635), + 4575: uint16(20624), + 4576: uint16(27129), + 4577: uint16(13913), + 4578: uint16(8490), + 4579: uint16(27205), + 4580: uint16(14083), + 4581: uint16(27293), + 4582: uint16(15347), + 4583: uint16(26545), + 4584: uint16(27336), + 4585: uint16(37276), + 4586: uint16(15373), + 4587: uint16(27421), + 4588: uint16(2339), + 4589: uint16(24798), + 4590: uint16(27445), + 4591: uint16(27508), + 4592: uint16(10189), + 4593: uint16(28341), + 4594: uint16(15067), + 4595: uint16(949), + 4596: uint16(6488), + 4597: uint16(14144), + 4598: uint16(21537), + 4599: uint16(15194), + 4600: uint16(27617), + 4601: uint16(16124), + 4602: uint16(27612), + 4603: uint16(27703), + 4604: uint16(9355), + 4605: uint16(18673), + 4606: uint16(27473), + 4607: uint16(27738), + 4608: uint16(33318), + 4609: uint16(27769), + 4610: uint16(15804), + 4611: uint16(17605), + 4612: uint16(15805), + 4613: uint16(16804), + 4614: uint16(18700), + 4615: uint16(18688), + 4616: uint16(15561), + 4617: uint16(14053), + 4618: uint16(15595), + 4619: uint16(3378), + 4620: uint16(39811), + 4621: uint16(12793), + 4622: uint16(9361), + 4623: uint16(32655), + 4624: uint16(26679), + 4625: uint16(27941), + 4626: uint16(28065), + 4627: uint16(28139), + 4628: uint16(28054), + 4629: uint16(27996), + 4630: uint16(28284), + 4631: uint16(28420), + 4632: uint16(18815), + 4633: uint16(16517), + 4634: uint16(28274), + 4635: uint16(34099), + 4636: uint16(28532), + 4637: uint16(20935), + 4640: uint16(33838), + 4641: uint16(35617), + 4643: uint16(15919), + 4644: uint16(29779), + 4645: uint16(16258), + 4646: uint16(31180), + 4647: uint16(28239), + 4648: uint16(23185), + 4649: uint16(12363), + 4650: uint16(28664), + 4651: uint16(14093), + 4652: uint16(28573), + 4653: uint16(15920), + 4654: uint16(28410), + 4655: uint16(5271), + 4656: uint16(16445), + 4657: uint16(17749), + 4658: uint16(37872), + 4659: uint16(28484), + 4660: uint16(28508), + 4661: uint16(15694), + 4662: uint16(28532), + 4663: uint16(37232), + 4664: uint16(15675), + 4665: uint16(28575), + 4666: uint16(16708), + 4667: uint16(28627), + 4668: uint16(16529), + 4669: uint16(16725), + 4670: uint16(16441), + 4671: uint16(16368), + 4672: uint16(16308), + 4673: uint16(16703), + 4674: uint16(20959), + 4675: uint16(16726), + 4676: uint16(16727), + 4677: uint16(16704), + 4678: uint16(25053), + 4679: uint16(28747), + 4680: uint16(28798), + 4681: uint16(28839), + 4682: uint16(28801), + 4683: uint16(28876), + 4684: uint16(28885), + 4685: uint16(28886), + 4686: uint16(28895), + 4687: uint16(16644), + 4688: uint16(15848), + 4689: uint16(29108), + 4690: uint16(29078), + 4691: uint16(17015), + 4692: uint16(28971), + 4693: uint16(28997), + 4694: uint16(23176), + 4695: uint16(29002), + 4697: uint16(23708), + 4698: uint16(17253), + 4699: uint16(29007), + 4700: uint16(37730), + 4701: uint16(17089), + 4702: uint16(28972), + 4703: uint16(17498), + 4704: uint16(18983), + 4705: uint16(18978), + 4706: uint16(29114), + 4707: uint16(35816), + 4708: uint16(28861), + 4709: uint16(29198), + 4710: uint16(37954), + 4711: uint16(29205), + 4712: uint16(22801), + 4713: uint16(37955), + 4714: uint16(29220), + 4715: uint16(37697), + 4716: uint16(22021), + 4717: uint16(29230), + 4718: uint16(29248), + 4719: uint16(18804), + 4720: uint16(26813), + 4721: uint16(29269), + 4722: uint16(29271), + 4723: uint16(15957), + 4724: uint16(12356), + 4725: uint16(26637), + 4726: uint16(28477), + 4727: uint16(29314), + 4729: uint16(29483), + 4730: uint16(18467), + 4731: uint16(34859), + 4732: uint16(18669), + 4733: uint16(34820), + 4734: uint16(29480), + 4735: uint16(29486), + 4736: uint16(29647), + 4737: uint16(29610), + 4738: uint16(3130), + 4739: uint16(27182), + 4740: uint16(29641), + 4741: uint16(29769), + 4742: uint16(16866), + 4743: uint16(5863), + 4744: uint16(18980), + 4745: uint16(26147), + 4746: uint16(14021), + 4747: uint16(18871), + 4748: uint16(18829), + 4749: uint16(18939), + 4750: uint16(29687), + 4751: uint16(29717), + 4752: uint16(26883), + 4753: uint16(18982), + 4754: uint16(29753), + 4755: uint16(1475), + 4756: uint16(16087), + 4758: uint16(10413), + 4759: uint16(29792), + 4760: uint16(36530), + 4761: uint16(29767), + 4762: uint16(29668), + 4763: uint16(29814), + 4764: uint16(33721), + 4765: uint16(29804), + 4766: uint16(14128), + 4767: uint16(29812), + 4768: uint16(37873), + 4769: uint16(27180), + 4770: uint16(29826), + 4771: uint16(18771), + 4772: uint16(19084), + 4773: uint16(16735), + 4774: uint16(19065), + 4775: uint16(35727), + 4776: uint16(23366), + 4777: uint16(35843), + 4778: uint16(6302), + 4779: uint16(29896), + 4780: uint16(6536), + 4781: uint16(29966), + 4783: uint16(29982), + 4784: uint16(36569), + 4785: uint16(6731), + 4786: uint16(23511), + 4787: uint16(36524), + 4788: uint16(37765), + 4789: uint16(30029), + 4790: uint16(30026), + 4791: uint16(30055), + 4792: uint16(30062), + 4793: uint16(20354), + 4794: uint16(16132), + 4795: uint16(19731), + 4796: uint16(30094), + 4797: uint16(29789), + 4798: uint16(30110), + 4799: uint16(30132), + 4800: uint16(30210), + 4801: uint16(30252), + 4802: uint16(30289), + 4803: uint16(30287), + 4804: uint16(30319), + 4805: uint16(30326), + 4806: uint16(25589), + 4807: uint16(30352), + 4808: uint16(33263), + 4809: uint16(14328), + 4810: uint16(26897), + 4811: uint16(26894), + 4812: uint16(30369), + 4813: uint16(30373), + 4814: uint16(30391), + 4815: uint16(30412), + 4816: uint16(28575), + 4817: uint16(33890), + 4818: uint16(20637), + 4819: uint16(20861), + 4820: uint16(7708), + 4821: uint16(30494), + 4822: uint16(30502), + 4823: uint16(30528), + 4824: uint16(25775), + 4825: uint16(21024), + 4826: uint16(30552), + 4827: uint16(12972), + 4828: uint16(30639), + 4829: uint16(35172), + 4830: uint16(35176), + 4831: uint16(5825), + 4832: uint16(30708), + 4834: uint16(4982), + 4835: uint16(18962), + 4836: uint16(26826), + 4837: uint16(30895), + 4838: uint16(30919), + 4839: uint16(30931), + 4840: uint16(38565), + 4841: uint16(31022), + 4842: uint16(21984), + 4843: uint16(30935), + 4844: uint16(31028), + 4845: uint16(30897), + 4846: uint16(30220), + 4847: uint16(36792), + 4848: uint16(34948), + 4849: uint16(35627), + 4850: uint16(24707), + 4851: uint16(9756), + 4852: uint16(31110), + 4853: uint16(35072), + 4854: uint16(26882), + 4855: uint16(31104), + 4856: uint16(22615), + 4857: uint16(31133), + 4858: uint16(31545), + 4859: uint16(31036), + 4860: uint16(31145), + 4861: uint16(28202), + 4862: uint16(28966), + 4863: uint16(16040), + 4864: uint16(31174), + 4865: uint16(37133), + 4866: uint16(31188), + 4867: uint16(1312), + 4868: uint16(17503), + 4869: uint16(21007), + 4870: uint16(47234), + 4871: uint16(248), + 4872: uint16(16384), + 4873: uint16(43296), + 4874: uint16(1102), + 4877: uint16(2868), + 4878: uint16(1), + 4886: uint16(3072), + 4887: uint16(64), + 4891: uint16(1024), + 4892: uint16(88), + 4893: uint16(60), + 4896: uint16(23680), + 4897: uint16(56493), + 4898: uint16(48115), + 4899: uint16(17353), + 4900: uint16(60910), + 4901: uint16(4004), + 4902: uint16(49446), + 4903: uint16(30363), + 4904: uint16(61426), + 4905: uint16(64478), + 4906: uint16(63482), + 4907: uint16(12815), + 4908: uint16(44868), + 4909: uint16(61438), + 4910: uint16(65277), + 4911: uint16(24593), + 4912: uint16(176), + 4913: uint16(8448), + 4914: uint16(33049), + 4915: uint16(4128), + 4916: uint16(43144), + 4917: uint16(8544), + 4918: uint16(9321), + 4919: uint16(17408), + 4920: uint16(50313), + 4922: uint16(16387), + 4923: uint16(53), + 4924: uint16(33859), + 4925: uint16(20785), + 4926: uint16(26771), + 4927: uint16(514), + 4933: uint16(16384), + 4934: uint16(256), + 4935: uint16(44160), + 4936: uint16(33380), + 4937: uint16(35904), + 4938: uint16(37025), + 4939: uint16(20484), + 4940: uint16(54368), + 4941: uint16(53760), + 4942: uint16(6186), + 4943: uint16(26781), + 4944: uint16(38709), + 4945: uint16(55375), + 4946: uint16(8440), + 4947: uint16(33476), + 4948: uint16(10268), + 4949: uint16(30082), + 4950: uint16(660), + 4951: uint16(16440), + 4952: uint16(41376), + 4953: uint16(4293), + 4954: uint16(19825), + 4955: uint16(3524), + 4956: uint16(47512), + 4957: uint16(23390), + 4958: uint16(17153), + 4959: uint16(39327), + 4960: uint16(30723), + 4961: uint16(57888), + 4962: uint16(2079), + 4963: uint16(393), + 4964: uint16(16585), + 4965: uint16(775), + 4966: uint16(39437), + 4967: uint16(21136), + 4968: uint16(20433), + 4969: uint16(892), + 4970: uint16(8450), + 4971: uint16(49184), + 4972: uint16(4974), + 4973: uint16(46467), + 4974: uint16(62939), + 4975: uint16(30693), + 4976: uint16(20368), + 4977: uint16(39447), + 4978: uint16(5942), + 4979: uint16(12), + 4980: uint16(47726), + 4981: uint16(12041), + 4982: uint16(21600), + 4983: uint16(7680), + 4984: uint16(26744), + 4985: uint16(28706), + 4986: uint16(40534), + 4987: uint16(62245), + 4988: uint16(46990), + 4989: uint16(2839), + 4990: uint16(59119), + 4991: uint16(6007), + 4992: uint16(7003), + 4993: uint16(4289), + 4994: uint16(36248), + 4995: uint16(6162), + 4996: uint16(53174), + 4997: uint16(12545), + 4998: uint16(6770), + 4999: uint16(11355), + 5000: uint16(49334), + 5001: uint16(57888), + 5002: uint16(23747), + 5003: uint16(7042), + 5004: uint16(56032), + 5005: uint16(34254), + 5006: uint16(16598), + 5007: uint16(21673), + 5008: uint16(53259), + 5009: uint16(18447), + 5010: uint16(16452), + 5011: uint16(2320), + 5012: uint16(16596), + 5013: uint16(15278), + 5014: uint16(7780), + 5015: uint16(11076), + 5016: uint16(2071), + 5017: uint16(33414), + 5018: uint16(6198), + 5019: uint16(35232), + 5020: uint16(40167), + 5021: uint16(2139), + 5022: uint16(900), + 5023: uint16(55810), + 5024: uint16(60560), + 5025: uint16(34779), + 5026: uint16(49029), + 5027: uint16(44450), + 5028: uint16(36509), + 5029: uint16(39069), + 5030: uint16(9504), + 5031: uint16(70), + 5032: uint16(40774), + 5033: uint16(58239), + 5034: uint16(51669), + 5035: uint16(62596), + 5036: uint16(19926), + 5037: uint16(58118), + 5038: uint16(6326), + 5039: uint16(2322), + 5041: uint16(1024), + 5043: uint16(32), + 5045: uint16(512), + 5050: uint16(8192), + 5057: uint16(8), + 5058: uint16(36352), + 5059: uint16(28280), + 5060: uint16(16223), + 5061: uint16(56702), + 5062: uint16(63293), + 5063: uint16(39932), + 5064: uint16(44796), + 5065: uint16(65490), + 5066: uint16(27535), + 5067: uint16(59377), + 5068: uint16(47807), + 5069: uint16(28334), + 5070: uint16(61207), + 5071: uint16(42972), + 5072: uint16(46654), + 5073: uint16(30645), + 5074: uint16(37577), + 5075: uint16(42455), + 5076: uint16(19126), + 5077: uint16(39790), + 5078: uint16(33209), + 5079: uint16(26445), + 5080: uint16(21758), + 5081: uint16(39921), + 5082: uint16(65122), + 5083: uint16(21103), + 5084: uint16(14039), + 5085: uint16(49150), + 5086: uint16(17705), + 5087: uint16(63873), + 5088: uint16(26045), + 5089: uint16(17062), + 5090: uint16(57), + 5091: uint16(16896), + 5092: uint16(36704), + 5093: uint16(37888), + 5094: uint16(16448), + 5095: uint16(45010), + 5096: uint16(53719), + 5097: uint16(219), + 5098: uint16(39072), + 5099: uint16(31666), + 5100: uint16(20998), + 5101: uint16(38944), + 5102: uint16(51222), + 5103: uint16(2365), + 5105: uint16(1), + 5107: uint16(2561), + 5108: uint16(2226), + 5109: uint16(128), + 5111: uint16(34820), + 5112: uint16(5152), + 5113: uint16(19472), + 5115: uint16(4), + 5116: uint16(17569), + 5117: uint16(16), + 5118: uint16(321), + 5119: uint16(2048), + 5120: uint16(61504), + 5121: uint16(20447), + 5122: uint16(22582), + 5123: uint16(62961), + 5124: uint16(32949), + 5125: uint16(26613), + 5126: uint16(16512), + 5127: uint16(20480), + 5128: uint16(16718), + 5129: uint16(33992), + 5130: uint16(23040), + 5131: uint16(55392), + 5132: uint16(11009), + 5133: uint16(20481), + 5134: uint16(5793), + 5135: uint16(16580), + 5136: uint16(28402), + 5137: uint16(44049), + 5138: uint16(14624), + 5139: uint16(49348), + 5140: uint16(1800), + 5141: uint16(2316), + 5142: uint16(38552), + 5143: uint16(39876), + 5144: uint16(7184), + 5145: uint16(27800), + 5146: uint16(10886), + 5147: uint16(422), + 5148: uint16(4422), + 5149: uint16(58733), + 5150: uint16(50379), + 5151: uint16(37568), + 5152: uint16(8464), + 5153: uint16(4630), + 5154: uint16(29341), + 5155: uint16(27124), + 5156: uint16(5902), + 5157: uint16(41514), + 5158: uint16(62593), + 5159: uint16(123), + 5160: uint16(41992), + 5161: uint16(36875), + 5162: uint16(11280), + 5163: uint16(14796), + 5164: uint16(330), + 5165: uint16(5872), + 5166: uint16(2571), + 5167: uint16(3136), + 5168: uint16(59933), + 5169: uint16(17420), + 5170: uint16(17678), + 5171: uint16(2), +} + +var _ksc = [93][94]uint16{ + 0: { + 0: uint16(12288), + 1: uint16(12289), + 2: uint16(12290), + 3: uint16(183), + 4: uint16(8229), + 5: uint16(8230), + 6: uint16(168), + 7: uint16(12291), + 8: uint16(173), + 9: uint16(8213), + 10: uint16(8741), + 11: uint16(65340), + 12: uint16(8764), + 13: uint16(8216), + 14: uint16(8217), + 15: uint16(8220), + 16: uint16(8221), + 17: uint16(12308), + 18: uint16(12309), + 19: uint16(12296), + 20: uint16(12297), + 21: uint16(12298), + 22: uint16(12299), + 23: uint16(12300), + 24: uint16(12301), + 25: uint16(12302), + 26: uint16(12303), + 27: uint16(12304), + 28: uint16(12305), + 29: uint16(177), + 30: uint16(215), + 31: uint16(247), + 32: uint16(8800), + 33: uint16(8804), + 34: uint16(8805), + 35: uint16(8734), + 36: uint16(8756), + 37: uint16(176), + 38: uint16(8242), + 39: uint16(8243), + 40: uint16(8451), + 41: uint16(8491), + 42: uint16(65504), + 43: uint16(65505), + 44: uint16(65509), + 45: uint16(9794), + 46: uint16(9792), + 47: uint16(8736), + 48: uint16(8869), + 49: uint16(8978), + 50: uint16(8706), + 51: uint16(8711), + 52: uint16(8801), + 53: uint16(8786), + 54: uint16(167), + 55: uint16(8251), + 56: uint16(9734), + 57: uint16(9733), + 58: uint16(9675), + 59: uint16(9679), + 60: uint16(9678), + 61: uint16(9671), + 62: uint16(9670), + 63: uint16(9633), + 64: uint16(9632), + 65: uint16(9651), + 66: uint16(9650), + 67: uint16(9661), + 68: uint16(9660), + 69: uint16(8594), + 70: uint16(8592), + 71: uint16(8593), + 72: uint16(8595), + 73: uint16(8596), + 74: uint16(12307), + 75: uint16(8810), + 76: uint16(8811), + 77: uint16(8730), + 78: uint16(8765), + 79: uint16(8733), + 80: uint16(8757), + 81: uint16(8747), + 82: uint16(8748), + 83: uint16(8712), + 84: uint16(8715), + 85: uint16(8838), + 86: uint16(8839), + 87: uint16(8834), + 88: uint16(8835), + 89: uint16(8746), + 90: uint16(8745), + 91: uint16(8743), + 92: uint16(8744), + 93: uint16(65506), + }, + 1: { + 0: uint16(8658), + 1: uint16(8660), + 2: uint16(8704), + 3: uint16(8707), + 4: uint16(180), + 5: uint16(65374), + 6: uint16(711), + 7: uint16(728), + 8: uint16(733), + 9: uint16(730), + 10: uint16(729), + 11: uint16(184), + 12: uint16(731), + 13: uint16(161), + 14: uint16(191), + 15: uint16(720), + 16: uint16(8750), + 17: uint16(8721), + 18: uint16(8719), + 19: uint16(164), + 20: uint16(8457), + 21: uint16(8240), + 22: uint16(9665), + 23: uint16(9664), + 24: uint16(9655), + 25: uint16(9654), + 26: uint16(9828), + 27: uint16(9824), + 28: uint16(9825), + 29: uint16(9829), + 30: uint16(9831), + 31: uint16(9827), + 32: uint16(8857), + 33: uint16(9672), + 34: uint16(9635), + 35: uint16(9680), + 36: uint16(9681), + 37: uint16(9618), + 38: uint16(9636), + 39: uint16(9637), + 40: uint16(9640), + 41: uint16(9639), + 42: uint16(9638), + 43: uint16(9641), + 44: uint16(9832), + 45: uint16(9743), + 46: uint16(9742), + 47: uint16(9756), + 48: uint16(9758), + 49: uint16(182), + 50: uint16(8224), + 51: uint16(8225), + 52: uint16(8597), + 53: uint16(8599), + 54: uint16(8601), + 55: uint16(8598), + 56: uint16(8600), + 57: uint16(9837), + 58: uint16(9833), + 59: uint16(9834), + 60: uint16(9836), + 61: uint16(12927), + 62: uint16(12828), + 63: uint16(8470), + 64: uint16(13255), + 65: uint16(8482), + 66: uint16(13250), + 67: uint16(13272), + 68: uint16(8481), + 69: uint16(8364), + 70: uint16(174), + }, + 2: { + 0: uint16(65281), + 1: uint16(65282), + 2: uint16(65283), + 3: uint16(65284), + 4: uint16(65285), + 5: uint16(65286), + 6: uint16(65287), + 7: uint16(65288), + 8: uint16(65289), + 9: uint16(65290), + 10: uint16(65291), + 11: uint16(65292), + 12: uint16(65293), + 13: uint16(65294), + 14: uint16(65295), + 15: uint16(65296), + 16: uint16(65297), + 17: uint16(65298), + 18: uint16(65299), + 19: uint16(65300), + 20: uint16(65301), + 21: uint16(65302), + 22: uint16(65303), + 23: uint16(65304), + 24: uint16(65305), + 25: uint16(65306), + 26: uint16(65307), + 27: uint16(65308), + 28: uint16(65309), + 29: uint16(65310), + 30: uint16(65311), + 31: uint16(65312), + 32: uint16(65313), + 33: uint16(65314), + 34: uint16(65315), + 35: uint16(65316), + 36: uint16(65317), + 37: uint16(65318), + 38: uint16(65319), + 39: uint16(65320), + 40: uint16(65321), + 41: uint16(65322), + 42: uint16(65323), + 43: uint16(65324), + 44: uint16(65325), + 45: uint16(65326), + 46: uint16(65327), + 47: uint16(65328), + 48: uint16(65329), + 49: uint16(65330), + 50: uint16(65331), + 51: uint16(65332), + 52: uint16(65333), + 53: uint16(65334), + 54: uint16(65335), + 55: uint16(65336), + 56: uint16(65337), + 57: uint16(65338), + 58: uint16(65339), + 59: uint16(65510), + 60: uint16(65341), + 61: uint16(65342), + 62: uint16(65343), + 63: uint16(65344), + 64: uint16(65345), + 65: uint16(65346), + 66: uint16(65347), + 67: uint16(65348), + 68: uint16(65349), + 69: uint16(65350), + 70: uint16(65351), + 71: uint16(65352), + 72: uint16(65353), + 73: uint16(65354), + 74: uint16(65355), + 75: uint16(65356), + 76: uint16(65357), + 77: uint16(65358), + 78: uint16(65359), + 79: uint16(65360), + 80: uint16(65361), + 81: uint16(65362), + 82: uint16(65363), + 83: uint16(65364), + 84: uint16(65365), + 85: uint16(65366), + 86: uint16(65367), + 87: uint16(65368), + 88: uint16(65369), + 89: uint16(65370), + 90: uint16(65371), + 91: uint16(65372), + 92: uint16(65373), + 93: uint16(65507), + }, + 3: { + 0: uint16(12593), + 1: uint16(12594), + 2: uint16(12595), + 3: uint16(12596), + 4: uint16(12597), + 5: uint16(12598), + 6: uint16(12599), + 7: uint16(12600), + 8: uint16(12601), + 9: uint16(12602), + 10: uint16(12603), + 11: uint16(12604), + 12: uint16(12605), + 13: uint16(12606), + 14: uint16(12607), + 15: uint16(12608), + 16: uint16(12609), + 17: uint16(12610), + 18: uint16(12611), + 19: uint16(12612), + 20: uint16(12613), + 21: uint16(12614), + 22: uint16(12615), + 23: uint16(12616), + 24: uint16(12617), + 25: uint16(12618), + 26: uint16(12619), + 27: uint16(12620), + 28: uint16(12621), + 29: uint16(12622), + 30: uint16(12623), + 31: uint16(12624), + 32: uint16(12625), + 33: uint16(12626), + 34: uint16(12627), + 35: uint16(12628), + 36: uint16(12629), + 37: uint16(12630), + 38: uint16(12631), + 39: uint16(12632), + 40: uint16(12633), + 41: uint16(12634), + 42: uint16(12635), + 43: uint16(12636), + 44: uint16(12637), + 45: uint16(12638), + 46: uint16(12639), + 47: uint16(12640), + 48: uint16(12641), + 49: uint16(12642), + 50: uint16(12643), + 51: uint16(12644), + 52: uint16(12645), + 53: uint16(12646), + 54: uint16(12647), + 55: uint16(12648), + 56: uint16(12649), + 57: uint16(12650), + 58: uint16(12651), + 59: uint16(12652), + 60: uint16(12653), + 61: uint16(12654), + 62: uint16(12655), + 63: uint16(12656), + 64: uint16(12657), + 65: uint16(12658), + 66: uint16(12659), + 67: uint16(12660), + 68: uint16(12661), + 69: uint16(12662), + 70: uint16(12663), + 71: uint16(12664), + 72: uint16(12665), + 73: uint16(12666), + 74: uint16(12667), + 75: uint16(12668), + 76: uint16(12669), + 77: uint16(12670), + 78: uint16(12671), + 79: uint16(12672), + 80: uint16(12673), + 81: uint16(12674), + 82: uint16(12675), + 83: uint16(12676), + 84: uint16(12677), + 85: uint16(12678), + 86: uint16(12679), + 87: uint16(12680), + 88: uint16(12681), + 89: uint16(12682), + 90: uint16(12683), + 91: uint16(12684), + 92: uint16(12685), + 93: uint16(12686), + }, + 4: { + 0: uint16(8560), + 1: uint16(8561), + 2: uint16(8562), + 3: uint16(8563), + 4: uint16(8564), + 5: uint16(8565), + 6: uint16(8566), + 7: uint16(8567), + 8: uint16(8568), + 9: uint16(8569), + 15: uint16(8544), + 16: uint16(8545), + 17: uint16(8546), + 18: uint16(8547), + 19: uint16(8548), + 20: uint16(8549), + 21: uint16(8550), + 22: uint16(8551), + 23: uint16(8552), + 24: uint16(8553), + 32: uint16(913), + 33: uint16(914), + 34: uint16(915), + 35: uint16(916), + 36: uint16(917), + 37: uint16(918), + 38: uint16(919), + 39: uint16(920), + 40: uint16(921), + 41: uint16(922), + 42: uint16(923), + 43: uint16(924), + 44: uint16(925), + 45: uint16(926), + 46: uint16(927), + 47: uint16(928), + 48: uint16(929), + 49: uint16(931), + 50: uint16(932), + 51: uint16(933), + 52: uint16(934), + 53: uint16(935), + 54: uint16(936), + 55: uint16(937), + 64: uint16(945), + 65: uint16(946), + 66: uint16(947), + 67: uint16(948), + 68: uint16(949), + 69: uint16(950), + 70: uint16(951), + 71: uint16(952), + 72: uint16(953), + 73: uint16(954), + 74: uint16(955), + 75: uint16(956), + 76: uint16(957), + 77: uint16(958), + 78: uint16(959), + 79: uint16(960), + 80: uint16(961), + 81: uint16(963), + 82: uint16(964), + 83: uint16(965), + 84: uint16(966), + 85: uint16(967), + 86: uint16(968), + 87: uint16(969), + }, + 5: { + 0: uint16(9472), + 1: uint16(9474), + 2: uint16(9484), + 3: uint16(9488), + 4: uint16(9496), + 5: uint16(9492), + 6: uint16(9500), + 7: uint16(9516), + 8: uint16(9508), + 9: uint16(9524), + 10: uint16(9532), + 11: uint16(9473), + 12: uint16(9475), + 13: uint16(9487), + 14: uint16(9491), + 15: uint16(9499), + 16: uint16(9495), + 17: uint16(9507), + 18: uint16(9523), + 19: uint16(9515), + 20: uint16(9531), + 21: uint16(9547), + 22: uint16(9504), + 23: uint16(9519), + 24: uint16(9512), + 25: uint16(9527), + 26: uint16(9535), + 27: uint16(9501), + 28: uint16(9520), + 29: uint16(9509), + 30: uint16(9528), + 31: uint16(9538), + 32: uint16(9490), + 33: uint16(9489), + 34: uint16(9498), + 35: uint16(9497), + 36: uint16(9494), + 37: uint16(9493), + 38: uint16(9486), + 39: uint16(9485), + 40: uint16(9502), + 41: uint16(9503), + 42: uint16(9505), + 43: uint16(9506), + 44: uint16(9510), + 45: uint16(9511), + 46: uint16(9513), + 47: uint16(9514), + 48: uint16(9517), + 49: uint16(9518), + 50: uint16(9521), + 51: uint16(9522), + 52: uint16(9525), + 53: uint16(9526), + 54: uint16(9529), + 55: uint16(9530), + 56: uint16(9533), + 57: uint16(9534), + 58: uint16(9536), + 59: uint16(9537), + 60: uint16(9539), + 61: uint16(9540), + 62: uint16(9541), + 63: uint16(9542), + 64: uint16(9543), + 65: uint16(9544), + 66: uint16(9545), + 67: uint16(9546), + }, + 6: { + 0: uint16(13205), + 1: uint16(13206), + 2: uint16(13207), + 3: uint16(8467), + 4: uint16(13208), + 5: uint16(13252), + 6: uint16(13219), + 7: uint16(13220), + 8: uint16(13221), + 9: uint16(13222), + 10: uint16(13209), + 11: uint16(13210), + 12: uint16(13211), + 13: uint16(13212), + 14: uint16(13213), + 15: uint16(13214), + 16: uint16(13215), + 17: uint16(13216), + 18: uint16(13217), + 19: uint16(13218), + 20: uint16(13258), + 21: uint16(13197), + 22: uint16(13198), + 23: uint16(13199), + 24: uint16(13263), + 25: uint16(13192), + 26: uint16(13193), + 27: uint16(13256), + 28: uint16(13223), + 29: uint16(13224), + 30: uint16(13232), + 31: uint16(13233), + 32: uint16(13234), + 33: uint16(13235), + 34: uint16(13236), + 35: uint16(13237), + 36: uint16(13238), + 37: uint16(13239), + 38: uint16(13240), + 39: uint16(13241), + 40: uint16(13184), + 41: uint16(13185), + 42: uint16(13186), + 43: uint16(13187), + 44: uint16(13188), + 45: uint16(13242), + 46: uint16(13243), + 47: uint16(13244), + 48: uint16(13245), + 49: uint16(13246), + 50: uint16(13247), + 51: uint16(13200), + 52: uint16(13201), + 53: uint16(13202), + 54: uint16(13203), + 55: uint16(13204), + 56: uint16(8486), + 57: uint16(13248), + 58: uint16(13249), + 59: uint16(13194), + 60: uint16(13195), + 61: uint16(13196), + 62: uint16(13270), + 63: uint16(13253), + 64: uint16(13229), + 65: uint16(13230), + 66: uint16(13231), + 67: uint16(13275), + 68: uint16(13225), + 69: uint16(13226), + 70: uint16(13227), + 71: uint16(13228), + 72: uint16(13277), + 73: uint16(13264), + 74: uint16(13267), + 75: uint16(13251), + 76: uint16(13257), + 77: uint16(13276), + 78: uint16(13254), + }, + 7: { + 0: uint16(198), + 1: uint16(208), + 2: uint16(170), + 3: uint16(294), + 5: uint16(306), + 7: uint16(319), + 8: uint16(321), + 9: uint16(216), + 10: uint16(338), + 11: uint16(186), + 12: uint16(222), + 13: uint16(358), + 14: uint16(330), + 16: uint16(12896), + 17: uint16(12897), + 18: uint16(12898), + 19: uint16(12899), + 20: uint16(12900), + 21: uint16(12901), + 22: uint16(12902), + 23: uint16(12903), + 24: uint16(12904), + 25: uint16(12905), + 26: uint16(12906), + 27: uint16(12907), + 28: uint16(12908), + 29: uint16(12909), + 30: uint16(12910), + 31: uint16(12911), + 32: uint16(12912), + 33: uint16(12913), + 34: uint16(12914), + 35: uint16(12915), + 36: uint16(12916), + 37: uint16(12917), + 38: uint16(12918), + 39: uint16(12919), + 40: uint16(12920), + 41: uint16(12921), + 42: uint16(12922), + 43: uint16(12923), + 44: uint16(9424), + 45: uint16(9425), + 46: uint16(9426), + 47: uint16(9427), + 48: uint16(9428), + 49: uint16(9429), + 50: uint16(9430), + 51: uint16(9431), + 52: uint16(9432), + 53: uint16(9433), + 54: uint16(9434), + 55: uint16(9435), + 56: uint16(9436), + 57: uint16(9437), + 58: uint16(9438), + 59: uint16(9439), + 60: uint16(9440), + 61: uint16(9441), + 62: uint16(9442), + 63: uint16(9443), + 64: uint16(9444), + 65: uint16(9445), + 66: uint16(9446), + 67: uint16(9447), + 68: uint16(9448), + 69: uint16(9449), + 70: uint16(9312), + 71: uint16(9313), + 72: uint16(9314), + 73: uint16(9315), + 74: uint16(9316), + 75: uint16(9317), + 76: uint16(9318), + 77: uint16(9319), + 78: uint16(9320), + 79: uint16(9321), + 80: uint16(9322), + 81: uint16(9323), + 82: uint16(9324), + 83: uint16(9325), + 84: uint16(9326), + 85: uint16(189), + 86: uint16(8531), + 87: uint16(8532), + 88: uint16(188), + 89: uint16(190), + 90: uint16(8539), + 91: uint16(8540), + 92: uint16(8541), + 93: uint16(8542), + }, + 8: { + 0: uint16(230), + 1: uint16(273), + 2: uint16(240), + 3: uint16(295), + 4: uint16(305), + 5: uint16(307), + 6: uint16(312), + 7: uint16(320), + 8: uint16(322), + 9: uint16(248), + 10: uint16(339), + 11: uint16(223), + 12: uint16(254), + 13: uint16(359), + 14: uint16(331), + 15: uint16(329), + 16: uint16(12800), + 17: uint16(12801), + 18: uint16(12802), + 19: uint16(12803), + 20: uint16(12804), + 21: uint16(12805), + 22: uint16(12806), + 23: uint16(12807), + 24: uint16(12808), + 25: uint16(12809), + 26: uint16(12810), + 27: uint16(12811), + 28: uint16(12812), + 29: uint16(12813), + 30: uint16(12814), + 31: uint16(12815), + 32: uint16(12816), + 33: uint16(12817), + 34: uint16(12818), + 35: uint16(12819), + 36: uint16(12820), + 37: uint16(12821), + 38: uint16(12822), + 39: uint16(12823), + 40: uint16(12824), + 41: uint16(12825), + 42: uint16(12826), + 43: uint16(12827), + 44: uint16(9372), + 45: uint16(9373), + 46: uint16(9374), + 47: uint16(9375), + 48: uint16(9376), + 49: uint16(9377), + 50: uint16(9378), + 51: uint16(9379), + 52: uint16(9380), + 53: uint16(9381), + 54: uint16(9382), + 55: uint16(9383), + 56: uint16(9384), + 57: uint16(9385), + 58: uint16(9386), + 59: uint16(9387), + 60: uint16(9388), + 61: uint16(9389), + 62: uint16(9390), + 63: uint16(9391), + 64: uint16(9392), + 65: uint16(9393), + 66: uint16(9394), + 67: uint16(9395), + 68: uint16(9396), + 69: uint16(9397), + 70: uint16(9332), + 71: uint16(9333), + 72: uint16(9334), + 73: uint16(9335), + 74: uint16(9336), + 75: uint16(9337), + 76: uint16(9338), + 77: uint16(9339), + 78: uint16(9340), + 79: uint16(9341), + 80: uint16(9342), + 81: uint16(9343), + 82: uint16(9344), + 83: uint16(9345), + 84: uint16(9346), + 85: uint16(185), + 86: uint16(178), + 87: uint16(179), + 88: uint16(8308), + 89: uint16(8319), + 90: uint16(8321), + 91: uint16(8322), + 92: uint16(8323), + 93: uint16(8324), + }, + 9: { + 0: uint16(12353), + 1: uint16(12354), + 2: uint16(12355), + 3: uint16(12356), + 4: uint16(12357), + 5: uint16(12358), + 6: uint16(12359), + 7: uint16(12360), + 8: uint16(12361), + 9: uint16(12362), + 10: uint16(12363), + 11: uint16(12364), + 12: uint16(12365), + 13: uint16(12366), + 14: uint16(12367), + 15: uint16(12368), + 16: uint16(12369), + 17: uint16(12370), + 18: uint16(12371), + 19: uint16(12372), + 20: uint16(12373), + 21: uint16(12374), + 22: uint16(12375), + 23: uint16(12376), + 24: uint16(12377), + 25: uint16(12378), + 26: uint16(12379), + 27: uint16(12380), + 28: uint16(12381), + 29: uint16(12382), + 30: uint16(12383), + 31: uint16(12384), + 32: uint16(12385), + 33: uint16(12386), + 34: uint16(12387), + 35: uint16(12388), + 36: uint16(12389), + 37: uint16(12390), + 38: uint16(12391), + 39: uint16(12392), + 40: uint16(12393), + 41: uint16(12394), + 42: uint16(12395), + 43: uint16(12396), + 44: uint16(12397), + 45: uint16(12398), + 46: uint16(12399), + 47: uint16(12400), + 48: uint16(12401), + 49: uint16(12402), + 50: uint16(12403), + 51: uint16(12404), + 52: uint16(12405), + 53: uint16(12406), + 54: uint16(12407), + 55: uint16(12408), + 56: uint16(12409), + 57: uint16(12410), + 58: uint16(12411), + 59: uint16(12412), + 60: uint16(12413), + 61: uint16(12414), + 62: uint16(12415), + 63: uint16(12416), + 64: uint16(12417), + 65: uint16(12418), + 66: uint16(12419), + 67: uint16(12420), + 68: uint16(12421), + 69: uint16(12422), + 70: uint16(12423), + 71: uint16(12424), + 72: uint16(12425), + 73: uint16(12426), + 74: uint16(12427), + 75: uint16(12428), + 76: uint16(12429), + 77: uint16(12430), + 78: uint16(12431), + 79: uint16(12432), + 80: uint16(12433), + 81: uint16(12434), + 82: uint16(12435), + }, + 10: { + 0: uint16(12449), + 1: uint16(12450), + 2: uint16(12451), + 3: uint16(12452), + 4: uint16(12453), + 5: uint16(12454), + 6: uint16(12455), + 7: uint16(12456), + 8: uint16(12457), + 9: uint16(12458), + 10: uint16(12459), + 11: uint16(12460), + 12: uint16(12461), + 13: uint16(12462), + 14: uint16(12463), + 15: uint16(12464), + 16: uint16(12465), + 17: uint16(12466), + 18: uint16(12467), + 19: uint16(12468), + 20: uint16(12469), + 21: uint16(12470), + 22: uint16(12471), + 23: uint16(12472), + 24: uint16(12473), + 25: uint16(12474), + 26: uint16(12475), + 27: uint16(12476), + 28: uint16(12477), + 29: uint16(12478), + 30: uint16(12479), + 31: uint16(12480), + 32: uint16(12481), + 33: uint16(12482), + 34: uint16(12483), + 35: uint16(12484), + 36: uint16(12485), + 37: uint16(12486), + 38: uint16(12487), + 39: uint16(12488), + 40: uint16(12489), + 41: uint16(12490), + 42: uint16(12491), + 43: uint16(12492), + 44: uint16(12493), + 45: uint16(12494), + 46: uint16(12495), + 47: uint16(12496), + 48: uint16(12497), + 49: uint16(12498), + 50: uint16(12499), + 51: uint16(12500), + 52: uint16(12501), + 53: uint16(12502), + 54: uint16(12503), + 55: uint16(12504), + 56: uint16(12505), + 57: uint16(12506), + 58: uint16(12507), + 59: uint16(12508), + 60: uint16(12509), + 61: uint16(12510), + 62: uint16(12511), + 63: uint16(12512), + 64: uint16(12513), + 65: uint16(12514), + 66: uint16(12515), + 67: uint16(12516), + 68: uint16(12517), + 69: uint16(12518), + 70: uint16(12519), + 71: uint16(12520), + 72: uint16(12521), + 73: uint16(12522), + 74: uint16(12523), + 75: uint16(12524), + 76: uint16(12525), + 77: uint16(12526), + 78: uint16(12527), + 79: uint16(12528), + 80: uint16(12529), + 81: uint16(12530), + 82: uint16(12531), + 83: uint16(12532), + 84: uint16(12533), + 85: uint16(12534), + }, + 11: { + 0: uint16(1040), + 1: uint16(1041), + 2: uint16(1042), + 3: uint16(1043), + 4: uint16(1044), + 5: uint16(1045), + 6: uint16(1025), + 7: uint16(1046), + 8: uint16(1047), + 9: uint16(1048), + 10: uint16(1049), + 11: uint16(1050), + 12: uint16(1051), + 13: uint16(1052), + 14: uint16(1053), + 15: uint16(1054), + 16: uint16(1055), + 17: uint16(1056), + 18: uint16(1057), + 19: uint16(1058), + 20: uint16(1059), + 21: uint16(1060), + 22: uint16(1061), + 23: uint16(1062), + 24: uint16(1063), + 25: uint16(1064), + 26: uint16(1065), + 27: uint16(1066), + 28: uint16(1067), + 29: uint16(1068), + 30: uint16(1069), + 31: uint16(1070), + 32: uint16(1071), + 48: uint16(1072), + 49: uint16(1073), + 50: uint16(1074), + 51: uint16(1075), + 52: uint16(1076), + 53: uint16(1077), + 54: uint16(1105), + 55: uint16(1078), + 56: uint16(1079), + 57: uint16(1080), + 58: uint16(1081), + 59: uint16(1082), + 60: uint16(1083), + 61: uint16(1084), + 62: uint16(1085), + 63: uint16(1086), + 64: uint16(1087), + 65: uint16(1088), + 66: uint16(1089), + 67: uint16(1090), + 68: uint16(1091), + 69: uint16(1092), + 70: uint16(1093), + 71: uint16(1094), + 72: uint16(1095), + 73: uint16(1096), + 74: uint16(1097), + 75: uint16(1098), + 76: uint16(1099), + 77: uint16(1100), + 78: uint16(1101), + 79: uint16(1102), + 80: uint16(1103), + }, + 12: {}, + 13: {}, + 14: {}, + 15: { + 0: uint16(44032), + 1: uint16(44033), + 2: uint16(44036), + 3: uint16(44039), + 4: uint16(44040), + 5: uint16(44041), + 6: uint16(44042), + 7: uint16(44048), + 8: uint16(44049), + 9: uint16(44050), + 10: uint16(44051), + 11: uint16(44052), + 12: uint16(44053), + 13: uint16(44054), + 14: uint16(44055), + 15: uint16(44057), + 16: uint16(44058), + 17: uint16(44059), + 18: uint16(44060), + 19: uint16(44061), + 20: uint16(44064), + 21: uint16(44068), + 22: uint16(44076), + 23: uint16(44077), + 24: uint16(44079), + 25: uint16(44080), + 26: uint16(44081), + 27: uint16(44088), + 28: uint16(44089), + 29: uint16(44092), + 30: uint16(44096), + 31: uint16(44107), + 32: uint16(44109), + 33: uint16(44116), + 34: uint16(44120), + 35: uint16(44124), + 36: uint16(44144), + 37: uint16(44145), + 38: uint16(44148), + 39: uint16(44151), + 40: uint16(44152), + 41: uint16(44154), + 42: uint16(44160), + 43: uint16(44161), + 44: uint16(44163), + 45: uint16(44164), + 46: uint16(44165), + 47: uint16(44166), + 48: uint16(44169), + 49: uint16(44170), + 50: uint16(44171), + 51: uint16(44172), + 52: uint16(44176), + 53: uint16(44180), + 54: uint16(44188), + 55: uint16(44189), + 56: uint16(44191), + 57: uint16(44192), + 58: uint16(44193), + 59: uint16(44200), + 60: uint16(44201), + 61: uint16(44202), + 62: uint16(44204), + 63: uint16(44207), + 64: uint16(44208), + 65: uint16(44216), + 66: uint16(44217), + 67: uint16(44219), + 68: uint16(44220), + 69: uint16(44221), + 70: uint16(44225), + 71: uint16(44228), + 72: uint16(44232), + 73: uint16(44236), + 74: uint16(44245), + 75: uint16(44247), + 76: uint16(44256), + 77: uint16(44257), + 78: uint16(44260), + 79: uint16(44263), + 80: uint16(44264), + 81: uint16(44266), + 82: uint16(44268), + 83: uint16(44271), + 84: uint16(44272), + 85: uint16(44273), + 86: uint16(44275), + 87: uint16(44277), + 88: uint16(44278), + 89: uint16(44284), + 90: uint16(44285), + 91: uint16(44288), + 92: uint16(44292), + 93: uint16(44294), + }, + 16: { + 0: uint16(44300), + 1: uint16(44301), + 2: uint16(44303), + 3: uint16(44305), + 4: uint16(44312), + 5: uint16(44316), + 6: uint16(44320), + 7: uint16(44329), + 8: uint16(44332), + 9: uint16(44333), + 10: uint16(44340), + 11: uint16(44341), + 12: uint16(44344), + 13: uint16(44348), + 14: uint16(44356), + 15: uint16(44357), + 16: uint16(44359), + 17: uint16(44361), + 18: uint16(44368), + 19: uint16(44372), + 20: uint16(44376), + 21: uint16(44385), + 22: uint16(44387), + 23: uint16(44396), + 24: uint16(44397), + 25: uint16(44400), + 26: uint16(44403), + 27: uint16(44404), + 28: uint16(44405), + 29: uint16(44406), + 30: uint16(44411), + 31: uint16(44412), + 32: uint16(44413), + 33: uint16(44415), + 34: uint16(44417), + 35: uint16(44418), + 36: uint16(44424), + 37: uint16(44425), + 38: uint16(44428), + 39: uint16(44432), + 40: uint16(44444), + 41: uint16(44445), + 42: uint16(44452), + 43: uint16(44471), + 44: uint16(44480), + 45: uint16(44481), + 46: uint16(44484), + 47: uint16(44488), + 48: uint16(44496), + 49: uint16(44497), + 50: uint16(44499), + 51: uint16(44508), + 52: uint16(44512), + 53: uint16(44516), + 54: uint16(44536), + 55: uint16(44537), + 56: uint16(44540), + 57: uint16(44543), + 58: uint16(44544), + 59: uint16(44545), + 60: uint16(44552), + 61: uint16(44553), + 62: uint16(44555), + 63: uint16(44557), + 64: uint16(44564), + 65: uint16(44592), + 66: uint16(44593), + 67: uint16(44596), + 68: uint16(44599), + 69: uint16(44600), + 70: uint16(44602), + 71: uint16(44608), + 72: uint16(44609), + 73: uint16(44611), + 74: uint16(44613), + 75: uint16(44614), + 76: uint16(44618), + 77: uint16(44620), + 78: uint16(44621), + 79: uint16(44622), + 80: uint16(44624), + 81: uint16(44628), + 82: uint16(44630), + 83: uint16(44636), + 84: uint16(44637), + 85: uint16(44639), + 86: uint16(44640), + 87: uint16(44641), + 88: uint16(44645), + 89: uint16(44648), + 90: uint16(44649), + 91: uint16(44652), + 92: uint16(44656), + 93: uint16(44664), + }, + 17: { + 0: uint16(44665), + 1: uint16(44667), + 2: uint16(44668), + 3: uint16(44669), + 4: uint16(44676), + 5: uint16(44677), + 6: uint16(44684), + 7: uint16(44732), + 8: uint16(44733), + 9: uint16(44734), + 10: uint16(44736), + 11: uint16(44740), + 12: uint16(44748), + 13: uint16(44749), + 14: uint16(44751), + 15: uint16(44752), + 16: uint16(44753), + 17: uint16(44760), + 18: uint16(44761), + 19: uint16(44764), + 20: uint16(44776), + 21: uint16(44779), + 22: uint16(44781), + 23: uint16(44788), + 24: uint16(44792), + 25: uint16(44796), + 26: uint16(44807), + 27: uint16(44808), + 28: uint16(44813), + 29: uint16(44816), + 30: uint16(44844), + 31: uint16(44845), + 32: uint16(44848), + 33: uint16(44850), + 34: uint16(44852), + 35: uint16(44860), + 36: uint16(44861), + 37: uint16(44863), + 38: uint16(44865), + 39: uint16(44866), + 40: uint16(44867), + 41: uint16(44872), + 42: uint16(44873), + 43: uint16(44880), + 44: uint16(44892), + 45: uint16(44893), + 46: uint16(44900), + 47: uint16(44901), + 48: uint16(44921), + 49: uint16(44928), + 50: uint16(44932), + 51: uint16(44936), + 52: uint16(44944), + 53: uint16(44945), + 54: uint16(44949), + 55: uint16(44956), + 56: uint16(44984), + 57: uint16(44985), + 58: uint16(44988), + 59: uint16(44992), + 60: uint16(44999), + 61: uint16(45000), + 62: uint16(45001), + 63: uint16(45003), + 64: uint16(45005), + 65: uint16(45006), + 66: uint16(45012), + 67: uint16(45020), + 68: uint16(45032), + 69: uint16(45033), + 70: uint16(45040), + 71: uint16(45041), + 72: uint16(45044), + 73: uint16(45048), + 74: uint16(45056), + 75: uint16(45057), + 76: uint16(45060), + 77: uint16(45068), + 78: uint16(45072), + 79: uint16(45076), + 80: uint16(45084), + 81: uint16(45085), + 82: uint16(45096), + 83: uint16(45124), + 84: uint16(45125), + 85: uint16(45128), + 86: uint16(45130), + 87: uint16(45132), + 88: uint16(45134), + 89: uint16(45139), + 90: uint16(45140), + 91: uint16(45141), + 92: uint16(45143), + 93: uint16(45145), + }, + 18: { + 0: uint16(45149), + 1: uint16(45180), + 2: uint16(45181), + 3: uint16(45184), + 4: uint16(45188), + 5: uint16(45196), + 6: uint16(45197), + 7: uint16(45199), + 8: uint16(45201), + 9: uint16(45208), + 10: uint16(45209), + 11: uint16(45210), + 12: uint16(45212), + 13: uint16(45215), + 14: uint16(45216), + 15: uint16(45217), + 16: uint16(45218), + 17: uint16(45224), + 18: uint16(45225), + 19: uint16(45227), + 20: uint16(45228), + 21: uint16(45229), + 22: uint16(45230), + 23: uint16(45231), + 24: uint16(45233), + 25: uint16(45235), + 26: uint16(45236), + 27: uint16(45237), + 28: uint16(45240), + 29: uint16(45244), + 30: uint16(45252), + 31: uint16(45253), + 32: uint16(45255), + 33: uint16(45256), + 34: uint16(45257), + 35: uint16(45264), + 36: uint16(45265), + 37: uint16(45268), + 38: uint16(45272), + 39: uint16(45280), + 40: uint16(45285), + 41: uint16(45320), + 42: uint16(45321), + 43: uint16(45323), + 44: uint16(45324), + 45: uint16(45328), + 46: uint16(45330), + 47: uint16(45331), + 48: uint16(45336), + 49: uint16(45337), + 50: uint16(45339), + 51: uint16(45340), + 52: uint16(45341), + 53: uint16(45347), + 54: uint16(45348), + 55: uint16(45349), + 56: uint16(45352), + 57: uint16(45356), + 58: uint16(45364), + 59: uint16(45365), + 60: uint16(45367), + 61: uint16(45368), + 62: uint16(45369), + 63: uint16(45376), + 64: uint16(45377), + 65: uint16(45380), + 66: uint16(45384), + 67: uint16(45392), + 68: uint16(45393), + 69: uint16(45396), + 70: uint16(45397), + 71: uint16(45400), + 72: uint16(45404), + 73: uint16(45408), + 74: uint16(45432), + 75: uint16(45433), + 76: uint16(45436), + 77: uint16(45440), + 78: uint16(45442), + 79: uint16(45448), + 80: uint16(45449), + 81: uint16(45451), + 82: uint16(45453), + 83: uint16(45458), + 84: uint16(45459), + 85: uint16(45460), + 86: uint16(45464), + 87: uint16(45468), + 88: uint16(45480), + 89: uint16(45516), + 90: uint16(45520), + 91: uint16(45524), + 92: uint16(45532), + 93: uint16(45533), + }, + 19: { + 0: uint16(45535), + 1: uint16(45544), + 2: uint16(45545), + 3: uint16(45548), + 4: uint16(45552), + 5: uint16(45561), + 6: uint16(45563), + 7: uint16(45565), + 8: uint16(45572), + 9: uint16(45573), + 10: uint16(45576), + 11: uint16(45579), + 12: uint16(45580), + 13: uint16(45588), + 14: uint16(45589), + 15: uint16(45591), + 16: uint16(45593), + 17: uint16(45600), + 18: uint16(45620), + 19: uint16(45628), + 20: uint16(45656), + 21: uint16(45660), + 22: uint16(45664), + 23: uint16(45672), + 24: uint16(45673), + 25: uint16(45684), + 26: uint16(45685), + 27: uint16(45692), + 28: uint16(45700), + 29: uint16(45701), + 30: uint16(45705), + 31: uint16(45712), + 32: uint16(45713), + 33: uint16(45716), + 34: uint16(45720), + 35: uint16(45721), + 36: uint16(45722), + 37: uint16(45728), + 38: uint16(45729), + 39: uint16(45731), + 40: uint16(45733), + 41: uint16(45734), + 42: uint16(45738), + 43: uint16(45740), + 44: uint16(45744), + 45: uint16(45748), + 46: uint16(45768), + 47: uint16(45769), + 48: uint16(45772), + 49: uint16(45776), + 50: uint16(45778), + 51: uint16(45784), + 52: uint16(45785), + 53: uint16(45787), + 54: uint16(45789), + 55: uint16(45794), + 56: uint16(45796), + 57: uint16(45797), + 58: uint16(45798), + 59: uint16(45800), + 60: uint16(45803), + 61: uint16(45804), + 62: uint16(45805), + 63: uint16(45806), + 64: uint16(45807), + 65: uint16(45811), + 66: uint16(45812), + 67: uint16(45813), + 68: uint16(45815), + 69: uint16(45816), + 70: uint16(45817), + 71: uint16(45818), + 72: uint16(45819), + 73: uint16(45823), + 74: uint16(45824), + 75: uint16(45825), + 76: uint16(45828), + 77: uint16(45832), + 78: uint16(45840), + 79: uint16(45841), + 80: uint16(45843), + 81: uint16(45844), + 82: uint16(45845), + 83: uint16(45852), + 84: uint16(45908), + 85: uint16(45909), + 86: uint16(45910), + 87: uint16(45912), + 88: uint16(45915), + 89: uint16(45916), + 90: uint16(45918), + 91: uint16(45919), + 92: uint16(45924), + 93: uint16(45925), + }, + 20: { + 0: uint16(45927), + 1: uint16(45929), + 2: uint16(45931), + 3: uint16(45934), + 4: uint16(45936), + 5: uint16(45937), + 6: uint16(45940), + 7: uint16(45944), + 8: uint16(45952), + 9: uint16(45953), + 10: uint16(45955), + 11: uint16(45956), + 12: uint16(45957), + 13: uint16(45964), + 14: uint16(45968), + 15: uint16(45972), + 16: uint16(45984), + 17: uint16(45985), + 18: uint16(45992), + 19: uint16(45996), + 20: uint16(46020), + 21: uint16(46021), + 22: uint16(46024), + 23: uint16(46027), + 24: uint16(46028), + 25: uint16(46030), + 26: uint16(46032), + 27: uint16(46036), + 28: uint16(46037), + 29: uint16(46039), + 30: uint16(46041), + 31: uint16(46043), + 32: uint16(46045), + 33: uint16(46048), + 34: uint16(46052), + 35: uint16(46056), + 36: uint16(46076), + 37: uint16(46096), + 38: uint16(46104), + 39: uint16(46108), + 40: uint16(46112), + 41: uint16(46120), + 42: uint16(46121), + 43: uint16(46123), + 44: uint16(46132), + 45: uint16(46160), + 46: uint16(46161), + 47: uint16(46164), + 48: uint16(46168), + 49: uint16(46176), + 50: uint16(46177), + 51: uint16(46179), + 52: uint16(46181), + 53: uint16(46188), + 54: uint16(46208), + 55: uint16(46216), + 56: uint16(46237), + 57: uint16(46244), + 58: uint16(46248), + 59: uint16(46252), + 60: uint16(46261), + 61: uint16(46263), + 62: uint16(46265), + 63: uint16(46272), + 64: uint16(46276), + 65: uint16(46280), + 66: uint16(46288), + 67: uint16(46293), + 68: uint16(46300), + 69: uint16(46301), + 70: uint16(46304), + 71: uint16(46307), + 72: uint16(46308), + 73: uint16(46310), + 74: uint16(46316), + 75: uint16(46317), + 76: uint16(46319), + 77: uint16(46321), + 78: uint16(46328), + 79: uint16(46356), + 80: uint16(46357), + 81: uint16(46360), + 82: uint16(46363), + 83: uint16(46364), + 84: uint16(46372), + 85: uint16(46373), + 86: uint16(46375), + 87: uint16(46376), + 88: uint16(46377), + 89: uint16(46378), + 90: uint16(46384), + 91: uint16(46385), + 92: uint16(46388), + 93: uint16(46392), + }, + 21: { + 0: uint16(46400), + 1: uint16(46401), + 2: uint16(46403), + 3: uint16(46404), + 4: uint16(46405), + 5: uint16(46411), + 6: uint16(46412), + 7: uint16(46413), + 8: uint16(46416), + 9: uint16(46420), + 10: uint16(46428), + 11: uint16(46429), + 12: uint16(46431), + 13: uint16(46432), + 14: uint16(46433), + 15: uint16(46496), + 16: uint16(46497), + 17: uint16(46500), + 18: uint16(46504), + 19: uint16(46506), + 20: uint16(46507), + 21: uint16(46512), + 22: uint16(46513), + 23: uint16(46515), + 24: uint16(46516), + 25: uint16(46517), + 26: uint16(46523), + 27: uint16(46524), + 28: uint16(46525), + 29: uint16(46528), + 30: uint16(46532), + 31: uint16(46540), + 32: uint16(46541), + 33: uint16(46543), + 34: uint16(46544), + 35: uint16(46545), + 36: uint16(46552), + 37: uint16(46572), + 38: uint16(46608), + 39: uint16(46609), + 40: uint16(46612), + 41: uint16(46616), + 42: uint16(46629), + 43: uint16(46636), + 44: uint16(46644), + 45: uint16(46664), + 46: uint16(46692), + 47: uint16(46696), + 48: uint16(46748), + 49: uint16(46749), + 50: uint16(46752), + 51: uint16(46756), + 52: uint16(46763), + 53: uint16(46764), + 54: uint16(46769), + 55: uint16(46804), + 56: uint16(46832), + 57: uint16(46836), + 58: uint16(46840), + 59: uint16(46848), + 60: uint16(46849), + 61: uint16(46853), + 62: uint16(46888), + 63: uint16(46889), + 64: uint16(46892), + 65: uint16(46895), + 66: uint16(46896), + 67: uint16(46904), + 68: uint16(46905), + 69: uint16(46907), + 70: uint16(46916), + 71: uint16(46920), + 72: uint16(46924), + 73: uint16(46932), + 74: uint16(46933), + 75: uint16(46944), + 76: uint16(46948), + 77: uint16(46952), + 78: uint16(46960), + 79: uint16(46961), + 80: uint16(46963), + 81: uint16(46965), + 82: uint16(46972), + 83: uint16(46973), + 84: uint16(46976), + 85: uint16(46980), + 86: uint16(46988), + 87: uint16(46989), + 88: uint16(46991), + 89: uint16(46992), + 90: uint16(46993), + 91: uint16(46994), + 92: uint16(46998), + 93: uint16(46999), + }, + 22: { + 0: uint16(47000), + 1: uint16(47001), + 2: uint16(47004), + 3: uint16(47008), + 4: uint16(47016), + 5: uint16(47017), + 6: uint16(47019), + 7: uint16(47020), + 8: uint16(47021), + 9: uint16(47028), + 10: uint16(47029), + 11: uint16(47032), + 12: uint16(47047), + 13: uint16(47049), + 14: uint16(47084), + 15: uint16(47085), + 16: uint16(47088), + 17: uint16(47092), + 18: uint16(47100), + 19: uint16(47101), + 20: uint16(47103), + 21: uint16(47104), + 22: uint16(47105), + 23: uint16(47111), + 24: uint16(47112), + 25: uint16(47113), + 26: uint16(47116), + 27: uint16(47120), + 28: uint16(47128), + 29: uint16(47129), + 30: uint16(47131), + 31: uint16(47133), + 32: uint16(47140), + 33: uint16(47141), + 34: uint16(47144), + 35: uint16(47148), + 36: uint16(47156), + 37: uint16(47157), + 38: uint16(47159), + 39: uint16(47160), + 40: uint16(47161), + 41: uint16(47168), + 42: uint16(47172), + 43: uint16(47185), + 44: uint16(47187), + 45: uint16(47196), + 46: uint16(47197), + 47: uint16(47200), + 48: uint16(47204), + 49: uint16(47212), + 50: uint16(47213), + 51: uint16(47215), + 52: uint16(47217), + 53: uint16(47224), + 54: uint16(47228), + 55: uint16(47245), + 56: uint16(47272), + 57: uint16(47280), + 58: uint16(47284), + 59: uint16(47288), + 60: uint16(47296), + 61: uint16(47297), + 62: uint16(47299), + 63: uint16(47301), + 64: uint16(47308), + 65: uint16(47312), + 66: uint16(47316), + 67: uint16(47325), + 68: uint16(47327), + 69: uint16(47329), + 70: uint16(47336), + 71: uint16(47337), + 72: uint16(47340), + 73: uint16(47344), + 74: uint16(47352), + 75: uint16(47353), + 76: uint16(47355), + 77: uint16(47357), + 78: uint16(47364), + 79: uint16(47384), + 80: uint16(47392), + 81: uint16(47420), + 82: uint16(47421), + 83: uint16(47424), + 84: uint16(47428), + 85: uint16(47436), + 86: uint16(47439), + 87: uint16(47441), + 88: uint16(47448), + 89: uint16(47449), + 90: uint16(47452), + 91: uint16(47456), + 92: uint16(47464), + 93: uint16(47465), + }, + 23: { + 0: uint16(47467), + 1: uint16(47469), + 2: uint16(47476), + 3: uint16(47477), + 4: uint16(47480), + 5: uint16(47484), + 6: uint16(47492), + 7: uint16(47493), + 8: uint16(47495), + 9: uint16(47497), + 10: uint16(47498), + 11: uint16(47501), + 12: uint16(47502), + 13: uint16(47532), + 14: uint16(47533), + 15: uint16(47536), + 16: uint16(47540), + 17: uint16(47548), + 18: uint16(47549), + 19: uint16(47551), + 20: uint16(47553), + 21: uint16(47560), + 22: uint16(47561), + 23: uint16(47564), + 24: uint16(47566), + 25: uint16(47567), + 26: uint16(47568), + 27: uint16(47569), + 28: uint16(47570), + 29: uint16(47576), + 30: uint16(47577), + 31: uint16(47579), + 32: uint16(47581), + 33: uint16(47582), + 34: uint16(47585), + 35: uint16(47587), + 36: uint16(47588), + 37: uint16(47589), + 38: uint16(47592), + 39: uint16(47596), + 40: uint16(47604), + 41: uint16(47605), + 42: uint16(47607), + 43: uint16(47608), + 44: uint16(47609), + 45: uint16(47610), + 46: uint16(47616), + 47: uint16(47617), + 48: uint16(47624), + 49: uint16(47637), + 50: uint16(47672), + 51: uint16(47673), + 52: uint16(47676), + 53: uint16(47680), + 54: uint16(47682), + 55: uint16(47688), + 56: uint16(47689), + 57: uint16(47691), + 58: uint16(47693), + 59: uint16(47694), + 60: uint16(47699), + 61: uint16(47700), + 62: uint16(47701), + 63: uint16(47704), + 64: uint16(47708), + 65: uint16(47716), + 66: uint16(47717), + 67: uint16(47719), + 68: uint16(47720), + 69: uint16(47721), + 70: uint16(47728), + 71: uint16(47729), + 72: uint16(47732), + 73: uint16(47736), + 74: uint16(47747), + 75: uint16(47748), + 76: uint16(47749), + 77: uint16(47751), + 78: uint16(47756), + 79: uint16(47784), + 80: uint16(47785), + 81: uint16(47787), + 82: uint16(47788), + 83: uint16(47792), + 84: uint16(47794), + 85: uint16(47800), + 86: uint16(47801), + 87: uint16(47803), + 88: uint16(47805), + 89: uint16(47812), + 90: uint16(47816), + 91: uint16(47832), + 92: uint16(47833), + 93: uint16(47868), + }, + 24: { + 0: uint16(47872), + 1: uint16(47876), + 2: uint16(47885), + 3: uint16(47887), + 4: uint16(47889), + 5: uint16(47896), + 6: uint16(47900), + 7: uint16(47904), + 8: uint16(47913), + 9: uint16(47915), + 10: uint16(47924), + 11: uint16(47925), + 12: uint16(47926), + 13: uint16(47928), + 14: uint16(47931), + 15: uint16(47932), + 16: uint16(47933), + 17: uint16(47934), + 18: uint16(47940), + 19: uint16(47941), + 20: uint16(47943), + 21: uint16(47945), + 22: uint16(47949), + 23: uint16(47951), + 24: uint16(47952), + 25: uint16(47956), + 26: uint16(47960), + 27: uint16(47969), + 28: uint16(47971), + 29: uint16(47980), + 30: uint16(48008), + 31: uint16(48012), + 32: uint16(48016), + 33: uint16(48036), + 34: uint16(48040), + 35: uint16(48044), + 36: uint16(48052), + 37: uint16(48055), + 38: uint16(48064), + 39: uint16(48068), + 40: uint16(48072), + 41: uint16(48080), + 42: uint16(48083), + 43: uint16(48120), + 44: uint16(48121), + 45: uint16(48124), + 46: uint16(48127), + 47: uint16(48128), + 48: uint16(48130), + 49: uint16(48136), + 50: uint16(48137), + 51: uint16(48139), + 52: uint16(48140), + 53: uint16(48141), + 54: uint16(48143), + 55: uint16(48145), + 56: uint16(48148), + 57: uint16(48149), + 58: uint16(48150), + 59: uint16(48151), + 60: uint16(48152), + 61: uint16(48155), + 62: uint16(48156), + 63: uint16(48157), + 64: uint16(48158), + 65: uint16(48159), + 66: uint16(48164), + 67: uint16(48165), + 68: uint16(48167), + 69: uint16(48169), + 70: uint16(48173), + 71: uint16(48176), + 72: uint16(48177), + 73: uint16(48180), + 74: uint16(48184), + 75: uint16(48192), + 76: uint16(48193), + 77: uint16(48195), + 78: uint16(48196), + 79: uint16(48197), + 80: uint16(48201), + 81: uint16(48204), + 82: uint16(48205), + 83: uint16(48208), + 84: uint16(48221), + 85: uint16(48260), + 86: uint16(48261), + 87: uint16(48264), + 88: uint16(48267), + 89: uint16(48268), + 90: uint16(48270), + 91: uint16(48276), + 92: uint16(48277), + 93: uint16(48279), + }, + 25: { + 0: uint16(48281), + 1: uint16(48282), + 2: uint16(48288), + 3: uint16(48289), + 4: uint16(48292), + 5: uint16(48295), + 6: uint16(48296), + 7: uint16(48304), + 8: uint16(48305), + 9: uint16(48307), + 10: uint16(48308), + 11: uint16(48309), + 12: uint16(48316), + 13: uint16(48317), + 14: uint16(48320), + 15: uint16(48324), + 16: uint16(48333), + 17: uint16(48335), + 18: uint16(48336), + 19: uint16(48337), + 20: uint16(48341), + 21: uint16(48344), + 22: uint16(48348), + 23: uint16(48372), + 24: uint16(48373), + 25: uint16(48374), + 26: uint16(48376), + 27: uint16(48380), + 28: uint16(48388), + 29: uint16(48389), + 30: uint16(48391), + 31: uint16(48393), + 32: uint16(48400), + 33: uint16(48404), + 34: uint16(48420), + 35: uint16(48428), + 36: uint16(48448), + 37: uint16(48456), + 38: uint16(48457), + 39: uint16(48460), + 40: uint16(48464), + 41: uint16(48472), + 42: uint16(48473), + 43: uint16(48484), + 44: uint16(48488), + 45: uint16(48512), + 46: uint16(48513), + 47: uint16(48516), + 48: uint16(48519), + 49: uint16(48520), + 50: uint16(48521), + 51: uint16(48522), + 52: uint16(48528), + 53: uint16(48529), + 54: uint16(48531), + 55: uint16(48533), + 56: uint16(48537), + 57: uint16(48538), + 58: uint16(48540), + 59: uint16(48548), + 60: uint16(48560), + 61: uint16(48568), + 62: uint16(48596), + 63: uint16(48597), + 64: uint16(48600), + 65: uint16(48604), + 66: uint16(48617), + 67: uint16(48624), + 68: uint16(48628), + 69: uint16(48632), + 70: uint16(48640), + 71: uint16(48643), + 72: uint16(48645), + 73: uint16(48652), + 74: uint16(48653), + 75: uint16(48656), + 76: uint16(48660), + 77: uint16(48668), + 78: uint16(48669), + 79: uint16(48671), + 80: uint16(48708), + 81: uint16(48709), + 82: uint16(48712), + 83: uint16(48716), + 84: uint16(48718), + 85: uint16(48724), + 86: uint16(48725), + 87: uint16(48727), + 88: uint16(48729), + 89: uint16(48730), + 90: uint16(48731), + 91: uint16(48736), + 92: uint16(48737), + 93: uint16(48740), + }, + 26: { + 0: uint16(48744), + 1: uint16(48746), + 2: uint16(48752), + 3: uint16(48753), + 4: uint16(48755), + 5: uint16(48756), + 6: uint16(48757), + 7: uint16(48763), + 8: uint16(48764), + 9: uint16(48765), + 10: uint16(48768), + 11: uint16(48772), + 12: uint16(48780), + 13: uint16(48781), + 14: uint16(48783), + 15: uint16(48784), + 16: uint16(48785), + 17: uint16(48792), + 18: uint16(48793), + 19: uint16(48808), + 20: uint16(48848), + 21: uint16(48849), + 22: uint16(48852), + 23: uint16(48855), + 24: uint16(48856), + 25: uint16(48864), + 26: uint16(48867), + 27: uint16(48868), + 28: uint16(48869), + 29: uint16(48876), + 30: uint16(48897), + 31: uint16(48904), + 32: uint16(48905), + 33: uint16(48920), + 34: uint16(48921), + 35: uint16(48923), + 36: uint16(48924), + 37: uint16(48925), + 38: uint16(48960), + 39: uint16(48961), + 40: uint16(48964), + 41: uint16(48968), + 42: uint16(48976), + 43: uint16(48977), + 44: uint16(48981), + 45: uint16(49044), + 46: uint16(49072), + 47: uint16(49093), + 48: uint16(49100), + 49: uint16(49101), + 50: uint16(49104), + 51: uint16(49108), + 52: uint16(49116), + 53: uint16(49119), + 54: uint16(49121), + 55: uint16(49212), + 56: uint16(49233), + 57: uint16(49240), + 58: uint16(49244), + 59: uint16(49248), + 60: uint16(49256), + 61: uint16(49257), + 62: uint16(49296), + 63: uint16(49297), + 64: uint16(49300), + 65: uint16(49304), + 66: uint16(49312), + 67: uint16(49313), + 68: uint16(49315), + 69: uint16(49317), + 70: uint16(49324), + 71: uint16(49325), + 72: uint16(49327), + 73: uint16(49328), + 74: uint16(49331), + 75: uint16(49332), + 76: uint16(49333), + 77: uint16(49334), + 78: uint16(49340), + 79: uint16(49341), + 80: uint16(49343), + 81: uint16(49344), + 82: uint16(49345), + 83: uint16(49349), + 84: uint16(49352), + 85: uint16(49353), + 86: uint16(49356), + 87: uint16(49360), + 88: uint16(49368), + 89: uint16(49369), + 90: uint16(49371), + 91: uint16(49372), + 92: uint16(49373), + 93: uint16(49380), + }, + 27: { + 0: uint16(49381), + 1: uint16(49384), + 2: uint16(49388), + 3: uint16(49396), + 4: uint16(49397), + 5: uint16(49399), + 6: uint16(49401), + 7: uint16(49408), + 8: uint16(49412), + 9: uint16(49416), + 10: uint16(49424), + 11: uint16(49429), + 12: uint16(49436), + 13: uint16(49437), + 14: uint16(49438), + 15: uint16(49439), + 16: uint16(49440), + 17: uint16(49443), + 18: uint16(49444), + 19: uint16(49446), + 20: uint16(49447), + 21: uint16(49452), + 22: uint16(49453), + 23: uint16(49455), + 24: uint16(49456), + 25: uint16(49457), + 26: uint16(49462), + 27: uint16(49464), + 28: uint16(49465), + 29: uint16(49468), + 30: uint16(49472), + 31: uint16(49480), + 32: uint16(49481), + 33: uint16(49483), + 34: uint16(49484), + 35: uint16(49485), + 36: uint16(49492), + 37: uint16(49493), + 38: uint16(49496), + 39: uint16(49500), + 40: uint16(49508), + 41: uint16(49509), + 42: uint16(49511), + 43: uint16(49512), + 44: uint16(49513), + 45: uint16(49520), + 46: uint16(49524), + 47: uint16(49528), + 48: uint16(49541), + 49: uint16(49548), + 50: uint16(49549), + 51: uint16(49550), + 52: uint16(49552), + 53: uint16(49556), + 54: uint16(49558), + 55: uint16(49564), + 56: uint16(49565), + 57: uint16(49567), + 58: uint16(49569), + 59: uint16(49573), + 60: uint16(49576), + 61: uint16(49577), + 62: uint16(49580), + 63: uint16(49584), + 64: uint16(49597), + 65: uint16(49604), + 66: uint16(49608), + 67: uint16(49612), + 68: uint16(49620), + 69: uint16(49623), + 70: uint16(49624), + 71: uint16(49632), + 72: uint16(49636), + 73: uint16(49640), + 74: uint16(49648), + 75: uint16(49649), + 76: uint16(49651), + 77: uint16(49660), + 78: uint16(49661), + 79: uint16(49664), + 80: uint16(49668), + 81: uint16(49676), + 82: uint16(49677), + 83: uint16(49679), + 84: uint16(49681), + 85: uint16(49688), + 86: uint16(49689), + 87: uint16(49692), + 88: uint16(49695), + 89: uint16(49696), + 90: uint16(49704), + 91: uint16(49705), + 92: uint16(49707), + 93: uint16(49709), + }, + 28: { + 0: uint16(49711), + 1: uint16(49713), + 2: uint16(49714), + 3: uint16(49716), + 4: uint16(49736), + 5: uint16(49744), + 6: uint16(49745), + 7: uint16(49748), + 8: uint16(49752), + 9: uint16(49760), + 10: uint16(49765), + 11: uint16(49772), + 12: uint16(49773), + 13: uint16(49776), + 14: uint16(49780), + 15: uint16(49788), + 16: uint16(49789), + 17: uint16(49791), + 18: uint16(49793), + 19: uint16(49800), + 20: uint16(49801), + 21: uint16(49808), + 22: uint16(49816), + 23: uint16(49819), + 24: uint16(49821), + 25: uint16(49828), + 26: uint16(49829), + 27: uint16(49832), + 28: uint16(49836), + 29: uint16(49837), + 30: uint16(49844), + 31: uint16(49845), + 32: uint16(49847), + 33: uint16(49849), + 34: uint16(49884), + 35: uint16(49885), + 36: uint16(49888), + 37: uint16(49891), + 38: uint16(49892), + 39: uint16(49899), + 40: uint16(49900), + 41: uint16(49901), + 42: uint16(49903), + 43: uint16(49905), + 44: uint16(49910), + 45: uint16(49912), + 46: uint16(49913), + 47: uint16(49915), + 48: uint16(49916), + 49: uint16(49920), + 50: uint16(49928), + 51: uint16(49929), + 52: uint16(49932), + 53: uint16(49933), + 54: uint16(49939), + 55: uint16(49940), + 56: uint16(49941), + 57: uint16(49944), + 58: uint16(49948), + 59: uint16(49956), + 60: uint16(49957), + 61: uint16(49960), + 62: uint16(49961), + 63: uint16(49989), + 64: uint16(50024), + 65: uint16(50025), + 66: uint16(50028), + 67: uint16(50032), + 68: uint16(50034), + 69: uint16(50040), + 70: uint16(50041), + 71: uint16(50044), + 72: uint16(50045), + 73: uint16(50052), + 74: uint16(50056), + 75: uint16(50060), + 76: uint16(50112), + 77: uint16(50136), + 78: uint16(50137), + 79: uint16(50140), + 80: uint16(50143), + 81: uint16(50144), + 82: uint16(50146), + 83: uint16(50152), + 84: uint16(50153), + 85: uint16(50157), + 86: uint16(50164), + 87: uint16(50165), + 88: uint16(50168), + 89: uint16(50184), + 90: uint16(50192), + 91: uint16(50212), + 92: uint16(50220), + 93: uint16(50224), + }, + 29: { + 0: uint16(50228), + 1: uint16(50236), + 2: uint16(50237), + 3: uint16(50248), + 4: uint16(50276), + 5: uint16(50277), + 6: uint16(50280), + 7: uint16(50284), + 8: uint16(50292), + 9: uint16(50293), + 10: uint16(50297), + 11: uint16(50304), + 12: uint16(50324), + 13: uint16(50332), + 14: uint16(50360), + 15: uint16(50364), + 16: uint16(50409), + 17: uint16(50416), + 18: uint16(50417), + 19: uint16(50420), + 20: uint16(50424), + 21: uint16(50426), + 22: uint16(50431), + 23: uint16(50432), + 24: uint16(50433), + 25: uint16(50444), + 26: uint16(50448), + 27: uint16(50452), + 28: uint16(50460), + 29: uint16(50472), + 30: uint16(50473), + 31: uint16(50476), + 32: uint16(50480), + 33: uint16(50488), + 34: uint16(50489), + 35: uint16(50491), + 36: uint16(50493), + 37: uint16(50500), + 38: uint16(50501), + 39: uint16(50504), + 40: uint16(50505), + 41: uint16(50506), + 42: uint16(50508), + 43: uint16(50509), + 44: uint16(50510), + 45: uint16(50515), + 46: uint16(50516), + 47: uint16(50517), + 48: uint16(50519), + 49: uint16(50520), + 50: uint16(50521), + 51: uint16(50525), + 52: uint16(50526), + 53: uint16(50528), + 54: uint16(50529), + 55: uint16(50532), + 56: uint16(50536), + 57: uint16(50544), + 58: uint16(50545), + 59: uint16(50547), + 60: uint16(50548), + 61: uint16(50549), + 62: uint16(50556), + 63: uint16(50557), + 64: uint16(50560), + 65: uint16(50564), + 66: uint16(50567), + 67: uint16(50572), + 68: uint16(50573), + 69: uint16(50575), + 70: uint16(50577), + 71: uint16(50581), + 72: uint16(50583), + 73: uint16(50584), + 74: uint16(50588), + 75: uint16(50592), + 76: uint16(50601), + 77: uint16(50612), + 78: uint16(50613), + 79: uint16(50616), + 80: uint16(50617), + 81: uint16(50619), + 82: uint16(50620), + 83: uint16(50621), + 84: uint16(50622), + 85: uint16(50628), + 86: uint16(50629), + 87: uint16(50630), + 88: uint16(50631), + 89: uint16(50632), + 90: uint16(50633), + 91: uint16(50634), + 92: uint16(50636), + 93: uint16(50638), + }, + 30: { + 0: uint16(50640), + 1: uint16(50641), + 2: uint16(50644), + 3: uint16(50648), + 4: uint16(50656), + 5: uint16(50657), + 6: uint16(50659), + 7: uint16(50661), + 8: uint16(50668), + 9: uint16(50669), + 10: uint16(50670), + 11: uint16(50672), + 12: uint16(50676), + 13: uint16(50678), + 14: uint16(50679), + 15: uint16(50684), + 16: uint16(50685), + 17: uint16(50686), + 18: uint16(50687), + 19: uint16(50688), + 20: uint16(50689), + 21: uint16(50693), + 22: uint16(50694), + 23: uint16(50695), + 24: uint16(50696), + 25: uint16(50700), + 26: uint16(50704), + 27: uint16(50712), + 28: uint16(50713), + 29: uint16(50715), + 30: uint16(50716), + 31: uint16(50724), + 32: uint16(50725), + 33: uint16(50728), + 34: uint16(50732), + 35: uint16(50733), + 36: uint16(50734), + 37: uint16(50736), + 38: uint16(50739), + 39: uint16(50740), + 40: uint16(50741), + 41: uint16(50743), + 42: uint16(50745), + 43: uint16(50747), + 44: uint16(50752), + 45: uint16(50753), + 46: uint16(50756), + 47: uint16(50760), + 48: uint16(50768), + 49: uint16(50769), + 50: uint16(50771), + 51: uint16(50772), + 52: uint16(50773), + 53: uint16(50780), + 54: uint16(50781), + 55: uint16(50784), + 56: uint16(50796), + 57: uint16(50799), + 58: uint16(50801), + 59: uint16(50808), + 60: uint16(50809), + 61: uint16(50812), + 62: uint16(50816), + 63: uint16(50824), + 64: uint16(50825), + 65: uint16(50827), + 66: uint16(50829), + 67: uint16(50836), + 68: uint16(50837), + 69: uint16(50840), + 70: uint16(50844), + 71: uint16(50852), + 72: uint16(50853), + 73: uint16(50855), + 74: uint16(50857), + 75: uint16(50864), + 76: uint16(50865), + 77: uint16(50868), + 78: uint16(50872), + 79: uint16(50873), + 80: uint16(50874), + 81: uint16(50880), + 82: uint16(50881), + 83: uint16(50883), + 84: uint16(50885), + 85: uint16(50892), + 86: uint16(50893), + 87: uint16(50896), + 88: uint16(50900), + 89: uint16(50908), + 90: uint16(50909), + 91: uint16(50912), + 92: uint16(50913), + 93: uint16(50920), + }, + 31: { + 0: uint16(50921), + 1: uint16(50924), + 2: uint16(50928), + 3: uint16(50936), + 4: uint16(50937), + 5: uint16(50941), + 6: uint16(50948), + 7: uint16(50949), + 8: uint16(50952), + 9: uint16(50956), + 10: uint16(50964), + 11: uint16(50965), + 12: uint16(50967), + 13: uint16(50969), + 14: uint16(50976), + 15: uint16(50977), + 16: uint16(50980), + 17: uint16(50984), + 18: uint16(50992), + 19: uint16(50993), + 20: uint16(50995), + 21: uint16(50997), + 22: uint16(50999), + 23: uint16(51004), + 24: uint16(51005), + 25: uint16(51008), + 26: uint16(51012), + 27: uint16(51018), + 28: uint16(51020), + 29: uint16(51021), + 30: uint16(51023), + 31: uint16(51025), + 32: uint16(51026), + 33: uint16(51027), + 34: uint16(51028), + 35: uint16(51029), + 36: uint16(51030), + 37: uint16(51031), + 38: uint16(51032), + 39: uint16(51036), + 40: uint16(51040), + 41: uint16(51048), + 42: uint16(51051), + 43: uint16(51060), + 44: uint16(51061), + 45: uint16(51064), + 46: uint16(51068), + 47: uint16(51069), + 48: uint16(51070), + 49: uint16(51075), + 50: uint16(51076), + 51: uint16(51077), + 52: uint16(51079), + 53: uint16(51080), + 54: uint16(51081), + 55: uint16(51082), + 56: uint16(51086), + 57: uint16(51088), + 58: uint16(51089), + 59: uint16(51092), + 60: uint16(51094), + 61: uint16(51095), + 62: uint16(51096), + 63: uint16(51098), + 64: uint16(51104), + 65: uint16(51105), + 66: uint16(51107), + 67: uint16(51108), + 68: uint16(51109), + 69: uint16(51110), + 70: uint16(51116), + 71: uint16(51117), + 72: uint16(51120), + 73: uint16(51124), + 74: uint16(51132), + 75: uint16(51133), + 76: uint16(51135), + 77: uint16(51136), + 78: uint16(51137), + 79: uint16(51144), + 80: uint16(51145), + 81: uint16(51148), + 82: uint16(51150), + 83: uint16(51152), + 84: uint16(51160), + 85: uint16(51165), + 86: uint16(51172), + 87: uint16(51176), + 88: uint16(51180), + 89: uint16(51200), + 90: uint16(51201), + 91: uint16(51204), + 92: uint16(51208), + 93: uint16(51210), + }, + 32: { + 0: uint16(51216), + 1: uint16(51217), + 2: uint16(51219), + 3: uint16(51221), + 4: uint16(51222), + 5: uint16(51228), + 6: uint16(51229), + 7: uint16(51232), + 8: uint16(51236), + 9: uint16(51244), + 10: uint16(51245), + 11: uint16(51247), + 12: uint16(51249), + 13: uint16(51256), + 14: uint16(51260), + 15: uint16(51264), + 16: uint16(51272), + 17: uint16(51273), + 18: uint16(51276), + 19: uint16(51277), + 20: uint16(51284), + 21: uint16(51312), + 22: uint16(51313), + 23: uint16(51316), + 24: uint16(51320), + 25: uint16(51322), + 26: uint16(51328), + 27: uint16(51329), + 28: uint16(51331), + 29: uint16(51333), + 30: uint16(51334), + 31: uint16(51335), + 32: uint16(51339), + 33: uint16(51340), + 34: uint16(51341), + 35: uint16(51348), + 36: uint16(51357), + 37: uint16(51359), + 38: uint16(51361), + 39: uint16(51368), + 40: uint16(51388), + 41: uint16(51389), + 42: uint16(51396), + 43: uint16(51400), + 44: uint16(51404), + 45: uint16(51412), + 46: uint16(51413), + 47: uint16(51415), + 48: uint16(51417), + 49: uint16(51424), + 50: uint16(51425), + 51: uint16(51428), + 52: uint16(51445), + 53: uint16(51452), + 54: uint16(51453), + 55: uint16(51456), + 56: uint16(51460), + 57: uint16(51461), + 58: uint16(51462), + 59: uint16(51468), + 60: uint16(51469), + 61: uint16(51471), + 62: uint16(51473), + 63: uint16(51480), + 64: uint16(51500), + 65: uint16(51508), + 66: uint16(51536), + 67: uint16(51537), + 68: uint16(51540), + 69: uint16(51544), + 70: uint16(51552), + 71: uint16(51553), + 72: uint16(51555), + 73: uint16(51564), + 74: uint16(51568), + 75: uint16(51572), + 76: uint16(51580), + 77: uint16(51592), + 78: uint16(51593), + 79: uint16(51596), + 80: uint16(51600), + 81: uint16(51608), + 82: uint16(51609), + 83: uint16(51611), + 84: uint16(51613), + 85: uint16(51648), + 86: uint16(51649), + 87: uint16(51652), + 88: uint16(51655), + 89: uint16(51656), + 90: uint16(51658), + 91: uint16(51664), + 92: uint16(51665), + 93: uint16(51667), + }, + 33: { + 0: uint16(51669), + 1: uint16(51670), + 2: uint16(51673), + 3: uint16(51674), + 4: uint16(51676), + 5: uint16(51677), + 6: uint16(51680), + 7: uint16(51682), + 8: uint16(51684), + 9: uint16(51687), + 10: uint16(51692), + 11: uint16(51693), + 12: uint16(51695), + 13: uint16(51696), + 14: uint16(51697), + 15: uint16(51704), + 16: uint16(51705), + 17: uint16(51708), + 18: uint16(51712), + 19: uint16(51720), + 20: uint16(51721), + 21: uint16(51723), + 22: uint16(51724), + 23: uint16(51725), + 24: uint16(51732), + 25: uint16(51736), + 26: uint16(51753), + 27: uint16(51788), + 28: uint16(51789), + 29: uint16(51792), + 30: uint16(51796), + 31: uint16(51804), + 32: uint16(51805), + 33: uint16(51807), + 34: uint16(51808), + 35: uint16(51809), + 36: uint16(51816), + 37: uint16(51837), + 38: uint16(51844), + 39: uint16(51864), + 40: uint16(51900), + 41: uint16(51901), + 42: uint16(51904), + 43: uint16(51908), + 44: uint16(51916), + 45: uint16(51917), + 46: uint16(51919), + 47: uint16(51921), + 48: uint16(51923), + 49: uint16(51928), + 50: uint16(51929), + 51: uint16(51936), + 52: uint16(51948), + 53: uint16(51956), + 54: uint16(51976), + 55: uint16(51984), + 56: uint16(51988), + 57: uint16(51992), + 58: uint16(52000), + 59: uint16(52001), + 60: uint16(52033), + 61: uint16(52040), + 62: uint16(52041), + 63: uint16(52044), + 64: uint16(52048), + 65: uint16(52056), + 66: uint16(52057), + 67: uint16(52061), + 68: uint16(52068), + 69: uint16(52088), + 70: uint16(52089), + 71: uint16(52124), + 72: uint16(52152), + 73: uint16(52180), + 74: uint16(52196), + 75: uint16(52199), + 76: uint16(52201), + 77: uint16(52236), + 78: uint16(52237), + 79: uint16(52240), + 80: uint16(52244), + 81: uint16(52252), + 82: uint16(52253), + 83: uint16(52257), + 84: uint16(52258), + 85: uint16(52263), + 86: uint16(52264), + 87: uint16(52265), + 88: uint16(52268), + 89: uint16(52270), + 90: uint16(52272), + 91: uint16(52280), + 92: uint16(52281), + 93: uint16(52283), + }, + 34: { + 0: uint16(52284), + 1: uint16(52285), + 2: uint16(52286), + 3: uint16(52292), + 4: uint16(52293), + 5: uint16(52296), + 6: uint16(52300), + 7: uint16(52308), + 8: uint16(52309), + 9: uint16(52311), + 10: uint16(52312), + 11: uint16(52313), + 12: uint16(52320), + 13: uint16(52324), + 14: uint16(52326), + 15: uint16(52328), + 16: uint16(52336), + 17: uint16(52341), + 18: uint16(52376), + 19: uint16(52377), + 20: uint16(52380), + 21: uint16(52384), + 22: uint16(52392), + 23: uint16(52393), + 24: uint16(52395), + 25: uint16(52396), + 26: uint16(52397), + 27: uint16(52404), + 28: uint16(52405), + 29: uint16(52408), + 30: uint16(52412), + 31: uint16(52420), + 32: uint16(52421), + 33: uint16(52423), + 34: uint16(52425), + 35: uint16(52432), + 36: uint16(52436), + 37: uint16(52452), + 38: uint16(52460), + 39: uint16(52464), + 40: uint16(52481), + 41: uint16(52488), + 42: uint16(52489), + 43: uint16(52492), + 44: uint16(52496), + 45: uint16(52504), + 46: uint16(52505), + 47: uint16(52507), + 48: uint16(52509), + 49: uint16(52516), + 50: uint16(52520), + 51: uint16(52524), + 52: uint16(52537), + 53: uint16(52572), + 54: uint16(52576), + 55: uint16(52580), + 56: uint16(52588), + 57: uint16(52589), + 58: uint16(52591), + 59: uint16(52593), + 60: uint16(52600), + 61: uint16(52616), + 62: uint16(52628), + 63: uint16(52629), + 64: uint16(52632), + 65: uint16(52636), + 66: uint16(52644), + 67: uint16(52645), + 68: uint16(52647), + 69: uint16(52649), + 70: uint16(52656), + 71: uint16(52676), + 72: uint16(52684), + 73: uint16(52688), + 74: uint16(52712), + 75: uint16(52716), + 76: uint16(52720), + 77: uint16(52728), + 78: uint16(52729), + 79: uint16(52731), + 80: uint16(52733), + 81: uint16(52740), + 82: uint16(52744), + 83: uint16(52748), + 84: uint16(52756), + 85: uint16(52761), + 86: uint16(52768), + 87: uint16(52769), + 88: uint16(52772), + 89: uint16(52776), + 90: uint16(52784), + 91: uint16(52785), + 92: uint16(52787), + 93: uint16(52789), + }, + 35: { + 0: uint16(52824), + 1: uint16(52825), + 2: uint16(52828), + 3: uint16(52831), + 4: uint16(52832), + 5: uint16(52833), + 6: uint16(52840), + 7: uint16(52841), + 8: uint16(52843), + 9: uint16(52845), + 10: uint16(52852), + 11: uint16(52853), + 12: uint16(52856), + 13: uint16(52860), + 14: uint16(52868), + 15: uint16(52869), + 16: uint16(52871), + 17: uint16(52873), + 18: uint16(52880), + 19: uint16(52881), + 20: uint16(52884), + 21: uint16(52888), + 22: uint16(52896), + 23: uint16(52897), + 24: uint16(52899), + 25: uint16(52900), + 26: uint16(52901), + 27: uint16(52908), + 28: uint16(52909), + 29: uint16(52929), + 30: uint16(52964), + 31: uint16(52965), + 32: uint16(52968), + 33: uint16(52971), + 34: uint16(52972), + 35: uint16(52980), + 36: uint16(52981), + 37: uint16(52983), + 38: uint16(52984), + 39: uint16(52985), + 40: uint16(52992), + 41: uint16(52993), + 42: uint16(52996), + 43: uint16(53000), + 44: uint16(53008), + 45: uint16(53009), + 46: uint16(53011), + 47: uint16(53013), + 48: uint16(53020), + 49: uint16(53024), + 50: uint16(53028), + 51: uint16(53036), + 52: uint16(53037), + 53: uint16(53039), + 54: uint16(53040), + 55: uint16(53041), + 56: uint16(53048), + 57: uint16(53076), + 58: uint16(53077), + 59: uint16(53080), + 60: uint16(53084), + 61: uint16(53092), + 62: uint16(53093), + 63: uint16(53095), + 64: uint16(53097), + 65: uint16(53104), + 66: uint16(53105), + 67: uint16(53108), + 68: uint16(53112), + 69: uint16(53120), + 70: uint16(53125), + 71: uint16(53132), + 72: uint16(53153), + 73: uint16(53160), + 74: uint16(53168), + 75: uint16(53188), + 76: uint16(53216), + 77: uint16(53217), + 78: uint16(53220), + 79: uint16(53224), + 80: uint16(53232), + 81: uint16(53233), + 82: uint16(53235), + 83: uint16(53237), + 84: uint16(53244), + 85: uint16(53248), + 86: uint16(53252), + 87: uint16(53265), + 88: uint16(53272), + 89: uint16(53293), + 90: uint16(53300), + 91: uint16(53301), + 92: uint16(53304), + 93: uint16(53308), + }, + 36: { + 0: uint16(53316), + 1: uint16(53317), + 2: uint16(53319), + 3: uint16(53321), + 4: uint16(53328), + 5: uint16(53332), + 6: uint16(53336), + 7: uint16(53344), + 8: uint16(53356), + 9: uint16(53357), + 10: uint16(53360), + 11: uint16(53364), + 12: uint16(53372), + 13: uint16(53373), + 14: uint16(53377), + 15: uint16(53412), + 16: uint16(53413), + 17: uint16(53416), + 18: uint16(53420), + 19: uint16(53428), + 20: uint16(53429), + 21: uint16(53431), + 22: uint16(53433), + 23: uint16(53440), + 24: uint16(53441), + 25: uint16(53444), + 26: uint16(53448), + 27: uint16(53449), + 28: uint16(53456), + 29: uint16(53457), + 30: uint16(53459), + 31: uint16(53460), + 32: uint16(53461), + 33: uint16(53468), + 34: uint16(53469), + 35: uint16(53472), + 36: uint16(53476), + 37: uint16(53484), + 38: uint16(53485), + 39: uint16(53487), + 40: uint16(53488), + 41: uint16(53489), + 42: uint16(53496), + 43: uint16(53517), + 44: uint16(53552), + 45: uint16(53553), + 46: uint16(53556), + 47: uint16(53560), + 48: uint16(53562), + 49: uint16(53568), + 50: uint16(53569), + 51: uint16(53571), + 52: uint16(53572), + 53: uint16(53573), + 54: uint16(53580), + 55: uint16(53581), + 56: uint16(53584), + 57: uint16(53588), + 58: uint16(53596), + 59: uint16(53597), + 60: uint16(53599), + 61: uint16(53601), + 62: uint16(53608), + 63: uint16(53612), + 64: uint16(53628), + 65: uint16(53636), + 66: uint16(53640), + 67: uint16(53664), + 68: uint16(53665), + 69: uint16(53668), + 70: uint16(53672), + 71: uint16(53680), + 72: uint16(53681), + 73: uint16(53683), + 74: uint16(53685), + 75: uint16(53690), + 76: uint16(53692), + 77: uint16(53696), + 78: uint16(53720), + 79: uint16(53748), + 80: uint16(53752), + 81: uint16(53767), + 82: uint16(53769), + 83: uint16(53776), + 84: uint16(53804), + 85: uint16(53805), + 86: uint16(53808), + 87: uint16(53812), + 88: uint16(53820), + 89: uint16(53821), + 90: uint16(53823), + 91: uint16(53825), + 92: uint16(53832), + 93: uint16(53852), + }, + 37: { + 0: uint16(53860), + 1: uint16(53888), + 2: uint16(53889), + 3: uint16(53892), + 4: uint16(53896), + 5: uint16(53904), + 6: uint16(53905), + 7: uint16(53909), + 8: uint16(53916), + 9: uint16(53920), + 10: uint16(53924), + 11: uint16(53932), + 12: uint16(53937), + 13: uint16(53944), + 14: uint16(53945), + 15: uint16(53948), + 16: uint16(53951), + 17: uint16(53952), + 18: uint16(53954), + 19: uint16(53960), + 20: uint16(53961), + 21: uint16(53963), + 22: uint16(53972), + 23: uint16(53976), + 24: uint16(53980), + 25: uint16(53988), + 26: uint16(53989), + 27: uint16(54000), + 28: uint16(54001), + 29: uint16(54004), + 30: uint16(54008), + 31: uint16(54016), + 32: uint16(54017), + 33: uint16(54019), + 34: uint16(54021), + 35: uint16(54028), + 36: uint16(54029), + 37: uint16(54030), + 38: uint16(54032), + 39: uint16(54036), + 40: uint16(54038), + 41: uint16(54044), + 42: uint16(54045), + 43: uint16(54047), + 44: uint16(54048), + 45: uint16(54049), + 46: uint16(54053), + 47: uint16(54056), + 48: uint16(54057), + 49: uint16(54060), + 50: uint16(54064), + 51: uint16(54072), + 52: uint16(54073), + 53: uint16(54075), + 54: uint16(54076), + 55: uint16(54077), + 56: uint16(54084), + 57: uint16(54085), + 58: uint16(54140), + 59: uint16(54141), + 60: uint16(54144), + 61: uint16(54148), + 62: uint16(54156), + 63: uint16(54157), + 64: uint16(54159), + 65: uint16(54160), + 66: uint16(54161), + 67: uint16(54168), + 68: uint16(54169), + 69: uint16(54172), + 70: uint16(54176), + 71: uint16(54184), + 72: uint16(54185), + 73: uint16(54187), + 74: uint16(54189), + 75: uint16(54196), + 76: uint16(54200), + 77: uint16(54204), + 78: uint16(54212), + 79: uint16(54213), + 80: uint16(54216), + 81: uint16(54217), + 82: uint16(54224), + 83: uint16(54232), + 84: uint16(54241), + 85: uint16(54243), + 86: uint16(54252), + 87: uint16(54253), + 88: uint16(54256), + 89: uint16(54260), + 90: uint16(54268), + 91: uint16(54269), + 92: uint16(54271), + 93: uint16(54273), + }, + 38: { + 0: uint16(54280), + 1: uint16(54301), + 2: uint16(54336), + 3: uint16(54340), + 4: uint16(54364), + 5: uint16(54368), + 6: uint16(54372), + 7: uint16(54381), + 8: uint16(54383), + 9: uint16(54392), + 10: uint16(54393), + 11: uint16(54396), + 12: uint16(54399), + 13: uint16(54400), + 14: uint16(54402), + 15: uint16(54408), + 16: uint16(54409), + 17: uint16(54411), + 18: uint16(54413), + 19: uint16(54420), + 20: uint16(54441), + 21: uint16(54476), + 22: uint16(54480), + 23: uint16(54484), + 24: uint16(54492), + 25: uint16(54495), + 26: uint16(54504), + 27: uint16(54508), + 28: uint16(54512), + 29: uint16(54520), + 30: uint16(54523), + 31: uint16(54525), + 32: uint16(54532), + 33: uint16(54536), + 34: uint16(54540), + 35: uint16(54548), + 36: uint16(54549), + 37: uint16(54551), + 38: uint16(54588), + 39: uint16(54589), + 40: uint16(54592), + 41: uint16(54596), + 42: uint16(54604), + 43: uint16(54605), + 44: uint16(54607), + 45: uint16(54609), + 46: uint16(54616), + 47: uint16(54617), + 48: uint16(54620), + 49: uint16(54624), + 50: uint16(54629), + 51: uint16(54632), + 52: uint16(54633), + 53: uint16(54635), + 54: uint16(54637), + 55: uint16(54644), + 56: uint16(54645), + 57: uint16(54648), + 58: uint16(54652), + 59: uint16(54660), + 60: uint16(54661), + 61: uint16(54663), + 62: uint16(54664), + 63: uint16(54665), + 64: uint16(54672), + 65: uint16(54693), + 66: uint16(54728), + 67: uint16(54729), + 68: uint16(54732), + 69: uint16(54736), + 70: uint16(54738), + 71: uint16(54744), + 72: uint16(54745), + 73: uint16(54747), + 74: uint16(54749), + 75: uint16(54756), + 76: uint16(54757), + 77: uint16(54760), + 78: uint16(54764), + 79: uint16(54772), + 80: uint16(54773), + 81: uint16(54775), + 82: uint16(54777), + 83: uint16(54784), + 84: uint16(54785), + 85: uint16(54788), + 86: uint16(54792), + 87: uint16(54800), + 88: uint16(54801), + 89: uint16(54803), + 90: uint16(54804), + 91: uint16(54805), + 92: uint16(54812), + 93: uint16(54816), + }, + 39: { + 0: uint16(54820), + 1: uint16(54829), + 2: uint16(54840), + 3: uint16(54841), + 4: uint16(54844), + 5: uint16(54848), + 6: uint16(54853), + 7: uint16(54856), + 8: uint16(54857), + 9: uint16(54859), + 10: uint16(54861), + 11: uint16(54865), + 12: uint16(54868), + 13: uint16(54869), + 14: uint16(54872), + 15: uint16(54876), + 16: uint16(54887), + 17: uint16(54889), + 18: uint16(54896), + 19: uint16(54897), + 20: uint16(54900), + 21: uint16(54915), + 22: uint16(54917), + 23: uint16(54924), + 24: uint16(54925), + 25: uint16(54928), + 26: uint16(54932), + 27: uint16(54941), + 28: uint16(54943), + 29: uint16(54945), + 30: uint16(54952), + 31: uint16(54956), + 32: uint16(54960), + 33: uint16(54969), + 34: uint16(54971), + 35: uint16(54980), + 36: uint16(54981), + 37: uint16(54984), + 38: uint16(54988), + 39: uint16(54993), + 40: uint16(54996), + 41: uint16(54999), + 42: uint16(55001), + 43: uint16(55008), + 44: uint16(55012), + 45: uint16(55016), + 46: uint16(55024), + 47: uint16(55029), + 48: uint16(55036), + 49: uint16(55037), + 50: uint16(55040), + 51: uint16(55044), + 52: uint16(55057), + 53: uint16(55064), + 54: uint16(55065), + 55: uint16(55068), + 56: uint16(55072), + 57: uint16(55080), + 58: uint16(55081), + 59: uint16(55083), + 60: uint16(55085), + 61: uint16(55092), + 62: uint16(55093), + 63: uint16(55096), + 64: uint16(55100), + 65: uint16(55108), + 66: uint16(55111), + 67: uint16(55113), + 68: uint16(55120), + 69: uint16(55121), + 70: uint16(55124), + 71: uint16(55126), + 72: uint16(55127), + 73: uint16(55128), + 74: uint16(55129), + 75: uint16(55136), + 76: uint16(55137), + 77: uint16(55139), + 78: uint16(55141), + 79: uint16(55145), + 80: uint16(55148), + 81: uint16(55152), + 82: uint16(55156), + 83: uint16(55164), + 84: uint16(55165), + 85: uint16(55169), + 86: uint16(55176), + 87: uint16(55177), + 88: uint16(55180), + 89: uint16(55184), + 90: uint16(55192), + 91: uint16(55193), + 92: uint16(55195), + 93: uint16(55197), + }, + 40: {}, + 41: { + 0: uint16(20285), + 1: uint16(20339), + 2: uint16(20551), + 3: uint16(20729), + 4: uint16(21152), + 5: uint16(21487), + 6: uint16(21621), + 7: uint16(21733), + 8: uint16(22025), + 9: uint16(23233), + 10: uint16(23478), + 11: uint16(26247), + 12: uint16(26550), + 13: uint16(26551), + 14: uint16(26607), + 15: uint16(27468), + 16: uint16(29634), + 17: uint16(30146), + 18: uint16(31292), + 19: uint16(33499), + 20: uint16(33540), + 21: uint16(34903), + 22: uint16(34952), + 23: uint16(35382), + 24: uint16(36040), + 25: uint16(36303), + 26: uint16(36603), + 27: uint16(36838), + 28: uint16(39381), + 29: uint16(21051), + 30: uint16(21364), + 31: uint16(21508), + 32: uint16(24682), + 33: uint16(24932), + 34: uint16(27580), + 35: uint16(29647), + 36: uint16(33050), + 37: uint16(35258), + 38: uint16(35282), + 39: uint16(38307), + 40: uint16(20355), + 41: uint16(21002), + 42: uint16(22718), + 43: uint16(22904), + 44: uint16(23014), + 45: uint16(24178), + 46: uint16(24185), + 47: uint16(25031), + 48: uint16(25536), + 49: uint16(26438), + 50: uint16(26604), + 51: uint16(26751), + 52: uint16(28567), + 53: uint16(30286), + 54: uint16(30475), + 55: uint16(30965), + 56: uint16(31240), + 57: uint16(31487), + 58: uint16(31777), + 59: uint16(32925), + 60: uint16(33390), + 61: uint16(33393), + 62: uint16(35563), + 63: uint16(38291), + 64: uint16(20075), + 65: uint16(21917), + 66: uint16(26359), + 67: uint16(28212), + 68: uint16(30883), + 69: uint16(31469), + 70: uint16(33883), + 71: uint16(35088), + 72: uint16(34638), + 73: uint16(38824), + 74: uint16(21208), + 75: uint16(22350), + 76: uint16(22570), + 77: uint16(23884), + 78: uint16(24863), + 79: uint16(25022), + 80: uint16(25121), + 81: uint16(25954), + 82: uint16(26577), + 83: uint16(27204), + 84: uint16(28187), + 85: uint16(29976), + 86: uint16(30131), + 87: uint16(30435), + 88: uint16(30640), + 89: uint16(32058), + 90: uint16(37039), + 91: uint16(37969), + 92: uint16(37970), + 93: uint16(40853), + }, + 42: { + 0: uint16(21283), + 1: uint16(23724), + 2: uint16(30002), + 3: uint16(32987), + 4: uint16(37440), + 5: uint16(38296), + 6: uint16(21083), + 7: uint16(22536), + 8: uint16(23004), + 9: uint16(23713), + 10: uint16(23831), + 11: uint16(24247), + 12: uint16(24378), + 13: uint16(24394), + 14: uint16(24951), + 15: uint16(27743), + 16: uint16(30074), + 17: uint16(30086), + 18: uint16(31968), + 19: uint16(32115), + 20: uint16(32177), + 21: uint16(32652), + 22: uint16(33108), + 23: uint16(33313), + 24: uint16(34193), + 25: uint16(35137), + 26: uint16(35611), + 27: uint16(37628), + 28: uint16(38477), + 29: uint16(40007), + 30: uint16(20171), + 31: uint16(20215), + 32: uint16(20491), + 33: uint16(20977), + 34: uint16(22607), + 35: uint16(24887), + 36: uint16(24894), + 37: uint16(24936), + 38: uint16(25913), + 39: uint16(27114), + 40: uint16(28433), + 41: uint16(30117), + 42: uint16(30342), + 43: uint16(30422), + 44: uint16(31623), + 45: uint16(33445), + 46: uint16(33995), + 47: uint16(63744), + 48: uint16(37799), + 49: uint16(38283), + 50: uint16(21888), + 51: uint16(23458), + 52: uint16(22353), + 53: uint16(63745), + 54: uint16(31923), + 55: uint16(32697), + 56: uint16(37301), + 57: uint16(20520), + 58: uint16(21435), + 59: uint16(23621), + 60: uint16(24040), + 61: uint16(25298), + 62: uint16(25454), + 63: uint16(25818), + 64: uint16(25831), + 65: uint16(28192), + 66: uint16(28844), + 67: uint16(31067), + 68: uint16(36317), + 69: uint16(36382), + 70: uint16(63746), + 71: uint16(36989), + 72: uint16(37445), + 73: uint16(37624), + 74: uint16(20094), + 75: uint16(20214), + 76: uint16(20581), + 77: uint16(24062), + 78: uint16(24314), + 79: uint16(24838), + 80: uint16(26967), + 81: uint16(33137), + 82: uint16(34388), + 83: uint16(36423), + 84: uint16(37749), + 85: uint16(39467), + 86: uint16(20062), + 87: uint16(20625), + 88: uint16(26480), + 89: uint16(26688), + 90: uint16(20745), + 91: uint16(21133), + 92: uint16(21138), + 93: uint16(27298), + }, + 43: { + 0: uint16(30652), + 1: uint16(37392), + 2: uint16(40660), + 3: uint16(21163), + 4: uint16(24623), + 5: uint16(36850), + 6: uint16(20552), + 7: uint16(25001), + 8: uint16(25581), + 9: uint16(25802), + 10: uint16(26684), + 11: uint16(27268), + 12: uint16(28608), + 13: uint16(33160), + 14: uint16(35233), + 15: uint16(38548), + 16: uint16(22533), + 17: uint16(29309), + 18: uint16(29356), + 19: uint16(29956), + 20: uint16(32121), + 21: uint16(32365), + 22: uint16(32937), + 23: uint16(35211), + 24: uint16(35700), + 25: uint16(36963), + 26: uint16(40273), + 27: uint16(25225), + 28: uint16(27770), + 29: uint16(28500), + 30: uint16(32080), + 31: uint16(32570), + 32: uint16(35363), + 33: uint16(20860), + 34: uint16(24906), + 35: uint16(31645), + 36: uint16(35609), + 37: uint16(37463), + 38: uint16(37772), + 39: uint16(20140), + 40: uint16(20435), + 41: uint16(20510), + 42: uint16(20670), + 43: uint16(20742), + 44: uint16(21185), + 45: uint16(21197), + 46: uint16(21375), + 47: uint16(22384), + 48: uint16(22659), + 49: uint16(24218), + 50: uint16(24465), + 51: uint16(24950), + 52: uint16(25004), + 53: uint16(25806), + 54: uint16(25964), + 55: uint16(26223), + 56: uint16(26299), + 57: uint16(26356), + 58: uint16(26775), + 59: uint16(28039), + 60: uint16(28805), + 61: uint16(28913), + 62: uint16(29855), + 63: uint16(29861), + 64: uint16(29898), + 65: uint16(30169), + 66: uint16(30828), + 67: uint16(30956), + 68: uint16(31455), + 69: uint16(31478), + 70: uint16(32069), + 71: uint16(32147), + 72: uint16(32789), + 73: uint16(32831), + 74: uint16(33051), + 75: uint16(33686), + 76: uint16(35686), + 77: uint16(36629), + 78: uint16(36885), + 79: uint16(37857), + 80: uint16(38915), + 81: uint16(38968), + 82: uint16(39514), + 83: uint16(39912), + 84: uint16(20418), + 85: uint16(21843), + 86: uint16(22586), + 87: uint16(22865), + 88: uint16(23395), + 89: uint16(23622), + 90: uint16(24760), + 91: uint16(25106), + 92: uint16(26690), + 93: uint16(26800), + }, + 44: { + 0: uint16(26856), + 1: uint16(28330), + 2: uint16(30028), + 3: uint16(30328), + 4: uint16(30926), + 5: uint16(31293), + 6: uint16(31995), + 7: uint16(32363), + 8: uint16(32380), + 9: uint16(35336), + 10: uint16(35489), + 11: uint16(35903), + 12: uint16(38542), + 13: uint16(40388), + 14: uint16(21476), + 15: uint16(21481), + 16: uint16(21578), + 17: uint16(21617), + 18: uint16(22266), + 19: uint16(22993), + 20: uint16(23396), + 21: uint16(23611), + 22: uint16(24235), + 23: uint16(25335), + 24: uint16(25911), + 25: uint16(25925), + 26: uint16(25970), + 27: uint16(26272), + 28: uint16(26543), + 29: uint16(27073), + 30: uint16(27837), + 31: uint16(30204), + 32: uint16(30352), + 33: uint16(30590), + 34: uint16(31295), + 35: uint16(32660), + 36: uint16(32771), + 37: uint16(32929), + 38: uint16(33167), + 39: uint16(33510), + 40: uint16(33533), + 41: uint16(33776), + 42: uint16(34241), + 43: uint16(34865), + 44: uint16(34996), + 45: uint16(35493), + 46: uint16(63747), + 47: uint16(36764), + 48: uint16(37678), + 49: uint16(38599), + 50: uint16(39015), + 51: uint16(39640), + 52: uint16(40723), + 53: uint16(21741), + 54: uint16(26011), + 55: uint16(26354), + 56: uint16(26767), + 57: uint16(31296), + 58: uint16(35895), + 59: uint16(40288), + 60: uint16(22256), + 61: uint16(22372), + 62: uint16(23825), + 63: uint16(26118), + 64: uint16(26801), + 65: uint16(26829), + 66: uint16(28414), + 67: uint16(29736), + 68: uint16(34974), + 69: uint16(39908), + 70: uint16(27752), + 71: uint16(63748), + 72: uint16(39592), + 73: uint16(20379), + 74: uint16(20844), + 75: uint16(20849), + 76: uint16(21151), + 77: uint16(23380), + 78: uint16(24037), + 79: uint16(24656), + 80: uint16(24685), + 81: uint16(25329), + 82: uint16(25511), + 83: uint16(25915), + 84: uint16(29657), + 85: uint16(31354), + 86: uint16(34467), + 87: uint16(36002), + 88: uint16(38799), + 89: uint16(20018), + 90: uint16(23521), + 91: uint16(25096), + 92: uint16(26524), + 93: uint16(29916), + }, + 45: { + 0: uint16(31185), + 1: uint16(33747), + 2: uint16(35463), + 3: uint16(35506), + 4: uint16(36328), + 5: uint16(36942), + 6: uint16(37707), + 7: uint16(38982), + 8: uint16(24275), + 9: uint16(27112), + 10: uint16(34303), + 11: uint16(37101), + 12: uint16(63749), + 13: uint16(20896), + 14: uint16(23448), + 15: uint16(23532), + 16: uint16(24931), + 17: uint16(26874), + 18: uint16(27454), + 19: uint16(28748), + 20: uint16(29743), + 21: uint16(29912), + 22: uint16(31649), + 23: uint16(32592), + 24: uint16(33733), + 25: uint16(35264), + 26: uint16(36011), + 27: uint16(38364), + 28: uint16(39208), + 29: uint16(21038), + 30: uint16(24669), + 31: uint16(25324), + 32: uint16(36866), + 33: uint16(20362), + 34: uint16(20809), + 35: uint16(21281), + 36: uint16(22745), + 37: uint16(24291), + 38: uint16(26336), + 39: uint16(27960), + 40: uint16(28826), + 41: uint16(29378), + 42: uint16(29654), + 43: uint16(31568), + 44: uint16(33009), + 45: uint16(37979), + 46: uint16(21350), + 47: uint16(25499), + 48: uint16(32619), + 49: uint16(20054), + 50: uint16(20608), + 51: uint16(22602), + 52: uint16(22750), + 53: uint16(24618), + 54: uint16(24871), + 55: uint16(25296), + 56: uint16(27088), + 57: uint16(39745), + 58: uint16(23439), + 59: uint16(32024), + 60: uint16(32945), + 61: uint16(36703), + 62: uint16(20132), + 63: uint16(20689), + 64: uint16(21676), + 65: uint16(21932), + 66: uint16(23308), + 67: uint16(23968), + 68: uint16(24039), + 69: uint16(25898), + 70: uint16(25934), + 71: uint16(26657), + 72: uint16(27211), + 73: uint16(29409), + 74: uint16(30350), + 75: uint16(30703), + 76: uint16(32094), + 77: uint16(32761), + 78: uint16(33184), + 79: uint16(34126), + 80: uint16(34527), + 81: uint16(36611), + 82: uint16(36686), + 83: uint16(37066), + 84: uint16(39171), + 85: uint16(39509), + 86: uint16(39851), + 87: uint16(19992), + 88: uint16(20037), + 89: uint16(20061), + 90: uint16(20167), + 91: uint16(20465), + 92: uint16(20855), + 93: uint16(21246), + }, + 46: { + 0: uint16(21312), + 1: uint16(21475), + 2: uint16(21477), + 3: uint16(21646), + 4: uint16(22036), + 5: uint16(22389), + 6: uint16(22434), + 7: uint16(23495), + 8: uint16(23943), + 9: uint16(24272), + 10: uint16(25084), + 11: uint16(25304), + 12: uint16(25937), + 13: uint16(26552), + 14: uint16(26601), + 15: uint16(27083), + 16: uint16(27472), + 17: uint16(27590), + 18: uint16(27628), + 19: uint16(27714), + 20: uint16(28317), + 21: uint16(28792), + 22: uint16(29399), + 23: uint16(29590), + 24: uint16(29699), + 25: uint16(30655), + 26: uint16(30697), + 27: uint16(31350), + 28: uint16(32127), + 29: uint16(32777), + 30: uint16(33276), + 31: uint16(33285), + 32: uint16(33290), + 33: uint16(33503), + 34: uint16(34914), + 35: uint16(35635), + 36: uint16(36092), + 37: uint16(36544), + 38: uint16(36881), + 39: uint16(37041), + 40: uint16(37476), + 41: uint16(37558), + 42: uint16(39378), + 43: uint16(39493), + 44: uint16(40169), + 45: uint16(40407), + 46: uint16(40860), + 47: uint16(22283), + 48: uint16(23616), + 49: uint16(33738), + 50: uint16(38816), + 51: uint16(38827), + 52: uint16(40628), + 53: uint16(21531), + 54: uint16(31384), + 55: uint16(32676), + 56: uint16(35033), + 57: uint16(36557), + 58: uint16(37089), + 59: uint16(22528), + 60: uint16(23624), + 61: uint16(25496), + 62: uint16(31391), + 63: uint16(23470), + 64: uint16(24339), + 65: uint16(31353), + 66: uint16(31406), + 67: uint16(33422), + 68: uint16(36524), + 69: uint16(20518), + 70: uint16(21048), + 71: uint16(21240), + 72: uint16(21367), + 73: uint16(22280), + 74: uint16(25331), + 75: uint16(25458), + 76: uint16(27402), + 77: uint16(28099), + 78: uint16(30519), + 79: uint16(21413), + 80: uint16(29527), + 81: uint16(34152), + 82: uint16(36470), + 83: uint16(38357), + 84: uint16(26426), + 85: uint16(27331), + 86: uint16(28528), + 87: uint16(35437), + 88: uint16(36556), + 89: uint16(39243), + 90: uint16(63750), + 91: uint16(26231), + 92: uint16(27512), + 93: uint16(36020), + }, + 47: { + 0: uint16(39740), + 1: uint16(63751), + 2: uint16(21483), + 3: uint16(22317), + 4: uint16(22862), + 5: uint16(25542), + 6: uint16(27131), + 7: uint16(29674), + 8: uint16(30789), + 9: uint16(31418), + 10: uint16(31429), + 11: uint16(31998), + 12: uint16(33909), + 13: uint16(35215), + 14: uint16(36211), + 15: uint16(36917), + 16: uint16(38312), + 17: uint16(21243), + 18: uint16(22343), + 19: uint16(30023), + 20: uint16(31584), + 21: uint16(33740), + 22: uint16(37406), + 23: uint16(63752), + 24: uint16(27224), + 25: uint16(20811), + 26: uint16(21067), + 27: uint16(21127), + 28: uint16(25119), + 29: uint16(26840), + 30: uint16(26997), + 31: uint16(38553), + 32: uint16(20677), + 33: uint16(21156), + 34: uint16(21220), + 35: uint16(25027), + 36: uint16(26020), + 37: uint16(26681), + 38: uint16(27135), + 39: uint16(29822), + 40: uint16(31563), + 41: uint16(33465), + 42: uint16(33771), + 43: uint16(35250), + 44: uint16(35641), + 45: uint16(36817), + 46: uint16(39241), + 47: uint16(63753), + 48: uint16(20170), + 49: uint16(22935), + 50: uint16(25810), + 51: uint16(26129), + 52: uint16(27278), + 53: uint16(29748), + 54: uint16(31105), + 55: uint16(31165), + 56: uint16(33449), + 57: uint16(34942), + 58: uint16(34943), + 59: uint16(35167), + 60: uint16(63754), + 61: uint16(37670), + 62: uint16(20235), + 63: uint16(21450), + 64: uint16(24613), + 65: uint16(25201), + 66: uint16(27762), + 67: uint16(32026), + 68: uint16(32102), + 69: uint16(20120), + 70: uint16(20834), + 71: uint16(30684), + 72: uint16(32943), + 73: uint16(20225), + 74: uint16(20238), + 75: uint16(20854), + 76: uint16(20864), + 77: uint16(21980), + 78: uint16(22120), + 79: uint16(22331), + 80: uint16(22522), + 81: uint16(22524), + 82: uint16(22804), + 83: uint16(22855), + 84: uint16(22931), + 85: uint16(23492), + 86: uint16(23696), + 87: uint16(23822), + 88: uint16(24049), + 89: uint16(24190), + 90: uint16(24524), + 91: uint16(25216), + 92: uint16(26071), + 93: uint16(26083), + }, + 48: { + 0: uint16(26398), + 1: uint16(26399), + 2: uint16(26462), + 3: uint16(26827), + 4: uint16(26820), + 5: uint16(27231), + 6: uint16(27450), + 7: uint16(27683), + 8: uint16(27773), + 9: uint16(27778), + 10: uint16(28103), + 11: uint16(29592), + 12: uint16(29734), + 13: uint16(29738), + 14: uint16(29826), + 15: uint16(29859), + 16: uint16(30072), + 17: uint16(30079), + 18: uint16(30849), + 19: uint16(30959), + 20: uint16(31041), + 21: uint16(31047), + 22: uint16(31048), + 23: uint16(31098), + 24: uint16(31637), + 25: uint16(32000), + 26: uint16(32186), + 27: uint16(32648), + 28: uint16(32774), + 29: uint16(32813), + 30: uint16(32908), + 31: uint16(35352), + 32: uint16(35663), + 33: uint16(35912), + 34: uint16(36215), + 35: uint16(37665), + 36: uint16(37668), + 37: uint16(39138), + 38: uint16(39249), + 39: uint16(39438), + 40: uint16(39439), + 41: uint16(39525), + 42: uint16(40594), + 43: uint16(32202), + 44: uint16(20342), + 45: uint16(21513), + 46: uint16(25326), + 47: uint16(26708), + 48: uint16(37329), + 49: uint16(21931), + 50: uint16(20794), + 51: uint16(63755), + 52: uint16(63756), + 53: uint16(23068), + 54: uint16(25062), + 55: uint16(63757), + 56: uint16(25295), + 57: uint16(25343), + 58: uint16(63758), + 59: uint16(63759), + 60: uint16(63760), + 61: uint16(63761), + 62: uint16(63762), + 63: uint16(63763), + 64: uint16(37027), + 65: uint16(63764), + 66: uint16(63765), + 67: uint16(63766), + 68: uint16(63767), + 69: uint16(63768), + 70: uint16(35582), + 71: uint16(63769), + 72: uint16(63770), + 73: uint16(63771), + 74: uint16(63772), + 75: uint16(26262), + 76: uint16(63773), + 77: uint16(29014), + 78: uint16(63774), + 79: uint16(63775), + 80: uint16(38627), + 81: uint16(63776), + 82: uint16(25423), + 83: uint16(25466), + 84: uint16(21335), + 85: uint16(63777), + 86: uint16(26511), + 87: uint16(26976), + 88: uint16(28275), + 89: uint16(63778), + 90: uint16(30007), + 91: uint16(63779), + 92: uint16(63780), + 93: uint16(63781), + }, + 49: { + 0: uint16(32013), + 1: uint16(63782), + 2: uint16(63783), + 3: uint16(34930), + 4: uint16(22218), + 5: uint16(23064), + 6: uint16(63784), + 7: uint16(63785), + 8: uint16(63786), + 9: uint16(63787), + 10: uint16(63788), + 11: uint16(20035), + 12: uint16(63789), + 13: uint16(20839), + 14: uint16(22856), + 15: uint16(26608), + 16: uint16(32784), + 17: uint16(63790), + 18: uint16(22899), + 19: uint16(24180), + 20: uint16(25754), + 21: uint16(31178), + 22: uint16(24565), + 23: uint16(24684), + 24: uint16(25288), + 25: uint16(25467), + 26: uint16(23527), + 27: uint16(23511), + 28: uint16(21162), + 29: uint16(63791), + 30: uint16(22900), + 31: uint16(24361), + 32: uint16(24594), + 33: uint16(63792), + 34: uint16(63793), + 35: uint16(63794), + 36: uint16(29785), + 37: uint16(63795), + 38: uint16(63796), + 39: uint16(63797), + 40: uint16(63798), + 41: uint16(63799), + 42: uint16(63800), + 43: uint16(39377), + 44: uint16(63801), + 45: uint16(63802), + 46: uint16(63803), + 47: uint16(63804), + 48: uint16(63805), + 49: uint16(63806), + 50: uint16(63807), + 51: uint16(63808), + 52: uint16(63809), + 53: uint16(63810), + 54: uint16(63811), + 55: uint16(28611), + 56: uint16(63812), + 57: uint16(63813), + 58: uint16(33215), + 59: uint16(36786), + 60: uint16(24817), + 61: uint16(63814), + 62: uint16(63815), + 63: uint16(33126), + 64: uint16(63816), + 65: uint16(63817), + 66: uint16(23615), + 67: uint16(63818), + 68: uint16(63819), + 69: uint16(63820), + 70: uint16(63821), + 71: uint16(63822), + 72: uint16(63823), + 73: uint16(63824), + 74: uint16(63825), + 75: uint16(23273), + 76: uint16(35365), + 77: uint16(26491), + 78: uint16(32016), + 79: uint16(63826), + 80: uint16(63827), + 81: uint16(63828), + 82: uint16(63829), + 83: uint16(63830), + 84: uint16(63831), + 85: uint16(33021), + 86: uint16(63832), + 87: uint16(63833), + 88: uint16(23612), + 89: uint16(27877), + 90: uint16(21311), + 91: uint16(28346), + 92: uint16(22810), + 93: uint16(33590), + }, + 50: { + 0: uint16(20025), + 1: uint16(20150), + 2: uint16(20294), + 3: uint16(21934), + 4: uint16(22296), + 5: uint16(22727), + 6: uint16(24406), + 7: uint16(26039), + 8: uint16(26086), + 9: uint16(27264), + 10: uint16(27573), + 11: uint16(28237), + 12: uint16(30701), + 13: uint16(31471), + 14: uint16(31774), + 15: uint16(32222), + 16: uint16(34507), + 17: uint16(34962), + 18: uint16(37170), + 19: uint16(37723), + 20: uint16(25787), + 21: uint16(28606), + 22: uint16(29562), + 23: uint16(30136), + 24: uint16(36948), + 25: uint16(21846), + 26: uint16(22349), + 27: uint16(25018), + 28: uint16(25812), + 29: uint16(26311), + 30: uint16(28129), + 31: uint16(28251), + 32: uint16(28525), + 33: uint16(28601), + 34: uint16(30192), + 35: uint16(32835), + 36: uint16(33213), + 37: uint16(34113), + 38: uint16(35203), + 39: uint16(35527), + 40: uint16(35674), + 41: uint16(37663), + 42: uint16(27795), + 43: uint16(30035), + 44: uint16(31572), + 45: uint16(36367), + 46: uint16(36957), + 47: uint16(21776), + 48: uint16(22530), + 49: uint16(22616), + 50: uint16(24162), + 51: uint16(25095), + 52: uint16(25758), + 53: uint16(26848), + 54: uint16(30070), + 55: uint16(31958), + 56: uint16(34739), + 57: uint16(40680), + 58: uint16(20195), + 59: uint16(22408), + 60: uint16(22382), + 61: uint16(22823), + 62: uint16(23565), + 63: uint16(23729), + 64: uint16(24118), + 65: uint16(24453), + 66: uint16(25140), + 67: uint16(25825), + 68: uint16(29619), + 69: uint16(33274), + 70: uint16(34955), + 71: uint16(36024), + 72: uint16(38538), + 73: uint16(40667), + 74: uint16(23429), + 75: uint16(24503), + 76: uint16(24755), + 77: uint16(20498), + 78: uint16(20992), + 79: uint16(21040), + 80: uint16(22294), + 81: uint16(22581), + 82: uint16(22615), + 83: uint16(23566), + 84: uint16(23648), + 85: uint16(23798), + 86: uint16(23947), + 87: uint16(24230), + 88: uint16(24466), + 89: uint16(24764), + 90: uint16(25361), + 91: uint16(25481), + 92: uint16(25623), + 93: uint16(26691), + }, + 51: { + 0: uint16(26873), + 1: uint16(27330), + 2: uint16(28120), + 3: uint16(28193), + 4: uint16(28372), + 5: uint16(28644), + 6: uint16(29182), + 7: uint16(30428), + 8: uint16(30585), + 9: uint16(31153), + 10: uint16(31291), + 11: uint16(33796), + 12: uint16(35241), + 13: uint16(36077), + 14: uint16(36339), + 15: uint16(36424), + 16: uint16(36867), + 17: uint16(36884), + 18: uint16(36947), + 19: uint16(37117), + 20: uint16(37709), + 21: uint16(38518), + 22: uint16(38876), + 23: uint16(27602), + 24: uint16(28678), + 25: uint16(29272), + 26: uint16(29346), + 27: uint16(29544), + 28: uint16(30563), + 29: uint16(31167), + 30: uint16(31716), + 31: uint16(32411), + 32: uint16(35712), + 33: uint16(22697), + 34: uint16(24775), + 35: uint16(25958), + 36: uint16(26109), + 37: uint16(26302), + 38: uint16(27788), + 39: uint16(28958), + 40: uint16(29129), + 41: uint16(35930), + 42: uint16(38931), + 43: uint16(20077), + 44: uint16(31361), + 45: uint16(20189), + 46: uint16(20908), + 47: uint16(20941), + 48: uint16(21205), + 49: uint16(21516), + 50: uint16(24999), + 51: uint16(26481), + 52: uint16(26704), + 53: uint16(26847), + 54: uint16(27934), + 55: uint16(28540), + 56: uint16(30140), + 57: uint16(30643), + 58: uint16(31461), + 59: uint16(33012), + 60: uint16(33891), + 61: uint16(37509), + 62: uint16(20828), + 63: uint16(26007), + 64: uint16(26460), + 65: uint16(26515), + 66: uint16(30168), + 67: uint16(31431), + 68: uint16(33651), + 69: uint16(63834), + 70: uint16(35910), + 71: uint16(36887), + 72: uint16(38957), + 73: uint16(23663), + 74: uint16(33216), + 75: uint16(33434), + 76: uint16(36929), + 77: uint16(36975), + 78: uint16(37389), + 79: uint16(24471), + 80: uint16(23965), + 81: uint16(27225), + 82: uint16(29128), + 83: uint16(30331), + 84: uint16(31561), + 85: uint16(34276), + 86: uint16(35588), + 87: uint16(37159), + 88: uint16(39472), + 89: uint16(21895), + 90: uint16(25078), + 91: uint16(63835), + 92: uint16(30313), + 93: uint16(32645), + }, + 52: { + 0: uint16(34367), + 1: uint16(34746), + 2: uint16(35064), + 3: uint16(37007), + 4: uint16(63836), + 5: uint16(27931), + 6: uint16(28889), + 7: uint16(29662), + 8: uint16(32097), + 9: uint16(33853), + 10: uint16(63837), + 11: uint16(37226), + 12: uint16(39409), + 13: uint16(63838), + 14: uint16(20098), + 15: uint16(21365), + 16: uint16(27396), + 17: uint16(27410), + 18: uint16(28734), + 19: uint16(29211), + 20: uint16(34349), + 21: uint16(40478), + 22: uint16(21068), + 23: uint16(36771), + 24: uint16(23888), + 25: uint16(25829), + 26: uint16(25900), + 27: uint16(27414), + 28: uint16(28651), + 29: uint16(31811), + 30: uint16(32412), + 31: uint16(34253), + 32: uint16(35172), + 33: uint16(35261), + 34: uint16(25289), + 35: uint16(33240), + 36: uint16(34847), + 37: uint16(24266), + 38: uint16(26391), + 39: uint16(28010), + 40: uint16(29436), + 41: uint16(29701), + 42: uint16(29807), + 43: uint16(34690), + 44: uint16(37086), + 45: uint16(20358), + 46: uint16(23821), + 47: uint16(24480), + 48: uint16(33802), + 49: uint16(20919), + 50: uint16(25504), + 51: uint16(30053), + 52: uint16(20142), + 53: uint16(20486), + 54: uint16(20841), + 55: uint16(20937), + 56: uint16(26753), + 57: uint16(27153), + 58: uint16(31918), + 59: uint16(31921), + 60: uint16(31975), + 61: uint16(33391), + 62: uint16(35538), + 63: uint16(36635), + 64: uint16(37327), + 65: uint16(20406), + 66: uint16(20791), + 67: uint16(21237), + 68: uint16(21570), + 69: uint16(24300), + 70: uint16(24942), + 71: uint16(25150), + 72: uint16(26053), + 73: uint16(27354), + 74: uint16(28670), + 75: uint16(31018), + 76: uint16(34268), + 77: uint16(34851), + 78: uint16(38317), + 79: uint16(39522), + 80: uint16(39530), + 81: uint16(40599), + 82: uint16(40654), + 83: uint16(21147), + 84: uint16(26310), + 85: uint16(27511), + 86: uint16(28701), + 87: uint16(31019), + 88: uint16(36706), + 89: uint16(38722), + 90: uint16(24976), + 91: uint16(25088), + 92: uint16(25891), + 93: uint16(28451), + }, + 53: { + 0: uint16(29001), + 1: uint16(29833), + 2: uint16(32244), + 3: uint16(32879), + 4: uint16(34030), + 5: uint16(36646), + 6: uint16(36899), + 7: uint16(37706), + 8: uint16(20925), + 9: uint16(21015), + 10: uint16(21155), + 11: uint16(27916), + 12: uint16(28872), + 13: uint16(35010), + 14: uint16(24265), + 15: uint16(25986), + 16: uint16(27566), + 17: uint16(28610), + 18: uint16(31806), + 19: uint16(29557), + 20: uint16(20196), + 21: uint16(20278), + 22: uint16(22265), + 23: uint16(63839), + 24: uint16(23738), + 25: uint16(23994), + 26: uint16(24604), + 27: uint16(29618), + 28: uint16(31533), + 29: uint16(32666), + 30: uint16(32718), + 31: uint16(32838), + 32: uint16(36894), + 33: uint16(37428), + 34: uint16(38646), + 35: uint16(38728), + 36: uint16(38936), + 37: uint16(40801), + 38: uint16(20363), + 39: uint16(28583), + 40: uint16(31150), + 41: uint16(37300), + 42: uint16(38583), + 43: uint16(21214), + 44: uint16(63840), + 45: uint16(25736), + 46: uint16(25796), + 47: uint16(27347), + 48: uint16(28510), + 49: uint16(28696), + 50: uint16(29200), + 51: uint16(30439), + 52: uint16(32769), + 53: uint16(34310), + 54: uint16(34396), + 55: uint16(36335), + 56: uint16(36613), + 57: uint16(38706), + 58: uint16(39791), + 59: uint16(40442), + 60: uint16(40565), + 61: uint16(30860), + 62: uint16(31103), + 63: uint16(32160), + 64: uint16(33737), + 65: uint16(37636), + 66: uint16(40575), + 67: uint16(40595), + 68: uint16(35542), + 69: uint16(22751), + 70: uint16(24324), + 71: uint16(26407), + 72: uint16(28711), + 73: uint16(29903), + 74: uint16(31840), + 75: uint16(32894), + 76: uint16(20769), + 77: uint16(28712), + 78: uint16(29282), + 79: uint16(30922), + 80: uint16(36034), + 81: uint16(36058), + 82: uint16(36084), + 83: uint16(38647), + 84: uint16(20102), + 85: uint16(20698), + 86: uint16(23534), + 87: uint16(24278), + 88: uint16(26009), + 89: uint16(29134), + 90: uint16(30274), + 91: uint16(30637), + 92: uint16(32842), + 93: uint16(34044), + }, + 54: { + 0: uint16(36988), + 1: uint16(39719), + 2: uint16(40845), + 3: uint16(22744), + 4: uint16(23105), + 5: uint16(23650), + 6: uint16(27155), + 7: uint16(28122), + 8: uint16(28431), + 9: uint16(30267), + 10: uint16(32047), + 11: uint16(32311), + 12: uint16(34078), + 13: uint16(35128), + 14: uint16(37860), + 15: uint16(38475), + 16: uint16(21129), + 17: uint16(26066), + 18: uint16(26611), + 19: uint16(27060), + 20: uint16(27969), + 21: uint16(28316), + 22: uint16(28687), + 23: uint16(29705), + 24: uint16(29792), + 25: uint16(30041), + 26: uint16(30244), + 27: uint16(30827), + 28: uint16(35628), + 29: uint16(39006), + 30: uint16(20845), + 31: uint16(25134), + 32: uint16(38520), + 33: uint16(20374), + 34: uint16(20523), + 35: uint16(23833), + 36: uint16(28138), + 37: uint16(32184), + 38: uint16(36650), + 39: uint16(24459), + 40: uint16(24900), + 41: uint16(26647), + 42: uint16(63841), + 43: uint16(38534), + 44: uint16(21202), + 45: uint16(32907), + 46: uint16(20956), + 47: uint16(20940), + 48: uint16(26974), + 49: uint16(31260), + 50: uint16(32190), + 51: uint16(33777), + 52: uint16(38517), + 53: uint16(20442), + 54: uint16(21033), + 55: uint16(21400), + 56: uint16(21519), + 57: uint16(21774), + 58: uint16(23653), + 59: uint16(24743), + 60: uint16(26446), + 61: uint16(26792), + 62: uint16(28012), + 63: uint16(29313), + 64: uint16(29432), + 65: uint16(29702), + 66: uint16(29827), + 67: uint16(63842), + 68: uint16(30178), + 69: uint16(31852), + 70: uint16(32633), + 71: uint16(32696), + 72: uint16(33673), + 73: uint16(35023), + 74: uint16(35041), + 75: uint16(37324), + 76: uint16(37328), + 77: uint16(38626), + 78: uint16(39881), + 79: uint16(21533), + 80: uint16(28542), + 81: uint16(29136), + 82: uint16(29848), + 83: uint16(34298), + 84: uint16(36522), + 85: uint16(38563), + 86: uint16(40023), + 87: uint16(40607), + 88: uint16(26519), + 89: uint16(28107), + 90: uint16(29747), + 91: uint16(33256), + 92: uint16(38678), + 93: uint16(30764), + }, + 55: { + 0: uint16(31435), + 1: uint16(31520), + 2: uint16(31890), + 3: uint16(25705), + 4: uint16(29802), + 5: uint16(30194), + 6: uint16(30908), + 7: uint16(30952), + 8: uint16(39340), + 9: uint16(39764), + 10: uint16(40635), + 11: uint16(23518), + 12: uint16(24149), + 13: uint16(28448), + 14: uint16(33180), + 15: uint16(33707), + 16: uint16(37000), + 17: uint16(19975), + 18: uint16(21325), + 19: uint16(23081), + 20: uint16(24018), + 21: uint16(24398), + 22: uint16(24930), + 23: uint16(25405), + 24: uint16(26217), + 25: uint16(26364), + 26: uint16(28415), + 27: uint16(28459), + 28: uint16(28771), + 29: uint16(30622), + 30: uint16(33836), + 31: uint16(34067), + 32: uint16(34875), + 33: uint16(36627), + 34: uint16(39237), + 35: uint16(39995), + 36: uint16(21788), + 37: uint16(25273), + 38: uint16(26411), + 39: uint16(27819), + 40: uint16(33545), + 41: uint16(35178), + 42: uint16(38778), + 43: uint16(20129), + 44: uint16(22916), + 45: uint16(24536), + 46: uint16(24537), + 47: uint16(26395), + 48: uint16(32178), + 49: uint16(32596), + 50: uint16(33426), + 51: uint16(33579), + 52: uint16(33725), + 53: uint16(36638), + 54: uint16(37017), + 55: uint16(22475), + 56: uint16(22969), + 57: uint16(23186), + 58: uint16(23504), + 59: uint16(26151), + 60: uint16(26522), + 61: uint16(26757), + 62: uint16(27599), + 63: uint16(29028), + 64: uint16(32629), + 65: uint16(36023), + 66: uint16(36067), + 67: uint16(36993), + 68: uint16(39749), + 69: uint16(33032), + 70: uint16(35978), + 71: uint16(38476), + 72: uint16(39488), + 73: uint16(40613), + 74: uint16(23391), + 75: uint16(27667), + 76: uint16(29467), + 77: uint16(30450), + 78: uint16(30431), + 79: uint16(33804), + 80: uint16(20906), + 81: uint16(35219), + 82: uint16(20813), + 83: uint16(20885), + 84: uint16(21193), + 85: uint16(26825), + 86: uint16(27796), + 87: uint16(30468), + 88: uint16(30496), + 89: uint16(32191), + 90: uint16(32236), + 91: uint16(38754), + 92: uint16(40629), + 93: uint16(28357), + }, + 56: { + 0: uint16(34065), + 1: uint16(20901), + 2: uint16(21517), + 3: uint16(21629), + 4: uint16(26126), + 5: uint16(26269), + 6: uint16(26919), + 7: uint16(28319), + 8: uint16(30399), + 9: uint16(30609), + 10: uint16(33559), + 11: uint16(33986), + 12: uint16(34719), + 13: uint16(37225), + 14: uint16(37528), + 15: uint16(40180), + 16: uint16(34946), + 17: uint16(20398), + 18: uint16(20882), + 19: uint16(21215), + 20: uint16(22982), + 21: uint16(24125), + 22: uint16(24917), + 23: uint16(25720), + 24: uint16(25721), + 25: uint16(26286), + 26: uint16(26576), + 27: uint16(27169), + 28: uint16(27597), + 29: uint16(27611), + 30: uint16(29279), + 31: uint16(29281), + 32: uint16(29761), + 33: uint16(30520), + 34: uint16(30683), + 35: uint16(32791), + 36: uint16(33468), + 37: uint16(33541), + 38: uint16(35584), + 39: uint16(35624), + 40: uint16(35980), + 41: uint16(26408), + 42: uint16(27792), + 43: uint16(29287), + 44: uint16(30446), + 45: uint16(30566), + 46: uint16(31302), + 47: uint16(40361), + 48: uint16(27519), + 49: uint16(27794), + 50: uint16(22818), + 51: uint16(26406), + 52: uint16(33945), + 53: uint16(21359), + 54: uint16(22675), + 55: uint16(22937), + 56: uint16(24287), + 57: uint16(25551), + 58: uint16(26164), + 59: uint16(26483), + 60: uint16(28218), + 61: uint16(29483), + 62: uint16(31447), + 63: uint16(33495), + 64: uint16(37672), + 65: uint16(21209), + 66: uint16(24043), + 67: uint16(25006), + 68: uint16(25035), + 69: uint16(25098), + 70: uint16(25287), + 71: uint16(25771), + 72: uint16(26080), + 73: uint16(26969), + 74: uint16(27494), + 75: uint16(27595), + 76: uint16(28961), + 77: uint16(29687), + 78: uint16(30045), + 79: uint16(32326), + 80: uint16(33310), + 81: uint16(33538), + 82: uint16(34154), + 83: uint16(35491), + 84: uint16(36031), + 85: uint16(38695), + 86: uint16(40289), + 87: uint16(22696), + 88: uint16(40664), + 89: uint16(20497), + 90: uint16(21006), + 91: uint16(21563), + 92: uint16(21839), + 93: uint16(25991), + }, + 57: { + 0: uint16(27766), + 1: uint16(32010), + 2: uint16(32011), + 3: uint16(32862), + 4: uint16(34442), + 5: uint16(38272), + 6: uint16(38639), + 7: uint16(21247), + 8: uint16(27797), + 9: uint16(29289), + 10: uint16(21619), + 11: uint16(23194), + 12: uint16(23614), + 13: uint16(23883), + 14: uint16(24396), + 15: uint16(24494), + 16: uint16(26410), + 17: uint16(26806), + 18: uint16(26979), + 19: uint16(28220), + 20: uint16(28228), + 21: uint16(30473), + 22: uint16(31859), + 23: uint16(32654), + 24: uint16(34183), + 25: uint16(35598), + 26: uint16(36855), + 27: uint16(38753), + 28: uint16(40692), + 29: uint16(23735), + 30: uint16(24758), + 31: uint16(24845), + 32: uint16(25003), + 33: uint16(25935), + 34: uint16(26107), + 35: uint16(26108), + 36: uint16(27665), + 37: uint16(27887), + 38: uint16(29599), + 39: uint16(29641), + 40: uint16(32225), + 41: uint16(38292), + 42: uint16(23494), + 43: uint16(34588), + 44: uint16(35600), + 45: uint16(21085), + 46: uint16(21338), + 47: uint16(25293), + 48: uint16(25615), + 49: uint16(25778), + 50: uint16(26420), + 51: uint16(27192), + 52: uint16(27850), + 53: uint16(29632), + 54: uint16(29854), + 55: uint16(31636), + 56: uint16(31893), + 57: uint16(32283), + 58: uint16(33162), + 59: uint16(33334), + 60: uint16(34180), + 61: uint16(36843), + 62: uint16(38649), + 63: uint16(39361), + 64: uint16(20276), + 65: uint16(21322), + 66: uint16(21453), + 67: uint16(21467), + 68: uint16(25292), + 69: uint16(25644), + 70: uint16(25856), + 71: uint16(26001), + 72: uint16(27075), + 73: uint16(27886), + 74: uint16(28504), + 75: uint16(29677), + 76: uint16(30036), + 77: uint16(30242), + 78: uint16(30436), + 79: uint16(30460), + 80: uint16(30928), + 81: uint16(30971), + 82: uint16(31020), + 83: uint16(32070), + 84: uint16(33324), + 85: uint16(34784), + 86: uint16(36820), + 87: uint16(38930), + 88: uint16(39151), + 89: uint16(21187), + 90: uint16(25300), + 91: uint16(25765), + 92: uint16(28196), + 93: uint16(28497), + }, + 58: { + 0: uint16(30332), + 1: uint16(36299), + 2: uint16(37297), + 3: uint16(37474), + 4: uint16(39662), + 5: uint16(39747), + 6: uint16(20515), + 7: uint16(20621), + 8: uint16(22346), + 9: uint16(22952), + 10: uint16(23592), + 11: uint16(24135), + 12: uint16(24439), + 13: uint16(25151), + 14: uint16(25918), + 15: uint16(26041), + 16: uint16(26049), + 17: uint16(26121), + 18: uint16(26507), + 19: uint16(27036), + 20: uint16(28354), + 21: uint16(30917), + 22: uint16(32033), + 23: uint16(32938), + 24: uint16(33152), + 25: uint16(33323), + 26: uint16(33459), + 27: uint16(33953), + 28: uint16(34444), + 29: uint16(35370), + 30: uint16(35607), + 31: uint16(37030), + 32: uint16(38450), + 33: uint16(40848), + 34: uint16(20493), + 35: uint16(20467), + 36: uint16(63843), + 37: uint16(22521), + 38: uint16(24472), + 39: uint16(25308), + 40: uint16(25490), + 41: uint16(26479), + 42: uint16(28227), + 43: uint16(28953), + 44: uint16(30403), + 45: uint16(32972), + 46: uint16(32986), + 47: uint16(35060), + 48: uint16(35061), + 49: uint16(35097), + 50: uint16(36064), + 51: uint16(36649), + 52: uint16(37197), + 53: uint16(38506), + 54: uint16(20271), + 55: uint16(20336), + 56: uint16(24091), + 57: uint16(26575), + 58: uint16(26658), + 59: uint16(30333), + 60: uint16(30334), + 61: uint16(39748), + 62: uint16(24161), + 63: uint16(27146), + 64: uint16(29033), + 65: uint16(29140), + 66: uint16(30058), + 67: uint16(63844), + 68: uint16(32321), + 69: uint16(34115), + 70: uint16(34281), + 71: uint16(39132), + 72: uint16(20240), + 73: uint16(31567), + 74: uint16(32624), + 75: uint16(38309), + 76: uint16(20961), + 77: uint16(24070), + 78: uint16(26805), + 79: uint16(27710), + 80: uint16(27726), + 81: uint16(27867), + 82: uint16(29359), + 83: uint16(31684), + 84: uint16(33539), + 85: uint16(27861), + 86: uint16(29754), + 87: uint16(20731), + 88: uint16(21128), + 89: uint16(22721), + 90: uint16(25816), + 91: uint16(27287), + 92: uint16(29863), + 93: uint16(30294), + }, + 59: { + 0: uint16(30887), + 1: uint16(34327), + 2: uint16(38370), + 3: uint16(38713), + 4: uint16(63845), + 5: uint16(21342), + 6: uint16(24321), + 7: uint16(35722), + 8: uint16(36776), + 9: uint16(36783), + 10: uint16(37002), + 11: uint16(21029), + 12: uint16(30629), + 13: uint16(40009), + 14: uint16(40712), + 15: uint16(19993), + 16: uint16(20482), + 17: uint16(20853), + 18: uint16(23643), + 19: uint16(24183), + 20: uint16(26142), + 21: uint16(26170), + 22: uint16(26564), + 23: uint16(26821), + 24: uint16(28851), + 25: uint16(29953), + 26: uint16(30149), + 27: uint16(31177), + 28: uint16(31453), + 29: uint16(36647), + 30: uint16(39200), + 31: uint16(39432), + 32: uint16(20445), + 33: uint16(22561), + 34: uint16(22577), + 35: uint16(23542), + 36: uint16(26222), + 37: uint16(27493), + 38: uint16(27921), + 39: uint16(28282), + 40: uint16(28541), + 41: uint16(29668), + 42: uint16(29995), + 43: uint16(33769), + 44: uint16(35036), + 45: uint16(35091), + 46: uint16(35676), + 47: uint16(36628), + 48: uint16(20239), + 49: uint16(20693), + 50: uint16(21264), + 51: uint16(21340), + 52: uint16(23443), + 53: uint16(24489), + 54: uint16(26381), + 55: uint16(31119), + 56: uint16(33145), + 57: uint16(33583), + 58: uint16(34068), + 59: uint16(35079), + 60: uint16(35206), + 61: uint16(36665), + 62: uint16(36667), + 63: uint16(39333), + 64: uint16(39954), + 65: uint16(26412), + 66: uint16(20086), + 67: uint16(20472), + 68: uint16(22857), + 69: uint16(23553), + 70: uint16(23791), + 71: uint16(23792), + 72: uint16(25447), + 73: uint16(26834), + 74: uint16(28925), + 75: uint16(29090), + 76: uint16(29739), + 77: uint16(32299), + 78: uint16(34028), + 79: uint16(34562), + 80: uint16(36898), + 81: uint16(37586), + 82: uint16(40179), + 83: uint16(19981), + 84: uint16(20184), + 85: uint16(20463), + 86: uint16(20613), + 87: uint16(21078), + 88: uint16(21103), + 89: uint16(21542), + 90: uint16(21648), + 91: uint16(22496), + 92: uint16(22827), + 93: uint16(23142), + }, + 60: { + 0: uint16(23386), + 1: uint16(23413), + 2: uint16(23500), + 3: uint16(24220), + 4: uint16(63846), + 5: uint16(25206), + 6: uint16(25975), + 7: uint16(26023), + 8: uint16(28014), + 9: uint16(28325), + 10: uint16(29238), + 11: uint16(31526), + 12: uint16(31807), + 13: uint16(32566), + 14: uint16(33104), + 15: uint16(33105), + 16: uint16(33178), + 17: uint16(33344), + 18: uint16(33433), + 19: uint16(33705), + 20: uint16(35331), + 21: uint16(36000), + 22: uint16(36070), + 23: uint16(36091), + 24: uint16(36212), + 25: uint16(36282), + 26: uint16(37096), + 27: uint16(37340), + 28: uint16(38428), + 29: uint16(38468), + 30: uint16(39385), + 31: uint16(40167), + 32: uint16(21271), + 33: uint16(20998), + 34: uint16(21545), + 35: uint16(22132), + 36: uint16(22707), + 37: uint16(22868), + 38: uint16(22894), + 39: uint16(24575), + 40: uint16(24996), + 41: uint16(25198), + 42: uint16(26128), + 43: uint16(27774), + 44: uint16(28954), + 45: uint16(30406), + 46: uint16(31881), + 47: uint16(31966), + 48: uint16(32027), + 49: uint16(33452), + 50: uint16(36033), + 51: uint16(38640), + 52: uint16(63847), + 53: uint16(20315), + 54: uint16(24343), + 55: uint16(24447), + 56: uint16(25282), + 57: uint16(23849), + 58: uint16(26379), + 59: uint16(26842), + 60: uint16(30844), + 61: uint16(32323), + 62: uint16(40300), + 63: uint16(19989), + 64: uint16(20633), + 65: uint16(21269), + 66: uint16(21290), + 67: uint16(21329), + 68: uint16(22915), + 69: uint16(23138), + 70: uint16(24199), + 71: uint16(24754), + 72: uint16(24970), + 73: uint16(25161), + 74: uint16(25209), + 75: uint16(26000), + 76: uint16(26503), + 77: uint16(27047), + 78: uint16(27604), + 79: uint16(27606), + 80: uint16(27607), + 81: uint16(27608), + 82: uint16(27832), + 83: uint16(63848), + 84: uint16(29749), + 85: uint16(30202), + 86: uint16(30738), + 87: uint16(30865), + 88: uint16(31189), + 89: uint16(31192), + 90: uint16(31875), + 91: uint16(32203), + 92: uint16(32737), + 93: uint16(32933), + }, + 61: { + 0: uint16(33086), + 1: uint16(33218), + 2: uint16(33778), + 3: uint16(34586), + 4: uint16(35048), + 5: uint16(35513), + 6: uint16(35692), + 7: uint16(36027), + 8: uint16(37145), + 9: uint16(38750), + 10: uint16(39131), + 11: uint16(40763), + 12: uint16(22188), + 13: uint16(23338), + 14: uint16(24428), + 15: uint16(25996), + 16: uint16(27315), + 17: uint16(27567), + 18: uint16(27996), + 19: uint16(28657), + 20: uint16(28693), + 21: uint16(29277), + 22: uint16(29613), + 23: uint16(36007), + 24: uint16(36051), + 25: uint16(38971), + 26: uint16(24977), + 27: uint16(27703), + 28: uint16(32856), + 29: uint16(39425), + 30: uint16(20045), + 31: uint16(20107), + 32: uint16(20123), + 33: uint16(20181), + 34: uint16(20282), + 35: uint16(20284), + 36: uint16(20351), + 37: uint16(20447), + 38: uint16(20735), + 39: uint16(21490), + 40: uint16(21496), + 41: uint16(21766), + 42: uint16(21987), + 43: uint16(22235), + 44: uint16(22763), + 45: uint16(22882), + 46: uint16(23057), + 47: uint16(23531), + 48: uint16(23546), + 49: uint16(23556), + 50: uint16(24051), + 51: uint16(24107), + 52: uint16(24473), + 53: uint16(24605), + 54: uint16(25448), + 55: uint16(26012), + 56: uint16(26031), + 57: uint16(26614), + 58: uint16(26619), + 59: uint16(26797), + 60: uint16(27515), + 61: uint16(27801), + 62: uint16(27863), + 63: uint16(28195), + 64: uint16(28681), + 65: uint16(29509), + 66: uint16(30722), + 67: uint16(31038), + 68: uint16(31040), + 69: uint16(31072), + 70: uint16(31169), + 71: uint16(31721), + 72: uint16(32023), + 73: uint16(32114), + 74: uint16(32902), + 75: uint16(33293), + 76: uint16(33678), + 77: uint16(34001), + 78: uint16(34503), + 79: uint16(35039), + 80: uint16(35408), + 81: uint16(35422), + 82: uint16(35613), + 83: uint16(36060), + 84: uint16(36198), + 85: uint16(36781), + 86: uint16(37034), + 87: uint16(39164), + 88: uint16(39391), + 89: uint16(40605), + 90: uint16(21066), + 91: uint16(63849), + 92: uint16(26388), + 93: uint16(63850), + }, + 62: { + 0: uint16(20632), + 1: uint16(21034), + 2: uint16(23665), + 3: uint16(25955), + 4: uint16(27733), + 5: uint16(29642), + 6: uint16(29987), + 7: uint16(30109), + 8: uint16(31639), + 9: uint16(33948), + 10: uint16(37240), + 11: uint16(38704), + 12: uint16(20087), + 13: uint16(25746), + 14: uint16(27578), + 15: uint16(29022), + 16: uint16(34217), + 17: uint16(19977), + 18: uint16(63851), + 19: uint16(26441), + 20: uint16(26862), + 21: uint16(28183), + 22: uint16(33439), + 23: uint16(34072), + 24: uint16(34923), + 25: uint16(25591), + 26: uint16(28545), + 27: uint16(37394), + 28: uint16(39087), + 29: uint16(19978), + 30: uint16(20663), + 31: uint16(20687), + 32: uint16(20767), + 33: uint16(21830), + 34: uint16(21930), + 35: uint16(22039), + 36: uint16(23360), + 37: uint16(23577), + 38: uint16(23776), + 39: uint16(24120), + 40: uint16(24202), + 41: uint16(24224), + 42: uint16(24258), + 43: uint16(24819), + 44: uint16(26705), + 45: uint16(27233), + 46: uint16(28248), + 47: uint16(29245), + 48: uint16(29248), + 49: uint16(29376), + 50: uint16(30456), + 51: uint16(31077), + 52: uint16(31665), + 53: uint16(32724), + 54: uint16(35059), + 55: uint16(35316), + 56: uint16(35443), + 57: uint16(35937), + 58: uint16(36062), + 59: uint16(38684), + 60: uint16(22622), + 61: uint16(29885), + 62: uint16(36093), + 63: uint16(21959), + 64: uint16(63852), + 65: uint16(31329), + 66: uint16(32034), + 67: uint16(33394), + 68: uint16(29298), + 69: uint16(29983), + 70: uint16(29989), + 71: uint16(63853), + 72: uint16(31513), + 73: uint16(22661), + 74: uint16(22779), + 75: uint16(23996), + 76: uint16(24207), + 77: uint16(24246), + 78: uint16(24464), + 79: uint16(24661), + 80: uint16(25234), + 81: uint16(25471), + 82: uint16(25933), + 83: uint16(26257), + 84: uint16(26329), + 85: uint16(26360), + 86: uint16(26646), + 87: uint16(26866), + 88: uint16(29312), + 89: uint16(29790), + 90: uint16(31598), + 91: uint16(32110), + 92: uint16(32214), + 93: uint16(32626), + }, + 63: { + 0: uint16(32997), + 1: uint16(33298), + 2: uint16(34223), + 3: uint16(35199), + 4: uint16(35475), + 5: uint16(36893), + 6: uint16(37604), + 7: uint16(40653), + 8: uint16(40736), + 9: uint16(22805), + 10: uint16(22893), + 11: uint16(24109), + 12: uint16(24796), + 13: uint16(26132), + 14: uint16(26227), + 15: uint16(26512), + 16: uint16(27728), + 17: uint16(28101), + 18: uint16(28511), + 19: uint16(30707), + 20: uint16(30889), + 21: uint16(33990), + 22: uint16(37323), + 23: uint16(37675), + 24: uint16(20185), + 25: uint16(20682), + 26: uint16(20808), + 27: uint16(21892), + 28: uint16(23307), + 29: uint16(23459), + 30: uint16(25159), + 31: uint16(25982), + 32: uint16(26059), + 33: uint16(28210), + 34: uint16(29053), + 35: uint16(29697), + 36: uint16(29764), + 37: uint16(29831), + 38: uint16(29887), + 39: uint16(30316), + 40: uint16(31146), + 41: uint16(32218), + 42: uint16(32341), + 43: uint16(32680), + 44: uint16(33146), + 45: uint16(33203), + 46: uint16(33337), + 47: uint16(34330), + 48: uint16(34796), + 49: uint16(35445), + 50: uint16(36323), + 51: uint16(36984), + 52: uint16(37521), + 53: uint16(37925), + 54: uint16(39245), + 55: uint16(39854), + 56: uint16(21352), + 57: uint16(23633), + 58: uint16(26964), + 59: uint16(27844), + 60: uint16(27945), + 61: uint16(28203), + 62: uint16(33292), + 63: uint16(34203), + 64: uint16(35131), + 65: uint16(35373), + 66: uint16(35498), + 67: uint16(38634), + 68: uint16(40807), + 69: uint16(21089), + 70: uint16(26297), + 71: uint16(27570), + 72: uint16(32406), + 73: uint16(34814), + 74: uint16(36109), + 75: uint16(38275), + 76: uint16(38493), + 77: uint16(25885), + 78: uint16(28041), + 79: uint16(29166), + 80: uint16(63854), + 81: uint16(22478), + 82: uint16(22995), + 83: uint16(23468), + 84: uint16(24615), + 85: uint16(24826), + 86: uint16(25104), + 87: uint16(26143), + 88: uint16(26207), + 89: uint16(29481), + 90: uint16(29689), + 91: uint16(30427), + 92: uint16(30465), + 93: uint16(31596), + }, + 64: { + 0: uint16(32854), + 1: uint16(32882), + 2: uint16(33125), + 3: uint16(35488), + 4: uint16(37266), + 5: uint16(19990), + 6: uint16(21218), + 7: uint16(27506), + 8: uint16(27927), + 9: uint16(31237), + 10: uint16(31545), + 11: uint16(32048), + 12: uint16(63855), + 13: uint16(36016), + 14: uint16(21484), + 15: uint16(22063), + 16: uint16(22609), + 17: uint16(23477), + 18: uint16(23567), + 19: uint16(23569), + 20: uint16(24034), + 21: uint16(25152), + 22: uint16(25475), + 23: uint16(25620), + 24: uint16(26157), + 25: uint16(26803), + 26: uint16(27836), + 27: uint16(28040), + 28: uint16(28335), + 29: uint16(28703), + 30: uint16(28836), + 31: uint16(29138), + 32: uint16(29990), + 33: uint16(30095), + 34: uint16(30094), + 35: uint16(30233), + 36: uint16(31505), + 37: uint16(31712), + 38: uint16(31787), + 39: uint16(32032), + 40: uint16(32057), + 41: uint16(34092), + 42: uint16(34157), + 43: uint16(34311), + 44: uint16(35380), + 45: uint16(36877), + 46: uint16(36961), + 47: uint16(37045), + 48: uint16(37559), + 49: uint16(38902), + 50: uint16(39479), + 51: uint16(20439), + 52: uint16(23660), + 53: uint16(26463), + 54: uint16(28049), + 55: uint16(31903), + 56: uint16(32396), + 57: uint16(35606), + 58: uint16(36118), + 59: uint16(36895), + 60: uint16(23403), + 61: uint16(24061), + 62: uint16(25613), + 63: uint16(33984), + 64: uint16(36956), + 65: uint16(39137), + 66: uint16(29575), + 67: uint16(23435), + 68: uint16(24730), + 69: uint16(26494), + 70: uint16(28126), + 71: uint16(35359), + 72: uint16(35494), + 73: uint16(36865), + 74: uint16(38924), + 75: uint16(21047), + 76: uint16(63856), + 77: uint16(28753), + 78: uint16(30862), + 79: uint16(37782), + 80: uint16(34928), + 81: uint16(37335), + 82: uint16(20462), + 83: uint16(21463), + 84: uint16(22013), + 85: uint16(22234), + 86: uint16(22402), + 87: uint16(22781), + 88: uint16(23234), + 89: uint16(23432), + 90: uint16(23723), + 91: uint16(23744), + 92: uint16(24101), + 93: uint16(24833), + }, + 65: { + 0: uint16(25101), + 1: uint16(25163), + 2: uint16(25480), + 3: uint16(25628), + 4: uint16(25910), + 5: uint16(25976), + 6: uint16(27193), + 7: uint16(27530), + 8: uint16(27700), + 9: uint16(27929), + 10: uint16(28465), + 11: uint16(29159), + 12: uint16(29417), + 13: uint16(29560), + 14: uint16(29703), + 15: uint16(29874), + 16: uint16(30246), + 17: uint16(30561), + 18: uint16(31168), + 19: uint16(31319), + 20: uint16(31466), + 21: uint16(31929), + 22: uint16(32143), + 23: uint16(32172), + 24: uint16(32353), + 25: uint16(32670), + 26: uint16(33065), + 27: uint16(33585), + 28: uint16(33936), + 29: uint16(34010), + 30: uint16(34282), + 31: uint16(34966), + 32: uint16(35504), + 33: uint16(35728), + 34: uint16(36664), + 35: uint16(36930), + 36: uint16(36995), + 37: uint16(37228), + 38: uint16(37526), + 39: uint16(37561), + 40: uint16(38539), + 41: uint16(38567), + 42: uint16(38568), + 43: uint16(38614), + 44: uint16(38656), + 45: uint16(38920), + 46: uint16(39318), + 47: uint16(39635), + 48: uint16(39706), + 49: uint16(21460), + 50: uint16(22654), + 51: uint16(22809), + 52: uint16(23408), + 53: uint16(23487), + 54: uint16(28113), + 55: uint16(28506), + 56: uint16(29087), + 57: uint16(29729), + 58: uint16(29881), + 59: uint16(32901), + 60: uint16(33789), + 61: uint16(24033), + 62: uint16(24455), + 63: uint16(24490), + 64: uint16(24642), + 65: uint16(26092), + 66: uint16(26642), + 67: uint16(26991), + 68: uint16(27219), + 69: uint16(27529), + 70: uint16(27957), + 71: uint16(28147), + 72: uint16(29667), + 73: uint16(30462), + 74: uint16(30636), + 75: uint16(31565), + 76: uint16(32020), + 77: uint16(33059), + 78: uint16(33308), + 79: uint16(33600), + 80: uint16(34036), + 81: uint16(34147), + 82: uint16(35426), + 83: uint16(35524), + 84: uint16(37255), + 85: uint16(37662), + 86: uint16(38918), + 87: uint16(39348), + 88: uint16(25100), + 89: uint16(34899), + 90: uint16(36848), + 91: uint16(37477), + 92: uint16(23815), + 93: uint16(23847), + }, + 66: { + 0: uint16(23913), + 1: uint16(29791), + 2: uint16(33181), + 3: uint16(34664), + 4: uint16(28629), + 5: uint16(25342), + 6: uint16(32722), + 7: uint16(35126), + 8: uint16(35186), + 9: uint16(19998), + 10: uint16(20056), + 11: uint16(20711), + 12: uint16(21213), + 13: uint16(21319), + 14: uint16(25215), + 15: uint16(26119), + 16: uint16(32361), + 17: uint16(34821), + 18: uint16(38494), + 19: uint16(20365), + 20: uint16(21273), + 21: uint16(22070), + 22: uint16(22987), + 23: uint16(23204), + 24: uint16(23608), + 25: uint16(23630), + 26: uint16(23629), + 27: uint16(24066), + 28: uint16(24337), + 29: uint16(24643), + 30: uint16(26045), + 31: uint16(26159), + 32: uint16(26178), + 33: uint16(26558), + 34: uint16(26612), + 35: uint16(29468), + 36: uint16(30690), + 37: uint16(31034), + 38: uint16(32709), + 39: uint16(33940), + 40: uint16(33997), + 41: uint16(35222), + 42: uint16(35430), + 43: uint16(35433), + 44: uint16(35553), + 45: uint16(35925), + 46: uint16(35962), + 47: uint16(22516), + 48: uint16(23508), + 49: uint16(24335), + 50: uint16(24687), + 51: uint16(25325), + 52: uint16(26893), + 53: uint16(27542), + 54: uint16(28252), + 55: uint16(29060), + 56: uint16(31698), + 57: uint16(34645), + 58: uint16(35672), + 59: uint16(36606), + 60: uint16(39135), + 61: uint16(39166), + 62: uint16(20280), + 63: uint16(20353), + 64: uint16(20449), + 65: uint16(21627), + 66: uint16(23072), + 67: uint16(23480), + 68: uint16(24892), + 69: uint16(26032), + 70: uint16(26216), + 71: uint16(29180), + 72: uint16(30003), + 73: uint16(31070), + 74: uint16(32051), + 75: uint16(33102), + 76: uint16(33251), + 77: uint16(33688), + 78: uint16(34218), + 79: uint16(34254), + 80: uint16(34563), + 81: uint16(35338), + 82: uint16(36523), + 83: uint16(36763), + 84: uint16(63857), + 85: uint16(36805), + 86: uint16(22833), + 87: uint16(23460), + 88: uint16(23526), + 89: uint16(24713), + 90: uint16(23529), + 91: uint16(23563), + 92: uint16(24515), + 93: uint16(27777), + }, + 67: { + 0: uint16(63858), + 1: uint16(28145), + 2: uint16(28683), + 3: uint16(29978), + 4: uint16(33455), + 5: uint16(35574), + 6: uint16(20160), + 7: uint16(21313), + 8: uint16(63859), + 9: uint16(38617), + 10: uint16(27663), + 11: uint16(20126), + 12: uint16(20420), + 13: uint16(20818), + 14: uint16(21854), + 15: uint16(23077), + 16: uint16(23784), + 17: uint16(25105), + 18: uint16(29273), + 19: uint16(33469), + 20: uint16(33706), + 21: uint16(34558), + 22: uint16(34905), + 23: uint16(35357), + 24: uint16(38463), + 25: uint16(38597), + 26: uint16(39187), + 27: uint16(40201), + 28: uint16(40285), + 29: uint16(22538), + 30: uint16(23731), + 31: uint16(23997), + 32: uint16(24132), + 33: uint16(24801), + 34: uint16(24853), + 35: uint16(25569), + 36: uint16(27138), + 37: uint16(28197), + 38: uint16(37122), + 39: uint16(37716), + 40: uint16(38990), + 41: uint16(39952), + 42: uint16(40823), + 43: uint16(23433), + 44: uint16(23736), + 45: uint16(25353), + 46: uint16(26191), + 47: uint16(26696), + 48: uint16(30524), + 49: uint16(38593), + 50: uint16(38797), + 51: uint16(38996), + 52: uint16(39839), + 53: uint16(26017), + 54: uint16(35585), + 55: uint16(36555), + 56: uint16(38332), + 57: uint16(21813), + 58: uint16(23721), + 59: uint16(24022), + 60: uint16(24245), + 61: uint16(26263), + 62: uint16(30284), + 63: uint16(33780), + 64: uint16(38343), + 65: uint16(22739), + 66: uint16(25276), + 67: uint16(29390), + 68: uint16(40232), + 69: uint16(20208), + 70: uint16(22830), + 71: uint16(24591), + 72: uint16(26171), + 73: uint16(27523), + 74: uint16(31207), + 75: uint16(40230), + 76: uint16(21395), + 77: uint16(21696), + 78: uint16(22467), + 79: uint16(23830), + 80: uint16(24859), + 81: uint16(26326), + 82: uint16(28079), + 83: uint16(30861), + 84: uint16(33406), + 85: uint16(38552), + 86: uint16(38724), + 87: uint16(21380), + 88: uint16(25212), + 89: uint16(25494), + 90: uint16(28082), + 91: uint16(32266), + 92: uint16(33099), + 93: uint16(38989), + }, + 68: { + 0: uint16(27387), + 1: uint16(32588), + 2: uint16(40367), + 3: uint16(40474), + 4: uint16(20063), + 5: uint16(20539), + 6: uint16(20918), + 7: uint16(22812), + 8: uint16(24825), + 9: uint16(25590), + 10: uint16(26928), + 11: uint16(29242), + 12: uint16(32822), + 13: uint16(63860), + 14: uint16(37326), + 15: uint16(24369), + 16: uint16(63861), + 17: uint16(63862), + 18: uint16(32004), + 19: uint16(33509), + 20: uint16(33903), + 21: uint16(33979), + 22: uint16(34277), + 23: uint16(36493), + 24: uint16(63863), + 25: uint16(20335), + 26: uint16(63864), + 27: uint16(63865), + 28: uint16(22756), + 29: uint16(23363), + 30: uint16(24665), + 31: uint16(25562), + 32: uint16(25880), + 33: uint16(25965), + 34: uint16(26264), + 35: uint16(63866), + 36: uint16(26954), + 37: uint16(27171), + 38: uint16(27915), + 39: uint16(28673), + 40: uint16(29036), + 41: uint16(30162), + 42: uint16(30221), + 43: uint16(31155), + 44: uint16(31344), + 45: uint16(63867), + 46: uint16(32650), + 47: uint16(63868), + 48: uint16(35140), + 49: uint16(63869), + 50: uint16(35731), + 51: uint16(37312), + 52: uint16(38525), + 53: uint16(63870), + 54: uint16(39178), + 55: uint16(22276), + 56: uint16(24481), + 57: uint16(26044), + 58: uint16(28417), + 59: uint16(30208), + 60: uint16(31142), + 61: uint16(35486), + 62: uint16(39341), + 63: uint16(39770), + 64: uint16(40812), + 65: uint16(20740), + 66: uint16(25014), + 67: uint16(25233), + 68: uint16(27277), + 69: uint16(33222), + 70: uint16(20547), + 71: uint16(22576), + 72: uint16(24422), + 73: uint16(28937), + 74: uint16(35328), + 75: uint16(35578), + 76: uint16(23420), + 77: uint16(34326), + 78: uint16(20474), + 79: uint16(20796), + 80: uint16(22196), + 81: uint16(22852), + 82: uint16(25513), + 83: uint16(28153), + 84: uint16(23978), + 85: uint16(26989), + 86: uint16(20870), + 87: uint16(20104), + 88: uint16(20313), + 89: uint16(63871), + 90: uint16(63872), + 91: uint16(63873), + 92: uint16(22914), + 93: uint16(63874), + }, + 69: { + 0: uint16(63875), + 1: uint16(27487), + 2: uint16(27741), + 3: uint16(63876), + 4: uint16(29877), + 5: uint16(30998), + 6: uint16(63877), + 7: uint16(33287), + 8: uint16(33349), + 9: uint16(33593), + 10: uint16(36671), + 11: uint16(36701), + 12: uint16(63878), + 13: uint16(39192), + 14: uint16(63879), + 15: uint16(63880), + 16: uint16(63881), + 17: uint16(20134), + 18: uint16(63882), + 19: uint16(22495), + 20: uint16(24441), + 21: uint16(26131), + 22: uint16(63883), + 23: uint16(63884), + 24: uint16(30123), + 25: uint16(32377), + 26: uint16(35695), + 27: uint16(63885), + 28: uint16(36870), + 29: uint16(39515), + 30: uint16(22181), + 31: uint16(22567), + 32: uint16(23032), + 33: uint16(23071), + 34: uint16(23476), + 35: uint16(63886), + 36: uint16(24310), + 37: uint16(63887), + 38: uint16(63888), + 39: uint16(25424), + 40: uint16(25403), + 41: uint16(63889), + 42: uint16(26941), + 43: uint16(27783), + 44: uint16(27839), + 45: uint16(28046), + 46: uint16(28051), + 47: uint16(28149), + 48: uint16(28436), + 49: uint16(63890), + 50: uint16(28895), + 51: uint16(28982), + 52: uint16(29017), + 53: uint16(63891), + 54: uint16(29123), + 55: uint16(29141), + 56: uint16(63892), + 57: uint16(30799), + 58: uint16(30831), + 59: uint16(63893), + 60: uint16(31605), + 61: uint16(32227), + 62: uint16(63894), + 63: uint16(32303), + 64: uint16(63895), + 65: uint16(34893), + 66: uint16(36575), + 67: uint16(63896), + 68: uint16(63897), + 69: uint16(63898), + 70: uint16(37467), + 71: uint16(63899), + 72: uint16(40182), + 73: uint16(63900), + 74: uint16(63901), + 75: uint16(63902), + 76: uint16(24709), + 77: uint16(28037), + 78: uint16(63903), + 79: uint16(29105), + 80: uint16(63904), + 81: uint16(63905), + 82: uint16(38321), + 83: uint16(21421), + 84: uint16(63906), + 85: uint16(63907), + 86: uint16(63908), + 87: uint16(26579), + 88: uint16(63909), + 89: uint16(28814), + 90: uint16(28976), + 91: uint16(29744), + 92: uint16(33398), + 93: uint16(33490), + }, + 70: { + 0: uint16(63910), + 1: uint16(38331), + 2: uint16(39653), + 3: uint16(40573), + 4: uint16(26308), + 5: uint16(63911), + 6: uint16(29121), + 7: uint16(33865), + 8: uint16(63912), + 9: uint16(63913), + 10: uint16(22603), + 11: uint16(63914), + 12: uint16(63915), + 13: uint16(23992), + 14: uint16(24433), + 15: uint16(63916), + 16: uint16(26144), + 17: uint16(26254), + 18: uint16(27001), + 19: uint16(27054), + 20: uint16(27704), + 21: uint16(27891), + 22: uint16(28214), + 23: uint16(28481), + 24: uint16(28634), + 25: uint16(28699), + 26: uint16(28719), + 27: uint16(29008), + 28: uint16(29151), + 29: uint16(29552), + 30: uint16(63917), + 31: uint16(29787), + 32: uint16(63918), + 33: uint16(29908), + 34: uint16(30408), + 35: uint16(31310), + 36: uint16(32403), + 37: uint16(63919), + 38: uint16(63920), + 39: uint16(33521), + 40: uint16(35424), + 41: uint16(36814), + 42: uint16(63921), + 43: uint16(37704), + 44: uint16(63922), + 45: uint16(38681), + 46: uint16(63923), + 47: uint16(63924), + 48: uint16(20034), + 49: uint16(20522), + 50: uint16(63925), + 51: uint16(21000), + 52: uint16(21473), + 53: uint16(26355), + 54: uint16(27757), + 55: uint16(28618), + 56: uint16(29450), + 57: uint16(30591), + 58: uint16(31330), + 59: uint16(33454), + 60: uint16(34269), + 61: uint16(34306), + 62: uint16(63926), + 63: uint16(35028), + 64: uint16(35427), + 65: uint16(35709), + 66: uint16(35947), + 67: uint16(63927), + 68: uint16(37555), + 69: uint16(63928), + 70: uint16(38675), + 71: uint16(38928), + 72: uint16(20116), + 73: uint16(20237), + 74: uint16(20425), + 75: uint16(20658), + 76: uint16(21320), + 77: uint16(21566), + 78: uint16(21555), + 79: uint16(21978), + 80: uint16(22626), + 81: uint16(22714), + 82: uint16(22887), + 83: uint16(23067), + 84: uint16(23524), + 85: uint16(24735), + 86: uint16(63929), + 87: uint16(25034), + 88: uint16(25942), + 89: uint16(26111), + 90: uint16(26212), + 91: uint16(26791), + 92: uint16(27738), + 93: uint16(28595), + }, + 71: { + 0: uint16(28879), + 1: uint16(29100), + 2: uint16(29522), + 3: uint16(31613), + 4: uint16(34568), + 5: uint16(35492), + 6: uint16(39986), + 7: uint16(40711), + 8: uint16(23627), + 9: uint16(27779), + 10: uint16(29508), + 11: uint16(29577), + 12: uint16(37434), + 13: uint16(28331), + 14: uint16(29797), + 15: uint16(30239), + 16: uint16(31337), + 17: uint16(32277), + 18: uint16(34314), + 19: uint16(20800), + 20: uint16(22725), + 21: uint16(25793), + 22: uint16(29934), + 23: uint16(29973), + 24: uint16(30320), + 25: uint16(32705), + 26: uint16(37013), + 27: uint16(38605), + 28: uint16(39252), + 29: uint16(28198), + 30: uint16(29926), + 31: uint16(31401), + 32: uint16(31402), + 33: uint16(33253), + 34: uint16(34521), + 35: uint16(34680), + 36: uint16(35355), + 37: uint16(23113), + 38: uint16(23436), + 39: uint16(23451), + 40: uint16(26785), + 41: uint16(26880), + 42: uint16(28003), + 43: uint16(29609), + 44: uint16(29715), + 45: uint16(29740), + 46: uint16(30871), + 47: uint16(32233), + 48: uint16(32747), + 49: uint16(33048), + 50: uint16(33109), + 51: uint16(33694), + 52: uint16(35916), + 53: uint16(38446), + 54: uint16(38929), + 55: uint16(26352), + 56: uint16(24448), + 57: uint16(26106), + 58: uint16(26505), + 59: uint16(27754), + 60: uint16(29579), + 61: uint16(20525), + 62: uint16(23043), + 63: uint16(27498), + 64: uint16(30702), + 65: uint16(22806), + 66: uint16(23916), + 67: uint16(24013), + 68: uint16(29477), + 69: uint16(30031), + 70: uint16(63930), + 71: uint16(63931), + 72: uint16(20709), + 73: uint16(20985), + 74: uint16(22575), + 75: uint16(22829), + 76: uint16(22934), + 77: uint16(23002), + 78: uint16(23525), + 79: uint16(63932), + 80: uint16(63933), + 81: uint16(23970), + 82: uint16(25303), + 83: uint16(25622), + 84: uint16(25747), + 85: uint16(25854), + 86: uint16(63934), + 87: uint16(26332), + 88: uint16(63935), + 89: uint16(27208), + 90: uint16(63936), + 91: uint16(29183), + 92: uint16(29796), + 93: uint16(63937), + }, + 72: { + 0: uint16(31368), + 1: uint16(31407), + 2: uint16(32327), + 3: uint16(32350), + 4: uint16(32768), + 5: uint16(33136), + 6: uint16(63938), + 7: uint16(34799), + 8: uint16(35201), + 9: uint16(35616), + 10: uint16(36953), + 11: uint16(63939), + 12: uint16(36992), + 13: uint16(39250), + 14: uint16(24958), + 15: uint16(27442), + 16: uint16(28020), + 17: uint16(32287), + 18: uint16(35109), + 19: uint16(36785), + 20: uint16(20433), + 21: uint16(20653), + 22: uint16(20887), + 23: uint16(21191), + 24: uint16(22471), + 25: uint16(22665), + 26: uint16(23481), + 27: uint16(24248), + 28: uint16(24898), + 29: uint16(27029), + 30: uint16(28044), + 31: uint16(28263), + 32: uint16(28342), + 33: uint16(29076), + 34: uint16(29794), + 35: uint16(29992), + 36: uint16(29996), + 37: uint16(32883), + 38: uint16(33592), + 39: uint16(33993), + 40: uint16(36362), + 41: uint16(37780), + 42: uint16(37854), + 43: uint16(63940), + 44: uint16(20110), + 45: uint16(20305), + 46: uint16(20598), + 47: uint16(20778), + 48: uint16(21448), + 49: uint16(21451), + 50: uint16(21491), + 51: uint16(23431), + 52: uint16(23507), + 53: uint16(23588), + 54: uint16(24858), + 55: uint16(24962), + 56: uint16(26100), + 57: uint16(29275), + 58: uint16(29591), + 59: uint16(29760), + 60: uint16(30402), + 61: uint16(31056), + 62: uint16(31121), + 63: uint16(31161), + 64: uint16(32006), + 65: uint16(32701), + 66: uint16(33419), + 67: uint16(34261), + 68: uint16(34398), + 69: uint16(36802), + 70: uint16(36935), + 71: uint16(37109), + 72: uint16(37354), + 73: uint16(38533), + 74: uint16(38632), + 75: uint16(38633), + 76: uint16(21206), + 77: uint16(24423), + 78: uint16(26093), + 79: uint16(26161), + 80: uint16(26671), + 81: uint16(29020), + 82: uint16(31286), + 83: uint16(37057), + 84: uint16(38922), + 85: uint16(20113), + 86: uint16(63941), + 87: uint16(27218), + 88: uint16(27550), + 89: uint16(28560), + 90: uint16(29065), + 91: uint16(32792), + 92: uint16(33464), + 93: uint16(34131), + }, + 73: { + 0: uint16(36939), + 1: uint16(38549), + 2: uint16(38642), + 3: uint16(38907), + 4: uint16(34074), + 5: uint16(39729), + 6: uint16(20112), + 7: uint16(29066), + 8: uint16(38596), + 9: uint16(20803), + 10: uint16(21407), + 11: uint16(21729), + 12: uint16(22291), + 13: uint16(22290), + 14: uint16(22435), + 15: uint16(23195), + 16: uint16(23236), + 17: uint16(23491), + 18: uint16(24616), + 19: uint16(24895), + 20: uint16(25588), + 21: uint16(27781), + 22: uint16(27961), + 23: uint16(28274), + 24: uint16(28304), + 25: uint16(29232), + 26: uint16(29503), + 27: uint16(29783), + 28: uint16(33489), + 29: uint16(34945), + 30: uint16(36677), + 31: uint16(36960), + 32: uint16(63942), + 33: uint16(38498), + 34: uint16(39000), + 35: uint16(40219), + 36: uint16(26376), + 37: uint16(36234), + 38: uint16(37470), + 39: uint16(20301), + 40: uint16(20553), + 41: uint16(20702), + 42: uint16(21361), + 43: uint16(22285), + 44: uint16(22996), + 45: uint16(23041), + 46: uint16(23561), + 47: uint16(24944), + 48: uint16(26256), + 49: uint16(28205), + 50: uint16(29234), + 51: uint16(29771), + 52: uint16(32239), + 53: uint16(32963), + 54: uint16(33806), + 55: uint16(33894), + 56: uint16(34111), + 57: uint16(34655), + 58: uint16(34907), + 59: uint16(35096), + 60: uint16(35586), + 61: uint16(36949), + 62: uint16(38859), + 63: uint16(39759), + 64: uint16(20083), + 65: uint16(20369), + 66: uint16(20754), + 67: uint16(20842), + 68: uint16(63943), + 69: uint16(21807), + 70: uint16(21929), + 71: uint16(23418), + 72: uint16(23461), + 73: uint16(24188), + 74: uint16(24189), + 75: uint16(24254), + 76: uint16(24736), + 77: uint16(24799), + 78: uint16(24840), + 79: uint16(24841), + 80: uint16(25540), + 81: uint16(25912), + 82: uint16(26377), + 83: uint16(63944), + 84: uint16(26580), + 85: uint16(26586), + 86: uint16(63945), + 87: uint16(26977), + 88: uint16(26978), + 89: uint16(27833), + 90: uint16(27943), + 91: uint16(63946), + 92: uint16(28216), + 93: uint16(63947), + }, + 74: { + 0: uint16(28641), + 1: uint16(29494), + 2: uint16(29495), + 3: uint16(63948), + 4: uint16(29788), + 5: uint16(30001), + 6: uint16(63949), + 7: uint16(30290), + 8: uint16(63950), + 9: uint16(63951), + 10: uint16(32173), + 11: uint16(33278), + 12: uint16(33848), + 13: uint16(35029), + 14: uint16(35480), + 15: uint16(35547), + 16: uint16(35565), + 17: uint16(36400), + 18: uint16(36418), + 19: uint16(36938), + 20: uint16(36926), + 21: uint16(36986), + 22: uint16(37193), + 23: uint16(37321), + 24: uint16(37742), + 25: uint16(63952), + 26: uint16(63953), + 27: uint16(22537), + 28: uint16(63954), + 29: uint16(27603), + 30: uint16(32905), + 31: uint16(32946), + 32: uint16(63955), + 33: uint16(63956), + 34: uint16(20801), + 35: uint16(22891), + 36: uint16(23609), + 37: uint16(63957), + 38: uint16(63958), + 39: uint16(28516), + 40: uint16(29607), + 41: uint16(32996), + 42: uint16(36103), + 43: uint16(63959), + 44: uint16(37399), + 45: uint16(38287), + 46: uint16(63960), + 47: uint16(63961), + 48: uint16(63962), + 49: uint16(63963), + 50: uint16(32895), + 51: uint16(25102), + 52: uint16(28700), + 53: uint16(32104), + 54: uint16(34701), + 55: uint16(63964), + 56: uint16(22432), + 57: uint16(24681), + 58: uint16(24903), + 59: uint16(27575), + 60: uint16(35518), + 61: uint16(37504), + 62: uint16(38577), + 63: uint16(20057), + 64: uint16(21535), + 65: uint16(28139), + 66: uint16(34093), + 67: uint16(38512), + 68: uint16(38899), + 69: uint16(39150), + 70: uint16(25558), + 71: uint16(27875), + 72: uint16(37009), + 73: uint16(20957), + 74: uint16(25033), + 75: uint16(33210), + 76: uint16(40441), + 77: uint16(20381), + 78: uint16(20506), + 79: uint16(20736), + 80: uint16(23452), + 81: uint16(24847), + 82: uint16(25087), + 83: uint16(25836), + 84: uint16(26885), + 85: uint16(27589), + 86: uint16(30097), + 87: uint16(30691), + 88: uint16(32681), + 89: uint16(33380), + 90: uint16(34191), + 91: uint16(34811), + 92: uint16(34915), + 93: uint16(35516), + }, + 75: { + 0: uint16(35696), + 1: uint16(37291), + 2: uint16(20108), + 3: uint16(20197), + 4: uint16(20234), + 5: uint16(63965), + 6: uint16(63966), + 7: uint16(22839), + 8: uint16(23016), + 9: uint16(63967), + 10: uint16(24050), + 11: uint16(24347), + 12: uint16(24411), + 13: uint16(24609), + 14: uint16(63968), + 15: uint16(63969), + 16: uint16(63970), + 17: uint16(63971), + 18: uint16(29246), + 19: uint16(29669), + 20: uint16(63972), + 21: uint16(30064), + 22: uint16(30157), + 23: uint16(63973), + 24: uint16(31227), + 25: uint16(63974), + 26: uint16(32780), + 27: uint16(32819), + 28: uint16(32900), + 29: uint16(33505), + 30: uint16(33617), + 31: uint16(63975), + 32: uint16(63976), + 33: uint16(36029), + 34: uint16(36019), + 35: uint16(36999), + 36: uint16(63977), + 37: uint16(63978), + 38: uint16(39156), + 39: uint16(39180), + 40: uint16(63979), + 41: uint16(63980), + 42: uint16(28727), + 43: uint16(30410), + 44: uint16(32714), + 45: uint16(32716), + 46: uint16(32764), + 47: uint16(35610), + 48: uint16(20154), + 49: uint16(20161), + 50: uint16(20995), + 51: uint16(21360), + 52: uint16(63981), + 53: uint16(21693), + 54: uint16(22240), + 55: uint16(23035), + 56: uint16(23493), + 57: uint16(24341), + 58: uint16(24525), + 59: uint16(28270), + 60: uint16(63982), + 61: uint16(63983), + 62: uint16(32106), + 63: uint16(33589), + 64: uint16(63984), + 65: uint16(34451), + 66: uint16(35469), + 67: uint16(63985), + 68: uint16(38765), + 69: uint16(38775), + 70: uint16(63986), + 71: uint16(63987), + 72: uint16(19968), + 73: uint16(20314), + 74: uint16(20350), + 75: uint16(22777), + 76: uint16(26085), + 77: uint16(28322), + 78: uint16(36920), + 79: uint16(37808), + 80: uint16(39353), + 81: uint16(20219), + 82: uint16(22764), + 83: uint16(22922), + 84: uint16(23001), + 85: uint16(24641), + 86: uint16(63988), + 87: uint16(63989), + 88: uint16(31252), + 89: uint16(63990), + 90: uint16(33615), + 91: uint16(36035), + 92: uint16(20837), + 93: uint16(21316), + }, + 76: { + 0: uint16(63991), + 1: uint16(63992), + 2: uint16(63993), + 3: uint16(20173), + 4: uint16(21097), + 5: uint16(23381), + 6: uint16(33471), + 7: uint16(20180), + 8: uint16(21050), + 9: uint16(21672), + 10: uint16(22985), + 11: uint16(23039), + 12: uint16(23376), + 13: uint16(23383), + 14: uint16(23388), + 15: uint16(24675), + 16: uint16(24904), + 17: uint16(28363), + 18: uint16(28825), + 19: uint16(29038), + 20: uint16(29574), + 21: uint16(29943), + 22: uint16(30133), + 23: uint16(30913), + 24: uint16(32043), + 25: uint16(32773), + 26: uint16(33258), + 27: uint16(33576), + 28: uint16(34071), + 29: uint16(34249), + 30: uint16(35566), + 31: uint16(36039), + 32: uint16(38604), + 33: uint16(20316), + 34: uint16(21242), + 35: uint16(22204), + 36: uint16(26027), + 37: uint16(26152), + 38: uint16(28796), + 39: uint16(28856), + 40: uint16(29237), + 41: uint16(32189), + 42: uint16(33421), + 43: uint16(37196), + 44: uint16(38592), + 45: uint16(40306), + 46: uint16(23409), + 47: uint16(26855), + 48: uint16(27544), + 49: uint16(28538), + 50: uint16(30430), + 51: uint16(23697), + 52: uint16(26283), + 53: uint16(28507), + 54: uint16(31668), + 55: uint16(31786), + 56: uint16(34870), + 57: uint16(38620), + 58: uint16(19976), + 59: uint16(20183), + 60: uint16(21280), + 61: uint16(22580), + 62: uint16(22715), + 63: uint16(22767), + 64: uint16(22892), + 65: uint16(23559), + 66: uint16(24115), + 67: uint16(24196), + 68: uint16(24373), + 69: uint16(25484), + 70: uint16(26290), + 71: uint16(26454), + 72: uint16(27167), + 73: uint16(27299), + 74: uint16(27404), + 75: uint16(28479), + 76: uint16(29254), + 77: uint16(63994), + 78: uint16(29520), + 79: uint16(29835), + 80: uint16(31456), + 81: uint16(31911), + 82: uint16(33144), + 83: uint16(33247), + 84: uint16(33255), + 85: uint16(33674), + 86: uint16(33900), + 87: uint16(34083), + 88: uint16(34196), + 89: uint16(34255), + 90: uint16(35037), + 91: uint16(36115), + 92: uint16(37292), + 93: uint16(38263), + }, + 77: { + 0: uint16(38556), + 1: uint16(20877), + 2: uint16(21705), + 3: uint16(22312), + 4: uint16(23472), + 5: uint16(25165), + 6: uint16(26448), + 7: uint16(26685), + 8: uint16(26771), + 9: uint16(28221), + 10: uint16(28371), + 11: uint16(28797), + 12: uint16(32289), + 13: uint16(35009), + 14: uint16(36001), + 15: uint16(36617), + 16: uint16(40779), + 17: uint16(40782), + 18: uint16(29229), + 19: uint16(31631), + 20: uint16(35533), + 21: uint16(37658), + 22: uint16(20295), + 23: uint16(20302), + 24: uint16(20786), + 25: uint16(21632), + 26: uint16(22992), + 27: uint16(24213), + 28: uint16(25269), + 29: uint16(26485), + 30: uint16(26990), + 31: uint16(27159), + 32: uint16(27822), + 33: uint16(28186), + 34: uint16(29401), + 35: uint16(29482), + 36: uint16(30141), + 37: uint16(31672), + 38: uint16(32053), + 39: uint16(33511), + 40: uint16(33785), + 41: uint16(33879), + 42: uint16(34295), + 43: uint16(35419), + 44: uint16(36015), + 45: uint16(36487), + 46: uint16(36889), + 47: uint16(37048), + 48: uint16(38606), + 49: uint16(40799), + 50: uint16(21219), + 51: uint16(21514), + 52: uint16(23265), + 53: uint16(23490), + 54: uint16(25688), + 55: uint16(25973), + 56: uint16(28404), + 57: uint16(29380), + 58: uint16(63995), + 59: uint16(30340), + 60: uint16(31309), + 61: uint16(31515), + 62: uint16(31821), + 63: uint16(32318), + 64: uint16(32735), + 65: uint16(33659), + 66: uint16(35627), + 67: uint16(36042), + 68: uint16(36196), + 69: uint16(36321), + 70: uint16(36447), + 71: uint16(36842), + 72: uint16(36857), + 73: uint16(36969), + 74: uint16(37841), + 75: uint16(20291), + 76: uint16(20346), + 77: uint16(20659), + 78: uint16(20840), + 79: uint16(20856), + 80: uint16(21069), + 81: uint16(21098), + 82: uint16(22625), + 83: uint16(22652), + 84: uint16(22880), + 85: uint16(23560), + 86: uint16(23637), + 87: uint16(24283), + 88: uint16(24731), + 89: uint16(25136), + 90: uint16(26643), + 91: uint16(27583), + 92: uint16(27656), + 93: uint16(28593), + }, + 78: { + 0: uint16(29006), + 1: uint16(29728), + 2: uint16(30000), + 3: uint16(30008), + 4: uint16(30033), + 5: uint16(30322), + 6: uint16(31564), + 7: uint16(31627), + 8: uint16(31661), + 9: uint16(31686), + 10: uint16(32399), + 11: uint16(35438), + 12: uint16(36670), + 13: uint16(36681), + 14: uint16(37439), + 15: uint16(37523), + 16: uint16(37666), + 17: uint16(37931), + 18: uint16(38651), + 19: uint16(39002), + 20: uint16(39019), + 21: uint16(39198), + 22: uint16(20999), + 23: uint16(25130), + 24: uint16(25240), + 25: uint16(27993), + 26: uint16(30308), + 27: uint16(31434), + 28: uint16(31680), + 29: uint16(32118), + 30: uint16(21344), + 31: uint16(23742), + 32: uint16(24215), + 33: uint16(28472), + 34: uint16(28857), + 35: uint16(31896), + 36: uint16(38673), + 37: uint16(39822), + 38: uint16(40670), + 39: uint16(25509), + 40: uint16(25722), + 41: uint16(34678), + 42: uint16(19969), + 43: uint16(20117), + 44: uint16(20141), + 45: uint16(20572), + 46: uint16(20597), + 47: uint16(21576), + 48: uint16(22979), + 49: uint16(23450), + 50: uint16(24128), + 51: uint16(24237), + 52: uint16(24311), + 53: uint16(24449), + 54: uint16(24773), + 55: uint16(25402), + 56: uint16(25919), + 57: uint16(25972), + 58: uint16(26060), + 59: uint16(26230), + 60: uint16(26232), + 61: uint16(26622), + 62: uint16(26984), + 63: uint16(27273), + 64: uint16(27491), + 65: uint16(27712), + 66: uint16(28096), + 67: uint16(28136), + 68: uint16(28191), + 69: uint16(28254), + 70: uint16(28702), + 71: uint16(28833), + 72: uint16(29582), + 73: uint16(29693), + 74: uint16(30010), + 75: uint16(30555), + 76: uint16(30855), + 77: uint16(31118), + 78: uint16(31243), + 79: uint16(31357), + 80: uint16(31934), + 81: uint16(32142), + 82: uint16(33351), + 83: uint16(35330), + 84: uint16(35562), + 85: uint16(35998), + 86: uint16(37165), + 87: uint16(37194), + 88: uint16(37336), + 89: uint16(37478), + 90: uint16(37580), + 91: uint16(37664), + 92: uint16(38662), + 93: uint16(38742), + }, + 79: { + 0: uint16(38748), + 1: uint16(38914), + 2: uint16(40718), + 3: uint16(21046), + 4: uint16(21137), + 5: uint16(21884), + 6: uint16(22564), + 7: uint16(24093), + 8: uint16(24351), + 9: uint16(24716), + 10: uint16(25552), + 11: uint16(26799), + 12: uint16(28639), + 13: uint16(31085), + 14: uint16(31532), + 15: uint16(33229), + 16: uint16(34234), + 17: uint16(35069), + 18: uint16(35576), + 19: uint16(36420), + 20: uint16(37261), + 21: uint16(38500), + 22: uint16(38555), + 23: uint16(38717), + 24: uint16(38988), + 25: uint16(40778), + 26: uint16(20430), + 27: uint16(20806), + 28: uint16(20939), + 29: uint16(21161), + 30: uint16(22066), + 31: uint16(24340), + 32: uint16(24427), + 33: uint16(25514), + 34: uint16(25805), + 35: uint16(26089), + 36: uint16(26177), + 37: uint16(26362), + 38: uint16(26361), + 39: uint16(26397), + 40: uint16(26781), + 41: uint16(26839), + 42: uint16(27133), + 43: uint16(28437), + 44: uint16(28526), + 45: uint16(29031), + 46: uint16(29157), + 47: uint16(29226), + 48: uint16(29866), + 49: uint16(30522), + 50: uint16(31062), + 51: uint16(31066), + 52: uint16(31199), + 53: uint16(31264), + 54: uint16(31381), + 55: uint16(31895), + 56: uint16(31967), + 57: uint16(32068), + 58: uint16(32368), + 59: uint16(32903), + 60: uint16(34299), + 61: uint16(34468), + 62: uint16(35412), + 63: uint16(35519), + 64: uint16(36249), + 65: uint16(36481), + 66: uint16(36896), + 67: uint16(36973), + 68: uint16(37347), + 69: uint16(38459), + 70: uint16(38613), + 71: uint16(40165), + 72: uint16(26063), + 73: uint16(31751), + 74: uint16(36275), + 75: uint16(37827), + 76: uint16(23384), + 77: uint16(23562), + 78: uint16(21330), + 79: uint16(25305), + 80: uint16(29469), + 81: uint16(20519), + 82: uint16(23447), + 83: uint16(24478), + 84: uint16(24752), + 85: uint16(24939), + 86: uint16(26837), + 87: uint16(28121), + 88: uint16(29742), + 89: uint16(31278), + 90: uint16(32066), + 91: uint16(32156), + 92: uint16(32305), + 93: uint16(33131), + }, + 80: { + 0: uint16(36394), + 1: uint16(36405), + 2: uint16(37758), + 3: uint16(37912), + 4: uint16(20304), + 5: uint16(22352), + 6: uint16(24038), + 7: uint16(24231), + 8: uint16(25387), + 9: uint16(32618), + 10: uint16(20027), + 11: uint16(20303), + 12: uint16(20367), + 13: uint16(20570), + 14: uint16(23005), + 15: uint16(32964), + 16: uint16(21610), + 17: uint16(21608), + 18: uint16(22014), + 19: uint16(22863), + 20: uint16(23449), + 21: uint16(24030), + 22: uint16(24282), + 23: uint16(26205), + 24: uint16(26417), + 25: uint16(26609), + 26: uint16(26666), + 27: uint16(27880), + 28: uint16(27954), + 29: uint16(28234), + 30: uint16(28557), + 31: uint16(28855), + 32: uint16(29664), + 33: uint16(30087), + 34: uint16(31820), + 35: uint16(32002), + 36: uint16(32044), + 37: uint16(32162), + 38: uint16(33311), + 39: uint16(34523), + 40: uint16(35387), + 41: uint16(35461), + 42: uint16(36208), + 43: uint16(36490), + 44: uint16(36659), + 45: uint16(36913), + 46: uint16(37198), + 47: uint16(37202), + 48: uint16(37956), + 49: uint16(39376), + 50: uint16(31481), + 51: uint16(31909), + 52: uint16(20426), + 53: uint16(20737), + 54: uint16(20934), + 55: uint16(22472), + 56: uint16(23535), + 57: uint16(23803), + 58: uint16(26201), + 59: uint16(27197), + 60: uint16(27994), + 61: uint16(28310), + 62: uint16(28652), + 63: uint16(28940), + 64: uint16(30063), + 65: uint16(31459), + 66: uint16(34850), + 67: uint16(36897), + 68: uint16(36981), + 69: uint16(38603), + 70: uint16(39423), + 71: uint16(33537), + 72: uint16(20013), + 73: uint16(20210), + 74: uint16(34886), + 75: uint16(37325), + 76: uint16(21373), + 77: uint16(27355), + 78: uint16(26987), + 79: uint16(27713), + 80: uint16(33914), + 81: uint16(22686), + 82: uint16(24974), + 83: uint16(26366), + 84: uint16(25327), + 85: uint16(28893), + 86: uint16(29969), + 87: uint16(30151), + 88: uint16(32338), + 89: uint16(33976), + 90: uint16(35657), + 91: uint16(36104), + 92: uint16(20043), + 93: uint16(21482), + }, + 81: { + 0: uint16(21675), + 1: uint16(22320), + 2: uint16(22336), + 3: uint16(24535), + 4: uint16(25345), + 5: uint16(25351), + 6: uint16(25711), + 7: uint16(25903), + 8: uint16(26088), + 9: uint16(26234), + 10: uint16(26525), + 11: uint16(26547), + 12: uint16(27490), + 13: uint16(27744), + 14: uint16(27802), + 15: uint16(28460), + 16: uint16(30693), + 17: uint16(30757), + 18: uint16(31049), + 19: uint16(31063), + 20: uint16(32025), + 21: uint16(32930), + 22: uint16(33026), + 23: uint16(33267), + 24: uint16(33437), + 25: uint16(33463), + 26: uint16(34584), + 27: uint16(35468), + 28: uint16(63996), + 29: uint16(36100), + 30: uint16(36286), + 31: uint16(36978), + 32: uint16(30452), + 33: uint16(31257), + 34: uint16(31287), + 35: uint16(32340), + 36: uint16(32887), + 37: uint16(21767), + 38: uint16(21972), + 39: uint16(22645), + 40: uint16(25391), + 41: uint16(25634), + 42: uint16(26185), + 43: uint16(26187), + 44: uint16(26733), + 45: uint16(27035), + 46: uint16(27524), + 47: uint16(27941), + 48: uint16(28337), + 49: uint16(29645), + 50: uint16(29800), + 51: uint16(29857), + 52: uint16(30043), + 53: uint16(30137), + 54: uint16(30433), + 55: uint16(30494), + 56: uint16(30603), + 57: uint16(31206), + 58: uint16(32265), + 59: uint16(32285), + 60: uint16(33275), + 61: uint16(34095), + 62: uint16(34967), + 63: uint16(35386), + 64: uint16(36049), + 65: uint16(36587), + 66: uint16(36784), + 67: uint16(36914), + 68: uint16(37805), + 69: uint16(38499), + 70: uint16(38515), + 71: uint16(38663), + 72: uint16(20356), + 73: uint16(21489), + 74: uint16(23018), + 75: uint16(23241), + 76: uint16(24089), + 77: uint16(26702), + 78: uint16(29894), + 79: uint16(30142), + 80: uint16(31209), + 81: uint16(31378), + 82: uint16(33187), + 83: uint16(34541), + 84: uint16(36074), + 85: uint16(36300), + 86: uint16(36845), + 87: uint16(26015), + 88: uint16(26389), + 89: uint16(63997), + 90: uint16(22519), + 91: uint16(28503), + 92: uint16(32221), + 93: uint16(36655), + }, + 82: { + 0: uint16(37878), + 1: uint16(38598), + 2: uint16(24501), + 3: uint16(25074), + 4: uint16(28548), + 5: uint16(19988), + 6: uint16(20376), + 7: uint16(20511), + 8: uint16(21449), + 9: uint16(21983), + 10: uint16(23919), + 11: uint16(24046), + 12: uint16(27425), + 13: uint16(27492), + 14: uint16(30923), + 15: uint16(31642), + 16: uint16(63998), + 17: uint16(36425), + 18: uint16(36554), + 19: uint16(36974), + 20: uint16(25417), + 21: uint16(25662), + 22: uint16(30528), + 23: uint16(31364), + 24: uint16(37679), + 25: uint16(38015), + 26: uint16(40810), + 27: uint16(25776), + 28: uint16(28591), + 29: uint16(29158), + 30: uint16(29864), + 31: uint16(29914), + 32: uint16(31428), + 33: uint16(31762), + 34: uint16(32386), + 35: uint16(31922), + 36: uint16(32408), + 37: uint16(35738), + 38: uint16(36106), + 39: uint16(38013), + 40: uint16(39184), + 41: uint16(39244), + 42: uint16(21049), + 43: uint16(23519), + 44: uint16(25830), + 45: uint16(26413), + 46: uint16(32046), + 47: uint16(20717), + 48: uint16(21443), + 49: uint16(22649), + 50: uint16(24920), + 51: uint16(24921), + 52: uint16(25082), + 53: uint16(26028), + 54: uint16(31449), + 55: uint16(35730), + 56: uint16(35734), + 57: uint16(20489), + 58: uint16(20513), + 59: uint16(21109), + 60: uint16(21809), + 61: uint16(23100), + 62: uint16(24288), + 63: uint16(24432), + 64: uint16(24884), + 65: uint16(25950), + 66: uint16(26124), + 67: uint16(26166), + 68: uint16(26274), + 69: uint16(27085), + 70: uint16(28356), + 71: uint16(28466), + 72: uint16(29462), + 73: uint16(30241), + 74: uint16(31379), + 75: uint16(33081), + 76: uint16(33369), + 77: uint16(33750), + 78: uint16(33980), + 79: uint16(20661), + 80: uint16(22512), + 81: uint16(23488), + 82: uint16(23528), + 83: uint16(24425), + 84: uint16(25505), + 85: uint16(30758), + 86: uint16(32181), + 87: uint16(33756), + 88: uint16(34081), + 89: uint16(37319), + 90: uint16(37365), + 91: uint16(20874), + 92: uint16(26613), + 93: uint16(31574), + }, + 83: { + 0: uint16(36012), + 1: uint16(20932), + 2: uint16(22971), + 3: uint16(24765), + 4: uint16(34389), + 5: uint16(20508), + 6: uint16(63999), + 7: uint16(21076), + 8: uint16(23610), + 9: uint16(24957), + 10: uint16(25114), + 11: uint16(25299), + 12: uint16(25842), + 13: uint16(26021), + 14: uint16(28364), + 15: uint16(30240), + 16: uint16(33034), + 17: uint16(36448), + 18: uint16(38495), + 19: uint16(38587), + 20: uint16(20191), + 21: uint16(21315), + 22: uint16(21912), + 23: uint16(22825), + 24: uint16(24029), + 25: uint16(25797), + 26: uint16(27849), + 27: uint16(28154), + 28: uint16(29588), + 29: uint16(31359), + 30: uint16(33307), + 31: uint16(34214), + 32: uint16(36068), + 33: uint16(36368), + 34: uint16(36983), + 35: uint16(37351), + 36: uint16(38369), + 37: uint16(38433), + 38: uint16(38854), + 39: uint16(20984), + 40: uint16(21746), + 41: uint16(21894), + 42: uint16(24505), + 43: uint16(25764), + 44: uint16(28552), + 45: uint16(32180), + 46: uint16(36639), + 47: uint16(36685), + 48: uint16(37941), + 49: uint16(20681), + 50: uint16(23574), + 51: uint16(27838), + 52: uint16(28155), + 53: uint16(29979), + 54: uint16(30651), + 55: uint16(31805), + 56: uint16(31844), + 57: uint16(35449), + 58: uint16(35522), + 59: uint16(22558), + 60: uint16(22974), + 61: uint16(24086), + 62: uint16(25463), + 63: uint16(29266), + 64: uint16(30090), + 65: uint16(30571), + 66: uint16(35548), + 67: uint16(36028), + 68: uint16(36626), + 69: uint16(24307), + 70: uint16(26228), + 71: uint16(28152), + 72: uint16(32893), + 73: uint16(33729), + 74: uint16(35531), + 75: uint16(38737), + 76: uint16(39894), + 77: uint16(64000), + 78: uint16(21059), + 79: uint16(26367), + 80: uint16(28053), + 81: uint16(28399), + 82: uint16(32224), + 83: uint16(35558), + 84: uint16(36910), + 85: uint16(36958), + 86: uint16(39636), + 87: uint16(21021), + 88: uint16(21119), + 89: uint16(21736), + 90: uint16(24980), + 91: uint16(25220), + 92: uint16(25307), + 93: uint16(26786), + }, + 84: { + 0: uint16(26898), + 1: uint16(26970), + 2: uint16(27189), + 3: uint16(28818), + 4: uint16(28966), + 5: uint16(30813), + 6: uint16(30977), + 7: uint16(30990), + 8: uint16(31186), + 9: uint16(31245), + 10: uint16(32918), + 11: uint16(33400), + 12: uint16(33493), + 13: uint16(33609), + 14: uint16(34121), + 15: uint16(35970), + 16: uint16(36229), + 17: uint16(37218), + 18: uint16(37259), + 19: uint16(37294), + 20: uint16(20419), + 21: uint16(22225), + 22: uint16(29165), + 23: uint16(30679), + 24: uint16(34560), + 25: uint16(35320), + 26: uint16(23544), + 27: uint16(24534), + 28: uint16(26449), + 29: uint16(37032), + 30: uint16(21474), + 31: uint16(22618), + 32: uint16(23541), + 33: uint16(24740), + 34: uint16(24961), + 35: uint16(25696), + 36: uint16(32317), + 37: uint16(32880), + 38: uint16(34085), + 39: uint16(37507), + 40: uint16(25774), + 41: uint16(20652), + 42: uint16(23828), + 43: uint16(26368), + 44: uint16(22684), + 45: uint16(25277), + 46: uint16(25512), + 47: uint16(26894), + 48: uint16(27000), + 49: uint16(27166), + 50: uint16(28267), + 51: uint16(30394), + 52: uint16(31179), + 53: uint16(33467), + 54: uint16(33833), + 55: uint16(35535), + 56: uint16(36264), + 57: uint16(36861), + 58: uint16(37138), + 59: uint16(37195), + 60: uint16(37276), + 61: uint16(37648), + 62: uint16(37656), + 63: uint16(37786), + 64: uint16(38619), + 65: uint16(39478), + 66: uint16(39949), + 67: uint16(19985), + 68: uint16(30044), + 69: uint16(31069), + 70: uint16(31482), + 71: uint16(31569), + 72: uint16(31689), + 73: uint16(32302), + 74: uint16(33988), + 75: uint16(36441), + 76: uint16(36468), + 77: uint16(36600), + 78: uint16(36880), + 79: uint16(26149), + 80: uint16(26943), + 81: uint16(29763), + 82: uint16(20986), + 83: uint16(26414), + 84: uint16(40668), + 85: uint16(20805), + 86: uint16(24544), + 87: uint16(27798), + 88: uint16(34802), + 89: uint16(34909), + 90: uint16(34935), + 91: uint16(24756), + 92: uint16(33205), + 93: uint16(33795), + }, + 85: { + 0: uint16(36101), + 1: uint16(21462), + 2: uint16(21561), + 3: uint16(22068), + 4: uint16(23094), + 5: uint16(23601), + 6: uint16(28810), + 7: uint16(32736), + 8: uint16(32858), + 9: uint16(33030), + 10: uint16(33261), + 11: uint16(36259), + 12: uint16(37257), + 13: uint16(39519), + 14: uint16(40434), + 15: uint16(20596), + 16: uint16(20164), + 17: uint16(21408), + 18: uint16(24827), + 19: uint16(28204), + 20: uint16(23652), + 21: uint16(20360), + 22: uint16(20516), + 23: uint16(21988), + 24: uint16(23769), + 25: uint16(24159), + 26: uint16(24677), + 27: uint16(26772), + 28: uint16(27835), + 29: uint16(28100), + 30: uint16(29118), + 31: uint16(30164), + 32: uint16(30196), + 33: uint16(30305), + 34: uint16(31258), + 35: uint16(31305), + 36: uint16(32199), + 37: uint16(32251), + 38: uint16(32622), + 39: uint16(33268), + 40: uint16(34473), + 41: uint16(36636), + 42: uint16(38601), + 43: uint16(39347), + 44: uint16(40786), + 45: uint16(21063), + 46: uint16(21189), + 47: uint16(39149), + 48: uint16(35242), + 49: uint16(19971), + 50: uint16(26578), + 51: uint16(28422), + 52: uint16(20405), + 53: uint16(23522), + 54: uint16(26517), + 55: uint16(27784), + 56: uint16(28024), + 57: uint16(29723), + 58: uint16(30759), + 59: uint16(37341), + 60: uint16(37756), + 61: uint16(34756), + 62: uint16(31204), + 63: uint16(31281), + 64: uint16(24555), + 65: uint16(20182), + 66: uint16(21668), + 67: uint16(21822), + 68: uint16(22702), + 69: uint16(22949), + 70: uint16(24816), + 71: uint16(25171), + 72: uint16(25302), + 73: uint16(26422), + 74: uint16(26965), + 75: uint16(33333), + 76: uint16(38464), + 77: uint16(39345), + 78: uint16(39389), + 79: uint16(20524), + 80: uint16(21331), + 81: uint16(21828), + 82: uint16(22396), + 83: uint16(64001), + 84: uint16(25176), + 85: uint16(64002), + 86: uint16(25826), + 87: uint16(26219), + 88: uint16(26589), + 89: uint16(28609), + 90: uint16(28655), + 91: uint16(29730), + 92: uint16(29752), + 93: uint16(35351), + }, + 86: { + 0: uint16(37944), + 1: uint16(21585), + 2: uint16(22022), + 3: uint16(22374), + 4: uint16(24392), + 5: uint16(24986), + 6: uint16(27470), + 7: uint16(28760), + 8: uint16(28845), + 9: uint16(32187), + 10: uint16(35477), + 11: uint16(22890), + 12: uint16(33067), + 13: uint16(25506), + 14: uint16(30472), + 15: uint16(32829), + 16: uint16(36010), + 17: uint16(22612), + 18: uint16(25645), + 19: uint16(27067), + 20: uint16(23445), + 21: uint16(24081), + 22: uint16(28271), + 23: uint16(64003), + 24: uint16(34153), + 25: uint16(20812), + 26: uint16(21488), + 27: uint16(22826), + 28: uint16(24608), + 29: uint16(24907), + 30: uint16(27526), + 31: uint16(27760), + 32: uint16(27888), + 33: uint16(31518), + 34: uint16(32974), + 35: uint16(33492), + 36: uint16(36294), + 37: uint16(37040), + 38: uint16(39089), + 39: uint16(64004), + 40: uint16(25799), + 41: uint16(28580), + 42: uint16(25745), + 43: uint16(25860), + 44: uint16(20814), + 45: uint16(21520), + 46: uint16(22303), + 47: uint16(35342), + 48: uint16(24927), + 49: uint16(26742), + 50: uint16(64005), + 51: uint16(30171), + 52: uint16(31570), + 53: uint16(32113), + 54: uint16(36890), + 55: uint16(22534), + 56: uint16(27084), + 57: uint16(33151), + 58: uint16(35114), + 59: uint16(36864), + 60: uint16(38969), + 61: uint16(20600), + 62: uint16(22871), + 63: uint16(22956), + 64: uint16(25237), + 65: uint16(36879), + 66: uint16(39722), + 67: uint16(24925), + 68: uint16(29305), + 69: uint16(38358), + 70: uint16(22369), + 71: uint16(23110), + 72: uint16(24052), + 73: uint16(25226), + 74: uint16(25773), + 75: uint16(25850), + 76: uint16(26487), + 77: uint16(27874), + 78: uint16(27966), + 79: uint16(29228), + 80: uint16(29750), + 81: uint16(30772), + 82: uint16(32631), + 83: uint16(33453), + 84: uint16(36315), + 85: uint16(38935), + 86: uint16(21028), + 87: uint16(22338), + 88: uint16(26495), + 89: uint16(29256), + 90: uint16(29923), + 91: uint16(36009), + 92: uint16(36774), + 93: uint16(37393), + }, + 87: { + 0: uint16(38442), + 1: uint16(20843), + 2: uint16(21485), + 3: uint16(25420), + 4: uint16(20329), + 5: uint16(21764), + 6: uint16(24726), + 7: uint16(25943), + 8: uint16(27803), + 9: uint16(28031), + 10: uint16(29260), + 11: uint16(29437), + 12: uint16(31255), + 13: uint16(35207), + 14: uint16(35997), + 15: uint16(24429), + 16: uint16(28558), + 17: uint16(28921), + 18: uint16(33192), + 19: uint16(24846), + 20: uint16(20415), + 21: uint16(20559), + 22: uint16(25153), + 23: uint16(29255), + 24: uint16(31687), + 25: uint16(32232), + 26: uint16(32745), + 27: uint16(36941), + 28: uint16(38829), + 29: uint16(39449), + 30: uint16(36022), + 31: uint16(22378), + 32: uint16(24179), + 33: uint16(26544), + 34: uint16(33805), + 35: uint16(35413), + 36: uint16(21536), + 37: uint16(23318), + 38: uint16(24163), + 39: uint16(24290), + 40: uint16(24330), + 41: uint16(25987), + 42: uint16(32954), + 43: uint16(34109), + 44: uint16(38281), + 45: uint16(38491), + 46: uint16(20296), + 47: uint16(21253), + 48: uint16(21261), + 49: uint16(21263), + 50: uint16(21638), + 51: uint16(21754), + 52: uint16(22275), + 53: uint16(24067), + 54: uint16(24598), + 55: uint16(25243), + 56: uint16(25265), + 57: uint16(25429), + 58: uint16(64006), + 59: uint16(27873), + 60: uint16(28006), + 61: uint16(30129), + 62: uint16(30770), + 63: uint16(32990), + 64: uint16(33071), + 65: uint16(33502), + 66: uint16(33889), + 67: uint16(33970), + 68: uint16(34957), + 69: uint16(35090), + 70: uint16(36875), + 71: uint16(37610), + 72: uint16(39165), + 73: uint16(39825), + 74: uint16(24133), + 75: uint16(26292), + 76: uint16(26333), + 77: uint16(28689), + 78: uint16(29190), + 79: uint16(64007), + 80: uint16(20469), + 81: uint16(21117), + 82: uint16(24426), + 83: uint16(24915), + 84: uint16(26451), + 85: uint16(27161), + 86: uint16(28418), + 87: uint16(29922), + 88: uint16(31080), + 89: uint16(34920), + 90: uint16(35961), + 91: uint16(39111), + 92: uint16(39108), + 93: uint16(39491), + }, + 88: { + 0: uint16(21697), + 1: uint16(31263), + 2: uint16(26963), + 3: uint16(35575), + 4: uint16(35914), + 5: uint16(39080), + 6: uint16(39342), + 7: uint16(24444), + 8: uint16(25259), + 9: uint16(30130), + 10: uint16(30382), + 11: uint16(34987), + 12: uint16(36991), + 13: uint16(38466), + 14: uint16(21305), + 15: uint16(24380), + 16: uint16(24517), + 17: uint16(27852), + 18: uint16(29644), + 19: uint16(30050), + 20: uint16(30091), + 21: uint16(31558), + 22: uint16(33534), + 23: uint16(39325), + 24: uint16(20047), + 25: uint16(36924), + 26: uint16(19979), + 27: uint16(20309), + 28: uint16(21414), + 29: uint16(22799), + 30: uint16(24264), + 31: uint16(26160), + 32: uint16(27827), + 33: uint16(29781), + 34: uint16(33655), + 35: uint16(34662), + 36: uint16(36032), + 37: uint16(36944), + 38: uint16(38686), + 39: uint16(39957), + 40: uint16(22737), + 41: uint16(23416), + 42: uint16(34384), + 43: uint16(35604), + 44: uint16(40372), + 45: uint16(23506), + 46: uint16(24680), + 47: uint16(24717), + 48: uint16(26097), + 49: uint16(27735), + 50: uint16(28450), + 51: uint16(28579), + 52: uint16(28698), + 53: uint16(32597), + 54: uint16(32752), + 55: uint16(38289), + 56: uint16(38290), + 57: uint16(38480), + 58: uint16(38867), + 59: uint16(21106), + 60: uint16(36676), + 61: uint16(20989), + 62: uint16(21547), + 63: uint16(21688), + 64: uint16(21859), + 65: uint16(21898), + 66: uint16(27323), + 67: uint16(28085), + 68: uint16(32216), + 69: uint16(33382), + 70: uint16(37532), + 71: uint16(38519), + 72: uint16(40569), + 73: uint16(21512), + 74: uint16(21704), + 75: uint16(30418), + 76: uint16(34532), + 77: uint16(38308), + 78: uint16(38356), + 79: uint16(38492), + 80: uint16(20130), + 81: uint16(20233), + 82: uint16(23022), + 83: uint16(23270), + 84: uint16(24055), + 85: uint16(24658), + 86: uint16(25239), + 87: uint16(26477), + 88: uint16(26689), + 89: uint16(27782), + 90: uint16(28207), + 91: uint16(32568), + 92: uint16(32923), + 93: uint16(33322), + }, + 89: { + 0: uint16(64008), + 1: uint16(64009), + 2: uint16(38917), + 3: uint16(20133), + 4: uint16(20565), + 5: uint16(21683), + 6: uint16(22419), + 7: uint16(22874), + 8: uint16(23401), + 9: uint16(23475), + 10: uint16(25032), + 11: uint16(26999), + 12: uint16(28023), + 13: uint16(28707), + 14: uint16(34809), + 15: uint16(35299), + 16: uint16(35442), + 17: uint16(35559), + 18: uint16(36994), + 19: uint16(39405), + 20: uint16(39608), + 21: uint16(21182), + 22: uint16(26680), + 23: uint16(20502), + 24: uint16(24184), + 25: uint16(26447), + 26: uint16(33607), + 27: uint16(34892), + 28: uint16(20139), + 29: uint16(21521), + 30: uint16(22190), + 31: uint16(29670), + 32: uint16(37141), + 33: uint16(38911), + 34: uint16(39177), + 35: uint16(39255), + 36: uint16(39321), + 37: uint16(22099), + 38: uint16(22687), + 39: uint16(34395), + 40: uint16(35377), + 41: uint16(25010), + 42: uint16(27382), + 43: uint16(29563), + 44: uint16(36562), + 45: uint16(27463), + 46: uint16(38570), + 47: uint16(39511), + 48: uint16(22869), + 49: uint16(29184), + 50: uint16(36203), + 51: uint16(38761), + 52: uint16(20436), + 53: uint16(23796), + 54: uint16(24358), + 55: uint16(25080), + 56: uint16(26203), + 57: uint16(27883), + 58: uint16(28843), + 59: uint16(29572), + 60: uint16(29625), + 61: uint16(29694), + 62: uint16(30505), + 63: uint16(30541), + 64: uint16(32067), + 65: uint16(32098), + 66: uint16(32291), + 67: uint16(33335), + 68: uint16(34898), + 69: uint16(64010), + 70: uint16(36066), + 71: uint16(37449), + 72: uint16(39023), + 73: uint16(23377), + 74: uint16(31348), + 75: uint16(34880), + 76: uint16(38913), + 77: uint16(23244), + 78: uint16(20448), + 79: uint16(21332), + 80: uint16(22846), + 81: uint16(23805), + 82: uint16(25406), + 83: uint16(28025), + 84: uint16(29433), + 85: uint16(33029), + 86: uint16(33031), + 87: uint16(33698), + 88: uint16(37583), + 89: uint16(38960), + 90: uint16(20136), + 91: uint16(20804), + 92: uint16(21009), + 93: uint16(22411), + }, + 90: { + 0: uint16(24418), + 1: uint16(27842), + 2: uint16(28366), + 3: uint16(28677), + 4: uint16(28752), + 5: uint16(28847), + 6: uint16(29074), + 7: uint16(29673), + 8: uint16(29801), + 9: uint16(33610), + 10: uint16(34722), + 11: uint16(34913), + 12: uint16(36872), + 13: uint16(37026), + 14: uint16(37795), + 15: uint16(39336), + 16: uint16(20846), + 17: uint16(24407), + 18: uint16(24800), + 19: uint16(24935), + 20: uint16(26291), + 21: uint16(34137), + 22: uint16(36426), + 23: uint16(37295), + 24: uint16(38795), + 25: uint16(20046), + 26: uint16(20114), + 27: uint16(21628), + 28: uint16(22741), + 29: uint16(22778), + 30: uint16(22909), + 31: uint16(23733), + 32: uint16(24359), + 33: uint16(25142), + 34: uint16(25160), + 35: uint16(26122), + 36: uint16(26215), + 37: uint16(27627), + 38: uint16(28009), + 39: uint16(28111), + 40: uint16(28246), + 41: uint16(28408), + 42: uint16(28564), + 43: uint16(28640), + 44: uint16(28649), + 45: uint16(28765), + 46: uint16(29392), + 47: uint16(29733), + 48: uint16(29786), + 49: uint16(29920), + 50: uint16(30355), + 51: uint16(31068), + 52: uint16(31946), + 53: uint16(32286), + 54: uint16(32993), + 55: uint16(33446), + 56: uint16(33899), + 57: uint16(33983), + 58: uint16(34382), + 59: uint16(34399), + 60: uint16(34676), + 61: uint16(35703), + 62: uint16(35946), + 63: uint16(37804), + 64: uint16(38912), + 65: uint16(39013), + 66: uint16(24785), + 67: uint16(25110), + 68: uint16(37239), + 69: uint16(23130), + 70: uint16(26127), + 71: uint16(28151), + 72: uint16(28222), + 73: uint16(29759), + 74: uint16(39746), + 75: uint16(24573), + 76: uint16(24794), + 77: uint16(31503), + 78: uint16(21700), + 79: uint16(24344), + 80: uint16(27742), + 81: uint16(27859), + 82: uint16(27946), + 83: uint16(28888), + 84: uint16(32005), + 85: uint16(34425), + 86: uint16(35340), + 87: uint16(40251), + 88: uint16(21270), + 89: uint16(21644), + 90: uint16(23301), + 91: uint16(27194), + 92: uint16(28779), + 93: uint16(30069), + }, + 91: { + 0: uint16(31117), + 1: uint16(31166), + 2: uint16(33457), + 3: uint16(33775), + 4: uint16(35441), + 5: uint16(35649), + 6: uint16(36008), + 7: uint16(38772), + 8: uint16(64011), + 9: uint16(25844), + 10: uint16(25899), + 11: uint16(30906), + 12: uint16(30907), + 13: uint16(31339), + 14: uint16(20024), + 15: uint16(21914), + 16: uint16(22864), + 17: uint16(23462), + 18: uint16(24187), + 19: uint16(24739), + 20: uint16(25563), + 21: uint16(27489), + 22: uint16(26213), + 23: uint16(26707), + 24: uint16(28185), + 25: uint16(29029), + 26: uint16(29872), + 27: uint16(32008), + 28: uint16(36996), + 29: uint16(39529), + 30: uint16(39973), + 31: uint16(27963), + 32: uint16(28369), + 33: uint16(29502), + 34: uint16(35905), + 35: uint16(38346), + 36: uint16(20976), + 37: uint16(24140), + 38: uint16(24488), + 39: uint16(24653), + 40: uint16(24822), + 41: uint16(24880), + 42: uint16(24908), + 43: uint16(26179), + 44: uint16(26180), + 45: uint16(27045), + 46: uint16(27841), + 47: uint16(28255), + 48: uint16(28361), + 49: uint16(28514), + 50: uint16(29004), + 51: uint16(29852), + 52: uint16(30343), + 53: uint16(31681), + 54: uint16(31783), + 55: uint16(33618), + 56: uint16(34647), + 57: uint16(36945), + 58: uint16(38541), + 59: uint16(40643), + 60: uint16(21295), + 61: uint16(22238), + 62: uint16(24315), + 63: uint16(24458), + 64: uint16(24674), + 65: uint16(24724), + 66: uint16(25079), + 67: uint16(26214), + 68: uint16(26371), + 69: uint16(27292), + 70: uint16(28142), + 71: uint16(28590), + 72: uint16(28784), + 73: uint16(29546), + 74: uint16(32362), + 75: uint16(33214), + 76: uint16(33588), + 77: uint16(34516), + 78: uint16(35496), + 79: uint16(36036), + 80: uint16(21123), + 81: uint16(29554), + 82: uint16(23446), + 83: uint16(27243), + 84: uint16(37892), + 85: uint16(21742), + 86: uint16(22150), + 87: uint16(23389), + 88: uint16(25928), + 89: uint16(25989), + 90: uint16(26313), + 91: uint16(26783), + 92: uint16(28045), + 93: uint16(28102), + }, + 92: { + 0: uint16(29243), + 1: uint16(32948), + 2: uint16(37237), + 3: uint16(39501), + 4: uint16(20399), + 5: uint16(20505), + 6: uint16(21402), + 7: uint16(21518), + 8: uint16(21564), + 9: uint16(21897), + 10: uint16(21957), + 11: uint16(24127), + 12: uint16(24460), + 13: uint16(26429), + 14: uint16(29030), + 15: uint16(29661), + 16: uint16(36869), + 17: uint16(21211), + 18: uint16(21235), + 19: uint16(22628), + 20: uint16(22734), + 21: uint16(28932), + 22: uint16(29071), + 23: uint16(29179), + 24: uint16(34224), + 25: uint16(35347), + 26: uint16(26248), + 27: uint16(34216), + 28: uint16(21927), + 29: uint16(26244), + 30: uint16(29002), + 31: uint16(33841), + 32: uint16(21321), + 33: uint16(21913), + 34: uint16(27585), + 35: uint16(24409), + 36: uint16(24509), + 37: uint16(25582), + 38: uint16(26249), + 39: uint16(28999), + 40: uint16(35569), + 41: uint16(36637), + 42: uint16(40638), + 43: uint16(20241), + 44: uint16(25658), + 45: uint16(28875), + 46: uint16(30054), + 47: uint16(34407), + 48: uint16(24676), + 49: uint16(35662), + 50: uint16(40440), + 51: uint16(20807), + 52: uint16(20982), + 53: uint16(21256), + 54: uint16(27958), + 55: uint16(33016), + 56: uint16(40657), + 57: uint16(26133), + 58: uint16(27427), + 59: uint16(28824), + 60: uint16(30165), + 61: uint16(21507), + 62: uint16(23673), + 63: uint16(32007), + 64: uint16(35350), + 65: uint16(27424), + 66: uint16(27453), + 67: uint16(27462), + 68: uint16(21560), + 69: uint16(24688), + 70: uint16(27965), + 71: uint16(32725), + 72: uint16(33288), + 73: uint16(20694), + 74: uint16(20958), + 75: uint16(21916), + 76: uint16(22123), + 77: uint16(22221), + 78: uint16(23020), + 79: uint16(23305), + 80: uint16(24076), + 81: uint16(24985), + 82: uint16(24984), + 83: uint16(25137), + 84: uint16(26206), + 85: uint16(26342), + 86: uint16(29081), + 87: uint16(29113), + 88: uint16(29114), + 89: uint16(29351), + 90: uint16(31143), + 91: uint16(31232), + 92: uint16(32690), + 93: uint16(35440), + }, +} + +var _rev_jis = [6879]uint16{ + 0: uint16(31), + 1: uint16(80), + 2: uint16(81), + 3: uint16(87), + 4: uint16(14), + 5: uint16(299), + 6: uint16(74), + 7: uint16(61), + 8: uint16(12), + 9: uint16(344), + 10: uint16(62), + 11: uint16(63), + 12: uint16(1280), + 13: uint16(1281), + 14: uint16(1282), + 15: uint16(1283), + 16: uint16(1284), + 17: uint16(1285), + 18: uint16(1286), + 19: uint16(1287), + 20: uint16(1288), + 21: uint16(1289), + 22: uint16(1290), + 23: uint16(1291), + 24: uint16(1292), + 25: uint16(1293), + 26: uint16(1294), + 27: uint16(1295), + 28: uint16(1296), + 29: uint16(1297), + 30: uint16(1298), + 31: uint16(1299), + 32: uint16(1300), + 33: uint16(1301), + 34: uint16(1302), + 35: uint16(1303), + 36: uint16(1312), + 37: uint16(1313), + 38: uint16(1314), + 39: uint16(1315), + 40: uint16(1316), + 41: uint16(1317), + 42: uint16(1318), + 43: uint16(1319), + 44: uint16(1320), + 45: uint16(1321), + 46: uint16(1322), + 47: uint16(1323), + 48: uint16(1324), + 49: uint16(1325), + 50: uint16(1326), + 51: uint16(1327), + 52: uint16(1328), + 53: uint16(1329), + 54: uint16(1330), + 55: uint16(1331), + 56: uint16(1332), + 57: uint16(1333), + 58: uint16(1334), + 59: uint16(1335), + 60: uint16(1542), + 61: uint16(1536), + 62: uint16(1537), + 63: uint16(1538), + 64: uint16(1539), + 65: uint16(1540), + 66: uint16(1541), + 67: uint16(1543), + 68: uint16(1544), + 69: uint16(1545), + 70: uint16(1546), + 71: uint16(1547), + 72: uint16(1548), + 73: uint16(1549), + 74: uint16(1550), + 75: uint16(1551), + 76: uint16(1552), + 77: uint16(1553), + 78: uint16(1554), + 79: uint16(1555), + 80: uint16(1556), + 81: uint16(1557), + 82: uint16(1558), + 83: uint16(1559), + 84: uint16(1560), + 85: uint16(1561), + 86: uint16(1562), + 87: uint16(1563), + 88: uint16(1564), + 89: uint16(1565), + 90: uint16(1566), + 91: uint16(1567), + 92: uint16(1568), + 93: uint16(1584), + 94: uint16(1585), + 95: uint16(1586), + 96: uint16(1587), + 97: uint16(1588), + 98: uint16(1589), + 99: uint16(1591), + 100: uint16(1592), + 101: uint16(1593), + 102: uint16(1594), + 103: uint16(1595), + 104: uint16(1596), + 105: uint16(1597), + 106: uint16(1598), + 107: uint16(1599), + 108: uint16(1600), + 109: uint16(1601), + 110: uint16(1602), + 111: uint16(1603), + 112: uint16(1604), + 113: uint16(1605), + 114: uint16(1606), + 115: uint16(1607), + 116: uint16(1608), + 117: uint16(1609), + 118: uint16(1610), + 119: uint16(1611), + 120: uint16(1612), + 121: uint16(1613), + 122: uint16(1614), + 123: uint16(1615), + 124: uint16(1616), + 125: uint16(1590), + 126: uint16(29), + 127: uint16(28), + 128: uint16(33), + 129: uint16(37), + 130: uint16(38), + 131: uint16(39), + 132: uint16(40), + 133: uint16(342), + 134: uint16(343), + 135: uint16(36), + 136: uint16(35), + 137: uint16(338), + 138: uint16(75), + 139: uint16(76), + 140: uint16(263), + 141: uint16(77), + 142: uint16(337), + 143: uint16(266), + 144: uint16(267), + 145: uint16(265), + 146: uint16(268), + 147: uint16(300), + 148: uint16(301), + 149: uint16(302), + 150: uint16(318), + 151: uint16(303), + 152: uint16(319), + 153: uint16(281), + 154: uint16(282), + 155: uint16(60), + 156: uint16(324), + 157: uint16(326), + 158: uint16(70), + 159: uint16(315), + 160: uint16(297), + 161: uint16(298), + 162: uint16(288), + 163: uint16(287), + 164: uint16(328), + 165: uint16(329), + 166: uint16(71), + 167: uint16(327), + 168: uint16(325), + 169: uint16(321), + 170: uint16(65), + 171: uint16(320), + 172: uint16(68), + 173: uint16(69), + 174: uint16(322), + 175: uint16(323), + 176: uint16(285), + 177: uint16(286), + 178: uint16(283), + 179: uint16(284), + 180: uint16(316), + 181: uint16(317), + 182: uint16(1792), + 183: uint16(1803), + 184: uint16(1793), + 185: uint16(1804), + 186: uint16(1794), + 187: uint16(1805), + 188: uint16(1795), + 189: uint16(1806), + 190: uint16(1797), + 191: uint16(1808), + 192: uint16(1796), + 193: uint16(1807), + 194: uint16(1798), + 195: uint16(1819), + 196: uint16(1814), + 197: uint16(1809), + 198: uint16(1800), + 199: uint16(1821), + 200: uint16(1816), + 201: uint16(1811), + 202: uint16(1799), + 203: uint16(1815), + 204: uint16(1820), + 205: uint16(1810), + 206: uint16(1801), + 207: uint16(1817), + 208: uint16(1822), + 209: uint16(1812), + 210: uint16(1802), + 211: uint16(1818), + 212: uint16(1823), + 213: uint16(1813), + 214: uint16(258), + 215: uint16(257), + 216: uint16(260), + 217: uint16(259), + 218: uint16(262), + 219: uint16(261), + 220: uint16(256), + 221: uint16(93), + 222: uint16(90), + 223: uint16(92), + 224: uint16(91), + 225: uint16(349), + 226: uint16(89), + 227: uint16(88), + 228: uint16(73), + 229: uint16(72), + 230: uint16(341), + 231: uint16(340), + 232: uint16(339), + 234: uint16(1), + 235: uint16(2), + 236: uint16(22), + 237: uint16(24), + 238: uint16(25), + 239: uint16(26), + 240: uint16(49), + 241: uint16(50), + 242: uint16(51), + 243: uint16(52), + 244: uint16(53), + 245: uint16(54), + 246: uint16(55), + 247: uint16(56), + 248: uint16(57), + 249: uint16(58), + 250: uint16(264), + 251: uint16(269), + 252: uint16(43), + 253: uint16(44), + 254: uint16(32), + 255: uint16(768), + 256: uint16(769), + 257: uint16(770), + 258: uint16(771), + 259: uint16(772), + 260: uint16(773), + 261: uint16(774), + 262: uint16(775), + 263: uint16(776), + 264: uint16(777), + 265: uint16(778), + 266: uint16(779), + 267: uint16(780), + 268: uint16(781), + 269: uint16(782), + 270: uint16(783), + 271: uint16(784), + 272: uint16(785), + 273: uint16(786), + 274: uint16(787), + 275: uint16(788), + 276: uint16(789), + 277: uint16(790), + 278: uint16(791), + 279: uint16(792), + 280: uint16(793), + 281: uint16(794), + 282: uint16(795), + 283: uint16(796), + 284: uint16(797), + 285: uint16(798), + 286: uint16(799), + 287: uint16(800), + 288: uint16(801), + 289: uint16(802), + 290: uint16(803), + 291: uint16(804), + 292: uint16(805), + 293: uint16(806), + 294: uint16(807), + 295: uint16(808), + 296: uint16(809), + 297: uint16(810), + 298: uint16(811), + 299: uint16(812), + 300: uint16(813), + 301: uint16(814), + 302: uint16(815), + 303: uint16(816), + 304: uint16(817), + 305: uint16(818), + 306: uint16(819), + 307: uint16(820), + 308: uint16(821), + 309: uint16(822), + 310: uint16(823), + 311: uint16(824), + 312: uint16(825), + 313: uint16(826), + 314: uint16(827), + 315: uint16(828), + 316: uint16(829), + 317: uint16(830), + 318: uint16(831), + 319: uint16(832), + 320: uint16(833), + 321: uint16(834), + 322: uint16(835), + 323: uint16(836), + 324: uint16(837), + 325: uint16(838), + 326: uint16(839), + 327: uint16(840), + 328: uint16(841), + 329: uint16(842), + 330: uint16(843), + 331: uint16(844), + 332: uint16(845), + 333: uint16(846), + 334: uint16(847), + 335: uint16(848), + 336: uint16(849), + 337: uint16(850), + 338: uint16(10), + 339: uint16(11), + 340: uint16(20), + 341: uint16(21), + 342: uint16(1024), + 343: uint16(1025), + 344: uint16(1026), + 345: uint16(1027), + 346: uint16(1028), + 347: uint16(1029), + 348: uint16(1030), + 349: uint16(1031), + 350: uint16(1032), + 351: uint16(1033), + 352: uint16(1034), + 353: uint16(1035), + 354: uint16(1036), + 355: uint16(1037), + 356: uint16(1038), + 357: uint16(1039), + 358: uint16(1040), + 359: uint16(1041), + 360: uint16(1042), + 361: uint16(1043), + 362: uint16(1044), + 363: uint16(1045), + 364: uint16(1046), + 365: uint16(1047), + 366: uint16(1048), + 367: uint16(1049), + 368: uint16(1050), + 369: uint16(1051), + 370: uint16(1052), + 371: uint16(1053), + 372: uint16(1054), + 373: uint16(1055), + 374: uint16(1056), + 375: uint16(1057), + 376: uint16(1058), + 377: uint16(1059), + 378: uint16(1060), + 379: uint16(1061), + 380: uint16(1062), + 381: uint16(1063), + 382: uint16(1064), + 383: uint16(1065), + 384: uint16(1066), + 385: uint16(1067), + 386: uint16(1068), + 387: uint16(1069), + 388: uint16(1070), + 389: uint16(1071), + 390: uint16(1072), + 391: uint16(1073), + 392: uint16(1074), + 393: uint16(1075), + 394: uint16(1076), + 395: uint16(1077), + 396: uint16(1078), + 397: uint16(1079), + 398: uint16(1080), + 399: uint16(1081), + 400: uint16(1082), + 401: uint16(1083), + 402: uint16(1084), + 403: uint16(1085), + 404: uint16(1086), + 405: uint16(1087), + 406: uint16(1088), + 407: uint16(1089), + 408: uint16(1090), + 409: uint16(1091), + 410: uint16(1092), + 411: uint16(1093), + 412: uint16(1094), + 413: uint16(1095), + 414: uint16(1096), + 415: uint16(1097), + 416: uint16(1098), + 417: uint16(1099), + 418: uint16(1100), + 419: uint16(1101), + 420: uint16(1102), + 421: uint16(1103), + 422: uint16(1104), + 423: uint16(1105), + 424: uint16(1106), + 425: uint16(1107), + 426: uint16(1108), + 427: uint16(1109), + 428: uint16(5), + 429: uint16(27), + 430: uint16(18), + 431: uint16(19), + 432: uint16(3915), + 433: uint16(8793), + 434: uint16(6934), + 435: uint16(10843), + 436: uint16(7493), + 437: uint16(6671), + 438: uint16(7492), + 439: uint16(4379), + 440: uint16(10291), + 441: uint16(11294), + 442: uint16(12033), + 443: uint16(4110), + 444: uint16(4685), + 445: uint16(12034), + 446: uint16(7939), + 447: uint16(12577), + 448: uint16(5173), + 449: uint16(10521), + 450: uint16(7494), + 451: uint16(11549), + 452: uint16(10529), + 453: uint16(12035), + 454: uint16(8773), + 455: uint16(12036), + 456: uint16(5465), + 457: uint16(12037), + 458: uint16(4924), + 459: uint16(8719), + 460: uint16(6982), + 461: uint16(12038), + 462: uint16(12039), + 463: uint16(12040), + 464: uint16(9748), + 465: uint16(5174), + 466: uint16(9750), + 467: uint16(9538), + 468: uint16(5922), + 469: uint16(10770), + 470: uint16(18472), + 471: uint16(12041), + 472: uint16(7495), + 473: uint16(12042), + 474: uint16(4372), + 475: uint16(5444), + 476: uint16(5967), + 477: uint16(11080), + 478: uint16(13573), + 479: uint16(11343), + 480: uint16(9564), + 481: uint16(4868), + 482: uint16(5140), + 483: uint16(12043), + 484: uint16(12044), + 485: uint16(11546), + 486: uint16(11292), + 487: uint16(8263), + 488: uint16(12046), + 489: uint16(6741), + 490: uint16(9554), + 491: uint16(12049), + 492: uint16(4125), + 493: uint16(5950), + 494: uint16(5949), + 495: uint16(3909), + 496: uint16(11818), + 497: uint16(11817), + 498: uint16(6418), + 499: uint16(3840), + 500: uint16(12050), + 501: uint16(12051), + 502: uint16(12052), + 503: uint16(10771), + 504: uint16(12053), + 505: uint16(5969), + 506: uint16(3910), + 507: uint16(10833), + 508: uint16(5211), + 509: uint16(5212), + 510: uint16(5213), + 511: uint16(9025), + 512: uint16(11547), + 513: uint16(12054), + 514: uint16(12055), + 515: uint16(12056), + 516: uint16(7724), + 517: uint16(7193), + 518: uint16(7725), + 519: uint16(12061), + 520: uint16(12059), + 521: uint16(12060), + 522: uint16(5175), + 523: uint16(6402), + 524: uint16(4431), + 525: uint16(12058), + 526: uint16(12057), + 527: uint16(10504), + 528: uint16(6693), + 529: uint16(6692), + 530: uint16(8477), + 531: uint16(12062), + 532: uint16(10292), + 533: uint16(8006), + 534: uint16(23), + 535: uint16(12063), + 536: uint16(12065), + 537: uint16(8516), + 538: uint16(11584), + 539: uint16(3881), + 540: uint16(12064), + 541: uint16(4381), + 542: uint16(5411), + 543: uint16(8774), + 544: uint16(5710), + 545: uint16(12066), + 546: uint16(9731), + 547: uint16(4938), + 548: uint16(12067), + 549: uint16(3882), + 550: uint16(5951), + 551: uint16(4939), + 552: uint16(10329), + 553: uint16(10001), + 554: uint16(5176), + 555: uint16(4432), + 556: uint16(12102), + 557: uint16(9248), + 558: uint16(9803), + 559: uint16(12069), + 560: uint16(10011), + 561: uint16(11585), + 562: uint16(7692), + 563: uint16(6694), + 564: uint16(6742), + 565: uint16(4383), + 566: uint16(9008), + 567: uint16(8705), + 568: uint16(12073), + 569: uint16(3883), + 570: uint16(9026), + 571: uint16(7194), + 572: uint16(6419), + 573: uint16(11267), + 574: uint16(8493), + 575: uint16(4382), + 576: uint16(12072), + 577: uint16(11293), + 578: uint16(12068), + 579: uint16(12070), + 580: uint16(6477), + 581: uint16(12071), + 582: uint16(13315), + 583: uint16(12079), + 584: uint16(12082), + 585: uint16(12080), + 586: uint16(4385), + 587: uint16(10522), + 588: uint16(12074), + 589: uint16(12078), + 590: uint16(5970), + 591: uint16(6695), + 592: uint16(4869), + 593: uint16(12083), + 594: uint16(12075), + 595: uint16(11586), + 596: uint16(6743), + 597: uint16(12076), + 598: uint16(12081), + 599: uint16(12084), + 600: uint16(12077), + 601: uint16(5376), + 602: uint16(3884), + 603: uint16(5377), + 604: uint16(4384), + 605: uint16(13316), + 606: uint16(10840), + 607: uint16(10317), + 608: uint16(5971), + 609: uint16(7694), + 610: uint16(11542), + 611: uint16(10551), + 612: uint16(5655), + 613: uint16(8452), + 614: uint16(4419), + 615: uint16(7218), + 616: uint16(12088), + 617: uint16(12093), + 618: uint16(12091), + 619: uint16(12086), + 620: uint16(8462), + 621: uint16(12089), + 622: uint16(12092), + 623: uint16(12090), + 624: uint16(10556), + 625: uint16(12087), + 626: uint16(7693), + 627: uint16(10834), + 628: uint16(12094), + 629: uint16(12095), + 630: uint16(7171), + 631: uint16(12108), + 632: uint16(9775), + 633: uint16(10261), + 634: uint16(12103), + 635: uint16(10575), + 636: uint16(4373), + 637: uint16(12107), + 638: uint16(12101), + 639: uint16(12110), + 640: uint16(8241), + 641: uint16(5923), + 642: uint16(9787), + 643: uint16(16166), + 644: uint16(12109), + 645: uint16(9276), + 646: uint16(12098), + 647: uint16(5973), + 648: uint16(5972), + 649: uint16(12096), + 650: uint16(6969), + 651: uint16(12104), + 652: uint16(10574), + 653: uint16(8748), + 654: uint16(12100), + 655: uint16(5712), + 656: uint16(12097), + 657: uint16(12105), + 658: uint16(12099), + 659: uint16(11568), + 660: uint16(12106), + 661: uint16(11808), + 662: uint16(5445), + 663: uint16(5711), + 664: uint16(12111), + 665: uint16(12112), + 666: uint16(12116), + 667: uint16(3885), + 668: uint16(10543), + 669: uint16(12115), + 670: uint16(12114), + 671: uint16(12118), + 672: uint16(12117), + 673: uint16(9027), + 674: uint16(5713), + 675: uint16(12119), + 676: uint16(6948), + 677: uint16(8453), + 678: uint16(9028), + 679: uint16(5461), + 680: uint16(12120), + 681: uint16(5141), + 682: uint16(12121), + 683: uint16(12123), + 684: uint16(10772), + 685: uint16(5701), + 686: uint16(6672), + 687: uint16(10070), + 688: uint16(12122), + 689: uint16(6436), + 690: uint16(11298), + 691: uint16(12125), + 692: uint16(12290), + 693: uint16(12124), + 694: uint16(6435), + 695: uint16(7260), + 696: uint16(5656), + 697: uint16(12291), + 698: uint16(5422), + 699: uint16(12288), + 700: uint16(12289), + 701: uint16(9486), + 702: uint16(8283), + 703: uint16(5378), + 704: uint16(10796), + 705: uint16(12292), + 706: uint16(11548), + 707: uint16(12293), + 708: uint16(12296), + 709: uint16(12294), + 710: uint16(8237), + 711: uint16(12295), + 712: uint16(12297), + 713: uint16(12299), + 714: uint16(12298), + 715: uint16(10535), + 716: uint16(5142), + 717: uint16(12301), + 718: uint16(12302), + 719: uint16(4366), + 720: uint16(12300), + 721: uint16(6995), + 722: uint16(12305), + 723: uint16(12304), + 724: uint16(12303), + 725: uint16(12085), + 726: uint16(12306), + 727: uint16(7261), + 728: uint16(12307), + 729: uint16(11268), + 730: uint16(11064), + 731: uint16(12309), + 732: uint16(12308), + 733: uint16(12311), + 734: uint16(12310), + 735: uint16(12312), + 736: uint16(12313), + 737: uint16(3923), + 738: uint16(5908), + 739: uint16(5658), + 740: uint16(7195), + 741: uint16(8794), + 742: uint16(5379), + 743: uint16(8007), + 744: uint16(5974), + 745: uint16(6221), + 746: uint16(12315), + 747: uint16(11047), + 748: uint16(9253), + 749: uint16(6744), + 750: uint16(12314), + 751: uint16(12316), + 752: uint16(9277), + 753: uint16(4692), + 754: uint16(12317), + 755: uint16(9565), + 756: uint16(8211), + 757: uint16(12319), + 758: uint16(12320), + 759: uint16(9995), + 760: uint16(5975), + 761: uint16(11802), + 762: uint16(12321), + 763: uint16(5381), + 764: uint16(10523), + 765: uint16(8469), + 766: uint16(5456), + 767: uint16(9236), + 768: uint16(5714), + 769: uint16(12322), + 770: uint16(12323), + 771: uint16(9537), + 772: uint16(4158), + 773: uint16(12326), + 774: uint16(6492), + 775: uint16(12325), + 776: uint16(6437), + 777: uint16(12327), + 778: uint16(17741), + 779: uint16(12328), + 780: uint16(10784), + 781: uint16(12329), + 782: uint16(12330), + 783: uint16(12331), + 784: uint16(7496), + 785: uint16(6955), + 786: uint16(4870), + 787: uint16(12334), + 788: uint16(12332), + 789: uint16(11036), + 790: uint16(12333), + 791: uint16(10297), + 792: uint16(12335), + 793: uint16(12336), + 794: uint16(12337), + 795: uint16(9278), + 796: uint16(12341), + 797: uint16(12339), + 798: uint16(12340), + 799: uint16(12338), + 800: uint16(6466), + 801: uint16(12342), + 802: uint16(11081), + 803: uint16(11587), + 804: uint16(12343), + 805: uint16(7943), + 806: uint16(12344), + 807: uint16(7225), + 808: uint16(12345), + 809: uint16(8795), + 810: uint16(11550), + 811: uint16(9279), + 812: uint16(12580), + 813: uint16(12346), + 814: uint16(21252), + 815: uint16(5412), + 816: uint16(12347), + 817: uint16(10813), + 818: uint16(7239), + 819: uint16(8539), + 820: uint16(12349), + 821: uint16(9539), + 822: uint16(12350), + 823: uint16(12351), + 824: uint16(4621), + 825: uint16(12352), + 826: uint16(5382), + 827: uint16(9515), + 828: uint16(4185), + 829: uint16(7215), + 830: uint16(9984), + 831: uint16(12353), + 832: uint16(9280), + 833: uint16(7726), + 834: uint16(12354), + 835: uint16(10507), + 836: uint16(7993), + 837: uint16(4865), + 838: uint16(4872), + 839: uint16(12355), + 840: uint16(12357), + 841: uint16(5657), + 842: uint16(12356), + 843: uint16(11602), + 844: uint16(7240), + 845: uint16(10012), + 846: uint16(10539), + 847: uint16(12358), + 848: uint16(11351), + 849: uint16(12359), + 850: uint16(12360), + 851: uint16(9309), + 852: uint16(12361), + 853: uint16(7944), + 854: uint16(6493), + 855: uint16(5715), + 856: uint16(12362), + 857: uint16(6696), + 858: uint16(6222), + 859: uint16(9029), + 860: uint16(12364), + 861: uint16(8454), + 862: uint16(6478), + 863: uint16(12365), + 864: uint16(12366), + 865: uint16(8207), + 866: uint16(12363), + 867: uint16(12368), + 868: uint16(10773), + 869: uint16(6211), + 870: uint16(12367), + 871: uint16(5716), + 872: uint16(6461), + 873: uint16(9804), + 874: uint16(12371), + 875: uint16(12369), + 876: uint16(10330), + 877: uint16(7497), + 878: uint16(12378), + 879: uint16(4675), + 880: uint16(12372), + 881: uint16(12370), + 882: uint16(8238), + 883: uint16(12374), + 884: uint16(12373), + 885: uint16(4643), + 886: uint16(5695), + 887: uint16(12379), + 888: uint16(11532), + 889: uint16(12375), + 890: uint16(12380), + 891: uint16(12377), + 892: uint16(12376), + 893: uint16(11566), + 894: uint16(5976), + 895: uint16(4386), + 896: uint16(11603), + 897: uint16(7252), + 898: uint16(9271), + 899: uint16(6212), + 900: uint16(12545), + 901: uint16(12546), + 902: uint16(11588), + 903: uint16(11786), + 904: uint16(12548), + 905: uint16(5977), + 906: uint16(12547), + 907: uint16(4622), + 908: uint16(12549), + 909: uint16(10805), + 910: uint16(8987), + 911: uint16(11269), + 912: uint16(10552), + 913: uint16(12550), + 914: uint16(20276), + 915: uint16(9487), + 916: uint16(12551), + 917: uint16(4873), + 918: uint16(11026), + 919: uint16(7424), + 920: uint16(12552), + 921: uint16(10566), + 922: uint16(12556), + 923: uint16(7945), + 924: uint16(12553), + 925: uint16(5423), + 926: uint16(12554), + 927: uint16(4874), + 928: uint16(5645), + 929: uint16(12557), + 930: uint16(12558), + 931: uint16(12559), + 932: uint16(12560), + 933: uint16(6970), + 934: uint16(5978), + 935: uint16(11069), + 936: uint16(11079), + 937: uint16(9558), + 938: uint16(10576), + 939: uint16(12561), + 940: uint16(12562), + 941: uint16(12564), + 942: uint16(12566), + 943: uint16(12565), + 944: uint16(12567), + 945: uint16(4380), + 946: uint16(10795), + 947: uint16(6491), + 948: uint16(12568), + 949: uint16(8248), + 950: uint16(7425), + 951: uint16(5384), + 952: uint16(12569), + 953: uint16(10042), + 954: uint16(12570), + 955: uint16(12571), + 956: uint16(12572), + 957: uint16(12573), + 958: uint16(10243), + 959: uint16(5447), + 960: uint16(3908), + 961: uint16(9502), + 962: uint16(12574), + 963: uint16(7196), + 964: uint16(8008), + 965: uint16(12576), + 966: uint16(12575), + 967: uint16(7426), + 968: uint16(5952), + 969: uint16(12578), + 970: uint16(10013), + 971: uint16(12579), + 972: uint16(10043), + 973: uint16(8467), + 974: uint16(8525), + 975: uint16(5383), + 976: uint16(9549), + 977: uint16(8720), + 978: uint16(9805), + 979: uint16(10797), + 980: uint16(12581), + 981: uint16(8009), + 982: uint16(5652), + 983: uint16(12582), + 984: uint16(12583), + 985: uint16(4107), + 986: uint16(3924), + 987: uint16(4940), + 988: uint16(8455), + 989: uint16(5168), + 990: uint16(11344), + 991: uint16(12586), + 992: uint16(4374), + 993: uint16(12585), + 994: uint16(5385), + 995: uint16(12587), + 996: uint16(11088), + 997: uint16(12588), + 998: uint16(11569), + 999: uint16(5979), + 1000: uint16(5909), + 1001: uint16(12589), + 1002: uint16(12591), + 1003: uint16(12590), + 1004: uint16(7742), + 1005: uint16(4120), + 1006: uint16(4157), + 1007: uint16(12592), + 1008: uint16(12593), + 1009: uint16(5910), + 1010: uint16(12594), + 1011: uint16(5197), + 1012: uint16(6673), + 1013: uint16(12595), + 1014: uint16(10835), + 1015: uint16(6420), + 1016: uint16(5177), + 1017: uint16(11270), + 1018: uint16(8239), + 1019: uint16(10014), + 1020: uint16(7004), + 1021: uint16(7206), + 1022: uint16(6983), + 1023: uint16(6996), + 1024: uint16(7253), + 1025: uint16(10015), + 1026: uint16(12598), + 1027: uint16(4130), + 1028: uint16(8240), + 1029: uint16(5980), + 1030: uint16(5924), + 1031: uint16(5446), + 1032: uint16(12602), + 1033: uint16(8704), + 1034: uint16(8541), + 1035: uint16(5386), + 1036: uint16(7427), + 1037: uint16(12603), + 1038: uint16(12601), + 1039: uint16(4387), + 1040: uint16(8517), + 1041: uint16(6935), + 1042: uint16(6698), + 1043: uint16(4101), + 1044: uint16(4687), + 1045: uint16(6213), + 1046: uint16(6697), + 1047: uint16(12604), + 1048: uint16(12605), + 1049: uint16(5160), + 1050: uint16(4645), + 1051: uint16(6214), + 1052: uint16(5159), + 1053: uint16(9022), + 1054: uint16(4100), + 1055: uint16(9488), + 1056: uint16(11037), + 1057: uint16(6144), + 1058: uint16(11352), + 1059: uint16(9254), + 1060: uint16(5981), + 1061: uint16(5646), + 1062: uint16(12614), + 1063: uint16(5442), + 1064: uint16(10793), + 1065: uint16(10044), + 1066: uint16(12613), + 1067: uint16(4925), + 1068: uint16(12608), + 1069: uint16(12609), + 1070: uint16(12611), + 1071: uint16(12612), + 1072: uint16(5178), + 1073: uint16(7744), + 1074: uint16(10508), + 1075: uint16(12610), + 1076: uint16(12606), + 1077: uint16(5954), + 1078: uint16(12607), + 1079: uint16(11779), + 1080: uint16(10577), + 1081: uint16(9031), + 1082: uint16(5953), + 1083: uint16(6223), + 1084: uint16(12615), + 1085: uint16(9532), + 1086: uint16(12619), + 1087: uint16(7005), + 1088: uint16(6997), + 1089: uint16(12622), + 1090: uint16(12620), + 1091: uint16(11010), + 1092: uint16(12617), + 1093: uint16(12626), + 1094: uint16(12621), + 1095: uint16(12624), + 1096: uint16(5925), + 1097: uint16(11038), + 1098: uint16(12625), + 1099: uint16(12627), + 1100: uint16(12629), + 1101: uint16(6479), + 1102: uint16(11809), + 1103: uint16(12618), + 1104: uint16(12616), + 1105: uint16(12628), + 1106: uint16(12623), + 1107: uint16(12631), + 1108: uint16(12802), + 1109: uint16(12633), + 1110: uint16(12637), + 1111: uint16(12800), + 1112: uint16(12634), + 1113: uint16(12829), + 1114: uint16(6472), + 1115: uint16(4624), + 1116: uint16(12632), + 1117: uint16(12804), + 1118: uint16(3925), + 1119: uint16(12803), + 1120: uint16(3844), + 1121: uint16(10281), + 1122: uint16(12801), + 1123: uint16(12635), + 1124: uint16(12630), + 1125: uint16(12636), + 1126: uint16(6439), + 1127: uint16(12805), + 1128: uint16(3926), + 1129: uint16(12814), + 1130: uint16(12806), + 1131: uint16(12807), + 1132: uint16(7428), + 1133: uint16(10824), + 1134: uint16(12812), + 1135: uint16(12811), + 1136: uint16(9230), + 1137: uint16(12813), + 1138: uint16(12810), + 1139: uint16(4115), + 1140: uint16(6421), + 1141: uint16(7695), + 1142: uint16(12808), + 1143: uint16(9281), + 1144: uint16(12809), + 1145: uint16(3841), + 1146: uint16(12819), + 1147: uint16(11266), + 1148: uint16(7430), + 1149: uint16(12825), + 1150: uint16(12824), + 1151: uint16(12815), + 1152: uint16(8482), + 1153: uint16(12816), + 1154: uint16(8526), + 1155: uint16(12821), + 1156: uint16(7429), + 1157: uint16(12818), + 1158: uint16(11075), + 1159: uint16(5659), + 1160: uint16(12822), + 1161: uint16(12823), + 1162: uint16(12820), + 1163: uint16(12826), + 1164: uint16(12817), + 1165: uint16(12832), + 1166: uint16(12837), + 1167: uint16(12833), + 1168: uint16(12828), + 1169: uint16(12838), + 1170: uint16(8208), + 1171: uint16(12840), + 1172: uint16(6145), + 1173: uint16(12830), + 1174: uint16(8796), + 1175: uint16(12834), + 1176: uint16(12827), + 1177: uint16(4876), + 1178: uint16(4941), + 1179: uint16(4676), + 1180: uint16(12835), + 1181: uint16(12831), + 1182: uint16(5717), + 1183: uint16(12841), + 1184: uint16(12839), + 1185: uint16(8242), + 1186: uint16(5161), + 1187: uint16(5387), + 1188: uint16(12836), + 1189: uint16(5459), + 1190: uint16(4131), + 1191: uint16(12845), + 1192: uint16(12843), + 1193: uint16(13062), + 1194: uint16(12848), + 1195: uint16(12842), + 1196: uint16(12846), + 1197: uint16(12844), + 1198: uint16(6699), + 1199: uint16(12847), + 1200: uint16(12850), + 1201: uint16(12855), + 1202: uint16(12853), + 1203: uint16(12852), + 1204: uint16(8721), + 1205: uint16(4388), + 1206: uint16(12849), + 1207: uint16(12851), + 1208: uint16(7431), + 1209: uint16(4114), + 1210: uint16(12854), + 1211: uint16(4413), + 1212: uint16(12865), + 1213: uint16(7515), + 1214: uint16(12861), + 1215: uint16(12859), + 1216: uint16(12860), + 1217: uint16(12862), + 1218: uint16(4124), + 1219: uint16(8216), + 1220: uint16(12856), + 1221: uint16(12857), + 1222: uint16(4697), + 1223: uint16(12864), + 1224: uint16(4942), + 1225: uint16(12867), + 1226: uint16(12863), + 1227: uint16(12866), + 1228: uint16(10509), + 1229: uint16(9524), + 1230: uint16(10007), + 1231: uint16(12869), + 1232: uint16(12868), + 1233: uint16(4644), + 1234: uint16(12870), + 1235: uint16(12873), + 1236: uint16(12872), + 1237: uint16(12871), + 1238: uint16(9752), + 1239: uint16(12874), + 1240: uint16(12875), + 1241: uint16(12877), + 1242: uint16(12876), + 1243: uint16(12879), + 1244: uint16(12882), + 1245: uint16(12880), + 1246: uint16(12878), + 1247: uint16(12881), + 1248: uint16(12883), + 1249: uint16(12884), + 1250: uint16(12885), + 1251: uint16(12886), + 1252: uint16(12887), + 1253: uint16(12324), + 1254: uint16(7003), + 1255: uint16(6700), + 1256: uint16(4434), + 1257: uint16(3927), + 1258: uint16(8739), + 1259: uint16(12888), + 1260: uint16(6403), + 1261: uint16(3886), + 1262: uint16(7741), + 1263: uint16(12889), + 1264: uint16(5926), + 1265: uint16(6224), + 1266: uint16(12891), + 1267: uint16(12890), + 1268: uint16(10559), + 1269: uint16(12892), + 1270: uint16(13056), + 1271: uint16(12893), + 1272: uint16(13057), + 1273: uint16(13058), + 1274: uint16(5718), + 1275: uint16(4159), + 1276: uint16(13059), + 1277: uint16(13061), + 1278: uint16(13060), + 1279: uint16(13063), + 1280: uint16(9273), + 1281: uint16(13064), + 1282: uint16(3860), + 1283: uint16(6462), + 1284: uint16(5660), + 1285: uint16(8750), + 1286: uint16(13065), + 1287: uint16(13066), + 1288: uint16(13068), + 1289: uint16(13069), + 1290: uint16(6467), + 1291: uint16(5424), + 1292: uint16(10774), + 1293: uint16(13067), + 1294: uint16(13070), + 1295: uint16(6432), + 1296: uint16(6146), + 1297: uint16(13074), + 1298: uint16(6404), + 1299: uint16(8722), + 1300: uint16(13071), + 1301: uint16(9017), + 1302: uint16(13075), + 1303: uint16(7745), + 1304: uint16(13073), + 1305: uint16(13076), + 1306: uint16(5662), + 1307: uint16(13077), + 1308: uint16(13078), + 1309: uint16(6147), + 1310: uint16(4639), + 1311: uint16(13080), + 1312: uint16(13081), + 1313: uint16(13082), + 1314: uint16(13079), + 1315: uint16(13072), + 1316: uint16(13083), + 1317: uint16(13084), + 1318: uint16(10819), + 1319: uint16(7498), + 1320: uint16(13086), + 1321: uint16(13087), + 1322: uint16(13085), + 1323: uint16(13089), + 1324: uint16(9751), + 1325: uint16(3911), + 1326: uint16(10293), + 1327: uint16(13090), + 1328: uint16(7516), + 1329: uint16(6936), + 1330: uint16(9788), + 1331: uint16(4943), + 1332: uint16(6474), + 1333: uint16(10808), + 1334: uint16(9489), + 1335: uint16(5719), + 1336: uint16(8494), + 1337: uint16(13088), + 1338: uint16(13091), + 1339: uint16(8483), + 1340: uint16(13092), + 1341: uint16(13093), + 1342: uint16(13095), + 1343: uint16(9032), + 1344: uint16(4877), + 1345: uint16(21248), + 1346: uint16(4160), + 1347: uint16(10578), + 1348: uint16(7499), + 1349: uint16(9255), + 1350: uint16(6469), + 1351: uint16(13101), + 1352: uint16(10524), + 1353: uint16(11580), + 1354: uint16(4435), + 1355: uint16(13097), + 1356: uint16(8217), + 1357: uint16(13100), + 1358: uint16(9282), + 1359: uint16(9256), + 1360: uint16(9283), + 1361: uint16(10008), + 1362: uint16(9004), + 1363: uint16(6440), + 1364: uint16(13096), + 1365: uint16(4181), + 1366: uint16(9237), + 1367: uint16(13098), + 1368: uint16(13094), + 1369: uint16(7727), + 1370: uint16(13102), + 1371: uint16(7213), + 1372: uint16(5388), + 1373: uint16(13103), + 1374: uint16(10567), + 1375: uint16(8284), + 1376: uint16(8997), + 1377: uint16(13105), + 1378: uint16(10798), + 1379: uint16(13106), + 1380: uint16(13111), + 1381: uint16(10510), + 1382: uint16(13110), + 1383: uint16(13104), + 1384: uint16(13107), + 1385: uint16(13109), + 1386: uint16(6405), + 1387: uint16(10536), + 1388: uint16(13112), + 1389: uint16(8740), + 1390: uint16(4436), + 1391: uint16(7500), + 1392: uint16(13114), + 1393: uint16(13113), + 1394: uint16(6215), + 1395: uint16(13115), + 1396: uint16(13117), + 1397: uint16(13116), + 1398: uint16(13119), + 1399: uint16(13108), + 1400: uint16(13121), + 1401: uint16(13120), + 1402: uint16(13118), + 1403: uint16(6701), + 1404: uint16(7728), + 1405: uint16(8243), + 1406: uint16(13122), + 1407: uint16(7963), + 1408: uint16(3916), + 1409: uint16(9795), + 1410: uint16(9018), + 1411: uint16(13124), + 1412: uint16(13123), + 1413: uint16(13125), + 1414: uint16(13126), + 1415: uint16(13127), + 1416: uint16(13128), + 1417: uint16(10544), + 1418: uint16(13129), + 1419: uint16(4389), + 1420: uint16(13130), + 1421: uint16(11291), + 1422: uint16(4623), + 1423: uint16(12584), + 1424: uint16(7207), + 1425: uint16(8478), + 1426: uint16(13131), + 1427: uint16(11082), + 1428: uint16(11027), + 1429: uint16(13133), + 1430: uint16(8518), + 1431: uint16(9238), + 1432: uint16(8479), + 1433: uint16(10294), + 1434: uint16(13134), + 1435: uint16(13135), + 1436: uint16(4186), + 1437: uint16(6937), + 1438: uint16(13136), + 1439: uint16(3887), + 1440: uint16(13137), + 1441: uint16(13138), + 1442: uint16(4161), + 1443: uint16(4944), + 1444: uint16(9535), + 1445: uint16(10579), + 1446: uint16(13142), + 1447: uint16(8244), + 1448: uint16(13141), + 1449: uint16(5663), + 1450: uint16(10810), + 1451: uint16(13140), + 1452: uint16(9284), + 1453: uint16(13144), + 1454: uint16(13143), + 1455: uint16(13146), + 1456: uint16(13145), + 1457: uint16(4187), + 1458: uint16(13147), + 1459: uint16(7432), + 1460: uint16(13149), + 1461: uint16(8708), + 1462: uint16(13148), + 1463: uint16(10514), + 1464: uint16(7254), + 1465: uint16(9274), + 1466: uint16(13312), + 1467: uint16(6148), + 1468: uint16(13313), + 1469: uint16(9728), + 1470: uint16(10045), + 1471: uint16(11056), + 1472: uint16(9732), + 1473: uint16(13322), + 1474: uint16(5143), + 1475: uint16(11300), + 1476: uint16(11022), + 1477: uint16(13579), + 1478: uint16(13314), + 1479: uint16(13317), + 1480: uint16(8484), + 1481: uint16(10775), + 1482: uint16(9257), + 1483: uint16(13318), + 1484: uint16(10820), + 1485: uint16(6441), + 1486: uint16(7433), + 1487: uint16(13319), + 1488: uint16(6703), + 1489: uint16(6702), + 1490: uint16(3864), + 1491: uint16(5927), + 1492: uint16(7946), + 1493: uint16(3888), + 1494: uint16(13323), + 1495: uint16(13324), + 1496: uint16(13321), + 1497: uint16(4119), + 1498: uint16(4878), + 1499: uint16(13320), + 1500: uint16(11044), + 1501: uint16(10256), + 1502: uint16(3847), + 1503: uint16(3928), + 1504: uint16(6704), + 1505: uint16(3889), + 1506: uint16(3842), + 1507: uint16(13329), + 1508: uint16(13327), + 1509: uint16(11035), + 1510: uint16(13330), + 1511: uint16(13328), + 1512: uint16(13326), + 1513: uint16(7696), + 1514: uint16(13325), + 1515: uint16(10553), + 1516: uint16(5955), + 1517: uint16(13334), + 1518: uint16(13335), + 1519: uint16(7434), + 1520: uint16(13331), + 1521: uint16(11787), + 1522: uint16(9771), + 1523: uint16(13333), + 1524: uint16(6406), + 1525: uint16(13336), + 1526: uint16(10295), + 1527: uint16(13337), + 1528: uint16(13332), + 1529: uint16(11034), + 1530: uint16(9789), + 1531: uint16(13338), + 1532: uint16(10257), + 1533: uint16(13339), + 1534: uint16(13343), + 1535: uint16(13340), + 1536: uint16(4390), + 1537: uint16(13342), + 1538: uint16(6938), + 1539: uint16(13341), + 1540: uint16(5720), + 1541: uint16(13355), + 1542: uint16(13348), + 1543: uint16(13345), + 1544: uint16(8771), + 1545: uint16(13344), + 1546: uint16(13346), + 1547: uint16(13347), + 1548: uint16(13349), + 1549: uint16(13350), + 1550: uint16(4945), + 1551: uint16(13352), + 1552: uint16(13351), + 1553: uint16(13353), + 1554: uint16(7501), + 1555: uint16(13356), + 1556: uint16(9019), + 1557: uint16(4132), + 1558: uint16(13354), + 1559: uint16(13357), + 1560: uint16(13358), + 1561: uint16(13361), + 1562: uint16(13359), + 1563: uint16(13360), + 1564: uint16(6705), + 1565: uint16(13362), + 1566: uint16(6149), + 1567: uint16(13363), + 1568: uint16(6745), + 1569: uint16(8471), + 1570: uint16(13364), + 1571: uint16(13365), + 1572: uint16(6713), + 1573: uint16(6150), + 1574: uint16(11057), + 1575: uint16(5127), + 1576: uint16(5928), + 1577: uint16(13366), + 1578: uint16(4663), + 1579: uint16(13367), + 1580: uint16(8472), + 1581: uint16(13368), + 1582: uint16(13570), + 1583: uint16(13369), + 1584: uint16(13370), + 1585: uint16(13371), + 1586: uint16(13373), + 1587: uint16(13374), + 1588: uint16(13375), + 1589: uint16(8527), + 1590: uint16(4102), + 1591: uint16(6984), + 1592: uint16(3873), + 1593: uint16(8246), + 1594: uint16(4879), + 1595: uint16(6932), + 1596: uint16(6151), + 1597: uint16(9285), + 1598: uint16(7168), + 1599: uint16(4880), + 1600: uint16(8775), + 1601: uint16(9033), + 1602: uint16(3863), + 1603: uint16(5144), + 1604: uint16(10580), + 1605: uint16(6945), + 1606: uint16(5169), + 1607: uint16(8010), + 1608: uint16(6939), + 1609: uint16(11271), + 1610: uint16(13376), + 1611: uint16(5179), + 1612: uint16(6442), + 1613: uint16(4625), + 1614: uint16(4162), + 1615: uint16(7435), + 1616: uint16(4391), + 1617: uint16(13377), + 1618: uint16(11301), + 1619: uint16(7208), + 1620: uint16(6979), + 1621: uint16(13378), + 1622: uint16(4946), + 1623: uint16(9521), + 1624: uint16(11016), + 1625: uint16(13379), + 1626: uint16(13380), + 1627: uint16(10296), + 1628: uint16(13382), + 1629: uint16(4871), + 1630: uint16(5462), + 1631: uint16(13381), + 1632: uint16(4881), + 1633: uint16(7697), + 1634: uint16(13386), + 1635: uint16(6656), + 1636: uint16(4392), + 1637: uint16(13385), + 1638: uint16(13383), + 1639: uint16(13387), + 1640: uint16(13384), + 1641: uint16(9738), + 1642: uint16(15148), + 1643: uint16(7698), + 1644: uint16(13388), + 1645: uint16(11551), + 1646: uint16(13389), + 1647: uint16(13391), + 1648: uint16(8797), + 1649: uint16(13390), + 1650: uint16(7938), + 1651: uint16(6746), + 1652: uint16(8495), + 1653: uint16(6998), + 1654: uint16(10324), + 1655: uint16(8011), + 1656: uint16(6956), + 1657: uint16(13392), + 1658: uint16(7436), + 1659: uint16(13393), + 1660: uint16(13394), + 1661: uint16(3890), + 1662: uint16(8473), + 1663: uint16(7729), + 1664: uint16(13395), + 1665: uint16(9490), + 1666: uint16(7437), + 1667: uint16(7438), + 1668: uint16(13396), + 1669: uint16(8012), + 1670: uint16(7439), + 1671: uint16(13397), + 1672: uint16(13398), + 1673: uint16(11071), + 1674: uint16(13399), + 1675: uint16(5413), + 1676: uint16(7169), + 1677: uint16(13400), + 1678: uint16(13401), + 1679: uint16(6971), + 1680: uint16(7691), + 1681: uint16(9555), + 1682: uint16(7731), + 1683: uint16(10071), + 1684: uint16(9729), + 1685: uint16(5416), + 1686: uint16(13402), + 1687: uint16(5198), + 1688: uint16(13403), + 1689: uint16(5469), + 1690: uint16(9518), + 1691: uint16(4367), + 1692: uint16(6706), + 1693: uint16(13404), + 1694: uint16(13569), + 1695: uint16(13568), + 1696: uint16(5468), + 1697: uint16(13405), + 1698: uint16(9239), + 1699: uint16(8463), + 1700: uint16(9258), + 1701: uint16(6951), + 1702: uint16(8247), + 1703: uint16(11353), + 1704: uint16(13571), + 1705: uint16(13572), + 1706: uint16(9525), + 1707: uint16(6674), + 1708: uint16(13574), + 1709: uint16(13575), + 1710: uint16(13576), + 1711: uint16(4947), + 1712: uint16(13577), + 1713: uint16(13578), + 1714: uint16(4363), + 1715: uint16(8218), + 1716: uint16(4931), + 1717: uint16(13580), + 1718: uint16(11015), + 1719: uint16(8497), + 1720: uint16(4664), + 1721: uint16(13582), + 1722: uint16(13584), + 1723: uint16(4926), + 1724: uint16(13581), + 1725: uint16(13583), + 1726: uint16(13586), + 1727: uint16(13585), + 1728: uint16(13587), + 1729: uint16(13588), + 1730: uint16(9500), + 1731: uint16(5389), + 1732: uint16(4420), + 1733: uint16(13589), + 1734: uint16(13594), + 1735: uint16(13592), + 1736: uint16(10582), + 1737: uint16(10581), + 1738: uint16(9286), + 1739: uint16(13591), + 1740: uint16(7219), + 1741: uint16(13590), + 1742: uint16(7761), + 1743: uint16(13595), + 1744: uint16(6473), + 1745: uint16(13601), + 1746: uint16(13602), + 1747: uint16(13596), + 1748: uint16(4626), + 1749: uint16(13597), + 1750: uint16(13606), + 1751: uint16(13605), + 1752: uint16(13604), + 1753: uint16(13600), + 1754: uint16(13599), + 1755: uint16(13603), + 1756: uint16(10583), + 1757: uint16(13610), + 1758: uint16(13607), + 1759: uint16(13609), + 1760: uint16(11345), + 1761: uint16(13608), + 1762: uint16(13598), + 1763: uint16(7762), + 1764: uint16(13611), + 1765: uint16(6422), + 1766: uint16(13612), + 1767: uint16(13613), + 1768: uint16(13616), + 1769: uint16(13615), + 1770: uint16(13614), + 1771: uint16(9287), + 1772: uint16(13593), + 1773: uint16(13622), + 1774: uint16(13618), + 1775: uint16(13617), + 1776: uint16(13619), + 1777: uint16(13620), + 1778: uint16(13623), + 1779: uint16(11589), + 1780: uint16(13624), + 1781: uint16(13621), + 1782: uint16(13625), + 1783: uint16(4927), + 1784: uint16(13626), + 1785: uint16(13628), + 1786: uint16(13627), + 1787: uint16(13629), + 1788: uint16(13630), + 1789: uint16(8013), + 1790: uint16(7170), + 1791: uint16(7235), + 1792: uint16(8258), + 1793: uint16(6152), + 1794: uint16(6423), + 1795: uint16(6153), + 1796: uint16(5199), + 1797: uint16(13631), + 1798: uint16(6424), + 1799: uint16(5929), + 1800: uint16(13632), + 1801: uint16(11013), + 1802: uint16(9762), + 1803: uint16(13633), + 1804: uint16(6154), + 1805: uint16(4875), + 1806: uint16(8710), + 1807: uint16(5425), + 1808: uint16(6707), + 1809: uint16(10298), + 1810: uint16(10016), + 1811: uint16(13634), + 1812: uint16(4948), + 1813: uint16(13637), + 1814: uint16(8960), + 1815: uint16(13636), + 1816: uint16(13635), + 1817: uint16(13638), + 1818: uint16(9034), + 1819: uint16(7746), + 1820: uint16(6708), + 1821: uint16(7977), + 1822: uint16(8498), + 1823: uint16(5121), + 1824: uint16(8961), + 1825: uint16(13639), + 1826: uint16(13640), + 1827: uint16(7502), + 1828: uint16(10776), + 1829: uint16(13643), + 1830: uint16(13642), + 1831: uint16(13641), + 1832: uint16(10332), + 1833: uint16(13650), + 1834: uint16(10809), + 1835: uint16(13644), + 1836: uint16(13646), + 1837: uint16(10826), + 1838: uint16(13645), + 1839: uint16(13647), + 1840: uint16(9991), + 1841: uint16(13648), + 1842: uint16(10525), + 1843: uint16(13649), + 1844: uint16(4882), + 1845: uint16(10526), + 1846: uint16(9742), + 1847: uint16(13651), + 1848: uint16(13652), + 1849: uint16(6155), + 1850: uint16(4883), + 1851: uint16(13653), + 1852: uint16(5911), + 1853: uint16(11299), + 1854: uint16(11272), + 1855: uint16(4949), + 1856: uint16(13655), + 1857: uint16(8962), + 1858: uint16(6156), + 1859: uint16(7440), + 1860: uint16(10046), + 1861: uint16(7441), + 1862: uint16(7255), + 1863: uint16(9035), + 1864: uint16(10584), + 1865: uint16(9240), + 1866: uint16(6157), + 1867: uint16(10299), + 1868: uint16(13656), + 1869: uint16(9272), + 1870: uint16(6433), + 1871: uint16(5930), + 1872: uint16(9036), + 1873: uint16(3874), + 1874: uint16(7245), + 1875: uint16(6158), + 1876: uint16(11302), + 1877: uint16(13657), + 1878: uint16(13658), + 1879: uint16(9776), + 1880: uint16(13659), + 1881: uint16(11606), + 1882: uint16(11788), + 1883: uint16(13661), + 1884: uint16(13660), + 1885: uint16(4646), + 1886: uint16(13824), + 1887: uint16(13827), + 1888: uint16(13828), + 1889: uint16(13826), + 1890: uint16(10271), + 1891: uint16(7442), + 1892: uint16(13830), + 1893: uint16(13829), + 1894: uint16(13825), + 1895: uint16(13831), + 1896: uint16(13832), + 1897: uint16(13833), + 1898: uint16(13836), + 1899: uint16(13834), + 1900: uint16(13835), + 1901: uint16(13837), + 1902: uint16(4163), + 1903: uint16(9037), + 1904: uint16(13838), + 1905: uint16(5721), + 1906: uint16(4437), + 1907: uint16(9749), + 1908: uint16(13839), + 1909: uint16(9562), + 1910: uint16(10554), + 1911: uint16(13840), + 1912: uint16(11789), + 1913: uint16(13841), + 1914: uint16(10527), + 1915: uint16(13844), + 1916: uint16(12032), + 1917: uint16(12048), + 1918: uint16(6927), + 1919: uint16(9556), + 1920: uint16(13845), + 1921: uint16(5180), + 1922: uint16(8963), + 1923: uint16(3929), + 1924: uint16(13846), + 1925: uint16(10501), + 1926: uint16(6159), + 1927: uint16(8751), + 1928: uint16(9038), + 1929: uint16(11086), + 1930: uint16(5912), + 1931: uint16(5931), + 1932: uint16(13847), + 1933: uint16(13848), + 1934: uint16(13854), + 1935: uint16(6980), + 1936: uint16(8964), + 1937: uint16(5390), + 1938: uint16(13849), + 1939: uint16(10250), + 1940: uint16(8741), + 1941: uint16(13850), + 1942: uint16(13851), + 1943: uint16(5391), + 1944: uint16(13852), + 1945: uint16(13853), + 1946: uint16(13855), + 1947: uint16(9301), + 1948: uint16(13856), + 1949: uint16(13857), + 1950: uint16(13858), + 1951: uint16(13843), + 1952: uint16(13842), + 1953: uint16(13859), + 1954: uint16(5664), + 1955: uint16(10246), + 1956: uint16(6443), + 1957: uint16(10262), + 1958: uint16(8965), + 1959: uint16(10282), + 1960: uint16(13860), + 1961: uint16(7443), + 1962: uint16(4133), + 1963: uint16(13861), + 1964: uint16(13862), + 1965: uint16(11089), + 1966: uint16(10047), + 1967: uint16(13865), + 1968: uint16(4188), + 1969: uint16(7947), + 1970: uint16(13864), + 1971: uint16(13863), + 1972: uint16(5665), + 1973: uint16(8499), + 1974: uint16(13869), + 1975: uint16(13867), + 1976: uint16(13866), + 1977: uint16(11526), + 1978: uint16(5956), + 1979: uint16(7256), + 1980: uint16(13868), + 1981: uint16(9259), + 1982: uint16(7197), + 1983: uint16(9503), + 1984: uint16(13872), + 1985: uint16(13871), + 1986: uint16(13870), + 1987: uint16(13873), + 1988: uint16(5957), + 1989: uint16(13874), + 1990: uint16(10331), + 1991: uint16(7226), + 1992: uint16(13875), + 1993: uint16(10072), + 1994: uint16(9504), + 1995: uint16(8966), + 1996: uint16(9231), + 1997: uint16(13876), + 1998: uint16(5130), + 1999: uint16(7699), + 2000: uint16(10251), + 2001: uint16(4950), + 2002: uint16(9733), + 2003: uint16(13877), + 2004: uint16(6709), + 2005: uint16(10777), + 2006: uint16(10778), + 2007: uint16(4189), + 2008: uint16(13882), + 2009: uint16(8776), + 2010: uint16(13879), + 2011: uint16(4438), + 2012: uint16(14092), + 2013: uint16(13881), + 2014: uint16(9743), + 2015: uint16(13880), + 2016: uint16(13878), + 2017: uint16(6233), + 2018: uint16(13884), + 2019: uint16(13890), + 2020: uint16(13896), + 2021: uint16(13888), + 2022: uint16(9275), + 2023: uint16(13893), + 2024: uint16(10300), + 2025: uint16(13887), + 2026: uint16(13892), + 2027: uint16(11590), + 2028: uint16(6710), + 2029: uint16(8500), + 2030: uint16(13885), + 2031: uint16(5181), + 2032: uint16(13895), + 2033: uint16(7948), + 2034: uint16(4164), + 2035: uint16(13889), + 2036: uint16(4439), + 2037: uint16(13894), + 2038: uint16(5392), + 2039: uint16(13891), + 2040: uint16(13897), + 2041: uint16(13899), + 2042: uint16(13909), + 2043: uint16(13907), + 2044: uint16(13904), + 2045: uint16(13903), + 2046: uint16(11607), + 2047: uint16(13905), + 2048: uint16(5393), + 2049: uint16(6160), + 2050: uint16(7257), + 2051: uint16(13912), + 2052: uint16(13898), + 2053: uint16(13902), + 2054: uint16(13886), + 2055: uint16(4441), + 2056: uint16(13906), + 2057: uint16(13908), + 2058: uint16(8752), + 2059: uint16(6407), + 2060: uint16(4375), + 2061: uint16(13900), + 2062: uint16(13911), + 2063: uint16(13910), + 2064: uint16(5394), + 2065: uint16(8456), + 2066: uint16(4677), + 2067: uint16(5666), + 2068: uint16(13901), + 2069: uint16(13913), + 2070: uint16(13916), + 2071: uint16(14080), + 2072: uint16(6940), + 2073: uint16(14086), + 2074: uint16(9039), + 2075: uint16(13914), + 2076: uint16(14084), + 2077: uint16(4440), + 2078: uint16(14082), + 2079: uint16(14083), + 2080: uint16(13917), + 2081: uint16(14081), + 2082: uint16(5958), + 2083: uint16(11273), + 2084: uint16(4884), + 2085: uint16(4152), + 2086: uint16(14085), + 2087: uint16(9753), + 2088: uint16(3852), + 2089: uint16(10048), + 2090: uint16(13883), + 2091: uint16(14091), + 2092: uint16(14095), + 2093: uint16(11076), + 2094: uint16(14088), + 2095: uint16(9288), + 2096: uint16(14093), + 2097: uint16(7503), + 2098: uint16(14094), + 2099: uint16(9526), + 2100: uint16(11814), + 2101: uint16(14090), + 2102: uint16(14096), + 2103: uint16(6234), + 2104: uint16(7978), + 2105: uint16(3891), + 2106: uint16(14089), + 2107: uint16(14087), + 2108: uint16(8249), + 2109: uint16(13915), + 2110: uint16(6675), + 2111: uint16(8485), + 2112: uint16(14108), + 2113: uint16(8250), + 2114: uint16(14103), + 2115: uint16(14100), + 2116: uint16(14101), + 2117: uint16(6981), + 2118: uint16(14104), + 2119: uint16(14107), + 2120: uint16(14102), + 2121: uint16(7172), + 2122: uint16(14105), + 2123: uint16(14099), + 2124: uint16(11099), + 2125: uint16(11098), + 2126: uint16(14109), + 2127: uint16(14110), + 2128: uint16(3892), + 2129: uint16(14098), + 2130: uint16(5457), + 2131: uint16(3845), + 2132: uint16(4885), + 2133: uint16(14106), + 2134: uint16(14114), + 2135: uint16(14113), + 2136: uint16(14118), + 2137: uint16(14119), + 2138: uint16(14117), + 2139: uint16(14120), + 2140: uint16(14112), + 2141: uint16(14116), + 2142: uint16(14121), + 2143: uint16(14122), + 2144: uint16(14111), + 2145: uint16(6747), + 2146: uint16(14115), + 2147: uint16(8501), + 2148: uint16(6161), + 2149: uint16(14097), + 2150: uint16(7700), + 2151: uint16(14135), + 2152: uint16(10568), + 2153: uint16(14125), + 2154: uint16(14126), + 2155: uint16(14127), + 2156: uint16(14134), + 2157: uint16(14133), + 2158: uint16(10844), + 2159: uint16(4886), + 2160: uint16(14131), + 2161: uint16(5668), + 2162: uint16(4627), + 2163: uint16(14128), + 2164: uint16(11543), + 2165: uint16(14130), + 2166: uint16(3893), + 2167: uint16(14132), + 2168: uint16(14123), + 2169: uint16(14129), + 2170: uint16(14136), + 2171: uint16(5667), + 2172: uint16(14124), + 2173: uint16(11324), + 2174: uint16(11274), + 2175: uint16(14139), + 2176: uint16(14143), + 2177: uint16(8285), + 2178: uint16(11608), + 2179: uint16(14144), + 2180: uint16(14141), + 2181: uint16(14138), + 2182: uint16(14137), + 2183: uint16(14142), + 2184: uint16(10511), + 2185: uint16(9491), + 2186: uint16(5669), + 2187: uint16(14145), + 2188: uint16(14140), + 2189: uint16(14146), + 2190: uint16(5722), + 2191: uint16(4368), + 2192: uint16(14154), + 2193: uint16(4887), + 2194: uint16(14152), + 2195: uint16(14153), + 2196: uint16(6408), + 2197: uint16(14151), + 2198: uint16(14149), + 2199: uint16(14148), + 2200: uint16(14155), + 2201: uint16(14147), + 2202: uint16(14157), + 2203: uint16(4442), + 2204: uint16(14159), + 2205: uint16(14158), + 2206: uint16(8967), + 2207: uint16(14162), + 2208: uint16(14160), + 2209: uint16(14150), + 2210: uint16(5723), + 2211: uint16(14161), + 2212: uint16(14165), + 2213: uint16(14164), + 2214: uint16(14166), + 2215: uint16(14163), + 2216: uint16(14167), + 2217: uint16(14168), + 2218: uint16(14169), + 2219: uint16(10569), + 2220: uint16(14171), + 2221: uint16(14170), + 2222: uint16(7198), + 2223: uint16(7949), + 2224: uint16(4421), + 2225: uint16(4443), + 2226: uint16(14172), + 2227: uint16(3870), + 2228: uint16(7979), + 2229: uint16(14173), + 2230: uint16(19234), + 2231: uint16(14336), + 2232: uint16(5696), + 2233: uint16(14337), + 2234: uint16(8014), + 2235: uint16(14338), + 2236: uint16(14339), + 2237: uint16(5145), + 2238: uint16(14340), + 2239: uint16(14341), + 2240: uint16(14342), + 2241: uint16(8502), + 2242: uint16(5932), + 2243: uint16(11072), + 2244: uint16(10779), + 2245: uint16(7241), + 2246: uint16(14343), + 2247: uint16(8015), + 2248: uint16(19740), + 2249: uint16(10049), + 2250: uint16(6985), + 2251: uint16(6444), + 2252: uint16(14344), + 2253: uint16(8486), + 2254: uint16(10502), + 2255: uint16(8528), + 2256: uint16(14347), + 2257: uint16(14345), + 2258: uint16(14348), + 2259: uint16(14346), + 2260: uint16(14349), + 2261: uint16(10512), + 2262: uint16(3862), + 2263: uint16(10301), + 2264: uint16(10050), + 2265: uint16(14350), + 2266: uint16(14353), + 2267: uint16(7444), + 2268: uint16(5146), + 2269: uint16(14351), + 2270: uint16(14358), + 2271: uint16(7445), + 2272: uint16(14352), + 2273: uint16(9763), + 2274: uint16(11325), + 2275: uint16(14354), + 2276: uint16(14355), + 2277: uint16(14359), + 2278: uint16(9289), + 2279: uint16(14356), + 2280: uint16(6162), + 2281: uint16(7997), + 2282: uint16(14373), + 2283: uint16(10003), + 2284: uint16(8529), + 2285: uint16(10051), + 2286: uint16(14604), + 2287: uint16(10585), + 2288: uint16(9040), + 2289: uint16(10836), + 2290: uint16(14362), + 2291: uint16(4352), + 2292: uint16(8777), + 2293: uint16(14371), + 2294: uint16(8723), + 2295: uint16(14365), + 2296: uint16(14372), + 2297: uint16(14367), + 2298: uint16(14374), + 2299: uint16(14370), + 2300: uint16(14369), + 2301: uint16(9806), + 2302: uint16(14363), + 2303: uint16(4444), + 2304: uint16(14361), + 2305: uint16(5200), + 2306: uint16(8530), + 2307: uint16(14357), + 2308: uint16(14360), + 2309: uint16(6163), + 2310: uint16(7994), + 2311: uint16(7446), + 2312: uint16(14368), + 2313: uint16(9777), + 2314: uint16(5201), + 2315: uint16(4647), + 2316: uint16(4678), + 2317: uint16(7680), + 2318: uint16(14376), + 2319: uint16(14381), + 2320: uint16(14377), + 2321: uint16(5724), + 2322: uint16(14382), + 2323: uint16(6657), + 2324: uint16(6216), + 2325: uint16(7173), + 2326: uint16(14364), + 2327: uint16(6748), + 2328: uint16(14379), + 2329: uint16(6711), + 2330: uint16(14380), + 2331: uint16(3875), + 2332: uint16(14375), + 2333: uint16(8968), + 2334: uint16(5202), + 2335: uint16(5395), + 2336: uint16(14378), + 2337: uint16(3846), + 2338: uint16(6434), + 2339: uint16(7701), + 2340: uint16(9041), + 2341: uint16(10035), + 2342: uint16(14384), + 2343: uint16(8253), + 2344: uint16(8457), + 2345: uint16(6666), + 2346: uint16(14385), + 2347: uint16(14387), + 2348: uint16(14383), + 2349: uint16(10560), + 2350: uint16(8988), + 2351: uint16(8251), + 2352: uint16(10586), + 2353: uint16(6957), + 2354: uint16(14399), + 2355: uint16(14398), + 2356: uint16(7767), + 2357: uint16(5725), + 2358: uint16(14392), + 2359: uint16(7448), + 2360: uint16(9543), + 2361: uint16(9744), + 2362: uint16(14390), + 2363: uint16(8252), + 2364: uint16(6999), + 2365: uint16(14395), + 2366: uint16(7447), + 2367: uint16(14389), + 2368: uint16(14394), + 2369: uint16(9778), + 2370: uint16(14388), + 2371: uint16(5632), + 2372: uint16(4668), + 2373: uint16(14396), + 2374: uint16(11530), + 2375: uint16(6445), + 2376: uint16(8724), + 2377: uint16(14393), + 2378: uint16(7995), + 2379: uint16(6164), + 2380: uint16(7747), + 2381: uint16(4165), + 2382: uint16(8219), + 2383: uint16(14391), + 2384: uint16(5156), + 2385: uint16(5670), + 2386: uint16(9006), + 2387: uint16(14397), + 2388: uint16(8254), + 2389: uint16(14400), + 2390: uint16(14402), + 2391: uint16(8470), + 2392: uint16(14408), + 2393: uint16(14403), + 2394: uint16(14405), + 2395: uint16(10272), + 2396: uint16(9042), + 2397: uint16(14406), + 2398: uint16(11275), + 2399: uint16(11303), + 2400: uint16(4888), + 2401: uint16(3853), + 2402: uint16(14404), + 2403: uint16(14401), + 2404: uint16(4951), + 2405: uint16(4166), + 2406: uint16(14407), + 2407: uint16(11304), + 2408: uint16(14411), + 2409: uint16(8474), + 2410: uint16(14418), + 2411: uint16(14412), + 2412: uint16(14409), + 2413: uint16(14416), + 2414: uint16(14386), + 2415: uint16(14413), + 2416: uint16(14417), + 2417: uint16(10017), + 2418: uint16(9290), + 2419: uint16(14410), + 2420: uint16(14414), + 2421: uint16(5671), + 2422: uint16(6480), + 2423: uint16(7996), + 2424: uint16(14422), + 2425: uint16(9221), + 2426: uint16(14419), + 2427: uint16(10815), + 2428: uint16(14420), + 2429: uint16(14421), + 2430: uint16(11053), + 2431: uint16(7937), + 2432: uint16(5697), + 2433: uint16(14428), + 2434: uint16(6676), + 2435: uint16(14425), + 2436: uint16(14424), + 2437: uint16(9745), + 2438: uint16(9492), + 2439: uint16(9232), + 2440: uint16(14426), + 2441: uint16(14427), + 2442: uint16(10318), + 2443: uint16(9764), + 2444: uint16(6658), + 2445: uint16(8016), + 2446: uint16(10799), + 2447: uint16(4648), + 2448: uint16(14596), + 2449: uint16(14429), + 2450: uint16(11305), + 2451: uint16(14598), + 2452: uint16(14594), + 2453: uint16(14595), + 2454: uint16(8255), + 2455: uint16(14593), + 2456: uint16(14366), + 2457: uint16(14597), + 2458: uint16(14592), + 2459: uint16(14602), + 2460: uint16(14603), + 2461: uint16(9222), + 2462: uint16(14605), + 2463: uint16(6659), + 2464: uint16(14600), + 2465: uint16(5147), + 2466: uint16(14606), + 2467: uint16(14599), + 2468: uint16(14610), + 2469: uint16(14609), + 2470: uint16(14608), + 2471: uint16(14611), + 2472: uint16(14613), + 2473: uint16(7504), + 2474: uint16(14612), + 2475: uint16(14616), + 2476: uint16(14614), + 2477: uint16(14615), + 2478: uint16(14415), + 2479: uint16(14618), + 2480: uint16(14617), + 2481: uint16(14423), + 2482: uint16(14619), + 2483: uint16(14607), + 2484: uint16(6712), + 2485: uint16(14620), + 2486: uint16(14621), + 2487: uint16(14623), + 2488: uint16(14622), + 2489: uint16(14624), + 2490: uint16(4445), + 2491: uint16(6165), + 2492: uint16(10587), + 2493: uint16(7950), + 2494: uint16(5933), + 2495: uint16(14626), + 2496: uint16(14629), + 2497: uint16(10289), + 2498: uint16(5182), + 2499: uint16(14628), + 2500: uint16(14627), + 2501: uint16(9779), + 2502: uint16(14630), + 2503: uint16(5396), + 2504: uint16(14632), + 2505: uint16(14631), + 2506: uint16(4889), + 2507: uint16(6677), + 2508: uint16(9527), + 2509: uint16(5672), + 2510: uint16(7763), + 2511: uint16(14633), + 2512: uint16(7951), + 2513: uint16(9223), + 2514: uint16(10302), + 2515: uint16(14634), + 2516: uint16(14635), + 2517: uint16(14636), + 2518: uint16(10519), + 2519: uint16(13372), + 2520: uint16(7973), + 2521: uint16(10283), + 2522: uint16(6455), + 2523: uint16(10052), + 2524: uint16(10018), + 2525: uint16(9260), + 2526: uint16(11552), + 2527: uint16(14638), + 2528: uint16(6959), + 2529: uint16(14639), + 2530: uint16(3861), + 2531: uint16(5427), + 2532: uint16(7980), + 2533: uint16(10303), + 2534: uint16(14640), + 2535: uint16(6689), + 2536: uint16(8742), + 2537: uint16(6714), + 2538: uint16(7702), + 2539: uint16(14641), + 2540: uint16(10588), + 2541: uint16(4182), + 2542: uint16(6715), + 2543: uint16(14644), + 2544: uint16(14642), + 2545: uint16(14645), + 2546: uint16(11544), + 2547: uint16(14643), + 2548: uint16(8026), + 2549: uint16(14646), + 2550: uint16(8465), + 2551: uint16(14647), + 2552: uint16(4953), + 2553: uint16(14649), + 2554: uint16(14648), + 2555: uint16(14650), + 2556: uint16(14651), + 2557: uint16(4954), + 2558: uint16(9563), + 2559: uint16(8725), + 2560: uint16(5195), + 2561: uint16(6716), + 2562: uint16(8256), + 2563: uint16(7227), + 2564: uint16(3855), + 2565: uint16(14652), + 2566: uint16(4353), + 2567: uint16(14656), + 2568: uint16(6166), + 2569: uint16(14655), + 2570: uint16(6410), + 2571: uint16(7449), + 2572: uint16(14654), + 2573: uint16(7450), + 2574: uint16(11039), + 2575: uint16(6409), + 2576: uint16(3894), + 2577: uint16(7981), + 2578: uint16(14661), + 2579: uint16(7952), + 2580: uint16(4134), + 2581: uint16(7220), + 2582: uint16(10821), + 2583: uint16(6481), + 2584: uint16(7451), + 2585: uint16(7942), + 2586: uint16(14660), + 2587: uint16(14658), + 2588: uint16(14659), + 2589: uint16(8778), + 2590: uint16(14853), + 2591: uint16(14665), + 2592: uint16(6749), + 2593: uint16(6167), + 2594: uint16(14663), + 2595: uint16(14664), + 2596: uint16(7703), + 2597: uint16(14662), + 2598: uint16(6670), + 2599: uint16(14667), + 2600: uint16(14666), + 2601: uint16(14671), + 2602: uint16(14672), + 2603: uint16(14668), + 2604: uint16(4609), + 2605: uint16(14669), + 2606: uint16(14670), + 2607: uint16(10036), + 2608: uint16(10304), + 2609: uint16(5673), + 2610: uint16(14673), + 2611: uint16(7953), + 2612: uint16(7452), + 2613: uint16(8753), + 2614: uint16(5414), + 2615: uint16(14674), + 2616: uint16(14678), + 2617: uint16(4394), + 2618: uint16(14675), + 2619: uint16(14677), + 2620: uint16(14676), + 2621: uint16(7242), + 2622: uint16(8743), + 2623: uint16(3876), + 2624: uint16(14679), + 2625: uint16(14680), + 2626: uint16(8969), + 2627: uint16(11600), + 2628: uint16(6690), + 2629: uint16(10570), + 2630: uint16(10780), + 2631: uint16(14849), + 2632: uint16(14682), + 2633: uint16(14685), + 2634: uint16(14684), + 2635: uint16(14681), + 2636: uint16(14848), + 2637: uint16(9533), + 2638: uint16(14683), + 2639: uint16(14850), + 2640: uint16(7243), + 2641: uint16(14851), + 2642: uint16(11306), + 2643: uint16(9815), + 2644: uint16(14852), + 2645: uint16(14854), + 2646: uint16(14855), + 2647: uint16(14856), + 2648: uint16(5417), + 2649: uint16(4135), + 2650: uint16(6168), + 2651: uint16(14857), + 2652: uint16(14858), + 2653: uint16(7248), + 2654: uint16(8257), + 2655: uint16(12599), + 2656: uint16(8221), + 2657: uint16(8220), + 2658: uint16(8503), + 2659: uint16(6438), + 2660: uint16(12113), + 2661: uint16(5709), + 2662: uint16(11276), + 2663: uint16(10589), + 2664: uint16(10333), + 2665: uint16(14859), + 2666: uint16(6482), + 2667: uint16(8990), + 2668: uint16(14860), + 2669: uint16(11790), + 2670: uint16(10781), + 2671: uint16(8970), + 2672: uint16(14861), + 2673: uint16(4955), + 2674: uint16(14862), + 2675: uint16(14863), + 2676: uint16(11065), + 2677: uint16(11011), + 2678: uint16(10837), + 2679: uint16(10811), + 2680: uint16(6660), + 2681: uint16(14865), + 2682: uint16(6986), + 2683: uint16(10800), + 2684: uint16(14867), + 2685: uint16(14870), + 2686: uint16(14869), + 2687: uint16(4952), + 2688: uint16(5183), + 2689: uint16(14866), + 2690: uint16(14868), + 2691: uint16(14871), + 2692: uint16(7768), + 2693: uint16(11354), + 2694: uint16(3880), + 2695: uint16(6463), + 2696: uint16(8475), + 2697: uint16(6972), + 2698: uint16(7506), + 2699: uint16(14874), + 2700: uint16(9261), + 2701: uint16(14872), + 2702: uint16(8458), + 2703: uint16(14873), + 2704: uint16(7505), + 2705: uint16(11068), + 2706: uint16(14875), + 2707: uint16(14876), + 2708: uint16(11335), + 2709: uint16(14881), + 2710: uint16(6169), + 2711: uint16(9780), + 2712: uint16(14878), + 2713: uint16(9291), + 2714: uint16(14653), + 2715: uint16(14657), + 2716: uint16(5166), + 2717: uint16(9766), + 2718: uint16(14880), + 2719: uint16(7453), + 2720: uint16(10019), + 2721: uint16(14886), + 2722: uint16(10073), + 2723: uint16(14877), + 2724: uint16(14883), + 2725: uint16(14882), + 2726: uint16(7982), + 2727: uint16(10828), + 2728: uint16(11570), + 2729: uint16(10822), + 2730: uint16(4395), + 2731: uint16(6717), + 2732: uint16(11815), + 2733: uint16(14885), + 2734: uint16(7764), + 2735: uint16(14884), + 2736: uint16(14879), + 2737: uint16(5934), + 2738: uint16(14891), + 2739: uint16(14889), + 2740: uint16(4396), + 2741: uint16(14887), + 2742: uint16(14893), + 2743: uint16(14899), + 2744: uint16(8487), + 2745: uint16(10528), + 2746: uint16(14901), + 2747: uint16(10241), + 2748: uint16(14900), + 2749: uint16(9807), + 2750: uint16(10782), + 2751: uint16(4890), + 2752: uint16(8022), + 2753: uint16(7199), + 2754: uint16(9010), + 2755: uint16(11277), + 2756: uint16(14896), + 2757: uint16(14895), + 2758: uint16(14897), + 2759: uint16(14894), + 2760: uint16(14902), + 2761: uint16(14892), + 2762: uint16(14890), + 2763: uint16(14898), + 2764: uint16(14888), + 2765: uint16(8779), + 2766: uint16(11095), + 2767: uint16(6949), + 2768: uint16(6483), + 2769: uint16(6425), + 2770: uint16(10830), + 2771: uint16(4640), + 2772: uint16(9005), + 2773: uint16(9513), + 2774: uint16(4136), + 2775: uint16(8017), + 2776: uint16(7955), + 2777: uint16(5641), + 2778: uint16(14904), + 2779: uint16(6170), + 2780: uint16(4699), + 2781: uint16(14906), + 2782: uint16(4691), + 2783: uint16(14912), + 2784: uint16(14909), + 2785: uint16(8018), + 2786: uint16(4650), + 2787: uint16(6411), + 2788: uint16(4649), + 2789: uint16(6446), + 2790: uint16(14907), + 2791: uint16(5700), + 2792: uint16(5674), + 2793: uint16(9292), + 2794: uint16(14905), + 2795: uint16(3877), + 2796: uint16(14908), + 2797: uint16(14910), + 2798: uint16(5420), + 2799: uint16(5643), + 2800: uint16(4891), + 2801: uint16(5162), + 2802: uint16(14913), + 2803: uint16(6488), + 2804: uint16(10832), + 2805: uint16(6678), + 2806: uint16(14914), + 2807: uint16(10255), + 2808: uint16(14926), + 2809: uint16(4370), + 2810: uint16(14915), + 2811: uint16(14932), + 2812: uint16(14916), + 2813: uint16(11553), + 2814: uint16(14923), + 2815: uint16(9790), + 2816: uint16(14931), + 2817: uint16(14918), + 2818: uint16(3859), + 2819: uint16(14920), + 2820: uint16(6171), + 2821: uint16(14922), + 2822: uint16(14921), + 2823: uint16(14917), + 2824: uint16(14928), + 2825: uint16(7454), + 2826: uint16(13132), + 2827: uint16(5959), + 2828: uint16(11355), + 2829: uint16(14919), + 2830: uint16(9043), + 2831: uint16(4610), + 2832: uint16(6412), + 2833: uint16(14911), + 2834: uint16(14927), + 2835: uint16(4672), + 2836: uint16(14925), + 2837: uint16(14929), + 2838: uint16(9293), + 2839: uint16(4957), + 2840: uint16(15121), + 2841: uint16(11048), + 2842: uint16(14934), + 2843: uint16(4956), + 2844: uint16(14941), + 2845: uint16(10783), + 2846: uint16(15104), + 2847: uint16(15106), + 2848: uint16(15110), + 2849: uint16(14936), + 2850: uint16(8713), + 2851: uint16(9294), + 2852: uint16(15114), + 2853: uint16(14939), + 2854: uint16(15111), + 2855: uint16(15105), + 2856: uint16(7704), + 2857: uint16(15115), + 2858: uint16(7954), + 2859: uint16(15113), + 2860: uint16(4892), + 2861: uint16(11823), + 2862: uint16(14933), + 2863: uint16(15109), + 2864: uint16(3895), + 2865: uint16(14935), + 2866: uint16(11033), + 2867: uint16(14940), + 2868: uint16(7681), + 2869: uint16(8998), + 2870: uint16(14930), + 2871: uint16(15108), + 2872: uint16(7769), + 2873: uint16(15118), + 2874: uint16(4688), + 2875: uint16(5888), + 2876: uint16(15120), + 2877: uint16(14937), + 2878: uint16(15119), + 2879: uint16(15112), + 2880: uint16(14938), + 2881: uint16(15116), + 2882: uint16(15117), + 2883: uint16(15134), + 2884: uint16(9517), + 2885: uint16(15107), + 2886: uint16(15130), + 2887: uint16(15132), + 2888: uint16(9015), + 2889: uint16(11307), + 2890: uint16(10325), + 2891: uint16(15127), + 2892: uint16(8489), + 2893: uint16(15133), + 2894: uint16(8222), + 2895: uint16(15124), + 2896: uint16(15137), + 2897: uint16(15136), + 2898: uint16(9550), + 2899: uint16(15135), + 2900: uint16(9545), + 2901: uint16(15139), + 2902: uint16(15126), + 2903: uint16(5415), + 2904: uint16(15129), + 2905: uint16(7228), + 2906: uint16(9791), + 2907: uint16(15131), + 2908: uint16(5418), + 2909: uint16(15123), + 2910: uint16(15125), + 2911: uint16(15122), + 2912: uint16(11791), + 2913: uint16(4665), + 2914: uint16(15128), + 2915: uint16(15138), + 2916: uint16(4628), + 2917: uint16(6470), + 2918: uint16(4156), + 2919: uint16(15155), + 2920: uint16(11792), + 2921: uint16(15158), + 2922: uint16(7705), + 2923: uint16(15157), + 2924: uint16(15156), + 2925: uint16(15153), + 2926: uint16(15141), + 2927: uint16(15170), + 2928: uint16(15140), + 2929: uint16(15159), + 2930: uint16(15151), + 2931: uint16(15146), + 2932: uint16(15143), + 2933: uint16(15144), + 2934: uint16(15152), + 2935: uint16(21249), + 2936: uint16(15149), + 2937: uint16(6172), + 2938: uint16(8999), + 2939: uint16(8259), + 2940: uint16(15147), + 2941: uint16(15142), + 2942: uint16(15145), + 2943: uint16(11308), + 2944: uint16(10825), + 2945: uint16(15150), + 2946: uint16(15160), + 2947: uint16(15168), + 2948: uint16(15161), + 2949: uint16(15174), + 2950: uint16(15172), + 2951: uint16(15167), + 2952: uint16(15166), + 2953: uint16(9007), + 2954: uint16(8260), + 2955: uint16(15164), + 2956: uint16(15162), + 2957: uint16(15169), + 2958: uint16(15175), + 2959: uint16(10068), + 2960: uint16(15181), + 2961: uint16(15176), + 2962: uint16(15179), + 2963: uint16(15173), + 2964: uint16(8787), + 2965: uint16(10263), + 2966: uint16(15163), + 2967: uint16(15171), + 2968: uint16(7455), + 2969: uint16(11054), + 2970: uint16(15191), + 2971: uint16(15178), + 2972: uint16(5889), + 2973: uint16(4354), + 2974: uint16(4670), + 2975: uint16(15154), + 2976: uint16(7456), + 2977: uint16(15183), + 2978: uint16(15190), + 2979: uint16(7000), + 2980: uint16(4689), + 2981: uint16(8717), + 2982: uint16(15180), + 2983: uint16(15185), + 2984: uint16(15189), + 2985: uint16(5397), + 2986: uint16(5163), + 2987: uint16(15187), + 2988: uint16(5120), + 2989: uint16(9514), + 2990: uint16(15186), + 2991: uint16(15188), + 2992: uint16(15182), + 2993: uint16(15184), + 2994: uint16(4671), + 2995: uint16(8744), + 2996: uint16(15195), + 2997: uint16(15193), + 2998: uint16(5960), + 2999: uint16(15192), + 3000: uint16(15360), + 3001: uint16(14903), + 3002: uint16(15194), + 3003: uint16(15196), + 3004: uint16(15197), + 3005: uint16(15371), + 3006: uint16(15367), + 3007: uint16(14924), + 3008: uint16(15366), + 3009: uint16(15365), + 3010: uint16(15362), + 3011: uint16(15177), + 3012: uint16(15364), + 3013: uint16(15363), + 3014: uint16(15369), + 3015: uint16(11781), + 3016: uint16(15372), + 3017: uint16(5466), + 3018: uint16(15368), + 3019: uint16(15370), + 3020: uint16(9990), + 3021: uint16(15373), + 3022: uint16(15377), + 3023: uint16(15374), + 3024: uint16(11346), + 3025: uint16(15375), + 3026: uint16(15165), + 3027: uint16(15378), + 3028: uint16(15379), + 3029: uint16(4116), + 3030: uint16(15381), + 3031: uint16(5702), + 3032: uint16(6912), + 3033: uint16(5428), + 3034: uint16(4355), + 3035: uint16(11326), + 3036: uint16(15383), + 3037: uint16(15382), + 3038: uint16(15385), + 3039: uint16(5148), + 3040: uint16(5429), + 3041: uint16(4893), + 3042: uint16(15388), + 3043: uint16(15387), + 3044: uint16(15389), + 3045: uint16(4397), + 3046: uint16(8726), + 3047: uint16(15390), + 3048: uint16(4894), + 3049: uint16(15392), + 3050: uint16(15391), + 3051: uint16(15393), + 3052: uint16(15394), + 3053: uint16(15395), + 3054: uint16(6718), + 3055: uint16(7956), + 3056: uint16(6400), + 3057: uint16(10319), + 3058: uint16(10561), + 3059: uint16(11811), + 3060: uint16(6740), + 3061: uint16(6447), + 3062: uint16(11601), + 3063: uint16(15396), + 3064: uint16(15397), + 3065: uint16(6719), + 3066: uint16(15398), + 3067: uint16(15399), + 3068: uint16(15401), + 3069: uint16(15400), + 3070: uint16(10807), + 3071: uint16(7229), + 3072: uint16(6987), + 3073: uint16(6691), + 3074: uint16(15402), + 3075: uint16(15404), + 3076: uint16(7682), + 3077: uint16(15403), + 3078: uint16(15405), + 3079: uint16(15406), + 3080: uint16(15407), + 3081: uint16(15408), + 3082: uint16(15409), + 3083: uint16(15411), + 3084: uint16(15410), + 3085: uint16(15412), + 3086: uint16(4356), + 3087: uint16(8745), + 3088: uint16(15413), + 3089: uint16(6661), + 3090: uint16(4651), + 3091: uint16(15414), + 3092: uint16(9249), + 3093: uint16(13099), + 3094: uint16(5122), + 3095: uint16(15415), + 3096: uint16(15416), + 3097: uint16(10571), + 3098: uint16(10823), + 3099: uint16(9510), + 3100: uint16(15417), + 3101: uint16(10053), + 3102: uint16(10074), + 3103: uint16(11058), + 3104: uint16(15418), + 3105: uint16(15420), + 3106: uint16(15419), + 3107: uint16(15422), + 3108: uint16(15421), + 3109: uint16(15424), + 3110: uint16(6720), + 3111: uint16(11024), + 3112: uint16(15425), + 3113: uint16(15426), + 3114: uint16(5123), + 3115: uint16(15427), + 3116: uint16(15429), + 3117: uint16(15428), + 3118: uint16(7748), + 3119: uint16(10264), + 3120: uint16(4137), + 3121: uint16(10020), + 3122: uint16(9044), + 3123: uint16(7200), + 3124: uint16(5184), + 3125: uint16(10021), + 3126: uint16(6925), + 3127: uint16(15431), + 3128: uint16(4895), + 3129: uint16(4183), + 3130: uint16(9553), + 3131: uint16(15430), + 3132: uint16(6173), + 3133: uint16(8754), + 3134: uint16(15432), + 3135: uint16(15440), + 3136: uint16(15433), + 3137: uint16(8480), + 3138: uint16(5185), + 3139: uint16(15441), + 3140: uint16(5703), + 3141: uint16(5124), + 3142: uint16(15439), + 3143: uint16(15437), + 3144: uint16(15434), + 3145: uint16(11327), + 3146: uint16(8991), + 3147: uint16(9528), + 3148: uint16(15435), + 3149: uint16(15443), + 3150: uint16(15442), + 3151: uint16(5634), + 3152: uint16(4364), + 3153: uint16(6426), + 3154: uint16(15436), + 3155: uint16(15438), + 3156: uint16(10806), + 3157: uint16(8531), + 3158: uint16(10838), + 3159: uint16(15451), + 3160: uint16(15452), + 3161: uint16(4398), + 3162: uint16(10503), + 3163: uint16(11100), + 3164: uint16(15616), + 3165: uint16(6914), + 3166: uint16(7457), + 3167: uint16(15447), + 3168: uint16(15453), + 3169: uint16(4167), + 3170: uint16(5398), + 3171: uint16(15444), + 3172: uint16(15449), + 3173: uint16(8019), + 3174: uint16(9808), + 3175: uint16(10054), + 3176: uint16(15446), + 3177: uint16(10752), + 3178: uint16(15448), + 3179: uint16(15619), + 3180: uint16(15617), + 3181: uint16(15450), + 3182: uint16(10753), + 3183: uint16(9767), + 3184: uint16(5186), + 3185: uint16(9220), + 3186: uint16(8780), + 3187: uint16(15620), + 3188: uint16(15618), + 3189: uint16(8504), + 3190: uint16(15445), + 3191: uint16(4138), + 3192: uint16(11309), + 3193: uint16(15631), + 3194: uint16(15630), + 3195: uint16(8021), + 3196: uint16(15627), + 3197: uint16(11339), + 3198: uint16(9493), + 3199: uint16(15621), + 3200: uint16(8996), + 3201: uint16(4139), + 3202: uint16(6174), + 3203: uint16(15624), + 3204: uint16(7174), + 3205: uint16(15629), + 3206: uint16(15628), + 3207: uint16(15623), + 3208: uint16(15626), + 3209: uint16(4679), + 3210: uint16(15625), + 3211: uint16(9768), + 3212: uint16(11533), + 3213: uint16(7507), + 3214: uint16(8020), + 3215: uint16(15637), + 3216: uint16(15635), + 3217: uint16(10284), + 3218: uint16(15632), + 3219: uint16(15634), + 3220: uint16(4121), + 3221: uint16(6175), + 3222: uint16(11793), + 3223: uint16(4636), + 3224: uint16(10305), + 3225: uint16(11328), + 3226: uint16(4611), + 3227: uint16(7706), + 3228: uint16(15636), + 3229: uint16(15641), + 3230: uint16(7458), + 3231: uint16(11279), + 3232: uint16(15638), + 3233: uint16(15633), + 3234: uint16(15639), + 3235: uint16(11581), + 3236: uint16(9298), + 3237: uint16(9505), + 3238: uint16(4629), + 3239: uint16(4148), + 3240: uint16(15645), + 3241: uint16(15648), + 3242: uint16(11554), + 3243: uint16(11331), + 3244: uint16(15655), + 3245: uint16(15649), + 3246: uint16(15646), + 3247: uint16(11571), + 3248: uint16(15652), + 3249: uint16(7209), + 3250: uint16(15654), + 3251: uint16(15659), + 3252: uint16(9296), + 3253: uint16(15657), + 3254: uint16(15651), + 3255: uint16(8727), + 3256: uint16(15658), + 3257: uint16(15647), + 3258: uint16(15653), + 3259: uint16(15660), + 3260: uint16(3931), + 3261: uint16(15650), + 3262: uint16(15661), + 3263: uint16(7707), + 3264: uint16(7230), + 3265: uint16(10500), + 3266: uint16(6413), + 3267: uint16(15642), + 3268: uint16(15656), + 3269: uint16(9241), + 3270: uint16(7957), + 3271: uint16(4680), + 3272: uint16(6448), + 3273: uint16(7459), + 3274: uint16(15644), + 3275: uint16(7201), + 3276: uint16(5675), + 3277: uint16(15643), + 3278: uint16(15665), + 3279: uint16(7244), + 3280: uint16(5913), + 3281: uint16(15680), + 3282: uint16(15674), + 3283: uint16(5203), + 3284: uint16(9262), + 3285: uint16(15669), + 3286: uint16(15678), + 3287: uint16(3854), + 3288: uint16(4113), + 3289: uint16(4376), + 3290: uint16(15671), + 3291: uint16(8459), + 3292: uint16(15662), + 3293: uint16(15664), + 3294: uint16(6176), + 3295: uint16(15681), + 3296: uint16(15676), + 3297: uint16(15668), + 3298: uint16(15675), + 3299: uint16(11018), + 3300: uint16(15673), + 3301: uint16(15677), + 3302: uint16(5935), + 3303: uint16(7460), + 3304: uint16(8728), + 3305: uint16(15667), + 3306: uint16(11278), + 3307: uint16(15670), + 3308: uint16(15663), + 3309: uint16(9297), + 3310: uint16(15666), + 3311: uint16(15672), + 3312: uint16(11824), + 3313: uint16(6941), + 3314: uint16(10845), + 3315: uint16(15682), + 3316: uint16(9997), + 3317: uint16(15694), + 3318: uint16(5914), + 3319: uint16(7231), + 3320: uint16(15684), + 3321: uint16(11534), + 3322: uint16(6177), + 3323: uint16(15697), + 3324: uint16(3917), + 3325: uint16(15695), + 3326: uint16(15683), + 3327: uint16(15689), + 3328: uint16(15691), + 3329: uint16(11310), + 3330: uint16(15686), + 3331: uint16(9229), + 3332: uint16(15688), + 3333: uint16(15696), + 3334: uint16(15690), + 3335: uint16(11046), + 3336: uint16(15685), + 3337: uint16(6913), + 3338: uint16(15709), + 3339: uint16(4681), + 3340: uint16(15687), + 3341: uint16(15692), + 3342: uint16(15693), + 3343: uint16(8523), + 3344: uint16(8505), + 3345: uint16(15701), + 3346: uint16(15707), + 3347: uint16(15705), + 3348: uint16(9224), + 3349: uint16(15874), + 3350: uint16(15702), + 3351: uint16(15703), + 3352: uint16(15679), + 3353: uint16(5208), + 3354: uint16(10265), + 3355: uint16(6942), + 3356: uint16(6230), + 3357: uint16(11794), + 3358: uint16(15699), + 3359: uint16(15873), + 3360: uint16(4168), + 3361: uint16(8261), + 3362: uint16(9816), + 3363: uint16(4896), + 3364: uint16(11609), + 3365: uint16(11008), + 3366: uint16(9009), + 3367: uint16(15706), + 3368: uint16(15708), + 3369: uint16(8209), + 3370: uint16(15872), + 3371: uint16(15704), + 3372: uint16(15698), + 3373: uint16(4898), + 3374: uint16(5704), + 3375: uint16(15886), + 3376: uint16(15881), + 3377: uint16(8023), + 3378: uint16(4674), + 3379: uint16(7232), + 3380: uint16(15890), + 3381: uint16(15883), + 3382: uint16(8971), + 3383: uint16(15880), + 3384: uint16(9016), + 3385: uint16(15915), + 3386: uint16(15877), + 3387: uint16(15876), + 3388: uint16(15885), + 3389: uint16(15879), + 3390: uint16(15878), + 3391: uint16(15884), + 3392: uint16(7936), + 3393: uint16(15875), + 3394: uint16(15887), + 3395: uint16(15888), + 3396: uint16(4897), + 3397: uint16(15893), + 3398: uint16(15892), + 3399: uint16(15894), + 3400: uint16(15897), + 3401: uint16(9250), + 3402: uint16(15891), + 3403: uint16(15895), + 3404: uint16(5698), + 3405: uint16(8536), + 3406: uint16(15889), + 3407: uint16(9754), + 3408: uint16(15896), + 3409: uint16(15901), + 3410: uint16(15899), + 3411: uint16(15902), + 3412: uint16(15905), + 3413: uint16(15898), + 3414: uint16(6217), + 3415: uint16(9735), + 3416: uint16(15640), + 3417: uint16(11347), + 3418: uint16(15900), + 3419: uint16(15904), + 3420: uint16(8532), + 3421: uint16(15903), + 3422: uint16(15882), + 3423: uint16(20040), + 3424: uint16(15908), + 3425: uint16(15912), + 3426: uint16(15910), + 3427: uint16(15906), + 3428: uint16(15907), + 3429: uint16(15911), + 3430: uint16(15909), + 3431: uint16(10285), + 3432: uint16(15917), + 3433: uint16(15914), + 3434: uint16(15913), + 3435: uint16(15916), + 3436: uint16(9523), + 3437: uint16(15918), + 3438: uint16(8788), + 3439: uint16(8524), + 3440: uint16(7940), + 3441: uint16(15919), + 3442: uint16(15921), + 3443: uint16(15920), + 3444: uint16(15700), + 3445: uint16(15922), + 3446: uint16(9542), + 3447: uint16(15923), + 3448: uint16(4399), + 3449: uint16(9299), + 3450: uint16(4612), + 3451: uint16(5187), + 3452: uint16(6973), + 3453: uint16(6449), + 3454: uint16(11782), + 3455: uint16(7749), + 3456: uint16(4169), + 3457: uint16(15925), + 3458: uint16(15924), + 3459: uint16(15928), + 3460: uint16(8729), + 3461: uint16(15931), + 3462: uint16(15926), + 3463: uint16(15930), + 3464: uint16(15929), + 3465: uint16(9247), + 3466: uint16(3896), + 3467: uint16(11604), + 3468: uint16(15933), + 3469: uint16(4103), + 3470: uint16(15935), + 3471: uint16(15934), + 3472: uint16(15932), + 3473: uint16(15927), + 3474: uint16(10754), + 3475: uint16(15937), + 3476: uint16(15936), + 3477: uint16(4170), + 3478: uint16(15939), + 3479: uint16(10513), + 3480: uint16(15938), + 3481: uint16(11028), + 3482: uint16(7462), + 3483: uint16(8210), + 3484: uint16(7461), + 3485: uint16(11610), + 3486: uint16(15945), + 3487: uint16(8024), + 3488: uint16(15941), + 3489: uint16(15946), + 3490: uint16(4171), + 3491: uint16(15944), + 3492: uint16(9792), + 3493: uint16(15940), + 3494: uint16(15943), + 3495: uint16(7463), + 3496: uint16(10032), + 3497: uint16(15947), + 3498: uint16(6960), + 3499: uint16(8025), + 3500: uint16(15950), + 3501: uint16(15942), + 3502: uint16(5638), + 3503: uint16(15948), + 3504: uint16(11311), + 3505: uint16(15951), + 3506: uint16(21253), + 3507: uint16(7214), + 3508: uint16(15952), + 3509: uint16(15953), + 3510: uint16(9741), + 3511: uint16(15955), + 3512: uint16(15956), + 3513: uint16(9746), + 3514: uint16(9300), + 3515: uint16(15958), + 3516: uint16(15960), + 3517: uint16(11572), + 3518: uint16(15957), + 3519: uint16(15959), + 3520: uint16(4172), + 3521: uint16(15954), + 3522: uint16(12858), + 3523: uint16(15961), + 3524: uint16(8262), + 3525: uint16(6679), + 3526: uint16(15963), + 3527: uint16(15962), + 3528: uint16(7683), + 3529: uint16(12600), + 3530: uint16(15964), + 3531: uint16(16128), + 3532: uint16(15949), + 3533: uint16(15965), + 3534: uint16(16129), + 3535: uint16(9817), + 3536: uint16(16130), + 3537: uint16(16131), + 3538: uint16(16132), + 3539: uint16(16133), + 3540: uint16(9021), + 3541: uint16(16135), + 3542: uint16(16134), + 3543: uint16(16136), + 3544: uint16(16137), + 3545: uint16(6974), + 3546: uint16(10306), + 3547: uint16(11083), + 3548: uint16(16138), + 3549: uint16(16139), + 3550: uint16(8245), + 3551: uint16(6915), + 3552: uint16(16140), + 3553: uint16(16141), + 3554: uint16(16142), + 3555: uint16(10545), + 3556: uint16(10022), + 3557: uint16(16143), + 3558: uint16(9782), + 3559: uint16(8972), + 3560: uint16(16144), + 3561: uint16(4422), + 3562: uint16(5196), + 3563: uint16(11045), + 3564: uint16(11029), + 3565: uint16(4371), + 3566: uint16(11795), + 3567: uint16(10801), + 3568: uint16(10505), + 3569: uint16(7958), + 3570: uint16(16145), + 3571: uint16(9506), + 3572: uint16(5890), + 3573: uint16(16146), + 3574: uint16(6451), + 3575: uint16(16148), + 3576: uint16(16147), + 3577: uint16(16149), + 3578: uint16(16150), + 3579: uint16(16151), + 3580: uint16(5149), + 3581: uint16(16152), + 3582: uint16(16153), + 3583: uint16(5891), + 3584: uint16(10023), + 3585: uint16(16155), + 3586: uint16(7508), + 3587: uint16(16154), + 3588: uint16(5399), + 3589: uint16(16156), + 3590: uint16(16158), + 3591: uint16(16157), + 3592: uint16(16159), + 3593: uint16(5936), + 3594: uint16(16160), + 3595: uint16(5448), + 3596: uint16(8223), + 3597: uint16(6236), + 3598: uint16(16162), + 3599: uint16(16163), + 3600: uint16(16161), + 3601: uint16(6988), + 3602: uint16(9511), + 3603: uint16(5400), + 3604: uint16(16165), + 3605: uint16(8715), + 3606: uint16(16164), + 3607: uint16(11796), + 3608: uint16(9793), + 3609: uint16(16168), + 3610: uint16(16170), + 3611: uint16(16167), + 3612: uint16(11059), + 3613: uint16(16169), + 3614: uint16(16171), + 3615: uint16(11555), + 3616: uint16(16175), + 3617: uint16(16174), + 3618: uint16(8789), + 3619: uint16(9740), + 3620: uint16(5892), + 3621: uint16(16173), + 3622: uint16(16172), + 3623: uint16(11280), + 3624: uint16(11281), + 3625: uint16(16176), + 3626: uint16(4173), + 3627: uint16(6229), + 3628: uint16(6721), + 3629: uint16(16177), + 3630: uint16(16178), + 3631: uint16(16180), + 3632: uint16(7202), + 3633: uint16(16182), + 3634: uint16(16181), + 3635: uint16(16183), + 3636: uint16(4652), + 3637: uint16(16185), + 3638: uint16(16184), + 3639: uint16(16187), + 3640: uint16(16186), + 3641: uint16(5915), + 3642: uint16(11527), + 3643: uint16(5419), + 3644: uint16(4357), + 3645: uint16(5449), + 3646: uint16(4928), + 3647: uint16(11591), + 3648: uint16(16189), + 3649: uint16(16191), + 3650: uint16(16192), + 3651: uint16(4400), + 3652: uint16(16188), + 3653: uint16(6680), + 3654: uint16(8992), + 3655: uint16(16190), + 3656: uint16(16195), + 3657: uint16(6989), + 3658: uint16(16193), + 3659: uint16(5661), + 3660: uint16(10024), + 3661: uint16(16194), + 3662: uint16(16221), + 3663: uint16(16200), + 3664: uint16(5916), + 3665: uint16(5188), + 3666: uint16(16197), + 3667: uint16(11356), + 3668: uint16(11535), + 3669: uint16(8533), + 3670: uint16(16199), + 3671: uint16(16201), + 3672: uint16(11573), + 3673: uint16(5430), + 3674: uint16(10075), + 3675: uint16(9769), + 3676: uint16(16202), + 3677: uint16(16204), + 3678: uint16(16207), + 3679: uint16(16203), + 3680: uint16(16206), + 3681: uint16(5961), + 3682: uint16(4140), + 3683: uint16(16208), + 3684: uint16(7759), + 3685: uint16(16205), + 3686: uint16(11579), + 3687: uint16(16211), + 3688: uint16(21251), + 3689: uint16(16209), + 3690: uint16(16212), + 3691: uint16(16198), + 3692: uint16(16210), + 3693: uint16(6427), + 3694: uint16(16213), + 3695: uint16(16214), + 3696: uint16(11357), + 3697: uint16(16215), + 3698: uint16(16216), + 3699: uint16(16196), + 3700: uint16(16217), + 3701: uint16(4899), + 3702: uint16(6916), + 3703: uint16(16218), + 3704: uint16(16219), + 3705: uint16(16220), + 3706: uint16(4122), + 3707: uint16(16384), + 3708: uint16(10266), + 3709: uint16(16385), + 3710: uint16(4867), + 3711: uint16(16386), + 3712: uint16(16387), + 3713: uint16(16388), + 3714: uint16(16390), + 3715: uint16(16391), + 3716: uint16(16389), + 3717: uint16(10290), + 3718: uint16(16393), + 3719: uint16(16392), + 3720: uint16(16395), + 3721: uint16(16394), + 3722: uint16(16396), + 3723: uint16(16397), + 3724: uint16(16399), + 3725: uint16(16398), + 3726: uint16(6232), + 3727: uint16(16401), + 3728: uint16(16400), + 3729: uint16(4900), + 3730: uint16(7730), + 3731: uint16(9243), + 3732: uint16(16402), + 3733: uint16(7959), + 3734: uint16(6681), + 3735: uint16(4184), + 3736: uint16(16403), + 3737: uint16(11312), + 3738: uint16(10562), + 3739: uint16(16404), + 3740: uint16(9251), + 3741: uint16(11282), + 3742: uint16(6178), + 3743: uint16(7708), + 3744: uint16(8746), + 3745: uint16(12563), + 3746: uint16(8973), + 3747: uint16(4423), + 3748: uint16(16405), + 3749: uint16(16406), + 3750: uint16(16411), + 3751: uint16(16409), + 3752: uint16(16408), + 3753: uint16(14625), + 3754: uint16(4613), + 3755: uint16(16407), + 3756: uint16(3897), + 3757: uint16(9993), + 3758: uint16(10025), + 3759: uint16(11536), + 3760: uint16(16412), + 3761: uint16(16410), + 3762: uint16(8763), + 3763: uint16(7941), + 3764: uint16(9994), + 3765: uint16(10252), + 3766: uint16(16414), + 3767: uint16(11531), + 3768: uint16(5676), + 3769: uint16(16415), + 3770: uint16(16413), + 3771: uint16(10037), + 3772: uint16(16416), + 3773: uint16(16417), + 3774: uint16(3898), + 3775: uint16(7509), + 3776: uint16(16422), + 3777: uint16(16419), + 3778: uint16(9548), + 3779: uint16(16418), + 3780: uint16(5125), + 3781: uint16(16425), + 3782: uint16(16420), + 3783: uint16(16421), + 3784: uint16(16424), + 3785: uint16(16423), + 3786: uint16(10244), + 3787: uint16(8225), + 3788: uint16(8224), + 3789: uint16(5150), + 3790: uint16(16426), + 3791: uint16(16427), + 3792: uint16(16428), + 3793: uint16(16430), + 3794: uint16(16429), + 3795: uint16(4149), + 3796: uint16(16438), + 3797: uint16(10055), + 3798: uint16(16432), + 3799: uint16(16434), + 3800: uint16(16436), + 3801: uint16(7709), + 3802: uint16(16437), + 3803: uint16(16435), + 3804: uint16(6943), + 3805: uint16(16431), + 3806: uint16(16433), + 3807: uint16(10273), + 3808: uint16(7464), + 3809: uint16(16440), + 3810: uint16(16439), + 3811: uint16(16441), + 3812: uint16(6917), + 3813: uint16(6414), + 3814: uint16(9302), + 3815: uint16(16442), + 3816: uint16(9002), + 3817: uint16(16444), + 3818: uint16(11520), + 3819: uint16(16443), + 3820: uint16(8264), + 3821: uint16(16449), + 3822: uint16(16451), + 3823: uint16(16452), + 3824: uint16(8755), + 3825: uint16(16450), + 3826: uint16(16447), + 3827: uint16(16445), + 3828: uint16(16446), + 3829: uint16(16448), + 3830: uint16(16455), + 3831: uint16(16453), + 3832: uint16(16454), + 3833: uint16(16456), + 3834: uint16(16458), + 3835: uint16(16459), + 3836: uint16(16460), + 3837: uint16(16461), + 3838: uint16(16457), + 3839: uint16(16463), + 3840: uint16(16462), + 3841: uint16(16464), + 3842: uint16(11556), + 3843: uint16(16467), + 3844: uint16(16465), + 3845: uint16(16466), + 3846: uint16(4929), + 3847: uint16(11101), + 3848: uint16(10537), + 3849: uint16(16469), + 3850: uint16(16468), + 3851: uint16(16470), + 3852: uint16(16471), + 3853: uint16(16475), + 3854: uint16(16472), + 3855: uint16(16473), + 3856: uint16(16474), + 3857: uint16(16476), + 3858: uint16(16477), + 3859: uint16(16640), + 3860: uint16(16641), + 3861: uint16(16642), + 3862: uint16(9998), + 3863: uint16(9263), + 3864: uint16(16643), + 3865: uint16(9809), + 3866: uint16(10259), + 3867: uint16(16644), + 3868: uint16(16645), + 3869: uint16(9225), + 3870: uint16(4614), + 3871: uint16(6179), + 3872: uint16(16646), + 3873: uint16(16647), + 3874: uint16(16648), + 3875: uint16(6664), + 3876: uint16(16650), + 3877: uint16(16649), + 3878: uint16(16651), + 3879: uint16(16652), + 3880: uint16(10056), + 3881: uint16(16653), + 3882: uint16(16654), + 3883: uint16(21064), + 3884: uint16(16655), + 3885: uint16(16656), + 3886: uint16(16657), + 3887: uint16(6669), + 3888: uint16(16658), + 3889: uint16(9781), + 3890: uint16(10814), + 3891: uint16(4141), + 3892: uint16(4150), + 3893: uint16(16659), + 3894: uint16(16661), + 3895: uint16(16660), + 3896: uint16(9295), + 3897: uint16(7960), + 3898: uint16(15384), + 3899: uint16(16662), + 3900: uint16(11040), + 3901: uint16(16663), + 3902: uint16(4901), + 3903: uint16(10038), + 3904: uint16(16664), + 3905: uint16(16665), + 3906: uint16(16666), + 3907: uint16(11067), + 3908: uint16(11060), + 3909: uint16(8989), + 3910: uint16(8265), + 3911: uint16(16668), + 3912: uint16(7233), + 3913: uint16(7465), + 3914: uint16(16671), + 3915: uint16(16670), + 3916: uint16(16669), + 3917: uint16(10076), + 3918: uint16(4902), + 3919: uint16(5896), + 3920: uint16(16677), + 3921: uint16(16674), + 3922: uint16(7710), + 3923: uint16(11025), + 3924: uint16(16673), + 3925: uint16(16675), + 3926: uint16(16676), + 3927: uint16(16672), + 3928: uint16(16678), + 3929: uint16(16679), + 3930: uint16(8974), + 3931: uint16(4930), + 3932: uint16(8772), + 3933: uint16(16680), + 3934: uint16(16681), + 3935: uint16(16684), + 3936: uint16(7750), + 3937: uint16(9507), + 3938: uint16(16685), + 3939: uint16(10802), + 3940: uint16(16682), + 3941: uint16(16683), + 3942: uint16(16688), + 3943: uint16(16687), + 3944: uint16(16686), + 3945: uint16(16690), + 3946: uint16(16689), + 3947: uint16(16691), + 3948: uint16(16693), + 3949: uint16(16692), + 3950: uint16(10540), + 3951: uint16(7221), + 3952: uint16(11557), + 3953: uint16(16694), + 3954: uint16(9494), + 3955: uint16(16695), + 3956: uint16(16696), + 3957: uint16(16700), + 3958: uint16(16698), + 3959: uint16(16699), + 3960: uint16(16697), + 3961: uint16(16701), + 3962: uint16(16702), + 3963: uint16(16703), + 3964: uint16(16704), + 3965: uint16(11030), + 3966: uint16(16705), + 3967: uint16(11087), + 3968: uint16(16706), + 3969: uint16(8749), + 3970: uint16(9801), + 3971: uint16(5450), + 3972: uint16(8730), + 3973: uint16(16707), + 3974: uint16(5401), + 3975: uint16(7983), + 3976: uint16(16708), + 3977: uint16(6428), + 3978: uint16(16709), + 3979: uint16(16710), + 3980: uint16(5893), + 3981: uint16(6452), + 3982: uint16(16712), + 3983: uint16(9269), + 3984: uint16(6453), + 3985: uint16(5165), + 3986: uint16(10755), + 3987: uint16(9770), + 3988: uint16(9270), + 3989: uint16(6203), + 3990: uint16(16714), + 3991: uint16(7466), + 3992: uint16(11537), + 3993: uint16(6180), + 3994: uint16(5894), + 3995: uint16(9986), + 3996: uint16(16716), + 3997: uint16(16718), + 3998: uint16(5962), + 3999: uint16(16717), + 4000: uint16(9045), + 4001: uint16(16720), + 4002: uint16(4630), + 4003: uint16(16715), + 4004: uint16(10057), + 4005: uint16(4111), + 4006: uint16(6475), + 4007: uint16(11825), + 4008: uint16(16719), + 4009: uint16(16721), + 4010: uint16(10538), + 4011: uint16(7992), + 4012: uint16(16723), + 4013: uint16(16724), + 4014: uint16(16722), + 4015: uint16(4653), + 4016: uint16(16730), + 4017: uint16(16729), + 4018: uint16(6918), + 4019: uint16(16731), + 4020: uint16(16726), + 4021: uint16(16732), + 4022: uint16(16727), + 4023: uint16(10039), + 4024: uint16(16725), + 4025: uint16(16728), + 4026: uint16(16897), + 4027: uint16(16896), + 4028: uint16(10816), + 4029: uint16(16733), + 4030: uint16(3914), + 4031: uint16(16899), + 4032: uint16(16898), + 4033: uint16(7467), + 4034: uint16(16900), + 4035: uint16(8226), + 4036: uint16(16902), + 4037: uint16(16901), + 4038: uint16(16903), + 4039: uint16(16711), + 4040: uint16(16713), + 4041: uint16(16905), + 4042: uint16(16904), + 4043: uint16(6919), + 4044: uint16(11592), + 4045: uint16(6961), + 4046: uint16(16906), + 4047: uint16(5654), + 4048: uint16(5151), + 4049: uint16(5126), + 4050: uint16(6722), + 4051: uint16(11283), + 4052: uint16(16912), + 4053: uint16(16911), + 4054: uint16(8227), + 4055: uint16(16908), + 4056: uint16(16910), + 4057: uint16(7210), + 4058: uint16(7711), + 4059: uint16(16909), + 4060: uint16(16907), + 4061: uint16(9737), + 4062: uint16(7468), + 4063: uint16(10267), + 4064: uint16(6454), + 4065: uint16(9303), + 4066: uint16(16913), + 4067: uint16(16914), + 4068: uint16(16936), + 4069: uint16(5431), + 4070: uint16(11804), + 4071: uint16(8212), + 4072: uint16(16915), + 4073: uint16(4401), + 4074: uint16(9046), + 4075: uint16(10496), + 4076: uint16(16916), + 4077: uint16(5209), + 4078: uint16(16917), + 4079: uint16(16919), + 4080: uint16(16920), + 4081: uint16(9736), + 4082: uint16(16921), + 4083: uint16(16922), + 4084: uint16(16923), + 4085: uint16(5432), + 4086: uint16(4402), + 4087: uint16(9508), + 4088: uint16(7175), + 4089: uint16(6723), + 4090: uint16(16924), + 4091: uint16(7176), + 4092: uint16(4393), + 4093: uint16(10274), + 4094: uint16(16925), + 4095: uint16(10058), + 4096: uint16(8228), + 4097: uint16(16928), + 4098: uint16(16929), + 4099: uint16(9800), + 4100: uint16(7712), + 4101: uint16(16926), + 4102: uint16(8768), + 4103: uint16(16927), + 4104: uint16(7469), + 4105: uint16(3899), + 4106: uint16(5128), + 4107: uint16(16930), + 4108: uint16(9047), + 4109: uint16(16931), + 4110: uint16(7974), + 4111: uint16(11020), + 4112: uint16(10242), + 4113: uint16(16932), + 4114: uint16(16933), + 4115: uint16(8756), + 4116: uint16(11558), + 4117: uint16(16935), + 4118: uint16(16934), + 4119: uint16(6990), + 4120: uint16(16937), + 4121: uint16(3919), + 4122: uint16(16940), + 4123: uint16(16938), + 4124: uint16(4403), + 4125: uint16(5677), + 4126: uint16(16939), + 4127: uint16(6181), + 4128: uint16(6225), + 4129: uint16(10565), + 4130: uint16(16941), + 4131: uint16(10803), + 4132: uint16(16943), + 4133: uint16(7984), + 4134: uint16(4142), + 4135: uint16(4377), + 4136: uint16(3851), + 4137: uint16(16942), + 4138: uint16(16944), + 4139: uint16(16945), + 4140: uint16(7510), + 4141: uint16(16946), + 4142: uint16(4654), + 4143: uint16(16948), + 4144: uint16(5705), + 4145: uint16(5189), + 4146: uint16(16949), + 4147: uint16(5460), + 4148: uint16(16950), + 4149: uint16(8027), + 4150: uint16(9516), + 4151: uint16(7999), + 4152: uint16(6484), + 4153: uint16(16951), + 4154: uint16(8769), + 4155: uint16(8266), + 4156: uint16(16953), + 4157: uint16(16955), + 4158: uint16(16952), + 4159: uint16(16954), + 4160: uint16(5633), + 4161: uint16(16956), + 4162: uint16(5637), + 4163: uint16(5190), + 4164: uint16(11313), + 4165: uint16(16958), + 4166: uint16(16959), + 4167: uint16(4109), + 4168: uint16(16962), + 4169: uint16(4693), + 4170: uint16(16961), + 4171: uint16(16960), + 4172: uint16(16964), + 4173: uint16(16957), + 4174: uint16(16965), + 4175: uint16(11528), + 4176: uint16(16966), + 4177: uint16(16967), + 4178: uint16(13139), + 4179: uint16(16969), + 4180: uint16(16968), + 4181: uint16(16970), + 4182: uint16(16971), + 4183: uint16(11540), + 4184: uint16(16972), + 4185: uint16(20302), + 4186: uint16(7470), + 4187: uint16(16973), + 4188: uint16(16974), + 4189: uint16(7222), + 4190: uint16(9495), + 4191: uint16(16975), + 4192: uint16(8711), + 4193: uint16(16976), + 4194: uint16(8731), + 4195: uint16(16977), + 4196: uint16(5380), + 4197: uint16(12318), + 4198: uint16(8764), + 4199: uint16(6930), + 4200: uint16(4903), + 4201: uint16(16978), + 4202: uint16(17153), + 4203: uint16(16981), + 4204: uint16(5191), + 4205: uint16(16980), + 4206: uint16(17155), + 4207: uint16(16979), + 4208: uint16(7471), + 4209: uint16(16983), + 4210: uint16(16984), + 4211: uint16(9226), + 4212: uint16(16985), + 4213: uint16(4669), + 4214: uint16(7737), + 4215: uint16(10307), + 4216: uint16(16987), + 4217: uint16(8519), + 4218: uint16(16982), + 4219: uint16(16986), + 4220: uint16(16988), + 4221: uint16(6490), + 4222: uint16(17157), + 4223: uint16(10253), + 4224: uint16(9989), + 4225: uint16(9304), + 4226: uint16(5433), + 4227: uint16(17156), + 4228: uint16(17154), + 4229: uint16(10004), + 4230: uint16(16989), + 4231: uint16(8765), + 4232: uint16(9306), + 4233: uint16(9305), + 4234: uint16(6485), + 4235: uint16(17175), + 4236: uint16(17159), + 4237: uint16(17161), + 4238: uint16(17164), + 4239: uint16(17165), + 4240: uint16(17162), + 4241: uint16(17163), + 4242: uint16(17160), + 4243: uint16(17158), + 4244: uint16(17152), + 4245: uint16(10542), + 4246: uint16(4404), + 4247: uint16(17172), + 4248: uint16(17169), + 4249: uint16(17174), + 4250: uint16(17173), + 4251: uint16(9810), + 4252: uint16(11014), + 4253: uint16(6682), + 4254: uint16(17167), + 4255: uint16(17176), + 4256: uint16(17171), + 4257: uint16(17170), + 4258: uint16(17166), + 4259: uint16(17168), + 4260: uint16(4904), + 4261: uint16(8732), + 4262: uint16(8028), + 4263: uint16(9985), + 4264: uint16(17181), + 4265: uint16(9987), + 4266: uint16(8000), + 4267: uint16(17178), + 4268: uint16(10030), + 4269: uint16(17182), + 4270: uint16(10546), + 4271: uint16(8762), + 4272: uint16(17177), + 4273: uint16(17179), + 4274: uint16(17180), + 4275: uint16(17183), + 4276: uint16(6947), + 4277: uint16(9509), + 4278: uint16(17188), + 4279: uint16(17187), + 4280: uint16(17184), + 4281: uint16(11797), + 4282: uint16(17193), + 4283: uint16(17197), + 4284: uint16(17194), + 4285: uint16(17190), + 4286: uint16(17191), + 4287: uint16(17196), + 4288: uint16(17185), + 4289: uint16(12596), + 4290: uint16(17192), + 4291: uint16(17186), + 4292: uint16(17195), + 4293: uint16(17201), + 4294: uint16(4905), + 4295: uint16(17198), + 4296: uint16(17199), + 4297: uint16(17200), + 4298: uint16(17203), + 4299: uint16(17202), + 4300: uint16(10069), + 4301: uint16(17204), + 4302: uint16(11611), + 4303: uint16(10572), + 4304: uint16(17209), + 4305: uint16(17206), + 4306: uint16(17205), + 4307: uint16(7985), + 4308: uint16(17208), + 4309: uint16(17210), + 4310: uint16(17207), + 4311: uint16(17214), + 4312: uint16(17211), + 4313: uint16(17212), + 4314: uint16(17189), + 4315: uint16(17213), + 4316: uint16(17215), + 4317: uint16(17216), + 4318: uint16(10533), + 4319: uint16(17217), + 4320: uint16(11073), + 4321: uint16(5421), + 4322: uint16(5640), + 4323: uint16(17218), + 4324: uint16(10515), + 4325: uint16(7751), + 4326: uint16(11023), + 4327: uint16(17219), + 4328: uint16(11538), + 4329: uint16(9811), + 4330: uint16(8229), + 4331: uint16(9747), + 4332: uint16(7212), + 4333: uint16(3871), + 4334: uint16(17224), + 4335: uint16(17222), + 4336: uint16(17220), + 4337: uint16(4864), + 4338: uint16(7472), + 4339: uint16(17225), + 4340: uint16(17223), + 4341: uint16(17221), + 4342: uint16(17229), + 4343: uint16(17228), + 4344: uint16(17227), + 4345: uint16(17226), + 4346: uint16(17230), + 4347: uint16(17231), + 4348: uint16(7961), + 4349: uint16(17232), + 4350: uint16(17234), + 4351: uint16(17233), + 4352: uint16(5937), + 4353: uint16(8215), + 4354: uint16(17236), + 4355: uint16(9307), + 4356: uint16(17235), + 4357: uint16(17237), + 4358: uint16(10516), + 4359: uint16(8267), + 4360: uint16(6182), + 4361: uint16(17238), + 4362: uint16(11559), + 4363: uint16(17240), + 4364: uint16(17241), + 4365: uint16(17242), + 4366: uint16(17243), + 4367: uint16(6724), + 4368: uint16(17244), + 4369: uint16(5678), + 4370: uint16(5193), + 4371: uint16(5129), + 4372: uint16(17408), + 4373: uint16(11090), + 4374: uint16(6183), + 4375: uint16(17245), + 4376: uint16(17411), + 4377: uint16(11077), + 4378: uint16(9755), + 4379: uint16(10258), + 4380: uint16(7234), + 4381: uint16(17410), + 4382: uint16(6962), + 4383: uint16(6184), + 4384: uint16(6725), + 4385: uint16(5192), + 4386: uint16(10517), + 4387: uint16(17409), + 4388: uint16(8230), + 4389: uint16(10785), + 4390: uint16(6486), + 4391: uint16(6726), + 4392: uint16(9020), + 4393: uint16(17414), + 4394: uint16(11582), + 4395: uint16(6456), + 4396: uint16(17415), + 4397: uint16(7713), + 4398: uint16(17417), + 4399: uint16(7473), + 4400: uint16(6415), + 4401: uint16(17416), + 4402: uint16(7177), + 4403: uint16(5917), + 4404: uint16(8231), + 4405: uint16(17412), + 4406: uint16(17418), + 4407: uint16(17413), + 4408: uint16(5679), + 4409: uint16(17421), + 4410: uint16(17425), + 4411: uint16(5706), + 4412: uint16(17420), + 4413: uint16(17429), + 4414: uint16(6185), + 4415: uint16(11340), + 4416: uint16(3867), + 4417: uint16(17426), + 4418: uint16(5194), + 4419: uint16(17423), + 4420: uint16(17424), + 4421: uint16(9308), + 4422: uint16(17422), + 4423: uint16(17419), + 4424: uint16(4615), + 4425: uint16(8003), + 4426: uint16(5895), + 4427: uint16(17431), + 4428: uint16(17428), + 4429: uint16(17430), + 4430: uint16(17427), + 4431: uint16(5680), + 4432: uint16(8466), + 4433: uint16(17432), + 4434: uint16(8269), + 4435: uint16(17445), + 4436: uint16(17441), + 4437: uint16(17435), + 4438: uint16(17439), + 4439: uint16(7001), + 4440: uint16(3900), + 4441: uint16(17434), + 4442: uint16(17442), + 4443: uint16(17446), + 4444: uint16(6186), + 4445: uint16(11061), + 4446: uint16(9013), + 4447: uint16(17436), + 4448: uint16(17444), + 4449: uint16(17433), + 4450: uint16(8733), + 4451: uint16(17438), + 4452: uint16(3868), + 4453: uint16(11049), + 4454: uint16(17437), + 4455: uint16(5434), + 4456: uint16(10059), + 4457: uint16(8268), + 4458: uint16(11567), + 4459: uint16(7246), + 4460: uint16(17485), + 4461: uint16(17447), + 4462: uint16(8029), + 4463: uint16(17443), + 4464: uint16(17448), + 4465: uint16(17450), + 4466: uint16(9048), + 4467: uint16(17453), + 4468: uint16(17449), + 4469: uint16(10547), + 4470: uint16(4906), + 4471: uint16(11050), + 4472: uint16(3901), + 4473: uint16(17452), + 4474: uint16(11612), + 4475: uint16(17451), + 4476: uint16(4174), + 4477: uint16(9547), + 4478: uint16(17454), + 4479: uint16(17461), + 4480: uint16(17455), + 4481: uint16(17462), + 4482: uint16(17458), + 4483: uint16(9818), + 4484: uint16(6953), + 4485: uint16(17460), + 4486: uint16(17457), + 4487: uint16(17463), + 4488: uint16(17456), + 4489: uint16(7203), + 4490: uint16(10756), + 4491: uint16(7211), + 4492: uint16(17459), + 4493: uint16(17471), + 4494: uint16(17467), + 4495: uint16(17470), + 4496: uint16(17468), + 4497: uint16(17472), + 4498: uint16(17466), + 4499: uint16(17440), + 4500: uint16(7986), + 4501: uint16(10026), + 4502: uint16(17469), + 4503: uint16(17464), + 4504: uint16(8192), + 4505: uint16(5681), + 4506: uint16(7178), + 4507: uint16(7684), + 4508: uint16(8213), + 4509: uint16(17475), + 4510: uint16(17477), + 4511: uint16(17478), + 4512: uint16(17474), + 4513: uint16(17476), + 4514: uint16(17465), + 4515: uint16(17473), + 4516: uint16(17481), + 4517: uint16(17480), + 4518: uint16(10841), + 4519: uint16(5642), + 4520: uint16(17479), + 4521: uint16(17483), + 4522: uint16(17482), + 4523: uint16(17486), + 4524: uint16(17488), + 4525: uint16(6683), + 4526: uint16(17484), + 4527: uint16(17489), + 4528: uint16(17490), + 4529: uint16(17491), + 4530: uint16(17497), + 4531: uint16(9242), + 4532: uint16(17493), + 4533: uint16(17492), + 4534: uint16(17494), + 4535: uint16(17495), + 4536: uint16(17496), + 4537: uint16(17498), + 4538: uint16(17499), + 4539: uint16(4907), + 4540: uint16(17500), + 4541: uint16(17501), + 4542: uint16(17664), + 4543: uint16(17665), + 4544: uint16(17666), + 4545: uint16(17667), + 4546: uint16(17668), + 4547: uint16(17669), + 4548: uint16(17671), + 4549: uint16(17670), + 4550: uint16(17672), + 4551: uint16(17673), + 4552: uint16(17674), + 4553: uint16(17677), + 4554: uint16(17675), + 4555: uint16(17676), + 4556: uint16(6464), + 4557: uint16(5682), + 4558: uint16(8757), + 4559: uint16(10002), + 4560: uint16(7247), + 4561: uint16(9772), + 4562: uint16(10060), + 4563: uint16(17678), + 4564: uint16(14156), + 4565: uint16(17679), + 4566: uint16(17681), + 4567: uint16(11332), + 4568: uint16(17680), + 4569: uint16(17683), + 4570: uint16(17682), + 4571: uint16(11314), + 4572: uint16(17684), + 4573: uint16(10077), + 4574: uint16(17685), + 4575: uint16(17688), + 4576: uint16(17687), + 4577: uint16(17686), + 4578: uint16(17689), + 4579: uint16(5649), + 4580: uint16(8193), + 4581: uint16(5152), + 4582: uint16(17693), + 4583: uint16(17690), + 4584: uint16(17691), + 4585: uint16(17694), + 4586: uint16(17695), + 4587: uint16(17692), + 4588: uint16(4104), + 4589: uint16(4358), + 4590: uint16(17697), + 4591: uint16(17698), + 4592: uint16(17699), + 4593: uint16(11329), + 4594: uint16(7179), + 4595: uint16(17701), + 4596: uint16(17700), + 4597: uint16(7752), + 4598: uint16(17702), + 4599: uint16(17703), + 4600: uint16(17704), + 4601: uint16(4932), + 4602: uint16(4908), + 4603: uint16(17705), + 4604: uint16(17706), + 4605: uint16(10812), + 4606: uint16(11330), + 4607: uint16(11315), + 4608: uint16(11798), + 4609: uint16(6188), + 4610: uint16(17709), + 4611: uint16(6963), + 4612: uint16(17708), + 4613: uint16(17710), + 4614: uint16(6920), + 4615: uint16(8496), + 4616: uint16(17711), + 4617: uint16(6187), + 4618: uint16(11062), + 4619: uint16(17712), + 4620: uint16(17713), + 4621: uint16(17714), + 4622: uint16(17715), + 4623: uint16(17716), + 4624: uint16(6921), + 4625: uint16(11084), + 4626: uint16(17718), + 4627: uint16(8734), + 4628: uint16(17717), + 4629: uint16(17720), + 4630: uint16(17719), + 4631: uint16(17721), + 4632: uint16(7962), + 4633: uint16(17722), + 4634: uint16(17723), + 4635: uint16(10520), + 4636: uint16(17724), + 4637: uint16(8270), + 4638: uint16(17725), + 4639: uint16(17726), + 4640: uint16(11613), + 4641: uint16(17729), + 4642: uint16(17728), + 4643: uint16(17727), + 4644: uint16(8975), + 4645: uint16(17730), + 4646: uint16(7685), + 4647: uint16(17731), + 4648: uint16(17732), + 4649: uint16(11799), + 4650: uint16(17733), + 4651: uint16(17734), + 4652: uint16(17736), + 4653: uint16(17735), + 4654: uint16(9988), + 4655: uint16(9560), + 4656: uint16(11805), + 4657: uint16(9992), + 4658: uint16(17738), + 4659: uint16(7474), + 4660: uint16(10249), + 4661: uint16(17739), + 4662: uint16(17737), + 4663: uint16(4909), + 4664: uint16(5939), + 4665: uint16(6727), + 4666: uint16(10061), + 4667: uint16(5897), + 4668: uint16(10786), + 4669: uint16(17742), + 4670: uint16(17740), + 4671: uint16(6189), + 4672: uint16(6190), + 4673: uint16(3912), + 4674: uint16(6471), + 4675: uint16(9784), + 4676: uint16(3902), + 4677: uint16(17747), + 4678: uint16(8735), + 4679: uint16(9783), + 4680: uint16(8506), + 4681: uint16(17749), + 4682: uint16(17745), + 4683: uint16(17748), + 4684: uint16(17743), + 4685: uint16(17746), + 4686: uint16(10757), + 4687: uint16(5940), + 4688: uint16(3932), + 4689: uint16(17744), + 4690: uint16(17751), + 4691: uint16(17752), + 4692: uint16(9496), + 4693: uint16(5402), + 4694: uint16(17925), + 4695: uint16(9756), + 4696: uint16(6728), + 4697: uint16(5403), + 4698: uint16(7975), + 4699: uint16(11813), + 4700: uint16(11021), + 4701: uint16(17750), + 4702: uint16(7987), + 4703: uint16(5170), + 4704: uint16(17753), + 4705: uint16(17755), + 4706: uint16(17754), + 4707: uint16(17756), + 4708: uint16(8709), + 4709: uint16(9757), + 4710: uint16(8976), + 4711: uint16(17922), + 4712: uint16(17921), + 4713: uint16(17757), + 4714: uint16(7732), + 4715: uint16(10308), + 4716: uint16(17924), + 4717: uint16(17923), + 4718: uint16(6191), + 4719: uint16(11826), + 4720: uint16(17940), + 4721: uint16(17928), + 4722: uint16(17929), + 4723: uint16(6991), + 4724: uint16(17927), + 4725: uint16(6231), + 4726: uint16(17926), + 4727: uint16(17930), + 4728: uint16(8977), + 4729: uint16(10497), + 4730: uint16(8194), + 4731: uint16(8507), + 4732: uint16(17934), + 4733: uint16(17935), + 4734: uint16(17931), + 4735: uint16(17932), + 4736: uint16(17933), + 4737: uint16(6192), + 4738: uint16(17941), + 4739: uint16(17937), + 4740: uint16(10309), + 4741: uint16(10827), + 4742: uint16(10247), + 4743: uint16(17936), + 4744: uint16(17939), + 4745: uint16(17938), + 4746: uint16(10787), + 4747: uint16(17942), + 4748: uint16(17943), + 4749: uint16(8214), + 4750: uint16(17944), + 4751: uint16(17946), + 4752: uint16(17950), + 4753: uint16(17947), + 4754: uint16(17945), + 4755: uint16(9758), + 4756: uint16(17948), + 4757: uint16(17949), + 4758: uint16(4369), + 4759: uint16(17956), + 4760: uint16(17951), + 4761: uint16(17952), + 4762: uint16(17953), + 4763: uint16(8448), + 4764: uint16(17955), + 4765: uint16(17954), + 4766: uint16(17957), + 4767: uint16(17958), + 4768: uint16(17959), + 4769: uint16(7714), + 4770: uint16(4424), + 4771: uint16(17960), + 4772: uint16(11574), + 4773: uint16(6922), + 4774: uint16(7180), + 4775: uint16(6729), + 4776: uint16(8758), + 4777: uint16(17961), + 4778: uint16(17962), + 4779: uint16(4112), + 4780: uint16(17963), + 4781: uint16(17964), + 4782: uint16(17965), + 4783: uint16(17966), + 4784: uint16(17967), + 4785: uint16(5404), + 4786: uint16(14601), + 4787: uint16(17968), + 4788: uint16(8004), + 4789: uint16(17969), + 4790: uint16(6954), + 4791: uint16(17970), + 4792: uint16(12047), + 4793: uint16(17971), + 4794: uint16(10557), + 4795: uint16(4923), + 4796: uint16(8195), + 4797: uint16(7223), + 4798: uint16(10320), + 4799: uint16(7181), + 4800: uint16(17972), + 4801: uint16(6193), + 4802: uint16(17973), + 4803: uint16(10027), + 4804: uint16(17987), + 4805: uint16(17975), + 4806: uint16(8488), + 4807: uint16(9812), + 4808: uint16(5918), + 4809: uint16(17974), + 4810: uint16(8196), + 4811: uint16(17976), + 4812: uint16(9049), + 4813: uint16(17978), + 4814: uint16(17977), + 4815: uint16(17980), + 4816: uint16(17979), + 4817: uint16(17981), + 4818: uint16(17983), + 4819: uint16(17982), + 4820: uint16(4910), + 4821: uint16(17984), + 4822: uint16(17985), + 4823: uint16(17986), + 4824: uint16(6416), + 4825: uint16(11560), + 4826: uint16(17988), + 4827: uint16(7686), + 4828: uint16(4175), + 4829: uint16(17989), + 4830: uint16(17990), + 4831: uint16(17991), + 4832: uint16(3921), + 4833: uint16(17992), + 4834: uint16(17993), + 4835: uint16(10310), + 4836: uint16(6950), + 4837: uint16(17995), + 4838: uint16(4616), + 4839: uint16(3857), + 4840: uint16(17994), + 4841: uint16(17997), + 4842: uint16(9773), + 4843: uint16(7715), + 4844: uint16(4405), + 4845: uint16(10758), + 4846: uint16(5692), + 4847: uint16(5435), + 4848: uint16(17996), + 4849: uint16(4425), + 4850: uint16(4866), + 4851: uint16(4176), + 4852: uint16(18001), + 4853: uint16(11593), + 4854: uint16(8508), + 4855: uint16(10275), + 4856: uint16(18013), + 4857: uint16(4406), + 4858: uint16(18011), + 4859: uint16(18009), + 4860: uint16(18000), + 4861: uint16(17998), + 4862: uint16(17999), + 4863: uint16(6978), + 4864: uint16(5451), + 4865: uint16(8790), + 4866: uint16(9520), + 4867: uint16(4144), + 4868: uint16(18003), + 4869: uint16(18002), + 4870: uint16(18008), + 4871: uint16(18004), + 4872: uint16(18007), + 4873: uint16(11055), + 4874: uint16(18006), + 4875: uint16(4407), + 4876: uint16(4700), + 4877: uint16(18010), + 4878: uint16(18012), + 4879: uint16(5683), + 4880: uint16(18178), + 4881: uint16(18187), + 4882: uint16(18188), + 4883: uint16(3850), + 4884: uint16(18195), + 4885: uint16(3920), + 4886: uint16(18186), + 4887: uint16(18185), + 4888: uint16(18180), + 4889: uint16(18179), + 4890: uint16(18177), + 4891: uint16(18176), + 4892: uint16(8770), + 4893: uint16(8538), + 4894: uint16(18182), + 4895: uint16(18181), + 4896: uint16(18184), + 4897: uint16(8271), + 4898: uint16(5684), + 4899: uint16(4128), + 4900: uint16(18183), + 4901: uint16(6194), + 4902: uint16(8272), + 4903: uint16(18201), + 4904: uint16(18202), + 4905: uint16(4408), + 4906: uint16(4365), + 4907: uint16(18199), + 4908: uint16(18189), + 4909: uint16(18197), + 4910: uint16(18204), + 4911: uint16(18198), + 4912: uint16(18196), + 4913: uint16(18005), + 4914: uint16(18194), + 4915: uint16(18190), + 4916: uint16(4911), + 4917: uint16(18192), + 4918: uint16(18203), + 4919: uint16(18193), + 4920: uint16(18205), + 4921: uint16(18191), + 4922: uint16(9819), + 4923: uint16(11336), + 4924: uint16(18200), + 4925: uint16(18222), + 4926: uint16(18214), + 4927: uint16(7770), + 4928: uint16(5157), + 4929: uint16(5436), + 4930: uint16(18209), + 4931: uint16(4410), + 4932: uint16(7475), + 4933: uint16(18212), + 4934: uint16(6457), + 4935: uint16(9264), + 4936: uint16(18217), + 4937: uint16(10573), + 4938: uint16(18208), + 4939: uint16(4409), + 4940: uint16(5941), + 4941: uint16(10248), + 4942: uint16(18218), + 4943: uint16(18206), + 4944: uint16(18215), + 4945: uint16(18225), + 4946: uint16(18210), + 4947: uint16(18211), + 4948: uint16(9497), + 4949: uint16(18216), + 4950: uint16(18213), + 4951: uint16(10759), + 4952: uint16(18219), + 4953: uint16(3903), + 4954: uint16(18207), + 4955: uint16(18221), + 4956: uint16(18220), + 4957: uint16(9802), + 4958: uint16(18227), + 4959: uint16(18238), + 4960: uint16(4701), + 4961: uint16(18241), + 4962: uint16(18223), + 4963: uint16(18228), + 4964: uint16(11341), + 4965: uint16(18237), + 4966: uint16(11316), + 4967: uint16(11529), + 4968: uint16(8791), + 4969: uint16(4682), + 4970: uint16(10321), + 4971: uint16(18243), + 4972: uint16(9472), + 4973: uint16(3856), + 4974: uint16(18236), + 4975: uint16(18232), + 4976: uint16(8273), + 4977: uint16(18226), + 4978: uint16(18234), + 4979: uint16(18239), + 4980: uint16(9739), + 4981: uint16(3849), + 4982: uint16(18231), + 4983: uint16(18240), + 4984: uint16(10327), + 4985: uint16(18235), + 4986: uint16(18230), + 4987: uint16(7476), + 4988: uint16(7182), + 4989: uint16(6923), + 4990: uint16(11063), + 4991: uint16(10278), + 4992: uint16(18246), + 4993: uint16(18255), + 4994: uint16(18233), + 4995: uint16(4694), + 4996: uint16(7511), + 4997: uint16(18244), + 4998: uint16(18249), + 4999: uint16(8274), + 5000: uint16(18245), + 5001: uint16(18252), + 5002: uint16(8766), + 5003: uint16(18253), + 5004: uint16(11317), + 5005: uint16(18242), + 5006: uint16(4631), + 5007: uint16(18248), + 5008: uint16(18251), + 5009: uint16(11019), + 5010: uint16(18254), + 5011: uint16(18247), + 5012: uint16(18250), + 5013: uint16(10760), + 5014: uint16(11776), + 5015: uint16(18258), + 5016: uint16(18265), + 5017: uint16(18257), + 5018: uint16(6946), + 5019: uint16(18224), + 5020: uint16(10541), + 5021: uint16(11009), + 5022: uint16(18264), + 5023: uint16(18263), + 5024: uint16(18259), + 5025: uint16(18260), + 5026: uint16(4117), + 5027: uint16(18262), + 5028: uint16(18256), + 5029: uint16(9012), + 5030: uint16(18261), + 5031: uint16(3933), + 5032: uint16(8449), + 5033: uint16(10530), + 5034: uint16(18266), + 5035: uint16(18432), + 5036: uint16(10040), + 5037: uint16(18269), + 5038: uint16(7477), + 5039: uint16(6952), + 5040: uint16(18434), + 5041: uint16(5405), + 5042: uint16(18435), + 5043: uint16(10328), + 5044: uint16(18268), + 5045: uint16(18229), + 5046: uint16(18267), + 5047: uint16(11822), + 5048: uint16(9473), + 5049: uint16(10322), + 5050: uint16(18442), + 5051: uint16(18448), + 5052: uint16(18449), + 5053: uint16(18436), + 5054: uint16(9813), + 5055: uint16(18446), + 5056: uint16(18438), + 5057: uint16(18440), + 5058: uint16(18450), + 5059: uint16(18439), + 5060: uint16(18443), + 5061: uint16(4177), + 5062: uint16(9540), + 5063: uint16(18444), + 5064: uint16(18447), + 5065: uint16(18437), + 5066: uint16(8197), + 5067: uint16(18441), + 5068: uint16(6662), + 5069: uint16(7716), + 5070: uint16(5647), + 5071: uint16(11091), + 5072: uint16(11096), + 5073: uint16(7249), + 5074: uint16(18454), + 5075: uint16(18452), + 5076: uint16(11821), + 5077: uint16(18451), + 5078: uint16(11348), + 5079: uint16(18453), + 5080: uint16(18455), + 5081: uint16(18456), + 5082: uint16(18459), + 5083: uint16(18457), + 5084: uint16(9474), + 5085: uint16(18458), + 5086: uint16(10028), + 5087: uint16(18445), + 5088: uint16(7250), + 5089: uint16(18460), + 5090: uint16(18465), + 5091: uint16(8275), + 5092: uint16(18464), + 5093: uint16(18433), + 5094: uint16(18466), + 5095: uint16(8232), + 5096: uint16(18461), + 5097: uint16(18463), + 5098: uint16(18462), + 5099: uint16(15376), + 5100: uint16(15361), + 5101: uint16(18468), + 5102: uint16(18467), + 5103: uint16(11349), + 5104: uint16(16667), + 5105: uint16(18469), + 5106: uint16(18470), + 5107: uint16(18471), + 5108: uint16(5942), + 5109: uint16(5171), + 5110: uint16(18473), + 5111: uint16(12348), + 5112: uint16(5204), + 5113: uint16(11545), + 5114: uint16(5458), + 5115: uint16(18474), + 5116: uint16(18475), + 5117: uint16(8781), + 5118: uint16(18476), + 5119: uint16(9561), + 5120: uint16(3865), + 5121: uint16(4418), + 5122: uint16(18481), + 5123: uint16(18482), + 5124: uint16(18477), + 5125: uint16(6684), + 5126: uint16(18478), + 5127: uint16(9761), + 5128: uint16(18479), + 5129: uint16(18480), + 5130: uint16(18490), + 5131: uint16(18484), + 5132: uint16(18487), + 5133: uint16(18483), + 5134: uint16(18485), + 5135: uint16(18486), + 5136: uint16(6967), + 5137: uint16(18488), + 5138: uint16(8736), + 5139: uint16(5685), + 5140: uint16(4641), + 5141: uint16(18491), + 5142: uint16(4638), + 5143: uint16(18496), + 5144: uint16(18492), + 5145: uint16(18495), + 5146: uint16(10009), + 5147: uint16(18493), + 5148: uint16(18494), + 5149: uint16(10279), + 5150: uint16(10041), + 5151: uint16(18497), + 5152: uint16(8540), + 5153: uint16(18507), + 5154: uint16(18503), + 5155: uint16(4426), + 5156: uint16(18501), + 5157: uint16(10761), + 5158: uint16(18502), + 5159: uint16(18499), + 5160: uint16(18500), + 5161: uint16(18505), + 5162: uint16(18508), + 5163: uint16(18506), + 5164: uint16(18504), + 5165: uint16(18498), + 5166: uint16(8759), + 5167: uint16(18515), + 5168: uint16(11017), + 5169: uint16(18513), + 5170: uint16(18514), + 5171: uint16(18509), + 5172: uint16(18511), + 5173: uint16(18512), + 5174: uint16(18510), + 5175: uint16(8005), + 5176: uint16(11800), + 5177: uint16(18519), + 5178: uint16(18520), + 5179: uint16(18688), + 5180: uint16(7689), + 5181: uint16(18522), + 5182: uint16(18525), + 5183: uint16(18517), + 5184: uint16(18516), + 5185: uint16(18689), + 5186: uint16(4411), + 5187: uint16(18523), + 5188: uint16(18690), + 5189: uint16(18524), + 5190: uint16(18521), + 5191: uint16(8978), + 5192: uint16(18518), + 5193: uint16(9799), + 5194: uint16(18694), + 5195: uint16(11290), + 5196: uint16(18693), + 5197: uint16(18692), + 5198: uint16(18701), + 5199: uint16(18695), + 5200: uint16(18703), + 5201: uint16(11333), + 5202: uint16(18706), + 5203: uint16(18697), + 5204: uint16(18698), + 5205: uint16(18702), + 5206: uint16(18705), + 5207: uint16(18704), + 5208: uint16(18696), + 5209: uint16(18699), + 5210: uint16(18716), + 5211: uint16(18709), + 5212: uint16(18707), + 5213: uint16(18708), + 5214: uint16(18713), + 5215: uint16(18714), + 5216: uint16(4617), + 5217: uint16(5153), + 5218: uint16(18712), + 5219: uint16(18691), + 5220: uint16(18711), + 5221: uint16(18715), + 5222: uint16(18710), + 5223: uint16(18717), + 5224: uint16(18719), + 5225: uint16(18718), + 5226: uint16(18721), + 5227: uint16(18720), + 5228: uint16(18489), + 5229: uint16(18725), + 5230: uint16(18722), + 5231: uint16(18723), + 5232: uint16(18724), + 5233: uint16(18726), + 5234: uint16(5707), + 5235: uint16(18728), + 5236: uint16(18727), + 5237: uint16(7183), + 5238: uint16(6195), + 5239: uint16(15622), + 5240: uint16(18729), + 5241: uint16(7216), + 5242: uint16(4632), + 5243: uint16(18730), + 5244: uint16(4145), + 5245: uint16(7478), + 5246: uint16(18731), + 5247: uint16(6196), + 5248: uint16(18732), + 5249: uint16(3904), + 5250: uint16(10268), + 5251: uint16(18733), + 5252: uint16(7753), + 5253: uint16(18740), + 5254: uint16(18737), + 5255: uint16(8782), + 5256: uint16(18738), + 5257: uint16(18735), + 5258: uint16(5437), + 5259: uint16(18734), + 5260: uint16(18741), + 5261: uint16(5653), + 5262: uint16(8509), + 5263: uint16(18747), + 5264: uint16(18743), + 5265: uint16(8468), + 5266: uint16(18742), + 5267: uint16(18745), + 5268: uint16(18736), + 5269: uint16(18746), + 5270: uint16(18748), + 5271: uint16(10062), + 5272: uint16(18744), + 5273: uint16(18749), + 5274: uint16(18751), + 5275: uint16(5938), + 5276: uint16(18739), + 5277: uint16(3872), + 5278: uint16(18750), + 5279: uint16(6458), + 5280: uint16(11605), + 5281: uint16(18752), + 5282: uint16(18753), + 5283: uint16(8276), + 5284: uint16(11521), + 5285: uint16(18754), + 5286: uint16(11284), + 5287: uint16(18755), + 5288: uint16(18756), + 5289: uint16(10563), + 5290: uint16(18757), + 5291: uint16(6431), + 5292: uint16(11522), + 5293: uint16(18762), + 5294: uint16(18763), + 5295: uint16(7479), + 5296: uint16(18761), + 5297: uint16(11334), + 5298: uint16(18758), + 5299: uint16(18760), + 5300: uint16(7964), + 5301: uint16(7773), + 5302: uint16(18759), + 5303: uint16(18764), + 5304: uint16(10498), + 5305: uint16(18766), + 5306: uint16(18765), + 5307: uint16(4683), + 5308: uint16(10762), + 5309: uint16(18767), + 5310: uint16(18779), + 5311: uint16(18769), + 5312: uint16(18770), + 5313: uint16(18771), + 5314: uint16(18772), + 5315: uint16(18776), + 5316: uint16(18777), + 5317: uint16(18775), + 5318: uint16(18773), + 5319: uint16(18768), + 5320: uint16(18774), + 5321: uint16(18778), + 5322: uint16(20246), + 5323: uint16(4359), + 5324: uint16(18781), + 5325: uint16(5438), + 5326: uint16(18780), + 5327: uint16(18945), + 5328: uint16(18944), + 5329: uint16(18947), + 5330: uint16(18946), + 5331: uint16(18948), + 5332: uint16(7184), + 5333: uint16(18949), + 5334: uint16(18950), + 5335: uint16(18951), + 5336: uint16(7965), + 5337: uint16(11318), + 5338: uint16(18952), + 5339: uint16(10499), + 5340: uint16(9765), + 5341: uint16(18953), + 5342: uint16(18954), + 5343: uint16(5898), + 5344: uint16(5131), + 5345: uint16(18955), + 5346: uint16(6730), + 5347: uint16(9760), + 5348: uint16(18956), + 5349: uint16(4655), + 5350: uint16(18957), + 5351: uint16(18959), + 5352: uint16(11350), + 5353: uint16(18958), + 5354: uint16(7717), + 5355: uint16(18960), + 5356: uint16(18961), + 5357: uint16(18962), + 5358: uint16(4912), + 5359: uint16(18963), + 5360: uint16(18964), + 5361: uint16(18965), + 5362: uint16(18966), + 5363: uint16(4656), + 5364: uint16(18967), + 5365: uint16(18968), + 5366: uint16(18969), + 5367: uint16(4433), + 5368: uint16(7687), + 5369: uint16(18970), + 5370: uint16(18971), + 5371: uint16(18972), + 5372: uint16(5919), + 5373: uint16(9050), + 5374: uint16(18973), + 5375: uint16(5686), + 5376: uint16(7733), + 5377: uint16(18976), + 5378: uint16(9475), + 5379: uint16(18975), + 5380: uint16(5648), + 5381: uint16(18974), + 5382: uint16(8534), + 5383: uint16(5132), + 5384: uint16(18977), + 5385: uint16(18978), + 5386: uint16(7480), + 5387: uint16(5708), + 5388: uint16(18979), + 5389: uint16(10763), + 5390: uint16(7998), + 5391: uint16(5205), + 5392: uint16(11092), + 5393: uint16(8233), + 5394: uint16(18980), + 5395: uint16(7718), + 5396: uint16(8783), + 5397: uint16(7481), + 5398: uint16(18981), + 5399: uint16(18984), + 5400: uint16(18985), + 5401: uint16(6429), + 5402: uint16(8481), + 5403: uint16(18983), + 5404: uint16(7482), + 5405: uint16(10269), + 5406: uint16(18982), + 5407: uint16(6731), + 5408: uint16(4146), + 5409: uint16(18989), + 5410: uint16(5687), + 5411: uint16(6733), + 5412: uint16(6732), + 5413: uint16(11820), + 5414: uint16(18988), + 5415: uint16(18987), + 5416: uint16(8198), + 5417: uint16(5164), + 5418: uint16(11810), + 5419: uint16(4633), + 5420: uint16(7483), + 5421: uint16(18986), + 5422: uint16(18991), + 5423: uint16(18992), + 5424: uint16(18990), + 5425: uint16(5943), + 5426: uint16(11295), + 5427: uint16(6734), + 5428: uint16(9734), + 5429: uint16(18995), + 5430: uint16(7967), + 5431: uint16(8737), + 5432: uint16(11285), + 5433: uint16(18998), + 5434: uint16(5963), + 5435: uint16(7966), + 5436: uint16(18994), + 5437: uint16(18999), + 5438: uint16(5964), + 5439: uint16(18996), + 5440: uint16(18997), + 5441: uint16(18993), + 5442: uint16(8001), + 5443: uint16(9512), + 5444: uint16(8718), + 5445: uint16(4412), + 5446: uint16(10063), + 5447: uint16(5154), + 5448: uint16(8979), + 5449: uint16(19002), + 5450: uint16(19000), + 5451: uint16(8747), + 5452: uint16(7968), + 5453: uint16(4913), + 5454: uint16(19001), + 5455: uint16(7738), + 5456: uint16(11561), + 5457: uint16(11807), + 5458: uint16(19003), + 5459: uint16(19014), + 5460: uint16(8980), + 5461: uint16(19013), + 5462: uint16(19010), + 5463: uint16(19018), + 5464: uint16(19011), + 5465: uint16(19007), + 5466: uint16(9051), + 5467: uint16(19006), + 5468: uint16(19004), + 5469: uint16(11264), + 5470: uint16(6735), + 5471: uint16(19008), + 5472: uint16(19005), + 5473: uint16(19012), + 5474: uint16(7251), + 5475: uint16(5920), + 5476: uint16(8537), + 5477: uint16(10788), + 5478: uint16(4153), + 5479: uint16(3905), + 5480: uint16(9476), + 5481: uint16(19016), + 5482: uint16(19015), + 5483: uint16(9541), + 5484: uint16(19020), + 5485: uint16(19009), + 5486: uint16(19019), + 5487: uint16(19021), + 5488: uint16(5899), + 5489: uint16(19017), + 5490: uint16(6197), + 5491: uint16(6964), + 5492: uint16(19022), + 5493: uint16(11319), + 5494: uint16(19025), + 5495: uint16(19028), + 5496: uint16(19026), + 5497: uint16(10260), + 5498: uint16(19023), + 5499: uint16(5439), + 5500: uint16(19027), + 5501: uint16(19029), + 5502: uint16(19033), + 5503: uint16(19030), + 5504: uint16(19032), + 5505: uint16(19031), + 5506: uint16(19034), + 5507: uint16(6928), + 5508: uint16(19036), + 5509: uint16(19035), + 5510: uint16(10311), + 5511: uint16(19200), + 5512: uint16(5688), + 5513: uint16(19037), + 5514: uint16(19201), + 5515: uint16(19202), + 5516: uint16(5155), + 5517: uint16(17696), + 5518: uint16(7512), + 5519: uint16(19203), + 5520: uint16(5965), + 5521: uint16(19204), + 5522: uint16(19205), + 5523: uint16(6685), + 5524: uint16(14637), + 5525: uint16(19206), + 5526: uint16(19207), + 5527: uint16(7185), + 5528: uint16(19208), + 5529: uint16(19209), + 5530: uint16(19210), + 5531: uint16(19211), + 5532: uint16(19212), + 5533: uint16(8714), + 5534: uint16(19213), + 5535: uint16(19215), + 5536: uint16(19214), + 5537: uint16(9477), + 5538: uint16(19216), + 5539: uint16(10764), + 5540: uint16(19217), + 5541: uint16(19218), + 5542: uint16(19219), + 5543: uint16(19220), + 5544: uint16(9529), + 5545: uint16(7484), + 5546: uint16(19221), + 5547: uint16(6218), + 5548: uint16(12045), + 5549: uint16(19222), + 5550: uint16(19223), + 5551: uint16(10270), + 5552: uint16(19224), + 5553: uint16(19232), + 5554: uint16(19225), + 5555: uint16(19227), + 5556: uint16(19226), + 5557: uint16(19228), + 5558: uint16(10789), + 5559: uint16(19229), + 5560: uint16(19230), + 5561: uint16(19231), + 5562: uint16(19233), + 5563: uint16(4620), + 5564: uint16(9030), + 5565: uint16(10312), + 5566: uint16(6465), + 5567: uint16(6198), + 5568: uint16(10286), + 5569: uint16(4414), + 5570: uint16(10029), + 5571: uint16(19236), + 5572: uint16(4914), + 5573: uint16(7988), + 5574: uint16(19235), + 5575: uint16(19240), + 5576: uint16(8792), + 5577: uint16(11074), + 5578: uint16(19238), + 5579: uint16(19239), + 5580: uint16(5133), + 5581: uint16(19241), + 5582: uint16(9794), + 5583: uint16(8510), + 5584: uint16(10064), + 5585: uint16(9244), + 5586: uint16(19237), + 5587: uint16(10790), + 5588: uint16(4427), + 5589: uint16(19243), + 5590: uint16(11783), + 5591: uint16(8993), + 5592: uint16(11812), + 5593: uint16(6736), + 5594: uint16(19242), + 5595: uint16(8464), + 5596: uint16(19259), + 5597: uint16(8199), + 5598: uint16(9559), + 5599: uint16(10287), + 5600: uint16(19246), + 5601: uint16(6686), + 5602: uint16(6737), + 5603: uint16(7485), + 5604: uint16(9796), + 5605: uint16(5900), + 5606: uint16(19245), + 5607: uint16(19244), + 5608: uint16(10313), + 5609: uint16(6944), + 5610: uint16(9265), + 5611: uint16(19248), + 5612: uint16(19249), + 5613: uint16(6199), + 5614: uint16(19247), + 5615: uint16(19250), + 5616: uint16(19251), + 5617: uint16(19253), + 5618: uint16(8450), + 5619: uint16(19252), + 5620: uint16(4933), + 5621: uint16(19255), + 5622: uint16(19254), + 5623: uint16(19256), + 5624: uint16(19258), + 5625: uint16(19260), + 5626: uint16(19261), + 5627: uint16(7989), + 5628: uint16(6958), + 5629: uint16(19262), + 5630: uint16(4657), + 5631: uint16(19263), + 5632: uint16(8277), + 5633: uint16(19264), + 5634: uint16(19265), + 5635: uint16(10314), + 5636: uint16(5134), + 5637: uint16(19266), + 5638: uint16(8981), + 5639: uint16(4154), + 5640: uint16(19267), + 5641: uint16(6992), + 5642: uint16(7765), + 5643: uint16(8460), + 5644: uint16(19270), + 5645: uint16(19269), + 5646: uint16(19268), + 5647: uint16(19276), + 5648: uint16(19274), + 5649: uint16(19271), + 5650: uint16(19273), + 5651: uint16(19272), + 5652: uint16(19275), + 5653: uint16(5206), + 5654: uint16(19279), + 5655: uint16(7990), + 5656: uint16(19280), + 5657: uint16(5944), + 5658: uint16(19277), + 5659: uint16(19278), + 5660: uint16(11784), + 5661: uint16(8982), + 5662: uint16(8200), + 5663: uint16(19281), + 5664: uint16(19284), + 5665: uint16(19282), + 5666: uint16(19283), + 5667: uint16(11320), + 5668: uint16(9478), + 5669: uint16(19287), + 5670: uint16(19285), + 5671: uint16(19286), + 5672: uint16(19288), + 5673: uint16(19464), + 5674: uint16(19291), + 5675: uint16(19292), + 5676: uint16(19290), + 5677: uint16(19289), + 5678: uint16(9052), + 5679: uint16(19456), + 5680: uint16(19460), + 5681: uint16(19457), + 5682: uint16(19293), + 5683: uint16(19458), + 5684: uint16(19459), + 5685: uint16(19466), + 5686: uint16(19461), + 5687: uint16(7991), + 5688: uint16(19463), + 5689: uint16(19465), + 5690: uint16(19462), + 5691: uint16(19468), + 5692: uint16(7186), + 5693: uint16(19467), + 5694: uint16(19469), + 5695: uint16(19470), + 5696: uint16(19473), + 5697: uint16(19472), + 5698: uint16(19471), + 5699: uint16(19475), + 5700: uint16(19474), + 5701: uint16(11093), + 5702: uint16(19477), + 5703: uint16(19476), + 5704: uint16(19478), + 5705: uint16(19479), + 5706: uint16(19481), + 5707: uint16(19480), + 5708: uint16(7719), + 5709: uint16(19482), + 5710: uint16(5452), + 5711: uint16(19483), + 5712: uint16(19485), + 5713: uint16(19486), + 5714: uint16(19487), + 5715: uint16(19484), + 5716: uint16(19488), + 5717: uint16(6965), + 5718: uint16(19489), + 5719: uint16(5135), + 5720: uint16(5650), + 5721: uint16(5901), + 5722: uint16(19490), + 5723: uint16(9551), + 5724: uint16(9245), + 5725: uint16(19491), + 5726: uint16(19494), + 5727: uint16(6931), + 5728: uint16(19493), + 5729: uint16(19492), + 5730: uint16(5689), + 5731: uint16(19495), + 5732: uint16(4658), + 5733: uint16(19497), + 5734: uint16(6459), + 5735: uint16(19496), + 5736: uint16(19505), + 5737: uint16(19499), + 5738: uint16(19501), + 5739: uint16(10564), + 5740: uint16(19498), + 5741: uint16(19500), + 5742: uint16(19504), + 5743: uint16(19502), + 5744: uint16(5136), + 5745: uint16(19503), + 5746: uint16(19506), + 5747: uint16(9785), + 5748: uint16(11575), + 5749: uint16(7187), + 5750: uint16(19507), + 5751: uint16(11265), + 5752: uint16(19509), + 5753: uint16(19508), + 5754: uint16(19512), + 5755: uint16(11296), + 5756: uint16(19511), + 5757: uint16(4684), + 5758: uint16(19510), + 5759: uint16(19515), + 5760: uint16(19514), + 5761: uint16(19513), + 5762: uint16(9233), + 5763: uint16(19516), + 5764: uint16(19517), + 5765: uint16(19518), + 5766: uint16(6219), + 5767: uint16(5636), + 5768: uint16(19519), + 5769: uint16(19520), + 5770: uint16(19521), + 5771: uint16(7720), + 5772: uint16(19522), + 5773: uint16(6924), + 5774: uint16(19523), + 5775: uint16(19524), + 5776: uint16(12544), + 5777: uint16(12381), + 5778: uint16(19525), + 5779: uint16(17487), + 5780: uint16(19526), + 5781: uint16(8707), + 5782: uint16(7690), + 5783: uint16(9759), + 5784: uint16(19527), + 5785: uint16(10548), + 5786: uint16(9011), + 5787: uint16(6237), + 5788: uint16(8712), + 5789: uint16(4105), + 5790: uint16(10839), + 5791: uint16(7734), + 5792: uint16(5693), + 5793: uint16(5440), + 5794: uint16(10549), + 5795: uint16(19528), + 5796: uint16(19530), + 5797: uint16(19529), + 5798: uint16(4415), + 5799: uint16(9557), + 5800: uint16(19531), + 5801: uint16(9814), + 5802: uint16(9234), + 5803: uint16(19532), + 5804: uint16(7217), + 5805: uint16(19534), + 5806: uint16(11041), + 5807: uint16(19549), + 5808: uint16(19536), + 5809: uint16(19537), + 5810: uint16(9000), + 5811: uint16(8511), + 5812: uint16(8278), + 5813: uint16(9479), + 5814: uint16(19535), + 5815: uint16(5172), + 5816: uint16(19544), + 5817: uint16(19541), + 5818: uint16(19716), + 5819: uint16(9480), + 5820: uint16(8767), + 5821: uint16(19538), + 5822: uint16(9053), + 5823: uint16(9266), + 5824: uint16(19539), + 5825: uint16(19543), + 5826: uint16(7743), + 5827: uint16(9798), + 5828: uint16(9003), + 5829: uint16(7969), + 5830: uint16(19542), + 5831: uint16(8461), + 5832: uint16(8451), + 5833: uint16(19540), + 5834: uint16(3848), + 5835: uint16(11777), + 5836: uint16(19545), + 5837: uint16(8512), + 5838: uint16(7188), + 5839: uint16(7721), + 5840: uint16(19547), + 5841: uint16(19546), + 5842: uint16(3918), + 5843: uint16(19548), + 5844: uint16(10254), + 5845: uint16(19718), + 5846: uint16(9530), + 5847: uint16(7754), + 5848: uint16(8760), + 5849: uint16(5463), + 5850: uint16(19717), + 5851: uint16(11286), + 5852: uint16(4126), + 5853: uint16(10550), + 5854: uint16(4416), + 5855: uint16(19712), + 5856: uint16(19713), + 5857: uint16(19714), + 5858: uint16(19715), + 5859: uint16(9498), + 5860: uint16(8706), + 5861: uint16(3906), + 5862: uint16(19719), + 5863: uint16(19720), + 5864: uint16(21250), + 5865: uint16(8476), + 5866: uint16(19721), + 5867: uint16(4178), + 5868: uint16(8235), + 5869: uint16(5902), + 5870: uint16(11321), + 5871: uint16(19722), + 5872: uint16(9227), + 5873: uint16(8279), + 5874: uint16(6966), + 5875: uint16(19723), + 5876: uint16(19726), + 5877: uint16(7236), + 5878: uint16(19724), + 5879: uint16(8202), + 5880: uint16(8201), + 5881: uint16(3907), + 5882: uint16(11562), + 5883: uint16(19728), + 5884: uint16(10065), + 5885: uint16(19730), + 5886: uint16(19729), + 5887: uint16(19727), + 5888: uint16(16963), + 5889: uint16(4915), + 5890: uint16(19533), + 5891: uint16(19732), + 5892: uint16(19731), + 5893: uint16(19733), + 5894: uint16(11287), + 5895: uint16(9536), + 5896: uint16(10765), + 5897: uint16(19734), + 5898: uint16(6968), + 5899: uint16(19735), + 5900: uint16(19736), + 5901: uint16(19737), + 5902: uint16(9216), + 5903: uint16(3913), + 5904: uint16(6200), + 5905: uint16(11801), + 5906: uint16(19741), + 5907: uint16(5651), + 5908: uint16(19738), + 5909: uint16(19739), + 5910: uint16(10323), + 5911: uint16(4659), + 5912: uint16(11288), + 5913: uint16(5406), + 5914: uint16(9267), + 5915: uint16(19742), + 5916: uint16(19743), + 5917: uint16(19744), + 5918: uint16(9217), + 5919: uint16(19746), + 5920: uint16(19745), + 5921: uint16(9522), + 5922: uint16(19747), + 5923: uint16(7189), + 5924: uint16(6975), + 5925: uint16(9786), + 5926: uint16(8784), + 5927: uint16(6993), + 5928: uint16(7755), + 5929: uint16(19748), + 5930: uint16(19749), + 5931: uint16(7740), + 5932: uint16(19750), + 5933: uint16(19751), + 5934: uint16(19752), + 5935: uint16(11342), + 5936: uint16(7190), + 5937: uint16(19754), + 5938: uint16(19753), + 5939: uint16(6201), + 5940: uint16(6226), + 5941: uint16(6687), + 5942: uint16(19757), + 5943: uint16(7237), + 5944: uint16(19756), + 5945: uint16(19755), + 5946: uint16(8520), + 5947: uint16(5966), + 5948: uint16(7970), + 5949: uint16(9999), + 5950: uint16(7192), + 5951: uint16(19758), + 5952: uint16(7486), + 5953: uint16(19761), + 5954: uint16(19759), + 5955: uint16(19760), + 5956: uint16(19763), + 5957: uint16(19762), + 5958: uint16(7513), + 5959: uint16(19764), + 5960: uint16(19765), + 5961: uint16(19766), + 5962: uint16(10031), + 5963: uint16(6450), + 5964: uint16(6976), + 5965: uint16(19767), + 5966: uint16(19768), + 5967: uint16(11523), + 5968: uint16(7204), + 5969: uint16(11085), + 5970: uint16(11563), + 5971: uint16(19769), + 5972: uint16(5441), + 5973: uint16(19770), + 5974: uint16(9218), + 5975: uint16(19773), + 5976: uint16(4695), + 5977: uint16(7722), + 5978: uint16(19771), + 5979: uint16(19772), + 5980: uint16(9023), + 5981: uint16(10804), + 5982: uint16(5467), + 5983: uint16(19775), + 5984: uint16(19776), + 5985: uint16(19774), + 5986: uint16(19778), + 5987: uint16(9534), + 5988: uint16(4642), + 5989: uint16(19782), + 5990: uint16(19779), + 5991: uint16(19781), + 5992: uint16(19777), + 5993: uint16(20014), + 5994: uint16(19780), + 5995: uint16(11594), + 5996: uint16(5945), + 5997: uint16(19790), + 5998: uint16(9235), + 5999: uint16(19785), + 6000: uint16(19788), + 6001: uint16(19786), + 6002: uint16(19791), + 6003: uint16(19792), + 6004: uint16(19784), + 6005: uint16(19797), + 6006: uint16(4179), + 6007: uint16(19783), + 6008: uint16(9996), + 6009: uint16(19787), + 6010: uint16(7487), + 6011: uint16(6202), + 6012: uint16(10791), + 6013: uint16(5443), + 6014: uint16(7205), + 6015: uint16(9499), + 6016: uint16(8204), + 6017: uint16(19795), + 6018: uint16(19789), + 6019: uint16(19794), + 6020: uint16(11042), + 6021: uint16(8983), + 6022: uint16(19796), + 6023: uint16(19793), + 6024: uint16(8203), + 6025: uint16(19800), + 6026: uint16(19799), + 6027: uint16(19798), + 6028: uint16(10766), + 6029: uint16(7258), + 6030: uint16(19801), + 6031: uint16(10558), + 6032: uint16(4147), + 6033: uint16(10277), + 6034: uint16(8785), + 6035: uint16(5207), + 6036: uint16(19803), + 6037: uint16(6204), + 6038: uint16(6667), + 6039: uint16(19802), + 6040: uint16(7756), + 6041: uint16(7757), + 6042: uint16(19968), + 6043: uint16(19970), + 6044: uint16(7514), + 6045: uint16(19969), + 6046: uint16(19971), + 6047: uint16(5426), + 6048: uint16(10276), + 6049: uint16(6977), + 6050: uint16(11778), + 6051: uint16(19805), + 6052: uint16(6487), + 6053: uint16(11806), + 6054: uint16(19973), + 6055: uint16(19972), + 6056: uint16(19974), + 6057: uint16(19804), + 6058: uint16(9544), + 6059: uint16(9268), + 6060: uint16(9014), + 6061: uint16(19979), + 6062: uint16(8738), + 6063: uint16(19975), + 6064: uint16(19976), + 6065: uint16(5644), + 6066: uint16(19978), + 6067: uint16(5903), + 6068: uint16(19977), + 6069: uint16(7488), + 6070: uint16(4696), + 6071: uint16(19983), + 6072: uint16(6430), + 6073: uint16(8280), + 6074: uint16(9001), + 6075: uint16(4634), + 6076: uint16(19981), + 6077: uint16(19982), + 6078: uint16(8994), + 6079: uint16(19980), + 6080: uint16(19984), + 6081: uint16(19990), + 6082: uint16(19993), + 6083: uint16(19992), + 6084: uint16(9228), + 6085: uint16(19985), + 6086: uint16(19986), + 6087: uint16(19989), + 6088: uint16(19991), + 6089: uint16(5407), + 6090: uint16(19994), + 6091: uint16(19988), + 6092: uint16(19987), + 6093: uint16(19998), + 6094: uint16(19999), + 6095: uint16(20000), + 6096: uint16(19997), + 6097: uint16(19996), + 6098: uint16(7489), + 6099: uint16(9481), + 6100: uint16(19995), + 6101: uint16(20004), + 6102: uint16(20002), + 6103: uint16(20003), + 6104: uint16(20001), + 6105: uint16(8535), + 6106: uint16(20005), + 6107: uint16(20006), + 6108: uint16(20008), + 6109: uint16(4916), + 6110: uint16(20007), + 6111: uint16(11097), + 6112: uint16(20019), + 6113: uint16(20009), + 6114: uint16(20012), + 6115: uint16(20010), + 6116: uint16(20011), + 6117: uint16(20013), + 6118: uint16(20015), + 6119: uint16(20016), + 6120: uint16(20017), + 6121: uint16(20020), + 6122: uint16(20018), + 6123: uint16(20021), + 6124: uint16(20023), + 6125: uint16(20022), + 6126: uint16(8984), + 6127: uint16(11078), + 6128: uint16(20024), + 6129: uint16(8205), + 6130: uint16(20025), + 6131: uint16(10531), + 6132: uint16(20026), + 6133: uint16(4618), + 6134: uint16(4123), + 6135: uint16(4918), + 6136: uint16(4917), + 6137: uint16(20027), + 6138: uint16(20028), + 6139: uint16(20029), + 6140: uint16(20030), + 6141: uint16(20031), + 6142: uint16(4919), + 6143: uint16(4660), + 6144: uint16(6205), + 6145: uint16(10005), + 6146: uint16(20033), + 6147: uint16(20032), + 6148: uint16(20034), + 6149: uint16(4155), + 6150: uint16(20037), + 6151: uint16(20036), + 6152: uint16(20035), + 6153: uint16(20038), + 6154: uint16(20041), + 6155: uint16(3878), + 6156: uint16(20039), + 6157: uint16(20043), + 6158: uint16(20042), + 6159: uint16(20045), + 6160: uint16(20044), + 6161: uint16(20046), + 6162: uint16(9485), + 6163: uint16(20047), + 6164: uint16(20048), + 6165: uint16(20050), + 6166: uint16(20049), + 6167: uint16(10315), + 6168: uint16(20051), + 6169: uint16(20052), + 6170: uint16(6468), + 6171: uint16(20053), + 6172: uint16(20054), + 6173: uint16(10792), + 6174: uint16(8234), + 6175: uint16(3843), + 6176: uint16(8490), + 6177: uint16(20055), + 6178: uint16(10316), + 6179: uint16(20058), + 6180: uint16(20056), + 6181: uint16(6206), + 6182: uint16(20057), + 6183: uint16(5921), + 6184: uint16(10532), + 6185: uint16(20060), + 6186: uint16(20224), + 6187: uint16(20061), + 6188: uint16(20225), + 6189: uint16(4096), + 6190: uint16(7735), + 6191: uint16(7259), + 6192: uint16(4920), + 6193: uint16(20226), + 6194: uint16(9797), + 6195: uint16(20228), + 6196: uint16(4097), + 6197: uint16(20227), + 6198: uint16(8995), + 6199: uint16(11564), + 6200: uint16(9482), + 6201: uint16(20059), + 6202: uint16(11525), + 6203: uint16(5904), + 6204: uint16(11322), + 6205: uint16(5464), + 6206: uint16(11539), + 6207: uint16(5639), + 6208: uint16(8513), + 6209: uint16(17920), + 6210: uint16(20229), + 6211: uint16(4619), + 6212: uint16(7758), + 6213: uint16(4661), + 6214: uint16(20231), + 6215: uint16(20232), + 6216: uint16(20230), + 6217: uint16(5699), + 6218: uint16(6460), + 6219: uint16(7490), + 6220: uint16(4098), + 6221: uint16(11576), + 6222: uint16(20234), + 6223: uint16(19725), + 6224: uint16(20233), + 6225: uint16(20237), + 6226: uint16(20235), + 6227: uint16(20236), + 6228: uint16(20238), + 6229: uint16(20239), + 6230: uint16(11595), + 6231: uint16(20240), + 6232: uint16(20241), + 6233: uint16(7976), + 6234: uint16(10010), + 6235: uint16(7772), + 6236: uint16(4934), + 6237: uint16(11289), + 6238: uint16(4428), + 6239: uint16(7191), + 6240: uint16(5946), + 6241: uint16(20244), + 6242: uint16(20243), + 6243: uint16(6738), + 6244: uint16(20245), + 6245: uint16(20242), + 6246: uint16(6663), + 6247: uint16(20249), + 6248: uint16(18700), + 6249: uint16(12597), + 6250: uint16(7766), + 6251: uint16(20247), + 6252: uint16(11524), + 6253: uint16(9552), + 6254: uint16(4106), + 6255: uint16(8002), + 6256: uint16(6933), + 6257: uint16(10518), + 6258: uint16(4127), + 6259: uint16(11596), + 6260: uint16(11338), + 6261: uint16(20250), + 6262: uint16(9252), + 6263: uint16(7002), + 6264: uint16(20251), + 6265: uint16(20252), + 6266: uint16(7723), + 6267: uint16(20253), + 6268: uint16(11597), + 6269: uint16(20248), + 6270: uint16(20255), + 6271: uint16(20257), + 6272: uint16(20256), + 6273: uint16(20254), + 6274: uint16(20258), + 6275: uint16(20259), + 6276: uint16(8281), + 6277: uint16(4417), + 6278: uint16(20260), + 6279: uint16(11031), + 6280: uint16(20261), + 6281: uint16(20262), + 6282: uint16(11785), + 6283: uint16(14864), + 6284: uint16(20263), + 6285: uint16(20264), + 6286: uint16(20265), + 6287: uint16(20269), + 6288: uint16(20266), + 6289: uint16(20267), + 6290: uint16(20268), + 6291: uint16(20270), + 6292: uint16(7971), + 6293: uint16(11094), + 6294: uint16(7972), + 6295: uint16(20271), + 6296: uint16(10066), + 6297: uint16(20272), + 6298: uint16(21042), + 6299: uint16(11051), + 6300: uint16(20273), + 6301: uint16(20274), + 6302: uint16(20275), + 6303: uint16(4662), + 6304: uint16(20277), + 6305: uint16(7736), + 6306: uint16(20278), + 6307: uint16(5635), + 6308: uint16(20279), + 6309: uint16(20283), + 6310: uint16(20281), + 6311: uint16(20282), + 6312: uint16(4690), + 6313: uint16(20280), + 6314: uint16(20284), + 6315: uint16(20285), + 6316: uint16(3879), + 6317: uint16(20286), + 6318: uint16(20287), + 6319: uint16(7491), + 6320: uint16(20288), + 6321: uint16(5158), + 6322: uint16(20291), + 6323: uint16(20290), + 6324: uint16(20289), + 6325: uint16(19024), + 6326: uint16(10555), + 6327: uint16(20292), + 6328: uint16(20293), + 6329: uint16(20294), + 6330: uint16(20295), + 6331: uint16(20296), + 6332: uint16(20297), + 6333: uint16(4921), + 6334: uint16(20298), + 6335: uint16(20299), + 6336: uint16(9730), + 6337: uint16(20301), + 6338: uint16(4378), + 6339: uint16(20304), + 6340: uint16(20303), + 6341: uint16(4099), + 6342: uint16(5408), + 6343: uint16(10534), + 6344: uint16(8985), + 6345: uint16(6401), + 6346: uint16(6207), + 6347: uint16(7238), + 6348: uint16(7739), + 6349: uint16(20306), + 6350: uint16(20305), + 6351: uint16(11297), + 6352: uint16(4935), + 6353: uint16(10033), + 6354: uint16(9531), + 6355: uint16(7771), + 6356: uint16(11565), + 6357: uint16(5690), + 6358: uint16(20309), + 6359: uint16(20308), + 6360: uint16(10794), + 6361: uint16(9483), + 6362: uint16(4143), + 6363: uint16(20310), + 6364: uint16(20307), + 6365: uint16(10288), + 6366: uint16(11337), + 6367: uint16(20311), + 6368: uint16(20312), + 6369: uint16(20314), + 6370: uint16(8521), + 6371: uint16(4666), + 6372: uint16(4667), + 6373: uint16(20313), + 6374: uint16(4936), + 6375: uint16(5905), + 6376: uint16(4937), + 6377: uint16(9246), + 6378: uint16(11583), + 6379: uint16(5947), + 6380: uint16(20315), + 6381: uint16(20316), + 6382: uint16(20317), + 6383: uint16(20480), + 6384: uint16(20482), + 6385: uint16(20481), + 6386: uint16(10326), + 6387: uint16(20483), + 6388: uint16(20484), + 6389: uint16(20485), + 6390: uint16(20486), + 6391: uint16(20488), + 6392: uint16(20487), + 6393: uint16(20489), + 6394: uint16(10067), + 6395: uint16(17707), + 6396: uint16(7688), + 6397: uint16(5137), + 6398: uint16(20490), + 6399: uint16(20491), + 6400: uint16(12555), + 6401: uint16(15386), + 6402: uint16(10034), + 6403: uint16(3930), + 6404: uint16(3866), + 6405: uint16(6739), + 6406: uint16(10767), + 6407: uint16(7517), + 6408: uint16(20492), + 6409: uint16(11070), + 6410: uint16(20493), + 6411: uint16(11323), + 6412: uint16(4129), + 6413: uint16(6688), + 6414: uint16(20494), + 6415: uint16(4429), + 6416: uint16(20495), + 6417: uint16(20496), + 6418: uint16(20498), + 6419: uint16(20499), + 6420: uint16(20501), + 6421: uint16(20497), + 6422: uint16(20500), + 6423: uint16(4922), + 6424: uint16(20502), + 6425: uint16(20503), + 6426: uint16(20504), + 6427: uint16(20505), + 6428: uint16(20506), + 6429: uint16(20508), + 6430: uint16(20507), + 6431: uint16(20510), + 6432: uint16(20513), + 6433: uint16(20509), + 6434: uint16(20511), + 6435: uint16(20512), + 6436: uint16(20514), + 6437: uint16(5409), + 6438: uint16(6994), + 6439: uint16(20515), + 6440: uint16(20516), + 6441: uint16(6208), + 6442: uint16(20517), + 6443: uint16(4637), + 6444: uint16(9774), + 6445: uint16(20518), + 6446: uint16(20519), + 6447: uint16(8761), + 6448: uint16(9546), + 6449: uint16(20520), + 6450: uint16(9820), + 6451: uint16(8491), + 6452: uint16(4151), + 6453: uint16(5453), + 6454: uint16(5454), + 6455: uint16(8786), + 6456: uint16(20525), + 6457: uint16(5455), + 6458: uint16(4430), + 6459: uint16(20524), + 6460: uint16(20522), + 6461: uint16(20523), + 6462: uint16(20521), + 6463: uint16(20535), + 6464: uint16(20526), + 6465: uint16(20527), + 6466: uint16(20528), + 6467: uint16(20529), + 6468: uint16(20531), + 6469: uint16(20530), + 6470: uint16(7224), + 6471: uint16(20532), + 6472: uint16(20534), + 6473: uint16(5138), + 6474: uint16(20533), + 6475: uint16(8282), + 6476: uint16(5906), + 6477: uint16(20536), + 6478: uint16(8492), + 6479: uint16(20537), + 6480: uint16(9484), + 6481: uint16(20538), + 6482: uint16(20543), + 6483: uint16(20541), + 6484: uint16(20540), + 6485: uint16(20542), + 6486: uint16(20539), + 6487: uint16(20545), + 6488: uint16(20544), + 6489: uint16(20547), + 6490: uint16(5410), + 6491: uint16(20546), + 6492: uint16(20548), + 6493: uint16(20549), + 6494: uint16(20551), + 6495: uint16(20550), + 6496: uint16(20552), + 6497: uint16(20554), + 6498: uint16(20553), + 6499: uint16(6235), + 6500: uint16(20555), + 6501: uint16(20556), + 6502: uint16(4635), + 6503: uint16(20557), + 6504: uint16(20558), + 6505: uint16(7760), + 6506: uint16(20559), + 6507: uint16(20560), + 6508: uint16(20561), + 6509: uint16(20562), + 6510: uint16(6209), + 6511: uint16(20563), + 6512: uint16(20564), + 6513: uint16(20565), + 6514: uint16(20566), + 6515: uint16(20567), + 6516: uint16(10000), + 6517: uint16(20569), + 6518: uint16(10245), + 6519: uint16(20570), + 6520: uint16(20568), + 6521: uint16(20572), + 6522: uint16(20571), + 6523: uint16(20573), + 6524: uint16(20736), + 6525: uint16(20737), + 6526: uint16(20738), + 6527: uint16(20739), + 6528: uint16(20740), + 6529: uint16(20741), + 6530: uint16(20742), + 6531: uint16(20743), + 6532: uint16(20744), + 6533: uint16(20745), + 6534: uint16(20746), + 6535: uint16(20747), + 6536: uint16(20748), + 6537: uint16(20749), + 6538: uint16(15380), + 6539: uint16(20750), + 6540: uint16(17239), + 6541: uint16(5139), + 6542: uint16(4608), + 6543: uint16(6417), + 6544: uint16(20752), + 6545: uint16(20751), + 6546: uint16(11012), + 6547: uint16(20754), + 6548: uint16(20755), + 6549: uint16(20753), + 6550: uint16(20756), + 6551: uint16(10817), + 6552: uint16(20757), + 6553: uint16(5210), + 6554: uint16(11780), + 6555: uint16(20758), + 6556: uint16(20760), + 6557: uint16(3869), + 6558: uint16(20761), + 6559: uint16(10506), + 6560: uint16(20759), + 6561: uint16(20762), + 6562: uint16(20763), + 6563: uint16(20764), + 6564: uint16(20765), + 6565: uint16(20766), + 6566: uint16(10829), + 6567: uint16(6668), + 6568: uint16(6489), + 6569: uint16(8206), + 6570: uint16(20767), + 6571: uint16(20770), + 6572: uint16(20768), + 6573: uint16(20771), + 6574: uint16(5968), + 6575: uint16(20769), + 6576: uint16(20772), + 6577: uint16(20773), + 6578: uint16(20774), + 6579: uint16(20778), + 6580: uint16(6665), + 6581: uint16(8515), + 6582: uint16(20779), + 6583: uint16(20776), + 6584: uint16(20775), + 6585: uint16(20777), + 6586: uint16(5694), + 6587: uint16(20783), + 6588: uint16(20782), + 6589: uint16(20781), + 6590: uint16(3858), + 6591: uint16(20793), + 6592: uint16(20789), + 6593: uint16(20790), + 6594: uint16(20786), + 6595: uint16(20792), + 6596: uint16(20788), + 6597: uint16(4673), + 6598: uint16(11819), + 6599: uint16(20791), + 6600: uint16(20787), + 6601: uint16(20785), + 6602: uint16(20784), + 6603: uint16(20795), + 6604: uint16(20798), + 6605: uint16(20797), + 6606: uint16(20796), + 6607: uint16(10280), + 6608: uint16(20794), + 6609: uint16(3922), + 6610: uint16(20799), + 6611: uint16(20801), + 6612: uint16(4686), + 6613: uint16(20780), + 6614: uint16(4118), + 6615: uint16(20803), + 6616: uint16(20802), + 6617: uint16(20800), + 6618: uint16(8716), + 6619: uint16(10831), + 6620: uint16(11577), + 6621: uint16(20804), + 6622: uint16(20805), + 6623: uint16(20806), + 6624: uint16(20807), + 6625: uint16(20808), + 6626: uint16(8986), + 6627: uint16(20809), + 6628: uint16(10006), + 6629: uint16(20814), + 6630: uint16(20810), + 6631: uint16(20811), + 6632: uint16(10768), + 6633: uint16(11043), + 6634: uint16(9519), + 6635: uint16(20815), + 6636: uint16(20816), + 6637: uint16(9501), + 6638: uint16(20813), + 6639: uint16(20812), + 6640: uint16(4361), + 6641: uint16(20824), + 6642: uint16(20823), + 6643: uint16(4180), + 6644: uint16(20821), + 6645: uint16(20820), + 6646: uint16(20818), + 6647: uint16(4698), + 6648: uint16(20817), + 6649: uint16(6929), + 6650: uint16(4360), + 6651: uint16(6210), + 6652: uint16(20827), + 6653: uint16(20826), + 6654: uint16(20825), + 6655: uint16(20822), + 6656: uint16(20828), + 6657: uint16(20829), + 6658: uint16(20996), + 6659: uint16(20995), + 6660: uint16(20997), + 6661: uint16(4108), + 6662: uint16(20992), + 6663: uint16(20993), + 6664: uint16(6227), + 6665: uint16(11032), + 6666: uint16(20994), + 6667: uint16(10769), + 6668: uint16(21002), + 6669: uint16(20998), + 6670: uint16(21003), + 6671: uint16(21000), + 6672: uint16(20999), + 6673: uint16(5691), + 6674: uint16(21004), + 6675: uint16(21005), + 6676: uint16(21006), + 6677: uint16(21001), + 6678: uint16(20819), + 6679: uint16(21007), + 6680: uint16(9024), + 6681: uint16(21011), + 6682: uint16(21012), + 6683: uint16(21010), + 6684: uint16(21009), + 6685: uint16(21015), + 6686: uint16(21008), + 6687: uint16(21013), + 6688: uint16(21014), + 6689: uint16(21017), + 6690: uint16(21016), + 6691: uint16(21019), + 6692: uint16(21020), + 6693: uint16(21021), + 6694: uint16(11816), + 6695: uint16(21018), + 6696: uint16(8522), + 6697: uint16(6476), + 6698: uint16(21022), + 6699: uint16(21023), + 6700: uint16(21024), + 6701: uint16(21025), + 6702: uint16(21026), + 6703: uint16(5907), + 6704: uint16(21027), + 6705: uint16(21028), + 6706: uint16(6926), + 6707: uint16(21029), + 6708: uint16(21030), + 6709: uint16(21031), + 6710: uint16(21032), + 6711: uint16(21035), + 6712: uint16(21033), + 6713: uint16(11803), + 6714: uint16(21034), + 6715: uint16(11598), + 6716: uint16(21036), + 6717: uint16(11578), + 6718: uint16(21037), + 6719: uint16(9821), + 6720: uint16(21038), + 6721: uint16(21040), + 6722: uint16(21041), + 6723: uint16(21039), + 6724: uint16(6220), + 6725: uint16(11052), + 6726: uint16(10818), + 6727: uint16(13654), + 6728: uint16(15423), + 6729: uint16(10842), + 6730: uint16(4362), + 6731: uint16(21043), + 6732: uint16(5167), + 6733: uint16(21044), + 6734: uint16(21045), + 6735: uint16(21046), + 6736: uint16(6228), + 6737: uint16(21047), + 6738: uint16(16179), + 6739: uint16(11066), + 6740: uint16(8514), + 6741: uint16(21048), + 6742: uint16(21050), + 6743: uint16(21049), + 6744: uint16(21051), + 6745: uint16(21052), + 6746: uint16(21053), + 6747: uint16(21054), + 6748: uint16(21055), + 6749: uint16(21056), + 6750: uint16(21057), + 6751: uint16(21058), + 6752: uint16(21059), + 6753: uint16(21060), + 6754: uint16(21061), + 6755: uint16(21062), + 6756: uint16(21063), + 6757: uint16(9219), + 6758: uint16(5948), + 6759: uint16(21065), + 6760: uint16(8236), + 6761: uint16(21066), + 6762: uint16(21067), + 6763: uint16(10240), + 6764: uint16(21068), + 6765: uint16(21069), + 6766: uint16(16918), + 6767: uint16(19257), + 6768: uint16(20300), + 6769: uint16(21070), + 6770: uint16(21071), + 6771: uint16(21073), + 6772: uint16(21074), + 6773: uint16(21075), + 6774: uint16(11599), + 6775: uint16(21072), + 6776: uint16(21076), + 6777: uint16(21077), + 6778: uint16(21079), + 6779: uint16(21078), + 6780: uint16(21081), + 6781: uint16(21082), + 6782: uint16(21080), + 6783: uint16(11541), + 6784: uint16(21083), + 6785: uint16(21084), + 6786: uint16(16947), + 6787: uint16(21085), + 6788: uint16(9), + 6789: uint16(83), + 6790: uint16(79), + 6791: uint16(82), + 6792: uint16(84), + 6793: uint16(41), + 6794: uint16(42), + 6795: uint16(85), + 6796: uint16(59), + 6797: uint16(3), + 6798: uint16(4), + 6799: uint16(30), + 6800: uint16(527), + 6801: uint16(528), + 6802: uint16(529), + 6803: uint16(530), + 6804: uint16(531), + 6805: uint16(532), + 6806: uint16(533), + 6807: uint16(534), + 6808: uint16(535), + 6809: uint16(536), + 6810: uint16(6), + 6811: uint16(7), + 6812: uint16(66), + 6813: uint16(64), + 6814: uint16(67), + 6815: uint16(8), + 6816: uint16(86), + 6817: uint16(544), + 6818: uint16(545), + 6819: uint16(546), + 6820: uint16(547), + 6821: uint16(548), + 6822: uint16(549), + 6823: uint16(550), + 6824: uint16(551), + 6825: uint16(552), + 6826: uint16(553), + 6827: uint16(554), + 6828: uint16(555), + 6829: uint16(556), + 6830: uint16(557), + 6831: uint16(558), + 6832: uint16(559), + 6833: uint16(560), + 6834: uint16(561), + 6835: uint16(562), + 6836: uint16(563), + 6837: uint16(564), + 6838: uint16(565), + 6839: uint16(566), + 6840: uint16(567), + 6841: uint16(568), + 6842: uint16(569), + 6843: uint16(45), + 6844: uint16(46), + 6845: uint16(15), + 6846: uint16(17), + 6847: uint16(13), + 6848: uint16(576), + 6849: uint16(577), + 6850: uint16(578), + 6851: uint16(579), + 6852: uint16(580), + 6853: uint16(581), + 6854: uint16(582), + 6855: uint16(583), + 6856: uint16(584), + 6857: uint16(585), + 6858: uint16(586), + 6859: uint16(587), + 6860: uint16(588), + 6861: uint16(589), + 6862: uint16(590), + 6863: uint16(591), + 6864: uint16(592), + 6865: uint16(593), + 6866: uint16(594), + 6867: uint16(595), + 6868: uint16(596), + 6869: uint16(597), + 6870: uint16(598), + 6871: uint16(599), + 6872: uint16(600), + 6873: uint16(601), + 6874: uint16(47), + 6875: uint16(34), + 6876: uint16(48), + 6877: uint16(16), + 6878: uint16(78), +} + +func _fuzzycmp(tls *TLS, a uintptr, b uintptr) (r int32) { + for { + if !(**(**uint8)(__ccgo_up(a)) != 0 && **(**uint8)(__ccgo_up(b)) != 0) { + break + } + for **(**uint8)(__ccgo_up(a)) != 0 && uint32(**(**uint8)(__ccgo_up(a)))|uint32(32)-uint32('a') > uint32(26) && Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(a)))-int32('0')) > uint32(10) { + a = a + 1 + } + if uint32(**(**uint8)(__ccgo_up(a)))|uint32(32) != uint32(**(**uint8)(__ccgo_up(b))) { + return int32(1) + } + goto _1 + _1: + ; + a = a + 1 + b = b + 1 + } + return BoolInt32(Int32FromUint8(**(**uint8)(__ccgo_up(a))) != Int32FromUint8(**(**uint8)(__ccgo_up(b)))) +} + +func _find_charmap(tls *TLS, name uintptr) (r Tsize_t) { + var s uintptr + _ = s + if !(**(**uint8)(__ccgo_up(name)) != 0) { + name = uintptr(unsafe.Pointer(&_charmaps)) + } /* "utf8" */ + s = uintptr(unsafe.Pointer(&_charmaps)) + for { + if !(**(**uint8)(__ccgo_up(s)) != 0) { + break + } + if !(_fuzzycmp(tls, name, s) != 0) { + for { + if !(**(**uint8)(__ccgo_up(s)) != 0) { + break + } + goto _2 + _2: + ; + s = s + uintptr(_strlen(tls, s)+uint64(1)) + } + return Uint64FromInt64(int64(s+uintptr(1)) - t__predefined_ptrdiff_t(uintptr(unsafe.Pointer(&_charmaps)))) + } + s = s + uintptr(_strlen(tls, s)+uint64(1)) + if !(**(**uint8)(__ccgo_up(s)) != 0) { + if Int32FromUint8(**(**uint8)(__ccgo_up(s + 1))) > int32(0200) { + s = s + uintptr(2) + } else { + s = s + uintptr(uint32(2)+(uint32(64)-uint32(**(**uint8)(__ccgo_up(s + 1))))*uint32(5)) + } + } + goto _1 + _1: + } + return Uint64FromInt32(-Int32FromInt32(1)) +} + +type Tstateful_cd = struct { + Fbase_cd Ticonv_t + Fstate uint32 +} + +func _combine_to_from(tls *TLS, t Tsize_t, f Tsize_t) (r Ticonv_t) { + return uintptr(f<> int32(16) +} + +func _extract_to(tls *TLS, cd Ticonv_t) (r Tsize_t) { + return uint64(cd) >> int32(1) & uint64(0x7fff) +} + +func Xiconv_open(tls *TLS, to uintptr, from uintptr) (r Ticonv_t) { + if __ccgo_strace { + trc("tls=%v to=%v from=%v, (%v:)", tls, to, from, origin(2)) + defer func() { trc("-> %v", r) }() + } + var cd Ticonv_t + var f, t, v1, v2 Tsize_t + var scd uintptr + var v3 bool + _, _, _, _, _, _, _ = cd, f, scd, t, v1, v2, v3 + v1 = _find_charmap(tls, to) + t = v1 + if v3 = v1 == Uint64FromInt32(-Int32FromInt32(1)); !v3 { + v2 = _find_charmap(tls, from) + f = v2 + } + if v3 || v2 == Uint64FromInt32(-Int32FromInt32(1)) || Int32FromUint8(_charmaps[t]) >= int32(0330) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(-Int32FromInt32(1)) + } + cd = _combine_to_from(tls, t, f) + switch Int32FromUint8(_charmaps[f]) { + case int32(UTF_16): + fallthrough + case int32(UTF_32): + fallthrough + case int32(UCS2): + fallthrough + case int32(ISO2022_JP): + scd = Xmalloc(tls, uint64(16)) + if !(scd != 0) { + return uintptr(-Int32FromInt32(1)) + } + (*Tstateful_cd)(unsafe.Pointer(scd)).Fbase_cd = cd + (*Tstateful_cd)(unsafe.Pointer(scd)).Fstate = uint32(0) + cd = scd + } + return cd +} + +func _get_16(tls *TLS, s uintptr, e int32) (r uint32) { + e = e & int32(1) + return Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(e))))<> int32(8)) + **(**uint8)(__ccgo_up(s + uintptr(int32(1)-e))) = uint8(c) +} + +func _get_32(tls *TLS, s uintptr, e int32) (r uint32) { + e = e & int32(3) + return (uint32(**(**uint8)(__ccgo_up(s + uintptr(e))))+0)<> int32(24)) + **(**uint8)(__ccgo_up(s + uintptr(e^int32(1)))) = uint8(c >> int32(16)) + **(**uint8)(__ccgo_up(s + uintptr(e^int32(2)))) = uint8(c >> int32(8)) + **(**uint8)(__ccgo_up(s + uintptr(e^int32(3)))) = uint8(c) +} + +/* Adapt as needed */ + +func _legacy_map(tls *TLS, map1 uintptr, c uint32) (r uint32) { + var x, v1 uint32 + _, _ = x, v1 + if c < Uint32FromInt32(int32(4)*Int32FromUint8(**(**uint8)(__ccgo_up(map1 + uintptr(-Int32FromInt32(1)))))) { + return c + } + x = c - Uint32FromInt32(int32(4)*Int32FromUint8(**(**uint8)(__ccgo_up(map1 + uintptr(-Int32FromInt32(1)))))) + x = Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(map1 + uintptr(x*uint32(5)/uint32(4)))))>>(uint32(2)*x%uint32(8)) | Int32FromUint8(**(**uint8)(__ccgo_up(map1 + uintptr(x*uint32(5)/uint32(4)+uint32(1)))))<<(uint32(8)-uint32(2)*x%uint32(8))&int32(1023)) + if x < uint32(256) { + v1 = x + } else { + v1 = uint32(_legacy_chars[x-uint32(256)]) + } + return v1 +} + +func _uni_to_jis(tls *TLS, c uint32) (r uint32) { + var b, d, i, j, nel uint32 + _, _, _, _, _ = b, d, i, j, nel + nel = uint32(Uint64FromInt64(13758) / Uint64FromInt64(2)) + b = uint32(0) + for { + i = nel / uint32(2) + j = uint32(_rev_jis[b+i]) + d = uint32(**(**uint16)(__ccgo_up(uintptr(unsafe.Pointer(&_jis0208)) + uintptr(j/uint32(256))*188 + uintptr(j%uint32(256))*2))) + if d == c { + return j + uint32(0x2121) + } else { + if nel == uint32(1) { + return uint32(0) + } else { + if c < d { + nel = nel / uint32(2) + } else { + b = b + i + nel = nel - nel/uint32(2) + } + } + } + goto _1 + _1: + } + return r +} + +func Xiconv(tls *TLS, cd Ticonv_t, in uintptr, inb uintptr, out uintptr, outb uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v cd=%v in=%v inb=%v out=%v outb=%v, (%v:)", tls, cd, in, inb, out, outb, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var c, d, from, to, v62 uint32 + var err, i, i1, j, j1, v25, v26, v27 int32 + var k, l, tmplen, tmpx, x Tsize_t + var loc Tlocale_t + var map1, ploc, scd, tomap, v54, v55 uintptr + var totype, type1 uint8 + var _ /* ptmp at bp+48 */ uintptr + var _ /* st at bp+24 */ Tmbstate_t + var _ /* tmp at bp+40 */ struct { + Fwc [0][2]Twchar_t + Fc [8]uint8 + } + var _ /* tmp at bp+56 */ [4]uint8 + var _ /* wc at bp+32 */ Twchar_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = c, d, err, from, i, i1, j, j1, k, l, loc, map1, ploc, scd, tmplen, tmpx, to, tomap, totype, type1, x, v25, v26, v27, v54, v55, v62 + x = uint64(0) + scd = uintptr(0) + if !(uint64(cd)&Uint64FromInt32(1) != 0) { + scd = cd + cd = (*Tstateful_cd)(unsafe.Pointer(scd)).Fbase_cd + } + to = uint32(_extract_to(tls, cd)) + from = uint32(_extract_from(tls, cd)) + map1 = uintptr(unsafe.Pointer(&_charmaps)) + uintptr(from) + uintptr(1) + tomap = uintptr(unsafe.Pointer(&_charmaps)) + uintptr(to) + uintptr(1) + **(**Tmbstate_t)(__ccgo_up(bp + 24)) = Tmbstate_t{} + type1 = **(**uint8)(__ccgo_up(map1 + uintptr(-Int32FromInt32(1)))) + totype = **(**uint8)(__ccgo_up(tomap + uintptr(-Int32FromInt32(1)))) + ploc = uintptr(___get_tp(tls)) + 152 + loc = **(**Tlocale_t)(__ccgo_up(ploc)) + if !(in != 0) || !(**(**uintptr)(__ccgo_up(in)) != 0) || !(**(**Tsize_t)(__ccgo_up(inb)) != 0) { + return uint64(0) + } + **(**Tlocale_t)(__ccgo_up(ploc)) = uintptr(unsafe.Pointer(&X__c_dot_utf8_locale)) + for { + if !(**(**Tsize_t)(__ccgo_up(inb)) != 0) { + break + } + c = uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(in))))) + l = uint64(1) + switch Int32FromUint8(type1) { + case int32(UTF_8): + goto _2 + case int32(US_ASCII): + goto _3 + case int32(WCHAR_T): + goto _4 + case int32(UTF_32LE): + goto _5 + case int32(UTF_32BE): + goto _6 + case int32(UTF_16LE): + goto _7 + case int32(UTF_16BE): + goto _8 + case int32(UCS2LE): + goto _9 + case int32(UCS2BE): + goto _10 + case int32(UTF_16): + goto _11 + case int32(UCS2): + goto _12 + case int32(UTF_32): + goto _13 + case int32(SHIFT_JIS): + goto _14 + case int32(EUC_JP): + goto _15 + case int32(ISO2022_JP): + goto _16 + case int32(GB2312): + goto _17 + case int32(GBK): + goto _18 + case int32(GB18030): + goto _19 + case int32(BIG5): + goto _20 + case int32(EUC_KR): + goto _21 + default: + goto _22 + } + goto _23 + _2: + ; + if c < uint32(128) { + goto _23 + } + l = Xmbrtowc(tls, bp+32, **(**uintptr)(__ccgo_up(in)), **(**Tsize_t)(__ccgo_up(inb)), bp+24) + if l == Uint64FromInt32(-Int32FromInt32(1)) { + goto ilseq + } + if l == Uint64FromInt32(-Int32FromInt32(2)) { + goto starved + } + c = Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp + 32))) + goto _23 + _3: + ; + if c >= uint32(128) { + goto ilseq + } + goto _23 + _4: + ; + l = uint64(4) + if **(**Tsize_t)(__ccgo_up(inb)) < l { + goto starved + } + c = Uint32FromInt32(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(in))))) + if !(0 != 0) { + goto _24 + } + _6: + ; + _5: + ; + l = uint64(4) + if **(**Tsize_t)(__ccgo_up(inb)) < uint64(4) { + goto starved + } + c = _get_32(tls, **(**uintptr)(__ccgo_up(in)), Int32FromUint8(type1)) + _24: + ; + if c-uint32(0xd800) < uint32(0x800) || c >= uint32(0x110000) { + goto ilseq + } + goto _23 + _10: + ; + _9: + ; + _8: + ; + _7: + ; + l = uint64(2) + if **(**Tsize_t)(__ccgo_up(inb)) < uint64(2) { + goto starved + } + c = _get_16(tls, **(**uintptr)(__ccgo_up(in)), Int32FromUint8(type1)) + if c-Uint32FromInt32(0xdc00) < uint32(0x400) { + goto ilseq + } + if c-Uint32FromInt32(0xd800) < uint32(0x400) { + if Uint32FromInt32(Int32FromUint8(type1)-int32(UCS2BE)) < uint32(2) { + goto ilseq + } + l = uint64(4) + if **(**Tsize_t)(__ccgo_up(inb)) < uint64(4) { + goto starved + } + d = _get_16(tls, **(**uintptr)(__ccgo_up(in))+UintptrFromInt32(2), Int32FromUint8(type1)) + if d-Uint32FromInt32(0xdc00) >= uint32(0x400) { + goto ilseq + } + c = (c-uint32(0xd7c0))< uint32(127) { + d = d - 1 + } + d = d - uint32(64) + } else { + if d-uint32(159) <= Uint32FromInt32(Int32FromInt32(252)-Int32FromInt32(159)) { + c = c + 1 + d = d - uint32(159) + } + } + if c >= uint32(84) { + goto ilseq + } + c = uint32(**(**uint16)(__ccgo_up(uintptr(unsafe.Pointer(&_jis0208)) + uintptr(c)*188 + uintptr(d)*2))) + if !(c != 0) { + goto ilseq + } + goto _23 + _15: + ; + if c < uint32(128) { + goto _23 + } + l = uint64(2) + if **(**Tsize_t)(__ccgo_up(inb)) < uint64(2) { + goto starved + } + d = uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(in)) + UintptrFromInt32(1)))) + if c == uint32(0x8e) { + c = d + if c-uint32(0xa1) > Uint32FromInt32(Int32FromInt32(0xdf)-Int32FromInt32(0xa1)) { + goto ilseq + } + c = c + Uint32FromInt32(Int32FromInt32(0xff61)-Int32FromInt32(0xa1)) + goto _23 + } + c = c - uint32(0xa1) + d = d - uint32(0xa1) + if c >= uint32(84) || d >= uint32(94) { + goto ilseq + } + c = uint32(**(**uint16)(__ccgo_up(uintptr(unsafe.Pointer(&_jis0208)) + uintptr(c)*188 + uintptr(d)*2))) + if !(c != 0) { + goto ilseq + } + goto _23 + _16: + ; + if c >= uint32(128) { + goto ilseq + } + if c == uint32('\033') { + l = uint64(3) + if **(**Tsize_t)(__ccgo_up(inb)) < uint64(3) { + goto starved + } + c = uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(in)) + UintptrFromInt32(1)))) + d = uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(in)) + UintptrFromInt32(2)))) + if c != uint32('(') && c != uint32('$') { + goto ilseq + } + switch Uint32FromInt32(Int32FromInt32(128)*BoolInt32(c == Uint32FromUint8('$'))) + d { + case uint32('B'): + (*Tstateful_cd)(unsafe.Pointer(scd)).Fstate = uint32(0) + goto _1 + case uint32('J'): + (*Tstateful_cd)(unsafe.Pointer(scd)).Fstate = uint32(1) + goto _1 + case uint32('I'): + (*Tstateful_cd)(unsafe.Pointer(scd)).Fstate = uint32(4) + goto _1 + case Uint32FromInt32(Int32FromInt32(128) + Int32FromUint8('@')): + (*Tstateful_cd)(unsafe.Pointer(scd)).Fstate = uint32(2) + goto _1 + case Uint32FromInt32(Int32FromInt32(128) + Int32FromUint8('B')): + (*Tstateful_cd)(unsafe.Pointer(scd)).Fstate = uint32(3) + goto _1 + } + goto ilseq + } + switch (*Tstateful_cd)(unsafe.Pointer(scd)).Fstate { + case uint32(1): + if c == uint32('\\') { + c = uint32(0xa5) + } + if c == uint32('~') { + c = uint32(0x203e) + } + case uint32(2): + fallthrough + case uint32(3): + l = uint64(2) + if **(**Tsize_t)(__ccgo_up(inb)) < uint64(2) { + goto starved + } + d = uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(in)) + UintptrFromInt32(1)))) + c = c - uint32(0x21) + d = d - uint32(0x21) + if c >= uint32(84) || d >= uint32(94) { + goto ilseq + } + c = uint32(**(**uint16)(__ccgo_up(uintptr(unsafe.Pointer(&_jis0208)) + uintptr(c)*188 + uintptr(d)*2))) + if !(c != 0) { + goto ilseq + } + case uint32(4): + if c-uint32(0x60) < uint32(0x1f) { + goto ilseq + } + if c-uint32(0x21) < uint32(0x5e) { + c = c + Uint32FromInt32(Int32FromInt32(0xff61)-Int32FromInt32(0x21)) + } + break + } + goto _23 + _17: + ; + if c < uint32(128) { + goto _23 + } + if c < uint32(0xa1) { + goto ilseq + } + _18: + ; + if c == uint32(128) { + c = uint32(0x20ac) + goto _23 + } + _19: + ; + if c < uint32(128) { + goto _23 + } + c = c - uint32(0x81) + if c >= uint32(126) { + goto ilseq + } + l = uint64(2) + if **(**Tsize_t)(__ccgo_up(inb)) < uint64(2) { + goto starved + } + d = uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(in)) + UintptrFromInt32(1)))) + if d < uint32(0xa1) && Int32FromUint8(type1) == int32(GB2312) { + goto ilseq + } + if d-uint32(0x40) >= uint32(191) || d == uint32(127) { + if d-uint32('0') > uint32(9) || Int32FromUint8(type1) != int32(GB18030) { + goto ilseq + } + l = uint64(4) + if **(**Tsize_t)(__ccgo_up(inb)) < uint64(4) { + goto starved + } + c = (uint32(10)*c + d - uint32('0')) * uint32(1260) + d = uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(in)) + UintptrFromInt32(2)))) + if d-uint32(0x81) > uint32(126) { + goto ilseq + } + c = c + uint32(10)*(d-uint32(0x81)) + d = uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(in)) + UintptrFromInt32(3)))) + if d-uint32('0') > uint32(9) { + goto ilseq + } + c = c + (d - uint32('0')) + c = c + uint32(128) + d = uint32(0) + for { + if !(d <= c) { + break + } + k = uint64(0) + i = 0 + for { + if !(i < int32(126)) { + break + } + j = 0 + for { + if !(j < int32(190)) { + break + } + if uint32(**(**uint16)(__ccgo_up(uintptr(unsafe.Pointer(&_gb18030)) + uintptr(i)*380 + uintptr(j)*2)))-d <= c-d { + k = k + 1 + } + goto _31 + _31: + ; + j = j + 1 + } + goto _30 + _30: + ; + i = i + 1 + } + d = c + uint32(1) + c = uint32(uint64(c) + k) + goto _29 + _29: + } + goto _23 + } + d = d - uint32(0x40) + if d > uint32(63) { + d = d - 1 + } + c = uint32(**(**uint16)(__ccgo_up(uintptr(unsafe.Pointer(&_gb18030)) + uintptr(c)*380 + uintptr(d)*2))) + goto _23 + _20: + ; + if c < uint32(128) { + goto _23 + } + l = uint64(2) + if **(**Tsize_t)(__ccgo_up(inb)) < uint64(2) { + goto starved + } + d = uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(in)) + UintptrFromInt32(1)))) + if d-uint32(0x40) >= Uint32FromInt32(Int32FromInt32(0xff)-Int32FromInt32(0x40)) || d-uint32(0x7f) < Uint32FromInt32(Int32FromInt32(0xa1)-Int32FromInt32(0x7f)) { + goto ilseq + } + d = d - uint32(0x40) + if d > uint32(0x3e) { + d = d - uint32(0x22) + } + if c-uint32(0xa1) >= Uint32FromInt32(Int32FromInt32(0xfa)-Int32FromInt32(0xa1)) { + if c-uint32(0x87) >= Uint32FromInt32(Int32FromInt32(0xff)-Int32FromInt32(0x87)) { + goto ilseq + } + if c < uint32(0xa1) { + c = c - uint32(0x87) + } else { + c = c - Uint32FromInt32(Int32FromInt32(0x87)+(Int32FromInt32(0xfa)-Int32FromInt32(0xa1))) + } + c = Uint32FromInt32(Int32FromUint16(_hkscs[uint32(4867)+(c*uint32(157)+d)/uint32(16)])>>((c*uint32(157)+d)%uint32(16))%int32(2)< **(**Tsize_t)(__ccgo_up(outb)) { + goto toobig + } + if tmpx != 0 { + x = x + 1 + } + Xmemcpy(tls, **(**uintptr)(__ccgo_up(out)), bp+40, tmplen) + **(**uintptr)(__ccgo_up(out)) += uintptr(tmplen) + **(**Tsize_t)(__ccgo_up(outb)) -= tmplen + goto _1 + } + if !(c != 0) { + goto ilseq + } + goto _23 + } + c = c - uint32(0xa1) + c = Uint32FromInt32(Int32FromUint16(**(**uint16)(__ccgo_up(uintptr(unsafe.Pointer(&_big5)) + uintptr(c)*314 + uintptr(d)*2))) | BoolInt32(c == uint32(0x27) && (d == uint32(0x3a) || d == uint32(0x3c) || d == uint32(0x42)))<= uint32(93) || d >= uint32(94) { + c = c + Uint32FromInt32(Int32FromInt32(0xa1)-Int32FromInt32(0x81)) + d = d + uint32(0xa1) + if c >= uint32(93) || c >= Uint32FromInt32(Int32FromInt32(0xc6)-Int32FromInt32(0x81)) && d > uint32(0x52) { + goto ilseq + } + if d-uint32('A') < uint32(26) { + d = d - uint32('A') + } else { + if d-uint32('a') < uint32(26) { + d = d - uint32('a') + uint32(26) + } else { + if d-uint32(0x81) < Uint32FromInt32(Int32FromInt32(0xff)-Int32FromInt32(0x81)) { + d = d - uint32(0x81) + uint32(52) + } else { + goto ilseq + } + } + } + if c < uint32(0x20) { + c = uint32(178)*c + d + } else { + c = Uint32FromInt32(Int32FromInt32(178)*Int32FromInt32(0x20)) + uint32(84)*(c-uint32(0x20)) + d + } + c = c + uint32(0xac00) + d = uint32(0xac00) + for { + if !(d <= c) { + break + } + k = uint64(0) + i1 = 0 + for { + if !(i1 < int32(93)) { + break + } + j1 = 0 + for { + if !(j1 < int32(94)) { + break + } + if uint32(**(**uint16)(__ccgo_up(uintptr(unsafe.Pointer(&_ksc)) + uintptr(i1)*188 + uintptr(j1)*2)))-d <= c-d { + k = k + 1 + } + goto _34 + _34: + ; + j1 = j1 + 1 + } + goto _33 + _33: + ; + i1 = i1 + 1 + } + d = c + uint32(1) + c = uint32(uint64(c) + k) + goto _32 + _32: + } + goto _23 + } + c = uint32(**(**uint16)(__ccgo_up(uintptr(unsafe.Pointer(&_ksc)) + uintptr(c)*188 + uintptr(d)*2))) + if !(c != 0) { + goto ilseq + } + goto _23 + _22: + ; + if !(c != 0) { + goto _23 + } + c = _legacy_map(tls, map1, c) + if !(c != 0) { + goto ilseq + } + _23: + ; + switch Int32FromUint8(totype) { + case int32(WCHAR_T): + goto _35 + case int32(UTF_8): + goto _36 + case int32(US_ASCII): + goto _37 + default: + goto _38 + case int32(SHIFT_JIS): + goto _39 + case int32(EUC_JP): + goto _40 + case int32(ISO2022_JP): + goto _41 + case int32(UCS2): + goto _42 + case int32(UTF_16LE): + goto _43 + case int32(UTF_16BE): + goto _44 + case int32(UTF_16): + goto _45 + case int32(UCS2LE): + goto _46 + case int32(UCS2BE): + goto _47 + case int32(UTF_32): + goto _48 + case int32(UTF_32LE): + goto _49 + case int32(UTF_32BE): + goto _50 + } + goto _51 + _35: + ; + if **(**Tsize_t)(__ccgo_up(outb)) < uint64(4) { + goto toobig + } + **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(out)))) = Int32FromUint32(c) + **(**uintptr)(__ccgo_up(out)) += uintptr(4) + **(**Tsize_t)(__ccgo_up(outb)) -= uint64(4) + goto _51 + _36: + ; + if **(**Tsize_t)(__ccgo_up(outb)) < uint64(4) { + k = Uint64FromInt32(Xwctomb(tls, bp+56, Int32FromUint32(c))) + if **(**Tsize_t)(__ccgo_up(outb)) < k { + goto toobig + } + Xmemcpy(tls, **(**uintptr)(__ccgo_up(out)), bp+56, k) + } else { + k = Uint64FromInt32(Xwctomb(tls, **(**uintptr)(__ccgo_up(out)), Int32FromUint32(c))) + } + **(**uintptr)(__ccgo_up(out)) += uintptr(k) + **(**Tsize_t)(__ccgo_up(outb)) -= k + goto _51 + _37: + ; + if !(c > uint32(0x7f)) { + goto _52 + } + goto subst + subst: + ; + x = x + 1 + c = Uint32FromUint8('*') + _52: + ; + _38: + ; + if **(**Tsize_t)(__ccgo_up(outb)) < uint64(1) { + goto toobig + } + if !(c < uint32(256) && c == _legacy_map(tls, tomap, c)) { + goto _53 + } + goto revout + revout: + ; + if **(**Tsize_t)(__ccgo_up(outb)) < uint64(1) { + goto toobig + } + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8(c) + **(**Tsize_t)(__ccgo_up(outb)) -= uint64(1) + goto _51 + _53: + ; + d = c + c = Uint32FromInt32(int32(4) * Int32FromUint8(totype)) + for { + if !(c < uint32(256)) { + break + } + if d == _legacy_map(tls, tomap, c) { + goto revout + } + goto _56 + _56: + ; + c = c + 1 + } + goto subst + _39: + ; + if c < uint32(128) { + goto revout + } + if c == uint32(0xa5) { + x = x + 1 + c = uint32('\\') + goto revout + } + if c == uint32(0x203e) { + x = x + 1 + c = uint32('~') + goto revout + } + if c-uint32(0xff61) <= Uint32FromInt32(Int32FromInt32(0xdf)-Int32FromInt32(0xa1)) { + c = c + Uint32FromInt32(Int32FromInt32(0xa1)-Int32FromInt32(0xff61)) + goto revout + } + c = _uni_to_jis(tls, c) + if !(c != 0) { + goto subst + } + if **(**Tsize_t)(__ccgo_up(outb)) < uint64(2) { + goto toobig + } + d = c % uint32(256) + c = c / uint32(256) + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + if c < uint32(95) { + v25 = int32(112) + } else { + v25 = int32(176) + } + **(**uint8)(__ccgo_up(v54)) = uint8((c+uint32(1))/uint32(2) + Uint32FromInt32(v25)) + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + if c%uint32(2) != 0 { + v62 = d + uint32(31) + d/uint32(96) + } else { + v62 = d + uint32(126) + } + **(**uint8)(__ccgo_up(v54)) = uint8(v62) + **(**Tsize_t)(__ccgo_up(outb)) -= uint64(2) + goto _51 + _40: + ; + if c < uint32(128) { + goto revout + } + if c-uint32(0xff61) <= Uint32FromInt32(Int32FromInt32(0xdf)-Int32FromInt32(0xa1)) { + c = c + Uint32FromInt32(Int32FromInt32(0x0e00)+Int32FromInt32(0x21)-Int32FromInt32(0xff61)) + } else { + c = _uni_to_jis(tls, c) + } + if !(c != 0) { + goto subst + } + if **(**Tsize_t)(__ccgo_up(outb)) < uint64(2) { + goto toobig + } + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8(c/uint32(256) + uint32(0x80)) + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8(c%uint32(256) + uint32(0x80)) + **(**Tsize_t)(__ccgo_up(outb)) -= uint64(2) + goto _51 + _41: + ; + if c < uint32(128) { + goto revout + } + if c-uint32(0xff61) <= Uint32FromInt32(Int32FromInt32(0xdf)-Int32FromInt32(0xa1)) || c == uint32(0xa5) || c == uint32(0x203e) { + if **(**Tsize_t)(__ccgo_up(outb)) < uint64(7) { + goto toobig + } + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8('\033') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8('(') + if c == uint32(0xa5) { + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8('J') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8('\\') + } else { + if c == uint32(0x203e) { + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8('J') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8('~') + } else { + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8('I') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8(c - uint32(0xff61) + uint32(0x21)) + } + } + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8('\033') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8('(') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8('B') + **(**Tsize_t)(__ccgo_up(outb)) -= uint64(7) + goto _51 + } + c = _uni_to_jis(tls, c) + if !(c != 0) { + goto subst + } + if **(**Tsize_t)(__ccgo_up(outb)) < uint64(8) { + goto toobig + } + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8('\033') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8('$') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8('B') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8(c / uint32(256)) + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8(c % uint32(256)) + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8('\033') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8('(') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8('B') + **(**Tsize_t)(__ccgo_up(outb)) -= uint64(8) + goto _51 + _42: + ; + totype = uint8(UCS2BE) + _47: + ; + _46: + ; + _45: + ; + _44: + ; + _43: + ; + if c < uint32(0x10000) || Uint32FromInt32(Int32FromUint8(totype)-int32(UCS2BE)) < uint32(2) { + if c >= uint32(0x10000) { + c = uint32(0xFFFD) + } + if **(**Tsize_t)(__ccgo_up(outb)) < uint64(2) { + goto toobig + } + _put_16(tls, **(**uintptr)(__ccgo_up(out)), c, Int32FromUint8(totype)) + **(**uintptr)(__ccgo_up(out)) += uintptr(2) + **(**Tsize_t)(__ccgo_up(outb)) -= uint64(2) + goto _51 + } + if **(**Tsize_t)(__ccgo_up(outb)) < uint64(4) { + goto toobig + } + c = c - uint32(0x10000) + _put_16(tls, **(**uintptr)(__ccgo_up(out)), c>>int32(10)|uint32(0xd800), Int32FromUint8(totype)) + _put_16(tls, **(**uintptr)(__ccgo_up(out))+UintptrFromInt32(2), c&uint32(0x3ff)|uint32(0xdc00), Int32FromUint8(totype)) + **(**uintptr)(__ccgo_up(out)) += uintptr(4) + **(**Tsize_t)(__ccgo_up(outb)) -= uint64(4) + goto _51 + _48: + ; + totype = uint8(UTF_32BE) + _50: + ; + _49: + ; + if **(**Tsize_t)(__ccgo_up(outb)) < uint64(4) { + goto toobig + } + _put_32(tls, **(**uintptr)(__ccgo_up(out)), c, Int32FromUint8(totype)) + **(**uintptr)(__ccgo_up(out)) += uintptr(4) + **(**Tsize_t)(__ccgo_up(outb)) -= uint64(4) + goto _51 + _51: + ; + goto _1 + _1: + ; + **(**uintptr)(__ccgo_up(in)) += uintptr(l) + **(**Tsize_t)(__ccgo_up(inb)) -= l + } + **(**Tlocale_t)(__ccgo_up(ploc)) = loc + return x + goto ilseq +ilseq: + ; + err = int32(EILSEQ) + x = Uint64FromInt32(-Int32FromInt32(1)) + goto end + goto toobig +toobig: + ; + err = int32(E2BIG) + x = Uint64FromInt32(-Int32FromInt32(1)) + goto end + goto starved +starved: + ; + err = int32(EINVAL) + x = Uint64FromInt32(-Int32FromInt32(1)) + goto end +end: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = err + **(**Tlocale_t)(__ccgo_up(ploc)) = loc + return x +} + +func Xiconv_close(tls *TLS, cd Ticonv_t) (r int32) { + if __ccgo_strace { + trc("tls=%v cd=%v, (%v:)", tls, cd, origin(2)) + defer func() { trc("-> %v", r) }() + } + if !(uint64(cd)&Uint64FromInt32(1) != 0) { + Xfree(tls, cd) + } + return 0 +} + +var _c_time = [316]uint8{'S', 'u', 'n', 0, 'M', 'o', 'n', 0, 'T', 'u', 'e', 0, 'W', 'e', 'd', 0, 'T', 'h', 'u', 0, 'F', 'r', 'i', 0, 'S', 'a', 't', 0, 'S', 'u', 'n', 'd', 'a', 'y', 0, 'M', 'o', 'n', 'd', 'a', 'y', 0, 'T', 'u', 'e', 's', 'd', 'a', 'y', 0, 'W', 'e', 'd', 'n', 'e', 's', 'd', 'a', 'y', 0, 'T', 'h', 'u', 'r', 's', 'd', 'a', 'y', 0, 'F', 'r', 'i', 'd', 'a', 'y', 0, 'S', 'a', 't', 'u', 'r', 'd', 'a', 'y', 0, 'J', 'a', 'n', 0, 'F', 'e', 'b', 0, 'M', 'a', 'r', 0, 'A', 'p', 'r', 0, 'M', 'a', 'y', 0, 'J', 'u', 'n', 0, 'J', 'u', 'l', 0, 'A', 'u', 'g', 0, 'S', 'e', 'p', 0, 'O', 'c', 't', 0, 'N', 'o', 'v', 0, 'D', 'e', 'c', 0, 'J', 'a', 'n', 'u', 'a', 'r', 'y', 0, 'F', 'e', 'b', 'r', 'u', 'a', 'r', 'y', 0, 'M', 'a', 'r', 'c', 'h', 0, 'A', 'p', 'r', 'i', 'l', 0, 'M', 'a', 'y', 0, 'J', 'u', 'n', 'e', 0, 'J', 'u', 'l', 'y', 0, 'A', 'u', 'g', 'u', 's', 't', 0, 'S', 'e', 'p', 't', 'e', 'm', 'b', 'e', 'r', 0, 'O', 'c', 't', 'o', 'b', 'e', 'r', 0, 'N', 'o', 'v', 'e', 'm', 'b', 'e', 'r', 0, 'D', 'e', 'c', 'e', 'm', 'b', 'e', 'r', 0, 'A', 'M', 0, 'P', 'M', 0, '%', 'a', ' ', '%', 'b', ' ', '%', 'e', ' ', '%', 'T', ' ', '%', 'Y', 0, '%', 'm', '/', '%', 'd', '/', '%', 'y', 0, '%', 'H', ':', '%', 'M', ':', '%', 'S', 0, '%', 'I', ':', '%', 'M', ':', '%', 'S', ' ', '%', 'p', 0, 0, 0, '%', 'm', '/', '%', 'd', '/', '%', 'y', 0, '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 0, '%', 'a', ' ', '%', 'b', ' ', '%', 'e', ' ', '%', 'T', ' ', '%', 'Y', 0, '%', 'H', ':', '%', 'M', ':', '%', 'S'} + +var _c_messages = [19]uint8{'^', '[', 'y', 'Y', ']', 0, '^', '[', 'n', 'N', ']', 0, 'y', 'e', 's', 0, 'n', 'o'} +var _c_numeric = [3]uint8{'.'} + +func X__nl_langinfo_l(tls *TLS, item Tnl_item, loc Tlocale_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v item=%v loc=%v, (%v:)", tls, item, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + var cat, idx int32 + var str, v1 uintptr + _, _, _, _ = cat, idx, str, v1 + cat = item >> int32(16) + idx = item & int32(65535) + if item == int32(CODESET) { + if **(**uintptr)(__ccgo_up(loc)) != 0 { + v1 = __ccgo_ts + 420 + } else { + v1 = __ccgo_ts + 565 + } + return v1 + } + /* _NL_LOCALE_NAME extension */ + if idx == int32(65535) && cat < int32(LC_ALL) { + if **(**uintptr)(__ccgo_up(loc + uintptr(cat)*8)) != 0 { + v1 = **(**uintptr)(__ccgo_up(loc + uintptr(cat)*8)) + 16 + } else { + v1 = __ccgo_ts + 571 + } + return v1 + } + switch cat { + case int32(LC_NUMERIC): + if idx > int32(1) { + return __ccgo_ts + } + str = uintptr(unsafe.Pointer(&_c_numeric)) + case int32(LC_TIME): + if idx > int32(0x31) { + return __ccgo_ts + } + str = uintptr(unsafe.Pointer(&_c_time)) + case int32(LC_MONETARY): + if idx > 0 { + return __ccgo_ts + } + str = __ccgo_ts + case int32(LC_MESSAGES): + if idx > int32(3) { + return __ccgo_ts + } + str = uintptr(unsafe.Pointer(&_c_messages)) + default: + return __ccgo_ts + } + for { + if !(idx != 0) { + break + } + for { + if !(**(**uint8)(__ccgo_up(str)) != 0) { + break + } + goto _4 + _4: + ; + str = str + 1 + } + goto _3 + _3: + ; + idx = idx - 1 + str = str + 1 + } + if cat != int32(LC_NUMERIC) && **(**uint8)(__ccgo_up(str)) != 0 { + str = X__lctrans(tls, str, **(**uintptr)(__ccgo_up(loc + uintptr(cat)*8))) + } + return str +} + +func X__nl_langinfo(tls *TLS, item Tnl_item) (r uintptr) { + if __ccgo_strace { + trc("tls=%v item=%v, (%v:)", tls, item, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__nl_langinfo_l(tls, item, (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale) +} + +func Xnl_langinfo(tls *TLS, item Tnl_item) (r uintptr) { + if __ccgo_strace { + trc("tls=%v item=%v, (%v:)", tls, item, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__nl_langinfo(tls, item) +} + +func Xnl_langinfo_l(tls *TLS, item Tnl_item, loc Tlocale_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v item=%v loc=%v, (%v:)", tls, item, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__nl_langinfo_l(tls, item, loc) +} + +func X__lctrans_impl(tls *TLS, msg uintptr, lm uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v msg=%v lm=%v, (%v:)", tls, msg, lm, origin(2)) + defer func() { trc("-> %v", r) }() + } + var trans, v1 uintptr + _, _ = trans, v1 + trans = uintptr(0) + if lm != 0 { + trans = X__mo_lookup(tls, (*t__locale_map)(unsafe.Pointer(lm)).Fmap1, (*t__locale_map)(unsafe.Pointer(lm)).Fmap_size, msg) + } + if trans != 0 { + v1 = trans + } else { + v1 = msg + } + return v1 +} + +var _envvars = [6][12]uint8{ + 0: {'L', 'C', '_', 'C', 'T', 'Y', 'P', 'E'}, + 1: {'L', 'C', '_', 'N', 'U', 'M', 'E', 'R', 'I', 'C'}, + 2: {'L', 'C', '_', 'T', 'I', 'M', 'E'}, + 3: {'L', 'C', '_', 'C', 'O', 'L', 'L', 'A', 'T', 'E'}, + 4: {'L', 'C', '_', 'M', 'O', 'N', 'E', 'T', 'A', 'R', 'Y'}, + 5: {'L', 'C', '_', 'M', 'E', 'S', 'S', 'A', 'G', 'E', 'S'}, +} + +func X__get_locale(tls *TLS, cat int32, val uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v cat=%v val=%v, (%v:)", tls, cat, val, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(272) + defer tls.Free(272) + var builtin int32 + var l, n Tsize_t + var map1, new1, p, path, z, v1, v2, v4, v6 uintptr + var v3, v5, v7 bool + var _ /* buf at bp+0 */ [256]uint8 + var _ /* map_size at bp+256 */ Tsize_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = builtin, l, map1, n, new1, p, path, z, v1, v2, v3, v4, v5, v6, v7 + new1 = uintptr(0) + path = uintptr(0) + if !(**(**uint8)(__ccgo_up(val)) != 0) { + v1 = Xgetenv(tls, __ccgo_ts+573) + val = v1 + if v3 = v1 != 0 && **(**uint8)(__ccgo_up(val)) != 0; !v3 { + v2 = Xgetenv(tls, uintptr(unsafe.Pointer(&_envvars))+uintptr(cat)*12) + val = v2 + } + if v5 = v3 || v2 != 0 && **(**uint8)(__ccgo_up(val)) != 0; !v5 { + v4 = Xgetenv(tls, __ccgo_ts+434) + val = v4 + } + if v7 = v5 || v4 != 0 && **(**uint8)(__ccgo_up(val)) != 0; !v7 { + v6 = __ccgo_ts + 580 + val = v6 + } + _ = v7 || v6 != 0 + } + /* Limit name length and forbid leading dot or any slashes. */ + n = uint64(0) + for { + if !(n < uint64(LOCALE_NAME_MAX) && **(**uint8)(__ccgo_up(val + uintptr(n))) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(val + uintptr(n)))) != int32('/')) { + break + } + goto _8 + _8: + ; + n = n + 1 + } + if Int32FromUint8(**(**uint8)(__ccgo_up(val))) == int32('.') || **(**uint8)(__ccgo_up(val + uintptr(n))) != 0 { + val = __ccgo_ts + 580 + } + builtin = BoolInt32(Int32FromUint8(**(**uint8)(__ccgo_up(val))) == int32('C') && !(**(**uint8)(__ccgo_up(val + 1)) != 0) || !(Xstrcmp(tls, val, __ccgo_ts+580) != 0) || !(Xstrcmp(tls, val, __ccgo_ts+588) != 0)) + if builtin != 0 { + if cat == LC_CTYPE && Int32FromUint8(**(**uint8)(__ccgo_up(val + 1))) == int32('.') { + return uintptr(unsafe.Pointer(&X__c_dot_utf8)) + } + return uintptr(0) + } + p = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_loc_head))) + for { + if !(p != 0) { + break + } + if !(Xstrcmp(tls, val, p+16) != 0) { + return p + } + goto _9 + _9: + ; + p = (*t__locale_map)(unsafe.Pointer(p)).Fnext + } + if !(X__libc.Fsecure != 0) { + path = Xgetenv(tls, __ccgo_ts+594) + } + /* FIXME: add a default path? */ + if path != 0 { + for { + if !(**(**uint8)(__ccgo_up(path)) != 0) { + break + } + z = X__strchrnul(tls, path, int32(':')) + l = Uint64FromInt64(int64(z) - int64(path)) + if l >= uint64(256)-n-uint64(2) { + goto _10 + } + Xmemcpy(tls, bp, path, l) + (**(**[256]uint8)(__ccgo_up(bp)))[l] = uint8('/') + Xmemcpy(tls, bp+uintptr(l)+uintptr(1), val, n) + (**(**[256]uint8)(__ccgo_up(bp)))[l+uint64(1)+n] = uint8(0) + map1 = X__map_file(tls, bp, bp+256) + if map1 != 0 { + new1 = Xmalloc(tls, uint64(48)) + if !(new1 != 0) { + X__munmap(tls, map1, **(**Tsize_t)(__ccgo_up(bp + 256))) + break + } + (*t__locale_map)(unsafe.Pointer(new1)).Fmap1 = map1 + (*t__locale_map)(unsafe.Pointer(new1)).Fmap_size = **(**Tsize_t)(__ccgo_up(bp + 256)) + Xmemcpy(tls, new1+16, val, n) + **(**uint8)(__ccgo_up(new1 + 16 + uintptr(n))) = uint8(0) + (*t__locale_map)(unsafe.Pointer(new1)).Fnext = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_loc_head))) + AtomicStorePUintptr(uintptr(unsafe.Pointer(&_loc_head)), new1) + break + } + goto _10 + _10: + ; + path = z + BoolUintptr(!!(**(**uint8)(__ccgo_up(z)) != 0)) + } + } + /* If no locale definition was found, make a locale map + * object anyway to store the name, which is kept for the + * sake of being able to do message translations at the + * application level. */ + if v3 = !(new1 != 0); v3 { + v1 = Xmalloc(tls, uint64(48)) + new1 = v1 + } + if v3 && v1 != 0 { + (*t__locale_map)(unsafe.Pointer(new1)).Fmap1 = X__c_dot_utf8.Fmap1 + (*t__locale_map)(unsafe.Pointer(new1)).Fmap_size = X__c_dot_utf8.Fmap_size + Xmemcpy(tls, new1+16, val, n) + **(**uint8)(__ccgo_up(new1 + 16 + uintptr(n))) = uint8(0) + (*t__locale_map)(unsafe.Pointer(new1)).Fnext = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_loc_head))) + AtomicStorePUintptr(uintptr(unsafe.Pointer(&_loc_head)), new1) + } + /* For LC_CTYPE, never return a null pointer unless the + * requested name was "C" or "POSIX". */ + if !(new1 != 0) && cat == LC_CTYPE { + new1 = uintptr(unsafe.Pointer(&X__c_dot_utf8)) + } + return new1 +} + +var _loc_head uintptr + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +var _posix_lconv = Tlconv{ + Fdecimal_point: __ccgo_ts + 607, + Fthousands_sep: __ccgo_ts, + Fgrouping: __ccgo_ts, + Fint_curr_symbol: __ccgo_ts, + Fcurrency_symbol: __ccgo_ts, + Fmon_decimal_point: __ccgo_ts, + Fmon_thousands_sep: __ccgo_ts, + Fmon_grouping: __ccgo_ts, + Fpositive_sign: __ccgo_ts, + Fnegative_sign: __ccgo_ts, + Fint_frac_digits: uint8(CHAR_MAX), + Ffrac_digits: uint8(CHAR_MAX), + Fp_cs_precedes: uint8(CHAR_MAX), + Fp_sep_by_space: uint8(CHAR_MAX), + Fn_cs_precedes: uint8(CHAR_MAX), + Fn_sep_by_space: uint8(CHAR_MAX), + Fp_sign_posn: uint8(CHAR_MAX), + Fn_sign_posn: uint8(CHAR_MAX), + Fint_p_cs_precedes: uint8(CHAR_MAX), + Fint_p_sep_by_space: uint8(CHAR_MAX), + Fint_n_cs_precedes: uint8(CHAR_MAX), + Fint_n_sep_by_space: uint8(CHAR_MAX), + Fint_p_sign_posn: uint8(CHAR_MAX), + Fint_n_sign_posn: uint8(CHAR_MAX), +} + +func Xlocaleconv(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(unsafe.Pointer(&_posix_lconv)) +} + +var _default_locale_init_done int32 +var _default_locale t__locale_struct +var _default_ctype_locale t__locale_struct + +func X__loc_is_allocated(tls *TLS, loc Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v loc=%v, (%v:)", tls, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(loc != 0 && loc != uintptr(unsafe.Pointer(&X__c_locale)) && loc != uintptr(unsafe.Pointer(&X__c_dot_utf8_locale)) && loc != uintptr(unsafe.Pointer(&_default_locale)) && loc != uintptr(unsafe.Pointer(&_default_ctype_locale))) +} + +func _do_newlocale(tls *TLS, mask int32, name uintptr, loc Tlocale_t) (r Tlocale_t) { + bp := tls.Alloc(48) + defer tls.Free(48) + var i, i1 int32 + var v2, v3 uintptr + var v5 Tlocale_t + var _ /* tmp at bp+0 */ t__locale_struct + _, _, _, _, _ = i, i1, v2, v3, v5 + i = 0 + for { + if !(i < int32(LC_ALL)) { + break + } + if !(mask&(Int32FromInt32(1)< %v", r) }() + } + ___lock(tls, uintptr(unsafe.Pointer(&X__locale_lock))) + loc = _do_newlocale(tls, mask, name, loc) + ___unlock(tls, uintptr(unsafe.Pointer(&X__locale_lock))) + return loc +} + +func Xnewlocale(tls *TLS, mask int32, name uintptr, loc Tlocale_t) (r Tlocale_t) { + if __ccgo_strace { + trc("tls=%v mask=%v name=%v loc=%v, (%v:)", tls, mask, name, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__newlocale(tls, mask, name, loc) +} + +/* +grammar: + +Start = Expr ';' +Expr = Or | Or '?' Expr ':' Expr +Or = And | Or '||' And +And = Eq | And '&&' Eq +Eq = Rel | Eq '==' Rel | Eq '!=' Rel +Rel = Add | Rel '<=' Add | Rel '>=' Add | Rel '<' Add | Rel '>' Add +Add = Mul | Add '+' Mul | Add '-' Mul +Mul = Prim | Mul '*' Prim | Mul '/' Prim | Mul '%' Prim +Prim = '(' Expr ')' | '!' Prim | decimal | 'n' + +internals: + +recursive descent expression evaluator with stack depth limit. +for binary operators an operator-precedence parser is used. +eval* functions store the result of the parsed subexpression +and return a pointer to the next non-space character. +*/ + +type Tst = struct { + Fr uint64 + Fn uint64 + Fop int32 +} + +func _skipspace(tls *TLS, s uintptr) (r uintptr) { + var v1, v2 int32 + _, _ = v1, v2 + for { + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(s))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _3 + _3: + if !(v2 != 0) { + break + } + s = s + 1 + } + return s +} + +func _evalprim(tls *TLS, st uintptr, s uintptr, d int32) (r uintptr) { + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 int32 + var _ /* e at bp+0 */ uintptr + _ = v1 + d = d - 1 + v1 = d + if v1 < 0 { + return __ccgo_ts + } + s = _skipspace(tls, s) + if BoolInt32(uint32(**(**uint8)(__ccgo_up(s)))-uint32('0') < uint32(10)) != 0 { + (*Tst)(unsafe.Pointer(st)).Fr = Xstrtoul(tls, s, bp, int32(10)) + if **(**uintptr)(__ccgo_up(bp)) == s || (*Tst)(unsafe.Pointer(st)).Fr == Uint64FromInt32(-Int32FromInt32(1)) { + return __ccgo_ts + } + return _skipspace(tls, **(**uintptr)(__ccgo_up(bp))) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('n') { + (*Tst)(unsafe.Pointer(st)).Fr = (*Tst)(unsafe.Pointer(st)).Fn + return _skipspace(tls, s+uintptr(1)) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('(') { + s = _evalexpr(tls, st, s+uintptr(1), d) + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) != int32(')') { + return __ccgo_ts + } + return _skipspace(tls, s+uintptr(1)) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('!') { + s = _evalprim(tls, st, s+uintptr(1), d) + (*Tst)(unsafe.Pointer(st)).Fr = BoolUint64(!((*Tst)(unsafe.Pointer(st)).Fr != 0)) + return s + } + return __ccgo_ts +} + +func _binop(tls *TLS, st uintptr, op int32, left uint64) (r int32) { + var a, b uint64 + _, _ = a, b + a = left + b = (*Tst)(unsafe.Pointer(st)).Fr + switch op { + case 0: + (*Tst)(unsafe.Pointer(st)).Fr = BoolUint64(a != 0 || b != 0) + return 0 + case int32(1): + (*Tst)(unsafe.Pointer(st)).Fr = BoolUint64(a != 0 && b != 0) + return 0 + case int32(2): + (*Tst)(unsafe.Pointer(st)).Fr = BoolUint64(a == b) + return 0 + case int32(3): + (*Tst)(unsafe.Pointer(st)).Fr = BoolUint64(a != b) + return 0 + case int32(4): + (*Tst)(unsafe.Pointer(st)).Fr = BoolUint64(a >= b) + return 0 + case int32(5): + (*Tst)(unsafe.Pointer(st)).Fr = BoolUint64(a <= b) + return 0 + case int32(6): + (*Tst)(unsafe.Pointer(st)).Fr = BoolUint64(a > b) + return 0 + case int32(7): + (*Tst)(unsafe.Pointer(st)).Fr = BoolUint64(a < b) + return 0 + case int32(8): + (*Tst)(unsafe.Pointer(st)).Fr = a + b + return 0 + case int32(9): + (*Tst)(unsafe.Pointer(st)).Fr = a - b + return 0 + case int32(10): + (*Tst)(unsafe.Pointer(st)).Fr = a * b + return 0 + case int32(11): + if b != 0 { + (*Tst)(unsafe.Pointer(st)).Fr = a % b + return 0 + } + return int32(1) + case int32(12): + if b != 0 { + (*Tst)(unsafe.Pointer(st)).Fr = a / b + return 0 + } + return int32(1) + } + return int32(1) +} + +func _parseop(tls *TLS, st uintptr, s uintptr) (r uintptr) { + var i int32 + _ = i + i = 0 + for { + if !(i < int32(11)) { + break + } + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == Int32FromUint8(_opch[i]) { + /* note: >,< are accepted with or without = */ + if i < int32(6) && Int32FromUint8(**(**uint8)(__ccgo_up(s + 1))) == Int32FromUint8(_opch2[i]) { + (*Tst)(unsafe.Pointer(st)).Fop = i + return s + uintptr(2) + } + if i >= int32(4) { + (*Tst)(unsafe.Pointer(st)).Fop = i + int32(2) + return s + uintptr(1) + } + break + } + goto _1 + _1: + ; + i = i + 1 + } + (*Tst)(unsafe.Pointer(st)).Fop = int32(13) + return s +} + +var _opch = [11]uint8{'|', '&', '=', '!', '>', '<', '+', '-', '*', '%', '/'} + +var _opch2 = [6]uint8{'|', '&', '=', '=', '=', '='} + +func _evalbinop(tls *TLS, st uintptr, s uintptr, minprec int32, d int32) (r uintptr) { + var left uint64 + var op int32 + _, _ = left, op + d = d - 1 + s = _evalprim(tls, st, s, d) + s = _parseop(tls, st, s) + for { + /* + st->r (left hand side value) and st->op are now set, + get the right hand side or back out if op has low prec, + if op was missing then prec[op]==0 + */ + op = (*Tst)(unsafe.Pointer(st)).Fop + if Int32FromUint8(_prec[op]) <= minprec { + return s + } + left = (*Tst)(unsafe.Pointer(st)).Fr + s = _evalbinop(tls, st, s, Int32FromUint8(_prec[op]), d) + if _binop(tls, st, op, left) != 0 { + return __ccgo_ts + } + goto _1 + _1: + } + return r +} + +var _prec = [14]uint8{ + 0: uint8(1), + 1: uint8(2), + 2: uint8(3), + 3: uint8(3), + 4: uint8(4), + 5: uint8(4), + 6: uint8(4), + 7: uint8(4), + 8: uint8(5), + 9: uint8(5), + 10: uint8(6), + 11: uint8(6), + 12: uint8(6), +} + +func _evalexpr(tls *TLS, st uintptr, s uintptr, d int32) (r uintptr) { + var a, b, v2 uint64 + var v1 int32 + _, _, _, _ = a, b, v1, v2 + d = d - 1 + v1 = d + if v1 < 0 { + return __ccgo_ts + } + s = _evalbinop(tls, st, s, 0, d) + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) != int32('?') { + return s + } + a = (*Tst)(unsafe.Pointer(st)).Fr + s = _evalexpr(tls, st, s+uintptr(1), d) + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) != int32(':') { + return __ccgo_ts + } + b = (*Tst)(unsafe.Pointer(st)).Fr + s = _evalexpr(tls, st, s+uintptr(1), d) + if a != 0 { + v2 = b + } else { + v2 = (*Tst)(unsafe.Pointer(st)).Fr + } + (*Tst)(unsafe.Pointer(st)).Fr = v2 + return s +} + +func X__pleval(tls *TLS, s uintptr, n uint64) (r uint64) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v, (%v:)", tls, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var v1 uint64 + var _ /* st at bp+0 */ Tst + _ = v1 + (**(**Tst)(__ccgo_up(bp))).Fn = n + s = _evalexpr(tls, bp, s, int32(100)) + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32(';') { + v1 = (**(**Tst)(__ccgo_up(bp))).Fr + } else { + v1 = Uint64FromInt32(-Int32FromInt32(1)) + } + return v1 +} + +var _buf1 [144]uint8 + +func Xsetlocale(tls *TLS, cat int32, name uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v cat=%v name=%v, (%v:)", tls, cat, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(80) + defer tls.Free(80) + var i, same int32 + var l Tsize_t + var lm, lm1, p, part1, ret, s, z, v3 uintptr + var _ /* part at bp+48 */ [24]uint8 + var _ /* tmp_locale at bp+0 */ t__locale_struct + _, _, _, _, _, _, _, _, _, _, _ = i, l, lm, lm1, p, part1, ret, s, same, z, v3 + if Uint32FromInt32(cat) > uint32(LC_ALL) { + return uintptr(0) + } + ___lock(tls, uintptr(unsafe.Pointer(&X__locale_lock))) + /* For LC_ALL, setlocale is required to return a string which + * encodes the current setting for all categories. The format of + * this string is unspecified, and only the following code, which + * performs both the serialization and deserialization, depends + * on the format, so it can easily be changed if needed. */ + if cat == int32(LC_ALL) { + if name != 0 { + **(**[24]uint8)(__ccgo_up(bp + 48)) = [24]uint8{'C', '.', 'U', 'T', 'F', '-', '8'} + p = name + i = 0 + for { + if !(i < int32(LC_ALL)) { + break + } + z = X__strchrnul(tls, p, int32(';')) + if int64(z)-int64(p) <= int64(LOCALE_NAME_MAX) { + Xmemcpy(tls, bp+48, p, Uint64FromInt64(int64(z)-int64(p))) + (**(**[24]uint8)(__ccgo_up(bp + 48)))[int64(z)-int64(p)] = uint8(0) + if **(**uint8)(__ccgo_up(z)) != 0 { + p = z + uintptr(1) + } + } + lm = X__get_locale(tls, i, bp+48) + if lm == uintptr(-Int32FromInt32(1)) { + ___unlock(tls, uintptr(unsafe.Pointer(&X__locale_lock))) + return uintptr(0) + } + **(**uintptr)(__ccgo_up(bp + uintptr(i)*8)) = lm + goto _1 + _1: + ; + i = i + 1 + } + X__libc.Fglobal_locale = **(**t__locale_struct)(__ccgo_up(bp)) + } + s = uintptr(unsafe.Pointer(&_buf1)) + same = 0 + i = 0 + for { + if !(i < int32(LC_ALL)) { + break + } + lm1 = **(**uintptr)(__ccgo_up(uintptr(unsafe.Pointer(&X__libc)) + 56 + uintptr(i)*8)) + if lm1 == **(**uintptr)(__ccgo_up(uintptr(unsafe.Pointer(&X__libc)) + 56)) { + same = same + 1 + } + if lm1 != 0 { + v3 = lm1 + 16 + } else { + v3 = __ccgo_ts + 571 + } + part1 = v3 + l = _strlen(tls, part1) + Xmemcpy(tls, s, part1, l) + **(**uint8)(__ccgo_up(s + uintptr(l))) = uint8(';') + s = s + uintptr(l+uint64(1)) + goto _2 + _2: + ; + i = i + 1 + } + s = s - 1 + v3 = s + **(**uint8)(__ccgo_up(v3)) = uint8(0) + ___unlock(tls, uintptr(unsafe.Pointer(&X__locale_lock))) + if same == int32(LC_ALL) { + v3 = part1 + } else { + v3 = uintptr(unsafe.Pointer(&_buf1)) + } + return v3 + } + if name != 0 { + lm = X__get_locale(tls, cat, name) + if lm == uintptr(-Int32FromInt32(1)) { + ___unlock(tls, uintptr(unsafe.Pointer(&X__locale_lock))) + return uintptr(0) + } + **(**uintptr)(__ccgo_up(uintptr(unsafe.Pointer(&X__libc)) + 56 + uintptr(cat)*8)) = lm + } else { + lm = **(**uintptr)(__ccgo_up(uintptr(unsafe.Pointer(&X__libc)) + 56 + uintptr(cat)*8)) + } + if lm != 0 { + v3 = lm + 16 + } else { + v3 = __ccgo_ts + 571 + } + ret = v3 + ___unlock(tls, uintptr(unsafe.Pointer(&X__locale_lock))) + return ret +} + +func X__strcoll_l(tls *TLS, l uintptr, r uintptr, loc Tlocale_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v loc=%v, (%v:)", tls, l, r, loc, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return Xstrcmp(tls, l, r) +} + +func Xstrcoll(tls *TLS, l uintptr, r uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v, (%v:)", tls, l, r, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return X__strcoll_l(tls, l, r, (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale) +} + +func Xstrcoll_l(tls *TLS, l uintptr, r uintptr, loc Tlocale_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v loc=%v, (%v:)", tls, l, r, loc, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return X__strcoll_l(tls, l, r, loc) +} + +func _vstrfmon_l(tls *TLS, s uintptr, n Tsize_t, loc Tlocale_t, fmt uintptr, ap Tva_list) (r Tssize_t) { + bp := tls.Alloc(32) + defer tls.Free(32) + var fill, fw, intl, left, lp, negpar, nogrp, nosym, rp, w int32 + var l Tsize_t + var s0, v5, v6 uintptr + var x float64 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = fill, fw, intl, l, left, lp, negpar, nogrp, nosym, rp, s0, w, x, v5, v6 + s0 = s +_3: + ; + if !(n != 0 && **(**uint8)(__ccgo_up(fmt)) != 0) { + goto _1 + } + if !(Int32FromUint8(**(**uint8)(__ccgo_up(fmt))) != int32('%')) { + goto _4 + } + goto literal +literal: + ; + v5 = s + s = s + 1 + v6 = fmt + fmt = fmt + 1 + **(**uint8)(__ccgo_up(v5)) = **(**uint8)(__ccgo_up(v6)) + n = n - 1 + goto _2 +_4: + ; + fmt = fmt + 1 + if Int32FromUint8(**(**uint8)(__ccgo_up(fmt))) == int32('%') { + goto literal + } + fill = int32(' ') + nogrp = 0 + negpar = 0 + nosym = 0 + left = 0 + for { + switch Int32FromUint8(**(**uint8)(__ccgo_up(fmt))) { + case int32('='): + fmt = fmt + 1 + v5 = fmt + fill = Int32FromUint8(**(**uint8)(__ccgo_up(v5))) + goto _7 + case int32('^'): + nogrp = int32(1) + goto _7 + case int32('('): + negpar = int32(1) + fallthrough + case int32('+'): + goto _7 + case int32('!'): + nosym = int32(1) + goto _7 + case int32('-'): + left = int32(1) + goto _7 + } + break + goto _7 + _7: + ; + fmt = fmt + 1 + } + fw = 0 + for { + if !(BoolInt32(uint32(**(**uint8)(__ccgo_up(fmt)))-uint32('0') < uint32(10)) != 0) { + break + } + fw = int32(10)*fw + (Int32FromUint8(**(**uint8)(__ccgo_up(fmt))) - int32('0')) + goto _9 + _9: + ; + fmt = fmt + 1 + } + lp = 0 + rp = int32(2) + if Int32FromUint8(**(**uint8)(__ccgo_up(fmt))) == int32('#') { + lp = 0 + fmt = fmt + 1 + for { + if !(BoolInt32(uint32(**(**uint8)(__ccgo_up(fmt)))-uint32('0') < uint32(10)) != 0) { + break + } + lp = int32(10)*lp + (Int32FromUint8(**(**uint8)(__ccgo_up(fmt))) - int32('0')) + goto _10 + _10: + ; + fmt = fmt + 1 + } + } + if Int32FromUint8(**(**uint8)(__ccgo_up(fmt))) == int32('.') { + rp = 0 + fmt = fmt + 1 + for { + if !(BoolInt32(uint32(**(**uint8)(__ccgo_up(fmt)))-uint32('0') < uint32(10)) != 0) { + break + } + rp = int32(10)*rp + (Int32FromUint8(**(**uint8)(__ccgo_up(fmt))) - int32('0')) + goto _11 + _11: + ; + fmt = fmt + 1 + } + } + v5 = fmt + fmt = fmt + 1 + intl = BoolInt32(Int32FromUint8(**(**uint8)(__ccgo_up(v5))) == int32('i')) + w = lp + int32(1) + rp + if !(left != 0) && fw > w { + w = fw + } + x = VaFloat64(&ap) + l = Uint64FromInt32(Xsnprintf(tls, s, n, __ccgo_ts+609, VaList(bp+8, w, rp, x))) + if l >= n { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(E2BIG) + return int64(-int32(1)) + } + s = s + uintptr(l) + n = n - l + goto _2 +_2: + ; + goto _3 + goto _1 +_1: + ; + return int64(s) - int64(s0) +} + +func Xstrfmon_l(tls *TLS, s uintptr, n Tsize_t, loc Tlocale_t, fmt uintptr, va uintptr) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v loc=%v fmt=%v va=%v, (%v:)", tls, s, n, loc, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret Tssize_t + _, _ = ap, ret + ap = va + ret = _vstrfmon_l(tls, s, n, loc, fmt, ap) + _ = ap + return ret +} + +func Xstrfmon(tls *TLS, s uintptr, n Tsize_t, fmt uintptr, va uintptr) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v fmt=%v va=%v, (%v:)", tls, s, n, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret Tssize_t + _, _ = ap, ret + ap = va + ret = _vstrfmon_l(tls, s, n, (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale, fmt, ap) + _ = ap + return ret +} + +func Xstrtof_l(tls *TLS, s uintptr, p uintptr, l Tlocale_t) (r float32) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v l=%v, (%v:)", tls, s, p, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtof(tls, s, p) +} + +func Xstrtod_l(tls *TLS, s uintptr, p uintptr, l Tlocale_t) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v l=%v, (%v:)", tls, s, p, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtod(tls, s, p) +} + +func Xstrtold_l(tls *TLS, s uintptr, p uintptr, l Tlocale_t) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v l=%v, (%v:)", tls, s, p, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtold(tls, s, p) +} + +func X__strtod_l(tls *TLS, s uintptr, p uintptr, l Tlocale_t) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v l=%v, (%v:)", tls, s, p, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtod_l(tls, s, p, l) +} + +func X__strtof_l(tls *TLS, s uintptr, p uintptr, l Tlocale_t) (r float32) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v l=%v, (%v:)", tls, s, p, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtof_l(tls, s, p, l) +} + +func X__strtold_l(tls *TLS, s uintptr, p uintptr, l Tlocale_t) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v l=%v, (%v:)", tls, s, p, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtold_l(tls, s, p, l) +} + +// C documentation +// +// /* collate only by code points */ +func X__strxfrm_l(tls *TLS, dest uintptr, src uintptr, n Tsize_t, loc Tlocale_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v n=%v loc=%v, (%v:)", tls, dest, src, n, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l Tsize_t + _ = l + l = _strlen(tls, src) + if n > l { + Xstrcpy(tls, dest, src) + } + return l +} + +func Xstrxfrm(tls *TLS, dest uintptr, src uintptr, n Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v n=%v, (%v:)", tls, dest, src, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__strxfrm_l(tls, dest, src, n, (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale) +} + +// C documentation +// +// /* collate only by code points */ +func Xstrxfrm_l(tls *TLS, dest uintptr, src uintptr, n Tsize_t, loc Tlocale_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v n=%v loc=%v, (%v:)", tls, dest, src, n, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__strxfrm_l(tls, dest, src, n, loc) +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +var _current_domain uintptr + +func X__gettextdomain(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 uintptr + _ = v1 + if _current_domain != 0 { + v1 = _current_domain + } else { + v1 = __ccgo_ts + 463 + } + return v1 +} + +func Xtextdomain(tls *TLS, domainname uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v domainname=%v, (%v:)", tls, domainname, origin(2)) + defer func() { trc("-> %v", r) }() + } + var domlen Tsize_t + _ = domlen + if !(domainname != 0) { + return X__gettextdomain(tls) + } + domlen = _strlen(tls, domainname) + if domlen > uint64(NAME_MAX) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(0) + } + if !(_current_domain != 0) { + _current_domain = Xmalloc(tls, Uint64FromInt32(Int32FromInt32(NAME_MAX)+Int32FromInt32(1))) + if !(_current_domain != 0) { + return uintptr(0) + } + } + Xmemcpy(tls, _current_domain, domainname, domlen+uint64(1)) + return _current_domain +} + +func Xgettext(tls *TLS, msgid uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v msgid=%v, (%v:)", tls, msgid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xdgettext(tls, uintptr(0), msgid) +} + +func Xngettext(tls *TLS, msgid1 uintptr, msgid2 uintptr, n uint64) (r uintptr) { + if __ccgo_strace { + trc("tls=%v msgid1=%v msgid2=%v n=%v, (%v:)", tls, msgid1, msgid2, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xdngettext(tls, uintptr(0), msgid1, msgid2, n) +} + +func X__uselocale(tls *TLS, new1 Tlocale_t) (r Tlocale_t) { + if __ccgo_strace { + trc("tls=%v new1=%v, (%v:)", tls, new1, origin(2)) + defer func() { trc("-> %v", r) }() + } + var global, old, v1 Tlocale_t + var self Tpthread_t + _, _, _, _ = global, old, self, v1 + self = uintptr(___get_tp(tls)) + old = (*t__pthread)(unsafe.Pointer(self)).Flocale + global = uintptr(unsafe.Pointer(&X__libc)) + 56 + if new1 != 0 { + if new1 == uintptr(-Int32FromInt32(1)) { + v1 = global + } else { + v1 = new1 + } + (*t__pthread)(unsafe.Pointer(self)).Flocale = v1 + } + if old == global { + v1 = uintptr(-Int32FromInt32(1)) + } else { + v1 = old + } + return v1 +} + +func Xuselocale(tls *TLS, new1 Tlocale_t) (r Tlocale_t) { + if __ccgo_strace { + trc("tls=%v new1=%v, (%v:)", tls, new1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__uselocale(tls, new1) +} + +// C documentation +// +// /* FIXME: stub */ +func X__wcscoll_l(tls *TLS, l uintptr, r uintptr, locale Tlocale_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v locale=%v, (%v:)", tls, l, r, locale, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return Xwcscmp(tls, l, r) +} + +func Xwcscoll(tls *TLS, l uintptr, r uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v, (%v:)", tls, l, r, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return X__wcscoll_l(tls, l, r, (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale) +} + +// C documentation +// +// /* FIXME: stub */ +func Xwcscoll_l(tls *TLS, l uintptr, r uintptr, locale Tlocale_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v locale=%v, (%v:)", tls, l, r, locale, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return X__wcscoll_l(tls, l, r, locale) +} + +// C documentation +// +// /* collate only by code points */ +func X__wcsxfrm_l(tls *TLS, dest uintptr, src uintptr, n Tsize_t, loc Tlocale_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v n=%v loc=%v, (%v:)", tls, dest, src, n, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l Tsize_t + _ = l + l = Xwcslen(tls, src) + if l < n { + Xwmemcpy(tls, dest, src, l+uint64(1)) + } else { + if n != 0 { + Xwmemcpy(tls, dest, src, n-uint64(1)) + **(**Twchar_t)(__ccgo_up(dest + uintptr(n-uint64(1))*4)) = 0 + } + } + return l +} + +func Xwcsxfrm(tls *TLS, dest uintptr, src uintptr, n Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v n=%v, (%v:)", tls, dest, src, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__wcsxfrm_l(tls, dest, src, n, (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale) +} + +// C documentation +// +// /* collate only by code points */ +func Xwcsxfrm_l(tls *TLS, dest uintptr, src uintptr, n Tsize_t, loc Tlocale_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v n=%v loc=%v, (%v:)", tls, dest, src, n, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__wcsxfrm_l(tls, dest, src, n, loc) +} + +func Xreallocarray(tls *TLS, ptr uintptr, m Tsize_t, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v ptr=%v m=%v n=%v, (%v:)", tls, ptr, m, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + if n != 0 && m > Uint64FromInt32(-Int32FromInt32(1))/n { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOMEM) + return uintptr(0) + } + return Xrealloc(tls, ptr, m*n) +} + +const LDBL_EPSILON2 = 0 +const LDBL_MAX2 = 0 +const LDBL_MIN2 = 0 + +var _C1 = float64(0.0416666666666666) /* 0x3FA55555, 0x5555554C */ +var _C2 = -Float64FromFloat64(0.001388888888887411) /* 0xBF56C16C, 0x16C15177 */ +var _C3 = float64(2.480158728947673e-05) /* 0x3EFA01A0, 0x19CB1590 */ +var _C4 = -Float64FromFloat64(2.7557314351390663e-07) /* 0xBE927E4F, 0x809C52AD */ +var _C5 = float64(2.087572321298175e-09) /* 0x3E21EE9E, 0xBDB4B1C4 */ +var _C6 = -Float64FromFloat64(1.1359647557788195e-11) /* 0xBDA8FAE9, 0xBE8838D4 */ + +func X__cos(tls *TLS, x float64, y float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var hz, r, w, z Tdouble_t + _, _, _, _ = hz, r, w, z + z = Tdouble_t(x * x) + w = Tdouble_t(z * z) + r = Tdouble_t(z*(_C1+float64(z*(_C2+float64(z*_C3))))) + Tdouble_t(Tdouble_t(w*w)*(_C4+float64(z*(_C5+float64(z*_C6))))) + hz = Tdouble_t(float64(0.5) * z) + w = float64(1) - hz + return w + (Float64FromFloat64(1) - w - hz + (Tdouble_t(z*r) - Tdouble_t(x*y))) +} + +// C documentation +// +// /* |cos(x) - c(x)| < 2**-34.1 (~[-5.37e-11, 5.295e-11]). */ + +var _C0 = -Float64FromFloat64(0.499999997251031) /* -0.499999997251031003120 */ +var _C11 = float64(0.04166662332373906) /* 0.0416666233237390631894 */ +var _C21 = -Float64FromFloat64(0.001388676377460993) /* -0.00138867637746099294692 */ +var _C31 = float64(2.439044879627741e-05) /* 0.0000243904487962774090654 */ + +func X__cosdf(tls *TLS, x float64) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, w, z Tdouble_t + _, _, _ = r, w, z + /* Try to optimize for parallel evaluation as in __tandf.c. */ + z = Tdouble_t(x * x) + w = Tdouble_t(z * z) + r = _C21 + float64(z*_C31) + return float32(float64(1) + float64(z*_C0) + float64(w*_C11) + float64(Tdouble_t(w*z)*r)) +} + +// C documentation +// +// /* k is such that k*ln2 has minimal relative error and x - kln2 > log(DBL_MIN) */ +var _k2 = int32(2043) +var _kln22 = float64(1416.0996898839683) + +// C documentation +// +// /* exp(x)/2 for x >= log(DBL_MAX), slightly better than 0.5*exp(x/2)*exp(x/2) */ +func X__expo2(tls *TLS, x float64, sign float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v sign=%v, (%v:)", tls, x, sign, origin(2)) + defer func() { trc("-> %v", r) }() + } + var scale float64 + var v1 Tuint64_t + _, _ = scale, v1 + /* note that k is odd and scale*scale overflows */ + v1 = uint64(Uint32FromInt32(Int32FromInt32(0x3ff)+_k2/Int32FromInt32(2))< log(FLT_MIN) */ +var _k3 = int32(235) +var _kln23 = Float32FromFloat32(162.88958740234375) + +// C documentation +// +// /* expf(x)/2 for x >= log(FLT_MAX), slightly better than 0.5f*expf(x/2)*expf(x/2) */ +func X__expo2f(tls *TLS, x float32, sign float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v sign=%v, (%v:)", tls, x, sign, origin(2)) + defer func() { trc("-> %v", r) }() + } + var scale float32 + var v1 Tuint32_t + _, _ = scale, v1 + /* note that k is odd and scale*scale overflows */ + v1 = Uint32FromInt32(Int32FromInt32(0x7f)+_k3/Int32FromInt32(2)) << int32(23) + scale = *(*float32)(unsafe.Pointer(&v1)) + /* exp(x - k ln2) * 2**(k-1) */ + /* in directed rounding correct sign before rounding or overflow is important */ + return float32(float32(Xexpf(tls, x-_kln23)*float32(sign*scale)) * scale) +} + +func X__fpclassify(tls *TLS, x float64) (r int32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e, v1 int32 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _ = e, v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + e = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + if !(e != 0) { + if *(*Tuint64_t)(unsafe.Pointer(bp))< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e, v1 int32 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _ = e, v1 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + e = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(23) & uint32(0xff)) + if !(e != 0) { + if *(*Tuint32_t)(unsafe.Pointer(bp))< %v", r) }() + } + return X__fpclassify(tls, x) +} + +const pio2_hi = 0 +const pio2_lo = 0 + +func X__math_divzero(tls *TLS, sign Tuint32_t) (r float64) { + if __ccgo_strace { + trc("tls=%v sign=%v, (%v:)", tls, sign, origin(2)) + defer func() { trc("-> %v", r) }() + } + var y, v1, v2 float64 + _, _, _ = y, v1, v2 + if sign != 0 { + v1 = -Float64FromFloat64(1) + } else { + v1 = float64(1) + } + y = v1 + v2 = y + goto _3 +_3: + return v2 / float64(0) +} + +func X__math_divzerof(tls *TLS, sign Tuint32_t) (r float32) { + if __ccgo_strace { + trc("tls=%v sign=%v, (%v:)", tls, sign, origin(2)) + defer func() { trc("-> %v", r) }() + } + var y, v1, v2 float32 + _, _, _ = y, v1, v2 + if sign != 0 { + v1 = -Float32FromFloat32(1) + } else { + v1 = Float32FromFloat32(1) + } + y = v1 + v2 = y + goto _3 +_3: + return v2 / Float32FromFloat32(0) +} + +func X__math_invalid(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return (x - x) / (x - x) +} + +func X__math_invalidf(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return (x - x) / (x - x) +} + +func X__math_oflow(tls *TLS, sign Tuint32_t) (r float64) { + if __ccgo_strace { + trc("tls=%v sign=%v, (%v:)", tls, sign, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__math_xflow(tls, sign, float64(3.105036184601418e+231)) +} + +func X__math_oflowf(tls *TLS, sign Tuint32_t) (r float32) { + if __ccgo_strace { + trc("tls=%v sign=%v, (%v:)", tls, sign, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__math_xflowf(tls, sign, Float32FromFloat32(1.5845632502852868e+29)) +} + +func X__math_uflow(tls *TLS, sign Tuint32_t) (r float64) { + if __ccgo_strace { + trc("tls=%v sign=%v, (%v:)", tls, sign, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__math_xflow(tls, sign, float64(1.2882297539194267e-231)) +} + +func X__math_uflowf(tls *TLS, sign Tuint32_t) (r float32) { + if __ccgo_strace { + trc("tls=%v sign=%v, (%v:)", tls, sign, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__math_xflowf(tls, sign, Float32FromFloat32(2.524354896707238e-29)) +} + +func X__math_xflow(tls *TLS, sign Tuint32_t, y2 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v sign=%v y2=%v, (%v:)", tls, sign, y2, origin(2)) + defer func() { trc("-> %v", r) }() + } + var y, y1, v1, v2, v4 float64 + _, _, _, _, _ = y, y1, v1, v2, v4 + if sign != 0 { + v1 = -y2 + } else { + v1 = y2 + } + y1 = v1 + v2 = y1 + goto _3 +_3: + y = float64(v2 * y2) + v4 = y + goto _5 +_5: + return v4 +} + +func X__math_xflowf(tls *TLS, sign Tuint32_t, y2 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v sign=%v y2=%v, (%v:)", tls, sign, y2, origin(2)) + defer func() { trc("-> %v", r) }() + } + var y, y1, v1, v2, v4 float32 + _, _, _, _, _ = y, y1, v1, v2, v4 + if sign != 0 { + v1 = -y2 + } else { + v1 = y2 + } + y1 = v1 + v2 = y1 + goto _3 +_3: + y = float32(v2 * y2) + v4 = y + goto _5 +_5: + return v4 +} + +const DBL_EPSILON1 = 2.220446049250313e-16 +const EPS = 0 + +// C documentation +// +// /* +// * invpio2: 53 bits of 2/pi +// * pio2_1: first 33 bit of pi/2 +// * pio2_1t: pi/2 - pio2_1 +// * pio2_2: second 33 bit of pi/2 +// * pio2_2t: pi/2 - (pio2_1+pio2_2) +// * pio2_3: third 33 bit of pi/2 +// * pio2_3t: pi/2 - (pio2_1+pio2_2+pio2_3) +// */ + +var _toint = Float64FromFloat64(1.5) / Float64FromFloat64(2.220446049250313e-16) +var _pio4 = float64(0.7853981633974483) +var _invpio2 = float64(0.6366197723675814) /* 0x3FE45F30, 0x6DC9C883 */ +var _pio2_1 = float64(1.5707963267341256) /* 0x3FF921FB, 0x54400000 */ +var _pio2_1t = float64(6.077100506506192e-11) /* 0x3DD0B461, 0x1A626331 */ +var _pio2_2 = float64(6.077100506303966e-11) /* 0x3DD0B461, 0x1A600000 */ +var _pio2_2t = float64(2.0222662487959506e-21) /* 0x3BA3198A, 0x2E037073 */ +var _pio2_3 = float64(2.0222662487111665e-21) /* 0x3BA3198A, 0x2E000000 */ +var _pio2_3t = float64(8.4784276603689e-32) /* 0x397B839A, 0x252049C1 */ + +// C documentation +// +// /* caller must handle the case when reduction is not needed: |x| ~<= pi/4 */ +func X__rem_pio2(tls *TLS, x float64, y uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + var ex, ey, i, n, sign int32 + var fn, r, t, w, z Tdouble_t + var ix Tuint32_t + var v2 float64 + var _ /* tx at bp+8 */ [3]float64 + var _ /* ty at bp+32 */ [2]float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _, _, _, _, _, _ = ex, ey, fn, i, ix, n, r, sign, t, w, z, v2 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + sign = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(63)) + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32) & uint64(0x7fffffff)) + if ix <= uint32(0x400f6a7a) { /* |x| ~<= 5pi/4 */ + if ix&uint32(0xfffff) == uint32(0x921fb) { /* |x| ~= pi/2 or 2pi/2 */ + goto medium + } /* cancellation -- use medium case */ + if ix <= uint32(0x4002d97c) { /* |x| ~<= 3pi/4 */ + if !(sign != 0) { + z = x - _pio2_1 /* one round good to 85 bits */ + **(**float64)(__ccgo_up(y)) = z - _pio2_1t + **(**float64)(__ccgo_up(y + 1*8)) = z - **(**float64)(__ccgo_up(y)) - _pio2_1t + return int32(1) + } else { + z = x + _pio2_1 + **(**float64)(__ccgo_up(y)) = z + _pio2_1t + **(**float64)(__ccgo_up(y + 1*8)) = z - **(**float64)(__ccgo_up(y)) + _pio2_1t + return -int32(1) + } + } else { + if !(sign != 0) { + z = x - float64(Float64FromInt32(2)*_pio2_1) + **(**float64)(__ccgo_up(y)) = z - Tdouble_t(Float64FromInt32(2)*_pio2_1t) + **(**float64)(__ccgo_up(y + 1*8)) = z - **(**float64)(__ccgo_up(y)) - Tdouble_t(Float64FromInt32(2)*_pio2_1t) + return int32(2) + } else { + z = x + float64(Float64FromInt32(2)*_pio2_1) + **(**float64)(__ccgo_up(y)) = z + Tdouble_t(Float64FromInt32(2)*_pio2_1t) + **(**float64)(__ccgo_up(y + 1*8)) = z - **(**float64)(__ccgo_up(y)) + Tdouble_t(Float64FromInt32(2)*_pio2_1t) + return -int32(2) + } + } + } + if ix <= uint32(0x401c463b) { /* |x| ~<= 9pi/4 */ + if ix <= uint32(0x4015fdbc) { /* |x| ~<= 7pi/4 */ + if ix == uint32(0x4012d97c) { /* |x| ~= 3pi/2 */ + goto medium + } + if !(sign != 0) { + z = x - float64(Float64FromInt32(3)*_pio2_1) + **(**float64)(__ccgo_up(y)) = z - Tdouble_t(Float64FromInt32(3)*_pio2_1t) + **(**float64)(__ccgo_up(y + 1*8)) = z - **(**float64)(__ccgo_up(y)) - Tdouble_t(Float64FromInt32(3)*_pio2_1t) + return int32(3) + } else { + z = x + float64(Float64FromInt32(3)*_pio2_1) + **(**float64)(__ccgo_up(y)) = z + Tdouble_t(Float64FromInt32(3)*_pio2_1t) + **(**float64)(__ccgo_up(y + 1*8)) = z - **(**float64)(__ccgo_up(y)) + Tdouble_t(Float64FromInt32(3)*_pio2_1t) + return -int32(3) + } + } else { + if ix == uint32(0x401921fb) { /* |x| ~= 4pi/2 */ + goto medium + } + if !(sign != 0) { + z = x - float64(Float64FromInt32(4)*_pio2_1) + **(**float64)(__ccgo_up(y)) = z - Tdouble_t(Float64FromInt32(4)*_pio2_1t) + **(**float64)(__ccgo_up(y + 1*8)) = z - **(**float64)(__ccgo_up(y)) - Tdouble_t(Float64FromInt32(4)*_pio2_1t) + return int32(4) + } else { + z = x + float64(Float64FromInt32(4)*_pio2_1) + **(**float64)(__ccgo_up(y)) = z + Tdouble_t(Float64FromInt32(4)*_pio2_1t) + **(**float64)(__ccgo_up(y + 1*8)) = z - **(**float64)(__ccgo_up(y)) + Tdouble_t(Float64FromInt32(4)*_pio2_1t) + return -int32(4) + } + } + } + if !(ix < uint32(0x413921fb)) { + goto _1 + } /* |x| ~< 2^20*(pi/2), medium size */ + goto medium +medium: + ; + /* rint(x/(pi/2)) */ + fn = Tdouble_t(x*_invpio2) + _toint - _toint + n = int32(fn) + r = x - float64(fn*_pio2_1) + w = Tdouble_t(fn * _pio2_1t) /* 1st round, good to 85 bits */ + /* Matters with directed rounding. */ + if r-w < -_pio4 { + n = n - 1 + fn = fn - 1 + r = x - float64(fn*_pio2_1) + w = Tdouble_t(fn * _pio2_1t) + } else { + if r-w > _pio4 { + n = n + 1 + fn = fn + 1 + r = x - float64(fn*_pio2_1) + w = Tdouble_t(fn * _pio2_1t) + } + } + **(**float64)(__ccgo_up(y)) = r - w + *(*float64)(unsafe.Pointer(bp)) = **(**float64)(__ccgo_up(y)) + ey = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + ex = Int32FromUint32(ix >> int32(20)) + if ex-ey > int32(16) { /* 2nd round, good to 118 bits */ + t = r + w = Tdouble_t(fn * _pio2_2) + r = t - w + w = Tdouble_t(fn*_pio2_2t) - (t - r - w) + **(**float64)(__ccgo_up(y)) = r - w + *(*float64)(unsafe.Pointer(bp)) = **(**float64)(__ccgo_up(y)) + ey = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + if ex-ey > int32(49) { /* 3rd round, good to 151 bits, covers all cases */ + t = r + w = Tdouble_t(fn * _pio2_3) + r = t - w + w = Tdouble_t(fn*_pio2_3t) - (t - r - w) + **(**float64)(__ccgo_up(y)) = r - w + } + } + **(**float64)(__ccgo_up(y + 1*8)) = r - **(**float64)(__ccgo_up(y)) - w + return n +_1: + ; + /* + * all other (large) arguments + */ + if ix >= uint32(0x7ff00000) { /* x is inf or NaN */ + v2 = x - x + **(**float64)(__ccgo_up(y + 1*8)) = v2 + **(**float64)(__ccgo_up(y)) = v2 + return 0 + } + /* set z = scalbn(|x|,-ilogb(x)+23) */ + *(*float64)(unsafe.Pointer(bp)) = x + *(*Tuint64_t)(unsafe.Pointer(bp)) &= Uint64FromInt32(-Int32FromInt32(1)) >> Int32FromInt32(12) + *(*Tuint64_t)(unsafe.Pointer(bp)) |= Uint64FromInt32(Int32FromInt32(0x3ff)+Int32FromInt32(23)) << Int32FromInt32(52) + z = *(*float64)(unsafe.Pointer(bp)) + i = 0 + for { + if !(i < int32(2)) { + break + } + (**(**[3]float64)(__ccgo_up(bp + 8)))[i] = float64(int32(z)) + z = Tdouble_t((z - (**(**[3]float64)(__ccgo_up(bp + 8)))[i]) * float64(1.6777216e+07)) + goto _3 + _3: + ; + i = i + 1 + } + (**(**[3]float64)(__ccgo_up(bp + 8)))[i] = z + /* skip zero terms, first term is non-zero */ + for (**(**[3]float64)(__ccgo_up(bp + 8)))[i] == float64(0) { + i = i - 1 + } + n = X__rem_pio2_large(tls, bp+8, bp+32, Int32FromUint32(ix>>Int32FromInt32(20))-(Int32FromInt32(0x3ff)+Int32FromInt32(23)), i+int32(1), int32(1)) + if sign != 0 { + **(**float64)(__ccgo_up(y)) = -(**(**[2]float64)(__ccgo_up(bp + 32)))[0] + **(**float64)(__ccgo_up(y + 1*8)) = -(**(**[2]float64)(__ccgo_up(bp + 32)))[int32(1)] + return -n + } + **(**float64)(__ccgo_up(y)) = (**(**[2]float64)(__ccgo_up(bp + 32)))[0] + **(**float64)(__ccgo_up(y + 1*8)) = (**(**[2]float64)(__ccgo_up(bp + 32)))[int32(1)] + return n +} + +const DBL_EPSILON2 = 0 + +var _init_jk = [4]int32{ + 0: int32(3), + 1: int32(4), + 2: int32(4), + 3: int32(6), +} /* initial value for jk */ + +// C documentation +// +// /* +// * Table of constants for 2/pi, 396 Hex digits (476 decimal) of 2/pi +// * +// * integer array, contains the (24*i)-th to (24*i+23)-th +// * bit of 2/pi after binary point. The corresponding +// * floating value is +// * +// * ipio2[i] * 2^(-24(i+1)). +// * +// * NB: This table must have at least (e0-3)/24 + jk terms. +// * For quad precision (e0 <= 16360, jk = 6), this is 686. +// */ +var _ipio2 = [66]Tint32_t{ + 0: int32(0xA2F983), + 1: int32(0x6E4E44), + 2: int32(0x1529FC), + 3: int32(0x2757D1), + 4: int32(0xF534DD), + 5: int32(0xC0DB62), + 6: int32(0x95993C), + 7: int32(0x439041), + 8: int32(0xFE5163), + 9: int32(0xABDEBB), + 10: int32(0xC561B7), + 11: int32(0x246E3A), + 12: int32(0x424DD2), + 13: int32(0xE00649), + 14: int32(0x2EEA09), + 15: int32(0xD1921C), + 16: int32(0xFE1DEB), + 17: int32(0x1CB129), + 18: int32(0xA73EE8), + 19: int32(0x8235F5), + 20: int32(0x2EBB44), + 21: int32(0x84E99C), + 22: int32(0x7026B4), + 23: int32(0x5F7E41), + 24: int32(0x3991D6), + 25: int32(0x398353), + 26: int32(0x39F49C), + 27: int32(0x845F8B), + 28: int32(0xBDF928), + 29: int32(0x3B1FF8), + 30: int32(0x97FFDE), + 31: int32(0x05980F), + 32: int32(0xEF2F11), + 33: int32(0x8B5A0A), + 34: int32(0x6D1F6D), + 35: int32(0x367ECF), + 36: int32(0x27CB09), + 37: int32(0xB74F46), + 38: int32(0x3F669E), + 39: int32(0x5FEA2D), + 40: int32(0x7527BA), + 41: int32(0xC7EBE5), + 42: int32(0xF17B3D), + 43: int32(0x0739F7), + 44: int32(0x8A5292), + 45: int32(0xEA6BFB), + 46: int32(0x5FB11F), + 47: int32(0x8D5D08), + 48: int32(0x560330), + 49: int32(0x46FC7B), + 50: int32(0x6BABF0), + 51: int32(0xCFBC20), + 52: int32(0x9AF436), + 53: int32(0x1DA9E3), + 54: int32(0x91615E), + 55: int32(0xE61B08), + 56: int32(0x659985), + 57: int32(0x5F14A0), + 58: int32(0x68408D), + 59: int32(0xFFD880), + 60: int32(0x4D7327), + 61: int32(0x310606), + 62: int32(0x1556CA), + 63: int32(0x73A8C9), + 64: int32(0x60E27B), + 65: int32(0xC08C6B), +} + +var _PIo2 = [8]float64{ + 0: float64(1.570796251296997), + 1: float64(7.549789415861596e-08), + 2: float64(5.390302529957765e-15), + 3: float64(3.282003415807913e-22), + 4: float64(1.270655753080676e-29), + 5: float64(1.2293330898111133e-36), + 6: float64(2.7337005381646456e-44), + 7: float64(2.1674168387780482e-51), +} + +func X__rem_pio2_large(tls *TLS, x uintptr, y uintptr, e0 int32, nx int32, prec int32) (r int32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v e0=%v nx=%v prec=%v, (%v:)", tls, x, y, e0, nx, prec, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(240) + defer tls.Free(240) + var carry, i, ih, j, jk, jp, jv, jx, jz, k, m, n, q0 Tint32_t + var f, q [20]float64 + var fw, z, v2 float64 + var _ /* fq at bp+80 */ [20]float64 + var _ /* iq at bp+0 */ [20]Tint32_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = carry, f, fw, i, ih, j, jk, jp, jv, jx, jz, k, m, n, q, q0, z, v2 + /* initialize jk*/ + jk = _init_jk[prec] + jp = jk + /* determine jx,jv,q0, note that 3>q0 */ + jx = nx - int32(1) + jv = (e0 - int32(3)) / int32(24) + if jv < 0 { + jv = 0 + } + q0 = e0 - int32(24)*(jv+int32(1)) + /* set up f[0] to f[jx+jk] where f[jx+jk] = ipio2[jv+jk] */ + j = jv - jx + m = jx + jk + i = 0 + for { + if !(i <= m) { + break + } + if j < 0 { + v2 = float64(0) + } else { + v2 = float64(_ipio2[j]) + } + f[i] = v2 + goto _1 + _1: + ; + i = i + 1 + j = j + 1 + } + /* compute q[0],q[1],...q[jk] */ + i = 0 + for { + if !(i <= jk) { + break + } + j = 0 + fw = Float64FromFloat64(0) + for { + if !(j <= jx) { + break + } + fw = fw + float64(**(**float64)(__ccgo_up(x + uintptr(j)*8))*f[jx+i-j]) + goto _4 + _4: + ; + j = j + 1 + } + q[i] = fw + goto _3 + _3: + ; + i = i + 1 + } + jz = jk + goto recompute +recompute: + ; + /* distill q[] into iq[] reversingly */ + i = 0 + j = jz + z = q[jz] + for { + if !(j > 0) { + break + } + fw = float64(int32(float64(Float64FromFloat64(5.960464477539063e-08) * z))) + (**(**[20]Tint32_t)(__ccgo_up(bp)))[i] = int32(z - float64(Float64FromFloat64(1.6777216e+07)*fw)) + z = q[j-int32(1)] + fw + goto _5 + _5: + ; + i = i + 1 + j = j - 1 + } + /* compute n */ + z = Xscalbn(tls, z, q0) /* actual value of z */ + z = z - float64(float64(8)*Xfloor(tls, float64(z*float64(0.125)))) /* trim off integer >= 8 */ + n = int32(z) + z = z - float64(n) + ih = 0 + if q0 > 0 { /* need iq[jz-1] to determine n */ + i = (**(**[20]Tint32_t)(__ccgo_up(bp)))[jz-int32(1)] >> (int32(24) - q0) + n = n + i + **(**Tint32_t)(__ccgo_up(bp + uintptr(jz-int32(1))*4)) -= i << (int32(24) - q0) + ih = (**(**[20]Tint32_t)(__ccgo_up(bp)))[jz-int32(1)] >> (int32(23) - q0) + } else { + if q0 == 0 { + ih = (**(**[20]Tint32_t)(__ccgo_up(bp)))[jz-int32(1)] >> int32(23) + } else { + if z >= float64(0.5) { + ih = int32(2) + } + } + } + if ih > 0 { /* q > 0.5 */ + n = n + int32(1) + carry = 0 + i = 0 + for { + if !(i < jz) { + break + } /* compute 1-q */ + j = (**(**[20]Tint32_t)(__ccgo_up(bp)))[i] + if carry == 0 { + if j != 0 { + carry = int32(1) + (**(**[20]Tint32_t)(__ccgo_up(bp)))[i] = int32(0x1000000) - j + } + } else { + (**(**[20]Tint32_t)(__ccgo_up(bp)))[i] = int32(0xffffff) - j + } + goto _6 + _6: + ; + i = i + 1 + } + if q0 > 0 { /* rare case: chance is 1 in 12 */ + switch q0 { + case int32(1): + **(**Tint32_t)(__ccgo_up(bp + uintptr(jz-int32(1))*4)) &= int32(0x7fffff) + case int32(2): + **(**Tint32_t)(__ccgo_up(bp + uintptr(jz-int32(1))*4)) &= int32(0x3fffff) + break + } + } + if ih == int32(2) { + z = float64(1) - z + if carry != 0 { + z = z - Xscalbn(tls, float64(1), q0) + } + } + } + /* check if recomputation is needed */ + if z == float64(0) { + j = 0 + i = jz - int32(1) + for { + if !(i >= jk) { + break + } + j = j | (**(**[20]Tint32_t)(__ccgo_up(bp)))[i] + goto _7 + _7: + ; + i = i - 1 + } + if j == 0 { /* need recomputation */ + k = int32(1) + for { + if !((**(**[20]Tint32_t)(__ccgo_up(bp)))[jk-k] == 0) { + break + } + goto _8 + _8: + ; + k = k + 1 + } /* k = no. of terms needed */ + i = jz + int32(1) + for { + if !(i <= jz+k) { + break + } /* add q[jz+1] to q[jz+k] */ + f[jx+i] = float64(_ipio2[jv+i]) + j = 0 + fw = Float64FromFloat64(0) + for { + if !(j <= jx) { + break + } + fw = fw + float64(**(**float64)(__ccgo_up(x + uintptr(j)*8))*f[jx+i-j]) + goto _10 + _10: + ; + j = j + 1 + } + q[i] = fw + goto _9 + _9: + ; + i = i + 1 + } + jz = jz + k + goto recompute + } + } + /* chop off zero terms */ + if z == float64(0) { + jz = jz - int32(1) + q0 = q0 - int32(24) + for (**(**[20]Tint32_t)(__ccgo_up(bp)))[jz] == 0 { + jz = jz - 1 + q0 = q0 - int32(24) + } + } else { /* break z into 24-bit if necessary */ + z = Xscalbn(tls, z, -q0) + if z >= float64(1.6777216e+07) { + fw = float64(int32(float64(Float64FromFloat64(5.960464477539063e-08) * z))) + (**(**[20]Tint32_t)(__ccgo_up(bp)))[jz] = int32(z - float64(Float64FromFloat64(1.6777216e+07)*fw)) + jz = jz + int32(1) + q0 = q0 + int32(24) + (**(**[20]Tint32_t)(__ccgo_up(bp)))[jz] = int32(fw) + } else { + (**(**[20]Tint32_t)(__ccgo_up(bp)))[jz] = int32(z) + } + } + /* convert integer "bit" chunk to floating-point value */ + fw = Xscalbn(tls, float64(1), q0) + i = jz + for { + if !(i >= 0) { + break + } + q[i] = float64(fw * float64((**(**[20]Tint32_t)(__ccgo_up(bp)))[i])) + fw = fw * float64(5.960464477539063e-08) + goto _11 + _11: + ; + i = i - 1 + } + /* compute PIo2[0,...,jp]*q[jz,...,0] */ + i = jz + for { + if !(i >= 0) { + break + } + fw = float64(0) + k = Int32FromInt32(0) + for { + if !(k <= jp && k <= jz-i) { + break + } + fw = fw + float64(_PIo2[k]*q[i+k]) + goto _13 + _13: + ; + k = k + 1 + } + (**(**[20]float64)(__ccgo_up(bp + 80)))[jz-i] = fw + goto _12 + _12: + ; + i = i - 1 + } + /* compress fq[] into y[] */ + switch prec { + case 0: + goto _14 + case int32(2): + goto _15 + case int32(1): + goto _16 + case int32(3): + goto _17 + } + goto _18 +_14: + ; + fw = float64(0) + i = jz + for { + if !(i >= 0) { + break + } + fw = fw + (**(**[20]float64)(__ccgo_up(bp + 80)))[i] + goto _19 + _19: + ; + i = i - 1 + } + if ih == 0 { + v2 = fw + } else { + v2 = -fw + } + **(**float64)(__ccgo_up(y)) = v2 + goto _18 +_16: + ; +_15: + ; + fw = float64(0) + i = jz + for { + if !(i >= 0) { + break + } + fw = fw + (**(**[20]float64)(__ccgo_up(bp + 80)))[i] + goto _21 + _21: + ; + i = i - 1 + } + // TODO: drop excess precision here once double_t is used + fw = fw + if ih == 0 { + v2 = fw + } else { + v2 = -fw + } + **(**float64)(__ccgo_up(y)) = v2 + fw = (**(**[20]float64)(__ccgo_up(bp + 80)))[0] - fw + i = int32(1) + for { + if !(i <= jz) { + break + } + fw = fw + (**(**[20]float64)(__ccgo_up(bp + 80)))[i] + goto _23 + _23: + ; + i = i + 1 + } + if ih == 0 { + v2 = fw + } else { + v2 = -fw + } + **(**float64)(__ccgo_up(y + 1*8)) = v2 + goto _18 +_17: + ; /* painful */ + i = jz +_27: + ; + if !(i > 0) { + goto _25 + } + fw = (**(**[20]float64)(__ccgo_up(bp + 80)))[i-int32(1)] + (**(**[20]float64)(__ccgo_up(bp + 80)))[i] + **(**float64)(__ccgo_up(bp + 80 + uintptr(i)*8)) += (**(**[20]float64)(__ccgo_up(bp + 80)))[i-int32(1)] - fw + (**(**[20]float64)(__ccgo_up(bp + 80)))[i-int32(1)] = fw + goto _26 +_26: + ; + i = i - 1 + goto _27 + goto _25 +_25: + ; + i = jz + for { + if !(i > int32(1)) { + break + } + fw = (**(**[20]float64)(__ccgo_up(bp + 80)))[i-int32(1)] + (**(**[20]float64)(__ccgo_up(bp + 80)))[i] + **(**float64)(__ccgo_up(bp + 80 + uintptr(i)*8)) += (**(**[20]float64)(__ccgo_up(bp + 80)))[i-int32(1)] - fw + (**(**[20]float64)(__ccgo_up(bp + 80)))[i-int32(1)] = fw + goto _28 + _28: + ; + i = i - 1 + } + fw = float64(0) + i = jz + for { + if !(i >= int32(2)) { + break + } + fw = fw + (**(**[20]float64)(__ccgo_up(bp + 80)))[i] + goto _29 + _29: + ; + i = i - 1 + } + if ih == 0 { + **(**float64)(__ccgo_up(y)) = (**(**[20]float64)(__ccgo_up(bp + 80)))[0] + **(**float64)(__ccgo_up(y + 1*8)) = (**(**[20]float64)(__ccgo_up(bp + 80)))[int32(1)] + **(**float64)(__ccgo_up(y + 2*8)) = fw + } else { + **(**float64)(__ccgo_up(y)) = -(**(**[20]float64)(__ccgo_up(bp + 80)))[0] + **(**float64)(__ccgo_up(y + 1*8)) = -(**(**[20]float64)(__ccgo_up(bp + 80)))[int32(1)] + **(**float64)(__ccgo_up(y + 2*8)) = -fw + } +_18: + ; + return n & int32(7) +} + +const DBL_EPSILON3 = 2.220446049250313e-16 + +// C documentation +// +// /* +// * invpio2: 53 bits of 2/pi +// * pio2_1: first 25 bits of pi/2 +// * pio2_1t: pi/2 - pio2_1 +// */ + +var _toint1 = Float64FromFloat64(1.5) / Float64FromFloat64(2.220446049250313e-16) +var _pio41 = float64(0.7853981852531433) +var _invpio21 = float64(0.6366197723675814) /* 0x3FE45F30, 0x6DC9C883 */ +var _pio2_11 = float64(1.5707963109016418) /* 0x3FF921FB, 0x50000000 */ +var _pio2_1t1 = float64(1.5893254773528196e-08) /* 0x3E5110b4, 0x611A6263 */ + +func X__rem_pio2f(tls *TLS, x float32, y uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var e0, n, sign int32 + var fn Tdouble_t + var ix Tuint32_t + var _ /* tx at bp+8 */ [1]float64 + var _ /* ty at bp+16 */ [1]float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _ = e0, fn, ix, n, sign + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + ix = *(*Tuint32_t)(unsafe.Pointer(bp)) & uint32(0x7fffffff) + /* 25+53 bit pi is good enough for medium size */ + if ix < uint32(0x4dc90fdb) { /* |x| ~< 2^28*(pi/2), medium size */ + /* Use a specialized rint() to get fn. */ + fn = Tdouble_t(float64(x)*_invpio21) + _toint1 - _toint1 + n = int32(fn) + **(**float64)(__ccgo_up(y)) = float64(x) - Tdouble_t(fn*_pio2_11) - Tdouble_t(fn*_pio2_1t1) + /* Matters with directed rounding. */ + if **(**float64)(__ccgo_up(y)) < -_pio41 { + n = n - 1 + fn = fn - 1 + **(**float64)(__ccgo_up(y)) = float64(x) - Tdouble_t(fn*_pio2_11) - Tdouble_t(fn*_pio2_1t1) + } else { + if **(**float64)(__ccgo_up(y)) > _pio41 { + n = n + 1 + fn = fn + 1 + **(**float64)(__ccgo_up(y)) = float64(x) - Tdouble_t(fn*_pio2_11) - Tdouble_t(fn*_pio2_1t1) + } + } + return n + } + if ix >= uint32(0x7f800000) { /* x is inf or NaN */ + **(**float64)(__ccgo_up(y)) = float64(x - x) + return 0 + } + /* scale x into [2^23, 2^24-1] */ + sign = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(31)) + e0 = Int32FromUint32(ix>>Int32FromInt32(23) - Uint32FromInt32(Int32FromInt32(0x7f)+Int32FromInt32(23))) /* e0 = ilogb(|x|)-23, positive */ + *(*Tuint32_t)(unsafe.Pointer(bp)) = ix - Uint32FromInt32(e0< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* y at bp+0 */ struct { + Fi [0]Tuint64_t + Fd float64 + } + *(*struct { + Fi [0]Tuint64_t + Fd float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Fd float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + return Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(63)) +} + +// C documentation +// +// // FIXME: macro in math.h +func X__signbitf(tls *TLS, x float32) (r int32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* y at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + return Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(31)) +} + +func X__signbitl(tls *TLS, x float64) (r int32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__signbit(tls, x) +} + +var _S1 = -Float64FromFloat64(0.16666666666666632) /* 0xBFC55555, 0x55555549 */ +var _S2 = float64(0.00833333333332249) /* 0x3F811111, 0x1110F8A6 */ +var _S3 = -Float64FromFloat64(0.0001984126982985795) /* 0xBF2A01A0, 0x19C161D5 */ +var _S4 = float64(2.7557313707070068e-06) /* 0x3EC71DE3, 0x57B1FE7D */ +var _S5 = -Float64FromFloat64(2.5050760253406863e-08) /* 0xBE5AE5E6, 0x8A2B9CEB */ +var _S6 = float64(1.58969099521155e-10) /* 0x3DE5D93A, 0x5ACFD57C */ + +func X__sin(tls *TLS, x float64, y float64, iy int32) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v iy=%v, (%v:)", tls, x, y, iy, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v, w, z Tdouble_t + _, _, _, _ = r, v, w, z + z = Tdouble_t(x * x) + w = Tdouble_t(z * z) + r = _S2 + float64(z*(_S3+float64(z*_S4))) + float64(Tdouble_t(z*w)*(_S5+float64(z*_S6))) + v = Tdouble_t(z * x) + if iy == 0 { + return x + float64(v*(_S1+float64(z*r))) + } else { + return x - (Tdouble_t(z*(float64(Float64FromFloat64(0.5)*y)-float64(v*r))) - y - Tdouble_t(v*_S1)) + } + return r1 +} + +// C documentation +// +// /* |sin(x)/x - s(x)| < 2**-37.5 (~[-4.89e-12, 4.824e-12]). */ + +var _S11 = -Float64FromFloat64(0.16666666641626524) /* -0.166666666416265235595 */ +var _S21 = float64(0.008333329385889463) /* 0.0083333293858894631756 */ +var _S31 = -Float64FromFloat64(0.00019839334836096632) /* -0.000198393348360966317347 */ +var _S41 = float64(2.718311493989822e-06) /* 0.0000027183114939898219064 */ + +func X__sindf(tls *TLS, x float64) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, s, w, z Tdouble_t + _, _, _, _ = r, s, w, z + /* Try to optimize for parallel evaluation as in __tandf.c. */ + z = Tdouble_t(x * x) + w = Tdouble_t(z * z) + r = _S31 + float64(z*_S41) + s = Tdouble_t(z * x) + return float32(x + float64(s*(_S11+float64(z*_S21))) + float64(Tdouble_t(s*w)*r)) +} + +var _T = [13]float64{ + 0: float64(0.3333333333333341), + 1: float64(0.13333333333320124), + 2: float64(0.05396825397622605), + 3: float64(0.021869488294859542), + 4: float64(0.0088632398235993), + 5: float64(0.0035920791075913124), + 6: float64(0.0014562094543252903), + 7: float64(0.0005880412408202641), + 8: float64(0.0002464631348184699), + 9: float64(7.817944429395571e-05), + 10: float64(7.140724913826082e-05), + 11: -Float64FromFloat64(1.8558637485527546e-05), + 12: float64(2.590730518636337e-05), +} +var _pio42 = float64(0.7853981633974483) /* 3FE921FB, 54442D18 */ +var _pio4lo = float64(3.061616997868383e-17) /* 3C81A626, 33145C07 */ + +func X__tan(tls *TLS, x float64, y float64, odd int32) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v odd=%v, (%v:)", tls, x, y, odd, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var a, r, s, v, w, z, v1 Tdouble_t + var a0, w0 float64 + var big, sign int32 + var hx Tuint32_t + var v2 Tuint64_t + _, _, _, _, _, _, _, _, _, _, _, _, _ = a, a0, big, hx, r, s, sign, v, w, w0, z, v1, v2 + hx = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + big = BoolInt32(hx&uint32(0x7fffffff) >= uint32(0x3FE59428)) /* |x| >= 0.6744 */ + if big != 0 { + sign = Int32FromUint32(hx >> int32(31)) + if sign != 0 { + x = -x + y = -y + } + x = _pio42 - x + (_pio4lo - y) + y = float64(0) + } + z = Tdouble_t(x * x) + w = Tdouble_t(z * z) + /* + * Break x^5*(T[1]+x^2*T[2]+...) into + * x^5(T[1]+x^4*T[3]+...+x^20*T[11]) + + * x^5(x^2*(T[2]+x^4*T[4]+...+x^22*[T12])) + */ + r = _T[int32(1)] + float64(w*(_T[int32(3)]+float64(w*(_T[int32(5)]+float64(w*(_T[int32(7)]+float64(w*(_T[int32(9)]+float64(w*_T[int32(11)]))))))))) + v = Tdouble_t(z * (_T[int32(2)] + float64(w*(_T[int32(4)]+float64(w*(_T[int32(6)]+float64(w*(_T[int32(8)]+float64(w*(_T[int32(10)]+float64(w*_T[int32(12)]))))))))))) + s = Tdouble_t(z * x) + r = y + float64(z*(Tdouble_t(s*(r+v))+y)) + float64(s*_T[0]) + w = x + r + if big != 0 { + s = float64(int32(1) - int32(2)*odd) + v = s - Tdouble_t(float64(2)*(x+(r-Tdouble_t(w*w)/(w+s)))) + if sign != 0 { + v1 = -v + } else { + v1 = v + } + return v1 + } + if !(odd != 0) { + return w + } + /* -1.0/(x+r) has up to 2ulp error, so compute it accurately */ + w0 = w + v2 = *(*Tuint64_t)(unsafe.Pointer(&w0))>>Int32FromInt32(32)<>Int32FromInt32(32)< %v", r1) }() + } + var r, s, t, u, w, z Tdouble_t + var v1 float64 + _, _, _, _, _, _, _ = r, s, t, u, w, z, v1 + z = Tdouble_t(x * x) + /* + * Split up the polynomial into small independent terms to give + * opportunities for parallel evaluation. The chosen splitting is + * micro-optimized for Athlons (XP, X64). It costs 2 multiplications + * relative to Horner's method on sequential machines. + * + * We add the small terms from lowest degree up for efficiency on + * non-sequential machines (the lowest degree terms tend to be ready + * earlier). Apart from this, we don't care about order of + * operations, and don't need to to care since we have precision to + * spare. However, the chosen splitting is good for accuracy too, + * and would give results as accurate as Horner's method if the + * small terms were added from highest degree down. + */ + r = _T1[int32(4)] + float64(z*_T1[int32(5)]) + t = _T1[int32(2)] + float64(z*_T1[int32(3)]) + w = Tdouble_t(z * z) + s = Tdouble_t(z * x) + u = _T1[0] + float64(z*_T1[int32(1)]) + r = x + float64(s*u) + float64(Tdouble_t(s*w)*(t+Tdouble_t(w*r))) + if odd != 0 { + v1 = -Float64FromFloat64(1) / r + } else { + v1 = r + } + return float32(v1) +} + +var _pio2_hi = float64(1.5707963267948966) /* 0x3FF921FB, 0x54442D18 */ +var _pio2_lo = float64(6.123233995736766e-17) /* 0x3C91A626, 0x33145C07 */ +var _pS0 = float64(0.16666666666666666) /* 0x3FC55555, 0x55555555 */ +var _pS1 = -Float64FromFloat64(0.3255658186224009) /* 0xBFD4D612, 0x03EB6F7D */ +var _pS2 = float64(0.20121253213486293) /* 0x3FC9C155, 0x0E884455 */ +var _pS3 = -Float64FromFloat64(0.04005553450067941) /* 0xBFA48228, 0xB5688F3B */ +var _pS4 = float64(0.0007915349942898145) /* 0x3F49EFE0, 0x7501B288 */ +var _pS5 = float64(3.479331075960212e-05) /* 0x3F023DE1, 0x0DFDF709 */ +var _qS1 = -Float64FromFloat64(2.403394911734414) /* 0xC0033A27, 0x1C8A2D4B */ +var _qS2 = float64(2.0209457602335057) /* 0x40002AE5, 0x9C598AC8 */ +var _qS3 = -Float64FromFloat64(0.6882839716054533) /* 0xBFE6066C, 0x1B8D0159 */ +var _qS4 = float64(0.07703815055590194) /* 0x3FB3B8C5, 0xB12E9282 */ + +func _R(tls *TLS, z float64) (r float64) { + var p, q Tdouble_t + _, _ = p, q + p = Tdouble_t(z * (_pS0 + float64(z*(_pS1+float64(z*(_pS2+float64(z*(_pS3+float64(z*(_pS4+float64(z*_pS5))))))))))) + q = float64(1) + float64(z*(_qS1+float64(z*(_qS2+float64(z*(_qS3+float64(z*_qS4))))))) + return p / q +} + +func Xacos(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + var c, df, s, w, z float64 + var hx, ix, lx Tuint32_t + var v1 Tuint64_t + _, _, _, _, _, _, _, _, _ = c, df, hx, ix, lx, s, w, z, v1 + hx = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + ix = hx & uint32(0x7fffffff) + /* |x| >= 1 or nan */ + if ix >= uint32(0x3ff00000) { + lx = uint32(*(*Tuint64_t)(unsafe.Pointer(&x))) + if ix-uint32(0x3ff00000)|lx == uint32(0) { + /* acos(1)=0, acos(-1)=pi */ + if hx>>int32(31) != 0 { + return float64(Float64FromInt32(2)*_pio2_hi) + Float64FromFloat32(7.52316384526264e-37) + } + return Float64FromInt32(0) + } + return Float64FromInt32(0) / (x - x) + } + /* |x| < 0.5 */ + if ix < uint32(0x3fe00000) { + if ix <= uint32(0x3c600000) { /* |x| < 2**-57 */ + return _pio2_hi + Float64FromFloat32(7.52316384526264e-37) + } + return _pio2_hi - (x - (_pio2_lo - float64(x*_R(tls, float64(x*x))))) + } + /* x < -0.5 */ + if hx>>int32(31) != 0 { + z = float64((float64(1) + x) * float64(0.5)) + s = Xsqrt(tls, z) + w = float64(_R(tls, z)*s) - _pio2_lo + return float64(Float64FromInt32(2) * (_pio2_hi - (s + w))) + } + /* x > 0.5 */ + z = float64((float64(1) - x) * float64(0.5)) + s = Xsqrt(tls, z) + df = s + v1 = *(*Tuint64_t)(unsafe.Pointer(&df))>>Int32FromInt32(32)< %v", r) }() + } + var c, df, s, w, z float32 + var hx, ix, v1 Tuint32_t + _, _, _, _, _, _, _, _ = c, df, hx, ix, s, w, z, v1 + hx = *(*Tuint32_t)(unsafe.Pointer(&x)) + ix = hx & uint32(0x7fffffff) + /* |x| >= 1 or nan */ + if ix >= uint32(0x3f800000) { + if ix == uint32(0x3f800000) { + if hx>>int32(31) != 0 { + return float32(Float32FromInt32(2)*_pio2_hi1) + Float32FromFloat32(7.52316384526264e-37) + } + return Float32FromInt32(0) + } + return Float32FromInt32(0) / (x - x) + } + /* |x| < 0.5 */ + if ix < uint32(0x3f000000) { + if ix <= uint32(0x32800000) { /* |x| < 2**-26 */ + return _pio2_hi1 + Float32FromFloat32(7.52316384526264e-37) + } + return _pio2_hi1 - (x - (_pio2_lo1 - float32(x*_R1(tls, float32(x*x))))) + } + /* x < -0.5 */ + if hx>>int32(31) != 0 { + z = float32((Float32FromInt32(1) + x) * Float32FromFloat32(0.5)) + s = Xsqrtf(tls, z) + w = float32(_R1(tls, z)*s) - _pio2_lo1 + return float32(Float32FromInt32(2) * (_pio2_hi1 - (s + w))) + } + /* x > 0.5 */ + z = float32((Float32FromInt32(1) - x) * Float32FromFloat32(0.5)) + s = Xsqrtf(tls, z) + hx = *(*Tuint32_t)(unsafe.Pointer(&s)) + v1 = hx & uint32(0xfffff000) + df = *(*float32)(unsafe.Pointer(&v1)) + c = (z - float32(df*df)) / (s + df) + w = float32(_R1(tls, z)*s) + c + return float32(Float32FromInt32(2) * (df + w)) +} + +// C documentation +// +// /* acosh(x) = log(x + sqrt(x*x-1)) */ +func Xacosh(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e uint32 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _ = e + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + e = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + /* x < 1 domain error is handled in the called functions */ + if e < Uint32FromInt32(Int32FromInt32(0x3ff)+Int32FromInt32(1)) { + /* |x| < 2, up to 2ulp error in [1,1.125] */ + return Xlog1p(tls, x-Float64FromInt32(1)+Xsqrt(tls, float64((x-Float64FromInt32(1))*(x-Float64FromInt32(1)))+float64(Float64FromInt32(2)*(x-Float64FromInt32(1))))) + } + if e < Uint32FromInt32(Int32FromInt32(0x3ff)+Int32FromInt32(26)) { + /* |x| < 0x1p26 */ + return Xlog(tls, float64(Float64FromInt32(2)*x)-Float64FromInt32(1)/(x+Xsqrt(tls, float64(x*x)-Float64FromInt32(1)))) + } + /* |x| >= 0x1p26 or nan */ + return Xlog(tls, x) + float64(0.6931471805599453) +} + +// C documentation +// +// /* acosh(x) = log(x + sqrt(x*x-1)) */ +func Xacoshf(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var a Tuint32_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _ = a + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + a = *(*Tuint32_t)(unsafe.Pointer(bp)) & uint32(0x7fffffff) + if a < Uint32FromInt32(Int32FromInt32(0x3f800000)+Int32FromInt32(1)<= 0x1p12 or x <= -2 or nan */ + return Xlogf(tls, x) + Float32FromFloat32(0.6931471805599453) +} + +func Xacoshl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xacosh(tls, x) +} + +func Xacosl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xacos(tls, x) +} + +var _pio2_hi2 = float64(1.5707963267948966) /* 0x3FF921FB, 0x54442D18 */ +var _pio2_lo2 = float64(6.123233995736766e-17) /* 0x3C91A626, 0x33145C07 */ +/* coefficients for R(x^2) */ +var _pS02 = float64(0.16666666666666666) /* 0x3FC55555, 0x55555555 */ +var _pS12 = -Float64FromFloat64(0.3255658186224009) /* 0xBFD4D612, 0x03EB6F7D */ +var _pS22 = float64(0.20121253213486293) /* 0x3FC9C155, 0x0E884455 */ +var _pS31 = -Float64FromFloat64(0.04005553450067941) /* 0xBFA48228, 0xB5688F3B */ +var _pS41 = float64(0.0007915349942898145) /* 0x3F49EFE0, 0x7501B288 */ +var _pS51 = float64(3.479331075960212e-05) /* 0x3F023DE1, 0x0DFDF709 */ +var _qS12 = -Float64FromFloat64(2.403394911734414) /* 0xC0033A27, 0x1C8A2D4B */ +var _qS21 = float64(2.0209457602335057) /* 0x40002AE5, 0x9C598AC8 */ +var _qS31 = -Float64FromFloat64(0.6882839716054533) /* 0xBFE6066C, 0x1B8D0159 */ +var _qS41 = float64(0.07703815055590194) /* 0x3FB3B8C5, 0xB12E9282 */ + +func _R2(tls *TLS, z float64) (r float64) { + var p, q Tdouble_t + _, _ = p, q + p = Tdouble_t(z * (_pS02 + float64(z*(_pS12+float64(z*(_pS22+float64(z*(_pS31+float64(z*(_pS41+float64(z*_pS51))))))))))) + q = float64(1) + float64(z*(_qS12+float64(z*(_qS21+float64(z*(_qS31+float64(z*_qS41))))))) + return p / q +} + +func Xasin(tls *TLS, x float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var c, f, r, s, z float64 + var hx, ix, lx Tuint32_t + var v1 Tuint64_t + _, _, _, _, _, _, _, _, _ = c, f, hx, ix, lx, r, s, z, v1 + hx = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + ix = hx & uint32(0x7fffffff) + /* |x| >= 1 or nan */ + if ix >= uint32(0x3ff00000) { + lx = uint32(*(*Tuint64_t)(unsafe.Pointer(&x))) + if ix-uint32(0x3ff00000)|lx == uint32(0) { + /* asin(1) = +-pi/2 with inexact */ + return float64(x*_pio2_hi2) + Float64FromFloat32(7.52316384526264e-37) + } + return Float64FromInt32(0) / (x - x) + } + /* |x| < 0.5 */ + if ix < uint32(0x3fe00000) { + /* if 0x1p-1022 <= |x| < 0x1p-26, avoid raising underflow */ + if ix < uint32(0x3e500000) && ix >= uint32(0x00100000) { + return x + } + return x + float64(x*_R2(tls, float64(x*x))) + } + /* 1 > |x| >= 0.5 */ + z = float64((Float64FromInt32(1) - Xfabs(tls, x)) * float64(0.5)) + s = Xsqrt(tls, z) + r = _R2(tls, z) + if ix >= uint32(0x3fef3333) { /* if |x| > 0.975 */ + x = _pio2_hi2 - (float64(Float64FromInt32(2)*(s+float64(s*r))) - _pio2_lo2) + } else { + /* f+c = sqrt(z) */ + f = s + v1 = *(*Tuint64_t)(unsafe.Pointer(&f))>>Int32FromInt32(32)<>int32(31) != 0 { + return -x + } + return x +} + +var _pio2 = float64(1.5707963267948966) + +/* coefficients for R(x^2) */ +var _pS03 = float32(0.16666586697) +var _pS13 = float32(-Float64FromFloat64(0.042743422091)) +var _pS23 = float32(-Float64FromFloat64(0.008656363003)) +var _qS13 = float32(-Float64FromFloat64(0.7066296339)) + +func _R3(tls *TLS, z float32) (r float32) { + var p, q Tfloat_t + _, _ = p, q + p = Tfloat_t(z * (_pS03 + float32(z*(_pS13+float32(z*_pS23))))) + q = Float32FromFloat32(1) + float32(z*_qS13) + return p / q +} + +func Xasinf(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + var hx, ix Tuint32_t + var s float64 + var z float32 + _, _, _, _ = hx, ix, s, z + hx = *(*Tuint32_t)(unsafe.Pointer(&x)) + ix = hx & uint32(0x7fffffff) + if ix >= uint32(0x3f800000) { /* |x| >= 1 */ + if ix == uint32(0x3f800000) { /* |x| == 1 */ + return float32(float64(float64(x)*_pio2) + Float64FromFloat32(7.52316384526264e-37)) + } /* asin(+-1) = +-pi/2 with inexact */ + return Float32FromInt32(0) / (x - x) /* asin(|x|>1) is NaN */ + } + if ix < uint32(0x3f000000) { /* |x| < 0.5 */ + /* if 0x1p-126 <= |x| < 0x1p-12, avoid raising underflow */ + if ix < uint32(0x39800000) && ix >= uint32(0x00800000) { + return x + } + return x + float32(x*_R3(tls, float32(x*x))) + } + /* 1 > |x| >= 0.5 */ + z = float32((Float32FromInt32(1) - Xfabsf(tls, x)) * Float32FromFloat32(0.5)) + s = Xsqrt(tls, float64(z)) + x = float32(_pio2 - float64(Float64FromInt32(2)*(s+float64(s*float64(_R3(tls, z)))))) + if hx>>int32(31) != 0 { + return -x + } + return x +} + +// C documentation +// +// /* asinh(x) = sign(x)*log(|x|+sqrt(x*x+1)) ~= x - x^3/6 + o(x^5) */ +func Xasinh(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e, s uint32 + var y float32 + var y1, y2, v1 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _ = e, s, y, y1, y2, v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + e = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + s = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(63)) + /* |x| */ + *(*Tuint64_t)(unsafe.Pointer(bp)) &= Uint64FromInt32(-Int32FromInt32(1)) / Uint64FromInt32(2) + x3 = *(*float64)(unsafe.Pointer(bp)) + if e >= Uint32FromInt32(Int32FromInt32(0x3ff)+Int32FromInt32(26)) { + /* |x| >= 0x1p26 or inf or nan */ + x3 = Xlog(tls, x3) + float64(0.6931471805599453) + } else { + if e >= Uint32FromInt32(Int32FromInt32(0x3ff)+Int32FromInt32(1)) { + /* |x| >= 2 */ + x3 = Xlog(tls, float64(Float64FromInt32(2)*x3)+Float64FromInt32(1)/(Xsqrt(tls, float64(x3*x3)+Float64FromInt32(1))+x3)) + } else { + if e >= Uint32FromInt32(Int32FromInt32(0x3ff)-Int32FromInt32(26)) { + /* |x| >= 0x1p-26, up to 1.6ulp error in [0.125,0.5] */ + x3 = Xlog1p(tls, x3+float64(x3*x3)/(Xsqrt(tls, float64(x3*x3)+Float64FromInt32(1))+Float64FromInt32(1))) + } else { + /* |x| < 0x1p-26, raise inexact if x != 0 */ + if uint64(8) == uint64(4) { + y = float32(x3 + Float64FromFloat32(1.329227995784916e+36)) + } else { + if uint64(8) == uint64(8) { + y1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } else { + y2 = float64(x3 + Float64FromFloat32(1.329227995784916e+36)) + } + } + } + } + } + if s != 0 { + v1 = -x3 + } else { + v1 = x3 + } + return v1 +} + +// C documentation +// +// /* asinh(x) = sign(x)*log(|x|+sqrt(x*x+1)) ~= x - x^3/6 + o(x^5) */ +func Xasinhf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var i Tuint32_t + var s uint32 + var y, v1 float32 + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _ = i, s, y, y1, y2, v1 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + i = *(*Tuint32_t)(unsafe.Pointer(bp)) & uint32(0x7fffffff) + s = *(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(31) + /* |x| */ + *(*Tuint32_t)(unsafe.Pointer(bp)) = i + x3 = *(*float32)(unsafe.Pointer(bp)) + if i >= Uint32FromInt32(Int32FromInt32(0x3f800000)+Int32FromInt32(12)<= 0x1p12 or inf or nan */ + x3 = Xlogf(tls, x3) + Float32FromFloat32(0.6931471805599453) + } else { + if i >= Uint32FromInt32(Int32FromInt32(0x3f800000)+Int32FromInt32(1)<= 2 */ + x3 = Xlogf(tls, float32(Float32FromInt32(2)*x3)+Float32FromInt32(1)/(Xsqrtf(tls, float32(x3*x3)+Float32FromInt32(1))+x3)) + } else { + if i >= Uint32FromInt32(Int32FromInt32(0x3f800000)-Int32FromInt32(12)<= 0x1p-12, up to 1.6ulp error in [0.125,0.5] */ + x3 = Xlog1pf(tls, x3+float32(x3*x3)/(Xsqrtf(tls, float32(x3*x3)+Float32FromInt32(1))+Float32FromInt32(1))) + } else { + /* |x| < 0x1p-12, raise inexact if x!=0 */ + if uint64(4) == uint64(4) { + y = x3 + Float32FromFloat32(1.329227995784916e+36) + } else { + if uint64(4) == uint64(8) { + y1 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } else { + y2 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } + } + } + } + } + if s != 0 { + v1 = -x3 + } else { + v1 = x3 + } + return v1 +} + +func Xasinhl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xasinh(tls, x) +} + +func Xasinl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xasin(tls, x) +} + +var _atanhi = [4]float64{ + 0: float64(0.4636476090008061), + 1: float64(0.7853981633974483), + 2: float64(0.982793723247329), + 3: float64(1.5707963267948966), +} + +var _atanlo = [4]float64{ + 0: float64(2.2698777452961687e-17), + 1: float64(3.061616997868383e-17), + 2: float64(1.3903311031230998e-17), + 3: float64(6.123233995736766e-17), +} + +var _aT = [11]float64{ + 0: float64(0.3333333333333293), + 1: -Float64FromFloat64(0.19999999999876483), + 2: float64(0.14285714272503466), + 3: -Float64FromFloat64(0.11111110405462356), + 4: float64(0.09090887133436507), + 5: -Float64FromFloat64(0.0769187620504483), + 6: float64(0.06661073137387531), + 7: -Float64FromFloat64(0.058335701337905735), + 8: float64(0.049768779946159324), + 9: -Float64FromFloat64(0.036531572744216916), + 10: float64(0.016285820115365782), +} + +func Xatan(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var id int32 + var ix, sign Tuint32_t + var s1, s2, w, z, v3 Tdouble_t + var y float32 + var y1, y2 float64 + var v1 uint64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _, _, _, _, _, _, _, _, _, _, _, _ = id, ix, s1, s2, sign, w, y, y1, y2, z, v1, v3 + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x3)) >> int32(32)) + sign = ix >> int32(31) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x44100000) { /* if |x| >= 2^66 */ + *(*float64)(unsafe.Pointer(bp)) = x3 + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 + _2: + if BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var __u1, __u2 Tuint64_t + var ix, iy, lx, ly, m Tuint32_t + var z, v6 float64 + var v1, v3 uint64 + var v5 bool + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _, _, _, _, _, _, _, _, _, _, _, _ = __u1, __u2, ix, iy, lx, ly, m, z, v1, v3, v5, v6 + *(*float64)(unsafe.Pointer(bp)) = x + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + ; + if v5 = BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<> int32(32)) + lx = uint32(__u1) + __u2 = *(*Tuint64_t)(unsafe.Pointer(&y)) + iy = uint32(__u2 >> int32(32)) + ly = uint32(__u2) + if ix-uint32(0x3ff00000)|lx == uint32(0) { /* x = 1.0 */ + return Xatan(tls, y) + } + m = iy>>Int32FromInt32(31)&uint32(1) | ix>>Int32FromInt32(30)&uint32(2) /* 2*sign(x)+sign(y) */ + ix = ix & uint32(0x7fffffff) + iy = iy & uint32(0x7fffffff) + /* when y = 0 */ + if iy|ly == uint32(0) { + switch m { + case uint32(0): + fallthrough + case uint32(1): + return y /* atan(+-0,+anything)=+-0 */ + case uint32(2): + return _pi /* atan(+0,-anything) = pi */ + case uint32(3): + return -_pi /* atan(-0,-anything) =-pi */ + } + } + /* when x = 0 */ + if ix|lx == uint32(0) { + if m&uint32(1) != 0 { + v6 = -_pi / Float64FromInt32(2) + } else { + v6 = _pi / Float64FromInt32(2) + } + return v6 + } + /* when x is INF */ + if ix == uint32(0x7ff00000) { + if iy == uint32(0x7ff00000) { + switch m { + case uint32(0): + return _pi / Float64FromInt32(4) /* atan(+INF,+INF) */ + case uint32(1): + return -_pi / Float64FromInt32(4) /* atan(-INF,+INF) */ + case uint32(2): + return float64(Float64FromInt32(3)*_pi) / Float64FromInt32(4) /* atan(+INF,-INF) */ + case uint32(3): + return float64(float64(-Int32FromInt32(3))*_pi) / Float64FromInt32(4) /* atan(-INF,-INF) */ + } + } else { + switch m { + case uint32(0): + return float64(0) /* atan(+...,+INF) */ + case uint32(1): + return -Float64FromFloat64(0) /* atan(-...,+INF) */ + case uint32(2): + return _pi /* atan(+...,-INF) */ + case uint32(3): + return -_pi /* atan(-...,-INF) */ + } + } + } + /* |y/x| > 0x1p64 */ + if ix+Uint32FromInt32(Int32FromInt32(64)< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ix, iy, m Tuint32_t + var z, v6 float32 + var v1, v3 uint32 + var v5 bool + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _, _, _, _, _, _, _, _ = ix, iy, m, z, v1, v3, v5, v6 + *(*float32)(unsafe.Pointer(bp)) = x + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + ; + if v5 = BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0; !v5 { + *(*float32)(unsafe.Pointer(bp)) = y + v3 = *(*uint32)(unsafe.Pointer(bp)) + goto _4 + _4: + } + if v5 || BoolInt32(v3&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return x + y + } + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + iy = *(*Tuint32_t)(unsafe.Pointer(&y)) + if ix == uint32(0x3f800000) { /* x=1.0 */ + return Xatanf(tls, y) + } + m = iy>>Int32FromInt32(31)&uint32(1) | ix>>Int32FromInt32(30)&uint32(2) /* 2*sign(x)+sign(y) */ + ix = ix & uint32(0x7fffffff) + iy = iy & uint32(0x7fffffff) + /* when y = 0 */ + if iy == uint32(0) { + switch m { + case uint32(0): + fallthrough + case uint32(1): + return y /* atan(+-0,+anything)=+-0 */ + case uint32(2): + return _pi1 /* atan(+0,-anything) = pi */ + case uint32(3): + return -_pi1 /* atan(-0,-anything) =-pi */ + } + } + /* when x = 0 */ + if ix == uint32(0) { + if m&uint32(1) != 0 { + v6 = -_pi1 / Float32FromInt32(2) + } else { + v6 = _pi1 / Float32FromInt32(2) + } + return v6 + } + /* when x is INF */ + if ix == uint32(0x7f800000) { + if iy == uint32(0x7f800000) { + switch m { + case uint32(0): + return _pi1 / Float32FromInt32(4) /* atan(+INF,+INF) */ + case uint32(1): + return -_pi1 / Float32FromInt32(4) /* atan(-INF,+INF) */ + case uint32(2): + return float32(Float32FromInt32(3)*_pi1) / Float32FromInt32(4) /*atan(+INF,-INF)*/ + case uint32(3): + return float32(float32(-Int32FromInt32(3))*_pi1) / Float32FromInt32(4) /*atan(-INF,-INF)*/ + } + } else { + switch m { + case uint32(0): + return Float32FromFloat32(0) /* atan(+...,+INF) */ + case uint32(1): + return -Float32FromFloat32(0) /* atan(-...,+INF) */ + case uint32(2): + return _pi1 /* atan(+...,-INF) */ + case uint32(3): + return -_pi1 /* atan(-...,-INF) */ + } + } + } + /* |y/x| > 0x1p26 */ + if ix+Uint32FromInt32(Int32FromInt32(26)< %v", r) }() + } + return Xatan2(tls, y, x) +} + +var _atanhi1 = [4]float32{ + 0: float32(0.46364760399), + 1: float32(0.78539812565), + 2: float32(0.98279368877), + 3: float32(1.5707962513), +} + +var _atanlo1 = [4]float32{ + 0: float32(5.012158244e-09), + 1: float32(3.7748947079e-08), + 2: float32(3.447321717e-08), + 3: float32(7.5497894159e-08), +} + +var _aT1 = [5]float32{ + 0: float32(0.33333328366), + 1: float32(-Float64FromFloat64(0.19999158382)), + 2: float32(0.14253635705), + 3: float32(-Float64FromFloat64(0.10648017377)), + 4: float32(0.061687607318), +} + +func Xatanf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var id int32 + var ix, sign Tuint32_t + var s1, s2, w, z, v3 Tfloat_t + var y float32 + var y1, y2 float64 + var v1 uint32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _, _, _, _, _, _, _, _, _, _, _, _ = id, ix, s1, s2, sign, w, y, y1, y2, z, v1, v3 + ix = *(*Tuint32_t)(unsafe.Pointer(&x3)) + sign = ix >> int32(31) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x4c800000) { /* if |x| >= 2**26 */ + *(*float32)(unsafe.Pointer(bp)) = x3 + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 + _2: + if BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return x3 + } + z = _atanhi1[int32(3)] + Float32FromFloat32(7.52316384526264e-37) + if sign != 0 { + v3 = -z + } else { + v3 = z + } + return v3 + } + if ix < uint32(0x3ee00000) { /* |x| < 0.4375 */ + if ix < uint32(0x39800000) { /* |x| < 2**-12 */ + if ix < uint32(0x00800000) { + /* raise underflow for subnormal x */ + if uint64(4) == uint64(4) { + y = float32(x3 * x3) + } else { + if uint64(4) == uint64(8) { + y1 = float64(x3 * x3) + } else { + y2 = float64(x3 * x3) + } + } + } + return x3 + } + id = -int32(1) + } else { + x3 = Xfabsf(tls, x3) + if ix < uint32(0x3f980000) { /* |x| < 1.1875 */ + if ix < uint32(0x3f300000) { /* 7/16 <= |x| < 11/16 */ + id = 0 + x3 = (float32(Float32FromFloat32(2)*x3) - Float32FromFloat32(1)) / (Float32FromFloat32(2) + x3) + } else { /* 11/16 <= |x| < 19/16 */ + id = int32(1) + x3 = (x3 - Float32FromFloat32(1)) / (x3 + Float32FromFloat32(1)) + } + } else { + if ix < uint32(0x401c0000) { /* |x| < 2.4375 */ + id = int32(2) + x3 = (x3 - Float32FromFloat32(1.5)) / (Float32FromFloat32(1) + float32(Float32FromFloat32(1.5)*x3)) + } else { /* 2.4375 <= |x| < 2**26 */ + id = int32(3) + x3 = -Float32FromFloat32(1) / x3 + } + } + } + /* end of argument reduction */ + z = Tfloat_t(x3 * x3) + w = Tfloat_t(z * z) + /* break sum from i=0 to 10 aT[i]z**(i+1) into odd and even poly */ + s1 = Tfloat_t(z * (_aT1[0] + float32(w*(_aT1[int32(2)]+float32(w*_aT1[int32(4)]))))) + s2 = Tfloat_t(w * (_aT1[int32(1)] + float32(w*_aT1[int32(3)]))) + if id < 0 { + return x3 - float32(x3*(s1+s2)) + } + z = _atanhi1[id] - (float32(x3*(s1+s2)) - _atanlo1[id] - x3) + if sign != 0 { + v3 = -z + } else { + v3 = z + } + return v3 +} + +// C documentation +// +// /* atanh(x) = log((1+x)/(1-x))/2 = log1p(2x/(1-x))/2 ~= x + x^3/3 + o(x^5) */ +func Xatanh(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e, s uint32 + var y float32 + var y1, y2 float64 + var y3, v1 Tdouble_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _ = e, s, y, y1, y2, y3, v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + e = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + s = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(63)) + /* |x| */ + *(*Tuint64_t)(unsafe.Pointer(bp)) &= Uint64FromInt32(-Int32FromInt32(1)) / Uint64FromInt32(2) + y3 = *(*float64)(unsafe.Pointer(bp)) + if e < Uint32FromInt32(Int32FromInt32(0x3ff)-Int32FromInt32(1)) { + if e < Uint32FromInt32(Int32FromInt32(0x3ff)-Int32FromInt32(32)) { + /* handle underflow */ + if e == uint32(0) { + if uint64(4) == uint64(4) { + y = float32(y3) + } else { + if uint64(4) == uint64(8) { + y1 = float64(float32(y3)) + } else { + y2 = float64(float32(y3)) + } + } + } + } else { + /* |x| < 0.5, up to 1.7ulp error */ + y3 = Tdouble_t(float64(0.5) * Xlog1p(tls, Tdouble_t(Float64FromInt32(2)*y3)+Tdouble_t(Tdouble_t(Float64FromInt32(2)*y3)*y3)/(Float64FromInt32(1)-y3))) + } + } else { + /* avoid overflow */ + y3 = Tdouble_t(float64(0.5) * Xlog1p(tls, float64(Float64FromInt32(2)*(y3/(Float64FromInt32(1)-y3))))) + } + if s != 0 { + v1 = -y3 + } else { + v1 = y3 + } + return v1 +} + +// C documentation +// +// /* atanh(x) = log((1+x)/(1-x))/2 = log1p(2x/(1-x))/2 ~= x + x^3/3 + o(x^5) */ +func Xatanhf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var s uint32 + var y float32 + var y1, y2 float64 + var y3, v1 Tfloat_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _ = s, y, y1, y2, y3, v1 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + s = *(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(31) + /* |x| */ + *(*Tuint32_t)(unsafe.Pointer(bp)) &= uint32(0x7fffffff) + y3 = *(*float32)(unsafe.Pointer(bp)) + if *(*Tuint32_t)(unsafe.Pointer(bp)) < Uint32FromInt32(Int32FromInt32(0x3f800000)-Int32FromInt32(1)< %v", r) }() + } + return Xatanh(tls, x) +} + +func Xatanl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xatan(tls, x) +} + +var _B1 = uint32(715094163) /* B1 = (1023-1023/3-0.03306235651)*2**20 */ +var _B2 = uint32(696219795) /* B2 = (1023-1023/3-54/3-0.03306235651)*2**20 */ + +// C documentation +// +// /* |1/cbrt(x) - p(x)| < 2**-23.5 (~[-7.93e-8, 7.929e-8]). */ + +var _P0 = float64(1.87595182427177) /* 0x3ffe03e6, 0x0f61e692 */ +var _P1 = -Float64FromFloat64(1.8849797954337717) /* 0xbffe28e0, 0x92f02420 */ +var _P2 = float64(1.6214297201053545) /* 0x3ff9f160, 0x4a49d6c2 */ +var _P3 = -Float64FromFloat64(0.758397934778766) /* 0xbfe844cb, 0xbee751d9 */ +var _P4 = float64(0.14599619288661245) /* 0x3fc2b000, 0xd4e4edd7 */ + +func Xcbrt(tls *TLS, x float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var hx Tuint32_t + var r, s, t, w Tdouble_t + var v1 uintptr + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _ = hx, r, s, t, w, v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + hx = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32) & uint64(0x7fffffff)) + if hx >= uint32(0x7ff00000) { /* cbrt(NaN,INF) is itself */ + return x + x + } + /* + * Rough cbrt to 5 bits: + * cbrt(2**e*(1+m) ~= 2**(e/3)*(1+(e%3+m)/3) + * where e is integral and >= 0, m is real and in [0, 1), and "/" and + * "%" are integer division and modulus with rounding towards minus + * infinity. The RHS is always >= the LHS and has a maximum relative + * error of about 1 in 16. Adding a bias of -0.03306235651 to the + * (e%3+m)/3 term reduces the error to about 1 in 32. With the IEEE + * floating point representation, for finite positive normal values, + * ordinary integer divison of the value in bits magically gives + * almost exactly the RHS of the above provided we first subtract the + * exponent bias (1023 for doubles) and later add it back. We do the + * subtraction virtually to keep e >= 0 so that ordinary integer + * division rounds towards minus infinity; this is also efficient. + */ + if hx < uint32(0x00100000) { /* zero or subnormal? */ + *(*float64)(unsafe.Pointer(bp)) = float64(x * float64(1.8014398509481984e+16)) + hx = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32) & uint64(0x7fffffff)) + if hx == uint32(0) { + return x + } /* cbrt(0) is itself */ + hx = hx/uint32(3) + _B2 + } else { + hx = hx/uint32(3) + _B1 + } + v1 = bp + *(*Tuint64_t)(unsafe.Pointer(v1)) = Tuint64_t(*(*Tuint64_t)(unsafe.Pointer(v1)) & (Uint64FromUint64(1) << Int32FromInt32(63))) + *(*Tuint64_t)(unsafe.Pointer(bp)) |= uint64(hx) << int32(32) + t = *(*float64)(unsafe.Pointer(bp)) + /* + * New cbrt to 23 bits: + * cbrt(x) = t*cbrt(x/t**3) ~= t*P(t**3/x) + * where P(r) is a polynomial of degree 4 that approximates 1/cbrt(r) + * to within 2**-23.5 when |r - 1| < 1/10. The rough approximation + * has produced t such than |t/cbrt(x) - 1| ~< 1/32, and cubing this + * gives us bounds for r = t**3/x. + * + * Try to optimize for parallel evaluation as in __tanf.c. + */ + r = Tdouble_t(Tdouble_t(t*t) * (t / x)) + t = Tdouble_t(t * (_P0 + float64(r*(_P1+float64(r*_P2))) + float64(Tdouble_t(Tdouble_t(r*r)*r)*(_P3+float64(r*_P4))))) + /* + * Round t away from zero to 23 bits (sloppily except for ensuring that + * the result is larger in magnitude than cbrt(x) but not much more than + * 2 23-bit ulps larger). With rounding towards zero, the error bound + * would be ~5/6 instead of ~4/6. With a maximum error of 2 23-bit ulps + * in the rounded t, the infinite-precision error in the Newton + * approximation barely affects third digit in the final error + * 0.667; the error in the rounded t can be up to about 3 23-bit ulps + * before the final error is larger than 0.667 ulps. + */ + *(*float64)(unsafe.Pointer(bp)) = t + *(*Tuint64_t)(unsafe.Pointer(bp)) = uint64(*(*Tuint64_t)(unsafe.Pointer(bp))+Uint64FromUint32(0x80000000)) & uint64(0xffffffffc0000000) + t = *(*float64)(unsafe.Pointer(bp)) + /* one step Newton iteration to 53 bits with error < 0.667 ulps */ + s = Tdouble_t(t * t) /* t*t is exact */ + r = x / s /* error <= 0.5 ulps; |r| < |t| */ + w = t + t /* t+t is exact */ + r = (r - t) / (w + r) /* r-t is exact; w+r ~= 3*t */ + t = t + Tdouble_t(t*r) /* error <= 0.5 + 0.5/3 + epsilon */ + return t +} + +var _B11 = uint32(709958130) /* B1 = (127-127.0/3-0.03306235651)*2**23 */ +var _B21 = uint32(642849266) /* B2 = (127-127.0/3-24/3-0.03306235651)*2**23 */ + +func Xcbrtf(tls *TLS, x float32) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var T, r Tdouble_t + var hx Tuint32_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _ = T, hx, r + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + hx = *(*Tuint32_t)(unsafe.Pointer(bp)) & uint32(0x7fffffff) + if hx >= uint32(0x7f800000) { /* cbrt(NaN,INF) is itself */ + return x + x + } + /* rough cbrt to 5 bits */ + if hx < uint32(0x00800000) { /* zero or subnormal? */ + if hx == uint32(0) { + return x + } /* cbrt(+-0) is itself */ + *(*float32)(unsafe.Pointer(bp)) = float32(x * Float32FromFloat32(1.6777216e+07)) + hx = *(*Tuint32_t)(unsafe.Pointer(bp)) & uint32(0x7fffffff) + hx = hx/uint32(3) + _B21 + } else { + hx = hx/uint32(3) + _B11 + } + *(*Tuint32_t)(unsafe.Pointer(bp)) &= uint32(0x80000000) + *(*Tuint32_t)(unsafe.Pointer(bp)) |= hx + /* + * First step Newton iteration (solving t*t-x/t == 0) to 16 bits. In + * double precision so that its terms can be arranged for efficiency + * without causing overflow or underflow. + */ + T = float64(*(*float32)(unsafe.Pointer(bp))) + r = Tdouble_t(Tdouble_t(T*T) * T) + T = Tdouble_t(T*(float64(x)+float64(x)+r)) / (float64(x) + r + r) + /* + * Second step Newton iteration to 47 bits. In double precision for + * efficiency and accuracy. + */ + r = Tdouble_t(Tdouble_t(T*T) * T) + T = Tdouble_t(T*(float64(x)+float64(x)+r)) / (float64(x) + r + r) + /* rounding to 24 bits is perfect in round-to-nearest mode */ + return float32(T) +} + +func Xcbrtl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xcbrt(tls, x) +} + +const DBL_EPSILON5 = 2.220446049250313e-16 + +var _toint2 = Float64FromInt32(1) / Float64FromFloat64(2.220446049250313e-16) + +func Xceil(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e int32 + var y float32 + var y1, y2, v1 float64 + var y3 Tdouble_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _ = e, y, y1, y2, y3, v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + e = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + if e >= Int32FromInt32(0x3ff)+Int32FromInt32(52) || x3 == Float64FromInt32(0) { + return x3 + } + /* y = int(x) - x, where int(x) is an integer neighbor of x */ + if *(*Tuint64_t)(unsafe.Pointer(bp))>>int32(63) != 0 { + y3 = x3 - _toint2 + _toint2 - x3 + } else { + y3 = x3 + _toint2 - _toint2 - x3 + } + /* special case because of non-nearest rounding modes */ + if e <= Int32FromInt32(0x3ff)-Int32FromInt32(1) { + if uint64(8) == uint64(4) { + y = float32(y3) + } else { + if uint64(8) == uint64(8) { + y1 = y3 + } else { + y2 = y3 + } + } + if *(*Tuint64_t)(unsafe.Pointer(bp))>>int32(63) != 0 { + v1 = -Float64FromFloat64(0) + } else { + v1 = Float64FromInt32(1) + } + return v1 + } + if y3 < Float64FromInt32(0) { + return x3 + y3 + Float64FromInt32(1) + } + return x3 + y3 +} + +const DBL_EPSILON6 = 0 + +func Xceilf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e int32 + var m Tuint32_t + var y float32 + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _ = e, m, y, y1, y2 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + e = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp))>>Int32FromInt32(23)&Uint32FromInt32(0xff)) - int32(0x7f) + if e >= int32(23) { + return x3 + } + if e >= 0 { + m = Uint32FromInt32(int32(0x007fffff) >> e) + if *(*Tuint32_t)(unsafe.Pointer(bp))&m == uint32(0) { + return x3 + } + if uint64(4) == uint64(4) { + y = x3 + Float32FromFloat32(1.329227995784916e+36) + } else { + if uint64(4) == uint64(8) { + y1 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } else { + y2 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } + } + if *(*Tuint32_t)(unsafe.Pointer(bp))>>int32(31) == uint32(0) { + *(*Tuint32_t)(unsafe.Pointer(bp)) += m + } + *(*Tuint32_t)(unsafe.Pointer(bp)) &= ^m + } else { + if uint64(4) == uint64(4) { + y = x3 + Float32FromFloat32(1.329227995784916e+36) + } else { + if uint64(4) == uint64(8) { + y1 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } else { + y2 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } + } + if *(*Tuint32_t)(unsafe.Pointer(bp))>>int32(31) != 0 { + *(*float32)(unsafe.Pointer(bp)) = float32(-Float64FromFloat64(0)) + } else { + if *(*Tuint32_t)(unsafe.Pointer(bp))< %v", r) }() + } + return Xceil(tls, x) +} + +func Xcopysign(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uintptr + var _ /* ux at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + var _ /* uy at bp+8 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _ = v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp + 8)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp + 8)) = y + v1 = bp + *(*Tuint64_t)(unsafe.Pointer(v1)) = Tuint64_t(*(*Tuint64_t)(unsafe.Pointer(v1)) & (-Uint64FromUint64(1) / Uint64FromInt32(2))) + v1 = bp + *(*Tuint64_t)(unsafe.Pointer(v1)) = Tuint64_t(*(*Tuint64_t)(unsafe.Pointer(v1)) | *(*Tuint64_t)(unsafe.Pointer(bp + 8))&(Uint64FromUint64(1)< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* ux at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + var _ /* uy at bp+4 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp + 4)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp + 4)) = y + *(*Tuint32_t)(unsafe.Pointer(bp)) &= uint32(0x7fffffff) + *(*Tuint32_t)(unsafe.Pointer(bp)) |= *(*Tuint32_t)(unsafe.Pointer(bp + 4)) & uint32(0x80000000) + return *(*float32)(unsafe.Pointer(bp)) +} + +func Xcopysignl(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xcopysign(tls, x, y) +} + +func Xcos(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ix Tuint32_t + var n uint32 + var y float32 + var y1, y2 float64 + var _ /* y at bp+0 */ [2]float64 + _, _, _, _, _ = ix, n, y, y1, y2 + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x3)) >> int32(32)) + ix = ix & uint32(0x7fffffff) + /* |x| ~< pi/4 */ + if ix <= uint32(0x3fe921fb) { + if ix < uint32(0x3e46a09e) { /* |x| < 2**-27 * sqrt(2) */ + /* raise inexact if x!=0 */ + if uint64(8) == uint64(4) { + y = float32(x3 + Float64FromFloat32(1.329227995784916e+36)) + } else { + if uint64(8) == uint64(8) { + y1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } else { + y2 = float64(x3 + Float64FromFloat32(1.329227995784916e+36)) + } + } + return float64(1) + } + return X__cos(tls, x3, Float64FromInt32(0)) + } + /* cos(Inf or NaN) is NaN */ + if ix >= uint32(0x7ff00000) { + return x3 - x3 + } + /* argument reduction */ + n = Uint32FromInt32(X__rem_pio2(tls, x3, bp)) + switch n & Uint32FromInt32(3) { + case uint32(0): + return X__cos(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)]) + case uint32(1): + return -X__sin(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)], int32(1)) + case uint32(2): + return -X__cos(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)]) + default: + return X__sin(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)], int32(1)) + } + return r +} + +const M_PI_23 = 1.5707963267948966 + +// C documentation +// +// /* Small multiples of pi/2 rounded to double precision. */ + +var _c1pio2 = float64(Float64FromInt32(1) * Float64FromFloat64(1.5707963267948966)) /* 0x3FF921FB, 0x54442D18 */ +var _c2pio2 = float64(Float64FromInt32(2) * Float64FromFloat64(1.5707963267948966)) /* 0x400921FB, 0x54442D18 */ +var _c3pio2 = float64(Float64FromInt32(3) * Float64FromFloat64(1.5707963267948966)) /* 0x4012D97C, 0x7F3321D2 */ +var _c4pio2 = float64(Float64FromInt32(4) * Float64FromFloat64(1.5707963267948966)) /* 0x401921FB, 0x54442D18 */ + +func Xcosf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ix Tuint32_t + var n, sign uint32 + var y float32 + var y1, y2, v1 float64 + var _ /* y at bp+0 */ float64 + _, _, _, _, _, _, _ = ix, n, sign, y, y1, y2, v1 + ix = *(*Tuint32_t)(unsafe.Pointer(&x3)) + sign = ix >> int32(31) + ix = ix & uint32(0x7fffffff) + if ix <= uint32(0x3f490fda) { /* |x| ~<= pi/4 */ + if ix < uint32(0x39800000) { /* |x| < 2**-12 */ + /* raise inexact if x != 0 */ + if uint64(4) == uint64(4) { + y = x3 + Float32FromFloat32(1.329227995784916e+36) + } else { + if uint64(4) == uint64(8) { + y1 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } else { + y2 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } + } + return Float32FromFloat32(1) + } + return X__cosdf(tls, float64(x3)) + } + if ix <= uint32(0x407b53d1) { /* |x| ~<= 5*pi/4 */ + if ix > uint32(0x4016cbe3) { /* |x| ~> 3*pi/4 */ + if sign != 0 { + v1 = float64(x3) + _c2pio2 + } else { + v1 = float64(x3) - _c2pio2 + } + return -X__cosdf(tls, v1) + } else { + if sign != 0 { + return X__sindf(tls, float64(x3)+_c1pio2) + } else { + return X__sindf(tls, _c1pio2-float64(x3)) + } + } + } + if ix <= uint32(0x40e231d5) { /* |x| ~<= 9*pi/4 */ + if ix > uint32(0x40afeddf) { /* |x| ~> 7*pi/4 */ + if sign != 0 { + v1 = float64(x3) + _c4pio2 + } else { + v1 = float64(x3) - _c4pio2 + } + return X__cosdf(tls, v1) + } else { + if sign != 0 { + return X__sindf(tls, float64(-x3)-_c3pio2) + } else { + return X__sindf(tls, float64(x3)-_c3pio2) + } + } + } + /* cos(Inf or NaN) is NaN */ + if ix >= uint32(0x7f800000) { + return x3 - x3 + } + /* general argument reduction needed */ + n = Uint32FromInt32(X__rem_pio2f(tls, x3, bp)) + switch n & Uint32FromInt32(3) { + case uint32(0): + return X__cosdf(tls, **(**float64)(__ccgo_up(bp))) + case uint32(1): + return X__sindf(tls, -**(**float64)(__ccgo_up(bp))) + case uint32(2): + return -X__cosdf(tls, **(**float64)(__ccgo_up(bp))) + default: + return X__sindf(tls, **(**float64)(__ccgo_up(bp))) + } + return r +} + +const M_PI_24 = 0 + +// C documentation +// +// /* cosh(x) = (exp(x) + 1/exp(x))/2 +// * = 1 + 0.5*(exp(x)-1)*(exp(x)-1)/exp(x) +// * = 1 + x*x/2 + o(x^4) +// */ +func Xcosh(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var t, y1, y2 float64 + var w Tuint32_t + var y float32 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _ = t, w, y, y1, y2 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + /* |x| */ + *(*Tuint64_t)(unsafe.Pointer(bp)) &= Uint64FromInt32(-Int32FromInt32(1)) / Uint64FromInt32(2) + x3 = *(*float64)(unsafe.Pointer(bp)) + w = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32)) + /* |x| < log(2) */ + if w < uint32(0x3fe62e42) { + if w < Uint32FromInt32(Int32FromInt32(0x3ff00000)-Int32FromInt32(26)<log(0x1p26) then the 1/t is not needed */ + return float64(float64(0.5) * (t + Float64FromInt32(1)/t)) + } + /* |x| > log(DBL_MAX) or nan */ + /* note: the result is stored to handle overflow */ + t = X__expo2(tls, x3, float64(1)) + return t +} + +func Xcoshf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var t, y float32 + var w Tuint32_t + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _ = t, w, y, y1, y2 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + /* |x| */ + *(*Tuint32_t)(unsafe.Pointer(bp)) &= uint32(0x7fffffff) + x3 = *(*float32)(unsafe.Pointer(bp)) + w = *(*Tuint32_t)(unsafe.Pointer(bp)) + /* |x| < log(2) */ + if w < uint32(0x3f317217) { + if w < Uint32FromInt32(Int32FromInt32(0x3f800000)-Int32FromInt32(12)< log(FLT_MAX) or nan */ + t = X__expo2f(tls, x3, Float32FromFloat32(1)) + return t +} + +func Xcoshl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xcosh(tls, x) +} + +func Xcosl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xcos(tls, x) +} + +var _erx = float64(0.8450629115104675) /* 0x3FEB0AC1, 0x60000000 */ +/* + * Coefficients for approximation to erf on [0,0.84375] + */ +var _efx8 = float64(1.0270333367641007) /* 0x3FF06EBA, 0x8214DB69 */ +var _pp0 = float64(0.12837916709551256) /* 0x3FC06EBA, 0x8214DB68 */ +var _pp1 = -Float64FromFloat64(0.3250421072470015) /* 0xBFD4CD7D, 0x691CB913 */ +var _pp2 = -Float64FromFloat64(0.02848174957559851) /* 0xBF9D2A51, 0xDBD7194F */ +var _pp3 = -Float64FromFloat64(0.005770270296489442) /* 0xBF77A291, 0x236668E4 */ +var _pp4 = -Float64FromFloat64(2.3763016656650163e-05) /* 0xBEF8EAD6, 0x120016AC */ +var _qq1 = float64(0.39791722395915535) /* 0x3FD97779, 0xCDDADC09 */ +var _qq2 = float64(0.0650222499887673) /* 0x3FB0A54C, 0x5536CEBA */ +var _qq3 = float64(0.005081306281875766) /* 0x3F74D022, 0xC4D36B0F */ +var _qq4 = float64(0.00013249473800432164) /* 0x3F215DC9, 0x221C1A10 */ +var _qq5 = -Float64FromFloat64(3.960228278775368e-06) /* 0xBED09C43, 0x42A26120 */ +/* + * Coefficients for approximation to erf in [0.84375,1.25] + */ +var _pa0 = -Float64FromFloat64(0.0023621185607526594) /* 0xBF6359B8, 0xBEF77538 */ +var _pa1 = float64(0.41485611868374833) /* 0x3FDA8D00, 0xAD92B34D */ +var _pa2 = -Float64FromFloat64(0.3722078760357013) /* 0xBFD7D240, 0xFBB8C3F1 */ +var _pa3 = float64(0.31834661990116175) /* 0x3FD45FCA, 0x805120E4 */ +var _pa4 = -Float64FromFloat64(0.11089469428239668) /* 0xBFBC6398, 0x3D3E28EC */ +var _pa5 = float64(0.035478304325618236) /* 0x3FA22A36, 0x599795EB */ +var _pa6 = -Float64FromFloat64(0.002166375594868791) /* 0xBF61BF38, 0x0A96073F */ +var _qa1 = float64(0.10642088040084423) /* 0x3FBB3E66, 0x18EEE323 */ +var _qa2 = float64(0.540397917702171) /* 0x3FE14AF0, 0x92EB6F33 */ +var _qa3 = float64(0.07182865441419627) /* 0x3FB2635C, 0xD99FE9A7 */ +var _qa4 = float64(0.12617121980876164) /* 0x3FC02660, 0xE763351F */ +var _qa5 = float64(0.01363708391202905) /* 0x3F8BEDC2, 0x6B51DD1C */ +var _qa6 = float64(0.011984499846799107) /* 0x3F888B54, 0x5735151D */ +/* + * Coefficients for approximation to erfc in [1.25,1/0.35] + */ +var _ra0 = -Float64FromFloat64(0.009864944034847148) /* 0xBF843412, 0x600D6435 */ +var _ra1 = -Float64FromFloat64(0.6938585727071818) /* 0xBFE63416, 0xE4BA7360 */ +var _ra2 = -Float64FromFloat64(10.558626225323291) /* 0xC0251E04, 0x41B0E726 */ +var _ra3 = -Float64FromFloat64(62.375332450326006) /* 0xC04F300A, 0xE4CBA38D */ +var _ra4 = -Float64FromFloat64(162.39666946257347) /* 0xC0644CB1, 0x84282266 */ +var _ra5 = -Float64FromFloat64(184.60509290671104) /* 0xC067135C, 0xEBCCABB2 */ +var _ra6 = -Float64FromFloat64(81.2874355063066) /* 0xC0545265, 0x57E4D2F2 */ +var _ra7 = -Float64FromFloat64(9.814329344169145) /* 0xC023A0EF, 0xC69AC25C */ +var _sa1 = float64(19.651271667439257) /* 0x4033A6B9, 0xBD707687 */ +var _sa2 = float64(137.65775414351904) /* 0x4061350C, 0x526AE721 */ +var _sa3 = float64(434.56587747522923) /* 0x407B290D, 0xD58A1A71 */ +var _sa4 = float64(645.3872717332679) /* 0x40842B19, 0x21EC2868 */ +var _sa5 = float64(429.00814002756783) /* 0x407AD021, 0x57700314 */ +var _sa6 = float64(108.63500554177944) /* 0x405B28A3, 0xEE48AE2C */ +var _sa7 = float64(6.570249770319282) /* 0x401A47EF, 0x8E484A93 */ +var _sa8 = -Float64FromFloat64(0.0604244152148581) /* 0xBFAEEFF2, 0xEE749A62 */ +/* + * Coefficients for approximation to erfc in [1/.35,28] + */ +var _rb0 = -Float64FromFloat64(0.0098649429247001) /* 0xBF843412, 0x39E86F4A */ +var _rb1 = -Float64FromFloat64(0.799283237680523) /* 0xBFE993BA, 0x70C285DE */ +var _rb2 = -Float64FromFloat64(17.757954917754752) /* 0xC031C209, 0x555F995A */ +var _rb3 = -Float64FromFloat64(160.63638485582192) /* 0xC064145D, 0x43C5ED98 */ +var _rb4 = -Float64FromFloat64(637.5664433683896) /* 0xC083EC88, 0x1375F228 */ +var _rb5 = -Float64FromFloat64(1025.0951316110772) /* 0xC0900461, 0x6A2E5992 */ +var _rb6 = -Float64FromFloat64(483.5191916086514) /* 0xC07E384E, 0x9BDC383F */ +var _sb1 = float64(30.33806074348246) /* 0x403E568B, 0x261D5190 */ +var _sb2 = float64(325.7925129965739) /* 0x40745CAE, 0x221B9F0A */ +var _sb3 = float64(1536.729586084437) /* 0x409802EB, 0x189D5118 */ +var _sb4 = float64(3199.8582195085955) /* 0x40A8FFB7, 0x688C246A */ +var _sb5 = float64(2553.0504064331644) /* 0x40A3F219, 0xCEDF3BE6 */ +var _sb6 = float64(474.52854120695537) /* 0x407DA874, 0xE79FE763 */ +var _sb7 = -Float64FromFloat64(22.44095244658582) /* 0xC03670E2, 0x42712D62 */ + +func _erfc1(tls *TLS, x float64) (r float64) { + var P, Q, s Tdouble_t + _, _, _ = P, Q, s + s = Xfabs(tls, x) - Float64FromInt32(1) + P = _pa0 + float64(s*(_pa1+float64(s*(_pa2+float64(s*(_pa3+float64(s*(_pa4+float64(s*(_pa5+float64(s*_pa6))))))))))) + Q = Float64FromInt32(1) + Tdouble_t(s*(_qa1+float64(s*(_qa2+float64(s*(_qa3+float64(s*(_qa4+float64(s*(_qa5+float64(s*_qa6))))))))))) + return Float64FromInt32(1) - _erx - P/Q +} + +func _erfc2(tls *TLS, ix Tuint32_t, x float64) (r float64) { + var R, S, s Tdouble_t + var z float64 + var v1 Tuint64_t + _, _, _, _, _ = R, S, s, z, v1 + if ix < uint32(0x3ff40000) { /* |x| < 1.25 */ + return _erfc1(tls, x) + } + x = Xfabs(tls, x) + s = Float64FromInt32(1) / float64(x*x) + if ix < uint32(0x4006db6d) { /* |x| < 1/.35 ~ 2.85714 */ + R = _ra0 + float64(s*(_ra1+float64(s*(_ra2+float64(s*(_ra3+float64(s*(_ra4+float64(s*(_ra5+float64(s*(_ra6+float64(s*_ra7))))))))))))) + S = float64(1) + float64(s*(_sa1+float64(s*(_sa2+float64(s*(_sa3+float64(s*(_sa4+float64(s*(_sa5+float64(s*(_sa6+float64(s*(_sa7+float64(s*_sa8))))))))))))))) + } else { /* |x| > 1/.35 */ + R = _rb0 + float64(s*(_rb1+float64(s*(_rb2+float64(s*(_rb3+float64(s*(_rb4+float64(s*(_rb5+float64(s*_rb6))))))))))) + S = float64(1) + float64(s*(_sb1+float64(s*(_sb2+float64(s*(_sb3+float64(s*(_sb4+float64(s*(_sb5+float64(s*(_sb6+float64(s*_sb7))))))))))))) + } + z = x + v1 = *(*Tuint64_t)(unsafe.Pointer(&z))>>Int32FromInt32(32)< %v", r1) }() + } + var ix Tuint32_t + var r, s, y, z, v1 float64 + var sign int32 + _, _, _, _, _, _, _ = ix, r, s, sign, y, z, v1 + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x7ff00000) { + /* erf(nan)=nan, erf(+-inf)=+-1 */ + return float64(int32(1)-int32(2)*sign) + Float64FromInt32(1)/x + } + if ix < uint32(0x3feb0000) { /* |x| < 0.84375 */ + if ix < uint32(0x3e300000) { /* |x| < 2**-28 */ + /* avoid underflow */ + return float64(float64(0.125) * (float64(Float64FromInt32(8)*x) + float64(_efx8*x))) + } + z = float64(x * x) + r = _pp0 + float64(z*(_pp1+float64(z*(_pp2+float64(z*(_pp3+float64(z*_pp4))))))) + s = float64(1) + float64(z*(_qq1+float64(z*(_qq2+float64(z*(_qq3+float64(z*(_qq4+float64(z*_qq5))))))))) + y = r / s + return x + float64(x*y) + } + if ix < uint32(0x40180000) { /* 0.84375 <= |x| < 6 */ + y = Float64FromInt32(1) - _erfc2(tls, ix, x) + } else { + y = Float64FromInt32(1) - Float64FromFloat64(2.2250738585072014e-308) + } + if sign != 0 { + v1 = -y + } else { + v1 = y + } + return v1 +} + +func Xerfc(tls *TLS, x float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var ix Tuint32_t + var r, s, y, z, v1 float64 + var sign int32 + _, _, _, _, _, _, _ = ix, r, s, sign, y, z, v1 + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x7ff00000) { + /* erfc(nan)=nan, erfc(+-inf)=0,2 */ + return float64(int32(2)*sign) + Float64FromInt32(1)/x + } + if ix < uint32(0x3feb0000) { /* |x| < 0.84375 */ + if ix < uint32(0x3c700000) { /* |x| < 2**-56 */ + return float64(1) - x + } + z = float64(x * x) + r = _pp0 + float64(z*(_pp1+float64(z*(_pp2+float64(z*(_pp3+float64(z*_pp4))))))) + s = float64(1) + float64(z*(_qq1+float64(z*(_qq2+float64(z*(_qq3+float64(z*(_qq4+float64(z*_qq5))))))))) + y = r / s + if sign != 0 || ix < uint32(0x3fd00000) { /* x < 1/4 */ + return float64(1) - (x + float64(x*y)) + } + return float64(0.5) - (x - float64(0.5) + float64(x*y)) + } + if ix < uint32(0x403c0000) { /* 0.84375 <= |x| < 28 */ + if sign != 0 { + v1 = Float64FromInt32(2) - _erfc2(tls, ix, x) + } else { + v1 = _erfc2(tls, ix, x) + } + return v1 + } + if sign != 0 { + v1 = Float64FromInt32(2) - Float64FromFloat64(2.2250738585072014e-308) + } else { + v1 = float64(Float64FromFloat64(2.2250738585072014e-308) * Float64FromFloat64(2.2250738585072014e-308)) + } + return v1 +} + +var _erx1 = float32(0.84506291151) /* 0x3f58560b */ +/* + * Coefficients for approximation to erf on [0,0.84375] + */ +var _efx81 = float32(1.027033329) /* 0x3f8375d4 */ +var _pp01 = float32(0.12837916613) /* 0x3e0375d4 */ +var _pp11 = float32(-Float64FromFloat64(0.32504209876)) /* 0xbea66beb */ +var _pp21 = float32(-Float64FromFloat64(0.028481749818)) /* 0xbce9528f */ +var _pp31 = float32(-Float64FromFloat64(0.005770270247)) /* 0xbbbd1489 */ +var _pp41 = float32(-Float64FromFloat64(2.3763017452e-05)) /* 0xb7c756b1 */ +var _qq11 = float32(0.39791721106) /* 0x3ecbbbce */ +var _qq21 = float32(0.0650222525) /* 0x3d852a63 */ +var _qq31 = float32(0.0050813062117) /* 0x3ba68116 */ +var _qq41 = float32(0.00013249473704) /* 0x390aee49 */ +var _qq51 = float32(-Float64FromFloat64(3.9602282413e-06)) /* 0xb684e21a */ +/* + * Coefficients for approximation to erf in [0.84375,1.25] + */ +var _pa01 = float32(-Float64FromFloat64(0.0023621185683)) /* 0xbb1acdc6 */ +var _pa11 = float32(0.41485610604) /* 0x3ed46805 */ +var _pa21 = float32(-Float64FromFloat64(0.37220788002)) /* 0xbebe9208 */ +var _pa31 = float32(0.31834661961) /* 0x3ea2fe54 */ +var _pa41 = float32(-Float64FromFloat64(0.11089469492)) /* 0xbde31cc2 */ +var _pa51 = float32(0.035478305072) /* 0x3d1151b3 */ +var _pa61 = float32(-Float64FromFloat64(0.0021663755178)) /* 0xbb0df9c0 */ +var _qa11 = float32(0.10642088205) /* 0x3dd9f331 */ +var _qa21 = float32(0.54039794207) /* 0x3f0a5785 */ +var _qa31 = float32(0.071828655899) /* 0x3d931ae7 */ +var _qa41 = float32(0.12617121637) /* 0x3e013307 */ +var _qa51 = float32(0.013637083583) /* 0x3c5f6e13 */ +var _qa61 = float32(0.011984500103) /* 0x3c445aa3 */ +/* + * Coefficients for approximation to erfc in [1.25,1/0.35] + */ +var _ra01 = float32(-Float64FromFloat64(0.0098649440333)) /* 0xbc21a093 */ +var _ra11 = float32(-Float64FromFloat64(0.6938585639)) /* 0xbf31a0b7 */ +var _ra21 = float32(-Float64FromFloat64(10.558626175)) /* 0xc128f022 */ +var _ra31 = float32(-Float64FromFloat64(62.375331879)) /* 0xc2798057 */ +var _ra41 = float32(-Float64FromFloat64(162.39666748)) /* 0xc322658c */ +var _ra51 = float32(-Float64FromFloat64(184.60508728)) /* 0xc3389ae7 */ +var _ra61 = float32(-Float64FromFloat64(81.287437439)) /* 0xc2a2932b */ +var _ra71 = float32(-Float64FromFloat64(9.8143291473)) /* 0xc11d077e */ +var _sa11 = float32(19.65127182) /* 0x419d35ce */ +var _sa21 = float32(137.65776062) /* 0x4309a863 */ +var _sa31 = float32(434.56588745) /* 0x43d9486f */ +var _sa41 = float32(645.38726807) /* 0x442158c9 */ +var _sa51 = float32(429.00814819) /* 0x43d6810b */ +var _sa61 = float32(108.63500214) /* 0x42d9451f */ +var _sa71 = float32(6.5702495575) /* 0x40d23f7c */ +var _sa81 = float32(-Float64FromFloat64(0.060424413532)) /* 0xbd777f97 */ +/* + * Coefficients for approximation to erfc in [1/.35,28] + */ +var _rb01 = float32(-Float64FromFloat64(0.009864943102)) /* 0xbc21a092 */ +var _rb11 = float32(-Float64FromFloat64(0.79928326607)) /* 0xbf4c9dd4 */ +var _rb21 = float32(-Float64FromFloat64(17.757955551)) /* 0xc18e104b */ +var _rb31 = float32(-Float64FromFloat64(160.63638306)) /* 0xc320a2ea */ +var _rb41 = float32(-Float64FromFloat64(637.56646729)) /* 0xc41f6441 */ +var _rb51 = float32(-Float64FromFloat64(1025.0950928)) /* 0xc480230b */ +var _rb61 = float32(-Float64FromFloat64(483.51919556)) /* 0xc3f1c275 */ +var _sb11 = float32(30.338060379) /* 0x41f2b459 */ +var _sb21 = float32(325.79251099) /* 0x43a2e571 */ +var _sb31 = float32(1536.7296143) /* 0x44c01759 */ +var _sb41 = float32(3199.8581543) /* 0x4547fdbb */ +var _sb51 = float32(2553.050293) /* 0x451f90ce */ +var _sb61 = float32(474.52853394) /* 0x43ed43a7 */ +var _sb71 = float32(-Float64FromFloat64(22.440952301)) /* 0xc1b38712 */ + +func _erfc11(tls *TLS, x float32) (r float32) { + var P, Q, s Tfloat_t + _, _, _ = P, Q, s + s = Xfabsf(tls, x) - Float32FromInt32(1) + P = _pa01 + float32(s*(_pa11+float32(s*(_pa21+float32(s*(_pa31+float32(s*(_pa41+float32(s*(_pa51+float32(s*_pa61))))))))))) + Q = Float32FromInt32(1) + Tfloat_t(s*(_qa11+float32(s*(_qa21+float32(s*(_qa31+float32(s*(_qa41+float32(s*(_qa51+float32(s*_qa61))))))))))) + return Float32FromInt32(1) - _erx1 - P/Q +} + +func _erfc21(tls *TLS, ix Tuint32_t, x float32) (r float32) { + var R, S, s Tfloat_t + var z float32 + var v1 Tuint32_t + _, _, _, _, _ = R, S, s, z, v1 + if ix < uint32(0x3fa00000) { /* |x| < 1.25 */ + return _erfc11(tls, x) + } + x = Xfabsf(tls, x) + s = Float32FromInt32(1) / float32(x*x) + if ix < uint32(0x4036db6d) { /* |x| < 1/0.35 */ + R = _ra01 + float32(s*(_ra11+float32(s*(_ra21+float32(s*(_ra31+float32(s*(_ra41+float32(s*(_ra51+float32(s*(_ra61+float32(s*_ra71))))))))))))) + S = Float32FromFloat32(1) + float32(s*(_sa11+float32(s*(_sa21+float32(s*(_sa31+float32(s*(_sa41+float32(s*(_sa51+float32(s*(_sa61+float32(s*(_sa71+float32(s*_sa81))))))))))))))) + } else { /* |x| >= 1/0.35 */ + R = _rb01 + float32(s*(_rb11+float32(s*(_rb21+float32(s*(_rb31+float32(s*(_rb41+float32(s*(_rb51+float32(s*_rb61))))))))))) + S = Float32FromFloat32(1) + float32(s*(_sb11+float32(s*(_sb21+float32(s*(_sb31+float32(s*(_sb41+float32(s*(_sb51+float32(s*(_sb61+float32(s*_sb71))))))))))))) + } + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + v1 = ix & uint32(0xffffe000) + z = *(*float32)(unsafe.Pointer(&v1)) + return float32(Xexpf(tls, float32(-z*z)-Float32FromFloat32(0.5625))*Xexpf(tls, float32((z-x)*(z+x))+R/S)) / x +} + +func Xerff(tls *TLS, x float32) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var ix Tuint32_t + var r, s, y, z, v1 float32 + var sign int32 + _, _, _, _, _, _, _ = ix, r, s, sign, y, z, v1 + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x7f800000) { + /* erf(nan)=nan, erf(+-inf)=+-1 */ + return float32(int32(1)-int32(2)*sign) + Float32FromInt32(1)/x + } + if ix < uint32(0x3f580000) { /* |x| < 0.84375 */ + if ix < uint32(0x31800000) { /* |x| < 2**-28 */ + /*avoid underflow */ + return float32(Float32FromFloat32(0.125) * (float32(Float32FromInt32(8)*x) + float32(_efx81*x))) + } + z = float32(x * x) + r = _pp01 + float32(z*(_pp11+float32(z*(_pp21+float32(z*(_pp31+float32(z*_pp41))))))) + s = Float32FromInt32(1) + float32(z*(_qq11+float32(z*(_qq21+float32(z*(_qq31+float32(z*(_qq41+float32(z*_qq51))))))))) + y = r / s + return x + float32(x*y) + } + if ix < uint32(0x40c00000) { /* |x| < 6 */ + y = Float32FromInt32(1) - _erfc21(tls, ix, x) + } else { + y = Float32FromInt32(1) - Float32FromFloat32(7.52316384526264e-37) + } + if sign != 0 { + v1 = -y + } else { + v1 = y + } + return v1 +} + +func Xerfcf(tls *TLS, x float32) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var ix Tuint32_t + var r, s, y, z, v1 float32 + var sign int32 + _, _, _, _, _, _, _ = ix, r, s, sign, y, z, v1 + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x7f800000) { + /* erfc(nan)=nan, erfc(+-inf)=0,2 */ + return float32(int32(2)*sign) + Float32FromInt32(1)/x + } + if ix < uint32(0x3f580000) { /* |x| < 0.84375 */ + if ix < uint32(0x23800000) { /* |x| < 2**-56 */ + return Float32FromFloat32(1) - x + } + z = float32(x * x) + r = _pp01 + float32(z*(_pp11+float32(z*(_pp21+float32(z*(_pp31+float32(z*_pp41))))))) + s = Float32FromFloat32(1) + float32(z*(_qq11+float32(z*(_qq21+float32(z*(_qq31+float32(z*(_qq41+float32(z*_qq51))))))))) + y = r / s + if sign != 0 || ix < uint32(0x3e800000) { /* x < 1/4 */ + return Float32FromFloat32(1) - (x + float32(x*y)) + } + return Float32FromFloat32(0.5) - (x - Float32FromFloat32(0.5) + float32(x*y)) + } + if ix < uint32(0x41e00000) { /* |x| < 28 */ + if sign != 0 { + v1 = Float32FromInt32(2) - _erfc21(tls, ix, x) + } else { + v1 = _erfc21(tls, ix, x) + } + return v1 + } + if sign != 0 { + v1 = Float32FromInt32(2) - Float32FromFloat32(7.52316384526264e-37) + } else { + v1 = float32(Float32FromFloat32(7.52316384526264e-37) * Float32FromFloat32(7.52316384526264e-37)) + } + return v1 +} + +func Xerfl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xerf(tls, x) +} + +func Xerfcl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xerfc(tls, x) +} + +const EXP2_POLY_ORDER = 5 +const EXP_POLY_ORDER = 5 +const EXP_TABLE_BITS = 7 +const EXP_USE_TOINT_NARROW = 0 +const N = 128 + +// C documentation +// +// /* Handle cases that may overflow or underflow when computing the result that +// is scale*(1+TMP) without intermediate rounding. The bit representation of +// scale is in SBITS, however it has a computed exponent that may have +// overflown into the sign bit so that needs to be adjusted before using it as +// a double. (int32_t)KI is the k used in the argument reduction and exponent +// adjustment of scale, positive k here means the result may overflow and +// negative k means the result may underflow. */ +func _specialcase(tls *TLS, tmp Tdouble_t, sbits Tuint64_t, ki Tuint64_t) (r float64) { + var hi, lo, scale, y3 Tdouble_t + var y, y1, y2, v1 float64 + _, _, _, _, _, _, _, _ = hi, lo, scale, y, y1, y2, y3, v1 + if ki&uint64(0x80000000) == uint64(0) { + /* k > 0, the exponent of scale might have overflowed by <= 460. */ + sbits = uint64(sbits - Uint64FromUint64(1009)<> int32(52)) +} + +func Xexp(tls *TLS, x1 float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x1=%v, (%v:)", tls, x1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var abstop Tuint32_t + var idx, ki, sbits, top, v5 Tuint64_t + var kd, r, r2, scale, tail, tmp, z Tdouble_t + var y, v1 float64 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = abstop, idx, kd, ki, r, r2, sbits, scale, tail, tmp, top, y, z, v1, v5 + abstop = _top12(tls, x1) & uint32(0x7ff) + if abstop-_top12(tls, float64(5.551115123125783e-17)) >= _top12(tls, float64(512))-_top12(tls, float64(5.551115123125783e-17)) { + if abstop-_top12(tls, float64(5.551115123125783e-17)) >= uint32(0x80000000) { + /* Avoid spurious underflow for tiny x. */ + /* Note: 0 is common input. */ + return float64(1) + x1 + } + if abstop >= _top12(tls, float64(1024)) { + v1 = float64(-X__builtin_inff(tls)) + if *(*Tuint64_t)(unsafe.Pointer(&x1)) == *(*Tuint64_t)(unsafe.Pointer(&v1)) { + return float64(0) + } + if abstop >= _top12(tls, float64(X__builtin_inff(tls))) { + return float64(1) + x1 + } + if *(*Tuint64_t)(unsafe.Pointer(&x1))>>int32(63) != 0 { + return X__math_uflow(tls, uint32(0)) + } else { + return X__math_oflow(tls, uint32(0)) + } + } + /* Large x is special cased below. */ + abstop = uint32(0) + } + /* exp(x) = 2^(k/N) * exp(r), with exp(r) in [2^(-1/2N),2^(1/2N)]. */ + /* x = ln2/N*k + r, with int k and r in [-ln2/2N, ln2/2N]. */ + z = Tdouble_t(X__exp_data.Finvln2N * x1) + /* z - kd is in [-1, 1] in non-nearest rounding modes. */ + y = z + X__exp_data.Fshift + v1 = y + goto _3 +_3: + kd = v1 + v1 = kd + ki = *(*Tuint64_t)(unsafe.Pointer(&v1)) + kd = kd - X__exp_data.Fshift + r = x1 + float64(kd*X__exp_data.Fnegln2hiN) + float64(kd*X__exp_data.Fnegln2loN) + /* 2^(k/N) ~= scale * (1 + tail). */ + idx = uint64(2) * (ki % Uint64FromInt32(Int32FromInt32(1)< 2^-200 and scale > 2^-739, so there + is no spurious underflow here even without fma. */ + y = scale + Tdouble_t(scale*tmp) + v1 = y + goto _7 +_7: + return v1 +} + +const HUGE = 0 + +func Xexp10(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var y float64 + var _ /* n at bp+0 */ float64 + var _ /* u at bp+8 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _ = y + y = Xmodf(tls, x, bp) + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp + 8)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp + 8)) = **(**float64)(__ccgo_up(bp)) + /* fabs(n) < 16 without raising invalid on nan */ + if *(*Tuint64_t)(unsafe.Pointer(bp + 8))>>int32(52)&uint64(0x7ff) < Uint64FromInt32(Int32FromInt32(0x3ff)+Int32FromInt32(4)) { + if !(y != 0) { + return _p10[int32(**(**float64)(__ccgo_up(bp)))+int32(15)] + } + y = Xexp2(tls, float64(float64(3.321928094887362)*y)) + return float64(y * _p10[int32(**(**float64)(__ccgo_up(bp)))+int32(15)]) + } + return Xpow(tls, float64(10), x) +} + +var _p10 = [31]float64{ + 0: float64(1e-15), + 1: float64(1e-14), + 2: float64(1e-13), + 3: float64(1e-12), + 4: float64(1e-11), + 5: float64(1e-10), + 6: float64(1e-09), + 7: float64(1e-08), + 8: float64(1e-07), + 9: float64(1e-06), + 10: float64(1e-05), + 11: float64(0.0001), + 12: float64(0.001), + 13: float64(0.01), + 14: float64(0.1), + 15: Float64FromInt32(1), + 16: float64(10), + 17: float64(100), + 18: float64(1000), + 19: float64(10000), + 20: float64(100000), + 21: float64(1e+06), + 22: float64(1e+07), + 23: float64(1e+08), + 24: float64(1e+09), + 25: float64(1e+10), + 26: float64(1e+11), + 27: float64(1e+12), + 28: float64(1e+13), + 29: float64(1e+14), + 30: float64(1e+15), +} + +func Xpow10(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xexp10(tls, x) +} + +func Xexp10f(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var y float32 + var _ /* n at bp+0 */ float32 + var _ /* u at bp+4 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _ = y + y = Xmodff(tls, x, bp) + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp + 4)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp + 4)) = **(**float32)(__ccgo_up(bp)) + /* fabsf(n) < 8 without raising invalid on nan */ + if *(*Tuint32_t)(unsafe.Pointer(bp + 4))>>int32(23)&uint32(0xff) < Uint32FromInt32(Int32FromInt32(0x7f)+Int32FromInt32(3)) { + if !(y != 0) { + return _p101[int32(**(**float32)(__ccgo_up(bp)))+int32(7)] + } + y = Xexp2f(tls, float32(Float32FromFloat32(3.321928094887362)*y)) + return float32(y * _p101[int32(**(**float32)(__ccgo_up(bp)))+int32(7)]) + } + return float32(Xexp2(tls, float64(float64(3.321928094887362)*float64(x)))) +} + +var _p101 = [15]float32{ + 0: Float32FromFloat32(1e-07), + 1: Float32FromFloat32(1e-06), + 2: Float32FromFloat32(1e-05), + 3: Float32FromFloat32(0.0001), + 4: Float32FromFloat32(0.001), + 5: Float32FromFloat32(0.01), + 6: Float32FromFloat32(0.1), + 7: Float32FromInt32(1), + 8: float32(10), + 9: float32(100), + 10: float32(1000), + 11: float32(10000), + 12: float32(100000), + 13: float32(1e+06), + 14: float32(1e+07), +} + +func Xpow10f(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xexp10f(tls, x) +} + +func Xexp10l(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xexp10(tls, x) +} + +func Xpow10l(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xexp10l(tls, x) +} + +// C documentation +// +// /* Handle cases that may overflow or underflow when computing the result that +// is scale*(1+TMP) without intermediate rounding. The bit representation of +// scale is in SBITS, however it has a computed exponent that may have +// overflown into the sign bit so that needs to be adjusted before using it as +// a double. (int32_t)KI is the k used in the argument reduction and exponent +// adjustment of scale, positive k here means the result may overflow and +// negative k means the result may underflow. */ +func _specialcase1(tls *TLS, tmp Tdouble_t, sbits Tuint64_t, ki Tuint64_t) (r float64) { + var hi, lo, scale, y3 Tdouble_t + var y, y1, y2, v1 float64 + _, _, _, _, _, _, _, _ = hi, lo, scale, y, y1, y2, y3, v1 + if ki&uint64(0x80000000) == uint64(0) { + /* k > 0, the exponent of scale might have overflowed by 1. */ + sbits = uint64(sbits - Uint64FromUint64(1)<> int32(52)) +} + +func Xexp2(tls *TLS, x1 float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x1=%v, (%v:)", tls, x1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var abstop Tuint32_t + var idx, ki, sbits, top, v7 Tuint64_t + var kd, r, r2, scale, tail, tmp Tdouble_t + var y, v1 float64 + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = abstop, idx, kd, ki, r, r2, sbits, scale, tail, tmp, top, y, v1, v7 + abstop = _top121(tls, x1) & uint32(0x7ff) + if abstop-_top121(tls, float64(5.551115123125783e-17)) >= _top121(tls, float64(512))-_top121(tls, float64(5.551115123125783e-17)) { + if abstop-_top121(tls, float64(5.551115123125783e-17)) >= uint32(0x80000000) { + /* Avoid spurious underflow for tiny x. */ + /* Note: 0 is common input. */ + return float64(1) + x1 + } + if abstop >= _top121(tls, float64(1024)) { + v1 = float64(-X__builtin_inff(tls)) + if *(*Tuint64_t)(unsafe.Pointer(&x1)) == *(*Tuint64_t)(unsafe.Pointer(&v1)) { + return float64(0) + } + if abstop >= _top121(tls, float64(X__builtin_inff(tls))) { + return float64(1) + x1 + } + if !(*(*Tuint64_t)(unsafe.Pointer(&x1))>>Int32FromInt32(63) != 0) { + return X__math_oflow(tls, uint32(0)) + } else { + v1 = -Float64FromFloat64(1075) + if *(*Tuint64_t)(unsafe.Pointer(&x1)) >= *(*Tuint64_t)(unsafe.Pointer(&v1)) { + return X__math_uflow(tls, uint32(0)) + } + } + } + v1 = float64(928) + if uint64(2)**(*Tuint64_t)(unsafe.Pointer(&x1)) > uint64(2)**(*Tuint64_t)(unsafe.Pointer(&v1)) { + /* Large x is special cased below. */ + abstop = uint32(0) + } + } + /* exp2(x) = 2^(k/N) * 2^r, with 2^r in [2^(-1/2N),2^(1/2N)]. */ + /* x = k/N + r, with int k and r in [-1/2N, 1/2N]. */ + y = x1 + X__exp_data.Fexp2_shift + v1 = y + goto _5 +_5: + kd = v1 + v1 = kd + ki = *(*Tuint64_t)(unsafe.Pointer(&v1)) /* k. */ + kd = kd - X__exp_data.Fexp2_shift /* k/N for int k. */ + r = x1 - kd + /* 2^(k/N) ~= scale * (1 + tail). */ + idx = uint64(2) * (ki % Uint64FromInt32(Int32FromInt32(1)< 2^-65 and scale > 2^-928, so there + is no spurious underflow here even without fma. */ + y = scale + Tdouble_t(scale*tmp) + v1 = y + goto _9 +_9: + return v1 +} + +const EXP2F_POLY_ORDER = 3 +const EXP2F_TABLE_BITS = 5 +const N1 = 32 + +/* +EXP2F_TABLE_BITS = 5 +EXP2F_POLY_ORDER = 3 + +ULP error: 0.502 (nearest rounding.) +Relative error: 1.69 * 2^-34 in [-1/64, 1/64] (before rounding.) +Wrong count: 168353 (all nearest rounding wrong results with fma.) +Non-nearest ULP error: 1 (rounded ULP error) +*/ + +func _top122(tls *TLS, x float32) (r Tuint32_t) { + return *(*Tuint32_t)(unsafe.Pointer(&x)) >> int32(20) +} + +func Xexp2f(tls *TLS, x2 float32) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x2=%v, (%v:)", tls, x2, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var abstop Tuint32_t + var kd, r, r2, s, xd, y2, z Tdouble_t + var ki, t Tuint64_t + var y, v1 float32 + var y1, v2 float64 + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = abstop, kd, ki, r, r2, s, t, xd, y, y1, y2, z, v1, v2 + xd = float64(x2) + abstop = _top122(tls, x2) & uint32(0x7ff) + if abstop >= _top122(tls, Float32FromFloat32(128)) { + /* |x| >= 128 or x is nan. */ + v1 = -X__builtin_inff(tls) + if *(*Tuint32_t)(unsafe.Pointer(&x2)) == *(*Tuint32_t)(unsafe.Pointer(&v1)) { + return Float32FromFloat32(0) + } + if abstop >= _top122(tls, X__builtin_inff(tls)) { + return x2 + x2 + } + if x2 > Float32FromFloat32(0) { + return X__math_oflowf(tls, uint32(0)) + } + if x2 <= -Float32FromFloat32(150) { + return X__math_uflowf(tls, uint32(0)) + } + } + /* x = k/N + r with r in [-1/(2N), 1/(2N)] and int k. */ + y1 = xd + X__exp2f_data.Fshift_scaled + v2 = y1 + goto _3 +_3: + kd = v2 + v2 = kd + ki = *(*Tuint64_t)(unsafe.Pointer(&v2)) + kd = kd - X__exp2f_data.Fshift_scaled /* k/N for int k. */ + r = xd - kd + /* exp2(x) = 2^(k/N) * 2^r ~= s * (C0*r^3 + C1*r^2 + C2*r + 1) */ + t = **(**Tuint64_t)(__ccgo_up(uintptr(unsafe.Pointer(&X__exp2f_data)) + uintptr(ki%Uint64FromInt32(Int32FromInt32(1)< %v", r) }() + } + return Xexp2(tls, x) +} + +const N2 = 128 + +type Texp_data = struct { + Finvln2N float64 + Fshift float64 + Fnegln2hiN float64 + Fnegln2loN float64 + Fpoly [4]float64 + Fexp2_shift float64 + Fexp2_poly [5]float64 + Ftab [256]Tuint64_t +} + +const N3 = 32 + +/* +EXP2F_TABLE_BITS = 5 +EXP2F_POLY_ORDER = 3 + +ULP error: 0.502 (nearest rounding.) +Relative error: 1.69 * 2^-34 in [-ln2/64, ln2/64] (before rounding.) +Wrong count: 170635 (all nearest rounding wrong results with fma.) +Non-nearest ULP error: 1 (rounded ULP error) +*/ + +func _top123(tls *TLS, x float32) (r Tuint32_t) { + return *(*Tuint32_t)(unsafe.Pointer(&x)) >> int32(20) +} + +func Xexpf(tls *TLS, x2 float32) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x2=%v, (%v:)", tls, x2, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var abstop Tuint32_t + var kd, r, r2, s, xd, y2, z Tdouble_t + var ki, t Tuint64_t + var y, v1 float32 + var y1, v2 float64 + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = abstop, kd, ki, r, r2, s, t, xd, y, y1, y2, z, v1, v2 + xd = float64(x2) + abstop = _top123(tls, x2) & uint32(0x7ff) + if abstop >= _top123(tls, Float32FromFloat32(88)) { + /* |x| >= 88 or x is nan. */ + v1 = -X__builtin_inff(tls) + if *(*Tuint32_t)(unsafe.Pointer(&x2)) == *(*Tuint32_t)(unsafe.Pointer(&v1)) { + return Float32FromFloat32(0) + } + if abstop >= _top123(tls, X__builtin_inff(tls)) { + return x2 + x2 + } + if x2 > Float32FromFloat32(88.72283172607422) { /* x > log(0x1p128) ~= 88.72 */ + return X__math_oflowf(tls, uint32(0)) + } + if x2 < -Float32FromFloat32(103.97207641601562) { /* x < log(0x1p-150) ~= -103.97 */ + return X__math_uflowf(tls, uint32(0)) + } + } + /* x*N/Ln2 = k + r with r in [-1/2, 1/2] and int k. */ + z = Tdouble_t(X__exp2f_data.Finvln2_scaled * xd) + /* Round and convert z to int, the result is in [-150*N, 128*N] and + ideally ties-to-even rule is used, otherwise the magnitude of r + can be bigger which gives larger approximation error. */ + y1 = z + X__exp2f_data.Fshift + v2 = y1 + goto _3 +_3: + kd = v2 + v2 = kd + ki = *(*Tuint64_t)(unsafe.Pointer(&v2)) + kd = kd - X__exp2f_data.Fshift + r = z - kd + /* exp(x) = 2^(k/N) * 2^(r/N) ~= s * (C0*r^3 + C1*r^2 + C2*r + 1) */ + t = **(**Tuint64_t)(__ccgo_up(uintptr(unsafe.Pointer(&X__exp2f_data)) + uintptr(ki%Uint64FromInt32(Int32FromInt32(1)< %v", r) }() + } + return Xexp(tls, x) +} + +var _o_threshold = float64(709.782712893384) /* 0x40862E42, 0xFEFA39EF */ +var _ln2_hi = float64(0.6931471803691238) /* 0x3fe62e42, 0xfee00000 */ +var _ln2_lo = float64(1.9082149292705877e-10) /* 0x3dea39ef, 0x35793c76 */ +var _invln2 = float64(1.4426950408889634) /* 0x3ff71547, 0x652b82fe */ +/* Scaled Q's: Qn_here = 2**n * Qn_above, for R(2*z) where z = hxs = x*x/2: */ +var _Q1 = -Float64FromFloat64(0.03333333333333313) /* BFA11111 111110F4 */ +var _Q2 = float64(0.0015873015872548146) /* 3F5A01A0 19FE5585 */ +var _Q3 = -Float64FromFloat64(7.93650757867488e-05) /* BF14CE19 9EAADBB7 */ +var _Q4 = float64(4.008217827329362e-06) /* 3ED0CFCA 86E65239 */ +var _Q5 = -Float64FromFloat64(2.0109921818362437e-07) /* BE8AFDB7 6E09C32D */ + +func Xexpm1(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var c, e, hfx, hi, hxs, lo, r1, t, twopk, y3 Tdouble_t + var hx Tuint32_t + var k, sign int32 + var y float32 + var y1, y2, v3 float64 + var v1 uint64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + var _ /* u at bp+8 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = c, e, hfx, hi, hx, hxs, k, lo, r1, sign, t, twopk, y, y1, y2, y3, v1, v3 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp + 8)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp + 8)) = x3 + hx = uint32(*(*Tuint64_t)(unsafe.Pointer(bp + 8)) >> int32(32) & uint64(0x7fffffff)) + sign = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp + 8)) >> int32(63)) + /* filter out huge and non-finite argument */ + if hx >= uint32(0x4043687A) { /* if |x|>=56*ln2 */ + *(*float64)(unsafe.Pointer(bp)) = x3 + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 + _2: + if BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)< _o_threshold { + x3 = x3 * float64(8.98846567431158e+307) + return x3 + } + } + /* argument reduction */ + if hx > uint32(0x3fd62e42) { /* if |x| > 0.5 ln2 */ + if hx < uint32(0x3FF0A2B2) { /* and |x| < 1.5 ln2 */ + if !(sign != 0) { + hi = x3 - _ln2_hi + lo = _ln2_lo + k = int32(1) + } else { + hi = x3 + _ln2_hi + lo = -_ln2_lo + k = -int32(1) + } + } else { + if sign != 0 { + v3 = -Float64FromFloat64(0.5) + } else { + v3 = float64(0.5) + } + k = int32(float64(_invln2*x3) + v3) + t = float64(k) + hi = x3 - float64(t*_ln2_hi) /* t*ln2_hi is exact here */ + lo = Tdouble_t(t * _ln2_lo) + } + x3 = hi - lo + c = hi - x3 - lo + } else { + if hx < uint32(0x3c900000) { /* |x| < 2**-54, return x */ + if hx < uint32(0x00100000) { + if uint64(4) == uint64(4) { + y = float32(x3) + } else { + if uint64(4) == uint64(8) { + y1 = float64(float32(x3)) + } else { + y2 = float64(float32(x3)) + } + } + } + return x3 + } else { + k = 0 + } + } + /* x is now in primary range */ + hfx = Tdouble_t(float64(0.5) * x3) + hxs = Tdouble_t(x3 * hfx) + r1 = float64(1) + float64(hxs*(_Q1+float64(hxs*(_Q2+float64(hxs*(_Q3+float64(hxs*(_Q4+float64(hxs*_Q5))))))))) + t = float64(3) - float64(r1*hfx) + e = Tdouble_t(hxs * ((r1 - t) / (Float64FromFloat64(6) - float64(x3*t)))) + if k == 0 { /* c is 0 */ + return x3 - (float64(x3*e) - hxs) + } + e = float64(x3*(e-c)) - c + e = e - hxs + /* exp(x) ~ 2^k (Xreduced - e + 1) */ + if k == -int32(1) { + return float64(float64(0.5)*(x3-e)) - float64(0.5) + } + if k == int32(1) { + if x3 < -Float64FromFloat64(0.25) { + return float64(-Float64FromFloat64(2) * (e - (x3 + Float64FromFloat64(0.5)))) + } + return float64(1) + float64(float64(2)*(x3-e)) + } + *(*Tuint64_t)(unsafe.Pointer(bp + 8)) = Uint64FromInt32(Int32FromInt32(0x3ff)+k) << int32(52) /* 2^k */ + twopk = *(*float64)(unsafe.Pointer(bp + 8)) + if k < 0 || k > int32(56) { /* suffice to return exp(x)-1 */ + y3 = x3 - e + float64(1) + if k == int32(1024) { + y3 = Tdouble_t(Tdouble_t(y3*float64(2)) * float64(8.98846567431158e+307)) + } else { + y3 = Tdouble_t(y3 * twopk) + } + return y3 - float64(1) + } + *(*Tuint64_t)(unsafe.Pointer(bp + 8)) = Uint64FromInt32(Int32FromInt32(0x3ff)-k) << int32(52) /* 2^-k */ + if k < int32(20) { + y3 = Tdouble_t((x3 - e + (Float64FromInt32(1) - *(*float64)(unsafe.Pointer(bp + 8)))) * twopk) + } else { + y3 = Tdouble_t((x3 - (e + *(*float64)(unsafe.Pointer(bp + 8))) + Float64FromInt32(1)) * twopk) + } + return y3 +} + +var _ln2_hi1 = float32(0.69313812256) /* 0x3f317180 */ +var _ln2_lo1 = float32(9.0580006145e-06) /* 0x3717f7d1 */ +var _invln21 = float32(1.4426950216) /* 0x3fb8aa3b */ +/* + * Domain [-0.34568, 0.34568], range ~[-6.694e-10, 6.696e-10]: + * |6 / x * (1 + 2 * (1 / (exp(x) - 1) - 1 / x)) - q(x)| < 2**-30.04 + * Scaled coefficients: Qn_here = 2**n * Qn_for_q (see s_expm1.c): + */ +var _Q11 = float32(-Float64FromFloat64(0.033333212137)) /* -0x888868.0p-28 */ +var _Q21 = float32(0.0015807170421) /* 0xcf3010.0p-33 */ + +func Xexpm1f(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var c, e, hfx, hi, hxs, lo, r1, t, twopk, y3 Tfloat_t + var hx Tuint32_t + var k, sign int32 + var y, v1 float32 + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = c, e, hfx, hi, hx, hxs, k, lo, r1, sign, t, twopk, y, y1, y2, y3, v1 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + hx = *(*Tuint32_t)(unsafe.Pointer(bp)) & uint32(0x7fffffff) + sign = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(31)) + /* filter out huge and non-finite argument */ + if hx >= uint32(0x4195b844) { /* if |x|>=27*ln2 */ + if hx > uint32(0x7f800000) { /* NaN */ + return x3 + } + if sign != 0 { + return float32(-Int32FromInt32(1)) + } + if hx > uint32(0x42b17217) { /* x > log(FLT_MAX) */ + x3 = x3 * Float32FromFloat32(1.7014118346046923e+38) + return x3 + } + } + /* argument reduction */ + if hx > uint32(0x3eb17218) { /* if |x| > 0.5 ln2 */ + if hx < uint32(0x3F851592) { /* and |x| < 1.5 ln2 */ + if !(sign != 0) { + hi = x3 - _ln2_hi1 + lo = _ln2_lo1 + k = int32(1) + } else { + hi = x3 + _ln2_hi1 + lo = -_ln2_lo1 + k = -int32(1) + } + } else { + if sign != 0 { + v1 = -Float32FromFloat32(0.5) + } else { + v1 = Float32FromFloat32(0.5) + } + k = int32(float32(_invln21*x3) + v1) + t = float32(k) + hi = x3 - float32(t*_ln2_hi1) /* t*ln2_hi is exact here */ + lo = Tfloat_t(t * _ln2_lo1) + } + x3 = hi - lo + c = hi - x3 - lo + } else { + if hx < uint32(0x33000000) { /* when |x|<2**-25, return x */ + if hx < uint32(0x00800000) { + if uint64(4) == uint64(4) { + y = float32(x3 * x3) + } else { + if uint64(4) == uint64(8) { + y1 = float64(x3 * x3) + } else { + y2 = float64(x3 * x3) + } + } + } + return x3 + } else { + k = 0 + } + } + /* x is now in primary range */ + hfx = Tfloat_t(Float32FromFloat32(0.5) * x3) + hxs = Tfloat_t(x3 * hfx) + r1 = Float32FromFloat32(1) + float32(hxs*(_Q11+float32(hxs*_Q21))) + t = Float32FromFloat32(3) - float32(r1*hfx) + e = Tfloat_t(hxs * ((r1 - t) / (Float32FromFloat32(6) - float32(x3*t)))) + if k == 0 { /* c is 0 */ + return x3 - (float32(x3*e) - hxs) + } + e = float32(x3*(e-c)) - c + e = e - hxs + /* exp(x) ~ 2^k (Xreduced - e + 1) */ + if k == -int32(1) { + return float32(Float32FromFloat32(0.5)*(x3-e)) - Float32FromFloat32(0.5) + } + if k == int32(1) { + if x3 < -Float32FromFloat32(0.25) { + return float32(-Float32FromFloat32(2) * (e - (x3 + Float32FromFloat32(0.5)))) + } + return Float32FromFloat32(1) + float32(Float32FromFloat32(2)*(x3-e)) + } + *(*Tuint32_t)(unsafe.Pointer(bp)) = Uint32FromInt32((int32(0x7f) + k) << int32(23)) /* 2^k */ + twopk = *(*float32)(unsafe.Pointer(bp)) + if k < 0 || k > int32(56) { /* suffice to return exp(x)-1 */ + y3 = x3 - e + Float32FromFloat32(1) + if k == int32(128) { + y3 = Tfloat_t(Tfloat_t(y3*Float32FromFloat32(2)) * Float32FromFloat32(1.7014118346046923e+38)) + } else { + y3 = Tfloat_t(y3 * twopk) + } + return y3 - Float32FromFloat32(1) + } + *(*Tuint32_t)(unsafe.Pointer(bp)) = Uint32FromInt32((int32(0x7f) - k) << int32(23)) /* 2^-k */ + if k < int32(23) { + y3 = Tfloat_t((x3 - e + (Float32FromInt32(1) - *(*float32)(unsafe.Pointer(bp)))) * twopk) + } else { + y3 = Tfloat_t((x3 - (e + *(*float32)(unsafe.Pointer(bp))) + Float32FromInt32(1)) * twopk) + } + return y3 +} + +func Xexpm1l(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xexpm1(tls, x) +} + +func Xfabs(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uintptr + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _ = v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + v1 = bp + *(*Tuint64_t)(unsafe.Pointer(v1)) = Tuint64_t(*(*Tuint64_t)(unsafe.Pointer(v1)) & (-Uint64FromUint64(1) / Uint64FromInt32(2))) + return *(*float64)(unsafe.Pointer(bp)) +} + +func Xfabsf(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + *(*Tuint32_t)(unsafe.Pointer(bp)) &= uint32(0x7fffffff) + return *(*float32)(unsafe.Pointer(bp)) +} + +func Xfabsl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfabs(tls, x) +} + +func Xfdim(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uint64 + var v5 float64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _, _ = v1, v5 + *(*float64)(unsafe.Pointer(bp)) = x + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + if BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)< y { + v5 = x - y + } else { + v5 = Float64FromInt32(0) + } + return v5 +} + +func Xfdimf(tls *TLS, x float32, y float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uint32 + var v5 float32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _, _ = v1, v5 + *(*float32)(unsafe.Pointer(bp)) = x + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + if BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return x + } + *(*float32)(unsafe.Pointer(bp)) = y + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _4 +_4: + if BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return y + } + if x > y { + v5 = x - y + } else { + v5 = Float32FromInt32(0) + } + return v5 +} + +func Xfdiml(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfdim(tls, x, y) +} + +func Xfinite(tls *TLS, x float64) (r int32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uint64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _ = v1 + *(*float64)(unsafe.Pointer(bp)) = x + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + return BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) < Uint64FromUint64(0x7ff)< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uint32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _ = v1 + *(*float32)(unsafe.Pointer(bp)) = x + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + return BoolInt32(v1&uint32(0x7fffffff) < uint32(0x7f800000)) +} + +const DBL_EPSILON7 = 2.220446049250313e-16 + +var _toint3 = Float64FromInt32(1) / Float64FromFloat64(2.220446049250313e-16) + +func Xfloor(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e, v1 int32 + var y float32 + var y1, y2 float64 + var y3 Tdouble_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _ = e, y, y1, y2, y3, v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + e = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + if e >= Int32FromInt32(0x3ff)+Int32FromInt32(52) || x3 == Float64FromInt32(0) { + return x3 + } + /* y = int(x) - x, where int(x) is an integer neighbor of x */ + if *(*Tuint64_t)(unsafe.Pointer(bp))>>int32(63) != 0 { + y3 = x3 - _toint3 + _toint3 - x3 + } else { + y3 = x3 + _toint3 - _toint3 - x3 + } + /* special case because of non-nearest rounding modes */ + if e <= Int32FromInt32(0x3ff)-Int32FromInt32(1) { + if uint64(8) == uint64(4) { + y = float32(y3) + } else { + if uint64(8) == uint64(8) { + y1 = y3 + } else { + y2 = y3 + } + } + if *(*Tuint64_t)(unsafe.Pointer(bp))>>int32(63) != 0 { + v1 = -int32(1) + } else { + v1 = 0 + } + return float64(v1) + } + if y3 > Float64FromInt32(0) { + return x3 + y3 - Float64FromInt32(1) + } + return x3 + y3 +} + +const DBL_EPSILON8 = 0 + +func Xfloorf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e int32 + var m Tuint32_t + var y float32 + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _ = e, m, y, y1, y2 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + e = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp))>>Int32FromInt32(23)&Uint32FromInt32(0xff)) - int32(0x7f) + if e >= int32(23) { + return x3 + } + if e >= 0 { + m = Uint32FromInt32(int32(0x007fffff) >> e) + if *(*Tuint32_t)(unsafe.Pointer(bp))&m == uint32(0) { + return x3 + } + if uint64(4) == uint64(4) { + y = x3 + Float32FromFloat32(1.329227995784916e+36) + } else { + if uint64(4) == uint64(8) { + y1 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } else { + y2 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } + } + if *(*Tuint32_t)(unsafe.Pointer(bp))>>int32(31) != 0 { + *(*Tuint32_t)(unsafe.Pointer(bp)) += m + } + *(*Tuint32_t)(unsafe.Pointer(bp)) &= ^m + } else { + if uint64(4) == uint64(4) { + y = x3 + Float32FromFloat32(1.329227995784916e+36) + } else { + if uint64(4) == uint64(8) { + y1 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } else { + y2 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } + } + if *(*Tuint32_t)(unsafe.Pointer(bp))>>int32(31) == uint32(0) { + *(*Tuint32_t)(unsafe.Pointer(bp)) = uint32(0) + } else { + if *(*Tuint32_t)(unsafe.Pointer(bp))< %v", r) }() + } + return Xfloor(tls, x) +} + +const DBL_MIN1 = 2.2250738585072014e-308 +const FLT_MIN1 = 1.1754943508222875e-38 +const ZEROINFNAN = 971 + +type Tnum = struct { + Fm Tuint64_t + Fe int32 + Fsign int32 +} + +func _normalize(tls *TLS, x float64) (r Tnum) { + var e, sign, v2 int32 + var ix Tuint64_t + var v1 float64 + _, _, _, _, _ = e, ix, sign, v1, v2 + ix = *(*Tuint64_t)(unsafe.Pointer(&x)) + e = Int32FromUint64(ix >> int32(52)) + sign = e & int32(0x800) + e = e & int32(0x7ff) + if !(e != 0) { + v1 = float64(x * float64(9.223372036854776e+18)) + ix = *(*Tuint64_t)(unsafe.Pointer(&v1)) + e = Int32FromUint64(ix >> int32(52) & uint64(0x7ff)) + if e != 0 { + v2 = e - int32(63) + } else { + v2 = int32(0x800) + } + e = v2 + } + ix = uint64(ix & (Uint64FromUint64(1)<> int32(32) + ylo = uint64(uint32(y)) + yhi = y >> int32(32) + t1 = xlo * ylo + t2 = xlo*yhi + xhi*ylo + t3 = xhi * yhi + **(**Tuint64_t)(__ccgo_up(lo)) = t1 + t2<>Int32FromInt32(32) + BoolUint64(t1 > **(**Tuint64_t)(__ccgo_up(lo))) +} + +func Xfma(tls *TLS, x1 float64, y1 float64, z float64) (r2 float64) { + if __ccgo_strace { + trc("tls=%v x1=%v y1=%v z=%v, (%v:)", tls, x1, y1, z, origin(2)) + defer func() { trc("-> %v", r2) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var c, r1 float64 + var d, e, nonzero, r, samesign, sign, v2 int32 + var fltmin float32 + var i Tint64_t + var nx, ny, nz Tnum + var t, zhi, zlo, v1 Tuint64_t + var tiny Tdouble_t + var y Tuint32_t + var _ /* rhi at bp+0 */ Tuint64_t + var _ /* rlo at bp+8 */ Tuint64_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = c, d, e, fltmin, i, nonzero, nx, ny, nz, r, r1, samesign, sign, t, tiny, y, zhi, zlo, v1, v2 + nx = _normalize(tls, x1) + ny = _normalize(tls, y1) + nz = _normalize(tls, z) + if nx.Fe >= Int32FromInt32(0x7ff)-Int32FromInt32(0x3ff)-Int32FromInt32(52)-Int32FromInt32(1) || ny.Fe >= Int32FromInt32(0x7ff)-Int32FromInt32(0x3ff)-Int32FromInt32(52)-Int32FromInt32(1) { + return float64(x1*y1) + z + } + if nz.Fe >= Int32FromInt32(0x7ff)-Int32FromInt32(0x3ff)-Int32FromInt32(52)-Int32FromInt32(1) { + if nz.Fe > Int32FromInt32(0x7ff)-Int32FromInt32(0x3ff)-Int32FromInt32(52)-Int32FromInt32(1) { /* z==0 */ + return float64(x1*y1) + z + } + return z + } + _mul(tls, bp, bp+8, nx.Fm, ny.Fm) + /* either top 20 or 21 bits of rhi and last 2 bits of rlo are 0 */ + /* align exponents */ + e = nx.Fe + ny.Fe + d = nz.Fe - e + /* shift bits z<<=kz, r>>=kr, so kz+kr == d, set e = e+kr (== ez-kz) */ + if d > 0 { + if d < int32(64) { + zlo = nz.Fm << d + zhi = nz.Fm >> (int32(64) - d) + } else { + zlo = uint64(0) + zhi = nz.Fm + e = nz.Fe - int32(64) + d = d - int32(64) + if d == 0 { + } else { + if d < int32(64) { + **(**Tuint64_t)(__ccgo_up(bp + 8)) = **(**Tuint64_t)(__ccgo_up(bp))<<(int32(64)-d) | **(**Tuint64_t)(__ccgo_up(bp + 8))>>d | BoolUint64(!!(**(**Tuint64_t)(__ccgo_up(bp + 8))<<(Int32FromInt32(64)-d) != 0)) + **(**Tuint64_t)(__ccgo_up(bp)) = **(**Tuint64_t)(__ccgo_up(bp)) >> d + } else { + **(**Tuint64_t)(__ccgo_up(bp + 8)) = uint64(1) + **(**Tuint64_t)(__ccgo_up(bp)) = uint64(0) + } + } + } + } else { + zhi = uint64(0) + d = -d + if d == 0 { + zlo = nz.Fm + } else { + if d < int32(64) { + zlo = nz.Fm>>d | BoolUint64(!!(nz.Fm<<(Int32FromInt32(64)-d) != 0)) + } else { + zlo = uint64(1) + } + } + } + /* add */ + sign = nx.Fsign ^ ny.Fsign + samesign = BoolInt32(!(sign^nz.Fsign != 0)) + nonzero = int32(1) + if samesign != 0 { + /* r += z */ + **(**Tuint64_t)(__ccgo_up(bp + 8)) = **(**Tuint64_t)(__ccgo_up(bp + 8)) + zlo + **(**Tuint64_t)(__ccgo_up(bp)) = **(**Tuint64_t)(__ccgo_up(bp)) + (zhi + BoolUint64(**(**Tuint64_t)(__ccgo_up(bp + 8)) < zlo)) + } else { + /* r -= z */ + t = **(**Tuint64_t)(__ccgo_up(bp + 8)) + **(**Tuint64_t)(__ccgo_up(bp + 8)) = **(**Tuint64_t)(__ccgo_up(bp + 8)) - zlo + **(**Tuint64_t)(__ccgo_up(bp)) = **(**Tuint64_t)(__ccgo_up(bp)) - zhi - BoolUint64(t < **(**Tuint64_t)(__ccgo_up(bp + 8))) + if **(**Tuint64_t)(__ccgo_up(bp))>>int32(63) != 0 { + **(**Tuint64_t)(__ccgo_up(bp + 8)) = -**(**Tuint64_t)(__ccgo_up(bp + 8)) + **(**Tuint64_t)(__ccgo_up(bp)) = -**(**Tuint64_t)(__ccgo_up(bp)) - BoolUint64(!!(**(**Tuint64_t)(__ccgo_up(bp + 8)) != 0)) + sign = BoolInt32(!(sign != 0)) + } + nonzero = BoolInt32(!!(**(**Tuint64_t)(__ccgo_up(bp)) != 0)) + } + /* set rhi to top 63bit of the result (last bit is sticky) */ + if nonzero != 0 { + e = e + int32(64) + v1 = **(**Tuint64_t)(__ccgo_up(bp)) + if v1>>Int32FromInt32(32) != 0 { + y = uint32(v1 >> int32(32)) + r = Int32FromInt32(0) + } else { + y = uint32(v1) + r = Int32FromInt32(32) + } + if y>>Int32FromInt32(16) != 0 { + y = y >> uint32(16) + } else { + r = r | int32(16) + } + if y>>Int32FromInt32(8) != 0 { + y = y >> uint32(8) + } else { + r = r | int32(8) + } + if y>>Int32FromInt32(4) != 0 { + y = y >> uint32(4) + } else { + r = r | int32(4) + } + if y>>Int32FromInt32(2) != 0 { + y = y >> uint32(2) + } else { + r = r | int32(2) + } + v2 = r | BoolInt32(!(y>>Int32FromInt32(1) != 0)) + goto _3 + _3: + d = v2 - int32(1) + /* note: d > 0 */ + **(**Tuint64_t)(__ccgo_up(bp)) = **(**Tuint64_t)(__ccgo_up(bp))<>(int32(64)-d) | BoolUint64(!!(**(**Tuint64_t)(__ccgo_up(bp + 8))<>Int32FromInt32(32) != 0 { + y = uint32(v1 >> int32(32)) + r = Int32FromInt32(0) + } else { + y = uint32(v1) + r = Int32FromInt32(32) + } + if y>>Int32FromInt32(16) != 0 { + y = y >> uint32(16) + } else { + r = r | int32(16) + } + if y>>Int32FromInt32(8) != 0 { + y = y >> uint32(8) + } else { + r = r | int32(8) + } + if y>>Int32FromInt32(4) != 0 { + y = y >> uint32(4) + } else { + r = r | int32(4) + } + if y>>Int32FromInt32(2) != 0 { + y = y >> uint32(2) + } else { + r = r | int32(2) + } + v2 = r | BoolInt32(!(y>>Int32FromInt32(1) != 0)) + goto _6 + _6: + d = v2 - int32(1) + if d < 0 { + **(**Tuint64_t)(__ccgo_up(bp)) = **(**Tuint64_t)(__ccgo_up(bp + 8))>>int32(1) | **(**Tuint64_t)(__ccgo_up(bp + 8))&uint64(1) + } else { + **(**Tuint64_t)(__ccgo_up(bp)) = **(**Tuint64_t)(__ccgo_up(bp + 8)) << d + } + } else { + /* exact +-0 */ + return float64(x1*y1) + z + } + } + e = e - d + /* convert to double */ + i = Int64FromUint64(**(**Tuint64_t)(__ccgo_up(bp))) /* i is in [1<<62,(1<<63)-1] */ + if sign != 0 { + i = -i + } + r1 = float64(i) /* |r| is in [0x1p62,0x1p63] */ + if e < -Int32FromInt32(1022)-Int32FromInt32(62) { + /* result is subnormal before rounding */ + if e == -Int32FromInt32(1022)-Int32FromInt32(63) { + c = float64(9.223372036854776e+18) + if sign != 0 { + c = -c + } + if r1 == c { + /* min normal after rounding, underflow depends + on arch behaviour which can be imitated by + a double to float conversion */ + fltmin = float32(float64(Float64FromFloat64(1.0842021401737618e-19)*Float64FromFloat32(1.1754943508222875e-38)) * r1) + return float64(Float64FromFloat64(2.2250738585072014e-308) / Float64FromFloat32(1.1754943508222875e-38) * float64(fltmin)) + } + /* one bit is lost when scaled, add another top bit to + only round once at conversion if it is inexact */ + if **(**Tuint64_t)(__ccgo_up(bp))<>int32(1)|**(**Tuint64_t)(__ccgo_up(bp))&uint64(1)) | Uint64FromUint64(1)<>d | BoolUint64(!!(**(**Tuint64_t)(__ccgo_up(bp))<<(Int32FromInt32(64)-d) != 0))) << d) + if sign != 0 { + i = -i + } + r1 = float64(i) + } + } + return Xscalbn(tls, r1, e) +} + +const DBL_MIN2 = 0 +const FLT_MIN2 = 0 + +func Xfmal(tls *TLS, x float64, y float64, z float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v z=%v, (%v:)", tls, x, y, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfma(tls, x, y, z) +} + +func Xfmax(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1, v3, v5 uint64 + var v9 float64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _, _, _, _ = v1, v3, v5, v9 + *(*float64)(unsafe.Pointer(bp)) = x + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + if BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(63)) != Int32FromUint64(v3>>Int32FromInt32(63)) { + *(*float64)(unsafe.Pointer(bp)) = x + v5 = *(*uint64)(unsafe.Pointer(bp)) + goto _11 + _11: + if Int32FromUint64(v5>>Int32FromInt32(63)) != 0 { + v9 = y + } else { + v9 = x + } + return v9 + } + if x < y { + v9 = y + } else { + v9 = x + } + return v9 +} + +func Xfmaxf(tls *TLS, x float32, y float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1, v3, v5 uint32 + var v9 float32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _, _, _, _ = v1, v3, v5, v9 + *(*float32)(unsafe.Pointer(bp)) = x + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + if BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return y + } + *(*float32)(unsafe.Pointer(bp)) = y + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _4 +_4: + if BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return x + } + /* handle signed zeroes, see C99 Annex F.9.9.2 */ + *(*float32)(unsafe.Pointer(bp)) = x + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _6 +_6: + *(*float32)(unsafe.Pointer(bp)) = y + v3 = *(*uint32)(unsafe.Pointer(bp)) + goto _8 +_8: + if Int32FromUint32(v1>>Int32FromInt32(31)) != Int32FromUint32(v3>>Int32FromInt32(31)) { + *(*float32)(unsafe.Pointer(bp)) = x + v5 = *(*uint32)(unsafe.Pointer(bp)) + goto _11 + _11: + if Int32FromUint32(v5>>Int32FromInt32(31)) != 0 { + v9 = y + } else { + v9 = x + } + return v9 + } + if x < y { + v9 = y + } else { + v9 = x + } + return v9 +} + +func Xfmaxl(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfmax(tls, x, y) +} + +func Xfmin(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1, v3, v5 uint64 + var v9 float64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _, _, _, _ = v1, v3, v5, v9 + *(*float64)(unsafe.Pointer(bp)) = x + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + if BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(63)) != Int32FromUint64(v3>>Int32FromInt32(63)) { + *(*float64)(unsafe.Pointer(bp)) = x + v5 = *(*uint64)(unsafe.Pointer(bp)) + goto _11 + _11: + if Int32FromUint64(v5>>Int32FromInt32(63)) != 0 { + v9 = x + } else { + v9 = y + } + return v9 + } + if x < y { + v9 = x + } else { + v9 = y + } + return v9 +} + +func Xfminf(tls *TLS, x float32, y float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1, v3, v5 uint32 + var v9 float32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _, _, _, _ = v1, v3, v5, v9 + *(*float32)(unsafe.Pointer(bp)) = x + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + if BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return y + } + *(*float32)(unsafe.Pointer(bp)) = y + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _4 +_4: + if BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return x + } + /* handle signed zeros, see C99 Annex F.9.9.2 */ + *(*float32)(unsafe.Pointer(bp)) = x + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _6 +_6: + *(*float32)(unsafe.Pointer(bp)) = y + v3 = *(*uint32)(unsafe.Pointer(bp)) + goto _8 +_8: + if Int32FromUint32(v1>>Int32FromInt32(31)) != Int32FromUint32(v3>>Int32FromInt32(31)) { + *(*float32)(unsafe.Pointer(bp)) = x + v5 = *(*uint32)(unsafe.Pointer(bp)) + goto _11 + _11: + if Int32FromUint32(v5>>Int32FromInt32(31)) != 0 { + v9 = x + } else { + v9 = y + } + return v9 + } + if x < y { + v9 = x + } else { + v9 = y + } + return v9 +} + +func Xfminl(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfmin(tls, x, y) +} + +func Xfmod(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var ex, ey, sx int32 + var i, uxi Tuint64_t + var v1 uint64 + var v3 bool + var v6 uintptr + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + var _ /* ux at bp+8 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + var _ /* uy at bp+16 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _, _ = ex, ey, i, sx, uxi, v1, v3, v6 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp + 8)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp + 8)) = x + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp + 16)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp + 16)) = y + ex = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp + 8)) >> int32(52) & uint64(0x7ff)) + ey = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp + 16)) >> int32(52) & uint64(0x7ff)) + sx = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp + 8)) >> int32(63)) + /* in the followings uxi should be ux.i, but then gcc wrongly adds */ + /* float load/store to inner loops ruining performance and code size */ + uxi = *(*Tuint64_t)(unsafe.Pointer(bp + 8)) + if v3 = *(*Tuint64_t)(unsafe.Pointer(bp + 16))<>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>int32(63) == uint64(0)) { + break + } + goto _4 + _4: + ; + ex = ex - 1 + i = i << uint64(1) + } + uxi = uxi << Uint64FromInt32(-ex+int32(1)) + } else { + uxi = uint64(uxi & (-Uint64FromUint64(1) >> Int32FromInt32(12))) + uxi = uint64(uxi | Uint64FromUint64(1)<>int32(63) == uint64(0)) { + break + } + goto _5 + _5: + ; + ey = ey - 1 + i = i << uint64(1) + } + *(*Tuint64_t)(unsafe.Pointer(bp + 16)) <<= Uint64FromInt32(-ey + int32(1)) + } else { + v6 = bp + 16 + *(*Tuint64_t)(unsafe.Pointer(v6)) = Tuint64_t(*(*Tuint64_t)(unsafe.Pointer(v6)) & (-Uint64FromUint64(1) >> Int32FromInt32(12))) + v6 = bp + 16 + *(*Tuint64_t)(unsafe.Pointer(v6)) = Tuint64_t(*(*Tuint64_t)(unsafe.Pointer(v6)) | Uint64FromUint64(1)< ey) { + break + } + i = uxi - *(*Tuint64_t)(unsafe.Pointer(bp + 16)) + if i>>int32(63) == uint64(0) { + if i == uint64(0) { + return float64(Float64FromInt32(0) * x) + } + uxi = i + } + uxi = uxi << uint64(1) + goto _8 + _8: + ; + ex = ex - 1 + } + i = uxi - *(*Tuint64_t)(unsafe.Pointer(bp + 16)) + if i>>int32(63) == uint64(0) { + if i == uint64(0) { + return float64(Float64FromInt32(0) * x) + } + uxi = i + } + for { + if !(uxi>>int32(52) == uint64(0)) { + break + } + goto _9 + _9: + ; + uxi = uxi << uint64(1) + ex = ex - 1 + } + /* scale result */ + if ex > 0 { + uxi = uint64(uxi - Uint64FromUint64(1)<> Uint64FromInt32(-ex+int32(1)) + } + uxi = uxi | Uint64FromInt32(sx)< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ex, ey int32 + var i, sx, uxi Tuint32_t + var v1 uint32 + var v3 bool + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + var _ /* ux at bp+4 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + var _ /* uy at bp+8 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _, _ = ex, ey, i, sx, uxi, v1, v3 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp + 4)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp + 4)) = x + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp + 8)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp + 8)) = y + ex = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp + 4)) >> int32(23) & uint32(0xff)) + ey = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp + 8)) >> int32(23) & uint32(0xff)) + sx = *(*Tuint32_t)(unsafe.Pointer(bp + 4)) & uint32(0x80000000) + uxi = *(*Tuint32_t)(unsafe.Pointer(bp + 4)) + if v3 = *(*Tuint32_t)(unsafe.Pointer(bp + 8))< uint32(0x7f800000)) != 0 || ex == int32(0xff) { + return float32(x*y) / float32(x*y) + } + if uxi<>int32(31) == uint32(0)) { + break + } + goto _4 + _4: + ; + ex = ex - 1 + i = i << uint32(1) + } + uxi = uxi << Uint32FromInt32(-ex+int32(1)) + } else { + uxi = uxi & (-Uint32FromUint32(1) >> Int32FromInt32(9)) + uxi = uxi | Uint32FromUint32(1)<>int32(31) == uint32(0)) { + break + } + goto _5 + _5: + ; + ey = ey - 1 + i = i << uint32(1) + } + *(*Tuint32_t)(unsafe.Pointer(bp + 8)) <<= Uint32FromInt32(-ey + int32(1)) + } else { + *(*Tuint32_t)(unsafe.Pointer(bp + 8)) &= -Uint32FromUint32(1) >> Int32FromInt32(9) + *(*Tuint32_t)(unsafe.Pointer(bp + 8)) |= Uint32FromUint32(1) << Int32FromInt32(23) + } + /* x mod y */ + for { + if !(ex > ey) { + break + } + i = uxi - *(*Tuint32_t)(unsafe.Pointer(bp + 8)) + if i>>int32(31) == uint32(0) { + if i == uint32(0) { + return float32(Float32FromInt32(0) * x) + } + uxi = i + } + uxi = uxi << uint32(1) + goto _6 + _6: + ; + ex = ex - 1 + } + i = uxi - *(*Tuint32_t)(unsafe.Pointer(bp + 8)) + if i>>int32(31) == uint32(0) { + if i == uint32(0) { + return float32(Float32FromInt32(0) * x) + } + uxi = i + } + for { + if !(uxi>>int32(23) == uint32(0)) { + break + } + goto _7 + _7: + ; + uxi = uxi << uint32(1) + ex = ex - 1 + } + /* scale result up */ + if ex > 0 { + uxi = uxi - Uint32FromUint32(1)<> Uint32FromInt32(-ex+int32(1)) + } + uxi = uxi | sx + *(*Tuint32_t)(unsafe.Pointer(bp + 4)) = uxi + return *(*float32)(unsafe.Pointer(bp + 4)) +} + +func Xfmodl(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfmod(tls, x, y) +} + +func Xfrexp(tls *TLS, x float64, e uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v e=%v, (%v:)", tls, x, e, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ee int32 + var v1 uintptr + var _ /* y at bp+0 */ struct { + Fi [0]Tuint64_t + Fd float64 + } + _, _ = ee, v1 + *(*struct { + Fi [0]Tuint64_t + Fd float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Fd float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + ee = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + if !(ee != 0) { + if x != 0 { + x = Xfrexp(tls, float64(x*float64(1.8446744073709552e+19)), e) + **(**int32)(__ccgo_up(e)) -= int32(64) + } else { + **(**int32)(__ccgo_up(e)) = 0 + } + return x + } else { + if ee == int32(0x7ff) { + return x + } + } + **(**int32)(__ccgo_up(e)) = ee - int32(0x3fe) + v1 = bp + *(*Tuint64_t)(unsafe.Pointer(v1)) = Tuint64_t(*(*Tuint64_t)(unsafe.Pointer(v1)) & Uint64FromUint64(0x800fffffffffffff)) + v1 = bp + *(*Tuint64_t)(unsafe.Pointer(v1)) = Tuint64_t(*(*Tuint64_t)(unsafe.Pointer(v1)) | Uint64FromUint64(0x3fe0000000000000)) + return *(*float64)(unsafe.Pointer(bp)) +} + +func Xfrexpf(tls *TLS, x float32, e uintptr) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v e=%v, (%v:)", tls, x, e, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ee int32 + var v1 uintptr + var _ /* y at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _ = ee, v1 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + ee = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(23) & uint32(0xff)) + if !(ee != 0) { + if x != 0 { + x = Xfrexpf(tls, float32(float64(x)*float64(1.8446744073709552e+19)), e) + **(**int32)(__ccgo_up(e)) -= int32(64) + } else { + **(**int32)(__ccgo_up(e)) = 0 + } + return x + } else { + if ee == int32(0xff) { + return x + } + } + **(**int32)(__ccgo_up(e)) = ee - int32(0x7e) + v1 = bp + *(*Tuint32_t)(unsafe.Pointer(v1)) = Tuint32_t(uint64(*(*Tuint32_t)(unsafe.Pointer(v1))) & Uint64FromUint64(0x807fffff)) + v1 = bp + *(*Tuint32_t)(unsafe.Pointer(v1)) = Tuint32_t(uint64(*(*Tuint32_t)(unsafe.Pointer(v1))) | Uint64FromUint64(0x3f000000)) + return *(*float32)(unsafe.Pointer(bp)) +} + +func Xfrexpl(tls *TLS, x float64, e uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v e=%v, (%v:)", tls, x, e, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfrexp(tls, x, e) +} + +const SPLIT = 1 + +func _sq(tls *TLS, hi uintptr, lo uintptr, x float64) { + var xc, xh, xl Tdouble_t + _, _, _ = xc, xh, xl + xc = Tdouble_t(x * (Float64FromFloat64(1.34217728e+08) + Float64FromInt32(1))) + xh = x - xc + xc + xl = x - xh + **(**Tdouble_t)(__ccgo_up(hi)) = Tdouble_t(x * x) + **(**Tdouble_t)(__ccgo_up(lo)) = Tdouble_t(xh*xh) - **(**Tdouble_t)(__ccgo_up(hi)) + Tdouble_t(Tdouble_t(Float64FromInt32(2)*xh)*xl) + Tdouble_t(xl*xl) +} + +func Xhypot(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + var ex, ey int32 + var ut struct { + Fi [0]Tuint64_t + Ff float64 + } + var z Tdouble_t + var v1 uintptr + var _ /* hx at bp+16 */ Tdouble_t + var _ /* hy at bp+32 */ Tdouble_t + var _ /* lx at bp+24 */ Tdouble_t + var _ /* ly at bp+40 */ Tdouble_t + var _ /* ux at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + var _ /* uy at bp+8 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _ = ex, ey, ut, z, v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp + 8)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp + 8)) = y + /* arrange |x| >= |y| */ + v1 = bp + *(*Tuint64_t)(unsafe.Pointer(v1)) = Tuint64_t(*(*Tuint64_t)(unsafe.Pointer(v1)) & (-Uint64FromUint64(1) >> Int32FromInt32(1))) + v1 = bp + 8 + *(*Tuint64_t)(unsafe.Pointer(v1)) = Tuint64_t(*(*Tuint64_t)(unsafe.Pointer(v1)) & (-Uint64FromUint64(1) >> Int32FromInt32(1))) + if *(*Tuint64_t)(unsafe.Pointer(bp)) < *(*Tuint64_t)(unsafe.Pointer(bp + 8)) { + ut = **(**struct { + Fi [0]Tuint64_t + Ff float64 + })(__ccgo_up(bp)) + **(**struct { + Fi [0]Tuint64_t + Ff float64 + })(__ccgo_up(bp)) = **(**struct { + Fi [0]Tuint64_t + Ff float64 + })(__ccgo_up(bp + 8)) + **(**struct { + Fi [0]Tuint64_t + Ff float64 + })(__ccgo_up(bp + 8)) = ut + } + /* special cases */ + ex = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52)) + ey = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp + 8)) >> int32(52)) + x = *(*float64)(unsafe.Pointer(bp)) + y = *(*float64)(unsafe.Pointer(bp + 8)) + /* note: hypot(inf,nan) == inf */ + if ey == int32(0x7ff) { + return y + } + if ex == int32(0x7ff) || *(*Tuint64_t)(unsafe.Pointer(bp + 8)) == uint64(0) { + return x + } + /* note: hypot(x,y) ~= x + y*y/x/2 with inexact for small y/x */ + /* 64 difference is enough for ld80 double_t */ + if ex-ey > int32(64) { + return x + y + } + /* precise sqrt argument in nearest rounding mode without overflow */ + /* xh*xh must not overflow and xl*xl must not underflow in sq */ + z = Float64FromInt32(1) + if ex > Int32FromInt32(0x3ff)+Int32FromInt32(510) { + z = float64(5.260135901548374e+210) + x = x * float64(1.90109156629516e-211) + y = y * float64(1.90109156629516e-211) + } else { + if ey < Int32FromInt32(0x3ff)-Int32FromInt32(450) { + z = float64(1.90109156629516e-211) + x = x * float64(5.260135901548374e+210) + y = y * float64(5.260135901548374e+210) + } + } + _sq(tls, bp+16, bp+24, x) + _sq(tls, bp+32, bp+40, y) + return float64(z * Xsqrt(tls, **(**Tdouble_t)(__ccgo_up(bp + 40))+**(**Tdouble_t)(__ccgo_up(bp + 24))+**(**Tdouble_t)(__ccgo_up(bp + 32))+**(**Tdouble_t)(__ccgo_up(bp + 16)))) +} + +func Xhypotf(tls *TLS, x float32, y float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ut struct { + Fi [0]Tuint32_t + Ff float32 + } + var z Tfloat_t + var _ /* ux at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + var _ /* uy at bp+4 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _ = ut, z + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp + 4)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp + 4)) = y + *(*Tuint32_t)(unsafe.Pointer(bp)) &= -Uint32FromUint32(1) >> Int32FromInt32(1) + *(*Tuint32_t)(unsafe.Pointer(bp + 4)) &= -Uint32FromUint32(1) >> Int32FromInt32(1) + if *(*Tuint32_t)(unsafe.Pointer(bp)) < *(*Tuint32_t)(unsafe.Pointer(bp + 4)) { + ut = **(**struct { + Fi [0]Tuint32_t + Ff float32 + })(__ccgo_up(bp)) + **(**struct { + Fi [0]Tuint32_t + Ff float32 + })(__ccgo_up(bp)) = **(**struct { + Fi [0]Tuint32_t + Ff float32 + })(__ccgo_up(bp + 4)) + **(**struct { + Fi [0]Tuint32_t + Ff float32 + })(__ccgo_up(bp + 4)) = ut + } + x = *(*float32)(unsafe.Pointer(bp)) + y = *(*float32)(unsafe.Pointer(bp + 4)) + if *(*Tuint32_t)(unsafe.Pointer(bp + 4)) == Uint32FromInt32(Int32FromInt32(0xff)<= Uint32FromInt32(Int32FromInt32(0xff)<= Uint32FromInt32(Int32FromInt32(25)<= Uint32FromInt32((Int32FromInt32(0x7f)+Int32FromInt32(60))< %v", r) }() + } + return Xhypot(tls, x, y) +} + +func Xilogb(tls *TLS, x3 float64) (r int32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e, v2 int32 + var i Tuint64_t + var y float32 + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _ = e, i, y, y1, y2, v2 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + i = *(*Tuint64_t)(unsafe.Pointer(bp)) + e = Int32FromUint64(i >> int32(52) & uint64(0x7ff)) + if !(e != 0) { + i = i << uint64(12) + if i == uint64(0) { + if uint64(4) == uint64(4) { + y = Float32FromInt32(0) / Float32FromFloat32(0) + } else { + if uint64(4) == uint64(8) { + y1 = float64(Float32FromInt32(0) / Float32FromFloat32(0)) + } else { + y2 = float64(Float32FromInt32(0) / Float32FromFloat32(0)) + } + } + return -Int32FromInt32(1) - Int32FromInt32(0x7fffffff) + } + /* subnormal x */ + e = -int32(0x3ff) + for { + if !(i>>int32(63) == uint64(0)) { + break + } + goto _1 + _1: + ; + e = e - 1 + i = i << uint64(1) + } + return e + } + if e == int32(0x7ff) { + if uint64(4) == uint64(4) { + y = Float32FromInt32(0) / Float32FromFloat32(0) + } else { + if uint64(4) == uint64(8) { + y1 = float64(Float32FromInt32(0) / Float32FromFloat32(0)) + } else { + y2 = float64(Float32FromInt32(0) / Float32FromFloat32(0)) + } + } + if i< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e, v2 int32 + var i Tuint32_t + var y float32 + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _ = e, i, y, y1, y2, v2 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + i = *(*Tuint32_t)(unsafe.Pointer(bp)) + e = Int32FromUint32(i >> int32(23) & uint32(0xff)) + if !(e != 0) { + i = i << uint32(9) + if i == uint32(0) { + if uint64(4) == uint64(4) { + y = Float32FromInt32(0) / Float32FromFloat32(0) + } else { + if uint64(4) == uint64(8) { + y1 = float64(Float32FromInt32(0) / Float32FromFloat32(0)) + } else { + y2 = float64(Float32FromInt32(0) / Float32FromFloat32(0)) + } + } + return -Int32FromInt32(1) - Int32FromInt32(0x7fffffff) + } + /* subnormal x */ + e = -int32(0x7f) + for { + if !(i>>int32(31) == uint32(0)) { + break + } + goto _1 + _1: + ; + e = e - 1 + i = i << uint32(1) + } + return e + } + if e == int32(0xff) { + if uint64(4) == uint64(4) { + y = Float32FromInt32(0) / Float32FromFloat32(0) + } else { + if uint64(4) == uint64(8) { + y1 = float64(Float32FromInt32(0) / Float32FromFloat32(0)) + } else { + y2 = float64(Float32FromInt32(0) / Float32FromFloat32(0)) + } + } + if i< %v", r) }() + } + return Xilogb(tls, x) +} + +var _invsqrtpi = float64(0.5641895835477563) /* 0x3FE20DD7, 0x50429B6D */ +var _tpi = float64(0.6366197723675814) /* 0x3FE45F30, 0x6DC9C883 */ + +// C documentation +// +// /* common method when |x|>=2 */ +func _common(tls *TLS, ix Tuint32_t, x float64, y0 int32) (r float64) { + var c, cc, s, ss, z float64 + _, _, _, _, _ = c, cc, s, ss, z + /* + * j0(x) = sqrt(2/(pi*x))*(p0(x)*cos(x-pi/4)-q0(x)*sin(x-pi/4)) + * y0(x) = sqrt(2/(pi*x))*(p0(x)*sin(x-pi/4)+q0(x)*cos(x-pi/4)) + * + * sin(x-pi/4) = (sin(x) - cos(x))/sqrt(2) + * cos(x-pi/4) = (sin(x) + cos(x))/sqrt(2) + * sin(x) +- cos(x) = -cos(2x)/(sin(x) -+ cos(x)) + */ + s = Xsin(tls, x) + c = Xcos(tls, x) + if y0 != 0 { + c = -c + } + cc = s + c + /* avoid overflow in 2*x, big ulp error when x>=0x1p1023 */ + if ix < uint32(0x7fe00000) { + ss = s - c + z = -Xcos(tls, float64(Float64FromInt32(2)*x)) + if float64(s*c) < Float64FromInt32(0) { + cc = z / ss + } else { + ss = z / cc + } + if ix < uint32(0x48000000) { + if y0 != 0 { + ss = -ss + } + cc = float64(_pzero(tls, x)*cc) - float64(_qzero(tls, x)*ss) + } + } + return float64(_invsqrtpi*cc) / Xsqrt(tls, x) +} + +// C documentation +// +// /* R0/S0 on [0, 2.00] */ + +var _R02 = float64(0.015624999999999995) /* 0x3F8FFFFF, 0xFFFFFFFD */ +var _R03 = -Float64FromFloat64(0.00018997929423885472) /* 0xBF28E6A5, 0xB61AC6E9 */ +var _R04 = float64(1.8295404953270067e-06) /* 0x3EBEB1D1, 0x0C503919 */ +var _R05 = -Float64FromFloat64(4.618326885321032e-09) /* 0xBE33D5E7, 0x73D63FCE */ +var _S01 = float64(0.015619102946489001) /* 0x3F8FFCE8, 0x82C8C2A4 */ +var _S02 = float64(0.00011692678466333745) /* 0x3F1EA6D2, 0xDD57DBF4 */ +var _S03 = float64(5.135465502073181e-07) /* 0x3EA13B54, 0xCE84D5A9 */ +var _S04 = float64(1.1661400333379e-09) /* 0x3E1408BC, 0xF4745D8F */ + +func Xj0(tls *TLS, x float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var ix Tuint32_t + var r, s, z float64 + _, _, _, _ = ix, r, s, z + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + ix = ix & uint32(0x7fffffff) + /* j0(+-inf)=0, j0(nan)=nan */ + if ix >= uint32(0x7ff00000) { + return Float64FromInt32(1) / float64(x*x) + } + x = Xfabs(tls, x) + if ix >= uint32(0x40000000) { /* |x| >= 2 */ + /* large ulp error near zeros: 2.4, 5.52, 8.6537,.. */ + return _common(tls, ix, x, 0) + } + /* 1 - x*x/4 + x*x*R(x^2)/S(x^2) */ + if ix >= uint32(0x3f200000) { /* |x| >= 2**-13 */ + /* up to 4ulp error close to 2 */ + z = float64(x * x) + r = float64(z * (_R02 + float64(z*(_R03+float64(z*(_R04+float64(z*_R05))))))) + s = Float64FromInt32(1) + float64(z*(_S01+float64(z*(_S02+float64(z*(_S03+float64(z*_S04))))))) + return float64((Float64FromInt32(1)+x/Float64FromInt32(2))*(Float64FromInt32(1)-x/Float64FromInt32(2))) + float64(z*(r/s)) + } + /* 1 - x*x/4 */ + /* prevent underflow */ + /* inexact should be raised when x!=0, this is not done correctly */ + if ix >= uint32(0x38000000) { /* |x| >= 2**-127 */ + x = float64(float64(float64(0.25)*x) * x) + } + return Float64FromInt32(1) - x +} + +var _u00 = -Float64FromFloat64(0.07380429510868723) /* 0xBFB2E4D6, 0x99CBD01F */ +var _u01 = float64(0.17666645250918112) /* 0x3FC69D01, 0x9DE9E3FC */ +var _u02 = -Float64FromFloat64(0.01381856719455969) /* 0xBF8C4CE8, 0xB16CFA97 */ +var _u03 = float64(0.00034745343209368365) /* 0x3F36C54D, 0x20B29B6B */ +var _u04 = -Float64FromFloat64(3.8140705372436416e-06) /* 0xBECFFEA7, 0x73D25CAD */ +var _u05 = float64(1.9559013703502292e-08) /* 0x3E550057, 0x3B4EABD4 */ +var _u06 = -Float64FromFloat64(3.982051941321034e-11) /* 0xBDC5E43D, 0x693FB3C8 */ +var _v01 = float64(0.01273048348341237) /* 0x3F8A1270, 0x91C9C71A */ +var _v02 = float64(7.600686273503533e-05) /* 0x3F13ECBB, 0xF578C6C1 */ +var _v03 = float64(2.591508518404578e-07) /* 0x3E91642D, 0x7FF202FD */ +var _v04 = float64(4.4111031133267547e-10) /* 0x3DFE5018, 0x3BD6D9EF */ + +func Xy0(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __u Tuint64_t + var ix, lx Tuint32_t + var u, v, z float64 + _, _, _, _, _, _ = __u, ix, lx, u, v, z + __u = *(*Tuint64_t)(unsafe.Pointer(&x)) + ix = uint32(__u >> int32(32)) + lx = uint32(__u) + /* y0(nan)=nan, y0(<0)=nan, y0(0)=-inf, y0(inf)=0 */ + if ix<>int32(31) != 0 { + return Float64FromInt32(0) / Float64FromFloat64(0) + } + if ix >= uint32(0x7ff00000) { + return Float64FromInt32(1) / x + } + if ix >= uint32(0x40000000) { /* x >= 2 */ + /* large ulp errors near zeros: 3.958, 7.086,.. */ + return _common(tls, ix, x, int32(1)) + } + /* U(x^2)/V(x^2) + (2/pi)*j0(x)*log(x) */ + if ix >= uint32(0x3e400000) { /* x >= 2**-27 */ + /* large ulp error near the first zero, x ~= 0.89 */ + z = float64(x * x) + u = _u00 + float64(z*(_u01+float64(z*(_u02+float64(z*(_u03+float64(z*(_u04+float64(z*(_u05+float64(z*_u06))))))))))) + v = float64(1) + float64(z*(_v01+float64(z*(_v02+float64(z*(_v03+float64(z*_v04))))))) + return u/v + float64(_tpi*float64(Xj0(tls, x)*Xlog(tls, x))) + } + return _u00 + float64(_tpi*Xlog(tls, x)) +} + +// C documentation +// +// /* The asymptotic expansions of pzero is +// * 1 - 9/128 s^2 + 11025/98304 s^4 - ..., where s = 1/x. +// * For x >= 2, We approximate pzero by +// * pzero(x) = 1 + (R/S) +// * where R = pR0 + pR1*s^2 + pR2*s^4 + ... + pR5*s^10 +// * S = 1 + pS0*s^2 + ... + pS4*s^10 +// * and +// * | pzero(x)-1-R/S | <= 2 ** ( -60.26) +// */ +var _pR8 = [6]float64{ + 1: -Float64FromFloat64(0.07031249999999004), + 2: -Float64FromFloat64(8.081670412753498), + 3: -Float64FromFloat64(257.06310567970485), + 4: -Float64FromFloat64(2485.216410094288), + 5: -Float64FromFloat64(5253.043804907295), +} +var _pS8 = [5]float64{ + 0: float64(116.53436461966818), + 1: float64(3833.7447536412183), + 2: float64(40597.857264847255), + 3: float64(116752.97256437592), + 4: float64(47627.728414673096), +} + +var _pR5 = [6]float64{ + 0: -Float64FromFloat64(1.141254646918945e-11), + 1: -Float64FromFloat64(0.07031249408735993), + 2: -Float64FromFloat64(4.159610644705878), + 3: -Float64FromFloat64(67.67476522651673), + 4: -Float64FromFloat64(331.23129964917297), + 5: -Float64FromFloat64(346.4333883656049), +} +var _pS52 = [5]float64{ + 0: float64(60.753938269230034), + 1: float64(1051.2523059570458), + 2: float64(5978.970943338558), + 3: float64(9625.445143577745), + 4: float64(2406.058159229391), +} + +var _pR3 = [6]float64{ + 0: -Float64FromFloat64(2.547046017719519e-09), + 1: -Float64FromFloat64(0.07031196163814817), + 2: -Float64FromFloat64(2.409032215495296), + 3: -Float64FromFloat64(21.96597747348831), + 4: -Float64FromFloat64(58.07917047017376), + 5: -Float64FromFloat64(31.44794705948885), +} +var _pS32 = [5]float64{ + 0: float64(35.85603380552097), + 1: float64(361.51398305030386), + 2: float64(1193.6078379211153), + 3: float64(1127.9967985690741), + 4: float64(173.58093081333575), +} + +var _pR2 = [6]float64{ + 0: -Float64FromFloat64(8.875343330325264e-08), + 1: -Float64FromFloat64(0.07030309954836247), + 2: -Float64FromFloat64(1.4507384678095299), + 3: -Float64FromFloat64(7.635696138235278), + 4: -Float64FromFloat64(11.193166886035675), + 5: -Float64FromFloat64(3.2336457935133534), +} +var _pS24 = [5]float64{ + 0: float64(22.22029975320888), + 1: float64(136.2067942182152), + 2: float64(270.4702786580835), + 3: float64(153.87539420832033), + 4: float64(14.65761769482562), +} + +func _pzero(tls *TLS, x float64) (r1 float64) { + var ix Tuint32_t + var p, q uintptr + var r, s, z Tdouble_t + _, _, _, _, _, _ = ix, p, q, r, s, z + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x40200000) { + p = uintptr(unsafe.Pointer(&_pR8)) + q = uintptr(unsafe.Pointer(&_pS8)) + } else { + if ix >= uint32(0x40122E8B) { + p = uintptr(unsafe.Pointer(&_pR5)) + q = uintptr(unsafe.Pointer(&_pS52)) + } else { + if ix >= uint32(0x4006DB6D) { + p = uintptr(unsafe.Pointer(&_pR3)) + q = uintptr(unsafe.Pointer(&_pS32)) + } else { /*ix >= 0x40000000*/ + p = uintptr(unsafe.Pointer(&_pR2)) + q = uintptr(unsafe.Pointer(&_pS24)) + } + } + } + z = float64(1) / float64(x*x) + r = **(**float64)(__ccgo_up(p)) + float64(z*(**(**float64)(__ccgo_up(p + 1*8))+float64(z*(**(**float64)(__ccgo_up(p + 2*8))+float64(z*(**(**float64)(__ccgo_up(p + 3*8))+float64(z*(**(**float64)(__ccgo_up(p + 4*8))+float64(z***(**float64)(__ccgo_up(p + 5*8))))))))))) + s = float64(1) + float64(z*(**(**float64)(__ccgo_up(q))+float64(z*(**(**float64)(__ccgo_up(q + 1*8))+float64(z*(**(**float64)(__ccgo_up(q + 2*8))+float64(z*(**(**float64)(__ccgo_up(q + 3*8))+float64(z***(**float64)(__ccgo_up(q + 4*8))))))))))) + return float64(1) + r/s +} + +// C documentation +// +// /* For x >= 8, the asymptotic expansions of qzero is +// * -1/8 s + 75/1024 s^3 - ..., where s = 1/x. +// * We approximate pzero by +// * qzero(x) = s*(-1.25 + (R/S)) +// * where R = qR0 + qR1*s^2 + qR2*s^4 + ... + qR5*s^10 +// * S = 1 + qS0*s^2 + ... + qS5*s^12 +// * and +// * | qzero(x)/s +1.25-R/S | <= 2 ** ( -61.22) +// */ +var _qR8 = [6]float64{ + 1: float64(0.0732421874999935), + 2: float64(11.76820646822527), + 3: float64(557.6733802564019), + 4: float64(8859.197207564686), + 5: float64(37014.62677768878), +} +var _qS8 = [6]float64{ + 0: float64(163.77602689568982), + 1: float64(8098.344946564498), + 2: float64(142538.29141912048), + 3: float64(803309.2571195144), + 4: float64(840501.5798190605), + 5: -Float64FromFloat64(343899.2935378666), +} + +var _qR5 = [6]float64{ + 0: float64(1.8408596359451553e-11), + 1: float64(0.07324217666126848), + 2: float64(5.8356350896205695), + 3: float64(135.11157728644983), + 4: float64(1027.243765961641), + 5: float64(1989.9778586460538), +} +var _qS5 = [6]float64{ + 0: float64(82.77661022365378), + 1: float64(2077.81416421393), + 2: float64(18847.28877857181), + 3: float64(56751.11228949473), + 4: float64(35976.75384251145), + 5: -Float64FromFloat64(5354.342756019448), +} + +var _qR3 = [6]float64{ + 0: float64(4.377410140897386e-09), + 1: float64(0.07324111800429114), + 2: float64(3.344231375161707), + 3: float64(42.621844074541265), + 4: float64(170.8080913405656), + 5: float64(166.73394869665117), +} +var _qS32 = [6]float64{ + 0: float64(48.75887297245872), + 1: float64(709.689221056606), + 2: float64(3704.1482262011136), + 3: float64(6460.425167525689), + 4: float64(2516.3336892036896), + 5: -Float64FromFloat64(149.2474518361564), +} + +var _qR2 = [6]float64{ + 0: float64(1.5044444488698327e-07), + 1: float64(0.07322342659630793), + 2: float64(1.99819174093816), + 3: float64(14.495602934788574), + 4: float64(31.666231750478154), + 5: float64(16.252707571092927), +} +var _qS22 = [6]float64{ + 0: float64(30.36558483552192), + 1: float64(269.34811860804984), + 2: float64(844.7837575953201), + 3: float64(882.9358451124886), + 4: float64(212.66638851179883), + 5: -Float64FromFloat64(5.3109549388266695), +} + +func _qzero(tls *TLS, x float64) (r1 float64) { + var ix Tuint32_t + var p, q uintptr + var r, s, z Tdouble_t + _, _, _, _, _, _ = ix, p, q, r, s, z + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x40200000) { + p = uintptr(unsafe.Pointer(&_qR8)) + q = uintptr(unsafe.Pointer(&_qS8)) + } else { + if ix >= uint32(0x40122E8B) { + p = uintptr(unsafe.Pointer(&_qR5)) + q = uintptr(unsafe.Pointer(&_qS5)) + } else { + if ix >= uint32(0x4006DB6D) { + p = uintptr(unsafe.Pointer(&_qR3)) + q = uintptr(unsafe.Pointer(&_qS32)) + } else { /*ix >= 0x40000000*/ + p = uintptr(unsafe.Pointer(&_qR2)) + q = uintptr(unsafe.Pointer(&_qS22)) + } + } + } + z = float64(1) / float64(x*x) + r = **(**float64)(__ccgo_up(p)) + float64(z*(**(**float64)(__ccgo_up(p + 1*8))+float64(z*(**(**float64)(__ccgo_up(p + 2*8))+float64(z*(**(**float64)(__ccgo_up(p + 3*8))+float64(z*(**(**float64)(__ccgo_up(p + 4*8))+float64(z***(**float64)(__ccgo_up(p + 5*8))))))))))) + s = float64(1) + float64(z*(**(**float64)(__ccgo_up(q))+float64(z*(**(**float64)(__ccgo_up(q + 1*8))+float64(z*(**(**float64)(__ccgo_up(q + 2*8))+float64(z*(**(**float64)(__ccgo_up(q + 3*8))+float64(z*(**(**float64)(__ccgo_up(q + 4*8))+float64(z***(**float64)(__ccgo_up(q + 5*8))))))))))))) + return (-Float64FromFloat64(0.125) + r/s) / x +} + +var _invsqrtpi1 = float32(0.56418961287) /* 0x3f106ebb */ +var _tpi1 = float32(0.63661974669) /* 0x3f22f983 */ + +func _common1(tls *TLS, ix Tuint32_t, x float32, y0 int32) (r float32) { + var c, cc, s, ss, z float32 + _, _, _, _, _ = c, cc, s, ss, z + /* + * j0(x) = 1/sqrt(pi) * (P(0,x)*cc - Q(0,x)*ss) / sqrt(x) + * y0(x) = 1/sqrt(pi) * (P(0,x)*ss + Q(0,x)*cc) / sqrt(x) + */ + s = Xsinf(tls, x) + c = Xcosf(tls, x) + if y0 != 0 { + c = -c + } + cc = s + c + if ix < uint32(0x7f000000) { + ss = s - c + z = -Xcosf(tls, float32(Float32FromInt32(2)*x)) + if float32(s*c) < Float32FromInt32(0) { + cc = z / ss + } else { + ss = z / cc + } + if ix < uint32(0x58800000) { + if y0 != 0 { + ss = -ss + } + cc = float32(_pzerof(tls, x)*cc) - float32(_qzerof(tls, x)*ss) + } + } + return float32(_invsqrtpi1*cc) / Xsqrtf(tls, x) +} + +// C documentation +// +// /* R0/S0 on [0, 2.00] */ + +var _R021 = float32(0.015625) /* 0x3c800000 */ +var _R031 = float32(-Float64FromFloat64(0.00018997929874)) /* 0xb947352e */ +var _R041 = float32(1.8295404516e-06) /* 0x35f58e88 */ +var _R051 = float32(-Float64FromFloat64(4.6183270541e-09)) /* 0xb19eaf3c */ +var _S011 = float32(0.015619102865) /* 0x3c7fe744 */ +var _S021 = float32(0.00011692678527) /* 0x38f53697 */ +var _S031 = float32(5.1354652442e-07) /* 0x3509daa6 */ +var _S041 = float32(1.1661400734e-09) /* 0x30a045e8 */ + +func Xj0f(tls *TLS, x float32) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var ix Tuint32_t + var r, s, z float32 + _, _, _, _ = ix, r, s, z + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x7f800000) { + return Float32FromInt32(1) / float32(x*x) + } + x = Xfabsf(tls, x) + if ix >= uint32(0x40000000) { /* |x| >= 2 */ + /* large ulp error near zeros */ + return _common1(tls, ix, x, 0) + } + if ix >= uint32(0x3a000000) { /* |x| >= 2**-11 */ + /* up to 4ulp error near 2 */ + z = float32(x * x) + r = float32(z * (_R021 + float32(z*(_R031+float32(z*(_R041+float32(z*_R051))))))) + s = Float32FromInt32(1) + float32(z*(_S011+float32(z*(_S021+float32(z*(_S031+float32(z*_S041))))))) + return float32((Float32FromInt32(1)+x/Float32FromInt32(2))*(Float32FromInt32(1)-x/Float32FromInt32(2))) + float32(z*(r/s)) + } + if ix >= uint32(0x21800000) { /* |x| >= 2**-60 */ + x = float32(float32(Float32FromFloat32(0.25)*x) * x) + } + return Float32FromInt32(1) - x +} + +var _u001 = float32(-Float64FromFloat64(0.073804296553)) /* 0xbd9726b5 */ +var _u011 = float32(0.17666645348) /* 0x3e34e80d */ +var _u021 = float32(-Float64FromFloat64(0.013818567619)) /* 0xbc626746 */ +var _u031 = float32(0.00034745343146) /* 0x39b62a69 */ +var _u041 = float32(-Float64FromFloat64(3.8140706238e-06)) /* 0xb67ff53c */ +var _u051 = float32(1.9559013964e-08) /* 0x32a802ba */ +var _u061 = float32(-Float64FromFloat64(3.982051841e-11)) /* 0xae2f21eb */ +var _v011 = float32(0.012730483897) /* 0x3c509385 */ +var _v021 = float32(7.6006865129e-05) /* 0x389f65e0 */ +var _v031 = float32(2.5915085189e-07) /* 0x348b216c */ +var _v041 = float32(4.4111031494e-10) /* 0x2ff280c2 */ + +func Xy0f(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ix Tuint32_t + var u, v, z float32 + _, _, _, _ = ix, u, v, z + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + if ix&uint32(0x7fffffff) == uint32(0) { + return float32(-Int32FromInt32(1)) / Float32FromFloat32(0) + } + if ix>>int32(31) != 0 { + return Float32FromInt32(0) / Float32FromFloat32(0) + } + if ix >= uint32(0x7f800000) { + return Float32FromInt32(1) / x + } + if ix >= uint32(0x40000000) { /* |x| >= 2.0 */ + /* large ulp error near zeros */ + return _common1(tls, ix, x, int32(1)) + } + if ix >= uint32(0x39000000) { /* x >= 2**-13 */ + /* large ulp error at x ~= 0.89 */ + z = float32(x * x) + u = _u001 + float32(z*(_u011+float32(z*(_u021+float32(z*(_u031+float32(z*(_u041+float32(z*(_u051+float32(z*_u061))))))))))) + v = Float32FromInt32(1) + float32(z*(_v011+float32(z*(_v021+float32(z*(_v031+float32(z*_v041))))))) + return u/v + float32(_tpi1*float32(Xj0f(tls, x)*Xlogf(tls, x))) + } + return _u001 + float32(_tpi1*Xlogf(tls, x)) +} + +// C documentation +// +// /* The asymptotic expansions of pzero is +// * 1 - 9/128 s^2 + 11025/98304 s^4 - ..., where s = 1/x. +// * For x >= 2, We approximate pzero by +// * pzero(x) = 1 + (R/S) +// * where R = pR0 + pR1*s^2 + pR2*s^4 + ... + pR5*s^10 +// * S = 1 + pS0*s^2 + ... + pS4*s^10 +// * and +// * | pzero(x)-1-R/S | <= 2 ** ( -60.26) +// */ +var _pR81 = [6]float32{ + 1: float32(-Float64FromFloat64(0.0703125)), + 2: float32(-Float64FromFloat64(8.0816707611)), + 3: float32(-Float64FromFloat64(257.06311035)), + 4: float32(-Float64FromFloat64(2485.2163086)), + 5: float32(-Float64FromFloat64(5253.0439453)), +} +var _pS81 = [5]float32{ + 0: float32(116.53436279), + 1: float32(3833.744873), + 2: float32(40597.855469), + 3: float32(116752.96875), + 4: float32(47627.726562), +} +var _pR51 = [6]float32{ + 0: float32(-Float64FromFloat64(1.1412546255e-11)), + 1: float32(-Float64FromFloat64(0.070312492549)), + 2: float32(-Float64FromFloat64(4.1596107483)), + 3: float32(-Float64FromFloat64(67.674766541)), + 4: float32(-Float64FromFloat64(331.23129272)), + 5: float32(-Float64FromFloat64(346.43338013)), +} +var _pS53 = [5]float32{ + 0: float32(60.753936768), + 1: float32(1051.2523193), + 2: float32(5978.9707031), + 3: float32(9625.4453125), + 4: float32(2406.0581055), +} + +var _pR31 = [6]float32{ + 0: float32(-Float64FromFloat64(2.5470459075e-09)), + 1: float32(-Float64FromFloat64(0.070311963558)), + 2: float32(-Float64FromFloat64(2.4090321064)), + 3: float32(-Float64FromFloat64(21.965976715)), + 4: float32(-Float64FromFloat64(58.079170227)), + 5: float32(-Float64FromFloat64(31.447946548)), +} +var _pS33 = [5]float32{ + 0: float32(35.856033325), + 1: float32(361.51397705), + 2: float32(1193.6077881), + 3: float32(1127.9968262), + 4: float32(173.58093262), +} + +var _pR21 = [6]float32{ + 0: float32(-Float64FromFloat64(8.8753431271e-08)), + 1: float32(-Float64FromFloat64(0.070303097367)), + 2: float32(-Float64FromFloat64(1.45073843)), + 3: float32(-Float64FromFloat64(7.6356959343)), + 4: float32(-Float64FromFloat64(11.193166733)), + 5: float32(-Float64FromFloat64(3.2336456776)), +} +var _pS25 = [5]float32{ + 0: float32(22.220300674), + 1: float32(136.20678711), + 2: float32(270.47027588), + 3: float32(153.87539673), + 4: float32(14.657617569), +} + +func _pzerof(tls *TLS, x float32) (r1 float32) { + var ix Tuint32_t + var p, q uintptr + var r, s, z Tfloat_t + _, _, _, _, _, _ = ix, p, q, r, s, z + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x41000000) { + p = uintptr(unsafe.Pointer(&_pR81)) + q = uintptr(unsafe.Pointer(&_pS81)) + } else { + if ix >= uint32(0x409173eb) { + p = uintptr(unsafe.Pointer(&_pR51)) + q = uintptr(unsafe.Pointer(&_pS53)) + } else { + if ix >= uint32(0x4036d917) { + p = uintptr(unsafe.Pointer(&_pR31)) + q = uintptr(unsafe.Pointer(&_pS33)) + } else { /*ix >= 0x40000000*/ + p = uintptr(unsafe.Pointer(&_pR21)) + q = uintptr(unsafe.Pointer(&_pS25)) + } + } + } + z = Float32FromFloat32(1) / float32(x*x) + r = **(**float32)(__ccgo_up(p)) + float32(z*(**(**float32)(__ccgo_up(p + 1*4))+float32(z*(**(**float32)(__ccgo_up(p + 2*4))+float32(z*(**(**float32)(__ccgo_up(p + 3*4))+float32(z*(**(**float32)(__ccgo_up(p + 4*4))+float32(z***(**float32)(__ccgo_up(p + 5*4))))))))))) + s = Float32FromFloat32(1) + float32(z*(**(**float32)(__ccgo_up(q))+float32(z*(**(**float32)(__ccgo_up(q + 1*4))+float32(z*(**(**float32)(__ccgo_up(q + 2*4))+float32(z*(**(**float32)(__ccgo_up(q + 3*4))+float32(z***(**float32)(__ccgo_up(q + 4*4))))))))))) + return Float32FromFloat32(1) + r/s +} + +// C documentation +// +// /* For x >= 8, the asymptotic expansions of qzero is +// * -1/8 s + 75/1024 s^3 - ..., where s = 1/x. +// * We approximate pzero by +// * qzero(x) = s*(-1.25 + (R/S)) +// * where R = qR0 + qR1*s^2 + qR2*s^4 + ... + qR5*s^10 +// * S = 1 + qS0*s^2 + ... + qS5*s^12 +// * and +// * | qzero(x)/s +1.25-R/S | <= 2 ** ( -61.22) +// */ +var _qR81 = [6]float32{ + 1: float32(0.0732421875), + 2: float32(11.768206596), + 3: float32(557.67340088), + 4: float32(8859.1972656), + 5: float32(37014.625), +} +var _qS81 = [6]float32{ + 0: float32(163.77603149), + 1: float32(8098.3447266), + 2: float32(142538.29688), + 3: float32(803309.25), + 4: float32(840501.5625), + 5: float32(-Float64FromFloat64(343899.28125)), +} + +var _qR51 = [6]float32{ + 0: float32(1.8408595828e-11), + 1: float32(0.073242180049), + 2: float32(5.8356351852), + 3: float32(135.11157227), + 4: float32(1027.2437744), + 5: float32(1989.9779053), +} +var _qS51 = [6]float32{ + 0: float32(82.776611328), + 1: float32(2077.814209), + 2: float32(18847.289062), + 3: float32(56751.113281), + 4: float32(35976.753906), + 5: float32(-Float64FromFloat64(5354.3427734)), +} + +var _qR31 = [6]float32{ + 0: float32(4.37740999e-09), + 1: float32(0.073241114616), + 2: float32(3.3442313671), + 3: float32(42.621845245), + 4: float32(170.80809021), + 5: float32(166.73394775), +} +var _qS33 = [6]float32{ + 0: float32(48.758872986), + 1: float32(709.68920898), + 2: float32(3704.1481934), + 3: float32(6460.425293), + 4: float32(2516.3337402), + 5: float32(-Float64FromFloat64(149.24745178)), +} + +var _qR21 = [6]float32{ + 0: float32(1.5044444979e-07), + 1: float32(0.073223426938), + 2: float32(1.9981917143), + 3: float32(14.495602608), + 4: float32(31.666231155), + 5: float32(16.252708435), +} +var _qS23 = [6]float32{ + 0: float32(30.365585327), + 1: float32(269.34811401), + 2: float32(844.78375244), + 3: float32(882.93585205), + 4: float32(212.66638184), + 5: float32(-Float64FromFloat64(5.3109550476)), +} + +func _qzerof(tls *TLS, x float32) (r1 float32) { + var ix Tuint32_t + var p, q uintptr + var r, s, z Tfloat_t + _, _, _, _, _, _ = ix, p, q, r, s, z + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x41000000) { + p = uintptr(unsafe.Pointer(&_qR81)) + q = uintptr(unsafe.Pointer(&_qS81)) + } else { + if ix >= uint32(0x409173eb) { + p = uintptr(unsafe.Pointer(&_qR51)) + q = uintptr(unsafe.Pointer(&_qS51)) + } else { + if ix >= uint32(0x4036d917) { + p = uintptr(unsafe.Pointer(&_qR31)) + q = uintptr(unsafe.Pointer(&_qS33)) + } else { /*ix >= 0x40000000*/ + p = uintptr(unsafe.Pointer(&_qR21)) + q = uintptr(unsafe.Pointer(&_qS23)) + } + } + } + z = Float32FromFloat32(1) / float32(x*x) + r = **(**float32)(__ccgo_up(p)) + float32(z*(**(**float32)(__ccgo_up(p + 1*4))+float32(z*(**(**float32)(__ccgo_up(p + 2*4))+float32(z*(**(**float32)(__ccgo_up(p + 3*4))+float32(z*(**(**float32)(__ccgo_up(p + 4*4))+float32(z***(**float32)(__ccgo_up(p + 5*4))))))))))) + s = Float32FromFloat32(1) + float32(z*(**(**float32)(__ccgo_up(q))+float32(z*(**(**float32)(__ccgo_up(q + 1*4))+float32(z*(**(**float32)(__ccgo_up(q + 2*4))+float32(z*(**(**float32)(__ccgo_up(q + 3*4))+float32(z*(**(**float32)(__ccgo_up(q + 4*4))+float32(z***(**float32)(__ccgo_up(q + 5*4))))))))))))) + return (-Float32FromFloat32(0.125) + r/s) / x +} + +var _invsqrtpi2 = float64(0.5641895835477563) /* 0x3FE20DD7, 0x50429B6D */ +var _tpi2 = float64(0.6366197723675814) /* 0x3FE45F30, 0x6DC9C883 */ + +func _common2(tls *TLS, ix Tuint32_t, x float64, y1 int32, sign int32) (r float64) { + var c, cc, s, ss, z float64 + _, _, _, _, _ = c, cc, s, ss, z + /* + * j1(x) = sqrt(2/(pi*x))*(p1(x)*cos(x-3pi/4)-q1(x)*sin(x-3pi/4)) + * y1(x) = sqrt(2/(pi*x))*(p1(x)*sin(x-3pi/4)+q1(x)*cos(x-3pi/4)) + * + * sin(x-3pi/4) = -(sin(x) + cos(x))/sqrt(2) + * cos(x-3pi/4) = (sin(x) - cos(x))/sqrt(2) + * sin(x) +- cos(x) = -cos(2x)/(sin(x) -+ cos(x)) + */ + s = Xsin(tls, x) + if y1 != 0 { + s = -s + } + c = Xcos(tls, x) + cc = s - c + if ix < uint32(0x7fe00000) { + /* avoid overflow in 2*x */ + ss = -s - c + z = Xcos(tls, float64(Float64FromInt32(2)*x)) + if float64(s*c) > Float64FromInt32(0) { + cc = z / ss + } else { + ss = z / cc + } + if ix < uint32(0x48000000) { + if y1 != 0 { + ss = -ss + } + cc = float64(_pone(tls, x)*cc) - float64(_qone(tls, x)*ss) + } + } + if sign != 0 { + cc = -cc + } + return float64(_invsqrtpi2*cc) / Xsqrt(tls, x) +} + +// C documentation +// +// /* R0/S0 on [0,2] */ + +var _r00 = -Float64FromFloat64(0.0625) /* 0xBFB00000, 0x00000000 */ +var _r01 = float64(0.001407056669551897) /* 0x3F570D9F, 0x98472C61 */ +var _r02 = -Float64FromFloat64(1.599556310840356e-05) /* 0xBEF0C5C6, 0xBA169668 */ +var _r03 = float64(4.9672799960958445e-08) /* 0x3E6AAAFA, 0x46CA0BD9 */ +var _s01 = float64(0.019153759953836346) /* 0x3F939D0B, 0x12637E53 */ +var _s02 = float64(0.00018594678558863092) /* 0x3F285F56, 0xB9CDF664 */ +var _s03 = float64(1.1771846404262368e-06) /* 0x3EB3BFF8, 0x333F8498 */ +var _s04 = float64(5.0463625707621704e-09) /* 0x3E35AC88, 0xC97DFF2C */ +var _s05 = float64(1.2354227442613791e-11) /* 0x3DAB2ACF, 0xCFB97ED8 */ + +func Xj1(tls *TLS, x float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var ix Tuint32_t + var r, s, z float64 + var sign int32 + _, _, _, _, _ = ix, r, s, sign, z + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x7ff00000) { + return Float64FromInt32(1) / float64(x*x) + } + if ix >= uint32(0x40000000) { /* |x| >= 2 */ + return _common2(tls, ix, Xfabs(tls, x), 0, sign) + } + if ix >= uint32(0x38000000) { /* |x| >= 2**-127 */ + z = float64(x * x) + r = float64(z * (_r00 + float64(z*(_r01+float64(z*(_r02+float64(z*_r03))))))) + s = Float64FromInt32(1) + float64(z*(_s01+float64(z*(_s02+float64(z*(_s03+float64(z*(_s04+float64(z*_s05))))))))) + z = r / s + } else { + /* avoid underflow, raise inexact if x!=0 */ + z = x + } + return float64((float64(0.5) + z) * x) +} + +var _U0 = [5]float64{ + 0: -Float64FromFloat64(0.19605709064623894), + 1: float64(0.05044387166398113), + 2: -Float64FromFloat64(0.0019125689587576355), + 3: float64(2.352526005616105e-05), + 4: -Float64FromFloat64(9.190991580398789e-08), +} +var _V0 = [5]float64{ + 0: float64(0.01991673182366499), + 1: float64(0.00020255258102513517), + 2: float64(1.3560880109751623e-06), + 3: float64(6.227414523646215e-09), + 4: float64(1.6655924620799208e-11), +} + +func Xy1(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __u Tuint64_t + var ix, lx Tuint32_t + var u, v, z float64 + _, _, _, _, _, _ = __u, ix, lx, u, v, z + __u = *(*Tuint64_t)(unsafe.Pointer(&x)) + ix = uint32(__u >> int32(32)) + lx = uint32(__u) + /* y1(nan)=nan, y1(<0)=nan, y1(0)=-inf, y1(inf)=0 */ + if ix<>int32(31) != 0 { + return Float64FromInt32(0) / Float64FromFloat64(0) + } + if ix >= uint32(0x7ff00000) { + return Float64FromInt32(1) / x + } + if ix >= uint32(0x40000000) { /* x >= 2 */ + return _common2(tls, ix, x, int32(1), 0) + } + if ix < uint32(0x3c900000) { /* x < 2**-54 */ + return -_tpi2 / x + } + z = float64(x * x) + u = _U0[0] + float64(z*(_U0[int32(1)]+float64(z*(_U0[int32(2)]+float64(z*(_U0[int32(3)]+float64(z*_U0[int32(4)]))))))) + v = Float64FromInt32(1) + float64(z*(_V0[0]+float64(z*(_V0[int32(1)]+float64(z*(_V0[int32(2)]+float64(z*(_V0[int32(3)]+float64(z*_V0[int32(4)]))))))))) + return float64(x*(u/v)) + float64(_tpi2*(float64(Xj1(tls, x)*Xlog(tls, x))-Float64FromInt32(1)/x)) +} + +/* For x >= 8, the asymptotic expansions of pone is + * 1 + 15/128 s^2 - 4725/2^15 s^4 - ..., where s = 1/x. + * We approximate pone by + * pone(x) = 1 + (R/S) + * where R = pr0 + pr1*s^2 + pr2*s^4 + ... + pr5*s^10 + * S = 1 + ps0*s^2 + ... + ps4*s^10 + * and + * | pone(x)-1-R/S | <= 2 ** ( -60.06) + */ + +var _pr8 = [6]float64{ + 1: float64(0.11718749999998865), + 2: float64(13.239480659307358), + 3: float64(412.05185430737856), + 4: float64(3874.7453891396053), + 5: float64(7914.479540318917), +} +var _ps8 = [5]float64{ + 0: float64(114.20737037567841), + 1: float64(3650.9308342085346), + 2: float64(36956.206026903346), + 3: float64(97602.79359349508), + 4: float64(30804.27206278888), +} + +var _pr5 = [6]float64{ + 0: float64(1.3199051955624352e-11), + 1: float64(0.1171874931906141), + 2: float64(6.802751278684329), + 3: float64(108.30818299018911), + 4: float64(517.6361395331998), + 5: float64(528.7152013633375), +} +var _ps5 = [5]float64{ + 0: float64(59.28059872211313), + 1: float64(991.4014187336144), + 2: float64(5353.26695291488), + 3: float64(7844.690317495512), + 4: float64(1504.0468881036106), +} + +var _pr3 = [6]float64{ + 0: float64(3.025039161373736e-09), + 1: float64(0.11718686556725359), + 2: float64(3.9329775003331564), + 3: float64(35.11940355916369), + 4: float64(91.05501107507813), + 5: float64(48.55906851973649), +} +var _ps3 = [5]float64{ + 0: float64(34.79130950012515), + 1: float64(336.76245874782575), + 2: float64(1046.8713997577513), + 3: float64(890.8113463982564), + 4: float64(103.78793243963928), +} + +var _pr2 = [6]float64{ + 0: float64(1.0771083010687374e-07), + 1: float64(0.11717621946268335), + 2: float64(2.368514966676088), + 3: float64(12.242610914826123), + 4: float64(17.693971127168773), + 5: float64(5.073523125888185), +} +var _ps2 = [5]float64{ + 0: float64(21.43648593638214), + 1: float64(125.29022716840275), + 2: float64(232.2764690571628), + 3: float64(117.6793732871471), + 4: float64(8.364638933716183), +} + +func _pone(tls *TLS, x float64) (r1 float64) { + var ix Tuint32_t + var p, q uintptr + var r, s, z Tdouble_t + _, _, _, _, _, _ = ix, p, q, r, s, z + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x40200000) { + p = uintptr(unsafe.Pointer(&_pr8)) + q = uintptr(unsafe.Pointer(&_ps8)) + } else { + if ix >= uint32(0x40122E8B) { + p = uintptr(unsafe.Pointer(&_pr5)) + q = uintptr(unsafe.Pointer(&_ps5)) + } else { + if ix >= uint32(0x4006DB6D) { + p = uintptr(unsafe.Pointer(&_pr3)) + q = uintptr(unsafe.Pointer(&_ps3)) + } else { /*ix >= 0x40000000*/ + p = uintptr(unsafe.Pointer(&_pr2)) + q = uintptr(unsafe.Pointer(&_ps2)) + } + } + } + z = float64(1) / float64(x*x) + r = **(**float64)(__ccgo_up(p)) + float64(z*(**(**float64)(__ccgo_up(p + 1*8))+float64(z*(**(**float64)(__ccgo_up(p + 2*8))+float64(z*(**(**float64)(__ccgo_up(p + 3*8))+float64(z*(**(**float64)(__ccgo_up(p + 4*8))+float64(z***(**float64)(__ccgo_up(p + 5*8))))))))))) + s = float64(1) + float64(z*(**(**float64)(__ccgo_up(q))+float64(z*(**(**float64)(__ccgo_up(q + 1*8))+float64(z*(**(**float64)(__ccgo_up(q + 2*8))+float64(z*(**(**float64)(__ccgo_up(q + 3*8))+float64(z***(**float64)(__ccgo_up(q + 4*8))))))))))) + return float64(1) + r/s +} + +/* For x >= 8, the asymptotic expansions of qone is + * 3/8 s - 105/1024 s^3 - ..., where s = 1/x. + * We approximate pone by + * qone(x) = s*(0.375 + (R/S)) + * where R = qr1*s^2 + qr2*s^4 + ... + qr5*s^10 + * S = 1 + qs1*s^2 + ... + qs6*s^12 + * and + * | qone(x)/s -0.375-R/S | <= 2 ** ( -61.13) + */ + +var _qr8 = [6]float64{ + 1: -Float64FromFloat64(0.10253906249999271), + 2: -Float64FromFloat64(16.271753454459), + 3: -Float64FromFloat64(759.6017225139501), + 4: -Float64FromFloat64(11849.806670242959), + 5: -Float64FromFloat64(48438.512428575035), +} +var _qs8 = [6]float64{ + 0: float64(161.3953697007229), + 1: float64(7825.385999233485), + 2: float64(133875.33628724958), + 3: float64(719657.7236832409), + 4: float64(666601.2326177764), + 5: -Float64FromFloat64(294490.26430383464), +} + +var _qr5 = [6]float64{ + 0: -Float64FromFloat64(2.089799311417641e-11), + 1: -Float64FromFloat64(0.10253905024137543), + 2: -Float64FromFloat64(8.05644828123936), + 3: -Float64FromFloat64(183.66960747488838), + 4: -Float64FromFloat64(1373.1937606550816), + 5: -Float64FromFloat64(2612.4444045321566), +} +var _qs5 = [6]float64{ + 0: float64(81.27655013843358), + 1: float64(1991.7987346048596), + 2: float64(17468.48519249089), + 3: float64(49851.42709103523), + 4: float64(27948.075163891812), + 5: -Float64FromFloat64(4719.183547951285), +} + +var _qr3 = [6]float64{ + 0: -Float64FromFloat64(5.078312264617666e-09), + 1: -Float64FromFloat64(0.10253782982083709), + 2: -Float64FromFloat64(4.610115811394734), + 3: -Float64FromFloat64(57.847221656278364), + 4: -Float64FromFloat64(228.2445407376317), + 5: -Float64FromFloat64(219.21012847890933), +} +var _qs3 = [6]float64{ + 0: float64(47.66515503237295), + 1: float64(673.8651126766997), + 2: float64(3380.1528667952634), + 3: float64(5547.729097207228), + 4: float64(1903.119193388108), + 5: -Float64FromFloat64(135.20119144430734), +} + +var _qr2 = [6]float64{ + 0: -Float64FromFloat64(1.7838172751095887e-07), + 1: -Float64FromFloat64(0.10251704260798555), + 2: -Float64FromFloat64(2.7522056827818746), + 3: -Float64FromFloat64(19.663616264370372), + 4: -Float64FromFloat64(42.32531333728305), + 5: -Float64FromFloat64(21.371921170370406), +} +var _qs2 = [6]float64{ + 0: float64(29.533362906052385), + 1: float64(252.98154998219053), + 2: float64(757.5028348686454), + 3: float64(739.3932053204672), + 4: float64(155.94900333666612), + 5: -Float64FromFloat64(4.959498988226282), +} + +func _qone(tls *TLS, x float64) (r1 float64) { + var ix Tuint32_t + var p, q uintptr + var r, s, z Tdouble_t + _, _, _, _, _, _ = ix, p, q, r, s, z + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x40200000) { + p = uintptr(unsafe.Pointer(&_qr8)) + q = uintptr(unsafe.Pointer(&_qs8)) + } else { + if ix >= uint32(0x40122E8B) { + p = uintptr(unsafe.Pointer(&_qr5)) + q = uintptr(unsafe.Pointer(&_qs5)) + } else { + if ix >= uint32(0x4006DB6D) { + p = uintptr(unsafe.Pointer(&_qr3)) + q = uintptr(unsafe.Pointer(&_qs3)) + } else { /*ix >= 0x40000000*/ + p = uintptr(unsafe.Pointer(&_qr2)) + q = uintptr(unsafe.Pointer(&_qs2)) + } + } + } + z = float64(1) / float64(x*x) + r = **(**float64)(__ccgo_up(p)) + float64(z*(**(**float64)(__ccgo_up(p + 1*8))+float64(z*(**(**float64)(__ccgo_up(p + 2*8))+float64(z*(**(**float64)(__ccgo_up(p + 3*8))+float64(z*(**(**float64)(__ccgo_up(p + 4*8))+float64(z***(**float64)(__ccgo_up(p + 5*8))))))))))) + s = float64(1) + float64(z*(**(**float64)(__ccgo_up(q))+float64(z*(**(**float64)(__ccgo_up(q + 1*8))+float64(z*(**(**float64)(__ccgo_up(q + 2*8))+float64(z*(**(**float64)(__ccgo_up(q + 3*8))+float64(z*(**(**float64)(__ccgo_up(q + 4*8))+float64(z***(**float64)(__ccgo_up(q + 5*8))))))))))))) + return (float64(0.375) + r/s) / x +} + +var _invsqrtpi3 = float32(0.56418961287) /* 0x3f106ebb */ +var _tpi3 = float32(0.63661974669) /* 0x3f22f983 */ + +func _common3(tls *TLS, ix Tuint32_t, x float32, y1 int32, sign int32) (r float32) { + var c, cc, s, ss, z float64 + _, _, _, _, _ = c, cc, s, ss, z + s = float64(Xsinf(tls, x)) + if y1 != 0 { + s = -s + } + c = float64(Xcosf(tls, x)) + cc = s - c + if ix < uint32(0x7f000000) { + ss = -s - c + z = float64(Xcosf(tls, float32(Float32FromInt32(2)*x))) + if float64(s*c) > Float64FromInt32(0) { + cc = z / ss + } else { + ss = z / cc + } + if ix < uint32(0x58800000) { + if y1 != 0 { + ss = -ss + } + cc = float64(float64(_ponef(tls, x))*cc) - float64(float64(_qonef(tls, x))*ss) + } + } + if sign != 0 { + cc = -cc + } + return float32(float64(float64(_invsqrtpi3)*cc) / float64(Xsqrtf(tls, x))) +} + +// C documentation +// +// /* R0/S0 on [0,2] */ + +var _r001 = float32(-Float64FromFloat64(0.0625)) /* 0xbd800000 */ +var _r011 = float32(0.0014070566976) /* 0x3ab86cfd */ +var _r021 = float32(-Float64FromFloat64(1.5995563444e-05)) /* 0xb7862e36 */ +var _r031 = float32(4.9672799207e-08) /* 0x335557d2 */ +var _s011 = float32(0.019153760746) /* 0x3c9ce859 */ +var _s021 = float32(0.00018594678841) /* 0x3942fab6 */ +var _s031 = float32(1.1771846857e-06) /* 0x359dffc2 */ +var _s041 = float32(5.046362439e-09) /* 0x31ad6446 */ +var _s051 = float32(1.2354227016e-11) /* 0x2d59567e */ + +func Xj1f(tls *TLS, x float32) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var ix Tuint32_t + var r, s, z float32 + var sign int32 + _, _, _, _, _ = ix, r, s, sign, z + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x7f800000) { + return Float32FromInt32(1) / float32(x*x) + } + if ix >= uint32(0x40000000) { /* |x| >= 2 */ + return _common3(tls, ix, Xfabsf(tls, x), 0, sign) + } + if ix >= uint32(0x39000000) { /* |x| >= 2**-13 */ + z = float32(x * x) + r = float32(z * (_r001 + float32(z*(_r011+float32(z*(_r021+float32(z*_r031))))))) + s = Float32FromInt32(1) + float32(z*(_s011+float32(z*(_s021+float32(z*(_s031+float32(z*(_s041+float32(z*_s051))))))))) + z = Float32FromFloat32(0.5) + r/s + } else { + z = Float32FromFloat32(0.5) + } + return float32(z * x) +} + +var _U01 = [5]float32{ + 0: float32(-Float64FromFloat64(0.19605709612)), + 1: float32(0.050443872809), + 2: float32(-Float64FromFloat64(0.0019125689287)), + 3: float32(2.3525259166e-05), + 4: float32(-Float64FromFloat64(9.1909917899e-08)), +} +var _V01 = [5]float32{ + 0: float32(0.019916731864), + 1: float32(0.0002025525755), + 2: float32(1.3560879779e-06), + 3: float32(6.227414584e-09), + 4: float32(1.6655924903e-11), +} + +func Xy1f(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ix Tuint32_t + var u, v, z float32 + _, _, _, _ = ix, u, v, z + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + if ix&uint32(0x7fffffff) == uint32(0) { + return float32(-Int32FromInt32(1)) / Float32FromFloat32(0) + } + if ix>>int32(31) != 0 { + return Float32FromInt32(0) / Float32FromFloat32(0) + } + if ix >= uint32(0x7f800000) { + return Float32FromInt32(1) / x + } + if ix >= uint32(0x40000000) { /* |x| >= 2.0 */ + return _common3(tls, ix, x, int32(1), 0) + } + if ix < uint32(0x33000000) { /* x < 2**-25 */ + return -_tpi3 / x + } + z = float32(x * x) + u = _U01[0] + float32(z*(_U01[int32(1)]+float32(z*(_U01[int32(2)]+float32(z*(_U01[int32(3)]+float32(z*_U01[int32(4)]))))))) + v = Float32FromFloat32(1) + float32(z*(_V01[0]+float32(z*(_V01[int32(1)]+float32(z*(_V01[int32(2)]+float32(z*(_V01[int32(3)]+float32(z*_V01[int32(4)]))))))))) + return float32(x*(u/v)) + float32(_tpi3*(float32(Xj1f(tls, x)*Xlogf(tls, x))-Float32FromFloat32(1)/x)) +} + +/* For x >= 8, the asymptotic expansions of pone is + * 1 + 15/128 s^2 - 4725/2^15 s^4 - ..., where s = 1/x. + * We approximate pone by + * pone(x) = 1 + (R/S) + * where R = pr0 + pr1*s^2 + pr2*s^4 + ... + pr5*s^10 + * S = 1 + ps0*s^2 + ... + ps4*s^10 + * and + * | pone(x)-1-R/S | <= 2 ** ( -60.06) + */ + +var _pr81 = [6]float32{ + 1: float32(0.1171875), + 2: float32(13.239480972), + 3: float32(412.05184937), + 4: float32(3874.7453613), + 5: float32(7914.4794922), +} +var _ps81 = [5]float32{ + 0: float32(114.20736694), + 1: float32(3650.9309082), + 2: float32(36956.207031), + 3: float32(97602.796875), + 4: float32(30804.271484), +} + +var _pr51 = [6]float32{ + 0: float32(1.3199052094e-11), + 1: float32(0.11718749255), + 2: float32(6.8027510643), + 3: float32(108.30818176), + 4: float32(517.63616943), + 5: float32(528.71520996), +} +var _ps51 = [5]float32{ + 0: float32(59.280597687), + 1: float32(991.40142822), + 2: float32(5353.2670898), + 3: float32(7844.6904297), + 4: float32(1504.046875), +} + +var _pr31 = [6]float32{ + 0: float32(3.0250391081e-09), + 1: float32(0.1171868667), + 2: float32(3.932977438), + 3: float32(35.119403839), + 4: float32(91.055007935), + 5: float32(48.559066772), +} +var _ps31 = [5]float32{ + 0: float32(34.791309357), + 1: float32(336.76245117), + 2: float32(1046.87146), + 3: float32(890.81134033), + 4: float32(103.78793335), +} + +var _pr21 = [6]float32{ + 0: float32(1.0771083225e-07), + 1: float32(0.11717621982), + 2: float32(2.3685150146), + 3: float32(12.242610931), + 4: float32(17.693971634), + 5: float32(5.0735230446), +} +var _ps21 = [5]float32{ + 0: float32(21.436485291), + 1: float32(125.2902298), + 2: float32(232.276474), + 3: float32(117.67937469), + 4: float32(8.3646392822), +} + +func _ponef(tls *TLS, x float32) (r1 float32) { + var ix Tuint32_t + var p, q uintptr + var r, s, z Tfloat_t + _, _, _, _, _, _ = ix, p, q, r, s, z + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x41000000) { + p = uintptr(unsafe.Pointer(&_pr81)) + q = uintptr(unsafe.Pointer(&_ps81)) + } else { + if ix >= uint32(0x409173eb) { + p = uintptr(unsafe.Pointer(&_pr51)) + q = uintptr(unsafe.Pointer(&_ps51)) + } else { + if ix >= uint32(0x4036d917) { + p = uintptr(unsafe.Pointer(&_pr31)) + q = uintptr(unsafe.Pointer(&_ps31)) + } else { /*ix >= 0x40000000*/ + p = uintptr(unsafe.Pointer(&_pr21)) + q = uintptr(unsafe.Pointer(&_ps21)) + } + } + } + z = Float32FromFloat32(1) / float32(x*x) + r = **(**float32)(__ccgo_up(p)) + float32(z*(**(**float32)(__ccgo_up(p + 1*4))+float32(z*(**(**float32)(__ccgo_up(p + 2*4))+float32(z*(**(**float32)(__ccgo_up(p + 3*4))+float32(z*(**(**float32)(__ccgo_up(p + 4*4))+float32(z***(**float32)(__ccgo_up(p + 5*4))))))))))) + s = Float32FromFloat32(1) + float32(z*(**(**float32)(__ccgo_up(q))+float32(z*(**(**float32)(__ccgo_up(q + 1*4))+float32(z*(**(**float32)(__ccgo_up(q + 2*4))+float32(z*(**(**float32)(__ccgo_up(q + 3*4))+float32(z***(**float32)(__ccgo_up(q + 4*4))))))))))) + return Float32FromFloat32(1) + r/s +} + +/* For x >= 8, the asymptotic expansions of qone is + * 3/8 s - 105/1024 s^3 - ..., where s = 1/x. + * We approximate pone by + * qone(x) = s*(0.375 + (R/S)) + * where R = qr1*s^2 + qr2*s^4 + ... + qr5*s^10 + * S = 1 + qs1*s^2 + ... + qs6*s^12 + * and + * | qone(x)/s -0.375-R/S | <= 2 ** ( -61.13) + */ + +var _qr81 = [6]float32{ + 1: float32(-Float64FromFloat64(0.1025390625)), + 2: float32(-Float64FromFloat64(16.271753311)), + 3: float32(-Float64FromFloat64(759.60174561)), + 4: float32(-Float64FromFloat64(11849.806641)), + 5: float32(-Float64FromFloat64(48438.511719)), +} +var _qs81 = [6]float32{ + 0: float32(161.39537048), + 1: float32(7825.3862305), + 2: float32(133875.34375), + 3: float32(719657.75), + 4: float32(666601.25), + 5: float32(-Float64FromFloat64(294490.25)), +} + +var _qr51 = [6]float32{ + 0: float32(-Float64FromFloat64(2.0897993405e-11)), + 1: float32(-Float64FromFloat64(0.1025390476)), + 2: float32(-Float64FromFloat64(8.0564479828)), + 3: float32(-Float64FromFloat64(183.66960144)), + 4: float32(-Float64FromFloat64(1373.1937256)), + 5: float32(-Float64FromFloat64(2612.4443359)), +} +var _qs51 = [6]float32{ + 0: float32(81.276550293), + 1: float32(1991.7987061), + 2: float32(17468.484375), + 3: float32(49851.425781), + 4: float32(27948.074219), + 5: float32(-Float64FromFloat64(4719.1835938)), +} + +var _qr31 = [6]float32{ + 0: float32(-Float64FromFloat64(5.0783124372e-09)), + 1: float32(-Float64FromFloat64(0.10253783315)), + 2: float32(-Float64FromFloat64(4.6101160049)), + 3: float32(-Float64FromFloat64(57.847221375)), + 4: float32(-Float64FromFloat64(228.24453735)), + 5: float32(-Float64FromFloat64(219.21012878)), +} +var _qs31 = [6]float32{ + 0: float32(47.665153503), + 1: float32(673.8651123), + 2: float32(3380.152832), + 3: float32(5547.7290039), + 4: float32(1903.1191406), + 5: float32(-Float64FromFloat64(135.20118713)), +} + +var _qr21 = [6]float32{ + 0: float32(-Float64FromFloat64(1.7838172539e-07)), + 1: float32(-Float64FromFloat64(0.10251704603)), + 2: float32(-Float64FromFloat64(2.7522056103)), + 3: float32(-Float64FromFloat64(19.66361618)), + 4: float32(-Float64FromFloat64(42.325313568)), + 5: float32(-Float64FromFloat64(21.371921539)), +} +var _qs21 = [6]float32{ + 0: float32(29.533363342), + 1: float32(252.98155212), + 2: float32(757.50280762), + 3: float32(739.39318848), + 4: float32(155.94900513), + 5: float32(-Float64FromFloat64(4.9594988823)), +} + +func _qonef(tls *TLS, x float32) (r1 float32) { + var ix Tuint32_t + var p, q uintptr + var r, s, z Tfloat_t + _, _, _, _, _, _ = ix, p, q, r, s, z + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x41000000) { + p = uintptr(unsafe.Pointer(&_qr81)) + q = uintptr(unsafe.Pointer(&_qs81)) + } else { + if ix >= uint32(0x409173eb) { + p = uintptr(unsafe.Pointer(&_qr51)) + q = uintptr(unsafe.Pointer(&_qs51)) + } else { + if ix >= uint32(0x4036d917) { + p = uintptr(unsafe.Pointer(&_qr31)) + q = uintptr(unsafe.Pointer(&_qs31)) + } else { /*ix >= 0x40000000*/ + p = uintptr(unsafe.Pointer(&_qr21)) + q = uintptr(unsafe.Pointer(&_qs21)) + } + } + } + z = Float32FromFloat32(1) / float32(x*x) + r = **(**float32)(__ccgo_up(p)) + float32(z*(**(**float32)(__ccgo_up(p + 1*4))+float32(z*(**(**float32)(__ccgo_up(p + 2*4))+float32(z*(**(**float32)(__ccgo_up(p + 3*4))+float32(z*(**(**float32)(__ccgo_up(p + 4*4))+float32(z***(**float32)(__ccgo_up(p + 5*4))))))))))) + s = Float32FromFloat32(1) + float32(z*(**(**float32)(__ccgo_up(q))+float32(z*(**(**float32)(__ccgo_up(q + 1*4))+float32(z*(**(**float32)(__ccgo_up(q + 2*4))+float32(z*(**(**float32)(__ccgo_up(q + 3*4))+float32(z*(**(**float32)(__ccgo_up(q + 4*4))+float32(z***(**float32)(__ccgo_up(q + 5*4))))))))))))) + return (Float32FromFloat32(0.375) + r/s) / x +} + +var _invsqrtpi4 = float64(0.5641895835477563) /* 0x3FE20DD7, 0x50429B6D */ + +func Xjn(tls *TLS, n int32, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v n=%v x=%v, (%v:)", tls, n, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __u Tuint64_t + var a, b, h, nf, q0, q1, t, temp, tmp, w, z, v6 float64 + var i, k, nm1, sign int32 + var ix, lx Tuint32_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = __u, a, b, h, i, ix, k, lx, nf, nm1, q0, q1, sign, t, temp, tmp, w, z, v6 + __u = *(*Tuint64_t)(unsafe.Pointer(&x)) + ix = uint32(__u >> int32(32)) + lx = uint32(__u) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix|(lx|-lx)>>int32(31) > uint32(0x7ff00000) { /* nan */ + return x + } + /* J(-n,x) = (-1)^n * J(n, x), J(n, -x) = (-1)^n * J(n, x) + * Thus, J(-n,x) = J(n,-x) + */ + /* nm1 = |n|-1 is used instead of |n| to handle n==INT_MIN */ + if n == 0 { + return Xj0(tls, x) + } + if n < 0 { + nm1 = -(n + int32(1)) + x = -x + sign = sign ^ int32(1) + } else { + nm1 = n - int32(1) + } + if nm1 == 0 { + return Xj1(tls, x) + } + sign = sign & n /* even n: 0, odd n: signbit(x) */ + x = Xfabs(tls, x) + if ix|lx == uint32(0) || ix == uint32(0x7ff00000) { /* if x is 0 or inf */ + b = float64(0) + } else { + if float64(nm1) < x { + /* Safe to use J(n+1,x)=2n/x *J(n,x)-J(n-1,x) */ + if ix >= uint32(0x52d00000) { /* x > 2**302 */ + /* (x >> n**2) + * Jn(x) = cos(x-(2n+1)*pi/4)*sqrt(2/x*pi) + * Yn(x) = sin(x-(2n+1)*pi/4)*sqrt(2/x*pi) + * Let s=sin(x), c=cos(x), + * xn=x-(2n+1)*pi/4, sqt2 = sqrt(2),then + * + * n sin(xn)*sqt2 cos(xn)*sqt2 + * ---------------------------------- + * 0 s-c c+s + * 1 -s-c -c+s + * 2 -s+c -c-s + * 3 s+c c-s + */ + switch nm1 & Int32FromInt32(3) { + case 0: + temp = -Xcos(tls, x) + Xsin(tls, x) + case int32(1): + temp = -Xcos(tls, x) - Xsin(tls, x) + case int32(2): + temp = Xcos(tls, x) - Xsin(tls, x) + default: + fallthrough + case int32(3): + temp = Xcos(tls, x) + Xsin(tls, x) + break + } + b = float64(_invsqrtpi4*temp) / Xsqrt(tls, x) + } else { + a = Xj0(tls, x) + b = Xj1(tls, x) + i = 0 + for { + if !(i < nm1) { + break + } + i = i + 1 + temp = b + b = float64(b*(float64(float64(2)*float64(i))/x)) - a /* avoid underflow */ + a = temp + goto _1 + _1: + } + } + } else { + if ix < uint32(0x3e100000) { /* x < 2**-29 */ + /* x is tiny, return the first Taylor expansion of J(n,x) + * J(n,x) = 1/n!*(x/2)^n - ... + */ + if nm1 > int32(32) { /* underflow */ + b = float64(0) + } else { + temp = float64(x * float64(0.5)) + b = temp + a = float64(1) + i = int32(2) + for { + if !(i <= nm1+int32(1)) { + break + } + a = a * float64(i) /* a = n! */ + b = b * temp /* b = (x/2)^n */ + goto _2 + _2: + ; + i = i + 1 + } + b = b / a + } + } else { + nf = float64(nm1) + float64(1) + w = float64(Float64FromInt32(2)*nf) / x + h = Float64FromInt32(2) / x + z = w + h + q0 = w + q1 = float64(w*z) - float64(1) + k = int32(1) + for q1 < float64(1e+09) { + k = k + int32(1) + z = z + h + tmp = float64(z*q1) - q0 + q0 = q1 + q1 = tmp + } + t = float64(0) + i = k + for { + if !(i >= 0) { + break + } + t = Float64FromInt32(1) / (float64(Float64FromInt32(2)*(float64(i)+nf))/x - t) + goto _3 + _3: + ; + i = i - 1 + } + a = t + b = float64(1) + /* estimate log((2/x)^n*n!) = n*log(2/x)+n*ln(n) + * Hence, if n*(log(2n/x)) > ... + * single 8.8722839355e+01 + * double 7.09782712893383973096e+02 + * long double 1.1356523406294143949491931077970765006170e+04 + * then recurrent value may overflow and the result is + * likely underflow to zero + */ + tmp = float64(nf * Xlog(tls, Xfabs(tls, w))) + if tmp < float64(709.782712893384) { + i = nm1 + for { + if !(i > 0) { + break + } + temp = b + b = float64(b*float64(float64(2)*float64(i)))/x - a + a = temp + goto _4 + _4: + ; + i = i - 1 + } + } else { + i = nm1 + for { + if !(i > 0) { + break + } + temp = b + b = float64(b*float64(float64(2)*float64(i)))/x - a + a = temp + /* scale b to avoid spurious overflow */ + if b > float64(3.273390607896142e+150) { + a = a / b + t = t / b + b = float64(1) + } + goto _5 + _5: + ; + i = i - 1 + } + } + z = Xj0(tls, x) + w = Xj1(tls, x) + if Xfabs(tls, z) >= Xfabs(tls, w) { + b = float64(t*z) / b + } else { + b = float64(t*w) / a + } + } + } + } + if sign != 0 { + v6 = -b + } else { + v6 = b + } + return v6 +} + +func Xyn(tls *TLS, n int32, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v n=%v x=%v, (%v:)", tls, n, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __u Tuint64_t + var a, b, temp, v1 float64 + var i, nm1, sign int32 + var ib, ix, lx Tuint32_t + _, _, _, _, _, _, _, _, _, _, _ = __u, a, b, i, ib, ix, lx, nm1, sign, temp, v1 + __u = *(*Tuint64_t)(unsafe.Pointer(&x)) + ix = uint32(__u >> int32(32)) + lx = uint32(__u) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix|(lx|-lx)>>int32(31) > uint32(0x7ff00000) { /* nan */ + return x + } + if sign != 0 && ix|lx != uint32(0) { /* x < 0 */ + return Float64FromInt32(0) / Float64FromFloat64(0) + } + if ix == uint32(0x7ff00000) { + return float64(0) + } + if n == 0 { + return Xy0(tls, x) + } + if n < 0 { + nm1 = -(n + int32(1)) + sign = n & int32(1) + } else { + nm1 = n - int32(1) + sign = 0 + } + if nm1 == 0 { + if sign != 0 { + v1 = -Xy1(tls, x) + } else { + v1 = Xy1(tls, x) + } + return v1 + } + if ix >= uint32(0x52d00000) { /* x > 2**302 */ + /* (x >> n**2) + * Jn(x) = cos(x-(2n+1)*pi/4)*sqrt(2/x*pi) + * Yn(x) = sin(x-(2n+1)*pi/4)*sqrt(2/x*pi) + * Let s=sin(x), c=cos(x), + * xn=x-(2n+1)*pi/4, sqt2 = sqrt(2),then + * + * n sin(xn)*sqt2 cos(xn)*sqt2 + * ---------------------------------- + * 0 s-c c+s + * 1 -s-c -c+s + * 2 -s+c -c-s + * 3 s+c c-s + */ + switch nm1 & Int32FromInt32(3) { + case 0: + temp = -Xsin(tls, x) - Xcos(tls, x) + case int32(1): + temp = -Xsin(tls, x) + Xcos(tls, x) + case int32(2): + temp = Xsin(tls, x) + Xcos(tls, x) + default: + fallthrough + case int32(3): + temp = Xsin(tls, x) - Xcos(tls, x) + break + } + b = float64(_invsqrtpi4*temp) / Xsqrt(tls, x) + } else { + a = Xy0(tls, x) + b = Xy1(tls, x) + /* quit if b is -inf */ + ib = uint32(*(*Tuint64_t)(unsafe.Pointer(&b)) >> int32(32)) + i = 0 + for { + if !(i < nm1 && ib != uint32(0xfff00000)) { + break + } + i = i + 1 + temp = b + b = float64(float64(float64(2)*float64(i))/x*b) - a + ib = uint32(*(*Tuint64_t)(unsafe.Pointer(&b)) >> int32(32)) + a = temp + goto _2 + _2: + } + } + if sign != 0 { + v1 = -b + } else { + v1 = b + } + return v1 +} + +func Xjnf(tls *TLS, n int32, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v n=%v x=%v, (%v:)", tls, n, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, b, h, nf, q0, q1, t, temp, tmp, w, z, v6 float32 + var i, k, nm1, sign int32 + var ix Tuint32_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = a, b, h, i, ix, k, nf, nm1, q0, q1, sign, t, temp, tmp, w, z, v6 + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix > uint32(0x7f800000) { /* nan */ + return x + } + /* J(-n,x) = J(n,-x), use |n|-1 to avoid overflow in -n */ + if n == 0 { + return Xj0f(tls, x) + } + if n < 0 { + nm1 = -(n + int32(1)) + x = -x + sign = sign ^ int32(1) + } else { + nm1 = n - int32(1) + } + if nm1 == 0 { + return Xj1f(tls, x) + } + sign = sign & n /* even n: 0, odd n: signbit(x) */ + x = Xfabsf(tls, x) + if ix == uint32(0) || ix == uint32(0x7f800000) { /* if x is 0 or inf */ + b = Float32FromFloat32(0) + } else { + if float32(nm1) < x { + /* Safe to use J(n+1,x)=2n/x *J(n,x)-J(n-1,x) */ + a = Xj0f(tls, x) + b = Xj1f(tls, x) + i = 0 + for { + if !(i < nm1) { + break + } + i = i + 1 + temp = b + b = float32(b*(float32(Float32FromFloat32(2)*float32(i))/x)) - a + a = temp + goto _1 + _1: + } + } else { + if ix < uint32(0x35800000) { /* x < 2**-20 */ + /* x is tiny, return the first Taylor expansion of J(n,x) + * J(n,x) = 1/n!*(x/2)^n - ... + */ + if nm1 > int32(8) { /* underflow */ + nm1 = int32(8) + } + temp = float32(Float32FromFloat32(0.5) * x) + b = temp + a = Float32FromFloat32(1) + i = int32(2) + for { + if !(i <= nm1+int32(1)) { + break + } + a = a * float32(i) /* a = n! */ + b = b * temp /* b = (x/2)^n */ + goto _2 + _2: + ; + i = i + 1 + } + b = b / a + } else { + nf = float32(nm1) + Float32FromFloat32(1) + w = float32(Float32FromInt32(2)*nf) / x + h = Float32FromInt32(2) / x + z = w + h + q0 = w + q1 = float32(w*z) - Float32FromFloat32(1) + k = int32(1) + for q1 < Float32FromFloat32(10000) { + k = k + int32(1) + z = z + h + tmp = float32(z*q1) - q0 + q0 = q1 + q1 = tmp + } + t = Float32FromFloat32(0) + i = k + for { + if !(i >= 0) { + break + } + t = Float32FromFloat32(1) / (float32(Float32FromInt32(2)*(float32(i)+nf))/x - t) + goto _3 + _3: + ; + i = i - 1 + } + a = t + b = Float32FromFloat32(1) + /* estimate log((2/x)^n*n!) = n*log(2/x)+n*ln(n) + * Hence, if n*(log(2n/x)) > ... + * single 8.8722839355e+01 + * double 7.09782712893383973096e+02 + * long double 1.1356523406294143949491931077970765006170e+04 + * then recurrent value may overflow and the result is + * likely underflow to zero + */ + tmp = float32(nf * Xlogf(tls, Xfabsf(tls, w))) + if tmp < Float32FromFloat32(88.721679688) { + i = nm1 + for { + if !(i > 0) { + break + } + temp = b + b = float32(float32(Float32FromFloat32(2)*float32(i))*b)/x - a + a = temp + goto _4 + _4: + ; + i = i - 1 + } + } else { + i = nm1 + for { + if !(i > 0) { + break + } + temp = b + b = float32(float32(Float32FromFloat32(2)*float32(i))*b)/x - a + a = temp + /* scale b to avoid spurious overflow */ + if b > Float32FromFloat32(1.152921504606847e+18) { + a = a / b + t = t / b + b = Float32FromFloat32(1) + } + goto _5 + _5: + ; + i = i - 1 + } + } + z = Xj0f(tls, x) + w = Xj1f(tls, x) + if Xfabsf(tls, z) >= Xfabsf(tls, w) { + b = float32(t*z) / b + } else { + b = float32(t*w) / a + } + } + } + } + if sign != 0 { + v6 = -b + } else { + v6 = b + } + return v6 +} + +func Xynf(tls *TLS, n int32, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v n=%v x=%v, (%v:)", tls, n, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, b, temp, v1 float32 + var i, nm1, sign int32 + var ib, ix Tuint32_t + _, _, _, _, _, _, _, _, _ = a, b, i, ib, ix, nm1, sign, temp, v1 + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix > uint32(0x7f800000) { /* nan */ + return x + } + if sign != 0 && ix != uint32(0) { /* x < 0 */ + return Float32FromInt32(0) / Float32FromFloat32(0) + } + if ix == uint32(0x7f800000) { + return Float32FromFloat32(0) + } + if n == 0 { + return Xy0f(tls, x) + } + if n < 0 { + nm1 = -(n + int32(1)) + sign = n & int32(1) + } else { + nm1 = n - int32(1) + sign = 0 + } + if nm1 == 0 { + if sign != 0 { + v1 = -Xy1f(tls, x) + } else { + v1 = Xy1f(tls, x) + } + return v1 + } + a = Xy0f(tls, x) + b = Xy1f(tls, x) + /* quit if b is -inf */ + ib = *(*Tuint32_t)(unsafe.Pointer(&b)) + i = 0 + for { + if !(i < nm1 && ib != uint32(0xff800000)) { + break + } + i = i + 1 + temp = b + b = float32(float32(Float32FromFloat32(2)*float32(i))/x*b) - a + ib = *(*Tuint32_t)(unsafe.Pointer(&b)) + a = temp + goto _2 + _2: + } + if sign != 0 { + v1 = -b + } else { + v1 = b + } + return v1 +} + +func Xldexp(tls *TLS, x float64, n int32) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xscalbn(tls, x, n) +} + +func Xldexpf(tls *TLS, x float32, n int32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xscalbnf(tls, x, n) +} + +func Xldexpl(tls *TLS, x float64, n int32) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xscalbnl(tls, x, n) +} + +func Xlgamma(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lgamma_r(tls, x, uintptr(unsafe.Pointer(&Xsigngam))) +} + +var _pi2 = float64(3.141592653589793) /* 0x400921FB, 0x54442D18 */ +var _a0 = float64(0.07721566490153287) /* 0x3FB3C467, 0xE37DB0C8 */ +var _a1 = float64(0.3224670334241136) /* 0x3FD4A34C, 0xC4A60FAD */ +var _a2 = float64(0.06735230105312927) /* 0x3FB13E00, 0x1A5562A7 */ +var _a3 = float64(0.020580808432516733) /* 0x3F951322, 0xAC92547B */ +var _a4 = float64(0.007385550860814029) /* 0x3F7E404F, 0xB68FEFE8 */ +var _a5 = float64(0.0028905138367341563) /* 0x3F67ADD8, 0xCCB7926B */ +var _a6 = float64(0.0011927076318336207) /* 0x3F538A94, 0x116F3F5D */ +var _a7 = float64(0.0005100697921535113) /* 0x3F40B6C6, 0x89B99C00 */ +var _a8 = float64(0.00022086279071390839) /* 0x3F2CF2EC, 0xED10E54D */ +var _a9 = float64(0.00010801156724758394) /* 0x3F1C5088, 0x987DFB07 */ +var _a10 = float64(2.5214456545125733e-05) /* 0x3EFA7074, 0x428CFA52 */ +var _a11 = float64(4.4864094961891516e-05) /* 0x3F07858E, 0x90A45837 */ +var _tc = float64(1.4616321449683622) /* 0x3FF762D8, 0x6356BE3F */ +var _tf = -Float64FromFloat64(0.12148629053584961) /* 0xBFBF19B9, 0xBCC38A42 */ +/* tt = -(tail of tf) */ +var _tt = -Float64FromFloat64(3.638676997039505e-18) /* 0xBC50C7CA, 0xA48A971F */ +var _t0 = float64(0.48383612272381005) /* 0x3FDEF72B, 0xC8EE38A2 */ +var _t1 = -Float64FromFloat64(0.1475877229945939) /* 0xBFC2E427, 0x8DC6C509 */ +var _t2 = float64(0.06462494023913339) /* 0x3FB08B42, 0x94D5419B */ +var _t3 = -Float64FromFloat64(0.032788541075985965) /* 0xBFA0C9A8, 0xDF35B713 */ +var _t4 = float64(0.01797067508118204) /* 0x3F9266E7, 0x970AF9EC */ +var _t5 = -Float64FromFloat64(0.010314224129834144) /* 0xBF851F9F, 0xBA91EC6A */ +var _t6 = float64(0.006100538702462913) /* 0x3F78FCE0, 0xE370E344 */ +var _t7 = -Float64FromFloat64(0.0036845201678113826) /* 0xBF6E2EFF, 0xB3E914D7 */ +var _t8 = float64(0.0022596478090061247) /* 0x3F6282D3, 0x2E15C915 */ +var _t9 = -Float64FromFloat64(0.0014034646998923284) /* 0xBF56FE8E, 0xBF2D1AF1 */ +var _t10 = float64(0.000881081882437654) /* 0x3F4CDF0C, 0xEF61A8E9 */ +var _t11 = -Float64FromFloat64(0.0005385953053567405) /* 0xBF41A610, 0x9C73E0EC */ +var _t12 = float64(0.00031563207090362595) /* 0x3F34AF6D, 0x6C0EBBF7 */ +var _t13 = -Float64FromFloat64(0.00031275416837512086) /* 0xBF347F24, 0xECC38C38 */ +var _t14 = float64(0.0003355291926355191) /* 0x3F35FD3E, 0xE8C2D3F4 */ +var _u0 = -Float64FromFloat64(0.07721566490153287) /* 0xBFB3C467, 0xE37DB0C8 */ +var _u1 = float64(0.6328270640250934) /* 0x3FE4401E, 0x8B005DFF */ +var _u2 = float64(1.4549225013723477) /* 0x3FF7475C, 0xD119BD6F */ +var _u3 = float64(0.9777175279633727) /* 0x3FEF4976, 0x44EA8450 */ +var _u4 = float64(0.22896372806469245) /* 0x3FCD4EAE, 0xF6010924 */ +var _u5 = float64(0.013381091853678766) /* 0x3F8B678B, 0xBF2BAB09 */ +var _v1 = float64(2.4559779371304113) /* 0x4003A5D7, 0xC2BD619C */ +var _v2 = float64(2.128489763798934) /* 0x40010725, 0xA42B18F5 */ +var _v3 = float64(0.7692851504566728) /* 0x3FE89DFB, 0xE45050AF */ +var _v4 = float64(0.10422264559336913) /* 0x3FBAAE55, 0xD6537C88 */ +var _v5 = float64(0.003217092422824239) /* 0x3F6A5ABB, 0x57D0CF61 */ +var _s0 = -Float64FromFloat64(0.07721566490153287) /* 0xBFB3C467, 0xE37DB0C8 */ +var _s1 = float64(0.21498241596060885) /* 0x3FCB848B, 0x36E20878 */ +var _s2 = float64(0.325778796408931) /* 0x3FD4D98F, 0x4F139F59 */ +var _s3 = float64(0.14635047265246445) /* 0x3FC2BB9C, 0xBEE5F2F7 */ +var _s4 = float64(0.02664227030336386) /* 0x3F9B481C, 0x7E939961 */ +var _s5 = float64(0.0018402845140733772) /* 0x3F5E26B6, 0x7368F239 */ +var _s6 = float64(3.194753265841009e-05) /* 0x3F00BFEC, 0xDD17E945 */ +var _r1 = float64(1.3920053346762105) /* 0x3FF645A7, 0x62C4AB74 */ +var _r2 = float64(0.7219355475671381) /* 0x3FE71A18, 0x93D3DCDC */ +var _r3 = float64(0.17193386563280308) /* 0x3FC601ED, 0xCCFBDF27 */ +var _r4 = float64(0.01864591917156529) /* 0x3F9317EA, 0x742ED475 */ +var _r5 = float64(0.0007779424963818936) /* 0x3F497DDA, 0xCA41A95B */ +var _r6 = float64(7.326684307446256e-06) /* 0x3EDEBAF7, 0xA5B38140 */ +var _w0 = float64(0.4189385332046727) /* 0x3FDACFE3, 0x90C97D69 */ +var _w1 = float64(0.08333333333333297) /* 0x3FB55555, 0x5555553B */ +var _w2 = -Float64FromFloat64(0.0027777777772877554) /* 0xBF66C16C, 0x16B02E5C */ +var _w3 = float64(0.0007936505586430196) /* 0x3F4A019F, 0x98CF38B6 */ +var _w4 = -Float64FromFloat64(0.00059518755745034) /* 0xBF4380CB, 0x8C0FE741 */ +var _w5 = float64(0.0008363399189962821) /* 0x3F4B67BA, 0x4CDAD5D1 */ +var _w6 = -Float64FromFloat64(0.0016309293409657527) /* 0xBF5AB89D, 0x0B9E43E4 */ + +// C documentation +// +// /* sin(pi*x) assuming x > 2^-100, if sin(pi*x)==0 the sign is arbitrary */ +func _sin_pi(tls *TLS, x float64) (r float64) { + var n int32 + _ = n + /* spurious inexact if odd int */ + x = float64(float64(2) * (float64(x*float64(0.5)) - Xfloor(tls, float64(x*float64(0.5))))) /* x mod 2.0 */ + n = int32(float64(x * Float64FromFloat64(4))) + n = (n + int32(1)) / int32(2) + x = x - float64(float32(n)*Float32FromFloat32(0.5)) + x = x * _pi2 + switch n { + default: /* case 4: */ + fallthrough + case 0: + return X__sin(tls, x, float64(0), 0) + case int32(1): + return X__cos(tls, x, float64(0)) + case int32(2): + return X__sin(tls, -x, float64(0), 0) + case int32(3): + return -X__cos(tls, x, float64(0)) + } + return r +} + +func X__lgamma_r(tls *TLS, x float64, signgamp uintptr) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x=%v signgamp=%v, (%v:)", tls, x, signgamp, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var i, sign int32 + var ix Tuint32_t + var nadj, p, p1, p2, p3, q, r, t, w, y, z Tdouble_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = i, ix, nadj, p, p1, p2, p3, q, r, sign, t, w, y, z + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + /* purge off +-inf, NaN, +-0, tiny and negative arguments */ + **(**int32)(__ccgo_up(signgamp)) = int32(1) + sign = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(63)) + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32) & uint64(0x7fffffff)) + if ix >= uint32(0x7ff00000) { + return float64(x * x) + } + if ix < Uint32FromInt32((Int32FromInt32(0x3ff)-Int32FromInt32(70))< float64(0) { + **(**int32)(__ccgo_up(signgamp)) = -int32(1) + } else { + t = -t + } + nadj = Xlog(tls, _pi2/Tdouble_t(t*x)) + } + /* purge off 1 and 2 */ + if (ix == uint32(0x3ff00000) || ix == uint32(0x40000000)) && uint32(*(*Tuint64_t)(unsafe.Pointer(bp))) == uint32(0) { + r = Float64FromInt32(0) + } else { + if ix < uint32(0x40000000) { + if ix <= uint32(0x3feccccc) { /* lgamma(x) = lgamma(x+1)-log(x) */ + r = -Xlog(tls, x) + if ix >= uint32(0x3FE76944) { + y = float64(1) - x + i = 0 + } else { + if ix >= uint32(0x3FCDA661) { + y = x - (_tc - Float64FromFloat64(1)) + i = int32(1) + } else { + y = x + i = int32(2) + } + } + } else { + r = float64(0) + if ix >= uint32(0x3FFBB4C3) { /* [1.7316,2] */ + y = float64(2) - x + i = 0 + } else { + if ix >= uint32(0x3FF3B4C4) { /* [1.23,1.73] */ + y = x - _tc + i = int32(1) + } else { + y = x - float64(1) + i = int32(2) + } + } + } + switch i { + case 0: + z = Tdouble_t(y * y) + p1 = _a0 + float64(z*(_a2+float64(z*(_a4+float64(z*(_a6+float64(z*(_a8+float64(z*_a10))))))))) + p2 = Tdouble_t(z * (_a1 + float64(z*(_a3+float64(z*(_a5+float64(z*(_a7+float64(z*(_a9+float64(z*_a11))))))))))) + p = Tdouble_t(y*p1) + p2 + r = r + (p - Tdouble_t(float64(0.5)*y)) + case int32(1): + z = Tdouble_t(y * y) + w = Tdouble_t(z * y) + p1 = _t0 + float64(w*(_t3+float64(w*(_t6+float64(w*(_t9+float64(w*_t12))))))) /* parallel comp */ + p2 = _t1 + float64(w*(_t4+float64(w*(_t7+float64(w*(_t10+float64(w*_t13))))))) + p3 = _t2 + float64(w*(_t5+float64(w*(_t8+float64(w*(_t11+float64(w*_t14))))))) + p = Tdouble_t(z*p1) - (_tt - float64(w*(p2+Tdouble_t(y*p3)))) + r = r + (_tf + p) + case int32(2): + p1 = Tdouble_t(y * (_u0 + float64(y*(_u1+float64(y*(_u2+float64(y*(_u3+float64(y*(_u4+float64(y*_u5))))))))))) + p2 = float64(1) + float64(y*(_v1+float64(y*(_v2+float64(y*(_v3+float64(y*(_v4+float64(y*_v5))))))))) + r = r + (float64(-Float64FromFloat64(0.5)*y) + p1/p2) + } + } else { + if ix < uint32(0x40200000) { /* x < 8.0 */ + i = int32(x) + y = x - float64(i) + p = Tdouble_t(y * (_s0 + float64(y*(_s1+float64(y*(_s2+float64(y*(_s3+float64(y*(_s4+float64(y*(_s5+float64(y*_s6))))))))))))) + q = float64(1) + float64(y*(_r1+float64(y*(_r2+float64(y*(_r3+float64(y*(_r4+float64(y*(_r5+float64(y*_r6))))))))))) + r = float64(float64(0.5)*y) + p/q + z = float64(1) /* lgamma(1+s) = log(s) + lgamma(s) */ + switch i { + case int32(7): + z = z * (y + float64(6)) /* FALLTHRU */ + fallthrough + case int32(6): + z = z * (y + float64(5)) /* FALLTHRU */ + fallthrough + case int32(5): + z = z * (y + float64(4)) /* FALLTHRU */ + fallthrough + case int32(4): + z = z * (y + float64(3)) /* FALLTHRU */ + fallthrough + case int32(3): + z = z * (y + float64(2)) /* FALLTHRU */ + r = r + Xlog(tls, z) + break + } + } else { + if ix < uint32(0x43900000) { /* 8.0 <= x < 2**58 */ + t = Xlog(tls, x) + z = float64(1) / x + y = Tdouble_t(z * z) + w = _w0 + float64(z*(_w1+float64(y*(_w2+float64(y*(_w3+float64(y*(_w4+float64(y*(_w5+float64(y*_w6))))))))))) + r = float64((x-float64(0.5))*(t-Float64FromFloat64(1))) + w + } else { /* 2**58 <= x <= inf */ + r = Tdouble_t(x * (Xlog(tls, x) - float64(1))) + } + } + } + } + if sign != 0 { + r = nadj - r + } + return r +} + +func Xlgamma_r(tls *TLS, x float64, signgamp uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v signgamp=%v, (%v:)", tls, x, signgamp, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lgamma_r(tls, x, signgamp) +} + +func Xlgammaf(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lgammaf_r(tls, x, uintptr(unsafe.Pointer(&Xsigngam))) +} + +var _pi3 = float32(3.141592741) /* 0x40490fdb */ +var _a01 = float32(0.077215664089) /* 0x3d9e233f */ +var _a12 = float32(0.32246702909) /* 0x3ea51a66 */ +var _a21 = float32(0.067352302372) /* 0x3d89f001 */ +var _a31 = float32(0.020580807701) /* 0x3ca89915 */ +var _a41 = float32(0.0073855509982) /* 0x3bf2027e */ +var _a51 = float32(0.0028905137442) /* 0x3b3d6ec6 */ +var _a61 = float32(0.0011927076848) /* 0x3a9c54a1 */ +var _a71 = float32(0.00051006977446) /* 0x3a05b634 */ +var _a81 = float32(0.00022086278477) /* 0x39679767 */ +var _a91 = float32(0.00010801156895) /* 0x38e28445 */ +var _a101 = float32(2.52144564e-05) /* 0x37d383a2 */ +var _a111 = float32(4.4864096708e-05) /* 0x383c2c75 */ +var _tc1 = float32(1.4616321325) /* 0x3fbb16c3 */ +var _tf1 = float32(-Float64FromFloat64(0.12148628384)) /* 0xbdf8cdcd */ +/* tt = -(tail of tf) */ +var _tt1 = float32(6.6971006518e-09) /* 0x31e61c52 */ +var _t01 = float32(0.48383611441) /* 0x3ef7b95e */ +var _t15 = float32(-Float64FromFloat64(0.14758771658)) /* 0xbe17213c */ +var _t21 = float32(0.064624942839) /* 0x3d845a15 */ +var _t31 = float32(-Float64FromFloat64(0.032788541168)) /* 0xbd064d47 */ +var _t41 = float32(0.017970675603) /* 0x3c93373d */ +var _t51 = float32(-Float64FromFloat64(0.010314224288)) /* 0xbc28fcfe */ +var _t61 = float32(0.0061005386524) /* 0x3bc7e707 */ +var _t71 = float32(-Float64FromFloat64(0.0036845202558)) /* 0xbb7177fe */ +var _t81 = float32(0.0022596477065) /* 0x3b141699 */ +var _t91 = float32(-Float64FromFloat64(0.0014034647029)) /* 0xbab7f476 */ +var _t101 = float32(0.00088108185446) /* 0x3a66f867 */ +var _t111 = float32(-Float64FromFloat64(0.00053859531181)) /* 0xba0d3085 */ +var _t121 = float32(0.00031563205994) /* 0x39a57b6b */ +var _t131 = float32(-Float64FromFloat64(0.00031275415677)) /* 0xb9a3f927 */ +var _t141 = float32(0.00033552918467) /* 0x39afe9f7 */ +var _u07 = float32(-Float64FromFloat64(0.077215664089)) /* 0xbd9e233f */ +var _u11 = float32(0.63282704353) /* 0x3f2200f4 */ +var _u21 = float32(1.4549225569) /* 0x3fba3ae7 */ +var _u31 = float32(0.97771751881) /* 0x3f7a4bb2 */ +var _u41 = float32(0.22896373272) /* 0x3e6a7578 */ +var _u51 = float32(0.013381091878) /* 0x3c5b3c5e */ +var _v11 = float32(2.4559779167) /* 0x401d2ebe */ +var _v21 = float32(2.1284897327) /* 0x4008392d */ +var _v31 = float32(0.76928514242) /* 0x3f44efdf */ +var _v41 = float32(0.10422264785) /* 0x3dd572af */ +var _v51 = float32(0.0032170924824) /* 0x3b52d5db */ +var _s06 = float32(-Float64FromFloat64(0.077215664089)) /* 0xbd9e233f */ +var _s11 = float32(0.21498242021) /* 0x3e5c245a */ +var _s21 = float32(0.32577878237) /* 0x3ea6cc7a */ +var _s31 = float32(0.14635047317) /* 0x3e15dce6 */ +var _s41 = float32(0.026642270386) /* 0x3cda40e4 */ +var _s51 = float32(0.0018402845599) /* 0x3af135b4 */ +var _s61 = float32(3.1947532989e-05) /* 0x3805ff67 */ +var _r11 = float32(1.3920053244) /* 0x3fb22d3b */ +var _r21 = float32(0.72193557024) /* 0x3f38d0c5 */ +var _r31 = float32(0.17193385959) /* 0x3e300f6e */ +var _r41 = float32(0.018645919859) /* 0x3c98bf54 */ +var _r51 = float32(0.00077794247773) /* 0x3a4beed6 */ +var _r61 = float32(7.3266842264e-06) /* 0x36f5d7bd */ +var _w01 = float32(0.41893854737) /* 0x3ed67f1d */ +var _w11 = float32(0.083333335817) /* 0x3daaaaab */ +var _w21 = float32(-Float64FromFloat64(0.002777777845)) /* 0xbb360b61 */ +var _w31 = float32(0.00079365057172) /* 0x3a500cfd */ +var _w41 = float32(-Float64FromFloat64(0.00059518753551)) /* 0xba1c065c */ +var _w51 = float32(0.00083633989561) /* 0x3a5b3dd2 */ +var _w61 = float32(-Float64FromFloat64(0.0016309292987)) /* 0xbad5c4e8 */ + +// C documentation +// +// /* sin(pi*x) assuming x > 2^-100, if sin(pi*x)==0 the sign is arbitrary */ +func _sin_pi1(tls *TLS, x float32) (r float32) { + var n int32 + var y Tdouble_t + _, _ = n, y + /* spurious inexact if odd int */ + x = float32(Float32FromInt32(2) * (float32(x*Float32FromFloat32(0.5)) - Xfloorf(tls, float32(x*Float32FromFloat32(0.5))))) /* x mod 2.0 */ + n = int32(float32(x * Float32FromInt32(4))) + n = (n + int32(1)) / int32(2) + y = float64(x - float32(float32(n)*Float32FromFloat32(0.5))) + y = y * float64(3.141592653589793) + switch n { + default: /* case 4: */ + fallthrough + case 0: + return X__sindf(tls, y) + case int32(1): + return X__cosdf(tls, y) + case int32(2): + return X__sindf(tls, -y) + case int32(3): + return -X__cosdf(tls, y) + } + return r +} + +func X__lgammaf_r(tls *TLS, x float32, signgamp uintptr) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x=%v signgamp=%v, (%v:)", tls, x, signgamp, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var i, sign int32 + var ix Tuint32_t + var nadj, p, p1, p2, p3, q, r, t, w, y, z float32 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = i, ix, nadj, p, p1, p2, p3, q, r, sign, t, w, y, z + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + /* purge off +-inf, NaN, +-0, tiny and negative arguments */ + **(**int32)(__ccgo_up(signgamp)) = int32(1) + sign = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(31)) + ix = *(*Tuint32_t)(unsafe.Pointer(bp)) & uint32(0x7fffffff) + if ix >= uint32(0x7f800000) { + return float32(x * x) + } + if ix < uint32(0x35000000) { /* |x| < 2**-21, return -log(|x|) */ + if sign != 0 { + **(**int32)(__ccgo_up(signgamp)) = -int32(1) + x = -x + } + return -Xlogf(tls, x) + } + if sign != 0 { + x = -x + t = _sin_pi1(tls, x) + if t == Float32FromFloat32(0) { /* -integer */ + return Float32FromFloat32(1) / (x - x) + } + if t > Float32FromFloat32(0) { + **(**int32)(__ccgo_up(signgamp)) = -int32(1) + } else { + t = -t + } + nadj = Xlogf(tls, _pi3/float32(t*x)) + } + /* purge off 1 and 2 */ + if ix == uint32(0x3f800000) || ix == uint32(0x40000000) { + r = Float32FromInt32(0) + } else { + if ix < uint32(0x40000000) { + if ix <= uint32(0x3f666666) { /* lgamma(x) = lgamma(x+1)-log(x) */ + r = -Xlogf(tls, x) + if ix >= uint32(0x3f3b4a20) { + y = Float32FromFloat32(1) - x + i = 0 + } else { + if ix >= uint32(0x3e6d3308) { + y = x - (_tc1 - Float32FromFloat32(1)) + i = int32(1) + } else { + y = x + i = int32(2) + } + } + } else { + r = Float32FromFloat32(0) + if ix >= uint32(0x3fdda618) { /* [1.7316,2] */ + y = Float32FromFloat32(2) - x + i = 0 + } else { + if ix >= uint32(0x3F9da620) { /* [1.23,1.73] */ + y = x - _tc1 + i = int32(1) + } else { + y = x - Float32FromFloat32(1) + i = int32(2) + } + } + } + switch i { + case 0: + z = float32(y * y) + p1 = _a01 + float32(z*(_a21+float32(z*(_a41+float32(z*(_a61+float32(z*(_a81+float32(z*_a101))))))))) + p2 = float32(z * (_a12 + float32(z*(_a31+float32(z*(_a51+float32(z*(_a71+float32(z*(_a91+float32(z*_a111))))))))))) + p = float32(y*p1) + p2 + r = r + (p - float32(Float32FromFloat32(0.5)*y)) + case int32(1): + z = float32(y * y) + w = float32(z * y) + p1 = _t01 + float32(w*(_t31+float32(w*(_t61+float32(w*(_t91+float32(w*_t121))))))) /* parallel comp */ + p2 = _t15 + float32(w*(_t41+float32(w*(_t71+float32(w*(_t101+float32(w*_t131))))))) + p3 = _t21 + float32(w*(_t51+float32(w*(_t81+float32(w*(_t111+float32(w*_t141))))))) + p = float32(z*p1) - (_tt1 - float32(w*(p2+float32(y*p3)))) + r = r + (_tf1 + p) + case int32(2): + p1 = float32(y * (_u07 + float32(y*(_u11+float32(y*(_u21+float32(y*(_u31+float32(y*(_u41+float32(y*_u51))))))))))) + p2 = Float32FromFloat32(1) + float32(y*(_v11+float32(y*(_v21+float32(y*(_v31+float32(y*(_v41+float32(y*_v51))))))))) + r = r + (float32(-Float32FromFloat32(0.5)*y) + p1/p2) + } + } else { + if ix < uint32(0x41000000) { /* x < 8.0 */ + i = int32(x) + y = x - float32(i) + p = float32(y * (_s06 + float32(y*(_s11+float32(y*(_s21+float32(y*(_s31+float32(y*(_s41+float32(y*(_s51+float32(y*_s61))))))))))))) + q = Float32FromFloat32(1) + float32(y*(_r11+float32(y*(_r21+float32(y*(_r31+float32(y*(_r41+float32(y*(_r51+float32(y*_r61))))))))))) + r = float32(Float32FromFloat32(0.5)*y) + p/q + z = Float32FromFloat32(1) /* lgamma(1+s) = log(s) + lgamma(s) */ + switch i { + case int32(7): + z = z * (y + Float32FromFloat32(6)) /* FALLTHRU */ + fallthrough + case int32(6): + z = z * (y + Float32FromFloat32(5)) /* FALLTHRU */ + fallthrough + case int32(5): + z = z * (y + Float32FromFloat32(4)) /* FALLTHRU */ + fallthrough + case int32(4): + z = z * (y + Float32FromFloat32(3)) /* FALLTHRU */ + fallthrough + case int32(3): + z = z * (y + Float32FromFloat32(2)) /* FALLTHRU */ + r = r + Xlogf(tls, z) + break + } + } else { + if ix < uint32(0x5c800000) { /* 8.0 <= x < 2**58 */ + t = Xlogf(tls, x) + z = Float32FromFloat32(1) / x + y = float32(z * z) + w = _w01 + float32(z*(_w11+float32(y*(_w21+float32(y*(_w31+float32(y*(_w41+float32(y*(_w51+float32(y*_w61))))))))))) + r = float32((x-Float32FromFloat32(0.5))*(t-Float32FromFloat32(1))) + w + } else { /* 2**58 <= x <= inf */ + r = float32(x * (Xlogf(tls, x) - Float32FromFloat32(1))) + } + } + } + } + if sign != 0 { + r = nadj - r + } + return r +} + +func Xlgammaf_r(tls *TLS, x float32, signgamp uintptr) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v signgamp=%v, (%v:)", tls, x, signgamp, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lgammaf_r(tls, x, signgamp) +} + +func X__lgammal_r(tls *TLS, x float64, sg uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v sg=%v, (%v:)", tls, x, sg, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lgamma_r(tls, x, sg) +} + +func Xlgammal(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lgammal_r(tls, x, uintptr(unsafe.Pointer(&Xsigngam))) +} + +func Xlgammal_r(tls *TLS, x float64, sg uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v sg=%v, (%v:)", tls, x, sg, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lgammal_r(tls, x, sg) +} + +/* uses LLONG_MAX > 2^53, see comments in lrint.c */ + +func Xllrint(tls *TLS, x float64) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int64(Xrint(tls, x)) +} + +/* uses LLONG_MAX > 2^24, see comments in lrint.c */ + +func Xllrintf(tls *TLS, x float32) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int64(Xrintf(tls, x)) +} + +const FE_ALL_EXCEPT = 31 +const FE_DIVBYZERO = 8 +const FE_DOWNWARD = 2 +const FE_INEXACT = 1 +const FE_INVALID = 16 +const FE_OVERFLOW = 4 +const FE_TONEAREST = 0 +const FE_TOWARDZERO = 1 +const FE_UNDERFLOW = 2 +const FE_UPWARD = 3 + +type Tfexcept_t = uint32 + +type Tfenv_t = uint32 + +func Xllrintl(tls *TLS, x float64) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xllrint(tls, x) +} + +func Xllround(tls *TLS, x float64) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int64(Xround(tls, x)) +} + +func Xllroundf(tls *TLS, x float32) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int64(Xroundf(tls, x)) +} + +func Xllroundl(tls *TLS, x float64) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int64(Xroundl(tls, x)) +} + +const LOG_POLY1_ORDER = 12 +const LOG_POLY_ORDER = 6 +const LOG_TABLE_BITS = 7 +const N4 = 128 +const OFF = 4604367669032910848 + +// C documentation +// +// /* Top 16 bits of a double. */ +func _top16(tls *TLS, x float64) (r Tuint32_t) { + return uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(48)) +} + +func Xlog(tls *TLS, x1 float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x1=%v, (%v:)", tls, x1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var hi, invc, kd, lo, logc, r, r2, r3, rhi, rlo, w, y1, z Tdouble_t + var i, k int32 + var ix, iz, tmp Tuint64_t + var top Tuint32_t + var y, v1, v2, v3, v4 float64 + var v5 bool + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = hi, i, invc, ix, iz, k, kd, lo, logc, r, r2, r3, rhi, rlo, tmp, top, w, y, y1, z, v1, v2, v3, v4, v5 + ix = *(*Tuint64_t)(unsafe.Pointer(&x1)) + top = _top16(tls, x1) + v1 = Float64FromFloat64(1) - Float64FromFloat64(0.0625) + v2 = Float64FromFloat64(1) + Float64FromFloat64(0.064697265625) + v3 = Float64FromFloat64(1) - Float64FromFloat64(0.0625) + if ix-*(*Tuint64_t)(unsafe.Pointer(&v1)) < *(*Tuint64_t)(unsafe.Pointer(&v2))-*(*Tuint64_t)(unsafe.Pointer(&v3)) { + /* Handle close to 1.0 inputs separately. */ + /* Fix sign of zero with downward rounding when x==1. */ + if v5 = Bool(int32(WANT_ROUNDING) != 0); v5 { + v4 = float64(1) + } + if v5 && ix == *(*Tuint64_t)(unsafe.Pointer(&v4)) { + return Float64FromInt32(0) + } + r = x1 - float64(1) + r2 = Tdouble_t(r * r) + r3 = Tdouble_t(r * r2) + y1 = Tdouble_t(r3 * (**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56 + 1*8)) + float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56 + 2*8))) + float64(r2***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56 + 3*8))) + float64(r3*(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56 + 4*8))+float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56 + 5*8)))+float64(r2***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56 + 6*8)))+float64(r3*(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56 + 7*8))+float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56 + 8*8)))+float64(r2***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56 + 9*8)))+float64(r3***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56 + 10*8))))))))) + /* Worst-case error is around 0.507 ULP. */ + w = Tdouble_t(r * float64(1.34217728e+08)) + rhi = r + w - w + rlo = r - rhi + w = Tdouble_t(Tdouble_t(rhi*rhi) * **(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56))) /* B[0] == -0.5. */ + hi = r + w + lo = r - hi + w + lo = lo + Tdouble_t(float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56))*rlo)*(rhi+r)) + y1 = y1 + lo + y1 = y1 + hi + y = y1 + v1 = y + goto _7 + _7: + return v1 + } + if top-uint32(0x0010) >= Uint32FromInt32(Int32FromInt32(0x7ff0)-Int32FromInt32(0x0010)) { + /* x < 0x1p-1022 or inf or nan. */ + if ix*uint64(2) == uint64(0) { + return X__math_divzero(tls, uint32(1)) + } + v1 = float64(X__builtin_inff(tls)) + if ix == *(*Tuint64_t)(unsafe.Pointer(&v1)) { /* log(inf) == inf. */ + return x1 + } + if top&uint32(0x8000) != 0 || top&uint32(0x7ff0) == uint32(0x7ff0) { + return X__math_invalid(tls, x1) + } + /* x is subnormal, normalize it. */ + v1 = float64(x1 * float64(4.503599627370496e+15)) + ix = *(*Tuint64_t)(unsafe.Pointer(&v1)) + ix = uint64(ix - Uint64FromUint64(52)<> (Int32FromInt32(52) - Int32FromInt32(LOG_TABLE_BITS)) % Uint64FromInt32(Int32FromInt32(1)<> int32(52)) /* arithmetic shift */ + iz = uint64(ix - tmp&(Uint64FromUint64(0xfff)< 0x1p-5: + 0.5 + 4.13/N + abs-poly-error*2^57 ULP (+ 0.002 ULP without fma) + Worst case error if |y| > 0x1p-4: + 0.5 + 2.06/N + abs-poly-error*2^56 ULP (+ 0.001 ULP without fma). */ + y1 = lo + Tdouble_t(r2***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 16))) + Tdouble_t(Tdouble_t(r*r2)*(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 16 + 1*8))+float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 16 + 2*8)))+float64(r2*(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 16 + 3*8))+float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 16 + 4*8))))))) + hi + y = y1 + v1 = y + goto _11 +_11: + return v1 +} + +var _ivln10hi = float64(0.4342944818781689) /* 0x3fdbcb7b, 0x15200000 */ +var _ivln10lo = float64(2.5082946711645275e-11) /* 0x3dbb9438, 0xca9aadd5 */ +var _log10_2hi = float64(0.30102999566361177) /* 0x3FD34413, 0x509F6000 */ +var _log10_2lo = float64(3.694239077158931e-13) /* 0x3D59FEF3, 0x11F12B36 */ +var _Lg1 = float64(0.6666666666666735) /* 3FE55555 55555593 */ +var _Lg2 = float64(0.3999999999940942) /* 3FD99999 9997FA04 */ +var _Lg3 = float64(0.2857142874366239) /* 3FD24924 94229359 */ +var _Lg4 = float64(0.22222198432149784) /* 3FCC71C5 1D8E78AF */ +var _Lg5 = float64(0.1818357216161805) /* 3FC74664 96CB03DE */ +var _Lg6 = float64(0.15313837699209373) /* 3FC39A09 D078C69F */ +var _Lg7 = float64(0.14798198605116586) /* 3FC2F112 DF3E5244 */ + +func Xlog10(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var R, dk, f, hfsq, hi, lo, s, t1, t2, val_hi, val_lo, w, y, z Tdouble_t + var hx Tuint32_t + var k int32 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = R, dk, f, hfsq, hi, hx, k, lo, s, t1, t2, val_hi, val_lo, w, y, z + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + hx = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32)) + k = 0 + if hx < uint32(0x00100000) || hx>>int32(31) != 0 { + if *(*Tuint64_t)(unsafe.Pointer(bp))<>int32(31) != 0 { + return (x - x) / float64(0) + } /* log(-#) = NaN */ + /* subnormal number, scale x up */ + k = k - int32(54) + x = x * float64(1.8014398509481984e+16) + *(*float64)(unsafe.Pointer(bp)) = x + hx = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32)) + } else { + if hx >= uint32(0x7ff00000) { + return x + } else { + if hx == uint32(0x3ff00000) && *(*Tuint64_t)(unsafe.Pointer(bp))<>Int32FromInt32(20)) - int32(0x3ff)) + hx = hx&uint32(0x000fffff) + uint32(0x3fe6a09e) + *(*Tuint64_t)(unsafe.Pointer(bp)) = uint64(hx)< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var R, dk, f, hfsq, hi, lo, s, t1, t2, w, z Tfloat_t + var ix Tuint32_t + var k int32 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _, _, _, _, _, _, _, _ = R, dk, f, hfsq, hi, ix, k, lo, s, t1, t2, w, z + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + ix = *(*Tuint32_t)(unsafe.Pointer(bp)) + k = 0 + if ix < uint32(0x00800000) || ix>>int32(31) != 0 { /* x < 2**-126 */ + if ix<>int32(31) != 0 { + return (x - x) / Float32FromFloat32(0) + } /* log(-#) = NaN */ + /* subnormal number, scale up x */ + k = k - int32(25) + x = x * Float32FromFloat32(3.3554432e+07) + *(*float32)(unsafe.Pointer(bp)) = x + ix = *(*Tuint32_t)(unsafe.Pointer(bp)) + } else { + if ix >= uint32(0x7f800000) { + return x + } else { + if ix == uint32(0x3f800000) { + return Float32FromInt32(0) + } + } + } + /* reduce x into [sqrt(2)/2, sqrt(2)] */ + ix = ix + Uint32FromInt32(Int32FromInt32(0x3f800000)-Int32FromInt32(0x3f3504f3)) + k = k + (Int32FromUint32(ix>>Int32FromInt32(23)) - int32(0x7f)) + ix = ix&uint32(0x007fffff) + uint32(0x3f3504f3) + *(*Tuint32_t)(unsafe.Pointer(bp)) = ix + x = *(*float32)(unsafe.Pointer(bp)) + f = x - Float32FromFloat32(1) + s = f / (Float32FromFloat32(2) + f) + z = Tfloat_t(s * s) + w = Tfloat_t(z * z) + t1 = Tfloat_t(w * (_Lg21 + float32(w*_Lg41))) + t2 = Tfloat_t(z * (_Lg11 + float32(w*_Lg31))) + R = t2 + t1 + hfsq = Tfloat_t(float32(Float32FromFloat32(0.5)*f) * f) + hi = f - hfsq + *(*float32)(unsafe.Pointer(bp)) = hi + *(*Tuint32_t)(unsafe.Pointer(bp)) &= uint32(0xfffff000) + hi = *(*float32)(unsafe.Pointer(bp)) + lo = f - hi - hfsq + Tfloat_t(s*(hfsq+R)) + dk = float32(k) + return Tfloat_t(dk*_log10_2lo1) + Tfloat_t((lo+hi)*_ivln10lo1) + Tfloat_t(lo*_ivln10hi1) + Tfloat_t(hi*_ivln10hi1) + Tfloat_t(dk*_log10_2hi1) +} + +func Xlog10l(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xlog10(tls, x) +} + +var _ln2_hi2 = float64(0.6931471803691238) /* 3fe62e42 fee00000 */ +var _ln2_lo2 = float64(1.9082149292705877e-10) /* 3dea39ef 35793c76 */ +var _Lg12 = float64(0.6666666666666735) /* 3FE55555 55555593 */ +var _Lg22 = float64(0.3999999999940942) /* 3FD99999 9997FA04 */ +var _Lg32 = float64(0.2857142874366239) /* 3FD24924 94229359 */ +var _Lg42 = float64(0.22222198432149784) /* 3FCC71C5 1D8E78AF */ +var _Lg51 = float64(0.1818357216161805) /* 3FC74664 96CB03DE */ +var _Lg61 = float64(0.15313837699209373) /* 3FC39A09 D078C69F */ +var _Lg71 = float64(0.14798198605116586) /* 3FC2F112 DF3E5244 */ + +func Xlog1p(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var R, c, dk, f, hfsq, s, t1, t2, w, z Tdouble_t + var hu, hx Tuint32_t + var k int32 + var y float32 + var y1, y2, v1 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = R, c, dk, f, hfsq, hu, hx, k, s, t1, t2, w, y, y1, y2, z, v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + hx = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32)) + k = int32(1) + if hx < uint32(0x3fda827a) || hx>>int32(31) != 0 { /* 1+x < sqrt(2)+ */ + if hx >= uint32(0xbff00000) { /* x <= -1.0 */ + if x3 == float64(-Int32FromInt32(1)) { + return x3 / float64(0) + } /* log1p(-1) = -inf */ + return (x3 - x3) / float64(0) /* log1p(x<-1) = NaN */ + } + if hx<= uint32(0x7ff00000) { + return x3 + } + } + if k != 0 { + *(*float64)(unsafe.Pointer(bp)) = Float64FromInt32(1) + x3 + hu = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32)) + hu = hu + Uint32FromInt32(Int32FromInt32(0x3ff00000)-Int32FromInt32(0x3fe6a09e)) + k = Int32FromUint32(hu>>Int32FromInt32(20)) - int32(0x3ff) + /* correction term ~ log(1+x)-log(u), avoid underflow in c/u */ + if k < int32(54) { + if k >= int32(2) { + v1 = Float64FromInt32(1) - (*(*float64)(unsafe.Pointer(bp)) - x3) + } else { + v1 = x3 - (*(*float64)(unsafe.Pointer(bp)) - Float64FromInt32(1)) + } + c = v1 + c = c / *(*float64)(unsafe.Pointer(bp)) + } else { + c = Float64FromInt32(0) + } + /* reduce u into [sqrt(2)/2, sqrt(2)] */ + hu = hu&uint32(0x000fffff) + uint32(0x3fe6a09e) + *(*Tuint64_t)(unsafe.Pointer(bp)) = uint64(hu)< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var R, c, dk, f, hfsq, s, t1, t2, w, z Tfloat_t + var iu, ix Tuint32_t + var k int32 + var y, v1 float32 + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = R, c, dk, f, hfsq, iu, ix, k, s, t1, t2, w, y, y1, y2, z, v1 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + ix = *(*Tuint32_t)(unsafe.Pointer(bp)) + k = int32(1) + if ix < uint32(0x3ed413d0) || ix>>int32(31) != 0 { /* 1+x < sqrt(2)+ */ + if ix >= uint32(0xbf800000) { /* x <= -1.0 */ + if x3 == float32(-Int32FromInt32(1)) { + return x3 / Float32FromFloat32(0) + } /* log1p(-1)=+inf */ + return (x3 - x3) / Float32FromFloat32(0) /* log1p(x<-1)=NaN */ + } + if ix<= uint32(0x7f800000) { + return x3 + } + } + if k != 0 { + *(*float32)(unsafe.Pointer(bp)) = Float32FromInt32(1) + x3 + iu = *(*Tuint32_t)(unsafe.Pointer(bp)) + iu = iu + Uint32FromInt32(Int32FromInt32(0x3f800000)-Int32FromInt32(0x3f3504f3)) + k = Int32FromUint32(iu>>Int32FromInt32(23)) - int32(0x7f) + /* correction term ~ log(1+x)-log(u), avoid underflow in c/u */ + if k < int32(25) { + if k >= int32(2) { + v1 = Float32FromInt32(1) - (*(*float32)(unsafe.Pointer(bp)) - x3) + } else { + v1 = x3 - (*(*float32)(unsafe.Pointer(bp)) - Float32FromInt32(1)) + } + c = v1 + c = c / *(*float32)(unsafe.Pointer(bp)) + } else { + c = Float32FromInt32(0) + } + /* reduce u into [sqrt(2)/2, sqrt(2)] */ + iu = iu&uint32(0x007fffff) + uint32(0x3f3504f3) + *(*Tuint32_t)(unsafe.Pointer(bp)) = iu + f = *(*float32)(unsafe.Pointer(bp)) - Float32FromInt32(1) + } + s = f / (Float32FromFloat32(2) + f) + z = Tfloat_t(s * s) + w = Tfloat_t(z * z) + t1 = Tfloat_t(w * (_Lg23 + float32(w*_Lg43))) + t2 = Tfloat_t(z * (_Lg13 + float32(w*_Lg33))) + R = t2 + t1 + hfsq = Tfloat_t(float32(Float32FromFloat32(0.5)*f) * f) + dk = float32(k) + return Tfloat_t(s*(hfsq+R)) + (Tfloat_t(dk*_ln2_lo3) + c) - hfsq + f + Tfloat_t(dk*_ln2_hi3) +} + +func Xlog1pl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xlog1p(tls, x) +} + +const LOG2_POLY1_ORDER = 11 +const LOG2_POLY_ORDER = 7 +const LOG2_TABLE_BITS = 6 +const N5 = 64 + +// C documentation +// +// /* Top 16 bits of a double. */ +func _top161(tls *TLS, x float64) (r Tuint32_t) { + return uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(48)) +} + +func Xlog2(tls *TLS, x1 float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x1=%v, (%v:)", tls, x1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var hi, invc, kd, lo, logc, p, r, r2, r4, t1, t2, t3, y1, z Tdouble_t + var i, k int32 + var ix, iz, tmp Tuint64_t + var top Tuint32_t + var y, v1, v2, v3, v4 float64 + var v5 bool + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = hi, i, invc, ix, iz, k, kd, lo, logc, p, r, r2, r4, t1, t2, t3, tmp, top, y, y1, z, v1, v2, v3, v4, v5 + ix = *(*Tuint64_t)(unsafe.Pointer(&x1)) + top = _top161(tls, x1) + v1 = Float64FromFloat64(1) - Float64FromFloat64(0.04239702224731445) + v2 = Float64FromFloat64(1) + Float64FromFloat64(0.044274330139160156) + v3 = Float64FromFloat64(1) - Float64FromFloat64(0.04239702224731445) + if ix-*(*Tuint64_t)(unsafe.Pointer(&v1)) < *(*Tuint64_t)(unsafe.Pointer(&v2))-*(*Tuint64_t)(unsafe.Pointer(&v3)) { + /* Handle close to 1.0 inputs separately. */ + /* Fix sign of zero with downward rounding when x==1. */ + if v5 = Bool(int32(WANT_ROUNDING) != 0); v5 { + v4 = float64(1) + } + if v5 && ix == *(*Tuint64_t)(unsafe.Pointer(&v4)) { + return Float64FromInt32(0) + } + r = x1 - float64(1) + hi = Tdouble_t(r * X__log2_data.Finvln2hi) + lo = Tdouble_t(r*X__log2_data.Finvln2lo) + float64(X__builtin_fma(tls, r, X__log2_data.Finvln2hi, -hi)) + r2 = Tdouble_t(r * r) /* rounding error: 0x1p-62. */ + r4 = Tdouble_t(r2 * r2) + /* Worst-case error is less than 0.54 ULP (0.55 ULP without fma). */ + p = Tdouble_t(r2 * (**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 64)) + float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 64 + 1*8))))) + y1 = hi + p + lo = lo + (hi - y1 + p) + lo = lo + Tdouble_t(r4*(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 64 + 2*8))+float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 64 + 3*8)))+float64(r2*(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 64 + 4*8))+float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 64 + 5*8)))))+float64(r4*(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 64 + 6*8))+float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 64 + 7*8)))+float64(r2*(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 64 + 8*8))+float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 64 + 9*8))))))))) + y1 = y1 + lo + y = y1 + v1 = y + goto _7 + _7: + return v1 + } + if top-uint32(0x0010) >= Uint32FromInt32(Int32FromInt32(0x7ff0)-Int32FromInt32(0x0010)) { + /* x < 0x1p-1022 or inf or nan. */ + if ix*uint64(2) == uint64(0) { + return X__math_divzero(tls, uint32(1)) + } + v1 = float64(X__builtin_inff(tls)) + if ix == *(*Tuint64_t)(unsafe.Pointer(&v1)) { /* log(inf) == inf. */ + return x1 + } + if top&uint32(0x8000) != 0 || top&uint32(0x7ff0) == uint32(0x7ff0) { + return X__math_invalid(tls, x1) + } + /* x is subnormal, normalize it. */ + v1 = float64(x1 * float64(4.503599627370496e+15)) + ix = *(*Tuint64_t)(unsafe.Pointer(&v1)) + ix = uint64(ix - Uint64FromUint64(52)<> (Int32FromInt32(52) - Int32FromInt32(LOG2_TABLE_BITS)) % Uint64FromInt32(Int32FromInt32(1)<> int32(52)) /* arithmetic shift */ + iz = uint64(ix - tmp&(Uint64FromUint64(0xfff)< 0x1p-4: 0.547 ULP (0.550 ULP without fma). + ~ 0.5 + 2/N/ln2 + abs-poly-error*0x1p56 ULP (+ 0.003 ULP without fma). */ + p = **(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 16)) + float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 16 + 1*8))) + float64(r2*(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 16 + 2*8))+float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 16 + 3*8))))) + float64(r4*(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 16 + 4*8))+float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 16 + 5*8))))) + y1 = lo + Tdouble_t(r2*p) + hi + y = y1 + v1 = y + goto _11 +_11: + return v1 +} + +type Tlog2_data = struct { + Finvln2hi float64 + Finvln2lo float64 + Fpoly [6]float64 + Fpoly1 [10]float64 + Ftab [64]struct { + Finvc float64 + Flogc float64 + } +} + +const LOG2F_POLY_ORDER = 4 +const LOG2F_TABLE_BITS = 4 +const N6 = 16 +const OFF1 = 1060306944 + +/* +LOG2F_TABLE_BITS = 4 +LOG2F_POLY_ORDER = 4 + +ULP error: 0.752 (nearest rounding.) +Relative error: 1.9 * 2^-26 (before rounding.) +*/ + +func Xlog2f(tls *TLS, x1 float32) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x1=%v, (%v:)", tls, x1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var i, k int32 + var invc, logc, p, r, r2, y0, y1, z Tdouble_t + var ix, iz, tmp, top Tuint32_t + var y, v1 float32 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = i, invc, ix, iz, k, logc, p, r, r2, tmp, top, y, y0, y1, z, v1 + ix = *(*Tuint32_t)(unsafe.Pointer(&x1)) + /* Fix sign of zero with downward rounding when x==1. */ + if Bool(int32(WANT_ROUNDING) != 0) && ix == uint32(0x3f800000) { + return Float32FromInt32(0) + } + if ix-uint32(0x00800000) >= Uint32FromInt32(Int32FromInt32(0x7f800000)-Int32FromInt32(0x00800000)) { + /* x < 0x1p-126 or inf or nan. */ + if ix*uint32(2) == uint32(0) { + return X__math_divzerof(tls, uint32(1)) + } + if ix == uint32(0x7f800000) { /* log2(inf) == inf. */ + return x1 + } + if ix&uint32(0x80000000) != 0 || ix*uint32(2) >= uint32(0xff000000) { + return X__math_invalidf(tls, x1) + } + /* x is subnormal, normalize it. */ + v1 = float32(x1 * Float32FromFloat32(8.388608e+06)) + ix = *(*Tuint32_t)(unsafe.Pointer(&v1)) + ix = ix - Uint32FromInt32(Int32FromInt32(23)<> (Int32FromInt32(23) - Int32FromInt32(LOG2F_TABLE_BITS)) % Uint32FromInt32(Int32FromInt32(1)<> int32(23) /* arithmetic shift */ + invc = (**(**struct { + Finvc float64 + Flogc float64 + })(__ccgo_up(uintptr(unsafe.Pointer(&X__log2f_data)) + uintptr(i)*16))).Finvc + logc = (**(**struct { + Finvc float64 + Flogc float64 + })(__ccgo_up(uintptr(unsafe.Pointer(&X__log2f_data)) + uintptr(i)*16))).Flogc + z = float64(*(*float32)(unsafe.Pointer(&iz))) + /* log2(x) = log1p(z/c-1)/ln2 + log2(c) + k */ + r = Tdouble_t(z*invc) - Float64FromInt32(1) + y0 = logc + float64(k) + /* Pipelined polynomial evaluation to approximate log1p(r)/ln2. */ + r2 = Tdouble_t(r * r) + y1 = float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2f_data)) + 256 + 1*8))*r) + **(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2f_data)) + 256 + 2*8)) + y1 = float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2f_data)) + 256))*r2) + y1 + p = float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2f_data)) + 256 + 3*8))*r) + y0 + y1 = Tdouble_t(y1*r2) + p + y = float32(y1) + v1 = y + goto _3 +_3: + return v1 +} + +type Tlog2f_data = struct { + Ftab [16]struct { + Finvc float64 + Flogc float64 + } + Fpoly [4]float64 +} + +func Xlog2l(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xlog2(tls, x) +} + +const N7 = 128 + +type Tlog_data = struct { + Fln2hi float64 + Fln2lo float64 + Fpoly [5]float64 + Fpoly1 [11]float64 + Ftab [128]struct { + Finvc float64 + Flogc float64 + } +} + +/* +special cases: + logb(+-0) = -inf, and raise divbyzero + logb(+-inf) = +inf + logb(nan) = nan +*/ + +func Xlogb(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uint64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _ = v1 + *(*float64)(unsafe.Pointer(bp)) = x + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + if !(BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) < Uint64FromUint64(0x7ff)< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uint32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _ = v1 + *(*float32)(unsafe.Pointer(bp)) = x + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + if !(BoolInt32(v1&Uint32FromInt32(0x7fffffff) < Uint32FromInt32(0x7f800000)) != 0) { + return float32(x * x) + } + if x == Float32FromInt32(0) { + return float32(-Int32FromInt32(1)) / float32(x*x) + } + return float32(Xilogbf(tls, x)) +} + +func Xlogbl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uint64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _ = v1 + *(*float64)(unsafe.Pointer(bp)) = x + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + if !(BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) < Uint64FromUint64(0x7ff)< %v", r1) }() + } + var i, k int32 + var invc, logc, r, r2, y0, y1, z Tdouble_t + var ix, iz, tmp Tuint32_t + var y, v1 float32 + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = i, invc, ix, iz, k, logc, r, r2, tmp, y, y0, y1, z, v1 + ix = *(*Tuint32_t)(unsafe.Pointer(&x1)) + /* Fix sign of zero with downward rounding when x==1. */ + if Bool(int32(WANT_ROUNDING) != 0) && ix == uint32(0x3f800000) { + return Float32FromInt32(0) + } + if ix-uint32(0x00800000) >= Uint32FromInt32(Int32FromInt32(0x7f800000)-Int32FromInt32(0x00800000)) { + /* x < 0x1p-126 or inf or nan. */ + if ix*uint32(2) == uint32(0) { + return X__math_divzerof(tls, uint32(1)) + } + if ix == uint32(0x7f800000) { /* log(inf) == inf. */ + return x1 + } + if ix&uint32(0x80000000) != 0 || ix*uint32(2) >= uint32(0xff000000) { + return X__math_invalidf(tls, x1) + } + /* x is subnormal, normalize it. */ + v1 = float32(x1 * Float32FromFloat32(8.388608e+06)) + ix = *(*Tuint32_t)(unsafe.Pointer(&v1)) + ix = ix - Uint32FromInt32(Int32FromInt32(23)<> (Int32FromInt32(23) - Int32FromInt32(LOGF_TABLE_BITS)) % Uint32FromInt32(Int32FromInt32(1)<> int32(23) /* arithmetic shift */ + iz = ix - tmp&uint32(0xff800000) + invc = (**(**struct { + Finvc float64 + Flogc float64 + })(__ccgo_up(uintptr(unsafe.Pointer(&X__logf_data)) + uintptr(i)*16))).Finvc + logc = (**(**struct { + Finvc float64 + Flogc float64 + })(__ccgo_up(uintptr(unsafe.Pointer(&X__logf_data)) + uintptr(i)*16))).Flogc + z = float64(*(*float32)(unsafe.Pointer(&iz))) + /* log(x) = log1p(z/c-1) + log(c) + k*Ln2 */ + r = Tdouble_t(z*invc) - Float64FromInt32(1) + y0 = logc + Tdouble_t(float64(k)*X__logf_data.Fln2) + /* Pipelined polynomial evaluation to approximate log1p(r). */ + r2 = Tdouble_t(r * r) + y1 = float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__logf_data)) + 264 + 1*8))*r) + **(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__logf_data)) + 264 + 2*8)) + y1 = float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__logf_data)) + 264))*r2) + y1 + y1 = Tdouble_t(y1*r2) + (y0 + r) + y = float32(y1) + v1 = y + goto _3 +_3: + return v1 +} + +type Tlogf_data = struct { + Ftab [16]struct { + Finvc float64 + Flogc float64 + } + Fln2 float64 + Fpoly [3]float64 +} + +func Xlogl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xlog(tls, x) +} + +/* +If the result cannot be represented (overflow, nan), then +lrint raises the invalid exception. + +Otherwise if the input was not an integer then the inexact +exception is raised. + +C99 is a bit vague about whether inexact exception is +allowed to be raised when invalid is raised. +(F.9 explicitly allows spurious inexact exceptions, F.9.6.5 +does not make it clear if that rule applies to lrint, but +IEEE 754r 7.8 seems to forbid spurious inexact exception in +the ineger conversion functions) + +So we try to make sure that no spurious inexact exception is +raised in case of an overflow. + +If the bit size of long > precision of double, then there +cannot be inexact rounding in case the result overflows, +otherwise LONG_MAX and LONG_MIN can be represented exactly +as a double. +*/ + +func Xlrint(tls *TLS, x float64) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int64(Xrint(tls, x)) +} + +/* uses LONG_MAX > 2^24, see comments in lrint.c */ + +func Xlrintf(tls *TLS, x float32) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int64(Xrintf(tls, x)) +} + +func Xlrintl(tls *TLS, x float64) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xlrint(tls, x) +} + +func Xlround(tls *TLS, x float64) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int64(Xround(tls, x)) +} + +func Xlroundf(tls *TLS, x float32) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int64(Xroundf(tls, x)) +} + +func Xlroundl(tls *TLS, x float64) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int64(Xroundl(tls, x)) +} + +func Xmodf(tls *TLS, x float64, iptr uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v iptr=%v, (%v:)", tls, x, iptr, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e int32 + var mask Tuint64_t + var v1 uintptr + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _ = e, mask, v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + e = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp))>>Int32FromInt32(52)&Uint64FromInt32(0x7ff)) - int32(0x3ff) + /* no fractional part */ + if e >= int32(52) { + **(**float64)(__ccgo_up(iptr)) = x + if e == int32(0x400) && *(*Tuint64_t)(unsafe.Pointer(bp))<> Int32FromInt32(12) >> e) + if *(*Tuint64_t)(unsafe.Pointer(bp))&mask == uint64(0) { + **(**float64)(__ccgo_up(iptr)) = x + v1 = bp + *(*Tuint64_t)(unsafe.Pointer(v1)) = Tuint64_t(*(*Tuint64_t)(unsafe.Pointer(v1)) & (Uint64FromUint64(1) << Int32FromInt32(63))) + return *(*float64)(unsafe.Pointer(bp)) + } + *(*Tuint64_t)(unsafe.Pointer(bp)) &= ^mask + **(**float64)(__ccgo_up(iptr)) = *(*float64)(unsafe.Pointer(bp)) + return x - *(*float64)(unsafe.Pointer(bp)) +} + +func Xmodff(tls *TLS, x float32, iptr uintptr) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v iptr=%v, (%v:)", tls, x, iptr, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e int32 + var mask Tuint32_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _ = e, mask + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + e = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp))>>Int32FromInt32(23)&Uint32FromInt32(0xff)) - int32(0x7f) + /* no fractional part */ + if e >= int32(23) { + **(**float32)(__ccgo_up(iptr)) = x + if e == int32(0x80) && *(*Tuint32_t)(unsafe.Pointer(bp))<> e) + if *(*Tuint32_t)(unsafe.Pointer(bp))&mask == uint32(0) { + **(**float32)(__ccgo_up(iptr)) = x + *(*Tuint32_t)(unsafe.Pointer(bp)) &= uint32(0x80000000) + return *(*float32)(unsafe.Pointer(bp)) + } + *(*Tuint32_t)(unsafe.Pointer(bp)) &= ^mask + **(**float32)(__ccgo_up(iptr)) = *(*float32)(unsafe.Pointer(bp)) + return x - *(*float32)(unsafe.Pointer(bp)) +} + +func Xmodfl(tls *TLS, x float64, iptr uintptr) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x=%v iptr=%v, (%v:)", tls, x, iptr, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var r float64 + var _ /* d at bp+0 */ float64 + _ = r + r = Xmodf(tls, x, bp) + **(**float64)(__ccgo_up(iptr)) = float64(**(**float64)(__ccgo_up(bp))) + return r +} + +func Xnan(tls *TLS, s uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + return float64(X__builtin_nanf(tls, __ccgo_ts)) +} + +func Xnanf(tls *TLS, s uintptr) (r float32) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__builtin_nanf(tls, __ccgo_ts) +} + +func Xnanl(tls *TLS, s uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + return float64(X__builtin_nanf(tls, __ccgo_ts)) +} + +func Xnextafter(tls *TLS, x3 float64, y3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v y3=%v, (%v:)", tls, x3, y3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var ax, ay Tuint64_t + var e int32 + var y float32 + var y1, y2 float64 + var v1, v3 uint64 + var v5 bool + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + var _ /* ux at bp+8 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + var _ /* uy at bp+16 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _, _, _ = ax, ay, e, y, y1, y2, v1, v3, v5 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp + 8)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp + 8)) = x3 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp + 16)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp + 16)) = y3 + *(*float64)(unsafe.Pointer(bp)) = x3 + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + ; + if v5 = BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)< ay || (*(*Tuint64_t)(unsafe.Pointer(bp + 8))^*(*Tuint64_t)(unsafe.Pointer(bp + 16)))&(Uint64FromUint64(1)<> int32(52) & uint64(0x7ff)) + /* raise overflow if ux.f is infinite and x is finite */ + if e == int32(0x7ff) { + if uint64(8) == uint64(4) { + y = float32(x3 + x3) + } else { + if uint64(8) == uint64(8) { + y1 = x3 + x3 + } else { + y2 = x3 + x3 + } + } + } + /* raise underflow if ux.f is subnormal or zero */ + if e == 0 { + if uint64(8) == uint64(4) { + y = float32(float64(x3*x3) + float64(*(*float64)(unsafe.Pointer(bp + 8))**(*float64)(unsafe.Pointer(bp + 8)))) + } else { + if uint64(8) == uint64(8) { + y1 = float64(x3*x3) + float64(*(*float64)(unsafe.Pointer(bp + 8))**(*float64)(unsafe.Pointer(bp + 8))) + } else { + y2 = float64(x3*x3) + float64(*(*float64)(unsafe.Pointer(bp + 8))**(*float64)(unsafe.Pointer(bp + 8))) + } + } + } + return *(*float64)(unsafe.Pointer(bp + 8)) +} + +func Xnextafterf(tls *TLS, x3 float32, y3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v y3=%v, (%v:)", tls, x3, y3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ax, ay, e Tuint32_t + var y float32 + var y1, y2 float64 + var v1, v3 uint32 + var v5 bool + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + var _ /* ux at bp+4 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + var _ /* uy at bp+8 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _, _, _, _ = ax, ay, e, y, y1, y2, v1, v3, v5 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp + 4)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp + 4)) = x3 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp + 8)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp + 8)) = y3 + *(*float32)(unsafe.Pointer(bp)) = x3 + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + ; + if v5 = BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0; !v5 { + *(*float32)(unsafe.Pointer(bp)) = y3 + v3 = *(*uint32)(unsafe.Pointer(bp)) + goto _4 + _4: + } + if v5 || BoolInt32(v3&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return x3 + y3 + } + if *(*Tuint32_t)(unsafe.Pointer(bp + 4)) == *(*Tuint32_t)(unsafe.Pointer(bp + 8)) { + return y3 + } + ax = *(*Tuint32_t)(unsafe.Pointer(bp + 4)) & uint32(0x7fffffff) + ay = *(*Tuint32_t)(unsafe.Pointer(bp + 8)) & uint32(0x7fffffff) + if ax == uint32(0) { + if ay == uint32(0) { + return y3 + } + *(*Tuint32_t)(unsafe.Pointer(bp + 4)) = *(*Tuint32_t)(unsafe.Pointer(bp + 8))&uint32(0x80000000) | uint32(1) + } else { + if ax > ay || (*(*Tuint32_t)(unsafe.Pointer(bp + 4))^*(*Tuint32_t)(unsafe.Pointer(bp + 8)))&uint32(0x80000000) != 0 { + *(*Tuint32_t)(unsafe.Pointer(bp + 4)) = *(*Tuint32_t)(unsafe.Pointer(bp + 4)) - 1 + } else { + *(*Tuint32_t)(unsafe.Pointer(bp + 4)) = *(*Tuint32_t)(unsafe.Pointer(bp + 4)) + 1 + } + } + e = *(*Tuint32_t)(unsafe.Pointer(bp + 4)) & uint32(0x7f800000) + /* raise overflow if ux.f is infinite and x is finite */ + if e == uint32(0x7f800000) { + if uint64(4) == uint64(4) { + y = x3 + x3 + } else { + if uint64(4) == uint64(8) { + y1 = float64(x3 + x3) + } else { + y2 = float64(x3 + x3) + } + } + } + /* raise underflow if ux.f is subnormal or zero */ + if e == uint32(0) { + if uint64(4) == uint64(4) { + y = float32(x3*x3) + float32(*(*float32)(unsafe.Pointer(bp + 4))**(*float32)(unsafe.Pointer(bp + 4))) + } else { + if uint64(4) == uint64(8) { + y1 = float64(float32(x3*x3) + float32(*(*float32)(unsafe.Pointer(bp + 4))**(*float32)(unsafe.Pointer(bp + 4)))) + } else { + y2 = float64(float32(x3*x3) + float32(*(*float32)(unsafe.Pointer(bp + 4))**(*float32)(unsafe.Pointer(bp + 4)))) + } + } + } + return *(*float32)(unsafe.Pointer(bp + 4)) +} + +func Xnextafterl(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xnextafter(tls, x, y) +} + +func Xnexttoward(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xnextafter(tls, x, y) +} + +func Xnexttowardf(tls *TLS, x3 float32, y3 float64) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v y3=%v, (%v:)", tls, x3, y3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var e Tuint32_t + var y float32 + var y1, y2 float64 + var v1 uint32 + var v3 uint64 + var v5 bool + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + var _ /* __u at bp+8 */ struct { + F__i [0]uint64 + F__f float64 + } + var _ /* ux at bp+16 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _, _ = e, y, y1, y2, v1, v3, v5 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp + 16)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp + 16)) = x3 + *(*float32)(unsafe.Pointer(bp)) = x3 + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + ; + if v5 = BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0; !v5 { + *(*float64)(unsafe.Pointer(bp + 8)) = y3 + v3 = *(*uint64)(unsafe.Pointer(bp + 8)) + goto _4 + _4: + } + if v5 || BoolInt32(v3&(-Uint64FromUint64(1)>>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(63)) != 0 { + *(*Tuint32_t)(unsafe.Pointer(bp + 16)) |= uint32(0x80000000) + } + } else { + if float64(x3) < y3 { + *(*float32)(unsafe.Pointer(bp)) = x3 + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _9 + _9: + if Int32FromUint32(v1>>Int32FromInt32(31)) != 0 { + *(*Tuint32_t)(unsafe.Pointer(bp + 16)) = *(*Tuint32_t)(unsafe.Pointer(bp + 16)) - 1 + } else { + *(*Tuint32_t)(unsafe.Pointer(bp + 16)) = *(*Tuint32_t)(unsafe.Pointer(bp + 16)) + 1 + } + } else { + *(*float32)(unsafe.Pointer(bp)) = x3 + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _11 + _11: + if Int32FromUint32(v1>>Int32FromInt32(31)) != 0 { + *(*Tuint32_t)(unsafe.Pointer(bp + 16)) = *(*Tuint32_t)(unsafe.Pointer(bp + 16)) + 1 + } else { + *(*Tuint32_t)(unsafe.Pointer(bp + 16)) = *(*Tuint32_t)(unsafe.Pointer(bp + 16)) - 1 + } + } + } + e = *(*Tuint32_t)(unsafe.Pointer(bp + 16)) & uint32(0x7f800000) + /* raise overflow if ux.f is infinite and x is finite */ + if e == uint32(0x7f800000) { + if uint64(4) == uint64(4) { + y = x3 + x3 + } else { + if uint64(4) == uint64(8) { + y1 = float64(x3 + x3) + } else { + y2 = float64(x3 + x3) + } + } + } + /* raise underflow if ux.f is subnormal or zero */ + if e == uint32(0) { + if uint64(4) == uint64(4) { + y = float32(x3*x3) + float32(*(*float32)(unsafe.Pointer(bp + 16))**(*float32)(unsafe.Pointer(bp + 16))) + } else { + if uint64(4) == uint64(8) { + y1 = float64(float32(x3*x3) + float32(*(*float32)(unsafe.Pointer(bp + 16))**(*float32)(unsafe.Pointer(bp + 16)))) + } else { + y2 = float64(float32(x3*x3) + float32(*(*float32)(unsafe.Pointer(bp + 16))**(*float32)(unsafe.Pointer(bp + 16)))) + } + } + } + return *(*float32)(unsafe.Pointer(bp + 16)) +} + +func Xnexttowardl(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xnextafterl(tls, x, y) +} + +const OFF2 = 4604531861337669632 +const POW_LOG_POLY_ORDER = 8 +const POW_LOG_TABLE_BITS = 7 +const SIGN_BIAS = 262144 + +/* +Worst-case error: 0.54 ULP (~= ulperr_exp + 1024*Ln2*relerr_log*2^53) +relerr_log: 1.3 * 2^-68 (Relative error of log, 1.5 * 2^-68 without fma) +ulperr_exp: 0.509 ULP (ULP error of exp, 0.511 ULP without fma) +*/ + +// C documentation +// +// /* Top 12 bits of a double (sign and exponent bits). */ +func _top124(tls *TLS, x float64) (r Tuint32_t) { + return uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(52)) +} + +// C documentation +// +// /* Compute y+TAIL = log(x) where the rounded result is y and TAIL has about +// additional 15 bits precision. IX is the bit representation of x, but +// normalized in the subnormal range using the sign bit for the exponent. */ +func _log_inline(tls *TLS, ix Tuint64_t, tail uintptr) (r1 Tdouble_t) { + var ar, ar2, ar3, hi, invc, kd, lo, lo1, lo2, lo3, lo4, logc, logctail, p, r, t1, t2, y, z Tdouble_t + var i, k int32 + var iz, tmp Tuint64_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = ar, ar2, ar3, hi, i, invc, iz, k, kd, lo, lo1, lo2, lo3, lo4, logc, logctail, p, r, t1, t2, tmp, y, z + /* x = 2^k z; where z is in range [OFF,2*OFF) and exact. + The range is split into N subintervals. + The ith subinterval contains z and c is near its center. */ + tmp = ix - uint64(OFF2) + i = Int32FromUint64(tmp >> (Int32FromInt32(52) - Int32FromInt32(POW_LOG_TABLE_BITS)) % Uint64FromInt32(Int32FromInt32(1)<> int32(52)) /* arithmetic shift */ + iz = uint64(ix - tmp&(Uint64FromUint64(0xfff)< 0, the exponent of scale might have overflowed by <= 460. */ + sbits = uint64(sbits - Uint64FromUint64(1009)<= _top124(tls, float64(512))-_top124(tls, float64(5.551115123125783e-17)) { + if abstop-_top124(tls, float64(5.551115123125783e-17)) >= uint32(0x80000000) { + /* Avoid spurious underflow for tiny x. */ + /* Note: 0 is common input. */ + one = float64(1) + x1 + if sign_bias != 0 { + v1 = -one + } else { + v1 = one + } + return v1 + } + if abstop >= _top124(tls, float64(1024)) { + /* Note: inf and nan are already handled. */ + v2 = x1 + if *(*Tuint64_t)(unsafe.Pointer(&v2))>>int32(63) != 0 { + return X__math_uflow(tls, sign_bias) + } else { + return X__math_oflow(tls, sign_bias) + } + } + /* Large x is special cased below. */ + abstop = uint32(0) + } + /* exp(x) = 2^(k/N) * exp(r), with exp(r) in [2^(-1/2N),2^(1/2N)]. */ + /* x = ln2/N*k + r, with int k and r in [-ln2/2N, ln2/2N]. */ + z = Tdouble_t(X__exp_data.Finvln2N * x1) + /* z - kd is in [-1, 1] in non-nearest rounding modes. */ + y = z + X__exp_data.Fshift + v2 = y + goto _4 +_4: + kd = v2 + v2 = kd + ki = *(*Tuint64_t)(unsafe.Pointer(&v2)) + kd = kd - X__exp_data.Fshift + r = x1 + Tdouble_t(kd*X__exp_data.Fnegln2hiN) + Tdouble_t(kd*X__exp_data.Fnegln2loN) + /* The code assumes 2^-200 < |xtail| < 2^-8/N. */ + r = r + xtail + /* 2^(k/N) ~= scale * (1 + tail). */ + idx = uint64(2) * (ki % Uint64FromInt32(Int32FromInt32(1)< 2^-200 and scale > 2^-739, so there + is no spurious underflow here even without fma. */ + y = scale + Tdouble_t(scale*tmp) + v2 = y + goto _8 +_8: + return v2 +} + +// C documentation +// +// /* Returns 0 if not int, 1 if odd int, 2 if even int. The argument is +// the bit representation of a non-zero finite floating-point value. */ +func _checkint(tls *TLS, iy Tuint64_t) (r int32) { + var e int32 + _ = e + e = Int32FromUint64(iy >> int32(52) & uint64(0x7ff)) + if e < int32(0x3ff) { + return 0 + } + if e > Int32FromInt32(0x3ff)+Int32FromInt32(52) { + return int32(2) + } + if iy&(uint64(1)<<(Int32FromInt32(0x3ff)+Int32FromInt32(52)-e)-uint64(1)) != 0 { + return 0 + } + if iy&(uint64(1)<<(Int32FromInt32(0x3ff)+Int32FromInt32(52)-e)) != 0 { + return int32(1) + } + return int32(2) +} + +// C documentation +// +// /* Returns 1 if input is the bit representation of 0, infinity or nan. */ +func _zeroinfnan(tls *TLS, i Tuint64_t) (r int32) { + var v1 float64 + _ = v1 + v1 = float64(X__builtin_inff(tls)) + return BoolInt32(uint64(2)*i-uint64(1) >= uint64(2)**(*Tuint64_t)(unsafe.Pointer(&v1))-uint64(1)) +} + +func Xpow(tls *TLS, x1 float64, y1 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x1=%v y1=%v, (%v:)", tls, x1, y1, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ehi, elo, hi, x2 Tdouble_t + var ix, iy Tuint64_t + var sign_bias, topx, topy Tuint32_t + var y, v1, v2 float64 + var yint int32 + var v4 bool + var _ /* lo at bp+0 */ Tdouble_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = ehi, elo, hi, ix, iy, sign_bias, topx, topy, x2, y, yint, v1, v2, v4 + sign_bias = uint32(0) + ix = *(*Tuint64_t)(unsafe.Pointer(&x1)) + iy = *(*Tuint64_t)(unsafe.Pointer(&y1)) + topx = _top124(tls, x1) + topy = _top124(tls, y1) + if topx-uint32(0x001) >= Uint32FromInt32(Int32FromInt32(0x7ff)-Int32FromInt32(0x001)) || topy&uint32(0x7ff)-uint32(0x3be) >= Uint32FromInt32(Int32FromInt32(0x43e)-Int32FromInt32(0x3be)) { + /* Note: if |y| > 1075 * ln2 * 2^53 ~= 0x1.749p62 then pow(x,y) = inf/0 + and if |y| < 2^-54 / 1075 ~= 0x1.e7b6p-65 then pow(x,y) = +-1. */ + /* Special cases: (x < 0x1p-126 or inf or nan) or + (|y| < 0x1p-65 or |y| >= 0x1p63 or nan). */ + if _zeroinfnan(tls, iy) != 0 { + if uint64(2)*iy == uint64(0) { + return float64(1) + } + v1 = float64(1) + if ix == *(*Tuint64_t)(unsafe.Pointer(&v1)) { + return float64(1) + } + v1 = float64(X__builtin_inff(tls)) + if v4 = uint64(2)*ix > uint64(2)**(*Tuint64_t)(unsafe.Pointer(&v1)); !v4 { + v2 = float64(X__builtin_inff(tls)) + } + if v4 || uint64(2)*iy > uint64(2)**(*Tuint64_t)(unsafe.Pointer(&v2)) { + return x1 + y1 + } + v1 = float64(1) + if uint64(2)*ix == uint64(2)**(*Tuint64_t)(unsafe.Pointer(&v1)) { + return float64(1) + } + v1 = float64(1) + if BoolInt32(uint64(2)*ix < uint64(2)**(*Tuint64_t)(unsafe.Pointer(&v1))) == BoolInt32(!(iy>>Int32FromInt32(63) != 0)) { + return float64(0) + } /* |x|<1 && y==inf or |x|>1 && y==-inf. */ + return float64(y1 * y1) + } + if _zeroinfnan(tls, ix) != 0 { + x2 = Tdouble_t(x1 * x1) + if ix>>int32(63) != 0 && _checkint(tls, iy) == int32(1) { + x2 = -x2 + } + /* Without the barrier some versions of clang hoist the 1/x2 and + thus division by zero exception can be signaled spuriously. */ + if iy>>int32(63) != 0 { + y = Float64FromInt32(1) / x2 + v2 = y + goto _9 + _9: + v1 = v2 + } else { + v1 = x2 + } + return v1 + } + /* Here x and y are non-zero finite. */ + if ix>>int32(63) != 0 { + /* Finite x < 0. */ + yint = _checkint(tls, iy) + if yint == 0 { + return X__math_invalid(tls, x1) + } + if yint == int32(1) { + sign_bias = Uint32FromInt32(Int32FromInt32(0x800) << Int32FromInt32(EXP_TABLE_BITS)) + } + ix = ix & uint64(0x7fffffffffffffff) + topx = topx & uint32(0x7ff) + } + if topy&uint32(0x7ff)-uint32(0x3be) >= Uint32FromInt32(Int32FromInt32(0x43e)-Int32FromInt32(0x3be)) { + /* Note: sign_bias == 0 here because y is not odd. */ + v1 = float64(1) + if ix == *(*Tuint64_t)(unsafe.Pointer(&v1)) { + return float64(1) + } + if topy&uint32(0x7ff) < uint32(0x3be) { + /* |y| < 2^-65, x^y ~= 1 + y*log(x). */ + if int32(WANT_ROUNDING) != 0 { + v2 = float64(1) + if ix > *(*Tuint64_t)(unsafe.Pointer(&v2)) { + v1 = float64(1) + y1 + } else { + v1 = float64(1) - y1 + } + return v1 + } else { + return float64(1) + } + } + v2 = float64(1) + if BoolInt32(ix > *(*Tuint64_t)(unsafe.Pointer(&v2))) == BoolInt32(topy < uint32(0x800)) { + v1 = X__math_oflow(tls, uint32(0)) + } else { + v1 = X__math_uflow(tls, uint32(0)) + } + return v1 + } + if topx == uint32(0) { + /* Normalize subnormal x so exponent becomes negative. */ + v1 = float64(x1 * float64(4.503599627370496e+15)) + ix = *(*Tuint64_t)(unsafe.Pointer(&v1)) + ix = ix & uint64(0x7fffffffffffffff) + ix = uint64(ix - Uint64FromUint64(52)<> (Int32FromInt32(23) - Int32FromInt32(POWF_LOG2_TABLE_BITS)) % Uint32FromInt32(Int32FromInt32(1)<> (Int32FromInt32(23) - Int32FromInt32(POWF_SCALE_BITS)) /* arithmetic shift */ + invc = (**(**struct { + Finvc float64 + Flogc float64 + })(__ccgo_up(uintptr(unsafe.Pointer(&X__powf_log2_data)) + uintptr(i)*16))).Finvc + logc = (**(**struct { + Finvc float64 + Flogc float64 + })(__ccgo_up(uintptr(unsafe.Pointer(&X__powf_log2_data)) + uintptr(i)*16))).Flogc + z = float64(*(*float32)(unsafe.Pointer(&iz))) + /* log2(x) = log1p(z/c-1)/ln2 + log2(c) + k */ + r = Tdouble_t(z*invc) - Float64FromInt32(1) + y0 = logc + float64(k) + /* Pipelined polynomial evaluation to approximate log1p(r)/ln2. */ + r2 = Tdouble_t(r * r) + y = float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__powf_log2_data)) + 256))*r) + **(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__powf_log2_data)) + 256 + 1*8)) + p = float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__powf_log2_data)) + 256 + 2*8))*r) + **(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__powf_log2_data)) + 256 + 3*8)) + r4 = Tdouble_t(r2 * r2) + q = float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__powf_log2_data)) + 256 + 4*8))*r) + y0 + q = Tdouble_t(p*r2) + q + y = Tdouble_t(y*r4) + q + return y +} + +// C documentation +// +// /* The output of log2 and thus the input of exp2 is either scaled by N +// (in case of fast toint intrinsics) or not. The unscaled xd must be +// in [-1021,1023], sign_bias sets the sign of the result. */ +func _exp2_inline(tls *TLS, xd Tdouble_t, sign_bias Tuint32_t) (r1 float32) { + var kd, r, r2, s, y2, z Tdouble_t + var ki, ski, t Tuint64_t + var y, v4 float32 + var y1, v1 float64 + _, _, _, _, _, _, _, _, _, _, _, _, _ = kd, ki, r, r2, s, ski, t, y, y1, y2, z, v1, v4 + /* x = k/N + r with r in [-1/(2N), 1/(2N)] */ + y1 = xd + X__exp2f_data.Fshift_scaled + v1 = y1 + goto _2 +_2: + kd = v1 + v1 = kd + ki = *(*Tuint64_t)(unsafe.Pointer(&v1)) + kd = kd - X__exp2f_data.Fshift_scaled /* k/N */ + r = xd - kd + /* exp2(x) = 2^(k/N) * 2^r ~= s * (C0*r^3 + C1*r^2 + C2*r + 1) */ + t = **(**Tuint64_t)(__ccgo_up(uintptr(unsafe.Pointer(&X__exp2f_data)) + uintptr(ki%Uint64FromInt32(Int32FromInt32(1)<> int32(23) & uint32(0xff)) + if e < int32(0x7f) { + return 0 + } + if e > Int32FromInt32(0x7f)+Int32FromInt32(23) { + return int32(2) + } + if iy&Uint32FromInt32(Int32FromInt32(1)<<(Int32FromInt32(0x7f)+Int32FromInt32(23)-e)-Int32FromInt32(1)) != 0 { + return 0 + } + if iy&Uint32FromInt32(Int32FromInt32(1)<<(Int32FromInt32(0x7f)+Int32FromInt32(23)-e)) != 0 { + return int32(1) + } + return int32(2) +} + +func _zeroinfnan1(tls *TLS, ix Tuint32_t) (r int32) { + return BoolInt32(uint32(2)*ix-uint32(1) >= Uint32FromUint32(2)*Uint32FromInt32(0x7f800000)-Uint32FromInt32(1)) +} + +func Xpowf(tls *TLS, x1 float32, y1 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x1=%v y1=%v, (%v:)", tls, x1, y1, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ix, iy, sign_bias Tuint32_t + var logx, ylogx Tdouble_t + var x2 Tfloat_t + var y, v1, v2 float32 + var yint int32 + var v5, v6 float64 + _, _, _, _, _, _, _, _, _, _, _, _ = ix, iy, logx, sign_bias, x2, y, yint, ylogx, v1, v2, v5, v6 + sign_bias = uint32(0) + ix = *(*Tuint32_t)(unsafe.Pointer(&x1)) + iy = *(*Tuint32_t)(unsafe.Pointer(&y1)) + if ix-uint32(0x00800000) >= Uint32FromInt32(Int32FromInt32(0x7f800000)-Int32FromInt32(0x00800000)) || _zeroinfnan1(tls, iy) != 0 { + /* Either (x < 0x1p-126 or inf or nan) or (y is 0 or inf or nan). */ + if _zeroinfnan1(tls, iy) != 0 { + if uint32(2)*iy == uint32(0) { + return Float32FromFloat32(1) + } + if ix == uint32(0x3f800000) { + return Float32FromFloat32(1) + } + if uint32(2)*ix > Uint32FromUint32(2)*Uint32FromInt32(0x7f800000) || uint32(2)*iy > Uint32FromUint32(2)*Uint32FromInt32(0x7f800000) { + return x1 + y1 + } + if uint32(2)*ix == Uint32FromInt32(Int32FromInt32(2)*Int32FromInt32(0x3f800000)) { + return Float32FromFloat32(1) + } + if BoolInt32(uint32(2)*ix < Uint32FromInt32(Int32FromInt32(2)*Int32FromInt32(0x3f800000))) == BoolInt32(!(iy&Uint32FromUint32(0x80000000) != 0)) { + return Float32FromFloat32(0) + } /* |x|<1 && y==inf or |x|>1 && y==-inf. */ + return float32(y1 * y1) + } + if _zeroinfnan1(tls, ix) != 0 { + x2 = Tfloat_t(x1 * x1) + if ix&uint32(0x80000000) != 0 && _checkint1(tls, iy) == int32(1) { + x2 = -x2 + } + /* Without the barrier some versions of clang hoist the 1/x2 and + thus division by zero exception can be signaled spuriously. */ + if iy&uint32(0x80000000) != 0 { + y = Float32FromInt32(1) / x2 + v2 = y + goto _3 + _3: + v1 = v2 + } else { + v1 = x2 + } + return v1 + } + /* x and y are non-zero finite. */ + if ix&uint32(0x80000000) != 0 { + /* Finite x < 0. */ + yint = _checkint1(tls, iy) + if yint == 0 { + return X__math_invalidf(tls, x1) + } + if yint == int32(1) { + sign_bias = Uint32FromInt32(Int32FromInt32(1) << (Int32FromInt32(EXP2F_TABLE_BITS) + Int32FromInt32(11))) + } + ix = ix & uint32(0x7fffffff) + } + if ix < uint32(0x00800000) { + /* Normalize subnormal x so exponent becomes negative. */ + v1 = float32(x1 * Float32FromFloat32(8.388608e+06)) + ix = *(*Tuint32_t)(unsafe.Pointer(&v1)) + ix = ix & uint32(0x7fffffff) + ix = ix - Uint32FromInt32(Int32FromInt32(23)<>int32(47)&uint64(0xffff) >= *(*Tuint64_t)(unsafe.Pointer(&v6))>>int32(47) { + /* |y*log(x)| >= 126. */ + if ylogx > Tdouble_t(float64(127.99999995700433)*float64(Int32FromInt32(1)< %v", r) }() + } + return Xpow(tls, x, y) +} + +func Xremainder(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* q at bp+0 */ int32 + return Xremquo(tls, x, y, bp) +} + +func Xdrem(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xremainder(tls, x, y) +} + +func Xremainderf(tls *TLS, x float32, y float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* q at bp+0 */ int32 + return Xremquof(tls, x, y, bp) +} + +func Xdremf(tls *TLS, x float32, y float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xremainderf(tls, x, y) +} + +func Xremainderl(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xremainder(tls, x, y) +} + +func Xremquo(tls *TLS, x float64, y float64, quo uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v quo=%v, (%v:)", tls, x, y, quo, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var ex, ey, sx, sy, v10 int32 + var i, uxi Tuint64_t + var q Tuint32_t + var v1 uint64 + var v11 float64 + var v3 bool + var v6 uintptr + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + var _ /* ux at bp+8 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + var _ /* uy at bp+16 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _, _, _, _, _, _ = ex, ey, i, q, sx, sy, uxi, v1, v10, v11, v3, v6 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp + 8)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp + 8)) = x + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp + 16)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp + 16)) = y + ex = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp + 8)) >> int32(52) & uint64(0x7ff)) + ey = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp + 16)) >> int32(52) & uint64(0x7ff)) + sx = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp + 8)) >> int32(63)) + sy = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp + 16)) >> int32(63)) + uxi = *(*Tuint64_t)(unsafe.Pointer(bp + 8)) + **(**int32)(__ccgo_up(quo)) = 0 + if v3 = *(*Tuint64_t)(unsafe.Pointer(bp + 16))<>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>int32(63) == uint64(0)) { + break + } + goto _4 + _4: + ; + ex = ex - 1 + i = i << uint64(1) + } + uxi = uxi << Uint64FromInt32(-ex+int32(1)) + } else { + uxi = uint64(uxi & (-Uint64FromUint64(1) >> Int32FromInt32(12))) + uxi = uint64(uxi | Uint64FromUint64(1)<>int32(63) == uint64(0)) { + break + } + goto _5 + _5: + ; + ey = ey - 1 + i = i << uint64(1) + } + *(*Tuint64_t)(unsafe.Pointer(bp + 16)) <<= Uint64FromInt32(-ey + int32(1)) + } else { + v6 = bp + 16 + *(*Tuint64_t)(unsafe.Pointer(v6)) = Tuint64_t(*(*Tuint64_t)(unsafe.Pointer(v6)) & (-Uint64FromUint64(1) >> Int32FromInt32(12))) + v6 = bp + 16 + *(*Tuint64_t)(unsafe.Pointer(v6)) = Tuint64_t(*(*Tuint64_t)(unsafe.Pointer(v6)) | Uint64FromUint64(1)< ey) { + break + } + i = uxi - *(*Tuint64_t)(unsafe.Pointer(bp + 16)) + if i>>int32(63) == uint64(0) { + uxi = i + q = q + 1 + } + uxi = uxi << uint64(1) + q = q << uint32(1) + goto _8 + _8: + ; + ex = ex - 1 + } + i = uxi - *(*Tuint64_t)(unsafe.Pointer(bp + 16)) + if i>>int32(63) == uint64(0) { + uxi = i + q = q + 1 + } + if uxi == uint64(0) { + ex = -int32(60) + } else { + for { + if !(uxi>>int32(52) == uint64(0)) { + break + } + goto _9 + _9: + ; + uxi = uxi << uint64(1) + ex = ex - 1 + } + } + goto end +end: + ; + /* scale result and decide between |x| and |x|-|y| */ + if ex > 0 { + uxi = uint64(uxi - Uint64FromUint64(1)<> Uint64FromInt32(-ex+int32(1)) + } + *(*Tuint64_t)(unsafe.Pointer(bp + 8)) = uxi + x = *(*float64)(unsafe.Pointer(bp + 8)) + if sy != 0 { + y = -y + } + if ex == ey || ex+int32(1) == ey && (float64(Float64FromInt32(2)*x) > y || float64(Float64FromInt32(2)*x) == y && q%uint32(2) != 0) { + x = x - y + q = q + 1 + } + q = q & uint32(0x7fffffff) + if sx^sy != 0 { + v10 = -Int32FromUint32(q) + } else { + v10 = Int32FromUint32(q) + } + **(**int32)(__ccgo_up(quo)) = v10 + if sx != 0 { + v11 = -x + } else { + v11 = x + } + return v11 +} + +func Xremquof(tls *TLS, x float32, y float32, quo uintptr) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v quo=%v, (%v:)", tls, x, y, quo, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ex, ey, sx, sy, v8 int32 + var i, q, uxi Tuint32_t + var v1 uint32 + var v3 bool + var v9 float32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + var _ /* ux at bp+4 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + var _ /* uy at bp+8 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _, _, _, _, _, _ = ex, ey, i, q, sx, sy, uxi, v1, v3, v8, v9 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp + 4)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp + 4)) = x + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp + 8)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp + 8)) = y + ex = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp + 4)) >> int32(23) & uint32(0xff)) + ey = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp + 8)) >> int32(23) & uint32(0xff)) + sx = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp + 4)) >> int32(31)) + sy = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp + 8)) >> int32(31)) + uxi = *(*Tuint32_t)(unsafe.Pointer(bp + 4)) + **(**int32)(__ccgo_up(quo)) = 0 + if v3 = *(*Tuint32_t)(unsafe.Pointer(bp + 8))< uint32(0x7f800000)) != 0 || ex == int32(0xff) { + return float32(x*y) / float32(x*y) + } + if *(*Tuint32_t)(unsafe.Pointer(bp + 4))<>int32(31) == uint32(0)) { + break + } + goto _4 + _4: + ; + ex = ex - 1 + i = i << uint32(1) + } + uxi = uxi << Uint32FromInt32(-ex+int32(1)) + } else { + uxi = uxi & (-Uint32FromUint32(1) >> Int32FromInt32(9)) + uxi = uxi | Uint32FromUint32(1)<>int32(31) == uint32(0)) { + break + } + goto _5 + _5: + ; + ey = ey - 1 + i = i << uint32(1) + } + *(*Tuint32_t)(unsafe.Pointer(bp + 8)) <<= Uint32FromInt32(-ey + int32(1)) + } else { + *(*Tuint32_t)(unsafe.Pointer(bp + 8)) &= -Uint32FromUint32(1) >> Int32FromInt32(9) + *(*Tuint32_t)(unsafe.Pointer(bp + 8)) |= Uint32FromUint32(1) << Int32FromInt32(23) + } + q = uint32(0) + if ex < ey { + if ex+int32(1) == ey { + goto end + } + return x + } + /* x mod y */ + for { + if !(ex > ey) { + break + } + i = uxi - *(*Tuint32_t)(unsafe.Pointer(bp + 8)) + if i>>int32(31) == uint32(0) { + uxi = i + q = q + 1 + } + uxi = uxi << uint32(1) + q = q << uint32(1) + goto _6 + _6: + ; + ex = ex - 1 + } + i = uxi - *(*Tuint32_t)(unsafe.Pointer(bp + 8)) + if i>>int32(31) == uint32(0) { + uxi = i + q = q + 1 + } + if uxi == uint32(0) { + ex = -int32(30) + } else { + for { + if !(uxi>>int32(23) == uint32(0)) { + break + } + goto _7 + _7: + ; + uxi = uxi << uint32(1) + ex = ex - 1 + } + } + goto end +end: + ; + /* scale result and decide between |x| and |x|-|y| */ + if ex > 0 { + uxi = uxi - Uint32FromUint32(1)<> Uint32FromInt32(-ex+int32(1)) + } + *(*Tuint32_t)(unsafe.Pointer(bp + 4)) = uxi + x = *(*float32)(unsafe.Pointer(bp + 4)) + if sy != 0 { + y = -y + } + if ex == ey || ex+int32(1) == ey && (float32(Float32FromInt32(2)*x) > y || float32(Float32FromInt32(2)*x) == y && q%uint32(2) != 0) { + x = x - y + q = q + 1 + } + q = q & uint32(0x7fffffff) + if sx^sy != 0 { + v8 = -Int32FromUint32(q) + } else { + v8 = Int32FromUint32(q) + } + **(**int32)(__ccgo_up(quo)) = v8 + if sx != 0 { + v9 = -x + } else { + v9 = x + } + return v9 +} + +func Xremquol(tls *TLS, x float64, y float64, quo uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v quo=%v, (%v:)", tls, x, y, quo, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xremquo(tls, x, y, quo) +} + +const DBL_EPSILON9 = 2.220446049250313e-16 + +var _toint4 = Float64FromInt32(1) / Float64FromFloat64(2.220446049250313e-16) + +func Xrint(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e, s int32 + var y Tdouble_t + var v1 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _ = e, s, y, v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + e = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + s = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(63)) + if e >= Int32FromInt32(0x3ff)+Int32FromInt32(52) { + return x + } + if s != 0 { + y = x - _toint4 + _toint4 + } else { + y = x + _toint4 - _toint4 + } + if y == Float64FromInt32(0) { + if s != 0 { + v1 = -Float64FromFloat64(0) + } else { + v1 = Float64FromInt32(0) + } + return v1 + } + return y +} + +const DBL_EPSILON10 = 0 +const FLT_EPSILON1 = 1.1920928955078125e-07 + +var _toint5 = Float32FromInt32(1) / Float32FromFloat32(1.1920928955078125e-07) + +func Xrintf(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e, s int32 + var y Tfloat_t + var v1 float32 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _ = e, s, y, v1 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + e = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(23) & uint32(0xff)) + s = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(31)) + if e >= Int32FromInt32(0x7f)+Int32FromInt32(23) { + return x + } + if s != 0 { + y = x - _toint5 + _toint5 + } else { + y = x + _toint5 - _toint5 + } + if y == Float32FromInt32(0) { + if s != 0 { + v1 = -Float32FromFloat32(0) + } else { + v1 = Float32FromFloat32(0) + } + return v1 + } + return y +} + +const FLT_EPSILON2 = 0 + +func Xrintl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xrint(tls, x) +} + +const DBL_EPSILON11 = 2.220446049250313e-16 + +var _toint6 = Float64FromInt32(1) / Float64FromFloat64(2.220446049250313e-16) + +func Xround(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e int32 + var y float32 + var y1, y2 float64 + var y3 Tdouble_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _ = e, y, y1, y2, y3 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + e = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + if e >= Int32FromInt32(0x3ff)+Int32FromInt32(52) { + return x3 + } + if *(*Tuint64_t)(unsafe.Pointer(bp))>>int32(63) != 0 { + x3 = -x3 + } + if e < Int32FromInt32(0x3ff)-Int32FromInt32(1) { + /* raise inexact if x!=0 */ + if uint64(8) == uint64(4) { + y = float32(x3 + _toint6) + } else { + if uint64(8) == uint64(8) { + y1 = x3 + _toint6 + } else { + y2 = float64(x3 + _toint6) + } + } + return float64(Float64FromInt32(0) * *(*float64)(unsafe.Pointer(bp))) + } + y3 = x3 + _toint6 - _toint6 - x3 + if y3 > float64(0.5) { + y3 = y3 + x3 - Float64FromInt32(1) + } else { + if y3 <= -Float64FromFloat64(0.5) { + y3 = y3 + x3 + Float64FromInt32(1) + } else { + y3 = y3 + x3 + } + } + if *(*Tuint64_t)(unsafe.Pointer(bp))>>int32(63) != 0 { + y3 = -y3 + } + return y3 +} + +const DBL_EPSILON12 = 0 +const FLT_EPSILON3 = 1.1920928955078125e-07 + +var _toint7 = Float32FromInt32(1) / Float32FromFloat32(1.1920928955078125e-07) + +func Xroundf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e int32 + var y float32 + var y1, y2 float64 + var y3 Tfloat_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _ = e, y, y1, y2, y3 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + e = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(23) & uint32(0xff)) + if e >= Int32FromInt32(0x7f)+Int32FromInt32(23) { + return x3 + } + if *(*Tuint32_t)(unsafe.Pointer(bp))>>int32(31) != 0 { + x3 = -x3 + } + if e < Int32FromInt32(0x7f)-Int32FromInt32(1) { + if uint64(4) == uint64(4) { + y = x3 + _toint7 + } else { + if uint64(4) == uint64(8) { + y1 = float64(x3 + _toint7) + } else { + y2 = float64(x3 + _toint7) + } + } + return float32(Float32FromInt32(0) * *(*float32)(unsafe.Pointer(bp))) + } + y3 = x3 + _toint7 - _toint7 - x3 + if y3 > Float32FromFloat32(0.5) { + y3 = y3 + x3 - Float32FromInt32(1) + } else { + if y3 <= -Float32FromFloat32(0.5) { + y3 = y3 + x3 + Float32FromInt32(1) + } else { + y3 = y3 + x3 + } + } + if *(*Tuint32_t)(unsafe.Pointer(bp))>>int32(31) != 0 { + y3 = -y3 + } + return y3 +} + +const FLT_EPSILON4 = 0 + +func Xroundl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xround(tls, x) +} + +func Xscalb(tls *TLS, x float64, fn float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v fn=%v, (%v:)", tls, x, fn, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1, v3 uint64 + var v5 bool + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _, _, _ = v1, v3, v5 + *(*float64)(unsafe.Pointer(bp)) = x + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + ; + if v5 = BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) < Uint64FromUint64(0x7ff)< float64(0) { + return float64(x * fn) + } else { + return x / -fn + } + } + if Xrint(tls, fn) != fn { + return (fn - fn) / (fn - fn) + } + if fn > float64(65000) { + return Xscalbn(tls, x, int32(65000)) + } + if -fn > float64(65000) { + return Xscalbn(tls, x, -int32(65000)) + } + return Xscalbn(tls, x, int32(fn)) +} + +func Xscalbf(tls *TLS, x float32, fn float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v fn=%v, (%v:)", tls, x, fn, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1, v3 uint32 + var v5 bool + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _, _, _ = v1, v3, v5 + *(*float32)(unsafe.Pointer(bp)) = x + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + ; + if v5 = BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0; !v5 { + *(*float32)(unsafe.Pointer(bp)) = fn + v3 = *(*uint32)(unsafe.Pointer(bp)) + goto _4 + _4: + } + if v5 || BoolInt32(v3&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return float32(x * fn) + } + *(*float32)(unsafe.Pointer(bp)) = fn + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _7 +_7: + if !(BoolInt32(v1&Uint32FromInt32(0x7fffffff) < Uint32FromInt32(0x7f800000)) != 0) { + if fn > Float32FromFloat32(0) { + return float32(x * fn) + } else { + return x / -fn + } + } + if Xrintf(tls, fn) != fn { + return (fn - fn) / (fn - fn) + } + if fn > Float32FromFloat32(65000) { + return Xscalbnf(tls, x, int32(65000)) + } + if -fn > Float32FromFloat32(65000) { + return Xscalbnf(tls, x, -int32(65000)) + } + return Xscalbnf(tls, x, int32(fn)) +} + +func Xscalbln(tls *TLS, x float64, n int64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + if n > int64(INT_MAX) { + n = int64(INT_MAX) + } else { + if n < int64(-Int32FromInt32(1)-Int32FromInt32(0x7fffffff)) { + n = int64(-Int32FromInt32(1) - Int32FromInt32(0x7fffffff)) + } + } + return Xscalbn(tls, x, int32(n)) +} + +func Xscalblnf(tls *TLS, x float32, n int64) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + if n > int64(INT_MAX) { + n = int64(INT_MAX) + } else { + if n < int64(-Int32FromInt32(1)-Int32FromInt32(0x7fffffff)) { + n = int64(-Int32FromInt32(1) - Int32FromInt32(0x7fffffff)) + } + } + return Xscalbnf(tls, x, int32(n)) +} + +func Xscalblnl(tls *TLS, x float64, n int64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xscalbln(tls, x, n) +} + +func Xscalbn(tls *TLS, x float64, n int32) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var y Tdouble_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _ = y + y = x + if n > int32(1023) { + y = y * float64(8.98846567431158e+307) + n = n - int32(1023) + if n > int32(1023) { + y = y * float64(8.98846567431158e+307) + n = n - int32(1023) + if n > int32(1023) { + n = int32(1023) + } + } + } else { + if n < -int32(1022) { + /* make sure final n < -53 to avoid double + rounding in the subnormal range */ + y = y * Tdouble_t(Float64FromFloat64(2.2250738585072014e-308)*Float64FromFloat64(9.007199254740992e+15)) + n = n + (Int32FromInt32(1022) - Int32FromInt32(53)) + if n < -int32(1022) { + y = y * Tdouble_t(Float64FromFloat64(2.2250738585072014e-308)*Float64FromFloat64(9.007199254740992e+15)) + n = n + (Int32FromInt32(1022) - Int32FromInt32(53)) + if n < -int32(1022) { + n = -int32(1022) + } + } + } + } + *(*Tuint64_t)(unsafe.Pointer(bp)) = Uint64FromInt32(Int32FromInt32(0x3ff)+n) << int32(52) + x = float64(y * *(*float64)(unsafe.Pointer(bp))) + return x +} + +func Xscalbnf(tls *TLS, x float32, n int32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var y Tfloat_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _ = y + y = x + if n > int32(127) { + y = y * Float32FromFloat32(1.7014118346046923e+38) + n = n - int32(127) + if n > int32(127) { + y = y * Float32FromFloat32(1.7014118346046923e+38) + n = n - int32(127) + if n > int32(127) { + n = int32(127) + } + } + } else { + if n < -int32(126) { + y = y * Tfloat_t(Float32FromFloat32(1.1754943508222875e-38)*Float32FromFloat32(1.6777216e+07)) + n = n + (Int32FromInt32(126) - Int32FromInt32(24)) + if n < -int32(126) { + y = y * Tfloat_t(Float32FromFloat32(1.1754943508222875e-38)*Float32FromFloat32(1.6777216e+07)) + n = n + (Int32FromInt32(126) - Int32FromInt32(24)) + if n < -int32(126) { + n = -int32(126) + } + } + } + } + *(*Tuint32_t)(unsafe.Pointer(bp)) = Uint32FromInt32(Int32FromInt32(0x7f)+n) << int32(23) + x = float32(y * *(*float32)(unsafe.Pointer(bp))) + return x +} + +func Xscalbnl(tls *TLS, x float64, n int32) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xscalbn(tls, x, n) +} + +func Xsignificand(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xscalbn(tls, x, -Xilogb(tls, x)) +} + +func Xsignificandf(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xscalbnf(tls, x, -Xilogbf(tls, x)) +} + +func Xsin(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ix Tuint32_t + var n uint32 + var y float32 + var y1, y2, v1 float64 + var _ /* y at bp+0 */ [2]float64 + _, _, _, _, _, _ = ix, n, y, y1, y2, v1 + /* High word of x. */ + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x3)) >> int32(32)) + ix = ix & uint32(0x7fffffff) + /* |x| ~< pi/4 */ + if ix <= uint32(0x3fe921fb) { + if ix < uint32(0x3e500000) { /* |x| < 2**-26 */ + /* raise inexact if x != 0 and underflow if subnormal*/ + if uint64(8) == uint64(4) { + if ix < uint32(0x00100000) { + v1 = x3 / Float64FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } + y = float32(v1) + } else { + if uint64(8) == uint64(8) { + if ix < uint32(0x00100000) { + v1 = x3 / Float64FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } + y1 = v1 + } else { + if ix < uint32(0x00100000) { + v1 = x3 / Float64FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } + y2 = v1 + } + } + return x3 + } + return X__sin(tls, x3, float64(0), 0) + } + /* sin(Inf or NaN) is NaN */ + if ix >= uint32(0x7ff00000) { + return x3 - x3 + } + /* argument reduction needed */ + n = Uint32FromInt32(X__rem_pio2(tls, x3, bp)) + switch n & Uint32FromInt32(3) { + case uint32(0): + return X__sin(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)], int32(1)) + case uint32(1): + return X__cos(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)]) + case uint32(2): + return -X__sin(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)], int32(1)) + default: + return -X__cos(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)]) + } + return r +} + +func Xsincos(tls *TLS, x3 float64, sin uintptr, cos uintptr) { + if __ccgo_strace { + trc("tls=%v x3=%v sin=%v cos=%v, (%v:)", tls, x3, sin, cos, origin(2)) + } + bp := tls.Alloc(16) + defer tls.Free(16) + var c, s, y1, y2, v1 float64 + var ix Tuint32_t + var n uint32 + var y float32 + var _ /* y at bp+0 */ [2]float64 + _, _, _, _, _, _, _, _ = c, ix, n, s, y, y1, y2, v1 + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x3)) >> int32(32)) + ix = ix & uint32(0x7fffffff) + /* |x| ~< pi/4 */ + if ix <= uint32(0x3fe921fb) { + /* if |x| < 2**-27 * sqrt(2) */ + if ix < uint32(0x3e46a09e) { + /* raise inexact if x!=0 and underflow if subnormal */ + if uint64(8) == uint64(4) { + if ix < uint32(0x00100000) { + v1 = x3 / Float64FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } + y = float32(v1) + } else { + if uint64(8) == uint64(8) { + if ix < uint32(0x00100000) { + v1 = x3 / Float64FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } + y1 = v1 + } else { + if ix < uint32(0x00100000) { + v1 = x3 / Float64FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } + y2 = v1 + } + } + **(**float64)(__ccgo_up(sin)) = x3 + **(**float64)(__ccgo_up(cos)) = float64(1) + return + } + **(**float64)(__ccgo_up(sin)) = X__sin(tls, x3, float64(0), 0) + **(**float64)(__ccgo_up(cos)) = X__cos(tls, x3, float64(0)) + return + } + /* sincos(Inf or NaN) is NaN */ + if ix >= uint32(0x7ff00000) { + v1 = x3 - x3 + **(**float64)(__ccgo_up(cos)) = v1 + **(**float64)(__ccgo_up(sin)) = v1 + return + } + /* argument reduction needed */ + n = Uint32FromInt32(X__rem_pio2(tls, x3, bp)) + s = X__sin(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)], int32(1)) + c = X__cos(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)]) + switch n & Uint32FromInt32(3) { + case uint32(0): + **(**float64)(__ccgo_up(sin)) = s + **(**float64)(__ccgo_up(cos)) = c + case uint32(1): + **(**float64)(__ccgo_up(sin)) = c + **(**float64)(__ccgo_up(cos)) = -s + case uint32(2): + **(**float64)(__ccgo_up(sin)) = -s + **(**float64)(__ccgo_up(cos)) = -c + case uint32(3): + fallthrough + default: + **(**float64)(__ccgo_up(sin)) = -c + **(**float64)(__ccgo_up(cos)) = s + break + } +} + +const M_PI_25 = 1.5707963267948966 + +// C documentation +// +// /* Small multiples of pi/2 rounded to double precision. */ + +var _s1pio2 = float64(Float64FromInt32(1) * Float64FromFloat64(1.5707963267948966)) /* 0x3FF921FB, 0x54442D18 */ +var _s2pio2 = float64(Float64FromInt32(2) * Float64FromFloat64(1.5707963267948966)) /* 0x400921FB, 0x54442D18 */ +var _s3pio2 = float64(Float64FromInt32(3) * Float64FromFloat64(1.5707963267948966)) /* 0x4012D97C, 0x7F3321D2 */ +var _s4pio2 = float64(Float64FromInt32(4) * Float64FromFloat64(1.5707963267948966)) /* 0x401921FB, 0x54442D18 */ + +func Xsincosf(tls *TLS, x3 float32, sin uintptr, cos uintptr) { + if __ccgo_strace { + trc("tls=%v x3=%v sin=%v cos=%v, (%v:)", tls, x3, sin, cos, origin(2)) + } + bp := tls.Alloc(16) + defer tls.Free(16) + var c, s Tfloat_t + var ix Tuint32_t + var n, sign uint32 + var y, v1 float32 + var y1, y2, v4 float64 + var _ /* y at bp+0 */ float64 + _, _, _, _, _, _, _, _, _, _ = c, ix, n, s, sign, y, y1, y2, v1, v4 + ix = *(*Tuint32_t)(unsafe.Pointer(&x3)) + sign = ix >> int32(31) + ix = ix & uint32(0x7fffffff) + /* |x| ~<= pi/4 */ + if ix <= uint32(0x3f490fda) { + /* |x| < 2**-12 */ + if ix < uint32(0x39800000) { + /* raise inexact if x!=0 and underflow if subnormal */ + if uint64(4) == uint64(4) { + if ix < uint32(0x00100000) { + v1 = x3 / Float32FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float32FromFloat32(1.329227995784916e+36) + } + y = v1 + } else { + if uint64(4) == uint64(8) { + if ix < uint32(0x00100000) { + v1 = x3 / Float32FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float32FromFloat32(1.329227995784916e+36) + } + y1 = float64(v1) + } else { + if ix < uint32(0x00100000) { + v1 = x3 / Float32FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float32FromFloat32(1.329227995784916e+36) + } + y2 = float64(v1) + } + } + **(**float32)(__ccgo_up(sin)) = x3 + **(**float32)(__ccgo_up(cos)) = Float32FromFloat32(1) + return + } + **(**float32)(__ccgo_up(sin)) = X__sindf(tls, float64(x3)) + **(**float32)(__ccgo_up(cos)) = X__cosdf(tls, float64(x3)) + return + } + /* |x| ~<= 5*pi/4 */ + if ix <= uint32(0x407b53d1) { + if ix <= uint32(0x4016cbe3) { /* |x| ~<= 3pi/4 */ + if sign != 0 { + **(**float32)(__ccgo_up(sin)) = -X__cosdf(tls, float64(x3)+_s1pio2) + **(**float32)(__ccgo_up(cos)) = X__sindf(tls, float64(x3)+_s1pio2) + } else { + **(**float32)(__ccgo_up(sin)) = X__cosdf(tls, _s1pio2-float64(x3)) + **(**float32)(__ccgo_up(cos)) = X__sindf(tls, _s1pio2-float64(x3)) + } + return + } + /* -sin(x+c) is not correct if x+c could be 0: -0 vs +0 */ + if sign != 0 { + v4 = float64(x3) + _s2pio2 + } else { + v4 = float64(x3) - _s2pio2 + } + **(**float32)(__ccgo_up(sin)) = -X__sindf(tls, v4) + if sign != 0 { + v4 = float64(x3) + _s2pio2 + } else { + v4 = float64(x3) - _s2pio2 + } + **(**float32)(__ccgo_up(cos)) = -X__cosdf(tls, v4) + return + } + /* |x| ~<= 9*pi/4 */ + if ix <= uint32(0x40e231d5) { + if ix <= uint32(0x40afeddf) { /* |x| ~<= 7*pi/4 */ + if sign != 0 { + **(**float32)(__ccgo_up(sin)) = X__cosdf(tls, float64(x3)+_s3pio2) + **(**float32)(__ccgo_up(cos)) = -X__sindf(tls, float64(x3)+_s3pio2) + } else { + **(**float32)(__ccgo_up(sin)) = -X__cosdf(tls, float64(x3)-_s3pio2) + **(**float32)(__ccgo_up(cos)) = X__sindf(tls, float64(x3)-_s3pio2) + } + return + } + if sign != 0 { + v4 = float64(x3) + _s4pio2 + } else { + v4 = float64(x3) - _s4pio2 + } + **(**float32)(__ccgo_up(sin)) = X__sindf(tls, v4) + if sign != 0 { + v4 = float64(x3) + _s4pio2 + } else { + v4 = float64(x3) - _s4pio2 + } + **(**float32)(__ccgo_up(cos)) = X__cosdf(tls, v4) + return + } + /* sin(Inf or NaN) is NaN */ + if ix >= uint32(0x7f800000) { + v1 = x3 - x3 + **(**float32)(__ccgo_up(cos)) = v1 + **(**float32)(__ccgo_up(sin)) = v1 + return + } + /* general argument reduction needed */ + n = Uint32FromInt32(X__rem_pio2f(tls, x3, bp)) + s = X__sindf(tls, **(**float64)(__ccgo_up(bp))) + c = X__cosdf(tls, **(**float64)(__ccgo_up(bp))) + switch n & Uint32FromInt32(3) { + case uint32(0): + **(**float32)(__ccgo_up(sin)) = s + **(**float32)(__ccgo_up(cos)) = c + case uint32(1): + **(**float32)(__ccgo_up(sin)) = c + **(**float32)(__ccgo_up(cos)) = -s + case uint32(2): + **(**float32)(__ccgo_up(sin)) = -s + **(**float32)(__ccgo_up(cos)) = -c + case uint32(3): + fallthrough + default: + **(**float32)(__ccgo_up(sin)) = -c + **(**float32)(__ccgo_up(cos)) = s + break + } +} + +const M_PI_26 = 0 + +func Xsincosl(tls *TLS, x float64, sin uintptr, cos uintptr) { + if __ccgo_strace { + trc("tls=%v x=%v sin=%v cos=%v, (%v:)", tls, x, sin, cos, origin(2)) + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* cosd at bp+8 */ float64 + var _ /* sind at bp+0 */ float64 + Xsincos(tls, x, bp, bp+8) + **(**float64)(__ccgo_up(sin)) = float64(**(**float64)(__ccgo_up(bp))) + **(**float64)(__ccgo_up(cos)) = float64(**(**float64)(__ccgo_up(bp + 8))) +} + +const M_PI_27 = 1.5707963267948966 + +// C documentation +// +// /* Small multiples of pi/2 rounded to double precision. */ + +var _s1pio21 = float64(Float64FromInt32(1) * Float64FromFloat64(1.5707963267948966)) /* 0x3FF921FB, 0x54442D18 */ +var _s2pio21 = float64(Float64FromInt32(2) * Float64FromFloat64(1.5707963267948966)) /* 0x400921FB, 0x54442D18 */ +var _s3pio21 = float64(Float64FromInt32(3) * Float64FromFloat64(1.5707963267948966)) /* 0x4012D97C, 0x7F3321D2 */ +var _s4pio21 = float64(Float64FromInt32(4) * Float64FromFloat64(1.5707963267948966)) /* 0x401921FB, 0x54442D18 */ + +func Xsinf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ix Tuint32_t + var n, sign int32 + var y, v1 float32 + var y1, y2, v4 float64 + var _ /* y at bp+0 */ float64 + _, _, _, _, _, _, _, _ = ix, n, sign, y, y1, y2, v1, v4 + ix = *(*Tuint32_t)(unsafe.Pointer(&x3)) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix <= uint32(0x3f490fda) { /* |x| ~<= pi/4 */ + if ix < uint32(0x39800000) { /* |x| < 2**-12 */ + /* raise inexact if x!=0 and underflow if subnormal */ + if uint64(4) == uint64(4) { + if ix < uint32(0x00800000) { + v1 = x3 / Float32FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float32FromFloat32(1.329227995784916e+36) + } + y = v1 + } else { + if uint64(4) == uint64(8) { + if ix < uint32(0x00800000) { + v1 = x3 / Float32FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float32FromFloat32(1.329227995784916e+36) + } + y1 = float64(v1) + } else { + if ix < uint32(0x00800000) { + v1 = x3 / Float32FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float32FromFloat32(1.329227995784916e+36) + } + y2 = float64(v1) + } + } + return x3 + } + return X__sindf(tls, float64(x3)) + } + if ix <= uint32(0x407b53d1) { /* |x| ~<= 5*pi/4 */ + if ix <= uint32(0x4016cbe3) { /* |x| ~<= 3pi/4 */ + if sign != 0 { + return -X__cosdf(tls, float64(x3)+_s1pio21) + } else { + return X__cosdf(tls, float64(x3)-_s1pio21) + } + } + if sign != 0 { + v4 = -(float64(x3) + _s2pio21) + } else { + v4 = -(float64(x3) - _s2pio21) + } + return X__sindf(tls, v4) + } + if ix <= uint32(0x40e231d5) { /* |x| ~<= 9*pi/4 */ + if ix <= uint32(0x40afeddf) { /* |x| ~<= 7*pi/4 */ + if sign != 0 { + return X__cosdf(tls, float64(x3)+_s3pio21) + } else { + return -X__cosdf(tls, float64(x3)-_s3pio21) + } + } + if sign != 0 { + v4 = float64(x3) + _s4pio21 + } else { + v4 = float64(x3) - _s4pio21 + } + return X__sindf(tls, v4) + } + /* sin(Inf or NaN) is NaN */ + if ix >= uint32(0x7f800000) { + return x3 - x3 + } + /* general argument reduction needed */ + n = X__rem_pio2f(tls, x3, bp) + switch n & Int32FromInt32(3) { + case 0: + return X__sindf(tls, **(**float64)(__ccgo_up(bp))) + case int32(1): + return X__cosdf(tls, **(**float64)(__ccgo_up(bp))) + case int32(2): + return X__sindf(tls, -**(**float64)(__ccgo_up(bp))) + default: + return -X__cosdf(tls, **(**float64)(__ccgo_up(bp))) + } + return r +} + +const M_PI_28 = 0 + +// C documentation +// +// /* sinh(x) = (exp(x) - 1/exp(x))/2 +// * = (exp(x)-1 + (exp(x)-1)/exp(x))/2 +// * = x + x^3/6 + o(x^5) +// */ +func Xsinh(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var absx, h, t float64 + var w Tuint32_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _ = absx, h, t, w + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + h = float64(0.5) + if *(*Tuint64_t)(unsafe.Pointer(bp))>>int32(63) != 0 { + h = -h + } + /* |x| */ + *(*Tuint64_t)(unsafe.Pointer(bp)) &= Uint64FromInt32(-Int32FromInt32(1)) / Uint64FromInt32(2) + absx = *(*float64)(unsafe.Pointer(bp)) + w = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32)) + /* |x| < log(DBL_MAX) */ + if w < uint32(0x40862e42) { + t = Xexpm1(tls, absx) + if w < uint32(0x3ff00000) { + if w < Uint32FromInt32(Int32FromInt32(0x3ff00000)-Int32FromInt32(26)<log(0x1p26)+eps could be just h*exp(x) */ + return float64(h * (t + t/(t+Float64FromInt32(1)))) + } + /* |x| > log(DBL_MAX) or nan */ + /* note: the result is stored to handle overflow */ + t = X__expo2(tls, absx, float64(Float64FromInt32(2)*h)) + return t +} + +func Xsinhf(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var absx, h, t float32 + var w Tuint32_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _ = absx, h, t, w + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + h = float32(0.5) + if *(*Tuint32_t)(unsafe.Pointer(bp))>>int32(31) != 0 { + h = -h + } + /* |x| */ + *(*Tuint32_t)(unsafe.Pointer(bp)) &= uint32(0x7fffffff) + absx = *(*float32)(unsafe.Pointer(bp)) + w = *(*Tuint32_t)(unsafe.Pointer(bp)) + /* |x| < log(FLT_MAX) */ + if w < uint32(0x42b17217) { + t = Xexpm1f(tls, absx) + if w < uint32(0x3f800000) { + if w < Uint32FromInt32(Int32FromInt32(0x3f800000)-Int32FromInt32(12)< logf(FLT_MAX) or nan */ + t = X__expo2f(tls, absx, float32(Float32FromInt32(2)*h)) + return t +} + +func Xsinhl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xsinh(tls, x) +} + +func Xsinl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xsin(tls, x) +} + +const FENV_SUPPORT = 1 + +// C documentation +// +// /* returns a*b*2^-32 - e, with error 0 <= e < 1. */ +func _mul32(tls *TLS, a Tuint32_t, b Tuint32_t) (r Tuint32_t) { + return uint32(uint64(a) * uint64(b) >> int32(32)) +} + +// C documentation +// +// /* returns a*b*2^-64 - e, with error 0 <= e < 3. */ +func _mul64(tls *TLS, a Tuint64_t, b Tuint64_t) (r Tuint64_t) { + var ahi, alo, bhi, blo Tuint64_t + _, _, _, _ = ahi, alo, bhi, blo + ahi = a >> int32(32) + alo = a & uint64(0xffffffff) + bhi = b >> int32(32) + blo = b & uint64(0xffffffff) + return ahi*bhi + ahi*blo>>int32(32) + alo*bhi>>int32(32) +} + +func Xsqrt(tls *TLS, x1 float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x1=%v, (%v:)", tls, x1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var d, d0, d1, d2, i, ix, m, r, s, tiny, top, u Tuint64_t + var even int32 + var t, y, y1, v1 float64 + var v2 int64 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = d, d0, d1, d2, even, i, ix, m, r, s, t, tiny, top, u, y, y1, v1, v2 + /* special case handling. */ + ix = *(*Tuint64_t)(unsafe.Pointer(&x1)) + top = ix >> int32(52) + if top-uint64(0x001) >= Uint64FromInt32(Int32FromInt32(0x7ff)-Int32FromInt32(0x001)) { + /* x < 0x1p-1022 or inf or nan. */ + if ix*uint64(2) == uint64(0) { + return x1 + } + if ix == uint64(0x7ff0000000000000) { + return x1 + } + if ix > uint64(0x7ff0000000000000) { + return X__math_invalid(tls, x1) + } + /* x is subnormal, normalize it. */ + v1 = float64(x1 * float64(4.503599627370496e+15)) + ix = *(*Tuint64_t)(unsafe.Pointer(&v1)) + top = ix >> int32(52) + top = top - uint64(52) + } + /* argument reduction: + x = 4^e m; with integer e, and m in [1, 4) + m: fixed point representation [2.62] + 2^e is the exponent part of the result. */ + even = Int32FromUint64(top & uint64(1)) + m = ix<> uint64(1) + } + top = (top + uint64(0x3ff)) >> int32(1) + i = ix >> Int32FromInt32(46) % uint64(128) + r = uint64(uint32(X__rsqrt_tab[i]) << int32(16)) + /* |r sqrt(m) - 1| < 0x1.fdp-9 */ + s = uint64(_mul32(tls, uint32(m>>int32(32)), uint32(r))) + /* |s/sqrt(m) - 1| < 0x1.fdp-9 */ + d = uint64(_mul32(tls, uint32(s), uint32(r))) + u = _three - d + r = uint64(_mul32(tls, uint32(r), uint32(u)) << int32(1)) + /* |r sqrt(m) - 1| < 0x1.7bp-16 */ + s = uint64(_mul32(tls, uint32(s), uint32(u)) << int32(1)) + /* |s/sqrt(m) - 1| < 0x1.7bp-16 */ + d = uint64(_mul32(tls, uint32(s), uint32(r))) + u = _three - d + r = uint64(_mul32(tls, uint32(r), uint32(u)) << int32(1)) + /* |r sqrt(m) - 1| < 0x1.3704p-29 (measured worst-case) */ + r = r << int32(32) + s = _mul64(tls, m, r) + d = _mul64(tls, s, r) + u = _three<> int32(9) + d0 = m<>int32(63) + s = s & uint64(0x000fffffffffffff) + s = s | top<=13bit table would be needed (16k). + + a newton-raphson iteration for r is + w = r*r + u = 3 - m*w + r = r*u/2 + can use a goldschmidt iteration for s at the end or + s = m*r + + first goldschmidt iteration is + s = m*r + u = 3 - s*r + r = r*u/2 + s = s*u/2 + next goldschmidt iteration is + u = 3 - s*r + r = r*u/2 + s = s*u/2 + and at the end r is not computed only s. + + they use the same amount of operations and converge at the + same quadratic rate, i.e. if + r1 sqrt(m) - 1 = e, then + r2 sqrt(m) - 1 = -3/2 e^2 - 1/2 e^3 + the advantage of goldschmidt is that the mul for s and r + are independent (computed in parallel), however it is not + "self synchronizing": it only uses the input m in the + first iteration so rounding errors accumulate. at the end + or when switching to larger precision arithmetics rounding + errors dominate so the first iteration should be used. + + the fixed point representations are + m: 2.30 r: 0.32, s: 2.30, d: 2.30, u: 2.30, three: 2.30 + and after switching to 64 bit + m: 2.62 r: 0.64, s: 2.62, d: 2.62, u: 2.62, three: 2.62 */ + +var _three = uint64(0xc0000000) + +func _mul321(tls *TLS, a Tuint32_t, b Tuint32_t) (r Tuint32_t) { + return uint32(uint64(a) * uint64(b) >> int32(32)) +} + +/* see sqrt.c for more detailed comments. */ + +func Xsqrtf(tls *TLS, x1 float32) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x1=%v, (%v:)", tls, x1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var d, d0, d1, d2, even, ey, i, ix, m, m0, m1, r, s, tiny, u Tuint32_t + var t, y, y1, v1 float32 + var v2 uint32 + var v3 int32 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = d, d0, d1, d2, even, ey, i, ix, m, m0, m1, r, s, t, tiny, u, y, y1, v1, v2, v3 + ix = *(*Tuint32_t)(unsafe.Pointer(&x1)) + if ix-uint32(0x00800000) >= Uint32FromInt32(Int32FromInt32(0x7f800000)-Int32FromInt32(0x00800000)) { + /* x < 0x1p-126 or inf or nan. */ + if ix*uint32(2) == uint32(0) { + return x1 + } + if ix == uint32(0x7f800000) { + return x1 + } + if ix > uint32(0x7f800000) { + return X__math_invalidf(tls, x1) + } + /* x is subnormal, normalize it. */ + v1 = float32(x1 * Float32FromFloat32(8.388608e+06)) + ix = *(*Tuint32_t)(unsafe.Pointer(&v1)) + ix = ix - Uint32FromInt32(Int32FromInt32(23)<> int32(1) + ey = ey + Uint32FromInt32(Int32FromInt32(0x3f800000)>>Int32FromInt32(1)) + ey = ey & uint32(0x7f800000) + i = ix >> Int32FromInt32(17) % uint32(128) + r = uint32(X__rsqrt_tab[i]) << int32(16) + /* |r*sqrt(m) - 1| < 0x1p-8 */ + s = _mul321(tls, m, r) + /* |s/sqrt(m) - 1| < 0x1p-8 */ + d = _mul321(tls, s, r) + u = _three1 - d + r = _mul321(tls, r, u) << int32(1) + /* |r*sqrt(m) - 1| < 0x1.7bp-16 */ + s = _mul321(tls, s, u) << int32(1) + /* |s/sqrt(m) - 1| < 0x1.7bp-16 */ + d = _mul321(tls, s, r) + u = _three1 - d + s = _mul321(tls, s, u) + /* -0x1.03p-28 < s/sqrt(m) - 1 < 0x1.fp-31 */ + s = (s - uint32(1)) >> int32(6) + d0 = m<>int32(31) + s = s & uint32(0x007fffff) + s = s | ey + y1 = *(*float32)(unsafe.Pointer(&s)) + if int32(FENV_SUPPORT) != 0 { + if d2 == uint32(0) { + v3 = 0 + } else { + v3 = int32(0x01000000) + } + /* handle rounding and inexact exception. */ + tiny = Uint32FromInt32(v3) + tiny = tiny | (d1^d2)&uint32(0x80000000) + t = *(*float32)(unsafe.Pointer(&tiny)) + y = y1 + t + v1 = y + goto _5 + _5: + y1 = v1 + } + return y1 +} + +/* compute r ~ 1/sqrt(m), s ~ sqrt(m) with 2 goldschmidt iterations. */ +var _three1 = uint32(0xc0000000) + +func Xsqrtl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xsqrt(tls, x) +} + +func Xtan(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ix Tuint32_t + var n uint32 + var y float32 + var y1, y2, v1 float64 + var _ /* y at bp+0 */ [2]float64 + _, _, _, _, _, _ = ix, n, y, y1, y2, v1 + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x3)) >> int32(32)) + ix = ix & uint32(0x7fffffff) + /* |x| ~< pi/4 */ + if ix <= uint32(0x3fe921fb) { + if ix < uint32(0x3e400000) { /* |x| < 2**-27 */ + /* raise inexact if x!=0 and underflow if subnormal */ + if uint64(8) == uint64(4) { + if ix < uint32(0x00100000) { + v1 = x3 / Float64FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } + y = float32(v1) + } else { + if uint64(8) == uint64(8) { + if ix < uint32(0x00100000) { + v1 = x3 / Float64FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } + y1 = v1 + } else { + if ix < uint32(0x00100000) { + v1 = x3 / Float64FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } + y2 = v1 + } + } + return x3 + } + return X__tan(tls, x3, float64(0), 0) + } + /* tan(Inf or NaN) is NaN */ + if ix >= uint32(0x7ff00000) { + return x3 - x3 + } + /* argument reduction */ + n = Uint32FromInt32(X__rem_pio2(tls, x3, bp)) + return X__tan(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)], Int32FromUint32(n&uint32(1))) +} + +const M_PI_29 = 1.5707963267948966 + +// C documentation +// +// /* Small multiples of pi/2 rounded to double precision. */ + +var _t1pio2 = float64(Float64FromInt32(1) * Float64FromFloat64(1.5707963267948966)) /* 0x3FF921FB, 0x54442D18 */ +var _t2pio2 = float64(Float64FromInt32(2) * Float64FromFloat64(1.5707963267948966)) /* 0x400921FB, 0x54442D18 */ +var _t3pio2 = float64(Float64FromInt32(3) * Float64FromFloat64(1.5707963267948966)) /* 0x4012D97C, 0x7F3321D2 */ +var _t4pio2 = float64(Float64FromInt32(4) * Float64FromFloat64(1.5707963267948966)) /* 0x401921FB, 0x54442D18 */ + +func Xtanf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ix Tuint32_t + var n, sign uint32 + var y, v1 float32 + var y1, y2, v4 float64 + var _ /* y at bp+0 */ float64 + _, _, _, _, _, _, _, _ = ix, n, sign, y, y1, y2, v1, v4 + ix = *(*Tuint32_t)(unsafe.Pointer(&x3)) + sign = ix >> int32(31) + ix = ix & uint32(0x7fffffff) + if ix <= uint32(0x3f490fda) { /* |x| ~<= pi/4 */ + if ix < uint32(0x39800000) { /* |x| < 2**-12 */ + /* raise inexact if x!=0 and underflow if subnormal */ + if uint64(4) == uint64(4) { + if ix < uint32(0x00800000) { + v1 = x3 / Float32FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float32FromFloat32(1.329227995784916e+36) + } + y = v1 + } else { + if uint64(4) == uint64(8) { + if ix < uint32(0x00800000) { + v1 = x3 / Float32FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float32FromFloat32(1.329227995784916e+36) + } + y1 = float64(v1) + } else { + if ix < uint32(0x00800000) { + v1 = x3 / Float32FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float32FromFloat32(1.329227995784916e+36) + } + y2 = float64(v1) + } + } + return x3 + } + return X__tandf(tls, float64(x3), 0) + } + if ix <= uint32(0x407b53d1) { /* |x| ~<= 5*pi/4 */ + if ix <= uint32(0x4016cbe3) { /* |x| ~<= 3pi/4 */ + if sign != 0 { + v4 = float64(x3) + _t1pio2 + } else { + v4 = float64(x3) - _t1pio2 + } + return X__tandf(tls, v4, int32(1)) + } else { + if sign != 0 { + v4 = float64(x3) + _t2pio2 + } else { + v4 = float64(x3) - _t2pio2 + } + return X__tandf(tls, v4, 0) + } + } + if ix <= uint32(0x40e231d5) { /* |x| ~<= 9*pi/4 */ + if ix <= uint32(0x40afeddf) { /* |x| ~<= 7*pi/4 */ + if sign != 0 { + v4 = float64(x3) + _t3pio2 + } else { + v4 = float64(x3) - _t3pio2 + } + return X__tandf(tls, v4, int32(1)) + } else { + if sign != 0 { + v4 = float64(x3) + _t4pio2 + } else { + v4 = float64(x3) - _t4pio2 + } + return X__tandf(tls, v4, 0) + } + } + /* tan(Inf or NaN) is NaN */ + if ix >= uint32(0x7f800000) { + return x3 - x3 + } + /* argument reduction */ + n = Uint32FromInt32(X__rem_pio2f(tls, x3, bp)) + return X__tandf(tls, **(**float64)(__ccgo_up(bp)), Int32FromUint32(n&uint32(1))) +} + +const M_PI_210 = 0 + +// C documentation +// +// /* tanh(x) = (exp(x) - exp(-x))/(exp(x) + exp(-x)) +// * = (exp(2*x) - 1)/(exp(2*x) - 1 + 2) +// * = (1 - exp(-2*x))/(exp(-2*x) - 1 + 2) +// */ +func Xtanh(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var sign int32 + var t, v1 Tdouble_t + var w Tuint32_t + var y float32 + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _ = sign, t, w, y, y1, y2, v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + /* x = |x| */ + sign = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(63)) + *(*Tuint64_t)(unsafe.Pointer(bp)) &= Uint64FromInt32(-Int32FromInt32(1)) / Uint64FromInt32(2) + x3 = *(*float64)(unsafe.Pointer(bp)) + w = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32)) + if w > uint32(0x3fe193ea) { + /* |x| > log(3)/2 ~= 0.5493 or nan */ + if w > uint32(0x40340000) { + /* |x| > 20 or nan */ + /* note: this branch avoids raising overflow */ + t = Float64FromInt32(1) - Float64FromInt32(0)/x3 + } else { + t = Xexpm1(tls, float64(Float64FromInt32(2)*x3)) + t = Float64FromInt32(1) - Float64FromInt32(2)/(t+Float64FromInt32(2)) + } + } else { + if w > uint32(0x3fd058ae) { + /* |x| > log(5/3)/2 ~= 0.2554 */ + t = Xexpm1(tls, float64(Float64FromInt32(2)*x3)) + t = t / (t + Float64FromInt32(2)) + } else { + if w >= uint32(0x00100000) { + /* |x| >= 0x1p-1022, up to 2ulp error in [0.1,0.2554] */ + t = Xexpm1(tls, float64(float64(-Int32FromInt32(2))*x3)) + t = -t / (t + Float64FromInt32(2)) + } else { + /* |x| is subnormal */ + /* note: the branch above would not raise underflow in [0x1p-1023,0x1p-1022) */ + if uint64(4) == uint64(4) { + y = float32(x3) + } else { + if uint64(4) == uint64(8) { + y1 = float64(float32(x3)) + } else { + y2 = float64(float32(x3)) + } + } + t = x3 + } + } + } + if sign != 0 { + v1 = -t + } else { + v1 = t + } + return v1 +} + +func Xtanhf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var sign int32 + var t, y, v1 float32 + var w Tuint32_t + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _, _ = sign, t, w, y, y1, y2, v1 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + /* x = |x| */ + sign = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(31)) + *(*Tuint32_t)(unsafe.Pointer(bp)) &= uint32(0x7fffffff) + x3 = *(*float32)(unsafe.Pointer(bp)) + w = *(*Tuint32_t)(unsafe.Pointer(bp)) + if w > uint32(0x3f0c9f54) { + /* |x| > log(3)/2 ~= 0.5493 or nan */ + if w > uint32(0x41200000) { + /* |x| > 10 */ + t = Float32FromInt32(1) + Float32FromInt32(0)/x3 + } else { + t = Xexpm1f(tls, float32(Float32FromInt32(2)*x3)) + t = Float32FromInt32(1) - Float32FromInt32(2)/(t+Float32FromInt32(2)) + } + } else { + if w > uint32(0x3e82c578) { + /* |x| > log(5/3)/2 ~= 0.2554 */ + t = Xexpm1f(tls, float32(Float32FromInt32(2)*x3)) + t = t / (t + Float32FromInt32(2)) + } else { + if w >= uint32(0x00800000) { + /* |x| >= 0x1p-126 */ + t = Xexpm1f(tls, float32(float32(-Int32FromInt32(2))*x3)) + t = -t / (t + Float32FromInt32(2)) + } else { + /* |x| is subnormal */ + if uint64(4) == uint64(4) { + y = float32(x3 * x3) + } else { + if uint64(4) == uint64(8) { + y1 = float64(x3 * x3) + } else { + y2 = float64(x3 * x3) + } + } + t = x3 + } + } + } + if sign != 0 { + v1 = -t + } else { + v1 = t + } + return v1 +} + +func Xtanhl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xtanh(tls, x) +} + +func Xtanl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xtan(tls, x) +} + +const N10 = 12 + +var _pi4 = float64(3.141592653589793) + +// C documentation +// +// /* sin(pi x) with x > 0x1p-100, if sin(pi*x)==0 the sign is arbitrary */ +func _sinpi(tls *TLS, x float64) (r float64) { + var n int32 + _ = n + /* argument reduction: x = |x| mod 2 */ + /* spurious inexact when x is odd int */ + x = float64(x * float64(0.5)) + x = float64(Float64FromInt32(2) * (x - Xfloor(tls, x))) + /* reduce x into [-.25,.25] */ + n = int32(Float64FromInt32(4) * x) + n = (n + int32(1)) / int32(2) + x = x - float64(float64(n)*float64(0.5)) + x = x * _pi4 + switch n { + default: /* case 4 */ + fallthrough + case 0: + return X__sin(tls, x, Float64FromInt32(0), 0) + case int32(1): + return X__cos(tls, x, Float64FromInt32(0)) + case int32(2): + return X__sin(tls, -x, Float64FromInt32(0), 0) + case int32(3): + return -X__cos(tls, x, Float64FromInt32(0)) + } + return r +} + +// C documentation +// +// //static const double g = 6.024680040776729583740234375; +var _gmhalf = float64(5.52468004077673) +var _Snum = [13]float64{ + 0: float64(2.353137688041076e+10), + 1: float64(4.29198036426491e+10), + 2: float64(3.571195923735567e+10), + 3: float64(1.792103442603721e+10), + 4: float64(6.039542586352028e+09), + 5: float64(1.4397204073117216e+09), + 6: float64(2.4887455786205417e+08), + 7: float64(3.1426415585400194e+07), + 8: float64(2.8763706289353725e+06), + 9: float64(186056.26539522348), + 10: float64(8071.672002365816), + 11: float64(210.82427775157936), + 12: float64(2.5066282746310002), +} +var _Sden = [13]float64{ + 1: Float64FromInt32(39916800), + 2: Float64FromInt32(120543840), + 3: Float64FromInt32(150917976), + 4: Float64FromInt32(105258076), + 5: Float64FromInt32(45995730), + 6: Float64FromInt32(13339535), + 7: Float64FromInt32(2637558), + 8: Float64FromInt32(357423), + 9: Float64FromInt32(32670), + 10: Float64FromInt32(1925), + 11: Float64FromInt32(66), + 12: Float64FromInt32(1), +} + +// C documentation +// +// /* n! for small integer n */ +var _fact = [23]float64{ + 0: Float64FromInt32(1), + 1: Float64FromInt32(1), + 2: Float64FromInt32(2), + 3: Float64FromInt32(6), + 4: Float64FromInt32(24), + 5: Float64FromInt32(120), + 6: Float64FromInt32(720), + 7: float64(5040), + 8: float64(40320), + 9: float64(362880), + 10: float64(3.6288e+06), + 11: float64(3.99168e+07), + 12: float64(4.790016e+08), + 13: float64(6.2270208e+09), + 14: float64(8.71782912e+10), + 15: float64(1.307674368e+12), + 16: float64(2.0922789888e+13), + 17: float64(3.55687428096e+14), + 18: float64(6.402373705728e+15), + 19: float64(1.21645100408832e+17), + 20: float64(2.43290200817664e+18), + 21: float64(5.109094217170944e+19), + 22: float64(1.1240007277776077e+21), +} + +// C documentation +// +// /* S(x) rational function for positive x */ +func _S(tls *TLS, x float64) (r float64) { + var den, num Tdouble_t + var i int32 + _, _, _ = den, i, num + num = Float64FromInt32(0) + den = Float64FromInt32(0) + /* to avoid overflow handle large x differently */ + if x < Float64FromInt32(8) { + i = int32(N10) + for { + if !(i >= 0) { + break + } + num = Tdouble_t(num*x) + _Snum[i] + den = Tdouble_t(den*x) + _Sden[i] + goto _1 + _1: + ; + i = i - 1 + } + } else { + i = 0 + for { + if !(i <= int32(N10)) { + break + } + num = num/x + _Snum[i] + den = den/x + _Sden[i] + goto _2 + _2: + ; + i = i + 1 + } + } + return num / den +} + +func Xtgamma(tls *TLS, x3 float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var absx, y1, y2, y3, v1 float64 + var dy, r, z Tdouble_t + var ix Tuint32_t + var sign int32 + var y float32 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _, _, _, _, _ = absx, dy, ix, r, sign, y, y1, y2, y3, z, v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32) & uint64(0x7fffffff)) + sign = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(63)) + /* special cases */ + if ix >= uint32(0x7ff00000) { + /* tgamma(nan)=nan, tgamma(inf)=inf, tgamma(-inf)=nan with invalid */ + return x3 + float64(X__builtin_inff(tls)) + } + if ix < Uint32FromInt32((Int32FromInt32(0x3ff)-Int32FromInt32(54))<= 172: tgamma(x)=inf with overflow */ + /* x =< -184: tgamma(x)=+-0 with underflow */ + if ix >= uint32(0x40670000) { /* |x| >= 184 */ + if sign != 0 { + if uint64(4) == uint64(4) { + y = float32(Float64FromFloat64(1.1754943508222875e-38) / x3) + } else { + if uint64(4) == uint64(8) { + y1 = float64(float32(Float64FromFloat64(1.1754943508222875e-38) / x3)) + } else { + y2 = float64(float32(Float64FromFloat64(1.1754943508222875e-38) / x3)) + } + } + if float64(Xfloor(tls, x3)*float64(0.5)) == Xfloor(tls, float64(x3*float64(0.5))) { + return Float64FromInt32(0) + } + return -Float64FromFloat64(0) + } + x3 = x3 * float64(8.98846567431158e+307) + return x3 + } + if sign != 0 { + v1 = -x3 + } else { + v1 = x3 + } + absx = v1 + /* handle the error of x + g - 0.5 */ + y3 = absx + _gmhalf + if absx > _gmhalf { + dy = y3 - absx + dy = dy - _gmhalf + } else { + dy = y3 - _gmhalf + dy = dy - absx + } + z = absx - float64(0.5) + r = Tdouble_t(_S(tls, absx) * Xexp(tls, -y3)) + if x3 < Float64FromInt32(0) { + /* reflection formula for negative x */ + /* sinpi(absx) is not 0, integers are already handled */ + r = -_pi4 / float64(float64(_sinpi(tls, absx)*absx)*r) + dy = -dy + z = -z + } + r = r + Tdouble_t(Tdouble_t(dy*(_gmhalf+Float64FromFloat64(0.5)))*r)/y3 + z = Xpow(tls, y3, float64(float64(0.5)*z)) + y3 = float64(Tdouble_t(r*z) * z) + return y3 +} + +func Xtgammaf(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return float32(Xtgamma(tls, float64(x))) +} + +func Xtgammal(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xtgamma(tls, x) +} + +func Xtrunc(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e int32 + var m Tuint64_t + var y float32 + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _ = e, m, y, y1, y2 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + e = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp))>>Int32FromInt32(52)&Uint64FromInt32(0x7ff)) - int32(0x3ff) + int32(12) + if e >= Int32FromInt32(52)+Int32FromInt32(12) { + return x3 + } + if e < int32(12) { + e = int32(1) + } + m = uint64(-Uint64FromUint64(1) >> e) + if *(*Tuint64_t)(unsafe.Pointer(bp))&m == uint64(0) { + return x3 + } + if uint64(8) == uint64(4) { + y = float32(x3 + Float64FromFloat32(1.329227995784916e+36)) + } else { + if uint64(8) == uint64(8) { + y1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } else { + y2 = float64(x3 + Float64FromFloat32(1.329227995784916e+36)) + } + } + *(*Tuint64_t)(unsafe.Pointer(bp)) &= ^m + return *(*float64)(unsafe.Pointer(bp)) +} + +func Xtruncf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e int32 + var m Tuint32_t + var y float32 + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _ = e, m, y, y1, y2 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + e = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp))>>Int32FromInt32(23)&Uint32FromInt32(0xff)) - int32(0x7f) + int32(9) + if e >= Int32FromInt32(23)+Int32FromInt32(9) { + return x3 + } + if e < int32(9) { + e = int32(1) + } + m = -Uint32FromUint32(1) >> e + if *(*Tuint32_t)(unsafe.Pointer(bp))&m == uint32(0) { + return x3 + } + if uint64(4) == uint64(4) { + y = x3 + Float32FromFloat32(1.329227995784916e+36) + } else { + if uint64(4) == uint64(8) { + y1 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } else { + y2 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } + } + *(*Tuint32_t)(unsafe.Pointer(bp)) &= ^m + return *(*float32)(unsafe.Pointer(bp)) +} + +func Xtruncl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xtrunc(tls, x) +} + +var _digits = [65]uint8{'.', '/', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'} + +func Xa64l(tls *TLS, s uintptr) (r int64) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var d uintptr + var e int32 + var x Tuint32_t + _, _, _ = d, e, x + x = uint32(0) + e = 0 + for { + if !(e < int32(36) && **(**uint8)(__ccgo_up(s)) != 0) { + break + } + d = Xstrchr(tls, uintptr(unsafe.Pointer(&_digits)), Int32FromUint8(**(**uint8)(__ccgo_up(s)))) + if !(d != 0) { + break + } + x = x | Uint32FromInt64(int64(d)-t__predefined_ptrdiff_t(uintptr(unsafe.Pointer(&_digits))))< %v", r) }() + } + var p uintptr + var x Tuint32_t + _, _ = p, x + x = Uint32FromInt64(x0) + p = uintptr(unsafe.Pointer(&_s)) + for { + if !(x != 0) { + break + } + **(**uint8)(__ccgo_up(p)) = _digits[x&uint32(63)] + goto _1 + _1: + ; + p = p + 1 + x = x >> uint32(6) + } + **(**uint8)(__ccgo_up(p)) = uint8(0) + return uintptr(unsafe.Pointer(&_s)) +} + +var _s [7]uint8 + +func Xbasename(tls *TLS, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var i Tsize_t + _ = i + if !(s != 0) || !(**(**uint8)(__ccgo_up(s)) != 0) { + return __ccgo_ts + 607 + } + i = _strlen(tls, s) - uint64(1) + for { + if !(i != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(i)))) == int32('/')) { + break + } + **(**uint8)(__ccgo_up(s + uintptr(i))) = uint8(0) + goto _1 + _1: + ; + i = i - 1 + } + for { + if !(i != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(i-uint64(1))))) != int32('/')) { + break + } + goto _2 + _2: + ; + i = i - 1 + } + return s + uintptr(i) +} + +func X__xpg_basename(tls *TLS, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xbasename(tls, s) +} + +func Xdirname(tls *TLS, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var i Tsize_t + _ = i + if !(s != 0) || !(**(**uint8)(__ccgo_up(s)) != 0) { + return __ccgo_ts + 607 + } + i = _strlen(tls, s) - uint64(1) + for { + if !(Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(i)))) == int32('/')) { + break + } + if !(i != 0) { + return __ccgo_ts + 615 + } + goto _1 + _1: + ; + i = i - 1 + } + for { + if !(Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(i)))) != int32('/')) { + break + } + if !(i != 0) { + return __ccgo_ts + 607 + } + goto _2 + _2: + ; + i = i - 1 + } + for { + if !(Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(i)))) == int32('/')) { + break + } + if !(i != 0) { + return __ccgo_ts + 615 + } + goto _3 + _3: + ; + i = i - 1 + } + **(**uint8)(__ccgo_up(s + uintptr(i+uint64(1)))) = uint8(0) + return s +} + +func Xffs(tls *TLS, i int32) (r int32) { + if __ccgo_strace { + trc("tls=%v i=%v, (%v:)", tls, i, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + _ = v1 + if i != 0 { + v1 = _a_ctz_l(tls, Uint64FromInt32(i)) + int32(1) + } else { + v1 = 0 + } + return v1 +} + +func Xffsl(tls *TLS, i int64) (r int32) { + if __ccgo_strace { + trc("tls=%v i=%v, (%v:)", tls, i, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + _ = v1 + if i != 0 { + v1 = _a_ctz_l(tls, Uint64FromInt64(i)) + int32(1) + } else { + v1 = 0 + } + return v1 +} + +func Xffsll(tls *TLS, i int64) (r int32) { + if __ccgo_strace { + trc("tls=%v i=%v, (%v:)", tls, i, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + _ = v1 + if i != 0 { + v1 = _a_ctz_64(tls, Uint64FromInt64(i)) + int32(1) + } else { + v1 = 0 + } + return v1 +} + +const MM_APPL = 8 +const MM_CONSOLE = 512 +const MM_ERROR = 2 +const MM_FIRM = 4 +const MM_HALT = 1 +const MM_HARD = 1 +const MM_INFO = 4 +const MM_NOCON = 4 +const MM_NOMSG = 1 +const MM_NOSEV = 0 +const MM_NOTOK = -1 +const MM_NRECOV = 128 +const MM_NULLMC = 0 +const MM_NULLSEV = 0 +const MM_OK = 0 +const MM_OPSYS = 32 +const MM_PRINT = 256 +const MM_RECOVER = 64 +const MM_SOFT = 2 +const MM_UTIL = 16 +const MM_WARNING = 3 + +// C documentation +// +// /* +// * If lstr is the first part of bstr, check that the next char in bstr +// * is either \0 or : +// */ +func __strcolcmp(tls *TLS, lstr uintptr, bstr uintptr) (r int32) { + var i Tsize_t + _ = i + i = uint64(0) + for **(**uint8)(__ccgo_up(lstr + uintptr(i))) != 0 && **(**uint8)(__ccgo_up(bstr + uintptr(i))) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(bstr + uintptr(i)))) == Int32FromUint8(**(**uint8)(__ccgo_up(lstr + uintptr(i)))) { + i = i + 1 + } + if **(**uint8)(__ccgo_up(lstr + uintptr(i))) != 0 || **(**uint8)(__ccgo_up(bstr + uintptr(i))) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(bstr + uintptr(i)))) != int32(':') { + return int32(1) + } + return 0 +} + +func Xfmtmsg(tls *TLS, classification int64, label uintptr, severity int32, text uintptr, action uintptr, tag uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v classification=%v label=%v severity=%v text=%v action=%v tag=%v, (%v:)", tls, classification, label, severity, text, action, tag, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(80) + defer tls.Free(80) + var cmsg, errstring, v1, v2, v3, v4, v5, v6, v7, v8 uintptr + var consolefd, i, ret, verb int32 + var msgs [6]uintptr + var _ /* cs at bp+0 */ int32 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = cmsg, consolefd, errstring, i, msgs, ret, verb, v1, v2, v3, v4, v5, v6, v7, v8 + ret = 0 + verb = 0 + errstring = uintptr(MM_NULLSEV) + cmsg = Xgetenv(tls, __ccgo_ts+617) + msgs = [6]uintptr{ + 0: __ccgo_ts + 625, + 1: __ccgo_ts + 631, + 2: __ccgo_ts + 640, + 3: __ccgo_ts + 645, + 4: __ccgo_ts + 652, + 5: UintptrFromInt32(0), + } + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp) + if severity == int32(MM_HALT) { + errstring = __ccgo_ts + 656 + } else { + if severity == int32(MM_ERROR) { + errstring = __ccgo_ts + 663 + } else { + if severity == int32(MM_WARNING) { + errstring = __ccgo_ts + 671 + } else { + if severity == int32(MM_INFO) { + errstring = __ccgo_ts + 681 + } + } + } + } + if classification&int64(MM_CONSOLE) != 0 { + consolefd = Xopen(tls, __ccgo_ts+688, int32(O_WRONLY), 0) + if consolefd < 0 { + ret = int32(MM_NOCON) + } else { + if label != 0 { + v1 = label + } else { + v1 = __ccgo_ts + } + if label != 0 { + v2 = __ccgo_ts + 289 + } else { + v2 = __ccgo_ts + } + if severity != 0 { + v3 = errstring + } else { + v3 = __ccgo_ts + } + if text != 0 { + v4 = text + } else { + v4 = __ccgo_ts + } + if action != 0 { + v5 = __ccgo_ts + 701 + } else { + v5 = __ccgo_ts + } + if action != 0 { + v6 = action + } else { + v6 = __ccgo_ts + } + if action != 0 { + v7 = __ccgo_ts + 711 + } else { + v7 = __ccgo_ts + } + if tag != 0 { + v8 = tag + } else { + v8 = __ccgo_ts + } + if Xdprintf(tls, consolefd, __ccgo_ts+713, VaList(bp+16, v1, v2, v3, v4, v5, v6, v7, v8)) < int32(1) { + ret = int32(MM_NOCON) + } + Xclose(tls, consolefd) + } + } + if classification&int64(MM_PRINT) != 0 { + for cmsg != 0 && **(**uint8)(__ccgo_up(cmsg)) != 0 { + i = 0 + for { + if !(msgs[i] != 0) { + break + } + if !(__strcolcmp(tls, msgs[i], cmsg) != 0) { + break + } + goto _9 + _9: + ; + i = i + 1 + } + if msgs[i] == UintptrFromInt32(0) { + //ignore MSGVERB-unrecognized component + verb = int32(0xFF) + break + } else { + verb = verb | int32(1)< %v", r) }() + } + bp := tls.Alloc(256) + defer tls.Free(256) + var res uintptr + var _ /* a at bp+0 */ Tstat + var _ /* b at bp+128 */ Tstat + _ = res + res = Xgetenv(tls, __ccgo_ts+731) + if res != 0 && **(**uint8)(__ccgo_up(res)) != 0 && !(Xstat(tls, res, bp) != 0) && !(Xstat(tls, __ccgo_ts+607, bp+128) != 0) && (**(**Tstat)(__ccgo_up(bp))).Fst_dev == (**(**Tstat)(__ccgo_up(bp + 128))).Fst_dev && (**(**Tstat)(__ccgo_up(bp))).Fst_ino == (**(**Tstat)(__ccgo_up(bp + 128))).Fst_ino { + return Xstrdup(tls, res) + } + return Xgetcwd(tls, uintptr(0), uint64(0)) +} + +func X__getauxval(tls *TLS, item uint64) (r uint64) { + if __ccgo_strace { + trc("tls=%v item=%v, (%v:)", tls, item, origin(2)) + defer func() { trc("-> %v", r) }() + } + var auxv uintptr + _ = auxv + auxv = X__libc.Fauxv + if item == uint64(AT_SECURE) { + return uint64(X__libc.Fsecure) + } + for { + if !(**(**Tsize_t)(__ccgo_up(auxv)) != 0) { + break + } + if **(**Tsize_t)(__ccgo_up(auxv)) == item { + return **(**Tsize_t)(__ccgo_up(auxv + 1*8)) + } + goto _1 + _1: + ; + auxv = auxv + uintptr(2)*8 + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOENT) + return uint64(0) +} + +func Xgetauxval(tls *TLS, item uint64) (r uint64) { + if __ccgo_strace { + trc("tls=%v item=%v, (%v:)", tls, item, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__getauxval(tls, item) +} + +type Tutsname = struct { + Fsysname [65]uint8 + Fnodename [65]uint8 + Frelease [65]uint8 + Fversion [65]uint8 + Fmachine [65]uint8 + Fdomainname [65]uint8 +} + +func Xgetdomainname(tls *TLS, name uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v len1=%v, (%v:)", tls, name, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(400) + defer tls.Free(400) + var _ /* temp at bp+0 */ Tutsname + Xuname(tls, bp) + if !(len1 != 0) || _strlen(tls, bp+325) >= len1 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + Xstrcpy(tls, name, bp+325) + return 0 +} + +func Xgetentropy(tls *TLS, buffer uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v buffer=%v len1=%v, (%v:)", tls, buffer, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var pos uintptr + var ret int32 + var _ /* cs at bp+0 */ int32 + _, _ = pos, ret + ret = 0 + pos = buffer + if len1 > uint64(256) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EIO) + return -int32(1) + } + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp) + for len1 != 0 { + ret = int32(Xgetrandom(tls, pos, len1, uint32(0))) + if ret < 0 { + if **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EINTR) { + continue + } else { + break + } + } + pos = pos + uintptr(ret) + len1 = len1 - Uint64FromInt32(ret) + ret = 0 + } + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp)), uintptr(0)) + return ret +} + +func Xgethostid(tls *TLS) (r int64) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return 0 +} + +const optpos = 0 + +func X__getopt_msg(tls *TLS, a uintptr, b uintptr, c uintptr, l Tsize_t) { + if __ccgo_strace { + trc("tls=%v a=%v b=%v c=%v l=%v, (%v:)", tls, a, b, c, l, origin(2)) + } + var __need_unlock, v1 int32 + var f uintptr + _, _, _ = __need_unlock, f, v1 + f = uintptr(unsafe.Pointer(&X__stderr_FILE)) + b = X__lctrans_cur(tls, b) + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + _ = Xfputs(tls, a, f) >= 0 && Xfwrite(tls, b, _strlen(tls, b), uint64(1), f) != 0 && Xfwrite(tls, c, uint64(1), l, f) == l && Xputc(tls, int32('\n'), f) != 0 + if __need_unlock != 0 { + ___unlockfile(tls, f) + } +} + +func Xgetopt(tls *TLS, argc int32, argv uintptr, optstring uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v argc=%v argv=%v optstring=%v, (%v:)", tls, argc, argv, optstring, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var i, k, l, v1 int32 + var optchar uintptr + var _ /* c at bp+0 */ Twchar_t + var _ /* d at bp+4 */ Twchar_t + _, _, _, _, _ = i, k, l, optchar, v1 + if !(Xoptind != 0) || Xoptreset != 0 { + Xoptreset = 0 + X__optpos = 0 + Xoptind = int32(1) + } + if Xoptind >= argc || !(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) != 0) { + return -int32(1) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8))))) != int32('-') { + if Int32FromUint8(**(**uint8)(__ccgo_up(optstring))) == int32('-') { + v1 = Xoptind + Xoptind = Xoptind + 1 + Xoptarg = **(**uintptr)(__ccgo_up(argv + uintptr(v1)*8)) + return int32(1) + } + return -int32(1) + } + if !(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) + 1)) != 0) { + return -int32(1) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) + 1))) == int32('-') && !(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) + 2)) != 0) { + Xoptind = Xoptind + 1 + return -Int32FromInt32(1) + } + if !(X__optpos != 0) { + X__optpos = X__optpos + 1 + } + v1 = Xmbtowc(tls, bp, **(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8))+uintptr(X__optpos), uint64(MB_LEN_MAX)) + k = v1 + if v1 < 0 { + k = int32(1) + **(**Twchar_t)(__ccgo_up(bp)) = int32(0xfffd) /* replacement char */ + } + optchar = **(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) + uintptr(X__optpos) + X__optpos = X__optpos + k + if !(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) + uintptr(X__optpos))) != 0) { + Xoptind = Xoptind + 1 + X__optpos = 0 + } + if Int32FromUint8(**(**uint8)(__ccgo_up(optstring))) == int32('-') || Int32FromUint8(**(**uint8)(__ccgo_up(optstring))) == int32('+') { + optstring = optstring + 1 + } + i = 0 + **(**Twchar_t)(__ccgo_up(bp + 4)) = 0 + for cond := true; cond; cond = l != 0 && **(**Twchar_t)(__ccgo_up(bp + 4)) != **(**Twchar_t)(__ccgo_up(bp)) { + l = Xmbtowc(tls, bp+4, optstring+uintptr(i), uint64(MB_LEN_MAX)) + if l > 0 { + i = i + l + } else { + i = i + 1 + } + } + if **(**Twchar_t)(__ccgo_up(bp + 4)) != **(**Twchar_t)(__ccgo_up(bp)) || **(**Twchar_t)(__ccgo_up(bp)) == int32(':') { + Xoptopt = **(**Twchar_t)(__ccgo_up(bp)) + if Int32FromUint8(**(**uint8)(__ccgo_up(optstring))) != int32(':') && Xopterr != 0 { + X__getopt_msg(tls, **(**uintptr)(__ccgo_up(argv)), __ccgo_ts+735, optchar, Uint64FromInt32(k)) + } + return int32('?') + } + if Int32FromUint8(**(**uint8)(__ccgo_up(optstring + uintptr(i)))) == int32(':') { + Xoptarg = uintptr(0) + if Int32FromUint8(**(**uint8)(__ccgo_up(optstring + uintptr(i+int32(1))))) != int32(':') || X__optpos != 0 { + v1 = Xoptind + Xoptind = Xoptind + 1 + Xoptarg = **(**uintptr)(__ccgo_up(argv + uintptr(v1)*8)) + if X__optpos != 0 { + Xoptarg = Xoptarg + uintptr(X__optpos) + } + X__optpos = 0 + } + if Xoptind > argc { + Xoptopt = **(**Twchar_t)(__ccgo_up(bp)) + if Int32FromUint8(**(**uint8)(__ccgo_up(optstring))) == int32(':') { + return int32(':') + } + if Xopterr != 0 { + X__getopt_msg(tls, **(**uintptr)(__ccgo_up(argv)), __ccgo_ts+759, optchar, Uint64FromInt32(k)) + } + return int32('?') + } + } + return **(**Twchar_t)(__ccgo_up(bp)) +} + +func X__posix_getopt(tls *TLS, argc int32, argv uintptr, optstring uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v argc=%v argv=%v optstring=%v, (%v:)", tls, argc, argv, optstring, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetopt(tls, argc, argv, optstring) +} + +const no_argument = 0 +const optional_argument = 2 +const required_argument = 1 + +type Toption = struct { + Fname uintptr + Fhas_arg int32 + Fflag uintptr + Fval int32 +} + +func _permute(tls *TLS, argv uintptr, dest int32, src int32) { + var av, tmp uintptr + var i int32 + _, _, _ = av, i, tmp + av = argv + tmp = **(**uintptr)(__ccgo_up(av + uintptr(src)*8)) + i = src + for { + if !(i > dest) { + break + } + **(**uintptr)(__ccgo_up(av + uintptr(i)*8)) = **(**uintptr)(__ccgo_up(av + uintptr(i-int32(1))*8)) + goto _1 + _1: + ; + i = i - 1 + } + **(**uintptr)(__ccgo_up(av + uintptr(dest)*8)) = tmp +} + +func ___getopt_long(tls *TLS, argc int32, argv uintptr, optstring uintptr, longopts uintptr, idx uintptr, longonly int32) (r int32) { + var cnt, i, i1, resumed, ret, skipped int32 + _, _, _, _, _, _ = cnt, i, i1, resumed, ret, skipped + if !(Xoptind != 0) || Xoptreset != 0 { + Xoptreset = 0 + X__optpos = 0 + Xoptind = int32(1) + } + if Xoptind >= argc || !(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) != 0) { + return -int32(1) + } + skipped = Xoptind + if Int32FromUint8(**(**uint8)(__ccgo_up(optstring))) != int32('+') && Int32FromUint8(**(**uint8)(__ccgo_up(optstring))) != int32('-') { + i = Xoptind + for { + if i >= argc || !(**(**uintptr)(__ccgo_up(argv + uintptr(i)*8)) != 0) { + return -int32(1) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(i)*8))))) == int32('-') && **(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(i)*8)) + 1)) != 0 { + break + } + goto _1 + _1: + ; + i = i + 1 + } + Xoptind = i + } + resumed = Xoptind + ret = ___getopt_long_core(tls, argc, argv, optstring, longopts, idx, longonly) + if resumed > skipped { + cnt = Xoptind - resumed + i1 = 0 + for { + if !(i1 < cnt) { + break + } + _permute(tls, argv, skipped, Xoptind-int32(1)) + goto _2 + _2: + ; + i1 = i1 + 1 + } + Xoptind = skipped + cnt + } + return ret +} + +func ___getopt_long_core(tls *TLS, argc int32, argv uintptr, optstring uintptr, longopts uintptr, idx uintptr, longonly int32) (r int32) { + var arg, name, opt, start, v5 uintptr + var cnt, colon, i, j, l, match, v2 int32 + _, _, _, _, _, _, _, _, _, _, _, _ = arg, cnt, colon, i, j, l, match, name, opt, start, v2, v5 + Xoptarg = uintptr(0) + if longopts != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8))))) == int32('-') && (longonly != 0 && **(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) + 1)) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) + 1))) != int32('-') || Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) + 1))) == int32('-') && **(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) + 2)) != 0) { + colon = BoolInt32(Int32FromUint8(**(**uint8)(__ccgo_up(optstring + BoolUintptr(Int32FromUint8(**(**uint8)(__ccgo_up(optstring))) == int32('+') || Int32FromUint8(**(**uint8)(__ccgo_up(optstring))) == int32('-'))))) == int32(':')) + start = **(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) + uintptr(1) + v2 = Int32FromInt32(0) + i = v2 + cnt = v2 + for { + if !((**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fname != 0) { + break + } + name = (**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fname + opt = start + if Int32FromUint8(**(**uint8)(__ccgo_up(opt))) == int32('-') { + opt = opt + 1 + } + for **(**uint8)(__ccgo_up(opt)) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(opt))) != int32('=') && Int32FromUint8(**(**uint8)(__ccgo_up(opt))) == Int32FromUint8(**(**uint8)(__ccgo_up(name))) { + name = name + 1 + opt = opt + 1 + } + if **(**uint8)(__ccgo_up(opt)) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(opt))) != int32('=') { + goto _1 + } + arg = opt + match = i + if !(**(**uint8)(__ccgo_up(name)) != 0) { + cnt = int32(1) + break + } + cnt = cnt + 1 + goto _1 + _1: + ; + i = i + 1 + } + if cnt == int32(1) && longonly != 0 && int64(arg)-int64(start) == int64(Xmblen(tls, start, uint64(MB_LEN_MAX))) { + l = int32(int64(arg) - int64(start)) + i = 0 + for { + if !(**(**uint8)(__ccgo_up(optstring + uintptr(i))) != 0) { + break + } + j = 0 + for { + if !(j < l && Int32FromUint8(**(**uint8)(__ccgo_up(start + uintptr(j)))) == Int32FromUint8(**(**uint8)(__ccgo_up(optstring + uintptr(i+j))))) { + break + } + goto _4 + _4: + ; + j = j + 1 + } + if j == l { + cnt = cnt + 1 + break + } + goto _3 + _3: + ; + i = i + 1 + } + } + if cnt == int32(1) { + i = match + opt = arg + Xoptind = Xoptind + 1 + if Int32FromUint8(**(**uint8)(__ccgo_up(opt))) == int32('=') { + if !((**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fhas_arg != 0) { + Xoptopt = (**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fval + if colon != 0 || !(Xopterr != 0) { + return int32('?') + } + X__getopt_msg(tls, **(**uintptr)(__ccgo_up(argv)), __ccgo_ts+791, (**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fname, _strlen(tls, (**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fname)) + return int32('?') + } + Xoptarg = opt + uintptr(1) + } else { + if (**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fhas_arg == int32(required_argument) { + v5 = **(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) + Xoptarg = v5 + if !(v5 != 0) { + Xoptopt = (**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fval + if colon != 0 { + return int32(':') + } + if !(Xopterr != 0) { + return int32('?') + } + X__getopt_msg(tls, **(**uintptr)(__ccgo_up(argv)), __ccgo_ts+759, (**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fname, _strlen(tls, (**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fname)) + return int32('?') + } + Xoptind = Xoptind + 1 + } + } + if idx != 0 { + **(**int32)(__ccgo_up(idx)) = i + } + if (**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fflag != 0 { + **(**int32)(__ccgo_up((**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fflag)) = (**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fval + return 0 + } + return (**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fval + } + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) + 1))) == int32('-') { + Xoptopt = 0 + if !(colon != 0) && Xopterr != 0 { + if cnt != 0 { + v5 = __ccgo_ts + 828 + } else { + v5 = __ccgo_ts + 735 + } + X__getopt_msg(tls, **(**uintptr)(__ccgo_up(argv)), v5, **(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8))+uintptr(2), _strlen(tls, **(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8))+uintptr(2))) + } + Xoptind = Xoptind + 1 + return int32('?') + } + } + return Xgetopt(tls, argc, argv, optstring) +} + +func Xgetopt_long(tls *TLS, argc int32, argv uintptr, optstring uintptr, longopts uintptr, idx uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v argc=%v argv=%v optstring=%v longopts=%v idx=%v, (%v:)", tls, argc, argv, optstring, longopts, idx, origin(2)) + defer func() { trc("-> %v", r) }() + } + return ___getopt_long(tls, argc, argv, optstring, longopts, idx, 0) +} + +func Xgetopt_long_only(tls *TLS, argc int32, argv uintptr, optstring uintptr, longopts uintptr, idx uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v argc=%v argv=%v optstring=%v longopts=%v idx=%v, (%v:)", tls, argc, argv, optstring, longopts, idx, origin(2)) + defer func() { trc("-> %v", r) }() + } + return ___getopt_long(tls, argc, argv, optstring, longopts, idx, int32(1)) +} + +func Xgetpriority(tls *TLS, which int32, who Tid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v which=%v who=%v, (%v:)", tls, which, who, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret int32 + _ = ret + ret = int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_getpriority), int64(which), Int64FromUint32(who))))) + if ret < 0 { + return ret + } + return int32(20) - ret +} + +func Xgetresgid(tls *TLS, rgid uintptr, egid uintptr, sgid uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v rgid=%v egid=%v sgid=%v, (%v:)", tls, rgid, egid, sgid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_getresgid), int64(rgid), int64(egid), int64(sgid))))) +} + +func Xgetresuid(tls *TLS, ruid uintptr, euid uintptr, suid uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v ruid=%v euid=%v suid=%v, (%v:)", tls, ruid, euid, suid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_getresuid), int64(ruid), int64(euid), int64(suid))))) +} + +func Xgetrlimit(tls *TLS, resource int32, rlim uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v resource=%v rlim=%v, (%v:)", tls, resource, rlim, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ret int32 + var v1 uint64 + var _ /* k_rlim at bp+0 */ [2]uint64 + _, _ = ret, v1 + ret = int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_prlimit64), int64(Int32FromInt32(0)), int64(resource), int64(Int32FromInt32(0)), int64(rlim))))) + if !(ret != 0) { + if (*Trlimit)(unsafe.Pointer(rlim)).Frlim_cur >= ^Uint64FromUint64(0) { + (*Trlimit)(unsafe.Pointer(rlim)).Frlim_cur = ^Uint64FromUint64(0) + } + if (*Trlimit)(unsafe.Pointer(rlim)).Frlim_max >= ^Uint64FromUint64(0) { + (*Trlimit)(unsafe.Pointer(rlim)).Frlim_max = ^Uint64FromUint64(0) + } + } + if !(ret != 0) || **(**int32)(__ccgo_up(X__errno_location(tls))) != int32(ENOSYS) { + return ret + } + if X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_getrlimit), int64(resource), int64(bp)))) < 0 { + return -int32(1) + } + if (**(**[2]uint64)(__ccgo_up(bp)))[0] == -Uint64FromUint64(1) { + v1 = ^Uint64FromUint64(0) + } else { + v1 = (**(**[2]uint64)(__ccgo_up(bp)))[0] + } + (*Trlimit)(unsafe.Pointer(rlim)).Frlim_cur = v1 + if (**(**[2]uint64)(__ccgo_up(bp)))[int32(1)] == -Uint64FromUint64(1) { + v1 = ^Uint64FromUint64(0) + } else { + v1 = (**(**[2]uint64)(__ccgo_up(bp)))[int32(1)] + } + (*Trlimit)(unsafe.Pointer(rlim)).Frlim_max = v1 + if (*Trlimit)(unsafe.Pointer(rlim)).Frlim_cur >= ^Uint64FromUint64(0) { + (*Trlimit)(unsafe.Pointer(rlim)).Frlim_cur = ^Uint64FromUint64(0) + } + if (*Trlimit)(unsafe.Pointer(rlim)).Frlim_max >= ^Uint64FromUint64(0) { + (*Trlimit)(unsafe.Pointer(rlim)).Frlim_max = ^Uint64FromUint64(0) + } + return 0 +} + +func Xgetrusage(tls *TLS, who int32, ru uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v who=%v ru=%v, (%v:)", tls, who, ru, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var dest uintptr + var r int32 + var _ /* kru at bp+0 */ [4]int64 + _, _ = dest, r + dest = ru + 32 - uintptr(Uint64FromInt32(4)*Uint64FromInt64(8)) + r = int32(X__syscall2(tls, int64(SYS_getrusage), int64(who), int64(dest))) + if !(r != 0) && Bool(uint64(8) > uint64(8)) { + Xmemcpy(tls, bp, dest, Uint64FromInt32(4)*Uint64FromInt64(8)) + (*Trusage)(unsafe.Pointer(ru)).Fru_utime = Ttimeval{ + Ftv_sec: (**(**[4]int64)(__ccgo_up(bp)))[0], + Ftv_usec: (**(**[4]int64)(__ccgo_up(bp)))[int32(1)], + } + (*Trusage)(unsafe.Pointer(ru)).Fru_stime = Ttimeval{ + Ftv_sec: (**(**[4]int64)(__ccgo_up(bp)))[int32(2)], + Ftv_usec: (**(**[4]int64)(__ccgo_up(bp)))[int32(3)], + } + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func Xgetsubopt(tls *TLS, opt uintptr, keys uintptr, val uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v opt=%v keys=%v val=%v, (%v:)", tls, opt, keys, val, origin(2)) + defer func() { trc("-> %v", r) }() + } + var i int32 + var l Tsize_t + var s, v1, v2 uintptr + _, _, _, _, _ = i, l, s, v1, v2 + s = **(**uintptr)(__ccgo_up(opt)) + **(**uintptr)(__ccgo_up(val)) = UintptrFromInt32(0) + **(**uintptr)(__ccgo_up(opt)) = Xstrchr(tls, s, int32(',')) + if **(**uintptr)(__ccgo_up(opt)) != 0 { + v2 = opt + v1 = *(*uintptr)(unsafe.Pointer(v2)) + *(*uintptr)(unsafe.Pointer(v2)) = *(*uintptr)(unsafe.Pointer(v2)) + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(0) + } else { + **(**uintptr)(__ccgo_up(opt)) = s + uintptr(_strlen(tls, s)) + } + i = 0 + for { + if !(**(**uintptr)(__ccgo_up(keys + uintptr(i)*8)) != 0) { + break + } + l = _strlen(tls, **(**uintptr)(__ccgo_up(keys + uintptr(i)*8))) + if Xstrncmp(tls, **(**uintptr)(__ccgo_up(keys + uintptr(i)*8)), s, l) != 0 { + goto _3 + } + if Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(l)))) == int32('=') { + **(**uintptr)(__ccgo_up(val)) = s + uintptr(l) + uintptr(1) + } else { + if **(**uint8)(__ccgo_up(s + uintptr(l))) != 0 { + goto _3 + } + } + return i + goto _3 + _3: + ; + i = i + 1 + } + return -int32(1) +} + +const R = 2 +const W = 1 +const WR = 3 + +type Tioctl_compat_map = struct { + Fnew_req int32 + Fold_req int32 + Fold_size uint8 + Fdir uint8 + Fforce_align uint8 + Fnoffs uint8 + Foffsets [8]uint8 +} + +/* yields a type for a struct with original size n, with a misaligned + * timeval/timespec expanded from 32- to 64-bit. for use with ioctl + * number producing macros; only size of result is meaningful. */ + +type Tv4l2_event = struct { + Fa Tuint32_t + Fb [8]Tuint64_t + Fc [2]Tuint32_t + Fts [2]Tuint32_t + Fd [9]Tuint32_t +} + +var _compat_map = [20]Tioctl_compat_map{ + 0: { + Fnew_req: int32(SIOCGSTAMP), + Fold_req: int32(SIOCGSTAMP_OLD), + Fold_size: uint8(8), + Fdir: uint8(R), + Fnoffs: uint8(2), + Foffsets: [8]uint8{ + 1: uint8(4), + }, + }, + 1: { + Fnew_req: int32(SIOCGSTAMPNS), + Fold_req: int32(SIOCGSTAMPNS_OLD), + Fold_size: uint8(8), + Fdir: uint8(R), + Fnoffs: uint8(2), + Foffsets: [8]uint8{ + 1: uint8(4), + }, + }, + 2: { + Fnew_req: Int32FromUint64(uint64(Uint32FromUint32(2)< %v", r1) }() + } + bp := tls.Alloc(256) + defer tls.Free(256) + var ap Tva_list + var arg uintptr + var i, r int32 + var _ /* u at bp+0 */ struct { + Fbuf [0][256]uint8 + Falign int64 + F__ccgo_pad2 [248]byte + } + _, _, _, _ = ap, arg, i, r + ap = va + arg = VaUintptr(&ap) + _ = ap + r = int32(X__syscall3(tls, int64(SYS_ioctl), int64(fd), int64(req), int64(arg))) + if Bool(Bool(int32(SIOCGSTAMP) != int32(SIOCGSTAMP_OLD)) && req != 0) && r == -int32(ENOTTY) { + i = 0 + for { + if !(Uint64FromInt32(i) < Uint64FromInt64(400)/Uint64FromInt64(20)) { + break + } + if _compat_map[i].Fnew_req != req { + goto _1 + } + _convert_ioctl_struct(tls, uintptr(unsafe.Pointer(&_compat_map))+uintptr(i)*20, bp, arg, int32(W)) + r = int32(X__syscall3(tls, int64(SYS_ioctl), int64(fd), int64(_compat_map[i].Fold_req), int64(bp))) + if r < 0 { + break + } + _convert_ioctl_struct(tls, uintptr(unsafe.Pointer(&_compat_map))+uintptr(i)*20, bp, arg, int32(R)) + break + goto _1 + _1: + ; + i = i + 1 + } + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func Xissetugid(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Int32FromUint8(X__libc.Fsecure) +} + +func Xlockf(tls *TLS, fd int32, op int32, size Toff_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v op=%v size=%v, (%v:)", tls, fd, op, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + var _ /* l at bp+0 */ Tflock + **(**Tflock)(__ccgo_up(bp)) = Tflock{ + Fl_type: int16(F_WRLCK), + Fl_whence: int16(1), + Fl_len: size, + } + switch op { + case int32(F_TEST): + (**(**Tflock)(__ccgo_up(bp))).Fl_type = F_RDLCK + if Xfcntl(tls, fd, int32(F_GETLK), VaList(bp+40, bp)) < 0 { + return -int32(1) + } + if int32((**(**Tflock)(__ccgo_up(bp))).Fl_type) == int32(F_UNLCK) || (**(**Tflock)(__ccgo_up(bp))).Fl_pid == Xgetpid(tls) { + return 0 + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EACCES) + return -int32(1) + case F_ULOCK: + (**(**Tflock)(__ccgo_up(bp))).Fl_type = int16(F_UNLCK) + fallthrough + case int32(F_TLOCK): + return Xfcntl(tls, fd, int32(F_SETLK), VaList(bp+40, bp)) + case int32(F_LOCK): + return Xfcntl(tls, fd, int32(F_SETLKW), VaList(bp+40, bp)) + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) +} + +const ACCOUNTING = 9 +const UTMP_FILE = "_PATH_UTMP" +const UTMP_FILENAME = "_PATH_UTMP" +const UT_HOSTSIZE = 256 +const UT_LINESIZE = 32 +const UT_NAMESIZE = 32 +const WTMP_FILE = "_PATH_WTMP" +const WTMP_FILENAME = "_PATH_WTMP" +const _PATH_UTMP = "/dev/null/utmp" +const _PATH_WTMP = "/dev/null/wtmp" +const ut_name = 0 +const utmp = 0 + +type Tlastlog = struct { + Fll_time Ttime_t + Fll_line [32]uint8 + Fll_host [256]uint8 +} + +func Xlogin_tty(tls *TLS, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + Xsetsid(tls) + if Xioctl(tls, fd, int32(TIOCSCTTY), VaList(bp+8, UintptrFromInt32(0))) != 0 { + return -int32(1) + } + Xdup2(tls, fd, 0) + Xdup2(tls, fd, int32(1)) + Xdup2(tls, fd, int32(2)) + if fd > int32(2) { + Xclose(tls, fd) + } + return 0 +} + +const MNTOPT_DEFAULTS = "defaults" +const MNTOPT_NOAUTO = "noauto" +const MNTOPT_NOSUID = "nosuid" +const MNTOPT_RO = "ro" +const MNTOPT_RW = "rw" +const MNTOPT_SUID = "suid" +const MNTTYPE_IGNORE = "ignore" +const MNTTYPE_NFS = "nfs" +const MNTTYPE_SWAP = "swap" +const MOUNTED = "/etc/mtab" +const SENTINEL = 0 + +type Tmntent = struct { + Fmnt_fsname uintptr + Fmnt_dir uintptr + Fmnt_type uintptr + Fmnt_opts uintptr + Fmnt_freq int32 + Fmnt_passno int32 +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +var _internal_buf uintptr +var _internal_bufsize Tsize_t + +func Xsetmntent(tls *TLS, name uintptr, mode uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v mode=%v, (%v:)", tls, name, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfopen(tls, name, mode) +} + +func Xendmntent(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + if f != 0 { + Xfclose(tls, f) + } + return int32(1) +} + +func _unescape_ent(tls *TLS, beg uintptr) (r uintptr) { + var cval uint8 + var dest, src, val, v1, v2 uintptr + var i int32 + _, _, _, _, _, _, _ = cval, dest, i, src, val, v1, v2 + dest = beg + src = beg + for **(**uint8)(__ccgo_up(src)) != 0 { + cval = uint8(0) + if Int32FromUint8(**(**uint8)(__ccgo_up(src))) != int32('\\') { + v1 = dest + dest = dest + 1 + v2 = src + src = src + 1 + **(**uint8)(__ccgo_up(v1)) = **(**uint8)(__ccgo_up(v2)) + continue + } + if Int32FromUint8(**(**uint8)(__ccgo_up(src + 1))) == int32('\\') { + src = src + 1 + v1 = dest + dest = dest + 1 + v2 = src + src = src + 1 + **(**uint8)(__ccgo_up(v1)) = **(**uint8)(__ccgo_up(v2)) + continue + } + val = src + uintptr(1) + i = 0 + for { + if !(i < int32(3)) { + break + } + if Int32FromUint8(**(**uint8)(__ccgo_up(val))) >= int32('0') && Int32FromUint8(**(**uint8)(__ccgo_up(val))) <= int32('7') { + cval = Uint8FromInt32(int32(cval) << Int32FromInt32(3)) + v1 = val + val = val + 1 + cval = Uint8FromInt32(int32(cval) + (Int32FromUint8(**(**uint8)(__ccgo_up(v1))) - Int32FromUint8('0'))) + } else { + break + } + goto _5 + _5: + ; + i = i + 1 + } + if cval != 0 { + v1 = dest + dest = dest + 1 + **(**uint8)(__ccgo_up(v1)) = cval + src = val + } else { + v1 = dest + dest = dest + 1 + v2 = src + src = src + 1 + **(**uint8)(__ccgo_up(v1)) = **(**uint8)(__ccgo_up(v2)) + } + } + **(**uint8)(__ccgo_up(dest)) = uint8(0) + return beg +} + +func Xgetmntent_r(tls *TLS, f uintptr, mnt uintptr, linebuf uintptr, buflen int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v mnt=%v linebuf=%v buflen=%v, (%v:)", tls, f, mnt, linebuf, buflen, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(128) + defer tls.Free(128) + var i, len1 Tsize_t + var use_internal int32 + var _ /* n at bp+0 */ [8]int32 + _, _, _ = i, len1, use_internal + use_internal = BoolInt32(linebuf == uintptr(unsafe.Pointer(&_internal_buf))) + (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_freq = 0 + (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_passno = 0 + for cond := true; cond; cond = Int32FromUint8(**(**uint8)(__ccgo_up(linebuf + uintptr((**(**[8]int32)(__ccgo_up(bp)))[0])))) == int32('#') || Uint64FromInt32((**(**[8]int32)(__ccgo_up(bp)))[int32(1)]) == len1 { + if use_internal != 0 { + Xgetline(tls, uintptr(unsafe.Pointer(&_internal_buf)), uintptr(unsafe.Pointer(&_internal_bufsize)), f) + linebuf = _internal_buf + } else { + Xfgets(tls, linebuf, buflen, f) + } + if Xfeof(tls, f) != 0 || Xferror(tls, f) != 0 { + return uintptr(0) + } + if !(Xstrchr(tls, linebuf, int32('\n')) != 0) { + Xfscanf(tls, f, __ccgo_ts+852, 0) + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ERANGE) + return uintptr(0) + } + len1 = _strlen(tls, linebuf) + if len1 > uint64(INT_MAX) { + continue + } + i = uint64(0) + for { + if !(i < Uint64FromInt64(32)/Uint64FromInt64(4)) { + break + } + (**(**[8]int32)(__ccgo_up(bp)))[i] = Int32FromUint64(len1) + goto _1 + _1: + ; + i = i + 1 + } + Xsscanf(tls, linebuf, __ccgo_ts+864, VaList(bp+40, bp, bp+uintptr(1)*4, bp+uintptr(2)*4, bp+uintptr(3)*4, bp+uintptr(4)*4, bp+uintptr(5)*4, bp+uintptr(6)*4, bp+uintptr(7)*4, mnt+32, mnt+36)) + } + **(**uint8)(__ccgo_up(linebuf + uintptr((**(**[8]int32)(__ccgo_up(bp)))[int32(1)]))) = uint8(0) + **(**uint8)(__ccgo_up(linebuf + uintptr((**(**[8]int32)(__ccgo_up(bp)))[int32(3)]))) = uint8(0) + **(**uint8)(__ccgo_up(linebuf + uintptr((**(**[8]int32)(__ccgo_up(bp)))[int32(5)]))) = uint8(0) + **(**uint8)(__ccgo_up(linebuf + uintptr((**(**[8]int32)(__ccgo_up(bp)))[int32(7)]))) = uint8(0) + (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_fsname = _unescape_ent(tls, linebuf+uintptr((**(**[8]int32)(__ccgo_up(bp)))[0])) + (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_dir = _unescape_ent(tls, linebuf+uintptr((**(**[8]int32)(__ccgo_up(bp)))[int32(2)])) + (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_type = _unescape_ent(tls, linebuf+uintptr((**(**[8]int32)(__ccgo_up(bp)))[int32(4)])) + (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_opts = _unescape_ent(tls, linebuf+uintptr((**(**[8]int32)(__ccgo_up(bp)))[int32(6)])) + return mnt +} + +func Xgetmntent(tls *TLS, f uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetmntent_r(tls, f, uintptr(unsafe.Pointer(&_mnt)), uintptr(unsafe.Pointer(&_internal_buf)), 0) +} + +var _mnt Tmntent + +func Xaddmntent(tls *TLS, f uintptr, mnt uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v mnt=%v, (%v:)", tls, f, mnt, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + if Xfseek(tls, f, 0, int32(2)) != 0 { + return int32(1) + } + return BoolInt32(Xfprintf(tls, f, __ccgo_ts+919, VaList(bp+8, (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_fsname, (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_dir, (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_type, (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_opts, (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_freq, (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_passno)) < 0) +} + +func Xhasmntopt(tls *TLS, mnt uintptr, opt uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v mnt=%v opt=%v, (%v:)", tls, mnt, opt, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrstr(tls, (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_opts, opt) +} + +type Thistory = struct { + Fchain uintptr + Fdev Tdev_t + Fino Tino_t + Flevel int32 + Fbase int32 +} + +func _do_nftw(tls *TLS, path uintptr, __ccgo_fp_fn uintptr, fd_limit int32, flags int32, h uintptr) (r1 int32) { + bp := tls.Alloc(176) + defer tls.Free(176) + var d, de, v10 uintptr + var dfd, err, r, type1, v3 int32 + var j, k, l Tsize_t + var v1 uint64 + var v8 bool + var v2 Tino_t + var _ /* lev at bp+160 */ TFTW + var _ /* new at bp+128 */ Thistory + var _ /* st at bp+0 */ Tstat + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = d, de, dfd, err, j, k, l, r, type1, v1, v10, v2, v3, v8 + l = _strlen(tls, path) + if l != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(path + uintptr(l-uint64(1))))) == int32('/') { + v1 = l - uint64(1) + } else { + v1 = l + } + j = v1 + v2 = Uint64FromInt32(0) + (**(**Tstat)(__ccgo_up(bp))).Fst_ino = v2 + (**(**Tstat)(__ccgo_up(bp))).Fst_dev = v2 + if flags&int32(FTW_PHYS) != 0 { + v3 = Xlstat(tls, path, bp) + } else { + v3 = BoolInt32(Xstat(tls, path, bp) < 0) + } + if v3 != 0 { + if !(flags&Int32FromInt32(FTW_PHYS) != 0) && **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(ENOENT) && !(Xlstat(tls, path, bp) != 0) { + type1 = int32(FTW_SLN) + } else { + if **(**int32)(__ccgo_up(X__errno_location(tls))) != int32(EACCES) { + return -int32(1) + } else { + type1 = int32(FTW_NS) + } + } + } else { + if (**(**Tstat)(__ccgo_up(bp))).Fst_mode&uint32(S_IFMT) == uint32(S_IFDIR) { + if flags&int32(FTW_DEPTH) != 0 { + type1 = int32(FTW_DP) + } else { + type1 = int32(FTW_D) + } + } else { + if (**(**Tstat)(__ccgo_up(bp))).Fst_mode&uint32(S_IFMT) == uint32(S_IFLNK) { + if flags&int32(FTW_PHYS) != 0 { + type1 = int32(FTW_SL) + } else { + type1 = int32(FTW_SLN) + } + } else { + type1 = int32(FTW_F) + } + } + } + if flags&int32(FTW_MOUNT) != 0 && h != 0 && type1 != int32(FTW_NS) && (**(**Tstat)(__ccgo_up(bp))).Fst_dev != (*Thistory)(unsafe.Pointer(h)).Fdev { + return 0 + } + (**(**Thistory)(__ccgo_up(bp + 128))).Fchain = h + (**(**Thistory)(__ccgo_up(bp + 128))).Fdev = (**(**Tstat)(__ccgo_up(bp))).Fst_dev + (**(**Thistory)(__ccgo_up(bp + 128))).Fino = (**(**Tstat)(__ccgo_up(bp))).Fst_ino + if h != 0 { + v3 = (*Thistory)(unsafe.Pointer(h)).Flevel + int32(1) + } else { + v3 = 0 + } + (**(**Thistory)(__ccgo_up(bp + 128))).Flevel = v3 + (**(**Thistory)(__ccgo_up(bp + 128))).Fbase = Int32FromUint64(j + uint64(1)) + (**(**TFTW)(__ccgo_up(bp + 160))).Flevel = (**(**Thistory)(__ccgo_up(bp + 128))).Flevel + if h != 0 { + (**(**TFTW)(__ccgo_up(bp + 160))).Fbase = (*Thistory)(unsafe.Pointer(h)).Fbase + } else { + k = j + for { + if !(k != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(path + uintptr(k)))) == int32('/')) { + break + } + goto _5 + _5: + ; + k = k - 1 + } + for { + if !(k != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(path + uintptr(k-uint64(1))))) != int32('/')) { + break + } + goto _6 + _6: + ; + k = k - 1 + } + (**(**TFTW)(__ccgo_up(bp + 160))).Fbase = Int32FromUint64(k) + } + if type1 == int32(FTW_D) || type1 == int32(FTW_DP) { + dfd = Xopen(tls, path, O_RDONLY, 0) + err = **(**int32)(__ccgo_up(X__errno_location(tls))) + if dfd < 0 && err == int32(EACCES) { + type1 = int32(FTW_DNR) + } + if !(fd_limit != 0) { + Xclose(tls, dfd) + } + } + if v8 = !(flags&Int32FromInt32(FTW_DEPTH) != 0); v8 { + v3 = (*(*func(*TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_fn})))(tls, path, bp, type1, bp+160) + r = v3 + } + if v8 && v3 != 0 { + return r + } + for { + if !(h != 0) { + break + } + if (*Thistory)(unsafe.Pointer(h)).Fdev == (**(**Tstat)(__ccgo_up(bp))).Fst_dev && (*Thistory)(unsafe.Pointer(h)).Fino == (**(**Tstat)(__ccgo_up(bp))).Fst_ino { + return 0 + } + goto _9 + _9: + ; + h = (*Thistory)(unsafe.Pointer(h)).Fchain + } + if (type1 == int32(FTW_D) || type1 == int32(FTW_DP)) && fd_limit != 0 { + if dfd < 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = err + return -int32(1) + } + d = Xfdopendir(tls, dfd) + if d != 0 { + for { + v10 = Xreaddir(tls, d) + de = v10 + if !(v10 != 0) { + break + } + if Int32FromUint8(**(**uint8)(__ccgo_up(de + 19))) == int32('.') && (!(**(**uint8)(__ccgo_up(de + 19 + 1)) != 0) || Int32FromUint8(**(**uint8)(__ccgo_up(de + 19 + 1))) == int32('.') && !(**(**uint8)(__ccgo_up(de + 19 + 2)) != 0)) { + continue + } + if _strlen(tls, de+19) >= uint64(PATH_MAX)-l { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENAMETOOLONG) + Xclosedir(tls, d) + return -int32(1) + } + **(**uint8)(__ccgo_up(path + uintptr(j))) = uint8('/') + Xstrcpy(tls, path+uintptr(j)+uintptr(1), de+19) + v3 = _do_nftw(tls, path, __ccgo_fp_fn, fd_limit-int32(1), flags, bp+128) + r = v3 + if v3 != 0 { + Xclosedir(tls, d) + return r + } + } + Xclosedir(tls, d) + } else { + Xclose(tls, dfd) + return -int32(1) + } + } + **(**uint8)(__ccgo_up(path + uintptr(l))) = uint8(0) + if v8 = flags&int32(FTW_DEPTH) != 0; v8 { + v3 = (*(*func(*TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_fn})))(tls, path, bp, type1, bp+160) + r = v3 + } + if v8 && v3 != 0 { + return r + } + return 0 +} + +type t__ccgo_fp__Xnftw_1 = func(*TLS, uintptr, uintptr, int32, uintptr) int32 + +func Xnftw(tls *TLS, path uintptr, __ccgo_fp_fn uintptr, fd_limit int32, flags int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v path=%v __ccgo_fp_fn=%v fd_limit=%v flags=%v, (%v:)", tls, path, __ccgo_fp_fn, fd_limit, flags, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(4112) + defer tls.Free(4112) + var l Tsize_t + var r int32 + var _ /* cs at bp+0 */ int32 + var _ /* pathbuf at bp+4 */ [4097]uint8 + _, _ = l, r + if fd_limit <= 0 { + return 0 + } + l = _strlen(tls, path) + if l > uint64(PATH_MAX) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENAMETOOLONG) + return -int32(1) + } + Xmemcpy(tls, bp+4, path, l+uint64(1)) + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp) + r = _do_nftw(tls, bp+4, __ccgo_fp_fn, fd_limit, flags, UintptrFromInt32(0)) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp)), uintptr(0)) + return r +} + +/* Nonstandard, but vastly superior to the standard functions */ + +func Xopenpty(tls *TLS, pm uintptr, ps uintptr, name uintptr, tio uintptr, ws uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v pm=%v ps=%v name=%v tio=%v ws=%v, (%v:)", tls, pm, ps, name, tio, ws, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + var m, s, v1 int32 + var _ /* buf at bp+8 */ [20]uint8 + var _ /* cs at bp+4 */ int32 + var _ /* n at bp+0 */ int32 + _, _, _ = m, s, v1 + **(**int32)(__ccgo_up(bp)) = 0 + m = Xopen(tls, __ccgo_ts+938, Int32FromInt32(O_RDWR)|Int32FromInt32(O_NOCTTY), 0) + if m < 0 { + return -int32(1) + } + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp+4) + if Xioctl(tls, m, int32(TIOCSPTLCK), VaList(bp+40, bp)) != 0 || Xioctl(tls, m, Int32FromUint32(TIOCGPTN), VaList(bp+40, bp)) != 0 { + goto fail + } + if !(name != 0) { + name = bp + 8 + } + Xsnprintf(tls, name, uint64(20), __ccgo_ts+948, VaList(bp+40, **(**int32)(__ccgo_up(bp)))) + v1 = Xopen(tls, name, Int32FromInt32(O_RDWR)|Int32FromInt32(O_NOCTTY), 0) + s = v1 + if v1 < 0 { + goto fail + } + if tio != 0 { + Xtcsetattr(tls, s, TCSANOW, tio) + } + if ws != 0 { + Xioctl(tls, s, int32(TIOCSWINSZ), VaList(bp+40, ws)) + } + **(**int32)(__ccgo_up(pm)) = m + **(**int32)(__ccgo_up(ps)) = s + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 4)), uintptr(0)) + return 0 + goto fail +fail: + ; + Xclose(tls, m) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 4)), uintptr(0)) + return -int32(1) +} + +func Xptsname(tls *TLS, fd int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + var err int32 + _ = err + err = X__ptsname_r(tls, fd, uintptr(unsafe.Pointer(&_buf2)), uint64(22)) + if err != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = err + return uintptr(0) + } + return uintptr(unsafe.Pointer(&_buf2)) +} + +var _buf2 [22]uint8 + +func Xposix_openpt(tls *TLS, flags int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v flags=%v, (%v:)", tls, flags, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + r = Xopen(tls, __ccgo_ts+938, flags, 0) + if r < 0 && **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(ENOSPC) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EAGAIN) + } + return r +} + +func Xgrantpt(tls *TLS, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + return 0 +} + +func Xunlockpt(tls *TLS, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var _ /* unlock at bp+0 */ int32 + **(**int32)(__ccgo_up(bp)) = 0 + return Xioctl(tls, fd, int32(TIOCSPTLCK), VaList(bp+16, bp)) +} + +func X__ptsname_r(tls *TLS, fd int32, buf uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v len1=%v, (%v:)", tls, fd, buf, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var err, v1 int32 + var _ /* pty at bp+0 */ int32 + _, _ = err, v1 + if !(buf != 0) { + len1 = uint64(0) + } + v1 = int32(X__syscall3(tls, int64(SYS_ioctl), int64(fd), Int64FromUint32(Uint32FromUint32(TIOCGPTN)), int64(bp))) + err = v1 + if v1 != 0 { + return -err + } + if Uint64FromInt32(Xsnprintf(tls, buf, len1, __ccgo_ts+948, VaList(bp+16, **(**int32)(__ccgo_up(bp))))) >= len1 { + return int32(ERANGE) + } + return 0 +} + +func Xptsname_r(tls *TLS, fd int32, buf uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v len1=%v, (%v:)", tls, fd, buf, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__ptsname_r(tls, fd, buf, len1) +} + +func _slash_len(tls *TLS, s uintptr) (r Tsize_t) { + var s0 uintptr + _ = s0 + s0 = s + for Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('/') { + s = s + 1 + } + return Uint64FromInt64(int64(s) - int64(s0)) +} + +func Xrealpath(tls *TLS, filename uintptr, resolved uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v filename=%v resolved=%v, (%v:)", tls, filename, resolved, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(8208) + defer tls.Free(8208) + var check_dir, up int32 + var cnt, l, l0, nup, p, q, v4 Tsize_t + var k Tssize_t + var z uintptr + var _ /* output at bp+4097 */ [4096]uint8 + var _ /* stack at bp+0 */ [4097]uint8 + _, _, _, _, _, _, _, _, _, _, _ = check_dir, cnt, k, l, l0, nup, p, q, up, z, v4 + cnt = uint64(0) + nup = uint64(0) + check_dir = 0 + if !(filename != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(0) + } + l = Xstrnlen(tls, filename, uint64(4097)) + if !(l != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOENT) + return uintptr(0) + } + if l >= uint64(PATH_MAX) { + goto toolong + } + p = uint64(4097) - l - uint64(1) + q = uint64(0) + Xmemcpy(tls, bp+uintptr(p), filename, l+uint64(1)) + /* Main loop. Each iteration pops the next part from stack of + * remaining path components and consumes any slashes that follow. + * If not a link, it's moved to output; if a link, contents are + * pushed to the stack. */ + goto restart +restart: + ; +_3: + ; + /* If stack starts with /, the whole component is / or // + * and the output state must be reset. */ + if Int32FromUint8((**(**[4097]uint8)(__ccgo_up(bp)))[p]) == int32('/') { + check_dir = 0 + nup = uint64(0) + q = uint64(0) + v4 = q + q = q + 1 + (**(**[4096]uint8)(__ccgo_up(bp + 4097)))[v4] = uint8('/') + p = p + 1 + /* Initial // is special. */ + if Int32FromUint8((**(**[4097]uint8)(__ccgo_up(bp)))[p]) == int32('/') && Int32FromUint8((**(**[4097]uint8)(__ccgo_up(bp)))[p+uint64(1)]) != int32('/') { + v4 = q + q = q + 1 + (**(**[4096]uint8)(__ccgo_up(bp + 4097)))[v4] = uint8('/') + } + goto _2 + } + z = X__strchrnul(tls, bp+uintptr(p), int32('/')) + v4 = Uint64FromInt64(int64(z) - int64(bp+uintptr(p))) + l = v4 + l0 = v4 + if !(l != 0) && !(check_dir != 0) { + goto _1 + } + /* Skip any . component but preserve check_dir status. */ + if l == uint64(1) && Int32FromUint8((**(**[4097]uint8)(__ccgo_up(bp)))[p]) == int32('.') { + p = p + l + goto _2 + } + /* Copy next component onto output at least temporarily, to + * call readlink, but wait to advance output position until + * determining it's not a link. */ + if q != 0 && Int32FromUint8((**(**[4096]uint8)(__ccgo_up(bp + 4097)))[q-uint64(1)]) != int32('/') { + if !(p != 0) { + goto toolong + } + p = p - 1 + v4 = p + (**(**[4097]uint8)(__ccgo_up(bp)))[v4] = uint8('/') + l = l + 1 + } + if q+l >= uint64(PATH_MAX) { + goto toolong + } + Xmemcpy(tls, bp+4097+uintptr(q), bp+uintptr(p), l) + (**(**[4096]uint8)(__ccgo_up(bp + 4097)))[q+l] = uint8(0) + p = p + l + up = 0 + if l0 == uint64(2) && Int32FromUint8((**(**[4097]uint8)(__ccgo_up(bp)))[p-uint64(2)]) == int32('.') && Int32FromUint8((**(**[4097]uint8)(__ccgo_up(bp)))[p-uint64(1)]) == int32('.') { + up = int32(1) + /* Any non-.. path components we could cancel start + * after nup repetitions of the 3-byte string "../"; + * if there are none, accumulate .. components to + * later apply to cwd, if needed. */ + if q <= uint64(3)*nup { + nup = nup + 1 + q = q + l + goto _2 + } + /* When previous components are already known to be + * directories, processing .. can skip readlink. */ + if !(check_dir != 0) { + goto skip_readlink + } + } + k = Xreadlink(tls, bp+4097, bp, p) + if Uint64FromInt64(k) == p { + goto toolong + } + if !(k != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOENT) + return uintptr(0) + } + if !(k < 0) { + goto _8 + } + if **(**int32)(__ccgo_up(X__errno_location(tls))) != int32(EINVAL) { + return uintptr(0) + } + goto skip_readlink +skip_readlink: + ; + check_dir = 0 + if up != 0 { + for q != 0 && Int32FromUint8((**(**[4096]uint8)(__ccgo_up(bp + 4097)))[q-uint64(1)]) != int32('/') { + q = q - 1 + } + if q > uint64(1) && (q > uint64(2) || Int32FromUint8((**(**[4096]uint8)(__ccgo_up(bp + 4097)))[0]) != int32('/')) { + q = q - 1 + } + goto _2 + } + if l0 != 0 { + q = q + l + } + check_dir = Int32FromUint8((**(**[4097]uint8)(__ccgo_up(bp)))[p]) + goto _2 +_8: + ; + cnt = cnt + 1 + v4 = cnt + if v4 == uint64(SYMLOOP_MAX) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ELOOP) + return uintptr(0) + } + /* If link contents end in /, strip any slashes already on + * stack to avoid /->// or //->/// or spurious toolong. */ + if Int32FromUint8((**(**[4097]uint8)(__ccgo_up(bp)))[k-int64(1)]) == int32('/') { + for Int32FromUint8((**(**[4097]uint8)(__ccgo_up(bp)))[p]) == int32('/') { + p = p + 1 + } + } + p = p - Uint64FromInt64(k) + Xmemmove(tls, bp+uintptr(p), bp, Uint64FromInt64(k)) + /* Skip the stack advancement in case we have a new + * absolute base path. */ + goto restart + goto _2 +_2: + ; + p = p + _slash_len(tls, bp+uintptr(p)) + goto _3 + goto _1 +_1: + ; + (**(**[4096]uint8)(__ccgo_up(bp + 4097)))[q] = uint8(0) + if Int32FromUint8((**(**[4096]uint8)(__ccgo_up(bp + 4097)))[0]) != int32('/') { + if !(Xgetcwd(tls, bp, uint64(4097)) != 0) { + return uintptr(0) + } + l = _strlen(tls, bp) + /* Cancel any initial .. components. */ + p = uint64(0) + for { + v4 = nup + nup = nup - 1 + if !(v4 != 0) { + break + } + for l > uint64(1) && Int32FromUint8((**(**[4097]uint8)(__ccgo_up(bp)))[l-uint64(1)]) != int32('/') { + l = l - 1 + } + if l > uint64(1) { + l = l - 1 + } + p = p + uint64(2) + if p < q { + p = p + 1 + } + } + if q-p != 0 && Int32FromUint8((**(**[4097]uint8)(__ccgo_up(bp)))[l-uint64(1)]) != int32('/') { + v4 = l + l = l + 1 + (**(**[4097]uint8)(__ccgo_up(bp)))[v4] = uint8('/') + } + if l+(q-p)+uint64(1) >= uint64(PATH_MAX) { + goto toolong + } + Xmemmove(tls, bp+4097+uintptr(l), bp+4097+uintptr(p), q-p+uint64(1)) + Xmemcpy(tls, bp+4097, bp, l) + q = l + q - p + } + if resolved != 0 { + return Xmemcpy(tls, resolved, bp+4097, q+uint64(1)) + } else { + return Xstrdup(tls, bp+4097) + } + goto toolong +toolong: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENAMETOOLONG) + return uintptr(0) +} + +func Xsetdomainname(tls *TLS, name uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v len1=%v, (%v:)", tls, name, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_setdomainname), int64(name), Int64FromUint64(len1))))) +} + +func Xsetpriority(tls *TLS, which int32, who Tid_t, prio int32) (r int32) { + if __ccgo_strace { + trc("tls=%v which=%v who=%v prio=%v, (%v:)", tls, which, who, prio, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_setpriority), int64(which), Int64FromUint32(who), int64(prio))))) +} + +type Tctx = struct { + Flim [2]uint64 + Fres int32 + Ferr int32 +} + +func _do_setrlimit(tls *TLS, p uintptr) { + var c uintptr + _ = c + c = p + if (*Tctx)(unsafe.Pointer(c)).Ferr > 0 { + return + } + (*Tctx)(unsafe.Pointer(c)).Ferr = int32(-X__syscall2(tls, int64(SYS_setrlimit), int64((*Tctx)(unsafe.Pointer(c)).Fres), int64(c))) +} + +func Xsetrlimit(tls *TLS, resource int32, rlim uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v resource=%v rlim=%v, (%v:)", tls, resource, rlim, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + var ret int32 + var v1, v2 uint64 + var _ /* c at bp+16 */ Tctx + var _ /* tmp at bp+0 */ Trlimit + _, _, _ = ret, v1, v2 + if ^Uint64FromUint64(0) != ^Uint64FromUint64(0) { + **(**Trlimit)(__ccgo_up(bp)) = **(**Trlimit)(__ccgo_up(rlim)) + if (**(**Trlimit)(__ccgo_up(bp))).Frlim_cur >= ^Uint64FromUint64(0) { + (**(**Trlimit)(__ccgo_up(bp))).Frlim_cur = ^Uint64FromUint64(0) + } + if (**(**Trlimit)(__ccgo_up(bp))).Frlim_max >= ^Uint64FromUint64(0) { + (**(**Trlimit)(__ccgo_up(bp))).Frlim_max = ^Uint64FromUint64(0) + } + rlim = bp + } + ret = int32(X__syscall4(tls, int64(SYS_prlimit64), int64(Int32FromInt32(0)), int64(resource), int64(rlim), int64(Int32FromInt32(0)))) + if ret != -int32(ENOSYS) { + return int32(X__syscall_ret(tls, Uint64FromInt32(ret))) + } + if (*Trlimit)(unsafe.Pointer(rlim)).Frlim_cur < ^Uint64FromUint64(0) { + v1 = (*Trlimit)(unsafe.Pointer(rlim)).Frlim_cur + } else { + v1 = ^Uint64FromUint64(0) + } + if (*Trlimit)(unsafe.Pointer(rlim)).Frlim_max < ^Uint64FromUint64(0) { + v2 = (*Trlimit)(unsafe.Pointer(rlim)).Frlim_max + } else { + v2 = ^Uint64FromUint64(0) + } + **(**Tctx)(__ccgo_up(bp + 16)) = Tctx{ + Flim: [2]uint64{ + 0: v1, + 1: v2, + }, + Fres: resource, + Ferr: -int32(1), + } + ___synccall(tls, __ccgo_fp(_do_setrlimit), bp+16) + if (**(**Tctx)(__ccgo_up(bp + 16))).Ferr != 0 { + if (**(**Tctx)(__ccgo_up(bp + 16))).Ferr > 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = (**(**Tctx)(__ccgo_up(bp + 16))).Ferr + } + return -int32(1) + } + return 0 +} + +func Xsyscall(tls *TLS, n int64, va uintptr) (r int64) { + if __ccgo_strace { + trc("tls=%v n=%v va=%v, (%v:)", tls, n, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, b, c, d, e, f Tsyscall_arg_t + var ap Tva_list + _, _, _, _, _, _, _ = a, ap, b, c, d, e, f + ap = va + a = VaInt64(&ap) + b = VaInt64(&ap) + c = VaInt64(&ap) + d = VaInt64(&ap) + e = VaInt64(&ap) + f = VaInt64(&ap) + _ = ap + return X__syscall_ret(tls, Uint64FromInt64(X__syscall6(tls, n, a, b, c, d, e, f))) +} + +const AF_ALG = 38 +const AF_APPLETALK = 5 +const AF_ASH = 18 +const AF_ATMPVC = 8 +const AF_ATMSVC = 20 +const AF_AX25 = 3 +const AF_BLUETOOTH = 31 +const AF_BRIDGE = 7 +const AF_CAIF = 37 +const AF_CAN = 29 +const AF_DECnet = 12 +const AF_ECONET = 19 +const AF_FILE = 1 +const AF_IB = 27 +const AF_IEEE802154 = 36 +const AF_INET = 2 +const AF_INET6 = 10 +const AF_IPX = 4 +const AF_IRDA = 23 +const AF_ISDN = 34 +const AF_IUCV = 32 +const AF_KCM = 41 +const AF_KEY = 15 +const AF_LLC = 26 +const AF_LOCAL = 1 +const AF_MAX = 45 +const AF_MPLS = 28 +const AF_NETBEUI = 13 +const AF_NETLINK = 16 +const AF_NETROM = 6 +const AF_NFC = 39 +const AF_PACKET = 17 +const AF_PHONET = 35 +const AF_PPPOX = 24 +const AF_QIPCRTR = 42 +const AF_RDS = 21 +const AF_ROSE = 11 +const AF_ROUTE = 16 +const AF_RXRPC = 33 +const AF_SECURITY = 14 +const AF_SMC = 43 +const AF_SNA = 22 +const AF_TIPC = 30 +const AF_UNIX = 1 +const AF_UNSPEC = 0 +const AF_VSOCK = 40 +const AF_WANPIPE = 25 +const AF_X25 = 9 +const AF_XDP = 44 +const LOG_ALERT = 1 +const LOG_AUTH = 32 +const LOG_AUTHPRIV = 80 +const LOG_CONS = 2 +const LOG_CRIT = 2 +const LOG_CRON = 72 +const LOG_DAEMON = 24 +const LOG_DEBUG = 7 +const LOG_EMERG = 0 +const LOG_ERR = 3 +const LOG_FACMASK = 1016 +const LOG_FTP = 88 +const LOG_INFO = 6 +const LOG_KERN = 0 +const LOG_LOCAL0 = 128 +const LOG_LOCAL1 = 136 +const LOG_LOCAL2 = 144 +const LOG_LOCAL3 = 152 +const LOG_LOCAL4 = 160 +const LOG_LOCAL5 = 168 +const LOG_LOCAL6 = 176 +const LOG_LOCAL7 = 184 +const LOG_LPR = 48 +const LOG_MAIL = 16 +const LOG_NDELAY = 8 +const LOG_NEWS = 56 +const LOG_NFACILITIES = 24 +const LOG_NOTICE = 5 +const LOG_NOWAIT = 16 +const LOG_ODELAY = 4 +const LOG_PERROR = 32 +const LOG_PID = 1 +const LOG_PRIMASK = 7 +const LOG_SYSLOG = 40 +const LOG_USER = 8 +const LOG_UUCP = 64 +const LOG_WARNING = 4 +const MSG_BATCH = 262144 +const MSG_CMSG_CLOEXEC = 1073741824 +const MSG_CONFIRM = 2048 +const MSG_CTRUNC = 8 +const MSG_DONTROUTE = 4 +const MSG_DONTWAIT = 64 +const MSG_EOR = 128 +const MSG_ERRQUEUE = 8192 +const MSG_FASTOPEN = 536870912 +const MSG_FIN = 512 +const MSG_MORE = 32768 +const MSG_NOSIGNAL = 16384 +const MSG_OOB = 1 +const MSG_PEEK = 2 +const MSG_PROXY = 16 +const MSG_RST = 4096 +const MSG_SYN = 1024 +const MSG_TRUNC = 32 +const MSG_WAITALL = 256 +const MSG_WAITFORONE = 65536 +const MSG_ZEROCOPY = 67108864 +const PF_ALG = 38 +const PF_APPLETALK = 5 +const PF_ASH = 18 +const PF_ATMPVC = 8 +const PF_ATMSVC = 20 +const PF_AX25 = 3 +const PF_BLUETOOTH = 31 +const PF_BRIDGE = 7 +const PF_CAIF = 37 +const PF_CAN = 29 +const PF_DECnet = 12 +const PF_ECONET = 19 +const PF_FILE = 1 +const PF_IB = 27 +const PF_IEEE802154 = 36 +const PF_INET = 2 +const PF_INET6 = 10 +const PF_IPX = 4 +const PF_IRDA = 23 +const PF_ISDN = 34 +const PF_IUCV = 32 +const PF_KCM = 41 +const PF_KEY = 15 +const PF_LLC = 26 +const PF_LOCAL = 1 +const PF_MAX = 45 +const PF_MPLS = 28 +const PF_NETBEUI = 13 +const PF_NETLINK = 16 +const PF_NETROM = 6 +const PF_NFC = 39 +const PF_PACKET = 17 +const PF_PHONET = 35 +const PF_PPPOX = 24 +const PF_QIPCRTR = 42 +const PF_RDS = 21 +const PF_ROSE = 11 +const PF_ROUTE = 16 +const PF_RXRPC = 33 +const PF_SECURITY = 14 +const PF_SMC = 43 +const PF_SNA = 22 +const PF_TIPC = 30 +const PF_UNIX = 1 +const PF_UNSPEC = 0 +const PF_VSOCK = 40 +const PF_WANPIPE = 25 +const PF_X25 = 9 +const PF_XDP = 44 +const SCM_CREDENTIALS = 2 +const SCM_RIGHTS = 1 +const SCM_TIMESTAMP = 29 +const SCM_TIMESTAMPING = 37 +const SCM_TIMESTAMPING_OPT_STATS = 54 +const SCM_TIMESTAMPING_PKTINFO = 58 +const SCM_TIMESTAMPNS = 35 +const SCM_TXTIME = 61 +const SCM_WIFI_STATUS = 41 +const SHUT_RD = 0 +const SHUT_RDWR = 2 +const SHUT_WR = 1 +const SOCK_CLOEXEC = 524288 +const SOCK_DCCP = 6 +const SOCK_DGRAM = 2 +const SOCK_NONBLOCK = 2048 +const SOCK_PACKET = 10 +const SOCK_RAW = 3 +const SOCK_RDM = 4 +const SOCK_SEQPACKET = 5 +const SOCK_STREAM = 1 +const SOL_AAL = 265 +const SOL_ALG = 279 +const SOL_ATM = 264 +const SOL_BLUETOOTH = 274 +const SOL_CAIF = 278 +const SOL_DCCP = 269 +const SOL_DECNET = 261 +const SOL_ICMPV6 = 58 +const SOL_IP = 0 +const SOL_IPV6 = 41 +const SOL_IRDA = 266 +const SOL_IUCV = 277 +const SOL_KCM = 281 +const SOL_LLC = 268 +const SOL_NETBEUI = 267 +const SOL_NETLINK = 270 +const SOL_NFC = 280 +const SOL_PACKET = 263 +const SOL_PNPIPE = 275 +const SOL_PPPOL2TP = 273 +const SOL_RAW = 255 +const SOL_RDS = 276 +const SOL_RXRPC = 272 +const SOL_SOCKET = 1 +const SOL_TIPC = 271 +const SOL_TLS = 282 +const SOL_X25 = 262 +const SOL_XDP = 283 +const SOMAXCONN = 128 +const SO_ACCEPTCONN = 30 +const SO_ATTACH_BPF = 50 +const SO_ATTACH_FILTER = 26 +const SO_ATTACH_REUSEPORT_CBPF = 51 +const SO_ATTACH_REUSEPORT_EBPF = 52 +const SO_BINDTODEVICE = 25 +const SO_BINDTOIFINDEX = 62 +const SO_BPF_EXTENSIONS = 48 +const SO_BROADCAST = 6 +const SO_BSDCOMPAT = 14 +const SO_BUSY_POLL = 46 +const SO_BUSY_POLL_BUDGET = 70 +const SO_CNX_ADVICE = 53 +const SO_COOKIE = 57 +const SO_DEBUG = 1 +const SO_DETACH_BPF = 27 +const SO_DETACH_FILTER = 27 +const SO_DETACH_REUSEPORT_BPF = 68 +const SO_DOMAIN = 39 +const SO_DONTROUTE = 5 +const SO_ERROR = 4 +const SO_GET_FILTER = 26 +const SO_INCOMING_CPU = 49 +const SO_INCOMING_NAPI_ID = 56 +const SO_KEEPALIVE = 9 +const SO_LINGER = 13 +const SO_LOCK_FILTER = 44 +const SO_MARK = 36 +const SO_MAX_PACING_RATE = 47 +const SO_MEMINFO = 55 +const SO_NOFCS = 43 +const SO_NO_CHECK = 11 +const SO_OOBINLINE = 10 +const SO_PASSCRED = 16 +const SO_PASSSEC = 34 +const SO_PEEK_OFF = 42 +const SO_PEERCRED = 17 +const SO_PEERGROUPS = 59 +const SO_PEERNAME = 28 +const SO_PEERSEC = 31 +const SO_PREFER_BUSY_POLL = 69 +const SO_PRIORITY = 12 +const SO_PROTOCOL = 38 +const SO_RCVBUF = 8 +const SO_RCVBUFFORCE = 33 +const SO_RCVLOWAT = 18 +const SO_RCVTIMEO = 20 +const SO_REUSEADDR = 2 +const SO_REUSEPORT = 15 +const SO_RXQ_OVFL = 40 +const SO_SECURITY_AUTHENTICATION = 22 +const SO_SECURITY_ENCRYPTION_NETWORK = 24 +const SO_SECURITY_ENCRYPTION_TRANSPORT = 23 +const SO_SELECT_ERR_QUEUE = 45 +const SO_SNDBUF = 7 +const SO_SNDBUFFORCE = 32 +const SO_SNDLOWAT = 19 +const SO_SNDTIMEO = 21 +const SO_TIMESTAMP = 29 +const SO_TIMESTAMPING = 37 +const SO_TIMESTAMPNS = 35 +const SO_TXTIME = 61 +const SO_TYPE = 3 +const SO_WIFI_STATUS = 41 +const SO_ZEROCOPY = 60 + +type Tsocklen_t = uint32 + +type Tsa_family_t = uint16 + +type Tmsghdr = struct { + Fmsg_name uintptr + Fmsg_namelen Tsocklen_t + Fmsg_iov uintptr + Fmsg_iovlen int32 + F__pad1 int32 + Fmsg_control uintptr + Fmsg_controllen Tsocklen_t + F__pad2 int32 + Fmsg_flags int32 +} + +type Tcmsghdr = struct { + Fcmsg_len Tsocklen_t + F__pad1 int32 + Fcmsg_level int32 + Fcmsg_type int32 +} + +type Tlinger = struct { + Fl_onoff int32 + Fl_linger int32 +} + +type Tsockaddr = struct { + Fsa_family Tsa_family_t + Fsa_data [14]uint8 +} + +type Tsockaddr_storage = struct { + Fss_family Tsa_family_t + F__ss_padding [118]uint8 + F__ss_align uint64 +} + +var _lock2 [1]int32 +var _log_ident [32]uint8 +var _log_opt int32 +var _log_facility = Int32FromInt32(1) << Int32FromInt32(3) +var _log_mask = int32(0xff) +var _log_fd = -int32(1) + +func Xsetlogmask(tls *TLS, maskpri int32) (r int32) { + if __ccgo_strace { + trc("tls=%v maskpri=%v, (%v:)", tls, maskpri, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret int32 + _ = ret + ___lock(tls, uintptr(unsafe.Pointer(&_lock2))) + ret = _log_mask + if maskpri != 0 { + _log_mask = maskpri + } + ___unlock(tls, uintptr(unsafe.Pointer(&_lock2))) + return ret +} + +var _log_addr = struct { + Fsun_family int16 + Fsun_path [9]uint8 +}{ + Fsun_family: int16(PF_LOCAL), + Fsun_path: [9]uint8{'/', 'd', 'e', 'v', '/', 'l', 'o', 'g'}, +} + +func Xcloselog(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* cs at bp+0 */ int32 + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp) + ___lock(tls, uintptr(unsafe.Pointer(&_lock2))) + Xclose(tls, _log_fd) + _log_fd = -int32(1) + ___unlock(tls, uintptr(unsafe.Pointer(&_lock2))) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp)), uintptr(0)) +} + +func ___openlog(tls *TLS) { + _log_fd = Xsocket(tls, int32(PF_LOCAL), Int32FromInt32(SOCK_DGRAM)|Int32FromInt32(SOCK_CLOEXEC), 0) + if _log_fd >= 0 { + Xconnect(tls, _log_fd, uintptr(unsafe.Pointer(&_log_addr)), uint32(12)) + } +} + +func Xopenlog(tls *TLS, ident uintptr, opt int32, facility int32) { + if __ccgo_strace { + trc("tls=%v ident=%v opt=%v facility=%v, (%v:)", tls, ident, opt, facility, origin(2)) + } + bp := tls.Alloc(16) + defer tls.Free(16) + var n Tsize_t + var _ /* cs at bp+0 */ int32 + _ = n + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp) + ___lock(tls, uintptr(unsafe.Pointer(&_lock2))) + if ident != 0 { + n = Xstrnlen(tls, ident, Uint64FromInt64(32)-Uint64FromInt32(1)) + Xmemcpy(tls, uintptr(unsafe.Pointer(&_log_ident)), ident, n) + _log_ident[n] = uint8(0) + } else { + _log_ident[0] = uint8(0) + } + _log_opt = opt + _log_facility = facility + if opt&int32(LOG_NDELAY) != 0 && _log_fd < 0 { + ___openlog(tls) + } + ___unlock(tls, uintptr(unsafe.Pointer(&_lock2))) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp)), uintptr(0)) +} + +func _is_lost_conn(tls *TLS, e int32) (r int32) { + return BoolInt32(e == int32(ECONNREFUSED) || e == int32(ECONNRESET) || e == int32(ENOTCONN) || e == int32(EPIPE)) +} + +func __vsyslog(tls *TLS, priority int32, message uintptr, ap Tva_list) { + bp := tls.Alloc(1184) + defer tls.Free(1184) + var errno_save, fd, l, l2, pid, v1 int32 + var _ /* buf at bp+80 */ [1024]uint8 + var _ /* hlen at bp+1104 */ int32 + var _ /* now at bp+16 */ Ttime_t + var _ /* timebuf at bp+0 */ [16]uint8 + var _ /* tm at bp+24 */ Ttm + _, _, _, _, _, _ = errno_save, fd, l, l2, pid, v1 + errno_save = **(**int32)(__ccgo_up(X__errno_location(tls))) + if _log_fd < 0 { + ___openlog(tls) + } + if !(priority&Int32FromInt32(LOG_FACMASK) != 0) { + priority = priority | _log_facility + } + **(**Ttime_t)(__ccgo_up(bp + 16)) = Xtime(tls, UintptrFromInt32(0)) + Xgmtime_r(tls, bp+16, bp+24) + Xstrftime_l(tls, bp, uint64(16), __ccgo_ts+960, bp+24, uintptr(unsafe.Pointer(&X__c_locale))) + if _log_opt&int32(LOG_PID) != 0 { + v1 = Xgetpid(tls) + } else { + v1 = 0 + } + pid = v1 + l = Xsnprintf(tls, bp+80, uint64(1024), __ccgo_ts+969, VaList(bp+1120, priority, bp, bp+1104, uintptr(unsafe.Pointer(&_log_ident)), __ccgo_ts+991+BoolUintptr(!(pid != 0)), pid, __ccgo_ts+993+BoolUintptr(!(pid != 0)))) + **(**int32)(__ccgo_up(X__errno_location(tls))) = errno_save + l2 = Xvsnprintf(tls, bp+80+uintptr(l), uint64(1024)-Uint64FromInt32(l), message, ap) + if l2 >= 0 { + if Uint64FromInt32(l2) >= uint64(1024)-Uint64FromInt32(l) { + l = Int32FromUint64(Uint64FromInt64(1024) - Uint64FromInt32(1)) + } else { + l = l + l2 + } + if Int32FromUint8((**(**[1024]uint8)(__ccgo_up(bp + 80)))[l-int32(1)]) != int32('\n') { + v1 = l + l = l + 1 + (**(**[1024]uint8)(__ccgo_up(bp + 80)))[v1] = uint8('\n') + } + if Xsend(tls, _log_fd, bp+80, Uint64FromInt32(l), 0) < 0 && (!(_is_lost_conn(tls, **(**int32)(__ccgo_up(X__errno_location(tls)))) != 0) || Xconnect(tls, _log_fd, uintptr(unsafe.Pointer(&_log_addr)), uint32(12)) < 0 || Xsend(tls, _log_fd, bp+80, Uint64FromInt32(l), 0) < 0) && _log_opt&int32(LOG_CONS) != 0 { + fd = Xopen(tls, __ccgo_ts+688, Int32FromInt32(O_WRONLY)|Int32FromInt32(O_NOCTTY)|Int32FromInt32(O_CLOEXEC), 0) + if fd >= 0 { + Xdprintf(tls, fd, __ccgo_ts+995, VaList(bp+1120, l-**(**int32)(__ccgo_up(bp + 1104)), bp+80+uintptr(**(**int32)(__ccgo_up(bp + 1104))))) + Xclose(tls, fd) + } + } + if _log_opt&int32(LOG_PERROR) != 0 { + Xdprintf(tls, int32(2), __ccgo_ts+995, VaList(bp+1120, l-**(**int32)(__ccgo_up(bp + 1104)), bp+80+uintptr(**(**int32)(__ccgo_up(bp + 1104))))) + } + } +} + +func ___vsyslog(tls *TLS, priority int32, message uintptr, ap Tva_list) { + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* cs at bp+0 */ int32 + if !(_log_mask&(Int32FromInt32(1)<<(priority&Int32FromInt32(7))) != 0) || priority & ^Int32FromInt32(0x3ff) != 0 { + return + } + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp) + ___lock(tls, uintptr(unsafe.Pointer(&_lock2))) + __vsyslog(tls, priority, message, ap) + ___unlock(tls, uintptr(unsafe.Pointer(&_lock2))) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp)), uintptr(0)) +} + +func Xsyslog(tls *TLS, priority int32, message uintptr, va uintptr) { + if __ccgo_strace { + trc("tls=%v priority=%v message=%v va=%v, (%v:)", tls, priority, message, va, origin(2)) + } + var ap Tva_list + _ = ap + ap = va + ___vsyslog(tls, priority, message, ap) + _ = ap +} + +type Tutsname1 = struct { + Fsysname [65]uint8 + Fnodename [65]uint8 + Frelease [65]uint8 + Fversion [65]uint8 + Fmachine [65]uint8 + F__domainname [65]uint8 +} + +func Xuname(tls *TLS, uts uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v uts=%v, (%v:)", tls, uts, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_uname), int64(uts))))) +} + +func X__madvise(tls *TLS, addr uintptr, len1 Tsize_t, advice int32) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v len1=%v advice=%v, (%v:)", tls, addr, len1, advice, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_madvise), int64(addr), Int64FromUint64(len1), int64(advice))))) +} + +func Xmadvise(tls *TLS, addr uintptr, len1 Tsize_t, advice int32) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v len1=%v advice=%v, (%v:)", tls, addr, len1, advice, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__madvise(tls, addr, len1, advice) +} + +func Xmincore(tls *TLS, addr uintptr, len1 Tsize_t, vec uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v len1=%v vec=%v, (%v:)", tls, addr, len1, vec, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_mincore), int64(addr), Int64FromUint64(len1), int64(vec))))) +} + +func Xmlock(tls *TLS, addr uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v len1=%v, (%v:)", tls, addr, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_mlock), int64(addr), Int64FromUint64(len1))))) +} + +func Xmlockall(tls *TLS, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v flags=%v, (%v:)", tls, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_mlockall), int64(flags))))) +} + +const OFF_MASK = 4095 +const UNIT = 4096 + +func _dummy5(tls *TLS) { +} + +func X__mmap(tls *TLS, start uintptr, len1 Tsize_t, prot int32, flags int32, fd int32, off Toff_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v start=%v len1=%v prot=%v flags=%v fd=%v off=%v, (%v:)", tls, start, len1, prot, flags, fd, off, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret int64 + _ = ret + if Uint64FromInt64(off)&(-Uint64FromUint64(0x2000)<<(Uint64FromInt32(8)*Uint64FromInt64(8)-Uint64FromInt32(1))|(Uint64FromUint64(4096)-Uint64FromInt32(1))) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(-Int32FromInt32(1)) + } + if len1 >= Uint64FromInt64(Int64FromInt64(INT64_MAX)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOMEM) + return uintptr(-Int32FromInt32(1)) + } + if flags&int32(MAP_FIXED) != 0 { + _dummy5(tls) + } + ret = X__syscall6(tls, int64(SYS_mmap), int64(start), Int64FromUint64(len1), int64(prot), int64(flags), int64(fd), off) + /* Fixup incorrect EPERM from kernel. */ + if ret == int64(-int32(EPERM)) && !(start != 0) && flags&int32(MAP_ANON) != 0 && !(flags&Int32FromInt32(MAP_FIXED) != 0) { + ret = int64(-int32(ENOMEM)) + } + return uintptr(X__syscall_ret(tls, Uint64FromInt64(ret))) +} + +func Xmmap(tls *TLS, start uintptr, len1 Tsize_t, prot int32, flags int32, fd int32, off Toff_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v start=%v len1=%v prot=%v flags=%v fd=%v off=%v, (%v:)", tls, start, len1, prot, flags, fd, off, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__mmap(tls, start, len1, prot, flags, fd, off) +} + +func X__mprotect(tls *TLS, addr uintptr, len1 Tsize_t, prot int32) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v len1=%v prot=%v, (%v:)", tls, addr, len1, prot, origin(2)) + defer func() { trc("-> %v", r) }() + } + var end, start Tsize_t + _, _ = end, start + start = uint64(addr) & -X__libc.Fpage_size + end = uint64(addr+uintptr(len1)+uintptr(X__libc.Fpage_size)-UintptrFromInt32(1)) & -X__libc.Fpage_size + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_mprotect), Int64FromUint64(start), Int64FromUint64(end-start), int64(prot))))) +} + +func Xmprotect(tls *TLS, addr uintptr, len1 Tsize_t, prot int32) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v len1=%v prot=%v, (%v:)", tls, addr, len1, prot, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__mprotect(tls, addr, len1, prot) +} + +func _dummy6(tls *TLS) { +} + +func X__mremap(tls *TLS, old_addr uintptr, old_len Tsize_t, new_len Tsize_t, flags int32, va uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v old_addr=%v old_len=%v new_len=%v flags=%v va=%v, (%v:)", tls, old_addr, old_len, new_len, flags, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var new_addr uintptr + _, _ = ap, new_addr + new_addr = uintptr(0) + if new_len >= Uint64FromInt64(Int64FromInt64(INT64_MAX)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOMEM) + return uintptr(-Int32FromInt32(1)) + } + if flags&int32(MREMAP_FIXED) != 0 { + _dummy6(tls) + ap = va + new_addr = VaUintptr(&ap) + _ = ap + } + return uintptr(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_mremap), int64(old_addr), Int64FromUint64(old_len), Int64FromUint64(new_len), int64(flags), int64(new_addr))))) +} + +func Xmremap(tls *TLS, old_addr uintptr, old_len Tsize_t, new_len Tsize_t, flags int32, va uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v old_addr=%v old_len=%v new_len=%v flags=%v va=%v, (%v:)", tls, old_addr, old_len, new_len, flags, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__mremap(tls, old_addr, old_len, new_len, flags, va) +} + +func Xmsync(tls *TLS, start uintptr, len1 Tsize_t, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v start=%v len1=%v flags=%v, (%v:)", tls, start, len1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_msync), int64(start), Int64FromUint64(len1), int64(flags), 0, 0, 0)))) +} + +func Xmunlock(tls *TLS, addr uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v len1=%v, (%v:)", tls, addr, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_munlock), int64(addr), Int64FromUint64(len1))))) +} + +func Xmunlockall(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall0(tls, int64(SYS_munlockall))))) +} + +func _dummy7(tls *TLS) { +} + +func X__munmap(tls *TLS, start uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v start=%v len1=%v, (%v:)", tls, start, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + _dummy7(tls) + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_munmap), int64(start), Int64FromUint64(len1))))) +} + +func Xmunmap(tls *TLS, start uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v start=%v len1=%v, (%v:)", tls, start, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__munmap(tls, start, len1) +} + +func Xposix_madvise(tls *TLS, addr uintptr, len1 Tsize_t, advice int32) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v len1=%v advice=%v, (%v:)", tls, addr, len1, advice, origin(2)) + defer func() { trc("-> %v", r) }() + } + if advice == int32(MADV_DONTNEED) { + return 0 + } + return int32(-X__syscall3(tls, int64(SYS_madvise), int64(addr), Int64FromUint64(len1), int64(advice))) +} + +func X__shm_mapname(tls *TLS, name uintptr, buf uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v buf=%v, (%v:)", tls, name, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + var p, v1 uintptr + _, _ = p, v1 + for Int32FromUint8(**(**uint8)(__ccgo_up(name))) == int32('/') { + name = name + 1 + } + v1 = X__strchrnul(tls, name, int32('/')) + p = v1 + if **(**uint8)(__ccgo_up(v1)) != 0 || p == name || int64(p)-int64(name) <= int64(2) && Int32FromUint8(**(**uint8)(__ccgo_up(name))) == int32('.') && Int32FromUint8(**(**uint8)(__ccgo_up(p + uintptr(-Int32FromInt32(1))))) == int32('.') { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(0) + } + if int64(p)-int64(name) > int64(NAME_MAX) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENAMETOOLONG) + return uintptr(0) + } + Xmemcpy(tls, buf, __ccgo_ts+1000, uint64(9)) + Xmemcpy(tls, buf+uintptr(9), name, Uint64FromInt64(int64(p)-int64(name)+int64(1))) + return buf +} + +func Xshm_open(tls *TLS, name uintptr, flag int32, mode Tmode_t) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v flag=%v mode=%v, (%v:)", tls, name, flag, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(288) + defer tls.Free(288) + var fd int32 + var v1 uintptr + var _ /* buf at bp+4 */ [265]uint8 + var _ /* cs at bp+0 */ int32 + _, _ = fd, v1 + v1 = X__shm_mapname(tls, name, bp+4) + name = v1 + if !(v1 != 0) { + return -int32(1) + } + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp) + fd = Xopen(tls, name, flag|int32(O_NOFOLLOW)|int32(O_CLOEXEC)|int32(O_NONBLOCK), VaList(bp+280, mode)) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp)), uintptr(0)) + return fd +} + +func Xshm_unlink(tls *TLS, name uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(272) + defer tls.Free(272) + var v1 uintptr + var _ /* buf at bp+0 */ [265]uint8 + _ = v1 + v1 = X__shm_mapname(tls, name, bp) + name = v1 + if !(v1 != 0) { + return -int32(1) + } + return Xunlink(tls, name) +} + +const SA = 194 +const SB = 244 +const bittab = 0 + +func Xbtowc(tls *TLS, c int32) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + var b, v3 int32 + var v1, v2 uint32 + _, _, _, _ = b, v1, v2, v3 + b = Int32FromUint8(Uint8FromInt32(c)) + if Uint32FromInt32(b) < uint32(128) { + v1 = Uint32FromInt32(b) + } else { + if !!(**(**uintptr)(__ccgo_up((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale)) != 0) { + v3 = int32(4) + } else { + v3 = int32(1) + } + if v3 == int32(1) && c != -int32(1) { + v2 = Uint32FromInt32(Int32FromInt32(0xdfff) & int32(int8(c))) + } else { + v2 = uint32(0xffffffff) + } + v1 = v2 + } + return v1 +} + +type Tchar16_t = uint16 + +type Tchar32_t = uint32 + +func Xc16rtomb(tls *TLS, s uintptr, c16 Tchar16_t, ps uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v c16=%v ps=%v, (%v:)", tls, s, c16, ps, origin(2)) + defer func() { trc("-> %v", r) }() + } + var wc Twchar_t + var x uintptr + _, _ = wc, x + if !(ps != 0) { + ps = uintptr(unsafe.Pointer(&_internal_state)) + } + x = ps + if !(s != 0) { + if **(**uint32)(__ccgo_up(x)) != 0 { + goto ilseq + } + return uint64(1) + } + if !(**(**uint32)(__ccgo_up(x)) != 0) && uint32(c16)-uint32(0xd800) < uint32(0x400) { + **(**uint32)(__ccgo_up(x)) = Uint32FromInt32((Int32FromUint16(c16) - int32(0xd7c0)) << int32(10)) + return uint64(0) + } + if **(**uint32)(__ccgo_up(x)) != 0 { + if uint32(c16)-uint32(0xdc00) >= uint32(0x400) { + goto ilseq + } else { + wc = Int32FromUint32(**(**uint32)(__ccgo_up(x)) + uint32(c16) - uint32(0xdc00)) + } + **(**uint32)(__ccgo_up(x)) = uint32(0) + } else { + wc = Int32FromUint16(c16) + } + return Xwcrtomb(tls, s, wc, uintptr(0)) + goto ilseq +ilseq: + ; + **(**uint32)(__ccgo_up(x)) = uint32(0) + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EILSEQ) + return Uint64FromInt32(-Int32FromInt32(1)) +} + +var _internal_state uint32 + +func Xc32rtomb(tls *TLS, s uintptr, c32 Tchar32_t, ps uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v c32=%v ps=%v, (%v:)", tls, s, c32, ps, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwcrtomb(tls, s, Int32FromUint32(c32), ps) +} + +func Xmblen(tls *TLS, s uintptr, n Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v, (%v:)", tls, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xmbtowc(tls, uintptr(0), s, n) +} + +func Xmbrlen(tls *TLS, s uintptr, n Tsize_t, st uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v st=%v, (%v:)", tls, s, n, st, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 uintptr + _ = v1 + if st != 0 { + v1 = st + } else { + v1 = uintptr(unsafe.Pointer(&_internal)) + } + return Xmbrtowc(tls, uintptr(0), s, n, v1) +} + +var _internal uint32 + +func Xmbrtoc16(tls *TLS, pc16 uintptr, s uintptr, n Tsize_t, ps uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v pc16=%v s=%v n=%v ps=%v, (%v:)", tls, pc16, s, n, ps, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var pending uintptr + var ret Tsize_t + var _ /* wc at bp+0 */ Twchar_t + _, _ = pending, ret + if !(ps != 0) { + ps = uintptr(unsafe.Pointer(&_internal_state1)) + } + pending = ps + if !(s != 0) { + return Xmbrtoc16(tls, uintptr(0), __ccgo_ts, uint64(1), ps) + } + /* mbrtowc states for partial UTF-8 characters have the high bit set; + * we use nonzero states without high bit for pending surrogates. */ + if Int32FromUint32(**(**uint32)(__ccgo_up(pending))) > 0 { + if pc16 != 0 { + **(**Tchar16_t)(__ccgo_up(pc16)) = uint16(**(**uint32)(__ccgo_up(pending))) + } + **(**uint32)(__ccgo_up(pending)) = uint32(0) + return Uint64FromInt32(-Int32FromInt32(3)) + } + ret = Xmbrtowc(tls, bp, s, n, ps) + if ret <= uint64(4) { + if **(**Twchar_t)(__ccgo_up(bp)) >= int32(0x10000) { + **(**uint32)(__ccgo_up(pending)) = Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp))&int32(0x3ff) + int32(0xdc00)) + **(**Twchar_t)(__ccgo_up(bp)) = int32(0xd7c0) + **(**Twchar_t)(__ccgo_up(bp))>>Int32FromInt32(10) + } + if pc16 != 0 { + **(**Tchar16_t)(__ccgo_up(pc16)) = Uint16FromInt32(**(**Twchar_t)(__ccgo_up(bp))) + } + } + return ret +} + +var _internal_state1 uint32 + +func Xmbrtoc32(tls *TLS, pc32 uintptr, s uintptr, n Tsize_t, ps uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v pc32=%v s=%v n=%v ps=%v, (%v:)", tls, pc32, s, n, ps, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ret Tsize_t + var _ /* wc at bp+0 */ Twchar_t + _ = ret + if !(ps != 0) { + ps = uintptr(unsafe.Pointer(&_internal_state2)) + } + if !(s != 0) { + return Xmbrtoc32(tls, uintptr(0), __ccgo_ts, uint64(1), ps) + } + ret = Xmbrtowc(tls, bp, s, n, ps) + if ret <= uint64(4) && pc32 != 0 { + **(**Tchar32_t)(__ccgo_up(pc32)) = Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp))) + } + return ret +} + +var _internal_state2 uint32 + +func Xmbrtowc(tls *TLS, wc uintptr, src uintptr, n Tsize_t, st uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v wc=%v src=%v n=%v st=%v, (%v:)", tls, wc, src, n, st, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var N Tsize_t + var c uint32 + var s, v3 uintptr + var v1 Twchar_t + var v2 int32 + var _ /* dummy at bp+0 */ Twchar_t + _, _, _, _, _, _ = N, c, s, v1, v2, v3 + s = src + N = n + if !(st != 0) { + st = uintptr(unsafe.Pointer(&_internal_state3)) + } + c = **(**uint32)(__ccgo_up(st)) + if !(s != 0) { + if c != 0 { + goto ilseq + } + return uint64(0) + } else { + if !(wc != 0) { + wc = bp + } + } + if !(n != 0) { + return Uint64FromInt32(-Int32FromInt32(2)) + } + if !(c != 0) { + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) < int32(0x80) { + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(s))) + **(**Twchar_t)(__ccgo_up(wc)) = v1 + return BoolUint64(!!(v1 != 0)) + } + if !!(**(**uintptr)(__ccgo_up((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale)) != 0) { + v2 = int32(4) + } else { + v2 = int32(1) + } + if v2 == int32(1) { + **(**Twchar_t)(__ccgo_up(wc)) = Int32FromInt32(0xdfff) & int32(Int8FromUint8(**(**uint8)(__ccgo_up(s)))) + return Uint64FromInt32(1) + } + if uint32(**(**uint8)(__ccgo_up(s)))-uint32(0xc2) > Uint32FromUint32(0xf4)-Uint32FromUint32(0xc2) { + goto ilseq + } + v3 = s + s = s + 1 + c = X__fsmu8[uint32(**(**uint8)(__ccgo_up(v3)))-uint32(0xc2)] + n = n - 1 + } + if n != 0 { + if (Int32FromUint8(**(**uint8)(__ccgo_up(s)))>>int32(3)-int32(0x10)|(Int32FromUint8(**(**uint8)(__ccgo_up(s)))>>int32(3)+Int32FromUint32(c)>>Int32FromInt32(26))) & ^Int32FromInt32(7) != 0 { + goto ilseq + } + goto loop + loop: + ; + v3 = s + s = s + 1 + c = c<= uint32(0x40) { + goto ilseq + } + goto loop + } + } + **(**uint32)(__ccgo_up(st)) = c + return Uint64FromInt32(-Int32FromInt32(2)) + goto ilseq +ilseq: + ; + **(**uint32)(__ccgo_up(st)) = uint32(0) + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EILSEQ) + return Uint64FromInt32(-Int32FromInt32(1)) +} + +var _internal_state3 uint32 + +func Xmbsinit(tls *TLS, st uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v st=%v, (%v:)", tls, st, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(!(st != 0) || !(**(**uint32)(__ccgo_up(st)) != 0)) +} + +func Xmbsnrtowcs(tls *TLS, wcs uintptr, src uintptr, n Tsize_t, wn Tsize_t, st uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v wcs=%v src=%v n=%v wn=%v st=%v, (%v:)", tls, wcs, src, n, wn, st, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(1040) + defer tls.Free(1040) + var cnt, l, n2, v1 Tsize_t + var tmp_s, ws uintptr + var v2 bool + var v3 uint64 + var _ /* s at bp+1024 */ uintptr + var _ /* wbuf at bp+0 */ [256]Twchar_t + _, _, _, _, _, _, _, _ = cnt, l, n2, tmp_s, ws, v1, v2, v3 + cnt = uint64(0) + **(**uintptr)(__ccgo_up(bp + 1024)) = **(**uintptr)(__ccgo_up(src)) + if !(wcs != 0) { + ws = bp + wn = Uint64FromInt64(1024) / Uint64FromInt64(4) + } else { + ws = wcs + } + /* making sure output buffer size is at most n/4 will ensure + * that mbsrtowcs never reads more than n input bytes. thus + * we can use mbsrtowcs as long as it's practical.. */ + for { + if v2 = **(**uintptr)(__ccgo_up(bp + 1024)) != 0 && wn != 0; v2 { + v1 = n / Uint64FromInt32(4) + n2 = v1 + } + if !(v2 && (v1 >= wn || n2 > uint64(32))) { + break + } + if n2 >= wn { + n2 = wn + } + tmp_s = **(**uintptr)(__ccgo_up(bp + 1024)) + l = Xmbsrtowcs(tls, ws, bp+1024, n2, st) + if !(l+Uint64FromInt32(1) != 0) { + cnt = l + wn = uint64(0) + break + } + if ws != bp { + ws = ws + uintptr(l)*4 + wn = wn - l + } + if **(**uintptr)(__ccgo_up(bp + 1024)) != 0 { + v3 = n - Uint64FromInt64(int64(**(**uintptr)(__ccgo_up(bp + 1024)))-int64(tmp_s)) + } else { + v3 = uint64(0) + } + n = v3 + cnt = cnt + l + } + if **(**uintptr)(__ccgo_up(bp + 1024)) != 0 { + for wn != 0 && n != 0 { + l = Xmbrtowc(tls, ws, **(**uintptr)(__ccgo_up(bp + 1024)), n, st) + if l+uint64(2) <= uint64(2) { + if !(l+Uint64FromInt32(1) != 0) { + cnt = l + break + } + if !(l != 0) { + **(**uintptr)(__ccgo_up(bp + 1024)) = uintptr(0) + break + } + /* have to roll back partial character */ + **(**uint32)(__ccgo_up(st)) = uint32(0) + break + } + **(**uintptr)(__ccgo_up(bp + 1024)) = **(**uintptr)(__ccgo_up(bp + 1024)) + uintptr(l) + n = n - l + /* safe - this loop runs fewer than sizeof(wbuf)/8 times */ + ws += 4 + wn = wn - 1 + cnt = cnt + 1 + } + } + if wcs != 0 { + **(**uintptr)(__ccgo_up(src)) = **(**uintptr)(__ccgo_up(bp + 1024)) + } + return cnt +} + +func Xmbsrtowcs(tls *TLS, ws uintptr, src uintptr, wn Tsize_t, st uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v ws=%v src=%v wn=%v st=%v, (%v:)", tls, ws, src, wn, st, origin(2)) + defer func() { trc("-> %v", r) }() + } + var c, v1 uint32 + var s, v5, v6 uintptr + var wn0 Tsize_t + var v2 bool + var v3 int32 + _, _, _, _, _, _, _, _ = c, s, wn0, v1, v2, v3, v5, v6 + s = **(**uintptr)(__ccgo_up(src)) + wn0 = wn + c = uint32(0) + if v2 = st != 0; v2 { + v1 = **(**uint32)(__ccgo_up(st)) + c = v1 + } + if v2 && v1 != 0 { + if ws != 0 { + **(**uint32)(__ccgo_up(st)) = uint32(0) + goto resume + } else { + goto resume0 + } + } + if !!(**(**uintptr)(__ccgo_up((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale)) != 0) { + v3 = int32(4) + } else { + v3 = int32(1) + } + if v3 == int32(1) { + if !(ws != 0) { + return _strlen(tls, s) + } + for { + if !(wn != 0) { + **(**uintptr)(__ccgo_up(src)) = s + return wn0 + } + if !(**(**uint8)(__ccgo_up(s)) != 0) { + break + } + v5 = s + s = s + 1 + c = uint32(**(**uint8)(__ccgo_up(v5))) + v5 = ws + ws += 4 + **(**Twchar_t)(__ccgo_up(v5)) = Int32FromInt32(0xdfff) & int32(Int8FromUint32(c)) + wn = wn - 1 + goto _4 + _4: + } + **(**Twchar_t)(__ccgo_up(ws)) = 0 + **(**uintptr)(__ccgo_up(src)) = uintptr(0) + return wn0 - wn + } + if !!(ws != 0) { + goto _7 + } +_11: + ; + if uint32(**(**uint8)(__ccgo_up(s)))-uint32(1) < uint32(0x7f) && uint64(s)%uint64(4) == uint64(0) { + for !((**(**uint32)(__ccgo_up(s))|(**(**uint32)(__ccgo_up(s))-Uint32FromInt32(0x01010101)))&Uint32FromUint32(0x80808080) != 0) { + s = s + uintptr(4) + wn = wn - uint64(4) + } + } + if uint32(**(**uint8)(__ccgo_up(s)))-uint32(1) < uint32(0x7f) { + s = s + 1 + wn = wn - 1 + goto _10 + } + if uint32(**(**uint8)(__ccgo_up(s)))-uint32(0xc2) > Uint32FromUint32(0xf4)-Uint32FromUint32(0xc2) { + goto _9 + } + v5 = s + s = s + 1 + c = X__fsmu8[uint32(**(**uint8)(__ccgo_up(v5)))-uint32(0xc2)] + goto resume0 +resume0: + ; + if (Int32FromUint8(**(**uint8)(__ccgo_up(s)))>>int32(3)-int32(0x10)|(Int32FromUint8(**(**uint8)(__ccgo_up(s)))>>int32(3)+Int32FromUint32(c)>>Int32FromInt32(26))) & ^Int32FromInt32(7) != 0 { + s = s - 1 + goto _9 + } + s = s + 1 + if c&(Uint32FromUint32(1)<= uint32(0x40) { + s = s - uintptr(2) + goto _9 + } + s = s + 1 + if c&(Uint32FromUint32(1)<= uint32(0x40) { + s = s - uintptr(3) + goto _9 + } + s = s + 1 + } + } + wn = wn - 1 + c = uint32(0) + goto _10 +_10: + ; + goto _11 + goto _9 +_9: + ; + goto _8 +_7: + ; +_15: + ; + if !(wn != 0) { + **(**uintptr)(__ccgo_up(src)) = s + return wn0 + } + if uint32(**(**uint8)(__ccgo_up(s)))-uint32(1) < uint32(0x7f) && uint64(s)%uint64(4) == uint64(0) { + for wn >= uint64(5) && !((**(**uint32)(__ccgo_up(s))|(**(**uint32)(__ccgo_up(s))-Uint32FromInt32(0x01010101)))&Uint32FromUint32(0x80808080) != 0) { + v5 = ws + ws += 4 + v6 = s + s = s + 1 + **(**Twchar_t)(__ccgo_up(v5)) = Int32FromUint8(**(**uint8)(__ccgo_up(v6))) + v5 = ws + ws += 4 + v6 = s + s = s + 1 + **(**Twchar_t)(__ccgo_up(v5)) = Int32FromUint8(**(**uint8)(__ccgo_up(v6))) + v5 = ws + ws += 4 + v6 = s + s = s + 1 + **(**Twchar_t)(__ccgo_up(v5)) = Int32FromUint8(**(**uint8)(__ccgo_up(v6))) + v5 = ws + ws += 4 + v6 = s + s = s + 1 + **(**Twchar_t)(__ccgo_up(v5)) = Int32FromUint8(**(**uint8)(__ccgo_up(v6))) + wn = wn - uint64(4) + } + } + if uint32(**(**uint8)(__ccgo_up(s)))-uint32(1) < uint32(0x7f) { + v5 = ws + ws += 4 + v6 = s + s = s + 1 + **(**Twchar_t)(__ccgo_up(v5)) = Int32FromUint8(**(**uint8)(__ccgo_up(v6))) + wn = wn - 1 + goto _14 + } + if uint32(**(**uint8)(__ccgo_up(s)))-uint32(0xc2) > Uint32FromUint32(0xf4)-Uint32FromUint32(0xc2) { + goto _13 + } + v5 = s + s = s + 1 + c = X__fsmu8[uint32(**(**uint8)(__ccgo_up(v5)))-uint32(0xc2)] + goto resume +resume: + ; + if (Int32FromUint8(**(**uint8)(__ccgo_up(s)))>>int32(3)-int32(0x10)|(Int32FromUint8(**(**uint8)(__ccgo_up(s)))>>int32(3)+Int32FromUint32(c)>>Int32FromInt32(26))) & ^Int32FromInt32(7) != 0 { + s = s - 1 + goto _13 + } + v5 = s + s = s + 1 + c = c<= uint32(0x40) { + s = s - uintptr(2) + goto _13 + } + v5 = s + s = s + 1 + c = c<= uint32(0x40) { + s = s - uintptr(3) + goto _13 + } + v5 = s + s = s + 1 + c = c< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + *(*uintptr)(unsafe.Pointer(bp)) = _s + return Xmbsrtowcs(tls, ws, bp, wn, uintptr(0)) +} + +func Xmbtowc(tls *TLS, wc uintptr, src uintptr, n Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v src=%v n=%v, (%v:)", tls, wc, src, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var c uint32 + var s, v3 uintptr + var v1 Twchar_t + var v2 int32 + var _ /* dummy at bp+0 */ Twchar_t + _, _, _, _, _ = c, s, v1, v2, v3 + s = src + if !(s != 0) { + return 0 + } + if !(n != 0) { + goto ilseq + } + if !(wc != 0) { + wc = bp + } + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) < int32(0x80) { + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(s))) + **(**Twchar_t)(__ccgo_up(wc)) = v1 + return BoolInt32(!!(v1 != 0)) + } + if !!(**(**uintptr)(__ccgo_up((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale)) != 0) { + v2 = int32(4) + } else { + v2 = int32(1) + } + if v2 == int32(1) { + **(**Twchar_t)(__ccgo_up(wc)) = Int32FromInt32(0xdfff) & int32(Int8FromUint8(**(**uint8)(__ccgo_up(s)))) + return Int32FromInt32(1) + } + if uint32(**(**uint8)(__ccgo_up(s)))-uint32(0xc2) > Uint32FromUint32(0xf4)-Uint32FromUint32(0xc2) { + goto ilseq + } + v3 = s + s = s + 1 + c = X__fsmu8[uint32(**(**uint8)(__ccgo_up(v3)))-uint32(0xc2)] + /* Avoid excessive checks against n: If shifting the state n-1 + * times does not clear the high bit, then the value of n is + * insufficient to read a character */ + if n < uint64(4) && c<<(uint64(6)*n-uint64(6))&(Uint32FromUint32(1)<>int32(3)-int32(0x10)|(Int32FromUint8(**(**uint8)(__ccgo_up(s)))>>int32(3)+Int32FromUint32(c)>>Int32FromInt32(26))) & ^Int32FromInt32(7) != 0 { + goto ilseq + } + v3 = s + s = s + 1 + c = c<= uint32(0x40) { + goto ilseq + } + v3 = s + s = s + 1 + c = c<= uint32(0x40) { + goto ilseq + } + v3 = s + s = s + 1 + **(**Twchar_t)(__ccgo_up(wc)) = Int32FromUint32(c< %v", r) }() + } + var v1 int32 + var v2 uintptr + _, _ = v1, v2 + if !(s != 0) { + return uint64(1) + } + if Uint32FromInt32(wc) < uint32(0x80) { + **(**uint8)(__ccgo_up(s)) = Uint8FromInt32(wc) + return uint64(1) + } else { + if !!(**(**uintptr)(__ccgo_up((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale)) != 0) { + v1 = int32(4) + } else { + v1 = int32(1) + } + if v1 == int32(1) { + if !(Uint32FromInt32(wc)-Uint32FromInt32(0xdf80) < Uint32FromInt32(0x80)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EILSEQ) + return Uint64FromInt32(-Int32FromInt32(1)) + } + **(**uint8)(__ccgo_up(s)) = Uint8FromInt32(wc) + return uint64(1) + } else { + if Uint32FromInt32(wc) < uint32(0x800) { + v2 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = Uint8FromInt32(int32(0xc0) | wc>>Int32FromInt32(6)) + **(**uint8)(__ccgo_up(s)) = Uint8FromInt32(int32(0x80) | wc&int32(0x3f)) + return uint64(2) + } else { + if Uint32FromInt32(wc) < uint32(0xd800) || Uint32FromInt32(wc)-uint32(0xe000) < uint32(0x2000) { + v2 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = Uint8FromInt32(int32(0xe0) | wc>>Int32FromInt32(12)) + v2 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = Uint8FromInt32(int32(0x80) | wc>>Int32FromInt32(6)&int32(0x3f)) + **(**uint8)(__ccgo_up(s)) = Uint8FromInt32(int32(0x80) | wc&int32(0x3f)) + return uint64(3) + } else { + if Uint32FromInt32(wc)-uint32(0x10000) < uint32(0x100000) { + v2 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = Uint8FromInt32(int32(0xf0) | wc>>Int32FromInt32(18)) + v2 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = Uint8FromInt32(int32(0x80) | wc>>Int32FromInt32(12)&int32(0x3f)) + v2 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = Uint8FromInt32(int32(0x80) | wc>>Int32FromInt32(6)&int32(0x3f)) + **(**uint8)(__ccgo_up(s)) = Uint8FromInt32(int32(0x80) | wc&int32(0x3f)) + return uint64(4) + } + } + } + } + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EILSEQ) + return Uint64FromInt32(-Int32FromInt32(1)) +} + +func Xwcsnrtombs(tls *TLS, dst uintptr, wcs uintptr, wn Tsize_t, n Tsize_t, st uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v dst=%v wcs=%v wn=%v n=%v st=%v, (%v:)", tls, dst, wcs, wn, n, st, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var cnt, l Tsize_t + var ws, v1 uintptr + var _ /* tmp at bp+0 */ [4]uint8 + _, _, _, _ = cnt, l, ws, v1 + ws = **(**uintptr)(__ccgo_up(wcs)) + cnt = uint64(0) + if !(dst != 0) { + n = uint64(0) + } + for ws != 0 && wn != 0 { + if n < uint64(MB_LEN_MAX) { + v1 = bp + } else { + v1 = dst + } + l = Xwcrtomb(tls, v1, **(**Twchar_t)(__ccgo_up(ws)), uintptr(0)) + if l == Uint64FromInt32(-Int32FromInt32(1)) { + cnt = Uint64FromInt32(-Int32FromInt32(1)) + break + } + if dst != 0 { + if n < uint64(MB_LEN_MAX) { + if l > n { + break + } + Xmemcpy(tls, dst, bp, l) + } + dst = dst + uintptr(l) + n = n - l + } + if !(**(**Twchar_t)(__ccgo_up(ws)) != 0) { + ws = uintptr(0) + break + } + ws += 4 + wn = wn - 1 + cnt = cnt + l + } + if dst != 0 { + **(**uintptr)(__ccgo_up(wcs)) = ws + } + return cnt +} + +func Xwcsrtombs(tls *TLS, s uintptr, ws uintptr, n Tsize_t, st uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v ws=%v n=%v st=%v, (%v:)", tls, s, ws, n, st, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var N, l Tsize_t + var ws2, v2 uintptr + var _ /* buf at bp+0 */ [4]uint8 + _, _, _, _ = N, l, ws2, v2 + N = n + if !(s != 0) { + n = uint64(0) + ws2 = **(**uintptr)(__ccgo_up(ws)) + for { + if !(**(**Twchar_t)(__ccgo_up(ws2)) != 0) { + break + } + if Uint32FromInt32(**(**Twchar_t)(__ccgo_up(ws2))) >= uint32(0x80) { + l = Xwcrtomb(tls, bp, **(**Twchar_t)(__ccgo_up(ws2)), uintptr(0)) + if !(l+Uint64FromInt32(1) != 0) { + return Uint64FromInt32(-Int32FromInt32(1)) + } + n = n + l + } else { + n = n + 1 + } + goto _1 + _1: + ; + ws2 += 4 + } + return n + } + for n >= uint64(4) { + if Uint32FromInt32(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(ws)))))-uint32(1) >= uint32(0x7f) { + if !(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(ws)))) != 0) { + **(**uint8)(__ccgo_up(s)) = uint8(0) + **(**uintptr)(__ccgo_up(ws)) = uintptr(0) + return N - n + } + l = Xwcrtomb(tls, s, **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(ws)))), uintptr(0)) + if !(l+Uint64FromInt32(1) != 0) { + return Uint64FromInt32(-Int32FromInt32(1)) + } + s = s + uintptr(l) + n = n - l + } else { + v2 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = Uint8FromInt32(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(ws))))) + n = n - 1 + } + **(**uintptr)(__ccgo_up(ws)) += 4 + } + for n != 0 { + if Uint32FromInt32(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(ws)))))-uint32(1) >= uint32(0x7f) { + if !(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(ws)))) != 0) { + **(**uint8)(__ccgo_up(s)) = uint8(0) + **(**uintptr)(__ccgo_up(ws)) = uintptr(0) + return N - n + } + l = Xwcrtomb(tls, bp, **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(ws)))), uintptr(0)) + if !(l+Uint64FromInt32(1) != 0) { + return Uint64FromInt32(-Int32FromInt32(1)) + } + if l > n { + return N - n + } + Xwcrtomb(tls, s, **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(ws)))), uintptr(0)) + s = s + uintptr(l) + n = n - l + } else { + v2 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = Uint8FromInt32(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(ws))))) + n = n - 1 + } + **(**uintptr)(__ccgo_up(ws)) += 4 + } + return N +} + +func Xwcstombs(tls *TLS, s uintptr, ws uintptr, n Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v ws=%v n=%v, (%v:)", tls, s, ws, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + *(*uintptr)(unsafe.Pointer(bp)) = ws + return Xwcsrtombs(tls, s, bp, n, uintptr(0)) +} + +func Xwctob(tls *TLS, c Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + _ = v1 + if c < uint32(128) { + return Int32FromUint32(c) + } + if !!(**(**uintptr)(__ccgo_up((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale)) != 0) { + v1 = int32(4) + } else { + v1 = int32(1) + } + if v1 == int32(1) && c-uint32(0xdf80) < uint32(0x80) { + return Int32FromUint8(uint8(c)) + } + return -int32(1) +} + +func Xwctomb(tls *TLS, s uintptr, wc Twchar_t) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v wc=%v, (%v:)", tls, s, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + if !(s != 0) { + return 0 + } + return Int32FromUint64(Xwcrtomb(tls, s, wc, uintptr(0))) +} + +func Xaccept(tls *TLS, fd int32, addr uintptr, len1 uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v addr=%v len1=%v, (%v:)", tls, fd, addr, len1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v8 int64 + var v1 int32 + var v2, v3, v4, v5, v6, v7 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _ = r, v1, v2, v3, v4, v5, v6, v7, v8 + v1 = int32(SYS_accept) + _ = int32(__SC_accept) + v2 = int64(fd) + v3 = int64(addr) + v4 = int64(len1) + v5 = int64(Int32FromInt32(0)) + v6 = int64(Int32FromInt32(0)) + v7 = int64(Int32FromInt32(0)) + if int32(1) != 0 { + r = ___syscall_cp(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _9 + } + v8 = r + goto _9 +_9: + return int32(X__syscall_ret(tls, Uint64FromInt64(v8))) +} + +type Tucred = struct { + Fpid Tpid_t + Fuid Tuid_t + Fgid Tgid_t +} + +type Tmmsghdr = struct { + Fmsg_hdr Tmsghdr + Fmsg_len uint32 +} + +func Xaccept4(tls *TLS, fd int32, addr uintptr, len1 uintptr, flg int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v addr=%v len1=%v flg=%v, (%v:)", tls, fd, addr, len1, flg, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v8 int64 + var ret, v1 int32 + var v2, v3, v4, v5, v6, v7 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _, _ = r, ret, v1, v2, v3, v4, v5, v6, v7, v8 + if !(flg != 0) { + return Xaccept(tls, fd, addr, len1) + } + v1 = int32(SYS_accept4) + _ = int32(__SC_accept4) + v2 = int64(fd) + v3 = int64(addr) + v4 = int64(len1) + v5 = int64(flg) + v6 = int64(Int32FromInt32(0)) + v7 = int64(Int32FromInt32(0)) + if int32(1) != 0 { + r = ___syscall_cp(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _9 + } + v8 = r + goto _9 +_9: + ret = int32(X__syscall_ret(tls, Uint64FromInt64(v8))) + if ret >= 0 || **(**int32)(__ccgo_up(X__errno_location(tls))) != int32(ENOSYS) && **(**int32)(__ccgo_up(X__errno_location(tls))) != int32(EINVAL) { + return ret + } + if flg & ^(Int32FromInt32(SOCK_CLOEXEC)|Int32FromInt32(SOCK_NONBLOCK)) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + ret = Xaccept(tls, fd, addr, len1) + if ret < 0 { + return ret + } + if flg&int32(SOCK_CLOEXEC) != 0 { + X__syscall3(tls, int64(SYS_fcntl), int64(ret), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + } + if flg&int32(SOCK_NONBLOCK) != 0 { + X__syscall3(tls, int64(SYS_fcntl), int64(ret), int64(Int32FromInt32(F_SETFL)), int64(Int32FromInt32(O_NONBLOCK))) + } + return ret +} + +func Xbind(tls *TLS, fd int32, addr uintptr, len1 Tsocklen_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v addr=%v len1=%v, (%v:)", tls, fd, addr, len1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v8 int64 + var v1 int32 + var v2, v3, v4, v5, v6, v7 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _ = r, v1, v2, v3, v4, v5, v6, v7, v8 + v1 = int32(SYS_bind) + _ = int32(__SC_bind) + v2 = int64(fd) + v3 = int64(addr) + v4 = Int64FromUint32(len1) + v5 = int64(Int32FromInt32(0)) + v6 = int64(Int32FromInt32(0)) + v7 = int64(Int32FromInt32(0)) + if 0 != 0 { + r = ___syscall_cp(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _9 + } + v8 = r + goto _9 +_9: + return int32(X__syscall_ret(tls, Uint64FromInt64(v8))) +} + +func Xconnect(tls *TLS, fd int32, addr uintptr, len1 Tsocklen_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v addr=%v len1=%v, (%v:)", tls, fd, addr, len1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v8 int64 + var v1 int32 + var v2, v3, v4, v5, v6, v7 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _ = r, v1, v2, v3, v4, v5, v6, v7, v8 + v1 = int32(SYS_connect) + _ = int32(__SC_connect) + v2 = int64(fd) + v3 = int64(addr) + v4 = Int64FromUint32(len1) + v5 = int64(Int32FromInt32(0)) + v6 = int64(Int32FromInt32(0)) + v7 = int64(Int32FromInt32(0)) + if int32(1) != 0 { + r = ___syscall_cp(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _9 + } + v8 = r + goto _9 +_9: + return int32(X__syscall_ret(tls, Uint64FromInt64(v8))) +} + +const ADD = 0 +const C_ANY = 0 +const C_CHAOS = 0 +const C_HS = 0 +const C_IN = 0 +const C_NONE = 0 +const DELETE = 0 +const FORMERR = 0 +const GETLONG = 0 +const GETSHORT = 0 +const HFIXEDSZ = 12 +const IN6ADDRSZ = 16 +const INADDRSZ = 4 +const INDIR_MASK = 192 +const INET6_ADDRSTRLEN = 46 +const INET_ADDRSTRLEN = 16 +const INT16SZ = 2 +const INT32SZ = 4 +const INT8SZ = 1 +const IN_CLASSA_HOST = 16777215 +const IN_CLASSA_MAX = 128 +const IN_CLASSA_NET = 4278190080 +const IN_CLASSA_NSHIFT = 24 +const IN_CLASSB_HOST = 65535 +const IN_CLASSB_MAX = 65536 +const IN_CLASSB_NET = 4294901760 +const IN_CLASSB_NSHIFT = 16 +const IN_CLASSC_HOST = 255 +const IN_CLASSC_NET = 4294967040 +const IN_CLASSC_NSHIFT = 8 +const IN_LOOPBACKNET = 127 +const IPPORT_RESERVED = 1024 +const IPPROTO_AH = 51 +const IPPROTO_BEETPH = 94 +const IPPROTO_COMP = 108 +const IPPROTO_DCCP = 33 +const IPPROTO_DSTOPTS = 60 +const IPPROTO_EGP = 8 +const IPPROTO_ENCAP = 98 +const IPPROTO_ESP = 50 +const IPPROTO_ETHERNET = 143 +const IPPROTO_FRAGMENT = 44 +const IPPROTO_GRE = 47 +const IPPROTO_HOPOPTS = 0 +const IPPROTO_ICMP = 1 +const IPPROTO_ICMPV6 = 58 +const IPPROTO_IDP = 22 +const IPPROTO_IGMP = 2 +const IPPROTO_IP = 0 +const IPPROTO_IPIP = 4 +const IPPROTO_IPV6 = 41 +const IPPROTO_MAX = 263 +const IPPROTO_MH = 135 +const IPPROTO_MPLS = 137 +const IPPROTO_MPTCP = 262 +const IPPROTO_MTP = 92 +const IPPROTO_NONE = 59 +const IPPROTO_PIM = 103 +const IPPROTO_PUP = 12 +const IPPROTO_RAW = 255 +const IPPROTO_ROUTING = 43 +const IPPROTO_RSVP = 46 +const IPPROTO_SCTP = 132 +const IPPROTO_TCP = 6 +const IPPROTO_TP = 29 +const IPPROTO_UDP = 17 +const IPPROTO_UDPLITE = 136 +const IPV6_2292DSTOPTS = 4 +const IPV6_2292HOPLIMIT = 8 +const IPV6_2292HOPOPTS = 3 +const IPV6_2292PKTINFO = 2 +const IPV6_2292PKTOPTIONS = 6 +const IPV6_2292RTHDR = 5 +const IPV6_ADDRFORM = 1 +const IPV6_ADDR_PREFERENCES = 72 +const IPV6_ADD_MEMBERSHIP = 20 +const IPV6_AUTHHDR = 10 +const IPV6_AUTOFLOWLABEL = 70 +const IPV6_CHECKSUM = 7 +const IPV6_DONTFRAG = 62 +const IPV6_DROP_MEMBERSHIP = 21 +const IPV6_DSTOPTS = 59 +const IPV6_FREEBIND = 78 +const IPV6_HDRINCL = 36 +const IPV6_HOPLIMIT = 52 +const IPV6_HOPOPTS = 54 +const IPV6_IPSEC_POLICY = 34 +const IPV6_JOIN_ANYCAST = 27 +const IPV6_JOIN_GROUP = 20 +const IPV6_LEAVE_ANYCAST = 28 +const IPV6_LEAVE_GROUP = 21 +const IPV6_MINHOPCOUNT = 73 +const IPV6_MTU = 24 +const IPV6_MTU_DISCOVER = 23 +const IPV6_MULTICAST_ALL = 29 +const IPV6_MULTICAST_HOPS = 18 +const IPV6_MULTICAST_IF = 17 +const IPV6_MULTICAST_LOOP = 19 +const IPV6_NEXTHOP = 9 +const IPV6_ORIGDSTADDR = 74 +const IPV6_PATHMTU = 61 +const IPV6_PKTINFO = 50 +const IPV6_PMTUDISC_DO = 2 +const IPV6_PMTUDISC_DONT = 0 +const IPV6_PMTUDISC_INTERFACE = 4 +const IPV6_PMTUDISC_OMIT = 5 +const IPV6_PMTUDISC_PROBE = 3 +const IPV6_PMTUDISC_WANT = 1 +const IPV6_PREFER_SRC_CGA = 8 +const IPV6_PREFER_SRC_COA = 4 +const IPV6_PREFER_SRC_HOME = 1024 +const IPV6_PREFER_SRC_NONCGA = 2048 +const IPV6_PREFER_SRC_PUBLIC = 2 +const IPV6_PREFER_SRC_PUBTMP_DEFAULT = 256 +const IPV6_PREFER_SRC_TMP = 1 +const IPV6_RECVDSTOPTS = 58 +const IPV6_RECVERR = 25 +const IPV6_RECVFRAGSIZE = 77 +const IPV6_RECVHOPLIMIT = 51 +const IPV6_RECVHOPOPTS = 53 +const IPV6_RECVORIGDSTADDR = 74 +const IPV6_RECVPATHMTU = 60 +const IPV6_RECVPKTINFO = 49 +const IPV6_RECVRTHDR = 56 +const IPV6_RECVTCLASS = 66 +const IPV6_ROUTER_ALERT = 22 +const IPV6_ROUTER_ALERT_ISOLATE = 30 +const IPV6_RTHDR = 57 +const IPV6_RTHDRDSTOPTS = 55 +const IPV6_RTHDR_LOOSE = 0 +const IPV6_RTHDR_STRICT = 1 +const IPV6_RTHDR_TYPE_0 = 0 +const IPV6_RXDSTOPTS = 59 +const IPV6_RXHOPOPTS = 54 +const IPV6_TCLASS = 67 +const IPV6_TRANSPARENT = 75 +const IPV6_UNICAST_HOPS = 16 +const IPV6_UNICAST_IF = 76 +const IPV6_V6ONLY = 26 +const IPV6_XFRM_POLICY = 35 +const IP_ADD_MEMBERSHIP = 35 +const IP_ADD_SOURCE_MEMBERSHIP = 39 +const IP_BIND_ADDRESS_NO_PORT = 24 +const IP_BLOCK_SOURCE = 38 +const IP_CHECKSUM = 23 +const IP_DEFAULT_MULTICAST_LOOP = 1 +const IP_DEFAULT_MULTICAST_TTL = 1 +const IP_DROP_MEMBERSHIP = 36 +const IP_DROP_SOURCE_MEMBERSHIP = 40 +const IP_FREEBIND = 15 +const IP_HDRINCL = 3 +const IP_IPSEC_POLICY = 16 +const IP_MAX_MEMBERSHIPS = 20 +const IP_MINTTL = 21 +const IP_MSFILTER = 41 +const IP_MTU = 14 +const IP_MTU_DISCOVER = 10 +const IP_MULTICAST_ALL = 49 +const IP_MULTICAST_IF = 32 +const IP_MULTICAST_LOOP = 34 +const IP_MULTICAST_TTL = 33 +const IP_NODEFRAG = 22 +const IP_OPTIONS = 4 +const IP_ORIGDSTADDR = 20 +const IP_PASSSEC = 18 +const IP_PKTINFO = 8 +const IP_PKTOPTIONS = 9 +const IP_PMTUDISC = 10 +const IP_PMTUDISC_DO = 2 +const IP_PMTUDISC_DONT = 0 +const IP_PMTUDISC_INTERFACE = 4 +const IP_PMTUDISC_OMIT = 5 +const IP_PMTUDISC_PROBE = 3 +const IP_PMTUDISC_WANT = 1 +const IP_RECVERR = 11 +const IP_RECVERR_RFC4884 = 26 +const IP_RECVFRAGSIZE = 25 +const IP_RECVOPTS = 6 +const IP_RECVORIGDSTADDR = 20 +const IP_RECVRETOPTS = 7 +const IP_RECVTOS = 13 +const IP_RECVTTL = 12 +const IP_RETOPTS = 7 +const IP_ROUTER_ALERT = 5 +const IP_TOS = 1 +const IP_TRANSPARENT = 19 +const IP_TTL = 2 +const IP_UNBLOCK_SOURCE = 37 +const IP_UNICAST_IF = 50 +const IP_XFRM_POLICY = 17 +const IQUERY = 0 +const LOCALDOMAINPARTS = 2 +const MAXCDNAME = 255 +const MAXDFLSRCH = 3 +const MAXDNAME = 1025 +const MAXDNSRCH = 6 +const MAXLABEL = 63 +const MAXNS = 3 +const MAXRESOLVSORT = 10 +const NAMESERVER_PORT = 53 +const NOERROR = 0 +const NOTAUTH = 0 +const NOTIMP = 0 +const NOTZONE = 0 +const NS_ALG_DH = 2 +const NS_ALG_DSA = 3 +const NS_ALG_DSS = 3 +const NS_ALG_EXPIRE_ONLY = 253 +const NS_ALG_MD5RSA = 1 +const NS_ALG_PRIVATE_OID = 254 +const NS_CMPRSFLGS = 192 +const NS_DEFAULTPORT = 53 +const NS_DSA_MAX_BYTES = 405 +const NS_DSA_MIN_SIZE = 213 +const NS_DSA_SIG_SIZE = 41 +const NS_HFIXEDSZ = 12 +const NS_IN6ADDRSZ = 16 +const NS_INADDRSZ = 4 +const NS_INT16SZ = 2 +const NS_INT32SZ = 4 +const NS_INT8SZ = 1 +const NS_KEY_EXTENDED_FLAGS = 4096 +const NS_KEY_NAME_ENTITY = 512 +const NS_KEY_NAME_RESERVED = 768 +const NS_KEY_NAME_TYPE = 768 +const NS_KEY_NAME_USER = 0 +const NS_KEY_NAME_ZONE = 256 +const NS_KEY_NO_AUTH = 32768 +const NS_KEY_NO_CONF = 16384 +const NS_KEY_PROT_ANY = 255 +const NS_KEY_PROT_DNSSEC = 3 +const NS_KEY_PROT_EMAIL = 2 +const NS_KEY_PROT_IPSEC = 4 +const NS_KEY_PROT_TLS = 1 +const NS_KEY_RESERVED10 = 32 +const NS_KEY_RESERVED11 = 16 +const NS_KEY_RESERVED2 = 8192 +const NS_KEY_RESERVED4 = 2048 +const NS_KEY_RESERVED5 = 1024 +const NS_KEY_RESERVED8 = 128 +const NS_KEY_RESERVED9 = 64 +const NS_KEY_RESERVED_BITMASK = 11504 +const NS_KEY_RESERVED_BITMASK2 = 65535 +const NS_KEY_SIGNATORYMASK = 15 +const NS_KEY_TYPEMASK = 49152 +const NS_KEY_TYPE_AUTH_CONF = 0 +const NS_KEY_TYPE_AUTH_ONLY = 16384 +const NS_KEY_TYPE_CONF_ONLY = 32768 +const NS_KEY_TYPE_NO_KEY = 49152 +const NS_MAXCDNAME = 255 +const NS_MAXDNAME = 1025 +const NS_MAXLABEL = 63 +const NS_MAXMSG = 65535 +const NS_MD5RSA_MAX_BASE64 = 10928 +const NS_MD5RSA_MAX_BITS = 4096 +const NS_MD5RSA_MAX_BYTES = 8195 +const NS_MD5RSA_MAX_SIZE = 512 +const NS_MD5RSA_MIN_BITS = 512 +const NS_MD5RSA_MIN_SIZE = 64 +const NS_NOTIFY_OP = 0 +const NS_NXT_BITS = 8 +const NS_NXT_MAX = 127 +const NS_OPT_DNSSEC_OK = 32768 +const NS_OPT_NSID = 3 +const NS_PACKETSZ = 512 +const NS_QFIXEDSZ = 4 +const NS_RRFIXEDSZ = 10 +const NS_SIG_ALG = 2 +const NS_SIG_EXPIR = 8 +const NS_SIG_FOOT = 16 +const NS_SIG_LABELS = 3 +const NS_SIG_OTTL = 4 +const NS_SIG_SIGNED = 12 +const NS_SIG_SIGNER = 18 +const NS_SIG_TYPE = 0 +const NS_TSIG_ALG_HMAC_MD5 = "HMAC-MD5.SIG-ALG.REG.INT" +const NS_TSIG_ERROR_FORMERR = -12 +const NS_TSIG_ERROR_NO_SPACE = -11 +const NS_TSIG_ERROR_NO_TSIG = -10 +const NS_TSIG_FUDGE = 300 +const NS_TSIG_TCP_COUNT = 100 +const NS_UPDATE_OP = 0 +const NXDOMAIN = 0 +const NXRRSET = 0 +const PACKETSZ = 512 +const PRIX16 = "X" +const PRIX32 = "X" +const PRIX8 = "X" +const PRIXFAST16 = "X" +const PRIXFAST32 = "X" +const PRIXFAST8 = "X" +const PRIXLEAST16 = "X" +const PRIXLEAST32 = "X" +const PRIXLEAST8 = "X" +const PRId16 = "d" +const PRId32 = "d" +const PRId8 = "d" +const PRIdFAST16 = "d" +const PRIdFAST32 = "d" +const PRIdFAST8 = "d" +const PRIdLEAST16 = "d" +const PRIdLEAST32 = "d" +const PRIdLEAST8 = "d" +const PRIi16 = "i" +const PRIi32 = "i" +const PRIi8 = "i" +const PRIiFAST16 = "i" +const PRIiFAST32 = "i" +const PRIiFAST8 = "i" +const PRIiLEAST16 = "i" +const PRIiLEAST32 = "i" +const PRIiLEAST8 = "i" +const PRIo16 = "o" +const PRIo32 = "o" +const PRIo8 = "o" +const PRIoFAST16 = "o" +const PRIoFAST32 = "o" +const PRIoFAST8 = "o" +const PRIoLEAST16 = "o" +const PRIoLEAST32 = "o" +const PRIoLEAST8 = "o" +const PRIu16 = "u" +const PRIu32 = "u" +const PRIu8 = "u" +const PRIuFAST16 = "u" +const PRIuFAST32 = "u" +const PRIuFAST8 = "u" +const PRIuLEAST16 = "u" +const PRIuLEAST32 = "u" +const PRIuLEAST8 = "u" +const PRIx16 = "x" +const PRIx32 = "x" +const PRIx8 = "x" +const PRIxFAST16 = "x" +const PRIxFAST32 = "x" +const PRIxFAST8 = "x" +const PRIxLEAST16 = "x" +const PRIxLEAST32 = "x" +const PRIxLEAST8 = "x" +const PUTLONG = 0 +const PUTSHORT = 0 +const QFIXEDSZ = 4 +const QUERY = 0 +const REFUSED = 0 +const RES_AAONLY = 4 +const RES_BLAST = 131072 +const RES_DEBUG = 2 +const RES_DEFAULT = 524992 +const RES_DEFNAMES = 128 +const RES_DFLRETRY = 2 +const RES_DNSRCH = 512 +const RES_EXHAUSTIVE = 1 +const RES_F_CONN = 2 +const RES_F_EDNS0ERR = 4 +const RES_F_VC = 1 +const RES_IGNTC = 32 +const RES_INIT = 1 +const RES_INSECURE1 = 1024 +const RES_INSECURE2 = 2048 +const RES_KEEPTSIG = 65536 +const RES_MAXNDOTS = 15 +const RES_MAXRETRANS = 30 +const RES_MAXRETRY = 5 +const RES_MAXTIME = 65535 +const RES_NOALIASES = 4096 +const RES_NOCHECKNAME = 32768 +const RES_NOIP6DOTINT = 524288 +const RES_PRF_ADD = 128 +const RES_PRF_ANS = 32 +const RES_PRF_AUTH = 64 +const RES_PRF_CLASS = 4 +const RES_PRF_CMD = 8 +const RES_PRF_HEAD1 = 256 +const RES_PRF_HEAD2 = 512 +const RES_PRF_HEADX = 2048 +const RES_PRF_INIT = 16384 +const RES_PRF_QUERY = 4096 +const RES_PRF_QUES = 16 +const RES_PRF_REPLY = 8192 +const RES_PRF_STATS = 1 +const RES_PRF_TTLID = 1024 +const RES_PRF_UPDATE = 2 +const RES_PRIMARY = 16 +const RES_RECURSE = 64 +const RES_ROTATE = 16384 +const RES_SNGLKUP = 2097152 +const RES_SNGLKUPREOP = 4194304 +const RES_STAYOPEN = 256 +const RES_TIMEOUT = 5 +const RES_USEBSTRING = 262144 +const RES_USEVC = 8 +const RES_USE_DNSSEC = 8388608 +const RES_USE_EDNS0 = 1048576 +const RES_USE_INET6 = 8192 +const RRFIXEDSZ = 10 +const SCNd16 = "hd" +const SCNd32 = "d" +const SCNd8 = "hhd" +const SCNdFAST16 = "d" +const SCNdFAST32 = "d" +const SCNdFAST8 = "hhd" +const SCNdLEAST16 = "hd" +const SCNdLEAST32 = "d" +const SCNdLEAST8 = "hhd" +const SCNi16 = "hi" +const SCNi32 = "i" +const SCNi8 = "hhi" +const SCNiFAST16 = "i" +const SCNiFAST32 = "i" +const SCNiFAST8 = "hhi" +const SCNiLEAST16 = "hi" +const SCNiLEAST32 = "i" +const SCNiLEAST8 = "hhi" +const SCNo16 = "ho" +const SCNo32 = "o" +const SCNo8 = "hho" +const SCNoFAST16 = "o" +const SCNoFAST32 = "o" +const SCNoFAST8 = "hho" +const SCNoLEAST16 = "ho" +const SCNoLEAST32 = "o" +const SCNoLEAST8 = "hho" +const SCNu16 = "hu" +const SCNu32 = "u" +const SCNu8 = "hhu" +const SCNuFAST16 = "u" +const SCNuFAST32 = "u" +const SCNuFAST8 = "hhu" +const SCNuLEAST16 = "hu" +const SCNuLEAST32 = "u" +const SCNuLEAST8 = "hhu" +const SCNx16 = "hx" +const SCNx32 = "x" +const SCNx8 = "hhx" +const SCNxFAST16 = "x" +const SCNxFAST32 = "x" +const SCNxFAST8 = "hhx" +const SCNxLEAST16 = "hx" +const SCNxLEAST32 = "x" +const SCNxLEAST8 = "hhx" +const SERVFAIL = 0 +const STATUS = 0 +const S_ADDT = 0 +const S_PREREQ = 0 +const S_UPDATE = 0 +const S_ZONE = 0 +const T_A = 0 +const T_A6 = 0 +const T_AAAA = 0 +const T_AFSDB = 0 +const T_ANY = 0 +const T_ATMA = 0 +const T_AVC = 0 +const T_AXFR = 0 +const T_CAA = 0 +const T_CDNSKEY = 0 +const T_CDS = 0 +const T_CNAME = 0 +const T_CSYNC = 0 +const T_DHCID = 0 +const T_DLV = 0 +const T_DNAME = 0 +const T_DNSKEY = 0 +const T_DS = 0 +const T_EID = 0 +const T_EUI48 = 0 +const T_EUI64 = 0 +const T_GID = 0 +const T_GPOS = 0 +const T_HINFO = 0 +const T_HIP = 0 +const T_IPSECKEY = 0 +const T_ISDN = 0 +const T_IXFR = 0 +const T_KEY = 0 +const T_L32 = 0 +const T_L64 = 0 +const T_LOC = 0 +const T_LP = 0 +const T_MAILA = 0 +const T_MAILB = 0 +const T_MB = 0 +const T_MD = 0 +const T_MF = 0 +const T_MG = 0 +const T_MINFO = 0 +const T_MR = 0 +const T_MX = 0 +const T_NAPTR = 0 +const T_NID = 0 +const T_NIMLOC = 0 +const T_NINFO = 0 +const T_NS = 0 +const T_NSAP = 0 +const T_NSAP_PTR = 0 +const T_NSEC = 0 +const T_NSEC3 = 0 +const T_NSEC3PARAM = 0 +const T_NULL = 0 +const T_NXT = 0 +const T_OPENPGPKEY = 0 +const T_PTR = 0 +const T_PX = 0 +const T_RKEY = 0 +const T_RP = 0 +const T_RRSIG = 0 +const T_RT = 0 +const T_SIG = 0 +const T_SMIMEA = 0 +const T_SOA = 0 +const T_SPF = 0 +const T_SRV = 0 +const T_SSHFP = 0 +const T_TA = 0 +const T_TALINK = 0 +const T_TKEY = 0 +const T_TLSA = 0 +const T_TSIG = 0 +const T_TXT = 0 +const T_UID = 0 +const T_UINFO = 0 +const T_UNSPEC = 0 +const T_URI = 0 +const T_WKS = 0 +const T_X25 = 0 +const YXDOMAIN = 0 +const YXRRSET = 0 +const _PATH_RESCONF = "/etc/resolv.conf" +const __BIND = 19950621 +const __NAMESER = 19991006 +const __PRI64 = "l" +const __PRIPTR = "l" +const __RES = 19960801 +const __UAPI_DEF_IN6_ADDR = 0 +const __UAPI_DEF_IN6_ADDR_ALT = 0 +const __UAPI_DEF_IN6_PKTINFO = 0 +const __UAPI_DEF_IN_ADDR = 0 +const __UAPI_DEF_IN_CLASS = 0 +const __UAPI_DEF_IN_IPPROTO = 0 +const __UAPI_DEF_IN_PKTINFO = 0 +const __UAPI_DEF_IP6_MTUINFO = 0 +const __UAPI_DEF_IPPROTO_V6 = 0 +const __UAPI_DEF_IPV6_MREQ = 0 +const __UAPI_DEF_IPV6_OPTIONS = 0 +const __UAPI_DEF_IP_MREQ = 0 +const __UAPI_DEF_SOCKADDR_IN = 0 +const __UAPI_DEF_SOCKADDR_IN6 = 0 +const _res = 0 + +type Tns_sect = int32 + +type ___ns_sect = int32 + +const _ns_s_qd = 0 +const _ns_s_zn = 0 +const _ns_s_an = 1 +const _ns_s_pr = 1 +const _ns_s_ns = 2 +const _ns_s_ud = 2 +const _ns_s_ar = 3 +const _ns_s_max = 4 + +type Tns_msg = struct { + F_msg uintptr + F_eom uintptr + F_id Tuint16_t + F_flags Tuint16_t + F_counts [4]Tuint16_t + F_sections [4]uintptr + F_sect Tns_sect + F_rrnum int32 + F_msg_ptr uintptr +} + +type t__ns_msg = Tns_msg + +type T_ns_flagdata = struct { + Fmask int32 + Fshift int32 +} + +type Tns_rr = struct { + Fname [1025]uint8 + Ftype1 Tuint16_t + Frr_class Tuint16_t + Fttl Tuint32_t + Frdlength Tuint16_t + Frdata uintptr +} + +type t__ns_rr = Tns_rr + +type Tns_flag = int32 + +type ___ns_flag = int32 + +const _ns_f_qr = 0 +const _ns_f_opcode = 1 +const _ns_f_aa = 2 +const _ns_f_tc = 3 +const _ns_f_rd = 4 +const _ns_f_ra = 5 +const _ns_f_z = 6 +const _ns_f_ad = 7 +const _ns_f_cd = 8 +const _ns_f_rcode = 9 +const _ns_f_max = 10 + +type Tns_opcode = int32 + +type ___ns_opcode = int32 + +const _ns_o_query = 0 +const _ns_o_iquery = 1 +const _ns_o_status = 2 +const _ns_o_notify = 4 +const _ns_o_update = 5 +const _ns_o_max = 6 + +type Tns_rcode = int32 + +type ___ns_rcode = int32 + +const _ns_r_noerror = 0 +const _ns_r_formerr = 1 +const _ns_r_servfail = 2 +const _ns_r_nxdomain = 3 +const _ns_r_notimpl = 4 +const _ns_r_refused = 5 +const _ns_r_yxdomain = 6 +const _ns_r_yxrrset = 7 +const _ns_r_nxrrset = 8 +const _ns_r_notauth = 9 +const _ns_r_notzone = 10 +const _ns_r_max = 11 +const _ns_r_badvers = 16 +const _ns_r_badsig = 16 +const _ns_r_badkey = 17 +const _ns_r_badtime = 18 + +type Tns_update_operation = int32 + +type ___ns_update_operation = int32 + +const _ns_uop_delete = 0 +const _ns_uop_add = 1 +const _ns_uop_max = 2 + +type Tns_tsig_key = struct { + Fname [1025]uint8 + Falg [1025]uint8 + Fdata uintptr + Flen1 int32 +} + +type Tns_tcp_tsig_state = struct { + Fcounter int32 + Fkey uintptr + Fctx uintptr + Fsig [512]uint8 + Fsiglen int32 +} + +type Tns_type = int32 + +type ___ns_type = int32 + +const _ns_t_invalid = 0 +const _ns_t_a = 1 +const _ns_t_ns = 2 +const _ns_t_md = 3 +const _ns_t_mf = 4 +const _ns_t_cname = 5 +const _ns_t_soa = 6 +const _ns_t_mb = 7 +const _ns_t_mg = 8 +const _ns_t_mr = 9 +const _ns_t_null = 10 +const _ns_t_wks = 11 +const _ns_t_ptr = 12 +const _ns_t_hinfo = 13 +const _ns_t_minfo = 14 +const _ns_t_mx = 15 +const _ns_t_txt = 16 +const _ns_t_rp = 17 +const _ns_t_afsdb = 18 +const _ns_t_x25 = 19 +const _ns_t_isdn = 20 +const _ns_t_rt = 21 +const _ns_t_nsap = 22 +const _ns_t_nsap_ptr = 23 +const _ns_t_sig = 24 +const _ns_t_key = 25 +const _ns_t_px = 26 +const _ns_t_gpos = 27 +const _ns_t_aaaa = 28 +const _ns_t_loc = 29 +const _ns_t_nxt = 30 +const _ns_t_eid = 31 +const _ns_t_nimloc = 32 +const _ns_t_srv = 33 +const _ns_t_atma = 34 +const _ns_t_naptr = 35 +const _ns_t_kx = 36 +const _ns_t_cert = 37 +const _ns_t_a6 = 38 +const _ns_t_dname = 39 +const _ns_t_sink = 40 +const _ns_t_opt = 41 +const _ns_t_apl = 42 +const _ns_t_ds = 43 +const _ns_t_sshfp = 44 +const _ns_t_ipseckey = 45 +const _ns_t_rrsig = 46 +const _ns_t_nsec = 47 +const _ns_t_dnskey = 48 +const _ns_t_dhcid = 49 +const _ns_t_nsec3 = 50 +const _ns_t_nsec3param = 51 +const _ns_t_tlsa = 52 +const _ns_t_smimea = 53 +const _ns_t_hip = 55 +const _ns_t_ninfo = 56 +const _ns_t_rkey = 57 +const _ns_t_talink = 58 +const _ns_t_cds = 59 +const _ns_t_cdnskey = 60 +const _ns_t_openpgpkey = 61 +const _ns_t_csync = 62 +const _ns_t_spf = 99 +const _ns_t_uinfo = 100 +const _ns_t_uid = 101 +const _ns_t_gid = 102 +const _ns_t_unspec = 103 +const _ns_t_nid = 104 +const _ns_t_l32 = 105 +const _ns_t_l64 = 106 +const _ns_t_lp = 107 +const _ns_t_eui48 = 108 +const _ns_t_eui64 = 109 +const _ns_t_tkey = 249 +const _ns_t_tsig = 250 +const _ns_t_ixfr = 251 +const _ns_t_axfr = 252 +const _ns_t_mailb = 253 +const _ns_t_maila = 254 +const _ns_t_any = 255 +const _ns_t_zxfr = 256 +const _ns_t_uri = 256 +const _ns_t_caa = 257 +const _ns_t_avc = 258 +const _ns_t_ta = 32768 +const _ns_t_dlv = 32769 +const _ns_t_max = 65536 + +type Tns_class = int32 + +type ___ns_class = int32 + +const _ns_c_invalid = 0 +const _ns_c_in = 1 +const _ns_c_2 = 2 +const _ns_c_chaos = 3 +const _ns_c_hs = 4 +const _ns_c_none = 254 +const _ns_c_any = 255 +const _ns_c_max = 65536 + +type Tns_key_types = int32 + +type ___ns_key_types = int32 + +const _ns_kt_rsa = 1 +const _ns_kt_dh = 2 +const _ns_kt_dsa = 3 +const _ns_kt_private = 254 + +type Tns_cert_types = int32 + +type ___ns_cert_types = int32 + +const _cert_t_pkix = 1 +const _cert_t_spki = 2 +const _cert_t_pgp = 3 +const _cert_t_url = 253 +const _cert_t_oid = 254 + +type THEADER = struct { + F__ccgo0 uint32 + F__ccgo4 uint32 + F__ccgo8 uint32 +} + +type Timaxdiv_t = struct { + Fquot Tintmax_t + Frem Tintmax_t +} + +type Tin_port_t = uint16 + +type Tin_addr_t = uint32 + +type Tin_addr = struct { + Fs_addr Tin_addr_t +} + +type Tsockaddr_in = struct { + Fsin_family Tsa_family_t + Fsin_port Tin_port_t + Fsin_addr Tin_addr + Fsin_zero [8]Tuint8_t +} + +type Tin6_addr = struct { + F__in6_union struct { + F__s6_addr16 [0][8]Tuint16_t + F__s6_addr32 [0][4]Tuint32_t + F__s6_addr [16]Tuint8_t + } +} + +type Tsockaddr_in6 = struct { + Fsin6_family Tsa_family_t + Fsin6_port Tin_port_t + Fsin6_flowinfo Tuint32_t + Fsin6_addr Tin6_addr + Fsin6_scope_id Tuint32_t +} + +type Tipv6_mreq = struct { + Fipv6mr_multiaddr Tin6_addr + Fipv6mr_interface uint32 +} + +type Tip_opts = struct { + Fip_dst Tin_addr + Fip_opts [40]uint8 +} + +type Tres_state = uintptr + +type t__res_state = struct { + Fretrans int32 + Fretry int32 + Foptions uint64 + Fnscount int32 + Fnsaddr_list [3]Tsockaddr_in + Fid uint16 + Fdnsrch [7]uintptr + Fdefdname [256]uint8 + Fpfcode uint64 + F__ccgo392 uint32 + Fsort_list [10]struct { + Faddr Tin_addr + Fmask Tuint32_t + } + Fqhook uintptr + Frhook uintptr + Fres_h_errno int32 + F_vcsock int32 + F_flags uint32 + F_u struct { + F_ext [0]struct { + Fnscount Tuint16_t + Fnsmap [3]Tuint16_t + Fnssocks [3]int32 + Fnscount6 Tuint16_t + Fnsinit Tuint16_t + Fnsaddrs [3]uintptr + F_initstamp [2]uint32 + } + Fpad [52]uint8 + F__ccgo_pad2 [4]byte + } +} + +type Tres_sym = struct { + Fnumber int32 + Fname uintptr + Fhumanname uintptr +} + +/* RFC 1035 message compression */ + +// C documentation +// +// /* label start offsets of a compressed domain name s */ +func _getoffs(tls *TLS, offs uintptr, base uintptr, s uintptr) (r int32) { + var i, v2 int32 + _, _ = i, v2 + i = 0 + for { + for Int32FromUint8(**(**uint8)(__ccgo_up(s)))&int32(0xc0) != 0 { + if Int32FromUint8(**(**uint8)(__ccgo_up(s)))&int32(0xc0) != int32(0xc0) { + return 0 + } + s = base + uintptr(Int32FromUint8(**(**uint8)(__ccgo_up(s)))&Int32FromInt32(0x3f)<= int64(0x4000) { + return 0 + } + v2 = i + i = i + 1 + **(**int16)(__ccgo_up(offs + uintptr(v2)*2)) = int16(int64(s) - int64(base)) + s = s + uintptr(Int32FromUint8(**(**uint8)(__ccgo_up(s)))+int32(1)) + goto _1 + _1: + } + return r +} + +// C documentation +// +// /* label lengths of an ascii domain name s */ +func _getlens(tls *TLS, lens uintptr, s uintptr, l int32) (r int32) { + var i, j, k, v3 int32 + _, _, _, _ = i, j, k, v3 + i = 0 + j = 0 + k = 0 + for { + for { + if !(j < l && Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(j)))) != int32('.')) { + break + } + goto _2 + _2: + ; + j = j + 1 + } + if Uint32FromInt32(j-k)-uint32(1) > uint32(62) { + return 0 + } + v3 = i + i = i + 1 + **(**uint8)(__ccgo_up(lens + uintptr(v3))) = Uint8FromInt32(j - k) + if j == l { + return i + } + j = j + 1 + v3 = j + k = v3 + goto _1 + _1: + } + return r +} + +// C documentation +// +// /* longest suffix match of an ascii domain with a compressed domain name dn */ +func _match(tls *TLS, offset uintptr, base uintptr, dn uintptr, end uintptr, lens uintptr, nlen int32) (r int32) { + bp := tls.Alloc(256) + defer tls.Free(256) + var l, m, noff, o, v2 int32 + var _ /* offs at bp+0 */ [128]int16 + _, _, _, _, _ = l, m, noff, o, v2 + m = 0 + noff = _getoffs(tls, bp, base, dn) + if !(noff != 0) { + return 0 + } + for { + nlen = nlen - 1 + v2 = nlen + l = Int32FromUint8(**(**uint8)(__ccgo_up(lens + uintptr(v2)))) + noff = noff - 1 + v2 = noff + o = int32((**(**[128]int16)(__ccgo_up(bp)))[v2]) + end = end - uintptr(l) + if l != Int32FromUint8(**(**uint8)(__ccgo_up(base + uintptr(o)))) || Xmemcmp(tls, base+uintptr(o)+uintptr(1), end, Uint64FromInt32(l)) != 0 { + return m + } + **(**int32)(__ccgo_up(offset)) = o + m = m + l + if nlen != 0 { + m = m + 1 + } + if !(nlen != 0) || !(noff != 0) { + return m + } + end = end - 1 + goto _1 + _1: + } + return r +} + +func Xdn_comp(tls *TLS, src uintptr, dst uintptr, space int32, dnptrs uintptr, lastdnptr uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v src=%v dst=%v space=%v dnptrs=%v lastdnptr=%v, (%v:)", tls, src, dst, space, dnptrs, lastdnptr, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(144) + defer tls.Free(144) + var bestlen, bestoff, i, j, m, n, v3 int32 + var end, p, v8 uintptr + var l Tsize_t + var _ /* lens at bp+4 */ [127]uint8 + var _ /* offset at bp+0 */ int32 + _, _, _, _, _, _, _, _, _, _, _ = bestlen, bestoff, end, i, j, l, m, n, p, v3, v8 + m = 0 + bestlen = 0 + l = Xstrnlen(tls, src, uint64(255)) + if l != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(src + uintptr(l-uint64(1))))) == int32('.') { + l = l - 1 + } + if l > uint64(253) || space <= 0 { + return -int32(1) + } + if !(l != 0) { + **(**uint8)(__ccgo_up(dst)) = uint8(0) + return int32(1) + } + end = src + uintptr(l) + n = _getlens(tls, bp+4, src, Int32FromUint64(l)) + if !(n != 0) { + return -int32(1) + } + p = dnptrs + if p != 0 && **(**uintptr)(__ccgo_up(p)) != 0 { + p += 8 + for { + if !(**(**uintptr)(__ccgo_up(p)) != 0) { + break + } + m = _match(tls, bp, **(**uintptr)(__ccgo_up(dnptrs)), **(**uintptr)(__ccgo_up(p)), end, bp+4, n) + if m > bestlen { + bestlen = m + bestoff = **(**int32)(__ccgo_up(bp)) + if Uint64FromInt32(m) == l { + break + } + } + goto _1 + _1: + ; + p += 8 + } + } + /* encode unmatched part */ + if Uint64FromInt32(space) < l-Uint64FromInt32(bestlen)+uint64(2)+BoolUint64(Uint64FromInt32(bestlen-Int32FromInt32(1)) < l-Uint64FromInt32(1)) { + return -int32(1) + } + Xmemcpy(tls, dst+uintptr(1), src, l-Uint64FromInt32(bestlen)) + v3 = Int32FromInt32(0) + j = v3 + i = v3 + for { + if !(Uint64FromInt32(i) < l-Uint64FromInt32(bestlen)) { + break + } + **(**uint8)(__ccgo_up(dst + uintptr(i))) = (**(**[127]uint8)(__ccgo_up(bp + 4)))[j] + goto _2 + _2: + ; + v3 = j + j = j + 1 + i = i + (Int32FromUint8((**(**[127]uint8)(__ccgo_up(bp + 4)))[v3]) + int32(1)) + } + /* add tail */ + if bestlen != 0 { + v3 = i + i = i + 1 + **(**uint8)(__ccgo_up(dst + uintptr(v3))) = Uint8FromInt32(int32(0xc0) | bestoff>>int32(8)) + v3 = i + i = i + 1 + **(**uint8)(__ccgo_up(dst + uintptr(v3))) = Uint8FromInt32(bestoff) + } else { + v3 = i + i = i + 1 + **(**uint8)(__ccgo_up(dst + uintptr(v3))) = uint8(0) + } + /* save dst pointer */ + if i > int32(2) && lastdnptr != 0 && dnptrs != 0 && **(**uintptr)(__ccgo_up(dnptrs)) != 0 { + for **(**uintptr)(__ccgo_up(p)) != 0 { + p += 8 + } + if p+uintptr(1)*8 < lastdnptr { + v8 = p + p += 8 + **(**uintptr)(__ccgo_up(v8)) = dst + **(**uintptr)(__ccgo_up(p)) = uintptr(0) + } + } + return i +} + +func X__dn_expand(tls *TLS, base uintptr, end uintptr, src uintptr, dest uintptr, space int32) (r int32) { + if __ccgo_strace { + trc("tls=%v base=%v end=%v src=%v dest=%v space=%v, (%v:)", tls, base, end, src, dest, space, origin(2)) + defer func() { trc("-> %v", r) }() + } + var dbegin, dend, p, v3, v4 uintptr + var i, j, len1, v1 int32 + _, _, _, _, _, _, _, _, _ = dbegin, dend, i, j, len1, p, v1, v3, v4 + p = src + dbegin = dest + len1 = -int32(1) + if p == end || space <= 0 { + return -int32(1) + } + if space > int32(254) { + v1 = int32(254) + } else { + v1 = space + } + dend = dest + uintptr(v1) + /* detect reference loop using an iteration counter */ + i = 0 + for { + if !(int64(i) < int64(end)-int64(base)) { + break + } + /* loop invariants: p= int64(end)-int64(base) { + return -int32(1) + } + p = base + uintptr(j) + } else { + if **(**uint8)(__ccgo_up(p)) != 0 { + if dest != dbegin { + v3 = dest + dest = dest + 1 + **(**uint8)(__ccgo_up(v3)) = uint8('.') + } + v3 = p + p = p + 1 + j = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + if int64(j) >= int64(end)-int64(p) || int64(j) >= int64(dend)-int64(dest) { + return -int32(1) + } + for { + v1 = j + j = j - 1 + if !(v1 != 0) { + break + } + v3 = dest + dest = dest + 1 + v4 = p + p = p + 1 + **(**uint8)(__ccgo_up(v3)) = uint8(**(**uint8)(__ccgo_up(v4))) + } + } else { + **(**uint8)(__ccgo_up(dest)) = uint8(0) + if len1 < 0 { + len1 = int32(int64(p+uintptr(1)) - int64(src)) + } + return len1 + } + } + goto _2 + _2: + ; + i = i + int32(2) + } + return -int32(1) +} + +func Xdn_expand(tls *TLS, base uintptr, end uintptr, src uintptr, dest uintptr, space int32) (r int32) { + if __ccgo_strace { + trc("tls=%v base=%v end=%v src=%v dest=%v space=%v, (%v:)", tls, base, end, src, dest, space, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__dn_expand(tls, base, end, src, dest, space) +} + +func Xdn_skipname(tls *TLS, s uintptr, end uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v end=%v, (%v:)", tls, s, end, origin(2)) + defer func() { trc("-> %v", r) }() + } + var p uintptr + _ = p + p = s + for p < end { + if !(**(**uint8)(__ccgo_up(p)) != 0) { + return int32(int64(p) - int64(s) + int64(1)) + } else { + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) >= int32(192) { + if p+uintptr(1) < end { + return int32(int64(p) - int64(s) + int64(2)) + } else { + break + } + } else { + if int64(end)-int64(p) < int64(Int32FromUint8(**(**uint8)(__ccgo_up(p)))+int32(1)) { + break + } else { + p = p + uintptr(Int32FromUint8(**(**uint8)(__ccgo_up(p)))+int32(1)) + } + } + } + } + return -int32(1) +} + +const AI_ADDRCONFIG = 32 +const AI_ALL = 16 +const AI_CANONNAME = 2 +const AI_NUMERICHOST = 4 +const AI_NUMERICSERV = 1024 +const AI_PASSIVE = 1 +const AI_V4MAPPED = 8 +const EAI_AGAIN = -3 +const EAI_BADFLAGS = -1 +const EAI_FAIL = -4 +const EAI_FAMILY = -6 +const EAI_MEMORY = -10 +const EAI_NODATA = -5 +const EAI_NONAME = -2 +const EAI_OVERFLOW = -12 +const EAI_SERVICE = -8 +const EAI_SOCKTYPE = -7 +const EAI_SYSTEM = -11 +const MAXADDRS = 48 +const MAXSERVS = 2 +const NI_DGRAM = 16 +const NI_NAMEREQD = 8 +const NI_NOFQDN = 4 +const NI_NUMERICHOST = 1 +const NI_NUMERICSCOPE = 256 +const NI_NUMERICSERV = 2 + +type Taddrinfo = struct { + Fai_flags int32 + Fai_family int32 + Fai_socktype int32 + Fai_protocol int32 + Fai_addrlen Tsocklen_t + Fai_addr uintptr + Fai_canonname uintptr + Fai_next uintptr +} + +type Tnetent = struct { + Fn_name uintptr + Fn_aliases uintptr + Fn_addrtype int32 + Fn_net Tuint32_t +} + +type Thostent = struct { + Fh_name uintptr + Fh_aliases uintptr + Fh_addrtype int32 + Fh_length int32 + Fh_addr_list uintptr +} + +type Tservent = struct { + Fs_name uintptr + Fs_aliases uintptr + Fs_port int32 + Fs_proto uintptr +} + +type Tprotoent = struct { + Fp_name uintptr + Fp_aliases uintptr + Fp_proto int32 +} + +type Taibuf = struct { + Fai Taddrinfo + Fsa Tsa + Flock [1]int32 + Fslot int16 + Fref int16 +} + +type Taddress = struct { + Ffamily int32 + Fscopeid uint32 + Faddr [16]Tuint8_t + Fsortkey int32 +} + +type Tservice = struct { + Fport Tuint16_t + Fproto uint8 + Fsocktype uint8 +} + +type Tresolvconf = struct { + Fns [3]Taddress + Fnns uint32 + Fattempts uint32 + Fndots uint32 + Ftimeout uint32 +} + +type t__ccgo_fp__X__dns_parse_2 = func(*TLS, uintptr, int32, uintptr, int32, uintptr, int32) int32 + +func X__dns_parse(tls *TLS, r uintptr, rlen int32, __ccgo_fp_callback uintptr, ctx uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v r=%v rlen=%v __ccgo_fp_callback=%v ctx=%v, (%v:)", tls, r, rlen, __ccgo_fp_callback, ctx, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var ancount, len1, qdcount, v1 int32 + var p uintptr + _, _, _, _, _ = ancount, len1, p, qdcount, v1 + if rlen < int32(12) { + return -int32(1) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(r + 3)))&int32(15) != 0 { + return 0 + } + p = r + uintptr(12) + qdcount = Int32FromUint8(**(**uint8)(__ccgo_up(r + 4)))*int32(256) + Int32FromUint8(**(**uint8)(__ccgo_up(r + 5))) + ancount = Int32FromUint8(**(**uint8)(__ccgo_up(r + 6)))*int32(256) + Int32FromUint8(**(**uint8)(__ccgo_up(r + 7))) + for { + v1 = qdcount + qdcount = qdcount - 1 + if !(v1 != 0) { + break + } + for int64(p)-int64(r) < int64(rlen) && uint32(**(**uint8)(__ccgo_up(p)))-uint32(1) < uint32(127) { + p = p + 1 + } + if p > r+uintptr(rlen)-uintptr(6) { + return -int32(1) + } + p = p + uintptr(int32(5)+BoolInt32(!!(**(**uint8)(__ccgo_up(p)) != 0))) + } + for { + v1 = ancount + ancount = ancount - 1 + if !(v1 != 0) { + break + } + for int64(p)-int64(r) < int64(rlen) && uint32(**(**uint8)(__ccgo_up(p)))-uint32(1) < uint32(127) { + p = p + 1 + } + if p > r+uintptr(rlen)-uintptr(12) { + return -int32(1) + } + p = p + uintptr(int32(1)+BoolInt32(!!(**(**uint8)(__ccgo_up(p)) != 0))) + len1 = Int32FromUint8(**(**uint8)(__ccgo_up(p + 8)))*int32(256) + Int32FromUint8(**(**uint8)(__ccgo_up(p + 9))) + if int64(len1+int32(10)) > int64(r+uintptr(rlen))-int64(p) { + return -int32(1) + } + if (*(*func(*TLS, uintptr, int32, uintptr, int32, uintptr, int32) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_callback})))(tls, ctx, Int32FromUint8(**(**uint8)(__ccgo_up(p + 1))), p+uintptr(10), len1, r, rlen) < 0 { + return -int32(1) + } + p = p + uintptr(int32(10)+len1) + } + return 0 +} + +type Tsa = struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte +} + +func Xsethostent(tls *TLS, x int32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + } +} + +func Xgethostent(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(0) +} + +func Xgetnetent(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(0) +} + +func Xendhostent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } +} + +func Xendnetent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + Xendhostent(tls) +} + +func Xsetnetent(tls *TLS, x int32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + } + Xsethostent(tls, x) +} + +const ARPD_FLUSH = 3 +const ARPD_LOOKUP = 2 +const ARPD_UPDATE = 1 +const ARPHRD_6LOWPAN = 825 +const ARPHRD_ADAPT = 264 +const ARPHRD_APPLETLK = 8 +const ARPHRD_ARCNET = 7 +const ARPHRD_ASH = 781 +const ARPHRD_ATM = 19 +const ARPHRD_AX25 = 3 +const ARPHRD_BIF = 775 +const ARPHRD_CAIF = 822 +const ARPHRD_CAN = 280 +const ARPHRD_CHAOS = 5 +const ARPHRD_CISCO = 513 +const ARPHRD_CSLIP = 257 +const ARPHRD_CSLIP6 = 259 +const ARPHRD_DDCMP = 517 +const ARPHRD_DLCI = 15 +const ARPHRD_ECONET = 782 +const ARPHRD_EETHER = 2 +const ARPHRD_ETHER = 1 +const ARPHRD_EUI64 = 27 +const ARPHRD_FCAL = 785 +const ARPHRD_FCFABRIC = 787 +const ARPHRD_FCPL = 786 +const ARPHRD_FCPP = 784 +const ARPHRD_FDDI = 774 +const ARPHRD_FRAD = 770 +const ARPHRD_HDLC = 513 +const ARPHRD_HIPPI = 780 +const ARPHRD_HWX25 = 272 +const ARPHRD_IEEE1394 = 24 +const ARPHRD_IEEE802 = 6 +const ARPHRD_IEEE80211 = 801 +const ARPHRD_IEEE80211_PRISM = 802 +const ARPHRD_IEEE80211_RADIOTAP = 803 +const ARPHRD_IEEE802154 = 804 +const ARPHRD_IEEE802154_MONITOR = 805 +const ARPHRD_IEEE802_TR = 800 +const ARPHRD_INFINIBAND = 32 +const ARPHRD_IP6GRE = 823 +const ARPHRD_IPDDP = 777 +const ARPHRD_IPGRE = 778 +const ARPHRD_IRDA = 783 +const ARPHRD_LAPB = 516 +const ARPHRD_LOCALTLK = 773 +const ARPHRD_LOOPBACK = 772 +const ARPHRD_METRICOM = 23 +const ARPHRD_NETLINK = 824 +const ARPHRD_NETROM = 0 +const ARPHRD_NONE = 65534 +const ARPHRD_PHONET = 820 +const ARPHRD_PHONET_PIPE = 821 +const ARPHRD_PIMREG = 779 +const ARPHRD_PPP = 512 +const ARPHRD_PRONET = 4 +const ARPHRD_RAWHDLC = 518 +const ARPHRD_RAWIP = 519 +const ARPHRD_ROSE = 270 +const ARPHRD_RSRVD = 260 +const ARPHRD_SIT = 776 +const ARPHRD_SKIP = 771 +const ARPHRD_SLIP = 256 +const ARPHRD_SLIP6 = 258 +const ARPHRD_TUNNEL = 768 +const ARPHRD_TUNNEL6 = 769 +const ARPHRD_VOID = 65535 +const ARPHRD_VSOCKMON = 826 +const ARPHRD_X25 = 271 +const ARPOP_InREPLY = 9 +const ARPOP_InREQUEST = 8 +const ARPOP_NAK = 10 +const ARPOP_REPLY = 2 +const ARPOP_REQUEST = 1 +const ARPOP_RREPLY = 4 +const ARPOP_RREQUEST = 3 +const ATF_COM = 2 +const ATF_DONTPUB = 64 +const ATF_MAGIC = 128 +const ATF_NETMASK = 32 +const ATF_PERM = 4 +const ATF_PUBL = 8 +const ATF_USETRAILERS = 16 +const ETHERMIN = 46 +const ETHERMTU = 1500 +const ETHERTYPE_AARP = 33011 +const ETHERTYPE_ARP = 2054 +const ETHERTYPE_AT = 32923 +const ETHERTYPE_IP = 2048 +const ETHERTYPE_IPV6 = 34525 +const ETHERTYPE_IPX = 33079 +const ETHERTYPE_LOOPBACK = 36864 +const ETHERTYPE_NTRAILER = 16 +const ETHERTYPE_PUP = 512 +const ETHERTYPE_REVARP = 32821 +const ETHERTYPE_SPRITE = 1280 +const ETHERTYPE_TRAIL = 4096 +const ETHERTYPE_VLAN = 33024 +const ETHER_ADDR_LEN = 6 +const ETHER_CRC_LEN = 4 +const ETHER_HDR_LEN = 14 +const ETHER_MAX_LEN = 1518 +const ETHER_MIN_LEN = 64 +const ETHER_TYPE_LEN = 2 +const ETH_ALEN = 6 +const ETH_DATA_LEN = 1500 +const ETH_FCS_LEN = 4 +const ETH_FRAME_LEN = 1514 +const ETH_HLEN = 14 +const ETH_MAX_MTU = 65535 +const ETH_MIN_MTU = 68 +const ETH_P_1588 = 35063 +const ETH_P_8021AD = 34984 +const ETH_P_8021AH = 35047 +const ETH_P_8021Q = 33024 +const ETH_P_80221 = 35095 +const ETH_P_802_2 = 4 +const ETH_P_802_3 = 1 +const ETH_P_802_3_MIN = 1536 +const ETH_P_802_EX1 = 34997 +const ETH_P_AARP = 33011 +const ETH_P_AF_IUCV = 64507 +const ETH_P_ALL = 3 +const ETH_P_AOE = 34978 +const ETH_P_ARCNET = 26 +const ETH_P_ARP = 2054 +const ETH_P_ATALK = 32923 +const ETH_P_ATMFATE = 34948 +const ETH_P_ATMMPOA = 34892 +const ETH_P_AX25 = 2 +const ETH_P_BATMAN = 17157 +const ETH_P_BPQ = 2303 +const ETH_P_CAIF = 247 +const ETH_P_CAN = 12 +const ETH_P_CANFD = 13 +const ETH_P_CFM = 35074 +const ETH_P_CONTROL = 22 +const ETH_P_CUST = 24582 +const ETH_P_DDCMP = 6 +const ETH_P_DEC = 24576 +const ETH_P_DIAG = 24581 +const ETH_P_DNA_DL = 24577 +const ETH_P_DNA_RC = 24578 +const ETH_P_DNA_RT = 24579 +const ETH_P_DSA = 27 +const ETH_P_DSA_8021Q = 56027 +const ETH_P_ECONET = 24 +const ETH_P_EDSA = 56026 +const ETH_P_ERSPAN = 35006 +const ETH_P_ERSPAN2 = 8939 +const ETH_P_FCOE = 35078 +const ETH_P_FIP = 35092 +const ETH_P_HDLC = 25 +const ETH_P_HSR = 35119 +const ETH_P_IBOE = 35093 +const ETH_P_IEEE802154 = 246 +const ETH_P_IEEEPUP = 2560 +const ETH_P_IEEEPUPAT = 2561 +const ETH_P_IFE = 60734 +const ETH_P_IP = 2048 +const ETH_P_IPV6 = 34525 +const ETH_P_IPX = 33079 +const ETH_P_IRDA = 23 +const ETH_P_LAT = 24580 +const ETH_P_LINK_CTL = 34924 +const ETH_P_LLDP = 35020 +const ETH_P_LOCALTALK = 9 +const ETH_P_LOOP = 96 +const ETH_P_LOOPBACK = 36864 +const ETH_P_MACSEC = 35045 +const ETH_P_MAP = 249 +const ETH_P_MOBITEX = 21 +const ETH_P_MPLS_MC = 34888 +const ETH_P_MPLS_UC = 34887 +const ETH_P_MRP = 35043 +const ETH_P_MVRP = 35061 +const ETH_P_NCSI = 35064 +const ETH_P_NSH = 35151 +const ETH_P_PAE = 34958 +const ETH_P_PAUSE = 34824 +const ETH_P_PHONET = 245 +const ETH_P_PPPTALK = 16 +const ETH_P_PPP_DISC = 34915 +const ETH_P_PPP_MP = 8 +const ETH_P_PPP_SES = 34916 +const ETH_P_PREAUTH = 35015 +const ETH_P_PRP = 35067 +const ETH_P_PUP = 512 +const ETH_P_PUPAT = 513 +const ETH_P_QINQ1 = 37120 +const ETH_P_QINQ2 = 37376 +const ETH_P_QINQ3 = 37632 +const ETH_P_RARP = 32821 +const ETH_P_SCA = 24583 +const ETH_P_SLOW = 34825 +const ETH_P_SNAP = 5 +const ETH_P_TDLS = 35085 +const ETH_P_TEB = 25944 +const ETH_P_TIPC = 35018 +const ETH_P_TRAILER = 28 +const ETH_P_TR_802_2 = 17 +const ETH_P_TSN = 8944 +const ETH_P_WAN_PPP = 7 +const ETH_P_WCCP = 34878 +const ETH_P_X25 = 2053 +const ETH_P_XDSA = 248 +const ETH_TLEN = 2 +const ETH_ZLEN = 60 +const MAX_ADDR_LEN = 7 +const __UAPI_DEF_ETHHDR = 0 + +type Tethhdr = struct { + Fh_dest [6]Tuint8_t + Fh_source [6]Tuint8_t + Fh_proto Tuint16_t +} + +type Tether_addr = struct { + Fether_addr_octet [6]Tuint8_t +} + +type Tether_header = struct { + Fether_dhost [6]Tuint8_t + Fether_shost [6]Tuint8_t + Fether_type Tuint16_t +} + +type Tarphdr = struct { + Far_hrd Tuint16_t + Far_pro Tuint16_t + Far_hln Tuint8_t + Far_pln Tuint8_t + Far_op Tuint16_t +} + +type Tarpreq = struct { + Farp_pa Tsockaddr + Farp_ha Tsockaddr + Farp_flags int32 + Farp_netmask Tsockaddr + Farp_dev [16]uint8 +} + +type Tarpreq_old = struct { + Farp_pa Tsockaddr + Farp_ha Tsockaddr + Farp_flags int32 + Farp_netmask Tsockaddr +} + +type Tarpd_request = struct { + Freq uint16 + Fip Tuint32_t + Fdev uint64 + Fstamp uint64 + Fupdated uint64 + Fha [7]uint8 +} + +type Tether_arp = struct { + Fea_hdr Tarphdr + Farp_sha [6]Tuint8_t + Farp_spa [4]Tuint8_t + Farp_tha [6]Tuint8_t + Farp_tpa [4]Tuint8_t +} + +func Xether_aton_r(tls *TLS, x uintptr, p_a uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v x=%v p_a=%v, (%v:)", tls, x, p_a, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ii int32 + var n uint64 + var _ /* a at bp+0 */ Tether_addr + var _ /* y at bp+8 */ uintptr + _, _ = ii, n + ii = 0 + for { + if !(ii < int32(6)) { + break + } + if ii != 0 { + if Int32FromUint8(**(**uint8)(__ccgo_up(x))) != int32(':') { + return uintptr(0) + } else { + x = x + 1 + } + } + n = Xstrtoul(tls, x, bp+8, int32(16)) + x = **(**uintptr)(__ccgo_up(bp + 8)) + if n > uint64(0xFF) { + return uintptr(0) + } /* bad byte */ + **(**Tuint8_t)(__ccgo_up(bp + uintptr(ii))) = uint8(n) + goto _1 + _1: + ; + ii = ii + 1 + } + if Int32FromUint8(**(**uint8)(__ccgo_up(x))) != 0 { + return uintptr(0) + } /* bad format */ + **(**Tether_addr)(__ccgo_up(p_a)) = **(**Tether_addr)(__ccgo_up(bp)) + return p_a +} + +func Xether_aton(tls *TLS, x uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xether_aton_r(tls, x, uintptr(unsafe.Pointer(&_a))) +} + +var _a Tether_addr + +func Xether_ntoa_r(tls *TLS, p_a uintptr, x uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v p_a=%v x=%v, (%v:)", tls, p_a, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ii int32 + var y, v2 uintptr + _, _, _ = ii, y, v2 + y = x + ii = 0 + for { + if !(ii < int32(6)) { + break + } + if ii == 0 { + v2 = __ccgo_ts + 1010 + } else { + v2 = __ccgo_ts + 1015 + } + x = x + uintptr(Xsprintf(tls, x, v2, VaList(bp+8, Int32FromUint8(**(**Tuint8_t)(__ccgo_up(p_a + uintptr(ii))))))) + goto _1 + _1: + ; + ii = ii + 1 + } + return y +} + +func Xether_ntoa(tls *TLS, p_a uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v p_a=%v, (%v:)", tls, p_a, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xether_ntoa_r(tls, p_a, uintptr(unsafe.Pointer(&_x))) +} + +var _x [18]uint8 + +func Xether_line(tls *TLS, l uintptr, e uintptr, hostname uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v l=%v e=%v hostname=%v, (%v:)", tls, l, e, hostname, origin(2)) + defer func() { trc("-> %v", r) }() + } + return -int32(1) +} + +func Xether_ntohost(tls *TLS, hostname uintptr, e uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v hostname=%v e=%v, (%v:)", tls, hostname, e, origin(2)) + defer func() { trc("-> %v", r) }() + } + return -int32(1) +} + +func Xether_hostton(tls *TLS, hostname uintptr, e uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v hostname=%v e=%v, (%v:)", tls, hostname, e, origin(2)) + defer func() { trc("-> %v", r) }() + } + return -int32(1) +} + +func Xfreeaddrinfo(tls *TLS, p uintptr) { + if __ccgo_strace { + trc("tls=%v p=%v, (%v:)", tls, p, origin(2)) + } + var b, v2 uintptr + var cnt Tsize_t + _, _, _ = b, cnt, v2 + cnt = uint64(1) + for { + if !((*Taddrinfo)(unsafe.Pointer(p)).Fai_next != 0) { + break + } + goto _1 + _1: + ; + cnt = cnt + 1 + p = (*Taddrinfo)(unsafe.Pointer(p)).Fai_next + } + b = p - uintptr(uint64(UintptrFromInt32(0))) + b = b - uintptr((*Taibuf)(unsafe.Pointer(b)).Fslot)*88 + ___lock(tls, b+76) + v2 = b + 82 + *(*int16)(unsafe.Pointer(v2)) = int16(uint64(*(*int16)(unsafe.Pointer(v2))) - cnt) + if !(*(*int16)(unsafe.Pointer(v2)) != 0) { + Xfree(tls, b) + } else { + ___unlock(tls, b+76) + } +} + +var _msgs = [252]uint8{'I', 'n', 'v', 'a', 'l', 'i', 'd', ' ', 'f', 'l', 'a', 'g', 's', 0, 'N', 'a', 'm', 'e', ' ', 'd', 'o', 'e', 's', ' ', 'n', 'o', 't', ' ', 'r', 'e', 's', 'o', 'l', 'v', 'e', 0, 'T', 'r', 'y', ' ', 'a', 'g', 'a', 'i', 'n', 0, 'N', 'o', 'n', '-', 'r', 'e', 'c', 'o', 'v', 'e', 'r', 'a', 'b', 'l', 'e', ' ', 'e', 'r', 'r', 'o', 'r', 0, 'N', 'a', 'm', 'e', ' ', 'h', 'a', 's', ' ', 'n', 'o', ' ', 'u', 's', 'a', 'b', 'l', 'e', ' ', 'a', 'd', 'd', 'r', 'e', 's', 's', 0, 'U', 'n', 'r', 'e', 'c', 'o', 'g', 'n', 'i', 'z', 'e', 'd', ' ', 'a', 'd', 'd', 'r', 'e', 's', 's', ' ', 'f', 'a', 'm', 'i', 'l', 'y', ' ', 'o', 'r', ' ', 'i', 'n', 'v', 'a', 'l', 'i', 'd', ' ', 'l', 'e', 'n', 'g', 't', 'h', 0, 'U', 'n', 'r', 'e', 'c', 'o', 'g', 'n', 'i', 'z', 'e', 'd', ' ', 's', 'o', 'c', 'k', 'e', 't', ' ', 't', 'y', 'p', 'e', 0, 'U', 'n', 'r', 'e', 'c', 'o', 'g', 'n', 'i', 'z', 'e', 'd', ' ', 's', 'e', 'r', 'v', 'i', 'c', 'e', 0, 'U', 'n', 'k', 'n', 'o', 'w', 'n', ' ', 'e', 'r', 'r', 'o', 'r', 0, 'O', 'u', 't', ' ', 'o', 'f', ' ', 'm', 'e', 'm', 'o', 'r', 'y', 0, 'S', 'y', 's', 't', 'e', 'm', ' ', 'e', 'r', 'r', 'o', 'r', 0, 'O', 'v', 'e', 'r', 'f', 'l', 'o', 'w', 0, 0, 'U', 'n', 'k', 'n', 'o', 'w', 'n', ' ', 'e', 'r', 'r', 'o', 'r'} + +func Xgai_strerror(tls *TLS, ecode int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v ecode=%v, (%v:)", tls, ecode, origin(2)) + defer func() { trc("-> %v", r) }() + } + var s uintptr + _ = s + s = uintptr(unsafe.Pointer(&_msgs)) + ecode = ecode + 1 + for { + if !(ecode != 0 && **(**uint8)(__ccgo_up(s)) != 0) { + break + } + for { + if !(**(**uint8)(__ccgo_up(s)) != 0) { + break + } + goto _2 + _2: + ; + s = s + 1 + } + goto _1 + _1: + ; + ecode = ecode + 1 + s = s + 1 + } + if !(**(**uint8)(__ccgo_up(s)) != 0) { + s = s + 1 + } + return X__lctrans_cur(tls, s) +} + +func Xgetaddrinfo(tls *TLS, host uintptr, serv uintptr, hint uintptr, res uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v host=%v serv=%v hint=%v res=%v, (%v:)", tls, host, serv, hint, res, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(1616) + defer tls.Free(1616) + var canon_len, family, flags, i, j, k, mask, naddrs, nais, no_family, nservs, proto, r, s, saved_errno, socktype, v3 int32 + var out, outcanon uintptr + var ta [2]uintptr + var tf [2]int32 + var tl [2]Tsocklen_t + var v5 uint64 + var _ /* addrs at bp+8 */ [48]Taddress + var _ /* canon at bp+1352 */ [256]uint8 + var _ /* cs at bp+1608 */ int32 + var _ /* ports at bp+0 */ [2]Tservice + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = canon_len, family, flags, i, j, k, mask, naddrs, nais, no_family, nservs, out, outcanon, proto, r, s, saved_errno, socktype, ta, tf, tl, v3, v5 + family = PF_UNSPEC + flags = 0 + proto = 0 + socktype = 0 + no_family = 0 + if !(host != 0) && !(serv != 0) { + return -int32(2) + } + if hint != 0 { + family = (*Taddrinfo)(unsafe.Pointer(hint)).Fai_family + flags = (*Taddrinfo)(unsafe.Pointer(hint)).Fai_flags + proto = (*Taddrinfo)(unsafe.Pointer(hint)).Fai_protocol + socktype = (*Taddrinfo)(unsafe.Pointer(hint)).Fai_socktype + mask = Int32FromInt32(AI_PASSIVE) | Int32FromInt32(AI_CANONNAME) | Int32FromInt32(AI_NUMERICHOST) | Int32FromInt32(AI_V4MAPPED) | Int32FromInt32(AI_ALL) | Int32FromInt32(AI_ADDRCONFIG) | Int32FromInt32(AI_NUMERICSERV) + if flags&mask != flags { + return -int32(1) + } + switch family { + case int32(PF_INET): + fallthrough + case int32(PF_INET6): + fallthrough + case PF_UNSPEC: + default: + return -int32(6) + } + } + if flags&int32(AI_ADDRCONFIG) != 0 { + tf = [2]int32{ + 0: int32(PF_INET), + 1: int32(PF_INET6), + } + ta = [2]uintptr{ + 0: uintptr(unsafe.Pointer(&_lo4)), + 1: uintptr(unsafe.Pointer(&_lo6)), + } + tl = [2]Tsocklen_t{ + 0: uint32(16), + 1: uint32(28), + } + i = 0 + for { + if !(i < int32(2)) { + break + } + if family == tf[int32(1)-i] { + goto _1 + } + s = Xsocket(tls, tf[i], Int32FromInt32(SOCK_CLOEXEC)|Int32FromInt32(SOCK_DGRAM), int32(IPPROTO_UDP)) + if s >= 0 { + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp+1608) + r = Xconnect(tls, s, ta[i], tl[i]) + saved_errno = **(**int32)(__ccgo_up(X__errno_location(tls))) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 1608)), uintptr(0)) + Xclose(tls, s) + if !(r != 0) { + goto _1 + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = saved_errno + } + switch **(**int32)(__ccgo_up(X__errno_location(tls))) { + case int32(EADDRNOTAVAIL): + fallthrough + case int32(EAFNOSUPPORT): + fallthrough + case int32(EHOSTUNREACH): + fallthrough + case int32(ENETDOWN): + fallthrough + case int32(ENETUNREACH): + default: + return -int32(11) + } + if family == tf[i] { + no_family = int32(1) + } + family = tf[int32(1)-i] + goto _1 + _1: + ; + i = i + 1 + } + } + nservs = X__lookup_serv(tls, bp, serv, proto, socktype, flags) + if nservs < 0 { + return nservs + } + naddrs = X__lookup_name(tls, bp+8, bp+1352, host, family, flags) + if naddrs < 0 { + return naddrs + } + if no_family != 0 { + return -int32(5) + } + nais = nservs * naddrs + canon_len = Int32FromUint64(_strlen(tls, bp+1352)) + out = Xcalloc(tls, uint64(1), Uint64FromInt32(nais)*uint64(88)+Uint64FromInt32(canon_len)+uint64(1)) + if !(out != 0) { + return -int32(10) + } + if canon_len != 0 { + outcanon = out + uintptr(nais)*88 + Xmemcpy(tls, outcanon, bp+1352, Uint64FromInt32(canon_len+int32(1))) + } else { + outcanon = uintptr(0) + } + v3 = Int32FromInt32(0) + i = v3 + k = v3 + for { + if !(i < naddrs) { + break + } + j = 0 + for { + if !(j < nservs) { + break + } + (**(**Taibuf)(__ccgo_up(out + uintptr(k)*88))).Fslot = int16(k) + if (**(**[48]Taddress)(__ccgo_up(bp + 8)))[i].Ffamily == int32(PF_INET) { + v5 = uint64(16) + } else { + v5 = uint64(28) + } + (**(**Taibuf)(__ccgo_up(out + uintptr(k)*88))).Fai = Taddrinfo{ + Fai_family: (**(**[48]Taddress)(__ccgo_up(bp + 8)))[i].Ffamily, + Fai_socktype: Int32FromUint8((**(**[2]Tservice)(__ccgo_up(bp)))[j].Fsocktype), + Fai_protocol: Int32FromUint8((**(**[2]Tservice)(__ccgo_up(bp)))[j].Fproto), + Fai_addrlen: uint32(v5), + Fai_addr: out + uintptr(k)*88 + 48, + Fai_canonname: outcanon, + } + if k != 0 { + (**(**Taibuf)(__ccgo_up(out + uintptr(k-int32(1))*88))).Fai.Fai_next = out + uintptr(k)*88 + } + switch (**(**[48]Taddress)(__ccgo_up(bp + 8)))[i].Ffamily { + case int32(PF_INET): + *(*Tsa_family_t)(unsafe.Pointer(out + uintptr(k)*88 + 48)) = uint16(PF_INET) + *(*Tin_port_t)(unsafe.Pointer(out + uintptr(k)*88 + 48 + 2)) = Xhtons(tls, (**(**[2]Tservice)(__ccgo_up(bp)))[j].Fport) + Xmemcpy(tls, out+uintptr(k)*88+48+4, bp+8+uintptr(i)*28+8, uint64(4)) + case int32(PF_INET6): + *(*Tsa_family_t)(unsafe.Pointer(out + uintptr(k)*88 + 48)) = uint16(PF_INET6) + *(*Tin_port_t)(unsafe.Pointer(out + uintptr(k)*88 + 48 + 2)) = Xhtons(tls, (**(**[2]Tservice)(__ccgo_up(bp)))[j].Fport) + *(*Tuint32_t)(unsafe.Pointer(out + uintptr(k)*88 + 48 + 24)) = (**(**[48]Taddress)(__ccgo_up(bp + 8)))[i].Fscopeid + Xmemcpy(tls, out+uintptr(k)*88+48+8, bp+8+uintptr(i)*28+8, uint64(16)) + break + } + goto _4 + _4: + ; + j = j + 1 + k = k + 1 + } + goto _2 + _2: + ; + i = i + 1 + } + (**(**Taibuf)(__ccgo_up(out))).Fref = int16(nais) + **(**uintptr)(__ccgo_up(res)) = out + return 0 +} + +/* Define the "an address is configured" condition for address + * families via ability to create a socket for the family plus + * routability of the loopback address for the family. */ +var _lo4 = Tsockaddr_in{ + Fsin_family: uint16(PF_INET), + Fsin_port: uint16(65535), + Fsin_addr: Tin_addr{ + Fs_addr: uint32(0x0100007f), + }, +} + +var _lo6 = Tsockaddr_in6{ + Fsin6_family: uint16(PF_INET6), + Fsin6_port: uint16(65535), + Fsin6_addr: Tin6_addr{ + F__in6_union: *(*struct { + F__s6_addr16 [0][8]Tuint16_t + F__s6_addr32 [0][4]Tuint32_t + F__s6_addr [16]Tuint8_t + })(unsafe.Pointer(&[16]Tuint8_t{ + 15: uint8(1), + })), + }, +} + +const EAI_ADDRFAMILY = -9 +const EAI_ALLDONE = -103 +const EAI_CANCELED = -101 +const EAI_IDN_ENCODE = -105 +const EAI_INPROGRESS = -100 +const EAI_INTR = -104 +const EAI_NOTCANCELED = -102 +const HOST_NOT_FOUND = 1 +const MCAST_BLOCK_SOURCE = 43 +const MCAST_EXCLUDE = 0 +const MCAST_INCLUDE = 1 +const MCAST_JOIN_GROUP = 42 +const MCAST_JOIN_SOURCE_GROUP = 46 +const MCAST_LEAVE_GROUP = 45 +const MCAST_LEAVE_SOURCE_GROUP = 47 +const MCAST_MSFILTER = 48 +const MCAST_UNBLOCK_SOURCE = 44 +const NI_MAXHOST = 255 +const NI_MAXSERV = 32 +const NO_ADDRESS = 4 +const NO_DATA = 4 +const NO_RECOVERY = 3 +const TRY_AGAIN = 2 +const h_errno = 0 + +type Tip_mreq = struct { + Fimr_multiaddr Tin_addr + Fimr_interface Tin_addr +} + +type Tip_mreqn = struct { + Fimr_multiaddr Tin_addr + Fimr_address Tin_addr + Fimr_ifindex int32 +} + +type Tip_mreq_source = struct { + Fimr_multiaddr Tin_addr + Fimr_interface Tin_addr + Fimr_sourceaddr Tin_addr +} + +type Tip_msfilter = struct { + Fimsf_multiaddr Tin_addr + Fimsf_interface Tin_addr + Fimsf_fmode Tuint32_t + Fimsf_numsrc Tuint32_t + Fimsf_slist [1]Tin_addr +} + +type Tgroup_req = struct { + Fgr_interface Tuint32_t + Fgr_group Tsockaddr_storage +} + +type Tgroup_source_req = struct { + Fgsr_interface Tuint32_t + Fgsr_group Tsockaddr_storage + Fgsr_source Tsockaddr_storage +} + +type Tgroup_filter = struct { + Fgf_interface Tuint32_t + Fgf_group Tsockaddr_storage + Fgf_fmode Tuint32_t + Fgf_numsrc Tuint32_t + Fgf_slist [1]Tsockaddr_storage +} + +type Tin_pktinfo = struct { + Fipi_ifindex int32 + Fipi_spec_dst Tin_addr + Fipi_addr Tin_addr +} + +type Tin6_pktinfo = struct { + Fipi6_addr Tin6_addr + Fipi6_ifindex uint32 +} + +type Tip6_mtuinfo = struct { + Fip6m_addr Tsockaddr_in6 + Fip6m_mtu Tuint32_t +} + +func Xgethostbyaddr(tls *TLS, a uintptr, l Tsocklen_t, af int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v a=%v l=%v af=%v, (%v:)", tls, a, l, af, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var err int32 + var size Tsize_t + var _ /* res at bp+0 */ uintptr + _, _ = err, size + size = uint64(63) + for cond := true; cond; cond = err == int32(ERANGE) { + Xfree(tls, _h) + size = size + (size + uint64(1)) + _h = Xmalloc(tls, size) + if !(_h != 0) { + **(**int32)(__ccgo_up(X__h_errno_location(tls))) = int32(NO_RECOVERY) + return uintptr(0) + } + err = Xgethostbyaddr_r(tls, a, l, af, _h, _h+UintptrFromInt32(1)*32, size-uint64(32), bp, X__h_errno_location(tls)) + } + return **(**uintptr)(__ccgo_up(bp)) +} + +var _h uintptr + +func Xgethostbyaddr_r(tls *TLS, a uintptr, l Tsocklen_t, af int32, h uintptr, buf uintptr, buflen Tsize_t, res uintptr, err uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v a=%v l=%v af=%v h=%v buf=%v buflen=%v res=%v err=%v, (%v:)", tls, a, l, af, h, buf, buflen, res, err, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var i int32 + var sl Tsocklen_t + var v1 uint64 + var _ /* sa at bp+0 */ struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + } + _, _, _ = i, sl, v1 + *(*struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + })(unsafe.Pointer(bp)) = struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + }{} + *(*uint16)(unsafe.Pointer(bp)) = Uint16FromInt32(af) + if af == int32(PF_INET6) { + v1 = uint64(28) + } else { + v1 = uint64(16) + } + sl = uint32(v1) + **(**uintptr)(__ccgo_up(res)) = uintptr(0) + /* Load address argument into sockaddr structure */ + if af == int32(PF_INET6) && l == uint32(16) { + Xmemcpy(tls, bp+8, a, uint64(16)) + } else { + if af == int32(PF_INET) && l == uint32(4) { + Xmemcpy(tls, bp+4, a, uint64(4)) + } else { + **(**int32)(__ccgo_up(err)) = int32(NO_RECOVERY) + return int32(EINVAL) + } + } + /* Align buffer and check for space for pointers and ip address */ + i = Int32FromUint64(uint64(buf) & (Uint64FromInt64(8) - Uint64FromInt32(1))) + if !(i != 0) { + i = int32(8) + } + if buflen <= Uint64FromInt32(5)*Uint64FromInt64(8)-Uint64FromInt32(i)+uint64(l) { + return int32(ERANGE) + } + buf = buf + uintptr(uint64(8)-Uint64FromInt32(i)) + buflen = buflen - (Uint64FromInt32(5)*Uint64FromInt64(8) - Uint64FromInt32(i) + uint64(l)) + (*Thostent)(unsafe.Pointer(h)).Fh_addr_list = buf + buf = buf + uintptr(Uint64FromInt32(2)*Uint64FromInt64(8)) + (*Thostent)(unsafe.Pointer(h)).Fh_aliases = buf + buf = buf + uintptr(Uint64FromInt32(2)*Uint64FromInt64(8)) + **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_addr_list)) = buf + Xmemcpy(tls, **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_addr_list)), a, uint64(l)) + buf = buf + uintptr(l) + **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_addr_list + 1*8)) = uintptr(0) + **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_aliases)) = buf + **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_aliases + 1*8)) = uintptr(0) + switch Xgetnameinfo(tls, bp, sl, buf, uint32(buflen), uintptr(0), uint32(0), 0) { + case -int32(3): + **(**int32)(__ccgo_up(err)) = int32(TRY_AGAIN) + return int32(EAGAIN) + case -int32(12): + return int32(ERANGE) + default: + fallthrough + case -int32(4): + **(**int32)(__ccgo_up(err)) = int32(NO_RECOVERY) + return int32(EBADMSG) + case -int32(11): + **(**int32)(__ccgo_up(err)) = int32(NO_RECOVERY) + return **(**int32)(__ccgo_up(X__errno_location(tls))) + case 0: + break + } + (*Thostent)(unsafe.Pointer(h)).Fh_addrtype = af + (*Thostent)(unsafe.Pointer(h)).Fh_length = Int32FromUint32(l) + (*Thostent)(unsafe.Pointer(h)).Fh_name = **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_aliases)) + **(**uintptr)(__ccgo_up(res)) = h + return 0 +} + +func Xgethostbyname(tls *TLS, name uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgethostbyname2(tls, name, int32(PF_INET)) +} + +func Xgethostbyname2(tls *TLS, name uintptr, af int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v af=%v, (%v:)", tls, name, af, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var err int32 + var size Tsize_t + var _ /* res at bp+0 */ uintptr + _, _ = err, size + size = uint64(63) + for cond := true; cond; cond = err == int32(ERANGE) { + Xfree(tls, _h1) + size = size + (size + uint64(1)) + _h1 = Xmalloc(tls, size) + if !(_h1 != 0) { + **(**int32)(__ccgo_up(X__h_errno_location(tls))) = int32(NO_RECOVERY) + return uintptr(0) + } + err = Xgethostbyname2_r(tls, name, af, _h1, _h1+UintptrFromInt32(1)*32, size-uint64(32), bp, X__h_errno_location(tls)) + } + return **(**uintptr)(__ccgo_up(bp)) +} + +var _h1 uintptr + +func Xgethostbyname2_r(tls *TLS, name uintptr, af int32, h uintptr, buf uintptr, buflen Tsize_t, res uintptr, err uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v af=%v h=%v buf=%v buflen=%v res=%v err=%v, (%v:)", tls, name, af, h, buf, buflen, res, err, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(1600) + defer tls.Free(1600) + var align, need Tsize_t + var cnt, i, v1 int32 + var v3 uintptr + var _ /* addrs at bp+0 */ [48]Taddress + var _ /* canon at bp+1344 */ [256]uint8 + _, _, _, _, _, _ = align, cnt, i, need, v1, v3 + **(**uintptr)(__ccgo_up(res)) = uintptr(0) + cnt = X__lookup_name(tls, bp, bp+1344, name, af, int32(AI_CANONNAME)) + if cnt < 0 { + switch cnt { + case -int32(2): + **(**int32)(__ccgo_up(err)) = int32(HOST_NOT_FOUND) + return 0 + case -int32(5): + **(**int32)(__ccgo_up(err)) = int32(NO_DATA) + return 0 + case -int32(3): + **(**int32)(__ccgo_up(err)) = int32(TRY_AGAIN) + return int32(EAGAIN) + default: + fallthrough + case -int32(4): + **(**int32)(__ccgo_up(err)) = int32(NO_RECOVERY) + return int32(EBADMSG) + case -int32(11): + **(**int32)(__ccgo_up(err)) = int32(NO_RECOVERY) + return **(**int32)(__ccgo_up(X__errno_location(tls))) + } + } + (*Thostent)(unsafe.Pointer(h)).Fh_addrtype = af + if af == int32(PF_INET6) { + v1 = int32(16) + } else { + v1 = int32(4) + } + (*Thostent)(unsafe.Pointer(h)).Fh_length = v1 + /* Align buffer */ + align = -uint64(buf) & (Uint64FromInt64(8) - Uint64FromInt32(1)) + need = Uint64FromInt32(4) * Uint64FromInt64(8) + need = need + Uint64FromInt32(cnt+Int32FromInt32(1))*(uint64(8)+Uint64FromInt32((*Thostent)(unsafe.Pointer(h)).Fh_length)) + need = need + (_strlen(tls, name) + uint64(1)) + need = need + (_strlen(tls, bp+1344) + uint64(1)) + need = need + align + if need > buflen { + return int32(ERANGE) + } + buf = buf + uintptr(align) + (*Thostent)(unsafe.Pointer(h)).Fh_aliases = buf + buf = buf + uintptr(Uint64FromInt32(3)*Uint64FromInt64(8)) + (*Thostent)(unsafe.Pointer(h)).Fh_addr_list = buf + buf = buf + uintptr(Uint64FromInt32(cnt+Int32FromInt32(1))*uint64(8)) + i = 0 + for { + if !(i < cnt) { + break + } + **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_addr_list + uintptr(i)*8)) = buf + buf = buf + uintptr((*Thostent)(unsafe.Pointer(h)).Fh_length) + Xmemcpy(tls, **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_addr_list + uintptr(i)*8)), bp+uintptr(i)*28+8, Uint64FromInt32((*Thostent)(unsafe.Pointer(h)).Fh_length)) + goto _2 + _2: + ; + i = i + 1 + } + **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_addr_list + uintptr(i)*8)) = uintptr(0) + v3 = buf + **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_aliases)) = v3 + (*Thostent)(unsafe.Pointer(h)).Fh_name = v3 + Xstrcpy(tls, (*Thostent)(unsafe.Pointer(h)).Fh_name, bp+1344) + buf = buf + uintptr(_strlen(tls, (*Thostent)(unsafe.Pointer(h)).Fh_name)+uint64(1)) + if Xstrcmp(tls, (*Thostent)(unsafe.Pointer(h)).Fh_name, name) != 0 { + **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_aliases + 1*8)) = buf + Xstrcpy(tls, **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_aliases + 1*8)), name) + buf = buf + uintptr(_strlen(tls, **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_aliases + 1*8)))+uint64(1)) + } else { + **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_aliases + 1*8)) = uintptr(0) + } + **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_aliases + 2*8)) = uintptr(0) + **(**uintptr)(__ccgo_up(res)) = h + return 0 +} + +func Xgethostbyname_r(tls *TLS, name uintptr, h uintptr, buf uintptr, buflen Tsize_t, res uintptr, err uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v h=%v buf=%v buflen=%v res=%v err=%v, (%v:)", tls, name, h, buf, buflen, res, err, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgethostbyname2_r(tls, name, int32(PF_INET), h, buf, buflen, res, err) +} + +const IFADDRS_HASH_SIZE = 64 +const IFA_ADDRESS = 1 +const IFA_BROADCAST = 4 +const IFA_LABEL = 3 +const IFA_LOCAL = 2 +const IFF_ALLMULTI = 512 +const IFF_AUTOMEDIA = 16384 +const IFF_BROADCAST = 2 +const IFF_DEBUG = 4 +const IFF_DORMANT = 131072 +const IFF_DYNAMIC = 32768 +const IFF_ECHO = 262144 +const IFF_LOOPBACK = 8 +const IFF_LOWER_UP = 65536 +const IFF_MASTER = 1024 +const IFF_MULTICAST = 4096 +const IFF_NOARP = 128 +const IFF_NOTRAILERS = 32 +const IFF_POINTOPOINT = 16 +const IFF_PORTSEL = 8192 +const IFF_PROMISC = 256 +const IFF_RUNNING = 64 +const IFF_SLAVE = 2048 +const IFF_UP = 1 +const IFF_VOLATILE = 461914 +const IFHWADDRLEN = 6 +const IFLA_ADDRESS = 1 +const IFLA_BROADCAST = 2 +const IFLA_IFNAME = 3 +const IFLA_STATS = 7 +const IFNAMSIZ = 16 +const IF_NAMESIZE = 16 +const NETLINK_ROUTE = 0 +const NLMSG_DONE = 3 +const NLMSG_ERROR = 2 +const NLMSG_NOOP = 1 +const NLMSG_OVERRUN = 4 +const NLM_F_ACK = 4 +const NLM_F_ATOMIC = 1024 +const NLM_F_DUMP = 768 +const NLM_F_MATCH = 512 +const NLM_F_MULTI = 2 +const NLM_F_REQUEST = 1 +const NLM_F_ROOT = 256 +const RTM_GETADDR = 22 +const RTM_GETLINK = 18 +const RTM_NEWADDR = 20 +const RTM_NEWLINK = 16 +const __UAPI_DEF_IF_IFCONF = 0 +const __UAPI_DEF_IF_IFMAP = 0 +const __UAPI_DEF_IF_IFNAMSIZ = 0 +const __UAPI_DEF_IF_IFREQ = 0 +const __UAPI_DEF_IF_NET_DEVICE_FLAGS = 0 +const __UAPI_DEF_IF_NET_DEVICE_FLAGS_LOWER_UP_DORMANT_ECHO = 0 + +type Tifaddrs = struct { + Fifa_next uintptr + Fifa_name uintptr + Fifa_flags uint32 + Fifa_addr uintptr + Fifa_netmask uintptr + Fifa_ifu struct { + Fifu_dstaddr [0]uintptr + Fifu_broadaddr uintptr + } + Fifa_data uintptr +} + +type Tif_nameindex = struct { + Fif_index uint32 + Fif_name uintptr +} + +type Tifaddr = struct { + Fifa_addr Tsockaddr + Fifa_ifu struct { + Fifu_dstaddr [0]Tsockaddr + Fifu_broadaddr Tsockaddr + } + Fifa_ifp uintptr + Fifa_next uintptr +} + +type Tifmap = struct { + Fmem_start uint64 + Fmem_end uint64 + Fbase_addr uint16 + Firq uint8 + Fdma uint8 + Fport uint8 +} + +type Tifreq = struct { + Fifr_ifrn struct { + Fifrn_name [16]uint8 + } + Fifr_ifru struct { + Fifru_dstaddr [0]Tsockaddr + Fifru_broadaddr [0]Tsockaddr + Fifru_netmask [0]Tsockaddr + Fifru_hwaddr [0]Tsockaddr + Fifru_flags [0]int16 + Fifru_ivalue [0]int32 + Fifru_mtu [0]int32 + Fifru_map [0]Tifmap + Fifru_slave [0][16]uint8 + Fifru_newname [0][16]uint8 + Fifru_data [0]uintptr + Fifru_addr Tsockaddr + F__ccgo_pad12 [8]byte + } +} + +type Tifconf = struct { + Fifc_len int32 + Fifc_ifcu struct { + Fifcu_req [0]uintptr + Fifcu_buf uintptr + } +} + +type Tnlmsghdr = struct { + Fnlmsg_len Tuint32_t + Fnlmsg_type Tuint16_t + Fnlmsg_flags Tuint16_t + Fnlmsg_seq Tuint32_t + Fnlmsg_pid Tuint32_t +} + +type Trtattr = struct { + Frta_len uint16 + Frta_type uint16 +} + +type Trtgenmsg = struct { + Frtgen_family uint8 +} + +type Tifinfomsg = struct { + Fifi_family uint8 + F__ifi_pad uint8 + Fifi_type uint16 + Fifi_index int32 + Fifi_flags uint32 + Fifi_change uint32 +} + +type Tifaddrmsg = struct { + Fifa_family Tuint8_t + Fifa_prefixlen Tuint8_t + Fifa_flags Tuint8_t + Fifa_scope Tuint8_t + Fifa_index Tuint32_t +} + +/* getifaddrs() reports hardware addresses with PF_PACKET that implies + * struct sockaddr_ll. But e.g. Infiniband socket address length is + * longer than sockaddr_ll.ssl_addr[8] can hold. Use this hack struct + * to extend ssl_addr - callers should be able to still use it. */ +type Tsockaddr_ll_hack = struct { + Fsll_family uint16 + Fsll_protocol uint16 + Fsll_ifindex int32 + Fsll_hatype uint16 + Fsll_pkttype uint8 + Fsll_halen uint8 + Fsll_addr [24]uint8 +} + +type Tsockany = struct { + Fll [0]Tsockaddr_ll_hack + Fv4 [0]Tsockaddr_in + Fv6 [0]Tsockaddr_in6 + Fsa Tsockaddr + F__ccgo_pad4 [20]byte +} + +type Tifaddrs_storage = struct { + Fifa Tifaddrs + Fhash_next uintptr + Faddr Tsockany + Fnetmask Tsockany + Fifu Tsockany + Findex uint32 + Fname [17]uint8 +} + +type Tifaddrs_ctx = struct { + Ffirst uintptr + Flast uintptr + Fhash [64]uintptr +} + +func Xfreeifaddrs(tls *TLS, ifp uintptr) { + if __ccgo_strace { + trc("tls=%v ifp=%v, (%v:)", tls, ifp, origin(2)) + } + var n uintptr + _ = n + for ifp != 0 { + n = (*Tifaddrs)(unsafe.Pointer(ifp)).Fifa_next + Xfree(tls, ifp) + ifp = n + } +} + +func _copy_addr(tls *TLS, r uintptr, af int32, sa uintptr, addr uintptr, addrlen Tsize_t, ifindex int32) { + var dst uintptr + var len1 int32 + _, _ = dst, len1 + switch af { + case int32(PF_INET): + dst = sa + 4 + len1 = int32(4) + case int32(PF_INET6): + dst = sa + 8 + len1 = int32(16) + if Int32FromUint8(**(**Tuint8_t)(__ccgo_up(addr))) == int32(0xfe) && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(addr + 1)))&int32(0xc0) == int32(0x80) || Int32FromUint8(**(**Tuint8_t)(__ccgo_up(addr))) == int32(0xff) && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(addr + 1)))&int32(0xf) == int32(0x2) { + (*(*Tsockaddr_in6)(unsafe.Pointer(sa))).Fsin6_scope_id = Uint32FromInt32(ifindex) + } + default: + return + } + if addrlen < Uint64FromInt32(len1) { + return + } + (*Tsockany)(unsafe.Pointer(sa)).Fsa.Fsa_family = Uint16FromInt32(af) + Xmemcpy(tls, dst, addr, Uint64FromInt32(len1)) + **(**uintptr)(__ccgo_up(r)) = sa +} + +func _gen_netmask(tls *TLS, r uintptr, af int32, sa uintptr, prefixlen int32) { + bp := tls.Alloc(16) + defer tls.Free(16) + var i, v1 int32 + var _ /* addr at bp+0 */ [16]Tuint8_t + _, _ = i, v1 + **(**[16]Tuint8_t)(__ccgo_up(bp)) = [16]Tuint8_t{} + if Uint64FromInt32(prefixlen) > Uint64FromInt32(8)*Uint64FromInt64(16) { + prefixlen = Int32FromUint64(Uint64FromInt32(8) * Uint64FromInt64(16)) + } + i = prefixlen / int32(8) + Xmemset(tls, bp, int32(0xff), Uint64FromInt32(i)) + if Uint64FromInt32(i) < uint64(16) { + v1 = i + i = i + 1 + (**(**[16]Tuint8_t)(__ccgo_up(bp)))[v1] = Uint8FromInt32(int32(0xff) << (int32(8) - prefixlen%int32(8))) + } + _copy_addr(tls, r, af, sa, bp, uint64(16), 0) +} + +func _copy_lladdr(tls *TLS, r uintptr, sa uintptr, addr uintptr, addrlen Tsize_t, ifindex int32, hatype uint16) { + if addrlen > uint64(24) { + return + } + (*(*Tsockaddr_ll_hack)(unsafe.Pointer(sa))).Fsll_family = uint16(PF_PACKET) + (*(*Tsockaddr_ll_hack)(unsafe.Pointer(sa))).Fsll_ifindex = ifindex + (*(*Tsockaddr_ll_hack)(unsafe.Pointer(sa))).Fsll_hatype = hatype + (*(*Tsockaddr_ll_hack)(unsafe.Pointer(sa))).Fsll_halen = uint8(addrlen) + Xmemcpy(tls, sa+12, addr, addrlen) + **(**uintptr)(__ccgo_up(r)) = sa +} + +func _netlink_msg_to_ifaddr(tls *TLS, pctx uintptr, h uintptr) (r int32) { + var bucket uint32 + var ctx, ifa, ifi, ifs, ifs0, rta uintptr + var stats_len int32 + _, _, _, _, _, _, _, _ = bucket, ctx, ifa, ifi, ifs, ifs0, rta, stats_len + ctx = pctx + ifi = h + UintptrFromInt64(16) + ifa = h + UintptrFromInt64(16) + stats_len = 0 + if Int32FromUint16((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_type) == int32(RTM_NEWLINK) { + rta = h + UintptrFromInt64(16) + uintptr((Uint64FromInt64(16)+Uint64FromInt32(3))&Uint64FromInt32(^Int32FromInt32(3))) + for { + if !(Uint64FromInt64(int64(h+uintptr((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_len))-int64(rta)) >= uint64(4)) { + break + } + if Int32FromUint16((*Trtattr)(unsafe.Pointer(rta)).Frta_type) != int32(IFLA_STATS) { + goto _1 + } + stats_len = Int32FromUint64(uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len) - Uint64FromInt64(4)) + break + goto _1 + _1: + ; + rta = rta + uintptr((Int32FromUint16((*Trtattr)(unsafe.Pointer(rta)).Frta_len)+Int32FromInt32(3)) & ^Int32FromInt32(3)) + } + } else { + ifs0 = **(**uintptr)(__ccgo_up(ctx + 16 + uintptr((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_index%uint32(IFADDRS_HASH_SIZE))*8)) + for { + if !(ifs0 != 0) { + break + } + if (*Tifaddrs_storage)(unsafe.Pointer(ifs0)).Findex == (*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_index { + break + } + goto _2 + _2: + ; + ifs0 = (*Tifaddrs_storage)(unsafe.Pointer(ifs0)).Fhash_next + } + if !(ifs0 != 0) { + return 0 + } + } + ifs = Xcalloc(tls, uint64(1), uint64(200)+Uint64FromInt32(stats_len)) + if ifs == uintptr(0) { + return -int32(1) + } + if Int32FromUint16((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_type) == int32(RTM_NEWLINK) { + (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Findex = Uint32FromInt32((*Tifinfomsg)(unsafe.Pointer(ifi)).Fifi_index) + (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_flags = (*Tifinfomsg)(unsafe.Pointer(ifi)).Fifi_flags + rta = h + UintptrFromInt64(16) + uintptr((Uint64FromInt64(16)+Uint64FromInt32(3))&Uint64FromInt32(^Int32FromInt32(3))) + for { + if !(Uint64FromInt64(int64(h+uintptr((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_len))-int64(rta)) >= uint64(4)) { + break + } + switch Int32FromUint16((*Trtattr)(unsafe.Pointer(rta)).Frta_type) { + case int32(IFLA_IFNAME): + if uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-uint64(4) < uint64(17) { + Xmemcpy(tls, ifs+176, rta+UintptrFromInt64(4), uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-Uint64FromInt64(4)) + (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_name = ifs + 176 + } + case int32(IFLA_ADDRESS): + _copy_lladdr(tls, ifs+24, ifs+64, rta+UintptrFromInt64(4), uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-Uint64FromInt64(4), (*Tifinfomsg)(unsafe.Pointer(ifi)).Fifi_index, (*Tifinfomsg)(unsafe.Pointer(ifi)).Fifi_type) + case int32(IFLA_BROADCAST): + _copy_lladdr(tls, ifs+40, ifs+136, rta+UintptrFromInt64(4), uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-Uint64FromInt64(4), (*Tifinfomsg)(unsafe.Pointer(ifi)).Fifi_index, (*Tifinfomsg)(unsafe.Pointer(ifi)).Fifi_type) + case int32(IFLA_STATS): + (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_data = ifs + UintptrFromInt32(1)*200 + Xmemcpy(tls, (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_data, rta+UintptrFromInt64(4), uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-Uint64FromInt64(4)) + break + } + goto _3 + _3: + ; + rta = rta + uintptr((Int32FromUint16((*Trtattr)(unsafe.Pointer(rta)).Frta_len)+Int32FromInt32(3)) & ^Int32FromInt32(3)) + } + if (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_name != 0 { + bucket = (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Findex % uint32(IFADDRS_HASH_SIZE) + (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fhash_next = **(**uintptr)(__ccgo_up(ctx + 16 + uintptr(bucket)*8)) + **(**uintptr)(__ccgo_up(ctx + 16 + uintptr(bucket)*8)) = ifs + } + } else { + (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_name = (*Tifaddrs_storage)(unsafe.Pointer(ifs0)).Fifa.Fifa_name + (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_flags = (*Tifaddrs_storage)(unsafe.Pointer(ifs0)).Fifa.Fifa_flags + rta = h + UintptrFromInt64(16) + uintptr((Uint64FromInt64(8)+Uint64FromInt32(3))&Uint64FromInt32(^Int32FromInt32(3))) + for { + if !(Uint64FromInt64(int64(h+uintptr((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_len))-int64(rta)) >= uint64(4)) { + break + } + switch Int32FromUint16((*Trtattr)(unsafe.Pointer(rta)).Frta_type) { + case int32(IFA_ADDRESS): + /* If ifa_addr is already set we, received an IFA_LOCAL before + * so treat this as destination address */ + if (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_addr != 0 { + _copy_addr(tls, ifs+40, Int32FromUint8((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_family), ifs+136, rta+UintptrFromInt64(4), uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-Uint64FromInt64(4), Int32FromUint32((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_index)) + } else { + _copy_addr(tls, ifs+24, Int32FromUint8((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_family), ifs+64, rta+UintptrFromInt64(4), uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-Uint64FromInt64(4), Int32FromUint32((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_index)) + } + case int32(IFA_BROADCAST): + _copy_addr(tls, ifs+40, Int32FromUint8((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_family), ifs+136, rta+UintptrFromInt64(4), uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-Uint64FromInt64(4), Int32FromUint32((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_index)) + case int32(IFA_LOCAL): + /* If ifa_addr is set and we get IFA_LOCAL, assume we have + * a point-to-point network. Move address to correct field. */ + if (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_addr != 0 { + (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifu = (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Faddr + *(*uintptr)(unsafe.Pointer(ifs + 40)) = ifs + 136 + Xmemset(tls, ifs+64, 0, uint64(36)) + } + _copy_addr(tls, ifs+24, Int32FromUint8((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_family), ifs+64, rta+UintptrFromInt64(4), uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-Uint64FromInt64(4), Int32FromUint32((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_index)) + case int32(IFA_LABEL): + if uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-uint64(4) < uint64(17) { + Xmemcpy(tls, ifs+176, rta+UintptrFromInt64(4), uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-Uint64FromInt64(4)) + (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_name = ifs + 176 + } + break + } + goto _4 + _4: + ; + rta = rta + uintptr((Int32FromUint16((*Trtattr)(unsafe.Pointer(rta)).Frta_len)+Int32FromInt32(3)) & ^Int32FromInt32(3)) + } + if (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_addr != 0 { + _gen_netmask(tls, ifs+32, Int32FromUint8((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_family), ifs+100, Int32FromUint8((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_prefixlen)) + } + } + if (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_name != 0 { + if !((*Tifaddrs_ctx)(unsafe.Pointer(ctx)).Ffirst != 0) { + (*Tifaddrs_ctx)(unsafe.Pointer(ctx)).Ffirst = ifs + } + if (*Tifaddrs_ctx)(unsafe.Pointer(ctx)).Flast != 0 { + (*Tifaddrs)(unsafe.Pointer((*Tifaddrs_ctx)(unsafe.Pointer(ctx)).Flast)).Fifa_next = ifs + } + (*Tifaddrs_ctx)(unsafe.Pointer(ctx)).Flast = ifs + } else { + Xfree(tls, ifs) + } + return 0 +} + +func Xgetifaddrs(tls *TLS, ifap uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v ifap=%v, (%v:)", tls, ifap, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(528) + defer tls.Free(528) + var ctx uintptr + var r int32 + var _ /* _ctx at bp+0 */ Tifaddrs_ctx + _, _ = ctx, r + ctx = bp + Xmemset(tls, ctx, 0, uint64(528)) + r = X__rtnetlink_enumerate(tls, PF_UNSPEC, PF_UNSPEC, __ccgo_fp(_netlink_msg_to_ifaddr), ctx) + if r == 0 { + **(**uintptr)(__ccgo_up(ifap)) = (*Tifaddrs_ctx)(unsafe.Pointer(ctx)).Ffirst + } else { + Xfreeifaddrs(tls, (*Tifaddrs_ctx)(unsafe.Pointer(ctx)).Ffirst) + } + return r +} + +const RR_PTR = 12 + +func _itoa(tls *TLS, p uintptr, x uint32) (r uintptr) { + var v1 uintptr + _ = v1 + p = p + uintptr(Uint64FromInt32(3)*Uint64FromInt64(4)) + p = p - 1 + v1 = p + **(**uint8)(__ccgo_up(v1)) = uint8(0) + for cond := true; cond; cond = x != 0 { + p = p - 1 + v1 = p + **(**uint8)(__ccgo_up(v1)) = uint8(uint32('0') + x%uint32(10)) + x = x / uint32(10) + } + return p +} + +func _mkptr4(tls *TLS, s uintptr, ip uintptr) { + bp := tls.Alloc(48) + defer tls.Free(48) + Xsprintf(tls, s, __ccgo_ts+1021, VaList(bp+8, Int32FromUint8(**(**uint8)(__ccgo_up(ip + 3))), Int32FromUint8(**(**uint8)(__ccgo_up(ip + 2))), Int32FromUint8(**(**uint8)(__ccgo_up(ip + 1))), Int32FromUint8(**(**uint8)(__ccgo_up(ip))))) +} + +func _mkptr6(tls *TLS, s uintptr, ip uintptr) { + var i int32 + var v2 uintptr + _, _ = i, v2 + i = int32(15) + for { + if !(i >= 0) { + break + } + v2 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = _xdigits[Int32FromUint8(**(**uint8)(__ccgo_up(ip + uintptr(i))))&int32(15)] + v2 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = uint8('.') + v2 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = _xdigits[Int32FromUint8(**(**uint8)(__ccgo_up(ip + uintptr(i))))>>int32(4)] + v2 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = uint8('.') + goto _1 + _1: + ; + i = i - 1 + } + Xstrcpy(tls, s, __ccgo_ts+1046) +} + +var _xdigits = [17]uint8{'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'} + +func _reverse_hosts(tls *TLS, buf uintptr, a uintptr, scopeid uint32, family int32) { + bp := tls.Alloc(1824) + defer tls.Free(1824) + var f, p, z, v1, v2 uintptr + var v4, v5 int32 + var v7 bool + var _ /* _buf at bp+512 */ [1032]uint8 + var _ /* _f at bp+1592 */ TFILE + var _ /* atmp at bp+1544 */ [16]uint8 + var _ /* iplit at bp+1560 */ Taddress + var _ /* line at bp+0 */ [512]uint8 + _, _, _, _, _, _, _, _ = f, p, z, v1, v2, v4, v5, v7 + f = X__fopen_rb_ca(tls, __ccgo_ts+1055, bp+1592, bp+512, uint64(1032)) + if !(f != 0) { + return + } + if family == int32(PF_INET) { + Xmemcpy(tls, bp+1544+uintptr(12), a, uint64(4)) + Xmemcpy(tls, bp+1544, __ccgo_ts+1066, uint64(12)) + a = bp + 1544 + } + for Xfgets(tls, bp, int32(512), f) != 0 { + v1 = Xstrchr(tls, bp, int32('#')) + p = v1 + if v1 != 0 { + v2 = p + p = p + 1 + **(**uint8)(__ccgo_up(v2)) = uint8('\n') + **(**uint8)(__ccgo_up(p)) = Uint8FromInt32(0) + } + p = bp + for { + if v7 = **(**uint8)(__ccgo_up(p)) != 0; v7 { + v4 = Int32FromUint8(**(**uint8)(__ccgo_up(p))) + v5 = BoolInt32(v4 == int32(' ') || Uint32FromInt32(v4)-uint32('\t') < uint32(5)) + goto _6 + _6: + } + if !(v7 && !(v5 != 0)) { + break + } + goto _3 + _3: + ; + p = p + 1 + } + if !(**(**uint8)(__ccgo_up(p)) != 0) { + continue + } + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(0) + if X__lookup_ipliteral(tls, bp+1560, bp, PF_UNSPEC) <= 0 { + continue + } + if (**(**Taddress)(__ccgo_up(bp + 1560))).Ffamily == int32(PF_INET) { + Xmemcpy(tls, bp+1560+8+uintptr(12), bp+1560+8, uint64(4)) + Xmemcpy(tls, bp+1560+8, __ccgo_ts+1066, uint64(12)) + (**(**Taddress)(__ccgo_up(bp + 1560))).Fscopeid = uint32(0) + } + if Xmemcmp(tls, a, bp+1560+8, uint64(16)) != 0 || (**(**Taddress)(__ccgo_up(bp + 1560))).Fscopeid != scopeid { + continue + } + for { + if v7 = **(**uint8)(__ccgo_up(p)) != 0; v7 { + v4 = Int32FromUint8(**(**uint8)(__ccgo_up(p))) + v5 = BoolInt32(v4 == int32(' ') || Uint32FromInt32(v4)-uint32('\t') < uint32(5)) + goto _12 + _12: + } + if !(v7 && v5 != 0) { + break + } + goto _9 + _9: + ; + p = p + 1 + } + z = p + for { + if v7 = **(**uint8)(__ccgo_up(z)) != 0; v7 { + v4 = Int32FromUint8(**(**uint8)(__ccgo_up(z))) + v5 = BoolInt32(v4 == int32(' ') || Uint32FromInt32(v4)-uint32('\t') < uint32(5)) + goto _17 + _17: + } + if !(v7 && !(v5 != 0)) { + break + } + goto _14 + _14: + ; + z = z + 1 + } + **(**uint8)(__ccgo_up(z)) = uint8(0) + if int64(z)-int64(p) < int64(256) { + Xmemcpy(tls, buf, p, Uint64FromInt64(int64(z)-int64(p)+int64(1))) + break + } + } + X__fclose_ca(tls, f) +} + +func _reverse_services(tls *TLS, buf uintptr, port int32, dgram int32) { + bp := tls.Alloc(1408) + defer tls.Free(1408) + var f, p, v1, v2 uintptr + var svport uint64 + var v4, v5 int32 + var v7 bool + var _ /* _buf at bp+136 */ [1032]uint8 + var _ /* _f at bp+1168 */ TFILE + var _ /* line at bp+0 */ [128]uint8 + var _ /* z at bp+128 */ uintptr + _, _, _, _, _, _, _, _ = f, p, svport, v1, v2, v4, v5, v7 + f = X__fopen_rb_ca(tls, __ccgo_ts+1079, bp+1168, bp+136, uint64(1032)) + if !(f != 0) { + return + } + for Xfgets(tls, bp, int32(128), f) != 0 { + v1 = Xstrchr(tls, bp, int32('#')) + p = v1 + if v1 != 0 { + v2 = p + p = p + 1 + **(**uint8)(__ccgo_up(v2)) = uint8('\n') + **(**uint8)(__ccgo_up(p)) = Uint8FromInt32(0) + } + p = bp + for { + if v7 = **(**uint8)(__ccgo_up(p)) != 0; v7 { + v4 = Int32FromUint8(**(**uint8)(__ccgo_up(p))) + v5 = BoolInt32(v4 == int32(' ') || Uint32FromInt32(v4)-uint32('\t') < uint32(5)) + goto _6 + _6: + } + if !(v7 && !(v5 != 0)) { + break + } + goto _3 + _3: + ; + p = p + 1 + } + if !(**(**uint8)(__ccgo_up(p)) != 0) { + continue + } + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(0) + svport = Xstrtoul(tls, p, bp+128, int32(10)) + if svport != Uint64FromInt32(port) || **(**uintptr)(__ccgo_up(bp + 128)) == p { + continue + } + if dgram != 0 && Xstrncmp(tls, **(**uintptr)(__ccgo_up(bp + 128)), __ccgo_ts+1093, uint64(4)) != 0 { + continue + } + if !(dgram != 0) && Xstrncmp(tls, **(**uintptr)(__ccgo_up(bp + 128)), __ccgo_ts+1098, uint64(4)) != 0 { + continue + } + if int64(p)-t__predefined_ptrdiff_t(bp) > int64(32) { + continue + } + Xmemcpy(tls, buf, bp, Uint64FromInt64(int64(p)-t__predefined_ptrdiff_t(bp))) + break + } + X__fclose_ca(tls, f) +} + +func _dns_parse_callback(tls *TLS, c uintptr, rr int32, data uintptr, len1 int32, packet uintptr, plen int32) (r int32) { + if rr != int32(RR_PTR) { + return 0 + } + if X__dn_expand(tls, packet, packet+uintptr(plen), data, c, int32(256)) <= 0 { + **(**uint8)(__ccgo_up(c)) = uint8(0) + } + return 0 +} + +func Xgetnameinfo(tls *TLS, sa uintptr, sl Tsocklen_t, node uintptr, nodelen Tsocklen_t, serv uintptr, servlen Tsocklen_t, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v sa=%v sl=%v node=%v nodelen=%v serv=%v servlen=%v flags=%v, (%v:)", tls, sa, sl, node, nodelen, serv, servlen, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(976) + defer tls.Free(976) + var a, p, p1, v1 uintptr + var af, port, qlen, rlen int32 + var scopeid uint32 + var _ /* buf at bp+78 */ [256]uint8 + var _ /* num at bp+334 */ [13]uint8 + var _ /* ptr at bp+0 */ [78]uint8 + var _ /* query at bp+347 */ [96]uint8 + var _ /* reply at bp+443 */ [512]uint8 + var _ /* tmp at bp+955 */ [17]uint8 + _, _, _, _, _, _, _, _, _ = a, af, p, p1, port, qlen, rlen, scopeid, v1 + af = Int32FromUint16((*Tsockaddr)(unsafe.Pointer(sa)).Fsa_family) + switch af { + case int32(PF_INET): + a = sa + 4 + if uint64(sl) < uint64(16) { + return -int32(6) + } + _mkptr4(tls, bp, a) + scopeid = uint32(0) + case int32(PF_INET6): + a = sa + 8 + if uint64(sl) < uint64(28) { + return -int32(6) + } + if Xmemcmp(tls, a, __ccgo_ts+1066, uint64(12)) != 0 { + _mkptr6(tls, bp, a) + } else { + _mkptr4(tls, bp, a+uintptr(12)) + } + scopeid = (*Tsockaddr_in6)(unsafe.Pointer(sa)).Fsin6_scope_id + default: + return -int32(6) + } + if node != 0 && nodelen != 0 { + (**(**[256]uint8)(__ccgo_up(bp + 78)))[0] = uint8(0) + if !(flags&Int32FromInt32(NI_NUMERICHOST) != 0) { + _reverse_hosts(tls, bp+78, a, scopeid, af) + } + if !(**(**uint8)(__ccgo_up(bp + 78)) != 0) && !(flags&Int32FromInt32(NI_NUMERICHOST) != 0) { + qlen = X__res_mkquery(tls, 0, bp, int32(1), int32(RR_PTR), uintptr(0), 0, uintptr(0), bp+347, int32(96)) + (**(**[96]uint8)(__ccgo_up(bp + 347)))[int32(3)] = uint8(0) /* don't need AD flag */ + rlen = X__res_send(tls, bp+347, qlen, bp+443, int32(512)) + (**(**[256]uint8)(__ccgo_up(bp + 78)))[0] = uint8(0) + if rlen > 0 { + if Uint64FromInt32(rlen) > uint64(512) { + rlen = int32(512) + } + X__dns_parse(tls, bp+443, rlen, __ccgo_fp(_dns_parse_callback), bp+78) + } + } + if !(**(**uint8)(__ccgo_up(bp + 78)) != 0) { + if flags&int32(NI_NAMEREQD) != 0 { + return -int32(2) + } + Xinet_ntop(tls, af, a, bp+78, uint32(256)) + if scopeid != 0 { + p = uintptr(0) + if !(flags&Int32FromInt32(NI_NUMERICSCOPE) != 0) && (Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a))) == int32(0xfe) && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a + 1)))&int32(0xc0) == int32(0x80) || Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a))) == int32(0xff) && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a + 1)))&int32(0xf) == int32(0x2)) { + p = Xif_indextoname(tls, scopeid, bp+955+uintptr(1)) + } + if !(p != 0) { + p = _itoa(tls, bp+334, scopeid) + } + p = p - 1 + v1 = p + **(**uint8)(__ccgo_up(v1)) = uint8('%') + Xstrcat(tls, bp+78, p) + } + } + if _strlen(tls, bp+78) >= uint64(nodelen) { + return -int32(12) + } + Xstrcpy(tls, node, bp+78) + } + if serv != 0 && servlen != 0 { + p1 = bp + 78 + port = Int32FromUint16(Xntohs(tls, (*Tsockaddr_in)(unsafe.Pointer(sa)).Fsin_port)) + (**(**[256]uint8)(__ccgo_up(bp + 78)))[0] = uint8(0) + if !(flags&Int32FromInt32(NI_NUMERICSERV) != 0) { + _reverse_services(tls, bp+78, port, flags&int32(NI_DGRAM)) + } + if !(**(**uint8)(__ccgo_up(p1)) != 0) { + p1 = _itoa(tls, bp+334, Uint32FromInt32(port)) + } + if _strlen(tls, p1) >= uint64(servlen) { + return -int32(12) + } + Xstrcpy(tls, serv, p1) + } + return 0 +} + +func Xgetpeername(tls *TLS, fd int32, addr uintptr, len1 uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v addr=%v len1=%v, (%v:)", tls, fd, addr, len1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v8 int64 + var v1 int32 + var v2, v3, v4, v5, v6, v7 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _ = r, v1, v2, v3, v4, v5, v6, v7, v8 + v1 = int32(SYS_getpeername) + _ = int32(__SC_getpeername) + v2 = int64(fd) + v3 = int64(addr) + v4 = int64(len1) + v5 = int64(Int32FromInt32(0)) + v6 = int64(Int32FromInt32(0)) + v7 = int64(Int32FromInt32(0)) + if 0 != 0 { + r = ___syscall_cp(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _9 + } + v8 = r + goto _9 +_9: + return int32(X__syscall_ret(tls, Uint64FromInt64(v8))) +} + +func Xgetservbyname(tls *TLS, name uintptr, prots uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v prots=%v, (%v:)", tls, name, prots, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* res at bp+0 */ uintptr + if Xgetservbyname_r(tls, name, prots, uintptr(unsafe.Pointer(&_se)), uintptr(unsafe.Pointer(&_buf3)), uint64(16), bp) != 0 { + return uintptr(0) + } + return uintptr(unsafe.Pointer(&_se)) +} + +var _se Tservent + +var _buf3 [2]uintptr + +const ALIGN = 0 + +func Xgetservbyname_r(tls *TLS, name uintptr, prots uintptr, se uintptr, buf uintptr, buflen Tsize_t, res uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v prots=%v se=%v buf=%v buflen=%v res=%v, (%v:)", tls, name, prots, se, buf, buflen, res, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var align, cnt, proto int32 + var v1 uintptr + var _ /* end at bp+8 */ uintptr + var _ /* servs at bp+0 */ [2]Tservice + _, _, _, _ = align, cnt, proto, v1 + **(**uintptr)(__ccgo_up(res)) = uintptr(0) + /* Don't treat numeric port number strings as service records. */ + **(**uintptr)(__ccgo_up(bp + 8)) = __ccgo_ts + Xstrtoul(tls, name, bp+8, int32(10)) + if !(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)))) != 0) { + return int32(ENOENT) + } + /* Align buffer */ + align = Int32FromUint64(-uint64(buf) & (Uint64FromInt64(16) - Uint64FromInt64(8) - Uint64FromInt32(1))) + if buflen < Uint64FromInt32(2)*Uint64FromInt64(8)+Uint64FromInt32(align) { + return int32(ERANGE) + } + buf = buf + uintptr(align) + if !(prots != 0) { + proto = 0 + } else { + if !(Xstrcmp(tls, prots, __ccgo_ts+1103) != 0) { + proto = int32(IPPROTO_TCP) + } else { + if !(Xstrcmp(tls, prots, __ccgo_ts+1107) != 0) { + proto = int32(IPPROTO_UDP) + } else { + return int32(EINVAL) + } + } + } + cnt = X__lookup_serv(tls, bp, name, proto, 0, 0) + if cnt < 0 { + switch cnt { + case -int32(10): + fallthrough + case -int32(11): + return int32(ENOMEM) + default: + return int32(ENOENT) + } + } + (*Tservent)(unsafe.Pointer(se)).Fs_name = name + (*Tservent)(unsafe.Pointer(se)).Fs_aliases = buf + **(**uintptr)(__ccgo_up((*Tservent)(unsafe.Pointer(se)).Fs_aliases)) = (*Tservent)(unsafe.Pointer(se)).Fs_name + **(**uintptr)(__ccgo_up((*Tservent)(unsafe.Pointer(se)).Fs_aliases + 1*8)) = uintptr(0) + (*Tservent)(unsafe.Pointer(se)).Fs_port = Int32FromUint16(Xhtons(tls, (**(**[2]Tservice)(__ccgo_up(bp)))[0].Fport)) + if Int32FromUint8((**(**[2]Tservice)(__ccgo_up(bp)))[0].Fproto) == int32(IPPROTO_TCP) { + v1 = __ccgo_ts + 1103 + } else { + v1 = __ccgo_ts + 1107 + } + (*Tservent)(unsafe.Pointer(se)).Fs_proto = v1 + **(**uintptr)(__ccgo_up(res)) = se + return 0 +} + +func Xgetsockname(tls *TLS, fd int32, addr uintptr, len1 uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v addr=%v len1=%v, (%v:)", tls, fd, addr, len1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v8 int64 + var v1 int32 + var v2, v3, v4, v5, v6, v7 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _ = r, v1, v2, v3, v4, v5, v6, v7, v8 + v1 = int32(SYS_getsockname) + _ = int32(__SC_getsockname) + v2 = int64(fd) + v3 = int64(addr) + v4 = int64(len1) + v5 = int64(Int32FromInt32(0)) + v6 = int64(Int32FromInt32(0)) + v7 = int64(Int32FromInt32(0)) + if 0 != 0 { + r = ___syscall_cp(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _9 + } + v8 = r + goto _9 +_9: + return int32(X__syscall_ret(tls, Uint64FromInt64(v8))) +} + +func Xgetsockopt(tls *TLS, fd int32, level int32, optname int32, optval uintptr, optlen uintptr) (r2 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v level=%v optname=%v optval=%v optlen=%v, (%v:)", tls, fd, level, optname, optval, optlen, origin(2)) + defer func() { trc("-> %v", r2) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var r, v8 int64 + var r1, v1 int32 + var tv uintptr + var v2, v3, v4, v5, v6, v7 Tsyscall_arg_t + var _ /* tv32 at bp+8 */ [2]int64 + _, _, _, _, _, _, _, _, _, _, _ = r, r1, tv, v1, v2, v3, v4, v5, v6, v7, v8 + v1 = int32(SYS_getsockopt) + _ = int32(__SC_getsockopt) + v2 = int64(fd) + v3 = int64(level) + v4 = int64(optname) + v5 = int64(optval) + v6 = int64(optlen) + v7 = int64(Int32FromInt32(0)) + if 0 != 0 { + r = ___syscall_cp(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _9 + } + v8 = r + goto _9 +_9: + r1 = int32(v8) + if r1 == -int32(ENOPROTOOPT) { + switch level { + case int32(SOL_SOCKET): + switch optname { + case int32(SO_RCVTIMEO): + fallthrough + case int32(SO_SNDTIMEO): + if true { + break + } + if uint64(**(**Tsocklen_t)(__ccgo_up(optlen))) < uint64(16) { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL)))) + } + if optname == int32(SO_RCVTIMEO) { + optname = int32(SO_RCVTIMEO_OLD) + } + if optname == int32(SO_SNDTIMEO) { + optname = int32(SO_SNDTIMEO_OLD) + } + *(*[1]Tsocklen_t)(unsafe.Pointer(bp)) = [1]Tsocklen_t{ + 0: uint32(16), + } + v1 = int32(SYS_getsockopt) + _ = int32(__SC_getsockopt) + v2 = int64(fd) + v3 = int64(level) + v4 = int64(optname) + v5 = int64(bp + 8) + v6 = int64(bp) + v7 = int64(Int32FromInt32(0)) + if 0 != 0 { + r = ___syscall_cp(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _18 + } + v8 = r + goto _18 + _18: + r1 = int32(v8) + if r1 < 0 { + break + } + tv = optval + (*Ttimeval)(unsafe.Pointer(tv)).Ftv_sec = (**(**[2]int64)(__ccgo_up(bp + 8)))[0] + (*Ttimeval)(unsafe.Pointer(tv)).Ftv_usec = (**(**[2]int64)(__ccgo_up(bp + 8)))[int32(1)] + **(**Tsocklen_t)(__ccgo_up(optlen)) = uint32(16) + case int32(SO_TIMESTAMP): + fallthrough + case int32(SO_TIMESTAMPNS): + if true { + break + } + if optname == int32(SO_TIMESTAMP) { + optname = int32(SO_TIMESTAMP_OLD) + } + if optname == int32(SO_TIMESTAMPNS) { + optname = int32(SO_TIMESTAMPNS_OLD) + } + v1 = int32(SYS_getsockopt) + _ = int32(__SC_getsockopt) + v2 = int64(fd) + v3 = int64(level) + v4 = int64(optname) + v5 = int64(optval) + v6 = int64(optlen) + v7 = int64(Int32FromInt32(0)) + if 0 != 0 { + r = ___syscall_cp(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _27 + } + v8 = r + goto _27 + _27: + r1 = int32(v8) + break + } + } + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r1))) +} + +func X__h_errno_location(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + if !((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Fstack != 0) { + return uintptr(unsafe.Pointer(&Xh_errno)) + } + return uintptr(___get_tp(tls)) + 144 +} + +func Xherror(tls *TLS, msg uintptr) { + if __ccgo_strace { + trc("tls=%v msg=%v, (%v:)", tls, msg, origin(2)) + } + bp := tls.Alloc(32) + defer tls.Free(32) + var v1, v2 uintptr + _, _ = v1, v2 + if msg != 0 { + v1 = msg + } else { + v1 = __ccgo_ts + } + if msg != 0 { + v2 = __ccgo_ts + 289 + } else { + v2 = __ccgo_ts + } + Xfprintf(tls, uintptr(unsafe.Pointer(&X__stderr_FILE)), __ccgo_ts+1111, VaList(bp+8, v1, v2, Xhstrerror(tls, **(**int32)(__ccgo_up(X__h_errno_location(tls)))))) +} + +var _msgs1 = [84]uint8{'H', 'o', 's', 't', ' ', 'n', 'o', 't', ' ', 'f', 'o', 'u', 'n', 'd', 0, 'T', 'r', 'y', ' ', 'a', 'g', 'a', 'i', 'n', 0, 'N', 'o', 'n', '-', 'r', 'e', 'c', 'o', 'v', 'e', 'r', 'a', 'b', 'l', 'e', ' ', 'e', 'r', 'r', 'o', 'r', 0, 'A', 'd', 'd', 'r', 'e', 's', 's', ' ', 'n', 'o', 't', ' ', 'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e', 0, 0, 'U', 'n', 'k', 'n', 'o', 'w', 'n', ' ', 'e', 'r', 'r', 'o', 'r'} + +func Xhstrerror(tls *TLS, ecode int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v ecode=%v, (%v:)", tls, ecode, origin(2)) + defer func() { trc("-> %v", r) }() + } + var s uintptr + _ = s + s = uintptr(unsafe.Pointer(&_msgs1)) + ecode = ecode - 1 + for { + if !(ecode != 0 && **(**uint8)(__ccgo_up(s)) != 0) { + break + } + for { + if !(**(**uint8)(__ccgo_up(s)) != 0) { + break + } + goto _2 + _2: + ; + s = s + 1 + } + goto _1 + _1: + ; + ecode = ecode - 1 + s = s + 1 + } + if !(**(**uint8)(__ccgo_up(s)) != 0) { + s = s + 1 + } + return X__lctrans_cur(tls, s) +} + +func Xhtonl(tls *TLS, n Tuint32_t) (r Tuint32_t) { + if __ccgo_strace { + trc("tls=%v n=%v, (%v:)", tls, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var u struct { + Fc [0]uint8 + Fi int32 + } + var v1 uint32 + var v2, v3 Tuint32_t + _, _, _, _ = u, v1, v2, v3 + u = *(*struct { + Fc [0]uint8 + Fi int32 + })(unsafe.Pointer(&struct{ f int32 }{f: int32(1)})) + if *(*uint8)(unsafe.Pointer(&u)) != 0 { + v2 = n + v3 = v2>>int32(24) | v2>>int32(8)&uint32(0xff00) | v2< %v", r) }() + } + var u struct { + Fc [0]uint8 + Fi int32 + } + var v1 int32 + var v2, v3 Tuint16_t + _, _, _, _ = u, v1, v2, v3 + u = *(*struct { + Fc [0]uint8 + Fi int32 + })(unsafe.Pointer(&struct{ f int32 }{f: int32(1)})) + if *(*uint8)(unsafe.Pointer(&u)) != 0 { + v2 = n + v3 = Uint16FromInt32(Int32FromUint16(v2)<>int32(8)) + goto _4 + _4: + v1 = Int32FromUint16(v3) + } else { + v1 = Int32FromUint16(n) + } + return Uint16FromInt32(v1) +} + +func Xif_freenameindex(tls *TLS, idx uintptr) { + if __ccgo_strace { + trc("tls=%v idx=%v, (%v:)", tls, idx, origin(2)) + } + Xfree(tls, idx) +} + +func Xif_indextoname(tls *TLS, index uint32, name uintptr) (r1 uintptr) { + if __ccgo_strace { + trc("tls=%v index=%v name=%v, (%v:)", tls, index, name, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var fd, r, v1 int32 + var _ /* ifr at bp+0 */ Tifreq + _, _, _ = fd, r, v1 + v1 = Xsocket(tls, int32(PF_LOCAL), Int32FromInt32(SOCK_DGRAM)|Int32FromInt32(SOCK_CLOEXEC), 0) + fd = v1 + if v1 < 0 { + return uintptr(0) + } + *(*int32)(unsafe.Pointer(bp + 16)) = Int32FromUint32(index) + r = Xioctl(tls, fd, int32(SIOCGIFNAME), VaList(bp+48, bp)) + X__syscall1(tls, int64(SYS_close), int64(fd)) + if r < 0 { + if **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(ENODEV) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENXIO) + } + return uintptr(0) + } + return Xstrncpy(tls, name, bp, uint64(IF_NAMESIZE)) +} + +type Tifnamemap = struct { + Fhash_next uint32 + Findex uint32 + Fnamelen uint8 + Fname [16]uint8 +} + +type Tifnameindexctx = struct { + Fnum uint32 + Fallocated uint32 + Fstr_bytes uint32 + Flist uintptr + Fhash [64]uint32 +} + +func _netlink_msg_to_nameindex(tls *TLS, pctx uintptr, h uintptr) (r int32) { + var a Tsize_t + var bucket, index, namelen, type1 int32 + var ctx, ifa, ifi, map1, rta uintptr + var i, v2 uint32 + _, _, _, _, _, _, _, _, _, _, _, _ = a, bucket, ctx, i, ifa, ifi, index, map1, namelen, rta, type1, v2 + ctx = pctx + if Int32FromUint16((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_type) == int32(RTM_NEWLINK) { + ifi = h + UintptrFromInt64(16) + index = (*Tifinfomsg)(unsafe.Pointer(ifi)).Fifi_index + type1 = int32(IFLA_IFNAME) + rta = h + UintptrFromInt64(16) + uintptr((Uint64FromInt64(16)+Uint64FromInt32(3))&Uint64FromInt32(^Int32FromInt32(3))) + } else { + ifa = h + UintptrFromInt64(16) + index = Int32FromUint32((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_index) + type1 = int32(IFA_LABEL) + rta = h + UintptrFromInt64(16) + uintptr((Uint64FromInt64(8)+Uint64FromInt32(3))&Uint64FromInt32(^Int32FromInt32(3))) + } + for { + if !(Uint64FromInt64(int64(h+uintptr((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_len))-int64(rta)) >= uint64(4)) { + break + } + if Int32FromUint16((*Trtattr)(unsafe.Pointer(rta)).Frta_type) != type1 { + goto _1 + } + namelen = Int32FromUint64(uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len) - uint64(4) - uint64(1)) + if namelen > int32(IF_NAMESIZE) { + return 0 + } + /* suppress duplicates */ + bucket = index % int32(IFADDRS_HASH_SIZE) + i = **(**uint32)(__ccgo_up(ctx + 24 + uintptr(bucket)*4)) + for i != 0 { + map1 = (*Tifnameindexctx)(unsafe.Pointer(ctx)).Flist + uintptr(i-uint32(1))*28 + if (*Tifnamemap)(unsafe.Pointer(map1)).Findex == Uint32FromInt32(index) && Int32FromUint8((*Tifnamemap)(unsafe.Pointer(map1)).Fnamelen) == namelen && Xmemcmp(tls, map1+9, rta+UintptrFromInt64(4), Uint64FromInt32(namelen)) == 0 { + return 0 + } + i = (*Tifnamemap)(unsafe.Pointer(map1)).Fhash_next + } + if (*Tifnameindexctx)(unsafe.Pointer(ctx)).Fnum >= (*Tifnameindexctx)(unsafe.Pointer(ctx)).Fallocated { + if (*Tifnameindexctx)(unsafe.Pointer(ctx)).Fallocated != 0 { + v2 = (*Tifnameindexctx)(unsafe.Pointer(ctx)).Fallocated*uint32(2) + uint32(1) + } else { + v2 = uint32(8) + } + a = uint64(v2) + if a > Uint64FromUint64(0xffffffffffffffff)/Uint64FromInt64(28) { + return -int32(1) + } + map1 = Xrealloc(tls, (*Tifnameindexctx)(unsafe.Pointer(ctx)).Flist, a*uint64(28)) + if !(map1 != 0) { + return -int32(1) + } + (*Tifnameindexctx)(unsafe.Pointer(ctx)).Flist = map1 + (*Tifnameindexctx)(unsafe.Pointer(ctx)).Fallocated = uint32(a) + } + map1 = (*Tifnameindexctx)(unsafe.Pointer(ctx)).Flist + uintptr((*Tifnameindexctx)(unsafe.Pointer(ctx)).Fnum)*28 + (*Tifnamemap)(unsafe.Pointer(map1)).Findex = Uint32FromInt32(index) + (*Tifnamemap)(unsafe.Pointer(map1)).Fnamelen = Uint8FromInt32(namelen) + Xmemcpy(tls, map1+9, rta+UintptrFromInt64(4), Uint64FromInt32(namelen)) + **(**uint32)(__ccgo_up(ctx + 8)) += Uint32FromInt32(namelen + int32(1)) + (*Tifnameindexctx)(unsafe.Pointer(ctx)).Fnum = (*Tifnameindexctx)(unsafe.Pointer(ctx)).Fnum + 1 + (*Tifnamemap)(unsafe.Pointer(map1)).Fhash_next = **(**uint32)(__ccgo_up(ctx + 24 + uintptr(bucket)*4)) + **(**uint32)(__ccgo_up(ctx + 24 + uintptr(bucket)*4)) = (*Tifnameindexctx)(unsafe.Pointer(ctx)).Fnum + return 0 + goto _1 + _1: + ; + rta = rta + uintptr((Int32FromUint16((*Trtattr)(unsafe.Pointer(rta)).Frta_len)+Int32FromInt32(3)) & ^Int32FromInt32(3)) + } + return 0 +} + +func Xif_nameindex(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(288) + defer tls.Free(288) + var ctx, d, ifs, p, s, v2 uintptr + var i int32 + var _ /* _ctx at bp+0 */ Tifnameindexctx + var _ /* cs at bp+280 */ int32 + _, _, _, _, _, _, _ = ctx, d, i, ifs, p, s, v2 + ctx = bp + ifs = uintptr(0) + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp+280) + Xmemset(tls, ctx, 0, uint64(280)) + if X__rtnetlink_enumerate(tls, PF_UNSPEC, int32(PF_INET), __ccgo_fp(_netlink_msg_to_nameindex), ctx) < 0 { + goto err + } + ifs = Xmalloc(tls, uint64((*Tifnameindexctx)(unsafe.Pointer(ctx)).Fnum+Uint32FromInt32(1))*16+uint64((*Tifnameindexctx)(unsafe.Pointer(ctx)).Fstr_bytes)) + if !(ifs != 0) { + goto err + } + p = ifs + uintptr((*Tifnameindexctx)(unsafe.Pointer(ctx)).Fnum)*16 + UintptrFromInt32(1)*16 + i = Int32FromUint32((*Tifnameindexctx)(unsafe.Pointer(ctx)).Fnum) + d = ifs + s = (*Tifnameindexctx)(unsafe.Pointer(ctx)).Flist + for { + if !(i != 0) { + break + } + (*Tif_nameindex)(unsafe.Pointer(d)).Fif_index = (*Tifnamemap)(unsafe.Pointer(s)).Findex + (*Tif_nameindex)(unsafe.Pointer(d)).Fif_name = p + Xmemcpy(tls, p, s+9, uint64((*Tifnamemap)(unsafe.Pointer(s)).Fnamelen)) + p = p + uintptr((*Tifnamemap)(unsafe.Pointer(s)).Fnamelen) + v2 = p + p = p + 1 + **(**uint8)(__ccgo_up(v2)) = uint8(0) + goto _1 + _1: + ; + i = i - 1 + s += 28 + d += 16 + } + (*Tif_nameindex)(unsafe.Pointer(d)).Fif_index = uint32(0) + (*Tif_nameindex)(unsafe.Pointer(d)).Fif_name = uintptr(0) + goto err +err: + ; + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 280)), uintptr(0)) + Xfree(tls, (*Tifnameindexctx)(unsafe.Pointer(ctx)).Flist) + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOBUFS) + return ifs +} + +func Xif_nametoindex(tls *TLS, name uintptr) (r1 uint32) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var fd, r, v1 int32 + var _ /* ifr at bp+0 */ Tifreq + _, _, _ = fd, r, v1 + v1 = Xsocket(tls, int32(PF_LOCAL), Int32FromInt32(SOCK_DGRAM)|Int32FromInt32(SOCK_CLOEXEC), 0) + fd = v1 + if v1 < 0 { + return uint32(0) + } + Xstrncpy(tls, bp, name, uint64(16)) + r = Xioctl(tls, fd, int32(SIOCGIFINDEX), VaList(bp+48, bp)) + X__syscall1(tls, int64(SYS_close), int64(fd)) + if r < 0 { + v1 = 0 + } else { + v1 = *(*int32)(unsafe.Pointer(bp + 16)) + } + return Uint32FromInt32(v1) +} + +func Xinet_addr(tls *TLS, p uintptr) (r Tin_addr_t) { + if __ccgo_strace { + trc("tls=%v p=%v, (%v:)", tls, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* a at bp+0 */ Tin_addr + if !(X__inet_aton(tls, p, bp) != 0) { + return Uint32FromInt32(-Int32FromInt32(1)) + } + return (**(**Tin_addr)(__ccgo_up(bp))).Fs_addr +} + +func X__inet_aton(tls *TLS, s0 uintptr, dest uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s0=%v dest=%v, (%v:)", tls, s0, dest, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + var d, s uintptr + var i int32 + var _ /* a at bp+0 */ [4]uint64 + var _ /* z at bp+32 */ uintptr + _, _, _ = d, i, s + s = s0 + d = dest + **(**[4]uint64)(__ccgo_up(bp)) = [4]uint64{} + i = 0 + for { + if !(i < int32(4)) { + break + } + (**(**[4]uint64)(__ccgo_up(bp)))[i] = Xstrtoul(tls, s, bp+32, 0) + if **(**uintptr)(__ccgo_up(bp + 32)) == s || **(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 32)))) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 32))))) != int32('.') || !(BoolInt32(uint32(**(**uint8)(__ccgo_up(s)))-Uint32FromUint8('0') < Uint32FromInt32(10)) != 0) { + return 0 + } + if !(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 32)))) != 0) { + break + } + s = **(**uintptr)(__ccgo_up(bp + 32)) + uintptr(1) + goto _1 + _1: + ; + i = i + 1 + } + if i == int32(4) { + return 0 + } + switch i { + case 0: + (**(**[4]uint64)(__ccgo_up(bp)))[int32(1)] = (**(**[4]uint64)(__ccgo_up(bp)))[0] & uint64(0xffffff) + **(**uint64)(__ccgo_up(bp)) >>= uint64(24) + fallthrough + case int32(1): + (**(**[4]uint64)(__ccgo_up(bp)))[int32(2)] = (**(**[4]uint64)(__ccgo_up(bp)))[int32(1)] & uint64(0xffff) + **(**uint64)(__ccgo_up(bp + 1*8)) >>= uint64(16) + fallthrough + case int32(2): + (**(**[4]uint64)(__ccgo_up(bp)))[int32(3)] = (**(**[4]uint64)(__ccgo_up(bp)))[int32(2)] & uint64(0xff) + **(**uint64)(__ccgo_up(bp + 2*8)) >>= uint64(8) + } + i = 0 + for { + if !(i < int32(4)) { + break + } + if (**(**[4]uint64)(__ccgo_up(bp)))[i] > uint64(255) { + return 0 + } + **(**uint8)(__ccgo_up(d + uintptr(i))) = uint8((**(**[4]uint64)(__ccgo_up(bp)))[i]) + goto _2 + _2: + ; + i = i + 1 + } + return int32(1) +} + +func Xinet_aton(tls *TLS, s0 uintptr, dest uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s0=%v dest=%v, (%v:)", tls, s0, dest, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__inet_aton(tls, s0, dest) +} + +func Xinet_network(tls *TLS, p uintptr) (r Tin_addr_t) { + if __ccgo_strace { + trc("tls=%v p=%v, (%v:)", tls, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xntohl(tls, Xinet_addr(tls, p)) +} + +func Xinet_makeaddr(tls *TLS, n Tin_addr_t, h Tin_addr_t) (r Tin_addr) { + if __ccgo_strace { + trc("tls=%v n=%v h=%v, (%v:)", tls, n, h, origin(2)) + defer func() { trc("-> %v", r) }() + } + if n < uint32(256) { + h = h | n< %v", r) }() + } + var h Tuint32_t + _ = h + h = in.Fs_addr + if h>>int32(24) < uint32(128) { + return h & uint32(0xffffff) + } + if h>>int32(24) < uint32(192) { + return h & uint32(0xffff) + } + return h & uint32(0xff) +} + +func Xinet_netof(tls *TLS, in Tin_addr) (r Tin_addr_t) { + if __ccgo_strace { + trc("tls=%v in=%v, (%v:)", tls, in, origin(2)) + defer func() { trc("-> %v", r) }() + } + var h Tuint32_t + _ = h + h = in.Fs_addr + if h>>int32(24) < uint32(128) { + return h >> int32(24) + } + if h>>int32(24) < uint32(192) { + return h >> int32(16) + } + return h >> int32(8) +} + +func Xinet_ntoa(tls *TLS, _in Tin_addr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v _in=%v, (%v:)", tls, _in, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + *(*Tin_addr)(unsafe.Pointer(bp)) = _in + var a uintptr + _ = a + a = bp + Xsnprintf(tls, uintptr(unsafe.Pointer(&_buf4)), uint64(16), __ccgo_ts+1119, VaList(bp+16, Int32FromUint8(**(**uint8)(__ccgo_up(a))), Int32FromUint8(**(**uint8)(__ccgo_up(a + 1))), Int32FromUint8(**(**uint8)(__ccgo_up(a + 2))), Int32FromUint8(**(**uint8)(__ccgo_up(a + 3))))) + return uintptr(unsafe.Pointer(&_buf4)) +} + +var _buf4 [16]uint8 + +func Xinet_ntop(tls *TLS, af int32, a0 uintptr, s uintptr, l Tsocklen_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v af=%v a0=%v s=%v l=%v, (%v:)", tls, af, a0, s, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(192) + defer tls.Free(192) + var a uintptr + var best, i, j, max, v2 int32 + var v3 uint8 + var _ /* buf at bp+0 */ [100]uint8 + _, _, _, _, _, _, _ = a, best, i, j, max, v2, v3 + a = a0 + switch af { + case int32(PF_INET): + if Uint32FromInt32(Xsnprintf(tls, s, uint64(l), __ccgo_ts+1119, VaList(bp+112, Int32FromUint8(**(**uint8)(__ccgo_up(a))), Int32FromUint8(**(**uint8)(__ccgo_up(a + 1))), Int32FromUint8(**(**uint8)(__ccgo_up(a + 2))), Int32FromUint8(**(**uint8)(__ccgo_up(a + 3)))))) < l { + return s + } + case int32(PF_INET6): + if Xmemcmp(tls, a, __ccgo_ts+1066, uint64(12)) != 0 { + Xsnprintf(tls, bp, uint64(100), __ccgo_ts+1131, VaList(bp+112, int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 1))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 2)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 3))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 4)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 5))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 6)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 7))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 8)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 9))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 10)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 11))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 12)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 13))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 14)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 15))))) + } else { + Xsnprintf(tls, bp, uint64(100), __ccgo_ts+1155, VaList(bp+112, int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 1))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 2)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 3))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 4)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 5))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 6)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 7))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 8)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 9))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 10)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 11))), Int32FromUint8(**(**uint8)(__ccgo_up(a + 12))), Int32FromUint8(**(**uint8)(__ccgo_up(a + 13))), Int32FromUint8(**(**uint8)(__ccgo_up(a + 14))), Int32FromUint8(**(**uint8)(__ccgo_up(a + 15))))) + } + /* Replace longest /(^0|:)[:0]{2,}/ with "::" */ + v2 = Int32FromInt32(0) + best = v2 + i = v2 + max = Int32FromInt32(2) + for { + if !((**(**[100]uint8)(__ccgo_up(bp)))[i] != 0) { + break + } + if i != 0 && Int32FromUint8((**(**[100]uint8)(__ccgo_up(bp)))[i]) != int32(':') { + goto _1 + } + j = Int32FromUint64(Xstrspn(tls, bp+uintptr(i), __ccgo_ts+1185)) + if j > max { + best = i + max = j + } + goto _1 + _1: + ; + i = i + 1 + } + if max > int32(3) { + v3 = Uint8FromUint8(':') + (**(**[100]uint8)(__ccgo_up(bp)))[best+int32(1)] = v3 + (**(**[100]uint8)(__ccgo_up(bp)))[best] = v3 + Xmemmove(tls, bp+uintptr(best)+uintptr(2), bp+uintptr(best)+uintptr(max), Uint64FromInt32(i-best-max+int32(1))) + } + if _strlen(tls, bp) < uint64(l) { + Xstrcpy(tls, s, bp) + return s + } + default: + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EAFNOSUPPORT) + return uintptr(0) + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOSPC) + return uintptr(0) +} + +func _hexval(tls *TLS, c uint32) (r int32) { + if c-uint32('0') < uint32(10) { + return Int32FromUint32(c - uint32('0')) + } + c = c | uint32(32) + if c-uint32('a') < uint32(6) { + return Int32FromUint32(c - uint32('a') + uint32(10)) + } + return -int32(1) +} + +func Xinet_pton(tls *TLS, af int32, s uintptr, a0 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v af=%v s=%v a0=%v, (%v:)", tls, af, s, a0, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var a, v4 uintptr + var brk, d, i, j, need_v4, v, v3, v9 int32 + var v5 bool + var _ /* ip at bp+0 */ [8]Tuint16_t + _, _, _, _, _, _, _, _, _, _, _ = a, brk, d, i, j, need_v4, v, v3, v4, v5, v9 + a = a0 + brk = -int32(1) + need_v4 = 0 + if af == int32(PF_INET) { + i = 0 + for { + if !(i < int32(4)) { + break + } + v3 = Int32FromInt32(0) + j = v3 + v = v3 + for { + if !(j < int32(3) && BoolInt32(uint32(**(**uint8)(__ccgo_up(s + uintptr(j))))-uint32('0') < uint32(10)) != 0) { + break + } + v = int32(10)*v + Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(j)))) - int32('0') + goto _2 + _2: + ; + j = j + 1 + } + if j == 0 || j > int32(1) && Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('0') || v > int32(255) { + return 0 + } + **(**uint8)(__ccgo_up(a + uintptr(i))) = Uint8FromInt32(v) + if Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(j)))) == 0 && i == int32(3) { + return int32(1) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(j)))) != int32('.') { + return 0 + } + s = s + uintptr(j+int32(1)) + goto _1 + _1: + ; + i = i + 1 + } + return 0 + } else { + if af != int32(PF_INET6) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EAFNOSUPPORT) + return -int32(1) + } + } + if v5 = Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32(':'); v5 { + s = s + 1 + v4 = s + } + if v5 && Int32FromUint8(**(**uint8)(__ccgo_up(v4))) != int32(':') { + return 0 + } + i = 0 + for { + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32(':') && brk < 0 { + brk = i + (**(**[8]Tuint16_t)(__ccgo_up(bp)))[i&int32(7)] = uint16(0) + s = s + 1 + v4 = s + if !(**(**uint8)(__ccgo_up(v4)) != 0) { + break + } + if i == int32(7) { + return 0 + } + goto _6 + } + v3 = Int32FromInt32(0) + j = v3 + v = v3 + for { + if v5 = j < int32(4); v5 { + v9 = _hexval(tls, uint32(**(**uint8)(__ccgo_up(s + uintptr(j))))) + d = v9 + } + if !(v5 && v9 >= 0) { + break + } + v = int32(16)*v + d + goto _8 + _8: + ; + j = j + 1 + } + if j == 0 { + return 0 + } + (**(**[8]Tuint16_t)(__ccgo_up(bp)))[i&int32(7)] = Uint16FromInt32(v) + if !(**(**uint8)(__ccgo_up(s + uintptr(j))) != 0) && (brk >= 0 || i == int32(7)) { + break + } + if i == int32(7) { + return 0 + } + if Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(j)))) != int32(':') { + if Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(j)))) != int32('.') || i < int32(6) && brk < 0 { + return 0 + } + need_v4 = int32(1) + i = i + 1 + (**(**[8]Tuint16_t)(__ccgo_up(bp)))[i&int32(7)] = uint16(0) + break + } + s = s + uintptr(j+int32(1)) + goto _6 + _6: + ; + i = i + 1 + } + if brk >= 0 { + Xmemmove(tls, bp+uintptr(brk)*2+uintptr(7)*2-uintptr(i)*2, bp+uintptr(brk)*2, Uint64FromInt32(int32(2)*(i+int32(1)-brk))) + j = 0 + for { + if !(j < int32(7)-i) { + break + } + (**(**[8]Tuint16_t)(__ccgo_up(bp)))[brk+j] = uint16(0) + goto _12 + _12: + ; + j = j + 1 + } + } + j = 0 + for { + if !(j < int32(8)) { + break + } + v4 = a + a = a + 1 + **(**uint8)(__ccgo_up(v4)) = Uint8FromInt32(Int32FromUint16((**(**[8]Tuint16_t)(__ccgo_up(bp)))[j]) >> int32(8)) + v4 = a + a = a + 1 + **(**uint8)(__ccgo_up(v4)) = uint8((**(**[8]Tuint16_t)(__ccgo_up(bp)))[j]) + goto _13 + _13: + ; + j = j + 1 + } + if need_v4 != 0 && Xinet_pton(tls, int32(PF_INET), s, a-uintptr(4)) <= 0 { + return 0 + } + return int32(1) +} + +func Xlisten(tls *TLS, fd int32, backlog int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v backlog=%v, (%v:)", tls, fd, backlog, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v8 int64 + var v1 int32 + var v2, v3, v4, v5, v6, v7 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _ = r, v1, v2, v3, v4, v5, v6, v7, v8 + v1 = int32(SYS_listen) + _ = int32(__SC_listen) + v2 = int64(fd) + v3 = int64(backlog) + v4 = int64(Int32FromInt32(0)) + v5 = int64(Int32FromInt32(0)) + v6 = int64(Int32FromInt32(0)) + v7 = int64(Int32FromInt32(0)) + if 0 != 0 { + r = ___syscall_cp(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _9 + } + v8 = r + goto _9 +_9: + return int32(X__syscall_ret(tls, Uint64FromInt64(v8))) +} + +func X__lookup_ipliteral(tls *TLS, buf uintptr, name uintptr, family int32) (r int32) { + if __ccgo_strace { + trc("tls=%v buf=%v name=%v family=%v, (%v:)", tls, buf, name, family, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(96) + defer tls.Free(96) + var p, v1 uintptr + var scopeid uint64 + var _ /* a4 at bp+0 */ Tin_addr + var _ /* a6 at bp+4 */ Tin6_addr + var _ /* tmp at bp+20 */ [64]uint8 + var _ /* z at bp+88 */ uintptr + _, _, _ = p, scopeid, v1 + if X__inet_aton(tls, name, bp) > 0 { + if family == int32(PF_INET6) { /* wrong family */ + return -int32(5) + } + Xmemcpy(tls, buf+8, bp, uint64(4)) + (**(**Taddress)(__ccgo_up(buf))).Ffamily = int32(PF_INET) + (**(**Taddress)(__ccgo_up(buf))).Fscopeid = uint32(0) + return int32(1) + } + p = Xstrchr(tls, name, int32('%')) + scopeid = uint64(0) + if p != 0 && int64(p)-int64(name) < int64(64) { + Xmemcpy(tls, bp+20, name, Uint64FromInt64(int64(p)-int64(name))) + (**(**[64]uint8)(__ccgo_up(bp + 20)))[int64(p)-int64(name)] = uint8(0) + name = bp + 20 + } + if Xinet_pton(tls, int32(PF_INET6), name, bp+4) <= 0 { + return 0 + } + if family == int32(PF_INET) { /* wrong family */ + return -int32(5) + } + Xmemcpy(tls, buf+8, bp+4, uint64(16)) + (**(**Taddress)(__ccgo_up(buf))).Ffamily = int32(PF_INET6) + if p != 0 { + p = p + 1 + v1 = p + if BoolInt32(uint32(**(**uint8)(__ccgo_up(v1)))-uint32('0') < uint32(10)) != 0 { + scopeid = Xstrtoull(tls, p, bp+88, int32(10)) + } else { + **(**uintptr)(__ccgo_up(bp + 88)) = p - uintptr(1) + } + if **(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 88)))) != 0 { + if !(Int32FromUint8(**(**Tuint8_t)(__ccgo_up(bp + 4))) == int32(0xfe) && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(bp + 4 + 1)))&int32(0xc0) == int32(0x80)) && !(Int32FromUint8(**(**Tuint8_t)(__ccgo_up(bp + 4))) == int32(0xff) && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(bp + 4 + 1)))&int32(0xf) == int32(0x2)) { + return -int32(2) + } + scopeid = uint64(Xif_nametoindex(tls, p)) + if !(scopeid != 0) { + return -int32(2) + } + } + if scopeid > uint64(0xffffffff) { + return -int32(2) + } + } + (**(**Taddress)(__ccgo_up(buf))).Fscopeid = uint32(scopeid) + return int32(1) +} + +const ABUF_SIZE = 4800 +const DAS_MATCHINGLABEL = 268435456 +const DAS_MATCHINGSCOPE = 536870912 +const DAS_ORDER_SHIFT = 0 +const DAS_PREC_SHIFT = 20 +const DAS_PREFIX_SHIFT = 8 +const DAS_SCOPE_SHIFT = 16 +const DAS_USABLE = 1073741824 +const RR_A = 1 +const RR_AAAA = 28 +const RR_CNAME = 5 + +func _is_valid_hostname(tls *TLS, host uintptr) (r int32) { + var s uintptr + _ = s + if Xstrnlen(tls, host, uint64(255))-uint64(1) >= uint64(254) || Xmbstowcs(tls, uintptr(0), host, uint64(0)) == Uint64FromInt32(-Int32FromInt32(1)) { + return 0 + } + s = host + for { + if !(Int32FromUint8(**(**uint8)(__ccgo_up(s))) >= int32(0x80) || Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('.') || Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('-') || Xisalnum(tls, Int32FromUint8(**(**uint8)(__ccgo_up(s)))) != 0) { + break + } + goto _1 + _1: + ; + s = s + 1 + } + return BoolInt32(!(**(**uint8)(__ccgo_up(s)) != 0)) +} + +func _name_from_null(tls *TLS, buf uintptr, name uintptr, family int32, flags int32) (r int32) { + var cnt, v1 int32 + _, _ = cnt, v1 + cnt = 0 + if name != 0 { + return 0 + } + if flags&int32(AI_PASSIVE) != 0 { + if family != int32(PF_INET6) { + v1 = cnt + cnt = cnt + 1 + **(**Taddress)(__ccgo_up(buf + uintptr(v1)*28)) = Taddress{ + Ffamily: int32(PF_INET), + } + } + if family != int32(PF_INET) { + v1 = cnt + cnt = cnt + 1 + **(**Taddress)(__ccgo_up(buf + uintptr(v1)*28)) = Taddress{ + Ffamily: int32(PF_INET6), + } + } + } else { + if family != int32(PF_INET6) { + v1 = cnt + cnt = cnt + 1 + **(**Taddress)(__ccgo_up(buf + uintptr(v1)*28)) = Taddress{ + Ffamily: int32(PF_INET), + Faddr: [16]Tuint8_t{ + 0: uint8(127), + 3: uint8(1), + }, + } + } + if family != int32(PF_INET) { + v1 = cnt + cnt = cnt + 1 + **(**Taddress)(__ccgo_up(buf + uintptr(v1)*28)) = Taddress{ + Ffamily: int32(PF_INET6), + Faddr: [16]Tuint8_t{ + 15: uint8(1), + }, + } + } + } + return cnt +} + +func _name_from_numeric(tls *TLS, buf uintptr, name uintptr, family int32) (r int32) { + return X__lookup_ipliteral(tls, buf, name, family) +} + +func _name_from_hosts(tls *TLS, buf uintptr, canon uintptr, name uintptr, family int32) (r int32) { + bp := tls.Alloc(1776) + defer tls.Free(1776) + var badfam, cnt, have_canon, v5, v6, v8, v9 int32 + var f, p, z, v1, v2 uintptr + var l Tsize_t + var v11, v12 bool + var _ /* _buf at bp+512 */ [1032]uint8 + var _ /* _f at bp+1544 */ TFILE + var _ /* line at bp+0 */ [512]uint8 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = badfam, cnt, f, have_canon, l, p, z, v1, v11, v12, v2, v5, v6, v8, v9 + l = _strlen(tls, name) + cnt = 0 + badfam = 0 + have_canon = 0 + f = X__fopen_rb_ca(tls, __ccgo_ts+1055, bp+1544, bp+512, uint64(1032)) + if !(f != 0) { + switch **(**int32)(__ccgo_up(X__errno_location(tls))) { + case int32(ENOENT): + fallthrough + case int32(ENOTDIR): + fallthrough + case int32(EACCES): + return 0 + default: + return -int32(11) + } + } + for Xfgets(tls, bp, int32(512), f) != 0 && cnt < int32(MAXADDRS) { + v1 = Xstrchr(tls, bp, int32('#')) + p = v1 + if v1 != 0 { + v2 = p + p = p + 1 + **(**uint8)(__ccgo_up(v2)) = uint8('\n') + **(**uint8)(__ccgo_up(p)) = Uint8FromInt32(0) + } + p = bp + uintptr(1) + for { + v1 = Xstrstr(tls, p, name) + p = v1 + if v12 = v1 != 0; v12 { + v5 = Int32FromUint8(**(**uint8)(__ccgo_up(p + uintptr(-Int32FromInt32(1))))) + v6 = BoolInt32(v5 == int32(' ') || Uint32FromInt32(v5)-uint32('\t') < uint32(5)) + goto _7 + _7: + ; + if v11 = !(v6 != 0); !v11 { + v8 = Int32FromUint8(**(**uint8)(__ccgo_up(p + uintptr(l)))) + v9 = BoolInt32(v8 == int32(' ') || Uint32FromInt32(v8)-uint32('\t') < uint32(5)) + goto _10 + _10: + } + } + if !(v12 && (v11 || !(v9 != 0))) { + break + } + goto _3 + _3: + ; + p = p + 1 + } + if !(p != 0) { + continue + } + /* Isolate IP address to parse */ + p = bp + for { + if v11 = **(**uint8)(__ccgo_up(p)) != 0; v11 { + v5 = Int32FromUint8(**(**uint8)(__ccgo_up(p))) + v6 = BoolInt32(v5 == int32(' ') || Uint32FromInt32(v5)-uint32('\t') < uint32(5)) + goto _16 + _16: + } + if !(v11 && !(v6 != 0)) { + break + } + goto _13 + _13: + ; + p = p + 1 + } + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(0) + switch _name_from_numeric(tls, buf+uintptr(cnt)*28, bp, family) { + case int32(1): + cnt = cnt + 1 + case 0: + continue + default: + badfam = -int32(5) + break + } + if have_canon != 0 { + continue + } + /* Extract first name as canonical name */ + for { + if v11 = **(**uint8)(__ccgo_up(p)) != 0; v11 { + v5 = Int32FromUint8(**(**uint8)(__ccgo_up(p))) + v6 = BoolInt32(v5 == int32(' ') || Uint32FromInt32(v5)-uint32('\t') < uint32(5)) + goto _22 + _22: + } + if !(v11 && v6 != 0) { + break + } + goto _19 + _19: + ; + p = p + 1 + } + z = p + for { + if v11 = **(**uint8)(__ccgo_up(z)) != 0; v11 { + v5 = Int32FromUint8(**(**uint8)(__ccgo_up(z))) + v6 = BoolInt32(v5 == int32(' ') || Uint32FromInt32(v5)-uint32('\t') < uint32(5)) + goto _27 + _27: + } + if !(v11 && !(v6 != 0)) { + break + } + goto _24 + _24: + ; + z = z + 1 + } + **(**uint8)(__ccgo_up(z)) = uint8(0) + if _is_valid_hostname(tls, p) != 0 { + have_canon = int32(1) + Xmemcpy(tls, canon, p, Uint64FromInt64(int64(z)-int64(p)+int64(1))) + } + } + X__fclose_ca(tls, f) + if cnt != 0 { + v5 = cnt + } else { + v5 = badfam + } + return v5 +} + +type Tdpc_ctx = struct { + Faddrs uintptr + Fcanon uintptr + Fcnt int32 + Frrtype int32 +} + +func _dns_parse_callback1(tls *TLS, c uintptr, rr int32, data uintptr, len1 int32, packet uintptr, plen int32) (r int32) { + bp := tls.Alloc(256) + defer tls.Free(256) + var ctx, v2 uintptr + var family, v1 int32 + var _ /* tmp at bp+0 */ [256]uint8 + _, _, _, _ = ctx, family, v1, v2 + ctx = c + if rr == int32(RR_CNAME) { + if X__dn_expand(tls, packet, packet+uintptr(plen), data, bp, int32(256)) > 0 && _is_valid_hostname(tls, bp) != 0 { + Xstrcpy(tls, (*Tdpc_ctx)(unsafe.Pointer(ctx)).Fcanon, bp) + } + return 0 + } + if (*Tdpc_ctx)(unsafe.Pointer(ctx)).Fcnt >= int32(MAXADDRS) { + return 0 + } + if rr != (*Tdpc_ctx)(unsafe.Pointer(ctx)).Frrtype { + return 0 + } + switch rr { + case int32(RR_A): + if len1 != int32(4) { + return -int32(1) + } + family = int32(PF_INET) + case int32(RR_AAAA): + if len1 != int32(16) { + return -int32(1) + } + family = int32(PF_INET6) + break + } + (**(**Taddress)(__ccgo_up((*Tdpc_ctx)(unsafe.Pointer(ctx)).Faddrs + uintptr((*Tdpc_ctx)(unsafe.Pointer(ctx)).Fcnt)*28))).Ffamily = family + (**(**Taddress)(__ccgo_up((*Tdpc_ctx)(unsafe.Pointer(ctx)).Faddrs + uintptr((*Tdpc_ctx)(unsafe.Pointer(ctx)).Fcnt)*28))).Fscopeid = uint32(0) + v2 = ctx + 16 + v1 = *(*int32)(unsafe.Pointer(v2)) + *(*int32)(unsafe.Pointer(v2)) = *(*int32)(unsafe.Pointer(v2)) + 1 + Xmemcpy(tls, (*Tdpc_ctx)(unsafe.Pointer(ctx)).Faddrs+uintptr(v1)*28+8, data, Uint64FromInt32(len1)) + return 0 +} + +func _name_from_dns(tls *TLS, buf uintptr, canon uintptr, name uintptr, family int32, conf uintptr) (r int32) { + bp := tls.Alloc(10240) + defer tls.Free(10240) + var i, nq int32 + var qtypes [2]int32 + var _ /* abuf at bp+560 */ [2][4800]uint8 + var _ /* alens at bp+10200 */ [2]int32 + var _ /* ap at bp+10176 */ [2]uintptr + var _ /* ctx at bp+10208 */ Tdpc_ctx + var _ /* qbuf at bp+0 */ [2][280]uint8 + var _ /* qlens at bp+10192 */ [2]int32 + var _ /* qp at bp+10160 */ [2]uintptr + _, _, _ = i, nq, qtypes + **(**[2]uintptr)(__ccgo_up(bp + 10160)) = [2]uintptr{ + 0: bp, + 1: bp + 1*280, + } + **(**[2]uintptr)(__ccgo_up(bp + 10176)) = [2]uintptr{ + 0: bp + 560, + 1: bp + 560 + 1*4800, + } + nq = 0 + **(**Tdpc_ctx)(__ccgo_up(bp + 10208)) = Tdpc_ctx{ + Faddrs: buf, + Fcanon: canon, + } + i = 0 + for { + if !(i < int32(2)) { + break + } + if family != _afrr[i].Faf { + (**(**[2]int32)(__ccgo_up(bp + 10192)))[nq] = X__res_mkquery(tls, 0, name, int32(1), _afrr[i].Frr, uintptr(0), 0, uintptr(0), bp+uintptr(nq)*280, int32(280)) + if (**(**[2]int32)(__ccgo_up(bp + 10192)))[nq] == -int32(1) { + return 0 + } + qtypes[nq] = _afrr[i].Frr + **(**uint8)(__ccgo_up(bp + uintptr(nq)*280 + 3)) = uint8(0) /* don't need AD flag */ + /* Ensure query IDs are distinct. */ + if nq != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(bp + uintptr(nq)*280))) == Int32FromUint8(**(**uint8)(__ccgo_up(bp))) { + **(**uint8)(__ccgo_up(bp + uintptr(nq)*280)) = **(**uint8)(__ccgo_up(bp + uintptr(nq)*280)) + 1 + } + nq = nq + 1 + } + goto _1 + _1: + ; + i = i + 1 + } + if X__res_msend_rc(tls, nq, bp+10160, bp+10192, bp+10176, bp+10200, int32(4800), conf) < 0 { + return -int32(11) + } + i = 0 + for { + if !(i < nq) { + break + } + if (**(**[2]int32)(__ccgo_up(bp + 10200)))[i] < int32(4) || Int32FromUint8(**(**uint8)(__ccgo_up(bp + 560 + uintptr(i)*4800 + 3)))&int32(15) == int32(2) { + return -int32(3) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(bp + 560 + uintptr(i)*4800 + 3)))&int32(15) == int32(3) { + return 0 + } + if Int32FromUint8(**(**uint8)(__ccgo_up(bp + 560 + uintptr(i)*4800 + 3)))&int32(15) != 0 { + return -int32(4) + } + goto _2 + _2: + ; + i = i + 1 + } + i = nq - int32(1) + for { + if !(i >= 0) { + break + } + (**(**Tdpc_ctx)(__ccgo_up(bp + 10208))).Frrtype = qtypes[i] + if Uint64FromInt32((**(**[2]int32)(__ccgo_up(bp + 10200)))[i]) > uint64(4800) { + (**(**[2]int32)(__ccgo_up(bp + 10200)))[i] = int32(4800) + } + X__dns_parse(tls, bp+560+uintptr(i)*4800, (**(**[2]int32)(__ccgo_up(bp + 10200)))[i], __ccgo_fp(_dns_parse_callback1), bp+10208) + goto _3 + _3: + ; + i = i - 1 + } + if (**(**Tdpc_ctx)(__ccgo_up(bp + 10208))).Fcnt != 0 { + return (**(**Tdpc_ctx)(__ccgo_up(bp + 10208))).Fcnt + } + return -int32(5) +} + +var _afrr = [2]struct { + Faf int32 + Frr int32 +}{ + 0: { + Faf: int32(PF_INET6), + Frr: int32(RR_A), + }, + 1: { + Faf: int32(PF_INET), + Frr: int32(RR_AAAA), + }, +} + +func _name_from_dns_search(tls *TLS, buf uintptr, canon uintptr, name uintptr, family int32) (r int32) { + bp := tls.Alloc(368) + defer tls.Free(368) + var cnt, v5, v6 int32 + var dots, l, v2 Tsize_t + var p, z uintptr + var v12 bool + var _ /* conf at bp+256 */ Tresolvconf + var _ /* search at bp+0 */ [256]uint8 + _, _, _, _, _, _, _, _, _ = cnt, dots, l, p, z, v12, v2, v5, v6 + if X__get_resolv_conf(tls, bp+256, bp, uint64(256)) < 0 { + return -int32(1) + } + /* Count dots, suppress search when >=ndots or name ends in + * a dot, which is an explicit request for global scope. */ + v2 = Uint64FromInt32(0) + l = v2 + dots = v2 + for { + if !(**(**uint8)(__ccgo_up(name + uintptr(l))) != 0) { + break + } + if Int32FromUint8(**(**uint8)(__ccgo_up(name + uintptr(l)))) == int32('.') { + dots = dots + 1 + } + goto _1 + _1: + ; + l = l + 1 + } + if dots >= uint64((**(**Tresolvconf)(__ccgo_up(bp + 256))).Fndots) || Int32FromUint8(**(**uint8)(__ccgo_up(name + uintptr(l-uint64(1))))) == int32('.') { + **(**uint8)(__ccgo_up(bp)) = uint8(0) + } + /* Strip final dot for canon, fail if multiple trailing dots. */ + if Int32FromUint8(**(**uint8)(__ccgo_up(name + uintptr(l-uint64(1))))) == int32('.') { + l = l - 1 + } + if !(l != 0) || Int32FromUint8(**(**uint8)(__ccgo_up(name + uintptr(l-uint64(1))))) == int32('.') { + return -int32(2) + } + /* This can never happen; the caller already checked length. */ + if l >= uint64(256) { + return -int32(2) + } + /* Name with search domain appended is setup in canon[]. This both + * provides the desired default canonical name (if the requested + * name is not a CNAME record) and serves as a buffer for passing + * the full requested name to name_from_dns. */ + Xmemcpy(tls, canon, name, l) + **(**uint8)(__ccgo_up(canon + uintptr(l))) = uint8('.') + p = bp + for { + if !(**(**uint8)(__ccgo_up(p)) != 0) { + break + } + for { + v5 = Int32FromUint8(**(**uint8)(__ccgo_up(p))) + v6 = BoolInt32(v5 == int32(' ') || Uint32FromInt32(v5)-uint32('\t') < uint32(5)) + goto _7 + _7: + if !(v6 != 0) { + break + } + goto _4 + _4: + ; + p = p + 1 + } + z = p + for { + if v12 = **(**uint8)(__ccgo_up(z)) != 0; v12 { + v5 = Int32FromUint8(**(**uint8)(__ccgo_up(z))) + v6 = BoolInt32(v5 == int32(' ') || Uint32FromInt32(v5)-uint32('\t') < uint32(5)) + goto _11 + _11: + } + if !(v12 && !(v6 != 0)) { + break + } + goto _8 + _8: + ; + z = z + 1 + } + if z == p { + break + } + if Uint64FromInt64(int64(z)-int64(p)) < uint64(256)-l-uint64(1) { + Xmemcpy(tls, canon+uintptr(l)+uintptr(1), p, Uint64FromInt64(int64(z)-int64(p))) + **(**uint8)(__ccgo_up(canon + uintptr(Uint64FromInt64(int64(z)-int64(p)+int64(1))+l))) = uint8(0) + cnt = _name_from_dns(tls, buf, canon, canon, family, bp+256) + if cnt != 0 { + return cnt + } + } + goto _3 + _3: + ; + p = z + } + **(**uint8)(__ccgo_up(canon + uintptr(l))) = uint8(0) + return _name_from_dns(tls, buf, canon, name, family, bp+256) +} + +type Tpolicy = struct { + Faddr [16]uint8 + Flen1 uint8 + Fmask uint8 + Fprec uint8 + Flabel uint8 +} + +var _defpolicy = [6]Tpolicy{ + 0: { + Faddr: [16]uint8{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1}, + Flen1: uint8(15), + Fmask: uint8(0xff), + Fprec: uint8(50), + }, + 1: { + Faddr: [16]uint8{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255}, + Flen1: uint8(11), + Fmask: uint8(0xff), + Fprec: uint8(35), + Flabel: uint8(4), + }, + 2: { + Faddr: [16]uint8{' ', 2}, + Flen1: uint8(1), + Fmask: uint8(0xff), + Fprec: uint8(30), + Flabel: uint8(2), + }, + 3: { + Faddr: [16]uint8{' ', 1}, + Flen1: uint8(3), + Fmask: uint8(0xff), + Fprec: uint8(5), + Flabel: uint8(5), + }, + 4: { + Faddr: [16]uint8{252}, + Fmask: uint8(0xfe), + Fprec: uint8(3), + Flabel: uint8(13), + }, + 5: { + Faddr: [16]uint8{}, + Fprec: uint8(40), + Flabel: uint8(1), + }, +} + +func _policyof(tls *TLS, a uintptr) (r uintptr) { + var i int32 + _ = i + i = 0 + for { + if Xmemcmp(tls, a, uintptr(unsafe.Pointer(&_defpolicy))+uintptr(i)*20, uint64(_defpolicy[i].Flen1)) != 0 { + goto _1 + } + if Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a + uintptr(_defpolicy[i].Flen1))))&Int32FromUint8(_defpolicy[i].Fmask) != Int32FromUint8(**(**uint8)(__ccgo_up(uintptr(unsafe.Pointer(&_defpolicy)) + uintptr(i)*20 + uintptr(_defpolicy[i].Flen1)))) { + goto _1 + } + return uintptr(unsafe.Pointer(&_defpolicy)) + uintptr(i)*20 + goto _1 + _1: + ; + i = i + 1 + } + return r +} + +func _labelof(tls *TLS, a uintptr) (r int32) { + return Int32FromUint8((*Tpolicy)(unsafe.Pointer(_policyof(tls, a))).Flabel) +} + +func _scopeof(tls *TLS, a uintptr) (r int32) { + if Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a))) == int32(0xff) { + return Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a + 1))) & int32(15) + } + if Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a))) == int32(0xfe) && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a + 1)))&int32(0xc0) == int32(0x80) { + return int32(2) + } + if **(**Tuint32_t)(__ccgo_up(a)) == uint32(0) && **(**Tuint32_t)(__ccgo_up(a + 1*4)) == uint32(0) && **(**Tuint32_t)(__ccgo_up(a + 2*4)) == uint32(0) && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a + 12))) == 0 && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a + 13))) == 0 && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a + 14))) == 0 && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a + 15))) == int32(1) { + return int32(2) + } + if Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a))) == int32(0xfe) && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a + 1)))&int32(0xc0) == int32(0xc0) { + return int32(5) + } + return int32(14) +} + +func _prefixmatch(tls *TLS, s uintptr, d uintptr) (r int32) { + var i uint32 + _ = i + i = uint32(0) + for { + if !(i < uint32(128) && !((Int32FromUint8(**(**Tuint8_t)(__ccgo_up(s + uintptr(i/uint32(8)))))^Int32FromUint8(**(**Tuint8_t)(__ccgo_up(d + uintptr(i/uint32(8))))))&(Int32FromInt32(128)>>(i%Uint32FromInt32(8))) != 0)) { + break + } + goto _1 + _1: + ; + i = i + 1 + } + return Int32FromUint32(i) +} + +func _addrcmp(tls *TLS, _a uintptr, _b uintptr) (r int32) { + var a, b uintptr + _, _ = a, b + a = _a + b = _b + return (*Taddress)(unsafe.Pointer(b)).Fsortkey - (*Taddress)(unsafe.Pointer(a)).Fsortkey +} + +func X__lookup_name(tls *TLS, buf uintptr, canon uintptr, name uintptr, family int32, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v buf=%v canon=%v name=%v family=%v flags=%v, (%v:)", tls, buf, canon, name, family, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(96) + defer tls.Free(96) + var cnt, dlabel, dprec, dscope, family1, fd, i, j, key, prefixlen, v1 int32 + var da, dpolicy, sa uintptr + var dalen Tsocklen_t + var l Tsize_t + var _ /* cs at bp+0 */ int32 + var _ /* da4 at bp+76 */ Tsockaddr_in + var _ /* da6 at bp+32 */ Tsockaddr_in6 + var _ /* sa4 at bp+60 */ Tsockaddr_in + var _ /* sa6 at bp+4 */ Tsockaddr_in6 + var _ /* salen at bp+92 */ Tsocklen_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = cnt, da, dalen, dlabel, dpolicy, dprec, dscope, family1, fd, i, j, key, l, prefixlen, sa, v1 + cnt = 0 + **(**uint8)(__ccgo_up(canon)) = uint8(0) + if name != 0 { + /* reject empty name and check len so it fits into temp bufs */ + l = Xstrnlen(tls, name, uint64(255)) + if l-uint64(1) >= uint64(254) { + return -int32(2) + } + Xmemcpy(tls, canon, name, l+uint64(1)) + } + /* Procedurally, a request for v6 addresses with the v4-mapped + * flag set is like a request for unspecified family, followed + * by filtering of the results. */ + if flags&int32(AI_V4MAPPED) != 0 { + if family == int32(PF_INET6) { + family = PF_UNSPEC + } else { + flags = flags - int32(AI_V4MAPPED) + } + } + /* Try each backend until there's at least one result. */ + cnt = _name_from_null(tls, buf, name, family, flags) + if !(cnt != 0) { + cnt = _name_from_numeric(tls, buf, name, family) + } + if !(cnt != 0) && !(flags&Int32FromInt32(AI_NUMERICHOST) != 0) { + cnt = _name_from_hosts(tls, buf, canon, name, family) + if !(cnt != 0) { + cnt = _name_from_dns_search(tls, buf, canon, name, family) + } + } + if cnt <= 0 { + if cnt != 0 { + v1 = cnt + } else { + v1 = -int32(2) + } + return v1 + } + /* Filter/transform results for v4-mapped lookup, if requested. */ + if flags&int32(AI_V4MAPPED) != 0 { + if !(flags&Int32FromInt32(AI_ALL) != 0) { + /* If any v6 results exist, remove v4 results. */ + i = 0 + for { + if !(i < cnt && (**(**Taddress)(__ccgo_up(buf + uintptr(i)*28))).Ffamily != int32(PF_INET6)) { + break + } + goto _2 + _2: + ; + i = i + 1 + } + if i < cnt { + j = 0 + for { + if !(i < cnt) { + break + } + if (**(**Taddress)(__ccgo_up(buf + uintptr(i)*28))).Ffamily == int32(PF_INET6) { + v1 = j + j = j + 1 + **(**Taddress)(__ccgo_up(buf + uintptr(v1)*28)) = **(**Taddress)(__ccgo_up(buf + uintptr(i)*28)) + } + goto _3 + _3: + ; + i = i + 1 + } + v1 = j + i = v1 + cnt = v1 + } + } + /* Translate any remaining v4 results to v6 */ + i = 0 + for { + if !(i < cnt) { + break + } + if (**(**Taddress)(__ccgo_up(buf + uintptr(i)*28))).Ffamily != int32(PF_INET) { + goto _6 + } + Xmemcpy(tls, buf+uintptr(i)*28+8+uintptr(12), buf+uintptr(i)*28+8, uint64(4)) + Xmemcpy(tls, buf+uintptr(i)*28+8, __ccgo_ts+1066, uint64(12)) + (**(**Taddress)(__ccgo_up(buf + uintptr(i)*28))).Ffamily = int32(PF_INET6) + goto _6 + _6: + ; + i = i + 1 + } + } + /* No further processing is needed if there are fewer than 2 + * results or if there are only IPv4 results. */ + if cnt < int32(2) || family == int32(PF_INET) { + return cnt + } + i = 0 + for { + if !(i < cnt) { + break + } + if (**(**Taddress)(__ccgo_up(buf + uintptr(i)*28))).Ffamily != int32(PF_INET) { + break + } + goto _7 + _7: + ; + i = i + 1 + } + if i == cnt { + return cnt + } + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp) + /* The following implements a subset of RFC 3484/6724 destination + * address selection by generating a single 31-bit sort key for + * each address. Rules 3, 4, and 7 are omitted for having + * excessive runtime and code size cost and dubious benefit. + * So far the label/precedence table cannot be customized. */ + i = 0 + for { + if !(i < cnt) { + break + } + family1 = (**(**Taddress)(__ccgo_up(buf + uintptr(i)*28))).Ffamily + key = 0 + **(**Tsockaddr_in6)(__ccgo_up(bp + 4)) = Tsockaddr_in6{} + **(**Tsockaddr_in6)(__ccgo_up(bp + 32)) = Tsockaddr_in6{ + Fsin6_family: uint16(PF_INET6), + Fsin6_port: uint16(65535), + Fsin6_scope_id: (**(**Taddress)(__ccgo_up(buf + uintptr(i)*28))).Fscopeid, + } + **(**Tsockaddr_in)(__ccgo_up(bp + 60)) = Tsockaddr_in{} + **(**Tsockaddr_in)(__ccgo_up(bp + 76)) = Tsockaddr_in{ + Fsin_family: uint16(PF_INET), + Fsin_port: uint16(65535), + } + if family1 == int32(PF_INET6) { + Xmemcpy(tls, bp+32+8, buf+uintptr(i)*28+8, uint64(16)) + da = bp + 32 + dalen = uint32(28) + sa = bp + 4 + **(**Tsocklen_t)(__ccgo_up(bp + 92)) = uint32(28) + } else { + Xmemcpy(tls, bp+4+8, __ccgo_ts+1066, uint64(12)) + Xmemcpy(tls, bp+32+8+uintptr(12), buf+uintptr(i)*28+8, uint64(4)) + Xmemcpy(tls, bp+32+8, __ccgo_ts+1066, uint64(12)) + Xmemcpy(tls, bp+32+8+uintptr(12), buf+uintptr(i)*28+8, uint64(4)) + Xmemcpy(tls, bp+76+4, buf+uintptr(i)*28+8, uint64(4)) + da = bp + 76 + dalen = uint32(16) + sa = bp + 60 + **(**Tsocklen_t)(__ccgo_up(bp + 92)) = uint32(16) + } + dpolicy = _policyof(tls, bp+32+8) + dscope = _scopeof(tls, bp+32+8) + dlabel = Int32FromUint8((*Tpolicy)(unsafe.Pointer(dpolicy)).Flabel) + dprec = Int32FromUint8((*Tpolicy)(unsafe.Pointer(dpolicy)).Fprec) + prefixlen = 0 + fd = Xsocket(tls, family1, Int32FromInt32(SOCK_DGRAM)|Int32FromInt32(SOCK_CLOEXEC), int32(IPPROTO_UDP)) + if fd >= 0 { + if !(Xconnect(tls, fd, da, dalen) != 0) { + key = key | int32(DAS_USABLE) + if !(Xgetsockname(tls, fd, sa, bp+92) != 0) { + if family1 == int32(PF_INET) { + Xmemcpy(tls, bp+4+8+uintptr(12), bp+60+4, uint64(4)) + } + if dscope == _scopeof(tls, bp+4+8) { + key = key | int32(DAS_MATCHINGSCOPE) + } + if dlabel == _labelof(tls, bp+4+8) { + key = key | int32(DAS_MATCHINGLABEL) + } + prefixlen = _prefixmatch(tls, bp+4+8, bp+32+8) + } + } + Xclose(tls, fd) + } + key = key | dprec< %v", r) }() + } + bp := tls.Alloc(1408) + defer tls.Free(1408) + var cnt, v1, v2 int32 + var f, p, v3, v4 uintptr + var l Tsize_t + var port uint64 + var v10 bool + var _ /* _buf at bp+136 */ [1032]uint8 + var _ /* _f at bp+1168 */ TFILE + var _ /* line at bp+0 */ [128]uint8 + var _ /* z at bp+128 */ uintptr + _, _, _, _, _, _, _, _, _, _ = cnt, f, l, p, port, v1, v10, v2, v3, v4 + cnt = 0 + **(**uintptr)(__ccgo_up(bp + 128)) = __ccgo_ts + port = uint64(0) + switch socktype { + case int32(SOCK_STREAM): + switch proto { + case 0: + proto = int32(IPPROTO_TCP) + fallthrough + case int32(IPPROTO_TCP): + default: + return -int32(8) + } + case int32(SOCK_DGRAM): + switch proto { + case 0: + proto = int32(IPPROTO_UDP) + fallthrough + case int32(IPPROTO_UDP): + default: + return -int32(8) + } + fallthrough + case 0: + default: + if name != 0 { + return -int32(8) + } + (**(**Tservice)(__ccgo_up(buf))).Fport = uint16(0) + (**(**Tservice)(__ccgo_up(buf))).Fproto = Uint8FromInt32(proto) + (**(**Tservice)(__ccgo_up(buf))).Fsocktype = Uint8FromInt32(socktype) + return int32(1) + } + if name != 0 { + if !(**(**uint8)(__ccgo_up(name)) != 0) { + return -int32(8) + } + port = Xstrtoul(tls, name, bp+128, int32(10)) + } + if !(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 128)))) != 0) { + if port > uint64(65535) { + return -int32(8) + } + if proto != int32(IPPROTO_UDP) { + (**(**Tservice)(__ccgo_up(buf + uintptr(cnt)*4))).Fport = uint16(port) + (**(**Tservice)(__ccgo_up(buf + uintptr(cnt)*4))).Fsocktype = uint8(SOCK_STREAM) + v1 = cnt + cnt = cnt + 1 + (**(**Tservice)(__ccgo_up(buf + uintptr(v1)*4))).Fproto = uint8(IPPROTO_TCP) + } + if proto != int32(IPPROTO_TCP) { + (**(**Tservice)(__ccgo_up(buf + uintptr(cnt)*4))).Fport = uint16(port) + (**(**Tservice)(__ccgo_up(buf + uintptr(cnt)*4))).Fsocktype = uint8(SOCK_DGRAM) + v1 = cnt + cnt = cnt + 1 + (**(**Tservice)(__ccgo_up(buf + uintptr(v1)*4))).Fproto = uint8(IPPROTO_UDP) + } + return cnt + } + if flags&int32(AI_NUMERICSERV) != 0 { + return -int32(2) + } + l = _strlen(tls, name) + f = X__fopen_rb_ca(tls, __ccgo_ts+1079, bp+1168, bp+136, uint64(1032)) + if !(f != 0) { + switch **(**int32)(__ccgo_up(X__errno_location(tls))) { + case int32(ENOENT): + fallthrough + case int32(ENOTDIR): + fallthrough + case int32(EACCES): + return -int32(8) + default: + return -int32(11) + } + } + for Xfgets(tls, bp, int32(128), f) != 0 && cnt < int32(MAXSERVS) { + v3 = Xstrchr(tls, bp, int32('#')) + p = v3 + if v3 != 0 { + v4 = p + p = p + 1 + **(**uint8)(__ccgo_up(v4)) = uint8('\n') + **(**uint8)(__ccgo_up(p)) = Uint8FromInt32(0) + } + /* Find service name */ + p = bp + for { + v3 = Xstrstr(tls, p, name) + p = v3 + if !(v3 != 0) { + break + } + if v10 = p > bp; v10 { + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(p + uintptr(-Int32FromInt32(1))))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _9 + _9: + } + if v10 && !(v2 != 0) { + goto _5 + } + if v10 = **(**uint8)(__ccgo_up(p + uintptr(l))) != 0; v10 { + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(p + uintptr(l)))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _13 + _13: + } + if v10 && !(v2 != 0) { + goto _5 + } + break + goto _5 + _5: + ; + p = p + 1 + } + if !(p != 0) { + continue + } + /* Skip past canonical name at beginning of line */ + p = bp + for { + if v10 = **(**uint8)(__ccgo_up(p)) != 0; v10 { + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(p))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _18 + _18: + } + if !(v10 && !(v2 != 0)) { + break + } + goto _15 + _15: + ; + p = p + 1 + } + port = Xstrtoul(tls, p, bp+128, int32(10)) + if port > uint64(65535) || **(**uintptr)(__ccgo_up(bp + 128)) == p { + continue + } + if !(Xstrncmp(tls, **(**uintptr)(__ccgo_up(bp + 128)), __ccgo_ts+1093, uint64(4)) != 0) { + if proto == int32(IPPROTO_TCP) { + continue + } + (**(**Tservice)(__ccgo_up(buf + uintptr(cnt)*4))).Fport = uint16(port) + (**(**Tservice)(__ccgo_up(buf + uintptr(cnt)*4))).Fsocktype = uint8(SOCK_DGRAM) + v1 = cnt + cnt = cnt + 1 + (**(**Tservice)(__ccgo_up(buf + uintptr(v1)*4))).Fproto = uint8(IPPROTO_UDP) + } + if !(Xstrncmp(tls, **(**uintptr)(__ccgo_up(bp + 128)), __ccgo_ts+1098, uint64(4)) != 0) { + if proto == int32(IPPROTO_UDP) { + continue + } + (**(**Tservice)(__ccgo_up(buf + uintptr(cnt)*4))).Fport = uint16(port) + (**(**Tservice)(__ccgo_up(buf + uintptr(cnt)*4))).Fsocktype = uint8(SOCK_STREAM) + v1 = cnt + cnt = cnt + 1 + (**(**Tservice)(__ccgo_up(buf + uintptr(v1)*4))).Fproto = uint8(IPPROTO_TCP) + } + } + X__fclose_ca(tls, f) + if cnt > 0 { + v1 = cnt + } else { + v1 = -int32(8) + } + return v1 +} + +func ___netlink_enumerate(tls *TLS, fd int32, seq uint32, type1 int32, af int32, __ccgo_fp_cb uintptr, ctx uintptr) (r1 int32) { + bp := tls.Alloc(8192) + defer tls.Free(8192) + var h uintptr + var r, ret int32 + var _ /* u at bp+0 */ struct { + Freq [0]struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + } + Freply [0]Tnlmsghdr + Fbuf [8192]Tuint8_t + } + _, _, _ = h, r, ret + Xmemset(tls, bp, 0, uint64(20)) + (*(*struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + })(unsafe.Pointer(&**(**struct { + Freq [0]struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + } + Freply [0]Tnlmsghdr + Fbuf [8192]Tuint8_t + })(__ccgo_up(bp))))).Fnlh.Fnlmsg_len = uint32(20) + (*(*struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + })(unsafe.Pointer(&**(**struct { + Freq [0]struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + } + Freply [0]Tnlmsghdr + Fbuf [8192]Tuint8_t + })(__ccgo_up(bp))))).Fnlh.Fnlmsg_type = Uint16FromInt32(type1) + (*(*struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + })(unsafe.Pointer(&**(**struct { + Freq [0]struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + } + Freply [0]Tnlmsghdr + Fbuf [8192]Tuint8_t + })(__ccgo_up(bp))))).Fnlh.Fnlmsg_flags = Uint16FromInt32(Int32FromInt32(NLM_F_ROOT) | Int32FromInt32(NLM_F_MATCH) | Int32FromInt32(NLM_F_REQUEST)) + (*(*struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + })(unsafe.Pointer(&**(**struct { + Freq [0]struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + } + Freply [0]Tnlmsghdr + Fbuf [8192]Tuint8_t + })(__ccgo_up(bp))))).Fnlh.Fnlmsg_seq = seq + (*(*struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + })(unsafe.Pointer(&**(**struct { + Freq [0]struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + } + Freply [0]Tnlmsghdr + Fbuf [8192]Tuint8_t + })(__ccgo_up(bp))))).Fg.Frtgen_family = Uint8FromInt32(af) + r = int32(Xsend(tls, fd, bp, uint64(20), 0)) + if r < 0 { + return r + } + for int32(1) != 0 { + r = int32(Xrecv(tls, fd, bp, uint64(8192), int32(MSG_DONTWAIT))) + if r <= 0 { + return -int32(1) + } + h = bp + for { + if !(Uint64FromInt64(int64(bp+uintptr(r))-int64(h)) >= uint64(16)) { + break + } + if Int32FromUint16((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_type) == int32(NLMSG_DONE) { + return 0 + } + if Int32FromUint16((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_type) == int32(NLMSG_ERROR) { + return -int32(1) + } + ret = (*(*func(*TLS, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cb})))(tls, ctx, h) + if ret != 0 { + return ret + } + goto _1 + _1: + ; + h = h + uintptr(((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_len+Uint32FromInt32(3))&Uint32FromInt32(^Int32FromInt32(3))) + } + } + return r1 +} + +type t__ccgo_fp__X__rtnetlink_enumerate_2 = func(*TLS, uintptr, uintptr) int32 + +func X__rtnetlink_enumerate(tls *TLS, link_af int32, addr_af int32, __ccgo_fp_cb uintptr, ctx uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v link_af=%v addr_af=%v __ccgo_fp_cb=%v ctx=%v, (%v:)", tls, link_af, addr_af, __ccgo_fp_cb, ctx, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var fd, r int32 + _, _ = fd, r + fd = Xsocket(tls, int32(PF_NETLINK), Int32FromInt32(SOCK_RAW)|Int32FromInt32(SOCK_CLOEXEC), NETLINK_ROUTE) + if fd < 0 { + return -int32(1) + } + r = ___netlink_enumerate(tls, fd, uint32(1), int32(RTM_GETLINK), link_af, __ccgo_fp_cb, ctx) + if !(r != 0) { + r = ___netlink_enumerate(tls, fd, uint32(2), int32(RTM_GETADDR), addr_af, __ccgo_fp_cb, ctx) + } + X__syscall1(tls, int64(SYS_close), int64(fd)) + return r +} + +func Xgetnetbyaddr(tls *TLS, net Tuint32_t, type1 int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v net=%v type1=%v, (%v:)", tls, net, type1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(0) +} + +func Xgetnetbyname(tls *TLS, name uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(0) +} + +func Xns_get16(tls *TLS, cp uintptr) (r uint32) { + if __ccgo_strace { + trc("tls=%v cp=%v, (%v:)", tls, cp, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(cp)))< %v", r) }() + } + return uint64(uint32(**(**uint8)(__ccgo_up(cp)))<> int32(8)) + v1 = cp + cp = cp + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(s) +} + +func Xns_put32(tls *TLS, l uint64, cp uintptr) { + if __ccgo_strace { + trc("tls=%v l=%v cp=%v, (%v:)", tls, l, cp, origin(2)) + } + var v1 uintptr + _ = v1 + v1 = cp + cp = cp + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(l >> int32(24)) + v1 = cp + cp = cp + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(l >> int32(16)) + v1 = cp + cp = cp + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(l >> int32(8)) + v1 = cp + cp = cp + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(l) +} + +func Xns_initparse(tls *TLS, msg uintptr, msglen int32, handle uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v msg=%v msglen=%v handle=%v, (%v:)", tls, msg, msglen, handle, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var i, r int32 + _, _ = i, r + (*Tns_msg)(unsafe.Pointer(handle)).F_msg = msg + (*Tns_msg)(unsafe.Pointer(handle)).F_eom = msg + uintptr(msglen) + if msglen < (Int32FromInt32(2)+int32(_ns_s_max))*Int32FromInt32(NS_INT16SZ) { + goto bad + } + msg = msg + uintptr(2) + (*Tns_msg)(unsafe.Pointer(handle)).F_id = uint16(Xns_get16(tls, msg-uintptr(2))) + msg = msg + uintptr(2) + (*Tns_msg)(unsafe.Pointer(handle)).F_flags = uint16(Xns_get16(tls, msg-uintptr(2))) + i = 0 + for { + if !(i < int32(_ns_s_max)) { + break + } + msg = msg + uintptr(2) + **(**Tuint16_t)(__ccgo_up(handle + 20 + uintptr(i)*2)) = uint16(Xns_get16(tls, msg-uintptr(2))) + goto _1 + _1: + ; + i = i + 1 + } + i = 0 + for { + if !(i < int32(_ns_s_max)) { + break + } + if **(**Tuint16_t)(__ccgo_up(handle + 20 + uintptr(i)*2)) != 0 { + **(**uintptr)(__ccgo_up(handle + 32 + uintptr(i)*8)) = msg + r = Xns_skiprr(tls, msg, (*Tns_msg)(unsafe.Pointer(handle)).F_eom, i, Int32FromUint16(**(**Tuint16_t)(__ccgo_up(handle + 20 + uintptr(i)*2)))) + if r < 0 { + return -int32(1) + } + msg = msg + uintptr(r) + } else { + **(**uintptr)(__ccgo_up(handle + 32 + uintptr(i)*8)) = UintptrFromInt32(0) + } + goto _2 + _2: + ; + i = i + 1 + } + if msg != (*Tns_msg)(unsafe.Pointer(handle)).F_eom { + goto bad + } + (*Tns_msg)(unsafe.Pointer(handle)).F_sect = int32(_ns_s_max) + (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum = -int32(1) + (*Tns_msg)(unsafe.Pointer(handle)).F_msg_ptr = UintptrFromInt32(0) + return 0 + goto bad +bad: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EMSGSIZE) + return -int32(1) +} + +func Xns_skiprr(tls *TLS, ptr uintptr, eom uintptr, section Tns_sect, count int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v ptr=%v eom=%v section=%v count=%v, (%v:)", tls, ptr, eom, section, count, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var p uintptr + var r, v1 int32 + _, _, _ = p, r, v1 + p = ptr + for { + v1 = count + count = count - 1 + if !(v1 != 0) { + break + } + r = Xdn_skipname(tls, p, eom) + if r < 0 { + goto bad + } + if int64(r+Int32FromInt32(2)*Int32FromInt32(NS_INT16SZ)) > int64(eom)-int64(p) { + goto bad + } + p = p + uintptr(r+Int32FromInt32(2)*Int32FromInt32(NS_INT16SZ)) + if section != int32(_ns_s_qd) { + if int64(Int32FromInt32(NS_INT32SZ)+Int32FromInt32(NS_INT16SZ)) > int64(eom)-int64(p) { + goto bad + } + p = p + uintptr(NS_INT32SZ) + p = p + uintptr(2) + r = Int32FromUint32(Xns_get16(tls, p-uintptr(2))) + if int64(r) > int64(eom)-int64(p) { + goto bad + } + p = p + uintptr(r) + } + } + return int32(int64(p) - int64(ptr)) + goto bad +bad: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EMSGSIZE) + return -int32(1) +} + +func Xns_parserr(tls *TLS, handle uintptr, section Tns_sect, rrnum int32, rr uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v handle=%v section=%v rrnum=%v rr=%v, (%v:)", tls, handle, section, rrnum, rr, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + var v1 uintptr + _, _ = r, v1 + if section < 0 || section >= int32(_ns_s_max) { + goto bad + } + if section != (*Tns_msg)(unsafe.Pointer(handle)).F_sect { + (*Tns_msg)(unsafe.Pointer(handle)).F_sect = section + (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum = 0 + (*Tns_msg)(unsafe.Pointer(handle)).F_msg_ptr = **(**uintptr)(__ccgo_up(handle + 32 + uintptr(section)*8)) + } + if rrnum == -int32(1) { + rrnum = (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum + } + if rrnum < 0 || rrnum >= Int32FromUint16(**(**Tuint16_t)(__ccgo_up(handle + 20 + uintptr(section)*2))) { + goto bad + } + if rrnum < (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum { + (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum = 0 + (*Tns_msg)(unsafe.Pointer(handle)).F_msg_ptr = **(**uintptr)(__ccgo_up(handle + 32 + uintptr(section)*8)) + } + if rrnum > (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum { + r = Xns_skiprr(tls, (*Tns_msg)(unsafe.Pointer(handle)).F_msg_ptr, (*Tns_msg)(unsafe.Pointer(handle)).F_eom, section, rrnum-(*Tns_msg)(unsafe.Pointer(handle)).F_rrnum) + if r < 0 { + return -int32(1) + } + **(**uintptr)(__ccgo_up(handle + 72)) += uintptr(r) + (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum = rrnum + } + r = Xns_name_uncompress(tls, (*Tns_msg)(unsafe.Pointer(handle)).F_msg, (*Tns_msg)(unsafe.Pointer(handle)).F_eom, (*Tns_msg)(unsafe.Pointer(handle)).F_msg_ptr, rr, uint64(NS_MAXDNAME)) + if r < 0 { + return -int32(1) + } + **(**uintptr)(__ccgo_up(handle + 72)) += uintptr(r) + if int64(Int32FromInt32(2)*Int32FromInt32(NS_INT16SZ)) > int64((*Tns_msg)(unsafe.Pointer(handle)).F_eom)-int64((*Tns_msg)(unsafe.Pointer(handle)).F_msg_ptr) { + goto size + } + v1 = handle + 72 + *(*uintptr)(unsafe.Pointer(v1)) += uintptr(2) + (*Tns_rr)(unsafe.Pointer(rr)).Ftype1 = uint16(Xns_get16(tls, *(*uintptr)(unsafe.Pointer(v1))-uintptr(2))) + v1 = handle + 72 + *(*uintptr)(unsafe.Pointer(v1)) += uintptr(2) + (*Tns_rr)(unsafe.Pointer(rr)).Frr_class = uint16(Xns_get16(tls, *(*uintptr)(unsafe.Pointer(v1))-uintptr(2))) + if section != int32(_ns_s_qd) { + if int64(Int32FromInt32(NS_INT32SZ)+Int32FromInt32(NS_INT16SZ)) > int64((*Tns_msg)(unsafe.Pointer(handle)).F_eom)-int64((*Tns_msg)(unsafe.Pointer(handle)).F_msg_ptr) { + goto size + } + v1 = handle + 72 + *(*uintptr)(unsafe.Pointer(v1)) += uintptr(4) + (*Tns_rr)(unsafe.Pointer(rr)).Fttl = uint32(Xns_get32(tls, *(*uintptr)(unsafe.Pointer(v1))-uintptr(4))) + v1 = handle + 72 + *(*uintptr)(unsafe.Pointer(v1)) += uintptr(2) + (*Tns_rr)(unsafe.Pointer(rr)).Frdlength = uint16(Xns_get16(tls, *(*uintptr)(unsafe.Pointer(v1))-uintptr(2))) + if Int64FromUint16((*Tns_rr)(unsafe.Pointer(rr)).Frdlength) > int64((*Tns_msg)(unsafe.Pointer(handle)).F_eom)-int64((*Tns_msg)(unsafe.Pointer(handle)).F_msg_ptr) { + goto size + } + (*Tns_rr)(unsafe.Pointer(rr)).Frdata = (*Tns_msg)(unsafe.Pointer(handle)).F_msg_ptr + **(**uintptr)(__ccgo_up(handle + 72)) += uintptr((*Tns_rr)(unsafe.Pointer(rr)).Frdlength) + } else { + (*Tns_rr)(unsafe.Pointer(rr)).Fttl = uint32(0) + (*Tns_rr)(unsafe.Pointer(rr)).Frdlength = uint16(0) + (*Tns_rr)(unsafe.Pointer(rr)).Frdata = UintptrFromInt32(0) + } + (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum = (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum + 1 + if (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum > Int32FromUint16(**(**Tuint16_t)(__ccgo_up(handle + 20 + uintptr(section)*2))) { + (*Tns_msg)(unsafe.Pointer(handle)).F_sect = section + int32(1) + if (*Tns_msg)(unsafe.Pointer(handle)).F_sect == int32(_ns_s_max) { + (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum = -int32(1) + (*Tns_msg)(unsafe.Pointer(handle)).F_msg_ptr = UintptrFromInt32(0) + } else { + (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum = 0 + } + } + return 0 + goto bad +bad: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENODEV) + return -int32(1) + goto size +size: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EMSGSIZE) + return -int32(1) +} + +func Xns_name_uncompress(tls *TLS, msg uintptr, eom uintptr, src uintptr, dst uintptr, dstsiz Tsize_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v msg=%v eom=%v src=%v dst=%v dstsiz=%v, (%v:)", tls, msg, eom, src, dst, dstsiz, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + r = Xdn_expand(tls, msg, eom, src, dst, Int32FromUint64(dstsiz)) + if r < 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EMSGSIZE) + } + return r +} + +func Xntohl(tls *TLS, n Tuint32_t) (r Tuint32_t) { + if __ccgo_strace { + trc("tls=%v n=%v, (%v:)", tls, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var u struct { + Fc [0]uint8 + Fi int32 + } + var v1 uint32 + var v2, v3 Tuint32_t + _, _, _, _ = u, v1, v2, v3 + u = *(*struct { + Fc [0]uint8 + Fi int32 + })(unsafe.Pointer(&struct{ f int32 }{f: int32(1)})) + if *(*uint8)(unsafe.Pointer(&u)) != 0 { + v2 = n + v3 = v2>>int32(24) | v2>>int32(8)&uint32(0xff00) | v2< %v", r) }() + } + var u struct { + Fc [0]uint8 + Fi int32 + } + var v1 int32 + var v2, v3 Tuint16_t + _, _, _, _ = u, v1, v2, v3 + u = *(*struct { + Fc [0]uint8 + Fi int32 + })(unsafe.Pointer(&struct{ f int32 }{f: int32(1)})) + if *(*uint8)(unsafe.Pointer(&u)) != 0 { + v2 = n + v3 = Uint16FromInt32(Int32FromUint16(v2)<>int32(8)) + goto _4 + _4: + v1 = Int32FromUint16(v3) + } else { + v1 = Int32FromUint16(n) + } + return Uint16FromInt32(v1) +} + +/* do we really need all these?? */ + +var _idx int32 +var _protos = [239]uint8{0, 'i', 'p', 0, 1, 'i', 'c', 'm', 'p', 0, 2, 'i', 'g', 'm', 'p', 0, 3, 'g', 'g', 'p', 0, 4, 'i', 'p', 'e', 'n', 'c', 'a', 'p', 0, 5, 's', 't', 0, 6, 't', 'c', 'p', 0, 8, 'e', 'g', 'p', 0, 12, 'p', 'u', 'p', 0, 17, 'u', 'd', 'p', 0, 20, 'h', 'm', 'p', 0, 22, 'x', 'n', 's', '-', 'i', 'd', 'p', 0, 27, 'r', 'd', 'p', 0, 29, 'i', 's', 'o', '-', 't', 'p', '4', 0, '$', 'x', 't', 'p', 0, '%', 'd', 'd', 'p', 0, '&', 'i', 'd', 'p', 'r', '-', 'c', 'm', 't', 'p', 0, ')', 'i', 'p', 'v', '6', 0, '+', 'i', 'p', 'v', '6', '-', 'r', 'o', 'u', 't', 'e', 0, ',', 'i', 'p', 'v', '6', '-', 'f', 'r', 'a', 'g', 0, '-', 'i', 'd', 'r', 'p', 0, '.', 'r', 's', 'v', 'p', 0, '/', 'g', 'r', 'e', 0, '2', 'e', 's', 'p', 0, '3', 'a', 'h', 0, '9', 's', 'k', 'i', 'p', 0, ':', 'i', 'p', 'v', '6', '-', 'i', 'c', 'm', 'p', 0, ';', 'i', 'p', 'v', '6', '-', 'n', 'o', 'n', 'x', 't', 0, '<', 'i', 'p', 'v', '6', '-', 'o', 'p', 't', 's', 0, 'I', 'r', 's', 'p', 'f', 0, 'Q', 'v', 'm', 't', 'p', 0, 'Y', 'o', 's', 'p', 'f', 0, '^', 'i', 'p', 'i', 'p', 0, 'b', 'e', 'n', 'c', 'a', 'p', 0, 'g', 'p', 'i', 'm', 0, 255, 'r', 'a', 'w'} + +func Xendprotoent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + _idx = 0 +} + +func Xsetprotoent(tls *TLS, stayopen int32) { + if __ccgo_strace { + trc("tls=%v stayopen=%v, (%v:)", tls, stayopen, origin(2)) + } + _idx = 0 +} + +func Xgetprotoent(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + if Uint64FromInt32(_idx) >= uint64(239) { + return UintptrFromInt32(0) + } + _p.Fp_proto = Int32FromUint8(_protos[_idx]) + _p.Fp_name = uintptr(unsafe.Pointer(&_protos)) + uintptr(_idx+int32(1)) + _p.Fp_aliases = uintptr(unsafe.Pointer(&_aliases)) + _idx = Int32FromUint64(uint64(_idx) + (_strlen(tls, _p.Fp_name) + Uint64FromInt32(2))) + return uintptr(unsafe.Pointer(&_p)) +} + +var _p Tprotoent + +var _aliases uintptr + +func Xgetprotobyname(tls *TLS, name uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + var p uintptr + _ = p + Xendprotoent(tls) + for cond := true; cond; cond = p != 0 && Xstrcmp(tls, name, (*Tprotoent)(unsafe.Pointer(p)).Fp_name) != 0 { + p = Xgetprotoent(tls) + } + return p +} + +func Xgetprotobynumber(tls *TLS, num int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v num=%v, (%v:)", tls, num, origin(2)) + defer func() { trc("-> %v", r) }() + } + var p uintptr + _ = p + Xendprotoent(tls) + for cond := true; cond; cond = p != 0 && (*Tprotoent)(unsafe.Pointer(p)).Fp_proto != num { + p = Xgetprotoent(tls) + } + return p +} + +func Xrecv(tls *TLS, fd int32, buf uintptr, len1 Tsize_t, flags int32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v len1=%v flags=%v, (%v:)", tls, fd, buf, len1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xrecvfrom(tls, fd, buf, len1, flags, uintptr(0), uintptr(0)) +} + +func Xrecvfrom(tls *TLS, fd int32, buf uintptr, len1 Tsize_t, flags int32, addr uintptr, alen uintptr) (r1 Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v len1=%v flags=%v addr=%v alen=%v, (%v:)", tls, fd, buf, len1, flags, addr, alen, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v8 int64 + var v1 int32 + var v2, v3, v4, v5, v6, v7 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _ = r, v1, v2, v3, v4, v5, v6, v7, v8 + v1 = int32(SYS_recvfrom) + _ = int32(__SC_recvfrom) + v2 = int64(fd) + v3 = int64(buf) + v4 = Int64FromUint64(len1) + v5 = int64(flags) + v6 = int64(addr) + v7 = int64(alen) + if int32(1) != 0 { + r = ___syscall_cp(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _9 + } + v8 = r + goto _9 +_9: + return X__syscall_ret(tls, Uint64FromInt64(v8)) +} + +func Xrecvmmsg(tls *TLS, fd int32, msgvec uintptr, vlen uint32, flags uint32, timeout uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v msgvec=%v vlen=%v flags=%v timeout=%v, (%v:)", tls, fd, msgvec, vlen, flags, timeout, origin(2)) + defer func() { trc("-> %v", r) }() + } + var i uint32 + var mh uintptr + var v2 int32 + _, _, _ = i, mh, v2 + mh = msgvec + i = vlen + for { + if !(i != 0) { + break + } + v2 = Int32FromInt32(0) + (*Tmmsghdr)(unsafe.Pointer(mh)).Fmsg_hdr.F__pad2 = v2 + (*Tmmsghdr)(unsafe.Pointer(mh)).Fmsg_hdr.F__pad1 = v2 + goto _1 + _1: + ; + i = i - 1 + mh += 64 + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_recvmmsg), int64(fd), int64(msgvec), Int64FromUint32(vlen), Int64FromUint32(flags), int64(timeout), 0)))) +} + +func X__convert_scm_timestamps(tls *TLS, msg uintptr, csize Tsocklen_t) { + if __ccgo_strace { + trc("tls=%v msg=%v csize=%v, (%v:)", tls, msg, csize, origin(2)) + } + bp := tls.Alloc(32) + defer tls.Free(32) + var cmsg, last, v2 uintptr + var type1 int32 + var _ /* tmp at bp+0 */ int64 + var _ /* tvts at bp+8 */ [2]int64 + _, _, _, _ = cmsg, last, type1, v2 + if true { + return + } + if !((*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_control != 0) || !((*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_controllen != 0) { + return + } + last = uintptr(0) + type1 = 0 + if uint64((*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_controllen) >= uint64(16) { + v2 = (*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_control + } else { + v2 = UintptrFromInt32(0) + } + cmsg = v2 + for { + if !(cmsg != 0) { + break + } + if (*Tcmsghdr)(unsafe.Pointer(cmsg)).Fcmsg_level == int32(SOL_SOCKET) { + switch (*Tcmsghdr)(unsafe.Pointer(cmsg)).Fcmsg_type { + case int32(SO_TIMESTAMP_OLD): + goto _3 + case int32(SO_TIMESTAMPNS_OLD): + goto _4 + } + goto _5 + _3: + ; + if type1 != 0 { + goto _5 + } + type1 = int32(SO_TIMESTAMP) + goto common + _4: + ; + type1 = int32(SO_TIMESTAMPNS) + goto common + common: + ; + Xmemcpy(tls, bp, cmsg+UintptrFromInt32(1)*16, uint64(8)) + (**(**[2]int64)(__ccgo_up(bp + 8)))[0] = int64(**(**int64)(__ccgo_up(bp))) + Xmemcpy(tls, bp, cmsg+UintptrFromInt32(1)*16+uintptr(8), uint64(8)) + (**(**[2]int64)(__ccgo_up(bp + 8)))[int32(1)] = int64(**(**int64)(__ccgo_up(bp))) + goto _5 + _5: + } + last = cmsg + goto _1 + _1: + ; + if uint64((*Tcmsghdr)(unsafe.Pointer(cmsg)).Fcmsg_len) < uint64(16) || (uint64((*Tcmsghdr)(unsafe.Pointer(cmsg)).Fcmsg_len)+uint64(8)-uint64(1))&Uint64FromInt64(^Int64FromUint64(Uint64FromInt64(8)-Uint64FromInt32(1)))+uint64(16) >= Uint64FromInt64(int64((*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_control+uintptr((*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_controllen))-int64(cmsg)) { + v2 = uintptr(0) + } else { + v2 = cmsg + uintptr((uint64((*Tcmsghdr)(unsafe.Pointer(cmsg)).Fcmsg_len)+Uint64FromInt64(8)-Uint64FromInt32(1))&Uint64FromInt64(^Int64FromUint64(Uint64FromInt64(8)-Uint64FromInt32(1)))) + } + cmsg = v2 + } + if !(last != 0) || !(type1 != 0) { + return + } + if (Uint64FromInt64(16)+Uint64FromInt64(8)-Uint64FromInt32(1)) & ^(Uint64FromInt64(8)-Uint64FromInt32(1)) + (Uint64FromInt64(16)+Uint64FromInt64(8)-Uint64FromInt32(1)) & ^(Uint64FromInt64(8)-Uint64FromInt32(1)) > uint64(csize-(*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_controllen) { + **(**int32)(__ccgo_up(msg + 48)) |= int32(MSG_CTRUNC) + return + } + v2 = msg + 40 + *(*Tsocklen_t)(unsafe.Pointer(v2)) = Tsocklen_t(uint64(*(*Tsocklen_t)(unsafe.Pointer(v2))) + ((Uint64FromInt64(16)+Uint64FromInt64(8)-Uint64FromInt32(1)) & ^(Uint64FromInt64(8)-Uint64FromInt32(1)) + (Uint64FromInt64(16)+Uint64FromInt64(8)-Uint64FromInt32(1)) & ^(Uint64FromInt64(8)-Uint64FromInt32(1)))) + if uint64((*Tcmsghdr)(unsafe.Pointer(last)).Fcmsg_len) < uint64(16) || (uint64((*Tcmsghdr)(unsafe.Pointer(last)).Fcmsg_len)+uint64(8)-uint64(1))&Uint64FromInt64(^Int64FromUint64(Uint64FromInt64(8)-Uint64FromInt32(1)))+uint64(16) >= Uint64FromInt64(int64((*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_control+uintptr((*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_controllen))-int64(last)) { + v2 = uintptr(0) + } else { + v2 = last + uintptr((uint64((*Tcmsghdr)(unsafe.Pointer(last)).Fcmsg_len)+Uint64FromInt64(8)-Uint64FromInt32(1))&Uint64FromInt64(^Int64FromUint64(Uint64FromInt64(8)-Uint64FromInt32(1)))) + } + cmsg = v2 + (*Tcmsghdr)(unsafe.Pointer(cmsg)).Fcmsg_level = int32(SOL_SOCKET) + (*Tcmsghdr)(unsafe.Pointer(cmsg)).Fcmsg_type = type1 + (*Tcmsghdr)(unsafe.Pointer(cmsg)).Fcmsg_len = uint32((Uint64FromInt64(16)+Uint64FromInt64(8)-Uint64FromInt32(1)) & ^(Uint64FromInt64(8)-Uint64FromInt32(1)) + Uint64FromInt64(16)) + Xmemcpy(tls, cmsg+UintptrFromInt32(1)*16, bp+8, uint64(16)) +} + +func Xrecvmsg(tls *TLS, fd int32, msg uintptr, flags int32) (r2 Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v msg=%v flags=%v, (%v:)", tls, fd, msg, flags, origin(2)) + defer func() { trc("-> %v", r2) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var orig uintptr + var orig_controllen Tsocklen_t + var r, v9 int64 + var r1 Tssize_t + var v1 int32 + var v3, v4, v5, v6, v7, v8 Tsyscall_arg_t + var _ /* h at bp+0 */ Tmsghdr + _, _, _, _, _, _, _, _, _, _, _, _ = orig, orig_controllen, r, r1, v1, v3, v4, v5, v6, v7, v8, v9 + orig_controllen = (*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_controllen + orig = msg + if msg != 0 { + **(**Tmsghdr)(__ccgo_up(bp)) = **(**Tmsghdr)(__ccgo_up(msg)) + v1 = Int32FromInt32(0) + (**(**Tmsghdr)(__ccgo_up(bp))).F__pad2 = v1 + (**(**Tmsghdr)(__ccgo_up(bp))).F__pad1 = v1 + msg = bp + } + v1 = int32(SYS_recvmsg) + _ = int32(__SC_recvmsg) + v3 = int64(fd) + v4 = int64(msg) + v5 = int64(flags) + v6 = int64(Int32FromInt32(0)) + v7 = int64(Int32FromInt32(0)) + v8 = int64(Int32FromInt32(0)) + if int32(1) != 0 { + r = ___syscall_cp(tls, int64(v1), v3, v4, v5, v6, v7, v8) + } else { + r = X__syscall6(tls, int64(v1), v3, v4, v5, v6, v7, v8) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v9 = r + goto _10 + } + v9 = r + goto _10 +_10: + r1 = X__syscall_ret(tls, Uint64FromInt64(v9)) + if r1 >= 0 { + X__convert_scm_timestamps(tls, msg, orig_controllen) + } + if orig != 0 { + **(**Tmsghdr)(__ccgo_up(orig)) = **(**Tmsghdr)(__ccgo_up(bp)) + } + return r1 +} + +func Xres_init(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return 0 +} + +func X__res_mkquery(tls *TLS, op int32, dname uintptr, class int32, type1 int32, data uintptr, datalen int32, newrr uintptr, buf uintptr, buflen int32) (r int32) { + if __ccgo_strace { + trc("tls=%v op=%v dname=%v class=%v type1=%v data=%v datalen=%v newrr=%v buf=%v buflen=%v, (%v:)", tls, op, dname, class, type1, data, datalen, newrr, buf, buflen, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(304) + defer tls.Free(304) + var i, id, j, n int32 + var l Tsize_t + var _ /* q at bp+0 */ [280]uint8 + var _ /* ts at bp+280 */ Ttimespec + _, _, _, _, _ = i, id, j, l, n + l = Xstrnlen(tls, dname, uint64(255)) + if l != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(dname + uintptr(l-uint64(1))))) == int32('.') { + l = l - 1 + } + if l != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(dname + uintptr(l-uint64(1))))) == int32('.') { + return -int32(1) + } + n = Int32FromUint64(uint64(17) + l + BoolUint64(!!(l != 0))) + if l > uint64(253) || buflen < n || Uint32FromInt32(op) > uint32(15) || Uint32FromInt32(class) > uint32(255) || Uint32FromInt32(type1) > uint32(255) { + return -int32(1) + } + /* Construct query template - ID will be filled later */ + Xmemset(tls, bp, 0, Uint64FromInt32(n)) + (**(**[280]uint8)(__ccgo_up(bp)))[int32(2)] = Uint8FromInt32(op*int32(8) + int32(1)) + (**(**[280]uint8)(__ccgo_up(bp)))[int32(3)] = uint8(32) /* AD */ + (**(**[280]uint8)(__ccgo_up(bp)))[int32(5)] = uint8(1) + Xmemcpy(tls, bp+uintptr(13), dname, l) + i = int32(13) + for { + if !((**(**[280]uint8)(__ccgo_up(bp)))[i] != 0) { + break + } + j = i + for { + if !((**(**[280]uint8)(__ccgo_up(bp)))[j] != 0 && Int32FromUint8((**(**[280]uint8)(__ccgo_up(bp)))[j]) != int32('.')) { + break + } + goto _2 + _2: + ; + j = j + 1 + } + if Uint32FromInt32(j-i)-uint32(1) > uint32(62) { + return -int32(1) + } + (**(**[280]uint8)(__ccgo_up(bp)))[i-int32(1)] = Uint8FromInt32(j - i) + goto _1 + _1: + ; + i = j + int32(1) + } + (**(**[280]uint8)(__ccgo_up(bp)))[i+int32(1)] = Uint8FromInt32(type1) + (**(**[280]uint8)(__ccgo_up(bp)))[i+int32(3)] = Uint8FromInt32(class) + /* Make a reasonably unpredictable id */ + Xclock_gettime(tls, CLOCK_REALTIME, bp+280) + id = Int32FromUint64((Uint64FromInt64((**(**Ttimespec)(__ccgo_up(bp + 280))).Ftv_nsec) + Uint64FromInt64((**(**Ttimespec)(__ccgo_up(bp + 280))).Ftv_nsec)/uint64(65536)) & uint64(0xffff)) + (**(**[280]uint8)(__ccgo_up(bp)))[0] = Uint8FromInt32(id / int32(256)) + (**(**[280]uint8)(__ccgo_up(bp)))[int32(1)] = Uint8FromInt32(id) + Xmemcpy(tls, buf, bp, Uint64FromInt32(n)) + return n +} + +func Xres_mkquery(tls *TLS, op int32, dname uintptr, class int32, type1 int32, data uintptr, datalen int32, newrr uintptr, buf uintptr, buflen int32) (r int32) { + if __ccgo_strace { + trc("tls=%v op=%v dname=%v class=%v type1=%v data=%v datalen=%v newrr=%v buf=%v buflen=%v, (%v:)", tls, op, dname, class, type1, data, datalen, newrr, buf, buflen, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__res_mkquery(tls, op, dname, class, type1, data, datalen, newrr, buf, buflen) +} + +const POLLERR = 8 +const POLLHUP = 16 +const POLLIN = 1 +const POLLMSG = 1024 +const POLLNVAL = 32 +const POLLOUT = 4 +const POLLPRI = 2 +const POLLRDBAND = 128 +const POLLRDHUP = 8192 +const POLLRDNORM = 64 +const POLLWRBAND = 512 +const POLLWRNORM = 256 +const TCP_CC_INFO = 26 +const TCP_CLOSE = 7 +const TCP_CLOSE_WAIT = 8 +const TCP_CLOSING = 11 +const TCP_CM_INQ = 36 +const TCP_CONGESTION = 13 +const TCP_CORK = 3 +const TCP_DEFER_ACCEPT = 9 +const TCP_ESTABLISHED = 1 +const TCP_FASTOPEN = 23 +const TCP_FASTOPEN_CONNECT = 30 +const TCP_FASTOPEN_KEY = 33 +const TCP_FASTOPEN_NO_COOKIE = 34 +const TCP_FIN_WAIT1 = 4 +const TCP_FIN_WAIT2 = 5 +const TCP_INFO = 11 +const TCP_INQ = 36 +const TCP_KEEPCNT = 6 +const TCP_KEEPIDLE = 4 +const TCP_KEEPINTVL = 5 +const TCP_LAST_ACK = 9 +const TCP_LINGER2 = 8 +const TCP_LISTEN = 10 +const TCP_MAXSEG = 2 +const TCP_MD5SIG = 14 +const TCP_MD5SIG_EXT = 32 +const TCP_NODELAY = 1 +const TCP_NOTSENT_LOWAT = 25 +const TCP_QUEUE_SEQ = 21 +const TCP_QUICKACK = 12 +const TCP_REPAIR = 19 +const TCP_REPAIR_OPTIONS = 22 +const TCP_REPAIR_QUEUE = 20 +const TCP_REPAIR_WINDOW = 29 +const TCP_SAVED_SYN = 28 +const TCP_SAVE_SYN = 27 +const TCP_SYNCNT = 7 +const TCP_SYN_RECV = 3 +const TCP_SYN_SENT = 2 +const TCP_THIN_DUPACK = 17 +const TCP_THIN_LINEAR_TIMEOUTS = 16 +const TCP_TIMESTAMP = 24 +const TCP_TIME_WAIT = 6 +const TCP_TX_DELAY = 37 +const TCP_ULP = 31 +const TCP_USER_TIMEOUT = 18 +const TCP_WINDOW_CLAMP = 10 +const TCP_ZEROCOPY_RECEIVE = 35 + +const _TCP_NLA_PAD = 0 +const _TCP_NLA_BUSY = 1 +const _TCP_NLA_RWND_LIMITED = 2 +const _TCP_NLA_SNDBUF_LIMITED = 3 +const _TCP_NLA_DATA_SEGS_OUT = 4 +const _TCP_NLA_TOTAL_RETRANS = 5 +const _TCP_NLA_PACING_RATE = 6 +const _TCP_NLA_DELIVERY_RATE = 7 +const _TCP_NLA_SND_CWND = 8 +const _TCP_NLA_REORDERING = 9 +const _TCP_NLA_MIN_RTT = 10 +const _TCP_NLA_RECUR_RETRANS = 11 +const _TCP_NLA_DELIVERY_RATE_APP_LMT = 12 +const _TCP_NLA_SNDQ_SIZE = 13 +const _TCP_NLA_CA_STATE = 14 +const _TCP_NLA_SND_SSTHRESH = 15 +const _TCP_NLA_DELIVERED = 16 +const _TCP_NLA_DELIVERED_CE = 17 +const _TCP_NLA_BYTES_SENT = 18 +const _TCP_NLA_BYTES_RETRANS = 19 +const _TCP_NLA_DSACK_DUPS = 20 +const _TCP_NLA_REORD_SEEN = 21 +const _TCP_NLA_SRTT = 22 +const _TCP_NLA_TIMEOUT_REHASH = 23 +const _TCP_NLA_BYTES_NOTSENT = 24 +const _TCP_NLA_EDT = 25 +const _TCP_NLA_TTL = 26 + +type Tnfds_t = uint64 + +type Tpollfd = struct { + Ffd int32 + Fevents int16 + Frevents int16 +} + +func _cleanup(tls *TLS, p uintptr) { + var i int32 + var pfd uintptr + _, _ = i, pfd + pfd = p + i = 0 + for { + if !((**(**Tpollfd)(__ccgo_up(pfd + uintptr(i)*8))).Ffd >= -int32(1)) { + break + } + if (**(**Tpollfd)(__ccgo_up(pfd + uintptr(i)*8))).Ffd >= 0 { + X__syscall1(tls, int64(SYS_close), int64((**(**Tpollfd)(__ccgo_up(pfd + uintptr(i)*8))).Ffd)) + } + goto _1 + _1: + ; + i = i + 1 + } +} + +func _mtime(tls *TLS) (r uint64) { + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* ts at bp+0 */ Ttimespec + if Xclock_gettime(tls, int32(CLOCK_MONOTONIC), bp) < 0 && **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(ENOSYS) { + Xclock_gettime(tls, CLOCK_REALTIME, bp) + } + return Uint64FromInt64((**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec)*uint64(1000) + Uint64FromInt64((**(**Ttimespec)(__ccgo_up(bp))).Ftv_nsec/int64(1000000)) +} + +func _start_tcp(tls *TLS, pfd uintptr, family int32, sa uintptr, sl Tsocklen_t, q uintptr, ql int32) (r1 int32) { + bp := tls.Alloc(96) + defer tls.Free(96) + var fd, r int32 + var _ /* mh at bp+40 */ Tmsghdr + _, _ = fd, r + *(*[2]Tuint8_t)(unsafe.Pointer(bp + 32)) = [2]Tuint8_t{ + 0: Uint8FromInt32(ql >> int32(8)), + 1: Uint8FromInt32(ql), + } + *(*[2]Tiovec)(unsafe.Pointer(bp)) = [2]Tiovec{ + 0: { + Fiov_base: bp + 32, + Fiov_len: uint64(2), + }, + 1: { + Fiov_base: q, + Fiov_len: Uint64FromInt32(ql), + }, + } + **(**Tmsghdr)(__ccgo_up(bp + 40)) = Tmsghdr{ + Fmsg_name: sa, + Fmsg_namelen: sl, + Fmsg_iov: bp, + Fmsg_iovlen: int32(2), + } + fd = Xsocket(tls, family, Int32FromInt32(SOCK_STREAM)|Int32FromInt32(SOCK_CLOEXEC)|Int32FromInt32(SOCK_NONBLOCK), 0) + (*Tpollfd)(unsafe.Pointer(pfd)).Ffd = fd + (*Tpollfd)(unsafe.Pointer(pfd)).Fevents = int16(POLLOUT) + *(*int32)(unsafe.Pointer(bp + 36)) = int32(1) + if !(Xsetsockopt(tls, fd, int32(IPPROTO_TCP), int32(TCP_FASTOPEN_CONNECT), bp+36, uint32(4)) != 0) { + r = int32(Xsendmsg(tls, fd, bp+40, Int32FromInt32(MSG_FASTOPEN)|Int32FromInt32(MSG_NOSIGNAL))) + if r == ql+int32(2) { + (*Tpollfd)(unsafe.Pointer(pfd)).Fevents = int16(POLLIN) + } + if r >= 0 { + return r + } + if **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EINPROGRESS) { + return 0 + } + } + r = Xconnect(tls, fd, sa, sl) + if !(r != 0) || **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EINPROGRESS) { + return 0 + } + Xclose(tls, fd) + (*Tpollfd)(unsafe.Pointer(pfd)).Ffd = -int32(1) + return -int32(1) +} + +func _step_mh(tls *TLS, mh uintptr, n Tsize_t) { + /* Adjust iovec in msghdr to skip first n bytes. */ + for (*Tmsghdr)(unsafe.Pointer(mh)).Fmsg_iovlen != 0 && n >= (*Tiovec)(unsafe.Pointer((*Tmsghdr)(unsafe.Pointer(mh)).Fmsg_iov)).Fiov_len { + n = n - (*Tiovec)(unsafe.Pointer((*Tmsghdr)(unsafe.Pointer(mh)).Fmsg_iov)).Fiov_len + (*Tmsghdr)(unsafe.Pointer(mh)).Fmsg_iov += 16 + (*Tmsghdr)(unsafe.Pointer(mh)).Fmsg_iovlen = (*Tmsghdr)(unsafe.Pointer(mh)).Fmsg_iovlen - 1 + } + if !((*Tmsghdr)(unsafe.Pointer(mh)).Fmsg_iovlen != 0) { + return + } + (*Tiovec)(unsafe.Pointer((*Tmsghdr)(unsafe.Pointer(mh)).Fmsg_iov)).Fiov_base = (*Tiovec)(unsafe.Pointer((*Tmsghdr)(unsafe.Pointer(mh)).Fmsg_iov)).Fiov_base + uintptr(n) + **(**Tsize_t)(__ccgo_up((*Tmsghdr)(unsafe.Pointer(mh)).Fmsg_iov + 8)) -= n +} + +/* Internal contract for __res_msend[_rc]: asize must be >=512, nqueries + * must be sufficiently small to be safe as VLA size. In practice it's + * either 1 or 2, anyway. */ + +func X__res_msend_rc(tls *TLS, nqueries int32, queries uintptr, qlens uintptr, answers uintptr, alens uintptr, asize int32, conf uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v nqueries=%v queries=%v qlens=%v answers=%v alens=%v asize=%v conf=%v, (%v:)", tls, nqueries, queries, qlens, answers, alens, asize, conf, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(400) + defer tls.Free(400) + var alen, attempts, family, fd, i, j, next, nns, r, rcode, retry_interval, rlen, servfail_retry, timeout, v6 int32 + var alen_buf, apos, iplit, pfd, qpos uintptr + var sl Tsocklen_t + var t0, t1, t2, v10 uint64 + var v1, v2, v3, v4 t__predefined_size_t + var v18 bool + var _ /* __cb at bp+208 */ t__ptcb + var _ /* cs at bp+200 */ int32 + var _ /* mh at bp+232 */ Tmsghdr + var _ /* mh at bp+288 */ Tmsghdr + var _ /* mh at bp+344 */ Tmsghdr + var _ /* ns at bp+116 */ [3]struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + } + var _ /* sa at bp+88 */ struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = alen, alen_buf, apos, attempts, family, fd, i, iplit, j, next, nns, pfd, qpos, r, rcode, retry_interval, rlen, servfail_retry, sl, t0, t1, t2, timeout, v1, v10, v18, v2, v3, v4, v6 + defer func() { + Xrealloc(tls, alen_buf, 0) + Xrealloc(tls, apos, 0) + Xrealloc(tls, pfd, 0) + Xrealloc(tls, qpos, 0) + }() + *(*struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + })(unsafe.Pointer(bp + 88)) = struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + }{} + *(*uint16)(unsafe.Pointer(bp + 88)) = uint16(0) + **(**[3]struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + })(__ccgo_up(bp + 116)) = [3]struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + }{} + sl = uint32(16) + nns = 0 + family = int32(PF_INET) + v1 = Uint64FromInt32(nqueries+int32(2)) * 8 + pfd = Xrealloc(tls, pfd, v1) + v2 = Uint64FromInt32(nqueries) * 4 + qpos = Xrealloc(tls, qpos, v2) + v3 = Uint64FromInt32(nqueries) * 4 + apos = Xrealloc(tls, apos, v3) + v4 = Uint64FromInt32(nqueries) * 2 + alen_buf = Xrealloc(tls, alen_buf, v4) + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp+200) + timeout = Int32FromUint32(uint32(1000) * (*Tresolvconf)(unsafe.Pointer(conf)).Ftimeout) + attempts = Int32FromUint32((*Tresolvconf)(unsafe.Pointer(conf)).Fattempts) + nns = 0 + for { + if !(Uint32FromInt32(nns) < (*Tresolvconf)(unsafe.Pointer(conf)).Fnns) { + break + } + iplit = conf + uintptr(nns)*28 + if (*Taddress)(unsafe.Pointer(iplit)).Ffamily == int32(PF_INET) { + Xmemcpy(tls, bp+116+uintptr(nns)*28+4, iplit+8, uint64(4)) + (**(**[3]struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + })(__ccgo_up(bp + 116)))[nns].Fsin.Fsin_port = Xhtons(tls, uint16(53)) + (**(**[3]struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + })(__ccgo_up(bp + 116)))[nns].Fsin.Fsin_family = uint16(PF_INET) + } else { + sl = uint32(28) + Xmemcpy(tls, bp+116+uintptr(nns)*28+8, iplit+8, uint64(16)) + (*(*Tsockaddr_in6)(unsafe.Pointer(bp + 116 + uintptr(nns)*28))).Fsin6_port = Xhtons(tls, uint16(53)) + (*(*Tsockaddr_in6)(unsafe.Pointer(bp + 116 + uintptr(nns)*28))).Fsin6_scope_id = (*Taddress)(unsafe.Pointer(iplit)).Fscopeid + v6 = Int32FromInt32(PF_INET6) + family = v6 + (*(*Tsockaddr_in6)(unsafe.Pointer(bp + 116 + uintptr(nns)*28))).Fsin6_family = Uint16FromInt32(v6) + } + goto _5 + _5: + ; + nns = nns + 1 + } + /* Get local address and open/bind a socket */ + fd = Xsocket(tls, family, Int32FromInt32(SOCK_DGRAM)|Int32FromInt32(SOCK_CLOEXEC)|Int32FromInt32(SOCK_NONBLOCK), 0) + /* Handle case where system lacks IPv6 support */ + if fd < 0 && family == int32(PF_INET6) && **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EAFNOSUPPORT) { + i = 0 + for { + if !(i < nns && (**(**Taddress)(__ccgo_up(conf + uintptr(nns)*28))).Ffamily == int32(PF_INET6)) { + break + } + goto _7 + _7: + ; + i = i + 1 + } + if i == nns { + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 200)), uintptr(0)) + return -int32(1) + } + fd = Xsocket(tls, int32(PF_INET), Int32FromInt32(SOCK_DGRAM)|Int32FromInt32(SOCK_CLOEXEC)|Int32FromInt32(SOCK_NONBLOCK), 0) + family = int32(PF_INET) + sl = uint32(16) + } + /* Convert any IPv4 addresses in a mixed environment to v4-mapped */ + if fd >= 0 && family == int32(PF_INET6) { + *(*int32)(unsafe.Pointer(bp)) = 0 + Xsetsockopt(tls, fd, int32(IPPROTO_IPV6), int32(IPV6_V6ONLY), bp, uint32(4)) + i = 0 + for { + if !(i < nns) { + break + } + if Int32FromUint16((**(**[3]struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + })(__ccgo_up(bp + 116)))[i].Fsin.Fsin_family) != int32(PF_INET) { + goto _8 + } + Xmemcpy(tls, bp+116+uintptr(i)*28+8+uintptr(12), bp+116+uintptr(i)*28+4, uint64(4)) + Xmemcpy(tls, bp+116+uintptr(i)*28+8, __ccgo_ts+1066, uint64(12)) + (*(*Tsockaddr_in6)(unsafe.Pointer(bp + 116 + uintptr(i)*28))).Fsin6_family = uint16(PF_INET6) + (*(*Tsockaddr_in6)(unsafe.Pointer(bp + 116 + uintptr(i)*28))).Fsin6_flowinfo = uint32(0) + (*(*Tsockaddr_in6)(unsafe.Pointer(bp + 116 + uintptr(i)*28))).Fsin6_scope_id = uint32(0) + goto _8 + _8: + ; + i = i + 1 + } + } + (**(**struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + })(__ccgo_up(bp + 88))).Fsin.Fsin_family = Uint16FromInt32(family) + if fd < 0 || Xbind(tls, fd, bp+88, sl) < 0 { + if fd >= 0 { + Xclose(tls, fd) + } + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 200)), uintptr(0)) + return -int32(1) + } + /* Past this point, there are no errors. Each individual query will + * yield either no reply (indicated by zero length) or an answer + * packet which is up to the caller to interpret. */ + i = 0 + for { + if !(i < nqueries) { + break + } + (*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), i*8))).Ffd = -int32(1) + goto _9 + _9: + ; + i = i + 1 + } + (*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), nqueries*8))).Ffd = fd + (*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), nqueries*8))).Fevents = int16(POLLIN) + (*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), (nqueries+int32(1))*8))).Ffd = -int32(2) + __pthread_cleanup_push(tls, bp+208, __ccgo_fp(_cleanup), pfd) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 200)), uintptr(0)) + Xmemset(tls, alens, 0, uint64(4)*Uint64FromInt32(nqueries)) + retry_interval = timeout / attempts + next = 0 + v10 = _mtime(tls) + t2 = v10 + t0 = v10 + t1 = t2 - Uint64FromInt32(retry_interval) + for { + if !(t2-t0 < Uint64FromInt32(timeout)) { + break + } + /* This is the loop exit condition: that all queries + * have an accepted answer. */ + i = 0 + for { + if !(i < nqueries && **(**int32)(__ccgo_up(alens + uintptr(i)*4)) > 0) { + break + } + goto _12 + _12: + ; + i = i + 1 + } + if i == nqueries { + break + } + if t2-t1 >= Uint64FromInt32(retry_interval) { + /* Query all configured namservers in parallel */ + i = 0 + for { + if !(i < nqueries) { + break + } + if !(**(**int32)(__ccgo_up(alens + uintptr(i)*4)) != 0) { + j = 0 + for { + if !(j < nns) { + break + } + Xsendto(tls, fd, **(**uintptr)(__ccgo_up(queries + uintptr(i)*8)), Uint64FromInt32(**(**int32)(__ccgo_up(qlens + uintptr(i)*4))), int32(MSG_NOSIGNAL), bp+116+uintptr(j)*28, sl) + goto _14 + _14: + ; + j = j + 1 + } + } + goto _13 + _13: + ; + i = i + 1 + } + t1 = t2 + servfail_retry = int32(2) * nqueries + } + /* Wait for a response, or until time to retry */ + if Xpoll(tls, pfd, Uint64FromInt32(nqueries+int32(1)), Int32FromUint64(t1+Uint64FromInt32(retry_interval)-t2)) <= 0 { + goto _11 + } + for next < nqueries { + *(*[1]Tiovec)(unsafe.Pointer(bp + 8)) = [1]Tiovec{ + 0: { + Fiov_base: **(**uintptr)(__ccgo_up(answers + uintptr(next)*8)), + Fiov_len: Uint64FromInt32(asize), + }, + } + **(**Tmsghdr)(__ccgo_up(bp + 232)) = Tmsghdr{ + Fmsg_name: bp + 88, + Fmsg_namelen: sl, + Fmsg_iov: bp + 8, + Fmsg_iovlen: int32(1), + } + rlen = int32(Xrecvmsg(tls, fd, bp+232, 0)) + if rlen < 0 { + break + } + /* Ignore non-identifiable packets */ + if rlen < int32(4) { + continue + } + /* Ignore replies from addresses we didn't send to */ + j = 0 + for { + if !(j < nns && Xmemcmp(tls, bp+116+uintptr(j)*28, bp+88, uint64(sl)) != 0) { + break + } + goto _15 + _15: + ; + j = j + 1 + } + if j == nns { + continue + } + /* Find which query this answer goes with, if any */ + i = next + for { + if !(i < nqueries && (Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(answers + uintptr(next)*8))))) != Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(queries + uintptr(i)*8))))) || Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(answers + uintptr(next)*8)) + 1))) != Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(queries + uintptr(i)*8)) + 1))))) { + break + } + goto _16 + _16: + ; + i = i + 1 + } + if i == nqueries { + continue + } + if **(**int32)(__ccgo_up(alens + uintptr(i)*4)) != 0 { + continue + } + /* Only accept positive or negative responses; + * retry immediately on server failure, and ignore + * all other codes such as refusal. */ + switch Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(answers + uintptr(next)*8)) + 3))) & Int32FromInt32(15) { + case 0: + fallthrough + case int32(3): + case int32(2): + if v18 = servfail_retry != 0; v18 { + v6 = servfail_retry + servfail_retry = servfail_retry - 1 + } + if v18 && v6 != 0 { + Xsendto(tls, fd, **(**uintptr)(__ccgo_up(queries + uintptr(i)*8)), Uint64FromInt32(**(**int32)(__ccgo_up(qlens + uintptr(i)*4))), int32(MSG_NOSIGNAL), bp+116+uintptr(j)*28, sl) + } + fallthrough + default: + continue + } + /* Store answer in the right slot, or update next + * available temp slot if it's already in place. */ + **(**int32)(__ccgo_up(alens + uintptr(i)*4)) = rlen + if i == next { + for { + if !(next < nqueries && **(**int32)(__ccgo_up(alens + uintptr(next)*4)) != 0) { + break + } + goto _19 + _19: + ; + next = next + 1 + } + } else { + Xmemcpy(tls, **(**uintptr)(__ccgo_up(answers + uintptr(i)*8)), **(**uintptr)(__ccgo_up(answers + uintptr(next)*8)), Uint64FromInt32(rlen)) + } + /* Ignore further UDP if all slots full or TCP-mode */ + if next == nqueries { + (*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), nqueries*8))).Fevents = 0 + } + /* If answer is truncated (TC bit), fallback to TCP */ + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(answers + uintptr(i)*8)) + 2)))&int32(2) != 0 || (**(**Tmsghdr)(__ccgo_up(bp + 232))).Fmsg_flags&int32(MSG_TRUNC) != 0 { + **(**int32)(__ccgo_up(alens + uintptr(i)*4)) = -int32(1) + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), uintptr(0)) + r = _start_tcp(tls, pfd+uintptr(i)*8, family, bp+116+uintptr(j)*28, sl, **(**uintptr)(__ccgo_up(queries + uintptr(i)*8)), **(**int32)(__ccgo_up(qlens + uintptr(i)*4))) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 200)), uintptr(0)) + if r >= 0 { + *(*int32)(unsafe.Add(unsafe.Pointer(qpos), i*4)) = r + *(*int32)(unsafe.Add(unsafe.Pointer(apos), i*4)) = 0 + } + continue + } + } + i = 0 + for { + if !(i < nqueries) { + break + } + if int32((*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), i*8))).Frevents)&int32(POLLOUT) != 0 { + *(*[2]Tuint8_t)(unsafe.Pointer(bp + 52)) = [2]Tuint8_t{ + 0: Uint8FromInt32(**(**int32)(__ccgo_up(qlens + uintptr(i)*4)) >> int32(8)), + 1: Uint8FromInt32(**(**int32)(__ccgo_up(qlens + uintptr(i)*4))), + } + *(*[2]Tiovec)(unsafe.Pointer(bp + 24)) = [2]Tiovec{ + 0: { + Fiov_base: bp + 52, + Fiov_len: uint64(2), + }, + 1: { + Fiov_base: **(**uintptr)(__ccgo_up(queries + uintptr(i)*8)), + Fiov_len: Uint64FromInt32(**(**int32)(__ccgo_up(qlens + uintptr(i)*4))), + }, + } + **(**Tmsghdr)(__ccgo_up(bp + 288)) = Tmsghdr{ + Fmsg_iov: bp + 24, + Fmsg_iovlen: int32(2), + } + _step_mh(tls, bp+288, Uint64FromInt32(*(*int32)(unsafe.Add(unsafe.Pointer(qpos), i*4)))) + r = int32(Xsendmsg(tls, (*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), i*8))).Ffd, bp+288, int32(MSG_NOSIGNAL))) + if r < 0 { + goto out + } + **(**int32)(__ccgo_up(qpos + uintptr(i)*4)) += r + if *(*int32)(unsafe.Add(unsafe.Pointer(qpos), i*4)) == **(**int32)(__ccgo_up(qlens + uintptr(i)*4))+int32(2) { + (*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), i*8))).Fevents = int16(POLLIN) + } + } + goto _20 + _20: + ; + i = i + 1 + } + i = 0 + for { + if !(i < nqueries) { + break + } + if int32((*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), i*8))).Frevents)&int32(POLLIN) != 0 { + *(*[2]Tiovec)(unsafe.Pointer(bp + 56)) = [2]Tiovec{ + 0: { + Fiov_base: alen_buf + uintptr(i)*2, + Fiov_len: uint64(2), + }, + 1: { + Fiov_base: **(**uintptr)(__ccgo_up(answers + uintptr(i)*8)), + Fiov_len: Uint64FromInt32(asize), + }, + } + **(**Tmsghdr)(__ccgo_up(bp + 344)) = Tmsghdr{ + Fmsg_iov: bp + 56, + Fmsg_iovlen: int32(2), + } + _step_mh(tls, bp+344, Uint64FromInt32(*(*int32)(unsafe.Add(unsafe.Pointer(apos), i*4)))) + r = int32(Xrecvmsg(tls, (*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), i*8))).Ffd, bp+344, 0)) + if r <= 0 { + goto out + } + **(**int32)(__ccgo_up(apos + uintptr(i)*4)) += r + if *(*int32)(unsafe.Add(unsafe.Pointer(apos), i*4)) < int32(2) { + goto _21 + } + alen = Int32FromUint8(**(**uint8)(__ccgo_up(alen_buf + uintptr(i)*2)))*int32(256) + Int32FromUint8(**(**uint8)(__ccgo_up(alen_buf + uintptr(i)*2 + 1))) + if alen < int32(13) { + goto out + } + if *(*int32)(unsafe.Add(unsafe.Pointer(apos), i*4)) < alen+int32(2) && *(*int32)(unsafe.Add(unsafe.Pointer(apos), i*4)) < asize+int32(2) { + goto _21 + } + rcode = Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(answers + uintptr(i)*8)) + 3))) & int32(15) + if rcode != 0 && rcode != int32(3) { + goto out + } + /* Storing the length here commits the accepted answer. + * Immediately close TCP socket so as not to consume + * resources we no longer need. */ + **(**int32)(__ccgo_up(alens + uintptr(i)*4)) = alen + X__syscall1(tls, int64(SYS_close), int64((*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), i*8))).Ffd)) + (*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), i*8))).Ffd = -int32(1) + } + goto _21 + _21: + ; + i = i + 1 + } + goto _11 + _11: + ; + t2 = _mtime(tls) + } + goto out +out: + ; + __pthread_cleanup_pop(tls, bp+208, int32(1)) + /* Disregard any incomplete TCP results */ + i = 0 + for { + if !(i < nqueries) { + break + } + if **(**int32)(__ccgo_up(alens + uintptr(i)*4)) < 0 { + **(**int32)(__ccgo_up(alens + uintptr(i)*4)) = 0 + } + goto _22 + _22: + ; + i = i + 1 + } + return 0 +} + +func X__res_msend(tls *TLS, nqueries int32, queries uintptr, qlens uintptr, answers uintptr, alens uintptr, asize int32) (r int32) { + if __ccgo_strace { + trc("tls=%v nqueries=%v queries=%v qlens=%v answers=%v alens=%v asize=%v, (%v:)", tls, nqueries, queries, qlens, answers, alens, asize, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(112) + defer tls.Free(112) + var _ /* conf at bp+0 */ Tresolvconf + if X__get_resolv_conf(tls, bp, uintptr(0), uint64(0)) < 0 { + return -int32(1) + } + return X__res_msend_rc(tls, nqueries, queries, qlens, answers, alens, asize, bp) +} + +func X__res_send(tls *TLS, _msg uintptr, _msglen int32, _answer uintptr, _anslen int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v _msg=%v _msglen=%v _answer=%v _anslen=%v, (%v:)", tls, _msg, _msglen, _answer, _anslen, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(544) + defer tls.Free(544) + *(*uintptr)(unsafe.Pointer(bp)) = _msg + *(*int32)(unsafe.Pointer(bp + 8)) = _msglen + *(*uintptr)(unsafe.Pointer(bp + 16)) = _answer + *(*int32)(unsafe.Pointer(bp + 24)) = _anslen + var r, v1 int32 + var _ /* buf at bp+28 */ [512]uint8 + _, _ = r, v1 + if **(**int32)(__ccgo_up(bp + 24)) < int32(512) { + r = X__res_send(tls, **(**uintptr)(__ccgo_up(bp)), **(**int32)(__ccgo_up(bp + 8)), bp+28, int32(512)) + if r >= 0 { + if r < **(**int32)(__ccgo_up(bp + 24)) { + v1 = r + } else { + v1 = **(**int32)(__ccgo_up(bp + 24)) + } + Xmemcpy(tls, **(**uintptr)(__ccgo_up(bp + 16)), bp+28, Uint64FromInt32(v1)) + } + return r + } + r = X__res_msend(tls, int32(1), bp, bp+8, bp+16, bp+24, **(**int32)(__ccgo_up(bp + 24))) + if r < 0 || !(**(**int32)(__ccgo_up(bp + 24)) != 0) { + v1 = -int32(1) + } else { + v1 = **(**int32)(__ccgo_up(bp + 24)) + } + return v1 +} + +func Xres_send(tls *TLS, _msg uintptr, _msglen int32, _answer uintptr, _anslen int32) (r int32) { + if __ccgo_strace { + trc("tls=%v _msg=%v _msglen=%v _answer=%v _anslen=%v, (%v:)", tls, _msg, _msglen, _answer, _anslen, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__res_send(tls, _msg, _msglen, _answer, _anslen) +} + +/* This is completely unused, and exists purely to satisfy broken apps. */ + +func X__res_state(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(unsafe.Pointer(&_res1)) +} + +var _res1 t__res_state + +func X__get_resolv_conf(tls *TLS, conf uintptr, search uintptr, search_sz Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v conf=%v search=%v search_sz=%v, (%v:)", tls, conf, search, search_sz, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(752) + defer tls.Free(752) + var c, nns, v1, v2 int32 + var f, p uintptr + var l Tsize_t + var x, x1, x2, v5 uint64 + var v4 bool + var _ /* _buf at bp+256 */ [256]uint8 + var _ /* _f at bp+512 */ TFILE + var _ /* line at bp+0 */ [256]uint8 + var _ /* z at bp+744 */ uintptr + _, _, _, _, _, _, _, _, _, _, _, _ = c, f, l, nns, p, x, x1, x2, v1, v2, v4, v5 + nns = 0 + (*Tresolvconf)(unsafe.Pointer(conf)).Fndots = uint32(1) + (*Tresolvconf)(unsafe.Pointer(conf)).Ftimeout = uint32(5) + (*Tresolvconf)(unsafe.Pointer(conf)).Fattempts = uint32(2) + if search != 0 { + **(**uint8)(__ccgo_up(search)) = uint8(0) + } + f = X__fopen_rb_ca(tls, __ccgo_ts+1188, bp+512, bp+256, uint64(256)) + if !(f != 0) { + switch **(**int32)(__ccgo_up(X__errno_location(tls))) { + case int32(ENOENT): + fallthrough + case int32(ENOTDIR): + fallthrough + case int32(EACCES): + goto no_resolv_conf + default: + return -int32(1) + } + } + for Xfgets(tls, bp, int32(256), f) != 0 { + if !(Xstrchr(tls, bp, int32('\n')) != 0) && !((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_EOF) != 0) { + for cond := true; cond; cond = c != int32('\n') && c != -int32(1) { + c = Xgetc(tls, f) + } + continue + } + if v4 = !(Xstrncmp(tls, bp, __ccgo_ts+1205, uint64(7)) != 0); v4 { + v1 = Int32FromUint8((**(**[256]uint8)(__ccgo_up(bp)))[int32(7)]) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _3 + _3: + } + if v4 && v2 != 0 { + p = Xstrstr(tls, bp, __ccgo_ts+1213) + if p != 0 && BoolInt32(uint32(**(**uint8)(__ccgo_up(p + 6)))-uint32('0') < uint32(10)) != 0 { + p = p + uintptr(6) + x = Xstrtoul(tls, p, bp+744, int32(10)) + if **(**uintptr)(__ccgo_up(bp + 744)) != p { + if x > uint64(15) { + v5 = uint64(15) + } else { + v5 = x + } + (*Tresolvconf)(unsafe.Pointer(conf)).Fndots = uint32(v5) + } + } + p = Xstrstr(tls, bp, __ccgo_ts+1220) + if p != 0 && BoolInt32(uint32(**(**uint8)(__ccgo_up(p + 9)))-uint32('0') < uint32(10)) != 0 { + p = p + uintptr(9) + x1 = Xstrtoul(tls, p, bp+744, int32(10)) + if **(**uintptr)(__ccgo_up(bp + 744)) != p { + if x1 > uint64(10) { + v5 = uint64(10) + } else { + v5 = x1 + } + (*Tresolvconf)(unsafe.Pointer(conf)).Fattempts = uint32(v5) + } + } + p = Xstrstr(tls, bp, __ccgo_ts+1230) + if p != 0 && (BoolInt32(uint32(**(**uint8)(__ccgo_up(p + 8)))-uint32('0') < uint32(10)) != 0 || Int32FromUint8(**(**uint8)(__ccgo_up(p + 8))) == int32('.')) { + p = p + uintptr(8) + x2 = Xstrtoul(tls, p, bp+744, int32(10)) + if **(**uintptr)(__ccgo_up(bp + 744)) != p { + if x2 > uint64(60) { + v5 = uint64(60) + } else { + v5 = x2 + } + (*Tresolvconf)(unsafe.Pointer(conf)).Ftimeout = uint32(v5) + } + } + continue + } + if v4 = !(Xstrncmp(tls, bp, __ccgo_ts+1239, uint64(10)) != 0); v4 { + v1 = Int32FromUint8((**(**[256]uint8)(__ccgo_up(bp)))[int32(10)]) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _10 + _10: + } + if v4 && v2 != 0 { + if nns >= int32(MAXNS) { + continue + } + p = bp + uintptr(11) + for { + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(p))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _15 + _15: + if !(v2 != 0) { + break + } + goto _12 + _12: + ; + p = p + 1 + } + **(**uintptr)(__ccgo_up(bp + 744)) = p + for { + if v4 = **(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 744)))) != 0; v4 { + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 744))))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _19 + _19: + } + if !(v4 && !(v2 != 0)) { + break + } + goto _16 + _16: + ; + **(**uintptr)(__ccgo_up(bp + 744)) = **(**uintptr)(__ccgo_up(bp + 744)) + 1 + } + **(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 744)))) = uint8(0) + if X__lookup_ipliteral(tls, conf+uintptr(nns)*28, p, PF_UNSPEC) > 0 { + nns = nns + 1 + } + continue + } + if !(search != 0) { + continue + } + if v4 = Xstrncmp(tls, bp, __ccgo_ts+1250, uint64(6)) != 0 && Xstrncmp(tls, bp, __ccgo_ts+1257, uint64(6)) != 0; !v4 { + v1 = Int32FromUint8((**(**[256]uint8)(__ccgo_up(bp)))[int32(6)]) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _23 + _23: + } + if v4 || !(v2 != 0) { + continue + } + p = bp + uintptr(7) + for { + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(p))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _28 + _28: + if !(v2 != 0) { + break + } + goto _25 + _25: + ; + p = p + 1 + } + l = _strlen(tls, p) + /* This can never happen anyway with chosen buffer sizes. */ + if l >= search_sz { + continue + } + Xmemcpy(tls, search, p, l+uint64(1)) + } + X__fclose_ca(tls, f) + goto no_resolv_conf +no_resolv_conf: + ; + if !(nns != 0) { + X__lookup_ipliteral(tls, conf, __ccgo_ts+1264, PF_UNSPEC) + nns = int32(1) + } + (*Tresolvconf)(unsafe.Pointer(conf)).Fnns = Uint32FromInt32(nns) + return 0 +} + +func Xsend(tls *TLS, fd int32, buf uintptr, len1 Tsize_t, flags int32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v len1=%v flags=%v, (%v:)", tls, fd, buf, len1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xsendto(tls, fd, buf, len1, flags, uintptr(0), uint32(0)) +} + +func Xsendmmsg(tls *TLS, fd int32, msgvec uintptr, vlen uint32, flags uint32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v msgvec=%v vlen=%v flags=%v, (%v:)", tls, fd, msgvec, vlen, flags, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var i, v2 int32 + var r Tssize_t + _, _, _ = i, r, v2 + if vlen > uint32(IOV_MAX) { + vlen = uint32(IOV_MAX) + } /* This matches the kernel. */ + if !(vlen != 0) { + return 0 + } + i = 0 + for { + if !(Uint32FromInt32(i) < vlen) { + break + } + /* As an unfortunate inconsistency, the sendmmsg API uses + * unsigned int for the resulting msg_len, despite sendmsg + * returning ssize_t. However Linux limits the total bytes + * sent by sendmsg to INT_MAX, so the assignment is safe. */ + r = Xsendmsg(tls, fd, msgvec+uintptr(i)*64, Int32FromUint32(flags)) + if r < 0 { + goto error + } + (**(**Tmmsghdr)(__ccgo_up(msgvec + uintptr(i)*64))).Fmsg_len = Uint32FromInt64(r) + goto _1 + _1: + ; + i = i + 1 + } + goto error +error: + ; + if i != 0 { + v2 = i + } else { + v2 = -int32(1) + } + return v2 + return r1 +} + +func Xsendmsg(tls *TLS, fd int32, msg uintptr, flags int32) (r1 Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v msg=%v flags=%v, (%v:)", tls, fd, msg, flags, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(1120) + defer tls.Free(1120) + var c1, v3 uintptr + var r, v12 int64 + var v1 int32 + var v10, v11, v6, v7, v8, v9 Tsyscall_arg_t + var _ /* chbuf at bp+56 */ [66]Tcmsghdr + var _ /* h at bp+0 */ Tmsghdr + _, _, _, _, _, _, _, _, _, _, _ = c1, r, v1, v10, v11, v12, v3, v6, v7, v8, v9 + if msg != 0 { + **(**Tmsghdr)(__ccgo_up(bp)) = **(**Tmsghdr)(__ccgo_up(msg)) + v1 = Int32FromInt32(0) + (**(**Tmsghdr)(__ccgo_up(bp))).F__pad2 = v1 + (**(**Tmsghdr)(__ccgo_up(bp))).F__pad1 = v1 + msg = bp + if (**(**Tmsghdr)(__ccgo_up(bp))).Fmsg_controllen != 0 { + if uint64((**(**Tmsghdr)(__ccgo_up(bp))).Fmsg_controllen) > uint64(1056) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOMEM) + return int64(-int32(1)) + } + Xmemcpy(tls, bp+56, (**(**Tmsghdr)(__ccgo_up(bp))).Fmsg_control, uint64((**(**Tmsghdr)(__ccgo_up(bp))).Fmsg_controllen)) + (**(**Tmsghdr)(__ccgo_up(bp))).Fmsg_control = bp + 56 + if uint64((*Tmsghdr)(unsafe.Pointer(bp)).Fmsg_controllen) >= uint64(16) { + v3 = (*Tmsghdr)(unsafe.Pointer(bp)).Fmsg_control + } else { + v3 = UintptrFromInt32(0) + } + c1 = v3 + for { + if !(c1 != 0) { + break + } + (*Tcmsghdr)(unsafe.Pointer(c1)).F__pad1 = 0 + goto _2 + _2: + ; + if uint64((*Tcmsghdr)(unsafe.Pointer(c1)).Fcmsg_len) < uint64(16) || (uint64((*Tcmsghdr)(unsafe.Pointer(c1)).Fcmsg_len)+uint64(8)-uint64(1))&Uint64FromInt64(^Int64FromUint64(Uint64FromInt64(8)-Uint64FromInt32(1)))+uint64(16) >= Uint64FromInt64(int64((*Tmsghdr)(unsafe.Pointer(bp)).Fmsg_control+uintptr((*Tmsghdr)(unsafe.Pointer(bp)).Fmsg_controllen))-int64(c1)) { + v3 = uintptr(0) + } else { + v3 = c1 + uintptr((uint64((*Tcmsghdr)(unsafe.Pointer(c1)).Fcmsg_len)+Uint64FromInt64(8)-Uint64FromInt32(1))&Uint64FromInt64(^Int64FromUint64(Uint64FromInt64(8)-Uint64FromInt32(1)))) + } + c1 = v3 + } + } + } + v1 = int32(SYS_sendmsg) + _ = int32(__SC_sendmsg) + v6 = int64(fd) + v7 = int64(msg) + v8 = int64(flags) + v9 = int64(Int32FromInt32(0)) + v10 = int64(Int32FromInt32(0)) + v11 = int64(Int32FromInt32(0)) + if int32(1) != 0 { + r = ___syscall_cp(tls, int64(v1), v6, v7, v8, v9, v10, v11) + } else { + r = X__syscall6(tls, int64(v1), v6, v7, v8, v9, v10, v11) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v12 = r + goto _13 + } + v12 = r + goto _13 +_13: + return X__syscall_ret(tls, Uint64FromInt64(v12)) +} + +func Xsendto(tls *TLS, fd int32, buf uintptr, len1 Tsize_t, flags int32, addr uintptr, alen Tsocklen_t) (r1 Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v len1=%v flags=%v addr=%v alen=%v, (%v:)", tls, fd, buf, len1, flags, addr, alen, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v8 int64 + var v1 int32 + var v2, v3, v4, v5, v6, v7 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _ = r, v1, v2, v3, v4, v5, v6, v7, v8 + v1 = int32(SYS_sendto) + _ = int32(__SC_sendto) + v2 = int64(fd) + v3 = int64(buf) + v4 = Int64FromUint64(len1) + v5 = int64(flags) + v6 = int64(addr) + v7 = Int64FromUint32(alen) + if int32(1) != 0 { + r = ___syscall_cp(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _9 + } + v8 = r + goto _9 +_9: + return X__syscall_ret(tls, Uint64FromInt64(v8)) +} + +func Xendservent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } +} + +func Xsetservent(tls *TLS, stayopen int32) { + if __ccgo_strace { + trc("tls=%v stayopen=%v, (%v:)", tls, stayopen, origin(2)) + } +} + +func Xgetservent(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(0) +} + +func Xsetsockopt(tls *TLS, fd int32, level int32, optname int32, optval uintptr, optlen Tsocklen_t) (r2 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v level=%v optname=%v optval=%v optlen=%v, (%v:)", tls, fd, level, optname, optval, optlen, origin(2)) + defer func() { trc("-> %v", r2) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var r, v8 int64 + var r1, v1 int32 + var s Ttime_t + var tv uintptr + var us Tsuseconds_t + var v10 uint64 + var v2, v3, v4, v5, v6, v7 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = r, r1, s, tv, us, v1, v10, v2, v3, v4, v5, v6, v7, v8 + v1 = int32(SYS_setsockopt) + _ = int32(__SC_setsockopt) + v2 = int64(fd) + v3 = int64(level) + v4 = int64(optname) + v5 = int64(optval) + v6 = Int64FromUint32(optlen) + v7 = int64(Int32FromInt32(0)) + if 0 != 0 { + r = ___syscall_cp(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _9 + } + v8 = r + goto _9 +_9: + r1 = int32(v8) + if r1 == -int32(ENOPROTOOPT) { + switch level { + case int32(SOL_SOCKET): + switch optname { + case int32(SO_RCVTIMEO): + fallthrough + case int32(SO_SNDTIMEO): + if true { + break + } + if uint64(optlen) < uint64(16) { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL)))) + } + tv = optval + s = (*Ttimeval)(unsafe.Pointer(tv)).Ftv_sec + us = (*Ttimeval)(unsafe.Pointer(tv)).Ftv_usec + if !!((Uint64FromInt64(s)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EOPNOTSUPP)))) + } + if optname == int32(SO_RCVTIMEO) { + optname = int32(SO_RCVTIMEO_OLD) + } + if optname == int32(SO_SNDTIMEO) { + optname = int32(SO_SNDTIMEO_OLD) + } + if !((Uint64FromInt64(us)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) { + v10 = Uint64FromInt64(us) + } else { + v10 = uint64(0x7fffffff) + (0+Uint64FromInt64(us))>>int32(63) + } + *(*[2]int64)(unsafe.Pointer(bp)) = [2]int64{ + 0: s, + 1: int64(Int32FromUint64(v10)), + } + v1 = int32(SYS_setsockopt) + _ = int32(__SC_setsockopt) + v2 = int64(fd) + v3 = int64(level) + v4 = int64(optname) + v5 = int64(bp) + v6 = Int64FromUint64(Uint64FromInt32(2) * Uint64FromInt64(8)) + v7 = int64(Int32FromInt32(0)) + if 0 != 0 { + r = ___syscall_cp(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _19 + } + v8 = r + goto _19 + _19: + r1 = int32(v8) + case int32(SO_TIMESTAMP): + fallthrough + case int32(SO_TIMESTAMPNS): + if true { + break + } + if optname == int32(SO_TIMESTAMP) { + optname = int32(SO_TIMESTAMP_OLD) + } + if optname == int32(SO_TIMESTAMPNS) { + optname = int32(SO_TIMESTAMPNS_OLD) + } + v1 = int32(SYS_setsockopt) + _ = int32(__SC_setsockopt) + v2 = int64(fd) + v3 = int64(level) + v4 = int64(optname) + v5 = int64(optval) + v6 = Int64FromUint32(optlen) + v7 = int64(Int32FromInt32(0)) + if 0 != 0 { + r = ___syscall_cp(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _28 + } + v8 = r + goto _28 + _28: + r1 = int32(v8) + break + } + } + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r1))) +} + +func Xshutdown(tls *TLS, fd int32, how int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v how=%v, (%v:)", tls, fd, how, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v8 int64 + var v1 int32 + var v2, v3, v4, v5, v6, v7 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _ = r, v1, v2, v3, v4, v5, v6, v7, v8 + v1 = int32(SYS_shutdown) + _ = int32(__SC_shutdown) + v2 = int64(fd) + v3 = int64(how) + v4 = int64(Int32FromInt32(0)) + v5 = int64(Int32FromInt32(0)) + v6 = int64(Int32FromInt32(0)) + v7 = int64(Int32FromInt32(0)) + if 0 != 0 { + r = ___syscall_cp(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _9 + } + v8 = r + goto _9 +_9: + return int32(X__syscall_ret(tls, Uint64FromInt64(v8))) +} + +func Xsockatmark(tls *TLS, s int32) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var _ /* ret at bp+0 */ int32 + if Xioctl(tls, s, int32(SIOCATMARK), VaList(bp+16, bp)) < 0 { + return -int32(1) + } + return **(**int32)(__ccgo_up(bp)) +} + +func Xsocket(tls *TLS, domain int32, type1 int32, protocol int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v domain=%v type1=%v protocol=%v, (%v:)", tls, domain, type1, protocol, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v17, v8 int64 + var s, v1, v10 int32 + var v11, v12, v13, v14, v15, v16, v2, v3, v4, v5, v6, v7 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = r, s, v1, v10, v11, v12, v13, v14, v15, v16, v17, v2, v3, v4, v5, v6, v7, v8 + v1 = int32(SYS_socket) + _ = int32(__SC_socket) + v2 = int64(domain) + v3 = int64(type1) + v4 = int64(protocol) + v5 = int64(Int32FromInt32(0)) + v6 = int64(Int32FromInt32(0)) + v7 = int64(Int32FromInt32(0)) + if 0 != 0 { + r = ___syscall_cp(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _9 + } + v8 = r + goto _9 +_9: + s = int32(v8) + if (s == -int32(EINVAL) || s == -int32(EPROTONOSUPPORT)) && type1&(Int32FromInt32(SOCK_CLOEXEC)|Int32FromInt32(SOCK_NONBLOCK)) != 0 { + v10 = int32(SYS_socket) + _ = int32(__SC_socket) + v11 = int64(domain) + v12 = int64(type1 & ^(Int32FromInt32(SOCK_CLOEXEC) | Int32FromInt32(SOCK_NONBLOCK))) + v13 = int64(protocol) + v14 = int64(Int32FromInt32(0)) + v15 = int64(Int32FromInt32(0)) + v16 = int64(Int32FromInt32(0)) + if 0 != 0 { + r = ___syscall_cp(tls, int64(v10), v11, v12, v13, v14, v15, v16) + } else { + r = X__syscall6(tls, int64(v10), v11, v12, v13, v14, v15, v16) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v17 = r + goto _18 + } + v17 = r + goto _18 + _18: + s = int32(v17) + if s < 0 { + return int32(X__syscall_ret(tls, Uint64FromInt32(s))) + } + if type1&int32(SOCK_CLOEXEC) != 0 { + X__syscall3(tls, int64(SYS_fcntl), int64(s), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + } + if type1&int32(SOCK_NONBLOCK) != 0 { + X__syscall3(tls, int64(SYS_fcntl), int64(s), int64(Int32FromInt32(F_SETFL)), int64(Int32FromInt32(O_NONBLOCK))) + } + } + return int32(X__syscall_ret(tls, Uint64FromInt32(s))) +} + +func Xsocketpair(tls *TLS, domain int32, type1 int32, protocol int32, fd uintptr) (r2 int32) { + if __ccgo_strace { + trc("tls=%v domain=%v type1=%v protocol=%v fd=%v, (%v:)", tls, domain, type1, protocol, fd, origin(2)) + defer func() { trc("-> %v", r2) }() + } + var r, v17, v8 int64 + var r1, v1, v10 int32 + var v11, v12, v13, v14, v15, v16, v2, v3, v4, v5, v6, v7 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = r, r1, v1, v10, v11, v12, v13, v14, v15, v16, v17, v2, v3, v4, v5, v6, v7, v8 + v1 = int32(SYS_socketpair) + _ = int32(__SC_socketpair) + v2 = int64(domain) + v3 = int64(type1) + v4 = int64(protocol) + v5 = int64(fd) + v6 = int64(Int32FromInt32(0)) + v7 = int64(Int32FromInt32(0)) + if 0 != 0 { + r = ___syscall_cp(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } else { + r = X__syscall6(tls, int64(v1), v2, v3, v4, v5, v6, v7) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v8 = r + goto _9 + } + v8 = r + goto _9 +_9: + r1 = int32(X__syscall_ret(tls, Uint64FromInt64(v8))) + if r1 < 0 && (**(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EINVAL) || **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EPROTONOSUPPORT)) && type1&(Int32FromInt32(SOCK_CLOEXEC)|Int32FromInt32(SOCK_NONBLOCK)) != 0 { + v10 = int32(SYS_socketpair) + _ = int32(__SC_socketpair) + v11 = int64(domain) + v12 = int64(type1 & ^(Int32FromInt32(SOCK_CLOEXEC) | Int32FromInt32(SOCK_NONBLOCK))) + v13 = int64(protocol) + v14 = int64(fd) + v15 = int64(Int32FromInt32(0)) + v16 = int64(Int32FromInt32(0)) + if 0 != 0 { + r = ___syscall_cp(tls, int64(v10), v11, v12, v13, v14, v15, v16) + } else { + r = X__syscall6(tls, int64(v10), v11, v12, v13, v14, v15, v16) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v17 = r + goto _18 + } + v17 = r + goto _18 + _18: + r1 = int32(X__syscall_ret(tls, Uint64FromInt64(v17))) + if r1 < 0 { + return r1 + } + if type1&int32(SOCK_CLOEXEC) != 0 { + X__syscall3(tls, int64(SYS_fcntl), int64(**(**int32)(__ccgo_up(fd))), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + X__syscall3(tls, int64(SYS_fcntl), int64(**(**int32)(__ccgo_up(fd + 1*4))), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + } + if type1&int32(SOCK_NONBLOCK) != 0 { + X__syscall3(tls, int64(SYS_fcntl), int64(**(**int32)(__ccgo_up(fd))), int64(Int32FromInt32(F_SETFL)), int64(Int32FromInt32(O_NONBLOCK))) + X__syscall3(tls, int64(SYS_fcntl), int64(**(**int32)(__ccgo_up(fd + 1*4))), int64(Int32FromInt32(F_SETFL)), int64(Int32FromInt32(O_NONBLOCK))) + } + } + return r1 +} + +const SHADOW = "/etc/shadow" + +type Tgroup = struct { + Fgr_name uintptr + Fgr_passwd uintptr + Fgr_gid Tgid_t + Fgr_mem uintptr +} + +type Tspwd = struct { + Fsp_namp uintptr + Fsp_pwdp uintptr + Fsp_lstchg int64 + Fsp_min int64 + Fsp_max int64 + Fsp_warn int64 + Fsp_inact int64 + Fsp_expire int64 + Fsp_flag uint64 +} + +func Xfgetgrent(tls *TLS, f uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var _ /* nmem at bp+16 */ Tsize_t + var _ /* res at bp+0 */ uintptr + var _ /* size at bp+8 */ Tsize_t + **(**Tsize_t)(__ccgo_up(bp + 8)) = uint64(0) + **(**Tsize_t)(__ccgo_up(bp + 16)) = uint64(0) + X__getgrent_a(tls, f, uintptr(unsafe.Pointer(&_gr)), uintptr(unsafe.Pointer(&_line1)), bp+8, uintptr(unsafe.Pointer(&_mem)), bp+16, bp) + return **(**uintptr)(__ccgo_up(bp)) +} + +var _line1 uintptr + +var _mem uintptr + +var _gr Tgroup + +func Xfgetpwent(tls *TLS, f uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* res at bp+8 */ uintptr + var _ /* size at bp+0 */ Tsize_t + **(**Tsize_t)(__ccgo_up(bp)) = uint64(0) + X__getpwent_a(tls, f, uintptr(unsafe.Pointer(&_pw)), uintptr(unsafe.Pointer(&_line2)), bp, bp+8) + return **(**uintptr)(__ccgo_up(bp + 8)) +} + +var _line2 uintptr + +var _pw Tpasswd + +const GETGRBYGID = 3 +const GETGRBYNAME = 2 +const GETINITGR = 15 +const GETPWBYNAME = 0 +const GETPWBYUID = 1 +const GRFOUND = 1 +const GRGID = 4 +const GRMEMCNT = 5 +const GRNAMELEN = 2 +const GRPASSWDLEN = 3 +const GRVERSION = 0 +const GR_LEN = 6 +const INITGRFOUND = 1 +const INITGRNGRPS = 2 +const INITGRVERSION = 0 +const INITGR_LEN = 3 +const NSCDVERSION = 2 +const PWDIRLEN = 7 +const PWFOUND = 1 +const PWGECOSLEN = 6 +const PWGID = 5 +const PWNAMELEN = 2 +const PWPASSWDLEN = 3 +const PWSHELLLEN = 8 +const PWUID = 4 +const PWVERSION = 0 +const PW_LEN = 9 +const REQKEYLEN = 2 +const REQTYPE = 1 +const REQVERSION = 0 +const REQ_LEN = 3 + +func _itoa1(tls *TLS, p uintptr, x Tuint32_t) (r uintptr) { + var v1 uintptr + _ = v1 + // number of digits in a uint32_t + NUL + p = p + uintptr(11) + p = p - 1 + v1 = p + **(**uint8)(__ccgo_up(v1)) = uint8(0) + for cond := true; cond; cond = x != 0 { + p = p - 1 + v1 = p + **(**uint8)(__ccgo_up(v1)) = uint8(uint32('0') + x%uint32(10)) + x = x / uint32(10) + } + return p +} + +func X__getgr_a(tls *TLS, name uintptr, gid Tgid_t, gr uintptr, buf uintptr, size uintptr, mem uintptr, nmem uintptr, res uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v gid=%v gr=%v buf=%v size=%v mem=%v nmem=%v res=%v, (%v:)", tls, name, gid, gr, buf, size, mem, nmem, res, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + var f, key, ptr, tmp, tmp1 uintptr + var grlist_len, len1 Tsize_t + var i, req, v10 Tint32_t + var rv, v1 int32 + var v5, v6 Tuint32_t + var _ /* cs at bp+0 */ int32 + var _ /* gidbuf at bp+28 */ [11]uint8 + var _ /* groupbuf at bp+4 */ [6]Tint32_t + var _ /* name_len at bp+44 */ Tuint32_t + var _ /* swap at bp+40 */ int32 + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = f, grlist_len, i, key, len1, ptr, req, rv, tmp, tmp1, v1, v10, v5, v6 + rv = 0 + **(**uintptr)(__ccgo_up(res)) = uintptr(0) + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp) + f = Xfopen(tls, __ccgo_ts+1274, __ccgo_ts+315) + if !(f != 0) { + rv = **(**int32)(__ccgo_up(X__errno_location(tls))) + goto done + } + for { + v1 = X__getgrent_a(tls, f, gr, buf, size, mem, nmem, res) + rv = v1 + if !(!(v1 != 0) && **(**uintptr)(__ccgo_up(res)) != 0) { + break + } + if name != 0 && !(Xstrcmp(tls, name, (*Tgroup)(unsafe.Pointer(**(**uintptr)(__ccgo_up(res)))).Fgr_name) != 0) || !(name != 0) && (*Tgroup)(unsafe.Pointer(**(**uintptr)(__ccgo_up(res)))).Fgr_gid == gid { + break + } + } + Xfclose(tls, f) + if !(**(**uintptr)(__ccgo_up(res)) != 0) && (rv == 0 || rv == int32(ENOENT) || rv == int32(ENOTDIR)) { + if name != 0 { + v1 = int32(GETGRBYNAME) + } else { + v1 = int32(GETGRBYGID) + } + req = v1 + **(**[6]Tint32_t)(__ccgo_up(bp + 4)) = [6]Tint32_t{} + len1 = uint64(0) + grlist_len = uint64(0) + **(**[11]uint8)(__ccgo_up(bp + 28)) = [11]uint8{} + **(**int32)(__ccgo_up(bp + 40)) = 0 + if name != 0 { + key = name + } else { + if gid < uint32(0) || gid > uint32(0xffffffff) { + rv = 0 + goto done + } + key = _itoa1(tls, bp+28, gid) + } + f = X__nscd_query(tls, req, key, bp+4, uint64(24), bp+40) + if !(f != 0) { + rv = **(**int32)(__ccgo_up(X__errno_location(tls))) + goto done + } + if !((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRFOUND)] != 0) { + rv = 0 + goto cleanup_f + } + if !((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRNAMELEN)] != 0) || !((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRPASSWDLEN)] != 0) { + rv = int32(EIO) + goto cleanup_f + } + if Uint64FromInt32((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRNAMELEN)]) > uint64(0xffffffffffffffff)-Uint64FromInt32((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRPASSWDLEN)]) { + rv = int32(ENOMEM) + goto cleanup_f + } + len1 = Uint64FromInt32((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRNAMELEN)] + (**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRPASSWDLEN)]) + i = 0 + for { + if !(i < (**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRMEMCNT)]) { + break + } + if Xfread(tls, bp+44, uint64(4), uint64(1), f) < uint64(1) { + if Xferror(tls, f) != 0 { + v1 = **(**int32)(__ccgo_up(X__errno_location(tls))) + } else { + v1 = int32(EIO) + } + rv = v1 + goto cleanup_f + } + if **(**int32)(__ccgo_up(bp + 40)) != 0 { + v5 = **(**Tuint32_t)(__ccgo_up(bp + 44)) + v6 = v5>>int32(24) | v5>>int32(8)&uint32(0xff00) | v5< uint64(0xffffffffffffffff)-grlist_len || uint64(**(**Tuint32_t)(__ccgo_up(bp + 44))) > uint64(0xffffffffffffffff)-len1 { + rv = int32(ENOMEM) + goto cleanup_f + } + len1 = len1 + uint64(**(**Tuint32_t)(__ccgo_up(bp + 44))) + grlist_len = grlist_len + uint64(**(**Tuint32_t)(__ccgo_up(bp + 44))) + goto _3 + _3: + ; + i = i + 1 + } + if len1 > **(**Tsize_t)(__ccgo_up(size)) || !(**(**uintptr)(__ccgo_up(buf)) != 0) { + tmp = Xrealloc(tls, **(**uintptr)(__ccgo_up(buf)), len1) + if !(tmp != 0) { + rv = **(**int32)(__ccgo_up(X__errno_location(tls))) + goto cleanup_f + } + **(**uintptr)(__ccgo_up(buf)) = tmp + **(**Tsize_t)(__ccgo_up(size)) = len1 + } + if !(Xfread(tls, **(**uintptr)(__ccgo_up(buf)), len1, uint64(1), f) != 0) { + if Xferror(tls, f) != 0 { + v1 = **(**int32)(__ccgo_up(X__errno_location(tls))) + } else { + v1 = int32(EIO) + } + rv = v1 + goto cleanup_f + } + if Uint64FromInt32((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRMEMCNT)]+int32(1)) > **(**Tsize_t)(__ccgo_up(nmem)) { + if Uint64FromInt32((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRMEMCNT)]+int32(1)) > Uint64FromUint64(0xffffffffffffffff)/Uint64FromInt64(8) { + rv = int32(ENOMEM) + goto cleanup_f + } + tmp1 = Xrealloc(tls, **(**uintptr)(__ccgo_up(mem)), Uint64FromInt32((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRMEMCNT)]+Int32FromInt32(1))*uint64(8)) + if !(tmp1 != 0) { + rv = **(**int32)(__ccgo_up(X__errno_location(tls))) + goto cleanup_f + } + **(**uintptr)(__ccgo_up(mem)) = tmp1 + **(**Tsize_t)(__ccgo_up(nmem)) = Uint64FromInt32((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRMEMCNT)] + int32(1)) + } + if (**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRMEMCNT)] != 0 { + **(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(mem)))) = **(**uintptr)(__ccgo_up(buf)) + uintptr((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRNAMELEN)]) + uintptr((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRPASSWDLEN)]) + ptr = **(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(mem)))) + i = Int32FromInt32(0) + for { + if !(ptr != **(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(mem))))+uintptr(grlist_len)) { + break + } + if !(**(**uint8)(__ccgo_up(ptr)) != 0) { + i = i + 1 + v10 = i + **(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(mem)) + uintptr(v10)*8)) = ptr + uintptr(1) + } + goto _9 + _9: + ; + ptr = ptr + 1 + } + **(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(mem)) + uintptr(i)*8)) = uintptr(0) + if i != (**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRMEMCNT)] { + rv = int32(EIO) + goto cleanup_f + } + } else { + **(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(mem)))) = uintptr(0) + } + (*Tgroup)(unsafe.Pointer(gr)).Fgr_name = **(**uintptr)(__ccgo_up(buf)) + (*Tgroup)(unsafe.Pointer(gr)).Fgr_passwd = (*Tgroup)(unsafe.Pointer(gr)).Fgr_name + uintptr((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRNAMELEN)]) + (*Tgroup)(unsafe.Pointer(gr)).Fgr_gid = Uint32FromInt32((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRGID)]) + (*Tgroup)(unsafe.Pointer(gr)).Fgr_mem = **(**uintptr)(__ccgo_up(mem)) + if **(**uint8)(__ccgo_up((*Tgroup)(unsafe.Pointer(gr)).Fgr_passwd + uintptr(-Int32FromInt32(1)))) != 0 || **(**uint8)(__ccgo_up((*Tgroup)(unsafe.Pointer(gr)).Fgr_passwd + uintptr((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRPASSWDLEN)]-int32(1)))) != 0 { + rv = int32(EIO) + goto cleanup_f + } + if name != 0 && Xstrcmp(tls, name, (*Tgroup)(unsafe.Pointer(gr)).Fgr_name) != 0 || !(name != 0) && gid != (*Tgroup)(unsafe.Pointer(gr)).Fgr_gid { + rv = int32(EIO) + goto cleanup_f + } + **(**uintptr)(__ccgo_up(res)) = gr + goto cleanup_f + cleanup_f: + ; + Xfclose(tls, f) + goto done + } + goto done +done: + ; + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp)), uintptr(0)) + if rv != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = rv + } + return rv +} + +func _getgr_r(tls *TLS, name uintptr, gid Tgid_t, gr uintptr, buf uintptr, size Tsize_t, res uintptr) (r int32) { + bp := tls.Alloc(48) + defer tls.Free(48) + var i Tsize_t + var rv int32 + var _ /* cs at bp+32 */ int32 + var _ /* len at bp+8 */ Tsize_t + var _ /* line at bp+0 */ uintptr + var _ /* mem at bp+16 */ uintptr + var _ /* nmem at bp+24 */ Tsize_t + _, _ = i, rv + **(**uintptr)(__ccgo_up(bp)) = uintptr(0) + **(**Tsize_t)(__ccgo_up(bp + 8)) = uint64(0) + **(**uintptr)(__ccgo_up(bp + 16)) = uintptr(0) + **(**Tsize_t)(__ccgo_up(bp + 24)) = uint64(0) + rv = 0 + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp+32) + rv = X__getgr_a(tls, name, gid, gr, bp, bp+8, bp+16, bp+24, res) + if **(**uintptr)(__ccgo_up(res)) != 0 && size < **(**Tsize_t)(__ccgo_up(bp + 8))+(**(**Tsize_t)(__ccgo_up(bp + 24))+uint64(1))*uint64(8)+uint64(32) { + **(**uintptr)(__ccgo_up(res)) = uintptr(0) + rv = int32(ERANGE) + } + if **(**uintptr)(__ccgo_up(res)) != 0 { + buf = buf + uintptr((uint64(16)-uint64(buf))%uint64(16)) + (*Tgroup)(unsafe.Pointer(gr)).Fgr_mem = buf + buf = buf + uintptr((**(**Tsize_t)(__ccgo_up(bp + 24))+uint64(1))*uint64(8)) + Xmemcpy(tls, buf, **(**uintptr)(__ccgo_up(bp)), **(**Tsize_t)(__ccgo_up(bp + 8))) + (*Tgroup)(unsafe.Pointer(gr)).Fgr_name = uintptr(int64((*Tgroup)(unsafe.Pointer(gr)).Fgr_name)-int64(**(**uintptr)(__ccgo_up(bp)))) + buf + (*Tgroup)(unsafe.Pointer(gr)).Fgr_passwd = uintptr(int64((*Tgroup)(unsafe.Pointer(gr)).Fgr_passwd)-int64(**(**uintptr)(__ccgo_up(bp)))) + buf + i = uint64(0) + for { + if !(**(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 16)) + uintptr(i)*8)) != 0) { + break + } + **(**uintptr)(__ccgo_up((*Tgroup)(unsafe.Pointer(gr)).Fgr_mem + uintptr(i)*8)) = uintptr(int64(**(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 16)) + uintptr(i)*8)))-int64(**(**uintptr)(__ccgo_up(bp)))) + buf + goto _1 + _1: + ; + i = i + 1 + } + **(**uintptr)(__ccgo_up((*Tgroup)(unsafe.Pointer(gr)).Fgr_mem + uintptr(i)*8)) = uintptr(0) + } + Xfree(tls, **(**uintptr)(__ccgo_up(bp + 16))) + Xfree(tls, **(**uintptr)(__ccgo_up(bp))) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 32)), uintptr(0)) + if rv != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = rv + } + return rv +} + +func Xgetgrnam_r(tls *TLS, name uintptr, gr uintptr, buf uintptr, size Tsize_t, res uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v gr=%v buf=%v size=%v res=%v, (%v:)", tls, name, gr, buf, size, res, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _getgr_r(tls, name, uint32(0), gr, buf, size, res) +} + +func Xgetgrgid_r(tls *TLS, gid Tgid_t, gr uintptr, buf uintptr, size Tsize_t, res uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v gid=%v gr=%v buf=%v size=%v res=%v, (%v:)", tls, gid, gr, buf, size, res, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _getgr_r(tls, uintptr(0), gid, gr, buf, size, res) +} + +var _f1 uintptr +var _line3 uintptr +var _mem1 uintptr +var _gr1 Tgroup + +func Xsetgrent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + if _f1 != 0 { + Xfclose(tls, _f1) + } + _f1 = uintptr(0) +} + +func Xgetgrent(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var _ /* nmem at bp+16 */ Tsize_t + var _ /* res at bp+0 */ uintptr + var _ /* size at bp+8 */ Tsize_t + **(**Tsize_t)(__ccgo_up(bp + 8)) = uint64(0) + **(**Tsize_t)(__ccgo_up(bp + 16)) = uint64(0) + if !(_f1 != 0) { + _f1 = Xfopen(tls, __ccgo_ts+1274, __ccgo_ts+315) + } + if !(_f1 != 0) { + return uintptr(0) + } + X__getgrent_a(tls, _f1, uintptr(unsafe.Pointer(&_gr1)), uintptr(unsafe.Pointer(&_line3)), bp+8, uintptr(unsafe.Pointer(&_mem1)), bp+16, bp) + return **(**uintptr)(__ccgo_up(bp)) +} + +func Xgetgrgid(tls *TLS, gid Tgid_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v gid=%v, (%v:)", tls, gid, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var _ /* nmem at bp+16 */ Tsize_t + var _ /* res at bp+0 */ uintptr + var _ /* size at bp+8 */ Tsize_t + **(**Tsize_t)(__ccgo_up(bp + 8)) = uint64(0) + **(**Tsize_t)(__ccgo_up(bp + 16)) = uint64(0) + X__getgr_a(tls, uintptr(0), gid, uintptr(unsafe.Pointer(&_gr1)), uintptr(unsafe.Pointer(&_line3)), bp+8, uintptr(unsafe.Pointer(&_mem1)), bp+16, bp) + return **(**uintptr)(__ccgo_up(bp)) +} + +func Xgetgrnam(tls *TLS, name uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var _ /* nmem at bp+16 */ Tsize_t + var _ /* res at bp+0 */ uintptr + var _ /* size at bp+8 */ Tsize_t + **(**Tsize_t)(__ccgo_up(bp + 8)) = uint64(0) + **(**Tsize_t)(__ccgo_up(bp + 16)) = uint64(0) + X__getgr_a(tls, name, uint32(0), uintptr(unsafe.Pointer(&_gr1)), uintptr(unsafe.Pointer(&_line3)), bp+8, uintptr(unsafe.Pointer(&_mem1)), bp+16, bp) + return **(**uintptr)(__ccgo_up(bp)) +} + +func Xendgrent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + Xsetgrent(tls) +} + +func _atou(tls *TLS, s uintptr) (r uint32) { + var x uint32 + _ = x + x = uint32(0) + for { + if !(Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(s)))))-int32('0')) < uint32(10)) { + break + } + x = uint32(10)*x + Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(s)))))-Int32FromUint8('0')) + goto _1 + _1: + ; + **(**uintptr)(__ccgo_up(s)) = **(**uintptr)(__ccgo_up(s)) + 1 + } + return x +} + +func X__getgrent_a(tls *TLS, f uintptr, gr uintptr, line uintptr, size uintptr, mem uintptr, nmem uintptr, res uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v gr=%v line=%v size=%v mem=%v nmem=%v res=%v, (%v:)", tls, f, gr, line, size, mem, nmem, res, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var i, v13 Tsize_t + var l, v2 Tssize_t + var mems, v4 uintptr + var rv, v3 int32 + var _ /* cs at bp+8 */ int32 + var _ /* s at bp+0 */ uintptr + _, _, _, _, _, _, _, _ = i, l, mems, rv, v13, v2, v3, v4 + rv = 0 + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp+8) + for { + v2 = Xgetline(tls, line, size, f) + l = v2 + if v2 < 0 { + if Xferror(tls, f) != 0 { + v3 = **(**int32)(__ccgo_up(X__errno_location(tls))) + } else { + v3 = 0 + } + rv = v3 + Xfree(tls, **(**uintptr)(__ccgo_up(line))) + **(**uintptr)(__ccgo_up(line)) = uintptr(0) + gr = uintptr(0) + goto end + } + **(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(line)) + uintptr(l-int64(1)))) = uint8(0) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(line)) + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + (*Tgroup)(unsafe.Pointer(gr)).Fgr_name = v4 + v4 = Xstrchr(tls, **(**uintptr)(__ccgo_up(bp)), int32(':')) + **(**uintptr)(__ccgo_up(bp)) = v4 + if !(v4 != 0) { + goto _1 + } + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + **(**uint8)(__ccgo_up(v4)) = uint8(0) + (*Tgroup)(unsafe.Pointer(gr)).Fgr_passwd = **(**uintptr)(__ccgo_up(bp)) + v4 = Xstrchr(tls, **(**uintptr)(__ccgo_up(bp)), int32(':')) + **(**uintptr)(__ccgo_up(bp)) = v4 + if !(v4 != 0) { + goto _1 + } + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + **(**uint8)(__ccgo_up(v4)) = uint8(0) + (*Tgroup)(unsafe.Pointer(gr)).Fgr_gid = _atou(tls, bp) + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp))))) != int32(':') { + goto _1 + } + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + **(**uint8)(__ccgo_up(v4)) = uint8(0) + mems = **(**uintptr)(__ccgo_up(bp)) + break + goto _1 + _1: + } + **(**Tsize_t)(__ccgo_up(nmem)) = BoolUint64(!!(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)))) != 0)) + for { + if !(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)))) != 0) { + break + } + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp))))) == int32(',') { + **(**Tsize_t)(__ccgo_up(nmem)) = **(**Tsize_t)(__ccgo_up(nmem)) + 1 + } + goto _10 + _10: + ; + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + } + Xfree(tls, **(**uintptr)(__ccgo_up(mem))) + **(**uintptr)(__ccgo_up(mem)) = Xcalloc(tls, uint64(8), **(**Tsize_t)(__ccgo_up(nmem))+uint64(1)) + if !(**(**uintptr)(__ccgo_up(mem)) != 0) { + rv = **(**int32)(__ccgo_up(X__errno_location(tls))) + Xfree(tls, **(**uintptr)(__ccgo_up(line))) + **(**uintptr)(__ccgo_up(line)) = uintptr(0) + gr = uintptr(0) + goto end + } + if **(**uint8)(__ccgo_up(mems)) != 0 { + **(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(mem)))) = mems + **(**uintptr)(__ccgo_up(bp)) = mems + i = Uint64FromInt32(0) + for { + if !(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)))) != 0) { + break + } + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp))))) == int32(',') { + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + **(**uint8)(__ccgo_up(v4)) = uint8(0) + i = i + 1 + v13 = i + **(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(mem)) + uintptr(v13)*8)) = **(**uintptr)(__ccgo_up(bp)) + } + goto _11 + _11: + ; + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + } + i = i + 1 + v13 = i + **(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(mem)) + uintptr(v13)*8)) = uintptr(0) + } else { + **(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(mem)))) = uintptr(0) + } + (*Tgroup)(unsafe.Pointer(gr)).Fgr_mem = **(**uintptr)(__ccgo_up(mem)) + goto end +end: + ; + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 8)), uintptr(0)) + **(**uintptr)(__ccgo_up(res)) = gr + if rv != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = rv + } + return rv +} + +func Xgetgrouplist(tls *TLS, user uintptr, gid Tgid_t, groups uintptr, ngroups uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v user=%v gid=%v groups=%v ngroups=%v, (%v:)", tls, user, gid, groups, ngroups, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(96) + defer tls.Free(96) + var f, nscdbuf, v1 uintptr + var i, n, v9 Tssize_t + var nbytes Tsize_t + var nlim, ret, rv, v6 int32 + var v14 int64 + var v3, v4 Tuint32_t + var _ /* buf at bp+56 */ uintptr + var _ /* gr at bp+0 */ Tgroup + var _ /* mem at bp+64 */ uintptr + var _ /* nmem at bp+72 */ Tsize_t + var _ /* res at bp+32 */ uintptr + var _ /* resp at bp+44 */ [3]Tint32_t + var _ /* size at bp+80 */ Tsize_t + var _ /* swap at bp+40 */ int32 + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = f, i, n, nbytes, nlim, nscdbuf, ret, rv, v1, v14, v3, v4, v6, v9 + ret = -int32(1) + n = int64(1) + **(**int32)(__ccgo_up(bp + 40)) = 0 + nscdbuf = uintptr(0) + **(**uintptr)(__ccgo_up(bp + 56)) = uintptr(0) + **(**uintptr)(__ccgo_up(bp + 64)) = uintptr(0) + **(**Tsize_t)(__ccgo_up(bp + 72)) = uint64(0) + nlim = **(**int32)(__ccgo_up(ngroups)) + if nlim >= int32(1) { + v1 = groups + groups += 4 + **(**Tgid_t)(__ccgo_up(v1)) = gid + } + f = X__nscd_query(tls, int32(GETINITGR), user, bp+44, uint64(12), bp+40) + if !(f != 0) { + goto cleanup + } + if (**(**[3]Tint32_t)(__ccgo_up(bp + 44)))[int32(INITGRFOUND)] != 0 { + nscdbuf = Xcalloc(tls, Uint64FromInt32((**(**[3]Tint32_t)(__ccgo_up(bp + 44)))[int32(INITGRNGRPS)]), uint64(4)) + if !(nscdbuf != 0) { + goto cleanup + } + nbytes = uint64(4) * Uint64FromInt32((**(**[3]Tint32_t)(__ccgo_up(bp + 44)))[int32(INITGRNGRPS)]) + if nbytes != 0 && !(Xfread(tls, nscdbuf, nbytes, uint64(1), f) != 0) { + if !(Xferror(tls, f) != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EIO) + } + goto cleanup + } + if **(**int32)(__ccgo_up(bp + 40)) != 0 { + i = 0 + for { + if !(i < int64((**(**[3]Tint32_t)(__ccgo_up(bp + 44)))[int32(INITGRNGRPS)])) { + break + } + v3 = **(**Tuint32_t)(__ccgo_up(nscdbuf + uintptr(i)*4)) + v4 = v3>>int32(24) | v3>>int32(8)&uint32(0xff00) | v3< int64(nlim) { + v14 = int64(-int32(1)) + } else { + v14 = n + } + ret = int32(v14) + **(**int32)(__ccgo_up(ngroups)) = int32(n) + goto cleanup +cleanup: + ; + if f != 0 { + Xfclose(tls, f) + } + Xfree(tls, nscdbuf) + Xfree(tls, **(**uintptr)(__ccgo_up(bp + 56))) + Xfree(tls, **(**uintptr)(__ccgo_up(bp + 64))) + return ret +} + +func _itoa2(tls *TLS, p uintptr, x Tuint32_t) (r uintptr) { + var v1 uintptr + _ = v1 + // number of digits in a uint32_t + NUL + p = p + uintptr(11) + p = p - 1 + v1 = p + **(**uint8)(__ccgo_up(v1)) = uint8(0) + for cond := true; cond; cond = x != 0 { + p = p - 1 + v1 = p + **(**uint8)(__ccgo_up(v1)) = uint8(uint32('0') + x%uint32(10)) + x = x / uint32(10) + } + return p +} + +func X__getpw_a(tls *TLS, name uintptr, uid Tuid_t, pw uintptr, buf uintptr, size uintptr, res uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v uid=%v pw=%v buf=%v size=%v res=%v, (%v:)", tls, name, uid, pw, buf, size, res, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var f, key, tmp uintptr + var len1 Tsize_t + var req Tint32_t + var rv, v1 int32 + var _ /* cs at bp+4 */ int32 + var _ /* passwdbuf at bp+8 */ [9]Tint32_t + var _ /* uidbuf at bp+44 */ [11]uint8 + _, _, _, _, _, _, _ = f, key, len1, req, rv, tmp, v1 + rv = 0 + **(**uintptr)(__ccgo_up(res)) = uintptr(0) + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp+4) + f = Xfopen(tls, __ccgo_ts+1285, __ccgo_ts+315) + if !(f != 0) { + rv = **(**int32)(__ccgo_up(X__errno_location(tls))) + goto done + } + for { + v1 = X__getpwent_a(tls, f, pw, buf, size, res) + rv = v1 + if !(!(v1 != 0) && **(**uintptr)(__ccgo_up(res)) != 0) { + break + } + if name != 0 && !(Xstrcmp(tls, name, (*Tpasswd)(unsafe.Pointer(**(**uintptr)(__ccgo_up(res)))).Fpw_name) != 0) || !(name != 0) && (*Tpasswd)(unsafe.Pointer(**(**uintptr)(__ccgo_up(res)))).Fpw_uid == uid { + break + } + } + Xfclose(tls, f) + if !(**(**uintptr)(__ccgo_up(res)) != 0) && (rv == 0 || rv == int32(ENOENT) || rv == int32(ENOTDIR)) { + if name != 0 { + v1 = GETPWBYNAME + } else { + v1 = int32(GETPWBYUID) + } + req = v1 + **(**[9]Tint32_t)(__ccgo_up(bp + 8)) = [9]Tint32_t{} + len1 = uint64(0) + **(**[11]uint8)(__ccgo_up(bp + 44)) = [11]uint8{} + if name != 0 { + key = name + } else { + /* uid outside of this range can't be queried with the + * nscd interface, but might happen if uid_t ever + * happens to be a larger type (this is not true as of + * now) + */ + if uid < uint32(0) || uid > uint32(0xffffffff) { + rv = 0 + goto done + } + key = _itoa2(tls, bp+44, uid) + } + *(*[1]int32)(unsafe.Pointer(bp)) = [1]int32{} + f = X__nscd_query(tls, req, key, bp+8, uint64(36), bp) + if !(f != 0) { + rv = **(**int32)(__ccgo_up(X__errno_location(tls))) + goto done + } + if !((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWFOUND)] != 0) { + rv = 0 + goto cleanup_f + } + /* A zero length response from nscd is invalid. We ignore + * invalid responses and just report an error, rather than + * trying to do something with them. + */ + if !((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWNAMELEN)] != 0) || !((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWPASSWDLEN)] != 0) || !((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWGECOSLEN)] != 0) || !((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWDIRLEN)] != 0) || !((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWSHELLLEN)] != 0) { + rv = int32(EIO) + goto cleanup_f + } + if Uint64FromInt32((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWNAMELEN)]|(**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWPASSWDLEN)]|(**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWGECOSLEN)]|(**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWDIRLEN)]|(**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWSHELLLEN)]) >= Uint64FromUint64(0xffffffffffffffff)/Uint64FromInt32(8) { + rv = int32(ENOMEM) + goto cleanup_f + } + len1 = Uint64FromInt32((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWNAMELEN)] + (**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWPASSWDLEN)] + (**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWGECOSLEN)] + (**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWDIRLEN)] + (**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWSHELLLEN)]) + if len1 > **(**Tsize_t)(__ccgo_up(size)) || !(**(**uintptr)(__ccgo_up(buf)) != 0) { + tmp = Xrealloc(tls, **(**uintptr)(__ccgo_up(buf)), len1) + if !(tmp != 0) { + rv = **(**int32)(__ccgo_up(X__errno_location(tls))) + goto cleanup_f + } + **(**uintptr)(__ccgo_up(buf)) = tmp + **(**Tsize_t)(__ccgo_up(size)) = len1 + } + if !(Xfread(tls, **(**uintptr)(__ccgo_up(buf)), len1, uint64(1), f) != 0) { + if Xferror(tls, f) != 0 { + v1 = **(**int32)(__ccgo_up(X__errno_location(tls))) + } else { + v1 = int32(EIO) + } + rv = v1 + goto cleanup_f + } + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_name = **(**uintptr)(__ccgo_up(buf)) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_passwd = (*Tpasswd)(unsafe.Pointer(pw)).Fpw_name + uintptr((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWNAMELEN)]) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_gecos = (*Tpasswd)(unsafe.Pointer(pw)).Fpw_passwd + uintptr((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWPASSWDLEN)]) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_dir = (*Tpasswd)(unsafe.Pointer(pw)).Fpw_gecos + uintptr((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWGECOSLEN)]) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_shell = (*Tpasswd)(unsafe.Pointer(pw)).Fpw_dir + uintptr((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWDIRLEN)]) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_uid = Uint32FromInt32((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWUID)]) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_gid = Uint32FromInt32((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWGID)]) + /* Don't assume that nscd made sure to null terminate strings. + * It's supposed to, but malicious nscd should be ignored + * rather than causing a crash. + */ + if **(**uint8)(__ccgo_up((*Tpasswd)(unsafe.Pointer(pw)).Fpw_passwd + uintptr(-Int32FromInt32(1)))) != 0 || **(**uint8)(__ccgo_up((*Tpasswd)(unsafe.Pointer(pw)).Fpw_gecos + uintptr(-Int32FromInt32(1)))) != 0 || **(**uint8)(__ccgo_up((*Tpasswd)(unsafe.Pointer(pw)).Fpw_dir + uintptr(-Int32FromInt32(1)))) != 0 || **(**uint8)(__ccgo_up((*Tpasswd)(unsafe.Pointer(pw)).Fpw_shell + uintptr((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWSHELLLEN)]-int32(1)))) != 0 { + rv = int32(EIO) + goto cleanup_f + } + if name != 0 && Xstrcmp(tls, name, (*Tpasswd)(unsafe.Pointer(pw)).Fpw_name) != 0 || !(name != 0) && uid != (*Tpasswd)(unsafe.Pointer(pw)).Fpw_uid { + rv = int32(EIO) + goto cleanup_f + } + **(**uintptr)(__ccgo_up(res)) = pw + goto cleanup_f + cleanup_f: + ; + Xfclose(tls, f) + goto done + } + goto done +done: + ; + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 4)), uintptr(0)) + if rv != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = rv + } + return rv +} + +func _getpw_r(tls *TLS, name uintptr, uid Tuid_t, pw uintptr, buf uintptr, size Tsize_t, res uintptr) (r int32) { + bp := tls.Alloc(32) + defer tls.Free(32) + var rv int32 + var _ /* cs at bp+16 */ int32 + var _ /* len at bp+8 */ Tsize_t + var _ /* line at bp+0 */ uintptr + _ = rv + **(**uintptr)(__ccgo_up(bp)) = uintptr(0) + **(**Tsize_t)(__ccgo_up(bp + 8)) = uint64(0) + rv = 0 + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp+16) + rv = X__getpw_a(tls, name, uid, pw, bp, bp+8, res) + if **(**uintptr)(__ccgo_up(res)) != 0 && size < **(**Tsize_t)(__ccgo_up(bp + 8)) { + **(**uintptr)(__ccgo_up(res)) = uintptr(0) + rv = int32(ERANGE) + } + if **(**uintptr)(__ccgo_up(res)) != 0 { + Xmemcpy(tls, buf, **(**uintptr)(__ccgo_up(bp)), **(**Tsize_t)(__ccgo_up(bp + 8))) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_name = uintptr(int64((*Tpasswd)(unsafe.Pointer(pw)).Fpw_name)-int64(**(**uintptr)(__ccgo_up(bp)))) + buf + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_passwd = uintptr(int64((*Tpasswd)(unsafe.Pointer(pw)).Fpw_passwd)-int64(**(**uintptr)(__ccgo_up(bp)))) + buf + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_gecos = uintptr(int64((*Tpasswd)(unsafe.Pointer(pw)).Fpw_gecos)-int64(**(**uintptr)(__ccgo_up(bp)))) + buf + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_dir = uintptr(int64((*Tpasswd)(unsafe.Pointer(pw)).Fpw_dir)-int64(**(**uintptr)(__ccgo_up(bp)))) + buf + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_shell = uintptr(int64((*Tpasswd)(unsafe.Pointer(pw)).Fpw_shell)-int64(**(**uintptr)(__ccgo_up(bp)))) + buf + } + Xfree(tls, **(**uintptr)(__ccgo_up(bp))) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 16)), uintptr(0)) + if rv != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = rv + } + return rv +} + +func Xgetpwnam_r(tls *TLS, name uintptr, pw uintptr, buf uintptr, size Tsize_t, res uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v pw=%v buf=%v size=%v res=%v, (%v:)", tls, name, pw, buf, size, res, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _getpw_r(tls, name, uint32(0), pw, buf, size, res) +} + +func Xgetpwuid_r(tls *TLS, uid Tuid_t, pw uintptr, buf uintptr, size Tsize_t, res uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v uid=%v pw=%v buf=%v size=%v res=%v, (%v:)", tls, uid, pw, buf, size, res, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _getpw_r(tls, uintptr(0), uid, pw, buf, size, res) +} + +var _f2 uintptr +var _line4 uintptr +var _pw1 Tpasswd +var _size Tsize_t + +func Xsetpwent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + if _f2 != 0 { + Xfclose(tls, _f2) + } + _f2 = uintptr(0) +} + +func Xgetpwent(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* res at bp+0 */ uintptr + if !(_f2 != 0) { + _f2 = Xfopen(tls, __ccgo_ts+1285, __ccgo_ts+315) + } + if !(_f2 != 0) { + return uintptr(0) + } + X__getpwent_a(tls, _f2, uintptr(unsafe.Pointer(&_pw1)), uintptr(unsafe.Pointer(&_line4)), uintptr(unsafe.Pointer(&_size)), bp) + return **(**uintptr)(__ccgo_up(bp)) +} + +func Xgetpwuid(tls *TLS, uid Tuid_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v uid=%v, (%v:)", tls, uid, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* res at bp+0 */ uintptr + X__getpw_a(tls, uintptr(0), uid, uintptr(unsafe.Pointer(&_pw1)), uintptr(unsafe.Pointer(&_line4)), uintptr(unsafe.Pointer(&_size)), bp) + return **(**uintptr)(__ccgo_up(bp)) +} + +func Xgetpwnam(tls *TLS, name uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* res at bp+0 */ uintptr + X__getpw_a(tls, name, uint32(0), uintptr(unsafe.Pointer(&_pw1)), uintptr(unsafe.Pointer(&_line4)), uintptr(unsafe.Pointer(&_size)), bp) + return **(**uintptr)(__ccgo_up(bp)) +} + +func Xendpwent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + Xsetpwent(tls) +} + +func _atou1(tls *TLS, s uintptr) (r uint32) { + var x uint32 + _ = x + x = uint32(0) + for { + if !(Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(s)))))-int32('0')) < uint32(10)) { + break + } + x = uint32(10)*x + Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(s)))))-Int32FromUint8('0')) + goto _1 + _1: + ; + **(**uintptr)(__ccgo_up(s)) = **(**uintptr)(__ccgo_up(s)) + 1 + } + return x +} + +func X__getpwent_a(tls *TLS, f uintptr, pw uintptr, line uintptr, size uintptr, res uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v pw=%v line=%v size=%v res=%v, (%v:)", tls, f, pw, line, size, res, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var l, v2 Tssize_t + var rv, v3 int32 + var v4 uintptr + var _ /* cs at bp+8 */ int32 + var _ /* s at bp+0 */ uintptr + _, _, _, _, _ = l, rv, v2, v3, v4 + rv = 0 + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp+8) + for { + v2 = Xgetline(tls, line, size, f) + l = v2 + if v2 < 0 { + if Xferror(tls, f) != 0 { + v3 = **(**int32)(__ccgo_up(X__errno_location(tls))) + } else { + v3 = 0 + } + rv = v3 + Xfree(tls, **(**uintptr)(__ccgo_up(line))) + **(**uintptr)(__ccgo_up(line)) = uintptr(0) + pw = uintptr(0) + break + } + **(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(line)) + uintptr(l-int64(1)))) = uint8(0) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(line)) + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_name = v4 + v4 = Xstrchr(tls, **(**uintptr)(__ccgo_up(bp)), int32(':')) + **(**uintptr)(__ccgo_up(bp)) = v4 + if !(v4 != 0) { + goto _1 + } + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + **(**uint8)(__ccgo_up(v4)) = uint8(0) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_passwd = **(**uintptr)(__ccgo_up(bp)) + v4 = Xstrchr(tls, **(**uintptr)(__ccgo_up(bp)), int32(':')) + **(**uintptr)(__ccgo_up(bp)) = v4 + if !(v4 != 0) { + goto _1 + } + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + **(**uint8)(__ccgo_up(v4)) = uint8(0) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_uid = _atou1(tls, bp) + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp))))) != int32(':') { + goto _1 + } + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + **(**uint8)(__ccgo_up(v4)) = uint8(0) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_gid = _atou1(tls, bp) + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp))))) != int32(':') { + goto _1 + } + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + **(**uint8)(__ccgo_up(v4)) = uint8(0) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_gecos = **(**uintptr)(__ccgo_up(bp)) + v4 = Xstrchr(tls, **(**uintptr)(__ccgo_up(bp)), int32(':')) + **(**uintptr)(__ccgo_up(bp)) = v4 + if !(v4 != 0) { + goto _1 + } + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + **(**uint8)(__ccgo_up(v4)) = uint8(0) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_dir = **(**uintptr)(__ccgo_up(bp)) + v4 = Xstrchr(tls, **(**uintptr)(__ccgo_up(bp)), int32(':')) + **(**uintptr)(__ccgo_up(bp)) = v4 + if !(v4 != 0) { + goto _1 + } + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + **(**uint8)(__ccgo_up(v4)) = uint8(0) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_shell = **(**uintptr)(__ccgo_up(bp)) + break + goto _1 + _1: + } + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 8)), uintptr(0)) + **(**uintptr)(__ccgo_up(res)) = pw + if rv != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = rv + } + return rv +} + +func Xsetspent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } +} + +func Xendspent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } +} + +func Xgetspent(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(0) +} + +func Xlckpwdf(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return 0 +} + +func Xulckpwdf(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return 0 +} + +var _addr = struct { + Fsun_family int16 + Fsun_path [21]uint8 +}{ + Fsun_family: int16(PF_LOCAL), + Fsun_path: [21]uint8{'/', 'v', 'a', 'r', '/', 'r', 'u', 'n', '/', 'n', 's', 'c', 'd', '/', 's', 'o', 'c', 'k', 'e', 't'}, +} + +func X__nscd_query(tls *TLS, req Tint32_t, key uintptr, buf uintptr, len1 Tsize_t, swap uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v req=%v key=%v buf=%v len1=%v swap=%v, (%v:)", tls, req, key, buf, len1, swap, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(112) + defer tls.Free(112) + var errno_save, fd int32 + var f, v1 uintptr + var i Tsize_t + var v3, v4 Tuint32_t + var _ /* msg at bp+48 */ Tmsghdr + var _ /* req_buf at bp+32 */ [3]Tint32_t + _, _, _, _, _, _, _ = errno_save, f, fd, i, v1, v3, v4 + f = uintptr(0) + **(**[3]Tint32_t)(__ccgo_up(bp + 32)) = [3]Tint32_t{ + 0: int32(NSCDVERSION), + 1: req, + 2: Int32FromUint64(Xstrnlen(tls, key, uint64(LOGIN_NAME_MAX)) + uint64(1)), + } + *(*[2]Tiovec)(unsafe.Pointer(bp)) = [2]Tiovec{ + 0: { + Fiov_base: bp + 32, + Fiov_len: uint64(12), + }, + 1: { + Fiov_base: key, + Fiov_len: _strlen(tls, key) + uint64(1), + }, + } + **(**Tmsghdr)(__ccgo_up(bp + 48)) = Tmsghdr{ + Fmsg_iov: bp, + Fmsg_iovlen: int32(2), + } + errno_save = **(**int32)(__ccgo_up(X__errno_location(tls))) + **(**int32)(__ccgo_up(swap)) = 0 + goto retry +retry: + ; + Xmemset(tls, buf, 0, len1) + **(**Tint32_t)(__ccgo_up(buf)) = int32(NSCDVERSION) + fd = Xsocket(tls, int32(PF_LOCAL), Int32FromInt32(SOCK_STREAM)|Int32FromInt32(SOCK_CLOEXEC), 0) + if fd < 0 { + if **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EAFNOSUPPORT) { + f = Xfopen(tls, __ccgo_ts+1297, __ccgo_ts+1307) + if f != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = errno_save + } + return f + } + return uintptr(0) + } + v1 = Xfdopen(tls, fd, __ccgo_ts+1310) + f = v1 + if !(v1 != 0) { + Xclose(tls, fd) + return uintptr(0) + } + if (**(**[3]Tint32_t)(__ccgo_up(bp + 32)))[int32(2)] > int32(LOGIN_NAME_MAX) { + return f + } + if Xconnect(tls, fd, uintptr(unsafe.Pointer(&_addr)), uint32(24)) < 0 { + /* If there isn't a running nscd we simulate a "not found" + * result and the caller is responsible for calling + * fclose on the (unconnected) socket. The value of + * errno must be left unchanged in this case. */ + if **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EACCES) || **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(ECONNREFUSED) || **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(ENOENT) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = errno_save + return f + } + goto error + } + if Xsendmsg(tls, fd, bp+48, int32(MSG_NOSIGNAL)) < 0 { + goto error + } + if !(Xfread(tls, buf, len1, uint64(1), f) != 0) { + /* If the VERSION entry mismatches nscd will disconnect. The + * most likely cause is that the endianness mismatched. So, we + * byteswap and try once more. (if we already swapped, just + * fail out) + */ + if Xferror(tls, f) != 0 { + goto error + } + if !(**(**int32)(__ccgo_up(swap)) != 0) { + Xfclose(tls, f) + i = uint64(0) + for { + if !(i < Uint64FromInt64(12)/Uint64FromInt64(4)) { + break + } + v3 = Uint32FromInt32((**(**[3]Tint32_t)(__ccgo_up(bp + 32)))[i]) + v4 = v3>>int32(24) | v3>>int32(8)&uint32(0xff00) | v3<>int32(24) | v3>>int32(8)&uint32(0xff00) | v3< %v", r1) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var i Tsize_t + var r, v1 int32 + var v4 uintptr + _, _, _, _ = i, r, v1, v4 + Xflockfile(tls, f) + v1 = Xfprintf(tls, f, __ccgo_ts+1312, VaList(bp+8, (*Tgroup)(unsafe.Pointer(gr)).Fgr_name, (*Tgroup)(unsafe.Pointer(gr)).Fgr_passwd, (*Tgroup)(unsafe.Pointer(gr)).Fgr_gid)) + r = v1 + if v1 < 0 { + goto done + } + if (*Tgroup)(unsafe.Pointer(gr)).Fgr_mem != 0 { + i = uint64(0) + for { + if !(**(**uintptr)(__ccgo_up((*Tgroup)(unsafe.Pointer(gr)).Fgr_mem + uintptr(i)*8)) != 0) { + break + } + if i != 0 { + v4 = __ccgo_ts + 1322 + } else { + v4 = __ccgo_ts + } + v1 = Xfprintf(tls, f, __ccgo_ts+1324, VaList(bp+8, v4, **(**uintptr)(__ccgo_up((*Tgroup)(unsafe.Pointer(gr)).Fgr_mem + uintptr(i)*8)))) + r = v1 + if v1 < 0 { + goto done + } + goto _2 + _2: + ; + i = i + 1 + } + } + r = Xfputc(tls, int32('\n'), f) + goto done +done: + ; + Xfunlockfile(tls, f) + if r < 0 { + v1 = -int32(1) + } else { + v1 = 0 + } + return v1 +} + +func Xputpwent(tls *TLS, pw uintptr, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v pw=%v f=%v, (%v:)", tls, pw, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var v1 int32 + _ = v1 + if Xfprintf(tls, f, __ccgo_ts+1329, VaList(bp+8, (*Tpasswd)(unsafe.Pointer(pw)).Fpw_name, (*Tpasswd)(unsafe.Pointer(pw)).Fpw_passwd, (*Tpasswd)(unsafe.Pointer(pw)).Fpw_uid, (*Tpasswd)(unsafe.Pointer(pw)).Fpw_gid, (*Tpasswd)(unsafe.Pointer(pw)).Fpw_gecos, (*Tpasswd)(unsafe.Pointer(pw)).Fpw_dir, (*Tpasswd)(unsafe.Pointer(pw)).Fpw_shell)) < 0 { + v1 = -int32(1) + } else { + v1 = 0 + } + return v1 +} + +func Xputspent(tls *TLS, sp uintptr, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v sp=%v f=%v, (%v:)", tls, sp, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(144) + defer tls.Free(144) + var v1, v10, v12, v14, v16, v4, v6, v8 int32 + var v11, v13, v15, v5, v7, v9 int64 + var v17 uint64 + var v2, v3 uintptr + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = v1, v10, v11, v12, v13, v14, v15, v16, v17, v2, v3, v4, v5, v6, v7, v8, v9 + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_namp != 0 { + v2 = (*Tspwd)(unsafe.Pointer(sp)).Fsp_namp + } else { + v2 = __ccgo_ts + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_pwdp != 0 { + v3 = (*Tspwd)(unsafe.Pointer(sp)).Fsp_pwdp + } else { + v3 = __ccgo_ts + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_lstchg == int64(-int32(1)) { + v4 = 0 + } else { + v4 = -int32(1) + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_lstchg == int64(-int32(1)) { + v5 = 0 + } else { + v5 = (*Tspwd)(unsafe.Pointer(sp)).Fsp_lstchg + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_min == int64(-int32(1)) { + v6 = 0 + } else { + v6 = -int32(1) + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_min == int64(-int32(1)) { + v7 = 0 + } else { + v7 = (*Tspwd)(unsafe.Pointer(sp)).Fsp_min + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_max == int64(-int32(1)) { + v8 = 0 + } else { + v8 = -int32(1) + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_max == int64(-int32(1)) { + v9 = 0 + } else { + v9 = (*Tspwd)(unsafe.Pointer(sp)).Fsp_max + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_warn == int64(-int32(1)) { + v10 = 0 + } else { + v10 = -int32(1) + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_warn == int64(-int32(1)) { + v11 = 0 + } else { + v11 = (*Tspwd)(unsafe.Pointer(sp)).Fsp_warn + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_inact == int64(-int32(1)) { + v12 = 0 + } else { + v12 = -int32(1) + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_inact == int64(-int32(1)) { + v13 = 0 + } else { + v13 = (*Tspwd)(unsafe.Pointer(sp)).Fsp_inact + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_expire == int64(-int32(1)) { + v14 = 0 + } else { + v14 = -int32(1) + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_expire == int64(-int32(1)) { + v15 = 0 + } else { + v15 = (*Tspwd)(unsafe.Pointer(sp)).Fsp_expire + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_flag == Uint64FromInt32(-Int32FromInt32(1)) { + v16 = 0 + } else { + v16 = -int32(1) + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_flag == Uint64FromInt32(-Int32FromInt32(1)) { + v17 = uint64(0) + } else { + v17 = (*Tspwd)(unsafe.Pointer(sp)).Fsp_flag + } + if Xfprintf(tls, f, __ccgo_ts+1351, VaList(bp+8, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17)) < 0 { + v1 = -int32(1) + } else { + v1 = 0 + } + return v1 +} + +func X__rand48_step(tls *TLS, xi uintptr, lc uintptr) (r Tuint64_t) { + if __ccgo_strace { + trc("tls=%v xi=%v lc=%v, (%v:)", tls, xi, lc, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, x Tuint64_t + _, _ = a, x + x = uint64(uint32(**(**uint16)(__ccgo_up(xi)))|(uint32(**(**uint16)(__ccgo_up(xi + 1*2)))+0)<> int32(16)) + **(**uint16)(__ccgo_up(xi + 2*2)) = uint16(x >> int32(32)) + return x & uint64(0xffffffffffff) +} + +func Xerand48(tls *TLS, s uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* x at bp+0 */ struct { + Ff [0]float64 + Fu Tuint64_t + } + *(*struct { + Ff [0]float64 + Fu Tuint64_t + })(unsafe.Pointer(bp)) = struct { + Ff [0]float64 + Fu Tuint64_t + }{} + *(*uint64)(unsafe.Pointer(bp)) = uint64(0x3ff0000000000000) | X__rand48_step(tls, s, uintptr(unsafe.Pointer(&X__seed48))+uintptr(3)*2)< %v", r) }() + } + return Xerand48(tls, uintptr(unsafe.Pointer(&X__seed48))) +} + +func Xlcong48(tls *TLS, p uintptr) { + if __ccgo_strace { + trc("tls=%v p=%v, (%v:)", tls, p, origin(2)) + } + Xmemcpy(tls, uintptr(unsafe.Pointer(&X__seed48)), p, uint64(14)) +} + +func Xnrand48(tls *TLS, s uintptr) (r int64) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Int64FromUint64(X__rand48_step(tls, s, uintptr(unsafe.Pointer(&X__seed48))+uintptr(3)*2) >> int32(17)) +} + +func Xlrand48(tls *TLS) (r int64) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xnrand48(tls, uintptr(unsafe.Pointer(&X__seed48))) +} + +func Xjrand48(tls *TLS, s uintptr) (r int64) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int64(Int32FromUint64(X__rand48_step(tls, s, uintptr(unsafe.Pointer(&X__seed48))+uintptr(3)*2) >> Int32FromInt32(16))) +} + +func Xmrand48(tls *TLS) (r int64) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xjrand48(tls, uintptr(unsafe.Pointer(&X__seed48))) +} + +var _seed Tuint64_t + +func Xsrand(tls *TLS, s uint32) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + } + _seed = uint64(s - uint32(1)) +} + +func Xrand(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + _seed = uint64(6364136223846793005)*_seed + uint64(1) + return Int32FromUint64(_seed >> int32(33)) +} + +func _temper(tls *TLS, x uint32) (r uint32) { + x = x ^ x>>int32(11) + x = x ^ x<>int32(18) + return x +} + +func Xrand_r(tls *TLS, seed uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v seed=%v, (%v:)", tls, seed, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 uint32 + _ = v1 + v1 = **(**uint32)(__ccgo_up(seed))*Uint32FromInt32(1103515245) + Uint32FromInt32(12345) + **(**uint32)(__ccgo_up(seed)) = v1 + return Int32FromUint32(_temper(tls, v1) / uint32(2)) +} + +/* +this code uses the same lagged fibonacci generator as the +original bsd random implementation except for the seeding +which was broken in the original +*/ + +var _init = [32]Tuint32_t{ + 1: uint32(0x5851f42d), + 2: uint32(0xc0b18ccf), + 3: uint32(0xcbb5f646), + 4: uint32(0xc7033129), + 5: uint32(0x30705b04), + 6: uint32(0x20fd5db4), + 7: uint32(0x9a8b7f78), + 8: uint32(0x502959d8), + 9: uint32(0xab894868), + 10: uint32(0x6c0356a7), + 11: uint32(0x88cdb7ff), + 12: uint32(0xb477d43f), + 13: uint32(0x70a3a52b), + 14: uint32(0xa8e4baf1), + 15: uint32(0xfd8341fc), + 16: uint32(0x8ae16fd9), + 17: uint32(0x742d2f7a), + 18: uint32(0x0d1f0796), + 19: uint32(0x76035e09), + 20: uint32(0x40f7702c), + 21: uint32(0x6fa72ca5), + 22: uint32(0xaaa84157), + 23: uint32(0x58a0df74), + 24: uint32(0xc74a0364), + 25: uint32(0xae533cc4), + 26: uint32(0x04185faf), + 27: uint32(0x6de3b115), + 28: uint32(0x0cab8628), + 29: uint32(0xf043bfa4), + 30: uint32(0x398150e9), + 31: uint32(0x37521657), +} + +var _n = int32(31) +var _i = int32(3) +var _j = int32(0) +var _x1 = uintptr(unsafe.Pointer(&_init)) + uintptr(1)*4 +var _lock3 [1]int32 + +func _lcg31(tls *TLS, x Tuint32_t) (r Tuint32_t) { + return (uint32(1103515245)*x + uint32(12345)) & uint32(0x7fffffff) +} + +func _lcg64(tls *TLS, x Tuint64_t) (r Tuint64_t) { + return uint64(6364136223846793005)*x + uint64(1) +} + +func _savestate(tls *TLS) (r uintptr) { + **(**Tuint32_t)(__ccgo_up(_x1 + uintptr(-Int32FromInt32(1))*4)) = Uint32FromInt32(_n<> int32(16)) + _i = Int32FromUint32(**(**Tuint32_t)(__ccgo_up(_x1 + uintptr(-Int32FromInt32(1))*4)) >> Int32FromInt32(8) & uint32(0xff)) + _j = Int32FromUint32(**(**Tuint32_t)(__ccgo_up(_x1 + uintptr(-Int32FromInt32(1))*4)) & uint32(0xff)) +} + +func ___srandom(tls *TLS, seed uint32) { + var k, v1 int32 + var s Tuint64_t + _, _, _ = k, s, v1 + s = uint64(seed) + if _n == 0 { + **(**Tuint32_t)(__ccgo_up(_x1)) = uint32(s) + return + } + if _n == int32(31) || _n == int32(7) { + v1 = int32(3) + } else { + v1 = int32(1) + } + _i = v1 + _j = 0 + k = 0 + for { + if !(k < _n) { + break + } + s = _lcg64(tls, s) + **(**Tuint32_t)(__ccgo_up(_x1 + uintptr(k)*4)) = uint32(s >> int32(32)) + goto _2 + _2: + ; + k = k + 1 + } + /* make sure x contains at least one odd number */ + **(**Tuint32_t)(__ccgo_up(_x1)) |= uint32(1) +} + +func Xsrandom(tls *TLS, seed uint32) { + if __ccgo_strace { + trc("tls=%v seed=%v, (%v:)", tls, seed, origin(2)) + } + ___lock(tls, uintptr(unsafe.Pointer(&_lock3))) + ___srandom(tls, seed) + ___unlock(tls, uintptr(unsafe.Pointer(&_lock3))) +} + +func Xinitstate(tls *TLS, seed uint32, state uintptr, size Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v seed=%v state=%v size=%v, (%v:)", tls, seed, state, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + var old uintptr + _ = old + if size < uint64(8) { + return uintptr(0) + } + ___lock(tls, uintptr(unsafe.Pointer(&_lock3))) + old = _savestate(tls) + if size < uint64(32) { + _n = 0 + } else { + if size < uint64(64) { + _n = int32(7) + } else { + if size < uint64(128) { + _n = int32(15) + } else { + if size < uint64(256) { + _n = int32(31) + } else { + _n = int32(63) + } + } + } + } + _x1 = state + uintptr(1)*4 + ___srandom(tls, seed) + _savestate(tls) + ___unlock(tls, uintptr(unsafe.Pointer(&_lock3))) + return old +} + +func Xsetstate(tls *TLS, state uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v state=%v, (%v:)", tls, state, origin(2)) + defer func() { trc("-> %v", r) }() + } + var old uintptr + _ = old + ___lock(tls, uintptr(unsafe.Pointer(&_lock3))) + old = _savestate(tls) + _loadstate(tls, state) + ___unlock(tls, uintptr(unsafe.Pointer(&_lock3))) + return old +} + +func Xrandom(tls *TLS) (r int64) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + var k int64 + var v1 Tuint32_t + var v2 int32 + _, _, _ = k, v1, v2 + ___lock(tls, uintptr(unsafe.Pointer(&_lock3))) + if _n == 0 { + v1 = _lcg31(tls, **(**Tuint32_t)(__ccgo_up(_x1))) + **(**Tuint32_t)(__ccgo_up(_x1)) = v1 + k = Int64FromUint32(v1) + goto end + } + **(**Tuint32_t)(__ccgo_up(_x1 + uintptr(_i)*4)) += **(**Tuint32_t)(__ccgo_up(_x1 + uintptr(_j)*4)) + k = Int64FromUint32(**(**Tuint32_t)(__ccgo_up(_x1 + uintptr(_i)*4)) >> int32(1)) + _i = _i + 1 + v2 = _i + if v2 == _n { + _i = 0 + } + _j = _j + 1 + v2 = _j + if v2 == _n { + _j = 0 + } + goto end +end: + ; + ___unlock(tls, uintptr(unsafe.Pointer(&_lock3))) + return k +} + +func Xseed48(tls *TLS, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + Xmemcpy(tls, uintptr(unsafe.Pointer(&_p1)), uintptr(unsafe.Pointer(&X__seed48)), uint64(6)) + Xmemcpy(tls, uintptr(unsafe.Pointer(&X__seed48)), s, uint64(6)) + return uintptr(unsafe.Pointer(&_p1)) +} + +var _p1 [3]uint16 + +func Xsrand48(tls *TLS, seed int64) { + if __ccgo_strace { + trc("tls=%v seed=%v, (%v:)", tls, seed, origin(2)) + } + bp := tls.Alloc(16) + defer tls.Free(16) + *(*[3]uint16)(unsafe.Pointer(bp)) = [3]uint16{ + 0: uint16(0x330e), + 1: Uint16FromInt64(seed), + 2: Uint16FromInt64(seed >> int32(16)), + } + Xseed48(tls, bp) +} + +func Xexecl(tls *TLS, path uintptr, argv0 uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v argv0=%v va=%v, (%v:)", tls, path, argv0, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var argc, i int32 + var argv uintptr + var v2 t__predefined_size_t + _, _, _, _, _ = ap, argc, argv, i, v2 + defer func() { Xrealloc(tls, argv, 0) }() + ap = va + argc = int32(1) + for { + if !(VaUintptr(&ap) != 0) { + break + } + goto _1 + _1: + ; + argc = argc + 1 + } + _ = ap + v2 = Uint64FromInt32(argc+int32(1)) * 8 + argv = Xrealloc(tls, argv, v2) + ap = va + *(*uintptr)(unsafe.Add(unsafe.Pointer(argv), 0*8)) = argv0 + i = int32(1) + for { + if !(i < argc) { + break + } + *(*uintptr)(unsafe.Add(unsafe.Pointer(argv), i*8)) = VaUintptr(&ap) + goto _3 + _3: + ; + i = i + 1 + } + *(*uintptr)(unsafe.Add(unsafe.Pointer(argv), i*8)) = UintptrFromInt32(0) + _ = ap + return Xexecv(tls, path, argv) + return r +} + +func Xexecle(tls *TLS, path uintptr, argv0 uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v argv0=%v va=%v, (%v:)", tls, path, argv0, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var argc, i int32 + var argv, envp uintptr + var v2 t__predefined_size_t + _, _, _, _, _, _ = ap, argc, argv, envp, i, v2 + defer func() { Xrealloc(tls, argv, 0) }() + ap = va + argc = int32(1) + for { + if !(VaUintptr(&ap) != 0) { + break + } + goto _1 + _1: + ; + argc = argc + 1 + } + _ = ap + v2 = Uint64FromInt32(argc+int32(1)) * 8 + argv = Xrealloc(tls, argv, v2) + ap = va + *(*uintptr)(unsafe.Add(unsafe.Pointer(argv), 0*8)) = argv0 + i = int32(1) + for { + if !(i <= argc) { + break + } + *(*uintptr)(unsafe.Add(unsafe.Pointer(argv), i*8)) = VaUintptr(&ap) + goto _3 + _3: + ; + i = i + 1 + } + envp = VaUintptr(&ap) + _ = ap + return Xexecve(tls, path, argv, envp) + return r +} + +func Xexeclp(tls *TLS, file uintptr, argv0 uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v file=%v argv0=%v va=%v, (%v:)", tls, file, argv0, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var argc, i int32 + var argv uintptr + var v2 t__predefined_size_t + _, _, _, _, _ = ap, argc, argv, i, v2 + defer func() { Xrealloc(tls, argv, 0) }() + ap = va + argc = int32(1) + for { + if !(VaUintptr(&ap) != 0) { + break + } + goto _1 + _1: + ; + argc = argc + 1 + } + _ = ap + v2 = Uint64FromInt32(argc+int32(1)) * 8 + argv = Xrealloc(tls, argv, v2) + ap = va + *(*uintptr)(unsafe.Add(unsafe.Pointer(argv), 0*8)) = argv0 + i = int32(1) + for { + if !(i < argc) { + break + } + *(*uintptr)(unsafe.Add(unsafe.Pointer(argv), i*8)) = VaUintptr(&ap) + goto _3 + _3: + ; + i = i + 1 + } + *(*uintptr)(unsafe.Add(unsafe.Pointer(argv), i*8)) = UintptrFromInt32(0) + _ = ap + return Xexecvp(tls, file, argv) + return r +} + +func Xexecv(tls *TLS, path uintptr, argv uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v argv=%v, (%v:)", tls, path, argv, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xexecve(tls, path, argv, Xenviron) +} + +func Xexecve(tls *TLS, path uintptr, argv uintptr, envp uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v argv=%v envp=%v, (%v:)", tls, path, argv, envp, origin(2)) + defer func() { trc("-> %v", r) }() + } + /* do we need to use environ if envp is null? */ + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_execve), int64(path), int64(argv), int64(envp))))) +} + +func X__execvpe(tls *TLS, file uintptr, argv uintptr, envp uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v file=%v argv=%v envp=%v, (%v:)", tls, file, argv, envp, origin(2)) + defer func() { trc("-> %v", r) }() + } + var b, p, path, z, v3 uintptr + var k, l Tsize_t + var seen_eacces int32 + var v2 t__predefined_size_t + _, _, _, _, _, _, _, _, _ = b, k, l, p, path, seen_eacces, z, v2, v3 + defer func() { Xrealloc(tls, b, 0) }() + path = Xgetenv(tls, __ccgo_ts+1400) + seen_eacces = 0 + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOENT) + if !(**(**uint8)(__ccgo_up(file)) != 0) { + return -int32(1) + } + if Xstrchr(tls, file, int32('/')) != 0 { + return Xexecve(tls, file, argv, envp) + } + if !(path != 0) { + path = __ccgo_ts + 1405 + } + k = Xstrnlen(tls, file, Uint64FromInt32(Int32FromInt32(NAME_MAX)+Int32FromInt32(1))) + if k > uint64(NAME_MAX) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENAMETOOLONG) + return -int32(1) + } + l = Xstrnlen(tls, path, Uint64FromInt32(Int32FromInt32(PATH_MAX)-Int32FromInt32(1))) + uint64(1) + p = path + for { + v2 = l + k + uint64(1) + b = Xrealloc(tls, b, v2) + z = X__strchrnul(tls, p, int32(':')) + if Uint64FromInt64(int64(z)-int64(p)) >= l { + v3 = z + z = z + 1 + if !(**(**uint8)(__ccgo_up(v3)) != 0) { + break + } + goto _1 + } + Xmemcpy(tls, b, p, Uint64FromInt64(int64(z)-int64(p))) + *(*uint8)(unsafe.Add(unsafe.Pointer(b), int64(z)-int64(p))) = uint8('/') + Xmemcpy(tls, b+uintptr(int64(z)-int64(p))+BoolUintptr(z > p), file, k+uint64(1)) + Xexecve(tls, b, argv, envp) + switch **(**int32)(__ccgo_up(X__errno_location(tls))) { + case int32(EACCES): + seen_eacces = int32(1) + fallthrough + case int32(ENOENT): + fallthrough + case int32(ENOTDIR): + default: + return -int32(1) + } + v3 = z + z = z + 1 + if !(**(**uint8)(__ccgo_up(v3)) != 0) { + break + } + goto _1 + _1: + ; + p = z + } + if seen_eacces != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EACCES) + } + return -int32(1) +} + +func Xexecvp(tls *TLS, file uintptr, argv uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v file=%v argv=%v, (%v:)", tls, file, argv, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__execvpe(tls, file, argv, Xenviron) +} + +func Xexecvpe(tls *TLS, file uintptr, argv uintptr, envp uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v file=%v argv=%v envp=%v, (%v:)", tls, file, argv, envp, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__execvpe(tls, file, argv, envp) +} + +func Xfexecve(tls *TLS, fd int32, argv uintptr, envp uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v argv=%v envp=%v, (%v:)", tls, fd, argv, envp, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var r int32 + var _ /* buf at bp+0 */ [27]uint8 + _ = r + r = int32(X__syscall5(tls, int64(SYS_execveat), int64(fd), int64(__ccgo_ts), int64(argv), int64(envp), int64(Int32FromInt32(AT_EMPTY_PATH)))) + if r != -int32(ENOSYS) { + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) + } + X__procfdname(tls, bp, Uint32FromInt32(fd)) + Xexecve(tls, bp, argv, envp) + if **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(ENOENT) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EBADF) + } + return -int32(1) +} + +var _dummy_lockptr = uintptr(0) + +var _atfork_locks = [10]uintptr{ + 0: uintptr(unsafe.Pointer(&X__at_quick_exit_lockptr)), + 1: uintptr(unsafe.Pointer(&_dummy_lockptr)), + 2: uintptr(unsafe.Pointer(&X__gettext_lockptr)), + 3: uintptr(unsafe.Pointer(&X__locale_lockptr)), + 4: uintptr(unsafe.Pointer(&X__random_lockptr)), + 5: uintptr(unsafe.Pointer(&_dummy_lockptr)), + 6: uintptr(unsafe.Pointer(&X__stdio_ofl_lockptr)), + 7: uintptr(unsafe.Pointer(&X__syslog_lockptr)), + 8: uintptr(unsafe.Pointer(&X__timezone_lockptr)), + 9: uintptr(unsafe.Pointer(&_dummy_lockptr)), +} + +func _dummy8(tls *TLS, x int32) { +} + +func _dummy_0(tls *TLS) { +} + +const FDOP_CHDIR = 4 +const FDOP_CLOSE = 1 +const FDOP_DUP2 = 2 +const FDOP_FCHDIR = 5 +const FDOP_OPEN = 3 +const POSIX_SPAWN_RESETIDS = 1 +const POSIX_SPAWN_SETPGROUP = 2 +const POSIX_SPAWN_SETSCHEDPARAM = 16 +const POSIX_SPAWN_SETSCHEDULER = 32 +const POSIX_SPAWN_SETSID = 128 +const POSIX_SPAWN_SETSIGDEF = 4 +const POSIX_SPAWN_SETSIGMASK = 8 +const POSIX_SPAWN_USEVFORK = 64 + +type Tposix_spawnattr_t = struct { + F__flags int32 + F__pgrp Tpid_t + F__def Tsigset_t + F__mask Tsigset_t + F__prio int32 + F__pol int32 + F__fn uintptr + F__pad [56]uint8 +} + +type Tposix_spawn_file_actions_t = struct { + F__pad0 [2]int32 + F__actions uintptr + F__pad [16]int32 +} + +type Tfdop = struct { + Fnext uintptr + Fprev uintptr + Fcmd int32 + Ffd int32 + Fsrcfd int32 + Foflag int32 + Fmode Tmode_t +} + +func Xposix_spawn_file_actions_addchdir_np(tls *TLS, fa uintptr, path uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fa=%v path=%v, (%v:)", tls, fa, path, origin(2)) + defer func() { trc("-> %v", r) }() + } + var op, v1 uintptr + _, _ = op, v1 + op = Xmalloc(tls, uint64(40)+_strlen(tls, path)+uint64(1)) + if !(op != 0) { + return int32(ENOMEM) + } + (*Tfdop)(unsafe.Pointer(op)).Fcmd = int32(FDOP_CHDIR) + (*Tfdop)(unsafe.Pointer(op)).Ffd = -int32(1) + Xstrcpy(tls, op+36, path) + v1 = (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions + (*Tfdop)(unsafe.Pointer(op)).Fnext = v1 + if v1 != 0 { + (*Tfdop)(unsafe.Pointer((*Tfdop)(unsafe.Pointer(op)).Fnext)).Fprev = op + } + (*Tfdop)(unsafe.Pointer(op)).Fprev = uintptr(0) + (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions = op + return 0 +} + +func Xposix_spawn_file_actions_addclose(tls *TLS, fa uintptr, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fa=%v fd=%v, (%v:)", tls, fa, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + var op, v1 uintptr + _, _ = op, v1 + if fd < 0 { + return int32(EBADF) + } + op = Xmalloc(tls, uint64(40)) + if !(op != 0) { + return int32(ENOMEM) + } + (*Tfdop)(unsafe.Pointer(op)).Fcmd = int32(FDOP_CLOSE) + (*Tfdop)(unsafe.Pointer(op)).Ffd = fd + v1 = (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions + (*Tfdop)(unsafe.Pointer(op)).Fnext = v1 + if v1 != 0 { + (*Tfdop)(unsafe.Pointer((*Tfdop)(unsafe.Pointer(op)).Fnext)).Fprev = op + } + (*Tfdop)(unsafe.Pointer(op)).Fprev = uintptr(0) + (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions = op + return 0 +} + +func Xposix_spawn_file_actions_adddup2(tls *TLS, fa uintptr, srcfd int32, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fa=%v srcfd=%v fd=%v, (%v:)", tls, fa, srcfd, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + var op, v1 uintptr + _, _ = op, v1 + if srcfd < 0 || fd < 0 { + return int32(EBADF) + } + op = Xmalloc(tls, uint64(40)) + if !(op != 0) { + return int32(ENOMEM) + } + (*Tfdop)(unsafe.Pointer(op)).Fcmd = int32(FDOP_DUP2) + (*Tfdop)(unsafe.Pointer(op)).Fsrcfd = srcfd + (*Tfdop)(unsafe.Pointer(op)).Ffd = fd + v1 = (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions + (*Tfdop)(unsafe.Pointer(op)).Fnext = v1 + if v1 != 0 { + (*Tfdop)(unsafe.Pointer((*Tfdop)(unsafe.Pointer(op)).Fnext)).Fprev = op + } + (*Tfdop)(unsafe.Pointer(op)).Fprev = uintptr(0) + (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions = op + return 0 +} + +func Xposix_spawn_file_actions_addfchdir_np(tls *TLS, fa uintptr, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fa=%v fd=%v, (%v:)", tls, fa, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + var op, v1 uintptr + _, _ = op, v1 + if fd < 0 { + return int32(EBADF) + } + op = Xmalloc(tls, uint64(40)) + if !(op != 0) { + return int32(ENOMEM) + } + (*Tfdop)(unsafe.Pointer(op)).Fcmd = int32(FDOP_FCHDIR) + (*Tfdop)(unsafe.Pointer(op)).Ffd = fd + v1 = (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions + (*Tfdop)(unsafe.Pointer(op)).Fnext = v1 + if v1 != 0 { + (*Tfdop)(unsafe.Pointer((*Tfdop)(unsafe.Pointer(op)).Fnext)).Fprev = op + } + (*Tfdop)(unsafe.Pointer(op)).Fprev = uintptr(0) + (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions = op + return 0 +} + +func Xposix_spawn_file_actions_addopen(tls *TLS, fa uintptr, fd int32, path uintptr, flags int32, mode Tmode_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fa=%v fd=%v path=%v flags=%v mode=%v, (%v:)", tls, fa, fd, path, flags, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + var op, v1 uintptr + _, _ = op, v1 + if fd < 0 { + return int32(EBADF) + } + op = Xmalloc(tls, uint64(40)+_strlen(tls, path)+uint64(1)) + if !(op != 0) { + return int32(ENOMEM) + } + (*Tfdop)(unsafe.Pointer(op)).Fcmd = int32(FDOP_OPEN) + (*Tfdop)(unsafe.Pointer(op)).Ffd = fd + (*Tfdop)(unsafe.Pointer(op)).Foflag = flags + (*Tfdop)(unsafe.Pointer(op)).Fmode = mode + Xstrcpy(tls, op+36, path) + v1 = (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions + (*Tfdop)(unsafe.Pointer(op)).Fnext = v1 + if v1 != 0 { + (*Tfdop)(unsafe.Pointer((*Tfdop)(unsafe.Pointer(op)).Fnext)).Fprev = op + } + (*Tfdop)(unsafe.Pointer(op)).Fprev = uintptr(0) + (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions = op + return 0 +} + +func Xposix_spawn_file_actions_destroy(tls *TLS, fa uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fa=%v, (%v:)", tls, fa, origin(2)) + defer func() { trc("-> %v", r) }() + } + var next, op uintptr + _, _ = next, op + op = (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions + for op != 0 { + next = (*Tfdop)(unsafe.Pointer(op)).Fnext + Xfree(tls, op) + op = next + } + return 0 +} + +func Xposix_spawn_file_actions_init(tls *TLS, fa uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fa=%v, (%v:)", tls, fa, origin(2)) + defer func() { trc("-> %v", r) }() + } + (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions = uintptr(0) + return 0 +} + +func Xposix_spawnattr_destroy(tls *TLS, attr uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v, (%v:)", tls, attr, origin(2)) + defer func() { trc("-> %v", r) }() + } + return 0 +} + +func Xposix_spawnattr_getflags(tls *TLS, attr uintptr, flags uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v flags=%v, (%v:)", tls, attr, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + **(**int16)(__ccgo_up(flags)) = int16((*Tposix_spawnattr_t)(unsafe.Pointer(attr)).F__flags) + return 0 +} + +func Xposix_spawnattr_getpgroup(tls *TLS, attr uintptr, pgrp uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v pgrp=%v, (%v:)", tls, attr, pgrp, origin(2)) + defer func() { trc("-> %v", r) }() + } + **(**Tpid_t)(__ccgo_up(pgrp)) = (*Tposix_spawnattr_t)(unsafe.Pointer(attr)).F__pgrp + return 0 +} + +func Xposix_spawnattr_getsigdefault(tls *TLS, attr uintptr, def uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v def=%v, (%v:)", tls, attr, def, origin(2)) + defer func() { trc("-> %v", r) }() + } + **(**Tsigset_t)(__ccgo_up(def)) = (*Tposix_spawnattr_t)(unsafe.Pointer(attr)).F__def + return 0 +} + +func Xposix_spawnattr_getsigmask(tls *TLS, attr uintptr, mask uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v mask=%v, (%v:)", tls, attr, mask, origin(2)) + defer func() { trc("-> %v", r) }() + } + **(**Tsigset_t)(__ccgo_up(mask)) = (*Tposix_spawnattr_t)(unsafe.Pointer(attr)).F__mask + return 0 +} + +func Xposix_spawnattr_init(tls *TLS, attr uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v, (%v:)", tls, attr, origin(2)) + defer func() { trc("-> %v", r) }() + } + **(**Tposix_spawnattr_t)(__ccgo_up(attr)) = Tposix_spawnattr_t{} + return 0 +} + +func Xposix_spawnattr_getschedparam(tls *TLS, attr uintptr, schedparam uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v schedparam=%v, (%v:)", tls, attr, schedparam, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(ENOSYS) +} + +func Xposix_spawnattr_setschedparam(tls *TLS, attr uintptr, schedparam uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v schedparam=%v, (%v:)", tls, attr, schedparam, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(ENOSYS) +} + +func Xposix_spawnattr_getschedpolicy(tls *TLS, attr uintptr, policy uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v policy=%v, (%v:)", tls, attr, policy, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(ENOSYS) +} + +func Xposix_spawnattr_setschedpolicy(tls *TLS, attr uintptr, policy int32) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v policy=%v, (%v:)", tls, attr, policy, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(ENOSYS) +} + +func Xposix_spawnattr_setflags(tls *TLS, attr uintptr, flags int16) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v flags=%v, (%v:)", tls, attr, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + var all_flags uint32 + _ = all_flags + all_flags = Uint32FromInt32(Int32FromInt32(POSIX_SPAWN_RESETIDS) | Int32FromInt32(POSIX_SPAWN_SETPGROUP) | Int32FromInt32(POSIX_SPAWN_SETSIGDEF) | Int32FromInt32(POSIX_SPAWN_SETSIGMASK) | Int32FromInt32(POSIX_SPAWN_SETSCHEDPARAM) | Int32FromInt32(POSIX_SPAWN_SETSCHEDULER) | Int32FromInt32(POSIX_SPAWN_USEVFORK) | Int32FromInt32(POSIX_SPAWN_SETSID)) + if Uint32FromInt16(flags) & ^all_flags != 0 { + return int32(EINVAL) + } + (*Tposix_spawnattr_t)(unsafe.Pointer(attr)).F__flags = int32(flags) + return 0 +} + +func Xposix_spawnattr_setpgroup(tls *TLS, attr uintptr, pgrp Tpid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v pgrp=%v, (%v:)", tls, attr, pgrp, origin(2)) + defer func() { trc("-> %v", r) }() + } + (*Tposix_spawnattr_t)(unsafe.Pointer(attr)).F__pgrp = pgrp + return 0 +} + +func Xposix_spawnattr_setsigdefault(tls *TLS, attr uintptr, def uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v def=%v, (%v:)", tls, attr, def, origin(2)) + defer func() { trc("-> %v", r) }() + } + (*Tposix_spawnattr_t)(unsafe.Pointer(attr)).F__def = **(**Tsigset_t)(__ccgo_up(def)) + return 0 +} + +func Xposix_spawnattr_setsigmask(tls *TLS, attr uintptr, mask uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v mask=%v, (%v:)", tls, attr, mask, origin(2)) + defer func() { trc("-> %v", r) }() + } + (*Tposix_spawnattr_t)(unsafe.Pointer(attr)).F__mask = **(**Tsigset_t)(__ccgo_up(mask)) + return 0 +} + +func Xvfork(tls *TLS) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + /* vfork syscall cannot be made from C code */ + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_clone), int64(Int32FromInt32(SIGCHLD)), int64(Int32FromInt32(0)))))) +} + +func Xwait(tls *TLS, status uintptr) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v status=%v, (%v:)", tls, status, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwaitpid(tls, -Int32FromInt32(1), status, 0) +} + +func Xwaitid(tls *TLS, type1 Tidtype_t, id Tid_t, info uintptr, options int32) (r int32) { + if __ccgo_strace { + trc("tls=%v type1=%v id=%v info=%v options=%v, (%v:)", tls, type1, id, info, options, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_waitid), int64(type1), Int64FromUint32(id), int64(info), int64(options), int64(Int32FromInt32(0)), 0)))) +} + +func Xwaitpid(tls *TLS, pid Tpid_t, status uintptr, options int32) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v pid=%v status=%v options=%v, (%v:)", tls, pid, status, options, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_wait4), int64(pid), int64(status), int64(options), int64(Int32FromInt32(0)), 0, 0)))) +} + +const BRACKET = -3 +const END = 0 +const FNM_CASEFOLD = 16 +const FNM_FILE_NAME = 1 +const FNM_LEADING_DIR = 8 +const FNM_NOESCAPE = 2 +const FNM_NOMATCH = 1 +const FNM_NOSYS = -1 +const FNM_PATHNAME = 1 +const FNM_PERIOD = 4 +const QUESTION = -4 +const STAR = -5 +const UNMATCHABLE = -2 + +func _str_next(tls *TLS, str uintptr, n Tsize_t, step uintptr) (r int32) { + bp := tls.Alloc(16) + defer tls.Free(16) + var k int32 + var _ /* wc at bp+0 */ Twchar_t + _ = k + if !(n != 0) { + **(**Tsize_t)(__ccgo_up(step)) = uint64(0) + return 0 + } + if uint32(**(**uint8)(__ccgo_up(str))) >= uint32(128) { + k = Xmbtowc(tls, bp, str, n) + if k < 0 { + **(**Tsize_t)(__ccgo_up(step)) = uint64(1) + return -int32(1) + } + **(**Tsize_t)(__ccgo_up(step)) = Uint64FromInt32(k) + return **(**Twchar_t)(__ccgo_up(bp)) + } + **(**Tsize_t)(__ccgo_up(step)) = uint64(1) + return Int32FromUint8(**(**uint8)(__ccgo_up(str))) +} + +func _pat_next(tls *TLS, pat uintptr, m Tsize_t, step uintptr, flags int32) (r int32) { + bp := tls.Alloc(16) + defer tls.Free(16) + var esc, k1, z int32 + var k Tsize_t + var _ /* wc at bp+0 */ Twchar_t + _, _, _, _ = esc, k, k1, z + esc = 0 + if !(m != 0) || !(**(**uint8)(__ccgo_up(pat)) != 0) { + **(**Tsize_t)(__ccgo_up(step)) = uint64(0) + return END + } + **(**Tsize_t)(__ccgo_up(step)) = uint64(1) + if Int32FromUint8(**(**uint8)(__ccgo_up(pat))) == int32('\\') && **(**uint8)(__ccgo_up(pat + 1)) != 0 && !(flags&Int32FromInt32(FNM_NOESCAPE) != 0) { + **(**Tsize_t)(__ccgo_up(step)) = uint64(2) + pat = pat + 1 + esc = int32(1) + goto escaped + } + if Int32FromUint8(**(**uint8)(__ccgo_up(pat))) == int32('[') { + k = uint64(1) + if k < m { + if Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(k)))) == int32('^') || Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(k)))) == int32('!') { + k = k + 1 + } + } + if k < m { + if Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(k)))) == int32(']') { + k = k + 1 + } + } + for { + if !(k < m && **(**uint8)(__ccgo_up(pat + uintptr(k))) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(k)))) != int32(']')) { + break + } + if k+uint64(1) < m && **(**uint8)(__ccgo_up(pat + uintptr(k+uint64(1)))) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(k)))) == int32('[') && (Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(k+uint64(1))))) == int32(':') || Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(k+uint64(1))))) == int32('.') || Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(k+uint64(1))))) == int32('=')) { + z = Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(k+uint64(1))))) + k = k + uint64(2) + if k < m && **(**uint8)(__ccgo_up(pat + uintptr(k))) != 0 { + k = k + 1 + } + for k < m && **(**uint8)(__ccgo_up(pat + uintptr(k))) != 0 && (Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(k-uint64(1))))) != z || Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(k)))) != int32(']')) { + k = k + 1 + } + if k == m || !(**(**uint8)(__ccgo_up(pat + uintptr(k))) != 0) { + break + } + } + goto _1 + _1: + ; + k = k + 1 + } + if k == m || !(**(**uint8)(__ccgo_up(pat + uintptr(k))) != 0) { + **(**Tsize_t)(__ccgo_up(step)) = uint64(1) + return int32('[') + } + **(**Tsize_t)(__ccgo_up(step)) = k + uint64(1) + return -int32(3) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(pat))) == int32('*') { + return -int32(5) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(pat))) == int32('?') { + return -int32(4) + } + goto escaped +escaped: + ; + if uint32(**(**uint8)(__ccgo_up(pat))) >= uint32(128) { + k1 = Xmbtowc(tls, bp, pat, m) + if k1 < 0 { + **(**Tsize_t)(__ccgo_up(step)) = uint64(0) + return -int32(2) + } + **(**Tsize_t)(__ccgo_up(step)) = Uint64FromInt32(k1 + esc) + return **(**Twchar_t)(__ccgo_up(bp)) + } + return Int32FromUint8(**(**uint8)(__ccgo_up(pat))) +} + +func _casefold(tls *TLS, k int32) (r int32) { + var c int32 + var v1 uint32 + _, _ = c, v1 + c = Int32FromUint32(Xtowupper(tls, Uint32FromInt32(k))) + if c == k { + v1 = Xtowlower(tls, Uint32FromInt32(k)) + } else { + v1 = Uint32FromInt32(c) + } + return Int32FromUint32(v1) +} + +func _match_bracket(tls *TLS, p uintptr, k int32, kfold int32) (r int32) { + bp := tls.Alloc(32) + defer tls.Free(32) + var inv, l, l1, z int32 + var p0 uintptr + var _ /* buf at bp+8 */ [16]uint8 + var _ /* wc at bp+0 */ Twchar_t + var _ /* wc2 at bp+4 */ Twchar_t + _, _, _, _, _ = inv, l, l1, p0, z + inv = 0 + p = p + 1 + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('^') || Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('!') { + inv = int32(1) + p = p + 1 + } + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32(']') { + if k == int32(']') { + return BoolInt32(!(inv != 0)) + } + p = p + 1 + } else { + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('-') { + if k == int32('-') { + return BoolInt32(!(inv != 0)) + } + p = p + 1 + } + } + **(**Twchar_t)(__ccgo_up(bp)) = Int32FromUint8(**(**uint8)(__ccgo_up(p + uintptr(-Int32FromInt32(1))))) + for { + if !(Int32FromUint8(**(**uint8)(__ccgo_up(p))) != int32(']')) { + break + } + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('-') && Int32FromUint8(**(**uint8)(__ccgo_up(p + 1))) != int32(']') { + l = Xmbtowc(tls, bp+4, p+uintptr(1), uint64(4)) + if l < 0 { + return 0 + } + if **(**Twchar_t)(__ccgo_up(bp)) <= **(**Twchar_t)(__ccgo_up(bp + 4)) { + if Uint32FromInt32(k)-Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp))) <= Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp + 4))-**(**Twchar_t)(__ccgo_up(bp))) || Uint32FromInt32(kfold)-Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp))) <= Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp + 4))-**(**Twchar_t)(__ccgo_up(bp))) { + return BoolInt32(!(inv != 0)) + } + } + p = p + uintptr(l-int32(1)) + goto _1 + } + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('[') && (Int32FromUint8(**(**uint8)(__ccgo_up(p + 1))) == int32(':') || Int32FromUint8(**(**uint8)(__ccgo_up(p + 1))) == int32('.') || Int32FromUint8(**(**uint8)(__ccgo_up(p + 1))) == int32('=')) { + p0 = p + uintptr(2) + z = Int32FromUint8(**(**uint8)(__ccgo_up(p + 1))) + p = p + uintptr(3) + for Int32FromUint8(**(**uint8)(__ccgo_up(p + uintptr(-Int32FromInt32(1))))) != z || Int32FromUint8(**(**uint8)(__ccgo_up(p))) != int32(']') { + p = p + 1 + } + if z == int32(':') && int64(p-uintptr(1))-int64(p0) < int64(16) { + Xmemcpy(tls, bp+8, p0, Uint64FromInt64(int64(p-uintptr(1))-int64(p0))) + (**(**[16]uint8)(__ccgo_up(bp + 8)))[int64(p-uintptr(1))-int64(p0)] = uint8(0) + if Xiswctype(tls, Uint32FromInt32(k), Xwctype(tls, bp+8)) != 0 || Xiswctype(tls, Uint32FromInt32(kfold), Xwctype(tls, bp+8)) != 0 { + return BoolInt32(!(inv != 0)) + } + } + goto _1 + } + if uint32(**(**uint8)(__ccgo_up(p))) < uint32(128) { + **(**Twchar_t)(__ccgo_up(bp)) = Int32FromUint8(uint8(**(**uint8)(__ccgo_up(p)))) + } else { + l1 = Xmbtowc(tls, bp, p, uint64(4)) + if l1 < 0 { + return 0 + } + p = p + uintptr(l1-int32(1)) + } + if **(**Twchar_t)(__ccgo_up(bp)) == k || **(**Twchar_t)(__ccgo_up(bp)) == kfold { + return BoolInt32(!(inv != 0)) + } + goto _1 + _1: + ; + p = p + 1 + } + return inv +} + +func _fnmatch_internal(tls *TLS, pat uintptr, m Tsize_t, str uintptr, n Tsize_t, flags int32) (r int32) { + bp := tls.Alloc(16) + defer tls.Free(16) + var c, k, kfold, v2 int32 + var endpat, endstr, p, ptail, s, stail, v6 uintptr + var tailcnt Tsize_t + var v9 bool + var _ /* pinc at bp+0 */ Tsize_t + var _ /* sinc at bp+8 */ Tsize_t + _, _, _, _, _, _, _, _, _, _, _, _, _ = c, endpat, endstr, k, kfold, p, ptail, s, stail, tailcnt, v2, v6, v9 + tailcnt = uint64(0) + if flags&int32(FNM_PERIOD) != 0 { + if Int32FromUint8(**(**uint8)(__ccgo_up(str))) == int32('.') && Int32FromUint8(**(**uint8)(__ccgo_up(pat))) != int32('.') { + return int32(FNM_NOMATCH) + } + } + for { + v2 = _pat_next(tls, pat, m, bp, flags) + c = v2 + switch v2 { + case -int32(2): + return int32(FNM_NOMATCH) + case -int32(5): + pat = pat + 1 + m = m - 1 + default: + k = _str_next(tls, str, n, bp+8) + if k <= 0 { + if c == END { + v2 = 0 + } else { + v2 = int32(FNM_NOMATCH) + } + return v2 + } + str = str + uintptr(**(**Tsize_t)(__ccgo_up(bp + 8))) + n = n - **(**Tsize_t)(__ccgo_up(bp + 8)) + if flags&int32(FNM_CASEFOLD) != 0 { + v2 = _casefold(tls, k) + } else { + v2 = k + } + kfold = v2 + if c == -int32(3) { + if !(_match_bracket(tls, pat, k, kfold) != 0) { + return int32(FNM_NOMATCH) + } + } else { + if c != -int32(4) && k != c && kfold != c { + return int32(FNM_NOMATCH) + } + } + pat = pat + uintptr(**(**Tsize_t)(__ccgo_up(bp))) + m = m - **(**Tsize_t)(__ccgo_up(bp)) + goto _1 + } + break + goto _1 + _1: + } + /* Compute real pat length if it was initially unknown/-1 */ + m = Xstrnlen(tls, pat, m) + endpat = pat + uintptr(m) + /* Find the last * in pat and count chars needed after it */ + v6 = pat + ptail = v6 + p = v6 + for { + if !(p < endpat) { + break + } + switch _pat_next(tls, p, Uint64FromInt64(int64(endpat)-int64(p)), bp, flags) { + case -int32(2): + return int32(FNM_NOMATCH) + case -int32(5): + tailcnt = uint64(0) + ptail = p + uintptr(1) + default: + tailcnt = tailcnt + 1 + break + } + goto _5 + _5: + ; + p = p + uintptr(**(**Tsize_t)(__ccgo_up(bp))) + } + /* Past this point we need not check for UNMATCHABLE in pat, + * because all of pat has already been parsed once. */ + /* Compute real str length if it was initially unknown/-1 */ + n = Xstrnlen(tls, str, n) + endstr = str + uintptr(n) + if n < tailcnt { + return int32(FNM_NOMATCH) + } + /* Find the final tailcnt chars of str, accounting for UTF-8. + * On illegal sequences we may get it wrong, but in that case + * we necessarily have a matching failure anyway. */ + s = endstr + for { + if !(s > str && tailcnt != 0) { + break + } + if v9 = uint32(**(**uint8)(__ccgo_up(s + uintptr(-Int32FromInt32(1))))) < uint32(128); !v9 { + if !!(**(**uintptr)(__ccgo_up((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale)) != 0) { + v2 = int32(4) + } else { + v2 = int32(1) + } + } + if v9 || v2 == int32(1) { + s = s - 1 + } else { + for { + s = s - 1 + v6 = s + if !(uint32(uint8(**(**uint8)(__ccgo_up(v6))))-uint32(0x80) < uint32(0x40) && s > str) { + break + } + } + } + goto _7 + _7: + ; + tailcnt = tailcnt - 1 + } + if tailcnt != 0 { + return int32(FNM_NOMATCH) + } + stail = s + /* Check that the pat and str tails match */ + p = ptail + for { + c = _pat_next(tls, p, Uint64FromInt64(int64(endpat)-int64(p)), bp, flags) + p = p + uintptr(**(**Tsize_t)(__ccgo_up(bp))) + v2 = _str_next(tls, s, Uint64FromInt64(int64(endstr)-int64(s)), bp+8) + k = v2 + if v2 <= 0 { + if c != END { + return int32(FNM_NOMATCH) + } + break + } + s = s + uintptr(**(**Tsize_t)(__ccgo_up(bp + 8))) + if flags&int32(FNM_CASEFOLD) != 0 { + v2 = _casefold(tls, k) + } else { + v2 = k + } + kfold = v2 + if c == -int32(3) { + if !(_match_bracket(tls, p-uintptr(**(**Tsize_t)(__ccgo_up(bp))), k, kfold) != 0) { + return int32(FNM_NOMATCH) + } + } else { + if c != -int32(4) && k != c && kfold != c { + return int32(FNM_NOMATCH) + } + } + goto _11 + _11: + } + /* We're all done with the tails now, so throw them out */ + endstr = stail + endpat = ptail + /* Match pattern components until there are none left */ + for pat < endpat { + p = pat + s = str + for { + c = _pat_next(tls, p, Uint64FromInt64(int64(endpat)-int64(p)), bp, flags) + p = p + uintptr(**(**Tsize_t)(__ccgo_up(bp))) + /* Encountering * completes/commits a component */ + if c == -int32(5) { + pat = p + str = s + break + } + k = _str_next(tls, s, Uint64FromInt64(int64(endstr)-int64(s)), bp+8) + if !(k != 0) { + return int32(FNM_NOMATCH) + } + if flags&int32(FNM_CASEFOLD) != 0 { + v2 = _casefold(tls, k) + } else { + v2 = k + } + kfold = v2 + if c == -int32(3) { + if !(_match_bracket(tls, p-uintptr(**(**Tsize_t)(__ccgo_up(bp))), k, kfold) != 0) { + break + } + } else { + if c != -int32(4) && k != c && kfold != c { + break + } + } + s = s + uintptr(**(**Tsize_t)(__ccgo_up(bp + 8))) + goto _14 + _14: + } + if c == -int32(5) { + continue + } + /* If we failed, advance str, by 1 char if it's a valid + * char, or past all invalid bytes otherwise. */ + k = _str_next(tls, str, Uint64FromInt64(int64(endstr)-int64(str)), bp+8) + if k > 0 { + str = str + uintptr(**(**Tsize_t)(__ccgo_up(bp + 8))) + } else { + str = str + 1 + for { + if !(_str_next(tls, str, Uint64FromInt64(int64(endstr)-int64(str)), bp+8) < 0) { + break + } + goto _16 + _16: + ; + str = str + 1 + } + } + } + return 0 +} + +func Xfnmatch(tls *TLS, pat uintptr, str uintptr, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v pat=%v str=%v flags=%v, (%v:)", tls, pat, str, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var c, v4 int32 + var p, s uintptr + var _ /* inc at bp+0 */ Tsize_t + _, _, _, _ = c, p, s, v4 + if flags&int32(FNM_PATHNAME) != 0 { + for { + s = str + for { + if !(**(**uint8)(__ccgo_up(s)) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(s))) != int32('/')) { + break + } + goto _2 + _2: + ; + s = s + 1 + } + p = pat + for { + v4 = _pat_next(tls, p, Uint64FromInt32(-Int32FromInt32(1)), bp, flags) + c = v4 + if !(v4 != END && c != int32('/')) { + break + } + goto _3 + _3: + ; + p = p + uintptr(**(**Tsize_t)(__ccgo_up(bp))) + } + if c != Int32FromUint8(**(**uint8)(__ccgo_up(s))) && (!(**(**uint8)(__ccgo_up(s)) != 0) || !(flags&Int32FromInt32(FNM_LEADING_DIR) != 0)) { + return int32(FNM_NOMATCH) + } + if _fnmatch_internal(tls, pat, Uint64FromInt64(int64(p)-int64(pat)), str, Uint64FromInt64(int64(s)-int64(str)), flags) != 0 { + return int32(FNM_NOMATCH) + } + if !(c != 0) { + return 0 + } + str = s + uintptr(1) + pat = p + uintptr(**(**Tsize_t)(__ccgo_up(bp))) + goto _1 + _1: + } + } else { + if flags&int32(FNM_LEADING_DIR) != 0 { + s = str + for { + if !(**(**uint8)(__ccgo_up(s)) != 0) { + break + } + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) != int32('/') { + goto _5 + } + if !(_fnmatch_internal(tls, pat, Uint64FromInt32(-Int32FromInt32(1)), str, Uint64FromInt64(int64(s)-int64(str)), flags) != 0) { + return 0 + } + goto _5 + _5: + ; + s = s + 1 + } + } + } + return _fnmatch_internal(tls, pat, Uint64FromInt32(-Int32FromInt32(1)), str, Uint64FromInt32(-Int32FromInt32(1)), flags) +} + +const GLOB_ABORTED = 2 +const GLOB_APPEND = 32 +const GLOB_DOOFFS = 8 +const GLOB_ERR = 1 +const GLOB_MARK = 2 +const GLOB_NOCHECK = 16 +const GLOB_NOESCAPE = 64 +const GLOB_NOMATCH = 3 +const GLOB_NOSORT = 4 +const GLOB_NOSPACE = 1 +const GLOB_NOSYS = 4 +const GLOB_PERIOD = 128 +const GLOB_TILDE = 4096 +const GLOB_TILDE_CHECK = 16384 + +type Tglob_t = struct { + Fgl_pathc Tsize_t + Fgl_pathv uintptr + Fgl_offs Tsize_t + F__dummy1 int32 + F__dummy2 [5]uintptr +} + +type Tmatch = struct { + Fnext uintptr +} + +func _append(tls *TLS, tail uintptr, name uintptr, len1 Tsize_t, mark int32) (r int32) { + var new1 uintptr + _ = new1 + new1 = Xmalloc(tls, uint64(8)+len1+uint64(2)) + if !(new1 != 0) { + return -int32(1) + } + (*Tmatch)(unsafe.Pointer(**(**uintptr)(__ccgo_up(tail)))).Fnext = new1 + (*Tmatch)(unsafe.Pointer(new1)).Fnext = UintptrFromInt32(0) + Xmemcpy(tls, new1+8, name, len1+uint64(1)) + if mark != 0 && len1 != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(name + uintptr(len1-uint64(1))))) != int32('/') { + *(*uint8)(unsafe.Pointer(new1 + 8 + uintptr(len1))) = uint8('/') + *(*uint8)(unsafe.Pointer(new1 + 8 + uintptr(len1+uint64(1)))) = uint8(0) + } + **(**uintptr)(__ccgo_up(tail)) = new1 + return 0 +} + +func _do_glob(tls *TLS, buf uintptr, pos Tsize_t, type1 int32, pat uintptr, flags int32, __ccgo_fp_errfunc uintptr, tail uintptr) (r1 int32) { + bp := tls.Alloc(128) + defer tls.Free(128) + var de, dir, p, p2, v2 uintptr + var fnm_flags, in_bracket, old_errno, overflow, r, readerr, v10, v9 int32 + var i, j, v4 Tptrdiff_t + var l, v1 Tsize_t + var saved_sep uint8 + var _ /* st at bp+0 */ Tstat + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = de, dir, fnm_flags, i, in_bracket, j, l, old_errno, overflow, p, p2, r, readerr, saved_sep, v1, v10, v2, v4, v9 + /* If GLOB_MARK is unused, we don't care about type. */ + if !(type1 != 0) && !(flags&Int32FromInt32(GLOB_MARK) != 0) { + type1 = int32(DT_REG) + } + /* Special-case the remaining pattern being all slashes, in + * which case we can use caller-passed type if it's a dir. */ + if **(**uint8)(__ccgo_up(pat)) != 0 && type1 != int32(DT_DIR) { + type1 = 0 + } + for pos+uint64(1) < uint64(PATH_MAX) && Int32FromUint8(**(**uint8)(__ccgo_up(pat))) == int32('/') { + v1 = pos + pos = pos + 1 + v2 = pat + pat = pat + 1 + **(**uint8)(__ccgo_up(buf + uintptr(v1))) = **(**uint8)(__ccgo_up(v2)) + } + /* Consume maximal [escaped-]literal prefix of pattern, copying + * and un-escaping it to the running buffer as we go. */ + i = 0 + j = 0 + in_bracket = 0 + overflow = 0 + for { + if !(Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(i)))) != int32('*') && Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(i)))) != int32('?') && (!(in_bracket != 0) || Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(i)))) != int32(']'))) { + break + } + if !(**(**uint8)(__ccgo_up(pat + uintptr(i))) != 0) { + if overflow != 0 { + return 0 + } + pat = pat + uintptr(i) + pos = pos + Uint64FromInt64(j) + v4 = Int64FromInt32(0) + j = v4 + i = v4 + break + } else { + if Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(i)))) == int32('[') { + in_bracket = int32(1) + } else { + if Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(i)))) == int32('\\') && !(flags&Int32FromInt32(GLOB_NOESCAPE) != 0) { + /* Backslashes inside a bracket are (at least by + * our interpretation) non-special, so if next + * char is ']' we have a complete expression. */ + if in_bracket != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(i+int64(1))))) == int32(']') { + break + } + /* Unpaired final backslash never matches. */ + if !(**(**uint8)(__ccgo_up(pat + uintptr(i+int64(1)))) != 0) { + return 0 + } + i = i + 1 + } + } + } + if Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(i)))) == int32('/') { + if overflow != 0 { + return 0 + } + in_bracket = 0 + pat = pat + uintptr(i+int64(1)) + i = int64(-int32(1)) + pos = pos + Uint64FromInt64(j+int64(1)) + j = int64(-int32(1)) + } + /* Only store a character if it fits in the buffer, but if + * a potential bracket expression is open, the overflow + * must be remembered and handled later only if the bracket + * is unterminated (and thereby a literal), so as not to + * disallow long bracket expressions with short matches. */ + if pos+Uint64FromInt64(j+Int64FromInt32(1)) < uint64(PATH_MAX) { + v4 = j + j = j + 1 + **(**uint8)(__ccgo_up(buf + uintptr(pos+Uint64FromInt64(v4)))) = **(**uint8)(__ccgo_up(pat + uintptr(i))) + } else { + if in_bracket != 0 { + overflow = int32(1) + } else { + return 0 + } + } + /* If we consume any new components, the caller-passed type + * or dummy type from above is no longer valid. */ + type1 = 0 + goto _3 + _3: + ; + i = i + 1 + } + **(**uint8)(__ccgo_up(buf + uintptr(pos))) = uint8(0) + if !(**(**uint8)(__ccgo_up(pat)) != 0) { + if flags&int32(GLOB_MARK) != 0 && (!(type1 != 0) || type1 == int32(DT_LNK)) && !(Xstat(tls, buf, bp) != 0) { + if (**(**Tstat)(__ccgo_up(bp))).Fst_mode&uint32(S_IFMT) == uint32(S_IFDIR) { + type1 = int32(DT_DIR) + } else { + type1 = int32(DT_REG) + } + } + if !(type1 != 0) && Xlstat(tls, buf, bp) != 0 { + if **(**int32)(__ccgo_up(X__errno_location(tls))) != int32(ENOENT) && ((*(*func(*TLS, uintptr, int32) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_errfunc})))(tls, buf, **(**int32)(__ccgo_up(X__errno_location(tls)))) != 0 || flags&int32(GLOB_ERR) != 0) { + return int32(GLOB_ABORTED) + } + return 0 + } + if _append(tls, tail, buf, pos, BoolInt32(flags&int32(GLOB_MARK) != 0 && type1 == int32(DT_DIR))) != 0 { + return int32(GLOB_NOSPACE) + } + return 0 + } + p2 = Xstrchr(tls, pat, int32('/')) + saved_sep = uint8('/') + /* Check if the '/' was escaped and, if so, remove the escape char + * so that it will not be unpaired when passed to fnmatch. */ + if p2 != 0 && !(flags&Int32FromInt32(GLOB_NOESCAPE) != 0) { + p = p2 + for { + if !(p > pat && Int32FromUint8(**(**uint8)(__ccgo_up(p + uintptr(-Int32FromInt32(1))))) == int32('\\')) { + break + } + goto _6 + _6: + ; + p = p - 1 + } + if (int64(p2)-int64(p))%int64(2) != 0 { + p2 = p2 - 1 + saved_sep = uint8('\\') + } + } + if pos != 0 { + v2 = buf + } else { + v2 = __ccgo_ts + 607 + } + dir = Xopendir(tls, v2) + if !(dir != 0) { + if (*(*func(*TLS, uintptr, int32) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_errfunc})))(tls, buf, **(**int32)(__ccgo_up(X__errno_location(tls)))) != 0 || flags&int32(GLOB_ERR) != 0 { + return int32(GLOB_ABORTED) + } + return 0 + } + old_errno = **(**int32)(__ccgo_up(X__errno_location(tls))) + for { + **(**int32)(__ccgo_up(X__errno_location(tls))) = 0 + v2 = Xreaddir(tls, dir) + de = v2 + if !(v2 != 0) { + break + } + /* Quickly skip non-directories when there's pattern left. */ + if p2 != 0 && (*Tdirent)(unsafe.Pointer(de)).Fd_type != 0 && Int32FromUint8((*Tdirent)(unsafe.Pointer(de)).Fd_type) != int32(DT_DIR) && Int32FromUint8((*Tdirent)(unsafe.Pointer(de)).Fd_type) != int32(DT_LNK) { + continue + } + l = _strlen(tls, de+19) + if l >= uint64(PATH_MAX)-pos { + continue + } + if p2 != 0 { + **(**uint8)(__ccgo_up(p2)) = uint8(0) + } + if flags&int32(GLOB_NOESCAPE) != 0 { + v9 = int32(FNM_NOESCAPE) + } else { + v9 = 0 + } + if !(flags&Int32FromInt32(GLOB_PERIOD) != 0) { + v10 = int32(FNM_PERIOD) + } else { + v10 = 0 + } + fnm_flags = v9 | v10 + if Xfnmatch(tls, pat, de+19, fnm_flags) != 0 { + continue + } + /* With GLOB_PERIOD, don't allow matching . or .. unless + * fnmatch would match them with FNM_PERIOD rules in effect. */ + if p2 != 0 && flags&int32(GLOB_PERIOD) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(de + 19))) == int32('.') && (!(**(**uint8)(__ccgo_up(de + 19 + 1)) != 0) || Int32FromUint8(**(**uint8)(__ccgo_up(de + 19 + 1))) == int32('.') && !(**(**uint8)(__ccgo_up(de + 19 + 2)) != 0)) && Xfnmatch(tls, pat, de+19, fnm_flags|int32(FNM_PERIOD)) != 0 { + continue + } + Xmemcpy(tls, buf+uintptr(pos), de+19, l+uint64(1)) + if p2 != 0 { + **(**uint8)(__ccgo_up(p2)) = saved_sep + } + if p2 != 0 { + v2 = p2 + } else { + v2 = __ccgo_ts + } + r = _do_glob(tls, buf, pos+l, Int32FromUint8((*Tdirent)(unsafe.Pointer(de)).Fd_type), v2, flags, __ccgo_fp_errfunc, tail) + if r != 0 { + Xclosedir(tls, dir) + return r + } + } + readerr = **(**int32)(__ccgo_up(X__errno_location(tls))) + if p2 != 0 { + **(**uint8)(__ccgo_up(p2)) = saved_sep + } + Xclosedir(tls, dir) + if readerr != 0 && ((*(*func(*TLS, uintptr, int32) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_errfunc})))(tls, buf, **(**int32)(__ccgo_up(X__errno_location(tls)))) != 0 || flags&int32(GLOB_ERR) != 0) { + return int32(GLOB_ABORTED) + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = old_errno + return 0 +} + +func _ignore_err(tls *TLS, path uintptr, err int32) (r int32) { + return 0 +} + +func _freelist(tls *TLS, head uintptr) { + var match, next uintptr + _, _ = match, next + match = (*Tmatch)(unsafe.Pointer(head)).Fnext + for { + if !(match != 0) { + break + } + next = (*Tmatch)(unsafe.Pointer(match)).Fnext + Xfree(tls, match) + goto _1 + _1: + ; + match = next + } +} + +func _sort(tls *TLS, a uintptr, b uintptr) (r int32) { + return Xstrcmp(tls, **(**uintptr)(__ccgo_up(a)), **(**uintptr)(__ccgo_up(b))) +} + +func _expand_tilde(tls *TLS, pat uintptr, buf uintptr, pos uintptr) (r int32) { + bp := tls.Alloc(64) + defer tls.Free(64) + var delim, v1 uint8 + var home, name_end, p, v2 uintptr + var i, v10 Tsize_t + var v4 int32 + var _ /* pw at bp+0 */ Tpasswd + var _ /* res at bp+48 */ uintptr + _, _, _, _, _, _, _, _, _ = delim, home, i, name_end, p, v1, v10, v2, v4 + p = **(**uintptr)(__ccgo_up(pat)) + uintptr(1) + i = uint64(0) + name_end = X__strchrnul(tls, p, int32('/')) + v1 = **(**uint8)(__ccgo_up(name_end)) + delim = v1 + if v1 != 0 { + v2 = name_end + name_end = name_end + 1 + **(**uint8)(__ccgo_up(v2)) = uint8(0) + } + **(**uintptr)(__ccgo_up(pat)) = name_end + if **(**uint8)(__ccgo_up(p)) != 0 { + v2 = UintptrFromInt32(0) + } else { + v2 = Xgetenv(tls, __ccgo_ts+1434) + } + home = v2 + if !(home != 0) { + if **(**uint8)(__ccgo_up(p)) != 0 { + v4 = Xgetpwnam_r(tls, p, bp, buf, uint64(PATH_MAX), bp+48) + } else { + v4 = Xgetpwuid_r(tls, Xgetuid(tls), bp, buf, uint64(PATH_MAX), bp+48) + } + switch v4 { + case int32(ENOMEM): + goto _5 + default: + goto _6 + case 0: + goto _7 + } + goto _8 + _5: + ; + return int32(GLOB_NOSPACE) + _7: + ; + if !!(**(**uintptr)(__ccgo_up(bp + 48)) != 0) { + goto _9 + } + _6: + ; + return int32(GLOB_NOMATCH) + _9: + ; + _8: + ; + home = (**(**Tpasswd)(__ccgo_up(bp))).Fpw_dir + } + for i < Uint64FromInt32(Int32FromInt32(PATH_MAX)-Int32FromInt32(2)) && **(**uint8)(__ccgo_up(home)) != 0 { + v10 = i + i = i + 1 + v2 = home + home = home + 1 + **(**uint8)(__ccgo_up(buf + uintptr(v10))) = **(**uint8)(__ccgo_up(v2)) + } + if **(**uint8)(__ccgo_up(home)) != 0 { + return int32(GLOB_NOMATCH) + } + v1 = delim + **(**uint8)(__ccgo_up(buf + uintptr(i))) = v1 + if v1 != 0 { + i = i + 1 + v10 = i + **(**uint8)(__ccgo_up(buf + uintptr(v10))) = uint8(0) + } + **(**Tsize_t)(__ccgo_up(pos)) = i + return 0 +} + +type t__ccgo_fp__Xglob_2 = func(*TLS, uintptr, int32) int32 + +func Xglob(tls *TLS, pat uintptr, flags int32, __ccgo_fp_errfunc uintptr, g uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v pat=%v flags=%v __ccgo_fp_errfunc=%v g=%v, (%v:)", tls, pat, flags, __ccgo_fp_errfunc, g, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(4128) + defer tls.Free(4128) + var cnt, i, offs Tsize_t + var error1 int32 + var p, pathv uintptr + var v1 uint64 + var _ /* buf at bp+16 */ [4096]uint8 + var _ /* head at bp+0 */ Tmatch + var _ /* pos at bp+4112 */ Tsize_t + var _ /* s at bp+4120 */ uintptr + var _ /* tail at bp+8 */ uintptr + _, _, _, _, _, _, _ = cnt, error1, i, offs, p, pathv, v1 + **(**Tmatch)(__ccgo_up(bp)) = struct { + Fnext uintptr + }{} + **(**uintptr)(__ccgo_up(bp + 8)) = bp + if flags&int32(GLOB_DOOFFS) != 0 { + v1 = (*Tglob_t)(unsafe.Pointer(g)).Fgl_offs + } else { + v1 = uint64(0) + } + offs = v1 + error1 = 0 + if !(__ccgo_fp_errfunc != 0) { + __ccgo_fp_errfunc = __ccgo_fp(_ignore_err) + } + if !(flags&Int32FromInt32(GLOB_APPEND) != 0) { + (*Tglob_t)(unsafe.Pointer(g)).Fgl_offs = offs + (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathc = uint64(0) + (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv = UintptrFromInt32(0) + } + if **(**uint8)(__ccgo_up(pat)) != 0 { + p = Xstrdup(tls, pat) + if !(p != 0) { + return int32(GLOB_NOSPACE) + } + (**(**[4096]uint8)(__ccgo_up(bp + 16)))[0] = uint8(0) + **(**Tsize_t)(__ccgo_up(bp + 4112)) = uint64(0) + **(**uintptr)(__ccgo_up(bp + 4120)) = p + if flags&(Int32FromInt32(GLOB_TILDE)|Int32FromInt32(GLOB_TILDE_CHECK)) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('~') { + error1 = _expand_tilde(tls, bp+4120, bp+16, bp+4112) + } + if !(error1 != 0) { + error1 = _do_glob(tls, bp+16, **(**Tsize_t)(__ccgo_up(bp + 4112)), 0, **(**uintptr)(__ccgo_up(bp + 4120)), flags, __ccgo_fp_errfunc, bp+8) + } + Xfree(tls, p) + } + if error1 == int32(GLOB_NOSPACE) { + _freelist(tls, bp) + return error1 + } + cnt = uint64(0) + **(**uintptr)(__ccgo_up(bp + 8)) = (**(**Tmatch)(__ccgo_up(bp))).Fnext + for { + if !(**(**uintptr)(__ccgo_up(bp + 8)) != 0) { + break + } + goto _2 + _2: + ; + **(**uintptr)(__ccgo_up(bp + 8)) = (*Tmatch)(unsafe.Pointer(**(**uintptr)(__ccgo_up(bp + 8)))).Fnext + cnt = cnt + 1 + } + if !(cnt != 0) { + if flags&int32(GLOB_NOCHECK) != 0 { + **(**uintptr)(__ccgo_up(bp + 8)) = bp + if _append(tls, bp+8, pat, _strlen(tls, pat), 0) != 0 { + return int32(GLOB_NOSPACE) + } + cnt = cnt + 1 + } else { + if !(error1 != 0) { + return int32(GLOB_NOMATCH) + } + } + } + if flags&int32(GLOB_APPEND) != 0 { + pathv = Xrealloc(tls, (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv, (offs+(*Tglob_t)(unsafe.Pointer(g)).Fgl_pathc+cnt+uint64(1))*uint64(8)) + if !(pathv != 0) { + _freelist(tls, bp) + return int32(GLOB_NOSPACE) + } + (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv = pathv + offs = offs + (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathc + } else { + (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv = Xmalloc(tls, (offs+cnt+uint64(1))*uint64(8)) + if !((*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv != 0) { + _freelist(tls, bp) + return int32(GLOB_NOSPACE) + } + i = uint64(0) + for { + if !(i < offs) { + break + } + **(**uintptr)(__ccgo_up((*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv + uintptr(i)*8)) = UintptrFromInt32(0) + goto _3 + _3: + ; + i = i + 1 + } + } + i = uint64(0) + **(**uintptr)(__ccgo_up(bp + 8)) = (**(**Tmatch)(__ccgo_up(bp))).Fnext + for { + if !(i < cnt) { + break + } + **(**uintptr)(__ccgo_up((*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv + uintptr(offs+i)*8)) = **(**uintptr)(__ccgo_up(bp + 8)) + 8 + goto _4 + _4: + ; + **(**uintptr)(__ccgo_up(bp + 8)) = (*Tmatch)(unsafe.Pointer(**(**uintptr)(__ccgo_up(bp + 8)))).Fnext + i = i + 1 + } + **(**uintptr)(__ccgo_up((*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv + uintptr(offs+i)*8)) = UintptrFromInt32(0) + **(**Tsize_t)(__ccgo_up(g)) += cnt + if !(flags&Int32FromInt32(GLOB_NOSORT) != 0) { + Xqsort(tls, (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv+uintptr(offs)*8, cnt, uint64(8), __ccgo_fp(_sort)) + } + return error1 +} + +func Xglobfree(tls *TLS, g uintptr) { + if __ccgo_strace { + trc("tls=%v g=%v, (%v:)", tls, g, origin(2)) + } + var i Tsize_t + _ = i + i = uint64(0) + for { + if !(i < (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathc) { + break + } + Xfree(tls, **(**uintptr)(__ccgo_up((*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv + uintptr((*Tglob_t)(unsafe.Pointer(g)).Fgl_offs+i)*8))-uintptr(uint64(UintptrFromInt32(0)+8))) + goto _1 + _1: + ; + i = i + 1 + } + Xfree(tls, (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv) + (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathc = uint64(0) + (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv = UintptrFromInt32(0) +} + +const ASSERTION = -2 +const ASSERT_AT_BOL = 1 +const ASSERT_AT_BOW = 16 +const ASSERT_AT_EOL = 2 +const ASSERT_AT_EOW = 32 +const ASSERT_AT_WB = 64 +const ASSERT_AT_WB_NEG = 128 +const ASSERT_BACKREF = 256 +const ASSERT_CHAR_CLASS = 4 +const ASSERT_CHAR_CLASS_NEG = 8 +const ASSERT_LAST = 256 +const BACKREF = -4 +const COPY_MAXIMIZE_FIRST_TAG = 2 +const COPY_REMOVE_TAGS = 1 +const EMPTY1 = -1 +const MAX_NEG_CLASSES = 64 +const REG_BADBR = 10 +const REG_BADPAT = 2 +const REG_BADRPT = 13 +const REG_EBRACE = 9 +const REG_EBRACK = 7 +const REG_ECOLLATE = 3 +const REG_ECTYPE = 4 +const REG_EESCAPE = 5 +const REG_ENOSYS = -1 +const REG_EPAREN = 8 +const REG_ERANGE = 11 +const REG_ESPACE = 12 +const REG_ESUBREG = 6 +const REG_EXTENDED = 1 +const REG_ICASE = 2 +const REG_NEWLINE = 4 +const REG_NOMATCH = 1 +const REG_NOSUB = 8 +const REG_NOTBOL = 1 +const REG_NOTEOL = 2 +const REG_OK = 0 +const TAG = -3 +const TRE_CHAR_MAX = 1114111 +const TRE_MEM_BLOCK_SIZE = 1024 +const TRE_REGEX_T_FIELD = 0 +const tre_ctype = 0 +const tre_isalnum = 0 +const tre_isalpha = 0 +const tre_isblank = 0 +const tre_iscntrl = 0 +const tre_isctype = 0 +const tre_isdigit = 0 +const tre_isgraph = 0 +const tre_islower = 0 +const tre_isprint = 0 +const tre_ispunct = 0 +const tre_isspace = 0 +const tre_isupper = 0 +const tre_isxdigit = 0 +const tre_mem_alloc_impl = 0 +const tre_mem_destroy = 0 +const tre_mem_new_impl = 0 +const tre_strlen = 0 +const tre_tolower = 0 +const tre_toupper = 0 +const xcalloc = 0 +const xfree = 0 +const xmalloc = 0 +const xrealloc = 0 + +type Tregoff_t = int64 + +type Tregex_t = struct { + Fre_nsub Tsize_t + F__opaque uintptr + F__padding [4]uintptr + F__nsub2 Tsize_t + F__padding2 uint8 +} + +type Tre_pattern_buffer = Tregex_t + +type Tregmatch_t = struct { + Frm_so Tregoff_t + Frm_eo Tregoff_t +} + +type Treg_errcode_t = int32 + +type Ttre_char_t = int32 + +type Ttre_cint_t = uint32 + +type Ttre_ctype_t = uint64 + +type Ttre_tnfa_transition_t = struct { + Fcode_min Ttre_cint_t + Fcode_max Ttre_cint_t + Fstate uintptr + Fstate_id int32 + Ftags uintptr + Fassertions int32 + Fu struct { + Fbackref [0]int32 + Fclass Ttre_ctype_t + } + Fneg_classes uintptr +} + +type Ttnfa_transition = Ttre_tnfa_transition_t + +type Ttre_tag_direction_t = int32 + +const _TRE_TAG_MINIMIZE = 0 +const _TRE_TAG_MAXIMIZE = 1 + +type Ttre_submatch_data = struct { + Fso_tag int32 + Feo_tag int32 + Fparents uintptr +} + +type Ttre_submatch_data_t = struct { + Fso_tag int32 + Feo_tag int32 + Fparents uintptr +} + +type Ttre_tnfa_t = struct { + Ftransitions uintptr + Fnum_transitions uint32 + Finitial uintptr + Ffinal uintptr + Fsubmatch_data uintptr + Ffirstpos_chars uintptr + Ffirst_char int32 + Fnum_submatches uint32 + Ftag_directions uintptr + Fminimal_tags uintptr + Fnum_tags int32 + Fnum_minimals int32 + Fend_tag int32 + Fnum_states int32 + Fcflags int32 + Fhave_backrefs int32 + Fhave_approx int32 +} + +type Ttnfa = Ttre_tnfa_t + +type Ttre_list_t = struct { + Fdata uintptr + Fnext uintptr +} + +type Ttre_list = Ttre_list_t + +type Ttre_mem_t = uintptr + +type Ttre_mem_struct = struct { + Fblocks uintptr + Fcurrent uintptr + Fptr uintptr + Fn Tsize_t + Ffailed int32 + Fprovided uintptr +} + +/*********************************************************************** + from tre-compile.h +***********************************************************************/ + +type Ttre_pos_and_tags_t = struct { + Fposition int32 + Fcode_min int32 + Fcode_max int32 + Ftags uintptr + Fassertions int32 + Fclass Ttre_ctype_t + Fneg_classes uintptr + Fbackref int32 +} + +/*********************************************************************** + from tre-ast.c and tre-ast.h +***********************************************************************/ + +// C documentation +// +// /* The different AST node types. */ +type Ttre_ast_type_t = int32 + +const _LITERAL = 0 +const _CATENATION = 1 +const _ITERATION = 2 +const _UNION = 3 + +/* Special subtypes of TRE_LITERAL. */ + +// C documentation +// +// /* A generic AST node. All AST nodes consist of this node on the top +// level with `obj' pointing to the actual content. */ +type Ttre_ast_node_t = struct { + Ftype1 Ttre_ast_type_t + Fobj uintptr + Fnullable int32 + Fsubmatch_id int32 + Fnum_submatches int32 + Fnum_tags int32 + Ffirstpos uintptr + Flastpos uintptr +} + +// C documentation +// +// /* A "literal" node. These are created for assertions, back references, +// tags, matching parameter settings, and all expressions that match one +// character. */ +type Ttre_literal_t = struct { + Fcode_min int64 + Fcode_max int64 + Fposition int32 + Fclass Ttre_ctype_t + Fneg_classes uintptr +} + +// C documentation +// +// /* A "catenation" node. These are created when two regexps are concatenated. +// If there are more than one subexpressions in sequence, the `left' part +// holds all but the last, and `right' part holds the last subexpression +// (catenation is left associative). */ +type Ttre_catenation_t = struct { + Fleft uintptr + Fright uintptr +} + +// C documentation +// +// /* An "iteration" node. These are created for the "*", "+", "?", and "{m,n}" +// operators. */ +type Ttre_iteration_t = struct { + Farg uintptr + Fmin int32 + Fmax int32 + F__ccgo16 uint8 +} + +// C documentation +// +// /* An "union" node. These are created for the "|" operator. */ +type Ttre_union_t = struct { + Fleft uintptr + Fright uintptr +} + +func _tre_ast_new_node(tls *TLS, mem Ttre_mem_t, type1 int32, obj uintptr) (r uintptr) { + var node uintptr + _ = node + node = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), int32(1), uint64(48)) + if !(node != 0) || !(obj != 0) { + return uintptr(0) + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj = obj + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 = type1 + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnullable = -int32(1) + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fsubmatch_id = -int32(1) + return node +} + +func _tre_ast_new_literal(tls *TLS, mem Ttre_mem_t, code_min int32, code_max int32, position int32) (r uintptr) { + var lit, node uintptr + _, _ = lit, node + lit = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), int32(1), uint64(40)) + node = _tre_ast_new_node(tls, mem, int32(_LITERAL), lit) + if !(node != 0) { + return uintptr(0) + } + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min = int64(code_min) + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max = int64(code_max) + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition = position + return node +} + +func _tre_ast_new_iter(tls *TLS, mem Ttre_mem_t, arg uintptr, min int32, max int32, minimal int32) (r uintptr) { + var iter, node uintptr + _, _ = iter, node + iter = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), int32(1), uint64(24)) + node = _tre_ast_new_node(tls, mem, int32(_ITERATION), iter) + if !(node != 0) { + return uintptr(0) + } + (*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg = arg + (*Ttre_iteration_t)(unsafe.Pointer(iter)).Fmin = min + (*Ttre_iteration_t)(unsafe.Pointer(iter)).Fmax = max + SetBitFieldPtr8Uint32(iter+16, Uint32FromInt32(minimal), 0, 0x1) + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_submatches = (*Ttre_ast_node_t)(unsafe.Pointer(arg)).Fnum_submatches + return node +} + +func _tre_ast_new_union(tls *TLS, mem Ttre_mem_t, left uintptr, right uintptr) (r uintptr) { + var node, un uintptr + _, _ = node, un + if !(left != 0) { + return right + } + un = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), int32(1), uint64(16)) + node = _tre_ast_new_node(tls, mem, int32(_UNION), un) + if !(node != 0) || !(right != 0) { + return uintptr(0) + } + (*Ttre_union_t)(unsafe.Pointer(un)).Fleft = left + (*Ttre_union_t)(unsafe.Pointer(un)).Fright = right + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_submatches = (*Ttre_ast_node_t)(unsafe.Pointer(left)).Fnum_submatches + (*Ttre_ast_node_t)(unsafe.Pointer(right)).Fnum_submatches + return node +} + +func _tre_ast_new_catenation(tls *TLS, mem Ttre_mem_t, left uintptr, right uintptr) (r uintptr) { + var cat, node uintptr + _, _ = cat, node + if !(left != 0) { + return right + } + cat = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), int32(1), uint64(16)) + node = _tre_ast_new_node(tls, mem, int32(_CATENATION), cat) + if !(node != 0) { + return uintptr(0) + } + (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft = left + (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright = right + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_submatches = (*Ttre_ast_node_t)(unsafe.Pointer(left)).Fnum_submatches + (*Ttre_ast_node_t)(unsafe.Pointer(right)).Fnum_submatches + return node +} + +/*********************************************************************** + from tre-stack.c and tre-stack.h +***********************************************************************/ + +type Ttre_stack_t = struct { + Fsize int32 + Fmax_size int32 + Fincrement int32 + Fptr int32 + Fstack uintptr +} + +/*********************************************************************** + from tre-stack.c and tre-stack.h +***********************************************************************/ + +type Ttre_stack_rec = Ttre_stack_t + +/* Just to save some typing. */ + +type Ttre_stack_item = struct { + Fint_value [0]int32 + Fvoidptr_value uintptr +} + +func _tre_stack_new(tls *TLS, size int32, max_size int32, increment int32) (r uintptr) { + var s uintptr + _ = s + s = Xmalloc(tls, uint64(24)) + if s != UintptrFromInt32(0) { + (*Ttre_stack_t)(unsafe.Pointer(s)).Fstack = Xmalloc(tls, uint64(8)*Uint64FromInt32(size)) + if (*Ttre_stack_t)(unsafe.Pointer(s)).Fstack == UintptrFromInt32(0) { + Xfree(tls, s) + return UintptrFromInt32(0) + } + (*Ttre_stack_t)(unsafe.Pointer(s)).Fsize = size + (*Ttre_stack_t)(unsafe.Pointer(s)).Fmax_size = max_size + (*Ttre_stack_t)(unsafe.Pointer(s)).Fincrement = increment + (*Ttre_stack_t)(unsafe.Pointer(s)).Fptr = 0 + } + return s +} + +func _tre_stack_destroy(tls *TLS, s uintptr) { + Xfree(tls, (*Ttre_stack_t)(unsafe.Pointer(s)).Fstack) + Xfree(tls, s) +} + +func _tre_stack_num_objects(tls *TLS, s uintptr) (r int32) { + return (*Ttre_stack_t)(unsafe.Pointer(s)).Fptr +} + +func _tre_stack_push(tls *TLS, s uintptr, value Ttre_stack_item) (r Treg_errcode_t) { + var new_buffer uintptr + var new_size int32 + _, _ = new_buffer, new_size + if (*Ttre_stack_t)(unsafe.Pointer(s)).Fptr < (*Ttre_stack_t)(unsafe.Pointer(s)).Fsize { + **(**Ttre_stack_item)(__ccgo_up((*Ttre_stack_t)(unsafe.Pointer(s)).Fstack + uintptr((*Ttre_stack_t)(unsafe.Pointer(s)).Fptr)*8)) = value + (*Ttre_stack_t)(unsafe.Pointer(s)).Fptr = (*Ttre_stack_t)(unsafe.Pointer(s)).Fptr + 1 + } else { + if (*Ttre_stack_t)(unsafe.Pointer(s)).Fsize >= (*Ttre_stack_t)(unsafe.Pointer(s)).Fmax_size { + return int32(REG_ESPACE) + } else { + new_size = (*Ttre_stack_t)(unsafe.Pointer(s)).Fsize + (*Ttre_stack_t)(unsafe.Pointer(s)).Fincrement + if new_size > (*Ttre_stack_t)(unsafe.Pointer(s)).Fmax_size { + new_size = (*Ttre_stack_t)(unsafe.Pointer(s)).Fmax_size + } + new_buffer = Xrealloc(tls, (*Ttre_stack_t)(unsafe.Pointer(s)).Fstack, uint64(8)*Uint64FromInt32(new_size)) + if new_buffer == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + (*Ttre_stack_t)(unsafe.Pointer(s)).Fsize = new_size + (*Ttre_stack_t)(unsafe.Pointer(s)).Fstack = new_buffer + _tre_stack_push(tls, s, value) + } + } + return REG_OK +} + +func _tre_stack_push_int(tls *TLS, s uintptr, value int32) (r Treg_errcode_t) { + var item Ttre_stack_item + _ = item + *(*int32)(unsafe.Pointer(&item)) = value + return _tre_stack_push(tls, s, item) +} + +func _tre_stack_push_voidptr(tls *TLS, s uintptr, value uintptr) (r Treg_errcode_t) { + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* item at bp+0 */ Ttre_stack_item + *(*uintptr)(unsafe.Pointer(bp)) = value + return _tre_stack_push(tls, s, **(**Ttre_stack_item)(__ccgo_up(bp))) +} + +func _tre_stack_pop_int(tls *TLS, s uintptr) (r int32) { + var v1 int32 + var v2 uintptr + _, _ = v1, v2 + v2 = s + 12 + *(*int32)(unsafe.Pointer(v2)) = *(*int32)(unsafe.Pointer(v2)) - 1 + v1 = *(*int32)(unsafe.Pointer(v2)) + return *(*int32)(unsafe.Pointer(&**(**Ttre_stack_item)(__ccgo_up((*Ttre_stack_t)(unsafe.Pointer(s)).Fstack + uintptr(v1)*8)))) +} + +func _tre_stack_pop_voidptr(tls *TLS, s uintptr) (r uintptr) { + var v1 int32 + var v2 uintptr + _, _ = v1, v2 + v2 = s + 12 + *(*int32)(unsafe.Pointer(v2)) = *(*int32)(unsafe.Pointer(v2)) - 1 + v1 = *(*int32)(unsafe.Pointer(v2)) + return *(*uintptr)(unsafe.Pointer((*Ttre_stack_t)(unsafe.Pointer(s)).Fstack + uintptr(v1)*8)) +} + +/*********************************************************************** + from tre-parse.c and tre-parse.h +***********************************************************************/ + +// C documentation +// +// /* Parse context. */ +type Ttre_parse_ctx_t = struct { + Fmem Ttre_mem_t + Fstack uintptr + Fn uintptr + Fs uintptr + Fstart uintptr + Fsubmatch_id int32 + Fposition int32 + Fmax_backref int32 + Fcflags int32 +} + +// C documentation +// +// /* Some macros for expanding \w, \s, etc. */ +var _tre_macros = [13]struct { + Fc uint8 + Fexpansion uintptr +}{ + 0: { + Fc: uint8('t'), + Fexpansion: __ccgo_ts + 1439, + }, + 1: { + Fc: uint8('n'), + Fexpansion: __ccgo_ts + 301, + }, + 2: { + Fc: uint8('r'), + Fexpansion: __ccgo_ts + 1441, + }, + 3: { + Fc: uint8('f'), + Fexpansion: __ccgo_ts + 1443, + }, + 4: { + Fc: uint8('a'), + Fexpansion: __ccgo_ts + 1445, + }, + 5: { + Fc: uint8('e'), + Fexpansion: __ccgo_ts + 1447, + }, + 6: { + Fc: uint8('w'), + Fexpansion: __ccgo_ts + 1449, + }, + 7: { + Fc: uint8('W'), + Fexpansion: __ccgo_ts + 1462, + }, + 8: { + Fc: uint8('s'), + Fexpansion: __ccgo_ts + 1476, + }, + 9: { + Fc: uint8('S'), + Fexpansion: __ccgo_ts + 1488, + }, + 10: { + Fc: uint8('d'), + Fexpansion: __ccgo_ts + 1501, + }, + 11: { + Fc: uint8('D'), + Fexpansion: __ccgo_ts + 1513, + }, + 12: {}, +} + +// C documentation +// +// /* Expands a macro delimited by `regex' and `regex_end' to `buf', which +// must have at least `len' items. Sets buf[0] to zero if the there +// is no match in `tre_macros'. */ +func _tre_expand_macro(tls *TLS, s uintptr) (r uintptr) { + var i int32 + _ = i + i = 0 + for { + if !(_tre_macros[i].Fc != 0 && Int32FromUint8(_tre_macros[i].Fc) != Int32FromUint8(**(**uint8)(__ccgo_up(s)))) { + break + } + goto _1 + _1: + ; + i = i + 1 + } + return _tre_macros[i].Fexpansion +} + +func _tre_compare_lit(tls *TLS, a uintptr, b uintptr) (r int32) { + var la, lb uintptr + _, _ = la, lb + la = a + lb = b + /* assumes the range of valid code_min is < INT_MAX */ + return int32((*Ttre_literal_t)(unsafe.Pointer(**(**uintptr)(__ccgo_up(la)))).Fcode_min - (*Ttre_literal_t)(unsafe.Pointer(**(**uintptr)(__ccgo_up(lb)))).Fcode_min) +} + +type Tliterals = struct { + Fmem Ttre_mem_t + Fa uintptr + Flen1 int32 + Fcap1 int32 +} + +func _tre_new_lit(tls *TLS, p uintptr) (r uintptr) { + var a, v2 uintptr + var v1 int32 + _, _, _ = a, v1, v2 + if (*Tliterals)(unsafe.Pointer(p)).Flen1 >= (*Tliterals)(unsafe.Pointer(p)).Fcap1 { + if (*Tliterals)(unsafe.Pointer(p)).Fcap1 >= Int32FromInt32(1)< max { + return int32(REG_ERANGE) + } + s = s + uintptr(len1) + } + } + if class != 0 && (*Tneg)(unsafe.Pointer(neg)).Fnegate != 0 { + if (*Tneg)(unsafe.Pointer(neg)).Flen1 >= int32(MAX_NEG_CLASSES) { + return int32(REG_ESPACE) + } + v6 = neg + 4 + v2 = *(*int32)(unsafe.Pointer(v6)) + *(*int32)(unsafe.Pointer(v6)) = *(*int32)(unsafe.Pointer(v6)) + 1 + **(**Ttre_ctype_t)(__ccgo_up(neg + 8 + uintptr(v2)*8)) = class + } else { + lit = _tre_new_lit(tls, ls) + if !(lit != 0) { + return int32(REG_ESPACE) + } + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min = int64(min) + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max = int64(max) + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fclass = class + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition = -int32(1) + /* Add opposite-case codepoints if REG_ICASE is present. + It seems that POSIX requires that bracket negation + should happen before case-folding, but most practical + implementations do it the other way around. Changing + the order would need efficient representation of + case-fold ranges and bracket range sets even with + simple patterns so this is ok for now. */ + if (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fcflags&int32(REG_ICASE) != 0 && !(class != 0) { + if _add_icase_literals(tls, ls, min, max) != 0 { + return int32(REG_ESPACE) + } + } + } + goto _1 + _1: + } + return r +} + +func _parse_bracket(tls *TLS, ctx uintptr, s uintptr) (r Treg_errcode_t) { + bp := tls.Alloc(544) + defer tls.Free(544) + var err Treg_errcode_t + var i, max, min, negmax, negmin, v1 int32 + var lit, n, nc, node uintptr + var _ /* ls at bp+0 */ Tliterals + var _ /* neg at bp+24 */ Tneg + _, _, _, _, _, _, _, _, _, _, _ = err, i, lit, max, min, n, nc, negmax, negmin, node, v1 + node = uintptr(0) + nc = uintptr(0) + (**(**Tliterals)(__ccgo_up(bp))).Fmem = (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem + (**(**Tliterals)(__ccgo_up(bp))).Flen1 = 0 + (**(**Tliterals)(__ccgo_up(bp))).Fcap1 = int32(32) + (**(**Tliterals)(__ccgo_up(bp))).Fa = Xmalloc(tls, Uint64FromInt32((**(**Tliterals)(__ccgo_up(bp))).Fcap1)*uint64(8)) + if !((**(**Tliterals)(__ccgo_up(bp))).Fa != 0) { + return int32(REG_ESPACE) + } + (**(**Tneg)(__ccgo_up(bp + 24))).Flen1 = 0 + (**(**Tneg)(__ccgo_up(bp + 24))).Fnegate = BoolInt32(Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('^')) + if (**(**Tneg)(__ccgo_up(bp + 24))).Fnegate != 0 { + s = s + 1 + } + err = _parse_bracket_terms(tls, ctx, s, bp, bp+24) + if err != REG_OK { + goto parse_bracket_done + } + if (**(**Tneg)(__ccgo_up(bp + 24))).Fnegate != 0 { + /* + * With REG_NEWLINE, POSIX requires that newlines are not matched by + * any form of a non-matching list. + */ + if (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fcflags&int32(REG_NEWLINE) != 0 { + lit = _tre_new_lit(tls, bp) + if !(lit != 0) { + err = int32(REG_ESPACE) + goto parse_bracket_done + } + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min = int64('\n') + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max = int64('\n') + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition = -int32(1) + } + /* Sort the array if we need to negate it. */ + Xqsort(tls, (**(**Tliterals)(__ccgo_up(bp))).Fa, Uint64FromInt32((**(**Tliterals)(__ccgo_up(bp))).Flen1), uint64(8), __ccgo_fp(_tre_compare_lit)) + /* extra lit for the last negated range */ + lit = _tre_new_lit(tls, bp) + if !(lit != 0) { + err = int32(REG_ESPACE) + goto parse_bracket_done + } + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min = int64(Int32FromInt32(TRE_CHAR_MAX) + Int32FromInt32(1)) + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max = int64(Int32FromInt32(TRE_CHAR_MAX) + Int32FromInt32(1)) + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition = -int32(1) + /* negated classes */ + if (**(**Tneg)(__ccgo_up(bp + 24))).Flen1 != 0 { + nc = X__tre_mem_alloc_impl(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, 0, UintptrFromInt32(0), 0, Uint64FromInt32((**(**Tneg)(__ccgo_up(bp + 24))).Flen1+Int32FromInt32(1))*uint64(8)) + if !(nc != 0) { + err = int32(REG_ESPACE) + goto parse_bracket_done + } + Xmemcpy(tls, nc, bp+24+8, Uint64FromInt32((**(**Tneg)(__ccgo_up(bp + 24))).Flen1)*uint64(8)) + **(**Ttre_ctype_t)(__ccgo_up(nc + uintptr((**(**Tneg)(__ccgo_up(bp + 24))).Flen1)*8)) = uint64(0) + } + } + /* Build a union of the items in the array, negated if necessary. */ + v1 = Int32FromInt32(0) + negmin = v1 + negmax = v1 + i = 0 + for { + if !(i < (**(**Tliterals)(__ccgo_up(bp))).Flen1) { + break + } + lit = **(**uintptr)(__ccgo_up((**(**Tliterals)(__ccgo_up(bp))).Fa + uintptr(i)*8)) + min = int32((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min) + max = int32((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max) + if (**(**Tneg)(__ccgo_up(bp + 24))).Fnegate != 0 { + if min <= negmin { + /* Overlap. */ + if max+int32(1) >= negmin { + v1 = max + int32(1) + } else { + v1 = negmin + } + negmin = v1 + goto _2 + } + negmax = min - int32(1) + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min = int64(negmin) + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max = int64(negmax) + negmin = max + int32(1) + } + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition = (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fposition + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fneg_classes = nc + n = _tre_ast_new_node(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, int32(_LITERAL), lit) + node = _tre_ast_new_union(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, node, n) + if !(node != 0) { + err = int32(REG_ESPACE) + break + } + goto _2 + _2: + ; + i = i + 1 + } + goto parse_bracket_done +parse_bracket_done: + ; + Xfree(tls, (**(**Tliterals)(__ccgo_up(bp))).Fa) + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fposition = (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fposition + 1 + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fn = node + return err +} + +func _parse_dup_count(tls *TLS, s uintptr, n uintptr) (r uintptr) { + **(**int32)(__ccgo_up(n)) = -int32(1) + if !(BoolInt32(uint32(**(**uint8)(__ccgo_up(s)))-Uint32FromUint8('0') < Uint32FromInt32(10)) != 0) { + return s + } + **(**int32)(__ccgo_up(n)) = 0 + for { + **(**int32)(__ccgo_up(n)) = int32(10)***(**int32)(__ccgo_up(n)) + (Int32FromUint8(**(**uint8)(__ccgo_up(s))) - int32('0')) + s = s + 1 + if !(BoolInt32(uint32(**(**uint8)(__ccgo_up(s)))-Uint32FromUint8('0') < Uint32FromInt32(10)) != 0) || **(**int32)(__ccgo_up(n)) > int32(RE_DUP_MAX) { + break + } + goto _1 + _1: + } + return s +} + +func _parse_dup(tls *TLS, s uintptr, ere int32, pmin uintptr, pmax uintptr) (r uintptr) { + bp := tls.Alloc(16) + defer tls.Free(16) + var v1, v4 uintptr + var v2, v3, v5 bool + var _ /* max at bp+4 */ int32 + var _ /* min at bp+0 */ int32 + _, _, _, _, _ = v1, v2, v3, v4, v5 + s = _parse_dup_count(tls, s, bp) + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32(',') { + s = _parse_dup_count(tls, s+uintptr(1), bp+4) + } else { + **(**int32)(__ccgo_up(bp + 4)) = **(**int32)(__ccgo_up(bp)) + } + if v3 = **(**int32)(__ccgo_up(bp + 4)) < **(**int32)(__ccgo_up(bp)) && **(**int32)(__ccgo_up(bp + 4)) >= 0 || **(**int32)(__ccgo_up(bp + 4)) > int32(RE_DUP_MAX) || **(**int32)(__ccgo_up(bp)) > int32(RE_DUP_MAX) || **(**int32)(__ccgo_up(bp)) < 0; !v3 { + if v2 = !(ere != 0); v2 { + v1 = s + s = s + 1 + } + } + if v5 = v3 || v2 && Int32FromUint8(**(**uint8)(__ccgo_up(v1))) != int32('\\'); !v5 { + v4 = s + s = s + 1 + } + if v5 || Int32FromUint8(**(**uint8)(__ccgo_up(v4))) != int32('}') { + return uintptr(0) + } + **(**int32)(__ccgo_up(pmin)) = **(**int32)(__ccgo_up(bp)) + **(**int32)(__ccgo_up(pmax)) = **(**int32)(__ccgo_up(bp + 4)) + return s +} + +func _hexval1(tls *TLS, c uint32) (r int32) { + if c-uint32('0') < uint32(10) { + return Int32FromUint32(c - uint32('0')) + } + c = c | uint32(32) + if c-uint32('a') < uint32(6) { + return Int32FromUint32(c - uint32('a') + uint32(10)) + } + return -int32(1) +} + +func _marksub(tls *TLS, ctx uintptr, node uintptr, subid int32) (r Treg_errcode_t) { + var n uintptr + _ = n + if (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fsubmatch_id >= 0 { + n = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(1), -int32(1), -int32(1)) + if !(n != 0) { + return int32(REG_ESPACE) + } + n = _tre_ast_new_catenation(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, n, node) + if !(n != 0) { + return int32(REG_ESPACE) + } + (*Ttre_ast_node_t)(unsafe.Pointer(n)).Fnum_submatches = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_submatches + node = n + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fsubmatch_id = subid + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_submatches = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_submatches + 1 + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fn = node + return REG_OK +} + +/* +BRE grammar: +Regex = Branch | '^' | '$' | '^$' | '^' Branch | Branch '$' | '^' Branch '$' +Branch = Atom | Branch Atom +Atom = char | quoted_char | '.' | Bracket | Atom Dup | '\(' Branch '\)' | back_ref +Dup = '*' | '\{' Count '\}' | '\{' Count ',\}' | '\{' Count ',' Count '\}' + +(leading ^ and trailing $ in a sub expr may be an anchor or literal as well) + +ERE grammar: +Regex = Branch | Regex '|' Branch +Branch = Atom | Branch Atom +Atom = char | quoted_char | '.' | Bracket | Atom Dup | '(' Regex ')' | '^' | '$' +Dup = '*' | '+' | '?' | '{' Count '}' | '{' Count ',}' | '{' Count ',' Count '}' + +(a*+?, ^*, $+, \X, {, (|a) are unspecified) +*/ + +func _parse_atom(tls *TLS, ctx uintptr, s uintptr) (r Treg_errcode_t) { + bp := tls.Alloc(16) + defer tls.Free(16) + var c, ere, i, len1, v, val, v16 int32 + var err Treg_errcode_t + var node, p, tmp1, tmp11, tmp2, tmp21, v14 uintptr + var _ /* wc at bp+0 */ Twchar_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = c, ere, err, i, len1, node, p, tmp1, tmp11, tmp2, tmp21, v, val, v14, v16 + ere = (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fcflags & int32(REG_EXTENDED) + switch Int32FromUint8(**(**uint8)(__ccgo_up(s))) { + case int32('['): + goto _1 + case int32('\\'): + goto _2 + case int32('.'): + goto _3 + case int32('^'): + goto _4 + case int32('$'): + goto _5 + case int32('?'): + goto _6 + case int32('+'): + goto _7 + case int32('{'): + goto _8 + case int32('*'): + goto _9 + case int32('|'): + goto _10 + case 0: + goto _11 + default: + goto _12 + } + goto _13 +_1: + ; + return _parse_bracket(tls, ctx, s+uintptr(1)) +_2: + ; + p = _tre_expand_macro(tls, s+uintptr(1)) + if p != 0 { + /* assume \X expansion is a single atom */ + err = _parse_atom(tls, ctx, p) + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fs = s + uintptr(2) + return err + } + /* extensions: \b, \B, \<, \>, \xHH \x{HHHH} */ + s = s + 1 + v14 = s + switch Int32FromUint8(**(**uint8)(__ccgo_up(v14))) { + case 0: + return int32(REG_EESCAPE) + case int32('b'): + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(2), int32(ASSERT_AT_WB), -int32(1)) + case int32('B'): + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(2), int32(ASSERT_AT_WB_NEG), -int32(1)) + case int32('<'): + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(2), int32(ASSERT_AT_BOW), -int32(1)) + case int32('>'): + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(2), int32(ASSERT_AT_EOW), -int32(1)) + case int32('x'): + s = s + 1 + v = 0 + len1 = int32(2) + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('{') { + len1 = int32(8) + s = s + 1 + } + i = 0 + for { + if !(i < len1 && v < int32(0x110000)) { + break + } + c = _hexval1(tls, uint32(**(**uint8)(__ccgo_up(s + uintptr(i))))) + if c < 0 { + break + } + v = int32(16)*v + c + goto _15 + _15: + ; + i = i + 1 + } + s = s + uintptr(i) + if len1 == int32(8) { + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) != int32('}') { + return int32(REG_EBRACE) + } + s = s + 1 + } + v14 = ctx + 44 + v16 = *(*int32)(unsafe.Pointer(v14)) + *(*int32)(unsafe.Pointer(v14)) = *(*int32)(unsafe.Pointer(v14)) + 1 + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, v, v, v16) + s = s - 1 + case int32('{'): + fallthrough + case int32('+'): + fallthrough + case int32('?'): + /* extension: treat \+, \? as repetitions in BRE */ + /* reject repetitions after empty expression in BRE */ + if !(ere != 0) { + return int32(REG_BADRPT) + } + fallthrough + case int32('|'): + /* extension: treat \| as alternation in BRE */ + if !(ere != 0) { + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(1), -int32(1), -int32(1)) + s = s - 1 + goto end + } + /* fallthrough */ + fallthrough + default: + if !(ere != 0) && uint32(**(**uint8)(__ccgo_up(s)))-uint32('1') < uint32(9) { + /* back reference */ + val = Int32FromUint8(**(**uint8)(__ccgo_up(s))) - int32('0') + v14 = ctx + 44 + v16 = *(*int32)(unsafe.Pointer(v14)) + *(*int32)(unsafe.Pointer(v14)) = *(*int32)(unsafe.Pointer(v14)) + 1 + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(4), val, v16) + if val >= (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmax_backref { + v16 = val + } else { + v16 = (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmax_backref + } + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmax_backref = v16 + } else { + /* extension: accept unknown escaped char + as a literal */ + goto parse_literal + } + } + s = s + 1 + goto _13 +_3: + ; + if (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fcflags&int32(REG_NEWLINE) != 0 { + v14 = ctx + 44 + v16 = *(*int32)(unsafe.Pointer(v14)) + *(*int32)(unsafe.Pointer(v14)) = *(*int32)(unsafe.Pointer(v14)) + 1 + tmp1 = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, 0, Int32FromUint8('\n')-Int32FromInt32(1), v16) + v14 = ctx + 44 + v16 = *(*int32)(unsafe.Pointer(v14)) + *(*int32)(unsafe.Pointer(v14)) = *(*int32)(unsafe.Pointer(v14)) + 1 + tmp2 = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, Int32FromUint8('\n')+Int32FromInt32(1), int32(TRE_CHAR_MAX), v16) + if tmp1 != 0 && tmp2 != 0 { + node = _tre_ast_new_union(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, tmp1, tmp2) + } else { + node = uintptr(0) + } + } else { + v14 = ctx + 44 + v16 = *(*int32)(unsafe.Pointer(v14)) + *(*int32)(unsafe.Pointer(v14)) = *(*int32)(unsafe.Pointer(v14)) + 1 + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, 0, int32(TRE_CHAR_MAX), v16) + } + s = s + 1 + goto _13 +_4: + ; + /* '^' has a special meaning everywhere in EREs, and at beginning of BRE. */ + if !(ere != 0) && s != (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fstart { + goto parse_literal + } + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(2), int32(ASSERT_AT_BOL), -int32(1)) + s = s + 1 + goto _13 +_5: + ; + /* '$' is special everywhere in EREs, and at the end of a BRE subexpression. */ + if !(ere != 0) && **(**uint8)(__ccgo_up(s + 1)) != 0 && (Int32FromUint8(**(**uint8)(__ccgo_up(s + 1))) != int32('\\') || Int32FromUint8(**(**uint8)(__ccgo_up(s + 2))) != int32(')') && Int32FromUint8(**(**uint8)(__ccgo_up(s + 2))) != int32('|')) { + goto parse_literal + } + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(2), int32(ASSERT_AT_EOL), -int32(1)) + s = s + 1 + goto _13 +_9: + ; +_8: + ; +_7: + ; +_6: + ; + /* reject repetitions after empty expression in ERE */ + if ere != 0 { + return int32(REG_BADRPT) + } +_10: + ; + if !(ere != 0) { + goto parse_literal + } +_11: + ; + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(1), -int32(1), -int32(1)) + goto _13 +_12: + ; + goto parse_literal +parse_literal: + ; + len1 = Xmbtowc(tls, bp, s, Uint64FromInt32(-Int32FromInt32(1))) + if len1 < 0 { + return int32(REG_BADPAT) + } + if (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fcflags&int32(REG_ICASE) != 0 && (Xiswupper(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp)))) != 0 || Xiswlower(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp)))) != 0) { + /* multiple opposite case characters are not supported */ + tmp11 = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, Int32FromUint32(Xtowupper(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp))))), Int32FromUint32(Xtowupper(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp))))), (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fposition) + tmp21 = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, Int32FromUint32(Xtowlower(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp))))), Int32FromUint32(Xtowlower(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp))))), (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fposition) + if tmp11 != 0 && tmp21 != 0 { + node = _tre_ast_new_union(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, tmp11, tmp21) + } else { + node = uintptr(0) + } + } else { + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, **(**Twchar_t)(__ccgo_up(bp)), **(**Twchar_t)(__ccgo_up(bp)), (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fposition) + } + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fposition = (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fposition + 1 + s = s + uintptr(len1) + goto _13 +_13: + ; + goto end +end: + ; + if !(node != 0) { + return int32(REG_ESPACE) + } + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fn = node + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fs = s + return REG_OK +} + +func _tre_parse(tls *TLS, ctx uintptr) (r Treg_errcode_t) { + bp := tls.Alloc(16) + defer tls.Free(16) + var c, depth, ere, subid, v2 int32 + var err, v1 Treg_errcode_t + var nbranch, nunion, s, stack, v8 uintptr + var _ /* max at bp+4 */ int32 + var _ /* min at bp+0 */ int32 + _, _, _, _, _, _, _, _, _, _, _, _ = c, depth, ere, err, nbranch, nunion, s, stack, subid, v1, v2, v8 + nbranch = uintptr(0) + nunion = uintptr(0) + ere = (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fcflags & int32(REG_EXTENDED) + s = (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fstart + subid = 0 + depth = 0 + stack = (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fstack + v2 = subid + subid = subid + 1 + v1 = _tre_stack_push_int(tls, stack, v2) + err = v1 + if v1 != REG_OK { + return err + } + for { + if !(ere != 0) && Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('\\') && Int32FromUint8(**(**uint8)(__ccgo_up(s + 1))) == int32('(') || ere != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('(') { + v1 = _tre_stack_push_voidptr(tls, stack, nunion) + err = v1 + if v1 != REG_OK { + return err + } + v1 = _tre_stack_push_voidptr(tls, stack, nbranch) + err = v1 + if v1 != REG_OK { + return err + } + v2 = subid + subid = subid + 1 + v1 = _tre_stack_push_int(tls, stack, v2) + err = v1 + if v1 != REG_OK { + return err + } + s = s + 1 + if !(ere != 0) { + s = s + 1 + } + depth = depth + 1 + v8 = UintptrFromInt32(0) + nunion = v8 + nbranch = v8 + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fstart = s + goto _3 + } + if !(ere != 0) && Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('\\') && Int32FromUint8(**(**uint8)(__ccgo_up(s + 1))) == int32(')') || ere != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32(')') && depth != 0 { + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fn = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(1), -int32(1), -int32(1)) + if !((*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fn != 0) { + return int32(REG_ESPACE) + } + } else { + err = _parse_atom(tls, ctx, s) + if err != REG_OK { + return err + } + s = (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fs + } + goto parse_iter + parse_iter: + ; + for { + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) != int32('\\') && Int32FromUint8(**(**uint8)(__ccgo_up(s))) != int32('*') { + if !(ere != 0) { + break + } + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) != int32('+') && Int32FromUint8(**(**uint8)(__ccgo_up(s))) != int32('?') && Int32FromUint8(**(**uint8)(__ccgo_up(s))) != int32('{') { + break + } + } + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('\\') && ere != 0 { + break + } + /* extension: treat \+, \? as repetitions in BRE */ + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('\\') && Int32FromUint8(**(**uint8)(__ccgo_up(s + 1))) != int32('+') && Int32FromUint8(**(**uint8)(__ccgo_up(s + 1))) != int32('?') && Int32FromUint8(**(**uint8)(__ccgo_up(s + 1))) != int32('{') { + break + } + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('\\') { + s = s + 1 + } + /* handle ^* at the start of a BRE. */ + if !(ere != 0) && s == (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fstart+uintptr(1) && Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(-Int32FromInt32(1))))) == int32('^') { + break + } + /* extension: multiple consecutive *+?{,} is unspecified, + but (a+)+ has to be supported so accepting a++ makes + sense, note however that the RE_DUP_MAX limit can be + circumvented: (a{255}){255} uses a lot of memory.. */ + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('{') { + s = _parse_dup(tls, s+uintptr(1), ere, bp, bp+4) + if !(s != 0) { + return int32(REG_BADBR) + } + } else { + **(**int32)(__ccgo_up(bp)) = 0 + **(**int32)(__ccgo_up(bp + 4)) = -int32(1) + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('+') { + **(**int32)(__ccgo_up(bp)) = int32(1) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('?') { + **(**int32)(__ccgo_up(bp + 4)) = int32(1) + } + s = s + 1 + } + if **(**int32)(__ccgo_up(bp + 4)) == 0 { + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fn = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(1), -int32(1), -int32(1)) + } else { + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fn = _tre_ast_new_iter(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fn, **(**int32)(__ccgo_up(bp)), **(**int32)(__ccgo_up(bp + 4)), 0) + } + if !((*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fn != 0) { + return int32(REG_ESPACE) + } + goto _9 + _9: + } + nbranch = _tre_ast_new_catenation(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, nbranch, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fn) + if ere != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('|') || ere != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32(')') && depth != 0 || !(ere != 0) && Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('\\') && Int32FromUint8(**(**uint8)(__ccgo_up(s + 1))) == int32(')') || !(ere != 0) && Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('\\') && Int32FromUint8(**(**uint8)(__ccgo_up(s + 1))) == int32('|') || !(**(**uint8)(__ccgo_up(s)) != 0) { + /* extension: empty branch is unspecified (), (|a), (a|) + here they are not rejected but match on empty string */ + c = Int32FromUint8(**(**uint8)(__ccgo_up(s))) + nunion = _tre_ast_new_union(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, nunion, nbranch) + nbranch = uintptr(0) + if c == int32('\\') && Int32FromUint8(**(**uint8)(__ccgo_up(s + 1))) == int32('|') { + s = s + uintptr(2) + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fstart = s + } else { + if c == int32('|') { + s = s + 1 + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fstart = s + } else { + if c == int32('\\') { + if !(depth != 0) { + return int32(REG_EPAREN) + } + s = s + uintptr(2) + } else { + if c == int32(')') { + s = s + 1 + } + } + depth = depth - 1 + err = _marksub(tls, ctx, nunion, _tre_stack_pop_int(tls, stack)) + if err != REG_OK { + return err + } + if !(c != 0) && depth < 0 { + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fsubmatch_id = subid + return REG_OK + } + if !(c != 0) || depth < 0 { + return int32(REG_EPAREN) + } + nbranch = _tre_stack_pop_voidptr(tls, stack) + nunion = _tre_stack_pop_voidptr(tls, stack) + goto parse_iter + } + } + } + goto _3 + _3: + } + return r +} + +/*********************************************************************** + from tre-compile.c +***********************************************************************/ + +/* + TODO: + - Fix tre_ast_to_tnfa() to recurse using a stack instead of recursive + function calls. +*/ + +/* + Algorithms to setup tags so that submatch addressing can be done. +*/ + +// C documentation +// +// /* Inserts a catenation node to the root of the tree given in `node'. +// As the left child a new tag with number `tag_id' to `node' is added, +// and the right child is the old root. */ +func _tre_add_tag_left(tls *TLS, mem Ttre_mem_t, node uintptr, tag_id int32) (r Treg_errcode_t) { + var c uintptr + _ = c + c = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint64(16)) + if c == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + (*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft = _tre_ast_new_literal(tls, mem, -int32(3), tag_id, -int32(1)) + if (*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + (*Ttre_catenation_t)(unsafe.Pointer(c)).Fright = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint64(48)) + if (*Ttre_catenation_t)(unsafe.Pointer(c)).Fright == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fright)).Fobj = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fright)).Ftype1 = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fright)).Fnullable = -int32(1) + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fright)).Fsubmatch_id = -int32(1) + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fright)).Ffirstpos = UintptrFromInt32(0) + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fright)).Flastpos = UintptrFromInt32(0) + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fright)).Fnum_tags = 0 + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fright)).Fnum_submatches = 0 + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj = c + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 = int32(_CATENATION) + return REG_OK +} + +// C documentation +// +// /* Inserts a catenation node to the root of the tree given in `node'. +// As the right child a new tag with number `tag_id' to `node' is added, +// and the left child is the old root. */ +func _tre_add_tag_right(tls *TLS, mem Ttre_mem_t, node uintptr, tag_id int32) (r Treg_errcode_t) { + var c uintptr + _ = c + c = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint64(16)) + if c == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + (*Ttre_catenation_t)(unsafe.Pointer(c)).Fright = _tre_ast_new_literal(tls, mem, -int32(3), tag_id, -int32(1)) + if (*Ttre_catenation_t)(unsafe.Pointer(c)).Fright == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + (*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint64(48)) + if (*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft)).Fobj = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft)).Ftype1 = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft)).Fnullable = -int32(1) + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft)).Fsubmatch_id = -int32(1) + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft)).Ffirstpos = UintptrFromInt32(0) + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft)).Flastpos = UintptrFromInt32(0) + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft)).Fnum_tags = 0 + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft)).Fnum_submatches = 0 + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj = c + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 = int32(_CATENATION) + return REG_OK +} + +type Ttre_addtags_symbol_t = int32 + +const _ADDTAGS_RECURSE = 0 +const _ADDTAGS_AFTER_ITERATION = 1 +const _ADDTAGS_AFTER_UNION_LEFT = 2 +const _ADDTAGS_AFTER_UNION_RIGHT = 3 +const _ADDTAGS_AFTER_CAT_LEFT = 4 +const _ADDTAGS_AFTER_CAT_RIGHT = 5 +const _ADDTAGS_SET_SUBMATCH_END = 6 + +type Ttre_tag_states_t = struct { + Ftag int32 + Fnext_tag int32 +} + +// C documentation +// +// /* Go through `regset' and set submatch data for submatches that are +// using this tag. */ +func _tre_purge_regset(tls *TLS, regset uintptr, tnfa uintptr, tag int32) { + var i, id, start int32 + _, _, _ = i, id, start + i = 0 + for { + if !(**(**int32)(__ccgo_up(regset + uintptr(i)*4)) >= 0) { + break + } + id = **(**int32)(__ccgo_up(regset + uintptr(i)*4)) / int32(2) + start = BoolInt32(!(**(**int32)(__ccgo_up(regset + uintptr(i)*4))%Int32FromInt32(2) != 0)) + if start != 0 { + (**(**Ttre_submatch_data_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fsubmatch_data + uintptr(id)*16))).Fso_tag = tag + } else { + (**(**Ttre_submatch_data_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fsubmatch_data + uintptr(id)*16))).Feo_tag = tag + } + goto _1 + _1: + ; + i = i + 1 + } + **(**int32)(__ccgo_up(regset)) = -int32(1) +} + +// C documentation +// +// /* Adds tags to appropriate locations in the parse tree in `tree', so that +// subexpressions marked for submatch addressing can be traced. */ +func _tre_add_tags(tls *TLS, mem Ttre_mem_t, stack uintptr, tree uintptr, tnfa uintptr) (r Treg_errcode_t) { + var added_tags, bottom, enter_tag, first_pass, i1, i2, i3, i4, i5, i6, i7, id, id1, left_tag, minimal, minimal_tag, new_tag, next_tag, num_minimals, num_tags, reserved_tag, right_tag, tag, tag_left, tag_right, v22 int32 + var cat, iter, left, left1, left2, lit, node, orig_regset, p, parents, regset, right, right1, right2, saved_states, uni uintptr + var direction Ttre_tag_direction_t + var i uint32 + var status Treg_errcode_t + var symbol Ttre_addtags_symbol_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = added_tags, bottom, cat, direction, enter_tag, first_pass, i, i1, i2, i3, i4, i5, i6, i7, id, id1, iter, left, left1, left2, left_tag, lit, minimal, minimal_tag, new_tag, next_tag, node, num_minimals, num_tags, orig_regset, p, parents, regset, reserved_tag, right, right1, right2, right_tag, saved_states, status, symbol, tag, tag_left, tag_right, uni, v22 + status = REG_OK + node = tree /* Tree node we are currently looking at. */ + bottom = _tre_stack_num_objects(tls, stack) + /* True for first pass (counting number of needed tags) */ + first_pass = BoolInt32(mem == UintptrFromInt32(0) || tnfa == UintptrFromInt32(0)) + num_tags = 0 /* Total number of tags. */ + num_minimals = 0 /* Number of special minimal tags. */ + tag = 0 /* The tag that is to be added next. */ + next_tag = int32(1) /* Stack of submatches the current submatch is + contained in. */ + minimal_tag = -int32(1) + direction = int32(_TRE_TAG_MINIMIZE) + if !(first_pass != 0) { + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fend_tag = 0 + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags)) = -int32(1) + } + regset = Xmalloc(tls, uint64(4)*uint64(((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_submatches+Uint32FromInt32(1))*Uint32FromInt32(2))) + if regset == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + **(**int32)(__ccgo_up(regset)) = -int32(1) + orig_regset = regset + parents = Xmalloc(tls, uint64(4)*uint64((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_submatches+Uint32FromInt32(1))) + if parents == UintptrFromInt32(0) { + Xfree(tls, regset) + return int32(REG_ESPACE) + } + **(**int32)(__ccgo_up(parents)) = -int32(1) + saved_states = Xmalloc(tls, uint64(8)*uint64((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_submatches+Uint32FromInt32(1))) + if saved_states == UintptrFromInt32(0) { + Xfree(tls, regset) + Xfree(tls, parents) + return int32(REG_ESPACE) + } else { + i = uint32(0) + for { + if !(i <= (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_submatches) { + break + } + (**(**Ttre_tag_states_t)(__ccgo_up(saved_states + uintptr(i)*8))).Ftag = -int32(1) + goto _1 + _1: + ; + i = i + 1 + } + } + status = _tre_stack_push_voidptr(tls, stack, node) + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_RECURSE)) + for _tre_stack_num_objects(tls, stack) > bottom { + if status != REG_OK { + break + } + symbol = _tre_stack_pop_int(tls, stack) + switch symbol { + case int32(_ADDTAGS_SET_SUBMATCH_END): + goto _2 + case int32(_ADDTAGS_RECURSE): + goto _3 + case int32(_ADDTAGS_AFTER_ITERATION): + goto _4 + case int32(_ADDTAGS_AFTER_CAT_LEFT): + goto _5 + case int32(_ADDTAGS_AFTER_CAT_RIGHT): + goto _6 + case int32(_ADDTAGS_AFTER_UNION_LEFT): + goto _7 + case int32(_ADDTAGS_AFTER_UNION_RIGHT): + goto _8 + default: + goto _9 + } + goto _10 + _2: + ; + id = _tre_stack_pop_int(tls, stack) + /* Add end of this submatch to regset. */ + i1 = 0 + for { + if !(**(**int32)(__ccgo_up(regset + uintptr(i1)*4)) >= 0) { + break + } + goto _11 + _11: + ; + i1 = i1 + 1 + } + **(**int32)(__ccgo_up(regset + uintptr(i1)*4)) = id*int32(2) + int32(1) + **(**int32)(__ccgo_up(regset + uintptr(i1+int32(1))*4)) = -int32(1) + /* Pop this submatch from the parents stack. */ + i1 = 0 + for { + if !(**(**int32)(__ccgo_up(parents + uintptr(i1)*4)) >= 0) { + break + } + goto _12 + _12: + ; + i1 = i1 + 1 + } + **(**int32)(__ccgo_up(parents + uintptr(i1-int32(1))*4)) = -int32(1) + goto _10 + _3: + ; + node = _tre_stack_pop_voidptr(tls, stack) + if (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fsubmatch_id >= 0 { + id1 = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fsubmatch_id + /* Add start of this submatch to regset. */ + i2 = 0 + for { + if !(**(**int32)(__ccgo_up(regset + uintptr(i2)*4)) >= 0) { + break + } + goto _13 + _13: + ; + i2 = i2 + 1 + } + **(**int32)(__ccgo_up(regset + uintptr(i2)*4)) = id1 * int32(2) + **(**int32)(__ccgo_up(regset + uintptr(i2+int32(1))*4)) = -int32(1) + if !(first_pass != 0) { + i2 = 0 + for { + if !(**(**int32)(__ccgo_up(parents + uintptr(i2)*4)) >= 0) { + break + } + goto _14 + _14: + ; + i2 = i2 + 1 + } + (**(**Ttre_submatch_data_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fsubmatch_data + uintptr(id1)*16))).Fparents = UintptrFromInt32(0) + if i2 > 0 { + p = Xmalloc(tls, uint64(4)*Uint64FromInt32(i2+Int32FromInt32(1))) + if p == UintptrFromInt32(0) { + status = int32(REG_ESPACE) + goto _10 + } + (**(**Ttre_submatch_data_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fsubmatch_data + uintptr(id1)*16))).Fparents = p + i2 = 0 + for { + if !(**(**int32)(__ccgo_up(parents + uintptr(i2)*4)) >= 0) { + break + } + **(**int32)(__ccgo_up(p + uintptr(i2)*4)) = **(**int32)(__ccgo_up(parents + uintptr(i2)*4)) + goto _15 + _15: + ; + i2 = i2 + 1 + } + **(**int32)(__ccgo_up(p + uintptr(i2)*4)) = -int32(1) + } + } + /* Add end of this submatch to regset after processing this + node. */ + status = _tre_stack_push_int(tls, stack, (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fsubmatch_id) + if status != REG_OK { + goto _10 + } + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_SET_SUBMATCH_END)) + if status != REG_OK { + goto _10 + } + } + switch (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 { + case int32(_LITERAL): + lit = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + if !((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min < Int64FromInt32(0)) || (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min == int64(-int32(4)) { + if **(**int32)(__ccgo_up(regset)) >= 0 { + /* Regset is not empty, so add a tag before the + literal or backref. */ + if !(first_pass != 0) { + status = _tre_add_tag_left(tls, mem, node, tag) + **(**Ttre_tag_direction_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions + uintptr(tag)*4)) = direction + if minimal_tag >= 0 { + i3 = 0 + for { + if !(**(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i3)*4)) >= 0) { + break + } + goto _16 + _16: + ; + i3 = i3 + 1 + } + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i3)*4)) = tag + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i3+int32(1))*4)) = minimal_tag + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i3+int32(2))*4)) = -int32(1) + minimal_tag = -int32(1) + num_minimals = num_minimals + 1 + } + _tre_purge_regset(tls, regset, tnfa, tag) + } else { + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_tags = int32(1) + } + **(**int32)(__ccgo_up(regset)) = -int32(1) + tag = next_tag + num_tags = num_tags + 1 + next_tag = next_tag + 1 + } + } else { + } + case int32(_CATENATION): + cat = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + left = (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft + right = (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright + reserved_tag = -int32(1) + /* After processing right child. */ + status = _tre_stack_push_voidptr(tls, stack, node) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_AFTER_CAT_RIGHT)) + if status != REG_OK { + break + } + /* Process right child. */ + status = _tre_stack_push_voidptr(tls, stack, right) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_RECURSE)) + if status != REG_OK { + break + } + /* After processing left child. */ + status = _tre_stack_push_int(tls, stack, next_tag+(*Ttre_ast_node_t)(unsafe.Pointer(left)).Fnum_tags) + if status != REG_OK { + break + } + if (*Ttre_ast_node_t)(unsafe.Pointer(left)).Fnum_tags > 0 && (*Ttre_ast_node_t)(unsafe.Pointer(right)).Fnum_tags > 0 { + /* Reserve the next tag to the right child. */ + reserved_tag = next_tag + next_tag = next_tag + 1 + } + status = _tre_stack_push_int(tls, stack, reserved_tag) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_AFTER_CAT_LEFT)) + if status != REG_OK { + break + } + /* Process left child. */ + status = _tre_stack_push_voidptr(tls, stack, left) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_RECURSE)) + if status != REG_OK { + break + } + case int32(_ITERATION): + iter = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + if first_pass != 0 { + status = _tre_stack_push_int(tls, stack, BoolInt32(**(**int32)(__ccgo_up(regset)) >= 0 || int32(uint32(*(*uint8)(unsafe.Pointer(iter + 16))&0x1>>0)) != 0)) + if status != REG_OK { + break + } + } else { + status = _tre_stack_push_int(tls, stack, tag) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(uint32(*(*uint8)(unsafe.Pointer(iter + 16))&0x1>>0))) + if status != REG_OK { + break + } + } + status = _tre_stack_push_voidptr(tls, stack, node) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_AFTER_ITERATION)) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_RECURSE)) + if status != REG_OK { + break + } + /* Regset is not empty, so add a tag here. */ + if **(**int32)(__ccgo_up(regset)) >= 0 || int32(uint32(*(*uint8)(unsafe.Pointer(iter + 16))&0x1>>0)) != 0 { + if !(first_pass != 0) { + status = _tre_add_tag_left(tls, mem, node, tag) + if int32(uint32(*(*uint8)(unsafe.Pointer(iter + 16))&0x1>>0)) != 0 { + **(**Ttre_tag_direction_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions + uintptr(tag)*4)) = int32(_TRE_TAG_MAXIMIZE) + } else { + **(**Ttre_tag_direction_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions + uintptr(tag)*4)) = direction + } + if minimal_tag >= 0 { + i4 = 0 + for { + if !(**(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i4)*4)) >= 0) { + break + } + goto _17 + _17: + ; + i4 = i4 + 1 + } + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i4)*4)) = tag + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i4+int32(1))*4)) = minimal_tag + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i4+int32(2))*4)) = -int32(1) + minimal_tag = -int32(1) + num_minimals = num_minimals + 1 + } + _tre_purge_regset(tls, regset, tnfa, tag) + } + **(**int32)(__ccgo_up(regset)) = -int32(1) + tag = next_tag + num_tags = num_tags + 1 + next_tag = next_tag + 1 + } + direction = int32(_TRE_TAG_MINIMIZE) + case int32(_UNION): + uni = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + left1 = (*Ttre_union_t)(unsafe.Pointer(uni)).Fleft + right1 = (*Ttre_union_t)(unsafe.Pointer(uni)).Fright + if **(**int32)(__ccgo_up(regset)) >= 0 { + left_tag = next_tag + right_tag = next_tag + int32(1) + } else { + left_tag = tag + right_tag = next_tag + } + /* After processing right child. */ + status = _tre_stack_push_int(tls, stack, right_tag) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, left_tag) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, regset) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, BoolInt32(**(**int32)(__ccgo_up(regset)) >= 0)) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, node) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, right1) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, left1) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_AFTER_UNION_RIGHT)) + if status != REG_OK { + break + } + /* Process right child. */ + status = _tre_stack_push_voidptr(tls, stack, right1) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_RECURSE)) + if status != REG_OK { + break + } + /* After processing left child. */ + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_AFTER_UNION_LEFT)) + if status != REG_OK { + break + } + /* Process left child. */ + status = _tre_stack_push_voidptr(tls, stack, left1) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_RECURSE)) + if status != REG_OK { + break + } + /* Regset is not empty, so add a tag here. */ + if **(**int32)(__ccgo_up(regset)) >= 0 { + if !(first_pass != 0) { + status = _tre_add_tag_left(tls, mem, node, tag) + **(**Ttre_tag_direction_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions + uintptr(tag)*4)) = direction + if minimal_tag >= 0 { + i5 = 0 + for { + if !(**(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i5)*4)) >= 0) { + break + } + goto _18 + _18: + ; + i5 = i5 + 1 + } + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i5)*4)) = tag + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i5+int32(1))*4)) = minimal_tag + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i5+int32(2))*4)) = -int32(1) + minimal_tag = -int32(1) + num_minimals = num_minimals + 1 + } + _tre_purge_regset(tls, regset, tnfa, tag) + } + **(**int32)(__ccgo_up(regset)) = -int32(1) + tag = next_tag + num_tags = num_tags + 1 + next_tag = next_tag + 1 + } + if (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_submatches > 0 { + /* The next two tags are reserved for markers. */ + next_tag = next_tag + 1 + tag = next_tag + next_tag = next_tag + 1 + } + break + } + if (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fsubmatch_id >= 0 { + /* Push this submatch on the parents stack. */ + i6 = 0 + for { + if !(**(**int32)(__ccgo_up(parents + uintptr(i6)*4)) >= 0) { + break + } + goto _19 + _19: + ; + i6 = i6 + 1 + } + **(**int32)(__ccgo_up(parents + uintptr(i6)*4)) = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fsubmatch_id + **(**int32)(__ccgo_up(parents + uintptr(i6+int32(1))*4)) = -int32(1) + } + goto _10 /* end case: ADDTAGS_RECURSE */ + _4: + ; + minimal = 0 + node = _tre_stack_pop_voidptr(tls, stack) + if first_pass != 0 { + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_tags = (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_iteration_t)(unsafe.Pointer((*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj)).Farg)).Fnum_tags + _tre_stack_pop_int(tls, stack) + minimal_tag = -int32(1) + } else { + minimal = _tre_stack_pop_int(tls, stack) + enter_tag = _tre_stack_pop_int(tls, stack) + if minimal != 0 { + minimal_tag = enter_tag + } + } + if !(first_pass != 0) { + if minimal != 0 { + direction = int32(_TRE_TAG_MINIMIZE) + } else { + direction = int32(_TRE_TAG_MAXIMIZE) + } + } + goto _10 + _5: + ; + new_tag = _tre_stack_pop_int(tls, stack) + next_tag = _tre_stack_pop_int(tls, stack) + if new_tag >= 0 { + tag = new_tag + } + goto _10 + _6: + ; + node = _tre_stack_pop_voidptr(tls, stack) + if first_pass != 0 { + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_tags = (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer((*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj)).Fleft)).Fnum_tags + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer((*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj)).Fright)).Fnum_tags + } + goto _10 + _7: + ; + /* Lift the bottom of the `regset' array so that when processing + the right operand the items currently in the array are + invisible. The original bottom was saved at ADDTAGS_UNION and + will be restored at ADDTAGS_AFTER_UNION_RIGHT below. */ + _21: + ; + if !(**(**int32)(__ccgo_up(regset)) >= 0) { + goto _20 + } + regset += 4 + goto _21 + _20: + ; + goto _10 + _8: + ; + left2 = _tre_stack_pop_voidptr(tls, stack) + right2 = _tre_stack_pop_voidptr(tls, stack) + node = _tre_stack_pop_voidptr(tls, stack) + added_tags = _tre_stack_pop_int(tls, stack) + if first_pass != 0 { + if (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_submatches > 0 { + v22 = int32(2) + } else { + v22 = 0 + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_tags = (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_union_t)(unsafe.Pointer((*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj)).Fleft)).Fnum_tags + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_union_t)(unsafe.Pointer((*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj)).Fright)).Fnum_tags + added_tags + v22 + } + regset = _tre_stack_pop_voidptr(tls, stack) + tag_left = _tre_stack_pop_int(tls, stack) + tag_right = _tre_stack_pop_int(tls, stack) + /* Add tags after both children, the left child gets a smaller + tag than the right child. This guarantees that we prefer + the left child over the right child. */ + /* XXX - This is not always necessary (if the children have + tags which must be seen for every match of that child). */ + /* XXX - Check if this is the only place where tre_add_tag_right + is used. If so, use tre_add_tag_left (putting the tag before + the child as opposed after the child) and throw away + tre_add_tag_right. */ + if (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_submatches > 0 { + if !(first_pass != 0) { + status = _tre_add_tag_right(tls, mem, left2, tag_left) + **(**Ttre_tag_direction_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions + uintptr(tag_left)*4)) = int32(_TRE_TAG_MAXIMIZE) + if status == REG_OK { + status = _tre_add_tag_right(tls, mem, right2, tag_right) + } + **(**Ttre_tag_direction_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions + uintptr(tag_right)*4)) = int32(_TRE_TAG_MAXIMIZE) + } + num_tags = num_tags + int32(2) + } + direction = int32(_TRE_TAG_MAXIMIZE) + goto _10 + _9: + ; + goto _10 + _10: + /* end switch(symbol) */ + } /* end while(tre_stack_num_objects(stack) > bottom) */ + if !(first_pass != 0) { + _tre_purge_regset(tls, regset, tnfa, tag) + } + if !(first_pass != 0) && minimal_tag >= 0 { + i7 = 0 + for { + if !(**(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i7)*4)) >= 0) { + break + } + goto _23 + _23: + ; + i7 = i7 + 1 + } + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i7)*4)) = tag + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i7+int32(1))*4)) = minimal_tag + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i7+int32(2))*4)) = -int32(1) + minimal_tag = -int32(1) + num_minimals = num_minimals + 1 + } + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fend_tag = num_tags + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags = num_tags + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_minimals = num_minimals + Xfree(tls, orig_regset) + Xfree(tls, parents) + Xfree(tls, saved_states) + return status +} + +/* + AST to TNFA compilation routines. +*/ + +type Ttre_copyast_symbol_t = int32 + +const _COPY_RECURSE = 0 +const _COPY_SET_RESULT_PTR = 1 + +/* Flags for tre_copy_ast(). */ + +func _tre_copy_ast(tls *TLS, mem Ttre_mem_t, stack uintptr, ast uintptr, flags int32, pos_add uintptr, tag_directions uintptr, copy1 uintptr, max_pos uintptr) (r Treg_errcode_t) { + var bottom, first_tag, max, min, num_copied, pos, v1 int32 + var cat, iter, lit, node, p, result, tmp, tmp1, uni uintptr + var status Treg_errcode_t + var symbol Ttre_copyast_symbol_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = bottom, cat, first_tag, iter, lit, max, min, node, num_copied, p, pos, result, status, symbol, tmp, tmp1, uni, v1 + status = REG_OK + bottom = _tre_stack_num_objects(tls, stack) + num_copied = 0 + first_tag = int32(1) + result = copy1 + status = _tre_stack_push_voidptr(tls, stack, ast) + status = _tre_stack_push_int(tls, stack, int32(_COPY_RECURSE)) + for status == REG_OK && _tre_stack_num_objects(tls, stack) > bottom { + if status != REG_OK { + break + } + symbol = _tre_stack_pop_int(tls, stack) + switch symbol { + case int32(_COPY_SET_RESULT_PTR): + result = _tre_stack_pop_voidptr(tls, stack) + case int32(_COPY_RECURSE): + node = _tre_stack_pop_voidptr(tls, stack) + switch (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 { + case int32(_LITERAL): + lit = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + pos = (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition + min = int32((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min) + max = int32((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max) + if !((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min < Int64FromInt32(0)) || (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min == int64(-int32(4)) { + /* XXX - e.g. [ab] has only one position but two + nodes, so we are creating holes in the state space + here. Not fatal, just wastes memory. */ + pos = pos + **(**int32)(__ccgo_up(pos_add)) + num_copied = num_copied + 1 + } else { + if (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min == int64(-int32(3)) && flags&int32(COPY_REMOVE_TAGS) != 0 { + /* Change this tag to empty. */ + min = -int32(1) + v1 = -Int32FromInt32(1) + pos = v1 + max = v1 + } else { + if (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min == int64(-int32(3)) && flags&int32(COPY_MAXIMIZE_FIRST_TAG) != 0 && first_tag != 0 { + /* Maximize the first tag. */ + **(**Ttre_tag_direction_t)(__ccgo_up(tag_directions + uintptr(max)*4)) = int32(_TRE_TAG_MAXIMIZE) + first_tag = 0 + } + } + } + **(**uintptr)(__ccgo_up(result)) = _tre_ast_new_literal(tls, mem, min, max, pos) + if **(**uintptr)(__ccgo_up(result)) == UintptrFromInt32(0) { + status = int32(REG_ESPACE) + } else { + p = (*Ttre_ast_node_t)(unsafe.Pointer(**(**uintptr)(__ccgo_up(result)))).Fobj + (*Ttre_literal_t)(unsafe.Pointer(p)).Fclass = (*Ttre_literal_t)(unsafe.Pointer(lit)).Fclass + (*Ttre_literal_t)(unsafe.Pointer(p)).Fneg_classes = (*Ttre_literal_t)(unsafe.Pointer(lit)).Fneg_classes + } + if pos > **(**int32)(__ccgo_up(max_pos)) { + **(**int32)(__ccgo_up(max_pos)) = pos + } + case int32(_UNION): + uni = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + **(**uintptr)(__ccgo_up(result)) = _tre_ast_new_union(tls, mem, (*Ttre_union_t)(unsafe.Pointer(uni)).Fleft, (*Ttre_union_t)(unsafe.Pointer(uni)).Fright) + if **(**uintptr)(__ccgo_up(result)) == UintptrFromInt32(0) { + status = int32(REG_ESPACE) + break + } + tmp = (*Ttre_ast_node_t)(unsafe.Pointer(**(**uintptr)(__ccgo_up(result)))).Fobj + result = tmp + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_union_t)(unsafe.Pointer(uni)).Fright) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_COPY_RECURSE)) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, tmp+8) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_COPY_SET_RESULT_PTR)) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_union_t)(unsafe.Pointer(uni)).Fleft) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_COPY_RECURSE)) + if status != REG_OK { + break + } + case int32(_CATENATION): + cat = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + **(**uintptr)(__ccgo_up(result)) = _tre_ast_new_catenation(tls, mem, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright) + if **(**uintptr)(__ccgo_up(result)) == UintptrFromInt32(0) { + status = int32(REG_ESPACE) + break + } + tmp1 = (*Ttre_ast_node_t)(unsafe.Pointer(**(**uintptr)(__ccgo_up(result)))).Fobj + (*Ttre_catenation_t)(unsafe.Pointer(tmp1)).Fleft = UintptrFromInt32(0) + (*Ttre_catenation_t)(unsafe.Pointer(tmp1)).Fright = UintptrFromInt32(0) + result = tmp1 + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_COPY_RECURSE)) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, tmp1+8) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_COPY_SET_RESULT_PTR)) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_COPY_RECURSE)) + if status != REG_OK { + break + } + case int32(_ITERATION): + iter = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_COPY_RECURSE)) + if status != REG_OK { + break + } + **(**uintptr)(__ccgo_up(result)) = _tre_ast_new_iter(tls, mem, (*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg, (*Ttre_iteration_t)(unsafe.Pointer(iter)).Fmin, (*Ttre_iteration_t)(unsafe.Pointer(iter)).Fmax, int32(uint32(*(*uint8)(unsafe.Pointer(iter + 16))&0x1>>0))) + if **(**uintptr)(__ccgo_up(result)) == UintptrFromInt32(0) { + status = int32(REG_ESPACE) + break + } + iter = (*Ttre_ast_node_t)(unsafe.Pointer(**(**uintptr)(__ccgo_up(result)))).Fobj + result = iter + default: + break + } + break + } + } + **(**int32)(__ccgo_up(pos_add)) += num_copied + return status +} + +type Ttre_expand_ast_symbol_t = int32 + +const _EXPAND_RECURSE = 0 +const _EXPAND_AFTER_ITER = 1 + +// C documentation +// +// /* Expands each iteration node that has a finite nonzero minimum or maximum +// iteration count to a catenated sequence of copies of the node. */ +func _tre_expand_ast(tls *TLS, mem Ttre_mem_t, stack uintptr, ast uintptr, position uintptr, tag_directions uintptr) (r Treg_errcode_t) { + bp := tls.Alloc(32) + defer tls.Free(32) + var _status, _status1, status Treg_errcode_t + var bottom, flags, iter_depth, j, pos_add_last, pos_add_save, pos_add_total, v2 int32 + var cat, iter, iter1, lit, node, seq1, tmp, uni uintptr + var symbol Ttre_expand_ast_symbol_t + var _ /* copy at bp+16 */ uintptr + var _ /* copy at bp+24 */ uintptr + var _ /* max_pos at bp+4 */ int32 + var _ /* pos_add at bp+0 */ int32 + var _ /* seq2 at bp+8 */ uintptr + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = _status, _status1, bottom, cat, flags, iter, iter1, iter_depth, j, lit, node, pos_add_last, pos_add_save, pos_add_total, seq1, status, symbol, tmp, uni, v2 + status = REG_OK + bottom = _tre_stack_num_objects(tls, stack) + **(**int32)(__ccgo_up(bp)) = 0 + pos_add_total = 0 + **(**int32)(__ccgo_up(bp + 4)) = 0 + iter_depth = 0 + _status = _tre_stack_push_voidptr(tls, stack, ast) + if _status != REG_OK { + return _status + } + _status1 = _tre_stack_push_int(tls, stack, int32(_EXPAND_RECURSE)) + if _status1 != REG_OK { + return _status1 + } + for status == REG_OK && _tre_stack_num_objects(tls, stack) > bottom { + if status != REG_OK { + break + } + symbol = _tre_stack_pop_int(tls, stack) + node = _tre_stack_pop_voidptr(tls, stack) + switch symbol { + case int32(_EXPAND_RECURSE): + switch (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 { + case int32(_LITERAL): + lit = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + if !((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min < Int64FromInt32(0)) || (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min == int64(-int32(4)) { + **(**int32)(__ccgo_up(lit + 16)) += **(**int32)(__ccgo_up(bp)) + if (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition > **(**int32)(__ccgo_up(bp + 4)) { + **(**int32)(__ccgo_up(bp + 4)) = (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition + } + } + case int32(_UNION): + uni = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_union_t)(unsafe.Pointer(uni)).Fright) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_EXPAND_RECURSE)) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_union_t)(unsafe.Pointer(uni)).Fleft) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_EXPAND_RECURSE)) + if status != REG_OK { + break + } + case int32(_CATENATION): + cat = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_EXPAND_RECURSE)) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_EXPAND_RECURSE)) + if status != REG_OK { + break + } + case int32(_ITERATION): + iter = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + status = _tre_stack_push_int(tls, stack, **(**int32)(__ccgo_up(bp))) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, node) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_EXPAND_AFTER_ITER)) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_EXPAND_RECURSE)) + if status != REG_OK { + break + } + /* If we are going to expand this node at EXPAND_AFTER_ITER + then don't increase the `pos' fields of the nodes now, it + will get done when expanding. */ + if (*Ttre_iteration_t)(unsafe.Pointer(iter)).Fmin > int32(1) || (*Ttre_iteration_t)(unsafe.Pointer(iter)).Fmax > int32(1) { + **(**int32)(__ccgo_up(bp)) = 0 + } + iter_depth = iter_depth + 1 + default: + break + } + case int32(_EXPAND_AFTER_ITER): + iter1 = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + **(**int32)(__ccgo_up(bp)) = _tre_stack_pop_int(tls, stack) + pos_add_last = **(**int32)(__ccgo_up(bp)) + if (*Ttre_iteration_t)(unsafe.Pointer(iter1)).Fmin > int32(1) || (*Ttre_iteration_t)(unsafe.Pointer(iter1)).Fmax > int32(1) { + seq1 = UintptrFromInt32(0) + **(**uintptr)(__ccgo_up(bp + 8)) = UintptrFromInt32(0) + pos_add_save = **(**int32)(__ccgo_up(bp)) + /* Create a catenated sequence of copies of the node. */ + j = 0 + for { + if !(j < (*Ttre_iteration_t)(unsafe.Pointer(iter1)).Fmin) { + break + } + if j+int32(1) < (*Ttre_iteration_t)(unsafe.Pointer(iter1)).Fmin { + v2 = int32(COPY_REMOVE_TAGS) + } else { + v2 = int32(COPY_MAXIMIZE_FIRST_TAG) + } + /* Remove tags from all but the last copy. */ + flags = v2 + pos_add_save = **(**int32)(__ccgo_up(bp)) + status = _tre_copy_ast(tls, mem, stack, (*Ttre_iteration_t)(unsafe.Pointer(iter1)).Farg, flags, bp, tag_directions, bp+16, bp+4) + if status != REG_OK { + return status + } + if seq1 != UintptrFromInt32(0) { + seq1 = _tre_ast_new_catenation(tls, mem, seq1, **(**uintptr)(__ccgo_up(bp + 16))) + } else { + seq1 = **(**uintptr)(__ccgo_up(bp + 16)) + } + if seq1 == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + goto _1 + _1: + ; + j = j + 1 + } + if (*Ttre_iteration_t)(unsafe.Pointer(iter1)).Fmax == -int32(1) { + /* No upper limit. */ + pos_add_save = **(**int32)(__ccgo_up(bp)) + status = _tre_copy_ast(tls, mem, stack, (*Ttre_iteration_t)(unsafe.Pointer(iter1)).Farg, 0, bp, UintptrFromInt32(0), bp+8, bp+4) + if status != REG_OK { + return status + } + **(**uintptr)(__ccgo_up(bp + 8)) = _tre_ast_new_iter(tls, mem, **(**uintptr)(__ccgo_up(bp + 8)), 0, -int32(1), 0) + if **(**uintptr)(__ccgo_up(bp + 8)) == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + } else { + j = (*Ttre_iteration_t)(unsafe.Pointer(iter1)).Fmin + for { + if !(j < (*Ttre_iteration_t)(unsafe.Pointer(iter1)).Fmax) { + break + } + pos_add_save = **(**int32)(__ccgo_up(bp)) + status = _tre_copy_ast(tls, mem, stack, (*Ttre_iteration_t)(unsafe.Pointer(iter1)).Farg, 0, bp, UintptrFromInt32(0), bp+24, bp+4) + if status != REG_OK { + return status + } + if **(**uintptr)(__ccgo_up(bp + 8)) != UintptrFromInt32(0) { + **(**uintptr)(__ccgo_up(bp + 8)) = _tre_ast_new_catenation(tls, mem, **(**uintptr)(__ccgo_up(bp + 24)), **(**uintptr)(__ccgo_up(bp + 8))) + } else { + **(**uintptr)(__ccgo_up(bp + 8)) = **(**uintptr)(__ccgo_up(bp + 24)) + } + if **(**uintptr)(__ccgo_up(bp + 8)) == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + tmp = _tre_ast_new_literal(tls, mem, -int32(1), -int32(1), -int32(1)) + if tmp == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + **(**uintptr)(__ccgo_up(bp + 8)) = _tre_ast_new_union(tls, mem, tmp, **(**uintptr)(__ccgo_up(bp + 8))) + if **(**uintptr)(__ccgo_up(bp + 8)) == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + goto _3 + _3: + ; + j = j + 1 + } + } + **(**int32)(__ccgo_up(bp)) = pos_add_save + if seq1 == UintptrFromInt32(0) { + seq1 = **(**uintptr)(__ccgo_up(bp + 8)) + } else { + if **(**uintptr)(__ccgo_up(bp + 8)) != UintptrFromInt32(0) { + seq1 = _tre_ast_new_catenation(tls, mem, seq1, **(**uintptr)(__ccgo_up(bp + 8))) + } + } + if seq1 == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj = (*Ttre_ast_node_t)(unsafe.Pointer(seq1)).Fobj + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 = (*Ttre_ast_node_t)(unsafe.Pointer(seq1)).Ftype1 + } + iter_depth = iter_depth - 1 + pos_add_total = pos_add_total + (**(**int32)(__ccgo_up(bp)) - pos_add_last) + if iter_depth == 0 { + **(**int32)(__ccgo_up(bp)) = pos_add_total + } + default: + break + } + } + **(**int32)(__ccgo_up(position)) += pos_add_total + /* `max_pos' should never be larger than `*position' if the above + code works, but just an extra safeguard let's make sure + `*position' is set large enough so enough memory will be + allocated for the transition table. */ + if **(**int32)(__ccgo_up(bp + 4)) > **(**int32)(__ccgo_up(position)) { + **(**int32)(__ccgo_up(position)) = **(**int32)(__ccgo_up(bp + 4)) + } + return status +} + +func _tre_set_empty(tls *TLS, mem Ttre_mem_t) (r uintptr) { + var new_set uintptr + _ = new_set + new_set = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), int32(1), uint64(56)) + if new_set == UintptrFromInt32(0) { + return UintptrFromInt32(0) + } + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set))).Fposition = -int32(1) + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set))).Fcode_min = -int32(1) + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set))).Fcode_max = -int32(1) + return new_set +} + +func _tre_set_one(tls *TLS, mem Ttre_mem_t, position int32, code_min int32, code_max int32, class Ttre_ctype_t, neg_classes uintptr, backref int32) (r uintptr) { + var new_set uintptr + _ = new_set + new_set = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), int32(1), Uint64FromInt64(56)*Uint64FromInt32(2)) + if new_set == UintptrFromInt32(0) { + return UintptrFromInt32(0) + } + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set))).Fposition = position + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set))).Fcode_min = code_min + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set))).Fcode_max = code_max + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set))).Fclass = class + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set))).Fneg_classes = neg_classes + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set))).Fbackref = backref + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + 1*56))).Fposition = -int32(1) + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + 1*56))).Fcode_min = -int32(1) + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + 1*56))).Fcode_max = -int32(1) + return new_set +} + +func _tre_set_union(tls *TLS, mem Ttre_mem_t, set1 uintptr, set2 uintptr, tags uintptr, assertions int32) (r uintptr) { + var i, j, num_tags, s1, s2 int32 + var new_set, new_tags uintptr + _, _, _, _, _, _, _ = i, j, new_set, new_tags, num_tags, s1, s2 + num_tags = 0 + for { + if !(tags != UintptrFromInt32(0) && **(**int32)(__ccgo_up(tags + uintptr(num_tags)*4)) >= 0) { + break + } + goto _1 + _1: + ; + num_tags = num_tags + 1 + } + s1 = 0 + for { + if !((**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*56))).Fposition >= 0) { + break + } + goto _2 + _2: + ; + s1 = s1 + 1 + } + s2 = 0 + for { + if !((**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*56))).Fposition >= 0) { + break + } + goto _3 + _3: + ; + s2 = s2 + 1 + } + new_set = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), int32(1), uint64(56)*Uint64FromInt32(s1+s2+Int32FromInt32(1))) + if !(new_set != 0) { + return UintptrFromInt32(0) + } + s1 = 0 + for { + if !((**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*56))).Fposition >= 0) { + break + } + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1)*56))).Fposition = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*56))).Fposition + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1)*56))).Fcode_min = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*56))).Fcode_min + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1)*56))).Fcode_max = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*56))).Fcode_max + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1)*56))).Fassertions = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*56))).Fassertions | assertions + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1)*56))).Fclass = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*56))).Fclass + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1)*56))).Fneg_classes = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*56))).Fneg_classes + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1)*56))).Fbackref = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*56))).Fbackref + if (**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*56))).Ftags == UintptrFromInt32(0) && tags == UintptrFromInt32(0) { + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1)*56))).Ftags = UintptrFromInt32(0) + } else { + i = 0 + for { + if !((**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*56))).Ftags != UintptrFromInt32(0) && **(**int32)(__ccgo_up((**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*56))).Ftags + uintptr(i)*4)) >= 0) { + break + } + goto _5 + _5: + ; + i = i + 1 + } + new_tags = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, Uint64FromInt64(4)*Uint64FromInt32(i+num_tags+Int32FromInt32(1))) + if new_tags == UintptrFromInt32(0) { + return UintptrFromInt32(0) + } + j = 0 + for { + if !(j < i) { + break + } + **(**int32)(__ccgo_up(new_tags + uintptr(j)*4)) = **(**int32)(__ccgo_up((**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*56))).Ftags + uintptr(j)*4)) + goto _6 + _6: + ; + j = j + 1 + } + i = 0 + for { + if !(i < num_tags) { + break + } + **(**int32)(__ccgo_up(new_tags + uintptr(j+i)*4)) = **(**int32)(__ccgo_up(tags + uintptr(i)*4)) + goto _7 + _7: + ; + i = i + 1 + } + **(**int32)(__ccgo_up(new_tags + uintptr(j+i)*4)) = -int32(1) + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1)*56))).Ftags = new_tags + } + goto _4 + _4: + ; + s1 = s1 + 1 + } + s2 = 0 + for { + if !((**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*56))).Fposition >= 0) { + break + } + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1+s2)*56))).Fposition = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*56))).Fposition + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1+s2)*56))).Fcode_min = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*56))).Fcode_min + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1+s2)*56))).Fcode_max = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*56))).Fcode_max + /* XXX - why not | assertions here as well? */ + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1+s2)*56))).Fassertions = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*56))).Fassertions + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1+s2)*56))).Fclass = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*56))).Fclass + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1+s2)*56))).Fneg_classes = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*56))).Fneg_classes + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1+s2)*56))).Fbackref = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*56))).Fbackref + if (**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*56))).Ftags == UintptrFromInt32(0) { + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1+s2)*56))).Ftags = UintptrFromInt32(0) + } else { + i = 0 + for { + if !(**(**int32)(__ccgo_up((**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*56))).Ftags + uintptr(i)*4)) >= 0) { + break + } + goto _9 + _9: + ; + i = i + 1 + } + new_tags = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint64(4)*Uint64FromInt32(i+Int32FromInt32(1))) + if new_tags == UintptrFromInt32(0) { + return UintptrFromInt32(0) + } + j = 0 + for { + if !(j < i) { + break + } + **(**int32)(__ccgo_up(new_tags + uintptr(j)*4)) = **(**int32)(__ccgo_up((**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*56))).Ftags + uintptr(j)*4)) + goto _10 + _10: + ; + j = j + 1 + } + **(**int32)(__ccgo_up(new_tags + uintptr(j)*4)) = -int32(1) + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1+s2)*56))).Ftags = new_tags + } + goto _8 + _8: + ; + s2 = s2 + 1 + } + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1+s2)*56))).Fposition = -int32(1) + return new_set +} + +// C documentation +// +// /* Finds the empty path through `node' which is the one that should be +// taken according to POSIX.2 rules, and adds the tags on that path to +// `tags'. `tags' may be NULL. If `num_tags_seen' is not NULL, it is +// set to the number of tags seen on the path. */ +func _tre_match_empty(tls *TLS, stack uintptr, node uintptr, tags uintptr, assertions uintptr, num_tags_seen uintptr) (r Treg_errcode_t) { + var bottom, i int32 + var cat, iter, lit, uni, v2 uintptr + var status Treg_errcode_t + _, _, _, _, _, _, _, _ = bottom, cat, i, iter, lit, status, uni, v2 + bottom = _tre_stack_num_objects(tls, stack) + status = REG_OK + if num_tags_seen != 0 { + **(**int32)(__ccgo_up(num_tags_seen)) = 0 + } + status = _tre_stack_push_voidptr(tls, stack, node) + /* Walk through the tree recursively. */ + for status == REG_OK && _tre_stack_num_objects(tls, stack) > bottom { + node = _tre_stack_pop_voidptr(tls, stack) + switch (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 { + case int32(_LITERAL): + lit = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + switch (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min { + case int64(-int32(3)): + if (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max >= 0 { + if tags != UintptrFromInt32(0) { + /* Add the tag to `tags'. */ + i = 0 + for { + if !(**(**int32)(__ccgo_up(tags + uintptr(i)*4)) >= 0) { + break + } + if int64(**(**int32)(__ccgo_up(tags + uintptr(i)*4))) == (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max { + break + } + goto _1 + _1: + ; + i = i + 1 + } + if **(**int32)(__ccgo_up(tags + uintptr(i)*4)) < 0 { + **(**int32)(__ccgo_up(tags + uintptr(i)*4)) = int32((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max) + **(**int32)(__ccgo_up(tags + uintptr(i+int32(1))*4)) = -int32(1) + } + } + if num_tags_seen != 0 { + **(**int32)(__ccgo_up(num_tags_seen)) = **(**int32)(__ccgo_up(num_tags_seen)) + 1 + } + } + case int64(-int32(2)): + if assertions != UintptrFromInt32(0) { + v2 = assertions + *(*int32)(unsafe.Pointer(v2)) = int32(int64(*(*int32)(unsafe.Pointer(v2))) | (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max) + } + case int64(-int32(1)): + default: + break + } + case int32(_UNION): + /* Subexpressions starting earlier take priority over ones + starting later, so we prefer the left subexpression over the + right subexpression. */ + uni = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + if (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_union_t)(unsafe.Pointer(uni)).Fleft)).Fnullable != 0 { + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_union_t)(unsafe.Pointer(uni)).Fleft) + if status != REG_OK { + break + } + } else { + if (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_union_t)(unsafe.Pointer(uni)).Fright)).Fnullable != 0 { + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_union_t)(unsafe.Pointer(uni)).Fright) + if status != REG_OK { + break + } + } else { + } + } + case int32(_CATENATION): + /* The path must go through both children. */ + cat = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright) + if status != REG_OK { + break + } + case int32(_ITERATION): + /* A match with an empty string is preferred over no match at + all, so we go through the argument if possible. */ + iter = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + if (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg)).Fnullable != 0 { + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg) + if status != REG_OK { + break + } + } + default: + break + } + } + return status +} + +type Ttre_nfl_stack_symbol_t = int32 + +const _NFL_RECURSE = 0 +const _NFL_POST_UNION = 1 +const _NFL_POST_CATENATION = 2 +const _NFL_POST_ITERATION = 3 + +// C documentation +// +// /* Computes and fills in the fields `nullable', `firstpos', and `lastpos' for +// the nodes of the AST `tree'. */ +func _tre_compute_nfl(tls *TLS, mem Ttre_mem_t, stack uintptr, tree uintptr) (r Treg_errcode_t) { + bp := tls.Alloc(16) + defer tls.Free(16) + var _status, _status1, _status10, _status11, _status12, _status13, _status14, _status15, _status16, _status17, _status2, _status3, _status4, _status5, _status6, _status7, _status8, _status9, status Treg_errcode_t + var bottom int32 + var cat, iter, lit, node, tags, uni uintptr + var symbol Ttre_nfl_stack_symbol_t + var _ /* assertions at bp+4 */ int32 + var _ /* num_tags at bp+0 */ int32 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = _status, _status1, _status10, _status11, _status12, _status13, _status14, _status15, _status16, _status17, _status2, _status3, _status4, _status5, _status6, _status7, _status8, _status9, bottom, cat, iter, lit, node, status, symbol, tags, uni + bottom = _tre_stack_num_objects(tls, stack) + _status = _tre_stack_push_voidptr(tls, stack, tree) + if _status != REG_OK { + return _status + } + _status1 = _tre_stack_push_int(tls, stack, int32(_NFL_RECURSE)) + if _status1 != REG_OK { + return _status1 + } + for _tre_stack_num_objects(tls, stack) > bottom { + symbol = _tre_stack_pop_int(tls, stack) + node = _tre_stack_pop_voidptr(tls, stack) + switch symbol { + case int32(_NFL_RECURSE): + switch (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 { + case int32(_LITERAL): + lit = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + if (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min == int64(-int32(4)) { + /* Back references: nullable = false, firstpos = {i}, + lastpos = {i}. */ + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnullable = 0 + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos = _tre_set_one(tls, mem, (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition, 0, int32(TRE_CHAR_MAX), uint64(0), UintptrFromInt32(0), -int32(1)) + if !((*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos != 0) { + return int32(REG_ESPACE) + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos = _tre_set_one(tls, mem, (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition, 0, int32(TRE_CHAR_MAX), uint64(0), UintptrFromInt32(0), int32((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max)) + if !((*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos != 0) { + return int32(REG_ESPACE) + } + } else { + if (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min < 0 { + /* Tags, empty strings, params, and zero width assertions: + nullable = true, firstpos = {}, and lastpos = {}. */ + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnullable = int32(1) + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos = _tre_set_empty(tls, mem) + if !((*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos != 0) { + return int32(REG_ESPACE) + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos = _tre_set_empty(tls, mem) + if !((*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos != 0) { + return int32(REG_ESPACE) + } + } else { + /* Literal at position i: nullable = false, firstpos = {i}, + lastpos = {i}. */ + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnullable = 0 + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos = _tre_set_one(tls, mem, (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition, int32((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min), int32((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max), uint64(0), UintptrFromInt32(0), -int32(1)) + if !((*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos != 0) { + return int32(REG_ESPACE) + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos = _tre_set_one(tls, mem, (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition, int32((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min), int32((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max), (*Ttre_literal_t)(unsafe.Pointer(lit)).Fclass, (*Ttre_literal_t)(unsafe.Pointer(lit)).Fneg_classes, -int32(1)) + if !((*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos != 0) { + return int32(REG_ESPACE) + } + } + } + case int32(_UNION): + /* Compute the attributes for the two subtrees, and after that + for this node. */ + _status2 = _tre_stack_push_voidptr(tls, stack, node) + if _status2 != REG_OK { + return _status2 + } + _status3 = _tre_stack_push_int(tls, stack, int32(_NFL_POST_UNION)) + if _status3 != REG_OK { + return _status3 + } + _status4 = _tre_stack_push_voidptr(tls, stack, (*Ttre_union_t)(unsafe.Pointer((*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj)).Fright) + if _status4 != REG_OK { + return _status4 + } + _status5 = _tre_stack_push_int(tls, stack, int32(_NFL_RECURSE)) + if _status5 != REG_OK { + return _status5 + } + _status6 = _tre_stack_push_voidptr(tls, stack, (*Ttre_union_t)(unsafe.Pointer((*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj)).Fleft) + if _status6 != REG_OK { + return _status6 + } + _status7 = _tre_stack_push_int(tls, stack, int32(_NFL_RECURSE)) + if _status7 != REG_OK { + return _status7 + } + case int32(_CATENATION): + /* Compute the attributes for the two subtrees, and after that + for this node. */ + _status8 = _tre_stack_push_voidptr(tls, stack, node) + if _status8 != REG_OK { + return _status8 + } + _status9 = _tre_stack_push_int(tls, stack, int32(_NFL_POST_CATENATION)) + if _status9 != REG_OK { + return _status9 + } + _status10 = _tre_stack_push_voidptr(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer((*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj)).Fright) + if _status10 != REG_OK { + return _status10 + } + _status11 = _tre_stack_push_int(tls, stack, int32(_NFL_RECURSE)) + if _status11 != REG_OK { + return _status11 + } + _status12 = _tre_stack_push_voidptr(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer((*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj)).Fleft) + if _status12 != REG_OK { + return _status12 + } + _status13 = _tre_stack_push_int(tls, stack, int32(_NFL_RECURSE)) + if _status13 != REG_OK { + return _status13 + } + case int32(_ITERATION): + /* Compute the attributes for the subtree, and after that for + this node. */ + _status14 = _tre_stack_push_voidptr(tls, stack, node) + if _status14 != REG_OK { + return _status14 + } + _status15 = _tre_stack_push_int(tls, stack, int32(_NFL_POST_ITERATION)) + if _status15 != REG_OK { + return _status15 + } + _status16 = _tre_stack_push_voidptr(tls, stack, (*Ttre_iteration_t)(unsafe.Pointer((*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj)).Farg) + if _status16 != REG_OK { + return _status16 + } + _status17 = _tre_stack_push_int(tls, stack, int32(_NFL_RECURSE)) + if _status17 != REG_OK { + return _status17 + } + break + } + case int32(_NFL_POST_UNION): + uni = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnullable = BoolInt32((*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_union_t)(unsafe.Pointer(uni)).Fleft)).Fnullable != 0 || (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_union_t)(unsafe.Pointer(uni)).Fright)).Fnullable != 0) + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos = _tre_set_union(tls, mem, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_union_t)(unsafe.Pointer(uni)).Fleft)).Ffirstpos, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_union_t)(unsafe.Pointer(uni)).Fright)).Ffirstpos, UintptrFromInt32(0), 0) + if !((*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos != 0) { + return int32(REG_ESPACE) + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos = _tre_set_union(tls, mem, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_union_t)(unsafe.Pointer(uni)).Fleft)).Flastpos, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_union_t)(unsafe.Pointer(uni)).Fright)).Flastpos, UintptrFromInt32(0), 0) + if !((*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos != 0) { + return int32(REG_ESPACE) + } + case int32(_NFL_POST_ITERATION): + iter = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + if (*Ttre_iteration_t)(unsafe.Pointer(iter)).Fmin == 0 || (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg)).Fnullable != 0 { + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnullable = int32(1) + } else { + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnullable = 0 + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos = (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg)).Ffirstpos + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos = (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg)).Flastpos + case int32(_NFL_POST_CATENATION): + cat = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnullable = BoolInt32((*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft)).Fnullable != 0 && (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright)).Fnullable != 0) + /* Compute firstpos. */ + if (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft)).Fnullable != 0 { + /* The left side matches the empty string. Make a first pass + with tre_match_empty() to get the number of tags and + parameters. */ + status = _tre_match_empty(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft, UintptrFromInt32(0), UintptrFromInt32(0), bp) + if status != REG_OK { + return status + } + /* Allocate arrays for the tags and parameters. */ + tags = Xmalloc(tls, uint64(4)*Uint64FromInt32(**(**int32)(__ccgo_up(bp))+Int32FromInt32(1))) + if !(tags != 0) { + return int32(REG_ESPACE) + } + **(**int32)(__ccgo_up(tags)) = -int32(1) + **(**int32)(__ccgo_up(bp + 4)) = 0 + /* Second pass with tre_mach_empty() to get the list of + tags and parameters. */ + status = _tre_match_empty(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft, tags, bp+4, UintptrFromInt32(0)) + if status != REG_OK { + Xfree(tls, tags) + return status + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos = _tre_set_union(tls, mem, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright)).Ffirstpos, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft)).Ffirstpos, tags, **(**int32)(__ccgo_up(bp + 4))) + Xfree(tls, tags) + if !((*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos != 0) { + return int32(REG_ESPACE) + } + } else { + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos = (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft)).Ffirstpos + } + /* Compute lastpos. */ + if (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright)).Fnullable != 0 { + /* The right side matches the empty string. Make a first pass + with tre_match_empty() to get the number of tags and + parameters. */ + status = _tre_match_empty(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright, UintptrFromInt32(0), UintptrFromInt32(0), bp) + if status != REG_OK { + return status + } + /* Allocate arrays for the tags and parameters. */ + tags = Xmalloc(tls, uint64(4)*Uint64FromInt32(**(**int32)(__ccgo_up(bp))+Int32FromInt32(1))) + if !(tags != 0) { + return int32(REG_ESPACE) + } + **(**int32)(__ccgo_up(tags)) = -int32(1) + **(**int32)(__ccgo_up(bp + 4)) = 0 + /* Second pass with tre_mach_empty() to get the list of + tags and parameters. */ + status = _tre_match_empty(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright, tags, bp+4, UintptrFromInt32(0)) + if status != REG_OK { + Xfree(tls, tags) + return status + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos = _tre_set_union(tls, mem, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft)).Flastpos, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright)).Flastpos, tags, **(**int32)(__ccgo_up(bp + 4))) + Xfree(tls, tags) + if !((*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos != 0) { + return int32(REG_ESPACE) + } + } else { + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos = (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright)).Flastpos + } + default: + break + } + } + return REG_OK +} + +// C documentation +// +// /* Adds a transition from each position in `p1' to each position in `p2'. */ +func _tre_make_trans(tls *TLS, p1 uintptr, p2 uintptr, transitions uintptr, counts uintptr, offs uintptr) (r Treg_errcode_t) { + var dup, i, j, k, l, prev_p2_pos, v1, v2 int32 + var orig_p2, trans uintptr + _, _, _, _, _, _, _, _, _, _ = dup, i, j, k, l, orig_p2, prev_p2_pos, trans, v1, v2 + orig_p2 = p2 + if transitions != UintptrFromInt32(0) { + for (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fposition >= 0 { + p2 = orig_p2 + prev_p2_pos = -int32(1) + for (*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Fposition >= 0 { + /* Optimization: if this position was already handled, skip it. */ + if (*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Fposition == prev_p2_pos { + p2 += 56 + continue + } + prev_p2_pos = (*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Fposition + /* Set `trans' to point to the next unused transition from + position `p1->position'. */ + trans = transitions + uintptr(**(**int32)(__ccgo_up(offs + uintptr((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fposition)*4)))*56 + for (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fstate != UintptrFromInt32(0) { + trans += 56 + } + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fstate == UintptrFromInt32(0) { + (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans + UintptrFromInt32(1)*56)).Fstate = UintptrFromInt32(0) + } + /* Use the character ranges, assertions, etc. from `p1' for + the transition from `p1' to `p2'. */ + (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fcode_min = Uint32FromInt32((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fcode_min) + (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fcode_max = Uint32FromInt32((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fcode_max) + (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fstate = transitions + uintptr(**(**int32)(__ccgo_up(offs + uintptr((*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Fposition)*4)))*56 + (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fstate_id = (*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Fposition + if (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fclass != 0 { + v1 = int32(ASSERT_CHAR_CLASS) + } else { + v1 = 0 + } + if (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fneg_classes != UintptrFromInt32(0) { + v2 = int32(ASSERT_CHAR_CLASS_NEG) + } else { + v2 = 0 + } + (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fassertions = (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fassertions | (*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Fassertions | v1 | v2 + if (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fbackref >= 0 { + *(*int32)(unsafe.Pointer(&(*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fu)) = (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fbackref + **(**int32)(__ccgo_up(trans + 32)) |= int32(ASSERT_BACKREF) + } else { + *(*Ttre_ctype_t)(unsafe.Pointer(trans + 40)) = (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fclass + } + if (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fneg_classes != UintptrFromInt32(0) { + i = 0 + for { + if !(**(**Ttre_ctype_t)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fneg_classes + uintptr(i)*8)) != Uint64FromInt32(0)) { + break + } + goto _3 + _3: + ; + i = i + 1 + } + (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fneg_classes = Xmalloc(tls, uint64(8)*Uint64FromInt32(i+Int32FromInt32(1))) + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fneg_classes == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + i = 0 + for { + if !(**(**Ttre_ctype_t)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fneg_classes + uintptr(i)*8)) != Uint64FromInt32(0)) { + break + } + **(**Ttre_ctype_t)(__ccgo_up((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fneg_classes + uintptr(i)*8)) = **(**Ttre_ctype_t)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fneg_classes + uintptr(i)*8)) + goto _4 + _4: + ; + i = i + 1 + } + **(**Ttre_ctype_t)(__ccgo_up((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fneg_classes + uintptr(i)*8)) = Uint64FromInt32(0) + } else { + (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fneg_classes = UintptrFromInt32(0) + } + /* Find out how many tags this transition has. */ + i = 0 + if (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Ftags != UintptrFromInt32(0) { + for **(**int32)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Ftags + uintptr(i)*4)) >= 0 { + i = i + 1 + } + } + j = 0 + if (*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Ftags != UintptrFromInt32(0) { + for **(**int32)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Ftags + uintptr(j)*4)) >= 0 { + j = j + 1 + } + } + /* If we are overwriting a transition, free the old tag array. */ + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags != UintptrFromInt32(0) { + Xfree(tls, (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags) + } + (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags = UintptrFromInt32(0) + /* If there were any tags, allocate an array and fill it. */ + if i+j > 0 { + (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags = Xmalloc(tls, uint64(4)*Uint64FromInt32(i+j+Int32FromInt32(1))) + if !((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags != 0) { + return int32(REG_ESPACE) + } + i = 0 + if (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Ftags != UintptrFromInt32(0) { + for **(**int32)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Ftags + uintptr(i)*4)) >= 0 { + **(**int32)(__ccgo_up((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags + uintptr(i)*4)) = **(**int32)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Ftags + uintptr(i)*4)) + i = i + 1 + } + } + l = i + j = 0 + if (*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Ftags != UintptrFromInt32(0) { + for **(**int32)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Ftags + uintptr(j)*4)) >= 0 { + /* Don't add duplicates. */ + dup = 0 + k = 0 + for { + if !(k < i) { + break + } + if **(**int32)(__ccgo_up((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags + uintptr(k)*4)) == **(**int32)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Ftags + uintptr(j)*4)) { + dup = int32(1) + break + } + goto _5 + _5: + ; + k = k + 1 + } + if !(dup != 0) { + v1 = l + l = l + 1 + **(**int32)(__ccgo_up((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags + uintptr(v1)*4)) = **(**int32)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Ftags + uintptr(j)*4)) + } + j = j + 1 + } + } + **(**int32)(__ccgo_up((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags + uintptr(l)*4)) = -int32(1) + } + p2 += 56 + } + p1 += 56 + } + } else { + /* Compute a maximum limit for the number of transitions leaving + from each state. */ + for (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fposition >= 0 { + p2 = orig_p2 + for (*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Fposition >= 0 { + **(**int32)(__ccgo_up(counts + uintptr((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fposition)*4)) = **(**int32)(__ccgo_up(counts + uintptr((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fposition)*4)) + 1 + p2 += 56 + } + p1 += 56 + } + } + return REG_OK +} + +// C documentation +// +// /* Converts the syntax tree to a TNFA. All the transitions in the TNFA are +// labelled with one character range (there are no transitions on empty +// strings). The TNFA takes O(n^2) space in the worst case, `n' is size of +// the regexp. */ +func _tre_ast_to_tnfa(tls *TLS, node uintptr, transitions uintptr, counts uintptr, offs uintptr) (r Treg_errcode_t) { + var cat, iter, uni uintptr + var errcode Treg_errcode_t + _, _, _, _ = cat, errcode, iter, uni + errcode = REG_OK + /* XXX - recurse using a stack!. */ + switch (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 { + case int32(_LITERAL): + case int32(_UNION): + uni = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + errcode = _tre_ast_to_tnfa(tls, (*Ttre_union_t)(unsafe.Pointer(uni)).Fleft, transitions, counts, offs) + if errcode != REG_OK { + return errcode + } + errcode = _tre_ast_to_tnfa(tls, (*Ttre_union_t)(unsafe.Pointer(uni)).Fright, transitions, counts, offs) + case int32(_CATENATION): + cat = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + /* Add a transition from each position in cat->left->lastpos + to each position in cat->right->firstpos. */ + errcode = _tre_make_trans(tls, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft)).Flastpos, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright)).Ffirstpos, transitions, counts, offs) + if errcode != REG_OK { + return errcode + } + errcode = _tre_ast_to_tnfa(tls, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft, transitions, counts, offs) + if errcode != REG_OK { + return errcode + } + errcode = _tre_ast_to_tnfa(tls, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright, transitions, counts, offs) + case int32(_ITERATION): + iter = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + if (*Ttre_iteration_t)(unsafe.Pointer(iter)).Fmax == -int32(1) { + /* Add a transition from each last position in the iterated + expression to each first position. */ + errcode = _tre_make_trans(tls, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg)).Flastpos, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg)).Ffirstpos, transitions, counts, offs) + if errcode != REG_OK { + return errcode + } + } + errcode = _tre_ast_to_tnfa(tls, (*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg, transitions, counts, offs) + break + } + return errcode +} + +func Xregcomp(tls *TLS, preg uintptr, regex uintptr, cflags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v preg=%v regex=%v cflags=%v, (%v:)", tls, preg, regex, cflags, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var add, i, j, v1 int32 + var counts, initial, offs, p, stack, submatch_data, tag_directions, tmp_ast_l, tmp_ast_r, tnfa, transitions, tree, v2 uintptr + var errcode Treg_errcode_t + var mem Ttre_mem_t + var _ /* parse_ctx at bp+0 */ Ttre_parse_ctx_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = add, counts, errcode, i, initial, j, mem, offs, p, stack, submatch_data, tag_directions, tmp_ast_l, tmp_ast_r, tnfa, transitions, tree, v1, v2 + counts = UintptrFromInt32(0) + offs = UintptrFromInt32(0) + add = 0 + tnfa = UintptrFromInt32(0) + tag_directions = UintptrFromInt32(0) + /* Allocate a stack used throughout the compilation process for various + purposes. */ + stack = _tre_stack_new(tls, int32(512), int32(1024000), int32(128)) + if !(stack != 0) { + return int32(REG_ESPACE) + } + /* Allocate a fast memory allocator. */ + mem = X__tre_mem_new_impl(tls, 0, UintptrFromInt32(0)) + if !(mem != 0) { + _tre_stack_destroy(tls, stack) + return int32(REG_ESPACE) + } + /* Parse the regexp. */ + Xmemset(tls, bp, 0, uint64(56)) + (**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fmem = mem + (**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fstack = stack + (**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fstart = regex + (**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fcflags = cflags + (**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fmax_backref = -int32(1) + errcode = _tre_parse(tls, bp) + if errcode != REG_OK { + errcode = errcode + if int32(1) != 0 { + goto error_exit + } + } + (*Tregex_t)(unsafe.Pointer(preg)).Fre_nsub = Uint64FromInt32((**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fsubmatch_id - int32(1)) + tree = (**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fn + /* Referring to nonexistent subexpressions is illegal. */ + if (**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fmax_backref > Int32FromUint64((*Tregex_t)(unsafe.Pointer(preg)).Fre_nsub) { + errcode = int32(REG_ESUBREG) + if int32(1) != 0 { + goto error_exit + } + } + /* Allocate the TNFA struct. */ + tnfa = Xcalloc(tls, uint64(1), uint64(104)) + if tnfa == UintptrFromInt32(0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fhave_backrefs = BoolInt32((**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fmax_backref >= 0) + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fhave_approx = 0 + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_submatches = Uint32FromInt32((**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fsubmatch_id) + /* Set up tags for submatch addressing. If REG_NOSUB is set and the + regexp does not have back references, this can be skipped. */ + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fhave_backrefs != 0 || !(cflags&Int32FromInt32(REG_NOSUB) != 0) { + /* Figure out how many tags we will need. */ + errcode = _tre_add_tags(tls, UintptrFromInt32(0), stack, tree, tnfa) + if errcode != REG_OK { + errcode = errcode + if int32(1) != 0 { + goto error_exit + } + } + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags > 0 { + tag_directions = Xmalloc(tls, uint64(4)*Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags+Int32FromInt32(1))) + if tag_directions == UintptrFromInt32(0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions = tag_directions + Xmemset(tls, tag_directions, -int32(1), uint64(4)*Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags+Int32FromInt32(1))) + } + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags = Xcalloc(tls, uint64(Uint32FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags)*uint32(2)+uint32(1)), uint64(4)) + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags == UintptrFromInt32(0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + submatch_data = Xcalloc(tls, uint64(Uint32FromInt32((**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fsubmatch_id)), uint64(16)) + if submatch_data == UintptrFromInt32(0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fsubmatch_data = submatch_data + errcode = _tre_add_tags(tls, mem, stack, tree, tnfa) + if errcode != REG_OK { + errcode = errcode + if int32(1) != 0 { + goto error_exit + } + } + } + /* Expand iteration nodes. */ + errcode = _tre_expand_ast(tls, mem, stack, tree, bp+44, tag_directions) + if errcode != REG_OK { + errcode = errcode + if int32(1) != 0 { + goto error_exit + } + } + /* Add a dummy node for the final state. + XXX - For certain patterns this dummy node can be optimized away, + for example "a*" or "ab*". Figure out a simple way to detect + this possibility. */ + tmp_ast_l = tree + v2 = bp + 44 + v1 = *(*int32)(unsafe.Pointer(v2)) + *(*int32)(unsafe.Pointer(v2)) = *(*int32)(unsafe.Pointer(v2)) + 1 + tmp_ast_r = _tre_ast_new_literal(tls, mem, 0, 0, v1) + if tmp_ast_r == UintptrFromInt32(0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + tree = _tre_ast_new_catenation(tls, mem, tmp_ast_l, tmp_ast_r) + if tree == UintptrFromInt32(0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + errcode = _tre_compute_nfl(tls, mem, stack, tree) + if errcode != REG_OK { + errcode = errcode + if int32(1) != 0 { + goto error_exit + } + } + counts = Xmalloc(tls, uint64(4)*Uint64FromInt32((**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fposition)) + if counts == UintptrFromInt32(0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + offs = Xmalloc(tls, uint64(4)*Uint64FromInt32((**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fposition)) + if offs == UintptrFromInt32(0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + i = 0 + for { + if !(i < (**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fposition) { + break + } + **(**int32)(__ccgo_up(counts + uintptr(i)*4)) = 0 + goto _3 + _3: + ; + i = i + 1 + } + _tre_ast_to_tnfa(tls, tree, UintptrFromInt32(0), counts, UintptrFromInt32(0)) + add = 0 + i = 0 + for { + if !(i < (**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fposition) { + break + } + **(**int32)(__ccgo_up(offs + uintptr(i)*4)) = add + add = add + (**(**int32)(__ccgo_up(counts + uintptr(i)*4)) + int32(1)) + **(**int32)(__ccgo_up(counts + uintptr(i)*4)) = 0 + goto _4 + _4: + ; + i = i + 1 + } + transitions = Xcalloc(tls, uint64(Uint32FromInt32(add)+uint32(1)), uint64(56)) + if transitions == UintptrFromInt32(0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftransitions = transitions + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_transitions = Uint32FromInt32(add) + errcode = _tre_ast_to_tnfa(tls, tree, transitions, counts, offs) + if errcode != REG_OK { + errcode = errcode + if int32(1) != 0 { + goto error_exit + } + } + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ffirstpos_chars = UintptrFromInt32(0) + p = (*Ttre_ast_node_t)(unsafe.Pointer(tree)).Ffirstpos + i = 0 + for (*Ttre_pos_and_tags_t)(unsafe.Pointer(p)).Fposition >= 0 { + i = i + 1 + p += 56 + } + initial = Xcalloc(tls, uint64(Uint32FromInt32(i)+uint32(1)), uint64(56)) + if initial == UintptrFromInt32(0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Finitial = initial + i = 0 + p = (*Ttre_ast_node_t)(unsafe.Pointer(tree)).Ffirstpos + for { + if !((*Ttre_pos_and_tags_t)(unsafe.Pointer(p)).Fposition >= 0) { + break + } + (**(**Ttre_tnfa_transition_t)(__ccgo_up(initial + uintptr(i)*56))).Fstate = transitions + uintptr(**(**int32)(__ccgo_up(offs + uintptr((*Ttre_pos_and_tags_t)(unsafe.Pointer(p)).Fposition)*4)))*56 + (**(**Ttre_tnfa_transition_t)(__ccgo_up(initial + uintptr(i)*56))).Fstate_id = (*Ttre_pos_and_tags_t)(unsafe.Pointer(p)).Fposition + (**(**Ttre_tnfa_transition_t)(__ccgo_up(initial + uintptr(i)*56))).Ftags = UintptrFromInt32(0) + /* Copy the arrays p->tags, and p->params, they are allocated + from a tre_mem object. */ + if (*Ttre_pos_and_tags_t)(unsafe.Pointer(p)).Ftags != 0 { + j = 0 + for { + if !(**(**int32)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p)).Ftags + uintptr(j)*4)) >= 0) { + break + } + goto _6 + _6: + ; + j = j + 1 + } + (**(**Ttre_tnfa_transition_t)(__ccgo_up(initial + uintptr(i)*56))).Ftags = Xmalloc(tls, uint64(4)*Uint64FromInt32(j+Int32FromInt32(1))) + if !((**(**Ttre_tnfa_transition_t)(__ccgo_up(initial + uintptr(i)*56))).Ftags != 0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + Xmemcpy(tls, (**(**Ttre_tnfa_transition_t)(__ccgo_up(initial + uintptr(i)*56))).Ftags, (*Ttre_pos_and_tags_t)(unsafe.Pointer(p)).Ftags, uint64(4)*Uint64FromInt32(j+Int32FromInt32(1))) + } + (**(**Ttre_tnfa_transition_t)(__ccgo_up(initial + uintptr(i)*56))).Fassertions = (*Ttre_pos_and_tags_t)(unsafe.Pointer(p)).Fassertions + i = i + 1 + goto _5 + _5: + ; + p += 56 + } + (**(**Ttre_tnfa_transition_t)(__ccgo_up(initial + uintptr(i)*56))).Fstate = UintptrFromInt32(0) + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_transitions = Uint32FromInt32(add) + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ffinal = transitions + uintptr(**(**int32)(__ccgo_up(offs + uintptr((**(**Ttre_pos_and_tags_t)(__ccgo_up((*Ttre_ast_node_t)(unsafe.Pointer(tree)).Flastpos))).Fposition)*4)))*56 + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states = (**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fposition + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags = cflags + X__tre_mem_destroy(tls, mem) + _tre_stack_destroy(tls, stack) + Xfree(tls, counts) + Xfree(tls, offs) + (*Tregex_t)(unsafe.Pointer(preg)).F__opaque = tnfa + return REG_OK + goto error_exit +error_exit: + ; + /* Free everything that was allocated and return the error code. */ + X__tre_mem_destroy(tls, mem) + if stack != UintptrFromInt32(0) { + _tre_stack_destroy(tls, stack) + } + if counts != UintptrFromInt32(0) { + Xfree(tls, counts) + } + if offs != UintptrFromInt32(0) { + Xfree(tls, offs) + } + (*Tregex_t)(unsafe.Pointer(preg)).F__opaque = tnfa + Xregfree(tls, preg) + return errcode +} + +func Xregfree(tls *TLS, preg uintptr) { + if __ccgo_strace { + trc("tls=%v preg=%v, (%v:)", tls, preg, origin(2)) + } + var i uint32 + var tnfa, trans uintptr + _, _, _ = i, tnfa, trans + tnfa = (*Tregex_t)(unsafe.Pointer(preg)).F__opaque + if !(tnfa != 0) { + return + } + i = uint32(0) + for { + if !(i < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_transitions) { + break + } + if (**(**Ttre_tnfa_transition_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftransitions + uintptr(i)*56))).Fstate != 0 { + if (**(**Ttre_tnfa_transition_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftransitions + uintptr(i)*56))).Ftags != 0 { + Xfree(tls, (**(**Ttre_tnfa_transition_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftransitions + uintptr(i)*56))).Ftags) + } + if (**(**Ttre_tnfa_transition_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftransitions + uintptr(i)*56))).Fneg_classes != 0 { + Xfree(tls, (**(**Ttre_tnfa_transition_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftransitions + uintptr(i)*56))).Fneg_classes) + } + } + goto _1 + _1: + ; + i = i + 1 + } + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftransitions != 0 { + Xfree(tls, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftransitions) + } + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Finitial != 0 { + trans = (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Finitial + for { + if !((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fstate != 0) { + break + } + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags != 0 { + Xfree(tls, (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags) + } + goto _2 + _2: + ; + trans += 56 + } + Xfree(tls, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Finitial) + } + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fsubmatch_data != 0 { + i = uint32(0) + for { + if !(i < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_submatches) { + break + } + if (**(**Ttre_submatch_data_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fsubmatch_data + uintptr(i)*16))).Fparents != 0 { + Xfree(tls, (**(**Ttre_submatch_data_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fsubmatch_data + uintptr(i)*16))).Fparents) + } + goto _3 + _3: + ; + i = i + 1 + } + Xfree(tls, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fsubmatch_data) + } + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions != 0 { + Xfree(tls, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions) + } + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ffirstpos_chars != 0 { + Xfree(tls, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ffirstpos_chars) + } + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags != 0 { + Xfree(tls, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags) + } + Xfree(tls, tnfa) +} + +/* Error message strings for error codes listed in `regex.h'. This list + needs to be in sync with the codes listed there, naturally. */ + +/* Converted to single string by Rich Felker to remove the need for + * data relocations at runtime, 27 Feb 2006. */ + +var _messages = [286]uint8{'N', 'o', ' ', 'e', 'r', 'r', 'o', 'r', 0, 'N', 'o', ' ', 'm', 'a', 't', 'c', 'h', 0, 'I', 'n', 'v', 'a', 'l', 'i', 'd', ' ', 'r', 'e', 'g', 'e', 'x', 'p', 0, 'U', 'n', 'k', 'n', 'o', 'w', 'n', ' ', 'c', 'o', 'l', 'l', 'a', 't', 'i', 'n', 'g', ' ', 'e', 'l', 'e', 'm', 'e', 'n', 't', 0, 'U', 'n', 'k', 'n', 'o', 'w', 'n', ' ', 'c', 'h', 'a', 'r', 'a', 'c', 't', 'e', 'r', ' ', 'c', 'l', 'a', 's', 's', ' ', 'n', 'a', 'm', 'e', 0, 'T', 'r', 'a', 'i', 'l', 'i', 'n', 'g', ' ', 'b', 'a', 'c', 'k', 's', 'l', 'a', 's', 'h', 0, 'I', 'n', 'v', 'a', 'l', 'i', 'd', ' ', 'b', 'a', 'c', 'k', ' ', 'r', 'e', 'f', 'e', 'r', 'e', 'n', 'c', 'e', 0, 'M', 'i', 's', 's', 'i', 'n', 'g', ' ', '\'', ']', '\'', 0, 'M', 'i', 's', 's', 'i', 'n', 'g', ' ', '\'', ')', '\'', 0, 'M', 'i', 's', 's', 'i', 'n', 'g', ' ', '\'', '}', '\'', 0, 'I', 'n', 'v', 'a', 'l', 'i', 'd', ' ', 'c', 'o', 'n', 't', 'e', 'n', 't', 's', ' ', 'o', 'f', ' ', '{', '}', 0, 'I', 'n', 'v', 'a', 'l', 'i', 'd', ' ', 'c', 'h', 'a', 'r', 'a', 'c', 't', 'e', 'r', ' ', 'r', 'a', 'n', 'g', 'e', 0, 'O', 'u', 't', ' ', 'o', 'f', ' ', 'm', 'e', 'm', 'o', 'r', 'y', 0, 'R', 'e', 'p', 'e', 't', 'i', 't', 'i', 'o', 'n', ' ', 'n', 'o', 't', ' ', 'p', 'r', 'e', 'c', 'e', 'd', 'e', 'd', ' ', 'b', 'y', ' ', 'v', 'a', 'l', 'i', 'd', ' ', 'e', 'x', 'p', 'r', 'e', 's', 's', 'i', 'o', 'n', 0, 0, 'U', 'n', 'k', 'n', 'o', 'w', 'n', ' ', 'e', 'r', 'r', 'o', 'r'} + +func Xregerror(tls *TLS, e int32, preg uintptr, buf uintptr, size Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v e=%v preg=%v buf=%v size=%v, (%v:)", tls, e, preg, buf, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var s uintptr + _ = s + s = uintptr(unsafe.Pointer(&_messages)) + for { + if !(e != 0 && **(**uint8)(__ccgo_up(s)) != 0) { + break + } + goto _1 + _1: + ; + e = e - 1 + s = s + uintptr(_strlen(tls, s)+uint64(1)) + } + if !(**(**uint8)(__ccgo_up(s)) != 0) { + s = s + 1 + } + s = X__lctrans_cur(tls, s) + return Uint64FromInt32(int32(1) + Xsnprintf(tls, buf, size, __ccgo_ts+15, VaList(bp+8, s))) +} + +const tre_bt_mem_alloc = 0 +const tre_bt_mem_destroy = 0 +const tre_bt_mem_new = 0 + +/*********************************************************************** + from tre-match-utils.h +***********************************************************************/ + +// C documentation +// +// /* Returns 1 if `t1' wins `t2', 0 otherwise. */ +func _tre_tag_order(tls *TLS, num_tags int32, tag_directions uintptr, t1 uintptr, t2 uintptr) (r int32) { + var i int32 + _ = i + i = 0 + for { + if !(i < num_tags) { + break + } + if **(**Ttre_tag_direction_t)(__ccgo_up(tag_directions + uintptr(i)*4)) == int32(_TRE_TAG_MINIMIZE) { + if **(**Tregoff_t)(__ccgo_up(t1 + uintptr(i)*8)) < **(**Tregoff_t)(__ccgo_up(t2 + uintptr(i)*8)) { + return int32(1) + } + if **(**Tregoff_t)(__ccgo_up(t1 + uintptr(i)*8)) > **(**Tregoff_t)(__ccgo_up(t2 + uintptr(i)*8)) { + return 0 + } + } else { + if **(**Tregoff_t)(__ccgo_up(t1 + uintptr(i)*8)) > **(**Tregoff_t)(__ccgo_up(t2 + uintptr(i)*8)) { + return int32(1) + } + if **(**Tregoff_t)(__ccgo_up(t1 + uintptr(i)*8)) < **(**Tregoff_t)(__ccgo_up(t2 + uintptr(i)*8)) { + return 0 + } + } + goto _1 + _1: + ; + i = i + 1 + } + /* assert(0);*/ + return 0 +} + +func _tre_neg_char_classes_match(tls *TLS, classes uintptr, wc Ttre_cint_t, icase int32) (r int32) { + for **(**Ttre_ctype_t)(__ccgo_up(classes)) != Uint64FromInt32(0) { + if !(icase != 0) && Xiswctype(tls, wc, **(**Ttre_ctype_t)(__ccgo_up(classes))) != 0 || icase != 0 && (Xiswctype(tls, Xtowupper(tls, wc), **(**Ttre_ctype_t)(__ccgo_up(classes))) != 0 || Xiswctype(tls, Xtowlower(tls, wc), **(**Ttre_ctype_t)(__ccgo_up(classes))) != 0) { + return int32(1) + } else { + classes += 8 + } + } + return 0 /* No match. */ +} + +/*********************************************************************** + from tre-match-parallel.c +***********************************************************************/ + +/* + This algorithm searches for matches basically by reading characters + in the searched string one by one, starting at the beginning. All + matching paths in the TNFA are traversed in parallel. When two or + more paths reach the same state, exactly one is chosen according to + tag ordering rules; if returning submatches is not required it does + not matter which path is chosen. + + The worst case time required for finding the leftmost and longest + match, or determining that there is no match, is always linearly + dependent on the length of the text being searched. + + This algorithm cannot handle TNFAs with back referencing nodes. + See `tre-match-backtrack.c'. +*/ + +type Ttre_tnfa_reach_t = struct { + Fstate uintptr + Ftags uintptr +} + +type Ttre_reach_pos_t = struct { + Fpos Tregoff_t + Ftags uintptr +} + +func _tre_tnfa_run_parallel(tls *TLS, tnfa uintptr, string1 uintptr, match_tags uintptr, eflags int32, match_end_ofs uintptr) (r Treg_errcode_t) { + bp := tls.Alloc(16) + defer tls.Free(16) + var buf, reach, reach_i, reach_next, reach_next_i, reach_pos, str_byte, tag_i, tmp_buf, tmp_iptr, tmp_tags, trans_i uintptr + var end, i, new_match, num_tags, reg_newline, reg_notbol, reg_noteol, skip, start, v18 int32 + var match_eo, pos, pos_add_next, v7 Tregoff_t + var pbytes, rbytes, tbytes, total_bytes, xbytes Tsize_t + var prev_c Ttre_char_t + var ret Treg_errcode_t + var v1 uint64 + var _ /* next_c at bp+0 */ Ttre_char_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = buf, end, i, match_eo, new_match, num_tags, pbytes, pos, pos_add_next, prev_c, rbytes, reach, reach_i, reach_next, reach_next_i, reach_pos, reg_newline, reg_notbol, reg_noteol, ret, skip, start, str_byte, tag_i, tbytes, tmp_buf, tmp_iptr, tmp_tags, total_bytes, trans_i, xbytes, v1, v18, v7 + /* State variables required by GET_NEXT_WCHAR. */ + prev_c = 0 + **(**Ttre_char_t)(__ccgo_up(bp)) = 0 + str_byte = string1 + pos = int64(-int32(1)) + pos_add_next = int64(1) + reg_notbol = eflags & int32(REG_NOTBOL) + reg_noteol = eflags & int32(REG_NOTEOL) + reg_newline = (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags & int32(REG_NEWLINE) + match_eo = int64(-int32(1)) /* end offset of match (-1 if no match found yet) */ + new_match = 0 + tmp_tags = UintptrFromInt32(0) + if !(match_tags != 0) { + num_tags = 0 + } else { + num_tags = (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags + } + /* Allocate memory for temporary data required for matching. This needs to + be done for every matching operation to be thread safe. This allocates + everything in a single large block with calloc(). */ + /* Ensure that tbytes and xbytes*num_states cannot overflow, and that + * they don't contribute more than 1/8 of SIZE_MAX to total_bytes. */ + if Uint64FromInt32(num_tags) > uint64(0xffffffffffffffff)/(Uint64FromInt32(8)*Uint64FromInt64(8)*Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states)) { + return int32(REG_ESPACE) + } + /* Likewise check rbytes. */ + if Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states+int32(1)) > Uint64FromUint64(0xffffffffffffffff)/(Uint64FromInt32(8)*Uint64FromInt64(16)) { + return int32(REG_ESPACE) + } + /* Likewise check pbytes. */ + if Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states) > Uint64FromUint64(0xffffffffffffffff)/(Uint64FromInt32(8)*Uint64FromInt64(16)) { + return int32(REG_ESPACE) + } + /* Compute the length of the block we need. */ + tbytes = uint64(8) * Uint64FromInt32(num_tags) + rbytes = uint64(16) * Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states+Int32FromInt32(1)) + pbytes = uint64(16) * Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states) + xbytes = uint64(8) * Uint64FromInt32(num_tags) + total_bytes = (Uint64FromInt64(8)-Uint64FromInt32(1))*Uint64FromInt32(4) + (rbytes+xbytes*Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states))*uint64(2) + tbytes + pbytes + /* Allocate the memory. */ + buf = Xcalloc(tls, total_bytes, uint64(1)) + if buf == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + /* Get the various pointers within tmp_buf (properly aligned). */ + tmp_tags = buf + tmp_buf = buf + uintptr(tbytes) + if Uint64FromInt64(int64(tmp_buf))%uint64(8) != 0 { + v1 = uint64(8) - Uint64FromInt64(int64(tmp_buf))%uint64(8) + } else { + v1 = uint64(0) + } + tmp_buf = tmp_buf + uintptr(v1) + reach_next = tmp_buf + tmp_buf = tmp_buf + uintptr(rbytes) + if Uint64FromInt64(int64(tmp_buf))%uint64(8) != 0 { + v1 = uint64(8) - Uint64FromInt64(int64(tmp_buf))%uint64(8) + } else { + v1 = uint64(0) + } + tmp_buf = tmp_buf + uintptr(v1) + reach = tmp_buf + tmp_buf = tmp_buf + uintptr(rbytes) + if Uint64FromInt64(int64(tmp_buf))%uint64(8) != 0 { + v1 = uint64(8) - Uint64FromInt64(int64(tmp_buf))%uint64(8) + } else { + v1 = uint64(0) + } + tmp_buf = tmp_buf + uintptr(v1) + reach_pos = tmp_buf + tmp_buf = tmp_buf + uintptr(pbytes) + if Uint64FromInt64(int64(tmp_buf))%uint64(8) != 0 { + v1 = uint64(8) - Uint64FromInt64(int64(tmp_buf))%uint64(8) + } else { + v1 = uint64(0) + } + tmp_buf = tmp_buf + uintptr(v1) + i = 0 + for { + if !(i < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states) { + break + } + (**(**Ttre_tnfa_reach_t)(__ccgo_up(reach + uintptr(i)*16))).Ftags = tmp_buf + tmp_buf = tmp_buf + uintptr(xbytes) + (**(**Ttre_tnfa_reach_t)(__ccgo_up(reach_next + uintptr(i)*16))).Ftags = tmp_buf + tmp_buf = tmp_buf + uintptr(xbytes) + goto _5 + _5: + ; + i = i + 1 + } + i = 0 + for { + if !(i < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states) { + break + } + (**(**Ttre_reach_pos_t)(__ccgo_up(reach_pos + uintptr(i)*16))).Fpos = int64(-int32(1)) + goto _6 + _6: + ; + i = i + 1 + } + prev_c = **(**Ttre_char_t)(__ccgo_up(bp)) + pos = pos + pos_add_next + v7 = int64(Xmbtowc(tls, bp, str_byte, uint64(MB_LEN_MAX))) + pos_add_next = v7 + if v7 <= 0 { + if pos_add_next < 0 { + ret = int32(REG_NOMATCH) + goto error_exit + } else { + pos_add_next = pos_add_next + 1 + } + } + str_byte = str_byte + uintptr(pos_add_next) + pos = 0 + reach_next_i = reach_next + for int32(1) != 0 { + /* If no match found yet, add the initial states to `reach_next'. */ + if match_eo < 0 { + trans_i = (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Finitial + for (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate != UintptrFromInt32(0) { + if (**(**Ttre_reach_pos_t)(__ccgo_up(reach_pos + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*16))).Fpos < pos { + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions != 0 && ((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_BOL) != 0 && (pos > 0 || reg_notbol != 0) && (prev_c != int32('\n') || !(reg_newline != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_EOL) != 0 && (**(**Ttre_char_t)(__ccgo_up(bp)) != int32('\000') || reg_noteol != 0) && (**(**Ttre_char_t)(__ccgo_up(bp)) != int32('\n') || !(reg_newline != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_BOW) != 0 && (prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0 || !(**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_EOW) != 0 && (!(prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0) || (**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_WB) != 0 && (pos != 0 && **(**Ttre_char_t)(__ccgo_up(bp)) != int32('\000') && BoolInt32(prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0) == BoolInt32(**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_WB_NEG) != 0 && (pos == 0 || **(**Ttre_char_t)(__ccgo_up(bp)) == int32('\000') || BoolInt32(prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0) != BoolInt32(**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0))) { + trans_i += 56 + continue + } + (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Fstate = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate + i = 0 + for { + if !(i < num_tags) { + break + } + **(**Tregoff_t)(__ccgo_up((*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Ftags + uintptr(i)*8)) = int64(-int32(1)) + goto _8 + _8: + ; + i = i + 1 + } + tag_i = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Ftags + if tag_i != 0 { + for **(**int32)(__ccgo_up(tag_i)) >= 0 { + if **(**int32)(__ccgo_up(tag_i)) < num_tags { + **(**Tregoff_t)(__ccgo_up((*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Ftags + uintptr(**(**int32)(__ccgo_up(tag_i)))*8)) = pos + } + tag_i += 4 + } + } + if (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Fstate == (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ffinal { + match_eo = pos + new_match = int32(1) + i = 0 + for { + if !(i < num_tags) { + break + } + **(**Tregoff_t)(__ccgo_up(match_tags + uintptr(i)*8)) = **(**Tregoff_t)(__ccgo_up((*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Ftags + uintptr(i)*8)) + goto _9 + _9: + ; + i = i + 1 + } + } + (**(**Ttre_reach_pos_t)(__ccgo_up(reach_pos + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*16))).Fpos = pos + (**(**Ttre_reach_pos_t)(__ccgo_up(reach_pos + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*16))).Ftags = reach_next_i + 8 + reach_next_i += 16 + } + trans_i += 56 + } + (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Fstate = UintptrFromInt32(0) + } else { + if num_tags == 0 || reach_next_i == reach_next { + /* We have found a match. */ + break + } + } + /* Check for end of string. */ + if !(**(**Ttre_char_t)(__ccgo_up(bp)) != 0) { + break + } + prev_c = **(**Ttre_char_t)(__ccgo_up(bp)) + pos = pos + pos_add_next + v7 = int64(Xmbtowc(tls, bp, str_byte, uint64(MB_LEN_MAX))) + pos_add_next = v7 + if v7 <= 0 { + if pos_add_next < 0 { + ret = int32(REG_NOMATCH) + goto error_exit + } else { + pos_add_next = pos_add_next + 1 + } + } + str_byte = str_byte + uintptr(pos_add_next) + /* Swap `reach' and `reach_next'. */ + reach_i = reach + reach = reach_next + reach_next = reach_i + /* For each state in `reach', weed out states that don't fulfill the + minimal matching conditions. */ + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_minimals != 0 && new_match != 0 { + new_match = 0 + reach_next_i = reach_next + reach_i = reach + for { + if !((*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_i)).Fstate != 0) { + break + } + skip = 0 + i = 0 + for { + if !(**(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i)*4)) >= 0) { + break + } + end = **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i)*4)) + start = **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i+int32(1))*4)) + if end >= num_tags { + skip = int32(1) + break + } else { + if **(**Tregoff_t)(__ccgo_up((*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_i)).Ftags + uintptr(start)*8)) == **(**Tregoff_t)(__ccgo_up(match_tags + uintptr(start)*8)) && **(**Tregoff_t)(__ccgo_up((*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_i)).Ftags + uintptr(end)*8)) < **(**Tregoff_t)(__ccgo_up(match_tags + uintptr(end)*8)) { + skip = int32(1) + break + } + } + goto _12 + _12: + ; + i = i + int32(2) + } + if !(skip != 0) { + (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Fstate = (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_i)).Fstate + tmp_iptr = (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Ftags + (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Ftags = (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_i)).Ftags + (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_i)).Ftags = tmp_iptr + reach_next_i += 16 + } + goto _11 + _11: + ; + reach_i += 16 + } + (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Fstate = UintptrFromInt32(0) + /* Swap `reach' and `reach_next'. */ + reach_i = reach + reach = reach_next + reach_next = reach_i + } + /* For each state in `reach' see if there is a transition leaving with + the current input symbol to a state not yet in `reach_next', and + add the destination states to `reach_next'. */ + reach_next_i = reach_next + reach_i = reach + for { + if !((*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_i)).Fstate != 0) { + break + } + trans_i = (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_i)).Fstate + for { + if !((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate != 0) { + break + } + /* Does this transition match the input symbol? */ + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fcode_min <= Uint32FromInt32(prev_c) && (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fcode_max >= Uint32FromInt32(prev_c) { + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions != 0 && ((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_BOL) != 0 && (pos > 0 || reg_notbol != 0) && (prev_c != int32('\n') || !(reg_newline != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_EOL) != 0 && (**(**Ttre_char_t)(__ccgo_up(bp)) != int32('\000') || reg_noteol != 0) && (**(**Ttre_char_t)(__ccgo_up(bp)) != int32('\n') || !(reg_newline != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_BOW) != 0 && (prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0 || !(**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_EOW) != 0 && (!(prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0) || (**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_WB) != 0 && (pos != 0 && **(**Ttre_char_t)(__ccgo_up(bp)) != int32('\000') && BoolInt32(prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0) == BoolInt32(**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_WB_NEG) != 0 && (pos == 0 || **(**Ttre_char_t)(__ccgo_up(bp)) == int32('\000') || BoolInt32(prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0) != BoolInt32(**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || ((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_CHAR_CLASS) != 0 && !((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags&Int32FromInt32(REG_ICASE) != 0) && !(Xiswctype(tls, Uint32FromInt32(prev_c), *(*Ttre_ctype_t)(unsafe.Pointer(trans_i + 40))) != 0) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_CHAR_CLASS) != 0 && (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags&int32(REG_ICASE) != 0 && !(Xiswctype(tls, Xtowlower(tls, Uint32FromInt32(prev_c)), *(*Ttre_ctype_t)(unsafe.Pointer(trans_i + 40))) != 0) && !(Xiswctype(tls, Xtowupper(tls, Uint32FromInt32(prev_c)), *(*Ttre_ctype_t)(unsafe.Pointer(trans_i + 40))) != 0) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_CHAR_CLASS_NEG) != 0 && _tre_neg_char_classes_match(tls, (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fneg_classes, Uint32FromInt32(prev_c), (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags&int32(REG_ICASE)) != 0)) { + goto _14 + } + /* Compute the tags after this transition. */ + i = 0 + for { + if !(i < num_tags) { + break + } + **(**Tregoff_t)(__ccgo_up(tmp_tags + uintptr(i)*8)) = **(**Tregoff_t)(__ccgo_up((*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_i)).Ftags + uintptr(i)*8)) + goto _15 + _15: + ; + i = i + 1 + } + tag_i = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Ftags + if tag_i != UintptrFromInt32(0) { + for **(**int32)(__ccgo_up(tag_i)) >= 0 { + if **(**int32)(__ccgo_up(tag_i)) < num_tags { + **(**Tregoff_t)(__ccgo_up(tmp_tags + uintptr(**(**int32)(__ccgo_up(tag_i)))*8)) = pos + } + tag_i += 4 + } + } + if (**(**Ttre_reach_pos_t)(__ccgo_up(reach_pos + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*16))).Fpos < pos { + /* Found an unvisited node. */ + (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Fstate = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate + tmp_iptr = (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Ftags + (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Ftags = tmp_tags + tmp_tags = tmp_iptr + (**(**Ttre_reach_pos_t)(__ccgo_up(reach_pos + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*16))).Fpos = pos + (**(**Ttre_reach_pos_t)(__ccgo_up(reach_pos + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*16))).Ftags = reach_next_i + 8 + if (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Fstate == (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ffinal && (match_eo == int64(-int32(1)) || num_tags > 0 && **(**Tregoff_t)(__ccgo_up((*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Ftags)) <= **(**Tregoff_t)(__ccgo_up(match_tags))) { + match_eo = pos + new_match = int32(1) + i = 0 + for { + if !(i < num_tags) { + break + } + **(**Tregoff_t)(__ccgo_up(match_tags + uintptr(i)*8)) = **(**Tregoff_t)(__ccgo_up((*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Ftags + uintptr(i)*8)) + goto _16 + _16: + ; + i = i + 1 + } + } + reach_next_i += 16 + } else { + /* Another path has also reached this state. We choose + the winner by examining the tag values for both + paths. */ + if _tre_tag_order(tls, num_tags, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions, tmp_tags, **(**uintptr)(__ccgo_up((**(**Ttre_reach_pos_t)(__ccgo_up(reach_pos + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*16))).Ftags))) != 0 { + /* The new path wins. */ + tmp_iptr = **(**uintptr)(__ccgo_up((**(**Ttre_reach_pos_t)(__ccgo_up(reach_pos + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*16))).Ftags)) + **(**uintptr)(__ccgo_up((**(**Ttre_reach_pos_t)(__ccgo_up(reach_pos + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*16))).Ftags)) = tmp_tags + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate == (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ffinal { + match_eo = pos + new_match = int32(1) + i = 0 + for { + if !(i < num_tags) { + break + } + **(**Tregoff_t)(__ccgo_up(match_tags + uintptr(i)*8)) = **(**Tregoff_t)(__ccgo_up(tmp_tags + uintptr(i)*8)) + goto _17 + _17: + ; + i = i + 1 + } + } + tmp_tags = tmp_iptr + } + } + } + goto _14 + _14: + ; + trans_i += 56 + } + goto _13 + _13: + ; + reach_i += 16 + } + (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Fstate = UintptrFromInt32(0) + } + **(**Tregoff_t)(__ccgo_up(match_end_ofs)) = match_eo + if match_eo >= 0 { + v18 = REG_OK + } else { + v18 = int32(REG_NOMATCH) + } + ret = v18 + goto error_exit +error_exit: + ; + Xfree(tls, buf) + return ret +} + +/*********************************************************************** + from tre-match-backtrack.c +***********************************************************************/ + +/* + This matcher is for regexps that use back referencing. Regexp matching + with back referencing is an NP-complete problem on the number of back + references. The easiest way to match them is to use a backtracking + routine which basically goes through all possible paths in the TNFA + and chooses the one which results in the best (leftmost and longest) + match. This can be spectacularly expensive and may run out of stack + space, but there really is no better known generic algorithm. Quoting + Henry Spencer from comp.compilers: + + + POSIX.2 REs require longest match, which is really exciting to + implement since the obsolete ("basic") variant also includes + \. I haven't found a better way of tackling this than doing + a preliminary match using a DFA (or simulation) on a modified RE + that just replicates subREs for \, and then doing a + backtracking match to determine whether the subRE matches were + right. This can be rather slow, but I console myself with the + thought that people who use \ deserve very slow execution. + (Pun unintentional but very appropriate.) + +*/ + +type Ttre_backtrack_item_t = struct { + Fpos Tregoff_t + Fstr_byte uintptr + Fstate uintptr + Fstate_id int32 + Fnext_c int32 + Ftags uintptr +} + +type Ttre_backtrack_t = uintptr + +type Ttre_backtrack_struct = struct { + Fitem Ttre_backtrack_item_t + Fprev uintptr + Fnext uintptr +} + +func _tre_tnfa_run_backtrack(tls *TLS, tnfa uintptr, string1 uintptr, match_tags uintptr, eflags int32, match_end_ofs uintptr) (r Treg_errcode_t) { + bp := tls.Alloc(16) + defer tls.Free(16) + var bt, empty_br_match, i, i1, i2, i3, i4, next_c_start, reg_newline, reg_notbol, reg_noteol, result, ret, v20 int32 + var bt_len, eo, match_eo, pos, pos_add_next, pos_start, so, v3 Tregoff_t + var mem Ttre_mem_t + var next_state, next_tags, pmatch, state, states_seen, str_byte, str_byte_start, tags, tmp, tmp1, trans_i, v6 uintptr + var prev_c Ttre_char_t + var s, s1, stack Ttre_backtrack_t + var _ /* next_c at bp+0 */ Ttre_char_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = bt, bt_len, empty_br_match, eo, i, i1, i2, i3, i4, match_eo, mem, next_c_start, next_state, next_tags, pmatch, pos, pos_add_next, pos_start, prev_c, reg_newline, reg_notbol, reg_noteol, result, ret, s, s1, so, stack, state, states_seen, str_byte, str_byte_start, tags, tmp, tmp1, trans_i, v20, v3, v6 + /* State variables required by GET_NEXT_WCHAR. */ + prev_c = 0 + **(**Ttre_char_t)(__ccgo_up(bp)) = 0 + str_byte = string1 + pos = 0 + pos_add_next = int64(1) + reg_notbol = eflags & int32(REG_NOTBOL) + reg_noteol = eflags & int32(REG_NOTEOL) + reg_newline = (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags & int32(REG_NEWLINE) + pos_start = int64(-int32(1)) + /* End offset of best match so far, or -1 if no match found yet. */ + match_eo = int64(-int32(1)) + tags = UintptrFromInt32(0) + states_seen = UintptrFromInt32(0) + /* Memory allocator to for allocating the backtracking stack. */ + mem = X__tre_mem_new_impl(tls, 0, UintptrFromInt32(0)) + pmatch = UintptrFromInt32(0) + if !(mem != 0) { + return int32(REG_ESPACE) + } + stack = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint64(56)) + if !(stack != 0) { + ret = int32(REG_ESPACE) + goto error_exit + } + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fprev = UintptrFromInt32(0) + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fnext = UintptrFromInt32(0) + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags != 0 { + tags = Xmalloc(tls, uint64(8)*Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags)) + if !(tags != 0) { + ret = int32(REG_ESPACE) + goto error_exit + } + } + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_submatches != 0 { + pmatch = Xmalloc(tls, uint64(16)*uint64((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_submatches)) + if !(pmatch != 0) { + ret = int32(REG_ESPACE) + goto error_exit + } + } + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states != 0 { + states_seen = Xmalloc(tls, uint64(4)*Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states)) + if !(states_seen != 0) { + ret = int32(REG_ESPACE) + goto error_exit + } + } + goto retry +retry: + ; + i = 0 + for { + if !(i < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags) { + break + } + **(**Tregoff_t)(__ccgo_up(tags + uintptr(i)*8)) = int64(-int32(1)) + if match_tags != 0 { + **(**Tregoff_t)(__ccgo_up(match_tags + uintptr(i)*8)) = int64(-int32(1)) + } + goto _1 + _1: + ; + i = i + 1 + } + i = 0 + for { + if !(i < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states) { + break + } + **(**int32)(__ccgo_up(states_seen + uintptr(i)*4)) = 0 + goto _2 + _2: + ; + i = i + 1 + } + state = UintptrFromInt32(0) + pos = pos_start + prev_c = **(**Ttre_char_t)(__ccgo_up(bp)) + pos = pos + pos_add_next + v3 = int64(Xmbtowc(tls, bp, str_byte, uint64(MB_LEN_MAX))) + pos_add_next = v3 + if v3 <= 0 { + if pos_add_next < 0 { + ret = int32(REG_NOMATCH) + goto error_exit + } else { + pos_add_next = pos_add_next + 1 + } + } + str_byte = str_byte + uintptr(pos_add_next) + pos_start = pos + next_c_start = **(**Ttre_char_t)(__ccgo_up(bp)) + str_byte_start = str_byte + /* Handle initial states. */ + next_tags = UintptrFromInt32(0) + trans_i = (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Finitial + for { + if !((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate != 0) { + break + } + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions != 0 && ((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_BOL) != 0 && (pos > 0 || reg_notbol != 0) && (prev_c != int32('\n') || !(reg_newline != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_EOL) != 0 && (**(**Ttre_char_t)(__ccgo_up(bp)) != int32('\000') || reg_noteol != 0) && (**(**Ttre_char_t)(__ccgo_up(bp)) != int32('\n') || !(reg_newline != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_BOW) != 0 && (prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0 || !(**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_EOW) != 0 && (!(prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0) || (**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_WB) != 0 && (pos != 0 && **(**Ttre_char_t)(__ccgo_up(bp)) != int32('\000') && BoolInt32(prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0) == BoolInt32(**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_WB_NEG) != 0 && (pos == 0 || **(**Ttre_char_t)(__ccgo_up(bp)) == int32('\000') || BoolInt32(prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0) != BoolInt32(**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0))) { + goto _4 + } + if state == UintptrFromInt32(0) { + /* Start from this state. */ + state = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate + next_tags = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Ftags + } else { + /* Backtrack to this state. */ + if !((*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fnext != 0) { + s = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint64(56)) + if !(s != 0) { + X__tre_mem_destroy(tls, mem) + if tags != 0 { + Xfree(tls, tags) + } + if pmatch != 0 { + Xfree(tls, pmatch) + } + if states_seen != 0 { + Xfree(tls, states_seen) + } + return int32(REG_ESPACE) + } + (*Ttre_backtrack_struct)(unsafe.Pointer(s)).Fprev = stack + (*Ttre_backtrack_struct)(unsafe.Pointer(s)).Fnext = UintptrFromInt32(0) + (*Ttre_backtrack_struct)(unsafe.Pointer(s)).Fitem.Ftags = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint64(8)*Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags)) + if !((*Ttre_backtrack_struct)(unsafe.Pointer(s)).Fitem.Ftags != 0) { + X__tre_mem_destroy(tls, mem) + if tags != 0 { + Xfree(tls, tags) + } + if pmatch != 0 { + Xfree(tls, pmatch) + } + if states_seen != 0 { + Xfree(tls, states_seen) + } + return int32(REG_ESPACE) + } + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fnext = s + stack = s + } else { + stack = (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fnext + } + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fpos = pos + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstr_byte = str_byte + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstate = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstate_id = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fnext_c = **(**Ttre_char_t)(__ccgo_up(bp)) + i1 = 0 + for { + if !(i1 < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags) { + break + } + **(**Tregoff_t)(__ccgo_up((*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Ftags + uintptr(i1)*8)) = **(**Tregoff_t)(__ccgo_up(tags + uintptr(i1)*8)) + goto _5 + _5: + ; + i1 = i1 + 1 + } + tmp = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Ftags + if tmp != 0 { + for **(**int32)(__ccgo_up(tmp)) >= 0 { + v6 = tmp + tmp += 4 + **(**Tregoff_t)(__ccgo_up((*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Ftags + uintptr(**(**int32)(__ccgo_up(v6)))*8)) = pos + } + } + } + goto _4 + _4: + ; + trans_i += 56 + } + if next_tags != 0 { + for { + if !(**(**int32)(__ccgo_up(next_tags)) >= 0) { + break + } + **(**Tregoff_t)(__ccgo_up(tags + uintptr(**(**int32)(__ccgo_up(next_tags)))*8)) = pos + goto _7 + _7: + ; + next_tags += 4 + } + } + if state == UintptrFromInt32(0) { + goto backtrack + } +_9: + ; + if !(int32(1) != 0) { + goto _8 + } + if state == (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ffinal { + if match_eo < pos || match_eo == pos && match_tags != 0 && _tre_tag_order(tls, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions, tags, match_tags) != 0 { + /* This match wins the previous match. */ + match_eo = pos + if match_tags != 0 { + i2 = 0 + for { + if !(i2 < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags) { + break + } + **(**Tregoff_t)(__ccgo_up(match_tags + uintptr(i2)*8)) = **(**Tregoff_t)(__ccgo_up(tags + uintptr(i2)*8)) + goto _10 + _10: + ; + i2 = i2 + 1 + } + } + } + /* Our TNFAs never have transitions leaving from the final state, + so we jump right to backtracking. */ + goto backtrack + } + /* Go to the next character in the input string. */ + empty_br_match = 0 + trans_i = state + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate != 0 && (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_BACKREF) != 0 { + bt = *(*int32)(unsafe.Pointer(&(*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fu)) + /* Get the substring we need to match against. Remember to + turn off REG_NOSUB temporarily. */ + _tre_fill_pmatch(tls, Uint64FromInt32(bt+int32(1)), pmatch, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags & ^Int32FromInt32(REG_NOSUB), tnfa, tags, pos) + so = (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(bt)*16))).Frm_so + eo = (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(bt)*16))).Frm_eo + bt_len = eo - so + result = Xstrncmp(tls, string1+uintptr(so), str_byte-uintptr(1), Uint64FromInt64(bt_len)) + if result == 0 { + /* Back reference matched. Check for infinite loop. */ + if bt_len == 0 { + empty_br_match = int32(1) + } + if empty_br_match != 0 && **(**int32)(__ccgo_up(states_seen + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*4)) != 0 { + goto backtrack + } + **(**int32)(__ccgo_up(states_seen + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*4)) = empty_br_match + /* Advance in input string and resync `prev_c', `next_c' + and pos. */ + str_byte = str_byte + uintptr(bt_len-int64(1)) + pos = pos + (bt_len - int64(1)) + prev_c = **(**Ttre_char_t)(__ccgo_up(bp)) + pos = pos + pos_add_next + v3 = int64(Xmbtowc(tls, bp, str_byte, uint64(MB_LEN_MAX))) + pos_add_next = v3 + if v3 <= 0 { + if pos_add_next < 0 { + ret = int32(REG_NOMATCH) + goto error_exit + } else { + pos_add_next = pos_add_next + 1 + } + } + str_byte = str_byte + uintptr(pos_add_next) + } else { + goto backtrack + } + } else { + /* Check for end of string. */ + if **(**Ttre_char_t)(__ccgo_up(bp)) == int32('\000') { + goto backtrack + } + /* Read the next character. */ + prev_c = **(**Ttre_char_t)(__ccgo_up(bp)) + pos = pos + pos_add_next + v3 = int64(Xmbtowc(tls, bp, str_byte, uint64(MB_LEN_MAX))) + pos_add_next = v3 + if v3 <= 0 { + if pos_add_next < 0 { + ret = int32(REG_NOMATCH) + goto error_exit + } else { + pos_add_next = pos_add_next + 1 + } + } + str_byte = str_byte + uintptr(pos_add_next) + } + next_state = UintptrFromInt32(0) + trans_i = state + for { + if !((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate != 0) { + break + } + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fcode_min <= Uint32FromInt32(prev_c) && (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fcode_max >= Uint32FromInt32(prev_c) { + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions != 0 && ((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_BOL) != 0 && (pos > 0 || reg_notbol != 0) && (prev_c != int32('\n') || !(reg_newline != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_EOL) != 0 && (**(**Ttre_char_t)(__ccgo_up(bp)) != int32('\000') || reg_noteol != 0) && (**(**Ttre_char_t)(__ccgo_up(bp)) != int32('\n') || !(reg_newline != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_BOW) != 0 && (prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0 || !(**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_EOW) != 0 && (!(prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0) || (**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_WB) != 0 && (pos != 0 && **(**Ttre_char_t)(__ccgo_up(bp)) != int32('\000') && BoolInt32(prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0) == BoolInt32(**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_WB_NEG) != 0 && (pos == 0 || **(**Ttre_char_t)(__ccgo_up(bp)) == int32('\000') || BoolInt32(prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0) != BoolInt32(**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || ((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_CHAR_CLASS) != 0 && !((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags&Int32FromInt32(REG_ICASE) != 0) && !(Xiswctype(tls, Uint32FromInt32(prev_c), *(*Ttre_ctype_t)(unsafe.Pointer(trans_i + 40))) != 0) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_CHAR_CLASS) != 0 && (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags&int32(REG_ICASE) != 0 && !(Xiswctype(tls, Xtowlower(tls, Uint32FromInt32(prev_c)), *(*Ttre_ctype_t)(unsafe.Pointer(trans_i + 40))) != 0) && !(Xiswctype(tls, Xtowupper(tls, Uint32FromInt32(prev_c)), *(*Ttre_ctype_t)(unsafe.Pointer(trans_i + 40))) != 0) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_CHAR_CLASS_NEG) != 0 && _tre_neg_char_classes_match(tls, (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fneg_classes, Uint32FromInt32(prev_c), (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags&int32(REG_ICASE)) != 0)) { + goto _13 + } + if next_state == UintptrFromInt32(0) { + /* First matching transition. */ + next_state = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate + next_tags = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Ftags + } else { + /* Second matching transition. We may need to backtrack here + to take this transition instead of the first one, so we + push this transition in the backtracking stack so we can + jump back here if needed. */ + if !((*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fnext != 0) { + s1 = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint64(56)) + if !(s1 != 0) { + X__tre_mem_destroy(tls, mem) + if tags != 0 { + Xfree(tls, tags) + } + if pmatch != 0 { + Xfree(tls, pmatch) + } + if states_seen != 0 { + Xfree(tls, states_seen) + } + return int32(REG_ESPACE) + } + (*Ttre_backtrack_struct)(unsafe.Pointer(s1)).Fprev = stack + (*Ttre_backtrack_struct)(unsafe.Pointer(s1)).Fnext = UintptrFromInt32(0) + (*Ttre_backtrack_struct)(unsafe.Pointer(s1)).Fitem.Ftags = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint64(8)*Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags)) + if !((*Ttre_backtrack_struct)(unsafe.Pointer(s1)).Fitem.Ftags != 0) { + X__tre_mem_destroy(tls, mem) + if tags != 0 { + Xfree(tls, tags) + } + if pmatch != 0 { + Xfree(tls, pmatch) + } + if states_seen != 0 { + Xfree(tls, states_seen) + } + return int32(REG_ESPACE) + } + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fnext = s1 + stack = s1 + } else { + stack = (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fnext + } + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fpos = pos + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstr_byte = str_byte + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstate = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstate_id = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fnext_c = **(**Ttre_char_t)(__ccgo_up(bp)) + i3 = 0 + for { + if !(i3 < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags) { + break + } + **(**Tregoff_t)(__ccgo_up((*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Ftags + uintptr(i3)*8)) = **(**Tregoff_t)(__ccgo_up(tags + uintptr(i3)*8)) + goto _14 + _14: + ; + i3 = i3 + 1 + } + tmp1 = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Ftags + for { + if !(tmp1 != 0 && **(**int32)(__ccgo_up(tmp1)) >= 0) { + break + } + **(**Tregoff_t)(__ccgo_up((*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Ftags + uintptr(**(**int32)(__ccgo_up(tmp1)))*8)) = pos + goto _15 + _15: + ; + tmp1 += 4 + } + } + } + goto _13 + _13: + ; + trans_i += 56 + } + if !(next_state != UintptrFromInt32(0)) { + goto _16 + } + /* Matching transitions were found. Take the first one. */ + state = next_state + /* Update the tag values. */ + if next_tags != 0 { + for **(**int32)(__ccgo_up(next_tags)) >= 0 { + v6 = next_tags + next_tags += 4 + **(**Tregoff_t)(__ccgo_up(tags + uintptr(**(**int32)(__ccgo_up(v6)))*8)) = pos + } + } + goto _17 +_16: + ; + goto backtrack +backtrack: + ; + /* A matching transition was not found. Try to backtrack. */ + if (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fprev != 0 { + if (*Ttre_tnfa_transition_t)(unsafe.Pointer((*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstate)).Fassertions&int32(ASSERT_BACKREF) != 0 { + **(**int32)(__ccgo_up(states_seen + uintptr((*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstate_id)*4)) = 0 + } + pos = (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fpos + str_byte = (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstr_byte + state = (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstate + **(**Ttre_char_t)(__ccgo_up(bp)) = (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fnext_c + i4 = 0 + for { + if !(i4 < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags) { + break + } + **(**Tregoff_t)(__ccgo_up(tags + uintptr(i4)*8)) = **(**Tregoff_t)(__ccgo_up((*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Ftags + uintptr(i4)*8)) + goto _19 + _19: + ; + i4 = i4 + 1 + } + stack = (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fprev + } else { + if match_eo < 0 { + /* Try starting from a later position in the input string. */ + /* Check for end of string. */ + if **(**Ttre_char_t)(__ccgo_up(bp)) == int32('\000') { + goto _8 + } + **(**Ttre_char_t)(__ccgo_up(bp)) = next_c_start + str_byte = str_byte_start + goto retry + } else { + goto _8 + } + } +_17: + ; + goto _9 +_8: + ; + if match_eo >= 0 { + v20 = REG_OK + } else { + v20 = int32(REG_NOMATCH) + } + ret = v20 + **(**Tregoff_t)(__ccgo_up(match_end_ofs)) = match_eo + goto error_exit +error_exit: + ; + X__tre_mem_destroy(tls, mem) + if tags != 0 { + Xfree(tls, tags) + } + if pmatch != 0 { + Xfree(tls, pmatch) + } + if states_seen != 0 { + Xfree(tls, states_seen) + } + return ret +} + +/*********************************************************************** + from regexec.c +***********************************************************************/ + +// C documentation +// +// /* Fills the POSIX.2 regmatch_t array according to the TNFA tag and match +// endpoint values. */ +func _tre_fill_pmatch(tls *TLS, nmatch Tsize_t, pmatch uintptr, cflags int32, tnfa uintptr, tags uintptr, match_eo Tregoff_t) { + var i, j uint32 + var parents, submatch_data uintptr + var v1 Tregoff_t + _, _, _, _, _ = i, j, parents, submatch_data, v1 + i = uint32(0) + if match_eo >= 0 && !(cflags&Int32FromInt32(REG_NOSUB) != 0) { + /* Construct submatch offsets from the tags. */ + submatch_data = (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fsubmatch_data + for i < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_submatches && uint64(i) < nmatch { + if (**(**Ttre_submatch_data_t)(__ccgo_up(submatch_data + uintptr(i)*16))).Fso_tag == (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fend_tag { + (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_so = match_eo + } else { + (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_so = **(**Tregoff_t)(__ccgo_up(tags + uintptr((**(**Ttre_submatch_data_t)(__ccgo_up(submatch_data + uintptr(i)*16))).Fso_tag)*8)) + } + if (**(**Ttre_submatch_data_t)(__ccgo_up(submatch_data + uintptr(i)*16))).Feo_tag == (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fend_tag { + (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_eo = match_eo + } else { + (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_eo = **(**Tregoff_t)(__ccgo_up(tags + uintptr((**(**Ttre_submatch_data_t)(__ccgo_up(submatch_data + uintptr(i)*16))).Feo_tag)*8)) + } + /* If either of the endpoints were not used, this submatch + was not part of the match. */ + if (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_so == int64(-int32(1)) || (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_eo == int64(-int32(1)) { + v1 = int64(-Int32FromInt32(1)) + (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_eo = v1 + (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_so = v1 + } + i = i + 1 + } + /* Reset all submatches that are not within all of their parent + submatches. */ + i = uint32(0) + for i < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_submatches && uint64(i) < nmatch { + if (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_eo == int64(-int32(1)) { + } + parents = (**(**Ttre_submatch_data_t)(__ccgo_up(submatch_data + uintptr(i)*16))).Fparents + if parents != UintptrFromInt32(0) { + j = uint32(0) + for { + if !(**(**int32)(__ccgo_up(parents + uintptr(j)*4)) >= 0) { + break + } + if (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_so < (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(**(**int32)(__ccgo_up(parents + uintptr(j)*4)))*16))).Frm_so || (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_eo > (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(**(**int32)(__ccgo_up(parents + uintptr(j)*4)))*16))).Frm_eo { + v1 = int64(-Int32FromInt32(1)) + (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_eo = v1 + (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_so = v1 + } + goto _2 + _2: + ; + j = j + 1 + } + } + i = i + 1 + } + } + for uint64(i) < nmatch { + (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_so = int64(-int32(1)) + (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_eo = int64(-int32(1)) + i = i + 1 + } +} + +/* + Wrapper functions for POSIX compatible regexp matching. +*/ + +func Xregexec(tls *TLS, preg uintptr, string1 uintptr, nmatch Tsize_t, pmatch uintptr, eflags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v preg=%v string1=%v nmatch=%v pmatch=%v eflags=%v, (%v:)", tls, preg, string1, nmatch, pmatch, eflags, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var status Treg_errcode_t + var tags, tnfa uintptr + var _ /* eo at bp+0 */ Tregoff_t + _, _, _ = status, tags, tnfa + tnfa = (*Tregex_t)(unsafe.Pointer(preg)).F__opaque + tags = UintptrFromInt32(0) + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags&int32(REG_NOSUB) != 0 { + nmatch = uint64(0) + } + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags > 0 && nmatch > uint64(0) { + tags = Xmalloc(tls, uint64(8)*Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags)) + if tags == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + } + /* Dispatch to the appropriate matcher. */ + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fhave_backrefs != 0 { + /* The regex has back references, use the backtracking matcher. */ + status = _tre_tnfa_run_backtrack(tls, tnfa, string1, tags, eflags, bp) + } else { + /* Exact matching, no back references, use the parallel matcher. */ + status = _tre_tnfa_run_parallel(tls, tnfa, string1, tags, eflags, bp) + } + if status == REG_OK { + /* A match was found, so fill the submatch registers. */ + _tre_fill_pmatch(tls, nmatch, pmatch, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags, tnfa, tags, **(**Tregoff_t)(__ccgo_up(bp))) + } + if tags != 0 { + Xfree(tls, tags) + } + return status +} + +/* + This memory allocator is for allocating small memory blocks efficiently + in terms of memory overhead and execution speed. The allocated blocks + cannot be freed individually, only all at once. There can be multiple + allocators, though. +*/ + +// C documentation +// +// /* Returns a new memory allocator or NULL if out of memory. */ +func X__tre_mem_new_impl(tls *TLS, provided int32, provided_block uintptr) (r Ttre_mem_t) { + if __ccgo_strace { + trc("tls=%v provided=%v provided_block=%v, (%v:)", tls, provided, provided_block, origin(2)) + defer func() { trc("-> %v", r) }() + } + var mem Ttre_mem_t + _ = mem + if provided != 0 { + mem = provided_block + Xmemset(tls, mem, 0, uint64(48)) + } else { + mem = Xcalloc(tls, uint64(1), uint64(48)) + } + if mem == UintptrFromInt32(0) { + return UintptrFromInt32(0) + } + return mem +} + +// C documentation +// +// /* Frees the memory allocator and all memory allocated with it. */ +func X__tre_mem_destroy(tls *TLS, mem Ttre_mem_t) { + if __ccgo_strace { + trc("tls=%v mem=%v, (%v:)", tls, mem, origin(2)) + } + var l, tmp uintptr + _, _ = l, tmp + l = (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fblocks + for l != UintptrFromInt32(0) { + Xfree(tls, (*Ttre_list_t)(unsafe.Pointer(l)).Fdata) + tmp = (*Ttre_list_t)(unsafe.Pointer(l)).Fnext + Xfree(tls, l) + l = tmp + } + Xfree(tls, mem) +} + +// C documentation +// +// /* Allocates a block of `size' bytes from `mem'. Returns a pointer to the +// allocated block or NULL if an underlying malloc() failed. */ +func X__tre_mem_alloc_impl(tls *TLS, mem Ttre_mem_t, provided int32, provided_block uintptr, zero int32, size Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v mem=%v provided=%v provided_block=%v zero=%v size=%v, (%v:)", tls, mem, provided, provided_block, zero, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + var block_size int32 + var l, ptr uintptr + var v1 uint64 + _, _, _, _ = block_size, l, ptr, v1 + if (*Ttre_mem_struct)(unsafe.Pointer(mem)).Ffailed != 0 { + return UintptrFromInt32(0) + } + if (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fn < size { + if provided != 0 { + if provided_block == UintptrFromInt32(0) { + (*Ttre_mem_struct)(unsafe.Pointer(mem)).Ffailed = int32(1) + return UintptrFromInt32(0) + } + (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fptr = provided_block + (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fn = uint64(TRE_MEM_BLOCK_SIZE) + } else { + if size*uint64(8) > uint64(TRE_MEM_BLOCK_SIZE) { + block_size = Int32FromUint64(size * uint64(8)) + } else { + block_size = int32(TRE_MEM_BLOCK_SIZE) + } + l = Xmalloc(tls, uint64(16)) + if l == UintptrFromInt32(0) { + (*Ttre_mem_struct)(unsafe.Pointer(mem)).Ffailed = int32(1) + return UintptrFromInt32(0) + } + (*Ttre_list_t)(unsafe.Pointer(l)).Fdata = Xmalloc(tls, Uint64FromInt32(block_size)) + if (*Ttre_list_t)(unsafe.Pointer(l)).Fdata == UintptrFromInt32(0) { + Xfree(tls, l) + (*Ttre_mem_struct)(unsafe.Pointer(mem)).Ffailed = int32(1) + return UintptrFromInt32(0) + } + (*Ttre_list_t)(unsafe.Pointer(l)).Fnext = UintptrFromInt32(0) + if (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fcurrent != UintptrFromInt32(0) { + (*Ttre_list_t)(unsafe.Pointer((*Ttre_mem_struct)(unsafe.Pointer(mem)).Fcurrent)).Fnext = l + } + if (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fblocks == UintptrFromInt32(0) { + (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fblocks = l + } + (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fcurrent = l + (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fptr = (*Ttre_list_t)(unsafe.Pointer(l)).Fdata + (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fn = Uint64FromInt32(block_size) + } + } + /* Make sure the next pointer will be aligned. */ + if (Uint64FromInt64(int64((*Ttre_mem_struct)(unsafe.Pointer(mem)).Fptr))+size)%uint64(8) != 0 { + v1 = uint64(8) - (Uint64FromInt64(int64((*Ttre_mem_struct)(unsafe.Pointer(mem)).Fptr))+size)%uint64(8) + } else { + v1 = uint64(0) + } + size = size + v1 + /* Allocate from current block. */ + ptr = (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fptr + **(**uintptr)(__ccgo_up(mem + 16)) += uintptr(size) + **(**Tsize_t)(__ccgo_up(mem + 24)) -= size + /* Set to zero if needed. */ + if zero != 0 { + Xmemset(tls, ptr, 0, size) + } + return ptr +} + +const MAXSIZE = 1 +const MINSIZE = 8 + +type TACTION = int32 + +const _FIND = 0 +const _ENTER = 1 + +type TVISIT = int32 + +const _preorder = 0 +const _postorder = 1 +const _endorder = 2 +const _leaf = 3 + +type TENTRY = struct { + Fkey uintptr + Fdata uintptr +} + +type Tentry = TENTRY + +type Thsearch_data = struct { + F__tab uintptr + F__unused1 uint32 + F__unused2 uint32 +} + +type Tqelem = struct { + Fq_forw uintptr + Fq_back uintptr + Fq_data [1]uint8 +} + +/* +open addressing hash table with 2^n table size +quadratic probing is used in case of hash collision +tab indices and hash are size_t +after resize fails with ENOMEM the state of tab is still usable + +with the posix api items cannot be iterated and length cannot be queried +*/ + +type t__tab = struct { + Fentries uintptr + Fmask Tsize_t + Fused Tsize_t +} + +var _htab Thsearch_data + +func _keyhash(tls *TLS, k uintptr) (r Tsize_t) { + var h Tsize_t + var p, v1 uintptr + _, _, _ = h, p, v1 + p = k + h = uint64(0) + for **(**uint8)(__ccgo_up(p)) != 0 { + v1 = p + p = p + 1 + h = uint64(31)*h + uint64(**(**uint8)(__ccgo_up(v1))) + } + return h +} + +func _resize(tls *TLS, nel Tsize_t, htab uintptr) (r int32) { + var e, newe, oldtab uintptr + var i, j, newsize, oldsize, v4 Tsize_t + _, _, _, _, _, _, _, _ = e, i, j, newe, newsize, oldsize, oldtab, v4 + oldsize = (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fmask + uint64(1) + oldtab = (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fentries + if nel > Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(2)+Uint64FromInt32(1) { + nel = Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(2) + Uint64FromInt32(1) + } + newsize = uint64(MINSIZE) + for { + if !(newsize < nel) { + break + } + goto _1 + _1: + ; + newsize = newsize * uint64(2) + } + (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fentries = Xcalloc(tls, newsize, uint64(16)) + if !((*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fentries != 0) { + (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fentries = oldtab + return 0 + } + (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fmask = newsize - uint64(1) + if !(oldtab != 0) { + return int32(1) + } + e = oldtab + for { + if !(e < oldtab+uintptr(oldsize)*16) { + break + } + if (*TENTRY)(unsafe.Pointer(e)).Fkey != 0 { + i = _keyhash(tls, (*TENTRY)(unsafe.Pointer(e)).Fkey) + j = Uint64FromInt32(1) + for { + newe = (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fentries + uintptr(i&(*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fmask)*16 + if !((*TENTRY)(unsafe.Pointer(newe)).Fkey != 0) { + break + } + goto _3 + _3: + ; + v4 = j + j = j + 1 + i = i + v4 + } + **(**TENTRY)(__ccgo_up(newe)) = **(**TENTRY)(__ccgo_up(e)) + } + goto _2 + _2: + ; + e += 16 + } + Xfree(tls, oldtab) + return int32(1) +} + +func Xhcreate(tls *TLS, nel Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v nel=%v, (%v:)", tls, nel, origin(2)) + defer func() { trc("-> %v", r) }() + } + return ___hcreate_r(tls, nel, uintptr(unsafe.Pointer(&_htab))) +} + +func Xhdestroy(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + ___hdestroy_r(tls, uintptr(unsafe.Pointer(&_htab))) +} + +func _lookup(tls *TLS, key uintptr, hash Tsize_t, htab uintptr) (r uintptr) { + var e uintptr + var i, j, v2 Tsize_t + _, _, _, _ = e, i, j, v2 + i = hash + j = Uint64FromInt32(1) + for { + e = (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fentries + uintptr(i&(*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fmask)*16 + if !((*TENTRY)(unsafe.Pointer(e)).Fkey != 0) || Xstrcmp(tls, (*TENTRY)(unsafe.Pointer(e)).Fkey, key) == 0 { + break + } + goto _1 + _1: + ; + v2 = j + j = j + 1 + i = i + v2 + } + return e +} + +func Xhsearch(tls *TLS, item TENTRY, action TACTION) (r uintptr) { + if __ccgo_strace { + trc("tls=%v item=%v action=%v, (%v:)", tls, item, action, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* e at bp+0 */ uintptr + ___hsearch_r(tls, item, action, bp, uintptr(unsafe.Pointer(&_htab))) + return **(**uintptr)(__ccgo_up(bp)) +} + +func ___hcreate_r(tls *TLS, nel Tsize_t, htab uintptr) (r1 int32) { + var r int32 + _ = r + (*Thsearch_data)(unsafe.Pointer(htab)).F__tab = Xcalloc(tls, uint64(1), uint64(24)) + if !((*Thsearch_data)(unsafe.Pointer(htab)).F__tab != 0) { + return 0 + } + r = _resize(tls, nel, htab) + if r == 0 { + Xfree(tls, (*Thsearch_data)(unsafe.Pointer(htab)).F__tab) + (*Thsearch_data)(unsafe.Pointer(htab)).F__tab = uintptr(0) + } + return r +} + +func ___hdestroy_r(tls *TLS, htab uintptr) { + if (*Thsearch_data)(unsafe.Pointer(htab)).F__tab != 0 { + Xfree(tls, (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fentries) + } + Xfree(tls, (*Thsearch_data)(unsafe.Pointer(htab)).F__tab) + (*Thsearch_data)(unsafe.Pointer(htab)).F__tab = uintptr(0) +} + +func ___hsearch_r(tls *TLS, item TENTRY, action TACTION, retval uintptr, htab uintptr) (r int32) { + var e, v2 uintptr + var hash, v1 Tsize_t + _, _, _, _ = e, hash, v1, v2 + hash = _keyhash(tls, item.Fkey) + e = _lookup(tls, item.Fkey, hash, htab) + if (*TENTRY)(unsafe.Pointer(e)).Fkey != 0 { + **(**uintptr)(__ccgo_up(retval)) = e + return int32(1) + } + if action == int32(_FIND) { + **(**uintptr)(__ccgo_up(retval)) = uintptr(0) + return 0 + } + **(**TENTRY)(__ccgo_up(e)) = item + v2 = (*Thsearch_data)(unsafe.Pointer(htab)).F__tab + 16 + *(*Tsize_t)(unsafe.Pointer(v2)) = *(*Tsize_t)(unsafe.Pointer(v2)) + 1 + v1 = *(*Tsize_t)(unsafe.Pointer(v2)) + if v1 > (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fmask-(*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fmask/uint64(4) { + if !(_resize(tls, uint64(2)*(*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fused, htab) != 0) { + (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fused = (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fused - 1 + (*TENTRY)(unsafe.Pointer(e)).Fkey = uintptr(0) + **(**uintptr)(__ccgo_up(retval)) = uintptr(0) + return 0 + } + e = _lookup(tls, item.Fkey, hash, htab) + } + **(**uintptr)(__ccgo_up(retval)) = e + return int32(1) +} + +type Tnode = struct { + Fnext uintptr + Fprev uintptr +} + +func Xinsque(tls *TLS, element uintptr, pred uintptr) { + if __ccgo_strace { + trc("tls=%v element=%v pred=%v, (%v:)", tls, element, pred, origin(2)) + } + var e, p, v1 uintptr + _, _, _ = e, p, v1 + e = element + p = pred + if !(p != 0) { + v1 = UintptrFromInt32(0) + (*Tnode)(unsafe.Pointer(e)).Fprev = v1 + (*Tnode)(unsafe.Pointer(e)).Fnext = v1 + return + } + (*Tnode)(unsafe.Pointer(e)).Fnext = (*Tnode)(unsafe.Pointer(p)).Fnext + (*Tnode)(unsafe.Pointer(e)).Fprev = p + (*Tnode)(unsafe.Pointer(p)).Fnext = e + if (*Tnode)(unsafe.Pointer(e)).Fnext != 0 { + (*Tnode)(unsafe.Pointer((*Tnode)(unsafe.Pointer(e)).Fnext)).Fprev = e + } +} + +func Xremque(tls *TLS, element uintptr) { + if __ccgo_strace { + trc("tls=%v element=%v, (%v:)", tls, element, origin(2)) + } + var e uintptr + _ = e + e = element + if (*Tnode)(unsafe.Pointer(e)).Fnext != 0 { + (*Tnode)(unsafe.Pointer((*Tnode)(unsafe.Pointer(e)).Fnext)).Fprev = (*Tnode)(unsafe.Pointer(e)).Fprev + } + if (*Tnode)(unsafe.Pointer(e)).Fprev != 0 { + (*Tnode)(unsafe.Pointer((*Tnode)(unsafe.Pointer(e)).Fprev)).Fnext = (*Tnode)(unsafe.Pointer(e)).Fnext + } +} + +type t__ccgo_fp__Xlsearch_4 = func(*TLS, uintptr, uintptr) int32 + +func Xlsearch(tls *TLS, key uintptr, base uintptr, nelp uintptr, width Tsize_t, __ccgo_fp_compar uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v base=%v nelp=%v width=%v __ccgo_fp_compar=%v, (%v:)", tls, key, base, nelp, width, __ccgo_fp_compar, origin(2)) + defer func() { trc("-> %v", r) }() + } + var i, n Tsize_t + var p uintptr + var v1 t__predefined_size_t + _, _, _, _ = i, n, p, v1 + defer func() {}() + v1 = width + p = base + n = **(**Tsize_t)(__ccgo_up(nelp)) + i = uint64(0) + for { + if !(i < n) { + break + } + if (*(*func(*TLS, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_compar})))(tls, key, p+uintptr(i)*uintptr(v1)) == 0 { + return p + uintptr(i)*uintptr(v1) + } + goto _2 + _2: + ; + i = i + 1 + } + **(**Tsize_t)(__ccgo_up(nelp)) = n + uint64(1) + return Xmemcpy(tls, p+uintptr(n)*uintptr(v1), key, width) +} + +type t__ccgo_fp__Xlfind_4 = func(*TLS, uintptr, uintptr) int32 + +func Xlfind(tls *TLS, key uintptr, base uintptr, nelp uintptr, width Tsize_t, __ccgo_fp_compar uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v base=%v nelp=%v width=%v __ccgo_fp_compar=%v, (%v:)", tls, key, base, nelp, width, __ccgo_fp_compar, origin(2)) + defer func() { trc("-> %v", r) }() + } + var i, n Tsize_t + var p uintptr + var v1 t__predefined_size_t + _, _, _, _ = i, n, p, v1 + defer func() {}() + v1 = width + p = base + n = **(**Tsize_t)(__ccgo_up(nelp)) + i = uint64(0) + for { + if !(i < n) { + break + } + if (*(*func(*TLS, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_compar})))(tls, key, p+uintptr(i)*uintptr(v1)) == 0 { + return p + uintptr(i)*uintptr(v1) + } + goto _2 + _2: + ; + i = i + 1 + } + return uintptr(0) +} + +const MAXH = 0 + +type Tnode1 = struct { + Fkey uintptr + Fa [2]uintptr + Fh int32 +} + +type t__ccgo_fp__Xtdelete_2 = func(*TLS, uintptr, uintptr) int32 + +func Xtdelete(tls *TLS, key uintptr, rootp uintptr, __ccgo_fp_cmp uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v rootp=%v __ccgo_fp_cmp=%v, (%v:)", tls, key, rootp, __ccgo_fp_cmp, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a [97]uintptr + var c, i, v1 int32 + var child, deleted, n, parent uintptr + _, _, _, _, _, _, _, _ = a, c, child, deleted, i, n, parent, v1 + if !(rootp != 0) { + return uintptr(0) + } + n = **(**uintptr)(__ccgo_up(rootp)) + i = 0 + /* *a[0] is an arbitrary non-null pointer that is returned when + the root node is deleted. */ + v1 = i + i = i + 1 + a[v1] = rootp + v1 = i + i = i + 1 + a[v1] = rootp + for { + if !(n != 0) { + return uintptr(0) + } + c = (*(*func(*TLS, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cmp})))(tls, key, (*Tnode1)(unsafe.Pointer(n)).Fkey) + if !(c != 0) { + break + } + v1 = i + i = i + 1 + a[v1] = n + 8 + BoolUintptr(c > 0)*8 + n = **(**uintptr)(__ccgo_up(n + 8 + BoolUintptr(c > 0)*8)) + goto _3 + _3: + } + parent = **(**uintptr)(__ccgo_up(a[i-int32(2)])) + if **(**uintptr)(__ccgo_up(n + 8)) != 0 { + /* free the preceding node instead of the deleted one. */ + deleted = n + v1 = i + i = i + 1 + a[v1] = n + 8 + n = **(**uintptr)(__ccgo_up(n + 8)) + for **(**uintptr)(__ccgo_up(n + 8 + 1*8)) != 0 { + v1 = i + i = i + 1 + a[v1] = n + 8 + 1*8 + n = **(**uintptr)(__ccgo_up(n + 8 + 1*8)) + } + (*Tnode1)(unsafe.Pointer(deleted)).Fkey = (*Tnode1)(unsafe.Pointer(n)).Fkey + child = **(**uintptr)(__ccgo_up(n + 8)) + } else { + child = **(**uintptr)(__ccgo_up(n + 8 + 1*8)) + } + /* freed node has at most one child, move it up and rebalance. */ + Xfree(tls, n) + i = i - 1 + v1 = i + **(**uintptr)(__ccgo_up(a[v1])) = child + for { + i = i - 1 + v1 = i + if !(v1 != 0 && X__tsearch_balance(tls, a[i]) != 0) { + break + } + } + return parent +} + +type t__ccgo_fp__Xtdestroy_1 = func(*TLS, uintptr) + +func Xtdestroy(tls *TLS, root uintptr, __ccgo_fp_freekey uintptr) { + if __ccgo_strace { + trc("tls=%v root=%v __ccgo_fp_freekey=%v, (%v:)", tls, root, __ccgo_fp_freekey, origin(2)) + } + var r uintptr + _ = r + r = root + if r == uintptr(0) { + return + } + Xtdestroy(tls, **(**uintptr)(__ccgo_up(r + 8)), __ccgo_fp_freekey) + Xtdestroy(tls, **(**uintptr)(__ccgo_up(r + 8 + 1*8)), __ccgo_fp_freekey) + if __ccgo_fp_freekey != 0 { + (*(*func(*TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_freekey})))(tls, (*Tnode1)(unsafe.Pointer(r)).Fkey) + } + Xfree(tls, r) +} + +type t__ccgo_fp__Xtfind_2 = func(*TLS, uintptr, uintptr) int32 + +func Xtfind(tls *TLS, key uintptr, rootp uintptr, __ccgo_fp_cmp uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v rootp=%v __ccgo_fp_cmp=%v, (%v:)", tls, key, rootp, __ccgo_fp_cmp, origin(2)) + defer func() { trc("-> %v", r) }() + } + var c int32 + var n uintptr + _, _ = c, n + if !(rootp != 0) { + return uintptr(0) + } + n = **(**uintptr)(__ccgo_up(rootp)) + for { + if !(n != 0) { + break + } + c = (*(*func(*TLS, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cmp})))(tls, key, (*Tnode1)(unsafe.Pointer(n)).Fkey) + if !(c != 0) { + break + } + n = **(**uintptr)(__ccgo_up(n + 8 + BoolUintptr(c > 0)*8)) + goto _1 + _1: + } + return n +} + +func _height(tls *TLS, n uintptr) (r int32) { + var v1 int32 + _ = v1 + if n != 0 { + v1 = (*Tnode1)(unsafe.Pointer(n)).Fh + } else { + v1 = 0 + } + return v1 +} + +func _rot(tls *TLS, p uintptr, x uintptr, dir int32) (r int32) { + var hx, hz int32 + var y, z uintptr + _, _, _, _ = hx, hz, y, z + y = **(**uintptr)(__ccgo_up(x + 8 + uintptr(dir)*8)) + z = **(**uintptr)(__ccgo_up(y + 8 + BoolUintptr(!(dir != 0))*8)) + hx = (*Tnode1)(unsafe.Pointer(x)).Fh + hz = _height(tls, z) + if hz > _height(tls, **(**uintptr)(__ccgo_up(y + 8 + uintptr(dir)*8))) { + /* + * x + * / \ dir z + * A y / * / \ --> x y + * z D /| | * / \ A B C D + * B C + */ + **(**uintptr)(__ccgo_up(x + 8 + uintptr(dir)*8)) = **(**uintptr)(__ccgo_up(z + 8 + BoolUintptr(!(dir != 0))*8)) + **(**uintptr)(__ccgo_up(y + 8 + BoolUintptr(!(dir != 0))*8)) = **(**uintptr)(__ccgo_up(z + 8 + uintptr(dir)*8)) + **(**uintptr)(__ccgo_up(z + 8 + BoolUintptr(!(dir != 0))*8)) = x + **(**uintptr)(__ccgo_up(z + 8 + uintptr(dir)*8)) = y + (*Tnode1)(unsafe.Pointer(x)).Fh = hz + (*Tnode1)(unsafe.Pointer(y)).Fh = hz + (*Tnode1)(unsafe.Pointer(z)).Fh = hz + int32(1) + } else { + /* + * x y + * / \ / * A y --> x D + * / \ / * z D A z + */ + **(**uintptr)(__ccgo_up(x + 8 + uintptr(dir)*8)) = z + **(**uintptr)(__ccgo_up(y + 8 + BoolUintptr(!(dir != 0))*8)) = x + (*Tnode1)(unsafe.Pointer(x)).Fh = hz + int32(1) + (*Tnode1)(unsafe.Pointer(y)).Fh = hz + int32(2) + z = y + } + **(**uintptr)(__ccgo_up(p)) = z + return (*Tnode1)(unsafe.Pointer(z)).Fh - hx +} + +// C documentation +// +// /* balance *p, return 0 if height is unchanged. */ +func X__tsearch_balance(tls *TLS, p uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v p=%v, (%v:)", tls, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + var h0, h1, old, v1 int32 + var n uintptr + _, _, _, _, _ = h0, h1, n, old, v1 + n = **(**uintptr)(__ccgo_up(p)) + h0 = _height(tls, **(**uintptr)(__ccgo_up(n + 8))) + h1 = _height(tls, **(**uintptr)(__ccgo_up(n + 8 + 1*8))) + if Uint32FromInt32(h0-h1)+uint32(1) < uint32(3) { + old = (*Tnode1)(unsafe.Pointer(n)).Fh + if h0 < h1 { + v1 = h1 + int32(1) + } else { + v1 = h0 + int32(1) + } + (*Tnode1)(unsafe.Pointer(n)).Fh = v1 + return (*Tnode1)(unsafe.Pointer(n)).Fh - old + } + return _rot(tls, p, n, BoolInt32(h0 < h1)) +} + +type t__ccgo_fp__Xtsearch_2 = func(*TLS, uintptr, uintptr) int32 + +func Xtsearch(tls *TLS, key uintptr, rootp uintptr, __ccgo_fp_cmp uintptr) (r1 uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v rootp=%v __ccgo_fp_cmp=%v, (%v:)", tls, key, rootp, __ccgo_fp_cmp, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var a [96]uintptr + var c, i, v1 int32 + var n, r, v4 uintptr + var v7 bool + _, _, _, _, _, _, _, _ = a, c, i, n, r, v1, v4, v7 + if !(rootp != 0) { + return uintptr(0) + } + n = **(**uintptr)(__ccgo_up(rootp)) + i = 0 + v1 = i + i = i + 1 + a[v1] = rootp + for { + if !(n != 0) { + break + } + c = (*(*func(*TLS, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cmp})))(tls, key, (*Tnode1)(unsafe.Pointer(n)).Fkey) + if !(c != 0) { + return n + } + v1 = i + i = i + 1 + a[v1] = n + 8 + BoolUintptr(c > 0)*8 + n = **(**uintptr)(__ccgo_up(n + 8 + BoolUintptr(c > 0)*8)) + goto _2 + _2: + } + r = Xmalloc(tls, uint64(32)) + if !(r != 0) { + return uintptr(0) + } + (*Tnode1)(unsafe.Pointer(r)).Fkey = key + v4 = UintptrFromInt32(0) + **(**uintptr)(__ccgo_up(r + 8 + 1*8)) = v4 + **(**uintptr)(__ccgo_up(r + 8)) = v4 + (*Tnode1)(unsafe.Pointer(r)).Fh = int32(1) + /* insert new node, rebalance ancestors. */ + i = i - 1 + v1 = i + **(**uintptr)(__ccgo_up(a[v1])) = r + for { + if v7 = i != 0; v7 { + i = i - 1 + v1 = i + } + if !(v7 && X__tsearch_balance(tls, a[v1]) != 0) { + break + } + } + return r +} + +func _walk(tls *TLS, r uintptr, __ccgo_fp_action uintptr, d int32) { + if !(r != 0) { + return + } + if (*Tnode1)(unsafe.Pointer(r)).Fh == int32(1) { + (*(*func(*TLS, uintptr, TVISIT, int32))(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_action})))(tls, r, int32(_leaf), d) + } else { + (*(*func(*TLS, uintptr, TVISIT, int32))(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_action})))(tls, r, int32(_preorder), d) + _walk(tls, **(**uintptr)(__ccgo_up(r + 8)), __ccgo_fp_action, d+int32(1)) + (*(*func(*TLS, uintptr, TVISIT, int32))(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_action})))(tls, r, int32(_postorder), d) + _walk(tls, **(**uintptr)(__ccgo_up(r + 8 + 1*8)), __ccgo_fp_action, d+int32(1)) + (*(*func(*TLS, uintptr, TVISIT, int32))(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_action})))(tls, r, int32(_endorder), d) + } +} + +type t__ccgo_fp__Xtwalk_1 = func(*TLS, uintptr, int32, int32) + +func Xtwalk(tls *TLS, root uintptr, __ccgo_fp_action uintptr) { + if __ccgo_strace { + trc("tls=%v root=%v __ccgo_fp_action=%v, (%v:)", tls, root, __ccgo_fp_action, origin(2)) + } + _walk(tls, root, __ccgo_fp_action, 0) +} + +func Xpoll(tls *TLS, fds uintptr, n Tnfds_t, timeout int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fds=%v n=%v timeout=%v, (%v:)", tls, fds, n, timeout, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uintptr + _ = v1 + if timeout >= 0 { + *(*[2]int64)(unsafe.Pointer(bp)) = [2]int64{ + 0: int64(timeout / int32(1000)), + 1: int64(timeout % int32(1000) * int32(1000000)), + } + v1 = bp + } else { + v1 = uintptr(0) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_ppoll), int64(fds), Int64FromUint64(n), int64(v1), int64(Int32FromInt32(0)), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8)), 0)))) +} + +func Xppoll(tls *TLS, fds uintptr, n Tnfds_t, to uintptr, mask uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fds=%v n=%v to=%v mask=%v, (%v:)", tls, fds, n, to, mask, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ns, v1, v2 int64 + var s Ttime_t + var v3 uintptr + _, _, _, _, _ = ns, s, v1, v2, v3 + if to != 0 { + v1 = (*Ttimespec)(unsafe.Pointer(to)).Ftv_sec + } else { + v1 = 0 + } + s = v1 + if to != 0 { + v2 = (*Ttimespec)(unsafe.Pointer(to)).Ftv_nsec + } else { + v2 = 0 + } + ns = v2 + if to != 0 { + *(*[2]int64)(unsafe.Pointer(bp)) = [2]int64{ + 0: s, + 1: ns, + } + v3 = bp + } else { + v3 = uintptr(0) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_ppoll), int64(fds), Int64FromUint64(n), int64(v3), int64(mask), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8)), 0)))) +} + +func Xpselect(tls *TLS, n int32, rfds uintptr, wfds uintptr, efds uintptr, ts uintptr, mask uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v n=%v rfds=%v wfds=%v efds=%v ts=%v mask=%v, (%v:)", tls, n, rfds, wfds, efds, ts, mask, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var ns, v1, v2 int64 + var s Ttime_t + var v3 uintptr + var _ /* data at bp+16 */ [2]Tsyscall_arg_t + _, _, _, _, _ = ns, s, v1, v2, v3 + **(**[2]Tsyscall_arg_t)(__ccgo_up(bp + 16)) = [2]Tsyscall_arg_t{ + 0: Int64FromUint64(uint64(mask)), + 1: int64(Int32FromInt32(_NSIG) / Int32FromInt32(8)), + } + if ts != 0 { + v1 = (*Ttimespec)(unsafe.Pointer(ts)).Ftv_sec + } else { + v1 = 0 + } + s = v1 + if ts != 0 { + v2 = (*Ttimespec)(unsafe.Pointer(ts)).Ftv_nsec + } else { + v2 = 0 + } + ns = v2 + if ts != 0 { + *(*[2]int64)(unsafe.Pointer(bp)) = [2]int64{ + 0: s, + 1: ns, + } + v3 = bp + } else { + v3 = uintptr(0) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_pselect6), int64(n), int64(rfds), int64(wfds), int64(efds), int64(v3), int64(bp+16))))) +} + +func Xselect(tls *TLS, n int32, rfds uintptr, wfds uintptr, efds uintptr, tv uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v n=%v rfds=%v wfds=%v efds=%v tv=%v, (%v:)", tls, n, rfds, wfds, efds, tv, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var max_time, s Ttime_t + var ns, v1, v2 int64 + var us Tsuseconds_t + var v3 uintptr + _, _, _, _, _, _, _ = max_time, ns, s, us, v1, v2, v3 + if tv != 0 { + v1 = (*Ttimeval)(unsafe.Pointer(tv)).Ftv_sec + } else { + v1 = 0 + } + s = v1 + if tv != 0 { + v2 = (*Ttimeval)(unsafe.Pointer(tv)).Ftv_usec + } else { + v2 = 0 + } + us = v2 + max_time = Int64FromUint64(Uint64FromUint64(1)<<(Uint64FromInt32(8)*Uint64FromInt64(8)-Uint64FromInt32(1)) - Uint64FromInt32(1)) + if s < 0 || us < 0 { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL)))) + } + if us/int64(1000000) > max_time-s { + s = max_time + us = int64(999999) + ns = int64(999999999) + } else { + s = s + us/int64(1000000) + us = us % int64(1000000) + ns = us * int64(1000) + } + if tv != 0 { + *(*[2]int64)(unsafe.Pointer(bp)) = [2]int64{ + 0: s, + 1: ns, + } + v3 = bp + } else { + v3 = uintptr(0) + } + *(*[2]Tsyscall_arg_t)(unsafe.Pointer(bp + 16)) = [2]Tsyscall_arg_t{ + 1: int64(Int32FromInt32(_NSIG) / Int32FromInt32(8)), + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_pselect6), int64(n), int64(rfds), int64(wfds), int64(efds), int64(v3), int64(bp+16))))) +} + +var _all_mask = [1]uint64{ + 0: -Uint64FromUint64(1), +} + +var _app_mask = [1]uint64{ + 0: uint64(0xfffffffc7fffffff), +} + +func X__block_all_sigs(tls *TLS, set uintptr) { + if __ccgo_strace { + trc("tls=%v set=%v, (%v:)", tls, set, origin(2)) + } + X__syscall4(tls, int64(SYS_rt_sigprocmask), int64(Int32FromInt32(SIG_BLOCK)), int64(uintptr(unsafe.Pointer(&_all_mask))), int64(set), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8))) +} + +func X__block_app_sigs(tls *TLS, set uintptr) { + if __ccgo_strace { + trc("tls=%v set=%v, (%v:)", tls, set, origin(2)) + } + X__syscall4(tls, int64(SYS_rt_sigprocmask), int64(Int32FromInt32(SIG_BLOCK)), int64(uintptr(unsafe.Pointer(&_app_mask))), int64(set), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8))) +} + +func X__restore_sigs(tls *TLS, set uintptr) { + if __ccgo_strace { + trc("tls=%v set=%v, (%v:)", tls, set, origin(2)) + } + X__syscall4(tls, int64(SYS_rt_sigprocmask), int64(Int32FromInt32(SIG_SETMASK)), int64(set), int64(Int32FromInt32(0)), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8))) +} + +func Xgetitimer(tls *TLS, which int32, old uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v which=%v old=%v, (%v:)", tls, which, old, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var r int32 + var _ /* old32 at bp+0 */ [4]int64 + _ = r + if uint64(8) > uint64(8) { + r = int32(X__syscall2(tls, int64(SYS_getitimer), int64(which), int64(bp))) + if !(r != 0) { + (*Titimerval)(unsafe.Pointer(old)).Fit_interval.Ftv_sec = (**(**[4]int64)(__ccgo_up(bp)))[0] + (*Titimerval)(unsafe.Pointer(old)).Fit_interval.Ftv_usec = (**(**[4]int64)(__ccgo_up(bp)))[int32(1)] + (*Titimerval)(unsafe.Pointer(old)).Fit_value.Ftv_sec = (**(**[4]int64)(__ccgo_up(bp)))[int32(2)] + (*Titimerval)(unsafe.Pointer(old)).Fit_value.Ftv_usec = (**(**[4]int64)(__ccgo_up(bp)))[int32(3)] + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_getitimer), int64(which), int64(old))))) +} + +func Xkill(tls *TLS, pid Tpid_t, sig int32) (r int32) { + if __ccgo_strace { + trc("tls=%v pid=%v sig=%v, (%v:)", tls, pid, sig, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_kill), int64(pid), int64(sig))))) +} + +func Xkillpg(tls *TLS, pgid Tpid_t, sig int32) (r int32) { + if __ccgo_strace { + trc("tls=%v pgid=%v sig=%v, (%v:)", tls, pgid, sig, origin(2)) + defer func() { trc("-> %v", r) }() + } + if pgid < 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + return Xkill(tls, -pgid, sig) +} + +func Xpsiginfo(tls *TLS, si uintptr, msg uintptr) { + if __ccgo_strace { + trc("tls=%v si=%v msg=%v, (%v:)", tls, si, msg, origin(2)) + } + Xpsignal(tls, (*Tsiginfo_t)(unsafe.Pointer(si)).Fsi_signo, msg) +} + +func Xpsignal(tls *TLS, sig int32, msg uintptr) { + if __ccgo_strace { + trc("tls=%v sig=%v msg=%v, (%v:)", tls, sig, msg, origin(2)) + } + bp := tls.Alloc(32) + defer tls.Free(32) + var __need_unlock, old_errno, old_mode, v1 int32 + var f, old_locale, s, v2, v3 uintptr + _, _, _, _, _, _, _, _, _ = __need_unlock, f, old_errno, old_locale, old_mode, s, v1, v2, v3 + f = uintptr(unsafe.Pointer(&X__stderr_FILE)) + s = Xstrsignal(tls, sig) + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + /* Save stderr's orientation and encoding rule, since psignal is not + * permitted to change them. Save errno and restore it if there is no + * error since fprintf might change it even on success but psignal is + * not permitted to do so. */ + old_locale = (*TFILE)(unsafe.Pointer(f)).Flocale + old_mode = (*TFILE)(unsafe.Pointer(f)).Fmode + old_errno = **(**int32)(__ccgo_up(X__errno_location(tls))) + if msg != 0 { + v2 = msg + } else { + v2 = __ccgo_ts + } + if msg != 0 { + v3 = __ccgo_ts + 289 + } else { + v3 = __ccgo_ts + } + if Xfprintf(tls, f, __ccgo_ts+1111, VaList(bp+8, v2, v3, s)) >= 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = old_errno + } + (*TFILE)(unsafe.Pointer(f)).Fmode = old_mode + (*TFILE)(unsafe.Pointer(f)).Flocale = old_locale + if __need_unlock != 0 { + ___unlockfile(tls, f) + } +} + +func Xraise(tls *TLS, sig int32) (r int32) { + if __ccgo_strace { + trc("tls=%v sig=%v, (%v:)", tls, sig, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(128) + defer tls.Free(128) + var ret int32 + var _ /* set at bp+0 */ Tsigset_t + _ = ret + X__block_app_sigs(tls, bp) + ret = int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_tkill), int64((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Ftid), int64(sig))))) + X__restore_sigs(tls, bp) + return ret +} + +/* These functions will not work, but suffice for targets where the + * kernel sigaction structure does not actually use sa_restorer. */ +func X__restore(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } +} + +func X__restore_rt(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } +} + +func Xsetitimer(tls *TLS, which int32, new1 uintptr, old uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v which=%v new1=%v old=%v, (%v:)", tls, which, new1, old, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var is, vs Ttime_t + var ius, vus int64 + var r int32 + var _ /* old32 at bp+32 */ [4]int64 + _, _, _, _, _ = is, ius, r, vs, vus + if uint64(8) > uint64(8) { + is = (*Titimerval)(unsafe.Pointer(new1)).Fit_interval.Ftv_sec + vs = (*Titimerval)(unsafe.Pointer(new1)).Fit_value.Ftv_sec + ius = (*Titimerval)(unsafe.Pointer(new1)).Fit_interval.Ftv_usec + vus = (*Titimerval)(unsafe.Pointer(new1)).Fit_value.Ftv_usec + if !!((Uint64FromInt64(is)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) || !!((Uint64FromInt64(vs)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EOPNOTSUPP)))) + } + *(*[4]int64)(unsafe.Pointer(bp)) = [4]int64{ + 0: is, + 1: ius, + 2: vs, + 3: vus, + } + r = int32(X__syscall3(tls, int64(SYS_setitimer), int64(which), int64(bp), int64(bp+32))) + if !(r != 0) && old != 0 { + (*Titimerval)(unsafe.Pointer(old)).Fit_interval.Ftv_sec = (**(**[4]int64)(__ccgo_up(bp + 32)))[0] + (*Titimerval)(unsafe.Pointer(old)).Fit_interval.Ftv_usec = (**(**[4]int64)(__ccgo_up(bp + 32)))[int32(1)] + (*Titimerval)(unsafe.Pointer(old)).Fit_value.Ftv_sec = (**(**[4]int64)(__ccgo_up(bp + 32)))[int32(2)] + (*Titimerval)(unsafe.Pointer(old)).Fit_value.Ftv_usec = (**(**[4]int64)(__ccgo_up(bp + 32)))[int32(3)] + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_setitimer), int64(which), int64(new1), int64(old))))) +} + +type Tk_sigaction = struct { + Fhandler uintptr + Fflags uint64 + Fmask [2]uint32 + Funused uintptr +} + +var _unmask_done int32 +var _handler_set [1]uint64 + +func X__get_handler_set(tls *TLS, set uintptr) { + if __ccgo_strace { + trc("tls=%v set=%v, (%v:)", tls, set, origin(2)) + } + Xmemcpy(tls, set, uintptr(unsafe.Pointer(&_handler_set)), uint64(8)) +} + +func X__libc_sigaction(tls *TLS, sig int32, sa uintptr, old2 uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v sig=%v sa=%v old2=%v, (%v:)", tls, sig, sa, old2, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(80) + defer tls.Free(80) + var old, old1, r, v10, v15, v4 int32 + var v1, v14, v3, v8, v9 uintptr + var v2 int64 + var _ /* ksa at bp+16 */ Tk_sigaction + var _ /* ksa_old at bp+48 */ Tk_sigaction + var _ /* u at bp+8 */ struct { + Fr [0][2]Tuint32_t + Fv Tuint64_t + } + _, _, _, _, _, _, _, _, _, _, _, _ = old, old1, r, v1, v10, v14, v15, v2, v3, v4, v8, v9 + if sa != 0 { + if uint64(*(*uintptr)(unsafe.Pointer(sa))) > uint64(1) { + v1 = uintptr(unsafe.Pointer(&_handler_set)) + uintptr(Uint64FromInt32(sig-Int32FromInt32(1))/(Uint64FromInt32(8)*Uint64FromInt64(8)))*8 + v2 = Int64FromUint64(uint64(1) << (Uint64FromInt32(sig-Int32FromInt32(1)) % (Uint64FromInt32(8) * Uint64FromInt64(8)))) + if Uint64FromInt64(8) == Uint64FromInt64(4) { + v3 = v1 + for { + old1 = AtomicLoadPInt32(v3) + goto _6 + _6: + ; + // __asm__ __volatile__ ( + // + // "\n1: lr.w.aqrl %0, (%2)\n bne %0, %3, 1f\n sc.w.aqrl %1, %4, (%2)\n bnez %1, 1b\n1:" + // : "=&r"(old), "=&r"(tmp) + // : "r"(p), "r"((long)t), "r"((long)s) + // : "memory"); + X__assert_fail(tls, __ccgo_ts+353, __ccgo_ts+388, 11, __ccgo_ts+1526) + v4 = old + goto _5 + _5: + ; + if !(v4 != old1) { + break + } + } + _ = old1 + goto _7 + _7: + } else { + v8 = v1 + *(*struct { + Fr [0][2]Tuint32_t + Fv Tuint64_t + })(unsafe.Pointer(bp + 8)) = struct { + Fr [0][2]Tuint32_t + Fv Tuint64_t + }{} + *(*uint64)(unsafe.Pointer(bp + 8)) = Uint64FromInt64(v2) + if **(**Tuint32_t)(__ccgo_up(bp + 8)) != 0 { + v9 = v8 + for { + old1 = AtomicLoadPInt32(v9) + goto _12 + _12: + ; + // __asm__ __volatile__ ( + // + // "\n1: lr.w.aqrl %0, (%2)\n bne %0, %3, 1f\n sc.w.aqrl %1, %4, (%2)\n bnez %1, 1b\n1:" + // : "=&r"(old), "=&r"(tmp) + // : "r"(p), "r"((long)t), "r"((long)s) + // : "memory"); + X__assert_fail(tls, __ccgo_ts+353, __ccgo_ts+388, 11, __ccgo_ts+1526) + v10 = old + goto _11 + _11: + ; + if !(v10 != old1) { + break + } + } + _ = old1 + goto _13 + _13: + } + if **(**Tuint32_t)(__ccgo_up(bp + 8 + 1*4)) != 0 { + v14 = v8 + uintptr(1)*4 + for { + old1 = AtomicLoadPInt32(v14) + goto _17 + _17: + ; + // __asm__ __volatile__ ( + // + // "\n1: lr.w.aqrl %0, (%2)\n bne %0, %3, 1f\n sc.w.aqrl %1, %4, (%2)\n bnez %1, 1b\n1:" + // : "=&r"(old), "=&r"(tmp) + // : "r"(p), "r"((long)t), "r"((long)s) + // : "memory"); + X__assert_fail(tls, __ccgo_ts+353, __ccgo_ts+388, 11, __ccgo_ts+1526) + v15 = old + goto _16 + _16: + ; + if !(v15 != old1) { + break + } + } + _ = old1 + goto _18 + _18: + } + } + /* If pthread_create has not yet been called, + * implementation-internal signals might not + * yet have been unblocked. They must be + * unblocked before any signal handler is + * installed, so that an application cannot + * receive an illegal sigset_t (with them + * blocked) as part of the ucontext_t passed + * to the signal handler. */ + if !(X__libc.Fthreaded != 0) && !(_unmask_done != 0) { + *(*[1]uint64)(unsafe.Pointer(bp)) = [1]uint64{ + 0: Uint64FromUint64(3) << (Int32FromInt32(32) * BoolInt32(Uint64FromInt64(8) > Uint64FromInt32(4))), + } + X__syscall4(tls, int64(SYS_rt_sigprocmask), int64(Int32FromInt32(SIG_UNBLOCK)), int64(bp), int64(Int32FromInt32(0)), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8))) + _unmask_done = int32(1) + } + if !((*Tsigaction)(unsafe.Pointer(sa)).Fsa_flags&Int32FromInt32(SA_RESTART) != 0) { + // __asm__ __volatile__ ("fence rw,rw" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+353, __ccgo_ts+388, 4, __ccgo_ts+1526) + AtomicStorePInt32(uintptr(unsafe.Pointer(&X__eintr_valid_flag)), int32(1)) + // __asm__ __volatile__ ("fence rw,rw" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+353, __ccgo_ts+388, 4, __ccgo_ts+1526) + } + } + (**(**Tk_sigaction)(__ccgo_up(bp + 16))).Fhandler = *(*uintptr)(unsafe.Pointer(sa)) + (**(**Tk_sigaction)(__ccgo_up(bp + 16))).Fflags = Uint64FromInt32((*Tsigaction)(unsafe.Pointer(sa)).Fsa_flags) + Xmemcpy(tls, bp+16+16, sa+8, Uint64FromInt32(Int32FromInt32(_NSIG)/Int32FromInt32(8))) + } + if sa != 0 { + v1 = bp + 16 + } else { + v1 = uintptr(0) + } + if old2 != 0 { + v3 = bp + 48 + } else { + v3 = uintptr(0) + } + r = int32(X__syscall4(tls, int64(SYS_rt_sigaction), int64(sig), int64(v1), int64(v3), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8)))) + if old2 != 0 && !(r != 0) { + *(*uintptr)(unsafe.Pointer(old2)) = (**(**Tk_sigaction)(__ccgo_up(bp + 48))).Fhandler + (*Tsigaction)(unsafe.Pointer(old2)).Fsa_flags = Int32FromUint64((**(**Tk_sigaction)(__ccgo_up(bp + 48))).Fflags) + Xmemcpy(tls, old2+8, bp+48+16, Uint64FromInt32(Int32FromInt32(_NSIG)/Int32FromInt32(8))) + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func X__sigaction(tls *TLS, sig int32, sa uintptr, old uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v sig=%v sa=%v old=%v, (%v:)", tls, sig, sa, old, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var r int32 + var _ /* set at bp+0 */ [1]uint64 + _ = r + if Uint32FromInt32(sig)-uint32(32) < uint32(3) || Uint32FromInt32(sig)-uint32(1) >= Uint32FromInt32(Int32FromInt32(_NSIG)-Int32FromInt32(1)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + /* Doing anything with the disposition of SIGABRT requires a lock, + * so that it cannot be changed while abort is terminating the + * process and so any change made by abort can't be observed. */ + if sig == int32(SIGABRT) { + X__block_all_sigs(tls, bp) + ___lock(tls, uintptr(unsafe.Pointer(&X__abort_lock))) + } + r = X__libc_sigaction(tls, sig, sa, old) + if sig == int32(SIGABRT) { + ___unlock(tls, uintptr(unsafe.Pointer(&X__abort_lock))) + X__restore_sigs(tls, bp) + } + return r +} + +func Xsigaction(tls *TLS, sig int32, sa uintptr, old uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v sig=%v sa=%v old=%v, (%v:)", tls, sig, sa, old, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__sigaction(tls, sig, sa, old) +} + +func Xsigaddset(tls *TLS, set uintptr, sig int32) (r int32) { + if __ccgo_strace { + trc("tls=%v set=%v sig=%v, (%v:)", tls, set, sig, origin(2)) + defer func() { trc("-> %v", r) }() + } + var s uint32 + _ = s + s = Uint32FromInt32(sig - int32(1)) + if s >= Uint32FromInt32(Int32FromInt32(_NSIG)-Int32FromInt32(1)) || Uint32FromInt32(sig)-uint32(32) < uint32(3) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + **(**uint64)(__ccgo_up(set + uintptr(uint64(s/uint32(8))/uint64(8))*8)) |= uint64(1) << (uint64(s) & (Uint64FromInt32(8)*Uint64FromInt64(8) - Uint64FromInt32(1))) + return 0 +} + +func Xsigaltstack(tls *TLS, ss uintptr, old uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v ss=%v old=%v, (%v:)", tls, ss, old, origin(2)) + defer func() { trc("-> %v", r) }() + } + if ss != 0 { + if !((*Tstack_t)(unsafe.Pointer(ss)).Fss_flags&Int32FromInt32(SS_DISABLE) != 0) && (*Tstack_t)(unsafe.Pointer(ss)).Fss_size < uint64(MINSIGSTKSZ) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOMEM) + return -int32(1) + } + if (*Tstack_t)(unsafe.Pointer(ss)).Fss_flags&int32(SS_ONSTACK) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_sigaltstack), int64(ss), int64(old))))) +} + +const SST_SIZE = 8 + +func Xsigandset(tls *TLS, dest uintptr, left uintptr, right uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v dest=%v left=%v right=%v, (%v:)", tls, dest, left, right, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var d, l, r uintptr + var i uint64 + _, _, _, _ = d, i, l, r + i = uint64(0) + d = dest + l = left + r = right + for { + if !(i < Uint64FromInt32(Int32FromInt32(_NSIG)/Int32FromInt32(8))/Uint64FromInt64(8)) { + break + } + **(**uint64)(__ccgo_up(d + uintptr(i)*8)) = **(**uint64)(__ccgo_up(l + uintptr(i)*8)) & **(**uint64)(__ccgo_up(r + uintptr(i)*8)) + goto _1 + _1: + ; + i = i + 1 + } + return 0 +} + +func Xsigdelset(tls *TLS, set uintptr, sig int32) (r int32) { + if __ccgo_strace { + trc("tls=%v set=%v sig=%v, (%v:)", tls, set, sig, origin(2)) + defer func() { trc("-> %v", r) }() + } + var s uint32 + _ = s + s = Uint32FromInt32(sig - int32(1)) + if s >= Uint32FromInt32(Int32FromInt32(_NSIG)-Int32FromInt32(1)) || Uint32FromInt32(sig)-uint32(32) < uint32(3) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + **(**uint64)(__ccgo_up(set + uintptr(uint64(s/uint32(8))/uint64(8))*8)) &= ^(Uint64FromUint64(1) << (uint64(s) & (Uint64FromInt32(8)*Uint64FromInt64(8) - Uint64FromInt32(1)))) + return 0 +} + +func Xsigemptyset(tls *TLS, set uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v set=%v, (%v:)", tls, set, origin(2)) + defer func() { trc("-> %v", r) }() + } + **(**uint64)(__ccgo_up(set)) = uint64(0) + if Bool(uint64(8) == uint64(4)) || Bool(int32(_NSIG) > int32(65)) { + **(**uint64)(__ccgo_up(set + 1*8)) = uint64(0) + } + if Bool(uint64(8) == uint64(4)) && Bool(int32(_NSIG) > int32(65)) { + **(**uint64)(__ccgo_up(set + 2*8)) = uint64(0) + **(**uint64)(__ccgo_up(set + 3*8)) = uint64(0) + } + return 0 +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xsigfillset(tls *TLS, set uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v set=%v, (%v:)", tls, set, origin(2)) + defer func() { trc("-> %v", r) }() + } + **(**uint64)(__ccgo_up(set)) = uint64(0xfffffffc7fffffff) + if int32(_NSIG) > int32(65) { + **(**uint64)(__ccgo_up(set + 1*8)) = uint64(0xffffffffffffffff) + } + return 0 +} + +func Xsigisemptyset(tls *TLS, set uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v set=%v, (%v:)", tls, set, origin(2)) + defer func() { trc("-> %v", r) }() + } + var i Tsize_t + _ = i + i = uint64(0) + for { + if !(i < Uint64FromInt32(Int32FromInt32(_NSIG)/Int32FromInt32(8))/Uint64FromInt64(8)) { + break + } + if **(**uint64)(__ccgo_up(set + uintptr(i)*8)) != 0 { + return 0 + } + goto _1 + _1: + ; + i = i + 1 + } + return int32(1) +} + +func Xsigismember(tls *TLS, set uintptr, sig int32) (r int32) { + if __ccgo_strace { + trc("tls=%v set=%v sig=%v, (%v:)", tls, set, sig, origin(2)) + defer func() { trc("-> %v", r) }() + } + var s uint32 + _ = s + s = Uint32FromInt32(sig - int32(1)) + if s >= Uint32FromInt32(Int32FromInt32(_NSIG)-Int32FromInt32(1)) { + return 0 + } + return BoolInt32(!!(**(**uint64)(__ccgo_up(set + uintptr(uint64(s/uint32(8))/uint64(8))*8))&(Uint64FromUint64(1)<<(uint64(s)&(Uint64FromInt32(8)*Uint64FromInt64(8)-Uint64FromInt32(1)))) != 0)) +} + +func Xsigorset(tls *TLS, dest uintptr, left uintptr, right uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v dest=%v left=%v right=%v, (%v:)", tls, dest, left, right, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var d, l, r uintptr + var i uint64 + _, _, _, _ = d, i, l, r + i = uint64(0) + d = dest + l = left + r = right + for { + if !(i < Uint64FromInt32(Int32FromInt32(_NSIG)/Int32FromInt32(8))/Uint64FromInt64(8)) { + break + } + **(**uint64)(__ccgo_up(d + uintptr(i)*8)) = **(**uint64)(__ccgo_up(l + uintptr(i)*8)) | **(**uint64)(__ccgo_up(r + uintptr(i)*8)) + goto _1 + _1: + ; + i = i + 1 + } + return 0 +} + +func Xsigpending(tls *TLS, set uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v set=%v, (%v:)", tls, set, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_rt_sigpending), int64(set), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8)))))) +} + +func Xsigprocmask(tls *TLS, how int32, set uintptr, old uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v how=%v set=%v old=%v, (%v:)", tls, how, set, old, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + r = _pthread_sigmask(tls, how, set, old) + if !(r != 0) { + return r + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = r + return -int32(1) +} + +func Xsigqueue(tls *TLS, pid Tpid_t, sig int32, value Tsigval) (r1 int32) { + if __ccgo_strace { + trc("tls=%v pid=%v sig=%v value=%v, (%v:)", tls, pid, sig, value, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(256) + defer tls.Free(256) + var r int32 + var _ /* set at bp+128 */ Tsigset_t + var _ /* si at bp+0 */ Tsiginfo_t + _ = r + Xmemset(tls, bp, 0, uint64(128)) + (**(**Tsiginfo_t)(__ccgo_up(bp))).Fsi_signo = sig + (**(**Tsiginfo_t)(__ccgo_up(bp))).Fsi_code = -int32(1) + *(*Tsigval)(unsafe.Pointer(bp + 16 + 8)) = value + *(*Tuid_t)(unsafe.Pointer(bp + 16 + 4)) = Xgetuid(tls) + X__block_app_sigs(tls, bp+128) + *(*Tpid_t)(unsafe.Pointer(bp + 16)) = Xgetpid(tls) + r = int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_rt_sigqueueinfo), int64(pid), int64(sig), int64(bp))))) + X__restore_sigs(tls, bp+128) + return r +} + +func X__libc_current_sigrtmax(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Int32FromInt32(_NSIG) - Int32FromInt32(1) +} + +func X__libc_current_sigrtmin(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(35) +} + +type t__jmp_buf = [26]uint64 + +type Tjmp_buf = [1]t__jmp_buf_tag + +type t__jmp_buf_tag = struct { + F__jb t__jmp_buf + F__fl uint64 + F__ss [16]uint64 +} + +type Tsigjmp_buf = [1]t__jmp_buf_tag + +func X__sigsetjmp_tail(tls *TLS, jb uintptr, ret int32) (r int32) { + if __ccgo_strace { + trc("tls=%v jb=%v ret=%v, (%v:)", tls, jb, ret, origin(2)) + defer func() { trc("-> %v", r) }() + } + var p, v1, v2 uintptr + _, _, _ = p, v1, v2 + p = jb + 216 + if ret != 0 { + v1 = p + } else { + v1 = uintptr(0) + } + if ret != 0 { + v2 = uintptr(0) + } else { + v2 = p + } + X__syscall4(tls, int64(SYS_rt_sigprocmask), int64(Int32FromInt32(SIG_SETMASK)), int64(v1), int64(v2), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8))) + return ret +} + +func Xsigsuspend(tls *TLS, mask uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v mask=%v, (%v:)", tls, mask, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_rt_sigsuspend), int64(mask), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8)), 0, 0, 0, 0)))) +} + +func _do_sigtimedwait(tls *TLS, mask uintptr, si uintptr, ts uintptr) (r int32) { + return int32(___syscall_cp(tls, int64(SYS_rt_sigtimedwait), int64(mask), int64(si), int64(ts), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8)), 0, 0)) +} + +func Xsigtimedwait(tls *TLS, mask uintptr, si uintptr, timeout uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v mask=%v si=%v timeout=%v, (%v:)", tls, mask, si, timeout, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret int32 + _ = ret + for cond := true; cond; cond = ret == -int32(EINTR) { + ret = _do_sigtimedwait(tls, mask, si, timeout) + } + return int32(X__syscall_ret(tls, Uint64FromInt32(ret))) +} + +func Xsigwait(tls *TLS, mask uintptr, sig uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v mask=%v sig=%v, (%v:)", tls, mask, sig, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(128) + defer tls.Free(128) + var _ /* si at bp+0 */ Tsiginfo_t + if Xsigtimedwait(tls, mask, bp, uintptr(0)) < 0 { + return -int32(1) + } + **(**int32)(__ccgo_up(sig)) = (**(**Tsiginfo_t)(__ccgo_up(bp))).Fsi_signo + return 0 +} + +func Xsigwaitinfo(tls *TLS, mask uintptr, si uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v mask=%v si=%v, (%v:)", tls, mask, si, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xsigtimedwait(tls, mask, si, uintptr(0)) +} + +func X__fxstat(tls *TLS, ver int32, fd int32, buf uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v ver=%v fd=%v buf=%v, (%v:)", tls, ver, fd, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfstat(tls, fd, buf) +} + +func X__fxstatat(tls *TLS, ver int32, fd int32, path uintptr, buf uintptr, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v ver=%v fd=%v path=%v buf=%v flag=%v, (%v:)", tls, ver, fd, path, buf, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfstatat(tls, fd, path, buf, flag) +} + +func X__lxstat(tls *TLS, ver int32, path uintptr, buf uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v ver=%v path=%v buf=%v, (%v:)", tls, ver, path, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xlstat(tls, path, buf) +} + +func X__xstat(tls *TLS, ver int32, path uintptr, buf uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v ver=%v path=%v buf=%v, (%v:)", tls, ver, path, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstat(tls, path, buf) +} + +func X__xmknod(tls *TLS, ver int32, path uintptr, mode Tmode_t, dev uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v ver=%v path=%v mode=%v dev=%v, (%v:)", tls, ver, path, mode, dev, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xmknod(tls, path, mode, **(**Tdev_t)(__ccgo_up(dev))) +} + +func X__xmknodat(tls *TLS, ver int32, fd int32, path uintptr, mode Tmode_t, dev uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v ver=%v fd=%v path=%v mode=%v dev=%v, (%v:)", tls, ver, fd, path, mode, dev, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xmknodat(tls, fd, path, mode, **(**Tdev_t)(__ccgo_up(dev))) +} + +func Xchmod(tls *TLS, path uintptr, mode Tmode_t) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v mode=%v, (%v:)", tls, path, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_fchmodat), int64(-Int32FromInt32(100)), int64(path), Int64FromUint32(mode))))) +} + +func Xfchmod(tls *TLS, fd int32, mode Tmode_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v mode=%v, (%v:)", tls, fd, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var ret int32 + var _ /* buf at bp+0 */ [27]uint8 + _ = ret + ret = int32(X__syscall2(tls, int64(SYS_fchmod), int64(fd), Int64FromUint32(mode))) + if ret != -int32(EBADF) || X__syscall2(tls, int64(SYS_fcntl), int64(fd), int64(Int32FromInt32(F_GETFD))) < 0 { + return int32(X__syscall_ret(tls, Uint64FromInt32(ret))) + } + X__procfdname(tls, bp, Uint32FromInt32(fd)) + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_fchmodat), int64(-Int32FromInt32(100)), int64(bp), Int64FromUint32(mode))))) +} + +func Xfchmodat(tls *TLS, fd int32, path uintptr, mode Tmode_t, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v path=%v mode=%v flag=%v, (%v:)", tls, fd, path, mode, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(160) + defer tls.Free(160) + var fd2, ret, v1 int32 + var _ /* proc at bp+128 */ [27]uint8 + var _ /* st at bp+0 */ Tstat + _, _, _ = fd2, ret, v1 + if !(flag != 0) { + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_fchmodat), int64(fd), int64(path), Int64FromUint32(mode))))) + } + ret = int32(X__syscall4(tls, int64(SYS_fchmodat2), int64(fd), int64(path), Int64FromUint32(mode), int64(flag))) + if ret != -int32(ENOSYS) { + return int32(X__syscall_ret(tls, Uint64FromInt32(ret))) + } + if flag != int32(AT_SYMLINK_NOFOLLOW) { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL)))) + } + if Xfstatat(tls, fd, path, bp, flag) != 0 { + return -int32(1) + } + if (**(**Tstat)(__ccgo_up(bp))).Fst_mode&uint32(S_IFMT) == uint32(S_IFLNK) { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EOPNOTSUPP)))) + } + v1 = int32(X__syscall3(tls, int64(SYS_openat), int64(fd), int64(path), int64(Int32FromInt32(O_RDONLY)|Int32FromInt32(O_PATH)|Int32FromInt32(O_NOFOLLOW)|Int32FromInt32(O_NOCTTY)|Int32FromInt32(O_CLOEXEC)))) + fd2 = v1 + if v1 < 0 { + if fd2 == -int32(ELOOP) { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EOPNOTSUPP)))) + } + return int32(X__syscall_ret(tls, Uint64FromInt32(fd2))) + } + X__procfdname(tls, bp+128, Uint32FromInt32(fd2)) + ret = Xstat(tls, bp+128, bp) + if !(ret != 0) { + if (**(**Tstat)(__ccgo_up(bp))).Fst_mode&uint32(S_IFMT) == uint32(S_IFLNK) { + ret = int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EOPNOTSUPP)))) + } else { + ret = int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_fchmodat), int64(-Int32FromInt32(100)), int64(bp+128), Int64FromUint32(mode))))) + } + } + X__syscall1(tls, int64(SYS_close), int64(fd2)) + return ret +} + +func X__fstat(tls *TLS, fd int32, st uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v st=%v, (%v:)", tls, fd, st, origin(2)) + defer func() { trc("-> %v", r) }() + } + if fd < 0 { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EBADF)))) + } + return X__fstatat(tls, fd, __ccgo_ts, st, int32(AT_EMPTY_PATH)) +} + +func Xfstat(tls *TLS, fd int32, st uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v st=%v, (%v:)", tls, fd, st, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fstat(tls, fd, st) +} + +type Tstatx1 = struct { + Fstx_mask Tuint32_t + Fstx_blksize Tuint32_t + Fstx_attributes Tuint64_t + Fstx_nlink Tuint32_t + Fstx_uid Tuint32_t + Fstx_gid Tuint32_t + Fstx_mode Tuint16_t + Fpad1 Tuint16_t + Fstx_ino Tuint64_t + Fstx_size Tuint64_t + Fstx_blocks Tuint64_t + Fstx_attributes_mask Tuint64_t + Fstx_atime struct { + Ftv_sec Tint64_t + Ftv_nsec Tuint32_t + Fpad Tint32_t + } + Fstx_btime struct { + Ftv_sec Tint64_t + Ftv_nsec Tuint32_t + Fpad Tint32_t + } + Fstx_ctime struct { + Ftv_sec Tint64_t + Ftv_nsec Tuint32_t + Fpad Tint32_t + } + Fstx_mtime struct { + Ftv_sec Tint64_t + Ftv_nsec Tuint32_t + Fpad Tint32_t + } + Fstx_rdev_major Tuint32_t + Fstx_rdev_minor Tuint32_t + Fstx_dev_major Tuint32_t + Fstx_dev_minor Tuint32_t + Fspare [14]Tuint64_t +} + +func _fstatat_statx(tls *TLS, fd int32, path uintptr, st uintptr, flag int32) (r int32) { + bp := tls.Alloc(256) + defer tls.Free(256) + var ret int32 + var _ /* stx at bp+0 */ Tstatx1 + _ = ret + flag = flag | int32(AT_NO_AUTOMOUNT) + ret = int32(X__syscall5(tls, int64(SYS_statx), int64(fd), int64(path), int64(flag), int64(Int32FromInt32(0x7ff)), int64(bp))) + if ret != 0 { + return ret + } + **(**Tstat)(__ccgo_up(st)) = Tstat{ + Fst_dev: uint64(uint64((**(**Tstatx1)(__ccgo_up(bp))).Fstx_dev_major)&Uint64FromUint64(0xfffff000)<= 0 && !(**(**uint8)(__ccgo_up(path)) != 0) { + ret = int32(X__syscall2(tls, int64(SYS_fstat), int64(fd), int64(bp))) + if ret == -int32(EBADF) && X__syscall2(tls, int64(SYS_fcntl), int64(fd), int64(Int32FromInt32(F_GETFD))) >= 0 { + ret = int32(X__syscall4(tls, int64(SYS_newfstatat), int64(fd), int64(path), int64(bp), int64(flag))) + if ret == -int32(EINVAL) { + X__procfdname(tls, bp+128, Uint32FromInt32(fd)) + ret = int32(X__syscall4(tls, int64(SYS_newfstatat), int64(-Int32FromInt32(100)), int64(bp+128), int64(bp), int64(Int32FromInt32(0)))) + } + } + } else { + ret = int32(X__syscall4(tls, int64(SYS_newfstatat), int64(fd), int64(path), int64(bp), int64(flag))) + } + if ret != 0 { + return ret + } + **(**Tstat)(__ccgo_up(st)) = Tstat{ + Fst_dev: (**(**Tkstat)(__ccgo_up(bp))).Fst_dev, + Fst_ino: (**(**Tkstat)(__ccgo_up(bp))).Fst_ino, + Fst_mode: (**(**Tkstat)(__ccgo_up(bp))).Fst_mode, + Fst_nlink: (**(**Tkstat)(__ccgo_up(bp))).Fst_nlink, + Fst_uid: (**(**Tkstat)(__ccgo_up(bp))).Fst_uid, + Fst_gid: (**(**Tkstat)(__ccgo_up(bp))).Fst_gid, + Fst_rdev: (**(**Tkstat)(__ccgo_up(bp))).Fst_rdev, + Fst_size: (**(**Tkstat)(__ccgo_up(bp))).Fst_size, + Fst_blksize: (**(**Tkstat)(__ccgo_up(bp))).Fst_blksize, + Fst_blocks: (**(**Tkstat)(__ccgo_up(bp))).Fst_blocks, + Fst_atim: Ttimespec{ + Ftv_sec: (**(**Tkstat)(__ccgo_up(bp))).Fst_atime_sec, + Ftv_nsec: (**(**Tkstat)(__ccgo_up(bp))).Fst_atime_nsec, + }, + Fst_mtim: Ttimespec{ + Ftv_sec: (**(**Tkstat)(__ccgo_up(bp))).Fst_mtime_sec, + Ftv_nsec: (**(**Tkstat)(__ccgo_up(bp))).Fst_mtime_nsec, + }, + Fst_ctim: Ttimespec{ + Ftv_sec: (**(**Tkstat)(__ccgo_up(bp))).Fst_ctime_sec, + Ftv_nsec: (**(**Tkstat)(__ccgo_up(bp))).Fst_ctime_nsec, + }, + } + return 0 +} + +func X__fstatat(tls *TLS, fd int32, path uintptr, st uintptr, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v path=%v st=%v flag=%v, (%v:)", tls, fd, path, st, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret int32 + _ = ret + if uint64(8) < uint64(8) { + ret = _fstatat_statx(tls, fd, path, st, flag) + if ret != -int32(ENOSYS) { + return int32(X__syscall_ret(tls, Uint64FromInt32(ret))) + } + } + ret = _fstatat_kstat(tls, fd, path, st, flag) + return int32(X__syscall_ret(tls, Uint64FromInt32(ret))) +} + +func Xfstatat(tls *TLS, fd int32, path uintptr, st uintptr, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v path=%v st=%v flag=%v, (%v:)", tls, fd, path, st, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fstatat(tls, fd, path, st, flag) +} + +func Xfutimens(tls *TLS, fd int32, times uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v times=%v, (%v:)", tls, fd, times, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xutimensat(tls, fd, uintptr(0), times, 0) +} + +func X__futimesat(tls *TLS, dirfd int32, pathname uintptr, times uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v dirfd=%v pathname=%v times=%v, (%v:)", tls, dirfd, pathname, times, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var i int32 + var v2 uintptr + var _ /* ts at bp+0 */ [2]Ttimespec + _, _ = i, v2 + if times != 0 { + i = 0 + for { + if !(i < int32(2)) { + break + } + if Uint64FromInt64((**(**Ttimeval)(__ccgo_up(times + uintptr(i)*16))).Ftv_usec) >= uint64(1000000) { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL)))) + } + (**(**[2]Ttimespec)(__ccgo_up(bp)))[i].Ftv_sec = (**(**Ttimeval)(__ccgo_up(times + uintptr(i)*16))).Ftv_sec + (**(**[2]Ttimespec)(__ccgo_up(bp)))[i].Ftv_nsec = (**(**Ttimeval)(__ccgo_up(times + uintptr(i)*16))).Ftv_usec * int64(1000) + goto _1 + _1: + ; + i = i + 1 + } + } + if times != 0 { + v2 = bp + } else { + v2 = uintptr(0) + } + return Xutimensat(tls, dirfd, pathname, v2, 0) +} + +func Xfutimesat(tls *TLS, dirfd int32, pathname uintptr, times uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v dirfd=%v pathname=%v times=%v, (%v:)", tls, dirfd, pathname, times, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__futimesat(tls, dirfd, pathname, times) +} + +func Xlchmod(tls *TLS, path uintptr, mode Tmode_t) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v mode=%v, (%v:)", tls, path, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfchmodat(tls, -int32(100), path, mode, int32(AT_SYMLINK_NOFOLLOW)) +} + +func Xlstat(tls *TLS, path uintptr, buf uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v buf=%v, (%v:)", tls, path, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfstatat(tls, -int32(100), path, buf, int32(AT_SYMLINK_NOFOLLOW)) +} + +func Xmkdir(tls *TLS, path uintptr, mode Tmode_t) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v mode=%v, (%v:)", tls, path, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_mkdirat), int64(-Int32FromInt32(100)), int64(path), Int64FromUint32(mode))))) +} + +func Xmkdirat(tls *TLS, fd int32, path uintptr, mode Tmode_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v path=%v mode=%v, (%v:)", tls, fd, path, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_mkdirat), int64(fd), int64(path), Int64FromUint32(mode))))) +} + +func Xmkfifo(tls *TLS, path uintptr, mode Tmode_t) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v mode=%v, (%v:)", tls, path, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xmknod(tls, path, mode|uint32(S_IFIFO), uint64(0)) +} + +func Xmkfifoat(tls *TLS, fd int32, path uintptr, mode Tmode_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v path=%v mode=%v, (%v:)", tls, fd, path, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xmknodat(tls, fd, path, mode|uint32(S_IFIFO), uint64(0)) +} + +func Xmknod(tls *TLS, path uintptr, mode Tmode_t, dev Tdev_t) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v mode=%v dev=%v, (%v:)", tls, path, mode, dev, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_mknodat), int64(-Int32FromInt32(100)), int64(path), Int64FromUint32(mode), Int64FromUint64(dev))))) +} + +func Xmknodat(tls *TLS, fd int32, path uintptr, mode Tmode_t, dev Tdev_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v path=%v mode=%v dev=%v, (%v:)", tls, fd, path, mode, dev, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_mknodat), int64(fd), int64(path), Int64FromUint32(mode), Int64FromUint64(dev))))) +} + +func Xstat(tls *TLS, path uintptr, buf uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v buf=%v, (%v:)", tls, path, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfstatat(tls, -int32(100), path, buf, 0) +} + +func ___statfs(tls *TLS, path uintptr, buf uintptr) (r int32) { + **(**Tstatfs)(__ccgo_up(buf)) = Tstatfs{} + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_statfs), int64(path), int64(buf))))) +} + +func Xfstatfs(tls *TLS, fd int32, buf uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v, (%v:)", tls, fd, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + **(**Tstatfs)(__ccgo_up(buf)) = Tstatfs{} + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_fstatfs), int64(fd), int64(buf))))) +} + +func _fixup(tls *TLS, out uintptr, in uintptr) { + var v1 uint64 + _ = v1 + **(**Tstatvfs)(__ccgo_up(out)) = Tstatvfs{} + (*Tstatvfs)(unsafe.Pointer(out)).Ff_bsize = (*Tstatfs)(unsafe.Pointer(in)).Ff_bsize + if (*Tstatfs)(unsafe.Pointer(in)).Ff_frsize != 0 { + v1 = (*Tstatfs)(unsafe.Pointer(in)).Ff_frsize + } else { + v1 = (*Tstatfs)(unsafe.Pointer(in)).Ff_bsize + } + (*Tstatvfs)(unsafe.Pointer(out)).Ff_frsize = v1 + (*Tstatvfs)(unsafe.Pointer(out)).Ff_blocks = (*Tstatfs)(unsafe.Pointer(in)).Ff_blocks + (*Tstatvfs)(unsafe.Pointer(out)).Ff_bfree = (*Tstatfs)(unsafe.Pointer(in)).Ff_bfree + (*Tstatvfs)(unsafe.Pointer(out)).Ff_bavail = (*Tstatfs)(unsafe.Pointer(in)).Ff_bavail + (*Tstatvfs)(unsafe.Pointer(out)).Ff_files = (*Tstatfs)(unsafe.Pointer(in)).Ff_files + (*Tstatvfs)(unsafe.Pointer(out)).Ff_ffree = (*Tstatfs)(unsafe.Pointer(in)).Ff_ffree + (*Tstatvfs)(unsafe.Pointer(out)).Ff_favail = (*Tstatfs)(unsafe.Pointer(in)).Ff_ffree + (*Tstatvfs)(unsafe.Pointer(out)).Ff_fsid = Uint64FromInt32(**(**int32)(__ccgo_up(in + 56))) + (*Tstatvfs)(unsafe.Pointer(out)).Ff_flag = (*Tstatfs)(unsafe.Pointer(in)).Ff_flags + (*Tstatvfs)(unsafe.Pointer(out)).Ff_namemax = (*Tstatfs)(unsafe.Pointer(in)).Ff_namelen + (*Tstatvfs)(unsafe.Pointer(out)).Ff_type = uint32((*Tstatfs)(unsafe.Pointer(in)).Ff_type) +} + +func Xstatvfs(tls *TLS, path uintptr, buf uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v buf=%v, (%v:)", tls, path, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(128) + defer tls.Free(128) + var _ /* kbuf at bp+0 */ Tstatfs + if ___statfs(tls, path, bp) < 0 { + return -int32(1) + } + _fixup(tls, buf, bp) + return 0 +} + +func Xfstatvfs(tls *TLS, fd int32, buf uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v, (%v:)", tls, fd, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(128) + defer tls.Free(128) + var _ /* kbuf at bp+0 */ Tstatfs + if Xfstatfs(tls, fd, bp) < 0 { + return -int32(1) + } + _fixup(tls, buf, bp) + return 0 +} + +func Xumask(tls *TLS, mode Tmode_t) (r Tmode_t) { + if __ccgo_strace { + trc("tls=%v mode=%v, (%v:)", tls, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Uint32FromInt64(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_umask), Int64FromUint32(mode))))) +} + +func Xutimensat(tls *TLS, fd int32, path uintptr, times uintptr, flags int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v path=%v times=%v flags=%v, (%v:)", tls, fd, path, times, flags, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + if times != 0 && (**(**Ttimespec)(__ccgo_up(times))).Ftv_nsec == int64(UTIME_NOW) && (**(**Ttimespec)(__ccgo_up(times + 1*16))).Ftv_nsec == int64(UTIME_NOW) { + times = uintptr(0) + } + r = int32(X__syscall4(tls, int64(SYS_utimensat), int64(fd), int64(path), int64(times), int64(flags))) + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func X__fclose_ca(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return (*(*func(*TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fclose1})))(tls, f) +} + +func X__fdopen(tls *TLS, fd int32, mode uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v fd=%v mode=%v, (%v:)", tls, fd, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var f, v1 uintptr + var flags, v2 int32 + var _ /* wsz at bp+0 */ Twinsize + _, _, _, _ = f, flags, v1, v2 + /* Check for valid initial mode character */ + if !(Xstrchr(tls, __ccgo_ts+1543, Int32FromUint8(**(**uint8)(__ccgo_up(mode)))) != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(0) + } + /* Allocate FILE+buffer or fail */ + v1 = Xmalloc(tls, Uint64FromInt64(232)+Uint64FromInt32(UNGET)+Uint64FromInt32(BUFSIZ)) + f = v1 + if !(v1 != 0) { + return uintptr(0) + } + /* Zero-fill only the struct, not the buffer */ + Xmemset(tls, f, 0, uint64(232)) + /* Impose mode restrictions */ + if !(Xstrchr(tls, mode, int32('+')) != 0) { + if Int32FromUint8(**(**uint8)(__ccgo_up(mode))) == int32('r') { + v2 = int32(F_NOWR) + } else { + v2 = int32(F_NORD) + } + (*TFILE)(unsafe.Pointer(f)).Fflags = Uint32FromInt32(v2) + } + /* Apply close-on-exec flag */ + if Xstrchr(tls, mode, int32('e')) != 0 { + X__syscall3(tls, int64(SYS_fcntl), int64(fd), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + } + /* Set append mode on fd if opened for append */ + if Int32FromUint8(**(**uint8)(__ccgo_up(mode))) == int32('a') { + flags = int32(X__syscall2(tls, int64(SYS_fcntl), int64(fd), int64(Int32FromInt32(F_GETFL)))) + if !(flags&Int32FromInt32(O_APPEND) != 0) { + X__syscall3(tls, int64(SYS_fcntl), int64(fd), int64(Int32FromInt32(F_SETFL)), int64(flags|Int32FromInt32(O_APPEND))) + } + **(**uint32)(__ccgo_up(f)) |= uint32(F_APP) + } + (*TFILE)(unsafe.Pointer(f)).Ffd = fd + (*TFILE)(unsafe.Pointer(f)).Fbuf = f + uintptr(232) + uintptr(UNGET) + (*TFILE)(unsafe.Pointer(f)).Fbuf_size = uint64(BUFSIZ) + /* Activate line buffered mode for terminals */ + (*TFILE)(unsafe.Pointer(f)).Flbf = -int32(1) + if !((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_NOWR) != 0) && !(X__syscall3(tls, int64(SYS_ioctl), int64(fd), int64(Int32FromInt32(TIOCGWINSZ)), int64(bp)) != 0) { + (*TFILE)(unsafe.Pointer(f)).Flbf = int32('\n') + } + /* Initialize op ptrs. No problem if some are unneeded. */ + (*TFILE)(unsafe.Pointer(f)).Fread = __ccgo_fp(X__stdio_read) + (*TFILE)(unsafe.Pointer(f)).Fwrite = __ccgo_fp(X__stdio_write) + (*TFILE)(unsafe.Pointer(f)).Fseek = __ccgo_fp(X__stdio_seek) + (*TFILE)(unsafe.Pointer(f)).Fclose1 = __ccgo_fp(X__stdio_close) + if !(X__libc.Fthreaded != 0) { + AtomicStorePInt32(f+140, -int32(1)) + } + /* Add new FILE to open file list */ + return X__ofl_add(tls, f) +} + +func Xfdopen(tls *TLS, fd int32, mode uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v fd=%v mode=%v, (%v:)", tls, fd, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fdopen(tls, fd, mode) +} + +func X__fmodeflags(tls *TLS, mode uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v mode=%v, (%v:)", tls, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + var flags int32 + _ = flags + if Xstrchr(tls, mode, int32('+')) != 0 { + flags = int32(O_RDWR) + } else { + if Int32FromUint8(**(**uint8)(__ccgo_up(mode))) == int32('r') { + flags = O_RDONLY + } else { + flags = int32(O_WRONLY) + } + } + if Xstrchr(tls, mode, int32('x')) != 0 { + flags = flags | int32(O_EXCL) + } + if Xstrchr(tls, mode, int32('e')) != 0 { + flags = flags | int32(O_CLOEXEC) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(mode))) != int32('r') { + flags = flags | int32(O_CREAT) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(mode))) == int32('w') { + flags = flags | int32(O_TRUNC) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(mode))) == int32('a') { + flags = flags | int32(O_APPEND) + } + return flags +} + +func X__fopen_rb_ca(tls *TLS, filename uintptr, f uintptr, buf uintptr, len1 Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v filename=%v f=%v buf=%v len1=%v, (%v:)", tls, filename, f, buf, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + Xmemset(tls, f, 0, uint64(232)) + (*TFILE)(unsafe.Pointer(f)).Ffd = int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_openat), int64(-Int32FromInt32(100)), int64(filename), int64(Int32FromInt32(O_RDONLY)|Int32FromInt32(O_CLOEXEC)|Int32FromInt32(O_LARGEFILE)))))) + if (*TFILE)(unsafe.Pointer(f)).Ffd < 0 { + return uintptr(0) + } + X__syscall3(tls, int64(SYS_fcntl), int64((*TFILE)(unsafe.Pointer(f)).Ffd), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + (*TFILE)(unsafe.Pointer(f)).Fflags = Uint32FromInt32(Int32FromInt32(F_NOWR) | Int32FromInt32(F_PERM)) + (*TFILE)(unsafe.Pointer(f)).Fbuf = buf + uintptr(UNGET) + (*TFILE)(unsafe.Pointer(f)).Fbuf_size = len1 - uint64(UNGET) + (*TFILE)(unsafe.Pointer(f)).Fread = __ccgo_fp(X__stdio_read) + (*TFILE)(unsafe.Pointer(f)).Fseek = __ccgo_fp(X__stdio_seek) + (*TFILE)(unsafe.Pointer(f)).Fclose1 = __ccgo_fp(X__stdio_close) + AtomicStorePInt32(f+140, -int32(1)) + return f +} + +func X__overflow(tls *TLS, f uintptr, _c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v _c=%v, (%v:)", tls, f, _c, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uint8 + var v2, v3 uintptr + var _ /* c at bp+0 */ uint8 + _, _, _ = v1, v2, v3 + **(**uint8)(__ccgo_up(bp)) = Uint8FromInt32(_c) + if !((*TFILE)(unsafe.Pointer(f)).Fwend != 0) && X__towrite(tls, f) != 0 { + return -int32(1) + } + if (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwend && Int32FromUint8(**(**uint8)(__ccgo_up(bp))) != (*TFILE)(unsafe.Pointer(f)).Flbf { + v1 = **(**uint8)(__ccgo_up(bp)) + v3 = f + 40 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + **(**uint8)(__ccgo_up(v2)) = v1 + return Int32FromUint8(v1) + } + if (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tsize_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fwrite})))(tls, f, bp, uint64(1)) != uint64(1) { + return -int32(1) + } + return Int32FromUint8(**(**uint8)(__ccgo_up(bp))) +} + +func _dummy9(tls *TLS, fd int32) (r int32) { + return fd +} + +func X__stdio_close(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_close), int64(_dummy9(tls, (*TFILE)(unsafe.Pointer(f)).Ffd)))))) +} + +var _dummy_file = uintptr(0) + +func _close_file(tls *TLS, f uintptr) { + if !(f != 0) { + return + } + if AtomicLoadPInt32(f+140) >= 0 { + ___lockfile(tls, f) + } + if (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwbase { + (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tsize_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fwrite})))(tls, f, uintptr(0), uint64(0)) + } + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + (*(*func(*TLS, uintptr, Toff_t, int32) Toff_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fseek})))(tls, f, int64((*TFILE)(unsafe.Pointer(f)).Frpos)-int64((*TFILE)(unsafe.Pointer(f)).Frend), int32(1)) + } +} + +func X__stdio_exit(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + var f uintptr + _ = f + f = **(**uintptr)(__ccgo_up(X__ofl_lock(tls))) + for { + if !(f != 0) { + break + } + _close_file(tls, f) + goto _1 + _1: + ; + f = (*TFILE)(unsafe.Pointer(f)).Fnext + } + _close_file(tls, AtomicLoadPUintptr(uintptr(unsafe.Pointer(&X__stdin_used)))) + _close_file(tls, AtomicLoadPUintptr(uintptr(unsafe.Pointer(&X__stdout_used)))) + _close_file(tls, AtomicLoadPUintptr(uintptr(unsafe.Pointer(&X__stderr_used)))) +} + +func X__stdio_exit_needed(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + X__stdio_exit(tls) +} + +func X__stdio_read(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v f=%v buf=%v len1=%v, (%v:)", tls, f, buf, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var cnt Tssize_t + var v1 int64 + var v2 int32 + var v3, v4 uintptr + var _ /* iov at bp+0 */ [2]Tiovec + _, _, _, _, _ = cnt, v1, v2, v3, v4 + **(**[2]Tiovec)(__ccgo_up(bp)) = [2]Tiovec{ + 0: { + Fiov_base: buf, + Fiov_len: len1 - BoolUint64(!!((*TFILE)(unsafe.Pointer(f)).Fbuf_size != 0)), + }, + 1: { + Fiov_base: (*TFILE)(unsafe.Pointer(f)).Fbuf, + Fiov_len: (*TFILE)(unsafe.Pointer(f)).Fbuf_size, + }, + } + if (**(**[2]Tiovec)(__ccgo_up(bp)))[0].Fiov_len != 0 { + v1 = X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_readv), int64((*TFILE)(unsafe.Pointer(f)).Ffd), int64(bp), int64(Int32FromInt32(2))))) + } else { + v1 = X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_read), int64((*TFILE)(unsafe.Pointer(f)).Ffd), int64((**(**[2]Tiovec)(__ccgo_up(bp)))[int32(1)].Fiov_base), Int64FromUint64((**(**[2]Tiovec)(__ccgo_up(bp)))[int32(1)].Fiov_len)))) + } + cnt = v1 + if cnt <= 0 { + if cnt != 0 { + v2 = int32(F_ERR) + } else { + v2 = int32(F_EOF) + } + **(**uint32)(__ccgo_up(f)) |= Uint32FromInt32(v2) + return uint64(0) + } + if Uint64FromInt64(cnt) <= (**(**[2]Tiovec)(__ccgo_up(bp)))[0].Fiov_len { + return Uint64FromInt64(cnt) + } + cnt = Int64FromUint64(uint64(cnt) - (**(**[2]Tiovec)(__ccgo_up(bp)))[0].Fiov_len) + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Frend = (*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr(cnt) + if (*TFILE)(unsafe.Pointer(f)).Fbuf_size != 0 { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + **(**uint8)(__ccgo_up(buf + uintptr(len1-uint64(1)))) = **(**uint8)(__ccgo_up(v3)) + } + return len1 +} + +func X__stdio_seek(tls *TLS, f uintptr, off Toff_t, whence int32) (r Toff_t) { + if __ccgo_strace { + trc("tls=%v f=%v off=%v whence=%v, (%v:)", tls, f, off, whence, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lseek(tls, (*TFILE)(unsafe.Pointer(f)).Ffd, off, whence) +} + +func X__stdio_write(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v f=%v buf=%v len1=%v, (%v:)", tls, f, buf, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var cnt Tssize_t + var iov, v2, v3 uintptr + var iovcnt int32 + var rem Tsize_t + var v5 uint64 + var _ /* iovs at bp+0 */ [2]Tiovec + _, _, _, _, _, _, _ = cnt, iov, iovcnt, rem, v2, v3, v5 + **(**[2]Tiovec)(__ccgo_up(bp)) = [2]Tiovec{ + 0: { + Fiov_base: (*TFILE)(unsafe.Pointer(f)).Fwbase, + Fiov_len: Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Fwpos) - int64((*TFILE)(unsafe.Pointer(f)).Fwbase)), + }, + 1: { + Fiov_base: buf, + Fiov_len: len1, + }, + } + iov = bp + rem = (**(**Tiovec)(__ccgo_up(iov))).Fiov_len + (**(**Tiovec)(__ccgo_up(iov + 1*16))).Fiov_len + iovcnt = int32(2) + for { + cnt = X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_writev), int64((*TFILE)(unsafe.Pointer(f)).Ffd), int64(iov), int64(iovcnt)))) + if Uint64FromInt64(cnt) == rem { + (*TFILE)(unsafe.Pointer(f)).Fwend = (*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr((*TFILE)(unsafe.Pointer(f)).Fbuf_size) + v2 = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Fwbase = v2 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v2 + return len1 + } + if cnt < 0 { + v3 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Fwend = v3 + v2 = v3 + (*TFILE)(unsafe.Pointer(f)).Fwbase = v2 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v2 + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) + if iovcnt == int32(2) { + v5 = uint64(0) + } else { + v5 = len1 - (**(**Tiovec)(__ccgo_up(iov))).Fiov_len + } + return v5 + } + rem = rem - Uint64FromInt64(cnt) + if Uint64FromInt64(cnt) > (**(**Tiovec)(__ccgo_up(iov))).Fiov_len { + cnt = Int64FromUint64(uint64(cnt) - (**(**Tiovec)(__ccgo_up(iov))).Fiov_len) + iov += 16 + iovcnt = iovcnt - 1 + } + (**(**Tiovec)(__ccgo_up(iov))).Fiov_base = (**(**Tiovec)(__ccgo_up(iov))).Fiov_base + uintptr(cnt) + (**(**Tiovec)(__ccgo_up(iov))).Fiov_len -= Uint64FromInt64(cnt) + goto _1 + _1: + } + return r +} + +func X__stdout_write(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v f=%v buf=%v len1=%v, (%v:)", tls, f, buf, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* wsz at bp+0 */ Twinsize + (*TFILE)(unsafe.Pointer(f)).Fwrite = __ccgo_fp(X__stdio_write) + if !((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_SVB) != 0) && X__syscall3(tls, int64(SYS_ioctl), int64((*TFILE)(unsafe.Pointer(f)).Ffd), int64(Int32FromInt32(TIOCGWINSZ)), int64(bp)) != 0 { + (*TFILE)(unsafe.Pointer(f)).Flbf = -int32(1) + } + return X__stdio_write(tls, f, buf, len1) +} + +func X__toread(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1, v2 uintptr + var v4 int32 + _, _, _ = v1, v2, v4 + **(**int32)(__ccgo_up(f + 136)) |= (*TFILE)(unsafe.Pointer(f)).Fmode - int32(1) + if (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwbase { + (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tsize_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fwrite})))(tls, f, uintptr(0), uint64(0)) + } + v2 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Fwend = v2 + v1 = v2 + (*TFILE)(unsafe.Pointer(f)).Fwbase = v1 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v1 + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_NORD) != 0 { + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) + return -int32(1) + } + v1 = (*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr((*TFILE)(unsafe.Pointer(f)).Fbuf_size) + (*TFILE)(unsafe.Pointer(f)).Frend = v1 + (*TFILE)(unsafe.Pointer(f)).Frpos = v1 + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_EOF) != 0 { + v4 = -int32(1) + } else { + v4 = 0 + } + return v4 +} + +func X__toread_needs_stdio_exit(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + X__stdio_exit_needed(tls) +} + +func X__towrite(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 uintptr + _ = v1 + **(**int32)(__ccgo_up(f + 136)) |= (*TFILE)(unsafe.Pointer(f)).Fmode - int32(1) + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_NOWR) != 0 { + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) + return -int32(1) + } + /* Clear read buffer (easier than summoning nasal demons) */ + v1 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Frend = v1 + (*TFILE)(unsafe.Pointer(f)).Frpos = v1 + /* Activate write through the buffer. */ + v1 = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Fwbase = v1 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v1 + (*TFILE)(unsafe.Pointer(f)).Fwend = (*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr((*TFILE)(unsafe.Pointer(f)).Fbuf_size) + return 0 +} + +func X__towrite_needs_stdio_exit(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + X__stdio_exit_needed(tls) +} + +/* This function assumes it will never be called if there is already + * data buffered for reading. */ + +func X__uflow(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* c at bp+0 */ uint8 + if !(X__toread(tls, f) != 0) && (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tsize_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fread})))(tls, f, bp, uint64(1)) == uint64(1) { + return Int32FromUint8(**(**uint8)(__ccgo_up(bp))) + } + return -int32(1) +} + +func Xasprintf(tls *TLS, s uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v va=%v, (%v:)", tls, s, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvasprintf(tls, s, fmt, ap) + _ = ap + return ret +} + +func Xclearerr(tls *TLS, f uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } + var __need_unlock, v1 int32 + _, _ = __need_unlock, v1 + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + **(**uint32)(__ccgo_up(f)) &= Uint32FromInt32(^(Int32FromInt32(F_EOF) | Int32FromInt32(F_ERR))) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } +} + +func Xclearerr_unlocked(tls *TLS, f uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } + Xclearerr(tls, f) +} + +func Xdprintf(tls *TLS, fd int32, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v fmt=%v va=%v, (%v:)", tls, fd, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvdprintf(tls, fd, fmt, ap) + _ = ap + return ret +} + +const FSETLOCKING_BYCALLER = 2 +const FSETLOCKING_INTERNAL = 1 +const FSETLOCKING_QUERY = 0 + +func X_flushlbf(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + Xfflush(tls, uintptr(0)) +} + +func X__fsetlocking(tls *TLS, f uintptr, type1 int32) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v type1=%v, (%v:)", tls, f, type1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return 0 +} + +func X__fwriting(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32((*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_NORD) != 0 || (*TFILE)(unsafe.Pointer(f)).Fwend != 0) +} + +func X__freading(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32((*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_NOWR) != 0 || (*TFILE)(unsafe.Pointer(f)).Frend != 0) +} + +func X__freadable(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(!((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_NORD) != 0)) +} + +func X__fwritable(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(!((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_NOWR) != 0)) +} + +func X__flbf(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32((*TFILE)(unsafe.Pointer(f)).Flbf >= 0) +} + +func X__fbufsize(tls *TLS, f uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return (*TFILE)(unsafe.Pointer(f)).Fbuf_size +} + +func X__fpending(tls *TLS, f uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int64 + _ = v1 + if (*TFILE)(unsafe.Pointer(f)).Fwend != 0 { + v1 = int64((*TFILE)(unsafe.Pointer(f)).Fwpos) - int64((*TFILE)(unsafe.Pointer(f)).Fwbase) + } else { + v1 = 0 + } + return Uint64FromInt64(v1) +} + +func X__fpurge(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1, v2 uintptr + _, _ = v1, v2 + if !(f != 0) { // libbsd fpurge test fails w/o this. + return int32(1) + } + v2 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Fwend = v2 + v1 = v2 + (*TFILE)(unsafe.Pointer(f)).Fwbase = v1 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v1 + v1 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Frend = v1 + (*TFILE)(unsafe.Pointer(f)).Frpos = v1 + return 0 +} + +func Xfpurge(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fpurge(tls, f) +} + +func X__freadahead(tls *TLS, f uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int64 + _ = v1 + if (*TFILE)(unsafe.Pointer(f)).Frend != 0 { + v1 = int64((*TFILE)(unsafe.Pointer(f)).Frend) - int64((*TFILE)(unsafe.Pointer(f)).Frpos) + } else { + v1 = 0 + } + return Uint64FromInt64(v1) +} + +func X__freadptr(tls *TLS, f uintptr, sizep uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v sizep=%v, (%v:)", tls, f, sizep, origin(2)) + defer func() { trc("-> %v", r) }() + } + if (*TFILE)(unsafe.Pointer(f)).Frpos == (*TFILE)(unsafe.Pointer(f)).Frend { + return uintptr(0) + } + **(**Tsize_t)(__ccgo_up(sizep)) = Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Frend) - int64((*TFILE)(unsafe.Pointer(f)).Frpos)) + return (*TFILE)(unsafe.Pointer(f)).Frpos +} + +func X__freadptrinc(tls *TLS, f uintptr, inc Tsize_t) { + if __ccgo_strace { + trc("tls=%v f=%v inc=%v, (%v:)", tls, f, inc, origin(2)) + } + **(**uintptr)(__ccgo_up(f + 8)) += uintptr(inc) +} + +func X__fseterr(tls *TLS, f uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) +} + +func _dummy10(tls *TLS, f uintptr) { +} + +func Xfclose(tls *TLS, f uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var __need_unlock, r, v1 int32 + var head uintptr + _, _, _, _ = __need_unlock, head, r, v1 + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + r = Xfflush(tls, f) + r = r | (*(*func(*TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fclose1})))(tls, f) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + /* Past this point, f is closed and any further explict access + * to it is undefined. However, it still exists as an entry in + * the open file list and possibly in the thread's locked files + * list, if it was closed while explicitly locked. Functions + * which process these lists must tolerate dead FILE objects + * (which necessarily have inactive buffer pointers) without + * producing any side effects. */ + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_PERM) != 0 { + return r + } + X__unlist_locked_file(tls, f) + head = X__ofl_lock(tls) + if (*TFILE)(unsafe.Pointer(f)).Fprev != 0 { + (*TFILE)(unsafe.Pointer((*TFILE)(unsafe.Pointer(f)).Fprev)).Fnext = (*TFILE)(unsafe.Pointer(f)).Fnext + } + if (*TFILE)(unsafe.Pointer(f)).Fnext != 0 { + (*TFILE)(unsafe.Pointer((*TFILE)(unsafe.Pointer(f)).Fnext)).Fprev = (*TFILE)(unsafe.Pointer(f)).Fprev + } + if **(**uintptr)(__ccgo_up(head)) == f { + **(**uintptr)(__ccgo_up(head)) = (*TFILE)(unsafe.Pointer(f)).Fnext + } + X__ofl_unlock(tls) + Xfree(tls, (*TFILE)(unsafe.Pointer(f)).Fgetln_buf) + Xfree(tls, f) + return r +} + +func Xfeof(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, ret, v1 int32 + _, _, _ = __need_unlock, ret, v1 + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + ret = BoolInt32(!!((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_EOF) != 0)) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return ret +} + +func X_IO_feof_unlocked(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfeof(tls, f) +} + +func Xfeof_unlocked(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfeof(tls, f) +} + +func Xferror(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, ret, v1 int32 + _, _, _ = __need_unlock, ret, v1 + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + ret = BoolInt32(!!((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_ERR) != 0)) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return ret +} + +func X_IO_ferror_unlocked(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xferror(tls, f) +} + +func Xferror_unlocked(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xferror(tls, f) +} + +// C documentation +// +// /* stdout.c will override this if linked */ +var _dummy11 = uintptr(0) + +func Xfflush(tls *TLS, f uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var __need_unlock, __need_unlock1, r, v2 int32 + var v4, v5 uintptr + _, _, _, _, _, _ = __need_unlock, __need_unlock1, r, v2, v4, v5 + if !(f != 0) { + r = 0 + if AtomicLoadPUintptr(uintptr(unsafe.Pointer(&X__stdout_used))) != 0 { + r = r | Xfflush(tls, AtomicLoadPUintptr(uintptr(unsafe.Pointer(&X__stdout_used)))) + } + if AtomicLoadPUintptr(uintptr(unsafe.Pointer(&X__stderr_used))) != 0 { + r = r | Xfflush(tls, AtomicLoadPUintptr(uintptr(unsafe.Pointer(&X__stderr_used)))) + } + f = **(**uintptr)(__ccgo_up(X__ofl_lock(tls))) + for { + if !(f != 0) { + break + } + if AtomicLoadPInt32(f+140) >= 0 { + v2 = ___lockfile(tls, f) + } else { + v2 = 0 + } + __need_unlock = v2 + if (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwbase { + r = r | Xfflush(tls, f) + } + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + goto _1 + _1: + ; + f = (*TFILE)(unsafe.Pointer(f)).Fnext + } + X__ofl_unlock(tls) + return r + } + if AtomicLoadPInt32(f+140) >= 0 { + v2 = ___lockfile(tls, f) + } else { + v2 = 0 + } + __need_unlock1 = v2 + /* If writing, flush output */ + if (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwbase { + (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tsize_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fwrite})))(tls, f, uintptr(0), uint64(0)) + if !((*TFILE)(unsafe.Pointer(f)).Fwpos != 0) { + if __need_unlock1 != 0 { + ___unlockfile(tls, f) + } + return -int32(1) + } + } + /* If reading, sync position, per POSIX */ + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + (*(*func(*TLS, uintptr, Toff_t, int32) Toff_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fseek})))(tls, f, int64((*TFILE)(unsafe.Pointer(f)).Frpos)-int64((*TFILE)(unsafe.Pointer(f)).Frend), int32(1)) + } + /* Clear read and write modes */ + v5 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Fwend = v5 + v4 = v5 + (*TFILE)(unsafe.Pointer(f)).Fwbase = v4 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v4 + v4 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Frend = v4 + (*TFILE)(unsafe.Pointer(f)).Frpos = v4 + if __need_unlock1 != 0 { + ___unlockfile(tls, f) + } + return 0 +} + +func Xfflush_unlocked(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfflush(tls, f) +} + +func _locking_getc(tls *TLS, f uintptr) (r int32) { + var c, old, old1, v1, v10, v13, v3, v7 int32 + var v12, v4, v5, v6 uintptr + _, _, _, _, _, _, _, _, _, _, _, _ = c, old, old1, v1, v10, v12, v13, v3, v4, v5, v6, v7 + // __asm__ __volatile__ ( + // + // "\n1: lr.w.aqrl %0, (%2)\n bne %0, %3, 1f\n sc.w.aqrl %1, %4, (%2)\n bnez %1, 1b\n1:" + // : "=&r"(old), "=&r"(tmp) + // : "r"(p), "r"((long)t), "r"((long)s) + // : "memory"); + X__assert_fail(tls, __ccgo_ts+353, __ccgo_ts+388, 11, __ccgo_ts+1547) + v1 = old + goto _2 +_2: + if v1 != 0 { + ___lockfile(tls, f) + } + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + v5 = f + 8 + v4 = *(*uintptr)(unsafe.Pointer(v5)) + *(*uintptr)(unsafe.Pointer(v5)) = *(*uintptr)(unsafe.Pointer(v5)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v4))) + } else { + v1 = X__uflow(tls, f) + } + c = v1 + v6 = f + 140 + for { + old1 = AtomicLoadPInt32(v6) + goto _9 + _9: + ; + // __asm__ __volatile__ ( + // + // "\n1: lr.w.aqrl %0, (%2)\n bne %0, %3, 1f\n sc.w.aqrl %1, %4, (%2)\n bnez %1, 1b\n1:" + // : "=&r"(old), "=&r"(tmp) + // : "r"(p), "r"((long)t), "r"((long)s) + // : "memory"); + X__assert_fail(tls, __ccgo_ts+353, __ccgo_ts+388, 11, __ccgo_ts+1547) + v3 = old + goto _8 + _8: + ; + if !(v3 != old1) { + break + } + } + v7 = old1 + goto _11 +_11: + if v7&int32(MAYBE_WAITERS) != 0 { + v12 = f + 140 + v10 = int32(1) + v13 = int32(1) + if v13 != 0 { + v13 = int32(FUTEX_PRIVATE) + } + if v10 < Int32FromInt32(0) { + v10 = int32(INT_MAX) + } + _ = X__syscall3(tls, int64(SYS_futex), int64(v12), int64(Int32FromInt32(FUTEX_WAKE)|v13), int64(v10)) != int64(-int32(ENOSYS)) || X__syscall3(tls, int64(SYS_futex), int64(v12), int64(Int32FromInt32(FUTEX_WAKE)), int64(v10)) != 0 + } + return c +} + +func Xfgetc(tls *TLS, f1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f1=%v, (%v:)", tls, f1, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l, v2, v4 int32 + var v1, v5, v6 uintptr + _, _, _, _, _, _ = l, v1, v2, v4, v5, v6 + v1 = f1 + l = AtomicLoadPInt32(v1 + 140) + if l < 0 || l != 0 && l & ^Int32FromInt32(MAYBE_WAITERS) == (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Ftid { + if (*TFILE)(unsafe.Pointer(v1)).Frpos != (*TFILE)(unsafe.Pointer(v1)).Frend { + v6 = v1 + 8 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + v4 = Int32FromUint8(**(**uint8)(__ccgo_up(v5))) + } else { + v4 = X__uflow(tls, v1) + } + v2 = v4 + goto _3 + } + v2 = _locking_getc(tls, v1) + goto _3 +_3: + return v2 +} + +func Xfgetln(tls *TLS, f uintptr, plen uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v plen=%v, (%v:)", tls, f, plen, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var __need_unlock, v1, v2 int32 + var l, v8 Tssize_t + var ret, z, v3, v4 uintptr + var v6 bool + _, _, _, _, _, _, _, _, _, _ = __need_unlock, l, ret, z, v1, v2, v3, v4, v6, v8 + ret = uintptr(0) + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v2 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v2 = X__uflow(tls, f) + } + Xungetc(tls, v2, f) + if v6 = (*TFILE)(unsafe.Pointer(f)).Frend != 0; v6 { + v3 = Xmemchr(tls, (*TFILE)(unsafe.Pointer(f)).Frpos, int32('\n'), Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Frend)-int64((*TFILE)(unsafe.Pointer(f)).Frpos))) + z = v3 + } + if v6 && v3 != 0 { + ret = (*TFILE)(unsafe.Pointer(f)).Frpos + z = z + 1 + v3 = z + **(**Tsize_t)(__ccgo_up(plen)) = Uint64FromInt64(int64(v3) - int64(ret)) + (*TFILE)(unsafe.Pointer(f)).Frpos = z + } else { + *(*[1]Tsize_t)(unsafe.Pointer(bp)) = [1]Tsize_t{} + v8 = Xgetline(tls, f+168, bp, f) + l = v8 + if v8 > 0 { + **(**Tsize_t)(__ccgo_up(plen)) = Uint64FromInt64(l) + ret = (*TFILE)(unsafe.Pointer(f)).Fgetln_buf + } + } + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return ret +} + +func Xfgetpos(tls *TLS, f uintptr, pos uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v pos=%v, (%v:)", tls, f, pos, origin(2)) + defer func() { trc("-> %v", r) }() + } + var off Toff_t + _ = off + off = X__ftello(tls, f) + if off < 0 { + return -int32(1) + } + **(**int64)(__ccgo_up(pos)) = off + return 0 +} + +func Xfgets(tls *TLS, s uintptr, n int32, f uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v f=%v, (%v:)", tls, s, n, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, c, v1, v4 int32 + var k Tsize_t + var p, z, v6, v7 uintptr + var v2 int64 + var v3 uint64 + var v8 uint8 + _, _, _, _, _, _, _, _, _, _, _, _ = __need_unlock, c, k, p, z, v1, v2, v3, v4, v6, v7, v8 + p = s + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + if n <= int32(1) { + **(**int32)(__ccgo_up(f + 136)) |= (*TFILE)(unsafe.Pointer(f)).Fmode - int32(1) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + if n < int32(1) { + return uintptr(0) + } + **(**uint8)(__ccgo_up(s)) = uint8(0) + return s + } + n = n - 1 + for n != 0 { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + z = Xmemchr(tls, (*TFILE)(unsafe.Pointer(f)).Frpos, int32('\n'), Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Frend)-int64((*TFILE)(unsafe.Pointer(f)).Frpos))) + if z != 0 { + v2 = int64(z) - int64((*TFILE)(unsafe.Pointer(f)).Frpos) + int64(1) + } else { + v2 = int64((*TFILE)(unsafe.Pointer(f)).Frend) - int64((*TFILE)(unsafe.Pointer(f)).Frpos) + } + k = Uint64FromInt64(v2) + if k < Uint64FromInt32(n) { + v3 = k + } else { + v3 = Uint64FromInt32(n) + } + k = v3 + Xmemcpy(tls, p, (*TFILE)(unsafe.Pointer(f)).Frpos, k) + **(**uintptr)(__ccgo_up(f + 8)) += uintptr(k) + p = p + uintptr(k) + n = Int32FromUint64(uint64(n) - k) + if z != 0 || !(n != 0) { + break + } + } + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + v7 = f + 8 + v6 = *(*uintptr)(unsafe.Pointer(v7)) + *(*uintptr)(unsafe.Pointer(v7)) = *(*uintptr)(unsafe.Pointer(v7)) + 1 + v4 = Int32FromUint8(**(**uint8)(__ccgo_up(v6))) + } else { + v4 = X__uflow(tls, f) + } + v1 = v4 + c = v1 + if v1 < 0 { + if p == s || !((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_EOF) != 0) { + s = uintptr(0) + } + break + } + n = n - 1 + v8 = Uint8FromInt32(c) + v6 = p + p = p + 1 + **(**uint8)(__ccgo_up(v6)) = v8 + if Int32FromUint8(v8) == int32('\n') { + break + } + } + if s != 0 { + **(**uint8)(__ccgo_up(p)) = uint8(0) + } + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return s +} + +func Xfgets_unlocked(tls *TLS, s uintptr, n int32, f uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v f=%v, (%v:)", tls, s, n, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfgets(tls, s, n, f) +} + +func ___fgetwc_unlocked_internal(tls *TLS, f uintptr) (r Twint_t) { + bp := tls.Alloc(32) + defer tls.Free(32) + var c, first, v1, v2 int32 + var l Tsize_t + var v3, v4 uintptr + var _ /* b at bp+16 */ uint8 + var _ /* st at bp+8 */ Tmbstate_t + var _ /* wc at bp+0 */ Twchar_t + _, _, _, _, _, _, _ = c, first, l, v1, v2, v3, v4 + /* Convert character from buffer if possible */ + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + l = Uint64FromInt32(Xmbtowc(tls, bp, (*TFILE)(unsafe.Pointer(f)).Frpos, Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Frend)-int64((*TFILE)(unsafe.Pointer(f)).Frpos)))) + if l+uint64(1) >= uint64(1) { + **(**uintptr)(__ccgo_up(f + 8)) += uintptr(l + BoolUint64(!(l != 0))) /* l==0 means 1 byte, null */ + return Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp))) + } + } + /* Convert character byte-by-byte */ + **(**Tmbstate_t)(__ccgo_up(bp + 8)) = Tmbstate_t{} + first = int32(1) + for cond := true; cond; cond = l == Uint64FromInt32(-Int32FromInt32(2)) { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v2 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v2 = X__uflow(tls, f) + } + v1 = v2 + c = v1 + **(**uint8)(__ccgo_up(bp + 16)) = Uint8FromInt32(v1) + if c < 0 { + if !(first != 0) { + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EILSEQ) + } + return uint32(0xffffffff) + } + l = Xmbrtowc(tls, bp, bp+16, uint64(1), bp+8) + if l == Uint64FromInt32(-Int32FromInt32(1)) { + if !(first != 0) { + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) + Xungetc(tls, Int32FromUint8(**(**uint8)(__ccgo_up(bp + 16))), f) + } + return uint32(0xffffffff) + } + first = 0 + } + return Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp))) +} + +func X__fgetwc_unlocked(tls *TLS, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var loc Tlocale_t + var ploc uintptr + var wc Twchar_t + _, _, _ = loc, ploc, wc + ploc = uintptr(___get_tp(tls)) + 152 + loc = **(**Tlocale_t)(__ccgo_up(ploc)) + if (*TFILE)(unsafe.Pointer(f)).Fmode <= 0 { + Xfwide(tls, f, int32(1)) + } + **(**Tlocale_t)(__ccgo_up(ploc)) = (*TFILE)(unsafe.Pointer(f)).Flocale + wc = Int32FromUint32(___fgetwc_unlocked_internal(tls, f)) + **(**Tlocale_t)(__ccgo_up(ploc)) = loc + return Uint32FromInt32(wc) +} + +func Xfgetwc(tls *TLS, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, v1 int32 + var c Twint_t + _, _, _ = __need_unlock, c, v1 + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + c = X__fgetwc_unlocked(tls, f) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return c +} + +func Xfgetwc_unlocked(tls *TLS, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fgetwc_unlocked(tls, f) +} + +func Xgetwc_unlocked(tls *TLS, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fgetwc_unlocked(tls, f) +} + +func Xfgetws(tls *TLS, s uintptr, n int32, f uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v f=%v, (%v:)", tls, s, n, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, v1 int32 + var c Twint_t + var p, v4 uintptr + _, _, _, _, _ = __need_unlock, c, p, v1, v4 + p = s + v1 = n + n = n - 1 + if !(v1 != 0) { + return s + } + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + for { + if !(n != 0) { + break + } + c = X__fgetwc_unlocked(tls, f) + if c == uint32(0xffffffff) { + break + } + v4 = p + p += 4 + **(**Twchar_t)(__ccgo_up(v4)) = Int32FromUint32(c) + if c == uint32('\n') { + break + } + goto _3 + _3: + ; + n = n - 1 + } + **(**Twchar_t)(__ccgo_up(p)) = 0 + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_ERR) != 0 { + p = s + } + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + if p == s { + v4 = UintptrFromInt32(0) + } else { + v4 = s + } + return v4 +} + +func Xfgetws_unlocked(tls *TLS, s uintptr, n int32, f uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v f=%v, (%v:)", tls, s, n, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfgetws(tls, s, n, f) +} + +func Xfileno(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, fd, v1 int32 + _, _, _ = __need_unlock, fd, v1 + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + fd = (*TFILE)(unsafe.Pointer(f)).Ffd + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + if fd < 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EBADF) + return -int32(1) + } + return fd +} + +func Xfileno_unlocked(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfileno(tls, f) +} + +func Xflockfile(tls *TLS, f uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } + if !(Xftrylockfile(tls, f) != 0) { + return + } + ___lockfile(tls, f) + X__register_locked_file(tls, f, uintptr(___get_tp(tls))) +} + +type Tcookie = struct { + Fpos Tsize_t + Flen1 Tsize_t + Fsize Tsize_t + Fbuf uintptr + Fmode int32 +} + +type Tmem_FILE = struct { + Ff TFILE + Fc Tcookie + Fbuf [1032]uint8 +} + +func _mseek(tls *TLS, f uintptr, off Toff_t, whence int32) (r Toff_t) { + bp := tls.Alloc(32) + defer tls.Free(32) + var base Tssize_t + var c uintptr + var v2 Tsize_t + _, _, _ = base, c, v2 + c = (*TFILE)(unsafe.Pointer(f)).Fcookie + if !(Uint32FromInt32(whence) > uint32(2)) { + goto _1 + } + goto fail +fail: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return int64(-int32(1)) +_1: + ; + *(*[3]Tsize_t)(unsafe.Pointer(bp)) = [3]Tsize_t{ + 1: (*Tcookie)(unsafe.Pointer(c)).Fpos, + 2: (*Tcookie)(unsafe.Pointer(c)).Flen1, + } + base = Int64FromUint64(**(**Tsize_t)(__ccgo_up(bp + uintptr(whence)*8))) + if off < -base || off > Int64FromUint64((*Tcookie)(unsafe.Pointer(c)).Fsize)-base { + goto fail + } + v2 = Uint64FromInt64(base + off) + (*Tcookie)(unsafe.Pointer(c)).Fpos = v2 + return Int64FromUint64(v2) +} + +func _mread(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + var c uintptr + var rem Tsize_t + _, _ = c, rem + c = (*TFILE)(unsafe.Pointer(f)).Fcookie + rem = (*Tcookie)(unsafe.Pointer(c)).Flen1 - (*Tcookie)(unsafe.Pointer(c)).Fpos + if (*Tcookie)(unsafe.Pointer(c)).Fpos > (*Tcookie)(unsafe.Pointer(c)).Flen1 { + rem = uint64(0) + } + if len1 > rem { + len1 = rem + **(**uint32)(__ccgo_up(f)) |= uint32(F_EOF) + } + Xmemcpy(tls, buf, (*Tcookie)(unsafe.Pointer(c)).Fbuf+uintptr((*Tcookie)(unsafe.Pointer(c)).Fpos), len1) + **(**Tsize_t)(__ccgo_up(c)) += len1 + rem = rem - len1 + if rem > (*TFILE)(unsafe.Pointer(f)).Fbuf_size { + rem = (*TFILE)(unsafe.Pointer(f)).Fbuf_size + } + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Frend = (*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr(rem) + Xmemcpy(tls, (*TFILE)(unsafe.Pointer(f)).Frpos, (*Tcookie)(unsafe.Pointer(c)).Fbuf+uintptr((*Tcookie)(unsafe.Pointer(c)).Fpos), rem) + **(**Tsize_t)(__ccgo_up(c)) += rem + return len1 +} + +func _mwrite(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + var c uintptr + var len2, rem Tsize_t + _, _, _ = c, len2, rem + c = (*TFILE)(unsafe.Pointer(f)).Fcookie + len2 = Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Fwpos) - int64((*TFILE)(unsafe.Pointer(f)).Fwbase)) + if len2 != 0 { + (*TFILE)(unsafe.Pointer(f)).Fwpos = (*TFILE)(unsafe.Pointer(f)).Fwbase + if _mwrite(tls, f, (*TFILE)(unsafe.Pointer(f)).Fwpos, len2) < len2 { + return uint64(0) + } + } + if (*Tcookie)(unsafe.Pointer(c)).Fmode == int32('a') { + (*Tcookie)(unsafe.Pointer(c)).Fpos = (*Tcookie)(unsafe.Pointer(c)).Flen1 + } + rem = (*Tcookie)(unsafe.Pointer(c)).Fsize - (*Tcookie)(unsafe.Pointer(c)).Fpos + if len1 > rem { + len1 = rem + } + Xmemcpy(tls, (*Tcookie)(unsafe.Pointer(c)).Fbuf+uintptr((*Tcookie)(unsafe.Pointer(c)).Fpos), buf, len1) + **(**Tsize_t)(__ccgo_up(c)) += len1 + if (*Tcookie)(unsafe.Pointer(c)).Fpos > (*Tcookie)(unsafe.Pointer(c)).Flen1 { + (*Tcookie)(unsafe.Pointer(c)).Flen1 = (*Tcookie)(unsafe.Pointer(c)).Fpos + if (*Tcookie)(unsafe.Pointer(c)).Flen1 < (*Tcookie)(unsafe.Pointer(c)).Fsize { + **(**uint8)(__ccgo_up((*Tcookie)(unsafe.Pointer(c)).Fbuf + uintptr((*Tcookie)(unsafe.Pointer(c)).Flen1))) = uint8(0) + } else { + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_NORD) != 0 && (*Tcookie)(unsafe.Pointer(c)).Fsize != 0 { + **(**uint8)(__ccgo_up((*Tcookie)(unsafe.Pointer(c)).Fbuf + uintptr((*Tcookie)(unsafe.Pointer(c)).Fsize-uint64(1)))) = uint8(0) + } + } + } + return len1 +} + +func _mclose(tls *TLS, m uintptr) (r int32) { + return 0 +} + +func Xfmemopen(tls *TLS, buf uintptr, size Tsize_t, mode uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v buf=%v size=%v mode=%v, (%v:)", tls, buf, size, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + var f uintptr + var plus, v2 int32 + var v1 uint64 + var v3 Tsize_t + _, _, _, _, _ = f, plus, v1, v2, v3 + plus = BoolInt32(!!(Xstrchr(tls, mode, int32('+')) != 0)) + if !(Xstrchr(tls, __ccgo_ts+1543, Int32FromUint8(**(**uint8)(__ccgo_up(mode)))) != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(0) + } + if !(buf != 0) && size > Uint64FromInt64(Int64FromInt64(INT64_MAX)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOMEM) + return uintptr(0) + } + if buf != 0 { + v1 = uint64(0) + } else { + v1 = size + } + f = Xmalloc(tls, uint64(1304)+v1) + if !(f != 0) { + return uintptr(0) + } + Xmemset(tls, f, 0, uint64(UintptrFromInt32(0)+272)) + (*Tmem_FILE)(unsafe.Pointer(f)).Ff.Fcookie = f + 232 + (*Tmem_FILE)(unsafe.Pointer(f)).Ff.Ffd = -int32(1) + (*Tmem_FILE)(unsafe.Pointer(f)).Ff.Flbf = -int32(1) + (*Tmem_FILE)(unsafe.Pointer(f)).Ff.Fbuf = f + 272 + uintptr(UNGET) + (*Tmem_FILE)(unsafe.Pointer(f)).Ff.Fbuf_size = Uint64FromInt64(1032) - Uint64FromInt32(UNGET) + if !(buf != 0) { + buf = f + 1304 + Xmemset(tls, buf, 0, size) + } + (*Tmem_FILE)(unsafe.Pointer(f)).Fc.Fbuf = buf + (*Tmem_FILE)(unsafe.Pointer(f)).Fc.Fsize = size + (*Tmem_FILE)(unsafe.Pointer(f)).Fc.Fmode = Int32FromUint8(**(**uint8)(__ccgo_up(mode))) + if !(plus != 0) { + if Int32FromUint8(**(**uint8)(__ccgo_up(mode))) == int32('r') { + v2 = int32(F_NOWR) + } else { + v2 = int32(F_NORD) + } + (*Tmem_FILE)(unsafe.Pointer(f)).Ff.Fflags = Uint32FromInt32(v2) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(mode))) == int32('r') { + (*Tmem_FILE)(unsafe.Pointer(f)).Fc.Flen1 = size + } else { + if Int32FromUint8(**(**uint8)(__ccgo_up(mode))) == int32('a') { + v3 = Xstrnlen(tls, buf, size) + (*Tmem_FILE)(unsafe.Pointer(f)).Fc.Fpos = v3 + (*Tmem_FILE)(unsafe.Pointer(f)).Fc.Flen1 = v3 + } else { + if plus != 0 { + **(**uint8)(__ccgo_up((*Tmem_FILE)(unsafe.Pointer(f)).Fc.Fbuf)) = uint8(0) + } + } + } + (*Tmem_FILE)(unsafe.Pointer(f)).Ff.Fread = __ccgo_fp(_mread) + (*Tmem_FILE)(unsafe.Pointer(f)).Ff.Fwrite = __ccgo_fp(_mwrite) + (*Tmem_FILE)(unsafe.Pointer(f)).Ff.Fseek = __ccgo_fp(_mseek) + (*Tmem_FILE)(unsafe.Pointer(f)).Ff.Fclose1 = __ccgo_fp(_mclose) + if !(X__libc.Fthreaded != 0) { + AtomicStorePInt32(f+140, -int32(1)) + } + return X__ofl_add(tls, f) +} + +func Xfopen(tls *TLS, filename uintptr, mode uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v filename=%v mode=%v, (%v:)", tls, filename, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + var f uintptr + var fd, flags int32 + _, _, _ = f, fd, flags + /* Check for valid initial mode character */ + if !(Xstrchr(tls, __ccgo_ts+1543, Int32FromUint8(**(**uint8)(__ccgo_up(mode)))) != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(0) + } + /* Compute the flags to pass to open() */ + flags = X__fmodeflags(tls, mode) + fd = int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_openat), int64(-Int32FromInt32(100)), int64(filename), int64(flags|Int32FromInt32(O_LARGEFILE)), int64(Int32FromInt32(0666)))))) + if fd < 0 { + return uintptr(0) + } + if flags&int32(O_CLOEXEC) != 0 { + X__syscall3(tls, int64(SYS_fcntl), int64(fd), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + } + f = X__fdopen(tls, fd, mode) + if f != 0 { + return f + } + X__syscall1(tls, int64(SYS_close), int64(fd)) + return uintptr(0) +} + +type Tfcookie = struct { + Fcookie uintptr + Fiofuncs Tcookie_io_functions_t +} + +type Tcookie_FILE = struct { + Ff TFILE + Ffc Tfcookie + Fbuf [1032]uint8 +} + +func _cookieread(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + var fc, v2, v3 uintptr + var len2, readlen, remain, v1 Tsize_t + var ret Tssize_t + var v4 int32 + _, _, _, _, _, _, _, _, _ = fc, len2, readlen, remain, ret, v1, v2, v3, v4 + fc = (*TFILE)(unsafe.Pointer(f)).Fcookie + ret = int64(-int32(1)) + remain = len1 + readlen = uint64(0) + len2 = len1 - BoolUint64(!!((*TFILE)(unsafe.Pointer(f)).Fbuf_size != 0)) + if !((*Tfcookie)(unsafe.Pointer(fc)).Fiofuncs.Fread != 0) { + goto bail + } + if len2 != 0 { + ret = (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tssize_t)(unsafe.Pointer(&struct{ uintptr }{(*Tfcookie)(unsafe.Pointer(fc)).Fiofuncs.Fread})))(tls, (*Tfcookie)(unsafe.Pointer(fc)).Fcookie, buf, len2) + if ret <= 0 { + goto bail + } + readlen = readlen + Uint64FromInt64(ret) + remain = remain - Uint64FromInt64(ret) + } + if !((*TFILE)(unsafe.Pointer(f)).Fbuf_size != 0) || remain > BoolUint64(!!((*TFILE)(unsafe.Pointer(f)).Fbuf_size != 0)) { + return readlen + } + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Fbuf + ret = (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tssize_t)(unsafe.Pointer(&struct{ uintptr }{(*Tfcookie)(unsafe.Pointer(fc)).Fiofuncs.Fread})))(tls, (*Tfcookie)(unsafe.Pointer(fc)).Fcookie, (*TFILE)(unsafe.Pointer(f)).Frpos, (*TFILE)(unsafe.Pointer(f)).Fbuf_size) + if ret <= 0 { + goto bail + } + (*TFILE)(unsafe.Pointer(f)).Frend = (*TFILE)(unsafe.Pointer(f)).Frpos + uintptr(ret) + v1 = readlen + readlen = readlen + 1 + v3 = f + 8 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + **(**uint8)(__ccgo_up(buf + uintptr(v1))) = **(**uint8)(__ccgo_up(v2)) + return readlen + goto bail +bail: + ; + if ret == 0 { + v4 = int32(F_EOF) + } else { + v4 = int32(F_ERR) + } + **(**uint32)(__ccgo_up(f)) |= Uint32FromInt32(v4) + v2 = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Frend = v2 + (*TFILE)(unsafe.Pointer(f)).Frpos = v2 + return readlen +} + +func _cookiewrite(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + var fc, v1, v2 uintptr + var len2 Tsize_t + var ret Tssize_t + _, _, _, _, _ = fc, len2, ret, v1, v2 + fc = (*TFILE)(unsafe.Pointer(f)).Fcookie + len2 = Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Fwpos) - int64((*TFILE)(unsafe.Pointer(f)).Fwbase)) + if !((*Tfcookie)(unsafe.Pointer(fc)).Fiofuncs.Fwrite != 0) { + return len1 + } + if len2 != 0 { + (*TFILE)(unsafe.Pointer(f)).Fwpos = (*TFILE)(unsafe.Pointer(f)).Fwbase + if _cookiewrite(tls, f, (*TFILE)(unsafe.Pointer(f)).Fwpos, len2) < len2 { + return uint64(0) + } + } + ret = (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tssize_t)(unsafe.Pointer(&struct{ uintptr }{(*Tfcookie)(unsafe.Pointer(fc)).Fiofuncs.Fwrite})))(tls, (*Tfcookie)(unsafe.Pointer(fc)).Fcookie, buf, len1) + if ret < 0 { + v2 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Fwend = v2 + v1 = v2 + (*TFILE)(unsafe.Pointer(f)).Fwbase = v1 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v1 + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) + return uint64(0) + } + return Uint64FromInt64(ret) +} + +func _cookieseek(tls *TLS, f uintptr, _off Toff_t, whence int32) (r Toff_t) { + bp := tls.Alloc(16) + defer tls.Free(16) + *(*Toff_t)(unsafe.Pointer(bp)) = _off + var fc uintptr + var res int32 + _, _ = fc, res + fc = (*TFILE)(unsafe.Pointer(f)).Fcookie + if Uint32FromInt32(whence) > uint32(2) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return int64(-int32(1)) + } + if !((*Tfcookie)(unsafe.Pointer(fc)).Fiofuncs.Fseek != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOPNOTSUPP) + return int64(-int32(1)) + } + res = (*(*func(*TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(&struct{ uintptr }{(*Tfcookie)(unsafe.Pointer(fc)).Fiofuncs.Fseek})))(tls, (*Tfcookie)(unsafe.Pointer(fc)).Fcookie, bp, whence) + if res < 0 { + return int64(res) + } + return **(**Toff_t)(__ccgo_up(bp)) +} + +func _cookieclose(tls *TLS, f uintptr) (r int32) { + var fc uintptr + _ = fc + fc = (*TFILE)(unsafe.Pointer(f)).Fcookie + if (*Tfcookie)(unsafe.Pointer(fc)).Fiofuncs.Fclose1 != 0 { + return (*(*func(*TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*Tfcookie)(unsafe.Pointer(fc)).Fiofuncs.Fclose1})))(tls, (*Tfcookie)(unsafe.Pointer(fc)).Fcookie) + } + return 0 +} + +func Xfopencookie(tls *TLS, cookie uintptr, mode uintptr, iofuncs Tcookie_io_functions_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v cookie=%v mode=%v iofuncs=%v, (%v:)", tls, cookie, mode, iofuncs, origin(2)) + defer func() { trc("-> %v", r) }() + } + var f, v1 uintptr + var v2 int32 + _, _, _ = f, v1, v2 + /* Check for valid initial mode character */ + if !(Xstrchr(tls, __ccgo_ts+1543, Int32FromUint8(**(**uint8)(__ccgo_up(mode)))) != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(0) + } + /* Allocate FILE+fcookie+buffer or fail */ + v1 = Xmalloc(tls, uint64(1304)) + f = v1 + if !(v1 != 0) { + return uintptr(0) + } + /* Zero-fill only the struct, not the buffer */ + Xmemset(tls, f, 0, uint64(232)) + /* Impose mode restrictions */ + if !(Xstrchr(tls, mode, int32('+')) != 0) { + if Int32FromUint8(**(**uint8)(__ccgo_up(mode))) == int32('r') { + v2 = int32(F_NOWR) + } else { + v2 = int32(F_NORD) + } + (*Tcookie_FILE)(unsafe.Pointer(f)).Ff.Fflags = Uint32FromInt32(v2) + } + /* Set up our fcookie */ + (*Tcookie_FILE)(unsafe.Pointer(f)).Ffc.Fcookie = cookie + (*Tcookie_FILE)(unsafe.Pointer(f)).Ffc.Fiofuncs = iofuncs + (*Tcookie_FILE)(unsafe.Pointer(f)).Ff.Ffd = -int32(1) + (*Tcookie_FILE)(unsafe.Pointer(f)).Ff.Fcookie = f + 232 + (*Tcookie_FILE)(unsafe.Pointer(f)).Ff.Fbuf = f + 272 + uintptr(UNGET) + (*Tcookie_FILE)(unsafe.Pointer(f)).Ff.Fbuf_size = Uint64FromInt64(1032) - Uint64FromInt32(UNGET) + (*Tcookie_FILE)(unsafe.Pointer(f)).Ff.Flbf = -int32(1) + /* Initialize op ptrs. No problem if some are unneeded. */ + (*Tcookie_FILE)(unsafe.Pointer(f)).Ff.Fread = __ccgo_fp(_cookieread) + (*Tcookie_FILE)(unsafe.Pointer(f)).Ff.Fwrite = __ccgo_fp(_cookiewrite) + (*Tcookie_FILE)(unsafe.Pointer(f)).Ff.Fseek = __ccgo_fp(_cookieseek) + (*Tcookie_FILE)(unsafe.Pointer(f)).Ff.Fclose1 = __ccgo_fp(_cookieclose) + /* Add new FILE to open file list */ + return X__ofl_add(tls, f) +} + +func Xfprintf(tls *TLS, f uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v va=%v, (%v:)", tls, f, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvfprintf(tls, f, fmt, ap) + _ = ap + return ret +} + +func _locking_putc(tls *TLS, c int32, f uintptr) (r int32) { + var old, old1, v1, v11, v3, v8 int32 + var v5, v6 uintptr + var v4 uint8 + _, _, _, _, _, _, _, _, _ = old, old1, v1, v11, v3, v4, v5, v6, v8 + // __asm__ __volatile__ ( + // + // "\n1: lr.w.aqrl %0, (%2)\n bne %0, %3, 1f\n sc.w.aqrl %1, %4, (%2)\n bnez %1, 1b\n1:" + // : "=&r"(old), "=&r"(tmp) + // : "r"(p), "r"((long)t), "r"((long)s) + // : "memory"); + X__assert_fail(tls, __ccgo_ts+353, __ccgo_ts+388, 11, __ccgo_ts+1560) + v1 = old + goto _2 +_2: + if v1 != 0 { + ___lockfile(tls, f) + } + if Int32FromUint8(Uint8FromInt32(c)) != (*TFILE)(unsafe.Pointer(f)).Flbf && (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwend { + v4 = Uint8FromInt32(c) + v6 = f + 40 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + **(**uint8)(__ccgo_up(v5)) = v4 + v1 = Int32FromUint8(v4) + } else { + v1 = X__overflow(tls, f, Int32FromUint8(Uint8FromInt32(c))) + } + c = v1 + v5 = f + 140 + for { + old1 = AtomicLoadPInt32(v5) + goto _10 + _10: + ; + // __asm__ __volatile__ ( + // + // "\n1: lr.w.aqrl %0, (%2)\n bne %0, %3, 1f\n sc.w.aqrl %1, %4, (%2)\n bnez %1, 1b\n1:" + // : "=&r"(old), "=&r"(tmp) + // : "r"(p), "r"((long)t), "r"((long)s) + // : "memory"); + X__assert_fail(tls, __ccgo_ts+353, __ccgo_ts+388, 11, __ccgo_ts+1560) + v1 = old + goto _9 + _9: + ; + if !(v1 != old1) { + break + } + } + v3 = old1 + goto _12 +_12: + if v3&int32(MAYBE_WAITERS) != 0 { + v6 = f + 140 + v8 = int32(1) + v11 = int32(1) + if v11 != 0 { + v11 = int32(FUTEX_PRIVATE) + } + if v8 < Int32FromInt32(0) { + v8 = int32(INT_MAX) + } + _ = X__syscall3(tls, int64(SYS_futex), int64(v6), int64(Int32FromInt32(FUTEX_WAKE)|v11), int64(v8)) != int64(-int32(ENOSYS)) || X__syscall3(tls, int64(SYS_futex), int64(v6), int64(Int32FromInt32(FUTEX_WAKE)), int64(v8)) != 0 + } + return c +} + +func Xfputc(tls *TLS, c1 int32, f1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v c1=%v f1=%v, (%v:)", tls, c1, f1, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l, v1, v3, v5 int32 + var v2, v7, v8 uintptr + var v6 uint8 + _, _, _, _, _, _, _, _ = l, v1, v2, v3, v5, v6, v7, v8 + v1 = c1 + v2 = f1 + l = AtomicLoadPInt32(v2 + 140) + if l < 0 || l != 0 && l & ^Int32FromInt32(MAYBE_WAITERS) == (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Ftid { + if Int32FromUint8(Uint8FromInt32(v1)) != (*TFILE)(unsafe.Pointer(v2)).Flbf && (*TFILE)(unsafe.Pointer(v2)).Fwpos != (*TFILE)(unsafe.Pointer(v2)).Fwend { + v6 = Uint8FromInt32(v1) + v8 = v2 + 40 + v7 = *(*uintptr)(unsafe.Pointer(v8)) + *(*uintptr)(unsafe.Pointer(v8)) = *(*uintptr)(unsafe.Pointer(v8)) + 1 + **(**uint8)(__ccgo_up(v7)) = v6 + v5 = Int32FromUint8(v6) + } else { + v5 = X__overflow(tls, v2, Int32FromUint8(Uint8FromInt32(v1))) + } + v3 = v5 + goto _4 + } + v3 = _locking_putc(tls, v1, v2) + goto _4 +_4: + return v3 +} + +func Xfputs(tls *TLS, s uintptr, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v f=%v, (%v:)", tls, s, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l Tsize_t + _ = l + l = _strlen(tls, s) + return BoolInt32(Xfwrite(tls, s, uint64(1), l, f) == l) - int32(1) +} + +func Xfputs_unlocked(tls *TLS, s uintptr, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v f=%v, (%v:)", tls, s, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfputs(tls, s, f) +} + +func X__fputwc_unlocked(tls *TLS, c Twchar_t, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v f=%v, (%v:)", tls, c, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var l, v1 int32 + var loc Tlocale_t + var ploc, v3, v4 uintptr + var v2 uint8 + var _ /* mbc at bp+0 */ [4]uint8 + _, _, _, _, _, _, _ = l, loc, ploc, v1, v2, v3, v4 + ploc = uintptr(___get_tp(tls)) + 152 + loc = **(**Tlocale_t)(__ccgo_up(ploc)) + if (*TFILE)(unsafe.Pointer(f)).Fmode <= 0 { + Xfwide(tls, f, int32(1)) + } + **(**Tlocale_t)(__ccgo_up(ploc)) = (*TFILE)(unsafe.Pointer(f)).Flocale + if BoolInt32(Uint32FromInt32(c) < uint32(128)) != 0 { + if Int32FromUint8(Uint8FromInt32(c)) != (*TFILE)(unsafe.Pointer(f)).Flbf && (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwend { + v2 = Uint8FromInt32(c) + v4 = f + 40 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + **(**uint8)(__ccgo_up(v3)) = v2 + v1 = Int32FromUint8(v2) + } else { + v1 = X__overflow(tls, f, Int32FromUint8(Uint8FromInt32(c))) + } + c = v1 + } else { + if (*TFILE)(unsafe.Pointer(f)).Fwpos+uintptr(MB_LEN_MAX) < (*TFILE)(unsafe.Pointer(f)).Fwend { + l = Xwctomb(tls, (*TFILE)(unsafe.Pointer(f)).Fwpos, c) + if l < 0 { + c = Int32FromUint32(0xffffffff) + } else { + **(**uintptr)(__ccgo_up(f + 40)) += uintptr(l) + } + } else { + l = Xwctomb(tls, bp, c) + if l < 0 || X__fwritex(tls, bp, Uint64FromInt32(l), f) < Uint64FromInt32(l) { + c = Int32FromUint32(0xffffffff) + } + } + } + if Uint32FromInt32(c) == uint32(0xffffffff) { + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) + } + **(**Tlocale_t)(__ccgo_up(ploc)) = loc + return Uint32FromInt32(c) +} + +func Xfputwc(tls *TLS, c Twchar_t, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v f=%v, (%v:)", tls, c, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, v1 int32 + _, _ = __need_unlock, v1 + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + c = Int32FromUint32(X__fputwc_unlocked(tls, c, f)) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return Uint32FromInt32(c) +} + +func Xfputwc_unlocked(tls *TLS, c Twchar_t, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v f=%v, (%v:)", tls, c, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fputwc_unlocked(tls, c, f) +} + +func Xputwc_unlocked(tls *TLS, c Twchar_t, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v f=%v, (%v:)", tls, c, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fputwc_unlocked(tls, c, f) +} + +func Xfputws(tls *TLS, _ws uintptr, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v _ws=%v f=%v, (%v:)", tls, _ws, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(1040) + defer tls.Free(1040) + *(*uintptr)(unsafe.Pointer(bp)) = _ws + var __need_unlock, v1 int32 + var l, v2 Tsize_t + var loc Tlocale_t + var ploc uintptr + var v3 bool + var _ /* buf at bp+8 */ [1024]uint8 + _, _, _, _, _, _, _ = __need_unlock, l, loc, ploc, v1, v2, v3 + l = uint64(0) + ploc = uintptr(___get_tp(tls)) + 152 + loc = **(**Tlocale_t)(__ccgo_up(ploc)) + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + Xfwide(tls, f, int32(1)) + **(**Tlocale_t)(__ccgo_up(ploc)) = (*TFILE)(unsafe.Pointer(f)).Flocale + for { + if v3 = **(**uintptr)(__ccgo_up(bp)) != 0; v3 { + v2 = Xwcsrtombs(tls, bp+8, bp, uint64(1024), uintptr(0)) + l = v2 + } + if !(v3 && v2+uint64(1) > uint64(1)) { + break + } + if X__fwritex(tls, bp+8, l, f) < l { + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + **(**Tlocale_t)(__ccgo_up(ploc)) = loc + return -int32(1) + } + } + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + **(**Tlocale_t)(__ccgo_up(ploc)) = loc + return Int32FromUint64(l) /* 0 or -1 */ +} + +func Xfputws_unlocked(tls *TLS, _ws uintptr, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v _ws=%v f=%v, (%v:)", tls, _ws, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfputws(tls, _ws, f) +} + +func Xfread(tls *TLS, destv uintptr, size Tsize_t, nmemb Tsize_t, f uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v destv=%v size=%v nmemb=%v f=%v, (%v:)", tls, destv, size, nmemb, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, v1 int32 + var dest uintptr + var k, l, len1 Tsize_t + var v2 uint64 + _, _, _, _, _, _, _ = __need_unlock, dest, k, l, len1, v1, v2 + dest = destv + len1 = size * nmemb + l = len1 + if !(size != 0) { + nmemb = uint64(0) + } + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + **(**int32)(__ccgo_up(f + 136)) |= (*TFILE)(unsafe.Pointer(f)).Fmode - int32(1) + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + /* First exhaust the buffer. */ + if Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Frend)-int64((*TFILE)(unsafe.Pointer(f)).Frpos)) < l { + v2 = Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Frend) - int64((*TFILE)(unsafe.Pointer(f)).Frpos)) + } else { + v2 = l + } + k = v2 + Xmemcpy(tls, dest, (*TFILE)(unsafe.Pointer(f)).Frpos, k) + **(**uintptr)(__ccgo_up(f + 8)) += uintptr(k) + dest = dest + uintptr(k) + l = l - k + } + /* Read the remainder directly */ + for { + if !(l != 0) { + break + } + if X__toread(tls, f) != 0 { + v2 = uint64(0) + } else { + v2 = (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tsize_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fread})))(tls, f, dest, l) + } + k = v2 + if !(k != 0) { + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return (len1 - l) / size + } + goto _3 + _3: + ; + l = l - k + dest = dest + uintptr(k) + } + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return nmemb +} + +func Xfread_unlocked(tls *TLS, destv uintptr, size Tsize_t, nmemb Tsize_t, f uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v destv=%v size=%v nmemb=%v f=%v, (%v:)", tls, destv, size, nmemb, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfread(tls, destv, size, nmemb, f) +} + +/* The basic idea of this implementation is to open a new FILE, + * hack the necessary parts of the new FILE into the old one, then + * close the new FILE. */ + +/* Locking IS necessary because another thread may provably hold the + * lock, via flockfile or otherwise, when freopen is called, and in that + * case, freopen cannot act until the lock is released. */ + +func Xfreopen(tls *TLS, filename uintptr, mode uintptr, f uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v filename=%v mode=%v f=%v, (%v:)", tls, filename, mode, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, fl, v1 int32 + var f2 uintptr + _, _, _, _ = __need_unlock, f2, fl, v1 + fl = X__fmodeflags(tls, mode) + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + Xfflush(tls, f) + if !(filename != 0) { + if fl&int32(O_CLOEXEC) != 0 { + X__syscall3(tls, int64(SYS_fcntl), int64((*TFILE)(unsafe.Pointer(f)).Ffd), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + } + fl = fl & ^(Int32FromInt32(O_CREAT) | Int32FromInt32(O_EXCL) | Int32FromInt32(O_CLOEXEC)) + if X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_fcntl), int64((*TFILE)(unsafe.Pointer(f)).Ffd), int64(Int32FromInt32(F_SETFL)), int64(fl)))) < 0 { + goto fail + } + } else { + f2 = Xfopen(tls, filename, mode) + if !(f2 != 0) { + goto fail + } + if (*TFILE)(unsafe.Pointer(f2)).Ffd == (*TFILE)(unsafe.Pointer(f)).Ffd { + (*TFILE)(unsafe.Pointer(f2)).Ffd = -int32(1) + } else { + if X__dup3(tls, (*TFILE)(unsafe.Pointer(f2)).Ffd, (*TFILE)(unsafe.Pointer(f)).Ffd, fl&int32(O_CLOEXEC)) < 0 { + goto fail2 + } + } + (*TFILE)(unsafe.Pointer(f)).Fflags = (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_PERM) | (*TFILE)(unsafe.Pointer(f2)).Fflags + (*TFILE)(unsafe.Pointer(f)).Fread = (*TFILE)(unsafe.Pointer(f2)).Fread + (*TFILE)(unsafe.Pointer(f)).Fwrite = (*TFILE)(unsafe.Pointer(f2)).Fwrite + (*TFILE)(unsafe.Pointer(f)).Fseek = (*TFILE)(unsafe.Pointer(f2)).Fseek + (*TFILE)(unsafe.Pointer(f)).Fclose1 = (*TFILE)(unsafe.Pointer(f2)).Fclose1 + Xfclose(tls, f2) + } + (*TFILE)(unsafe.Pointer(f)).Fmode = 0 + (*TFILE)(unsafe.Pointer(f)).Flocale = uintptr(0) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return f + goto fail2 +fail2: + ; + Xfclose(tls, f2) + goto fail +fail: + ; + Xfclose(tls, f) + return UintptrFromInt32(0) +} + +func Xfscanf(tls *TLS, f uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v va=%v, (%v:)", tls, f, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvfscanf(tls, f, fmt, ap) + _ = ap + return ret +} + +func X__isoc99_fscanf(tls *TLS, f uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v va=%v, (%v:)", tls, f, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfscanf(tls, f, fmt, va) +} + +func X__fseeko_unlocked(tls *TLS, f uintptr, off Toff_t, whence int32) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v off=%v whence=%v, (%v:)", tls, f, off, whence, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1, v2 uintptr + _, _ = v1, v2 + /* Fail immediately for invalid whence argument. */ + if whence != int32(1) && whence != 0 && whence != int32(2) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + /* Adjust relative offset for unread data in buffer, if any. */ + if whence == int32(1) && (*TFILE)(unsafe.Pointer(f)).Frend != 0 { + off = off - (int64((*TFILE)(unsafe.Pointer(f)).Frend) - int64((*TFILE)(unsafe.Pointer(f)).Frpos)) + } + /* Flush write buffer, and report error on failure. */ + if (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwbase { + (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tsize_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fwrite})))(tls, f, uintptr(0), uint64(0)) + if !((*TFILE)(unsafe.Pointer(f)).Fwpos != 0) { + return -int32(1) + } + } + /* Leave writing mode */ + v2 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Fwend = v2 + v1 = v2 + (*TFILE)(unsafe.Pointer(f)).Fwbase = v1 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v1 + /* Perform the underlying seek. */ + if (*(*func(*TLS, uintptr, Toff_t, int32) Toff_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fseek})))(tls, f, off, whence) < 0 { + return -int32(1) + } + /* If seek succeeded, file is seekable and we discard read buffer. */ + v1 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Frend = v1 + (*TFILE)(unsafe.Pointer(f)).Frpos = v1 + **(**uint32)(__ccgo_up(f)) &= Uint32FromInt32(^Int32FromInt32(F_EOF)) + return 0 +} + +func X__fseeko(tls *TLS, f uintptr, off Toff_t, whence int32) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v off=%v whence=%v, (%v:)", tls, f, off, whence, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, result, v1 int32 + _, _, _ = __need_unlock, result, v1 + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + result = X__fseeko_unlocked(tls, f, off, whence) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return result +} + +func Xfseek(tls *TLS, f uintptr, off int64, whence int32) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v off=%v whence=%v, (%v:)", tls, f, off, whence, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fseeko(tls, f, off, whence) +} + +func Xfseeko(tls *TLS, f uintptr, off Toff_t, whence int32) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v off=%v whence=%v, (%v:)", tls, f, off, whence, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fseeko(tls, f, off, whence) +} + +func Xfsetpos(tls *TLS, f uintptr, pos uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v pos=%v, (%v:)", tls, f, pos, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fseeko(tls, f, int64(**(**int64)(__ccgo_up(pos))), 0) +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func X__ftello_unlocked(tls *TLS, f uintptr) (r Toff_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var pos Toff_t + var v1 int32 + _, _ = pos, v1 + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_APP) != 0 && (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwbase { + v1 = int32(2) + } else { + v1 = int32(1) + } + pos = (*(*func(*TLS, uintptr, Toff_t, int32) Toff_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fseek})))(tls, f, 0, v1) + if pos < 0 { + return pos + } + /* Adjust for data in buffer. */ + if (*TFILE)(unsafe.Pointer(f)).Frend != 0 { + pos = pos + (int64((*TFILE)(unsafe.Pointer(f)).Frpos) - int64((*TFILE)(unsafe.Pointer(f)).Frend)) + } else { + if (*TFILE)(unsafe.Pointer(f)).Fwbase != 0 { + pos = pos + (int64((*TFILE)(unsafe.Pointer(f)).Fwpos) - int64((*TFILE)(unsafe.Pointer(f)).Fwbase)) + } + } + return pos +} + +func X__ftello(tls *TLS, f uintptr) (r Toff_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, v1 int32 + var pos Toff_t + _, _, _ = __need_unlock, pos, v1 + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + pos = X__ftello_unlocked(tls, f) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return pos +} + +func Xftell(tls *TLS, f uintptr) (r int64) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var pos Toff_t + _ = pos + pos = X__ftello(tls, f) + if pos > int64(0x7fffffffffffffff) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOVERFLOW) + return int64(-int32(1)) + } + return pos +} + +func Xftello(tls *TLS, f uintptr) (r Toff_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__ftello(tls, f) +} + +func X__do_orphaned_stdio_locks(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + var f uintptr + _ = f + f = (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Fstdio_locks + for { + if !(f != 0) { + break + } + // __asm__ __volatile__ ("fence rw,rw" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+353, __ccgo_ts+388, 4, __ccgo_ts+1573) + AtomicStorePInt32(f+140, int32(0x40000000)) + // __asm__ __volatile__ ("fence rw,rw" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+353, __ccgo_ts+388, 4, __ccgo_ts+1573) + goto _1 + _1: + ; + f = (*TFILE)(unsafe.Pointer(f)).Fnext_locked + } +} + +func X__unlist_locked_file(tls *TLS, f uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } + if (*TFILE)(unsafe.Pointer(f)).Flockcount != 0 { + if (*TFILE)(unsafe.Pointer(f)).Fnext_locked != 0 { + (*TFILE)(unsafe.Pointer((*TFILE)(unsafe.Pointer(f)).Fnext_locked)).Fprev_locked = (*TFILE)(unsafe.Pointer(f)).Fprev_locked + } + if (*TFILE)(unsafe.Pointer(f)).Fprev_locked != 0 { + (*TFILE)(unsafe.Pointer((*TFILE)(unsafe.Pointer(f)).Fprev_locked)).Fnext_locked = (*TFILE)(unsafe.Pointer(f)).Fnext_locked + } else { + (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Fstdio_locks = (*TFILE)(unsafe.Pointer(f)).Fnext_locked + } + } +} + +func X__register_locked_file(tls *TLS, f uintptr, self Tpthread_t) { + if __ccgo_strace { + trc("tls=%v f=%v self=%v, (%v:)", tls, f, self, origin(2)) + } + (*TFILE)(unsafe.Pointer(f)).Flockcount = int64(1) + (*TFILE)(unsafe.Pointer(f)).Fprev_locked = uintptr(0) + (*TFILE)(unsafe.Pointer(f)).Fnext_locked = (*t__pthread)(unsafe.Pointer(self)).Fstdio_locks + if (*TFILE)(unsafe.Pointer(f)).Fnext_locked != 0 { + (*TFILE)(unsafe.Pointer((*TFILE)(unsafe.Pointer(f)).Fnext_locked)).Fprev_locked = f + } + (*t__pthread)(unsafe.Pointer(self)).Fstdio_locks = f +} + +func Xftrylockfile(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var old, owner, tid, v1 int32 + var self Tpthread_t + var v4 bool + _, _, _, _, _, _ = old, owner, self, tid, v1, v4 + self = uintptr(___get_tp(tls)) + tid = (*t__pthread)(unsafe.Pointer(self)).Ftid + owner = AtomicLoadPInt32(f + 140) + if owner & ^Int32FromInt32(MAYBE_WAITERS) == tid { + if (*TFILE)(unsafe.Pointer(f)).Flockcount == int64(0x7fffffffffffffff) { + return -int32(1) + } + (*TFILE)(unsafe.Pointer(f)).Flockcount = (*TFILE)(unsafe.Pointer(f)).Flockcount + 1 + return 0 + } + if owner < 0 { + v1 = Int32FromInt32(0) + owner = v1 + AtomicStorePInt32(f+140, v1) + } + if v4 = owner != 0; !v4 { + // __asm__ __volatile__ ( + // + // "\n1: lr.w.aqrl %0, (%2)\n bne %0, %3, 1f\n sc.w.aqrl %1, %4, (%2)\n bnez %1, 1b\n1:" + // : "=&r"(old), "=&r"(tmp) + // : "r"(p), "r"((long)t), "r"((long)s) + // : "memory"); + X__assert_fail(tls, __ccgo_ts+353, __ccgo_ts+388, 11, __ccgo_ts+1599) + v1 = old + goto _3 + _3: + } + if v4 || v1 != 0 { + return -int32(1) + } + X__register_locked_file(tls, f, self) + return 0 +} + +func Xfunlockfile(tls *TLS, f uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } + if (*TFILE)(unsafe.Pointer(f)).Flockcount == int64(1) { + X__unlist_locked_file(tls, f) + (*TFILE)(unsafe.Pointer(f)).Flockcount = 0 + ___unlockfile(tls, f) + } else { + (*TFILE)(unsafe.Pointer(f)).Flockcount = (*TFILE)(unsafe.Pointer(f)).Flockcount - 1 + } +} + +func Xfwide(tls *TLS, f uintptr, mode int32) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v mode=%v, (%v:)", tls, f, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, v1, v3 int32 + var v2 Tlocale_t + _, _, _, _ = __need_unlock, v1, v2, v3 + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + if mode != 0 { + if !((*TFILE)(unsafe.Pointer(f)).Flocale != 0) { + if !!(**(**uintptr)(__ccgo_up((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale)) != 0) { + v3 = int32(4) + } else { + v3 = int32(1) + } + if v3 == int32(1) { + v2 = uintptr(unsafe.Pointer(&X__c_locale)) + } else { + v2 = uintptr(unsafe.Pointer(&X__c_dot_utf8_locale)) + } + (*TFILE)(unsafe.Pointer(f)).Flocale = v2 + } + if !((*TFILE)(unsafe.Pointer(f)).Fmode != 0) { + if mode > 0 { + v1 = int32(1) + } else { + v1 = -int32(1) + } + (*TFILE)(unsafe.Pointer(f)).Fmode = v1 + } + } + mode = (*TFILE)(unsafe.Pointer(f)).Fmode + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return mode +} + +func Xfwprintf(tls *TLS, f uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v va=%v, (%v:)", tls, f, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvfwprintf(tls, f, fmt, ap) + _ = ap + return ret +} + +func X__fwritex(tls *TLS, s uintptr, l Tsize_t, f uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v l=%v f=%v, (%v:)", tls, s, l, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var i, n Tsize_t + _, _ = i, n + i = uint64(0) + if !((*TFILE)(unsafe.Pointer(f)).Fwend != 0) && X__towrite(tls, f) != 0 { + return uint64(0) + } + if l > Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Fwend)-int64((*TFILE)(unsafe.Pointer(f)).Fwpos)) { + return (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tsize_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fwrite})))(tls, f, s, l) + } + if (*TFILE)(unsafe.Pointer(f)).Flbf >= 0 { + /* Match /^(.*\n|)/ */ + i = l + for { + if !(i != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(i-uint64(1))))) != int32('\n')) { + break + } + goto _1 + _1: + ; + i = i - 1 + } + if i != 0 { + n = (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tsize_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fwrite})))(tls, f, s, i) + if n < i { + return n + } + s = s + uintptr(i) + l = l - i + } + } + Xmemcpy(tls, (*TFILE)(unsafe.Pointer(f)).Fwpos, s, l) + **(**uintptr)(__ccgo_up(f + 40)) += uintptr(l) + return l + i +} + +func Xfwrite(tls *TLS, src uintptr, size Tsize_t, nmemb Tsize_t, f uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v src=%v size=%v nmemb=%v f=%v, (%v:)", tls, src, size, nmemb, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, v1 int32 + var k, l Tsize_t + var v2 uint64 + _, _, _, _, _ = __need_unlock, k, l, v1, v2 + l = size * nmemb + if !(size != 0) { + nmemb = uint64(0) + } + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + k = X__fwritex(tls, src, l, f) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + if k == l { + v2 = nmemb + } else { + v2 = k / size + } + return v2 +} + +func Xfwrite_unlocked(tls *TLS, src uintptr, size Tsize_t, nmemb Tsize_t, f uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v src=%v size=%v nmemb=%v f=%v, (%v:)", tls, src, size, nmemb, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfwrite(tls, src, size, nmemb, f) +} + +func Xfwscanf(tls *TLS, f uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v va=%v, (%v:)", tls, f, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvfwscanf(tls, f, fmt, ap) + _ = ap + return ret +} + +func X__isoc99_fwscanf(tls *TLS, f uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v va=%v, (%v:)", tls, f, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfwscanf(tls, f, fmt, va) +} + +func _locking_getc1(tls *TLS, f uintptr) (r int32) { + var c, old, old1, v1, v10, v13, v3, v7 int32 + var v12, v4, v5, v6 uintptr + _, _, _, _, _, _, _, _, _, _, _, _ = c, old, old1, v1, v10, v12, v13, v3, v4, v5, v6, v7 + // __asm__ __volatile__ ( + // + // "\n1: lr.w.aqrl %0, (%2)\n bne %0, %3, 1f\n sc.w.aqrl %1, %4, (%2)\n bnez %1, 1b\n1:" + // : "=&r"(old), "=&r"(tmp) + // : "r"(p), "r"((long)t), "r"((long)s) + // : "memory"); + X__assert_fail(tls, __ccgo_ts+353, __ccgo_ts+388, 11, __ccgo_ts+1547) + v1 = old + goto _2 +_2: + if v1 != 0 { + ___lockfile(tls, f) + } + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + v5 = f + 8 + v4 = *(*uintptr)(unsafe.Pointer(v5)) + *(*uintptr)(unsafe.Pointer(v5)) = *(*uintptr)(unsafe.Pointer(v5)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v4))) + } else { + v1 = X__uflow(tls, f) + } + c = v1 + v6 = f + 140 + for { + old1 = AtomicLoadPInt32(v6) + goto _9 + _9: + ; + // __asm__ __volatile__ ( + // + // "\n1: lr.w.aqrl %0, (%2)\n bne %0, %3, 1f\n sc.w.aqrl %1, %4, (%2)\n bnez %1, 1b\n1:" + // : "=&r"(old), "=&r"(tmp) + // : "r"(p), "r"((long)t), "r"((long)s) + // : "memory"); + X__assert_fail(tls, __ccgo_ts+353, __ccgo_ts+388, 11, __ccgo_ts+1547) + v3 = old + goto _8 + _8: + ; + if !(v3 != old1) { + break + } + } + v7 = old1 + goto _11 +_11: + if v7&int32(MAYBE_WAITERS) != 0 { + v12 = f + 140 + v10 = int32(1) + v13 = int32(1) + if v13 != 0 { + v13 = int32(FUTEX_PRIVATE) + } + if v10 < Int32FromInt32(0) { + v10 = int32(INT_MAX) + } + _ = X__syscall3(tls, int64(SYS_futex), int64(v12), int64(Int32FromInt32(FUTEX_WAKE)|v13), int64(v10)) != int64(-int32(ENOSYS)) || X__syscall3(tls, int64(SYS_futex), int64(v12), int64(Int32FromInt32(FUTEX_WAKE)), int64(v10)) != 0 + } + return c +} + +func Xgetc(tls *TLS, f1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f1=%v, (%v:)", tls, f1, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l, v2, v4 int32 + var v1, v5, v6 uintptr + _, _, _, _, _, _ = l, v1, v2, v4, v5, v6 + v1 = f1 + l = AtomicLoadPInt32(v1 + 140) + if l < 0 || l != 0 && l & ^Int32FromInt32(MAYBE_WAITERS) == (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Ftid { + if (*TFILE)(unsafe.Pointer(v1)).Frpos != (*TFILE)(unsafe.Pointer(v1)).Frend { + v6 = v1 + 8 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + v4 = Int32FromUint8(**(**uint8)(__ccgo_up(v5))) + } else { + v4 = X__uflow(tls, v1) + } + v2 = v4 + goto _3 + } + v2 = _locking_getc1(tls, v1) + goto _3 +_3: + return v2 +} + +func X_IO_getc(tls *TLS, f1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f1=%v, (%v:)", tls, f1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetc(tls, f1) +} + +func Xgetc_unlocked(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + var v2, v3 uintptr + _, _, _ = v1, v2, v3 + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + v3 = f + 8 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__uflow(tls, f) + } + return v1 +} + +func X_IO_getc_unlocked(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetc_unlocked(tls, f) +} + +func Xfgetc_unlocked(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetc_unlocked(tls, f) +} + +func _locking_getc2(tls *TLS, f uintptr) (r int32) { + var c, old, old1, v1, v10, v13, v3, v7 int32 + var v12, v4, v5, v6 uintptr + _, _, _, _, _, _, _, _, _, _, _, _ = c, old, old1, v1, v10, v12, v13, v3, v4, v5, v6, v7 + // __asm__ __volatile__ ( + // + // "\n1: lr.w.aqrl %0, (%2)\n bne %0, %3, 1f\n sc.w.aqrl %1, %4, (%2)\n bnez %1, 1b\n1:" + // : "=&r"(old), "=&r"(tmp) + // : "r"(p), "r"((long)t), "r"((long)s) + // : "memory"); + X__assert_fail(tls, __ccgo_ts+353, __ccgo_ts+388, 11, __ccgo_ts+1547) + v1 = old + goto _2 +_2: + if v1 != 0 { + ___lockfile(tls, f) + } + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + v5 = f + 8 + v4 = *(*uintptr)(unsafe.Pointer(v5)) + *(*uintptr)(unsafe.Pointer(v5)) = *(*uintptr)(unsafe.Pointer(v5)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v4))) + } else { + v1 = X__uflow(tls, f) + } + c = v1 + v6 = f + 140 + for { + old1 = AtomicLoadPInt32(v6) + goto _9 + _9: + ; + // __asm__ __volatile__ ( + // + // "\n1: lr.w.aqrl %0, (%2)\n bne %0, %3, 1f\n sc.w.aqrl %1, %4, (%2)\n bnez %1, 1b\n1:" + // : "=&r"(old), "=&r"(tmp) + // : "r"(p), "r"((long)t), "r"((long)s) + // : "memory"); + X__assert_fail(tls, __ccgo_ts+353, __ccgo_ts+388, 11, __ccgo_ts+1547) + v3 = old + goto _8 + _8: + ; + if !(v3 != old1) { + break + } + } + v7 = old1 + goto _11 +_11: + if v7&int32(MAYBE_WAITERS) != 0 { + v12 = f + 140 + v10 = int32(1) + v13 = int32(1) + if v13 != 0 { + v13 = int32(FUTEX_PRIVATE) + } + if v10 < Int32FromInt32(0) { + v10 = int32(INT_MAX) + } + _ = X__syscall3(tls, int64(SYS_futex), int64(v12), int64(Int32FromInt32(FUTEX_WAKE)|v13), int64(v10)) != int64(-int32(ENOSYS)) || X__syscall3(tls, int64(SYS_futex), int64(v12), int64(Int32FromInt32(FUTEX_WAKE)), int64(v10)) != 0 + } + return c +} + +func Xgetchar(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l, v2, v4 int32 + var v1, v5, v6 uintptr + _, _, _, _, _, _ = l, v1, v2, v4, v5, v6 + v1 = uintptr(unsafe.Pointer(&X__stdin_FILE)) + l = AtomicLoadPInt32(v1 + 140) + if l < 0 || l != 0 && l & ^Int32FromInt32(MAYBE_WAITERS) == (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Ftid { + if (*TFILE)(unsafe.Pointer(v1)).Frpos != (*TFILE)(unsafe.Pointer(v1)).Frend { + v6 = v1 + 8 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + v4 = Int32FromUint8(**(**uint8)(__ccgo_up(v5))) + } else { + v4 = X__uflow(tls, v1) + } + v2 = v4 + goto _3 + } + v2 = _locking_getc2(tls, v1) + goto _3 +_3: + return v2 +} + +func Xgetchar_unlocked(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + var v2, v3 uintptr + _, _, _ = v1, v2, v3 + if (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdin_FILE)))).Frpos != (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdin_FILE)))).Frend { + v3 = uintptr(unsafe.Pointer(&X__stdin_FILE)) + 8 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__uflow(tls, uintptr(unsafe.Pointer(&X__stdin_FILE))) + } + return v1 +} + +func Xgetdelim(tls *TLS, s uintptr, n uintptr, delim int32, f uintptr) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v delim=%v f=%v, (%v:)", tls, s, n, delim, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, c, v1, v4 int32 + var i, k, m, v11 Tsize_t + var tmp, z, v6, v7 uintptr + var v10 uint8 + var v3 int64 + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = __need_unlock, c, i, k, m, tmp, z, v1, v10, v11, v3, v4, v6, v7 + i = uint64(0) + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + if !(n != 0) || !(s != 0) { + **(**int32)(__ccgo_up(f + 136)) |= (*TFILE)(unsafe.Pointer(f)).Fmode - int32(1) + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return int64(-int32(1)) + } + if !(**(**uintptr)(__ccgo_up(s)) != 0) { + **(**Tsize_t)(__ccgo_up(n)) = uint64(0) + } + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + z = Xmemchr(tls, (*TFILE)(unsafe.Pointer(f)).Frpos, delim, Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Frend)-int64((*TFILE)(unsafe.Pointer(f)).Frpos))) + if z != 0 { + v3 = int64(z) - int64((*TFILE)(unsafe.Pointer(f)).Frpos) + int64(1) + } else { + v3 = int64((*TFILE)(unsafe.Pointer(f)).Frend) - int64((*TFILE)(unsafe.Pointer(f)).Frpos) + } + k = Uint64FromInt64(v3) + } else { + z = uintptr(0) + k = uint64(0) + } + if i+k >= **(**Tsize_t)(__ccgo_up(n)) { + m = i + k + uint64(2) + if !(z != 0) && m < Uint64FromUint64(0xffffffffffffffff)/Uint64FromInt32(4) { + m = m + m/uint64(2) + } + tmp = Xrealloc(tls, **(**uintptr)(__ccgo_up(s)), m) + if !(tmp != 0) { + m = i + k + uint64(2) + tmp = Xrealloc(tls, **(**uintptr)(__ccgo_up(s)), m) + if !(tmp != 0) { + /* Copy as much as fits and ensure no + * pushback remains in the FILE buf. */ + k = **(**Tsize_t)(__ccgo_up(n)) - i + Xmemcpy(tls, **(**uintptr)(__ccgo_up(s))+uintptr(i), (*TFILE)(unsafe.Pointer(f)).Frpos, k) + **(**uintptr)(__ccgo_up(f + 8)) += uintptr(k) + **(**int32)(__ccgo_up(f + 136)) |= (*TFILE)(unsafe.Pointer(f)).Fmode - int32(1) + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOMEM) + return int64(-int32(1)) + } + } + **(**uintptr)(__ccgo_up(s)) = tmp + **(**Tsize_t)(__ccgo_up(n)) = m + } + if k != 0 { + Xmemcpy(tls, **(**uintptr)(__ccgo_up(s))+uintptr(i), (*TFILE)(unsafe.Pointer(f)).Frpos, k) + **(**uintptr)(__ccgo_up(f + 8)) += uintptr(k) + i = i + k + } + if z != 0 { + break + } + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + v7 = f + 8 + v6 = *(*uintptr)(unsafe.Pointer(v7)) + *(*uintptr)(unsafe.Pointer(v7)) = *(*uintptr)(unsafe.Pointer(v7)) + 1 + v4 = Int32FromUint8(**(**uint8)(__ccgo_up(v6))) + } else { + v4 = X__uflow(tls, f) + } + v1 = v4 + c = v1 + if v1 == -int32(1) { + if !(i != 0) || !((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_EOF) != 0) { + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return int64(-int32(1)) + } + break + } + /* If the byte read by getc won't fit without growing the + * output buffer, push it back for next iteration. */ + if i+uint64(1) >= **(**Tsize_t)(__ccgo_up(n)) { + v7 = f + 8 + *(*uintptr)(unsafe.Pointer(v7)) = *(*uintptr)(unsafe.Pointer(v7)) - 1 + v6 = *(*uintptr)(unsafe.Pointer(v7)) + **(**uint8)(__ccgo_up(v6)) = Uint8FromInt32(c) + } else { + v10 = Uint8FromInt32(c) + v11 = i + i = i + 1 + **(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(s)) + uintptr(v11))) = v10 + if Int32FromUint8(v10) == delim { + break + } + } + goto _2 + _2: + } + **(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(s)) + uintptr(i))) = uint8(0) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return Int64FromUint64(i) +} + +func X__getdelim(tls *TLS, s uintptr, n uintptr, delim int32, f uintptr) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v delim=%v f=%v, (%v:)", tls, s, n, delim, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetdelim(tls, s, n, delim, f) +} + +func Xgetline(tls *TLS, s uintptr, n uintptr, f uintptr) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v f=%v, (%v:)", tls, s, n, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetdelim(tls, s, n, int32('\n'), f) +} + +func Xgets(tls *TLS, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, c, v1, v2, v3 int32 + var i, v6 Tsize_t + var v4, v5 uintptr + _, _, _, _, _, _, _, _, _ = __need_unlock, c, i, v1, v2, v3, v4, v5, v6 + i = uint64(0) + if AtomicLoadPInt32(uintptr(unsafe.Pointer(&X__stdin_FILE))+140) >= 0 { + v1 = ___lockfile(tls, uintptr(unsafe.Pointer(&X__stdin_FILE))) + } else { + v1 = 0 + } + __need_unlock = v1 + for { + if (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdin_FILE)))).Frpos != (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdin_FILE)))).Frend { + v5 = uintptr(unsafe.Pointer(&X__stdin_FILE)) + 8 + v4 = *(*uintptr)(unsafe.Pointer(v5)) + *(*uintptr)(unsafe.Pointer(v5)) = *(*uintptr)(unsafe.Pointer(v5)) + 1 + v3 = Int32FromUint8(**(**uint8)(__ccgo_up(v4))) + } else { + v3 = X__uflow(tls, uintptr(unsafe.Pointer(&X__stdin_FILE))) + } + v2 = v3 + c = v2 + if !(v2 != -int32(1) && c != int32('\n')) { + break + } + v6 = i + i = i + 1 + **(**uint8)(__ccgo_up(s + uintptr(v6))) = Uint8FromInt32(c) + } + **(**uint8)(__ccgo_up(s + uintptr(i))) = uint8(0) + if c != int32('\n') && (!((*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdin_FILE)))).Fflags&Uint32FromInt32(F_EOF) != 0) || !(i != 0)) { + s = uintptr(0) + } + if __need_unlock != 0 { + ___unlockfile(tls, uintptr(unsafe.Pointer(&X__stdin_FILE))) + } + return s +} + +func Xgetw(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 int32 + var _ /* x at bp+0 */ int32 + _ = v1 + if Xfread(tls, bp, uint64(4), uint64(1), f) != 0 { + v1 = **(**int32)(__ccgo_up(bp)) + } else { + v1 = -int32(1) + } + return v1 +} + +func Xgetwc(tls *TLS, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfgetwc(tls, f) +} + +func Xgetwchar(tls *TLS) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfgetwc(tls, uintptr(unsafe.Pointer(&X__stdin_FILE))) +} + +func Xgetwchar_unlocked(tls *TLS) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetwchar(tls) +} + +var _ofl_head uintptr +var _ofl_lock [1]int32 + +func X__ofl_lock(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + ___lock(tls, uintptr(unsafe.Pointer(&_ofl_lock))) + return uintptr(unsafe.Pointer(&_ofl_head)) +} + +func X__ofl_unlock(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + ___unlock(tls, uintptr(unsafe.Pointer(&_ofl_lock))) +} + +func X__ofl_add(tls *TLS, f uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var head uintptr + _ = head + head = X__ofl_lock(tls) + (*TFILE)(unsafe.Pointer(f)).Fnext = **(**uintptr)(__ccgo_up(head)) + if **(**uintptr)(__ccgo_up(head)) != 0 { + (*TFILE)(unsafe.Pointer(**(**uintptr)(__ccgo_up(head)))).Fprev = f + } + **(**uintptr)(__ccgo_up(head)) = f + X__ofl_unlock(tls) + return f +} + +type Tcookie1 = struct { + Fbufp uintptr + Fsizep uintptr + Fpos Tsize_t + Fbuf uintptr + Flen1 Tsize_t + Fspace Tsize_t +} + +type Tms_FILE = struct { + Ff TFILE + Fc Tcookie1 + Fbuf [1024]uint8 +} + +func _ms_seek(tls *TLS, f uintptr, off Toff_t, whence int32) (r Toff_t) { + bp := tls.Alloc(32) + defer tls.Free(32) + var base Tssize_t + var c uintptr + var v2 Tsize_t + _, _, _ = base, c, v2 + c = (*TFILE)(unsafe.Pointer(f)).Fcookie + if !(Uint32FromInt32(whence) > uint32(2)) { + goto _1 + } + goto fail +fail: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return int64(-int32(1)) +_1: + ; + *(*[3]Tsize_t)(unsafe.Pointer(bp)) = [3]Tsize_t{ + 1: (*Tcookie1)(unsafe.Pointer(c)).Fpos, + 2: (*Tcookie1)(unsafe.Pointer(c)).Flen1, + } + base = Int64FromUint64(**(**Tsize_t)(__ccgo_up(bp + uintptr(whence)*8))) + if off < -base || off > int64(0x7fffffffffffffff)-base { + goto fail + } + v2 = Uint64FromInt64(base + off) + (*Tcookie1)(unsafe.Pointer(c)).Fpos = v2 + return Int64FromUint64(v2) +} + +func _ms_write(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + var c, newbuf, v1 uintptr + var len2 Tsize_t + _, _, _, _ = c, len2, newbuf, v1 + c = (*TFILE)(unsafe.Pointer(f)).Fcookie + len2 = Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Fwpos) - int64((*TFILE)(unsafe.Pointer(f)).Fwbase)) + if len2 != 0 { + (*TFILE)(unsafe.Pointer(f)).Fwpos = (*TFILE)(unsafe.Pointer(f)).Fwbase + if _ms_write(tls, f, (*TFILE)(unsafe.Pointer(f)).Fwbase, len2) < len2 { + return uint64(0) + } + } + if len1+(*Tcookie1)(unsafe.Pointer(c)).Fpos >= (*Tcookie1)(unsafe.Pointer(c)).Fspace { + len2 = uint64(2)*(*Tcookie1)(unsafe.Pointer(c)).Fspace + uint64(1) | ((*Tcookie1)(unsafe.Pointer(c)).Fpos + len1 + uint64(1)) + newbuf = Xrealloc(tls, (*Tcookie1)(unsafe.Pointer(c)).Fbuf, len2) + if !(newbuf != 0) { + return uint64(0) + } + v1 = newbuf + (*Tcookie1)(unsafe.Pointer(c)).Fbuf = v1 + **(**uintptr)(__ccgo_up((*Tcookie1)(unsafe.Pointer(c)).Fbufp)) = v1 + Xmemset(tls, (*Tcookie1)(unsafe.Pointer(c)).Fbuf+uintptr((*Tcookie1)(unsafe.Pointer(c)).Fspace), 0, len2-(*Tcookie1)(unsafe.Pointer(c)).Fspace) + (*Tcookie1)(unsafe.Pointer(c)).Fspace = len2 + } + Xmemcpy(tls, (*Tcookie1)(unsafe.Pointer(c)).Fbuf+uintptr((*Tcookie1)(unsafe.Pointer(c)).Fpos), buf, len1) + **(**Tsize_t)(__ccgo_up(c + 16)) += len1 + if (*Tcookie1)(unsafe.Pointer(c)).Fpos >= (*Tcookie1)(unsafe.Pointer(c)).Flen1 { + (*Tcookie1)(unsafe.Pointer(c)).Flen1 = (*Tcookie1)(unsafe.Pointer(c)).Fpos + } + **(**Tsize_t)(__ccgo_up((*Tcookie1)(unsafe.Pointer(c)).Fsizep)) = (*Tcookie1)(unsafe.Pointer(c)).Fpos + return len1 +} + +func _ms_close(tls *TLS, f uintptr) (r int32) { + return 0 +} + +func Xopen_memstream(tls *TLS, bufp uintptr, sizep uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v bufp=%v sizep=%v, (%v:)", tls, bufp, sizep, origin(2)) + defer func() { trc("-> %v", r) }() + } + var buf, f, v1 uintptr + var v3, v4, v5 Tsize_t + _, _, _, _, _, _ = buf, f, v1, v3, v4, v5 + v1 = Xmalloc(tls, uint64(1304)) + f = v1 + if !(v1 != 0) { + return uintptr(0) + } + v1 = Xmalloc(tls, uint64(1)) + buf = v1 + if !(v1 != 0) { + Xfree(tls, f) + return uintptr(0) + } + Xmemset(tls, f, 0, uint64(232)) + Xmemset(tls, f+232, 0, uint64(48)) + (*Tms_FILE)(unsafe.Pointer(f)).Ff.Fcookie = f + 232 + (*Tms_FILE)(unsafe.Pointer(f)).Fc.Fbufp = bufp + (*Tms_FILE)(unsafe.Pointer(f)).Fc.Fsizep = sizep + v5 = Uint64FromInt32(0) + **(**Tsize_t)(__ccgo_up(sizep)) = v5 + v4 = v5 + (*Tms_FILE)(unsafe.Pointer(f)).Fc.Fspace = v4 + v3 = v4 + (*Tms_FILE)(unsafe.Pointer(f)).Fc.Flen1 = v3 + (*Tms_FILE)(unsafe.Pointer(f)).Fc.Fpos = v3 + v1 = buf + **(**uintptr)(__ccgo_up(bufp)) = v1 + (*Tms_FILE)(unsafe.Pointer(f)).Fc.Fbuf = v1 + **(**uint8)(__ccgo_up(buf)) = uint8(0) + (*Tms_FILE)(unsafe.Pointer(f)).Ff.Fflags = uint32(F_NORD) + (*Tms_FILE)(unsafe.Pointer(f)).Ff.Ffd = -int32(1) + (*Tms_FILE)(unsafe.Pointer(f)).Ff.Fbuf = f + 280 + (*Tms_FILE)(unsafe.Pointer(f)).Ff.Fbuf_size = uint64(1024) + (*Tms_FILE)(unsafe.Pointer(f)).Ff.Flbf = -int32(1) + (*Tms_FILE)(unsafe.Pointer(f)).Ff.Fwrite = __ccgo_fp(_ms_write) + (*Tms_FILE)(unsafe.Pointer(f)).Ff.Fseek = __ccgo_fp(_ms_seek) + (*Tms_FILE)(unsafe.Pointer(f)).Ff.Fclose1 = __ccgo_fp(_ms_close) + (*Tms_FILE)(unsafe.Pointer(f)).Ff.Fmode = -int32(1) + if !(X__libc.Fthreaded != 0) { + AtomicStorePInt32(f+140, -int32(1)) + } + return X__ofl_add(tls, f) +} + +type Tcookie2 = struct { + Fbufp uintptr + Fsizep uintptr + Fpos Tsize_t + Fbuf uintptr + Flen1 Tsize_t + Fspace Tsize_t + Fmbs Tmbstate_t +} + +type Twms_FILE = struct { + Ff TFILE + Fc Tcookie2 + Fbuf [1]uint8 +} + +func _wms_seek(tls *TLS, f uintptr, off Toff_t, whence int32) (r Toff_t) { + bp := tls.Alloc(32) + defer tls.Free(32) + var base Tssize_t + var c uintptr + var v2 Tsize_t + _, _, _ = base, c, v2 + c = (*TFILE)(unsafe.Pointer(f)).Fcookie + if !(Uint32FromInt32(whence) > uint32(2)) { + goto _1 + } + goto fail +fail: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return int64(-int32(1)) +_1: + ; + *(*[3]Tsize_t)(unsafe.Pointer(bp)) = [3]Tsize_t{ + 1: (*Tcookie2)(unsafe.Pointer(c)).Fpos, + 2: (*Tcookie2)(unsafe.Pointer(c)).Flen1, + } + base = Int64FromUint64(**(**Tsize_t)(__ccgo_up(bp + uintptr(whence)*8))) + if off < -base || off > Int64FromInt64(0x7fffffffffffffff)/Int64FromInt32(4)-base { + goto fail + } + Xmemset(tls, c+48, 0, uint64(8)) + v2 = Uint64FromInt64(base + off) + (*Tcookie2)(unsafe.Pointer(c)).Fpos = v2 + return Int64FromUint64(v2) +} + +func _wms_write(tls *TLS, f uintptr, _buf uintptr, len1 Tsize_t) (r Tsize_t) { + bp := tls.Alloc(16) + defer tls.Free(16) + *(*uintptr)(unsafe.Pointer(bp)) = _buf + var c, newbuf, v1 uintptr + var len2 Tsize_t + _, _, _, _ = c, len2, newbuf, v1 + c = (*TFILE)(unsafe.Pointer(f)).Fcookie + len2 = Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Fwpos) - int64((*TFILE)(unsafe.Pointer(f)).Fwbase)) + if len2 != 0 { + (*TFILE)(unsafe.Pointer(f)).Fwpos = (*TFILE)(unsafe.Pointer(f)).Fwbase + if _wms_write(tls, f, (*TFILE)(unsafe.Pointer(f)).Fwbase, len2) < len2 { + return uint64(0) + } + } + if len1+(*Tcookie2)(unsafe.Pointer(c)).Fpos >= (*Tcookie2)(unsafe.Pointer(c)).Fspace { + len2 = uint64(2)*(*Tcookie2)(unsafe.Pointer(c)).Fspace + uint64(1) | ((*Tcookie2)(unsafe.Pointer(c)).Fpos + len1 + uint64(1)) + if len2 > Uint64FromInt64(Int64FromInt64(0x7fffffffffffffff)/Int64FromInt32(4)) { + return uint64(0) + } + newbuf = Xrealloc(tls, (*Tcookie2)(unsafe.Pointer(c)).Fbuf, len2*uint64(4)) + if !(newbuf != 0) { + return uint64(0) + } + v1 = newbuf + (*Tcookie2)(unsafe.Pointer(c)).Fbuf = v1 + **(**uintptr)(__ccgo_up((*Tcookie2)(unsafe.Pointer(c)).Fbufp)) = v1 + Xmemset(tls, (*Tcookie2)(unsafe.Pointer(c)).Fbuf+uintptr((*Tcookie2)(unsafe.Pointer(c)).Fspace)*4, 0, uint64(4)*(len2-(*Tcookie2)(unsafe.Pointer(c)).Fspace)) + (*Tcookie2)(unsafe.Pointer(c)).Fspace = len2 + } + len2 = Xmbsnrtowcs(tls, (*Tcookie2)(unsafe.Pointer(c)).Fbuf+uintptr((*Tcookie2)(unsafe.Pointer(c)).Fpos)*4, bp, len1, (*Tcookie2)(unsafe.Pointer(c)).Fspace-(*Tcookie2)(unsafe.Pointer(c)).Fpos, c+48) + if len2 == Uint64FromInt32(-Int32FromInt32(1)) { + return uint64(0) + } + **(**Tsize_t)(__ccgo_up(c + 16)) += len2 + if (*Tcookie2)(unsafe.Pointer(c)).Fpos >= (*Tcookie2)(unsafe.Pointer(c)).Flen1 { + (*Tcookie2)(unsafe.Pointer(c)).Flen1 = (*Tcookie2)(unsafe.Pointer(c)).Fpos + } + **(**Tsize_t)(__ccgo_up((*Tcookie2)(unsafe.Pointer(c)).Fsizep)) = (*Tcookie2)(unsafe.Pointer(c)).Fpos + return len1 +} + +func _wms_close(tls *TLS, f uintptr) (r int32) { + return 0 +} + +func Xopen_wmemstream(tls *TLS, bufp uintptr, sizep uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v bufp=%v sizep=%v, (%v:)", tls, bufp, sizep, origin(2)) + defer func() { trc("-> %v", r) }() + } + var buf, f, v1 uintptr + var v3, v4, v5 Tsize_t + _, _, _, _, _, _ = buf, f, v1, v3, v4, v5 + v1 = Xmalloc(tls, uint64(296)) + f = v1 + if !(v1 != 0) { + return uintptr(0) + } + v1 = Xmalloc(tls, uint64(4)) + buf = v1 + if !(v1 != 0) { + Xfree(tls, f) + return uintptr(0) + } + Xmemset(tls, f, 0, uint64(232)) + Xmemset(tls, f+232, 0, uint64(56)) + (*Twms_FILE)(unsafe.Pointer(f)).Ff.Fcookie = f + 232 + (*Twms_FILE)(unsafe.Pointer(f)).Fc.Fbufp = bufp + (*Twms_FILE)(unsafe.Pointer(f)).Fc.Fsizep = sizep + v5 = Uint64FromInt32(0) + **(**Tsize_t)(__ccgo_up(sizep)) = v5 + v4 = v5 + (*Twms_FILE)(unsafe.Pointer(f)).Fc.Fspace = v4 + v3 = v4 + (*Twms_FILE)(unsafe.Pointer(f)).Fc.Flen1 = v3 + (*Twms_FILE)(unsafe.Pointer(f)).Fc.Fpos = v3 + v1 = buf + **(**uintptr)(__ccgo_up(bufp)) = v1 + (*Twms_FILE)(unsafe.Pointer(f)).Fc.Fbuf = v1 + **(**Twchar_t)(__ccgo_up(buf)) = 0 + (*Twms_FILE)(unsafe.Pointer(f)).Ff.Fflags = uint32(F_NORD) + (*Twms_FILE)(unsafe.Pointer(f)).Ff.Ffd = -int32(1) + (*Twms_FILE)(unsafe.Pointer(f)).Ff.Fbuf = f + 288 + (*Twms_FILE)(unsafe.Pointer(f)).Ff.Fbuf_size = uint64(0) + (*Twms_FILE)(unsafe.Pointer(f)).Ff.Flbf = -int32(1) + (*Twms_FILE)(unsafe.Pointer(f)).Ff.Fwrite = __ccgo_fp(_wms_write) + (*Twms_FILE)(unsafe.Pointer(f)).Ff.Fseek = __ccgo_fp(_wms_seek) + (*Twms_FILE)(unsafe.Pointer(f)).Ff.Fclose1 = __ccgo_fp(_wms_close) + if !(X__libc.Fthreaded != 0) { + AtomicStorePInt32(f+140, -int32(1)) + } + Xfwide(tls, f, int32(1)) + return X__ofl_add(tls, f) +} + +func Xpclose(tls *TLS, f uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var pid Tpid_t + var r, v1 int32 + var _ /* status at bp+0 */ int32 + _, _, _ = pid, r, v1 + pid = (*TFILE)(unsafe.Pointer(f)).Fpipe_pid + Xfclose(tls, f) + for { + v1 = int32(X__syscall4(tls, int64(SYS_wait4), int64(pid), int64(bp), int64(Int32FromInt32(0)), int64(Int32FromInt32(0)))) + r = v1 + if !(v1 == -int32(EINTR)) { + break + } + } + if r < 0 { + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) + } + return **(**int32)(__ccgo_up(bp)) +} + +func Xperror(tls *TLS, msg uintptr) { + if __ccgo_strace { + trc("tls=%v msg=%v, (%v:)", tls, msg, origin(2)) + } + var __need_unlock, old_mode, v1 int32 + var errstr, f, old_locale uintptr + _, _, _, _, _, _ = __need_unlock, errstr, f, old_locale, old_mode, v1 + f = uintptr(unsafe.Pointer(&X__stderr_FILE)) + errstr = Xstrerror(tls, **(**int32)(__ccgo_up(X__errno_location(tls)))) + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + /* Save stderr's orientation and encoding rule, since perror is not + * permitted to change them. */ + old_locale = (*TFILE)(unsafe.Pointer(f)).Flocale + old_mode = (*TFILE)(unsafe.Pointer(f)).Fmode + if msg != 0 && **(**uint8)(__ccgo_up(msg)) != 0 { + Xfwrite(tls, msg, _strlen(tls, msg), uint64(1), f) + Xfputc(tls, int32(':'), f) + Xfputc(tls, int32(' '), f) + } + Xfwrite(tls, errstr, _strlen(tls, errstr), uint64(1), f) + Xfputc(tls, int32('\n'), f) + (*TFILE)(unsafe.Pointer(f)).Fmode = old_mode + (*TFILE)(unsafe.Pointer(f)).Flocale = old_locale + if __need_unlock != 0 { + ___unlockfile(tls, f) + } +} + +func Xprintf(tls *TLS, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v va=%v, (%v:)", tls, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvfprintf(tls, uintptr(unsafe.Pointer(&X__stdout_FILE)), fmt, ap) + _ = ap + return ret +} + +func _locking_putc1(tls *TLS, c int32, f uintptr) (r int32) { + var old, old1, v1, v11, v3, v8 int32 + var v5, v6 uintptr + var v4 uint8 + _, _, _, _, _, _, _, _, _ = old, old1, v1, v11, v3, v4, v5, v6, v8 + // __asm__ __volatile__ ( + // + // "\n1: lr.w.aqrl %0, (%2)\n bne %0, %3, 1f\n sc.w.aqrl %1, %4, (%2)\n bnez %1, 1b\n1:" + // : "=&r"(old), "=&r"(tmp) + // : "r"(p), "r"((long)t), "r"((long)s) + // : "memory"); + X__assert_fail(tls, __ccgo_ts+353, __ccgo_ts+388, 11, __ccgo_ts+1560) + v1 = old + goto _2 +_2: + if v1 != 0 { + ___lockfile(tls, f) + } + if Int32FromUint8(Uint8FromInt32(c)) != (*TFILE)(unsafe.Pointer(f)).Flbf && (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwend { + v4 = Uint8FromInt32(c) + v6 = f + 40 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + **(**uint8)(__ccgo_up(v5)) = v4 + v1 = Int32FromUint8(v4) + } else { + v1 = X__overflow(tls, f, Int32FromUint8(Uint8FromInt32(c))) + } + c = v1 + v5 = f + 140 + for { + old1 = AtomicLoadPInt32(v5) + goto _10 + _10: + ; + // __asm__ __volatile__ ( + // + // "\n1: lr.w.aqrl %0, (%2)\n bne %0, %3, 1f\n sc.w.aqrl %1, %4, (%2)\n bnez %1, 1b\n1:" + // : "=&r"(old), "=&r"(tmp) + // : "r"(p), "r"((long)t), "r"((long)s) + // : "memory"); + X__assert_fail(tls, __ccgo_ts+353, __ccgo_ts+388, 11, __ccgo_ts+1560) + v1 = old + goto _9 + _9: + ; + if !(v1 != old1) { + break + } + } + v3 = old1 + goto _12 +_12: + if v3&int32(MAYBE_WAITERS) != 0 { + v6 = f + 140 + v8 = int32(1) + v11 = int32(1) + if v11 != 0 { + v11 = int32(FUTEX_PRIVATE) + } + if v8 < Int32FromInt32(0) { + v8 = int32(INT_MAX) + } + _ = X__syscall3(tls, int64(SYS_futex), int64(v6), int64(Int32FromInt32(FUTEX_WAKE)|v11), int64(v8)) != int64(-int32(ENOSYS)) || X__syscall3(tls, int64(SYS_futex), int64(v6), int64(Int32FromInt32(FUTEX_WAKE)), int64(v8)) != 0 + } + return c +} + +func Xputc(tls *TLS, c1 int32, f1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v c1=%v f1=%v, (%v:)", tls, c1, f1, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l, v1, v3, v5 int32 + var v2, v7, v8 uintptr + var v6 uint8 + _, _, _, _, _, _, _, _ = l, v1, v2, v3, v5, v6, v7, v8 + v1 = c1 + v2 = f1 + l = AtomicLoadPInt32(v2 + 140) + if l < 0 || l != 0 && l & ^Int32FromInt32(MAYBE_WAITERS) == (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Ftid { + if Int32FromUint8(Uint8FromInt32(v1)) != (*TFILE)(unsafe.Pointer(v2)).Flbf && (*TFILE)(unsafe.Pointer(v2)).Fwpos != (*TFILE)(unsafe.Pointer(v2)).Fwend { + v6 = Uint8FromInt32(v1) + v8 = v2 + 40 + v7 = *(*uintptr)(unsafe.Pointer(v8)) + *(*uintptr)(unsafe.Pointer(v8)) = *(*uintptr)(unsafe.Pointer(v8)) + 1 + **(**uint8)(__ccgo_up(v7)) = v6 + v5 = Int32FromUint8(v6) + } else { + v5 = X__overflow(tls, v2, Int32FromUint8(Uint8FromInt32(v1))) + } + v3 = v5 + goto _4 + } + v3 = _locking_putc1(tls, v1, v2) + goto _4 +_4: + return v3 +} + +func X_IO_putc(tls *TLS, c1 int32, f1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v c1=%v f1=%v, (%v:)", tls, c1, f1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xputc(tls, c1, f1) +} + +func Xputc_unlocked(tls *TLS, c int32, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v f=%v, (%v:)", tls, c, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + var v2 uint8 + var v3, v4 uintptr + _, _, _, _ = v1, v2, v3, v4 + if Int32FromUint8(Uint8FromInt32(c)) != (*TFILE)(unsafe.Pointer(f)).Flbf && (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwend { + v2 = Uint8FromInt32(c) + v4 = f + 40 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + **(**uint8)(__ccgo_up(v3)) = v2 + v1 = Int32FromUint8(v2) + } else { + v1 = X__overflow(tls, f, Int32FromUint8(Uint8FromInt32(c))) + } + return v1 +} + +func X_IO_putc_unlocked(tls *TLS, c int32, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v f=%v, (%v:)", tls, c, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xputc_unlocked(tls, c, f) +} + +func Xfputc_unlocked(tls *TLS, c int32, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v f=%v, (%v:)", tls, c, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xputc_unlocked(tls, c, f) +} + +func _locking_putc2(tls *TLS, c int32, f uintptr) (r int32) { + var old, old1, v1, v11, v3, v8 int32 + var v5, v6 uintptr + var v4 uint8 + _, _, _, _, _, _, _, _, _ = old, old1, v1, v11, v3, v4, v5, v6, v8 + // __asm__ __volatile__ ( + // + // "\n1: lr.w.aqrl %0, (%2)\n bne %0, %3, 1f\n sc.w.aqrl %1, %4, (%2)\n bnez %1, 1b\n1:" + // : "=&r"(old), "=&r"(tmp) + // : "r"(p), "r"((long)t), "r"((long)s) + // : "memory"); + X__assert_fail(tls, __ccgo_ts+353, __ccgo_ts+388, 11, __ccgo_ts+1560) + v1 = old + goto _2 +_2: + if v1 != 0 { + ___lockfile(tls, f) + } + if Int32FromUint8(Uint8FromInt32(c)) != (*TFILE)(unsafe.Pointer(f)).Flbf && (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwend { + v4 = Uint8FromInt32(c) + v6 = f + 40 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + **(**uint8)(__ccgo_up(v5)) = v4 + v1 = Int32FromUint8(v4) + } else { + v1 = X__overflow(tls, f, Int32FromUint8(Uint8FromInt32(c))) + } + c = v1 + v5 = f + 140 + for { + old1 = AtomicLoadPInt32(v5) + goto _10 + _10: + ; + // __asm__ __volatile__ ( + // + // "\n1: lr.w.aqrl %0, (%2)\n bne %0, %3, 1f\n sc.w.aqrl %1, %4, (%2)\n bnez %1, 1b\n1:" + // : "=&r"(old), "=&r"(tmp) + // : "r"(p), "r"((long)t), "r"((long)s) + // : "memory"); + X__assert_fail(tls, __ccgo_ts+353, __ccgo_ts+388, 11, __ccgo_ts+1560) + v1 = old + goto _9 + _9: + ; + if !(v1 != old1) { + break + } + } + v3 = old1 + goto _12 +_12: + if v3&int32(MAYBE_WAITERS) != 0 { + v6 = f + 140 + v8 = int32(1) + v11 = int32(1) + if v11 != 0 { + v11 = int32(FUTEX_PRIVATE) + } + if v8 < Int32FromInt32(0) { + v8 = int32(INT_MAX) + } + _ = X__syscall3(tls, int64(SYS_futex), int64(v6), int64(Int32FromInt32(FUTEX_WAKE)|v11), int64(v8)) != int64(-int32(ENOSYS)) || X__syscall3(tls, int64(SYS_futex), int64(v6), int64(Int32FromInt32(FUTEX_WAKE)), int64(v8)) != 0 + } + return c +} + +func Xputchar(tls *TLS, c1 int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c1=%v, (%v:)", tls, c1, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l, v1, v3, v5 int32 + var v2, v7, v8 uintptr + var v6 uint8 + _, _, _, _, _, _, _, _ = l, v1, v2, v3, v5, v6, v7, v8 + v1 = c1 + v2 = uintptr(unsafe.Pointer(&X__stdout_FILE)) + l = AtomicLoadPInt32(v2 + 140) + if l < 0 || l != 0 && l & ^Int32FromInt32(MAYBE_WAITERS) == (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Ftid { + if Int32FromUint8(Uint8FromInt32(v1)) != (*TFILE)(unsafe.Pointer(v2)).Flbf && (*TFILE)(unsafe.Pointer(v2)).Fwpos != (*TFILE)(unsafe.Pointer(v2)).Fwend { + v6 = Uint8FromInt32(v1) + v8 = v2 + 40 + v7 = *(*uintptr)(unsafe.Pointer(v8)) + *(*uintptr)(unsafe.Pointer(v8)) = *(*uintptr)(unsafe.Pointer(v8)) + 1 + **(**uint8)(__ccgo_up(v7)) = v6 + v5 = Int32FromUint8(v6) + } else { + v5 = X__overflow(tls, v2, Int32FromUint8(Uint8FromInt32(v1))) + } + v3 = v5 + goto _4 + } + v3 = _locking_putc2(tls, v1, v2) + goto _4 +_4: + return v3 +} + +func Xputchar_unlocked(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + var v2 uint8 + var v3, v4 uintptr + _, _, _, _ = v1, v2, v3, v4 + if Int32FromUint8(Uint8FromInt32(c)) != (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdout_FILE)))).Flbf && (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdout_FILE)))).Fwpos != (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdout_FILE)))).Fwend { + v2 = Uint8FromInt32(c) + v4 = uintptr(unsafe.Pointer(&X__stdout_FILE)) + 40 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + **(**uint8)(__ccgo_up(v3)) = v2 + v1 = Int32FromUint8(v2) + } else { + v1 = X__overflow(tls, uintptr(unsafe.Pointer(&X__stdout_FILE)), Int32FromUint8(Uint8FromInt32(c))) + } + return v1 +} + +func Xputs(tls *TLS, s uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var __need_unlock, r, v1, v2 int32 + var v3 uint8 + var v4, v5 uintptr + var v6 bool + _, _, _, _, _, _, _, _ = __need_unlock, r, v1, v2, v3, v4, v5, v6 + if AtomicLoadPInt32(uintptr(unsafe.Pointer(&X__stdout_FILE))+140) >= 0 { + v1 = ___lockfile(tls, uintptr(unsafe.Pointer(&X__stdout_FILE))) + } else { + v1 = 0 + } + __need_unlock = v1 + if v6 = Xfputs(tls, s, uintptr(unsafe.Pointer(&X__stdout_FILE))) < 0; !v6 { + if Int32FromUint8(Uint8FromInt32(Int32FromUint8('\n'))) != (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdout_FILE)))).Flbf && (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdout_FILE)))).Fwpos != (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdout_FILE)))).Fwend { + v3 = Uint8FromInt32(Int32FromUint8('\n')) + v5 = uintptr(unsafe.Pointer(&X__stdout_FILE)) + 40 + v4 = *(*uintptr)(unsafe.Pointer(v5)) + *(*uintptr)(unsafe.Pointer(v5)) = *(*uintptr)(unsafe.Pointer(v5)) + 1 + **(**uint8)(__ccgo_up(v4)) = v3 + v2 = Int32FromUint8(v3) + } else { + v2 = X__overflow(tls, uintptr(unsafe.Pointer(&X__stdout_FILE)), Int32FromUint8(Uint8FromInt32(Int32FromUint8('\n')))) + } + } + r = -BoolInt32(v6 || v2 < 0) + if __need_unlock != 0 { + ___unlockfile(tls, uintptr(unsafe.Pointer(&X__stdout_FILE))) + } + return r +} + +func Xputw(tls *TLS, _x int32, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v _x=%v f=%v, (%v:)", tls, _x, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + *(*int32)(unsafe.Pointer(bp)) = _x + return Int32FromUint64(Xfwrite(tls, bp, uint64(4), uint64(1), f)) - int32(1) +} + +func Xputwc(tls *TLS, c Twchar_t, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v f=%v, (%v:)", tls, c, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfputwc(tls, c, f) +} + +func Xputwchar(tls *TLS, c Twchar_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfputwc(tls, c, uintptr(unsafe.Pointer(&X__stdout_FILE))) +} + +func Xputwchar_unlocked(tls *TLS, c Twchar_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xputwchar(tls, c) +} + +func Xremove(tls *TLS, path uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v path=%v, (%v:)", tls, path, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + r = int32(X__syscall3(tls, int64(SYS_unlinkat), int64(-Int32FromInt32(100)), int64(path), int64(Int32FromInt32(0)))) + if r == -int32(EISDIR) { + r = int32(X__syscall3(tls, int64(SYS_unlinkat), int64(-Int32FromInt32(100)), int64(path), int64(Int32FromInt32(AT_REMOVEDIR)))) + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func Xrename(tls *TLS, old uintptr, new1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v old=%v new1=%v, (%v:)", tls, old, new1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_renameat2), int64(-Int32FromInt32(100)), int64(old), int64(-Int32FromInt32(100)), int64(new1), int64(Int32FromInt32(0)))))) +} + +func Xrewind(tls *TLS, f uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } + var __need_unlock, v1 int32 + _, _ = __need_unlock, v1 + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + X__fseeko_unlocked(tls, f, 0, 0) + **(**uint32)(__ccgo_up(f)) &= Uint32FromInt32(^Int32FromInt32(F_ERR)) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } +} + +func Xscanf(tls *TLS, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v va=%v, (%v:)", tls, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvscanf(tls, fmt, ap) + _ = ap + return ret +} + +func X__isoc99_scanf(tls *TLS, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v va=%v, (%v:)", tls, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xscanf(tls, fmt, va) +} + +func Xsetbuf(tls *TLS, f uintptr, buf uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v buf=%v, (%v:)", tls, f, buf, origin(2)) + } + var v1 int32 + _ = v1 + if buf != 0 { + v1 = _IOFBF + } else { + v1 = int32(_IONBF) + } + Xsetvbuf(tls, f, buf, v1, uint64(BUFSIZ)) +} + +func Xsetbuffer(tls *TLS, f uintptr, buf uintptr, size Tsize_t) { + if __ccgo_strace { + trc("tls=%v f=%v buf=%v size=%v, (%v:)", tls, f, buf, size, origin(2)) + } + var v1 int32 + _ = v1 + if buf != 0 { + v1 = _IOFBF + } else { + v1 = int32(_IONBF) + } + Xsetvbuf(tls, f, buf, v1, size) +} + +func Xsetlinebuf(tls *TLS, f uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } + Xsetvbuf(tls, f, uintptr(0), int32(_IOLBF), uint64(0)) +} + +/* The behavior of this function is undefined except when it is the first + * operation on the stream, so the presence or absence of locking is not + * observable in a program whose behavior is defined. Thus no locking is + * performed here. No allocation of buffers is performed, but a buffer + * provided by the caller is used as long as it is suitably sized. */ + +func Xsetvbuf(tls *TLS, f uintptr, buf uintptr, type1 int32, size Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v buf=%v type1=%v size=%v, (%v:)", tls, f, buf, type1, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + (*TFILE)(unsafe.Pointer(f)).Flbf = -int32(1) + if type1 == int32(_IONBF) { + (*TFILE)(unsafe.Pointer(f)).Fbuf_size = uint64(0) + } else { + if type1 == int32(_IOLBF) || type1 == _IOFBF { + if buf != 0 && size >= uint64(UNGET) { + (*TFILE)(unsafe.Pointer(f)).Fbuf = buf + UintptrFromInt32(UNGET) + (*TFILE)(unsafe.Pointer(f)).Fbuf_size = size - uint64(UNGET) + } + if type1 == int32(_IOLBF) && (*TFILE)(unsafe.Pointer(f)).Fbuf_size != 0 { + (*TFILE)(unsafe.Pointer(f)).Flbf = int32('\n') + } + } else { + return -int32(1) + } + } + **(**uint32)(__ccgo_up(f)) |= uint32(F_SVB) + return 0 +} + +func Xsnprintf(tls *TLS, s uintptr, n Tsize_t, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v fmt=%v va=%v, (%v:)", tls, s, n, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvsnprintf(tls, s, n, fmt, ap) + _ = ap + return ret +} + +func Xsprintf(tls *TLS, s uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v va=%v, (%v:)", tls, s, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvsprintf(tls, s, fmt, ap) + _ = ap + return ret +} + +func Xsscanf(tls *TLS, s uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v va=%v, (%v:)", tls, s, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvsscanf(tls, s, fmt, ap) + _ = ap + return ret +} + +func X__isoc99_sscanf(tls *TLS, s uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v va=%v, (%v:)", tls, s, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xsscanf(tls, s, fmt, va) +} + +var _buf5 [8]uint8 + +func init() { + p := unsafe.Pointer(&X__stderr_FILE) + *(*uintptr)(unsafe.Add(p, 24)) = __ccgo_fp(X__stdio_close) + *(*uintptr)(unsafe.Add(p, 72)) = __ccgo_fp(X__stdio_write) + *(*uintptr)(unsafe.Add(p, 80)) = __ccgo_fp(X__stdio_seek) +} + +var _buf6 [1032]uint8 + +func init() { + p := unsafe.Pointer(&X__stdin_FILE) + *(*uintptr)(unsafe.Add(p, 24)) = __ccgo_fp(X__stdio_close) + *(*uintptr)(unsafe.Add(p, 64)) = __ccgo_fp(X__stdio_read) + *(*uintptr)(unsafe.Add(p, 80)) = __ccgo_fp(X__stdio_seek) +} + +var _buf7 [1032]uint8 + +func init() { + p := unsafe.Pointer(&X__stdout_FILE) + *(*uintptr)(unsafe.Add(p, 24)) = __ccgo_fp(X__stdio_close) + *(*uintptr)(unsafe.Add(p, 72)) = __ccgo_fp(X__stdout_write) + *(*uintptr)(unsafe.Add(p, 80)) = __ccgo_fp(X__stdio_seek) +} + +func Xswprintf(tls *TLS, s uintptr, n Tsize_t, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v fmt=%v va=%v, (%v:)", tls, s, n, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvswprintf(tls, s, n, fmt, ap) + _ = ap + return ret +} + +func Xswscanf(tls *TLS, s uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v va=%v, (%v:)", tls, s, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvswscanf(tls, s, fmt, ap) + _ = ap + return ret +} + +func X__isoc99_swscanf(tls *TLS, s uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v va=%v, (%v:)", tls, s, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xswscanf(tls, s, fmt, va) +} + +const MAXTRIES = 100 + +func Xtempnam(tls *TLS, dir uintptr, pfx uintptr) (r1 uintptr) { + if __ccgo_strace { + trc("tls=%v dir=%v pfx=%v, (%v:)", tls, dir, pfx, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(4112) + defer tls.Free(4112) + var dl, l, pl Tsize_t + var r, try int32 + var _ /* s at bp+1 */ [4096]uint8 + _, _, _, _, _ = dl, l, pl, r, try + if !(dir != 0) { + dir = __ccgo_ts + 1612 + } + if !(pfx != 0) { + pfx = __ccgo_ts + 1617 + } + dl = _strlen(tls, dir) + pl = _strlen(tls, pfx) + l = dl + uint64(1) + pl + uint64(1) + uint64(6) + if l >= uint64(PATH_MAX) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENAMETOOLONG) + return uintptr(0) + } + Xmemcpy(tls, bp+1, dir, dl) + (**(**[4096]uint8)(__ccgo_up(bp + 1)))[dl] = uint8('/') + Xmemcpy(tls, bp+1+uintptr(dl)+uintptr(1), pfx, pl) + (**(**[4096]uint8)(__ccgo_up(bp + 1)))[dl+uint64(1)+pl] = uint8('_') + (**(**[4096]uint8)(__ccgo_up(bp + 1)))[l] = uint8(0) + try = 0 + for { + if !(try < int32(MAXTRIES)) { + break + } + ___randname(tls, bp+1+uintptr(l)-uintptr(6)) + *(*[1]uint8)(unsafe.Pointer(bp)) = [1]uint8{} + r = int32(X__syscall4(tls, int64(SYS_readlinkat), int64(-Int32FromInt32(100)), int64(bp+1), int64(bp), int64(Int32FromInt32(1)))) + if r == -int32(ENOENT) { + return Xstrdup(tls, bp+1) + } + goto _1 + _1: + ; + try = try + 1 + } + return uintptr(0) +} + +func Xtmpfile(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var f uintptr + var fd, try int32 + var _ /* s at bp+0 */ [20]uint8 + _, _, _ = f, fd, try + **(**[20]uint8)(__ccgo_up(bp)) = [20]uint8{'/', 't', 'm', 'p', '/', 't', 'm', 'p', 'f', 'i', 'l', 'e', '_', 'X', 'X', 'X', 'X', 'X', 'X'} + try = 0 + for { + if !(try < int32(MAXTRIES)) { + break + } + ___randname(tls, bp+uintptr(13)) + fd = int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_openat), int64(-Int32FromInt32(100)), int64(bp), int64(Int32FromInt32(O_RDWR)|Int32FromInt32(O_CREAT)|Int32FromInt32(O_EXCL)|Int32FromInt32(O_LARGEFILE)), int64(Int32FromInt32(0600)))))) + if fd >= 0 { + X__syscall3(tls, int64(SYS_unlinkat), int64(-Int32FromInt32(100)), int64(bp), int64(Int32FromInt32(0))) + f = X__fdopen(tls, fd, __ccgo_ts+1622) + if !(f != 0) { + X__syscall1(tls, int64(SYS_close), int64(fd)) + } + return f + } + goto _1 + _1: + ; + try = try + 1 + } + return uintptr(0) +} + +func Xtmpnam(tls *TLS, buf uintptr) (r1 uintptr) { + if __ccgo_strace { + trc("tls=%v buf=%v, (%v:)", tls, buf, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var r, try int32 + var v2 uintptr + var _ /* s at bp+1 */ [19]uint8 + _, _, _ = r, try, v2 + **(**[19]uint8)(__ccgo_up(bp + 1)) = [19]uint8{'/', 't', 'm', 'p', '/', 't', 'm', 'p', 'n', 'a', 'm', '_', 'X', 'X', 'X', 'X', 'X', 'X'} + try = 0 + for { + if !(try < int32(MAXTRIES)) { + break + } + ___randname(tls, bp+1+uintptr(12)) + *(*[1]uint8)(unsafe.Pointer(bp)) = [1]uint8{} + r = int32(X__syscall4(tls, int64(SYS_readlinkat), int64(-Int32FromInt32(100)), int64(bp+1), int64(bp), int64(Int32FromInt32(1)))) + if r == -int32(ENOENT) { + if buf != 0 { + v2 = buf + } else { + v2 = uintptr(unsafe.Pointer(&_internal1)) + } + return Xstrcpy(tls, v2, bp+1) + } + goto _1 + _1: + ; + try = try + 1 + } + return uintptr(0) +} + +var _internal1 [20]uint8 + +func Xungetc(tls *TLS, c int32, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v f=%v, (%v:)", tls, c, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, v1 int32 + var v2, v3 uintptr + _, _, _, _ = __need_unlock, v1, v2, v3 + if c == -int32(1) { + return c + } + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + if !((*TFILE)(unsafe.Pointer(f)).Frpos != 0) { + X__toread(tls, f) + } + if !((*TFILE)(unsafe.Pointer(f)).Frpos != 0) || (*TFILE)(unsafe.Pointer(f)).Frpos <= (*TFILE)(unsafe.Pointer(f)).Fbuf-uintptr(UNGET) { + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return -int32(1) + } + v3 = f + 8 + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) - 1 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + **(**uint8)(__ccgo_up(v2)) = Uint8FromInt32(c) + **(**uint32)(__ccgo_up(f)) &= Uint32FromInt32(^Int32FromInt32(F_EOF)) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return Int32FromUint8(Uint8FromInt32(c)) +} + +func Xungetwc(tls *TLS, c Twint_t, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v f=%v, (%v:)", tls, c, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var __need_unlock, l, v1 int32 + var loc Tlocale_t + var ploc, v4, v5 uintptr + var v3 bool + var _ /* mbc at bp+0 */ [4]uint8 + _, _, _, _, _, _, _, _ = __need_unlock, l, loc, ploc, v1, v3, v4, v5 + ploc = uintptr(___get_tp(tls)) + 152 + loc = **(**Tlocale_t)(__ccgo_up(ploc)) + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + if (*TFILE)(unsafe.Pointer(f)).Fmode <= 0 { + Xfwide(tls, f, int32(1)) + } + **(**Tlocale_t)(__ccgo_up(ploc)) = (*TFILE)(unsafe.Pointer(f)).Flocale + if !((*TFILE)(unsafe.Pointer(f)).Frpos != 0) { + X__toread(tls, f) + } + if v3 = !((*TFILE)(unsafe.Pointer(f)).Frpos != 0) || c == uint32(0xffffffff); !v3 { + v1 = Int32FromUint64(Xwcrtomb(tls, bp, Int32FromUint32(c), uintptr(0))) + l = v1 + } + if v3 || v1 < 0 || (*TFILE)(unsafe.Pointer(f)).Frpos < (*TFILE)(unsafe.Pointer(f)).Fbuf-uintptr(UNGET)+uintptr(l) { + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + **(**Tlocale_t)(__ccgo_up(ploc)) = loc + return uint32(0xffffffff) + } + if BoolInt32(c < uint32(128)) != 0 { + v5 = f + 8 + *(*uintptr)(unsafe.Pointer(v5)) = *(*uintptr)(unsafe.Pointer(v5)) - 1 + v4 = *(*uintptr)(unsafe.Pointer(v5)) + **(**uint8)(__ccgo_up(v4)) = uint8(c) + } else { + v4 = f + 8 + *(*uintptr)(unsafe.Pointer(v4)) -= uintptr(l) + Xmemcpy(tls, *(*uintptr)(unsafe.Pointer(v4)), bp, Uint64FromInt32(l)) + } + **(**uint32)(__ccgo_up(f)) &= Uint32FromInt32(^Int32FromInt32(F_EOF)) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + **(**Tlocale_t)(__ccgo_up(ploc)) = loc + return c +} + +func Xvasprintf(tls *TLS, s uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v ap=%v, (%v:)", tls, s, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap2 Tva_list + var l int32 + var v1 uintptr + var v2 bool + _, _, _, _ = ap2, l, v1, v2 + ap2 = ap + l = Xvsnprintf(tls, uintptr(0), uint64(0), fmt, ap2) + _ = ap2 + if v2 = l < 0; !v2 { + v1 = Xmalloc(tls, uint64(Uint32FromInt32(l)+uint32(1))) + **(**uintptr)(__ccgo_up(s)) = v1 + } + if v2 || !(v1 != 0) { + return -int32(1) + } + return Xvsnprintf(tls, **(**uintptr)(__ccgo_up(s)), uint64(Uint32FromInt32(l)+uint32(1)), fmt, ap) +} + +func Xvdprintf(tls *TLS, fd int32, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v fmt=%v ap=%v, (%v:)", tls, fd, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(240) + defer tls.Free(240) + var _ /* f at bp+0 */ TFILE + **(**TFILE)(__ccgo_up(bp)) = TFILE{ + Fwrite: __ccgo_fp(X__stdio_write), + Fbuf: fmt, + Ffd: fd, + Flock: -int32(1), + Flbf: -int32(1), + } + return Xvfprintf(tls, bp, fmt, ap) +} + +const ALT_FORM = 8 +const FLAGMASK = 75913 +const GROUPED = 128 +const LDBL_EPSILON3 = 2.22044604925031308085e-16 +const LEFT_ADJ = 8192 +const MARK_POS = 2048 +const PAD_POS = 1 +const ZERO_PAD = 65536 + +const _BARE = 0 +const _LPRE = 1 +const _LLPRE = 2 +const _HPRE = 3 +const _HHPRE = 4 +const _BIGLPRE = 5 +const _ZTPRE = 6 +const _JPRE = 7 +const _STOP = 8 +const _PTR = 9 +const _INT = 10 +const _UINT = 11 +const _ULLONG = 12 +const _LONG = 13 +const _ULONG = 14 +const _SHORT = 15 +const _USHORT = 16 +const _CHAR = 17 +const _UCHAR = 18 +const _LLONG = 19 +const _SIZET = 20 +const _IMAX = 21 +const _UMAX = 22 +const _PDIFF = 23 +const _UIPTR = 24 +const _DBL = 25 +const _LDBL = 26 +const _NOARG = 27 +const _MAXSTATE = 28 + +var _states = [8][58]uint8{ + 0: { + 0: uint8(_DBL), + 2: uint8(_UINT), + 4: uint8(_DBL), + 5: uint8(_DBL), + 6: uint8(_DBL), + 11: uint8(_BIGLPRE), + 18: uint8(_PTR), + 23: uint8(_UINT), + 32: uint8(_DBL), + 34: uint8(_INT), + 35: uint8(_INT), + 36: uint8(_DBL), + 37: uint8(_DBL), + 38: uint8(_DBL), + 39: uint8(_HPRE), + 40: uint8(_INT), + 41: uint8(_JPRE), + 43: uint8(_LPRE), + 44: uint8(_NOARG), + 45: uint8(_PTR), + 46: uint8(_UINT), + 47: uint8(_UIPTR), + 50: uint8(_PTR), + 51: uint8(_ZTPRE), + 52: uint8(_UINT), + 55: uint8(_UINT), + 57: uint8(_ZTPRE), + }, + 1: { + 0: uint8(_DBL), + 4: uint8(_DBL), + 5: uint8(_DBL), + 6: uint8(_DBL), + 23: uint8(_ULONG), + 32: uint8(_DBL), + 34: uint8(_UINT), + 35: uint8(_LONG), + 36: uint8(_DBL), + 37: uint8(_DBL), + 38: uint8(_DBL), + 40: uint8(_LONG), + 43: uint8(_LLPRE), + 45: uint8(_PTR), + 46: uint8(_ULONG), + 50: uint8(_PTR), + 52: uint8(_ULONG), + 55: uint8(_ULONG), + }, + 2: { + 23: uint8(_ULLONG), + 35: uint8(_LLONG), + 40: uint8(_LLONG), + 45: uint8(_PTR), + 46: uint8(_ULLONG), + 52: uint8(_ULLONG), + 55: uint8(_ULLONG), + }, + 3: { + 23: uint8(_USHORT), + 35: uint8(_SHORT), + 39: uint8(_HHPRE), + 40: uint8(_SHORT), + 45: uint8(_PTR), + 46: uint8(_USHORT), + 52: uint8(_USHORT), + 55: uint8(_USHORT), + }, + 4: { + 23: uint8(_UCHAR), + 35: uint8(_CHAR), + 40: uint8(_CHAR), + 45: uint8(_PTR), + 46: uint8(_UCHAR), + 52: uint8(_UCHAR), + 55: uint8(_UCHAR), + }, + 5: { + 0: uint8(_LDBL), + 4: uint8(_LDBL), + 5: uint8(_LDBL), + 6: uint8(_LDBL), + 32: uint8(_LDBL), + 36: uint8(_LDBL), + 37: uint8(_LDBL), + 38: uint8(_LDBL), + 45: uint8(_PTR), + }, + 6: { + 23: uint8(_SIZET), + 35: uint8(_PDIFF), + 40: uint8(_PDIFF), + 45: uint8(_PTR), + 46: uint8(_SIZET), + 52: uint8(_SIZET), + 55: uint8(_SIZET), + }, + 7: { + 23: uint8(_UMAX), + 35: uint8(_IMAX), + 40: uint8(_IMAX), + 45: uint8(_PTR), + 46: uint8(_UMAX), + 52: uint8(_UMAX), + 55: uint8(_UMAX), + }, +} + +type Targ = struct { + Ff [0]float64 + Fp [0]uintptr + Fi Tuintmax_t +} + +func _pop_arg(tls *TLS, arg uintptr, type1 int32, ap uintptr) { + switch type1 { + case int32(_PTR): + *(*uintptr)(unsafe.Pointer(arg)) = VaUintptr(&**(**Tva_list)(__ccgo_up(ap))) + case int32(_INT): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt32(VaInt32(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_UINT): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(VaUint32(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_LONG): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt64(VaInt64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_ULONG): + (*Targ)(unsafe.Pointer(arg)).Fi = VaUint64(&**(**Tva_list)(__ccgo_up(ap))) + case int32(_ULLONG): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(VaUint64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_SHORT): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt16(int16(VaInt32(&**(**Tva_list)(__ccgo_up(ap))))) + case int32(_USHORT): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(Uint16FromInt32(VaInt32(&**(**Tva_list)(__ccgo_up(ap))))) + case int32(_CHAR): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt8(int8(VaInt32(&**(**Tva_list)(__ccgo_up(ap))))) + case int32(_UCHAR): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(Uint8FromInt32(VaInt32(&**(**Tva_list)(__ccgo_up(ap))))) + case int32(_LLONG): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt64(VaInt64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_SIZET): + (*Targ)(unsafe.Pointer(arg)).Fi = VaUint64(&**(**Tva_list)(__ccgo_up(ap))) + case int32(_IMAX): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt64(VaInt64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_UMAX): + (*Targ)(unsafe.Pointer(arg)).Fi = VaUint64(&**(**Tva_list)(__ccgo_up(ap))) + case int32(_PDIFF): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt64(VaInt64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_UIPTR): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(VaUintptr(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_DBL): + *(*float64)(unsafe.Pointer(arg)) = float64(VaFloat64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_LDBL): + *(*float64)(unsafe.Pointer(arg)) = VaFloat64(&**(**Tva_list)(__ccgo_up(ap))) + } +} + +func _out(tls *TLS, f uintptr, s uintptr, l Tsize_t) { + if !((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_ERR) != 0) { + X__fwritex(tls, s, l, f) + } +} + +func _pad3(tls *TLS, f uintptr, c uint8, w int32, l int32, fl int32) { + bp := tls.Alloc(256) + defer tls.Free(256) + var v1 uint64 + var _ /* pad at bp+0 */ [256]uint8 + _ = v1 + if Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8('0')-Int32FromUint8(' '))) != 0 || l >= w { + return + } + l = w - l + if Uint64FromInt32(l) > uint64(256) { + v1 = uint64(256) + } else { + v1 = Uint64FromInt32(l) + } + Xmemset(tls, bp, Int32FromUint8(c), v1) + for { + if !(Uint64FromInt32(l) >= uint64(256)) { + break + } + _out(tls, f, bp, uint64(256)) + goto _2 + _2: + ; + l = Int32FromUint64(uint64(l) - Uint64FromInt64(256)) + } + _out(tls, f, bp, Uint64FromInt32(l)) +} + +var _xdigits1 = [16]uint8{'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'} + +func _fmt_x(tls *TLS, x Tuintmax_t, s uintptr, lower int32) (r uintptr) { + var v2 uintptr + _ = v2 + for { + if !(x != 0) { + break + } + s = s - 1 + v2 = s + **(**uint8)(__ccgo_up(v2)) = Uint8FromInt32(Int32FromUint8(_xdigits1[x&uint64(15)]) | lower) + goto _1 + _1: + ; + x = x >> uint64(4) + } + return s +} + +func _fmt_o(tls *TLS, x Tuintmax_t, s uintptr) (r uintptr) { + var v2 uintptr + _ = v2 + for { + if !(x != 0) { + break + } + s = s - 1 + v2 = s + **(**uint8)(__ccgo_up(v2)) = uint8(uint64('0') + x&uint64(7)) + goto _1 + _1: + ; + x = x >> uint64(3) + } + return s +} + +func _fmt_u(tls *TLS, x Tuintmax_t, s uintptr) (r uintptr) { + var y uint64 + var v2 uintptr + _, _ = y, v2 + for { + if !(x > Uint64FromUint64(2)*Uint64FromInt64(0x7fffffffffffffff)+Uint64FromInt32(1)) { + break + } + s = s - 1 + v2 = s + **(**uint8)(__ccgo_up(v2)) = uint8(uint64('0') + x%uint64(10)) + goto _1 + _1: + ; + x = x / uint64(10) + } + y = x + for { + if !(y != 0) { + break + } + s = s - 1 + v2 = s + **(**uint8)(__ccgo_up(v2)) = uint8(uint64('0') + y%uint64(10)) + goto _3 + _3: + ; + y = y / uint64(10) + } + return s +} + +// C documentation +// +// /* Do not override this check. The floating point printing code below +// * depends on the float.h constants being right. If they are wrong, it +// * may overflow the stack. */ +type Tcompiler_defines_long_double_incorrectly = [1]uint8 + +func _fmt_fp(tls *TLS, f uintptr, y float64, w int32, p int32, fl int32, t int32) (r1 int32) { + bp := tls.Alloc(560) + defer tls.Free(560) + var a, b, d, ebuf, estr, prefix, r, s, s1, s2, s3, s4, z, v5, v6 uintptr + var carry, carry1, rm, x2 Tuint32_t + var e, i, j, l, need, pl, re, sh, sh1, x, v7 int32 + var round, round1, small float64 + var x1 Tuint64_t + var v1 uint64 + var v36, v37, v38 int64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + var _ /* big at bp+8 */ [126]Tuint32_t + var _ /* buf at bp+516 */ [22]uint8 + var _ /* e2 at bp+512 */ int32 + var _ /* ebuf0 at bp+538 */ [12]uint8 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = a, b, carry, carry1, d, e, ebuf, estr, i, j, l, need, pl, prefix, r, re, rm, round, round1, s, s1, s2, s3, s4, sh, sh1, small, x, x1, x2, z, v1, v36, v37, v38, v5, v6, v7 + **(**int32)(__ccgo_up(bp + 512)) = 0 + prefix = __ccgo_ts + 1625 + ebuf = bp + 538 + uintptr(Uint64FromInt32(3)*Uint64FromInt64(4)) + pl = int32(1) + *(*float64)(unsafe.Pointer(bp)) = y + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + if Int32FromUint64(v1>>Int32FromInt32(63)) != 0 { + y = -y + } else { + if Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('+')-Int32FromUint8(' '))) != 0 { + prefix = prefix + uintptr(3) + } else { + if Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8(' ')-Int32FromUint8(' '))) != 0 { + prefix = prefix + uintptr(6) + } else { + prefix = prefix + 1 + pl = Int32FromInt32(0) + } + } + } + *(*float64)(unsafe.Pointer(bp)) = y + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _4 +_4: + if !(BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) < Uint64FromUint64(0x7ff)< int32(3)+pl { + v7 = w + } else { + v7 = int32(3) + pl + } + return v7 + } + y = float64(Xfrexpl(tls, y, bp+512) * Float64FromInt32(2)) + if y != 0 { + **(**int32)(__ccgo_up(bp + 512)) = **(**int32)(__ccgo_up(bp + 512)) - 1 + } + if t|int32(32) == int32('a') { + round = Float64FromFloat64(8) + if t&int32(32) != 0 { + prefix = prefix + uintptr(9) + } + pl = pl + int32(2) + if p < 0 || p >= Int32FromInt32(LDBL_MANT_DIG)/Int32FromInt32(4)-Int32FromInt32(1) { + re = 0 + } else { + re = Int32FromInt32(LDBL_MANT_DIG)/Int32FromInt32(4) - Int32FromInt32(1) - p + } + if re != 0 { + round = round * float64(Int32FromInt32(1)<<(Int32FromInt32(LDBL_MANT_DIG)%Int32FromInt32(4))) + for { + v7 = re + re = re - 1 + if !(v7 != 0) { + break + } + round = round * Float64FromInt32(16) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(prefix))) == int32('-') { + y = -y + y = y - round + y = y + round + y = -y + } else { + y = y + round + y = y - round + } + } + if **(**int32)(__ccgo_up(bp + 512)) < 0 { + v7 = -**(**int32)(__ccgo_up(bp + 512)) + } else { + v7 = **(**int32)(__ccgo_up(bp + 512)) + } + estr = _fmt_u(tls, Uint64FromInt32(v7), ebuf) + if estr == ebuf { + estr = estr - 1 + v5 = estr + **(**uint8)(__ccgo_up(v5)) = uint8('0') + } + estr = estr - 1 + v5 = estr + if **(**int32)(__ccgo_up(bp + 512)) < 0 { + v7 = int32('-') + } else { + v7 = int32('+') + } + **(**uint8)(__ccgo_up(v5)) = Uint8FromInt32(v7) + estr = estr - 1 + v5 = estr + **(**uint8)(__ccgo_up(v5)) = Uint8FromInt32(t + (Int32FromUint8('p') - Int32FromUint8('a'))) + s = bp + 516 + for cond := true; cond; cond = y != 0 { + x = int32(y) + v5 = s + s = s + 1 + **(**uint8)(__ccgo_up(v5)) = Uint8FromInt32(Int32FromUint8(_xdigits1[x]) | t&int32(32)) + y = float64(Float64FromInt32(16) * (y - float64(x))) + if int64(s)-t__predefined_ptrdiff_t(bp+516) == int64(1) && (y != 0 || p > 0 || Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0) { + v5 = s + s = s + 1 + **(**uint8)(__ccgo_up(v5)) = uint8('.') + } + } + if int64(p) > int64(Int32FromInt32(INT_MAX)-Int32FromInt32(2))-(int64(ebuf)-int64(estr))-int64(pl) { + return -int32(1) + } + if p != 0 && int64(s)-t__predefined_ptrdiff_t(bp+516)-int64(2) < int64(p) { + l = int32(int64(p+Int32FromInt32(2)) + (int64(ebuf) - int64(estr))) + } else { + l = int32(int64(s) - t__predefined_ptrdiff_t(bp+516) + (int64(ebuf) - int64(estr))) + } + _pad3(tls, f, uint8(' '), w, pl+l, fl) + _out(tls, f, prefix, Uint64FromInt32(pl)) + _pad3(tls, f, uint8('0'), w, pl+l, Int32FromUint32(Uint32FromInt32(fl)^Uint32FromUint32(1)<<(Int32FromUint8('0')-Int32FromUint8(' ')))) + _out(tls, f, bp+516, Uint64FromInt64(int64(s)-t__predefined_ptrdiff_t(bp+516))) + _pad3(tls, f, uint8('0'), int32(int64(l)-(int64(ebuf)-int64(estr))-(int64(s)-t__predefined_ptrdiff_t(bp+516))), 0, 0) + _out(tls, f, estr, Uint64FromInt64(int64(ebuf)-int64(estr))) + _pad3(tls, f, uint8(' '), w, pl+l, Int32FromUint32(Uint32FromInt32(fl)^Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' ')))) + if w > pl+l { + v7 = w + } else { + v7 = pl + l + } + return v7 + } + if p < 0 { + p = int32(6) + } + if y != 0 { + y = y * Float64FromFloat64(2.68435456e+08) + **(**int32)(__ccgo_up(bp + 512)) = **(**int32)(__ccgo_up(bp + 512)) - int32(28) + } + if **(**int32)(__ccgo_up(bp + 512)) < 0 { + v6 = bp + 8 + z = v6 + v5 = v6 + r = v5 + a = v5 + } else { + v6 = bp + 8 + uintptr(Uint64FromInt64(504)/Uint64FromInt64(4))*4 - UintptrFromInt32(LDBL_MANT_DIG)*4 - UintptrFromInt32(1)*4 + z = v6 + v5 = v6 + r = v5 + a = v5 + } + for cond := true; cond; cond = y != 0 { + **(**Tuint32_t)(__ccgo_up(z)) = uint32(y) + v5 = z + z += 4 + y = float64(Float64FromInt32(1000000000) * (y - float64(**(**Tuint32_t)(__ccgo_up(v5))))) + } + for **(**int32)(__ccgo_up(bp + 512)) > 0 { + carry = uint32(0) + if int32(29) < **(**int32)(__ccgo_up(bp + 512)) { + v7 = int32(29) + } else { + v7 = **(**int32)(__ccgo_up(bp + 512)) + } + sh = v7 + d = z - uintptr(1)*4 + for { + if !(d >= a) { + break + } + x1 = uint64(**(**Tuint32_t)(__ccgo_up(d)))< a && !(**(**Tuint32_t)(__ccgo_up(z + uintptr(-Int32FromInt32(1))*4)) != 0) { + z -= 4 + } + **(**int32)(__ccgo_up(bp + 512)) = **(**int32)(__ccgo_up(bp + 512)) - sh + } + for **(**int32)(__ccgo_up(bp + 512)) < 0 { + carry1 = uint32(0) + if int32(9) < -**(**int32)(__ccgo_up(bp + 512)) { + v7 = int32(9) + } else { + v7 = -**(**int32)(__ccgo_up(bp + 512)) + } + sh1 = v7 + need = Int32FromUint32(uint32(1) + (Uint32FromInt32(p)+Uint32FromInt32(LDBL_MANT_DIG)/Uint32FromUint32(3)+uint32(8))/uint32(9)) + d = a + for { + if !(d < z) { + break + } + rm = **(**Tuint32_t)(__ccgo_up(d)) & Uint32FromInt32(int32(1)<>sh1 + carry1 + carry1 = Uint32FromInt32(Int32FromInt32(1000000000)>>sh1) * rm + goto _26 + _26: + ; + d += 4 + } + if !(**(**Tuint32_t)(__ccgo_up(a)) != 0) { + a += 4 + } + if carry1 != 0 { + v5 = z + z += 4 + **(**Tuint32_t)(__ccgo_up(v5)) = carry1 + } + /* Avoid (slow!) computation past requested precision */ + if t|int32(32) == int32('f') { + v5 = r + } else { + v5 = a + } + b = v5 + if (int64(z)-int64(b))/4 > int64(need) { + z = b + uintptr(need)*4 + } + **(**int32)(__ccgo_up(bp + 512)) = **(**int32)(__ccgo_up(bp + 512)) + sh1 + } + if a < z { + i = int32(10) + e = int32(Int64FromInt32(9) * ((int64(r) - int64(a)) / 4)) + for { + if !(**(**Tuint32_t)(__ccgo_up(a)) >= Uint32FromInt32(i)) { + break + } + goto _29 + _29: + ; + i = i * int32(10) + e = e + 1 + } + } else { + e = 0 + } + /* Perform rounding: j is precision after the radix (possibly neg) */ + j = p - BoolInt32(t|int32(32) != int32('f'))*e - BoolInt32(t|int32(32) == int32('g') && p != 0) + if int64(j) < int64(9)*((int64(z)-int64(r))/4-int64(1)) { + /* We avoid C's broken division of negative numbers */ + d = r + uintptr(1)*4 + uintptr((j+Int32FromInt32(9)*Int32FromInt32(LDBL_MAX_EXP))/Int32FromInt32(9)-Int32FromInt32(LDBL_MAX_EXP))*4 + j = j + Int32FromInt32(9)*Int32FromInt32(LDBL_MAX_EXP) + j = j % int32(9) + i = int32(10) + j = j + 1 + for { + if !(j < int32(9)) { + break + } + goto _30 + _30: + ; + i = i * int32(10) + j = j + 1 + } + x2 = **(**Tuint32_t)(__ccgo_up(d)) % Uint32FromInt32(i) + /* Are there any significant digits past j? */ + if x2 != 0 || d+uintptr(1)*4 != z { + round1 = Float64FromInt32(2) / Float64FromFloat64(2.22044604925031308085e-16) + if **(**Tuint32_t)(__ccgo_up(d))/Uint32FromInt32(i)&uint32(1) != 0 || i == int32(1000000000) && d > a && **(**Tuint32_t)(__ccgo_up(d + uintptr(-Int32FromInt32(1))*4))&uint32(1) != 0 { + round1 = round1 + Float64FromInt32(2) + } + if x2 < Uint32FromInt32(i/int32(2)) { + small = Float64FromFloat64(0.5) + } else { + if x2 == Uint32FromInt32(i/int32(2)) && d+uintptr(1)*4 == z { + small = Float64FromFloat64(1) + } else { + small = Float64FromFloat64(1.5) + } + } + if pl != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(prefix))) == int32('-') { + round1 = round1 * float64(-Int32FromInt32(1)) + small = small * float64(-Int32FromInt32(1)) + } + **(**Tuint32_t)(__ccgo_up(d)) -= x2 + /* Decide whether to round by probing round+small */ + if round1+small != round1 { + **(**Tuint32_t)(__ccgo_up(d)) = **(**Tuint32_t)(__ccgo_up(d)) + Uint32FromInt32(i) + for **(**Tuint32_t)(__ccgo_up(d)) > uint32(999999999) { + v5 = d + d -= 4 + **(**Tuint32_t)(__ccgo_up(v5)) = uint32(0) + if d < a { + a -= 4 + v5 = a + **(**Tuint32_t)(__ccgo_up(v5)) = uint32(0) + } + **(**Tuint32_t)(__ccgo_up(d)) = **(**Tuint32_t)(__ccgo_up(d)) + 1 + } + i = int32(10) + e = int32(Int64FromInt32(9) * ((int64(r) - int64(a)) / 4)) + for { + if !(**(**Tuint32_t)(__ccgo_up(a)) >= Uint32FromInt32(i)) { + break + } + goto _33 + _33: + ; + i = i * int32(10) + e = e + 1 + } + } + } + if z > d+uintptr(1)*4 { + z = d + uintptr(1)*4 + } + } + for { + if !(z > a && !(**(**Tuint32_t)(__ccgo_up(z + uintptr(-Int32FromInt32(1))*4)) != 0)) { + break + } + goto _34 + _34: + ; + z -= 4 + } + if t|int32(32) == int32('g') { + if !(p != 0) { + p = p + 1 + } + if p > e && e >= -int32(4) { + t = t - 1 + p = p - (e + int32(1)) + } else { + t = t - int32(2) + p = p - 1 + } + if !(Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0) { + /* Count trailing zeros in last place */ + if z > a && **(**Tuint32_t)(__ccgo_up(z + uintptr(-Int32FromInt32(1))*4)) != 0 { + i = int32(10) + j = Int32FromInt32(0) + for { + if !(**(**Tuint32_t)(__ccgo_up(z + uintptr(-Int32FromInt32(1))*4))%Uint32FromInt32(i) == uint32(0)) { + break + } + goto _35 + _35: + ; + i = i * int32(10) + j = j + 1 + } + } else { + j = int32(9) + } + if t|int32(32) == int32('f') { + if int64(Int32FromInt32(0)) > int64(9)*((int64(z)-int64(r))/4-int64(1))-int64(j) { + v37 = int64(Int32FromInt32(0)) + } else { + v37 = int64(9)*((int64(z)-int64(r))/4-int64(1)) - int64(j) + } + if int64(p) < v37 { + v36 = int64(p) + } else { + if int64(Int32FromInt32(0)) > int64(9)*((int64(z)-int64(r))/4-int64(1))-int64(j) { + v38 = int64(Int32FromInt32(0)) + } else { + v38 = int64(9)*((int64(z)-int64(r))/4-int64(1)) - int64(j) + } + v36 = v38 + } + p = int32(v36) + } else { + if int64(Int32FromInt32(0)) > int64(9)*((int64(z)-int64(r))/4-int64(1))+int64(e)-int64(j) { + v37 = int64(Int32FromInt32(0)) + } else { + v37 = int64(9)*((int64(z)-int64(r))/4-int64(1)) + int64(e) - int64(j) + } + if int64(p) < v37 { + v36 = int64(p) + } else { + if int64(Int32FromInt32(0)) > int64(9)*((int64(z)-int64(r))/4-int64(1))+int64(e)-int64(j) { + v38 = int64(Int32FromInt32(0)) + } else { + v38 = int64(9)*((int64(z)-int64(r))/4-int64(1)) + int64(e) - int64(j) + } + v36 = v38 + } + p = int32(v36) + } + } + } + if p > Int32FromInt32(INT_MAX)-Int32FromInt32(1)-BoolInt32(p != 0 || Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0) { + return -int32(1) + } + l = int32(1) + p + BoolInt32(p != 0 || Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0) + if t|int32(32) == int32('f') { + if e > int32(INT_MAX)-l { + return -int32(1) + } + if e > 0 { + l = l + e + } + } else { + if e < 0 { + v7 = -e + } else { + v7 = e + } + estr = _fmt_u(tls, Uint64FromInt32(v7), ebuf) + for int64(ebuf)-int64(estr) < int64(2) { + estr = estr - 1 + v5 = estr + **(**uint8)(__ccgo_up(v5)) = uint8('0') + } + estr = estr - 1 + v5 = estr + if e < 0 { + v7 = int32('-') + } else { + v7 = int32('+') + } + **(**uint8)(__ccgo_up(v5)) = Uint8FromInt32(v7) + estr = estr - 1 + v5 = estr + **(**uint8)(__ccgo_up(v5)) = Uint8FromInt32(t) + if int64(ebuf)-int64(estr) > int64(int32(INT_MAX)-l) { + return -int32(1) + } + l = int32(int64(l) + (int64(ebuf) - int64(estr))) + } + if l > int32(INT_MAX)-pl { + return -int32(1) + } + _pad3(tls, f, uint8(' '), w, pl+l, fl) + _out(tls, f, prefix, Uint64FromInt32(pl)) + _pad3(tls, f, uint8('0'), w, pl+l, Int32FromUint32(Uint32FromInt32(fl)^Uint32FromUint32(1)<<(Int32FromUint8('0')-Int32FromUint8(' ')))) + if t|int32(32) == int32('f') { + if a > r { + a = r + } + d = a + for { + if !(d <= r) { + break + } + s2 = _fmt_u(tls, uint64(**(**Tuint32_t)(__ccgo_up(d))), bp+516+uintptr(9)) + if d != a { + for s2 > bp+516 { + s2 = s2 - 1 + v5 = s2 + **(**uint8)(__ccgo_up(v5)) = uint8('0') + } + } else { + if s2 == bp+516+uintptr(9) { + s2 = s2 - 1 + v5 = s2 + **(**uint8)(__ccgo_up(v5)) = uint8('0') + } + } + _out(tls, f, s2, Uint64FromInt64(int64(bp+516+uintptr(9))-int64(s2))) + goto _47 + _47: + ; + d += 4 + } + if p != 0 || Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0 { + _out(tls, f, __ccgo_ts+607, uint64(1)) + } + for { + if !(d < z && p > 0) { + break + } + s3 = _fmt_u(tls, uint64(**(**Tuint32_t)(__ccgo_up(d))), bp+516+uintptr(9)) + for s3 > bp+516 { + s3 = s3 - 1 + v5 = s3 + **(**uint8)(__ccgo_up(v5)) = uint8('0') + } + if int32(9) < p { + v7 = int32(9) + } else { + v7 = p + } + _out(tls, f, s3, Uint64FromInt32(v7)) + goto _50 + _50: + ; + d += 4 + p = p - int32(9) + } + _pad3(tls, f, uint8('0'), p+int32(9), int32(9), 0) + } else { + if z <= a { + z = a + uintptr(1)*4 + } + d = a + for { + if !(d < z && p >= 0) { + break + } + s4 = _fmt_u(tls, uint64(**(**Tuint32_t)(__ccgo_up(d))), bp+516+uintptr(9)) + if s4 == bp+516+uintptr(9) { + s4 = s4 - 1 + v5 = s4 + **(**uint8)(__ccgo_up(v5)) = uint8('0') + } + if d != a { + for s4 > bp+516 { + s4 = s4 - 1 + v5 = s4 + **(**uint8)(__ccgo_up(v5)) = uint8('0') + } + } else { + v5 = s4 + s4 = s4 + 1 + _out(tls, f, v5, uint64(1)) + if p > 0 || Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0 { + _out(tls, f, __ccgo_ts+607, uint64(1)) + } + } + if int64(bp+516+UintptrFromInt32(9))-int64(s4) < int64(p) { + v36 = int64(bp+516+UintptrFromInt32(9)) - int64(s4) + } else { + v36 = int64(p) + } + _out(tls, f, s4, Uint64FromInt64(v36)) + p = int32(int64(p) - (int64(bp+516+UintptrFromInt32(9)) - int64(s4))) + goto _53 + _53: + ; + d += 4 + } + _pad3(tls, f, uint8('0'), p+int32(18), int32(18), 0) + _out(tls, f, estr, Uint64FromInt64(int64(ebuf)-int64(estr))) + } + _pad3(tls, f, uint8(' '), w, pl+l, Int32FromUint32(Uint32FromInt32(fl)^Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' ')))) + if w > pl+l { + v7 = w + } else { + v7 = pl + l + } + return v7 +} + +func _getint(tls *TLS, s uintptr) (r int32) { + var i int32 + _ = i + i = 0 + for { + if !(BoolInt32(uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(s)))))-uint32('0') < uint32(10)) != 0) { + break + } + if Uint32FromInt32(i) > Uint32FromInt32(INT_MAX)/Uint32FromUint32(10) || Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(s)))))-int32('0') > int32(INT_MAX)-int32(10)*i { + i = -int32(1) + } else { + i = int32(10)*i + (Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(s))))) - int32('0')) + } + goto _1 + _1: + ; + **(**uintptr)(__ccgo_up(s)) = **(**uintptr)(__ccgo_up(s)) + 1 + } + return i +} + +func _printf_core(tls *TLS, f uintptr, fmt uintptr, ap uintptr, nl_arg uintptr, nl_type uintptr) (r int32) { + bp := tls.Alloc(64) + defer tls.Free(64) + var a, prefix, ws, z, v8 uintptr + var argpos, cnt, l, p, pl, t, w, xp, v5, v6 int32 + var fl, l10n, ps, st uint32 + var i Tsize_t + var v31 uint64 + var v34 int64 + var v45 bool + var _ /* arg at bp+8 */ Targ + var _ /* buf at bp+16 */ [24]uint8 + var _ /* mb at bp+48 */ [4]uint8 + var _ /* s at bp+0 */ uintptr + var _ /* wc at bp+40 */ [2]Twchar_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = a, argpos, cnt, fl, i, l, l10n, p, pl, prefix, ps, st, t, w, ws, xp, z, v31, v34, v45, v5, v6, v8 + **(**uintptr)(__ccgo_up(bp)) = fmt + l10n = uint32(0) + cnt = 0 + l = 0 + for { + /* This error is only specified for snprintf, but since it's + * unspecified for other forms, do the same. Stop immediately + * on overflow; otherwise %n could produce wrong results. */ + if l > int32(INT_MAX)-cnt { + goto overflow + } + /* Update output count, end loop when fmt is exhausted */ + cnt = cnt + l + if !(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)))) != 0) { + break + } + /* Handle literal text and %% format specifiers */ + a = **(**uintptr)(__ccgo_up(bp)) + for { + if !(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)))) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp))))) != int32('%')) { + break + } + goto _2 + _2: + ; + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + } + z = **(**uintptr)(__ccgo_up(bp)) + for { + if !(Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp))))) == int32('%') && Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 1))) == int32('%')) { + break + } + goto _3 + _3: + ; + z = z + 1 + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + uintptr(2) + } + if int64(z)-int64(a) > int64(int32(INT_MAX)-cnt) { + goto overflow + } + l = int32(int64(z) - int64(a)) + if f != 0 { + _out(tls, f, a, Uint64FromInt32(l)) + } + if l != 0 { + goto _1 + } + if BoolInt32(uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 1)))-uint32('0') < uint32(10)) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 2))) == int32('$') { + l10n = uint32(1) + argpos = Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 1))) - int32('0') + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + uintptr(3) + } else { + argpos = -int32(1) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + } + /* Read modifier flags */ + fl = uint32(0) + for { + if !(uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)))))-uint32(' ') < uint32(32) && (Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8('0')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8(' ')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8('+')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8('\'')-Int32FromUint8(' ')))&(uint32(1)<<(Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)))))-int32(' '))) != 0) { + break + } + fl = fl | uint32(1)<<(Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)))))-int32(' ')) + goto _4 + _4: + ; + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + } + /* Read field width */ + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp))))) == int32('*') { + if BoolInt32(uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 1)))-uint32('0') < uint32(10)) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 2))) == int32('$') { + l10n = uint32(1) + if !(f != 0) { + **(**int32)(__ccgo_up(nl_type + uintptr(Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 1)))-int32('0'))*4)) = int32(_INT) + w = Int32FromInt32(0) + } else { + w = Int32FromUint64(*(*Tuintmax_t)(unsafe.Pointer(nl_arg + uintptr(Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 1)))-int32('0'))*8))) + } + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + uintptr(3) + } else { + if !(l10n != 0) { + if f != 0 { + v5 = VaInt32(&**(**Tva_list)(__ccgo_up(ap))) + } else { + v5 = 0 + } + w = v5 + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + } else { + goto inval + } + } + if w < 0 { + fl = fl | Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' ')) + w = -w + } + } else { + v5 = _getint(tls, bp) + w = v5 + if v5 < 0 { + goto overflow + } + } + /* Read precision */ + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp))))) == int32('.') && Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 1))) == int32('*') { + if BoolInt32(uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 2)))-uint32('0') < uint32(10)) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 3))) == int32('$') { + if !(f != 0) { + **(**int32)(__ccgo_up(nl_type + uintptr(Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 2)))-int32('0'))*4)) = int32(_INT) + p = Int32FromInt32(0) + } else { + p = Int32FromUint64(*(*Tuintmax_t)(unsafe.Pointer(nl_arg + uintptr(Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 2)))-int32('0'))*8))) + } + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + uintptr(4) + } else { + if !(l10n != 0) { + if f != 0 { + v5 = VaInt32(&**(**Tva_list)(__ccgo_up(ap))) + } else { + v5 = 0 + } + p = v5 + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + uintptr(2) + } else { + goto inval + } + } + xp = BoolInt32(p >= 0) + } else { + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp))))) == int32('.') { + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + p = _getint(tls, bp) + xp = int32(1) + } else { + p = -int32(1) + xp = 0 + } + } + /* Format specifier state machine */ + st = uint32(0) + for cond := true; cond; cond = st-uint32(1) < uint32(_STOP) { + if uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)))))-uint32('A') > Uint32FromInt32(Int32FromUint8('z')-Int32FromUint8('A')) { + goto inval + } + ps = st + v8 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + st = uint32(**(**uint8)(__ccgo_up(uintptr(unsafe.Pointer(&_states)) + uintptr(st)*58 + uintptr(Int32FromUint8(**(**uint8)(__ccgo_up(v8)))-int32('A'))))) + } + if !(st != 0) { + goto inval + } + /* Check validity of argument type (nl/normal) */ + if st == uint32(_NOARG) { + if argpos >= 0 { + goto inval + } + } else { + if argpos >= 0 { + if !(f != 0) { + **(**int32)(__ccgo_up(nl_type + uintptr(argpos)*4)) = Int32FromUint32(st) + } else { + **(**Targ)(__ccgo_up(bp + 8)) = **(**Targ)(__ccgo_up(nl_arg + uintptr(argpos)*8)) + } + } else { + if f != 0 { + _pop_arg(tls, bp+8, Int32FromUint32(st), ap) + } else { + return 0 + } + } + } + if !(f != 0) { + goto _1 + } + /* Do not process any new directives once in error state. */ + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_ERR) != 0 { + return -int32(1) + } + z = bp + 16 + uintptr(24) + prefix = __ccgo_ts + 1656 + pl = 0 + t = Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + uintptr(-Int32FromInt32(1))))) + /* Transform ls,lc -> S,C */ + if ps != 0 && t&int32(15) == int32(3) { + t = t & ^Int32FromInt32(32) + } + /* - and 0 flags are mutually exclusive */ + if fl&(Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' '))) != 0 { + fl = fl & ^(Uint32FromUint32(1) << (Int32FromUint8('0') - Int32FromUint8(' '))) + } + switch t { + case int32('n'): + goto _9 + case int32('p'): + goto _10 + case int32('X'): + goto _11 + case int32('x'): + goto _12 + case int32('o'): + goto _13 + case int32('i'): + goto _14 + case int32('d'): + goto _15 + case int32('u'): + goto _16 + case int32('c'): + goto _17 + case int32('s'): + goto _18 + case int32('m'): + goto _19 + case int32('C'): + goto _20 + case int32('S'): + goto _21 + case int32('A'): + goto _22 + case int32('G'): + goto _23 + case int32('F'): + goto _24 + case int32('E'): + goto _25 + case int32('a'): + goto _26 + case int32('g'): + goto _27 + case int32('f'): + goto _28 + case int32('e'): + goto _29 + } + goto _30 + _9: + ; + switch ps { + case uint32(_BARE): + **(**int32)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 8)))) = cnt + case uint32(_LPRE): + **(**int64)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 8)))) = int64(cnt) + case uint32(_LLPRE): + **(**int64)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 8)))) = int64(cnt) + case uint32(_HPRE): + **(**uint16)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 8)))) = Uint16FromInt32(cnt) + case uint32(_HHPRE): + **(**uint8)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 8)))) = Uint8FromInt32(cnt) + case uint32(_ZTPRE): + **(**Tsize_t)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 8)))) = Uint64FromInt32(cnt) + case uint32(_JPRE): + **(**Tuintmax_t)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 8)))) = Uint64FromInt32(cnt) + break + } + goto _1 + _10: + ; + if Uint64FromInt32(p) > Uint64FromInt32(2)*Uint64FromInt64(8) { + v31 = Uint64FromInt32(p) + } else { + v31 = Uint64FromInt32(2) * Uint64FromInt64(8) + } + p = Int32FromUint64(v31) + t = int32('x') + fl = fl | Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' ')) + _12: + ; + _11: + ; + a = _fmt_x(tls, *(*Tuintmax_t)(unsafe.Pointer(bp + 8)), z, t&int32(32)) + if *(*Tuintmax_t)(unsafe.Pointer(bp + 8)) != 0 && fl&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0 { + prefix = prefix + uintptr(t>>Int32FromInt32(4)) + pl = Int32FromInt32(2) + } + if !(0 != 0) { + goto _32 + } + _13: + ; + a = _fmt_o(tls, *(*Tuintmax_t)(unsafe.Pointer(bp + 8)), z) + if fl&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0 && int64(p) < int64(z)-int64(a)+int64(1) { + p = int32(int64(z) - int64(a) + int64(1)) + } + _32: + ; + if !(0 != 0) { + goto _33 + } + _15: + ; + _14: + ; + pl = int32(1) + if *(*Tuintmax_t)(unsafe.Pointer(bp + 8)) > Uint64FromInt64(Int64FromInt64(INT64_MAX)) { + *(*Tuintmax_t)(unsafe.Pointer(bp + 8)) = -*(*Tuintmax_t)(unsafe.Pointer(bp + 8)) + } else { + if fl&(Uint32FromUint32(1)<<(Int32FromUint8('+')-Int32FromUint8(' '))) != 0 { + prefix = prefix + 1 + } else { + if fl&(Uint32FromUint32(1)<<(Int32FromUint8(' ')-Int32FromUint8(' '))) != 0 { + prefix = prefix + uintptr(2) + } else { + pl = 0 + } + } + } + _16: + ; + a = _fmt_u(tls, *(*Tuintmax_t)(unsafe.Pointer(bp + 8)), z) + _33: + ; + if xp != 0 && p < 0 { + goto overflow + } + if xp != 0 { + fl = fl & ^(Uint32FromUint32(1) << (Int32FromUint8('0') - Int32FromUint8(' '))) + } + if !(*(*Tuintmax_t)(unsafe.Pointer(bp + 8)) != 0) && !(p != 0) { + a = z + goto _30 + } + if int64(p) > int64(z)-int64(a)+BoolInt64(!(*(*Tuintmax_t)(unsafe.Pointer(bp + 8)) != 0)) { + v34 = int64(p) + } else { + v34 = int64(z) - int64(a) + BoolInt64(!(*(*Tuintmax_t)(unsafe.Pointer(bp + 8)) != 0)) + } + p = int32(v34) + goto _30 + goto narrow_c + narrow_c: + ; + _17: + ; + v5 = Int32FromInt32(1) + p = v5 + v8 = z - uintptr(v5) + a = v8 + **(**uint8)(__ccgo_up(v8)) = uint8(*(*Tuintmax_t)(unsafe.Pointer(bp + 8))) + fl = fl & ^(Uint32FromUint32(1) << (Int32FromUint8('0') - Int32FromUint8(' '))) + goto _30 + _19: + ; + if !(int32(1) != 0) { + goto _37 + } + a = Xstrerror(tls, **(**int32)(__ccgo_up(X__errno_location(tls)))) + goto _38 + _37: + ; + _18: + ; + if *(*uintptr)(unsafe.Pointer(bp + 8)) != 0 { + v8 = *(*uintptr)(unsafe.Pointer(bp + 8)) + } else { + v8 = __ccgo_ts + 1666 + } + a = v8 + _38: + ; + if p < 0 { + v5 = int32(INT_MAX) + } else { + v5 = p + } + z = a + uintptr(Xstrnlen(tls, a, Uint64FromInt32(v5))) + if p < 0 && **(**uint8)(__ccgo_up(z)) != 0 { + goto overflow + } + p = int32(int64(z) - int64(a)) + fl = fl & ^(Uint32FromUint32(1) << (Int32FromUint8('0') - Int32FromUint8(' '))) + goto _30 + _20: + ; + if !(*(*Tuintmax_t)(unsafe.Pointer(bp + 8)) != 0) { + goto narrow_c + } + (**(**[2]Twchar_t)(__ccgo_up(bp + 40)))[0] = Int32FromUint64(*(*Tuintmax_t)(unsafe.Pointer(bp + 8))) + (**(**[2]Twchar_t)(__ccgo_up(bp + 40)))[int32(1)] = 0 + *(*uintptr)(unsafe.Pointer(bp + 8)) = bp + 40 + p = -int32(1) + _21: + ; + ws = *(*uintptr)(unsafe.Pointer(bp + 8)) + v5 = Int32FromInt32(0) + l = v5 + i = Uint64FromInt32(v5) + for { + if v45 = i < Uint64FromInt32(p) && **(**Twchar_t)(__ccgo_up(ws)) != 0; v45 { + v8 = ws + ws += 4 + v6 = Xwctomb(tls, bp+48, **(**Twchar_t)(__ccgo_up(v8))) + l = v6 + } + if !(v45 && v6 >= 0 && Uint64FromInt32(l) <= Uint64FromInt32(p)-i) { + break + } + goto _41 + _41: + ; + i = i + Uint64FromInt32(l) + } + if l < 0 { + return -int32(1) + } + if i > uint64(INT_MAX) { + goto overflow + } + p = Int32FromUint64(i) + _pad3(tls, f, uint8(' '), w, p, Int32FromUint32(fl)) + ws = *(*uintptr)(unsafe.Pointer(bp + 8)) + i = uint64(0) + for { + if v45 = i < uint64(0+Uint32FromInt32(p)) && **(**Twchar_t)(__ccgo_up(ws)) != 0; v45 { + v8 = ws + ws += 4 + v5 = Xwctomb(tls, bp+48, **(**Twchar_t)(__ccgo_up(v8))) + l = v5 + } + if !(v45 && i+Uint64FromInt32(v5) <= Uint64FromInt32(p)) { + break + } + _out(tls, f, bp+48, Uint64FromInt32(l)) + goto _46 + _46: + ; + i = i + Uint64FromInt32(l) + } + _pad3(tls, f, uint8(' '), w, p, Int32FromUint32(fl^Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' ')))) + if w > p { + v5 = w + } else { + v5 = p + } + l = v5 + goto _1 + _29: + ; + _28: + ; + _27: + ; + _26: + ; + _25: + ; + _24: + ; + _23: + ; + _22: + ; + if xp != 0 && p < 0 { + goto overflow + } + l = _fmt_fp(tls, f, *(*float64)(unsafe.Pointer(bp + 8)), w, p, Int32FromUint32(fl), t) + if l < 0 { + goto overflow + } + goto _1 + _30: + ; + if int64(p) < int64(z)-int64(a) { + p = int32(int64(z) - int64(a)) + } + if p > int32(INT_MAX)-pl { + goto overflow + } + if w < pl+p { + w = pl + p + } + if w > int32(INT_MAX)-cnt { + goto overflow + } + _pad3(tls, f, uint8(' '), w, pl+p, Int32FromUint32(fl)) + _out(tls, f, prefix, Uint64FromInt32(pl)) + _pad3(tls, f, uint8('0'), w, pl+p, Int32FromUint32(fl^Uint32FromUint32(1)<<(Int32FromUint8('0')-Int32FromUint8(' ')))) + _pad3(tls, f, uint8('0'), p, int32(int64(z)-int64(a)), 0) + _out(tls, f, a, Uint64FromInt64(int64(z)-int64(a))) + _pad3(tls, f, uint8(' '), w, pl+p, Int32FromUint32(fl^Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' ')))) + l = w + goto _1 + _1: + } + if f != 0 { + return cnt + } + if !(l10n != 0) { + return 0 + } + i = uint64(1) + for { + if !(i <= uint64(NL_ARGMAX) && **(**int32)(__ccgo_up(nl_type + uintptr(i)*4)) != 0) { + break + } + _pop_arg(tls, nl_arg+uintptr(i)*8, **(**int32)(__ccgo_up(nl_type + uintptr(i)*4)), ap) + goto _51 + _51: + ; + i = i + 1 + } + for { + if !(i <= uint64(NL_ARGMAX) && !(**(**int32)(__ccgo_up(nl_type + uintptr(i)*4)) != 0)) { + break + } + goto _52 + _52: + ; + i = i + 1 + } + if i <= uint64(NL_ARGMAX) { + goto inval + } + return int32(1) + goto inval +inval: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + goto overflow +overflow: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOVERFLOW) + return -int32(1) +} + +func Xvfprintf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v ap=%v, (%v:)", tls, f, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(208) + defer tls.Free(208) + var __need_unlock, olderr, ret, v1 int32 + var saved_buf, v2, v3 uintptr + var _ /* ap2 at bp+0 */ Tva_list + var _ /* internal_buf at bp+128 */ [80]uint8 + var _ /* nl_arg at bp+48 */ [10]Targ + var _ /* nl_type at bp+8 */ [10]int32 + _, _, _, _, _, _, _ = __need_unlock, olderr, ret, saved_buf, v1, v2, v3 + **(**[10]int32)(__ccgo_up(bp + 8)) = [10]int32{} + saved_buf = uintptr(0) + /* the copy allows passing va_list* even if va_list is an array */ + **(**Tva_list)(__ccgo_up(bp)) = ap + if _printf_core(tls, uintptr(0), fmt, bp, bp+48, bp+8) < 0 { + _ = **(**Tva_list)(__ccgo_up(bp)) + return -int32(1) + } + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + olderr = Int32FromUint32((*TFILE)(unsafe.Pointer(f)).Fflags & uint32(F_ERR)) + **(**uint32)(__ccgo_up(f)) &= Uint32FromInt32(^Int32FromInt32(F_ERR)) + if !((*TFILE)(unsafe.Pointer(f)).Fbuf_size != 0) { + saved_buf = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Fbuf = bp + 128 + (*TFILE)(unsafe.Pointer(f)).Fbuf_size = uint64(80) + v3 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Fwend = v3 + v2 = v3 + (*TFILE)(unsafe.Pointer(f)).Fwbase = v2 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v2 + } + if !((*TFILE)(unsafe.Pointer(f)).Fwend != 0) && X__towrite(tls, f) != 0 { + ret = -int32(1) + } else { + ret = _printf_core(tls, f, fmt, bp, bp+48, bp+8) + } + if saved_buf != 0 { + (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tsize_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fwrite})))(tls, f, uintptr(0), uint64(0)) + if !((*TFILE)(unsafe.Pointer(f)).Fwpos != 0) { + ret = -int32(1) + } + (*TFILE)(unsafe.Pointer(f)).Fbuf = saved_buf + (*TFILE)(unsafe.Pointer(f)).Fbuf_size = uint64(0) + v3 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Fwend = v3 + v2 = v3 + (*TFILE)(unsafe.Pointer(f)).Fwbase = v2 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v2 + } + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_ERR) != 0 { + ret = -int32(1) + } + **(**uint32)(__ccgo_up(f)) |= Uint32FromInt32(olderr) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + _ = **(**Tva_list)(__ccgo_up(bp)) + return ret +} + +const SIZE_L = 2 +const SIZE_def = 0 +const SIZE_h = -1 +const SIZE_hh = -2 +const SIZE_l = 1 +const SIZE_ll = 3 + +func _store_int(tls *TLS, dest uintptr, size int32, i uint64) { + if !(dest != 0) { + return + } + switch size { + case -int32(2): + **(**uint8)(__ccgo_up(dest)) = uint8(i) + case -int32(1): + **(**int16)(__ccgo_up(dest)) = Int16FromUint64(i) + case SIZE_def: + **(**int32)(__ccgo_up(dest)) = Int32FromUint64(i) + case int32(SIZE_l): + **(**int64)(__ccgo_up(dest)) = Int64FromUint64(i) + case int32(SIZE_ll): + **(**int64)(__ccgo_up(dest)) = Int64FromUint64(i) + break + } +} + +func _arg_n(tls *TLS, ap Tva_list, n uint32) (r uintptr) { + var ap2 Tva_list + var i uint32 + var p uintptr + _, _, _ = ap2, i, p + ap2 = ap + i = n + for { + if !(i > uint32(1)) { + break + } + _ = VaUintptr(&ap2) + goto _1 + _1: + ; + i = i - 1 + } + p = VaUintptr(&ap2) + _ = ap2 + return p +} + +func Xvfscanf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v ap=%v, (%v:)", tls, f, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(288) + defer tls.Free(288) + var __need_unlock, alloc, base, c, invert, matches, size, t, width, v1, v3, v4, v6 int32 + var dest, p, s, tmp, tmp1, wcs, v10, v11, v17 uintptr + var i, k, v64 Tsize_t + var pos Toff_t + var x uint64 + var y float64 + var v59 uint32 + var _ /* scanset at bp+16 */ [257]uint8 + var _ /* st at bp+8 */ Tmbstate_t + var _ /* wc at bp+276 */ Twchar_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = __need_unlock, alloc, base, c, dest, i, invert, k, matches, p, pos, s, size, t, tmp, tmp1, wcs, width, x, y, v1, v10, v11, v17, v3, v4, v59, v6, v64 + alloc = 0 + dest = UintptrFromInt32(0) + matches = 0 + pos = 0 + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + if !((*TFILE)(unsafe.Pointer(f)).Frpos != 0) { + X__toread(tls, f) + } + if !((*TFILE)(unsafe.Pointer(f)).Frpos != 0) { + goto input_fail + } + p = fmt + for { + if !(**(**uint8)(__ccgo_up(p)) != 0) { + break + } + alloc = 0 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(p))) + v3 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _5 + _5: + if v3 != 0 { + for { + v4 = Int32FromUint8(**(**uint8)(__ccgo_up(p + 1))) + v6 = BoolInt32(v4 == int32(' ') || Uint32FromInt32(v4)-uint32('\t') < uint32(5)) + goto _8 + _8: + if !(v6 != 0) { + break + } + p = p + 1 + } + X__shlim(tls, f, int64(Int32FromInt32(0))) + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v11 = f + 8 + v10 = *(*uintptr)(unsafe.Pointer(v11)) + *(*uintptr)(unsafe.Pointer(v11)) = *(*uintptr)(unsafe.Pointer(v11)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v10))) + } else { + v1 = X__shgetc(tls, f) + } + v3 = v1 + v4 = BoolInt32(v3 == int32(' ') || Uint32FromInt32(v3)-uint32('\t') < uint32(5)) + goto _14 + _14: + if !(v4 != 0) { + break + } + } + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + pos = pos + ((*TFILE)(unsafe.Pointer(f)).Fshcnt + (int64((*TFILE)(unsafe.Pointer(f)).Frpos) - int64((*TFILE)(unsafe.Pointer(f)).Fbuf))) + goto _2 + } + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) != int32('%') || Int32FromUint8(**(**uint8)(__ccgo_up(p + 1))) == int32('%') { + X__shlim(tls, f, int64(Int32FromInt32(0))) + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('%') { + p = p + 1 + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v11 = f + 8 + v10 = *(*uintptr)(unsafe.Pointer(v11)) + *(*uintptr)(unsafe.Pointer(v11)) = *(*uintptr)(unsafe.Pointer(v11)) + 1 + v3 = Int32FromUint8(**(**uint8)(__ccgo_up(v10))) + } else { + v3 = X__shgetc(tls, f) + } + v1 = v3 + c = v1 + v4 = v1 + v6 = BoolInt32(v4 == int32(' ') || Uint32FromInt32(v4)-uint32('\t') < uint32(5)) + goto _21 + _21: + if !(v6 != 0) { + break + } + } + } else { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v11 = f + 8 + v10 = *(*uintptr)(unsafe.Pointer(v11)) + *(*uintptr)(unsafe.Pointer(v11)) = *(*uintptr)(unsafe.Pointer(v11)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v10))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + if c != Int32FromUint8(**(**uint8)(__ccgo_up(p))) { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + if c < 0 { + goto input_fail + } + goto match_fail + } + pos = pos + ((*TFILE)(unsafe.Pointer(f)).Fshcnt + (int64((*TFILE)(unsafe.Pointer(f)).Frpos) - int64((*TFILE)(unsafe.Pointer(f)).Fbuf))) + goto _2 + } + p = p + 1 + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('*') { + dest = uintptr(0) + p = p + 1 + } else { + if BoolInt32(uint32(**(**uint8)(__ccgo_up(p)))-uint32('0') < uint32(10)) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(p + 1))) == int32('$') { + dest = _arg_n(tls, ap, Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(p)))-int32('0'))) + p = p + uintptr(2) + } else { + dest = VaUintptr(&ap) + } + } + width = 0 + for { + if !(BoolInt32(uint32(**(**uint8)(__ccgo_up(p)))-uint32('0') < uint32(10)) != 0) { + break + } + width = int32(10)*width + Int32FromUint8(**(**uint8)(__ccgo_up(p))) - int32('0') + goto _25 + _25: + ; + p = p + 1 + } + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('m') { + wcs = uintptr(0) + s = uintptr(0) + alloc = BoolInt32(!!(dest != 0)) + p = p + 1 + } else { + alloc = 0 + } + size = SIZE_def + v10 = p + p = p + 1 + switch Int32FromUint8(**(**uint8)(__ccgo_up(v10))) { + case int32('h'): + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('h') { + p = p + 1 + size = -Int32FromInt32(2) + } else { + size = -int32(1) + } + case int32('l'): + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('l') { + p = p + 1 + size = Int32FromInt32(SIZE_ll) + } else { + size = int32(SIZE_l) + } + case int32('j'): + size = int32(SIZE_ll) + case int32('z'): + fallthrough + case int32('t'): + size = int32(SIZE_l) + case int32('L'): + size = int32(SIZE_L) + case int32('d'): + fallthrough + case int32('i'): + fallthrough + case int32('o'): + fallthrough + case int32('u'): + fallthrough + case int32('x'): + fallthrough + case int32('a'): + fallthrough + case int32('e'): + fallthrough + case int32('f'): + fallthrough + case int32('g'): + fallthrough + case int32('A'): + fallthrough + case int32('E'): + fallthrough + case int32('F'): + fallthrough + case int32('G'): + fallthrough + case int32('X'): + fallthrough + case int32('s'): + fallthrough + case int32('c'): + fallthrough + case int32('['): + fallthrough + case int32('S'): + fallthrough + case int32('C'): + fallthrough + case int32('p'): + fallthrough + case int32('n'): + p = p - 1 + default: + goto fmt_fail + } + t = Int32FromUint8(**(**uint8)(__ccgo_up(p))) + /* C or S */ + if t&int32(0x2f) == int32(3) { + t = t | int32(32) + size = int32(SIZE_l) + } + switch t { + case int32('c'): + if width < int32(1) { + width = int32(1) + } + fallthrough + case int32('['): + case int32('n'): + _store_int(tls, dest, size, Uint64FromInt64(pos)) + /* do not increment match count, etc! */ + goto _2 + default: + X__shlim(tls, f, int64(Int32FromInt32(0))) + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v11 = f + 8 + v10 = *(*uintptr)(unsafe.Pointer(v11)) + *(*uintptr)(unsafe.Pointer(v11)) = *(*uintptr)(unsafe.Pointer(v11)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v10))) + } else { + v1 = X__shgetc(tls, f) + } + v3 = v1 + v4 = BoolInt32(v3 == int32(' ') || Uint32FromInt32(v3)-uint32('\t') < uint32(5)) + goto _32 + _32: + if !(v4 != 0) { + break + } + } + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + pos = pos + ((*TFILE)(unsafe.Pointer(f)).Fshcnt + (int64((*TFILE)(unsafe.Pointer(f)).Frpos) - int64((*TFILE)(unsafe.Pointer(f)).Fbuf))) + } + X__shlim(tls, f, int64(width)) + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v11 = f + 8 + v10 = *(*uintptr)(unsafe.Pointer(v11)) + *(*uintptr)(unsafe.Pointer(v11)) = *(*uintptr)(unsafe.Pointer(v11)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v10))) + } else { + v1 = X__shgetc(tls, f) + } + if v1 < 0 { + goto input_fail + } + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + switch t { + case int32('['): + goto _36 + case int32('c'): + goto _37 + case int32('s'): + goto _38 + case int32('x'): + goto _39 + case int32('X'): + goto _40 + case int32('p'): + goto _41 + case int32('o'): + goto _42 + case int32('u'): + goto _43 + case int32('d'): + goto _44 + case int32('i'): + goto _45 + case int32('G'): + goto _46 + case int32('g'): + goto _47 + case int32('F'): + goto _48 + case int32('f'): + goto _49 + case int32('E'): + goto _50 + case int32('e'): + goto _51 + case int32('A'): + goto _52 + case int32('a'): + goto _53 + } + goto _54 + _38: + ; + _37: + ; + _36: + ; + if t == int32('c') || t == int32('s') { + Xmemset(tls, bp+16, -int32(1), uint64(257)) + (**(**[257]uint8)(__ccgo_up(bp + 16)))[0] = uint8(0) + if t == int32('s') { + (**(**[257]uint8)(__ccgo_up(bp + 16)))[Int32FromInt32(1)+Int32FromUint8('\t')] = uint8(0) + (**(**[257]uint8)(__ccgo_up(bp + 16)))[Int32FromInt32(1)+Int32FromUint8('\n')] = uint8(0) + (**(**[257]uint8)(__ccgo_up(bp + 16)))[Int32FromInt32(1)+Int32FromUint8('\v')] = uint8(0) + (**(**[257]uint8)(__ccgo_up(bp + 16)))[Int32FromInt32(1)+Int32FromUint8('\f')] = uint8(0) + (**(**[257]uint8)(__ccgo_up(bp + 16)))[Int32FromInt32(1)+Int32FromUint8('\r')] = uint8(0) + (**(**[257]uint8)(__ccgo_up(bp + 16)))[Int32FromInt32(1)+Int32FromUint8(' ')] = uint8(0) + } + } else { + p = p + 1 + v10 = p + if Int32FromUint8(**(**uint8)(__ccgo_up(v10))) == int32('^') { + p = p + 1 + invert = Int32FromInt32(1) + } else { + invert = 0 + } + Xmemset(tls, bp+16, invert, uint64(257)) + (**(**[257]uint8)(__ccgo_up(bp + 16)))[0] = uint8(0) + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('-') { + p = p + 1 + (**(**[257]uint8)(__ccgo_up(bp + 16)))[Int32FromInt32(1)+Int32FromUint8('-')] = Uint8FromInt32(Int32FromInt32(1) - invert) + } else { + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32(']') { + p = p + 1 + (**(**[257]uint8)(__ccgo_up(bp + 16)))[Int32FromInt32(1)+Int32FromUint8(']')] = Uint8FromInt32(Int32FromInt32(1) - invert) + } + } + for { + if !(Int32FromUint8(**(**uint8)(__ccgo_up(p))) != int32(']')) { + break + } + if !(**(**uint8)(__ccgo_up(p)) != 0) { + goto fmt_fail + } + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('-') && **(**uint8)(__ccgo_up(p + 1)) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(p + 1))) != int32(']') { + v10 = p + p = p + 1 + c = Int32FromUint8(**(**uint8)(__ccgo_up(v10 + uintptr(-Int32FromInt32(1))))) + for { + if !(c < Int32FromUint8(**(**uint8)(__ccgo_up(p)))) { + break + } + (**(**[257]uint8)(__ccgo_up(bp + 16)))[int32(1)+c] = Uint8FromInt32(int32(1) - invert) + goto _57 + _57: + ; + c = c + 1 + } + } + (**(**[257]uint8)(__ccgo_up(bp + 16)))[int32(1)+Int32FromUint8(**(**uint8)(__ccgo_up(p)))] = Uint8FromInt32(int32(1) - invert) + goto _56 + _56: + ; + p = p + 1 + } + } + wcs = uintptr(0) + s = uintptr(0) + i = uint64(0) + if t == int32('c') { + v59 = Uint32FromInt32(width) + uint32(1) + } else { + v59 = uint32(31) + } + k = uint64(v59) + if size == int32(SIZE_l) { + if alloc != 0 { + wcs = Xmalloc(tls, k*uint64(4)) + if !(wcs != 0) { + goto alloc_fail + } + } else { + wcs = dest + } + **(**Tmbstate_t)(__ccgo_up(bp + 8)) = Tmbstate_t{} + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v11 = f + 8 + v10 = *(*uintptr)(unsafe.Pointer(v11)) + *(*uintptr)(unsafe.Pointer(v11)) = *(*uintptr)(unsafe.Pointer(v11)) + 1 + v3 = Int32FromUint8(**(**uint8)(__ccgo_up(v10))) + } else { + v3 = X__shgetc(tls, f) + } + v1 = v3 + c = v1 + if !((**(**[257]uint8)(__ccgo_up(bp + 16)))[v1+int32(1)] != 0) { + break + } + *(*uint8)(unsafe.Pointer(bp)) = Uint8FromInt32(c) + switch Xmbrtowc(tls, bp+276, bp, uint64(1), bp+8) { + case Uint64FromInt32(-Int32FromInt32(1)): + goto input_fail + case Uint64FromInt32(-Int32FromInt32(2)): + continue + } + if wcs != 0 { + v64 = i + i = i + 1 + **(**Twchar_t)(__ccgo_up(wcs + uintptr(v64)*4)) = **(**Twchar_t)(__ccgo_up(bp + 276)) + } + if alloc != 0 && i == k { + k = k + (k + uint64(1)) + tmp = Xrealloc(tls, wcs, k*uint64(4)) + if !(tmp != 0) { + goto alloc_fail + } + wcs = tmp + } + } + if !(Xmbsinit(tls, bp+8) != 0) { + goto input_fail + } + } else { + if alloc != 0 { + s = Xmalloc(tls, k) + if !(s != 0) { + goto alloc_fail + } + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v11 = f + 8 + v10 = *(*uintptr)(unsafe.Pointer(v11)) + *(*uintptr)(unsafe.Pointer(v11)) = *(*uintptr)(unsafe.Pointer(v11)) + 1 + v3 = Int32FromUint8(**(**uint8)(__ccgo_up(v10))) + } else { + v3 = X__shgetc(tls, f) + } + v1 = v3 + c = v1 + if !((**(**[257]uint8)(__ccgo_up(bp + 16)))[v1+int32(1)] != 0) { + break + } + v64 = i + i = i + 1 + **(**uint8)(__ccgo_up(s + uintptr(v64))) = Uint8FromInt32(c) + if i == k { + k = k + (k + uint64(1)) + tmp1 = Xrealloc(tls, s, k) + if !(tmp1 != 0) { + goto alloc_fail + } + s = tmp1 + } + } + } else { + v10 = dest + s = v10 + if v10 != 0 { + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v17 = f + 8 + v11 = *(*uintptr)(unsafe.Pointer(v17)) + *(*uintptr)(unsafe.Pointer(v17)) = *(*uintptr)(unsafe.Pointer(v17)) + 1 + v3 = Int32FromUint8(**(**uint8)(__ccgo_up(v11))) + } else { + v3 = X__shgetc(tls, f) + } + v1 = v3 + c = v1 + if !((**(**[257]uint8)(__ccgo_up(bp + 16)))[v1+int32(1)] != 0) { + break + } + v64 = i + i = i + 1 + **(**uint8)(__ccgo_up(s + uintptr(v64))) = Uint8FromInt32(c) + } + } else { + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v11 = f + 8 + v10 = *(*uintptr)(unsafe.Pointer(v11)) + *(*uintptr)(unsafe.Pointer(v11)) = *(*uintptr)(unsafe.Pointer(v11)) + 1 + v3 = Int32FromUint8(**(**uint8)(__ccgo_up(v10))) + } else { + v3 = X__shgetc(tls, f) + } + v1 = v3 + c = v1 + if !((**(**[257]uint8)(__ccgo_up(bp + 16)))[v1+int32(1)] != 0) { + break + } + } + } + } + } + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + if !((*TFILE)(unsafe.Pointer(f)).Fshcnt+(int64((*TFILE)(unsafe.Pointer(f)).Frpos)-int64((*TFILE)(unsafe.Pointer(f)).Fbuf)) != 0) { + goto match_fail + } + if t == int32('c') && (*TFILE)(unsafe.Pointer(f)).Fshcnt+(int64((*TFILE)(unsafe.Pointer(f)).Frpos)-int64((*TFILE)(unsafe.Pointer(f)).Fbuf)) != int64(width) { + goto match_fail + } + if alloc != 0 { + if size == int32(SIZE_l) { + **(**uintptr)(__ccgo_up(dest)) = wcs + } else { + **(**uintptr)(__ccgo_up(dest)) = s + } + } + if t != int32('c') { + if wcs != 0 { + **(**Twchar_t)(__ccgo_up(wcs + uintptr(i)*4)) = 0 + } + if s != 0 { + **(**uint8)(__ccgo_up(s + uintptr(i))) = uint8(0) + } + } + goto _54 + _41: + ; + _40: + ; + _39: + ; + base = int32(16) + goto int_common + _42: + ; + base = int32(8) + goto int_common + _44: + ; + _43: + ; + base = int32(10) + goto int_common + _45: + ; + base = 0 + goto int_common + int_common: + ; + x = X__intscan(tls, f, Uint32FromInt32(base), 0, Uint64FromUint64(2)*Uint64FromInt64(0x7fffffffffffffff)+Uint64FromInt32(1)) + if !((*TFILE)(unsafe.Pointer(f)).Fshcnt+(int64((*TFILE)(unsafe.Pointer(f)).Frpos)-int64((*TFILE)(unsafe.Pointer(f)).Fbuf)) != 0) { + goto match_fail + } + if t == int32('p') && dest != 0 { + **(**uintptr)(__ccgo_up(dest)) = uintptr(x) + } else { + _store_int(tls, dest, size, x) + } + goto _54 + _53: + ; + _52: + ; + _51: + ; + _50: + ; + _49: + ; + _48: + ; + _47: + ; + _46: + ; + y = X__floatscan(tls, f, size, 0) + if !((*TFILE)(unsafe.Pointer(f)).Fshcnt+(int64((*TFILE)(unsafe.Pointer(f)).Frpos)-int64((*TFILE)(unsafe.Pointer(f)).Fbuf)) != 0) { + goto match_fail + } + if dest != 0 { + switch size { + case SIZE_def: + **(**float32)(__ccgo_up(dest)) = float32(y) + case int32(SIZE_l): + **(**float64)(__ccgo_up(dest)) = y + case int32(SIZE_L): + **(**float64)(__ccgo_up(dest)) = y + break + } + } + goto _54 + _54: + ; + pos = pos + ((*TFILE)(unsafe.Pointer(f)).Fshcnt + (int64((*TFILE)(unsafe.Pointer(f)).Frpos) - int64((*TFILE)(unsafe.Pointer(f)).Fbuf))) + if dest != 0 { + matches = matches + 1 + } + goto _2 + _2: + ; + p = p + 1 + } + if !(0 != 0) { + goto _80 + } + goto fmt_fail +fmt_fail: + ; + goto alloc_fail +alloc_fail: + ; + goto input_fail +input_fail: + ; + if !(matches != 0) { + matches = matches - 1 + } + goto match_fail +match_fail: + ; + if alloc != 0 { + Xfree(tls, s) + Xfree(tls, wcs) + } +_80: + ; + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return matches +} + +func X__isoc99_vfscanf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v ap=%v, (%v:)", tls, f, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvfscanf(tls, f, fmt, ap) +} + +var _states1 = [8][58]uint8{ + 0: { + 0: uint8(_DBL), + 2: uint8(_UINT), + 4: uint8(_DBL), + 5: uint8(_DBL), + 6: uint8(_DBL), + 11: uint8(_BIGLPRE), + 18: uint8(_PTR), + 23: uint8(_UINT), + 32: uint8(_DBL), + 34: uint8(_INT), + 35: uint8(_INT), + 36: uint8(_DBL), + 37: uint8(_DBL), + 38: uint8(_DBL), + 39: uint8(_HPRE), + 40: uint8(_INT), + 41: uint8(_JPRE), + 43: uint8(_LPRE), + 44: uint8(_NOARG), + 45: uint8(_PTR), + 46: uint8(_UINT), + 47: uint8(_UIPTR), + 50: uint8(_PTR), + 51: uint8(_ZTPRE), + 52: uint8(_UINT), + 55: uint8(_UINT), + 57: uint8(_ZTPRE), + }, + 1: { + 0: uint8(_DBL), + 4: uint8(_DBL), + 5: uint8(_DBL), + 6: uint8(_DBL), + 23: uint8(_ULONG), + 32: uint8(_DBL), + 34: uint8(_UINT), + 35: uint8(_LONG), + 36: uint8(_DBL), + 37: uint8(_DBL), + 38: uint8(_DBL), + 40: uint8(_LONG), + 43: uint8(_LLPRE), + 45: uint8(_PTR), + 46: uint8(_ULONG), + 50: uint8(_PTR), + 52: uint8(_ULONG), + 55: uint8(_ULONG), + }, + 2: { + 23: uint8(_ULLONG), + 35: uint8(_LLONG), + 40: uint8(_LLONG), + 45: uint8(_PTR), + 46: uint8(_ULLONG), + 52: uint8(_ULLONG), + 55: uint8(_ULLONG), + }, + 3: { + 23: uint8(_USHORT), + 35: uint8(_SHORT), + 39: uint8(_HHPRE), + 40: uint8(_SHORT), + 45: uint8(_PTR), + 46: uint8(_USHORT), + 52: uint8(_USHORT), + 55: uint8(_USHORT), + }, + 4: { + 23: uint8(_UCHAR), + 35: uint8(_CHAR), + 40: uint8(_CHAR), + 45: uint8(_PTR), + 46: uint8(_UCHAR), + 52: uint8(_UCHAR), + 55: uint8(_UCHAR), + }, + 5: { + 0: uint8(_LDBL), + 4: uint8(_LDBL), + 5: uint8(_LDBL), + 6: uint8(_LDBL), + 32: uint8(_LDBL), + 36: uint8(_LDBL), + 37: uint8(_LDBL), + 38: uint8(_LDBL), + 45: uint8(_PTR), + }, + 6: { + 23: uint8(_SIZET), + 35: uint8(_PDIFF), + 40: uint8(_PDIFF), + 45: uint8(_PTR), + 46: uint8(_SIZET), + 52: uint8(_SIZET), + 55: uint8(_SIZET), + }, + 7: { + 23: uint8(_UMAX), + 35: uint8(_IMAX), + 40: uint8(_IMAX), + 45: uint8(_PTR), + 46: uint8(_UMAX), + 52: uint8(_UMAX), + 55: uint8(_UMAX), + }, +} + +func _pop_arg1(tls *TLS, arg uintptr, type1 int32, ap uintptr) { + switch type1 { + case int32(_PTR): + *(*uintptr)(unsafe.Pointer(arg)) = VaUintptr(&**(**Tva_list)(__ccgo_up(ap))) + case int32(_INT): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt32(VaInt32(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_UINT): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(VaUint32(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_LONG): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt64(VaInt64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_ULONG): + (*Targ)(unsafe.Pointer(arg)).Fi = VaUint64(&**(**Tva_list)(__ccgo_up(ap))) + case int32(_ULLONG): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(VaUint64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_SHORT): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt16(int16(VaInt32(&**(**Tva_list)(__ccgo_up(ap))))) + case int32(_USHORT): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(Uint16FromInt32(VaInt32(&**(**Tva_list)(__ccgo_up(ap))))) + case int32(_CHAR): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt8(int8(VaInt32(&**(**Tva_list)(__ccgo_up(ap))))) + case int32(_UCHAR): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(Uint8FromInt32(VaInt32(&**(**Tva_list)(__ccgo_up(ap))))) + case int32(_LLONG): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt64(VaInt64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_SIZET): + (*Targ)(unsafe.Pointer(arg)).Fi = VaUint64(&**(**Tva_list)(__ccgo_up(ap))) + case int32(_IMAX): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt64(VaInt64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_UMAX): + (*Targ)(unsafe.Pointer(arg)).Fi = VaUint64(&**(**Tva_list)(__ccgo_up(ap))) + case int32(_PDIFF): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt64(VaInt64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_UIPTR): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(VaUintptr(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_DBL): + *(*float64)(unsafe.Pointer(arg)) = float64(VaFloat64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_LDBL): + *(*float64)(unsafe.Pointer(arg)) = VaFloat64(&**(**Tva_list)(__ccgo_up(ap))) + } +} + +func _out1(tls *TLS, f uintptr, s uintptr, l Tsize_t) { + var v1 Tsize_t + var v2 uintptr + _, _ = v1, v2 + for { + v1 = l + l = l - 1 + if !(v1 != 0 && !((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_ERR) != 0)) { + break + } + v2 = s + s += 4 + Xfputwc(tls, **(**Twchar_t)(__ccgo_up(v2)), f) + } +} + +func _pad4(tls *TLS, f uintptr, n int32, fl int32) { + bp := tls.Alloc(32) + defer tls.Free(32) + if Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' '))) != 0 || !(n != 0) || (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_ERR) != 0 { + return + } + Xfprintf(tls, f, __ccgo_ts+1673, VaList(bp+8, n, __ccgo_ts)) +} + +func _getint1(tls *TLS, s uintptr) (r int32) { + var i int32 + _ = i + i = 0 + for { + if !(BoolInt32(Uint32FromInt32(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(s)))))-uint32('0') < uint32(10)) != 0) { + break + } + if Uint32FromInt32(i) > Uint32FromInt32(INT_MAX)/Uint32FromUint32(10) || **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(s))))-int32('0') > int32(INT_MAX)-int32(10)*i { + i = -int32(1) + } else { + i = int32(10)*i + (**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(s)))) - int32('0')) + } + goto _1 + _1: + ; + **(**uintptr)(__ccgo_up(s)) += 4 + } + return i +} + +var _sizeprefix = [24]uint8{ + 0: uint8('L'), + 3: uint8('j'), + 4: uint8('L'), + 5: uint8('L'), + 6: uint8('L'), + 8: uint8('j'), + 14: uint8('j'), + 15: uint8('j'), + 20: uint8('j'), + 23: uint8('j'), +} + +func _wprintf_core(tls *TLS, f uintptr, fmt uintptr, ap uintptr, nl_arg uintptr, nl_type uintptr) (r int32) { + bp := tls.Alloc(112) + defer tls.Free(112) + var a, bs, z, v8 uintptr + var argpos, cnt, i, l, p, t, w, xp, v5, v6, v7 int32 + var fl, l10n, ps, st uint32 + var v15 bool + var v9 uint64 + var _ /* arg at bp+16 */ Targ + var _ /* charfmt at bp+24 */ [16]uint8 + var _ /* s at bp+8 */ uintptr + var _ /* wc at bp+40 */ Twchar_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = a, argpos, bs, cnt, fl, i, l, l10n, p, ps, st, t, w, xp, z, v15, v5, v6, v7, v8, v9 + **(**uintptr)(__ccgo_up(bp + 8)) = fmt + l10n = uint32(0) + cnt = 0 + l = 0 + for { + /* This error is only specified for snprintf, but since it's + * unspecified for other forms, do the same. Stop immediately + * on overflow; otherwise %n could produce wrong results. */ + if l > int32(INT_MAX)-cnt { + goto overflow + } + /* Update output count, end loop when fmt is exhausted */ + cnt = cnt + l + if !(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)))) != 0) { + break + } + /* Handle literal text and %% format specifiers */ + a = **(**uintptr)(__ccgo_up(bp + 8)) + for { + if !(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)))) != 0 && **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)))) != int32('%')) { + break + } + goto _2 + _2: + ; + **(**uintptr)(__ccgo_up(bp + 8)) += 4 + } + z = **(**uintptr)(__ccgo_up(bp + 8)) + for { + if !(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)))) == int32('%') && **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + 1*4)) == int32('%')) { + break + } + goto _3 + _3: + ; + z += 4 + **(**uintptr)(__ccgo_up(bp + 8)) = **(**uintptr)(__ccgo_up(bp + 8)) + uintptr(2)*4 + } + if (int64(z)-int64(a))/4 > int64(int32(INT_MAX)-cnt) { + goto overflow + } + l = int32((int64(z) - int64(a)) / 4) + if f != 0 { + _out1(tls, f, a, Uint64FromInt32(l)) + } + if l != 0 { + goto _1 + } + if BoolInt32(Uint32FromInt32(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + 1*4)))-uint32('0') < uint32(10)) != 0 && **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + 2*4)) == int32('$') { + l10n = uint32(1) + argpos = **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + 1*4)) - int32('0') + **(**uintptr)(__ccgo_up(bp + 8)) = **(**uintptr)(__ccgo_up(bp + 8)) + uintptr(3)*4 + } else { + argpos = -int32(1) + **(**uintptr)(__ccgo_up(bp + 8)) += 4 + } + /* Read modifier flags */ + fl = uint32(0) + for { + if !(Uint32FromInt32(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)))))-uint32(' ') < uint32(32) && (Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8('0')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8(' ')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8('+')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8('\'')-Int32FromUint8(' ')))&(uint32(1)<<(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8))))-int32(' '))) != 0) { + break + } + fl = fl | uint32(1)<<(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8))))-int32(' ')) + goto _4 + _4: + ; + **(**uintptr)(__ccgo_up(bp + 8)) += 4 + } + /* Read field width */ + if **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)))) == int32('*') { + if BoolInt32(Uint32FromInt32(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + 1*4)))-uint32('0') < uint32(10)) != 0 && **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + 2*4)) == int32('$') { + l10n = uint32(1) + **(**int32)(__ccgo_up(nl_type + uintptr(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + 1*4))-int32('0'))*4)) = int32(_INT) + w = Int32FromUint64(*(*Tuintmax_t)(unsafe.Pointer(nl_arg + uintptr(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + 1*4))-int32('0'))*8))) + **(**uintptr)(__ccgo_up(bp + 8)) = **(**uintptr)(__ccgo_up(bp + 8)) + uintptr(3)*4 + } else { + if !(l10n != 0) { + if f != 0 { + v5 = VaInt32(&**(**Tva_list)(__ccgo_up(ap))) + } else { + v5 = 0 + } + w = v5 + **(**uintptr)(__ccgo_up(bp + 8)) += 4 + } else { + goto inval + } + } + if w < 0 { + fl = fl | Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' ')) + w = -w + } + } else { + v5 = _getint1(tls, bp+8) + w = v5 + if v5 < 0 { + goto overflow + } + } + /* Read precision */ + if **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)))) == int32('.') && **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + 1*4)) == int32('*') { + if BoolInt32(Uint32FromInt32(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + 2*4)))-uint32('0') < uint32(10)) != 0 && **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + 3*4)) == int32('$') { + **(**int32)(__ccgo_up(nl_type + uintptr(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + 2*4))-int32('0'))*4)) = int32(_INT) + p = Int32FromUint64(*(*Tuintmax_t)(unsafe.Pointer(nl_arg + uintptr(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + 2*4))-int32('0'))*8))) + **(**uintptr)(__ccgo_up(bp + 8)) = **(**uintptr)(__ccgo_up(bp + 8)) + uintptr(4)*4 + } else { + if !(l10n != 0) { + if f != 0 { + v5 = VaInt32(&**(**Tva_list)(__ccgo_up(ap))) + } else { + v5 = 0 + } + p = v5 + **(**uintptr)(__ccgo_up(bp + 8)) = **(**uintptr)(__ccgo_up(bp + 8)) + uintptr(2)*4 + } else { + goto inval + } + } + xp = BoolInt32(p >= 0) + } else { + if **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)))) == int32('.') { + **(**uintptr)(__ccgo_up(bp + 8)) += 4 + p = _getint1(tls, bp+8) + xp = int32(1) + } else { + p = -int32(1) + xp = 0 + } + } + /* Format specifier state machine */ + st = uint32(0) + for cond := true; cond; cond = st-uint32(1) < uint32(_STOP) { + if Uint32FromInt32(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)))))-uint32('A') > Uint32FromInt32(Int32FromUint8('z')-Int32FromUint8('A')) { + goto inval + } + ps = st + v8 = **(**uintptr)(__ccgo_up(bp + 8)) + **(**uintptr)(__ccgo_up(bp + 8)) += 4 + st = uint32(**(**uint8)(__ccgo_up(uintptr(unsafe.Pointer(&_states1)) + uintptr(st)*58 + uintptr(**(**Twchar_t)(__ccgo_up(v8))-int32('A'))))) + } + if !(st != 0) { + goto inval + } + /* Check validity of argument type (nl/normal) */ + if st == uint32(_NOARG) { + if argpos >= 0 { + goto inval + } + } else { + if argpos >= 0 { + **(**int32)(__ccgo_up(nl_type + uintptr(argpos)*4)) = Int32FromUint32(st) + **(**Targ)(__ccgo_up(bp + 16)) = **(**Targ)(__ccgo_up(nl_arg + uintptr(argpos)*8)) + } else { + if f != 0 { + _pop_arg1(tls, bp+16, Int32FromUint32(st), ap) + } else { + return 0 + } + } + } + if !(f != 0) { + goto _1 + } + /* Do not process any new directives once in error state. */ + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_ERR) != 0 { + return -int32(1) + } + t = **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + uintptr(-Int32FromInt32(1))*4)) + if ps != 0 && t&int32(15) == int32(3) { + t = t & ^Int32FromInt32(32) + } + switch t { + case int32('n'): + switch ps { + case uint32(_BARE): + **(**int32)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 16)))) = cnt + case uint32(_LPRE): + **(**int64)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 16)))) = int64(cnt) + case uint32(_LLPRE): + **(**int64)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 16)))) = int64(cnt) + case uint32(_HPRE): + **(**uint16)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 16)))) = Uint16FromInt32(cnt) + case uint32(_HHPRE): + **(**uint8)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 16)))) = Uint8FromInt32(cnt) + case uint32(_ZTPRE): + **(**Tsize_t)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 16)))) = Uint64FromInt32(cnt) + case uint32(_JPRE): + **(**Tuintmax_t)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 16)))) = Uint64FromInt32(cnt) + break + } + goto _1 + case int32('c'): + fallthrough + case int32('C'): + if w < int32(1) { + w = int32(1) + } + _pad4(tls, f, w-int32(1), Int32FromUint32(fl)) + if t == int32('C') { + v9 = *(*Tuintmax_t)(unsafe.Pointer(bp + 16)) + } else { + v9 = uint64(Xbtowc(tls, Int32FromUint64(*(*Tuintmax_t)(unsafe.Pointer(bp + 16))))) + } + *(*Twchar_t)(unsafe.Pointer(bp)) = Int32FromUint64(v9) + _out1(tls, f, bp, uint64(1)) + _pad4(tls, f, w-int32(1), Int32FromUint32(fl^Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' ')))) + l = w + goto _1 + case int32('S'): + a = *(*uintptr)(unsafe.Pointer(bp + 16)) + if p < 0 { + v5 = int32(INT_MAX) + } else { + v5 = p + } + z = a + uintptr(Xwcsnlen(tls, a, Uint64FromInt32(v5)))*4 + if p < 0 && **(**Twchar_t)(__ccgo_up(z)) != 0 { + goto overflow + } + p = int32((int64(z) - int64(a)) / 4) + if w < p { + w = p + } + _pad4(tls, f, w-p, Int32FromUint32(fl)) + _out1(tls, f, a, Uint64FromInt32(p)) + _pad4(tls, f, w-p, Int32FromUint32(fl^Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' ')))) + l = w + goto _1 + case int32('m'): + *(*uintptr)(unsafe.Pointer(bp + 16)) = Xstrerror(tls, **(**int32)(__ccgo_up(X__errno_location(tls)))) + fallthrough + case int32('s'): + if !(*(*uintptr)(unsafe.Pointer(bp + 16)) != 0) { + *(*uintptr)(unsafe.Pointer(bp + 16)) = __ccgo_ts + 1666 + } + bs = *(*uintptr)(unsafe.Pointer(bp + 16)) + v5 = Int32FromInt32(0) + l = v5 + i = v5 + for { + if p < 0 { + v6 = int32(INT_MAX) + } else { + v6 = p + } + if v15 = l < v6; v15 { + v7 = Xmbtowc(tls, bp+40, bs, uint64(MB_LEN_MAX)) + i = v7 + } + if !(v15 && v7 > 0) { + break + } + goto _11 + _11: + ; + bs = bs + uintptr(i) + l = l + 1 + } + if i < 0 { + return -int32(1) + } + if p < 0 && **(**uint8)(__ccgo_up(bs)) != 0 { + goto overflow + } + p = l + if w < p { + w = p + } + _pad4(tls, f, w-p, Int32FromUint32(fl)) + bs = *(*uintptr)(unsafe.Pointer(bp + 16)) + for { + v5 = l + l = l - 1 + if !(v5 != 0) { + break + } + i = Xmbtowc(tls, bp+40, bs, uint64(MB_LEN_MAX)) + bs = bs + uintptr(i) + _out1(tls, f, bp+40, uint64(1)) + } + _pad4(tls, f, w-p, Int32FromUint32(fl^Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' ')))) + l = w + goto _1 + } + if xp != 0 && p < 0 { + goto overflow + } + Xsnprintf(tls, bp+24, uint64(16), __ccgo_ts+1677, VaList(bp+56, __ccgo_ts+1697+BoolUintptr(!(fl&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0)), __ccgo_ts+1699+BoolUintptr(!(fl&(Uint32FromUint32(1)<<(Int32FromUint8('+')-Int32FromUint8(' '))) != 0)), __ccgo_ts+1701+BoolUintptr(!(fl&(Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' '))) != 0)), __ccgo_ts+711+BoolUintptr(!(fl&(Uint32FromUint32(1)<<(Int32FromUint8(' ')-Int32FromUint8(' '))) != 0)), __ccgo_ts+1703+BoolUintptr(!(fl&(Uint32FromUint32(1)<<(Int32FromUint8('0')-Int32FromUint8(' '))) != 0)), Int32FromUint8(_sizeprefix[t|int32(32)-int32('a')]), t)) + switch t | Int32FromInt32(32) { + case int32('a'): + fallthrough + case int32('e'): + fallthrough + case int32('f'): + fallthrough + case int32('g'): + l = Xfprintf(tls, f, bp+24, VaList(bp+56, w, p, *(*float64)(unsafe.Pointer(bp + 16)))) + case int32('d'): + fallthrough + case int32('i'): + fallthrough + case int32('o'): + fallthrough + case int32('u'): + fallthrough + case int32('x'): + fallthrough + case int32('p'): + l = Xfprintf(tls, f, bp+24, VaList(bp+56, w, p, *(*Tuintmax_t)(unsafe.Pointer(bp + 16)))) + break + } + goto _1 + _1: + } + if f != 0 { + return cnt + } + if !(l10n != 0) { + return 0 + } + i = int32(1) + for { + if !(i <= int32(NL_ARGMAX) && **(**int32)(__ccgo_up(nl_type + uintptr(i)*4)) != 0) { + break + } + _pop_arg1(tls, nl_arg+uintptr(i)*8, **(**int32)(__ccgo_up(nl_type + uintptr(i)*4)), ap) + goto _17 + _17: + ; + i = i + 1 + } + for { + if !(i <= int32(NL_ARGMAX) && !(**(**int32)(__ccgo_up(nl_type + uintptr(i)*4)) != 0)) { + break + } + goto _18 + _18: + ; + i = i + 1 + } + if i <= int32(NL_ARGMAX) { + return -int32(1) + } + return int32(1) + goto inval +inval: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + goto overflow +overflow: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOVERFLOW) + return -int32(1) +} + +func Xvfwprintf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v ap=%v, (%v:)", tls, f, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(128) + defer tls.Free(128) + var __need_unlock, olderr, ret, v1 int32 + var _ /* ap2 at bp+0 */ Tva_list + var _ /* nl_arg at bp+48 */ [10]Targ + var _ /* nl_type at bp+8 */ [10]int32 + _, _, _, _ = __need_unlock, olderr, ret, v1 + **(**[10]int32)(__ccgo_up(bp + 8)) = [10]int32{} + /* the copy allows passing va_list* even if va_list is an array */ + **(**Tva_list)(__ccgo_up(bp)) = ap + if _wprintf_core(tls, uintptr(0), fmt, bp, bp+48, bp+8) < 0 { + _ = **(**Tva_list)(__ccgo_up(bp)) + return -int32(1) + } + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + Xfwide(tls, f, int32(1)) + olderr = Int32FromUint32((*TFILE)(unsafe.Pointer(f)).Fflags & uint32(F_ERR)) + **(**uint32)(__ccgo_up(f)) &= Uint32FromInt32(^Int32FromInt32(F_ERR)) + ret = _wprintf_core(tls, f, fmt, bp, bp+48, bp+8) + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_ERR) != 0 { + ret = -int32(1) + } + **(**uint32)(__ccgo_up(f)) |= Uint32FromInt32(olderr) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + _ = **(**Tva_list)(__ccgo_up(bp)) + return ret +} + +func _store_int1(tls *TLS, dest uintptr, size int32, i uint64) { + if !(dest != 0) { + return + } + switch size { + case -int32(2): + **(**uint8)(__ccgo_up(dest)) = uint8(i) + case -int32(1): + **(**int16)(__ccgo_up(dest)) = Int16FromUint64(i) + case SIZE_def: + **(**int32)(__ccgo_up(dest)) = Int32FromUint64(i) + case int32(SIZE_l): + **(**int64)(__ccgo_up(dest)) = Int64FromUint64(i) + case int32(SIZE_ll): + **(**int64)(__ccgo_up(dest)) = Int64FromUint64(i) + break + } +} + +func _arg_n1(tls *TLS, ap Tva_list, n uint32) (r uintptr) { + var ap2 Tva_list + var i uint32 + var p uintptr + _, _, _ = ap2, i, p + ap2 = ap + i = n + for { + if !(i > uint32(1)) { + break + } + _ = VaUintptr(&ap2) + goto _1 + _1: + ; + i = i - 1 + } + p = VaUintptr(&ap2) + _ = ap2 + return p +} + +func _in_set(tls *TLS, set uintptr, c int32) (r int32) { + var j int32 + var p, v3 uintptr + _, _, _ = j, p, v3 + p = set + if **(**Twchar_t)(__ccgo_up(p)) == int32('-') { + if c == int32('-') { + return int32(1) + } + p += 4 + } else { + if **(**Twchar_t)(__ccgo_up(p)) == int32(']') { + if c == int32(']') { + return int32(1) + } + p += 4 + } + } + for { + if !(**(**Twchar_t)(__ccgo_up(p)) != 0 && **(**Twchar_t)(__ccgo_up(p)) != int32(']')) { + break + } + if **(**Twchar_t)(__ccgo_up(p)) == int32('-') && **(**Twchar_t)(__ccgo_up(p + 1*4)) != 0 && **(**Twchar_t)(__ccgo_up(p + 1*4)) != int32(']') { + v3 = p + p += 4 + j = **(**Twchar_t)(__ccgo_up(v3 + uintptr(-Int32FromInt32(1))*4)) + for { + if !(j < **(**Twchar_t)(__ccgo_up(p))) { + break + } + if c == j { + return int32(1) + } + goto _2 + _2: + ; + j = j + 1 + } + } + if c == **(**Twchar_t)(__ccgo_up(p)) { + return int32(1) + } + goto _1 + _1: + ; + p += 4 + } + return 0 +} + +func Xvfwscanf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v ap=%v, (%v:)", tls, f, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(80) + defer tls.Free(80) + var __need_unlock, alloc, c, gotmatch, invert, l, matches, size, t, width, v1 int32 + var dest, p, s, set, tmp1, tmp2, wcs, v5, v6 uintptr + var i, k, v37 Tsize_t + var pos Toff_t + var v4 uint32 + var _ /* cnt at bp+0 */ Toff_t + var _ /* tmp at bp+8 */ [22]uint8 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = __need_unlock, alloc, c, dest, gotmatch, i, invert, k, l, matches, p, pos, s, set, size, t, tmp1, tmp2, wcs, width, v1, v37, v4, v5, v6 + dest = UintptrFromInt32(0) + matches = 0 + pos = 0 + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + Xfwide(tls, f, int32(1)) + p = fmt + for { + if !(**(**Twchar_t)(__ccgo_up(p)) != 0) { + break + } + alloc = 0 + if Xiswspace(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(p)))) != 0 { + for Xiswspace(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(p + 1*4)))) != 0 { + p += 4 + } + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend && Int32FromUint8(**(**uint8)(__ccgo_up((*TFILE)(unsafe.Pointer(f)).Frpos))) < int32(128) { + v6 = f + 8 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + v4 = uint32(**(**uint8)(__ccgo_up(v5))) + } else { + v4 = Xgetwc(tls, f) + } + v1 = Int32FromUint32(v4) + c = v1 + if !(Xiswspace(tls, Uint32FromInt32(v1)) != 0) { + break + } + pos = pos + 1 + } + if (*TFILE)(unsafe.Pointer(f)).Frend != 0 && Uint32FromInt32(c) < uint32(128) { + v6 = f + 8 + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) - 1 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + _ = **(**uint8)(__ccgo_up(v5)) + } else { + Xungetwc(tls, Uint32FromInt32(c), f) + } + goto _2 + } + if **(**Twchar_t)(__ccgo_up(p)) != int32('%') || **(**Twchar_t)(__ccgo_up(p + 1*4)) == int32('%') { + if **(**Twchar_t)(__ccgo_up(p)) == int32('%') { + p += 4 + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend && Int32FromUint8(**(**uint8)(__ccgo_up((*TFILE)(unsafe.Pointer(f)).Frpos))) < int32(128) { + v6 = f + 8 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + v4 = uint32(**(**uint8)(__ccgo_up(v5))) + } else { + v4 = Xgetwc(tls, f) + } + v1 = Int32FromUint32(v4) + c = v1 + if !(Xiswspace(tls, Uint32FromInt32(v1)) != 0) { + break + } + pos = pos + 1 + } + } else { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend && Int32FromUint8(**(**uint8)(__ccgo_up((*TFILE)(unsafe.Pointer(f)).Frpos))) < int32(128) { + v6 = f + 8 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + v4 = uint32(**(**uint8)(__ccgo_up(v5))) + } else { + v4 = Xgetwc(tls, f) + } + c = Int32FromUint32(v4) + } + if c != **(**Twchar_t)(__ccgo_up(p)) { + if (*TFILE)(unsafe.Pointer(f)).Frend != 0 && Uint32FromInt32(c) < uint32(128) { + v6 = f + 8 + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) - 1 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + _ = **(**uint8)(__ccgo_up(v5)) + } else { + Xungetwc(tls, Uint32FromInt32(c), f) + } + if c < 0 { + goto input_fail + } + goto match_fail + } + pos = pos + 1 + goto _2 + } + p += 4 + if **(**Twchar_t)(__ccgo_up(p)) == int32('*') { + dest = uintptr(0) + p += 4 + } else { + if BoolInt32(Uint32FromInt32(**(**Twchar_t)(__ccgo_up(p)))-uint32('0') < uint32(10)) != 0 && **(**Twchar_t)(__ccgo_up(p + 1*4)) == int32('$') { + dest = _arg_n1(tls, ap, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(p))-int32('0'))) + p = p + uintptr(2)*4 + } else { + dest = VaUintptr(&ap) + } + } + width = 0 + for { + if !(BoolInt32(Uint32FromInt32(**(**Twchar_t)(__ccgo_up(p)))-uint32('0') < uint32(10)) != 0) { + break + } + width = int32(10)*width + **(**Twchar_t)(__ccgo_up(p)) - int32('0') + goto _18 + _18: + ; + p += 4 + } + if **(**Twchar_t)(__ccgo_up(p)) == int32('m') { + wcs = uintptr(0) + s = uintptr(0) + alloc = BoolInt32(!!(dest != 0)) + p += 4 + } else { + alloc = 0 + } + size = SIZE_def + v5 = p + p += 4 + switch **(**Twchar_t)(__ccgo_up(v5)) { + case int32('h'): + if **(**Twchar_t)(__ccgo_up(p)) == int32('h') { + p += 4 + size = -Int32FromInt32(2) + } else { + size = -int32(1) + } + case int32('l'): + if **(**Twchar_t)(__ccgo_up(p)) == int32('l') { + p += 4 + size = Int32FromInt32(SIZE_ll) + } else { + size = int32(SIZE_l) + } + case int32('j'): + size = int32(SIZE_ll) + case int32('z'): + fallthrough + case int32('t'): + size = int32(SIZE_l) + case int32('L'): + size = int32(SIZE_L) + case int32('d'): + fallthrough + case int32('i'): + fallthrough + case int32('o'): + fallthrough + case int32('u'): + fallthrough + case int32('x'): + fallthrough + case int32('a'): + fallthrough + case int32('e'): + fallthrough + case int32('f'): + fallthrough + case int32('g'): + fallthrough + case int32('A'): + fallthrough + case int32('E'): + fallthrough + case int32('F'): + fallthrough + case int32('G'): + fallthrough + case int32('X'): + fallthrough + case int32('s'): + fallthrough + case int32('c'): + fallthrough + case int32('['): + fallthrough + case int32('S'): + fallthrough + case int32('C'): + fallthrough + case int32('p'): + fallthrough + case int32('n'): + p -= 4 + default: + goto fmt_fail + } + t = **(**Twchar_t)(__ccgo_up(p)) + /* Transform S,C -> ls,lc */ + if t&int32(0x2f) == int32(3) { + size = int32(SIZE_l) + t = t | int32(32) + } + if t != int32('n') { + if t != int32('[') && t|int32(32) != int32('c') { + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend && Int32FromUint8(**(**uint8)(__ccgo_up((*TFILE)(unsafe.Pointer(f)).Frpos))) < int32(128) { + v6 = f + 8 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + v4 = uint32(**(**uint8)(__ccgo_up(v5))) + } else { + v4 = Xgetwc(tls, f) + } + v1 = Int32FromUint32(v4) + c = v1 + if !(Xiswspace(tls, Uint32FromInt32(v1)) != 0) { + break + } + pos = pos + 1 + } + } else { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend && Int32FromUint8(**(**uint8)(__ccgo_up((*TFILE)(unsafe.Pointer(f)).Frpos))) < int32(128) { + v6 = f + 8 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + v4 = uint32(**(**uint8)(__ccgo_up(v5))) + } else { + v4 = Xgetwc(tls, f) + } + c = Int32FromUint32(v4) + } + if c < 0 { + goto input_fail + } + if (*TFILE)(unsafe.Pointer(f)).Frend != 0 && Uint32FromInt32(c) < uint32(128) { + v6 = f + 8 + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) - 1 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + _ = **(**uint8)(__ccgo_up(v5)) + } else { + Xungetwc(tls, Uint32FromInt32(c), f) + } + } + switch t { + case int32('n'): + _store_int1(tls, dest, size, Uint64FromInt64(pos)) + /* do not increment match count, etc! */ + goto _2 + case int32('s'): + fallthrough + case int32('c'): + fallthrough + case int32('['): + if t == int32('c') { + if width < int32(1) { + width = int32(1) + } + invert = int32(1) + set = __ccgo_ts + 1705 + } else { + if t == int32('s') { + invert = int32(1) + set = uintptr(unsafe.Pointer(&_spaces1)) + } else { + p += 4 + v5 = p + if **(**Twchar_t)(__ccgo_up(v5)) == int32('^') { + p += 4 + invert = Int32FromInt32(1) + } else { + invert = 0 + } + set = p + if **(**Twchar_t)(__ccgo_up(p)) == int32(']') { + p += 4 + } + for **(**Twchar_t)(__ccgo_up(p)) != int32(']') { + if !(**(**Twchar_t)(__ccgo_up(p)) != 0) { + goto fmt_fail + } + p += 4 + } + } + } + if size == SIZE_def { + v5 = dest + } else { + v5 = uintptr(0) + } + s = v5 + if size == int32(SIZE_l) { + v5 = dest + } else { + v5 = uintptr(0) + } + wcs = v5 + gotmatch = 0 + if width < int32(1) { + width = -int32(1) + } + i = uint64(0) + if alloc != 0 { + if t == int32('c') { + v4 = Uint32FromInt32(width) + uint32(1) + } else { + v4 = uint32(31) + } + k = uint64(v4) + if size == int32(SIZE_l) { + wcs = Xmalloc(tls, k*uint64(4)) + if !(wcs != 0) { + goto alloc_fail + } + } else { + s = Xmalloc(tls, k) + if !(s != 0) { + goto alloc_fail + } + } + } + for width != 0 { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend && Int32FromUint8(**(**uint8)(__ccgo_up((*TFILE)(unsafe.Pointer(f)).Frpos))) < int32(128) { + v6 = f + 8 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + v4 = uint32(**(**uint8)(__ccgo_up(v5))) + } else { + v4 = Xgetwc(tls, f) + } + v1 = Int32FromUint32(v4) + c = v1 + if v1 < 0 { + break + } + if _in_set(tls, set, c) == invert { + break + } + if wcs != 0 { + v37 = i + i = i + 1 + **(**Twchar_t)(__ccgo_up(wcs + uintptr(v37)*4)) = c + if alloc != 0 && i == k { + k = k + (k + uint64(1)) + tmp1 = Xrealloc(tls, wcs, k*uint64(4)) + if !(tmp1 != 0) { + goto alloc_fail + } + wcs = tmp1 + } + } else { + if size != int32(SIZE_l) { + if s != 0 { + v5 = s + uintptr(i) + } else { + v5 = bp + 8 + } + l = Xwctomb(tls, v5, c) + if l < 0 { + goto input_fail + } + i = i + Uint64FromInt32(l) + if alloc != 0 && i > k-uint64(4) { + k = k + (k + uint64(1)) + tmp2 = Xrealloc(tls, s, k) + if !(tmp2 != 0) { + goto alloc_fail + } + s = tmp2 + } + } + } + pos = pos + 1 + width = width - BoolInt32(width > 0) + gotmatch = int32(1) + } + if width != 0 { + if (*TFILE)(unsafe.Pointer(f)).Frend != 0 && Uint32FromInt32(c) < uint32(128) { + v6 = f + 8 + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) - 1 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + _ = **(**uint8)(__ccgo_up(v5)) + } else { + Xungetwc(tls, Uint32FromInt32(c), f) + } + if t == int32('c') || !(gotmatch != 0) { + goto match_fail + } + } + if alloc != 0 { + if size == int32(SIZE_l) { + **(**uintptr)(__ccgo_up(dest)) = wcs + } else { + **(**uintptr)(__ccgo_up(dest)) = s + } + } + if t != int32('c') { + if wcs != 0 { + **(**Twchar_t)(__ccgo_up(wcs + uintptr(i)*4)) = 0 + } + if s != 0 { + **(**uint8)(__ccgo_up(s + uintptr(i))) = uint8(0) + } + } + case int32('d'): + fallthrough + case int32('i'): + fallthrough + case int32('o'): + fallthrough + case int32('u'): + fallthrough + case int32('x'): + fallthrough + case int32('a'): + fallthrough + case int32('e'): + fallthrough + case int32('f'): + fallthrough + case int32('g'): + fallthrough + case int32('A'): + fallthrough + case int32('E'): + fallthrough + case int32('F'): + fallthrough + case int32('G'): + fallthrough + case int32('X'): + fallthrough + case int32('p'): + if width < int32(1) { + width = 0 + } + Xsnprintf(tls, bp+8, uint64(22), __ccgo_ts+1709, VaList(bp+40, int32(1)+BoolInt32(!(dest != 0)), __ccgo_ts+1727, width, uintptr(unsafe.Pointer(&_size_pfx))+uintptr(size+int32(2))*3, t)) + **(**Toff_t)(__ccgo_up(bp)) = 0 + if dest != 0 { + v5 = dest + } else { + v5 = bp + } + if Xfscanf(tls, f, bp+8, VaList(bp+40, v5, bp)) == -int32(1) { + goto input_fail + } else { + if !(**(**Toff_t)(__ccgo_up(bp)) != 0) { + goto match_fail + } + } + pos = pos + **(**Toff_t)(__ccgo_up(bp)) + default: + goto fmt_fail + } + if dest != 0 { + matches = matches + 1 + } + goto _2 + _2: + ; + p += 4 + } + if !(0 != 0) { + goto _42 + } + goto fmt_fail +fmt_fail: + ; + goto alloc_fail +alloc_fail: + ; + goto input_fail +input_fail: + ; + if !(matches != 0) { + matches = matches - 1 + } + goto match_fail +match_fail: + ; + if alloc != 0 { + Xfree(tls, s) + Xfree(tls, wcs) + } +_42: + ; + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return matches +} + +var _size_pfx = [6][3]uint8{ + 0: {'h', 'h'}, + 1: {'h'}, + 2: {}, + 3: {'l'}, + 4: {'L'}, + 5: {'l', 'l'}, +} + +var _spaces1 = [22]Twchar_t{ + 0: int32(' '), + 1: int32('\t'), + 2: int32('\n'), + 3: int32('\r'), + 4: int32(11), + 5: int32(12), + 6: int32(0x0085), + 7: int32(0x2000), + 8: int32(0x2001), + 9: int32(0x2002), + 10: int32(0x2003), + 11: int32(0x2004), + 12: int32(0x2005), + 13: int32(0x2006), + 14: int32(0x2008), + 15: int32(0x2009), + 16: int32(0x200a), + 17: int32(0x2028), + 18: int32(0x2029), + 19: int32(0x205f), + 20: int32(0x3000), +} + +func X__isoc99_vfwscanf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v ap=%v, (%v:)", tls, f, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvfwscanf(tls, f, fmt, ap) +} + +func Xvprintf(tls *TLS, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v ap=%v, (%v:)", tls, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvfprintf(tls, uintptr(unsafe.Pointer(&X__stdout_FILE)), fmt, ap) +} + +func Xvscanf(tls *TLS, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v ap=%v, (%v:)", tls, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvfscanf(tls, uintptr(unsafe.Pointer(&X__stdin_FILE)), fmt, ap) +} + +func X__isoc99_vscanf(tls *TLS, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v ap=%v, (%v:)", tls, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvscanf(tls, fmt, ap) +} + +type Tcookie3 = struct { + Fs uintptr + Fn Tsize_t +} + +func _sn_write(tls *TLS, f uintptr, s uintptr, l Tsize_t) (r Tsize_t) { + var c, v3 uintptr + var k Tsize_t + var v1 uint64 + _, _, _, _ = c, k, v1, v3 + c = (*TFILE)(unsafe.Pointer(f)).Fcookie + if (*Tcookie3)(unsafe.Pointer(c)).Fn < Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Fwpos)-int64((*TFILE)(unsafe.Pointer(f)).Fwbase)) { + v1 = (*Tcookie3)(unsafe.Pointer(c)).Fn + } else { + v1 = Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Fwpos) - int64((*TFILE)(unsafe.Pointer(f)).Fwbase)) + } + k = v1 + if k != 0 { + Xmemcpy(tls, (*Tcookie3)(unsafe.Pointer(c)).Fs, (*TFILE)(unsafe.Pointer(f)).Fwbase, k) + **(**uintptr)(__ccgo_up(c)) += uintptr(k) + **(**Tsize_t)(__ccgo_up(c + 8)) -= k + } + if (*Tcookie3)(unsafe.Pointer(c)).Fn < l { + v1 = (*Tcookie3)(unsafe.Pointer(c)).Fn + } else { + v1 = l + } + k = v1 + if k != 0 { + Xmemcpy(tls, (*Tcookie3)(unsafe.Pointer(c)).Fs, s, k) + **(**uintptr)(__ccgo_up(c)) += uintptr(k) + **(**Tsize_t)(__ccgo_up(c + 8)) -= k + } + **(**uint8)(__ccgo_up((*Tcookie3)(unsafe.Pointer(c)).Fs)) = uint8(0) + v3 = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Fwbase = v3 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v3 + /* pretend to succeed, even if we discarded extra data */ + return l +} + +func Xvsnprintf(tls *TLS, s uintptr, n Tsize_t, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v fmt=%v ap=%v, (%v:)", tls, s, n, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(256) + defer tls.Free(256) + var v1 uintptr + var v2 uint64 + var _ /* buf at bp+0 */ [1]uint8 + var _ /* c at bp+8 */ Tcookie3 + var _ /* dummy at bp+1 */ [1]uint8 + var _ /* f at bp+24 */ TFILE + _, _ = v1, v2 + if n != 0 { + v1 = s + } else { + v1 = bp + 1 + } + if n != 0 { + v2 = n - uint64(1) + } else { + v2 = uint64(0) + } + **(**Tcookie3)(__ccgo_up(bp + 8)) = Tcookie3{ + Fs: v1, + Fn: v2, + } + **(**TFILE)(__ccgo_up(bp + 24)) = TFILE{ + Fwrite: __ccgo_fp(_sn_write), + Fbuf: bp, + Flock: -int32(1), + Flbf: -int32(1), + Fcookie: bp + 8, + } + **(**uint8)(__ccgo_up((**(**Tcookie3)(__ccgo_up(bp + 8))).Fs)) = uint8(0) + return Xvfprintf(tls, bp+24, fmt, ap) +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xvsprintf(tls *TLS, s uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v ap=%v, (%v:)", tls, s, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvsnprintf(tls, s, uint64(INT_MAX), fmt, ap) +} + +func _string_read(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + var end, src uintptr + var k Tsize_t + _, _, _ = end, k, src + src = (*TFILE)(unsafe.Pointer(f)).Fcookie + k = len1 + uint64(256) + end = Xmemchr(tls, src, 0, k) + if end != 0 { + k = Uint64FromInt64(int64(end) - int64(src)) + } + if k < len1 { + len1 = k + } + Xmemcpy(tls, buf, src, len1) + (*TFILE)(unsafe.Pointer(f)).Frpos = src + uintptr(len1) + (*TFILE)(unsafe.Pointer(f)).Frend = src + uintptr(k) + (*TFILE)(unsafe.Pointer(f)).Fcookie = src + uintptr(k) + return len1 +} + +func Xvsscanf(tls *TLS, s uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v ap=%v, (%v:)", tls, s, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(240) + defer tls.Free(240) + var _ /* f at bp+0 */ TFILE + **(**TFILE)(__ccgo_up(bp)) = TFILE{ + Fread: __ccgo_fp(_string_read), + Fbuf: s, + Flock: -int32(1), + Fcookie: s, + } + return Xvfscanf(tls, bp, fmt, ap) +} + +func X__isoc99_vsscanf(tls *TLS, s uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v ap=%v, (%v:)", tls, s, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvsscanf(tls, s, fmt, ap) +} + +type Tcookie4 = struct { + Fws uintptr + Fl Tsize_t +} + +func _sw_write(tls *TLS, f uintptr, s uintptr, l Tsize_t) (r Tsize_t) { + var c, v3, v4 uintptr + var i, v1 int32 + var l0 Tsize_t + var v2 bool + _, _, _, _, _, _, _ = c, i, l0, v1, v2, v3, v4 + l0 = l + i = 0 + c = (*TFILE)(unsafe.Pointer(f)).Fcookie + if s != (*TFILE)(unsafe.Pointer(f)).Fwbase && _sw_write(tls, f, (*TFILE)(unsafe.Pointer(f)).Fwbase, Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Fwpos)-int64((*TFILE)(unsafe.Pointer(f)).Fwbase))) == Uint64FromInt32(-Int32FromInt32(1)) { + return Uint64FromInt32(-Int32FromInt32(1)) + } + for { + if v2 = (*Tcookie4)(unsafe.Pointer(c)).Fl != 0 && l != 0; v2 { + v1 = Xmbtowc(tls, (*Tcookie4)(unsafe.Pointer(c)).Fws, s, l) + i = v1 + } + if !(v2 && v1 >= 0) { + break + } + if !(i != 0) { + i = int32(1) + } + s = s + uintptr(i) + l = l - Uint64FromInt32(i) + (*Tcookie4)(unsafe.Pointer(c)).Fl = (*Tcookie4)(unsafe.Pointer(c)).Fl - 1 + (*Tcookie4)(unsafe.Pointer(c)).Fws += 4 + } + **(**Twchar_t)(__ccgo_up((*Tcookie4)(unsafe.Pointer(c)).Fws)) = 0 + if i < 0 { + v4 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Fwend = v4 + v3 = v4 + (*TFILE)(unsafe.Pointer(f)).Fwbase = v3 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v3 + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) + return Uint64FromInt32(i) + } + (*TFILE)(unsafe.Pointer(f)).Fwend = (*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr((*TFILE)(unsafe.Pointer(f)).Fbuf_size) + v3 = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Fwbase = v3 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v3 + return l0 +} + +func Xvswprintf(tls *TLS, s uintptr, n Tsize_t, fmt uintptr, ap Tva_list) (r1 int32) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v fmt=%v ap=%v, (%v:)", tls, s, n, fmt, ap, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(512) + defer tls.Free(512) + var r, v1 int32 + var _ /* buf at bp+0 */ [256]uint8 + var _ /* c at bp+256 */ Tcookie4 + var _ /* f at bp+272 */ TFILE + _, _ = r, v1 + **(**Tcookie4)(__ccgo_up(bp + 256)) = Tcookie4{ + Fws: s, + Fl: n - uint64(1), + } + **(**TFILE)(__ccgo_up(bp + 272)) = TFILE{ + Fwrite: __ccgo_fp(_sw_write), + Fbuf: bp, + Fbuf_size: uint64(256), + Flock: -int32(1), + Flbf: -int32(1), + Fcookie: bp + 256, + } + if !(n != 0) { + return -int32(1) + } + r = Xvfwprintf(tls, bp+272, fmt, ap) + _sw_write(tls, bp+272, uintptr(0), uint64(0)) + if Uint64FromInt32(r) >= n { + v1 = -int32(1) + } else { + v1 = r + } + return v1 +} + +func _wstring_read(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + bp := tls.Alloc(16) + defer tls.Free(16) + var k Tsize_t + var v1, v2 uintptr + var _ /* src at bp+0 */ uintptr + _, _, _ = k, v1, v2 + **(**uintptr)(__ccgo_up(bp)) = (*TFILE)(unsafe.Pointer(f)).Fcookie + if !(**(**uintptr)(__ccgo_up(bp)) != 0) { + return uint64(0) + } + k = Xwcsrtombs(tls, (*TFILE)(unsafe.Pointer(f)).Fbuf, bp, (*TFILE)(unsafe.Pointer(f)).Fbuf_size, uintptr(0)) + if k == Uint64FromInt32(-Int32FromInt32(1)) { + v1 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Frend = v1 + (*TFILE)(unsafe.Pointer(f)).Frpos = v1 + return uint64(0) + } + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Frend = (*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr(k) + (*TFILE)(unsafe.Pointer(f)).Fcookie = **(**uintptr)(__ccgo_up(bp)) + if !(len1 != 0) || !(k != 0) { + return uint64(0) + } + v2 = f + 8 + v1 = *(*uintptr)(unsafe.Pointer(v2)) + *(*uintptr)(unsafe.Pointer(v2)) = *(*uintptr)(unsafe.Pointer(v2)) + 1 + **(**uint8)(__ccgo_up(buf)) = **(**uint8)(__ccgo_up(v1)) + return uint64(1) +} + +func Xvswscanf(tls *TLS, s uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v ap=%v, (%v:)", tls, s, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(496) + defer tls.Free(496) + var _ /* buf at bp+0 */ [256]uint8 + var _ /* f at bp+256 */ TFILE + **(**TFILE)(__ccgo_up(bp + 256)) = TFILE{ + Fread: __ccgo_fp(_wstring_read), + Fbuf: bp, + Fbuf_size: uint64(256), + Flock: -int32(1), + Fcookie: s, + } + return Xvfwscanf(tls, bp+256, fmt, ap) +} + +func X__isoc99_vswscanf(tls *TLS, s uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v ap=%v, (%v:)", tls, s, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvswscanf(tls, s, fmt, ap) +} + +func Xvwprintf(tls *TLS, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v ap=%v, (%v:)", tls, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvfwprintf(tls, uintptr(unsafe.Pointer(&X__stdout_FILE)), fmt, ap) +} + +func Xvwscanf(tls *TLS, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v ap=%v, (%v:)", tls, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvfwscanf(tls, uintptr(unsafe.Pointer(&X__stdin_FILE)), fmt, ap) +} + +func X__isoc99_vwscanf(tls *TLS, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v ap=%v, (%v:)", tls, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvwscanf(tls, fmt, ap) +} + +func Xwprintf(tls *TLS, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v va=%v, (%v:)", tls, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvwprintf(tls, fmt, ap) + _ = ap + return ret +} + +func Xwscanf(tls *TLS, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v va=%v, (%v:)", tls, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvwscanf(tls, fmt, ap) + _ = ap + return ret +} + +func X__isoc99_wscanf(tls *TLS, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v va=%v, (%v:)", tls, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwscanf(tls, fmt, va) +} + +func Xabs(tls *TLS, a int32) (r int32) { + if __ccgo_strace { + trc("tls=%v a=%v, (%v:)", tls, a, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + _ = v1 + if a > 0 { + v1 = a + } else { + v1 = -a + } + return v1 +} + +func Xatof(tls *TLS, s uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtod(tls, s, uintptr(0)) +} + +func Xatoi(tls *TLS, s uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var n, neg, v1, v2 int32 + var v4 uintptr + _, _, _, _, _ = n, neg, v1, v2, v4 + n = 0 + neg = 0 + for { + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(s))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _3 + _3: + if !(v2 != 0) { + break + } + s = s + 1 + } + switch Int32FromUint8(**(**uint8)(__ccgo_up(s))) { + case int32('-'): + neg = int32(1) + fallthrough + case int32('+'): + s = s + 1 + } + /* Compute n as a negative number to avoid overflow on INT_MIN */ + for BoolInt32(uint32(**(**uint8)(__ccgo_up(s)))-uint32('0') < uint32(10)) != 0 { + v4 = s + s = s + 1 + n = int32(10)*n - (Int32FromUint8(**(**uint8)(__ccgo_up(v4))) - int32('0')) + } + if neg != 0 { + v1 = n + } else { + v1 = -n + } + return v1 +} + +func Xatol(tls *TLS, s uintptr) (r int64) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var n, v5 int64 + var neg, v1, v2 int32 + var v4 uintptr + _, _, _, _, _, _ = n, neg, v1, v2, v4, v5 + n = 0 + neg = 0 + for { + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(s))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _3 + _3: + if !(v2 != 0) { + break + } + s = s + 1 + } + switch Int32FromUint8(**(**uint8)(__ccgo_up(s))) { + case int32('-'): + neg = int32(1) + fallthrough + case int32('+'): + s = s + 1 + } + /* Compute n as a negative number to avoid overflow on LONG_MIN */ + for BoolInt32(uint32(**(**uint8)(__ccgo_up(s)))-uint32('0') < uint32(10)) != 0 { + v4 = s + s = s + 1 + n = int64(10)*n - int64(Int32FromUint8(**(**uint8)(__ccgo_up(v4)))-Int32FromUint8('0')) + } + if neg != 0 { + v5 = n + } else { + v5 = -n + } + return v5 +} + +func Xatoll(tls *TLS, s uintptr) (r int64) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var n, v5 int64 + var neg, v1, v2 int32 + var v4 uintptr + _, _, _, _, _, _ = n, neg, v1, v2, v4, v5 + n = 0 + neg = 0 + for { + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(s))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _3 + _3: + if !(v2 != 0) { + break + } + s = s + 1 + } + switch Int32FromUint8(**(**uint8)(__ccgo_up(s))) { + case int32('-'): + neg = int32(1) + fallthrough + case int32('+'): + s = s + 1 + } + /* Compute n as a negative number to avoid overflow on LLONG_MIN */ + for BoolInt32(uint32(**(**uint8)(__ccgo_up(s)))-uint32('0') < uint32(10)) != 0 { + v4 = s + s = s + 1 + n = int64(10)*n - int64(Int32FromUint8(**(**uint8)(__ccgo_up(v4)))-Int32FromUint8('0')) + } + if neg != 0 { + v5 = n + } else { + v5 = -n + } + return v5 +} + +type t__ccgo_fp__Xbsearch_4 = func(*TLS, uintptr, uintptr) int32 + +func Xbsearch(tls *TLS, key uintptr, base uintptr, nel Tsize_t, width Tsize_t, __ccgo_fp_cmp uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v base=%v nel=%v width=%v __ccgo_fp_cmp=%v, (%v:)", tls, key, base, nel, width, __ccgo_fp_cmp, origin(2)) + defer func() { trc("-> %v", r) }() + } + var sign int32 + var try uintptr + _, _ = sign, try + for nel > uint64(0) { + try = base + uintptr(width*(nel/uint64(2))) + sign = (*(*func(*TLS, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cmp})))(tls, key, try) + if sign < 0 { + nel = nel / uint64(2) + } else { + if sign > 0 { + base = try + uintptr(width) + nel = nel - (nel/uint64(2) + uint64(1)) + } else { + return try + } + } + } + return UintptrFromInt32(0) +} + +func Xdiv(tls *TLS, num int32, den int32) (r Tdiv_t) { + if __ccgo_strace { + trc("tls=%v num=%v den=%v, (%v:)", tls, num, den, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Tdiv_t{ + Fquot: num / den, + Frem: num % den, + } +} + +func Xecvt(tls *TLS, x float64, n int32, dp uintptr, sign uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v dp=%v sign=%v, (%v:)", tls, x, n, dp, sign, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var i, j, v1 int32 + var _ /* tmp at bp+0 */ [32]uint8 + _, _, _ = i, j, v1 + if Uint32FromInt32(n)-uint32(1) > uint32(15) { + n = int32(15) + } + Xsprintf(tls, bp, __ccgo_ts+1730, VaList(bp+40, n-int32(1), x)) + v1 = BoolInt32(Int32FromUint8((**(**[32]uint8)(__ccgo_up(bp)))[0]) == Int32FromUint8('-')) + **(**int32)(__ccgo_up(sign)) = v1 + i = v1 + j = 0 + for { + if !(Int32FromUint8((**(**[32]uint8)(__ccgo_up(bp)))[i]) != int32('e')) { + break + } + _buf8[j] = (**(**[32]uint8)(__ccgo_up(bp)))[i] + goto _2 + _2: + ; + v1 = i + i = i + 1 + j = j + BoolInt32(Int32FromUint8((**(**[32]uint8)(__ccgo_up(bp)))[v1]) != int32('.')) + } + _buf8[j] = uint8(0) + **(**int32)(__ccgo_up(dp)) = Xatoi(tls, bp+uintptr(i)+uintptr(1)) + int32(1) + return uintptr(unsafe.Pointer(&_buf8)) +} + +var _buf8 [16]uint8 + +func Xfcvt(tls *TLS, x float64, n int32, dp uintptr, sign uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v dp=%v sign=%v, (%v:)", tls, x, n, dp, sign, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(1536) + defer tls.Free(1536) + var i, lz int32 + var _ /* tmp at bp+0 */ [1500]uint8 + _, _ = i, lz + if Uint32FromInt32(n) > uint32(1400) { + n = int32(1400) + } + Xsprintf(tls, bp, __ccgo_ts+1735, VaList(bp+1512, n, x)) + i = BoolInt32(Int32FromUint8((**(**[1500]uint8)(__ccgo_up(bp)))[0]) == int32('-')) + if Int32FromUint8((**(**[1500]uint8)(__ccgo_up(bp)))[i]) == int32('0') { + lz = Int32FromUint64(Xstrspn(tls, bp+uintptr(i)+uintptr(2), __ccgo_ts+1703)) + } else { + lz = -Int32FromUint64(Xstrcspn(tls, bp+uintptr(i), __ccgo_ts+607)) + } + if n <= lz { + **(**int32)(__ccgo_up(sign)) = i + **(**int32)(__ccgo_up(dp)) = int32(1) + if Uint32FromInt32(n) > uint32(14) { + n = int32(14) + } + return __ccgo_ts + 1740 + UintptrFromInt32(14) - uintptr(n) + } + return Xecvt(tls, x, n-lz, dp, sign) +} + +func Xgcvt(tls *TLS, x float64, n int32, b uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v b=%v, (%v:)", tls, x, n, b, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + Xsprintf(tls, b, __ccgo_ts+1756, VaList(bp+8, n, x)) + return b +} + +func Ximaxabs(tls *TLS, a Tintmax_t) (r Tintmax_t) { + if __ccgo_strace { + trc("tls=%v a=%v, (%v:)", tls, a, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int64 + _ = v1 + if a > 0 { + v1 = a + } else { + v1 = -a + } + return v1 +} + +func Ximaxdiv(tls *TLS, num Tintmax_t, den Tintmax_t) (r Timaxdiv_t) { + if __ccgo_strace { + trc("tls=%v num=%v den=%v, (%v:)", tls, num, den, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Timaxdiv_t{ + Fquot: num / den, + Frem: num % den, + } +} + +func Xlabs(tls *TLS, a int64) (r int64) { + if __ccgo_strace { + trc("tls=%v a=%v, (%v:)", tls, a, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int64 + _ = v1 + if a > 0 { + v1 = a + } else { + v1 = -a + } + return v1 +} + +func Xldiv(tls *TLS, num int64, den int64) (r Tldiv_t) { + if __ccgo_strace { + trc("tls=%v num=%v den=%v, (%v:)", tls, num, den, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Tldiv_t{ + Fquot: num / den, + Frem: num % den, + } +} + +func Xllabs(tls *TLS, a int64) (r int64) { + if __ccgo_strace { + trc("tls=%v a=%v, (%v:)", tls, a, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int64 + _ = v1 + if a > 0 { + v1 = a + } else { + v1 = -a + } + return v1 +} + +func Xlldiv(tls *TLS, num int64, den int64) (r Tlldiv_t) { + if __ccgo_strace { + trc("tls=%v num=%v den=%v, (%v:)", tls, num, den, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Tlldiv_t{ + Fquot: num / den, + Frem: num % den, + } +} + +type Tcmpfun = uintptr + +func _pntz(tls *TLS, p uintptr) (r1 int32) { + var r, v1 int32 + var v2 bool + _, _, _ = r, v1, v2 + r = _a_ctz_l(tls, **(**Tsize_t)(__ccgo_up(p))-uint64(1)) + if v2 = r != 0; !v2 { + v1 = Int32FromUint64(Uint64FromInt32(8)*Uint64FromInt64(8) + Uint64FromInt32(_a_ctz_l(tls, **(**Tsize_t)(__ccgo_up(p + 1*8))))) + r = v1 + } + if v2 || Uint64FromInt32(v1) != Uint64FromInt32(8)*Uint64FromInt64(8) { + return r + } + return 0 +} + +func _cycle(tls *TLS, width Tsize_t, ar uintptr, n int32) { + bp := tls.Alloc(256) + defer tls.Free(256) + var i int32 + var l Tsize_t + var v1 uint64 + var _ /* tmp at bp+0 */ [256]uint8 + _, _, _ = i, l, v1 + if n < int32(2) { + return + } + **(**uintptr)(__ccgo_up(ar + uintptr(n)*8)) = bp + for width != 0 { + if uint64(256) < width { + v1 = uint64(256) + } else { + v1 = width + } + l = v1 + Xmemcpy(tls, **(**uintptr)(__ccgo_up(ar + uintptr(n)*8)), **(**uintptr)(__ccgo_up(ar)), l) + i = 0 + for { + if !(i < n) { + break + } + Xmemcpy(tls, **(**uintptr)(__ccgo_up(ar + uintptr(i)*8)), **(**uintptr)(__ccgo_up(ar + uintptr(i+int32(1))*8)), l) + **(**uintptr)(__ccgo_up(ar + uintptr(i)*8)) += uintptr(l) + goto _2 + _2: + ; + i = i + 1 + } + width = width - l + } +} + +// C documentation +// +// /* shl() and shr() need n > 0 */ +func _shl(tls *TLS, p uintptr, n int32) { + if Uint64FromInt32(n) >= Uint64FromInt32(8)*Uint64FromInt64(8) { + n = Int32FromUint64(uint64(n) - Uint64FromInt32(8)*Uint64FromInt64(8)) + **(**Tsize_t)(__ccgo_up(p + 1*8)) = **(**Tsize_t)(__ccgo_up(p)) + **(**Tsize_t)(__ccgo_up(p)) = uint64(0) + } + **(**Tsize_t)(__ccgo_up(p + 1*8)) <<= Uint64FromInt32(n) + **(**Tsize_t)(__ccgo_up(p + 1*8)) |= **(**Tsize_t)(__ccgo_up(p)) >> (Uint64FromInt64(8)*Uint64FromInt32(8) - Uint64FromInt32(n)) + **(**Tsize_t)(__ccgo_up(p)) <<= Uint64FromInt32(n) +} + +func _shr(tls *TLS, p uintptr, n int32) { + if Uint64FromInt32(n) >= Uint64FromInt32(8)*Uint64FromInt64(8) { + n = Int32FromUint64(uint64(n) - Uint64FromInt32(8)*Uint64FromInt64(8)) + **(**Tsize_t)(__ccgo_up(p)) = **(**Tsize_t)(__ccgo_up(p + 1*8)) + **(**Tsize_t)(__ccgo_up(p + 1*8)) = uint64(0) + } + **(**Tsize_t)(__ccgo_up(p)) >>= Uint64FromInt32(n) + **(**Tsize_t)(__ccgo_up(p)) |= **(**Tsize_t)(__ccgo_up(p + 1*8)) << (Uint64FromInt64(8)*Uint64FromInt32(8) - Uint64FromInt32(n)) + **(**Tsize_t)(__ccgo_up(p + 1*8)) >>= Uint64FromInt32(n) +} + +func _sift(tls *TLS, head uintptr, width Tsize_t, __ccgo_fp_cmp Tcmpfun, arg uintptr, pshift int32, lp uintptr) { + bp := tls.Alloc(912) + defer tls.Free(912) + var i, v1 int32 + var lf, rt uintptr + var _ /* ar at bp+0 */ [113]uintptr + _, _, _, _ = i, lf, rt, v1 + i = int32(1) + (**(**[113]uintptr)(__ccgo_up(bp)))[0] = head + for pshift > int32(1) { + rt = head - uintptr(width) + lf = head - uintptr(width) - uintptr(**(**Tsize_t)(__ccgo_up(lp + uintptr(pshift-int32(2))*8))) + if (*(*func(*TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cmp})))(tls, (**(**[113]uintptr)(__ccgo_up(bp)))[0], lf, arg) >= 0 && (*(*func(*TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cmp})))(tls, (**(**[113]uintptr)(__ccgo_up(bp)))[0], rt, arg) >= 0 { + break + } + if (*(*func(*TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cmp})))(tls, lf, rt, arg) >= 0 { + v1 = i + i = i + 1 + (**(**[113]uintptr)(__ccgo_up(bp)))[v1] = lf + head = lf + pshift = pshift - int32(1) + } else { + v1 = i + i = i + 1 + (**(**[113]uintptr)(__ccgo_up(bp)))[v1] = rt + head = rt + pshift = pshift - int32(2) + } + } + _cycle(tls, width, bp, i) +} + +func _trinkle(tls *TLS, head uintptr, width Tsize_t, __ccgo_fp_cmp Tcmpfun, arg uintptr, pp uintptr, pshift int32, trusty int32, lp uintptr) { + bp := tls.Alloc(928) + defer tls.Free(928) + var i, trail, v1 int32 + var lf, rt, stepson uintptr + var _ /* ar at bp+16 */ [113]uintptr + var _ /* p at bp+0 */ [2]Tsize_t + _, _, _, _, _, _ = i, lf, rt, stepson, trail, v1 + i = int32(1) + (**(**[2]Tsize_t)(__ccgo_up(bp)))[0] = **(**Tsize_t)(__ccgo_up(pp)) + (**(**[2]Tsize_t)(__ccgo_up(bp)))[int32(1)] = **(**Tsize_t)(__ccgo_up(pp + 1*8)) + (**(**[113]uintptr)(__ccgo_up(bp + 16)))[0] = head + for (**(**[2]Tsize_t)(__ccgo_up(bp)))[0] != uint64(1) || (**(**[2]Tsize_t)(__ccgo_up(bp)))[int32(1)] != uint64(0) { + stepson = head - uintptr(**(**Tsize_t)(__ccgo_up(lp + uintptr(pshift)*8))) + if (*(*func(*TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cmp})))(tls, stepson, (**(**[113]uintptr)(__ccgo_up(bp + 16)))[0], arg) <= 0 { + break + } + if !(trusty != 0) && pshift > int32(1) { + rt = head - uintptr(width) + lf = head - uintptr(width) - uintptr(**(**Tsize_t)(__ccgo_up(lp + uintptr(pshift-int32(2))*8))) + if (*(*func(*TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cmp})))(tls, rt, stepson, arg) >= 0 || (*(*func(*TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cmp})))(tls, lf, stepson, arg) >= 0 { + break + } + } + v1 = i + i = i + 1 + (**(**[113]uintptr)(__ccgo_up(bp + 16)))[v1] = stepson + head = stepson + trail = _pntz(tls, bp) + _shr(tls, bp, trail) + pshift = pshift + trail + trusty = 0 + } + if !(trusty != 0) { + _cycle(tls, width, bp+16, i) + _sift(tls, head, width, __ccgo_fp_cmp, arg, pshift, lp) + } +} + +type t__ccgo_fp__X__qsort_r_3 = func(*TLS, uintptr, uintptr, uintptr) int32 + +func X__qsort_r(tls *TLS, base uintptr, nel Tsize_t, width Tsize_t, __ccgo_fp_cmp Tcmpfun, arg uintptr) { + if __ccgo_strace { + trc("tls=%v base=%v nel=%v width=%v __ccgo_fp_cmp=%v arg=%v, (%v:)", tls, base, nel, width, __ccgo_fp_cmp, arg, origin(2)) + } + bp := tls.Alloc(784) + defer tls.Free(784) + var head, high uintptr + var i, size, v2, v3 Tsize_t + var pshift, trail int32 + var _ /* lp at bp+0 */ [96]Tsize_t + var _ /* p at bp+768 */ [2]Tsize_t + _, _, _, _, _, _, _, _ = head, high, i, pshift, size, trail, v2, v3 + size = width * nel + **(**[2]Tsize_t)(__ccgo_up(bp + 768)) = [2]Tsize_t{ + 0: uint64(1), + } + pshift = int32(1) + if !(size != 0) { + return + } + head = base + high = head + uintptr(size) - uintptr(width) + /* Precompute Leonardo numbers, scaled by element width */ + v2 = width + (**(**[96]Tsize_t)(__ccgo_up(bp)))[int32(1)] = v2 + (**(**[96]Tsize_t)(__ccgo_up(bp)))[0] = v2 + i = Uint64FromInt32(2) + for { + v3 = (**(**[96]Tsize_t)(__ccgo_up(bp)))[i-uint64(2)] + (**(**[96]Tsize_t)(__ccgo_up(bp)))[i-uint64(1)] + width + (**(**[96]Tsize_t)(__ccgo_up(bp)))[i] = v3 + if !(v3 < size) { + break + } + goto _1 + _1: + ; + i = i + 1 + } + for head < high { + if (**(**[2]Tsize_t)(__ccgo_up(bp + 768)))[0]&uint64(3) == uint64(3) { + _sift(tls, head, width, __ccgo_fp_cmp, arg, pshift, bp) + _shr(tls, bp+768, int32(2)) + pshift = pshift + int32(2) + } else { + if (**(**[96]Tsize_t)(__ccgo_up(bp)))[pshift-int32(1)] >= Uint64FromInt64(int64(high)-int64(head)) { + _trinkle(tls, head, width, __ccgo_fp_cmp, arg, bp+768, pshift, 0, bp) + } else { + _sift(tls, head, width, __ccgo_fp_cmp, arg, pshift, bp) + } + if pshift == int32(1) { + _shl(tls, bp+768, int32(1)) + pshift = 0 + } else { + _shl(tls, bp+768, pshift-int32(1)) + pshift = int32(1) + } + } + **(**Tsize_t)(__ccgo_up(bp + 768)) |= uint64(1) + head = head + uintptr(width) + } + _trinkle(tls, head, width, __ccgo_fp_cmp, arg, bp+768, pshift, 0, bp) + for pshift != int32(1) || (**(**[2]Tsize_t)(__ccgo_up(bp + 768)))[0] != uint64(1) || (**(**[2]Tsize_t)(__ccgo_up(bp + 768)))[int32(1)] != uint64(0) { + if pshift <= int32(1) { + trail = _pntz(tls, bp+768) + _shr(tls, bp+768, trail) + pshift = pshift + trail + } else { + _shl(tls, bp+768, int32(2)) + pshift = pshift - int32(2) + **(**Tsize_t)(__ccgo_up(bp + 768)) ^= uint64(7) + _shr(tls, bp+768, int32(1)) + _trinkle(tls, head-uintptr((**(**[96]Tsize_t)(__ccgo_up(bp)))[pshift])-uintptr(width), width, __ccgo_fp_cmp, arg, bp+768, pshift+int32(1), int32(1), bp) + _shl(tls, bp+768, int32(1)) + **(**Tsize_t)(__ccgo_up(bp + 768)) |= uint64(1) + _trinkle(tls, head-uintptr(width), width, __ccgo_fp_cmp, arg, bp+768, pshift, int32(1), bp) + } + head = head - uintptr(width) + } +} + +type t__ccgo_fp__Xqsort_r_3 = func(*TLS, uintptr, uintptr, uintptr) int32 + +func Xqsort_r(tls *TLS, base uintptr, nel Tsize_t, width Tsize_t, __ccgo_fp_cmp Tcmpfun, arg uintptr) { + if __ccgo_strace { + trc("tls=%v base=%v nel=%v width=%v __ccgo_fp_cmp=%v arg=%v, (%v:)", tls, base, nel, width, __ccgo_fp_cmp, arg, origin(2)) + } + X__qsort_r(tls, base, nel, width, __ccgo_fp_cmp, arg) +} + +func _wrapper_cmp(tls *TLS, v1 uintptr, v2 uintptr, cmp uintptr) (r int32) { + return (*(*func(*TLS, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{cmp})))(tls, v1, v2) +} + +type t__ccgo_fp__Xqsort_3 = func(*TLS, uintptr, uintptr) int32 + +func Xqsort(tls *TLS, base uintptr, nel Tsize_t, width Tsize_t, __ccgo_fp_cmp Tcmpfun) { + if __ccgo_strace { + trc("tls=%v base=%v nel=%v width=%v __ccgo_fp_cmp=%v, (%v:)", tls, base, nel, width, __ccgo_fp_cmp, origin(2)) + } + X__qsort_r(tls, base, nel, width, __ccgo_fp(_wrapper_cmp), __ccgo_fp_cmp) +} + +func _strtox(tls *TLS, s uintptr, p uintptr, prec int32) (r float64) { + bp := tls.Alloc(240) + defer tls.Free(240) + var cnt Toff_t + var y float64 + var v1 uintptr + var _ /* f at bp+0 */ TFILE + _, _, _ = cnt, y, v1 + v1 = s + (*TFILE)(unsafe.Pointer(bp)).Frpos = v1 + (*TFILE)(unsafe.Pointer(bp)).Fbuf = v1 + (*TFILE)(unsafe.Pointer(bp)).Frend = uintptr(-Int32FromInt32(1)) + X__shlim(tls, bp, int64(Int32FromInt32(0))) + y = X__floatscan(tls, bp, prec, int32(1)) + cnt = (*TFILE)(unsafe.Pointer(bp)).Fshcnt + (int64((*TFILE)(unsafe.Pointer(bp)).Frpos) - int64((*TFILE)(unsafe.Pointer(bp)).Fbuf)) + if p != 0 { + if cnt != 0 { + v1 = s + uintptr(cnt) + } else { + v1 = s + } + **(**uintptr)(__ccgo_up(p)) = v1 + } + return y +} + +func Xstrtof(tls *TLS, s uintptr, p uintptr) (r float32) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + return float32(_strtox(tls, s, p, 0)) +} + +func Xstrtod(tls *TLS, s uintptr, p uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _strtox(tls, s, p, int32(1)) +} + +func Xstrtold(tls *TLS, s uintptr, p uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _strtox(tls, s, p, int32(2)) +} + +func _strtox1(tls *TLS, s uintptr, p uintptr, base int32, lim uint64) (r uint64) { + bp := tls.Alloc(240) + defer tls.Free(240) + var cnt Tsize_t + var y uint64 + var v1 uintptr + var _ /* f at bp+0 */ TFILE + _, _, _ = cnt, y, v1 + v1 = s + (*TFILE)(unsafe.Pointer(bp)).Frpos = v1 + (*TFILE)(unsafe.Pointer(bp)).Fbuf = v1 + (*TFILE)(unsafe.Pointer(bp)).Frend = uintptr(-Int32FromInt32(1)) + X__shlim(tls, bp, int64(Int32FromInt32(0))) + y = X__intscan(tls, bp, Uint32FromInt32(base), int32(1), lim) + if p != 0 { + cnt = Uint64FromInt64((*TFILE)(unsafe.Pointer(bp)).Fshcnt + (int64((*TFILE)(unsafe.Pointer(bp)).Frpos) - int64((*TFILE)(unsafe.Pointer(bp)).Fbuf))) + **(**uintptr)(__ccgo_up(p)) = s + uintptr(cnt) + } + return y +} + +func Xstrtoull(tls *TLS, s uintptr, p uintptr, base int32) (r uint64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _strtox1(tls, s, p, base, Uint64FromUint64(2)*Uint64FromInt64(0x7fffffffffffffff)+Uint64FromInt32(1)) +} + +func Xstrtoll(tls *TLS, s uintptr, p uintptr, base int32) (r int64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Int64FromUint64(_strtox1(tls, s, p, base, Uint64FromInt64(-Int64FromInt64(0x7fffffffffffffff)-Int64FromInt32(1)))) +} + +func Xstrtoul(tls *TLS, s uintptr, p uintptr, base int32) (r uint64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _strtox1(tls, s, p, base, uint64(Uint64FromUint64(2)*Uint64FromInt64(0x7fffffffffffffff)+Uint64FromInt32(1))) +} + +func Xstrtol(tls *TLS, s uintptr, p uintptr, base int32) (r int64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Int64FromUint64(_strtox1(tls, s, p, base, uint64(Uint64FromUint64(0)+Uint64FromInt64(-Int64FromInt64(0x7fffffffffffffff)-Int64FromInt32(1))))) +} + +func Xstrtoimax(tls *TLS, s uintptr, p uintptr, base int32) (r Tintmax_t) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtoll(tls, s, p, base) +} + +func Xstrtoumax(tls *TLS, s uintptr, p uintptr, base int32) (r Tuintmax_t) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtoull(tls, s, p, base) +} + +func X__strtoimax_internal(tls *TLS, s uintptr, p uintptr, base int32) (r Tintmax_t) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtoimax(tls, s, p, base) +} + +func X__strtol_internal(tls *TLS, s uintptr, p uintptr, base int32) (r int64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtol(tls, s, p, base) +} + +func X__strtoll_internal(tls *TLS, s uintptr, p uintptr, base int32) (r int64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtoll(tls, s, p, base) +} + +func X__strtoul_internal(tls *TLS, s uintptr, p uintptr, base int32) (r uint64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtoul(tls, s, p, base) +} + +func X__strtoull_internal(tls *TLS, s uintptr, p uintptr, base int32) (r uint64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtoull(tls, s, p, base) +} + +func X__strtoumax_internal(tls *TLS, s uintptr, p uintptr, base int32) (r Tuintmax_t) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtoumax(tls, s, p, base) +} + +/* This read function heavily cheats. It knows: + * (1) len will always be 1 + * (2) non-ascii characters don't matter */ + +func _do_read(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + var i Tsize_t + var wcs, v3, v4 uintptr + var v2 int32 + _, _, _, _, _ = i, wcs, v2, v3, v4 + wcs = (*TFILE)(unsafe.Pointer(f)).Fcookie + if !(**(**Twchar_t)(__ccgo_up(wcs)) != 0) { + wcs = __ccgo_ts + 1761 + } + i = uint64(0) + for { + if !(i < (*TFILE)(unsafe.Pointer(f)).Fbuf_size && **(**Twchar_t)(__ccgo_up(wcs + uintptr(i)*4)) != 0) { + break + } + if **(**Twchar_t)(__ccgo_up(wcs + uintptr(i)*4)) < int32(128) { + v2 = **(**Twchar_t)(__ccgo_up(wcs + uintptr(i)*4)) + } else { + v2 = int32('@') + } + **(**uint8)(__ccgo_up((*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr(i))) = Uint8FromInt32(v2) + goto _1 + _1: + ; + i = i + 1 + } + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Frend = (*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr(i) + (*TFILE)(unsafe.Pointer(f)).Fcookie = wcs + uintptr(i)*4 + if i != 0 && len1 != 0 { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + **(**uint8)(__ccgo_up(buf)) = **(**uint8)(__ccgo_up(v3)) + return uint64(1) + } + return uint64(0) +} + +func _wcstox(tls *TLS, s uintptr, p uintptr, prec int32) (r float64) { + bp := tls.Alloc(304) + defer tls.Free(304) + var cnt Tsize_t + var t, v1, v2 uintptr + var y float64 + var _ /* buf at bp+0 */ [64]uint8 + var _ /* f at bp+64 */ TFILE + _, _, _, _, _ = cnt, t, y, v1, v2 + t = s + **(**TFILE)(__ccgo_up(bp + 64)) = TFILE{} + (**(**TFILE)(__ccgo_up(bp + 64))).Fflags = uint32(0) + v2 = bp + UintptrFromInt32(4) + (**(**TFILE)(__ccgo_up(bp + 64))).Fbuf = v2 + v1 = v2 + (**(**TFILE)(__ccgo_up(bp + 64))).Frend = v1 + (**(**TFILE)(__ccgo_up(bp + 64))).Frpos = v1 + (**(**TFILE)(__ccgo_up(bp + 64))).Fbuf_size = Uint64FromInt64(64) - Uint64FromInt32(4) + AtomicStorePInt32(bp+64+140, -int32(1)) + (**(**TFILE)(__ccgo_up(bp + 64))).Fread = __ccgo_fp(_do_read) + for Xiswspace(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(t)))) != 0 { + t += 4 + } + (**(**TFILE)(__ccgo_up(bp + 64))).Fcookie = t + X__shlim(tls, bp+64, int64(Int32FromInt32(0))) + y = X__floatscan(tls, bp+64, prec, int32(1)) + if p != 0 { + cnt = Uint64FromInt64((*TFILE)(unsafe.Pointer(bp+64)).Fshcnt + (int64((*TFILE)(unsafe.Pointer(bp+64)).Frpos) - int64((*TFILE)(unsafe.Pointer(bp+64)).Fbuf))) + if cnt != 0 { + v1 = t + uintptr(cnt)*4 + } else { + v1 = s + } + **(**uintptr)(__ccgo_up(p)) = v1 + } + return y +} + +func Xwcstof(tls *TLS, s uintptr, p uintptr) (r float32) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + return float32(_wcstox(tls, s, p, 0)) +} + +func Xwcstod(tls *TLS, s uintptr, p uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _wcstox(tls, s, p, int32(1)) +} + +func Xwcstold(tls *TLS, s uintptr, p uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _wcstox(tls, s, p, int32(2)) +} + +/* This read function heavily cheats. It knows: + * (1) len will always be 1 + * (2) non-ascii characters don't matter */ + +func _do_read1(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + var i Tsize_t + var wcs, v3, v4 uintptr + var v2 int32 + _, _, _, _, _ = i, wcs, v2, v3, v4 + wcs = (*TFILE)(unsafe.Pointer(f)).Fcookie + if !(**(**Twchar_t)(__ccgo_up(wcs)) != 0) { + wcs = __ccgo_ts + 1761 + } + i = uint64(0) + for { + if !(i < (*TFILE)(unsafe.Pointer(f)).Fbuf_size && **(**Twchar_t)(__ccgo_up(wcs + uintptr(i)*4)) != 0) { + break + } + if **(**Twchar_t)(__ccgo_up(wcs + uintptr(i)*4)) < int32(128) { + v2 = **(**Twchar_t)(__ccgo_up(wcs + uintptr(i)*4)) + } else { + v2 = int32('@') + } + **(**uint8)(__ccgo_up((*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr(i))) = Uint8FromInt32(v2) + goto _1 + _1: + ; + i = i + 1 + } + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Frend = (*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr(i) + (*TFILE)(unsafe.Pointer(f)).Fcookie = wcs + uintptr(i)*4 + if i != 0 && len1 != 0 { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + **(**uint8)(__ccgo_up(buf)) = **(**uint8)(__ccgo_up(v3)) + return uint64(1) + } + return uint64(0) +} + +func _wcstox1(tls *TLS, s uintptr, p uintptr, base int32, lim uint64) (r uint64) { + bp := tls.Alloc(304) + defer tls.Free(304) + var cnt Tsize_t + var t, v1, v2 uintptr + var y uint64 + var _ /* buf at bp+0 */ [64]uint8 + var _ /* f at bp+64 */ TFILE + _, _, _, _, _ = cnt, t, y, v1, v2 + t = s + **(**TFILE)(__ccgo_up(bp + 64)) = TFILE{} + (**(**TFILE)(__ccgo_up(bp + 64))).Fflags = uint32(0) + v2 = bp + UintptrFromInt32(4) + (**(**TFILE)(__ccgo_up(bp + 64))).Fbuf = v2 + v1 = v2 + (**(**TFILE)(__ccgo_up(bp + 64))).Frend = v1 + (**(**TFILE)(__ccgo_up(bp + 64))).Frpos = v1 + (**(**TFILE)(__ccgo_up(bp + 64))).Fbuf_size = Uint64FromInt64(64) - Uint64FromInt32(4) + AtomicStorePInt32(bp+64+140, -int32(1)) + (**(**TFILE)(__ccgo_up(bp + 64))).Fread = __ccgo_fp(_do_read1) + for Xiswspace(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(t)))) != 0 { + t += 4 + } + (**(**TFILE)(__ccgo_up(bp + 64))).Fcookie = t + X__shlim(tls, bp+64, int64(Int32FromInt32(0))) + y = X__intscan(tls, bp+64, Uint32FromInt32(base), int32(1), lim) + if p != 0 { + cnt = Uint64FromInt64((*TFILE)(unsafe.Pointer(bp+64)).Fshcnt + (int64((*TFILE)(unsafe.Pointer(bp+64)).Frpos) - int64((*TFILE)(unsafe.Pointer(bp+64)).Fbuf))) + if cnt != 0 { + v1 = t + uintptr(cnt)*4 + } else { + v1 = s + } + **(**uintptr)(__ccgo_up(p)) = v1 + } + return y +} + +func Xwcstoull(tls *TLS, s uintptr, p uintptr, base int32) (r uint64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _wcstox1(tls, s, p, base, Uint64FromUint64(2)*Uint64FromInt64(0x7fffffffffffffff)+Uint64FromInt32(1)) +} + +func Xwcstoll(tls *TLS, s uintptr, p uintptr, base int32) (r int64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Int64FromUint64(_wcstox1(tls, s, p, base, Uint64FromInt64(-Int64FromInt64(0x7fffffffffffffff)-Int64FromInt32(1)))) +} + +func Xwcstoul(tls *TLS, s uintptr, p uintptr, base int32) (r uint64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _wcstox1(tls, s, p, base, uint64(Uint64FromUint64(2)*Uint64FromInt64(0x7fffffffffffffff)+Uint64FromInt32(1))) +} + +func Xwcstol(tls *TLS, s uintptr, p uintptr, base int32) (r int64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Int64FromUint64(_wcstox1(tls, s, p, base, uint64(Uint64FromUint64(0)+Uint64FromInt64(-Int64FromInt64(0x7fffffffffffffff)-Int64FromInt32(1))))) +} + +func Xwcstoimax(tls *TLS, s uintptr, p uintptr, base int32) (r Tintmax_t) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwcstoll(tls, s, p, base) +} + +func Xwcstoumax(tls *TLS, s uintptr, p uintptr, base int32) (r Tuintmax_t) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwcstoull(tls, s, p, base) +} + +func Xbcmp(tls *TLS, s1 uintptr, s2 uintptr, n Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v s1=%v s2=%v n=%v, (%v:)", tls, s1, s2, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xmemcmp(tls, s1, s2, n) +} + +func Xbcopy(tls *TLS, s1 uintptr, s2 uintptr, n Tsize_t) { + if __ccgo_strace { + trc("tls=%v s1=%v s2=%v n=%v, (%v:)", tls, s1, s2, n, origin(2)) + } + Xmemmove(tls, s2, s1, n) +} + +func Xbzero(tls *TLS, s uintptr, n Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v, (%v:)", tls, s, n, origin(2)) + } + Xmemset(tls, s, 0, n) +} + +func Xexplicit_bzero(tls *TLS, d uintptr, n Tsize_t) { + if __ccgo_strace { + trc("tls=%v d=%v n=%v, (%v:)", tls, d, n, origin(2)) + } + d = Xmemset(tls, d, 0, n) +} + +func Xindex(tls *TLS, s uintptr, c int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrchr(tls, s, c) +} + +const ALIGN1 = -1 +const HIGHS = 0 +const ONES = 0 + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xmemccpy(tls *TLS, dest uintptr, src uintptr, c int32, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v c=%v n=%v, (%v:)", tls, dest, src, c, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var d, s, wd, ws uintptr + var k Tsize_t + var v2 uint8 + var v3 bool + _, _, _, _, _, _, _ = d, k, s, wd, ws, v2, v3 + d = dest + s = src + c = Int32FromUint8(Uint8FromInt32(c)) + if uint64(s)&(Uint64FromInt64(8)-Uint64FromInt32(1)) == uint64(d)&(Uint64FromInt64(8)-Uint64FromInt32(1)) { + for { + if v3 = uint64(s)&(Uint64FromInt64(8)-Uint64FromInt32(1)) != 0 && n != 0; v3 { + v2 = **(**uint8)(__ccgo_up(s)) + **(**uint8)(__ccgo_up(d)) = v2 + } + if !(v3 && Int32FromUint8(v2) != c) { + break + } + goto _1 + _1: + ; + n = n - 1 + s = s + 1 + d = d + 1 + } + if uint64(s)&(Uint64FromInt64(8)-Uint64FromInt32(1)) != 0 { + goto tail + } + k = Uint64FromInt32(-Int32FromInt32(1)) / Uint64FromInt32(UCHAR_MAX) * Uint64FromInt32(c) + wd = d + ws = s + for { + if !(n >= uint64(8) && !((**(**uint64)(__ccgo_up(ws))^k-Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)) & ^(**(**uint64)(__ccgo_up(ws))^k) & (Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)*Uint64FromInt32(Int32FromInt32(UCHAR_MAX)/Int32FromInt32(2)+Int32FromInt32(1))) != 0)) { + break + } + **(**uint64)(__ccgo_up(wd)) = **(**uint64)(__ccgo_up(ws)) + goto _4 + _4: + ; + n = n - uint64(8) + ws += 8 + wd += 8 + } + d = wd + s = ws + } + for { + if v3 = n != 0; v3 { + v2 = **(**uint8)(__ccgo_up(s)) + **(**uint8)(__ccgo_up(d)) = v2 + } + if !(v3 && Int32FromUint8(v2) != c) { + break + } + goto _5 + _5: + ; + n = n - 1 + s = s + 1 + d = d + 1 + } + goto tail +tail: + ; + if n != 0 { + return d + uintptr(1) + } + return uintptr(0) +} + +const SS = 0 + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xmemchr(tls *TLS, src uintptr, c int32, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v src=%v c=%v n=%v, (%v:)", tls, src, c, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var k Tsize_t + var s, w, v4 uintptr + _, _, _, _ = k, s, w, v4 + s = src + c = Int32FromUint8(Uint8FromInt32(c)) + for { + if !(uint64(s)&(Uint64FromInt64(8)-Uint64FromInt32(1)) != 0 && n != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(s))) != c) { + break + } + goto _1 + _1: + ; + s = s + 1 + n = n - 1 + } + if n != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(s))) != c { + k = Uint64FromInt32(-Int32FromInt32(1)) / Uint64FromInt32(UCHAR_MAX) * Uint64FromInt32(c) + w = s + for { + if !(n >= Uint64FromInt64(8) && !((**(**uint64)(__ccgo_up(w))^k-Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)) & ^(**(**uint64)(__ccgo_up(w))^k) & (Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)*Uint64FromInt32(Int32FromInt32(UCHAR_MAX)/Int32FromInt32(2)+Int32FromInt32(1))) != 0)) { + break + } + goto _2 + _2: + ; + w += 8 + n = n - Uint64FromInt64(8) + } + s = w + } + for { + if !(n != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(s))) != c) { + break + } + goto _3 + _3: + ; + s = s + 1 + n = n - 1 + } + if n != 0 { + v4 = s + } else { + v4 = uintptr(0) + } + return v4 +} + +func Xmemcmp(tls *TLS, vl uintptr, vr uintptr, n Tsize_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v vl=%v vr=%v n=%v, (%v:)", tls, vl, vr, n, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var l, r uintptr + var v2 int32 + _, _, _ = l, r, v2 + l = vl + r = vr + for { + if !(n != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(l))) == Int32FromUint8(**(**uint8)(__ccgo_up(r)))) { + break + } + goto _1 + _1: + ; + n = n - 1 + l = l + 1 + r = r + 1 + } + if n != 0 { + v2 = Int32FromUint8(**(**uint8)(__ccgo_up(l))) - Int32FromUint8(**(**uint8)(__ccgo_up(r))) + } else { + v2 = 0 + } + return v2 +} + +const LS = 0 +const RS = 0 + +func Xmemcpy(tls *TLS, dest uintptr, src uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v n=%v, (%v:)", tls, dest, src, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var d, s, v2, v3 uintptr + var w, x Tuint32_t + _, _, _, _, _, _ = d, s, w, x, v2, v3 + d = dest + s = src + for { + if !(uint64(s)%uint64(4) != 0 && n != 0) { + break + } + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + goto _1 + _1: + ; + n = n - 1 + } + if uint64(d)%uint64(4) == uint64(0) { + for { + if !(n >= uint64(16)) { + break + } + **(**uint32)(__ccgo_up(d + UintptrFromInt32(0))) = **(**uint32)(__ccgo_up(s + UintptrFromInt32(0))) + **(**uint32)(__ccgo_up(d + UintptrFromInt32(4))) = **(**uint32)(__ccgo_up(s + UintptrFromInt32(4))) + **(**uint32)(__ccgo_up(d + UintptrFromInt32(8))) = **(**uint32)(__ccgo_up(s + UintptrFromInt32(8))) + **(**uint32)(__ccgo_up(d + UintptrFromInt32(12))) = **(**uint32)(__ccgo_up(s + UintptrFromInt32(12))) + goto _4 + _4: + ; + s = s + uintptr(16) + d = d + uintptr(16) + n = n - uint64(16) + } + if n&uint64(8) != 0 { + **(**uint32)(__ccgo_up(d + UintptrFromInt32(0))) = **(**uint32)(__ccgo_up(s + UintptrFromInt32(0))) + **(**uint32)(__ccgo_up(d + UintptrFromInt32(4))) = **(**uint32)(__ccgo_up(s + UintptrFromInt32(4))) + d = d + uintptr(8) + s = s + uintptr(8) + } + if n&uint64(4) != 0 { + **(**uint32)(__ccgo_up(d + UintptrFromInt32(0))) = **(**uint32)(__ccgo_up(s + UintptrFromInt32(0))) + d = d + uintptr(4) + s = s + uintptr(4) + } + if n&uint64(2) != 0 { + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + } + if n&uint64(1) != 0 { + **(**uint8)(__ccgo_up(d)) = **(**uint8)(__ccgo_up(s)) + } + return dest + } + if n >= uint64(32) { + switch uint64(d) % Uint64FromInt32(4) { + case uint64(1): + w = **(**uint32)(__ccgo_up(s)) + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + n = n - uint64(3) + for { + if !(n >= uint64(17)) { + break + } + x = **(**uint32)(__ccgo_up(s + UintptrFromInt32(1))) + **(**uint32)(__ccgo_up(d + UintptrFromInt32(0))) = w>>Int32FromInt32(24) | x<>Int32FromInt32(24) | w<>Int32FromInt32(24) | x<>Int32FromInt32(24) | w<= uint64(18)) { + break + } + x = **(**uint32)(__ccgo_up(s + UintptrFromInt32(2))) + **(**uint32)(__ccgo_up(d + UintptrFromInt32(0))) = w>>Int32FromInt32(16) | x<>Int32FromInt32(16) | w<>Int32FromInt32(16) | x<>Int32FromInt32(16) | w<= uint64(19)) { + break + } + x = **(**uint32)(__ccgo_up(s + UintptrFromInt32(3))) + **(**uint32)(__ccgo_up(d + UintptrFromInt32(0))) = w>>Int32FromInt32(8) | x<>Int32FromInt32(8) | w<>Int32FromInt32(8) | x<>Int32FromInt32(8) | w< Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(jp+k)))) { + jp = jp + k + k = uint64(1) + p = jp - ip + } else { + v2 = jp + jp = jp + 1 + ip = v2 + v2 = Uint64FromInt32(1) + p = v2 + k = v2 + } + } + } + ms = ip + p0 = p + /* And with the opposite comparison */ + ip = Uint64FromInt32(-Int32FromInt32(1)) + jp = uint64(0) + v2 = Uint64FromInt32(1) + p = v2 + k = v2 + for jp+k < l { + if Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(ip+k)))) == Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(jp+k)))) { + if k == p { + jp = jp + p + k = uint64(1) + } else { + k = k + 1 + } + } else { + if Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(ip+k)))) < Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(jp+k)))) { + jp = jp + k + k = uint64(1) + p = jp - ip + } else { + v2 = jp + jp = jp + 1 + ip = v2 + v2 = Uint64FromInt32(1) + p = v2 + k = v2 + } + } + } + if ip+uint64(1) > ms+uint64(1) { + ms = ip + } else { + p = p0 + } + /* Periodic needle? */ + if Xmemcmp(tls, n, n+uintptr(p), ms+uint64(1)) != 0 { + mem0 = uint64(0) + if ms > l-ms-uint64(1) { + v8 = ms + } else { + v8 = l - ms - uint64(1) + } + p = v8 + uint64(1) + } else { + mem0 = l - p + } + mem = uint64(0) + /* Search loop */ + for { + /* If remainder of haystack is shorter than needle, done */ + if Uint64FromInt64(int64(z)-int64(h)) < l { + return uintptr(0) + } + /* Check last byte first; advance by shift on mismatch */ + if (**(**[4]Tsize_t)(__ccgo_up(bp)))[uint64(**(**uint8)(__ccgo_up(h + uintptr(l-uint64(1)))))/(Uint64FromInt32(8)*Uint64FromInt64(8))]&(Uint64FromInt32(1)<<(uint64(**(**uint8)(__ccgo_up(h + uintptr(l-uint64(1)))))%(Uint64FromInt32(8)*Uint64FromInt64(8)))) != 0 { + k = l - shift[**(**uint8)(__ccgo_up(h + uintptr(l-uint64(1))))] + if k != 0 { + if k < mem { + k = mem + } + h = h + uintptr(k) + mem = uint64(0) + goto _9 + } + } else { + h = h + uintptr(l) + mem = uint64(0) + goto _9 + } + /* Compare right half */ + if ms+uint64(1) > mem { + v8 = ms + uint64(1) + } else { + v8 = mem + } + k = v8 + for { + if !(k < l && Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(k)))) == Int32FromUint8(**(**uint8)(__ccgo_up(h + uintptr(k))))) { + break + } + goto _10 + _10: + ; + k = k + 1 + } + if k < l { + h = h + uintptr(k-ms) + mem = uint64(0) + goto _9 + } + /* Compare left half */ + k = ms + uint64(1) + for { + if !(k > mem && Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(k-uint64(1))))) == Int32FromUint8(**(**uint8)(__ccgo_up(h + uintptr(k-uint64(1)))))) { + break + } + goto _12 + _12: + ; + k = k - 1 + } + if k <= mem { + return h + } + h = h + uintptr(p) + mem = mem0 + goto _9 + _9: + } + return r +} + +func Xmemmem(tls *TLS, h0 uintptr, k Tsize_t, n0 uintptr, l Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v h0=%v k=%v n0=%v l=%v, (%v:)", tls, h0, k, n0, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + var h, n uintptr + _, _ = h, n + h = h0 + n = n0 + /* Return immediately on empty needle */ + if !(l != 0) { + return h + } + /* Return immediately when needle is longer than haystack */ + if k < l { + return uintptr(0) + } + /* Use faster algorithms for short needles */ + h = Xmemchr(tls, h0, Int32FromUint8(**(**uint8)(__ccgo_up(n))), k) + if !(h != 0) || l == uint64(1) { + return h + } + k = k - Uint64FromInt64(int64(h)-int64(h0)) + if k < l { + return uintptr(0) + } + if l == uint64(2) { + return _twobyte_memmem(tls, h, k, n) + } + if l == uint64(3) { + return _threebyte_memmem(tls, h, k, n) + } + if l == uint64(4) { + return _fourbyte_memmem(tls, h, k, n) + } + return _twoway_memmem(tls, h, h+uintptr(k), n, l) +} + +const WS = 0 + +type TWT = uint64 + +func Xmemmove(tls *TLS, dest uintptr, src uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v n=%v, (%v:)", tls, dest, src, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var d, s, v2, v3 uintptr + var v1 Tsize_t + _, _, _, _, _ = d, s, v1, v2, v3 + d = dest + s = src + if d == s { + return d + } + if uint64(s)-uint64(d)-n <= Uint64FromInt32(-Int32FromInt32(2))*n { + return Xmemcpy(tls, d, s, n) + } + if d < s { + if uint64(s)%Uint64FromInt64(8) == uint64(d)%Uint64FromInt64(8) { + for uint64(d)%Uint64FromInt64(8) != 0 { + v1 = n + n = n - 1 + if !(v1 != 0) { + return dest + } + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + } + for { + if !(n >= Uint64FromInt64(8)) { + break + } + **(**TWT)(__ccgo_up(d)) = **(**TWT)(__ccgo_up(s)) + goto _4 + _4: + ; + n = n - Uint64FromInt64(8) + d = d + uintptr(Uint64FromInt64(8)) + s = s + uintptr(Uint64FromInt64(8)) + } + } + for { + if !(n != 0) { + break + } + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + goto _5 + _5: + ; + n = n - 1 + } + } else { + if uint64(s)%Uint64FromInt64(8) == uint64(d)%Uint64FromInt64(8) { + for uint64(d+uintptr(n))%Uint64FromInt64(8) != 0 { + v1 = n + n = n - 1 + if !(v1 != 0) { + return dest + } + **(**uint8)(__ccgo_up(d + uintptr(n))) = **(**uint8)(__ccgo_up(s + uintptr(n))) + } + for n >= Uint64FromInt64(8) { + n = n - Uint64FromInt64(8) + **(**TWT)(__ccgo_up(d + uintptr(n))) = **(**TWT)(__ccgo_up(s + uintptr(n))) + } + } + for n != 0 { + n = n - 1 + **(**uint8)(__ccgo_up(d + uintptr(n))) = **(**uint8)(__ccgo_up(s + uintptr(n))) + } + } + return dest +} + +func Xmempcpy(tls *TLS, dest uintptr, src uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v n=%v, (%v:)", tls, dest, src, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xmemcpy(tls, dest, src, n) + uintptr(n) +} + +func X__memrchr(tls *TLS, m uintptr, c int32, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v m=%v c=%v n=%v, (%v:)", tls, m, c, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var s uintptr + var v1 Tsize_t + _, _ = s, v1 + s = m + c = Int32FromUint8(Uint8FromInt32(c)) + for { + v1 = n + n = n - 1 + if !(v1 != 0) { + break + } + if Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(n)))) == c { + return s + uintptr(n) + } + } + return uintptr(0) +} + +func Xmemrchr(tls *TLS, m uintptr, c int32, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v m=%v c=%v n=%v, (%v:)", tls, m, c, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__memrchr(tls, m, c, n) +} + +func Xmemset(tls *TLS, dest uintptr, c int32, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v dest=%v c=%v n=%v, (%v:)", tls, dest, c, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var c32 uint32 + var c64 uint64 + var k Tsize_t + var s uintptr + _, _, _, _ = c32, c64, k, s + s = dest + /* Fill head and tail with minimal branching. Each + * conditional ensures that all the subsequently used + * offsets are well-defined and in the dest region. */ + if !(n != 0) { + return dest + } + **(**uint8)(__ccgo_up(s)) = Uint8FromInt32(c) + **(**uint8)(__ccgo_up(s + uintptr(n-uint64(1)))) = Uint8FromInt32(c) + if n <= uint64(2) { + return dest + } + **(**uint8)(__ccgo_up(s + 1)) = Uint8FromInt32(c) + **(**uint8)(__ccgo_up(s + 2)) = Uint8FromInt32(c) + **(**uint8)(__ccgo_up(s + uintptr(n-uint64(2)))) = Uint8FromInt32(c) + **(**uint8)(__ccgo_up(s + uintptr(n-uint64(3)))) = Uint8FromInt32(c) + if n <= uint64(6) { + return dest + } + **(**uint8)(__ccgo_up(s + 3)) = Uint8FromInt32(c) + **(**uint8)(__ccgo_up(s + uintptr(n-uint64(4)))) = Uint8FromInt32(c) + if n <= uint64(8) { + return dest + } + /* Advance pointer to align it at a 4-byte boundary, + * and truncate n to a multiple of 4. The previous code + * already took care of any head/tail that get cut off + * by the alignment. */ + k = -uint64(s) & uint64(3) + s = s + uintptr(k) + n = n - k + n = n & Uint64FromInt32(-Int32FromInt32(4)) + c32 = Uint32FromInt32(-Int32FromInt32(1)) / Uint32FromInt32(255) * uint32(Uint8FromInt32(c)) + /* In preparation to copy 32 bytes at a time, aligned on + * an 8-byte bounary, fill head/tail up to 28 bytes each. + * As in the initial byte-based head/tail fill, each + * conditional below ensures that the subsequent offsets + * are valid (e.g. !(n<=24) implies n>=28). */ + **(**uint32)(__ccgo_up(s + UintptrFromInt32(0))) = c32 + **(**uint32)(__ccgo_up(s + uintptr(n) - UintptrFromInt32(4))) = c32 + if n <= uint64(8) { + return dest + } + **(**uint32)(__ccgo_up(s + UintptrFromInt32(4))) = c32 + **(**uint32)(__ccgo_up(s + UintptrFromInt32(8))) = c32 + **(**uint32)(__ccgo_up(s + uintptr(n) - UintptrFromInt32(12))) = c32 + **(**uint32)(__ccgo_up(s + uintptr(n) - UintptrFromInt32(8))) = c32 + if n <= uint64(24) { + return dest + } + **(**uint32)(__ccgo_up(s + UintptrFromInt32(12))) = c32 + **(**uint32)(__ccgo_up(s + UintptrFromInt32(16))) = c32 + **(**uint32)(__ccgo_up(s + UintptrFromInt32(20))) = c32 + **(**uint32)(__ccgo_up(s + UintptrFromInt32(24))) = c32 + **(**uint32)(__ccgo_up(s + uintptr(n) - UintptrFromInt32(28))) = c32 + **(**uint32)(__ccgo_up(s + uintptr(n) - UintptrFromInt32(24))) = c32 + **(**uint32)(__ccgo_up(s + uintptr(n) - UintptrFromInt32(20))) = c32 + **(**uint32)(__ccgo_up(s + uintptr(n) - UintptrFromInt32(16))) = c32 + /* Align to a multiple of 8 so we can fill 64 bits at a time, + * and avoid writing the same bytes twice as much as is + * practical without introducing additional branching. */ + k = uint64(24) + uint64(s)&uint64(4) + s = s + uintptr(k) + n = n - k + /* If this loop is reached, 28 tail bytes have already been + * filled, so any remainder when n drops below 32 can be + * safely ignored. */ + c64 = uint64(c32) | uint64(c32)<= uint64(32)) { + break + } + **(**uint64)(__ccgo_up(s + UintptrFromInt32(0))) = c64 + **(**uint64)(__ccgo_up(s + UintptrFromInt32(8))) = c64 + **(**uint64)(__ccgo_up(s + UintptrFromInt32(16))) = c64 + **(**uint64)(__ccgo_up(s + UintptrFromInt32(24))) = c64 + goto _1 + _1: + ; + n = n - uint64(32) + s = s + uintptr(32) + } + return dest +} + +func Xrindex(tls *TLS, s uintptr, c int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrrchr(tls, s, c) +} + +const ALIGN2 = 0 + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func X__stpcpy(tls *TLS, d uintptr, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v, (%v:)", tls, d, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var wd, ws, v4, v5 uintptr + var v2 uint8 + _, _, _, _, _ = wd, ws, v2, v4, v5 + if uint64(s)%Uint64FromInt64(8) == uint64(d)%Uint64FromInt64(8) { + for { + if !(uint64(s)%Uint64FromInt64(8) != 0) { + break + } + v2 = **(**uint8)(__ccgo_up(s)) + **(**uint8)(__ccgo_up(d)) = v2 + if !(v2 != 0) { + return d + } + goto _1 + _1: + ; + s = s + 1 + d = d + 1 + } + wd = d + ws = s + for { + if !!((**(**uint64)(__ccgo_up(ws))-Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)) & ^**(**uint64)(__ccgo_up(ws)) & (Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)*Uint64FromInt32(Int32FromInt32(UCHAR_MAX)/Int32FromInt32(2)+Int32FromInt32(1))) != 0) { + break + } + goto _3 + _3: + ; + v4 = wd + wd += 8 + v5 = ws + ws += 8 + **(**uint64)(__ccgo_up(v4)) = **(**uint64)(__ccgo_up(v5)) + } + d = wd + s = ws + } + for { + v2 = **(**uint8)(__ccgo_up(s)) + **(**uint8)(__ccgo_up(d)) = v2 + if !(v2 != 0) { + break + } + goto _6 + _6: + ; + s = s + 1 + d = d + 1 + } + return d +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xstpcpy(tls *TLS, d uintptr, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v, (%v:)", tls, d, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__stpcpy(tls, d, s) +} + +const ALIGN3 = -1 + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func X__stpncpy(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var wd, ws uintptr + var v2 uint8 + var v3 bool + _, _, _, _ = wd, ws, v2, v3 + if uint64(s)&(Uint64FromInt64(8)-Uint64FromInt32(1)) == uint64(d)&(Uint64FromInt64(8)-Uint64FromInt32(1)) { + for { + if v3 = uint64(s)&(Uint64FromInt64(8)-Uint64FromInt32(1)) != 0 && n != 0; v3 { + v2 = **(**uint8)(__ccgo_up(s)) + **(**uint8)(__ccgo_up(d)) = v2 + } + if !(v3 && v2 != 0) { + break + } + goto _1 + _1: + ; + n = n - 1 + s = s + 1 + d = d + 1 + } + if !(n != 0) || !(**(**uint8)(__ccgo_up(s)) != 0) { + goto tail + } + wd = d + ws = s + for { + if !(n >= uint64(8) && !((**(**uint64)(__ccgo_up(ws))-Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)) & ^**(**uint64)(__ccgo_up(ws)) & (Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)*Uint64FromInt32(Int32FromInt32(UCHAR_MAX)/Int32FromInt32(2)+Int32FromInt32(1))) != 0)) { + break + } + **(**uint64)(__ccgo_up(wd)) = **(**uint64)(__ccgo_up(ws)) + goto _4 + _4: + ; + n = n - uint64(8) + ws += 8 + wd += 8 + } + d = wd + s = ws + } + for { + if v3 = n != 0; v3 { + v2 = **(**uint8)(__ccgo_up(s)) + **(**uint8)(__ccgo_up(d)) = v2 + } + if !(v3 && v2 != 0) { + break + } + goto _5 + _5: + ; + n = n - 1 + s = s + 1 + d = d + 1 + } + goto tail +tail: + ; + Xmemset(tls, d, 0, n) + return d +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xstpncpy(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__stpncpy(tls, d, s, n) +} + +func Xstrcasecmp(tls *TLS, _l uintptr, _r uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v _l=%v _r=%v, (%v:)", tls, _l, _r, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var l, r uintptr + _, _ = l, r + l = _l + r = _r + for { + if !(**(**uint8)(__ccgo_up(l)) != 0 && **(**uint8)(__ccgo_up(r)) != 0 && (Int32FromUint8(**(**uint8)(__ccgo_up(l))) == Int32FromUint8(**(**uint8)(__ccgo_up(r))) || Xtolower(tls, Int32FromUint8(**(**uint8)(__ccgo_up(l)))) == Xtolower(tls, Int32FromUint8(**(**uint8)(__ccgo_up(r)))))) { + break + } + goto _1 + _1: + ; + l = l + 1 + r = r + 1 + } + return Xtolower(tls, Int32FromUint8(**(**uint8)(__ccgo_up(l)))) - Xtolower(tls, Int32FromUint8(**(**uint8)(__ccgo_up(r)))) +} + +func X__strcasecmp_l(tls *TLS, l uintptr, r uintptr, loc Tlocale_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v loc=%v, (%v:)", tls, l, r, loc, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return Xstrcasecmp(tls, l, r) +} + +func Xstrcasecmp_l(tls *TLS, l uintptr, r uintptr, loc Tlocale_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v loc=%v, (%v:)", tls, l, r, loc, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return X__strcasecmp_l(tls, l, r, loc) +} + +func Xstrcasestr(tls *TLS, h uintptr, n uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v h=%v n=%v, (%v:)", tls, h, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l Tsize_t + _ = l + l = _strlen(tls, n) + for { + if !(**(**uint8)(__ccgo_up(h)) != 0) { + break + } + if !(Xstrncasecmp(tls, h, n, l) != 0) { + return h + } + goto _1 + _1: + ; + h = h + 1 + } + return uintptr(0) +} + +func Xstrcat(tls *TLS, dest uintptr, src uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v, (%v:)", tls, dest, src, origin(2)) + defer func() { trc("-> %v", r) }() + } + Xstrcpy(tls, dest+uintptr(_strlen(tls, dest)), src) + return dest +} + +func Xstrchr(tls *TLS, s uintptr, c int32) (r1 uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v1 uintptr + _, _ = r, v1 + r = X__strchrnul(tls, s, c) + if Int32FromUint8(**(**uint8)(__ccgo_up(r))) == Int32FromUint8(Uint8FromInt32(c)) { + v1 = r + } else { + v1 = uintptr(0) + } + return v1 +} + +const ALIGN4 = 0 + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func X__strchrnul(tls *TLS, s uintptr, c int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + var k Tsize_t + var w uintptr + _, _ = k, w + c = Int32FromUint8(Uint8FromInt32(c)) + if !(c != 0) { + return s + uintptr(_strlen(tls, s)) + } + for { + if !(uint64(s)%Uint64FromInt64(8) != 0) { + break + } + if !(**(**uint8)(__ccgo_up(s)) != 0) || Int32FromUint8(**(**uint8)(__ccgo_up(s))) == c { + return s + } + goto _1 + _1: + ; + s = s + 1 + } + k = Uint64FromInt32(-Int32FromInt32(1)) / Uint64FromInt32(UCHAR_MAX) * Uint64FromInt32(c) + w = s + for { + if !(!((**(**uint64)(__ccgo_up(w))-Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)) & ^**(**uint64)(__ccgo_up(w)) & (Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)*Uint64FromInt32(Int32FromInt32(UCHAR_MAX)/Int32FromInt32(2)+Int32FromInt32(1))) != 0) && !((**(**uint64)(__ccgo_up(w))^k-Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)) & ^(**(**uint64)(__ccgo_up(w))^k) & (Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)*Uint64FromInt32(Int32FromInt32(UCHAR_MAX)/Int32FromInt32(2)+Int32FromInt32(1))) != 0)) { + break + } + goto _2 + _2: + ; + w += 8 + } + s = w + for { + if !(**(**uint8)(__ccgo_up(s)) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(s))) != c) { + break + } + goto _3 + _3: + ; + s = s + 1 + } + return s +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xstrchrnul(tls *TLS, s uintptr, c int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__strchrnul(tls, s, c) +} + +func Xstrcmp(tls *TLS, l uintptr, r uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v, (%v:)", tls, l, r, origin(2)) + defer func() { trc("-> %v", r1) }() + } + for { + if !(Int32FromUint8(**(**uint8)(__ccgo_up(l))) == Int32FromUint8(**(**uint8)(__ccgo_up(r))) && **(**uint8)(__ccgo_up(l)) != 0) { + break + } + goto _1 + _1: + ; + l = l + 1 + r = r + 1 + } + return Int32FromUint8(**(**uint8)(__ccgo_up(l))) - Int32FromUint8(**(**uint8)(__ccgo_up(r))) +} + +func Xstrcpy(tls *TLS, dest uintptr, src uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v, (%v:)", tls, dest, src, origin(2)) + defer func() { trc("-> %v", r) }() + } + X__stpcpy(tls, dest, src) + return dest +} + +func Xstrcspn(tls *TLS, s uintptr, c uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var a, v2 uintptr + var v3 bool + var _ /* byteset at bp+0 */ [4]Tsize_t + _, _, _ = a, v2, v3 + a = s + if !(**(**uint8)(__ccgo_up(c)) != 0) || !(**(**uint8)(__ccgo_up(c + 1)) != 0) { + return Uint64FromInt64(int64(X__strchrnul(tls, s, Int32FromUint8(**(**uint8)(__ccgo_up(c))))) - int64(a)) + } + Xmemset(tls, bp, 0, uint64(32)) + for { + if v3 = **(**uint8)(__ccgo_up(c)) != 0; v3 { + v2 = bp + uintptr(uint64(**(**uint8)(__ccgo_up(c)))/(Uint64FromInt32(8)*Uint64FromInt64(8)))*8 + *(*Tsize_t)(unsafe.Pointer(v2)) |= Uint64FromInt32(1) << (uint64(**(**uint8)(__ccgo_up(c))) % (Uint64FromInt32(8) * Uint64FromInt64(8))) + } + if !(v3 && *(*Tsize_t)(unsafe.Pointer(v2)) != 0) { + break + } + goto _1 + _1: + ; + c = c + 1 + } + for { + if !(**(**uint8)(__ccgo_up(s)) != 0 && !((**(**[4]Tsize_t)(__ccgo_up(bp)))[uint64(**(**uint8)(__ccgo_up(s)))/(Uint64FromInt32(8)*Uint64FromInt64(8))]&(Uint64FromInt32(1)<<(uint64(**(**uint8)(__ccgo_up(s)))%(Uint64FromInt32(8)*Uint64FromInt64(8)))) != 0)) { + break + } + goto _4 + _4: + ; + s = s + 1 + } + return Uint64FromInt64(int64(s) - int64(a)) +} + +func Xstrdup(tls *TLS, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var d uintptr + var l Tsize_t + _, _ = d, l + l = _strlen(tls, s) + d = Xmalloc(tls, l+uint64(1)) + if !(d != 0) { + return UintptrFromInt32(0) + } + return Xmemcpy(tls, d, s, l+uint64(1)) +} + +func Xstrerror_r(tls *TLS, err int32, buf uintptr, buflen Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v err=%v buf=%v buflen=%v, (%v:)", tls, err, buf, buflen, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l Tsize_t + var msg uintptr + _, _ = l, msg + msg = Xstrerror(tls, err) + l = _strlen(tls, msg) + if l >= buflen { + if buflen != 0 { + Xmemcpy(tls, buf, msg, buflen-uint64(1)) + **(**uint8)(__ccgo_up(buf + uintptr(buflen-uint64(1)))) = uint8(0) + } + return int32(ERANGE) + } + Xmemcpy(tls, buf, msg, l+uint64(1)) + return 0 +} + +func X__xpg_strerror_r(tls *TLS, err int32, buf uintptr, buflen Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v err=%v buf=%v buflen=%v, (%v:)", tls, err, buf, buflen, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrerror_r(tls, err, buf, buflen) +} + +func Xstrlcat(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l Tsize_t + _ = l + l = Xstrnlen(tls, d, n) + if l == n { + return l + _strlen(tls, s) + } + return l + Xstrlcpy(tls, d+uintptr(l), s, n-l) +} + +const ALIGN5 = -1 + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xstrlcpy(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var d0, wd, ws uintptr + var v1 Tsize_t + var v3 uint8 + var v4 bool + _, _, _, _, _, _ = d0, wd, ws, v1, v3, v4 + d0 = d + v1 = n + n = n - 1 + if !(v1 != 0) { + goto finish + } + if uint64(s)&(Uint64FromInt64(8)-Uint64FromInt32(1)) == uint64(d)&(Uint64FromInt64(8)-Uint64FromInt32(1)) { + for { + if v4 = uint64(s)&(Uint64FromInt64(8)-Uint64FromInt32(1)) != 0 && n != 0; v4 { + v3 = **(**uint8)(__ccgo_up(s)) + **(**uint8)(__ccgo_up(d)) = v3 + } + if !(v4 && v3 != 0) { + break + } + goto _2 + _2: + ; + n = n - 1 + s = s + 1 + d = d + 1 + } + if n != 0 && **(**uint8)(__ccgo_up(s)) != 0 { + wd = d + ws = s + for { + if !(n >= uint64(8) && !((**(**uint64)(__ccgo_up(ws))-Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)) & ^**(**uint64)(__ccgo_up(ws)) & (Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)*Uint64FromInt32(Int32FromInt32(UCHAR_MAX)/Int32FromInt32(2)+Int32FromInt32(1))) != 0)) { + break + } + **(**Tsize_t)(__ccgo_up(wd)) = **(**uint64)(__ccgo_up(ws)) + goto _5 + _5: + ; + n = n - uint64(8) + ws += 8 + wd += 8 + } + d = wd + s = ws + } + } + for { + if v4 = n != 0; v4 { + v3 = **(**uint8)(__ccgo_up(s)) + **(**uint8)(__ccgo_up(d)) = v3 + } + if !(v4 && v3 != 0) { + break + } + goto _6 + _6: + ; + n = n - 1 + s = s + 1 + d = d + 1 + } + **(**uint8)(__ccgo_up(d)) = uint8(0) + goto finish +finish: + ; + return Uint64FromInt64(int64(d)-int64(d0)) + _strlen(tls, s) + return r +} + +const ALIGN6 = 0 + +func Xstrncasecmp(tls *TLS, _l uintptr, _r uintptr, n Tsize_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v _l=%v _r=%v n=%v, (%v:)", tls, _l, _r, n, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var l, r uintptr + var v1 Tsize_t + _, _, _ = l, r, v1 + l = _l + r = _r + v1 = n + n = n - 1 + if !(v1 != 0) { + return 0 + } + for { + if !(**(**uint8)(__ccgo_up(l)) != 0 && **(**uint8)(__ccgo_up(r)) != 0 && n != 0 && (Int32FromUint8(**(**uint8)(__ccgo_up(l))) == Int32FromUint8(**(**uint8)(__ccgo_up(r))) || Xtolower(tls, Int32FromUint8(**(**uint8)(__ccgo_up(l)))) == Xtolower(tls, Int32FromUint8(**(**uint8)(__ccgo_up(r)))))) { + break + } + goto _2 + _2: + ; + l = l + 1 + r = r + 1 + n = n - 1 + } + return Xtolower(tls, Int32FromUint8(**(**uint8)(__ccgo_up(l)))) - Xtolower(tls, Int32FromUint8(**(**uint8)(__ccgo_up(r)))) +} + +func X__strncasecmp_l(tls *TLS, l uintptr, r uintptr, n Tsize_t, loc Tlocale_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v n=%v loc=%v, (%v:)", tls, l, r, n, loc, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return Xstrncasecmp(tls, l, r, n) +} + +func Xstrncasecmp_l(tls *TLS, l uintptr, r uintptr, n Tsize_t, loc Tlocale_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v n=%v loc=%v, (%v:)", tls, l, r, n, loc, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return X__strncasecmp_l(tls, l, r, n, loc) +} + +func Xstrncat(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, v1, v2 uintptr + _, _, _ = a, v1, v2 + a = d + d = d + uintptr(_strlen(tls, d)) + for n != 0 && **(**uint8)(__ccgo_up(s)) != 0 { + n = n - 1 + v1 = d + d = d + 1 + v2 = s + s = s + 1 + **(**uint8)(__ccgo_up(v1)) = **(**uint8)(__ccgo_up(v2)) + } + v1 = d + d = d + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(0) + return a +} + +func Xstrncmp(tls *TLS, _l uintptr, _r uintptr, n Tsize_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v _l=%v _r=%v n=%v, (%v:)", tls, _l, _r, n, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var l, r uintptr + var v1 Tsize_t + _, _, _ = l, r, v1 + l = _l + r = _r + v1 = n + n = n - 1 + if !(v1 != 0) { + return 0 + } + for { + if !(**(**uint8)(__ccgo_up(l)) != 0 && **(**uint8)(__ccgo_up(r)) != 0 && n != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(l))) == Int32FromUint8(**(**uint8)(__ccgo_up(r)))) { + break + } + goto _2 + _2: + ; + l = l + 1 + r = r + 1 + n = n - 1 + } + return Int32FromUint8(**(**uint8)(__ccgo_up(l))) - Int32FromUint8(**(**uint8)(__ccgo_up(r))) +} + +func Xstrncpy(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + X__stpncpy(tls, d, s, n) + return d +} + +func Xstrndup(tls *TLS, s uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v, (%v:)", tls, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var d uintptr + var l Tsize_t + _, _ = d, l + l = Xstrnlen(tls, s, n) + d = Xmalloc(tls, l+uint64(1)) + if !(d != 0) { + return UintptrFromInt32(0) + } + Xmemcpy(tls, d, s, l) + **(**uint8)(__ccgo_up(d + uintptr(l))) = uint8(0) + return d +} + +func Xstrnlen(tls *TLS, s uintptr, n Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v, (%v:)", tls, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var p uintptr + var v1 uint64 + _, _ = p, v1 + p = Xmemchr(tls, s, 0, n) + if p != 0 { + v1 = Uint64FromInt64(int64(p) - int64(s)) + } else { + v1 = n + } + return v1 +} + +func Xstrpbrk(tls *TLS, s uintptr, b uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v b=%v, (%v:)", tls, s, b, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 uintptr + _ = v1 + s = s + uintptr(Xstrcspn(tls, s, b)) + if **(**uint8)(__ccgo_up(s)) != 0 { + v1 = s + } else { + v1 = uintptr(0) + } + return v1 +} + +func Xstrrchr(tls *TLS, s uintptr, c int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__memrchr(tls, s, c, _strlen(tls, s)+uint64(1)) +} + +func Xstrsep(tls *TLS, str uintptr, sep uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v str=%v sep=%v, (%v:)", tls, str, sep, origin(2)) + defer func() { trc("-> %v", r) }() + } + var end, s, v1 uintptr + _, _, _ = end, s, v1 + s = **(**uintptr)(__ccgo_up(str)) + if !(s != 0) { + return UintptrFromInt32(0) + } + end = s + uintptr(Xstrcspn(tls, s, sep)) + if **(**uint8)(__ccgo_up(end)) != 0 { + v1 = end + end = end + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(0) + } else { + end = uintptr(0) + } + **(**uintptr)(__ccgo_up(str)) = end + return s +} + +var _strings = [671]uint8{'U', 'n', 'k', 'n', 'o', 'w', 'n', ' ', 's', 'i', 'g', 'n', 'a', 'l', 0, 'H', 'a', 'n', 'g', 'u', 'p', 0, 'I', 'n', 't', 'e', 'r', 'r', 'u', 'p', 't', 0, 'Q', 'u', 'i', 't', 0, 'I', 'l', 'l', 'e', 'g', 'a', 'l', ' ', 'i', 'n', 's', 't', 'r', 'u', 'c', 't', 'i', 'o', 'n', 0, 'T', 'r', 'a', 'c', 'e', '/', 'b', 'r', 'e', 'a', 'k', 'p', 'o', 'i', 'n', 't', ' ', 't', 'r', 'a', 'p', 0, 'A', 'b', 'o', 'r', 't', 'e', 'd', 0, 'B', 'u', 's', ' ', 'e', 'r', 'r', 'o', 'r', 0, 'A', 'r', 'i', 't', 'h', 'm', 'e', 't', 'i', 'c', ' ', 'e', 'x', 'c', 'e', 'p', 't', 'i', 'o', 'n', 0, 'K', 'i', 'l', 'l', 'e', 'd', 0, 'U', 's', 'e', 'r', ' ', 'd', 'e', 'f', 'i', 'n', 'e', 'd', ' ', 's', 'i', 'g', 'n', 'a', 'l', ' ', '1', 0, 'S', 'e', 'g', 'm', 'e', 'n', 't', 'a', 't', 'i', 'o', 'n', ' ', 'f', 'a', 'u', 'l', 't', 0, 'U', 's', 'e', 'r', ' ', 'd', 'e', 'f', 'i', 'n', 'e', 'd', ' ', 's', 'i', 'g', 'n', 'a', 'l', ' ', '2', 0, 'B', 'r', 'o', 'k', 'e', 'n', ' ', 'p', 'i', 'p', 'e', 0, 'A', 'l', 'a', 'r', 'm', ' ', 'c', 'l', 'o', 'c', 'k', 0, 'T', 'e', 'r', 'm', 'i', 'n', 'a', 't', 'e', 'd', 0, 'S', 't', 'a', 'c', 'k', ' ', 'f', 'a', 'u', 'l', 't', 0, 'C', 'h', 'i', 'l', 'd', ' ', 'p', 'r', 'o', 'c', 'e', 's', 's', ' ', 's', 't', 'a', 't', 'u', 's', 0, 'C', 'o', 'n', 't', 'i', 'n', 'u', 'e', 'd', 0, 'S', 't', 'o', 'p', 'p', 'e', 'd', ' ', '(', 's', 'i', 'g', 'n', 'a', 'l', ')', 0, 'S', 't', 'o', 'p', 'p', 'e', 'd', 0, 'S', 't', 'o', 'p', 'p', 'e', 'd', ' ', '(', 't', 't', 'y', ' ', 'i', 'n', 'p', 'u', 't', ')', 0, 'S', 't', 'o', 'p', 'p', 'e', 'd', ' ', '(', 't', 't', 'y', ' ', 'o', 'u', 't', 'p', 'u', 't', ')', 0, 'U', 'r', 'g', 'e', 'n', 't', ' ', 'I', '/', 'O', ' ', 'c', 'o', 'n', 'd', 'i', 't', 'i', 'o', 'n', 0, 'C', 'P', 'U', ' ', 't', 'i', 'm', 'e', ' ', 'l', 'i', 'm', 'i', 't', ' ', 'e', 'x', 'c', 'e', 'e', 'd', 'e', 'd', 0, 'F', 'i', 'l', 'e', ' ', 's', 'i', 'z', 'e', ' ', 'l', 'i', 'm', 'i', 't', ' ', 'e', 'x', 'c', 'e', 'e', 'd', 'e', 'd', 0, 'V', 'i', 'r', 't', 'u', 'a', 'l', ' ', 't', 'i', 'm', 'e', 'r', ' ', 'e', 'x', 'p', 'i', 'r', 'e', 'd', 0, 'P', 'r', 'o', 'f', 'i', 'l', 'i', 'n', 'g', ' ', 't', 'i', 'm', 'e', 'r', ' ', 'e', 'x', 'p', 'i', 'r', 'e', 'd', 0, 'W', 'i', 'n', 'd', 'o', 'w', ' ', 'c', 'h', 'a', 'n', 'g', 'e', 'd', 0, 'I', '/', 'O', ' ', 'p', 'o', 's', 's', 'i', 'b', 'l', 'e', 0, 'P', 'o', 'w', 'e', 'r', ' ', 'f', 'a', 'i', 'l', 'u', 'r', 'e', 0, 'B', 'a', 'd', ' ', 's', 'y', 's', 't', 'e', 'm', ' ', 'c', 'a', 'l', 'l', 0, 'R', 'T', '3', '2', 0, 'R', 'T', '3', '3', 0, 'R', 'T', '3', '4', 0, 'R', 'T', '3', '5', 0, 'R', 'T', '3', '6', 0, 'R', 'T', '3', '7', 0, 'R', 'T', '3', '8', 0, 'R', 'T', '3', '9', 0, 'R', 'T', '4', '0', 0, 'R', 'T', '4', '1', 0, 'R', 'T', '4', '2', 0, 'R', 'T', '4', '3', 0, 'R', 'T', '4', '4', 0, 'R', 'T', '4', '5', 0, 'R', 'T', '4', '6', 0, 'R', 'T', '4', '7', 0, 'R', 'T', '4', '8', 0, 'R', 'T', '4', '9', 0, 'R', 'T', '5', '0', 0, 'R', 'T', '5', '1', 0, 'R', 'T', '5', '2', 0, 'R', 'T', '5', '3', 0, 'R', 'T', '5', '4', 0, 'R', 'T', '5', '5', 0, 'R', 'T', '5', '6', 0, 'R', 'T', '5', '7', 0, 'R', 'T', '5', '8', 0, 'R', 'T', '5', '9', 0, 'R', 'T', '6', '0', 0, 'R', 'T', '6', '1', 0, 'R', 'T', '6', '2', 0, 'R', 'T', '6', '3', 0, 'R', 'T', '6', '4'} + +func Xstrsignal(tls *TLS, signum int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v signum=%v, (%v:)", tls, signum, origin(2)) + defer func() { trc("-> %v", r) }() + } + var s uintptr + var v2 int32 + _, _ = s, v2 + s = uintptr(unsafe.Pointer(&_strings)) + signum = signum + if Uint32FromInt32(signum)-uint32(1) >= Uint32FromInt32(Int32FromInt32(_NSIG)-Int32FromInt32(1)) { + signum = 0 + } + for { + v2 = signum + signum = signum - 1 + if !(v2 != 0) { + break + } + for { + if !(**(**uint8)(__ccgo_up(s)) != 0) { + break + } + goto _3 + _3: + ; + s = s + 1 + } + goto _1 + _1: + ; + s = s + 1 + } + return X__lctrans_cur(tls, s) +} + +func Xstrspn(tls *TLS, s uintptr, c uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var a, v3 uintptr + var v4 bool + var _ /* byteset at bp+0 */ [4]Tsize_t + _, _, _ = a, v3, v4 + a = s + **(**[4]Tsize_t)(__ccgo_up(bp)) = [4]Tsize_t{} + if !(**(**uint8)(__ccgo_up(c)) != 0) { + return uint64(0) + } + if !(**(**uint8)(__ccgo_up(c + 1)) != 0) { + for { + if !(Int32FromUint8(**(**uint8)(__ccgo_up(s))) == Int32FromUint8(**(**uint8)(__ccgo_up(c)))) { + break + } + goto _1 + _1: + ; + s = s + 1 + } + return Uint64FromInt64(int64(s) - int64(a)) + } + for { + if v4 = **(**uint8)(__ccgo_up(c)) != 0; v4 { + v3 = bp + uintptr(uint64(**(**uint8)(__ccgo_up(c)))/(Uint64FromInt32(8)*Uint64FromInt64(8)))*8 + *(*Tsize_t)(unsafe.Pointer(v3)) |= Uint64FromInt32(1) << (uint64(**(**uint8)(__ccgo_up(c))) % (Uint64FromInt32(8) * Uint64FromInt64(8))) + } + if !(v4 && *(*Tsize_t)(unsafe.Pointer(v3)) != 0) { + break + } + goto _2 + _2: + ; + c = c + 1 + } + for { + if !(**(**uint8)(__ccgo_up(s)) != 0 && (**(**[4]Tsize_t)(__ccgo_up(bp)))[uint64(**(**uint8)(__ccgo_up(s)))/(Uint64FromInt32(8)*Uint64FromInt64(8))]&(Uint64FromInt32(1)<<(uint64(**(**uint8)(__ccgo_up(s)))%(Uint64FromInt32(8)*Uint64FromInt64(8)))) != 0) { + break + } + goto _5 + _5: + ; + s = s + 1 + } + return Uint64FromInt64(int64(s) - int64(a)) +} + +func _twobyte_strstr(tls *TLS, h uintptr, n uintptr) (r uintptr) { + var hw, nw Tuint16_t + var v2 uintptr + _, _, _ = hw, nw, v2 + nw = Uint16FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(n)))< Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(jp+k)))) { + jp = jp + k + k = uint64(1) + p = jp - ip + } else { + v2 = jp + jp = jp + 1 + ip = v2 + v2 = Uint64FromInt32(1) + p = v2 + k = v2 + } + } + } + ms = ip + p0 = p + /* And with the opposite comparison */ + ip = Uint64FromInt32(-Int32FromInt32(1)) + jp = uint64(0) + v2 = Uint64FromInt32(1) + p = v2 + k = v2 + for jp+k < l { + if Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(ip+k)))) == Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(jp+k)))) { + if k == p { + jp = jp + p + k = uint64(1) + } else { + k = k + 1 + } + } else { + if Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(ip+k)))) < Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(jp+k)))) { + jp = jp + k + k = uint64(1) + p = jp - ip + } else { + v2 = jp + jp = jp + 1 + ip = v2 + v2 = Uint64FromInt32(1) + p = v2 + k = v2 + } + } + } + if ip+uint64(1) > ms+uint64(1) { + ms = ip + } else { + p = p0 + } + /* Periodic needle? */ + if Xmemcmp(tls, n, n+uintptr(p), ms+uint64(1)) != 0 { + mem0 = uint64(0) + if ms > l-ms-uint64(1) { + v8 = ms + } else { + v8 = l - ms - uint64(1) + } + p = v8 + uint64(1) + } else { + mem0 = l - p + } + mem = uint64(0) + /* Initialize incremental end-of-haystack pointer */ + z = h + /* Search loop */ + for { + /* Update incremental end-of-haystack pointer */ + if Uint64FromInt64(int64(z)-int64(h)) < l { + /* Fast estimate for MAX(l,63) */ + grow = l | uint64(63) + z2 = Xmemchr(tls, z, 0, grow) + if z2 != 0 { + z = z2 + if Uint64FromInt64(int64(z)-int64(h)) < l { + return uintptr(0) + } + } else { + z = z + uintptr(grow) + } + } + /* Check last byte first; advance by shift on mismatch */ + if (**(**[4]Tsize_t)(__ccgo_up(bp)))[uint64(**(**uint8)(__ccgo_up(h + uintptr(l-uint64(1)))))/(Uint64FromInt32(8)*Uint64FromInt64(8))]&(Uint64FromInt32(1)<<(uint64(**(**uint8)(__ccgo_up(h + uintptr(l-uint64(1)))))%(Uint64FromInt32(8)*Uint64FromInt64(8)))) != 0 { + k = l - shift[**(**uint8)(__ccgo_up(h + uintptr(l-uint64(1))))] + if k != 0 { + if k < mem { + k = mem + } + h = h + uintptr(k) + mem = uint64(0) + goto _9 + } + } else { + h = h + uintptr(l) + mem = uint64(0) + goto _9 + } + /* Compare right half */ + if ms+uint64(1) > mem { + v8 = ms + uint64(1) + } else { + v8 = mem + } + k = v8 + for { + if !(**(**uint8)(__ccgo_up(n + uintptr(k))) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(k)))) == Int32FromUint8(**(**uint8)(__ccgo_up(h + uintptr(k))))) { + break + } + goto _10 + _10: + ; + k = k + 1 + } + if **(**uint8)(__ccgo_up(n + uintptr(k))) != 0 { + h = h + uintptr(k-ms) + mem = uint64(0) + goto _9 + } + /* Compare left half */ + k = ms + uint64(1) + for { + if !(k > mem && Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(k-uint64(1))))) == Int32FromUint8(**(**uint8)(__ccgo_up(h + uintptr(k-uint64(1)))))) { + break + } + goto _12 + _12: + ; + k = k - 1 + } + if k <= mem { + return h + } + h = h + uintptr(p) + mem = mem0 + goto _9 + _9: + } + return r +} + +func Xstrstr(tls *TLS, h uintptr, n uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v h=%v n=%v, (%v:)", tls, h, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + /* Return immediately on empty needle */ + if !(**(**uint8)(__ccgo_up(n)) != 0) { + return h + } + /* Use faster algorithms for short needles */ + h = Xstrchr(tls, h, Int32FromUint8(**(**uint8)(__ccgo_up(n)))) + if !(h != 0) || !(**(**uint8)(__ccgo_up(n + 1)) != 0) { + return h + } + if !(**(**uint8)(__ccgo_up(h + 1)) != 0) { + return uintptr(0) + } + if !(**(**uint8)(__ccgo_up(n + 2)) != 0) { + return _twobyte_strstr(tls, h, n) + } + if !(**(**uint8)(__ccgo_up(h + 2)) != 0) { + return uintptr(0) + } + if !(**(**uint8)(__ccgo_up(n + 3)) != 0) { + return _threebyte_strstr(tls, h, n) + } + if !(**(**uint8)(__ccgo_up(h + 3)) != 0) { + return uintptr(0) + } + if !(**(**uint8)(__ccgo_up(n + 4)) != 0) { + return _fourbyte_strstr(tls, h, n) + } + return _twoway_strstr(tls, h, n) +} + +func Xstrtok(tls *TLS, s uintptr, sep uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v sep=%v, (%v:)", tls, s, sep, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 uintptr + var v2 bool + _, _ = v1, v2 + if v2 = !(s != 0); v2 { + v1 = _p2 + s = v1 + } + if v2 && !(v1 != 0) { + return UintptrFromInt32(0) + } + s = s + uintptr(Xstrspn(tls, s, sep)) + if !(**(**uint8)(__ccgo_up(s)) != 0) { + v1 = UintptrFromInt32(0) + _p2 = v1 + return v1 + } + _p2 = s + uintptr(Xstrcspn(tls, s, sep)) + if **(**uint8)(__ccgo_up(_p2)) != 0 { + v1 = _p2 + _p2 = _p2 + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(0) + } else { + _p2 = uintptr(0) + } + return s +} + +var _p2 uintptr + +func Xstrtok_r(tls *TLS, s uintptr, sep uintptr, p uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v sep=%v p=%v, (%v:)", tls, s, sep, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1, v3 uintptr + var v2 bool + _, _, _ = v1, v2, v3 + if v2 = !(s != 0); v2 { + v1 = **(**uintptr)(__ccgo_up(p)) + s = v1 + } + if v2 && !(v1 != 0) { + return UintptrFromInt32(0) + } + s = s + uintptr(Xstrspn(tls, s, sep)) + if !(**(**uint8)(__ccgo_up(s)) != 0) { + v1 = UintptrFromInt32(0) + **(**uintptr)(__ccgo_up(p)) = v1 + return v1 + } + **(**uintptr)(__ccgo_up(p)) = s + uintptr(Xstrcspn(tls, s, sep)) + if **(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(p)))) != 0 { + v3 = p + v1 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(0) + } else { + **(**uintptr)(__ccgo_up(p)) = uintptr(0) + } + return s +} + +func Xstrverscmp(tls *TLS, l0 uintptr, r0 uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l0=%v r0=%v, (%v:)", tls, l0, r0, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var c, z int32 + var dp, i, j, v2 Tsize_t + var l, r uintptr + _, _, _, _, _, _, _, _ = c, dp, i, j, l, r, z, v2 + l = l0 + r = r0 + z = int32(1) + /* Find maximal matching prefix and track its maximal digit + * suffix and whether those digits are all zeros. */ + v2 = Uint64FromInt32(0) + i = v2 + dp = v2 + for { + if !(Int32FromUint8(**(**uint8)(__ccgo_up(l + uintptr(i)))) == Int32FromUint8(**(**uint8)(__ccgo_up(r + uintptr(i))))) { + break + } + c = Int32FromUint8(**(**uint8)(__ccgo_up(l + uintptr(i)))) + if !(c != 0) { + return 0 + } + if !(BoolInt32(Uint32FromInt32(c)-Uint32FromUint8('0') < Uint32FromInt32(10)) != 0) { + dp = i + uint64(1) + z = Int32FromInt32(1) + } else { + if c != int32('0') { + z = 0 + } + } + goto _1 + _1: + ; + i = i + 1 + } + if Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(l + uintptr(dp))))-int32('1')) < uint32(9) && Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(r + uintptr(dp))))-int32('1')) < uint32(9) { + /* If we're looking at non-degenerate digit sequences starting + * with nonzero digits, longest digit string is greater. */ + j = i + for { + if !(BoolInt32(uint32(**(**uint8)(__ccgo_up(l + uintptr(j))))-uint32('0') < uint32(10)) != 0) { + break + } + if !(BoolInt32(uint32(**(**uint8)(__ccgo_up(r + uintptr(j))))-Uint32FromUint8('0') < Uint32FromInt32(10)) != 0) { + return int32(1) + } + goto _3 + _3: + ; + j = j + 1 + } + if BoolInt32(uint32(**(**uint8)(__ccgo_up(r + uintptr(j))))-uint32('0') < uint32(10)) != 0 { + return -int32(1) + } + } else { + if z != 0 && dp < i && (BoolInt32(uint32(**(**uint8)(__ccgo_up(l + uintptr(i))))-uint32('0') < uint32(10)) != 0 || BoolInt32(uint32(**(**uint8)(__ccgo_up(r + uintptr(i))))-uint32('0') < uint32(10)) != 0) { + /* Otherwise, if common prefix of digit sequence is + * all zeros, digits order less than non-digits. */ + return Int32FromUint8(Uint8FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(l + uintptr(i))))-Int32FromUint8('0'))) - Int32FromUint8(Uint8FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(r + uintptr(i))))-Int32FromUint8('0'))) + } + } + return Int32FromUint8(**(**uint8)(__ccgo_up(l + uintptr(i)))) - Int32FromUint8(**(**uint8)(__ccgo_up(r + uintptr(i)))) +} + +func Xswab(tls *TLS, _src uintptr, _dest uintptr, n Tssize_t) { + if __ccgo_strace { + trc("tls=%v _src=%v _dest=%v n=%v, (%v:)", tls, _src, _dest, n, origin(2)) + } + var dest, src uintptr + _, _ = dest, src + src = _src + dest = _dest + for { + if !(n > int64(1)) { + break + } + **(**uint8)(__ccgo_up(dest)) = **(**uint8)(__ccgo_up(src + 1)) + **(**uint8)(__ccgo_up(dest + 1)) = **(**uint8)(__ccgo_up(src)) + dest = dest + uintptr(2) + src = src + uintptr(2) + goto _1 + _1: + ; + n = n - int64(2) + } +} + +func Xwcpcpy(tls *TLS, d uintptr, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v, (%v:)", tls, d, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwcscpy(tls, d, s) + uintptr(Xwcslen(tls, s))*4 +} + +func Xwcpncpy(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwcsncpy(tls, d, s, n) + uintptr(Xwcsnlen(tls, s, n))*4 +} + +func Xwcscasecmp(tls *TLS, l uintptr, r uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v, (%v:)", tls, l, r, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return Xwcsncasecmp(tls, l, r, Uint64FromInt32(-Int32FromInt32(1))) +} + +func Xwcscasecmp_l(tls *TLS, l uintptr, r uintptr, locale Tlocale_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v locale=%v, (%v:)", tls, l, r, locale, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return Xwcscasecmp(tls, l, r) +} + +func Xwcscat(tls *TLS, dest uintptr, src uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v, (%v:)", tls, dest, src, origin(2)) + defer func() { trc("-> %v", r) }() + } + Xwcscpy(tls, dest+uintptr(Xwcslen(tls, dest))*4, src) + return dest +} + +func Xwcschr(tls *TLS, s uintptr, c Twchar_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v2 uintptr + _ = v2 + if !(c != 0) { + return s + uintptr(Xwcslen(tls, s))*4 + } + for { + if !(**(**Twchar_t)(__ccgo_up(s)) != 0 && **(**Twchar_t)(__ccgo_up(s)) != c) { + break + } + goto _1 + _1: + ; + s += 4 + } + if **(**Twchar_t)(__ccgo_up(s)) != 0 { + v2 = s + } else { + v2 = uintptr(0) + } + return v2 +} + +func Xwcscmp(tls *TLS, l uintptr, r uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v, (%v:)", tls, l, r, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var v2 int32 + _ = v2 + for { + if !(**(**Twchar_t)(__ccgo_up(l)) == **(**Twchar_t)(__ccgo_up(r)) && **(**Twchar_t)(__ccgo_up(l)) != 0 && **(**Twchar_t)(__ccgo_up(r)) != 0) { + break + } + goto _1 + _1: + ; + l += 4 + r += 4 + } + if **(**Twchar_t)(__ccgo_up(l)) < **(**Twchar_t)(__ccgo_up(r)) { + v2 = -int32(1) + } else { + v2 = BoolInt32(**(**Twchar_t)(__ccgo_up(l)) > **(**Twchar_t)(__ccgo_up(r))) + } + return v2 +} + +func Xwcscpy(tls *TLS, d uintptr, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v, (%v:)", tls, d, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, v2, v3 uintptr + var v1 Twchar_t + _, _, _, _ = a, v1, v2, v3 + a = d + for { + v2 = s + s += 4 + v1 = **(**Twchar_t)(__ccgo_up(v2)) + v3 = d + d += 4 + **(**Twchar_t)(__ccgo_up(v3)) = v1 + if !(v1 != 0) { + break + } + } + return a +} + +func Xwcscspn(tls *TLS, s uintptr, c uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, v2, v3 uintptr + var v1 uint64 + _, _, _, _ = a, v1, v2, v3 + if !(**(**Twchar_t)(__ccgo_up(c)) != 0) { + return Xwcslen(tls, s) + } + if !(**(**Twchar_t)(__ccgo_up(c + 1*4)) != 0) { + v3 = s + a = v3 + v2 = Xwcschr(tls, v3, **(**Twchar_t)(__ccgo_up(c))) + s = v2 + if v2 != 0 { + v1 = Uint64FromInt64((int64(s) - int64(a)) / 4) + } else { + v1 = Xwcslen(tls, a) + } + return v1 + } + a = s + for { + if !(**(**Twchar_t)(__ccgo_up(s)) != 0 && !(Xwcschr(tls, c, **(**Twchar_t)(__ccgo_up(s))) != 0)) { + break + } + goto _4 + _4: + ; + s += 4 + } + return Uint64FromInt64((int64(s) - int64(a)) / 4) +} + +func Xwcsdup(tls *TLS, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var d uintptr + var l Tsize_t + _, _ = d, l + l = Xwcslen(tls, s) + d = Xmalloc(tls, (l+uint64(1))*uint64(4)) + if !(d != 0) { + return UintptrFromInt32(0) + } + return Xwmemcpy(tls, d, s, l+uint64(1)) +} + +func Xwcslen(tls *TLS, s uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a uintptr + _ = a + a = s + for { + if !(**(**Twchar_t)(__ccgo_up(s)) != 0) { + break + } + goto _1 + _1: + ; + s += 4 + } + return Uint64FromInt64((int64(s) - int64(a)) / 4) +} + +func Xwcsncasecmp(tls *TLS, l uintptr, r uintptr, n Tsize_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v n=%v, (%v:)", tls, l, r, n, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var v1 Tsize_t + _ = v1 + v1 = n + n = n - 1 + if !(v1 != 0) { + return 0 + } + for { + if !(**(**Twchar_t)(__ccgo_up(l)) != 0 && **(**Twchar_t)(__ccgo_up(r)) != 0 && n != 0 && (**(**Twchar_t)(__ccgo_up(l)) == **(**Twchar_t)(__ccgo_up(r)) || Xtowlower(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(l)))) == Xtowlower(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(r)))))) { + break + } + goto _2 + _2: + ; + l += 4 + r += 4 + n = n - 1 + } + return Int32FromUint32(Xtowlower(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(l)))) - Xtowlower(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(r))))) +} + +func Xwcsncasecmp_l(tls *TLS, l uintptr, r uintptr, n Tsize_t, locale Tlocale_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v n=%v locale=%v, (%v:)", tls, l, r, n, locale, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return Xwcsncasecmp(tls, l, r, n) +} + +func Xwcsncat(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, v1, v2 uintptr + _, _, _ = a, v1, v2 + a = d + d = d + uintptr(Xwcslen(tls, d))*4 + for n != 0 && **(**Twchar_t)(__ccgo_up(s)) != 0 { + n = n - 1 + v1 = d + d += 4 + v2 = s + s += 4 + **(**Twchar_t)(__ccgo_up(v1)) = **(**Twchar_t)(__ccgo_up(v2)) + } + v1 = d + d += 4 + **(**Twchar_t)(__ccgo_up(v1)) = 0 + return a +} + +func Xwcsncmp(tls *TLS, l uintptr, r uintptr, n Tsize_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v n=%v, (%v:)", tls, l, r, n, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var v2, v3 int32 + _, _ = v2, v3 + for { + if !(n != 0 && **(**Twchar_t)(__ccgo_up(l)) == **(**Twchar_t)(__ccgo_up(r)) && **(**Twchar_t)(__ccgo_up(l)) != 0 && **(**Twchar_t)(__ccgo_up(r)) != 0) { + break + } + goto _1 + _1: + ; + n = n - 1 + l += 4 + r += 4 + } + if n != 0 { + if **(**Twchar_t)(__ccgo_up(l)) < **(**Twchar_t)(__ccgo_up(r)) { + v3 = -int32(1) + } else { + v3 = BoolInt32(**(**Twchar_t)(__ccgo_up(l)) > **(**Twchar_t)(__ccgo_up(r))) + } + v2 = v3 + } else { + v2 = 0 + } + return v2 +} + +func Xwcsncpy(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, v1, v2 uintptr + _, _, _ = a, v1, v2 + a = d + for n != 0 && **(**Twchar_t)(__ccgo_up(s)) != 0 { + n = n - 1 + v1 = d + d += 4 + v2 = s + s += 4 + **(**Twchar_t)(__ccgo_up(v1)) = **(**Twchar_t)(__ccgo_up(v2)) + } + Xwmemset(tls, d, 0, n) + return a +} + +func Xwcsnlen(tls *TLS, s uintptr, n Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v, (%v:)", tls, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var z uintptr + _ = z + z = Xwmemchr(tls, s, 0, n) + if z != 0 { + n = Uint64FromInt64((int64(z) - int64(s)) / 4) + } + return n +} + +func Xwcspbrk(tls *TLS, s uintptr, b uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v b=%v, (%v:)", tls, s, b, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 uintptr + _ = v1 + s = s + uintptr(Xwcscspn(tls, s, b))*4 + if **(**Twchar_t)(__ccgo_up(s)) != 0 { + v1 = s + } else { + v1 = UintptrFromInt32(0) + } + return v1 +} + +func Xwcsrchr(tls *TLS, s uintptr, c Twchar_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + var p, v2 uintptr + _, _ = p, v2 + p = s + uintptr(Xwcslen(tls, s))*4 + for { + if !(p >= s && **(**Twchar_t)(__ccgo_up(p)) != c) { + break + } + goto _1 + _1: + ; + p -= 4 + } + if p >= s { + v2 = p + } else { + v2 = uintptr(0) + } + return v2 +} + +func Xwcsspn(tls *TLS, s uintptr, c uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a uintptr + _ = a + a = s + for { + if !(**(**Twchar_t)(__ccgo_up(s)) != 0 && Xwcschr(tls, c, **(**Twchar_t)(__ccgo_up(s))) != 0) { + break + } + goto _1 + _1: + ; + s += 4 + } + return Uint64FromInt64((int64(s) - int64(a)) / 4) +} + +func _twoway_wcsstr(tls *TLS, h uintptr, n uintptr) (r uintptr) { + var grow, ip, jp, k, l, mem, mem0, ms, p, p0, v2 Tsize_t + var z, z2 uintptr + var v8 uint64 + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = grow, ip, jp, k, l, mem, mem0, ms, p, p0, z, z2, v2, v8 + /* Computing length of needle */ + l = uint64(0) + for { + if !(**(**Twchar_t)(__ccgo_up(n + uintptr(l)*4)) != 0 && **(**Twchar_t)(__ccgo_up(h + uintptr(l)*4)) != 0) { + break + } + goto _1 + _1: + ; + l = l + 1 + } + if **(**Twchar_t)(__ccgo_up(n + uintptr(l)*4)) != 0 { + return uintptr(0) + } /* hit the end of h */ + /* Compute maximal suffix */ + ip = Uint64FromInt32(-Int32FromInt32(1)) + jp = uint64(0) + v2 = Uint64FromInt32(1) + p = v2 + k = v2 + for jp+k < l { + if **(**Twchar_t)(__ccgo_up(n + uintptr(ip+k)*4)) == **(**Twchar_t)(__ccgo_up(n + uintptr(jp+k)*4)) { + if k == p { + jp = jp + p + k = uint64(1) + } else { + k = k + 1 + } + } else { + if **(**Twchar_t)(__ccgo_up(n + uintptr(ip+k)*4)) > **(**Twchar_t)(__ccgo_up(n + uintptr(jp+k)*4)) { + jp = jp + k + k = uint64(1) + p = jp - ip + } else { + v2 = jp + jp = jp + 1 + ip = v2 + v2 = Uint64FromInt32(1) + p = v2 + k = v2 + } + } + } + ms = ip + p0 = p + /* And with the opposite comparison */ + ip = Uint64FromInt32(-Int32FromInt32(1)) + jp = uint64(0) + v2 = Uint64FromInt32(1) + p = v2 + k = v2 + for jp+k < l { + if **(**Twchar_t)(__ccgo_up(n + uintptr(ip+k)*4)) == **(**Twchar_t)(__ccgo_up(n + uintptr(jp+k)*4)) { + if k == p { + jp = jp + p + k = uint64(1) + } else { + k = k + 1 + } + } else { + if **(**Twchar_t)(__ccgo_up(n + uintptr(ip+k)*4)) < **(**Twchar_t)(__ccgo_up(n + uintptr(jp+k)*4)) { + jp = jp + k + k = uint64(1) + p = jp - ip + } else { + v2 = jp + jp = jp + 1 + ip = v2 + v2 = Uint64FromInt32(1) + p = v2 + k = v2 + } + } + } + if ip+uint64(1) > ms+uint64(1) { + ms = ip + } else { + p = p0 + } + /* Periodic needle? */ + if Xwmemcmp(tls, n, n+uintptr(p)*4, ms+uint64(1)) != 0 { + mem0 = uint64(0) + if ms > l-ms-uint64(1) { + v8 = ms + } else { + v8 = l - ms - uint64(1) + } + p = v8 + uint64(1) + } else { + mem0 = l - p + } + mem = uint64(0) + /* Initialize incremental end-of-haystack pointer */ + z = h + /* Search loop */ + for { + /* Update incremental end-of-haystack pointer */ + if Uint64FromInt64((int64(z)-int64(h))/4) < l { + /* Fast estimate for MIN(l,63) */ + grow = l | uint64(63) + z2 = Xwmemchr(tls, z, 0, grow) + if z2 != 0 { + z = z2 + if Uint64FromInt64((int64(z)-int64(h))/4) < l { + return uintptr(0) + } + } else { + z = z + uintptr(grow)*4 + } + } + /* Compare right half */ + if ms+uint64(1) > mem { + v8 = ms + uint64(1) + } else { + v8 = mem + } + k = v8 + for { + if !(**(**Twchar_t)(__ccgo_up(n + uintptr(k)*4)) != 0 && **(**Twchar_t)(__ccgo_up(n + uintptr(k)*4)) == **(**Twchar_t)(__ccgo_up(h + uintptr(k)*4))) { + break + } + goto _10 + _10: + ; + k = k + 1 + } + if **(**Twchar_t)(__ccgo_up(n + uintptr(k)*4)) != 0 { + h = h + uintptr(k-ms)*4 + mem = uint64(0) + goto _9 + } + /* Compare left half */ + k = ms + uint64(1) + for { + if !(k > mem && **(**Twchar_t)(__ccgo_up(n + uintptr(k-uint64(1))*4)) == **(**Twchar_t)(__ccgo_up(h + uintptr(k-uint64(1))*4))) { + break + } + goto _12 + _12: + ; + k = k - 1 + } + if k <= mem { + return h + } + h = h + uintptr(p)*4 + mem = mem0 + goto _9 + _9: + } + return r +} + +func Xwcsstr(tls *TLS, h uintptr, n uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v h=%v n=%v, (%v:)", tls, h, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + /* Return immediately on empty needle or haystack */ + if !(**(**Twchar_t)(__ccgo_up(n)) != 0) { + return h + } + if !(**(**Twchar_t)(__ccgo_up(h)) != 0) { + return uintptr(0) + } + /* Use faster algorithms for short needles */ + h = Xwcschr(tls, h, **(**Twchar_t)(__ccgo_up(n))) + if !(h != 0) || !(**(**Twchar_t)(__ccgo_up(n + 1*4)) != 0) { + return h + } + if !(**(**Twchar_t)(__ccgo_up(h + 1*4)) != 0) { + return uintptr(0) + } + return _twoway_wcsstr(tls, h, n) +} + +func Xwcstok(tls *TLS, s uintptr, sep uintptr, p uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v sep=%v p=%v, (%v:)", tls, s, sep, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1, v3 uintptr + var v2 bool + _, _, _ = v1, v2, v3 + if v2 = !(s != 0); v2 { + v1 = **(**uintptr)(__ccgo_up(p)) + s = v1 + } + if v2 && !(v1 != 0) { + return UintptrFromInt32(0) + } + s = s + uintptr(Xwcsspn(tls, s, sep))*4 + if !(**(**Twchar_t)(__ccgo_up(s)) != 0) { + v1 = UintptrFromInt32(0) + **(**uintptr)(__ccgo_up(p)) = v1 + return v1 + } + **(**uintptr)(__ccgo_up(p)) = s + uintptr(Xwcscspn(tls, s, sep))*4 + if **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(p)))) != 0 { + v3 = p + v1 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) += 4 + **(**Twchar_t)(__ccgo_up(v1)) = 0 + } else { + **(**uintptr)(__ccgo_up(p)) = uintptr(0) + } + return s +} + +func Xwcswcs(tls *TLS, haystack uintptr, needle uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v haystack=%v needle=%v, (%v:)", tls, haystack, needle, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwcsstr(tls, haystack, needle) +} + +func Xwmemchr(tls *TLS, s uintptr, c Twchar_t, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v n=%v, (%v:)", tls, s, c, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v2 uintptr + _ = v2 + for { + if !(n != 0 && **(**Twchar_t)(__ccgo_up(s)) != c) { + break + } + goto _1 + _1: + ; + n = n - 1 + s += 4 + } + if n != 0 { + v2 = s + } else { + v2 = uintptr(0) + } + return v2 +} + +func Xwmemcmp(tls *TLS, l uintptr, r uintptr, n Tsize_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v n=%v, (%v:)", tls, l, r, n, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var v2, v3 int32 + _, _ = v2, v3 + for { + if !(n != 0 && **(**Twchar_t)(__ccgo_up(l)) == **(**Twchar_t)(__ccgo_up(r))) { + break + } + goto _1 + _1: + ; + n = n - 1 + l += 4 + r += 4 + } + if n != 0 { + if **(**Twchar_t)(__ccgo_up(l)) < **(**Twchar_t)(__ccgo_up(r)) { + v3 = -int32(1) + } else { + v3 = BoolInt32(**(**Twchar_t)(__ccgo_up(l)) > **(**Twchar_t)(__ccgo_up(r))) + } + v2 = v3 + } else { + v2 = 0 + } + return v2 +} + +func Xwmemcpy(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, v2, v3 uintptr + var v1 Tsize_t + _, _, _, _ = a, v1, v2, v3 + a = d + for { + v1 = n + n = n - 1 + if !(v1 != 0) { + break + } + v2 = d + d += 4 + v3 = s + s += 4 + **(**Twchar_t)(__ccgo_up(v2)) = **(**Twchar_t)(__ccgo_up(v3)) + } + return a +} + +func Xwmemmove(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var d0, v3, v4 uintptr + var v1 Tsize_t + _, _, _, _ = d0, v1, v3, v4 + d0 = d + if d == s { + return d + } + if uint64(d)-uint64(s) < n*uint64(4) { + for { + v1 = n + n = n - 1 + if !(v1 != 0) { + break + } + **(**Twchar_t)(__ccgo_up(d + uintptr(n)*4)) = **(**Twchar_t)(__ccgo_up(s + uintptr(n)*4)) + } + } else { + for { + v1 = n + n = n - 1 + if !(v1 != 0) { + break + } + v3 = d + d += 4 + v4 = s + s += 4 + **(**Twchar_t)(__ccgo_up(v3)) = **(**Twchar_t)(__ccgo_up(v4)) + } + } + return d0 +} + +func Xwmemset(tls *TLS, d uintptr, c Twchar_t, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v c=%v n=%v, (%v:)", tls, d, c, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret, v2 uintptr + var v1 Tsize_t + _, _, _ = ret, v1, v2 + ret = d + for { + v1 = n + n = n - 1 + if !(v1 != 0) { + break + } + v2 = d + d += 4 + **(**Twchar_t)(__ccgo_up(v2)) = c + } + return ret +} + +func Xmkdtemp(tls *TLS, template uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v template=%v, (%v:)", tls, template, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l Tsize_t + var retries, v1 int32 + _, _, _ = l, retries, v1 + l = _strlen(tls, template) + retries = int32(100) + if l < uint64(6) || Xmemcmp(tls, template+uintptr(l)-uintptr(6), __ccgo_ts+1769, uint64(6)) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(0) + } + for { + ___randname(tls, template+uintptr(l)-uintptr(6)) + if !(Xmkdir(tls, template, uint32(0700)) != 0) { + return template + } + goto _2 + _2: + ; + retries = retries - 1 + v1 = retries + if !(v1 != 0 && **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EEXIST)) { + break + } + } + Xmemcpy(tls, template+uintptr(l)-uintptr(6), __ccgo_ts+1769, uint64(6)) + return uintptr(0) +} + +func Xmkostemp(tls *TLS, template uintptr, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v template=%v flags=%v, (%v:)", tls, template, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__mkostemps(tls, template, 0, flags) +} + +func X__mkostemps(tls *TLS, template uintptr, len1 int32, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v template=%v len1=%v flags=%v, (%v:)", tls, template, len1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var fd, retries, v1 int32 + var l Tsize_t + _, _, _, _ = fd, l, retries, v1 + l = _strlen(tls, template) + if l < uint64(6) || Uint64FromInt32(len1) > l-uint64(6) || Xmemcmp(tls, template+uintptr(l)-uintptr(len1)-uintptr(6), __ccgo_ts+1769, uint64(6)) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + flags = flags - flags&(Int32FromInt32(03)|Int32FromInt32(O_PATH)) + retries = int32(100) + for { + ___randname(tls, template+uintptr(l)-uintptr(len1)-uintptr(6)) + v1 = Xopen(tls, template, flags|int32(O_RDWR)|int32(O_CREAT)|int32(O_EXCL), VaList(bp+8, int32(0600))) + fd = v1 + if v1 >= 0 { + return fd + } + goto _2 + _2: + ; + retries = retries - 1 + v1 = retries + if !(v1 != 0 && **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EEXIST)) { + break + } + } + Xmemcpy(tls, template+uintptr(l)-uintptr(len1)-uintptr(6), __ccgo_ts+1769, uint64(6)) + return -int32(1) +} + +func Xmkostemps(tls *TLS, template uintptr, len1 int32, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v template=%v len1=%v flags=%v, (%v:)", tls, template, len1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__mkostemps(tls, template, len1, flags) +} + +func Xmkstemp(tls *TLS, template uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v template=%v, (%v:)", tls, template, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__mkostemps(tls, template, 0, 0) +} + +func Xmkstemps(tls *TLS, template uintptr, len1 int32) (r int32) { + if __ccgo_strace { + trc("tls=%v template=%v len1=%v, (%v:)", tls, template, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__mkostemps(tls, template, len1, 0) +} + +func Xmktemp(tls *TLS, template uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v template=%v, (%v:)", tls, template, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(128) + defer tls.Free(128) + var l Tsize_t + var retries, v1 int32 + var _ /* st at bp+0 */ Tstat + _, _, _ = l, retries, v1 + l = _strlen(tls, template) + retries = int32(100) + if l < uint64(6) || Xmemcmp(tls, template+uintptr(l)-uintptr(6), __ccgo_ts+1769, uint64(6)) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + **(**uint8)(__ccgo_up(template)) = uint8(0) + return template + } + for { + ___randname(tls, template+uintptr(l)-uintptr(6)) + if Xstat(tls, template, bp) != 0 { + if **(**int32)(__ccgo_up(X__errno_location(tls))) != int32(ENOENT) { + **(**uint8)(__ccgo_up(template)) = uint8(0) + } + return template + } + goto _2 + _2: + ; + retries = retries - 1 + v1 = retries + if !(v1 != 0) { + break + } + } + **(**uint8)(__ccgo_up(template)) = uint8(0) + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EEXIST) + return template +} + +func Xcfgetospeed(tls *TLS, tio uintptr) (r Tspeed_t) { + if __ccgo_strace { + trc("tls=%v tio=%v, (%v:)", tls, tio, origin(2)) + defer func() { trc("-> %v", r) }() + } + return (*Ttermios)(unsafe.Pointer(tio)).Fc_cflag & uint32(CBAUD) +} + +func Xcfgetispeed(tls *TLS, tio uintptr) (r Tspeed_t) { + if __ccgo_strace { + trc("tls=%v tio=%v, (%v:)", tls, tio, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xcfgetospeed(tls, tio) +} + +func Xcfmakeraw(tls *TLS, t uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v, (%v:)", tls, t, origin(2)) + } + **(**Ttcflag_t)(__ccgo_up(t)) &= Uint32FromInt32(^(Int32FromInt32(IGNBRK) | Int32FromInt32(BRKINT) | Int32FromInt32(PARMRK) | Int32FromInt32(ISTRIP) | Int32FromInt32(INLCR) | Int32FromInt32(IGNCR) | Int32FromInt32(ICRNL) | Int32FromInt32(IXON))) + **(**Ttcflag_t)(__ccgo_up(t + 4)) &= Uint32FromInt32(^Int32FromInt32(OPOST)) + **(**Ttcflag_t)(__ccgo_up(t + 12)) &= Uint32FromInt32(^(Int32FromInt32(ECHO) | Int32FromInt32(ECHONL) | Int32FromInt32(ICANON) | Int32FromInt32(ISIG) | Int32FromInt32(IEXTEN))) + **(**Ttcflag_t)(__ccgo_up(t + 8)) &= Uint32FromInt32(^(Int32FromInt32(CSIZE) | Int32FromInt32(PARENB))) + **(**Ttcflag_t)(__ccgo_up(t + 8)) |= uint32(CS8) + **(**Tcc_t)(__ccgo_up(t + 17 + 6)) = uint8(1) + **(**Tcc_t)(__ccgo_up(t + 17 + 5)) = uint8(0) +} + +func Xcfsetospeed(tls *TLS, tio uintptr, speed Tspeed_t) (r int32) { + if __ccgo_strace { + trc("tls=%v tio=%v speed=%v, (%v:)", tls, tio, speed, origin(2)) + defer func() { trc("-> %v", r) }() + } + if speed&Uint32FromInt32(^Int32FromInt32(CBAUD)) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + **(**Ttcflag_t)(__ccgo_up(tio + 8)) &= Uint32FromInt32(^Int32FromInt32(CBAUD)) + **(**Ttcflag_t)(__ccgo_up(tio + 8)) |= speed + return 0 +} + +func Xcfsetispeed(tls *TLS, tio uintptr, speed Tspeed_t) (r int32) { + if __ccgo_strace { + trc("tls=%v tio=%v speed=%v, (%v:)", tls, tio, speed, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + _ = v1 + if speed != 0 { + v1 = Xcfsetospeed(tls, tio, speed) + } else { + v1 = 0 + } + return v1 +} + +func Xcfsetspeed(tls *TLS, tio uintptr, speed Tspeed_t) (r int32) { + if __ccgo_strace { + trc("tls=%v tio=%v speed=%v, (%v:)", tls, tio, speed, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xcfsetospeed(tls, tio, speed) +} + +func Xtcdrain(tls *TLS, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_ioctl), int64(fd), int64(Int32FromInt32(TCSBRK)), int64(Int32FromInt32(1)), 0, 0, 0)))) +} + +func Xtcflow(tls *TLS, fd int32, action int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v action=%v, (%v:)", tls, fd, action, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + return Xioctl(tls, fd, int32(TCXONC), VaList(bp+8, action)) +} + +func Xtcflush(tls *TLS, fd int32, queue int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v queue=%v, (%v:)", tls, fd, queue, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + return Xioctl(tls, fd, int32(TCFLSH), VaList(bp+8, queue)) +} + +func Xtcgetattr(tls *TLS, fd int32, tio uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v tio=%v, (%v:)", tls, fd, tio, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + if Xioctl(tls, fd, int32(TCGETS), VaList(bp+8, tio)) != 0 { + return -int32(1) + } + return 0 +} + +func Xtcgetsid(tls *TLS, fd int32) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var _ /* sid at bp+0 */ int32 + if Xioctl(tls, fd, int32(TIOCGSID), VaList(bp+16, bp)) < 0 { + return -int32(1) + } + return **(**int32)(__ccgo_up(bp)) +} + +func Xtcgetwinsize(tls *TLS, fd int32, wsz uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v wsz=%v, (%v:)", tls, fd, wsz, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_ioctl), int64(fd), int64(Int32FromInt32(TIOCGWINSZ)), int64(wsz))))) +} + +func Xtcsendbreak(tls *TLS, fd int32, dur int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v dur=%v, (%v:)", tls, fd, dur, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + /* nonzero duration is implementation-defined, so ignore it */ + return Xioctl(tls, fd, int32(TCSBRK), VaList(bp+8, 0)) +} + +func Xtcsetattr(tls *TLS, fd int32, act int32, tio uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v act=%v tio=%v, (%v:)", tls, fd, act, tio, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + if act < 0 || act > int32(2) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + return Xioctl(tls, fd, int32(TCSETS)+act, VaList(bp+8, tio)) +} + +func Xtcsetwinsize(tls *TLS, fd int32, wsz uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v wsz=%v, (%v:)", tls, fd, wsz, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_ioctl), int64(fd), int64(Int32FromInt32(TIOCSWINSZ)), int64(wsz))))) +} + +func X__map_file(tls *TLS, pathname uintptr, size uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v pathname=%v size=%v, (%v:)", tls, pathname, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(128) + defer tls.Free(128) + var fd int32 + var map1, v1 uintptr + var _ /* st at bp+0 */ Tstat + _, _, _ = fd, map1, v1 + map1 = uintptr(-Int32FromInt32(1)) + fd = int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_openat), int64(-Int32FromInt32(100)), int64(pathname), int64(Int32FromInt32(O_RDONLY)|Int32FromInt32(O_CLOEXEC)|Int32FromInt32(O_NONBLOCK)|Int32FromInt32(O_LARGEFILE)))))) + if fd < 0 { + return uintptr(0) + } + if !(X__fstat(tls, fd, bp) != 0) { + map1 = X__mmap(tls, uintptr(0), Uint64FromInt64((**(**Tstat)(__ccgo_up(bp))).Fst_size), int32(PROT_READ), int32(MAP_SHARED), fd, 0) + **(**Tsize_t)(__ccgo_up(size)) = Uint64FromInt64((**(**Tstat)(__ccgo_up(bp))).Fst_size) + } + X__syscall1(tls, int64(SYS_close), int64(fd)) + if map1 == uintptr(-Int32FromInt32(1)) { + v1 = uintptr(0) + } else { + v1 = map1 + } + return v1 +} + +func X__month_to_secs(tls *TLS, month int32, is_leap int32) (r int32) { + if __ccgo_strace { + trc("tls=%v month=%v is_leap=%v, (%v:)", tls, month, is_leap, origin(2)) + defer func() { trc("-> %v", r) }() + } + var t int32 + _ = t + t = _secs_through_month[month] + if is_leap != 0 && month >= int32(2) { + t = t + int32(86400) + } + return t +} + +var _secs_through_month = [12]int32{ + 1: Int32FromInt32(31) * Int32FromInt32(86400), + 2: Int32FromInt32(59) * Int32FromInt32(86400), + 3: Int32FromInt32(90) * Int32FromInt32(86400), + 4: Int32FromInt32(120) * Int32FromInt32(86400), + 5: Int32FromInt32(151) * Int32FromInt32(86400), + 6: Int32FromInt32(181) * Int32FromInt32(86400), + 7: Int32FromInt32(212) * Int32FromInt32(86400), + 8: Int32FromInt32(243) * Int32FromInt32(86400), + 9: Int32FromInt32(273) * Int32FromInt32(86400), + 10: Int32FromInt32(304) * Int32FromInt32(86400), + 11: Int32FromInt32(334) * Int32FromInt32(86400), +} + +const DAYS_PER_100Y = 36524 +const DAYS_PER_400Y = 146097 +const DAYS_PER_4Y = 1461 +const LEAPOCH = 951868800 + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +/* 2000-03-01 (mod 400 year, immediately after feb29 */ + +func X__secs_to_tm(tls *TLS, t int64, tm uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v t=%v tm=%v, (%v:)", tls, t, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + var c_cycles, leap, months, q_cycles, qc_cycles, remdays, remsecs, remyears, wday, yday int32 + var days, secs, years int64 + _, _, _, _, _, _, _, _, _, _, _, _, _ = c_cycles, days, leap, months, q_cycles, qc_cycles, remdays, remsecs, remyears, secs, wday, yday, years + /* Reject time_t values whose year would overflow int */ + if t < int64(-Int32FromInt32(1)-Int32FromInt32(0x7fffffff))*Int64FromInt64(31622400) || t > Int64FromInt32(INT_MAX)*Int64FromInt64(31622400) { + return -int32(1) + } + secs = t - (Int64FromInt64(946684800) + int64(Int32FromInt32(86400)*(Int32FromInt32(31)+Int32FromInt32(29)))) + days = secs / int64(86400) + remsecs = int32(secs % int64(86400)) + if remsecs < 0 { + remsecs = remsecs + int32(86400) + days = days - 1 + } + wday = int32((int64(3) + days) % int64(7)) + if wday < 0 { + wday = wday + int32(7) + } + qc_cycles = int32(days / int64(Int32FromInt32(365)*Int32FromInt32(400)+Int32FromInt32(97))) + remdays = int32(days % int64(Int32FromInt32(365)*Int32FromInt32(400)+Int32FromInt32(97))) + if remdays < 0 { + remdays = remdays + (Int32FromInt32(365)*Int32FromInt32(400) + Int32FromInt32(97)) + qc_cycles = qc_cycles - 1 + } + c_cycles = remdays / (Int32FromInt32(365)*Int32FromInt32(100) + Int32FromInt32(24)) + if c_cycles == int32(4) { + c_cycles = c_cycles - 1 + } + remdays = remdays - c_cycles*(Int32FromInt32(365)*Int32FromInt32(100)+Int32FromInt32(24)) + q_cycles = remdays / (Int32FromInt32(365)*Int32FromInt32(4) + Int32FromInt32(1)) + if q_cycles == int32(25) { + q_cycles = q_cycles - 1 + } + remdays = remdays - q_cycles*(Int32FromInt32(365)*Int32FromInt32(4)+Int32FromInt32(1)) + remyears = remdays / int32(365) + if remyears == int32(4) { + remyears = remyears - 1 + } + remdays = remdays - remyears*int32(365) + leap = BoolInt32(!(remyears != 0) && (q_cycles != 0 || !(c_cycles != 0))) + yday = remdays + int32(31) + int32(28) + leap + if yday >= int32(365)+leap { + yday = yday - (int32(365) + leap) + } + years = int64(remyears+int32(4)*q_cycles+int32(100)*c_cycles) + int64(400)*int64(qc_cycles) + months = 0 + for { + if !(Int32FromUint8(_days_in_month[months]) <= remdays) { + break + } + remdays = remdays - Int32FromUint8(_days_in_month[months]) + goto _1 + _1: + ; + months = months + 1 + } + if months >= int32(10) { + months = months - int32(12) + years = years + 1 + } + if years+int64(100) > int64(INT_MAX) || years+int64(100) < int64(-Int32FromInt32(1)-Int32FromInt32(0x7fffffff)) { + return -int32(1) + } + (*Ttm)(unsafe.Pointer(tm)).Ftm_year = int32(years + int64(100)) + (*Ttm)(unsafe.Pointer(tm)).Ftm_mon = months + int32(2) + (*Ttm)(unsafe.Pointer(tm)).Ftm_mday = remdays + int32(1) + (*Ttm)(unsafe.Pointer(tm)).Ftm_wday = wday + (*Ttm)(unsafe.Pointer(tm)).Ftm_yday = yday + (*Ttm)(unsafe.Pointer(tm)).Ftm_hour = remsecs / int32(3600) + (*Ttm)(unsafe.Pointer(tm)).Ftm_min = remsecs / int32(60) % int32(60) + (*Ttm)(unsafe.Pointer(tm)).Ftm_sec = remsecs % int32(60) + return 0 +} + +var _days_in_month = [12]uint8{ + 0: uint8(31), + 1: uint8(30), + 2: uint8(31), + 3: uint8(30), + 4: uint8(31), + 5: uint8(31), + 6: uint8(30), + 7: uint8(31), + 8: uint8(30), + 9: uint8(31), + 10: uint8(31), + 11: uint8(29), +} + +func X__tm_to_secs(tls *TLS, tm uintptr) (r int64) { + if __ccgo_strace { + trc("tls=%v tm=%v, (%v:)", tls, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var adj, month int32 + var t, year int64 + var _ /* is_leap at bp+0 */ int32 + _, _, _, _ = adj, month, t, year + year = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_year) + month = (*Ttm)(unsafe.Pointer(tm)).Ftm_mon + if month >= int32(12) || month < 0 { + adj = month / int32(12) + month = month % int32(12) + if month < 0 { + adj = adj - 1 + month = month + int32(12) + } + year = year + int64(adj) + } + t = X__year_to_secs(tls, year, bp) + t = t + int64(X__month_to_secs(tls, month, **(**int32)(__ccgo_up(bp)))) + t = t + int64(86400)*int64((*Ttm)(unsafe.Pointer(tm)).Ftm_mday-Int32FromInt32(1)) + t = t + int64(3600)*int64((*Ttm)(unsafe.Pointer(tm)).Ftm_hour) + t = t + int64(60)*int64((*Ttm)(unsafe.Pointer(tm)).Ftm_min) + t = t + int64((*Ttm)(unsafe.Pointer(tm)).Ftm_sec) + return t +} + +var _std_name [7]uint8 +var _dst_name [7]uint8 + +var _dst_off int32 +var _r0 [5]int32 +var _r12 [5]int32 + +var _zi uintptr +var _trans uintptr +var _index uintptr +var _types uintptr +var _abbrevs uintptr +var _abbrevs_end uintptr +var _map_size Tsize_t + +var _old_tz_buf [32]uint8 +var _old_tz = uintptr(unsafe.Pointer(&_old_tz_buf)) +var _old_tz_size = uint64(32) + +var _lock4 [1]int32 + +func _getint2(tls *TLS, p uintptr) (r int32) { + var x uint32 + _ = x + x = uint32(0) + for { + if !(Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(p)))))-int32('0')) < uint32(10)) { + break + } + x = Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(p)))))-int32('0')) + uint32(10)*x + goto _1 + _1: + ; + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + } + return Int32FromUint32(x) +} + +func _getoff(tls *TLS, p uintptr) (r int32) { + var neg, off, v1 int32 + _, _, _ = neg, off, v1 + neg = 0 + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(p))))) == int32('-') { + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + neg = int32(1) + } else { + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(p))))) == int32('+') { + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + } + } + off = int32(3600) * _getint2(tls, p) + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(p))))) == int32(':') { + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + off = off + int32(60)*_getint2(tls, p) + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(p))))) == int32(':') { + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + off = off + _getint2(tls, p) + } + } + if neg != 0 { + v1 = -off + } else { + v1 = off + } + return v1 +} + +func _getrule(tls *TLS, p uintptr, rule uintptr) { + var r, v1 int32 + _, _ = r, v1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(p))))) + **(**int32)(__ccgo_up(rule)) = v1 + r = v1 + if r != int32('M') { + if r == int32('J') { + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + } else { + **(**int32)(__ccgo_up(rule)) = 0 + } + **(**int32)(__ccgo_up(rule + 1*4)) = _getint2(tls, p) + } else { + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + **(**int32)(__ccgo_up(rule + 1*4)) = _getint2(tls, p) + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + **(**int32)(__ccgo_up(rule + 2*4)) = _getint2(tls, p) + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + **(**int32)(__ccgo_up(rule + 3*4)) = _getint2(tls, p) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(p))))) == int32('/') { + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + **(**int32)(__ccgo_up(rule + 4*4)) = _getoff(tls, p) + } else { + **(**int32)(__ccgo_up(rule + 4*4)) = int32(7200) + } +} + +func _getname(tls *TLS, d uintptr, p uintptr) { + var i, v3 int32 + _, _ = i, v3 + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(p))))) == int32('<') { + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + i = 0 + for { + if !(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(p)) + uintptr(i))) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(p)) + uintptr(i)))) != int32('>')) { + break + } + if i < int32(TZNAME_MAX) { + **(**uint8)(__ccgo_up(d + uintptr(i))) = **(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(p)) + uintptr(i))) + } + goto _1 + _1: + ; + i = i + 1 + } + if **(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(p)) + uintptr(i))) != 0 { + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + } + } else { + i = 0 + for { + if !(Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(p)) + uintptr(i))))|int32(32)-int32('a')) < uint32(26)) { + break + } + if i < int32(TZNAME_MAX) { + **(**uint8)(__ccgo_up(d + uintptr(i))) = **(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(p)) + uintptr(i))) + } + goto _2 + _2: + ; + i = i + 1 + } + } + **(**uintptr)(__ccgo_up(p)) += uintptr(i) + if i < int32(TZNAME_MAX) { + v3 = i + } else { + v3 = int32(TZNAME_MAX) + } + **(**uint8)(__ccgo_up(d + uintptr(v3))) = uint8(0) +} + +func _zi_read32(tls *TLS, z uintptr) (r Tuint32_t) { + return uint32(**(**uint8)(__ccgo_up(z)))< Uint64FromInt32(Int32FromInt32(PATH_MAX)+Int32FromInt32(1)) { + **(**uintptr)(__ccgo_up(bp + 288)) = uintptr(unsafe.Pointer(&X__utc)) + i = Uint64FromInt32(3) + } + if i >= _old_tz_size { + _old_tz_size = _old_tz_size * uint64(2) + if i >= _old_tz_size { + _old_tz_size = i + uint64(1) + } + if _old_tz_size > Uint64FromInt32(Int32FromInt32(PATH_MAX)+Int32FromInt32(2)) { + _old_tz_size = Uint64FromInt32(Int32FromInt32(PATH_MAX) + Int32FromInt32(2)) + } + _old_tz = Xmalloc(tls, _old_tz_size) + } + if _old_tz != 0 { + Xmemcpy(tls, _old_tz, **(**uintptr)(__ccgo_up(bp + 288)), i+uint64(1)) + } + posix_form = 0 + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 288))))) != int32(':') { + **(**uintptr)(__ccgo_up(bp + 296)) = **(**uintptr)(__ccgo_up(bp + 288)) + _getname(tls, bp+308, bp+296) + if **(**uintptr)(__ccgo_up(bp + 296)) != **(**uintptr)(__ccgo_up(bp + 288)) && (Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 296))))) == int32('+') || Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 296))))) == int32('-') || BoolInt32(uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 296)))))-uint32('0') < uint32(10)) != 0 || !(Xstrcmp(tls, bp+308, __ccgo_ts+1794) != 0) || !(Xstrcmp(tls, bp+308, __ccgo_ts+1798) != 0)) { + posix_form = int32(1) + } + } + /* Non-suid can use an absolute tzfile pathname or a relative + * pathame beginning with "."; in secure mode, only the + * standard path will be searched. */ + if !(posix_form != 0) { + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 288))))) == int32(':') { + **(**uintptr)(__ccgo_up(bp + 288)) = **(**uintptr)(__ccgo_up(bp + 288)) + 1 + } + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 288))))) == int32('/') || Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 288))))) == int32('.') { + if !(X__libc.Fsecure != 0) || !(Xstrcmp(tls, **(**uintptr)(__ccgo_up(bp + 288)), __ccgo_ts+1779) != 0) { + map1 = X__map_file(tls, **(**uintptr)(__ccgo_up(bp + 288)), uintptr(unsafe.Pointer(&_map_size))) + } + } else { + l = _strlen(tls, **(**uintptr)(__ccgo_up(bp + 288))) + if l <= uint64(NAME_MAX) && !(Xstrchr(tls, **(**uintptr)(__ccgo_up(bp + 288)), int32('.')) != 0) { + Xmemcpy(tls, pathname, **(**uintptr)(__ccgo_up(bp + 288)), l+uint64(1)) + **(**uint8)(__ccgo_up(pathname + uintptr(l))) = uint8(0) + try = uintptr(unsafe.Pointer(&_search)) + for { + if !(!(map1 != 0) && **(**uint8)(__ccgo_up(try)) != 0) { + break + } + l = _strlen(tls, try) + Xmemcpy(tls, pathname-uintptr(l), try, l) + map1 = X__map_file(tls, pathname-uintptr(l), uintptr(unsafe.Pointer(&_map_size))) + goto _3 + _3: + ; + try = try + uintptr(l+uint64(1)) + } + } + } + if !(map1 != 0) { + **(**uintptr)(__ccgo_up(bp + 288)) = uintptr(unsafe.Pointer(&X__utc)) + } + } + if map1 != 0 && (_map_size < uint64(44) || Xmemcmp(tls, map1, __ccgo_ts+1802, uint64(4)) != 0) { + X__munmap(tls, map1, _map_size) + map1 = uintptr(0) + **(**uintptr)(__ccgo_up(bp + 288)) = uintptr(unsafe.Pointer(&X__utc)) + } + _zi = map1 + if map1 != 0 { + scale = int32(2) + if Int32FromUint8(**(**uint8)(__ccgo_up(map1 + 4))) != int32('1') { + *(*[6]uint8)(unsafe.Pointer(bp)) = [6]uint8{ + 0: uint8(1), + 1: uint8(1), + 2: uint8(8), + 3: uint8(5), + 4: uint8(6), + 5: uint8(1), + } + skip = _zi_dotprod(tls, _zi+uintptr(20), bp, uint64(6)) + _trans = _zi + uintptr(skip) + uintptr(44) + uintptr(44) + scale = scale + 1 + } else { + _trans = _zi + uintptr(44) + } + _index = _trans + uintptr(_zi_read32(tls, _trans-uintptr(12))<> scale) + if !(n != 0) { + if alt != 0 { + **(**Tsize_t)(__ccgo_up(alt)) = uint64(0) + } + return uint64(0) + } + /* Binary search for 'most-recent rule before t'. */ + for n > uint64(1) { + m = a + n/uint64(2) + x = uint64(_zi_read32(tls, _trans+uintptr(m<> scale) + if a == n-uint64(1) { + return Uint64FromInt32(-Int32FromInt32(1)) + } + if a == uint64(0) { + x = uint64(_zi_read32(tls, _trans)) + if scale == int32(3) { + x = x<>(m-int32(1))&int32(1) + } + return r +} + +/* Convert a POSIX DST rule plus year to seconds since epoch. */ + +func _rule_to_secs(tls *TLS, rule uintptr, year int32) (r int64) { + bp := tls.Alloc(16) + defer tls.Free(16) + var d, days, m, n, wday, x int32 + var t int64 + var _ /* is_leap at bp+0 */ int32 + _, _, _, _, _, _, _ = d, days, m, n, t, wday, x + t = X__year_to_secs(tls, int64(year), bp) + if **(**int32)(__ccgo_up(rule)) != int32('M') { + x = **(**int32)(__ccgo_up(rule + 1*4)) + if **(**int32)(__ccgo_up(rule)) == int32('J') && (x < int32(60) || !(**(**int32)(__ccgo_up(bp)) != 0)) { + x = x - 1 + } + t = t + int64(int32(86400)*x) + } else { + m = **(**int32)(__ccgo_up(rule + 1*4)) + n = **(**int32)(__ccgo_up(rule + 2*4)) + d = **(**int32)(__ccgo_up(rule + 3*4)) + t = t + int64(X__month_to_secs(tls, m-int32(1), **(**int32)(__ccgo_up(bp)))) + wday = int32((t+int64(Int32FromInt32(4)*Int32FromInt32(86400)))%int64(Int32FromInt32(7)*Int32FromInt32(86400))) / int32(86400) + days = d - wday + if days < 0 { + days = days + int32(7) + } + if n == int32(5) && days+int32(28) >= _days_in_month1(tls, m, **(**int32)(__ccgo_up(bp))) { + n = int32(4) + } + t = t + int64(int32(86400)*(days+int32(7)*(n-int32(1)))) + } + t = t + int64(**(**int32)(__ccgo_up(rule + 4*4))) + return t +} + +/* Determine the time zone in effect for a given time in seconds since the + * epoch. It can be given in local or universal time. The results will + * indicate whether DST is in effect at the queried time, and will give both + * the GMT offset for the active zone/DST rule and the opposite DST. This + * enables a caller to efficiently adjust for the case where an explicit + * DST specification mismatches what would be in effect at the time. */ + +func X__secs_to_zone(tls *TLS, t int64, local int32, isdst uintptr, offset uintptr, oppoff uintptr, zonename uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v local=%v isdst=%v offset=%v oppoff=%v zonename=%v, (%v:)", tls, t, local, isdst, offset, oppoff, zonename, origin(2)) + } + bp := tls.Alloc(16) + defer tls.Free(16) + var i Tsize_t + var t0, t1, y int64 + var _ /* alt at bp+0 */ Tsize_t + _, _, _, _ = i, t0, t1, y + ___lock(tls, uintptr(unsafe.Pointer(&_lock4))) + _do_tzset(tls) + if _zi != 0 { + i = _scan_trans(tls, t, local, bp) + if i != Uint64FromInt32(-Int32FromInt32(1)) { + **(**int32)(__ccgo_up(isdst)) = Int32FromUint8(**(**uint8)(__ccgo_up(_types + uintptr(uint64(6)*i+uint64(4))))) + **(**int64)(__ccgo_up(offset)) = int64(Int32FromUint32(_zi_read32(tls, _types+uintptr(uint64(6)*i)))) + **(**uintptr)(__ccgo_up(zonename)) = _abbrevs + uintptr(**(**uint8)(__ccgo_up(_types + uintptr(uint64(6)*i+uint64(5))))) + if oppoff != 0 { + **(**int64)(__ccgo_up(oppoff)) = int64(Int32FromUint32(_zi_read32(tls, _types+uintptr(uint64(6)***(**Tsize_t)(__ccgo_up(bp)))))) + } + ___unlock(tls, uintptr(unsafe.Pointer(&_lock4))) + return + } + } + if !(Xdaylight != 0) { + goto std + } + /* FIXME: may be broken if DST changes right at year boundary? + * Also, this could be more efficient.*/ + y = t/int64(31556952) + int64(70) + for X__year_to_secs(tls, y, uintptr(0)) > t { + y = y - 1 + } + for X__year_to_secs(tls, y+int64(1), uintptr(0)) < t { + y = y + 1 + } + t0 = _rule_to_secs(tls, uintptr(unsafe.Pointer(&_r0)), int32(y)) + t1 = _rule_to_secs(tls, uintptr(unsafe.Pointer(&_r12)), int32(y)) + if !(local != 0) { + t0 = t0 + Xtimezone + t1 = t1 + int64(_dst_off) + } + if t0 < t1 { + if t >= t0 && t < t1 { + goto dst + } + goto std + } else { + if t >= t1 && t < t0 { + goto std + } + goto dst + } + goto std +std: + ; + **(**int32)(__ccgo_up(isdst)) = 0 + **(**int64)(__ccgo_up(offset)) = -Xtimezone + if oppoff != 0 { + **(**int64)(__ccgo_up(oppoff)) = int64(-_dst_off) + } + **(**uintptr)(__ccgo_up(zonename)) = Xtzname[0] + ___unlock(tls, uintptr(unsafe.Pointer(&_lock4))) + return + goto dst +dst: + ; + **(**int32)(__ccgo_up(isdst)) = int32(1) + **(**int64)(__ccgo_up(offset)) = int64(-_dst_off) + if oppoff != 0 { + **(**int64)(__ccgo_up(oppoff)) = -Xtimezone + } + **(**uintptr)(__ccgo_up(zonename)) = Xtzname[int32(1)] + ___unlock(tls, uintptr(unsafe.Pointer(&_lock4))) +} + +func ___tzset(tls *TLS) { + ___lock(tls, uintptr(unsafe.Pointer(&_lock4))) + _do_tzset(tls) + ___unlock(tls, uintptr(unsafe.Pointer(&_lock4))) +} + +func X__tm_to_tzname(tls *TLS, tm uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v tm=%v, (%v:)", tls, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + var p uintptr + _ = p + p = (*Ttm)(unsafe.Pointer(tm)).F__tm_zone + ___lock(tls, uintptr(unsafe.Pointer(&_lock4))) + _do_tzset(tls) + if p != uintptr(unsafe.Pointer(&X__utc)) && p != Xtzname[0] && p != Xtzname[int32(1)] && (!(_zi != 0) || uint64(p)-uint64(_abbrevs) >= Uint64FromInt64(int64(_abbrevs_end)-int64(_abbrevs))) { + p = __ccgo_ts + } + ___unlock(tls, uintptr(unsafe.Pointer(&_lock4))) + return p +} + +func X__year_to_secs(tls *TLS, year int64, is_leap uintptr) (r int64) { + if __ccgo_strace { + trc("tls=%v year=%v is_leap=%v, (%v:)", tls, year, is_leap, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var centuries, cycles, leaps, leaps1, rem, y int32 + var _ /* dummy at bp+0 */ int32 + _, _, _, _, _, _ = centuries, cycles, leaps, leaps1, rem, y + if Uint64FromInt64(year)-uint64(2) <= uint64(136) { + y = int32(year) + leaps = (y - int32(68)) >> int32(2) + if !((y-Int32FromInt32(68))&Int32FromInt32(3) != 0) { + leaps = leaps - 1 + if is_leap != 0 { + **(**int32)(__ccgo_up(is_leap)) = int32(1) + } + } else { + if is_leap != 0 { + **(**int32)(__ccgo_up(is_leap)) = 0 + } + } + return int64(int32(31536000)*(y-int32(70)) + int32(86400)*leaps) + } + if !(is_leap != 0) { + is_leap = bp + } + cycles = int32((year - int64(100)) / int64(400)) + rem = int32((year - int64(100)) % int64(400)) + if rem < 0 { + cycles = cycles - 1 + rem = rem + int32(400) + } + if !(rem != 0) { + **(**int32)(__ccgo_up(is_leap)) = int32(1) + centuries = 0 + leaps1 = 0 + } else { + if rem >= int32(200) { + if rem >= int32(300) { + centuries = int32(3) + rem = rem - int32(300) + } else { + centuries = int32(2) + rem = rem - int32(200) + } + } else { + if rem >= int32(100) { + centuries = int32(1) + rem = rem - int32(100) + } else { + centuries = 0 + } + } + if !(rem != 0) { + **(**int32)(__ccgo_up(is_leap)) = 0 + leaps1 = 0 + } else { + leaps1 = Int32FromUint32(Uint32FromInt32(rem) / uint32(4)) + rem = Int32FromUint32(uint32(rem) % Uint32FromUint32(4)) + **(**int32)(__ccgo_up(is_leap)) = BoolInt32(!(rem != 0)) + } + } + leaps1 = leaps1 + (int32(97)*cycles + int32(24)*centuries - **(**int32)(__ccgo_up(is_leap))) + return (year-int64(100))*int64(31536000) + int64(leaps1)*int64(86400) + int64(946684800) + int64(86400) +} + +func Xasctime(tls *TLS, tm uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v tm=%v, (%v:)", tls, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__asctime_r(tls, tm, uintptr(unsafe.Pointer(&_buf9))) +} + +var _buf9 [26]uint8 + +func X__asctime_r(tls *TLS, tm uintptr, buf uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v tm=%v buf=%v, (%v:)", tls, tm, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + if Xsnprintf(tls, buf, uint64(26), __ccgo_ts+1807, VaList(bp+8, X__nl_langinfo_l(tls, int32(ABDAY_1)+(*Ttm)(unsafe.Pointer(tm)).Ftm_wday, uintptr(unsafe.Pointer(&X__c_locale))), X__nl_langinfo_l(tls, int32(ABMON_1)+(*Ttm)(unsafe.Pointer(tm)).Ftm_mon, uintptr(unsafe.Pointer(&X__c_locale))), (*Ttm)(unsafe.Pointer(tm)).Ftm_mday, (*Ttm)(unsafe.Pointer(tm)).Ftm_hour, (*Ttm)(unsafe.Pointer(tm)).Ftm_min, (*Ttm)(unsafe.Pointer(tm)).Ftm_sec, int32(1900)+(*Ttm)(unsafe.Pointer(tm)).Ftm_year)) >= int32(26) { + /* ISO C requires us to use the above format string, + * even if it will not fit in the buffer. Thus asctime_r + * is _supposed_ to crash if the fields in tm are too large. + * We follow this behavior and crash "gracefully" to warn + * application developers that they may not be so lucky + * on other implementations (e.g. stack smashing..). + */ + **(**uint8)(__ccgo_up(UintptrFromInt32(0))) = uint8(0) + } + return buf +} + +func Xasctime_r(tls *TLS, tm uintptr, buf uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v tm=%v buf=%v, (%v:)", tls, tm, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__asctime_r(tls, tm, buf) +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xclock(tls *TLS) (r Tclock_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* ts at bp+0 */ Ttimespec + if X__clock_gettime(tls, int32(CLOCK_PROCESS_CPUTIME_ID), bp) != 0 { + return int64(-int32(1)) + } + if (**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec > Int64FromInt64(0x7fffffffffffffff)/Int64FromInt32(1000000) || (**(**Ttimespec)(__ccgo_up(bp))).Ftv_nsec/int64(1000) > int64(0x7fffffffffffffff)-int64(1000000)*(**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec { + return int64(-int32(1)) + } + return (**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec*int64(1000000) + (**(**Ttimespec)(__ccgo_up(bp))).Ftv_nsec/int64(1000) +} + +func Xclock_getcpuclockid(tls *TLS, pid Tpid_t, clk uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v pid=%v clk=%v, (%v:)", tls, pid, clk, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var id Tclockid_t + var ret int32 + var _ /* ts at bp+0 */ Ttimespec + _, _ = id, ret + id = Int32FromUint32(Uint32FromInt32(-pid-Int32FromInt32(1))*uint32(8) + uint32(2)) + ret = int32(X__syscall2(tls, int64(SYS_clock_getres), int64(id), int64(bp))) + if ret == -int32(EINVAL) { + ret = -int32(ESRCH) + } + if ret != 0 { + return -ret + } + **(**Tclockid_t)(__ccgo_up(clk)) = id + return 0 +} + +func Xclock_getres(tls *TLS, clk Tclockid_t, ts uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v clk=%v ts=%v, (%v:)", tls, clk, ts, origin(2)) + defer func() { trc("-> %v", r) }() + } + /* If reaching this point, it's a 64-bit arch or time64-only + * 32-bit arch and we can get result directly into timespec. */ + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_clock_getres), int64(clk), int64(ts))))) +} + +func X__clock_gettime(tls *TLS, clk Tclockid_t, ts uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v clk=%v ts=%v, (%v:)", tls, clk, ts, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + r = int32(X__syscall2(tls, int64(SYS_clock_gettime), int64(clk), int64(ts))) + if r == -int32(ENOSYS) { + if clk == CLOCK_REALTIME { + X__syscall2(tls, int64(SYS_gettimeofday), int64(ts), int64(Int32FromInt32(0))) + (*Ttimespec)(unsafe.Pointer(ts)).Ftv_nsec = int64(int32((*Ttimespec)(unsafe.Pointer(ts)).Ftv_nsec) * int32(1000)) + return 0 + } + r = -int32(EINVAL) + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func Xclock_gettime(tls *TLS, clk Tclockid_t, ts uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v clk=%v ts=%v, (%v:)", tls, clk, ts, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__clock_gettime(tls, clk, ts) +} + +func X__clock_nanosleep(tls *TLS, clk Tclockid_t, flags int32, req uintptr, rem uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v clk=%v flags=%v req=%v rem=%v, (%v:)", tls, clk, flags, req, rem, origin(2)) + defer func() { trc("-> %v", r) }() + } + if clk == int32(CLOCK_THREAD_CPUTIME_ID) { + return int32(EINVAL) + } + if clk == CLOCK_REALTIME && !(flags != 0) { + return int32(-___syscall_cp(tls, int64(SYS_nanosleep), int64(req), int64(rem), 0, 0, 0, 0)) + } + return int32(-___syscall_cp(tls, int64(SYS_clock_nanosleep), int64(clk), int64(flags), int64(req), int64(rem), 0, 0)) +} + +func Xclock_nanosleep(tls *TLS, clk Tclockid_t, flags int32, req uintptr, rem uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v clk=%v flags=%v req=%v rem=%v, (%v:)", tls, clk, flags, req, rem, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__clock_nanosleep(tls, clk, flags, req, rem) +} + +func Xclock_settime(tls *TLS, clk Tclockid_t, ts uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v clk=%v ts=%v, (%v:)", tls, clk, ts, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_clock_settime), int64(clk), int64(ts))))) +} + +func Xctime(tls *TLS, t uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v, (%v:)", tls, t, origin(2)) + defer func() { trc("-> %v", r) }() + } + var tm uintptr + _ = tm + tm = Xlocaltime(tls, t) + if !(tm != 0) { + return uintptr(0) + } + return Xasctime(tls, tm) +} + +func Xctime_r(tls *TLS, t uintptr, buf uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v buf=%v, (%v:)", tls, t, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var tm_p, v1 uintptr + var _ /* tm at bp+0 */ Ttm + _, _ = tm_p, v1 + tm_p = Xlocaltime_r(tls, t, bp) + if tm_p != 0 { + v1 = Xasctime_r(tls, tm_p, buf) + } else { + v1 = uintptr(0) + } + return v1 +} + +func Xdifftime(tls *TLS, t1 Ttime_t, t0 Ttime_t) (r float64) { + if __ccgo_strace { + trc("tls=%v t1=%v t0=%v, (%v:)", tls, t1, t0, origin(2)) + defer func() { trc("-> %v", r) }() + } + return float64(t1 - t0) +} + +type Ttimeb = struct { + Ftime Ttime_t + Fmillitm uint16 + Ftimezone int16 + Fdstflag int16 +} + +func Xftime(tls *TLS, tp uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v tp=%v, (%v:)", tls, tp, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 int16 + var _ /* ts at bp+0 */ Ttimespec + _ = v1 + Xclock_gettime(tls, CLOCK_REALTIME, bp) + (*Ttimeb)(unsafe.Pointer(tp)).Ftime = (**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec + (*Ttimeb)(unsafe.Pointer(tp)).Fmillitm = Uint16FromInt64((**(**Ttimespec)(__ccgo_up(bp))).Ftv_nsec / int64(1000000)) + v1 = Int16FromInt32(0) + (*Ttimeb)(unsafe.Pointer(tp)).Fdstflag = v1 + (*Ttimeb)(unsafe.Pointer(tp)).Ftimezone = v1 + return 0 +} + +func Xgetdate(tls *TLS, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(112) + defer tls.Free(112) + var datemsk, f, p, ret uintptr + var _ /* cs at bp+100 */ int32 + var _ /* fmt at bp+0 */ [100]uint8 + _, _, _, _ = datemsk, f, p, ret + ret = uintptr(0) + datemsk = Xgetenv(tls, __ccgo_ts+1839) + f = uintptr(0) + _pthread_setcancelstate(tls, PTHREAD_CANCEL_DEFERRED, bp+100) + if !(datemsk != 0) { + Xgetdate_err = int32(1) + goto out + } + f = Xfopen(tls, datemsk, __ccgo_ts+315) + if !(f != 0) { + if **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(ENOMEM) { + Xgetdate_err = int32(6) + } else { + Xgetdate_err = int32(2) + } + goto out + } + for Xfgets(tls, bp, int32(100), f) != 0 { + p = Xstrptime(tls, s, bp, uintptr(unsafe.Pointer(&_tmbuf))) + if p != 0 && !(**(**uint8)(__ccgo_up(p)) != 0) { + ret = uintptr(unsafe.Pointer(&_tmbuf)) + goto out + } + } + if Xferror(tls, f) != 0 { + Xgetdate_err = int32(5) + } else { + Xgetdate_err = int32(7) + } + goto out +out: + ; + if f != 0 { + Xfclose(tls, f) + } + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 100)), uintptr(0)) + return ret +} + +var _tmbuf Ttm + +func Xgettimeofday(tls *TLS, tv uintptr, tz uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v tv=%v tz=%v, (%v:)", tls, tv, tz, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* ts at bp+0 */ Ttimespec + if !(tv != 0) { + return 0 + } + Xclock_gettime(tls, CLOCK_REALTIME, bp) + (*Ttimeval)(unsafe.Pointer(tv)).Ftv_sec = (**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec + (*Ttimeval)(unsafe.Pointer(tv)).Ftv_usec = int64(int32((**(**Ttimespec)(__ccgo_up(bp))).Ftv_nsec) / int32(1000)) + return 0 +} + +func Xgmtime(tls *TLS, t uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v, (%v:)", tls, t, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__gmtime_r(tls, t, uintptr(unsafe.Pointer(&_tm))) +} + +var _tm Ttm + +func X__gmtime_r(tls *TLS, t uintptr, tm uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v tm=%v, (%v:)", tls, t, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + if X__secs_to_tm(tls, int64(**(**Ttime_t)(__ccgo_up(t))), tm) < 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOVERFLOW) + return uintptr(0) + } + (*Ttm)(unsafe.Pointer(tm)).Ftm_isdst = 0 + (*Ttm)(unsafe.Pointer(tm)).F__tm_gmtoff = 0 + (*Ttm)(unsafe.Pointer(tm)).F__tm_zone = uintptr(unsafe.Pointer(&X__utc)) + return tm +} + +func Xgmtime_r(tls *TLS, t uintptr, tm uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v tm=%v, (%v:)", tls, t, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__gmtime_r(tls, t, tm) +} + +func Xlocaltime(tls *TLS, t uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v, (%v:)", tls, t, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__localtime_r(tls, t, uintptr(unsafe.Pointer(&_tm1))) +} + +var _tm1 Ttm + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func X__localtime_r(tls *TLS, t uintptr, tm uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v tm=%v, (%v:)", tls, t, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + /* Reject time_t values whose year would overflow int because + * __secs_to_zone cannot safely handle them. */ + if int64(**(**Ttime_t)(__ccgo_up(t))) < int64(-Int32FromInt32(1)-Int32FromInt32(0x7fffffff))*Int64FromInt64(31622400) || int64(**(**Ttime_t)(__ccgo_up(t))) > Int64FromInt32(INT_MAX)*Int64FromInt64(31622400) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOVERFLOW) + return uintptr(0) + } + X__secs_to_zone(tls, int64(**(**Ttime_t)(__ccgo_up(t))), 0, tm+32, tm+40, uintptr(0), tm+48) + if X__secs_to_tm(tls, int64(**(**Ttime_t)(__ccgo_up(t)))+(*Ttm)(unsafe.Pointer(tm)).F__tm_gmtoff, tm) < 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOVERFLOW) + return uintptr(0) + } + return tm +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xlocaltime_r(tls *TLS, t uintptr, tm uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v tm=%v, (%v:)", tls, t, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__localtime_r(tls, t, tm) +} + +func Xmktime(tls *TLS, tm uintptr) (r Ttime_t) { + if __ccgo_strace { + trc("tls=%v tm=%v, (%v:)", tls, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var t int64 + var _ /* new at bp+0 */ Ttm + var _ /* opp at bp+56 */ int64 + _ = t + t = X__tm_to_secs(tls, tm) + X__secs_to_zone(tls, t, int32(1), bp+32, bp+40, bp+56, bp+48) + if (*Ttm)(unsafe.Pointer(tm)).Ftm_isdst >= 0 && (**(**Ttm)(__ccgo_up(bp))).Ftm_isdst != (*Ttm)(unsafe.Pointer(tm)).Ftm_isdst { + t = t - int64(**(**int64)(__ccgo_up(bp + 56))-(**(**Ttm)(__ccgo_up(bp))).F__tm_gmtoff) + } + t = t - int64((**(**Ttm)(__ccgo_up(bp))).F__tm_gmtoff) + if t != t { + goto error + } + X__secs_to_zone(tls, t, 0, bp+32, bp+40, bp+56, bp+48) + if X__secs_to_tm(tls, t+int64((**(**Ttm)(__ccgo_up(bp))).F__tm_gmtoff), bp) < 0 { + goto error + } + **(**Ttm)(__ccgo_up(tm)) = **(**Ttm)(__ccgo_up(bp)) + return t + goto error +error: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOVERFLOW) + return int64(-int32(1)) +} + +func Xnanosleep(tls *TLS, req uintptr, rem uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v req=%v rem=%v, (%v:)", tls, req, rem, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt32(-X__clock_nanosleep(tls, CLOCK_REALTIME, 0, req, rem)))) +} + +func _is_leap(tls *TLS, y int32) (r int32) { + /* Avoid overflow */ + if y > Int32FromInt32(INT_MAX)-Int32FromInt32(1900) { + y = y - int32(2000) + } + y = y + int32(1900) + return BoolInt32(!(y%Int32FromInt32(4) != 0) && (y%int32(100) != 0 || !(y%Int32FromInt32(400) != 0))) +} + +func _week_num(tls *TLS, tm uintptr) (r int32) { + var dec31, jan1, val int32 + _, _, _ = dec31, jan1, val + val = Int32FromUint32((Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_yday) + uint32(7) - (Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_wday)+uint32(6))%uint32(7)) / uint32(7)) + /* If 1 Jan is just 1-3 days past Monday, + * the previous week is also in this year. */ + if (Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_wday)+uint32(371)-Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_yday)-uint32(2))%uint32(7) <= uint32(2) { + val = val + 1 + } + if !(val != 0) { + val = int32(52) + /* If 31 December of prev year a Thursday, + * or Friday of a leap year, then the + * prev year has 53 weeks. */ + dec31 = Int32FromUint32((Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_wday) + uint32(7) - Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_yday) - uint32(1)) % uint32(7)) + if dec31 == int32(4) || dec31 == int32(5) && _is_leap(tls, (*Ttm)(unsafe.Pointer(tm)).Ftm_year%int32(400)-int32(1)) != 0 { + val = val + 1 + } + } else { + if val == int32(53) { + /* If 1 January is not a Thursday, and not + * a Wednesday of a leap year, then this + * year has only 52 weeks. */ + jan1 = Int32FromUint32((Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_wday) + uint32(371) - Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_yday)) % uint32(7)) + if jan1 != int32(4) && (jan1 != int32(3) || !(_is_leap(tls, (*Ttm)(unsafe.Pointer(tm)).Ftm_year) != 0)) { + val = int32(1) + } + } + } + return val +} + +func X__strftime_fmt_1(tls *TLS, s uintptr, l uintptr, f int32, tm uintptr, loc Tlocale_t, pad int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v l=%v f=%v tm=%v loc=%v pad=%v, (%v:)", tls, s, l, f, tm, loc, pad, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var d, fmt, v4, v5 uintptr + var def_pad, width, v1 int32 + var item Tnl_item + var val int64 + _, _, _, _, _, _, _, _, _ = d, def_pad, fmt, item, val, width, v1, v4, v5 + fmt = __ccgo_ts + 1701 + width = int32(2) + def_pad = int32('0') + switch f { + case int32('a'): + if Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_wday) > uint32(6) { + goto string + } + item = int32(ABDAY_1) + (*Ttm)(unsafe.Pointer(tm)).Ftm_wday + goto nl_strcat + case int32('A'): + if Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_wday) > uint32(6) { + goto string + } + item = int32(DAY_1) + (*Ttm)(unsafe.Pointer(tm)).Ftm_wday + goto nl_strcat + case int32('h'): + fallthrough + case int32('b'): + if Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_mon) > uint32(11) { + goto string + } + item = int32(ABMON_1) + (*Ttm)(unsafe.Pointer(tm)).Ftm_mon + goto nl_strcat + case int32('B'): + if Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_mon) > uint32(11) { + goto string + } + item = int32(MON_1) + (*Ttm)(unsafe.Pointer(tm)).Ftm_mon + goto nl_strcat + case int32('c'): + item = int32(D_T_FMT) + goto nl_strftime + case int32('C'): + val = (int64(1900) + int64((*Ttm)(unsafe.Pointer(tm)).Ftm_year)) / int64(100) + goto number + case int32('e'): + def_pad = int32('_') + fallthrough + case int32('d'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_mday) + goto number + case int32('D'): + fmt = __ccgo_ts + 1847 + goto recu_strftime + case int32('F'): + fmt = __ccgo_ts + 1856 + goto recu_strftime + case int32('g'): + fallthrough + case int32('G'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_year) + int64(1900) + if (*Ttm)(unsafe.Pointer(tm)).Ftm_yday < int32(3) && _week_num(tls, tm) != int32(1) { + val = val - 1 + } else { + if (*Ttm)(unsafe.Pointer(tm)).Ftm_yday > int32(360) && _week_num(tls, tm) == int32(1) { + val = val + 1 + } + } + if f == int32('g') { + val = val % int64(100) + } else { + width = int32(4) + } + goto number + case int32('H'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_hour) + goto number + case int32('l'): + def_pad = int32('_') + fallthrough + case int32('I'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_hour) + if !(val != 0) { + val = int64(12) + } else { + if val > int64(12) { + val = val - int64(12) + } + } + goto number + case int32('j'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_yday + int32(1)) + width = int32(3) + goto number + case int32('k'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_hour) + def_pad = int32('_') + goto number + case int32('m'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_mon + int32(1)) + goto number + case int32('M'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_min) + goto number + case int32('n'): + **(**Tsize_t)(__ccgo_up(l)) = uint64(1) + return __ccgo_ts + 301 + case int32('p'): + if (*Ttm)(unsafe.Pointer(tm)).Ftm_hour >= int32(12) { + v1 = int32(PM_STR) + } else { + v1 = int32(AM_STR) + } + item = v1 + goto nl_strcat + case int32('P'): + if (*Ttm)(unsafe.Pointer(tm)).Ftm_hour >= int32(12) { + v1 = int32(PM_STR) + } else { + v1 = int32(AM_STR) + } + item = v1 + fmt = X__nl_langinfo_l(tls, item, loc) + d = s + **(**Tsize_t)(__ccgo_up(l)) = uint64(0) + for { + if !(**(**uint8)(__ccgo_up(fmt)) != 0) { + break + } + v4 = d + d = d + 1 + v5 = fmt + fmt = fmt + 1 + **(**uint8)(__ccgo_up(v4)) = Uint8FromInt32(Xtolower(tls, Int32FromUint8(**(**uint8)(__ccgo_up(v5))))) + goto _3 + _3: + ; + **(**Tsize_t)(__ccgo_up(l)) = **(**Tsize_t)(__ccgo_up(l)) + 1 + } + return s + case int32('r'): + item = int32(T_FMT_AMPM) + goto nl_strftime + case int32('R'): + fmt = __ccgo_ts + 1865 + goto recu_strftime + case int32('s'): + val = X__tm_to_secs(tls, tm) - (*Ttm)(unsafe.Pointer(tm)).F__tm_gmtoff + width = int32(1) + goto number + case int32('S'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_sec) + goto number + case int32('t'): + **(**Tsize_t)(__ccgo_up(l)) = uint64(1) + return __ccgo_ts + 1439 + case int32('T'): + fmt = __ccgo_ts + 1871 + goto recu_strftime + case int32('u'): + if (*Ttm)(unsafe.Pointer(tm)).Ftm_wday != 0 { + v1 = (*Ttm)(unsafe.Pointer(tm)).Ftm_wday + } else { + v1 = int32(7) + } + val = int64(v1) + width = int32(1) + goto number + case int32('U'): + val = Int64FromUint32((Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_yday) + uint32(7) - Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_wday)) / uint32(7)) + goto number + case int32('W'): + val = Int64FromUint32((Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_yday) + uint32(7) - (Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_wday)+uint32(6))%uint32(7)) / uint32(7)) + goto number + case int32('V'): + val = int64(_week_num(tls, tm)) + goto number + case int32('w'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_wday) + width = int32(1) + goto number + case int32('x'): + item = int32(D_FMT) + goto nl_strftime + case int32('X'): + item = int32(T_FMT) + goto nl_strftime + case int32('y'): + val = (int64((*Ttm)(unsafe.Pointer(tm)).Ftm_year) + int64(1900)) % int64(100) + if val < 0 { + val = -val + } + goto number + case int32('Y'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_year) + int64(1900) + if val >= int64(10000) { + **(**Tsize_t)(__ccgo_up(l)) = Uint64FromInt32(Xsnprintf(tls, s, uint64(100), __ccgo_ts+1880, VaList(bp+8, val))) + return s + } + width = int32(4) + goto number + case int32('z'): + if (*Ttm)(unsafe.Pointer(tm)).Ftm_isdst < 0 { + **(**Tsize_t)(__ccgo_up(l)) = uint64(0) + return __ccgo_ts + } + **(**Tsize_t)(__ccgo_up(l)) = Uint64FromInt32(Xsnprintf(tls, s, uint64(100), __ccgo_ts+1886, VaList(bp+8, (*Ttm)(unsafe.Pointer(tm)).F__tm_gmtoff/int64(3600)*int64(100)+(*Ttm)(unsafe.Pointer(tm)).F__tm_gmtoff%int64(3600)/int64(60)))) + return s + case int32('Z'): + if (*Ttm)(unsafe.Pointer(tm)).Ftm_isdst < 0 { + **(**Tsize_t)(__ccgo_up(l)) = uint64(0) + return __ccgo_ts + } + fmt = X__tm_to_tzname(tls, tm) + goto string + case int32('%'): + **(**Tsize_t)(__ccgo_up(l)) = uint64(1) + return __ccgo_ts + 446 + default: + return uintptr(0) + } + goto number +number: + ; + if pad != 0 { + v1 = pad + } else { + v1 = def_pad + } + switch v1 { + case int32('-'): + **(**Tsize_t)(__ccgo_up(l)) = Uint64FromInt32(Xsnprintf(tls, s, uint64(100), __ccgo_ts+1893, VaList(bp+8, val))) + case int32('_'): + **(**Tsize_t)(__ccgo_up(l)) = Uint64FromInt32(Xsnprintf(tls, s, uint64(100), __ccgo_ts+1898, VaList(bp+8, width, val))) + case int32('0'): + fallthrough + default: + **(**Tsize_t)(__ccgo_up(l)) = Uint64FromInt32(Xsnprintf(tls, s, uint64(100), __ccgo_ts+1904, VaList(bp+8, width, val))) + break + } + return s + goto nl_strcat +nl_strcat: + ; + fmt = X__nl_langinfo_l(tls, item, loc) + goto string +string: + ; + **(**Tsize_t)(__ccgo_up(l)) = _strlen(tls, fmt) + return fmt + goto nl_strftime +nl_strftime: + ; + fmt = X__nl_langinfo_l(tls, item, loc) + goto recu_strftime +recu_strftime: + ; + **(**Tsize_t)(__ccgo_up(l)) = X__strftime_l(tls, s, uint64(100), fmt, tm, loc) + if !(**(**Tsize_t)(__ccgo_up(l)) != 0) { + return uintptr(0) + } + return s +} + +func X__strftime_l(tls *TLS, s uintptr, n Tsize_t, f uintptr, tm uintptr, loc Tlocale_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v f=%v tm=%v loc=%v, (%v:)", tls, s, n, f, tm, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(128) + defer tls.Free(128) + var d, l, v2 Tsize_t + var pad, plus, v4 int32 + var t, v3 uintptr + var width uint64 + var v9 bool + var _ /* buf at bp+8 */ [100]uint8 + var _ /* k at bp+0 */ Tsize_t + var _ /* p at bp+112 */ uintptr + _, _, _, _, _, _, _, _, _, _ = d, l, pad, plus, t, width, v2, v3, v4, v9 + l = uint64(0) + for { + if !(l < n) { + break + } + if !(**(**uint8)(__ccgo_up(f)) != 0) { + **(**uint8)(__ccgo_up(s + uintptr(l))) = uint8(0) + return l + } + if Int32FromUint8(**(**uint8)(__ccgo_up(f))) != int32('%') { + v2 = l + l = l + 1 + **(**uint8)(__ccgo_up(s + uintptr(v2))) = **(**uint8)(__ccgo_up(f)) + goto _1 + } + f = f + 1 + pad = 0 + if Int32FromUint8(**(**uint8)(__ccgo_up(f))) == int32('-') || Int32FromUint8(**(**uint8)(__ccgo_up(f))) == int32('_') || Int32FromUint8(**(**uint8)(__ccgo_up(f))) == int32('0') { + v3 = f + f = f + 1 + pad = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } + v4 = BoolInt32(Int32FromUint8(**(**uint8)(__ccgo_up(f))) == Int32FromUint8('+')) + plus = v4 + if v4 != 0 { + f = f + 1 + } + if BoolInt32(uint32(**(**uint8)(__ccgo_up(f)))-uint32('0') < uint32(10)) != 0 { + width = Xstrtoul(tls, f, bp+112, int32(10)) + } else { + width = uint64(0) + **(**uintptr)(__ccgo_up(bp + 112)) = f + } + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 112))))) == int32('C') || Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 112))))) == int32('F') || Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 112))))) == int32('G') || Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 112))))) == int32('Y') { + if !(width != 0) && **(**uintptr)(__ccgo_up(bp + 112)) != f { + width = uint64(1) + } + } else { + width = uint64(0) + } + f = **(**uintptr)(__ccgo_up(bp + 112)) + if Int32FromUint8(**(**uint8)(__ccgo_up(f))) == int32('E') || Int32FromUint8(**(**uint8)(__ccgo_up(f))) == int32('O') { + f = f + 1 + } + t = X__strftime_fmt_1(tls, bp+8, bp, Int32FromUint8(**(**uint8)(__ccgo_up(f))), tm, loc, pad) + if !(t != 0) { + break + } + if width != 0 { + /* Trim off any sign and leading zeros, then + * count remaining digits to determine behavior + * for the + flag. */ + if Int32FromUint8(**(**uint8)(__ccgo_up(t))) == int32('+') || Int32FromUint8(**(**uint8)(__ccgo_up(t))) == int32('-') { + t = t + 1 + **(**Tsize_t)(__ccgo_up(bp)) = **(**Tsize_t)(__ccgo_up(bp)) - 1 + } + for { + if !(Int32FromUint8(**(**uint8)(__ccgo_up(t))) == int32('0') && Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(t + 1)))-int32('0')) < uint32(10)) { + break + } + goto _5 + _5: + ; + t = t + 1 + **(**Tsize_t)(__ccgo_up(bp)) = **(**Tsize_t)(__ccgo_up(bp)) - 1 + } + if width < **(**Tsize_t)(__ccgo_up(bp)) { + width = **(**Tsize_t)(__ccgo_up(bp)) + } + d = uint64(0) + for { + if !(Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(t + uintptr(d))))-int32('0')) < uint32(10)) { + break + } + goto _6 + _6: + ; + d = d + 1 + } + if (*Ttm)(unsafe.Pointer(tm)).Ftm_year < -int32(1900) { + v2 = l + l = l + 1 + **(**uint8)(__ccgo_up(s + uintptr(v2))) = uint8('-') + width = width - 1 + } else { + if v9 = plus != 0; v9 { + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 112))))) == int32('C') { + v4 = int32(3) + } else { + v4 = int32(5) + } + } + if v9 && d+(width-**(**Tsize_t)(__ccgo_up(bp))) >= Uint64FromInt32(v4) { + v2 = l + l = l + 1 + **(**uint8)(__ccgo_up(s + uintptr(v2))) = uint8('+') + width = width - 1 + } + } + for { + if !(width > **(**Tsize_t)(__ccgo_up(bp)) && l < n) { + break + } + v2 = l + l = l + 1 + **(**uint8)(__ccgo_up(s + uintptr(v2))) = uint8('0') + goto _11 + _11: + ; + width = width - 1 + } + } + if **(**Tsize_t)(__ccgo_up(bp)) > n-l { + **(**Tsize_t)(__ccgo_up(bp)) = n - l + } + Xmemcpy(tls, s+uintptr(l), t, **(**Tsize_t)(__ccgo_up(bp))) + l = l + **(**Tsize_t)(__ccgo_up(bp)) + goto _1 + _1: + ; + f = f + 1 + } + if n != 0 { + if l == n { + l = n - uint64(1) + } + **(**uint8)(__ccgo_up(s + uintptr(l))) = uint8(0) + } + return uint64(0) +} + +func Xstrftime(tls *TLS, s uintptr, n Tsize_t, f uintptr, tm uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v f=%v tm=%v, (%v:)", tls, s, n, f, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__strftime_l(tls, s, n, f, tm, (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale) +} + +func Xstrftime_l(tls *TLS, s uintptr, n Tsize_t, f uintptr, tm uintptr, loc Tlocale_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v f=%v tm=%v loc=%v, (%v:)", tls, s, n, f, tm, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__strftime_l(tls, s, n, f, tm, loc) +} + +func Xstrptime(tls *TLS, s uintptr, f uintptr, tm uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v f=%v tm=%v, (%v:)", tls, s, f, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var adj, i, min, neg, range1, w, want_century, v1, v2, v5, v6 int32 + var dest, ex, v9 uintptr + var len1 Tsize_t + var v8 bool + var _ /* century at bp+4 */ int32 + var _ /* dummy at bp+0 */ int32 + var _ /* new_f at bp+16 */ uintptr + var _ /* relyear at bp+8 */ int32 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = adj, dest, ex, i, len1, min, neg, range1, w, want_century, v1, v2, v5, v6, v8, v9 + want_century = 0 + **(**int32)(__ccgo_up(bp + 4)) = 0 + **(**int32)(__ccgo_up(bp + 8)) = 0 + for **(**uint8)(__ccgo_up(f)) != 0 { + if Int32FromUint8(**(**uint8)(__ccgo_up(f))) != int32('%') { + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(f))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _3 + _3: + if v2 != 0 { + for { + if v8 = **(**uint8)(__ccgo_up(s)) != 0; v8 { + v5 = Int32FromUint8(**(**uint8)(__ccgo_up(s))) + v6 = BoolInt32(v5 == int32(' ') || Uint32FromInt32(v5)-uint32('\t') < uint32(5)) + goto _7 + _7: + } + if !(v8 && v6 != 0) { + break + } + goto _4 + _4: + ; + s = s + 1 + } + } else { + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) != Int32FromUint8(**(**uint8)(__ccgo_up(f))) { + return uintptr(0) + } else { + s = s + 1 + } + } + f = f + 1 + continue + } + f = f + 1 + if Int32FromUint8(**(**uint8)(__ccgo_up(f))) == int32('+') { + f = f + 1 + } + if BoolInt32(uint32(**(**uint8)(__ccgo_up(f)))-uint32('0') < uint32(10)) != 0 { + w = Int32FromUint64(Xstrtoul(tls, f, bp+16, int32(10))) + f = **(**uintptr)(__ccgo_up(bp + 16)) + } else { + w = -int32(1) + } + adj = 0 + v9 = f + f = f + 1 + switch Int32FromUint8(**(**uint8)(__ccgo_up(v9))) { + case int32('A'): + goto _10 + case int32('a'): + goto _11 + case int32('h'): + goto _12 + case int32('B'): + goto _13 + case int32('b'): + goto _14 + case int32('c'): + goto _15 + case int32('C'): + goto _16 + case int32('e'): + goto _17 + case int32('d'): + goto _18 + case int32('D'): + goto _19 + case int32('H'): + goto _20 + case int32('I'): + goto _21 + case int32('j'): + goto _22 + case int32('m'): + goto _23 + case int32('M'): + goto _24 + case int32('t'): + goto _25 + case int32('n'): + goto _26 + case int32('p'): + goto _27 + case int32('r'): + goto _28 + case int32('R'): + goto _29 + case int32('S'): + goto _30 + case int32('T'): + goto _31 + case int32('W'): + goto _32 + case int32('U'): + goto _33 + case int32('w'): + goto _34 + case int32('x'): + goto _35 + case int32('X'): + goto _36 + case int32('y'): + goto _37 + case int32('Y'): + goto _38 + case int32('%'): + goto _39 + default: + goto _40 + } + goto _41 + _11: + ; + _10: + ; + dest = tm + 24 + min = int32(ABDAY_1) + range1 = int32(7) + goto symbolic_range + _14: + ; + _13: + ; + _12: + ; + dest = tm + 16 + min = int32(ABMON_1) + range1 = int32(12) + goto symbolic_range + _15: + ; + s = Xstrptime(tls, s, Xnl_langinfo(tls, int32(D_T_FMT)), tm) + if !(s != 0) { + return uintptr(0) + } + goto _41 + _16: + ; + dest = bp + 4 + if w < 0 { + w = int32(2) + } + want_century = want_century | int32(2) + goto numeric_digits + _18: + ; + _17: + ; + dest = tm + 12 + min = int32(1) + range1 = int32(31) + goto numeric_range + _19: + ; + s = Xstrptime(tls, s, __ccgo_ts+1847, tm) + if !(s != 0) { + return uintptr(0) + } + goto _41 + _20: + ; + dest = tm + 8 + min = 0 + range1 = int32(24) + goto numeric_range + _21: + ; + dest = tm + 8 + min = int32(1) + range1 = int32(12) + goto numeric_range + _22: + ; + dest = tm + 28 + min = int32(1) + range1 = int32(366) + adj = int32(1) + goto numeric_range + _23: + ; + dest = tm + 16 + min = int32(1) + range1 = int32(12) + adj = int32(1) + goto numeric_range + _24: + ; + dest = tm + 4 + min = 0 + range1 = int32(60) + goto numeric_range + _26: + ; + _25: + ; + _44: + ; + if v8 = **(**uint8)(__ccgo_up(s)) != 0; v8 { + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(s))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _47 + _47: + } + if !(v8 && v2 != 0) { + goto _42 + } + goto _43 + _43: + ; + s = s + 1 + goto _44 + goto _42 + _42: + ; + goto _41 + _27: + ; + ex = Xnl_langinfo(tls, int32(AM_STR)) + len1 = _strlen(tls, ex) + if !(Xstrncasecmp(tls, s, ex, len1) != 0) { + **(**int32)(__ccgo_up(tm + 8)) %= int32(12) + s = s + uintptr(len1) + goto _41 + } + ex = Xnl_langinfo(tls, int32(PM_STR)) + len1 = _strlen(tls, ex) + if !(Xstrncasecmp(tls, s, ex, len1) != 0) { + **(**int32)(__ccgo_up(tm + 8)) %= int32(12) + **(**int32)(__ccgo_up(tm + 8)) += int32(12) + s = s + uintptr(len1) + goto _41 + } + return uintptr(0) + _28: + ; + s = Xstrptime(tls, s, Xnl_langinfo(tls, int32(T_FMT_AMPM)), tm) + if !(s != 0) { + return uintptr(0) + } + goto _41 + _29: + ; + s = Xstrptime(tls, s, __ccgo_ts+1865, tm) + if !(s != 0) { + return uintptr(0) + } + goto _41 + _30: + ; + dest = tm + min = 0 + range1 = int32(61) + goto numeric_range + _31: + ; + s = Xstrptime(tls, s, __ccgo_ts+1871, tm) + if !(s != 0) { + return uintptr(0) + } + goto _41 + _33: + ; + _32: + ; + /* Throw away result, for now. (FIXME?) */ + dest = bp + min = 0 + range1 = int32(54) + goto numeric_range + _34: + ; + dest = tm + 24 + min = 0 + range1 = int32(7) + goto numeric_range + _35: + ; + s = Xstrptime(tls, s, Xnl_langinfo(tls, int32(D_FMT)), tm) + if !(s != 0) { + return uintptr(0) + } + goto _41 + _36: + ; + s = Xstrptime(tls, s, Xnl_langinfo(tls, int32(T_FMT)), tm) + if !(s != 0) { + return uintptr(0) + } + goto _41 + _37: + ; + dest = bp + 8 + w = int32(2) + want_century = want_century | int32(1) + goto numeric_digits + _38: + ; + dest = tm + 20 + if w < 0 { + w = int32(4) + } + adj = int32(1900) + want_century = 0 + goto numeric_digits + _39: + ; + v9 = s + s = s + 1 + if Int32FromUint8(**(**uint8)(__ccgo_up(v9))) != int32('%') { + return uintptr(0) + } + goto _41 + _40: + ; + return uintptr(0) + goto numeric_range + numeric_range: + ; + if !(BoolInt32(uint32(**(**uint8)(__ccgo_up(s)))-Uint32FromUint8('0') < Uint32FromInt32(10)) != 0) { + return uintptr(0) + } + **(**int32)(__ccgo_up(dest)) = 0 + i = int32(1) + for { + if !(i <= min+range1 && BoolInt32(uint32(**(**uint8)(__ccgo_up(s)))-uint32('0') < uint32(10)) != 0) { + break + } + v9 = s + s = s + 1 + **(**int32)(__ccgo_up(dest)) = **(**int32)(__ccgo_up(dest))*int32(10) + Int32FromUint8(**(**uint8)(__ccgo_up(v9))) - int32('0') + goto _50 + _50: + ; + i = i * int32(10) + } + if Uint32FromInt32(**(**int32)(__ccgo_up(dest))-min) >= Uint32FromInt32(range1) { + return uintptr(0) + } + **(**int32)(__ccgo_up(dest)) -= adj + switch int64(dest) - int64(tm) { + case Int64FromUint64(uint64(UintptrFromInt32(0) + 28)): + } + goto update + goto numeric_digits + numeric_digits: + ; + neg = 0 + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('+') { + s = s + 1 + } else { + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('-') { + neg = int32(1) + s = s + 1 + } + } + if !(BoolInt32(uint32(**(**uint8)(__ccgo_up(s)))-Uint32FromUint8('0') < Uint32FromInt32(10)) != 0) { + return uintptr(0) + } + v1 = Int32FromInt32(0) + i = v1 + **(**int32)(__ccgo_up(dest)) = v1 + for { + if !(i < w && BoolInt32(uint32(**(**uint8)(__ccgo_up(s)))-uint32('0') < uint32(10)) != 0) { + break + } + v9 = s + s = s + 1 + **(**int32)(__ccgo_up(dest)) = **(**int32)(__ccgo_up(dest))*int32(10) + Int32FromUint8(**(**uint8)(__ccgo_up(v9))) - int32('0') + goto _52 + _52: + ; + i = i + 1 + } + if neg != 0 { + **(**int32)(__ccgo_up(dest)) = -**(**int32)(__ccgo_up(dest)) + } + **(**int32)(__ccgo_up(dest)) -= adj + goto update + goto symbolic_range + symbolic_range: + ; + i = int32(2)*range1 - int32(1) + for { + if !(i >= 0) { + break + } + ex = Xnl_langinfo(tls, min+i) + len1 = _strlen(tls, ex) + if Xstrncasecmp(tls, s, ex, len1) != 0 { + goto _55 + } + s = s + uintptr(len1) + **(**int32)(__ccgo_up(dest)) = i % range1 + break + goto _55 + _55: + ; + i = i - 1 + } + if i < 0 { + return uintptr(0) + } + goto update + goto update + update: + ; + //FIXME + _41: + } + if want_century != 0 { + (*Ttm)(unsafe.Pointer(tm)).Ftm_year = **(**int32)(__ccgo_up(bp + 8)) + if want_century&int32(2) != 0 { + **(**int32)(__ccgo_up(tm + 20)) += **(**int32)(__ccgo_up(bp + 4))*int32(100) - int32(1900) + } else { + if (*Ttm)(unsafe.Pointer(tm)).Ftm_year <= int32(68) { + **(**int32)(__ccgo_up(tm + 20)) += int32(100) + } + } + } + return s +} + +func Xtime(tls *TLS, t uintptr) (r Ttime_t) { + if __ccgo_strace { + trc("tls=%v t=%v, (%v:)", tls, t, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* ts at bp+0 */ Ttimespec + X__clock_gettime(tls, CLOCK_REALTIME, bp) + if t != 0 { + **(**Ttime_t)(__ccgo_up(t)) = (**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec + } + return (**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec +} + +func Xtimegm(tls *TLS, tm uintptr) (r Ttime_t) { + if __ccgo_strace { + trc("tls=%v tm=%v, (%v:)", tls, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var t int64 + var _ /* new at bp+0 */ Ttm1 + _ = t + t = X__tm_to_secs(tls, tm) + if X__secs_to_tm(tls, t, bp) < 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOVERFLOW) + return int64(-int32(1)) + } + **(**Ttm1)(__ccgo_up(tm)) = **(**Ttm1)(__ccgo_up(bp)) + (*Ttm1)(unsafe.Pointer(tm)).Ftm_isdst = 0 + (*Ttm1)(unsafe.Pointer(tm)).Ftm_gmtoff = 0 + (*Ttm1)(unsafe.Pointer(tm)).Ftm_zone = uintptr(unsafe.Pointer(&X__utc)) + return t +} + +func Xtimer_delete(tls *TLS, t Ttimer_t) (r int32) { + if __ccgo_strace { + trc("tls=%v t=%v, (%v:)", tls, t, origin(2)) + defer func() { trc("-> %v", r) }() + } + var td Tpthread_t + _ = td + if int64(t) < 0 { + td = uintptr(uint64(t) << Int32FromInt32(1)) + // __asm__ __volatile__ ("fence rw,rw" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+353, __ccgo_ts+388, 4, __ccgo_ts+1911) + AtomicStorePInt32(td+148, AtomicLoadPInt32(td+148)|(-Int32FromInt32(1)-Int32FromInt32(0x7fffffff))) + // __asm__ __volatile__ ("fence rw,rw" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+353, __ccgo_ts+388, 4, __ccgo_ts+1911) + X__syscall2(tls, int64(SYS_tkill), int64((*t__pthread)(unsafe.Pointer(td)).Ftid), int64(Int32FromInt32(SIGTIMER))) + return 0 + } + return int32(X__syscall1(tls, int64(SYS_timer_delete), int64(t))) +} + +func Xtimer_getoverrun(tls *TLS, t Ttimer_t) (r int32) { + if __ccgo_strace { + trc("tls=%v t=%v, (%v:)", tls, t, origin(2)) + defer func() { trc("-> %v", r) }() + } + var td Tpthread_t + _ = td + if int64(t) < 0 { + td = uintptr(uint64(t) << Int32FromInt32(1)) + t = uintptr(Uint64FromInt32(AtomicLoadPInt32(td+148) & Int32FromInt32(INT_MAX))) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_timer_getoverrun), int64(t))))) +} + +func Xtimer_gettime(tls *TLS, t Ttimer_t, val uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v t=%v val=%v, (%v:)", tls, t, val, origin(2)) + defer func() { trc("-> %v", r) }() + } + var td Tpthread_t + _ = td + if int64(t) < 0 { + td = uintptr(uint64(t) << Int32FromInt32(1)) + t = uintptr(Uint64FromInt32(AtomicLoadPInt32(td+148) & Int32FromInt32(INT_MAX))) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_timer_gettime), int64(t), int64(val))))) +} + +func Xtimer_settime(tls *TLS, t Ttimer_t, flags int32, val uintptr, old uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v t=%v flags=%v val=%v old=%v, (%v:)", tls, t, flags, val, old, origin(2)) + defer func() { trc("-> %v", r) }() + } + var td Tpthread_t + _ = td + if int64(t) < 0 { + td = uintptr(uint64(t) << Int32FromInt32(1)) + t = uintptr(Uint64FromInt32(AtomicLoadPInt32(td+148) & Int32FromInt32(INT_MAX))) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_timer_settime), int64(t), int64(flags), int64(val), int64(old))))) +} + +type Ttms = struct { + Ftms_utime Tclock_t + Ftms_stime Tclock_t + Ftms_cutime Tclock_t + Ftms_cstime Tclock_t +} + +func Xtimes(tls *TLS, tms uintptr) (r Tclock_t) { + if __ccgo_strace { + trc("tls=%v tms=%v, (%v:)", tls, tms, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall1(tls, int64(SYS_times), int64(tms)) +} + +// C documentation +// +// /* There is no other implemented value than TIME_UTC; all other values +// * are considered erroneous. */ +func Xtimespec_get(tls *TLS, ts uintptr, base int32) (r int32) { + if __ccgo_strace { + trc("tls=%v ts=%v base=%v, (%v:)", tls, ts, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret, v1 int32 + _, _ = ret, v1 + if base != int32(TIME_UTC) { + return 0 + } + ret = X__clock_gettime(tls, CLOCK_REALTIME, ts) + if ret < 0 { + v1 = 0 + } else { + v1 = base + } + return v1 +} + +type Tutimbuf = struct { + Factime Ttime_t + Fmodtime Ttime_t +} + +func Xutime(tls *TLS, path uintptr, times uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v times=%v, (%v:)", tls, path, times, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var v1 uintptr + _ = v1 + if times != 0 { + *(*[2]Ttimespec)(unsafe.Pointer(bp)) = [2]Ttimespec{ + 0: { + Ftv_sec: (*Tutimbuf)(unsafe.Pointer(times)).Factime, + }, + 1: { + Ftv_sec: (*Tutimbuf)(unsafe.Pointer(times)).Fmodtime, + }, + } + v1 = bp + } else { + v1 = uintptr(0) + } + return Xutimensat(tls, -int32(100), path, v1, 0) +} + +func X__wcsftime_l(tls *TLS, s uintptr, n Tsize_t, f uintptr, tm uintptr, loc Tlocale_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v f=%v tm=%v loc=%v, (%v:)", tls, s, n, f, tm, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(528) + defer tls.Free(528) + var l, v2 Tsize_t + var pad, plus, v4 int32 + var t, t_mb, v3 uintptr + var width uint64 + var _ /* buf at bp+8 */ [100]uint8 + var _ /* k at bp+0 */ Tsize_t + var _ /* p at bp+512 */ uintptr + var _ /* wbuf at bp+108 */ [100]Twchar_t + _, _, _, _, _, _, _, _, _ = l, pad, plus, t, t_mb, width, v2, v3, v4 + l = uint64(0) + for { + if !(l < n) { + break + } + if !(**(**Twchar_t)(__ccgo_up(f)) != 0) { + **(**Twchar_t)(__ccgo_up(s + uintptr(l)*4)) = 0 + return l + } + if **(**Twchar_t)(__ccgo_up(f)) != int32('%') { + v2 = l + l = l + 1 + **(**Twchar_t)(__ccgo_up(s + uintptr(v2)*4)) = **(**Twchar_t)(__ccgo_up(f)) + goto _1 + } + f += 4 + pad = 0 + if **(**Twchar_t)(__ccgo_up(f)) == int32('-') || **(**Twchar_t)(__ccgo_up(f)) == int32('_') || **(**Twchar_t)(__ccgo_up(f)) == int32('0') { + v3 = f + f += 4 + pad = **(**Twchar_t)(__ccgo_up(v3)) + } + v4 = BoolInt32(**(**Twchar_t)(__ccgo_up(f)) == Int32FromUint8('+')) + plus = v4 + if v4 != 0 { + f += 4 + } + width = Xwcstoul(tls, f, bp+512, int32(10)) + if **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 512)))) == int32('C') || **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 512)))) == int32('F') || **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 512)))) == int32('G') || **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 512)))) == int32('Y') { + if !(width != 0) && **(**uintptr)(__ccgo_up(bp + 512)) != f { + width = uint64(1) + } + } else { + width = uint64(0) + } + f = **(**uintptr)(__ccgo_up(bp + 512)) + if **(**Twchar_t)(__ccgo_up(f)) == int32('E') || **(**Twchar_t)(__ccgo_up(f)) == int32('O') { + f += 4 + } + t_mb = X__strftime_fmt_1(tls, bp+8, bp, **(**Twchar_t)(__ccgo_up(f)), tm, loc, pad) + if !(t_mb != 0) { + break + } + **(**Tsize_t)(__ccgo_up(bp)) = Xmbstowcs(tls, bp+108, t_mb, Uint64FromInt64(400)/Uint64FromInt64(4)) + if **(**Tsize_t)(__ccgo_up(bp)) == Uint64FromInt32(-Int32FromInt32(1)) { + return uint64(0) + } + t = bp + 108 + if width != 0 { + for { + if !(**(**Twchar_t)(__ccgo_up(t)) == int32('+') || **(**Twchar_t)(__ccgo_up(t)) == int32('-') || **(**Twchar_t)(__ccgo_up(t)) == int32('0') && **(**Twchar_t)(__ccgo_up(t + 1*4)) != 0) { + break + } + goto _5 + _5: + ; + t += 4 + **(**Tsize_t)(__ccgo_up(bp)) = **(**Tsize_t)(__ccgo_up(bp)) - 1 + } + width = width - 1 + if plus != 0 && (*Ttm)(unsafe.Pointer(tm)).Ftm_year >= Int32FromInt32(10000)-Int32FromInt32(1900) { + v2 = l + l = l + 1 + **(**Twchar_t)(__ccgo_up(s + uintptr(v2)*4)) = int32('+') + } else { + if (*Ttm)(unsafe.Pointer(tm)).Ftm_year < -int32(1900) { + v2 = l + l = l + 1 + **(**Twchar_t)(__ccgo_up(s + uintptr(v2)*4)) = int32('-') + } else { + width = width + 1 + } + } + for { + if !(width > **(**Tsize_t)(__ccgo_up(bp)) && l < n) { + break + } + v2 = l + l = l + 1 + **(**Twchar_t)(__ccgo_up(s + uintptr(v2)*4)) = int32('0') + goto _8 + _8: + ; + width = width - 1 + } + } + if **(**Tsize_t)(__ccgo_up(bp)) >= n-l { + **(**Tsize_t)(__ccgo_up(bp)) = n - l + } + Xwmemcpy(tls, s+uintptr(l)*4, t, **(**Tsize_t)(__ccgo_up(bp))) + l = l + **(**Tsize_t)(__ccgo_up(bp)) + goto _1 + _1: + ; + f += 4 + } + if n != 0 { + if l == n { + l = n - uint64(1) + } + **(**Twchar_t)(__ccgo_up(s + uintptr(l)*4)) = 0 + } + return uint64(0) +} + +func Xwcsftime(tls *TLS, wcs uintptr, n Tsize_t, f uintptr, tm uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v wcs=%v n=%v f=%v tm=%v, (%v:)", tls, wcs, n, f, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__wcsftime_l(tls, wcs, n, f, tm, (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale) +} + +func Xwcsftime_l(tls *TLS, s uintptr, n Tsize_t, f uintptr, tm uintptr, loc Tlocale_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v f=%v tm=%v loc=%v, (%v:)", tls, s, n, f, tm, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__wcsftime_l(tls, s, n, f, tm, loc) +} + +func X_exit(tls *TLS, status int32) { + if __ccgo_strace { + trc("tls=%v status=%v, (%v:)", tls, status, origin(2)) + } + X_Exit(tls, status) +} + +func Xaccess(tls *TLS, filename uintptr, amode int32) (r int32) { + if __ccgo_strace { + trc("tls=%v filename=%v amode=%v, (%v:)", tls, filename, amode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_faccessat), int64(-Int32FromInt32(100)), int64(filename), int64(amode), int64(Int32FromInt32(0)))))) +} + +func Xacct(tls *TLS, filename uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v filename=%v, (%v:)", tls, filename, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_acct), int64(filename))))) +} + +func Xalarm(tls *TLS, seconds uint32) (r uint32) { + if __ccgo_strace { + trc("tls=%v seconds=%v, (%v:)", tls, seconds, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var _ /* it at bp+0 */ Titimerval + var _ /* old at bp+32 */ Titimerval + **(**Titimerval)(__ccgo_up(bp)) = Titimerval{ + Fit_value: Ttimeval{ + Ftv_sec: Int64FromUint32(seconds), + }, + } + **(**Titimerval)(__ccgo_up(bp + 32)) = Titimerval{} + Xsetitimer(tls, ITIMER_REAL, bp, bp+32) + return Uint32FromInt64((**(**Titimerval)(__ccgo_up(bp + 32))).Fit_value.Ftv_sec + BoolInt64(!!((**(**Titimerval)(__ccgo_up(bp + 32))).Fit_value.Ftv_usec != 0))) +} + +func Xchdir(tls *TLS, path uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v, (%v:)", tls, path, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_chdir), int64(path))))) +} + +func Xchown(tls *TLS, path uintptr, uid Tuid_t, gid Tgid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v uid=%v gid=%v, (%v:)", tls, path, uid, gid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_fchownat), int64(-Int32FromInt32(100)), int64(path), Int64FromUint32(uid), Int64FromUint32(gid), int64(Int32FromInt32(0)))))) +} + +func _dummy12(tls *TLS, fd int32) (r int32) { + return fd +} + +func Xclose(tls *TLS, fd int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + fd = _dummy12(tls, fd) + r = int32(___syscall_cp(tls, int64(SYS_close), int64(fd), 0, 0, 0, 0, 0)) + if r == -int32(EINTR) { + r = 0 + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func Xctermid(tls *TLS, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 uintptr + _ = v1 + if s != 0 { + v1 = Xstrcpy(tls, s, __ccgo_ts+292) + } else { + v1 = __ccgo_ts + 292 + } + return v1 +} + +func Xdup(tls *TLS, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_dup), int64(fd))))) +} + +func Xdup2(tls *TLS, old int32, new1 int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v old=%v new1=%v, (%v:)", tls, old, new1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v1 int32 + _, _ = r, v1 + if old == new1 { + r = int32(X__syscall2(tls, int64(SYS_fcntl), int64(old), int64(Int32FromInt32(F_GETFD)))) + if r >= 0 { + return old + } + } else { + for { + v1 = int32(X__syscall3(tls, int64(SYS_dup3), int64(old), int64(new1), int64(Int32FromInt32(0)))) + r = v1 + if !(v1 == -int32(EBUSY)) { + break + } + } + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func X__dup3(tls *TLS, old int32, new1 int32, flags int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v old=%v new1=%v flags=%v, (%v:)", tls, old, new1, flags, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v1 int32 + _, _ = r, v1 + for { + v1 = int32(X__syscall3(tls, int64(SYS_dup3), int64(old), int64(new1), int64(flags))) + r = v1 + if !(v1 == -int32(EBUSY)) { + break + } + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func Xdup3(tls *TLS, old int32, new1 int32, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v old=%v new1=%v flags=%v, (%v:)", tls, old, new1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__dup3(tls, old, new1, flags) +} + +type Tctx1 = struct { + Ffd int32 + Ffilename uintptr + Famode int32 + Fp int32 +} + +func _checker(tls *TLS, p uintptr) (r int32) { + bp := tls.Alloc(16) + defer tls.Free(16) + var c uintptr + var _ /* ret at bp+0 */ int32 + _ = c + c = p + if X__syscall2(tls, int64(SYS_setregid), X__syscall0(tls, int64(SYS_getegid)), int64(-Int32FromInt32(1))) != 0 || X__syscall2(tls, int64(SYS_setreuid), X__syscall0(tls, int64(SYS_geteuid)), int64(-Int32FromInt32(1))) != 0 { + X__syscall1(tls, int64(SYS_exit), int64(Int32FromInt32(1))) + } + **(**int32)(__ccgo_up(bp)) = int32(X__syscall4(tls, int64(SYS_faccessat), int64((*Tctx1)(unsafe.Pointer(c)).Ffd), int64((*Tctx1)(unsafe.Pointer(c)).Ffilename), int64((*Tctx1)(unsafe.Pointer(c)).Famode), int64(Int32FromInt32(0)))) + X__syscall3(tls, int64(SYS_write), int64((*Tctx1)(unsafe.Pointer(c)).Fp), int64(bp), Int64FromUint64(Uint64FromInt64(4))) + return 0 +} + +func Xfaccessat(tls *TLS, fd int32, filename uintptr, amode int32, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v filename=%v amode=%v flag=%v, (%v:)", tls, fd, filename, amode, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret int32 + _ = ret + if flag != 0 { + ret = int32(X__syscall4(tls, int64(SYS_faccessat2), int64(fd), int64(filename), int64(amode), int64(flag))) + if ret != -int32(ENOSYS) { + return int32(X__syscall_ret(tls, Uint64FromInt32(ret))) + } + } + if flag & ^Int32FromInt32(AT_EACCESS) != 0 { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL)))) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_faccessat), int64(fd), int64(filename), int64(amode))))) +} + +func Xfchdir(tls *TLS, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var ret int32 + var _ /* buf at bp+0 */ [27]uint8 + _ = ret + ret = int32(X__syscall1(tls, int64(SYS_fchdir), int64(fd))) + if ret != -int32(EBADF) || X__syscall2(tls, int64(SYS_fcntl), int64(fd), int64(Int32FromInt32(F_GETFD))) < 0 { + return int32(X__syscall_ret(tls, Uint64FromInt32(ret))) + } + X__procfdname(tls, bp, Uint32FromInt32(fd)) + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_chdir), int64(bp))))) +} + +func Xfchown(tls *TLS, fd int32, uid Tuid_t, gid Tgid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v uid=%v gid=%v, (%v:)", tls, fd, uid, gid, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var ret int32 + var _ /* buf at bp+0 */ [27]uint8 + _ = ret + ret = int32(X__syscall3(tls, int64(SYS_fchown), int64(fd), Int64FromUint32(uid), Int64FromUint32(gid))) + if ret != -int32(EBADF) || X__syscall2(tls, int64(SYS_fcntl), int64(fd), int64(Int32FromInt32(F_GETFD))) < 0 { + return int32(X__syscall_ret(tls, Uint64FromInt32(ret))) + } + X__procfdname(tls, bp, Uint32FromInt32(fd)) + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_fchownat), int64(-Int32FromInt32(100)), int64(bp), Int64FromUint32(uid), Int64FromUint32(gid), int64(Int32FromInt32(0)))))) +} + +func Xfchownat(tls *TLS, fd int32, path uintptr, uid Tuid_t, gid Tgid_t, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v path=%v uid=%v gid=%v flag=%v, (%v:)", tls, fd, path, uid, gid, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_fchownat), int64(fd), int64(path), Int64FromUint32(uid), Int64FromUint32(gid), int64(flag))))) +} + +func Xfdatasync(tls *TLS, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_fdatasync), int64(fd), 0, 0, 0, 0, 0)))) +} + +func Xfsync(tls *TLS, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_fsync), int64(fd), 0, 0, 0, 0, 0)))) +} + +func Xftruncate(tls *TLS, fd int32, length Toff_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v length=%v, (%v:)", tls, fd, length, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_ftruncate), int64(fd), length)))) +} + +func Xgetcwd(tls *TLS, buf uintptr, size Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v buf=%v size=%v, (%v:)", tls, buf, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret int64 + var tmp, v3 uintptr + var v1 t__predefined_size_t + var v2 int32 + _, _, _, _, _ = ret, tmp, v1, v2, v3 + defer func() { Xrealloc(tls, tmp, 0) }() + if buf != 0 { + v2 = int32(1) + } else { + v2 = int32(PATH_MAX) + } + v1 = Uint64FromInt32(v2) + tmp = Xrealloc(tls, tmp, v1) + if !(buf != 0) { + buf = tmp + size = v1 + } else { + if !(size != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(0) + } + } + ret = X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_getcwd), int64(buf), Int64FromUint64(size)))) + if ret < 0 { + return uintptr(0) + } + if ret == 0 || Int32FromUint8(**(**uint8)(__ccgo_up(buf))) != int32('/') { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOENT) + return uintptr(0) + } + if buf == tmp { + v3 = Xstrdup(tls, buf) + } else { + v3 = buf + } + return v3 +} + +func Xgetegid(tls *TLS) (r Tgid_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Uint32FromInt64(X__syscall0(tls, int64(SYS_getegid))) +} + +func Xgeteuid(tls *TLS) (r Tuid_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Uint32FromInt64(X__syscall0(tls, int64(SYS_geteuid))) +} + +func Xgetgid(tls *TLS) (r Tgid_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Uint32FromInt64(X__syscall0(tls, int64(SYS_getgid))) +} + +func Xgetgroups(tls *TLS, count int32, list uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v count=%v list=%v, (%v:)", tls, count, list, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_getgroups), int64(count), int64(list))))) +} + +func Xgethostname(tls *TLS, name uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v len1=%v, (%v:)", tls, name, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(400) + defer tls.Free(400) + var i Tsize_t + var v2 uint8 + var v3 bool + var _ /* uts at bp+0 */ Tutsname1 + _, _, _ = i, v2, v3 + if Xuname(tls, bp) != 0 { + return -int32(1) + } + if len1 > uint64(65) { + len1 = uint64(65) + } + i = uint64(0) + for { + if v3 = i < len1; v3 { + v2 = **(**uint8)(__ccgo_up(bp + 65 + uintptr(i))) + **(**uint8)(__ccgo_up(name + uintptr(i))) = v2 + } + if !(v3 && v2 != 0) { + break + } + goto _1 + _1: + ; + i = i + 1 + } + if i != 0 && i == len1 { + **(**uint8)(__ccgo_up(name + uintptr(i-uint64(1)))) = uint8(0) + } + return 0 +} + +func Xgetlogin(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetenv(tls, __ccgo_ts+1924) +} + +func Xgetlogin_r(tls *TLS, name uintptr, size Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v size=%v, (%v:)", tls, name, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + var logname uintptr + _ = logname + logname = Xgetlogin(tls) + if !(logname != 0) { + return int32(ENXIO) + } /* or...? */ + if _strlen(tls, logname) >= size { + return int32(ERANGE) + } + Xstrcpy(tls, name, logname) + return 0 +} + +func Xgetpgid(tls *TLS, pid Tpid_t) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v pid=%v, (%v:)", tls, pid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_getpgid), int64(pid))))) +} + +func Xgetpgrp(tls *TLS) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall1(tls, int64(SYS_getpgid), int64(Int32FromInt32(0)))) +} + +func Xgetpid(tls *TLS) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall0(tls, int64(SYS_getpid))) +} + +func Xgetppid(tls *TLS) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall0(tls, int64(SYS_getppid))) +} + +func Xgetsid(tls *TLS, pid Tpid_t) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v pid=%v, (%v:)", tls, pid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_getsid), int64(pid))))) +} + +func Xgetuid(tls *TLS) (r Tuid_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Uint32FromInt64(X__syscall0(tls, int64(SYS_getuid))) +} + +func Xisatty(tls *TLS, fd int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var r uint64 + var _ /* wsz at bp+0 */ Twinsize + _ = r + r = Uint64FromInt64(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_ioctl), int64(fd), int64(Int32FromInt32(TIOCGWINSZ)), int64(bp))))) + if r == uint64(0) { + return int32(1) + } + if **(**int32)(__ccgo_up(X__errno_location(tls))) != int32(EBADF) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOTTY) + } + return 0 +} + +func Xlchown(tls *TLS, path uintptr, uid Tuid_t, gid Tgid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v uid=%v gid=%v, (%v:)", tls, path, uid, gid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_fchownat), int64(-Int32FromInt32(100)), int64(path), Int64FromUint32(uid), Int64FromUint32(gid), int64(Int32FromInt32(AT_SYMLINK_NOFOLLOW)))))) +} + +func Xlink(tls *TLS, existing uintptr, new1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v existing=%v new1=%v, (%v:)", tls, existing, new1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_linkat), int64(-Int32FromInt32(100)), int64(existing), int64(-Int32FromInt32(100)), int64(new1), int64(Int32FromInt32(0)))))) +} + +func Xlinkat(tls *TLS, fd1 int32, existing uintptr, fd2 int32, new1 uintptr, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd1=%v existing=%v fd2=%v new1=%v flag=%v, (%v:)", tls, fd1, existing, fd2, new1, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_linkat), int64(fd1), int64(existing), int64(fd2), int64(new1), int64(flag))))) +} + +func X__lseek(tls *TLS, fd int32, offset Toff_t, whence int32) (r Toff_t) { + if __ccgo_strace { + trc("tls=%v fd=%v offset=%v whence=%v, (%v:)", tls, fd, offset, whence, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_lseek), int64(fd), offset, int64(whence)))) +} + +func Xlseek(tls *TLS, fd int32, offset Toff_t, whence int32) (r Toff_t) { + if __ccgo_strace { + trc("tls=%v fd=%v offset=%v whence=%v, (%v:)", tls, fd, offset, whence, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lseek(tls, fd, offset, whence) +} + +func Xnice(tls *TLS, inc int32) (r int32) { + if __ccgo_strace { + trc("tls=%v inc=%v, (%v:)", tls, inc, origin(2)) + defer func() { trc("-> %v", r) }() + } + var prio int32 + _ = prio + prio = inc + // Only query old priority if it can affect the result. + // This also avoids issues with integer overflow. + if inc > -Int32FromInt32(2)*Int32FromInt32(NZERO) && inc < Int32FromInt32(2)*Int32FromInt32(NZERO) { + prio = prio + Xgetpriority(tls, PRIO_PROCESS, uint32(0)) + } + if prio > Int32FromInt32(NZERO)-Int32FromInt32(1) { + prio = Int32FromInt32(NZERO) - Int32FromInt32(1) + } + if prio < -int32(NZERO) { + prio = -int32(NZERO) + } + if Xsetpriority(tls, PRIO_PROCESS, uint32(0), prio) != 0 { + if **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EACCES) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EPERM) + } + return -int32(1) + } else { + return prio + } + return r +} + +func Xpause(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_ppoll), int64(Int32FromInt32(0)), int64(Int32FromInt32(0)), int64(Int32FromInt32(0)), int64(Int32FromInt32(0)), 0, 0)))) +} + +func Xpipe(tls *TLS, fd uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_pipe2), int64(fd), int64(Int32FromInt32(0)))))) +} + +func Xpipe2(tls *TLS, fd uintptr, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v flag=%v, (%v:)", tls, fd, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret int32 + _ = ret + if !(flag != 0) { + return Xpipe(tls, fd) + } + ret = int32(X__syscall2(tls, int64(SYS_pipe2), int64(fd), int64(flag))) + if ret != -int32(ENOSYS) { + return int32(X__syscall_ret(tls, Uint64FromInt32(ret))) + } + if flag & ^(Int32FromInt32(O_CLOEXEC)|Int32FromInt32(O_NONBLOCK)) != 0 { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL)))) + } + ret = Xpipe(tls, fd) + if ret != 0 { + return ret + } + if flag&int32(O_CLOEXEC) != 0 { + X__syscall3(tls, int64(SYS_fcntl), int64(**(**int32)(__ccgo_up(fd))), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + X__syscall3(tls, int64(SYS_fcntl), int64(**(**int32)(__ccgo_up(fd + 1*4))), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + } + if flag&int32(O_NONBLOCK) != 0 { + X__syscall3(tls, int64(SYS_fcntl), int64(**(**int32)(__ccgo_up(fd))), int64(Int32FromInt32(F_SETFL)), int64(Int32FromInt32(O_NONBLOCK))) + X__syscall3(tls, int64(SYS_fcntl), int64(**(**int32)(__ccgo_up(fd + 1*4))), int64(Int32FromInt32(F_SETFL)), int64(Int32FromInt32(O_NONBLOCK))) + } + return 0 +} + +func Xposix_close(tls *TLS, fd int32, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v flags=%v, (%v:)", tls, fd, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xclose(tls, fd) +} + +func Xpread(tls *TLS, fd int32, buf uintptr, size Tsize_t, ofs Toff_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v size=%v ofs=%v, (%v:)", tls, fd, buf, size, ofs, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_pread64), int64(fd), int64(buf), Int64FromUint64(size), ofs, 0, 0))) +} + +func Xpreadv(tls *TLS, fd int32, iov uintptr, count int32, ofs Toff_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v iov=%v count=%v ofs=%v, (%v:)", tls, fd, iov, count, ofs, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_preadv), int64(fd), int64(iov), int64(count), ofs, ofs>>Int32FromInt32(32), 0))) +} + +func Xpwrite(tls *TLS, fd int32, buf uintptr, size Tsize_t, ofs Toff_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v size=%v ofs=%v, (%v:)", tls, fd, buf, size, ofs, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_pwrite64), int64(fd), int64(buf), Int64FromUint64(size), ofs, 0, 0))) +} + +func Xpwritev(tls *TLS, fd int32, iov uintptr, count int32, ofs Toff_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v iov=%v count=%v ofs=%v, (%v:)", tls, fd, iov, count, ofs, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_pwritev), int64(fd), int64(iov), int64(count), ofs, ofs>>Int32FromInt32(32), 0))) +} + +func Xread(tls *TLS, fd int32, buf uintptr, count Tsize_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v count=%v, (%v:)", tls, fd, buf, count, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_read), int64(fd), int64(buf), Int64FromUint64(count), 0, 0, 0))) +} + +func Xreadlink(tls *TLS, path uintptr, buf uintptr, bufsize Tsize_t) (r1 Tssize_t) { + if __ccgo_strace { + trc("tls=%v path=%v buf=%v bufsize=%v, (%v:)", tls, path, buf, bufsize, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var r int32 + var _ /* dummy at bp+0 */ [1]uint8 + _ = r + if !(bufsize != 0) { + buf = bp + bufsize = uint64(1) + } + r = int32(X__syscall4(tls, int64(SYS_readlinkat), int64(-Int32FromInt32(100)), int64(path), int64(buf), Int64FromUint64(bufsize))) + if buf == bp && r > 0 { + r = 0 + } + return X__syscall_ret(tls, Uint64FromInt32(r)) +} + +func Xreadlinkat(tls *TLS, fd int32, path uintptr, buf uintptr, bufsize Tsize_t) (r1 Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v path=%v buf=%v bufsize=%v, (%v:)", tls, fd, path, buf, bufsize, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var r int32 + var _ /* dummy at bp+0 */ [1]uint8 + _ = r + if !(bufsize != 0) { + buf = bp + bufsize = uint64(1) + } + r = int32(X__syscall4(tls, int64(SYS_readlinkat), int64(fd), int64(path), int64(buf), Int64FromUint64(bufsize))) + if buf == bp && r > 0 { + r = 0 + } + return X__syscall_ret(tls, Uint64FromInt32(r)) +} + +func Xreadv(tls *TLS, fd int32, iov uintptr, count int32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v iov=%v count=%v, (%v:)", tls, fd, iov, count, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_readv), int64(fd), int64(iov), int64(count), 0, 0, 0))) +} + +func Xrenameat(tls *TLS, oldfd int32, old uintptr, newfd int32, new1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v oldfd=%v old=%v newfd=%v new1=%v, (%v:)", tls, oldfd, old, newfd, new1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_renameat2), int64(oldfd), int64(old), int64(newfd), int64(new1), int64(Int32FromInt32(0)))))) +} + +func Xrmdir(tls *TLS, path uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v, (%v:)", tls, path, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_unlinkat), int64(-Int32FromInt32(100)), int64(path), int64(Int32FromInt32(AT_REMOVEDIR)))))) +} + +func Xsetgid(tls *TLS, gid Tgid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v gid=%v, (%v:)", tls, gid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__setxid(tls, int32(SYS_setgid), Int32FromUint32(gid), 0, 0) +} + +func Xsetpgid(tls *TLS, pid Tpid_t, pgid Tpid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v pid=%v pgid=%v, (%v:)", tls, pid, pgid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_setpgid), int64(pid), int64(pgid))))) +} + +func Xsetpgrp(tls *TLS) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xsetpgid(tls, 0, 0) +} + +func Xsetsid(tls *TLS) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall0(tls, int64(SYS_setsid))))) +} + +func Xsetuid(tls *TLS, uid Tuid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v uid=%v, (%v:)", tls, uid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__setxid(tls, int32(SYS_setuid), Int32FromUint32(uid), 0, 0) +} + +type Tctx2 = struct { + Fid int32 + Feid int32 + Fsid int32 + Fnr int32 + Fret int32 +} + +func _do_setxid(tls *TLS, p uintptr) { + var c uintptr + var ret int32 + _, _ = c, ret + c = p + if (*Tctx2)(unsafe.Pointer(c)).Fret < 0 { + return + } + ret = int32(X__syscall3(tls, int64((*Tctx2)(unsafe.Pointer(c)).Fnr), int64((*Tctx2)(unsafe.Pointer(c)).Fid), int64((*Tctx2)(unsafe.Pointer(c)).Feid), int64((*Tctx2)(unsafe.Pointer(c)).Fsid))) + if ret != 0 && !((*Tctx2)(unsafe.Pointer(c)).Fret != 0) { + /* If one thread fails to set ids after another has already + * succeeded, forcibly killing the process is the only safe + * thing to do. State is inconsistent and dangerous. Use + * SIGKILL because it is uncatchable. */ + X__block_all_sigs(tls, uintptr(0)) + X__syscall2(tls, int64(SYS_kill), X__syscall0(tls, int64(SYS_getpid)), int64(Int32FromInt32(SIGKILL))) + } + (*Tctx2)(unsafe.Pointer(c)).Fret = ret +} + +func X__setxid(tls *TLS, nr int32, id int32, eid int32, sid int32) (r int32) { + if __ccgo_strace { + trc("tls=%v nr=%v id=%v eid=%v sid=%v, (%v:)", tls, nr, id, eid, sid, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var v1 int32 + var _ /* c at bp+0 */ Tctx2 + _ = v1 + /* ret is initially nonzero so that failure of the first thread does not + * trigger the safety kill above. */ + **(**Tctx2)(__ccgo_up(bp)) = Tctx2{ + Fid: id, + Feid: eid, + Fsid: sid, + Fnr: nr, + Fret: int32(1), + } + ___synccall(tls, __ccgo_fp(_do_setxid), bp) + if (**(**Tctx2)(__ccgo_up(bp))).Fret > 0 { + v1 = -int32(EAGAIN) + } else { + v1 = (**(**Tctx2)(__ccgo_up(bp))).Fret + } + return int32(X__syscall_ret(tls, Uint64FromInt32(v1))) +} + +func Xsleep(tls *TLS, seconds uint32) (r uint32) { + if __ccgo_strace { + trc("tls=%v seconds=%v, (%v:)", tls, seconds, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* tv at bp+0 */ Ttimespec + **(**Ttimespec)(__ccgo_up(bp)) = Ttimespec{ + Ftv_sec: Int64FromUint32(seconds), + } + if Xnanosleep(tls, bp, bp) != 0 { + return Uint32FromInt64((**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec) + } + return uint32(0) +} + +func Xsymlink(tls *TLS, existing uintptr, new1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v existing=%v new1=%v, (%v:)", tls, existing, new1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_symlinkat), int64(existing), int64(-Int32FromInt32(100)), int64(new1))))) +} + +func Xsymlinkat(tls *TLS, existing uintptr, fd int32, new1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v existing=%v fd=%v new1=%v, (%v:)", tls, existing, fd, new1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_symlinkat), int64(existing), int64(fd), int64(new1))))) +} + +func Xsync(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + X__syscall0(tls, int64(SYS_sync)) +} + +func Xtcgetpgrp(tls *TLS, fd int32) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var _ /* pgrp at bp+0 */ int32 + if Xioctl(tls, fd, int32(TIOCGPGRP), VaList(bp+16, bp)) < 0 { + return -int32(1) + } + return **(**int32)(__ccgo_up(bp)) +} + +func Xtcsetpgrp(tls *TLS, fd int32, pgrp Tpid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v pgrp=%v, (%v:)", tls, fd, pgrp, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var _ /* pgrp_int at bp+0 */ int32 + **(**int32)(__ccgo_up(bp)) = pgrp + return Xioctl(tls, fd, int32(TIOCSPGRP), VaList(bp+16, bp)) +} + +func Xtruncate(tls *TLS, path uintptr, length Toff_t) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v length=%v, (%v:)", tls, path, length, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_truncate), int64(path), length)))) +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xttyname(tls *TLS, fd int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + var result, v1 int32 + _, _ = result, v1 + v1 = Xttyname_r(tls, fd, uintptr(unsafe.Pointer(&_buf10)), uint64(32)) + result = v1 + if v1 != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = result + return UintptrFromInt32(0) + } + return uintptr(unsafe.Pointer(&_buf10)) +} + +var _buf10 [32]uint8 + +func Xttyname_r(tls *TLS, fd int32, name uintptr, size Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v name=%v size=%v, (%v:)", tls, fd, name, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(288) + defer tls.Free(288) + var l Tssize_t + var _ /* procname at bp+256 */ [29]uint8 + var _ /* st1 at bp+0 */ Tstat + var _ /* st2 at bp+128 */ Tstat + _ = l + if !(Xisatty(tls, fd) != 0) { + return **(**int32)(__ccgo_up(X__errno_location(tls))) + } + X__procfdname(tls, bp+256, Uint32FromInt32(fd)) + l = Xreadlink(tls, bp+256, name, size) + if l < 0 { + return **(**int32)(__ccgo_up(X__errno_location(tls))) + } else { + if Uint64FromInt64(l) == size { + return int32(ERANGE) + } + } + **(**uint8)(__ccgo_up(name + uintptr(l))) = uint8(0) + if Xstat(tls, name, bp) != 0 || Xfstat(tls, fd, bp+128) != 0 { + return **(**int32)(__ccgo_up(X__errno_location(tls))) + } + if (**(**Tstat)(__ccgo_up(bp))).Fst_dev != (**(**Tstat)(__ccgo_up(bp + 128))).Fst_dev || (**(**Tstat)(__ccgo_up(bp))).Fst_ino != (**(**Tstat)(__ccgo_up(bp + 128))).Fst_ino { + return int32(ENODEV) + } + return 0 +} + +func Xualarm(tls *TLS, value uint32, interval uint32) (r uint32) { + if __ccgo_strace { + trc("tls=%v value=%v interval=%v, (%v:)", tls, value, interval, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var _ /* it at bp+0 */ Titimerval + var _ /* it_old at bp+32 */ Titimerval + **(**Titimerval)(__ccgo_up(bp)) = Titimerval{ + Fit_interval: Ttimeval{ + Ftv_usec: Int64FromUint32(interval), + }, + Fit_value: Ttimeval{ + Ftv_usec: Int64FromUint32(value), + }, + } + Xsetitimer(tls, ITIMER_REAL, bp, bp+32) + return Uint32FromInt64((**(**Titimerval)(__ccgo_up(bp + 32))).Fit_value.Ftv_sec*int64(1000000) + (**(**Titimerval)(__ccgo_up(bp + 32))).Fit_value.Ftv_usec) +} + +func Xunlink(tls *TLS, path uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v, (%v:)", tls, path, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_unlinkat), int64(-Int32FromInt32(100)), int64(path), int64(Int32FromInt32(0)))))) +} + +func Xunlinkat(tls *TLS, fd int32, path uintptr, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v path=%v flag=%v, (%v:)", tls, fd, path, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_unlinkat), int64(fd), int64(path), int64(flag))))) +} + +func Xusleep(tls *TLS, useconds uint32) (r int32) { + if __ccgo_strace { + trc("tls=%v useconds=%v, (%v:)", tls, useconds, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* tv at bp+0 */ Ttimespec + **(**Ttimespec)(__ccgo_up(bp)) = Ttimespec{ + Ftv_sec: Int64FromUint32(useconds / uint32(1000000)), + Ftv_nsec: Int64FromUint32(useconds % uint32(1000000) * uint32(1000)), + } + return Xnanosleep(tls, bp, bp) +} + +func Xwrite(tls *TLS, fd int32, buf uintptr, count Tsize_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v count=%v, (%v:)", tls, fd, buf, count, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_write), int64(fd), int64(buf), Int64FromUint64(count), 0, 0, 0))) +} + +func Xwritev(tls *TLS, fd int32, iov uintptr, count int32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v iov=%v count=%v, (%v:)", tls, fd, iov, count, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_writev), int64(fd), int64(iov), int64(count), 0, 0, 0))) +} + +func __ccgo_fp(f interface{}) uintptr { + type iface [2]uintptr + return (*iface)(unsafe.Pointer(&f))[1] +} + +func __ccgo_up(n uintptr) unsafe.Pointer { + return unsafe.Pointer(&n) +} + +var X__abort_lock [1]int32 + +var X__at_quick_exit_lockptr = uintptr(unsafe.Pointer(&_lock)) + +var X__c_dot_utf8 = t__locale_map{ + Fmap1: uintptr(unsafe.Pointer(&_empty_mo)), + Fmap_size: uint64(20), + Fname: [24]uint8{'C', '.', 'U', 'T', 'F', '-', '8'}, +} + +var X__c_dot_utf8_locale = t__locale_struct{ + Fcat: [6]uintptr{ + 0: uintptr(unsafe.Pointer(&X__c_dot_utf8)), + }, +} + +var X__c_locale = t__locale_struct{} + +var Xdaylight int32 + +var X__eintr_valid_flag int32 + +var Xenviron uintptr + +var X__exp2f_data = Texp2f_data{ + Ftab: [32]Tuint64_t{ + 0: uint64(0x3ff0000000000000), + 1: uint64(0x3fefd9b0d3158574), + 2: uint64(0x3fefb5586cf9890f), + 3: uint64(0x3fef9301d0125b51), + 4: uint64(0x3fef72b83c7d517b), + 5: uint64(0x3fef54873168b9aa), + 6: uint64(0x3fef387a6e756238), + 7: uint64(0x3fef1e9df51fdee1), + 8: uint64(0x3fef06fe0a31b715), + 9: uint64(0x3feef1a7373aa9cb), + 10: uint64(0x3feedea64c123422), + 11: uint64(0x3feece086061892d), + 12: uint64(0x3feebfdad5362a27), + 13: uint64(0x3feeb42b569d4f82), + 14: uint64(0x3feeab07dd485429), + 15: uint64(0x3feea47eb03a5585), + 16: uint64(0x3feea09e667f3bcd), + 17: uint64(0x3fee9f75e8ec5f74), + 18: uint64(0x3feea11473eb0187), + 19: uint64(0x3feea589994cce13), + 20: uint64(0x3feeace5422aa0db), + 21: uint64(0x3feeb737b0cdc5e5), + 22: uint64(0x3feec49182a3f090), + 23: uint64(0x3feed503b23e255d), + 24: uint64(0x3feee89f995ad3ad), + 25: uint64(0x3feeff76f2fb5e47), + 26: uint64(0x3fef199bdd85529c), + 27: uint64(0x3fef3720dcef9069), + 28: uint64(0x3fef5818dcfba487), + 29: uint64(0x3fef7c97337b9b5f), + 30: uint64(0x3fefa4afa2a490da), + 31: uint64(0x3fefd0765b6e4540), + }, + Fshift_scaled: Float64FromFloat64(6.755399441055744e+15) / float64(Int32FromInt32(1)<>Int32FromInt32(6) | Uint32FromInt32(0x0), + 31: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0x1), + 32: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0x2), + 33: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0x3), + 34: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0x4), + 35: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0x5), + 36: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0x6), + 37: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0x7), + 38: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0x8), + 39: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0x9), + 40: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0xa), + 41: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0xb), + 42: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0xc), + 43: (Uint32FromUint32(0x40)-Uint32FromInt32(0xa0))<>Int32FromInt32(6) | Uint32FromInt32(0xd), + 44: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0xe), + 45: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0xf), + 46: (Uint32FromUint32(0)-Uint32FromInt32(0x90))<>Int32FromInt32(6) | (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(12) | Uint32FromInt32(0x0), + 47: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(12) | Uint32FromInt32(0x1), + 48: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(12) | Uint32FromInt32(0x2), + 49: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(12) | Uint32FromInt32(0x3), + 50: (Uint32FromUint32(0x40)-Uint32FromInt32(0x90))<>Int32FromInt32(6) | (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(12) | Uint32FromInt32(0x4), +} + +var X__gettext_lockptr = uintptr(unsafe.Pointer(&_lock1)) + +var X__hwcap Tsize_t + +var X__libc t__libc + +var X__libc_version = [6]uint8{'1', '.', '2', '.', '5'} + +var X__locale_lock [1]int32 + +var X__locale_lockptr = uintptr(unsafe.Pointer(&X__locale_lock)) + +var X__log2_data = Tlog2_data{ + Finvln2hi: float64(1.4426950407214463), + Finvln2lo: float64(1.6751713164886512e-10), + Fpoly: [6]float64{ + 0: -Float64FromFloat64(0.7213475204444882), + 1: float64(0.4808983469629985), + 2: -Float64FromFloat64(0.36067375954075914), + 3: float64(0.2885390073180969), + 4: -Float64FromFloat64(0.2404693555628422), + 5: float64(0.2061202382173603), + }, + Fpoly1: [10]float64{ + 0: -Float64FromFloat64(0.7213475204444817), + 1: float64(0.48089834696298744), + 2: -Float64FromFloat64(0.360673760222145), + 3: float64(0.2885390081805197), + 4: -Float64FromFloat64(0.24044917405728863), + 5: float64(0.2060992861022954), + 6: -Float64FromFloat64(0.18033596705327856), + 7: float64(0.1603032746063156), + 8: -Float64FromFloat64(0.14483316576701266), + 9: float64(0.13046826811283835), + }, + Ftab: [64]struct { + Finvc float64 + Flogc float64 + }{ + 0: { + Finvc: float64(1.4463276106642393), + Flogc: -Float64FromFloat64(0.5323943771486483), + }, + 1: { + Finvc: float64(1.4301675812282968), + Flogc: -Float64FromFloat64(0.516184206053822), + }, + 2: { + Finvc: float64(1.4143648676229383), + Flogc: -Float64FromFloat64(0.5001543441974263), + }, + 3: { + Finvc: float64(1.3989068970611538), + Flogc: -Float64FromFloat64(0.4842999484799293), + }, + 4: { + Finvc: float64(1.3837838957784339), + Flogc: -Float64FromFloat64(0.46861865624623533), + }, + 5: { + Finvc: float64(1.368983882697786), + Flogc: -Float64FromFloat64(0.4531054615783887), + }, + 6: { + Finvc: float64(1.3544972916324536), + Flogc: -Float64FromFloat64(0.43775750882059583), + }, + 7: { + Finvc: float64(1.3403139676437443), + Flogc: -Float64FromFloat64(0.4225709906127122), + }, + 8: { + Finvc: float64(1.3264249304188642), + Flogc: -Float64FromFloat64(0.40754302793970965), + }, + 9: { + Finvc: float64(1.3128203652112156), + Flogc: -Float64FromFloat64(0.3926695240384106), + }, + 10: { + Finvc: float64(1.299492412370217), + Flogc: -Float64FromFloat64(0.3779482100565019), + }, + 11: { + Finvc: float64(1.28643198385998), + Flogc: -Float64FromFloat64(0.36337518101890964), + }, + 12: { + Finvc: float64(1.2736319291846832), + Flogc: -Float64FromFloat64(0.3489484089425332), + }, + 13: { + Finvc: float64(1.2610838968062879), + Flogc: -Float64FromFloat64(0.33466425780738973), + }, + 14: { + Finvc: float64(1.248780314313572), + Flogc: -Float64FromFloat64(0.3205197000629596), + }, + 15: { + Finvc: float64(1.2367150450059063), + Flogc: -Float64FromFloat64(0.3065131231801388), + }, + 16: { + Finvc: float64(1.2248804968401878), + Flogc: -Float64FromFloat64(0.2926410022678283), + }, + 17: { + Finvc: float64(1.2132702353497795), + Flogc: -Float64FromFloat64(0.2789009220805383), + }, + 18: { + Finvc: float64(1.2018780785715362), + Flogc: -Float64FromFloat64(0.2652905529862437), + }, + 19: { + Finvc: float64(1.190697765061355), + Flogc: -Float64FromFloat64(0.2518072602367738), + }, + 20: { + Finvc: float64(1.1797235410550593), + Flogc: -Float64FromFloat64(0.23844881494437686), + }, + 21: { + Finvc: float64(1.1689498986205256), + Flogc: -Float64FromFloat64(0.22521309705462045), + }, + 22: { + Finvc: float64(1.158371137408455), + Flogc: -Float64FromFloat64(0.21209756102439314), + }, + 23: { + Finvc: float64(1.1479820146386086), + Flogc: -Float64FromFloat64(0.1991000395789797), + }, + 24: { + Finvc: float64(1.1377775576851088), + Flogc: -Float64FromFloat64(0.18621852970682085), + }, + 25: { + Finvc: float64(1.127753150630225), + Flogc: -Float64FromFloat64(0.17345131655361), + }, + 26: { + Finvc: float64(1.1179037012282074), + Flogc: -Float64FromFloat64(0.16079591649577196), + }, + 27: { + Finvc: float64(1.1082251967632821), + Flogc: -Float64FromFloat64(0.14825107384353942), + }, + 28: { + Finvc: float64(1.098712461056607), + Flogc: -Float64FromFloat64(0.13581387465410444), + }, + 29: { + Finvc: float64(1.0893619091634283), + Flogc: -Float64FromFloat64(0.12348332762257996), + }, + 30: { + Finvc: float64(1.0801689912316736), + Flogc: -Float64FromFloat64(0.11125703807351783), + }, + 31: { + Finvc: float64(1.071129489697672), + Flogc: -Float64FromFloat64(0.09913289918449664), + }, + 32: { + Finvc: float64(1.0622406576750423), + Flogc: -Float64FromFloat64(0.08711065531497297), + }, + 33: { + Finvc: float64(1.0534977607927976), + Flogc: -Float64FromFloat64(0.07518724771330199), + }, + 34: { + Finvc: float64(1.044897877982342), + Flogc: -Float64FromFloat64(0.06336194888240243), + }, + 35: { + Finvc: float64(1.0364370289499079), + Flogc: -Float64FromFloat64(0.0516324649456692), + }, + 36: { + Finvc: float64(1.0281122132034575), + Flogc: -Float64FromFloat64(0.039997735929773626), + }, + 37: { + Finvc: float64(1.0199202450036955), + Flogc: -Float64FromFloat64(0.028456341769015125), + }, + 38: { + Finvc: float64(1.0118577522306755), + Flogc: -Float64FromFloat64(0.017006489068080555), + }, + 39: { + Finvc: float64(1.003921649236766), + Flogc: -Float64FromFloat64(0.005646678981520381), + }, + 40: { + Finvc: float64(0.9922480467550775), + Flogc: float64(0.011227277611396858), + }, + 41: { + Finvc: float64(0.9770993366178549), + Flogc: float64(0.033422853921138085), + }, + 42: { + Finvc: float64(0.9624059787315814), + Flogc: float64(0.05528248992573026), + }, + 43: { + Finvc: float64(0.9481480598286369), + Flogc: float64(0.07681573143713649), + }, + 44: { + Finvc: float64(0.9343065931261065), + Flogc: float64(0.09803204623631245), + }, + 45: { + Finvc: float64(0.9208633936884979), + Flogc: float64(0.11894094059630334), + }, + 46: { + Finvc: float64(0.9078013641840602), + Flogc: float64(0.13955143862290242), + }, + 47: { + Finvc: float64(0.8951048181512927), + Flogc: float64(0.15987146080919956), + }, + 48: { + Finvc: float64(0.882758574260473), + Flogc: float64(0.17990916589428707), + }, + 49: { + Finvc: float64(0.8707481902241709), + Flogc: float64(0.19967252559081317), + }, + 50: { + Finvc: float64(0.8590602881746972), + Flogc: float64(0.2191687127685782), + }, + 51: { + Finvc: float64(0.8476822044336688), + Flogc: float64(0.23840459427242422), + }, + 52: { + Finvc: float64(0.8366013284053287), + Flogc: float64(0.25738780610663525), + }, + 53: { + Finvc: float64(0.8258064913621258), + Flogc: float64(0.27612433583180973), + }, + 54: { + Finvc: float64(0.8152865101579193), + Flogc: float64(0.2946209507022104), + }, + 55: { + Finvc: float64(0.8050314363208223), + Flogc: float64(0.31288297359969874), + }, + 56: { + Finvc: float64(0.7950310492640542), + Flogc: float64(0.33091689015759584), + }, + 57: { + Finvc: float64(0.7852760432487271), + Flogc: float64(0.3487282100279572), + }, + 58: { + Finvc: float64(0.7757575660314712), + Flogc: float64(0.36632223233368677), + }, + 59: { + Finvc: float64(0.7664670566588946), + Flogc: float64(0.383704309808536), + }, + 60: { + Finvc: float64(0.7573965608078645), + Flogc: float64(0.4008792246509074), + }, + 61: { + Finvc: float64(0.7485380168514022), + Flogc: float64(0.41785250494945103), + }, + 62: { + Finvc: float64(0.7398844213755009), + Flogc: float64(0.4346281724315304), + }, + 63: { + Finvc: float64(0.7314286113178112), + Flogc: float64(0.45121103315341315), + }, + }, +} + +var X__log2f_data = Tlog2f_data{ + Ftab: [16]struct { + Finvc float64 + Flogc float64 + }{ + 0: { + Finvc: float64(1.398907162146528), + Flogc: -Float64FromFloat64(0.48430022186289673), + }, + 1: { + Finvc: float64(1.3403141896637998), + Flogc: -Float64FromFloat64(0.42257122959194704), + }, + 2: { + Finvc: float64(1.286432210124115), + Flogc: -Float64FromFloat64(0.3633754347673556), + }, + 3: { + Finvc: float64(1.2367150214269895), + Flogc: -Float64FromFloat64(0.30651309567405577), + }, + 4: { + Finvc: float64(1.1906977166711752), + Flogc: -Float64FromFloat64(0.25180720160537634), + }, + 5: { + Finvc: float64(1.1479821020556429), + Flogc: -Float64FromFloat64(0.19910014943794563), + }, + 6: { + Finvc: float64(1.1082251448272158), + Flogc: -Float64FromFloat64(0.14825100623281615), + }, + 7: { + Finvc: float64(1.0711297413057381), + Flogc: -Float64FromFloat64(0.09913323807318392), + }, + 8: { + Finvc: float64(1.036437278977283), + Flogc: -Float64FromFloat64(0.051632812977629436), + }, + 9: { + Finvc: float64(1), + }, + 10: { + Finvc: float64(0.9492859795739057), + Flogc: float64(0.07508531937943004), + }, + 11: { + Finvc: float64(0.8951049428609004), + Flogc: float64(0.15987125980713107), + }, + 12: { + Finvc: float64(0.8476821620351103), + Flogc: float64(0.2384046664317681), + }, + 13: { + Finvc: float64(0.8050314851692001), + Flogc: float64(0.31288288605863257), + }, + 14: { + Finvc: float64(0.7664671008843108), + Flogc: float64(0.38370422656453185), + }, + 15: { + Finvc: float64(0.731428603316328), + Flogc: float64(0.451211048935815), + }, + }, + Fpoly: [4]float64{ + 0: -Float64FromFloat64(0.36051725506874704), + 1: float64(0.4811247078767291), + 2: -Float64FromFloat64(0.7213476299867769), + 3: float64(1.4426950186867042), + }, +} + +var X__log_data = Tlog_data{ + Fln2hi: float64(0.6931471805598903), + Fln2lo: float64(5.497923018708371e-14), + Fpoly: [5]float64{ + 0: -Float64FromFloat64(0.5000000000000001), + 1: float64(0.33333333331825593), + 2: -Float64FromFloat64(0.2499999999622955), + 3: float64(0.20000304511814496), + 4: -Float64FromFloat64(0.16667054827627667), + }, + Fpoly1: [11]float64{ + 0: -Float64FromFloat64(0.5), + 1: float64(0.3333333333333352), + 2: -Float64FromFloat64(0.24999999999998432), + 3: float64(0.19999999999320328), + 4: -Float64FromFloat64(0.16666666669929706), + 5: float64(0.14285715076560868), + 6: -Float64FromFloat64(0.12499997863982555), + 7: float64(0.11110712032936046), + 8: -Float64FromFloat64(0.10000486757818193), + 9: float64(0.09181994006195467), + 10: -Float64FromFloat64(0.08328363062289341), + }, + Ftab: [128]struct { + Finvc float64 + Flogc float64 + }{ + 0: { + Finvc: float64(1.4504249240398293), + Flogc: -Float64FromFloat64(0.3718565645633589), + }, + 1: { + Finvc: float64(1.442253508327276), + Flogc: -Float64FromFloat64(0.36620682668944937), + }, + 2: { + Finvc: float64(1.4341736174350004), + Flogc: -Float64FromFloat64(0.3605888069791945), + }, + 3: { + Finvc: float64(1.426183816329995), + Flogc: -Float64FromFloat64(0.3550022171419869), + }, + 4: { + Finvc: float64(1.4182825527052965), + Flogc: -Float64FromFloat64(0.34944666968829097), + }, + 5: { + Finvc: float64(1.4104682921759335), + Flogc: -Float64FromFloat64(0.3439217713603284), + }, + 6: { + Finvc: float64(1.4027396147468003), + Flogc: -Float64FromFloat64(0.3384271921261188), + }, + 7: { + Finvc: float64(1.3950954438932313), + Flogc: -Float64FromFloat64(0.332962831494342), + }, + 8: { + Finvc: float64(1.3875338232485754), + Flogc: -Float64FromFloat64(0.32752794345742586), + }, + 9: { + Finvc: float64(1.3800539211058593), + Flogc: -Float64FromFloat64(0.32212257167088865), + }, + 10: { + Finvc: float64(1.3726542695419708), + Flogc: -Float64FromFloat64(0.3167462884799761), + }, + 11: { + Finvc: float64(1.3653332798446802), + Flogc: -Float64FromFloat64(0.3113985598928366), + }, + 12: { + Finvc: float64(1.358090204587874), + Flogc: -Float64FromFloat64(0.3060794515165526), + }, + 13: { + Finvc: float64(1.3509234892132138), + Flogc: -Float64FromFloat64(0.300788424667644), + }, + 14: { + Finvc: float64(1.3438320840699889), + Flogc: -Float64FromFloat64(0.2955252968476998), + }, + 15: { + Finvc: float64(1.3368146974742003), + Flogc: -Float64FromFloat64(0.29028969275850613), + }, + 16: { + Finvc: float64(1.329870114677736), + Flogc: -Float64FromFloat64(0.2850812793277555), + }, + 17: { + Finvc: float64(1.322997339161106), + Flogc: -Float64FromFloat64(0.27989987391470095), + }, + 18: { + Finvc: float64(1.316195352741367), + Flogc: -Float64FromFloat64(0.27474526621870154), + }, + 19: { + Finvc: float64(1.3094628125672239), + Flogc: -Float64FromFloat64(0.2696169863701243), + }, + 20: { + Finvc: float64(1.3027990455471041), + Flogc: -Float64FromFloat64(0.26451506180308115), + }, + 21: { + Finvc: float64(1.2962024229438942), + Flogc: -Float64FromFloat64(0.2594387762767383), + }, + 22: { + Finvc: float64(1.2896726275815547), + Flogc: -Float64FromFloat64(0.2543884090981692), + }, + 23: { + Finvc: float64(1.2832080305745537), + Flogc: -Float64FromFloat64(0.24936321635129843), + }, + 24: { + Finvc: float64(1.276807885983376), + Flogc: -Float64FromFloat64(0.24436312405975968), + }, + 25: { + Finvc: float64(1.2704714060687552), + Flogc: -Float64FromFloat64(0.23938801747897287), + }, + 26: { + Finvc: float64(1.2641976054949482), + Flogc: -Float64FromFloat64(0.23443761696705678), + }, + 27: { + Finvc: float64(1.257985357514882), + Flogc: -Float64FromFloat64(0.22951151871518505), + }, + 28: { + Finvc: float64(1.2518337750655457), + Flogc: -Float64FromFloat64(0.2246094963439873), + }, + 29: { + Finvc: float64(1.2457421919097305), + Flogc: -Float64FromFloat64(0.21973149037705753), + }, + 30: { + Finvc: float64(1.2397094966625508), + Flogc: -Float64FromFloat64(0.2148770752847895), + }, + 31: { + Finvc: float64(1.2337348463589233), + Flogc: -Float64FromFloat64(0.210046029103637), + }, + 32: { + Finvc: float64(1.2278176973028803), + Flogc: -Float64FromFloat64(0.20523836373934046), + }, + 33: { + Finvc: float64(1.2219570190618474), + Flogc: -Float64FromFloat64(0.20045368751368642), + }, + 34: { + Finvc: float64(1.2161519732977757), + Flogc: -Float64FromFloat64(0.1956917537758045), + }, + 35: { + Finvc: float64(1.2104018095009725), + Flogc: -Float64FromFloat64(0.19095237845203883), + }, + 36: { + Finvc: float64(1.204705805718973), + Flogc: -Float64FromFloat64(0.18623539250290833), + }, + 37: { + Finvc: float64(1.1990631185441964), + Flogc: -Float64FromFloat64(0.18154051731551135), + }, + 38: { + Finvc: float64(1.1934733004462308), + Flogc: -Float64FromFloat64(0.1768677957431919), + }, + 39: { + Finvc: float64(1.1879350812847385), + Flogc: -Float64FromFloat64(0.17221657406412305), + }, + 40: { + Finvc: float64(1.1824481322833125), + Flogc: -Float64FromFloat64(0.16758697765942543), + }, + 41: { + Finvc: float64(1.1770114976921955), + Flogc: -Float64FromFloat64(0.16297859687290384), + }, + 42: { + Finvc: float64(1.1716248121809465), + Flogc: -Float64FromFloat64(0.15839151377804228), + }, + 43: { + Finvc: float64(1.1662869231674715), + Flogc: -Float64FromFloat64(0.15382513241456763), + }, + 44: { + Finvc: float64(1.1609977486762766), + Flogc: -Float64FromFloat64(0.14927976358922024), + }, + 45: { + Finvc: float64(1.1557563220795803), + Flogc: -Float64FromFloat64(0.14475495398119165), + }, + 46: { + Finvc: float64(1.1505619105480347), + Flogc: -Float64FromFloat64(0.14025044090817573), + }, + 47: { + Finvc: float64(1.1454138888505974), + Flogc: -Float64FromFloat64(0.1357660466685502), + }, + 48: { + Finvc: float64(1.140311877374656), + Flogc: -Float64FromFloat64(0.1313018016355727), + }, + 49: { + Finvc: float64(1.1352550225747513), + Flogc: -Float64FromFloat64(0.12685731518763532), + }, + 50: { + Finvc: float64(1.1302429094831266), + Flogc: -Float64FromFloat64(0.1224325737671279), + }, + 51: { + Finvc: float64(1.1252747693068048), + Flogc: -Float64FromFloat64(0.11802724521862729), + }, + 52: { + Finvc: float64(1.1203501571039876), + Flogc: -Float64FromFloat64(0.11364127671663482), + }, + 53: { + Finvc: float64(1.1154683327680124), + Flogc: -Float64FromFloat64(0.10927434611278386), + }, + 54: { + Finvc: float64(1.1106291463292157), + Flogc: -Float64FromFloat64(0.10492665324943573), + }, + 55: { + Finvc: float64(1.1058315813301596), + Flogc: -Float64FromFloat64(0.10059761422644442), + }, + 56: { + Finvc: float64(1.1010752177696026), + Flogc: -Float64FromFloat64(0.09628717309055901), + }, + 57: { + Finvc: float64(1.0963597137952512), + Flogc: -Float64FromFloat64(0.09199534069557558), + }, + 58: { + Finvc: float64(1.0916844827550398), + Flogc: -Float64FromFloat64(0.08772190036688698), + }, + 59: { + Finvc: float64(1.0870487291277784), + Flogc: -Float64FromFloat64(0.08346643613867855), + }, + 60: { + Finvc: float64(1.082452357388312), + Flogc: -Float64FromFloat64(0.07922916827544668), + }, + 61: { + Finvc: float64(1.0778948225025884), + Flogc: -Float64FromFloat64(0.0750099004750382), + }, + 62: { + Finvc: float64(1.0733751731601076), + Flogc: -Float64FromFloat64(0.07080805133352897), + }, + 63: { + Finvc: float64(1.068893585073351), + Flogc: -Float64FromFloat64(0.06662408085151128), + }, + 64: { + Finvc: float64(1.0644491706655506), + Flogc: -Float64FromFloat64(0.06245745471915143), + }, + 65: { + Finvc: float64(1.0600414846328305), + Flogc: -Float64FromFloat64(0.0583080438042316), + }, + 66: { + Finvc: float64(1.0556701316181605), + Flogc: -Float64FromFloat64(0.05417576112313327), + }, + 67: { + Finvc: float64(1.051334750556926), + Flogc: -Float64FromFloat64(0.050060547896805474), + }, + 68: { + Finvc: float64(1.0470347288442157), + Flogc: -Float64FromFloat64(0.045962101199052086), + }, + 69: { + Finvc: float64(1.0427699229652954), + Flogc: -Float64FromFloat64(0.04188056008865715), + }, + 70: { + Finvc: float64(1.0385395013738175), + Flogc: -Float64FromFloat64(0.03781540056183985), + }, + 71: { + Finvc: float64(1.034343418940345), + Flogc: -Float64FromFloat64(0.03376684757915882), + }, + 72: { + Finvc: float64(1.0301811073173315), + Flogc: -Float64FromFloat64(0.029734619131772888), + }, + 73: { + Finvc: float64(1.026052043621297), + Flogc: -Float64FromFloat64(0.025718470239212365), + }, + 74: { + Finvc: float64(1.0219561082336197), + Flogc: -Float64FromFloat64(0.021718543925430822), + }, + 75: { + Finvc: float64(1.0178926505784922), + Flogc: -Float64FromFloat64(0.01773446126981071), + }, + 76: { + Finvc: float64(1.0138614436244586), + Flogc: -Float64FromFloat64(0.013766252464051831), + }, + 77: { + Finvc: float64(1.0098620186501341), + Flogc: -Float64FromFloat64(0.009813706322574944), + }, + 78: { + Finvc: float64(1.0058938559734134), + Flogc: -Float64FromFloat64(0.005876555150052809), + }, + 79: { + Finvc: float64(1.00195696235014), + Flogc: -Float64FromFloat64(0.0019550499938532084), + }, + 80: { + Finvc: float64(0.9961089923088509), + Flogc: float64(0.0038985973556009412), + }, + 81: { + Finvc: float64(0.9884170338185201), + Flogc: float64(0.011650571286395461), + }, + 82: { + Finvc: float64(0.9808429191005297), + Flogc: float64(0.019342955478919066), + }, + 83: { + Finvc: float64(0.9733840169987446), + Flogc: float64(0.0269766014846482), + }, + 84: { + Finvc: float64(0.9660377568876556), + Flogc: float64(0.034552359728422744), + }, + 85: { + Finvc: float64(0.9588014945307369), + Flogc: float64(0.04207121767183253), + }, + 86: { + Finvc: float64(0.9516728569073111), + Flogc: float64(0.049533940950141186), + }, + 87: { + Finvc: float64(0.9446494635965822), + Flogc: float64(0.056941358295944156), + }, + 88: { + Finvc: float64(0.9377288993026223), + Flogc: float64(0.06429439168346107), + }, + 89: { + Finvc: float64(0.9309091073790681), + Flogc: float64(0.0715936354946507), + }, + 90: { + Finvc: float64(0.924187681612722), + Flogc: float64(0.07884010933776153), + }, + 91: { + Finvc: float64(0.9175626765599192), + Flogc: float64(0.08603438905970506), + }, + 92: { + Finvc: float64(0.9110320403624034), + Flogc: float64(0.09317721180013905), + }, + 93: { + Finvc: float64(0.9045935839762024), + Flogc: float64(0.10026951462748457), + }, + 94: { + Finvc: float64(0.8982456375922825), + Flogc: float64(0.10731170956330516), + }, + 95: { + Finvc: float64(0.8919860966782501), + Flogc: float64(0.11430473320717738), + }, + 96: { + Finvc: float64(0.8858131121185129), + Flogc: float64(0.12124928503033061), + }, + 97: { + Finvc: float64(0.879725075760676), + Flogc: float64(0.12814583422959913), + }, + 98: { + Finvc: float64(0.8737201372634685), + Flogc: float64(0.1349951636851756), + }, + 99: { + Finvc: float64(0.8677966405782273), + Flogc: float64(0.1417978768189414), + }, + 100: { + Finvc: float64(0.8619528050060739), + Flogc: float64(0.14855476039031146), + }, + 101: { + Finvc: float64(0.8561872354420692), + Flogc: float64(0.1552661937658968), + }, + 102: { + Finvc: float64(0.8504983927816893), + Flogc: float64(0.16193275688146969), + }, + 103: { + Finvc: float64(0.8448844572790304), + Flogc: float64(0.16855539792220497), + }, + 104: { + Finvc: float64(0.8393442741575965), + Flogc: float64(0.1751343179947753), + }, + 105: { + Finvc: float64(0.8338762249349438), + Flogc: float64(0.1816702989864325), + }, + 106: { + Finvc: float64(0.8284789320557778), + Flogc: float64(0.18816387146023317), + }, + 107: { + Finvc: float64(0.8231510800065832), + Flogc: float64(0.1946155228479256), + }, + 108: { + Finvc: float64(0.8178913903778707), + Flogc: float64(0.20102572579389744), + }, + 109: { + Finvc: float64(0.8126984007245374), + Flogc: float64(0.2073952090795501), + }, + 110: { + Finvc: float64(0.8075710029460227), + Flogc: float64(0.21372429840596396), + }, + 111: { + Finvc: float64(0.8025078881160415), + Flogc: float64(0.2200135945981856), + }, + 112: { + Finvc: float64(0.7975077379364331), + Flogc: float64(0.22626374162859975), + }, + 113: { + Finvc: float64(0.792569604966373), + Flogc: float64(0.23247494747693054), + }, + 114: { + Finvc: float64(0.7876923641254114), + Flogc: float64(0.23864766620658884), + }, + 115: { + Finvc: float64(0.7828746724940998), + Flogc: float64(0.24478265647405806), + }, + 116: { + Finvc: float64(0.7781155388790811), + Flogc: float64(0.25088025827324145), + }, + 117: { + Finvc: float64(0.7734139557869777), + Flogc: float64(0.2569408552510595), + }, + 118: { + Finvc: float64(0.7687687179914933), + Flogc: float64(0.26296511155101143), + }, + 119: { + Finvc: float64(0.7641790698041854), + Flogc: float64(0.2689531327189343), + }, + 120: { + Finvc: float64(0.7596438763692399), + Flogc: float64(0.27490553924610595), + }, + 121: { + Finvc: float64(0.7551621951078668), + Flogc: float64(0.2808227248478943), + }, + 122: { + Finvc: float64(0.7507331780216866), + Flogc: float64(0.286704979267256), + }, + 123: { + Finvc: float64(0.7463557196361751), + Flogc: float64(0.29255295645509705), + }, + 124: { + Finvc: float64(0.7420289364869653), + Flogc: float64(0.2983670386142876), + }, + 125: { + Finvc: float64(0.7377521537065876), + Flogc: float64(0.30414734587282055), + }, + 126: { + Finvc: float64(0.7335242966002608), + Flogc: float64(0.30989455774829366), + }, + 127: { + Finvc: float64(0.729344777457841), + Flogc: float64(0.31560871301871884), + }, + }, +} + +var X__logf_data = Tlogf_data{ + Ftab: [16]struct { + Finvc float64 + Flogc float64 + }{ + 0: { + Finvc: float64(1.398907162146528), + Flogc: -Float64FromFloat64(0.33569133332882284), + }, + 1: { + Finvc: float64(1.3403141896637998), + Flogc: -Float64FromFloat64(0.2929040563774074), + }, + 2: { + Finvc: float64(1.286432210124115), + Flogc: -Float64FromFloat64(0.2518726580937369), + }, + 3: { + Finvc: float64(1.2367150214269895), + Flogc: -Float64FromFloat64(0.21245868807117255), + }, + 4: { + Finvc: float64(1.1906977166711752), + Flogc: -Float64FromFloat64(0.17453945183745634), + }, + 5: { + Finvc: float64(1.1479821020556429), + Flogc: -Float64FromFloat64(0.1380057072319758), + }, + 6: { + Finvc: float64(1.1082251448272158), + Flogc: -Float64FromFloat64(0.10275976698545139), + }, + 7: { + Finvc: float64(1.0711297413057381), + Flogc: -Float64FromFloat64(0.06871392447020525), + }, + 8: { + Finvc: float64(1.036437278977283), + Flogc: -Float64FromFloat64(0.0357891387398228), + }, + 9: { + Finvc: float64(1), + }, + 10: { + Finvc: float64(0.9492859795739057), + Flogc: float64(0.05204517742929496), + }, + 11: { + Finvc: float64(0.8951049428609004), + Flogc: float64(0.11081431298787942), + }, + 12: { + Finvc: float64(0.8476821620351103), + Flogc: float64(0.1652495223695143), + }, + 13: { + Finvc: float64(0.8050314851692001), + Flogc: float64(0.21687389031699977), + }, + 14: { + Finvc: float64(0.7664671008843108), + Flogc: float64(0.2659635028121397), + }, + 15: { + Finvc: float64(0.731428603316328), + Flogc: float64(0.3127556664073557), + }, + }, + Fln2: float64(0.6931471805599453), + Fpoly: [3]float64{ + 0: -Float64FromFloat64(0.25089342214237154), + 1: float64(0.333456765744066), + 2: -Float64FromFloat64(0.4999997485802103), + }, +} + +var X__optpos int32 + +var Xoptreset int32 + +var X__pow_log_data = Tpow_log_data{ + Fln2hi: float64(0.6931471805598903), + Fln2lo: float64(5.497923018708371e-14), + Fpoly: [7]float64{ + 0: -Float64FromFloat64(0.5), + 1: float64(Float64FromFloat64(0.3333333333333339) * float64(-Int32FromInt32(2))), + 2: float64(-Float64FromFloat64(0.25000000000000033) * float64(-Int32FromInt32(2))), + 3: float64(Float64FromFloat64(0.1999999998830994) * Float64FromInt32(4)), + 4: float64(-Float64FromFloat64(0.16666666658719348) * Float64FromInt32(4)), + 5: float64(Float64FromFloat64(0.14286370355743763) * float64(-Int32FromInt32(8))), + 6: float64(-Float64FromFloat64(0.12500519079594427) * float64(-Int32FromInt32(8))), + }, + Ftab: [128]struct { + Finvc float64 + Fpad float64 + Flogc float64 + Flogctail float64 + }{ + 0: { + Finvc: float64(1.4140625), + Flogc: -Float64FromFloat64(0.3464667673462145), + Flogctail: float64(5.929407345889625e-15), + }, + 1: { + Finvc: float64(1.40625), + Flogc: -Float64FromFloat64(0.34092658697056777), + Flogctail: -Float64FromFloat64(2.544157440035963e-14), + }, + 2: { + Finvc: float64(1.3984375), + Flogc: -Float64FromFloat64(0.3353555419211034), + Flogctail: -Float64FromFloat64(3.443525940775045e-14), + }, + 3: { + Finvc: float64(1.390625), + Flogc: -Float64FromFloat64(0.3297532863724655), + Flogctail: -Float64FromFloat64(2.500123826022799e-15), + }, + 4: { + Finvc: float64(1.3828125), + Flogc: -Float64FromFloat64(0.32411946865420305), + Flogctail: -Float64FromFloat64(8.929337133850617e-15), + }, + 5: { + Finvc: float64(1.375), + Flogc: -Float64FromFloat64(0.31845373111855224), + Flogctail: float64(1.7625431312172662e-14), + }, + 6: { + Finvc: float64(1.3671875), + Flogc: -Float64FromFloat64(0.31275571000389846), + Flogctail: float64(1.5688303180062087e-15), + }, + 7: { + Finvc: float64(1.359375), + Flogc: -Float64FromFloat64(0.3070250352949415), + Flogctail: float64(2.9655274673691784e-14), + }, + 8: { + Finvc: float64(1.3515625), + Flogc: -Float64FromFloat64(0.3012613305781997), + Flogctail: float64(3.7923164802093147e-14), + }, + 9: { + Finvc: float64(1.34375), + Flogc: -Float64FromFloat64(0.2954642128938758), + Flogctail: float64(3.993416384387844e-14), + }, + 10: { + Finvc: float64(1.3359375), + Flogc: -Float64FromFloat64(0.28963329258306203), + Flogctail: float64(1.9352855826489123e-14), + }, + 11: { + Finvc: float64(1.3359375), + Flogc: -Float64FromFloat64(0.28963329258306203), + Flogctail: float64(1.9352855826489123e-14), + }, + 12: { + Finvc: float64(1.328125), + Flogc: -Float64FromFloat64(0.28376817313062475), + Flogctail: -Float64FromFloat64(1.9852665484979036e-14), + }, + 13: { + Finvc: float64(1.3203125), + Flogc: -Float64FromFloat64(0.27786845100342816), + Flogctail: -Float64FromFloat64(2.814323765595281e-14), + }, + 14: { + Finvc: float64(1.3125), + Flogc: -Float64FromFloat64(0.2719337154836694), + Flogctail: float64(2.7643769993528702e-14), + }, + 15: { + Finvc: float64(1.3046875), + Flogc: -Float64FromFloat64(0.2659635484970977), + Flogctail: -Float64FromFloat64(4.025092402293806e-14), + }, + 16: { + Finvc: float64(1.296875), + Flogc: -Float64FromFloat64(0.25995752443691345), + Flogctail: -Float64FromFloat64(1.2621729398885316e-14), + }, + 17: { + Finvc: float64(1.2890625), + Flogc: -Float64FromFloat64(0.25391520998095984), + Flogctail: -Float64FromFloat64(3.600176732637335e-15), + }, + 18: { + Finvc: float64(1.2890625), + Flogc: -Float64FromFloat64(0.25391520998095984), + Flogctail: -Float64FromFloat64(3.600176732637335e-15), + }, + 19: { + Finvc: float64(1.28125), + Flogc: -Float64FromFloat64(0.2478361639045943), + Flogctail: float64(1.3029797173308663e-14), + }, + 20: { + Finvc: float64(1.2734375), + Flogc: -Float64FromFloat64(0.2417199368871934), + Flogctail: float64(4.8230289429940886e-14), + }, + 21: { + Finvc: float64(1.265625), + Flogc: -Float64FromFloat64(0.23556607131274632), + Flogctail: -Float64FromFloat64(2.0592242769647135e-14), + }, + 22: { + Finvc: float64(1.2578125), + Flogc: -Float64FromFloat64(0.22937410106487732), + Flogctail: float64(3.149265065191484e-14), + }, + 23: { + Finvc: float64(1.25), + Flogc: -Float64FromFloat64(0.22314355131425145), + Flogctail: float64(4.169796584527195e-14), + }, + 24: { + Finvc: float64(1.25), + Flogc: -Float64FromFloat64(0.22314355131425145), + Flogctail: float64(4.169796584527195e-14), + }, + 25: { + Finvc: float64(1.2421875), + Flogc: -Float64FromFloat64(0.21687393830063684), + Flogctail: float64(2.2477465222466186e-14), + }, + 26: { + Finvc: float64(1.234375), + Flogc: -Float64FromFloat64(0.21056476910735), + Flogctail: float64(3.6507188831790577e-16), + }, + 27: { + Finvc: float64(1.2265625), + Flogc: -Float64FromFloat64(0.2042155414286526), + Flogctail: -Float64FromFloat64(3.827767260205414e-14), + }, + 28: { + Finvc: float64(1.2265625), + Flogc: -Float64FromFloat64(0.2042155414286526), + Flogctail: -Float64FromFloat64(3.827767260205414e-14), + }, + 29: { + Finvc: float64(1.21875), + Flogc: -Float64FromFloat64(0.19782574332987224), + Flogctail: -Float64FromFloat64(4.7641388950792196e-14), + }, + 30: { + Finvc: float64(1.2109375), + Flogc: -Float64FromFloat64(0.19139485299967873), + Flogctail: float64(4.9278276214647115e-14), + }, + 31: { + Finvc: float64(1.203125), + Flogc: -Float64FromFloat64(0.18492233849406148), + Flogctail: float64(4.9485167661250996e-14), + }, + 32: { + Finvc: float64(1.203125), + Flogc: -Float64FromFloat64(0.18492233849406148), + Flogctail: float64(4.9485167661250996e-14), + }, + 33: { + Finvc: float64(1.1953125), + Flogc: -Float64FromFloat64(0.1784076574728033), + Flogctail: -Float64FromFloat64(1.5003333854266542e-14), + }, + 34: { + Finvc: float64(1.1875), + Flogc: -Float64FromFloat64(0.17185025692663203), + Flogctail: -Float64FromFloat64(2.7194441649495324e-14), + }, + 35: { + Finvc: float64(1.1875), + Flogc: -Float64FromFloat64(0.17185025692663203), + Flogctail: -Float64FromFloat64(2.7194441649495324e-14), + }, + 36: { + Finvc: float64(1.1796875), + Flogc: -Float64FromFloat64(0.1652495728952772), + Flogctail: -Float64FromFloat64(2.99659267292569e-14), + }, + 37: { + Finvc: float64(1.171875), + Flogc: -Float64FromFloat64(0.15860503017665906), + Flogctail: float64(2.0472357800461955e-14), + }, + 38: { + Finvc: float64(1.171875), + Flogc: -Float64FromFloat64(0.15860503017665906), + Flogctail: float64(2.0472357800461955e-14), + }, + 39: { + Finvc: float64(1.1640625), + Flogc: -Float64FromFloat64(0.15191604202584585), + Flogctail: float64(3.879296723063646e-15), + }, + 40: { + Finvc: float64(1.15625), + Flogc: -Float64FromFloat64(0.1451820098444614), + Flogctail: -Float64FromFloat64(3.6506824353335045e-14), + }, + 41: { + Finvc: float64(1.1484375), + Flogc: -Float64FromFloat64(0.13840232285906495), + Flogctail: -Float64FromFloat64(5.4183331379008994e-14), + }, + 42: { + Finvc: float64(1.1484375), + Flogc: -Float64FromFloat64(0.13840232285906495), + Flogctail: -Float64FromFloat64(5.4183331379008994e-14), + }, + 43: { + Finvc: float64(1.140625), + Flogc: -Float64FromFloat64(0.131576357788731), + Flogctail: float64(1.1729485484531301e-14), + }, + 44: { + Finvc: float64(1.140625), + Flogc: -Float64FromFloat64(0.131576357788731), + Flogctail: float64(1.1729485484531301e-14), + }, + 45: { + Finvc: float64(1.1328125), + Flogc: -Float64FromFloat64(0.12470347850091912), + Flogctail: -Float64FromFloat64(3.811763084710266e-14), + }, + 46: { + Finvc: float64(1.125), + Flogc: -Float64FromFloat64(0.11778303565643), + Flogctail: float64(4.654729747598445e-14), + }, + 47: { + Finvc: float64(1.125), + Flogc: -Float64FromFloat64(0.11778303565643), + Flogctail: float64(4.654729747598445e-14), + }, + 48: { + Finvc: float64(1.1171875), + Flogc: -Float64FromFloat64(0.11081436634026431), + Flogctail: -Float64FromFloat64(2.5799991283069902e-14), + }, + 49: { + Finvc: float64(1.109375), + Flogc: -Float64FromFloat64(0.10379679368168127), + Flogctail: float64(3.7700471749674615e-14), + }, + 50: { + Finvc: float64(1.109375), + Flogc: -Float64FromFloat64(0.10379679368168127), + Flogctail: float64(3.7700471749674615e-14), + }, + 51: { + Finvc: float64(1.1015625), + Flogc: -Float64FromFloat64(0.09672962645856842), + Flogctail: float64(1.7306161136093256e-14), + }, + 52: { + Finvc: float64(1.1015625), + Flogc: -Float64FromFloat64(0.09672962645856842), + Flogctail: float64(1.7306161136093256e-14), + }, + 53: { + Finvc: float64(1.09375), + Flogc: -Float64FromFloat64(0.089612158689647), + Flogctail: -Float64FromFloat64(4.012913552726574e-14), + }, + 54: { + Finvc: float64(1.0859375), + Flogc: -Float64FromFloat64(0.08244366921110213), + Flogctail: float64(2.7541708360737882e-14), + }, + 55: { + Finvc: float64(1.0859375), + Flogc: -Float64FromFloat64(0.08244366921110213), + Flogctail: float64(2.7541708360737882e-14), + }, + 56: { + Finvc: float64(1.078125), + Flogc: -Float64FromFloat64(0.07522342123763792), + Flogctail: float64(5.0396178134370583e-14), + }, + 57: { + Finvc: float64(1.078125), + Flogc: -Float64FromFloat64(0.07522342123763792), + Flogctail: float64(5.0396178134370583e-14), + }, + 58: { + Finvc: float64(1.0703125), + Flogc: -Float64FromFloat64(0.06795066190852594), + Flogctail: float64(1.8195060030168815e-14), + }, + 59: { + Finvc: float64(1.0625), + Flogc: -Float64FromFloat64(0.06062462181648698), + Flogctail: float64(5.213620639136504e-14), + }, + 60: { + Finvc: float64(1.0625), + Flogc: -Float64FromFloat64(0.06062462181648698), + Flogctail: float64(5.213620639136504e-14), + }, + 61: { + Finvc: float64(1.0546875), + Flogc: -Float64FromFloat64(0.053244514518837605), + Flogctail: float64(2.532168943117445e-14), + }, + 62: { + Finvc: float64(1.0546875), + Flogc: -Float64FromFloat64(0.053244514518837605), + Flogctail: float64(2.532168943117445e-14), + }, + 63: { + Finvc: float64(1.046875), + Flogc: -Float64FromFloat64(0.045809536031242715), + Flogctail: -Float64FromFloat64(5.148849572685811e-14), + }, + 64: { + Finvc: float64(1.046875), + Flogc: -Float64FromFloat64(0.045809536031242715), + Flogctail: -Float64FromFloat64(5.148849572685811e-14), + }, + 65: { + Finvc: float64(1.0390625), + Flogc: -Float64FromFloat64(0.038318864302141264), + Flogctail: float64(4.6652946995830086e-15), + }, + 66: { + Finvc: float64(1.0390625), + Flogc: -Float64FromFloat64(0.038318864302141264), + Flogctail: float64(4.6652946995830086e-15), + }, + 67: { + Finvc: float64(1.03125), + Flogc: -Float64FromFloat64(0.03077165866670839), + Flogctail: -Float64FromFloat64(4.529814257790929e-14), + }, + 68: { + Finvc: float64(1.03125), + Flogc: -Float64FromFloat64(0.03077165866670839), + Flogctail: -Float64FromFloat64(4.529814257790929e-14), + }, + 69: { + Finvc: float64(1.0234375), + Flogc: -Float64FromFloat64(0.023167059281490765), + Flogctail: -Float64FromFloat64(4.361324067851568e-14), + }, + 70: { + Finvc: float64(1.015625), + Flogc: -Float64FromFloat64(0.015504186535963527), + Flogctail: -Float64FromFloat64(1.7274567499706107e-15), + }, + 71: { + Finvc: float64(1.015625), + Flogc: -Float64FromFloat64(0.015504186535963527), + Flogctail: -Float64FromFloat64(1.7274567499706107e-15), + }, + 72: { + Finvc: float64(1.0078125), + Flogc: -Float64FromFloat64(0.0077821404420319595), + Flogctail: -Float64FromFloat64(2.298941004620351e-14), + }, + 73: { + Finvc: float64(1.0078125), + Flogc: -Float64FromFloat64(0.0077821404420319595), + Flogctail: -Float64FromFloat64(2.298941004620351e-14), + }, + 74: { + Finvc: float64(1), + }, + 75: { + Finvc: float64(1), + }, + 76: { + Finvc: float64(0.9921875), + Flogc: float64(0.007843177461040796), + Flogctail: -Float64FromFloat64(1.4902732911301337e-14), + }, + 77: { + Finvc: float64(0.984375), + Flogc: float64(0.01574835696817445), + Flogctail: -Float64FromFloat64(3.527980389655325e-14), + }, + 78: { + Finvc: float64(0.9765625), + Flogc: float64(0.023716526617363343), + Flogctail: -Float64FromFloat64(4.730054772033249e-14), + }, + 79: { + Finvc: float64(0.96875), + Flogc: float64(0.03174869831457272), + Flogctail: float64(7.580310369375161e-15), + }, + 80: { + Finvc: float64(0.9609375), + Flogc: float64(0.039845908547249564), + Flogctail: -Float64FromFloat64(4.9893776716773285e-14), + }, + 81: { + Finvc: float64(0.953125), + Flogc: float64(0.048009219186383234), + Flogctail: -Float64FromFloat64(2.262629393030674e-14), + }, + 82: { + Finvc: float64(0.9453125), + Flogc: float64(0.056239718322899535), + Flogctail: -Float64FromFloat64(2.345674491018699e-14), + }, + 83: { + Finvc: float64(0.94140625), + Flogc: float64(0.06038051098892083), + Flogctail: -Float64FromFloat64(1.3352588834854848e-14), + }, + 84: { + Finvc: float64(0.93359375), + Flogc: float64(0.06871389254808946), + Flogctail: -Float64FromFloat64(3.765296820388875e-14), + }, + 85: { + Finvc: float64(0.92578125), + Flogc: float64(0.07711730334438016), + Flogctail: float64(5.1128335719851986e-14), + }, + 86: { + Finvc: float64(0.91796875), + Flogc: float64(0.08559193033545398), + Flogctail: -Float64FromFloat64(5.046674438470119e-14), + }, + 87: { + Finvc: float64(0.9140625), + Flogc: float64(0.08985632912185793), + Flogctail: float64(3.1218748807418837e-15), + }, + 88: { + Finvc: float64(0.90625), + Flogc: float64(0.09844007281321865), + Flogctail: float64(3.3871241029241416e-14), + }, + 89: { + Finvc: float64(0.8984375), + Flogc: float64(0.10709813555638448), + Flogctail: -Float64FromFloat64(1.7376727386423858e-14), + }, + 90: { + Finvc: float64(0.89453125), + Flogc: float64(0.11145544092528326), + Flogctail: float64(3.957125899799804e-14), + }, + 91: { + Finvc: float64(0.88671875), + Flogc: float64(0.12022742699821265), + Flogctail: -Float64FromFloat64(5.2849453521890294e-14), + }, + 92: { + Finvc: float64(0.8828125), + Flogc: float64(0.12464244520731427), + Flogctail: -Float64FromFloat64(3.767012502308738e-14), + }, + 93: { + Finvc: float64(0.875), + Flogc: float64(0.13353139262449076), + Flogctail: float64(3.1859736349078334e-14), + }, + 94: { + Finvc: float64(0.87109375), + Flogc: float64(0.13800567301939282), + Flogctail: float64(5.0900642926060466e-14), + }, + 95: { + Finvc: float64(0.86328125), + Flogc: float64(0.14701474296180095), + Flogctail: float64(8.710783796122478e-15), + }, + 96: { + Finvc: float64(0.859375), + Flogc: float64(0.15154989812720032), + Flogctail: float64(6.157896229122976e-16), + }, + 97: { + Finvc: float64(0.8515625), + Flogc: float64(0.16068238169043525), + Flogctail: float64(3.821577743916796e-14), + }, + 98: { + Finvc: float64(0.84765625), + Flogc: float64(0.16528009093906348), + Flogctail: float64(3.9440046718453496e-14), + }, + 99: { + Finvc: float64(0.83984375), + Flogc: float64(0.17453941635187675), + Flogctail: float64(2.2924522154618074e-14), + }, + 100: { + Finvc: float64(0.8359375), + Flogc: float64(0.17920142945774842), + Flogctail: -Float64FromFloat64(3.742530094732263e-14), + }, + 101: { + Finvc: float64(0.83203125), + Flogc: float64(0.18388527877016259), + Flogctail: -Float64FromFloat64(2.5223102140407338e-14), + }, + 102: { + Finvc: float64(0.82421875), + Flogc: float64(0.1933193110035063), + Flogctail: -Float64FromFloat64(1.0320443688698849e-14), + }, + 103: { + Finvc: float64(0.8203125), + Flogc: float64(0.19806991376208316), + Flogctail: float64(1.0634128304268335e-14), + }, + 104: { + Finvc: float64(0.8125), + Flogc: float64(0.20763936477828793), + Flogctail: -Float64FromFloat64(4.3425422595242564e-14), + }, + 105: { + Finvc: float64(0.80859375), + Flogc: float64(0.21245865121420593), + Flogctail: -Float64FromFloat64(1.2527395755711364e-14), + }, + 106: { + Finvc: float64(0.8046875), + Flogc: float64(0.21730127569003344), + Flogctail: -Float64FromFloat64(5.204008743405884e-14), + }, + 107: { + Finvc: float64(0.80078125), + Flogc: float64(0.22216746534115828), + Flogctail: -Float64FromFloat64(3.979844515951702e-15), + }, + 108: { + Finvc: float64(0.79296875), + Flogc: float64(0.2319714654378231), + Flogctail: -Float64FromFloat64(4.7955860343296286e-14), + }, + 109: { + Finvc: float64(0.7890625), + Flogc: float64(0.2369097470783572), + Flogctail: float64(5.015686013791602e-16), + }, + 110: { + Finvc: float64(0.78515625), + Flogc: float64(0.24187253642048745), + Flogctail: -Float64FromFloat64(7.252318953240293e-16), + }, + 111: { + Finvc: float64(0.78125), + Flogc: float64(0.2468600779315011), + Flogctail: float64(2.4688324156011588e-14), + }, + 112: { + Finvc: float64(0.7734375), + Flogc: float64(0.2569104137850218), + Flogctail: float64(5.465121253624792e-15), + }, + 113: { + Finvc: float64(0.76953125), + Flogc: float64(0.26197371574153294), + Flogctail: float64(4.102651071698446e-14), + }, + 114: { + Finvc: float64(0.765625), + Flogc: float64(0.2670627852490952), + Flogctail: -Float64FromFloat64(4.996736502345936e-14), + }, + 115: { + Finvc: float64(0.76171875), + Flogc: float64(0.27217788591576664), + Flogctail: float64(4.903580708156347e-14), + }, + 116: { + Finvc: float64(0.7578125), + Flogc: float64(0.27731928541618345), + Flogctail: float64(5.089628039500759e-14), + }, + 117: { + Finvc: float64(0.75390625), + Flogc: float64(0.28248725557466514), + Flogctail: float64(1.1782016386565151e-14), + }, + 118: { + Finvc: float64(0.74609375), + Flogc: float64(0.29290401643288533), + Flogctail: float64(4.727452940514406e-14), + }, + 119: { + Finvc: float64(0.7421875), + Flogc: float64(0.29815337231912054), + Flogctail: -Float64FromFloat64(4.4204083338755686e-14), + }, + 120: { + Finvc: float64(0.73828125), + Flogc: float64(0.3034304294199046), + Flogctail: float64(1.548345993498083e-14), + }, + 121: { + Finvc: float64(0.734375), + Flogc: float64(0.30873548164959175), + Flogctail: float64(2.1522127491642888e-14), + }, + 122: { + Finvc: float64(0.73046875), + Flogc: float64(0.3140688276249648), + Flogctail: float64(1.1054030169005386e-14), + }, + 123: { + Finvc: float64(0.7265625), + Flogc: float64(0.31943077076641657), + Flogctail: -Float64FromFloat64(5.534326352070679e-14), + }, + 124: { + Finvc: float64(0.72265625), + Flogc: float64(0.3248216194012912), + Flogctail: -Float64FromFloat64(5.351646604259541e-14), + }, + 125: { + Finvc: float64(0.71875), + Flogc: float64(0.33024168687052224), + Flogctail: float64(5.4612144489920215e-14), + }, + 126: { + Finvc: float64(0.71484375), + Flogc: float64(0.3356912916381134), + Flogctail: float64(2.8136969901227338e-14), + }, + 127: { + Finvc: float64(0.7109375), + Flogc: float64(0.3411707574027787), + Flogctail: -Float64FromFloat64(1.156568624616423e-14), + }, + }, +} + +var X__powf_log2_data = Tpowf_log2_data{ + Ftab: [16]struct { + Finvc float64 + Flogc float64 + }{ + 0: { + Finvc: float64(1.398907162146528), + Flogc: float64(-Float64FromFloat64(0.48430022186289673) * float64(Int32FromInt32(1)<> int32(32)) + **(**int32)(__ccgo_up(expt)) = Int32FromUint32(hx>>Int32FromInt32(20) - Uint32FromInt32(Int32FromInt32(0x3ff)+Int32FromInt32(1023)) + _k) + v1 = uint64(hx&Uint32FromInt32(0xfffff)|Uint32FromInt32((Int32FromInt32(0x3ff)+Int32FromInt32(1023))<= ln(DBL_MAX)) +// * where care is needed to avoid overflow. +// * +// * The present implementation is narrowly tailored for our hyperbolic and +// * exponential functions. We assume expt is small (0 or -1), and the caller +// * has filtered out very large x, for which overflow would be inevitable. +// */ +func X__ldexp_cexp(tls *TLS, z complex128, expt int32) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v expt=%v, (%v:)", tls, z, expt, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var exp_x, scale1, scale2, x, y float64 + var half_expt int32 + var v1 Tuint64_t + var v3 [2]float64 + var _ /* ex_expt at bp+0 */ int32 + _, _, _, _, _, _, _, _ = exp_x, half_expt, scale1, scale2, x, y, v1, v3 + x = Float64FromComplex128(z) + y = +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] + exp_x = ___frexp_exp(tls, x, bp) + expt = expt + **(**int32)(__ccgo_up(bp)) + /* + * Arrange so that scale1 * scale2 == 2**expt. We use this to + * compensate for scalbn being horrendously slow. + */ + half_expt = expt / int32(2) + v1 = Uint64FromInt32((Int32FromInt32(0x3ff)+half_expt)<>Int32FromInt32(23) - Uint32FromInt32(Int32FromInt32(0x7f)+Int32FromInt32(127)) + _k1) + v1 = hx&uint32(0x7fffff) | Uint32FromInt32((Int32FromInt32(0x7f)+Int32FromInt32(127))< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var exp_x, scale1, scale2, x, y float32 + var half_expt int32 + var v1 Tuint32_t + var v3 [2]float32 + var _ /* ex_expt at bp+0 */ int32 + _, _, _, _, _, _, _, _ = exp_x, half_expt, scale1, scale2, x, y, v1, v3 + x = Float32FromComplex64(z) + y = +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] + exp_x = ___frexp_expf(tls, x, bp) + expt = expt + **(**int32)(__ccgo_up(bp)) + half_expt = expt / int32(2) + v1 = Uint32FromInt32((int32(0x7f) + half_expt) << int32(23)) + scale1 = *(*float32)(unsafe.Pointer(&v1)) + half_expt = expt - half_expt + v1 = Uint32FromInt32((int32(0x7f) + half_expt) << int32(23)) + scale2 = *(*float32)(unsafe.Pointer(&v1)) + v3 = [2]float32{ + 0: float32(float32(float32(Xcosf(tls, y)*exp_x)*scale1) * scale2), + 1: float32(float32(float32(Xsinf(tls, y)*exp_x)*scale1) * scale2), + } + return *(*complex64)(unsafe.Pointer(&v3)) +} + +func Xcabs(tls *TLS, z complex128) (r float64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xhypot(tls, Float64FromComplex128(z), +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)]) +} + +func Xcabsf(tls *TLS, z complex64) (r float32) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xhypotf(tls, Float32FromComplex64(z), +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)]) +} + +func Xcabsl(tls *TLS, z complex128) (r float64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xcabs(tls, Complex128FromComplex128(z)) +} + +const M_PI_21 = 1.5707963267948966 + +// FIXME: Hull et al. "Implementing the complex arcsine and arccosine functions using exception handling" 1997 + +/* acos(z) = pi/2 - asin(z) */ + +func Xcacos(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float64 + _ = v1 + z = Xcasin(tls, z) + v1 = [2]float64{ + 0: float64(1.5707963267948966) - Float64FromComplex128(z), + 1: -+(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +// FIXME + +var _float_pi_2 = float32(1.5707963267948966) + +func Xcacosf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float32 + _ = v1 + z = Xcasinf(tls, z) + v1 = [2]float32{ + 0: _float_pi_2 - Float32FromComplex64(z), + 1: -+(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + } + return *(*complex64)(unsafe.Pointer(&v1)) +} + +const M_PI_22 = 0 + +/* acosh(z) = i acos(z) */ + +func Xcacosh(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var zineg int32 + var v1 uint64 + var v3 [2]float64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _, _, _ = zineg, v1, v3 + *(*float64)(unsafe.Pointer(bp)) = +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + zineg = Int32FromUint64(v1 >> Int32FromInt32(63)) + z = Xcacos(tls, z) + if zineg != 0 { + v3 = [2]float64{ + 0: +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: -Float64FromComplex128(z), + } + return *(*complex128)(unsafe.Pointer(&v3)) + } else { + v3 = [2]float64{ + 0: -+(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: Float64FromComplex128(z), + } + return *(*complex128)(unsafe.Pointer(&v3)) + } + return r +} + +func Xcacoshf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var zineg int32 + var v1 uint32 + var v3 [2]float32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _, _, _ = zineg, v1, v3 + *(*float32)(unsafe.Pointer(bp)) = +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + zineg = Int32FromUint32(v1 >> Int32FromInt32(31)) + z = Xcacosf(tls, z) + if zineg != 0 { + v3 = [2]float32{ + 0: +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: -Float32FromComplex64(z), + } + return *(*complex64)(unsafe.Pointer(&v3)) + } else { + v3 = [2]float32{ + 0: -+(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: Float32FromComplex64(z), + } + return *(*complex64)(unsafe.Pointer(&v3)) + } + return r +} + +func Xcacoshl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcacosh(tls, Complex128FromComplex128(z))) +} + +func Xcacosl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcacos(tls, Complex128FromComplex128(z))) +} + +func Xcarg(tls *TLS, z complex128) (r float64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xatan2(tls, +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], Float64FromComplex128(z)) +} + +func Xcargf(tls *TLS, z complex64) (r float32) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xatan2f(tls, +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], Float32FromComplex64(z)) +} + +func Xcargl(tls *TLS, z complex128) (r float64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xcarg(tls, Complex128FromComplex128(z)) +} + +// FIXME + +/* asin(z) = -i log(i z + sqrt(1 - z*z)) */ + +func Xcasin(tls *TLS, z complex128) (r1 complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, w complex128 + var x, y float64 + var v1, v2 [2]float64 + _, _, _, _, _, _ = r, w, x, y, v1, v2 + x = Float64FromComplex128(z) + y = +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] + v1 = [2]float64{ + 0: float64(1) - float64((x-y)*(x+y)), + 1: float64(float64(-Float64FromFloat64(2)*x) * y), + } + w = *(*complex128)(unsafe.Pointer(&v1)) + v1 = [2]float64{ + 0: -y, + 1: x, + } + r = Xclog(tls, *(*complex128)(unsafe.Pointer(&v1))+Xcsqrt(tls, w)) + v2 = [2]float64{ + 0: +(*(*[2]float64)(unsafe.Pointer(&r)))[int32(1)], + 1: -Float64FromComplex128(r), + } + return *(*complex128)(unsafe.Pointer(&v2)) +} + +// FIXME + +func Xcasinf(tls *TLS, z complex64) (r1 complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, w complex64 + var x, y float32 + var v1, v2 [2]float32 + _, _, _, _, _, _ = r, w, x, y, v1, v2 + x = Float32FromComplex64(z) + y = +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] + v1 = [2]float32{ + 0: float32(Float64FromFloat64(1) - float64((x-y)*(x+y))), + 1: float32(float64(float64(-Float64FromFloat64(2)*float64(x)) * float64(y))), + } + w = *(*complex64)(unsafe.Pointer(&v1)) + v1 = [2]float32{ + 0: -y, + 1: x, + } + r = Xclogf(tls, *(*complex64)(unsafe.Pointer(&v1))+Xcsqrtf(tls, w)) + v2 = [2]float32{ + 0: +(*(*[2]float32)(unsafe.Pointer(&r)))[int32(1)], + 1: -Float32FromComplex64(r), + } + return *(*complex64)(unsafe.Pointer(&v2)) +} + +/* asinh(z) = -i asin(i z) */ + +func Xcasinh(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float64 + _ = v1 + v1 = [2]float64{ + 0: -+(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: Float64FromComplex128(z), + } + z = Xcasin(tls, *(*complex128)(unsafe.Pointer(&v1))) + v1 = [2]float64{ + 0: +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: -Float64FromComplex128(z), + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +func Xcasinhf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float32 + _ = v1 + v1 = [2]float32{ + 0: -+(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: Float32FromComplex64(z), + } + z = Xcasinf(tls, *(*complex64)(unsafe.Pointer(&v1))) + v1 = [2]float32{ + 0: +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: -Float32FromComplex64(z), + } + return *(*complex64)(unsafe.Pointer(&v1)) +} + +func Xcasinhl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcasinh(tls, Complex128FromComplex128(z))) +} + +func Xcasinl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcasin(tls, Complex128FromComplex128(z))) +} + +const MAXNUM = 0 +const M_PI1 = 3.141592653589793 + +var _DP1 = float64(3.141592651605606) +var _DP2 = float64(1.9841871479187034e-09) +var _DP3 = float64(1.1442377452219664e-17) + +func __redupi(tls *TLS, x float64) (r float64) { + var i int64 + var t float64 + _, _ = i, t + t = x / float64(3.141592653589793) + if t >= float64(0) { + t = t + float64(0.5) + } else { + t = t - float64(0.5) + } + i = int64(t) /* the multiple */ + t = float64(i) + t = x - float64(t*_DP1) - float64(t*_DP2) - float64(t*_DP3) + return t +} + +func Xcatan(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, t, x, x2, y float64 + var w complex128 + var v1 [2]float64 + _, _, _, _, _, _, _ = a, t, w, x, x2, y, v1 + x = Float64FromComplex128(z) + y = +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] + x2 = float64(x * x) + a = float64(1) - x2 - float64(y*y) + t = float64(float64(0.5) * Xatan2(tls, float64(float64(2)*x), a)) + w = Complex128FromFloat64(__redupi(tls, t)) + t = y - float64(1) + a = x2 + float64(t*t) + t = y + float64(1) + a = (x2 + float64(t*t)) / a + v1 = [2]float64{ + 0: Float64FromComplex128(w), + 1: float64(float64(0.25) * Xlog(tls, a)), + } + w = *(*complex128)(unsafe.Pointer(&v1)) + return w +} + +const MAXNUMF = 0 + +var _DP11 = float64(3.140625) +var _DP21 = float64(0.0009675025939941406) +var _DP31 = float64(1.5099579909783765e-07) + +var _float_pi = float32(3.141592653589793) + +func __redupif(tls *TLS, xx float32) (r float32) { + var i int64 + var t, x float32 + _, _, _ = i, t, x + x = xx + t = x / _float_pi + if t >= Float32FromFloat32(0) { + t = t + Float32FromFloat32(0.5) + } else { + t = t - Float32FromFloat32(0.5) + } + i = int64(t) /* the multiple */ + t = float32(i) + t = float32(float64(x) - float64(float64(t)*_DP11) - float64(float64(t)*_DP21) - float64(float64(t)*_DP31)) + return t +} + +func Xcatanf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, t, x, x2, y float32 + var w complex64 + var v1 [2]float32 + _, _, _, _, _, _, _ = a, t, w, x, x2, y, v1 + x = Float32FromComplex64(z) + y = +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] + x2 = float32(x * x) + a = Float32FromFloat32(1) - x2 - float32(y*y) + t = float32(Float32FromFloat32(0.5) * Xatan2f(tls, float32(Float32FromFloat32(2)*x), a)) + w = Complex64FromFloat32(__redupif(tls, t)) + t = y - Float32FromFloat32(1) + a = x2 + float32(t*t) + t = y + Float32FromFloat32(1) + a = (x2 + float32(t*t)) / a + v1 = [2]float32{ + 0: Float32FromComplex64(w), + 1: float32(Float32FromFloat32(0.25) * Xlogf(tls, a)), + } + w = *(*complex64)(unsafe.Pointer(&v1)) + return w +} + +const M_PI2 = 0 + +/* atanh = -i atan(i z) */ + +func Xcatanh(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float64 + _ = v1 + v1 = [2]float64{ + 0: -+(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: Float64FromComplex128(z), + } + z = Xcatan(tls, *(*complex128)(unsafe.Pointer(&v1))) + v1 = [2]float64{ + 0: +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: -Float64FromComplex128(z), + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +func Xcatanhf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float32 + _ = v1 + v1 = [2]float32{ + 0: -+(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: Float32FromComplex64(z), + } + z = Xcatanf(tls, *(*complex64)(unsafe.Pointer(&v1))) + v1 = [2]float32{ + 0: +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: -Float32FromComplex64(z), + } + return *(*complex64)(unsafe.Pointer(&v1)) +} + +func Xcatanhl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcatanh(tls, Complex128FromComplex128(z))) +} + +func Xcatanl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcatan(tls, Complex128FromComplex128(z))) +} + +/* cos(z) = cosh(i z) */ + +func Xccos(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float64 + _ = v1 + v1 = [2]float64{ + 0: -+(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: Float64FromComplex128(z), + } + return Xccosh(tls, *(*complex128)(unsafe.Pointer(&v1))) +} + +func Xccosf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float32 + _ = v1 + v1 = [2]float32{ + 0: -+(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: Float32FromComplex64(z), + } + return Xccoshf(tls, *(*complex64)(unsafe.Pointer(&v1))) +} + +var _huge = float64(8.98846567431158e+307) + +func Xccosh(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __u, __u1 Tuint64_t + var h, x, y float64 + var hx, hy, ix, iy, lx, ly Tint32_t + var v1 [2]float64 + _, _, _, _, _, _, _, _, _, _, _, _ = __u, __u1, h, hx, hy, ix, iy, lx, ly, x, y, v1 + x = Float64FromComplex128(z) + y = +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] + __u = *(*Tuint64_t)(unsafe.Pointer(&x)) + hx = Int32FromUint64(__u >> int32(32)) + lx = Int32FromUint32(uint32(__u)) + __u1 = *(*Tuint64_t)(unsafe.Pointer(&y)) + hy = Int32FromUint64(__u1 >> int32(32)) + ly = Int32FromUint32(uint32(__u1)) + ix = int32(0x7fffffff) & hx + iy = int32(0x7fffffff) & hy + /* Handle the nearly-non-exceptional cases where x and y are finite. */ + if ix < int32(0x7ff00000) && iy < int32(0x7ff00000) { + if iy|ly == 0 { + v1 = [2]float64{ + 0: Xcosh(tls, x), + 1: float64(x * y), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + if ix < int32(0x40360000) { /* small x: normal case */ + v1 = [2]float64{ + 0: float64(Xcosh(tls, x) * Xcos(tls, y)), + 1: float64(Xsinh(tls, x) * Xsin(tls, y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* |x| >= 22, so cosh(x) ~= exp(|x|) */ + if ix < int32(0x40862e42) { + /* x < 710: exp(|x|) won't overflow */ + h = float64(Xexp(tls, Xfabs(tls, x)) * float64(0.5)) + v1 = [2]float64{ + 0: float64(h * Xcos(tls, y)), + 1: float64(Xcopysign(tls, h, x) * Xsin(tls, y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } else { + if ix < int32(0x4096bbaa) { + /* x < 1455: scale to avoid overflow */ + v1 = [2]float64{ + 0: Xfabs(tls, x), + 1: y, + } + z = X__ldexp_cexp(tls, *(*complex128)(unsafe.Pointer(&v1)), -int32(1)) + v1 = [2]float64{ + 0: Float64FromComplex128(z), + 1: float64(+(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] * Xcopysign(tls, Float64FromInt32(1), x)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } else { + /* x >= 1455: the result always overflows */ + h = float64(_huge * x) + v1 = [2]float64{ + 0: float64(float64(h*h) * Xcos(tls, y)), + 1: float64(h * Xsin(tls, y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + } + } + /* + * cosh(+-0 +- I Inf) = dNaN + I sign(d(+-0, dNaN))0. + * The sign of 0 in the result is unspecified. Choice = normally + * the same as dNaN. Raise the invalid floating-point exception. + * + * cosh(+-0 +- I NaN) = d(NaN) + I sign(d(+-0, NaN))0. + * The sign of 0 in the result is unspecified. Choice = normally + * the same as d(NaN). + */ + if ix|lx == 0 && iy >= int32(0x7ff00000) { + v1 = [2]float64{ + 0: y - y, + 1: Xcopysign(tls, Float64FromInt32(0), float64(x*(y-y))), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* + * cosh(+-Inf +- I 0) = +Inf + I (+-)(+-)0. + * + * cosh(NaN +- I 0) = d(NaN) + I sign(d(NaN, +-0))0. + * The sign of 0 in the result is unspecified. + */ + if iy|ly == 0 && ix >= int32(0x7ff00000) { + if hx&int32(0xfffff)|lx == 0 { + v1 = [2]float64{ + 0: float64(x * x), + 1: float64(Xcopysign(tls, Float64FromInt32(0), x) * y), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + v1 = [2]float64{ + 0: float64(x * x), + 1: Xcopysign(tls, Float64FromInt32(0), float64((x+x)*y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* + * cosh(x +- I Inf) = dNaN + I dNaN. + * Raise the invalid floating-point exception for finite nonzero x. + * + * cosh(x + I NaN) = d(NaN) + I d(NaN). + * Optionally raises the invalid floating-point exception for finite + * nonzero x. Choice = don't raise (except for signaling NaNs). + */ + if ix < int32(0x7ff00000) && iy >= int32(0x7ff00000) { + v1 = [2]float64{ + 0: y - y, + 1: float64(x * (y - y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* + * cosh(+-Inf + I NaN) = +Inf + I d(NaN). + * + * cosh(+-Inf +- I Inf) = +Inf + I dNaN. + * The sign of Inf in the result is unspecified. Choice = always +. + * Raise the invalid floating-point exception. + * + * cosh(+-Inf + I y) = +Inf cos(y) +- I Inf sin(y) + */ + if ix >= int32(0x7ff00000) && hx&int32(0xfffff)|lx == 0 { + if iy >= int32(0x7ff00000) { + v1 = [2]float64{ + 0: float64(x * x), + 1: float64(x * (y - y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + v1 = [2]float64{ + 0: float64(float64(x*x) * Xcos(tls, y)), + 1: float64(x * Xsin(tls, y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* + * cosh(NaN + I NaN) = d(NaN) + I d(NaN). + * + * cosh(NaN +- I Inf) = d(NaN) + I d(NaN). + * Optionally raises the invalid floating-point exception. + * Choice = raise. + * + * cosh(NaN + I y) = d(NaN) + I d(NaN). + * Optionally raises the invalid floating-point exception for finite + * nonzero y. Choice = don't raise (except for signaling NaNs). + */ + v1 = [2]float64{ + 0: float64(float64(x*x) * (y - y)), + 1: float64((x + x) * (y - y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +var _huge1 = float32(1.7014118346046923e+38) + +func Xccoshf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var h, x, y float32 + var hx, hy, ix, iy Tint32_t + var v1 [2]float32 + _, _, _, _, _, _, _, _ = h, hx, hy, ix, iy, x, y, v1 + x = Float32FromComplex64(z) + y = +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] + hx = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(&x))) + hy = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(&y))) + ix = int32(0x7fffffff) & hx + iy = int32(0x7fffffff) & hy + if ix < int32(0x7f800000) && iy < int32(0x7f800000) { + if iy == 0 { + v1 = [2]float32{ + 0: Xcoshf(tls, x), + 1: float32(x * y), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + if ix < int32(0x41100000) { /* small x: normal case */ + v1 = [2]float32{ + 0: float32(Xcoshf(tls, x) * Xcosf(tls, y)), + 1: float32(Xsinhf(tls, x) * Xsinf(tls, y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + /* |x| >= 9, so cosh(x) ~= exp(|x|) */ + if ix < int32(0x42b17218) { + /* x < 88.7: expf(|x|) won't overflow */ + h = float32(Xexpf(tls, Xfabsf(tls, x)) * Float32FromFloat32(0.5)) + v1 = [2]float32{ + 0: float32(h * Xcosf(tls, y)), + 1: float32(Xcopysignf(tls, h, x) * Xsinf(tls, y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } else { + if ix < int32(0x4340b1e7) { + /* x < 192.7: scale to avoid overflow */ + v1 = [2]float32{ + 0: Xfabsf(tls, x), + 1: y, + } + z = X__ldexp_cexpf(tls, *(*complex64)(unsafe.Pointer(&v1)), -int32(1)) + v1 = [2]float32{ + 0: Float32FromComplex64(z), + 1: float32(+(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] * Xcopysignf(tls, Float32FromInt32(1), x)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } else { + /* x >= 192.7: the result always overflows */ + h = float32(_huge1 * x) + v1 = [2]float32{ + 0: float32(float32(h*h) * Xcosf(tls, y)), + 1: float32(h * Xsinf(tls, y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + } + } + if ix == 0 && iy >= int32(0x7f800000) { + v1 = [2]float32{ + 0: y - y, + 1: Xcopysignf(tls, Float32FromInt32(0), float32(x*(y-y))), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + if iy == 0 && ix >= int32(0x7f800000) { + if hx&int32(0x7fffff) == 0 { + v1 = [2]float32{ + 0: float32(x * x), + 1: float32(Xcopysignf(tls, Float32FromInt32(0), x) * y), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + v1 = [2]float32{ + 0: float32(x * x), + 1: Xcopysignf(tls, Float32FromInt32(0), float32((x+x)*y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + if ix < int32(0x7f800000) && iy >= int32(0x7f800000) { + v1 = [2]float32{ + 0: y - y, + 1: float32(x * (y - y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + if ix >= int32(0x7f800000) && hx&int32(0x7fffff) == 0 { + if iy >= int32(0x7f800000) { + v1 = [2]float32{ + 0: float32(x * x), + 1: float32(x * (y - y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + v1 = [2]float32{ + 0: float32(float32(x*x) * Xcosf(tls, y)), + 1: float32(x * Xsinf(tls, y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + v1 = [2]float32{ + 0: float32(float32(x*x) * (y - y)), + 1: float32((x + x) * (y - y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) +} + +// C documentation +// +// //FIXME +func Xccoshl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xccosh(tls, Complex128FromComplex128(z))) +} + +func Xccosl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xccos(tls, Complex128FromComplex128(z))) +} + +var _exp_ovfl = uint32(0x40862e42) /* high bits of MAX_EXP * ln2 ~= 710 */ +var _cexp_ovfl = uint32(0x4096b8e4) /* (MAX_EXP - MIN_DENORM_EXP) * ln2 */ + +func Xcexp(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __u, __u1 Tuint64_t + var exp_x, x, y float64 + var hx, hy, lx, ly Tuint32_t + var v1 [2]float64 + _, _, _, _, _, _, _, _, _, _ = __u, __u1, exp_x, hx, hy, lx, ly, x, y, v1 + x = Float64FromComplex128(z) + y = +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] + __u = *(*Tuint64_t)(unsafe.Pointer(&y)) + hy = uint32(__u >> int32(32)) + ly = uint32(__u) + hy = hy & uint32(0x7fffffff) + /* cexp(x + I 0) = exp(x) + I 0 */ + if hy|ly == uint32(0) { + v1 = [2]float64{ + 0: Xexp(tls, x), + 1: y, + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + __u1 = *(*Tuint64_t)(unsafe.Pointer(&x)) + hx = uint32(__u1 >> int32(32)) + lx = uint32(__u1) + /* cexp(0 + I y) = cos(y) + I sin(y) */ + if hx&uint32(0x7fffffff)|lx == uint32(0) { + v1 = [2]float64{ + 0: Xcos(tls, y), + 1: Xsin(tls, y), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + if hy >= uint32(0x7ff00000) { + if lx != uint32(0) || hx&uint32(0x7fffffff) != uint32(0x7ff00000) { + /* cexp(finite|NaN +- I Inf|NaN) = NaN + I NaN */ + v1 = [2]float64{ + 0: y - y, + 1: y - y, + } + return *(*complex128)(unsafe.Pointer(&v1)) + } else { + if hx&uint32(0x80000000) != 0 { + /* cexp(-Inf +- I Inf|NaN) = 0 + I 0 */ + v1 = [2]float64{} + return *(*complex128)(unsafe.Pointer(&v1)) + } else { + /* cexp(+Inf +- I Inf|NaN) = Inf + I NaN */ + v1 = [2]float64{ + 0: x, + 1: y - y, + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + } + } + if hx >= _exp_ovfl && hx <= _cexp_ovfl { + /* + * x is between 709.7 and 1454.3, so we must scale to avoid + * overflow in exp(x). + */ + return X__ldexp_cexp(tls, z, 0) + } else { + /* + * Cases covered here: + * - x < exp_ovfl and exp(x) won't overflow (common case) + * - x > cexp_ovfl, so exp(x) * s overflows for all s > 0 + * - x = +-Inf (generated by exp()) + * - x = NaN (spurious inexact exception from y) + */ + exp_x = Xexp(tls, x) + v1 = [2]float64{ + 0: float64(exp_x * Xcos(tls, y)), + 1: float64(exp_x * Xsin(tls, y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + return r +} + +var _exp_ovfl1 = uint32(0x42b17218) /* MAX_EXP * ln2 ~= 88.722839355 */ +var _cexp_ovfl1 = uint32(0x43400074) /* (MAX_EXP - MIN_DENORM_EXP) * ln2 */ + +func Xcexpf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var exp_x, x, y float32 + var hx, hy Tuint32_t + var v1 [2]float32 + _, _, _, _, _, _ = exp_x, hx, hy, x, y, v1 + x = Float32FromComplex64(z) + y = +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] + hy = *(*Tuint32_t)(unsafe.Pointer(&y)) + hy = hy & uint32(0x7fffffff) + /* cexp(x + I 0) = exp(x) + I 0 */ + if hy == uint32(0) { + v1 = [2]float32{ + 0: Xexpf(tls, x), + 1: y, + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + hx = *(*Tuint32_t)(unsafe.Pointer(&x)) + /* cexp(0 + I y) = cos(y) + I sin(y) */ + if hx&uint32(0x7fffffff) == uint32(0) { + v1 = [2]float32{ + 0: Xcosf(tls, y), + 1: Xsinf(tls, y), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + if hy >= uint32(0x7f800000) { + if hx&uint32(0x7fffffff) != uint32(0x7f800000) { + /* cexp(finite|NaN +- I Inf|NaN) = NaN + I NaN */ + v1 = [2]float32{ + 0: y - y, + 1: y - y, + } + return *(*complex64)(unsafe.Pointer(&v1)) + } else { + if hx&uint32(0x80000000) != 0 { + /* cexp(-Inf +- I Inf|NaN) = 0 + I 0 */ + v1 = [2]float32{} + return *(*complex64)(unsafe.Pointer(&v1)) + } else { + /* cexp(+Inf +- I Inf|NaN) = Inf + I NaN */ + v1 = [2]float32{ + 0: x, + 1: y - y, + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + } + } + if hx >= _exp_ovfl1 && hx <= _cexp_ovfl1 { + /* + * x is between 88.7 and 192, so we must scale to avoid + * overflow in expf(x). + */ + return X__ldexp_cexpf(tls, z, 0) + } else { + /* + * Cases covered here: + * - x < exp_ovfl and exp(x) won't overflow (common case) + * - x > cexp_ovfl, so exp(x) * s overflows for all s > 0 + * - x = +-Inf (generated by exp()) + * - x = NaN (spurious inexact exception from y) + */ + exp_x = Xexpf(tls, x) + v1 = [2]float32{ + 0: float32(exp_x * Xcosf(tls, y)), + 1: float32(exp_x * Xsinf(tls, y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + return r +} + +// C documentation +// +// //FIXME +func Xcexpl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcexp(tls, Complex128FromComplex128(z))) +} + +func Xcimag(tls *TLS, z complex128) (r float64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] +} + +func Xcimagf(tls *TLS, z complex64) (r float32) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] +} + +func Xcimagl(tls *TLS, z complex128) (r float64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] +} + +// FIXME + +/* log(z) = log(|z|) + i arg(z) */ + +func Xclog(tls *TLS, z complex128) (r1 complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var phi, r float64 + var v1 [2]float64 + _, _, _ = phi, r, v1 + r = Xcabs(tls, z) + phi = Xcarg(tls, z) + v1 = [2]float64{ + 0: Xlog(tls, r), + 1: phi, + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +// FIXME + +func Xclogf(tls *TLS, z complex64) (r1 complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var phi, r float32 + var v1 [2]float32 + _, _, _ = phi, r, v1 + r = Xcabsf(tls, z) + phi = Xcargf(tls, z) + v1 = [2]float32{ + 0: Xlogf(tls, r), + 1: phi, + } + return *(*complex64)(unsafe.Pointer(&v1)) +} + +func Xclogl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xclog(tls, Complex128FromComplex128(z))) +} + +func Xconj(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float64 + _ = v1 + v1 = [2]float64{ + 0: Float64FromComplex128(z), + 1: -+(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +func Xconjf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float32 + _ = v1 + v1 = [2]float32{ + 0: Float32FromComplex64(z), + 1: -+(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + } + return *(*complex64)(unsafe.Pointer(&v1)) +} + +func Xconjl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float64 + _ = v1 + v1 = [2]float64{ + 0: Float64FromComplex128(z), + 1: -+(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +/* pow(z, c) = exp(c log(z)), See C99 G.6.4.1 */ + +func Xcpow(tls *TLS, z complex128, c complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v c=%v, (%v:)", tls, z, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xcexp(tls, c*Xclog(tls, z)) +} + +func Xcpowf(tls *TLS, z complex64, c complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v c=%v, (%v:)", tls, z, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xcexpf(tls, c*Xclogf(tls, z)) +} + +func Xcpowl(tls *TLS, z complex128, c complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v c=%v, (%v:)", tls, z, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcpow(tls, Complex128FromComplex128(z), Complex128FromComplex128(c))) +} + +func Xcproj(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1, v3 uint64 + var v5 bool + var v6 [2]float64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _, _, _, _ = v1, v3, v5, v6 + *(*float64)(unsafe.Pointer(bp)) = Float64FromComplex128(z) + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + ; + if v5 = BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) == Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) == Uint64FromUint64(0x7ff)< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1, v3 uint32 + var v5 bool + var v6 [2]float32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _, _, _, _ = v1, v3, v5, v6 + *(*float32)(unsafe.Pointer(bp)) = Float32FromComplex64(z) + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + ; + if v5 = BoolInt32(v1&uint32(0x7fffffff) == uint32(0x7f800000)) != 0; !v5 { + *(*float32)(unsafe.Pointer(bp)) = +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] + v3 = *(*uint32)(unsafe.Pointer(bp)) + goto _4 + _4: + } + if v5 || BoolInt32(v3&uint32(0x7fffffff) == uint32(0x7f800000)) != 0 { + v6 = [2]float32{ + 0: X__builtin_inff(tls), + 1: Xcopysignf(tls, float32(0), +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)]), + } + return *(*complex64)(unsafe.Pointer(&v6)) + } + return z +} + +func Xcprojl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcproj(tls, Complex128FromComplex128(z))) +} + +func Xcreal(tls *TLS, z complex128) (r float64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Float64FromComplex128(z) +} + +func Xcrealf(tls *TLS, z complex64) (r float32) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Float32FromComplex64(z) +} + +func Xcreall(tls *TLS, z complex128) (r float64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Float64FromComplex128(z) +} + +/* sin(z) = -i sinh(i z) */ + +func Xcsin(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float64 + _ = v1 + v1 = [2]float64{ + 0: -+(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: Float64FromComplex128(z), + } + z = Xcsinh(tls, *(*complex128)(unsafe.Pointer(&v1))) + v1 = [2]float64{ + 0: +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: -Float64FromComplex128(z), + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +func Xcsinf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float32 + _ = v1 + v1 = [2]float32{ + 0: -+(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: Float32FromComplex64(z), + } + z = Xcsinhf(tls, *(*complex64)(unsafe.Pointer(&v1))) + v1 = [2]float32{ + 0: +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: -Float32FromComplex64(z), + } + return *(*complex64)(unsafe.Pointer(&v1)) +} + +var _huge2 = float64(8.98846567431158e+307) + +func Xcsinh(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __u, __u1 Tuint64_t + var h, x, y float64 + var hx, hy, ix, iy, lx, ly Tint32_t + var v1 [2]float64 + _, _, _, _, _, _, _, _, _, _, _, _ = __u, __u1, h, hx, hy, ix, iy, lx, ly, x, y, v1 + x = Float64FromComplex128(z) + y = +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] + __u = *(*Tuint64_t)(unsafe.Pointer(&x)) + hx = Int32FromUint64(__u >> int32(32)) + lx = Int32FromUint32(uint32(__u)) + __u1 = *(*Tuint64_t)(unsafe.Pointer(&y)) + hy = Int32FromUint64(__u1 >> int32(32)) + ly = Int32FromUint32(uint32(__u1)) + ix = int32(0x7fffffff) & hx + iy = int32(0x7fffffff) & hy + /* Handle the nearly-non-exceptional cases where x and y are finite. */ + if ix < int32(0x7ff00000) && iy < int32(0x7ff00000) { + if iy|ly == 0 { + v1 = [2]float64{ + 0: Xsinh(tls, x), + 1: y, + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + if ix < int32(0x40360000) { /* small x: normal case */ + v1 = [2]float64{ + 0: float64(Xsinh(tls, x) * Xcos(tls, y)), + 1: float64(Xcosh(tls, x) * Xsin(tls, y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* |x| >= 22, so cosh(x) ~= exp(|x|) */ + if ix < int32(0x40862e42) { + /* x < 710: exp(|x|) won't overflow */ + h = float64(Xexp(tls, Xfabs(tls, x)) * float64(0.5)) + v1 = [2]float64{ + 0: float64(Xcopysign(tls, h, x) * Xcos(tls, y)), + 1: float64(h * Xsin(tls, y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } else { + if ix < int32(0x4096bbaa) { + /* x < 1455: scale to avoid overflow */ + v1 = [2]float64{ + 0: Xfabs(tls, x), + 1: y, + } + z = X__ldexp_cexp(tls, *(*complex128)(unsafe.Pointer(&v1)), -int32(1)) + v1 = [2]float64{ + 0: float64(Float64FromComplex128(z) * Xcopysign(tls, Float64FromInt32(1), x)), + 1: +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + } + return *(*complex128)(unsafe.Pointer(&v1)) + } else { + /* x >= 1455: the result always overflows */ + h = float64(_huge2 * x) + v1 = [2]float64{ + 0: float64(h * Xcos(tls, y)), + 1: float64(float64(h*h) * Xsin(tls, y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + } + } + /* + * sinh(+-0 +- I Inf) = sign(d(+-0, dNaN))0 + I dNaN. + * The sign of 0 in the result is unspecified. Choice = normally + * the same as dNaN. Raise the invalid floating-point exception. + * + * sinh(+-0 +- I NaN) = sign(d(+-0, NaN))0 + I d(NaN). + * The sign of 0 in the result is unspecified. Choice = normally + * the same as d(NaN). + */ + if ix|lx == 0 && iy >= int32(0x7ff00000) { + v1 = [2]float64{ + 0: Xcopysign(tls, Float64FromInt32(0), float64(x*(y-y))), + 1: y - y, + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* + * sinh(+-Inf +- I 0) = +-Inf + I +-0. + * + * sinh(NaN +- I 0) = d(NaN) + I +-0. + */ + if iy|ly == 0 && ix >= int32(0x7ff00000) { + if hx&int32(0xfffff)|lx == 0 { + v1 = [2]float64{ + 0: x, + 1: y, + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + v1 = [2]float64{ + 0: x, + 1: Xcopysign(tls, Float64FromInt32(0), y), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* + * sinh(x +- I Inf) = dNaN + I dNaN. + * Raise the invalid floating-point exception for finite nonzero x. + * + * sinh(x + I NaN) = d(NaN) + I d(NaN). + * Optionally raises the invalid floating-point exception for finite + * nonzero x. Choice = don't raise (except for signaling NaNs). + */ + if ix < int32(0x7ff00000) && iy >= int32(0x7ff00000) { + v1 = [2]float64{ + 0: y - y, + 1: float64(x * (y - y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* + * sinh(+-Inf + I NaN) = +-Inf + I d(NaN). + * The sign of Inf in the result is unspecified. Choice = normally + * the same as d(NaN). + * + * sinh(+-Inf +- I Inf) = +Inf + I dNaN. + * The sign of Inf in the result is unspecified. Choice = always +. + * Raise the invalid floating-point exception. + * + * sinh(+-Inf + I y) = +-Inf cos(y) + I Inf sin(y) + */ + if ix >= int32(0x7ff00000) && hx&int32(0xfffff)|lx == 0 { + if iy >= int32(0x7ff00000) { + v1 = [2]float64{ + 0: float64(x * x), + 1: float64(x * (y - y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + v1 = [2]float64{ + 0: float64(x * Xcos(tls, y)), + 1: float64(float64(X__builtin_inff(tls)) * Xsin(tls, y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* + * sinh(NaN + I NaN) = d(NaN) + I d(NaN). + * + * sinh(NaN +- I Inf) = d(NaN) + I d(NaN). + * Optionally raises the invalid floating-point exception. + * Choice = raise. + * + * sinh(NaN + I y) = d(NaN) + I d(NaN). + * Optionally raises the invalid floating-point exception for finite + * nonzero y. Choice = don't raise (except for signaling NaNs). + */ + v1 = [2]float64{ + 0: float64(float64(x*x) * (y - y)), + 1: float64((x + x) * (y - y)), + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +var _huge3 = float32(1.7014118346046923e+38) + +func Xcsinhf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var h, x, y float32 + var hx, hy, ix, iy Tint32_t + var v1 [2]float32 + _, _, _, _, _, _, _, _ = h, hx, hy, ix, iy, x, y, v1 + x = Float32FromComplex64(z) + y = +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] + hx = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(&x))) + hy = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(&y))) + ix = int32(0x7fffffff) & hx + iy = int32(0x7fffffff) & hy + if ix < int32(0x7f800000) && iy < int32(0x7f800000) { + if iy == 0 { + v1 = [2]float32{ + 0: Xsinhf(tls, x), + 1: y, + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + if ix < int32(0x41100000) { /* small x: normal case */ + v1 = [2]float32{ + 0: float32(Xsinhf(tls, x) * Xcosf(tls, y)), + 1: float32(Xcoshf(tls, x) * Xsinf(tls, y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + /* |x| >= 9, so cosh(x) ~= exp(|x|) */ + if ix < int32(0x42b17218) { + /* x < 88.7: expf(|x|) won't overflow */ + h = float32(Xexpf(tls, Xfabsf(tls, x)) * Float32FromFloat32(0.5)) + v1 = [2]float32{ + 0: float32(Xcopysignf(tls, h, x) * Xcosf(tls, y)), + 1: float32(h * Xsinf(tls, y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } else { + if ix < int32(0x4340b1e7) { + /* x < 192.7: scale to avoid overflow */ + v1 = [2]float32{ + 0: Xfabsf(tls, x), + 1: y, + } + z = X__ldexp_cexpf(tls, *(*complex64)(unsafe.Pointer(&v1)), -int32(1)) + v1 = [2]float32{ + 0: float32(Float32FromComplex64(z) * Xcopysignf(tls, Float32FromInt32(1), x)), + 1: +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + } + return *(*complex64)(unsafe.Pointer(&v1)) + } else { + /* x >= 192.7: the result always overflows */ + h = float32(_huge3 * x) + v1 = [2]float32{ + 0: float32(h * Xcosf(tls, y)), + 1: float32(float32(h*h) * Xsinf(tls, y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + } + } + if ix == 0 && iy >= int32(0x7f800000) { + v1 = [2]float32{ + 0: Xcopysignf(tls, Float32FromInt32(0), float32(x*(y-y))), + 1: y - y, + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + if iy == 0 && ix >= int32(0x7f800000) { + if hx&int32(0x7fffff) == 0 { + v1 = [2]float32{ + 0: x, + 1: y, + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + v1 = [2]float32{ + 0: x, + 1: Xcopysignf(tls, Float32FromInt32(0), y), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + if ix < int32(0x7f800000) && iy >= int32(0x7f800000) { + v1 = [2]float32{ + 0: y - y, + 1: float32(x * (y - y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + if ix >= int32(0x7f800000) && hx&int32(0x7fffff) == 0 { + if iy >= int32(0x7f800000) { + v1 = [2]float32{ + 0: float32(x * x), + 1: float32(x * (y - y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + v1 = [2]float32{ + 0: float32(x * Xcosf(tls, y)), + 1: float32(X__builtin_inff(tls) * Xsinf(tls, y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + v1 = [2]float32{ + 0: float32(float32(x*x) * (y - y)), + 1: float32((x + x) * (y - y)), + } + return *(*complex64)(unsafe.Pointer(&v1)) +} + +// C documentation +// +// //FIXME +func Xcsinhl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcsinh(tls, Complex128FromComplex128(z))) +} + +func Xcsinl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcsin(tls, Complex128FromComplex128(z))) +} + +const THRESH = 7.446288774449766e+307 + +/* + * gcc doesn't implement complex multiplication or division correctly, + * so we need to handle infinities specially. We turn on this pragma to + * notify conforming c99 compilers that the fast-but-incorrect code that + * gcc generates is acceptable, since the special cases have already been + * handled. + */ + +/* We risk spurious overflow for components >= DBL_MAX / (1 + sqrt(2)). */ + +func Xcsqrt(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var a, b, t float64 + var result complex128 + var scale int32 + var v1 [2]float64 + var v2, v5 uint64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _, _, _, _, _, _, _, _ = a, b, result, scale, t, v1, v2, v5 + a = Float64FromComplex128(z) + b = +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] + /* Handle special cases. */ + if z == Complex128FromInt32(0) { + v1 = [2]float64{ + 1: b, + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + *(*float64)(unsafe.Pointer(bp)) = b + v2 = *(*uint64)(unsafe.Pointer(bp)) + goto _3 +_3: + if BoolInt32(v2&(-Uint64FromUint64(1)>>Int32FromInt32(1)) == Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) == Uint64FromUint64(0x7ff)<>Int32FromInt32(63)) != 0 { + v1 = [2]float64{ + 0: Xfabs(tls, b-b), + 1: Xcopysign(tls, a, b), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } else { + v1 = [2]float64{ + 0: a, + 1: Xcopysign(tls, b-b, b), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + } + /* + * The remaining special case (b is NaN) is handled just fine by + * the normal code path below. + */ + /* Scale to avoid overflow. */ + if Xfabs(tls, a) >= float64(7.446288774449766e+307) || Xfabs(tls, b) >= float64(7.446288774449766e+307) { + a = a * float64(0.25) + b = b * float64(0.25) + scale = int32(1) + } else { + scale = 0 + } + /* Algorithm 312, CACM vol 10, Oct 1967. */ + if a >= Float64FromInt32(0) { + t = Xsqrt(tls, float64((a+Xhypot(tls, a, b))*float64(0.5))) + v1 = [2]float64{ + 0: t, + 1: b / float64(Float64FromInt32(2)*t), + } + result = *(*complex128)(unsafe.Pointer(&v1)) + } else { + t = Xsqrt(tls, float64((-a+Xhypot(tls, a, b))*float64(0.5))) + v1 = [2]float64{ + 0: Xfabs(tls, b) / float64(Float64FromInt32(2)*t), + 1: Xcopysign(tls, t, b), + } + result = *(*complex128)(unsafe.Pointer(&v1)) + } + /* Rescale. */ + if scale != 0 { + result = result * Complex128FromInt32(2) + } + return result +} + +/* + * gcc doesn't implement complex multiplication or division correctly, + * so we need to handle infinities specially. We turn on this pragma to + * notify conforming c99 compilers that the fast-but-incorrect code that + * gcc generates is acceptable, since the special cases have already been + * handled. + */ + +func Xcsqrtf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var a, b float32 + var t float64 + var v1 [2]float32 + var v2, v5 uint32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _, _, _, _, _, _ = a, b, t, v1, v2, v5 + a = Float32FromComplex64(z) + b = +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] + /* Handle special cases. */ + if z == Complex64FromInt32(0) { + v1 = [2]float32{ + 1: b, + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + *(*float32)(unsafe.Pointer(bp)) = b + v2 = *(*uint32)(unsafe.Pointer(bp)) + goto _3 +_3: + if BoolInt32(v2&uint32(0x7fffffff) == uint32(0x7f800000)) != 0 { + v1 = [2]float32{ + 0: X__builtin_inff(tls), + 1: b, + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + *(*float32)(unsafe.Pointer(bp)) = a + v2 = *(*uint32)(unsafe.Pointer(bp)) + goto _6 +_6: + if BoolInt32(v2&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + t = float64((b - b) / (b - b)) /* raise invalid if b is not a NaN */ + v1 = [2]float32{ + 0: a, + 1: float32(t), + } + return *(*complex64)(unsafe.Pointer(&v1)) /* return NaN + NaN i */ + } + *(*float32)(unsafe.Pointer(bp)) = a + v2 = *(*uint32)(unsafe.Pointer(bp)) + goto _9 +_9: + if BoolInt32(v2&uint32(0x7fffffff) == uint32(0x7f800000)) != 0 { + /* + * csqrtf(inf + NaN i) = inf + NaN i + * csqrtf(inf + y i) = inf + 0 i + * csqrtf(-inf + NaN i) = NaN +- inf i + * csqrtf(-inf + y i) = 0 + inf i + */ + *(*float32)(unsafe.Pointer(bp)) = a + v5 = *(*uint32)(unsafe.Pointer(bp)) + goto _11 + _11: + if Int32FromUint32(v5>>Int32FromInt32(31)) != 0 { + v1 = [2]float32{ + 0: Xfabsf(tls, b-b), + 1: Xcopysignf(tls, a, b), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } else { + v1 = [2]float32{ + 0: a, + 1: Xcopysignf(tls, b-b, b), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + } + /* + * The remaining special case (b is NaN) is handled just fine by + * the normal code path below. + */ + /* + * We compute t in double precision to avoid overflow and to + * provide correct rounding in nearly all cases. + * This is Algorithm 312, CACM vol 10, Oct 1967. + */ + if a >= Float32FromInt32(0) { + t = Xsqrt(tls, float64((float64(a)+Xhypot(tls, float64(a), float64(b)))*float64(0.5))) + v1 = [2]float32{ + 0: float32(t), + 1: float32(float64(b) / float64(Float64FromFloat64(2)*t)), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } else { + t = Xsqrt(tls, float64((float64(-a)+Xhypot(tls, float64(a), float64(b)))*float64(0.5))) + v1 = [2]float32{ + 0: float32(float64(Xfabsf(tls, b)) / float64(Float64FromFloat64(2)*t)), + 1: Xcopysignf(tls, float32(t), b), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + return r +} + +// C documentation +// +// //FIXME +func Xcsqrtl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xcsqrt(tls, Complex128FromComplex128(z))) +} + +/* tan(z) = -i tanh(i z) */ + +func Xctan(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float64 + _ = v1 + v1 = [2]float64{ + 0: -+(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: Float64FromComplex128(z), + } + z = Xctanh(tls, *(*complex128)(unsafe.Pointer(&v1))) + v1 = [2]float64{ + 0: +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)], + 1: -Float64FromComplex128(z), + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +func Xctanf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 [2]float32 + _ = v1 + v1 = [2]float32{ + 0: -+(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: Float32FromComplex64(z), + } + z = Xctanhf(tls, *(*complex64)(unsafe.Pointer(&v1))) + v1 = [2]float32{ + 0: +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)], + 1: -Float32FromComplex64(z), + } + return *(*complex64)(unsafe.Pointer(&v1)) +} + +func Xctanh(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var __u1, v3 Tuint64_t + var beta, denom, exp_mx, rho, s, t, x, y, v2 float64 + var hx, ix, lx Tuint32_t + var v1 [2]float64 + var v6 uint64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = __u1, beta, denom, exp_mx, hx, ix, lx, rho, s, t, x, y, v1, v2, v3, v6 + x = Float64FromComplex128(z) + y = +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)] + __u1 = *(*Tuint64_t)(unsafe.Pointer(&x)) + hx = uint32(__u1 >> int32(32)) + lx = uint32(__u1) + ix = hx & uint32(0x7fffffff) + /* + * ctanh(NaN + i 0) = NaN + i 0 + * + * ctanh(NaN + i y) = NaN + i NaN for y != 0 + * + * The imaginary part has the sign of x*sin(2*y), but there's no + * special effort to get this right. + * + * ctanh(+-Inf +- i Inf) = +-1 +- 0 + * + * ctanh(+-Inf + i y) = +-1 + 0 sin(2y) for y finite + * + * The imaginary part of the sign is unspecified. This special + * case is only needed to avoid a spurious invalid exception when + * y is infinite. + */ + if ix >= uint32(0x7ff00000) { + if ix&uint32(0xfffff)|lx != 0 { /* x is NaN */ + if y == Float64FromInt32(0) { + v2 = y + } else { + v2 = float64(x * y) + } + v1 = [2]float64{ + 0: x, + 1: v2, + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + v3 = uint64(hx-Uint32FromInt32(0x40000000))<>Int32FromInt32(1)) == Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) < Uint64FromUint64(0x7ff)<= uint32(0x40360000) { /* x >= 22 */ + exp_mx = Xexp(tls, -Xfabs(tls, x)) + v1 = [2]float64{ + 0: Xcopysign(tls, Float64FromInt32(1), x), + 1: float64(float64(float64(float64(Float64FromInt32(4)*Xsin(tls, y))*Xcos(tls, y))*exp_mx) * exp_mx), + } + return *(*complex128)(unsafe.Pointer(&v1)) + } + /* Kahan's algorithm */ + t = Xtan(tls, y) + beta = float64(1) + float64(t*t) /* = 1 / cos^2(y) */ + s = Xsinh(tls, x) + rho = Xsqrt(tls, Float64FromInt32(1)+float64(s*s)) /* = cosh(x) */ + denom = Float64FromInt32(1) + float64(float64(beta*s)*s) + v1 = [2]float64{ + 0: float64(float64(beta*rho)*s) / denom, + 1: t / denom, + } + return *(*complex128)(unsafe.Pointer(&v1)) +} + +func Xctanhf(tls *TLS, z complex64) (r complex64) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var beta, denom, exp_mx, rho, s, t, x, y, v2 float32 + var hx, ix, v3 Tuint32_t + var v1 [2]float32 + var v6 uint32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = beta, denom, exp_mx, hx, ix, rho, s, t, x, y, v1, v2, v3, v6 + x = Float32FromComplex64(z) + y = +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)] + hx = *(*Tuint32_t)(unsafe.Pointer(&x)) + ix = hx & uint32(0x7fffffff) + if ix >= uint32(0x7f800000) { + if ix&uint32(0x7fffff) != 0 { + if y == Float32FromInt32(0) { + v2 = y + } else { + v2 = float32(x * y) + } + v1 = [2]float32{ + 0: x, + 1: v2, + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + v3 = hx - uint32(0x40000000) + x = *(*float32)(unsafe.Pointer(&v3)) + *(*float32)(unsafe.Pointer(bp)) = y + v6 = *(*uint32)(unsafe.Pointer(bp)) + goto _7 + _7: + if BoolInt32(v6&uint32(0x7fffffff) == uint32(0x7f800000)) != 0 { + v2 = y + } else { + v2 = float32(Xsinf(tls, y) * Xcosf(tls, y)) + } + v1 = [2]float32{ + 0: x, + 1: Xcopysignf(tls, Float32FromInt32(0), v2), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + *(*float32)(unsafe.Pointer(bp)) = y + v6 = *(*uint32)(unsafe.Pointer(bp)) + goto _9 +_9: + if !(BoolInt32(v6&Uint32FromInt32(0x7fffffff) < Uint32FromInt32(0x7f800000)) != 0) { + if ix != 0 { + v2 = y - y + } else { + v2 = x + } + v1 = [2]float32{ + 0: v2, + 1: y - y, + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + if ix >= uint32(0x41300000) { /* x >= 11 */ + exp_mx = Xexpf(tls, -Xfabsf(tls, x)) + v1 = [2]float32{ + 0: Xcopysignf(tls, Float32FromInt32(1), x), + 1: float32(float32(float32(float32(Float32FromInt32(4)*Xsinf(tls, y))*Xcosf(tls, y))*exp_mx) * exp_mx), + } + return *(*complex64)(unsafe.Pointer(&v1)) + } + t = Xtanf(tls, y) + beta = float32(float64(1) + float64(t*t)) + s = Xsinhf(tls, x) + rho = Xsqrtf(tls, Float32FromInt32(1)+float32(s*s)) + denom = Float32FromInt32(1) + float32(float32(beta*s)*s) + v1 = [2]float32{ + 0: float32(float32(beta*rho)*s) / denom, + 1: t / denom, + } + return *(*complex64)(unsafe.Pointer(&v1)) +} + +// C documentation +// +// //FIXME +func Xctanhl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xctanh(tls, Complex128FromComplex128(z))) +} + +func Xctanl(tls *TLS, z complex128) (r complex128) { + if __ccgo_strace { + trc("tls=%v z=%v, (%v:)", tls, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Complex128FromComplex128(Xctan(tls, Complex128FromComplex128(z))) +} + +const BUFSIZ = 1024 +const E2BIG = 7 +const EACCES = 13 +const EADDRINUSE = 98 +const EADDRNOTAVAIL = 99 +const EADV = 68 +const EAFNOSUPPORT = 97 +const EAGAIN = 11 +const EALREADY = 114 +const EBADE = 52 +const EBADF = 9 +const EBADFD = 77 +const EBADMSG = 74 +const EBADR = 53 +const EBADRQC = 56 +const EBADSLT = 57 +const EBFONT = 59 +const EBUSY = 16 +const ECANCELED = 125 +const ECHILD = 10 +const ECHRNG = 44 +const ECOMM = 70 +const ECONNABORTED = 103 +const ECONNREFUSED = 111 +const ECONNRESET = 104 +const EDEADLK = 35 +const EDEADLOCK = 35 +const EDESTADDRREQ = 89 +const EDOM = 33 +const EDOTDOT = 73 +const EDQUOT = 122 +const EEXIST = 17 +const EFAULT = 14 +const EFBIG = 27 +const EHOSTDOWN = 112 +const EHOSTUNREACH = 113 +const EHWPOISON = 133 +const EIDRM = 43 +const EILSEQ = 84 +const EINPROGRESS = 115 +const EINTR = 4 +const EINVAL = 22 +const EIO = 5 +const EISCONN = 106 +const EISDIR = 21 +const EISNAM = 120 +const EKEYEXPIRED = 127 +const EKEYREJECTED = 129 +const EKEYREVOKED = 128 +const EL2HLT = 51 +const EL2NSYNC = 45 +const EL3HLT = 46 +const EL3RST = 47 +const ELIBACC = 79 +const ELIBBAD = 80 +const ELIBEXEC = 83 +const ELIBMAX = 82 +const ELIBSCN = 81 +const ELNRNG = 48 +const ELOOP = 40 +const EMEDIUMTYPE = 124 +const EMFILE = 24 +const EMLINK = 31 +const EMSGSIZE = 90 +const EMULTIHOP = 72 +const ENAMETOOLONG = 36 +const ENAVAIL = 119 +const ENETDOWN = 100 +const ENETRESET = 102 +const ENETUNREACH = 101 +const ENFILE = 23 +const ENOANO = 55 +const ENOBUFS = 105 +const ENOCSI = 50 +const ENODATA = 61 +const ENODEV = 19 +const ENOENT = 2 +const ENOEXEC = 8 +const ENOKEY = 126 +const ENOLCK = 37 +const ENOLINK = 67 +const ENOMEDIUM = 123 +const ENOMEM = 12 +const ENOMSG = 42 +const ENONET = 64 +const ENOPKG = 65 +const ENOPROTOOPT = 92 +const ENOSPC = 28 +const ENOSR = 63 +const ENOSTR = 60 +const ENOSYS = 38 +const ENOTBLK = 15 +const ENOTCONN = 107 +const ENOTDIR = 20 +const ENOTEMPTY = 39 +const ENOTNAM = 118 +const ENOTRECOVERABLE = 131 +const ENOTSOCK = 88 +const ENOTSUP = 95 +const ENOTTY = 25 +const ENOTUNIQ = 76 +const ENXIO = 6 +const EOPNOTSUPP = 95 +const EOVERFLOW = 75 +const EOWNERDEAD = 130 +const EPERM = 1 +const EPFNOSUPPORT = 96 +const EPIPE = 32 +const EPROTO = 71 +const EPROTONOSUPPORT = 93 +const EPROTOTYPE = 91 +const ERANGE = 34 +const EREMCHG = 78 +const EREMOTE = 66 +const EREMOTEIO = 121 +const ERESTART = 85 +const ERFKILL = 132 +const EROFS = 30 +const ESHUTDOWN = 108 +const ESOCKTNOSUPPORT = 94 +const ESPIPE = 29 +const ESRCH = 3 +const ESRMNT = 69 +const ESTALE = 116 +const ESTRPIPE = 86 +const ETIME = 62 +const ETIMEDOUT = 110 +const ETOOMANYREFS = 109 +const ETXTBSY = 26 +const EUCLEAN = 117 +const EUNATCH = 49 +const EUSERS = 87 +const EWOULDBLOCK = 11 +const EXDEV = 18 +const EXFULL = 54 +const FILENAME_MAX = 4096 +const FOPEN_MAX = 1000 +const F_LOCK = 1 +const F_OK = 0 +const F_TEST = 3 +const F_TLOCK = 2 +const F_ULOCK = 0 +const L_ctermid = 20 +const L_tmpnam = 20 +const POSIX_CLOSE_RESTART = 0 +const P_tmpdir = "/tmp" +const R_OK = 4 +const SEEK_DATA = 3 +const SEEK_HOLE = 4 +const STDERR_FILENO = 2 +const STDIN_FILENO = 0 +const STDOUT_FILENO = 1 +const TMP_MAX = 10000 +const W_OK = 2 +const X_OK = 1 +const _CS_GNU_LIBC_VERSION = 2 +const _CS_GNU_LIBPTHREAD_VERSION = 3 +const _CS_PATH = 0 +const _CS_POSIX_V5_WIDTH_RESTRICTED_ENVS = 4 +const _CS_POSIX_V6_ILP32_OFF32_CFLAGS = 1116 +const _CS_POSIX_V6_ILP32_OFF32_LDFLAGS = 1117 +const _CS_POSIX_V6_ILP32_OFF32_LIBS = 1118 +const _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS = 1119 +const _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS = 1120 +const _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS = 1121 +const _CS_POSIX_V6_ILP32_OFFBIG_LIBS = 1122 +const _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS = 1123 +const _CS_POSIX_V6_LP64_OFF64_CFLAGS = 1124 +const _CS_POSIX_V6_LP64_OFF64_LDFLAGS = 1125 +const _CS_POSIX_V6_LP64_OFF64_LIBS = 1126 +const _CS_POSIX_V6_LP64_OFF64_LINTFLAGS = 1127 +const _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS = 1128 +const _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS = 1129 +const _CS_POSIX_V6_LPBIG_OFFBIG_LIBS = 1130 +const _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS = 1131 +const _CS_POSIX_V6_WIDTH_RESTRICTED_ENVS = 1 +const _CS_POSIX_V7_ILP32_OFF32_CFLAGS = 1132 +const _CS_POSIX_V7_ILP32_OFF32_LDFLAGS = 1133 +const _CS_POSIX_V7_ILP32_OFF32_LIBS = 1134 +const _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS = 1135 +const _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS = 1136 +const _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS = 1137 +const _CS_POSIX_V7_ILP32_OFFBIG_LIBS = 1138 +const _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS = 1139 +const _CS_POSIX_V7_LP64_OFF64_CFLAGS = 1140 +const _CS_POSIX_V7_LP64_OFF64_LDFLAGS = 1141 +const _CS_POSIX_V7_LP64_OFF64_LIBS = 1142 +const _CS_POSIX_V7_LP64_OFF64_LINTFLAGS = 1143 +const _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS = 1144 +const _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS = 1145 +const _CS_POSIX_V7_LPBIG_OFFBIG_LIBS = 1146 +const _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS = 1147 +const _CS_POSIX_V7_THREADS_CFLAGS = 1150 +const _CS_POSIX_V7_THREADS_LDFLAGS = 1151 +const _CS_POSIX_V7_WIDTH_RESTRICTED_ENVS = 5 +const _CS_V6_ENV = 1148 +const _CS_V7_ENV = 1149 +const _IOFBF = 0 +const _IOLBF = 1 +const _IONBF = 2 +const _PC_2_SYMLINKS = 20 +const _PC_ALLOC_SIZE_MIN = 18 +const _PC_ASYNC_IO = 10 +const _PC_CHOWN_RESTRICTED = 6 +const _PC_FILESIZEBITS = 13 +const _PC_LINK_MAX = 0 +const _PC_MAX_CANON = 1 +const _PC_MAX_INPUT = 2 +const _PC_NAME_MAX = 3 +const _PC_NO_TRUNC = 7 +const _PC_PATH_MAX = 4 +const _PC_PIPE_BUF = 5 +const _PC_PRIO_IO = 11 +const _PC_REC_INCR_XFER_SIZE = 14 +const _PC_REC_MAX_XFER_SIZE = 15 +const _PC_REC_MIN_XFER_SIZE = 16 +const _PC_REC_XFER_ALIGN = 17 +const _PC_SOCK_MAXBUF = 12 +const _PC_SYMLINK_MAX = 19 +const _PC_SYNC_IO = 9 +const _PC_VDISABLE = 8 +const _POSIX2_C_BIND = 200809 +const _POSIX2_VERSION = 200809 +const _POSIX_ADVISORY_INFO = 200809 +const _POSIX_ASYNCHRONOUS_IO = 200809 +const _POSIX_BARRIERS = 200809 +const _POSIX_CHOWN_RESTRICTED = 1 +const _POSIX_CLOCK_SELECTION = 200809 +const _POSIX_CPUTIME = 200809 +const _POSIX_FSYNC = 200809 +const _POSIX_IPV6 = 200809 +const _POSIX_JOB_CONTROL = 1 +const _POSIX_MAPPED_FILES = 200809 +const _POSIX_MEMLOCK = 200809 +const _POSIX_MEMLOCK_RANGE = 200809 +const _POSIX_MEMORY_PROTECTION = 200809 +const _POSIX_MESSAGE_PASSING = 200809 +const _POSIX_MONOTONIC_CLOCK = 200809 +const _POSIX_NO_TRUNC = 1 +const _POSIX_RAW_SOCKETS = 200809 +const _POSIX_READER_WRITER_LOCKS = 200809 +const _POSIX_REALTIME_SIGNALS = 200809 +const _POSIX_REGEXP = 1 +const _POSIX_SAVED_IDS = 1 +const _POSIX_SEMAPHORES = 200809 +const _POSIX_SHARED_MEMORY_OBJECTS = 200809 +const _POSIX_SHELL = 1 +const _POSIX_SPAWN = 200809 +const _POSIX_SPIN_LOCKS = 200809 +const _POSIX_THREADS = 200809 +const _POSIX_THREAD_ATTR_STACKADDR = 200809 +const _POSIX_THREAD_ATTR_STACKSIZE = 200809 +const _POSIX_THREAD_CPUTIME = 200809 +const _POSIX_THREAD_PRIORITY_SCHEDULING = 200809 +const _POSIX_THREAD_PROCESS_SHARED = 200809 +const _POSIX_THREAD_SAFE_FUNCTIONS = 200809 +const _POSIX_TIMEOUTS = 200809 +const _POSIX_TIMERS = 200809 +const _POSIX_V6_LP64_OFF64 = 1 +const _POSIX_V7_LP64_OFF64 = 1 +const _POSIX_VDISABLE = 0 +const _POSIX_VERSION = 200809 +const _SC_2_CHAR_TERM = 95 +const _SC_2_C_BIND = 47 +const _SC_2_C_DEV = 48 +const _SC_2_FORT_DEV = 49 +const _SC_2_FORT_RUN = 50 +const _SC_2_LOCALEDEF = 52 +const _SC_2_PBS = 168 +const _SC_2_PBS_ACCOUNTING = 169 +const _SC_2_PBS_CHECKPOINT = 175 +const _SC_2_PBS_LOCATE = 170 +const _SC_2_PBS_MESSAGE = 171 +const _SC_2_PBS_TRACK = 172 +const _SC_2_SW_DEV = 51 +const _SC_2_UPE = 97 +const _SC_2_VERSION = 46 +const _SC_ADVISORY_INFO = 132 +const _SC_AIO_LISTIO_MAX = 23 +const _SC_AIO_MAX = 24 +const _SC_AIO_PRIO_DELTA_MAX = 25 +const _SC_ARG_MAX = 0 +const _SC_ASYNCHRONOUS_IO = 12 +const _SC_ATEXIT_MAX = 87 +const _SC_AVPHYS_PAGES = 86 +const _SC_BARRIERS = 133 +const _SC_BC_BASE_MAX = 36 +const _SC_BC_DIM_MAX = 37 +const _SC_BC_SCALE_MAX = 38 +const _SC_BC_STRING_MAX = 39 +const _SC_CHILD_MAX = 1 +const _SC_CLK_TCK = 2 +const _SC_CLOCK_SELECTION = 137 +const _SC_COLL_WEIGHTS_MAX = 40 +const _SC_CPUTIME = 138 +const _SC_DELAYTIMER_MAX = 26 +const _SC_EXPR_NEST_MAX = 42 +const _SC_FSYNC = 15 +const _SC_GETGR_R_SIZE_MAX = 69 +const _SC_GETPW_R_SIZE_MAX = 70 +const _SC_HOST_NAME_MAX = 180 +const _SC_IOV_MAX = 60 +const _SC_IPV6 = 235 +const _SC_JOB_CONTROL = 7 +const _SC_LINE_MAX = 43 +const _SC_LOGIN_NAME_MAX = 71 +const _SC_MAPPED_FILES = 16 +const _SC_MEMLOCK = 17 +const _SC_MEMLOCK_RANGE = 18 +const _SC_MEMORY_PROTECTION = 19 +const _SC_MESSAGE_PASSING = 20 +const _SC_MINSIGSTKSZ = 249 +const _SC_MONOTONIC_CLOCK = 149 +const _SC_MQ_OPEN_MAX = 27 +const _SC_MQ_PRIO_MAX = 28 +const _SC_NGROUPS_MAX = 3 +const _SC_NPROCESSORS_CONF = 83 +const _SC_NPROCESSORS_ONLN = 84 +const _SC_NZERO = 109 +const _SC_OPEN_MAX = 4 +const _SC_PAGESIZE = 30 +const _SC_PAGE_SIZE = 30 +const _SC_PASS_MAX = 88 +const _SC_PHYS_PAGES = 85 +const _SC_PRIORITIZED_IO = 13 +const _SC_PRIORITY_SCHEDULING = 10 +const _SC_RAW_SOCKETS = 236 +const _SC_READER_WRITER_LOCKS = 153 +const _SC_REALTIME_SIGNALS = 9 +const _SC_REGEXP = 155 +const _SC_RE_DUP_MAX = 44 +const _SC_RTSIG_MAX = 31 +const _SC_SAVED_IDS = 8 +const _SC_SEMAPHORES = 21 +const _SC_SEM_NSEMS_MAX = 32 +const _SC_SEM_VALUE_MAX = 33 +const _SC_SHARED_MEMORY_OBJECTS = 22 +const _SC_SHELL = 157 +const _SC_SIGQUEUE_MAX = 34 +const _SC_SIGSTKSZ = 250 +const _SC_SPAWN = 159 +const _SC_SPIN_LOCKS = 154 +const _SC_SPORADIC_SERVER = 160 +const _SC_SS_REPL_MAX = 241 +const _SC_STREAMS = 174 +const _SC_STREAM_MAX = 5 +const _SC_SYMLOOP_MAX = 173 +const _SC_SYNCHRONIZED_IO = 14 +const _SC_THREADS = 67 +const _SC_THREAD_ATTR_STACKADDR = 77 +const _SC_THREAD_ATTR_STACKSIZE = 78 +const _SC_THREAD_CPUTIME = 139 +const _SC_THREAD_DESTRUCTOR_ITERATIONS = 73 +const _SC_THREAD_KEYS_MAX = 74 +const _SC_THREAD_PRIORITY_SCHEDULING = 79 +const _SC_THREAD_PRIO_INHERIT = 80 +const _SC_THREAD_PRIO_PROTECT = 81 +const _SC_THREAD_PROCESS_SHARED = 82 +const _SC_THREAD_ROBUST_PRIO_INHERIT = 247 +const _SC_THREAD_ROBUST_PRIO_PROTECT = 248 +const _SC_THREAD_SAFE_FUNCTIONS = 68 +const _SC_THREAD_SPORADIC_SERVER = 161 +const _SC_THREAD_STACK_MIN = 75 +const _SC_THREAD_THREADS_MAX = 76 +const _SC_TIMEOUTS = 164 +const _SC_TIMERS = 11 +const _SC_TIMER_MAX = 35 +const _SC_TRACE = 181 +const _SC_TRACE_EVENT_FILTER = 182 +const _SC_TRACE_EVENT_NAME_MAX = 242 +const _SC_TRACE_INHERIT = 183 +const _SC_TRACE_LOG = 184 +const _SC_TRACE_NAME_MAX = 243 +const _SC_TRACE_SYS_MAX = 244 +const _SC_TRACE_USER_EVENT_MAX = 245 +const _SC_TTY_NAME_MAX = 72 +const _SC_TYPED_MEMORY_OBJECTS = 165 +const _SC_TZNAME_MAX = 6 +const _SC_UIO_MAXIOV = 60 +const _SC_V6_ILP32_OFF32 = 176 +const _SC_V6_ILP32_OFFBIG = 177 +const _SC_V6_LP64_OFF64 = 178 +const _SC_V6_LPBIG_OFFBIG = 179 +const _SC_V7_ILP32_OFF32 = 237 +const _SC_V7_ILP32_OFFBIG = 238 +const _SC_V7_LP64_OFF64 = 239 +const _SC_V7_LPBIG_OFFBIG = 240 +const _SC_VERSION = 29 +const _SC_XBS5_ILP32_OFF32 = 125 +const _SC_XBS5_ILP32_OFFBIG = 126 +const _SC_XBS5_LP64_OFF64 = 127 +const _SC_XBS5_LPBIG_OFFBIG = 128 +const _SC_XOPEN_CRYPT = 92 +const _SC_XOPEN_ENH_I18N = 93 +const _SC_XOPEN_LEGACY = 129 +const _SC_XOPEN_REALTIME = 130 +const _SC_XOPEN_REALTIME_THREADS = 131 +const _SC_XOPEN_SHM = 94 +const _SC_XOPEN_STREAMS = 246 +const _SC_XOPEN_UNIX = 91 +const _SC_XOPEN_VERSION = 89 +const _SC_XOPEN_XCU_VERSION = 90 +const _SC_XOPEN_XPG2 = 98 +const _SC_XOPEN_XPG3 = 99 +const _SC_XOPEN_XPG4 = 100 +const _XOPEN_ENH_I18N = 1 +const _XOPEN_UNIX = 1 +const _XOPEN_VERSION = 700 + +type Tsize_t = uint64 + +type Tssize_t = int64 + +type Toff_t = int64 + +type Tpid_t = int32 + +type Tuid_t = uint32 + +type Tgid_t = uint32 + +type Tuseconds_t = uint32 + +type Tva_list = uintptr + +type t__isoc_va_list = uintptr + +type Tfpos_t = struct { + F__lldata [0]int64 + F__align [0]float64 + F__opaque [16]uint8 +} + +type T_G_fpos64_t = Tfpos_t + +func Xconfstr(tls *TLS, name int32, buf uintptr, len1 Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v name=%v buf=%v len1=%v, (%v:)", tls, name, buf, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var s uintptr + _ = s + s = __ccgo_ts + if !(name != 0) { + s = __ccgo_ts + 1 + } else { + if Uint32FromInt32(name) & ^Uint32FromUint32(4) != uint32(1) && Uint32FromInt32(name-int32(_CS_POSIX_V6_ILP32_OFF32_CFLAGS)) > uint32(35) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uint64(0) + } + } + // snprintf is overkill but avoid wasting code size to implement + // this completely useless function and its truncation semantics + return Uint64FromInt32(Xsnprintf(tls, buf, len1, __ccgo_ts+15, VaList(bp+8, s)) + int32(1)) +} + +const ARG_MAX = 131072 +const BC_BASE_MAX = 99 +const BC_DIM_MAX = 2048 +const BC_SCALE_MAX = 99 +const BC_STRING_MAX = 1000 +const CHARCLASS_NAME_MAX = 14 +const CHAR_BIT = 8 +const CHAR_MAX = 255 +const CHAR_MIN = 0 +const COLL_WEIGHTS_MAX = 2 +const DELAYTIMER_MAX = 2147483647 +const EXPR_NEST_MAX = 32 +const FILESIZEBITS = 64 +const HOST_NAME_MAX = 255 +const INT_MAX = 2147483647 +const INT_MIN = -2147483648 +const IOV_MAX = 1024 +const LINE_MAX = 4096 +const LLONG_MAX = 9223372036854775807 +const LLONG_MIN = -9223372036854775808 +const LOGIN_NAME_MAX = 256 +const LONG_BIT = 64 +const LONG_MAX = 9223372036854775807 +const LONG_MIN = -9223372036854775808 +const MB_LEN_MAX = 4 +const MQ_PRIO_MAX = 32768 +const NAME_MAX = 255 +const NGROUPS_MAX = 32 +const NL_ARGMAX = 9 +const NL_LANGMAX = 32 +const NL_MSGMAX = 32767 +const NL_SETMAX = 255 +const NL_TEXTMAX = 2048 +const NZERO = 20 +const PAGESIZE = 4096 +const PAGE_SIZE = 4096 +const PATH_MAX = 4096 +const PIPE_BUF = 4096 +const PTHREAD_DESTRUCTOR_ITERATIONS = 4 +const PTHREAD_KEYS_MAX = 128 +const PTHREAD_STACK_MIN = 2048 +const RE_DUP_MAX = 255 +const SCHAR_MAX = 127 +const SCHAR_MIN = -128 +const SEEK_CUR = 1 +const SEEK_END = 2 +const SEEK_SET = 0 +const SEM_NSEMS_MAX = 256 +const SEM_VALUE_MAX = 2147483647 +const SHRT_MAX = 32767 +const SHRT_MIN = -32768 +const SSIZE_MAX = 9223372036854775807 +const SYMLOOP_MAX = 40 +const TTY_NAME_MAX = 32 +const TZNAME_MAX = 6 +const UCHAR_MAX = 255 +const UINT_MAX = 4294967295 +const ULLONG_MAX = 18446744073709551615 +const ULONG_MAX = 18446744073709551615 +const USHRT_MAX = 65535 +const WORD_BIT = 32 +const _POSIX2_BC_BASE_MAX = 99 +const _POSIX2_BC_DIM_MAX = 2048 +const _POSIX2_BC_SCALE_MAX = 99 +const _POSIX2_BC_STRING_MAX = 1000 +const _POSIX2_CHARCLASS_NAME_MAX = 14 +const _POSIX2_COLL_WEIGHTS_MAX = 2 +const _POSIX2_EXPR_NEST_MAX = 32 +const _POSIX2_LINE_MAX = 2048 +const _POSIX2_RE_DUP_MAX = 255 +const _POSIX_AIO_LISTIO_MAX = 2 +const _POSIX_AIO_MAX = 1 +const _POSIX_ARG_MAX = 4096 +const _POSIX_CHILD_MAX = 25 +const _POSIX_CLOCKRES_MIN = 20000000 +const _POSIX_DELAYTIMER_MAX = 32 +const _POSIX_HOST_NAME_MAX = 255 +const _POSIX_LINK_MAX = 8 +const _POSIX_LOGIN_NAME_MAX = 9 +const _POSIX_MAX_CANON = 255 +const _POSIX_MAX_INPUT = 255 +const _POSIX_MQ_OPEN_MAX = 8 +const _POSIX_MQ_PRIO_MAX = 32 +const _POSIX_NAME_MAX = 14 +const _POSIX_NGROUPS_MAX = 8 +const _POSIX_OPEN_MAX = 20 +const _POSIX_PATH_MAX = 256 +const _POSIX_PIPE_BUF = 512 +const _POSIX_RE_DUP_MAX = 255 +const _POSIX_RTSIG_MAX = 8 +const _POSIX_SEM_NSEMS_MAX = 256 +const _POSIX_SEM_VALUE_MAX = 32767 +const _POSIX_SIGQUEUE_MAX = 32 +const _POSIX_SSIZE_MAX = 32767 +const _POSIX_SS_REPL_MAX = 4 +const _POSIX_STREAM_MAX = 8 +const _POSIX_SYMLINK_MAX = 255 +const _POSIX_SYMLOOP_MAX = 8 +const _POSIX_THREAD_DESTRUCTOR_ITERATIONS = 4 +const _POSIX_THREAD_KEYS_MAX = 128 +const _POSIX_THREAD_THREADS_MAX = 64 +const _POSIX_TIMER_MAX = 32 +const _POSIX_TRACE_EVENT_NAME_MAX = 30 +const _POSIX_TRACE_NAME_MAX = 8 +const _POSIX_TRACE_SYS_MAX = 8 +const _POSIX_TRACE_USER_EVENT_MAX = 32 +const _POSIX_TTY_NAME_MAX = 9 +const _POSIX_TZNAME_MAX = 6 +const _XOPEN_IOV_MAX = 16 +const _XOPEN_NAME_MAX = 255 +const _XOPEN_PATH_MAX = 1024 + +func Xfpathconf(tls *TLS, fd int32, name int32) (r int64) { + if __ccgo_strace { + trc("tls=%v fd=%v name=%v, (%v:)", tls, fd, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + if Uint64FromInt32(name) >= Uint64FromInt64(42)/Uint64FromInt64(2) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return int64(-int32(1)) + } + return int64(_values[name]) +} + +var _values = [21]int16{ + 0: int16(_POSIX_LINK_MAX), + 1: int16(_POSIX_MAX_CANON), + 2: int16(_POSIX_MAX_INPUT), + 3: int16(NAME_MAX), + 4: int16(PATH_MAX), + 5: int16(PIPE_BUF), + 6: int16(1), + 7: int16(1), + 9: int16(1), + 10: int16(-int32(1)), + 11: int16(-int32(1)), + 12: int16(-int32(1)), + 13: int16(FILESIZEBITS), + 14: int16(4096), + 15: int16(4096), + 16: int16(4096), + 17: int16(4096), + 18: int16(4096), + 19: int16(-int32(1)), + 20: int16(1), +} + +const SI_LOAD_SHIFT = 16 + +type Tsysinfo = struct { + Fuptime uint64 + Floads [3]uint64 + Ftotalram uint64 + Ffreeram uint64 + Fsharedram uint64 + Fbufferram uint64 + Ftotalswap uint64 + Ffreeswap uint64 + Fprocs uint16 + Fpad uint16 + Ftotalhigh uint64 + Ffreehigh uint64 + Fmem_unit uint32 + F__reserved [256]uint8 +} + +func Xget_nprocs_conf(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(Xsysconf(tls, int32(_SC_NPROCESSORS_CONF))) +} + +func Xget_nprocs(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(Xsysconf(tls, int32(_SC_NPROCESSORS_ONLN))) +} + +func Xget_phys_pages(tls *TLS) (r int64) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xsysconf(tls, int32(_SC_PHYS_PAGES)) +} + +func Xget_avphys_pages(tls *TLS) (r int64) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xsysconf(tls, int32(_SC_AVPHYS_PAGES)) +} + +func Xpathconf(tls *TLS, path uintptr, name int32) (r int64) { + if __ccgo_strace { + trc("tls=%v path=%v name=%v, (%v:)", tls, path, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfpathconf(tls, -int32(1), name) +} + +const AT_BASE = 7 +const AT_BASE_PLATFORM = 24 +const AT_CLKTCK = 17 +const AT_DCACHEBSIZE = 19 +const AT_EGID = 14 +const AT_ENTRY = 9 +const AT_EUID = 12 +const AT_EXECFD = 2 +const AT_EXECFN = 31 +const AT_FLAGS = 8 +const AT_FPUCW = 18 +const AT_GID = 13 +const AT_HWCAP = 16 +const AT_HWCAP2 = 26 +const AT_ICACHEBSIZE = 20 +const AT_IGNORE = 1 +const AT_IGNOREPPC = 22 +const AT_L1D_CACHEGEOMETRY = 43 +const AT_L1D_CACHESHAPE = 35 +const AT_L1D_CACHESIZE = 42 +const AT_L1I_CACHEGEOMETRY = 41 +const AT_L1I_CACHESHAPE = 34 +const AT_L1I_CACHESIZE = 40 +const AT_L2_CACHEGEOMETRY = 45 +const AT_L2_CACHESHAPE = 36 +const AT_L2_CACHESIZE = 44 +const AT_L3_CACHEGEOMETRY = 47 +const AT_L3_CACHESHAPE = 37 +const AT_L3_CACHESIZE = 46 +const AT_MINSIGSTKSZ = 51 +const AT_NOTELF = 10 +const AT_NULL = 0 +const AT_PAGESZ = 6 +const AT_PHDR = 3 +const AT_PHENT = 4 +const AT_PHNUM = 5 +const AT_PLATFORM = 15 +const AT_RANDOM = 25 +const AT_SECURE = 23 +const AT_SYSINFO = 32 +const AT_SYSINFO_EHDR = 33 +const AT_UCACHEBSIZE = 21 +const AT_UID = 11 +const BUS_ADRALN = 1 +const BUS_ADRERR = 2 +const BUS_MCEERR_AO = 5 +const BUS_MCEERR_AR = 4 +const BUS_OBJERR = 3 +const CLD_CONTINUED = 6 +const CLD_DUMPED = 3 +const CLD_EXITED = 1 +const CLD_KILLED = 2 +const CLD_STOPPED = 5 +const CLD_TRAPPED = 4 +const DF_1_CONFALT = 8192 +const DF_1_DIRECT = 256 +const DF_1_DISPRELDNE = 32768 +const DF_1_DISPRELPND = 65536 +const DF_1_EDITED = 2097152 +const DF_1_ENDFILTEE = 16384 +const DF_1_GLOBAL = 2 +const DF_1_GLOBAUDIT = 16777216 +const DF_1_GROUP = 4 +const DF_1_IGNMULDEF = 262144 +const DF_1_INITFIRST = 32 +const DF_1_INTERPOSE = 1024 +const DF_1_LOADFLTR = 16 +const DF_1_NODEFLIB = 2048 +const DF_1_NODELETE = 8 +const DF_1_NODIRECT = 131072 +const DF_1_NODUMP = 4096 +const DF_1_NOHDR = 1048576 +const DF_1_NOKSYMS = 524288 +const DF_1_NOOPEN = 64 +const DF_1_NORELOC = 4194304 +const DF_1_NOW = 1 +const DF_1_ORIGIN = 128 +const DF_1_PIE = 134217728 +const DF_1_SINGLETON = 33554432 +const DF_1_STUB = 67108864 +const DF_1_SYMINTPOSE = 8388608 +const DF_1_TRANS = 512 +const DF_BIND_NOW = 8 +const DF_ORIGIN = 1 +const DF_P1_GROUPPERM = 2 +const DF_P1_LAZYLOAD = 1 +const DF_STATIC_TLS = 16 +const DF_SYMBOLIC = 2 +const DF_TEXTREL = 4 +const DTF_1_CONFEXP = 2 +const DTF_1_PARINIT = 1 +const DT_ADDRNUM = 11 +const DT_ADDRRNGHI = 1879047935 +const DT_ADDRRNGLO = 1879047680 +const DT_ALPHA_NUM = 1 +const DT_ALPHA_PLTRO = 1879048192 +const DT_AUDIT = 1879047932 +const DT_AUXILIARY = 2147483645 +const DT_BIND_NOW = 24 +const DT_CHECKSUM = 1879047672 +const DT_CONFIG = 1879047930 +const DT_DEBUG = 21 +const DT_DEPAUDIT = 1879047931 +const DT_ENCODING = 32 +const DT_EXTRANUM = 3 +const DT_FEATURE_1 = 1879047676 +const DT_FILTER = 2147483647 +const DT_FINI = 13 +const DT_FINI_ARRAY = 26 +const DT_FINI_ARRAYSZ = 28 +const DT_FLAGS = 30 +const DT_FLAGS_1 = 1879048187 +const DT_GNU_CONFLICT = 1879047928 +const DT_GNU_CONFLICTSZ = 1879047670 +const DT_GNU_HASH = 1879047925 +const DT_GNU_LIBLIST = 1879047929 +const DT_GNU_LIBLISTSZ = 1879047671 +const DT_GNU_PRELINKED = 1879047669 +const DT_HASH = 4 +const DT_HIOS = 1879044096 +const DT_HIPROC = 2147483647 +const DT_IA_64_NUM = 1 +const DT_IA_64_PLT_RESERVE = 1879048192 +const DT_INIT = 12 +const DT_INIT_ARRAY = 25 +const DT_INIT_ARRAYSZ = 27 +const DT_JMPREL = 23 +const DT_LOOS = 1610612749 +const DT_LOPROC = 1879048192 +const DT_MIPS_AUX_DYNAMIC = 1879048241 +const DT_MIPS_BASE_ADDRESS = 1879048198 +const DT_MIPS_COMPACT_SIZE = 1879048239 +const DT_MIPS_CONFLICT = 1879048200 +const DT_MIPS_CONFLICTNO = 1879048203 +const DT_MIPS_CXX_FLAGS = 1879048226 +const DT_MIPS_DELTA_CLASS = 1879048215 +const DT_MIPS_DELTA_CLASSSYM = 1879048224 +const DT_MIPS_DELTA_CLASSSYM_NO = 1879048225 +const DT_MIPS_DELTA_CLASS_NO = 1879048216 +const DT_MIPS_DELTA_INSTANCE = 1879048217 +const DT_MIPS_DELTA_INSTANCE_NO = 1879048218 +const DT_MIPS_DELTA_RELOC = 1879048219 +const DT_MIPS_DELTA_RELOC_NO = 1879048220 +const DT_MIPS_DELTA_SYM = 1879048221 +const DT_MIPS_DELTA_SYM_NO = 1879048222 +const DT_MIPS_DYNSTR_ALIGN = 1879048235 +const DT_MIPS_FLAGS = 1879048197 +const DT_MIPS_GOTSYM = 1879048211 +const DT_MIPS_GP_VALUE = 1879048240 +const DT_MIPS_HIDDEN_GOTIDX = 1879048231 +const DT_MIPS_HIPAGENO = 1879048212 +const DT_MIPS_ICHECKSUM = 1879048195 +const DT_MIPS_INTERFACE = 1879048234 +const DT_MIPS_INTERFACE_SIZE = 1879048236 +const DT_MIPS_IVERSION = 1879048196 +const DT_MIPS_LIBLIST = 1879048201 +const DT_MIPS_LIBLISTNO = 1879048208 +const DT_MIPS_LOCALPAGE_GOTIDX = 1879048229 +const DT_MIPS_LOCAL_GOTIDX = 1879048230 +const DT_MIPS_LOCAL_GOTNO = 1879048202 +const DT_MIPS_MSYM = 1879048199 +const DT_MIPS_NUM = 54 +const DT_MIPS_OPTIONS = 1879048233 +const DT_MIPS_PERF_SUFFIX = 1879048238 +const DT_MIPS_PIXIE_INIT = 1879048227 +const DT_MIPS_PLTGOT = 1879048242 +const DT_MIPS_PROTECTED_GOTIDX = 1879048232 +const DT_MIPS_RLD_MAP = 1879048214 +const DT_MIPS_RLD_MAP_REL = 1879048245 +const DT_MIPS_RLD_TEXT_RESOLVE_ADDR = 1879048237 +const DT_MIPS_RLD_VERSION = 1879048193 +const DT_MIPS_RWPLT = 1879048244 +const DT_MIPS_SYMBOL_LIB = 1879048228 +const DT_MIPS_SYMTABNO = 1879048209 +const DT_MIPS_TIME_STAMP = 1879048194 +const DT_MIPS_UNREFEXTNO = 1879048210 +const DT_MOVEENT = 1879047674 +const DT_MOVESZ = 1879047675 +const DT_MOVETAB = 1879047934 +const DT_NEEDED = 1 +const DT_NIOS2_GP = 1879048194 +const DT_NULL = 0 +const DT_NUM = 38 +const DT_PLTGOT = 3 +const DT_PLTPAD = 1879047933 +const DT_PLTPADSZ = 1879047673 +const DT_PLTREL = 20 +const DT_PLTRELSZ = 2 +const DT_POSFLAG_1 = 1879047677 +const DT_PPC64_GLINK = 1879048192 +const DT_PPC64_NUM = 4 +const DT_PPC64_OPD = 1879048193 +const DT_PPC64_OPDSZ = 1879048194 +const DT_PPC64_OPT = 1879048195 +const DT_PPC_GOT = 1879048192 +const DT_PPC_NUM = 2 +const DT_PPC_OPT = 1879048193 +const DT_PREINIT_ARRAY = 32 +const DT_PREINIT_ARRAYSZ = 33 +const DT_PROCNUM = 54 +const DT_REL = 17 +const DT_RELA = 7 +const DT_RELACOUNT = 1879048185 +const DT_RELAENT = 9 +const DT_RELASZ = 8 +const DT_RELCOUNT = 1879048186 +const DT_RELENT = 19 +const DT_RELR = 36 +const DT_RELRENT = 37 +const DT_RELRSZ = 35 +const DT_RELSZ = 18 +const DT_RPATH = 15 +const DT_RUNPATH = 29 +const DT_SONAME = 14 +const DT_SPARC_NUM = 2 +const DT_SPARC_REGISTER = 1879048193 +const DT_STRSZ = 10 +const DT_STRTAB = 5 +const DT_SYMBOLIC = 16 +const DT_SYMENT = 11 +const DT_SYMINENT = 1879047679 +const DT_SYMINFO = 1879047935 +const DT_SYMINSZ = 1879047678 +const DT_SYMTAB = 6 +const DT_SYMTAB_SHNDX = 34 +const DT_TEXTREL = 22 +const DT_TLSDESC_GOT = 1879047927 +const DT_TLSDESC_PLT = 1879047926 +const DT_VALNUM = 12 +const DT_VALRNGHI = 1879047679 +const DT_VALRNGLO = 1879047424 +const DT_VERDEF = 1879048188 +const DT_VERDEFNUM = 1879048189 +const DT_VERNEED = 1879048190 +const DT_VERNEEDNUM = 1879048191 +const DT_VERSIONTAGNUM = 16 +const DT_VERSYM = 1879048176 +const EFA_PARISC_1_0 = 523 +const EFA_PARISC_1_1 = 528 +const EFA_PARISC_2_0 = 532 +const EF_ALPHA_32BIT = 1 +const EF_ALPHA_CANRELAX = 2 +const EF_ARM_ABI_FLOAT_HARD = 1024 +const EF_ARM_ABI_FLOAT_SOFT = 512 +const EF_ARM_ALIGN8 = 64 +const EF_ARM_APCS_26 = 8 +const EF_ARM_APCS_FLOAT = 16 +const EF_ARM_BE8 = 8388608 +const EF_ARM_DYNSYMSUSESEGIDX = 8 +const EF_ARM_EABIMASK = 4278190080 +const EF_ARM_EABI_UNKNOWN = 0 +const EF_ARM_EABI_VER1 = 16777216 +const EF_ARM_EABI_VER2 = 33554432 +const EF_ARM_EABI_VER3 = 50331648 +const EF_ARM_EABI_VER4 = 67108864 +const EF_ARM_EABI_VER5 = 83886080 +const EF_ARM_HASENTRY = 2 +const EF_ARM_INTERWORK = 4 +const EF_ARM_LE8 = 4194304 +const EF_ARM_MAPSYMSFIRST = 16 +const EF_ARM_MAVERICK_FLOAT = 2048 +const EF_ARM_NEW_ABI = 128 +const EF_ARM_OLD_ABI = 256 +const EF_ARM_PIC = 32 +const EF_ARM_RELEXEC = 1 +const EF_ARM_SOFT_FLOAT = 512 +const EF_ARM_SYMSARESORTED = 4 +const EF_ARM_VFP_FLOAT = 1024 +const EF_CPU32 = 8454144 +const EF_IA_64_ABI64 = 16 +const EF_IA_64_ARCH = 4278190080 +const EF_IA_64_MASKOS = 15 +const EF_LARCH_ABI_DOUBLE_FLOAT = 3 +const EF_LARCH_ABI_MODIFIER_MASK = 7 +const EF_LARCH_ABI_SINGLE_FLOAT = 2 +const EF_LARCH_ABI_SOFT_FLOAT = 1 +const EF_LARCH_OBJABI_V1 = 64 +const EF_MIPS_64BIT_WHIRL = 16 +const EF_MIPS_ABI2 = 32 +const EF_MIPS_ABI_ON32 = 64 +const EF_MIPS_ARCH = 4026531840 +const EF_MIPS_ARCH_1 = 0 +const EF_MIPS_ARCH_2 = 268435456 +const EF_MIPS_ARCH_3 = 536870912 +const EF_MIPS_ARCH_32 = 1342177280 +const EF_MIPS_ARCH_32R2 = 1879048192 +const EF_MIPS_ARCH_4 = 805306368 +const EF_MIPS_ARCH_5 = 1073741824 +const EF_MIPS_ARCH_64 = 1610612736 +const EF_MIPS_ARCH_64R2 = 2147483648 +const EF_MIPS_CPIC = 4 +const EF_MIPS_FP64 = 512 +const EF_MIPS_NAN2008 = 1024 +const EF_MIPS_NOREORDER = 1 +const EF_MIPS_PIC = 2 +const EF_MIPS_XGOT = 8 +const EF_PARISC_ARCH = 65535 +const EF_PARISC_EXT = 131072 +const EF_PARISC_LAZYSWAP = 4194304 +const EF_PARISC_LSB = 262144 +const EF_PARISC_NO_KABP = 1048576 +const EF_PARISC_TRAPNIL = 65536 +const EF_PARISC_WIDE = 524288 +const EF_PPC64_ABI = 3 +const EF_PPC_EMB = 2147483648 +const EF_PPC_RELOCATABLE = 65536 +const EF_PPC_RELOCATABLE_LIB = 32768 +const EF_SH1 = 1 +const EF_SH2 = 2 +const EF_SH2A = 13 +const EF_SH2A_NOFPU = 19 +const EF_SH2A_SH3E = 24 +const EF_SH2A_SH3_NOFPU = 22 +const EF_SH2A_SH4 = 23 +const EF_SH2A_SH4_NOFPU = 21 +const EF_SH2E = 11 +const EF_SH3 = 3 +const EF_SH3E = 8 +const EF_SH3_DSP = 5 +const EF_SH3_NOMMU = 20 +const EF_SH4 = 9 +const EF_SH4A = 12 +const EF_SH4AL_DSP = 6 +const EF_SH4A_NOFPU = 17 +const EF_SH4_NOFPU = 16 +const EF_SH4_NOMMU_NOFPU = 18 +const EF_SH_DSP = 4 +const EF_SH_MACH_MASK = 31 +const EF_SH_UNKNOWN = 0 +const EF_SPARCV9_MM = 3 +const EF_SPARCV9_PSO = 1 +const EF_SPARCV9_RMO = 2 +const EF_SPARCV9_TSO = 0 +const EF_SPARC_32PLUS = 256 +const EF_SPARC_EXT_MASK = 16776960 +const EF_SPARC_HAL_R1 = 1024 +const EF_SPARC_LEDATA = 8388608 +const EF_SPARC_SUN_US1 = 512 +const EF_SPARC_SUN_US3 = 2048 +const EI_ABIVERSION = 8 +const EI_CLASS = 4 +const EI_DATA = 5 +const EI_MAG0 = 0 +const EI_MAG1 = 1 +const EI_MAG2 = 2 +const EI_MAG3 = 3 +const EI_NIDENT = 16 +const EI_OSABI = 7 +const EI_PAD = 9 +const EI_VERSION = 6 +const ELFCLASS32 = 1 +const ELFCLASS64 = 2 +const ELFCLASSNONE = 0 +const ELFCLASSNUM = 3 +const ELFCOMPRESS_HIOS = 1879048191 +const ELFCOMPRESS_HIPROC = 2147483647 +const ELFCOMPRESS_LOOS = 1610612736 +const ELFCOMPRESS_LOPROC = 1879048192 +const ELFCOMPRESS_ZLIB = 1 +const ELFCOMPRESS_ZSTD = 2 +const ELFDATA2LSB = 1 +const ELFDATA2MSB = 2 +const ELFDATANONE = 0 +const ELFDATANUM = 3 +const ELFMAG = "\\177ELF" +const ELFMAG0 = 127 +const ELFMAG1 = 69 +const ELFMAG2 = 76 +const ELFMAG3 = 70 +const ELFOSABI_AIX = 7 +const ELFOSABI_ARM = 97 +const ELFOSABI_FREEBSD = 9 +const ELFOSABI_GNU = 3 +const ELFOSABI_HPUX = 1 +const ELFOSABI_IRIX = 8 +const ELFOSABI_LINUX = 3 +const ELFOSABI_MODESTO = 11 +const ELFOSABI_NETBSD = 2 +const ELFOSABI_NONE = 0 +const ELFOSABI_OPENBSD = 12 +const ELFOSABI_SOLARIS = 6 +const ELFOSABI_STANDALONE = 255 +const ELFOSABI_SYSV = 0 +const ELFOSABI_TRU64 = 10 +const ELF_NOTE_ABI = 1 +const ELF_NOTE_GNU = "GNU" +const ELF_NOTE_OS_FREEBSD = 3 +const ELF_NOTE_OS_GNU = 1 +const ELF_NOTE_OS_LINUX = 0 +const ELF_NOTE_OS_SOLARIS2 = 2 +const ELF_NOTE_PAGESIZE_HINT = 1 +const ELF_NOTE_SOLARIS = "SUNW Solaris" +const EM_386 = 3 +const EM_56800EX = 200 +const EM_68HC05 = 72 +const EM_68HC08 = 71 +const EM_68HC11 = 70 +const EM_68HC12 = 53 +const EM_68HC16 = 69 +const EM_68K = 4 +const EM_78KOR = 199 +const EM_8051 = 165 +const EM_860 = 7 +const EM_88K = 5 +const EM_960 = 19 +const EM_AARCH64 = 183 +const EM_ALPHA = 36902 +const EM_ALTERA_NIOS2 = 113 +const EM_AMDGPU = 224 +const EM_ARC = 45 +const EM_ARCA = 109 +const EM_ARC_A5 = 93 +const EM_ARC_COMPACT = 93 +const EM_ARC_COMPACT2 = 195 +const EM_ARM = 40 +const EM_AVR = 83 +const EM_AVR32 = 185 +const EM_BA1 = 201 +const EM_BA2 = 202 +const EM_BLACKFIN = 106 +const EM_BPF = 247 +const EM_C166 = 116 +const EM_CDP = 215 +const EM_CE = 119 +const EM_CLOUDSHIELD = 192 +const EM_COGE = 216 +const EM_COLDFIRE = 52 +const EM_COOL = 217 +const EM_COREA_1ST = 193 +const EM_COREA_2ND = 194 +const EM_CR = 103 +const EM_CR16 = 177 +const EM_CRAYNV2 = 172 +const EM_CRIS = 76 +const EM_CRX = 114 +const EM_CSKY = 252 +const EM_CSR_KALIMBA = 219 +const EM_CUDA = 190 +const EM_CYPRESS_M8C = 161 +const EM_D10V = 85 +const EM_D30V = 86 +const EM_DSP24 = 136 +const EM_DSPIC30F = 118 +const EM_DXP = 112 +const EM_ECOG16 = 176 +const EM_ECOG1X = 168 +const EM_ECOG2 = 134 +const EM_EMX16 = 212 +const EM_EMX8 = 213 +const EM_ETPU = 178 +const EM_EXCESS = 111 +const EM_F2MC16 = 104 +const EM_FAKE_ALPHA = 41 +const EM_FIREPATH = 78 +const EM_FR20 = 37 +const EM_FR30 = 84 +const EM_FT32 = 222 +const EM_FX66 = 66 +const EM_H8S = 48 +const EM_H8_300 = 46 +const EM_H8_300H = 47 +const EM_H8_500 = 49 +const EM_HUANY = 81 +const EM_IA_64 = 50 +const EM_IP2K = 101 +const EM_JAVELIN = 77 +const EM_K10M = 181 +const EM_KM32 = 210 +const EM_KMX32 = 211 +const EM_KVARC = 214 +const EM_L10M = 180 +const EM_LATTICEMICO32 = 138 +const EM_LOONGARCH = 258 +const EM_M16C = 117 +const EM_M32 = 1 +const EM_M32C = 120 +const EM_M32R = 88 +const EM_MANIK = 171 +const EM_MAX = 102 +const EM_MAXQ30 = 169 +const EM_MCHP_PIC = 204 +const EM_MCST_ELBRUS = 175 +const EM_ME16 = 59 +const EM_METAG = 174 +const EM_MICROBLAZE = 189 +const EM_MIPS = 8 +const EM_MIPS_RS3_LE = 10 +const EM_MIPS_X = 51 +const EM_MMA = 54 +const EM_MMDSP_PLUS = 160 +const EM_MMIX = 80 +const EM_MN10200 = 90 +const EM_MN10300 = 89 +const EM_MOXIE = 223 +const EM_MSP430 = 105 +const EM_NCPU = 56 +const EM_NDR1 = 57 +const EM_NDS32 = 167 +const EM_NONE = 0 +const EM_NORC = 218 +const EM_NS32K = 97 +const EM_NUM = 259 +const EM_OPEN8 = 196 +const EM_OPENRISC = 92 +const EM_OR1K = 92 +const EM_PARISC = 15 +const EM_PCP = 55 +const EM_PDSP = 63 +const EM_PJ = 91 +const EM_PPC = 20 +const EM_PPC64 = 21 +const EM_PRISM = 82 +const EM_QDSP6 = 164 +const EM_R32C = 162 +const EM_RCE = 39 +const EM_RH32 = 38 +const EM_RISCV = 243 +const EM_RL78 = 197 +const EM_RS08 = 132 +const EM_RX = 173 +const EM_S370 = 9 +const EM_S390 = 22 +const EM_SCORE7 = 135 +const EM_SEP = 108 +const EM_SE_C17 = 139 +const EM_SE_C33 = 107 +const EM_SH = 42 +const EM_SHARC = 133 +const EM_SLE9X = 179 +const EM_SNP1K = 99 +const EM_SPARC = 2 +const EM_SPARC32PLUS = 18 +const EM_SPARCV9 = 43 +const EM_ST100 = 60 +const EM_ST19 = 74 +const EM_ST200 = 100 +const EM_ST7 = 68 +const EM_ST9PLUS = 67 +const EM_STARCORE = 58 +const EM_STM8 = 186 +const EM_STXP7X = 166 +const EM_SVX = 73 +const EM_TILE64 = 187 +const EM_TILEGX = 191 +const EM_TILEPRO = 188 +const EM_TINYJ = 61 +const EM_TI_ARP32 = 143 +const EM_TI_C2000 = 141 +const EM_TI_C5500 = 142 +const EM_TI_C6000 = 140 +const EM_TI_PRU = 144 +const EM_TMM_GPP = 96 +const EM_TPC = 98 +const EM_TRICORE = 44 +const EM_TRIMEDIA = 163 +const EM_TSK3000 = 131 +const EM_UNICORE = 110 +const EM_V800 = 36 +const EM_V850 = 87 +const EM_VAX = 75 +const EM_VIDEOCORE = 95 +const EM_VIDEOCORE3 = 137 +const EM_VIDEOCORE5 = 198 +const EM_VISIUM = 221 +const EM_VPP500 = 17 +const EM_X86_64 = 62 +const EM_XCORE = 203 +const EM_XGATE = 115 +const EM_XIMO16 = 170 +const EM_XTENSA = 94 +const EM_Z80 = 220 +const EM_ZSP = 79 +const ET_CORE = 4 +const ET_DYN = 3 +const ET_EXEC = 2 +const ET_HIOS = 65279 +const ET_HIPROC = 65535 +const ET_LOOS = 65024 +const ET_LOPROC = 65280 +const ET_NONE = 0 +const ET_NUM = 5 +const ET_REL = 1 +const EV_CURRENT = 1 +const EV_NONE = 0 +const EV_NUM = 2 +const EXIT_FAILURE = 1 +const EXIT_SUCCESS = 0 +const E_MIPS_ARCH_1 = 0 +const E_MIPS_ARCH_2 = 268435456 +const E_MIPS_ARCH_3 = 536870912 +const E_MIPS_ARCH_32 = 1342177280 +const E_MIPS_ARCH_4 = 805306368 +const E_MIPS_ARCH_5 = 1073741824 +const E_MIPS_ARCH_64 = 1610612736 +const FD_SETSIZE = 1024 +const FPE_FLTDIV = 3 +const FPE_FLTINV = 7 +const FPE_FLTOVF = 4 +const FPE_FLTRES = 6 +const FPE_FLTSUB = 8 +const FPE_FLTUND = 5 +const FPE_INTDIV = 1 +const FPE_INTOVF = 2 +const GRP_COMDAT = 1 +const HWCAP_S390_DFP = 64 +const HWCAP_S390_EIMM = 32 +const HWCAP_S390_ESAN3 = 1 +const HWCAP_S390_ETF3EH = 256 +const HWCAP_S390_GS = 16384 +const HWCAP_S390_HIGH_GPRS = 512 +const HWCAP_S390_HPAGE = 128 +const HWCAP_S390_LDISP = 16 +const HWCAP_S390_MSA = 8 +const HWCAP_S390_STFLE = 4 +const HWCAP_S390_TE = 1024 +const HWCAP_S390_VXRS = 2048 +const HWCAP_S390_VXRS_BCD = 4096 +const HWCAP_S390_VXRS_EXT = 8192 +const HWCAP_S390_ZARCH = 2 +const ILL_BADSTK = 8 +const ILL_COPROC = 7 +const ILL_ILLADR = 3 +const ILL_ILLOPC = 1 +const ILL_ILLOPN = 2 +const ILL_ILLTRP = 4 +const ILL_PRVOPC = 5 +const ILL_PRVREG = 6 +const ITIMER_PROF = 2 +const ITIMER_REAL = 0 +const ITIMER_VIRTUAL = 1 +const JT_ARG_MAX = -254 +const JT_AVPHYS_PAGES = -247 +const JT_DELAYTIMER_MAX = -245 +const JT_MINSIGSTKSZ = -244 +const JT_MQ_PRIO_MAX = -253 +const JT_NPROCESSORS_CONF = -250 +const JT_NPROCESSORS_ONLN = -249 +const JT_PAGE_SIZE = -252 +const JT_PHYS_PAGES = -248 +const JT_SEM_VALUE_MAX = -251 +const JT_SIGSTKSZ = -243 +const JT_ZERO = -246 +const LITUSE_ALPHA_ADDR = 0 +const LITUSE_ALPHA_BASE = 1 +const LITUSE_ALPHA_BYTOFF = 2 +const LITUSE_ALPHA_JSR = 3 +const LITUSE_ALPHA_TLS_GD = 4 +const LITUSE_ALPHA_TLS_LDM = 5 +const LL_DELAY_LOAD = 16 +const LL_DELTA = 32 +const LL_EXACT_MATCH = 1 +const LL_EXPORTS = 8 +const LL_IGNORE_INT_VER = 2 +const LL_NONE = 0 +const LL_REQUIRE_MINOR = 4 +const MB_CUR_MAX = 0 +const MINSIGSTKSZ = 4096 +const MIPS_AFL_ASE_DSP = 1 +const MIPS_AFL_ASE_DSPR2 = 2 +const MIPS_AFL_ASE_EVA = 4 +const MIPS_AFL_ASE_MASK = 8191 +const MIPS_AFL_ASE_MCU = 8 +const MIPS_AFL_ASE_MDMX = 16 +const MIPS_AFL_ASE_MICROMIPS = 2048 +const MIPS_AFL_ASE_MIPS16 = 1024 +const MIPS_AFL_ASE_MIPS3D = 32 +const MIPS_AFL_ASE_MSA = 512 +const MIPS_AFL_ASE_MT = 64 +const MIPS_AFL_ASE_SMARTMIPS = 128 +const MIPS_AFL_ASE_VIRT = 256 +const MIPS_AFL_ASE_XPA = 4096 +const MIPS_AFL_EXT_10000 = 11 +const MIPS_AFL_EXT_3900 = 10 +const MIPS_AFL_EXT_4010 = 8 +const MIPS_AFL_EXT_4100 = 9 +const MIPS_AFL_EXT_4111 = 13 +const MIPS_AFL_EXT_4120 = 14 +const MIPS_AFL_EXT_4650 = 7 +const MIPS_AFL_EXT_5400 = 15 +const MIPS_AFL_EXT_5500 = 16 +const MIPS_AFL_EXT_5900 = 6 +const MIPS_AFL_EXT_LOONGSON_2E = 17 +const MIPS_AFL_EXT_LOONGSON_2F = 18 +const MIPS_AFL_EXT_LOONGSON_3A = 4 +const MIPS_AFL_EXT_OCTEON = 5 +const MIPS_AFL_EXT_OCTEON2 = 2 +const MIPS_AFL_EXT_OCTEONP = 3 +const MIPS_AFL_EXT_SB1 = 12 +const MIPS_AFL_EXT_XLR = 1 +const MIPS_AFL_FLAGS1_ODDSPREG = 1 +const MIPS_AFL_REG_128 = 3 +const MIPS_AFL_REG_32 = 1 +const MIPS_AFL_REG_64 = 2 +const MIPS_AFL_REG_NONE = 0 +const NT_386_IOPERM = 513 +const NT_386_TLS = 512 +const NT_ARC_V2 = 1536 +const NT_ARM_HW_BREAK = 1026 +const NT_ARM_HW_WATCH = 1027 +const NT_ARM_PACA_KEYS = 1031 +const NT_ARM_PACG_KEYS = 1032 +const NT_ARM_PAC_ENABLED_KEYS = 1034 +const NT_ARM_PAC_MASK = 1030 +const NT_ARM_SVE = 1029 +const NT_ARM_SYSTEM_CALL = 1028 +const NT_ARM_TAGGED_ADDR_CTRL = 1033 +const NT_ARM_TLS = 1025 +const NT_ARM_VFP = 1024 +const NT_ASRS = 8 +const NT_AUXV = 6 +const NT_FILE = 1179208773 +const NT_FPREGSET = 2 +const NT_GNU_ABI_TAG = 1 +const NT_GNU_BUILD_ID = 3 +const NT_GNU_GOLD_VERSION = 4 +const NT_GNU_PROPERTY_TYPE_0 = 5 +const NT_GWINDOWS = 7 +const NT_LOONGARCH_CPUCFG = 2560 +const NT_LOONGARCH_CSR = 2561 +const NT_LOONGARCH_LASX = 2563 +const NT_LOONGARCH_LBT = 2564 +const NT_LOONGARCH_LSX = 2562 +const NT_LWPSINFO = 17 +const NT_LWPSTATUS = 16 +const NT_METAG_CBUF = 1280 +const NT_METAG_RPIPE = 1281 +const NT_METAG_TLS = 1282 +const NT_MIPS_DSP = 2048 +const NT_MIPS_FP_MODE = 2049 +const NT_MIPS_MSA = 2050 +const NT_PLATFORM = 5 +const NT_PPC_DSCR = 261 +const NT_PPC_EBB = 262 +const NT_PPC_PMU = 263 +const NT_PPC_PPR = 260 +const NT_PPC_SPE = 257 +const NT_PPC_TAR = 259 +const NT_PPC_TM_CDSCR = 271 +const NT_PPC_TM_CFPR = 265 +const NT_PPC_TM_CGPR = 264 +const NT_PPC_TM_CPPR = 270 +const NT_PPC_TM_CTAR = 269 +const NT_PPC_TM_CVMX = 266 +const NT_PPC_TM_CVSX = 267 +const NT_PPC_TM_SPR = 268 +const NT_PPC_VMX = 256 +const NT_PPC_VSX = 258 +const NT_PRCRED = 14 +const NT_PRFPREG = 2 +const NT_PRFPXREG = 20 +const NT_PRPSINFO = 3 +const NT_PRSTATUS = 1 +const NT_PRXFPREG = 1189489535 +const NT_PRXREG = 4 +const NT_PSINFO = 13 +const NT_PSTATUS = 10 +const NT_RISCV_CSR = 2304 +const NT_RISCV_VECTOR = 2305 +const NT_S390_CTRS = 772 +const NT_S390_GS_BC = 780 +const NT_S390_GS_CB = 779 +const NT_S390_HIGH_GPRS = 768 +const NT_S390_LAST_BREAK = 774 +const NT_S390_PREFIX = 773 +const NT_S390_RI_CB = 781 +const NT_S390_SYSTEM_CALL = 775 +const NT_S390_TDB = 776 +const NT_S390_TIMER = 769 +const NT_S390_TODCMP = 770 +const NT_S390_TODPREG = 771 +const NT_S390_VXRS_HIGH = 778 +const NT_S390_VXRS_LOW = 777 +const NT_SIGINFO = 1397311305 +const NT_TASKSTRUCT = 4 +const NT_UTSNAME = 15 +const NT_VERSION = 1 +const NT_VMCOREDD = 1792 +const NT_X86_XSTATE = 514 +const ODK_EXCEPTIONS = 2 +const ODK_FILL = 5 +const ODK_HWAND = 7 +const ODK_HWOR = 8 +const ODK_HWPATCH = 4 +const ODK_NULL = 0 +const ODK_PAD = 3 +const ODK_REGINFO = 1 +const ODK_TAGS = 6 +const OEX_DISMISS = 524288 +const OEX_FPDBUG = 262144 +const OEX_FPU_DIV0 = 8 +const OEX_FPU_INEX = 1 +const OEX_FPU_INVAL = 16 +const OEX_FPU_MAX = 7936 +const OEX_FPU_MIN = 31 +const OEX_FPU_OFLO = 4 +const OEX_FPU_UFLO = 2 +const OEX_PAGE0 = 65536 +const OEX_PRECISEFP = 262144 +const OEX_SMM = 131072 +const OHWA0_R4KEOP_CHECKED = 1 +const OHWA1_R4KEOP_CLEAN = 2 +const OHW_R4KEOP = 1 +const OHW_R5KCVTL = 8 +const OHW_R5KEOP = 4 +const OHW_R8KPFETCH = 2 +const OPAD_POSTFIX = 2 +const OPAD_PREFIX = 1 +const OPAD_SYMBOL = 4 +const PF_ARM_ABS = 1073741824 +const PF_ARM_PI = 536870912 +const PF_ARM_SB = 268435456 +const PF_HP_CODE = 16777216 +const PF_HP_FAR_SHARED = 2097152 +const PF_HP_LAZYSWAP = 67108864 +const PF_HP_MODIFY = 33554432 +const PF_HP_NEAR_SHARED = 4194304 +const PF_HP_PAGE_SIZE = 1048576 +const PF_HP_SBP = 134217728 +const PF_IA_64_NORECOV = 2147483648 +const PF_MASKOS = 267386880 +const PF_MASKPROC = 4026531840 +const PF_MIPS_LOCAL = 268435456 +const PF_PARISC_SBP = 134217728 +const PF_R = 4 +const PF_W = 2 +const PF_X = 1 +const PN_XNUM = 65535 +const POLL_ERR = 4 +const POLL_HUP = 6 +const POLL_IN = 1 +const POLL_MSG = 3 +const POLL_OUT = 2 +const POLL_PRI = 5 +const PPC64_OPT_LOCALENTRY = 4 +const PPC64_OPT_MULTI_TOC = 2 +const PPC64_OPT_TLS = 1 +const PPC_OPT_TLS = 1 +const PRIO_MAX = 20 +const PRIO_MIN = -20 +const PRIO_PGRP = 1 +const PRIO_PROCESS = 0 +const PRIO_USER = 2 +const PT_ARM_EXIDX = 1879048193 +const PT_DYNAMIC = 2 +const PT_GNU_EH_FRAME = 1685382480 +const PT_GNU_PROPERTY = 1685382483 +const PT_GNU_RELRO = 1685382482 +const PT_GNU_STACK = 1685382481 +const PT_HIOS = 1879048191 +const PT_HIPROC = 2147483647 +const PT_HISUNW = 1879048191 +const PT_HP_CORE_COMM = 1610612740 +const PT_HP_CORE_KERNEL = 1610612739 +const PT_HP_CORE_LOADABLE = 1610612742 +const PT_HP_CORE_MMF = 1610612745 +const PT_HP_CORE_NONE = 1610612737 +const PT_HP_CORE_PROC = 1610612741 +const PT_HP_CORE_SHM = 1610612744 +const PT_HP_CORE_STACK = 1610612743 +const PT_HP_CORE_VERSION = 1610612738 +const PT_HP_FASTBIND = 1610612753 +const PT_HP_HSL_ANNOT = 1610612755 +const PT_HP_OPT_ANNOT = 1610612754 +const PT_HP_PARALLEL = 1610612752 +const PT_HP_STACK = 1610612756 +const PT_HP_TLS = 1610612736 +const PT_IA_64_ARCHEXT = 1879048192 +const PT_IA_64_HP_HSL_ANOT = 1610612755 +const PT_IA_64_HP_OPT_ANOT = 1610612754 +const PT_IA_64_HP_STACK = 1610612756 +const PT_IA_64_UNWIND = 1879048193 +const PT_INTERP = 3 +const PT_LOAD = 1 +const PT_LOOS = 1610612736 +const PT_LOPROC = 1879048192 +const PT_LOSUNW = 1879048186 +const PT_MIPS_ABIFLAGS = 1879048195 +const PT_MIPS_OPTIONS = 1879048194 +const PT_MIPS_REGINFO = 1879048192 +const PT_MIPS_RTPROC = 1879048193 +const PT_NOTE = 4 +const PT_NULL = 0 +const PT_NUM = 8 +const PT_PARISC_ARCHEXT = 1879048192 +const PT_PARISC_UNWIND = 1879048193 +const PT_PHDR = 6 +const PT_SHLIB = 5 +const PT_SUNWBSS = 1879048186 +const PT_SUNWSTACK = 1879048187 +const PT_TLS = 7 +const RAND_MAX = 2147483647 +const RHF_CORD = 4096 +const RHF_DEFAULT_DELAY_LOAD = 512 +const RHF_DELTA_C_PLUS_PLUS = 64 +const RHF_GUARANTEE_INIT = 32 +const RHF_GUARANTEE_START_INIT = 128 +const RHF_NONE = 0 +const RHF_NOTPOT = 2 +const RHF_NO_LIBRARY_REPLACEMENT = 4 +const RHF_NO_MOVE = 8 +const RHF_NO_UNRES_UNDEF = 8192 +const RHF_PIXIE = 256 +const RHF_QUICKSTART = 1 +const RHF_REQUICKSTART = 1024 +const RHF_REQUICKSTARTED = 2048 +const RHF_RLD_ORDER_SAFE = 16384 +const RHF_SGI_ONLY = 16 +const RLIMIT_AS = 9 +const RLIMIT_CORE = 4 +const RLIMIT_CPU = 0 +const RLIMIT_DATA = 2 +const RLIMIT_FSIZE = 1 +const RLIMIT_LOCKS = 10 +const RLIMIT_MEMLOCK = 8 +const RLIMIT_MSGQUEUE = 12 +const RLIMIT_NICE = 13 +const RLIMIT_NLIMITS = 16 +const RLIMIT_NOFILE = 7 +const RLIMIT_NPROC = 6 +const RLIMIT_RSS = 5 +const RLIMIT_RTPRIO = 14 +const RLIMIT_RTTIME = 15 +const RLIMIT_SIGPENDING = 11 +const RLIMIT_STACK = 3 +const RLIM_INFINITY = 18446744073709551615 +const RLIM_NLIMITS = 16 +const RLIM_SAVED_CUR = 18446744073709551615 +const RLIM_SAVED_MAX = 18446744073709551615 +const RUSAGE_CHILDREN = -1 +const RUSAGE_SELF = 0 +const RUSAGE_THREAD = 1 +const R_386_16 = 20 +const R_386_32 = 1 +const R_386_32PLT = 11 +const R_386_8 = 22 +const R_386_COPY = 5 +const R_386_GLOB_DAT = 6 +const R_386_GOT32 = 3 +const R_386_GOT32X = 43 +const R_386_GOTOFF = 9 +const R_386_GOTPC = 10 +const R_386_IRELATIVE = 42 +const R_386_JMP_SLOT = 7 +const R_386_NONE = 0 +const R_386_NUM = 44 +const R_386_PC16 = 21 +const R_386_PC32 = 2 +const R_386_PC8 = 23 +const R_386_PLT32 = 4 +const R_386_RELATIVE = 8 +const R_386_SIZE32 = 38 +const R_386_TLS_DESC = 41 +const R_386_TLS_DESC_CALL = 40 +const R_386_TLS_DTPMOD32 = 35 +const R_386_TLS_DTPOFF32 = 36 +const R_386_TLS_GD = 18 +const R_386_TLS_GD_32 = 24 +const R_386_TLS_GD_CALL = 26 +const R_386_TLS_GD_POP = 27 +const R_386_TLS_GD_PUSH = 25 +const R_386_TLS_GOTDESC = 39 +const R_386_TLS_GOTIE = 16 +const R_386_TLS_IE = 15 +const R_386_TLS_IE_32 = 33 +const R_386_TLS_LDM = 19 +const R_386_TLS_LDM_32 = 28 +const R_386_TLS_LDM_CALL = 30 +const R_386_TLS_LDM_POP = 31 +const R_386_TLS_LDM_PUSH = 29 +const R_386_TLS_LDO_32 = 32 +const R_386_TLS_LE = 17 +const R_386_TLS_LE_32 = 34 +const R_386_TLS_TPOFF = 14 +const R_386_TLS_TPOFF32 = 37 +const R_390_12 = 2 +const R_390_16 = 3 +const R_390_20 = 57 +const R_390_32 = 4 +const R_390_64 = 22 +const R_390_8 = 1 +const R_390_COPY = 9 +const R_390_GLOB_DAT = 10 +const R_390_GOT12 = 6 +const R_390_GOT16 = 15 +const R_390_GOT20 = 58 +const R_390_GOT32 = 7 +const R_390_GOT64 = 24 +const R_390_GOTENT = 26 +const R_390_GOTOFF16 = 27 +const R_390_GOTOFF32 = 13 +const R_390_GOTOFF64 = 28 +const R_390_GOTPC = 14 +const R_390_GOTPCDBL = 21 +const R_390_GOTPLT12 = 29 +const R_390_GOTPLT16 = 30 +const R_390_GOTPLT20 = 59 +const R_390_GOTPLT32 = 31 +const R_390_GOTPLT64 = 32 +const R_390_GOTPLTENT = 33 +const R_390_JMP_SLOT = 11 +const R_390_NONE = 0 +const R_390_NUM = 61 +const R_390_PC16 = 16 +const R_390_PC16DBL = 17 +const R_390_PC32 = 5 +const R_390_PC32DBL = 19 +const R_390_PC64 = 23 +const R_390_PLT16DBL = 18 +const R_390_PLT32 = 8 +const R_390_PLT32DBL = 20 +const R_390_PLT64 = 25 +const R_390_PLTOFF16 = 34 +const R_390_PLTOFF32 = 35 +const R_390_PLTOFF64 = 36 +const R_390_RELATIVE = 12 +const R_390_TLS_DTPMOD = 54 +const R_390_TLS_DTPOFF = 55 +const R_390_TLS_GD32 = 40 +const R_390_TLS_GD64 = 41 +const R_390_TLS_GDCALL = 38 +const R_390_TLS_GOTIE12 = 42 +const R_390_TLS_GOTIE20 = 60 +const R_390_TLS_GOTIE32 = 43 +const R_390_TLS_GOTIE64 = 44 +const R_390_TLS_IE32 = 47 +const R_390_TLS_IE64 = 48 +const R_390_TLS_IEENT = 49 +const R_390_TLS_LDCALL = 39 +const R_390_TLS_LDM32 = 45 +const R_390_TLS_LDM64 = 46 +const R_390_TLS_LDO32 = 52 +const R_390_TLS_LDO64 = 53 +const R_390_TLS_LE32 = 50 +const R_390_TLS_LE64 = 51 +const R_390_TLS_LOAD = 37 +const R_390_TLS_TPOFF = 56 +const R_68K_16 = 2 +const R_68K_32 = 1 +const R_68K_8 = 3 +const R_68K_COPY = 19 +const R_68K_GLOB_DAT = 20 +const R_68K_GOT16 = 8 +const R_68K_GOT16O = 11 +const R_68K_GOT32 = 7 +const R_68K_GOT32O = 10 +const R_68K_GOT8 = 9 +const R_68K_GOT8O = 12 +const R_68K_JMP_SLOT = 21 +const R_68K_NONE = 0 +const R_68K_NUM = 43 +const R_68K_PC16 = 5 +const R_68K_PC32 = 4 +const R_68K_PC8 = 6 +const R_68K_PLT16 = 14 +const R_68K_PLT16O = 17 +const R_68K_PLT32 = 13 +const R_68K_PLT32O = 16 +const R_68K_PLT8 = 15 +const R_68K_PLT8O = 18 +const R_68K_RELATIVE = 22 +const R_68K_TLS_DTPMOD32 = 40 +const R_68K_TLS_DTPREL32 = 41 +const R_68K_TLS_GD16 = 26 +const R_68K_TLS_GD32 = 25 +const R_68K_TLS_GD8 = 27 +const R_68K_TLS_IE16 = 35 +const R_68K_TLS_IE32 = 34 +const R_68K_TLS_IE8 = 36 +const R_68K_TLS_LDM16 = 29 +const R_68K_TLS_LDM32 = 28 +const R_68K_TLS_LDM8 = 30 +const R_68K_TLS_LDO16 = 32 +const R_68K_TLS_LDO32 = 31 +const R_68K_TLS_LDO8 = 33 +const R_68K_TLS_LE16 = 38 +const R_68K_TLS_LE32 = 37 +const R_68K_TLS_LE8 = 39 +const R_68K_TLS_TPREL32 = 42 +const R_AARCH64_ABS16 = 259 +const R_AARCH64_ABS32 = 258 +const R_AARCH64_ABS64 = 257 +const R_AARCH64_ADD_ABS_LO12_NC = 277 +const R_AARCH64_ADR_GOT_PAGE = 311 +const R_AARCH64_ADR_PREL_LO21 = 274 +const R_AARCH64_ADR_PREL_PG_HI21 = 275 +const R_AARCH64_ADR_PREL_PG_HI21_NC = 276 +const R_AARCH64_CALL26 = 283 +const R_AARCH64_CONDBR19 = 280 +const R_AARCH64_COPY = 1024 +const R_AARCH64_GLOB_DAT = 1025 +const R_AARCH64_GOTREL32 = 308 +const R_AARCH64_GOTREL64 = 307 +const R_AARCH64_GOT_LD_PREL19 = 309 +const R_AARCH64_JUMP26 = 282 +const R_AARCH64_JUMP_SLOT = 1026 +const R_AARCH64_LD64_GOTOFF_LO15 = 310 +const R_AARCH64_LD64_GOTPAGE_LO15 = 313 +const R_AARCH64_LD64_GOT_LO12_NC = 312 +const R_AARCH64_LDST128_ABS_LO12_NC = 299 +const R_AARCH64_LDST16_ABS_LO12_NC = 284 +const R_AARCH64_LDST32_ABS_LO12_NC = 285 +const R_AARCH64_LDST64_ABS_LO12_NC = 286 +const R_AARCH64_LDST8_ABS_LO12_NC = 278 +const R_AARCH64_LD_PREL_LO19 = 273 +const R_AARCH64_MOVW_GOTOFF_G0 = 300 +const R_AARCH64_MOVW_GOTOFF_G0_NC = 301 +const R_AARCH64_MOVW_GOTOFF_G1 = 302 +const R_AARCH64_MOVW_GOTOFF_G1_NC = 303 +const R_AARCH64_MOVW_GOTOFF_G2 = 304 +const R_AARCH64_MOVW_GOTOFF_G2_NC = 305 +const R_AARCH64_MOVW_GOTOFF_G3 = 306 +const R_AARCH64_MOVW_PREL_G0 = 287 +const R_AARCH64_MOVW_PREL_G0_NC = 288 +const R_AARCH64_MOVW_PREL_G1 = 289 +const R_AARCH64_MOVW_PREL_G1_NC = 290 +const R_AARCH64_MOVW_PREL_G2 = 291 +const R_AARCH64_MOVW_PREL_G2_NC = 292 +const R_AARCH64_MOVW_PREL_G3 = 293 +const R_AARCH64_MOVW_SABS_G0 = 270 +const R_AARCH64_MOVW_SABS_G1 = 271 +const R_AARCH64_MOVW_SABS_G2 = 272 +const R_AARCH64_MOVW_UABS_G0 = 263 +const R_AARCH64_MOVW_UABS_G0_NC = 264 +const R_AARCH64_MOVW_UABS_G1 = 265 +const R_AARCH64_MOVW_UABS_G1_NC = 266 +const R_AARCH64_MOVW_UABS_G2 = 267 +const R_AARCH64_MOVW_UABS_G2_NC = 268 +const R_AARCH64_MOVW_UABS_G3 = 269 +const R_AARCH64_NONE = 0 +const R_AARCH64_P32_ABS32 = 1 +const R_AARCH64_P32_COPY = 180 +const R_AARCH64_P32_GLOB_DAT = 181 +const R_AARCH64_P32_IRELATIVE = 188 +const R_AARCH64_P32_JUMP_SLOT = 182 +const R_AARCH64_P32_RELATIVE = 183 +const R_AARCH64_P32_TLSDESC = 187 +const R_AARCH64_P32_TLS_DTPMOD = 184 +const R_AARCH64_P32_TLS_DTPREL = 185 +const R_AARCH64_P32_TLS_TPREL = 186 +const R_AARCH64_PREL16 = 262 +const R_AARCH64_PREL32 = 261 +const R_AARCH64_PREL64 = 260 +const R_AARCH64_RELATIVE = 1027 +const R_AARCH64_TLSDESC = 1031 +const R_AARCH64_TLSDESC_ADD = 568 +const R_AARCH64_TLSDESC_ADD_LO12 = 564 +const R_AARCH64_TLSDESC_ADR_PAGE21 = 562 +const R_AARCH64_TLSDESC_ADR_PREL21 = 561 +const R_AARCH64_TLSDESC_CALL = 569 +const R_AARCH64_TLSDESC_LD64_LO12 = 563 +const R_AARCH64_TLSDESC_LDR = 567 +const R_AARCH64_TLSDESC_LD_PREL19 = 560 +const R_AARCH64_TLSDESC_OFF_G0_NC = 566 +const R_AARCH64_TLSDESC_OFF_G1 = 565 +const R_AARCH64_TLSGD_ADD_LO12_NC = 514 +const R_AARCH64_TLSGD_ADR_PAGE21 = 513 +const R_AARCH64_TLSGD_ADR_PREL21 = 512 +const R_AARCH64_TLSGD_MOVW_G0_NC = 516 +const R_AARCH64_TLSGD_MOVW_G1 = 515 +const R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21 = 541 +const R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC = 542 +const R_AARCH64_TLSIE_LD_GOTTPREL_PREL19 = 543 +const R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC = 540 +const R_AARCH64_TLSIE_MOVW_GOTTPREL_G1 = 539 +const R_AARCH64_TLSLD_ADD_DTPREL_HI12 = 528 +const R_AARCH64_TLSLD_ADD_DTPREL_LO12 = 529 +const R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC = 530 +const R_AARCH64_TLSLD_ADD_LO12_NC = 519 +const R_AARCH64_TLSLD_ADR_PAGE21 = 518 +const R_AARCH64_TLSLD_ADR_PREL21 = 517 +const R_AARCH64_TLSLD_LDST128_DTPREL_LO12 = 572 +const R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC = 573 +const R_AARCH64_TLSLD_LDST16_DTPREL_LO12 = 533 +const R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC = 534 +const R_AARCH64_TLSLD_LDST32_DTPREL_LO12 = 535 +const R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC = 536 +const R_AARCH64_TLSLD_LDST64_DTPREL_LO12 = 537 +const R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC = 538 +const R_AARCH64_TLSLD_LDST8_DTPREL_LO12 = 531 +const R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC = 532 +const R_AARCH64_TLSLD_LD_PREL19 = 522 +const R_AARCH64_TLSLD_MOVW_DTPREL_G0 = 526 +const R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC = 527 +const R_AARCH64_TLSLD_MOVW_DTPREL_G1 = 524 +const R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC = 525 +const R_AARCH64_TLSLD_MOVW_DTPREL_G2 = 523 +const R_AARCH64_TLSLD_MOVW_G0_NC = 521 +const R_AARCH64_TLSLD_MOVW_G1 = 520 +const R_AARCH64_TLSLE_ADD_TPREL_HI12 = 549 +const R_AARCH64_TLSLE_ADD_TPREL_LO12 = 550 +const R_AARCH64_TLSLE_ADD_TPREL_LO12_NC = 551 +const R_AARCH64_TLSLE_LDST128_TPREL_LO12 = 570 +const R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC = 571 +const R_AARCH64_TLSLE_LDST16_TPREL_LO12 = 554 +const R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC = 555 +const R_AARCH64_TLSLE_LDST32_TPREL_LO12 = 556 +const R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC = 557 +const R_AARCH64_TLSLE_LDST64_TPREL_LO12 = 558 +const R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC = 559 +const R_AARCH64_TLSLE_LDST8_TPREL_LO12 = 552 +const R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC = 553 +const R_AARCH64_TLSLE_MOVW_TPREL_G0 = 547 +const R_AARCH64_TLSLE_MOVW_TPREL_G0_NC = 548 +const R_AARCH64_TLSLE_MOVW_TPREL_G1 = 545 +const R_AARCH64_TLSLE_MOVW_TPREL_G1_NC = 546 +const R_AARCH64_TLSLE_MOVW_TPREL_G2 = 544 +const R_AARCH64_TLS_DTPMOD = 1028 +const R_AARCH64_TLS_DTPMOD64 = 1028 +const R_AARCH64_TLS_DTPREL = 1029 +const R_AARCH64_TLS_DTPREL64 = 1029 +const R_AARCH64_TLS_TPREL = 1030 +const R_AARCH64_TLS_TPREL64 = 1030 +const R_AARCH64_TSTBR14 = 279 +const R_ALPHA_BRADDR = 7 +const R_ALPHA_COPY = 24 +const R_ALPHA_DTPMOD64 = 31 +const R_ALPHA_DTPREL16 = 36 +const R_ALPHA_DTPREL64 = 33 +const R_ALPHA_DTPRELHI = 34 +const R_ALPHA_DTPRELLO = 35 +const R_ALPHA_GLOB_DAT = 25 +const R_ALPHA_GOTDTPREL = 32 +const R_ALPHA_GOTTPREL = 37 +const R_ALPHA_GPDISP = 6 +const R_ALPHA_GPREL16 = 19 +const R_ALPHA_GPREL32 = 3 +const R_ALPHA_GPRELHIGH = 17 +const R_ALPHA_GPRELLOW = 18 +const R_ALPHA_HINT = 8 +const R_ALPHA_JMP_SLOT = 26 +const R_ALPHA_LITERAL = 4 +const R_ALPHA_LITUSE = 5 +const R_ALPHA_NONE = 0 +const R_ALPHA_NUM = 46 +const R_ALPHA_REFLONG = 1 +const R_ALPHA_REFQUAD = 2 +const R_ALPHA_RELATIVE = 27 +const R_ALPHA_SREL16 = 9 +const R_ALPHA_SREL32 = 10 +const R_ALPHA_SREL64 = 11 +const R_ALPHA_TLSGD = 29 +const R_ALPHA_TLS_GD_HI = 28 +const R_ALPHA_TLS_LDM = 30 +const R_ALPHA_TPREL16 = 41 +const R_ALPHA_TPREL64 = 38 +const R_ALPHA_TPRELHI = 39 +const R_ALPHA_TPRELLO = 40 +const R_ARM_ABS12 = 6 +const R_ARM_ABS16 = 5 +const R_ARM_ABS32 = 2 +const R_ARM_ABS32_NOI = 55 +const R_ARM_ABS8 = 8 +const R_ARM_ALU_PCREL_15_8 = 33 +const R_ARM_ALU_PCREL_23_15 = 34 +const R_ARM_ALU_PCREL_7_0 = 32 +const R_ARM_ALU_PC_G0 = 58 +const R_ARM_ALU_PC_G0_NC = 57 +const R_ARM_ALU_PC_G1 = 60 +const R_ARM_ALU_PC_G1_NC = 59 +const R_ARM_ALU_PC_G2 = 61 +const R_ARM_ALU_SBREL_19_12 = 36 +const R_ARM_ALU_SBREL_27_20 = 37 +const R_ARM_ALU_SB_G0 = 71 +const R_ARM_ALU_SB_G0_NC = 70 +const R_ARM_ALU_SB_G1 = 73 +const R_ARM_ALU_SB_G1_NC = 72 +const R_ARM_ALU_SB_G2 = 74 +const R_ARM_AMP_VCALL9 = 12 +const R_ARM_BASE_ABS = 31 +const R_ARM_CALL = 28 +const R_ARM_COPY = 20 +const R_ARM_GLOB_DAT = 21 +const R_ARM_GNU_VTENTRY = 100 +const R_ARM_GNU_VTINHERIT = 101 +const R_ARM_GOT32 = 26 +const R_ARM_GOTOFF = 24 +const R_ARM_GOTOFF12 = 98 +const R_ARM_GOTPC = 25 +const R_ARM_GOTRELAX = 99 +const R_ARM_GOT_ABS = 95 +const R_ARM_GOT_BREL12 = 97 +const R_ARM_GOT_PREL = 96 +const R_ARM_IRELATIVE = 160 +const R_ARM_JUMP24 = 29 +const R_ARM_JUMP_SLOT = 22 +const R_ARM_LDC_PC_G0 = 67 +const R_ARM_LDC_PC_G1 = 68 +const R_ARM_LDC_PC_G2 = 69 +const R_ARM_LDC_SB_G0 = 81 +const R_ARM_LDC_SB_G1 = 82 +const R_ARM_LDC_SB_G2 = 83 +const R_ARM_LDRS_PC_G0 = 64 +const R_ARM_LDRS_PC_G1 = 65 +const R_ARM_LDRS_PC_G2 = 66 +const R_ARM_LDRS_SB_G0 = 78 +const R_ARM_LDRS_SB_G1 = 79 +const R_ARM_LDRS_SB_G2 = 80 +const R_ARM_LDR_PC_G1 = 62 +const R_ARM_LDR_PC_G2 = 63 +const R_ARM_LDR_SBREL_11_0 = 35 +const R_ARM_LDR_SB_G0 = 75 +const R_ARM_LDR_SB_G1 = 76 +const R_ARM_LDR_SB_G2 = 77 +const R_ARM_ME_TOO = 128 +const R_ARM_MOVT_ABS = 44 +const R_ARM_MOVT_BREL = 85 +const R_ARM_MOVT_PREL = 46 +const R_ARM_MOVW_ABS_NC = 43 +const R_ARM_MOVW_BREL = 86 +const R_ARM_MOVW_BREL_NC = 84 +const R_ARM_MOVW_PREL_NC = 45 +const R_ARM_NONE = 0 +const R_ARM_NUM = 256 +const R_ARM_PC13 = 4 +const R_ARM_PC24 = 1 +const R_ARM_PLT32 = 27 +const R_ARM_PLT32_ABS = 94 +const R_ARM_PREL31 = 42 +const R_ARM_RABS22 = 253 +const R_ARM_RBASE = 255 +const R_ARM_REL32 = 3 +const R_ARM_REL32_NOI = 56 +const R_ARM_RELATIVE = 23 +const R_ARM_RPC24 = 254 +const R_ARM_RREL32 = 252 +const R_ARM_RSBREL32 = 250 +const R_ARM_RXPC25 = 249 +const R_ARM_SBREL31 = 39 +const R_ARM_SBREL32 = 9 +const R_ARM_TARGET1 = 38 +const R_ARM_TARGET2 = 41 +const R_ARM_THM_ABS5 = 7 +const R_ARM_THM_ALU_PREL_11_0 = 53 +const R_ARM_THM_GOT_BREL12 = 131 +const R_ARM_THM_JUMP19 = 51 +const R_ARM_THM_JUMP24 = 30 +const R_ARM_THM_JUMP6 = 52 +const R_ARM_THM_MOVT_ABS = 48 +const R_ARM_THM_MOVT_BREL = 88 +const R_ARM_THM_MOVT_PREL = 50 +const R_ARM_THM_MOVW_ABS_NC = 47 +const R_ARM_THM_MOVW_BREL = 89 +const R_ARM_THM_MOVW_BREL_NC = 87 +const R_ARM_THM_MOVW_PREL_NC = 49 +const R_ARM_THM_PC11 = 102 +const R_ARM_THM_PC12 = 54 +const R_ARM_THM_PC22 = 10 +const R_ARM_THM_PC8 = 11 +const R_ARM_THM_PC9 = 103 +const R_ARM_THM_RPC22 = 251 +const R_ARM_THM_SWI8 = 14 +const R_ARM_THM_TLS_CALL = 93 +const R_ARM_THM_TLS_DESCSEQ = 129 +const R_ARM_THM_TLS_DESCSEQ16 = 129 +const R_ARM_THM_TLS_DESCSEQ32 = 130 +const R_ARM_THM_XPC22 = 16 +const R_ARM_TLS_CALL = 91 +const R_ARM_TLS_DESC = 13 +const R_ARM_TLS_DESCSEQ = 92 +const R_ARM_TLS_DTPMOD32 = 17 +const R_ARM_TLS_DTPOFF32 = 18 +const R_ARM_TLS_GD32 = 104 +const R_ARM_TLS_GOTDESC = 90 +const R_ARM_TLS_IE12GP = 111 +const R_ARM_TLS_IE32 = 107 +const R_ARM_TLS_LDM32 = 105 +const R_ARM_TLS_LDO12 = 109 +const R_ARM_TLS_LDO32 = 106 +const R_ARM_TLS_LE12 = 110 +const R_ARM_TLS_LE32 = 108 +const R_ARM_TLS_TPOFF32 = 19 +const R_ARM_V4BX = 40 +const R_ARM_XPC25 = 15 +const R_BPF_MAP_FD = 1 +const R_BPF_NONE = 0 +const R_CKCORE_ADDR32 = 1 +const R_CKCORE_ADDRGOT = 17 +const R_CKCORE_ADDRGOT_HI16 = 36 +const R_CKCORE_ADDRGOT_LO16 = 37 +const R_CKCORE_ADDRPLT = 18 +const R_CKCORE_ADDRPLT_HI16 = 38 +const R_CKCORE_ADDRPLT_LO16 = 39 +const R_CKCORE_ADDR_HI16 = 24 +const R_CKCORE_ADDR_LO16 = 25 +const R_CKCORE_COPY = 10 +const R_CKCORE_DOFFSET_IMM18 = 44 +const R_CKCORE_DOFFSET_IMM18BY2 = 45 +const R_CKCORE_DOFFSET_IMM18BY4 = 46 +const R_CKCORE_DOFFSET_LO16 = 42 +const R_CKCORE_GLOB_DAT = 11 +const R_CKCORE_GOT12 = 30 +const R_CKCORE_GOT32 = 15 +const R_CKCORE_GOTOFF = 13 +const R_CKCORE_GOTOFF_HI16 = 28 +const R_CKCORE_GOTOFF_LO16 = 29 +const R_CKCORE_GOTPC = 14 +const R_CKCORE_GOTPC_HI16 = 26 +const R_CKCORE_GOTPC_LO16 = 27 +const R_CKCORE_GOT_HI16 = 31 +const R_CKCORE_GOT_IMM18BY4 = 48 +const R_CKCORE_GOT_LO16 = 32 +const R_CKCORE_JUMP_SLOT = 12 +const R_CKCORE_NONE = 0 +const R_CKCORE_PCREL32 = 5 +const R_CKCORE_PCRELIMM11BY2 = 3 +const R_CKCORE_PCRELIMM8BY4 = 2 +const R_CKCORE_PCRELJSR_IMM11BY2 = 6 +const R_CKCORE_PCREL_IMM10BY2 = 22 +const R_CKCORE_PCREL_IMM10BY4 = 23 +const R_CKCORE_PCREL_IMM16BY2 = 20 +const R_CKCORE_PCREL_IMM16BY4 = 21 +const R_CKCORE_PCREL_IMM18BY2 = 43 +const R_CKCORE_PCREL_IMM26BY2 = 19 +const R_CKCORE_PCREL_IMM7BY4 = 50 +const R_CKCORE_PCREL_JSR_IMM26BY2 = 40 +const R_CKCORE_PLT12 = 33 +const R_CKCORE_PLT32 = 16 +const R_CKCORE_PLT_HI16 = 34 +const R_CKCORE_PLT_IMM18BY4 = 49 +const R_CKCORE_PLT_LO16 = 35 +const R_CKCORE_RELATIVE = 9 +const R_CKCORE_TLS_DTPMOD32 = 56 +const R_CKCORE_TLS_DTPOFF32 = 57 +const R_CKCORE_TLS_GD32 = 53 +const R_CKCORE_TLS_IE32 = 52 +const R_CKCORE_TLS_LDM32 = 54 +const R_CKCORE_TLS_LDO32 = 55 +const R_CKCORE_TLS_LE32 = 51 +const R_CKCORE_TLS_TPOFF32 = 58 +const R_CKCORE_TOFFSET_LO16 = 41 +const R_CRIS_16 = 2 +const R_CRIS_16_GOT = 13 +const R_CRIS_16_GOTPLT = 15 +const R_CRIS_16_PCREL = 5 +const R_CRIS_32 = 3 +const R_CRIS_32_GOT = 14 +const R_CRIS_32_GOTPLT = 16 +const R_CRIS_32_GOTREL = 17 +const R_CRIS_32_PCREL = 6 +const R_CRIS_32_PLT_GOTREL = 18 +const R_CRIS_32_PLT_PCREL = 19 +const R_CRIS_8 = 1 +const R_CRIS_8_PCREL = 4 +const R_CRIS_COPY = 9 +const R_CRIS_GLOB_DAT = 10 +const R_CRIS_GNU_VTENTRY = 8 +const R_CRIS_GNU_VTINHERIT = 7 +const R_CRIS_JUMP_SLOT = 11 +const R_CRIS_NONE = 0 +const R_CRIS_NUM = 20 +const R_CRIS_RELATIVE = 12 +const R_IA64_COPY = 132 +const R_IA64_DIR32LSB = 37 +const R_IA64_DIR32MSB = 36 +const R_IA64_DIR64LSB = 39 +const R_IA64_DIR64MSB = 38 +const R_IA64_DTPMOD64LSB = 167 +const R_IA64_DTPMOD64MSB = 166 +const R_IA64_DTPREL14 = 177 +const R_IA64_DTPREL22 = 178 +const R_IA64_DTPREL32LSB = 181 +const R_IA64_DTPREL32MSB = 180 +const R_IA64_DTPREL64I = 179 +const R_IA64_DTPREL64LSB = 183 +const R_IA64_DTPREL64MSB = 182 +const R_IA64_FPTR32LSB = 69 +const R_IA64_FPTR32MSB = 68 +const R_IA64_FPTR64I = 67 +const R_IA64_FPTR64LSB = 71 +const R_IA64_FPTR64MSB = 70 +const R_IA64_GPREL22 = 42 +const R_IA64_GPREL32LSB = 45 +const R_IA64_GPREL32MSB = 44 +const R_IA64_GPREL64I = 43 +const R_IA64_GPREL64LSB = 47 +const R_IA64_GPREL64MSB = 46 +const R_IA64_IMM14 = 33 +const R_IA64_IMM22 = 34 +const R_IA64_IMM64 = 35 +const R_IA64_IPLTLSB = 129 +const R_IA64_IPLTMSB = 128 +const R_IA64_LDXMOV = 135 +const R_IA64_LTOFF22 = 50 +const R_IA64_LTOFF22X = 134 +const R_IA64_LTOFF64I = 51 +const R_IA64_LTOFF_DTPMOD22 = 170 +const R_IA64_LTOFF_DTPREL22 = 186 +const R_IA64_LTOFF_FPTR22 = 82 +const R_IA64_LTOFF_FPTR32LSB = 85 +const R_IA64_LTOFF_FPTR32MSB = 84 +const R_IA64_LTOFF_FPTR64I = 83 +const R_IA64_LTOFF_FPTR64LSB = 87 +const R_IA64_LTOFF_FPTR64MSB = 86 +const R_IA64_LTOFF_TPREL22 = 154 +const R_IA64_LTV32LSB = 117 +const R_IA64_LTV32MSB = 116 +const R_IA64_LTV64LSB = 119 +const R_IA64_LTV64MSB = 118 +const R_IA64_NONE = 0 +const R_IA64_PCREL21B = 73 +const R_IA64_PCREL21BI = 121 +const R_IA64_PCREL21F = 75 +const R_IA64_PCREL21M = 74 +const R_IA64_PCREL22 = 122 +const R_IA64_PCREL32LSB = 77 +const R_IA64_PCREL32MSB = 76 +const R_IA64_PCREL60B = 72 +const R_IA64_PCREL64I = 123 +const R_IA64_PCREL64LSB = 79 +const R_IA64_PCREL64MSB = 78 +const R_IA64_PLTOFF22 = 58 +const R_IA64_PLTOFF64I = 59 +const R_IA64_PLTOFF64LSB = 63 +const R_IA64_PLTOFF64MSB = 62 +const R_IA64_REL32LSB = 109 +const R_IA64_REL32MSB = 108 +const R_IA64_REL64LSB = 111 +const R_IA64_REL64MSB = 110 +const R_IA64_SECREL32LSB = 101 +const R_IA64_SECREL32MSB = 100 +const R_IA64_SECREL64LSB = 103 +const R_IA64_SECREL64MSB = 102 +const R_IA64_SEGREL32LSB = 93 +const R_IA64_SEGREL32MSB = 92 +const R_IA64_SEGREL64LSB = 95 +const R_IA64_SEGREL64MSB = 94 +const R_IA64_SUB = 133 +const R_IA64_TPREL14 = 145 +const R_IA64_TPREL22 = 146 +const R_IA64_TPREL64I = 147 +const R_IA64_TPREL64LSB = 151 +const R_IA64_TPREL64MSB = 150 +const R_LARCH_32 = 1 +const R_LARCH_32_PCREL = 99 +const R_LARCH_64 = 2 +const R_LARCH_ABS64_HI12 = 70 +const R_LARCH_ABS64_LO20 = 69 +const R_LARCH_ABS_HI20 = 67 +const R_LARCH_ABS_LO12 = 68 +const R_LARCH_ADD16 = 48 +const R_LARCH_ADD24 = 49 +const R_LARCH_ADD32 = 50 +const R_LARCH_ADD64 = 51 +const R_LARCH_ADD8 = 47 +const R_LARCH_B16 = 64 +const R_LARCH_B21 = 65 +const R_LARCH_B26 = 66 +const R_LARCH_COPY = 4 +const R_LARCH_GNU_VTENTRY = 58 +const R_LARCH_GNU_VTINHERIT = 57 +const R_LARCH_GOT64_HI12 = 82 +const R_LARCH_GOT64_LO20 = 81 +const R_LARCH_GOT64_PC_HI12 = 78 +const R_LARCH_GOT64_PC_LO20 = 77 +const R_LARCH_GOT_HI20 = 79 +const R_LARCH_GOT_LO12 = 80 +const R_LARCH_GOT_PC_HI20 = 75 +const R_LARCH_GOT_PC_LO12 = 76 +const R_LARCH_IRELATIVE = 12 +const R_LARCH_JUMP_SLOT = 5 +const R_LARCH_MARK_LA = 20 +const R_LARCH_MARK_PCREL = 21 +const R_LARCH_NONE = 0 +const R_LARCH_PCALA64_HI12 = 74 +const R_LARCH_PCALA64_LO20 = 73 +const R_LARCH_PCALA_HI20 = 71 +const R_LARCH_PCALA_LO12 = 72 +const R_LARCH_RELATIVE = 3 +const R_LARCH_RELAX = 100 +const R_LARCH_SOP_ADD = 35 +const R_LARCH_SOP_AND = 36 +const R_LARCH_SOP_ASSERT = 30 +const R_LARCH_SOP_IF_ELSE = 37 +const R_LARCH_SOP_NOT = 31 +const R_LARCH_SOP_POP_32_S_0_10_10_16_S2 = 45 +const R_LARCH_SOP_POP_32_S_0_5_10_16_S2 = 44 +const R_LARCH_SOP_POP_32_S_10_12 = 40 +const R_LARCH_SOP_POP_32_S_10_16 = 41 +const R_LARCH_SOP_POP_32_S_10_16_S2 = 42 +const R_LARCH_SOP_POP_32_S_10_5 = 38 +const R_LARCH_SOP_POP_32_S_5_20 = 43 +const R_LARCH_SOP_POP_32_U = 46 +const R_LARCH_SOP_POP_32_U_10_12 = 39 +const R_LARCH_SOP_PUSH_ABSOLUTE = 23 +const R_LARCH_SOP_PUSH_DUP = 24 +const R_LARCH_SOP_PUSH_GPREL = 25 +const R_LARCH_SOP_PUSH_PCREL = 22 +const R_LARCH_SOP_PUSH_PLT_PCREL = 29 +const R_LARCH_SOP_PUSH_TLS_GD = 28 +const R_LARCH_SOP_PUSH_TLS_GOT = 27 +const R_LARCH_SOP_PUSH_TLS_TPREL = 26 +const R_LARCH_SOP_SL = 33 +const R_LARCH_SOP_SR = 34 +const R_LARCH_SOP_SUB = 32 +const R_LARCH_SUB16 = 53 +const R_LARCH_SUB24 = 54 +const R_LARCH_SUB32 = 55 +const R_LARCH_SUB64 = 56 +const R_LARCH_SUB8 = 52 +const R_LARCH_TLS_DTPMOD32 = 6 +const R_LARCH_TLS_DTPMOD64 = 7 +const R_LARCH_TLS_DTPREL32 = 8 +const R_LARCH_TLS_DTPREL64 = 9 +const R_LARCH_TLS_GD_HI20 = 98 +const R_LARCH_TLS_GD_PC_HI20 = 97 +const R_LARCH_TLS_IE64_HI12 = 94 +const R_LARCH_TLS_IE64_LO20 = 93 +const R_LARCH_TLS_IE64_PC_HI12 = 90 +const R_LARCH_TLS_IE64_PC_LO20 = 89 +const R_LARCH_TLS_IE_HI20 = 91 +const R_LARCH_TLS_IE_LO12 = 92 +const R_LARCH_TLS_IE_PC_HI20 = 87 +const R_LARCH_TLS_IE_PC_LO12 = 88 +const R_LARCH_TLS_LD_HI20 = 96 +const R_LARCH_TLS_LD_PC_HI20 = 95 +const R_LARCH_TLS_LE64_HI12 = 86 +const R_LARCH_TLS_LE64_LO20 = 85 +const R_LARCH_TLS_LE_HI20 = 83 +const R_LARCH_TLS_LE_LO12 = 84 +const R_LARCH_TLS_TPREL32 = 10 +const R_LARCH_TLS_TPREL64 = 11 +const R_M32R_10_PCREL = 4 +const R_M32R_10_PCREL_RELA = 36 +const R_M32R_16 = 1 +const R_M32R_16_RELA = 33 +const R_M32R_18_PCREL = 5 +const R_M32R_18_PCREL_RELA = 37 +const R_M32R_24 = 3 +const R_M32R_24_RELA = 35 +const R_M32R_26_PCREL = 6 +const R_M32R_26_PCREL_RELA = 38 +const R_M32R_26_PLTREL = 49 +const R_M32R_32 = 2 +const R_M32R_32_RELA = 34 +const R_M32R_COPY = 50 +const R_M32R_GLOB_DAT = 51 +const R_M32R_GNU_VTENTRY = 12 +const R_M32R_GNU_VTINHERIT = 11 +const R_M32R_GOT16_HI_SLO = 57 +const R_M32R_GOT16_HI_ULO = 56 +const R_M32R_GOT16_LO = 58 +const R_M32R_GOT24 = 48 +const R_M32R_GOTOFF = 54 +const R_M32R_GOTOFF_HI_SLO = 63 +const R_M32R_GOTOFF_HI_ULO = 62 +const R_M32R_GOTOFF_LO = 64 +const R_M32R_GOTPC24 = 55 +const R_M32R_GOTPC_HI_SLO = 60 +const R_M32R_GOTPC_HI_ULO = 59 +const R_M32R_GOTPC_LO = 61 +const R_M32R_HI16_SLO = 8 +const R_M32R_HI16_SLO_RELA = 40 +const R_M32R_HI16_ULO = 7 +const R_M32R_HI16_ULO_RELA = 39 +const R_M32R_JMP_SLOT = 52 +const R_M32R_LO16 = 9 +const R_M32R_LO16_RELA = 41 +const R_M32R_NONE = 0 +const R_M32R_NUM = 256 +const R_M32R_REL32 = 45 +const R_M32R_RELATIVE = 53 +const R_M32R_RELA_GNU_VTENTRY = 44 +const R_M32R_RELA_GNU_VTINHERIT = 43 +const R_M32R_SDA16 = 10 +const R_M32R_SDA16_RELA = 42 +const R_MICROBLAZE_32 = 1 +const R_MICROBLAZE_32_LO = 6 +const R_MICROBLAZE_32_PCREL = 2 +const R_MICROBLAZE_32_PCREL_LO = 4 +const R_MICROBLAZE_32_SYM_OP_SYM = 10 +const R_MICROBLAZE_64 = 5 +const R_MICROBLAZE_64_NONE = 9 +const R_MICROBLAZE_64_PCREL = 3 +const R_MICROBLAZE_COPY = 21 +const R_MICROBLAZE_GLOB_DAT = 18 +const R_MICROBLAZE_GNU_VTENTRY = 12 +const R_MICROBLAZE_GNU_VTINHERIT = 11 +const R_MICROBLAZE_GOTOFF_32 = 20 +const R_MICROBLAZE_GOTOFF_64 = 19 +const R_MICROBLAZE_GOTPC_64 = 13 +const R_MICROBLAZE_GOT_64 = 14 +const R_MICROBLAZE_JUMP_SLOT = 17 +const R_MICROBLAZE_NONE = 0 +const R_MICROBLAZE_PLT_64 = 15 +const R_MICROBLAZE_REL = 16 +const R_MICROBLAZE_SRO32 = 7 +const R_MICROBLAZE_SRW32 = 8 +const R_MICROBLAZE_TLS = 22 +const R_MICROBLAZE_TLSDTPMOD32 = 25 +const R_MICROBLAZE_TLSDTPREL32 = 26 +const R_MICROBLAZE_TLSDTPREL64 = 27 +const R_MICROBLAZE_TLSGD = 23 +const R_MICROBLAZE_TLSGOTTPREL32 = 28 +const R_MICROBLAZE_TLSLD = 24 +const R_MICROBLAZE_TLSTPREL32 = 29 +const R_MIPS_16 = 1 +const R_MIPS_26 = 4 +const R_MIPS_32 = 2 +const R_MIPS_64 = 18 +const R_MIPS_ADD_IMMEDIATE = 34 +const R_MIPS_CALL16 = 11 +const R_MIPS_CALL_HI16 = 30 +const R_MIPS_CALL_LO16 = 31 +const R_MIPS_COPY = 126 +const R_MIPS_DELETE = 27 +const R_MIPS_GLOB_DAT = 51 +const R_MIPS_GOT16 = 9 +const R_MIPS_GOT_DISP = 19 +const R_MIPS_GOT_HI16 = 22 +const R_MIPS_GOT_LO16 = 23 +const R_MIPS_GOT_OFST = 21 +const R_MIPS_GOT_PAGE = 20 +const R_MIPS_GPREL16 = 7 +const R_MIPS_GPREL32 = 12 +const R_MIPS_HI16 = 5 +const R_MIPS_HIGHER = 28 +const R_MIPS_HIGHEST = 29 +const R_MIPS_INSERT_A = 25 +const R_MIPS_INSERT_B = 26 +const R_MIPS_JALR = 37 +const R_MIPS_JUMP_SLOT = 127 +const R_MIPS_LITERAL = 8 +const R_MIPS_LO16 = 6 +const R_MIPS_NONE = 0 +const R_MIPS_NUM = 128 +const R_MIPS_PC16 = 10 +const R_MIPS_PJUMP = 35 +const R_MIPS_REL16 = 33 +const R_MIPS_REL32 = 3 +const R_MIPS_RELGOT = 36 +const R_MIPS_SCN_DISP = 32 +const R_MIPS_SHIFT5 = 16 +const R_MIPS_SHIFT6 = 17 +const R_MIPS_SUB = 24 +const R_MIPS_TLS_DTPMOD32 = 38 +const R_MIPS_TLS_DTPMOD64 = 40 +const R_MIPS_TLS_DTPREL32 = 39 +const R_MIPS_TLS_DTPREL64 = 41 +const R_MIPS_TLS_DTPREL_HI16 = 44 +const R_MIPS_TLS_DTPREL_LO16 = 45 +const R_MIPS_TLS_GD = 42 +const R_MIPS_TLS_GOTTPREL = 46 +const R_MIPS_TLS_LDM = 43 +const R_MIPS_TLS_TPREL32 = 47 +const R_MIPS_TLS_TPREL64 = 48 +const R_MIPS_TLS_TPREL_HI16 = 49 +const R_MIPS_TLS_TPREL_LO16 = 50 +const R_MN10300_16 = 2 +const R_MN10300_24 = 9 +const R_MN10300_32 = 1 +const R_MN10300_8 = 3 +const R_MN10300_COPY = 20 +const R_MN10300_GLOB_DAT = 21 +const R_MN10300_GNU_VTENTRY = 8 +const R_MN10300_GNU_VTINHERIT = 7 +const R_MN10300_GOT16 = 19 +const R_MN10300_GOT24 = 18 +const R_MN10300_GOT32 = 17 +const R_MN10300_GOTOFF16 = 14 +const R_MN10300_GOTOFF24 = 13 +const R_MN10300_GOTOFF32 = 12 +const R_MN10300_GOTPC16 = 11 +const R_MN10300_GOTPC32 = 10 +const R_MN10300_JMP_SLOT = 22 +const R_MN10300_NONE = 0 +const R_MN10300_NUM = 24 +const R_MN10300_PCREL16 = 5 +const R_MN10300_PCREL32 = 4 +const R_MN10300_PCREL8 = 6 +const R_MN10300_PLT16 = 16 +const R_MN10300_PLT32 = 15 +const R_MN10300_RELATIVE = 23 +const R_NIOS2_ALIGN = 21 +const R_NIOS2_BFD_RELOC_16 = 13 +const R_NIOS2_BFD_RELOC_32 = 12 +const R_NIOS2_BFD_RELOC_8 = 14 +const R_NIOS2_CACHE_OPX = 6 +const R_NIOS2_CALL16 = 23 +const R_NIOS2_CALL26 = 4 +const R_NIOS2_CALL26_NOAT = 41 +const R_NIOS2_CALLR = 20 +const R_NIOS2_CALL_HA = 45 +const R_NIOS2_CALL_LO = 44 +const R_NIOS2_CJMP = 19 +const R_NIOS2_COPY = 36 +const R_NIOS2_GLOB_DAT = 37 +const R_NIOS2_GNU_VTENTRY = 17 +const R_NIOS2_GNU_VTINHERIT = 16 +const R_NIOS2_GOT16 = 22 +const R_NIOS2_GOTOFF = 40 +const R_NIOS2_GOTOFF_HA = 25 +const R_NIOS2_GOTOFF_LO = 24 +const R_NIOS2_GOT_HA = 43 +const R_NIOS2_GOT_LO = 42 +const R_NIOS2_GPREL = 15 +const R_NIOS2_HI16 = 9 +const R_NIOS2_HIADJ16 = 11 +const R_NIOS2_IMM5 = 5 +const R_NIOS2_IMM6 = 7 +const R_NIOS2_IMM8 = 8 +const R_NIOS2_JUMP_SLOT = 38 +const R_NIOS2_LO16 = 10 +const R_NIOS2_NONE = 0 +const R_NIOS2_PCREL16 = 3 +const R_NIOS2_PCREL_HA = 27 +const R_NIOS2_PCREL_LO = 26 +const R_NIOS2_RELATIVE = 39 +const R_NIOS2_S16 = 1 +const R_NIOS2_TLS_DTPMOD = 33 +const R_NIOS2_TLS_DTPREL = 34 +const R_NIOS2_TLS_GD16 = 28 +const R_NIOS2_TLS_IE16 = 31 +const R_NIOS2_TLS_LDM16 = 29 +const R_NIOS2_TLS_LDO16 = 30 +const R_NIOS2_TLS_LE16 = 32 +const R_NIOS2_TLS_TPREL = 35 +const R_NIOS2_U16 = 2 +const R_NIOS2_UJMP = 18 +const R_OR1K_16 = 2 +const R_OR1K_16_PCREL = 10 +const R_OR1K_32 = 1 +const R_OR1K_32_PCREL = 9 +const R_OR1K_8 = 3 +const R_OR1K_8_PCREL = 11 +const R_OR1K_COPY = 18 +const R_OR1K_GLOB_DAT = 19 +const R_OR1K_GNU_VTENTRY = 7 +const R_OR1K_GNU_VTINHERIT = 8 +const R_OR1K_GOT16 = 14 +const R_OR1K_GOTOFF_HI16 = 16 +const R_OR1K_GOTOFF_LO16 = 17 +const R_OR1K_GOTPC_HI16 = 12 +const R_OR1K_GOTPC_LO16 = 13 +const R_OR1K_HI_16_IN_INSN = 5 +const R_OR1K_INSN_REL_26 = 6 +const R_OR1K_JMP_SLOT = 20 +const R_OR1K_LO_16_IN_INSN = 4 +const R_OR1K_NONE = 0 +const R_OR1K_PLT26 = 15 +const R_OR1K_RELATIVE = 21 +const R_OR1K_TLS_DTPMOD = 34 +const R_OR1K_TLS_DTPOFF = 33 +const R_OR1K_TLS_GD_HI16 = 22 +const R_OR1K_TLS_GD_LO16 = 23 +const R_OR1K_TLS_IE_HI16 = 28 +const R_OR1K_TLS_IE_LO16 = 29 +const R_OR1K_TLS_LDM_HI16 = 24 +const R_OR1K_TLS_LDM_LO16 = 25 +const R_OR1K_TLS_LDO_HI16 = 26 +const R_OR1K_TLS_LDO_LO16 = 27 +const R_OR1K_TLS_LE_HI16 = 30 +const R_OR1K_TLS_LE_LO16 = 31 +const R_OR1K_TLS_TPOFF = 32 +const R_PARISC_COPY = 128 +const R_PARISC_DIR14DR = 84 +const R_PARISC_DIR14R = 6 +const R_PARISC_DIR14WR = 83 +const R_PARISC_DIR16DF = 87 +const R_PARISC_DIR16F = 85 +const R_PARISC_DIR16WF = 86 +const R_PARISC_DIR17F = 4 +const R_PARISC_DIR17R = 3 +const R_PARISC_DIR21L = 2 +const R_PARISC_DIR32 = 1 +const R_PARISC_DIR64 = 80 +const R_PARISC_DPREL14R = 22 +const R_PARISC_DPREL21L = 18 +const R_PARISC_EPLT = 130 +const R_PARISC_FPTR64 = 64 +const R_PARISC_GNU_VTENTRY = 232 +const R_PARISC_GNU_VTINHERIT = 233 +const R_PARISC_GPREL14DR = 92 +const R_PARISC_GPREL14R = 30 +const R_PARISC_GPREL14WR = 91 +const R_PARISC_GPREL16DF = 95 +const R_PARISC_GPREL16F = 93 +const R_PARISC_GPREL16WF = 94 +const R_PARISC_GPREL21L = 26 +const R_PARISC_GPREL64 = 88 +const R_PARISC_HIRESERVE = 255 +const R_PARISC_IPLT = 129 +const R_PARISC_LORESERVE = 128 +const R_PARISC_LTOFF14DR = 100 +const R_PARISC_LTOFF14R = 38 +const R_PARISC_LTOFF14WR = 99 +const R_PARISC_LTOFF16DF = 103 +const R_PARISC_LTOFF16F = 101 +const R_PARISC_LTOFF16WF = 102 +const R_PARISC_LTOFF21L = 34 +const R_PARISC_LTOFF64 = 96 +const R_PARISC_LTOFF_FPTR14DR = 124 +const R_PARISC_LTOFF_FPTR14R = 62 +const R_PARISC_LTOFF_FPTR14WR = 123 +const R_PARISC_LTOFF_FPTR16DF = 127 +const R_PARISC_LTOFF_FPTR16F = 125 +const R_PARISC_LTOFF_FPTR16WF = 126 +const R_PARISC_LTOFF_FPTR21L = 58 +const R_PARISC_LTOFF_FPTR32 = 57 +const R_PARISC_LTOFF_FPTR64 = 120 +const R_PARISC_LTOFF_TP14DR = 228 +const R_PARISC_LTOFF_TP14F = 167 +const R_PARISC_LTOFF_TP14R = 166 +const R_PARISC_LTOFF_TP14WR = 227 +const R_PARISC_LTOFF_TP16DF = 231 +const R_PARISC_LTOFF_TP16F = 229 +const R_PARISC_LTOFF_TP16WF = 230 +const R_PARISC_LTOFF_TP21L = 162 +const R_PARISC_LTOFF_TP64 = 224 +const R_PARISC_NONE = 0 +const R_PARISC_PCREL14DR = 76 +const R_PARISC_PCREL14R = 14 +const R_PARISC_PCREL14WR = 75 +const R_PARISC_PCREL16DF = 79 +const R_PARISC_PCREL16F = 77 +const R_PARISC_PCREL16WF = 78 +const R_PARISC_PCREL17F = 12 +const R_PARISC_PCREL17R = 11 +const R_PARISC_PCREL21L = 10 +const R_PARISC_PCREL22F = 74 +const R_PARISC_PCREL32 = 9 +const R_PARISC_PCREL64 = 72 +const R_PARISC_PLABEL14R = 70 +const R_PARISC_PLABEL21L = 66 +const R_PARISC_PLABEL32 = 65 +const R_PARISC_PLTOFF14DR = 116 +const R_PARISC_PLTOFF14R = 54 +const R_PARISC_PLTOFF14WR = 115 +const R_PARISC_PLTOFF16DF = 119 +const R_PARISC_PLTOFF16F = 117 +const R_PARISC_PLTOFF16WF = 118 +const R_PARISC_PLTOFF21L = 50 +const R_PARISC_SECREL32 = 41 +const R_PARISC_SECREL64 = 104 +const R_PARISC_SEGBASE = 48 +const R_PARISC_SEGREL32 = 49 +const R_PARISC_SEGREL64 = 112 +const R_PARISC_TLS_DTPMOD32 = 242 +const R_PARISC_TLS_DTPMOD64 = 243 +const R_PARISC_TLS_DTPOFF32 = 244 +const R_PARISC_TLS_DTPOFF64 = 245 +const R_PARISC_TLS_GD14R = 235 +const R_PARISC_TLS_GD21L = 234 +const R_PARISC_TLS_GDCALL = 236 +const R_PARISC_TLS_IE14R = 166 +const R_PARISC_TLS_IE21L = 162 +const R_PARISC_TLS_LDM14R = 238 +const R_PARISC_TLS_LDM21L = 237 +const R_PARISC_TLS_LDMCALL = 239 +const R_PARISC_TLS_LDO14R = 241 +const R_PARISC_TLS_LDO21L = 240 +const R_PARISC_TLS_LE14R = 158 +const R_PARISC_TLS_LE21L = 154 +const R_PARISC_TLS_TPREL32 = 153 +const R_PARISC_TLS_TPREL64 = 216 +const R_PARISC_TPREL14DR = 220 +const R_PARISC_TPREL14R = 158 +const R_PARISC_TPREL14WR = 219 +const R_PARISC_TPREL16DF = 223 +const R_PARISC_TPREL16F = 221 +const R_PARISC_TPREL16WF = 222 +const R_PARISC_TPREL21L = 154 +const R_PARISC_TPREL32 = 153 +const R_PARISC_TPREL64 = 216 +const R_PPC64_ADDR14 = 7 +const R_PPC64_ADDR14_BRNTAKEN = 9 +const R_PPC64_ADDR14_BRTAKEN = 8 +const R_PPC64_ADDR16 = 3 +const R_PPC64_ADDR16_DS = 56 +const R_PPC64_ADDR16_HA = 6 +const R_PPC64_ADDR16_HI = 5 +const R_PPC64_ADDR16_HIGH = 110 +const R_PPC64_ADDR16_HIGHA = 111 +const R_PPC64_ADDR16_HIGHER = 39 +const R_PPC64_ADDR16_HIGHERA = 40 +const R_PPC64_ADDR16_HIGHEST = 41 +const R_PPC64_ADDR16_HIGHESTA = 42 +const R_PPC64_ADDR16_LO = 4 +const R_PPC64_ADDR16_LO_DS = 57 +const R_PPC64_ADDR24 = 2 +const R_PPC64_ADDR30 = 37 +const R_PPC64_ADDR32 = 1 +const R_PPC64_ADDR64 = 38 +const R_PPC64_COPY = 19 +const R_PPC64_DTPMOD64 = 68 +const R_PPC64_DTPREL16 = 74 +const R_PPC64_DTPREL16_DS = 101 +const R_PPC64_DTPREL16_HA = 77 +const R_PPC64_DTPREL16_HI = 76 +const R_PPC64_DTPREL16_HIGH = 114 +const R_PPC64_DTPREL16_HIGHA = 115 +const R_PPC64_DTPREL16_HIGHER = 103 +const R_PPC64_DTPREL16_HIGHERA = 104 +const R_PPC64_DTPREL16_HIGHEST = 105 +const R_PPC64_DTPREL16_HIGHESTA = 106 +const R_PPC64_DTPREL16_LO = 75 +const R_PPC64_DTPREL16_LO_DS = 102 +const R_PPC64_DTPREL64 = 78 +const R_PPC64_GLOB_DAT = 20 +const R_PPC64_GOT16 = 14 +const R_PPC64_GOT16_DS = 58 +const R_PPC64_GOT16_HA = 17 +const R_PPC64_GOT16_HI = 16 +const R_PPC64_GOT16_LO = 15 +const R_PPC64_GOT16_LO_DS = 59 +const R_PPC64_GOT_DTPREL16_DS = 91 +const R_PPC64_GOT_DTPREL16_HA = 94 +const R_PPC64_GOT_DTPREL16_HI = 93 +const R_PPC64_GOT_DTPREL16_LO_DS = 92 +const R_PPC64_GOT_TLSGD16 = 79 +const R_PPC64_GOT_TLSGD16_HA = 82 +const R_PPC64_GOT_TLSGD16_HI = 81 +const R_PPC64_GOT_TLSGD16_LO = 80 +const R_PPC64_GOT_TLSLD16 = 83 +const R_PPC64_GOT_TLSLD16_HA = 86 +const R_PPC64_GOT_TLSLD16_HI = 85 +const R_PPC64_GOT_TLSLD16_LO = 84 +const R_PPC64_GOT_TPREL16_DS = 87 +const R_PPC64_GOT_TPREL16_HA = 90 +const R_PPC64_GOT_TPREL16_HI = 89 +const R_PPC64_GOT_TPREL16_LO_DS = 88 +const R_PPC64_IRELATIVE = 248 +const R_PPC64_JMP_IREL = 247 +const R_PPC64_JMP_SLOT = 21 +const R_PPC64_NONE = 0 +const R_PPC64_PLT16_HA = 31 +const R_PPC64_PLT16_HI = 30 +const R_PPC64_PLT16_LO = 29 +const R_PPC64_PLT16_LO_DS = 60 +const R_PPC64_PLT32 = 27 +const R_PPC64_PLT64 = 45 +const R_PPC64_PLTGOT16 = 52 +const R_PPC64_PLTGOT16_DS = 65 +const R_PPC64_PLTGOT16_HA = 55 +const R_PPC64_PLTGOT16_HI = 54 +const R_PPC64_PLTGOT16_LO = 53 +const R_PPC64_PLTGOT16_LO_DS = 66 +const R_PPC64_PLTREL32 = 28 +const R_PPC64_PLTREL64 = 46 +const R_PPC64_REL14 = 11 +const R_PPC64_REL14_BRNTAKEN = 13 +const R_PPC64_REL14_BRTAKEN = 12 +const R_PPC64_REL16 = 249 +const R_PPC64_REL16_HA = 252 +const R_PPC64_REL16_HI = 251 +const R_PPC64_REL16_LO = 250 +const R_PPC64_REL24 = 10 +const R_PPC64_REL32 = 26 +const R_PPC64_REL64 = 44 +const R_PPC64_RELATIVE = 22 +const R_PPC64_SECTOFF = 33 +const R_PPC64_SECTOFF_DS = 61 +const R_PPC64_SECTOFF_HA = 36 +const R_PPC64_SECTOFF_HI = 35 +const R_PPC64_SECTOFF_LO = 34 +const R_PPC64_SECTOFF_LO_DS = 62 +const R_PPC64_TLS = 67 +const R_PPC64_TLSGD = 107 +const R_PPC64_TLSLD = 108 +const R_PPC64_TOC = 51 +const R_PPC64_TOC16 = 47 +const R_PPC64_TOC16_DS = 63 +const R_PPC64_TOC16_HA = 50 +const R_PPC64_TOC16_HI = 49 +const R_PPC64_TOC16_LO = 48 +const R_PPC64_TOC16_LO_DS = 64 +const R_PPC64_TOCSAVE = 109 +const R_PPC64_TPREL16 = 69 +const R_PPC64_TPREL16_DS = 95 +const R_PPC64_TPREL16_HA = 72 +const R_PPC64_TPREL16_HI = 71 +const R_PPC64_TPREL16_HIGH = 112 +const R_PPC64_TPREL16_HIGHA = 113 +const R_PPC64_TPREL16_HIGHER = 97 +const R_PPC64_TPREL16_HIGHERA = 98 +const R_PPC64_TPREL16_HIGHEST = 99 +const R_PPC64_TPREL16_HIGHESTA = 100 +const R_PPC64_TPREL16_LO = 70 +const R_PPC64_TPREL16_LO_DS = 96 +const R_PPC64_TPREL64 = 73 +const R_PPC64_UADDR16 = 25 +const R_PPC64_UADDR32 = 24 +const R_PPC64_UADDR64 = 43 +const R_PPC_ADDR14 = 7 +const R_PPC_ADDR14_BRNTAKEN = 9 +const R_PPC_ADDR14_BRTAKEN = 8 +const R_PPC_ADDR16 = 3 +const R_PPC_ADDR16_HA = 6 +const R_PPC_ADDR16_HI = 5 +const R_PPC_ADDR16_LO = 4 +const R_PPC_ADDR24 = 2 +const R_PPC_ADDR32 = 1 +const R_PPC_COPY = 19 +const R_PPC_DIAB_RELSDA_HA = 185 +const R_PPC_DIAB_RELSDA_HI = 184 +const R_PPC_DIAB_RELSDA_LO = 183 +const R_PPC_DIAB_SDA21_HA = 182 +const R_PPC_DIAB_SDA21_HI = 181 +const R_PPC_DIAB_SDA21_LO = 180 +const R_PPC_DTPMOD32 = 68 +const R_PPC_DTPREL16 = 74 +const R_PPC_DTPREL16_HA = 77 +const R_PPC_DTPREL16_HI = 76 +const R_PPC_DTPREL16_LO = 75 +const R_PPC_DTPREL32 = 78 +const R_PPC_EMB_BIT_FLD = 115 +const R_PPC_EMB_MRKREF = 110 +const R_PPC_EMB_NADDR16 = 102 +const R_PPC_EMB_NADDR16_HA = 105 +const R_PPC_EMB_NADDR16_HI = 104 +const R_PPC_EMB_NADDR16_LO = 103 +const R_PPC_EMB_NADDR32 = 101 +const R_PPC_EMB_RELSDA = 116 +const R_PPC_EMB_RELSEC16 = 111 +const R_PPC_EMB_RELST_HA = 114 +const R_PPC_EMB_RELST_HI = 113 +const R_PPC_EMB_RELST_LO = 112 +const R_PPC_EMB_SDA21 = 109 +const R_PPC_EMB_SDA2I16 = 107 +const R_PPC_EMB_SDA2REL = 108 +const R_PPC_EMB_SDAI16 = 106 +const R_PPC_GLOB_DAT = 20 +const R_PPC_GOT16 = 14 +const R_PPC_GOT16_HA = 17 +const R_PPC_GOT16_HI = 16 +const R_PPC_GOT16_LO = 15 +const R_PPC_GOT_DTPREL16 = 91 +const R_PPC_GOT_DTPREL16_HA = 94 +const R_PPC_GOT_DTPREL16_HI = 93 +const R_PPC_GOT_DTPREL16_LO = 92 +const R_PPC_GOT_TLSGD16 = 79 +const R_PPC_GOT_TLSGD16_HA = 82 +const R_PPC_GOT_TLSGD16_HI = 81 +const R_PPC_GOT_TLSGD16_LO = 80 +const R_PPC_GOT_TLSLD16 = 83 +const R_PPC_GOT_TLSLD16_HA = 86 +const R_PPC_GOT_TLSLD16_HI = 85 +const R_PPC_GOT_TLSLD16_LO = 84 +const R_PPC_GOT_TPREL16 = 87 +const R_PPC_GOT_TPREL16_HA = 90 +const R_PPC_GOT_TPREL16_HI = 89 +const R_PPC_GOT_TPREL16_LO = 88 +const R_PPC_IRELATIVE = 248 +const R_PPC_JMP_SLOT = 21 +const R_PPC_LOCAL24PC = 23 +const R_PPC_NONE = 0 +const R_PPC_PLT16_HA = 31 +const R_PPC_PLT16_HI = 30 +const R_PPC_PLT16_LO = 29 +const R_PPC_PLT32 = 27 +const R_PPC_PLTREL24 = 18 +const R_PPC_PLTREL32 = 28 +const R_PPC_REL14 = 11 +const R_PPC_REL14_BRNTAKEN = 13 +const R_PPC_REL14_BRTAKEN = 12 +const R_PPC_REL16 = 249 +const R_PPC_REL16_HA = 252 +const R_PPC_REL16_HI = 251 +const R_PPC_REL16_LO = 250 +const R_PPC_REL24 = 10 +const R_PPC_REL32 = 26 +const R_PPC_RELATIVE = 22 +const R_PPC_SDAREL16 = 32 +const R_PPC_SECTOFF = 33 +const R_PPC_SECTOFF_HA = 36 +const R_PPC_SECTOFF_HI = 35 +const R_PPC_SECTOFF_LO = 34 +const R_PPC_TLS = 67 +const R_PPC_TLSGD = 95 +const R_PPC_TLSLD = 96 +const R_PPC_TOC16 = 255 +const R_PPC_TPREL16 = 69 +const R_PPC_TPREL16_HA = 72 +const R_PPC_TPREL16_HI = 71 +const R_PPC_TPREL16_LO = 70 +const R_PPC_TPREL32 = 73 +const R_PPC_UADDR16 = 25 +const R_PPC_UADDR32 = 24 +const R_RISCV_32 = 1 +const R_RISCV_32_PCREL = 57 +const R_RISCV_64 = 2 +const R_RISCV_ADD16 = 34 +const R_RISCV_ADD32 = 35 +const R_RISCV_ADD64 = 36 +const R_RISCV_ADD8 = 33 +const R_RISCV_ALIGN = 43 +const R_RISCV_BRANCH = 16 +const R_RISCV_CALL = 18 +const R_RISCV_CALL_PLT = 19 +const R_RISCV_COPY = 4 +const R_RISCV_GOT32_PCREL = 41 +const R_RISCV_GOT_HI20 = 20 +const R_RISCV_HI20 = 26 +const R_RISCV_IRELATIVE = 58 +const R_RISCV_JAL = 17 +const R_RISCV_JUMP_SLOT = 5 +const R_RISCV_LO12_I = 27 +const R_RISCV_LO12_S = 28 +const R_RISCV_NONE = 0 +const R_RISCV_PCREL_HI20 = 23 +const R_RISCV_PCREL_LO12_I = 24 +const R_RISCV_PCREL_LO12_S = 25 +const R_RISCV_PLT32 = 59 +const R_RISCV_RELATIVE = 3 +const R_RISCV_RELAX = 51 +const R_RISCV_RVC_BRANCH = 44 +const R_RISCV_RVC_JUMP = 45 +const R_RISCV_RVC_LUI = 46 +const R_RISCV_SET16 = 55 +const R_RISCV_SET32 = 56 +const R_RISCV_SET6 = 53 +const R_RISCV_SET8 = 54 +const R_RISCV_SET_ULEB128 = 60 +const R_RISCV_SUB16 = 38 +const R_RISCV_SUB32 = 39 +const R_RISCV_SUB6 = 52 +const R_RISCV_SUB64 = 40 +const R_RISCV_SUB8 = 37 +const R_RISCV_SUB_ULEB128 = 61 +const R_RISCV_TLSDESC = 12 +const R_RISCV_TLSDESC_ADD_LO12 = 64 +const R_RISCV_TLSDESC_CALL = 65 +const R_RISCV_TLSDESC_HI20 = 62 +const R_RISCV_TLSDESC_LOAD_LO12 = 63 +const R_RISCV_TLS_DTPMOD32 = 6 +const R_RISCV_TLS_DTPMOD64 = 7 +const R_RISCV_TLS_DTPREL32 = 8 +const R_RISCV_TLS_DTPREL64 = 9 +const R_RISCV_TLS_GD_HI20 = 22 +const R_RISCV_TLS_GOT_HI20 = 21 +const R_RISCV_TLS_TPREL32 = 10 +const R_RISCV_TLS_TPREL64 = 11 +const R_RISCV_TPREL_ADD = 32 +const R_RISCV_TPREL_HI20 = 29 +const R_RISCV_TPREL_LO12_I = 30 +const R_RISCV_TPREL_LO12_S = 31 +const R_SH_ALIGN = 29 +const R_SH_CODE = 30 +const R_SH_COPY = 162 +const R_SH_COUNT = 28 +const R_SH_DATA = 31 +const R_SH_DIR32 = 1 +const R_SH_DIR8BP = 7 +const R_SH_DIR8L = 9 +const R_SH_DIR8W = 8 +const R_SH_DIR8WPL = 5 +const R_SH_DIR8WPN = 3 +const R_SH_DIR8WPZ = 6 +const R_SH_FUNCDESC = 207 +const R_SH_FUNCDESC_VALUE = 208 +const R_SH_GLOB_DAT = 163 +const R_SH_GNU_VTENTRY = 35 +const R_SH_GNU_VTINHERIT = 34 +const R_SH_GOT20 = 201 +const R_SH_GOT32 = 160 +const R_SH_GOTFUNCDESC = 203 +const R_SH_GOTFUNCDEST20 = 204 +const R_SH_GOTOFF = 166 +const R_SH_GOTOFF20 = 202 +const R_SH_GOTOFFFUNCDESC = 205 +const R_SH_GOTOFFFUNCDEST20 = 206 +const R_SH_GOTPC = 167 +const R_SH_IND12W = 4 +const R_SH_JMP_SLOT = 164 +const R_SH_LABEL = 32 +const R_SH_NONE = 0 +const R_SH_NUM = 256 +const R_SH_PLT32 = 161 +const R_SH_REL32 = 2 +const R_SH_RELATIVE = 165 +const R_SH_SWITCH16 = 25 +const R_SH_SWITCH32 = 26 +const R_SH_SWITCH8 = 33 +const R_SH_TLS_DTPMOD32 = 149 +const R_SH_TLS_DTPOFF32 = 150 +const R_SH_TLS_GD_32 = 144 +const R_SH_TLS_IE_32 = 147 +const R_SH_TLS_LDO_32 = 146 +const R_SH_TLS_LD_32 = 145 +const R_SH_TLS_LE_32 = 148 +const R_SH_TLS_TPOFF32 = 151 +const R_SH_USES = 27 +const R_SPARC_10 = 30 +const R_SPARC_11 = 31 +const R_SPARC_13 = 11 +const R_SPARC_16 = 2 +const R_SPARC_22 = 10 +const R_SPARC_32 = 3 +const R_SPARC_5 = 44 +const R_SPARC_6 = 45 +const R_SPARC_64 = 32 +const R_SPARC_7 = 43 +const R_SPARC_8 = 1 +const R_SPARC_COPY = 19 +const R_SPARC_DISP16 = 5 +const R_SPARC_DISP32 = 6 +const R_SPARC_DISP64 = 46 +const R_SPARC_DISP8 = 4 +const R_SPARC_GLOB_DAT = 20 +const R_SPARC_GLOB_JMP = 42 +const R_SPARC_GNU_VTENTRY = 251 +const R_SPARC_GNU_VTINHERIT = 250 +const R_SPARC_GOT10 = 13 +const R_SPARC_GOT13 = 14 +const R_SPARC_GOT22 = 15 +const R_SPARC_GOTDATA_HIX22 = 80 +const R_SPARC_GOTDATA_LOX10 = 81 +const R_SPARC_GOTDATA_OP = 84 +const R_SPARC_GOTDATA_OP_HIX22 = 82 +const R_SPARC_GOTDATA_OP_LOX10 = 83 +const R_SPARC_H34 = 85 +const R_SPARC_H44 = 50 +const R_SPARC_HH22 = 34 +const R_SPARC_HI22 = 9 +const R_SPARC_HIPLT22 = 25 +const R_SPARC_HIX22 = 48 +const R_SPARC_HM10 = 35 +const R_SPARC_JMP_SLOT = 21 +const R_SPARC_L44 = 52 +const R_SPARC_LM22 = 36 +const R_SPARC_LO10 = 12 +const R_SPARC_LOPLT10 = 26 +const R_SPARC_LOX10 = 49 +const R_SPARC_M44 = 51 +const R_SPARC_NONE = 0 +const R_SPARC_NUM = 253 +const R_SPARC_OLO10 = 33 +const R_SPARC_PC10 = 16 +const R_SPARC_PC22 = 17 +const R_SPARC_PCPLT10 = 29 +const R_SPARC_PCPLT22 = 28 +const R_SPARC_PCPLT32 = 27 +const R_SPARC_PC_HH22 = 37 +const R_SPARC_PC_HM10 = 38 +const R_SPARC_PC_LM22 = 39 +const R_SPARC_PLT32 = 24 +const R_SPARC_PLT64 = 47 +const R_SPARC_REGISTER = 53 +const R_SPARC_RELATIVE = 22 +const R_SPARC_REV32 = 252 +const R_SPARC_SIZE32 = 86 +const R_SPARC_SIZE64 = 87 +const R_SPARC_TLS_DTPMOD32 = 74 +const R_SPARC_TLS_DTPMOD64 = 75 +const R_SPARC_TLS_DTPOFF32 = 76 +const R_SPARC_TLS_DTPOFF64 = 77 +const R_SPARC_TLS_GD_ADD = 58 +const R_SPARC_TLS_GD_CALL = 59 +const R_SPARC_TLS_GD_HI22 = 56 +const R_SPARC_TLS_GD_LO10 = 57 +const R_SPARC_TLS_IE_ADD = 71 +const R_SPARC_TLS_IE_HI22 = 67 +const R_SPARC_TLS_IE_LD = 69 +const R_SPARC_TLS_IE_LDX = 70 +const R_SPARC_TLS_IE_LO10 = 68 +const R_SPARC_TLS_LDM_ADD = 62 +const R_SPARC_TLS_LDM_CALL = 63 +const R_SPARC_TLS_LDM_HI22 = 60 +const R_SPARC_TLS_LDM_LO10 = 61 +const R_SPARC_TLS_LDO_ADD = 66 +const R_SPARC_TLS_LDO_HIX22 = 64 +const R_SPARC_TLS_LDO_LOX10 = 65 +const R_SPARC_TLS_LE_HIX22 = 72 +const R_SPARC_TLS_LE_LOX10 = 73 +const R_SPARC_TLS_TPOFF32 = 78 +const R_SPARC_TLS_TPOFF64 = 79 +const R_SPARC_UA16 = 55 +const R_SPARC_UA32 = 23 +const R_SPARC_UA64 = 54 +const R_SPARC_WDISP16 = 40 +const R_SPARC_WDISP19 = 41 +const R_SPARC_WDISP22 = 8 +const R_SPARC_WDISP30 = 7 +const R_SPARC_WPLT30 = 18 +const R_X86_64_16 = 12 +const R_X86_64_32 = 10 +const R_X86_64_32S = 11 +const R_X86_64_64 = 1 +const R_X86_64_8 = 14 +const R_X86_64_COPY = 5 +const R_X86_64_DTPMOD64 = 16 +const R_X86_64_DTPOFF32 = 21 +const R_X86_64_DTPOFF64 = 17 +const R_X86_64_GLOB_DAT = 6 +const R_X86_64_GOT32 = 3 +const R_X86_64_GOT64 = 27 +const R_X86_64_GOTOFF64 = 25 +const R_X86_64_GOTPC32 = 26 +const R_X86_64_GOTPC32_TLSDESC = 34 +const R_X86_64_GOTPC64 = 29 +const R_X86_64_GOTPCREL = 9 +const R_X86_64_GOTPCREL64 = 28 +const R_X86_64_GOTPCRELX = 41 +const R_X86_64_GOTPLT64 = 30 +const R_X86_64_GOTTPOFF = 22 +const R_X86_64_IRELATIVE = 37 +const R_X86_64_JUMP_SLOT = 7 +const R_X86_64_NONE = 0 +const R_X86_64_NUM = 43 +const R_X86_64_PC16 = 13 +const R_X86_64_PC32 = 2 +const R_X86_64_PC64 = 24 +const R_X86_64_PC8 = 15 +const R_X86_64_PLT32 = 4 +const R_X86_64_PLTOFF64 = 31 +const R_X86_64_RELATIVE = 8 +const R_X86_64_RELATIVE64 = 38 +const R_X86_64_REX_GOTPCRELX = 42 +const R_X86_64_SIZE32 = 32 +const R_X86_64_SIZE64 = 33 +const R_X86_64_TLSDESC = 36 +const R_X86_64_TLSDESC_CALL = 35 +const R_X86_64_TLSGD = 19 +const R_X86_64_TLSLD = 20 +const R_X86_64_TPOFF32 = 23 +const R_X86_64_TPOFF64 = 18 +const SA_EXPOSE_TAGBITS = 2048 +const SA_NOCLDSTOP = 1 +const SA_NOCLDWAIT = 2 +const SA_NODEFER = 1073741824 +const SA_ONSTACK = 134217728 +const SA_RESETHAND = 2147483648 +const SA_RESTART = 268435456 +const SA_RESTORER = 67108864 +const SA_SIGINFO = 4 +const SA_UNSUPPORTED = 1024 +const SCM_TIMESTAMPING_OLD = 37 +const SCM_TIMESTAMPNS_OLD = 35 +const SCM_TIMESTAMP_OLD = 29 +const SEGV_ACCERR = 2 +const SEGV_BNDERR = 3 +const SEGV_MAPERR = 1 +const SEGV_MTEAERR = 8 +const SEGV_MTESERR = 9 +const SEGV_PKUERR = 4 +const SELFMAG = 4 +const SHF_ALLOC = 2 +const SHF_ALPHA_GPREL = 268435456 +const SHF_ARM_COMDEF = 2147483648 +const SHF_ARM_ENTRYSECT = 268435456 +const SHF_COMPRESSED = 2048 +const SHF_EXCLUDE = 2147483648 +const SHF_EXECINSTR = 4 +const SHF_GROUP = 512 +const SHF_IA_64_NORECOV = 536870912 +const SHF_IA_64_SHORT = 268435456 +const SHF_INFO_LINK = 64 +const SHF_LINK_ORDER = 128 +const SHF_MASKOS = 267386880 +const SHF_MASKPROC = 4026531840 +const SHF_MERGE = 16 +const SHF_MIPS_ADDR = 1073741824 +const SHF_MIPS_GPREL = 268435456 +const SHF_MIPS_LOCAL = 67108864 +const SHF_MIPS_MERGE = 536870912 +const SHF_MIPS_NAMES = 33554432 +const SHF_MIPS_NODUPE = 16777216 +const SHF_MIPS_NOSTRIP = 134217728 +const SHF_MIPS_STRINGS = 2147483648 +const SHF_ORDERED = 1073741824 +const SHF_OS_NONCONFORMING = 256 +const SHF_PARISC_HUGE = 1073741824 +const SHF_PARISC_SBP = 2147483648 +const SHF_PARISC_SHORT = 536870912 +const SHF_STRINGS = 32 +const SHF_TLS = 1024 +const SHF_WRITE = 1 +const SHN_ABS = 65521 +const SHN_AFTER = 65281 +const SHN_BEFORE = 65280 +const SHN_COMMON = 65522 +const SHN_HIOS = 65343 +const SHN_HIPROC = 65311 +const SHN_HIRESERVE = 65535 +const SHN_LOOS = 65312 +const SHN_LOPROC = 65280 +const SHN_LORESERVE = 65280 +const SHN_MIPS_ACOMMON = 65280 +const SHN_MIPS_DATA = 65282 +const SHN_MIPS_SCOMMON = 65283 +const SHN_MIPS_SUNDEFINED = 65284 +const SHN_MIPS_TEXT = 65281 +const SHN_PARISC_ANSI_COMMON = 65280 +const SHN_PARISC_HUGE_COMMON = 65281 +const SHN_UNDEF = 0 +const SHN_XINDEX = 65535 +const SHT_ALPHA_DEBUG = 1879048193 +const SHT_ALPHA_REGINFO = 1879048194 +const SHT_ARM_ATTRIBUTES = 1879048195 +const SHT_ARM_EXIDX = 1879048193 +const SHT_ARM_PREEMPTMAP = 1879048194 +const SHT_CHECKSUM = 1879048184 +const SHT_DYNAMIC = 6 +const SHT_DYNSYM = 11 +const SHT_FINI_ARRAY = 15 +const SHT_GNU_ATTRIBUTES = 1879048181 +const SHT_GNU_HASH = 1879048182 +const SHT_GNU_LIBLIST = 1879048183 +const SHT_GNU_verdef = 1879048189 +const SHT_GNU_verneed = 1879048190 +const SHT_GNU_versym = 1879048191 +const SHT_GROUP = 17 +const SHT_HASH = 5 +const SHT_HIOS = 1879048191 +const SHT_HIPROC = 2147483647 +const SHT_HISUNW = 1879048191 +const SHT_HIUSER = 2415919103 +const SHT_IA_64_EXT = 1879048192 +const SHT_IA_64_UNWIND = 1879048193 +const SHT_INIT_ARRAY = 14 +const SHT_LOOS = 1610612736 +const SHT_LOPROC = 1879048192 +const SHT_LOSUNW = 1879048186 +const SHT_LOUSER = 2147483648 +const SHT_MIPS_AUXSYM = 1879048214 +const SHT_MIPS_CONFLICT = 1879048194 +const SHT_MIPS_CONTENT = 1879048204 +const SHT_MIPS_DEBUG = 1879048197 +const SHT_MIPS_DELTACLASS = 1879048221 +const SHT_MIPS_DELTADECL = 1879048223 +const SHT_MIPS_DELTAINST = 1879048220 +const SHT_MIPS_DELTASYM = 1879048219 +const SHT_MIPS_DENSE = 1879048211 +const SHT_MIPS_DWARF = 1879048222 +const SHT_MIPS_EH_REGION = 1879048231 +const SHT_MIPS_EVENTS = 1879048225 +const SHT_MIPS_EXTSYM = 1879048210 +const SHT_MIPS_FDESC = 1879048209 +const SHT_MIPS_GPTAB = 1879048195 +const SHT_MIPS_IFACE = 1879048203 +const SHT_MIPS_LIBLIST = 1879048192 +const SHT_MIPS_LINE = 1879048217 +const SHT_MIPS_LOCSTR = 1879048216 +const SHT_MIPS_LOCSYM = 1879048213 +const SHT_MIPS_MSYM = 1879048193 +const SHT_MIPS_OPTIONS = 1879048205 +const SHT_MIPS_OPTSYM = 1879048215 +const SHT_MIPS_PACKAGE = 1879048199 +const SHT_MIPS_PACKSYM = 1879048200 +const SHT_MIPS_PDESC = 1879048212 +const SHT_MIPS_PDR_EXCEPTION = 1879048233 +const SHT_MIPS_PIXIE = 1879048227 +const SHT_MIPS_REGINFO = 1879048198 +const SHT_MIPS_RELD = 1879048201 +const SHT_MIPS_RFDESC = 1879048218 +const SHT_MIPS_SHDR = 1879048208 +const SHT_MIPS_SYMBOL_LIB = 1879048224 +const SHT_MIPS_TRANSLATE = 1879048226 +const SHT_MIPS_UCODE = 1879048196 +const SHT_MIPS_WHIRL = 1879048230 +const SHT_MIPS_XLATE = 1879048228 +const SHT_MIPS_XLATE_DEBUG = 1879048229 +const SHT_MIPS_XLATE_OLD = 1879048232 +const SHT_NOBITS = 8 +const SHT_NOTE = 7 +const SHT_NULL = 0 +const SHT_NUM = 20 +const SHT_PARISC_DOC = 1879048194 +const SHT_PARISC_EXT = 1879048192 +const SHT_PARISC_UNWIND = 1879048193 +const SHT_PREINIT_ARRAY = 16 +const SHT_PROGBITS = 1 +const SHT_REL = 9 +const SHT_RELA = 4 +const SHT_RELR = 19 +const SHT_SHLIB = 10 +const SHT_STRTAB = 3 +const SHT_SUNW_COMDAT = 1879048187 +const SHT_SUNW_move = 1879048186 +const SHT_SUNW_syminfo = 1879048188 +const SHT_SYMTAB = 2 +const SHT_SYMTAB_SHNDX = 18 +const SIGABRT = 6 +const SIGALRM = 14 +const SIGBUS = 7 +const SIGCHLD = 17 +const SIGCONT = 18 +const SIGEV_NONE = 1 +const SIGEV_SIGNAL = 0 +const SIGEV_THREAD = 2 +const SIGEV_THREAD_ID = 4 +const SIGFPE = 8 +const SIGHUP = 1 +const SIGILL = 4 +const SIGINT = 2 +const SIGIO = 29 +const SIGIOT = 6 +const SIGKILL = 9 +const SIGPIPE = 13 +const SIGPOLL = 29 +const SIGPROF = 27 +const SIGPWR = 30 +const SIGQUIT = 3 +const SIGRTMAX = 0 +const SIGRTMIN = 0 +const SIGSEGV = 11 +const SIGSTKFLT = 16 +const SIGSTKSZ = 10240 +const SIGSTOP = 19 +const SIGSYS = 31 +const SIGTERM = 15 +const SIGTRAP = 5 +const SIGTSTP = 20 +const SIGTTIN = 21 +const SIGTTOU = 22 +const SIGUNUSED = 31 +const SIGURG = 23 +const SIGUSR1 = 10 +const SIGUSR2 = 12 +const SIGVTALRM = 26 +const SIGWINCH = 28 +const SIGXCPU = 24 +const SIGXFSZ = 25 +const SIG_BLOCK = 0 +const SIG_SETMASK = 2 +const SIG_UNBLOCK = 1 +const SIOCGSTAMPNS_OLD = 35079 +const SIOCGSTAMP_OLD = 35078 +const SI_ASYNCIO = -4 +const SI_ASYNCNL = -60 +const SI_KERNEL = 128 +const SI_MESGQ = -3 +const SI_QUEUE = -1 +const SI_SIGIO = -5 +const SI_TIMER = -2 +const SI_TKILL = -6 +const SI_USER = 0 +const SO_RCVTIMEO_OLD = 20 +const SO_SNDTIMEO_OLD = 21 +const SO_TIMESTAMPING_OLD = 37 +const SO_TIMESTAMPNS_OLD = 35 +const SO_TIMESTAMP_OLD = 29 +const SS_AUTODISARM = 2147483648 +const SS_DISABLE = 2 +const SS_FLAG_BITS = 2147483648 +const SS_ONSTACK = 1 +const STB_GLOBAL = 1 +const STB_GNU_UNIQUE = 10 +const STB_HIOS = 12 +const STB_HIPROC = 15 +const STB_LOCAL = 0 +const STB_LOOS = 10 +const STB_LOPROC = 13 +const STB_MIPS_SPLIT_COMMON = 13 +const STB_NUM = 3 +const STB_WEAK = 2 +const STN_UNDEF = 0 +const STO_ALPHA_NOPV = 128 +const STO_ALPHA_STD_GPLOAD = 136 +const STO_MIPS_DEFAULT = 0 +const STO_MIPS_HIDDEN = 2 +const STO_MIPS_INTERNAL = 1 +const STO_MIPS_PLT = 8 +const STO_MIPS_PROTECTED = 3 +const STO_MIPS_SC_ALIGN_UNUSED = 255 +const STO_PPC64_LOCAL_BIT = 5 +const STO_PPC64_LOCAL_MASK = 224 +const STT_ARM_16BIT = 15 +const STT_ARM_TFUNC = 13 +const STT_COMMON = 5 +const STT_FILE = 4 +const STT_FUNC = 2 +const STT_GNU_IFUNC = 10 +const STT_HIOS = 12 +const STT_HIPROC = 15 +const STT_HP_OPAQUE = 11 +const STT_HP_STUB = 12 +const STT_LOOS = 10 +const STT_LOPROC = 13 +const STT_NOTYPE = 0 +const STT_NUM = 7 +const STT_OBJECT = 1 +const STT_PARISC_MILLICODE = 13 +const STT_SECTION = 3 +const STT_SPARC_REGISTER = 13 +const STT_TLS = 6 +const STV_DEFAULT = 0 +const STV_HIDDEN = 2 +const STV_INTERNAL = 1 +const STV_PROTECTED = 3 +const SYMINFO_BT_LOWRESERVE = 65280 +const SYMINFO_BT_PARENT = 65534 +const SYMINFO_BT_SELF = 65535 +const SYMINFO_CURRENT = 1 +const SYMINFO_FLG_COPY = 4 +const SYMINFO_FLG_DIRECT = 1 +const SYMINFO_FLG_LAZYLOAD = 8 +const SYMINFO_FLG_PASSTHRU = 2 +const SYMINFO_NONE = 0 +const SYMINFO_NUM = 2 +const SYSCALL_MMAP2_UNIT = 4096 +const SYSCALL_RLIM_INFINITY = 18446744073709551615 +const SYS__sysctl = 149 +const SYS_accept = 364 +const SYS_accept4 = 364 +const SYS_access = 33 +const SYS_acct = 51 +const SYS_add_key = 278 +const SYS_adjtimex = 124 +const SYS_afs_syscall = 137 +const SYS_alarm = 27 +const SYS_bdflush = 134 +const SYS_bind = 361 +const SYS_bpf = 351 +const SYS_brk = 45 +const SYS_cachestat = 451 +const SYS_capget = 184 +const SYS_capset = 185 +const SYS_chdir = 12 +const SYS_chmod = 15 +const SYS_chown = 212 +const SYS_chroot = 61 +const SYS_clock_adjtime = 337 +const SYS_clock_getres = 261 +const SYS_clock_gettime = 260 +const SYS_clock_nanosleep = 262 +const SYS_clock_settime = 259 +const SYS_clone = 120 +const SYS_clone3 = 435 +const SYS_close = 6 +const SYS_close_range = 436 +const SYS_connect = 362 +const SYS_copy_file_range = 375 +const SYS_creat = 8 +const SYS_create_module = 127 +const SYS_delete_module = 129 +const SYS_dup = 41 +const SYS_dup2 = 63 +const SYS_dup3 = 326 +const SYS_epoll_create = 249 +const SYS_epoll_create1 = 327 +const SYS_epoll_ctl = 250 +const SYS_epoll_pwait = 312 +const SYS_epoll_pwait2 = 441 +const SYS_epoll_wait = 251 +const SYS_eventfd = 318 +const SYS_eventfd2 = 323 +const SYS_execve = 11 +const SYS_execveat = 354 +const SYS_exit = 1 +const SYS_exit_group = 248 +const SYS_faccessat = 300 +const SYS_faccessat2 = 439 +const SYS_fadvise64 = 253 +const SYS_fallocate = 314 +const SYS_fanotify_init = 332 +const SYS_fanotify_mark = 333 +const SYS_fchdir = 133 +const SYS_fchmod = 94 +const SYS_fchmodat = 299 +const SYS_fchmodat2 = 452 +const SYS_fchown = 207 +const SYS_fchownat = 291 +const SYS_fcntl = 55 +const SYS_fdatasync = 148 +const SYS_fgetxattr = 229 +const SYS_finit_module = 344 +const SYS_flistxattr = 232 +const SYS_flock = 143 +const SYS_fork = 2 +const SYS_fremovexattr = 235 +const SYS_fsconfig = 431 +const SYS_fsetxattr = 226 +const SYS_fsmount = 432 +const SYS_fsopen = 430 +const SYS_fspick = 433 +const SYS_fstat = 108 +const SYS_fstatfs64 = 266 +const SYS_fsync = 118 +const SYS_ftruncate = 93 +const SYS_futex = 238 +const SYS_futex_waitv = 449 +const SYS_futimesat = 292 +const SYS_get_kernel_syms = 130 +const SYS_get_mempolicy = 269 +const SYS_get_robust_list = 305 +const SYS_getcpu = 311 +const SYS_getcwd = 183 +const SYS_getdents64 = 220 +const SYS_getegid = 202 +const SYS_geteuid = 201 +const SYS_getgid = 200 +const SYS_getgroups = 205 +const SYS_getitimer = 105 +const SYS_getpeername = 368 +const SYS_getpgid = 132 +const SYS_getpgrp = 65 +const SYS_getpid = 20 +const SYS_getpmsg = 188 +const SYS_getppid = 64 +const SYS_getpriority = 96 +const SYS_getrandom = 349 +const SYS_getresgid = 211 +const SYS_getresuid = 209 +const SYS_getrlimit = 191 +const SYS_getrusage = 77 +const SYS_getsid = 147 +const SYS_getsockname = 367 +const SYS_getsockopt = 365 +const SYS_gettid = 236 +const SYS_gettimeofday = 78 +const SYS_getuid = 199 +const SYS_getxattr = 227 +const SYS_idle = 112 +const SYS_init_module = 128 +const SYS_inotify_add_watch = 285 +const SYS_inotify_init = 284 +const SYS_inotify_init1 = 324 +const SYS_inotify_rm_watch = 286 +const SYS_io_cancel = 247 +const SYS_io_destroy = 244 +const SYS_io_getevents = 245 +const SYS_io_pgetevents = 382 +const SYS_io_setup = 243 +const SYS_io_submit = 246 +const SYS_io_uring_enter = 426 +const SYS_io_uring_register = 427 +const SYS_io_uring_setup = 425 +const SYS_ioctl = 54 +const SYS_ioprio_get = 283 +const SYS_ioprio_set = 282 +const SYS_ipc = 117 +const SYS_kcmp = 343 +const SYS_kexec_file_load = 381 +const SYS_kexec_load = 277 +const SYS_keyctl = 280 +const SYS_kill = 37 +const SYS_landlock_add_rule = 445 +const SYS_landlock_create_ruleset = 444 +const SYS_landlock_restrict_self = 446 +const SYS_lchown = 198 +const SYS_lgetxattr = 228 +const SYS_link = 9 +const SYS_linkat = 296 +const SYS_listen = 363 +const SYS_listxattr = 230 +const SYS_llistxattr = 231 +const SYS_lookup_dcookie = 110 +const SYS_lremovexattr = 234 +const SYS_lseek = 19 +const SYS_lsetxattr = 225 +const SYS_lstat = 107 +const SYS_madvise = 219 +const SYS_mbind = 268 +const SYS_membarrier = 356 +const SYS_memfd_create = 350 +const SYS_memfd_secret = 447 +const SYS_migrate_pages = 287 +const SYS_mincore = 218 +const SYS_mkdir = 39 +const SYS_mkdirat = 289 +const SYS_mknod = 14 +const SYS_mknodat = 290 +const SYS_mlock = 150 +const SYS_mlock2 = 374 +const SYS_mlockall = 152 +const SYS_mmap = 90 +const SYS_mount = 21 +const SYS_mount_setattr = 442 +const SYS_move_mount = 429 +const SYS_move_pages = 310 +const SYS_mprotect = 125 +const SYS_mq_getsetattr = 276 +const SYS_mq_notify = 275 +const SYS_mq_open = 271 +const SYS_mq_timedreceive = 274 +const SYS_mq_timedsend = 273 +const SYS_mq_unlink = 272 +const SYS_mremap = 163 +const SYS_msgctl = 402 +const SYS_msgget = 399 +const SYS_msgrcv = 401 +const SYS_msgsnd = 400 +const SYS_msync = 144 +const SYS_munlock = 151 +const SYS_munlockall = 153 +const SYS_munmap = 91 +const SYS_name_to_handle_at = 335 +const SYS_nanosleep = 162 +const SYS_newfstatat = 293 +const SYS_nfsservctl = 169 +const SYS_nice = 34 +const SYS_open = 5 +const SYS_open_by_handle_at = 336 +const SYS_open_tree = 428 +const SYS_openat = 288 +const SYS_openat2 = 437 +const SYS_pause = 29 +const SYS_perf_event_open = 331 +const SYS_personality = 136 +const SYS_pidfd_getfd = 438 +const SYS_pidfd_open = 434 +const SYS_pidfd_send_signal = 424 +const SYS_pipe = 42 +const SYS_pipe2 = 325 +const SYS_pivot_root = 217 +const SYS_pkey_alloc = 385 +const SYS_pkey_free = 386 +const SYS_pkey_mprotect = 384 +const SYS_poll = 168 +const SYS_ppoll = 302 +const SYS_prctl = 172 +const SYS_pread64 = 180 +const SYS_preadv = 328 +const SYS_preadv2 = 376 +const SYS_prlimit64 = 334 +const SYS_process_madvise = 440 +const SYS_process_mrelease = 448 +const SYS_process_vm_readv = 340 +const SYS_process_vm_writev = 341 +const SYS_pselect6 = 301 +const SYS_ptrace = 26 +const SYS_putpmsg = 189 +const SYS_pwrite64 = 181 +const SYS_pwritev = 329 +const SYS_pwritev2 = 377 +const SYS_query_module = 167 +const SYS_quotactl = 131 +const SYS_read = 3 +const SYS_readahead = 222 +const SYS_readdir = 89 +const SYS_readlink = 85 +const SYS_readlinkat = 298 +const SYS_readv = 145 +const SYS_reboot = 88 +const SYS_recvfrom = 371 +const SYS_recvmmsg = 357 +const SYS_recvmsg = 372 +const SYS_remap_file_pages = 267 +const SYS_removexattr = 233 +const SYS_rename = 38 +const SYS_renameat = 295 +const SYS_renameat2 = 347 +const SYS_request_key = 279 +const SYS_restart_syscall = 7 +const SYS_rmdir = 40 +const SYS_rseq = 383 +const SYS_rt_sigaction = 174 +const SYS_rt_sigpending = 176 +const SYS_rt_sigprocmask = 175 +const SYS_rt_sigqueueinfo = 178 +const SYS_rt_sigreturn = 173 +const SYS_rt_sigsuspend = 179 +const SYS_rt_sigtimedwait = 177 +const SYS_rt_tgsigqueueinfo = 330 +const SYS_s390_guarded_storage = 378 +const SYS_s390_pci_mmio_read = 353 +const SYS_s390_pci_mmio_write = 352 +const SYS_s390_runtime_instr = 342 +const SYS_s390_sthyi = 380 +const SYS_sched_get_priority_max = 159 +const SYS_sched_get_priority_min = 160 +const SYS_sched_getaffinity = 240 +const SYS_sched_getattr = 346 +const SYS_sched_getparam = 155 +const SYS_sched_getscheduler = 157 +const SYS_sched_rr_get_interval = 161 +const SYS_sched_setaffinity = 239 +const SYS_sched_setattr = 345 +const SYS_sched_setparam = 154 +const SYS_sched_setscheduler = 156 +const SYS_sched_yield = 158 +const SYS_seccomp = 348 +const SYS_select = 142 +const SYS_semctl = 394 +const SYS_semget = 393 +const SYS_semtimedop = 392 +const SYS_sendfile = 187 +const SYS_sendmmsg = 358 +const SYS_sendmsg = 370 +const SYS_sendto = 369 +const SYS_set_mempolicy = 270 +const SYS_set_mempolicy_home_node = 450 +const SYS_set_robust_list = 304 +const SYS_set_tid_address = 252 +const SYS_setdomainname = 121 +const SYS_setfsgid = 216 +const SYS_setfsuid = 215 +const SYS_setgid = 214 +const SYS_setgroups = 206 +const SYS_sethostname = 74 +const SYS_setitimer = 104 +const SYS_setns = 339 +const SYS_setpgid = 57 +const SYS_setpriority = 97 +const SYS_setregid = 204 +const SYS_setresgid = 210 +const SYS_setresuid = 208 +const SYS_setreuid = 203 +const SYS_setrlimit = 75 +const SYS_setsid = 66 +const SYS_setsockopt = 366 +const SYS_settimeofday = 79 +const SYS_setuid = 213 +const SYS_setxattr = 224 +const SYS_shmat = 397 +const SYS_shmctl = 396 +const SYS_shmdt = 398 +const SYS_shmget = 395 +const SYS_shutdown = 373 +const SYS_sigaction = 67 +const SYS_sigaltstack = 186 +const SYS_signal = 48 +const SYS_signalfd = 316 +const SYS_signalfd4 = 322 +const SYS_sigpending = 73 +const SYS_sigprocmask = 126 +const SYS_sigreturn = 119 +const SYS_sigsuspend = 72 +const SYS_socket = 359 +const SYS_socketcall = 102 +const SYS_socketpair = 360 +const SYS_splice = 306 +const SYS_stat = 106 +const SYS_statfs64 = 265 +const SYS_statx = 379 +const SYS_swapoff = 115 +const SYS_swapon = 87 +const SYS_symlink = 83 +const SYS_symlinkat = 297 +const SYS_sync = 36 +const SYS_sync_file_range = 307 +const SYS_syncfs = 338 +const SYS_sysfs = 135 +const SYS_sysinfo = 116 +const SYS_syslog = 103 +const SYS_tee = 308 +const SYS_tgkill = 241 +const SYS_timer_create = 254 +const SYS_timer_delete = 258 +const SYS_timer_getoverrun = 257 +const SYS_timer_gettime = 256 +const SYS_timer_settime = 255 +const SYS_timerfd = 317 +const SYS_timerfd_create = 319 +const SYS_timerfd_gettime = 321 +const SYS_timerfd_settime = 320 +const SYS_times = 43 +const SYS_tkill = 237 +const SYS_truncate = 92 +const SYS_umask = 60 +const SYS_umount = 22 +const SYS_umount2 = 52 +const SYS_uname = 122 +const SYS_unlink = 10 +const SYS_unlinkat = 294 +const SYS_unshare = 303 +const SYS_uselib = 86 +const SYS_userfaultfd = 355 +const SYS_ustat = 62 +const SYS_utime = 30 +const SYS_utimensat = 315 +const SYS_utimes = 313 +const SYS_vfork = 190 +const SYS_vhangup = 111 +const SYS_vmsplice = 309 +const SYS_wait4 = 114 +const SYS_waitid = 281 +const SYS_write = 4 +const SYS_writev = 146 +const TRAP_BRANCH = 3 +const TRAP_BRKPT = 1 +const TRAP_HWBKPT = 4 +const TRAP_TRACE = 2 +const TRAP_UNK = 5 +const VER = -255 +const VER_DEF_CURRENT = 1 +const VER_DEF_NONE = 0 +const VER_DEF_NUM = 2 +const VER_FLG_BASE = 1 +const VER_FLG_WEAK = 2 +const VER_NDX_ELIMINATE = 65281 +const VER_NDX_GLOBAL = 1 +const VER_NDX_LOCAL = 0 +const VER_NDX_LORESERVE = 65280 +const VER_NEED_CURRENT = 1 +const VER_NEED_NONE = 0 +const VER_NEED_NUM = 2 +const WNOHANG = 1 +const WUNTRACED = 2 +const _NSIG = 65 +const __NR__sysctl = 149 +const __NR_accept4 = 364 +const __NR_access = 33 +const __NR_acct = 51 +const __NR_add_key = 278 +const __NR_adjtimex = 124 +const __NR_afs_syscall = 137 +const __NR_alarm = 27 +const __NR_bdflush = 134 +const __NR_bind = 361 +const __NR_bpf = 351 +const __NR_brk = 45 +const __NR_cachestat = 451 +const __NR_capget = 184 +const __NR_capset = 185 +const __NR_chdir = 12 +const __NR_chmod = 15 +const __NR_chown = 212 +const __NR_chroot = 61 +const __NR_clock_adjtime = 337 +const __NR_clock_getres = 261 +const __NR_clock_gettime = 260 +const __NR_clock_nanosleep = 262 +const __NR_clock_settime = 259 +const __NR_clone = 120 +const __NR_clone3 = 435 +const __NR_close = 6 +const __NR_close_range = 436 +const __NR_connect = 362 +const __NR_copy_file_range = 375 +const __NR_creat = 8 +const __NR_create_module = 127 +const __NR_delete_module = 129 +const __NR_dup = 41 +const __NR_dup2 = 63 +const __NR_dup3 = 326 +const __NR_epoll_create = 249 +const __NR_epoll_create1 = 327 +const __NR_epoll_ctl = 250 +const __NR_epoll_pwait = 312 +const __NR_epoll_pwait2 = 441 +const __NR_epoll_wait = 251 +const __NR_eventfd = 318 +const __NR_eventfd2 = 323 +const __NR_execve = 11 +const __NR_execveat = 354 +const __NR_exit = 1 +const __NR_exit_group = 248 +const __NR_faccessat = 300 +const __NR_faccessat2 = 439 +const __NR_fadvise64 = 253 +const __NR_fallocate = 314 +const __NR_fanotify_init = 332 +const __NR_fanotify_mark = 333 +const __NR_fchdir = 133 +const __NR_fchmod = 94 +const __NR_fchmodat = 299 +const __NR_fchmodat2 = 452 +const __NR_fchown = 207 +const __NR_fchownat = 291 +const __NR_fcntl = 55 +const __NR_fdatasync = 148 +const __NR_fgetxattr = 229 +const __NR_finit_module = 344 +const __NR_flistxattr = 232 +const __NR_flock = 143 +const __NR_fork = 2 +const __NR_fremovexattr = 235 +const __NR_fsconfig = 431 +const __NR_fsetxattr = 226 +const __NR_fsmount = 432 +const __NR_fsopen = 430 +const __NR_fspick = 433 +const __NR_fstat = 108 +const __NR_fstatfs = 100 +const __NR_fstatfs64 = 266 +const __NR_fsync = 118 +const __NR_ftruncate = 93 +const __NR_futex = 238 +const __NR_futex_waitv = 449 +const __NR_futimesat = 292 +const __NR_get_kernel_syms = 130 +const __NR_get_mempolicy = 269 +const __NR_get_robust_list = 305 +const __NR_getcpu = 311 +const __NR_getcwd = 183 +const __NR_getdents = 141 +const __NR_getdents64 = 220 +const __NR_getegid = 202 +const __NR_geteuid = 201 +const __NR_getgid = 200 +const __NR_getgroups = 205 +const __NR_getitimer = 105 +const __NR_getpeername = 368 +const __NR_getpgid = 132 +const __NR_getpgrp = 65 +const __NR_getpid = 20 +const __NR_getpmsg = 188 +const __NR_getppid = 64 +const __NR_getpriority = 96 +const __NR_getrandom = 349 +const __NR_getresgid = 211 +const __NR_getresuid = 209 +const __NR_getrlimit = 191 +const __NR_getrusage = 77 +const __NR_getsid = 147 +const __NR_getsockname = 367 +const __NR_getsockopt = 365 +const __NR_gettid = 236 +const __NR_gettimeofday = 78 +const __NR_getuid = 199 +const __NR_getxattr = 227 +const __NR_idle = 112 +const __NR_init_module = 128 +const __NR_inotify_add_watch = 285 +const __NR_inotify_init = 284 +const __NR_inotify_init1 = 324 +const __NR_inotify_rm_watch = 286 +const __NR_io_cancel = 247 +const __NR_io_destroy = 244 +const __NR_io_getevents = 245 +const __NR_io_pgetevents = 382 +const __NR_io_setup = 243 +const __NR_io_submit = 246 +const __NR_io_uring_enter = 426 +const __NR_io_uring_register = 427 +const __NR_io_uring_setup = 425 +const __NR_ioctl = 54 +const __NR_ioprio_get = 283 +const __NR_ioprio_set = 282 +const __NR_ipc = 117 +const __NR_kcmp = 343 +const __NR_kexec_file_load = 381 +const __NR_kexec_load = 277 +const __NR_keyctl = 280 +const __NR_kill = 37 +const __NR_landlock_add_rule = 445 +const __NR_landlock_create_ruleset = 444 +const __NR_landlock_restrict_self = 446 +const __NR_lchown = 198 +const __NR_lgetxattr = 228 +const __NR_link = 9 +const __NR_linkat = 296 +const __NR_listen = 363 +const __NR_listxattr = 230 +const __NR_llistxattr = 231 +const __NR_lookup_dcookie = 110 +const __NR_lremovexattr = 234 +const __NR_lseek = 19 +const __NR_lsetxattr = 225 +const __NR_lstat = 107 +const __NR_madvise = 219 +const __NR_mbind = 268 +const __NR_membarrier = 356 +const __NR_memfd_create = 350 +const __NR_memfd_secret = 447 +const __NR_migrate_pages = 287 +const __NR_mincore = 218 +const __NR_mkdir = 39 +const __NR_mkdirat = 289 +const __NR_mknod = 14 +const __NR_mknodat = 290 +const __NR_mlock = 150 +const __NR_mlock2 = 374 +const __NR_mlockall = 152 +const __NR_mmap = 90 +const __NR_mount = 21 +const __NR_mount_setattr = 442 +const __NR_move_mount = 429 +const __NR_move_pages = 310 +const __NR_mprotect = 125 +const __NR_mq_getsetattr = 276 +const __NR_mq_notify = 275 +const __NR_mq_open = 271 +const __NR_mq_timedreceive = 274 +const __NR_mq_timedsend = 273 +const __NR_mq_unlink = 272 +const __NR_mremap = 163 +const __NR_msgctl = 402 +const __NR_msgget = 399 +const __NR_msgrcv = 401 +const __NR_msgsnd = 400 +const __NR_msync = 144 +const __NR_munlock = 151 +const __NR_munlockall = 153 +const __NR_munmap = 91 +const __NR_name_to_handle_at = 335 +const __NR_nanosleep = 162 +const __NR_newfstatat = 293 +const __NR_nfsservctl = 169 +const __NR_nice = 34 +const __NR_open = 5 +const __NR_open_by_handle_at = 336 +const __NR_open_tree = 428 +const __NR_openat = 288 +const __NR_openat2 = 437 +const __NR_pause = 29 +const __NR_perf_event_open = 331 +const __NR_personality = 136 +const __NR_pidfd_getfd = 438 +const __NR_pidfd_open = 434 +const __NR_pidfd_send_signal = 424 +const __NR_pipe = 42 +const __NR_pipe2 = 325 +const __NR_pivot_root = 217 +const __NR_pkey_alloc = 385 +const __NR_pkey_free = 386 +const __NR_pkey_mprotect = 384 +const __NR_poll = 168 +const __NR_ppoll = 302 +const __NR_prctl = 172 +const __NR_pread64 = 180 +const __NR_preadv = 328 +const __NR_preadv2 = 376 +const __NR_prlimit64 = 334 +const __NR_process_madvise = 440 +const __NR_process_mrelease = 448 +const __NR_process_vm_readv = 340 +const __NR_process_vm_writev = 341 +const __NR_pselect6 = 301 +const __NR_ptrace = 26 +const __NR_putpmsg = 189 +const __NR_pwrite64 = 181 +const __NR_pwritev = 329 +const __NR_pwritev2 = 377 +const __NR_query_module = 167 +const __NR_quotactl = 131 +const __NR_read = 3 +const __NR_readahead = 222 +const __NR_readdir = 89 +const __NR_readlink = 85 +const __NR_readlinkat = 298 +const __NR_readv = 145 +const __NR_reboot = 88 +const __NR_recvfrom = 371 +const __NR_recvmmsg = 357 +const __NR_recvmsg = 372 +const __NR_remap_file_pages = 267 +const __NR_removexattr = 233 +const __NR_rename = 38 +const __NR_renameat = 295 +const __NR_renameat2 = 347 +const __NR_request_key = 279 +const __NR_restart_syscall = 7 +const __NR_rmdir = 40 +const __NR_rseq = 383 +const __NR_rt_sigaction = 174 +const __NR_rt_sigpending = 176 +const __NR_rt_sigprocmask = 175 +const __NR_rt_sigqueueinfo = 178 +const __NR_rt_sigreturn = 173 +const __NR_rt_sigsuspend = 179 +const __NR_rt_sigtimedwait = 177 +const __NR_rt_tgsigqueueinfo = 330 +const __NR_s390_guarded_storage = 378 +const __NR_s390_pci_mmio_read = 353 +const __NR_s390_pci_mmio_write = 352 +const __NR_s390_runtime_instr = 342 +const __NR_s390_sthyi = 380 +const __NR_sched_get_priority_max = 159 +const __NR_sched_get_priority_min = 160 +const __NR_sched_getaffinity = 240 +const __NR_sched_getattr = 346 +const __NR_sched_getparam = 155 +const __NR_sched_getscheduler = 157 +const __NR_sched_rr_get_interval = 161 +const __NR_sched_setaffinity = 239 +const __NR_sched_setattr = 345 +const __NR_sched_setparam = 154 +const __NR_sched_setscheduler = 156 +const __NR_sched_yield = 158 +const __NR_seccomp = 348 +const __NR_select = 142 +const __NR_semctl = 394 +const __NR_semget = 393 +const __NR_semtimedop = 392 +const __NR_sendfile = 187 +const __NR_sendmmsg = 358 +const __NR_sendmsg = 370 +const __NR_sendto = 369 +const __NR_set_mempolicy = 270 +const __NR_set_mempolicy_home_node = 450 +const __NR_set_robust_list = 304 +const __NR_set_tid_address = 252 +const __NR_setdomainname = 121 +const __NR_setfsgid = 216 +const __NR_setfsuid = 215 +const __NR_setgid = 214 +const __NR_setgroups = 206 +const __NR_sethostname = 74 +const __NR_setitimer = 104 +const __NR_setns = 339 +const __NR_setpgid = 57 +const __NR_setpriority = 97 +const __NR_setregid = 204 +const __NR_setresgid = 210 +const __NR_setresuid = 208 +const __NR_setreuid = 203 +const __NR_setrlimit = 75 +const __NR_setsid = 66 +const __NR_setsockopt = 366 +const __NR_settimeofday = 79 +const __NR_setuid = 213 +const __NR_setxattr = 224 +const __NR_shmat = 397 +const __NR_shmctl = 396 +const __NR_shmdt = 398 +const __NR_shmget = 395 +const __NR_shutdown = 373 +const __NR_sigaction = 67 +const __NR_sigaltstack = 186 +const __NR_signal = 48 +const __NR_signalfd = 316 +const __NR_signalfd4 = 322 +const __NR_sigpending = 73 +const __NR_sigprocmask = 126 +const __NR_sigreturn = 119 +const __NR_sigsuspend = 72 +const __NR_socket = 359 +const __NR_socketcall = 102 +const __NR_socketpair = 360 +const __NR_splice = 306 +const __NR_stat = 106 +const __NR_statfs = 99 +const __NR_statfs64 = 265 +const __NR_statx = 379 +const __NR_swapoff = 115 +const __NR_swapon = 87 +const __NR_symlink = 83 +const __NR_symlinkat = 297 +const __NR_sync = 36 +const __NR_sync_file_range = 307 +const __NR_syncfs = 338 +const __NR_sysfs = 135 +const __NR_sysinfo = 116 +const __NR_syslog = 103 +const __NR_tee = 308 +const __NR_tgkill = 241 +const __NR_timer_create = 254 +const __NR_timer_delete = 258 +const __NR_timer_getoverrun = 257 +const __NR_timer_gettime = 256 +const __NR_timer_settime = 255 +const __NR_timerfd = 317 +const __NR_timerfd_create = 319 +const __NR_timerfd_gettime = 321 +const __NR_timerfd_settime = 320 +const __NR_times = 43 +const __NR_tkill = 237 +const __NR_truncate = 92 +const __NR_umask = 60 +const __NR_umount = 22 +const __NR_umount2 = 52 +const __NR_uname = 122 +const __NR_unlink = 10 +const __NR_unlinkat = 294 +const __NR_unshare = 303 +const __NR_uselib = 86 +const __NR_userfaultfd = 355 +const __NR_ustat = 62 +const __NR_utime = 30 +const __NR_utimensat = 315 +const __NR_utimes = 313 +const __NR_vfork = 190 +const __NR_vhangup = 111 +const __NR_vmsplice = 309 +const __NR_wait4 = 114 +const __NR_waitid = 281 +const __NR_write = 4 +const __NR_writev = 146 +const __SC_accept = 5 +const __SC_accept4 = 18 +const __SC_bind = 2 +const __SC_connect = 3 +const __SC_getpeername = 7 +const __SC_getsockname = 6 +const __SC_getsockopt = 15 +const __SC_listen = 4 +const __SC_recv = 10 +const __SC_recvfrom = 12 +const __SC_recvmmsg = 19 +const __SC_recvmsg = 17 +const __SC_send = 9 +const __SC_sendmmsg = 20 +const __SC_sendmsg = 16 +const __SC_sendto = 11 +const __SC_setsockopt = 14 +const __SC_shutdown = 13 +const __SC_socket = 1 +const __SC_socketpair = 8 +const libc = 0 + +type Ttime_t = int64 + +type Tsuseconds_t = int64 + +type Ttimeval = struct { + Ftv_sec Ttime_t + Ftv_usec Tsuseconds_t +} + +type Ttimespec = struct { + Ftv_sec Ttime_t + Ftv_nsec int64 +} + +type Tsigset_t = struct { + F__bits [16]uint64 +} + +type t__sigset_t = Tsigset_t + +type Tfd_mask = uint64 + +type Tfd_set = struct { + Ffds_bits [16]uint64 +} + +type Titimerval = struct { + Fit_interval Ttimeval + Fit_value Ttimeval +} + +type Tid_t = uint32 + +type Trlim_t = uint64 + +type Trlimit = struct { + Frlim_cur Trlim_t + Frlim_max Trlim_t +} + +type Trusage = struct { + Fru_utime Ttimeval + Fru_stime Ttimeval + Fru_maxrss int64 + Fru_ixrss int64 + Fru_idrss int64 + Fru_isrss int64 + Fru_minflt int64 + Fru_majflt int64 + Fru_nswap int64 + Fru_inblock int64 + Fru_oublock int64 + Fru_msgsnd int64 + Fru_msgrcv int64 + Fru_nsignals int64 + Fru_nvcsw int64 + Fru_nivcsw int64 + F__reserved [16]int64 +} + +type Tclock_t = int64 + +type Tpthread_t = uintptr + +type Tpthread_attr_t = struct { + F__u struct { + F__vi [0][14]int32 + F__s [0][7]uint64 + F__i [14]int32 + } +} + +type Tstack_t = struct { + Fss_sp uintptr + Fss_flags int32 + Fss_size Tsize_t +} + +type Tsigaltstack = Tstack_t + +type Tmcontext_t = struct { + F__regs1 [18]uint64 + F__regs2 [18]uint32 + F__regs3 [16]float64 +} + +type Tucontext_t = struct { + Fuc_flags uint64 + Fuc_link uintptr + Fuc_stack Tstack_t + Fuc_mcontext Tmcontext_t + Fuc_sigmask Tsigset_t +} + +type t__ucontext = Tucontext_t + +type Tsigval = struct { + Fsival_ptr [0]uintptr + Fsival_int int32 + F__ccgo_pad2 [4]byte +} + +type Tsiginfo_t = struct { + Fsi_signo int32 + Fsi_errno int32 + Fsi_code int32 + F__si_fields struct { + F__si_common [0]struct { + F__first struct { + F__timer [0]struct { + Fsi_timerid int32 + Fsi_overrun int32 + } + F__piduid struct { + Fsi_pid Tpid_t + Fsi_uid Tuid_t + } + } + F__second struct { + F__sigchld [0]struct { + Fsi_status int32 + Fsi_utime Tclock_t + Fsi_stime Tclock_t + } + Fsi_value Tsigval + F__ccgo_pad2 [16]byte + } + } + F__sigfault [0]struct { + Fsi_addr uintptr + Fsi_addr_lsb int16 + F__first struct { + Fsi_pkey [0]uint32 + F__addr_bnd struct { + Fsi_lower uintptr + Fsi_upper uintptr + } + } + } + F__sigpoll [0]struct { + Fsi_band int64 + Fsi_fd int32 + } + F__sigsys [0]struct { + Fsi_call_addr uintptr + Fsi_syscall int32 + Fsi_arch uint32 + } + F__pad [112]uint8 + } +} + +type Tsigaction = struct { + F__sa_handler struct { + Fsa_sigaction [0]uintptr + Fsa_handler uintptr + } + Fsa_mask Tsigset_t + Fsa_flags int32 + Fsa_restorer uintptr +} + +type Tsigevent = struct { + Fsigev_value Tsigval + Fsigev_signo int32 + Fsigev_notify int32 + F__sev_fields struct { + Fsigev_notify_thread_id [0]Tpid_t + F__sev_thread [0]struct { + Fsigev_notify_function uintptr + Fsigev_notify_attributes uintptr + } + F__pad [48]uint8 + } +} + +type Tsig_atomic_t = int32 + +type TElf32_Half = uint16 + +type TElf64_Half = uint16 + +type TElf32_Word = uint32 + +type TElf32_Sword = int32 + +type TElf64_Word = uint32 + +type TElf64_Sword = int32 + +type TElf32_Xword = uint64 + +type TElf32_Sxword = int64 + +type TElf64_Xword = uint64 + +type TElf64_Sxword = int64 + +type TElf32_Addr = uint32 + +type TElf64_Addr = uint64 + +type TElf32_Off = uint32 + +type TElf64_Off = uint64 + +type TElf32_Section = uint16 + +type TElf64_Section = uint16 + +type TElf32_Versym = uint16 + +type TElf64_Versym = uint16 + +type TElf32_Ehdr = struct { + Fe_ident [16]uint8 + Fe_type TElf32_Half + Fe_machine TElf32_Half + Fe_version TElf32_Word + Fe_entry TElf32_Addr + Fe_phoff TElf32_Off + Fe_shoff TElf32_Off + Fe_flags TElf32_Word + Fe_ehsize TElf32_Half + Fe_phentsize TElf32_Half + Fe_phnum TElf32_Half + Fe_shentsize TElf32_Half + Fe_shnum TElf32_Half + Fe_shstrndx TElf32_Half +} + +type TElf64_Ehdr = struct { + Fe_ident [16]uint8 + Fe_type TElf64_Half + Fe_machine TElf64_Half + Fe_version TElf64_Word + Fe_entry TElf64_Addr + Fe_phoff TElf64_Off + Fe_shoff TElf64_Off + Fe_flags TElf64_Word + Fe_ehsize TElf64_Half + Fe_phentsize TElf64_Half + Fe_phnum TElf64_Half + Fe_shentsize TElf64_Half + Fe_shnum TElf64_Half + Fe_shstrndx TElf64_Half +} + +type TElf32_Shdr = struct { + Fsh_name TElf32_Word + Fsh_type TElf32_Word + Fsh_flags TElf32_Word + Fsh_addr TElf32_Addr + Fsh_offset TElf32_Off + Fsh_size TElf32_Word + Fsh_link TElf32_Word + Fsh_info TElf32_Word + Fsh_addralign TElf32_Word + Fsh_entsize TElf32_Word +} + +type TElf64_Shdr = struct { + Fsh_name TElf64_Word + Fsh_type TElf64_Word + Fsh_flags TElf64_Xword + Fsh_addr TElf64_Addr + Fsh_offset TElf64_Off + Fsh_size TElf64_Xword + Fsh_link TElf64_Word + Fsh_info TElf64_Word + Fsh_addralign TElf64_Xword + Fsh_entsize TElf64_Xword +} + +type TElf32_Chdr = struct { + Fch_type TElf32_Word + Fch_size TElf32_Word + Fch_addralign TElf32_Word +} + +type TElf64_Chdr = struct { + Fch_type TElf64_Word + Fch_reserved TElf64_Word + Fch_size TElf64_Xword + Fch_addralign TElf64_Xword +} + +type TElf32_Sym = struct { + Fst_name TElf32_Word + Fst_value TElf32_Addr + Fst_size TElf32_Word + Fst_info uint8 + Fst_other uint8 + Fst_shndx TElf32_Section +} + +type TElf64_Sym = struct { + Fst_name TElf64_Word + Fst_info uint8 + Fst_other uint8 + Fst_shndx TElf64_Section + Fst_value TElf64_Addr + Fst_size TElf64_Xword +} + +type TElf32_Syminfo = struct { + Fsi_boundto TElf32_Half + Fsi_flags TElf32_Half +} + +type TElf64_Syminfo = struct { + Fsi_boundto TElf64_Half + Fsi_flags TElf64_Half +} + +type TElf32_Rel = struct { + Fr_offset TElf32_Addr + Fr_info TElf32_Word +} + +type TElf64_Rel = struct { + Fr_offset TElf64_Addr + Fr_info TElf64_Xword +} + +type TElf32_Rela = struct { + Fr_offset TElf32_Addr + Fr_info TElf32_Word + Fr_addend TElf32_Sword +} + +type TElf64_Rela = struct { + Fr_offset TElf64_Addr + Fr_info TElf64_Xword + Fr_addend TElf64_Sxword +} + +type TElf32_Relr = uint32 + +type TElf64_Relr = uint64 + +type TElf32_Phdr = struct { + Fp_type TElf32_Word + Fp_offset TElf32_Off + Fp_vaddr TElf32_Addr + Fp_paddr TElf32_Addr + Fp_filesz TElf32_Word + Fp_memsz TElf32_Word + Fp_flags TElf32_Word + Fp_align TElf32_Word +} + +type TElf64_Phdr = struct { + Fp_type TElf64_Word + Fp_flags TElf64_Word + Fp_offset TElf64_Off + Fp_vaddr TElf64_Addr + Fp_paddr TElf64_Addr + Fp_filesz TElf64_Xword + Fp_memsz TElf64_Xword + Fp_align TElf64_Xword +} + +type TElf32_Dyn = struct { + Fd_tag TElf32_Sword + Fd_un struct { + Fd_ptr [0]TElf32_Addr + Fd_val TElf32_Word + } +} + +type TElf64_Dyn = struct { + Fd_tag TElf64_Sxword + Fd_un struct { + Fd_ptr [0]TElf64_Addr + Fd_val TElf64_Xword + } +} + +type TElf32_Verdef = struct { + Fvd_version TElf32_Half + Fvd_flags TElf32_Half + Fvd_ndx TElf32_Half + Fvd_cnt TElf32_Half + Fvd_hash TElf32_Word + Fvd_aux TElf32_Word + Fvd_next TElf32_Word +} + +type TElf64_Verdef = struct { + Fvd_version TElf64_Half + Fvd_flags TElf64_Half + Fvd_ndx TElf64_Half + Fvd_cnt TElf64_Half + Fvd_hash TElf64_Word + Fvd_aux TElf64_Word + Fvd_next TElf64_Word +} + +type TElf32_Verdaux = struct { + Fvda_name TElf32_Word + Fvda_next TElf32_Word +} + +type TElf64_Verdaux = struct { + Fvda_name TElf64_Word + Fvda_next TElf64_Word +} + +type TElf32_Verneed = struct { + Fvn_version TElf32_Half + Fvn_cnt TElf32_Half + Fvn_file TElf32_Word + Fvn_aux TElf32_Word + Fvn_next TElf32_Word +} + +type TElf64_Verneed = struct { + Fvn_version TElf64_Half + Fvn_cnt TElf64_Half + Fvn_file TElf64_Word + Fvn_aux TElf64_Word + Fvn_next TElf64_Word +} + +type TElf32_Vernaux = struct { + Fvna_hash TElf32_Word + Fvna_flags TElf32_Half + Fvna_other TElf32_Half + Fvna_name TElf32_Word + Fvna_next TElf32_Word +} + +type TElf64_Vernaux = struct { + Fvna_hash TElf64_Word + Fvna_flags TElf64_Half + Fvna_other TElf64_Half + Fvna_name TElf64_Word + Fvna_next TElf64_Word +} + +type TElf32_auxv_t = struct { + Fa_type Tuint32_t + Fa_un struct { + Fa_val Tuint32_t + } +} + +type TElf64_auxv_t = struct { + Fa_type Tuint64_t + Fa_un struct { + Fa_val Tuint64_t + } +} + +type TElf32_Nhdr = struct { + Fn_namesz TElf32_Word + Fn_descsz TElf32_Word + Fn_type TElf32_Word +} + +type TElf64_Nhdr = struct { + Fn_namesz TElf64_Word + Fn_descsz TElf64_Word + Fn_type TElf64_Word +} + +type TElf32_Move = struct { + Fm_value TElf32_Xword + Fm_info TElf32_Word + Fm_poffset TElf32_Word + Fm_repeat TElf32_Half + Fm_stride TElf32_Half +} + +type TElf64_Move = struct { + Fm_value TElf64_Xword + Fm_info TElf64_Xword + Fm_poffset TElf64_Xword + Fm_repeat TElf64_Half + Fm_stride TElf64_Half +} + +type TElf32_gptab = struct { + Fgt_entry [0]struct { + Fgt_g_value TElf32_Word + Fgt_bytes TElf32_Word + } + Fgt_header struct { + Fgt_current_g_value TElf32_Word + Fgt_unused TElf32_Word + } +} + +type TElf32_RegInfo = struct { + Fri_gprmask TElf32_Word + Fri_cprmask [4]TElf32_Word + Fri_gp_value TElf32_Sword +} + +type TElf_Options = struct { + Fkind uint8 + Fsize uint8 + Fsection TElf32_Section + Finfo TElf32_Word +} + +type TElf_Options_Hw = struct { + Fhwp_flags1 TElf32_Word + Fhwp_flags2 TElf32_Word +} + +type TElf32_Lib = struct { + Fl_name TElf32_Word + Fl_time_stamp TElf32_Word + Fl_checksum TElf32_Word + Fl_version TElf32_Word + Fl_flags TElf32_Word +} + +type TElf64_Lib = struct { + Fl_name TElf64_Word + Fl_time_stamp TElf64_Word + Fl_checksum TElf64_Word + Fl_version TElf64_Word + Fl_flags TElf64_Word +} + +type TElf32_Conflict = uint32 + +type TElf_MIPS_ABIFlags_v0 = struct { + Fversion TElf32_Half + Fisa_level uint8 + Fisa_rev uint8 + Fgpr_size uint8 + Fcpr1_size uint8 + Fcpr2_size uint8 + Ffp_abi uint8 + Fisa_ext TElf32_Word + Fases TElf32_Word + Fflags1 TElf32_Word + Fflags2 TElf32_Word +} + +const _Val_GNU_MIPS_ABI_FP_ANY = 0 +const _Val_GNU_MIPS_ABI_FP_DOUBLE = 1 +const _Val_GNU_MIPS_ABI_FP_SINGLE = 2 +const _Val_GNU_MIPS_ABI_FP_SOFT = 3 +const _Val_GNU_MIPS_ABI_FP_OLD_64 = 4 +const _Val_GNU_MIPS_ABI_FP_XX = 5 +const _Val_GNU_MIPS_ABI_FP_64 = 6 +const _Val_GNU_MIPS_ABI_FP_64A = 7 +const _Val_GNU_MIPS_ABI_FP_MAX = 7 + +type Tsyscall_arg_t = int64 + +type Twchar_t = int32 + +type Tdiv_t = struct { + Fquot int32 + Frem int32 +} + +type Tldiv_t = struct { + Fquot int64 + Frem int64 +} + +type Tlldiv_t = struct { + Fquot int64 + Frem int64 +} + +type t__locale_struct = struct { + Fcat [6]uintptr +} + +type Ttls_module = struct { + Fnext uintptr + Fimage uintptr + Flen1 Tsize_t + Fsize Tsize_t + Falign Tsize_t + Foffset Tsize_t +} + +type t__libc = struct { + Fcan_do_threads uint8 + Fthreaded uint8 + Fsecure uint8 + Fneed_locks int8 + Fthreads_minus_1 int32 + Fauxv uintptr + Ftls_head uintptr + Ftls_size Tsize_t + Ftls_align Tsize_t + Ftls_cnt Tsize_t + Fpage_size Tsize_t + Fglobal_locale t__locale_struct +} + +func Xsysconf(tls *TLS, name int32) (r int64) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(512) + defer tls.Free(512) + var cnt, i, v3 int32 + var mem, v1 uint64 + var val int64 + var v5 uintptr + var _ /* lim at bp+0 */ Trlimit + var _ /* set at bp+16 */ [128]uint8 + var _ /* si at bp+144 */ Tsysinfo + _, _, _, _, _, _, _ = cnt, i, mem, val, v1, v3, v5 + if Uint64FromInt32(name) >= Uint64FromInt64(502)/Uint64FromInt64(2) || !(_values1[name] != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return int64(-int32(1)) + } else { + if int32(_values1[name]) >= -int32(1) { + return int64(_values1[name]) + } else { + if int32(_values1[name]) < -int32(256) { + Xgetrlimit(tls, int32(_values1[name])&int32(16383), bp) + if (**(**Trlimit)(__ccgo_up(bp))).Frlim_cur == ^Uint64FromUint64(0) { + return int64(-int32(1)) + } + if (**(**Trlimit)(__ccgo_up(bp))).Frlim_cur > uint64(0x7fffffffffffffff) { + v1 = uint64(0x7fffffffffffffff) + } else { + v1 = (**(**Trlimit)(__ccgo_up(bp))).Frlim_cur + } + return Int64FromUint64(v1) + } + } + } + switch Int32FromUint8(Uint8FromInt16(_values1[name])) { + case (-Int32FromInt32(256) | Int32FromInt32(1)) & Int32FromInt32(255): + return int64(200809) + case (-Int32FromInt32(256) | Int32FromInt32(2)) & Int32FromInt32(255): + return int64(ARG_MAX) + case (-Int32FromInt32(256) | Int32FromInt32(3)) & Int32FromInt32(255): + return int64(MQ_PRIO_MAX) + case (-Int32FromInt32(256) | Int32FromInt32(4)) & Int32FromInt32(255): + return int64(PAGESIZE) + case (-Int32FromInt32(256) | Int32FromInt32(5)) & Int32FromInt32(255): + return int64(SEM_VALUE_MAX) + case (-Int32FromInt32(256) | Int32FromInt32(11)) & Int32FromInt32(255): + return int64(DELAYTIMER_MAX) + case (-Int32FromInt32(256) | Int32FromInt32(6)) & Int32FromInt32(255): + fallthrough + case (-Int32FromInt32(256) | Int32FromInt32(7)) & Int32FromInt32(255): + **(**[128]uint8)(__ccgo_up(bp + 16)) = [128]uint8{ + 0: uint8(1), + } + X__syscall3(tls, int64(SYS_sched_getaffinity), int64(Int32FromInt32(0)), Int64FromUint64(Uint64FromInt64(128)), int64(bp+16)) + v3 = Int32FromInt32(0) + cnt = v3 + i = v3 + for { + if !(Uint64FromInt32(i) < uint64(128)) { + break + } + for { + if !((**(**[128]uint8)(__ccgo_up(bp + 16)))[i] != 0) { + break + } + goto _4 + _4: + ; + v5 = bp + 16 + uintptr(i) + *(*uint8)(unsafe.Pointer(v5)) = uint8(int32(*(*uint8)(unsafe.Pointer(v5))) & (Int32FromUint8((**(**[128]uint8)(__ccgo_up(bp + 16)))[i]) - Int32FromInt32(1))) + cnt = cnt + 1 + } + goto _2 + _2: + ; + i = i + 1 + } + return int64(cnt) + case (-Int32FromInt32(256) | Int32FromInt32(8)) & Int32FromInt32(255): + fallthrough + case (-Int32FromInt32(256) | Int32FromInt32(9)) & Int32FromInt32(255): + X__lsysinfo(tls, bp+144) + if !((**(**Tsysinfo)(__ccgo_up(bp + 144))).Fmem_unit != 0) { + (**(**Tsysinfo)(__ccgo_up(bp + 144))).Fmem_unit = uint32(1) + } + if name == int32(_SC_PHYS_PAGES) { + mem = uint64((**(**Tsysinfo)(__ccgo_up(bp + 144))).Ftotalram) + } else { + mem = uint64((**(**Tsysinfo)(__ccgo_up(bp + 144))).Ffreeram + (**(**Tsysinfo)(__ccgo_up(bp + 144))).Fbufferram) + } + mem = mem * uint64((**(**Tsysinfo)(__ccgo_up(bp + 144))).Fmem_unit) + mem = mem / uint64(PAGESIZE) + if mem > uint64(0x7fffffffffffffff) { + v1 = uint64(0x7fffffffffffffff) + } else { + v1 = mem + } + return Int64FromUint64(v1) + case (-Int32FromInt32(256) | Int32FromInt32(12)) & Int32FromInt32(255): + fallthrough + case (-Int32FromInt32(256) | Int32FromInt32(13)) & Int32FromInt32(255): + val = Int64FromUint64(X__getauxval(tls, uint64(AT_MINSIGSTKSZ))) + if val < int64(MINSIGSTKSZ) { + val = int64(MINSIGSTKSZ) + } + if int32(_values1[name]) == -Int32FromInt32(256)|Int32FromInt32(13) { + val = val + int64(Int32FromInt32(SIGSTKSZ)-Int32FromInt32(MINSIGSTKSZ)) + } + return val + case (-Int32FromInt32(256) | Int32FromInt32(10)) & Int32FromInt32(255): + return 0 + } + return int64(_values1[name]) +} + +var _values1 = [251]int16{ + 0: int16(-Int32FromInt32(256) | Int32FromInt32(2)), + 1: int16(-Int32FromInt32(32768) | Int32FromInt32(RLIMIT_NPROC)), + 2: int16(100), + 3: int16(32), + 4: int16(-Int32FromInt32(32768) | Int32FromInt32(RLIMIT_NOFILE)), + 5: int16(-int32(1)), + 6: int16(TZNAME_MAX), + 7: int16(1), + 8: int16(1), + 9: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 10: int16(-int32(1)), + 11: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 12: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 13: int16(-int32(1)), + 14: int16(-int32(1)), + 15: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 16: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 17: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 18: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 19: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 20: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 21: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 22: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 23: int16(-int32(1)), + 24: int16(-int32(1)), + 25: int16(-Int32FromInt32(256) | Int32FromInt32(10)), + 26: int16(-Int32FromInt32(256) | Int32FromInt32(11)), + 27: int16(-int32(1)), + 28: int16(-Int32FromInt32(256) | Int32FromInt32(3)), + 29: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 30: int16(-Int32FromInt32(256) | Int32FromInt32(4)), + 31: int16(Int32FromInt32(_NSIG) - Int32FromInt32(1) - Int32FromInt32(31) - Int32FromInt32(3)), + 32: int16(SEM_NSEMS_MAX), + 33: int16(-Int32FromInt32(256) | Int32FromInt32(5)), + 34: int16(-int32(1)), + 35: int16(-int32(1)), + 36: int16(_POSIX2_BC_BASE_MAX), + 37: int16(_POSIX2_BC_DIM_MAX), + 38: int16(_POSIX2_BC_SCALE_MAX), + 39: int16(_POSIX2_BC_STRING_MAX), + 40: int16(COLL_WEIGHTS_MAX), + 42: int16(-int32(1)), + 43: int16(-int32(1)), + 44: int16(RE_DUP_MAX), + 46: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 47: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 48: int16(-int32(1)), + 49: int16(-int32(1)), + 50: int16(-int32(1)), + 51: int16(-int32(1)), + 52: int16(-int32(1)), + 60: int16(IOV_MAX), + 67: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 68: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 69: int16(-int32(1)), + 70: int16(-int32(1)), + 71: int16(256), + 72: int16(TTY_NAME_MAX), + 73: int16(PTHREAD_DESTRUCTOR_ITERATIONS), + 74: int16(PTHREAD_KEYS_MAX), + 75: int16(PTHREAD_STACK_MIN), + 76: int16(-int32(1)), + 77: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 78: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 79: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 80: int16(-int32(1)), + 81: int16(-int32(1)), + 82: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 83: int16(-Int32FromInt32(256) | Int32FromInt32(6)), + 84: int16(-Int32FromInt32(256) | Int32FromInt32(7)), + 85: int16(-Int32FromInt32(256) | Int32FromInt32(8)), + 86: int16(-Int32FromInt32(256) | Int32FromInt32(9)), + 87: int16(-int32(1)), + 88: int16(-int32(1)), + 89: int16(_XOPEN_VERSION), + 90: int16(_XOPEN_VERSION), + 91: int16(1), + 92: int16(-int32(1)), + 93: int16(1), + 94: int16(1), + 95: int16(-int32(1)), + 97: int16(-int32(1)), + 98: int16(-int32(1)), + 99: int16(-int32(1)), + 100: int16(-int32(1)), + 109: int16(NZERO), + 125: int16(-int32(1)), + 126: int16(-int32(1)), + 127: int16(1), + 128: int16(-int32(1)), + 129: int16(-int32(1)), + 130: int16(-int32(1)), + 131: int16(-int32(1)), + 132: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 133: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 137: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 138: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 139: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 149: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 153: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 154: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 155: int16(1), + 157: int16(1), + 159: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 160: int16(-int32(1)), + 161: int16(-int32(1)), + 164: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 165: int16(-int32(1)), + 168: int16(-int32(1)), + 169: int16(-int32(1)), + 170: int16(-int32(1)), + 171: int16(-int32(1)), + 172: int16(-int32(1)), + 173: int16(SYMLOOP_MAX), + 174: int16(-Int32FromInt32(256) | Int32FromInt32(10)), + 175: int16(-int32(1)), + 176: int16(-int32(1)), + 177: int16(-int32(1)), + 178: int16(1), + 179: int16(-int32(1)), + 180: int16(HOST_NAME_MAX), + 181: int16(-int32(1)), + 182: int16(-int32(1)), + 183: int16(-int32(1)), + 184: int16(-int32(1)), + 235: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 236: int16(-Int32FromInt32(256) | Int32FromInt32(1)), + 237: int16(-int32(1)), + 238: int16(-int32(1)), + 239: int16(1), + 240: int16(-int32(1)), + 241: int16(-int32(1)), + 242: int16(-int32(1)), + 243: int16(-int32(1)), + 244: int16(-int32(1)), + 245: int16(-int32(1)), + 246: int16(-Int32FromInt32(256) | Int32FromInt32(10)), + 247: int16(-int32(1)), + 248: int16(-int32(1)), + 249: int16(-Int32FromInt32(256) | Int32FromInt32(12)), + 250: int16(-Int32FromInt32(256) | Int32FromInt32(13)), +} + +type Tcrypt_data = struct { + Finitialized int32 + F__buf [256]uint8 +} + +func Xcrypt(tls *TLS, key uintptr, salt uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v salt=%v, (%v:)", tls, key, salt, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__crypt_r(tls, key, salt, uintptr(unsafe.Pointer(&_buf))) +} + +/* This buffer is sufficiently large for all + * currently-supported hash types. It needs to be updated if + * longer hashes are added. The cast to struct crypt_data * is + * purely to meet the public API requirements of the crypt_r + * function; the implementation of crypt_r uses the object + * purely as a char buffer. */ +var _buf [128]uint8 + +const BF_N = 16 + +type Tlocale_t = uintptr + +type TBF_word = uint32 + +type TBF_word_signed = int32 + +/* Number of Blowfish rounds, this is also hardcoded into a few places */ + +type TBF_key = [18]TBF_word + +type TBF_ctx = struct { + FPS [0][1042]TBF_word + Fs struct { + FP TBF_key + FS [4][256]TBF_word + } +} + +// C documentation +// +// /* +// * Magic IV for 64 Blowfish encryptions that we do at the end. +// * The string is "OrpheanBeholderScryDoubt" on big-endian. +// */ +var _BF_magic_w = [6]TBF_word{ + 0: uint32(0x4F727068), + 1: uint32(0x65616E42), + 2: uint32(0x65686F6C), + 3: uint32(0x64657253), + 4: uint32(0x63727944), + 5: uint32(0x6F756274), +} + +// C documentation +// +// /* +// * P-box and S-box tables initialized with digits of Pi. +// */ +var _BF_init_state = *(*TBF_ctx)(unsafe.Pointer(&struct { + FP TBF_key + FS [4][256]TBF_word +}{ + FP: TBF_key{ + 0: uint32(0x243f6a88), + 1: uint32(0x85a308d3), + 2: uint32(0x13198a2e), + 3: uint32(0x03707344), + 4: uint32(0xa4093822), + 5: uint32(0x299f31d0), + 6: uint32(0x082efa98), + 7: uint32(0xec4e6c89), + 8: uint32(0x452821e6), + 9: uint32(0x38d01377), + 10: uint32(0xbe5466cf), + 11: uint32(0x34e90c6c), + 12: uint32(0xc0ac29b7), + 13: uint32(0xc97c50dd), + 14: uint32(0x3f84d5b5), + 15: uint32(0xb5470917), + 16: uint32(0x9216d5d9), + 17: uint32(0x8979fb1b), + }, + FS: [4][256]TBF_word{ + 0: { + 0: uint32(0xd1310ba6), + 1: uint32(0x98dfb5ac), + 2: uint32(0x2ffd72db), + 3: uint32(0xd01adfb7), + 4: uint32(0xb8e1afed), + 5: uint32(0x6a267e96), + 6: uint32(0xba7c9045), + 7: uint32(0xf12c7f99), + 8: uint32(0x24a19947), + 9: uint32(0xb3916cf7), + 10: uint32(0x0801f2e2), + 11: uint32(0x858efc16), + 12: uint32(0x636920d8), + 13: uint32(0x71574e69), + 14: uint32(0xa458fea3), + 15: uint32(0xf4933d7e), + 16: uint32(0x0d95748f), + 17: uint32(0x728eb658), + 18: uint32(0x718bcd58), + 19: uint32(0x82154aee), + 20: uint32(0x7b54a41d), + 21: uint32(0xc25a59b5), + 22: uint32(0x9c30d539), + 23: uint32(0x2af26013), + 24: uint32(0xc5d1b023), + 25: uint32(0x286085f0), + 26: uint32(0xca417918), + 27: uint32(0xb8db38ef), + 28: uint32(0x8e79dcb0), + 29: uint32(0x603a180e), + 30: uint32(0x6c9e0e8b), + 31: uint32(0xb01e8a3e), + 32: uint32(0xd71577c1), + 33: uint32(0xbd314b27), + 34: uint32(0x78af2fda), + 35: uint32(0x55605c60), + 36: uint32(0xe65525f3), + 37: uint32(0xaa55ab94), + 38: uint32(0x57489862), + 39: uint32(0x63e81440), + 40: uint32(0x55ca396a), + 41: uint32(0x2aab10b6), + 42: uint32(0xb4cc5c34), + 43: uint32(0x1141e8ce), + 44: uint32(0xa15486af), + 45: uint32(0x7c72e993), + 46: uint32(0xb3ee1411), + 47: uint32(0x636fbc2a), + 48: uint32(0x2ba9c55d), + 49: uint32(0x741831f6), + 50: uint32(0xce5c3e16), + 51: uint32(0x9b87931e), + 52: uint32(0xafd6ba33), + 53: uint32(0x6c24cf5c), + 54: uint32(0x7a325381), + 55: uint32(0x28958677), + 56: uint32(0x3b8f4898), + 57: uint32(0x6b4bb9af), + 58: uint32(0xc4bfe81b), + 59: uint32(0x66282193), + 60: uint32(0x61d809cc), + 61: uint32(0xfb21a991), + 62: uint32(0x487cac60), + 63: uint32(0x5dec8032), + 64: uint32(0xef845d5d), + 65: uint32(0xe98575b1), + 66: uint32(0xdc262302), + 67: uint32(0xeb651b88), + 68: uint32(0x23893e81), + 69: uint32(0xd396acc5), + 70: uint32(0x0f6d6ff3), + 71: uint32(0x83f44239), + 72: uint32(0x2e0b4482), + 73: uint32(0xa4842004), + 74: uint32(0x69c8f04a), + 75: uint32(0x9e1f9b5e), + 76: uint32(0x21c66842), + 77: uint32(0xf6e96c9a), + 78: uint32(0x670c9c61), + 79: uint32(0xabd388f0), + 80: uint32(0x6a51a0d2), + 81: uint32(0xd8542f68), + 82: uint32(0x960fa728), + 83: uint32(0xab5133a3), + 84: uint32(0x6eef0b6c), + 85: uint32(0x137a3be4), + 86: uint32(0xba3bf050), + 87: uint32(0x7efb2a98), + 88: uint32(0xa1f1651d), + 89: uint32(0x39af0176), + 90: uint32(0x66ca593e), + 91: uint32(0x82430e88), + 92: uint32(0x8cee8619), + 93: uint32(0x456f9fb4), + 94: uint32(0x7d84a5c3), + 95: uint32(0x3b8b5ebe), + 96: uint32(0xe06f75d8), + 97: uint32(0x85c12073), + 98: uint32(0x401a449f), + 99: uint32(0x56c16aa6), + 100: uint32(0x4ed3aa62), + 101: uint32(0x363f7706), + 102: uint32(0x1bfedf72), + 103: uint32(0x429b023d), + 104: uint32(0x37d0d724), + 105: uint32(0xd00a1248), + 106: uint32(0xdb0fead3), + 107: uint32(0x49f1c09b), + 108: uint32(0x075372c9), + 109: uint32(0x80991b7b), + 110: uint32(0x25d479d8), + 111: uint32(0xf6e8def7), + 112: uint32(0xe3fe501a), + 113: uint32(0xb6794c3b), + 114: uint32(0x976ce0bd), + 115: uint32(0x04c006ba), + 116: uint32(0xc1a94fb6), + 117: uint32(0x409f60c4), + 118: uint32(0x5e5c9ec2), + 119: uint32(0x196a2463), + 120: uint32(0x68fb6faf), + 121: uint32(0x3e6c53b5), + 122: uint32(0x1339b2eb), + 123: uint32(0x3b52ec6f), + 124: uint32(0x6dfc511f), + 125: uint32(0x9b30952c), + 126: uint32(0xcc814544), + 127: uint32(0xaf5ebd09), + 128: uint32(0xbee3d004), + 129: uint32(0xde334afd), + 130: uint32(0x660f2807), + 131: uint32(0x192e4bb3), + 132: uint32(0xc0cba857), + 133: uint32(0x45c8740f), + 134: uint32(0xd20b5f39), + 135: uint32(0xb9d3fbdb), + 136: uint32(0x5579c0bd), + 137: uint32(0x1a60320a), + 138: uint32(0xd6a100c6), + 139: uint32(0x402c7279), + 140: uint32(0x679f25fe), + 141: uint32(0xfb1fa3cc), + 142: uint32(0x8ea5e9f8), + 143: uint32(0xdb3222f8), + 144: uint32(0x3c7516df), + 145: uint32(0xfd616b15), + 146: uint32(0x2f501ec8), + 147: uint32(0xad0552ab), + 148: uint32(0x323db5fa), + 149: uint32(0xfd238760), + 150: uint32(0x53317b48), + 151: uint32(0x3e00df82), + 152: uint32(0x9e5c57bb), + 153: uint32(0xca6f8ca0), + 154: uint32(0x1a87562e), + 155: uint32(0xdf1769db), + 156: uint32(0xd542a8f6), + 157: uint32(0x287effc3), + 158: uint32(0xac6732c6), + 159: uint32(0x8c4f5573), + 160: uint32(0x695b27b0), + 161: uint32(0xbbca58c8), + 162: uint32(0xe1ffa35d), + 163: uint32(0xb8f011a0), + 164: uint32(0x10fa3d98), + 165: uint32(0xfd2183b8), + 166: uint32(0x4afcb56c), + 167: uint32(0x2dd1d35b), + 168: uint32(0x9a53e479), + 169: uint32(0xb6f84565), + 170: uint32(0xd28e49bc), + 171: uint32(0x4bfb9790), + 172: uint32(0xe1ddf2da), + 173: uint32(0xa4cb7e33), + 174: uint32(0x62fb1341), + 175: uint32(0xcee4c6e8), + 176: uint32(0xef20cada), + 177: uint32(0x36774c01), + 178: uint32(0xd07e9efe), + 179: uint32(0x2bf11fb4), + 180: uint32(0x95dbda4d), + 181: uint32(0xae909198), + 182: uint32(0xeaad8e71), + 183: uint32(0x6b93d5a0), + 184: uint32(0xd08ed1d0), + 185: uint32(0xafc725e0), + 186: uint32(0x8e3c5b2f), + 187: uint32(0x8e7594b7), + 188: uint32(0x8ff6e2fb), + 189: uint32(0xf2122b64), + 190: uint32(0x8888b812), + 191: uint32(0x900df01c), + 192: uint32(0x4fad5ea0), + 193: uint32(0x688fc31c), + 194: uint32(0xd1cff191), + 195: uint32(0xb3a8c1ad), + 196: uint32(0x2f2f2218), + 197: uint32(0xbe0e1777), + 198: uint32(0xea752dfe), + 199: uint32(0x8b021fa1), + 200: uint32(0xe5a0cc0f), + 201: uint32(0xb56f74e8), + 202: uint32(0x18acf3d6), + 203: uint32(0xce89e299), + 204: uint32(0xb4a84fe0), + 205: uint32(0xfd13e0b7), + 206: uint32(0x7cc43b81), + 207: uint32(0xd2ada8d9), + 208: uint32(0x165fa266), + 209: uint32(0x80957705), + 210: uint32(0x93cc7314), + 211: uint32(0x211a1477), + 212: uint32(0xe6ad2065), + 213: uint32(0x77b5fa86), + 214: uint32(0xc75442f5), + 215: uint32(0xfb9d35cf), + 216: uint32(0xebcdaf0c), + 217: uint32(0x7b3e89a0), + 218: uint32(0xd6411bd3), + 219: uint32(0xae1e7e49), + 220: uint32(0x00250e2d), + 221: uint32(0x2071b35e), + 222: uint32(0x226800bb), + 223: uint32(0x57b8e0af), + 224: uint32(0x2464369b), + 225: uint32(0xf009b91e), + 226: uint32(0x5563911d), + 227: uint32(0x59dfa6aa), + 228: uint32(0x78c14389), + 229: uint32(0xd95a537f), + 230: uint32(0x207d5ba2), + 231: uint32(0x02e5b9c5), + 232: uint32(0x83260376), + 233: uint32(0x6295cfa9), + 234: uint32(0x11c81968), + 235: uint32(0x4e734a41), + 236: uint32(0xb3472dca), + 237: uint32(0x7b14a94a), + 238: uint32(0x1b510052), + 239: uint32(0x9a532915), + 240: uint32(0xd60f573f), + 241: uint32(0xbc9bc6e4), + 242: uint32(0x2b60a476), + 243: uint32(0x81e67400), + 244: uint32(0x08ba6fb5), + 245: uint32(0x571be91f), + 246: uint32(0xf296ec6b), + 247: uint32(0x2a0dd915), + 248: uint32(0xb6636521), + 249: uint32(0xe7b9f9b6), + 250: uint32(0xff34052e), + 251: uint32(0xc5855664), + 252: uint32(0x53b02d5d), + 253: uint32(0xa99f8fa1), + 254: uint32(0x08ba4799), + 255: uint32(0x6e85076a), + }, + 1: { + 0: uint32(0x4b7a70e9), + 1: uint32(0xb5b32944), + 2: uint32(0xdb75092e), + 3: uint32(0xc4192623), + 4: uint32(0xad6ea6b0), + 5: uint32(0x49a7df7d), + 6: uint32(0x9cee60b8), + 7: uint32(0x8fedb266), + 8: uint32(0xecaa8c71), + 9: uint32(0x699a17ff), + 10: uint32(0x5664526c), + 11: uint32(0xc2b19ee1), + 12: uint32(0x193602a5), + 13: uint32(0x75094c29), + 14: uint32(0xa0591340), + 15: uint32(0xe4183a3e), + 16: uint32(0x3f54989a), + 17: uint32(0x5b429d65), + 18: uint32(0x6b8fe4d6), + 19: uint32(0x99f73fd6), + 20: uint32(0xa1d29c07), + 21: uint32(0xefe830f5), + 22: uint32(0x4d2d38e6), + 23: uint32(0xf0255dc1), + 24: uint32(0x4cdd2086), + 25: uint32(0x8470eb26), + 26: uint32(0x6382e9c6), + 27: uint32(0x021ecc5e), + 28: uint32(0x09686b3f), + 29: uint32(0x3ebaefc9), + 30: uint32(0x3c971814), + 31: uint32(0x6b6a70a1), + 32: uint32(0x687f3584), + 33: uint32(0x52a0e286), + 34: uint32(0xb79c5305), + 35: uint32(0xaa500737), + 36: uint32(0x3e07841c), + 37: uint32(0x7fdeae5c), + 38: uint32(0x8e7d44ec), + 39: uint32(0x5716f2b8), + 40: uint32(0xb03ada37), + 41: uint32(0xf0500c0d), + 42: uint32(0xf01c1f04), + 43: uint32(0x0200b3ff), + 44: uint32(0xae0cf51a), + 45: uint32(0x3cb574b2), + 46: uint32(0x25837a58), + 47: uint32(0xdc0921bd), + 48: uint32(0xd19113f9), + 49: uint32(0x7ca92ff6), + 50: uint32(0x94324773), + 51: uint32(0x22f54701), + 52: uint32(0x3ae5e581), + 53: uint32(0x37c2dadc), + 54: uint32(0xc8b57634), + 55: uint32(0x9af3dda7), + 56: uint32(0xa9446146), + 57: uint32(0x0fd0030e), + 58: uint32(0xecc8c73e), + 59: uint32(0xa4751e41), + 60: uint32(0xe238cd99), + 61: uint32(0x3bea0e2f), + 62: uint32(0x3280bba1), + 63: uint32(0x183eb331), + 64: uint32(0x4e548b38), + 65: uint32(0x4f6db908), + 66: uint32(0x6f420d03), + 67: uint32(0xf60a04bf), + 68: uint32(0x2cb81290), + 69: uint32(0x24977c79), + 70: uint32(0x5679b072), + 71: uint32(0xbcaf89af), + 72: uint32(0xde9a771f), + 73: uint32(0xd9930810), + 74: uint32(0xb38bae12), + 75: uint32(0xdccf3f2e), + 76: uint32(0x5512721f), + 77: uint32(0x2e6b7124), + 78: uint32(0x501adde6), + 79: uint32(0x9f84cd87), + 80: uint32(0x7a584718), + 81: uint32(0x7408da17), + 82: uint32(0xbc9f9abc), + 83: uint32(0xe94b7d8c), + 84: uint32(0xec7aec3a), + 85: uint32(0xdb851dfa), + 86: uint32(0x63094366), + 87: uint32(0xc464c3d2), + 88: uint32(0xef1c1847), + 89: uint32(0x3215d908), + 90: uint32(0xdd433b37), + 91: uint32(0x24c2ba16), + 92: uint32(0x12a14d43), + 93: uint32(0x2a65c451), + 94: uint32(0x50940002), + 95: uint32(0x133ae4dd), + 96: uint32(0x71dff89e), + 97: uint32(0x10314e55), + 98: uint32(0x81ac77d6), + 99: uint32(0x5f11199b), + 100: uint32(0x043556f1), + 101: uint32(0xd7a3c76b), + 102: uint32(0x3c11183b), + 103: uint32(0x5924a509), + 104: uint32(0xf28fe6ed), + 105: uint32(0x97f1fbfa), + 106: uint32(0x9ebabf2c), + 107: uint32(0x1e153c6e), + 108: uint32(0x86e34570), + 109: uint32(0xeae96fb1), + 110: uint32(0x860e5e0a), + 111: uint32(0x5a3e2ab3), + 112: uint32(0x771fe71c), + 113: uint32(0x4e3d06fa), + 114: uint32(0x2965dcb9), + 115: uint32(0x99e71d0f), + 116: uint32(0x803e89d6), + 117: uint32(0x5266c825), + 118: uint32(0x2e4cc978), + 119: uint32(0x9c10b36a), + 120: uint32(0xc6150eba), + 121: uint32(0x94e2ea78), + 122: uint32(0xa5fc3c53), + 123: uint32(0x1e0a2df4), + 124: uint32(0xf2f74ea7), + 125: uint32(0x361d2b3d), + 126: uint32(0x1939260f), + 127: uint32(0x19c27960), + 128: uint32(0x5223a708), + 129: uint32(0xf71312b6), + 130: uint32(0xebadfe6e), + 131: uint32(0xeac31f66), + 132: uint32(0xe3bc4595), + 133: uint32(0xa67bc883), + 134: uint32(0xb17f37d1), + 135: uint32(0x018cff28), + 136: uint32(0xc332ddef), + 137: uint32(0xbe6c5aa5), + 138: uint32(0x65582185), + 139: uint32(0x68ab9802), + 140: uint32(0xeecea50f), + 141: uint32(0xdb2f953b), + 142: uint32(0x2aef7dad), + 143: uint32(0x5b6e2f84), + 144: uint32(0x1521b628), + 145: uint32(0x29076170), + 146: uint32(0xecdd4775), + 147: uint32(0x619f1510), + 148: uint32(0x13cca830), + 149: uint32(0xeb61bd96), + 150: uint32(0x0334fe1e), + 151: uint32(0xaa0363cf), + 152: uint32(0xb5735c90), + 153: uint32(0x4c70a239), + 154: uint32(0xd59e9e0b), + 155: uint32(0xcbaade14), + 156: uint32(0xeecc86bc), + 157: uint32(0x60622ca7), + 158: uint32(0x9cab5cab), + 159: uint32(0xb2f3846e), + 160: uint32(0x648b1eaf), + 161: uint32(0x19bdf0ca), + 162: uint32(0xa02369b9), + 163: uint32(0x655abb50), + 164: uint32(0x40685a32), + 165: uint32(0x3c2ab4b3), + 166: uint32(0x319ee9d5), + 167: uint32(0xc021b8f7), + 168: uint32(0x9b540b19), + 169: uint32(0x875fa099), + 170: uint32(0x95f7997e), + 171: uint32(0x623d7da8), + 172: uint32(0xf837889a), + 173: uint32(0x97e32d77), + 174: uint32(0x11ed935f), + 175: uint32(0x16681281), + 176: uint32(0x0e358829), + 177: uint32(0xc7e61fd6), + 178: uint32(0x96dedfa1), + 179: uint32(0x7858ba99), + 180: uint32(0x57f584a5), + 181: uint32(0x1b227263), + 182: uint32(0x9b83c3ff), + 183: uint32(0x1ac24696), + 184: uint32(0xcdb30aeb), + 185: uint32(0x532e3054), + 186: uint32(0x8fd948e4), + 187: uint32(0x6dbc3128), + 188: uint32(0x58ebf2ef), + 189: uint32(0x34c6ffea), + 190: uint32(0xfe28ed61), + 191: uint32(0xee7c3c73), + 192: uint32(0x5d4a14d9), + 193: uint32(0xe864b7e3), + 194: uint32(0x42105d14), + 195: uint32(0x203e13e0), + 196: uint32(0x45eee2b6), + 197: uint32(0xa3aaabea), + 198: uint32(0xdb6c4f15), + 199: uint32(0xfacb4fd0), + 200: uint32(0xc742f442), + 201: uint32(0xef6abbb5), + 202: uint32(0x654f3b1d), + 203: uint32(0x41cd2105), + 204: uint32(0xd81e799e), + 205: uint32(0x86854dc7), + 206: uint32(0xe44b476a), + 207: uint32(0x3d816250), + 208: uint32(0xcf62a1f2), + 209: uint32(0x5b8d2646), + 210: uint32(0xfc8883a0), + 211: uint32(0xc1c7b6a3), + 212: uint32(0x7f1524c3), + 213: uint32(0x69cb7492), + 214: uint32(0x47848a0b), + 215: uint32(0x5692b285), + 216: uint32(0x095bbf00), + 217: uint32(0xad19489d), + 218: uint32(0x1462b174), + 219: uint32(0x23820e00), + 220: uint32(0x58428d2a), + 221: uint32(0x0c55f5ea), + 222: uint32(0x1dadf43e), + 223: uint32(0x233f7061), + 224: uint32(0x3372f092), + 225: uint32(0x8d937e41), + 226: uint32(0xd65fecf1), + 227: uint32(0x6c223bdb), + 228: uint32(0x7cde3759), + 229: uint32(0xcbee7460), + 230: uint32(0x4085f2a7), + 231: uint32(0xce77326e), + 232: uint32(0xa6078084), + 233: uint32(0x19f8509e), + 234: uint32(0xe8efd855), + 235: uint32(0x61d99735), + 236: uint32(0xa969a7aa), + 237: uint32(0xc50c06c2), + 238: uint32(0x5a04abfc), + 239: uint32(0x800bcadc), + 240: uint32(0x9e447a2e), + 241: uint32(0xc3453484), + 242: uint32(0xfdd56705), + 243: uint32(0x0e1e9ec9), + 244: uint32(0xdb73dbd3), + 245: uint32(0x105588cd), + 246: uint32(0x675fda79), + 247: uint32(0xe3674340), + 248: uint32(0xc5c43465), + 249: uint32(0x713e38d8), + 250: uint32(0x3d28f89e), + 251: uint32(0xf16dff20), + 252: uint32(0x153e21e7), + 253: uint32(0x8fb03d4a), + 254: uint32(0xe6e39f2b), + 255: uint32(0xdb83adf7), + }, + 2: { + 0: uint32(0xe93d5a68), + 1: uint32(0x948140f7), + 2: uint32(0xf64c261c), + 3: uint32(0x94692934), + 4: uint32(0x411520f7), + 5: uint32(0x7602d4f7), + 6: uint32(0xbcf46b2e), + 7: uint32(0xd4a20068), + 8: uint32(0xd4082471), + 9: uint32(0x3320f46a), + 10: uint32(0x43b7d4b7), + 11: uint32(0x500061af), + 12: uint32(0x1e39f62e), + 13: uint32(0x97244546), + 14: uint32(0x14214f74), + 15: uint32(0xbf8b8840), + 16: uint32(0x4d95fc1d), + 17: uint32(0x96b591af), + 18: uint32(0x70f4ddd3), + 19: uint32(0x66a02f45), + 20: uint32(0xbfbc09ec), + 21: uint32(0x03bd9785), + 22: uint32(0x7fac6dd0), + 23: uint32(0x31cb8504), + 24: uint32(0x96eb27b3), + 25: uint32(0x55fd3941), + 26: uint32(0xda2547e6), + 27: uint32(0xabca0a9a), + 28: uint32(0x28507825), + 29: uint32(0x530429f4), + 30: uint32(0x0a2c86da), + 31: uint32(0xe9b66dfb), + 32: uint32(0x68dc1462), + 33: uint32(0xd7486900), + 34: uint32(0x680ec0a4), + 35: uint32(0x27a18dee), + 36: uint32(0x4f3ffea2), + 37: uint32(0xe887ad8c), + 38: uint32(0xb58ce006), + 39: uint32(0x7af4d6b6), + 40: uint32(0xaace1e7c), + 41: uint32(0xd3375fec), + 42: uint32(0xce78a399), + 43: uint32(0x406b2a42), + 44: uint32(0x20fe9e35), + 45: uint32(0xd9f385b9), + 46: uint32(0xee39d7ab), + 47: uint32(0x3b124e8b), + 48: uint32(0x1dc9faf7), + 49: uint32(0x4b6d1856), + 50: uint32(0x26a36631), + 51: uint32(0xeae397b2), + 52: uint32(0x3a6efa74), + 53: uint32(0xdd5b4332), + 54: uint32(0x6841e7f7), + 55: uint32(0xca7820fb), + 56: uint32(0xfb0af54e), + 57: uint32(0xd8feb397), + 58: uint32(0x454056ac), + 59: uint32(0xba489527), + 60: uint32(0x55533a3a), + 61: uint32(0x20838d87), + 62: uint32(0xfe6ba9b7), + 63: uint32(0xd096954b), + 64: uint32(0x55a867bc), + 65: uint32(0xa1159a58), + 66: uint32(0xcca92963), + 67: uint32(0x99e1db33), + 68: uint32(0xa62a4a56), + 69: uint32(0x3f3125f9), + 70: uint32(0x5ef47e1c), + 71: uint32(0x9029317c), + 72: uint32(0xfdf8e802), + 73: uint32(0x04272f70), + 74: uint32(0x80bb155c), + 75: uint32(0x05282ce3), + 76: uint32(0x95c11548), + 77: uint32(0xe4c66d22), + 78: uint32(0x48c1133f), + 79: uint32(0xc70f86dc), + 80: uint32(0x07f9c9ee), + 81: uint32(0x41041f0f), + 82: uint32(0x404779a4), + 83: uint32(0x5d886e17), + 84: uint32(0x325f51eb), + 85: uint32(0xd59bc0d1), + 86: uint32(0xf2bcc18f), + 87: uint32(0x41113564), + 88: uint32(0x257b7834), + 89: uint32(0x602a9c60), + 90: uint32(0xdff8e8a3), + 91: uint32(0x1f636c1b), + 92: uint32(0x0e12b4c2), + 93: uint32(0x02e1329e), + 94: uint32(0xaf664fd1), + 95: uint32(0xcad18115), + 96: uint32(0x6b2395e0), + 97: uint32(0x333e92e1), + 98: uint32(0x3b240b62), + 99: uint32(0xeebeb922), + 100: uint32(0x85b2a20e), + 101: uint32(0xe6ba0d99), + 102: uint32(0xde720c8c), + 103: uint32(0x2da2f728), + 104: uint32(0xd0127845), + 105: uint32(0x95b794fd), + 106: uint32(0x647d0862), + 107: uint32(0xe7ccf5f0), + 108: uint32(0x5449a36f), + 109: uint32(0x877d48fa), + 110: uint32(0xc39dfd27), + 111: uint32(0xf33e8d1e), + 112: uint32(0x0a476341), + 113: uint32(0x992eff74), + 114: uint32(0x3a6f6eab), + 115: uint32(0xf4f8fd37), + 116: uint32(0xa812dc60), + 117: uint32(0xa1ebddf8), + 118: uint32(0x991be14c), + 119: uint32(0xdb6e6b0d), + 120: uint32(0xc67b5510), + 121: uint32(0x6d672c37), + 122: uint32(0x2765d43b), + 123: uint32(0xdcd0e804), + 124: uint32(0xf1290dc7), + 125: uint32(0xcc00ffa3), + 126: uint32(0xb5390f92), + 127: uint32(0x690fed0b), + 128: uint32(0x667b9ffb), + 129: uint32(0xcedb7d9c), + 130: uint32(0xa091cf0b), + 131: uint32(0xd9155ea3), + 132: uint32(0xbb132f88), + 133: uint32(0x515bad24), + 134: uint32(0x7b9479bf), + 135: uint32(0x763bd6eb), + 136: uint32(0x37392eb3), + 137: uint32(0xcc115979), + 138: uint32(0x8026e297), + 139: uint32(0xf42e312d), + 140: uint32(0x6842ada7), + 141: uint32(0xc66a2b3b), + 142: uint32(0x12754ccc), + 143: uint32(0x782ef11c), + 144: uint32(0x6a124237), + 145: uint32(0xb79251e7), + 146: uint32(0x06a1bbe6), + 147: uint32(0x4bfb6350), + 148: uint32(0x1a6b1018), + 149: uint32(0x11caedfa), + 150: uint32(0x3d25bdd8), + 151: uint32(0xe2e1c3c9), + 152: uint32(0x44421659), + 153: uint32(0x0a121386), + 154: uint32(0xd90cec6e), + 155: uint32(0xd5abea2a), + 156: uint32(0x64af674e), + 157: uint32(0xda86a85f), + 158: uint32(0xbebfe988), + 159: uint32(0x64e4c3fe), + 160: uint32(0x9dbc8057), + 161: uint32(0xf0f7c086), + 162: uint32(0x60787bf8), + 163: uint32(0x6003604d), + 164: uint32(0xd1fd8346), + 165: uint32(0xf6381fb0), + 166: uint32(0x7745ae04), + 167: uint32(0xd736fccc), + 168: uint32(0x83426b33), + 169: uint32(0xf01eab71), + 170: uint32(0xb0804187), + 171: uint32(0x3c005e5f), + 172: uint32(0x77a057be), + 173: uint32(0xbde8ae24), + 174: uint32(0x55464299), + 175: uint32(0xbf582e61), + 176: uint32(0x4e58f48f), + 177: uint32(0xf2ddfda2), + 178: uint32(0xf474ef38), + 179: uint32(0x8789bdc2), + 180: uint32(0x5366f9c3), + 181: uint32(0xc8b38e74), + 182: uint32(0xb475f255), + 183: uint32(0x46fcd9b9), + 184: uint32(0x7aeb2661), + 185: uint32(0x8b1ddf84), + 186: uint32(0x846a0e79), + 187: uint32(0x915f95e2), + 188: uint32(0x466e598e), + 189: uint32(0x20b45770), + 190: uint32(0x8cd55591), + 191: uint32(0xc902de4c), + 192: uint32(0xb90bace1), + 193: uint32(0xbb8205d0), + 194: uint32(0x11a86248), + 195: uint32(0x7574a99e), + 196: uint32(0xb77f19b6), + 197: uint32(0xe0a9dc09), + 198: uint32(0x662d09a1), + 199: uint32(0xc4324633), + 200: uint32(0xe85a1f02), + 201: uint32(0x09f0be8c), + 202: uint32(0x4a99a025), + 203: uint32(0x1d6efe10), + 204: uint32(0x1ab93d1d), + 205: uint32(0x0ba5a4df), + 206: uint32(0xa186f20f), + 207: uint32(0x2868f169), + 208: uint32(0xdcb7da83), + 209: uint32(0x573906fe), + 210: uint32(0xa1e2ce9b), + 211: uint32(0x4fcd7f52), + 212: uint32(0x50115e01), + 213: uint32(0xa70683fa), + 214: uint32(0xa002b5c4), + 215: uint32(0x0de6d027), + 216: uint32(0x9af88c27), + 217: uint32(0x773f8641), + 218: uint32(0xc3604c06), + 219: uint32(0x61a806b5), + 220: uint32(0xf0177a28), + 221: uint32(0xc0f586e0), + 222: uint32(0x006058aa), + 223: uint32(0x30dc7d62), + 224: uint32(0x11e69ed7), + 225: uint32(0x2338ea63), + 226: uint32(0x53c2dd94), + 227: uint32(0xc2c21634), + 228: uint32(0xbbcbee56), + 229: uint32(0x90bcb6de), + 230: uint32(0xebfc7da1), + 231: uint32(0xce591d76), + 232: uint32(0x6f05e409), + 233: uint32(0x4b7c0188), + 234: uint32(0x39720a3d), + 235: uint32(0x7c927c24), + 236: uint32(0x86e3725f), + 237: uint32(0x724d9db9), + 238: uint32(0x1ac15bb4), + 239: uint32(0xd39eb8fc), + 240: uint32(0xed545578), + 241: uint32(0x08fca5b5), + 242: uint32(0xd83d7cd3), + 243: uint32(0x4dad0fc4), + 244: uint32(0x1e50ef5e), + 245: uint32(0xb161e6f8), + 246: uint32(0xa28514d9), + 247: uint32(0x6c51133c), + 248: uint32(0x6fd5c7e7), + 249: uint32(0x56e14ec4), + 250: uint32(0x362abfce), + 251: uint32(0xddc6c837), + 252: uint32(0xd79a3234), + 253: uint32(0x92638212), + 254: uint32(0x670efa8e), + 255: uint32(0x406000e0), + }, + 3: { + 0: uint32(0x3a39ce37), + 1: uint32(0xd3faf5cf), + 2: uint32(0xabc27737), + 3: uint32(0x5ac52d1b), + 4: uint32(0x5cb0679e), + 5: uint32(0x4fa33742), + 6: uint32(0xd3822740), + 7: uint32(0x99bc9bbe), + 8: uint32(0xd5118e9d), + 9: uint32(0xbf0f7315), + 10: uint32(0xd62d1c7e), + 11: uint32(0xc700c47b), + 12: uint32(0xb78c1b6b), + 13: uint32(0x21a19045), + 14: uint32(0xb26eb1be), + 15: uint32(0x6a366eb4), + 16: uint32(0x5748ab2f), + 17: uint32(0xbc946e79), + 18: uint32(0xc6a376d2), + 19: uint32(0x6549c2c8), + 20: uint32(0x530ff8ee), + 21: uint32(0x468dde7d), + 22: uint32(0xd5730a1d), + 23: uint32(0x4cd04dc6), + 24: uint32(0x2939bbdb), + 25: uint32(0xa9ba4650), + 26: uint32(0xac9526e8), + 27: uint32(0xbe5ee304), + 28: uint32(0xa1fad5f0), + 29: uint32(0x6a2d519a), + 30: uint32(0x63ef8ce2), + 31: uint32(0x9a86ee22), + 32: uint32(0xc089c2b8), + 33: uint32(0x43242ef6), + 34: uint32(0xa51e03aa), + 35: uint32(0x9cf2d0a4), + 36: uint32(0x83c061ba), + 37: uint32(0x9be96a4d), + 38: uint32(0x8fe51550), + 39: uint32(0xba645bd6), + 40: uint32(0x2826a2f9), + 41: uint32(0xa73a3ae1), + 42: uint32(0x4ba99586), + 43: uint32(0xef5562e9), + 44: uint32(0xc72fefd3), + 45: uint32(0xf752f7da), + 46: uint32(0x3f046f69), + 47: uint32(0x77fa0a59), + 48: uint32(0x80e4a915), + 49: uint32(0x87b08601), + 50: uint32(0x9b09e6ad), + 51: uint32(0x3b3ee593), + 52: uint32(0xe990fd5a), + 53: uint32(0x9e34d797), + 54: uint32(0x2cf0b7d9), + 55: uint32(0x022b8b51), + 56: uint32(0x96d5ac3a), + 57: uint32(0x017da67d), + 58: uint32(0xd1cf3ed6), + 59: uint32(0x7c7d2d28), + 60: uint32(0x1f9f25cf), + 61: uint32(0xadf2b89b), + 62: uint32(0x5ad6b472), + 63: uint32(0x5a88f54c), + 64: uint32(0xe029ac71), + 65: uint32(0xe019a5e6), + 66: uint32(0x47b0acfd), + 67: uint32(0xed93fa9b), + 68: uint32(0xe8d3c48d), + 69: uint32(0x283b57cc), + 70: uint32(0xf8d56629), + 71: uint32(0x79132e28), + 72: uint32(0x785f0191), + 73: uint32(0xed756055), + 74: uint32(0xf7960e44), + 75: uint32(0xe3d35e8c), + 76: uint32(0x15056dd4), + 77: uint32(0x88f46dba), + 78: uint32(0x03a16125), + 79: uint32(0x0564f0bd), + 80: uint32(0xc3eb9e15), + 81: uint32(0x3c9057a2), + 82: uint32(0x97271aec), + 83: uint32(0xa93a072a), + 84: uint32(0x1b3f6d9b), + 85: uint32(0x1e6321f5), + 86: uint32(0xf59c66fb), + 87: uint32(0x26dcf319), + 88: uint32(0x7533d928), + 89: uint32(0xb155fdf5), + 90: uint32(0x03563482), + 91: uint32(0x8aba3cbb), + 92: uint32(0x28517711), + 93: uint32(0xc20ad9f8), + 94: uint32(0xabcc5167), + 95: uint32(0xccad925f), + 96: uint32(0x4de81751), + 97: uint32(0x3830dc8e), + 98: uint32(0x379d5862), + 99: uint32(0x9320f991), + 100: uint32(0xea7a90c2), + 101: uint32(0xfb3e7bce), + 102: uint32(0x5121ce64), + 103: uint32(0x774fbe32), + 104: uint32(0xa8b6e37e), + 105: uint32(0xc3293d46), + 106: uint32(0x48de5369), + 107: uint32(0x6413e680), + 108: uint32(0xa2ae0810), + 109: uint32(0xdd6db224), + 110: uint32(0x69852dfd), + 111: uint32(0x09072166), + 112: uint32(0xb39a460a), + 113: uint32(0x6445c0dd), + 114: uint32(0x586cdecf), + 115: uint32(0x1c20c8ae), + 116: uint32(0x5bbef7dd), + 117: uint32(0x1b588d40), + 118: uint32(0xccd2017f), + 119: uint32(0x6bb4e3bb), + 120: uint32(0xdda26a7e), + 121: uint32(0x3a59ff45), + 122: uint32(0x3e350a44), + 123: uint32(0xbcb4cdd5), + 124: uint32(0x72eacea8), + 125: uint32(0xfa6484bb), + 126: uint32(0x8d6612ae), + 127: uint32(0xbf3c6f47), + 128: uint32(0xd29be463), + 129: uint32(0x542f5d9e), + 130: uint32(0xaec2771b), + 131: uint32(0xf64e6370), + 132: uint32(0x740e0d8d), + 133: uint32(0xe75b1357), + 134: uint32(0xf8721671), + 135: uint32(0xaf537d5d), + 136: uint32(0x4040cb08), + 137: uint32(0x4eb4e2cc), + 138: uint32(0x34d2466a), + 139: uint32(0x0115af84), + 140: uint32(0xe1b00428), + 141: uint32(0x95983a1d), + 142: uint32(0x06b89fb4), + 143: uint32(0xce6ea048), + 144: uint32(0x6f3f3b82), + 145: uint32(0x3520ab82), + 146: uint32(0x011a1d4b), + 147: uint32(0x277227f8), + 148: uint32(0x611560b1), + 149: uint32(0xe7933fdc), + 150: uint32(0xbb3a792b), + 151: uint32(0x344525bd), + 152: uint32(0xa08839e1), + 153: uint32(0x51ce794b), + 154: uint32(0x2f32c9b7), + 155: uint32(0xa01fbac9), + 156: uint32(0xe01cc87e), + 157: uint32(0xbcc7d1f6), + 158: uint32(0xcf0111c3), + 159: uint32(0xa1e8aac7), + 160: uint32(0x1a908749), + 161: uint32(0xd44fbd9a), + 162: uint32(0xd0dadecb), + 163: uint32(0xd50ada38), + 164: uint32(0x0339c32a), + 165: uint32(0xc6913667), + 166: uint32(0x8df9317c), + 167: uint32(0xe0b12b4f), + 168: uint32(0xf79e59b7), + 169: uint32(0x43f5bb3a), + 170: uint32(0xf2d519ff), + 171: uint32(0x27d9459c), + 172: uint32(0xbf97222c), + 173: uint32(0x15e6fc2a), + 174: uint32(0x0f91fc71), + 175: uint32(0x9b941525), + 176: uint32(0xfae59361), + 177: uint32(0xceb69ceb), + 178: uint32(0xc2a86459), + 179: uint32(0x12baa8d1), + 180: uint32(0xb6c1075e), + 181: uint32(0xe3056a0c), + 182: uint32(0x10d25065), + 183: uint32(0xcb03a442), + 184: uint32(0xe0ec6e0e), + 185: uint32(0x1698db3b), + 186: uint32(0x4c98a0be), + 187: uint32(0x3278e964), + 188: uint32(0x9f1f9532), + 189: uint32(0xe0d392df), + 190: uint32(0xd3a0342b), + 191: uint32(0x8971f21e), + 192: uint32(0x1b0a7441), + 193: uint32(0x4ba3348c), + 194: uint32(0xc5be7120), + 195: uint32(0xc37632d8), + 196: uint32(0xdf359f8d), + 197: uint32(0x9b992f2e), + 198: uint32(0xe60b6f47), + 199: uint32(0x0fe3f11d), + 200: uint32(0xe54cda54), + 201: uint32(0x1edad891), + 202: uint32(0xce6279cf), + 203: uint32(0xcd3e7e6f), + 204: uint32(0x1618b166), + 205: uint32(0xfd2c1d05), + 206: uint32(0x848fd2c5), + 207: uint32(0xf6fb2299), + 208: uint32(0xf523f357), + 209: uint32(0xa6327623), + 210: uint32(0x93a83531), + 211: uint32(0x56cccd02), + 212: uint32(0xacf08162), + 213: uint32(0x5a75ebb5), + 214: uint32(0x6e163697), + 215: uint32(0x88d273cc), + 216: uint32(0xde966292), + 217: uint32(0x81b949d0), + 218: uint32(0x4c50901b), + 219: uint32(0x71c65614), + 220: uint32(0xe6c6c7bd), + 221: uint32(0x327a140a), + 222: uint32(0x45e1d006), + 223: uint32(0xc3f27b9a), + 224: uint32(0xc9aa53fd), + 225: uint32(0x62a80f00), + 226: uint32(0xbb25bfe2), + 227: uint32(0x35bdd2f6), + 228: uint32(0x71126905), + 229: uint32(0xb2040222), + 230: uint32(0xb6cbcf7c), + 231: uint32(0xcd769c2b), + 232: uint32(0x53113ec0), + 233: uint32(0x1640e3d3), + 234: uint32(0x38abbd60), + 235: uint32(0x2547adf0), + 236: uint32(0xba38209c), + 237: uint32(0xf746ce76), + 238: uint32(0x77afa1c5), + 239: uint32(0x20756060), + 240: uint32(0x85cbfe4e), + 241: uint32(0x8ae88dd8), + 242: uint32(0x7aaaf9b0), + 243: uint32(0x4cf9aa7e), + 244: uint32(0x1948c25c), + 245: uint32(0x02fb8a8c), + 246: uint32(0x01c36ae4), + 247: uint32(0xd6ebe1f9), + 248: uint32(0x90d4f869), + 249: uint32(0xa65cdea0), + 250: uint32(0x3f09252d), + 251: uint32(0xc208e69f), + 252: uint32(0xb74e6132), + 253: uint32(0xce77e25b), + 254: uint32(0x578fdfe3), + 255: uint32(0x3ac372e6), + }, + }, +})) + +var _BF_itoa64 = [65]uint8{'.', '/', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9'} + +var _BF_atoi64 = [96]uint8{ + 0: uint8(64), + 1: uint8(64), + 2: uint8(64), + 3: uint8(64), + 4: uint8(64), + 5: uint8(64), + 6: uint8(64), + 7: uint8(64), + 8: uint8(64), + 9: uint8(64), + 10: uint8(64), + 11: uint8(64), + 12: uint8(64), + 13: uint8(64), + 15: uint8(1), + 16: uint8(54), + 17: uint8(55), + 18: uint8(56), + 19: uint8(57), + 20: uint8(58), + 21: uint8(59), + 22: uint8(60), + 23: uint8(61), + 24: uint8(62), + 25: uint8(63), + 26: uint8(64), + 27: uint8(64), + 28: uint8(64), + 29: uint8(64), + 30: uint8(64), + 31: uint8(64), + 32: uint8(64), + 33: uint8(2), + 34: uint8(3), + 35: uint8(4), + 36: uint8(5), + 37: uint8(6), + 38: uint8(7), + 39: uint8(8), + 40: uint8(9), + 41: uint8(10), + 42: uint8(11), + 43: uint8(12), + 44: uint8(13), + 45: uint8(14), + 46: uint8(15), + 47: uint8(16), + 48: uint8(17), + 49: uint8(18), + 50: uint8(19), + 51: uint8(20), + 52: uint8(21), + 53: uint8(22), + 54: uint8(23), + 55: uint8(24), + 56: uint8(25), + 57: uint8(26), + 58: uint8(27), + 59: uint8(64), + 60: uint8(64), + 61: uint8(64), + 62: uint8(64), + 63: uint8(64), + 64: uint8(64), + 65: uint8(28), + 66: uint8(29), + 67: uint8(30), + 68: uint8(31), + 69: uint8(32), + 70: uint8(33), + 71: uint8(34), + 72: uint8(35), + 73: uint8(36), + 74: uint8(37), + 75: uint8(38), + 76: uint8(39), + 77: uint8(40), + 78: uint8(41), + 79: uint8(42), + 80: uint8(43), + 81: uint8(44), + 82: uint8(45), + 83: uint8(46), + 84: uint8(47), + 85: uint8(48), + 86: uint8(49), + 87: uint8(50), + 88: uint8(51), + 89: uint8(52), + 90: uint8(53), + 91: uint8(64), + 92: uint8(64), + 93: uint8(64), + 94: uint8(64), + 95: uint8(64), +} + +func _BF_decode(tls *TLS, dst uintptr, src uintptr, size int32) (r int32) { + var c1, c2, c3, c4, tmp uint32 + var dptr, end, sptr, v1 uintptr + _, _, _, _, _, _, _, _, _ = c1, c2, c3, c4, dptr, end, sptr, tmp, v1 + dptr = dst + end = dptr + uintptr(size) + sptr = src + for cond := true; cond; cond = dptr < end { + v1 = sptr + sptr = sptr + 1 + tmp = uint32(**(**uint8)(__ccgo_up(v1))) + tmp = tmp - uint32(0x20) + if tmp >= uint32(0x60) { + return -int32(1) + } + tmp = uint32(_BF_atoi64[tmp]) + if tmp > uint32(63) { + return -int32(1) + } + c1 = tmp + v1 = sptr + sptr = sptr + 1 + tmp = uint32(**(**uint8)(__ccgo_up(v1))) + tmp = tmp - uint32(0x20) + if tmp >= uint32(0x60) { + return -int32(1) + } + tmp = uint32(_BF_atoi64[tmp]) + if tmp > uint32(63) { + return -int32(1) + } + c2 = tmp + v1 = dptr + dptr = dptr + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(c1<>int32(4)) + if dptr >= end { + break + } + v1 = sptr + sptr = sptr + 1 + tmp = uint32(**(**uint8)(__ccgo_up(v1))) + tmp = tmp - uint32(0x20) + if tmp >= uint32(0x60) { + return -int32(1) + } + tmp = uint32(_BF_atoi64[tmp]) + if tmp > uint32(63) { + return -int32(1) + } + c3 = tmp + v1 = dptr + dptr = dptr + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(c2&uint32(0x0F)<>int32(2)) + if dptr >= end { + break + } + v1 = sptr + sptr = sptr + 1 + tmp = uint32(**(**uint8)(__ccgo_up(v1))) + tmp = tmp - uint32(0x20) + if tmp >= uint32(0x60) { + return -int32(1) + } + tmp = uint32(_BF_atoi64[tmp]) + if tmp > uint32(63) { + return -int32(1) + } + c4 = tmp + v1 = dptr + dptr = dptr + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(c3&uint32(0x03)<>int32(2)] + c1 = c1 & uint32(0x03) << int32(4) + if sptr >= end { + v1 = dptr + dptr = dptr + 1 + **(**uint8)(__ccgo_up(v1)) = _BF_itoa64[c1] + break + } + v1 = sptr + sptr = sptr + 1 + c2 = uint32(**(**uint8)(__ccgo_up(v1))) + c1 = c1 | c2>>int32(4) + v1 = dptr + dptr = dptr + 1 + **(**uint8)(__ccgo_up(v1)) = _BF_itoa64[c1] + c1 = c2 & uint32(0x0f) << int32(2) + if sptr >= end { + v1 = dptr + dptr = dptr + 1 + **(**uint8)(__ccgo_up(v1)) = _BF_itoa64[c1] + break + } + v1 = sptr + sptr = sptr + 1 + c2 = uint32(**(**uint8)(__ccgo_up(v1))) + c1 = c1 | c2>>int32(6) + v1 = dptr + dptr = dptr + 1 + **(**uint8)(__ccgo_up(v1)) = _BF_itoa64[c1] + v1 = dptr + dptr = dptr + 1 + **(**uint8)(__ccgo_up(v1)) = _BF_itoa64[c2&uint32(0x3f)] + } +} + +func _BF_swap(tls *TLS, x uintptr, count int32) { + var tmp TBF_word + var v1, v2 int32 + var v4 uintptr + _, _, _, _ = tmp, v1, v2, v4 + v1 = int32(1) + if *(*uint8)(unsafe.Pointer(&v1)) != 0 { + for { + tmp = **(**TBF_word)(__ccgo_up(x)) + tmp = tmp<>Int32FromInt32(16) + v4 = x + x += 4 + **(**TBF_word)(__ccgo_up(v4)) = tmp&uint32(0x00FF00FF)<>Int32FromInt32(8)&uint32(0x00FF00FF) + goto _3 + _3: + ; + count = count - 1 + v2 = count + if !(v2 != 0) { + break + } + } + } +} + +func _BF_encrypt(tls *TLS, ctx uintptr, L TBF_word, R TBF_word, start uintptr, end uintptr) (r TBF_word) { + var i int32 + var ptr, v2 uintptr + var tmp1, tmp2, tmp3, tmp4 TBF_word + _, _, _, _, _, _, _ = i, ptr, tmp1, tmp2, tmp3, tmp4, v2 + ptr = start + for cond := true; cond; cond = ptr < end { + L = L ^ **(**TBF_word)(__ccgo_up(ctx)) + i = 0 + for { + if !(i < int32(16)) { + break + } + tmp1 = L & uint32(0xFF) + tmp2 = L >> int32(8) + tmp2 = tmp2 & uint32(0xFF) + tmp3 = L >> int32(16) + tmp3 = tmp3 & uint32(0xFF) + tmp4 = L >> int32(24) + tmp1 = **(**TBF_word)(__ccgo_up(ctx + 72 + 3*1024 + uintptr(tmp1)*4)) + tmp2 = **(**TBF_word)(__ccgo_up(ctx + 72 + 2*1024 + uintptr(tmp2)*4)) + tmp3 = **(**TBF_word)(__ccgo_up(ctx + 72 + 1*1024 + uintptr(tmp3)*4)) + tmp3 = tmp3 + **(**TBF_word)(__ccgo_up(ctx + 72 + uintptr(tmp4)*4)) + tmp3 = tmp3 ^ tmp2 + R = R ^ **(**TBF_word)(__ccgo_up(ctx + uintptr(i+int32(1))*4)) + tmp3 = tmp3 + tmp1 + R = R ^ tmp3 + tmp1 = R & uint32(0xFF) + tmp2 = R >> int32(8) + tmp2 = tmp2 & uint32(0xFF) + tmp3 = R >> int32(16) + tmp3 = tmp3 & uint32(0xFF) + tmp4 = R >> int32(24) + tmp1 = **(**TBF_word)(__ccgo_up(ctx + 72 + 3*1024 + uintptr(tmp1)*4)) + tmp2 = **(**TBF_word)(__ccgo_up(ctx + 72 + 2*1024 + uintptr(tmp2)*4)) + tmp3 = **(**TBF_word)(__ccgo_up(ctx + 72 + 1*1024 + uintptr(tmp3)*4)) + tmp3 = tmp3 + **(**TBF_word)(__ccgo_up(ctx + 72 + uintptr(tmp4)*4)) + tmp3 = tmp3 ^ tmp2 + L = L ^ **(**TBF_word)(__ccgo_up(ctx + uintptr(i+int32(1)+int32(1))*4)) + tmp3 = tmp3 + tmp1 + L = L ^ tmp3 + goto _1 + _1: + ; + i = i + int32(2) + } + tmp4 = R + R = L + L = tmp4 ^ **(**TBF_word)(__ccgo_up(ctx + uintptr(Int32FromInt32(BF_N)+Int32FromInt32(1))*4)) + v2 = ptr + ptr += 4 + **(**TBF_word)(__ccgo_up(v2)) = L + v2 = ptr + ptr += 4 + **(**TBF_word)(__ccgo_up(v2)) = R + } + return L +} + +func _BF_set_key(tls *TLS, key uintptr, expanded uintptr, initial uintptr, flags uint8) { + bp := tls.Alloc(16) + defer tls.Free(16) + var bug, i, j uint32 + var diff, safety, sign, v1 TBF_word + var ptr uintptr + var _ /* tmp at bp+0 */ [2]TBF_word + _, _, _, _, _, _, _, _ = bug, diff, i, j, ptr, safety, sign, v1 + ptr = key + /* + * There was a sign extension bug in older revisions of this function. While + * we would have liked to simply fix the bug and move on, we have to provide + * a backwards compatibility feature (essentially the bug) for some systems and + * a safety measure for some others. The latter is needed because for certain + * multiple inputs to the buggy algorithm there exist easily found inputs to + * the correct algorithm that produce the same hash. Thus, we optionally + * deviate from the correct algorithm just enough to avoid such collisions. + * While the bug itself affected the majority of passwords containing + * characters with the 8th bit set (although only a percentage of those in a + * collision-producing way), the anti-collision safety measure affects + * only a subset of passwords containing the '\xff' character (not even all of + * those passwords, just some of them). This character is not found in valid + * UTF-8 sequences and is rarely used in popular 8-bit character encodings. + * Thus, the safety measure is unlikely to cause much annoyance, and is a + * reasonable tradeoff to use when authenticating against existing hashes that + * are not reliably known to have been computed with the correct algorithm. + * + * We use an approach that tries to minimize side-channel leaks of password + * information - that is, we mostly use fixed-cost bitwise operations instead + * of branches or table lookups. (One conditional branch based on password + * length remains. It is not part of the bug aftermath, though, and is + * difficult and possibly unreasonable to avoid given the use of C strings by + * the caller, which results in similar timing leaks anyway.) + * + * For actual implementation, we set an array index in the variable "bug" + * (0 means no bug, 1 means sign extension bug emulation) and a flag in the + * variable "safety" (bit 16 is set when the safety measure is requested). + * Valid combinations of settings are: + * + * Prefix "$2a$": bug = 0, safety = 0x10000 + * Prefix "$2b$": bug = 0, safety = 0 + * Prefix "$2x$": bug = 1, safety = 0 + * Prefix "$2y$": bug = 0, safety = 0 + */ + bug = Uint32FromInt32(Int32FromUint8(flags) & int32(1)) + safety = uint32(flags) & uint32(2) << int32(15) + v1 = Uint32FromInt32(0) + diff = v1 + sign = v1 + i = uint32(0) + for { + if !(i < Uint32FromInt32(Int32FromInt32(BF_N)+Int32FromInt32(2))) { + break + } + v1 = Uint32FromInt32(0) + (**(**[2]TBF_word)(__ccgo_up(bp)))[int32(1)] = v1 + (**(**[2]TBF_word)(__ccgo_up(bp)))[0] = v1 + j = uint32(0) + for { + if !(j < uint32(4)) { + break + } + **(**TBF_word)(__ccgo_up(bp)) <<= uint32(8) + **(**TBF_word)(__ccgo_up(bp)) |= uint32(uint8(**(**uint8)(__ccgo_up(ptr)))) /* correct */ + **(**TBF_word)(__ccgo_up(bp + 1*4)) <<= uint32(8) + **(**TBF_word)(__ccgo_up(bp + 1*4)) |= Uint32FromInt8(Int8FromUint8(**(**uint8)(__ccgo_up(ptr)))) /* bug */ + /* + * Sign extension in the first char has no effect - nothing to overwrite yet, + * and those extra 24 bits will be fully shifted out of the 32-bit word. For + * chars 2, 3, 4 in each four-char block, we set bit 7 of "sign" if sign + * extension in tmp[1] occurs. Once this flag is set, it remains set. + */ + if j != 0 { + sign = sign | (**(**[2]TBF_word)(__ccgo_up(bp)))[int32(1)]&uint32(0x80) + } + if !(**(**uint8)(__ccgo_up(ptr)) != 0) { + ptr = key + } else { + ptr = ptr + 1 + } + goto _4 + _4: + ; + j = j + 1 + } + diff = diff | ((**(**[2]TBF_word)(__ccgo_up(bp)))[0] ^ (**(**[2]TBF_word)(__ccgo_up(bp)))[int32(1)]) /* Non-zero on any differences */ + **(**TBF_word)(__ccgo_up(expanded + uintptr(i)*4)) = (**(**[2]TBF_word)(__ccgo_up(bp)))[bug] + **(**TBF_word)(__ccgo_up(initial + uintptr(i)*4)) = **(**TBF_word)(__ccgo_up(uintptr(unsafe.Pointer(&_BF_init_state)) + uintptr(i)*4)) ^ (**(**[2]TBF_word)(__ccgo_up(bp)))[bug] + goto _2 + _2: + ; + i = i + 1 + } + /* + * At this point, "diff" is zero iff the correct and buggy algorithms produced + * exactly the same result. If so and if "sign" is non-zero, which indicates + * that there was a non-benign sign extension, this means that we have a + * collision between the correctly computed hash for this password and a set of + * passwords that could be supplied to the buggy algorithm. Our safety measure + * is meant to protect from such many-buggy to one-correct collisions, by + * deviating from the correct algorithm in such cases. Let's check for this. + */ + diff = diff | diff>>int32(16) /* still zero iff exact match */ + diff = diff & uint32(0xffff) /* ditto */ + diff = diff + uint32(0xffff) /* bit 16 set iff "diff" was non-zero (on non-match) */ + sign = sign << uint32(9) /* move the non-benign sign extension flag to bit 16 */ + sign = sign & (^diff & safety) /* action needed? */ + /* + * If we have determined that we need to deviate from the correct algorithm, + * flip bit 16 in initial expanded key. (The choice of 16 is arbitrary, but + * let's stick to it now. It came out of the approach we used above, and it's + * not any worse than any other choice we could make.) + * + * It is crucial that we don't do the same to the expanded key used in the main + * Eksblowfish loop. By doing it to only one of these two, we deviate from a + * state that could be directly specified by a password to the buggy algorithm + * (and to the fully correct one as well, but that's a side-effect). + */ + **(**TBF_word)(__ccgo_up(initial)) ^= sign +} + +var _flags_by_subtype = [26]uint8{ + 0: uint8(2), + 1: uint8(4), + 23: uint8(1), + 24: uint8(4), +} + +func _BF_crypt(tls *TLS, key uintptr, setting uintptr, output uintptr, min TBF_word) (r uintptr) { + bp := tls.Alloc(4272) + defer tls.Free(4272) + var L, L1, R, count, tmp1, tmp2, tmp3, tmp4, v1 TBF_word + var done, i int32 + var ptr uintptr + var _ /* LR at bp+4264 */ [2]TBF_word + var _ /* data at bp+0 */ struct { + Fctx TBF_ctx + Fexpanded_key TBF_key + Fbinary struct { + Foutput [0][6]TBF_word + Fsalt [4]TBF_word + F__ccgo_pad2 [8]byte + } + } + _, _, _, _, _, _, _, _, _, _, _, _ = L, L1, R, count, done, i, ptr, tmp1, tmp2, tmp3, tmp4, v1 + if Int32FromUint8(**(**uint8)(__ccgo_up(setting))) != int32('$') || Int32FromUint8(**(**uint8)(__ccgo_up(setting + 1))) != int32('2') || Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(setting + 2)))-int32('a')) > uint32(25) || !(_flags_by_subtype[Int32FromUint8(**(**uint8)(__ccgo_up(setting + 2)))-int32('a')] != 0) || Int32FromUint8(**(**uint8)(__ccgo_up(setting + 3))) != int32('$') || Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(setting + 4)))-int32('0')) > uint32(1) || Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(setting + 5)))-int32('0')) > uint32(9) || Int32FromUint8(**(**uint8)(__ccgo_up(setting + 6))) != int32('$') { + return UintptrFromInt32(0) + } + count = Uint32FromInt32(1) << ((Int32FromUint8(**(**uint8)(__ccgo_up(setting + 4)))-int32('0'))*int32(10) + (Int32FromUint8(**(**uint8)(__ccgo_up(setting + 5))) - int32('0'))) + if count < min || _BF_decode(tls, bp+4240, setting+7, int32(16)) != 0 { + return UintptrFromInt32(0) + } + _BF_swap(tls, bp+4240, int32(4)) + _BF_set_key(tls, key, bp+4168, bp, _flags_by_subtype[Int32FromUint8(**(**uint8)(__ccgo_up(setting + 2)))-int32('a')]) + Xmemcpy(tls, bp+72, uintptr(unsafe.Pointer(&_BF_init_state))+72, uint64(4096)) + L = uint32(0) + R = uint32(0) + ptr = bp + for cond := true; cond; cond = int32(1) != 0 { + L = _BF_encrypt(tls, bp, L^**(**TBF_word)(__ccgo_up(bp + 4240)), R^**(**TBF_word)(__ccgo_up(bp + 4240 + 1*4)), ptr, ptr) + R = **(**TBF_word)(__ccgo_up(ptr + UintptrFromInt32(1)*4)) + ptr = ptr + uintptr(2)*4 + if ptr >= bp+uintptr(Int32FromInt32(BF_N)+Int32FromInt32(2)+Int32FromInt32(4)*Int32FromInt32(0x100))*4 { + break + } + L = _BF_encrypt(tls, bp, L^**(**TBF_word)(__ccgo_up(bp + 4240 + 2*4)), R^**(**TBF_word)(__ccgo_up(bp + 4240 + 3*4)), ptr, ptr) + R = **(**TBF_word)(__ccgo_up(ptr + UintptrFromInt32(1)*4)) + ptr = ptr + uintptr(2)*4 + } + for { + i = 0 + for { + if !(i < Int32FromInt32(BF_N)+Int32FromInt32(2)) { + break + } + **(**TBF_word)(__ccgo_up(bp + uintptr(i)*4)) ^= **(**TBF_word)(__ccgo_up(bp + 4168 + uintptr(i)*4)) + **(**TBF_word)(__ccgo_up(bp + uintptr(i+int32(1))*4)) ^= **(**TBF_word)(__ccgo_up(bp + 4168 + uintptr(i+int32(1))*4)) + goto _3 + _3: + ; + i = i + int32(2) + } + done = 0 + for cond := true; cond; cond = int32(1) != 0 { + _BF_encrypt(tls, bp, uint32(0), uint32(0), bp, bp+uintptr(Int32FromInt32(BF_N)+Int32FromInt32(2)+Int32FromInt32(4)*Int32FromInt32(0x100))*4) + if done != 0 { + break + } + done = int32(1) + tmp1 = **(**TBF_word)(__ccgo_up(bp + 4240)) + tmp2 = **(**TBF_word)(__ccgo_up(bp + 4240 + 1*4)) + tmp3 = **(**TBF_word)(__ccgo_up(bp + 4240 + 2*4)) + tmp4 = **(**TBF_word)(__ccgo_up(bp + 4240 + 3*4)) + i = 0 + for { + if !(i < int32(BF_N)) { + break + } + **(**TBF_word)(__ccgo_up(bp + uintptr(i)*4)) ^= tmp1 + **(**TBF_word)(__ccgo_up(bp + uintptr(i+int32(1))*4)) ^= tmp2 + **(**TBF_word)(__ccgo_up(bp + uintptr(i+int32(2))*4)) ^= tmp3 + **(**TBF_word)(__ccgo_up(bp + uintptr(i+int32(3))*4)) ^= tmp4 + goto _4 + _4: + ; + i = i + int32(4) + } + **(**TBF_word)(__ccgo_up(bp + 16*4)) ^= tmp1 + **(**TBF_word)(__ccgo_up(bp + 17*4)) ^= tmp2 + } + goto _2 + _2: + ; + count = count - 1 + v1 = count + if !(v1 != 0) { + break + } + } + i = 0 + for { + if !(i < int32(6)) { + break + } + L1 = _BF_magic_w[i] + (**(**[2]TBF_word)(__ccgo_up(bp + 4264)))[int32(1)] = _BF_magic_w[i+int32(1)] + count = uint32(64) + for { + L1 = _BF_encrypt(tls, bp, L1, (**(**[2]TBF_word)(__ccgo_up(bp + 4264)))[int32(1)], bp+4264, bp+4264) + goto _7 + _7: + ; + count = count - 1 + v1 = count + if !(v1 != 0) { + break + } + } + **(**TBF_word)(__ccgo_up(bp + 4240 + uintptr(i)*4)) = L1 + **(**TBF_word)(__ccgo_up(bp + 4240 + uintptr(i+int32(1))*4)) = (**(**[2]TBF_word)(__ccgo_up(bp + 4264)))[int32(1)] + goto _5 + _5: + ; + i = i + int32(2) + } + Xmemcpy(tls, output, setting, Uint64FromInt32(Int32FromInt32(7)+Int32FromInt32(22)-Int32FromInt32(1))) + **(**uint8)(__ccgo_up(output + uintptr(Int32FromInt32(7)+Int32FromInt32(22)-Int32FromInt32(1)))) = _BF_itoa64[Int32FromUint8(_BF_atoi64[Int32FromUint8(**(**uint8)(__ccgo_up(setting + uintptr(Int32FromInt32(7)+Int32FromInt32(22)-Int32FromInt32(1)))))-int32(0x20)])&int32(0x30)] + /* This has to be bug-compatible with the original implementation, so + * only encode 23 of the 24 bytes. :-) */ + _BF_swap(tls, bp+4240, int32(6)) + _BF_encode(tls, output+uintptr(Int32FromInt32(7)+Int32FromInt32(22)), bp+4240, int32(23)) + **(**uint8)(__ccgo_up(output + uintptr(Int32FromInt32(7)+Int32FromInt32(22)+Int32FromInt32(31)))) = uint8('\000') + return output +} + +// C documentation +// +// /* +// * Please preserve the runtime self-test. It serves two purposes at once: +// * +// * 1. We really can't afford the risk of producing incompatible hashes e.g. +// * when there's something like gcc bug 26587 again, whereas an application or +// * library integrating this code might not also integrate our external tests or +// * it might not run them after every build. Even if it does, the miscompile +// * might only occur on the production build, but not on a testing build (such +// * as because of different optimization settings). It is painful to recover +// * from incorrectly-computed hashes - merely fixing whatever broke is not +// * enough. Thus, a proactive measure like this self-test is needed. +// * +// * 2. We don't want to leave sensitive data from our actual password hash +// * computation on the stack or in registers. Previous revisions of the code +// * would do explicit cleanups, but simply running the self-test after hash +// * computation is more reliable. +// * +// * The performance cost of this quick self-test is around 0.6% at the "$2a$08" +// * setting. +// */ +func X__crypt_blowfish(tls *TLS, key uintptr, setting uintptr, output uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v setting=%v output=%v, (%v:)", tls, key, setting, output, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(384) + defer tls.Free(384) + var flags uint32 + var k, p, retval, test_hash, test_key, test_setting uintptr + var ok int32 + var _ /* ae at bp+96 */ TBF_key + var _ /* ai at bp+168 */ TBF_key + var _ /* buf at bp+0 */ struct { + Fs [30]uint8 + Fo [63]uint8 + } + var _ /* ye at bp+240 */ TBF_key + var _ /* yi at bp+312 */ TBF_key + _, _, _, _, _, _, _, _ = flags, k, ok, p, retval, test_hash, test_key, test_setting + test_key = __ccgo_ts + 18 + test_setting = __ccgo_ts + 28 + test_hash = uintptr(unsafe.Pointer(&_test_hashes)) + /* Hash the supplied password */ + retval = _BF_crypt(tls, key, setting, output, uint32(16)) + /* + * Do a quick self-test. It is important that we make both calls to BF_crypt() + * from the same scope such that they likely use the same stack locations, + * which makes the second call overwrite the first call's sensitive data on the + * stack and makes it more likely that any alignment related issues would be + * detected by the self-test. + */ + Xmemcpy(tls, bp, test_setting, uint64(30)) + if retval != 0 { + flags = uint32(_flags_by_subtype[Int32FromUint8(**(**uint8)(__ccgo_up(setting + 2)))-int32('a')]) + test_hash = uintptr(unsafe.Pointer(&_test_hashes)) + uintptr(flags&uint32(1))*34 + **(**uint8)(__ccgo_up(bp + 2)) = **(**uint8)(__ccgo_up(setting + 2)) + } + Xmemset(tls, bp+30, int32(0x55), uint64(63)) + **(**uint8)(__ccgo_up(bp + 30 + uintptr(Uint64FromInt64(63)-Uint64FromInt32(1)))) = uint8(0) + p = _BF_crypt(tls, test_key, bp, bp+30, uint32(1)) + ok = BoolInt32(p == bp+30 && !(Xmemcmp(tls, p, bp, Uint64FromInt32(Int32FromInt32(7)+Int32FromInt32(22))) != 0) && !(Xmemcmp(tls, p+uintptr(Int32FromInt32(7)+Int32FromInt32(22)), test_hash, Uint64FromInt32(Int32FromInt32(31)+Int32FromInt32(1)+Int32FromInt32(1)+Int32FromInt32(1))) != 0)) + k = __ccgo_ts + 58 + _BF_set_key(tls, k, bp+96, bp+168, uint8(2)) /* $2a$ */ + _BF_set_key(tls, k, bp+240, bp+312, uint8(4)) /* $2y$ */ + **(**TBF_word)(__ccgo_up(bp + 168)) ^= uint32(0x10000) /* undo the safety (for comparison) */ + ok = BoolInt32(ok != 0 && (**(**TBF_key)(__ccgo_up(bp + 168)))[0] == uint32(0xdb9c59bc) && (**(**TBF_key)(__ccgo_up(bp + 240)))[int32(17)] == uint32(0x33343500) && !(Xmemcmp(tls, bp+96, bp+240, uint64(72)) != 0) && !(Xmemcmp(tls, bp+168, bp+312, uint64(72)) != 0)) + if ok != 0 && retval != 0 { + return retval + } + return __ccgo_ts + 70 +} + +var _test_hashes = [2][34]uint8{ + 0: {'i', '1', 'D', '7', '0', '9', 'v', 'f', 'a', 'm', 'u', 'l', 'i', 'm', 'l', 'G', 'c', 'q', '0', 'q', 'q', '3', 'U', 'v', 'u', 'U', 'a', 's', 'v', 'E', 'a', 0, 'U'}, + 1: {'V', 'U', 'r', 'P', 'm', 'X', 'D', '6', 'q', '/', 'n', 'V', 'S', 'S', 'p', '7', 'p', 'N', 'D', 'h', 'C', 'R', '9', '0', '7', '1', 'I', 'f', 'I', 'R', 'e', 0, 'U'}, +} + +const _PASSWORD_EFMT1 = 95 + +type Texpanded_key = struct { + Fl [16]Tuint32_t + Fr [16]Tuint32_t +} + +var _key_shifts = [16]uint8{ + 0: uint8(1), + 1: uint8(1), + 2: uint8(2), + 3: uint8(2), + 4: uint8(2), + 5: uint8(2), + 6: uint8(2), + 7: uint8(2), + 8: uint8(1), + 9: uint8(2), + 10: uint8(2), + 11: uint8(2), + 12: uint8(2), + 13: uint8(2), + 14: uint8(2), + 15: uint8(1), +} + +var _psbox = [8][64]Tuint32_t{ + 0: { + 0: uint32(0x00808200), + 2: uint32(0x00008000), + 3: uint32(0x00808202), + 4: uint32(0x00808002), + 5: uint32(0x00008202), + 6: uint32(0x00000002), + 7: uint32(0x00008000), + 8: uint32(0x00000200), + 9: uint32(0x00808200), + 10: uint32(0x00808202), + 11: uint32(0x00000200), + 12: uint32(0x00800202), + 13: uint32(0x00808002), + 14: uint32(0x00800000), + 15: uint32(0x00000002), + 16: uint32(0x00000202), + 17: uint32(0x00800200), + 18: uint32(0x00800200), + 19: uint32(0x00008200), + 20: uint32(0x00008200), + 21: uint32(0x00808000), + 22: uint32(0x00808000), + 23: uint32(0x00800202), + 24: uint32(0x00008002), + 25: uint32(0x00800002), + 26: uint32(0x00800002), + 27: uint32(0x00008002), + 29: uint32(0x00000202), + 30: uint32(0x00008202), + 31: uint32(0x00800000), + 32: uint32(0x00008000), + 33: uint32(0x00808202), + 34: uint32(0x00000002), + 35: uint32(0x00808000), + 36: uint32(0x00808200), + 37: uint32(0x00800000), + 38: uint32(0x00800000), + 39: uint32(0x00000200), + 40: uint32(0x00808002), + 41: uint32(0x00008000), + 42: uint32(0x00008200), + 43: uint32(0x00800002), + 44: uint32(0x00000200), + 45: uint32(0x00000002), + 46: uint32(0x00800202), + 47: uint32(0x00008202), + 48: uint32(0x00808202), + 49: uint32(0x00008002), + 50: uint32(0x00808000), + 51: uint32(0x00800202), + 52: uint32(0x00800002), + 53: uint32(0x00000202), + 54: uint32(0x00008202), + 55: uint32(0x00808200), + 56: uint32(0x00000202), + 57: uint32(0x00800200), + 58: uint32(0x00800200), + 60: uint32(0x00008002), + 61: uint32(0x00008200), + 63: uint32(0x00808002), + }, + 1: { + 0: uint32(0x40084010), + 1: uint32(0x40004000), + 2: uint32(0x00004000), + 3: uint32(0x00084010), + 4: uint32(0x00080000), + 5: uint32(0x00000010), + 6: uint32(0x40080010), + 7: uint32(0x40004010), + 8: uint32(0x40000010), + 9: uint32(0x40084010), + 10: uint32(0x40084000), + 11: uint32(0x40000000), + 12: uint32(0x40004000), + 13: uint32(0x00080000), + 14: uint32(0x00000010), + 15: uint32(0x40080010), + 16: uint32(0x00084000), + 17: uint32(0x00080010), + 18: uint32(0x40004010), + 20: uint32(0x40000000), + 21: uint32(0x00004000), + 22: uint32(0x00084010), + 23: uint32(0x40080000), + 24: uint32(0x00080010), + 25: uint32(0x40000010), + 27: uint32(0x00084000), + 28: uint32(0x00004010), + 29: uint32(0x40084000), + 30: uint32(0x40080000), + 31: uint32(0x00004010), + 33: uint32(0x00084010), + 34: uint32(0x40080010), + 35: uint32(0x00080000), + 36: uint32(0x40004010), + 37: uint32(0x40080000), + 38: uint32(0x40084000), + 39: uint32(0x00004000), + 40: uint32(0x40080000), + 41: uint32(0x40004000), + 42: uint32(0x00000010), + 43: uint32(0x40084010), + 44: uint32(0x00084010), + 45: uint32(0x00000010), + 46: uint32(0x00004000), + 47: uint32(0x40000000), + 48: uint32(0x00004010), + 49: uint32(0x40084000), + 50: uint32(0x00080000), + 51: uint32(0x40000010), + 52: uint32(0x00080010), + 53: uint32(0x40004010), + 54: uint32(0x40000010), + 55: uint32(0x00080010), + 56: uint32(0x00084000), + 58: uint32(0x40004000), + 59: uint32(0x00004010), + 60: uint32(0x40000000), + 61: uint32(0x40080010), + 62: uint32(0x40084010), + 63: uint32(0x00084000), + }, + 2: { + 0: uint32(0x00000104), + 1: uint32(0x04010100), + 3: uint32(0x04010004), + 4: uint32(0x04000100), + 6: uint32(0x00010104), + 7: uint32(0x04000100), + 8: uint32(0x00010004), + 9: uint32(0x04000004), + 10: uint32(0x04000004), + 11: uint32(0x00010000), + 12: uint32(0x04010104), + 13: uint32(0x00010004), + 14: uint32(0x04010000), + 15: uint32(0x00000104), + 16: uint32(0x04000000), + 17: uint32(0x00000004), + 18: uint32(0x04010100), + 19: uint32(0x00000100), + 20: uint32(0x00010100), + 21: uint32(0x04010000), + 22: uint32(0x04010004), + 23: uint32(0x00010104), + 24: uint32(0x04000104), + 25: uint32(0x00010100), + 26: uint32(0x00010000), + 27: uint32(0x04000104), + 28: uint32(0x00000004), + 29: uint32(0x04010104), + 30: uint32(0x00000100), + 31: uint32(0x04000000), + 32: uint32(0x04010100), + 33: uint32(0x04000000), + 34: uint32(0x00010004), + 35: uint32(0x00000104), + 36: uint32(0x00010000), + 37: uint32(0x04010100), + 38: uint32(0x04000100), + 40: uint32(0x00000100), + 41: uint32(0x00010004), + 42: uint32(0x04010104), + 43: uint32(0x04000100), + 44: uint32(0x04000004), + 45: uint32(0x00000100), + 47: uint32(0x04010004), + 48: uint32(0x04000104), + 49: uint32(0x00010000), + 50: uint32(0x04000000), + 51: uint32(0x04010104), + 52: uint32(0x00000004), + 53: uint32(0x00010104), + 54: uint32(0x00010100), + 55: uint32(0x04000004), + 56: uint32(0x04010000), + 57: uint32(0x04000104), + 58: uint32(0x00000104), + 59: uint32(0x04010000), + 60: uint32(0x00010104), + 61: uint32(0x00000004), + 62: uint32(0x04010004), + 63: uint32(0x00010100), + }, + 3: { + 0: uint32(0x80401000), + 1: uint32(0x80001040), + 2: uint32(0x80001040), + 3: uint32(0x00000040), + 4: uint32(0x00401040), + 5: uint32(0x80400040), + 6: uint32(0x80400000), + 7: uint32(0x80001000), + 9: uint32(0x00401000), + 10: uint32(0x00401000), + 11: uint32(0x80401040), + 12: uint32(0x80000040), + 14: uint32(0x00400040), + 15: uint32(0x80400000), + 16: uint32(0x80000000), + 17: uint32(0x00001000), + 18: uint32(0x00400000), + 19: uint32(0x80401000), + 20: uint32(0x00000040), + 21: uint32(0x00400000), + 22: uint32(0x80001000), + 23: uint32(0x00001040), + 24: uint32(0x80400040), + 25: uint32(0x80000000), + 26: uint32(0x00001040), + 27: uint32(0x00400040), + 28: uint32(0x00001000), + 29: uint32(0x00401040), + 30: uint32(0x80401040), + 31: uint32(0x80000040), + 32: uint32(0x00400040), + 33: uint32(0x80400000), + 34: uint32(0x00401000), + 35: uint32(0x80401040), + 36: uint32(0x80000040), + 39: uint32(0x00401000), + 40: uint32(0x00001040), + 41: uint32(0x00400040), + 42: uint32(0x80400040), + 43: uint32(0x80000000), + 44: uint32(0x80401000), + 45: uint32(0x80001040), + 46: uint32(0x80001040), + 47: uint32(0x00000040), + 48: uint32(0x80401040), + 49: uint32(0x80000040), + 50: uint32(0x80000000), + 51: uint32(0x00001000), + 52: uint32(0x80400000), + 53: uint32(0x80001000), + 54: uint32(0x00401040), + 55: uint32(0x80400040), + 56: uint32(0x80001000), + 57: uint32(0x00001040), + 58: uint32(0x00400000), + 59: uint32(0x80401000), + 60: uint32(0x00000040), + 61: uint32(0x00400000), + 62: uint32(0x00001000), + 63: uint32(0x00401040), + }, + 4: { + 0: uint32(0x00000080), + 1: uint32(0x01040080), + 2: uint32(0x01040000), + 3: uint32(0x21000080), + 4: uint32(0x00040000), + 5: uint32(0x00000080), + 6: uint32(0x20000000), + 7: uint32(0x01040000), + 8: uint32(0x20040080), + 9: uint32(0x00040000), + 10: uint32(0x01000080), + 11: uint32(0x20040080), + 12: uint32(0x21000080), + 13: uint32(0x21040000), + 14: uint32(0x00040080), + 15: uint32(0x20000000), + 16: uint32(0x01000000), + 17: uint32(0x20040000), + 18: uint32(0x20040000), + 20: uint32(0x20000080), + 21: uint32(0x21040080), + 22: uint32(0x21040080), + 23: uint32(0x01000080), + 24: uint32(0x21040000), + 25: uint32(0x20000080), + 27: uint32(0x21000000), + 28: uint32(0x01040080), + 29: uint32(0x01000000), + 30: uint32(0x21000000), + 31: uint32(0x00040080), + 32: uint32(0x00040000), + 33: uint32(0x21000080), + 34: uint32(0x00000080), + 35: uint32(0x01000000), + 36: uint32(0x20000000), + 37: uint32(0x01040000), + 38: uint32(0x21000080), + 39: uint32(0x20040080), + 40: uint32(0x01000080), + 41: uint32(0x20000000), + 42: uint32(0x21040000), + 43: uint32(0x01040080), + 44: uint32(0x20040080), + 45: uint32(0x00000080), + 46: uint32(0x01000000), + 47: uint32(0x21040000), + 48: uint32(0x21040080), + 49: uint32(0x00040080), + 50: uint32(0x21000000), + 51: uint32(0x21040080), + 52: uint32(0x01040000), + 54: uint32(0x20040000), + 55: uint32(0x21000000), + 56: uint32(0x00040080), + 57: uint32(0x01000080), + 58: uint32(0x20000080), + 59: uint32(0x00040000), + 61: uint32(0x20040000), + 62: uint32(0x01040080), + 63: uint32(0x20000080), + }, + 5: { + 0: uint32(0x10000008), + 1: uint32(0x10200000), + 2: uint32(0x00002000), + 3: uint32(0x10202008), + 4: uint32(0x10200000), + 5: uint32(0x00000008), + 6: uint32(0x10202008), + 7: uint32(0x00200000), + 8: uint32(0x10002000), + 9: uint32(0x00202008), + 10: uint32(0x00200000), + 11: uint32(0x10000008), + 12: uint32(0x00200008), + 13: uint32(0x10002000), + 14: uint32(0x10000000), + 15: uint32(0x00002008), + 17: uint32(0x00200008), + 18: uint32(0x10002008), + 19: uint32(0x00002000), + 20: uint32(0x00202000), + 21: uint32(0x10002008), + 22: uint32(0x00000008), + 23: uint32(0x10200008), + 24: uint32(0x10200008), + 26: uint32(0x00202008), + 27: uint32(0x10202000), + 28: uint32(0x00002008), + 29: uint32(0x00202000), + 30: uint32(0x10202000), + 31: uint32(0x10000000), + 32: uint32(0x10002000), + 33: uint32(0x00000008), + 34: uint32(0x10200008), + 35: uint32(0x00202000), + 36: uint32(0x10202008), + 37: uint32(0x00200000), + 38: uint32(0x00002008), + 39: uint32(0x10000008), + 40: uint32(0x00200000), + 41: uint32(0x10002000), + 42: uint32(0x10000000), + 43: uint32(0x00002008), + 44: uint32(0x10000008), + 45: uint32(0x10202008), + 46: uint32(0x00202000), + 47: uint32(0x10200000), + 48: uint32(0x00202008), + 49: uint32(0x10202000), + 51: uint32(0x10200008), + 52: uint32(0x00000008), + 53: uint32(0x00002000), + 54: uint32(0x10200000), + 55: uint32(0x00202008), + 56: uint32(0x00002000), + 57: uint32(0x00200008), + 58: uint32(0x10002008), + 60: uint32(0x10202000), + 61: uint32(0x10000000), + 62: uint32(0x00200008), + 63: uint32(0x10002008), + }, + 6: { + 0: uint32(0x00100000), + 1: uint32(0x02100001), + 2: uint32(0x02000401), + 4: uint32(0x00000400), + 5: uint32(0x02000401), + 6: uint32(0x00100401), + 7: uint32(0x02100400), + 8: uint32(0x02100401), + 9: uint32(0x00100000), + 11: uint32(0x02000001), + 12: uint32(0x00000001), + 13: uint32(0x02000000), + 14: uint32(0x02100001), + 15: uint32(0x00000401), + 16: uint32(0x02000400), + 17: uint32(0x00100401), + 18: uint32(0x00100001), + 19: uint32(0x02000400), + 20: uint32(0x02000001), + 21: uint32(0x02100000), + 22: uint32(0x02100400), + 23: uint32(0x00100001), + 24: uint32(0x02100000), + 25: uint32(0x00000400), + 26: uint32(0x00000401), + 27: uint32(0x02100401), + 28: uint32(0x00100400), + 29: uint32(0x00000001), + 30: uint32(0x02000000), + 31: uint32(0x00100400), + 32: uint32(0x02000000), + 33: uint32(0x00100400), + 34: uint32(0x00100000), + 35: uint32(0x02000401), + 36: uint32(0x02000401), + 37: uint32(0x02100001), + 38: uint32(0x02100001), + 39: uint32(0x00000001), + 40: uint32(0x00100001), + 41: uint32(0x02000000), + 42: uint32(0x02000400), + 43: uint32(0x00100000), + 44: uint32(0x02100400), + 45: uint32(0x00000401), + 46: uint32(0x00100401), + 47: uint32(0x02100400), + 48: uint32(0x00000401), + 49: uint32(0x02000001), + 50: uint32(0x02100401), + 51: uint32(0x02100000), + 52: uint32(0x00100400), + 54: uint32(0x00000001), + 55: uint32(0x02100401), + 57: uint32(0x00100401), + 58: uint32(0x02100000), + 59: uint32(0x00000400), + 60: uint32(0x02000001), + 61: uint32(0x02000400), + 62: uint32(0x00000400), + 63: uint32(0x00100001), + }, + 7: { + 0: uint32(0x08000820), + 1: uint32(0x00000800), + 2: uint32(0x00020000), + 3: uint32(0x08020820), + 4: uint32(0x08000000), + 5: uint32(0x08000820), + 6: uint32(0x00000020), + 7: uint32(0x08000000), + 8: uint32(0x00020020), + 9: uint32(0x08020000), + 10: uint32(0x08020820), + 11: uint32(0x00020800), + 12: uint32(0x08020800), + 13: uint32(0x00020820), + 14: uint32(0x00000800), + 15: uint32(0x00000020), + 16: uint32(0x08020000), + 17: uint32(0x08000020), + 18: uint32(0x08000800), + 19: uint32(0x00000820), + 20: uint32(0x00020800), + 21: uint32(0x00020020), + 22: uint32(0x08020020), + 23: uint32(0x08020800), + 24: uint32(0x00000820), + 27: uint32(0x08020020), + 28: uint32(0x08000020), + 29: uint32(0x08000800), + 30: uint32(0x00020820), + 31: uint32(0x00020000), + 32: uint32(0x00020820), + 33: uint32(0x00020000), + 34: uint32(0x08020800), + 35: uint32(0x00000800), + 36: uint32(0x00000020), + 37: uint32(0x08020020), + 38: uint32(0x00000800), + 39: uint32(0x00020820), + 40: uint32(0x08000800), + 41: uint32(0x00000020), + 42: uint32(0x08000020), + 43: uint32(0x08020000), + 44: uint32(0x08020020), + 45: uint32(0x08000000), + 46: uint32(0x00020000), + 47: uint32(0x08000820), + 49: uint32(0x08020820), + 50: uint32(0x00020020), + 51: uint32(0x08000020), + 52: uint32(0x08020000), + 53: uint32(0x08000800), + 54: uint32(0x08000820), + 56: uint32(0x08020820), + 57: uint32(0x00020800), + 58: uint32(0x00020800), + 59: uint32(0x00000820), + 60: uint32(0x00000820), + 61: uint32(0x00020020), + 62: uint32(0x08000000), + 63: uint32(0x08020800), + }, +} +var _ip_maskl = [16][16]Tuint32_t{ + 0: { + 1: uint32(0x00010000), + 3: uint32(0x00010000), + 4: uint32(0x01000000), + 5: uint32(0x01010000), + 6: uint32(0x01000000), + 7: uint32(0x01010000), + 9: uint32(0x00010000), + 11: uint32(0x00010000), + 12: uint32(0x01000000), + 13: uint32(0x01010000), + 14: uint32(0x01000000), + 15: uint32(0x01010000), + }, + 1: { + 1: uint32(0x00000001), + 3: uint32(0x00000001), + 4: uint32(0x00000100), + 5: uint32(0x00000101), + 6: uint32(0x00000100), + 7: uint32(0x00000101), + 9: uint32(0x00000001), + 11: uint32(0x00000001), + 12: uint32(0x00000100), + 13: uint32(0x00000101), + 14: uint32(0x00000100), + 15: uint32(0x00000101), + }, + 2: { + 1: uint32(0x00020000), + 3: uint32(0x00020000), + 4: uint32(0x02000000), + 5: uint32(0x02020000), + 6: uint32(0x02000000), + 7: uint32(0x02020000), + 9: uint32(0x00020000), + 11: uint32(0x00020000), + 12: uint32(0x02000000), + 13: uint32(0x02020000), + 14: uint32(0x02000000), + 15: uint32(0x02020000), + }, + 3: { + 1: uint32(0x00000002), + 3: uint32(0x00000002), + 4: uint32(0x00000200), + 5: uint32(0x00000202), + 6: uint32(0x00000200), + 7: uint32(0x00000202), + 9: uint32(0x00000002), + 11: uint32(0x00000002), + 12: uint32(0x00000200), + 13: uint32(0x00000202), + 14: uint32(0x00000200), + 15: uint32(0x00000202), + }, + 4: { + 1: uint32(0x00040000), + 3: uint32(0x00040000), + 4: uint32(0x04000000), + 5: uint32(0x04040000), + 6: uint32(0x04000000), + 7: uint32(0x04040000), + 9: uint32(0x00040000), + 11: uint32(0x00040000), + 12: uint32(0x04000000), + 13: uint32(0x04040000), + 14: uint32(0x04000000), + 15: uint32(0x04040000), + }, + 5: { + 1: uint32(0x00000004), + 3: uint32(0x00000004), + 4: uint32(0x00000400), + 5: uint32(0x00000404), + 6: uint32(0x00000400), + 7: uint32(0x00000404), + 9: uint32(0x00000004), + 11: uint32(0x00000004), + 12: uint32(0x00000400), + 13: uint32(0x00000404), + 14: uint32(0x00000400), + 15: uint32(0x00000404), + }, + 6: { + 1: uint32(0x00080000), + 3: uint32(0x00080000), + 4: uint32(0x08000000), + 5: uint32(0x08080000), + 6: uint32(0x08000000), + 7: uint32(0x08080000), + 9: uint32(0x00080000), + 11: uint32(0x00080000), + 12: uint32(0x08000000), + 13: uint32(0x08080000), + 14: uint32(0x08000000), + 15: uint32(0x08080000), + }, + 7: { + 1: uint32(0x00000008), + 3: uint32(0x00000008), + 4: uint32(0x00000800), + 5: uint32(0x00000808), + 6: uint32(0x00000800), + 7: uint32(0x00000808), + 9: uint32(0x00000008), + 11: uint32(0x00000008), + 12: uint32(0x00000800), + 13: uint32(0x00000808), + 14: uint32(0x00000800), + 15: uint32(0x00000808), + }, + 8: { + 1: uint32(0x00100000), + 3: uint32(0x00100000), + 4: uint32(0x10000000), + 5: uint32(0x10100000), + 6: uint32(0x10000000), + 7: uint32(0x10100000), + 9: uint32(0x00100000), + 11: uint32(0x00100000), + 12: uint32(0x10000000), + 13: uint32(0x10100000), + 14: uint32(0x10000000), + 15: uint32(0x10100000), + }, + 9: { + 1: uint32(0x00000010), + 3: uint32(0x00000010), + 4: uint32(0x00001000), + 5: uint32(0x00001010), + 6: uint32(0x00001000), + 7: uint32(0x00001010), + 9: uint32(0x00000010), + 11: uint32(0x00000010), + 12: uint32(0x00001000), + 13: uint32(0x00001010), + 14: uint32(0x00001000), + 15: uint32(0x00001010), + }, + 10: { + 1: uint32(0x00200000), + 3: uint32(0x00200000), + 4: uint32(0x20000000), + 5: uint32(0x20200000), + 6: uint32(0x20000000), + 7: uint32(0x20200000), + 9: uint32(0x00200000), + 11: uint32(0x00200000), + 12: uint32(0x20000000), + 13: uint32(0x20200000), + 14: uint32(0x20000000), + 15: uint32(0x20200000), + }, + 11: { + 1: uint32(0x00000020), + 3: uint32(0x00000020), + 4: uint32(0x00002000), + 5: uint32(0x00002020), + 6: uint32(0x00002000), + 7: uint32(0x00002020), + 9: uint32(0x00000020), + 11: uint32(0x00000020), + 12: uint32(0x00002000), + 13: uint32(0x00002020), + 14: uint32(0x00002000), + 15: uint32(0x00002020), + }, + 12: { + 1: uint32(0x00400000), + 3: uint32(0x00400000), + 4: uint32(0x40000000), + 5: uint32(0x40400000), + 6: uint32(0x40000000), + 7: uint32(0x40400000), + 9: uint32(0x00400000), + 11: uint32(0x00400000), + 12: uint32(0x40000000), + 13: uint32(0x40400000), + 14: uint32(0x40000000), + 15: uint32(0x40400000), + }, + 13: { + 1: uint32(0x00000040), + 3: uint32(0x00000040), + 4: uint32(0x00004000), + 5: uint32(0x00004040), + 6: uint32(0x00004000), + 7: uint32(0x00004040), + 9: uint32(0x00000040), + 11: uint32(0x00000040), + 12: uint32(0x00004000), + 13: uint32(0x00004040), + 14: uint32(0x00004000), + 15: uint32(0x00004040), + }, + 14: { + 1: uint32(0x00800000), + 3: uint32(0x00800000), + 4: uint32(0x80000000), + 5: uint32(0x80800000), + 6: uint32(0x80000000), + 7: uint32(0x80800000), + 9: uint32(0x00800000), + 11: uint32(0x00800000), + 12: uint32(0x80000000), + 13: uint32(0x80800000), + 14: uint32(0x80000000), + 15: uint32(0x80800000), + }, + 15: { + 1: uint32(0x00000080), + 3: uint32(0x00000080), + 4: uint32(0x00008000), + 5: uint32(0x00008080), + 6: uint32(0x00008000), + 7: uint32(0x00008080), + 9: uint32(0x00000080), + 11: uint32(0x00000080), + 12: uint32(0x00008000), + 13: uint32(0x00008080), + 14: uint32(0x00008000), + 15: uint32(0x00008080), + }, +} +var _ip_maskr = [16][16]Tuint32_t{ + 0: { + 2: uint32(0x00010000), + 3: uint32(0x00010000), + 6: uint32(0x00010000), + 7: uint32(0x00010000), + 8: uint32(0x01000000), + 9: uint32(0x01000000), + 10: uint32(0x01010000), + 11: uint32(0x01010000), + 12: uint32(0x01000000), + 13: uint32(0x01000000), + 14: uint32(0x01010000), + 15: uint32(0x01010000), + }, + 1: { + 2: uint32(0x00000001), + 3: uint32(0x00000001), + 6: uint32(0x00000001), + 7: uint32(0x00000001), + 8: uint32(0x00000100), + 9: uint32(0x00000100), + 10: uint32(0x00000101), + 11: uint32(0x00000101), + 12: uint32(0x00000100), + 13: uint32(0x00000100), + 14: uint32(0x00000101), + 15: uint32(0x00000101), + }, + 2: { + 2: uint32(0x00020000), + 3: uint32(0x00020000), + 6: uint32(0x00020000), + 7: uint32(0x00020000), + 8: uint32(0x02000000), + 9: uint32(0x02000000), + 10: uint32(0x02020000), + 11: uint32(0x02020000), + 12: uint32(0x02000000), + 13: uint32(0x02000000), + 14: uint32(0x02020000), + 15: uint32(0x02020000), + }, + 3: { + 2: uint32(0x00000002), + 3: uint32(0x00000002), + 6: uint32(0x00000002), + 7: uint32(0x00000002), + 8: uint32(0x00000200), + 9: uint32(0x00000200), + 10: uint32(0x00000202), + 11: uint32(0x00000202), + 12: uint32(0x00000200), + 13: uint32(0x00000200), + 14: uint32(0x00000202), + 15: uint32(0x00000202), + }, + 4: { + 2: uint32(0x00040000), + 3: uint32(0x00040000), + 6: uint32(0x00040000), + 7: uint32(0x00040000), + 8: uint32(0x04000000), + 9: uint32(0x04000000), + 10: uint32(0x04040000), + 11: uint32(0x04040000), + 12: uint32(0x04000000), + 13: uint32(0x04000000), + 14: uint32(0x04040000), + 15: uint32(0x04040000), + }, + 5: { + 2: uint32(0x00000004), + 3: uint32(0x00000004), + 6: uint32(0x00000004), + 7: uint32(0x00000004), + 8: uint32(0x00000400), + 9: uint32(0x00000400), + 10: uint32(0x00000404), + 11: uint32(0x00000404), + 12: uint32(0x00000400), + 13: uint32(0x00000400), + 14: uint32(0x00000404), + 15: uint32(0x00000404), + }, + 6: { + 2: uint32(0x00080000), + 3: uint32(0x00080000), + 6: uint32(0x00080000), + 7: uint32(0x00080000), + 8: uint32(0x08000000), + 9: uint32(0x08000000), + 10: uint32(0x08080000), + 11: uint32(0x08080000), + 12: uint32(0x08000000), + 13: uint32(0x08000000), + 14: uint32(0x08080000), + 15: uint32(0x08080000), + }, + 7: { + 2: uint32(0x00000008), + 3: uint32(0x00000008), + 6: uint32(0x00000008), + 7: uint32(0x00000008), + 8: uint32(0x00000800), + 9: uint32(0x00000800), + 10: uint32(0x00000808), + 11: uint32(0x00000808), + 12: uint32(0x00000800), + 13: uint32(0x00000800), + 14: uint32(0x00000808), + 15: uint32(0x00000808), + }, + 8: { + 2: uint32(0x00100000), + 3: uint32(0x00100000), + 6: uint32(0x00100000), + 7: uint32(0x00100000), + 8: uint32(0x10000000), + 9: uint32(0x10000000), + 10: uint32(0x10100000), + 11: uint32(0x10100000), + 12: uint32(0x10000000), + 13: uint32(0x10000000), + 14: uint32(0x10100000), + 15: uint32(0x10100000), + }, + 9: { + 2: uint32(0x00000010), + 3: uint32(0x00000010), + 6: uint32(0x00000010), + 7: uint32(0x00000010), + 8: uint32(0x00001000), + 9: uint32(0x00001000), + 10: uint32(0x00001010), + 11: uint32(0x00001010), + 12: uint32(0x00001000), + 13: uint32(0x00001000), + 14: uint32(0x00001010), + 15: uint32(0x00001010), + }, + 10: { + 2: uint32(0x00200000), + 3: uint32(0x00200000), + 6: uint32(0x00200000), + 7: uint32(0x00200000), + 8: uint32(0x20000000), + 9: uint32(0x20000000), + 10: uint32(0x20200000), + 11: uint32(0x20200000), + 12: uint32(0x20000000), + 13: uint32(0x20000000), + 14: uint32(0x20200000), + 15: uint32(0x20200000), + }, + 11: { + 2: uint32(0x00000020), + 3: uint32(0x00000020), + 6: uint32(0x00000020), + 7: uint32(0x00000020), + 8: uint32(0x00002000), + 9: uint32(0x00002000), + 10: uint32(0x00002020), + 11: uint32(0x00002020), + 12: uint32(0x00002000), + 13: uint32(0x00002000), + 14: uint32(0x00002020), + 15: uint32(0x00002020), + }, + 12: { + 2: uint32(0x00400000), + 3: uint32(0x00400000), + 6: uint32(0x00400000), + 7: uint32(0x00400000), + 8: uint32(0x40000000), + 9: uint32(0x40000000), + 10: uint32(0x40400000), + 11: uint32(0x40400000), + 12: uint32(0x40000000), + 13: uint32(0x40000000), + 14: uint32(0x40400000), + 15: uint32(0x40400000), + }, + 13: { + 2: uint32(0x00000040), + 3: uint32(0x00000040), + 6: uint32(0x00000040), + 7: uint32(0x00000040), + 8: uint32(0x00004000), + 9: uint32(0x00004000), + 10: uint32(0x00004040), + 11: uint32(0x00004040), + 12: uint32(0x00004000), + 13: uint32(0x00004000), + 14: uint32(0x00004040), + 15: uint32(0x00004040), + }, + 14: { + 2: uint32(0x00800000), + 3: uint32(0x00800000), + 6: uint32(0x00800000), + 7: uint32(0x00800000), + 8: uint32(0x80000000), + 9: uint32(0x80000000), + 10: uint32(0x80800000), + 11: uint32(0x80800000), + 12: uint32(0x80000000), + 13: uint32(0x80000000), + 14: uint32(0x80800000), + 15: uint32(0x80800000), + }, + 15: { + 2: uint32(0x00000080), + 3: uint32(0x00000080), + 6: uint32(0x00000080), + 7: uint32(0x00000080), + 8: uint32(0x00008000), + 9: uint32(0x00008000), + 10: uint32(0x00008080), + 11: uint32(0x00008080), + 12: uint32(0x00008000), + 13: uint32(0x00008000), + 14: uint32(0x00008080), + 15: uint32(0x00008080), + }, +} +var _fp_maskl = [8][16]Tuint32_t{ + 0: { + 1: uint32(0x40000000), + 2: uint32(0x00400000), + 3: uint32(0x40400000), + 4: uint32(0x00004000), + 5: uint32(0x40004000), + 6: uint32(0x00404000), + 7: uint32(0x40404000), + 8: uint32(0x00000040), + 9: uint32(0x40000040), + 10: uint32(0x00400040), + 11: uint32(0x40400040), + 12: uint32(0x00004040), + 13: uint32(0x40004040), + 14: uint32(0x00404040), + 15: uint32(0x40404040), + }, + 1: { + 1: uint32(0x10000000), + 2: uint32(0x00100000), + 3: uint32(0x10100000), + 4: uint32(0x00001000), + 5: uint32(0x10001000), + 6: uint32(0x00101000), + 7: uint32(0x10101000), + 8: uint32(0x00000010), + 9: uint32(0x10000010), + 10: uint32(0x00100010), + 11: uint32(0x10100010), + 12: uint32(0x00001010), + 13: uint32(0x10001010), + 14: uint32(0x00101010), + 15: uint32(0x10101010), + }, + 2: { + 1: uint32(0x04000000), + 2: uint32(0x00040000), + 3: uint32(0x04040000), + 4: uint32(0x00000400), + 5: uint32(0x04000400), + 6: uint32(0x00040400), + 7: uint32(0x04040400), + 8: uint32(0x00000004), + 9: uint32(0x04000004), + 10: uint32(0x00040004), + 11: uint32(0x04040004), + 12: uint32(0x00000404), + 13: uint32(0x04000404), + 14: uint32(0x00040404), + 15: uint32(0x04040404), + }, + 3: { + 1: uint32(0x01000000), + 2: uint32(0x00010000), + 3: uint32(0x01010000), + 4: uint32(0x00000100), + 5: uint32(0x01000100), + 6: uint32(0x00010100), + 7: uint32(0x01010100), + 8: uint32(0x00000001), + 9: uint32(0x01000001), + 10: uint32(0x00010001), + 11: uint32(0x01010001), + 12: uint32(0x00000101), + 13: uint32(0x01000101), + 14: uint32(0x00010101), + 15: uint32(0x01010101), + }, + 4: { + 1: uint32(0x80000000), + 2: uint32(0x00800000), + 3: uint32(0x80800000), + 4: uint32(0x00008000), + 5: uint32(0x80008000), + 6: uint32(0x00808000), + 7: uint32(0x80808000), + 8: uint32(0x00000080), + 9: uint32(0x80000080), + 10: uint32(0x00800080), + 11: uint32(0x80800080), + 12: uint32(0x00008080), + 13: uint32(0x80008080), + 14: uint32(0x00808080), + 15: uint32(0x80808080), + }, + 5: { + 1: uint32(0x20000000), + 2: uint32(0x00200000), + 3: uint32(0x20200000), + 4: uint32(0x00002000), + 5: uint32(0x20002000), + 6: uint32(0x00202000), + 7: uint32(0x20202000), + 8: uint32(0x00000020), + 9: uint32(0x20000020), + 10: uint32(0x00200020), + 11: uint32(0x20200020), + 12: uint32(0x00002020), + 13: uint32(0x20002020), + 14: uint32(0x00202020), + 15: uint32(0x20202020), + }, + 6: { + 1: uint32(0x08000000), + 2: uint32(0x00080000), + 3: uint32(0x08080000), + 4: uint32(0x00000800), + 5: uint32(0x08000800), + 6: uint32(0x00080800), + 7: uint32(0x08080800), + 8: uint32(0x00000008), + 9: uint32(0x08000008), + 10: uint32(0x00080008), + 11: uint32(0x08080008), + 12: uint32(0x00000808), + 13: uint32(0x08000808), + 14: uint32(0x00080808), + 15: uint32(0x08080808), + }, + 7: { + 1: uint32(0x02000000), + 2: uint32(0x00020000), + 3: uint32(0x02020000), + 4: uint32(0x00000200), + 5: uint32(0x02000200), + 6: uint32(0x00020200), + 7: uint32(0x02020200), + 8: uint32(0x00000002), + 9: uint32(0x02000002), + 10: uint32(0x00020002), + 11: uint32(0x02020002), + 12: uint32(0x00000202), + 13: uint32(0x02000202), + 14: uint32(0x00020202), + 15: uint32(0x02020202), + }, +} +var _fp_maskr = [8][16]Tuint32_t{ + 0: { + 1: uint32(0x40000000), + 2: uint32(0x00400000), + 3: uint32(0x40400000), + 4: uint32(0x00004000), + 5: uint32(0x40004000), + 6: uint32(0x00404000), + 7: uint32(0x40404000), + 8: uint32(0x00000040), + 9: uint32(0x40000040), + 10: uint32(0x00400040), + 11: uint32(0x40400040), + 12: uint32(0x00004040), + 13: uint32(0x40004040), + 14: uint32(0x00404040), + 15: uint32(0x40404040), + }, + 1: { + 1: uint32(0x10000000), + 2: uint32(0x00100000), + 3: uint32(0x10100000), + 4: uint32(0x00001000), + 5: uint32(0x10001000), + 6: uint32(0x00101000), + 7: uint32(0x10101000), + 8: uint32(0x00000010), + 9: uint32(0x10000010), + 10: uint32(0x00100010), + 11: uint32(0x10100010), + 12: uint32(0x00001010), + 13: uint32(0x10001010), + 14: uint32(0x00101010), + 15: uint32(0x10101010), + }, + 2: { + 1: uint32(0x04000000), + 2: uint32(0x00040000), + 3: uint32(0x04040000), + 4: uint32(0x00000400), + 5: uint32(0x04000400), + 6: uint32(0x00040400), + 7: uint32(0x04040400), + 8: uint32(0x00000004), + 9: uint32(0x04000004), + 10: uint32(0x00040004), + 11: uint32(0x04040004), + 12: uint32(0x00000404), + 13: uint32(0x04000404), + 14: uint32(0x00040404), + 15: uint32(0x04040404), + }, + 3: { + 1: uint32(0x01000000), + 2: uint32(0x00010000), + 3: uint32(0x01010000), + 4: uint32(0x00000100), + 5: uint32(0x01000100), + 6: uint32(0x00010100), + 7: uint32(0x01010100), + 8: uint32(0x00000001), + 9: uint32(0x01000001), + 10: uint32(0x00010001), + 11: uint32(0x01010001), + 12: uint32(0x00000101), + 13: uint32(0x01000101), + 14: uint32(0x00010101), + 15: uint32(0x01010101), + }, + 4: { + 1: uint32(0x80000000), + 2: uint32(0x00800000), + 3: uint32(0x80800000), + 4: uint32(0x00008000), + 5: uint32(0x80008000), + 6: uint32(0x00808000), + 7: uint32(0x80808000), + 8: uint32(0x00000080), + 9: uint32(0x80000080), + 10: uint32(0x00800080), + 11: uint32(0x80800080), + 12: uint32(0x00008080), + 13: uint32(0x80008080), + 14: uint32(0x00808080), + 15: uint32(0x80808080), + }, + 5: { + 1: uint32(0x20000000), + 2: uint32(0x00200000), + 3: uint32(0x20200000), + 4: uint32(0x00002000), + 5: uint32(0x20002000), + 6: uint32(0x00202000), + 7: uint32(0x20202000), + 8: uint32(0x00000020), + 9: uint32(0x20000020), + 10: uint32(0x00200020), + 11: uint32(0x20200020), + 12: uint32(0x00002020), + 13: uint32(0x20002020), + 14: uint32(0x00202020), + 15: uint32(0x20202020), + }, + 6: { + 1: uint32(0x08000000), + 2: uint32(0x00080000), + 3: uint32(0x08080000), + 4: uint32(0x00000800), + 5: uint32(0x08000800), + 6: uint32(0x00080800), + 7: uint32(0x08080800), + 8: uint32(0x00000008), + 9: uint32(0x08000008), + 10: uint32(0x00080008), + 11: uint32(0x08080008), + 12: uint32(0x00000808), + 13: uint32(0x08000808), + 14: uint32(0x00080808), + 15: uint32(0x08080808), + }, + 7: { + 1: uint32(0x02000000), + 2: uint32(0x00020000), + 3: uint32(0x02020000), + 4: uint32(0x00000200), + 5: uint32(0x02000200), + 6: uint32(0x00020200), + 7: uint32(0x02020200), + 8: uint32(0x00000002), + 9: uint32(0x02000002), + 10: uint32(0x00020002), + 11: uint32(0x02020002), + 12: uint32(0x00000202), + 13: uint32(0x02000202), + 14: uint32(0x00020202), + 15: uint32(0x02020202), + }, +} +var _key_perm_maskl = [8][16]Tuint32_t{ + 0: { + 2: uint32(0x00000010), + 3: uint32(0x00000010), + 4: uint32(0x00001000), + 5: uint32(0x00001000), + 6: uint32(0x00001010), + 7: uint32(0x00001010), + 8: uint32(0x00100000), + 9: uint32(0x00100000), + 10: uint32(0x00100010), + 11: uint32(0x00100010), + 12: uint32(0x00101000), + 13: uint32(0x00101000), + 14: uint32(0x00101010), + 15: uint32(0x00101010), + }, + 1: { + 2: uint32(0x00000020), + 3: uint32(0x00000020), + 4: uint32(0x00002000), + 5: uint32(0x00002000), + 6: uint32(0x00002020), + 7: uint32(0x00002020), + 8: uint32(0x00200000), + 9: uint32(0x00200000), + 10: uint32(0x00200020), + 11: uint32(0x00200020), + 12: uint32(0x00202000), + 13: uint32(0x00202000), + 14: uint32(0x00202020), + 15: uint32(0x00202020), + }, + 2: { + 2: uint32(0x00000040), + 3: uint32(0x00000040), + 4: uint32(0x00004000), + 5: uint32(0x00004000), + 6: uint32(0x00004040), + 7: uint32(0x00004040), + 8: uint32(0x00400000), + 9: uint32(0x00400000), + 10: uint32(0x00400040), + 11: uint32(0x00400040), + 12: uint32(0x00404000), + 13: uint32(0x00404000), + 14: uint32(0x00404040), + 15: uint32(0x00404040), + }, + 3: { + 2: uint32(0x00000080), + 3: uint32(0x00000080), + 4: uint32(0x00008000), + 5: uint32(0x00008000), + 6: uint32(0x00008080), + 7: uint32(0x00008080), + 8: uint32(0x00800000), + 9: uint32(0x00800000), + 10: uint32(0x00800080), + 11: uint32(0x00800080), + 12: uint32(0x00808000), + 13: uint32(0x00808000), + 14: uint32(0x00808080), + 15: uint32(0x00808080), + }, + 4: { + 1: uint32(0x00000001), + 2: uint32(0x00000100), + 3: uint32(0x00000101), + 4: uint32(0x00010000), + 5: uint32(0x00010001), + 6: uint32(0x00010100), + 7: uint32(0x00010101), + 8: uint32(0x01000000), + 9: uint32(0x01000001), + 10: uint32(0x01000100), + 11: uint32(0x01000101), + 12: uint32(0x01010000), + 13: uint32(0x01010001), + 14: uint32(0x01010100), + 15: uint32(0x01010101), + }, + 5: { + 1: uint32(0x00000002), + 2: uint32(0x00000200), + 3: uint32(0x00000202), + 4: uint32(0x00020000), + 5: uint32(0x00020002), + 6: uint32(0x00020200), + 7: uint32(0x00020202), + 8: uint32(0x02000000), + 9: uint32(0x02000002), + 10: uint32(0x02000200), + 11: uint32(0x02000202), + 12: uint32(0x02020000), + 13: uint32(0x02020002), + 14: uint32(0x02020200), + 15: uint32(0x02020202), + }, + 6: { + 1: uint32(0x00000004), + 2: uint32(0x00000400), + 3: uint32(0x00000404), + 4: uint32(0x00040000), + 5: uint32(0x00040004), + 6: uint32(0x00040400), + 7: uint32(0x00040404), + 8: uint32(0x04000000), + 9: uint32(0x04000004), + 10: uint32(0x04000400), + 11: uint32(0x04000404), + 12: uint32(0x04040000), + 13: uint32(0x04040004), + 14: uint32(0x04040400), + 15: uint32(0x04040404), + }, + 7: { + 1: uint32(0x00000008), + 2: uint32(0x00000800), + 3: uint32(0x00000808), + 4: uint32(0x00080000), + 5: uint32(0x00080008), + 6: uint32(0x00080800), + 7: uint32(0x00080808), + 8: uint32(0x08000000), + 9: uint32(0x08000008), + 10: uint32(0x08000800), + 11: uint32(0x08000808), + 12: uint32(0x08080000), + 13: uint32(0x08080008), + 14: uint32(0x08080800), + 15: uint32(0x08080808), + }, +} +var _key_perm_maskr = [12][16]Tuint32_t{ + 0: { + 1: uint32(0x00000001), + 3: uint32(0x00000001), + 5: uint32(0x00000001), + 7: uint32(0x00000001), + 9: uint32(0x00000001), + 11: uint32(0x00000001), + 13: uint32(0x00000001), + 15: uint32(0x00000001), + }, + 1: { + 2: uint32(0x00100000), + 3: uint32(0x00100000), + 4: uint32(0x00001000), + 5: uint32(0x00001000), + 6: uint32(0x00101000), + 7: uint32(0x00101000), + 8: uint32(0x00000010), + 9: uint32(0x00000010), + 10: uint32(0x00100010), + 11: uint32(0x00100010), + 12: uint32(0x00001010), + 13: uint32(0x00001010), + 14: uint32(0x00101010), + 15: uint32(0x00101010), + }, + 2: { + 1: uint32(0x00000002), + 3: uint32(0x00000002), + 5: uint32(0x00000002), + 7: uint32(0x00000002), + 9: uint32(0x00000002), + 11: uint32(0x00000002), + 13: uint32(0x00000002), + 15: uint32(0x00000002), + }, + 3: { + 2: uint32(0x00200000), + 3: uint32(0x00200000), + 4: uint32(0x00002000), + 5: uint32(0x00002000), + 6: uint32(0x00202000), + 7: uint32(0x00202000), + 8: uint32(0x00000020), + 9: uint32(0x00000020), + 10: uint32(0x00200020), + 11: uint32(0x00200020), + 12: uint32(0x00002020), + 13: uint32(0x00002020), + 14: uint32(0x00202020), + 15: uint32(0x00202020), + }, + 4: { + 1: uint32(0x00000004), + 3: uint32(0x00000004), + 5: uint32(0x00000004), + 7: uint32(0x00000004), + 9: uint32(0x00000004), + 11: uint32(0x00000004), + 13: uint32(0x00000004), + 15: uint32(0x00000004), + }, + 5: { + 2: uint32(0x00400000), + 3: uint32(0x00400000), + 4: uint32(0x00004000), + 5: uint32(0x00004000), + 6: uint32(0x00404000), + 7: uint32(0x00404000), + 8: uint32(0x00000040), + 9: uint32(0x00000040), + 10: uint32(0x00400040), + 11: uint32(0x00400040), + 12: uint32(0x00004040), + 13: uint32(0x00004040), + 14: uint32(0x00404040), + 15: uint32(0x00404040), + }, + 6: { + 1: uint32(0x00000008), + 3: uint32(0x00000008), + 5: uint32(0x00000008), + 7: uint32(0x00000008), + 9: uint32(0x00000008), + 11: uint32(0x00000008), + 13: uint32(0x00000008), + 15: uint32(0x00000008), + }, + 7: { + 2: uint32(0x00800000), + 3: uint32(0x00800000), + 4: uint32(0x00008000), + 5: uint32(0x00008000), + 6: uint32(0x00808000), + 7: uint32(0x00808000), + 8: uint32(0x00000080), + 9: uint32(0x00000080), + 10: uint32(0x00800080), + 11: uint32(0x00800080), + 12: uint32(0x00008080), + 13: uint32(0x00008080), + 14: uint32(0x00808080), + 15: uint32(0x00808080), + }, + 8: { + 2: uint32(0x01000000), + 3: uint32(0x01000000), + 4: uint32(0x00010000), + 5: uint32(0x00010000), + 6: uint32(0x01010000), + 7: uint32(0x01010000), + 8: uint32(0x00000100), + 9: uint32(0x00000100), + 10: uint32(0x01000100), + 11: uint32(0x01000100), + 12: uint32(0x00010100), + 13: uint32(0x00010100), + 14: uint32(0x01010100), + 15: uint32(0x01010100), + }, + 9: { + 2: uint32(0x02000000), + 3: uint32(0x02000000), + 4: uint32(0x00020000), + 5: uint32(0x00020000), + 6: uint32(0x02020000), + 7: uint32(0x02020000), + 8: uint32(0x00000200), + 9: uint32(0x00000200), + 10: uint32(0x02000200), + 11: uint32(0x02000200), + 12: uint32(0x00020200), + 13: uint32(0x00020200), + 14: uint32(0x02020200), + 15: uint32(0x02020200), + }, + 10: { + 2: uint32(0x04000000), + 3: uint32(0x04000000), + 4: uint32(0x00040000), + 5: uint32(0x00040000), + 6: uint32(0x04040000), + 7: uint32(0x04040000), + 8: uint32(0x00000400), + 9: uint32(0x00000400), + 10: uint32(0x04000400), + 11: uint32(0x04000400), + 12: uint32(0x00040400), + 13: uint32(0x00040400), + 14: uint32(0x04040400), + 15: uint32(0x04040400), + }, + 11: { + 2: uint32(0x08000000), + 3: uint32(0x08000000), + 4: uint32(0x00080000), + 5: uint32(0x00080000), + 6: uint32(0x08080000), + 7: uint32(0x08080000), + 8: uint32(0x00000800), + 9: uint32(0x00000800), + 10: uint32(0x08000800), + 11: uint32(0x08000800), + 12: uint32(0x00080800), + 13: uint32(0x00080800), + 14: uint32(0x08080800), + 15: uint32(0x08080800), + }, +} +var _comp_maskl0 = [4][8]Tuint32_t{ + 0: { + 1: uint32(0x00020000), + 2: uint32(0x00000001), + 3: uint32(0x00020001), + 4: uint32(0x00080000), + 5: uint32(0x000a0000), + 6: uint32(0x00080001), + 7: uint32(0x000a0001), + }, + 1: { + 1: uint32(0x00001000), + 3: uint32(0x00001000), + 4: uint32(0x00000040), + 5: uint32(0x00001040), + 6: uint32(0x00000040), + 7: uint32(0x00001040), + }, + 2: { + 1: uint32(0x00400000), + 2: uint32(0x00000020), + 3: uint32(0x00400020), + 4: uint32(0x00008000), + 5: uint32(0x00408000), + 6: uint32(0x00008020), + 7: uint32(0x00408020), + }, + 3: { + 1: uint32(0x00100000), + 2: uint32(0x00000800), + 3: uint32(0x00100800), + 5: uint32(0x00100000), + 6: uint32(0x00000800), + 7: uint32(0x00100800), + }, +} +var _comp_maskr0 = [4][8]Tuint32_t{ + 0: { + 1: uint32(0x00200000), + 2: uint32(0x00020000), + 3: uint32(0x00220000), + 4: uint32(0x00000002), + 5: uint32(0x00200002), + 6: uint32(0x00020002), + 7: uint32(0x00220002), + }, + 1: { + 2: uint32(0x00100000), + 3: uint32(0x00100000), + 4: uint32(0x00000004), + 5: uint32(0x00000004), + 6: uint32(0x00100004), + 7: uint32(0x00100004), + }, + 2: { + 1: uint32(0x00004000), + 2: uint32(0x00000800), + 3: uint32(0x00004800), + 5: uint32(0x00004000), + 6: uint32(0x00000800), + 7: uint32(0x00004800), + }, + 3: { + 1: uint32(0x00400000), + 2: uint32(0x00008000), + 3: uint32(0x00408000), + 4: uint32(0x00000008), + 5: uint32(0x00400008), + 6: uint32(0x00008008), + 7: uint32(0x00408008), + }, +} +var _comp_maskl1 = [4][16]Tuint32_t{ + 0: { + 1: uint32(0x00000010), + 2: uint32(0x00004000), + 3: uint32(0x00004010), + 4: uint32(0x00040000), + 5: uint32(0x00040010), + 6: uint32(0x00044000), + 7: uint32(0x00044010), + 8: uint32(0x00000100), + 9: uint32(0x00000110), + 10: uint32(0x00004100), + 11: uint32(0x00004110), + 12: uint32(0x00040100), + 13: uint32(0x00040110), + 14: uint32(0x00044100), + 15: uint32(0x00044110), + }, + 1: { + 1: uint32(0x00800000), + 2: uint32(0x00000002), + 3: uint32(0x00800002), + 4: uint32(0x00000200), + 5: uint32(0x00800200), + 6: uint32(0x00000202), + 7: uint32(0x00800202), + 8: uint32(0x00200000), + 9: uint32(0x00a00000), + 10: uint32(0x00200002), + 11: uint32(0x00a00002), + 12: uint32(0x00200200), + 13: uint32(0x00a00200), + 14: uint32(0x00200202), + 15: uint32(0x00a00202), + }, + 2: { + 1: uint32(0x00002000), + 2: uint32(0x00000004), + 3: uint32(0x00002004), + 4: uint32(0x00000400), + 5: uint32(0x00002400), + 6: uint32(0x00000404), + 7: uint32(0x00002404), + 9: uint32(0x00002000), + 10: uint32(0x00000004), + 11: uint32(0x00002004), + 12: uint32(0x00000400), + 13: uint32(0x00002400), + 14: uint32(0x00000404), + 15: uint32(0x00002404), + }, + 3: { + 1: uint32(0x00010000), + 2: uint32(0x00000008), + 3: uint32(0x00010008), + 4: uint32(0x00000080), + 5: uint32(0x00010080), + 6: uint32(0x00000088), + 7: uint32(0x00010088), + 9: uint32(0x00010000), + 10: uint32(0x00000008), + 11: uint32(0x00010008), + 12: uint32(0x00000080), + 13: uint32(0x00010080), + 14: uint32(0x00000088), + 15: uint32(0x00010088), + }, +} +var _comp_maskr1 = [4][16]Tuint32_t{ + 0: { + 2: uint32(0x00000080), + 3: uint32(0x00000080), + 4: uint32(0x00002000), + 5: uint32(0x00002000), + 6: uint32(0x00002080), + 7: uint32(0x00002080), + 8: uint32(0x00000001), + 9: uint32(0x00000001), + 10: uint32(0x00000081), + 11: uint32(0x00000081), + 12: uint32(0x00002001), + 13: uint32(0x00002001), + 14: uint32(0x00002081), + 15: uint32(0x00002081), + }, + 1: { + 1: uint32(0x00000010), + 2: uint32(0x00800000), + 3: uint32(0x00800010), + 4: uint32(0x00010000), + 5: uint32(0x00010010), + 6: uint32(0x00810000), + 7: uint32(0x00810010), + 8: uint32(0x00000200), + 9: uint32(0x00000210), + 10: uint32(0x00800200), + 11: uint32(0x00800210), + 12: uint32(0x00010200), + 13: uint32(0x00010210), + 14: uint32(0x00810200), + 15: uint32(0x00810210), + }, + 2: { + 1: uint32(0x00000400), + 2: uint32(0x00001000), + 3: uint32(0x00001400), + 4: uint32(0x00080000), + 5: uint32(0x00080400), + 6: uint32(0x00081000), + 7: uint32(0x00081400), + 8: uint32(0x00000020), + 9: uint32(0x00000420), + 10: uint32(0x00001020), + 11: uint32(0x00001420), + 12: uint32(0x00080020), + 13: uint32(0x00080420), + 14: uint32(0x00081020), + 15: uint32(0x00081420), + }, + 3: { + 1: uint32(0x00000100), + 2: uint32(0x00040000), + 3: uint32(0x00040100), + 5: uint32(0x00000100), + 6: uint32(0x00040000), + 7: uint32(0x00040100), + 8: uint32(0x00000040), + 9: uint32(0x00000140), + 10: uint32(0x00040040), + 11: uint32(0x00040140), + 12: uint32(0x00000040), + 13: uint32(0x00000140), + 14: uint32(0x00040040), + 15: uint32(0x00040140), + }, +} + +var _ascii64 = [65]uint8{'.', '/', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'} + +/* 0000000000111111111122222222223333333333444444444455555555556666 */ +/* 0123456789012345678901234567890123456789012345678901234567890123 */ + +// C documentation +// +// /* +// * We match the behavior of UFC-crypt on systems where "char" is signed by +// * default (the majority), regardless of char's signedness on our system. +// */ +func _ascii_to_bin(tls *TLS, ch int32) (r Tuint32_t) { + var retval, sch, v1 int32 + _, _, _ = retval, sch, v1 + if ch < int32(0x80) { + v1 = ch + } else { + v1 = -(int32(0x100) - ch) + } + sch = v1 + retval = sch - int32('.') + if sch >= int32('A') { + retval = sch - (Int32FromUint8('A') - Int32FromInt32(12)) + if sch >= int32('a') { + retval = sch - (Int32FromUint8('a') - Int32FromInt32(38)) + } + } + retval = retval & int32(0x3f) + return Uint32FromInt32(retval) +} + +// C documentation +// +// /* +// * When we choose to "support" invalid salts, nevertheless disallow those +// * containing characters that would violate the passwd file format. +// */ +func _ascii_is_unsafe(tls *TLS, ch uint8) (r int32) { + return BoolInt32(!(ch != 0) || Int32FromUint8(ch) == int32('\n') || Int32FromUint8(ch) == int32(':')) +} + +func _setup_salt(tls *TLS, salt Tuint32_t) (r Tuint32_t) { + var i uint32 + var obit, saltbit, saltbits Tuint32_t + _, _, _, _ = i, obit, saltbit, saltbits + saltbits = uint32(0) + saltbit = uint32(1) + obit = uint32(0x800000) + i = uint32(0) + for { + if !(i < uint32(24)) { + break + } + if salt&saltbit != 0 { + saltbits = saltbits | obit + } + saltbit = saltbit << uint32(1) + obit = obit >> uint32(1) + goto _1 + _1: + ; + i = i + 1 + } + return saltbits +} + +func X__des_setkey(tls *TLS, key uintptr, ekey uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v ekey=%v, (%v:)", tls, key, ekey, origin(2)) + } + var i, ibit, j, round, shifts uint32 + var k0, k1, kl, kr, rawkey0, rawkey1, t0, t1, v1 Tuint32_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = i, ibit, j, k0, k1, kl, kr, rawkey0, rawkey1, round, shifts, t0, t1, v1 + rawkey0 = uint32(**(**uint8)(__ccgo_up(key + 3))) | uint32(**(**uint8)(__ccgo_up(key + 2)))<>ibit&uint32(0xf))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_key_perm_maskl)) + uintptr(i+uint32(4))*64 + uintptr(rawkey1>>ibit&uint32(0xf))*4))) + k1 = k1 | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_key_perm_maskr)) + uintptr(j)*64 + uintptr(rawkey0>>ibit&uint32(0xf))*4)) + ibit = ibit - uint32(4) + k1 = k1 | (**(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_key_perm_maskr)) + uintptr(j+uint32(1))*64 + uintptr(rawkey0>>ibit&uint32(0xf))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_key_perm_maskr)) + uintptr(i+uint32(8))*64 + uintptr(rawkey1>>ibit&uint32(0xf))*4))) + goto _2 + _2: + ; + i = i + 1 + ibit = ibit - uint32(4) + } + /* + * Rotate subkeys and do compression permutation. + */ + shifts = uint32(0) + round = uint32(0) + for { + if !(round < uint32(16)) { + break + } + shifts = shifts + uint32(_key_shifts[round]) + t0 = k0<>(Uint32FromInt32(28)-shifts) + t1 = k1<>(Uint32FromInt32(28)-shifts) + v1 = Uint32FromInt32(0) + kr = v1 + kl = v1 + ibit = uint32(25) + i = uint32(0) + for { + if !(i < uint32(4)) { + break + } + kl = kl | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_comp_maskl0)) + uintptr(i)*32 + uintptr(t0>>ibit&uint32(7))*4)) + kr = kr | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_comp_maskr0)) + uintptr(i)*32 + uintptr(t1>>ibit&uint32(7))*4)) + ibit = ibit - uint32(4) + kl = kl | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_comp_maskl1)) + uintptr(i)*64 + uintptr(t0>>ibit&uint32(0xf))*4)) + kr = kr | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_comp_maskr1)) + uintptr(i)*64 + uintptr(t1>>ibit&uint32(0xf))*4)) + ibit = ibit - uint32(3) + goto _5 + _5: + ; + i = i + 1 + } + **(**Tuint32_t)(__ccgo_up(ekey + uintptr(round)*4)) = kl + **(**Tuint32_t)(__ccgo_up(ekey + 64 + uintptr(round)*4)) = kr + goto _3 + _3: + ; + round = round + 1 + } +} + +// C documentation +// +// /* +// * l_in, r_in, l_out, and r_out are in pseudo-"big-endian" format. +// */ +func X__do_des(tls *TLS, l_in Tuint32_t, r_in Tuint32_t, l_out uintptr, r_out uintptr, count Tuint32_t, saltbits Tuint32_t, ekey uintptr) { + if __ccgo_strace { + trc("tls=%v l_in=%v r_in=%v l_out=%v r_out=%v count=%v saltbits=%v ekey=%v, (%v:)", tls, l_in, r_in, l_out, r_out, count, saltbits, ekey, origin(2)) + } + var f, l, lo, r, r48l, r48r, ro, v1 Tuint32_t + var i, i1, ibit, ibit1, round, v4 uint32 + var kl, kr, v5 uintptr + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = f, i, i1, ibit, ibit1, kl, kr, l, lo, r, r48l, r48r, ro, round, v1, v4, v5 + /* + * Do initial permutation (IP). + */ + v1 = Uint32FromInt32(0) + r = v1 + l = v1 + if l_in|r_in != 0 { + i = uint32(0) + ibit = Uint32FromInt32(28) + for { + if !(i < uint32(8)) { + break + } + l = l | (**(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_ip_maskl)) + uintptr(i)*64 + uintptr(l_in>>ibit&uint32(0xf))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_ip_maskl)) + uintptr(i+uint32(8))*64 + uintptr(r_in>>ibit&uint32(0xf))*4))) + r = r | (**(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_ip_maskr)) + uintptr(i)*64 + uintptr(l_in>>ibit&uint32(0xf))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_ip_maskr)) + uintptr(i+uint32(8))*64 + uintptr(r_in>>ibit&uint32(0xf))*4))) + goto _2 + _2: + ; + i = i + 1 + ibit = ibit - uint32(4) + } + } + for { + v1 = count + count = count - 1 + if !(v1 != 0) { + break + } + /* + * Do each round. + */ + round = uint32(16) + kl = ekey + kr = ekey + 64 + for { + v4 = round + round = round - 1 + if !(v4 != 0) { + break + } + /* + * Expand R to 48 bits (simulate the E-box). + */ + r48l = r&uint32(0x00000001)<>int32(9) | r&uint32(0x1f800000)>>int32(11) | r&uint32(0x01f80000)>>int32(13) | r&uint32(0x001f8000)>>int32(15) + r48r = r&uint32(0x0001f800)<>int32(31) + /* + * Do salting for crypt() and friends, and + * XOR with the permuted key. + */ + f = (r48l ^ r48r) & saltbits + v5 = kl + kl += 4 + r48l = r48l ^ (f ^ **(**Tuint32_t)(__ccgo_up(v5))) + v5 = kr + kr += 4 + r48r = r48r ^ (f ^ **(**Tuint32_t)(__ccgo_up(v5))) + /* + * Do S-box lookups (which shrink it back to 32 bits) + * and do the P-box permutation at the same time. + */ + f = **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_psbox)) + uintptr(r48l>>int32(18))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_psbox)) + 1*256 + uintptr(r48l>>Int32FromInt32(12)&uint32(0x3f))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_psbox)) + 2*256 + uintptr(r48l>>Int32FromInt32(6)&uint32(0x3f))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_psbox)) + 3*256 + uintptr(r48l&uint32(0x3f))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_psbox)) + 4*256 + uintptr(r48r>>int32(18))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_psbox)) + 5*256 + uintptr(r48r>>Int32FromInt32(12)&uint32(0x3f))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_psbox)) + 6*256 + uintptr(r48r>>Int32FromInt32(6)&uint32(0x3f))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_psbox)) + 7*256 + uintptr(r48r&uint32(0x3f))*4)) + /* + * Now that we've permuted things, complete f(). + */ + f = f ^ l + l = r + r = f + } + r = l + l = f + } + /* + * Do final permutation (inverse of IP). + */ + v1 = Uint32FromInt32(0) + ro = v1 + lo = v1 + i1 = uint32(0) + ibit1 = Uint32FromInt32(28) + for { + if !(i1 < uint32(4)) { + break + } + ro = ro | (**(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_fp_maskr)) + uintptr(i1)*64 + uintptr(l>>ibit1&uint32(0xf))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_fp_maskr)) + uintptr(i1+uint32(4))*64 + uintptr(r>>ibit1&uint32(0xf))*4))) + ibit1 = ibit1 - uint32(4) + lo = lo | (**(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_fp_maskl)) + uintptr(i1)*64 + uintptr(l>>ibit1&uint32(0xf))*4)) | **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&_fp_maskl)) + uintptr(i1+uint32(4))*64 + uintptr(r>>ibit1&uint32(0xf))*4))) + goto _8 + _8: + ; + i1 = i1 + 1 + ibit1 = ibit1 - uint32(4) + } + **(**Tuint32_t)(__ccgo_up(l_out)) = lo + **(**Tuint32_t)(__ccgo_up(r_out)) = ro +} + +func _des_cipher(tls *TLS, in uintptr, out uintptr, count Tuint32_t, saltbits Tuint32_t, ekey uintptr) { + bp := tls.Alloc(16) + defer tls.Free(16) + var rawl, rawr Tuint32_t + var _ /* l_out at bp+0 */ Tuint32_t + var _ /* r_out at bp+4 */ Tuint32_t + _, _ = rawl, rawr + rawl = uint32(**(**uint8)(__ccgo_up(in + 3))) | uint32(**(**uint8)(__ccgo_up(in + 2)))<> int32(24)) + **(**uint8)(__ccgo_up(out + 1)) = uint8(**(**Tuint32_t)(__ccgo_up(bp)) >> int32(16)) + **(**uint8)(__ccgo_up(out + 2)) = uint8(**(**Tuint32_t)(__ccgo_up(bp)) >> int32(8)) + **(**uint8)(__ccgo_up(out + 3)) = uint8(**(**Tuint32_t)(__ccgo_up(bp))) + **(**uint8)(__ccgo_up(out + 4)) = uint8(**(**Tuint32_t)(__ccgo_up(bp + 4)) >> int32(24)) + **(**uint8)(__ccgo_up(out + 5)) = uint8(**(**Tuint32_t)(__ccgo_up(bp + 4)) >> int32(16)) + **(**uint8)(__ccgo_up(out + 6)) = uint8(**(**Tuint32_t)(__ccgo_up(bp + 4)) >> int32(8)) + **(**uint8)(__ccgo_up(out + 7)) = uint8(**(**Tuint32_t)(__ccgo_up(bp + 4))) +} + +func __crypt_extended_r_uut(tls *TLS, _key uintptr, _setting uintptr, output uintptr) (r uintptr) { + bp := tls.Alloc(144) + defer tls.Free(144) + var count, l, salt, value, value1 Tuint32_t + var i uint32 + var key, p, q, setting, v1, v4, v5 uintptr + var _ /* ekey at bp+0 */ Texpanded_key + var _ /* keybuf at bp+128 */ [8]uint8 + var _ /* r0 at bp+136 */ Tuint32_t + var _ /* r1 at bp+140 */ Tuint32_t + _, _, _, _, _, _, _, _, _, _, _, _, _ = count, i, key, l, p, q, salt, setting, value, value1, v1, v4, v5 + key = _key + setting = _setting + /* + * Copy the key, shifting each character left by one bit and padding + * with zeroes. + */ + q = bp + 128 + for q <= bp+128+uintptr(Uint64FromInt64(8)-Uint64FromInt32(1)) { + v1 = q + q = q + 1 + **(**uint8)(__ccgo_up(v1)) = Uint8FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(key))) << int32(1)) + if **(**uint8)(__ccgo_up(key)) != 0 { + key = key + 1 + } + } + X__des_setkey(tls, bp+128, bp) + if Int32FromUint8(**(**uint8)(__ccgo_up(setting))) == int32('_') { + /* + * "new"-style: + * setting - underscore, 4 chars of count, 4 chars of salt + * key - unlimited characters + */ + i = uint32(1) + count = Uint32FromInt32(0) + for { + if !(i < uint32(5)) { + break + } + value = _ascii_to_bin(tls, Int32FromUint8(**(**uint8)(__ccgo_up(setting + uintptr(i))))) + if Int32FromUint8(_ascii64[value]) != Int32FromUint8(**(**uint8)(__ccgo_up(setting + uintptr(i)))) { + return UintptrFromInt32(0) + } + count = count | value<<((i-uint32(1))*uint32(6)) + goto _2 + _2: + ; + i = i + 1 + } + if !(count != 0) { + return UintptrFromInt32(0) + } + i = uint32(5) + salt = Uint32FromInt32(0) + for { + if !(i < uint32(9)) { + break + } + value1 = _ascii_to_bin(tls, Int32FromUint8(**(**uint8)(__ccgo_up(setting + uintptr(i))))) + if Int32FromUint8(_ascii64[value1]) != Int32FromUint8(**(**uint8)(__ccgo_up(setting + uintptr(i)))) { + return UintptrFromInt32(0) + } + salt = salt | value1<<((i-uint32(5))*uint32(6)) + goto _3 + _3: + ; + i = i + 1 + } + for **(**uint8)(__ccgo_up(key)) != 0 { + /* + * Encrypt the key with itself. + */ + _des_cipher(tls, bp+128, bp+128, uint32(1), uint32(0), bp) + /* + * And XOR with the next 8 characters of the key. + */ + q = bp + 128 + for q <= bp+128+uintptr(Uint64FromInt64(8)-Uint64FromInt32(1)) && **(**uint8)(__ccgo_up(key)) != 0 { + v4 = q + q = q + 1 + v1 = v4 + v5 = key + key = key + 1 + *(*uint8)(unsafe.Pointer(v1)) = uint8(int32(*(*uint8)(unsafe.Pointer(v1))) ^ Int32FromUint8(**(**uint8)(__ccgo_up(v5)))<> int32(8) + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l>>Int32FromInt32(18)&uint32(0x3f)] + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l>>Int32FromInt32(12)&uint32(0x3f)] + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l>>Int32FromInt32(6)&uint32(0x3f)] + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l&uint32(0x3f)] + l = **(**Tuint32_t)(__ccgo_up(bp + 136))<>Int32FromInt32(16)&uint32(0xffff) + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l>>Int32FromInt32(18)&uint32(0x3f)] + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l>>Int32FromInt32(12)&uint32(0x3f)] + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l>>Int32FromInt32(6)&uint32(0x3f)] + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l&uint32(0x3f)] + l = **(**Tuint32_t)(__ccgo_up(bp + 140)) << int32(2) + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l>>Int32FromInt32(12)&uint32(0x3f)] + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l>>Int32FromInt32(6)&uint32(0x3f)] + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = _ascii64[l&uint32(0x3f)] + **(**uint8)(__ccgo_up(p)) = uint8(0) + return output +} + +func X__crypt_des(tls *TLS, key uintptr, setting uintptr, output uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v setting=%v output=%v, (%v:)", tls, key, setting, output, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var p, retval, test_hash, test_key, test_setting, v1 uintptr + var _ /* test_buf at bp+0 */ [21]uint8 + _, _, _, _, _, _ = p, retval, test_hash, test_key, test_setting, v1 + test_key = __ccgo_ts + 72 + test_setting = __ccgo_ts + 93 + test_hash = __ccgo_ts + 103 + if Int32FromUint8(**(**uint8)(__ccgo_up(setting))) != int32('_') { + test_setting = __ccgo_ts + 124 + test_hash = __ccgo_ts + 127 + } + /* + * Hash the supplied password. + */ + retval = __crypt_extended_r_uut(tls, key, setting, output) + /* + * Perform a quick self-test. It is important that we make both calls + * to _crypt_extended_r_uut() from the same scope such that they likely + * use the same stack locations, which makes the second call overwrite + * the first call's sensitive data on the stack and makes it more + * likely that any alignment related issues would be detected. + */ + p = __crypt_extended_r_uut(tls, test_key, test_setting, bp) + if p != 0 && !(Xstrcmp(tls, p, test_hash) != 0) && retval != 0 { + return retval + } + if Int32FromUint8(**(**uint8)(__ccgo_up(setting))) == int32('*') { + v1 = __ccgo_ts + 141 + } else { + v1 = __ccgo_ts + 70 + } + return v1 +} + +const KEY_MAX = 30000 +const SALT_MAX = 8 + +/* public domain md5 implementation based on rfc1321 and libtomcrypt */ + +type Tmd5 = struct { + Flen1 Tuint64_t + Fh [4]Tuint32_t + Fbuf [64]Tuint8_t +} + +func _rol(tls *TLS, n Tuint32_t, k int32) (r Tuint32_t) { + return n<>(Int32FromInt32(32)-k) +} + +var _tab = [64]Tuint32_t{ + 0: uint32(0xd76aa478), + 1: uint32(0xe8c7b756), + 2: uint32(0x242070db), + 3: uint32(0xc1bdceee), + 4: uint32(0xf57c0faf), + 5: uint32(0x4787c62a), + 6: uint32(0xa8304613), + 7: uint32(0xfd469501), + 8: uint32(0x698098d8), + 9: uint32(0x8b44f7af), + 10: uint32(0xffff5bb1), + 11: uint32(0x895cd7be), + 12: uint32(0x6b901122), + 13: uint32(0xfd987193), + 14: uint32(0xa679438e), + 15: uint32(0x49b40821), + 16: uint32(0xf61e2562), + 17: uint32(0xc040b340), + 18: uint32(0x265e5a51), + 19: uint32(0xe9b6c7aa), + 20: uint32(0xd62f105d), + 21: uint32(0x02441453), + 22: uint32(0xd8a1e681), + 23: uint32(0xe7d3fbc8), + 24: uint32(0x21e1cde6), + 25: uint32(0xc33707d6), + 26: uint32(0xf4d50d87), + 27: uint32(0x455a14ed), + 28: uint32(0xa9e3e905), + 29: uint32(0xfcefa3f8), + 30: uint32(0x676f02d9), + 31: uint32(0x8d2a4c8a), + 32: uint32(0xfffa3942), + 33: uint32(0x8771f681), + 34: uint32(0x6d9d6122), + 35: uint32(0xfde5380c), + 36: uint32(0xa4beea44), + 37: uint32(0x4bdecfa9), + 38: uint32(0xf6bb4b60), + 39: uint32(0xbebfbc70), + 40: uint32(0x289b7ec6), + 41: uint32(0xeaa127fa), + 42: uint32(0xd4ef3085), + 43: uint32(0x04881d05), + 44: uint32(0xd9d4d039), + 45: uint32(0xe6db99e5), + 46: uint32(0x1fa27cf8), + 47: uint32(0xc4ac5665), + 48: uint32(0xf4292244), + 49: uint32(0x432aff97), + 50: uint32(0xab9423a7), + 51: uint32(0xfc93a039), + 52: uint32(0x655b59c3), + 53: uint32(0x8f0ccc92), + 54: uint32(0xffeff47d), + 55: uint32(0x85845dd1), + 56: uint32(0x6fa87e4f), + 57: uint32(0xfe2ce6e0), + 58: uint32(0xa3014314), + 59: uint32(0x4e0811a1), + 60: uint32(0xf7537e82), + 61: uint32(0xbd3af235), + 62: uint32(0x2ad7d2bb), + 63: uint32(0xeb86d391), +} + +func _processblock(tls *TLS, s uintptr, buf uintptr) { + bp := tls.Alloc(64) + defer tls.Free(64) + var a, b, c, d, i Tuint32_t + var _ /* W at bp+0 */ [16]Tuint32_t + _, _, _, _, _ = a, b, c, d, i + i = uint32(0) + for { + if !(i < uint32(16)) { + break + } + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[i] = uint32(**(**Tuint8_t)(__ccgo_up(buf + uintptr(uint32(4)*i)))) + **(**Tuint32_t)(__ccgo_up(bp + uintptr(i)*4)) |= uint32(**(**Tuint8_t)(__ccgo_up(buf + uintptr(uint32(4)*i+uint32(1))))) << int32(8) + **(**Tuint32_t)(__ccgo_up(bp + uintptr(i)*4)) |= uint32(**(**Tuint8_t)(__ccgo_up(buf + uintptr(uint32(4)*i+uint32(2))))) << int32(16) + **(**Tuint32_t)(__ccgo_up(bp + uintptr(i)*4)) |= uint32(**(**Tuint8_t)(__ccgo_up(buf + uintptr(uint32(4)*i+uint32(3))))) << int32(24) + goto _1 + _1: + ; + i = i + 1 + } + a = **(**Tuint32_t)(__ccgo_up(s + 8)) + b = **(**Tuint32_t)(__ccgo_up(s + 8 + 1*4)) + c = **(**Tuint32_t)(__ccgo_up(s + 8 + 2*4)) + d = **(**Tuint32_t)(__ccgo_up(s + 8 + 3*4)) + i = uint32(0) + for i < uint32(16) { + a = a + (d ^ b&(c^d) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[i] + _tab[i]) + a = _rol(tls, a, int32(7)) + b + i = i + 1 + d = d + (c ^ a&(b^c) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[i] + _tab[i]) + d = _rol(tls, d, int32(12)) + a + i = i + 1 + c = c + (b ^ d&(a^b) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[i] + _tab[i]) + c = _rol(tls, c, int32(17)) + d + i = i + 1 + b = b + (a ^ c&(d^a) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[i] + _tab[i]) + b = _rol(tls, b, int32(22)) + c + i = i + 1 + } + for i < uint32(32) { + a = a + (c ^ d&(c^b) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[(uint32(5)*i+uint32(1))%uint32(16)] + _tab[i]) + a = _rol(tls, a, int32(5)) + b + i = i + 1 + d = d + (b ^ c&(b^a) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[(uint32(5)*i+uint32(1))%uint32(16)] + _tab[i]) + d = _rol(tls, d, int32(9)) + a + i = i + 1 + c = c + (a ^ b&(a^d) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[(uint32(5)*i+uint32(1))%uint32(16)] + _tab[i]) + c = _rol(tls, c, int32(14)) + d + i = i + 1 + b = b + (d ^ a&(d^c) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[(uint32(5)*i+uint32(1))%uint32(16)] + _tab[i]) + b = _rol(tls, b, int32(20)) + c + i = i + 1 + } + for i < uint32(48) { + a = a + (b ^ c ^ d + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[(uint32(3)*i+uint32(5))%uint32(16)] + _tab[i]) + a = _rol(tls, a, int32(4)) + b + i = i + 1 + d = d + (a ^ b ^ c + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[(uint32(3)*i+uint32(5))%uint32(16)] + _tab[i]) + d = _rol(tls, d, int32(11)) + a + i = i + 1 + c = c + (d ^ a ^ b + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[(uint32(3)*i+uint32(5))%uint32(16)] + _tab[i]) + c = _rol(tls, c, int32(16)) + d + i = i + 1 + b = b + (c ^ d ^ a + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[(uint32(3)*i+uint32(5))%uint32(16)] + _tab[i]) + b = _rol(tls, b, int32(23)) + c + i = i + 1 + } + for i < uint32(64) { + a = a + (c ^ (b | ^d) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[uint32(7)*i%uint32(16)] + _tab[i]) + a = _rol(tls, a, int32(6)) + b + i = i + 1 + d = d + (b ^ (a | ^c) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[uint32(7)*i%uint32(16)] + _tab[i]) + d = _rol(tls, d, int32(10)) + a + i = i + 1 + c = c + (a ^ (d | ^b) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[uint32(7)*i%uint32(16)] + _tab[i]) + c = _rol(tls, c, int32(15)) + d + i = i + 1 + b = b + (d ^ (c | ^a) + (**(**[16]Tuint32_t)(__ccgo_up(bp)))[uint32(7)*i%uint32(16)] + _tab[i]) + b = _rol(tls, b, int32(21)) + c + i = i + 1 + } + **(**Tuint32_t)(__ccgo_up(s + 8)) += a + **(**Tuint32_t)(__ccgo_up(s + 8 + 1*4)) += b + **(**Tuint32_t)(__ccgo_up(s + 8 + 2*4)) += c + **(**Tuint32_t)(__ccgo_up(s + 8 + 3*4)) += d +} + +func _pad(tls *TLS, s uintptr) { + var r, v1 uint32 + _, _ = r, v1 + r = uint32((*Tmd5)(unsafe.Pointer(s)).Flen1 % uint64(64)) + v1 = r + r = r + 1 + **(**Tuint8_t)(__ccgo_up(s + 24 + uintptr(v1))) = uint8(0x80) + if r > uint32(56) { + Xmemset(tls, s+24+uintptr(r), 0, uint64(uint32(64)-r)) + r = uint32(0) + _processblock(tls, s, s+24) + } + Xmemset(tls, s+24+uintptr(r), 0, uint64(uint32(56)-r)) + **(**Tuint64_t)(__ccgo_up(s)) *= uint64(8) + **(**Tuint8_t)(__ccgo_up(s + 24 + 56)) = uint8((*Tmd5)(unsafe.Pointer(s)).Flen1) + **(**Tuint8_t)(__ccgo_up(s + 24 + 57)) = uint8((*Tmd5)(unsafe.Pointer(s)).Flen1 >> int32(8)) + **(**Tuint8_t)(__ccgo_up(s + 24 + 58)) = uint8((*Tmd5)(unsafe.Pointer(s)).Flen1 >> int32(16)) + **(**Tuint8_t)(__ccgo_up(s + 24 + 59)) = uint8((*Tmd5)(unsafe.Pointer(s)).Flen1 >> int32(24)) + **(**Tuint8_t)(__ccgo_up(s + 24 + 60)) = uint8((*Tmd5)(unsafe.Pointer(s)).Flen1 >> int32(32)) + **(**Tuint8_t)(__ccgo_up(s + 24 + 61)) = uint8((*Tmd5)(unsafe.Pointer(s)).Flen1 >> int32(40)) + **(**Tuint8_t)(__ccgo_up(s + 24 + 62)) = uint8((*Tmd5)(unsafe.Pointer(s)).Flen1 >> int32(48)) + **(**Tuint8_t)(__ccgo_up(s + 24 + 63)) = uint8((*Tmd5)(unsafe.Pointer(s)).Flen1 >> int32(56)) + _processblock(tls, s, s+24) +} + +func _md5_init(tls *TLS, s uintptr) { + (*Tmd5)(unsafe.Pointer(s)).Flen1 = uint64(0) + **(**Tuint32_t)(__ccgo_up(s + 8)) = uint32(0x67452301) + **(**Tuint32_t)(__ccgo_up(s + 8 + 1*4)) = uint32(0xefcdab89) + **(**Tuint32_t)(__ccgo_up(s + 8 + 2*4)) = uint32(0x98badcfe) + **(**Tuint32_t)(__ccgo_up(s + 8 + 3*4)) = uint32(0x10325476) +} + +func _md5_sum(tls *TLS, s uintptr, md uintptr) { + var i int32 + _ = i + _pad(tls, s) + i = 0 + for { + if !(i < int32(4)) { + break + } + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(4)*i))) = uint8(**(**Tuint32_t)(__ccgo_up(s + 8 + uintptr(i)*4))) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(4)*i+int32(1)))) = uint8(**(**Tuint32_t)(__ccgo_up(s + 8 + uintptr(i)*4)) >> int32(8)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(4)*i+int32(2)))) = uint8(**(**Tuint32_t)(__ccgo_up(s + 8 + uintptr(i)*4)) >> int32(16)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(4)*i+int32(3)))) = uint8(**(**Tuint32_t)(__ccgo_up(s + 8 + uintptr(i)*4)) >> int32(24)) + goto _1 + _1: + ; + i = i + 1 + } +} + +func _md5_update(tls *TLS, s uintptr, m uintptr, len1 uint64) { + var p uintptr + var r uint32 + _, _ = p, r + p = m + r = uint32((*Tmd5)(unsafe.Pointer(s)).Flen1 % uint64(64)) + **(**Tuint64_t)(__ccgo_up(s)) += len1 + if r != 0 { + if len1 < uint64(uint32(64)-r) { + Xmemcpy(tls, s+24+uintptr(r), p, len1) + return + } + Xmemcpy(tls, s+24+uintptr(r), p, uint64(uint32(64)-r)) + len1 = len1 - uint64(uint32(64)-r) + p = p + uintptr(uint32(64)-r) + _processblock(tls, s, s+24) + } + for { + if !(len1 >= uint64(64)) { + break + } + _processblock(tls, s, p) + goto _1 + _1: + ; + len1 = len1 - uint64(64) + p = p + uintptr(64) + } + Xmemcpy(tls, s+24, p, len1) +} + +/*- + * Copyright (c) 2003 Poul-Henning Kamp + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + */ + +/* key limit is not part of the original design, added for DoS protection */ + +var _b64 = [65]uint8{'.', '/', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'} + +func _to64(tls *TLS, s uintptr, u uint32, n int32) (r uintptr) { + var v1 int32 + var v2 uintptr + _, _ = v1, v2 + for { + n = n - 1 + v1 = n + if !(v1 >= 0) { + break + } + v2 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = _b64[u%uint32(64)] + u = u / uint32(64) + } + return s +} + +func _md5crypt(tls *TLS, key uintptr, setting uintptr, output uintptr) (r uintptr) { + bp := tls.Alloc(112) + defer tls.Free(112) + var i, klen, slen uint32 + var p, salt, v5 uintptr + var _ /* ctx at bp+0 */ Tmd5 + var _ /* md at bp+88 */ [16]uint8 + _, _, _, _, _, _ = i, klen, p, salt, slen, v5 + /* reject large keys */ + klen = uint32(Xstrnlen(tls, key, Uint64FromInt32(Int32FromInt32(KEY_MAX)+Int32FromInt32(1)))) + if klen > uint32(KEY_MAX) { + return uintptr(0) + } + /* setting: $1$salt$ (closing $ is optional) */ + if Xstrncmp(tls, setting, __ccgo_ts+143, uint64(3)) != 0 { + return uintptr(0) + } + salt = setting + uintptr(3) + i = uint32(0) + for { + if !(i < uint32(SALT_MAX) && **(**uint8)(__ccgo_up(salt + uintptr(i))) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(salt + uintptr(i)))) != int32('$')) { + break + } + goto _1 + _1: + ; + i = i + 1 + } + slen = i + /* md5(key salt key) */ + _md5_init(tls, bp) + _md5_update(tls, bp, key, uint64(klen)) + _md5_update(tls, bp, salt, uint64(slen)) + _md5_update(tls, bp, key, uint64(klen)) + _md5_sum(tls, bp, bp+88) + /* md5(key $1$ salt repeated-md weird-key[0]-0) */ + _md5_init(tls, bp) + _md5_update(tls, bp, key, uint64(klen)) + _md5_update(tls, bp, setting, uint64(uint32(3)+slen)) + i = klen + for { + if !(uint64(i) > uint64(16)) { + break + } + _md5_update(tls, bp, bp+88, uint64(16)) + goto _2 + _2: + ; + i = uint32(uint64(i) - Uint64FromInt64(16)) + } + _md5_update(tls, bp, bp+88, uint64(i)) + (**(**[16]uint8)(__ccgo_up(bp + 88)))[0] = uint8(0) + i = klen + for { + if !(i != 0) { + break + } + if i&uint32(1) != 0 { + _md5_update(tls, bp, bp+88, uint64(1)) + } else { + _md5_update(tls, bp, key, uint64(1)) + } + goto _3 + _3: + ; + i = i >> uint32(1) + } + _md5_sum(tls, bp, bp+88) + /* md = f(md, key, salt) iteration */ + i = uint32(0) + for { + if !(i < uint32(1000)) { + break + } + _md5_init(tls, bp) + if i%uint32(2) != 0 { + _md5_update(tls, bp, key, uint64(klen)) + } else { + _md5_update(tls, bp, bp+88, uint64(16)) + } + if i%uint32(3) != 0 { + _md5_update(tls, bp, salt, uint64(slen)) + } + if i%uint32(7) != 0 { + _md5_update(tls, bp, key, uint64(klen)) + } + if i%uint32(2) != 0 { + _md5_update(tls, bp, bp+88, uint64(16)) + } else { + _md5_update(tls, bp, key, uint64(klen)) + } + _md5_sum(tls, bp, bp+88) + goto _4 + _4: + ; + i = i + 1 + } + /* output is $1$salt$hash */ + Xmemcpy(tls, output, setting, uint64(uint32(3)+slen)) + p = output + uintptr(3) + uintptr(slen) + v5 = p + p = p + 1 + **(**uint8)(__ccgo_up(v5)) = uint8('$') + i = uint32(0) + for { + if !(i < uint32(5)) { + break + } + p = _to64(tls, p, Uint32FromInt32(Int32FromUint8((**(**[16]uint8)(__ccgo_up(bp + 88)))[**(**uint8)(__ccgo_up(uintptr(unsafe.Pointer(&_perm)) + uintptr(i)*3))])< %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var p, q uintptr + var _ /* testbuf at bp+0 */ [64]uint8 + _, _ = p, q + p = _md5crypt(tls, key, setting, output) + /* self test and stack cleanup */ + q = _md5crypt(tls, uintptr(unsafe.Pointer(&_testkey)), uintptr(unsafe.Pointer(&_testsetting)), bp) + if !(p != 0) || q != bp || Xmemcmp(tls, bp, uintptr(unsafe.Pointer(&_testhash)), uint64(35)) != 0 { + return __ccgo_ts + 70 + } + return p +} + +var _testkey = [18]uint8{'X', 'y', '0', '1', '@', '#', 1, 2, 128, 127, 255, 13, 10, 129, 9, ' ', '!'} + +var _testsetting = [13]uint8{'$', '1', '$', 'a', 'b', 'c', 'd', '0', '1', '2', '3', '$'} + +var _testhash = [35]uint8{'$', '1', '$', 'a', 'b', 'c', 'd', '0', '1', '2', '3', '$', '9', 'Q', 'c', 'g', '8', 'D', 'y', 'v', 'i', 'e', 'k', 'V', '3', 't', 'D', 'G', 'M', 'Z', 'y', 'n', 'J', '1'} + +func X__crypt_r(tls *TLS, key uintptr, salt uintptr, data uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v salt=%v data=%v, (%v:)", tls, key, salt, data, origin(2)) + defer func() { trc("-> %v", r) }() + } + var output uintptr + _ = output + /* Per the crypt_r API, the caller has provided a pointer to + * struct crypt_data; however, this implementation does not + * use the structure to store any internal state, and treats + * it purely as a char buffer for storing the result. */ + output = data + if Int32FromUint8(**(**uint8)(__ccgo_up(salt))) == int32('$') && **(**uint8)(__ccgo_up(salt + 1)) != 0 && **(**uint8)(__ccgo_up(salt + 2)) != 0 { + if Int32FromUint8(**(**uint8)(__ccgo_up(salt + 1))) == int32('1') && Int32FromUint8(**(**uint8)(__ccgo_up(salt + 2))) == int32('$') { + return X__crypt_md5(tls, key, salt, output) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(salt + 1))) == int32('2') && Int32FromUint8(**(**uint8)(__ccgo_up(salt + 3))) == int32('$') { + return X__crypt_blowfish(tls, key, salt, output) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(salt + 1))) == int32('5') && Int32FromUint8(**(**uint8)(__ccgo_up(salt + 2))) == int32('$') { + return X__crypt_sha256(tls, key, salt, output) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(salt + 1))) == int32('6') && Int32FromUint8(**(**uint8)(__ccgo_up(salt + 2))) == int32('$') { + return X__crypt_sha512(tls, key, salt, output) + } + } + return X__crypt_des(tls, key, salt, output) +} + +func Xcrypt_r(tls *TLS, key uintptr, salt uintptr, data uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v salt=%v data=%v, (%v:)", tls, key, salt, data, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__crypt_r(tls, key, salt, data) +} + +const KEY_MAX1 = 256 +const ROUNDS_DEFAULT = 5000 +const ROUNDS_MAX = 9999999 +const ROUNDS_MIN = 1000 +const SALT_MAX1 = 16 + +/* public domain sha256 implementation based on fips180-3 */ + +type Tsha256 = struct { + Flen1 Tuint64_t + Fh [8]Tuint32_t + Fbuf [64]Tuint8_t +} + +func _ror(tls *TLS, n Tuint32_t, k int32) (r Tuint32_t) { + return n>>k | n<<(Int32FromInt32(32)-k) +} + +var _K = [64]Tuint32_t{ + 0: uint32(0x428a2f98), + 1: uint32(0x71374491), + 2: uint32(0xb5c0fbcf), + 3: uint32(0xe9b5dba5), + 4: uint32(0x3956c25b), + 5: uint32(0x59f111f1), + 6: uint32(0x923f82a4), + 7: uint32(0xab1c5ed5), + 8: uint32(0xd807aa98), + 9: uint32(0x12835b01), + 10: uint32(0x243185be), + 11: uint32(0x550c7dc3), + 12: uint32(0x72be5d74), + 13: uint32(0x80deb1fe), + 14: uint32(0x9bdc06a7), + 15: uint32(0xc19bf174), + 16: uint32(0xe49b69c1), + 17: uint32(0xefbe4786), + 18: uint32(0x0fc19dc6), + 19: uint32(0x240ca1cc), + 20: uint32(0x2de92c6f), + 21: uint32(0x4a7484aa), + 22: uint32(0x5cb0a9dc), + 23: uint32(0x76f988da), + 24: uint32(0x983e5152), + 25: uint32(0xa831c66d), + 26: uint32(0xb00327c8), + 27: uint32(0xbf597fc7), + 28: uint32(0xc6e00bf3), + 29: uint32(0xd5a79147), + 30: uint32(0x06ca6351), + 31: uint32(0x14292967), + 32: uint32(0x27b70a85), + 33: uint32(0x2e1b2138), + 34: uint32(0x4d2c6dfc), + 35: uint32(0x53380d13), + 36: uint32(0x650a7354), + 37: uint32(0x766a0abb), + 38: uint32(0x81c2c92e), + 39: uint32(0x92722c85), + 40: uint32(0xa2bfe8a1), + 41: uint32(0xa81a664b), + 42: uint32(0xc24b8b70), + 43: uint32(0xc76c51a3), + 44: uint32(0xd192e819), + 45: uint32(0xd6990624), + 46: uint32(0xf40e3585), + 47: uint32(0x106aa070), + 48: uint32(0x19a4c116), + 49: uint32(0x1e376c08), + 50: uint32(0x2748774c), + 51: uint32(0x34b0bcb5), + 52: uint32(0x391c0cb3), + 53: uint32(0x4ed8aa4a), + 54: uint32(0x5b9cca4f), + 55: uint32(0x682e6ff3), + 56: uint32(0x748f82ee), + 57: uint32(0x78a5636f), + 58: uint32(0x84c87814), + 59: uint32(0x8cc70208), + 60: uint32(0x90befffa), + 61: uint32(0xa4506ceb), + 62: uint32(0xbef9a3f7), + 63: uint32(0xc67178f2), +} + +func _processblock1(tls *TLS, s uintptr, buf uintptr) { + bp := tls.Alloc(256) + defer tls.Free(256) + var a, b, c, d, e, f, g, h, t1, t2 Tuint32_t + var i int32 + var _ /* W at bp+0 */ [64]Tuint32_t + _, _, _, _, _, _, _, _, _, _, _ = a, b, c, d, e, f, g, h, i, t1, t2 + i = 0 + for { + if !(i < int32(16)) { + break + } + (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i] = uint32(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(4)*i)))) << int32(24) + **(**Tuint32_t)(__ccgo_up(bp + uintptr(i)*4)) |= uint32(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(4)*i+int32(1))))) << int32(16) + **(**Tuint32_t)(__ccgo_up(bp + uintptr(i)*4)) |= uint32(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(4)*i+int32(2))))) << int32(8) + **(**Tuint32_t)(__ccgo_up(bp + uintptr(i)*4)) |= uint32(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(4)*i+int32(3))))) + goto _1 + _1: + ; + i = i + 1 + } + for { + if !(i < int32(64)) { + break + } + (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i] = _ror(tls, (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i-int32(2)], int32(17)) ^ _ror(tls, (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i-int32(2)], int32(19)) ^ (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i-int32(2)]>>Int32FromInt32(10) + (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i-int32(7)] + (_ror(tls, (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i-int32(15)], int32(7)) ^ _ror(tls, (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i-int32(15)], int32(18)) ^ (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i-int32(15)]>>Int32FromInt32(3)) + (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i-int32(16)] + goto _2 + _2: + ; + i = i + 1 + } + a = **(**Tuint32_t)(__ccgo_up(s + 8)) + b = **(**Tuint32_t)(__ccgo_up(s + 8 + 1*4)) + c = **(**Tuint32_t)(__ccgo_up(s + 8 + 2*4)) + d = **(**Tuint32_t)(__ccgo_up(s + 8 + 3*4)) + e = **(**Tuint32_t)(__ccgo_up(s + 8 + 4*4)) + f = **(**Tuint32_t)(__ccgo_up(s + 8 + 5*4)) + g = **(**Tuint32_t)(__ccgo_up(s + 8 + 6*4)) + h = **(**Tuint32_t)(__ccgo_up(s + 8 + 7*4)) + i = 0 + for { + if !(i < int32(64)) { + break + } + t1 = h + (_ror(tls, e, int32(6)) ^ _ror(tls, e, int32(11)) ^ _ror(tls, e, int32(25))) + (g ^ e&(f^g)) + _K[i] + (**(**[64]Tuint32_t)(__ccgo_up(bp)))[i] + t2 = _ror(tls, a, int32(2)) ^ _ror(tls, a, int32(13)) ^ _ror(tls, a, int32(22)) + (a&b | c&(a|b)) + h = g + g = f + f = e + e = d + t1 + d = c + c = b + b = a + a = t1 + t2 + goto _3 + _3: + ; + i = i + 1 + } + **(**Tuint32_t)(__ccgo_up(s + 8)) += a + **(**Tuint32_t)(__ccgo_up(s + 8 + 1*4)) += b + **(**Tuint32_t)(__ccgo_up(s + 8 + 2*4)) += c + **(**Tuint32_t)(__ccgo_up(s + 8 + 3*4)) += d + **(**Tuint32_t)(__ccgo_up(s + 8 + 4*4)) += e + **(**Tuint32_t)(__ccgo_up(s + 8 + 5*4)) += f + **(**Tuint32_t)(__ccgo_up(s + 8 + 6*4)) += g + **(**Tuint32_t)(__ccgo_up(s + 8 + 7*4)) += h +} + +func _pad1(tls *TLS, s uintptr) { + var r, v1 uint32 + _, _ = r, v1 + r = uint32((*Tsha256)(unsafe.Pointer(s)).Flen1 % uint64(64)) + v1 = r + r = r + 1 + **(**Tuint8_t)(__ccgo_up(s + 40 + uintptr(v1))) = uint8(0x80) + if r > uint32(56) { + Xmemset(tls, s+40+uintptr(r), 0, uint64(uint32(64)-r)) + r = uint32(0) + _processblock1(tls, s, s+40) + } + Xmemset(tls, s+40+uintptr(r), 0, uint64(uint32(56)-r)) + **(**Tuint64_t)(__ccgo_up(s)) *= uint64(8) + **(**Tuint8_t)(__ccgo_up(s + 40 + 56)) = uint8((*Tsha256)(unsafe.Pointer(s)).Flen1 >> int32(56)) + **(**Tuint8_t)(__ccgo_up(s + 40 + 57)) = uint8((*Tsha256)(unsafe.Pointer(s)).Flen1 >> int32(48)) + **(**Tuint8_t)(__ccgo_up(s + 40 + 58)) = uint8((*Tsha256)(unsafe.Pointer(s)).Flen1 >> int32(40)) + **(**Tuint8_t)(__ccgo_up(s + 40 + 59)) = uint8((*Tsha256)(unsafe.Pointer(s)).Flen1 >> int32(32)) + **(**Tuint8_t)(__ccgo_up(s + 40 + 60)) = uint8((*Tsha256)(unsafe.Pointer(s)).Flen1 >> int32(24)) + **(**Tuint8_t)(__ccgo_up(s + 40 + 61)) = uint8((*Tsha256)(unsafe.Pointer(s)).Flen1 >> int32(16)) + **(**Tuint8_t)(__ccgo_up(s + 40 + 62)) = uint8((*Tsha256)(unsafe.Pointer(s)).Flen1 >> int32(8)) + **(**Tuint8_t)(__ccgo_up(s + 40 + 63)) = uint8((*Tsha256)(unsafe.Pointer(s)).Flen1) + _processblock1(tls, s, s+40) +} + +func _sha256_init(tls *TLS, s uintptr) { + (*Tsha256)(unsafe.Pointer(s)).Flen1 = uint64(0) + **(**Tuint32_t)(__ccgo_up(s + 8)) = uint32(0x6a09e667) + **(**Tuint32_t)(__ccgo_up(s + 8 + 1*4)) = uint32(0xbb67ae85) + **(**Tuint32_t)(__ccgo_up(s + 8 + 2*4)) = uint32(0x3c6ef372) + **(**Tuint32_t)(__ccgo_up(s + 8 + 3*4)) = uint32(0xa54ff53a) + **(**Tuint32_t)(__ccgo_up(s + 8 + 4*4)) = uint32(0x510e527f) + **(**Tuint32_t)(__ccgo_up(s + 8 + 5*4)) = uint32(0x9b05688c) + **(**Tuint32_t)(__ccgo_up(s + 8 + 6*4)) = uint32(0x1f83d9ab) + **(**Tuint32_t)(__ccgo_up(s + 8 + 7*4)) = uint32(0x5be0cd19) +} + +func _sha256_sum(tls *TLS, s uintptr, md uintptr) { + var i int32 + _ = i + _pad1(tls, s) + i = 0 + for { + if !(i < int32(8)) { + break + } + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(4)*i))) = uint8(**(**Tuint32_t)(__ccgo_up(s + 8 + uintptr(i)*4)) >> int32(24)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(4)*i+int32(1)))) = uint8(**(**Tuint32_t)(__ccgo_up(s + 8 + uintptr(i)*4)) >> int32(16)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(4)*i+int32(2)))) = uint8(**(**Tuint32_t)(__ccgo_up(s + 8 + uintptr(i)*4)) >> int32(8)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(4)*i+int32(3)))) = uint8(**(**Tuint32_t)(__ccgo_up(s + 8 + uintptr(i)*4))) + goto _1 + _1: + ; + i = i + 1 + } +} + +func _sha256_update(tls *TLS, s uintptr, m uintptr, len1 uint64) { + var p uintptr + var r uint32 + _, _ = p, r + p = m + r = uint32((*Tsha256)(unsafe.Pointer(s)).Flen1 % uint64(64)) + **(**Tuint64_t)(__ccgo_up(s)) += len1 + if r != 0 { + if len1 < uint64(uint32(64)-r) { + Xmemcpy(tls, s+40+uintptr(r), p, len1) + return + } + Xmemcpy(tls, s+40+uintptr(r), p, uint64(uint32(64)-r)) + len1 = len1 - uint64(uint32(64)-r) + p = p + uintptr(uint32(64)-r) + _processblock1(tls, s, s+40) + } + for { + if !(len1 >= uint64(64)) { + break + } + _processblock1(tls, s, p) + goto _1 + _1: + ; + len1 = len1 - uint64(64) + p = p + uintptr(64) + } + Xmemcpy(tls, s+40, p, len1) +} + +var _b641 = [65]uint8{'.', '/', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'} + +func _to641(tls *TLS, s uintptr, u uint32, n int32) (r uintptr) { + var v1 int32 + var v2 uintptr + _, _ = v1, v2 + for { + n = n - 1 + v1 = n + if !(v1 >= 0) { + break + } + v2 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = _b641[u%uint32(64)] + u = u / uint32(64) + } + return s +} + +/* key limit is not part of the original design, added for DoS protection. + * rounds limit has been lowered (versus the reference/spec), also for DoS + * protection. runtime is O(klen^2 + klen*rounds) */ + +// C documentation +// +// /* hash n bytes of the repeated md message digest */ +func _hashmd(tls *TLS, s uintptr, n uint32, md uintptr) { + var i uint32 + _ = i + i = n + for { + if !(i > uint32(32)) { + break + } + _sha256_update(tls, s, md, uint64(32)) + goto _1 + _1: + ; + i = i - uint32(32) + } + _sha256_update(tls, s, md, uint64(i)) +} + +func _sha256crypt(tls *TLS, key uintptr, setting uintptr, output uintptr) (r1 uintptr) { + bp := tls.Alloc(272) + defer tls.Free(272) + var i, klen, r, slen uint32 + var p, salt uintptr + var u uint64 + var _ /* ctx at bp+0 */ Tsha256 + var _ /* end at bp+224 */ uintptr + var _ /* kmd at bp+136 */ [32]uint8 + var _ /* md at bp+104 */ [32]uint8 + var _ /* rounds at bp+200 */ [20]uint8 + var _ /* smd at bp+168 */ [32]uint8 + _, _, _, _, _, _, _ = i, klen, p, r, salt, slen, u + **(**[20]uint8)(__ccgo_up(bp + 200)) = [20]uint8{} + /* reject large keys */ + klen = uint32(Xstrnlen(tls, key, Uint64FromInt32(Int32FromInt32(KEY_MAX1)+Int32FromInt32(1)))) + if klen > uint32(KEY_MAX1) { + return uintptr(0) + } + /* setting: $5$rounds=n$salt$ (rounds=n$ and closing $ are optional) */ + if Xstrncmp(tls, setting, __ccgo_ts+147, uint64(3)) != 0 { + return uintptr(0) + } + salt = setting + uintptr(3) + r = uint32(ROUNDS_DEFAULT) + if Xstrncmp(tls, salt, __ccgo_ts+151, Uint64FromInt64(8)-Uint64FromInt32(1)) == 0 { + /* + * this is a deviation from the reference: + * bad rounds setting is rejected if it is + * - empty + * - unterminated (missing '$') + * - begins with anything but a decimal digit + * the reference implementation treats these bad + * rounds as part of the salt or parse them with + * strtoul semantics which may cause problems + * including non-portable hashes that depend on + * the host's value of ULONG_MAX. + */ + salt = salt + uintptr(Uint64FromInt64(8)-Uint64FromInt32(1)) + if !(BoolInt32(uint32(**(**uint8)(__ccgo_up(salt)))-Uint32FromUint8('0') < Uint32FromInt32(10)) != 0) { + return uintptr(0) + } + u = Xstrtoul(tls, salt, bp+224, int32(10)) + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 224))))) != int32('$') { + return uintptr(0) + } + salt = **(**uintptr)(__ccgo_up(bp + 224)) + uintptr(1) + if u < uint64(ROUNDS_MIN) { + r = uint32(ROUNDS_MIN) + } else { + if u > uint64(ROUNDS_MAX) { + return uintptr(0) + } else { + r = uint32(u) + } + } + /* needed when rounds is zero prefixed or out of bounds */ + Xsprintf(tls, bp+200, __ccgo_ts+159, VaList(bp+240, r)) + } + i = uint32(0) + for { + if !(i < uint32(SALT_MAX1) && **(**uint8)(__ccgo_up(salt + uintptr(i))) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(salt + uintptr(i)))) != int32('$')) { + break + } + /* reject characters that interfere with /etc/shadow parsing */ + if Int32FromUint8(**(**uint8)(__ccgo_up(salt + uintptr(i)))) == int32('\n') || Int32FromUint8(**(**uint8)(__ccgo_up(salt + uintptr(i)))) == int32(':') { + return uintptr(0) + } + goto _1 + _1: + ; + i = i + 1 + } + slen = i + /* B = sha(key salt key) */ + _sha256_init(tls, bp) + _sha256_update(tls, bp, key, uint64(klen)) + _sha256_update(tls, bp, salt, uint64(slen)) + _sha256_update(tls, bp, key, uint64(klen)) + _sha256_sum(tls, bp, bp+104) + /* A = sha(key salt repeat-B alternate-B-key) */ + _sha256_init(tls, bp) + _sha256_update(tls, bp, key, uint64(klen)) + _sha256_update(tls, bp, salt, uint64(slen)) + _hashmd(tls, bp, klen, bp+104) + i = klen + for { + if !(i > uint32(0)) { + break + } + if i&uint32(1) != 0 { + _sha256_update(tls, bp, bp+104, uint64(32)) + } else { + _sha256_update(tls, bp, key, uint64(klen)) + } + goto _2 + _2: + ; + i = i >> uint32(1) + } + _sha256_sum(tls, bp, bp+104) + /* DP = sha(repeat-key), this step takes O(klen^2) time */ + _sha256_init(tls, bp) + i = uint32(0) + for { + if !(i < klen) { + break + } + _sha256_update(tls, bp, key, uint64(klen)) + goto _3 + _3: + ; + i = i + 1 + } + _sha256_sum(tls, bp, bp+136) + /* DS = sha(repeat-salt) */ + _sha256_init(tls, bp) + i = uint32(0) + for { + if !(i < Uint32FromInt32(int32(16)+Int32FromUint8((**(**[32]uint8)(__ccgo_up(bp + 104)))[0]))) { + break + } + _sha256_update(tls, bp, salt, uint64(slen)) + goto _4 + _4: + ; + i = i + 1 + } + _sha256_sum(tls, bp, bp+168) + /* iterate A = f(A,DP,DS), this step takes O(rounds*klen) time */ + i = uint32(0) + for { + if !(i < r) { + break + } + _sha256_init(tls, bp) + if i%uint32(2) != 0 { + _hashmd(tls, bp, klen, bp+136) + } else { + _sha256_update(tls, bp, bp+104, uint64(32)) + } + if i%uint32(3) != 0 { + _sha256_update(tls, bp, bp+168, uint64(slen)) + } + if i%uint32(7) != 0 { + _hashmd(tls, bp, klen, bp+136) + } + if i%uint32(2) != 0 { + _sha256_update(tls, bp, bp+104, uint64(32)) + } else { + _hashmd(tls, bp, klen, bp+136) + } + _sha256_sum(tls, bp, bp+104) + goto _5 + _5: + ; + i = i + 1 + } + /* output is $5$rounds=n$salt$hash */ + p = output + p = p + uintptr(Xsprintf(tls, p, __ccgo_ts+170, VaList(bp+240, bp+200, slen, salt))) + i = uint32(0) + for { + if !(i < uint32(10)) { + break + } + p = _to641(tls, p, Uint32FromInt32(Int32FromUint8((**(**[32]uint8)(__ccgo_up(bp + 104)))[**(**uint8)(__ccgo_up(uintptr(unsafe.Pointer(&_perm1)) + uintptr(i)*3))])< %v", r) }() + } + bp := tls.Alloc(128) + defer tls.Free(128) + var p, q uintptr + var _ /* testbuf at bp+0 */ [128]uint8 + _, _ = p, q + p = _sha256crypt(tls, key, setting, output) + /* self test and stack cleanup */ + q = _sha256crypt(tls, uintptr(unsafe.Pointer(&_testkey1)), uintptr(unsafe.Pointer(&_testsetting1)), bp) + if !(p != 0) || q != bp || Xmemcmp(tls, bp, uintptr(unsafe.Pointer(&_testhash1)), uint64(73)) != 0 { + return __ccgo_ts + 70 + } + return p +} + +var _testkey1 = [18]uint8{'X', 'y', '0', '1', '@', '#', 1, 2, 128, 127, 255, 13, 10, 129, 9, ' ', '!'} + +var _testsetting1 = [30]uint8{'$', '5', '$', 'r', 'o', 'u', 'n', 'd', 's', '=', '1', '2', '3', '4', '$', 'a', 'b', 'c', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '$'} + +var _testhash1 = [73]uint8{'$', '5', '$', 'r', 'o', 'u', 'n', 'd', 's', '=', '1', '2', '3', '4', '$', 'a', 'b', 'c', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '$', '3', 'V', 'f', 'D', 'j', 'P', 't', '0', '5', 'V', 'H', 'F', 'n', '4', '7', 'C', '/', 'o', 'j', 'F', 'Z', '6', 'K', 'R', 'P', 'Y', 'r', 'O', 'j', 'j', '1', 'l', 'L', 'b', 'H', '.', 'd', 'k', 'F', '3', 'b', 'Z', '6'} + +/* public domain sha512 implementation based on fips180-3 */ +/* >=2^64 bits messages are not supported (about 2000 peta bytes) */ + +type Tsha512 = struct { + Flen1 Tuint64_t + Fh [8]Tuint64_t + Fbuf [128]Tuint8_t +} + +func _ror1(tls *TLS, n Tuint64_t, k int32) (r Tuint64_t) { + return n>>k | n<<(Int32FromInt32(64)-k) +} + +var _K1 = [80]Tuint64_t{ + 0: uint64(0x428a2f98d728ae22), + 1: uint64(0x7137449123ef65cd), + 2: uint64(0xb5c0fbcfec4d3b2f), + 3: uint64(0xe9b5dba58189dbbc), + 4: uint64(0x3956c25bf348b538), + 5: uint64(0x59f111f1b605d019), + 6: uint64(0x923f82a4af194f9b), + 7: uint64(0xab1c5ed5da6d8118), + 8: uint64(0xd807aa98a3030242), + 9: uint64(0x12835b0145706fbe), + 10: uint64(0x243185be4ee4b28c), + 11: uint64(0x550c7dc3d5ffb4e2), + 12: uint64(0x72be5d74f27b896f), + 13: uint64(0x80deb1fe3b1696b1), + 14: uint64(0x9bdc06a725c71235), + 15: uint64(0xc19bf174cf692694), + 16: uint64(0xe49b69c19ef14ad2), + 17: uint64(0xefbe4786384f25e3), + 18: uint64(0x0fc19dc68b8cd5b5), + 19: uint64(0x240ca1cc77ac9c65), + 20: uint64(0x2de92c6f592b0275), + 21: uint64(0x4a7484aa6ea6e483), + 22: uint64(0x5cb0a9dcbd41fbd4), + 23: uint64(0x76f988da831153b5), + 24: uint64(0x983e5152ee66dfab), + 25: uint64(0xa831c66d2db43210), + 26: uint64(0xb00327c898fb213f), + 27: uint64(0xbf597fc7beef0ee4), + 28: uint64(0xc6e00bf33da88fc2), + 29: uint64(0xd5a79147930aa725), + 30: uint64(0x06ca6351e003826f), + 31: uint64(0x142929670a0e6e70), + 32: uint64(0x27b70a8546d22ffc), + 33: uint64(0x2e1b21385c26c926), + 34: uint64(0x4d2c6dfc5ac42aed), + 35: uint64(0x53380d139d95b3df), + 36: uint64(0x650a73548baf63de), + 37: uint64(0x766a0abb3c77b2a8), + 38: uint64(0x81c2c92e47edaee6), + 39: uint64(0x92722c851482353b), + 40: uint64(0xa2bfe8a14cf10364), + 41: uint64(0xa81a664bbc423001), + 42: uint64(0xc24b8b70d0f89791), + 43: uint64(0xc76c51a30654be30), + 44: uint64(0xd192e819d6ef5218), + 45: uint64(0xd69906245565a910), + 46: uint64(0xf40e35855771202a), + 47: uint64(0x106aa07032bbd1b8), + 48: uint64(0x19a4c116b8d2d0c8), + 49: uint64(0x1e376c085141ab53), + 50: uint64(0x2748774cdf8eeb99), + 51: uint64(0x34b0bcb5e19b48a8), + 52: uint64(0x391c0cb3c5c95a63), + 53: uint64(0x4ed8aa4ae3418acb), + 54: uint64(0x5b9cca4f7763e373), + 55: uint64(0x682e6ff3d6b2b8a3), + 56: uint64(0x748f82ee5defb2fc), + 57: uint64(0x78a5636f43172f60), + 58: uint64(0x84c87814a1f0ab72), + 59: uint64(0x8cc702081a6439ec), + 60: uint64(0x90befffa23631e28), + 61: uint64(0xa4506cebde82bde9), + 62: uint64(0xbef9a3f7b2c67915), + 63: uint64(0xc67178f2e372532b), + 64: uint64(0xca273eceea26619c), + 65: uint64(0xd186b8c721c0c207), + 66: uint64(0xeada7dd6cde0eb1e), + 67: uint64(0xf57d4f7fee6ed178), + 68: uint64(0x06f067aa72176fba), + 69: uint64(0x0a637dc5a2c898a6), + 70: uint64(0x113f9804bef90dae), + 71: uint64(0x1b710b35131c471b), + 72: uint64(0x28db77f523047d84), + 73: uint64(0x32caab7b40c72493), + 74: uint64(0x3c9ebe0a15c9bebc), + 75: uint64(0x431d67c49c100d4c), + 76: uint64(0x4cc5d4becb3e42b6), + 77: uint64(0x597f299cfc657e2a), + 78: uint64(0x5fcb6fab3ad6faec), + 79: uint64(0x6c44198c4a475817), +} + +func _processblock2(tls *TLS, s uintptr, buf uintptr) { + bp := tls.Alloc(640) + defer tls.Free(640) + var a, b, c, d, e, f, g, h, t1, t2 Tuint64_t + var i int32 + var _ /* W at bp+0 */ [80]Tuint64_t + _, _, _, _, _, _, _, _, _, _, _ = a, b, c, d, e, f, g, h, i, t1, t2 + i = 0 + for { + if !(i < int32(16)) { + break + } + (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i] = uint64(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(8)*i)))) << int32(56) + **(**Tuint64_t)(__ccgo_up(bp + uintptr(i)*8)) |= uint64(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(8)*i+int32(1))))) << int32(48) + **(**Tuint64_t)(__ccgo_up(bp + uintptr(i)*8)) |= uint64(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(8)*i+int32(2))))) << int32(40) + **(**Tuint64_t)(__ccgo_up(bp + uintptr(i)*8)) |= uint64(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(8)*i+int32(3))))) << int32(32) + **(**Tuint64_t)(__ccgo_up(bp + uintptr(i)*8)) |= uint64(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(8)*i+int32(4))))) << int32(24) + **(**Tuint64_t)(__ccgo_up(bp + uintptr(i)*8)) |= uint64(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(8)*i+int32(5))))) << int32(16) + **(**Tuint64_t)(__ccgo_up(bp + uintptr(i)*8)) |= uint64(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(8)*i+int32(6))))) << int32(8) + **(**Tuint64_t)(__ccgo_up(bp + uintptr(i)*8)) |= uint64(**(**Tuint8_t)(__ccgo_up(buf + uintptr(int32(8)*i+int32(7))))) + goto _1 + _1: + ; + i = i + 1 + } + for { + if !(i < int32(80)) { + break + } + (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i] = _ror1(tls, (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i-int32(2)], int32(19)) ^ _ror1(tls, (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i-int32(2)], int32(61)) ^ (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i-int32(2)]>>Int32FromInt32(6) + (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i-int32(7)] + (_ror1(tls, (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i-int32(15)], int32(1)) ^ _ror1(tls, (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i-int32(15)], int32(8)) ^ (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i-int32(15)]>>Int32FromInt32(7)) + (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i-int32(16)] + goto _2 + _2: + ; + i = i + 1 + } + a = **(**Tuint64_t)(__ccgo_up(s + 8)) + b = **(**Tuint64_t)(__ccgo_up(s + 8 + 1*8)) + c = **(**Tuint64_t)(__ccgo_up(s + 8 + 2*8)) + d = **(**Tuint64_t)(__ccgo_up(s + 8 + 3*8)) + e = **(**Tuint64_t)(__ccgo_up(s + 8 + 4*8)) + f = **(**Tuint64_t)(__ccgo_up(s + 8 + 5*8)) + g = **(**Tuint64_t)(__ccgo_up(s + 8 + 6*8)) + h = **(**Tuint64_t)(__ccgo_up(s + 8 + 7*8)) + i = 0 + for { + if !(i < int32(80)) { + break + } + t1 = h + (_ror1(tls, e, int32(14)) ^ _ror1(tls, e, int32(18)) ^ _ror1(tls, e, int32(41))) + (g ^ e&(f^g)) + _K1[i] + (**(**[80]Tuint64_t)(__ccgo_up(bp)))[i] + t2 = _ror1(tls, a, int32(28)) ^ _ror1(tls, a, int32(34)) ^ _ror1(tls, a, int32(39)) + (a&b | c&(a|b)) + h = g + g = f + f = e + e = d + t1 + d = c + c = b + b = a + a = t1 + t2 + goto _3 + _3: + ; + i = i + 1 + } + **(**Tuint64_t)(__ccgo_up(s + 8)) += a + **(**Tuint64_t)(__ccgo_up(s + 8 + 1*8)) += b + **(**Tuint64_t)(__ccgo_up(s + 8 + 2*8)) += c + **(**Tuint64_t)(__ccgo_up(s + 8 + 3*8)) += d + **(**Tuint64_t)(__ccgo_up(s + 8 + 4*8)) += e + **(**Tuint64_t)(__ccgo_up(s + 8 + 5*8)) += f + **(**Tuint64_t)(__ccgo_up(s + 8 + 6*8)) += g + **(**Tuint64_t)(__ccgo_up(s + 8 + 7*8)) += h +} + +func _pad2(tls *TLS, s uintptr) { + var r, v1 uint32 + _, _ = r, v1 + r = uint32((*Tsha512)(unsafe.Pointer(s)).Flen1 % uint64(128)) + v1 = r + r = r + 1 + **(**Tuint8_t)(__ccgo_up(s + 72 + uintptr(v1))) = uint8(0x80) + if r > uint32(112) { + Xmemset(tls, s+72+uintptr(r), 0, uint64(uint32(128)-r)) + r = uint32(0) + _processblock2(tls, s, s+72) + } + Xmemset(tls, s+72+uintptr(r), 0, uint64(uint32(120)-r)) + **(**Tuint64_t)(__ccgo_up(s)) *= uint64(8) + **(**Tuint8_t)(__ccgo_up(s + 72 + 120)) = uint8((*Tsha512)(unsafe.Pointer(s)).Flen1 >> int32(56)) + **(**Tuint8_t)(__ccgo_up(s + 72 + 121)) = uint8((*Tsha512)(unsafe.Pointer(s)).Flen1 >> int32(48)) + **(**Tuint8_t)(__ccgo_up(s + 72 + 122)) = uint8((*Tsha512)(unsafe.Pointer(s)).Flen1 >> int32(40)) + **(**Tuint8_t)(__ccgo_up(s + 72 + 123)) = uint8((*Tsha512)(unsafe.Pointer(s)).Flen1 >> int32(32)) + **(**Tuint8_t)(__ccgo_up(s + 72 + 124)) = uint8((*Tsha512)(unsafe.Pointer(s)).Flen1 >> int32(24)) + **(**Tuint8_t)(__ccgo_up(s + 72 + 125)) = uint8((*Tsha512)(unsafe.Pointer(s)).Flen1 >> int32(16)) + **(**Tuint8_t)(__ccgo_up(s + 72 + 126)) = uint8((*Tsha512)(unsafe.Pointer(s)).Flen1 >> int32(8)) + **(**Tuint8_t)(__ccgo_up(s + 72 + 127)) = uint8((*Tsha512)(unsafe.Pointer(s)).Flen1) + _processblock2(tls, s, s+72) +} + +func _sha512_init(tls *TLS, s uintptr) { + (*Tsha512)(unsafe.Pointer(s)).Flen1 = uint64(0) + **(**Tuint64_t)(__ccgo_up(s + 8)) = uint64(0x6a09e667f3bcc908) + **(**Tuint64_t)(__ccgo_up(s + 8 + 1*8)) = uint64(0xbb67ae8584caa73b) + **(**Tuint64_t)(__ccgo_up(s + 8 + 2*8)) = uint64(0x3c6ef372fe94f82b) + **(**Tuint64_t)(__ccgo_up(s + 8 + 3*8)) = uint64(0xa54ff53a5f1d36f1) + **(**Tuint64_t)(__ccgo_up(s + 8 + 4*8)) = uint64(0x510e527fade682d1) + **(**Tuint64_t)(__ccgo_up(s + 8 + 5*8)) = uint64(0x9b05688c2b3e6c1f) + **(**Tuint64_t)(__ccgo_up(s + 8 + 6*8)) = uint64(0x1f83d9abfb41bd6b) + **(**Tuint64_t)(__ccgo_up(s + 8 + 7*8)) = uint64(0x5be0cd19137e2179) +} + +func _sha512_sum(tls *TLS, s uintptr, md uintptr) { + var i int32 + _ = i + _pad2(tls, s) + i = 0 + for { + if !(i < int32(8)) { + break + } + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(8)*i))) = uint8(**(**Tuint64_t)(__ccgo_up(s + 8 + uintptr(i)*8)) >> int32(56)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(8)*i+int32(1)))) = uint8(**(**Tuint64_t)(__ccgo_up(s + 8 + uintptr(i)*8)) >> int32(48)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(8)*i+int32(2)))) = uint8(**(**Tuint64_t)(__ccgo_up(s + 8 + uintptr(i)*8)) >> int32(40)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(8)*i+int32(3)))) = uint8(**(**Tuint64_t)(__ccgo_up(s + 8 + uintptr(i)*8)) >> int32(32)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(8)*i+int32(4)))) = uint8(**(**Tuint64_t)(__ccgo_up(s + 8 + uintptr(i)*8)) >> int32(24)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(8)*i+int32(5)))) = uint8(**(**Tuint64_t)(__ccgo_up(s + 8 + uintptr(i)*8)) >> int32(16)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(8)*i+int32(6)))) = uint8(**(**Tuint64_t)(__ccgo_up(s + 8 + uintptr(i)*8)) >> int32(8)) + **(**Tuint8_t)(__ccgo_up(md + uintptr(int32(8)*i+int32(7)))) = uint8(**(**Tuint64_t)(__ccgo_up(s + 8 + uintptr(i)*8))) + goto _1 + _1: + ; + i = i + 1 + } +} + +func _sha512_update(tls *TLS, s uintptr, m uintptr, len1 uint64) { + var p uintptr + var r uint32 + _, _ = p, r + p = m + r = uint32((*Tsha512)(unsafe.Pointer(s)).Flen1 % uint64(128)) + **(**Tuint64_t)(__ccgo_up(s)) += len1 + if r != 0 { + if len1 < uint64(uint32(128)-r) { + Xmemcpy(tls, s+72+uintptr(r), p, len1) + return + } + Xmemcpy(tls, s+72+uintptr(r), p, uint64(uint32(128)-r)) + len1 = len1 - uint64(uint32(128)-r) + p = p + uintptr(uint32(128)-r) + _processblock2(tls, s, s+72) + } + for { + if !(len1 >= uint64(128)) { + break + } + _processblock2(tls, s, p) + goto _1 + _1: + ; + len1 = len1 - uint64(128) + p = p + uintptr(128) + } + Xmemcpy(tls, s+72, p, len1) +} + +var _b642 = [65]uint8{'.', '/', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'} + +func _to642(tls *TLS, s uintptr, u uint32, n int32) (r uintptr) { + var v1 int32 + var v2 uintptr + _, _ = v1, v2 + for { + n = n - 1 + v1 = n + if !(v1 >= 0) { + break + } + v2 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = _b642[u%uint32(64)] + u = u / uint32(64) + } + return s +} + +/* key limit is not part of the original design, added for DoS protection. + * rounds limit has been lowered (versus the reference/spec), also for DoS + * protection. runtime is O(klen^2 + klen*rounds) */ + +// C documentation +// +// /* hash n bytes of the repeated md message digest */ +func _hashmd1(tls *TLS, s uintptr, n uint32, md uintptr) { + var i uint32 + _ = i + i = n + for { + if !(i > uint32(64)) { + break + } + _sha512_update(tls, s, md, uint64(64)) + goto _1 + _1: + ; + i = i - uint32(64) + } + _sha512_update(tls, s, md, uint64(i)) +} + +func _sha512crypt(tls *TLS, key uintptr, setting uintptr, output uintptr) (r1 uintptr) { + bp := tls.Alloc(464) + defer tls.Free(464) + var i, klen, r, slen uint32 + var p, salt uintptr + var u uint64 + var _ /* ctx at bp+0 */ Tsha512 + var _ /* end at bp+416 */ uintptr + var _ /* kmd at bp+264 */ [64]uint8 + var _ /* md at bp+200 */ [64]uint8 + var _ /* rounds at bp+392 */ [20]uint8 + var _ /* smd at bp+328 */ [64]uint8 + _, _, _, _, _, _, _ = i, klen, p, r, salt, slen, u + **(**[20]uint8)(__ccgo_up(bp + 392)) = [20]uint8{} + /* reject large keys */ + i = uint32(0) + for { + if !(i <= uint32(KEY_MAX1) && **(**uint8)(__ccgo_up(key + uintptr(i))) != 0) { + break + } + goto _1 + _1: + ; + i = i + 1 + } + if i > uint32(KEY_MAX1) { + return uintptr(0) + } + klen = i + /* setting: $6$rounds=n$salt$ (rounds=n$ and closing $ are optional) */ + if Xstrncmp(tls, setting, __ccgo_ts+181, uint64(3)) != 0 { + return uintptr(0) + } + salt = setting + uintptr(3) + r = uint32(ROUNDS_DEFAULT) + if Xstrncmp(tls, salt, __ccgo_ts+151, Uint64FromInt64(8)-Uint64FromInt32(1)) == 0 { + /* + * this is a deviation from the reference: + * bad rounds setting is rejected if it is + * - empty + * - unterminated (missing '$') + * - begins with anything but a decimal digit + * the reference implementation treats these bad + * rounds as part of the salt or parse them with + * strtoul semantics which may cause problems + * including non-portable hashes that depend on + * the host's value of ULONG_MAX. + */ + salt = salt + uintptr(Uint64FromInt64(8)-Uint64FromInt32(1)) + if !(BoolInt32(uint32(**(**uint8)(__ccgo_up(salt)))-Uint32FromUint8('0') < Uint32FromInt32(10)) != 0) { + return uintptr(0) + } + u = Xstrtoul(tls, salt, bp+416, int32(10)) + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 416))))) != int32('$') { + return uintptr(0) + } + salt = **(**uintptr)(__ccgo_up(bp + 416)) + uintptr(1) + if u < uint64(ROUNDS_MIN) { + r = uint32(ROUNDS_MIN) + } else { + if u > uint64(ROUNDS_MAX) { + return uintptr(0) + } else { + r = uint32(u) + } + } + /* needed when rounds is zero prefixed or out of bounds */ + Xsprintf(tls, bp+392, __ccgo_ts+159, VaList(bp+432, r)) + } + i = uint32(0) + for { + if !(i < uint32(SALT_MAX1) && **(**uint8)(__ccgo_up(salt + uintptr(i))) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(salt + uintptr(i)))) != int32('$')) { + break + } + /* reject characters that interfere with /etc/shadow parsing */ + if Int32FromUint8(**(**uint8)(__ccgo_up(salt + uintptr(i)))) == int32('\n') || Int32FromUint8(**(**uint8)(__ccgo_up(salt + uintptr(i)))) == int32(':') { + return uintptr(0) + } + goto _2 + _2: + ; + i = i + 1 + } + slen = i + /* B = sha(key salt key) */ + _sha512_init(tls, bp) + _sha512_update(tls, bp, key, uint64(klen)) + _sha512_update(tls, bp, salt, uint64(slen)) + _sha512_update(tls, bp, key, uint64(klen)) + _sha512_sum(tls, bp, bp+200) + /* A = sha(key salt repeat-B alternate-B-key) */ + _sha512_init(tls, bp) + _sha512_update(tls, bp, key, uint64(klen)) + _sha512_update(tls, bp, salt, uint64(slen)) + _hashmd1(tls, bp, klen, bp+200) + i = klen + for { + if !(i > uint32(0)) { + break + } + if i&uint32(1) != 0 { + _sha512_update(tls, bp, bp+200, uint64(64)) + } else { + _sha512_update(tls, bp, key, uint64(klen)) + } + goto _3 + _3: + ; + i = i >> uint32(1) + } + _sha512_sum(tls, bp, bp+200) + /* DP = sha(repeat-key), this step takes O(klen^2) time */ + _sha512_init(tls, bp) + i = uint32(0) + for { + if !(i < klen) { + break + } + _sha512_update(tls, bp, key, uint64(klen)) + goto _4 + _4: + ; + i = i + 1 + } + _sha512_sum(tls, bp, bp+264) + /* DS = sha(repeat-salt) */ + _sha512_init(tls, bp) + i = uint32(0) + for { + if !(i < Uint32FromInt32(int32(16)+Int32FromUint8((**(**[64]uint8)(__ccgo_up(bp + 200)))[0]))) { + break + } + _sha512_update(tls, bp, salt, uint64(slen)) + goto _5 + _5: + ; + i = i + 1 + } + _sha512_sum(tls, bp, bp+328) + /* iterate A = f(A,DP,DS), this step takes O(rounds*klen) time */ + i = uint32(0) + for { + if !(i < r) { + break + } + _sha512_init(tls, bp) + if i%uint32(2) != 0 { + _hashmd1(tls, bp, klen, bp+264) + } else { + _sha512_update(tls, bp, bp+200, uint64(64)) + } + if i%uint32(3) != 0 { + _sha512_update(tls, bp, bp+328, uint64(slen)) + } + if i%uint32(7) != 0 { + _hashmd1(tls, bp, klen, bp+264) + } + if i%uint32(2) != 0 { + _sha512_update(tls, bp, bp+200, uint64(64)) + } else { + _hashmd1(tls, bp, klen, bp+264) + } + _sha512_sum(tls, bp, bp+200) + goto _6 + _6: + ; + i = i + 1 + } + /* output is $6$rounds=n$salt$hash */ + p = output + p = p + uintptr(Xsprintf(tls, p, __ccgo_ts+185, VaList(bp+432, bp+392, slen, salt))) + i = uint32(0) + for { + if !(i < uint32(21)) { + break + } + p = _to642(tls, p, Uint32FromInt32(Int32FromUint8((**(**[64]uint8)(__ccgo_up(bp + 200)))[**(**uint8)(__ccgo_up(uintptr(unsafe.Pointer(&_perm2)) + uintptr(i)*3))])< %v", r) }() + } + bp := tls.Alloc(128) + defer tls.Free(128) + var p, q uintptr + var _ /* testbuf at bp+0 */ [128]uint8 + _, _ = p, q + p = _sha512crypt(tls, key, setting, output) + /* self test and stack cleanup */ + q = _sha512crypt(tls, uintptr(unsafe.Pointer(&_testkey2)), uintptr(unsafe.Pointer(&_testsetting2)), bp) + if !(p != 0) || q != bp || Xmemcmp(tls, bp, uintptr(unsafe.Pointer(&_testhash2)), uint64(116)) != 0 { + return __ccgo_ts + 70 + } + return p +} + +var _testkey2 = [18]uint8{'X', 'y', '0', '1', '@', '#', 1, 2, 128, 127, 255, 13, 10, 129, 9, ' ', '!'} + +var _testsetting2 = [30]uint8{'$', '6', '$', 'r', 'o', 'u', 'n', 'd', 's', '=', '1', '2', '3', '4', '$', 'a', 'b', 'c', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '$'} + +var _testhash2 = [116]uint8{'$', '6', '$', 'r', 'o', 'u', 'n', 'd', 's', '=', '1', '2', '3', '4', '$', 'a', 'b', 'c', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '$', 'B', 'C', 'p', 't', '8', 'z', 'L', 'r', 'c', '/', 'R', 'c', 'y', 'u', 'X', 'm', 'C', 'D', 'O', 'E', '1', 'A', 'L', 'q', 'M', 'X', 'B', '2', 'M', 'H', '6', 'n', '1', 'g', '8', '9', '1', 'H', 'h', 'F', 'j', '8', '.', 'w', '7', 'L', 'x', 'G', 'v', '.', 'F', 'T', 'k', 'q', 'q', '6', 'V', 'x', 'c', '/', 'k', 'm', '3', 'Y', '0', 'j', 'E', '0', 'j', '2', '4', 'j', 'Y', '5', 'P', 'I', 'v', '/', 'o', 'O', 'u', '6', 'r', 'e', 'g', '1'} + +var ___encrypt_key Texpanded_key + +func Xsetkey(tls *TLS, key uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v, (%v:)", tls, key, origin(2)) + } + bp := tls.Alloc(16) + defer tls.Free(16) + var i, j int32 + var v3 uintptr + var _ /* bkey at bp+0 */ [8]uint8 + _, _, _ = i, j, v3 + i = 0 + for { + if !(i < int32(8)) { + break + } + (**(**[8]uint8)(__ccgo_up(bp)))[i] = uint8(0) + j = int32(7) + for { + if !(j >= 0) { + break + } + v3 = bp + uintptr(i) + *(*uint8)(unsafe.Pointer(v3)) = uint8(uint32(*(*uint8)(unsafe.Pointer(v3))) | Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(key)))&Int32FromInt32(1))<= 0) { + break + } + **(**Tuint32_t)(__ccgo_up(bp + 128 + uintptr(i)*4)) |= Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(p)))&Int32FromInt32(1)) << j + goto _2 + _2: + ; + j = j - 1 + p = p + 1 + } + goto _1 + _1: + ; + i = i + 1 + } + key = uintptr(unsafe.Pointer(&___encrypt_key)) + if edflag != 0 { + key = bp + i = 0 + for { + if !(i < int32(16)) { + break + } + **(**Tuint32_t)(__ccgo_up(bp + uintptr(i)*4)) = **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&___encrypt_key)) + uintptr(int32(15)-i)*4)) + **(**Tuint32_t)(__ccgo_up(bp + 64 + uintptr(i)*4)) = **(**Tuint32_t)(__ccgo_up(uintptr(unsafe.Pointer(&___encrypt_key)) + 64 + uintptr(int32(15)-i)*4)) + goto _3 + _3: + ; + i = i + 1 + } + } + X__do_des(tls, (**(**[2]Tuint32_t)(__ccgo_up(bp + 128)))[0], (**(**[2]Tuint32_t)(__ccgo_up(bp + 128)))[int32(1)], bp+128, bp+128+uintptr(1)*4, uint32(1), uint32(0), key) + p = block + i = 0 + for { + if !(i < int32(2)) { + break + } + j = int32(31) + for { + if !(j >= 0) { + break + } + v6 = p + p = p + 1 + **(**uint8)(__ccgo_up(v6)) = uint8((**(**[2]Tuint32_t)(__ccgo_up(bp + 128)))[i] >> j & uint32(1)) + goto _5 + _5: + ; + j = j - 1 + } + goto _4 + _4: + ; + i = i + 1 + } +} + +var _table = [384]uint16{ + 128: uint16(0x200), + 129: uint16(0x200), + 130: uint16(0x200), + 131: uint16(0x200), + 132: uint16(0x200), + 133: uint16(0x200), + 134: uint16(0x200), + 135: uint16(0x200), + 136: uint16(0x200), + 137: uint16(0x320), + 138: uint16(0x220), + 139: uint16(0x220), + 140: uint16(0x220), + 141: uint16(0x220), + 142: uint16(0x200), + 143: uint16(0x200), + 144: uint16(0x200), + 145: uint16(0x200), + 146: uint16(0x200), + 147: uint16(0x200), + 148: uint16(0x200), + 149: uint16(0x200), + 150: uint16(0x200), + 151: uint16(0x200), + 152: uint16(0x200), + 153: uint16(0x200), + 154: uint16(0x200), + 155: uint16(0x200), + 156: uint16(0x200), + 157: uint16(0x200), + 158: uint16(0x200), + 159: uint16(0x200), + 160: uint16(0x160), + 161: uint16(0x4c0), + 162: uint16(0x4c0), + 163: uint16(0x4c0), + 164: uint16(0x4c0), + 165: uint16(0x4c0), + 166: uint16(0x4c0), + 167: uint16(0x4c0), + 168: uint16(0x4c0), + 169: uint16(0x4c0), + 170: uint16(0x4c0), + 171: uint16(0x4c0), + 172: uint16(0x4c0), + 173: uint16(0x4c0), + 174: uint16(0x4c0), + 175: uint16(0x4c0), + 176: uint16(0x8d8), + 177: uint16(0x8d8), + 178: uint16(0x8d8), + 179: uint16(0x8d8), + 180: uint16(0x8d8), + 181: uint16(0x8d8), + 182: uint16(0x8d8), + 183: uint16(0x8d8), + 184: uint16(0x8d8), + 185: uint16(0x8d8), + 186: uint16(0x4c0), + 187: uint16(0x4c0), + 188: uint16(0x4c0), + 189: uint16(0x4c0), + 190: uint16(0x4c0), + 191: uint16(0x4c0), + 192: uint16(0x4c0), + 193: uint16(0x8d5), + 194: uint16(0x8d5), + 195: uint16(0x8d5), + 196: uint16(0x8d5), + 197: uint16(0x8d5), + 198: uint16(0x8d5), + 199: uint16(0x8c5), + 200: uint16(0x8c5), + 201: uint16(0x8c5), + 202: uint16(0x8c5), + 203: uint16(0x8c5), + 204: uint16(0x8c5), + 205: uint16(0x8c5), + 206: uint16(0x8c5), + 207: uint16(0x8c5), + 208: uint16(0x8c5), + 209: uint16(0x8c5), + 210: uint16(0x8c5), + 211: uint16(0x8c5), + 212: uint16(0x8c5), + 213: uint16(0x8c5), + 214: uint16(0x8c5), + 215: uint16(0x8c5), + 216: uint16(0x8c5), + 217: uint16(0x8c5), + 218: uint16(0x8c5), + 219: uint16(0x4c0), + 220: uint16(0x4c0), + 221: uint16(0x4c0), + 222: uint16(0x4c0), + 223: uint16(0x4c0), + 224: uint16(0x4c0), + 225: uint16(0x8d6), + 226: uint16(0x8d6), + 227: uint16(0x8d6), + 228: uint16(0x8d6), + 229: uint16(0x8d6), + 230: uint16(0x8d6), + 231: uint16(0x8c6), + 232: uint16(0x8c6), + 233: uint16(0x8c6), + 234: uint16(0x8c6), + 235: uint16(0x8c6), + 236: uint16(0x8c6), + 237: uint16(0x8c6), + 238: uint16(0x8c6), + 239: uint16(0x8c6), + 240: uint16(0x8c6), + 241: uint16(0x8c6), + 242: uint16(0x8c6), + 243: uint16(0x8c6), + 244: uint16(0x8c6), + 245: uint16(0x8c6), + 246: uint16(0x8c6), + 247: uint16(0x8c6), + 248: uint16(0x8c6), + 249: uint16(0x8c6), + 250: uint16(0x8c6), + 251: uint16(0x4c0), + 252: uint16(0x4c0), + 253: uint16(0x4c0), + 254: uint16(0x4c0), + 255: uint16(0x200), +} + +var _ptable = uintptr(unsafe.Pointer(&_table)) + uintptr(128)*2 + +func X__ctype_b_loc(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(unsafe.Pointer(&_ptable)) +} + +const CLOCKS_PER_SEC = 1000000 +const CLOCK_BOOTTIME = 7 +const CLOCK_BOOTTIME_ALARM = 9 +const CLOCK_MONOTONIC = 1 +const CLOCK_MONOTONIC_COARSE = 6 +const CLOCK_MONOTONIC_RAW = 4 +const CLOCK_PROCESS_CPUTIME_ID = 2 +const CLOCK_REALTIME = 0 +const CLOCK_REALTIME_ALARM = 8 +const CLOCK_REALTIME_COARSE = 5 +const CLOCK_SGI_CYCLE = 10 +const CLOCK_TAI = 11 +const CLOCK_THREAD_CPUTIME_ID = 3 +const C_LOCALE = 0 +const DEFAULT_GUARD_MAX = 1048576 +const DEFAULT_GUARD_SIZE = 8192 +const DEFAULT_STACK_MAX = 8388608 +const DEFAULT_STACK_SIZE = 131072 +const DTP_OFFSET = 0 +const FUTEX_CLOCK_REALTIME = 256 +const FUTEX_CMP_REQUEUE = 4 +const FUTEX_FD = 2 +const FUTEX_LOCK_PI = 6 +const FUTEX_PRIVATE = 128 +const FUTEX_REQUEUE = 3 +const FUTEX_TRYLOCK_PI = 8 +const FUTEX_UNLOCK_PI = 7 +const FUTEX_WAIT = 0 +const FUTEX_WAIT_BITSET = 9 +const FUTEX_WAKE = 1 +const FUTEX_WAKE_OP = 5 +const LC_ALL = 6 +const LC_ALL_MASK = 2147483647 +const LC_COLLATE = 3 +const LC_COLLATE_MASK = 8 +const LC_CTYPE = 0 +const LC_CTYPE_MASK = 1 +const LC_GLOBAL_LOCALE = -1 +const LC_MESSAGES = 5 +const LC_MESSAGES_MASK = 32 +const LC_MONETARY = 4 +const LC_MONETARY_MASK = 16 +const LC_NUMERIC = 1 +const LC_NUMERIC_MASK = 2 +const LC_TIME = 2 +const LC_TIME_MASK = 4 +const LOCALE_NAME_MAX = 23 +const MAP_ANON = 32 +const MAP_ANONYMOUS = 32 +const MAP_DENYWRITE = 2048 +const MAP_EXECUTABLE = 4096 +const MAP_FAILED = -1 +const MAP_FILE = 0 +const MAP_FIXED = 16 +const MAP_FIXED_NOREPLACE = 1048576 +const MAP_GROWSDOWN = 256 +const MAP_HUGETLB = 262144 +const MAP_HUGE_16GB = 2281701376 +const MAP_HUGE_16KB = 939524096 +const MAP_HUGE_16MB = 1610612736 +const MAP_HUGE_1GB = 2013265920 +const MAP_HUGE_1MB = 1342177280 +const MAP_HUGE_256MB = 1879048192 +const MAP_HUGE_2GB = 2080374784 +const MAP_HUGE_2MB = 1409286144 +const MAP_HUGE_32MB = 1677721600 +const MAP_HUGE_512KB = 1275068416 +const MAP_HUGE_512MB = 1946157056 +const MAP_HUGE_64KB = 1073741824 +const MAP_HUGE_8MB = 1543503872 +const MAP_HUGE_MASK = 63 +const MAP_HUGE_SHIFT = 26 +const MAP_LOCKED = 8192 +const MAP_NONBLOCK = 65536 +const MAP_NORESERVE = 16384 +const MAP_POPULATE = 32768 +const MAP_PRIVATE = 2 +const MAP_SHARED = 1 +const MAP_SHARED_VALIDATE = 3 +const MAP_STACK = 131072 +const MAP_SYNC = 524288 +const MAP_TYPE = 15 +const MCL_CURRENT = 1 +const MCL_FUTURE = 2 +const MCL_ONFAULT = 4 +const MS_ASYNC = 1 +const MS_INVALIDATE = 2 +const MS_SYNC = 4 +const POSIX_MADV_DONTNEED = 4 +const POSIX_MADV_NORMAL = 0 +const POSIX_MADV_RANDOM = 1 +const POSIX_MADV_SEQUENTIAL = 2 +const POSIX_MADV_WILLNEED = 3 +const PROT_EXEC = 4 +const PROT_GROWSDOWN = 16777216 +const PROT_GROWSUP = 33554432 +const PROT_NONE = 0 +const PROT_READ = 1 +const PROT_WRITE = 2 +const PTHREAD_BARRIER_SERIAL_THREAD = -1 +const PTHREAD_CANCELED = -1 +const PTHREAD_CANCEL_ASYNCHRONOUS = 1 +const PTHREAD_CANCEL_DEFERRED = 0 +const PTHREAD_CANCEL_DISABLE = 1 +const PTHREAD_CANCEL_ENABLE = 0 +const PTHREAD_CANCEL_MASKED = 2 +const PTHREAD_CREATE_DETACHED = 1 +const PTHREAD_CREATE_JOINABLE = 0 +const PTHREAD_EXPLICIT_SCHED = 1 +const PTHREAD_INHERIT_SCHED = 0 +const PTHREAD_MUTEX_DEFAULT = 0 +const PTHREAD_MUTEX_ERRORCHECK = 2 +const PTHREAD_MUTEX_NORMAL = 0 +const PTHREAD_MUTEX_RECURSIVE = 1 +const PTHREAD_MUTEX_ROBUST = 1 +const PTHREAD_MUTEX_STALLED = 0 +const PTHREAD_ONCE_INIT = 0 +const PTHREAD_PRIO_INHERIT = 1 +const PTHREAD_PRIO_NONE = 0 +const PTHREAD_PRIO_PROTECT = 2 +const PTHREAD_PROCESS_PRIVATE = 0 +const PTHREAD_PROCESS_SHARED = 1 +const PTHREAD_SCOPE_PROCESS = 1 +const PTHREAD_SCOPE_SYSTEM = 0 +const SCHED_BATCH = 3 +const SCHED_DEADLINE = 6 +const SCHED_FIFO = 1 +const SCHED_IDLE = 5 +const SCHED_OTHER = 0 +const SCHED_RESET_ON_FORK = 1073741824 +const SCHED_RR = 2 +const SIGCANCEL = 33 +const SIGSYNCCALL = 34 +const SIGTIMER = 32 +const TIMER_ABSTIME = 1 +const TIME_UTC = 1 +const TP_OFFSET = 0 +const UTF8_LOCALE = 0 +const __CCGO_SIZEOF_GO_MUTEX = 8 +const __SU = 0 +const a_spin = 0 +const pthread = 0 +const tls_mod_off_t = 0 + +type Tlconv = struct { + Fdecimal_point uintptr + Fthousands_sep uintptr + Fgrouping uintptr + Fint_curr_symbol uintptr + Fcurrency_symbol uintptr + Fmon_decimal_point uintptr + Fmon_thousands_sep uintptr + Fmon_grouping uintptr + Fpositive_sign uintptr + Fnegative_sign uintptr + Fint_frac_digits uint8 + Ffrac_digits uint8 + Fp_cs_precedes uint8 + Fp_sep_by_space uint8 + Fn_cs_precedes uint8 + Fn_sep_by_space uint8 + Fp_sign_posn uint8 + Fn_sign_posn uint8 + Fint_p_cs_precedes uint8 + Fint_p_sep_by_space uint8 + Fint_n_cs_precedes uint8 + Fint_n_sep_by_space uint8 + Fint_p_sign_posn uint8 + Fint_n_sign_posn uint8 +} + +type t__locale_map = struct { + Fmap1 uintptr + Fmap_size Tsize_t + Fname [24]uint8 + Fnext uintptr +} + +type Tclockid_t = int32 + +type t__pthread = struct { + Fself uintptr + Fdtv uintptr + Fprev uintptr + Fnext uintptr + Fsysinfo Tuintptr_t + Fcanary Tuintptr_t + Ftid int32 + Ferrno_val int32 + Fdetach_state int32 + Fcancel int32 + Fcanceldisable uint8 + Fcancelasync uint8 + F__ccgo66 uint8 + Fmap_base uintptr + Fmap_size Tsize_t + Fstack uintptr + Fstack_size Tsize_t + Fguard_size Tsize_t + Fresult uintptr + Fcancelbuf uintptr + Ftsd uintptr + Frobust_list struct { + Fhead uintptr + Foff int64 + Fpending uintptr + } + Fh_errno_val int32 + Ftimer_id int32 + Flocale Tlocale_t + Fkilllock [1]int32 + Fdlerror_buf uintptr + Fstdio_locks uintptr + F__ccgo_join_mutex [1]int64 +} + +type Tpthread_once_t = int32 + +type Tpthread_key_t = uint32 + +type Tpthread_spinlock_t = int32 + +type Tpthread_mutexattr_t = struct { + F__attr uint32 +} + +type Tpthread_condattr_t = struct { + F__attr uint32 +} + +type Tpthread_barrierattr_t = struct { + F__attr uint32 +} + +type Tpthread_rwlockattr_t = struct { + F__attr [2]uint32 +} + +type Tpthread_mutex_t = struct { + F__u struct { + F__vi [0][10]int32 + F__p [0][5]uintptr + F__i [10]int32 + } +} + +type Tpthread_cond_t = struct { + F__u struct { + F__vi [0][12]int32 + F__p [0][6]uintptr + F__i [12]int32 + } +} + +type Tpthread_rwlock_t = struct { + F__u struct { + F__vi [0][14]int32 + F__p [0][7]uintptr + F__i [14]int32 + } +} + +type Tpthread_barrier_t = struct { + F__u struct { + F__vi [0][8]int32 + F__p [0][4]uintptr + F__i [8]int32 + } +} + +type Tsched_param = struct { + Fsched_priority int32 + F__reserved1 int32 + F__reserved2 [2]struct { + F__reserved1 Ttime_t + F__reserved2 int64 + } + F__reserved3 int32 +} + +type Ttimer_t = uintptr + +type Ttm = struct { + Ftm_sec int32 + Ftm_min int32 + Ftm_hour int32 + Ftm_mday int32 + Ftm_mon int32 + Ftm_year int32 + Ftm_wday int32 + Ftm_yday int32 + Ftm_isdst int32 + F__tm_gmtoff int64 + F__tm_zone uintptr +} + +type Titimerspec = struct { + Fit_interval Ttimespec + Fit_value Ttimespec +} + +type t__ptcb = struct { + F__f uintptr + F__x uintptr + F__next uintptr +} + +type Tmode_t = uint32 + +const _DT_EXITED = 0 +const _DT_EXITING = 1 +const _DT_JOINABLE = 2 +const _DT_DETACHED = 3 + +func X__ctype_get_mb_cur_max(tls *TLS) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + _ = v1 + if !!(**(**uintptr)(__ccgo_up((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale)) != 0) { + v1 = int32(4) + } else { + v1 = int32(1) + } + return Uint64FromInt32(v1) +} + +var _table1 = [384]Tint32_t{ + 129: int32(1), + 130: int32(2), + 131: int32(3), + 132: int32(4), + 133: int32(5), + 134: int32(6), + 135: int32(7), + 136: int32(8), + 137: int32(9), + 138: int32(10), + 139: int32(11), + 140: int32(12), + 141: int32(13), + 142: int32(14), + 143: int32(15), + 144: int32(16), + 145: int32(17), + 146: int32(18), + 147: int32(19), + 148: int32(20), + 149: int32(21), + 150: int32(22), + 151: int32(23), + 152: int32(24), + 153: int32(25), + 154: int32(26), + 155: int32(27), + 156: int32(28), + 157: int32(29), + 158: int32(30), + 159: int32(31), + 160: int32(32), + 161: int32(33), + 162: int32(34), + 163: int32(35), + 164: int32(36), + 165: int32(37), + 166: int32(38), + 167: int32(39), + 168: int32(40), + 169: int32(41), + 170: int32(42), + 171: int32(43), + 172: int32(44), + 173: int32(45), + 174: int32(46), + 175: int32(47), + 176: int32(48), + 177: int32(49), + 178: int32(50), + 179: int32(51), + 180: int32(52), + 181: int32(53), + 182: int32(54), + 183: int32(55), + 184: int32(56), + 185: int32(57), + 186: int32(58), + 187: int32(59), + 188: int32(60), + 189: int32(61), + 190: int32(62), + 191: int32(63), + 192: int32(64), + 193: int32('a'), + 194: int32('b'), + 195: int32('c'), + 196: int32('d'), + 197: int32('e'), + 198: int32('f'), + 199: int32('g'), + 200: int32('h'), + 201: int32('i'), + 202: int32('j'), + 203: int32('k'), + 204: int32('l'), + 205: int32('m'), + 206: int32('n'), + 207: int32('o'), + 208: int32('p'), + 209: int32('q'), + 210: int32('r'), + 211: int32('s'), + 212: int32('t'), + 213: int32('u'), + 214: int32('v'), + 215: int32('w'), + 216: int32('x'), + 217: int32('y'), + 218: int32('z'), + 219: int32(91), + 220: int32(92), + 221: int32(93), + 222: int32(94), + 223: int32(95), + 224: int32(96), + 225: int32('a'), + 226: int32('b'), + 227: int32('c'), + 228: int32('d'), + 229: int32('e'), + 230: int32('f'), + 231: int32('g'), + 232: int32('h'), + 233: int32('i'), + 234: int32('j'), + 235: int32('k'), + 236: int32('l'), + 237: int32('m'), + 238: int32('n'), + 239: int32('o'), + 240: int32('p'), + 241: int32('q'), + 242: int32('r'), + 243: int32('s'), + 244: int32('t'), + 245: int32('u'), + 246: int32('v'), + 247: int32('w'), + 248: int32('x'), + 249: int32('y'), + 250: int32('z'), + 251: int32(123), + 252: int32(124), + 253: int32(125), + 254: int32(126), + 255: int32(127), +} + +var _ptable1 = uintptr(unsafe.Pointer(&_table1)) + uintptr(128)*4 + +func X__ctype_tolower_loc(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(unsafe.Pointer(&_ptable1)) +} + +var _table2 = [384]Tint32_t{ + 129: int32(1), + 130: int32(2), + 131: int32(3), + 132: int32(4), + 133: int32(5), + 134: int32(6), + 135: int32(7), + 136: int32(8), + 137: int32(9), + 138: int32(10), + 139: int32(11), + 140: int32(12), + 141: int32(13), + 142: int32(14), + 143: int32(15), + 144: int32(16), + 145: int32(17), + 146: int32(18), + 147: int32(19), + 148: int32(20), + 149: int32(21), + 150: int32(22), + 151: int32(23), + 152: int32(24), + 153: int32(25), + 154: int32(26), + 155: int32(27), + 156: int32(28), + 157: int32(29), + 158: int32(30), + 159: int32(31), + 160: int32(32), + 161: int32(33), + 162: int32(34), + 163: int32(35), + 164: int32(36), + 165: int32(37), + 166: int32(38), + 167: int32(39), + 168: int32(40), + 169: int32(41), + 170: int32(42), + 171: int32(43), + 172: int32(44), + 173: int32(45), + 174: int32(46), + 175: int32(47), + 176: int32(48), + 177: int32(49), + 178: int32(50), + 179: int32(51), + 180: int32(52), + 181: int32(53), + 182: int32(54), + 183: int32(55), + 184: int32(56), + 185: int32(57), + 186: int32(58), + 187: int32(59), + 188: int32(60), + 189: int32(61), + 190: int32(62), + 191: int32(63), + 192: int32(64), + 193: int32('A'), + 194: int32('B'), + 195: int32('C'), + 196: int32('D'), + 197: int32('E'), + 198: int32('F'), + 199: int32('G'), + 200: int32('H'), + 201: int32('I'), + 202: int32('J'), + 203: int32('K'), + 204: int32('L'), + 205: int32('M'), + 206: int32('N'), + 207: int32('O'), + 208: int32('P'), + 209: int32('Q'), + 210: int32('R'), + 211: int32('S'), + 212: int32('T'), + 213: int32('U'), + 214: int32('V'), + 215: int32('W'), + 216: int32('X'), + 217: int32('Y'), + 218: int32('Z'), + 219: int32(91), + 220: int32(92), + 221: int32(93), + 222: int32(94), + 223: int32(95), + 224: int32(96), + 225: int32('A'), + 226: int32('B'), + 227: int32('C'), + 228: int32('D'), + 229: int32('E'), + 230: int32('F'), + 231: int32('G'), + 232: int32('H'), + 233: int32('I'), + 234: int32('J'), + 235: int32('K'), + 236: int32('L'), + 237: int32('M'), + 238: int32('N'), + 239: int32('O'), + 240: int32('P'), + 241: int32('Q'), + 242: int32('R'), + 243: int32('S'), + 244: int32('T'), + 245: int32('U'), + 246: int32('V'), + 247: int32('W'), + 248: int32('X'), + 249: int32('Y'), + 250: int32('Z'), + 251: int32(123), + 252: int32(124), + 253: int32(125), + 254: int32(126), + 255: int32(127), +} + +var _ptable2 = uintptr(unsafe.Pointer(&_table2)) + uintptr(128)*4 + +func X__ctype_toupper_loc(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(unsafe.Pointer(&_ptable2)) +} + +func Xisalnum(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(BoolInt32(Uint32FromInt32(c)|uint32(32)-uint32('a') < uint32(26)) != 0 || BoolInt32(Uint32FromInt32(c)-uint32('0') < uint32(10)) != 0) +} + +func X__isalnum_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xisalnum(tls, c) +} + +func Xisalnum_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__isalnum_l(tls, c, l) +} + +func Xisalpha(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(Uint32FromInt32(c)|uint32(32)-uint32('a') < uint32(26)) +} + +func X__isalpha_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xisalpha(tls, c) +} + +func Xisalpha_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__isalpha_l(tls, c, l) +} + +func Xisascii(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(!(c & ^Int32FromInt32(0x7f) != 0)) +} + +func Xisblank(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(c == int32(' ') || c == int32('\t')) +} + +func X__isblank_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xisblank(tls, c) +} + +func Xisblank_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__isblank_l(tls, c, l) +} + +func Xiscntrl(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(Uint32FromInt32(c) < uint32(0x20) || c == int32(0x7f)) +} + +func X__iscntrl_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiscntrl(tls, c) +} + +func Xiscntrl_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iscntrl_l(tls, c, l) +} + +func Xisdigit(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(Uint32FromInt32(c)-uint32('0') < uint32(10)) +} + +func X__isdigit_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xisdigit(tls, c) +} + +func Xisdigit_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__isdigit_l(tls, c, l) +} + +func Xisgraph(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(Uint32FromInt32(c)-uint32(0x21) < uint32(0x5e)) +} + +func X__isgraph_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xisgraph(tls, c) +} + +func Xisgraph_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__isgraph_l(tls, c, l) +} + +func Xislower(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(Uint32FromInt32(c)-uint32('a') < uint32(26)) +} + +func X__islower_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xislower(tls, c) +} + +func Xislower_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__islower_l(tls, c, l) +} + +func Xisprint(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(Uint32FromInt32(c)-uint32(0x20) < uint32(0x5f)) +} + +func X__isprint_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xisprint(tls, c) +} + +func Xisprint_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__isprint_l(tls, c, l) +} + +func Xispunct(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(BoolInt32(Uint32FromInt32(c)-uint32(0x21) < uint32(0x5e)) != 0 && !(Xisalnum(tls, c) != 0)) +} + +func X__ispunct_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xispunct(tls, c) +} + +func Xispunct_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__ispunct_l(tls, c, l) +} + +func Xisspace(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(c == int32(' ') || Uint32FromInt32(c)-uint32('\t') < uint32(5)) +} + +func X__isspace_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xisspace(tls, c) +} + +func Xisspace_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__isspace_l(tls, c, l) +} + +func Xisupper(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(Uint32FromInt32(c)-uint32('A') < uint32(26)) +} + +func X__isupper_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xisupper(tls, c) +} + +func Xisupper_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__isupper_l(tls, c, l) +} + +type Twint_t = uint32 + +type Twctype_t = uint64 + +type Twctrans_t = uintptr + +func Xiswalnum(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(BoolInt32(wc-uint32('0') < uint32(10)) != 0 || Xiswalpha(tls, wc) != 0) +} + +func X__iswalnum_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswalnum(tls, c) +} + +func Xiswalnum_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswalnum_l(tls, c, l) +} + +var _table3 = [3904]uint8{ + 0: uint8(18), + 1: uint8(17), + 2: uint8(19), + 3: uint8(20), + 4: uint8(21), + 5: uint8(22), + 6: uint8(23), + 7: uint8(24), + 8: uint8(25), + 9: uint8(26), + 10: uint8(27), + 11: uint8(28), + 12: uint8(29), + 13: uint8(30), + 14: uint8(31), + 15: uint8(32), + 16: uint8(33), + 17: uint8(17), + 18: uint8(34), + 19: uint8(35), + 20: uint8(36), + 21: uint8(17), + 22: uint8(37), + 23: uint8(38), + 24: uint8(39), + 25: uint8(40), + 26: uint8(41), + 27: uint8(42), + 28: uint8(43), + 29: uint8(44), + 30: uint8(17), + 31: uint8(45), + 32: uint8(46), + 33: uint8(47), + 34: uint8(16), + 35: uint8(16), + 36: uint8(48), + 37: uint8(16), + 38: uint8(16), + 39: uint8(16), + 40: uint8(16), + 41: uint8(16), + 42: uint8(16), + 43: uint8(16), + 44: uint8(49), + 45: uint8(50), + 46: uint8(51), + 47: uint8(16), + 48: uint8(52), + 49: uint8(53), + 50: uint8(16), + 51: uint8(16), + 52: uint8(17), + 53: uint8(17), + 54: uint8(17), + 55: uint8(17), + 56: uint8(17), + 57: uint8(17), + 58: uint8(17), + 59: uint8(17), + 60: uint8(17), + 61: uint8(17), + 62: uint8(17), + 63: uint8(17), + 64: uint8(17), + 65: uint8(17), + 66: uint8(17), + 67: uint8(17), + 68: uint8(17), + 69: uint8(17), + 70: uint8(17), + 71: uint8(17), + 72: uint8(17), + 73: uint8(17), + 74: uint8(17), + 75: uint8(17), + 76: uint8(17), + 77: uint8(54), + 78: uint8(17), + 79: uint8(17), + 80: uint8(17), + 81: uint8(17), + 82: uint8(17), + 83: uint8(17), + 84: uint8(17), + 85: uint8(17), + 86: uint8(17), + 87: uint8(17), + 88: uint8(17), + 89: uint8(17), + 90: uint8(17), + 91: uint8(17), + 92: uint8(17), + 93: uint8(17), + 94: uint8(17), + 95: uint8(17), + 96: uint8(17), + 97: uint8(17), + 98: uint8(17), + 99: uint8(17), + 100: uint8(17), + 101: uint8(17), + 102: uint8(17), + 103: uint8(17), + 104: uint8(17), + 105: uint8(17), + 106: uint8(17), + 107: uint8(17), + 108: uint8(17), + 109: uint8(17), + 110: uint8(17), + 111: uint8(17), + 112: uint8(17), + 113: uint8(17), + 114: uint8(17), + 115: uint8(17), + 116: uint8(17), + 117: uint8(17), + 118: uint8(17), + 119: uint8(17), + 120: uint8(17), + 121: uint8(17), + 122: uint8(17), + 123: uint8(17), + 124: uint8(17), + 125: uint8(17), + 126: uint8(17), + 127: uint8(17), + 128: uint8(17), + 129: uint8(17), + 130: uint8(17), + 131: uint8(17), + 132: uint8(17), + 133: uint8(17), + 134: uint8(17), + 135: uint8(17), + 136: uint8(17), + 137: uint8(17), + 138: uint8(17), + 139: uint8(17), + 140: uint8(17), + 141: uint8(17), + 142: uint8(17), + 143: uint8(17), + 144: uint8(17), + 145: uint8(17), + 146: uint8(17), + 147: uint8(17), + 148: uint8(17), + 149: uint8(17), + 150: uint8(17), + 151: uint8(17), + 152: uint8(17), + 153: uint8(17), + 154: uint8(17), + 155: uint8(17), + 156: uint8(17), + 157: uint8(17), + 158: uint8(17), + 159: uint8(55), + 160: uint8(17), + 161: uint8(17), + 162: uint8(17), + 163: uint8(17), + 164: uint8(56), + 165: uint8(17), + 166: uint8(57), + 167: uint8(58), + 168: uint8(59), + 169: uint8(60), + 170: uint8(61), + 171: uint8(62), + 172: uint8(17), + 173: uint8(17), + 174: uint8(17), + 175: uint8(17), + 176: uint8(17), + 177: uint8(17), + 178: uint8(17), + 179: uint8(17), + 180: uint8(17), + 181: uint8(17), + 182: uint8(17), + 183: uint8(17), + 184: uint8(17), + 185: uint8(17), + 186: uint8(17), + 187: uint8(17), + 188: uint8(17), + 189: uint8(17), + 190: uint8(17), + 191: uint8(17), + 192: uint8(17), + 193: uint8(17), + 194: uint8(17), + 195: uint8(17), + 196: uint8(17), + 197: uint8(17), + 198: uint8(17), + 199: uint8(17), + 200: uint8(17), + 201: uint8(17), + 202: uint8(17), + 203: uint8(17), + 204: uint8(17), + 205: uint8(17), + 206: uint8(17), + 207: uint8(17), + 208: uint8(17), + 209: uint8(17), + 210: uint8(17), + 211: uint8(17), + 212: uint8(17), + 213: uint8(17), + 214: uint8(17), + 215: uint8(63), + 216: uint8(16), + 217: uint8(16), + 218: uint8(16), + 219: uint8(16), + 220: uint8(16), + 221: uint8(16), + 222: uint8(16), + 223: uint8(16), + 224: uint8(16), + 225: uint8(16), + 226: uint8(16), + 227: uint8(16), + 228: uint8(16), + 229: uint8(16), + 230: uint8(16), + 231: uint8(16), + 232: uint8(16), + 233: uint8(16), + 234: uint8(16), + 235: uint8(16), + 236: uint8(16), + 237: uint8(16), + 238: uint8(16), + 239: uint8(16), + 240: uint8(16), + 241: uint8(16), + 242: uint8(16), + 243: uint8(16), + 244: uint8(16), + 245: uint8(16), + 246: uint8(16), + 247: uint8(16), + 248: uint8(16), + 249: uint8(17), + 250: uint8(64), + 251: uint8(65), + 252: uint8(17), + 253: uint8(66), + 254: uint8(67), + 255: uint8(68), + 256: uint8(69), + 257: uint8(70), + 258: uint8(71), + 259: uint8(72), + 260: uint8(73), + 261: uint8(74), + 262: uint8(17), + 263: uint8(75), + 264: uint8(76), + 265: uint8(77), + 266: uint8(78), + 267: uint8(79), + 268: uint8(80), + 269: uint8(81), + 270: uint8(16), + 271: uint8(82), + 272: uint8(83), + 273: uint8(84), + 274: uint8(85), + 275: uint8(86), + 276: uint8(87), + 277: uint8(88), + 278: uint8(89), + 279: uint8(90), + 280: uint8(91), + 281: uint8(92), + 282: uint8(93), + 283: uint8(16), + 284: uint8(94), + 285: uint8(95), + 286: uint8(96), + 287: uint8(16), + 288: uint8(17), + 289: uint8(17), + 290: uint8(17), + 291: uint8(97), + 292: uint8(98), + 293: uint8(99), + 294: uint8(16), + 295: uint8(16), + 296: uint8(16), + 297: uint8(16), + 298: uint8(16), + 299: uint8(16), + 300: uint8(16), + 301: uint8(16), + 302: uint8(16), + 303: uint8(16), + 304: uint8(17), + 305: uint8(17), + 306: uint8(17), + 307: uint8(17), + 308: uint8(100), + 309: uint8(16), + 310: uint8(16), + 311: uint8(16), + 312: uint8(16), + 313: uint8(16), + 314: uint8(16), + 315: uint8(16), + 316: uint8(16), + 317: uint8(16), + 318: uint8(16), + 319: uint8(16), + 320: uint8(16), + 321: uint8(16), + 322: uint8(16), + 323: uint8(16), + 324: uint8(17), + 325: uint8(17), + 326: uint8(101), + 327: uint8(16), + 328: uint8(16), + 329: uint8(16), + 330: uint8(16), + 331: uint8(16), + 332: uint8(16), + 333: uint8(16), + 334: uint8(16), + 335: uint8(16), + 336: uint8(16), + 337: uint8(16), + 338: uint8(16), + 339: uint8(16), + 340: uint8(16), + 341: uint8(16), + 342: uint8(16), + 343: uint8(16), + 344: uint8(16), + 345: uint8(16), + 346: uint8(16), + 347: uint8(16), + 348: uint8(16), + 349: uint8(16), + 350: uint8(16), + 351: uint8(16), + 352: uint8(16), + 353: uint8(16), + 354: uint8(16), + 355: uint8(16), + 356: uint8(16), + 357: uint8(16), + 358: uint8(16), + 359: uint8(16), + 360: uint8(17), + 361: uint8(17), + 362: uint8(102), + 363: uint8(103), + 364: uint8(16), + 365: uint8(16), + 366: uint8(104), + 367: uint8(105), + 368: uint8(17), + 369: uint8(17), + 370: uint8(17), + 371: uint8(17), + 372: uint8(17), + 373: uint8(17), + 374: uint8(17), + 375: uint8(17), + 376: uint8(17), + 377: uint8(17), + 378: uint8(17), + 379: uint8(17), + 380: uint8(17), + 381: uint8(17), + 382: uint8(17), + 383: uint8(17), + 384: uint8(17), + 385: uint8(17), + 386: uint8(17), + 387: uint8(17), + 388: uint8(17), + 389: uint8(17), + 390: uint8(17), + 391: uint8(106), + 392: uint8(17), + 393: uint8(17), + 394: uint8(107), + 395: uint8(16), + 396: uint8(16), + 397: uint8(16), + 398: uint8(16), + 399: uint8(16), + 400: uint8(16), + 401: uint8(16), + 402: uint8(16), + 403: uint8(16), + 404: uint8(16), + 405: uint8(16), + 406: uint8(16), + 407: uint8(16), + 408: uint8(16), + 409: uint8(16), + 410: uint8(16), + 411: uint8(16), + 412: uint8(16), + 413: uint8(16), + 414: uint8(16), + 415: uint8(16), + 416: uint8(16), + 417: uint8(16), + 418: uint8(16), + 419: uint8(16), + 420: uint8(16), + 421: uint8(16), + 422: uint8(16), + 423: uint8(16), + 424: uint8(16), + 425: uint8(16), + 426: uint8(16), + 427: uint8(16), + 428: uint8(16), + 429: uint8(16), + 430: uint8(16), + 431: uint8(16), + 432: uint8(17), + 433: uint8(108), + 434: uint8(109), + 435: uint8(16), + 436: uint8(16), + 437: uint8(16), + 438: uint8(16), + 439: uint8(16), + 440: uint8(16), + 441: uint8(16), + 442: uint8(16), + 443: uint8(16), + 444: uint8(110), + 445: uint8(16), + 446: uint8(16), + 447: uint8(16), + 448: uint8(16), + 449: uint8(16), + 450: uint8(16), + 451: uint8(16), + 452: uint8(16), + 453: uint8(16), + 454: uint8(16), + 455: uint8(16), + 456: uint8(16), + 457: uint8(16), + 458: uint8(16), + 459: uint8(16), + 460: uint8(16), + 461: uint8(16), + 462: uint8(16), + 463: uint8(16), + 464: uint8(16), + 465: uint8(16), + 466: uint8(16), + 467: uint8(16), + 468: uint8(111), + 469: uint8(112), + 470: uint8(113), + 471: uint8(114), + 472: uint8(16), + 473: uint8(16), + 474: uint8(16), + 475: uint8(16), + 476: uint8(16), + 477: uint8(16), + 478: uint8(16), + 479: uint8(16), + 480: uint8(115), + 481: uint8(116), + 482: uint8(117), + 483: uint8(16), + 484: uint8(16), + 485: uint8(16), + 486: uint8(16), + 487: uint8(16), + 488: uint8(118), + 489: uint8(119), + 490: uint8(16), + 491: uint8(16), + 492: uint8(16), + 493: uint8(16), + 494: uint8(120), + 495: uint8(16), + 496: uint8(16), + 497: uint8(121), + 498: uint8(16), + 499: uint8(16), + 500: uint8(16), + 501: uint8(16), + 502: uint8(16), + 503: uint8(16), + 504: uint8(16), + 505: uint8(16), + 506: uint8(16), + 507: uint8(16), + 508: uint8(16), + 509: uint8(16), + 510: uint8(16), + 511: uint8(16), + 544: uint8(255), + 545: uint8(255), + 546: uint8(255), + 547: uint8(255), + 548: uint8(255), + 549: uint8(255), + 550: uint8(255), + 551: uint8(255), + 552: uint8(255), + 553: uint8(255), + 554: uint8(255), + 555: uint8(255), + 556: uint8(255), + 557: uint8(255), + 558: uint8(255), + 559: uint8(255), + 560: uint8(255), + 561: uint8(255), + 562: uint8(255), + 563: uint8(255), + 564: uint8(255), + 565: uint8(255), + 566: uint8(255), + 567: uint8(255), + 568: uint8(255), + 569: uint8(255), + 570: uint8(255), + 571: uint8(255), + 572: uint8(255), + 573: uint8(255), + 574: uint8(255), + 575: uint8(255), + 584: uint8(254), + 585: uint8(255), + 586: uint8(255), + 587: uint8(7), + 588: uint8(254), + 589: uint8(255), + 590: uint8(255), + 591: uint8(7), + 597: uint8(4), + 598: uint8(32), + 599: uint8(4), + 600: uint8(255), + 601: uint8(255), + 602: uint8(127), + 603: uint8(255), + 604: uint8(255), + 605: uint8(255), + 606: uint8(127), + 607: uint8(255), + 608: uint8(255), + 609: uint8(255), + 610: uint8(255), + 611: uint8(255), + 612: uint8(255), + 613: uint8(255), + 614: uint8(255), + 615: uint8(255), + 616: uint8(255), + 617: uint8(255), + 618: uint8(255), + 619: uint8(255), + 620: uint8(255), + 621: uint8(255), + 622: uint8(255), + 623: uint8(255), + 624: uint8(255), + 625: uint8(255), + 626: uint8(255), + 627: uint8(255), + 628: uint8(255), + 629: uint8(255), + 630: uint8(255), + 631: uint8(255), + 632: uint8(195), + 633: uint8(255), + 634: uint8(3), + 636: uint8(31), + 637: uint8(80), + 648: uint8(32), + 654: uint8(223), + 655: uint8(188), + 656: uint8(64), + 657: uint8(215), + 658: uint8(255), + 659: uint8(255), + 660: uint8(251), + 661: uint8(255), + 662: uint8(255), + 663: uint8(255), + 664: uint8(255), + 665: uint8(255), + 666: uint8(255), + 667: uint8(255), + 668: uint8(255), + 669: uint8(255), + 670: uint8(191), + 671: uint8(255), + 672: uint8(255), + 673: uint8(255), + 674: uint8(255), + 675: uint8(255), + 676: uint8(255), + 677: uint8(255), + 678: uint8(255), + 679: uint8(255), + 680: uint8(255), + 681: uint8(255), + 682: uint8(255), + 683: uint8(255), + 684: uint8(255), + 685: uint8(255), + 686: uint8(255), + 687: uint8(255), + 688: uint8(3), + 689: uint8(252), + 690: uint8(255), + 691: uint8(255), + 692: uint8(255), + 693: uint8(255), + 694: uint8(255), + 695: uint8(255), + 696: uint8(255), + 697: uint8(255), + 698: uint8(255), + 699: uint8(255), + 700: uint8(255), + 701: uint8(255), + 702: uint8(255), + 703: uint8(255), + 704: uint8(255), + 705: uint8(255), + 706: uint8(255), + 707: uint8(255), + 708: uint8(255), + 709: uint8(255), + 710: uint8(254), + 711: uint8(255), + 712: uint8(255), + 713: uint8(255), + 714: uint8(127), + 715: uint8(2), + 716: uint8(255), + 717: uint8(255), + 718: uint8(255), + 719: uint8(255), + 720: uint8(255), + 721: uint8(1), + 726: uint8(255), + 727: uint8(191), + 728: uint8(182), + 730: uint8(255), + 731: uint8(255), + 732: uint8(255), + 733: uint8(135), + 734: uint8(7), + 738: uint8(255), + 739: uint8(7), + 740: uint8(255), + 741: uint8(255), + 742: uint8(255), + 743: uint8(255), + 744: uint8(255), + 745: uint8(255), + 746: uint8(255), + 747: uint8(254), + 748: uint8(255), + 749: uint8(195), + 750: uint8(255), + 751: uint8(255), + 752: uint8(255), + 753: uint8(255), + 754: uint8(255), + 755: uint8(255), + 756: uint8(255), + 757: uint8(255), + 758: uint8(255), + 759: uint8(255), + 760: uint8(255), + 761: uint8(255), + 762: uint8(239), + 763: uint8(31), + 764: uint8(254), + 765: uint8(225), + 766: uint8(255), + 767: uint8(159), + 770: uint8(255), + 771: uint8(255), + 772: uint8(255), + 773: uint8(255), + 774: uint8(255), + 775: uint8(255), + 777: uint8(224), + 778: uint8(255), + 779: uint8(255), + 780: uint8(255), + 781: uint8(255), + 782: uint8(255), + 783: uint8(255), + 784: uint8(255), + 785: uint8(255), + 786: uint8(255), + 787: uint8(255), + 788: uint8(255), + 789: uint8(255), + 790: uint8(3), + 792: uint8(255), + 793: uint8(255), + 794: uint8(255), + 795: uint8(255), + 796: uint8(255), + 797: uint8(7), + 798: uint8(48), + 799: uint8(4), + 800: uint8(255), + 801: uint8(255), + 802: uint8(255), + 803: uint8(252), + 804: uint8(255), + 805: uint8(31), + 808: uint8(255), + 809: uint8(255), + 810: uint8(255), + 811: uint8(1), + 812: uint8(255), + 813: uint8(7), + 820: uint8(255), + 821: uint8(255), + 822: uint8(223), + 823: uint8(63), + 826: uint8(240), + 827: uint8(255), + 828: uint8(248), + 829: uint8(3), + 830: uint8(255), + 831: uint8(255), + 832: uint8(255), + 833: uint8(255), + 834: uint8(255), + 835: uint8(255), + 836: uint8(255), + 837: uint8(255), + 838: uint8(255), + 839: uint8(239), + 840: uint8(255), + 841: uint8(223), + 842: uint8(225), + 843: uint8(255), + 844: uint8(207), + 845: uint8(255), + 846: uint8(254), + 847: uint8(255), + 848: uint8(239), + 849: uint8(159), + 850: uint8(249), + 851: uint8(255), + 852: uint8(255), + 853: uint8(253), + 854: uint8(197), + 855: uint8(227), + 856: uint8(159), + 857: uint8(89), + 858: uint8(128), + 859: uint8(176), + 860: uint8(207), + 861: uint8(255), + 862: uint8(3), + 863: uint8(16), + 864: uint8(238), + 865: uint8(135), + 866: uint8(249), + 867: uint8(255), + 868: uint8(255), + 869: uint8(253), + 870: uint8(109), + 871: uint8(195), + 872: uint8(135), + 873: uint8(25), + 874: uint8(2), + 875: uint8(94), + 876: uint8(192), + 877: uint8(255), + 878: uint8(63), + 880: uint8(238), + 881: uint8(191), + 882: uint8(251), + 883: uint8(255), + 884: uint8(255), + 885: uint8(253), + 886: uint8(237), + 887: uint8(227), + 888: uint8(191), + 889: uint8(27), + 890: uint8(1), + 892: uint8(207), + 893: uint8(255), + 895: uint8(30), + 896: uint8(238), + 897: uint8(159), + 898: uint8(249), + 899: uint8(255), + 900: uint8(255), + 901: uint8(253), + 902: uint8(237), + 903: uint8(227), + 904: uint8(159), + 905: uint8(25), + 906: uint8(192), + 907: uint8(176), + 908: uint8(207), + 909: uint8(255), + 910: uint8(2), + 912: uint8(236), + 913: uint8(199), + 914: uint8(61), + 915: uint8(214), + 916: uint8(24), + 917: uint8(199), + 918: uint8(255), + 919: uint8(195), + 920: uint8(199), + 921: uint8(29), + 922: uint8(129), + 924: uint8(192), + 925: uint8(255), + 928: uint8(239), + 929: uint8(223), + 930: uint8(253), + 931: uint8(255), + 932: uint8(255), + 933: uint8(253), + 934: uint8(255), + 935: uint8(227), + 936: uint8(223), + 937: uint8(29), + 938: uint8(96), + 939: uint8(7), + 940: uint8(207), + 941: uint8(255), + 944: uint8(239), + 945: uint8(223), + 946: uint8(253), + 947: uint8(255), + 948: uint8(255), + 949: uint8(253), + 950: uint8(239), + 951: uint8(227), + 952: uint8(223), + 953: uint8(29), + 954: uint8(96), + 955: uint8(64), + 956: uint8(207), + 957: uint8(255), + 958: uint8(6), + 960: uint8(239), + 961: uint8(223), + 962: uint8(253), + 963: uint8(255), + 964: uint8(255), + 965: uint8(255), + 966: uint8(255), + 967: uint8(231), + 968: uint8(223), + 969: uint8(93), + 970: uint8(240), + 971: uint8(128), + 972: uint8(207), + 973: uint8(255), + 975: uint8(252), + 976: uint8(236), + 977: uint8(255), + 978: uint8(127), + 979: uint8(252), + 980: uint8(255), + 981: uint8(255), + 982: uint8(251), + 983: uint8(47), + 984: uint8(127), + 985: uint8(128), + 986: uint8(95), + 987: uint8(255), + 988: uint8(192), + 989: uint8(255), + 990: uint8(12), + 992: uint8(254), + 993: uint8(255), + 994: uint8(255), + 995: uint8(255), + 996: uint8(255), + 997: uint8(127), + 998: uint8(255), + 999: uint8(7), + 1000: uint8(63), + 1001: uint8(32), + 1002: uint8(255), + 1003: uint8(3), + 1008: uint8(214), + 1009: uint8(247), + 1010: uint8(255), + 1011: uint8(255), + 1012: uint8(175), + 1013: uint8(255), + 1014: uint8(255), + 1015: uint8(59), + 1016: uint8(95), + 1017: uint8(32), + 1018: uint8(255), + 1019: uint8(243), + 1024: uint8(1), + 1028: uint8(255), + 1029: uint8(3), + 1032: uint8(255), + 1033: uint8(254), + 1034: uint8(255), + 1035: uint8(255), + 1036: uint8(255), + 1037: uint8(31), + 1038: uint8(254), + 1039: uint8(255), + 1040: uint8(3), + 1041: uint8(255), + 1042: uint8(255), + 1043: uint8(254), + 1044: uint8(255), + 1045: uint8(255), + 1046: uint8(255), + 1047: uint8(31), + 1056: uint8(255), + 1057: uint8(255), + 1058: uint8(255), + 1059: uint8(255), + 1060: uint8(255), + 1061: uint8(255), + 1062: uint8(127), + 1063: uint8(249), + 1064: uint8(255), + 1065: uint8(3), + 1066: uint8(255), + 1067: uint8(255), + 1068: uint8(255), + 1069: uint8(255), + 1070: uint8(255), + 1071: uint8(255), + 1072: uint8(255), + 1073: uint8(255), + 1074: uint8(255), + 1075: uint8(63), + 1076: uint8(255), + 1077: uint8(255), + 1078: uint8(255), + 1079: uint8(255), + 1080: uint8(191), + 1081: uint8(32), + 1082: uint8(255), + 1083: uint8(255), + 1084: uint8(255), + 1085: uint8(255), + 1086: uint8(255), + 1087: uint8(247), + 1088: uint8(255), + 1089: uint8(255), + 1090: uint8(255), + 1091: uint8(255), + 1092: uint8(255), + 1093: uint8(255), + 1094: uint8(255), + 1095: uint8(255), + 1096: uint8(255), + 1097: uint8(61), + 1098: uint8(127), + 1099: uint8(61), + 1100: uint8(255), + 1101: uint8(255), + 1102: uint8(255), + 1103: uint8(255), + 1104: uint8(255), + 1105: uint8(61), + 1106: uint8(255), + 1107: uint8(255), + 1108: uint8(255), + 1109: uint8(255), + 1110: uint8(61), + 1111: uint8(127), + 1112: uint8(61), + 1113: uint8(255), + 1114: uint8(127), + 1115: uint8(255), + 1116: uint8(255), + 1117: uint8(255), + 1118: uint8(255), + 1119: uint8(255), + 1120: uint8(255), + 1121: uint8(255), + 1122: uint8(61), + 1123: uint8(255), + 1124: uint8(255), + 1125: uint8(255), + 1126: uint8(255), + 1127: uint8(255), + 1128: uint8(255), + 1129: uint8(255), + 1130: uint8(255), + 1131: uint8(7), + 1136: uint8(255), + 1137: uint8(255), + 1140: uint8(255), + 1141: uint8(255), + 1142: uint8(255), + 1143: uint8(255), + 1144: uint8(255), + 1145: uint8(255), + 1146: uint8(255), + 1147: uint8(255), + 1148: uint8(255), + 1149: uint8(255), + 1150: uint8(63), + 1151: uint8(63), + 1152: uint8(254), + 1153: uint8(255), + 1154: uint8(255), + 1155: uint8(255), + 1156: uint8(255), + 1157: uint8(255), + 1158: uint8(255), + 1159: uint8(255), + 1160: uint8(255), + 1161: uint8(255), + 1162: uint8(255), + 1163: uint8(255), + 1164: uint8(255), + 1165: uint8(255), + 1166: uint8(255), + 1167: uint8(255), + 1168: uint8(255), + 1169: uint8(255), + 1170: uint8(255), + 1171: uint8(255), + 1172: uint8(255), + 1173: uint8(255), + 1174: uint8(255), + 1175: uint8(255), + 1176: uint8(255), + 1177: uint8(255), + 1178: uint8(255), + 1179: uint8(255), + 1180: uint8(255), + 1181: uint8(255), + 1182: uint8(255), + 1183: uint8(255), + 1184: uint8(255), + 1185: uint8(255), + 1186: uint8(255), + 1187: uint8(255), + 1188: uint8(255), + 1189: uint8(255), + 1190: uint8(255), + 1191: uint8(255), + 1192: uint8(255), + 1193: uint8(255), + 1194: uint8(255), + 1195: uint8(255), + 1196: uint8(255), + 1197: uint8(159), + 1198: uint8(255), + 1199: uint8(255), + 1200: uint8(254), + 1201: uint8(255), + 1202: uint8(255), + 1203: uint8(7), + 1204: uint8(255), + 1205: uint8(255), + 1206: uint8(255), + 1207: uint8(255), + 1208: uint8(255), + 1209: uint8(255), + 1210: uint8(255), + 1211: uint8(255), + 1212: uint8(255), + 1213: uint8(199), + 1214: uint8(255), + 1215: uint8(1), + 1216: uint8(255), + 1217: uint8(223), + 1218: uint8(15), + 1220: uint8(255), + 1221: uint8(255), + 1222: uint8(15), + 1224: uint8(255), + 1225: uint8(255), + 1226: uint8(15), + 1228: uint8(255), + 1229: uint8(223), + 1230: uint8(13), + 1232: uint8(255), + 1233: uint8(255), + 1234: uint8(255), + 1235: uint8(255), + 1236: uint8(255), + 1237: uint8(255), + 1238: uint8(207), + 1239: uint8(255), + 1240: uint8(255), + 1241: uint8(1), + 1242: uint8(128), + 1243: uint8(16), + 1244: uint8(255), + 1245: uint8(3), + 1250: uint8(255), + 1251: uint8(3), + 1252: uint8(255), + 1253: uint8(255), + 1254: uint8(255), + 1255: uint8(255), + 1256: uint8(255), + 1257: uint8(255), + 1258: uint8(255), + 1259: uint8(255), + 1260: uint8(255), + 1261: uint8(255), + 1262: uint8(255), + 1263: uint8(1), + 1264: uint8(255), + 1265: uint8(255), + 1266: uint8(255), + 1267: uint8(255), + 1268: uint8(255), + 1269: uint8(7), + 1270: uint8(255), + 1271: uint8(255), + 1272: uint8(255), + 1273: uint8(255), + 1274: uint8(255), + 1275: uint8(255), + 1276: uint8(255), + 1277: uint8(255), + 1278: uint8(63), + 1280: uint8(255), + 1281: uint8(255), + 1282: uint8(255), + 1283: uint8(127), + 1284: uint8(255), + 1285: uint8(15), + 1286: uint8(255), + 1287: uint8(1), + 1288: uint8(192), + 1289: uint8(255), + 1290: uint8(255), + 1291: uint8(255), + 1292: uint8(255), + 1293: uint8(63), + 1294: uint8(31), + 1296: uint8(255), + 1297: uint8(255), + 1298: uint8(255), + 1299: uint8(255), + 1300: uint8(255), + 1301: uint8(15), + 1302: uint8(255), + 1303: uint8(255), + 1304: uint8(255), + 1305: uint8(3), + 1306: uint8(255), + 1307: uint8(3), + 1312: uint8(255), + 1313: uint8(255), + 1314: uint8(255), + 1315: uint8(15), + 1316: uint8(255), + 1317: uint8(255), + 1318: uint8(255), + 1319: uint8(255), + 1320: uint8(255), + 1321: uint8(255), + 1322: uint8(255), + 1323: uint8(127), + 1324: uint8(254), + 1325: uint8(255), + 1326: uint8(31), + 1328: uint8(255), + 1329: uint8(3), + 1330: uint8(255), + 1331: uint8(3), + 1332: uint8(128), + 1344: uint8(255), + 1345: uint8(255), + 1346: uint8(255), + 1347: uint8(255), + 1348: uint8(255), + 1349: uint8(255), + 1350: uint8(239), + 1351: uint8(255), + 1352: uint8(239), + 1353: uint8(15), + 1354: uint8(255), + 1355: uint8(3), + 1360: uint8(255), + 1361: uint8(255), + 1362: uint8(255), + 1363: uint8(255), + 1364: uint8(255), + 1365: uint8(243), + 1366: uint8(255), + 1367: uint8(255), + 1368: uint8(255), + 1369: uint8(255), + 1370: uint8(255), + 1371: uint8(255), + 1372: uint8(191), + 1373: uint8(255), + 1374: uint8(3), + 1376: uint8(255), + 1377: uint8(255), + 1378: uint8(255), + 1379: uint8(255), + 1380: uint8(255), + 1381: uint8(255), + 1382: uint8(127), + 1384: uint8(255), + 1385: uint8(227), + 1386: uint8(255), + 1387: uint8(255), + 1388: uint8(255), + 1389: uint8(255), + 1390: uint8(255), + 1391: uint8(63), + 1392: uint8(255), + 1393: uint8(1), + 1394: uint8(255), + 1395: uint8(255), + 1396: uint8(255), + 1397: uint8(255), + 1398: uint8(255), + 1399: uint8(231), + 1405: uint8(222), + 1406: uint8(111), + 1407: uint8(4), + 1408: uint8(255), + 1409: uint8(255), + 1410: uint8(255), + 1411: uint8(255), + 1412: uint8(255), + 1413: uint8(255), + 1414: uint8(255), + 1415: uint8(255), + 1416: uint8(255), + 1417: uint8(255), + 1418: uint8(255), + 1419: uint8(255), + 1420: uint8(255), + 1421: uint8(255), + 1422: uint8(255), + 1423: uint8(255), + 1424: uint8(255), + 1425: uint8(255), + 1426: uint8(255), + 1427: uint8(255), + 1428: uint8(255), + 1429: uint8(255), + 1430: uint8(255), + 1431: uint8(255), + 1436: uint8(128), + 1437: uint8(255), + 1438: uint8(31), + 1440: uint8(255), + 1441: uint8(255), + 1442: uint8(63), + 1443: uint8(63), + 1444: uint8(255), + 1445: uint8(255), + 1446: uint8(255), + 1447: uint8(255), + 1448: uint8(63), + 1449: uint8(63), + 1450: uint8(255), + 1451: uint8(170), + 1452: uint8(255), + 1453: uint8(255), + 1454: uint8(255), + 1455: uint8(63), + 1456: uint8(255), + 1457: uint8(255), + 1458: uint8(255), + 1459: uint8(255), + 1460: uint8(255), + 1461: uint8(255), + 1462: uint8(223), + 1463: uint8(95), + 1464: uint8(220), + 1465: uint8(31), + 1466: uint8(207), + 1467: uint8(15), + 1468: uint8(255), + 1469: uint8(31), + 1470: uint8(220), + 1471: uint8(31), + 1486: uint8(2), + 1487: uint8(128), + 1490: uint8(255), + 1491: uint8(31), + 1504: uint8(132), + 1505: uint8(252), + 1506: uint8(47), + 1507: uint8(62), + 1508: uint8(80), + 1509: uint8(189), + 1510: uint8(255), + 1511: uint8(243), + 1512: uint8(224), + 1513: uint8(67), + 1516: uint8(255), + 1517: uint8(255), + 1518: uint8(255), + 1519: uint8(255), + 1520: uint8(255), + 1521: uint8(1), + 1558: uint8(192), + 1559: uint8(255), + 1560: uint8(255), + 1561: uint8(255), + 1562: uint8(255), + 1563: uint8(255), + 1564: uint8(255), + 1565: uint8(3), + 1568: uint8(255), + 1569: uint8(255), + 1570: uint8(255), + 1571: uint8(255), + 1572: uint8(255), + 1573: uint8(127), + 1574: uint8(255), + 1575: uint8(255), + 1576: uint8(255), + 1577: uint8(255), + 1578: uint8(255), + 1579: uint8(127), + 1580: uint8(255), + 1581: uint8(255), + 1582: uint8(255), + 1583: uint8(255), + 1584: uint8(255), + 1585: uint8(255), + 1586: uint8(255), + 1587: uint8(255), + 1588: uint8(255), + 1589: uint8(255), + 1590: uint8(255), + 1591: uint8(255), + 1592: uint8(255), + 1593: uint8(255), + 1594: uint8(255), + 1595: uint8(255), + 1596: uint8(31), + 1597: uint8(120), + 1598: uint8(12), + 1600: uint8(255), + 1601: uint8(255), + 1602: uint8(255), + 1603: uint8(255), + 1604: uint8(191), + 1605: uint8(32), + 1606: uint8(255), + 1607: uint8(255), + 1608: uint8(255), + 1609: uint8(255), + 1610: uint8(255), + 1611: uint8(255), + 1612: uint8(255), + 1613: uint8(128), + 1616: uint8(255), + 1617: uint8(255), + 1618: uint8(127), + 1620: uint8(127), + 1621: uint8(127), + 1622: uint8(127), + 1623: uint8(127), + 1624: uint8(127), + 1625: uint8(127), + 1626: uint8(127), + 1627: uint8(127), + 1628: uint8(255), + 1629: uint8(255), + 1630: uint8(255), + 1631: uint8(255), + 1637: uint8(128), + 1664: uint8(224), + 1668: uint8(254), + 1669: uint8(3), + 1670: uint8(62), + 1671: uint8(31), + 1672: uint8(254), + 1673: uint8(255), + 1674: uint8(255), + 1675: uint8(255), + 1676: uint8(255), + 1677: uint8(255), + 1678: uint8(255), + 1679: uint8(255), + 1680: uint8(255), + 1681: uint8(255), + 1682: uint8(127), + 1683: uint8(224), + 1684: uint8(254), + 1685: uint8(255), + 1686: uint8(255), + 1687: uint8(255), + 1688: uint8(255), + 1689: uint8(255), + 1690: uint8(255), + 1691: uint8(255), + 1692: uint8(255), + 1693: uint8(255), + 1694: uint8(255), + 1695: uint8(247), + 1696: uint8(224), + 1697: uint8(255), + 1698: uint8(255), + 1699: uint8(255), + 1700: uint8(255), + 1701: uint8(255), + 1702: uint8(254), + 1703: uint8(255), + 1704: uint8(255), + 1705: uint8(255), + 1706: uint8(255), + 1707: uint8(255), + 1708: uint8(255), + 1709: uint8(255), + 1710: uint8(255), + 1711: uint8(255), + 1712: uint8(255), + 1713: uint8(127), + 1716: uint8(255), + 1717: uint8(255), + 1718: uint8(255), + 1719: uint8(7), + 1726: uint8(255), + 1727: uint8(255), + 1728: uint8(255), + 1729: uint8(255), + 1730: uint8(255), + 1731: uint8(255), + 1732: uint8(255), + 1733: uint8(255), + 1734: uint8(255), + 1735: uint8(255), + 1736: uint8(255), + 1737: uint8(255), + 1738: uint8(255), + 1739: uint8(255), + 1740: uint8(255), + 1741: uint8(255), + 1742: uint8(255), + 1743: uint8(255), + 1744: uint8(255), + 1745: uint8(255), + 1746: uint8(255), + 1747: uint8(255), + 1748: uint8(255), + 1749: uint8(255), + 1750: uint8(63), + 1760: uint8(255), + 1761: uint8(255), + 1762: uint8(255), + 1763: uint8(255), + 1764: uint8(255), + 1765: uint8(255), + 1766: uint8(255), + 1767: uint8(255), + 1768: uint8(255), + 1769: uint8(255), + 1770: uint8(255), + 1771: uint8(255), + 1772: uint8(255), + 1773: uint8(255), + 1774: uint8(255), + 1775: uint8(255), + 1776: uint8(255), + 1777: uint8(255), + 1778: uint8(255), + 1779: uint8(255), + 1780: uint8(255), + 1781: uint8(255), + 1782: uint8(255), + 1783: uint8(255), + 1784: uint8(255), + 1785: uint8(255), + 1786: uint8(255), + 1787: uint8(255), + 1788: uint8(255), + 1789: uint8(255), + 1792: uint8(255), + 1793: uint8(255), + 1794: uint8(255), + 1795: uint8(255), + 1796: uint8(255), + 1797: uint8(255), + 1798: uint8(255), + 1799: uint8(255), + 1800: uint8(255), + 1801: uint8(255), + 1802: uint8(255), + 1803: uint8(255), + 1804: uint8(255), + 1805: uint8(255), + 1806: uint8(255), + 1807: uint8(255), + 1808: uint8(255), + 1809: uint8(31), + 1818: uint8(255), + 1819: uint8(255), + 1820: uint8(255), + 1821: uint8(255), + 1822: uint8(255), + 1823: uint8(63), + 1824: uint8(255), + 1825: uint8(31), + 1826: uint8(255), + 1827: uint8(255), + 1828: uint8(255), + 1829: uint8(15), + 1832: uint8(255), + 1833: uint8(255), + 1834: uint8(255), + 1835: uint8(255), + 1836: uint8(255), + 1837: uint8(127), + 1838: uint8(240), + 1839: uint8(143), + 1840: uint8(255), + 1841: uint8(255), + 1842: uint8(255), + 1843: uint8(255), + 1844: uint8(255), + 1845: uint8(255), + 1846: uint8(255), + 1847: uint8(255), + 1848: uint8(255), + 1849: uint8(255), + 1850: uint8(255), + 1851: uint8(255), + 1852: uint8(255), + 1853: uint8(255), + 1858: uint8(128), + 1859: uint8(255), + 1860: uint8(252), + 1861: uint8(255), + 1862: uint8(255), + 1863: uint8(255), + 1864: uint8(255), + 1865: uint8(255), + 1866: uint8(255), + 1867: uint8(255), + 1868: uint8(255), + 1869: uint8(255), + 1870: uint8(255), + 1871: uint8(255), + 1872: uint8(255), + 1873: uint8(249), + 1874: uint8(255), + 1875: uint8(255), + 1876: uint8(255), + 1877: uint8(255), + 1878: uint8(255), + 1879: uint8(255), + 1880: uint8(124), + 1886: uint8(128), + 1887: uint8(255), + 1888: uint8(191), + 1889: uint8(255), + 1890: uint8(255), + 1891: uint8(255), + 1892: uint8(255), + 1896: uint8(255), + 1897: uint8(255), + 1898: uint8(255), + 1899: uint8(255), + 1900: uint8(255), + 1901: uint8(255), + 1902: uint8(15), + 1904: uint8(255), + 1905: uint8(255), + 1906: uint8(255), + 1907: uint8(255), + 1908: uint8(255), + 1909: uint8(255), + 1910: uint8(255), + 1911: uint8(255), + 1912: uint8(47), + 1914: uint8(255), + 1915: uint8(3), + 1918: uint8(252), + 1919: uint8(232), + 1920: uint8(255), + 1921: uint8(255), + 1922: uint8(255), + 1923: uint8(255), + 1924: uint8(255), + 1925: uint8(7), + 1926: uint8(255), + 1927: uint8(255), + 1928: uint8(255), + 1929: uint8(255), + 1930: uint8(7), + 1932: uint8(255), + 1933: uint8(255), + 1934: uint8(255), + 1935: uint8(31), + 1936: uint8(255), + 1937: uint8(255), + 1938: uint8(255), + 1939: uint8(255), + 1940: uint8(255), + 1941: uint8(255), + 1942: uint8(247), + 1943: uint8(255), + 1945: uint8(128), + 1946: uint8(255), + 1947: uint8(3), + 1948: uint8(255), + 1949: uint8(255), + 1950: uint8(255), + 1951: uint8(127), + 1952: uint8(255), + 1953: uint8(255), + 1954: uint8(255), + 1955: uint8(255), + 1956: uint8(255), + 1957: uint8(255), + 1958: uint8(127), + 1960: uint8(255), + 1961: uint8(63), + 1962: uint8(255), + 1963: uint8(3), + 1964: uint8(255), + 1965: uint8(255), + 1966: uint8(127), + 1967: uint8(252), + 1968: uint8(255), + 1969: uint8(255), + 1970: uint8(255), + 1971: uint8(255), + 1972: uint8(255), + 1973: uint8(255), + 1974: uint8(255), + 1975: uint8(127), + 1976: uint8(5), + 1979: uint8(56), + 1980: uint8(255), + 1981: uint8(255), + 1982: uint8(60), + 1984: uint8(126), + 1985: uint8(126), + 1986: uint8(126), + 1988: uint8(127), + 1989: uint8(127), + 1990: uint8(255), + 1991: uint8(255), + 1992: uint8(255), + 1993: uint8(255), + 1994: uint8(255), + 1995: uint8(247), + 1996: uint8(255), + 1998: uint8(255), + 1999: uint8(255), + 2000: uint8(255), + 2001: uint8(255), + 2002: uint8(255), + 2003: uint8(255), + 2004: uint8(255), + 2005: uint8(255), + 2006: uint8(255), + 2007: uint8(255), + 2008: uint8(255), + 2009: uint8(255), + 2010: uint8(255), + 2011: uint8(255), + 2012: uint8(255), + 2013: uint8(7), + 2014: uint8(255), + 2015: uint8(3), + 2016: uint8(255), + 2017: uint8(255), + 2018: uint8(255), + 2019: uint8(255), + 2020: uint8(255), + 2021: uint8(255), + 2022: uint8(255), + 2023: uint8(255), + 2024: uint8(255), + 2025: uint8(255), + 2026: uint8(255), + 2027: uint8(255), + 2028: uint8(255), + 2029: uint8(255), + 2030: uint8(255), + 2031: uint8(255), + 2032: uint8(255), + 2033: uint8(255), + 2034: uint8(255), + 2035: uint8(255), + 2036: uint8(15), + 2038: uint8(255), + 2039: uint8(255), + 2040: uint8(127), + 2041: uint8(248), + 2042: uint8(255), + 2043: uint8(255), + 2044: uint8(255), + 2045: uint8(255), + 2046: uint8(255), + 2047: uint8(15), + 2048: uint8(255), + 2049: uint8(255), + 2050: uint8(255), + 2051: uint8(255), + 2052: uint8(255), + 2053: uint8(255), + 2054: uint8(255), + 2055: uint8(255), + 2056: uint8(255), + 2057: uint8(255), + 2058: uint8(255), + 2059: uint8(255), + 2060: uint8(255), + 2061: uint8(63), + 2062: uint8(255), + 2063: uint8(255), + 2064: uint8(255), + 2065: uint8(255), + 2066: uint8(255), + 2067: uint8(255), + 2068: uint8(255), + 2069: uint8(255), + 2070: uint8(255), + 2071: uint8(255), + 2072: uint8(255), + 2073: uint8(255), + 2074: uint8(255), + 2075: uint8(3), + 2080: uint8(127), + 2082: uint8(248), + 2083: uint8(224), + 2084: uint8(255), + 2085: uint8(253), + 2086: uint8(127), + 2087: uint8(95), + 2088: uint8(219), + 2089: uint8(255), + 2090: uint8(255), + 2091: uint8(255), + 2092: uint8(255), + 2093: uint8(255), + 2094: uint8(255), + 2095: uint8(255), + 2096: uint8(255), + 2097: uint8(255), + 2098: uint8(255), + 2099: uint8(255), + 2100: uint8(255), + 2101: uint8(255), + 2102: uint8(3), + 2106: uint8(248), + 2107: uint8(255), + 2108: uint8(255), + 2109: uint8(255), + 2110: uint8(255), + 2111: uint8(255), + 2112: uint8(255), + 2113: uint8(255), + 2114: uint8(255), + 2115: uint8(255), + 2116: uint8(255), + 2117: uint8(255), + 2118: uint8(255), + 2119: uint8(63), + 2122: uint8(255), + 2123: uint8(255), + 2124: uint8(255), + 2125: uint8(255), + 2126: uint8(255), + 2127: uint8(255), + 2128: uint8(255), + 2129: uint8(255), + 2130: uint8(252), + 2131: uint8(255), + 2132: uint8(255), + 2133: uint8(255), + 2134: uint8(255), + 2135: uint8(255), + 2136: uint8(255), + 2142: uint8(255), + 2143: uint8(15), + 2158: uint8(223), + 2159: uint8(255), + 2160: uint8(255), + 2161: uint8(255), + 2162: uint8(255), + 2163: uint8(255), + 2164: uint8(255), + 2165: uint8(255), + 2166: uint8(255), + 2167: uint8(255), + 2168: uint8(255), + 2169: uint8(255), + 2170: uint8(255), + 2171: uint8(255), + 2172: uint8(255), + 2173: uint8(255), + 2174: uint8(255), + 2175: uint8(31), + 2178: uint8(255), + 2179: uint8(3), + 2180: uint8(254), + 2181: uint8(255), + 2182: uint8(255), + 2183: uint8(7), + 2184: uint8(254), + 2185: uint8(255), + 2186: uint8(255), + 2187: uint8(7), + 2188: uint8(192), + 2189: uint8(255), + 2190: uint8(255), + 2191: uint8(255), + 2192: uint8(255), + 2193: uint8(255), + 2194: uint8(255), + 2195: uint8(255), + 2196: uint8(255), + 2197: uint8(255), + 2198: uint8(255), + 2199: uint8(127), + 2200: uint8(252), + 2201: uint8(252), + 2202: uint8(252), + 2203: uint8(28), + 2208: uint8(255), + 2209: uint8(239), + 2210: uint8(255), + 2211: uint8(255), + 2212: uint8(127), + 2213: uint8(255), + 2214: uint8(255), + 2215: uint8(183), + 2216: uint8(255), + 2217: uint8(63), + 2218: uint8(255), + 2219: uint8(63), + 2224: uint8(255), + 2225: uint8(255), + 2226: uint8(255), + 2227: uint8(255), + 2228: uint8(255), + 2229: uint8(255), + 2230: uint8(255), + 2231: uint8(255), + 2232: uint8(255), + 2233: uint8(255), + 2234: uint8(255), + 2235: uint8(255), + 2236: uint8(255), + 2237: uint8(255), + 2238: uint8(255), + 2239: uint8(7), + 2248: uint8(255), + 2249: uint8(255), + 2250: uint8(255), + 2251: uint8(255), + 2252: uint8(255), + 2253: uint8(255), + 2254: uint8(31), + 2288: uint8(255), + 2289: uint8(255), + 2290: uint8(255), + 2291: uint8(31), + 2292: uint8(255), + 2293: uint8(255), + 2294: uint8(255), + 2295: uint8(255), + 2296: uint8(255), + 2297: uint8(255), + 2298: uint8(1), + 2304: uint8(255), + 2305: uint8(255), + 2306: uint8(255), + 2307: uint8(255), + 2309: uint8(224), + 2310: uint8(255), + 2311: uint8(255), + 2312: uint8(255), + 2313: uint8(7), + 2314: uint8(255), + 2315: uint8(255), + 2316: uint8(255), + 2317: uint8(255), + 2318: uint8(255), + 2319: uint8(7), + 2320: uint8(255), + 2321: uint8(255), + 2322: uint8(255), + 2323: uint8(63), + 2324: uint8(255), + 2325: uint8(255), + 2326: uint8(255), + 2327: uint8(255), + 2328: uint8(15), + 2329: uint8(255), + 2330: uint8(62), + 2336: uint8(255), + 2337: uint8(255), + 2338: uint8(255), + 2339: uint8(255), + 2340: uint8(255), + 2341: uint8(255), + 2342: uint8(255), + 2343: uint8(255), + 2344: uint8(255), + 2345: uint8(255), + 2346: uint8(255), + 2347: uint8(255), + 2348: uint8(255), + 2349: uint8(255), + 2350: uint8(255), + 2351: uint8(255), + 2352: uint8(255), + 2353: uint8(255), + 2354: uint8(255), + 2355: uint8(63), + 2356: uint8(255), + 2357: uint8(3), + 2358: uint8(255), + 2359: uint8(255), + 2360: uint8(255), + 2361: uint8(255), + 2362: uint8(15), + 2363: uint8(255), + 2364: uint8(255), + 2365: uint8(255), + 2366: uint8(255), + 2367: uint8(15), + 2368: uint8(255), + 2369: uint8(255), + 2370: uint8(255), + 2371: uint8(255), + 2372: uint8(255), + 2374: uint8(255), + 2375: uint8(255), + 2376: uint8(255), + 2377: uint8(255), + 2378: uint8(255), + 2379: uint8(255), + 2380: uint8(15), + 2400: uint8(255), + 2401: uint8(255), + 2402: uint8(255), + 2403: uint8(255), + 2404: uint8(255), + 2405: uint8(255), + 2406: uint8(127), + 2408: uint8(255), + 2409: uint8(255), + 2410: uint8(63), + 2412: uint8(255), + 2432: uint8(63), + 2433: uint8(253), + 2434: uint8(255), + 2435: uint8(255), + 2436: uint8(255), + 2437: uint8(255), + 2438: uint8(191), + 2439: uint8(145), + 2440: uint8(255), + 2441: uint8(255), + 2442: uint8(63), + 2444: uint8(255), + 2445: uint8(255), + 2446: uint8(127), + 2448: uint8(255), + 2449: uint8(255), + 2450: uint8(255), + 2451: uint8(127), + 2460: uint8(255), + 2461: uint8(255), + 2462: uint8(55), + 2464: uint8(255), + 2465: uint8(255), + 2466: uint8(63), + 2468: uint8(255), + 2469: uint8(255), + 2470: uint8(255), + 2471: uint8(3), + 2480: uint8(255), + 2481: uint8(255), + 2482: uint8(255), + 2483: uint8(255), + 2484: uint8(255), + 2485: uint8(255), + 2486: uint8(255), + 2487: uint8(192), + 2496: uint8(111), + 2497: uint8(240), + 2498: uint8(239), + 2499: uint8(254), + 2500: uint8(255), + 2501: uint8(255), + 2502: uint8(63), + 2508: uint8(255), + 2509: uint8(255), + 2510: uint8(255), + 2511: uint8(31), + 2512: uint8(255), + 2513: uint8(255), + 2514: uint8(255), + 2515: uint8(31), + 2520: uint8(255), + 2521: uint8(254), + 2522: uint8(255), + 2523: uint8(255), + 2524: uint8(31), + 2528: uint8(255), + 2529: uint8(255), + 2530: uint8(255), + 2531: uint8(255), + 2532: uint8(255), + 2533: uint8(255), + 2534: uint8(63), + 2536: uint8(255), + 2537: uint8(255), + 2538: uint8(63), + 2540: uint8(255), + 2541: uint8(255), + 2542: uint8(7), + 2544: uint8(255), + 2545: uint8(255), + 2546: uint8(3), + 2560: uint8(255), + 2561: uint8(255), + 2562: uint8(255), + 2563: uint8(255), + 2564: uint8(255), + 2565: uint8(255), + 2566: uint8(255), + 2567: uint8(255), + 2568: uint8(255), + 2569: uint8(1), + 2576: uint8(255), + 2577: uint8(255), + 2578: uint8(255), + 2579: uint8(255), + 2580: uint8(255), + 2581: uint8(255), + 2582: uint8(7), + 2584: uint8(255), + 2585: uint8(255), + 2586: uint8(255), + 2587: uint8(255), + 2588: uint8(255), + 2589: uint8(255), + 2590: uint8(7), + 2592: uint8(255), + 2593: uint8(255), + 2594: uint8(255), + 2595: uint8(255), + 2596: uint8(255), + 2598: uint8(255), + 2599: uint8(3), + 2624: uint8(255), + 2625: uint8(255), + 2626: uint8(255), + 2627: uint8(31), + 2628: uint8(128), + 2630: uint8(255), + 2631: uint8(255), + 2632: uint8(63), + 2652: uint8(255), + 2653: uint8(255), + 2654: uint8(127), + 2656: uint8(255), + 2657: uint8(255), + 2658: uint8(255), + 2659: uint8(255), + 2660: uint8(255), + 2661: uint8(255), + 2662: uint8(255), + 2663: uint8(255), + 2664: uint8(63), + 2668: uint8(192), + 2669: uint8(255), + 2672: uint8(252), + 2673: uint8(255), + 2674: uint8(255), + 2675: uint8(255), + 2676: uint8(255), + 2677: uint8(255), + 2678: uint8(255), + 2679: uint8(1), + 2682: uint8(255), + 2683: uint8(255), + 2684: uint8(255), + 2685: uint8(1), + 2686: uint8(255), + 2687: uint8(3), + 2688: uint8(255), + 2689: uint8(255), + 2690: uint8(255), + 2691: uint8(255), + 2692: uint8(255), + 2693: uint8(255), + 2694: uint8(199), + 2695: uint8(255), + 2696: uint8(112), + 2698: uint8(255), + 2699: uint8(255), + 2700: uint8(255), + 2701: uint8(255), + 2702: uint8(71), + 2704: uint8(255), + 2705: uint8(255), + 2706: uint8(255), + 2707: uint8(255), + 2708: uint8(255), + 2709: uint8(255), + 2710: uint8(255), + 2711: uint8(255), + 2712: uint8(30), + 2714: uint8(255), + 2715: uint8(23), + 2720: uint8(255), + 2721: uint8(255), + 2722: uint8(251), + 2723: uint8(255), + 2724: uint8(255), + 2725: uint8(255), + 2726: uint8(159), + 2727: uint8(64), + 2736: uint8(127), + 2737: uint8(189), + 2738: uint8(255), + 2739: uint8(191), + 2740: uint8(255), + 2741: uint8(1), + 2742: uint8(255), + 2743: uint8(255), + 2744: uint8(255), + 2745: uint8(255), + 2746: uint8(255), + 2747: uint8(255), + 2748: uint8(255), + 2749: uint8(1), + 2750: uint8(255), + 2751: uint8(3), + 2752: uint8(239), + 2753: uint8(159), + 2754: uint8(249), + 2755: uint8(255), + 2756: uint8(255), + 2757: uint8(253), + 2758: uint8(237), + 2759: uint8(227), + 2760: uint8(159), + 2761: uint8(25), + 2762: uint8(129), + 2763: uint8(224), + 2764: uint8(15), + 2784: uint8(255), + 2785: uint8(255), + 2786: uint8(255), + 2787: uint8(255), + 2788: uint8(255), + 2789: uint8(255), + 2790: uint8(255), + 2791: uint8(255), + 2792: uint8(187), + 2793: uint8(7), + 2794: uint8(255), + 2795: uint8(131), + 2800: uint8(255), + 2801: uint8(255), + 2802: uint8(255), + 2803: uint8(255), + 2804: uint8(255), + 2805: uint8(255), + 2806: uint8(255), + 2807: uint8(255), + 2808: uint8(179), + 2810: uint8(255), + 2811: uint8(3), + 2832: uint8(255), + 2833: uint8(255), + 2834: uint8(255), + 2835: uint8(255), + 2836: uint8(255), + 2837: uint8(255), + 2838: uint8(63), + 2839: uint8(127), + 2843: uint8(63), + 2848: uint8(255), + 2849: uint8(255), + 2850: uint8(255), + 2851: uint8(255), + 2852: uint8(255), + 2853: uint8(255), + 2854: uint8(255), + 2855: uint8(127), + 2856: uint8(17), + 2858: uint8(255), + 2859: uint8(3), + 2864: uint8(255), + 2865: uint8(255), + 2866: uint8(255), + 2867: uint8(255), + 2868: uint8(255), + 2869: uint8(255), + 2870: uint8(63), + 2871: uint8(1), + 2872: uint8(255), + 2873: uint8(3), + 2880: uint8(255), + 2881: uint8(255), + 2882: uint8(255), + 2883: uint8(231), + 2884: uint8(255), + 2885: uint8(7), + 2886: uint8(255), + 2887: uint8(3), + 2912: uint8(255), + 2913: uint8(255), + 2914: uint8(255), + 2915: uint8(255), + 2916: uint8(255), + 2917: uint8(255), + 2918: uint8(255), + 2919: uint8(1), + 2932: uint8(255), + 2933: uint8(255), + 2934: uint8(255), + 2935: uint8(255), + 2936: uint8(255), + 2937: uint8(255), + 2938: uint8(255), + 2939: uint8(255), + 2940: uint8(255), + 2941: uint8(3), + 2943: uint8(128), + 2964: uint8(255), + 2965: uint8(252), + 2966: uint8(255), + 2967: uint8(255), + 2968: uint8(255), + 2969: uint8(255), + 2970: uint8(255), + 2971: uint8(252), + 2972: uint8(26), + 2976: uint8(255), + 2977: uint8(255), + 2978: uint8(255), + 2979: uint8(255), + 2980: uint8(255), + 2981: uint8(255), + 2982: uint8(231), + 2983: uint8(127), + 2986: uint8(255), + 2987: uint8(255), + 2988: uint8(255), + 2989: uint8(255), + 2990: uint8(255), + 2991: uint8(255), + 2992: uint8(255), + 2993: uint8(255), + 2994: uint8(255), + 2995: uint8(32), + 3000: uint8(255), + 3001: uint8(255), + 3002: uint8(255), + 3003: uint8(255), + 3004: uint8(255), + 3005: uint8(255), + 3006: uint8(255), + 3007: uint8(1), + 3008: uint8(255), + 3009: uint8(253), + 3010: uint8(255), + 3011: uint8(255), + 3012: uint8(255), + 3013: uint8(255), + 3014: uint8(127), + 3015: uint8(127), + 3016: uint8(1), + 3018: uint8(255), + 3019: uint8(3), + 3022: uint8(252), + 3023: uint8(255), + 3024: uint8(255), + 3025: uint8(255), + 3026: uint8(252), + 3027: uint8(255), + 3028: uint8(255), + 3029: uint8(254), + 3030: uint8(127), + 3040: uint8(127), + 3041: uint8(251), + 3042: uint8(255), + 3043: uint8(255), + 3044: uint8(255), + 3045: uint8(255), + 3046: uint8(127), + 3047: uint8(180), + 3048: uint8(203), + 3050: uint8(255), + 3051: uint8(3), + 3052: uint8(191), + 3053: uint8(253), + 3054: uint8(255), + 3055: uint8(255), + 3056: uint8(255), + 3057: uint8(127), + 3058: uint8(123), + 3059: uint8(1), + 3060: uint8(255), + 3061: uint8(3), + 3100: uint8(255), + 3101: uint8(255), + 3102: uint8(127), + 3104: uint8(255), + 3105: uint8(255), + 3106: uint8(255), + 3107: uint8(255), + 3108: uint8(255), + 3109: uint8(255), + 3110: uint8(255), + 3111: uint8(255), + 3112: uint8(255), + 3113: uint8(255), + 3114: uint8(255), + 3115: uint8(255), + 3116: uint8(255), + 3117: uint8(255), + 3118: uint8(255), + 3119: uint8(255), + 3120: uint8(255), + 3121: uint8(255), + 3122: uint8(255), + 3123: uint8(3), + 3136: uint8(255), + 3137: uint8(255), + 3138: uint8(255), + 3139: uint8(255), + 3140: uint8(255), + 3141: uint8(255), + 3142: uint8(255), + 3143: uint8(255), + 3144: uint8(255), + 3145: uint8(255), + 3146: uint8(255), + 3147: uint8(255), + 3148: uint8(255), + 3149: uint8(127), + 3152: uint8(255), + 3153: uint8(255), + 3154: uint8(255), + 3155: uint8(255), + 3156: uint8(255), + 3157: uint8(255), + 3158: uint8(255), + 3159: uint8(255), + 3160: uint8(255), + 3161: uint8(255), + 3162: uint8(255), + 3163: uint8(255), + 3164: uint8(255), + 3165: uint8(255), + 3166: uint8(255), + 3167: uint8(255), + 3168: uint8(255), + 3169: uint8(255), + 3170: uint8(255), + 3171: uint8(255), + 3172: uint8(255), + 3173: uint8(255), + 3174: uint8(255), + 3175: uint8(255), + 3176: uint8(15), + 3200: uint8(255), + 3201: uint8(255), + 3202: uint8(255), + 3203: uint8(255), + 3204: uint8(255), + 3205: uint8(127), + 3232: uint8(255), + 3233: uint8(255), + 3234: uint8(255), + 3235: uint8(255), + 3236: uint8(255), + 3237: uint8(255), + 3238: uint8(255), + 3239: uint8(255), + 3240: uint8(127), + 3264: uint8(255), + 3265: uint8(255), + 3266: uint8(255), + 3267: uint8(255), + 3268: uint8(255), + 3269: uint8(255), + 3270: uint8(255), + 3271: uint8(1), + 3272: uint8(255), + 3273: uint8(255), + 3274: uint8(255), + 3275: uint8(127), + 3276: uint8(255), + 3277: uint8(3), + 3290: uint8(255), + 3291: uint8(255), + 3292: uint8(255), + 3293: uint8(63), + 3296: uint8(255), + 3297: uint8(255), + 3298: uint8(255), + 3299: uint8(255), + 3300: uint8(255), + 3301: uint8(255), + 3304: uint8(15), + 3306: uint8(255), + 3307: uint8(3), + 3308: uint8(248), + 3309: uint8(255), + 3310: uint8(255), + 3311: uint8(224), + 3312: uint8(255), + 3313: uint8(255), + 3336: uint8(255), + 3337: uint8(255), + 3338: uint8(255), + 3339: uint8(255), + 3340: uint8(255), + 3341: uint8(255), + 3342: uint8(255), + 3343: uint8(255), + 3360: uint8(255), + 3361: uint8(255), + 3362: uint8(255), + 3363: uint8(255), + 3364: uint8(255), + 3365: uint8(255), + 3366: uint8(255), + 3367: uint8(255), + 3368: uint8(255), + 3369: uint8(135), + 3370: uint8(255), + 3371: uint8(255), + 3372: uint8(255), + 3373: uint8(255), + 3374: uint8(255), + 3375: uint8(255), + 3376: uint8(255), + 3377: uint8(128), + 3378: uint8(255), + 3379: uint8(255), + 3388: uint8(11), + 3392: uint8(255), + 3393: uint8(255), + 3394: uint8(255), + 3395: uint8(255), + 3396: uint8(255), + 3397: uint8(255), + 3398: uint8(255), + 3399: uint8(255), + 3400: uint8(255), + 3401: uint8(255), + 3402: uint8(255), + 3403: uint8(255), + 3404: uint8(255), + 3405: uint8(255), + 3406: uint8(255), + 3407: uint8(255), + 3408: uint8(255), + 3409: uint8(255), + 3410: uint8(255), + 3411: uint8(255), + 3412: uint8(255), + 3413: uint8(255), + 3414: uint8(255), + 3415: uint8(255), + 3416: uint8(255), + 3417: uint8(255), + 3418: uint8(255), + 3419: uint8(255), + 3420: uint8(255), + 3421: uint8(255), + 3422: uint8(255), + 3424: uint8(255), + 3425: uint8(255), + 3426: uint8(255), + 3427: uint8(255), + 3428: uint8(255), + 3429: uint8(255), + 3430: uint8(255), + 3431: uint8(255), + 3432: uint8(255), + 3433: uint8(255), + 3434: uint8(255), + 3435: uint8(255), + 3436: uint8(255), + 3437: uint8(255), + 3438: uint8(255), + 3439: uint8(255), + 3440: uint8(255), + 3441: uint8(255), + 3442: uint8(255), + 3443: uint8(255), + 3444: uint8(255), + 3445: uint8(255), + 3446: uint8(255), + 3447: uint8(255), + 3448: uint8(255), + 3449: uint8(255), + 3450: uint8(255), + 3451: uint8(255), + 3452: uint8(255), + 3453: uint8(255), + 3454: uint8(7), + 3456: uint8(255), + 3457: uint8(255), + 3458: uint8(255), + 3459: uint8(127), + 3466: uint8(7), + 3468: uint8(240), + 3470: uint8(255), + 3471: uint8(255), + 3472: uint8(255), + 3473: uint8(255), + 3474: uint8(255), + 3475: uint8(255), + 3476: uint8(255), + 3477: uint8(255), + 3478: uint8(255), + 3479: uint8(255), + 3480: uint8(255), + 3481: uint8(255), + 3482: uint8(255), + 3483: uint8(255), + 3484: uint8(255), + 3485: uint8(255), + 3486: uint8(255), + 3487: uint8(255), + 3488: uint8(255), + 3489: uint8(255), + 3490: uint8(255), + 3491: uint8(255), + 3492: uint8(255), + 3493: uint8(255), + 3494: uint8(255), + 3495: uint8(255), + 3496: uint8(255), + 3497: uint8(255), + 3498: uint8(255), + 3499: uint8(255), + 3500: uint8(255), + 3501: uint8(255), + 3502: uint8(255), + 3503: uint8(255), + 3504: uint8(255), + 3505: uint8(255), + 3506: uint8(255), + 3507: uint8(255), + 3508: uint8(255), + 3509: uint8(255), + 3510: uint8(255), + 3511: uint8(255), + 3512: uint8(255), + 3513: uint8(255), + 3514: uint8(255), + 3515: uint8(255), + 3516: uint8(255), + 3517: uint8(255), + 3518: uint8(255), + 3519: uint8(15), + 3520: uint8(255), + 3521: uint8(255), + 3522: uint8(255), + 3523: uint8(255), + 3524: uint8(255), + 3525: uint8(255), + 3526: uint8(255), + 3527: uint8(255), + 3528: uint8(255), + 3529: uint8(255), + 3530: uint8(255), + 3531: uint8(255), + 3532: uint8(255), + 3533: uint8(7), + 3534: uint8(255), + 3535: uint8(31), + 3536: uint8(255), + 3537: uint8(1), + 3538: uint8(255), + 3539: uint8(67), + 3552: uint8(255), + 3553: uint8(255), + 3554: uint8(255), + 3555: uint8(255), + 3556: uint8(255), + 3557: uint8(255), + 3558: uint8(255), + 3559: uint8(255), + 3560: uint8(255), + 3561: uint8(255), + 3562: uint8(223), + 3563: uint8(255), + 3564: uint8(255), + 3565: uint8(255), + 3566: uint8(255), + 3567: uint8(255), + 3568: uint8(255), + 3569: uint8(255), + 3570: uint8(255), + 3571: uint8(223), + 3572: uint8(100), + 3573: uint8(222), + 3574: uint8(255), + 3575: uint8(235), + 3576: uint8(239), + 3577: uint8(255), + 3578: uint8(255), + 3579: uint8(255), + 3580: uint8(255), + 3581: uint8(255), + 3582: uint8(255), + 3583: uint8(255), + 3584: uint8(191), + 3585: uint8(231), + 3586: uint8(223), + 3587: uint8(223), + 3588: uint8(255), + 3589: uint8(255), + 3590: uint8(255), + 3591: uint8(123), + 3592: uint8(95), + 3593: uint8(252), + 3594: uint8(253), + 3595: uint8(255), + 3596: uint8(255), + 3597: uint8(255), + 3598: uint8(255), + 3599: uint8(255), + 3600: uint8(255), + 3601: uint8(255), + 3602: uint8(255), + 3603: uint8(255), + 3604: uint8(255), + 3605: uint8(255), + 3606: uint8(255), + 3607: uint8(255), + 3608: uint8(255), + 3609: uint8(255), + 3610: uint8(255), + 3611: uint8(255), + 3612: uint8(255), + 3613: uint8(255), + 3614: uint8(255), + 3615: uint8(255), + 3616: uint8(255), + 3617: uint8(255), + 3618: uint8(255), + 3619: uint8(255), + 3620: uint8(255), + 3621: uint8(255), + 3622: uint8(255), + 3623: uint8(255), + 3624: uint8(255), + 3625: uint8(255), + 3626: uint8(255), + 3627: uint8(255), + 3628: uint8(255), + 3629: uint8(255), + 3630: uint8(255), + 3631: uint8(255), + 3632: uint8(255), + 3633: uint8(255), + 3634: uint8(255), + 3635: uint8(255), + 3636: uint8(63), + 3637: uint8(255), + 3638: uint8(255), + 3639: uint8(255), + 3640: uint8(253), + 3641: uint8(255), + 3642: uint8(255), + 3643: uint8(247), + 3644: uint8(255), + 3645: uint8(255), + 3646: uint8(255), + 3647: uint8(247), + 3648: uint8(255), + 3649: uint8(255), + 3650: uint8(223), + 3651: uint8(255), + 3652: uint8(255), + 3653: uint8(255), + 3654: uint8(223), + 3655: uint8(255), + 3656: uint8(255), + 3657: uint8(127), + 3658: uint8(255), + 3659: uint8(255), + 3660: uint8(255), + 3661: uint8(127), + 3662: uint8(255), + 3663: uint8(255), + 3664: uint8(255), + 3665: uint8(253), + 3666: uint8(255), + 3667: uint8(255), + 3668: uint8(255), + 3669: uint8(253), + 3670: uint8(255), + 3671: uint8(255), + 3672: uint8(247), + 3673: uint8(207), + 3674: uint8(255), + 3675: uint8(255), + 3676: uint8(255), + 3677: uint8(255), + 3678: uint8(255), + 3679: uint8(255), + 3680: uint8(127), + 3681: uint8(255), + 3682: uint8(255), + 3683: uint8(249), + 3684: uint8(219), + 3685: uint8(7), + 3712: uint8(255), + 3713: uint8(255), + 3714: uint8(255), + 3715: uint8(255), + 3716: uint8(255), + 3717: uint8(31), + 3718: uint8(128), + 3719: uint8(63), + 3720: uint8(255), + 3721: uint8(67), + 3768: uint8(255), + 3769: uint8(255), + 3770: uint8(255), + 3771: uint8(255), + 3772: uint8(255), + 3773: uint8(15), + 3774: uint8(255), + 3775: uint8(3), + 3776: uint8(255), + 3777: uint8(255), + 3778: uint8(255), + 3779: uint8(255), + 3780: uint8(255), + 3781: uint8(255), + 3782: uint8(255), + 3783: uint8(255), + 3784: uint8(255), + 3785: uint8(255), + 3786: uint8(255), + 3787: uint8(255), + 3788: uint8(255), + 3789: uint8(255), + 3790: uint8(255), + 3791: uint8(255), + 3792: uint8(255), + 3793: uint8(255), + 3794: uint8(255), + 3795: uint8(255), + 3796: uint8(255), + 3797: uint8(255), + 3798: uint8(255), + 3799: uint8(255), + 3800: uint8(31), + 3808: uint8(255), + 3809: uint8(255), + 3810: uint8(255), + 3811: uint8(255), + 3812: uint8(255), + 3813: uint8(255), + 3814: uint8(255), + 3815: uint8(255), + 3816: uint8(143), + 3817: uint8(8), + 3818: uint8(255), + 3819: uint8(3), + 3840: uint8(239), + 3841: uint8(255), + 3842: uint8(255), + 3843: uint8(255), + 3844: uint8(150), + 3845: uint8(254), + 3846: uint8(247), + 3847: uint8(10), + 3848: uint8(132), + 3849: uint8(234), + 3850: uint8(150), + 3851: uint8(170), + 3852: uint8(150), + 3853: uint8(247), + 3854: uint8(247), + 3855: uint8(94), + 3856: uint8(255), + 3857: uint8(251), + 3858: uint8(255), + 3859: uint8(15), + 3860: uint8(238), + 3861: uint8(251), + 3862: uint8(255), + 3863: uint8(15), + 3878: uint8(255), + 3879: uint8(255), + 3880: uint8(255), + 3881: uint8(3), + 3882: uint8(255), + 3883: uint8(255), + 3884: uint8(255), + 3885: uint8(3), + 3886: uint8(255), + 3887: uint8(255), + 3888: uint8(255), + 3889: uint8(3), +} + +func Xiswalpha(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + if wc < uint32(0x20000) { + return Int32FromUint8(_table3[Uint32FromInt32(Int32FromUint8(_table3[wc>>int32(8)])*int32(32))+wc&uint32(255)>>int32(3)]) >> (wc & uint32(7)) & int32(1) + } + if wc < uint32(0x2fffe) { + return int32(1) + } + return 0 +} + +func X__iswalpha_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswalpha(tls, c) +} + +func Xiswalpha_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswalpha_l(tls, c, l) +} + +func Xiswblank(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xisblank(tls, Int32FromUint32(wc)) +} + +func X__iswblank_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswblank(tls, c) +} + +func Xiswblank_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswblank_l(tls, c, l) +} + +func Xiswcntrl(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(wc < uint32(32) || wc-Uint32FromInt32(0x7f) < uint32(33) || wc-Uint32FromInt32(0x2028) < uint32(2) || wc-Uint32FromInt32(0xfff9) < uint32(3)) +} + +func X__iswcntrl_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswcntrl(tls, c) +} + +func Xiswcntrl_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswcntrl_l(tls, c, l) +} + +const WCTYPE_ALNUM = 1 +const WCTYPE_ALPHA = 2 +const WCTYPE_BLANK = 3 +const WCTYPE_CNTRL = 4 +const WCTYPE_DIGIT = 5 +const WCTYPE_GRAPH = 6 +const WCTYPE_LOWER = 7 +const WCTYPE_PRINT = 8 +const WCTYPE_PUNCT = 9 +const WCTYPE_SPACE = 10 +const WCTYPE_UPPER = 11 +const WCTYPE_XDIGIT = 12 + +func Xiswctype(tls *TLS, wc Twint_t, type1 Twctype_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v type1=%v, (%v:)", tls, wc, type1, origin(2)) + defer func() { trc("-> %v", r) }() + } + switch type1 { + case uint64(WCTYPE_ALNUM): + return Xiswalnum(tls, wc) + case uint64(WCTYPE_ALPHA): + return Xiswalpha(tls, wc) + case uint64(WCTYPE_BLANK): + return Xiswblank(tls, wc) + case uint64(WCTYPE_CNTRL): + return Xiswcntrl(tls, wc) + case uint64(WCTYPE_DIGIT): + return BoolInt32(wc-uint32('0') < uint32(10)) + case uint64(WCTYPE_GRAPH): + return Xiswgraph(tls, wc) + case uint64(WCTYPE_LOWER): + return Xiswlower(tls, wc) + case uint64(WCTYPE_PRINT): + return Xiswprint(tls, wc) + case uint64(WCTYPE_PUNCT): + return Xiswpunct(tls, wc) + case uint64(WCTYPE_SPACE): + return Xiswspace(tls, wc) + case uint64(WCTYPE_UPPER): + return Xiswupper(tls, wc) + case uint64(WCTYPE_XDIGIT): + return Xiswxdigit(tls, wc) + } + return 0 +} + +func Xwctype(tls *TLS, s uintptr) (r Twctype_t) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var i int32 + var p uintptr + _, _ = i, p + i = int32(1) + p = uintptr(unsafe.Pointer(&_names)) + for { + if !(**(**uint8)(__ccgo_up(p)) != 0) { + break + } + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == Int32FromUint8(**(**uint8)(__ccgo_up(p))) && !(Xstrcmp(tls, s, p) != 0) { + return Uint64FromInt32(i) + } + goto _1 + _1: + ; + i = i + 1 + p = p + uintptr(6) + } + return uint64(0) +} + +/* order must match! */ +var _names = [73]uint8{'a', 'l', 'n', 'u', 'm', 0, 'a', 'l', 'p', 'h', 'a', 0, 'b', 'l', 'a', 'n', 'k', 0, 'c', 'n', 't', 'r', 'l', 0, 'd', 'i', 'g', 'i', 't', 0, 'g', 'r', 'a', 'p', 'h', 0, 'l', 'o', 'w', 'e', 'r', 0, 'p', 'r', 'i', 'n', 't', 0, 'p', 'u', 'n', 'c', 't', 0, 's', 'p', 'a', 'c', 'e', 0, 'u', 'p', 'p', 'e', 'r', 0, 'x', 'd', 'i', 'g', 'i', 't'} + +func X__iswctype_l(tls *TLS, c Twint_t, t Twctype_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v t=%v l=%v, (%v:)", tls, c, t, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswctype(tls, c, t) +} + +func X__wctype_l(tls *TLS, s uintptr, l Tlocale_t) (r Twctype_t) { + if __ccgo_strace { + trc("tls=%v s=%v l=%v, (%v:)", tls, s, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwctype(tls, s) +} + +func Xiswctype_l(tls *TLS, c Twint_t, t Twctype_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v t=%v l=%v, (%v:)", tls, c, t, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswctype_l(tls, c, t, l) +} + +func Xwctype_l(tls *TLS, s uintptr, l Tlocale_t) (r Twctype_t) { + if __ccgo_strace { + trc("tls=%v s=%v l=%v, (%v:)", tls, s, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__wctype_l(tls, s, l) +} + +func Xiswdigit(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(wc-uint32('0') < uint32(10)) +} + +func X__iswdigit_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswdigit(tls, c) +} + +func Xiswdigit_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswdigit_l(tls, c, l) +} + +func Xiswgraph(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + /* ISO C defines this function as: */ + return BoolInt32(!(Xiswspace(tls, wc) != 0) && Xiswprint(tls, wc) != 0) +} + +func X__iswgraph_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswgraph(tls, c) +} + +func Xiswgraph_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswgraph_l(tls, c, l) +} + +func Xiswlower(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(Xtowupper(tls, wc) != wc) +} + +func X__iswlower_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswlower(tls, c) +} + +func Xiswlower_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswlower_l(tls, c, l) +} + +/* Consider all legal codepoints as printable except for: + * - C0 and C1 control characters + * - U+2028 and U+2029 (line/para break) + * - U+FFF9 through U+FFFB (interlinear annotation controls) + * The following code is optimized heavily to make hot paths for the + * expected printable characters. */ + +func Xiswprint(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + if wc < uint32(0xff) { + return BoolInt32((wc+uint32(1))&uint32(0x7f) >= uint32(0x21)) + } + if wc < uint32(0x2028) || wc-uint32(0x202a) < Uint32FromInt32(Int32FromInt32(0xd800)-Int32FromInt32(0x202a)) || wc-uint32(0xe000) < Uint32FromInt32(Int32FromInt32(0xfff9)-Int32FromInt32(0xe000)) { + return int32(1) + } + if wc-uint32(0xfffc) > Uint32FromInt32(Int32FromInt32(0x10ffff)-Int32FromInt32(0xfffc)) || wc&uint32(0xfffe) == uint32(0xfffe) { + return 0 + } + return int32(1) +} + +func X__iswprint_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswprint(tls, c) +} + +func Xiswprint_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswprint_l(tls, c, l) +} + +var _table4 = [4000]uint8{ + 0: uint8(18), + 1: uint8(16), + 2: uint8(19), + 3: uint8(20), + 4: uint8(21), + 5: uint8(22), + 6: uint8(23), + 7: uint8(24), + 8: uint8(25), + 9: uint8(26), + 10: uint8(27), + 11: uint8(28), + 12: uint8(29), + 13: uint8(30), + 14: uint8(31), + 15: uint8(32), + 16: uint8(33), + 17: uint8(16), + 18: uint8(16), + 19: uint8(34), + 20: uint8(35), + 21: uint8(16), + 22: uint8(36), + 23: uint8(37), + 24: uint8(38), + 25: uint8(39), + 26: uint8(40), + 27: uint8(41), + 28: uint8(42), + 29: uint8(43), + 30: uint8(16), + 31: uint8(44), + 32: uint8(45), + 33: uint8(46), + 34: uint8(17), + 35: uint8(17), + 36: uint8(47), + 37: uint8(17), + 38: uint8(17), + 39: uint8(17), + 40: uint8(17), + 41: uint8(17), + 42: uint8(17), + 43: uint8(48), + 44: uint8(49), + 45: uint8(50), + 46: uint8(51), + 47: uint8(52), + 48: uint8(53), + 49: uint8(54), + 50: uint8(55), + 51: uint8(17), + 52: uint8(16), + 53: uint8(16), + 54: uint8(16), + 55: uint8(16), + 56: uint8(16), + 57: uint8(16), + 58: uint8(16), + 59: uint8(16), + 60: uint8(16), + 61: uint8(16), + 62: uint8(16), + 63: uint8(16), + 64: uint8(16), + 65: uint8(16), + 66: uint8(16), + 67: uint8(16), + 68: uint8(16), + 69: uint8(16), + 70: uint8(16), + 71: uint8(16), + 72: uint8(16), + 73: uint8(16), + 74: uint8(16), + 75: uint8(16), + 76: uint8(16), + 77: uint8(56), + 78: uint8(16), + 79: uint8(16), + 80: uint8(16), + 81: uint8(16), + 82: uint8(16), + 83: uint8(16), + 84: uint8(16), + 85: uint8(16), + 86: uint8(16), + 87: uint8(16), + 88: uint8(16), + 89: uint8(16), + 90: uint8(16), + 91: uint8(16), + 92: uint8(16), + 93: uint8(16), + 94: uint8(16), + 95: uint8(16), + 96: uint8(16), + 97: uint8(16), + 98: uint8(16), + 99: uint8(16), + 100: uint8(16), + 101: uint8(16), + 102: uint8(16), + 103: uint8(16), + 104: uint8(16), + 105: uint8(16), + 106: uint8(16), + 107: uint8(16), + 108: uint8(16), + 109: uint8(16), + 110: uint8(16), + 111: uint8(16), + 112: uint8(16), + 113: uint8(16), + 114: uint8(16), + 115: uint8(16), + 116: uint8(16), + 117: uint8(16), + 118: uint8(16), + 119: uint8(16), + 120: uint8(16), + 121: uint8(16), + 122: uint8(16), + 123: uint8(16), + 124: uint8(16), + 125: uint8(16), + 126: uint8(16), + 127: uint8(16), + 128: uint8(16), + 129: uint8(16), + 130: uint8(16), + 131: uint8(16), + 132: uint8(16), + 133: uint8(16), + 134: uint8(16), + 135: uint8(16), + 136: uint8(16), + 137: uint8(16), + 138: uint8(16), + 139: uint8(16), + 140: uint8(16), + 141: uint8(16), + 142: uint8(16), + 143: uint8(16), + 144: uint8(16), + 145: uint8(16), + 146: uint8(16), + 147: uint8(16), + 148: uint8(16), + 149: uint8(16), + 150: uint8(16), + 151: uint8(16), + 152: uint8(16), + 153: uint8(16), + 154: uint8(16), + 155: uint8(16), + 156: uint8(16), + 157: uint8(16), + 158: uint8(16), + 159: uint8(16), + 160: uint8(16), + 161: uint8(16), + 162: uint8(16), + 163: uint8(16), + 164: uint8(57), + 165: uint8(16), + 166: uint8(58), + 167: uint8(59), + 168: uint8(60), + 169: uint8(61), + 170: uint8(62), + 171: uint8(63), + 172: uint8(16), + 173: uint8(16), + 174: uint8(16), + 175: uint8(16), + 176: uint8(16), + 177: uint8(16), + 178: uint8(16), + 179: uint8(16), + 180: uint8(16), + 181: uint8(16), + 182: uint8(16), + 183: uint8(16), + 184: uint8(16), + 185: uint8(16), + 186: uint8(16), + 187: uint8(16), + 188: uint8(16), + 189: uint8(16), + 190: uint8(16), + 191: uint8(16), + 192: uint8(16), + 193: uint8(16), + 194: uint8(16), + 195: uint8(16), + 196: uint8(16), + 197: uint8(16), + 198: uint8(16), + 199: uint8(16), + 200: uint8(16), + 201: uint8(16), + 202: uint8(16), + 203: uint8(16), + 204: uint8(16), + 205: uint8(16), + 206: uint8(16), + 207: uint8(16), + 208: uint8(16), + 209: uint8(16), + 210: uint8(16), + 211: uint8(16), + 212: uint8(16), + 213: uint8(16), + 214: uint8(16), + 215: uint8(16), + 216: uint8(16), + 217: uint8(16), + 218: uint8(16), + 219: uint8(16), + 220: uint8(16), + 221: uint8(16), + 222: uint8(16), + 223: uint8(16), + 224: uint8(64), + 225: uint8(16), + 226: uint8(16), + 227: uint8(16), + 228: uint8(16), + 229: uint8(16), + 230: uint8(16), + 231: uint8(16), + 232: uint8(16), + 233: uint8(16), + 234: uint8(16), + 235: uint8(16), + 236: uint8(16), + 237: uint8(16), + 238: uint8(16), + 239: uint8(16), + 240: uint8(16), + 241: uint8(16), + 242: uint8(16), + 243: uint8(16), + 244: uint8(16), + 245: uint8(16), + 246: uint8(16), + 247: uint8(16), + 248: uint8(65), + 249: uint8(16), + 250: uint8(16), + 251: uint8(66), + 252: uint8(16), + 253: uint8(67), + 254: uint8(68), + 255: uint8(69), + 256: uint8(16), + 257: uint8(70), + 258: uint8(71), + 259: uint8(72), + 260: uint8(16), + 261: uint8(73), + 262: uint8(16), + 263: uint8(16), + 264: uint8(74), + 265: uint8(75), + 266: uint8(76), + 267: uint8(77), + 268: uint8(78), + 269: uint8(16), + 270: uint8(79), + 271: uint8(80), + 272: uint8(81), + 273: uint8(82), + 274: uint8(83), + 275: uint8(84), + 276: uint8(85), + 277: uint8(86), + 278: uint8(87), + 279: uint8(88), + 280: uint8(89), + 281: uint8(90), + 282: uint8(91), + 283: uint8(16), + 284: uint8(92), + 285: uint8(93), + 286: uint8(94), + 287: uint8(95), + 288: uint8(16), + 289: uint8(16), + 290: uint8(16), + 291: uint8(16), + 292: uint8(96), + 293: uint8(16), + 294: uint8(16), + 295: uint8(16), + 296: uint8(16), + 297: uint8(16), + 298: uint8(16), + 299: uint8(16), + 300: uint8(16), + 301: uint8(16), + 302: uint8(16), + 303: uint8(16), + 304: uint8(16), + 305: uint8(16), + 306: uint8(16), + 307: uint8(16), + 308: uint8(97), + 309: uint8(16), + 310: uint8(16), + 311: uint8(16), + 312: uint8(16), + 313: uint8(16), + 314: uint8(16), + 315: uint8(16), + 316: uint8(16), + 317: uint8(16), + 318: uint8(16), + 319: uint8(16), + 320: uint8(16), + 321: uint8(16), + 322: uint8(16), + 323: uint8(16), + 324: uint8(16), + 325: uint8(16), + 326: uint8(16), + 327: uint8(16), + 328: uint8(16), + 329: uint8(16), + 330: uint8(16), + 331: uint8(16), + 332: uint8(16), + 333: uint8(16), + 334: uint8(16), + 335: uint8(16), + 336: uint8(16), + 337: uint8(16), + 338: uint8(16), + 339: uint8(16), + 340: uint8(16), + 341: uint8(16), + 342: uint8(16), + 343: uint8(16), + 344: uint8(16), + 345: uint8(16), + 346: uint8(16), + 347: uint8(16), + 348: uint8(16), + 349: uint8(16), + 350: uint8(16), + 351: uint8(16), + 352: uint8(16), + 353: uint8(16), + 354: uint8(16), + 355: uint8(16), + 356: uint8(16), + 357: uint8(16), + 358: uint8(16), + 359: uint8(16), + 360: uint8(16), + 361: uint8(16), + 362: uint8(98), + 363: uint8(99), + 364: uint8(16), + 365: uint8(16), + 366: uint8(100), + 367: uint8(101), + 368: uint8(16), + 369: uint8(16), + 370: uint8(16), + 371: uint8(16), + 372: uint8(16), + 373: uint8(16), + 374: uint8(16), + 375: uint8(16), + 376: uint8(16), + 377: uint8(16), + 378: uint8(16), + 379: uint8(16), + 380: uint8(16), + 381: uint8(16), + 382: uint8(16), + 383: uint8(16), + 384: uint8(16), + 385: uint8(16), + 386: uint8(16), + 387: uint8(16), + 388: uint8(16), + 389: uint8(16), + 390: uint8(16), + 391: uint8(16), + 392: uint8(16), + 393: uint8(16), + 394: uint8(16), + 395: uint8(16), + 396: uint8(16), + 397: uint8(16), + 398: uint8(16), + 399: uint8(16), + 400: uint8(16), + 401: uint8(16), + 402: uint8(16), + 403: uint8(16), + 404: uint8(16), + 405: uint8(16), + 406: uint8(16), + 407: uint8(16), + 408: uint8(16), + 409: uint8(16), + 410: uint8(16), + 411: uint8(16), + 412: uint8(16), + 413: uint8(16), + 414: uint8(16), + 415: uint8(16), + 416: uint8(16), + 417: uint8(16), + 418: uint8(16), + 419: uint8(16), + 420: uint8(16), + 421: uint8(16), + 422: uint8(16), + 423: uint8(16), + 424: uint8(16), + 425: uint8(16), + 426: uint8(16), + 427: uint8(16), + 428: uint8(16), + 429: uint8(16), + 430: uint8(16), + 431: uint8(16), + 432: uint8(16), + 433: uint8(16), + 434: uint8(16), + 435: uint8(16), + 436: uint8(16), + 437: uint8(16), + 438: uint8(16), + 439: uint8(16), + 440: uint8(16), + 441: uint8(16), + 442: uint8(16), + 443: uint8(16), + 444: uint8(102), + 445: uint8(16), + 446: uint8(16), + 447: uint8(16), + 448: uint8(16), + 449: uint8(16), + 450: uint8(16), + 451: uint8(16), + 452: uint8(16), + 453: uint8(16), + 454: uint8(16), + 455: uint8(16), + 456: uint8(16), + 457: uint8(16), + 458: uint8(16), + 459: uint8(16), + 460: uint8(16), + 461: uint8(16), + 462: uint8(16), + 463: uint8(16), + 464: uint8(103), + 465: uint8(104), + 466: uint8(105), + 467: uint8(106), + 468: uint8(16), + 469: uint8(16), + 470: uint8(107), + 471: uint8(108), + 472: uint8(17), + 473: uint8(17), + 474: uint8(109), + 475: uint8(16), + 476: uint8(16), + 477: uint8(16), + 478: uint8(16), + 479: uint8(16), + 480: uint8(16), + 481: uint8(110), + 482: uint8(111), + 483: uint8(16), + 484: uint8(16), + 485: uint8(16), + 486: uint8(16), + 487: uint8(16), + 488: uint8(112), + 489: uint8(113), + 490: uint8(16), + 491: uint8(16), + 492: uint8(114), + 493: uint8(115), + 494: uint8(116), + 495: uint8(16), + 496: uint8(117), + 497: uint8(118), + 498: uint8(119), + 499: uint8(17), + 500: uint8(17), + 501: uint8(17), + 502: uint8(120), + 503: uint8(121), + 504: uint8(122), + 505: uint8(123), + 506: uint8(124), + 507: uint8(16), + 508: uint8(16), + 509: uint8(16), + 510: uint8(16), + 511: uint8(16), + 544: uint8(255), + 545: uint8(255), + 546: uint8(255), + 547: uint8(255), + 548: uint8(255), + 549: uint8(255), + 550: uint8(255), + 551: uint8(255), + 552: uint8(255), + 553: uint8(255), + 554: uint8(255), + 555: uint8(255), + 556: uint8(255), + 557: uint8(255), + 558: uint8(255), + 559: uint8(255), + 560: uint8(255), + 561: uint8(255), + 562: uint8(255), + 563: uint8(255), + 564: uint8(255), + 565: uint8(255), + 566: uint8(255), + 567: uint8(255), + 568: uint8(255), + 569: uint8(255), + 570: uint8(255), + 571: uint8(255), + 572: uint8(255), + 573: uint8(255), + 574: uint8(255), + 575: uint8(255), + 580: uint8(254), + 581: uint8(255), + 583: uint8(252), + 584: uint8(1), + 587: uint8(248), + 588: uint8(1), + 591: uint8(120), + 596: uint8(255), + 597: uint8(251), + 598: uint8(223), + 599: uint8(251), + 602: uint8(128), + 606: uint8(128), + 632: uint8(60), + 634: uint8(252), + 635: uint8(255), + 636: uint8(224), + 637: uint8(175), + 638: uint8(255), + 639: uint8(255), + 640: uint8(255), + 641: uint8(255), + 642: uint8(255), + 643: uint8(255), + 644: uint8(255), + 645: uint8(255), + 646: uint8(255), + 647: uint8(255), + 648: uint8(223), + 649: uint8(255), + 650: uint8(255), + 651: uint8(255), + 652: uint8(255), + 653: uint8(255), + 654: uint8(32), + 655: uint8(64), + 656: uint8(176), + 670: uint8(64), + 688: uint8(252), + 689: uint8(3), + 715: uint8(252), + 721: uint8(230), + 722: uint8(254), + 723: uint8(255), + 724: uint8(255), + 725: uint8(255), + 727: uint8(64), + 728: uint8(73), + 734: uint8(24), + 736: uint8(255), + 737: uint8(255), + 739: uint8(216), + 747: uint8(1), + 749: uint8(60), + 762: uint8(16), + 763: uint8(224), + 764: uint8(1), + 765: uint8(30), + 767: uint8(96), + 768: uint8(255), + 769: uint8(191), + 776: uint8(255), + 777: uint8(7), + 797: uint8(248), + 798: uint8(207), + 799: uint8(227), + 803: uint8(3), + 805: uint8(32), + 806: uint8(255), + 807: uint8(127), + 811: uint8(78), + 826: uint8(8), + 828: uint8(7), + 829: uint8(252), + 839: uint8(16), + 841: uint8(32), + 842: uint8(30), + 844: uint8(48), + 846: uint8(1), + 855: uint8(16), + 857: uint8(32), + 862: uint8(252), + 863: uint8(111), + 871: uint8(16), + 873: uint8(32), + 878: uint8(64), + 887: uint8(16), + 889: uint8(32), + 894: uint8(3), + 895: uint8(224), + 903: uint8(16), + 905: uint8(32), + 910: uint8(253), + 921: uint8(32), + 926: uint8(255), + 927: uint8(7), + 928: uint8(16), + 937: uint8(32), + 942: uint8(128), + 943: uint8(255), + 944: uint8(16), + 951: uint8(16), + 953: uint8(32), + 967: uint8(24), + 969: uint8(160), + 971: uint8(127), + 974: uint8(255), + 975: uint8(3), + 985: uint8(4), + 990: uint8(16), + 997: uint8(128), + 999: uint8(128), + 1000: uint8(192), + 1001: uint8(223), + 1003: uint8(12), + 1015: uint8(4), + 1017: uint8(31), + 1024: uint8(254), + 1025: uint8(255), + 1026: uint8(255), + 1027: uint8(255), + 1029: uint8(252), + 1030: uint8(255), + 1031: uint8(255), + 1040: uint8(252), + 1047: uint8(192), + 1048: uint8(255), + 1049: uint8(223), + 1050: uint8(255), + 1051: uint8(7), + 1062: uint8(128), + 1063: uint8(6), + 1065: uint8(252), + 1075: uint8(192), + 1087: uint8(8), + 1099: uint8(224), + 1100: uint8(255), + 1101: uint8(255), + 1102: uint8(255), + 1103: uint8(31), + 1106: uint8(255), + 1107: uint8(3), + 1120: uint8(1), + 1165: uint8(96), + 1168: uint8(1), + 1171: uint8(24), + 1181: uint8(56), + 1186: uint8(16), + 1190: uint8(112), + 1206: uint8(48), + 1209: uint8(254), + 1210: uint8(127), + 1211: uint8(47), + 1214: uint8(255), + 1215: uint8(3), + 1216: uint8(255), + 1217: uint8(127), + 1255: uint8(14), + 1256: uint8(49), + 1275: uint8(196), + 1276: uint8(255), + 1277: uint8(255), + 1278: uint8(255), + 1279: uint8(255), + 1283: uint8(192), + 1292: uint8(1), + 1294: uint8(224), + 1295: uint8(159), + 1300: uint8(127), + 1301: uint8(63), + 1302: uint8(255), + 1303: uint8(127), + 1318: uint8(16), + 1320: uint8(16), + 1323: uint8(252), + 1324: uint8(255), + 1325: uint8(255), + 1326: uint8(255), + 1327: uint8(31), + 1333: uint8(12), + 1340: uint8(64), + 1342: uint8(12), + 1343: uint8(240), + 1350: uint8(128), + 1351: uint8(248), + 1359: uint8(192), + 1368: uint8(255), + 1370: uint8(255), + 1371: uint8(255), + 1372: uint8(255), + 1373: uint8(33), + 1374: uint8(144), + 1375: uint8(3), + 1400: uint8(255), + 1401: uint8(255), + 1402: uint8(255), + 1403: uint8(255), + 1404: uint8(127), + 1406: uint8(224), + 1407: uint8(251), + 1431: uint8(160), + 1432: uint8(3), + 1433: uint8(224), + 1435: uint8(224), + 1437: uint8(224), + 1439: uint8(96), + 1440: uint8(128), + 1441: uint8(248), + 1442: uint8(255), + 1443: uint8(255), + 1444: uint8(255), + 1445: uint8(252), + 1446: uint8(255), + 1447: uint8(255), + 1448: uint8(255), + 1449: uint8(255), + 1450: uint8(255), + 1451: uint8(127), + 1452: uint8(223), + 1453: uint8(255), + 1454: uint8(241), + 1455: uint8(127), + 1456: uint8(255), + 1457: uint8(127), + 1460: uint8(255), + 1461: uint8(255), + 1462: uint8(255), + 1463: uint8(255), + 1466: uint8(255), + 1467: uint8(255), + 1468: uint8(255), + 1469: uint8(255), + 1470: uint8(1), + 1472: uint8(123), + 1473: uint8(3), + 1474: uint8(208), + 1475: uint8(193), + 1476: uint8(175), + 1477: uint8(66), + 1479: uint8(12), + 1480: uint8(31), + 1481: uint8(188), + 1482: uint8(255), + 1483: uint8(255), + 1489: uint8(14), + 1490: uint8(255), + 1491: uint8(255), + 1492: uint8(255), + 1493: uint8(255), + 1494: uint8(255), + 1495: uint8(255), + 1496: uint8(255), + 1497: uint8(255), + 1498: uint8(255), + 1499: uint8(255), + 1500: uint8(255), + 1501: uint8(255), + 1502: uint8(255), + 1503: uint8(255), + 1504: uint8(255), + 1505: uint8(255), + 1506: uint8(255), + 1507: uint8(255), + 1508: uint8(127), + 1512: uint8(255), + 1513: uint8(7), + 1516: uint8(255), + 1517: uint8(255), + 1518: uint8(255), + 1519: uint8(255), + 1520: uint8(255), + 1521: uint8(255), + 1522: uint8(255), + 1523: uint8(255), + 1524: uint8(255), + 1525: uint8(255), + 1526: uint8(63), + 1533: uint8(252), + 1534: uint8(255), + 1535: uint8(255), + 1536: uint8(255), + 1537: uint8(255), + 1538: uint8(255), + 1539: uint8(255), + 1540: uint8(255), + 1541: uint8(255), + 1542: uint8(255), + 1543: uint8(255), + 1544: uint8(255), + 1545: uint8(255), + 1546: uint8(255), + 1547: uint8(255), + 1548: uint8(255), + 1549: uint8(255), + 1550: uint8(207), + 1551: uint8(255), + 1552: uint8(255), + 1553: uint8(255), + 1554: uint8(63), + 1555: uint8(255), + 1556: uint8(255), + 1557: uint8(255), + 1558: uint8(255), + 1559: uint8(255), + 1560: uint8(255), + 1561: uint8(255), + 1562: uint8(255), + 1563: uint8(255), + 1564: uint8(255), + 1565: uint8(255), + 1566: uint8(255), + 1567: uint8(255), + 1596: uint8(224), + 1597: uint8(135), + 1598: uint8(3), + 1599: uint8(254), + 1614: uint8(1), + 1615: uint8(128), + 1632: uint8(255), + 1633: uint8(255), + 1634: uint8(255), + 1635: uint8(255), + 1636: uint8(255), + 1637: uint8(127), + 1638: uint8(255), + 1639: uint8(255), + 1640: uint8(255), + 1641: uint8(255), + 1648: uint8(255), + 1649: uint8(255), + 1650: uint8(255), + 1651: uint8(251), + 1652: uint8(255), + 1653: uint8(255), + 1654: uint8(255), + 1655: uint8(255), + 1656: uint8(255), + 1657: uint8(255), + 1658: uint8(255), + 1659: uint8(255), + 1660: uint8(255), + 1661: uint8(255), + 1662: uint8(15), + 1664: uint8(255), + 1665: uint8(255), + 1666: uint8(255), + 1667: uint8(255), + 1668: uint8(255), + 1669: uint8(255), + 1670: uint8(255), + 1671: uint8(255), + 1672: uint8(255), + 1673: uint8(255), + 1674: uint8(255), + 1675: uint8(255), + 1676: uint8(255), + 1677: uint8(255), + 1678: uint8(255), + 1679: uint8(255), + 1680: uint8(255), + 1681: uint8(255), + 1682: uint8(255), + 1683: uint8(255), + 1684: uint8(255), + 1685: uint8(255), + 1686: uint8(255), + 1687: uint8(255), + 1688: uint8(255), + 1689: uint8(255), + 1690: uint8(63), + 1694: uint8(255), + 1695: uint8(15), + 1696: uint8(30), + 1697: uint8(255), + 1698: uint8(255), + 1699: uint8(255), + 1700: uint8(1), + 1701: uint8(252), + 1702: uint8(193), + 1703: uint8(224), + 1715: uint8(30), + 1716: uint8(1), + 1727: uint8(8), + 1746: uint8(255), + 1747: uint8(255), + 1752: uint8(255), + 1753: uint8(255), + 1754: uint8(255), + 1755: uint8(255), + 1756: uint8(15), + 1760: uint8(255), + 1761: uint8(255), + 1762: uint8(255), + 1763: uint8(127), + 1764: uint8(255), + 1765: uint8(255), + 1766: uint8(255), + 1767: uint8(255), + 1768: uint8(255), + 1769: uint8(255), + 1770: uint8(255), + 1771: uint8(255), + 1772: uint8(255), + 1773: uint8(255), + 1774: uint8(255), + 1775: uint8(255), + 1776: uint8(255), + 1777: uint8(255), + 1778: uint8(255), + 1779: uint8(255), + 1780: uint8(255), + 1781: uint8(255), + 1782: uint8(255), + 1783: uint8(255), + 1784: uint8(255), + 1785: uint8(255), + 1786: uint8(255), + 1787: uint8(255), + 1788: uint8(255), + 1789: uint8(255), + 1790: uint8(255), + 1791: uint8(255), + 1816: uint8(255), + 1817: uint8(255), + 1818: uint8(255), + 1819: uint8(255), + 1820: uint8(255), + 1821: uint8(255), + 1822: uint8(255), + 1823: uint8(255), + 1842: uint8(255), + 1843: uint8(255), + 1844: uint8(255), + 1845: uint8(255), + 1846: uint8(255), + 1847: uint8(255), + 1848: uint8(127), + 1855: uint8(192), + 1857: uint8(224), + 1869: uint8(128), + 1870: uint8(15), + 1871: uint8(112), + 1886: uint8(255), + 1888: uint8(255), + 1889: uint8(255), + 1890: uint8(127), + 1892: uint8(3), + 1905: uint8(6), + 1920: uint8(64), + 1925: uint8(15), + 1926: uint8(255), + 1927: uint8(3), + 1934: uint8(240), + 1944: uint8(16), + 1945: uint8(192), + 1948: uint8(255), + 1949: uint8(255), + 1950: uint8(3), + 1951: uint8(23), + 1957: uint8(248), + 1962: uint8(8), + 1963: uint8(128), + 1974: uint8(8), + 1976: uint8(255), + 1977: uint8(63), + 1979: uint8(192), + 1995: uint8(240), + 1998: uint8(128), + 1999: uint8(3), + 2007: uint8(128), + 2008: uint8(2), + 2011: uint8(192), + 2014: uint8(67), + 2027: uint8(8), + 2045: uint8(56), + 2048: uint8(1), + 2111: uint8(128), + 2117: uint8(2), + 2134: uint8(252), + 2135: uint8(255), + 2136: uint8(3), + 2151: uint8(192), + 2175: uint8(48), + 2176: uint8(255), + 2177: uint8(255), + 2178: uint8(255), + 2179: uint8(3), + 2180: uint8(255), + 2181: uint8(255), + 2182: uint8(255), + 2183: uint8(255), + 2184: uint8(255), + 2185: uint8(255), + 2186: uint8(247), + 2187: uint8(255), + 2188: uint8(127), + 2189: uint8(15), + 2207: uint8(128), + 2208: uint8(254), + 2209: uint8(255), + 2211: uint8(252), + 2212: uint8(1), + 2215: uint8(248), + 2216: uint8(1), + 2219: uint8(248), + 2220: uint8(63), + 2236: uint8(127), + 2237: uint8(127), + 2239: uint8(48), + 2240: uint8(135), + 2241: uint8(255), + 2242: uint8(255), + 2243: uint8(255), + 2244: uint8(255), + 2245: uint8(255), + 2246: uint8(143), + 2247: uint8(255), + 2254: uint8(224), + 2255: uint8(255), + 2256: uint8(255), + 2257: uint8(127), + 2258: uint8(255), + 2259: uint8(15), + 2260: uint8(1), + 2266: uint8(255), + 2267: uint8(255), + 2268: uint8(255), + 2269: uint8(255), + 2270: uint8(255), + 2271: uint8(63), + 2300: uint8(255), + 2301: uint8(255), + 2302: uint8(255), + 2303: uint8(15), + 2308: uint8(15), + 2323: uint8(128), + 2330: uint8(1), + 2349: uint8(128), + 2378: uint8(128), + 2379: uint8(255), + 2382: uint8(128), + 2383: uint8(255), + 2388: uint8(128), + 2389: uint8(255), + 2399: uint8(248), + 2402: uint8(192), + 2403: uint8(143), + 2407: uint8(128), + 2423: uint8(48), + 2424: uint8(255), + 2425: uint8(255), + 2426: uint8(252), + 2427: uint8(255), + 2428: uint8(255), + 2429: uint8(255), + 2430: uint8(255), + 2431: uint8(255), + 2439: uint8(135), + 2440: uint8(255), + 2441: uint8(1), + 2442: uint8(255), + 2443: uint8(1), + 2447: uint8(224), + 2451: uint8(224), + 2457: uint8(1), + 2460: uint8(96), + 2461: uint8(248), + 2462: uint8(127), + 2471: uint8(254), + 2475: uint8(255), + 2479: uint8(255), + 2483: uint8(30), + 2485: uint8(254), + 2527: uint8(252), + 2540: uint8(255), + 2541: uint8(255), + 2542: uint8(255), + 2543: uint8(127), + 2563: uint8(224), + 2564: uint8(127), + 2568: uint8(192), + 2569: uint8(255), + 2570: uint8(255), + 2571: uint8(3), + 2600: uint8(192), + 2601: uint8(63), + 2602: uint8(252), + 2603: uint8(255), + 2604: uint8(63), + 2607: uint8(128), + 2608: uint8(3), + 2615: uint8(254), + 2616: uint8(3), + 2617: uint8(32), + 2630: uint8(24), + 2632: uint8(15), + 2638: uint8(56), + 2648: uint8(225), + 2649: uint8(63), + 2651: uint8(232), + 2652: uint8(254), + 2653: uint8(255), + 2654: uint8(31), + 2662: uint8(96), + 2663: uint8(63), + 2677: uint8(2), + 2685: uint8(6), + 2695: uint8(24), + 2697: uint8(32), + 2700: uint8(192), + 2701: uint8(31), + 2702: uint8(31), + 2728: uint8(68), + 2729: uint8(248), + 2731: uint8(104), + 2744: uint8(76), + 2775: uint8(128), + 2776: uint8(255), + 2777: uint8(255), + 2778: uint8(255), + 2791: uint8(128), + 2792: uint8(14), + 2796: uint8(255), + 2797: uint8(31), + 2806: uint8(192), + 2821: uint8(8), + 2823: uint8(252), + 2855: uint8(14), + 2877: uint8(252), + 2878: uint8(7), + 2908: uint8(5), + 2918: uint8(24), + 2919: uint8(128), + 2920: uint8(255), + 2931: uint8(223), + 2932: uint8(7), + 2951: uint8(128), + 2952: uint8(62), + 2955: uint8(252), + 2956: uint8(255), + 2957: uint8(31), + 2958: uint8(3), + 2984: uint8(52), + 2994: uint8(128), + 3038: uint8(128), + 3039: uint8(1), + 3064: uint8(255), + 3065: uint8(255), + 3066: uint8(255), + 3067: uint8(255), + 3068: uint8(255), + 3069: uint8(255), + 3070: uint8(3), + 3071: uint8(128), + 3086: uint8(31), + 3110: uint8(255), + 3111: uint8(1), + 3149: uint8(192), + 3166: uint8(63), + 3174: uint8(255), + 3175: uint8(255), + 3176: uint8(48), + 3179: uint8(248), + 3180: uint8(3), + 3216: uint8(255), + 3217: uint8(255), + 3218: uint8(255), + 3219: uint8(7), + 3260: uint8(4), + 3283: uint8(176), + 3284: uint8(15), + 3296: uint8(255), + 3297: uint8(255), + 3298: uint8(255), + 3299: uint8(255), + 3300: uint8(255), + 3301: uint8(255), + 3302: uint8(255), + 3303: uint8(255), + 3304: uint8(255), + 3305: uint8(255), + 3306: uint8(255), + 3307: uint8(255), + 3308: uint8(255), + 3309: uint8(255), + 3310: uint8(255), + 3311: uint8(255), + 3312: uint8(255), + 3313: uint8(255), + 3314: uint8(255), + 3315: uint8(255), + 3316: uint8(255), + 3317: uint8(255), + 3318: uint8(255), + 3319: uint8(255), + 3320: uint8(255), + 3321: uint8(255), + 3322: uint8(255), + 3323: uint8(255), + 3324: uint8(255), + 3325: uint8(255), + 3326: uint8(63), + 3328: uint8(255), + 3329: uint8(255), + 3330: uint8(255), + 3331: uint8(255), + 3332: uint8(127), + 3333: uint8(254), + 3334: uint8(255), + 3335: uint8(255), + 3336: uint8(255), + 3337: uint8(255), + 3338: uint8(255), + 3339: uint8(255), + 3340: uint8(255), + 3341: uint8(255), + 3342: uint8(255), + 3343: uint8(255), + 3344: uint8(255), + 3345: uint8(255), + 3346: uint8(255), + 3347: uint8(255), + 3348: uint8(255), + 3349: uint8(255), + 3350: uint8(255), + 3351: uint8(255), + 3352: uint8(255), + 3353: uint8(255), + 3354: uint8(255), + 3355: uint8(255), + 3356: uint8(255), + 3357: uint8(1), + 3360: uint8(255), + 3361: uint8(255), + 3362: uint8(255), + 3363: uint8(255), + 3364: uint8(255), + 3365: uint8(255), + 3366: uint8(255), + 3367: uint8(255), + 3368: uint8(63), + 3388: uint8(255), + 3389: uint8(255), + 3390: uint8(15), + 3392: uint8(255), + 3393: uint8(255), + 3394: uint8(255), + 3395: uint8(255), + 3396: uint8(255), + 3397: uint8(255), + 3398: uint8(255), + 3399: uint8(255), + 3400: uint8(255), + 3401: uint8(255), + 3402: uint8(127), + 3404: uint8(255), + 3405: uint8(255), + 3406: uint8(255), + 3407: uint8(1), + 3448: uint8(2), + 3451: uint8(8), + 3455: uint8(8), + 3458: uint8(32), + 3462: uint8(32), + 3465: uint8(128), + 3469: uint8(128), + 3473: uint8(2), + 3477: uint8(2), + 3480: uint8(8), + 3488: uint8(255), + 3489: uint8(255), + 3490: uint8(255), + 3491: uint8(255), + 3492: uint8(255), + 3493: uint8(255), + 3494: uint8(255), + 3495: uint8(255), + 3496: uint8(255), + 3497: uint8(255), + 3498: uint8(255), + 3499: uint8(255), + 3500: uint8(255), + 3501: uint8(255), + 3502: uint8(255), + 3503: uint8(255), + 3504: uint8(255), + 3505: uint8(15), + 3507: uint8(248), + 3508: uint8(254), + 3509: uint8(255), + 3526: uint8(127), + 3529: uint8(128), + 3581: uint8(240), + 3583: uint8(128), + 3608: uint8(128), + 3609: uint8(255), + 3610: uint8(127), + 3624: uint8(112), + 3625: uint8(7), + 3627: uint8(192), + 3662: uint8(254), + 3663: uint8(255), + 3664: uint8(255), + 3665: uint8(255), + 3666: uint8(255), + 3667: uint8(255), + 3668: uint8(255), + 3669: uint8(255), + 3670: uint8(31), + 3680: uint8(254), + 3681: uint8(255), + 3682: uint8(255), + 3683: uint8(255), + 3684: uint8(255), + 3685: uint8(255), + 3686: uint8(255), + 3687: uint8(63), + 3742: uint8(3), + 3744: uint8(255), + 3745: uint8(255), + 3746: uint8(255), + 3747: uint8(255), + 3748: uint8(255), + 3749: uint8(15), + 3750: uint8(255), + 3751: uint8(255), + 3752: uint8(255), + 3753: uint8(255), + 3754: uint8(255), + 3755: uint8(255), + 3756: uint8(255), + 3757: uint8(255), + 3758: uint8(255), + 3759: uint8(255), + 3760: uint8(255), + 3761: uint8(255), + 3762: uint8(15), + 3764: uint8(255), + 3765: uint8(127), + 3766: uint8(254), + 3767: uint8(255), + 3768: uint8(254), + 3769: uint8(255), + 3770: uint8(254), + 3771: uint8(255), + 3772: uint8(255), + 3773: uint8(255), + 3774: uint8(63), + 3776: uint8(255), + 3777: uint8(31), + 3778: uint8(255), + 3779: uint8(255), + 3780: uint8(255), + 3781: uint8(255), + 3785: uint8(252), + 3789: uint8(28), + 3793: uint8(252), + 3794: uint8(255), + 3795: uint8(255), + 3796: uint8(255), + 3797: uint8(31), + 3804: uint8(192), + 3805: uint8(255), + 3806: uint8(255), + 3807: uint8(255), + 3808: uint8(7), + 3810: uint8(255), + 3811: uint8(255), + 3812: uint8(255), + 3813: uint8(255), + 3814: uint8(255), + 3815: uint8(15), + 3816: uint8(255), + 3817: uint8(1), + 3818: uint8(3), + 3820: uint8(63), + 3840: uint8(255), + 3841: uint8(255), + 3842: uint8(255), + 3843: uint8(255), + 3844: uint8(255), + 3845: uint8(255), + 3846: uint8(255), + 3847: uint8(255), + 3848: uint8(255), + 3849: uint8(255), + 3850: uint8(255), + 3851: uint8(255), + 3852: uint8(255), + 3853: uint8(255), + 3854: uint8(255), + 3855: uint8(255), + 3856: uint8(255), + 3857: uint8(255), + 3858: uint8(255), + 3859: uint8(255), + 3860: uint8(255), + 3861: uint8(255), + 3862: uint8(255), + 3863: uint8(255), + 3864: uint8(255), + 3865: uint8(255), + 3866: uint8(63), + 3868: uint8(255), + 3869: uint8(31), + 3870: uint8(255), + 3871: uint8(7), + 3872: uint8(255), + 3873: uint8(255), + 3874: uint8(255), + 3875: uint8(255), + 3876: uint8(255), + 3877: uint8(255), + 3878: uint8(255), + 3879: uint8(255), + 3880: uint8(255), + 3881: uint8(255), + 3882: uint8(255), + 3883: uint8(255), + 3884: uint8(255), + 3885: uint8(255), + 3886: uint8(15), + 3888: uint8(255), + 3889: uint8(255), + 3890: uint8(255), + 3891: uint8(255), + 3892: uint8(255), + 3893: uint8(255), + 3894: uint8(255), + 3895: uint8(255), + 3896: uint8(255), + 3897: uint8(255), + 3898: uint8(255), + 3899: uint8(1), + 3900: uint8(255), + 3901: uint8(15), + 3904: uint8(255), + 3905: uint8(15), + 3906: uint8(255), + 3907: uint8(255), + 3908: uint8(255), + 3909: uint8(255), + 3910: uint8(255), + 3911: uint8(255), + 3912: uint8(255), + 3914: uint8(255), + 3915: uint8(3), + 3916: uint8(255), + 3917: uint8(255), + 3918: uint8(255), + 3919: uint8(255), + 3920: uint8(255), + 3922: uint8(255), + 3923: uint8(255), + 3924: uint8(255), + 3925: uint8(63), + 3936: uint8(255), + 3937: uint8(239), + 3938: uint8(255), + 3939: uint8(255), + 3940: uint8(255), + 3941: uint8(255), + 3942: uint8(255), + 3943: uint8(255), + 3944: uint8(255), + 3945: uint8(255), + 3946: uint8(255), + 3947: uint8(255), + 3948: uint8(255), + 3949: uint8(255), + 3950: uint8(123), + 3951: uint8(252), + 3952: uint8(255), + 3953: uint8(255), + 3954: uint8(255), + 3955: uint8(255), + 3956: uint8(231), + 3957: uint8(199), + 3958: uint8(255), + 3959: uint8(255), + 3960: uint8(255), + 3961: uint8(231), + 3962: uint8(255), + 3963: uint8(255), + 3964: uint8(255), + 3965: uint8(255), + 3966: uint8(255), + 3967: uint8(255), + 3968: uint8(255), + 3969: uint8(255), + 3970: uint8(255), + 3971: uint8(255), + 3972: uint8(255), + 3973: uint8(255), + 3974: uint8(255), + 3975: uint8(255), + 3976: uint8(255), + 3977: uint8(255), + 3978: uint8(15), + 3980: uint8(255), + 3981: uint8(63), + 3982: uint8(15), + 3983: uint8(7), + 3984: uint8(7), + 3986: uint8(63), +} + +func Xiswpunct(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + if wc < uint32(0x20000) { + return Int32FromUint8(_table4[Uint32FromInt32(Int32FromUint8(_table4[wc>>int32(8)])*int32(32))+wc&uint32(255)>>int32(3)]) >> (wc & uint32(7)) & int32(1) + } + return 0 +} + +func X__iswpunct_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswpunct(tls, c) +} + +func Xiswpunct_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswpunct_l(tls, c, l) +} + +type Tmbstate_t = struct { + F__opaque1 uint32 + F__opaque2 uint32 +} + +type t__mbstate_t = Tmbstate_t + +/* Our definition of whitespace is the Unicode White_Space property, + * minus non-breaking spaces (U+00A0, U+2007, and U+202F) and script- + * specific characters with non-blank glyphs (U+1680 and U+180E). */ + +func Xiswspace(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(wc != 0 && Xwcschr(tls, uintptr(unsafe.Pointer(&_spaces)), Int32FromUint32(wc)) != 0) +} + +var _spaces = [22]Twchar_t{ + 0: int32(' '), + 1: int32('\t'), + 2: int32('\n'), + 3: int32('\r'), + 4: int32(11), + 5: int32(12), + 6: int32(0x0085), + 7: int32(0x2000), + 8: int32(0x2001), + 9: int32(0x2002), + 10: int32(0x2003), + 11: int32(0x2004), + 12: int32(0x2005), + 13: int32(0x2006), + 14: int32(0x2008), + 15: int32(0x2009), + 16: int32(0x200a), + 17: int32(0x2028), + 18: int32(0x2029), + 19: int32(0x205f), + 20: int32(0x3000), +} + +func X__iswspace_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswspace(tls, c) +} + +func Xiswspace_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswspace_l(tls, c, l) +} + +func Xiswupper(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(Xtowlower(tls, wc) != wc) +} + +func X__iswupper_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswupper(tls, c) +} + +func Xiswupper_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswupper_l(tls, c, l) +} + +func Xiswxdigit(tls *TLS, wc Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(wc-Uint32FromUint8('0') < uint32(10) || wc|Uint32FromInt32(32)-Uint32FromUint8('a') < uint32(6)) +} + +func X__iswxdigit_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xiswxdigit(tls, c) +} + +func Xiswxdigit_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__iswxdigit_l(tls, c, l) +} + +func Xisxdigit(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(BoolInt32(Uint32FromInt32(c)-uint32('0') < uint32(10)) != 0 || Uint32FromInt32(c)|uint32(32)-uint32('a') < uint32(6)) +} + +func X__isxdigit_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xisxdigit(tls, c) +} + +func Xisxdigit_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__isxdigit_l(tls, c, l) +} + +// C documentation +// +// /* nonsense function that should NEVER be used! */ +func Xtoascii(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return c & int32(0x7f) +} + +func Xtolower(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + if BoolInt32(Uint32FromInt32(c)-uint32('A') < uint32(26)) != 0 { + return c | int32(32) + } + return c +} + +func X__tolower_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xtolower(tls, c) +} + +func Xtolower_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__tolower_l(tls, c, l) +} + +func Xtoupper(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + if BoolInt32(Uint32FromInt32(c)-uint32('a') < uint32(26)) != 0 { + return c & int32(0x5f) + } + return c +} + +func X__toupper_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xtoupper(tls, c) +} + +func Xtoupper_l(tls *TLS, c int32, l Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__toupper_l(tls, c, l) +} + +var _tab1 = [2666]uint8{ + 0: uint8(7), + 1: uint8(8), + 2: uint8(9), + 3: uint8(10), + 4: uint8(11), + 5: uint8(12), + 6: uint8(6), + 7: uint8(6), + 8: uint8(6), + 9: uint8(6), + 10: uint8(6), + 11: uint8(6), + 12: uint8(6), + 13: uint8(6), + 14: uint8(6), + 15: uint8(6), + 16: uint8(13), + 17: uint8(6), + 18: uint8(6), + 19: uint8(14), + 20: uint8(6), + 21: uint8(6), + 22: uint8(6), + 23: uint8(6), + 24: uint8(6), + 25: uint8(6), + 26: uint8(6), + 27: uint8(6), + 28: uint8(15), + 29: uint8(16), + 30: uint8(17), + 31: uint8(18), + 32: uint8(6), + 33: uint8(19), + 34: uint8(6), + 35: uint8(6), + 36: uint8(6), + 37: uint8(6), + 38: uint8(6), + 39: uint8(6), + 40: uint8(6), + 41: uint8(6), + 42: uint8(6), + 43: uint8(6), + 44: uint8(20), + 45: uint8(21), + 46: uint8(6), + 47: uint8(6), + 48: uint8(6), + 49: uint8(6), + 50: uint8(6), + 51: uint8(6), + 52: uint8(6), + 53: uint8(6), + 54: uint8(6), + 55: uint8(6), + 56: uint8(6), + 57: uint8(6), + 58: uint8(6), + 59: uint8(6), + 60: uint8(6), + 61: uint8(6), + 62: uint8(6), + 63: uint8(6), + 64: uint8(6), + 65: uint8(6), + 66: uint8(6), + 67: uint8(6), + 68: uint8(6), + 69: uint8(6), + 70: uint8(6), + 71: uint8(6), + 72: uint8(6), + 73: uint8(6), + 74: uint8(6), + 75: uint8(6), + 76: uint8(6), + 77: uint8(6), + 78: uint8(6), + 79: uint8(6), + 80: uint8(6), + 81: uint8(6), + 82: uint8(6), + 83: uint8(6), + 84: uint8(6), + 85: uint8(6), + 86: uint8(6), + 87: uint8(6), + 88: uint8(6), + 89: uint8(6), + 90: uint8(6), + 91: uint8(6), + 92: uint8(6), + 93: uint8(6), + 94: uint8(6), + 95: uint8(6), + 96: uint8(6), + 97: uint8(6), + 98: uint8(6), + 99: uint8(6), + 100: uint8(6), + 101: uint8(6), + 102: uint8(6), + 103: uint8(6), + 104: uint8(6), + 105: uint8(6), + 106: uint8(6), + 107: uint8(6), + 108: uint8(6), + 109: uint8(6), + 110: uint8(6), + 111: uint8(6), + 112: uint8(6), + 113: uint8(6), + 114: uint8(6), + 115: uint8(6), + 116: uint8(6), + 117: uint8(6), + 118: uint8(6), + 119: uint8(6), + 120: uint8(6), + 121: uint8(6), + 122: uint8(6), + 123: uint8(6), + 124: uint8(6), + 125: uint8(6), + 126: uint8(6), + 127: uint8(6), + 128: uint8(6), + 129: uint8(6), + 130: uint8(6), + 131: uint8(6), + 132: uint8(6), + 133: uint8(6), + 134: uint8(6), + 135: uint8(6), + 136: uint8(6), + 137: uint8(6), + 138: uint8(6), + 139: uint8(6), + 140: uint8(6), + 141: uint8(6), + 142: uint8(6), + 143: uint8(6), + 144: uint8(6), + 145: uint8(6), + 146: uint8(6), + 147: uint8(6), + 148: uint8(6), + 149: uint8(6), + 150: uint8(6), + 151: uint8(6), + 152: uint8(6), + 153: uint8(6), + 154: uint8(6), + 155: uint8(6), + 156: uint8(6), + 157: uint8(6), + 158: uint8(6), + 159: uint8(6), + 160: uint8(6), + 161: uint8(6), + 162: uint8(6), + 163: uint8(6), + 164: uint8(6), + 165: uint8(6), + 166: uint8(22), + 167: uint8(23), + 168: uint8(6), + 169: uint8(6), + 170: uint8(6), + 171: uint8(24), + 172: uint8(6), + 173: uint8(6), + 174: uint8(6), + 175: uint8(6), + 176: uint8(6), + 177: uint8(6), + 178: uint8(6), + 179: uint8(6), + 180: uint8(6), + 181: uint8(6), + 182: uint8(6), + 183: uint8(6), + 184: uint8(6), + 185: uint8(6), + 186: uint8(6), + 187: uint8(6), + 188: uint8(6), + 189: uint8(6), + 190: uint8(6), + 191: uint8(6), + 192: uint8(6), + 193: uint8(6), + 194: uint8(6), + 195: uint8(6), + 196: uint8(6), + 197: uint8(6), + 198: uint8(6), + 199: uint8(6), + 200: uint8(6), + 201: uint8(6), + 202: uint8(6), + 203: uint8(6), + 204: uint8(6), + 205: uint8(6), + 206: uint8(6), + 207: uint8(6), + 208: uint8(6), + 209: uint8(6), + 210: uint8(6), + 211: uint8(6), + 212: uint8(6), + 213: uint8(6), + 214: uint8(6), + 215: uint8(6), + 216: uint8(6), + 217: uint8(6), + 218: uint8(6), + 219: uint8(6), + 220: uint8(6), + 221: uint8(6), + 222: uint8(6), + 223: uint8(6), + 224: uint8(6), + 225: uint8(6), + 226: uint8(6), + 227: uint8(6), + 228: uint8(6), + 229: uint8(6), + 230: uint8(6), + 231: uint8(6), + 232: uint8(6), + 233: uint8(6), + 234: uint8(6), + 235: uint8(6), + 236: uint8(6), + 237: uint8(6), + 238: uint8(6), + 239: uint8(6), + 240: uint8(6), + 241: uint8(6), + 242: uint8(6), + 243: uint8(6), + 244: uint8(6), + 245: uint8(6), + 246: uint8(6), + 247: uint8(6), + 248: uint8(6), + 249: uint8(6), + 250: uint8(6), + 251: uint8(6), + 252: uint8(6), + 253: uint8(6), + 254: uint8(6), + 255: uint8(25), + 256: uint8(6), + 257: uint8(6), + 258: uint8(6), + 259: uint8(6), + 260: uint8(26), + 261: uint8(6), + 262: uint8(6), + 263: uint8(6), + 264: uint8(6), + 265: uint8(6), + 266: uint8(6), + 267: uint8(6), + 268: uint8(27), + 269: uint8(6), + 270: uint8(6), + 271: uint8(6), + 272: uint8(6), + 273: uint8(6), + 274: uint8(6), + 275: uint8(6), + 276: uint8(6), + 277: uint8(6), + 278: uint8(6), + 279: uint8(6), + 280: uint8(28), + 281: uint8(6), + 282: uint8(6), + 283: uint8(6), + 284: uint8(6), + 285: uint8(6), + 286: uint8(6), + 287: uint8(6), + 288: uint8(6), + 289: uint8(6), + 290: uint8(6), + 291: uint8(6), + 292: uint8(6), + 293: uint8(6), + 294: uint8(6), + 295: uint8(6), + 296: uint8(6), + 297: uint8(6), + 298: uint8(6), + 299: uint8(6), + 300: uint8(6), + 301: uint8(6), + 302: uint8(6), + 303: uint8(6), + 304: uint8(6), + 305: uint8(6), + 306: uint8(6), + 307: uint8(6), + 308: uint8(6), + 309: uint8(6), + 310: uint8(6), + 311: uint8(6), + 312: uint8(6), + 313: uint8(6), + 314: uint8(6), + 315: uint8(6), + 316: uint8(6), + 317: uint8(6), + 318: uint8(6), + 319: uint8(6), + 320: uint8(6), + 321: uint8(6), + 322: uint8(6), + 323: uint8(6), + 324: uint8(6), + 325: uint8(6), + 326: uint8(6), + 327: uint8(6), + 328: uint8(6), + 329: uint8(6), + 330: uint8(6), + 331: uint8(6), + 332: uint8(6), + 333: uint8(6), + 334: uint8(6), + 335: uint8(6), + 336: uint8(6), + 337: uint8(6), + 338: uint8(6), + 339: uint8(6), + 340: uint8(6), + 341: uint8(6), + 342: uint8(6), + 343: uint8(6), + 344: uint8(6), + 345: uint8(6), + 346: uint8(6), + 347: uint8(6), + 348: uint8(6), + 349: uint8(6), + 350: uint8(6), + 351: uint8(6), + 352: uint8(6), + 353: uint8(6), + 354: uint8(6), + 355: uint8(6), + 356: uint8(6), + 357: uint8(6), + 358: uint8(6), + 359: uint8(6), + 360: uint8(6), + 361: uint8(6), + 362: uint8(6), + 363: uint8(6), + 364: uint8(6), + 365: uint8(6), + 366: uint8(29), + 367: uint8(6), + 368: uint8(6), + 369: uint8(6), + 370: uint8(6), + 371: uint8(6), + 372: uint8(6), + 373: uint8(6), + 374: uint8(6), + 375: uint8(6), + 376: uint8(6), + 377: uint8(6), + 378: uint8(6), + 379: uint8(6), + 380: uint8(6), + 381: uint8(6), + 382: uint8(6), + 383: uint8(6), + 384: uint8(6), + 385: uint8(6), + 386: uint8(6), + 387: uint8(6), + 388: uint8(6), + 389: uint8(6), + 390: uint8(6), + 391: uint8(6), + 392: uint8(6), + 393: uint8(6), + 394: uint8(6), + 395: uint8(6), + 396: uint8(6), + 397: uint8(6), + 398: uint8(6), + 399: uint8(6), + 400: uint8(6), + 401: uint8(6), + 402: uint8(6), + 403: uint8(6), + 404: uint8(6), + 405: uint8(6), + 406: uint8(6), + 407: uint8(6), + 408: uint8(6), + 409: uint8(6), + 410: uint8(6), + 411: uint8(6), + 412: uint8(6), + 413: uint8(6), + 414: uint8(6), + 415: uint8(6), + 416: uint8(6), + 417: uint8(6), + 418: uint8(6), + 419: uint8(6), + 420: uint8(6), + 421: uint8(6), + 422: uint8(6), + 423: uint8(6), + 424: uint8(6), + 425: uint8(6), + 426: uint8(6), + 427: uint8(6), + 428: uint8(6), + 429: uint8(6), + 430: uint8(6), + 431: uint8(6), + 432: uint8(6), + 433: uint8(6), + 434: uint8(6), + 435: uint8(6), + 436: uint8(6), + 437: uint8(6), + 438: uint8(6), + 439: uint8(6), + 440: uint8(6), + 441: uint8(6), + 442: uint8(6), + 443: uint8(6), + 444: uint8(6), + 445: uint8(6), + 446: uint8(6), + 447: uint8(6), + 448: uint8(6), + 449: uint8(6), + 450: uint8(6), + 451: uint8(6), + 452: uint8(6), + 453: uint8(6), + 454: uint8(6), + 455: uint8(6), + 456: uint8(6), + 457: uint8(6), + 458: uint8(6), + 459: uint8(6), + 460: uint8(6), + 461: uint8(6), + 462: uint8(6), + 463: uint8(6), + 464: uint8(6), + 465: uint8(6), + 466: uint8(6), + 467: uint8(6), + 468: uint8(6), + 469: uint8(6), + 470: uint8(6), + 471: uint8(6), + 472: uint8(6), + 473: uint8(6), + 474: uint8(6), + 475: uint8(6), + 476: uint8(6), + 477: uint8(6), + 478: uint8(6), + 479: uint8(6), + 480: uint8(6), + 481: uint8(6), + 482: uint8(6), + 483: uint8(6), + 484: uint8(6), + 485: uint8(6), + 486: uint8(6), + 487: uint8(6), + 488: uint8(6), + 489: uint8(30), + 490: uint8(6), + 491: uint8(6), + 492: uint8(6), + 493: uint8(6), + 494: uint8(6), + 495: uint8(6), + 496: uint8(6), + 497: uint8(6), + 498: uint8(6), + 499: uint8(6), + 500: uint8(6), + 501: uint8(6), + 502: uint8(6), + 503: uint8(6), + 504: uint8(6), + 505: uint8(6), + 506: uint8(6), + 507: uint8(6), + 508: uint8(6), + 509: uint8(6), + 510: uint8(6), + 511: uint8(6), + 623: uint8(36), + 624: uint8(43), + 625: uint8(43), + 626: uint8(43), + 627: uint8(43), + 628: uint8(43), + 629: uint8(43), + 630: uint8(43), + 631: uint8(43), + 632: uint8(1), + 634: uint8(84), + 635: uint8(86), + 636: uint8(86), + 637: uint8(86), + 638: uint8(86), + 639: uint8(86), + 640: uint8(86), + 641: uint8(86), + 642: uint8(86), + 662: uint8(24), + 666: uint8(43), + 667: uint8(43), + 668: uint8(43), + 669: uint8(43), + 670: uint8(43), + 671: uint8(43), + 672: uint8(43), + 673: uint8(7), + 674: uint8(43), + 675: uint8(43), + 676: uint8(91), + 677: uint8(86), + 678: uint8(86), + 679: uint8(86), + 680: uint8(86), + 681: uint8(86), + 682: uint8(86), + 683: uint8(86), + 684: uint8(74), + 685: uint8(86), + 686: uint8(86), + 687: uint8(5), + 688: uint8(49), + 689: uint8(80), + 690: uint8(49), + 691: uint8(80), + 692: uint8(49), + 693: uint8(80), + 694: uint8(49), + 695: uint8(80), + 696: uint8(49), + 697: uint8(80), + 698: uint8(49), + 699: uint8(80), + 700: uint8(49), + 701: uint8(80), + 702: uint8(49), + 703: uint8(80), + 704: uint8(36), + 705: uint8(80), + 706: uint8(121), + 707: uint8(49), + 708: uint8(80), + 709: uint8(49), + 710: uint8(80), + 711: uint8(49), + 712: uint8(56), + 713: uint8(80), + 714: uint8(49), + 715: uint8(80), + 716: uint8(49), + 717: uint8(80), + 718: uint8(49), + 719: uint8(80), + 720: uint8(49), + 721: uint8(80), + 722: uint8(49), + 723: uint8(80), + 724: uint8(49), + 725: uint8(80), + 726: uint8(49), + 727: uint8(80), + 728: uint8(78), + 729: uint8(49), + 730: uint8(2), + 731: uint8(78), + 732: uint8(13), + 733: uint8(13), + 734: uint8(78), + 735: uint8(3), + 736: uint8(78), + 738: uint8(36), + 739: uint8(110), + 741: uint8(78), + 742: uint8(49), + 743: uint8(38), + 744: uint8(110), + 745: uint8(81), + 746: uint8(78), + 747: uint8(36), + 748: uint8(80), + 749: uint8(78), + 750: uint8(57), + 751: uint8(20), + 752: uint8(129), + 753: uint8(27), + 754: uint8(29), + 755: uint8(29), + 756: uint8(83), + 757: uint8(49), + 758: uint8(80), + 759: uint8(49), + 760: uint8(80), + 761: uint8(13), + 762: uint8(49), + 763: uint8(80), + 764: uint8(49), + 765: uint8(80), + 766: uint8(49), + 767: uint8(80), + 768: uint8(27), + 769: uint8(83), + 770: uint8(36), + 771: uint8(80), + 772: uint8(49), + 773: uint8(2), + 774: uint8(92), + 775: uint8(123), + 776: uint8(92), + 777: uint8(123), + 778: uint8(92), + 779: uint8(123), + 780: uint8(92), + 781: uint8(123), + 782: uint8(92), + 783: uint8(123), + 784: uint8(20), + 785: uint8(121), + 786: uint8(92), + 787: uint8(123), + 788: uint8(92), + 789: uint8(123), + 790: uint8(92), + 791: uint8(45), + 792: uint8(43), + 793: uint8(73), + 794: uint8(3), + 795: uint8(72), + 796: uint8(3), + 797: uint8(120), + 798: uint8(92), + 799: uint8(123), + 800: uint8(20), + 802: uint8(150), + 803: uint8(10), + 804: uint8(1), + 805: uint8(43), + 806: uint8(40), + 807: uint8(6), + 808: uint8(6), + 810: uint8(42), + 811: uint8(6), + 812: uint8(42), + 813: uint8(42), + 814: uint8(43), + 815: uint8(7), + 816: uint8(187), + 817: uint8(181), + 818: uint8(43), + 819: uint8(30), + 821: uint8(43), + 822: uint8(7), + 823: uint8(43), + 824: uint8(43), + 825: uint8(43), + 826: uint8(1), + 827: uint8(43), + 828: uint8(43), + 829: uint8(43), + 830: uint8(43), + 831: uint8(43), + 832: uint8(43), + 833: uint8(43), + 834: uint8(43), + 835: uint8(43), + 836: uint8(43), + 837: uint8(43), + 838: uint8(43), + 839: uint8(43), + 840: uint8(43), + 841: uint8(43), + 842: uint8(43), + 843: uint8(43), + 844: uint8(43), + 845: uint8(43), + 846: uint8(43), + 847: uint8(43), + 848: uint8(43), + 849: uint8(43), + 850: uint8(43), + 851: uint8(43), + 852: uint8(43), + 853: uint8(43), + 854: uint8(43), + 855: uint8(43), + 856: uint8(43), + 857: uint8(43), + 858: uint8(43), + 859: uint8(1), + 860: uint8(43), + 861: uint8(43), + 862: uint8(43), + 863: uint8(43), + 864: uint8(43), + 865: uint8(43), + 866: uint8(43), + 867: uint8(43), + 868: uint8(43), + 869: uint8(43), + 870: uint8(43), + 871: uint8(43), + 872: uint8(43), + 873: uint8(43), + 874: uint8(43), + 875: uint8(43), + 876: uint8(43), + 877: uint8(43), + 878: uint8(43), + 879: uint8(43), + 880: uint8(43), + 881: uint8(43), + 882: uint8(43), + 883: uint8(42), + 884: uint8(43), + 885: uint8(43), + 886: uint8(43), + 887: uint8(43), + 888: uint8(43), + 889: uint8(43), + 890: uint8(43), + 891: uint8(43), + 892: uint8(43), + 893: uint8(43), + 894: uint8(43), + 895: uint8(43), + 896: uint8(43), + 897: uint8(205), + 898: uint8(70), + 899: uint8(205), + 900: uint8(43), + 902: uint8(37), + 903: uint8(43), + 904: uint8(7), + 905: uint8(1), + 906: uint8(6), + 907: uint8(1), + 908: uint8(85), + 909: uint8(86), + 910: uint8(86), + 911: uint8(86), + 912: uint8(86), + 913: uint8(86), + 914: uint8(85), + 915: uint8(86), + 916: uint8(86), + 917: uint8(2), + 918: uint8(36), + 919: uint8(129), + 920: uint8(129), + 921: uint8(129), + 922: uint8(129), + 923: uint8(129), + 924: uint8(21), + 925: uint8(129), + 926: uint8(129), + 927: uint8(129), + 930: uint8(43), + 932: uint8(178), + 933: uint8(209), + 934: uint8(178), + 935: uint8(209), + 936: uint8(178), + 937: uint8(209), + 938: uint8(178), + 939: uint8(209), + 942: uint8(205), + 943: uint8(204), + 944: uint8(1), + 946: uint8(215), + 947: uint8(215), + 948: uint8(215), + 949: uint8(215), + 950: uint8(215), + 951: uint8(131), + 952: uint8(129), + 953: uint8(129), + 954: uint8(129), + 955: uint8(129), + 956: uint8(129), + 957: uint8(129), + 958: uint8(129), + 959: uint8(129), + 960: uint8(129), + 961: uint8(129), + 962: uint8(172), + 963: uint8(172), + 964: uint8(172), + 965: uint8(172), + 966: uint8(172), + 967: uint8(172), + 968: uint8(172), + 969: uint8(172), + 970: uint8(172), + 971: uint8(172), + 972: uint8(28), + 978: uint8(49), + 979: uint8(80), + 980: uint8(49), + 981: uint8(80), + 982: uint8(49), + 983: uint8(80), + 984: uint8(49), + 985: uint8(80), + 986: uint8(49), + 987: uint8(80), + 988: uint8(49), + 989: uint8(2), + 992: uint8(49), + 993: uint8(80), + 994: uint8(49), + 995: uint8(80), + 996: uint8(49), + 997: uint8(80), + 998: uint8(49), + 999: uint8(80), + 1000: uint8(49), + 1001: uint8(80), + 1002: uint8(49), + 1003: uint8(80), + 1004: uint8(49), + 1005: uint8(80), + 1006: uint8(49), + 1007: uint8(80), + 1008: uint8(49), + 1009: uint8(80), + 1010: uint8(78), + 1011: uint8(49), + 1012: uint8(80), + 1013: uint8(49), + 1014: uint8(80), + 1015: uint8(78), + 1016: uint8(49), + 1017: uint8(80), + 1018: uint8(49), + 1019: uint8(80), + 1020: uint8(49), + 1021: uint8(80), + 1022: uint8(49), + 1023: uint8(80), + 1024: uint8(49), + 1025: uint8(80), + 1026: uint8(49), + 1027: uint8(80), + 1028: uint8(49), + 1029: uint8(80), + 1030: uint8(49), + 1031: uint8(2), + 1032: uint8(135), + 1033: uint8(166), + 1034: uint8(135), + 1035: uint8(166), + 1036: uint8(135), + 1037: uint8(166), + 1038: uint8(135), + 1039: uint8(166), + 1040: uint8(135), + 1041: uint8(166), + 1042: uint8(135), + 1043: uint8(166), + 1044: uint8(135), + 1045: uint8(166), + 1046: uint8(135), + 1047: uint8(166), + 1048: uint8(42), + 1049: uint8(43), + 1050: uint8(43), + 1051: uint8(43), + 1052: uint8(43), + 1053: uint8(43), + 1054: uint8(43), + 1055: uint8(43), + 1056: uint8(43), + 1057: uint8(43), + 1058: uint8(43), + 1059: uint8(43), + 1060: uint8(43), + 1064: uint8(84), + 1065: uint8(86), + 1066: uint8(86), + 1067: uint8(86), + 1068: uint8(86), + 1069: uint8(86), + 1070: uint8(86), + 1071: uint8(86), + 1072: uint8(86), + 1073: uint8(86), + 1074: uint8(86), + 1075: uint8(86), + 1076: uint8(86), + 1171: uint8(84), + 1172: uint8(86), + 1173: uint8(86), + 1174: uint8(86), + 1175: uint8(86), + 1176: uint8(86), + 1177: uint8(86), + 1178: uint8(86), + 1179: uint8(86), + 1180: uint8(86), + 1181: uint8(86), + 1182: uint8(86), + 1183: uint8(86), + 1184: uint8(12), + 1186: uint8(12), + 1187: uint8(42), + 1188: uint8(43), + 1189: uint8(43), + 1190: uint8(43), + 1191: uint8(43), + 1192: uint8(43), + 1193: uint8(43), + 1194: uint8(43), + 1195: uint8(43), + 1196: uint8(43), + 1197: uint8(43), + 1198: uint8(43), + 1199: uint8(43), + 1200: uint8(43), + 1201: uint8(7), + 1202: uint8(42), + 1203: uint8(1), + 1257: uint8(42), + 1258: uint8(43), + 1259: uint8(43), + 1260: uint8(43), + 1261: uint8(43), + 1262: uint8(43), + 1263: uint8(43), + 1264: uint8(43), + 1265: uint8(43), + 1266: uint8(43), + 1267: uint8(43), + 1268: uint8(43), + 1269: uint8(43), + 1270: uint8(43), + 1271: uint8(43), + 1272: uint8(43), + 1273: uint8(43), + 1274: uint8(43), + 1275: uint8(43), + 1276: uint8(43), + 1277: uint8(43), + 1278: uint8(43), + 1279: uint8(43), + 1280: uint8(43), + 1281: uint8(43), + 1282: uint8(43), + 1283: uint8(43), + 1284: uint8(86), + 1285: uint8(86), + 1286: uint8(108), + 1287: uint8(129), + 1288: uint8(21), + 1290: uint8(43), + 1291: uint8(43), + 1292: uint8(43), + 1293: uint8(43), + 1294: uint8(43), + 1295: uint8(43), + 1296: uint8(43), + 1297: uint8(43), + 1298: uint8(43), + 1299: uint8(43), + 1300: uint8(43), + 1301: uint8(43), + 1302: uint8(43), + 1303: uint8(43), + 1304: uint8(43), + 1305: uint8(43), + 1306: uint8(43), + 1307: uint8(43), + 1308: uint8(43), + 1309: uint8(43), + 1310: uint8(43), + 1311: uint8(43), + 1312: uint8(43), + 1313: uint8(43), + 1314: uint8(43), + 1315: uint8(43), + 1316: uint8(43), + 1317: uint8(43), + 1318: uint8(43), + 1319: uint8(43), + 1320: uint8(43), + 1321: uint8(43), + 1322: uint8(43), + 1323: uint8(43), + 1324: uint8(43), + 1325: uint8(43), + 1326: uint8(43), + 1327: uint8(43), + 1328: uint8(43), + 1329: uint8(43), + 1330: uint8(43), + 1331: uint8(43), + 1332: uint8(7), + 1333: uint8(108), + 1334: uint8(3), + 1335: uint8(65), + 1336: uint8(43), + 1337: uint8(43), + 1338: uint8(86), + 1339: uint8(86), + 1340: uint8(86), + 1341: uint8(86), + 1342: uint8(86), + 1343: uint8(86), + 1344: uint8(86), + 1345: uint8(86), + 1346: uint8(86), + 1347: uint8(86), + 1348: uint8(86), + 1349: uint8(86), + 1350: uint8(86), + 1351: uint8(86), + 1352: uint8(44), + 1353: uint8(86), + 1354: uint8(43), + 1355: uint8(43), + 1356: uint8(43), + 1357: uint8(43), + 1358: uint8(43), + 1359: uint8(43), + 1360: uint8(43), + 1361: uint8(43), + 1362: uint8(43), + 1363: uint8(43), + 1364: uint8(43), + 1365: uint8(43), + 1366: uint8(43), + 1367: uint8(43), + 1368: uint8(43), + 1369: uint8(43), + 1370: uint8(43), + 1371: uint8(43), + 1372: uint8(43), + 1373: uint8(43), + 1374: uint8(43), + 1375: uint8(1), + 1416: uint8(12), + 1417: uint8(108), + 1423: uint8(6), + 1462: uint8(6), + 1463: uint8(37), + 1464: uint8(6), + 1465: uint8(37), + 1466: uint8(6), + 1467: uint8(37), + 1468: uint8(6), + 1469: uint8(37), + 1470: uint8(6), + 1471: uint8(37), + 1472: uint8(6), + 1473: uint8(37), + 1474: uint8(6), + 1475: uint8(37), + 1476: uint8(6), + 1477: uint8(37), + 1478: uint8(6), + 1479: uint8(37), + 1480: uint8(6), + 1481: uint8(37), + 1482: uint8(6), + 1483: uint8(37), + 1484: uint8(6), + 1485: uint8(37), + 1486: uint8(6), + 1487: uint8(37), + 1488: uint8(6), + 1489: uint8(37), + 1490: uint8(6), + 1491: uint8(37), + 1492: uint8(6), + 1493: uint8(37), + 1494: uint8(6), + 1495: uint8(37), + 1496: uint8(6), + 1497: uint8(37), + 1498: uint8(6), + 1499: uint8(37), + 1500: uint8(6), + 1501: uint8(37), + 1502: uint8(6), + 1503: uint8(37), + 1504: uint8(6), + 1505: uint8(37), + 1506: uint8(6), + 1507: uint8(37), + 1508: uint8(6), + 1509: uint8(37), + 1510: uint8(6), + 1511: uint8(37), + 1512: uint8(86), + 1513: uint8(122), + 1514: uint8(158), + 1515: uint8(38), + 1516: uint8(6), + 1517: uint8(37), + 1518: uint8(6), + 1519: uint8(37), + 1520: uint8(6), + 1521: uint8(37), + 1522: uint8(6), + 1523: uint8(37), + 1524: uint8(6), + 1525: uint8(37), + 1526: uint8(6), + 1527: uint8(37), + 1528: uint8(6), + 1529: uint8(37), + 1530: uint8(6), + 1531: uint8(37), + 1532: uint8(6), + 1533: uint8(37), + 1534: uint8(6), + 1535: uint8(37), + 1536: uint8(6), + 1537: uint8(37), + 1538: uint8(6), + 1539: uint8(37), + 1540: uint8(6), + 1541: uint8(37), + 1542: uint8(6), + 1543: uint8(37), + 1544: uint8(6), + 1545: uint8(37), + 1546: uint8(6), + 1547: uint8(1), + 1548: uint8(43), + 1549: uint8(43), + 1550: uint8(79), + 1551: uint8(86), + 1552: uint8(86), + 1553: uint8(44), + 1554: uint8(43), + 1555: uint8(127), + 1556: uint8(86), + 1557: uint8(86), + 1558: uint8(57), + 1559: uint8(43), + 1560: uint8(43), + 1561: uint8(85), + 1562: uint8(86), + 1563: uint8(86), + 1564: uint8(43), + 1565: uint8(43), + 1566: uint8(79), + 1567: uint8(86), + 1568: uint8(86), + 1569: uint8(44), + 1570: uint8(43), + 1571: uint8(127), + 1572: uint8(86), + 1573: uint8(86), + 1574: uint8(129), + 1575: uint8(55), + 1576: uint8(117), + 1577: uint8(91), + 1578: uint8(123), + 1579: uint8(92), + 1580: uint8(43), + 1581: uint8(43), + 1582: uint8(79), + 1583: uint8(86), + 1584: uint8(86), + 1585: uint8(2), + 1586: uint8(172), + 1587: uint8(4), + 1590: uint8(57), + 1591: uint8(43), + 1592: uint8(43), + 1593: uint8(85), + 1594: uint8(86), + 1595: uint8(86), + 1596: uint8(43), + 1597: uint8(43), + 1598: uint8(79), + 1599: uint8(86), + 1600: uint8(86), + 1601: uint8(44), + 1602: uint8(43), + 1603: uint8(43), + 1604: uint8(86), + 1605: uint8(86), + 1606: uint8(50), + 1607: uint8(19), + 1608: uint8(129), + 1609: uint8(87), + 1611: uint8(111), + 1612: uint8(129), + 1613: uint8(126), + 1614: uint8(201), + 1615: uint8(215), + 1616: uint8(126), + 1617: uint8(45), + 1618: uint8(129), + 1619: uint8(129), + 1620: uint8(14), + 1621: uint8(126), + 1622: uint8(57), + 1623: uint8(127), + 1624: uint8(111), + 1625: uint8(87), + 1627: uint8(129), + 1628: uint8(129), + 1629: uint8(126), + 1630: uint8(21), + 1632: uint8(126), + 1633: uint8(3), + 1634: uint8(43), + 1635: uint8(43), + 1636: uint8(43), + 1637: uint8(43), + 1638: uint8(43), + 1639: uint8(43), + 1640: uint8(43), + 1641: uint8(43), + 1642: uint8(43), + 1643: uint8(43), + 1644: uint8(43), + 1645: uint8(43), + 1646: uint8(7), + 1647: uint8(43), + 1648: uint8(36), + 1649: uint8(43), + 1650: uint8(151), + 1651: uint8(43), + 1652: uint8(43), + 1653: uint8(43), + 1654: uint8(43), + 1655: uint8(43), + 1656: uint8(43), + 1657: uint8(43), + 1658: uint8(43), + 1659: uint8(43), + 1660: uint8(42), + 1661: uint8(43), + 1662: uint8(43), + 1663: uint8(43), + 1664: uint8(43), + 1665: uint8(43), + 1666: uint8(86), + 1667: uint8(86), + 1668: uint8(86), + 1669: uint8(86), + 1670: uint8(86), + 1671: uint8(128), + 1672: uint8(129), + 1673: uint8(129), + 1674: uint8(129), + 1675: uint8(129), + 1676: uint8(57), + 1677: uint8(187), + 1678: uint8(42), + 1679: uint8(43), + 1680: uint8(43), + 1681: uint8(43), + 1682: uint8(43), + 1683: uint8(43), + 1684: uint8(43), + 1685: uint8(43), + 1686: uint8(43), + 1687: uint8(43), + 1688: uint8(43), + 1689: uint8(43), + 1690: uint8(43), + 1691: uint8(43), + 1692: uint8(43), + 1693: uint8(43), + 1694: uint8(43), + 1695: uint8(43), + 1696: uint8(43), + 1697: uint8(43), + 1698: uint8(43), + 1699: uint8(43), + 1700: uint8(43), + 1701: uint8(43), + 1702: uint8(43), + 1703: uint8(43), + 1704: uint8(43), + 1705: uint8(43), + 1706: uint8(43), + 1707: uint8(43), + 1708: uint8(43), + 1709: uint8(43), + 1710: uint8(43), + 1711: uint8(43), + 1712: uint8(43), + 1713: uint8(43), + 1714: uint8(43), + 1715: uint8(43), + 1716: uint8(43), + 1717: uint8(43), + 1718: uint8(43), + 1719: uint8(1), + 1720: uint8(129), + 1721: uint8(129), + 1722: uint8(129), + 1723: uint8(129), + 1724: uint8(129), + 1725: uint8(129), + 1726: uint8(129), + 1727: uint8(129), + 1728: uint8(129), + 1729: uint8(129), + 1730: uint8(129), + 1731: uint8(129), + 1732: uint8(129), + 1733: uint8(129), + 1734: uint8(129), + 1735: uint8(201), + 1736: uint8(172), + 1737: uint8(172), + 1738: uint8(172), + 1739: uint8(172), + 1740: uint8(172), + 1741: uint8(172), + 1742: uint8(172), + 1743: uint8(172), + 1744: uint8(172), + 1745: uint8(172), + 1746: uint8(172), + 1747: uint8(172), + 1748: uint8(172), + 1749: uint8(172), + 1750: uint8(172), + 1751: uint8(208), + 1752: uint8(13), + 1754: uint8(78), + 1755: uint8(49), + 1756: uint8(2), + 1757: uint8(180), + 1758: uint8(193), + 1759: uint8(193), + 1760: uint8(215), + 1761: uint8(215), + 1762: uint8(36), + 1763: uint8(80), + 1764: uint8(49), + 1765: uint8(80), + 1766: uint8(49), + 1767: uint8(80), + 1768: uint8(49), + 1769: uint8(80), + 1770: uint8(49), + 1771: uint8(80), + 1772: uint8(49), + 1773: uint8(80), + 1774: uint8(49), + 1775: uint8(80), + 1776: uint8(49), + 1777: uint8(80), + 1778: uint8(49), + 1779: uint8(80), + 1780: uint8(49), + 1781: uint8(80), + 1782: uint8(49), + 1783: uint8(80), + 1784: uint8(49), + 1785: uint8(80), + 1786: uint8(49), + 1787: uint8(80), + 1788: uint8(49), + 1789: uint8(80), + 1790: uint8(49), + 1791: uint8(80), + 1792: uint8(49), + 1793: uint8(80), + 1794: uint8(49), + 1795: uint8(80), + 1796: uint8(215), + 1797: uint8(215), + 1798: uint8(83), + 1799: uint8(193), + 1800: uint8(71), + 1801: uint8(212), + 1802: uint8(215), + 1803: uint8(215), + 1804: uint8(215), + 1805: uint8(5), + 1806: uint8(43), + 1807: uint8(43), + 1808: uint8(43), + 1809: uint8(43), + 1810: uint8(43), + 1811: uint8(43), + 1812: uint8(43), + 1813: uint8(43), + 1814: uint8(43), + 1815: uint8(43), + 1816: uint8(43), + 1817: uint8(43), + 1818: uint8(7), + 1819: uint8(1), + 1821: uint8(1), + 1913: uint8(78), + 1914: uint8(49), + 1915: uint8(80), + 1916: uint8(49), + 1917: uint8(80), + 1918: uint8(49), + 1919: uint8(80), + 1920: uint8(49), + 1921: uint8(80), + 1922: uint8(49), + 1923: uint8(80), + 1924: uint8(49), + 1925: uint8(80), + 1926: uint8(49), + 1927: uint8(80), + 1928: uint8(13), + 1934: uint8(36), + 1935: uint8(80), + 1936: uint8(49), + 1937: uint8(80), + 1938: uint8(49), + 1939: uint8(80), + 1940: uint8(49), + 1941: uint8(80), + 1942: uint8(49), + 1943: uint8(80), + 1978: uint8(43), + 1979: uint8(43), + 1980: uint8(43), + 1981: uint8(43), + 1982: uint8(43), + 1983: uint8(43), + 1984: uint8(43), + 1985: uint8(43), + 1986: uint8(43), + 1987: uint8(43), + 1988: uint8(43), + 1989: uint8(121), + 1990: uint8(92), + 1991: uint8(123), + 1992: uint8(92), + 1993: uint8(123), + 1994: uint8(79), + 1995: uint8(123), + 1996: uint8(92), + 1997: uint8(123), + 1998: uint8(92), + 1999: uint8(123), + 2000: uint8(92), + 2001: uint8(123), + 2002: uint8(92), + 2003: uint8(123), + 2004: uint8(92), + 2005: uint8(123), + 2006: uint8(92), + 2007: uint8(123), + 2008: uint8(92), + 2009: uint8(123), + 2010: uint8(92), + 2011: uint8(123), + 2012: uint8(92), + 2013: uint8(123), + 2014: uint8(92), + 2015: uint8(45), + 2016: uint8(43), + 2017: uint8(43), + 2018: uint8(121), + 2019: uint8(20), + 2020: uint8(92), + 2021: uint8(123), + 2022: uint8(92), + 2023: uint8(45), + 2024: uint8(121), + 2025: uint8(42), + 2026: uint8(92), + 2027: uint8(39), + 2028: uint8(92), + 2029: uint8(123), + 2030: uint8(92), + 2031: uint8(123), + 2032: uint8(92), + 2033: uint8(123), + 2034: uint8(164), + 2036: uint8(10), + 2037: uint8(180), + 2038: uint8(92), + 2039: uint8(123), + 2040: uint8(92), + 2041: uint8(123), + 2042: uint8(79), + 2043: uint8(3), + 2044: uint8(42), + 2045: uint8(43), + 2046: uint8(43), + 2047: uint8(43), + 2048: uint8(43), + 2049: uint8(43), + 2050: uint8(43), + 2051: uint8(43), + 2052: uint8(43), + 2053: uint8(43), + 2054: uint8(43), + 2055: uint8(43), + 2056: uint8(43), + 2057: uint8(43), + 2058: uint8(43), + 2059: uint8(43), + 2060: uint8(43), + 2061: uint8(43), + 2062: uint8(43), + 2063: uint8(1), + 2091: uint8(72), + 2101: uint8(42), + 2102: uint8(43), + 2103: uint8(43), + 2104: uint8(43), + 2105: uint8(43), + 2106: uint8(43), + 2107: uint8(43), + 2108: uint8(43), + 2109: uint8(43), + 2110: uint8(43), + 2111: uint8(43), + 2112: uint8(43), + 2113: uint8(43), + 2114: uint8(43), + 2115: uint8(43), + 2116: uint8(43), + 2117: uint8(43), + 2118: uint8(43), + 2119: uint8(43), + 2120: uint8(43), + 2121: uint8(43), + 2122: uint8(43), + 2123: uint8(43), + 2124: uint8(43), + 2125: uint8(43), + 2126: uint8(43), + 2127: uint8(43), + 2161: uint8(43), + 2162: uint8(43), + 2163: uint8(43), + 2164: uint8(43), + 2165: uint8(43), + 2166: uint8(43), + 2167: uint8(43), + 2168: uint8(43), + 2169: uint8(7), + 2171: uint8(72), + 2172: uint8(86), + 2173: uint8(86), + 2174: uint8(86), + 2175: uint8(86), + 2176: uint8(86), + 2177: uint8(86), + 2178: uint8(86), + 2179: uint8(86), + 2180: uint8(2), + 2236: uint8(43), + 2237: uint8(43), + 2238: uint8(43), + 2239: uint8(43), + 2240: uint8(43), + 2241: uint8(43), + 2242: uint8(43), + 2243: uint8(43), + 2244: uint8(43), + 2245: uint8(43), + 2246: uint8(43), + 2247: uint8(43), + 2248: uint8(43), + 2249: uint8(85), + 2250: uint8(86), + 2251: uint8(86), + 2252: uint8(86), + 2253: uint8(86), + 2254: uint8(86), + 2255: uint8(86), + 2256: uint8(86), + 2257: uint8(86), + 2258: uint8(86), + 2259: uint8(86), + 2260: uint8(86), + 2261: uint8(86), + 2262: uint8(14), + 2294: uint8(36), + 2295: uint8(43), + 2296: uint8(43), + 2297: uint8(43), + 2298: uint8(43), + 2299: uint8(43), + 2300: uint8(43), + 2301: uint8(43), + 2302: uint8(43), + 2303: uint8(43), + 2304: uint8(43), + 2305: uint8(43), + 2306: uint8(7), + 2308: uint8(86), + 2309: uint8(86), + 2310: uint8(86), + 2311: uint8(86), + 2312: uint8(86), + 2313: uint8(86), + 2314: uint8(86), + 2315: uint8(86), + 2316: uint8(86), + 2317: uint8(86), + 2318: uint8(86), + 2319: uint8(86), + 2364: uint8(36), + 2365: uint8(43), + 2366: uint8(43), + 2367: uint8(43), + 2368: uint8(43), + 2369: uint8(43), + 2370: uint8(43), + 2371: uint8(43), + 2372: uint8(43), + 2373: uint8(43), + 2374: uint8(43), + 2375: uint8(43), + 2376: uint8(43), + 2377: uint8(43), + 2378: uint8(43), + 2379: uint8(43), + 2380: uint8(43), + 2381: uint8(7), + 2386: uint8(86), + 2387: uint8(86), + 2388: uint8(86), + 2389: uint8(86), + 2390: uint8(86), + 2391: uint8(86), + 2392: uint8(86), + 2393: uint8(86), + 2394: uint8(86), + 2395: uint8(86), + 2396: uint8(86), + 2397: uint8(86), + 2398: uint8(86), + 2399: uint8(86), + 2400: uint8(86), + 2401: uint8(86), + 2402: uint8(86), + 2461: uint8(42), + 2462: uint8(43), + 2463: uint8(43), + 2464: uint8(43), + 2465: uint8(43), + 2466: uint8(43), + 2467: uint8(43), + 2468: uint8(43), + 2469: uint8(43), + 2470: uint8(43), + 2471: uint8(43), + 2472: uint8(86), + 2473: uint8(86), + 2474: uint8(86), + 2475: uint8(86), + 2476: uint8(86), + 2477: uint8(86), + 2478: uint8(86), + 2479: uint8(86), + 2480: uint8(86), + 2481: uint8(86), + 2482: uint8(14), + 2515: uint8(42), + 2516: uint8(43), + 2517: uint8(43), + 2518: uint8(43), + 2519: uint8(43), + 2520: uint8(43), + 2521: uint8(43), + 2522: uint8(43), + 2523: uint8(43), + 2524: uint8(43), + 2525: uint8(43), + 2526: uint8(86), + 2527: uint8(86), + 2528: uint8(86), + 2529: uint8(86), + 2530: uint8(86), + 2531: uint8(86), + 2532: uint8(86), + 2533: uint8(86), + 2534: uint8(86), + 2535: uint8(86), + 2536: uint8(14), + 2580: uint8(43), + 2581: uint8(43), + 2582: uint8(43), + 2583: uint8(43), + 2584: uint8(43), + 2585: uint8(43), + 2586: uint8(43), + 2587: uint8(43), + 2588: uint8(43), + 2589: uint8(43), + 2590: uint8(43), + 2591: uint8(85), + 2592: uint8(86), + 2593: uint8(86), + 2594: uint8(86), + 2595: uint8(86), + 2596: uint8(86), + 2597: uint8(86), + 2598: uint8(86), + 2599: uint8(86), + 2600: uint8(86), + 2601: uint8(86), + 2602: uint8(14), +} +var _rules = [240]int32{ + 1: int32(0x2001), + 2: -int32(0x2000), + 3: int32(0x1dbf00), + 4: int32(0x2e700), + 5: int32(0x7900), + 6: int32(0x2402), + 7: int32(0x101), + 8: -int32(0x100), + 10: int32(0x201), + 11: -int32(0x200), + 12: -int32(0xc6ff), + 13: -int32(0xe800), + 14: -int32(0x78ff), + 15: -int32(0x12c00), + 16: int32(0xc300), + 17: int32(0xd201), + 18: int32(0xce01), + 19: int32(0xcd01), + 20: int32(0x4f01), + 21: int32(0xca01), + 22: int32(0xcb01), + 23: int32(0xcf01), + 24: int32(0x6100), + 25: int32(0xd301), + 26: int32(0xd101), + 27: int32(0xa300), + 28: int32(0xd501), + 29: int32(0x8200), + 30: int32(0xd601), + 31: int32(0xda01), + 32: int32(0xd901), + 33: int32(0xdb01), + 34: int32(0x3800), + 35: int32(0x3), + 36: -int32(0x4f00), + 37: -int32(0x60ff), + 38: -int32(0x37ff), + 39: int32(0x242802), + 41: int32(0x101), + 42: -int32(0x100), + 43: -int32(0xcd00), + 44: -int32(0xda00), + 45: -int32(0x81ff), + 46: int32(0x2a2b01), + 47: -int32(0xa2ff), + 48: int32(0x2a2801), + 49: int32(0x2a3f00), + 50: -int32(0xc2ff), + 51: int32(0x4501), + 52: int32(0x4701), + 53: int32(0x2a1f00), + 54: int32(0x2a1c00), + 55: int32(0x2a1e00), + 56: -int32(0xd200), + 57: -int32(0xce00), + 58: -int32(0xca00), + 59: -int32(0xcb00), + 60: int32(0xa54f00), + 61: int32(0xa54b00), + 62: -int32(0xcf00), + 63: int32(0xa52800), + 64: int32(0xa54400), + 65: -int32(0xd100), + 66: -int32(0xd300), + 67: int32(0x29f700), + 68: int32(0xa54100), + 69: int32(0x29fd00), + 70: -int32(0xd500), + 71: -int32(0xd600), + 72: int32(0x29e700), + 73: int32(0xa54300), + 74: int32(0xa52a00), + 75: -int32(0x4500), + 76: -int32(0xd900), + 77: -int32(0x4700), + 78: -int32(0xdb00), + 79: int32(0xa51500), + 80: int32(0xa51200), + 81: int32(0x4c2402), + 83: int32(0x2001), + 84: -int32(0x2000), + 85: int32(0x101), + 86: -int32(0x100), + 87: int32(0x5400), + 88: int32(0x7401), + 89: int32(0x2601), + 90: int32(0x2501), + 91: int32(0x4001), + 92: int32(0x3f01), + 93: -int32(0x2600), + 94: -int32(0x2500), + 95: -int32(0x1f00), + 96: -int32(0x4000), + 97: -int32(0x3f00), + 98: int32(0x801), + 99: -int32(0x3e00), + 100: -int32(0x3900), + 101: -int32(0x2f00), + 102: -int32(0x3600), + 103: -int32(0x800), + 104: -int32(0x5600), + 105: -int32(0x5000), + 106: int32(0x700), + 107: -int32(0x7400), + 108: -int32(0x3bff), + 109: -int32(0x6000), + 110: -int32(0x6ff), + 111: int32(0x701a02), + 112: int32(0x101), + 113: -int32(0x100), + 114: int32(0x2001), + 115: -int32(0x2000), + 116: int32(0x5001), + 117: int32(0xf01), + 118: -int32(0xf00), + 120: int32(0x3001), + 121: -int32(0x3000), + 122: int32(0x101), + 123: -int32(0x100), + 125: int32(0xbc000), + 126: int32(0x1c6001), + 128: int32(0x97d001), + 129: int32(0x801), + 130: -int32(0x800), + 131: int32(0x8a0502), + 133: -int32(0xbbfff), + 134: -int32(0x186200), + 135: int32(0x89c200), + 136: -int32(0x182500), + 137: -int32(0x186e00), + 138: -int32(0x186d00), + 139: -int32(0x186400), + 140: -int32(0x186300), + 141: -int32(0x185c00), + 143: int32(0x8a3800), + 144: int32(0x8a0400), + 145: int32(0xee600), + 146: int32(0x101), + 147: -int32(0x100), + 149: -int32(0x3b00), + 150: -int32(0x1dbeff), + 151: int32(0x8f1d02), + 152: int32(0x800), + 153: -int32(0x7ff), + 155: int32(0x5600), + 156: -int32(0x55ff), + 157: int32(0x4a00), + 158: int32(0x6400), + 159: int32(0x8000), + 160: int32(0x7000), + 161: int32(0x7e00), + 162: int32(0x900), + 163: -int32(0x49ff), + 164: -int32(0x8ff), + 165: -int32(0x1c2500), + 166: -int32(0x63ff), + 167: -int32(0x6fff), + 168: -int32(0x7fff), + 169: -int32(0x7dff), + 170: int32(0xac0502), + 172: int32(0x1001), + 173: -int32(0x1000), + 174: int32(0x1c01), + 175: int32(0x101), + 176: -int32(0x1d5cff), + 177: -int32(0x20beff), + 178: -int32(0x2045ff), + 179: -int32(0x1c00), + 180: int32(0xb10b02), + 181: int32(0x101), + 182: -int32(0x100), + 183: int32(0x3001), + 184: -int32(0x3000), + 186: -int32(0x29f6ff), + 187: -int32(0xee5ff), + 188: -int32(0x29e6ff), + 189: -int32(0x2a2b00), + 190: -int32(0x2a2800), + 191: -int32(0x2a1bff), + 192: -int32(0x29fcff), + 193: -int32(0x2a1eff), + 194: -int32(0x2a1dff), + 195: -int32(0x2a3eff), + 197: -int32(0x1c6000), + 199: int32(0x101), + 200: -int32(0x100), + 201: int32(0xbc0c02), + 203: int32(0x101), + 204: -int32(0x100), + 205: -int32(0xa543ff), + 206: int32(0x3a001), + 207: -int32(0x8a03ff), + 208: -int32(0xa527ff), + 209: int32(0x3000), + 210: -int32(0xa54eff), + 211: -int32(0xa54aff), + 212: -int32(0xa540ff), + 213: -int32(0xa511ff), + 214: -int32(0xa529ff), + 215: -int32(0xa514ff), + 216: -int32(0x2fff), + 217: -int32(0xa542ff), + 218: -int32(0x8a37ff), + 220: -int32(0x97d000), + 221: -int32(0x3a000), + 223: int32(0x2001), + 224: -int32(0x2000), + 226: int32(0x2801), + 227: -int32(0x2800), + 229: int32(0x4001), + 230: -int32(0x4000), + 232: int32(0x2001), + 233: -int32(0x2000), + 235: int32(0x2001), + 236: -int32(0x2000), + 238: int32(0x2201), + 239: -int32(0x2200), +} +var _rulebases = [512]uint8{ + 1: uint8(6), + 2: uint8(39), + 3: uint8(81), + 4: uint8(111), + 5: uint8(119), + 16: uint8(124), + 19: uint8(127), + 28: uint8(131), + 29: uint8(142), + 30: uint8(146), + 31: uint8(151), + 33: uint8(170), + 44: uint8(180), + 45: uint8(196), + 166: uint8(198), + 167: uint8(201), + 171: uint8(219), + 255: uint8(222), + 260: uint8(225), + 268: uint8(228), + 280: uint8(231), + 366: uint8(234), + 489: uint8(237), +} +var _exceptions = [200][2]uint8{ + 0: { + 0: uint8(48), + 1: uint8(12), + }, + 1: { + 0: uint8(49), + 1: uint8(13), + }, + 2: { + 0: uint8(120), + 1: uint8(14), + }, + 3: { + 0: uint8(127), + 1: uint8(15), + }, + 4: { + 0: uint8(128), + 1: uint8(16), + }, + 5: { + 0: uint8(129), + 1: uint8(17), + }, + 6: { + 0: uint8(134), + 1: uint8(18), + }, + 7: { + 0: uint8(137), + 1: uint8(19), + }, + 8: { + 0: uint8(138), + 1: uint8(19), + }, + 9: { + 0: uint8(142), + 1: uint8(20), + }, + 10: { + 0: uint8(143), + 1: uint8(21), + }, + 11: { + 0: uint8(144), + 1: uint8(22), + }, + 12: { + 0: uint8(147), + 1: uint8(19), + }, + 13: { + 0: uint8(148), + 1: uint8(23), + }, + 14: { + 0: uint8(149), + 1: uint8(24), + }, + 15: { + 0: uint8(150), + 1: uint8(25), + }, + 16: { + 0: uint8(151), + 1: uint8(26), + }, + 17: { + 0: uint8(154), + 1: uint8(27), + }, + 18: { + 0: uint8(156), + 1: uint8(25), + }, + 19: { + 0: uint8(157), + 1: uint8(28), + }, + 20: { + 0: uint8(158), + 1: uint8(29), + }, + 21: { + 0: uint8(159), + 1: uint8(30), + }, + 22: { + 0: uint8(166), + 1: uint8(31), + }, + 23: { + 0: uint8(169), + 1: uint8(31), + }, + 24: { + 0: uint8(174), + 1: uint8(31), + }, + 25: { + 0: uint8(177), + 1: uint8(32), + }, + 26: { + 0: uint8(178), + 1: uint8(32), + }, + 27: { + 0: uint8(183), + 1: uint8(33), + }, + 28: { + 0: uint8(191), + 1: uint8(34), + }, + 29: { + 0: uint8(197), + 1: uint8(35), + }, + 30: { + 0: uint8(200), + 1: uint8(35), + }, + 31: { + 0: uint8(203), + 1: uint8(35), + }, + 32: { + 0: uint8(221), + 1: uint8(36), + }, + 33: { + 0: uint8(242), + 1: uint8(35), + }, + 34: { + 0: uint8(246), + 1: uint8(37), + }, + 35: { + 0: uint8(247), + 1: uint8(38), + }, + 36: { + 0: uint8(32), + 1: uint8(45), + }, + 37: { + 0: uint8(58), + 1: uint8(46), + }, + 38: { + 0: uint8(61), + 1: uint8(47), + }, + 39: { + 0: uint8(62), + 1: uint8(48), + }, + 40: { + 0: uint8(63), + 1: uint8(49), + }, + 41: { + 0: uint8(64), + 1: uint8(49), + }, + 42: { + 0: uint8(67), + 1: uint8(50), + }, + 43: { + 0: uint8(68), + 1: uint8(51), + }, + 44: { + 0: uint8(69), + 1: uint8(52), + }, + 45: { + 0: uint8(80), + 1: uint8(53), + }, + 46: { + 0: uint8(81), + 1: uint8(54), + }, + 47: { + 0: uint8(82), + 1: uint8(55), + }, + 48: { + 0: uint8(83), + 1: uint8(56), + }, + 49: { + 0: uint8(84), + 1: uint8(57), + }, + 50: { + 0: uint8(89), + 1: uint8(58), + }, + 51: { + 0: uint8(91), + 1: uint8(59), + }, + 52: { + 0: uint8(92), + 1: uint8(60), + }, + 53: { + 0: uint8(97), + 1: uint8(61), + }, + 54: { + 0: uint8(99), + 1: uint8(62), + }, + 55: { + 0: uint8(101), + 1: uint8(63), + }, + 56: { + 0: uint8(102), + 1: uint8(64), + }, + 57: { + 0: uint8(104), + 1: uint8(65), + }, + 58: { + 0: uint8(105), + 1: uint8(66), + }, + 59: { + 0: uint8(106), + 1: uint8(64), + }, + 60: { + 0: uint8(107), + 1: uint8(67), + }, + 61: { + 0: uint8(108), + 1: uint8(68), + }, + 62: { + 0: uint8(111), + 1: uint8(66), + }, + 63: { + 0: uint8(113), + 1: uint8(69), + }, + 64: { + 0: uint8(114), + 1: uint8(70), + }, + 65: { + 0: uint8(117), + 1: uint8(71), + }, + 66: { + 0: uint8(125), + 1: uint8(72), + }, + 67: { + 0: uint8(130), + 1: uint8(73), + }, + 68: { + 0: uint8(135), + 1: uint8(74), + }, + 69: { + 0: uint8(137), + 1: uint8(75), + }, + 70: { + 0: uint8(138), + 1: uint8(76), + }, + 71: { + 0: uint8(139), + 1: uint8(76), + }, + 72: { + 0: uint8(140), + 1: uint8(77), + }, + 73: { + 0: uint8(146), + 1: uint8(78), + }, + 74: { + 0: uint8(157), + 1: uint8(79), + }, + 75: { + 0: uint8(158), + 1: uint8(80), + }, + 76: { + 0: uint8(69), + 1: uint8(87), + }, + 77: { + 0: uint8(123), + 1: uint8(29), + }, + 78: { + 0: uint8(124), + 1: uint8(29), + }, + 79: { + 0: uint8(125), + 1: uint8(29), + }, + 80: { + 0: uint8(127), + 1: uint8(88), + }, + 81: { + 0: uint8(134), + 1: uint8(89), + }, + 82: { + 0: uint8(136), + 1: uint8(90), + }, + 83: { + 0: uint8(137), + 1: uint8(90), + }, + 84: { + 0: uint8(138), + 1: uint8(90), + }, + 85: { + 0: uint8(140), + 1: uint8(91), + }, + 86: { + 0: uint8(142), + 1: uint8(92), + }, + 87: { + 0: uint8(143), + 1: uint8(92), + }, + 88: { + 0: uint8(172), + 1: uint8(93), + }, + 89: { + 0: uint8(173), + 1: uint8(94), + }, + 90: { + 0: uint8(174), + 1: uint8(94), + }, + 91: { + 0: uint8(175), + 1: uint8(94), + }, + 92: { + 0: uint8(194), + 1: uint8(95), + }, + 93: { + 0: uint8(204), + 1: uint8(96), + }, + 94: { + 0: uint8(205), + 1: uint8(97), + }, + 95: { + 0: uint8(206), + 1: uint8(97), + }, + 96: { + 0: uint8(207), + 1: uint8(98), + }, + 97: { + 0: uint8(208), + 1: uint8(99), + }, + 98: { + 0: uint8(209), + 1: uint8(100), + }, + 99: { + 0: uint8(213), + 1: uint8(101), + }, + 100: { + 0: uint8(214), + 1: uint8(102), + }, + 101: { + 0: uint8(215), + 1: uint8(103), + }, + 102: { + 0: uint8(240), + 1: uint8(104), + }, + 103: { + 0: uint8(241), + 1: uint8(105), + }, + 104: { + 0: uint8(242), + 1: uint8(106), + }, + 105: { + 0: uint8(243), + 1: uint8(107), + }, + 106: { + 0: uint8(244), + 1: uint8(108), + }, + 107: { + 0: uint8(245), + 1: uint8(109), + }, + 108: { + 0: uint8(249), + 1: uint8(110), + }, + 109: { + 0: uint8(253), + 1: uint8(45), + }, + 110: { + 0: uint8(254), + 1: uint8(45), + }, + 111: { + 0: uint8(255), + 1: uint8(45), + }, + 112: { + 0: uint8(80), + 1: uint8(105), + }, + 113: { + 0: uint8(81), + 1: uint8(105), + }, + 114: { + 0: uint8(82), + 1: uint8(105), + }, + 115: { + 0: uint8(83), + 1: uint8(105), + }, + 116: { + 0: uint8(84), + 1: uint8(105), + }, + 117: { + 0: uint8(85), + 1: uint8(105), + }, + 118: { + 0: uint8(86), + 1: uint8(105), + }, + 119: { + 0: uint8(87), + 1: uint8(105), + }, + 120: { + 0: uint8(88), + 1: uint8(105), + }, + 121: { + 0: uint8(89), + 1: uint8(105), + }, + 122: { + 0: uint8(90), + 1: uint8(105), + }, + 123: { + 0: uint8(91), + 1: uint8(105), + }, + 124: { + 0: uint8(92), + 1: uint8(105), + }, + 125: { + 0: uint8(93), + 1: uint8(105), + }, + 126: { + 0: uint8(94), + 1: uint8(105), + }, + 127: { + 0: uint8(95), + 1: uint8(105), + }, + 128: { + 0: uint8(130), + }, + 129: { + 0: uint8(131), + }, + 130: { + 0: uint8(132), + }, + 131: { + 0: uint8(133), + }, + 132: { + 0: uint8(134), + }, + 133: { + 0: uint8(135), + }, + 134: { + 0: uint8(136), + }, + 135: { + 0: uint8(137), + }, + 136: { + 0: uint8(192), + 1: uint8(117), + }, + 137: { + 0: uint8(207), + 1: uint8(118), + }, + 138: { + 0: uint8(128), + 1: uint8(137), + }, + 139: { + 0: uint8(129), + 1: uint8(138), + }, + 140: { + 0: uint8(130), + 1: uint8(139), + }, + 141: { + 0: uint8(133), + 1: uint8(140), + }, + 142: { + 0: uint8(134), + 1: uint8(141), + }, + 143: { + 0: uint8(112), + 1: uint8(157), + }, + 144: { + 0: uint8(113), + 1: uint8(157), + }, + 145: { + 0: uint8(118), + 1: uint8(158), + }, + 146: { + 0: uint8(119), + 1: uint8(158), + }, + 147: { + 0: uint8(120), + 1: uint8(159), + }, + 148: { + 0: uint8(121), + 1: uint8(159), + }, + 149: { + 0: uint8(122), + 1: uint8(160), + }, + 150: { + 0: uint8(123), + 1: uint8(160), + }, + 151: { + 0: uint8(124), + 1: uint8(161), + }, + 152: { + 0: uint8(125), + 1: uint8(161), + }, + 153: { + 0: uint8(179), + 1: uint8(162), + }, + 154: { + 0: uint8(186), + 1: uint8(163), + }, + 155: { + 0: uint8(187), + 1: uint8(163), + }, + 156: { + 0: uint8(188), + 1: uint8(164), + }, + 157: { + 0: uint8(190), + 1: uint8(165), + }, + 158: { + 0: uint8(195), + 1: uint8(162), + }, + 159: { + 0: uint8(204), + 1: uint8(164), + }, + 160: { + 0: uint8(218), + 1: uint8(166), + }, + 161: { + 0: uint8(219), + 1: uint8(166), + }, + 162: { + 0: uint8(229), + 1: uint8(106), + }, + 163: { + 0: uint8(234), + 1: uint8(167), + }, + 164: { + 0: uint8(235), + 1: uint8(167), + }, + 165: { + 0: uint8(236), + 1: uint8(110), + }, + 166: { + 0: uint8(243), + 1: uint8(162), + }, + 167: { + 0: uint8(248), + 1: uint8(168), + }, + 168: { + 0: uint8(249), + 1: uint8(168), + }, + 169: { + 0: uint8(250), + 1: uint8(169), + }, + 170: { + 0: uint8(251), + 1: uint8(169), + }, + 171: { + 0: uint8(252), + 1: uint8(164), + }, + 172: { + 0: uint8(38), + 1: uint8(176), + }, + 173: { + 0: uint8(42), + 1: uint8(177), + }, + 174: { + 0: uint8(43), + 1: uint8(178), + }, + 175: { + 0: uint8(78), + 1: uint8(179), + }, + 176: { + 0: uint8(132), + 1: uint8(8), + }, + 177: { + 0: uint8(98), + 1: uint8(186), + }, + 178: { + 0: uint8(99), + 1: uint8(187), + }, + 179: { + 0: uint8(100), + 1: uint8(188), + }, + 180: { + 0: uint8(101), + 1: uint8(189), + }, + 181: { + 0: uint8(102), + 1: uint8(190), + }, + 182: { + 0: uint8(109), + 1: uint8(191), + }, + 183: { + 0: uint8(110), + 1: uint8(192), + }, + 184: { + 0: uint8(111), + 1: uint8(193), + }, + 185: { + 0: uint8(112), + 1: uint8(194), + }, + 186: { + 0: uint8(126), + 1: uint8(195), + }, + 187: { + 0: uint8(127), + 1: uint8(195), + }, + 188: { + 0: uint8(125), + 1: uint8(207), + }, + 189: { + 0: uint8(141), + 1: uint8(208), + }, + 190: { + 0: uint8(148), + 1: uint8(209), + }, + 191: { + 0: uint8(171), + 1: uint8(210), + }, + 192: { + 0: uint8(172), + 1: uint8(211), + }, + 193: { + 0: uint8(173), + 1: uint8(212), + }, + 194: { + 0: uint8(176), + 1: uint8(213), + }, + 195: { + 0: uint8(177), + 1: uint8(214), + }, + 196: { + 0: uint8(178), + 1: uint8(215), + }, + 197: { + 0: uint8(196), + 1: uint8(216), + }, + 198: { + 0: uint8(197), + 1: uint8(217), + }, + 199: { + 0: uint8(198), + 1: uint8(218), + }, +} + +func _casemap(tls *TLS, c uint32, dir int32) (r1 int32) { + var b, rt, try, v, x, xb, xn, y uint32 + var c0, r, rd, v1 int32 + _, _, _, _, _, _, _, _, _, _, _, _ = b, c0, r, rd, rt, try, v, x, xb, xn, y, v1 + c0 = Int32FromUint32(c) + if c >= uint32(0x20000) { + return Int32FromUint32(c) + } + b = c >> int32(8) + c = c & uint32(255) + x = c / uint32(3) + y = c % uint32(3) + /* lookup entry in two-level base-6 table */ + v = uint32(_tab1[Uint32FromInt32(Int32FromUint8(_tab1[b])*int32(86))+x]) + v = v * Uint32FromInt32(_mt[y]) >> int32(11) % uint32(6) + /* use the bit vector out of the tables as an index into + * a block-specific set of rules and decode the rule into + * a type and a case-mapping delta. */ + r = _rules[uint32(_rulebases[b])+v] + rt = Uint32FromInt32(r & int32(255)) + rd = r >> int32(8) + /* rules 0/1 are simple lower/upper case with a delta. + * apply according to desired mapping direction. */ + if rt < uint32(2) { + return Int32FromUint32(Uint32FromInt32(c0) + Uint32FromInt32(rd)&-(rt^Uint32FromInt32(dir))) + } + /* binary search. endpoints of the binary search for + * this block are stored in the rule delta field. */ + xn = Uint32FromInt32(rd & int32(0xff)) + xb = Uint32FromInt32(rd) >> int32(8) + for xn != 0 { + try = uint32(**(**uint8)(__ccgo_up(uintptr(unsafe.Pointer(&_exceptions)) + uintptr(xb+xn/uint32(2))*2))) + if try == c { + r = _rules[**(**uint8)(__ccgo_up(uintptr(unsafe.Pointer(&_exceptions)) + uintptr(xb+xn/uint32(2))*2 + 1))] + rt = Uint32FromInt32(r & int32(255)) + rd = r >> int32(8) + if rt < uint32(2) { + return Int32FromUint32(Uint32FromInt32(c0) + Uint32FromInt32(rd)&-(rt^Uint32FromInt32(dir))) + } + /* Hard-coded for the four exceptional titlecase */ + if dir != 0 { + v1 = -int32(1) + } else { + v1 = int32(1) + } + return c0 + v1 + } else { + if try > c { + xn = xn / uint32(2) + } else { + xb = xb + xn/uint32(2) + xn = xn - xn/uint32(2) + } + } + } + return c0 +} + +var _mt = [3]int32{ + 0: int32(2048), + 1: int32(342), + 2: int32(57), +} + +func Xtowlower(tls *TLS, wc Twint_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Uint32FromInt32(_casemap(tls, wc, 0)) +} + +func Xtowupper(tls *TLS, wc Twint_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Uint32FromInt32(_casemap(tls, wc, int32(1))) +} + +func X__towupper_l(tls *TLS, c Twint_t, l Tlocale_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xtowupper(tls, c) +} + +func X__towlower_l(tls *TLS, c Twint_t, l Tlocale_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xtowlower(tls, c) +} + +func Xtowlower_l(tls *TLS, c Twint_t, l Tlocale_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__towlower_l(tls, c, l) +} + +func Xtowupper_l(tls *TLS, c Twint_t, l Tlocale_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__towupper_l(tls, c, l) +} + +func Xwcswidth(tls *TLS, wcs uintptr, n Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wcs=%v n=%v, (%v:)", tls, wcs, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var k, l, v3 int32 + var v2 Tsize_t + var v4 bool + _, _, _, _, _ = k, l, v2, v3, v4 + l = 0 + k = 0 + for { + v2 = n + n = n - 1 + if v4 = v2 != 0 && **(**Twchar_t)(__ccgo_up(wcs)) != 0; v4 { + v3 = Xwcwidth(tls, **(**Twchar_t)(__ccgo_up(wcs))) + k = v3 + } + if !(v4 && v3 >= 0) { + break + } + goto _1 + _1: + ; + l = l + k + wcs += 4 + } + if k < 0 { + v3 = k + } else { + v3 = l + } + return v3 +} + +func Xwctrans(tls *TLS, class uintptr) (r Twctrans_t) { + if __ccgo_strace { + trc("tls=%v class=%v, (%v:)", tls, class, origin(2)) + defer func() { trc("-> %v", r) }() + } + if !(Xstrcmp(tls, class, __ccgo_ts+196) != 0) { + return UintptrFromInt32(1) + } + if !(Xstrcmp(tls, class, __ccgo_ts+204) != 0) { + return UintptrFromInt32(2) + } + return uintptr(0) +} + +func Xtowctrans(tls *TLS, wc Twint_t, trans Twctrans_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v wc=%v trans=%v, (%v:)", tls, wc, trans, origin(2)) + defer func() { trc("-> %v", r) }() + } + if trans == UintptrFromInt32(1) { + return Xtowupper(tls, wc) + } + if trans == UintptrFromInt32(2) { + return Xtowlower(tls, wc) + } + return wc +} + +func X__wctrans_l(tls *TLS, s uintptr, l Tlocale_t) (r Twctrans_t) { + if __ccgo_strace { + trc("tls=%v s=%v l=%v, (%v:)", tls, s, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwctrans(tls, s) +} + +func X__towctrans_l(tls *TLS, c Twint_t, t Twctrans_t, l Tlocale_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v t=%v l=%v, (%v:)", tls, c, t, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xtowctrans(tls, c, t) +} + +func Xtowctrans_l(tls *TLS, c Twint_t, t Twctrans_t, l Tlocale_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v t=%v l=%v, (%v:)", tls, c, t, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__towctrans_l(tls, c, t, l) +} + +func Xwctrans_l(tls *TLS, s uintptr, l Tlocale_t) (r Twctrans_t) { + if __ccgo_strace { + trc("tls=%v s=%v l=%v, (%v:)", tls, s, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__wctrans_l(tls, s, l) +} + +var _table5 = [2784]uint8{ + 0: uint8(16), + 1: uint8(16), + 2: uint8(16), + 3: uint8(18), + 4: uint8(19), + 5: uint8(20), + 6: uint8(21), + 7: uint8(22), + 8: uint8(23), + 9: uint8(24), + 10: uint8(25), + 11: uint8(26), + 12: uint8(27), + 13: uint8(28), + 14: uint8(29), + 15: uint8(30), + 16: uint8(31), + 17: uint8(32), + 18: uint8(16), + 19: uint8(33), + 20: uint8(16), + 21: uint8(16), + 22: uint8(16), + 23: uint8(34), + 24: uint8(35), + 25: uint8(36), + 26: uint8(37), + 27: uint8(38), + 28: uint8(39), + 29: uint8(40), + 30: uint8(16), + 31: uint8(16), + 32: uint8(41), + 33: uint8(16), + 34: uint8(16), + 35: uint8(16), + 36: uint8(16), + 37: uint8(16), + 38: uint8(16), + 39: uint8(16), + 40: uint8(16), + 41: uint8(16), + 42: uint8(16), + 43: uint8(16), + 44: uint8(42), + 45: uint8(43), + 46: uint8(16), + 47: uint8(16), + 48: uint8(44), + 49: uint8(16), + 50: uint8(16), + 51: uint8(16), + 52: uint8(16), + 53: uint8(16), + 54: uint8(16), + 55: uint8(16), + 56: uint8(16), + 57: uint8(16), + 58: uint8(16), + 59: uint8(16), + 60: uint8(16), + 61: uint8(16), + 62: uint8(16), + 63: uint8(16), + 64: uint8(16), + 65: uint8(16), + 66: uint8(16), + 67: uint8(16), + 68: uint8(16), + 69: uint8(16), + 70: uint8(16), + 71: uint8(16), + 72: uint8(16), + 73: uint8(16), + 74: uint8(16), + 75: uint8(16), + 76: uint8(16), + 77: uint8(16), + 78: uint8(16), + 79: uint8(16), + 80: uint8(16), + 81: uint8(16), + 82: uint8(16), + 83: uint8(16), + 84: uint8(16), + 85: uint8(16), + 86: uint8(16), + 87: uint8(16), + 88: uint8(16), + 89: uint8(16), + 90: uint8(16), + 91: uint8(16), + 92: uint8(16), + 93: uint8(16), + 94: uint8(16), + 95: uint8(16), + 96: uint8(16), + 97: uint8(16), + 98: uint8(16), + 99: uint8(16), + 100: uint8(16), + 101: uint8(16), + 102: uint8(16), + 103: uint8(16), + 104: uint8(16), + 105: uint8(16), + 106: uint8(16), + 107: uint8(16), + 108: uint8(16), + 109: uint8(16), + 110: uint8(16), + 111: uint8(16), + 112: uint8(16), + 113: uint8(16), + 114: uint8(16), + 115: uint8(16), + 116: uint8(16), + 117: uint8(16), + 118: uint8(16), + 119: uint8(16), + 120: uint8(16), + 121: uint8(16), + 122: uint8(16), + 123: uint8(16), + 124: uint8(16), + 125: uint8(16), + 126: uint8(16), + 127: uint8(16), + 128: uint8(16), + 129: uint8(16), + 130: uint8(16), + 131: uint8(16), + 132: uint8(16), + 133: uint8(16), + 134: uint8(16), + 135: uint8(16), + 136: uint8(16), + 137: uint8(16), + 138: uint8(16), + 139: uint8(16), + 140: uint8(16), + 141: uint8(16), + 142: uint8(16), + 143: uint8(16), + 144: uint8(16), + 145: uint8(16), + 146: uint8(16), + 147: uint8(16), + 148: uint8(16), + 149: uint8(16), + 150: uint8(16), + 151: uint8(16), + 152: uint8(16), + 153: uint8(16), + 154: uint8(16), + 155: uint8(16), + 156: uint8(16), + 157: uint8(16), + 158: uint8(16), + 159: uint8(16), + 160: uint8(16), + 161: uint8(16), + 162: uint8(16), + 163: uint8(16), + 164: uint8(16), + 165: uint8(16), + 166: uint8(45), + 167: uint8(16), + 168: uint8(46), + 169: uint8(47), + 170: uint8(48), + 171: uint8(49), + 172: uint8(16), + 173: uint8(16), + 174: uint8(16), + 175: uint8(16), + 176: uint8(16), + 177: uint8(16), + 178: uint8(16), + 179: uint8(16), + 180: uint8(16), + 181: uint8(16), + 182: uint8(16), + 183: uint8(16), + 184: uint8(16), + 185: uint8(16), + 186: uint8(16), + 187: uint8(16), + 188: uint8(16), + 189: uint8(16), + 190: uint8(16), + 191: uint8(16), + 192: uint8(16), + 193: uint8(16), + 194: uint8(16), + 195: uint8(16), + 196: uint8(16), + 197: uint8(16), + 198: uint8(16), + 199: uint8(16), + 200: uint8(16), + 201: uint8(16), + 202: uint8(16), + 203: uint8(16), + 204: uint8(16), + 205: uint8(16), + 206: uint8(16), + 207: uint8(16), + 208: uint8(16), + 209: uint8(16), + 210: uint8(16), + 211: uint8(16), + 212: uint8(16), + 213: uint8(16), + 214: uint8(16), + 215: uint8(50), + 216: uint8(16), + 217: uint8(16), + 218: uint8(16), + 219: uint8(16), + 220: uint8(16), + 221: uint8(16), + 222: uint8(16), + 223: uint8(16), + 224: uint8(16), + 225: uint8(16), + 226: uint8(16), + 227: uint8(16), + 228: uint8(16), + 229: uint8(16), + 230: uint8(16), + 231: uint8(16), + 232: uint8(16), + 233: uint8(16), + 234: uint8(16), + 235: uint8(16), + 236: uint8(16), + 237: uint8(16), + 238: uint8(16), + 239: uint8(16), + 240: uint8(16), + 241: uint8(16), + 242: uint8(16), + 243: uint8(16), + 244: uint8(16), + 245: uint8(16), + 246: uint8(16), + 247: uint8(16), + 248: uint8(16), + 249: uint8(16), + 250: uint8(16), + 251: uint8(51), + 252: uint8(16), + 253: uint8(16), + 254: uint8(52), + 255: uint8(53), + 256: uint8(16), + 257: uint8(54), + 258: uint8(55), + 259: uint8(56), + 260: uint8(16), + 261: uint8(16), + 262: uint8(16), + 263: uint8(16), + 264: uint8(16), + 265: uint8(16), + 266: uint8(57), + 267: uint8(16), + 268: uint8(16), + 269: uint8(58), + 270: uint8(16), + 271: uint8(59), + 272: uint8(60), + 273: uint8(61), + 274: uint8(62), + 275: uint8(63), + 276: uint8(64), + 277: uint8(65), + 278: uint8(66), + 279: uint8(67), + 280: uint8(68), + 281: uint8(69), + 282: uint8(70), + 283: uint8(16), + 284: uint8(71), + 285: uint8(72), + 286: uint8(73), + 287: uint8(16), + 288: uint8(16), + 289: uint8(16), + 290: uint8(16), + 291: uint8(16), + 292: uint8(16), + 293: uint8(16), + 294: uint8(16), + 295: uint8(16), + 296: uint8(16), + 297: uint8(16), + 298: uint8(16), + 299: uint8(16), + 300: uint8(16), + 301: uint8(16), + 302: uint8(16), + 303: uint8(16), + 304: uint8(16), + 305: uint8(16), + 306: uint8(16), + 307: uint8(16), + 308: uint8(74), + 309: uint8(16), + 310: uint8(16), + 311: uint8(16), + 312: uint8(16), + 313: uint8(16), + 314: uint8(16), + 315: uint8(16), + 316: uint8(16), + 317: uint8(16), + 318: uint8(16), + 319: uint8(16), + 320: uint8(16), + 321: uint8(16), + 322: uint8(16), + 323: uint8(16), + 324: uint8(16), + 325: uint8(16), + 326: uint8(16), + 327: uint8(16), + 328: uint8(16), + 329: uint8(16), + 330: uint8(16), + 331: uint8(16), + 332: uint8(16), + 333: uint8(16), + 334: uint8(16), + 335: uint8(16), + 336: uint8(16), + 337: uint8(16), + 338: uint8(16), + 339: uint8(16), + 340: uint8(16), + 341: uint8(16), + 342: uint8(16), + 343: uint8(16), + 344: uint8(16), + 345: uint8(16), + 346: uint8(16), + 347: uint8(16), + 348: uint8(16), + 349: uint8(16), + 350: uint8(16), + 351: uint8(16), + 352: uint8(16), + 353: uint8(16), + 354: uint8(16), + 355: uint8(16), + 356: uint8(16), + 357: uint8(16), + 358: uint8(16), + 359: uint8(16), + 360: uint8(16), + 361: uint8(16), + 362: uint8(75), + 363: uint8(76), + 364: uint8(16), + 365: uint8(16), + 366: uint8(16), + 367: uint8(77), + 368: uint8(16), + 369: uint8(16), + 370: uint8(16), + 371: uint8(16), + 372: uint8(16), + 373: uint8(16), + 374: uint8(16), + 375: uint8(16), + 376: uint8(16), + 377: uint8(16), + 378: uint8(16), + 379: uint8(16), + 380: uint8(16), + 381: uint8(16), + 382: uint8(16), + 383: uint8(16), + 384: uint8(16), + 385: uint8(16), + 386: uint8(16), + 387: uint8(16), + 388: uint8(16), + 389: uint8(16), + 390: uint8(16), + 391: uint8(16), + 392: uint8(16), + 393: uint8(16), + 394: uint8(16), + 395: uint8(16), + 396: uint8(16), + 397: uint8(16), + 398: uint8(16), + 399: uint8(16), + 400: uint8(16), + 401: uint8(16), + 402: uint8(16), + 403: uint8(16), + 404: uint8(16), + 405: uint8(16), + 406: uint8(16), + 407: uint8(16), + 408: uint8(16), + 409: uint8(16), + 410: uint8(16), + 411: uint8(16), + 412: uint8(16), + 413: uint8(16), + 414: uint8(16), + 415: uint8(16), + 416: uint8(16), + 417: uint8(16), + 418: uint8(16), + 419: uint8(16), + 420: uint8(16), + 421: uint8(16), + 422: uint8(16), + 423: uint8(16), + 424: uint8(16), + 425: uint8(16), + 426: uint8(16), + 427: uint8(16), + 428: uint8(16), + 429: uint8(16), + 430: uint8(16), + 431: uint8(16), + 432: uint8(16), + 433: uint8(16), + 434: uint8(16), + 435: uint8(16), + 436: uint8(16), + 437: uint8(16), + 438: uint8(16), + 439: uint8(16), + 440: uint8(16), + 441: uint8(16), + 442: uint8(16), + 443: uint8(16), + 444: uint8(78), + 445: uint8(16), + 446: uint8(16), + 447: uint8(16), + 448: uint8(16), + 449: uint8(16), + 450: uint8(16), + 451: uint8(16), + 452: uint8(16), + 453: uint8(16), + 454: uint8(16), + 455: uint8(16), + 456: uint8(16), + 457: uint8(16), + 458: uint8(16), + 459: uint8(16), + 460: uint8(16), + 461: uint8(16), + 462: uint8(16), + 463: uint8(16), + 464: uint8(16), + 465: uint8(79), + 466: uint8(80), + 467: uint8(16), + 468: uint8(16), + 469: uint8(16), + 470: uint8(16), + 471: uint8(16), + 472: uint8(16), + 473: uint8(16), + 474: uint8(81), + 475: uint8(16), + 476: uint8(16), + 477: uint8(16), + 478: uint8(16), + 479: uint8(16), + 480: uint8(82), + 481: uint8(83), + 482: uint8(84), + 483: uint8(16), + 484: uint8(16), + 485: uint8(16), + 486: uint8(16), + 487: uint8(16), + 488: uint8(85), + 489: uint8(86), + 490: uint8(16), + 491: uint8(16), + 492: uint8(16), + 493: uint8(16), + 494: uint8(16), + 495: uint8(16), + 496: uint8(16), + 497: uint8(16), + 498: uint8(16), + 499: uint8(16), + 500: uint8(16), + 501: uint8(16), + 502: uint8(16), + 503: uint8(16), + 504: uint8(16), + 505: uint8(16), + 506: uint8(16), + 507: uint8(16), + 508: uint8(16), + 509: uint8(16), + 510: uint8(16), + 511: uint8(16), + 544: uint8(255), + 545: uint8(255), + 546: uint8(255), + 547: uint8(255), + 548: uint8(255), + 549: uint8(255), + 550: uint8(255), + 551: uint8(255), + 552: uint8(255), + 553: uint8(255), + 554: uint8(255), + 555: uint8(255), + 556: uint8(255), + 557: uint8(255), + 558: uint8(255), + 559: uint8(255), + 560: uint8(255), + 561: uint8(255), + 562: uint8(255), + 563: uint8(255), + 564: uint8(255), + 565: uint8(255), + 566: uint8(255), + 567: uint8(255), + 568: uint8(255), + 569: uint8(255), + 570: uint8(255), + 571: uint8(255), + 572: uint8(255), + 573: uint8(255), + 574: uint8(255), + 575: uint8(255), + 576: uint8(255), + 577: uint8(255), + 578: uint8(255), + 579: uint8(255), + 580: uint8(255), + 581: uint8(255), + 582: uint8(255), + 583: uint8(255), + 584: uint8(255), + 585: uint8(255), + 586: uint8(255), + 587: uint8(255), + 588: uint8(255), + 589: uint8(255), + 624: uint8(248), + 625: uint8(3), + 658: uint8(254), + 659: uint8(255), + 660: uint8(255), + 661: uint8(255), + 662: uint8(255), + 663: uint8(191), + 664: uint8(182), + 672: uint8(63), + 674: uint8(255), + 675: uint8(23), + 681: uint8(248), + 682: uint8(255), + 683: uint8(255), + 686: uint8(1), + 698: uint8(192), + 699: uint8(191), + 700: uint8(159), + 701: uint8(61), + 705: uint8(128), + 706: uint8(2), + 710: uint8(255), + 711: uint8(255), + 712: uint8(255), + 713: uint8(7), + 724: uint8(192), + 725: uint8(255), + 726: uint8(1), + 733: uint8(248), + 734: uint8(15), + 735: uint8(32), + 738: uint8(192), + 739: uint8(251), + 740: uint8(239), + 741: uint8(62), + 747: uint8(14), + 762: uint8(248), + 763: uint8(255), + 764: uint8(255), + 765: uint8(255), + 766: uint8(255), + 767: uint8(255), + 768: uint8(7), + 775: uint8(20), + 776: uint8(254), + 777: uint8(33), + 778: uint8(254), + 780: uint8(12), + 784: uint8(2), + 791: uint8(16), + 792: uint8(30), + 793: uint8(32), + 796: uint8(12), + 799: uint8(64), + 800: uint8(6), + 807: uint8(16), + 808: uint8(134), + 809: uint8(57), + 810: uint8(2), + 814: uint8(35), + 816: uint8(6), + 823: uint8(16), + 824: uint8(190), + 825: uint8(33), + 828: uint8(12), + 831: uint8(252), + 832: uint8(2), + 839: uint8(144), + 840: uint8(30), + 841: uint8(32), + 842: uint8(64), + 844: uint8(12), + 848: uint8(4), + 856: uint8(1), + 857: uint8(32), + 864: uint8(17), + 871: uint8(192), + 872: uint8(193), + 873: uint8(61), + 874: uint8(96), + 876: uint8(12), + 880: uint8(2), + 887: uint8(144), + 888: uint8(64), + 889: uint8(48), + 892: uint8(12), + 896: uint8(3), + 903: uint8(24), + 904: uint8(30), + 905: uint8(32), + 908: uint8(12), + 921: uint8(4), + 922: uint8(92), + 934: uint8(242), + 935: uint8(7), + 936: uint8(128), + 937: uint8(127), + 950: uint8(242), + 951: uint8(31), + 953: uint8(63), + 963: uint8(3), + 966: uint8(160), + 967: uint8(2), + 974: uint8(254), + 975: uint8(127), + 976: uint8(223), + 977: uint8(224), + 978: uint8(255), + 979: uint8(254), + 980: uint8(255), + 981: uint8(255), + 982: uint8(255), + 983: uint8(31), + 984: uint8(64), + 997: uint8(224), + 998: uint8(253), + 999: uint8(102), + 1003: uint8(195), + 1004: uint8(1), + 1006: uint8(30), + 1008: uint8(100), + 1009: uint8(32), + 1011: uint8(32), + 1036: uint8(255), + 1037: uint8(255), + 1038: uint8(255), + 1039: uint8(255), + 1040: uint8(255), + 1041: uint8(255), + 1042: uint8(255), + 1043: uint8(255), + 1044: uint8(255), + 1045: uint8(255), + 1046: uint8(255), + 1047: uint8(255), + 1048: uint8(255), + 1049: uint8(255), + 1050: uint8(255), + 1051: uint8(255), + 1052: uint8(255), + 1053: uint8(255), + 1054: uint8(255), + 1055: uint8(255), + 1067: uint8(224), + 1090: uint8(28), + 1094: uint8(28), + 1098: uint8(12), + 1102: uint8(12), + 1110: uint8(176), + 1111: uint8(63), + 1112: uint8(64), + 1113: uint8(254), + 1114: uint8(15), + 1115: uint8(32), + 1121: uint8(120), + 1136: uint8(96), + 1141: uint8(2), + 1156: uint8(135), + 1157: uint8(1), + 1158: uint8(4), + 1159: uint8(14), + 1186: uint8(128), + 1187: uint8(9), + 1194: uint8(64), + 1195: uint8(127), + 1196: uint8(229), + 1197: uint8(31), + 1198: uint8(248), + 1199: uint8(159), + 1206: uint8(255), + 1207: uint8(127), + 1216: uint8(15), + 1222: uint8(208), + 1223: uint8(23), + 1224: uint8(4), + 1229: uint8(248), + 1230: uint8(15), + 1232: uint8(3), + 1236: uint8(60), + 1237: uint8(59), + 1244: uint8(64), + 1245: uint8(163), + 1246: uint8(3), + 1253: uint8(240), + 1254: uint8(207), + 1274: uint8(247), + 1275: uint8(255), + 1276: uint8(253), + 1277: uint8(33), + 1278: uint8(16), + 1279: uint8(3), + 1304: uint8(255), + 1305: uint8(255), + 1306: uint8(255), + 1307: uint8(255), + 1308: uint8(255), + 1309: uint8(255), + 1310: uint8(255), + 1311: uint8(251), + 1313: uint8(248), + 1317: uint8(124), + 1324: uint8(223), + 1325: uint8(255), + 1338: uint8(255), + 1339: uint8(255), + 1340: uint8(255), + 1341: uint8(255), + 1342: uint8(1), + 1373: uint8(128), + 1374: uint8(3), + 1391: uint8(128), + 1404: uint8(255), + 1405: uint8(255), + 1406: uint8(255), + 1407: uint8(255), + 1413: uint8(60), + 1427: uint8(6), + 1453: uint8(128), + 1454: uint8(247), + 1455: uint8(63), + 1459: uint8(192), + 1470: uint8(3), + 1472: uint8(68), + 1473: uint8(8), + 1476: uint8(96), + 1496: uint8(48), + 1500: uint8(255), + 1501: uint8(255), + 1502: uint8(3), + 1503: uint8(128), + 1508: uint8(192), + 1509: uint8(63), + 1512: uint8(128), + 1513: uint8(255), + 1514: uint8(3), + 1520: uint8(7), + 1526: uint8(200), + 1527: uint8(51), + 1532: uint8(32), + 1541: uint8(126), + 1542: uint8(102), + 1544: uint8(8), + 1545: uint8(16), + 1551: uint8(16), + 1558: uint8(157), + 1559: uint8(193), + 1560: uint8(2), + 1565: uint8(48), + 1566: uint8(64), + 1596: uint8(32), + 1597: uint8(33), + 1622: uint8(255), + 1623: uint8(255), + 1624: uint8(255), + 1625: uint8(255), + 1626: uint8(255), + 1627: uint8(255), + 1628: uint8(255), + 1629: uint8(255), + 1630: uint8(255), + 1631: uint8(255), + 1635: uint8(64), + 1664: uint8(255), + 1665: uint8(255), + 1668: uint8(255), + 1669: uint8(255), + 1695: uint8(128), + 1727: uint8(14), + 1759: uint8(32), + 1788: uint8(1), + 1806: uint8(192), + 1807: uint8(7), + 1824: uint8(110), + 1825: uint8(240), + 1831: uint8(135), + 1852: uint8(96), + 1860: uint8(240), + 1896: uint8(192), + 1897: uint8(255), + 1898: uint8(1), + 1920: uint8(2), + 1927: uint8(255), + 1928: uint8(127), + 1935: uint8(128), + 1936: uint8(3), + 1942: uint8(120), + 1943: uint8(38), + 1945: uint8(32), + 1952: uint8(7), + 1956: uint8(128), + 1957: uint8(239), + 1958: uint8(31), + 1966: uint8(8), + 1968: uint8(3), + 1974: uint8(192), + 1975: uint8(127), + 1977: uint8(30), + 1989: uint8(128), + 1990: uint8(211), + 1991: uint8(64), + 2011: uint8(128), + 2012: uint8(248), + 2013: uint8(7), + 2016: uint8(3), + 2023: uint8(24), + 2024: uint8(1), + 2028: uint8(192), + 2029: uint8(31), + 2030: uint8(31), + 2055: uint8(255), + 2056: uint8(92), + 2059: uint8(64), + 2070: uint8(248), + 2071: uint8(133), + 2072: uint8(13), + 2102: uint8(60), + 2103: uint8(176), + 2104: uint8(1), + 2107: uint8(48), + 2118: uint8(248), + 2119: uint8(167), + 2120: uint8(1), + 2133: uint8(40), + 2134: uint8(191), + 2147: uint8(224), + 2148: uint8(188), + 2149: uint8(15), + 2181: uint8(128), + 2182: uint8(255), + 2183: uint8(6), + 2234: uint8(240), + 2235: uint8(12), + 2236: uint8(1), + 2240: uint8(254), + 2241: uint8(7), + 2246: uint8(248), + 2247: uint8(121), + 2248: uint8(128), + 2250: uint8(126), + 2251: uint8(14), + 2257: uint8(252), + 2258: uint8(127), + 2259: uint8(3), + 2278: uint8(127), + 2279: uint8(191), + 2290: uint8(252), + 2291: uint8(255), + 2292: uint8(255), + 2293: uint8(252), + 2294: uint8(109), + 2310: uint8(126), + 2311: uint8(180), + 2312: uint8(191), + 2322: uint8(163), + 2366: uint8(24), + 2374: uint8(255), + 2375: uint8(1), + 2430: uint8(31), + 2438: uint8(127), + 2473: uint8(128), + 2481: uint8(128), + 2482: uint8(7), + 2515: uint8(96), + 2516: uint8(15), + 2540: uint8(128), + 2541: uint8(3), + 2542: uint8(248), + 2543: uint8(255), + 2544: uint8(231), + 2545: uint8(15), + 2549: uint8(60), + 2568: uint8(28), + 2592: uint8(255), + 2593: uint8(255), + 2594: uint8(255), + 2595: uint8(255), + 2596: uint8(255), + 2597: uint8(255), + 2598: uint8(127), + 2599: uint8(248), + 2600: uint8(255), + 2601: uint8(255), + 2602: uint8(255), + 2603: uint8(255), + 2604: uint8(255), + 2605: uint8(31), + 2606: uint8(32), + 2608: uint8(16), + 2611: uint8(248), + 2612: uint8(254), + 2613: uint8(255), + 2624: uint8(127), + 2625: uint8(255), + 2626: uint8(255), + 2627: uint8(249), + 2628: uint8(219), + 2629: uint8(7), + 2662: uint8(127), + 2717: uint8(240), + 2746: uint8(127), + 2760: uint8(240), + 2761: uint8(7), +} + +var _wtable = [1600]uint8{ + 0: uint8(16), + 1: uint8(16), + 2: uint8(16), + 3: uint8(16), + 4: uint8(16), + 5: uint8(16), + 6: uint8(16), + 7: uint8(16), + 8: uint8(16), + 9: uint8(16), + 10: uint8(16), + 11: uint8(16), + 12: uint8(16), + 13: uint8(16), + 14: uint8(16), + 15: uint8(16), + 16: uint8(16), + 17: uint8(18), + 18: uint8(16), + 19: uint8(16), + 20: uint8(16), + 21: uint8(16), + 22: uint8(16), + 23: uint8(16), + 24: uint8(16), + 25: uint8(16), + 26: uint8(16), + 27: uint8(16), + 28: uint8(16), + 29: uint8(16), + 30: uint8(16), + 31: uint8(16), + 32: uint8(16), + 33: uint8(16), + 34: uint8(16), + 35: uint8(19), + 36: uint8(16), + 37: uint8(20), + 38: uint8(21), + 39: uint8(22), + 40: uint8(16), + 41: uint8(16), + 42: uint8(16), + 43: uint8(23), + 44: uint8(16), + 45: uint8(16), + 46: uint8(24), + 47: uint8(25), + 48: uint8(26), + 49: uint8(27), + 50: uint8(28), + 51: uint8(17), + 52: uint8(17), + 53: uint8(17), + 54: uint8(17), + 55: uint8(17), + 56: uint8(17), + 57: uint8(17), + 58: uint8(17), + 59: uint8(17), + 60: uint8(17), + 61: uint8(17), + 62: uint8(17), + 63: uint8(17), + 64: uint8(17), + 65: uint8(17), + 66: uint8(17), + 67: uint8(17), + 68: uint8(17), + 69: uint8(17), + 70: uint8(17), + 71: uint8(17), + 72: uint8(17), + 73: uint8(17), + 74: uint8(17), + 75: uint8(17), + 76: uint8(17), + 77: uint8(29), + 78: uint8(17), + 79: uint8(17), + 80: uint8(17), + 81: uint8(17), + 82: uint8(17), + 83: uint8(17), + 84: uint8(17), + 85: uint8(17), + 86: uint8(17), + 87: uint8(17), + 88: uint8(17), + 89: uint8(17), + 90: uint8(17), + 91: uint8(17), + 92: uint8(17), + 93: uint8(17), + 94: uint8(17), + 95: uint8(17), + 96: uint8(17), + 97: uint8(17), + 98: uint8(17), + 99: uint8(17), + 100: uint8(17), + 101: uint8(17), + 102: uint8(17), + 103: uint8(17), + 104: uint8(17), + 105: uint8(17), + 106: uint8(17), + 107: uint8(17), + 108: uint8(17), + 109: uint8(17), + 110: uint8(17), + 111: uint8(17), + 112: uint8(17), + 113: uint8(17), + 114: uint8(17), + 115: uint8(17), + 116: uint8(17), + 117: uint8(17), + 118: uint8(17), + 119: uint8(17), + 120: uint8(17), + 121: uint8(17), + 122: uint8(17), + 123: uint8(17), + 124: uint8(17), + 125: uint8(17), + 126: uint8(17), + 127: uint8(17), + 128: uint8(17), + 129: uint8(17), + 130: uint8(17), + 131: uint8(17), + 132: uint8(17), + 133: uint8(17), + 134: uint8(17), + 135: uint8(17), + 136: uint8(17), + 137: uint8(17), + 138: uint8(17), + 139: uint8(17), + 140: uint8(17), + 141: uint8(17), + 142: uint8(17), + 143: uint8(17), + 144: uint8(17), + 145: uint8(17), + 146: uint8(17), + 147: uint8(17), + 148: uint8(17), + 149: uint8(17), + 150: uint8(17), + 151: uint8(17), + 152: uint8(17), + 153: uint8(17), + 154: uint8(17), + 155: uint8(17), + 156: uint8(17), + 157: uint8(17), + 158: uint8(17), + 159: uint8(17), + 160: uint8(17), + 161: uint8(17), + 162: uint8(17), + 163: uint8(17), + 164: uint8(30), + 165: uint8(16), + 166: uint8(16), + 167: uint8(16), + 168: uint8(16), + 169: uint8(31), + 170: uint8(16), + 171: uint8(16), + 172: uint8(17), + 173: uint8(17), + 174: uint8(17), + 175: uint8(17), + 176: uint8(17), + 177: uint8(17), + 178: uint8(17), + 179: uint8(17), + 180: uint8(17), + 181: uint8(17), + 182: uint8(17), + 183: uint8(17), + 184: uint8(17), + 185: uint8(17), + 186: uint8(17), + 187: uint8(17), + 188: uint8(17), + 189: uint8(17), + 190: uint8(17), + 191: uint8(17), + 192: uint8(17), + 193: uint8(17), + 194: uint8(17), + 195: uint8(17), + 196: uint8(17), + 197: uint8(17), + 198: uint8(17), + 199: uint8(17), + 200: uint8(17), + 201: uint8(17), + 202: uint8(17), + 203: uint8(17), + 204: uint8(17), + 205: uint8(17), + 206: uint8(17), + 207: uint8(17), + 208: uint8(17), + 209: uint8(17), + 210: uint8(17), + 211: uint8(17), + 212: uint8(17), + 213: uint8(17), + 214: uint8(17), + 215: uint8(32), + 216: uint8(16), + 217: uint8(16), + 218: uint8(16), + 219: uint8(16), + 220: uint8(16), + 221: uint8(16), + 222: uint8(16), + 223: uint8(16), + 224: uint8(16), + 225: uint8(16), + 226: uint8(16), + 227: uint8(16), + 228: uint8(16), + 229: uint8(16), + 230: uint8(16), + 231: uint8(16), + 232: uint8(16), + 233: uint8(16), + 234: uint8(16), + 235: uint8(16), + 236: uint8(16), + 237: uint8(16), + 238: uint8(16), + 239: uint8(16), + 240: uint8(16), + 241: uint8(16), + 242: uint8(16), + 243: uint8(16), + 244: uint8(16), + 245: uint8(16), + 246: uint8(16), + 247: uint8(16), + 248: uint8(16), + 249: uint8(17), + 250: uint8(17), + 251: uint8(16), + 252: uint8(16), + 253: uint8(16), + 254: uint8(33), + 255: uint8(34), + 256: uint8(16), + 257: uint8(16), + 258: uint8(16), + 259: uint8(16), + 260: uint8(16), + 261: uint8(16), + 262: uint8(16), + 263: uint8(16), + 264: uint8(16), + 265: uint8(16), + 266: uint8(16), + 267: uint8(16), + 268: uint8(16), + 269: uint8(16), + 270: uint8(16), + 271: uint8(16), + 272: uint8(16), + 273: uint8(16), + 274: uint8(16), + 275: uint8(16), + 276: uint8(16), + 277: uint8(16), + 278: uint8(16), + 279: uint8(16), + 280: uint8(16), + 281: uint8(16), + 282: uint8(16), + 283: uint8(16), + 284: uint8(16), + 285: uint8(16), + 286: uint8(16), + 287: uint8(16), + 288: uint8(16), + 289: uint8(16), + 290: uint8(16), + 291: uint8(16), + 292: uint8(16), + 293: uint8(16), + 294: uint8(16), + 295: uint8(16), + 296: uint8(16), + 297: uint8(16), + 298: uint8(16), + 299: uint8(16), + 300: uint8(16), + 301: uint8(16), + 302: uint8(16), + 303: uint8(16), + 304: uint8(16), + 305: uint8(16), + 306: uint8(16), + 307: uint8(16), + 308: uint8(16), + 309: uint8(16), + 310: uint8(16), + 311: uint8(16), + 312: uint8(16), + 313: uint8(16), + 314: uint8(16), + 315: uint8(16), + 316: uint8(16), + 317: uint8(16), + 318: uint8(16), + 319: uint8(16), + 320: uint8(16), + 321: uint8(16), + 322: uint8(16), + 323: uint8(16), + 324: uint8(16), + 325: uint8(16), + 326: uint8(16), + 327: uint8(16), + 328: uint8(16), + 329: uint8(16), + 330: uint8(16), + 331: uint8(16), + 332: uint8(16), + 333: uint8(16), + 334: uint8(16), + 335: uint8(16), + 336: uint8(16), + 337: uint8(16), + 338: uint8(16), + 339: uint8(16), + 340: uint8(16), + 341: uint8(16), + 342: uint8(16), + 343: uint8(16), + 344: uint8(16), + 345: uint8(16), + 346: uint8(16), + 347: uint8(16), + 348: uint8(16), + 349: uint8(16), + 350: uint8(16), + 351: uint8(16), + 352: uint8(16), + 353: uint8(16), + 354: uint8(16), + 355: uint8(16), + 356: uint8(16), + 357: uint8(16), + 358: uint8(16), + 359: uint8(16), + 360: uint8(16), + 361: uint8(16), + 362: uint8(16), + 363: uint8(16), + 364: uint8(16), + 365: uint8(16), + 366: uint8(16), + 367: uint8(35), + 368: uint8(17), + 369: uint8(17), + 370: uint8(17), + 371: uint8(17), + 372: uint8(17), + 373: uint8(17), + 374: uint8(17), + 375: uint8(17), + 376: uint8(17), + 377: uint8(17), + 378: uint8(17), + 379: uint8(17), + 380: uint8(17), + 381: uint8(17), + 382: uint8(17), + 383: uint8(17), + 384: uint8(17), + 385: uint8(17), + 386: uint8(17), + 387: uint8(17), + 388: uint8(17), + 389: uint8(17), + 390: uint8(17), + 391: uint8(36), + 392: uint8(17), + 393: uint8(17), + 394: uint8(37), + 395: uint8(16), + 396: uint8(16), + 397: uint8(16), + 398: uint8(16), + 399: uint8(16), + 400: uint8(16), + 401: uint8(16), + 402: uint8(16), + 403: uint8(16), + 404: uint8(16), + 405: uint8(16), + 406: uint8(16), + 407: uint8(16), + 408: uint8(16), + 409: uint8(16), + 410: uint8(16), + 411: uint8(16), + 412: uint8(16), + 413: uint8(16), + 414: uint8(16), + 415: uint8(16), + 416: uint8(16), + 417: uint8(16), + 418: uint8(16), + 419: uint8(16), + 420: uint8(16), + 421: uint8(16), + 422: uint8(16), + 423: uint8(16), + 424: uint8(16), + 425: uint8(16), + 426: uint8(16), + 427: uint8(16), + 428: uint8(16), + 429: uint8(16), + 430: uint8(16), + 431: uint8(16), + 432: uint8(17), + 433: uint8(38), + 434: uint8(39), + 435: uint8(16), + 436: uint8(16), + 437: uint8(16), + 438: uint8(16), + 439: uint8(16), + 440: uint8(16), + 441: uint8(16), + 442: uint8(16), + 443: uint8(16), + 444: uint8(16), + 445: uint8(16), + 446: uint8(16), + 447: uint8(16), + 448: uint8(16), + 449: uint8(16), + 450: uint8(16), + 451: uint8(16), + 452: uint8(16), + 453: uint8(16), + 454: uint8(16), + 455: uint8(16), + 456: uint8(16), + 457: uint8(16), + 458: uint8(16), + 459: uint8(16), + 460: uint8(16), + 461: uint8(16), + 462: uint8(16), + 463: uint8(16), + 464: uint8(16), + 465: uint8(16), + 466: uint8(16), + 467: uint8(16), + 468: uint8(16), + 469: uint8(16), + 470: uint8(16), + 471: uint8(16), + 472: uint8(16), + 473: uint8(16), + 474: uint8(16), + 475: uint8(16), + 476: uint8(16), + 477: uint8(16), + 478: uint8(16), + 479: uint8(16), + 480: uint8(16), + 481: uint8(16), + 482: uint8(16), + 483: uint8(16), + 484: uint8(16), + 485: uint8(16), + 486: uint8(16), + 487: uint8(16), + 488: uint8(16), + 489: uint8(16), + 490: uint8(16), + 491: uint8(16), + 492: uint8(16), + 493: uint8(16), + 494: uint8(16), + 495: uint8(16), + 496: uint8(40), + 497: uint8(41), + 498: uint8(42), + 499: uint8(43), + 500: uint8(44), + 501: uint8(45), + 502: uint8(46), + 503: uint8(47), + 504: uint8(16), + 505: uint8(48), + 506: uint8(49), + 507: uint8(16), + 508: uint8(16), + 509: uint8(16), + 510: uint8(16), + 511: uint8(16), + 544: uint8(255), + 545: uint8(255), + 546: uint8(255), + 547: uint8(255), + 548: uint8(255), + 549: uint8(255), + 550: uint8(255), + 551: uint8(255), + 552: uint8(255), + 553: uint8(255), + 554: uint8(255), + 555: uint8(255), + 556: uint8(255), + 557: uint8(255), + 558: uint8(255), + 559: uint8(255), + 560: uint8(255), + 561: uint8(255), + 562: uint8(255), + 563: uint8(255), + 564: uint8(255), + 565: uint8(255), + 566: uint8(255), + 567: uint8(255), + 568: uint8(255), + 569: uint8(255), + 570: uint8(255), + 571: uint8(255), + 572: uint8(255), + 573: uint8(255), + 574: uint8(255), + 575: uint8(255), + 576: uint8(255), + 577: uint8(255), + 578: uint8(255), + 579: uint8(255), + 580: uint8(255), + 581: uint8(255), + 582: uint8(255), + 583: uint8(255), + 584: uint8(255), + 585: uint8(255), + 586: uint8(255), + 587: uint8(255), + 611: uint8(12), + 613: uint8(6), + 637: uint8(30), + 638: uint8(9), + 671: uint8(96), + 674: uint8(48), + 681: uint8(255), + 682: uint8(15), + 687: uint8(128), + 690: uint8(8), + 692: uint8(2), + 693: uint8(12), + 695: uint8(96), + 696: uint8(48), + 697: uint8(64), + 698: uint8(16), + 701: uint8(4), + 702: uint8(44), + 703: uint8(36), + 704: uint8(32), + 705: uint8(12), + 709: uint8(1), + 713: uint8(80), + 714: uint8(184), + 722: uint8(224), + 726: uint8(1), + 727: uint8(128), + 739: uint8(24), + 746: uint8(33), + 784: uint8(255), + 785: uint8(255), + 786: uint8(255), + 787: uint8(251), + 788: uint8(255), + 789: uint8(255), + 790: uint8(255), + 791: uint8(255), + 792: uint8(255), + 793: uint8(255), + 794: uint8(255), + 795: uint8(255), + 796: uint8(255), + 797: uint8(255), + 798: uint8(15), + 800: uint8(255), + 801: uint8(255), + 802: uint8(255), + 803: uint8(255), + 804: uint8(255), + 805: uint8(255), + 806: uint8(255), + 807: uint8(255), + 808: uint8(255), + 809: uint8(255), + 810: uint8(255), + 811: uint8(255), + 812: uint8(255), + 813: uint8(255), + 814: uint8(255), + 815: uint8(255), + 816: uint8(255), + 817: uint8(255), + 818: uint8(255), + 819: uint8(255), + 820: uint8(255), + 821: uint8(255), + 822: uint8(255), + 823: uint8(255), + 824: uint8(255), + 825: uint8(255), + 826: uint8(63), + 830: uint8(255), + 831: uint8(15), + 832: uint8(255), + 833: uint8(255), + 834: uint8(255), + 835: uint8(255), + 836: uint8(255), + 837: uint8(255), + 838: uint8(255), + 839: uint8(127), + 840: uint8(254), + 841: uint8(255), + 842: uint8(255), + 843: uint8(255), + 844: uint8(255), + 845: uint8(255), + 846: uint8(255), + 847: uint8(255), + 848: uint8(255), + 849: uint8(255), + 850: uint8(127), + 851: uint8(254), + 852: uint8(255), + 853: uint8(255), + 854: uint8(255), + 855: uint8(255), + 856: uint8(255), + 857: uint8(255), + 858: uint8(255), + 859: uint8(255), + 860: uint8(255), + 861: uint8(255), + 862: uint8(255), + 863: uint8(255), + 864: uint8(224), + 865: uint8(255), + 866: uint8(255), + 867: uint8(255), + 868: uint8(255), + 869: uint8(255), + 870: uint8(254), + 871: uint8(255), + 872: uint8(255), + 873: uint8(255), + 874: uint8(255), + 875: uint8(255), + 876: uint8(255), + 877: uint8(255), + 878: uint8(255), + 879: uint8(255), + 880: uint8(255), + 881: uint8(127), + 882: uint8(255), + 883: uint8(255), + 884: uint8(255), + 885: uint8(255), + 886: uint8(255), + 887: uint8(7), + 888: uint8(255), + 889: uint8(255), + 890: uint8(255), + 891: uint8(255), + 892: uint8(15), + 894: uint8(255), + 895: uint8(255), + 896: uint8(255), + 897: uint8(255), + 898: uint8(255), + 899: uint8(127), + 900: uint8(255), + 901: uint8(255), + 902: uint8(255), + 903: uint8(255), + 904: uint8(255), + 906: uint8(255), + 907: uint8(255), + 908: uint8(255), + 909: uint8(255), + 910: uint8(255), + 911: uint8(255), + 912: uint8(255), + 913: uint8(255), + 914: uint8(255), + 915: uint8(255), + 916: uint8(255), + 917: uint8(255), + 918: uint8(255), + 919: uint8(255), + 920: uint8(255), + 921: uint8(255), + 922: uint8(255), + 923: uint8(255), + 924: uint8(255), + 925: uint8(255), + 926: uint8(255), + 927: uint8(255), + 928: uint8(255), + 929: uint8(255), + 930: uint8(255), + 931: uint8(255), + 932: uint8(255), + 933: uint8(255), + 934: uint8(255), + 935: uint8(255), + 936: uint8(255), + 937: uint8(255), + 938: uint8(255), + 939: uint8(255), + 940: uint8(255), + 941: uint8(255), + 942: uint8(255), + 943: uint8(255), + 944: uint8(255), + 945: uint8(255), + 946: uint8(255), + 947: uint8(255), + 948: uint8(255), + 949: uint8(255), + 950: uint8(255), + 951: uint8(255), + 960: uint8(255), + 961: uint8(255), + 962: uint8(255), + 963: uint8(255), + 964: uint8(255), + 965: uint8(255), + 966: uint8(255), + 967: uint8(255), + 968: uint8(255), + 969: uint8(255), + 970: uint8(255), + 971: uint8(255), + 972: uint8(255), + 973: uint8(255), + 974: uint8(255), + 975: uint8(255), + 976: uint8(255), + 977: uint8(31), + 978: uint8(255), + 979: uint8(255), + 980: uint8(255), + 981: uint8(255), + 982: uint8(255), + 983: uint8(255), + 984: uint8(127), + 1004: uint8(255), + 1005: uint8(255), + 1006: uint8(255), + 1007: uint8(31), + 1024: uint8(255), + 1025: uint8(255), + 1026: uint8(255), + 1027: uint8(255), + 1028: uint8(255), + 1029: uint8(255), + 1030: uint8(255), + 1031: uint8(255), + 1032: uint8(255), + 1033: uint8(255), + 1034: uint8(255), + 1035: uint8(255), + 1036: uint8(255), + 1037: uint8(255), + 1038: uint8(255), + 1039: uint8(255), + 1040: uint8(255), + 1041: uint8(255), + 1042: uint8(255), + 1043: uint8(255), + 1044: uint8(15), + 1058: uint8(255), + 1059: uint8(3), + 1062: uint8(255), + 1063: uint8(255), + 1064: uint8(255), + 1065: uint8(255), + 1066: uint8(247), + 1067: uint8(255), + 1068: uint8(127), + 1069: uint8(15), + 1088: uint8(254), + 1089: uint8(255), + 1090: uint8(255), + 1091: uint8(255), + 1092: uint8(255), + 1093: uint8(255), + 1094: uint8(255), + 1095: uint8(255), + 1096: uint8(255), + 1097: uint8(255), + 1098: uint8(255), + 1099: uint8(255), + 1100: uint8(1), + 1116: uint8(127), + 1148: uint8(15), + 1152: uint8(255), + 1153: uint8(255), + 1154: uint8(255), + 1155: uint8(255), + 1156: uint8(255), + 1157: uint8(255), + 1158: uint8(255), + 1159: uint8(255), + 1160: uint8(255), + 1161: uint8(255), + 1162: uint8(255), + 1163: uint8(255), + 1164: uint8(255), + 1165: uint8(255), + 1166: uint8(255), + 1167: uint8(255), + 1168: uint8(255), + 1169: uint8(255), + 1170: uint8(255), + 1171: uint8(255), + 1172: uint8(255), + 1173: uint8(255), + 1174: uint8(255), + 1175: uint8(255), + 1176: uint8(255), + 1177: uint8(255), + 1178: uint8(255), + 1179: uint8(255), + 1180: uint8(255), + 1181: uint8(255), + 1182: uint8(255), + 1184: uint8(255), + 1185: uint8(255), + 1186: uint8(255), + 1187: uint8(255), + 1188: uint8(255), + 1189: uint8(255), + 1190: uint8(255), + 1191: uint8(255), + 1192: uint8(255), + 1193: uint8(255), + 1194: uint8(255), + 1195: uint8(255), + 1196: uint8(255), + 1197: uint8(255), + 1198: uint8(255), + 1199: uint8(255), + 1200: uint8(255), + 1201: uint8(255), + 1202: uint8(255), + 1203: uint8(255), + 1204: uint8(255), + 1205: uint8(255), + 1206: uint8(255), + 1207: uint8(255), + 1208: uint8(255), + 1209: uint8(255), + 1210: uint8(255), + 1211: uint8(255), + 1212: uint8(255), + 1213: uint8(255), + 1214: uint8(7), + 1216: uint8(255), + 1217: uint8(255), + 1218: uint8(255), + 1219: uint8(127), + 1226: uint8(7), + 1228: uint8(240), + 1230: uint8(255), + 1231: uint8(255), + 1232: uint8(255), + 1233: uint8(255), + 1234: uint8(255), + 1235: uint8(255), + 1236: uint8(255), + 1237: uint8(255), + 1238: uint8(255), + 1239: uint8(255), + 1240: uint8(255), + 1241: uint8(255), + 1242: uint8(255), + 1243: uint8(255), + 1244: uint8(255), + 1245: uint8(255), + 1246: uint8(255), + 1247: uint8(255), + 1248: uint8(255), + 1249: uint8(255), + 1250: uint8(255), + 1251: uint8(255), + 1252: uint8(255), + 1253: uint8(255), + 1254: uint8(255), + 1255: uint8(255), + 1256: uint8(255), + 1257: uint8(255), + 1258: uint8(255), + 1259: uint8(255), + 1260: uint8(255), + 1261: uint8(255), + 1262: uint8(255), + 1263: uint8(255), + 1264: uint8(255), + 1265: uint8(255), + 1266: uint8(255), + 1267: uint8(255), + 1268: uint8(255), + 1269: uint8(255), + 1270: uint8(255), + 1271: uint8(255), + 1272: uint8(255), + 1273: uint8(255), + 1274: uint8(255), + 1275: uint8(255), + 1276: uint8(255), + 1277: uint8(255), + 1278: uint8(255), + 1279: uint8(15), + 1280: uint8(16), + 1305: uint8(128), + 1329: uint8(64), + 1330: uint8(254), + 1331: uint8(7), + 1344: uint8(7), + 1346: uint8(255), + 1347: uint8(255), + 1348: uint8(255), + 1349: uint8(255), + 1350: uint8(255), + 1351: uint8(15), + 1352: uint8(255), + 1353: uint8(1), + 1354: uint8(3), + 1356: uint8(63), + 1376: uint8(255), + 1377: uint8(255), + 1378: uint8(255), + 1379: uint8(255), + 1380: uint8(1), + 1381: uint8(224), + 1382: uint8(191), + 1383: uint8(255), + 1384: uint8(255), + 1385: uint8(255), + 1386: uint8(255), + 1387: uint8(255), + 1388: uint8(255), + 1389: uint8(255), + 1390: uint8(255), + 1391: uint8(223), + 1392: uint8(255), + 1393: uint8(255), + 1394: uint8(15), + 1396: uint8(255), + 1397: uint8(255), + 1398: uint8(255), + 1399: uint8(255), + 1400: uint8(255), + 1401: uint8(135), + 1402: uint8(15), + 1404: uint8(255), + 1405: uint8(255), + 1406: uint8(17), + 1407: uint8(255), + 1408: uint8(255), + 1409: uint8(255), + 1410: uint8(255), + 1411: uint8(255), + 1412: uint8(255), + 1413: uint8(255), + 1414: uint8(255), + 1415: uint8(127), + 1416: uint8(253), + 1417: uint8(255), + 1418: uint8(255), + 1419: uint8(255), + 1420: uint8(255), + 1421: uint8(255), + 1422: uint8(255), + 1423: uint8(255), + 1424: uint8(255), + 1425: uint8(255), + 1426: uint8(255), + 1427: uint8(255), + 1428: uint8(255), + 1429: uint8(255), + 1430: uint8(255), + 1431: uint8(255), + 1432: uint8(255), + 1433: uint8(255), + 1434: uint8(255), + 1435: uint8(255), + 1436: uint8(255), + 1437: uint8(255), + 1438: uint8(255), + 1439: uint8(159), + 1440: uint8(255), + 1441: uint8(255), + 1442: uint8(255), + 1443: uint8(255), + 1444: uint8(255), + 1445: uint8(255), + 1446: uint8(255), + 1447: uint8(63), + 1449: uint8(120), + 1450: uint8(255), + 1451: uint8(255), + 1452: uint8(255), + 1455: uint8(4), + 1458: uint8(96), + 1460: uint8(16), + 1471: uint8(248), + 1472: uint8(255), + 1473: uint8(255), + 1474: uint8(255), + 1475: uint8(255), + 1476: uint8(255), + 1477: uint8(255), + 1478: uint8(255), + 1479: uint8(255), + 1480: uint8(255), + 1481: uint8(255), + 1488: uint8(255), + 1489: uint8(255), + 1490: uint8(255), + 1491: uint8(255), + 1492: uint8(255), + 1493: uint8(255), + 1494: uint8(255), + 1495: uint8(255), + 1496: uint8(63), + 1497: uint8(16), + 1498: uint8(39), + 1501: uint8(24), + 1502: uint8(240), + 1503: uint8(7), + 1532: uint8(255), + 1533: uint8(15), + 1537: uint8(224), + 1538: uint8(255), + 1539: uint8(255), + 1540: uint8(255), + 1541: uint8(255), + 1542: uint8(255), + 1543: uint8(255), + 1544: uint8(255), + 1545: uint8(255), + 1546: uint8(255), + 1547: uint8(255), + 1548: uint8(255), + 1549: uint8(255), + 1550: uint8(123), + 1551: uint8(252), + 1552: uint8(255), + 1553: uint8(255), + 1554: uint8(255), + 1555: uint8(255), + 1556: uint8(231), + 1557: uint8(199), + 1558: uint8(255), + 1559: uint8(255), + 1560: uint8(255), + 1561: uint8(231), + 1562: uint8(255), + 1563: uint8(255), + 1564: uint8(255), + 1565: uint8(255), + 1566: uint8(255), + 1567: uint8(255), + 1582: uint8(15), + 1583: uint8(7), + 1584: uint8(7), + 1586: uint8(63), +} + +func Xwcwidth(tls *TLS, wc Twchar_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1, v2 int32 + _, _ = v1, v2 + if Uint32FromInt32(wc) < uint32(0xff) { + if (wc+int32(1))&int32(0x7f) >= int32(0x21) { + v1 = int32(1) + } else { + if wc != 0 { + v2 = -int32(1) + } else { + v2 = 0 + } + v1 = v2 + } + return v1 + } + if Uint32FromInt32(wc)&uint32(0xfffeffff) < uint32(0xfffe) { + if Int32FromUint8(_table5[Int32FromUint8(_table5[wc>>int32(8)])*int32(32)+wc&int32(255)>>int32(3)])>>(wc&int32(7))&int32(1) != 0 { + return 0 + } + if Int32FromUint8(_wtable[Int32FromUint8(_wtable[wc>>int32(8)])*int32(32)+wc&int32(255)>>int32(3)])>>(wc&int32(7))&int32(1) != 0 { + return int32(2) + } + return int32(1) + } + if wc&int32(0xfffe) == int32(0xfffe) { + return -int32(1) + } + if Uint32FromInt32(wc)-uint32(0x20000) < uint32(0x20000) { + return int32(2) + } + if wc == int32(0xe0001) || Uint32FromInt32(wc)-uint32(0xe0020) < uint32(0x5f) || Uint32FromInt32(wc)-uint32(0xe0100) < uint32(0xef) { + return 0 + } + return int32(1) +} + +const d_fileno = 0 + +type Tino_t = uint64 + +type Tdirent = struct { + Fd_ino Tino_t + Fd_off Toff_t + Fd_reclen uint16 + Fd_type uint8 + Fd_name [256]uint8 +} + +func Xalphasort(tls *TLS, a uintptr, b uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v a=%v b=%v, (%v:)", tls, a, b, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrcoll(tls, **(**uintptr)(__ccgo_up(a))+19, **(**uintptr)(__ccgo_up(b))+19) +} + +type TDIR = struct { + Ftell Toff_t + Ffd int32 + Fbuf_pos int32 + Fbuf_end int32 + Flock [1]int32 + Fbuf [2048]uint8 +} + +type t__dirstream = TDIR + +func Xclosedir(tls *TLS, dir uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v dir=%v, (%v:)", tls, dir, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret int32 + _ = ret + ret = Xclose(tls, (*TDIR)(unsafe.Pointer(dir)).Ffd) + Xfree(tls, dir) + return ret +} + +func Xdirfd(tls *TLS, d uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v d=%v, (%v:)", tls, d, origin(2)) + defer func() { trc("-> %v", r) }() + } + return (*TDIR)(unsafe.Pointer(d)).Ffd +} + +const AT_EACCESS = 512 +const AT_FDCWD = -100 +const AT_REMOVEDIR = 512 +const AT_SYMLINK_FOLLOW = 1024 +const AT_SYMLINK_NOFOLLOW = 256 +const FD_CLOEXEC = 1 +const F_DUPFD = 0 +const F_DUPFD_CLOEXEC = 1030 +const F_GETFD = 1 +const F_GETFL = 3 +const F_GETLK = 5 +const F_GETOWN = 9 +const F_GETOWNER_UIDS = 17 +const F_GETOWN_EX = 16 +const F_GETSIG = 11 +const F_OFD_GETLK = 36 +const F_OFD_SETLK = 37 +const F_OFD_SETLKW = 38 +const F_RDLCK = 0 +const F_SETFD = 2 +const F_SETFL = 4 +const F_SETLK = 6 +const F_SETLKW = 7 +const F_SETOWN = 8 +const F_SETOWN_EX = 15 +const F_SETSIG = 10 +const F_UNLCK = 2 +const F_WRLCK = 1 +const O_ACCMODE = 2097155 +const O_APPEND = 1024 +const O_ASYNC = 8192 +const O_CLOEXEC = 524288 +const O_CREAT = 64 +const O_DIRECT = 16384 +const O_DIRECTORY = 65536 +const O_DSYNC = 4096 +const O_EXCL = 128 +const O_EXEC = 2097152 +const O_LARGEFILE = 32768 +const O_NDELAY = 2048 +const O_NOATIME = 262144 +const O_NOCTTY = 256 +const O_NOFOLLOW = 131072 +const O_NONBLOCK = 2048 +const O_PATH = 2097152 +const O_RDONLY = 0 +const O_RDWR = 2 +const O_RSYNC = 1052672 +const O_SEARCH = 2097152 +const O_SYNC = 1052672 +const O_TMPFILE = 4259840 +const O_TRUNC = 512 +const O_TTY_INIT = 0 +const O_WRONLY = 1 +const POSIX_FADV_DONTNEED = 6 +const POSIX_FADV_NOREUSE = 7 +const POSIX_FADV_NORMAL = 0 +const POSIX_FADV_RANDOM = 1 +const POSIX_FADV_SEQUENTIAL = 2 +const POSIX_FADV_WILLNEED = 3 +const S_IFBLK = 24576 +const S_IFCHR = 8192 +const S_IFDIR = 16384 +const S_IFIFO = 4096 +const S_IFLNK = 40960 +const S_IFMT = 61440 +const S_IFREG = 32768 +const S_IFSOCK = 49152 +const S_IRGRP = 32 +const S_IROTH = 4 +const S_IRUSR = 256 +const S_IRWXG = 56 +const S_IRWXO = 7 +const S_IRWXU = 448 +const S_ISGID = 1024 +const S_ISUID = 2048 +const S_ISVTX = 512 +const S_IWGRP = 16 +const S_IWOTH = 2 +const S_IWUSR = 128 +const S_IXGRP = 8 +const S_IXOTH = 1 +const S_IXUSR = 64 +const UTIME_NOW = 1073741823 +const UTIME_OMIT = 1073741822 + +type Tflock = struct { + Fl_type int16 + Fl_whence int16 + Fl_start Toff_t + Fl_len Toff_t + Fl_pid Tpid_t +} + +type Tnlink_t = uint64 + +type Tdev_t = uint64 + +type Tblksize_t = int64 + +type Tblkcnt_t = int64 + +type Tstat = struct { + Fst_dev Tdev_t + Fst_ino Tino_t + Fst_nlink Tnlink_t + Fst_mode Tmode_t + Fst_uid Tuid_t + Fst_gid Tgid_t + Fst_rdev Tdev_t + Fst_size Toff_t + Fst_atim Ttimespec + Fst_mtim Ttimespec + Fst_ctim Ttimespec + Fst_blksize Tblksize_t + Fst_blocks Tblkcnt_t + F__unused [3]uint64 +} + +func Xfdopendir(tls *TLS, fd int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(160) + defer tls.Free(160) + var dir, v1 uintptr + var _ /* st at bp+0 */ Tstat + _, _ = dir, v1 + if Xfstat(tls, fd, bp) < 0 { + return uintptr(0) + } + if Xfcntl(tls, fd, int32(F_GETFL), 0)&int32(O_PATH) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EBADF) + return uintptr(0) + } + if !((**(**Tstat)(__ccgo_up(bp))).Fst_mode&Uint32FromInt32(S_IFMT) == Uint32FromInt32(S_IFDIR)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOTDIR) + return uintptr(0) + } + v1 = Xcalloc(tls, uint64(1), uint64(2072)) + dir = v1 + if !(v1 != 0) { + return uintptr(0) + } + Xfcntl(tls, fd, int32(F_SETFD), VaList(bp+152, int32(FD_CLOEXEC))) + (*TDIR)(unsafe.Pointer(dir)).Ffd = fd + return dir +} + +const AT_EMPTY_PATH = 4096 +const AT_NO_AUTOMOUNT = 2048 +const AT_RECURSIVE = 32768 +const AT_STATX_DONT_SYNC = 16384 +const AT_STATX_FORCE_SYNC = 8192 +const AT_STATX_SYNC_AS_STAT = 0 +const AT_STATX_SYNC_TYPE = 24576 +const DN_ACCESS = 1 +const DN_ATTRIB = 32 +const DN_CREATE = 4 +const DN_DELETE = 8 +const DN_MODIFY = 2 +const DN_MULTISHOT = 2147483648 +const DN_RENAME = 16 +const DT_BLK = 6 +const DT_CHR = 2 +const DT_DIR = 4 +const DT_FIFO = 1 +const DT_LNK = 10 +const DT_REG = 8 +const DT_SOCK = 12 +const DT_UNKNOWN = 0 +const DT_WHT = 14 +const FALLOC_FL_KEEP_SIZE = 1 +const FALLOC_FL_PUNCH_HOLE = 2 +const FAPPEND = 1024 +const FASYNC = 8192 +const FFSYNC = 1052672 +const FNDELAY = 2048 +const FNONBLOCK = 2048 +const F_ADD_SEALS = 1033 +const F_CANCELLK = 1029 +const F_GETLEASE = 1025 +const F_GETPIPE_SZ = 1032 +const F_GET_FILE_RW_HINT = 1037 +const F_GET_RW_HINT = 1035 +const F_GET_SEALS = 1034 +const F_NOTIFY = 1026 +const F_OWNER_GID = 2 +const F_OWNER_PGRP = 2 +const F_OWNER_PID = 1 +const F_OWNER_TID = 0 +const F_SEAL_FUTURE_WRITE = 16 +const F_SEAL_GROW = 4 +const F_SEAL_SEAL = 1 +const F_SEAL_SHRINK = 2 +const F_SEAL_WRITE = 8 +const F_SETLEASE = 1024 +const F_SETPIPE_SZ = 1031 +const F_SET_FILE_RW_HINT = 1038 +const F_SET_RW_HINT = 1036 +const MAX_HANDLE_SZ = 128 +const RWF_WRITE_LIFE_NOT_SET = 0 +const RWH_WRITE_LIFE_EXTREME = 5 +const RWH_WRITE_LIFE_LONG = 4 +const RWH_WRITE_LIFE_MEDIUM = 3 +const RWH_WRITE_LIFE_NONE = 1 +const RWH_WRITE_LIFE_SHORT = 2 +const SPLICE_F_GIFT = 8 +const SPLICE_F_MORE = 4 +const SPLICE_F_MOVE = 1 +const SPLICE_F_NONBLOCK = 2 +const SYNC_FILE_RANGE_WAIT_AFTER = 4 +const SYNC_FILE_RANGE_WAIT_BEFORE = 1 +const SYNC_FILE_RANGE_WRITE = 2 +const alloca = 0 +const loff_t = 0 + +type Tiovec = struct { + Fiov_base uintptr + Fiov_len Tsize_t +} + +type Tfile_handle = struct { + Fhandle_bytes uint32 + Fhandle_type int32 +} + +type Tf_owner_ex = struct { + Ftype1 int32 + Fpid Tpid_t +} + +func Xopendir(tls *TLS, name uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + var dir, v2 uintptr + var fd, v1 int32 + _, _, _, _ = dir, fd, v1, v2 + v1 = Xopen(tls, name, Int32FromInt32(O_RDONLY)|Int32FromInt32(O_DIRECTORY)|Int32FromInt32(O_CLOEXEC), 0) + fd = v1 + if v1 < 0 { + return uintptr(0) + } + v2 = Xcalloc(tls, uint64(1), uint64(2072)) + dir = v2 + if !(v2 != 0) { + X__syscall1(tls, int64(SYS_close), int64(fd)) + return uintptr(0) + } + (*TDIR)(unsafe.Pointer(dir)).Ffd = fd + return dir +} + +type Tptrdiff_t = int64 + +type Tdirstream_buf_alignment_check = [1]uint8 + +func Xreaddir(tls *TLS, dir uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v dir=%v, (%v:)", tls, dir, origin(2)) + defer func() { trc("-> %v", r) }() + } + var de uintptr + var len1 int32 + _, _ = de, len1 + if (*TDIR)(unsafe.Pointer(dir)).Fbuf_pos >= (*TDIR)(unsafe.Pointer(dir)).Fbuf_end { + len1 = int32(X__syscall3(tls, int64(SYS_getdents64), int64((*TDIR)(unsafe.Pointer(dir)).Ffd), int64(dir+24), Int64FromUint64(Uint64FromInt64(2048)))) + if len1 <= 0 { + if len1 < 0 && len1 != -int32(ENOENT) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = -len1 + } + return uintptr(0) + } + (*TDIR)(unsafe.Pointer(dir)).Fbuf_end = len1 + (*TDIR)(unsafe.Pointer(dir)).Fbuf_pos = 0 + } + de = dir + 24 + uintptr((*TDIR)(unsafe.Pointer(dir)).Fbuf_pos) + **(**int32)(__ccgo_up(dir + 12)) += Int32FromUint16((*Tdirent)(unsafe.Pointer(de)).Fd_reclen) + (*TDIR)(unsafe.Pointer(dir)).Ftell = (*Tdirent)(unsafe.Pointer(de)).Fd_off + return de +} + +func Xreaddir_r(tls *TLS, dir uintptr, buf uintptr, result uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v dir=%v buf=%v result=%v, (%v:)", tls, dir, buf, result, origin(2)) + defer func() { trc("-> %v", r) }() + } + var de uintptr + var errno_save, ret, v1 int32 + _, _, _, _ = de, errno_save, ret, v1 + errno_save = **(**int32)(__ccgo_up(X__errno_location(tls))) + ___lock(tls, dir+20) + **(**int32)(__ccgo_up(X__errno_location(tls))) = 0 + de = Xreaddir(tls, dir) + v1 = **(**int32)(__ccgo_up(X__errno_location(tls))) + ret = v1 + if v1 != 0 { + ___unlock(tls, dir+20) + return ret + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = errno_save + if de != 0 { + Xmemcpy(tls, buf, de, uint64((*Tdirent)(unsafe.Pointer(de)).Fd_reclen)) + } else { + buf = UintptrFromInt32(0) + } + ___unlock(tls, dir+20) + **(**uintptr)(__ccgo_up(result)) = buf + return 0 +} + +func Xrewinddir(tls *TLS, dir uintptr) { + if __ccgo_strace { + trc("tls=%v dir=%v, (%v:)", tls, dir, origin(2)) + } + var v1 int32 + _ = v1 + ___lock(tls, dir+20) + Xlseek(tls, (*TDIR)(unsafe.Pointer(dir)).Ffd, 0, SEEK_SET) + v1 = Int32FromInt32(0) + (*TDIR)(unsafe.Pointer(dir)).Fbuf_end = v1 + (*TDIR)(unsafe.Pointer(dir)).Fbuf_pos = v1 + (*TDIR)(unsafe.Pointer(dir)).Ftell = 0 + ___unlock(tls, dir+20) +} + +type t__ccgo_fp__Xscandir_2 = func(*TLS, uintptr) int32 + +type t__ccgo_fp__Xscandir_3 = func(*TLS, uintptr, uintptr) int32 + +func Xscandir(tls *TLS, path uintptr, res uintptr, __ccgo_fp_sel uintptr, __ccgo_fp_cmp uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v res=%v __ccgo_fp_sel=%v __ccgo_fp_cmp=%v, (%v:)", tls, path, res, __ccgo_fp_sel, __ccgo_fp_cmp, origin(2)) + defer func() { trc("-> %v", r) }() + } + var cnt, len1, v2 Tsize_t + var d, de, names, tmp, v1 uintptr + var old_errno int32 + _, _, _, _, _, _, _, _, _ = cnt, d, de, len1, names, old_errno, tmp, v1, v2 + d = Xopendir(tls, path) + names = uintptr(0) + cnt = uint64(0) + len1 = uint64(0) + old_errno = **(**int32)(__ccgo_up(X__errno_location(tls))) + if !(d != 0) { + return -int32(1) + } + for { + **(**int32)(__ccgo_up(X__errno_location(tls))) = 0 + v1 = Xreaddir(tls, d) + de = v1 + if !(v1 != 0) { + break + } + if __ccgo_fp_sel != 0 && !((*(*func(*TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_sel})))(tls, de) != 0) { + continue + } + if cnt >= len1 { + len1 = uint64(2)*len1 + uint64(1) + if len1 > Uint64FromUint64(0xffffffffffffffff)/Uint64FromInt64(8) { + break + } + tmp = Xrealloc(tls, names, len1*uint64(8)) + if !(tmp != 0) { + break + } + names = tmp + } + **(**uintptr)(__ccgo_up(names + uintptr(cnt)*8)) = Xmalloc(tls, uint64((*Tdirent)(unsafe.Pointer(de)).Fd_reclen)) + if !(**(**uintptr)(__ccgo_up(names + uintptr(cnt)*8)) != 0) { + break + } + v2 = cnt + cnt = cnt + 1 + Xmemcpy(tls, **(**uintptr)(__ccgo_up(names + uintptr(v2)*8)), de, uint64((*Tdirent)(unsafe.Pointer(de)).Fd_reclen)) + } + Xclosedir(tls, d) + if **(**int32)(__ccgo_up(X__errno_location(tls))) != 0 { + if names != 0 { + for { + v2 = cnt + cnt = cnt - 1 + if !(v2 > uint64(0)) { + break + } + Xfree(tls, **(**uintptr)(__ccgo_up(names + uintptr(cnt)*8))) + } + } + Xfree(tls, names) + return -int32(1) + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = old_errno + if __ccgo_fp_cmp != 0 { + Xqsort(tls, names, cnt, uint64(8), __ccgo_fp_cmp) + } + **(**uintptr)(__ccgo_up(res)) = names + return Int32FromUint64(cnt) +} + +func Xseekdir(tls *TLS, dir uintptr, off int64) { + if __ccgo_strace { + trc("tls=%v dir=%v off=%v, (%v:)", tls, dir, off, origin(2)) + } + var v1 int32 + _ = v1 + ___lock(tls, dir+20) + (*TDIR)(unsafe.Pointer(dir)).Ftell = Xlseek(tls, (*TDIR)(unsafe.Pointer(dir)).Ffd, off, SEEK_SET) + v1 = Int32FromInt32(0) + (*TDIR)(unsafe.Pointer(dir)).Fbuf_end = v1 + (*TDIR)(unsafe.Pointer(dir)).Fbuf_pos = v1 + ___unlock(tls, dir+20) +} + +func Xtelldir(tls *TLS, dir uintptr) (r int64) { + if __ccgo_strace { + trc("tls=%v dir=%v, (%v:)", tls, dir, origin(2)) + defer func() { trc("-> %v", r) }() + } + return (*TDIR)(unsafe.Pointer(dir)).Ftell +} + +func Xversionsort(tls *TLS, a uintptr, b uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v a=%v b=%v, (%v:)", tls, a, b, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrverscmp(tls, **(**uintptr)(__ccgo_up(a))+19, **(**uintptr)(__ccgo_up(b))+19) +} + +func X__reset_tls(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + var i, n Tsize_t + var mem, p uintptr + var self Tpthread_t + _, _, _, _, _ = i, mem, n, p, self + self = uintptr(___get_tp(tls)) + n = **(**Tuintptr_t)(__ccgo_up((*t__pthread)(unsafe.Pointer(self)).Fdtv)) + if n != 0 { + p = X__libc.Ftls_head + i = Uint64FromInt32(1) + for { + if !(i <= n) { + break + } + mem = uintptr(**(**Tuintptr_t)(__ccgo_up((*t__pthread)(unsafe.Pointer(self)).Fdtv + uintptr(i)*8)) - Uint64FromInt32(DTP_OFFSET)) + Xmemcpy(tls, mem, (*Ttls_module)(unsafe.Pointer(p)).Fimage, (*Ttls_module)(unsafe.Pointer(p)).Flen1) + Xmemset(tls, mem+uintptr((*Ttls_module)(unsafe.Pointer(p)).Flen1), 0, (*Ttls_module)(unsafe.Pointer(p)).Fsize-(*Ttls_module)(unsafe.Pointer(p)).Flen1) + goto _1 + _1: + ; + i = i + 1 + p = (*Ttls_module)(unsafe.Pointer(p)).Fnext + } + } +} + +func X__init_ssp(tls *TLS, entropy uintptr) { + if __ccgo_strace { + trc("tls=%v entropy=%v, (%v:)", tls, entropy, origin(2)) + } + if entropy != 0 { + Xmemcpy(tls, uintptr(unsafe.Pointer(&X__stack_chk_guard)), entropy, uint64(8)) + } else { + X__stack_chk_guard = Tuintptr_t(uintptr(unsafe.Pointer(&X__stack_chk_guard))) * uint64(1103515245) + } + /* Sacrifice 8 bits of entropy on 64bit to prevent leaking/ + * overwriting the canary via string-manipulation functions. + * The NULL byte is on the second byte so that off-by-ones can + * still be detected. Endianness is taken care of + * automatically. */ + **(**uint8)(__ccgo_up(uintptr(unsafe.Pointer(&X__stack_chk_guard)) + 1)) = uint8(0) + (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Fcanary = X__stack_chk_guard +} + +func X__stack_chk_fail(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + // __asm__ __volatile__ (".insn e,0"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 29, __ccgo_ts+261) +} + +func X__stack_chk_fail_local(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + X__stack_chk_fail(tls) +} + +const L_INCR = 1 +const L_SET = 0 +const L_XTND = 2 + +func _dummy(tls *TLS, old uintptr, new1 uintptr) { +} + +func Xclearenv(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + var e, v1 uintptr + _, _ = e, v1 + e = Xenviron + Xenviron = uintptr(0) + if e != 0 { + for **(**uintptr)(__ccgo_up(e)) != 0 { + v1 = e + e += 8 + X__env_rm_add(tls, **(**uintptr)(__ccgo_up(v1)), uintptr(0)) + } + } + return 0 +} + +func Xgetenv(tls *TLS, name uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + var e uintptr + var l Tsize_t + _, _ = e, l + l = Uint64FromInt64(int64(X__strchrnul(tls, name, int32('='))) - int64(name)) + if l != 0 && !(**(**uint8)(__ccgo_up(name + uintptr(l))) != 0) && Xenviron != 0 { + e = Xenviron + for { + if !(**(**uintptr)(__ccgo_up(e)) != 0) { + break + } + if !(Xstrncmp(tls, name, **(**uintptr)(__ccgo_up(e)), l) != 0) && Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(e)) + uintptr(l)))) == int32('=') { + return **(**uintptr)(__ccgo_up(e)) + uintptr(l) + uintptr(1) + } + goto _1 + _1: + ; + e += 8 + } + } + return uintptr(0) +} + +func _dummy1(tls *TLS, old uintptr, new1 uintptr) { +} + +func X__putenv(tls *TLS, s uintptr, l Tsize_t, r uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v s=%v l=%v r=%v, (%v:)", tls, s, l, r, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var e, newenv, tmp, v2 uintptr + var i Tsize_t + _, _, _, _, _ = e, i, newenv, tmp, v2 + i = uint64(0) + if Xenviron != 0 { + e = Xenviron + for { + if !(**(**uintptr)(__ccgo_up(e)) != 0) { + break + } + if !(Xstrncmp(tls, s, **(**uintptr)(__ccgo_up(e)), l+uint64(1)) != 0) { + tmp = **(**uintptr)(__ccgo_up(e)) + **(**uintptr)(__ccgo_up(e)) = s + X__env_rm_add(tls, tmp, r) + return 0 + } + goto _1 + _1: + ; + e += 8 + i = i + 1 + } + } + if Xenviron == _oldenv { + newenv = Xrealloc(tls, _oldenv, uint64(8)*(i+uint64(2))) + if !(newenv != 0) { + goto oom + } + } else { + newenv = Xmalloc(tls, uint64(8)*(i+uint64(2))) + if !(newenv != 0) { + goto oom + } + if i != 0 { + Xmemcpy(tls, newenv, Xenviron, uint64(8)*i) + } + Xfree(tls, _oldenv) + } + **(**uintptr)(__ccgo_up(newenv + uintptr(i)*8)) = s + **(**uintptr)(__ccgo_up(newenv + uintptr(i+uint64(1))*8)) = uintptr(0) + v2 = newenv + _oldenv = v2 + Xenviron = v2 + if r != 0 { + X__env_rm_add(tls, uintptr(0), r) + } + return 0 + goto oom +oom: + ; + Xfree(tls, r) + return -int32(1) +} + +var _oldenv uintptr + +func Xputenv(tls *TLS, s uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l Tsize_t + _ = l + l = Uint64FromInt64(int64(X__strchrnul(tls, s, int32('='))) - int64(s)) + if !(l != 0) || !(**(**uint8)(__ccgo_up(s + uintptr(l))) != 0) { + return Xunsetenv(tls, s) + } + return X__putenv(tls, s, l, uintptr(0)) +} + +const L_cuserid = 20 +const NL_NMAX = 16 + +type Tcookie_io_functions_t = struct { + Fread uintptr + Fwrite uintptr + Fseek uintptr + Fclose1 uintptr +} + +type T_IO_cookie_io_functions_t = Tcookie_io_functions_t + +func Xsecure_getenv(tls *TLS, name uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 uintptr + _ = v1 + if X__libc.Fsecure != 0 { + v1 = UintptrFromInt32(0) + } else { + v1 = Xgetenv(tls, name) + } + return v1 +} + +func X__env_rm_add(tls *TLS, old uintptr, new1 uintptr) { + if __ccgo_strace { + trc("tls=%v old=%v new1=%v, (%v:)", tls, old, new1, origin(2)) + } + var i, v3 Tsize_t + var t, v2 uintptr + _, _, _, _ = i, t, v2, v3 + i = uint64(0) + for { + if !(i < _env_alloced_n) { + break + } + if **(**uintptr)(__ccgo_up(_env_alloced + uintptr(i)*8)) == old { + **(**uintptr)(__ccgo_up(_env_alloced + uintptr(i)*8)) = new1 + Xfree(tls, old) + return + } else { + if !(**(**uintptr)(__ccgo_up(_env_alloced + uintptr(i)*8)) != 0) && new1 != 0 { + **(**uintptr)(__ccgo_up(_env_alloced + uintptr(i)*8)) = new1 + new1 = uintptr(0) + } + } + goto _1 + _1: + ; + i = i + 1 + } + if !(new1 != 0) { + return + } + t = Xrealloc(tls, _env_alloced, uint64(8)*(_env_alloced_n+uint64(1))) + if !(t != 0) { + return + } + v2 = t + _env_alloced = v2 + v3 = _env_alloced_n + _env_alloced_n = _env_alloced_n + 1 + **(**uintptr)(__ccgo_up(v2 + uintptr(v3)*8)) = new1 +} + +var _env_alloced uintptr + +var _env_alloced_n Tsize_t + +func Xsetenv(tls *TLS, var1 uintptr, value uintptr, overwrite int32) (r int32) { + if __ccgo_strace { + trc("tls=%v var1=%v value=%v overwrite=%v, (%v:)", tls, var1, value, overwrite, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l1, l2, v1 Tsize_t + var s uintptr + var v2 bool + _, _, _, _, _ = l1, l2, s, v1, v2 + if v2 = !(var1 != 0); !v2 { + v1 = Uint64FromInt64(int64(X__strchrnul(tls, var1, int32('='))) - int64(var1)) + l1 = v1 + } + if v2 || !(v1 != 0) || **(**uint8)(__ccgo_up(var1 + uintptr(l1))) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + if !(overwrite != 0) && Xgetenv(tls, var1) != 0 { + return 0 + } + l2 = _strlen(tls, value) + s = Xmalloc(tls, l1+l2+uint64(2)) + if !(s != 0) { + return -int32(1) + } + Xmemcpy(tls, s, var1, l1) + **(**uint8)(__ccgo_up(s + uintptr(l1))) = uint8('=') + Xmemcpy(tls, s+uintptr(l1)+uintptr(1), value, l2+uint64(1)) + return X__putenv(tls, s, l1, s) +} + +func _dummy2(tls *TLS, old uintptr, new1 uintptr) { +} + +func Xunsetenv(tls *TLS, name uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + var e, eo, v2 uintptr + var l Tsize_t + _, _, _, _ = e, eo, l, v2 + l = Uint64FromInt64(int64(X__strchrnul(tls, name, int32('='))) - int64(name)) + if !(l != 0) || **(**uint8)(__ccgo_up(name + uintptr(l))) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + if Xenviron != 0 { + e = Xenviron + eo = e + for { + if !(**(**uintptr)(__ccgo_up(e)) != 0) { + break + } + if !(Xstrncmp(tls, name, **(**uintptr)(__ccgo_up(e)), l) != 0) && Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(e)) + uintptr(l)))) == int32('=') { + X__env_rm_add(tls, **(**uintptr)(__ccgo_up(e)), uintptr(0)) + } else { + if eo != e { + v2 = eo + eo += 8 + **(**uintptr)(__ccgo_up(v2)) = **(**uintptr)(__ccgo_up(e)) + } else { + eo += 8 + } + } + goto _1 + _1: + ; + e += 8 + } + if eo != e { + **(**uintptr)(__ccgo_up(eo)) = uintptr(0) + } + } + return 0 +} + +/* mips has one error code outside of the 8-bit range due to a + * historical typo, so we just remap it. */ + +type Terrmsgstr_t = struct { + Fstr0 [21]uint8 + FstrEILSEQ [22]uint8 + FstrEDOM [13]uint8 + FstrERANGE [25]uint8 + FstrENOTTY [10]uint8 + FstrEACCES [18]uint8 + FstrEPERM [24]uint8 + FstrENOENT [26]uint8 + FstrESRCH [16]uint8 + FstrEEXIST [12]uint8 + FstrEOVERFLOW [30]uint8 + FstrENOSPC [24]uint8 + FstrENOMEM [14]uint8 + FstrEBUSY [14]uint8 + FstrEINTR [24]uint8 + FstrEAGAIN [33]uint8 + FstrESPIPE [13]uint8 + FstrEXDEV [18]uint8 + FstrEROFS [22]uint8 + FstrENOTEMPTY [20]uint8 + FstrECONNRESET [25]uint8 + FstrETIMEDOUT [20]uint8 + FstrECONNREFUSED [19]uint8 + FstrEHOSTDOWN [13]uint8 + FstrEHOSTUNREACH [20]uint8 + FstrEADDRINUSE [15]uint8 + FstrEPIPE [12]uint8 + FstrEIO [10]uint8 + FstrENXIO [26]uint8 + FstrENOTBLK [22]uint8 + FstrENODEV [15]uint8 + FstrENOTDIR [16]uint8 + FstrEISDIR [15]uint8 + FstrETXTBSY [15]uint8 + FstrENOEXEC [18]uint8 + FstrEINVAL [17]uint8 + FstrE2BIG [23]uint8 + FstrELOOP [19]uint8 + FstrENAMETOOLONG [18]uint8 + FstrENFILE [30]uint8 + FstrEMFILE [30]uint8 + FstrEBADF [20]uint8 + FstrECHILD [17]uint8 + FstrEFAULT [12]uint8 + FstrEFBIG [15]uint8 + FstrEMLINK [15]uint8 + FstrENOLCK [19]uint8 + FstrEDEADLK [30]uint8 + FstrENOTRECOVERABLE [22]uint8 + FstrEOWNERDEAD [20]uint8 + FstrECANCELED [19]uint8 + FstrENOSYS [25]uint8 + FstrENOMSG [27]uint8 + FstrEIDRM [19]uint8 + FstrENOSTR [20]uint8 + FstrENODATA [18]uint8 + FstrETIME [15]uint8 + FstrENOSR [25]uint8 + FstrENOLINK [22]uint8 + FstrEPROTO [15]uint8 + FstrEBADMSG [12]uint8 + FstrEBADFD [29]uint8 + FstrENOTSOCK [13]uint8 + FstrEDESTADDRREQ [29]uint8 + FstrEMSGSIZE [18]uint8 + FstrEPROTOTYPE [31]uint8 + FstrENOPROTOOPT [23]uint8 + FstrEPROTONOSUPPORT [23]uint8 + FstrESOCKTNOSUPPORT [26]uint8 + FstrENOTSUP [14]uint8 + FstrEPFNOSUPPORT [30]uint8 + FstrEAFNOSUPPORT [41]uint8 + FstrEADDRNOTAVAIL [22]uint8 + FstrENETDOWN [16]uint8 + FstrENETUNREACH [20]uint8 + FstrENETRESET [28]uint8 + FstrECONNABORTED [19]uint8 + FstrENOBUFS [26]uint8 + FstrEISCONN [20]uint8 + FstrENOTCONN [21]uint8 + FstrESHUTDOWN [34]uint8 + FstrEALREADY [30]uint8 + FstrEINPROGRESS [22]uint8 + FstrESTALE [18]uint8 + FstrEREMOTEIO [17]uint8 + FstrEDQUOT [15]uint8 + FstrENOMEDIUM [16]uint8 + FstrEMEDIUMTYPE [18]uint8 + FstrEMULTIHOP [19]uint8 + FstrENOKEY [27]uint8 + FstrEKEYEXPIRED [16]uint8 + FstrEKEYREVOKED [21]uint8 + FstrEKEYREJECTED [28]uint8 +} + +/* mips has one error code outside of the 8-bit range due to a + * historical typo, so we just remap it. */ + +var _errmsgstr = Terrmsgstr_t{ + Fstr0: [21]uint8{'N', 'o', ' ', 'e', 'r', 'r', 'o', 'r', ' ', 'i', 'n', 'f', 'o', 'r', 'm', 'a', 't', 'i', 'o', 'n'}, + FstrEILSEQ: [22]uint8{'I', 'l', 'l', 'e', 'g', 'a', 'l', ' ', 'b', 'y', 't', 'e', ' ', 's', 'e', 'q', 'u', 'e', 'n', 'c', 'e'}, + FstrEDOM: [13]uint8{'D', 'o', 'm', 'a', 'i', 'n', ' ', 'e', 'r', 'r', 'o', 'r'}, + FstrERANGE: [25]uint8{'R', 'e', 's', 'u', 'l', 't', ' ', 'n', 'o', 't', ' ', 'r', 'e', 'p', 'r', 'e', 's', 'e', 'n', 't', 'a', 'b', 'l', 'e'}, + FstrENOTTY: [10]uint8{'N', 'o', 't', ' ', 'a', ' ', 't', 't', 'y'}, + FstrEACCES: [18]uint8{'P', 'e', 'r', 'm', 'i', 's', 's', 'i', 'o', 'n', ' ', 'd', 'e', 'n', 'i', 'e', 'd'}, + FstrEPERM: [24]uint8{'O', 'p', 'e', 'r', 'a', 't', 'i', 'o', 'n', ' ', 'n', 'o', 't', ' ', 'p', 'e', 'r', 'm', 'i', 't', 't', 'e', 'd'}, + FstrENOENT: [26]uint8{'N', 'o', ' ', 's', 'u', 'c', 'h', ' ', 'f', 'i', 'l', 'e', ' ', 'o', 'r', ' ', 'd', 'i', 'r', 'e', 'c', 't', 'o', 'r', 'y'}, + FstrESRCH: [16]uint8{'N', 'o', ' ', 's', 'u', 'c', 'h', ' ', 'p', 'r', 'o', 'c', 'e', 's', 's'}, + FstrEEXIST: [12]uint8{'F', 'i', 'l', 'e', ' ', 'e', 'x', 'i', 's', 't', 's'}, + FstrEOVERFLOW: [30]uint8{'V', 'a', 'l', 'u', 'e', ' ', 't', 'o', 'o', ' ', 'l', 'a', 'r', 'g', 'e', ' ', 'f', 'o', 'r', ' ', 'd', 'a', 't', 'a', ' ', 't', 'y', 'p', 'e'}, + FstrENOSPC: [24]uint8{'N', 'o', ' ', 's', 'p', 'a', 'c', 'e', ' ', 'l', 'e', 'f', 't', ' ', 'o', 'n', ' ', 'd', 'e', 'v', 'i', 'c', 'e'}, + FstrENOMEM: [14]uint8{'O', 'u', 't', ' ', 'o', 'f', ' ', 'm', 'e', 'm', 'o', 'r', 'y'}, + FstrEBUSY: [14]uint8{'R', 'e', 's', 'o', 'u', 'r', 'c', 'e', ' ', 'b', 'u', 's', 'y'}, + FstrEINTR: [24]uint8{'I', 'n', 't', 'e', 'r', 'r', 'u', 'p', 't', 'e', 'd', ' ', 's', 'y', 's', 't', 'e', 'm', ' ', 'c', 'a', 'l', 'l'}, + FstrEAGAIN: [33]uint8{'R', 'e', 's', 'o', 'u', 'r', 'c', 'e', ' ', 't', 'e', 'm', 'p', 'o', 'r', 'a', 'r', 'i', 'l', 'y', ' ', 'u', 'n', 'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e'}, + FstrESPIPE: [13]uint8{'I', 'n', 'v', 'a', 'l', 'i', 'd', ' ', 's', 'e', 'e', 'k'}, + FstrEXDEV: [18]uint8{'C', 'r', 'o', 's', 's', '-', 'd', 'e', 'v', 'i', 'c', 'e', ' ', 'l', 'i', 'n', 'k'}, + FstrEROFS: [22]uint8{'R', 'e', 'a', 'd', '-', 'o', 'n', 'l', 'y', ' ', 'f', 'i', 'l', 'e', ' ', 's', 'y', 's', 't', 'e', 'm'}, + FstrENOTEMPTY: [20]uint8{'D', 'i', 'r', 'e', 'c', 't', 'o', 'r', 'y', ' ', 'n', 'o', 't', ' ', 'e', 'm', 'p', 't', 'y'}, + FstrECONNRESET: [25]uint8{'C', 'o', 'n', 'n', 'e', 'c', 't', 'i', 'o', 'n', ' ', 'r', 'e', 's', 'e', 't', ' ', 'b', 'y', ' ', 'p', 'e', 'e', 'r'}, + FstrETIMEDOUT: [20]uint8{'O', 'p', 'e', 'r', 'a', 't', 'i', 'o', 'n', ' ', 't', 'i', 'm', 'e', 'd', ' ', 'o', 'u', 't'}, + FstrECONNREFUSED: [19]uint8{'C', 'o', 'n', 'n', 'e', 'c', 't', 'i', 'o', 'n', ' ', 'r', 'e', 'f', 'u', 's', 'e', 'd'}, + FstrEHOSTDOWN: [13]uint8{'H', 'o', 's', 't', ' ', 'i', 's', ' ', 'd', 'o', 'w', 'n'}, + FstrEHOSTUNREACH: [20]uint8{'H', 'o', 's', 't', ' ', 'i', 's', ' ', 'u', 'n', 'r', 'e', 'a', 'c', 'h', 'a', 'b', 'l', 'e'}, + FstrEADDRINUSE: [15]uint8{'A', 'd', 'd', 'r', 'e', 's', 's', ' ', 'i', 'n', ' ', 'u', 's', 'e'}, + FstrEPIPE: [12]uint8{'B', 'r', 'o', 'k', 'e', 'n', ' ', 'p', 'i', 'p', 'e'}, + FstrEIO: [10]uint8{'I', '/', 'O', ' ', 'e', 'r', 'r', 'o', 'r'}, + FstrENXIO: [26]uint8{'N', 'o', ' ', 's', 'u', 'c', 'h', ' ', 'd', 'e', 'v', 'i', 'c', 'e', ' ', 'o', 'r', ' ', 'a', 'd', 'd', 'r', 'e', 's', 's'}, + FstrENOTBLK: [22]uint8{'B', 'l', 'o', 'c', 'k', ' ', 'd', 'e', 'v', 'i', 'c', 'e', ' ', 'r', 'e', 'q', 'u', 'i', 'r', 'e', 'd'}, + FstrENODEV: [15]uint8{'N', 'o', ' ', 's', 'u', 'c', 'h', ' ', 'd', 'e', 'v', 'i', 'c', 'e'}, + FstrENOTDIR: [16]uint8{'N', 'o', 't', ' ', 'a', ' ', 'd', 'i', 'r', 'e', 'c', 't', 'o', 'r', 'y'}, + FstrEISDIR: [15]uint8{'I', 's', ' ', 'a', ' ', 'd', 'i', 'r', 'e', 'c', 't', 'o', 'r', 'y'}, + FstrETXTBSY: [15]uint8{'T', 'e', 'x', 't', ' ', 'f', 'i', 'l', 'e', ' ', 'b', 'u', 's', 'y'}, + FstrENOEXEC: [18]uint8{'E', 'x', 'e', 'c', ' ', 'f', 'o', 'r', 'm', 'a', 't', ' ', 'e', 'r', 'r', 'o', 'r'}, + FstrEINVAL: [17]uint8{'I', 'n', 'v', 'a', 'l', 'i', 'd', ' ', 'a', 'r', 'g', 'u', 'm', 'e', 'n', 't'}, + FstrE2BIG: [23]uint8{'A', 'r', 'g', 'u', 'm', 'e', 'n', 't', ' ', 'l', 'i', 's', 't', ' ', 't', 'o', 'o', ' ', 'l', 'o', 'n', 'g'}, + FstrELOOP: [19]uint8{'S', 'y', 'm', 'b', 'o', 'l', 'i', 'c', ' ', 'l', 'i', 'n', 'k', ' ', 'l', 'o', 'o', 'p'}, + FstrENAMETOOLONG: [18]uint8{'F', 'i', 'l', 'e', 'n', 'a', 'm', 'e', ' ', 't', 'o', 'o', ' ', 'l', 'o', 'n', 'g'}, + FstrENFILE: [30]uint8{'T', 'o', 'o', ' ', 'm', 'a', 'n', 'y', ' ', 'o', 'p', 'e', 'n', ' ', 'f', 'i', 'l', 'e', 's', ' ', 'i', 'n', ' ', 's', 'y', 's', 't', 'e', 'm'}, + FstrEMFILE: [30]uint8{'N', 'o', ' ', 'f', 'i', 'l', 'e', ' ', 'd', 'e', 's', 'c', 'r', 'i', 'p', 't', 'o', 'r', 's', ' ', 'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e'}, + FstrEBADF: [20]uint8{'B', 'a', 'd', ' ', 'f', 'i', 'l', 'e', ' ', 'd', 'e', 's', 'c', 'r', 'i', 'p', 't', 'o', 'r'}, + FstrECHILD: [17]uint8{'N', 'o', ' ', 'c', 'h', 'i', 'l', 'd', ' ', 'p', 'r', 'o', 'c', 'e', 's', 's'}, + FstrEFAULT: [12]uint8{'B', 'a', 'd', ' ', 'a', 'd', 'd', 'r', 'e', 's', 's'}, + FstrEFBIG: [15]uint8{'F', 'i', 'l', 'e', ' ', 't', 'o', 'o', ' ', 'l', 'a', 'r', 'g', 'e'}, + FstrEMLINK: [15]uint8{'T', 'o', 'o', ' ', 'm', 'a', 'n', 'y', ' ', 'l', 'i', 'n', 'k', 's'}, + FstrENOLCK: [19]uint8{'N', 'o', ' ', 'l', 'o', 'c', 'k', 's', ' ', 'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e'}, + FstrEDEADLK: [30]uint8{'R', 'e', 's', 'o', 'u', 'r', 'c', 'e', ' ', 'd', 'e', 'a', 'd', 'l', 'o', 'c', 'k', ' ', 'w', 'o', 'u', 'l', 'd', ' ', 'o', 'c', 'c', 'u', 'r'}, + FstrENOTRECOVERABLE: [22]uint8{'S', 't', 'a', 't', 'e', ' ', 'n', 'o', 't', ' ', 'r', 'e', 'c', 'o', 'v', 'e', 'r', 'a', 'b', 'l', 'e'}, + FstrEOWNERDEAD: [20]uint8{'P', 'r', 'e', 'v', 'i', 'o', 'u', 's', ' ', 'o', 'w', 'n', 'e', 'r', ' ', 'd', 'i', 'e', 'd'}, + FstrECANCELED: [19]uint8{'O', 'p', 'e', 'r', 'a', 't', 'i', 'o', 'n', ' ', 'c', 'a', 'n', 'c', 'e', 'l', 'e', 'd'}, + FstrENOSYS: [25]uint8{'F', 'u', 'n', 'c', 't', 'i', 'o', 'n', ' ', 'n', 'o', 't', ' ', 'i', 'm', 'p', 'l', 'e', 'm', 'e', 'n', 't', 'e', 'd'}, + FstrENOMSG: [27]uint8{'N', 'o', ' ', 'm', 'e', 's', 's', 'a', 'g', 'e', ' ', 'o', 'f', ' ', 'd', 'e', 's', 'i', 'r', 'e', 'd', ' ', 't', 'y', 'p', 'e'}, + FstrEIDRM: [19]uint8{'I', 'd', 'e', 'n', 't', 'i', 'f', 'i', 'e', 'r', ' ', 'r', 'e', 'm', 'o', 'v', 'e', 'd'}, + FstrENOSTR: [20]uint8{'D', 'e', 'v', 'i', 'c', 'e', ' ', 'n', 'o', 't', ' ', 'a', ' ', 's', 't', 'r', 'e', 'a', 'm'}, + FstrENODATA: [18]uint8{'N', 'o', ' ', 'd', 'a', 't', 'a', ' ', 'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e'}, + FstrETIME: [15]uint8{'D', 'e', 'v', 'i', 'c', 'e', ' ', 't', 'i', 'm', 'e', 'o', 'u', 't'}, + FstrENOSR: [25]uint8{'O', 'u', 't', ' ', 'o', 'f', ' ', 's', 't', 'r', 'e', 'a', 'm', 's', ' ', 'r', 'e', 's', 'o', 'u', 'r', 'c', 'e', 's'}, + FstrENOLINK: [22]uint8{'L', 'i', 'n', 'k', ' ', 'h', 'a', 's', ' ', 'b', 'e', 'e', 'n', ' ', 's', 'e', 'v', 'e', 'r', 'e', 'd'}, + FstrEPROTO: [15]uint8{'P', 'r', 'o', 't', 'o', 'c', 'o', 'l', ' ', 'e', 'r', 'r', 'o', 'r'}, + FstrEBADMSG: [12]uint8{'B', 'a', 'd', ' ', 'm', 'e', 's', 's', 'a', 'g', 'e'}, + FstrEBADFD: [29]uint8{'F', 'i', 'l', 'e', ' ', 'd', 'e', 's', 'c', 'r', 'i', 'p', 't', 'o', 'r', ' ', 'i', 'n', ' ', 'b', 'a', 'd', ' ', 's', 't', 'a', 't', 'e'}, + FstrENOTSOCK: [13]uint8{'N', 'o', 't', ' ', 'a', ' ', 's', 'o', 'c', 'k', 'e', 't'}, + FstrEDESTADDRREQ: [29]uint8{'D', 'e', 's', 't', 'i', 'n', 'a', 't', 'i', 'o', 'n', ' ', 'a', 'd', 'd', 'r', 'e', 's', 's', ' ', 'r', 'e', 'q', 'u', 'i', 'r', 'e', 'd'}, + FstrEMSGSIZE: [18]uint8{'M', 'e', 's', 's', 'a', 'g', 'e', ' ', 't', 'o', 'o', ' ', 'l', 'a', 'r', 'g', 'e'}, + FstrEPROTOTYPE: [31]uint8{'P', 'r', 'o', 't', 'o', 'c', 'o', 'l', ' ', 'w', 'r', 'o', 'n', 'g', ' ', 't', 'y', 'p', 'e', ' ', 'f', 'o', 'r', ' ', 's', 'o', 'c', 'k', 'e', 't'}, + FstrENOPROTOOPT: [23]uint8{'P', 'r', 'o', 't', 'o', 'c', 'o', 'l', ' ', 'n', 'o', 't', ' ', 'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e'}, + FstrEPROTONOSUPPORT: [23]uint8{'P', 'r', 'o', 't', 'o', 'c', 'o', 'l', ' ', 'n', 'o', 't', ' ', 's', 'u', 'p', 'p', 'o', 'r', 't', 'e', 'd'}, + FstrESOCKTNOSUPPORT: [26]uint8{'S', 'o', 'c', 'k', 'e', 't', ' ', 't', 'y', 'p', 'e', ' ', 'n', 'o', 't', ' ', 's', 'u', 'p', 'p', 'o', 'r', 't', 'e', 'd'}, + FstrENOTSUP: [14]uint8{'N', 'o', 't', ' ', 's', 'u', 'p', 'p', 'o', 'r', 't', 'e', 'd'}, + FstrEPFNOSUPPORT: [30]uint8{'P', 'r', 'o', 't', 'o', 'c', 'o', 'l', ' ', 'f', 'a', 'm', 'i', 'l', 'y', ' ', 'n', 'o', 't', ' ', 's', 'u', 'p', 'p', 'o', 'r', 't', 'e', 'd'}, + FstrEAFNOSUPPORT: [41]uint8{'A', 'd', 'd', 'r', 'e', 's', 's', ' ', 'f', 'a', 'm', 'i', 'l', 'y', ' ', 'n', 'o', 't', ' ', 's', 'u', 'p', 'p', 'o', 'r', 't', 'e', 'd', ' ', 'b', 'y', ' ', 'p', 'r', 'o', 't', 'o', 'c', 'o', 'l'}, + FstrEADDRNOTAVAIL: [22]uint8{'A', 'd', 'd', 'r', 'e', 's', 's', ' ', 'n', 'o', 't', ' ', 'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e'}, + FstrENETDOWN: [16]uint8{'N', 'e', 't', 'w', 'o', 'r', 'k', ' ', 'i', 's', ' ', 'd', 'o', 'w', 'n'}, + FstrENETUNREACH: [20]uint8{'N', 'e', 't', 'w', 'o', 'r', 'k', ' ', 'u', 'n', 'r', 'e', 'a', 'c', 'h', 'a', 'b', 'l', 'e'}, + FstrENETRESET: [28]uint8{'C', 'o', 'n', 'n', 'e', 'c', 't', 'i', 'o', 'n', ' ', 'r', 'e', 's', 'e', 't', ' ', 'b', 'y', ' ', 'n', 'e', 't', 'w', 'o', 'r', 'k'}, + FstrECONNABORTED: [19]uint8{'C', 'o', 'n', 'n', 'e', 'c', 't', 'i', 'o', 'n', ' ', 'a', 'b', 'o', 'r', 't', 'e', 'd'}, + FstrENOBUFS: [26]uint8{'N', 'o', ' ', 'b', 'u', 'f', 'f', 'e', 'r', ' ', 's', 'p', 'a', 'c', 'e', ' ', 'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e'}, + FstrEISCONN: [20]uint8{'S', 'o', 'c', 'k', 'e', 't', ' ', 'i', 's', ' ', 'c', 'o', 'n', 'n', 'e', 'c', 't', 'e', 'd'}, + FstrENOTCONN: [21]uint8{'S', 'o', 'c', 'k', 'e', 't', ' ', 'n', 'o', 't', ' ', 'c', 'o', 'n', 'n', 'e', 'c', 't', 'e', 'd'}, + FstrESHUTDOWN: [34]uint8{'C', 'a', 'n', 'n', 'o', 't', ' ', 's', 'e', 'n', 'd', ' ', 'a', 'f', 't', 'e', 'r', ' ', 's', 'o', 'c', 'k', 'e', 't', ' ', 's', 'h', 'u', 't', 'd', 'o', 'w', 'n'}, + FstrEALREADY: [30]uint8{'O', 'p', 'e', 'r', 'a', 't', 'i', 'o', 'n', ' ', 'a', 'l', 'r', 'e', 'a', 'd', 'y', ' ', 'i', 'n', ' ', 'p', 'r', 'o', 'g', 'r', 'e', 's', 's'}, + FstrEINPROGRESS: [22]uint8{'O', 'p', 'e', 'r', 'a', 't', 'i', 'o', 'n', ' ', 'i', 'n', ' ', 'p', 'r', 'o', 'g', 'r', 'e', 's', 's'}, + FstrESTALE: [18]uint8{'S', 't', 'a', 'l', 'e', ' ', 'f', 'i', 'l', 'e', ' ', 'h', 'a', 'n', 'd', 'l', 'e'}, + FstrEREMOTEIO: [17]uint8{'R', 'e', 'm', 'o', 't', 'e', ' ', 'I', '/', 'O', ' ', 'e', 'r', 'r', 'o', 'r'}, + FstrEDQUOT: [15]uint8{'Q', 'u', 'o', 't', 'a', ' ', 'e', 'x', 'c', 'e', 'e', 'd', 'e', 'd'}, + FstrENOMEDIUM: [16]uint8{'N', 'o', ' ', 'm', 'e', 'd', 'i', 'u', 'm', ' ', 'f', 'o', 'u', 'n', 'd'}, + FstrEMEDIUMTYPE: [18]uint8{'W', 'r', 'o', 'n', 'g', ' ', 'm', 'e', 'd', 'i', 'u', 'm', ' ', 't', 'y', 'p', 'e'}, + FstrEMULTIHOP: [19]uint8{'M', 'u', 'l', 't', 'i', 'h', 'o', 'p', ' ', 'a', 't', 't', 'e', 'm', 'p', 't', 'e', 'd'}, + FstrENOKEY: [27]uint8{'R', 'e', 'q', 'u', 'i', 'r', 'e', 'd', ' ', 'k', 'e', 'y', ' ', 'n', 'o', 't', ' ', 'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e'}, + FstrEKEYEXPIRED: [16]uint8{'K', 'e', 'y', ' ', 'h', 'a', 's', ' ', 'e', 'x', 'p', 'i', 'r', 'e', 'd'}, + FstrEKEYREVOKED: [21]uint8{'K', 'e', 'y', ' ', 'h', 'a', 's', ' ', 'b', 'e', 'e', 'n', ' ', 'r', 'e', 'v', 'o', 'k', 'e', 'd'}, + FstrEKEYREJECTED: [28]uint8{'K', 'e', 'y', ' ', 'w', 'a', 's', ' ', 'r', 'e', 'j', 'e', 'c', 't', 'e', 'd', ' ', 'b', 'y', ' ', 's', 'e', 'r', 'v', 'i', 'c', 'e'}, +} + +var _errmsgidx = [132]uint16{ + 1: uint16(uint64(UintptrFromInt32(0) + 109)), + 2: uint16(uint64(UintptrFromInt32(0) + 133)), + 3: uint16(uint64(UintptrFromInt32(0) + 159)), + 4: uint16(uint64(UintptrFromInt32(0) + 269)), + 5: uint16(uint64(UintptrFromInt32(0) + 523)), + 6: uint16(uint64(UintptrFromInt32(0) + 533)), + 7: uint16(uint64(UintptrFromInt32(0) + 677)), + 8: uint16(uint64(UintptrFromInt32(0) + 642)), + 9: uint16(uint64(UintptrFromInt32(0) + 797)), + 10: uint16(uint64(UintptrFromInt32(0) + 817)), + 11: uint16(uint64(UintptrFromInt32(0) + 293)), + 12: uint16(uint64(UintptrFromInt32(0) + 241)), + 13: uint16(uint64(UintptrFromInt32(0) + 91)), + 14: uint16(uint64(UintptrFromInt32(0) + 834)), + 15: uint16(uint64(UintptrFromInt32(0) + 559)), + 16: uint16(uint64(UintptrFromInt32(0) + 255)), + 17: uint16(uint64(UintptrFromInt32(0) + 175)), + 18: uint16(uint64(UintptrFromInt32(0) + 339)), + 19: uint16(uint64(UintptrFromInt32(0) + 581)), + 20: uint16(uint64(UintptrFromInt32(0) + 596)), + 21: uint16(uint64(UintptrFromInt32(0) + 612)), + 22: uint16(uint64(UintptrFromInt32(0) + 660)), + 23: uint16(uint64(UintptrFromInt32(0) + 737)), + 24: uint16(uint64(UintptrFromInt32(0) + 767)), + 25: uint16(uint64(UintptrFromInt32(0) + 81)), + 26: uint16(uint64(UintptrFromInt32(0) + 627)), + 27: uint16(uint64(UintptrFromInt32(0) + 846)), + 28: uint16(uint64(UintptrFromInt32(0) + 217)), + 29: uint16(uint64(UintptrFromInt32(0) + 326)), + 30: uint16(uint64(UintptrFromInt32(0) + 357)), + 31: uint16(uint64(UintptrFromInt32(0) + 861)), + 32: uint16(uint64(UintptrFromInt32(0) + 511)), + 33: uint16(uint64(UintptrFromInt32(0) + 43)), + 34: uint16(uint64(UintptrFromInt32(0) + 56)), + 35: uint16(uint64(UintptrFromInt32(0) + 895)), + 36: uint16(uint64(UintptrFromInt32(0) + 719)), + 37: uint16(uint64(UintptrFromInt32(0) + 876)), + 38: uint16(uint64(UintptrFromInt32(0) + 986)), + 39: uint16(uint64(UintptrFromInt32(0) + 379)), + 40: uint16(uint64(UintptrFromInt32(0) + 700)), + 42: uint16(uint64(UintptrFromInt32(0) + 1011)), + 43: uint16(uint64(UintptrFromInt32(0) + 1038)), + 60: uint16(uint64(UintptrFromInt32(0) + 1057)), + 61: uint16(uint64(UintptrFromInt32(0) + 1077)), + 62: uint16(uint64(UintptrFromInt32(0) + 1095)), + 63: uint16(uint64(UintptrFromInt32(0) + 1110)), + 67: uint16(uint64(UintptrFromInt32(0) + 1135)), + 71: uint16(uint64(UintptrFromInt32(0) + 1157)), + 72: uint16(uint64(UintptrFromInt32(0) + 1803)), + 74: uint16(uint64(UintptrFromInt32(0) + 1172)), + 75: uint16(uint64(UintptrFromInt32(0) + 187)), + 77: uint16(uint64(UintptrFromInt32(0) + 1184)), + 84: uint16(uint64(UintptrFromInt32(0) + 21)), + 88: uint16(uint64(UintptrFromInt32(0) + 1213)), + 89: uint16(uint64(UintptrFromInt32(0) + 1226)), + 90: uint16(uint64(UintptrFromInt32(0) + 1255)), + 91: uint16(uint64(UintptrFromInt32(0) + 1273)), + 92: uint16(uint64(UintptrFromInt32(0) + 1304)), + 93: uint16(uint64(UintptrFromInt32(0) + 1327)), + 94: uint16(uint64(UintptrFromInt32(0) + 1350)), + 95: uint16(uint64(UintptrFromInt32(0) + 1376)), + 96: uint16(uint64(UintptrFromInt32(0) + 1390)), + 97: uint16(uint64(UintptrFromInt32(0) + 1420)), + 98: uint16(uint64(UintptrFromInt32(0) + 496)), + 99: uint16(uint64(UintptrFromInt32(0) + 1461)), + 100: uint16(uint64(UintptrFromInt32(0) + 1483)), + 101: uint16(uint64(UintptrFromInt32(0) + 1499)), + 102: uint16(uint64(UintptrFromInt32(0) + 1519)), + 103: uint16(uint64(UintptrFromInt32(0) + 1547)), + 104: uint16(uint64(UintptrFromInt32(0) + 399)), + 105: uint16(uint64(UintptrFromInt32(0) + 1566)), + 106: uint16(uint64(UintptrFromInt32(0) + 1592)), + 107: uint16(uint64(UintptrFromInt32(0) + 1612)), + 108: uint16(uint64(UintptrFromInt32(0) + 1633)), + 110: uint16(uint64(UintptrFromInt32(0) + 424)), + 111: uint16(uint64(UintptrFromInt32(0) + 444)), + 112: uint16(uint64(UintptrFromInt32(0) + 463)), + 113: uint16(uint64(UintptrFromInt32(0) + 476)), + 114: uint16(uint64(UintptrFromInt32(0) + 1667)), + 115: uint16(uint64(UintptrFromInt32(0) + 1697)), + 116: uint16(uint64(UintptrFromInt32(0) + 1719)), + 121: uint16(uint64(UintptrFromInt32(0) + 1737)), + 122: uint16(uint64(UintptrFromInt32(0) + 1754)), + 123: uint16(uint64(UintptrFromInt32(0) + 1769)), + 124: uint16(uint64(UintptrFromInt32(0) + 1785)), + 125: uint16(uint64(UintptrFromInt32(0) + 967)), + 126: uint16(uint64(UintptrFromInt32(0) + 1822)), + 127: uint16(uint64(UintptrFromInt32(0) + 1849)), + 128: uint16(uint64(UintptrFromInt32(0) + 1865)), + 129: uint16(uint64(UintptrFromInt32(0) + 1886)), + 130: uint16(uint64(UintptrFromInt32(0) + 947)), + 131: uint16(uint64(UintptrFromInt32(0) + 925)), +} + +func X__strerror_l(tls *TLS, e int32, loc Tlocale_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v e=%v loc=%v, (%v:)", tls, e, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + var s uintptr + _ = s + if Uint64FromInt32(e) >= Uint64FromInt64(264)/Uint64FromInt64(2) { + e = 0 + } + s = uintptr(unsafe.Pointer(&_errmsgstr)) + uintptr(_errmsgidx[e]) + return X__lctrans(tls, s, **(**uintptr)(__ccgo_up(loc + 5*8))) +} + +func Xstrerror(tls *TLS, e int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v e=%v, (%v:)", tls, e, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__strerror_l(tls, e, (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale) +} + +func Xstrerror_l(tls *TLS, e int32, loc Tlocale_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v e=%v loc=%v, (%v:)", tls, e, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__strerror_l(tls, e, loc) +} + +func X_Exit(tls *TLS, ec int32) { + if __ccgo_strace { + trc("tls=%v ec=%v, (%v:)", tls, ec, origin(2)) + } + X__syscall1(tls, int64(SYS_exit_group), int64(ec)) + for { + X__syscall1(tls, int64(SYS_exit), int64(ec)) + goto _1 + _1: + } +} + +func X__assert_fail(tls *TLS, expr uintptr, file uintptr, line int32, func1 uintptr) { + if __ccgo_strace { + trc("tls=%v expr=%v file=%v line=%v func1=%v, (%v:)", tls, expr, file, line, func1, origin(2)) + } + bp := tls.Alloc(48) + defer tls.Free(48) + Xfprintf(tls, uintptr(unsafe.Pointer(&X__stderr_FILE)), __ccgo_ts+278, VaList(bp+8, expr, file, func1, line)) + Xabort(tls) +} + +const COUNT = 32 + +var _funcs [32]uintptr +var _count int32 +var _lock [1]int32 + +func X__funcs_on_quick_exit(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + var func1 uintptr + var v1 int32 + _, _ = func1, v1 + ___lock(tls, uintptr(unsafe.Pointer(&_lock))) + for _count > 0 { + _count = _count - 1 + v1 = _count + func1 = _funcs[v1] + ___unlock(tls, uintptr(unsafe.Pointer(&_lock))) + (*(*func(*TLS))(unsafe.Pointer(&struct{ uintptr }{func1})))(tls) + ___lock(tls, uintptr(unsafe.Pointer(&_lock))) + } +} + +type t__ccgo_fp__Xat_quick_exit_0 = func(*TLS) + +func Xat_quick_exit(tls *TLS, __ccgo_fp_func uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v __ccgo_fp_func=%v, (%v:)", tls, __ccgo_fp_func, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v1 int32 + _, _ = r, v1 + r = 0 + ___lock(tls, uintptr(unsafe.Pointer(&_lock))) + if _count == int32(32) { + r = -int32(1) + } else { + v1 = _count + _count = _count + 1 + _funcs[v1] = __ccgo_fp_func + } + ___unlock(tls, uintptr(unsafe.Pointer(&_lock))) + return r +} + +func _dummy3(tls *TLS) { +} + +func Xquick_exit(tls *TLS, code int32) { + if __ccgo_strace { + trc("tls=%v code=%v, (%v:)", tls, code, origin(2)) + } + X__funcs_on_quick_exit(tls) + X_Exit(tls, code) +} + +func Xcreat(tls *TLS, filename uintptr, mode Tmode_t) (r int32) { + if __ccgo_strace { + trc("tls=%v filename=%v mode=%v, (%v:)", tls, filename, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + return Xopen(tls, filename, Int32FromInt32(O_CREAT)|Int32FromInt32(O_WRONLY)|Int32FromInt32(O_TRUNC), VaList(bp+8, mode)) +} + +func Xfcntl(tls *TLS, fd int32, cmd int32, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v cmd=%v va=%v, (%v:)", tls, fd, cmd, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ap Tva_list + var arg uint64 + var ret, ret1, v1 int32 + var _ /* ex at bp+0 */ Tf_owner_ex + _, _, _, _, _ = ap, arg, ret, ret1, v1 + ap = va + arg = VaUint64(&ap) + _ = ap + if cmd == int32(F_SETFL) { + arg = arg | uint64(O_LARGEFILE) + } + if cmd == int32(F_SETLKW) { + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_fcntl), int64(fd), int64(cmd), int64(uintptr(arg)), 0, 0, 0)))) + } + if cmd == int32(F_GETOWN) { + ret = int32(X__syscall3(tls, int64(SYS_fcntl), int64(fd), int64(Int32FromInt32(F_GETOWN_EX)), int64(bp))) + if ret == -int32(EINVAL) { + return int32(X__syscall3(tls, int64(SYS_fcntl), int64(fd), int64(cmd), int64(uintptr(arg)))) + } + if ret != 0 { + return int32(X__syscall_ret(tls, Uint64FromInt32(ret))) + } + if (**(**Tf_owner_ex)(__ccgo_up(bp))).Ftype1 == int32(F_OWNER_PGRP) { + v1 = -(**(**Tf_owner_ex)(__ccgo_up(bp))).Fpid + } else { + v1 = (**(**Tf_owner_ex)(__ccgo_up(bp))).Fpid + } + return v1 + } + if cmd == int32(F_DUPFD_CLOEXEC) { + ret1 = int32(X__syscall3(tls, int64(SYS_fcntl), int64(fd), int64(Int32FromInt32(F_DUPFD_CLOEXEC)), Int64FromUint64(arg))) + if ret1 != -int32(EINVAL) { + if ret1 >= 0 { + X__syscall3(tls, int64(SYS_fcntl), int64(ret1), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + } + return int32(X__syscall_ret(tls, Uint64FromInt32(ret1))) + } + ret1 = int32(X__syscall3(tls, int64(SYS_fcntl), int64(fd), int64(Int32FromInt32(F_DUPFD_CLOEXEC)), int64(Int32FromInt32(0)))) + if ret1 != -int32(EINVAL) { + if ret1 >= 0 { + X__syscall1(tls, int64(SYS_close), int64(ret1)) + } + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL)))) + } + ret1 = int32(X__syscall3(tls, int64(SYS_fcntl), int64(fd), int64(Int32FromInt32(F_DUPFD)), Int64FromUint64(arg))) + if ret1 >= 0 { + X__syscall3(tls, int64(SYS_fcntl), int64(ret1), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + } + return int32(X__syscall_ret(tls, Uint64FromInt32(ret1))) + } + switch cmd { + case int32(F_SETLK): + fallthrough + case int32(F_GETLK): + fallthrough + case int32(F_GETOWN_EX): + fallthrough + case int32(F_SETOWN_EX): + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_fcntl), int64(fd), int64(cmd), int64(uintptr(arg)))))) + default: + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_fcntl), int64(fd), int64(cmd), Int64FromUint64(arg))))) + } + return r +} + +func Xopen(tls *TLS, filename uintptr, flags int32, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v filename=%v flags=%v va=%v, (%v:)", tls, filename, flags, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var fd int32 + var mode Tmode_t + _, _, _ = ap, fd, mode + mode = uint32(0) + if flags&int32(O_CREAT) != 0 || flags&int32(O_TMPFILE) == int32(O_TMPFILE) { + ap = va + mode = VaUint32(&ap) + _ = ap + } + fd = int32(___syscall_cp(tls, int64(SYS_open), int64(filename), int64(flags|Int32FromInt32(O_LARGEFILE)), Int64FromUint32(mode), 0, 0, 0)) + if fd >= 0 && flags&int32(O_CLOEXEC) != 0 { + X__syscall3(tls, int64(SYS_fcntl), int64(fd), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + } + return int32(X__syscall_ret(tls, Uint64FromInt32(fd))) +} + +func Xopenat(tls *TLS, fd int32, filename uintptr, flags int32, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v filename=%v flags=%v va=%v, (%v:)", tls, fd, filename, flags, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var mode Tmode_t + _, _ = ap, mode + mode = uint32(0) + if flags&int32(O_CREAT) != 0 || flags&int32(O_TMPFILE) == int32(O_TMPFILE) { + ap = va + mode = VaUint32(&ap) + _ = ap + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_openat), int64(fd), int64(filename), int64(flags|Int32FromInt32(O_LARGEFILE)), Int64FromUint32(mode), 0, 0)))) +} + +func Xposix_fadvise(tls *TLS, fd int32, base Toff_t, len1 Toff_t, advice int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v base=%v len1=%v advice=%v, (%v:)", tls, fd, base, len1, advice, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(-X__syscall4(tls, int64(SYS_fadvise64), int64(fd), base, len1, int64(advice))) +} + +func Xposix_fallocate(tls *TLS, fd int32, base Toff_t, len1 Toff_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v base=%v len1=%v, (%v:)", tls, fd, base, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(-X__syscall4(tls, int64(SYS_fallocate), int64(fd), int64(Int32FromInt32(0)), base, len1)) +} + +const FE_ALL_EXCEPT = 16252928 +const FE_DIVBYZERO = 4194304 +const FE_DOWNWARD = 3 +const FE_INEXACT = 524288 +const FE_INVALID = 8388608 +const FE_OVERFLOW = 2097152 +const FE_TONEAREST = 0 +const FE_TOWARDZERO = 1 +const FE_UNDERFLOW = 1048576 +const FE_UPWARD = 2 + +type Tfexcept_t = uint32 + +type Tfenv_t = uint32 + +func _get_fpc(tls *TLS) (r uint32) { + var fpc uint32 + _ = fpc + // __asm__ __volatile__("efpc %0" : "=r"(fpc)); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+313, 7, __ccgo_ts+320) + return fpc +} + +func _set_fpc(tls *TLS, fpc uint32) { + // __asm__ __volatile__("sfpc %0" :: "r"(fpc)); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+313, 13, __ccgo_ts+328) +} + +func Xfeclearexcept(tls *TLS, mask int32) (r int32) { + if __ccgo_strace { + trc("tls=%v mask=%v, (%v:)", tls, mask, origin(2)) + defer func() { trc("-> %v", r) }() + } + mask = mask & int32(FE_ALL_EXCEPT) + _set_fpc(tls, _get_fpc(tls)&Uint32FromInt32(^mask)) + return 0 +} + +func Xferaiseexcept(tls *TLS, mask int32) (r int32) { + if __ccgo_strace { + trc("tls=%v mask=%v, (%v:)", tls, mask, origin(2)) + defer func() { trc("-> %v", r) }() + } + mask = mask & int32(FE_ALL_EXCEPT) + _set_fpc(tls, _get_fpc(tls)|Uint32FromInt32(mask)) + return 0 +} + +func Xfetestexcept(tls *TLS, mask int32) (r int32) { + if __ccgo_strace { + trc("tls=%v mask=%v, (%v:)", tls, mask, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Int32FromUint32(_get_fpc(tls) & Uint32FromInt32(mask) & uint32(FE_ALL_EXCEPT)) +} + +func Xfegetround(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Int32FromUint32(_get_fpc(tls) & uint32(3)) +} + +func X__fesetround(tls *TLS, r int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v r=%v, (%v:)", tls, r, origin(2)) + defer func() { trc("-> %v", r1) }() + } + _set_fpc(tls, Uint32FromInt64(Int64FromUint32(_get_fpc(tls)) & ^Int64FromInt64(3) | int64(r))) + return 0 +} + +func Xfegetenv(tls *TLS, envp uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v envp=%v, (%v:)", tls, envp, origin(2)) + defer func() { trc("-> %v", r) }() + } + **(**Tfenv_t)(__ccgo_up(envp)) = _get_fpc(tls) + return 0 +} + +func Xfesetenv(tls *TLS, envp uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v envp=%v, (%v:)", tls, envp, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 uint32 + _ = v1 + if envp != uintptr(-Int32FromInt32(1)) { + v1 = **(**Tfenv_t)(__ccgo_up(envp)) + } else { + v1 = uint32(0) + } + _set_fpc(tls, v1) + return 0 +} + +const WCONTINUED = 8 +const WEXITED = 4 +const WNOWAIT = 16777216 +const WSTOPPED = 2 +const __WALL = 1073741824 +const __WCLONE = 2147483648 +const __WNOTHREAD = 536870912 + +type Tidtype_t = int32 + +const _P_ALL = 0 +const _P_PID = 1 +const _P_PGID = 2 +const _P_PIDFD = 3 +const F_APP = 128 +const F_EOF = 16 +const F_ERR = 32 +const F_NORD = 4 +const F_NOWR = 8 +const F_PERM = 1 +const F_SVB = 64 +const KMAX = 128 +const LDBL_EPSILON1 = 2.22044604925031308085e-16 +const LDBL_MAX1 = 1.79769313486231570815e+308 +const LDBL_MIN1 = 2.22507385850720138309e-308 +const LD_B1B_DIG = 2 +const LD_B1B_MAX = 254740991 +const MASK = 127 +const MAYBE_WAITERS = 1073741824 +const UNGET = 8 + +type TFILE = struct { + Fflags uint32 + Frpos uintptr + Frend uintptr + Fclose1 uintptr + Fwend uintptr + Fwpos uintptr + Fmustbezero_1 uintptr + Fwbase uintptr + Fread uintptr + Fwrite uintptr + Fseek uintptr + Fbuf uintptr + Fbuf_size Tsize_t + Fprev uintptr + Fnext uintptr + Ffd int32 + Fpipe_pid int32 + Flockcount int64 + Fmode int32 + Flock int32 + Flbf int32 + Fcookie uintptr + Foff Toff_t + Fgetln_buf uintptr + Fmustbezero_2 uintptr + Fshend uintptr + Fshlim Toff_t + Fshcnt Toff_t + Fprev_locked uintptr + Fnext_locked uintptr + Flocale uintptr +} + +type T_IO_FILE = TFILE + +func _scanexp(tls *TLS, f uintptr, pok int32) (r int64) { + var c, neg, x, v1 int32 + var y, v19 int64 + var v2, v3 uintptr + _, _, _, _, _, _, _, _ = c, neg, x, y, v1, v19, v2, v3 + neg = 0 + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v3 = f + 8 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + if c == int32('+') || c == int32('-') { + neg = BoolInt32(c == int32('-')) + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v3 = f + 8 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + if Uint32FromInt32(c-int32('0')) >= uint32(10) && pok != 0 { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + } + } + if Uint32FromInt32(c-int32('0')) >= uint32(10) { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + return -Int64FromInt64(0x7fffffffffffffff) - Int64FromInt32(1) + } + x = 0 + for { + if !(Uint32FromInt32(c-int32('0')) < uint32(10) && x < Int32FromInt32(INT_MAX)/Int32FromInt32(10)) { + break + } + x = int32(10)*x + c - int32('0') + goto _7 + _7: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v3 = f + 8 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + y = int64(x) + for { + if !(Uint32FromInt32(c-int32('0')) < uint32(10) && y < Int64FromInt64(0x7fffffffffffffff)/Int64FromInt32(100)) { + break + } + y = int64(10)*y + int64(c) - int64('0') + goto _11 + _11: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v3 = f + 8 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + for { + if !(Uint32FromInt32(c-int32('0')) < uint32(10)) { + break + } + goto _15 + _15: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v3 = f + 8 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + if neg != 0 { + v19 = -y + } else { + v19 = y + } + return v19 +} + +func _decfloat(tls *TLS, f uintptr, c int32, bits int32, emin int32, sign int32, pok int32) (r float64) { + bp := tls.Alloc(512) + defer tls.Free(512) + var a, bitlim, denormal, e2, emax, gotdig, gotrad, i, j, k, lnz, p10, rp, rpm9, sh, z, v2, v6 int32 + var bias, frac, y float64 + var carry, carry1, carry2, t, tmp, tmp2 Tuint32_t + var dc, e10, lrp int64 + var tmp1 Tuint64_t + var v3, v4 uintptr + var _ /* x at bp+0 */ [128]Tuint32_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = a, bias, bitlim, carry, carry1, carry2, dc, denormal, e10, e2, emax, frac, gotdig, gotrad, i, j, k, lnz, lrp, p10, rp, rpm9, sh, t, tmp, tmp1, tmp2, y, z, v2, v3, v4, v6 + lrp = 0 + dc = 0 + e10 = 0 + lnz = 0 + gotdig = 0 + gotrad = 0 + emax = -emin - bits + int32(3) + denormal = 0 + frac = Float64FromInt32(0) + bias = Float64FromInt32(0) + j = 0 + k = 0 + /* Don't let leading zeros consume buffer space */ + for { + if !(c == int32('0')) { + break + } + gotdig = int32(1) + goto _1 + _1: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v2 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v2 = X__shgetc(tls, f) + } + c = v2 + } + if c == int32('.') { + gotrad = int32(1) + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v2 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v2 = X__shgetc(tls, f) + } + c = v2 + for { + if !(c == int32('0')) { + break + } + gotdig = int32(1) + lrp = lrp - 1 + goto _5 + _5: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v2 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v2 = X__shgetc(tls, f) + } + c = v2 + } + } + (**(**[128]Tuint32_t)(__ccgo_up(bp)))[0] = uint32(0) + for { + if !(Uint32FromInt32(c-int32('0')) < uint32(10) || c == int32('.')) { + break + } + if c == int32('.') { + if gotrad != 0 { + break + } + gotrad = int32(1) + lrp = dc + } else { + if k < Int32FromInt32(KMAX)-Int32FromInt32(3) { + dc = dc + 1 + if c != int32('0') { + lnz = int32(dc) + } + if j != 0 { + (**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] = (**(**[128]Tuint32_t)(__ccgo_up(bp)))[k]*uint32(10) + Uint32FromInt32(c) - uint32('0') + } else { + (**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] = Uint32FromInt32(c - int32('0')) + } + j = j + 1 + v2 = j + if v2 == int32(9) { + k = k + 1 + j = 0 + } + gotdig = int32(1) + } else { + dc = dc + 1 + if c != int32('0') { + lnz = (Int32FromInt32(KMAX) - Int32FromInt32(4)) * Int32FromInt32(9) + **(**Tuint32_t)(__ccgo_up(bp + uintptr(Int32FromInt32(KMAX)-Int32FromInt32(4))*4)) |= uint32(1) + } + } + } + goto _12 + _12: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v2 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v2 = X__shgetc(tls, f) + } + c = v2 + } + if !(gotrad != 0) { + lrp = dc + } + if gotdig != 0 && c|int32(32) == int32('e') { + e10 = _scanexp(tls, f, pok) + if e10 == -Int64FromInt64(0x7fffffffffffffff)-Int64FromInt32(1) { + if pok != 0 { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + } else { + X__shlim(tls, f, int64(Int32FromInt32(0))) + return Float64FromInt32(0) + } + e10 = 0 + } + lrp = lrp + e10 + } else { + if c >= 0 { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + } + } + if !(gotdig != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + X__shlim(tls, f, int64(Int32FromInt32(0))) + return Float64FromInt32(0) + } + /* Handle zero specially to avoid nasty special cases later */ + if !((**(**[128]Tuint32_t)(__ccgo_up(bp)))[0] != 0) { + return float64(float64(sign) * float64(0)) + } + /* Optimize small integers (w/no exponent) and over/under-flow */ + if lrp == dc && dc < int64(10) && (bits > int32(30) || (**(**[128]Tuint32_t)(__ccgo_up(bp)))[0]>>bits == uint32(0)) { + return float64(float64(sign) * float64((**(**[128]Tuint32_t)(__ccgo_up(bp)))[0])) + } + if lrp > int64(-emin/int32(2)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ERANGE) + return float64(float64(float64(sign)*Float64FromFloat64(1.79769313486231570815e+308)) * Float64FromFloat64(1.79769313486231570815e+308)) + } + if lrp < int64(emin-Int32FromInt32(2)*Int32FromInt32(LDBL_MANT_DIG)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ERANGE) + return float64(float64(float64(sign)*Float64FromFloat64(2.22507385850720138309e-308)) * Float64FromFloat64(2.22507385850720138309e-308)) + } + /* Align incomplete final B1B digit */ + if j != 0 { + for { + if !(j < int32(9)) { + break + } + **(**Tuint32_t)(__ccgo_up(bp + uintptr(k)*4)) *= uint32(10) + goto _17 + _17: + ; + j = j + 1 + } + k = k + 1 + j = 0 + } + a = 0 + z = k + e2 = 0 + rp = int32(lrp) + /* Optimize small to mid-size integers (even in exp. notation) */ + if lnz < int32(9) && lnz <= rp && rp < int32(18) { + if rp == int32(9) { + return float64(float64(sign) * float64((**(**[128]Tuint32_t)(__ccgo_up(bp)))[0])) + } + if rp < int32(9) { + return float64(float64(sign)*float64((**(**[128]Tuint32_t)(__ccgo_up(bp)))[0])) / float64(_p10s[int32(8)-rp]) + } + bitlim = bits - int32(3)*(rp-Int32FromInt32(9)) + if bitlim > int32(30) || (**(**[128]Tuint32_t)(__ccgo_up(bp)))[0]>>bitlim == uint32(0) { + return float64(float64(float64(sign)*float64((**(**[128]Tuint32_t)(__ccgo_up(bp)))[0])) * float64(_p10s[rp-int32(10)])) + } + } + /* Drop trailing zeros */ + for { + if !!((**(**[128]Tuint32_t)(__ccgo_up(bp)))[z-int32(1)] != 0) { + break + } + goto _18 + _18: + ; + z = z - 1 + } + /* Align radix point to B1B digit boundary */ + if rp%int32(9) != 0 { + if rp >= 0 { + v2 = rp % int32(9) + } else { + v2 = rp%int32(9) + int32(9) + } + rpm9 = v2 + p10 = _p10s[int32(8)-rpm9] + carry = uint32(0) + k = a + for { + if !(k != z) { + break + } + tmp = (**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] % Uint32FromInt32(p10) + (**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] = (**(**[128]Tuint32_t)(__ccgo_up(bp)))[k]/Uint32FromInt32(p10) + carry + carry = Uint32FromInt32(int32(1000000000)/p10) * tmp + if k == a && !((**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] != 0) { + a = (a + int32(1)) & (Int32FromInt32(KMAX) - Int32FromInt32(1)) + rp = rp - int32(9) + } + goto _20 + _20: + ; + k = k + 1 + } + if carry != 0 { + v2 = z + z = z + 1 + (**(**[128]Tuint32_t)(__ccgo_up(bp)))[v2] = carry + } + rp = rp + (int32(9) - rpm9) + } + /* Upscale until desired number of bits are left of radix point */ + for rp < Int32FromInt32(9)*Int32FromInt32(LD_B1B_DIG) || rp == Int32FromInt32(9)*Int32FromInt32(LD_B1B_DIG) && (**(**[128]Tuint32_t)(__ccgo_up(bp)))[a] < _th[0] { + carry1 = uint32(0) + e2 = e2 - int32(29) + k = (z - int32(1)) & (Int32FromInt32(KMAX) - Int32FromInt32(1)) + for { + tmp1 = uint64((**(**[128]Tuint32_t)(__ccgo_up(bp)))[k])< uint64(1000000000) { + carry1 = uint32(tmp1 / uint64(1000000000)) + (**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] = uint32(tmp1 % uint64(1000000000)) + } else { + carry1 = uint32(0) + (**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] = uint32(tmp1) + } + if k == (z-int32(1))&(Int32FromInt32(KMAX)-Int32FromInt32(1)) && k != a && !((**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] != 0) { + z = k + } + if k == a { + break + } + goto _22 + _22: + ; + k = (k - int32(1)) & (Int32FromInt32(KMAX) - Int32FromInt32(1)) + } + if carry1 != 0 { + rp = rp + int32(9) + a = (a - int32(1)) & (Int32FromInt32(KMAX) - Int32FromInt32(1)) + if a == z { + z = (z - int32(1)) & (Int32FromInt32(KMAX) - Int32FromInt32(1)) + **(**Tuint32_t)(__ccgo_up(bp + uintptr((z-int32(1))&(Int32FromInt32(KMAX)-Int32FromInt32(1)))*4)) |= (**(**[128]Tuint32_t)(__ccgo_up(bp)))[z] + } + (**(**[128]Tuint32_t)(__ccgo_up(bp)))[a] = carry1 + } + } + /* Downscale until exactly number of bits are left of radix point */ + for { + carry2 = uint32(0) + sh = int32(1) + i = 0 + for { + if !(i < int32(LD_B1B_DIG)) { + break + } + k = (a + i) & (Int32FromInt32(KMAX) - Int32FromInt32(1)) + if k == z || (**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] < _th[i] { + i = int32(LD_B1B_DIG) + break + } + if (**(**[128]Tuint32_t)(__ccgo_up(bp)))[(a+i)&(Int32FromInt32(KMAX)-Int32FromInt32(1))] > _th[i] { + break + } + goto _24 + _24: + ; + i = i + 1 + } + if i == int32(LD_B1B_DIG) && rp == Int32FromInt32(9)*Int32FromInt32(LD_B1B_DIG) { + break + } + /* FIXME: find a way to compute optimal sh */ + if rp > Int32FromInt32(9)+Int32FromInt32(9)*Int32FromInt32(LD_B1B_DIG) { + sh = int32(9) + } + e2 = e2 + sh + k = a + for { + if !(k != z) { + break + } + tmp2 = (**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] & Uint32FromInt32(int32(1)<>sh + carry2 + carry2 = Uint32FromInt32(Int32FromInt32(1000000000)>>sh) * tmp2 + if k == a && !((**(**[128]Tuint32_t)(__ccgo_up(bp)))[k] != 0) { + a = (a + int32(1)) & (Int32FromInt32(KMAX) - Int32FromInt32(1)) + i = i - 1 + rp = rp - int32(9) + } + goto _25 + _25: + ; + k = (k + int32(1)) & (Int32FromInt32(KMAX) - Int32FromInt32(1)) + } + if carry2 != 0 { + if (z+int32(1))&(Int32FromInt32(KMAX)-Int32FromInt32(1)) != a { + (**(**[128]Tuint32_t)(__ccgo_up(bp)))[z] = carry2 + z = (z + int32(1)) & (Int32FromInt32(KMAX) - Int32FromInt32(1)) + } else { + **(**Tuint32_t)(__ccgo_up(bp + uintptr((z-int32(1))&(Int32FromInt32(KMAX)-Int32FromInt32(1)))*4)) |= uint32(1) + } + } + goto _23 + _23: + } + /* Assemble desired bits into floating point variable */ + v2 = Int32FromInt32(0) + i = v2 + y = float64(v2) + for { + if !(i < int32(LD_B1B_DIG)) { + break + } + if (a+i)&(Int32FromInt32(KMAX)-Int32FromInt32(1)) == z { + v6 = (z + Int32FromInt32(1)) & (Int32FromInt32(KMAX) - Int32FromInt32(1)) + z = v6 + (**(**[128]Tuint32_t)(__ccgo_up(bp)))[v6-int32(1)] = uint32(0) + } + y = float64(Float64FromFloat64(1e+09)*y) + float64((**(**[128]Tuint32_t)(__ccgo_up(bp)))[(a+i)&(Int32FromInt32(KMAX)-Int32FromInt32(1))]) + goto _26 + _26: + ; + i = i + 1 + } + y = y * float64(sign) + /* Limit precision for denormal results */ + if bits > int32(LDBL_MANT_DIG)+e2-emin { + bits = int32(LDBL_MANT_DIG) + e2 - emin + if bits < 0 { + bits = 0 + } + denormal = int32(1) + } + /* Calculate bias term to force rounding, move out lower bits */ + if bits < int32(LDBL_MANT_DIG) { + bias = Xcopysignl(tls, Xscalbn(tls, Float64FromInt32(1), Int32FromInt32(2)*Int32FromInt32(LDBL_MANT_DIG)-bits-int32(1)), y) + frac = Xfmodl(tls, y, Xscalbn(tls, Float64FromInt32(1), int32(LDBL_MANT_DIG)-bits)) + y = y - frac + y = y + bias + } + /* Process tail of decimal input so it can affect rounding */ + if (a+i)&(Int32FromInt32(KMAX)-Int32FromInt32(1)) != z { + t = (**(**[128]Tuint32_t)(__ccgo_up(bp)))[(a+i)&(Int32FromInt32(KMAX)-Int32FromInt32(1))] + if t < uint32(500000000) && (t != 0 || (a+i+int32(1))&(Int32FromInt32(KMAX)-Int32FromInt32(1)) != z) { + frac = frac + float64(float64(0.25)*float64(sign)) + } else { + if t > uint32(500000000) { + frac = frac + float64(float64(0.75)*float64(sign)) + } else { + if t == uint32(500000000) { + if (a+i+int32(1))&(Int32FromInt32(KMAX)-Int32FromInt32(1)) == z { + frac = frac + float64(float64(0.5)*float64(sign)) + } else { + frac = frac + float64(float64(0.75)*float64(sign)) + } + } + } + } + if int32(LDBL_MANT_DIG)-bits >= int32(2) && !(Xfmodl(tls, frac, Float64FromInt32(1)) != 0) { + frac = frac + 1 + } + } + y = y + frac + y = y - bias + if (e2+int32(LDBL_MANT_DIG))&int32(INT_MAX) > emax-int32(5) { + if Xfabsl(tls, y) >= Float64FromInt32(2)/Float64FromFloat64(2.22044604925031308085e-16) { + if denormal != 0 && bits == int32(LDBL_MANT_DIG)+e2-emin { + denormal = 0 + } + y = y * Float64FromFloat64(0.5) + e2 = e2 + 1 + } + if e2+int32(LDBL_MANT_DIG) > emax || denormal != 0 && frac != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ERANGE) + } + } + return Xscalbnl(tls, y, e2) +} + +var _th = [2]Tuint32_t{ + 0: uint32(9007199), + 1: uint32(254740991), +} + +var _p10s = [8]int32{ + 0: int32(10), + 1: int32(100), + 2: int32(1000), + 3: int32(10000), + 4: int32(100000), + 5: int32(1000000), + 6: int32(10000000), + 7: int32(100000000), +} + +func _hexfloat(tls *TLS, f uintptr, bits int32, emin int32, sign int32, pok int32) (r float64) { + var bias, scale, y float64 + var c, d, gotdig, gotrad, gottail, v1 int32 + var dc, e2, rp int64 + var x Tuint32_t + var v2, v3 uintptr + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = bias, c, d, dc, e2, gotdig, gotrad, gottail, rp, scale, x, y, v1, v2, v3 + x = uint32(0) + y = Float64FromInt32(0) + scale = Float64FromInt32(1) + bias = Float64FromInt32(0) + gottail = 0 + gotrad = 0 + gotdig = 0 + rp = 0 + dc = 0 + e2 = 0 + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v3 = f + 8 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + /* Skip leading zeros */ + for { + if !(c == int32('0')) { + break + } + gotdig = int32(1) + goto _4 + _4: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v3 = f + 8 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + if c == int32('.') { + gotrad = int32(1) + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v3 = f + 8 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + /* Count zeros after the radix point before significand */ + rp = 0 + for { + if !(c == int32('0')) { + break + } + gotdig = int32(1) + goto _11 + _11: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v3 = f + 8 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + rp = rp - 1 + } + } + for { + if !(Uint32FromInt32(c-int32('0')) < uint32(10) || Uint32FromInt32(c|int32(32)-int32('a')) < uint32(6) || c == int32('.')) { + break + } + if c == int32('.') { + if gotrad != 0 { + break + } + rp = dc + gotrad = int32(1) + } else { + gotdig = int32(1) + if c > int32('9') { + d = c | int32(32) + int32(10) - int32('a') + } else { + d = c - int32('0') + } + if dc < int64(8) { + x = x*uint32(16) + Uint32FromInt32(d) + } else { + if dc < int64(Int32FromInt32(LDBL_MANT_DIG)/Int32FromInt32(4)+Int32FromInt32(1)) { + scale = scale / Float64FromInt32(16) + y = y + float64(float64(d)*scale) + } else { + if d != 0 && !(gottail != 0) { + y = y + float64(Float64FromFloat64(0.5)*scale) + gottail = int32(1) + } + } + } + dc = dc + 1 + } + goto _15 + _15: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v3 = f + 8 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + if !(gotdig != 0) { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + if pok != 0 { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + if gotrad != 0 { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + } + } else { + X__shlim(tls, f, int64(Int32FromInt32(0))) + } + return float64(float64(sign) * float64(0)) + } + if !(gotrad != 0) { + rp = dc + } + for dc < int64(8) { + x = x * uint32(16) + dc = dc + 1 + } + if c|int32(32) == int32('p') { + e2 = _scanexp(tls, f, pok) + if e2 == -Int64FromInt64(0x7fffffffffffffff)-Int64FromInt32(1) { + if pok != 0 { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + } else { + X__shlim(tls, f, int64(Int32FromInt32(0))) + return Float64FromInt32(0) + } + e2 = 0 + } + } else { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + } + e2 = e2 + (int64(4)*rp - int64(32)) + if !(x != 0) { + return float64(float64(sign) * float64(0)) + } + if e2 > int64(-emin) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ERANGE) + return float64(float64(float64(sign)*Float64FromFloat64(1.79769313486231570815e+308)) * Float64FromFloat64(1.79769313486231570815e+308)) + } + if e2 < int64(emin-Int32FromInt32(2)*Int32FromInt32(LDBL_MANT_DIG)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ERANGE) + return float64(float64(float64(sign)*Float64FromFloat64(2.22507385850720138309e-308)) * Float64FromFloat64(2.22507385850720138309e-308)) + } + for x < uint32(0x80000000) { + if y >= Float64FromFloat64(0.5) { + x = x + (x + uint32(1)) + y = y + (y - Float64FromInt32(1)) + } else { + x = x + x + y = y + y + } + e2 = e2 - 1 + } + if int64(bits) > int64(32)+e2-int64(emin) { + bits = int32(int64(32) + e2 - int64(emin)) + if bits < 0 { + bits = 0 + } + } + if bits < int32(LDBL_MANT_DIG) { + bias = Xcopysignl(tls, Xscalbn(tls, Float64FromInt32(1), Int32FromInt32(32)+Int32FromInt32(LDBL_MANT_DIG)-bits-int32(1)), float64(sign)) + } + if bits < int32(32) && y != 0 && !(x&Uint32FromInt32(1) != 0) { + x = x + 1 + y = Float64FromInt32(0) + } + y = bias + float64(float64(sign)*float64(x)) + float64(float64(sign)*y) + y = y - bias + if !(y != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ERANGE) + } + return Xscalbnl(tls, y, int32(e2)) +} + +func X__floatscan(tls *TLS, f uintptr, prec int32, pok int32) (r float64) { + if __ccgo_strace { + trc("tls=%v f=%v prec=%v pok=%v, (%v:)", tls, f, prec, pok, origin(2)) + defer func() { trc("-> %v", r) }() + } + var bits, c, emin, sign, v1, v2, v5, v6 int32 + var i, v27 Tsize_t + var v3, v4 uintptr + _, _, _, _, _, _, _, _, _, _, _, _ = bits, c, emin, i, sign, v1, v2, v27, v3, v4, v5, v6 + sign = int32(1) + switch prec { + case 0: + bits = int32(FLT_MANT_DIG) + emin = -int32(125) - bits + case int32(1): + bits = int32(DBL_MANT_DIG) + emin = -int32(1021) - bits + case int32(2): + bits = int32(LDBL_MANT_DIG) + emin = -int32(1021) - bits + default: + return Float64FromInt32(0) + } + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v2 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v2 = X__shgetc(tls, f) + } + v1 = v2 + c = v1 + v5 = v1 + v6 = BoolInt32(v5 == int32(' ') || Uint32FromInt32(v5)-uint32('\t') < uint32(5)) + goto _7 + _7: + if !(v6 != 0) { + break + } + } + if c == int32('+') || c == int32('-') { + sign = sign - int32(2)*BoolInt32(c == int32('-')) + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + i = uint64(0) + for { + if !(i < uint64(8) && c|int32(32) == Int32FromUint8(**(**uint8)(__ccgo_up(__ccgo_ts + 336 + uintptr(i))))) { + break + } + if i < uint64(7) { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + goto _11 + _11: + ; + i = i + 1 + } + if i == uint64(3) || i == uint64(8) || i > uint64(3) && pok != 0 { + if i != uint64(8) { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + if pok != 0 { + for { + if !(i > uint64(3)) { + break + } + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + goto _15 + _15: + ; + i = i - 1 + } + } + } + return float64(float32(sign) * X__builtin_inff(tls)) + } + if !(i != 0) { + i = uint64(0) + for { + if !(i < uint64(3) && c|int32(32) == Int32FromUint8(**(**uint8)(__ccgo_up(__ccgo_ts + 345 + uintptr(i))))) { + break + } + if i < uint64(2) { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + goto _16 + _16: + ; + i = i + 1 + } + } + if i == uint64(3) { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + if v1 != int32('(') { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + return float64(X__builtin_nanf(tls, __ccgo_ts)) + } + i = uint64(1) + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + if Uint32FromInt32(c-int32('0')) < uint32(10) || Uint32FromInt32(c-int32('A')) < uint32(26) || Uint32FromInt32(c-int32('a')) < uint32(26) || c == int32('_') { + goto _23 + } + if c == int32(')') { + return float64(X__builtin_nanf(tls, __ccgo_ts)) + } + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + if !(pok != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + X__shlim(tls, f, int64(Int32FromInt32(0))) + return Float64FromInt32(0) + } + for { + v27 = i + i = i - 1 + if !(v27 != 0) { + break + } + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + } + return float64(X__builtin_nanf(tls, __ccgo_ts)) + goto _23 + _23: + ; + i = i + 1 + } + return float64(X__builtin_nanf(tls, __ccgo_ts)) + } + if i != 0 { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + X__shlim(tls, f, int64(Int32FromInt32(0))) + return Float64FromInt32(0) + } + if c == int32('0') { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + if c|int32(32) == int32('x') { + return _hexfloat(tls, f, bits, emin, sign, pok) + } + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + c = int32('0') + } + return _decfloat(tls, f, c, bits, emin, sign, pok) +} + +// C documentation +// +// /* Lookup table for digit values. -1==255>=36 -> invalid */ +var _table6 = [257]uint8{ + 0: Uint8FromInt32(-Int32FromInt32(1)), + 1: Uint8FromInt32(-Int32FromInt32(1)), + 2: Uint8FromInt32(-Int32FromInt32(1)), + 3: Uint8FromInt32(-Int32FromInt32(1)), + 4: Uint8FromInt32(-Int32FromInt32(1)), + 5: Uint8FromInt32(-Int32FromInt32(1)), + 6: Uint8FromInt32(-Int32FromInt32(1)), + 7: Uint8FromInt32(-Int32FromInt32(1)), + 8: Uint8FromInt32(-Int32FromInt32(1)), + 9: Uint8FromInt32(-Int32FromInt32(1)), + 10: Uint8FromInt32(-Int32FromInt32(1)), + 11: Uint8FromInt32(-Int32FromInt32(1)), + 12: Uint8FromInt32(-Int32FromInt32(1)), + 13: Uint8FromInt32(-Int32FromInt32(1)), + 14: Uint8FromInt32(-Int32FromInt32(1)), + 15: Uint8FromInt32(-Int32FromInt32(1)), + 16: Uint8FromInt32(-Int32FromInt32(1)), + 17: Uint8FromInt32(-Int32FromInt32(1)), + 18: Uint8FromInt32(-Int32FromInt32(1)), + 19: Uint8FromInt32(-Int32FromInt32(1)), + 20: Uint8FromInt32(-Int32FromInt32(1)), + 21: Uint8FromInt32(-Int32FromInt32(1)), + 22: Uint8FromInt32(-Int32FromInt32(1)), + 23: Uint8FromInt32(-Int32FromInt32(1)), + 24: Uint8FromInt32(-Int32FromInt32(1)), + 25: Uint8FromInt32(-Int32FromInt32(1)), + 26: Uint8FromInt32(-Int32FromInt32(1)), + 27: Uint8FromInt32(-Int32FromInt32(1)), + 28: Uint8FromInt32(-Int32FromInt32(1)), + 29: Uint8FromInt32(-Int32FromInt32(1)), + 30: Uint8FromInt32(-Int32FromInt32(1)), + 31: Uint8FromInt32(-Int32FromInt32(1)), + 32: Uint8FromInt32(-Int32FromInt32(1)), + 33: Uint8FromInt32(-Int32FromInt32(1)), + 34: Uint8FromInt32(-Int32FromInt32(1)), + 35: Uint8FromInt32(-Int32FromInt32(1)), + 36: Uint8FromInt32(-Int32FromInt32(1)), + 37: Uint8FromInt32(-Int32FromInt32(1)), + 38: Uint8FromInt32(-Int32FromInt32(1)), + 39: Uint8FromInt32(-Int32FromInt32(1)), + 40: Uint8FromInt32(-Int32FromInt32(1)), + 41: Uint8FromInt32(-Int32FromInt32(1)), + 42: Uint8FromInt32(-Int32FromInt32(1)), + 43: Uint8FromInt32(-Int32FromInt32(1)), + 44: Uint8FromInt32(-Int32FromInt32(1)), + 45: Uint8FromInt32(-Int32FromInt32(1)), + 46: Uint8FromInt32(-Int32FromInt32(1)), + 47: Uint8FromInt32(-Int32FromInt32(1)), + 48: Uint8FromInt32(-Int32FromInt32(1)), + 50: uint8(1), + 51: uint8(2), + 52: uint8(3), + 53: uint8(4), + 54: uint8(5), + 55: uint8(6), + 56: uint8(7), + 57: uint8(8), + 58: uint8(9), + 59: Uint8FromInt32(-Int32FromInt32(1)), + 60: Uint8FromInt32(-Int32FromInt32(1)), + 61: Uint8FromInt32(-Int32FromInt32(1)), + 62: Uint8FromInt32(-Int32FromInt32(1)), + 63: Uint8FromInt32(-Int32FromInt32(1)), + 64: Uint8FromInt32(-Int32FromInt32(1)), + 65: Uint8FromInt32(-Int32FromInt32(1)), + 66: uint8(10), + 67: uint8(11), + 68: uint8(12), + 69: uint8(13), + 70: uint8(14), + 71: uint8(15), + 72: uint8(16), + 73: uint8(17), + 74: uint8(18), + 75: uint8(19), + 76: uint8(20), + 77: uint8(21), + 78: uint8(22), + 79: uint8(23), + 80: uint8(24), + 81: uint8(25), + 82: uint8(26), + 83: uint8(27), + 84: uint8(28), + 85: uint8(29), + 86: uint8(30), + 87: uint8(31), + 88: uint8(32), + 89: uint8(33), + 90: uint8(34), + 91: uint8(35), + 92: Uint8FromInt32(-Int32FromInt32(1)), + 93: Uint8FromInt32(-Int32FromInt32(1)), + 94: Uint8FromInt32(-Int32FromInt32(1)), + 95: Uint8FromInt32(-Int32FromInt32(1)), + 96: Uint8FromInt32(-Int32FromInt32(1)), + 97: Uint8FromInt32(-Int32FromInt32(1)), + 98: uint8(10), + 99: uint8(11), + 100: uint8(12), + 101: uint8(13), + 102: uint8(14), + 103: uint8(15), + 104: uint8(16), + 105: uint8(17), + 106: uint8(18), + 107: uint8(19), + 108: uint8(20), + 109: uint8(21), + 110: uint8(22), + 111: uint8(23), + 112: uint8(24), + 113: uint8(25), + 114: uint8(26), + 115: uint8(27), + 116: uint8(28), + 117: uint8(29), + 118: uint8(30), + 119: uint8(31), + 120: uint8(32), + 121: uint8(33), + 122: uint8(34), + 123: uint8(35), + 124: Uint8FromInt32(-Int32FromInt32(1)), + 125: Uint8FromInt32(-Int32FromInt32(1)), + 126: Uint8FromInt32(-Int32FromInt32(1)), + 127: Uint8FromInt32(-Int32FromInt32(1)), + 128: Uint8FromInt32(-Int32FromInt32(1)), + 129: Uint8FromInt32(-Int32FromInt32(1)), + 130: Uint8FromInt32(-Int32FromInt32(1)), + 131: Uint8FromInt32(-Int32FromInt32(1)), + 132: Uint8FromInt32(-Int32FromInt32(1)), + 133: Uint8FromInt32(-Int32FromInt32(1)), + 134: Uint8FromInt32(-Int32FromInt32(1)), + 135: Uint8FromInt32(-Int32FromInt32(1)), + 136: Uint8FromInt32(-Int32FromInt32(1)), + 137: Uint8FromInt32(-Int32FromInt32(1)), + 138: Uint8FromInt32(-Int32FromInt32(1)), + 139: Uint8FromInt32(-Int32FromInt32(1)), + 140: Uint8FromInt32(-Int32FromInt32(1)), + 141: Uint8FromInt32(-Int32FromInt32(1)), + 142: Uint8FromInt32(-Int32FromInt32(1)), + 143: Uint8FromInt32(-Int32FromInt32(1)), + 144: Uint8FromInt32(-Int32FromInt32(1)), + 145: Uint8FromInt32(-Int32FromInt32(1)), + 146: Uint8FromInt32(-Int32FromInt32(1)), + 147: Uint8FromInt32(-Int32FromInt32(1)), + 148: Uint8FromInt32(-Int32FromInt32(1)), + 149: Uint8FromInt32(-Int32FromInt32(1)), + 150: Uint8FromInt32(-Int32FromInt32(1)), + 151: Uint8FromInt32(-Int32FromInt32(1)), + 152: Uint8FromInt32(-Int32FromInt32(1)), + 153: Uint8FromInt32(-Int32FromInt32(1)), + 154: Uint8FromInt32(-Int32FromInt32(1)), + 155: Uint8FromInt32(-Int32FromInt32(1)), + 156: Uint8FromInt32(-Int32FromInt32(1)), + 157: Uint8FromInt32(-Int32FromInt32(1)), + 158: Uint8FromInt32(-Int32FromInt32(1)), + 159: Uint8FromInt32(-Int32FromInt32(1)), + 160: Uint8FromInt32(-Int32FromInt32(1)), + 161: Uint8FromInt32(-Int32FromInt32(1)), + 162: Uint8FromInt32(-Int32FromInt32(1)), + 163: Uint8FromInt32(-Int32FromInt32(1)), + 164: Uint8FromInt32(-Int32FromInt32(1)), + 165: Uint8FromInt32(-Int32FromInt32(1)), + 166: Uint8FromInt32(-Int32FromInt32(1)), + 167: Uint8FromInt32(-Int32FromInt32(1)), + 168: Uint8FromInt32(-Int32FromInt32(1)), + 169: Uint8FromInt32(-Int32FromInt32(1)), + 170: Uint8FromInt32(-Int32FromInt32(1)), + 171: Uint8FromInt32(-Int32FromInt32(1)), + 172: Uint8FromInt32(-Int32FromInt32(1)), + 173: Uint8FromInt32(-Int32FromInt32(1)), + 174: Uint8FromInt32(-Int32FromInt32(1)), + 175: Uint8FromInt32(-Int32FromInt32(1)), + 176: Uint8FromInt32(-Int32FromInt32(1)), + 177: Uint8FromInt32(-Int32FromInt32(1)), + 178: Uint8FromInt32(-Int32FromInt32(1)), + 179: Uint8FromInt32(-Int32FromInt32(1)), + 180: Uint8FromInt32(-Int32FromInt32(1)), + 181: Uint8FromInt32(-Int32FromInt32(1)), + 182: Uint8FromInt32(-Int32FromInt32(1)), + 183: Uint8FromInt32(-Int32FromInt32(1)), + 184: Uint8FromInt32(-Int32FromInt32(1)), + 185: Uint8FromInt32(-Int32FromInt32(1)), + 186: Uint8FromInt32(-Int32FromInt32(1)), + 187: Uint8FromInt32(-Int32FromInt32(1)), + 188: Uint8FromInt32(-Int32FromInt32(1)), + 189: Uint8FromInt32(-Int32FromInt32(1)), + 190: Uint8FromInt32(-Int32FromInt32(1)), + 191: Uint8FromInt32(-Int32FromInt32(1)), + 192: Uint8FromInt32(-Int32FromInt32(1)), + 193: Uint8FromInt32(-Int32FromInt32(1)), + 194: Uint8FromInt32(-Int32FromInt32(1)), + 195: Uint8FromInt32(-Int32FromInt32(1)), + 196: Uint8FromInt32(-Int32FromInt32(1)), + 197: Uint8FromInt32(-Int32FromInt32(1)), + 198: Uint8FromInt32(-Int32FromInt32(1)), + 199: Uint8FromInt32(-Int32FromInt32(1)), + 200: Uint8FromInt32(-Int32FromInt32(1)), + 201: Uint8FromInt32(-Int32FromInt32(1)), + 202: Uint8FromInt32(-Int32FromInt32(1)), + 203: Uint8FromInt32(-Int32FromInt32(1)), + 204: Uint8FromInt32(-Int32FromInt32(1)), + 205: Uint8FromInt32(-Int32FromInt32(1)), + 206: Uint8FromInt32(-Int32FromInt32(1)), + 207: Uint8FromInt32(-Int32FromInt32(1)), + 208: Uint8FromInt32(-Int32FromInt32(1)), + 209: Uint8FromInt32(-Int32FromInt32(1)), + 210: Uint8FromInt32(-Int32FromInt32(1)), + 211: Uint8FromInt32(-Int32FromInt32(1)), + 212: Uint8FromInt32(-Int32FromInt32(1)), + 213: Uint8FromInt32(-Int32FromInt32(1)), + 214: Uint8FromInt32(-Int32FromInt32(1)), + 215: Uint8FromInt32(-Int32FromInt32(1)), + 216: Uint8FromInt32(-Int32FromInt32(1)), + 217: Uint8FromInt32(-Int32FromInt32(1)), + 218: Uint8FromInt32(-Int32FromInt32(1)), + 219: Uint8FromInt32(-Int32FromInt32(1)), + 220: Uint8FromInt32(-Int32FromInt32(1)), + 221: Uint8FromInt32(-Int32FromInt32(1)), + 222: Uint8FromInt32(-Int32FromInt32(1)), + 223: Uint8FromInt32(-Int32FromInt32(1)), + 224: Uint8FromInt32(-Int32FromInt32(1)), + 225: Uint8FromInt32(-Int32FromInt32(1)), + 226: Uint8FromInt32(-Int32FromInt32(1)), + 227: Uint8FromInt32(-Int32FromInt32(1)), + 228: Uint8FromInt32(-Int32FromInt32(1)), + 229: Uint8FromInt32(-Int32FromInt32(1)), + 230: Uint8FromInt32(-Int32FromInt32(1)), + 231: Uint8FromInt32(-Int32FromInt32(1)), + 232: Uint8FromInt32(-Int32FromInt32(1)), + 233: Uint8FromInt32(-Int32FromInt32(1)), + 234: Uint8FromInt32(-Int32FromInt32(1)), + 235: Uint8FromInt32(-Int32FromInt32(1)), + 236: Uint8FromInt32(-Int32FromInt32(1)), + 237: Uint8FromInt32(-Int32FromInt32(1)), + 238: Uint8FromInt32(-Int32FromInt32(1)), + 239: Uint8FromInt32(-Int32FromInt32(1)), + 240: Uint8FromInt32(-Int32FromInt32(1)), + 241: Uint8FromInt32(-Int32FromInt32(1)), + 242: Uint8FromInt32(-Int32FromInt32(1)), + 243: Uint8FromInt32(-Int32FromInt32(1)), + 244: Uint8FromInt32(-Int32FromInt32(1)), + 245: Uint8FromInt32(-Int32FromInt32(1)), + 246: Uint8FromInt32(-Int32FromInt32(1)), + 247: Uint8FromInt32(-Int32FromInt32(1)), + 248: Uint8FromInt32(-Int32FromInt32(1)), + 249: Uint8FromInt32(-Int32FromInt32(1)), + 250: Uint8FromInt32(-Int32FromInt32(1)), + 251: Uint8FromInt32(-Int32FromInt32(1)), + 252: Uint8FromInt32(-Int32FromInt32(1)), + 253: Uint8FromInt32(-Int32FromInt32(1)), + 254: Uint8FromInt32(-Int32FromInt32(1)), + 255: Uint8FromInt32(-Int32FromInt32(1)), + 256: Uint8FromInt32(-Int32FromInt32(1)), +} + +func X__intscan(tls *TLS, f uintptr, base uint32, pok int32, lim uint64) (r uint64) { + if __ccgo_strace { + trc("tls=%v f=%v base=%v pok=%v lim=%v, (%v:)", tls, f, base, pok, lim, origin(2)) + defer func() { trc("-> %v", r) }() + } + var bs, c, neg, v1, v2, v5, v6 int32 + var val, v3, v4 uintptr + var x uint32 + var y uint64 + _, _, _, _, _, _, _, _, _, _, _, _ = bs, c, neg, val, x, y, v1, v2, v3, v4, v5, v6 + val = uintptr(unsafe.Pointer(&_table6)) + uintptr(1) + neg = 0 + if base > uint32(36) || base == uint32(1) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uint64(0) + } + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v2 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v2 = X__shgetc(tls, f) + } + v1 = v2 + c = v1 + v5 = v1 + v6 = BoolInt32(v5 == int32(' ') || Uint32FromInt32(v5)-uint32('\t') < uint32(5)) + goto _7 + _7: + if !(v6 != 0) { + break + } + } + if c == int32('+') || c == int32('-') { + neg = -BoolInt32(c == int32('-')) + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + if (base == uint32(0) || base == uint32(16)) && c == int32('0') { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + if c|int32(32) == int32('x') { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + if Int32FromUint8(**(**uint8)(__ccgo_up(val + uintptr(c)))) >= int32(16) { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + if pok != 0 { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + } else { + X__shlim(tls, f, int64(Int32FromInt32(0))) + } + return uint64(0) + } + base = uint32(16) + } else { + if base == uint32(0) { + base = uint32(8) + } + } + } else { + if base == uint32(0) { + base = uint32(10) + } + if uint32(**(**uint8)(__ccgo_up(val + uintptr(c)))) >= base { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + X__shlim(tls, f, int64(Int32FromInt32(0))) + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uint64(0) + } + } + if base == uint32(10) { + x = uint32(0) + for { + if !(Uint32FromInt32(c-int32('0')) < uint32(10) && x <= Uint32FromUint32(0xffffffff)/Uint32FromInt32(10)-Uint32FromInt32(1)) { + break + } + x = x*uint32(10) + Uint32FromInt32(c-Int32FromUint8('0')) + goto _17 + _17: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + y = uint64(x) + for { + if !(Uint32FromInt32(c-int32('0')) < uint32(10) && y <= (Uint64FromUint64(2)*Uint64FromInt64(0x7fffffffffffffff)+Uint64FromInt32(1))/Uint64FromInt32(10) && uint64(10)*y <= Uint64FromUint64(2)*Uint64FromInt64(0x7fffffffffffffff)+Uint64FromInt32(1)-Uint64FromInt32(c-Int32FromUint8('0'))) { + break + } + y = y*uint64(10) + Uint64FromInt32(c-Int32FromUint8('0')) + goto _21 + _21: + ; + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + if Uint32FromInt32(c-int32('0')) >= uint32(10) { + goto done + } + } else { + if !(base&(base-Uint32FromInt32(1)) != 0) { + bs = Int32FromUint8(**(**uint8)(__ccgo_up(__ccgo_ts + 349 + uintptr(uint32(0x17)*base>>int32(5)&uint32(7))))) + x = uint32(0) + for { + if !(uint32(**(**uint8)(__ccgo_up(val + uintptr(c)))) < base && x <= Uint32FromUint32(0xffffffff)/Uint32FromInt32(32)) { + break + } + x = x<>bs) { + break + } + y = y<= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + if y >= lim { + if !(lim&Uint64FromInt32(1) != 0) && !(neg != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ERANGE) + return lim - uint64(1) + } else { + if y > lim { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ERANGE) + return lim + } + } + } + return y ^ Uint64FromInt32(neg) - Uint64FromInt32(neg) +} + +func X__procfdname(tls *TLS, buf uintptr, fd uint32) { + if __ccgo_strace { + trc("tls=%v buf=%v fd=%v, (%v:)", tls, buf, fd, origin(2)) + } + var i, j, v5 uint32 + var v2 uint8 + _, _, _, _ = i, j, v2, v5 + i = uint32(0) + for { + v2 = **(**uint8)(__ccgo_up(__ccgo_ts + 358 + uintptr(i))) + **(**uint8)(__ccgo_up(buf + uintptr(i))) = v2 + if !(v2 != 0) { + break + } + goto _1 + _1: + ; + i = i + 1 + } + if !(fd != 0) { + **(**uint8)(__ccgo_up(buf + uintptr(i))) = uint8('0') + **(**uint8)(__ccgo_up(buf + uintptr(i+uint32(1)))) = uint8(0) + return + } + j = fd + for { + if !(j != 0) { + break + } + goto _3 + _3: + ; + j = j / uint32(10) + i = i + 1 + } + **(**uint8)(__ccgo_up(buf + uintptr(i))) = uint8(0) + for { + if !(fd != 0) { + break + } + i = i - 1 + v5 = i + **(**uint8)(__ccgo_up(buf + uintptr(v5))) = uint8(uint32('0') + fd%uint32(10)) + goto _4 + _4: + ; + fd = fd / uint32(10) + } +} + +/* The shcnt field stores the number of bytes read so far, offset by + * the value of buf-rpos at the last function call (__shlim or __shgetc), + * so that between calls the inline shcnt macro can add rpos-buf to get + * the actual count. */ + +func X__shlim(tls *TLS, f uintptr, lim Toff_t) { + if __ccgo_strace { + trc("tls=%v f=%v lim=%v, (%v:)", tls, f, lim, origin(2)) + } + (*TFILE)(unsafe.Pointer(f)).Fshlim = lim + (*TFILE)(unsafe.Pointer(f)).Fshcnt = int64((*TFILE)(unsafe.Pointer(f)).Fbuf) - int64((*TFILE)(unsafe.Pointer(f)).Frpos) + /* If lim is nonzero, rend must be a valid pointer. */ + if lim != 0 && int64((*TFILE)(unsafe.Pointer(f)).Frend)-int64((*TFILE)(unsafe.Pointer(f)).Frpos) > lim { + (*TFILE)(unsafe.Pointer(f)).Fshend = (*TFILE)(unsafe.Pointer(f)).Frpos + uintptr(lim) + } else { + (*TFILE)(unsafe.Pointer(f)).Fshend = (*TFILE)(unsafe.Pointer(f)).Frend + } +} + +func X__shgetc(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var c, v1 int32 + var cnt Toff_t + var v2 bool + _, _, _, _ = c, cnt, v1, v2 + cnt = (*TFILE)(unsafe.Pointer(f)).Fshcnt + (int64((*TFILE)(unsafe.Pointer(f)).Frpos) - int64((*TFILE)(unsafe.Pointer(f)).Fbuf)) + if v2 = (*TFILE)(unsafe.Pointer(f)).Fshlim != 0 && cnt >= (*TFILE)(unsafe.Pointer(f)).Fshlim; !v2 { + v1 = X__uflow(tls, f) + c = v1 + } + if v2 || v1 < 0 { + (*TFILE)(unsafe.Pointer(f)).Fshcnt = int64((*TFILE)(unsafe.Pointer(f)).Fbuf) - int64((*TFILE)(unsafe.Pointer(f)).Frpos) + cnt + (*TFILE)(unsafe.Pointer(f)).Fshend = (*TFILE)(unsafe.Pointer(f)).Frpos + (*TFILE)(unsafe.Pointer(f)).Fshlim = int64(-int32(1)) + return -int32(1) + } + cnt = cnt + 1 + if (*TFILE)(unsafe.Pointer(f)).Fshlim != 0 && int64((*TFILE)(unsafe.Pointer(f)).Frend)-int64((*TFILE)(unsafe.Pointer(f)).Frpos) > (*TFILE)(unsafe.Pointer(f)).Fshlim-cnt { + (*TFILE)(unsafe.Pointer(f)).Fshend = (*TFILE)(unsafe.Pointer(f)).Frpos + uintptr((*TFILE)(unsafe.Pointer(f)).Fshlim-cnt) + } else { + (*TFILE)(unsafe.Pointer(f)).Fshend = (*TFILE)(unsafe.Pointer(f)).Frend + } + (*TFILE)(unsafe.Pointer(f)).Fshcnt = int64((*TFILE)(unsafe.Pointer(f)).Fbuf) - int64((*TFILE)(unsafe.Pointer(f)).Frpos) + cnt + if (*TFILE)(unsafe.Pointer(f)).Frpos <= (*TFILE)(unsafe.Pointer(f)).Fbuf { + **(**uint8)(__ccgo_up((*TFILE)(unsafe.Pointer(f)).Frpos + uintptr(-Int32FromInt32(1)))) = Uint8FromInt32(c) + } + return c +} + +func X__syscall_ret(tls *TLS, r uint64) (r1 int64) { + if __ccgo_strace { + trc("tls=%v r=%v, (%v:)", tls, r, origin(2)) + defer func() { trc("-> %v", r1) }() + } + if r > -Uint64FromUint64(4096) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = Int32FromUint64(-r) + return int64(-int32(1)) + } + return Int64FromUint64(r) +} + +type TElf_Symndx = uint64 + +type Tdl_phdr_info = struct { + Fdlpi_addr TElf64_Addr + Fdlpi_name uintptr + Fdlpi_phdr uintptr + Fdlpi_phnum TElf64_Half + Fdlpi_adds uint64 + Fdlpi_subs uint64 + Fdlpi_tls_modid Tsize_t + Fdlpi_tls_data uintptr +} + +type Tlink_map = struct { + Fl_addr TElf64_Addr + Fl_name uintptr + Fl_ld uintptr + Fl_next uintptr + Fl_prev uintptr +} + +type Tr_debug = struct { + Fr_version int32 + Fr_map uintptr + Fr_brk TElf64_Addr + Fr_state int32 + Fr_ldbase TElf64_Addr +} + +const _RT_CONSISTENT = 0 +const _RT_ADD = 1 +const _RT_DELETE = 2 +const VERSION = "1.2.5" + +const IPC_CREAT = 512 +const IPC_EXCL = 1024 +const IPC_INFO = 3 +const IPC_NOWAIT = 2048 +const IPC_RMID = 0 +const IPC_SET = 1 +const IPC_STAT = 2 +const __ipc_perm_key = 0 +const __ipc_perm_seq = 0 + +type Tkey_t = int32 + +type Tipc_perm = struct { + F__key Tkey_t + Fuid Tuid_t + Fgid Tgid_t + Fcuid Tuid_t + Fcgid Tgid_t + Fmode Tmode_t + F__seq int32 + F__pad1 int64 + F__pad2 int64 +} + +func Xftok(tls *TLS, path uintptr, id int32) (r Tkey_t) { + if __ccgo_strace { + trc("tls=%v path=%v id=%v, (%v:)", tls, path, id, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(144) + defer tls.Free(144) + var _ /* st at bp+0 */ Tstat + if Xstat(tls, path, bp) < 0 { + return -int32(1) + } + return Int32FromUint64((**(**Tstat)(__ccgo_up(bp))).Fst_ino&Uint64FromInt32(0xffff) | (**(**Tstat)(__ccgo_up(bp))).Fst_dev&Uint64FromInt32(0xff)< %v", r1) }() + } + var r int32 + _ = r + r = int32(X__syscall6(tls, int64(SYS_ipc), int64(Int32FromInt32(IPCOP_msgctl)), int64(q), int64(cmd & ^(Int32FromInt32(IPC_STAT)&Int32FromInt32(0x100)) | Int32FromInt32(IPC_64)), int64(Int32FromInt32(0)), int64(buf), int64(Int32FromInt32(0)))) + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func Xmsgget(tls *TLS, k Tkey_t, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v k=%v flag=%v, (%v:)", tls, k, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_ipc), int64(Int32FromInt32(IPCOP_msgget)), int64(k), int64(flag))))) +} + +func Xmsgrcv(tls *TLS, q int32, m uintptr, len1 Tsize_t, type1 int64, flag int32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v q=%v m=%v len1=%v type1=%v flag=%v, (%v:)", tls, q, m, len1, type1, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + *(*[2]int64)(unsafe.Pointer(bp)) = [2]int64{ + 0: int64(m), + 1: type1, + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_ipc), int64(Int32FromInt32(IPCOP_msgrcv)), int64(q), Int64FromUint64(len1), int64(flag), int64(bp), 0))) +} + +func Xmsgsnd(tls *TLS, q int32, m uintptr, len1 Tsize_t, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v q=%v m=%v len1=%v flag=%v, (%v:)", tls, q, m, len1, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_ipc), int64(Int32FromInt32(IPCOP_msgsnd)), int64(q), Int64FromUint64(len1), int64(flag), int64(m), 0)))) +} + +const GETALL = 13 +const GETNCNT = 14 +const GETPID = 11 +const GETVAL = 12 +const GETZCNT = 15 +const SEM_INFO = 19 +const SEM_STAT = 18 +const SEM_STAT_ANY = 20 +const SEM_UNDO = 4096 +const SETALL = 17 +const SETVAL = 16 +const _SEM_SEMUN_UNDEFINED = 1 + +type Tsemid_ds = struct { + Fsem_perm Tipc_perm + Fsem_otime Ttime_t + Fsem_ctime Ttime_t + F__sem_nsems_pad [6]uint8 + Fsem_nsems uint16 + F__unused3 int64 + F__unused4 int64 +} + +type Tseminfo = struct { + Fsemmap int32 + Fsemmni int32 + Fsemmns int32 + Fsemmnu int32 + Fsemmsl int32 + Fsemopm int32 + Fsemume int32 + Fsemusz int32 + Fsemvmx int32 + Fsemaem int32 +} + +type Tsembuf = struct { + Fsem_num uint16 + Fsem_op int16 + Fsem_flg int16 +} + +type Tsemun = struct { + Fbuf [0]uintptr + Farray [0]uintptr + Fval int32 + F__ccgo_pad3 [4]byte +} + +func Xsemctl(tls *TLS, id int32, num int32, cmd int32, va uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v id=%v num=%v cmd=%v va=%v, (%v:)", tls, id, num, cmd, va, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ap Tva_list + var r int32 + var _ /* arg at bp+0 */ Tsemun + _, _ = ap, r + *(*Tsemun)(unsafe.Pointer(bp)) = Tsemun{} + *(*int32)(unsafe.Pointer(bp)) = 0 + switch cmd & ^(Int32FromInt32(IPC_STAT) & Int32FromInt32(0x100)) { + case int32(SETVAL): + fallthrough + case int32(GETALL): + fallthrough + case int32(SETALL): + fallthrough + case int32(IPC_SET): + fallthrough + case int32(IPC_INFO): + fallthrough + case int32(SEM_INFO): + fallthrough + case Int32FromInt32(IPC_STAT) & ^(Int32FromInt32(IPC_STAT) & Int32FromInt32(0x100)): + fallthrough + case (Int32FromInt32(18) | Int32FromInt32(IPC_STAT)&Int32FromInt32(0x100)) & ^(Int32FromInt32(IPC_STAT) & Int32FromInt32(0x100)): + fallthrough + case (Int32FromInt32(20) | Int32FromInt32(IPC_STAT)&Int32FromInt32(0x100)) & ^(Int32FromInt32(IPC_STAT) & Int32FromInt32(0x100)): + ap = va + **(**Tsemun)(__ccgo_up(bp)) = *(*Tsemun)(unsafe.Pointer(VaOther(&ap, 8))) + _ = ap + } + r = int32(X__syscall5(tls, int64(SYS_ipc), int64(Int32FromInt32(IPCOP_semctl)), int64(id), int64(num), int64(cmd & ^(Int32FromInt32(IPC_STAT)&Int32FromInt32(0x100)) | Int32FromInt32(IPC_64)), int64(bp))) + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func Xsemget(tls *TLS, key Tkey_t, n int32, fl int32) (r int32) { + if __ccgo_strace { + trc("tls=%v key=%v n=%v fl=%v, (%v:)", tls, key, n, fl, origin(2)) + defer func() { trc("-> %v", r) }() + } + /* The kernel uses the wrong type for the sem_nsems member + * of struct semid_ds, and thus might not check that the + * n fits in the correct (per POSIX) userspace type, so + * we have to check here. */ + if n > int32(USHRT_MAX) { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL)))) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_ipc), int64(Int32FromInt32(IPCOP_semget)), int64(key), int64(n), int64(fl))))) +} + +func Xsemop(tls *TLS, id int32, buf uintptr, n Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v id=%v buf=%v n=%v, (%v:)", tls, id, buf, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_ipc), int64(Int32FromInt32(IPCOP_semop)), int64(id), Int64FromUint64(n), int64(Int32FromInt32(0)), int64(buf))))) +} + +const NO_TIME32 = 0 +const __key = 0 +const __seq = 0 + +type Tipc_perm1 = struct { + Fkey Tkey_t + Fuid Tuid_t + Fgid Tgid_t + Fcuid Tuid_t + Fcgid Tgid_t + Fmode Tmode_t + Fseq int32 + F__pad1 int64 + F__pad2 int64 +} + +type Tsemid_ds1 = struct { + Fsem_perm Tipc_perm1 + Fsem_otime Ttime_t + Fsem_ctime Ttime_t + F__sem_nsems_pad [6]uint8 + Fsem_nsems uint16 + F__unused3 int64 + F__unused4 int64 +} + +func Xsemtimedop(tls *TLS, id int32, buf uintptr, n Tsize_t, ts uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v id=%v buf=%v n=%v ts=%v, (%v:)", tls, id, buf, n, ts, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall6(tls, int64(SYS_ipc), int64(Int32FromInt32(IPCOP_semtimedop)), int64(id), Int64FromUint64(n), int64(Int32FromInt32(0)), int64(buf), int64(ts))))) +} + +const SHMLBA = 4096 +const SHM_DEST = 512 +const SHM_EXEC = 32768 +const SHM_HUGETLB = 2048 +const SHM_HUGE_16GB = 2281701376 +const SHM_HUGE_16MB = 1610612736 +const SHM_HUGE_1GB = 2013265920 +const SHM_HUGE_1MB = 1342177280 +const SHM_HUGE_256MB = 1879048192 +const SHM_HUGE_2GB = 2080374784 +const SHM_HUGE_2MB = 1409286144 +const SHM_HUGE_32MB = 1677721600 +const SHM_HUGE_512KB = 1275068416 +const SHM_HUGE_512MB = 1946157056 +const SHM_HUGE_64KB = 1073741824 +const SHM_HUGE_8MB = 1543503872 +const SHM_HUGE_MASK = 63 +const SHM_HUGE_SHIFT = 26 +const SHM_INFO = 14 +const SHM_LOCK = 11 +const SHM_LOCKED = 1024 +const SHM_NORESERVE = 4096 +const SHM_R = 256 +const SHM_RDONLY = 4096 +const SHM_REMAP = 16384 +const SHM_RND = 8192 +const SHM_STAT = 13 +const SHM_STAT_ANY = 15 +const SHM_UNLOCK = 12 +const SHM_W = 128 + +type Tshmid_ds = struct { + Fshm_perm Tipc_perm + Fshm_segsz Tsize_t + Fshm_atime Ttime_t + Fshm_dtime Ttime_t + Fshm_ctime Ttime_t + Fshm_cpid Tpid_t + Fshm_lpid Tpid_t + Fshm_nattch uint64 + F__pad1 uint64 + F__pad2 uint64 +} + +type Tshminfo = struct { + Fshmmax uint64 + Fshmmin uint64 + Fshmmni uint64 + Fshmseg uint64 + Fshmall uint64 + F__unused [4]uint64 +} + +type Tshm_info = struct { + F__used_ids int32 + Fshm_tot uint64 + Fshm_rss uint64 + Fshm_swp uint64 + F__swap_attempts uint64 + F__swap_successes uint64 +} + +type Tshmatt_t = uint64 + +func Xshmat(tls *TLS, id int32, _addr uintptr, flag int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v id=%v _addr=%v flag=%v, (%v:)", tls, id, _addr, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + *(*uintptr)(unsafe.Pointer(bp)) = _addr + var ret uint64 + var v1 uintptr + _, _ = ret, v1 + ret = Uint64FromInt64(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_ipc), int64(Int32FromInt32(IPCOP_shmat)), int64(id), int64(flag), int64(bp), int64(**(**uintptr)(__ccgo_up(bp))))))) + if ret > -Uint64FromInt32(SHMLBA) { + v1 = uintptr(ret) + } else { + v1 = **(**uintptr)(__ccgo_up(bp)) + } + return v1 +} + +func Xshmctl(tls *TLS, id int32, cmd int32, buf uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v id=%v cmd=%v buf=%v, (%v:)", tls, id, cmd, buf, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + r = int32(X__syscall6(tls, int64(SYS_ipc), int64(Int32FromInt32(IPCOP_shmctl)), int64(id), int64(cmd & ^(Int32FromInt32(IPC_STAT)&Int32FromInt32(0x100)) | Int32FromInt32(IPC_64)), int64(Int32FromInt32(0)), int64(buf), int64(Int32FromInt32(0)))) + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func Xshmdt(tls *TLS, addr uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v, (%v:)", tls, addr, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_ipc), int64(Int32FromInt32(IPCOP_shmdt)), int64(Int32FromInt32(0)), int64(Int32FromInt32(0)), int64(Int32FromInt32(0)), int64(addr))))) +} + +func Xshmget(tls *TLS, key Tkey_t, size Tsize_t, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v key=%v size=%v flag=%v, (%v:)", tls, key, size, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + if size > Uint64FromInt64(Int64FromInt64(INT64_MAX)) { + size = Uint64FromUint64(0xffffffffffffffff) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_ipc), int64(Int32FromInt32(IPCOP_shmget)), int64(key), Int64FromUint64(size), int64(flag))))) +} + +type Tpasswd = struct { + Fpw_name uintptr + Fpw_passwd uintptr + Fpw_uid Tuid_t + Fpw_gid Tgid_t + Fpw_gecos uintptr + Fpw_dir uintptr + Fpw_shell uintptr +} + +func Xcuserid(tls *TLS, buf uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v buf=%v, (%v:)", tls, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(2112) + defer tls.Free(2112) + var len1 Tsize_t + var _ /* ppw at bp+48 */ uintptr + var _ /* pw at bp+0 */ Tpasswd + var _ /* pwb at bp+56 */ [256]int64 + _ = len1 + if buf != 0 { + **(**uint8)(__ccgo_up(buf)) = uint8(0) + } + Xgetpwuid_r(tls, Xgeteuid(tls), bp, bp+56, uint64(2048), bp+48) + if !(**(**uintptr)(__ccgo_up(bp + 48)) != 0) { + return buf + } + len1 = Xstrnlen(tls, (**(**Tpasswd)(__ccgo_up(bp))).Fpw_name, uint64(L_cuserid)) + if len1 == uint64(L_cuserid) { + return buf + } + if !(buf != 0) { + buf = uintptr(unsafe.Pointer(&_usridbuf)) + } + Xmemcpy(tls, buf, (**(**Tpasswd)(__ccgo_up(bp))).Fpw_name, len1+uint64(1)) + return buf +} + +var _usridbuf [20]uint8 + +func Xvwarn(tls *TLS, fmt uintptr, ap Tva_list) { + if __ccgo_strace { + trc("tls=%v fmt=%v ap=%v, (%v:)", tls, fmt, ap, origin(2)) + } + bp := tls.Alloc(16) + defer tls.Free(16) + Xfprintf(tls, uintptr(unsafe.Pointer(&X__stderr_FILE)), __ccgo_ts+373, VaList(bp+8, Xprogram_invocation_short_name)) + if fmt != 0 { + Xvfprintf(tls, uintptr(unsafe.Pointer(&X__stderr_FILE)), fmt, ap) + Xfputs(tls, __ccgo_ts+378, uintptr(unsafe.Pointer(&X__stderr_FILE))) + } + Xperror(tls, uintptr(0)) +} + +func Xvwarnx(tls *TLS, fmt uintptr, ap Tva_list) { + if __ccgo_strace { + trc("tls=%v fmt=%v ap=%v, (%v:)", tls, fmt, ap, origin(2)) + } + bp := tls.Alloc(16) + defer tls.Free(16) + Xfprintf(tls, uintptr(unsafe.Pointer(&X__stderr_FILE)), __ccgo_ts+373, VaList(bp+8, Xprogram_invocation_short_name)) + if fmt != 0 { + Xvfprintf(tls, uintptr(unsafe.Pointer(&X__stderr_FILE)), fmt, ap) + } + Xputc(tls, int32('\n'), uintptr(unsafe.Pointer(&X__stderr_FILE))) +} + +func Xverr(tls *TLS, status int32, fmt uintptr, ap Tva_list) { + if __ccgo_strace { + trc("tls=%v status=%v fmt=%v ap=%v, (%v:)", tls, status, fmt, ap, origin(2)) + } + Xvwarn(tls, fmt, ap) + _exit(tls, status) +} + +func Xverrx(tls *TLS, status int32, fmt uintptr, ap Tva_list) { + if __ccgo_strace { + trc("tls=%v status=%v fmt=%v ap=%v, (%v:)", tls, status, fmt, ap, origin(2)) + } + Xvwarnx(tls, fmt, ap) + _exit(tls, status) +} + +func Xwarn(tls *TLS, fmt uintptr, va uintptr) { + if __ccgo_strace { + trc("tls=%v fmt=%v va=%v, (%v:)", tls, fmt, va, origin(2)) + } + var ap Tva_list + _ = ap + ap = va + Xvwarn(tls, fmt, ap) + _ = ap +} + +func Xwarnx(tls *TLS, fmt uintptr, va uintptr) { + if __ccgo_strace { + trc("tls=%v fmt=%v va=%v, (%v:)", tls, fmt, va, origin(2)) + } + var ap Tva_list + _ = ap + ap = va + Xvwarnx(tls, fmt, ap) + _ = ap +} + +func Xerr(tls *TLS, status int32, fmt uintptr, va uintptr) { + if __ccgo_strace { + trc("tls=%v status=%v fmt=%v va=%v, (%v:)", tls, status, fmt, va, origin(2)) + } + var ap Tva_list + _ = ap + ap = va + Xverr(tls, status, fmt, ap) + _ = ap +} + +func Xerrx(tls *TLS, status int32, fmt uintptr, va uintptr) { + if __ccgo_strace { + trc("tls=%v status=%v fmt=%v va=%v, (%v:)", tls, status, fmt, va, origin(2)) + } + var ap Tva_list + _ = ap + ap = va + Xverrx(tls, status, fmt, ap) + _ = ap +} + +func Xeuidaccess(tls *TLS, filename uintptr, amode int32) (r int32) { + if __ccgo_strace { + trc("tls=%v filename=%v amode=%v, (%v:)", tls, filename, amode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfaccessat(tls, -int32(100), filename, amode, int32(AT_EACCESS)) +} + +func Xeaccess(tls *TLS, filename uintptr, amode int32) (r int32) { + if __ccgo_strace { + trc("tls=%v filename=%v amode=%v, (%v:)", tls, filename, amode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xeuidaccess(tls, filename, amode) +} + +const FTW_CHDIR = 4 +const FTW_D = 2 +const FTW_DEPTH = 8 +const FTW_DNR = 3 +const FTW_DP = 6 +const FTW_F = 1 +const FTW_MOUNT = 2 +const FTW_NS = 4 +const FTW_PHYS = 1 +const FTW_SL = 5 +const FTW_SLN = 7 + +type TFTW = struct { + Fbase int32 + Flevel int32 +} + +type t__ccgo_fp__Xftw_1 = func(*TLS, uintptr, uintptr, int32) int32 + +func Xftw(tls *TLS, path uintptr, __ccgo_fp_fn uintptr, fd_limit int32) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v __ccgo_fp_fn=%v fd_limit=%v, (%v:)", tls, path, __ccgo_fp_fn, fd_limit, origin(2)) + defer func() { trc("-> %v", r) }() + } + /* The following cast assumes that calling a function with one + * argument more than it needs behaves as expected. This is + * actually undefined, but works on all real-world machines. */ + return Xnftw(tls, path, __ccgo_fp_fn, fd_limit, int32(FTW_PHYS)) +} + +const STATX_ALL = 4095 +const STATX_ATIME = 32 +const STATX_BASIC_STATS = 2047 +const STATX_BLOCKS = 1024 +const STATX_BTIME = 2048 +const STATX_CTIME = 128 +const STATX_GID = 16 +const STATX_INO = 256 +const STATX_MODE = 2 +const STATX_MTIME = 64 +const STATX_NLINK = 4 +const STATX_SIZE = 512 +const STATX_TYPE = 1 +const STATX_UID = 8 +const S_IEXEC = 64 +const S_IREAD = 256 +const S_IWRITE = 128 + +type Tstatx_timestamp = struct { + Ftv_sec Tint64_t + Ftv_nsec Tuint32_t + F__pad Tuint32_t +} + +type Tstatx = struct { + Fstx_mask Tuint32_t + Fstx_blksize Tuint32_t + Fstx_attributes Tuint64_t + Fstx_nlink Tuint32_t + Fstx_uid Tuint32_t + Fstx_gid Tuint32_t + Fstx_mode Tuint16_t + F__pad0 [1]Tuint16_t + Fstx_ino Tuint64_t + Fstx_size Tuint64_t + Fstx_blocks Tuint64_t + Fstx_attributes_mask Tuint64_t + Fstx_atime Tstatx_timestamp + Fstx_btime Tstatx_timestamp + Fstx_ctime Tstatx_timestamp + Fstx_mtime Tstatx_timestamp + Fstx_rdev_major Tuint32_t + Fstx_rdev_minor Tuint32_t + Fstx_dev_major Tuint32_t + Fstx_dev_minor Tuint32_t + F__pad1 [14]Tuint64_t +} + +type Ttimezone = struct { + Ftz_minuteswest int32 + Ftz_dsttime int32 +} + +func Xfutimes(tls *TLS, fd int32, tv uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v tv=%v, (%v:)", tls, fd, tv, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var _ /* times at bp+0 */ [2]Ttimespec + if !(tv != 0) { + return Xfutimens(tls, fd, uintptr(0)) + } + (**(**[2]Ttimespec)(__ccgo_up(bp)))[0].Ftv_sec = (**(**Ttimeval)(__ccgo_up(tv))).Ftv_sec + (**(**[2]Ttimespec)(__ccgo_up(bp)))[0].Ftv_nsec = (**(**Ttimeval)(__ccgo_up(tv))).Ftv_usec * int64(1000) + (**(**[2]Ttimespec)(__ccgo_up(bp)))[int32(1)].Ftv_sec = (**(**Ttimeval)(__ccgo_up(tv + 1*16))).Ftv_sec + (**(**[2]Ttimespec)(__ccgo_up(bp)))[int32(1)].Ftv_nsec = (**(**Ttimeval)(__ccgo_up(tv + 1*16))).Ftv_usec * int64(1000) + return Xfutimens(tls, fd, bp) +} + +const prlimit64 = 0 + +func Xgetdtablesize(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uint64 + var _ /* rl at bp+0 */ Trlimit + _ = v1 + Xgetrlimit(tls, int32(RLIMIT_NOFILE), bp) + if (**(**Trlimit)(__ccgo_up(bp))).Frlim_cur < uint64(INT_MAX) { + v1 = (**(**Trlimit)(__ccgo_up(bp))).Frlim_cur + } else { + v1 = uint64(INT_MAX) + } + return Int32FromUint64(v1) +} + +func Xgetloadavg(tls *TLS, a uintptr, n int32) (r int32) { + if __ccgo_strace { + trc("tls=%v a=%v n=%v, (%v:)", tls, a, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(368) + defer tls.Free(368) + var i, v1 int32 + var _ /* si at bp+0 */ Tsysinfo + _, _ = i, v1 + if n <= 0 { + if n != 0 { + v1 = -int32(1) + } else { + v1 = 0 + } + return v1 + } + Xsysinfo(tls, bp) + if n > int32(3) { + n = int32(3) + } + i = 0 + for { + if !(i < n) { + break + } + **(**float64)(__ccgo_up(a + uintptr(i)*8)) = float64(Float64FromFloat64(1) / float64(Int32FromInt32(1)< %v", r) }() + } + return int32(PAGESIZE) +} + +const B0 = 0 +const B1000000 = 4104 +const B110 = 3 +const B115200 = 4098 +const B1152000 = 4105 +const B1200 = 9 +const B134 = 4 +const B150 = 5 +const B1500000 = 4106 +const B1800 = 10 +const B19200 = 14 +const B200 = 6 +const B2000000 = 4107 +const B230400 = 4099 +const B2400 = 11 +const B2500000 = 4108 +const B300 = 7 +const B3000000 = 4109 +const B3500000 = 4110 +const B38400 = 15 +const B4000000 = 4111 +const B460800 = 4100 +const B4800 = 12 +const B50 = 1 +const B500000 = 4101 +const B57600 = 4097 +const B576000 = 4102 +const B600 = 8 +const B75 = 2 +const B921600 = 4103 +const B9600 = 13 +const BRKINT = 2 +const BS0 = 0 +const BS1 = 8192 +const BSDLY = 8192 +const CBAUD = 4111 +const CBAUDEX = 4096 +const CIBAUD = 269418496 +const CLOCAL = 2048 +const CMSPAR = 1073741824 +const CR0 = 0 +const CR1 = 512 +const CR2 = 1024 +const CR3 = 1536 +const CRDLY = 1536 +const CREAD = 128 +const CRTSCTS = 2147483648 +const CS5 = 0 +const CS6 = 16 +const CS7 = 32 +const CS8 = 48 +const CSIZE = 48 +const CSTOPB = 64 +const ECHO = 8 +const ECHOCTL = 512 +const ECHOE = 16 +const ECHOK = 32 +const ECHOKE = 2048 +const ECHONL = 64 +const ECHOPRT = 1024 +const EXTA = 14 +const EXTB = 15 +const EXTPROC = 65536 +const FF0 = 0 +const FF1 = 32768 +const FFDLY = 32768 +const FLUSHO = 4096 +const HUPCL = 1024 +const ICANON = 2 +const ICRNL = 256 +const IEXTEN = 32768 +const IGNBRK = 1 +const IGNCR = 128 +const IGNPAR = 4 +const IMAXBEL = 8192 +const INLCR = 64 +const INPCK = 16 +const ISIG = 1 +const ISTRIP = 32 +const IUCLC = 512 +const IUTF8 = 16384 +const IXANY = 2048 +const IXOFF = 4096 +const IXON = 1024 +const NCCS = 32 +const NL0 = 0 +const NL1 = 256 +const NLDLY = 256 +const NOFLSH = 128 +const OCRNL = 8 +const OFDEL = 128 +const OFILL = 64 +const OLCUC = 2 +const ONLCR = 4 +const ONLRET = 32 +const ONOCR = 16 +const OPOST = 1 +const PARENB = 256 +const PARMRK = 8 +const PARODD = 512 +const PENDIN = 16384 +const TAB0 = 0 +const TAB1 = 2048 +const TAB2 = 4096 +const TAB3 = 6144 +const TABDLY = 6144 +const TCIFLUSH = 0 +const TCIOFF = 2 +const TCIOFLUSH = 2 +const TCION = 3 +const TCOFLUSH = 1 +const TCOOFF = 0 +const TCOON = 1 +const TCSADRAIN = 1 +const TCSAFLUSH = 2 +const TCSANOW = 0 +const TOSTOP = 256 +const VDISCARD = 13 +const VEOF = 4 +const VEOL = 11 +const VEOL2 = 16 +const VERASE = 2 +const VINTR = 0 +const VKILL = 3 +const VLNEXT = 15 +const VMIN = 6 +const VQUIT = 1 +const VREPRINT = 12 +const VSTART = 8 +const VSTOP = 9 +const VSUSP = 10 +const VSWTC = 7 +const VT0 = 0 +const VT1 = 16384 +const VTDLY = 16384 +const VTIME = 5 +const VWERASE = 14 +const XCASE = 4 +const XTABS = 6144 + +type Twinsize = struct { + Fws_row uint16 + Fws_col uint16 + Fws_xpixel uint16 + Fws_ypixel uint16 +} + +type Tcc_t = uint8 + +type Tspeed_t = uint32 + +type Ttcflag_t = uint32 + +type Ttermios = struct { + Fc_iflag Ttcflag_t + Fc_oflag Ttcflag_t + Fc_cflag Ttcflag_t + Fc_lflag Ttcflag_t + Fc_line Tcc_t + Fc_cc [32]Tcc_t + F__c_ispeed Tspeed_t + F__c_ospeed Tspeed_t +} + +func Xgetpass(tls *TLS, prompt uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v prompt=%v, (%v:)", tls, prompt, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(144) + defer tls.Free(144) + var fd, v1 int32 + var l Tssize_t + var v2 uintptr + var _ /* s at bp+0 */ Ttermios + var _ /* t at bp+60 */ Ttermios + _, _, _, _ = fd, l, v1, v2 + v1 = Xopen(tls, __ccgo_ts+381, Int32FromInt32(O_RDWR)|Int32FromInt32(O_NOCTTY)|Int32FromInt32(O_CLOEXEC), 0) + fd = v1 + if v1 < 0 { + return uintptr(0) + } + Xtcgetattr(tls, fd, bp+60) + **(**Ttermios)(__ccgo_up(bp)) = **(**Ttermios)(__ccgo_up(bp + 60)) + (**(**Ttermios)(__ccgo_up(bp + 60))).Fc_lflag &= Uint32FromInt32(^(Int32FromInt32(ECHO) | Int32FromInt32(ISIG))) + (**(**Ttermios)(__ccgo_up(bp + 60))).Fc_lflag |= uint32(ICANON) + (**(**Ttermios)(__ccgo_up(bp + 60))).Fc_iflag &= Uint32FromInt32(^(Int32FromInt32(INLCR) | Int32FromInt32(IGNCR))) + (**(**Ttermios)(__ccgo_up(bp + 60))).Fc_iflag |= uint32(ICRNL) + Xtcsetattr(tls, fd, int32(TCSAFLUSH), bp+60) + Xtcdrain(tls, fd) + Xdprintf(tls, fd, __ccgo_ts+15, VaList(bp+128, prompt)) + l = Xread(tls, fd, uintptr(unsafe.Pointer(&_password)), uint64(128)) + if l >= 0 { + if l > 0 && Int32FromUint8(_password[l-int64(1)]) == int32('\n') || Uint64FromInt64(l) == uint64(128) { + l = l - 1 + } + _password[l] = uint8(0) + } + Xtcsetattr(tls, fd, int32(TCSAFLUSH), bp) + Xdprintf(tls, fd, __ccgo_ts+390, 0) + Xclose(tls, fd) + if l < 0 { + v2 = uintptr(0) + } else { + v2 = uintptr(unsafe.Pointer(&_password)) + } + return v2 +} + +var _password [128]uint8 + +var _defshells = [18]uint8{'/', 'b', 'i', 'n', '/', 's', 'h', 10, '/', 'b', 'i', 'n', '/', 'c', 's', 'h', 10} + +var _line uintptr +var _linesize Tsize_t +var _f uintptr + +func Xendusershell(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + if _f != 0 { + Xfclose(tls, _f) + } + _f = uintptr(0) +} + +func Xsetusershell(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + if !(_f != 0) { + _f = Xfopen(tls, __ccgo_ts+392, __ccgo_ts+404) + } + if !(_f != 0) { + _f = Xfmemopen(tls, uintptr(unsafe.Pointer(&_defshells)), Uint64FromInt64(18)-Uint64FromInt32(1), __ccgo_ts+408) + } +} + +func Xgetusershell(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l Tssize_t + _ = l + if !(_f != 0) { + Xsetusershell(tls) + } + if !(_f != 0) { + return uintptr(0) + } + l = Xgetline(tls, uintptr(unsafe.Pointer(&_line)), uintptr(unsafe.Pointer(&_linesize)), _f) + if l <= 0 { + return uintptr(0) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(_line + uintptr(l-int64(1))))) == int32('\n') { + **(**uint8)(__ccgo_up(_line + uintptr(l-int64(1)))) = uint8(0) + } + return _line +} + +const ANYMARK = 1 +const FLUSHBAND = 4 +const FLUSHR = 1 +const FLUSHRW = 3 +const FLUSHW = 2 +const FMNAMESZ = 8 +const I_ATMARK = 21279 +const I_CANPUT = 21282 +const I_CKBAND = 21277 +const I_FDINSERT = 21264 +const I_FIND = 21259 +const I_FLUSH = 21253 +const I_FLUSHBAND = 21276 +const I_GETBAND = 21278 +const I_GETCLTIME = 21281 +const I_GETSIG = 21258 +const I_GRDOPT = 21255 +const I_GWROPT = 21268 +const I_LINK = 21260 +const I_LIST = 21269 +const I_LOOK = 21252 +const I_NREAD = 21249 +const I_PEEK = 21263 +const I_PLINK = 21270 +const I_POP = 21251 +const I_PUNLINK = 21271 +const I_PUSH = 21250 +const I_RECVFD = 21262 +const I_SENDFD = 21265 +const I_SETCLTIME = 21280 +const I_SETSIG = 21257 +const I_SRDOPT = 21254 +const I_STR = 21256 +const I_SWROPT = 21267 +const I_UNLINK = 21261 +const LASTMARK = 2 +const MORECTL = 1 +const MOREDATA = 2 +const MSG_ANY = 2 +const MSG_BAND = 4 +const MSG_HIPRI = 1 +const MUXID_ALL = -1 +const RMSGD = 1 +const RMSGN = 2 +const RNORM = 0 +const RPROTDAT = 4 +const RPROTDIS = 8 +const RPROTMASK = 28 +const RPROTNORM = 16 +const RS_HIPRI = 1 +const SNDPIPE = 2 +const SNDZERO = 1 +const S_BANDURG = 512 +const S_ERROR = 16 +const S_HANGUP = 32 +const S_HIPRI = 2 +const S_INPUT = 1 +const S_MSG = 8 +const S_OUTPUT = 4 +const S_RDBAND = 128 +const S_RDNORM = 64 +const S_WRBAND = 256 +const S_WRNORM = 4 +const __SID = 21248 + +type Tbandinfo = struct { + Fbi_pri uint8 + Fbi_flag int32 +} + +type Tstrbuf = struct { + Fmaxlen int32 + Flen1 int32 + Fbuf uintptr +} + +type Tstrpeek = struct { + Fctlbuf Tstrbuf + Fdatabuf Tstrbuf + Fflags uint32 +} + +type Tstrfdinsert = struct { + Fctlbuf Tstrbuf + Fdatabuf Tstrbuf + Fflags uint32 + Ffildes int32 + Foffset int32 +} + +type Tstrioctl = struct { + Fic_cmd int32 + Fic_timout int32 + Fic_len int32 + Fic_dp uintptr +} + +type Tstrrecvfd = struct { + Ffd int32 + Fuid int32 + Fgid int32 + F__fill [8]uint8 +} + +type Tstr_mlist = struct { + Fl_name [9]uint8 +} + +type Tstr_list = struct { + Fsl_nmods int32 + Fsl_modlist uintptr +} + +func Xisastream(tls *TLS, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + _ = v1 + if Xfcntl(tls, fd, int32(F_GETFD), 0) < 0 { + v1 = -int32(1) + } else { + v1 = 0 + } + return v1 +} + +func Xlutimes(tls *TLS, filename uintptr, tv uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v filename=%v tv=%v, (%v:)", tls, filename, tv, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var v1 uintptr + var _ /* times at bp+0 */ [2]Ttimespec + _ = v1 + if tv != 0 { + (**(**[2]Ttimespec)(__ccgo_up(bp)))[0].Ftv_sec = (**(**Ttimeval)(__ccgo_up(tv))).Ftv_sec + (**(**[2]Ttimespec)(__ccgo_up(bp)))[0].Ftv_nsec = (**(**Ttimeval)(__ccgo_up(tv))).Ftv_usec * int64(1000) + (**(**[2]Ttimespec)(__ccgo_up(bp)))[int32(1)].Ftv_sec = (**(**Ttimeval)(__ccgo_up(tv + 1*16))).Ftv_sec + (**(**[2]Ttimespec)(__ccgo_up(bp)))[int32(1)].Ftv_nsec = (**(**Ttimeval)(__ccgo_up(tv + 1*16))).Ftv_usec * int64(1000) + } + if tv != 0 { + v1 = bp + } else { + v1 = uintptr(0) + } + return Xutimensat(tls, -int32(100), filename, v1, int32(AT_SYMLINK_NOFOLLOW)) +} + +const UL_GETFSIZE = 1 +const UL_SETFSIZE = 2 + +func Xulimit(tls *TLS, cmd int32, va uintptr) (r int64) { + if __ccgo_strace { + trc("tls=%v cmd=%v va=%v, (%v:)", tls, cmd, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ap Tva_list + var val int64 + var _ /* rl at bp+0 */ Trlimit + _, _ = ap, val + Xgetrlimit(tls, int32(RLIMIT_FSIZE), bp) + if cmd == int32(UL_SETFSIZE) { + ap = va + val = VaInt64(&ap) + _ = ap + (**(**Trlimit)(__ccgo_up(bp))).Frlim_cur = uint64(512) * Uint64FromInt64(val) + if Xsetrlimit(tls, int32(RLIMIT_FSIZE), bp) != 0 { + return int64(-int32(1)) + } + } + return Int64FromUint64((**(**Trlimit)(__ccgo_up(bp))).Frlim_cur / uint64(512)) +} + +const BOOT_TIME = 2 +const DEAD_PROCESS = 8 +const EMPTY = 0 +const INIT_PROCESS = 5 +const LOGIN_PROCESS = 6 +const NEW_TIME = 3 +const OLD_TIME = 4 +const RUN_LVL = 1 +const USER_PROCESS = 7 +const e_exit = 0 +const e_termination = 0 + +type Tutmpx = struct { + Fut_type int16 + F__ut_pad1 int16 + Fut_pid Tpid_t + Fut_line [32]uint8 + Fut_id [4]uint8 + Fut_user [32]uint8 + Fut_host [256]uint8 + Fut_exit struct { + F__e_termination int16 + F__e_exit int16 + } + F__ut_pad2 int32 + Fut_session int32 + Fut_tv Ttimeval + Fut_addr_v6 [4]uint32 + F__unused [20]uint8 +} + +func Xendutxent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } +} + +func Xsetutxent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } +} + +func Xgetutxent(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return UintptrFromInt32(0) +} + +func Xgetutxid(tls *TLS, ut uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v ut=%v, (%v:)", tls, ut, origin(2)) + defer func() { trc("-> %v", r) }() + } + return UintptrFromInt32(0) +} + +func Xgetutxline(tls *TLS, ut uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v ut=%v, (%v:)", tls, ut, origin(2)) + defer func() { trc("-> %v", r) }() + } + return UintptrFromInt32(0) +} + +func Xpututxline(tls *TLS, ut uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v ut=%v, (%v:)", tls, ut, origin(2)) + defer func() { trc("-> %v", r) }() + } + return UintptrFromInt32(0) +} + +func Xupdwtmpx(tls *TLS, f uintptr, u uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v u=%v, (%v:)", tls, f, u, origin(2)) + } +} + +func ___utmpxname(tls *TLS, f uintptr) (r int32) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOPNOTSUPP) + return -int32(1) +} + +func Xendutent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + Xendutxent(tls) +} + +func Xgetutent(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetutxent(tls) +} + +func Xgetutid(tls *TLS, ut uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v ut=%v, (%v:)", tls, ut, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetutxid(tls, ut) +} + +func Xgetutline(tls *TLS, ut uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v ut=%v, (%v:)", tls, ut, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetutxline(tls, ut) +} + +func Xpututline(tls *TLS, ut uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v ut=%v, (%v:)", tls, ut, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xpututxline(tls, ut) +} + +func Xsetutent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + Xsetutxent(tls) +} + +func Xupdwtmp(tls *TLS, f uintptr, u uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v u=%v, (%v:)", tls, f, u, origin(2)) + } + Xupdwtmpx(tls, f, u) +} + +const ADJ_ESTERROR = 8 +const ADJ_FREQUENCY = 2 +const ADJ_MAXERROR = 4 +const ADJ_MICRO = 4096 +const ADJ_NANO = 8192 +const ADJ_OFFSET = 1 +const ADJ_OFFSET_SINGLESHOT = 32769 +const ADJ_OFFSET_SS_READ = 40961 +const ADJ_SETOFFSET = 256 +const ADJ_STATUS = 16 +const ADJ_TAI = 128 +const ADJ_TICK = 16384 +const ADJ_TIMECONST = 32 +const MAXTC = 6 +const MOD_CLKA = 32769 +const MOD_CLKB = 16384 +const MOD_ESTERROR = 8 +const MOD_FREQUENCY = 2 +const MOD_MAXERROR = 4 +const MOD_MICRO = 4096 +const MOD_NANO = 8192 +const MOD_OFFSET = 1 +const MOD_STATUS = 16 +const MOD_TAI = 128 +const MOD_TIMECONST = 32 +const STA_CLK = 32768 +const STA_CLOCKERR = 4096 +const STA_DEL = 32 +const STA_FLL = 8 +const STA_FREQHOLD = 128 +const STA_INS = 16 +const STA_MODE = 16384 +const STA_NANO = 8192 +const STA_PLL = 1 +const STA_PPSERROR = 2048 +const STA_PPSFREQ = 2 +const STA_PPSJITTER = 512 +const STA_PPSSIGNAL = 256 +const STA_PPSTIME = 4 +const STA_PPSWANDER = 1024 +const STA_RONLY = 65280 +const STA_UNSYNC = 64 +const TIME_BAD = 5 +const TIME_DEL = 2 +const TIME_ERROR = 5 +const TIME_INS = 1 +const TIME_OK = 0 +const TIME_OOP = 3 +const TIME_WAIT = 4 + +type Tntptimeval = struct { + Ftime Ttimeval + Fmaxerror int64 + Festerror int64 +} + +type Ttimex = struct { + Fmodes uint32 + Foffset int64 + Ffreq int64 + Fmaxerror int64 + Festerror int64 + Fstatus int32 + Fconstant int64 + Fprecision int64 + Ftolerance int64 + Ftime Ttimeval + Ftick int64 + Fppsfreq int64 + Fjitter int64 + Fshift int32 + Fstabil int64 + Fjitcnt int64 + Fcalcnt int64 + Ferrcnt int64 + Fstbcnt int64 + Ftai int32 + F__padding [11]int32 +} + +func Xadjtime(tls *TLS, in uintptr, out uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v in=%v out=%v, (%v:)", tls, in, out, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(208) + defer tls.Free(208) + var v1 Tsuseconds_t + var _ /* tx at bp+0 */ Ttimex + _ = v1 + **(**Ttimex)(__ccgo_up(bp)) = Ttimex{} + if in != 0 { + if (*Ttimeval)(unsafe.Pointer(in)).Ftv_sec > int64(1000) || (*Ttimeval)(unsafe.Pointer(in)).Ftv_usec > int64(1000000000) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + (**(**Ttimex)(__ccgo_up(bp))).Foffset = (*Ttimeval)(unsafe.Pointer(in)).Ftv_sec*int64(1000000) + (*Ttimeval)(unsafe.Pointer(in)).Ftv_usec + (**(**Ttimex)(__ccgo_up(bp))).Fmodes = uint32(ADJ_OFFSET_SINGLESHOT) + } + if Xadjtimex(tls, bp) < 0 { + return -int32(1) + } + if out != 0 { + (*Ttimeval)(unsafe.Pointer(out)).Ftv_sec = (**(**Ttimex)(__ccgo_up(bp))).Foffset / int64(1000000) + v1 = (**(**Ttimex)(__ccgo_up(bp))).Foffset % Int64FromInt32(1000000) + (*Ttimeval)(unsafe.Pointer(out)).Ftv_usec = v1 + if v1 < 0 { + (*Ttimeval)(unsafe.Pointer(out)).Ftv_sec = (*Ttimeval)(unsafe.Pointer(out)).Ftv_sec - 1 + **(**Tsuseconds_t)(__ccgo_up(out + 8)) += int64(1000000) + } + } + return 0 +} + +func Xadjtimex(tls *TLS, tx uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v tx=%v, (%v:)", tls, tx, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xclock_adjtime(tls, CLOCK_REALTIME, tx) +} + +func Xbrk(tls *TLS, end uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v end=%v, (%v:)", tls, end, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(ENOMEM)))) +} + +func Xcapset(tls *TLS, a uintptr, b uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v a=%v b=%v, (%v:)", tls, a, b, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_capset), int64(a), int64(b))))) +} + +func Xcapget(tls *TLS, a uintptr, b uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v a=%v b=%v, (%v:)", tls, a, b, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_capget), int64(a), int64(b))))) +} + +func Xchroot(tls *TLS, path uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v, (%v:)", tls, path, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_chroot), int64(path))))) +} + +type Tktimex64 = struct { + Fmodes uint32 + F__ccgo4 uint32 + Foffset int64 + Ffreq int64 + Fmaxerror int64 + Festerror int64 + Fstatus int32 + F__ccgo44 uint32 + Fconstant int64 + Fprecision int64 + Ftolerance int64 + Ftime_sec int64 + Ftime_usec int64 + Ftick int64 + Fppsfreq int64 + Fjitter int64 + Fshift int32 + F__ccgo116 uint32 + Fstabil int64 + Fjitcnt int64 + Fcalcnt int64 + Ferrcnt int64 + Fstbcnt int64 + Ftai int32 + F__padding [11]int32 +} + +type Tktimex = struct { + Fmodes uint32 + Foffset int64 + Ffreq int64 + Fmaxerror int64 + Festerror int64 + Fstatus int32 + Fconstant int64 + Fprecision int64 + Ftolerance int64 + Ftime_sec int64 + Ftime_usec int64 + Ftick int64 + Fppsfreq int64 + Fjitter int64 + Fshift int32 + Fstabil int64 + Fjitcnt int64 + Fcalcnt int64 + Ferrcnt int64 + Fstbcnt int64 + Ftai int32 + F__padding [11]int32 +} + +func Xclock_adjtime(tls *TLS, clock_id Tclockid_t, utx uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v clock_id=%v utx=%v, (%v:)", tls, clock_id, utx, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(208) + defer tls.Free(208) + var r int32 + var _ /* ktx at bp+0 */ Tktimex + _ = r + r = -int32(ENOSYS) + if uint64(8) > uint64(8) { + **(**Tktimex)(__ccgo_up(bp)) = Tktimex{ + Fmodes: (*Ttimex)(unsafe.Pointer(utx)).Fmodes, + Foffset: (*Ttimex)(unsafe.Pointer(utx)).Foffset, + Ffreq: (*Ttimex)(unsafe.Pointer(utx)).Ffreq, + Fmaxerror: (*Ttimex)(unsafe.Pointer(utx)).Fmaxerror, + Festerror: (*Ttimex)(unsafe.Pointer(utx)).Festerror, + Fstatus: (*Ttimex)(unsafe.Pointer(utx)).Fstatus, + Fconstant: (*Ttimex)(unsafe.Pointer(utx)).Fconstant, + Fprecision: (*Ttimex)(unsafe.Pointer(utx)).Fprecision, + Ftolerance: (*Ttimex)(unsafe.Pointer(utx)).Ftolerance, + Ftime_sec: (*Ttimex)(unsafe.Pointer(utx)).Ftime.Ftv_sec, + Ftime_usec: (*Ttimex)(unsafe.Pointer(utx)).Ftime.Ftv_usec, + Ftick: (*Ttimex)(unsafe.Pointer(utx)).Ftick, + Fppsfreq: (*Ttimex)(unsafe.Pointer(utx)).Fppsfreq, + Fjitter: (*Ttimex)(unsafe.Pointer(utx)).Fjitter, + Fshift: (*Ttimex)(unsafe.Pointer(utx)).Fshift, + Fstabil: (*Ttimex)(unsafe.Pointer(utx)).Fstabil, + Fjitcnt: (*Ttimex)(unsafe.Pointer(utx)).Fjitcnt, + Fcalcnt: (*Ttimex)(unsafe.Pointer(utx)).Fcalcnt, + Ferrcnt: (*Ttimex)(unsafe.Pointer(utx)).Ferrcnt, + Fstbcnt: (*Ttimex)(unsafe.Pointer(utx)).Fstbcnt, + Ftai: (*Ttimex)(unsafe.Pointer(utx)).Ftai, + } + if clock_id == CLOCK_REALTIME { + r = int32(X__syscall1(tls, int64(SYS_adjtimex), int64(bp))) + } else { + r = int32(X__syscall2(tls, int64(SYS_clock_adjtime), int64(clock_id), int64(bp))) + } + if r >= 0 { + (*Ttimex)(unsafe.Pointer(utx)).Fmodes = (**(**Tktimex)(__ccgo_up(bp))).Fmodes + (*Ttimex)(unsafe.Pointer(utx)).Foffset = (**(**Tktimex)(__ccgo_up(bp))).Foffset + (*Ttimex)(unsafe.Pointer(utx)).Ffreq = (**(**Tktimex)(__ccgo_up(bp))).Ffreq + (*Ttimex)(unsafe.Pointer(utx)).Fmaxerror = (**(**Tktimex)(__ccgo_up(bp))).Fmaxerror + (*Ttimex)(unsafe.Pointer(utx)).Festerror = (**(**Tktimex)(__ccgo_up(bp))).Festerror + (*Ttimex)(unsafe.Pointer(utx)).Fstatus = (**(**Tktimex)(__ccgo_up(bp))).Fstatus + (*Ttimex)(unsafe.Pointer(utx)).Fconstant = (**(**Tktimex)(__ccgo_up(bp))).Fconstant + (*Ttimex)(unsafe.Pointer(utx)).Fprecision = (**(**Tktimex)(__ccgo_up(bp))).Fprecision + (*Ttimex)(unsafe.Pointer(utx)).Ftolerance = (**(**Tktimex)(__ccgo_up(bp))).Ftolerance + (*Ttimex)(unsafe.Pointer(utx)).Ftime.Ftv_sec = (**(**Tktimex)(__ccgo_up(bp))).Ftime_sec + (*Ttimex)(unsafe.Pointer(utx)).Ftime.Ftv_usec = (**(**Tktimex)(__ccgo_up(bp))).Ftime_usec + (*Ttimex)(unsafe.Pointer(utx)).Ftick = (**(**Tktimex)(__ccgo_up(bp))).Ftick + (*Ttimex)(unsafe.Pointer(utx)).Fppsfreq = (**(**Tktimex)(__ccgo_up(bp))).Fppsfreq + (*Ttimex)(unsafe.Pointer(utx)).Fjitter = (**(**Tktimex)(__ccgo_up(bp))).Fjitter + (*Ttimex)(unsafe.Pointer(utx)).Fshift = (**(**Tktimex)(__ccgo_up(bp))).Fshift + (*Ttimex)(unsafe.Pointer(utx)).Fstabil = (**(**Tktimex)(__ccgo_up(bp))).Fstabil + (*Ttimex)(unsafe.Pointer(utx)).Fjitcnt = (**(**Tktimex)(__ccgo_up(bp))).Fjitcnt + (*Ttimex)(unsafe.Pointer(utx)).Fcalcnt = (**(**Tktimex)(__ccgo_up(bp))).Fcalcnt + (*Ttimex)(unsafe.Pointer(utx)).Ferrcnt = (**(**Tktimex)(__ccgo_up(bp))).Ferrcnt + (*Ttimex)(unsafe.Pointer(utx)).Fstbcnt = (**(**Tktimex)(__ccgo_up(bp))).Fstbcnt + (*Ttimex)(unsafe.Pointer(utx)).Ftai = (**(**Tktimex)(__ccgo_up(bp))).Ftai + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) + } + if clock_id == CLOCK_REALTIME { + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_adjtimex), int64(utx))))) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_clock_adjtime), int64(clock_id), int64(utx))))) +} + +func Xcopy_file_range(tls *TLS, fd_in int32, off_in uintptr, fd_out int32, off_out uintptr, len1 Tsize_t, flags uint32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd_in=%v off_in=%v fd_out=%v off_out=%v len1=%v flags=%v, (%v:)", tls, fd_in, off_in, fd_out, off_out, len1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall6(tls, int64(SYS_copy_file_range), int64(fd_in), int64(off_in), int64(fd_out), int64(off_out), Int64FromUint64(len1), Int64FromUint32(flags)))) +} + +const EPOLLERR = 8 +const EPOLLET = 2147483648 +const EPOLLEXCLUSIVE = 268435456 +const EPOLLHUP = 16 +const EPOLLIN = 1 +const EPOLLMSG = 1024 +const EPOLLNVAL = 32 +const EPOLLONESHOT = 1073741824 +const EPOLLOUT = 4 +const EPOLLPRI = 2 +const EPOLLRDBAND = 128 +const EPOLLRDHUP = 8192 +const EPOLLRDNORM = 64 +const EPOLLWAKEUP = 536870912 +const EPOLLWRBAND = 512 +const EPOLLWRNORM = 256 +const EPOLL_CLOEXEC = 524288 +const EPOLL_CTL_ADD = 1 +const EPOLL_CTL_DEL = 2 +const EPOLL_CTL_MOD = 3 +const EPOLL_NONBLOCK = 2048 + +type Tfsblkcnt_t = uint64 + +type Tfsfilcnt_t = uint64 + +type _EPOLL_EVENTS = int32 + +const ___EPOLL_DUMMY = 0 + +type Tepoll_data_t = struct { + Ffd [0]int32 + Fu32 [0]Tuint32_t + Fu64 [0]Tuint64_t + Fptr uintptr +} + +type Tepoll_data = Tepoll_data_t + +type Tepoll_event = struct { + Fevents Tuint32_t + Fdata Tepoll_data_t +} + +func Xepoll_create(tls *TLS, size int32) (r int32) { + if __ccgo_strace { + trc("tls=%v size=%v, (%v:)", tls, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + if size <= 0 { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL)))) + } + return Xepoll_create1(tls, 0) +} + +func Xepoll_create1(tls *TLS, flags int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v flags=%v, (%v:)", tls, flags, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + r = int32(X__syscall1(tls, int64(SYS_epoll_create1), int64(flags))) + if r == -int32(ENOSYS) && !(flags != 0) { + r = int32(X__syscall1(tls, int64(SYS_epoll_create), int64(Int32FromInt32(1)))) + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func Xepoll_ctl(tls *TLS, fd int32, op int32, fd2 int32, ev uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v op=%v fd2=%v ev=%v, (%v:)", tls, fd, op, fd2, ev, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_epoll_ctl), int64(fd), int64(op), int64(fd2), int64(ev))))) +} + +func Xepoll_pwait(tls *TLS, fd int32, ev uintptr, cnt int32, to int32, sigs uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v ev=%v cnt=%v to=%v sigs=%v, (%v:)", tls, fd, ev, cnt, to, sigs, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + r = int32(___syscall_cp(tls, int64(SYS_epoll_pwait), int64(fd), int64(ev), int64(cnt), int64(to), int64(sigs), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8)))) + if r == -int32(ENOSYS) && !(sigs != 0) { + r = int32(___syscall_cp(tls, int64(SYS_epoll_wait), int64(fd), int64(ev), int64(cnt), int64(to), 0, 0)) + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func Xepoll_wait(tls *TLS, fd int32, ev uintptr, cnt int32, to int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v ev=%v cnt=%v to=%v, (%v:)", tls, fd, ev, cnt, to, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xepoll_pwait(tls, fd, ev, cnt, to, uintptr(0)) +} + +const EFD_CLOEXEC = 524288 +const EFD_NONBLOCK = 2048 +const EFD_SEMAPHORE = 1 + +type Teventfd_t = uint64 + +func Xeventfd(tls *TLS, count uint32, flags int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v count=%v flags=%v, (%v:)", tls, count, flags, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + r = int32(X__syscall2(tls, int64(SYS_eventfd2), Int64FromUint32(count), int64(flags))) + if r == -int32(ENOSYS) && !(flags != 0) { + r = int32(X__syscall1(tls, int64(SYS_eventfd), Int64FromUint32(count))) + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func Xeventfd_read(tls *TLS, fd int32, value uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v value=%v, (%v:)", tls, fd, value, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + _ = v1 + if uint64(8) == Uint64FromInt64(Xread(tls, fd, value, uint64(8))) { + v1 = 0 + } else { + v1 = -int32(1) + } + return v1 +} + +func Xeventfd_write(tls *TLS, fd int32, _value Teventfd_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v _value=%v, (%v:)", tls, fd, _value, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + *(*Teventfd_t)(unsafe.Pointer(bp)) = _value + var v1 int32 + _ = v1 + if uint64(8) == Uint64FromInt64(Xwrite(tls, fd, bp, uint64(8))) { + v1 = 0 + } else { + v1 = -int32(1) + } + return v1 +} + +func Xfallocate(tls *TLS, fd int32, mode int32, base Toff_t, len1 Toff_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v mode=%v base=%v len1=%v, (%v:)", tls, fd, mode, base, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_fallocate), int64(fd), int64(mode), base, len1)))) +} + +const FANOTIFY_METADATA_VERSION = 3 +const FAN_ACCESS = 1 +const FAN_ACCESS_PERM = 131072 +const FAN_ALLOW = 1 +const FAN_ALL_CLASS_BITS = 12 +const FAN_ALL_EVENTS = 59 +const FAN_ALL_INIT_FLAGS = 63 +const FAN_ALL_MARK_FLAGS = 255 +const FAN_ALL_OUTGOING_EVENTS = 213051 +const FAN_ALL_PERM_EVENTS = 196608 +const FAN_ATTRIB = 4 +const FAN_AUDIT = 16 +const FAN_CLASS_CONTENT = 4 +const FAN_CLASS_NOTIF = 0 +const FAN_CLASS_PRE_CONTENT = 8 +const FAN_CLOEXEC = 1 +const FAN_CLOSE = 24 +const FAN_CLOSE_NOWRITE = 16 +const FAN_CLOSE_WRITE = 8 +const FAN_CREATE = 256 +const FAN_DELETE = 512 +const FAN_DELETE_SELF = 1024 +const FAN_DENY = 2 +const FAN_DIR_MODIFY = 524288 +const FAN_ENABLE_AUDIT = 64 +const FAN_EVENT_INFO_TYPE_DFID = 3 +const FAN_EVENT_INFO_TYPE_DFID_NAME = 2 +const FAN_EVENT_INFO_TYPE_FID = 1 +const FAN_EVENT_METADATA_LEN = 0 +const FAN_EVENT_ON_CHILD = 134217728 +const FAN_MARK_ADD = 1 +const FAN_MARK_DONT_FOLLOW = 4 +const FAN_MARK_FILESYSTEM = 256 +const FAN_MARK_FLUSH = 128 +const FAN_MARK_IGNORED_MASK = 32 +const FAN_MARK_IGNORED_SURV_MODIFY = 64 +const FAN_MARK_INODE = 0 +const FAN_MARK_MOUNT = 16 +const FAN_MARK_ONLYDIR = 8 +const FAN_MARK_REMOVE = 2 +const FAN_MARK_TYPE_MASK = 272 +const FAN_MODIFY = 2 +const FAN_MOVE = 192 +const FAN_MOVED_FROM = 64 +const FAN_MOVED_TO = 128 +const FAN_MOVE_SELF = 2048 +const FAN_NOFD = -1 +const FAN_NONBLOCK = 2 +const FAN_ONDIR = 1073741824 +const FAN_OPEN = 32 +const FAN_OPEN_EXEC = 4096 +const FAN_OPEN_EXEC_PERM = 262144 +const FAN_OPEN_PERM = 65536 +const FAN_Q_OVERFLOW = 16384 +const FAN_REPORT_DFID_NAME = 3072 +const FAN_REPORT_DIR_FID = 1024 +const FAN_REPORT_FID = 512 +const FAN_REPORT_NAME = 2048 +const FAN_REPORT_TID = 256 +const FAN_UNLIMITED_MARKS = 32 +const FAN_UNLIMITED_QUEUE = 16 +const ST_APPEND = 256 +const ST_IMMUTABLE = 512 +const ST_MANDLOCK = 64 +const ST_NOATIME = 1024 +const ST_NODEV = 4 +const ST_NODIRATIME = 2048 +const ST_NOEXEC = 8 +const ST_NOSUID = 2 +const ST_RDONLY = 1 +const ST_RELATIME = 4096 +const ST_SYNCHRONOUS = 16 +const ST_WRITE = 128 + +type Tstatvfs = struct { + Ff_bsize uint64 + Ff_frsize uint64 + Ff_blocks Tfsblkcnt_t + Ff_bfree Tfsblkcnt_t + Ff_bavail Tfsblkcnt_t + Ff_files Tfsfilcnt_t + Ff_ffree Tfsfilcnt_t + Ff_favail Tfsfilcnt_t + Ff_fsid uint64 + Ff_flag uint64 + Ff_namemax uint64 + Ff_type uint32 + F__reserved [5]int32 +} + +type Tfsid_t = struct { + F__val [2]int32 +} + +type t__fsid_t = Tfsid_t + +type Tstatfs = struct { + Ff_type uint32 + Ff_bsize uint32 + Ff_blocks Tfsblkcnt_t + Ff_bfree Tfsblkcnt_t + Ff_bavail Tfsblkcnt_t + Ff_files Tfsfilcnt_t + Ff_ffree Tfsfilcnt_t + Ff_fsid Tfsid_t + Ff_namelen uint32 + Ff_frsize uint32 + Ff_flags uint32 + Ff_spare [4]uint32 +} + +type Tfanotify_event_metadata = struct { + Fevent_len uint32 + Fvers uint8 + Freserved uint8 + Fmetadata_len uint16 + Fmask uint64 + Ffd int32 + Fpid int32 +} + +type Tfanotify_event_info_header = struct { + Finfo_type uint8 + Fpad uint8 + Flen1 uint16 +} + +type Tfanotify_event_info_fid = struct { + Fhdr Tfanotify_event_info_header + Ffsid Tfsid_t +} + +type Tfanotify_response = struct { + Ffd int32 + Fresponse uint32 +} + +func Xfanotify_init(tls *TLS, flags uint32, event_f_flags uint32) (r int32) { + if __ccgo_strace { + trc("tls=%v flags=%v event_f_flags=%v, (%v:)", tls, flags, event_f_flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_fanotify_init), Int64FromUint32(flags), Int64FromUint32(event_f_flags))))) +} + +func Xfanotify_mark(tls *TLS, fanotify_fd int32, flags uint32, mask uint64, dfd int32, pathname uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fanotify_fd=%v flags=%v mask=%v dfd=%v pathname=%v, (%v:)", tls, fanotify_fd, flags, mask, dfd, pathname, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_fanotify_mark), int64(fanotify_fd), Int64FromUint32(flags), Int64FromUint64(mask), int64(dfd), int64(pathname))))) +} + +const LOCK_EX = 2 +const LOCK_NB = 4 +const LOCK_SH = 1 +const LOCK_UN = 8 + +func Xflock(tls *TLS, fd int32, op int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v op=%v, (%v:)", tls, fd, op, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_flock), int64(fd), int64(op))))) +} + +func Xgetdents(tls *TLS, fd int32, buf uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v len1=%v, (%v:)", tls, fd, buf, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + if len1 > uint64(INT_MAX) { + len1 = uint64(INT_MAX) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_getdents64), int64(fd), int64(buf), Int64FromUint64(len1))))) +} + +const GRND_INSECURE = 4 +const GRND_NONBLOCK = 1 +const GRND_RANDOM = 2 + +func Xgetrandom(tls *TLS, buf uintptr, buflen Tsize_t, flags uint32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v buf=%v buflen=%v flags=%v, (%v:)", tls, buf, buflen, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_getrandom), int64(buf), Int64FromUint64(buflen), Int64FromUint32(flags), 0, 0, 0))) +} + +const IN_ACCESS = 1 +const IN_ALL_EVENTS = 4095 +const IN_ATTRIB = 4 +const IN_CLOEXEC = 524288 +const IN_CLOSE = 24 +const IN_CLOSE_NOWRITE = 16 +const IN_CLOSE_WRITE = 8 +const IN_CREATE = 256 +const IN_DELETE = 512 +const IN_DELETE_SELF = 1024 +const IN_DONT_FOLLOW = 33554432 +const IN_EXCL_UNLINK = 67108864 +const IN_IGNORED = 32768 +const IN_ISDIR = 1073741824 +const IN_MASK_ADD = 536870912 +const IN_MASK_CREATE = 268435456 +const IN_MODIFY = 2 +const IN_MOVE = 192 +const IN_MOVED_FROM = 64 +const IN_MOVED_TO = 128 +const IN_MOVE_SELF = 2048 +const IN_NONBLOCK = 2048 +const IN_ONESHOT = 2147483648 +const IN_ONLYDIR = 16777216 +const IN_OPEN = 32 +const IN_Q_OVERFLOW = 16384 +const IN_UNMOUNT = 8192 + +type Tinotify_event = struct { + Fwd int32 + Fmask Tuint32_t + Fcookie Tuint32_t + Flen1 Tuint32_t +} + +func Xinotify_init(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xinotify_init1(tls, 0) +} + +func Xinotify_init1(tls *TLS, flags int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v flags=%v, (%v:)", tls, flags, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + r = int32(X__syscall1(tls, int64(SYS_inotify_init1), int64(flags))) + if r == -int32(ENOSYS) && !(flags != 0) { + r = int32(X__syscall0(tls, int64(SYS_inotify_init))) + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func Xinotify_add_watch(tls *TLS, fd int32, pathname uintptr, mask Tuint32_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v pathname=%v mask=%v, (%v:)", tls, fd, pathname, mask, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_inotify_add_watch), int64(fd), int64(pathname), Int64FromUint32(mask))))) +} + +func Xinotify_rm_watch(tls *TLS, fd int32, wd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v wd=%v, (%v:)", tls, fd, wd, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_inotify_rm_watch), int64(fd), int64(wd))))) +} + +func Xklogctl(tls *TLS, type1 int32, buf uintptr, len1 int32) (r int32) { + if __ccgo_strace { + trc("tls=%v type1=%v buf=%v len1=%v, (%v:)", tls, type1, buf, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_syslog), int64(type1), int64(buf), int64(len1))))) +} + +const MADV_COLD = 20 +const MADV_DODUMP = 17 +const MADV_DOFORK = 11 +const MADV_DONTDUMP = 16 +const MADV_DONTFORK = 10 +const MADV_DONTNEED = 4 +const MADV_FREE = 8 +const MADV_HUGEPAGE = 14 +const MADV_HWPOISON = 100 +const MADV_KEEPONFORK = 19 +const MADV_MERGEABLE = 12 +const MADV_NOHUGEPAGE = 15 +const MADV_NORMAL = 0 +const MADV_PAGEOUT = 21 +const MADV_RANDOM = 1 +const MADV_REMOVE = 9 +const MADV_SEQUENTIAL = 2 +const MADV_SOFT_OFFLINE = 101 +const MADV_UNMERGEABLE = 13 +const MADV_WILLNEED = 3 +const MADV_WIPEONFORK = 18 +const MFD_ALLOW_SEALING = 2 +const MFD_CLOEXEC = 1 +const MFD_HUGETLB = 4 +const MLOCK_ONFAULT = 1 +const MREMAP_DONTUNMAP = 4 +const MREMAP_FIXED = 2 +const MREMAP_MAYMOVE = 1 +const _GNU_SOURCE = 1 + +func Xmemfd_create(tls *TLS, name uintptr, flags uint32) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v flags=%v, (%v:)", tls, name, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_memfd_create), int64(name), Int64FromUint32(flags))))) +} + +func Xmlock2(tls *TLS, addr uintptr, len1 Tsize_t, flags uint32) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v len1=%v flags=%v, (%v:)", tls, addr, len1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + if flags == uint32(0) { + return Xmlock(tls, addr, len1) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_mlock2), int64(addr), Int64FromUint64(len1), Int64FromUint32(flags))))) +} + +func Xinit_module(tls *TLS, a uintptr, b uint64, c uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v a=%v b=%v c=%v, (%v:)", tls, a, b, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_init_module), int64(a), Int64FromUint64(b), int64(c))))) +} + +func Xdelete_module(tls *TLS, a uintptr, b uint32) (r int32) { + if __ccgo_strace { + trc("tls=%v a=%v b=%v, (%v:)", tls, a, b, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_delete_module), int64(a), Int64FromUint32(b))))) +} + +const BLKBSZGET = 2147488368 +const BLKBSZSET = 1073746545 +const BLKFLSBUF = 4705 +const BLKFRAGET = 4709 +const BLKFRASET = 4708 +const BLKGETSIZE = 4704 +const BLKGETSIZE64 = 2147488370 +const BLKRAGET = 4707 +const BLKRASET = 4706 +const BLKROGET = 4702 +const BLKROSET = 4701 +const BLKRRPART = 4703 +const BLKSECTGET = 4711 +const BLKSECTSET = 4710 +const BLKSSZGET = 4712 +const FIOASYNC = 21586 +const FIOCLEX = 21585 +const FIOGETOWN = 35075 +const FIONBIO = 21537 +const FIONCLEX = 21584 +const FIONREAD = 21531 +const FIOSETOWN = 35073 +const MNT_DETACH = 2 +const MNT_EXPIRE = 4 +const MNT_FORCE = 1 +const MS_ACTIVE = 1073741824 +const MS_BIND = 4096 +const MS_BORN = 536870912 +const MS_DIRSYNC = 128 +const MS_I_VERSION = 8388608 +const MS_KERNMOUNT = 4194304 +const MS_LAZYTIME = 33554432 +const MS_MANDLOCK = 64 +const MS_MGC_MSK = 4294901760 +const MS_MGC_VAL = 3236757504 +const MS_MOVE = 8192 +const MS_NOATIME = 1024 +const MS_NODEV = 4 +const MS_NODIRATIME = 2048 +const MS_NOEXEC = 8 +const MS_NOREMOTELOCK = 134217728 +const MS_NOSEC = 268435456 +const MS_NOSUID = 2 +const MS_NOSYMFOLLOW = 256 +const MS_NOUSER = 2147483648 +const MS_POSIXACL = 65536 +const MS_PRIVATE = 262144 +const MS_RDONLY = 1 +const MS_REC = 16384 +const MS_RELATIME = 2097152 +const MS_REMOUNT = 32 +const MS_RMT_MASK = 41943121 +const MS_SHARED = 1048576 +const MS_SILENT = 32768 +const MS_SLAVE = 524288 +const MS_STRICTATIME = 16777216 +const MS_SYNCHRONOUS = 16 +const MS_UNBINDABLE = 131072 +const N_6PACK = 7 +const N_AX25 = 5 +const N_CAIF = 20 +const N_GIGASET_M101 = 16 +const N_GSM0710 = 21 +const N_HCI = 15 +const N_HDLC = 13 +const N_IRDA = 11 +const N_MASC = 8 +const N_MOUSE = 2 +const N_NCI = 25 +const N_NULL = 27 +const N_PPP = 3 +const N_PPS = 18 +const N_PROFIBUS_FDL = 10 +const N_R3964 = 9 +const N_SLCAN = 17 +const N_SLIP = 1 +const N_SMSBLOCK = 12 +const N_SPEAKUP = 26 +const N_STRIP = 4 +const N_SYNC_PPP = 14 +const N_TI_WL = 22 +const N_TRACEROUTER = 24 +const N_TRACESINK = 23 +const N_TTY = 0 +const N_V253 = 19 +const N_X25 = 6 +const SIOCADDDLCI = 35200 +const SIOCADDMULTI = 35121 +const SIOCADDRT = 35083 +const SIOCATMARK = 35077 +const SIOCDARP = 35155 +const SIOCDELDLCI = 35201 +const SIOCDELMULTI = 35122 +const SIOCDELRT = 35084 +const SIOCDEVPRIVATE = 35312 +const SIOCDIFADDR = 35126 +const SIOCDRARP = 35168 +const SIOCGARP = 35156 +const SIOCGIFADDR = 35093 +const SIOCGIFBR = 35136 +const SIOCGIFBRDADDR = 35097 +const SIOCGIFCONF = 35090 +const SIOCGIFCOUNT = 35128 +const SIOCGIFDSTADDR = 35095 +const SIOCGIFENCAP = 35109 +const SIOCGIFFLAGS = 35091 +const SIOCGIFHWADDR = 35111 +const SIOCGIFINDEX = 35123 +const SIOCGIFMAP = 35184 +const SIOCGIFMEM = 35103 +const SIOCGIFMETRIC = 35101 +const SIOCGIFMTU = 35105 +const SIOCGIFNAME = 35088 +const SIOCGIFNETMASK = 35099 +const SIOCGIFPFLAGS = 35125 +const SIOCGIFSLAVE = 35113 +const SIOCGIFTXQLEN = 35138 +const SIOCGPGRP = 35076 +const SIOCGRARP = 35169 +const SIOCGSTAMP = 35078 +const SIOCGSTAMPNS = 35079 +const SIOCPROTOPRIVATE = 35296 +const SIOCRTMSG = 35085 +const SIOCSARP = 35157 +const SIOCSIFADDR = 35094 +const SIOCSIFBR = 35137 +const SIOCSIFBRDADDR = 35098 +const SIOCSIFDSTADDR = 35096 +const SIOCSIFENCAP = 35110 +const SIOCSIFFLAGS = 35092 +const SIOCSIFHWADDR = 35108 +const SIOCSIFHWBROADCAST = 35127 +const SIOCSIFLINK = 35089 +const SIOCSIFMAP = 35185 +const SIOCSIFMEM = 35104 +const SIOCSIFMETRIC = 35102 +const SIOCSIFMTU = 35106 +const SIOCSIFNAME = 35107 +const SIOCSIFNETMASK = 35100 +const SIOCSIFPFLAGS = 35124 +const SIOCSIFSLAVE = 35120 +const SIOCSIFTXQLEN = 35139 +const SIOCSPGRP = 35074 +const SIOCSRARP = 35170 +const SIOGIFINDEX = 35123 +const TCFLSH = 21515 +const TCGETA = 21509 +const TCGETS = 21505 +const TCGETX = 21554 +const TCSBRK = 21513 +const TCSBRKP = 21541 +const TCSETA = 21510 +const TCSETAF = 21512 +const TCSETAW = 21511 +const TCSETS = 21506 +const TCSETSF = 21508 +const TCSETSW = 21507 +const TCSETX = 21555 +const TCSETXF = 21556 +const TCSETXW = 21557 +const TCXONC = 21514 +const TIOCCBRK = 21544 +const TIOCCONS = 21533 +const TIOCEXCL = 21516 +const TIOCGDEV = 2147767346 +const TIOCGETD = 21540 +const TIOCGEXCL = 2147767360 +const TIOCGICOUNT = 21597 +const TIOCGISO7816 = 2150126658 +const TIOCGLCKTRMIOS = 21590 +const TIOCGPGRP = 21519 +const TIOCGPKT = 2147767352 +const TIOCGPTLCK = 2147767353 +const TIOCGPTN = 2147767344 +const TIOCGPTPEER = 21569 +const TIOCGRS485 = 21550 +const TIOCGSERIAL = 21534 +const TIOCGSID = 21545 +const TIOCGSOFTCAR = 21529 +const TIOCGWINSZ = 21523 +const TIOCINQ = 21531 +const TIOCLINUX = 21532 +const TIOCMBIC = 21527 +const TIOCMBIS = 21526 +const TIOCMGET = 21525 +const TIOCMIWAIT = 21596 +const TIOCMSET = 21528 +const TIOCM_CAR = 64 +const TIOCM_CD = 64 +const TIOCM_CTS = 32 +const TIOCM_DSR = 256 +const TIOCM_DTR = 2 +const TIOCM_LE = 1 +const TIOCM_LOOP = 32768 +const TIOCM_OUT1 = 8192 +const TIOCM_OUT2 = 16384 +const TIOCM_RI = 128 +const TIOCM_RNG = 128 +const TIOCM_RTS = 4 +const TIOCM_SR = 16 +const TIOCM_ST = 8 +const TIOCNOTTY = 21538 +const TIOCNXCL = 21517 +const TIOCOUTQ = 21521 +const TIOCPKT = 21536 +const TIOCPKT_DATA = 0 +const TIOCPKT_DOSTOP = 32 +const TIOCPKT_FLUSHREAD = 1 +const TIOCPKT_FLUSHWRITE = 2 +const TIOCPKT_IOCTL = 64 +const TIOCPKT_NOSTOP = 16 +const TIOCPKT_START = 8 +const TIOCPKT_STOP = 4 +const TIOCSBRK = 21543 +const TIOCSCTTY = 21518 +const TIOCSERCONFIG = 21587 +const TIOCSERGETLSR = 21593 +const TIOCSERGETMULTI = 21594 +const TIOCSERGSTRUCT = 21592 +const TIOCSERGWILD = 21588 +const TIOCSERSETMULTI = 21595 +const TIOCSERSWILD = 21589 +const TIOCSER_TEMT = 1 +const TIOCSETD = 21539 +const TIOCSIG = 1074025526 +const TIOCSISO7816 = 3223868483 +const TIOCSLCKTRMIOS = 21591 +const TIOCSPGRP = 21520 +const TIOCSPTLCK = 1074025521 +const TIOCSRS485 = 21551 +const TIOCSSERIAL = 21535 +const TIOCSSOFTCAR = 21530 +const TIOCSTI = 21522 +const TIOCSWINSZ = 21524 +const TIOCVHANGUP = 21559 +const UMOUNT_NOFOLLOW = 8 +const _IOC_NONE = 0 +const _IOC_READ = 2 +const _IOC_WRITE = 1 + +func Xmount(tls *TLS, special uintptr, dir uintptr, fstype uintptr, flags uint64, data uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v special=%v dir=%v fstype=%v flags=%v data=%v, (%v:)", tls, special, dir, fstype, flags, data, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_mount), int64(special), int64(dir), int64(fstype), Int64FromUint64(flags), int64(data))))) +} + +func Xumount(tls *TLS, special uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v special=%v, (%v:)", tls, special, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_umount2), int64(special), int64(Int32FromInt32(0)))))) +} + +func Xumount2(tls *TLS, special uintptr, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v special=%v flags=%v, (%v:)", tls, special, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_umount2), int64(special), int64(flags))))) +} + +func Xname_to_handle_at(tls *TLS, dirfd int32, pathname uintptr, handle uintptr, mount_id uintptr, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v dirfd=%v pathname=%v handle=%v mount_id=%v flags=%v, (%v:)", tls, dirfd, pathname, handle, mount_id, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_name_to_handle_at), int64(dirfd), int64(pathname), int64(handle), int64(mount_id), int64(flags))))) +} + +func Xopen_by_handle_at(tls *TLS, mount_fd int32, handle uintptr, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v mount_fd=%v handle=%v flags=%v, (%v:)", tls, mount_fd, handle, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_open_by_handle_at), int64(mount_fd), int64(handle), int64(flags))))) +} + +const ADDR_COMPAT_LAYOUT = 2097152 +const ADDR_LIMIT_32BIT = 8388608 +const ADDR_LIMIT_3GB = 134217728 +const ADDR_NO_RANDOMIZE = 262144 +const FDPIC_FUNCPTRS = 524288 +const MMAP_PAGE_ZERO = 1048576 +const PER_BSD = 6 +const PER_HPUX = 16 +const PER_IRIX32 = 67108873 +const PER_IRIX64 = 67108875 +const PER_IRIXN32 = 67108874 +const PER_ISCR4 = 67108869 +const PER_LINUX = 0 +const PER_LINUX32 = 8 +const PER_LINUX32_3GB = 134217736 +const PER_LINUX_32BIT = 8388608 +const PER_LINUX_FDPIC = 524288 +const PER_MASK = 255 +const PER_OSF4 = 15 +const PER_OSR5 = 100663299 +const PER_RISCOS = 12 +const PER_SCOSVR3 = 117440515 +const PER_SOLARIS = 67108877 +const PER_SUNOS = 67108870 +const PER_SVR3 = 83886082 +const PER_SVR4 = 68157441 +const PER_UW7 = 68157454 +const PER_WYSEV386 = 83886084 +const PER_XENIX = 83886087 +const READ_IMPLIES_EXEC = 4194304 +const SHORT_INODE = 16777216 +const STICKY_TIMEOUTS = 67108864 +const UNAME26 = 131072 +const WHOLE_SECONDS = 33554432 + +func Xpersonality(tls *TLS, persona uint64) (r int32) { + if __ccgo_strace { + trc("tls=%v persona=%v, (%v:)", tls, persona, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_personality), Int64FromUint64(persona))))) +} + +func Xpivot_root(tls *TLS, new1 uintptr, old uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v new1=%v old=%v, (%v:)", tls, new1, old, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_pivot_root), int64(new1), int64(old))))) +} + +const PR_CAPBSET_DROP = 24 +const PR_CAPBSET_READ = 23 +const PR_CAP_AMBIENT = 47 +const PR_CAP_AMBIENT_CLEAR_ALL = 4 +const PR_CAP_AMBIENT_IS_SET = 1 +const PR_CAP_AMBIENT_LOWER = 3 +const PR_CAP_AMBIENT_RAISE = 2 +const PR_ENDIAN_BIG = 0 +const PR_ENDIAN_LITTLE = 1 +const PR_ENDIAN_PPC_LITTLE = 2 +const PR_FPEMU_NOPRINT = 1 +const PR_FPEMU_SIGFPE = 2 +const PR_FP_EXC_ASYNC = 2 +const PR_FP_EXC_DISABLED = 0 +const PR_FP_EXC_DIV = 65536 +const PR_FP_EXC_INV = 1048576 +const PR_FP_EXC_NONRECOV = 1 +const PR_FP_EXC_OVF = 131072 +const PR_FP_EXC_PRECISE = 3 +const PR_FP_EXC_RES = 524288 +const PR_FP_EXC_SW_ENABLE = 128 +const PR_FP_EXC_UND = 262144 +const PR_FP_MODE_FR = 1 +const PR_FP_MODE_FRE = 2 +const PR_GET_CHILD_SUBREAPER = 37 +const PR_GET_DUMPABLE = 3 +const PR_GET_ENDIAN = 19 +const PR_GET_FPEMU = 9 +const PR_GET_FPEXC = 11 +const PR_GET_FP_MODE = 46 +const PR_GET_IO_FLUSHER = 58 +const PR_GET_KEEPCAPS = 7 +const PR_GET_NAME = 16 +const PR_GET_NO_NEW_PRIVS = 39 +const PR_GET_PDEATHSIG = 2 +const PR_GET_SECCOMP = 21 +const PR_GET_SECUREBITS = 27 +const PR_GET_SPECULATION_CTRL = 52 +const PR_GET_TAGGED_ADDR_CTRL = 56 +const PR_GET_THP_DISABLE = 42 +const PR_GET_TID_ADDRESS = 40 +const PR_GET_TIMERSLACK = 30 +const PR_GET_TIMING = 13 +const PR_GET_TSC = 25 +const PR_GET_UNALIGN = 5 +const PR_MCE_KILL = 33 +const PR_MCE_KILL_CLEAR = 0 +const PR_MCE_KILL_DEFAULT = 2 +const PR_MCE_KILL_EARLY = 1 +const PR_MCE_KILL_GET = 34 +const PR_MCE_KILL_LATE = 0 +const PR_MCE_KILL_SET = 1 +const PR_MPX_DISABLE_MANAGEMENT = 44 +const PR_MPX_ENABLE_MANAGEMENT = 43 +const PR_MTE_TAG_MASK = 524280 +const PR_MTE_TAG_SHIFT = 3 +const PR_MTE_TCF_ASYNC = 4 +const PR_MTE_TCF_MASK = 6 +const PR_MTE_TCF_NONE = 0 +const PR_MTE_TCF_SHIFT = 1 +const PR_MTE_TCF_SYNC = 2 +const PR_PAC_APDAKEY = 4 +const PR_PAC_APDBKEY = 8 +const PR_PAC_APGAKEY = 16 +const PR_PAC_APIAKEY = 1 +const PR_PAC_APIBKEY = 2 +const PR_PAC_GET_ENABLED_KEYS = 61 +const PR_PAC_RESET_KEYS = 54 +const PR_PAC_SET_ENABLED_KEYS = 60 +const PR_SET_CHILD_SUBREAPER = 36 +const PR_SET_DUMPABLE = 4 +const PR_SET_ENDIAN = 20 +const PR_SET_FPEMU = 10 +const PR_SET_FPEXC = 12 +const PR_SET_FP_MODE = 45 +const PR_SET_IO_FLUSHER = 57 +const PR_SET_KEEPCAPS = 8 +const PR_SET_MM = 35 +const PR_SET_MM_ARG_END = 9 +const PR_SET_MM_ARG_START = 8 +const PR_SET_MM_AUXV = 12 +const PR_SET_MM_BRK = 7 +const PR_SET_MM_END_CODE = 2 +const PR_SET_MM_END_DATA = 4 +const PR_SET_MM_ENV_END = 11 +const PR_SET_MM_ENV_START = 10 +const PR_SET_MM_EXE_FILE = 13 +const PR_SET_MM_MAP = 14 +const PR_SET_MM_MAP_SIZE = 15 +const PR_SET_MM_START_BRK = 6 +const PR_SET_MM_START_CODE = 1 +const PR_SET_MM_START_DATA = 3 +const PR_SET_MM_START_STACK = 5 +const PR_SET_NAME = 15 +const PR_SET_NO_NEW_PRIVS = 38 +const PR_SET_PDEATHSIG = 1 +const PR_SET_PTRACER = 1499557217 +const PR_SET_PTRACER_ANY = 18446744073709551615 +const PR_SET_SECCOMP = 22 +const PR_SET_SECUREBITS = 28 +const PR_SET_SPECULATION_CTRL = 53 +const PR_SET_SYSCALL_USER_DISPATCH = 59 +const PR_SET_TAGGED_ADDR_CTRL = 55 +const PR_SET_THP_DISABLE = 41 +const PR_SET_TIMERSLACK = 29 +const PR_SET_TIMING = 14 +const PR_SET_TSC = 26 +const PR_SET_UNALIGN = 6 +const PR_SPEC_DISABLE = 4 +const PR_SPEC_DISABLE_NOEXEC = 16 +const PR_SPEC_ENABLE = 2 +const PR_SPEC_FORCE_DISABLE = 8 +const PR_SPEC_INDIRECT_BRANCH = 1 +const PR_SPEC_NOT_AFFECTED = 0 +const PR_SPEC_PRCTL = 1 +const PR_SPEC_STORE_BYPASS = 0 +const PR_SVE_GET_VL = 51 +const PR_SVE_SET_VL = 50 +const PR_SVE_SET_VL_ONEXEC = 262144 +const PR_SVE_VL_INHERIT = 131072 +const PR_SVE_VL_LEN_MASK = 65535 +const PR_SYS_DISPATCH_OFF = 0 +const PR_SYS_DISPATCH_ON = 1 +const PR_TAGGED_ADDR_ENABLE = 1 +const PR_TASK_PERF_EVENTS_DISABLE = 31 +const PR_TASK_PERF_EVENTS_ENABLE = 32 +const PR_TIMING_STATISTICAL = 0 +const PR_TIMING_TIMESTAMP = 1 +const PR_TSC_ENABLE = 1 +const PR_TSC_SIGSEGV = 2 +const PR_UNALIGN_NOPRINT = 1 +const PR_UNALIGN_SIGBUS = 2 +const SYSCALL_DISPATCH_FILTER_ALLOW = 0 +const SYSCALL_DISPATCH_FILTER_BLOCK = 1 + +type Tprctl_mm_map = struct { + Fstart_code Tuint64_t + Fend_code Tuint64_t + Fstart_data Tuint64_t + Fend_data Tuint64_t + Fstart_brk Tuint64_t + Fbrk Tuint64_t + Fstart_stack Tuint64_t + Farg_start Tuint64_t + Farg_end Tuint64_t + Fenv_start Tuint64_t + Fenv_end Tuint64_t + Fauxv uintptr + Fauxv_size Tuint32_t + Fexe_fd Tuint32_t +} + +func Xprctl(tls *TLS, op int32, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v op=%v va=%v, (%v:)", tls, op, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var i int32 + var x [4]uint64 + _, _, _ = ap, i, x + ap = va + i = 0 + for { + if !(i < int32(4)) { + break + } + x[i] = VaUint64(&ap) + goto _1 + _1: + ; + i = i + 1 + } + _ = ap + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_prctl), int64(op), Int64FromUint64(x[0]), Int64FromUint64(x[int32(1)]), Int64FromUint64(x[int32(2)]), Int64FromUint64(x[int32(3)]))))) +} + +const RWF_APPEND = 16 +const RWF_DSYNC = 2 +const RWF_HIPRI = 1 +const RWF_NOWAIT = 8 +const RWF_SYNC = 4 +const UIO_MAXIOV = 1024 + +func Xpreadv2(tls *TLS, fd int32, iov uintptr, count int32, ofs Toff_t, flags int32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v iov=%v count=%v ofs=%v flags=%v, (%v:)", tls, fd, iov, count, ofs, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + if !(flags != 0) { + if ofs == int64(-int32(1)) { + return Xreadv(tls, fd, iov, count) + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_preadv), int64(fd), int64(iov), int64(count), ofs, ofs>>Int32FromInt32(32), 0))) + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_preadv2), int64(fd), int64(iov), int64(count), ofs, ofs>>Int32FromInt32(32), int64(flags)))) +} + +func Xprlimit(tls *TLS, pid Tpid_t, resource int32, new_limit uintptr, old_limit uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v pid=%v resource=%v new_limit=%v old_limit=%v, (%v:)", tls, pid, resource, new_limit, old_limit, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var r int32 + var _ /* tmp at bp+0 */ Trlimit + _ = r + if new_limit != 0 && Bool(^Uint64FromUint64(0) != ^Uint64FromUint64(0)) { + **(**Trlimit)(__ccgo_up(bp)) = **(**Trlimit)(__ccgo_up(new_limit)) + if (**(**Trlimit)(__ccgo_up(bp))).Frlim_cur >= ^Uint64FromUint64(0) { + (**(**Trlimit)(__ccgo_up(bp))).Frlim_cur = ^Uint64FromUint64(0) + } + if (**(**Trlimit)(__ccgo_up(bp))).Frlim_max >= ^Uint64FromUint64(0) { + (**(**Trlimit)(__ccgo_up(bp))).Frlim_max = ^Uint64FromUint64(0) + } + new_limit = bp + } + r = int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_prlimit64), int64(pid), int64(resource), int64(new_limit), int64(old_limit))))) + if !(r != 0) && old_limit != 0 && Bool(^Uint64FromUint64(0) != ^Uint64FromUint64(0)) { + if (*Trlimit)(unsafe.Pointer(old_limit)).Frlim_cur >= ^Uint64FromUint64(0) { + (*Trlimit)(unsafe.Pointer(old_limit)).Frlim_cur = ^Uint64FromUint64(0) + } + if (*Trlimit)(unsafe.Pointer(old_limit)).Frlim_max >= ^Uint64FromUint64(0) { + (*Trlimit)(unsafe.Pointer(old_limit)).Frlim_max = ^Uint64FromUint64(0) + } + } + return r +} + +func Xprocess_vm_writev(tls *TLS, pid Tpid_t, lvec uintptr, liovcnt uint64, rvec uintptr, riovcnt uint64, flags uint64) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v pid=%v lvec=%v liovcnt=%v rvec=%v riovcnt=%v flags=%v, (%v:)", tls, pid, lvec, liovcnt, rvec, riovcnt, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall6(tls, int64(SYS_process_vm_writev), int64(pid), int64(lvec), Int64FromUint64(liovcnt), int64(rvec), Int64FromUint64(riovcnt), Int64FromUint64(flags)))) +} + +func Xprocess_vm_readv(tls *TLS, pid Tpid_t, lvec uintptr, liovcnt uint64, rvec uintptr, riovcnt uint64, flags uint64) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v pid=%v lvec=%v liovcnt=%v rvec=%v riovcnt=%v flags=%v, (%v:)", tls, pid, lvec, liovcnt, rvec, riovcnt, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall6(tls, int64(SYS_process_vm_readv), int64(pid), int64(lvec), Int64FromUint64(liovcnt), int64(rvec), Int64FromUint64(riovcnt), Int64FromUint64(flags)))) +} + +const PTRACE_ATTACH = 16 +const PTRACE_CONT = 7 +const PTRACE_DETACH = 17 +const PTRACE_DISABLE_TE = 20496 +const PTRACE_ENABLE_TE = 20489 +const PTRACE_EVENT_CLONE = 3 +const PTRACE_EVENT_EXEC = 4 +const PTRACE_EVENT_EXIT = 6 +const PTRACE_EVENT_FORK = 1 +const PTRACE_EVENT_SECCOMP = 7 +const PTRACE_EVENT_STOP = 128 +const PTRACE_EVENT_VFORK = 2 +const PTRACE_EVENT_VFORK_DONE = 5 +const PTRACE_GETEVENTMSG = 16897 +const PTRACE_GETFPREGS = 14 +const PTRACE_GETFPXREGS = 18 +const PTRACE_GETREGS = 12 +const PTRACE_GETREGSET = 16900 +const PTRACE_GETSIGINFO = 16898 +const PTRACE_GETSIGMASK = 16906 +const PTRACE_GET_LAST_BREAK = 20486 +const PTRACE_GET_RSEQ_CONFIGURATION = 16911 +const PTRACE_GET_SYSCALL_INFO = 16910 +const PTRACE_INTERRUPT = 16903 +const PTRACE_KILL = 8 +const PTRACE_LISTEN = 16904 +const PTRACE_OLDSETOPTIONS = 21 +const PTRACE_O_EXITKILL = 1048576 +const PTRACE_O_MASK = 3145983 +const PTRACE_O_SUSPEND_SECCOMP = 2097152 +const PTRACE_O_TRACECLONE = 8 +const PTRACE_O_TRACEEXEC = 16 +const PTRACE_O_TRACEEXIT = 64 +const PTRACE_O_TRACEFORK = 2 +const PTRACE_O_TRACESECCOMP = 128 +const PTRACE_O_TRACESYSGOOD = 1 +const PTRACE_O_TRACEVFORK = 4 +const PTRACE_O_TRACEVFORKDONE = 32 +const PTRACE_PEEKDATA = 2 +const PTRACE_PEEKSIGINFO = 16905 +const PTRACE_PEEKSIGINFO_SHARED = 1 +const PTRACE_PEEKTEXT = 1 +const PTRACE_PEEKUSER = 3 +const PTRACE_PEEKUSR_AREA = 20480 +const PTRACE_POKEDATA = 5 +const PTRACE_POKETEXT = 4 +const PTRACE_POKEUSER = 6 +const PTRACE_POKEUSR_AREA = 20481 +const PTRACE_SECCOMP_GET_FILTER = 16908 +const PTRACE_SECCOMP_GET_METADATA = 16909 +const PTRACE_SEIZE = 16902 +const PTRACE_SETFPREGS = 15 +const PTRACE_SETFPXREGS = 19 +const PTRACE_SETOPTIONS = 16896 +const PTRACE_SETREGS = 13 +const PTRACE_SETREGSET = 16901 +const PTRACE_SETSIGINFO = 16899 +const PTRACE_SETSIGMASK = 16907 +const PTRACE_SINGLEBLOCK = 12 +const PTRACE_SINGLESTEP = 9 +const PTRACE_SYSCALL = 24 +const PTRACE_SYSCALL_INFO_ENTRY = 1 +const PTRACE_SYSCALL_INFO_EXIT = 2 +const PTRACE_SYSCALL_INFO_NONE = 0 +const PTRACE_SYSCALL_INFO_SECCOMP = 3 +const PTRACE_SYSEMU = 31 +const PTRACE_SYSEMU_SINGLESTEP = 32 +const PTRACE_TE_ABORT_RAND = 20497 +const PTRACE_TRACEME = 0 +const PT_ATTACH = 16 +const PT_CONTINUE = 7 +const PT_DETACH = 17 +const PT_GETEVENTMSG = 16897 +const PT_GETFPREGS = 14 +const PT_GETFPXREGS = 18 +const PT_GETREGS = 12 +const PT_GETSIGINFO = 16898 +const PT_KILL = 8 +const PT_READ_D = 2 +const PT_READ_I = 1 +const PT_READ_U = 3 +const PT_SETFPREGS = 15 +const PT_SETFPXREGS = 19 +const PT_SETOPTIONS = 16896 +const PT_SETREGS = 13 +const PT_SETSIGINFO = 16899 +const PT_STEP = 9 +const PT_STEPBLOCK = 12 +const PT_SYSCALL = 24 +const PT_TRACE_ME = 0 +const PT_WRITE_D = 5 +const PT_WRITE_I = 4 +const PT_WRITE_U = 6 + +type t__ptrace_peeksiginfo_args = struct { + Foff Tuint64_t + Fflags Tuint32_t + Fnr Tint32_t +} + +type t__ptrace_seccomp_metadata = struct { + Ffilter_off Tuint64_t + Fflags Tuint64_t +} + +type t__ptrace_syscall_info = struct { + Fop Tuint8_t + F__pad [3]Tuint8_t + Farch Tuint32_t + Finstruction_pointer Tuint64_t + Fstack_pointer Tuint64_t + F__ccgo5_24 struct { + Fexit [0]struct { + Frval Tint64_t + Fis_error Tuint8_t + } + Fseccomp [0]struct { + Fnr Tuint64_t + Fargs [6]Tuint64_t + Fret_data Tuint32_t + } + Fentry struct { + Fnr Tuint64_t + Fargs [6]Tuint64_t + } + F__ccgo_pad3 [8]byte + } +} + +type t__ptrace_rseq_configuration = struct { + Frseq_abi_pointer Tuint64_t + Frseq_abi_size Tuint32_t + Fsignature Tuint32_t + Fflags Tuint32_t + Fpad Tuint32_t +} + +func Xptrace(tls *TLS, req int32, va uintptr) (r int64) { + if __ccgo_strace { + trc("tls=%v req=%v va=%v, (%v:)", tls, req, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var addr, addr2, data uintptr + var ap Tva_list + var pid Tpid_t + var ret int64 + var _ /* result at bp+0 */ int64 + _, _, _, _, _, _ = addr, addr2, ap, data, pid, ret + addr2 = uintptr(0) + ap = va + pid = VaInt32(&ap) + addr = VaUintptr(&ap) + data = VaUintptr(&ap) + /* PTRACE_{READ,WRITE}{DATA,TEXT} (16...19) are specific to SPARC. */ + _ = ap + if Uint32FromInt32(req)-uint32(1) < uint32(3) { + data = bp + } + ret = X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_ptrace), int64(req), int64(pid), int64(addr), int64(data), int64(addr2)))) + if ret < 0 || Uint32FromInt32(req)-uint32(1) >= uint32(3) { + return ret + } + return **(**int64)(__ccgo_up(bp)) +} + +func Xpwritev2(tls *TLS, fd int32, iov uintptr, count int32, ofs Toff_t, flags int32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v iov=%v count=%v ofs=%v flags=%v, (%v:)", tls, fd, iov, count, ofs, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + if !(flags != 0) { + if ofs == int64(-int32(1)) { + return Xwritev(tls, fd, iov, count) + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_pwritev), int64(fd), int64(iov), int64(count), ofs, ofs>>Int32FromInt32(32), 0))) + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_pwritev2), int64(fd), int64(iov), int64(count), ofs, ofs>>Int32FromInt32(32), int64(flags)))) +} + +const GRPQUOTA = 1 +const IIF_ALL = 7 +const IIF_BGRACE = 1 +const IIF_FLAGS = 4 +const IIF_IGRACE = 2 +const MAXQUOTAS = 2 +const MAX_DQ_TIME = 604800 +const MAX_IQ_TIME = 604800 +const NR_DQHASH = 43 +const NR_DQUOTS = 256 +const QFMT_OCFS2 = 3 +const QFMT_VFS_OLD = 1 +const QFMT_VFS_V0 = 2 +const QFMT_VFS_V1 = 4 +const QIF_ALL = 63 +const QIF_BLIMITS = 1 +const QIF_BTIME = 16 +const QIF_ILIMITS = 4 +const QIF_INODES = 8 +const QIF_ITIME = 32 +const QIF_LIMITS = 5 +const QIF_SPACE = 2 +const QIF_TIMES = 48 +const QIF_USAGE = 10 +const QUOTAFILENAME = "quota" +const QUOTAGROUP = "staff" +const Q_GETFMT = 8388612 +const Q_GETINFO = 8388613 +const Q_GETQUOTA = 8388615 +const Q_QUOTAOFF = 8388611 +const Q_QUOTAON = 8388610 +const Q_SETINFO = 8388614 +const Q_SETQUOTA = 8388616 +const Q_SYNC = 8388609 +const SUBCMDMASK = 255 +const SUBCMDSHIFT = 8 +const USRQUOTA = 0 +const _LINUX_QUOTA_VERSION = 2 + +type Tdqblk = struct { + Fdqb_bhardlimit Tuint64_t + Fdqb_bsoftlimit Tuint64_t + Fdqb_curspace Tuint64_t + Fdqb_ihardlimit Tuint64_t + Fdqb_isoftlimit Tuint64_t + Fdqb_curinodes Tuint64_t + Fdqb_btime Tuint64_t + Fdqb_itime Tuint64_t + Fdqb_valid Tuint32_t +} + +type Tdqinfo = struct { + Fdqi_bgrace Tuint64_t + Fdqi_igrace Tuint64_t + Fdqi_flags Tuint32_t + Fdqi_valid Tuint32_t +} + +func Xquotactl(tls *TLS, cmd int32, special uintptr, id int32, addr uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v cmd=%v special=%v id=%v addr=%v, (%v:)", tls, cmd, special, id, addr, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_quotactl), int64(cmd), int64(special), int64(id), int64(addr))))) +} + +func Xreadahead(tls *TLS, fd int32, pos Toff_t, len1 Tsize_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v pos=%v len1=%v, (%v:)", tls, fd, pos, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_readahead), int64(fd), pos, Int64FromUint64(len1)))) +} + +const RB_AUTOBOOT = 19088743 +const RB_DISABLE_CAD = 0 +const RB_ENABLE_CAD = 2309737967 +const RB_HALT_SYSTEM = 3454992675 +const RB_KEXEC = 1163412803 +const RB_POWER_OFF = 1126301404 +const RB_SW_SUSPEND = 3489725666 + +func Xreboot(tls *TLS, type1 int32) (r int32) { + if __ccgo_strace { + trc("tls=%v type1=%v, (%v:)", tls, type1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_reboot), Int64FromUint32(Uint32FromUint32(0xfee1dead)), int64(Int32FromInt32(672274793)), int64(type1))))) +} + +func Xremap_file_pages(tls *TLS, addr uintptr, size Tsize_t, prot int32, pgoff Tsize_t, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v size=%v prot=%v pgoff=%v flags=%v, (%v:)", tls, addr, size, prot, pgoff, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_remap_file_pages), int64(addr), Int64FromUint64(size), int64(prot), Int64FromUint64(pgoff), int64(flags))))) +} + +func Xsbrk(tls *TLS, inc Tintptr_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v inc=%v, (%v:)", tls, inc, origin(2)) + defer func() { trc("-> %v", r) }() + } + if inc != 0 { + return uintptr(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(ENOMEM)))) + } + return uintptr(X__syscall1(tls, int64(SYS_brk), int64(Int32FromInt32(0)))) +} + +func Xsendfile(tls *TLS, out_fd int32, in_fd int32, ofs uintptr, count Tsize_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v out_fd=%v in_fd=%v ofs=%v count=%v, (%v:)", tls, out_fd, in_fd, ofs, count, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_sendfile), int64(out_fd), int64(in_fd), int64(ofs), Int64FromUint64(count)))) +} + +func Xsetfsgid(tls *TLS, gid Tgid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v gid=%v, (%v:)", tls, gid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_setfsgid), Int64FromUint32(gid))))) +} + +func Xsetfsuid(tls *TLS, uid Tuid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v uid=%v, (%v:)", tls, uid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_setfsuid), Int64FromUint32(uid))))) +} + +func Xsethostname(tls *TLS, name uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v len1=%v, (%v:)", tls, name, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_sethostname), int64(name), Int64FromUint64(len1))))) +} + +const CLONE_CHILD_CLEARTID = 2097152 +const CLONE_CHILD_SETTID = 16777216 +const CLONE_DETACHED = 4194304 +const CLONE_FILES = 1024 +const CLONE_FS = 512 +const CLONE_IO = 2147483648 +const CLONE_NEWCGROUP = 33554432 +const CLONE_NEWIPC = 134217728 +const CLONE_NEWNET = 1073741824 +const CLONE_NEWNS = 131072 +const CLONE_NEWPID = 536870912 +const CLONE_NEWTIME = 128 +const CLONE_NEWUSER = 268435456 +const CLONE_NEWUTS = 67108864 +const CLONE_PARENT = 32768 +const CLONE_PARENT_SETTID = 1048576 +const CLONE_PIDFD = 4096 +const CLONE_PTRACE = 8192 +const CLONE_SETTLS = 524288 +const CLONE_SIGHAND = 2048 +const CLONE_SYSVSEM = 262144 +const CLONE_THREAD = 65536 +const CLONE_UNTRACED = 8388608 +const CLONE_VFORK = 16384 +const CLONE_VM = 256 +const CPU_SETSIZE = 1024 +const CSIGNAL = 255 + +type Tcpu_set_t = struct { + F__bits [16]uint64 +} + +func Xsetns(tls *TLS, fd int32, nstype int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v nstype=%v, (%v:)", tls, fd, nstype, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_setns), int64(fd), int64(nstype))))) +} + +const __tm_gmtoff = 0 +const __tm_zone = 0 + +type Ttm1 = struct { + Ftm_sec int32 + Ftm_min int32 + Ftm_hour int32 + Ftm_mday int32 + Ftm_mon int32 + Ftm_year int32 + Ftm_wday int32 + Ftm_yday int32 + Ftm_isdst int32 + Ftm_gmtoff int64 + Ftm_zone uintptr +} + +func Xsettimeofday(tls *TLS, tv uintptr, tz uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v tv=%v tz=%v, (%v:)", tls, tv, tz, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + if !(tv != 0) { + return 0 + } + if Uint64FromInt64((*Ttimeval)(unsafe.Pointer(tv)).Ftv_usec) >= uint64(1000000) { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL)))) + } + *(*Ttimespec)(unsafe.Pointer(bp)) = Ttimespec{ + Ftv_sec: (*Ttimeval)(unsafe.Pointer(tv)).Ftv_sec, + Ftv_nsec: (*Ttimeval)(unsafe.Pointer(tv)).Ftv_usec * int64(1000), + } + return Xclock_settime(tls, CLOCK_REALTIME, bp) +} + +const SFD_CLOEXEC = 524288 +const SFD_NONBLOCK = 2048 + +type Tsignalfd_siginfo = struct { + Fssi_signo Tuint32_t + Fssi_errno Tint32_t + Fssi_code Tint32_t + Fssi_pid Tuint32_t + Fssi_uid Tuint32_t + Fssi_fd Tint32_t + Fssi_tid Tuint32_t + Fssi_band Tuint32_t + Fssi_overrun Tuint32_t + Fssi_trapno Tuint32_t + Fssi_status Tint32_t + Fssi_int Tint32_t + Fssi_ptr Tuint64_t + Fssi_utime Tuint64_t + Fssi_stime Tuint64_t + Fssi_addr Tuint64_t + Fssi_addr_lsb Tuint16_t + F__pad2 Tuint16_t + Fssi_syscall Tint32_t + Fssi_call_addr Tuint64_t + Fssi_arch Tuint32_t + F__pad [28]Tuint8_t +} + +func Xsignalfd(tls *TLS, fd int32, sigs uintptr, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v sigs=%v flags=%v, (%v:)", tls, fd, sigs, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret int32 + _ = ret + ret = int32(X__syscall4(tls, int64(SYS_signalfd4), int64(fd), int64(sigs), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8)), int64(flags))) + if ret != -int32(ENOSYS) { + return int32(X__syscall_ret(tls, Uint64FromInt32(ret))) + } + ret = int32(X__syscall3(tls, int64(SYS_signalfd), int64(fd), int64(sigs), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8)))) + if ret >= 0 { + if flags&int32(O_CLOEXEC) != 0 { + X__syscall3(tls, int64(SYS_fcntl), int64(ret), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + } + if flags&int32(O_NONBLOCK) != 0 { + X__syscall3(tls, int64(SYS_fcntl), int64(ret), int64(Int32FromInt32(F_SETFL)), int64(Int32FromInt32(O_NONBLOCK))) + } + } + return int32(X__syscall_ret(tls, Uint64FromInt32(ret))) +} + +func Xsplice(tls *TLS, fd_in int32, off_in uintptr, fd_out int32, off_out uintptr, len1 Tsize_t, flags uint32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd_in=%v off_in=%v fd_out=%v off_out=%v len1=%v flags=%v, (%v:)", tls, fd_in, off_in, fd_out, off_out, len1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall6(tls, int64(SYS_splice), int64(fd_in), int64(off_in), int64(fd_out), int64(off_out), Int64FromUint64(len1), Int64FromUint32(flags)))) +} + +func Xstatx(tls *TLS, dirfd int32, path uintptr, flags int32, mask uint32, stx uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v dirfd=%v path=%v flags=%v mask=%v stx=%v, (%v:)", tls, dirfd, path, flags, mask, stx, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(144) + defer tls.Free(144) + var ret int32 + var _ /* st at bp+0 */ Tstat + _ = ret + ret = int32(X__syscall5(tls, int64(SYS_statx), int64(dirfd), int64(path), int64(flags), Int64FromUint32(mask), int64(stx))) + if ret != -int32(ENOSYS) { + return int32(X__syscall_ret(tls, Uint64FromInt32(ret))) + } + ret = Xfstatat(tls, dirfd, path, bp, flags) + if ret != 0 { + return ret + } + (*Tstatx)(unsafe.Pointer(stx)).Fstx_dev_major = uint32((**(**Tstat)(__ccgo_up(bp))).Fst_dev>>Int32FromInt32(31)>>Int32FromInt32(1)&Uint64FromUint32(0xfffff000) | (**(**Tstat)(__ccgo_up(bp))).Fst_dev>>Int32FromInt32(8)&Uint64FromInt32(0x00000fff)) + (*Tstatx)(unsafe.Pointer(stx)).Fstx_dev_minor = uint32((**(**Tstat)(__ccgo_up(bp))).Fst_dev>>Int32FromInt32(12)&Uint64FromUint32(0xffffff00) | (**(**Tstat)(__ccgo_up(bp))).Fst_dev&Uint64FromInt32(0x000000ff)) + (*Tstatx)(unsafe.Pointer(stx)).Fstx_ino = (**(**Tstat)(__ccgo_up(bp))).Fst_ino + (*Tstatx)(unsafe.Pointer(stx)).Fstx_mode = uint16((**(**Tstat)(__ccgo_up(bp))).Fst_mode) + (*Tstatx)(unsafe.Pointer(stx)).Fstx_nlink = uint32((**(**Tstat)(__ccgo_up(bp))).Fst_nlink) + (*Tstatx)(unsafe.Pointer(stx)).Fstx_uid = (**(**Tstat)(__ccgo_up(bp))).Fst_uid + (*Tstatx)(unsafe.Pointer(stx)).Fstx_gid = (**(**Tstat)(__ccgo_up(bp))).Fst_gid + (*Tstatx)(unsafe.Pointer(stx)).Fstx_size = Uint64FromInt64((**(**Tstat)(__ccgo_up(bp))).Fst_size) + (*Tstatx)(unsafe.Pointer(stx)).Fstx_blksize = Uint32FromInt64((**(**Tstat)(__ccgo_up(bp))).Fst_blksize) + (*Tstatx)(unsafe.Pointer(stx)).Fstx_blocks = Uint64FromInt64((**(**Tstat)(__ccgo_up(bp))).Fst_blocks) + (*Tstatx)(unsafe.Pointer(stx)).Fstx_atime.Ftv_sec = (**(**Tstat)(__ccgo_up(bp))).Fst_atim.Ftv_sec + (*Tstatx)(unsafe.Pointer(stx)).Fstx_atime.Ftv_nsec = Uint32FromInt64((**(**Tstat)(__ccgo_up(bp))).Fst_atim.Ftv_nsec) + (*Tstatx)(unsafe.Pointer(stx)).Fstx_mtime.Ftv_sec = (**(**Tstat)(__ccgo_up(bp))).Fst_mtim.Ftv_sec + (*Tstatx)(unsafe.Pointer(stx)).Fstx_mtime.Ftv_nsec = Uint32FromInt64((**(**Tstat)(__ccgo_up(bp))).Fst_mtim.Ftv_nsec) + (*Tstatx)(unsafe.Pointer(stx)).Fstx_ctime.Ftv_sec = (**(**Tstat)(__ccgo_up(bp))).Fst_ctim.Ftv_sec + (*Tstatx)(unsafe.Pointer(stx)).Fstx_ctime.Ftv_nsec = Uint32FromInt64((**(**Tstat)(__ccgo_up(bp))).Fst_ctim.Ftv_nsec) + (*Tstatx)(unsafe.Pointer(stx)).Fstx_btime = Tstatx_timestamp{} + (*Tstatx)(unsafe.Pointer(stx)).Fstx_mask = uint32(0x7ff) + return 0 +} + +func Xstime(tls *TLS, t uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v t=%v, (%v:)", tls, t, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* tv at bp+0 */ Ttimeval + **(**Ttimeval)(__ccgo_up(bp)) = Ttimeval{ + Ftv_sec: **(**Ttime_t)(__ccgo_up(t)), + } + return Xsettimeofday(tls, bp, UintptrFromInt32(0)) +} + +const SWAP_FLAG_DISCARD = 65536 +const SWAP_FLAG_PREFER = 32768 +const SWAP_FLAG_PRIO_MASK = 32767 +const SWAP_FLAG_PRIO_SHIFT = 0 + +func Xswapon(tls *TLS, path uintptr, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v flags=%v, (%v:)", tls, path, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_swapon), int64(path), int64(flags))))) +} + +func Xswapoff(tls *TLS, path uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v, (%v:)", tls, path, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_swapoff), int64(path))))) +} + +func Xsync_file_range(tls *TLS, fd int32, pos Toff_t, len1 Toff_t, flags uint32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v pos=%v len1=%v flags=%v, (%v:)", tls, fd, pos, len1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_sync_file_range), int64(fd), pos, len1, Int64FromUint32(flags))))) +} + +func Xsyncfs(tls *TLS, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_syncfs), int64(fd))))) +} + +func X__lsysinfo(tls *TLS, info uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v info=%v, (%v:)", tls, info, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_sysinfo), int64(info))))) +} + +func Xsysinfo(tls *TLS, info uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v info=%v, (%v:)", tls, info, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lsysinfo(tls, info) +} + +func Xtee(tls *TLS, src int32, dest int32, len1 Tsize_t, flags uint32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v src=%v dest=%v len1=%v flags=%v, (%v:)", tls, src, dest, len1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_tee), int64(src), int64(dest), Int64FromUint64(len1), Int64FromUint32(flags)))) +} + +const TFD_CLOEXEC = 524288 +const TFD_NONBLOCK = 2048 +const TFD_TIMER_ABSTIME = 1 +const TFD_TIMER_CANCEL_ON_SET = 2 + +func Xtimerfd_create(tls *TLS, clockid int32, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v clockid=%v flags=%v, (%v:)", tls, clockid, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_timerfd_create), int64(clockid), int64(flags))))) +} + +func Xtimerfd_settime(tls *TLS, fd int32, flags int32, new1 uintptr, old uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v flags=%v new1=%v old=%v, (%v:)", tls, fd, flags, new1, old, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_timerfd_settime), int64(fd), int64(flags), int64(new1), int64(old))))) +} + +func Xtimerfd_gettime(tls *TLS, fd int32, cur uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v cur=%v, (%v:)", tls, fd, cur, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_timerfd_gettime), int64(fd), int64(cur))))) +} + +func Xunshare(tls *TLS, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v flags=%v, (%v:)", tls, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_unshare), int64(flags))))) +} + +func Xutimes(tls *TLS, path uintptr, times uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v times=%v, (%v:)", tls, path, times, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__futimesat(tls, -int32(100), path, times) +} + +func Xvhangup(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall0(tls, int64(SYS_vhangup))))) +} + +func Xvmsplice(tls *TLS, fd int32, iov uintptr, cnt Tsize_t, flags uint32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v iov=%v cnt=%v flags=%v, (%v:)", tls, fd, iov, cnt, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_vmsplice), int64(fd), int64(iov), Int64FromUint64(cnt), Int64FromUint32(flags)))) +} + +const NSIG = 65 +const SA_NOMASK = 1073741824 +const SA_ONESHOT = 2147483648 +const SYS_SECCOMP = 1 +const SYS_USER_DISPATCH = 2 +const __ucontext = 0 + +type Tgreg_t = uint64 + +type Tgregset_t = [27]uint64 + +type t__psw_t = struct { + Fmask uint64 + Faddr uint64 +} + +type Tfpreg_t = struct { + Ff [0]float32 + Fd float64 +} + +type Tfpregset_t = struct { + Ffpc uint32 + Ffprs [16]Tfpreg_t +} + +type Tmcontext_t1 = struct { + Fpsw t__psw_t + Fgregs [16]uint64 + Faregs [16]uint32 + Ffpregs Tfpregset_t +} + +type Tsigcontext = struct { + Foldmask [1]uint64 + Fsregs uintptr +} + +type Tucontext_t1 = struct { + Fuc_flags uint64 + Fuc_link uintptr + Fuc_stack Tstack_t + Fuc_mcontext Tmcontext_t1 + Fuc_sigmask Tsigset_t +} + +type Tucontext = Tucontext_t1 + +type Tsig_t = uintptr + +type Tsighandler_t = uintptr + +func Xwait3(tls *TLS, status uintptr, options int32, usage uintptr) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v status=%v options=%v usage=%v, (%v:)", tls, status, options, usage, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwait4(tls, -int32(1), status, options, usage) +} + +func Xwait4(tls *TLS, pid Tpid_t, status uintptr, options int32, ru uintptr) (r1 Tpid_t) { + if __ccgo_strace { + trc("tls=%v pid=%v status=%v options=%v ru=%v, (%v:)", tls, pid, status, options, ru, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var dest, v1 uintptr + var r int32 + var _ /* kru at bp+0 */ [4]int64 + _, _, _ = dest, r, v1 + if ru != 0 { + v1 = ru + 32 - uintptr(Uint64FromInt32(4)*Uint64FromInt64(8)) + } else { + v1 = uintptr(0) + } + dest = v1 + r = int32(X__syscall4(tls, int64(SYS_wait4), int64(pid), int64(status), int64(options), int64(dest))) + if r > 0 && ru != 0 && Bool(uint64(8) > uint64(8)) { + Xmemcpy(tls, bp, dest, Uint64FromInt32(4)*Uint64FromInt64(8)) + (*Trusage)(unsafe.Pointer(ru)).Fru_utime = Ttimeval{ + Ftv_sec: (**(**[4]int64)(__ccgo_up(bp)))[0], + Ftv_usec: (**(**[4]int64)(__ccgo_up(bp)))[int32(1)], + } + (*Trusage)(unsafe.Pointer(ru)).Fru_stime = Ttimeval{ + Ftv_sec: (**(**[4]int64)(__ccgo_up(bp)))[int32(2)], + Ftv_usec: (**(**[4]int64)(__ccgo_up(bp)))[int32(3)], + } + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +const XATTR_CREATE = 1 +const XATTR_REPLACE = 2 +const __UAPI_DEF_XATTR = 0 + +func Xgetxattr(tls *TLS, path uintptr, name uintptr, value uintptr, size Tsize_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v path=%v name=%v value=%v size=%v, (%v:)", tls, path, name, value, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_getxattr), int64(path), int64(name), int64(value), Int64FromUint64(size)))) +} + +func Xlgetxattr(tls *TLS, path uintptr, name uintptr, value uintptr, size Tsize_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v path=%v name=%v value=%v size=%v, (%v:)", tls, path, name, value, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_lgetxattr), int64(path), int64(name), int64(value), Int64FromUint64(size)))) +} + +func Xfgetxattr(tls *TLS, filedes int32, name uintptr, value uintptr, size Tsize_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v filedes=%v name=%v value=%v size=%v, (%v:)", tls, filedes, name, value, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_fgetxattr), int64(filedes), int64(name), int64(value), Int64FromUint64(size)))) +} + +func Xlistxattr(tls *TLS, path uintptr, list uintptr, size Tsize_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v path=%v list=%v size=%v, (%v:)", tls, path, list, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_listxattr), int64(path), int64(list), Int64FromUint64(size)))) +} + +func Xllistxattr(tls *TLS, path uintptr, list uintptr, size Tsize_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v path=%v list=%v size=%v, (%v:)", tls, path, list, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_llistxattr), int64(path), int64(list), Int64FromUint64(size)))) +} + +func Xflistxattr(tls *TLS, filedes int32, list uintptr, size Tsize_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v filedes=%v list=%v size=%v, (%v:)", tls, filedes, list, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_flistxattr), int64(filedes), int64(list), Int64FromUint64(size)))) +} + +func Xsetxattr(tls *TLS, path uintptr, name uintptr, value uintptr, size Tsize_t, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v name=%v value=%v size=%v flags=%v, (%v:)", tls, path, name, value, size, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_setxattr), int64(path), int64(name), int64(value), Int64FromUint64(size), int64(flags))))) +} + +func Xlsetxattr(tls *TLS, path uintptr, name uintptr, value uintptr, size Tsize_t, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v name=%v value=%v size=%v flags=%v, (%v:)", tls, path, name, value, size, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_lsetxattr), int64(path), int64(name), int64(value), Int64FromUint64(size), int64(flags))))) +} + +func Xfsetxattr(tls *TLS, filedes int32, name uintptr, value uintptr, size Tsize_t, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v filedes=%v name=%v value=%v size=%v flags=%v, (%v:)", tls, filedes, name, value, size, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_fsetxattr), int64(filedes), int64(name), int64(value), Int64FromUint64(size), int64(flags))))) +} + +func Xremovexattr(tls *TLS, path uintptr, name uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v name=%v, (%v:)", tls, path, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_removexattr), int64(path), int64(name))))) +} + +func Xlremovexattr(tls *TLS, path uintptr, name uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v name=%v, (%v:)", tls, path, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_lremovexattr), int64(path), int64(name))))) +} + +func Xfremovexattr(tls *TLS, fd int32, name uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v name=%v, (%v:)", tls, fd, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_fremovexattr), int64(fd), int64(name))))) +} + +func _dummy4(tls *TLS, msg uintptr, lm uintptr) (r uintptr) { + return msg +} + +func X__lctrans(tls *TLS, msg uintptr, lm uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v msg=%v lm=%v, (%v:)", tls, msg, lm, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lctrans_impl(tls, msg, lm) +} + +func X__lctrans_cur(tls *TLS, msg uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v msg=%v, (%v:)", tls, msg, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lctrans_impl(tls, msg, **(**uintptr)(__ccgo_up((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale + 5*8))) +} + +func _swapc(tls *TLS, x Tuint32_t, c int32) (r Tuint32_t) { + var v1 uint32 + _ = v1 + if c != 0 { + v1 = x>>int32(24) | x>>int32(8)&uint32(0xff00) | x< %v", r) }() + } + var b, n, o, ol, os, t, tl, ts Tuint32_t + var mo uintptr + var sign, sw int32 + _, _, _, _, _, _, _, _, _, _, _ = b, mo, n, o, ol, os, sign, sw, t, tl, ts + mo = p + sw = Int32FromUint32(**(**Tuint32_t)(__ccgo_up(mo)) - uint32(0x950412de)) + b = uint32(0) + n = _swapc(tls, **(**Tuint32_t)(__ccgo_up(mo + 2*4)), sw) + o = _swapc(tls, **(**Tuint32_t)(__ccgo_up(mo + 3*4)), sw) + t = _swapc(tls, **(**Tuint32_t)(__ccgo_up(mo + 4*4)), sw) + if uint64(n) >= size/uint64(4) || uint64(o) >= size-uint64(uint32(4)*n) || uint64(t) >= size-uint64(uint32(4)*n) || (o|t)%uint32(4) != 0 { + return uintptr(0) + } + o = o / uint32(4) + t = t / uint32(4) + for { + ol = _swapc(tls, **(**Tuint32_t)(__ccgo_up(mo + uintptr(o+uint32(2)*(b+n/uint32(2)))*4)), sw) + os = _swapc(tls, **(**Tuint32_t)(__ccgo_up(mo + uintptr(o+uint32(2)*(b+n/uint32(2))+uint32(1))*4)), sw) + if uint64(os) >= size || uint64(ol) >= size-uint64(os) || **(**uint8)(__ccgo_up(p + uintptr(os+ol))) != 0 { + return uintptr(0) + } + sign = Xstrcmp(tls, s, p+uintptr(os)) + if !(sign != 0) { + tl = _swapc(tls, **(**Tuint32_t)(__ccgo_up(mo + uintptr(t+uint32(2)*(b+n/uint32(2)))*4)), sw) + ts = _swapc(tls, **(**Tuint32_t)(__ccgo_up(mo + uintptr(t+uint32(2)*(b+n/uint32(2))+uint32(1))*4)), sw) + if uint64(ts) >= size || uint64(tl) >= size-uint64(ts) || **(**uint8)(__ccgo_up(p + uintptr(ts+tl))) != 0 { + return uintptr(0) + } + return p + uintptr(ts) + } else { + if n == uint32(1) { + return uintptr(0) + } else { + if sign < 0 { + n = n / uint32(2) + } else { + b = b + n/uint32(2) + n = n - n/uint32(2) + } + } + } + goto _1 + _1: + } + return uintptr(0) +} + +const __USE_GNU_GETTEXT = 1 + +func Xbind_textdomain_codeset(tls *TLS, domainname uintptr, codeset uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v domainname=%v codeset=%v, (%v:)", tls, domainname, codeset, origin(2)) + defer func() { trc("-> %v", r) }() + } + if codeset != 0 && Xstrcasecmp(tls, codeset, __ccgo_ts+411) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + } + return UintptrFromInt32(0) +} + +var _empty_mo = [5]Tuint32_t{ + 0: uint32(0x950412de), + 2: Uint32FromInt32(-Int32FromInt32(1)), + 3: Uint32FromInt32(-Int32FromInt32(1)), + 4: Uint32FromInt32(-Int32FromInt32(1)), +} + +const NL_CAT_LOCALE = 1 +const NL_SETD = 1 + +type Tnl_item = int32 + +type Tnl_catd = uintptr + +func Xcatclose(tls *TLS, catd Tnl_catd) (r int32) { + if __ccgo_strace { + trc("tls=%v catd=%v, (%v:)", tls, catd, origin(2)) + defer func() { trc("-> %v", r) }() + } + var map1 uintptr + _ = map1 + map1 = catd + Xmunmap(tls, map1, uint64(**(**Tuint32_t)(__ccgo_up(map1 + UintptrFromInt32(8)))+uint32(20))) + return 0 +} + +func _cmp(tls *TLS, a uintptr, b uintptr) (r int32) { + var x, y Tuint32_t + var v1, v2 int32 + _, _, _, _ = x, y, v1, v2 + x = **(**Tuint32_t)(__ccgo_up(a)) + y = **(**Tuint32_t)(__ccgo_up(b)) + if x < y { + v1 = -int32(1) + } else { + if x > y { + v2 = int32(1) + } else { + v2 = 0 + } + v1 = v2 + } + return v1 +} + +func Xcatgets(tls *TLS, catd Tnl_catd, set_id int32, msg_id int32, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v catd=%v set_id=%v msg_id=%v s=%v, (%v:)", tls, catd, set_id, msg_id, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var map1, msg, msgs, set, sets, strings uintptr + var nmsgs, nsets Tuint32_t + var _ /* msg_id_be at bp+4 */ Tuint32_t + var _ /* set_id_be at bp+0 */ Tuint32_t + _, _, _, _, _, _, _, _ = map1, msg, msgs, nmsgs, nsets, set, sets, strings + map1 = catd + nsets = **(**Tuint32_t)(__ccgo_up(map1 + UintptrFromInt32(4))) + sets = map1 + uintptr(20) + msgs = map1 + uintptr(20) + uintptr(**(**Tuint32_t)(__ccgo_up(map1 + UintptrFromInt32(12)))) + strings = map1 + uintptr(20) + uintptr(**(**Tuint32_t)(__ccgo_up(map1 + UintptrFromInt32(16)))) + **(**Tuint32_t)(__ccgo_up(bp)) = Uint32FromInt32(set_id) + **(**Tuint32_t)(__ccgo_up(bp + 4)) = Uint32FromInt32(msg_id) + set = Xbsearch(tls, bp, sets, uint64(nsets), uint64(12), __ccgo_fp(_cmp)) + if !(set != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOMSG) + return s + } + nmsgs = **(**Tuint32_t)(__ccgo_up(set + UintptrFromInt32(4))) + msgs = msgs + uintptr(uint32(12)***(**Tuint32_t)(__ccgo_up(set + UintptrFromInt32(8)))) + msg = Xbsearch(tls, bp+4, msgs, uint64(nmsgs), uint64(12), __ccgo_fp(_cmp)) + if !(msg != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOMSG) + return s + } + return strings + uintptr(**(**Tuint32_t)(__ccgo_up(msg + UintptrFromInt32(8)))) +} + +const ABDAY_1 = 131072 +const ABDAY_2 = 131073 +const ABDAY_3 = 131074 +const ABDAY_4 = 131075 +const ABDAY_5 = 131076 +const ABDAY_6 = 131077 +const ABDAY_7 = 131078 +const ABMON_1 = 131086 +const ABMON_10 = 131095 +const ABMON_11 = 131096 +const ABMON_12 = 131097 +const ABMON_2 = 131087 +const ABMON_3 = 131088 +const ABMON_4 = 131089 +const ABMON_5 = 131090 +const ABMON_6 = 131091 +const ABMON_7 = 131092 +const ABMON_8 = 131093 +const ABMON_9 = 131094 +const ALT_DIGITS = 131119 +const AM_STR = 131110 +const CODESET = 14 +const CRNCYSTR = 262159 +const DAY_1 = 131079 +const DAY_2 = 131080 +const DAY_3 = 131081 +const DAY_4 = 131082 +const DAY_5 = 131083 +const DAY_6 = 131084 +const DAY_7 = 131085 +const D_FMT = 131113 +const D_T_FMT = 131112 +const ERA = 131116 +const ERA_D_FMT = 131118 +const ERA_D_T_FMT = 131120 +const ERA_T_FMT = 131121 +const MON_1 = 131098 +const MON_10 = 131107 +const MON_11 = 131108 +const MON_12 = 131109 +const MON_2 = 131099 +const MON_3 = 131100 +const MON_4 = 131101 +const MON_5 = 131102 +const MON_6 = 131103 +const MON_7 = 131104 +const MON_8 = 131105 +const MON_9 = 131106 +const NOEXPR = 327681 +const NOSTR = 327683 +const PM_STR = 131111 +const RADIXCHAR = 65536 +const THOUSEP = 65537 +const T_FMT = 131114 +const T_FMT_AMPM = 131115 +const YESEXPR = 327680 +const YESSTR = 327682 + +func _do_catopen(tls *TLS, name uintptr) (r Tnl_catd) { + bp := tls.Alloc(16) + defer tls.Free(16) + var map1 uintptr + var _ /* size at bp+0 */ Tsize_t + _ = map1 + map1 = X__map_file(tls, name, bp) + /* Size recorded in the file must match file size; otherwise + * the information needed to unmap the file will be lost. */ + if !(map1 != 0) || **(**Tuint32_t)(__ccgo_up(map1)) != uint32(0xff88ff89) || uint64(uint32(20)+**(**Tuint32_t)(__ccgo_up(map1 + UintptrFromInt32(8)))) != **(**Tsize_t)(__ccgo_up(bp)) { + if map1 != 0 { + Xmunmap(tls, map1, **(**Tsize_t)(__ccgo_up(bp))) + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOENT) + return uintptr(-Int32FromInt32(1)) + } + return map1 +} + +func Xcatopen(tls *TLS, name uintptr, oflag int32) (r Tnl_catd) { + if __ccgo_strace { + trc("tls=%v name=%v oflag=%v, (%v:)", tls, name, oflag, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(4096) + defer tls.Free(4096) + var catd Tnl_catd + var i, l Tsize_t + var lang, p, path, v, z, v1 uintptr + var v2 bool + var _ /* buf at bp+0 */ [4096]uint8 + _, _, _, _, _, _, _, _, _, _ = catd, i, l, lang, p, path, v, z, v1, v2 + if Xstrchr(tls, name, int32('/')) != 0 { + return _do_catopen(tls, name) + } + if v2 = X__libc.Fsecure != 0; !v2 { + v1 = Xgetenv(tls, __ccgo_ts+417) + path = v1 + } + if v2 || !(v1 != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOENT) + return uintptr(-Int32FromInt32(1)) + } + if oflag != 0 { + v1 = Xnl_langinfo(tls, Int32FromInt32(LC_MESSAGES)<= uint64(4096)-i { + break + } + Xmemcpy(tls, bp+uintptr(i), v, l) + i = i + l + goto _5 + _5: + ; + p = p + 1 + } + if !(**(**uint8)(__ccgo_up(z)) != 0) && (p < z || !(i != 0)) { + break + } + if p < z { + goto _4 + } + if **(**uint8)(__ccgo_up(z)) != 0 { + z = z + 1 + } + (**(**[4096]uint8)(__ccgo_up(bp)))[i] = uint8(0) + /* Leading : or :: in NLSPATH is same as %N */ + if i != 0 { + v1 = bp + } else { + v1 = name + } + catd = _do_catopen(tls, v1) + if catd != uintptr(-Int32FromInt32(1)) { + return catd + } + goto _4 + _4: + ; + p = z + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOENT) + return uintptr(-Int32FromInt32(1)) +} + +const calloc = 0 +const free = 0 +const malloc = 0 +const realloc = 0 + +type Tbinding = struct { + Fnext uintptr + Fdirlen int32 + Factive int32 + Fdomainname uintptr + Fdirname uintptr +} + +var _bindings uintptr + +func _gettextdir(tls *TLS, domainname uintptr, dirlen uintptr) (r uintptr) { + var p uintptr + _ = p + p = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_bindings))) + for { + if !(p != 0) { + break + } + if !(Xstrcmp(tls, (*Tbinding)(unsafe.Pointer(p)).Fdomainname, domainname) != 0) && AtomicLoadPInt32(p+12) != 0 { + **(**Tsize_t)(__ccgo_up(dirlen)) = Uint64FromInt32((*Tbinding)(unsafe.Pointer(p)).Fdirlen) + return (*Tbinding)(unsafe.Pointer(p)).Fdirname + } + goto _1 + _1: + ; + p = (*Tbinding)(unsafe.Pointer(p)).Fnext + } + return uintptr(0) +} + +var _lock1 [1]int32 + +func Xbindtextdomain(tls *TLS, domainname uintptr, dirname uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v domainname=%v dirname=%v, (%v:)", tls, domainname, dirname, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var dirlen, domlen Tsize_t + var p2, q, v2 uintptr + _, _, _, _, _ = dirlen, domlen, p2, q, v2 + if !(domainname != 0) { + return uintptr(0) + } + if !(dirname != 0) { + *(*Tsize_t)(unsafe.Pointer(bp)) = uint64(0) + return _gettextdir(tls, domainname, bp) + } + domlen = Xstrnlen(tls, domainname, Uint64FromInt32(Int32FromInt32(NAME_MAX)+Int32FromInt32(1))) + dirlen = Xstrnlen(tls, dirname, uint64(PATH_MAX)) + if domlen > uint64(NAME_MAX) || dirlen >= uint64(PATH_MAX) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(0) + } + ___lock(tls, uintptr(unsafe.Pointer(&_lock1))) + p2 = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_bindings))) + for { + if !(p2 != 0) { + break + } + if !(Xstrcmp(tls, (*Tbinding)(unsafe.Pointer(p2)).Fdomainname, domainname) != 0) && !(Xstrcmp(tls, (*Tbinding)(unsafe.Pointer(p2)).Fdirname, dirname) != 0) { + break + } + goto _1 + _1: + ; + p2 = (*Tbinding)(unsafe.Pointer(p2)).Fnext + } + if !(p2 != 0) { + p2 = Xcalloc(tls, uint64(32)+domlen+dirlen+uint64(2), uint64(1)) + if !(p2 != 0) { + ___unlock(tls, uintptr(unsafe.Pointer(&_lock1))) + return uintptr(0) + } + (*Tbinding)(unsafe.Pointer(p2)).Fnext = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_bindings))) + (*Tbinding)(unsafe.Pointer(p2)).Fdirlen = Int32FromUint64(dirlen) + (*Tbinding)(unsafe.Pointer(p2)).Fdomainname = p2 + 32 + (*Tbinding)(unsafe.Pointer(p2)).Fdirname = p2 + 32 + uintptr(domlen) + uintptr(1) + Xmemcpy(tls, (*Tbinding)(unsafe.Pointer(p2)).Fdomainname, domainname, domlen+uint64(1)) + Xmemcpy(tls, (*Tbinding)(unsafe.Pointer(p2)).Fdirname, dirname, dirlen+uint64(1)) + v2 = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_bindings))) + // __asm__ __volatile__ ( + // + // "csg %0, %2, %1" + // : "+d"(t), "+Q"(*(void *volatile *)p) : "d"(s) + // : "memory", "cc"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 13, __ccgo_ts+439) + _ = v2 + goto _3 + _3: + } + // __asm__ __volatile__ ("bcr 15,0" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 23, __ccgo_ts+439) + AtomicStorePInt32(p2+12, int32(1)) + // __asm__ __volatile__ ("bcr 15,0" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 23, __ccgo_ts+439) + q = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_bindings))) + for { + if !(q != 0) { + break + } + if !(Xstrcmp(tls, (*Tbinding)(unsafe.Pointer(q)).Fdomainname, domainname) != 0) && q != p2 { + // __asm__ __volatile__ ("bcr 15,0" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 23, __ccgo_ts+439) + AtomicStorePInt32(q+12, 0) + // __asm__ __volatile__ ("bcr 15,0" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 23, __ccgo_ts+439) + } + goto _4 + _4: + ; + q = (*Tbinding)(unsafe.Pointer(q)).Fnext + } + ___unlock(tls, uintptr(unsafe.Pointer(&_lock1))) + return (*Tbinding)(unsafe.Pointer(p2)).Fdirname +} + +var _catnames = [6][12]uint8{ + 0: {'L', 'C', '_', 'C', 'T', 'Y', 'P', 'E'}, + 1: {'L', 'C', '_', 'N', 'U', 'M', 'E', 'R', 'I', 'C'}, + 2: {'L', 'C', '_', 'T', 'I', 'M', 'E'}, + 3: {'L', 'C', '_', 'C', 'O', 'L', 'L', 'A', 'T', 'E'}, + 4: {'L', 'C', '_', 'M', 'O', 'N', 'E', 'T', 'A', 'R', 'Y'}, + 5: {'L', 'C', '_', 'M', 'E', 'S', 'S', 'A', 'G', 'E', 'S'}, +} + +var _catlens = [6]uint8{ + 0: uint8(8), + 1: uint8(10), + 2: uint8(7), + 3: uint8(10), + 4: uint8(11), + 5: uint8(11), +} + +type Tmsgcat = struct { + Fnext uintptr + Fmap1 uintptr + Fmap_size Tsize_t + Fplural_rule uintptr + Fnplurals int32 + Fbinding uintptr + Flm uintptr + Fcat int32 +} + +func _dummy_gettextdomain(tls *TLS) (r uintptr) { + return __ccgo_ts + 454 +} + +func Xdcngettext(tls *TLS, domainname uintptr, msgid1 uintptr, msgid2 uintptr, n uint64, category int32) (r1 uintptr) { + if __ccgo_strace { + trc("tls=%v domainname=%v msgid1=%v msgid2=%v n=%v category=%v, (%v:)", tls, domainname, msgid1, msgid2, n, category, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(80) + defer tls.Free(80) + var alt_modlen, catlen, dirlen, domlen, l, loclen, modlen, rem, v5 Tsize_t + var catname, csp, dirname, lm, loc, locname, locp, map1, modname, name, old_cats, p1, q, r, rule, trans, v3, v8 uintptr + var np, plural, v21 uint64 + var old_errno, v11, v12 int32 + var v6 t__predefined_size_t + var _ /* map_size at bp+0 */ Tsize_t + var _ /* z at bp+8 */ uintptr + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = alt_modlen, catlen, catname, csp, dirlen, dirname, domlen, l, lm, loc, loclen, locname, locp, map1, modlen, modname, name, np, old_cats, old_errno, p1, plural, q, r, rem, rule, trans, v11, v12, v21, v3, v5, v6, v8 + defer func() { Xrealloc(tls, name, 0) }() + loc = (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale + old_errno = **(**int32)(__ccgo_up(X__errno_location(tls))) + /* match gnu gettext behaviour */ + if !(msgid1 != 0) { + goto notrans + } + if Uint32FromInt32(category) >= uint32(LC_ALL) { + goto notrans + } + if !(domainname != 0) { + domainname = X__gettextdomain(tls) + } + domlen = Xstrnlen(tls, domainname, Uint64FromInt32(Int32FromInt32(NAME_MAX)+Int32FromInt32(1))) + if domlen > uint64(NAME_MAX) { + goto notrans + } + q = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_bindings))) + for { + if !(q != 0) { + break + } + if !(Xstrcmp(tls, (*Tbinding)(unsafe.Pointer(q)).Fdomainname, domainname) != 0) && AtomicLoadPInt32(q+12) != 0 { + break + } + goto _1 + _1: + ; + q = (*Tbinding)(unsafe.Pointer(q)).Fnext + } + if !(q != 0) { + goto notrans + } + lm = **(**uintptr)(__ccgo_up(loc + uintptr(category)*8)) + if !!(lm != 0) { + goto _2 + } + goto notrans +notrans: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = old_errno + if n == uint64(1) { + v3 = msgid1 + } else { + v3 = msgid2 + } + return v3 +_2: + ; + p1 = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_cats))) + for { + if !(p1 != 0) { + break + } + if (*Tmsgcat)(unsafe.Pointer(p1)).Fbinding == q && (*Tmsgcat)(unsafe.Pointer(p1)).Flm == lm && (*Tmsgcat)(unsafe.Pointer(p1)).Fcat == category { + break + } + goto _4 + _4: + ; + p1 = (*Tmsgcat)(unsafe.Pointer(p1)).Fnext + } + if !(p1 != 0) { + dirname = (*Tbinding)(unsafe.Pointer(q)).Fdirname + locname = lm + 16 + catname = uintptr(unsafe.Pointer(&_catnames)) + uintptr(category)*12 + dirlen = Uint64FromInt32((*Tbinding)(unsafe.Pointer(q)).Fdirlen) + loclen = _strlen(tls, locname) + catlen = uint64(_catlens[category]) + /* Logically split @mod suffix from locale name. */ + modname = Xmemchr(tls, locname, int32('@'), loclen) + if !(modname != 0) { + modname = locname + uintptr(loclen) + } + v5 = loclen - Uint64FromInt64(int64(modname)-int64(locname)) + modlen = v5 + alt_modlen = v5 + loclen = Uint64FromInt64(int64(modname) - int64(locname)) + /* Drop .charset identifier; it is not used. */ + csp = Xmemchr(tls, locname, int32('.'), loclen) + if csp != 0 { + loclen = Uint64FromInt64(int64(csp) - int64(locname)) + } + v6 = dirlen + uint64(1) + loclen + modlen + uint64(1) + catlen + uint64(1) + domlen + uint64(3) + uint64(1) + name = Xrealloc(tls, name, v6) + for { + Xsnprintf(tls, name, v6, __ccgo_ts+463, VaList(bp+24, dirname, Int32FromUint64(loclen), locname, Int32FromUint64(alt_modlen), modname, catname, domainname)) + v3 = X__map_file(tls, name, bp) + map1 = v3 + if v3 != 0 { + break + } + /* Try dropping @mod, _YY, then both. */ + if alt_modlen != 0 { + alt_modlen = uint64(0) + } else { + v3 = Xmemchr(tls, locname, int32('_'), loclen) + locp = v3 + if v3 != 0 { + loclen = Uint64FromInt64(int64(locp) - int64(locname)) + alt_modlen = modlen + } else { + break + } + } + goto _7 + _7: + } + if !(map1 != 0) { + goto notrans + } + p1 = Xcalloc(tls, uint64(64), uint64(1)) + if !(p1 != 0) { + X__munmap(tls, map1, **(**Tsize_t)(__ccgo_up(bp))) + goto notrans + } + (*Tmsgcat)(unsafe.Pointer(p1)).Fcat = category + (*Tmsgcat)(unsafe.Pointer(p1)).Fbinding = q + (*Tmsgcat)(unsafe.Pointer(p1)).Flm = lm + (*Tmsgcat)(unsafe.Pointer(p1)).Fmap1 = map1 + (*Tmsgcat)(unsafe.Pointer(p1)).Fmap_size = **(**Tsize_t)(__ccgo_up(bp)) + rule = __ccgo_ts + 485 + np = uint64(2) + r = X__mo_lookup(tls, (*Tmsgcat)(unsafe.Pointer(p1)).Fmap1, (*Tmsgcat)(unsafe.Pointer(p1)).Fmap_size, __ccgo_ts) + for r != 0 && Xstrncmp(tls, r, __ccgo_ts+491, uint64(13)) != 0 { + **(**uintptr)(__ccgo_up(bp + 8)) = Xstrchr(tls, r, int32('\n')) + if **(**uintptr)(__ccgo_up(bp + 8)) != 0 { + v3 = **(**uintptr)(__ccgo_up(bp + 8)) + uintptr(1) + } else { + v3 = uintptr(0) + } + r = v3 + } + if r != 0 { + r = r + uintptr(13) + for { + v11 = Int32FromUint8(**(**uint8)(__ccgo_up(r))) + v12 = BoolInt32(v11 == int32(' ') || Uint32FromInt32(v11)-uint32('\t') < uint32(5)) + goto _13 + _13: + if !(v12 != 0) { + break + } + r = r + 1 + } + if !(Xstrncmp(tls, r, __ccgo_ts+505, uint64(9)) != 0) { + np = Xstrtoul(tls, r+uintptr(9), bp+8, int32(10)) + r = **(**uintptr)(__ccgo_up(bp + 8)) + } + for **(**uint8)(__ccgo_up(r)) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(r))) != int32(';') { + r = r + 1 + } + if **(**uint8)(__ccgo_up(r)) != 0 { + r = r + 1 + for { + v11 = Int32FromUint8(**(**uint8)(__ccgo_up(r))) + v12 = BoolInt32(v11 == int32(' ') || Uint32FromInt32(v11)-uint32('\t') < uint32(5)) + goto _16 + _16: + if !(v12 != 0) { + break + } + r = r + 1 + } + if !(Xstrncmp(tls, r, __ccgo_ts+515, uint64(7)) != 0) { + rule = r + uintptr(7) + } + } + } + (*Tmsgcat)(unsafe.Pointer(p1)).Fnplurals = Int32FromUint64(np) + (*Tmsgcat)(unsafe.Pointer(p1)).Fplural_rule = rule + for { + old_cats = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_cats))) + (*Tmsgcat)(unsafe.Pointer(p1)).Fnext = old_cats + goto _20 + _20: + ; + v3 = old_cats + // __asm__ __volatile__ ( + // + // "csg %0, %2, %1" + // : "+d"(t), "+Q"(*(void *volatile *)p) : "d"(s) + // : "memory", "cc"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 13, __ccgo_ts+523) + v8 = v3 + goto _19 + _19: + ; + if !(v8 != old_cats) { + break + } + } + } + trans = X__mo_lookup(tls, (*Tmsgcat)(unsafe.Pointer(p1)).Fmap1, (*Tmsgcat)(unsafe.Pointer(p1)).Fmap_size, msgid1) + if !(trans != 0) { + goto notrans + } + /* Non-plural-processing gettext forms pass a null pointer as + * msgid2 to request that dcngettext suppress plural processing. */ + if msgid2 != 0 && (*Tmsgcat)(unsafe.Pointer(p1)).Fnplurals != 0 { + plural = X__pleval(tls, (*Tmsgcat)(unsafe.Pointer(p1)).Fplural_rule, n) + if plural > Uint64FromInt32((*Tmsgcat)(unsafe.Pointer(p1)).Fnplurals) { + goto notrans + } + for { + v21 = plural + plural = plural - 1 + if !(v21 != 0) { + break + } + rem = (*Tmsgcat)(unsafe.Pointer(p1)).Fmap_size - Uint64FromInt64(int64(trans)-int64((*Tmsgcat)(unsafe.Pointer(p1)).Fmap1)) + l = Xstrnlen(tls, trans, rem) + if l+uint64(1) >= rem { + goto notrans + } + trans = trans + uintptr(l+uint64(1)) + } + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = old_errno + return trans +} + +var _cats uintptr + +func Xdcgettext(tls *TLS, domainname uintptr, msgid uintptr, category int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v domainname=%v msgid=%v category=%v, (%v:)", tls, domainname, msgid, category, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xdcngettext(tls, domainname, msgid, uintptr(0), uint64(1), category) +} + +func Xdngettext(tls *TLS, domainname uintptr, msgid1 uintptr, msgid2 uintptr, n uint64) (r uintptr) { + if __ccgo_strace { + trc("tls=%v domainname=%v msgid1=%v msgid2=%v n=%v, (%v:)", tls, domainname, msgid1, msgid2, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xdcngettext(tls, domainname, msgid1, msgid2, n, int32(LC_MESSAGES)) +} + +func Xdgettext(tls *TLS, domainname uintptr, msgid uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v domainname=%v msgid=%v, (%v:)", tls, domainname, msgid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xdcngettext(tls, domainname, msgid, uintptr(0), uint64(1), int32(LC_MESSAGES)) +} + +func X__duplocale(tls *TLS, old Tlocale_t) (r Tlocale_t) { + if __ccgo_strace { + trc("tls=%v old=%v, (%v:)", tls, old, origin(2)) + defer func() { trc("-> %v", r) }() + } + var new1 Tlocale_t + _ = new1 + new1 = Xmalloc(tls, uint64(48)) + if !(new1 != 0) { + return uintptr(0) + } + if old == uintptr(-Int32FromInt32(1)) { + old = uintptr(unsafe.Pointer(&X__libc)) + 56 + } + **(**t__locale_struct)(__ccgo_up(new1)) = **(**t__locale_struct)(__ccgo_up(old)) + return new1 +} + +func Xduplocale(tls *TLS, old Tlocale_t) (r Tlocale_t) { + if __ccgo_strace { + trc("tls=%v old=%v, (%v:)", tls, old, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__duplocale(tls, old) +} + +func Xfreelocale(tls *TLS, l Tlocale_t) { + if __ccgo_strace { + trc("tls=%v l=%v, (%v:)", tls, l, origin(2)) + } + if X__loc_is_allocated(tls, l) != 0 { + Xfree(tls, l) + } +} + +func X__freelocale(tls *TLS, l Tlocale_t) { + if __ccgo_strace { + trc("tls=%v l=%v, (%v:)", tls, l, origin(2)) + } + Xfreelocale(tls, l) +} + +const BIG5 = 224 +const EUC_JP = 208 +const EUC_KR = 232 +const GB18030 = 216 +const GB2312 = 218 +const GBK = 217 +const ISO2022_JP = 210 +const SHIFT_JIS = 209 +const UCS2 = 204 +const UCS2BE = 196 +const UCS2LE = 197 +const US_ASCII = 199 +const UTF_16 = 202 +const UTF_16BE = 194 +const UTF_16LE = 193 +const UTF_32 = 203 +const UTF_32BE = 192 +const UTF_32LE = 195 +const UTF_8 = 200 +const WCHAR_T = 198 +const mbrtowc_utf8 = 0 +const wctomb_utf8 = 0 + +type Ticonv_t = uintptr + +/* Definitions of charmaps. Each charmap consists of: + * 1. Empty-string-terminated list of null-terminated aliases. + * 2. Special type code or number of elided quads of entries. + * 3. Character table (size determined by field 2), consisting + * of 5 bytes for every 4 characters, interpreted as 10-bit + * indices into the legacy_chars table. */ + +var _charmaps = [4907]uint8{'u', 't', 'f', '8', 0, 'c', 'h', 'a', 'r', 0, 0, 200, 'w', 'c', 'h', 'a', 'r', 't', 0, 0, 198, 'u', 'c', 's', '2', 'b', 'e', 0, 0, 196, 'u', 'c', 's', '2', 'l', 'e', 0, 0, 197, 'u', 't', 'f', '1', '6', 'b', 'e', 0, 0, 194, 'u', 't', 'f', '1', '6', 'l', 'e', 0, 0, 193, 'u', 'c', 's', '4', 'b', 'e', 0, 'u', 't', 'f', '3', '2', 'b', 'e', 0, 0, 192, 'u', 'c', 's', '4', 'l', 'e', 0, 'u', 't', 'f', '3', '2', 'l', 'e', 0, 0, 195, 'a', 's', 'c', 'i', 'i', 0, 'u', 's', 'a', 's', 'c', 'i', 'i', 0, 'i', 's', 'o', '6', '4', '6', 0, 'i', 's', 'o', '6', '4', '6', 'u', 's', 0, 0, 199, 'u', 't', 'f', '1', '6', 0, 0, 202, 'u', 'c', 's', '4', 0, 'u', 't', 'f', '3', '2', 0, 0, 203, 'u', 'c', 's', '2', 0, 0, 204, 'e', 'u', 'c', 'j', 'p', 0, 0, 208, 's', 'h', 'i', 'f', 't', 'j', 'i', 's', 0, 's', 'j', 'i', 's', 0, 'c', 'p', '9', '3', '2', 0, 0, 209, 'i', 's', 'o', '2', '0', '2', '2', 'j', 'p', 0, 0, 210, 'g', 'b', '1', '8', '0', '3', '0', 0, 0, 216, 'g', 'b', 'k', 0, 'c', 'p', '9', '3', '6', 0, 'w', 'i', 'n', 'd', 'o', 'w', 's', '9', '3', '6', 0, 0, 217, 'g', 'b', '2', '3', '1', '2', 0, 0, 218, 'b', 'i', 'g', '5', 0, 'b', 'i', 'g', 'f', 'i', 'v', 'e', 0, 'c', 'p', '9', '5', '0', 0, 'b', 'i', 'g', '5', 'h', 'k', 's', 'c', 's', 0, 0, 224, 'e', 'u', 'c', 'k', 'r', 0, 'k', 's', 'c', '5', '6', '0', '1', 0, 'k', 's', 'x', '1', '0', '0', '1', 0, 'c', 'p', '9', '4', '9', 0, 0, 232, 'i', 's', 'o', '8', '8', '5', '9', '1', 0, 'l', 'a', 't', 'i', 'n', '1', 0, 0, '@', 'i', 's', 'o', '8', '8', '5', '9', '2', 0, 0, '(', 160, 16, 244, 'W', 'N', 164, 220, 244, 212, ')', 168, 'T', '5', 'U', 'V', 'n', 181, '"', 23, '\\', 176, 20, 20, 152, 'N', 180, 224, 4, 149, '_', 184, 'X', 'E', 149, 'V', 'o', 13, '6', 'W', '\\', 'I', 5, '#', 140, '@', 196, 204, 'd', 208, '1', 12, '%', 'c', 209, '2', 24, '5', 227, 140, 'C', 16, 237, 244, 211, '4', 212, 20, 'e', 205, '5', 'M', 141, 165, 'M', 'Y', 220, 't', 's', 213, '7', 'J', 133, '#', 206, '@', 228, 208, 't', 208, '9', 13, 165, 's', 209, ':', 25, 181, 227, 206, 'C', 17, 241, 4, 212, '<', 244, 24, 'e', 207, '=', 'N', 145, 165, 143, 'Y', 252, 244, 131, 21, '`', 'i', 's', 'o', '8', '8', '5', '9', '3', 0, 0, '(', 160, 144, 244, 215, '(', 164, 0, ' ', 210, ')', 168, 176, '4', 21, 'G', '.', 181, 2, 0, '\\', 176, 148, '$', 203, ',', 180, 212, '2', 210, '-', 184, 180, 'D', 'U', 'G', '/', 245, 2, '@', '\\', 192, 4, '#', 12, 0, 196, '(', 132, 208, '1', 200, '$', 163, 204, '2', 204, '4', 227, 204, '3', 0, 'D', '#', 205, '4', 212, 'x', 'd', 205, '5', 26, 'e', 163, 205, '6', 220, 132, 21, 213, '7', 224, 132, '#', 14, 0, 228, ',', 148, 208, '9', 232, 164, 163, 206, ':', 236, 180, 227, 206, ';', 0, 196, '#', 207, '<', 244, '|', 'd', 207, '=', 27, 229, 163, 207, '>', 252, 136, '%', 21, '`', 'i', 's', 'o', '8', '8', '5', '9', '4', 0, 0, '(', 160, 16, '$', 211, 'R', 164, 152, 'T', 211, ')', 168, 'T', '%', 17, 'H', '[', 181, '"', 215, '+', 176, 20, 20, 24, 'S', 180, 156, 'd', 147, '_', 184, 'X', '5', 'Q', 'H', '\\', 5, '5', 151, 'P', 0, 5, '#', 204, '0', 196, 20, 'c', 140, 'J', 12, '%', 'c', 209, '2', 20, '5', 227, 12, 'J', 16, 245, '4', 20, 'L', 212, 'T', 'c', 205, '5', 216, 156, 165, 205, '6', 220, 't', 245, 213, '7', 1, 133, '#', 206, '8', 228, 148, 'c', 206, 'J', 13, 165, 's', 209, ':', 21, 181, 227, 'N', 'J', 17, 249, 'D', 'T', 'L', 244, 212, 'c', 207, '=', 248, 160, 165, 207, '>', 252, 'x', 5, 22, '`', 'i', 's', 'o', '8', '8', '5', '9', '5', 0, 0, '(', 160, 'D', '\'', 221, 't', 212, 'U', 'g', 221, 'u', 216, 'e', 167, 221, 'v', 220, 181, 210, 157, 'w', 223, 129, 23, 158, 'x', 227, 145, 'W', 158, 'y', 231, 161, 151, 158, 'z', 235, 177, 215, 158, '{', 239, 193, 23, 159, '|', 243, 209, 'W', 159, '}', 247, 225, 151, 159, '~', 251, 241, 215, 159, 127, 255, 1, 24, 160, 128, 3, 18, 'X', 160, 129, 7, '"', 152, 160, 130, 11, '2', 216, 160, 131, 15, 'B', 24, 161, 132, 19, 'R', 'X', 161, 133, 23, 'b', 152, 161, 134, 27, 'r', 216, 161, 135, '&', 127, 8, 'b', 136, '"', 142, 'H', 'b', 137, '&', 158, 136, 'b', 138, '*', 158, 178, '"', 139, 'i', 's', 'o', '8', '8', '5', '9', '6', 0, 0, '(', 160, 0, 0, 0, 0, 164, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'b', 182, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 192, 152, 0, 0, 0, 0, 153, 0, 148, 'i', 230, 153, 'h', 166, 169, 230, 154, 'l', 182, 233, 230, 155, 'p', 198, ')', 231, 156, 't', 214, 'i', 231, 157, 'x', 230, 169, 231, 158, '|', 246, 233, '\'', 0, 0, 0, 0, 0, 0, 127, 2, 26, 168, 160, 131, 18, 'Z', 168, 161, 135, '"', 154, 168, 162, 139, '2', 218, 168, 163, 143, 'B', 26, ')', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'i', 's', 'o', '8', '8', '5', '9', '7', 0, 0, '(', 160, 'L', 'L', 241, '(', '$', 151, 'l', 202, ')', 168, 164, 146, 216, '*', 172, 180, 2, '@', 196, 176, 196, '"', 203, ',', 138, '-', 198, 216, '-', 141, '9', 246, 216, '.', 144, 245, 18, 153, 'd', 147, 'Q', 'V', 153, 'e', 151, 'a', 150, 153, 'f', 155, 'q', 214, 153, 'g', 159, 129, 22, 154, 'h', 163, 145, 6, '@', 'i', 166, 157, 134, 'Z', 'j', 170, 173, 198, 'Z', 'k', 174, 189, 6, '[', 'l', 178, 205, 'F', '[', 'm', 182, 221, 134, '[', 'n', 186, 237, 198, '[', 'o', 190, 253, 6, '\\', 'p', 194, 13, 'G', '\\', 'q', 198, 29, 135, '\\', 'r', 202, '-', 199, '\\', 's', 206, '=', 7, 29, 0, 'i', 's', 'o', '8', '8', '5', '9', '8', 0, 0, '(', 160, 0, ' ', 202, '(', 164, 148, 'b', 202, ')', 168, 164, 'r', 205, '*', 172, 180, 226, 202, '+', 176, 196, '"', 203, ',', 180, 212, 'b', 203, '-', 184, 228, 'r', 207, '.', 188, 244, 226, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 128, 196, 'B', 14, 'I', 'd', 145, 'F', 30, 137, 'd', 146, 'J', '.', 201, 'd', 147, 'N', '>', 9, 'e', 148, 'R', 'N', 'I', 'e', 149, 'V', '^', 137, 'e', 150, 'Z', 'n', 201, '%', 0, 0, '4', 236, '0', 0, 'i', 's', 'o', '8', '8', '5', '9', '9', 0, 0, '4', 28, 'E', '#', 205, '4', 212, 'T', 'c', 205, '5', 216, 'd', 163, 205, '6', 220, 176, '4', 213, '7', 224, 132, '#', 206, '8', 228, 148, 'c', 206, '9', 232, 164, 163, 206, ':', 236, 180, 227, 206, ';', 29, 197, '#', 207, '<', 244, 212, 'c', 207, '=', 248, 228, 163, 207, '>', 252, 180, 'D', 213, '?', 'i', 's', 'o', '8', '8', '5', '9', '1', '0', 0, 0, '(', 160, 16, '$', 17, 'H', '(', 153, 4, 211, ')', '5', 'A', 'T', 213, 'V', 'r', 181, 242, 'U', 'P', 176, 20, '4', 'Q', 'H', ')', 157, 20, 211, '-', '6', 'E', 'd', 21, 'W', 's', 'E', 12, 150, 'P', 0, 5, '#', 204, '0', 196, 20, 'c', 140, 'J', 12, '%', 'c', 209, '2', 20, '5', 227, 204, '3', 208, 244, '4', 212, '4', 212, 'T', 'c', 'M', 'W', 216, 156, 165, 205, '6', 220, 't', 227, 205, '7', 1, 133, '#', 206, '8', 228, 148, 'c', 206, 'J', 13, 165, 's', 209, ':', 21, 181, 227, 206, ';', 240, 248, 'D', 212, '<', 244, 212, 'c', 143, 'W', 248, 160, 165, 207, '>', 252, 244, 227, 143, 'L', 'i', 's', 'o', '8', '8', '5', '9', '1', '1', 0, 't', 'i', 's', '6', '2', '0', 0, 0, '(', 160, 'x', 250, ')', 168, 161, 138, ':', '*', 169, 165, 154, 'z', '*', 170, 169, 170, 186, '*', 171, 173, 186, 250, '*', 172, 177, 202, ':', '+', 173, 181, 218, 'z', '+', 174, 185, 234, 186, '+', 175, 189, 250, 250, '+', 176, 193, 10, ';', ',', 177, 197, 26, '{', ',', 178, 201, '*', 187, ',', 179, 205, ':', 251, ',', 180, 209, 'J', ';', '-', 181, 213, 'Z', '{', '-', 0, 0, 0, 0, 0, 182, 217, 'j', 187, '-', 183, 221, 'z', 251, '-', 184, 225, 138, ';', '.', 185, 229, 154, '{', '.', 186, 233, 170, 187, '.', 187, 237, 186, 251, '.', 188, 241, 202, ';', '/', 189, 0, 0, 0, 0, 0, 'i', 's', 'o', '8', '8', '5', '9', '1', '3', 0, 0, '(', 160, '\\', ',', 202, '(', 164, '`', 'l', 202, ')', 216, 164, 178, 212, '*', 172, 180, 226, 138, '1', 176, 196, '"', 203, ',', 22, 215, 'b', 203, '-', 248, 228, 194, 212, '.', 188, 244, 226, 139, '9', 4, 169, 4, 144, 'A', 196, 20, 'c', 145, 'D', 12, '%', 227, 22, 'E', ' ', 193, 132, 'R', 'M', 'U', 237, 212, 211, '4', 'C', 'U', 'c', 205, '5', 'g', 229, 244, 212, 'W', 220, 192, '%', 215, '7', 5, 173, 20, 208, 'A', 228, 148, 's', 209, 'D', 13, 165, 243, 'V', 'E', '!', 197, 148, 146, 'M', 'V', 241, 228, 211, '<', 'D', 213, 'c', 207, '=', 'h', 233, 4, 21, 'X', 252, 196, '5', 23, 197, 'i', 's', 'o', '8', '8', '5', '9', '1', '4', 0, 0, '(', 160, 212, 'k', 239, '(', 10, '-', 't', 239, ')', 3, 167, 'R', '0', 190, 9, 183, 226, 'J', '[', 249, 234, 235, 209, 'G', 251, 242, 'k', 'K', 191, 4, 251, 'k', 240, 191, 10, 31, 140, '0', 192, 192, 4, '#', 204, '0', 196, 20, 'c', 204, '1', 200, '$', 163, 204, '2', 204, '4', 227, 204, '3', 'i', 'E', '#', 205, '4', 212, 'T', 'c', 'M', 192, 216, 'd', 163, 205, '6', 220, 't', 179, 214, '7', 224, 132, '#', 206, '8', 228, 148, 'c', 206, '9', 232, 164, 163, 206, ':', 236, 180, 227, 206, ';', 'j', 197, '#', 207, '<', 244, 212, 'c', 143, 192, 248, 228, 163, 207, '>', 252, 244, 195, 214, '?', 'i', 's', 'o', '8', '8', '5', '9', '1', '5', 0, 'l', 'a', 't', 'i', 'n', '9', 0, 0, ')', '$', 151, 'R', 213, ')', 'V', 165, 162, 202, '*', 172, 180, 226, 202, '+', 176, 196, '"', 203, ',', 'r', 213, 'b', 203, '-', 's', 229, 162, 203, '.', 'G', '!', 213, 214, '/', 192, 4, '#', 204, '0', 196, 20, 'c', 204, '1', 200, '$', 163, 204, '2', 204, '4', 227, 204, '3', 208, 'D', '#', 205, '4', 212, 'T', 'c', 205, '5', 216, 'd', 163, 205, '6', 220, 't', 227, 205, '7', 224, 132, '#', 206, '8', 228, 148, 'c', 206, '9', 232, 164, 163, 206, ':', 236, 180, 227, 206, ';', 240, 196, '#', 207, '<', 244, 212, 'c', 207, '=', 248, 228, 163, 207, '>', 252, 244, 227, 207, '?', 'i', 's', 'o', '8', '8', '5', '9', '1', '6', 0, 0, '(', 160, 16, 'T', 'P', 'N', '$', 'c', '\\', 213, ')', 'V', 165, 146, 215, '*', 'n', 181, 242, 22, '\\', 176, 196, 194, 144, 'N', 'r', ']', 'l', 203, '-', 's', '5', 164, 215, '.', 'G', '!', 213, 'V', '\\', 192, 4, '#', 140, '@', 196, 24, 'd', 204, '1', 200, '$', 163, 204, '2', 204, '4', 227, 204, '3', 16, 237, '$', 205, '4', 212, 20, 'e', 205, 'S', 'e', 'e', 163, 205, '6', 220, 'X', 180, 215, '7', 224, 132, '#', 206, '@', 228, 28, 'd', 206, '9', 232, 164, 163, 206, ':', 236, 180, 227, 206, ';', 17, 241, '$', 207, '<', 244, 24, 'e', 15, 'T', 'f', 229, 163, 207, '>', 252, '\\', 196, 215, '?', 'c', 'p', '1', '2', '5', '0', 0, 'w', 'i', 'n', 'd', 'o', 'w', 's', '1', '2', '5', '0', 0, 0, ' ', '$', 3, 'P', '1', 0, 24, 's', 156, 177, 198, 0, 't', '\\', 149, 199, 'O', 'e', '%', 151, '[', 0, 'L', 'L', 177, 197, 23, 'o', 252, '0', 196, 0, 156, 'l', 213, 199, 'P', 'i', '5', 215, '[', 160, 248, 245, 'W', 'N', 164, 16, 'd', 202, ')', 168, 164, '2', 213, '*', 172, 180, 226, 10, '\\', 176, 196, 18, 152, 'N', 180, 212, 'b', 203, '-', 184, 20, 'D', 213, '.', '7', 13, 134, 'S', '\\', 'I', 5, '#', 140, '@', 196, 204, 'd', 208, '1', 12, '%', 'c', 209, '2', 24, '5', 227, 140, 'C', 16, 237, 244, 211, '4', 212, 20, 'e', 205, '5', 'M', 141, 165, 'M', 'Y', 220, 't', 's', 213, '7', 'J', 133, '#', 206, '@', 228, 208, 't', 208, '9', 13, 165, 's', 209, ':', 25, 181, 227, 206, 'C', 17, 241, 4, 212, '<', 244, 24, 'e', 207, '=', 'N', 145, 165, 143, 'Y', 252, 244, 131, 21, '`', 'c', 'p', '1', '2', '5', '1', 0, 'w', 'i', 'n', 'd', 'o', 'w', 's', '1', '2', '5', '1', 0, 0, ' ', 210, 'M', 'W', 'q', 136, 24, 's', 156, 177, 198, '$', 'w', 156, 157, 199, 218, 'q', 183, 157, 'w', ' ', 'N', 'L', 177, 197, 23, 'o', 252, '0', 196, 0, 156, '|', 226, 199, '(', 170, 152, '"', 139, 160, 't', 183, '"', 'v', 164, 180, 'h', 202, ')', 209, 165, 'B', 221, '*', 172, 180, 226, 202, 'u', 176, 196, 'b', 29, 137, '.', 214, 'b', 203, '-', 31, 154, ',', 226, '.', '&', 'V', '7', 'b', 137, 223, 129, 23, 158, 'x', 227, 145, 'W', 158, 'y', 231, 161, 151, 158, 'z', 235, 177, 215, 158, '{', 239, 193, 23, 159, '|', 243, 209, 'W', 159, '}', 247, 225, 151, 159, '~', 251, 241, 215, 159, 127, 255, 1, 24, 160, 128, 3, 18, 'X', 160, 129, 7, '"', 152, 160, 130, 11, '2', 216, 160, 131, 15, 'B', 24, 161, 132, 19, 'R', 'X', 161, 133, 23, 'b', 152, 161, 134, 27, 'r', 216, 161, 135, 'c', 'p', '1', '2', '5', '2', 0, 'w', 'i', 'n', 'd', 'o', 'w', 's', '1', '2', '5', '2', 0, 0, ' ', '$', 3, 'P', '1', ']', 24, 's', 156, 177, 198, '}', 'u', '\\', 149, 199, 'G', 1, ' ', 23, 0, 0, 'L', 'L', 177, 197, 23, 'o', 252, '0', 196, 130, 157, 'l', 213, 199, 'H', 1, '0', 'W', '[', 160, 132, '"', 202, '(', 164, 148, 'b', 202, ')', 168, 164, 162, 202, '*', 172, 180, 226, 202, '+', 176, 196, '"', 203, ',', 180, 212, 'b', 203, '-', 184, 228, 162, 203, '.', 188, 244, 226, 203, '/', 192, 4, '#', 204, '0', 196, 20, 'c', 204, '1', 200, '$', 163, 204, '2', 204, '4', 227, 204, '3', 208, 'D', '#', 205, '4', 212, 'T', 'c', 205, '5', 216, 'd', 163, 205, '6', 220, 't', 227, 205, '7', 224, 132, '#', 206, '8', 228, 148, 'c', 206, '9', 232, 164, 163, 206, ':', 236, 180, 227, 206, ';', 240, 196, '#', 207, '<', 244, 212, 'c', 207, '=', 248, 228, 163, 207, '>', 252, 244, 227, 207, '?', 'c', 'p', '1', '2', '5', '3', 0, 'w', 'i', 'n', 'd', 'o', 'w', 's', '1', '2', '5', '3', 0, 0, ' ', '$', 3, 'P', '1', ']', 24, 's', 156, 177, 198, 0, 't', 12, 128, 199, 0, 0, 0, 0, 0, 0, 'L', 'L', 177, 197, 23, 'o', 252, '0', 196, 0, 156, 12, 192, 199, 0, 0, 0, 0, 0, 160, ',', 198, 216, '(', 164, 148, 'b', 202, ')', 168, 164, 2, 192, '*', 172, 180, 226, 'J', 196, 176, 196, '"', 203, ',', 138, 213, 'b', 203, '-', 141, '9', 246, 216, '.', 144, 245, 18, 153, 'd', 147, 'Q', 'V', 153, 'e', 151, 'a', 150, 153, 'f', 155, 'q', 214, 153, 'g', 159, 129, 22, 154, 'h', 163, 145, 6, '@', 'i', 166, 157, 134, 'Z', 'j', 170, 173, 198, 'Z', 'k', 174, 189, 6, '[', 'l', 178, 205, 'F', '[', 'm', 182, 221, 134, '[', 'n', 186, 237, 198, '[', 'o', 190, 253, 6, '\\', 'p', 194, 13, 'G', '\\', 'q', 198, 29, 135, '\\', 'r', 202, '-', 199, '\\', 's', 206, '=', 7, 29, 0, 'c', 'p', '1', '2', '5', '4', 0, 'w', 'i', 'n', 'd', 'o', 'w', 's', '1', '2', '5', '4', 0, 0, ' ', '$', 3, 'P', '1', ']', 24, 's', 156, 177, 198, '}', 'u', '\\', 149, 199, 'G', 1, 0, 0, 0, 0, 'L', 'L', 177, 197, 23, 'o', 252, '0', 196, 130, 157, 'l', 213, 199, 'H', 1, 0, '@', '[', 160, 132, '"', 202, '(', 164, 148, 'b', 202, ')', 168, 164, 162, 202, '*', 172, 180, 226, 202, '+', 176, 196, '"', 203, ',', 180, 212, 'b', 203, '-', 184, 228, 162, 203, '.', 188, 244, 226, 203, '/', 192, 4, '#', 204, '0', 196, 20, 'c', 204, '1', 200, '$', 163, 204, '2', 204, '4', 227, 204, '3', 28, 'E', '#', 205, '4', 212, 'T', 'c', 205, '5', 216, 'd', 163, 205, '6', 220, 176, '4', 213, '7', 224, 132, '#', 206, '8', 228, 148, 'c', 206, '9', 232, 164, 163, 206, ':', 236, 180, 227, 206, ';', 29, 197, '#', 207, '<', 244, 212, 'c', 207, '=', 248, 228, 163, 207, '>', 252, 180, 'D', 213, '?', 'c', 'p', '1', '2', '5', '5', 0, 'w', 'i', 'n', 'd', 'o', 'w', 's', '1', '2', '5', '5', 0, 0, ' ', '$', 3, 'P', '1', ']', 24, 's', 156, 177, 198, '}', 'u', 12, 128, 199, 0, 0, 0, 0, 0, 0, 'L', 'L', 177, 197, 23, 'o', 252, '0', 196, 130, 157, 12, 192, 199, 0, 0, 0, 0, 0, 160, 132, '"', 202, '(', '"', 151, 'b', 202, ')', 168, 164, 'r', 205, '*', 172, 180, 226, 202, '+', 176, 196, '"', 203, ',', 180, 212, 'b', 203, '-', 184, 228, 'r', 207, '.', 188, 244, 226, 203, '/', '/', 194, 24, 163, 140, '3', 210, 'X', 163, 141, '7', 226, 8, '@', 142, ':', 238, 200, 'c', 143, '>', 254, 8, 'd', 144, ']', 'z', 249, '%', 152, 'a', 2, 0, 0, 0, 0, 0, 0, 0, 0, 'B', 14, 'I', 'd', 145, 'F', 30, 137, 'd', 146, 'J', '.', 201, 'd', 147, 'N', '>', 9, 'e', 148, 'R', 'N', 'I', 'e', 149, 'V', '^', 137, 'e', 150, 'Z', 'n', 201, '%', 0, 0, '4', 236, '0', 0, 'c', 'p', '1', '2', '5', '6', 0, 'w', 'i', 'n', 'd', 'o', 'w', 's', '1', '2', '5', '6', 0, 0, ' ', '$', 'O', 'Z', '1', ']', 24, 's', 156, 177, 198, '}', 'u', ',', 169, 199, 'G', 'Q', 'z', 'i', 165, 153, 'N', 'L', 177, 197, 23, 'o', 252, '0', 196, 152, 158, 'l', 233, 199, 'H', '-', 204, 176, 166, 160, 136, ')', 202, '(', 164, 148, 'b', 202, ')', 168, 164, 178, 233, '*', 172, 180, 226, 202, '+', 176, 196, '"', 203, ',', 180, 212, 'b', 203, '-', 184, 228, '2', 230, '.', 188, 244, 226, 11, 153, 156, 150, 'i', 230, 153, 'h', 166, 169, 230, 154, 'l', 182, 233, 230, 155, 'p', 198, ')', 231, 156, 't', 214, 'i', 231, 157, 'x', 230, 169, 231, '5', '{', 242, 217, 167, 159, 127, 2, 26, 168, 160, 224, 12, '*', 14, 161, 133, 26, 'z', 232, '9', 232, 164, 163, 206, ':', 136, '&', 234, 206, ';', 138, '.', 202, 'h', 163, 244, '8', 250, 232, '=', 144, 230, 19, 233, '>', 252, '4', 236, 'p', 167, 'c', 'p', '1', '2', '5', '7', 0, 'w', 'i', 'n', 'd', 'o', 'w', 's', '1', '2', '5', '7', 0, 0, ' ', '$', 3, 'P', '1', 0, 24, 's', 156, 177, 198, 0, 't', 12, 128, 199, 0, 160, 226, 23, '.', 0, 'L', 'L', 177, 197, 23, 'o', 252, '0', 196, 0, 156, 12, 192, 199, 0, 188, 18, 24, 0, 160, 0, ' ', 202, '(', 164, 0, '`', 202, ')', 216, 164, 178, 212, '*', 172, 180, 226, 138, '1', 176, 196, '"', 203, ',', 180, 212, 'b', 203, '-', 248, 228, 194, 212, '.', 188, 244, 226, 139, '9', 4, 169, 4, 144, 'A', 196, 20, 'c', 145, 'D', 12, '%', 227, 22, 'E', ' ', 193, 132, 'R', 'M', 'U', 237, 212, 211, '4', 'C', 'U', 'c', 205, '5', 'g', 229, 244, 212, 'W', 220, 192, '%', 215, '7', 5, 173, 20, 208, 'A', 228, 148, 's', 209, 'D', 13, 165, 243, 'V', 'E', '!', 197, 148, 146, 'M', 'V', 241, 228, 211, '<', 'D', 213, 'c', 207, '=', 'h', 233, 4, 21, 'X', 252, 196, '5', 23, '`', 'c', 'p', '1', '2', '5', '8', 0, 'w', 'i', 'n', 'd', 'o', 'w', 's', '1', '2', '5', '8', 0, 0, ' ', '$', 3, 'P', '1', ']', 24, 's', 156, 177, 198, '}', 'u', 12, 128, 199, 'G', 1, 0, 0, 0, 0, 'L', 'L', 177, 197, 23, 'o', 252, '0', 196, 130, 157, 12, 192, 199, 'H', 1, 0, '@', '[', 160, 132, '"', 202, '(', 164, 148, 'b', 202, ')', 168, 164, 162, 202, '*', 172, 180, 226, 202, '+', 176, 196, '"', 203, ',', 180, 212, 'b', 203, '-', 184, 228, 162, 203, '.', 188, 244, 226, 203, '/', 192, 4, '#', 140, '@', 196, 20, 'c', 204, '1', 200, '$', 163, 204, '2', 132, '5', 227, 204, '3', 16, 'E', 's', 216, '4', 212, 212, 'e', 205, '5', 216, 'd', 163, 205, '6', 220, 220, 'e', 216, '7', 224, 132, '#', 206, '@', 228, 148, 'c', 206, '9', 232, 164, 163, 206, ':', 133, 181, 227, 206, ';', 17, 197, 131, 216, '<', 244, 216, 'e', 207, '=', 248, 228, 163, 207, '>', 252, 224, '5', 242, '?', 'k', 'o', 'i', '8', 'r', 0, 0, ' ', '3', 211, '\\', 179, 205, '7', 227, 156, 179, 206, ';', 243, 220, 243, 214, '\\', 'w', 237, 245, 215, '`', 135, '-', 'v', 204, 'c', 163, 156, '2', 203, '.', 191, 12, 138, 204, 176, 200, 'r', 203, '=', '>', 255, 12, 244, 135, 'A', 11, '=', '4', 209, 'E', 27, '}', '4', 210, 'I', '+', 189, '4', 211, 'M', ';', 253, 't', 't', 'P', 'G', '-', 245, 212, 'T', 'W', 'm', 245, 213, 'X', 'g', 173, 'u', '*', 29, 254, 7, '`', 133, 3, 18, '8', 161, 128, 20, 30, 136, '`', 130, 10, '.', 200, '`', 131, 14, 'z', 248, ' ', 132, 17, 'J', 'X', '`', 128, 27, 'j', 'h', 224, 133, 28, 'b', 'h', 'a', 134, 253, '}', 7, '^', '}', 227, 145, '7', 159, 'x', 244, 157, 135, '^', 'z', 234, 173, 199, '^', '{', 238, 249, 247, 30, '|', 241, 201, 'W', '^', 'x', 251, 233, 'g', 222, '}', 252, 225, 'g', '_', '~', 'k', 'o', 'i', '8', 'u', 0, 0, ' ', '3', 211, '\\', 179, 205, '7', 227, 156, 179, 206, ';', 243, 220, 243, 214, '\\', 'w', 237, 245, 215, '`', 135, '-', 'v', 204, 'c', 163, 156, '2', 203, '.', 191, 12, 138, 204, 176, 200, 'r', 203, '=', '>', 255, 12, 244, 135, '"', 10, 'M', 'b', 137, 'E', 27, '}', '4', 210, 'I', 187, 184, '4', 211, 'M', ';', 253, 't', 't', 212, 'E', 'm', 221, 'u', 'T', 'W', 'm', 245, 213, 'X', 183, 168, 'u', '*', 29, 254, 7, '`', 133, 3, 18, '8', 161, 128, 20, 30, 136, '`', 130, 10, '.', 200, '`', 131, 14, 'z', 248, ' ', 132, 17, 'J', 'X', '`', 128, 27, 'j', 'h', 224, 133, 28, 'b', 'h', 'a', 134, 253, '}', 7, '^', '}', 227, 145, '7', 159, 'x', 244, 157, 135, '^', 'z', 234, 173, 199, '^', '{', 238, 249, 247, 30, '|', 241, 201, 'W', '^', 'x', 251, 233, 'g', 222, '}', 252, 225, 'g', '_', '~', 'c', 'p', '4', '3', '7', 0, 0, ' ', 199, 240, 147, 142, '8', 228, 128, 'S', 206, '9', 234, 172, 131, 206, ';', 238, 176, 'C', 'L', '1', 201, 152, 'c', 12, '=', 246, 200, 179, 'O', '>', 255, 'X', 195, 141, '(', 163, 148, 18, '2', ']', 225, 180, '3', 143, '>', 241, 'D', 163, 138, '.', 191, 192, 204, 'J', '/', 188, 132, 178, 202, '.', '`', 135, '-', '6', 205, ':', '?', 13, '5', 209, 'C', 'G', 253, 's', 209, 'K', '+', 157, 180, 205, '7', 243, 188, 's', 206, '3', 247, 204, 't', 211, 'H', 11, '}', '5', 213, 'N', 251, 172, 'u', 213, 'V', 'K', '=', 245, 209, 'F', 3, 29, 't', 214, 'X', 227, '\\', 's', 215, '\\', '{', 253, 245, 214, 179, '}', 'c', 153, 'p', 165, 21, 'W', 139, 'q', 168, 'm', 182, 154, 'm', '*', '#', 'w', 219, 202, '-', 199, 242, 178, 203, '1', 203, '|', 15, 203, 176, 160, '|', 'K', 202, ' ', 203, '2', '6', '(', 'c', 'p', '8', '5', '0', 0, 0, ' ', 199, 240, 147, 142, '8', 228, 128, 'S', 206, '9', 234, 172, 131, 206, ';', 238, 176, 'C', 'L', '1', 201, 152, 'c', 12, '=', 246, 200, 179, 'O', '>', 255, 'X', 195, 13, '>', 163, '`', 's', 13, ']', 225, 180, '3', 143, '>', 241, 'D', 163, 138, '.', 191, 184, 194, 'J', '/', 188, 132, 178, 202, '.', '`', 135, '-', '6', 205, ':', 7, '#', 12, '0', 169, 'D', 253, 's', 209, 'K', 139, 'R', 138, 205, '7', 243, 188, 's', 206, '3', 247, '<', 206, '0', 'H', 11, '}', '5', 213, 'N', 251, 172, '5', ')', 240, '@', 163, 204, '2', 200, 180, 212, 140, '3', 207, 224, '\\', 's', 215, '\\', 155, 194, 204, 214, 211, '|', 'C', 141, '4', 245, 'T', 'S', 139, '?', 222, 'h', 179, 'M', '6', 253, 't', 243, 10, '-', 173, 196, '"', 177, '/', 182, 156, 'r', 15, '.', 176, 160, 'r', 'K', '.', 179, 200, '2', '6', '(', 'c', 'p', '8', '6', '6', 0, 0, ' ', 223, 129, 23, 158, 'x', 227, 145, 'W', 158, 'y', 231, 161, 151, 158, 'z', 235, 177, 215, 158, '{', 239, 193, 23, 159, '|', 243, 209, 'W', 159, '}', 247, 225, 151, 159, '~', 251, 241, 215, 159, 127, 255, 1, 24, 160, 128, 3, 18, 'X', 160, 129, 7, '"', 152, 160, 130, 11, '2', 216, 160, 131, '`', 135, '-', '6', 205, ':', '?', 13, '5', 209, 'C', 'G', 253, 's', 209, 'K', '+', 157, 180, 205, '7', 243, 188, 's', 206, '3', 247, 204, 't', 211, 'H', 11, '}', '5', 213, 'N', 251, 172, 'u', 213, 'V', 'K', '=', 245, 209, 'F', 3, 29, 't', 214, 'X', 227, '\\', 's', 215, '\\', '{', 253, 245, 214, 15, 'B', 24, 161, 132, 19, 'R', 'X', 161, 133, 23, 'b', 152, 161, 134, 27, 'r', 216, 161, 135, 209, '}', 'H', 157, 136, 215, 149, 216, 221, 138, 176, 160, '|', 'K', 202, '&', 147, '2', '6', '(', 'i', 'b', 'm', '1', '0', '4', '7', 0, 'c', 'p', '1', '0', '4', '7', 0, 0, 1, 156, '$', '`', 200, 31, 151, '4', 226, 200, 2, 12, '4', 224, 192, 3, 16, 'D', ' ', 193, 4, 157, 20, 130, 192, '!', 24, 'd', ' ', 201, '#', 28, 't', 224, 193, 7, 128, 4, '"', 200, ' ', 132, '(', 'p', 193, 6, 136, '$', 162, 200, '"', 140, 20, '`', 192, 1, 144, 'D', 'b', 193, '$', 148, 'T', 'b', 9, 1, 152, 'd', 162, 201, '&', 20, 'T', 224, 137, 6, ' ', 128, '"', 14, '9', 224, 132, '3', 'N', '9', 231, 196, '#', 138, 11, '<', 160, 176, 2, 31, '&', 164, 163, 206, ':', 232, 180, 227, 206, ';', 236, '|', 19, 2, 9, '*', 164, 176, 131, 23, '-', 188, ' ', 12, '1', 192, 4, '3', 'L', '1', 199, 'D', 'c', 10, 11, '%', '|', 225, 195, 15, 248, '$', 163, 204, '2', 200, '4', 227, 204, '3', 204, 128, 161, 195, 8, '@', 156, 208, 131, 8, 216, 132, '!', 198, 24, 'd', 148, 'a', 198, 25, 'h', 164, 177, 202, '.', 240, 244, 227, 'O', ',', 176, 168, 177, 6, 27, 'm', 184, 241, 6, 28, 'q', 200, 161, 138, '.', 230, 224, 'b', 12, ')', 181, 248, '1', 7, 29, 'u', 216, 'q', 7, 30, 'y', 232, 17, 202, '/', 208, 'l', 225, 141, '+', 172, 140, 'R', 202, '-', 169, 156, 'b', 11, '/', 189, 248, 210, 13, '*', 175, 't', 'A', 203, '5', '{', 4, '!', 196, 16, 'D', 20, 'a', 196, 17, 'H', '$', 209, 10, '=', 246, 200, '3', 'O', '=', '}', '(', 177, 4, 19, 'M', '8', 241, 4, 20, 'Q', 'H', 145, 203, '>', 252, 228, 163, 207, '?', '\\', 220, '3', 5, 21, 'U', 'X', 'q', 5, 22, 'Y', 'h', '!', 11, '5', 214, 'H', '3', 'M', '5', '0', 196, ' ', 195, 12, '4', 212, '`', 195, 13, '8', 228, '0', 203, '6', 220, 'd', 163, 205, '\''} + +// C documentation +// +// /* Table of characters that appear in legacy 8-bit codepages, +// * limited to 1024 slots (10 bit indices). The first 256 entries +// * are elided since those characters are obviously all included. */ +var _legacy_chars = [612]uint16{ + 0: uint16(256), + 1: uint16(257), + 2: uint16(258), + 3: uint16(259), + 4: uint16(260), + 5: uint16(261), + 6: uint16(262), + 7: uint16(263), + 8: uint16(264), + 9: uint16(265), + 10: uint16(266), + 11: uint16(267), + 12: uint16(268), + 13: uint16(269), + 14: uint16(270), + 15: uint16(271), + 16: uint16(272), + 17: uint16(273), + 18: uint16(274), + 19: uint16(275), + 20: uint16(278), + 21: uint16(279), + 22: uint16(280), + 23: uint16(281), + 24: uint16(282), + 25: uint16(283), + 26: uint16(284), + 27: uint16(285), + 28: uint16(286), + 29: uint16(287), + 30: uint16(288), + 31: uint16(289), + 32: uint16(290), + 33: uint16(291), + 34: uint16(292), + 35: uint16(293), + 36: uint16(294), + 37: uint16(295), + 38: uint16(296), + 39: uint16(297), + 40: uint16(298), + 41: uint16(299), + 42: uint16(302), + 43: uint16(303), + 44: uint16(304), + 45: uint16(305), + 46: uint16(308), + 47: uint16(309), + 48: uint16(310), + 49: uint16(311), + 50: uint16(312), + 51: uint16(313), + 52: uint16(314), + 53: uint16(315), + 54: uint16(316), + 55: uint16(317), + 56: uint16(318), + 57: uint16(321), + 58: uint16(322), + 59: uint16(323), + 60: uint16(324), + 61: uint16(325), + 62: uint16(326), + 63: uint16(327), + 64: uint16(328), + 65: uint16(330), + 66: uint16(331), + 67: uint16(332), + 68: uint16(333), + 69: uint16(336), + 70: uint16(337), + 71: uint16(338), + 72: uint16(339), + 73: uint16(340), + 74: uint16(341), + 75: uint16(342), + 76: uint16(343), + 77: uint16(344), + 78: uint16(345), + 79: uint16(346), + 80: uint16(347), + 81: uint16(348), + 82: uint16(349), + 83: uint16(350), + 84: uint16(351), + 85: uint16(352), + 86: uint16(353), + 87: uint16(354), + 88: uint16(355), + 89: uint16(356), + 90: uint16(357), + 91: uint16(358), + 92: uint16(359), + 93: uint16(360), + 94: uint16(361), + 95: uint16(362), + 96: uint16(363), + 97: uint16(364), + 98: uint16(365), + 99: uint16(366), + 100: uint16(367), + 101: uint16(368), + 102: uint16(369), + 103: uint16(370), + 104: uint16(371), + 105: uint16(372), + 106: uint16(373), + 107: uint16(374), + 108: uint16(375), + 109: uint16(376), + 110: uint16(377), + 111: uint16(378), + 112: uint16(379), + 113: uint16(380), + 114: uint16(381), + 115: uint16(382), + 116: uint16(402), + 117: uint16(416), + 118: uint16(417), + 119: uint16(431), + 120: uint16(432), + 121: uint16(536), + 122: uint16(537), + 123: uint16(538), + 124: uint16(539), + 125: uint16(710), + 126: uint16(711), + 127: uint16(728), + 128: uint16(729), + 129: uint16(731), + 130: uint16(732), + 131: uint16(733), + 132: uint16(768), + 133: uint16(769), + 134: uint16(771), + 135: uint16(777), + 136: uint16(803), + 137: uint16(890), + 138: uint16(900), + 139: uint16(901), + 140: uint16(902), + 141: uint16(904), + 142: uint16(905), + 143: uint16(906), + 144: uint16(908), + 145: uint16(910), + 146: uint16(911), + 147: uint16(912), + 148: uint16(913), + 149: uint16(914), + 150: uint16(915), + 151: uint16(916), + 152: uint16(917), + 153: uint16(918), + 154: uint16(919), + 155: uint16(920), + 156: uint16(921), + 157: uint16(922), + 158: uint16(923), + 159: uint16(924), + 160: uint16(925), + 161: uint16(926), + 162: uint16(927), + 163: uint16(928), + 164: uint16(929), + 165: uint16(931), + 166: uint16(932), + 167: uint16(933), + 168: uint16(934), + 169: uint16(935), + 170: uint16(936), + 171: uint16(937), + 172: uint16(938), + 173: uint16(939), + 174: uint16(940), + 175: uint16(941), + 176: uint16(942), + 177: uint16(943), + 178: uint16(944), + 179: uint16(945), + 180: uint16(946), + 181: uint16(947), + 182: uint16(948), + 183: uint16(949), + 184: uint16(950), + 185: uint16(951), + 186: uint16(952), + 187: uint16(953), + 188: uint16(954), + 189: uint16(955), + 190: uint16(956), + 191: uint16(957), + 192: uint16(958), + 193: uint16(959), + 194: uint16(960), + 195: uint16(961), + 196: uint16(962), + 197: uint16(963), + 198: uint16(964), + 199: uint16(965), + 200: uint16(966), + 201: uint16(967), + 202: uint16(968), + 203: uint16(969), + 204: uint16(970), + 205: uint16(971), + 206: uint16(972), + 207: uint16(973), + 208: uint16(974), + 209: uint16(1025), + 210: uint16(1026), + 211: uint16(1027), + 212: uint16(1028), + 213: uint16(1029), + 214: uint16(1030), + 215: uint16(1031), + 216: uint16(1032), + 217: uint16(1033), + 218: uint16(1034), + 219: uint16(1035), + 220: uint16(1036), + 221: uint16(1038), + 222: uint16(1039), + 223: uint16(1040), + 224: uint16(1041), + 225: uint16(1042), + 226: uint16(1043), + 227: uint16(1044), + 228: uint16(1045), + 229: uint16(1046), + 230: uint16(1047), + 231: uint16(1048), + 232: uint16(1049), + 233: uint16(1050), + 234: uint16(1051), + 235: uint16(1052), + 236: uint16(1053), + 237: uint16(1054), + 238: uint16(1055), + 239: uint16(1056), + 240: uint16(1057), + 241: uint16(1058), + 242: uint16(1059), + 243: uint16(1060), + 244: uint16(1061), + 245: uint16(1062), + 246: uint16(1063), + 247: uint16(1064), + 248: uint16(1065), + 249: uint16(1066), + 250: uint16(1067), + 251: uint16(1068), + 252: uint16(1069), + 253: uint16(1070), + 254: uint16(1071), + 255: uint16(1072), + 256: uint16(1073), + 257: uint16(1074), + 258: uint16(1075), + 259: uint16(1076), + 260: uint16(1077), + 261: uint16(1078), + 262: uint16(1079), + 263: uint16(1080), + 264: uint16(1081), + 265: uint16(1082), + 266: uint16(1083), + 267: uint16(1084), + 268: uint16(1085), + 269: uint16(1086), + 270: uint16(1087), + 271: uint16(1088), + 272: uint16(1089), + 273: uint16(1090), + 274: uint16(1091), + 275: uint16(1092), + 276: uint16(1093), + 277: uint16(1094), + 278: uint16(1095), + 279: uint16(1096), + 280: uint16(1097), + 281: uint16(1098), + 282: uint16(1099), + 283: uint16(1100), + 284: uint16(1101), + 285: uint16(1102), + 286: uint16(1103), + 287: uint16(1105), + 288: uint16(1106), + 289: uint16(1107), + 290: uint16(1108), + 291: uint16(1109), + 292: uint16(1110), + 293: uint16(1111), + 294: uint16(1112), + 295: uint16(1113), + 296: uint16(1114), + 297: uint16(1115), + 298: uint16(1116), + 299: uint16(1118), + 300: uint16(1119), + 301: uint16(1168), + 302: uint16(1169), + 303: uint16(1456), + 304: uint16(1457), + 305: uint16(1458), + 306: uint16(1459), + 307: uint16(1460), + 308: uint16(1461), + 309: uint16(1462), + 310: uint16(1463), + 311: uint16(1464), + 312: uint16(1465), + 313: uint16(1467), + 314: uint16(1468), + 315: uint16(1469), + 316: uint16(1470), + 317: uint16(1471), + 318: uint16(1472), + 319: uint16(1473), + 320: uint16(1474), + 321: uint16(1475), + 322: uint16(1488), + 323: uint16(1489), + 324: uint16(1490), + 325: uint16(1491), + 326: uint16(1492), + 327: uint16(1493), + 328: uint16(1494), + 329: uint16(1495), + 330: uint16(1496), + 331: uint16(1497), + 332: uint16(1498), + 333: uint16(1499), + 334: uint16(1500), + 335: uint16(1501), + 336: uint16(1502), + 337: uint16(1503), + 338: uint16(1504), + 339: uint16(1505), + 340: uint16(1506), + 341: uint16(1507), + 342: uint16(1508), + 343: uint16(1509), + 344: uint16(1510), + 345: uint16(1511), + 346: uint16(1512), + 347: uint16(1513), + 348: uint16(1514), + 349: uint16(1520), + 350: uint16(1521), + 351: uint16(1522), + 352: uint16(1523), + 353: uint16(1524), + 354: uint16(1548), + 355: uint16(1563), + 356: uint16(1567), + 357: uint16(1569), + 358: uint16(1570), + 359: uint16(1571), + 360: uint16(1572), + 361: uint16(1573), + 362: uint16(1574), + 363: uint16(1575), + 364: uint16(1576), + 365: uint16(1577), + 366: uint16(1578), + 367: uint16(1579), + 368: uint16(1580), + 369: uint16(1581), + 370: uint16(1582), + 371: uint16(1583), + 372: uint16(1584), + 373: uint16(1585), + 374: uint16(1586), + 375: uint16(1587), + 376: uint16(1588), + 377: uint16(1589), + 378: uint16(1590), + 379: uint16(1591), + 380: uint16(1592), + 381: uint16(1593), + 382: uint16(1594), + 383: uint16(1600), + 384: uint16(1601), + 385: uint16(1602), + 386: uint16(1603), + 387: uint16(1604), + 388: uint16(1605), + 389: uint16(1606), + 390: uint16(1607), + 391: uint16(1608), + 392: uint16(1609), + 393: uint16(1610), + 394: uint16(1611), + 395: uint16(1612), + 396: uint16(1613), + 397: uint16(1614), + 398: uint16(1615), + 399: uint16(1616), + 400: uint16(1617), + 401: uint16(1618), + 402: uint16(1657), + 403: uint16(1662), + 404: uint16(1670), + 405: uint16(1672), + 406: uint16(1681), + 407: uint16(1688), + 408: uint16(1705), + 409: uint16(1711), + 410: uint16(1722), + 411: uint16(1726), + 412: uint16(1729), + 413: uint16(1746), + 414: uint16(3585), + 415: uint16(3586), + 416: uint16(3587), + 417: uint16(3588), + 418: uint16(3589), + 419: uint16(3590), + 420: uint16(3591), + 421: uint16(3592), + 422: uint16(3593), + 423: uint16(3594), + 424: uint16(3595), + 425: uint16(3596), + 426: uint16(3597), + 427: uint16(3598), + 428: uint16(3599), + 429: uint16(3600), + 430: uint16(3601), + 431: uint16(3602), + 432: uint16(3603), + 433: uint16(3604), + 434: uint16(3605), + 435: uint16(3606), + 436: uint16(3607), + 437: uint16(3608), + 438: uint16(3609), + 439: uint16(3610), + 440: uint16(3611), + 441: uint16(3612), + 442: uint16(3613), + 443: uint16(3614), + 444: uint16(3615), + 445: uint16(3616), + 446: uint16(3617), + 447: uint16(3618), + 448: uint16(3619), + 449: uint16(3620), + 450: uint16(3621), + 451: uint16(3622), + 452: uint16(3623), + 453: uint16(3624), + 454: uint16(3625), + 455: uint16(3626), + 456: uint16(3627), + 457: uint16(3628), + 458: uint16(3629), + 459: uint16(3630), + 460: uint16(3631), + 461: uint16(3632), + 462: uint16(3633), + 463: uint16(3634), + 464: uint16(3635), + 465: uint16(3636), + 466: uint16(3637), + 467: uint16(3638), + 468: uint16(3639), + 469: uint16(3640), + 470: uint16(3641), + 471: uint16(3642), + 472: uint16(3647), + 473: uint16(3648), + 474: uint16(3649), + 475: uint16(3650), + 476: uint16(3651), + 477: uint16(3652), + 478: uint16(3653), + 479: uint16(3654), + 480: uint16(3655), + 481: uint16(3656), + 482: uint16(3657), + 483: uint16(3658), + 484: uint16(3659), + 485: uint16(3660), + 486: uint16(3661), + 487: uint16(3662), + 488: uint16(3663), + 489: uint16(3664), + 490: uint16(3665), + 491: uint16(3666), + 492: uint16(3667), + 493: uint16(3668), + 494: uint16(3669), + 495: uint16(3670), + 496: uint16(3671), + 497: uint16(3672), + 498: uint16(3673), + 499: uint16(3674), + 500: uint16(3675), + 501: uint16(7682), + 502: uint16(7683), + 503: uint16(7690), + 504: uint16(7691), + 505: uint16(7710), + 506: uint16(7711), + 507: uint16(7744), + 508: uint16(7745), + 509: uint16(7766), + 510: uint16(7767), + 511: uint16(7776), + 512: uint16(7777), + 513: uint16(7786), + 514: uint16(7787), + 515: uint16(7808), + 516: uint16(7809), + 517: uint16(7810), + 518: uint16(7811), + 519: uint16(7812), + 520: uint16(7813), + 521: uint16(7922), + 522: uint16(7923), + 523: uint16(8204), + 524: uint16(8205), + 525: uint16(8206), + 526: uint16(8207), + 527: uint16(8211), + 528: uint16(8212), + 529: uint16(8213), + 530: uint16(8215), + 531: uint16(8216), + 532: uint16(8217), + 533: uint16(8218), + 534: uint16(8220), + 535: uint16(8221), + 536: uint16(8222), + 537: uint16(8224), + 538: uint16(8225), + 539: uint16(8226), + 540: uint16(8230), + 541: uint16(8240), + 542: uint16(8249), + 543: uint16(8250), + 544: uint16(8319), + 545: uint16(8359), + 546: uint16(8362), + 547: uint16(8363), + 548: uint16(8364), + 549: uint16(8367), + 550: uint16(8470), + 551: uint16(8482), + 552: uint16(8729), + 553: uint16(8730), + 554: uint16(8734), + 555: uint16(8745), + 556: uint16(8776), + 557: uint16(8801), + 558: uint16(8804), + 559: uint16(8805), + 560: uint16(8976), + 561: uint16(8992), + 562: uint16(8993), + 563: uint16(9472), + 564: uint16(9474), + 565: uint16(9484), + 566: uint16(9488), + 567: uint16(9492), + 568: uint16(9496), + 569: uint16(9500), + 570: uint16(9508), + 571: uint16(9516), + 572: uint16(9524), + 573: uint16(9532), + 574: uint16(9552), + 575: uint16(9553), + 576: uint16(9554), + 577: uint16(9555), + 578: uint16(9556), + 579: uint16(9557), + 580: uint16(9558), + 581: uint16(9559), + 582: uint16(9560), + 583: uint16(9561), + 584: uint16(9562), + 585: uint16(9563), + 586: uint16(9564), + 587: uint16(9565), + 588: uint16(9566), + 589: uint16(9567), + 590: uint16(9568), + 591: uint16(9569), + 592: uint16(9570), + 593: uint16(9571), + 594: uint16(9572), + 595: uint16(9573), + 596: uint16(9574), + 597: uint16(9575), + 598: uint16(9576), + 599: uint16(9577), + 600: uint16(9578), + 601: uint16(9579), + 602: uint16(9580), + 603: uint16(9600), + 604: uint16(9604), + 605: uint16(9608), + 606: uint16(9612), + 607: uint16(9616), + 608: uint16(9617), + 609: uint16(9618), + 610: uint16(9619), + 611: uint16(9632), +} + +var _jis0208 = [84][94]uint16{ + 0: { + 0: uint16(12288), + 1: uint16(12289), + 2: uint16(12290), + 3: uint16(65292), + 4: uint16(65294), + 5: uint16(12539), + 6: uint16(65306), + 7: uint16(65307), + 8: uint16(65311), + 9: uint16(65281), + 10: uint16(12443), + 11: uint16(12444), + 12: uint16(180), + 13: uint16(65344), + 14: uint16(168), + 15: uint16(65342), + 16: uint16(65507), + 17: uint16(65343), + 18: uint16(12541), + 19: uint16(12542), + 20: uint16(12445), + 21: uint16(12446), + 22: uint16(12291), + 23: uint16(20189), + 24: uint16(12293), + 25: uint16(12294), + 26: uint16(12295), + 27: uint16(12540), + 28: uint16(8213), + 29: uint16(8208), + 30: uint16(65295), + 31: uint16(92), + 32: uint16(12316), + 33: uint16(8214), + 34: uint16(65372), + 35: uint16(8230), + 36: uint16(8229), + 37: uint16(8216), + 38: uint16(8217), + 39: uint16(8220), + 40: uint16(8221), + 41: uint16(65288), + 42: uint16(65289), + 43: uint16(12308), + 44: uint16(12309), + 45: uint16(65339), + 46: uint16(65341), + 47: uint16(65371), + 48: uint16(65373), + 49: uint16(12296), + 50: uint16(12297), + 51: uint16(12298), + 52: uint16(12299), + 53: uint16(12300), + 54: uint16(12301), + 55: uint16(12302), + 56: uint16(12303), + 57: uint16(12304), + 58: uint16(12305), + 59: uint16(65291), + 60: uint16(8722), + 61: uint16(177), + 62: uint16(215), + 63: uint16(247), + 64: uint16(65309), + 65: uint16(8800), + 66: uint16(65308), + 67: uint16(65310), + 68: uint16(8806), + 69: uint16(8807), + 70: uint16(8734), + 71: uint16(8756), + 72: uint16(9794), + 73: uint16(9792), + 74: uint16(176), + 75: uint16(8242), + 76: uint16(8243), + 77: uint16(8451), + 78: uint16(65509), + 79: uint16(65284), + 80: uint16(162), + 81: uint16(163), + 82: uint16(65285), + 83: uint16(65283), + 84: uint16(65286), + 85: uint16(65290), + 86: uint16(65312), + 87: uint16(167), + 88: uint16(9734), + 89: uint16(9733), + 90: uint16(9675), + 91: uint16(9679), + 92: uint16(9678), + 93: uint16(9671), + }, + 1: { + 0: uint16(9670), + 1: uint16(9633), + 2: uint16(9632), + 3: uint16(9651), + 4: uint16(9650), + 5: uint16(9661), + 6: uint16(9660), + 7: uint16(8251), + 8: uint16(12306), + 9: uint16(8594), + 10: uint16(8592), + 11: uint16(8593), + 12: uint16(8595), + 13: uint16(12307), + 25: uint16(8712), + 26: uint16(8715), + 27: uint16(8838), + 28: uint16(8839), + 29: uint16(8834), + 30: uint16(8835), + 31: uint16(8746), + 32: uint16(8745), + 41: uint16(8743), + 42: uint16(8744), + 43: uint16(172), + 44: uint16(8658), + 45: uint16(8660), + 46: uint16(8704), + 47: uint16(8707), + 59: uint16(8736), + 60: uint16(8869), + 61: uint16(8978), + 62: uint16(8706), + 63: uint16(8711), + 64: uint16(8801), + 65: uint16(8786), + 66: uint16(8810), + 67: uint16(8811), + 68: uint16(8730), + 69: uint16(8765), + 70: uint16(8733), + 71: uint16(8757), + 72: uint16(8747), + 73: uint16(8748), + 81: uint16(8491), + 82: uint16(8240), + 83: uint16(9839), + 84: uint16(9837), + 85: uint16(9834), + 86: uint16(8224), + 87: uint16(8225), + 88: uint16(182), + 93: uint16(9711), + }, + 2: { + 15: uint16(65296), + 16: uint16(65297), + 17: uint16(65298), + 18: uint16(65299), + 19: uint16(65300), + 20: uint16(65301), + 21: uint16(65302), + 22: uint16(65303), + 23: uint16(65304), + 24: uint16(65305), + 32: uint16(65313), + 33: uint16(65314), + 34: uint16(65315), + 35: uint16(65316), + 36: uint16(65317), + 37: uint16(65318), + 38: uint16(65319), + 39: uint16(65320), + 40: uint16(65321), + 41: uint16(65322), + 42: uint16(65323), + 43: uint16(65324), + 44: uint16(65325), + 45: uint16(65326), + 46: uint16(65327), + 47: uint16(65328), + 48: uint16(65329), + 49: uint16(65330), + 50: uint16(65331), + 51: uint16(65332), + 52: uint16(65333), + 53: uint16(65334), + 54: uint16(65335), + 55: uint16(65336), + 56: uint16(65337), + 57: uint16(65338), + 64: uint16(65345), + 65: uint16(65346), + 66: uint16(65347), + 67: uint16(65348), + 68: uint16(65349), + 69: uint16(65350), + 70: uint16(65351), + 71: uint16(65352), + 72: uint16(65353), + 73: uint16(65354), + 74: uint16(65355), + 75: uint16(65356), + 76: uint16(65357), + 77: uint16(65358), + 78: uint16(65359), + 79: uint16(65360), + 80: uint16(65361), + 81: uint16(65362), + 82: uint16(65363), + 83: uint16(65364), + 84: uint16(65365), + 85: uint16(65366), + 86: uint16(65367), + 87: uint16(65368), + 88: uint16(65369), + 89: uint16(65370), + }, + 3: { + 0: uint16(12353), + 1: uint16(12354), + 2: uint16(12355), + 3: uint16(12356), + 4: uint16(12357), + 5: uint16(12358), + 6: uint16(12359), + 7: uint16(12360), + 8: uint16(12361), + 9: uint16(12362), + 10: uint16(12363), + 11: uint16(12364), + 12: uint16(12365), + 13: uint16(12366), + 14: uint16(12367), + 15: uint16(12368), + 16: uint16(12369), + 17: uint16(12370), + 18: uint16(12371), + 19: uint16(12372), + 20: uint16(12373), + 21: uint16(12374), + 22: uint16(12375), + 23: uint16(12376), + 24: uint16(12377), + 25: uint16(12378), + 26: uint16(12379), + 27: uint16(12380), + 28: uint16(12381), + 29: uint16(12382), + 30: uint16(12383), + 31: uint16(12384), + 32: uint16(12385), + 33: uint16(12386), + 34: uint16(12387), + 35: uint16(12388), + 36: uint16(12389), + 37: uint16(12390), + 38: uint16(12391), + 39: uint16(12392), + 40: uint16(12393), + 41: uint16(12394), + 42: uint16(12395), + 43: uint16(12396), + 44: uint16(12397), + 45: uint16(12398), + 46: uint16(12399), + 47: uint16(12400), + 48: uint16(12401), + 49: uint16(12402), + 50: uint16(12403), + 51: uint16(12404), + 52: uint16(12405), + 53: uint16(12406), + 54: uint16(12407), + 55: uint16(12408), + 56: uint16(12409), + 57: uint16(12410), + 58: uint16(12411), + 59: uint16(12412), + 60: uint16(12413), + 61: uint16(12414), + 62: uint16(12415), + 63: uint16(12416), + 64: uint16(12417), + 65: uint16(12418), + 66: uint16(12419), + 67: uint16(12420), + 68: uint16(12421), + 69: uint16(12422), + 70: uint16(12423), + 71: uint16(12424), + 72: uint16(12425), + 73: uint16(12426), + 74: uint16(12427), + 75: uint16(12428), + 76: uint16(12429), + 77: uint16(12430), + 78: uint16(12431), + 79: uint16(12432), + 80: uint16(12433), + 81: uint16(12434), + 82: uint16(12435), + }, + 4: { + 0: uint16(12449), + 1: uint16(12450), + 2: uint16(12451), + 3: uint16(12452), + 4: uint16(12453), + 5: uint16(12454), + 6: uint16(12455), + 7: uint16(12456), + 8: uint16(12457), + 9: uint16(12458), + 10: uint16(12459), + 11: uint16(12460), + 12: uint16(12461), + 13: uint16(12462), + 14: uint16(12463), + 15: uint16(12464), + 16: uint16(12465), + 17: uint16(12466), + 18: uint16(12467), + 19: uint16(12468), + 20: uint16(12469), + 21: uint16(12470), + 22: uint16(12471), + 23: uint16(12472), + 24: uint16(12473), + 25: uint16(12474), + 26: uint16(12475), + 27: uint16(12476), + 28: uint16(12477), + 29: uint16(12478), + 30: uint16(12479), + 31: uint16(12480), + 32: uint16(12481), + 33: uint16(12482), + 34: uint16(12483), + 35: uint16(12484), + 36: uint16(12485), + 37: uint16(12486), + 38: uint16(12487), + 39: uint16(12488), + 40: uint16(12489), + 41: uint16(12490), + 42: uint16(12491), + 43: uint16(12492), + 44: uint16(12493), + 45: uint16(12494), + 46: uint16(12495), + 47: uint16(12496), + 48: uint16(12497), + 49: uint16(12498), + 50: uint16(12499), + 51: uint16(12500), + 52: uint16(12501), + 53: uint16(12502), + 54: uint16(12503), + 55: uint16(12504), + 56: uint16(12505), + 57: uint16(12506), + 58: uint16(12507), + 59: uint16(12508), + 60: uint16(12509), + 61: uint16(12510), + 62: uint16(12511), + 63: uint16(12512), + 64: uint16(12513), + 65: uint16(12514), + 66: uint16(12515), + 67: uint16(12516), + 68: uint16(12517), + 69: uint16(12518), + 70: uint16(12519), + 71: uint16(12520), + 72: uint16(12521), + 73: uint16(12522), + 74: uint16(12523), + 75: uint16(12524), + 76: uint16(12525), + 77: uint16(12526), + 78: uint16(12527), + 79: uint16(12528), + 80: uint16(12529), + 81: uint16(12530), + 82: uint16(12531), + 83: uint16(12532), + 84: uint16(12533), + 85: uint16(12534), + }, + 5: { + 0: uint16(913), + 1: uint16(914), + 2: uint16(915), + 3: uint16(916), + 4: uint16(917), + 5: uint16(918), + 6: uint16(919), + 7: uint16(920), + 8: uint16(921), + 9: uint16(922), + 10: uint16(923), + 11: uint16(924), + 12: uint16(925), + 13: uint16(926), + 14: uint16(927), + 15: uint16(928), + 16: uint16(929), + 17: uint16(931), + 18: uint16(932), + 19: uint16(933), + 20: uint16(934), + 21: uint16(935), + 22: uint16(936), + 23: uint16(937), + 32: uint16(945), + 33: uint16(946), + 34: uint16(947), + 35: uint16(948), + 36: uint16(949), + 37: uint16(950), + 38: uint16(951), + 39: uint16(952), + 40: uint16(953), + 41: uint16(954), + 42: uint16(955), + 43: uint16(956), + 44: uint16(957), + 45: uint16(958), + 46: uint16(959), + 47: uint16(960), + 48: uint16(961), + 49: uint16(963), + 50: uint16(964), + 51: uint16(965), + 52: uint16(966), + 53: uint16(967), + 54: uint16(968), + 55: uint16(969), + }, + 6: { + 0: uint16(1040), + 1: uint16(1041), + 2: uint16(1042), + 3: uint16(1043), + 4: uint16(1044), + 5: uint16(1045), + 6: uint16(1025), + 7: uint16(1046), + 8: uint16(1047), + 9: uint16(1048), + 10: uint16(1049), + 11: uint16(1050), + 12: uint16(1051), + 13: uint16(1052), + 14: uint16(1053), + 15: uint16(1054), + 16: uint16(1055), + 17: uint16(1056), + 18: uint16(1057), + 19: uint16(1058), + 20: uint16(1059), + 21: uint16(1060), + 22: uint16(1061), + 23: uint16(1062), + 24: uint16(1063), + 25: uint16(1064), + 26: uint16(1065), + 27: uint16(1066), + 28: uint16(1067), + 29: uint16(1068), + 30: uint16(1069), + 31: uint16(1070), + 32: uint16(1071), + 48: uint16(1072), + 49: uint16(1073), + 50: uint16(1074), + 51: uint16(1075), + 52: uint16(1076), + 53: uint16(1077), + 54: uint16(1105), + 55: uint16(1078), + 56: uint16(1079), + 57: uint16(1080), + 58: uint16(1081), + 59: uint16(1082), + 60: uint16(1083), + 61: uint16(1084), + 62: uint16(1085), + 63: uint16(1086), + 64: uint16(1087), + 65: uint16(1088), + 66: uint16(1089), + 67: uint16(1090), + 68: uint16(1091), + 69: uint16(1092), + 70: uint16(1093), + 71: uint16(1094), + 72: uint16(1095), + 73: uint16(1096), + 74: uint16(1097), + 75: uint16(1098), + 76: uint16(1099), + 77: uint16(1100), + 78: uint16(1101), + 79: uint16(1102), + 80: uint16(1103), + }, + 7: { + 0: uint16(9472), + 1: uint16(9474), + 2: uint16(9484), + 3: uint16(9488), + 4: uint16(9496), + 5: uint16(9492), + 6: uint16(9500), + 7: uint16(9516), + 8: uint16(9508), + 9: uint16(9524), + 10: uint16(9532), + 11: uint16(9473), + 12: uint16(9475), + 13: uint16(9487), + 14: uint16(9491), + 15: uint16(9499), + 16: uint16(9495), + 17: uint16(9507), + 18: uint16(9523), + 19: uint16(9515), + 20: uint16(9531), + 21: uint16(9547), + 22: uint16(9504), + 23: uint16(9519), + 24: uint16(9512), + 25: uint16(9527), + 26: uint16(9535), + 27: uint16(9501), + 28: uint16(9520), + 29: uint16(9509), + 30: uint16(9528), + 31: uint16(9538), + }, + 8: {}, + 9: {}, + 10: {}, + 11: {}, + 12: {}, + 13: {}, + 14: {}, + 15: { + 0: uint16(20124), + 1: uint16(21782), + 2: uint16(23043), + 3: uint16(38463), + 4: uint16(21696), + 5: uint16(24859), + 6: uint16(25384), + 7: uint16(23030), + 8: uint16(36898), + 9: uint16(33909), + 10: uint16(33564), + 11: uint16(31312), + 12: uint16(24746), + 13: uint16(25569), + 14: uint16(28197), + 15: uint16(26093), + 16: uint16(33894), + 17: uint16(33446), + 18: uint16(39925), + 19: uint16(26771), + 20: uint16(22311), + 21: uint16(26017), + 22: uint16(25201), + 23: uint16(23451), + 24: uint16(22992), + 25: uint16(34427), + 26: uint16(39156), + 27: uint16(32098), + 28: uint16(32190), + 29: uint16(39822), + 30: uint16(25110), + 31: uint16(31903), + 32: uint16(34999), + 33: uint16(23433), + 34: uint16(24245), + 35: uint16(25353), + 36: uint16(26263), + 37: uint16(26696), + 38: uint16(38343), + 39: uint16(38797), + 40: uint16(26447), + 41: uint16(20197), + 42: uint16(20234), + 43: uint16(20301), + 44: uint16(20381), + 45: uint16(20553), + 46: uint16(22258), + 47: uint16(22839), + 48: uint16(22996), + 49: uint16(23041), + 50: uint16(23561), + 51: uint16(24799), + 52: uint16(24847), + 53: uint16(24944), + 54: uint16(26131), + 55: uint16(26885), + 56: uint16(28858), + 57: uint16(30031), + 58: uint16(30064), + 59: uint16(31227), + 60: uint16(32173), + 61: uint16(32239), + 62: uint16(32963), + 63: uint16(33806), + 64: uint16(34915), + 65: uint16(35586), + 66: uint16(36949), + 67: uint16(36986), + 68: uint16(21307), + 69: uint16(20117), + 70: uint16(20133), + 71: uint16(22495), + 72: uint16(32946), + 73: uint16(37057), + 74: uint16(30959), + 75: uint16(19968), + 76: uint16(22769), + 77: uint16(28322), + 78: uint16(36920), + 79: uint16(31282), + 80: uint16(33576), + 81: uint16(33419), + 82: uint16(39983), + 83: uint16(20801), + 84: uint16(21360), + 85: uint16(21693), + 86: uint16(21729), + 87: uint16(22240), + 88: uint16(23035), + 89: uint16(24341), + 90: uint16(39154), + 91: uint16(28139), + 92: uint16(32996), + 93: uint16(34093), + }, + 16: { + 0: uint16(38498), + 1: uint16(38512), + 2: uint16(38560), + 3: uint16(38907), + 4: uint16(21515), + 5: uint16(21491), + 6: uint16(23431), + 7: uint16(28879), + 8: uint16(32701), + 9: uint16(36802), + 10: uint16(38632), + 11: uint16(21359), + 12: uint16(40284), + 13: uint16(31418), + 14: uint16(19985), + 15: uint16(30867), + 16: uint16(33276), + 17: uint16(28198), + 18: uint16(22040), + 19: uint16(21764), + 20: uint16(27421), + 21: uint16(34074), + 22: uint16(39995), + 23: uint16(23013), + 24: uint16(21417), + 25: uint16(28006), + 26: uint16(29916), + 27: uint16(38287), + 28: uint16(22082), + 29: uint16(20113), + 30: uint16(36939), + 31: uint16(38642), + 32: uint16(33615), + 33: uint16(39180), + 34: uint16(21473), + 35: uint16(21942), + 36: uint16(23344), + 37: uint16(24433), + 38: uint16(26144), + 39: uint16(26355), + 40: uint16(26628), + 41: uint16(27704), + 42: uint16(27891), + 43: uint16(27945), + 44: uint16(29787), + 45: uint16(30408), + 46: uint16(31310), + 47: uint16(38964), + 48: uint16(33521), + 49: uint16(34907), + 50: uint16(35424), + 51: uint16(37613), + 52: uint16(28082), + 53: uint16(30123), + 54: uint16(30410), + 55: uint16(39365), + 56: uint16(24742), + 57: uint16(35585), + 58: uint16(36234), + 59: uint16(38322), + 60: uint16(27022), + 61: uint16(21421), + 62: uint16(20870), + 63: uint16(22290), + 64: uint16(22576), + 65: uint16(22852), + 66: uint16(23476), + 67: uint16(24310), + 68: uint16(24616), + 69: uint16(25513), + 70: uint16(25588), + 71: uint16(27839), + 72: uint16(28436), + 73: uint16(28814), + 74: uint16(28948), + 75: uint16(29017), + 76: uint16(29141), + 77: uint16(29503), + 78: uint16(32257), + 79: uint16(33398), + 80: uint16(33489), + 81: uint16(34199), + 82: uint16(36960), + 83: uint16(37467), + 84: uint16(40219), + 85: uint16(22633), + 86: uint16(26044), + 87: uint16(27738), + 88: uint16(29989), + 89: uint16(20985), + 90: uint16(22830), + 91: uint16(22885), + 92: uint16(24448), + 93: uint16(24540), + }, + 17: { + 0: uint16(25276), + 1: uint16(26106), + 2: uint16(27178), + 3: uint16(27431), + 4: uint16(27572), + 5: uint16(29579), + 6: uint16(32705), + 7: uint16(35158), + 8: uint16(40236), + 9: uint16(40206), + 10: uint16(40644), + 11: uint16(23713), + 12: uint16(27798), + 13: uint16(33659), + 14: uint16(20740), + 15: uint16(23627), + 16: uint16(25014), + 17: uint16(33222), + 18: uint16(26742), + 19: uint16(29281), + 20: uint16(20057), + 21: uint16(20474), + 22: uint16(21368), + 23: uint16(24681), + 24: uint16(28201), + 25: uint16(31311), + 26: uint16(38899), + 27: uint16(19979), + 28: uint16(21270), + 29: uint16(20206), + 30: uint16(20309), + 31: uint16(20285), + 32: uint16(20385), + 33: uint16(20339), + 34: uint16(21152), + 35: uint16(21487), + 36: uint16(22025), + 37: uint16(22799), + 38: uint16(23233), + 39: uint16(23478), + 40: uint16(23521), + 41: uint16(31185), + 42: uint16(26247), + 43: uint16(26524), + 44: uint16(26550), + 45: uint16(27468), + 46: uint16(27827), + 47: uint16(28779), + 48: uint16(29634), + 49: uint16(31117), + 50: uint16(31166), + 51: uint16(31292), + 52: uint16(31623), + 53: uint16(33457), + 54: uint16(33499), + 55: uint16(33540), + 56: uint16(33655), + 57: uint16(33775), + 58: uint16(33747), + 59: uint16(34662), + 60: uint16(35506), + 61: uint16(22057), + 62: uint16(36008), + 63: uint16(36838), + 64: uint16(36942), + 65: uint16(38686), + 66: uint16(34442), + 67: uint16(20420), + 68: uint16(23784), + 69: uint16(25105), + 70: uint16(29273), + 71: uint16(30011), + 72: uint16(33253), + 73: uint16(33469), + 74: uint16(34558), + 75: uint16(36032), + 76: uint16(38597), + 77: uint16(39187), + 78: uint16(39381), + 79: uint16(20171), + 80: uint16(20250), + 81: uint16(35299), + 82: uint16(22238), + 83: uint16(22602), + 84: uint16(22730), + 85: uint16(24315), + 86: uint16(24555), + 87: uint16(24618), + 88: uint16(24724), + 89: uint16(24674), + 90: uint16(25040), + 91: uint16(25106), + 92: uint16(25296), + 93: uint16(25913), + }, + 18: { + 0: uint16(39745), + 1: uint16(26214), + 2: uint16(26800), + 3: uint16(28023), + 4: uint16(28784), + 5: uint16(30028), + 6: uint16(30342), + 7: uint16(32117), + 8: uint16(33445), + 9: uint16(34809), + 10: uint16(38283), + 11: uint16(38542), + 12: uint16(35997), + 13: uint16(20977), + 14: uint16(21182), + 15: uint16(22806), + 16: uint16(21683), + 17: uint16(23475), + 18: uint16(23830), + 19: uint16(24936), + 20: uint16(27010), + 21: uint16(28079), + 22: uint16(30861), + 23: uint16(33995), + 24: uint16(34903), + 25: uint16(35442), + 26: uint16(37799), + 27: uint16(39608), + 28: uint16(28012), + 29: uint16(39336), + 30: uint16(34521), + 31: uint16(22435), + 32: uint16(26623), + 33: uint16(34510), + 34: uint16(37390), + 35: uint16(21123), + 36: uint16(22151), + 37: uint16(21508), + 38: uint16(24275), + 39: uint16(25313), + 40: uint16(25785), + 41: uint16(26684), + 42: uint16(26680), + 43: uint16(27579), + 44: uint16(29554), + 45: uint16(30906), + 46: uint16(31339), + 47: uint16(35226), + 48: uint16(35282), + 49: uint16(36203), + 50: uint16(36611), + 51: uint16(37101), + 52: uint16(38307), + 53: uint16(38548), + 54: uint16(38761), + 55: uint16(23398), + 56: uint16(23731), + 57: uint16(27005), + 58: uint16(38989), + 59: uint16(38990), + 60: uint16(25499), + 61: uint16(31520), + 62: uint16(27179), + 63: uint16(27263), + 64: uint16(26806), + 65: uint16(39949), + 66: uint16(28511), + 67: uint16(21106), + 68: uint16(21917), + 69: uint16(24688), + 70: uint16(25324), + 71: uint16(27963), + 72: uint16(28167), + 73: uint16(28369), + 74: uint16(33883), + 75: uint16(35088), + 76: uint16(36676), + 77: uint16(19988), + 78: uint16(39993), + 79: uint16(21494), + 80: uint16(26907), + 81: uint16(27194), + 82: uint16(38788), + 83: uint16(26666), + 84: uint16(20828), + 85: uint16(31427), + 86: uint16(33970), + 87: uint16(37340), + 88: uint16(37772), + 89: uint16(22107), + 90: uint16(40232), + 91: uint16(26658), + 92: uint16(33541), + 93: uint16(33841), + }, + 19: { + 0: uint16(31909), + 1: uint16(21000), + 2: uint16(33477), + 3: uint16(29926), + 4: uint16(20094), + 5: uint16(20355), + 6: uint16(20896), + 7: uint16(23506), + 8: uint16(21002), + 9: uint16(21208), + 10: uint16(21223), + 11: uint16(24059), + 12: uint16(21914), + 13: uint16(22570), + 14: uint16(23014), + 15: uint16(23436), + 16: uint16(23448), + 17: uint16(23515), + 18: uint16(24178), + 19: uint16(24185), + 20: uint16(24739), + 21: uint16(24863), + 22: uint16(24931), + 23: uint16(25022), + 24: uint16(25563), + 25: uint16(25954), + 26: uint16(26577), + 27: uint16(26707), + 28: uint16(26874), + 29: uint16(27454), + 30: uint16(27475), + 31: uint16(27735), + 32: uint16(28450), + 33: uint16(28567), + 34: uint16(28485), + 35: uint16(29872), + 36: uint16(29976), + 37: uint16(30435), + 38: uint16(30475), + 39: uint16(31487), + 40: uint16(31649), + 41: uint16(31777), + 42: uint16(32233), + 43: uint16(32566), + 44: uint16(32752), + 45: uint16(32925), + 46: uint16(33382), + 47: uint16(33694), + 48: uint16(35251), + 49: uint16(35532), + 50: uint16(36011), + 51: uint16(36996), + 52: uint16(37969), + 53: uint16(38291), + 54: uint16(38289), + 55: uint16(38306), + 56: uint16(38501), + 57: uint16(38867), + 58: uint16(39208), + 59: uint16(33304), + 60: uint16(20024), + 61: uint16(21547), + 62: uint16(23736), + 63: uint16(24012), + 64: uint16(29609), + 65: uint16(30284), + 66: uint16(30524), + 67: uint16(23721), + 68: uint16(32747), + 69: uint16(36107), + 70: uint16(38593), + 71: uint16(38929), + 72: uint16(38996), + 73: uint16(39000), + 74: uint16(20225), + 75: uint16(20238), + 76: uint16(21361), + 77: uint16(21916), + 78: uint16(22120), + 79: uint16(22522), + 80: uint16(22855), + 81: uint16(23305), + 82: uint16(23492), + 83: uint16(23696), + 84: uint16(24076), + 85: uint16(24190), + 86: uint16(24524), + 87: uint16(25582), + 88: uint16(26426), + 89: uint16(26071), + 90: uint16(26082), + 91: uint16(26399), + 92: uint16(26827), + 93: uint16(26820), + }, + 20: { + 0: uint16(27231), + 1: uint16(24112), + 2: uint16(27589), + 3: uint16(27671), + 4: uint16(27773), + 5: uint16(30079), + 6: uint16(31048), + 7: uint16(23395), + 8: uint16(31232), + 9: uint16(32000), + 10: uint16(24509), + 11: uint16(35215), + 12: uint16(35352), + 13: uint16(36020), + 14: uint16(36215), + 15: uint16(36556), + 16: uint16(36637), + 17: uint16(39138), + 18: uint16(39438), + 19: uint16(39740), + 20: uint16(20096), + 21: uint16(20605), + 22: uint16(20736), + 23: uint16(22931), + 24: uint16(23452), + 25: uint16(25135), + 26: uint16(25216), + 27: uint16(25836), + 28: uint16(27450), + 29: uint16(29344), + 30: uint16(30097), + 31: uint16(31047), + 32: uint16(32681), + 33: uint16(34811), + 34: uint16(35516), + 35: uint16(35696), + 36: uint16(25516), + 37: uint16(33738), + 38: uint16(38816), + 39: uint16(21513), + 40: uint16(21507), + 41: uint16(21931), + 42: uint16(26708), + 43: uint16(27224), + 44: uint16(35440), + 45: uint16(30759), + 46: uint16(26485), + 47: uint16(40653), + 48: uint16(21364), + 49: uint16(23458), + 50: uint16(33050), + 51: uint16(34384), + 52: uint16(36870), + 53: uint16(19992), + 54: uint16(20037), + 55: uint16(20167), + 56: uint16(20241), + 57: uint16(21450), + 58: uint16(21560), + 59: uint16(23470), + 60: uint16(24339), + 61: uint16(24613), + 62: uint16(25937), + 63: uint16(26429), + 64: uint16(27714), + 65: uint16(27762), + 66: uint16(27875), + 67: uint16(28792), + 68: uint16(29699), + 69: uint16(31350), + 70: uint16(31406), + 71: uint16(31496), + 72: uint16(32026), + 73: uint16(31998), + 74: uint16(32102), + 75: uint16(26087), + 76: uint16(29275), + 77: uint16(21435), + 78: uint16(23621), + 79: uint16(24040), + 80: uint16(25298), + 81: uint16(25312), + 82: uint16(25369), + 83: uint16(28192), + 84: uint16(34394), + 85: uint16(35377), + 86: uint16(36317), + 87: uint16(37624), + 88: uint16(28417), + 89: uint16(31142), + 90: uint16(39770), + 91: uint16(20136), + 92: uint16(20139), + 93: uint16(20140), + }, + 21: { + 0: uint16(20379), + 1: uint16(20384), + 2: uint16(20689), + 3: uint16(20807), + 4: uint16(31478), + 5: uint16(20849), + 6: uint16(20982), + 7: uint16(21332), + 8: uint16(21281), + 9: uint16(21375), + 10: uint16(21483), + 11: uint16(21932), + 12: uint16(22659), + 13: uint16(23777), + 14: uint16(24375), + 15: uint16(24394), + 16: uint16(24623), + 17: uint16(24656), + 18: uint16(24685), + 19: uint16(25375), + 20: uint16(25945), + 21: uint16(27211), + 22: uint16(27841), + 23: uint16(29378), + 24: uint16(29421), + 25: uint16(30703), + 26: uint16(33016), + 27: uint16(33029), + 28: uint16(33288), + 29: uint16(34126), + 30: uint16(37111), + 31: uint16(37857), + 32: uint16(38911), + 33: uint16(39255), + 34: uint16(39514), + 35: uint16(20208), + 36: uint16(20957), + 37: uint16(23597), + 38: uint16(26241), + 39: uint16(26989), + 40: uint16(23616), + 41: uint16(26354), + 42: uint16(26997), + 43: uint16(29577), + 44: uint16(26704), + 45: uint16(31873), + 46: uint16(20677), + 47: uint16(21220), + 48: uint16(22343), + 49: uint16(24062), + 50: uint16(37670), + 51: uint16(26020), + 52: uint16(27427), + 53: uint16(27453), + 54: uint16(29748), + 55: uint16(31105), + 56: uint16(31165), + 57: uint16(31563), + 58: uint16(32202), + 59: uint16(33465), + 60: uint16(33740), + 61: uint16(34943), + 62: uint16(35167), + 63: uint16(35641), + 64: uint16(36817), + 65: uint16(37329), + 66: uint16(21535), + 67: uint16(37504), + 68: uint16(20061), + 69: uint16(20534), + 70: uint16(21477), + 71: uint16(21306), + 72: uint16(29399), + 73: uint16(29590), + 74: uint16(30697), + 75: uint16(33510), + 76: uint16(36527), + 77: uint16(39366), + 78: uint16(39368), + 79: uint16(39378), + 80: uint16(20855), + 81: uint16(24858), + 82: uint16(34398), + 83: uint16(21936), + 84: uint16(31354), + 85: uint16(20598), + 86: uint16(23507), + 87: uint16(36935), + 88: uint16(38533), + 89: uint16(20018), + 90: uint16(27355), + 91: uint16(37351), + 92: uint16(23633), + 93: uint16(23624), + }, + 22: { + 0: uint16(25496), + 1: uint16(31391), + 2: uint16(27795), + 3: uint16(38772), + 4: uint16(36705), + 5: uint16(31402), + 6: uint16(29066), + 7: uint16(38536), + 8: uint16(31874), + 9: uint16(26647), + 10: uint16(32368), + 11: uint16(26705), + 12: uint16(37740), + 13: uint16(21234), + 14: uint16(21531), + 15: uint16(34219), + 16: uint16(35347), + 17: uint16(32676), + 18: uint16(36557), + 19: uint16(37089), + 20: uint16(21350), + 21: uint16(34952), + 22: uint16(31041), + 23: uint16(20418), + 24: uint16(20670), + 25: uint16(21009), + 26: uint16(20804), + 27: uint16(21843), + 28: uint16(22317), + 29: uint16(29674), + 30: uint16(22411), + 31: uint16(22865), + 32: uint16(24418), + 33: uint16(24452), + 34: uint16(24693), + 35: uint16(24950), + 36: uint16(24935), + 37: uint16(25001), + 38: uint16(25522), + 39: uint16(25658), + 40: uint16(25964), + 41: uint16(26223), + 42: uint16(26690), + 43: uint16(28179), + 44: uint16(30054), + 45: uint16(31293), + 46: uint16(31995), + 47: uint16(32076), + 48: uint16(32153), + 49: uint16(32331), + 50: uint16(32619), + 51: uint16(33550), + 52: uint16(33610), + 53: uint16(34509), + 54: uint16(35336), + 55: uint16(35427), + 56: uint16(35686), + 57: uint16(36605), + 58: uint16(38938), + 59: uint16(40335), + 60: uint16(33464), + 61: uint16(36814), + 62: uint16(39912), + 63: uint16(21127), + 64: uint16(25119), + 65: uint16(25731), + 66: uint16(28608), + 67: uint16(38553), + 68: uint16(26689), + 69: uint16(20625), + 70: uint16(27424), + 71: uint16(27770), + 72: uint16(28500), + 73: uint16(31348), + 74: uint16(32080), + 75: uint16(34880), + 76: uint16(35363), + 77: uint16(26376), + 78: uint16(20214), + 79: uint16(20537), + 80: uint16(20518), + 81: uint16(20581), + 82: uint16(20860), + 83: uint16(21048), + 84: uint16(21091), + 85: uint16(21927), + 86: uint16(22287), + 87: uint16(22533), + 88: uint16(23244), + 89: uint16(24314), + 90: uint16(25010), + 91: uint16(25080), + 92: uint16(25331), + 93: uint16(25458), + }, + 23: { + 0: uint16(26908), + 1: uint16(27177), + 2: uint16(29309), + 3: uint16(29356), + 4: uint16(29486), + 5: uint16(30740), + 6: uint16(30831), + 7: uint16(32121), + 8: uint16(30476), + 9: uint16(32937), + 10: uint16(35211), + 11: uint16(35609), + 12: uint16(36066), + 13: uint16(36562), + 14: uint16(36963), + 15: uint16(37749), + 16: uint16(38522), + 17: uint16(38997), + 18: uint16(39443), + 19: uint16(40568), + 20: uint16(20803), + 21: uint16(21407), + 22: uint16(21427), + 23: uint16(24187), + 24: uint16(24358), + 25: uint16(28187), + 26: uint16(28304), + 27: uint16(29572), + 28: uint16(29694), + 29: uint16(32067), + 30: uint16(33335), + 31: uint16(35328), + 32: uint16(35578), + 33: uint16(38480), + 34: uint16(20046), + 35: uint16(20491), + 36: uint16(21476), + 37: uint16(21628), + 38: uint16(22266), + 39: uint16(22993), + 40: uint16(23396), + 41: uint16(24049), + 42: uint16(24235), + 43: uint16(24359), + 44: uint16(25144), + 45: uint16(25925), + 46: uint16(26543), + 47: uint16(28246), + 48: uint16(29392), + 49: uint16(31946), + 50: uint16(34996), + 51: uint16(32929), + 52: uint16(32993), + 53: uint16(33776), + 54: uint16(34382), + 55: uint16(35463), + 56: uint16(36328), + 57: uint16(37431), + 58: uint16(38599), + 59: uint16(39015), + 60: uint16(40723), + 61: uint16(20116), + 62: uint16(20114), + 63: uint16(20237), + 64: uint16(21320), + 65: uint16(21577), + 66: uint16(21566), + 67: uint16(23087), + 68: uint16(24460), + 69: uint16(24481), + 70: uint16(24735), + 71: uint16(26791), + 72: uint16(27278), + 73: uint16(29786), + 74: uint16(30849), + 75: uint16(35486), + 76: uint16(35492), + 77: uint16(35703), + 78: uint16(37264), + 79: uint16(20062), + 80: uint16(39881), + 81: uint16(20132), + 82: uint16(20348), + 83: uint16(20399), + 84: uint16(20505), + 85: uint16(20502), + 86: uint16(20809), + 87: uint16(20844), + 88: uint16(21151), + 89: uint16(21177), + 90: uint16(21246), + 91: uint16(21402), + 92: uint16(21475), + 93: uint16(21521), + }, + 24: { + 0: uint16(21518), + 1: uint16(21897), + 2: uint16(22353), + 3: uint16(22434), + 4: uint16(22909), + 5: uint16(23380), + 6: uint16(23389), + 7: uint16(23439), + 8: uint16(24037), + 9: uint16(24039), + 10: uint16(24055), + 11: uint16(24184), + 12: uint16(24195), + 13: uint16(24218), + 14: uint16(24247), + 15: uint16(24344), + 16: uint16(24658), + 17: uint16(24908), + 18: uint16(25239), + 19: uint16(25304), + 20: uint16(25511), + 21: uint16(25915), + 22: uint16(26114), + 23: uint16(26179), + 24: uint16(26356), + 25: uint16(26477), + 26: uint16(26657), + 27: uint16(26775), + 28: uint16(27083), + 29: uint16(27743), + 30: uint16(27946), + 31: uint16(28009), + 32: uint16(28207), + 33: uint16(28317), + 34: uint16(30002), + 35: uint16(30343), + 36: uint16(30828), + 37: uint16(31295), + 38: uint16(31968), + 39: uint16(32005), + 40: uint16(32024), + 41: uint16(32094), + 42: uint16(32177), + 43: uint16(32789), + 44: uint16(32771), + 45: uint16(32943), + 46: uint16(32945), + 47: uint16(33108), + 48: uint16(33167), + 49: uint16(33322), + 50: uint16(33618), + 51: uint16(34892), + 52: uint16(34913), + 53: uint16(35611), + 54: uint16(36002), + 55: uint16(36092), + 56: uint16(37066), + 57: uint16(37237), + 58: uint16(37489), + 59: uint16(30783), + 60: uint16(37628), + 61: uint16(38308), + 62: uint16(38477), + 63: uint16(38917), + 64: uint16(39321), + 65: uint16(39640), + 66: uint16(40251), + 67: uint16(21083), + 68: uint16(21163), + 69: uint16(21495), + 70: uint16(21512), + 71: uint16(22741), + 72: uint16(25335), + 73: uint16(28640), + 74: uint16(35946), + 75: uint16(36703), + 76: uint16(40633), + 77: uint16(20811), + 78: uint16(21051), + 79: uint16(21578), + 80: uint16(22269), + 81: uint16(31296), + 82: uint16(37239), + 83: uint16(40288), + 84: uint16(40658), + 85: uint16(29508), + 86: uint16(28425), + 87: uint16(33136), + 88: uint16(29969), + 89: uint16(24573), + 90: uint16(24794), + 91: uint16(39592), + 92: uint16(29403), + 93: uint16(36796), + }, + 25: { + 0: uint16(27492), + 1: uint16(38915), + 2: uint16(20170), + 3: uint16(22256), + 4: uint16(22372), + 5: uint16(22718), + 6: uint16(23130), + 7: uint16(24680), + 8: uint16(25031), + 9: uint16(26127), + 10: uint16(26118), + 11: uint16(26681), + 12: uint16(26801), + 13: uint16(28151), + 14: uint16(30165), + 15: uint16(32058), + 16: uint16(33390), + 17: uint16(39746), + 18: uint16(20123), + 19: uint16(20304), + 20: uint16(21449), + 21: uint16(21766), + 22: uint16(23919), + 23: uint16(24038), + 24: uint16(24046), + 25: uint16(26619), + 26: uint16(27801), + 27: uint16(29811), + 28: uint16(30722), + 29: uint16(35408), + 30: uint16(37782), + 31: uint16(35039), + 32: uint16(22352), + 33: uint16(24231), + 34: uint16(25387), + 35: uint16(20661), + 36: uint16(20652), + 37: uint16(20877), + 38: uint16(26368), + 39: uint16(21705), + 40: uint16(22622), + 41: uint16(22971), + 42: uint16(23472), + 43: uint16(24425), + 44: uint16(25165), + 45: uint16(25505), + 46: uint16(26685), + 47: uint16(27507), + 48: uint16(28168), + 49: uint16(28797), + 50: uint16(37319), + 51: uint16(29312), + 52: uint16(30741), + 53: uint16(30758), + 54: uint16(31085), + 55: uint16(25998), + 56: uint16(32048), + 57: uint16(33756), + 58: uint16(35009), + 59: uint16(36617), + 60: uint16(38555), + 61: uint16(21092), + 62: uint16(22312), + 63: uint16(26448), + 64: uint16(32618), + 65: uint16(36001), + 66: uint16(20916), + 67: uint16(22338), + 68: uint16(38442), + 69: uint16(22586), + 70: uint16(27018), + 71: uint16(32948), + 72: uint16(21682), + 73: uint16(23822), + 74: uint16(22524), + 75: uint16(30869), + 76: uint16(40442), + 77: uint16(20316), + 78: uint16(21066), + 79: uint16(21643), + 80: uint16(25662), + 81: uint16(26152), + 82: uint16(26388), + 83: uint16(26613), + 84: uint16(31364), + 85: uint16(31574), + 86: uint16(32034), + 87: uint16(37679), + 88: uint16(26716), + 89: uint16(39853), + 90: uint16(31545), + 91: uint16(21273), + 92: uint16(20874), + 93: uint16(21047), + }, + 26: { + 0: uint16(23519), + 1: uint16(25334), + 2: uint16(25774), + 3: uint16(25830), + 4: uint16(26413), + 5: uint16(27578), + 6: uint16(34217), + 7: uint16(38609), + 8: uint16(30352), + 9: uint16(39894), + 10: uint16(25420), + 11: uint16(37638), + 12: uint16(39851), + 13: uint16(30399), + 14: uint16(26194), + 15: uint16(19977), + 16: uint16(20632), + 17: uint16(21442), + 18: uint16(23665), + 19: uint16(24808), + 20: uint16(25746), + 21: uint16(25955), + 22: uint16(26719), + 23: uint16(29158), + 24: uint16(29642), + 25: uint16(29987), + 26: uint16(31639), + 27: uint16(32386), + 28: uint16(34453), + 29: uint16(35715), + 30: uint16(36059), + 31: uint16(37240), + 32: uint16(39184), + 33: uint16(26028), + 34: uint16(26283), + 35: uint16(27531), + 36: uint16(20181), + 37: uint16(20180), + 38: uint16(20282), + 39: uint16(20351), + 40: uint16(21050), + 41: uint16(21496), + 42: uint16(21490), + 43: uint16(21987), + 44: uint16(22235), + 45: uint16(22763), + 46: uint16(22987), + 47: uint16(22985), + 48: uint16(23039), + 49: uint16(23376), + 50: uint16(23629), + 51: uint16(24066), + 52: uint16(24107), + 53: uint16(24535), + 54: uint16(24605), + 55: uint16(25351), + 56: uint16(25903), + 57: uint16(23388), + 58: uint16(26031), + 59: uint16(26045), + 60: uint16(26088), + 61: uint16(26525), + 62: uint16(27490), + 63: uint16(27515), + 64: uint16(27663), + 65: uint16(29509), + 66: uint16(31049), + 67: uint16(31169), + 68: uint16(31992), + 69: uint16(32025), + 70: uint16(32043), + 71: uint16(32930), + 72: uint16(33026), + 73: uint16(33267), + 74: uint16(35222), + 75: uint16(35422), + 76: uint16(35433), + 77: uint16(35430), + 78: uint16(35468), + 79: uint16(35566), + 80: uint16(36039), + 81: uint16(36060), + 82: uint16(38604), + 83: uint16(39164), + 84: uint16(27503), + 85: uint16(20107), + 86: uint16(20284), + 87: uint16(20365), + 88: uint16(20816), + 89: uint16(23383), + 90: uint16(23546), + 91: uint16(24904), + 92: uint16(25345), + 93: uint16(26178), + }, + 27: { + 0: uint16(27425), + 1: uint16(28363), + 2: uint16(27835), + 3: uint16(29246), + 4: uint16(29885), + 5: uint16(30164), + 6: uint16(30913), + 7: uint16(31034), + 8: uint16(32780), + 9: uint16(32819), + 10: uint16(33258), + 11: uint16(33940), + 12: uint16(36766), + 13: uint16(27728), + 14: uint16(40575), + 15: uint16(24335), + 16: uint16(35672), + 17: uint16(40235), + 18: uint16(31482), + 19: uint16(36600), + 20: uint16(23437), + 21: uint16(38635), + 22: uint16(19971), + 23: uint16(21489), + 24: uint16(22519), + 25: uint16(22833), + 26: uint16(23241), + 27: uint16(23460), + 28: uint16(24713), + 29: uint16(28287), + 30: uint16(28422), + 31: uint16(30142), + 32: uint16(36074), + 33: uint16(23455), + 34: uint16(34048), + 35: uint16(31712), + 36: uint16(20594), + 37: uint16(26612), + 38: uint16(33437), + 39: uint16(23649), + 40: uint16(34122), + 41: uint16(32286), + 42: uint16(33294), + 43: uint16(20889), + 44: uint16(23556), + 45: uint16(25448), + 46: uint16(36198), + 47: uint16(26012), + 48: uint16(29038), + 49: uint16(31038), + 50: uint16(32023), + 51: uint16(32773), + 52: uint16(35613), + 53: uint16(36554), + 54: uint16(36974), + 55: uint16(34503), + 56: uint16(37034), + 57: uint16(20511), + 58: uint16(21242), + 59: uint16(23610), + 60: uint16(26451), + 61: uint16(28796), + 62: uint16(29237), + 63: uint16(37196), + 64: uint16(37320), + 65: uint16(37675), + 66: uint16(33509), + 67: uint16(23490), + 68: uint16(24369), + 69: uint16(24825), + 70: uint16(20027), + 71: uint16(21462), + 72: uint16(23432), + 73: uint16(25163), + 74: uint16(26417), + 75: uint16(27530), + 76: uint16(29417), + 77: uint16(29664), + 78: uint16(31278), + 79: uint16(33131), + 80: uint16(36259), + 81: uint16(37202), + 82: uint16(39318), + 83: uint16(20754), + 84: uint16(21463), + 85: uint16(21610), + 86: uint16(23551), + 87: uint16(25480), + 88: uint16(27193), + 89: uint16(32172), + 90: uint16(38656), + 91: uint16(22234), + 92: uint16(21454), + 93: uint16(21608), + }, + 28: { + 0: uint16(23447), + 1: uint16(23601), + 2: uint16(24030), + 3: uint16(20462), + 4: uint16(24833), + 5: uint16(25342), + 6: uint16(27954), + 7: uint16(31168), + 8: uint16(31179), + 9: uint16(32066), + 10: uint16(32333), + 11: uint16(32722), + 12: uint16(33261), + 13: uint16(33311), + 14: uint16(33936), + 15: uint16(34886), + 16: uint16(35186), + 17: uint16(35728), + 18: uint16(36468), + 19: uint16(36655), + 20: uint16(36913), + 21: uint16(37195), + 22: uint16(37228), + 23: uint16(38598), + 24: uint16(37276), + 25: uint16(20160), + 26: uint16(20303), + 27: uint16(20805), + 28: uint16(21313), + 29: uint16(24467), + 30: uint16(25102), + 31: uint16(26580), + 32: uint16(27713), + 33: uint16(28171), + 34: uint16(29539), + 35: uint16(32294), + 36: uint16(37325), + 37: uint16(37507), + 38: uint16(21460), + 39: uint16(22809), + 40: uint16(23487), + 41: uint16(28113), + 42: uint16(31069), + 43: uint16(32302), + 44: uint16(31899), + 45: uint16(22654), + 46: uint16(29087), + 47: uint16(20986), + 48: uint16(34899), + 49: uint16(36848), + 50: uint16(20426), + 51: uint16(23803), + 52: uint16(26149), + 53: uint16(30636), + 54: uint16(31459), + 55: uint16(33308), + 56: uint16(39423), + 57: uint16(20934), + 58: uint16(24490), + 59: uint16(26092), + 60: uint16(26991), + 61: uint16(27529), + 62: uint16(28147), + 63: uint16(28310), + 64: uint16(28516), + 65: uint16(30462), + 66: uint16(32020), + 67: uint16(24033), + 68: uint16(36981), + 69: uint16(37255), + 70: uint16(38918), + 71: uint16(20966), + 72: uint16(21021), + 73: uint16(25152), + 74: uint16(26257), + 75: uint16(26329), + 76: uint16(28186), + 77: uint16(24246), + 78: uint16(32210), + 79: uint16(32626), + 80: uint16(26360), + 81: uint16(34223), + 82: uint16(34295), + 83: uint16(35576), + 84: uint16(21161), + 85: uint16(21465), + 86: uint16(22899), + 87: uint16(24207), + 88: uint16(24464), + 89: uint16(24661), + 90: uint16(37604), + 91: uint16(38500), + 92: uint16(20663), + 93: uint16(20767), + }, + 29: { + 0: uint16(21213), + 1: uint16(21280), + 2: uint16(21319), + 3: uint16(21484), + 4: uint16(21736), + 5: uint16(21830), + 6: uint16(21809), + 7: uint16(22039), + 8: uint16(22888), + 9: uint16(22974), + 10: uint16(23100), + 11: uint16(23477), + 12: uint16(23558), + 13: uint16(23567), + 14: uint16(23569), + 15: uint16(23578), + 16: uint16(24196), + 17: uint16(24202), + 18: uint16(24288), + 19: uint16(24432), + 20: uint16(25215), + 21: uint16(25220), + 22: uint16(25307), + 23: uint16(25484), + 24: uint16(25463), + 25: uint16(26119), + 26: uint16(26124), + 27: uint16(26157), + 28: uint16(26230), + 29: uint16(26494), + 30: uint16(26786), + 31: uint16(27167), + 32: uint16(27189), + 33: uint16(27836), + 34: uint16(28040), + 35: uint16(28169), + 36: uint16(28248), + 37: uint16(28988), + 38: uint16(28966), + 39: uint16(29031), + 40: uint16(30151), + 41: uint16(30465), + 42: uint16(30813), + 43: uint16(30977), + 44: uint16(31077), + 45: uint16(31216), + 46: uint16(31456), + 47: uint16(31505), + 48: uint16(31911), + 49: uint16(32057), + 50: uint16(32918), + 51: uint16(33750), + 52: uint16(33931), + 53: uint16(34121), + 54: uint16(34909), + 55: uint16(35059), + 56: uint16(35359), + 57: uint16(35388), + 58: uint16(35412), + 59: uint16(35443), + 60: uint16(35937), + 61: uint16(36062), + 62: uint16(37284), + 63: uint16(37478), + 64: uint16(37758), + 65: uint16(37912), + 66: uint16(38556), + 67: uint16(38808), + 68: uint16(19978), + 69: uint16(19976), + 70: uint16(19998), + 71: uint16(20055), + 72: uint16(20887), + 73: uint16(21104), + 74: uint16(22478), + 75: uint16(22580), + 76: uint16(22732), + 77: uint16(23330), + 78: uint16(24120), + 79: uint16(24773), + 80: uint16(25854), + 81: uint16(26465), + 82: uint16(26454), + 83: uint16(27972), + 84: uint16(29366), + 85: uint16(30067), + 86: uint16(31331), + 87: uint16(33976), + 88: uint16(35698), + 89: uint16(37304), + 90: uint16(37664), + 91: uint16(22065), + 92: uint16(22516), + 93: uint16(39166), + }, + 30: { + 0: uint16(25325), + 1: uint16(26893), + 2: uint16(27542), + 3: uint16(29165), + 4: uint16(32340), + 5: uint16(32887), + 6: uint16(33394), + 7: uint16(35302), + 8: uint16(39135), + 9: uint16(34645), + 10: uint16(36785), + 11: uint16(23611), + 12: uint16(20280), + 13: uint16(20449), + 14: uint16(20405), + 15: uint16(21767), + 16: uint16(23072), + 17: uint16(23517), + 18: uint16(23529), + 19: uint16(24515), + 20: uint16(24910), + 21: uint16(25391), + 22: uint16(26032), + 23: uint16(26187), + 24: uint16(26862), + 25: uint16(27035), + 26: uint16(28024), + 27: uint16(28145), + 28: uint16(30003), + 29: uint16(30137), + 30: uint16(30495), + 31: uint16(31070), + 32: uint16(31206), + 33: uint16(32051), + 34: uint16(33251), + 35: uint16(33455), + 36: uint16(34218), + 37: uint16(35242), + 38: uint16(35386), + 39: uint16(36523), + 40: uint16(36763), + 41: uint16(36914), + 42: uint16(37341), + 43: uint16(38663), + 44: uint16(20154), + 45: uint16(20161), + 46: uint16(20995), + 47: uint16(22645), + 48: uint16(22764), + 49: uint16(23563), + 50: uint16(29978), + 51: uint16(23613), + 52: uint16(33102), + 53: uint16(35338), + 54: uint16(36805), + 55: uint16(38499), + 56: uint16(38765), + 57: uint16(31525), + 58: uint16(35535), + 59: uint16(38920), + 60: uint16(37218), + 61: uint16(22259), + 62: uint16(21416), + 63: uint16(36887), + 64: uint16(21561), + 65: uint16(22402), + 66: uint16(24101), + 67: uint16(25512), + 68: uint16(27700), + 69: uint16(28810), + 70: uint16(30561), + 71: uint16(31883), + 72: uint16(32736), + 73: uint16(34928), + 74: uint16(36930), + 75: uint16(37204), + 76: uint16(37648), + 77: uint16(37656), + 78: uint16(38543), + 79: uint16(29790), + 80: uint16(39620), + 81: uint16(23815), + 82: uint16(23913), + 83: uint16(25968), + 84: uint16(26530), + 85: uint16(36264), + 86: uint16(38619), + 87: uint16(25454), + 88: uint16(26441), + 89: uint16(26905), + 90: uint16(33733), + 91: uint16(38935), + 92: uint16(38592), + 93: uint16(35070), + }, + 31: { + 0: uint16(28548), + 1: uint16(25722), + 2: uint16(23544), + 3: uint16(19990), + 4: uint16(28716), + 5: uint16(30045), + 6: uint16(26159), + 7: uint16(20932), + 8: uint16(21046), + 9: uint16(21218), + 10: uint16(22995), + 11: uint16(24449), + 12: uint16(24615), + 13: uint16(25104), + 14: uint16(25919), + 15: uint16(25972), + 16: uint16(26143), + 17: uint16(26228), + 18: uint16(26866), + 19: uint16(26646), + 20: uint16(27491), + 21: uint16(28165), + 22: uint16(29298), + 23: uint16(29983), + 24: uint16(30427), + 25: uint16(31934), + 26: uint16(32854), + 27: uint16(22768), + 28: uint16(35069), + 29: uint16(35199), + 30: uint16(35488), + 31: uint16(35475), + 32: uint16(35531), + 33: uint16(36893), + 34: uint16(37266), + 35: uint16(38738), + 36: uint16(38745), + 37: uint16(25993), + 38: uint16(31246), + 39: uint16(33030), + 40: uint16(38587), + 41: uint16(24109), + 42: uint16(24796), + 43: uint16(25114), + 44: uint16(26021), + 45: uint16(26132), + 46: uint16(26512), + 47: uint16(30707), + 48: uint16(31309), + 49: uint16(31821), + 50: uint16(32318), + 51: uint16(33034), + 52: uint16(36012), + 53: uint16(36196), + 54: uint16(36321), + 55: uint16(36447), + 56: uint16(30889), + 57: uint16(20999), + 58: uint16(25305), + 59: uint16(25509), + 60: uint16(25666), + 61: uint16(25240), + 62: uint16(35373), + 63: uint16(31363), + 64: uint16(31680), + 65: uint16(35500), + 66: uint16(38634), + 67: uint16(32118), + 68: uint16(33292), + 69: uint16(34633), + 70: uint16(20185), + 71: uint16(20808), + 72: uint16(21315), + 73: uint16(21344), + 74: uint16(23459), + 75: uint16(23554), + 76: uint16(23574), + 77: uint16(24029), + 78: uint16(25126), + 79: uint16(25159), + 80: uint16(25776), + 81: uint16(26643), + 82: uint16(26676), + 83: uint16(27849), + 84: uint16(27973), + 85: uint16(27927), + 86: uint16(26579), + 87: uint16(28508), + 88: uint16(29006), + 89: uint16(29053), + 90: uint16(26059), + 91: uint16(31359), + 92: uint16(31661), + 93: uint16(32218), + }, + 32: { + 0: uint16(32330), + 1: uint16(32680), + 2: uint16(33146), + 3: uint16(33307), + 4: uint16(33337), + 5: uint16(34214), + 6: uint16(35438), + 7: uint16(36046), + 8: uint16(36341), + 9: uint16(36984), + 10: uint16(36983), + 11: uint16(37549), + 12: uint16(37521), + 13: uint16(38275), + 14: uint16(39854), + 15: uint16(21069), + 16: uint16(21892), + 17: uint16(28472), + 18: uint16(28982), + 19: uint16(20840), + 20: uint16(31109), + 21: uint16(32341), + 22: uint16(33203), + 23: uint16(31950), + 24: uint16(22092), + 25: uint16(22609), + 26: uint16(23720), + 27: uint16(25514), + 28: uint16(26366), + 29: uint16(26365), + 30: uint16(26970), + 31: uint16(29401), + 32: uint16(30095), + 33: uint16(30094), + 34: uint16(30990), + 35: uint16(31062), + 36: uint16(31199), + 37: uint16(31895), + 38: uint16(32032), + 39: uint16(32068), + 40: uint16(34311), + 41: uint16(35380), + 42: uint16(38459), + 43: uint16(36961), + 44: uint16(40736), + 45: uint16(20711), + 46: uint16(21109), + 47: uint16(21452), + 48: uint16(21474), + 49: uint16(20489), + 50: uint16(21930), + 51: uint16(22766), + 52: uint16(22863), + 53: uint16(29245), + 54: uint16(23435), + 55: uint16(23652), + 56: uint16(21277), + 57: uint16(24803), + 58: uint16(24819), + 59: uint16(25436), + 60: uint16(25475), + 61: uint16(25407), + 62: uint16(25531), + 63: uint16(25805), + 64: uint16(26089), + 65: uint16(26361), + 66: uint16(24035), + 67: uint16(27085), + 68: uint16(27133), + 69: uint16(28437), + 70: uint16(29157), + 71: uint16(20105), + 72: uint16(30185), + 73: uint16(30456), + 74: uint16(31379), + 75: uint16(31967), + 76: uint16(32207), + 77: uint16(32156), + 78: uint16(32865), + 79: uint16(33609), + 80: uint16(33624), + 81: uint16(33900), + 82: uint16(33980), + 83: uint16(34299), + 84: uint16(35013), + 85: uint16(36208), + 86: uint16(36865), + 87: uint16(36973), + 88: uint16(37783), + 89: uint16(38684), + 90: uint16(39442), + 91: uint16(20687), + 92: uint16(22679), + 93: uint16(24974), + }, + 33: { + 0: uint16(33235), + 1: uint16(34101), + 2: uint16(36104), + 3: uint16(36896), + 4: uint16(20419), + 5: uint16(20596), + 6: uint16(21063), + 7: uint16(21363), + 8: uint16(24687), + 9: uint16(25417), + 10: uint16(26463), + 11: uint16(28204), + 12: uint16(36275), + 13: uint16(36895), + 14: uint16(20439), + 15: uint16(23646), + 16: uint16(36042), + 17: uint16(26063), + 18: uint16(32154), + 19: uint16(21330), + 20: uint16(34966), + 21: uint16(20854), + 22: uint16(25539), + 23: uint16(23384), + 24: uint16(23403), + 25: uint16(23562), + 26: uint16(25613), + 27: uint16(26449), + 28: uint16(36956), + 29: uint16(20182), + 30: uint16(22810), + 31: uint16(22826), + 32: uint16(27760), + 33: uint16(35409), + 34: uint16(21822), + 35: uint16(22549), + 36: uint16(22949), + 37: uint16(24816), + 38: uint16(25171), + 39: uint16(26561), + 40: uint16(33333), + 41: uint16(26965), + 42: uint16(38464), + 43: uint16(39364), + 44: uint16(39464), + 45: uint16(20307), + 46: uint16(22534), + 47: uint16(23550), + 48: uint16(32784), + 49: uint16(23729), + 50: uint16(24111), + 51: uint16(24453), + 52: uint16(24608), + 53: uint16(24907), + 54: uint16(25140), + 55: uint16(26367), + 56: uint16(27888), + 57: uint16(28382), + 58: uint16(32974), + 59: uint16(33151), + 60: uint16(33492), + 61: uint16(34955), + 62: uint16(36024), + 63: uint16(36864), + 64: uint16(36910), + 65: uint16(38538), + 66: uint16(40667), + 67: uint16(39899), + 68: uint16(20195), + 69: uint16(21488), + 70: uint16(22823), + 71: uint16(31532), + 72: uint16(37261), + 73: uint16(38988), + 74: uint16(40441), + 75: uint16(28381), + 76: uint16(28711), + 77: uint16(21331), + 78: uint16(21828), + 79: uint16(23429), + 80: uint16(25176), + 81: uint16(25246), + 82: uint16(25299), + 83: uint16(27810), + 84: uint16(28655), + 85: uint16(29730), + 86: uint16(35351), + 87: uint16(37944), + 88: uint16(28609), + 89: uint16(35582), + 90: uint16(33592), + 91: uint16(20967), + 92: uint16(34552), + 93: uint16(21482), + }, + 34: { + 0: uint16(21481), + 1: uint16(20294), + 2: uint16(36948), + 3: uint16(36784), + 4: uint16(22890), + 5: uint16(33073), + 6: uint16(24061), + 7: uint16(31466), + 8: uint16(36799), + 9: uint16(26842), + 10: uint16(35895), + 11: uint16(29432), + 12: uint16(40008), + 13: uint16(27197), + 14: uint16(35504), + 15: uint16(20025), + 16: uint16(21336), + 17: uint16(22022), + 18: uint16(22374), + 19: uint16(25285), + 20: uint16(25506), + 21: uint16(26086), + 22: uint16(27470), + 23: uint16(28129), + 24: uint16(28251), + 25: uint16(28845), + 26: uint16(30701), + 27: uint16(31471), + 28: uint16(31658), + 29: uint16(32187), + 30: uint16(32829), + 31: uint16(32966), + 32: uint16(34507), + 33: uint16(35477), + 34: uint16(37723), + 35: uint16(22243), + 36: uint16(22727), + 37: uint16(24382), + 38: uint16(26029), + 39: uint16(26262), + 40: uint16(27264), + 41: uint16(27573), + 42: uint16(30007), + 43: uint16(35527), + 44: uint16(20516), + 45: uint16(30693), + 46: uint16(22320), + 47: uint16(24347), + 48: uint16(24677), + 49: uint16(26234), + 50: uint16(27744), + 51: uint16(30196), + 52: uint16(31258), + 53: uint16(32622), + 54: uint16(33268), + 55: uint16(34584), + 56: uint16(36933), + 57: uint16(39347), + 58: uint16(31689), + 59: uint16(30044), + 60: uint16(31481), + 61: uint16(31569), + 62: uint16(33988), + 63: uint16(36880), + 64: uint16(31209), + 65: uint16(31378), + 66: uint16(33590), + 67: uint16(23265), + 68: uint16(30528), + 69: uint16(20013), + 70: uint16(20210), + 71: uint16(23449), + 72: uint16(24544), + 73: uint16(25277), + 74: uint16(26172), + 75: uint16(26609), + 76: uint16(27880), + 77: uint16(34411), + 78: uint16(34935), + 79: uint16(35387), + 80: uint16(37198), + 81: uint16(37619), + 82: uint16(39376), + 83: uint16(27159), + 84: uint16(28710), + 85: uint16(29482), + 86: uint16(33511), + 87: uint16(33879), + 88: uint16(36015), + 89: uint16(19969), + 90: uint16(20806), + 91: uint16(20939), + 92: uint16(21899), + 93: uint16(23541), + }, + 35: { + 0: uint16(24086), + 1: uint16(24115), + 2: uint16(24193), + 3: uint16(24340), + 4: uint16(24373), + 5: uint16(24427), + 6: uint16(24500), + 7: uint16(25074), + 8: uint16(25361), + 9: uint16(26274), + 10: uint16(26397), + 11: uint16(28526), + 12: uint16(29266), + 13: uint16(30010), + 14: uint16(30522), + 15: uint16(32884), + 16: uint16(33081), + 17: uint16(33144), + 18: uint16(34678), + 19: uint16(35519), + 20: uint16(35548), + 21: uint16(36229), + 22: uint16(36339), + 23: uint16(37530), + 24: uint16(38263), + 25: uint16(38914), + 26: uint16(40165), + 27: uint16(21189), + 28: uint16(25431), + 29: uint16(30452), + 30: uint16(26389), + 31: uint16(27784), + 32: uint16(29645), + 33: uint16(36035), + 34: uint16(37806), + 35: uint16(38515), + 36: uint16(27941), + 37: uint16(22684), + 38: uint16(26894), + 39: uint16(27084), + 40: uint16(36861), + 41: uint16(37786), + 42: uint16(30171), + 43: uint16(36890), + 44: uint16(22618), + 45: uint16(26626), + 46: uint16(25524), + 47: uint16(27131), + 48: uint16(20291), + 49: uint16(28460), + 50: uint16(26584), + 51: uint16(36795), + 52: uint16(34086), + 53: uint16(32180), + 54: uint16(37716), + 55: uint16(26943), + 56: uint16(28528), + 57: uint16(22378), + 58: uint16(22775), + 59: uint16(23340), + 60: uint16(32044), + 61: uint16(29226), + 62: uint16(21514), + 63: uint16(37347), + 64: uint16(40372), + 65: uint16(20141), + 66: uint16(20302), + 67: uint16(20572), + 68: uint16(20597), + 69: uint16(21059), + 70: uint16(35998), + 71: uint16(21576), + 72: uint16(22564), + 73: uint16(23450), + 74: uint16(24093), + 75: uint16(24213), + 76: uint16(24237), + 77: uint16(24311), + 78: uint16(24351), + 79: uint16(24716), + 80: uint16(25269), + 81: uint16(25402), + 82: uint16(25552), + 83: uint16(26799), + 84: uint16(27712), + 85: uint16(30855), + 86: uint16(31118), + 87: uint16(31243), + 88: uint16(32224), + 89: uint16(33351), + 90: uint16(35330), + 91: uint16(35558), + 92: uint16(36420), + 93: uint16(36883), + }, + 36: { + 0: uint16(37048), + 1: uint16(37165), + 2: uint16(37336), + 3: uint16(40718), + 4: uint16(27877), + 5: uint16(25688), + 6: uint16(25826), + 7: uint16(25973), + 8: uint16(28404), + 9: uint16(30340), + 10: uint16(31515), + 11: uint16(36969), + 12: uint16(37841), + 13: uint16(28346), + 14: uint16(21746), + 15: uint16(24505), + 16: uint16(25764), + 17: uint16(36685), + 18: uint16(36845), + 19: uint16(37444), + 20: uint16(20856), + 21: uint16(22635), + 22: uint16(22825), + 23: uint16(23637), + 24: uint16(24215), + 25: uint16(28155), + 26: uint16(32399), + 27: uint16(29980), + 28: uint16(36028), + 29: uint16(36578), + 30: uint16(39003), + 31: uint16(28857), + 32: uint16(20253), + 33: uint16(27583), + 34: uint16(28593), + 35: uint16(30000), + 36: uint16(38651), + 37: uint16(20814), + 38: uint16(21520), + 39: uint16(22581), + 40: uint16(22615), + 41: uint16(22956), + 42: uint16(23648), + 43: uint16(24466), + 44: uint16(26007), + 45: uint16(26460), + 46: uint16(28193), + 47: uint16(30331), + 48: uint16(33759), + 49: uint16(36077), + 50: uint16(36884), + 51: uint16(37117), + 52: uint16(37709), + 53: uint16(30757), + 54: uint16(30778), + 55: uint16(21162), + 56: uint16(24230), + 57: uint16(22303), + 58: uint16(22900), + 59: uint16(24594), + 60: uint16(20498), + 61: uint16(20826), + 62: uint16(20908), + 63: uint16(20941), + 64: uint16(20992), + 65: uint16(21776), + 66: uint16(22612), + 67: uint16(22616), + 68: uint16(22871), + 69: uint16(23445), + 70: uint16(23798), + 71: uint16(23947), + 72: uint16(24764), + 73: uint16(25237), + 74: uint16(25645), + 75: uint16(26481), + 76: uint16(26691), + 77: uint16(26812), + 78: uint16(26847), + 79: uint16(30423), + 80: uint16(28120), + 81: uint16(28271), + 82: uint16(28059), + 83: uint16(28783), + 84: uint16(29128), + 85: uint16(24403), + 86: uint16(30168), + 87: uint16(31095), + 88: uint16(31561), + 89: uint16(31572), + 90: uint16(31570), + 91: uint16(31958), + 92: uint16(32113), + 93: uint16(21040), + }, + 37: { + 0: uint16(33891), + 1: uint16(34153), + 2: uint16(34276), + 3: uint16(35342), + 4: uint16(35588), + 5: uint16(35910), + 6: uint16(36367), + 7: uint16(36867), + 8: uint16(36879), + 9: uint16(37913), + 10: uint16(38518), + 11: uint16(38957), + 12: uint16(39472), + 13: uint16(38360), + 14: uint16(20685), + 15: uint16(21205), + 16: uint16(21516), + 17: uint16(22530), + 18: uint16(23566), + 19: uint16(24999), + 20: uint16(25758), + 21: uint16(27934), + 22: uint16(30643), + 23: uint16(31461), + 24: uint16(33012), + 25: uint16(33796), + 26: uint16(36947), + 27: uint16(37509), + 28: uint16(23776), + 29: uint16(40199), + 30: uint16(21311), + 31: uint16(24471), + 32: uint16(24499), + 33: uint16(28060), + 34: uint16(29305), + 35: uint16(30563), + 36: uint16(31167), + 37: uint16(31716), + 38: uint16(27602), + 39: uint16(29420), + 40: uint16(35501), + 41: uint16(26627), + 42: uint16(27233), + 43: uint16(20984), + 44: uint16(31361), + 45: uint16(26932), + 46: uint16(23626), + 47: uint16(40182), + 48: uint16(33515), + 49: uint16(23493), + 50: uint16(37193), + 51: uint16(28702), + 52: uint16(22136), + 53: uint16(23663), + 54: uint16(24775), + 55: uint16(25958), + 56: uint16(27788), + 57: uint16(35930), + 58: uint16(36929), + 59: uint16(38931), + 60: uint16(21585), + 61: uint16(26311), + 62: uint16(37389), + 63: uint16(22856), + 64: uint16(37027), + 65: uint16(20869), + 66: uint16(20045), + 67: uint16(20970), + 68: uint16(34201), + 69: uint16(35598), + 70: uint16(28760), + 71: uint16(25466), + 72: uint16(37707), + 73: uint16(26978), + 74: uint16(39348), + 75: uint16(32260), + 76: uint16(30071), + 77: uint16(21335), + 78: uint16(26976), + 79: uint16(36575), + 80: uint16(38627), + 81: uint16(27741), + 82: uint16(20108), + 83: uint16(23612), + 84: uint16(24336), + 85: uint16(36841), + 86: uint16(21250), + 87: uint16(36049), + 88: uint16(32905), + 89: uint16(34425), + 90: uint16(24319), + 91: uint16(26085), + 92: uint16(20083), + 93: uint16(20837), + }, + 38: { + 0: uint16(22914), + 1: uint16(23615), + 2: uint16(38894), + 3: uint16(20219), + 4: uint16(22922), + 5: uint16(24525), + 6: uint16(35469), + 7: uint16(28641), + 8: uint16(31152), + 9: uint16(31074), + 10: uint16(23527), + 11: uint16(33905), + 12: uint16(29483), + 13: uint16(29105), + 14: uint16(24180), + 15: uint16(24565), + 16: uint16(25467), + 17: uint16(25754), + 18: uint16(29123), + 19: uint16(31896), + 20: uint16(20035), + 21: uint16(24316), + 22: uint16(20043), + 23: uint16(22492), + 24: uint16(22178), + 25: uint16(24745), + 26: uint16(28611), + 27: uint16(32013), + 28: uint16(33021), + 29: uint16(33075), + 30: uint16(33215), + 31: uint16(36786), + 32: uint16(35223), + 33: uint16(34468), + 34: uint16(24052), + 35: uint16(25226), + 36: uint16(25773), + 37: uint16(35207), + 38: uint16(26487), + 39: uint16(27874), + 40: uint16(27966), + 41: uint16(29750), + 42: uint16(30772), + 43: uint16(23110), + 44: uint16(32629), + 45: uint16(33453), + 46: uint16(39340), + 47: uint16(20467), + 48: uint16(24259), + 49: uint16(25309), + 50: uint16(25490), + 51: uint16(25943), + 52: uint16(26479), + 53: uint16(30403), + 54: uint16(29260), + 55: uint16(32972), + 56: uint16(32954), + 57: uint16(36649), + 58: uint16(37197), + 59: uint16(20493), + 60: uint16(22521), + 61: uint16(23186), + 62: uint16(26757), + 63: uint16(26995), + 64: uint16(29028), + 65: uint16(29437), + 66: uint16(36023), + 67: uint16(22770), + 68: uint16(36064), + 69: uint16(38506), + 70: uint16(36889), + 71: uint16(34687), + 72: uint16(31204), + 73: uint16(30695), + 74: uint16(33833), + 75: uint16(20271), + 76: uint16(21093), + 77: uint16(21338), + 78: uint16(25293), + 79: uint16(26575), + 80: uint16(27850), + 81: uint16(30333), + 82: uint16(31636), + 83: uint16(31893), + 84: uint16(33334), + 85: uint16(34180), + 86: uint16(36843), + 87: uint16(26333), + 88: uint16(28448), + 89: uint16(29190), + 90: uint16(32283), + 91: uint16(33707), + 92: uint16(39361), + 93: uint16(40614), + }, + 39: { + 0: uint16(20989), + 1: uint16(31665), + 2: uint16(30834), + 3: uint16(31672), + 4: uint16(32903), + 5: uint16(31560), + 6: uint16(27368), + 7: uint16(24161), + 8: uint16(32908), + 9: uint16(30033), + 10: uint16(30048), + 11: uint16(20843), + 12: uint16(37474), + 13: uint16(28300), + 14: uint16(30330), + 15: uint16(37271), + 16: uint16(39658), + 17: uint16(20240), + 18: uint16(32624), + 19: uint16(25244), + 20: uint16(31567), + 21: uint16(38309), + 22: uint16(40169), + 23: uint16(22138), + 24: uint16(22617), + 25: uint16(34532), + 26: uint16(38588), + 27: uint16(20276), + 28: uint16(21028), + 29: uint16(21322), + 30: uint16(21453), + 31: uint16(21467), + 32: uint16(24070), + 33: uint16(25644), + 34: uint16(26001), + 35: uint16(26495), + 36: uint16(27710), + 37: uint16(27726), + 38: uint16(29256), + 39: uint16(29359), + 40: uint16(29677), + 41: uint16(30036), + 42: uint16(32321), + 43: uint16(33324), + 44: uint16(34281), + 45: uint16(36009), + 46: uint16(31684), + 47: uint16(37318), + 48: uint16(29033), + 49: uint16(38930), + 50: uint16(39151), + 51: uint16(25405), + 52: uint16(26217), + 53: uint16(30058), + 54: uint16(30436), + 55: uint16(30928), + 56: uint16(34115), + 57: uint16(34542), + 58: uint16(21290), + 59: uint16(21329), + 60: uint16(21542), + 61: uint16(22915), + 62: uint16(24199), + 63: uint16(24444), + 64: uint16(24754), + 65: uint16(25161), + 66: uint16(25209), + 67: uint16(25259), + 68: uint16(26000), + 69: uint16(27604), + 70: uint16(27852), + 71: uint16(30130), + 72: uint16(30382), + 73: uint16(30865), + 74: uint16(31192), + 75: uint16(32203), + 76: uint16(32631), + 77: uint16(32933), + 78: uint16(34987), + 79: uint16(35513), + 80: uint16(36027), + 81: uint16(36991), + 82: uint16(38750), + 83: uint16(39131), + 84: uint16(27147), + 85: uint16(31800), + 86: uint16(20633), + 87: uint16(23614), + 88: uint16(24494), + 89: uint16(26503), + 90: uint16(27608), + 91: uint16(29749), + 92: uint16(30473), + 93: uint16(32654), + }, + 40: { + 0: uint16(40763), + 1: uint16(26570), + 2: uint16(31255), + 3: uint16(21305), + 4: uint16(30091), + 5: uint16(39661), + 6: uint16(24422), + 7: uint16(33181), + 8: uint16(33777), + 9: uint16(32920), + 10: uint16(24380), + 11: uint16(24517), + 12: uint16(30050), + 13: uint16(31558), + 14: uint16(36924), + 15: uint16(26727), + 16: uint16(23019), + 17: uint16(23195), + 18: uint16(32016), + 19: uint16(30334), + 20: uint16(35628), + 21: uint16(20469), + 22: uint16(24426), + 23: uint16(27161), + 24: uint16(27703), + 25: uint16(28418), + 26: uint16(29922), + 27: uint16(31080), + 28: uint16(34920), + 29: uint16(35413), + 30: uint16(35961), + 31: uint16(24287), + 32: uint16(25551), + 33: uint16(30149), + 34: uint16(31186), + 35: uint16(33495), + 36: uint16(37672), + 37: uint16(37618), + 38: uint16(33948), + 39: uint16(34541), + 40: uint16(39981), + 41: uint16(21697), + 42: uint16(24428), + 43: uint16(25996), + 44: uint16(27996), + 45: uint16(28693), + 46: uint16(36007), + 47: uint16(36051), + 48: uint16(38971), + 49: uint16(25935), + 50: uint16(29942), + 51: uint16(19981), + 52: uint16(20184), + 53: uint16(22496), + 54: uint16(22827), + 55: uint16(23142), + 56: uint16(23500), + 57: uint16(20904), + 58: uint16(24067), + 59: uint16(24220), + 60: uint16(24598), + 61: uint16(25206), + 62: uint16(25975), + 63: uint16(26023), + 64: uint16(26222), + 65: uint16(28014), + 66: uint16(29238), + 67: uint16(31526), + 68: uint16(33104), + 69: uint16(33178), + 70: uint16(33433), + 71: uint16(35676), + 72: uint16(36000), + 73: uint16(36070), + 74: uint16(36212), + 75: uint16(38428), + 76: uint16(38468), + 77: uint16(20398), + 78: uint16(25771), + 79: uint16(27494), + 80: uint16(33310), + 81: uint16(33889), + 82: uint16(34154), + 83: uint16(37096), + 84: uint16(23553), + 85: uint16(26963), + 86: uint16(39080), + 87: uint16(33914), + 88: uint16(34135), + 89: uint16(20239), + 90: uint16(21103), + 91: uint16(24489), + 92: uint16(24133), + 93: uint16(26381), + }, + 41: { + 0: uint16(31119), + 1: uint16(33145), + 2: uint16(35079), + 3: uint16(35206), + 4: uint16(28149), + 5: uint16(24343), + 6: uint16(25173), + 7: uint16(27832), + 8: uint16(20175), + 9: uint16(29289), + 10: uint16(39826), + 11: uint16(20998), + 12: uint16(21563), + 13: uint16(22132), + 14: uint16(22707), + 15: uint16(24996), + 16: uint16(25198), + 17: uint16(28954), + 18: uint16(22894), + 19: uint16(31881), + 20: uint16(31966), + 21: uint16(32027), + 22: uint16(38640), + 23: uint16(25991), + 24: uint16(32862), + 25: uint16(19993), + 26: uint16(20341), + 27: uint16(20853), + 28: uint16(22592), + 29: uint16(24163), + 30: uint16(24179), + 31: uint16(24330), + 32: uint16(26564), + 33: uint16(20006), + 34: uint16(34109), + 35: uint16(38281), + 36: uint16(38491), + 37: uint16(31859), + 38: uint16(38913), + 39: uint16(20731), + 40: uint16(22721), + 41: uint16(30294), + 42: uint16(30887), + 43: uint16(21029), + 44: uint16(30629), + 45: uint16(34065), + 46: uint16(31622), + 47: uint16(20559), + 48: uint16(22793), + 49: uint16(29255), + 50: uint16(31687), + 51: uint16(32232), + 52: uint16(36794), + 53: uint16(36820), + 54: uint16(36941), + 55: uint16(20415), + 56: uint16(21193), + 57: uint16(23081), + 58: uint16(24321), + 59: uint16(38829), + 60: uint16(20445), + 61: uint16(33303), + 62: uint16(37610), + 63: uint16(22275), + 64: uint16(25429), + 65: uint16(27497), + 66: uint16(29995), + 67: uint16(35036), + 68: uint16(36628), + 69: uint16(31298), + 70: uint16(21215), + 71: uint16(22675), + 72: uint16(24917), + 73: uint16(25098), + 74: uint16(26286), + 75: uint16(27597), + 76: uint16(31807), + 77: uint16(33769), + 78: uint16(20515), + 79: uint16(20472), + 80: uint16(21253), + 81: uint16(21574), + 82: uint16(22577), + 83: uint16(22857), + 84: uint16(23453), + 85: uint16(23792), + 86: uint16(23791), + 87: uint16(23849), + 88: uint16(24214), + 89: uint16(25265), + 90: uint16(25447), + 91: uint16(25918), + 92: uint16(26041), + 93: uint16(26379), + }, + 42: { + 0: uint16(27861), + 1: uint16(27873), + 2: uint16(28921), + 3: uint16(30770), + 4: uint16(32299), + 5: uint16(32990), + 6: uint16(33459), + 7: uint16(33804), + 8: uint16(34028), + 9: uint16(34562), + 10: uint16(35090), + 11: uint16(35370), + 12: uint16(35914), + 13: uint16(37030), + 14: uint16(37586), + 15: uint16(39165), + 16: uint16(40179), + 17: uint16(40300), + 18: uint16(20047), + 19: uint16(20129), + 20: uint16(20621), + 21: uint16(21078), + 22: uint16(22346), + 23: uint16(22952), + 24: uint16(24125), + 25: uint16(24536), + 26: uint16(24537), + 27: uint16(25151), + 28: uint16(26292), + 29: uint16(26395), + 30: uint16(26576), + 31: uint16(26834), + 32: uint16(20882), + 33: uint16(32033), + 34: uint16(32938), + 35: uint16(33192), + 36: uint16(35584), + 37: uint16(35980), + 38: uint16(36031), + 39: uint16(37502), + 40: uint16(38450), + 41: uint16(21536), + 42: uint16(38956), + 43: uint16(21271), + 44: uint16(20693), + 45: uint16(21340), + 46: uint16(22696), + 47: uint16(25778), + 48: uint16(26420), + 49: uint16(29287), + 50: uint16(30566), + 51: uint16(31302), + 52: uint16(37350), + 53: uint16(21187), + 54: uint16(27809), + 55: uint16(27526), + 56: uint16(22528), + 57: uint16(24140), + 58: uint16(22868), + 59: uint16(26412), + 60: uint16(32763), + 61: uint16(20961), + 62: uint16(30406), + 63: uint16(25705), + 64: uint16(30952), + 65: uint16(39764), + 66: uint16(40635), + 67: uint16(22475), + 68: uint16(22969), + 69: uint16(26151), + 70: uint16(26522), + 71: uint16(27598), + 72: uint16(21737), + 73: uint16(27097), + 74: uint16(24149), + 75: uint16(33180), + 76: uint16(26517), + 77: uint16(39850), + 78: uint16(26622), + 79: uint16(40018), + 80: uint16(26717), + 81: uint16(20134), + 82: uint16(20451), + 83: uint16(21448), + 84: uint16(25273), + 85: uint16(26411), + 86: uint16(27819), + 87: uint16(36804), + 88: uint16(20397), + 89: uint16(32365), + 90: uint16(40639), + 91: uint16(19975), + 92: uint16(24930), + 93: uint16(28288), + }, + 43: { + 0: uint16(28459), + 1: uint16(34067), + 2: uint16(21619), + 3: uint16(26410), + 4: uint16(39749), + 5: uint16(24051), + 6: uint16(31637), + 7: uint16(23724), + 8: uint16(23494), + 9: uint16(34588), + 10: uint16(28234), + 11: uint16(34001), + 12: uint16(31252), + 13: uint16(33032), + 14: uint16(22937), + 15: uint16(31885), + 16: uint16(27665), + 17: uint16(30496), + 18: uint16(21209), + 19: uint16(22818), + 20: uint16(28961), + 21: uint16(29279), + 22: uint16(30683), + 23: uint16(38695), + 24: uint16(40289), + 25: uint16(26891), + 26: uint16(23167), + 27: uint16(23064), + 28: uint16(20901), + 29: uint16(21517), + 30: uint16(21629), + 31: uint16(26126), + 32: uint16(30431), + 33: uint16(36855), + 34: uint16(37528), + 35: uint16(40180), + 36: uint16(23018), + 37: uint16(29277), + 38: uint16(28357), + 39: uint16(20813), + 40: uint16(26825), + 41: uint16(32191), + 42: uint16(32236), + 43: uint16(38754), + 44: uint16(40634), + 45: uint16(25720), + 46: uint16(27169), + 47: uint16(33538), + 48: uint16(22916), + 49: uint16(23391), + 50: uint16(27611), + 51: uint16(29467), + 52: uint16(30450), + 53: uint16(32178), + 54: uint16(32791), + 55: uint16(33945), + 56: uint16(20786), + 57: uint16(26408), + 58: uint16(40665), + 59: uint16(30446), + 60: uint16(26466), + 61: uint16(21247), + 62: uint16(39173), + 63: uint16(23588), + 64: uint16(25147), + 65: uint16(31870), + 66: uint16(36016), + 67: uint16(21839), + 68: uint16(24758), + 69: uint16(32011), + 70: uint16(38272), + 71: uint16(21249), + 72: uint16(20063), + 73: uint16(20918), + 74: uint16(22812), + 75: uint16(29242), + 76: uint16(32822), + 77: uint16(37326), + 78: uint16(24357), + 79: uint16(30690), + 80: uint16(21380), + 81: uint16(24441), + 82: uint16(32004), + 83: uint16(34220), + 84: uint16(35379), + 85: uint16(36493), + 86: uint16(38742), + 87: uint16(26611), + 88: uint16(34222), + 89: uint16(37971), + 90: uint16(24841), + 91: uint16(24840), + 92: uint16(27833), + 93: uint16(30290), + }, + 44: { + 0: uint16(35565), + 1: uint16(36664), + 2: uint16(21807), + 3: uint16(20305), + 4: uint16(20778), + 5: uint16(21191), + 6: uint16(21451), + 7: uint16(23461), + 8: uint16(24189), + 9: uint16(24736), + 10: uint16(24962), + 11: uint16(25558), + 12: uint16(26377), + 13: uint16(26586), + 14: uint16(28263), + 15: uint16(28044), + 16: uint16(29494), + 17: uint16(29495), + 18: uint16(30001), + 19: uint16(31056), + 20: uint16(35029), + 21: uint16(35480), + 22: uint16(36938), + 23: uint16(37009), + 24: uint16(37109), + 25: uint16(38596), + 26: uint16(34701), + 27: uint16(22805), + 28: uint16(20104), + 29: uint16(20313), + 30: uint16(19982), + 31: uint16(35465), + 32: uint16(36671), + 33: uint16(38928), + 34: uint16(20653), + 35: uint16(24188), + 36: uint16(22934), + 37: uint16(23481), + 38: uint16(24248), + 39: uint16(25562), + 40: uint16(25594), + 41: uint16(25793), + 42: uint16(26332), + 43: uint16(26954), + 44: uint16(27096), + 45: uint16(27915), + 46: uint16(28342), + 47: uint16(29076), + 48: uint16(29992), + 49: uint16(31407), + 50: uint16(32650), + 51: uint16(32768), + 52: uint16(33865), + 53: uint16(33993), + 54: uint16(35201), + 55: uint16(35617), + 56: uint16(36362), + 57: uint16(36965), + 58: uint16(38525), + 59: uint16(39178), + 60: uint16(24958), + 61: uint16(25233), + 62: uint16(27442), + 63: uint16(27779), + 64: uint16(28020), + 65: uint16(32716), + 66: uint16(32764), + 67: uint16(28096), + 68: uint16(32645), + 69: uint16(34746), + 70: uint16(35064), + 71: uint16(26469), + 72: uint16(33713), + 73: uint16(38972), + 74: uint16(38647), + 75: uint16(27931), + 76: uint16(32097), + 77: uint16(33853), + 78: uint16(37226), + 79: uint16(20081), + 80: uint16(21365), + 81: uint16(23888), + 82: uint16(27396), + 83: uint16(28651), + 84: uint16(34253), + 85: uint16(34349), + 86: uint16(35239), + 87: uint16(21033), + 88: uint16(21519), + 89: uint16(23653), + 90: uint16(26446), + 91: uint16(26792), + 92: uint16(29702), + 93: uint16(29827), + }, + 45: { + 0: uint16(30178), + 1: uint16(35023), + 2: uint16(35041), + 3: uint16(37324), + 4: uint16(38626), + 5: uint16(38520), + 6: uint16(24459), + 7: uint16(29575), + 8: uint16(31435), + 9: uint16(33870), + 10: uint16(25504), + 11: uint16(30053), + 12: uint16(21129), + 13: uint16(27969), + 14: uint16(28316), + 15: uint16(29705), + 16: uint16(30041), + 17: uint16(30827), + 18: uint16(31890), + 19: uint16(38534), + 20: uint16(31452), + 21: uint16(40845), + 22: uint16(20406), + 23: uint16(24942), + 24: uint16(26053), + 25: uint16(34396), + 26: uint16(20102), + 27: uint16(20142), + 28: uint16(20698), + 29: uint16(20001), + 30: uint16(20940), + 31: uint16(23534), + 32: uint16(26009), + 33: uint16(26753), + 34: uint16(28092), + 35: uint16(29471), + 36: uint16(30274), + 37: uint16(30637), + 38: uint16(31260), + 39: uint16(31975), + 40: uint16(33391), + 41: uint16(35538), + 42: uint16(36988), + 43: uint16(37327), + 44: uint16(38517), + 45: uint16(38936), + 46: uint16(21147), + 47: uint16(32209), + 48: uint16(20523), + 49: uint16(21400), + 50: uint16(26519), + 51: uint16(28107), + 52: uint16(29136), + 53: uint16(29747), + 54: uint16(33256), + 55: uint16(36650), + 56: uint16(38563), + 57: uint16(40023), + 58: uint16(40607), + 59: uint16(29792), + 60: uint16(22593), + 61: uint16(28057), + 62: uint16(32047), + 63: uint16(39006), + 64: uint16(20196), + 65: uint16(20278), + 66: uint16(20363), + 67: uint16(20919), + 68: uint16(21169), + 69: uint16(23994), + 70: uint16(24604), + 71: uint16(29618), + 72: uint16(31036), + 73: uint16(33491), + 74: uint16(37428), + 75: uint16(38583), + 76: uint16(38646), + 77: uint16(38666), + 78: uint16(40599), + 79: uint16(40802), + 80: uint16(26278), + 81: uint16(27508), + 82: uint16(21015), + 83: uint16(21155), + 84: uint16(28872), + 85: uint16(35010), + 86: uint16(24265), + 87: uint16(24651), + 88: uint16(24976), + 89: uint16(28451), + 90: uint16(29001), + 91: uint16(31806), + 92: uint16(32244), + 93: uint16(32879), + }, + 46: { + 0: uint16(34030), + 1: uint16(36899), + 2: uint16(37676), + 3: uint16(21570), + 4: uint16(39791), + 5: uint16(27347), + 6: uint16(28809), + 7: uint16(36034), + 8: uint16(36335), + 9: uint16(38706), + 10: uint16(21172), + 11: uint16(23105), + 12: uint16(24266), + 13: uint16(24324), + 14: uint16(26391), + 15: uint16(27004), + 16: uint16(27028), + 17: uint16(28010), + 18: uint16(28431), + 19: uint16(29282), + 20: uint16(29436), + 21: uint16(31725), + 22: uint16(32769), + 23: uint16(32894), + 24: uint16(34635), + 25: uint16(37070), + 26: uint16(20845), + 27: uint16(40595), + 28: uint16(31108), + 29: uint16(32907), + 30: uint16(37682), + 31: uint16(35542), + 32: uint16(20525), + 33: uint16(21644), + 34: uint16(35441), + 35: uint16(27498), + 36: uint16(36036), + 37: uint16(33031), + 38: uint16(24785), + 39: uint16(26528), + 40: uint16(40434), + 41: uint16(20121), + 42: uint16(20120), + 43: uint16(39952), + 44: uint16(35435), + 45: uint16(34241), + 46: uint16(34152), + 47: uint16(26880), + 48: uint16(28286), + 49: uint16(30871), + 50: uint16(33109), + }, + 47: { + 0: uint16(24332), + 1: uint16(19984), + 2: uint16(19989), + 3: uint16(20010), + 4: uint16(20017), + 5: uint16(20022), + 6: uint16(20028), + 7: uint16(20031), + 8: uint16(20034), + 9: uint16(20054), + 10: uint16(20056), + 11: uint16(20098), + 12: uint16(20101), + 13: uint16(35947), + 14: uint16(20106), + 15: uint16(33298), + 16: uint16(24333), + 17: uint16(20110), + 18: uint16(20126), + 19: uint16(20127), + 20: uint16(20128), + 21: uint16(20130), + 22: uint16(20144), + 23: uint16(20147), + 24: uint16(20150), + 25: uint16(20174), + 26: uint16(20173), + 27: uint16(20164), + 28: uint16(20166), + 29: uint16(20162), + 30: uint16(20183), + 31: uint16(20190), + 32: uint16(20205), + 33: uint16(20191), + 34: uint16(20215), + 35: uint16(20233), + 36: uint16(20314), + 37: uint16(20272), + 38: uint16(20315), + 39: uint16(20317), + 40: uint16(20311), + 41: uint16(20295), + 42: uint16(20342), + 43: uint16(20360), + 44: uint16(20367), + 45: uint16(20376), + 46: uint16(20347), + 47: uint16(20329), + 48: uint16(20336), + 49: uint16(20369), + 50: uint16(20335), + 51: uint16(20358), + 52: uint16(20374), + 53: uint16(20760), + 54: uint16(20436), + 55: uint16(20447), + 56: uint16(20430), + 57: uint16(20440), + 58: uint16(20443), + 59: uint16(20433), + 60: uint16(20442), + 61: uint16(20432), + 62: uint16(20452), + 63: uint16(20453), + 64: uint16(20506), + 65: uint16(20520), + 66: uint16(20500), + 67: uint16(20522), + 68: uint16(20517), + 69: uint16(20485), + 70: uint16(20252), + 71: uint16(20470), + 72: uint16(20513), + 73: uint16(20521), + 74: uint16(20524), + 75: uint16(20478), + 76: uint16(20463), + 77: uint16(20497), + 78: uint16(20486), + 79: uint16(20547), + 80: uint16(20551), + 81: uint16(26371), + 82: uint16(20565), + 83: uint16(20560), + 84: uint16(20552), + 85: uint16(20570), + 86: uint16(20566), + 87: uint16(20588), + 88: uint16(20600), + 89: uint16(20608), + 90: uint16(20634), + 91: uint16(20613), + 92: uint16(20660), + 93: uint16(20658), + }, + 48: { + 0: uint16(20681), + 1: uint16(20682), + 2: uint16(20659), + 3: uint16(20674), + 4: uint16(20694), + 5: uint16(20702), + 6: uint16(20709), + 7: uint16(20717), + 8: uint16(20707), + 9: uint16(20718), + 10: uint16(20729), + 11: uint16(20725), + 12: uint16(20745), + 13: uint16(20737), + 14: uint16(20738), + 15: uint16(20758), + 16: uint16(20757), + 17: uint16(20756), + 18: uint16(20762), + 19: uint16(20769), + 20: uint16(20794), + 21: uint16(20791), + 22: uint16(20796), + 23: uint16(20795), + 24: uint16(20799), + 25: uint16(20800), + 26: uint16(20818), + 27: uint16(20812), + 28: uint16(20820), + 29: uint16(20834), + 30: uint16(31480), + 31: uint16(20841), + 32: uint16(20842), + 33: uint16(20846), + 34: uint16(20864), + 35: uint16(20866), + 36: uint16(22232), + 37: uint16(20876), + 38: uint16(20873), + 39: uint16(20879), + 40: uint16(20881), + 41: uint16(20883), + 42: uint16(20885), + 43: uint16(20886), + 44: uint16(20900), + 45: uint16(20902), + 46: uint16(20898), + 47: uint16(20905), + 48: uint16(20906), + 49: uint16(20907), + 50: uint16(20915), + 51: uint16(20913), + 52: uint16(20914), + 53: uint16(20912), + 54: uint16(20917), + 55: uint16(20925), + 56: uint16(20933), + 57: uint16(20937), + 58: uint16(20955), + 59: uint16(20960), + 60: uint16(34389), + 61: uint16(20969), + 62: uint16(20973), + 63: uint16(20976), + 64: uint16(20981), + 65: uint16(20990), + 66: uint16(20996), + 67: uint16(21003), + 68: uint16(21012), + 69: uint16(21006), + 70: uint16(21031), + 71: uint16(21034), + 72: uint16(21038), + 73: uint16(21043), + 74: uint16(21049), + 75: uint16(21071), + 76: uint16(21060), + 77: uint16(21067), + 78: uint16(21068), + 79: uint16(21086), + 80: uint16(21076), + 81: uint16(21098), + 82: uint16(21108), + 83: uint16(21097), + 84: uint16(21107), + 85: uint16(21119), + 86: uint16(21117), + 87: uint16(21133), + 88: uint16(21140), + 89: uint16(21138), + 90: uint16(21105), + 91: uint16(21128), + 92: uint16(21137), + 93: uint16(36776), + }, + 49: { + 0: uint16(36775), + 1: uint16(21164), + 2: uint16(21165), + 3: uint16(21180), + 4: uint16(21173), + 5: uint16(21185), + 6: uint16(21197), + 7: uint16(21207), + 8: uint16(21214), + 9: uint16(21219), + 10: uint16(21222), + 11: uint16(39149), + 12: uint16(21216), + 13: uint16(21235), + 14: uint16(21237), + 15: uint16(21240), + 16: uint16(21241), + 17: uint16(21254), + 18: uint16(21256), + 19: uint16(30008), + 20: uint16(21261), + 21: uint16(21264), + 22: uint16(21263), + 23: uint16(21269), + 24: uint16(21274), + 25: uint16(21283), + 26: uint16(21295), + 27: uint16(21297), + 28: uint16(21299), + 29: uint16(21304), + 30: uint16(21312), + 31: uint16(21318), + 32: uint16(21317), + 33: uint16(19991), + 34: uint16(21321), + 35: uint16(21325), + 36: uint16(20950), + 37: uint16(21342), + 38: uint16(21353), + 39: uint16(21358), + 40: uint16(22808), + 41: uint16(21371), + 42: uint16(21367), + 43: uint16(21378), + 44: uint16(21398), + 45: uint16(21408), + 46: uint16(21414), + 47: uint16(21413), + 48: uint16(21422), + 49: uint16(21424), + 50: uint16(21430), + 51: uint16(21443), + 52: uint16(31762), + 53: uint16(38617), + 54: uint16(21471), + 55: uint16(26364), + 56: uint16(29166), + 57: uint16(21486), + 58: uint16(21480), + 59: uint16(21485), + 60: uint16(21498), + 61: uint16(21505), + 62: uint16(21565), + 63: uint16(21568), + 64: uint16(21548), + 65: uint16(21549), + 66: uint16(21564), + 67: uint16(21550), + 68: uint16(21558), + 69: uint16(21545), + 70: uint16(21533), + 71: uint16(21582), + 72: uint16(21647), + 73: uint16(21621), + 74: uint16(21646), + 75: uint16(21599), + 76: uint16(21617), + 77: uint16(21623), + 78: uint16(21616), + 79: uint16(21650), + 80: uint16(21627), + 81: uint16(21632), + 82: uint16(21622), + 83: uint16(21636), + 84: uint16(21648), + 85: uint16(21638), + 86: uint16(21703), + 87: uint16(21666), + 88: uint16(21688), + 89: uint16(21669), + 90: uint16(21676), + 91: uint16(21700), + 92: uint16(21704), + 93: uint16(21672), + }, + 50: { + 0: uint16(21675), + 1: uint16(21698), + 2: uint16(21668), + 3: uint16(21694), + 4: uint16(21692), + 5: uint16(21720), + 6: uint16(21733), + 7: uint16(21734), + 8: uint16(21775), + 9: uint16(21780), + 10: uint16(21757), + 11: uint16(21742), + 12: uint16(21741), + 13: uint16(21754), + 14: uint16(21730), + 15: uint16(21817), + 16: uint16(21824), + 17: uint16(21859), + 18: uint16(21836), + 19: uint16(21806), + 20: uint16(21852), + 21: uint16(21829), + 22: uint16(21846), + 23: uint16(21847), + 24: uint16(21816), + 25: uint16(21811), + 26: uint16(21853), + 27: uint16(21913), + 28: uint16(21888), + 29: uint16(21679), + 30: uint16(21898), + 31: uint16(21919), + 32: uint16(21883), + 33: uint16(21886), + 34: uint16(21912), + 35: uint16(21918), + 36: uint16(21934), + 37: uint16(21884), + 38: uint16(21891), + 39: uint16(21929), + 40: uint16(21895), + 41: uint16(21928), + 42: uint16(21978), + 43: uint16(21957), + 44: uint16(21983), + 45: uint16(21956), + 46: uint16(21980), + 47: uint16(21988), + 48: uint16(21972), + 49: uint16(22036), + 50: uint16(22007), + 51: uint16(22038), + 52: uint16(22014), + 53: uint16(22013), + 54: uint16(22043), + 55: uint16(22009), + 56: uint16(22094), + 57: uint16(22096), + 58: uint16(29151), + 59: uint16(22068), + 60: uint16(22070), + 61: uint16(22066), + 62: uint16(22072), + 63: uint16(22123), + 64: uint16(22116), + 65: uint16(22063), + 66: uint16(22124), + 67: uint16(22122), + 68: uint16(22150), + 69: uint16(22144), + 70: uint16(22154), + 71: uint16(22176), + 72: uint16(22164), + 73: uint16(22159), + 74: uint16(22181), + 75: uint16(22190), + 76: uint16(22198), + 77: uint16(22196), + 78: uint16(22210), + 79: uint16(22204), + 80: uint16(22209), + 81: uint16(22211), + 82: uint16(22208), + 83: uint16(22216), + 84: uint16(22222), + 85: uint16(22225), + 86: uint16(22227), + 87: uint16(22231), + 88: uint16(22254), + 89: uint16(22265), + 90: uint16(22272), + 91: uint16(22271), + 92: uint16(22276), + 93: uint16(22281), + }, + 51: { + 0: uint16(22280), + 1: uint16(22283), + 2: uint16(22285), + 3: uint16(22291), + 4: uint16(22296), + 5: uint16(22294), + 6: uint16(21959), + 7: uint16(22300), + 8: uint16(22310), + 9: uint16(22327), + 10: uint16(22328), + 11: uint16(22350), + 12: uint16(22331), + 13: uint16(22336), + 14: uint16(22351), + 15: uint16(22377), + 16: uint16(22464), + 17: uint16(22408), + 18: uint16(22369), + 19: uint16(22399), + 20: uint16(22409), + 21: uint16(22419), + 22: uint16(22432), + 23: uint16(22451), + 24: uint16(22436), + 25: uint16(22442), + 26: uint16(22448), + 27: uint16(22467), + 28: uint16(22470), + 29: uint16(22484), + 30: uint16(22482), + 31: uint16(22483), + 32: uint16(22538), + 33: uint16(22486), + 34: uint16(22499), + 35: uint16(22539), + 36: uint16(22553), + 37: uint16(22557), + 38: uint16(22642), + 39: uint16(22561), + 40: uint16(22626), + 41: uint16(22603), + 42: uint16(22640), + 43: uint16(27584), + 44: uint16(22610), + 45: uint16(22589), + 46: uint16(22649), + 47: uint16(22661), + 48: uint16(22713), + 49: uint16(22687), + 50: uint16(22699), + 51: uint16(22714), + 52: uint16(22750), + 53: uint16(22715), + 54: uint16(22712), + 55: uint16(22702), + 56: uint16(22725), + 57: uint16(22739), + 58: uint16(22737), + 59: uint16(22743), + 60: uint16(22745), + 61: uint16(22744), + 62: uint16(22757), + 63: uint16(22748), + 64: uint16(22756), + 65: uint16(22751), + 66: uint16(22767), + 67: uint16(22778), + 68: uint16(22777), + 69: uint16(22779), + 70: uint16(22780), + 71: uint16(22781), + 72: uint16(22786), + 73: uint16(22794), + 74: uint16(22800), + 75: uint16(22811), + 76: uint16(26790), + 77: uint16(22821), + 78: uint16(22828), + 79: uint16(22829), + 80: uint16(22834), + 81: uint16(22840), + 82: uint16(22846), + 83: uint16(31442), + 84: uint16(22869), + 85: uint16(22864), + 86: uint16(22862), + 87: uint16(22874), + 88: uint16(22872), + 89: uint16(22882), + 90: uint16(22880), + 91: uint16(22887), + 92: uint16(22892), + 93: uint16(22889), + }, + 52: { + 0: uint16(22904), + 1: uint16(22913), + 2: uint16(22941), + 3: uint16(20318), + 4: uint16(20395), + 5: uint16(22947), + 6: uint16(22962), + 7: uint16(22982), + 8: uint16(23016), + 9: uint16(23004), + 10: uint16(22925), + 11: uint16(23001), + 12: uint16(23002), + 13: uint16(23077), + 14: uint16(23071), + 15: uint16(23057), + 16: uint16(23068), + 17: uint16(23049), + 18: uint16(23066), + 19: uint16(23104), + 20: uint16(23148), + 21: uint16(23113), + 22: uint16(23093), + 23: uint16(23094), + 24: uint16(23138), + 25: uint16(23146), + 26: uint16(23194), + 27: uint16(23228), + 28: uint16(23230), + 29: uint16(23243), + 30: uint16(23234), + 31: uint16(23229), + 32: uint16(23267), + 33: uint16(23255), + 34: uint16(23270), + 35: uint16(23273), + 36: uint16(23254), + 37: uint16(23290), + 38: uint16(23291), + 39: uint16(23308), + 40: uint16(23307), + 41: uint16(23318), + 42: uint16(23346), + 43: uint16(23248), + 44: uint16(23338), + 45: uint16(23350), + 46: uint16(23358), + 47: uint16(23363), + 48: uint16(23365), + 49: uint16(23360), + 50: uint16(23377), + 51: uint16(23381), + 52: uint16(23386), + 53: uint16(23387), + 54: uint16(23397), + 55: uint16(23401), + 56: uint16(23408), + 57: uint16(23411), + 58: uint16(23413), + 59: uint16(23416), + 60: uint16(25992), + 61: uint16(23418), + 62: uint16(23424), + 63: uint16(23427), + 64: uint16(23462), + 65: uint16(23480), + 66: uint16(23491), + 67: uint16(23495), + 68: uint16(23497), + 69: uint16(23508), + 70: uint16(23504), + 71: uint16(23524), + 72: uint16(23526), + 73: uint16(23522), + 74: uint16(23518), + 75: uint16(23525), + 76: uint16(23531), + 77: uint16(23536), + 78: uint16(23542), + 79: uint16(23539), + 80: uint16(23557), + 81: uint16(23559), + 82: uint16(23560), + 83: uint16(23565), + 84: uint16(23571), + 85: uint16(23584), + 86: uint16(23586), + 87: uint16(23592), + 88: uint16(23608), + 89: uint16(23609), + 90: uint16(23617), + 91: uint16(23622), + 92: uint16(23630), + 93: uint16(23635), + }, + 53: { + 0: uint16(23632), + 1: uint16(23631), + 2: uint16(23409), + 3: uint16(23660), + 4: uint16(23662), + 5: uint16(20066), + 6: uint16(23670), + 7: uint16(23673), + 8: uint16(23692), + 9: uint16(23697), + 10: uint16(23700), + 11: uint16(22939), + 12: uint16(23723), + 13: uint16(23739), + 14: uint16(23734), + 15: uint16(23740), + 16: uint16(23735), + 17: uint16(23749), + 18: uint16(23742), + 19: uint16(23751), + 20: uint16(23769), + 21: uint16(23785), + 22: uint16(23805), + 23: uint16(23802), + 24: uint16(23789), + 25: uint16(23948), + 26: uint16(23786), + 27: uint16(23819), + 28: uint16(23829), + 29: uint16(23831), + 30: uint16(23900), + 31: uint16(23839), + 32: uint16(23835), + 33: uint16(23825), + 34: uint16(23828), + 35: uint16(23842), + 36: uint16(23834), + 37: uint16(23833), + 38: uint16(23832), + 39: uint16(23884), + 40: uint16(23890), + 41: uint16(23886), + 42: uint16(23883), + 43: uint16(23916), + 44: uint16(23923), + 45: uint16(23926), + 46: uint16(23943), + 47: uint16(23940), + 48: uint16(23938), + 49: uint16(23970), + 50: uint16(23965), + 51: uint16(23980), + 52: uint16(23982), + 53: uint16(23997), + 54: uint16(23952), + 55: uint16(23991), + 56: uint16(23996), + 57: uint16(24009), + 58: uint16(24013), + 59: uint16(24019), + 60: uint16(24018), + 61: uint16(24022), + 62: uint16(24027), + 63: uint16(24043), + 64: uint16(24050), + 65: uint16(24053), + 66: uint16(24075), + 67: uint16(24090), + 68: uint16(24089), + 69: uint16(24081), + 70: uint16(24091), + 71: uint16(24118), + 72: uint16(24119), + 73: uint16(24132), + 74: uint16(24131), + 75: uint16(24128), + 76: uint16(24142), + 77: uint16(24151), + 78: uint16(24148), + 79: uint16(24159), + 80: uint16(24162), + 81: uint16(24164), + 82: uint16(24135), + 83: uint16(24181), + 84: uint16(24182), + 85: uint16(24186), + 86: uint16(40636), + 87: uint16(24191), + 88: uint16(24224), + 89: uint16(24257), + 90: uint16(24258), + 91: uint16(24264), + 92: uint16(24272), + 93: uint16(24271), + }, + 54: { + 0: uint16(24278), + 1: uint16(24291), + 2: uint16(24285), + 3: uint16(24282), + 4: uint16(24283), + 5: uint16(24290), + 6: uint16(24289), + 7: uint16(24296), + 8: uint16(24297), + 9: uint16(24300), + 10: uint16(24305), + 11: uint16(24307), + 12: uint16(24304), + 13: uint16(24308), + 14: uint16(24312), + 15: uint16(24318), + 16: uint16(24323), + 17: uint16(24329), + 18: uint16(24413), + 19: uint16(24412), + 20: uint16(24331), + 21: uint16(24337), + 22: uint16(24342), + 23: uint16(24361), + 24: uint16(24365), + 25: uint16(24376), + 26: uint16(24385), + 27: uint16(24392), + 28: uint16(24396), + 29: uint16(24398), + 30: uint16(24367), + 31: uint16(24401), + 32: uint16(24406), + 33: uint16(24407), + 34: uint16(24409), + 35: uint16(24417), + 36: uint16(24429), + 37: uint16(24435), + 38: uint16(24439), + 39: uint16(24451), + 40: uint16(24450), + 41: uint16(24447), + 42: uint16(24458), + 43: uint16(24456), + 44: uint16(24465), + 45: uint16(24455), + 46: uint16(24478), + 47: uint16(24473), + 48: uint16(24472), + 49: uint16(24480), + 50: uint16(24488), + 51: uint16(24493), + 52: uint16(24508), + 53: uint16(24534), + 54: uint16(24571), + 55: uint16(24548), + 56: uint16(24568), + 57: uint16(24561), + 58: uint16(24541), + 59: uint16(24755), + 60: uint16(24575), + 61: uint16(24609), + 62: uint16(24672), + 63: uint16(24601), + 64: uint16(24592), + 65: uint16(24617), + 66: uint16(24590), + 67: uint16(24625), + 68: uint16(24603), + 69: uint16(24597), + 70: uint16(24619), + 71: uint16(24614), + 72: uint16(24591), + 73: uint16(24634), + 74: uint16(24666), + 75: uint16(24641), + 76: uint16(24682), + 77: uint16(24695), + 78: uint16(24671), + 79: uint16(24650), + 80: uint16(24646), + 81: uint16(24653), + 82: uint16(24675), + 83: uint16(24643), + 84: uint16(24676), + 85: uint16(24642), + 86: uint16(24684), + 87: uint16(24683), + 88: uint16(24665), + 89: uint16(24705), + 90: uint16(24717), + 91: uint16(24807), + 92: uint16(24707), + 93: uint16(24730), + }, + 55: { + 0: uint16(24708), + 1: uint16(24731), + 2: uint16(24726), + 3: uint16(24727), + 4: uint16(24722), + 5: uint16(24743), + 6: uint16(24715), + 7: uint16(24801), + 8: uint16(24760), + 9: uint16(24800), + 10: uint16(24787), + 11: uint16(24756), + 12: uint16(24560), + 13: uint16(24765), + 14: uint16(24774), + 15: uint16(24757), + 16: uint16(24792), + 17: uint16(24909), + 18: uint16(24853), + 19: uint16(24838), + 20: uint16(24822), + 21: uint16(24823), + 22: uint16(24832), + 23: uint16(24820), + 24: uint16(24826), + 25: uint16(24835), + 26: uint16(24865), + 27: uint16(24827), + 28: uint16(24817), + 29: uint16(24845), + 30: uint16(24846), + 31: uint16(24903), + 32: uint16(24894), + 33: uint16(24872), + 34: uint16(24871), + 35: uint16(24906), + 36: uint16(24895), + 37: uint16(24892), + 38: uint16(24876), + 39: uint16(24884), + 40: uint16(24893), + 41: uint16(24898), + 42: uint16(24900), + 43: uint16(24947), + 44: uint16(24951), + 45: uint16(24920), + 46: uint16(24921), + 47: uint16(24922), + 48: uint16(24939), + 49: uint16(24948), + 50: uint16(24943), + 51: uint16(24933), + 52: uint16(24945), + 53: uint16(24927), + 54: uint16(24925), + 55: uint16(24915), + 56: uint16(24949), + 57: uint16(24985), + 58: uint16(24982), + 59: uint16(24967), + 60: uint16(25004), + 61: uint16(24980), + 62: uint16(24986), + 63: uint16(24970), + 64: uint16(24977), + 65: uint16(25003), + 66: uint16(25006), + 67: uint16(25036), + 68: uint16(25034), + 69: uint16(25033), + 70: uint16(25079), + 71: uint16(25032), + 72: uint16(25027), + 73: uint16(25030), + 74: uint16(25018), + 75: uint16(25035), + 76: uint16(32633), + 77: uint16(25037), + 78: uint16(25062), + 79: uint16(25059), + 80: uint16(25078), + 81: uint16(25082), + 82: uint16(25076), + 83: uint16(25087), + 84: uint16(25085), + 85: uint16(25084), + 86: uint16(25086), + 87: uint16(25088), + 88: uint16(25096), + 89: uint16(25097), + 90: uint16(25101), + 91: uint16(25100), + 92: uint16(25108), + 93: uint16(25115), + }, + 56: { + 0: uint16(25118), + 1: uint16(25121), + 2: uint16(25130), + 3: uint16(25134), + 4: uint16(25136), + 5: uint16(25138), + 6: uint16(25139), + 7: uint16(25153), + 8: uint16(25166), + 9: uint16(25182), + 10: uint16(25187), + 11: uint16(25179), + 12: uint16(25184), + 13: uint16(25192), + 14: uint16(25212), + 15: uint16(25218), + 16: uint16(25225), + 17: uint16(25214), + 18: uint16(25234), + 19: uint16(25235), + 20: uint16(25238), + 21: uint16(25300), + 22: uint16(25219), + 23: uint16(25236), + 24: uint16(25303), + 25: uint16(25297), + 26: uint16(25275), + 27: uint16(25295), + 28: uint16(25343), + 29: uint16(25286), + 30: uint16(25812), + 31: uint16(25288), + 32: uint16(25308), + 33: uint16(25292), + 34: uint16(25290), + 35: uint16(25282), + 36: uint16(25287), + 37: uint16(25243), + 38: uint16(25289), + 39: uint16(25356), + 40: uint16(25326), + 41: uint16(25329), + 42: uint16(25383), + 43: uint16(25346), + 44: uint16(25352), + 45: uint16(25327), + 46: uint16(25333), + 47: uint16(25424), + 48: uint16(25406), + 49: uint16(25421), + 50: uint16(25628), + 51: uint16(25423), + 52: uint16(25494), + 53: uint16(25486), + 54: uint16(25472), + 55: uint16(25515), + 56: uint16(25462), + 57: uint16(25507), + 58: uint16(25487), + 59: uint16(25481), + 60: uint16(25503), + 61: uint16(25525), + 62: uint16(25451), + 63: uint16(25449), + 64: uint16(25534), + 65: uint16(25577), + 66: uint16(25536), + 67: uint16(25542), + 68: uint16(25571), + 69: uint16(25545), + 70: uint16(25554), + 71: uint16(25590), + 72: uint16(25540), + 73: uint16(25622), + 74: uint16(25652), + 75: uint16(25606), + 76: uint16(25619), + 77: uint16(25638), + 78: uint16(25654), + 79: uint16(25885), + 80: uint16(25623), + 81: uint16(25640), + 82: uint16(25615), + 83: uint16(25703), + 84: uint16(25711), + 85: uint16(25718), + 86: uint16(25678), + 87: uint16(25898), + 88: uint16(25749), + 89: uint16(25747), + 90: uint16(25765), + 91: uint16(25769), + 92: uint16(25736), + 93: uint16(25788), + }, + 57: { + 0: uint16(25818), + 1: uint16(25810), + 2: uint16(25797), + 3: uint16(25799), + 4: uint16(25787), + 5: uint16(25816), + 6: uint16(25794), + 7: uint16(25841), + 8: uint16(25831), + 9: uint16(33289), + 10: uint16(25824), + 11: uint16(25825), + 12: uint16(25260), + 13: uint16(25827), + 14: uint16(25839), + 15: uint16(25900), + 16: uint16(25846), + 17: uint16(25844), + 18: uint16(25842), + 19: uint16(25850), + 20: uint16(25856), + 21: uint16(25853), + 22: uint16(25880), + 23: uint16(25884), + 24: uint16(25861), + 25: uint16(25892), + 26: uint16(25891), + 27: uint16(25899), + 28: uint16(25908), + 29: uint16(25909), + 30: uint16(25911), + 31: uint16(25910), + 32: uint16(25912), + 33: uint16(30027), + 34: uint16(25928), + 35: uint16(25942), + 36: uint16(25941), + 37: uint16(25933), + 38: uint16(25944), + 39: uint16(25950), + 40: uint16(25949), + 41: uint16(25970), + 42: uint16(25976), + 43: uint16(25986), + 44: uint16(25987), + 45: uint16(35722), + 46: uint16(26011), + 47: uint16(26015), + 48: uint16(26027), + 49: uint16(26039), + 50: uint16(26051), + 51: uint16(26054), + 52: uint16(26049), + 53: uint16(26052), + 54: uint16(26060), + 55: uint16(26066), + 56: uint16(26075), + 57: uint16(26073), + 58: uint16(26080), + 59: uint16(26081), + 60: uint16(26097), + 61: uint16(26482), + 62: uint16(26122), + 63: uint16(26115), + 64: uint16(26107), + 65: uint16(26483), + 66: uint16(26165), + 67: uint16(26166), + 68: uint16(26164), + 69: uint16(26140), + 70: uint16(26191), + 71: uint16(26180), + 72: uint16(26185), + 73: uint16(26177), + 74: uint16(26206), + 75: uint16(26205), + 76: uint16(26212), + 77: uint16(26215), + 78: uint16(26216), + 79: uint16(26207), + 80: uint16(26210), + 81: uint16(26224), + 82: uint16(26243), + 83: uint16(26248), + 84: uint16(26254), + 85: uint16(26249), + 86: uint16(26244), + 87: uint16(26264), + 88: uint16(26269), + 89: uint16(26305), + 90: uint16(26297), + 91: uint16(26313), + 92: uint16(26302), + 93: uint16(26300), + }, + 58: { + 0: uint16(26308), + 1: uint16(26296), + 2: uint16(26326), + 3: uint16(26330), + 4: uint16(26336), + 5: uint16(26175), + 6: uint16(26342), + 7: uint16(26345), + 8: uint16(26352), + 9: uint16(26357), + 10: uint16(26359), + 11: uint16(26383), + 12: uint16(26390), + 13: uint16(26398), + 14: uint16(26406), + 15: uint16(26407), + 16: uint16(38712), + 17: uint16(26414), + 18: uint16(26431), + 19: uint16(26422), + 20: uint16(26433), + 21: uint16(26424), + 22: uint16(26423), + 23: uint16(26438), + 24: uint16(26462), + 25: uint16(26464), + 26: uint16(26457), + 27: uint16(26467), + 28: uint16(26468), + 29: uint16(26505), + 30: uint16(26480), + 31: uint16(26537), + 32: uint16(26492), + 33: uint16(26474), + 34: uint16(26508), + 35: uint16(26507), + 36: uint16(26534), + 37: uint16(26529), + 38: uint16(26501), + 39: uint16(26551), + 40: uint16(26607), + 41: uint16(26548), + 42: uint16(26604), + 43: uint16(26547), + 44: uint16(26601), + 45: uint16(26552), + 46: uint16(26596), + 47: uint16(26590), + 48: uint16(26589), + 49: uint16(26594), + 50: uint16(26606), + 51: uint16(26553), + 52: uint16(26574), + 53: uint16(26566), + 54: uint16(26599), + 55: uint16(27292), + 56: uint16(26654), + 57: uint16(26694), + 58: uint16(26665), + 59: uint16(26688), + 60: uint16(26701), + 61: uint16(26674), + 62: uint16(26702), + 63: uint16(26803), + 64: uint16(26667), + 65: uint16(26713), + 66: uint16(26723), + 67: uint16(26743), + 68: uint16(26751), + 69: uint16(26783), + 70: uint16(26767), + 71: uint16(26797), + 72: uint16(26772), + 73: uint16(26781), + 74: uint16(26779), + 75: uint16(26755), + 76: uint16(27310), + 77: uint16(26809), + 78: uint16(26740), + 79: uint16(26805), + 80: uint16(26784), + 81: uint16(26810), + 82: uint16(26895), + 83: uint16(26765), + 84: uint16(26750), + 85: uint16(26881), + 86: uint16(26826), + 87: uint16(26888), + 88: uint16(26840), + 89: uint16(26914), + 90: uint16(26918), + 91: uint16(26849), + 92: uint16(26892), + 93: uint16(26829), + }, + 59: { + 0: uint16(26836), + 1: uint16(26855), + 2: uint16(26837), + 3: uint16(26934), + 4: uint16(26898), + 5: uint16(26884), + 6: uint16(26839), + 7: uint16(26851), + 8: uint16(26917), + 9: uint16(26873), + 10: uint16(26848), + 11: uint16(26863), + 12: uint16(26920), + 13: uint16(26922), + 14: uint16(26906), + 15: uint16(26915), + 16: uint16(26913), + 17: uint16(26822), + 18: uint16(27001), + 19: uint16(26999), + 20: uint16(26972), + 21: uint16(27000), + 22: uint16(26987), + 23: uint16(26964), + 24: uint16(27006), + 25: uint16(26990), + 26: uint16(26937), + 27: uint16(26996), + 28: uint16(26941), + 29: uint16(26969), + 30: uint16(26928), + 31: uint16(26977), + 32: uint16(26974), + 33: uint16(26973), + 34: uint16(27009), + 35: uint16(26986), + 36: uint16(27058), + 37: uint16(27054), + 38: uint16(27088), + 39: uint16(27071), + 40: uint16(27073), + 41: uint16(27091), + 42: uint16(27070), + 43: uint16(27086), + 44: uint16(23528), + 45: uint16(27082), + 46: uint16(27101), + 47: uint16(27067), + 48: uint16(27075), + 49: uint16(27047), + 50: uint16(27182), + 51: uint16(27025), + 52: uint16(27040), + 53: uint16(27036), + 54: uint16(27029), + 55: uint16(27060), + 56: uint16(27102), + 57: uint16(27112), + 58: uint16(27138), + 59: uint16(27163), + 60: uint16(27135), + 61: uint16(27402), + 62: uint16(27129), + 63: uint16(27122), + 64: uint16(27111), + 65: uint16(27141), + 66: uint16(27057), + 67: uint16(27166), + 68: uint16(27117), + 69: uint16(27156), + 70: uint16(27115), + 71: uint16(27146), + 72: uint16(27154), + 73: uint16(27329), + 74: uint16(27171), + 75: uint16(27155), + 76: uint16(27204), + 77: uint16(27148), + 78: uint16(27250), + 79: uint16(27190), + 80: uint16(27256), + 81: uint16(27207), + 82: uint16(27234), + 83: uint16(27225), + 84: uint16(27238), + 85: uint16(27208), + 86: uint16(27192), + 87: uint16(27170), + 88: uint16(27280), + 89: uint16(27277), + 90: uint16(27296), + 91: uint16(27268), + 92: uint16(27298), + 93: uint16(27299), + }, + 60: { + 0: uint16(27287), + 1: uint16(34327), + 2: uint16(27323), + 3: uint16(27331), + 4: uint16(27330), + 5: uint16(27320), + 6: uint16(27315), + 7: uint16(27308), + 8: uint16(27358), + 9: uint16(27345), + 10: uint16(27359), + 11: uint16(27306), + 12: uint16(27354), + 13: uint16(27370), + 14: uint16(27387), + 15: uint16(27397), + 16: uint16(34326), + 17: uint16(27386), + 18: uint16(27410), + 19: uint16(27414), + 20: uint16(39729), + 21: uint16(27423), + 22: uint16(27448), + 23: uint16(27447), + 24: uint16(30428), + 25: uint16(27449), + 26: uint16(39150), + 27: uint16(27463), + 28: uint16(27459), + 29: uint16(27465), + 30: uint16(27472), + 31: uint16(27481), + 32: uint16(27476), + 33: uint16(27483), + 34: uint16(27487), + 35: uint16(27489), + 36: uint16(27512), + 37: uint16(27513), + 38: uint16(27519), + 39: uint16(27520), + 40: uint16(27524), + 41: uint16(27523), + 42: uint16(27533), + 43: uint16(27544), + 44: uint16(27541), + 45: uint16(27550), + 46: uint16(27556), + 47: uint16(27562), + 48: uint16(27563), + 49: uint16(27567), + 50: uint16(27570), + 51: uint16(27569), + 52: uint16(27571), + 53: uint16(27575), + 54: uint16(27580), + 55: uint16(27590), + 56: uint16(27595), + 57: uint16(27603), + 58: uint16(27615), + 59: uint16(27628), + 60: uint16(27627), + 61: uint16(27635), + 62: uint16(27631), + 63: uint16(40638), + 64: uint16(27656), + 65: uint16(27667), + 66: uint16(27668), + 67: uint16(27675), + 68: uint16(27684), + 69: uint16(27683), + 70: uint16(27742), + 71: uint16(27733), + 72: uint16(27746), + 73: uint16(27754), + 74: uint16(27778), + 75: uint16(27789), + 76: uint16(27802), + 77: uint16(27777), + 78: uint16(27803), + 79: uint16(27774), + 80: uint16(27752), + 81: uint16(27763), + 82: uint16(27794), + 83: uint16(27792), + 84: uint16(27844), + 85: uint16(27889), + 86: uint16(27859), + 87: uint16(27837), + 88: uint16(27863), + 89: uint16(27845), + 90: uint16(27869), + 91: uint16(27822), + 92: uint16(27825), + 93: uint16(27838), + }, + 61: { + 0: uint16(27834), + 1: uint16(27867), + 2: uint16(27887), + 3: uint16(27865), + 4: uint16(27882), + 5: uint16(27935), + 6: uint16(34893), + 7: uint16(27958), + 8: uint16(27947), + 9: uint16(27965), + 10: uint16(27960), + 11: uint16(27929), + 12: uint16(27957), + 13: uint16(27955), + 14: uint16(27922), + 15: uint16(27916), + 16: uint16(28003), + 17: uint16(28051), + 18: uint16(28004), + 19: uint16(27994), + 20: uint16(28025), + 21: uint16(27993), + 22: uint16(28046), + 23: uint16(28053), + 24: uint16(28644), + 25: uint16(28037), + 26: uint16(28153), + 27: uint16(28181), + 28: uint16(28170), + 29: uint16(28085), + 30: uint16(28103), + 31: uint16(28134), + 32: uint16(28088), + 33: uint16(28102), + 34: uint16(28140), + 35: uint16(28126), + 36: uint16(28108), + 37: uint16(28136), + 38: uint16(28114), + 39: uint16(28101), + 40: uint16(28154), + 41: uint16(28121), + 42: uint16(28132), + 43: uint16(28117), + 44: uint16(28138), + 45: uint16(28142), + 46: uint16(28205), + 47: uint16(28270), + 48: uint16(28206), + 49: uint16(28185), + 50: uint16(28274), + 51: uint16(28255), + 52: uint16(28222), + 53: uint16(28195), + 54: uint16(28267), + 55: uint16(28203), + 56: uint16(28278), + 57: uint16(28237), + 58: uint16(28191), + 59: uint16(28227), + 60: uint16(28218), + 61: uint16(28238), + 62: uint16(28196), + 63: uint16(28415), + 64: uint16(28189), + 65: uint16(28216), + 66: uint16(28290), + 67: uint16(28330), + 68: uint16(28312), + 69: uint16(28361), + 70: uint16(28343), + 71: uint16(28371), + 72: uint16(28349), + 73: uint16(28335), + 74: uint16(28356), + 75: uint16(28338), + 76: uint16(28372), + 77: uint16(28373), + 78: uint16(28303), + 79: uint16(28325), + 80: uint16(28354), + 81: uint16(28319), + 82: uint16(28481), + 83: uint16(28433), + 84: uint16(28748), + 85: uint16(28396), + 86: uint16(28408), + 87: uint16(28414), + 88: uint16(28479), + 89: uint16(28402), + 90: uint16(28465), + 91: uint16(28399), + 92: uint16(28466), + 93: uint16(28364), + }, + 62: { + 0: uint16(28478), + 1: uint16(28435), + 2: uint16(28407), + 3: uint16(28550), + 4: uint16(28538), + 5: uint16(28536), + 6: uint16(28545), + 7: uint16(28544), + 8: uint16(28527), + 9: uint16(28507), + 10: uint16(28659), + 11: uint16(28525), + 12: uint16(28546), + 13: uint16(28540), + 14: uint16(28504), + 15: uint16(28558), + 16: uint16(28561), + 17: uint16(28610), + 18: uint16(28518), + 19: uint16(28595), + 20: uint16(28579), + 21: uint16(28577), + 22: uint16(28580), + 23: uint16(28601), + 24: uint16(28614), + 25: uint16(28586), + 26: uint16(28639), + 27: uint16(28629), + 28: uint16(28652), + 29: uint16(28628), + 30: uint16(28632), + 31: uint16(28657), + 32: uint16(28654), + 33: uint16(28635), + 34: uint16(28681), + 35: uint16(28683), + 36: uint16(28666), + 37: uint16(28689), + 38: uint16(28673), + 39: uint16(28687), + 40: uint16(28670), + 41: uint16(28699), + 42: uint16(28698), + 43: uint16(28532), + 44: uint16(28701), + 45: uint16(28696), + 46: uint16(28703), + 47: uint16(28720), + 48: uint16(28734), + 49: uint16(28722), + 50: uint16(28753), + 51: uint16(28771), + 52: uint16(28825), + 53: uint16(28818), + 54: uint16(28847), + 55: uint16(28913), + 56: uint16(28844), + 57: uint16(28856), + 58: uint16(28851), + 59: uint16(28846), + 60: uint16(28895), + 61: uint16(28875), + 62: uint16(28893), + 63: uint16(28889), + 64: uint16(28937), + 65: uint16(28925), + 66: uint16(28956), + 67: uint16(28953), + 68: uint16(29029), + 69: uint16(29013), + 70: uint16(29064), + 71: uint16(29030), + 72: uint16(29026), + 73: uint16(29004), + 74: uint16(29014), + 75: uint16(29036), + 76: uint16(29071), + 77: uint16(29179), + 78: uint16(29060), + 79: uint16(29077), + 80: uint16(29096), + 81: uint16(29100), + 82: uint16(29143), + 83: uint16(29113), + 84: uint16(29118), + 85: uint16(29138), + 86: uint16(29129), + 87: uint16(29140), + 88: uint16(29134), + 89: uint16(29152), + 90: uint16(29164), + 91: uint16(29159), + 92: uint16(29173), + 93: uint16(29180), + }, + 63: { + 0: uint16(29177), + 1: uint16(29183), + 2: uint16(29197), + 3: uint16(29200), + 4: uint16(29211), + 5: uint16(29224), + 6: uint16(29229), + 7: uint16(29228), + 8: uint16(29232), + 9: uint16(29234), + 10: uint16(29243), + 11: uint16(29244), + 12: uint16(29247), + 13: uint16(29248), + 14: uint16(29254), + 15: uint16(29259), + 16: uint16(29272), + 17: uint16(29300), + 18: uint16(29310), + 19: uint16(29314), + 20: uint16(29313), + 21: uint16(29319), + 22: uint16(29330), + 23: uint16(29334), + 24: uint16(29346), + 25: uint16(29351), + 26: uint16(29369), + 27: uint16(29362), + 28: uint16(29379), + 29: uint16(29382), + 30: uint16(29380), + 31: uint16(29390), + 32: uint16(29394), + 33: uint16(29410), + 34: uint16(29408), + 35: uint16(29409), + 36: uint16(29433), + 37: uint16(29431), + 38: uint16(20495), + 39: uint16(29463), + 40: uint16(29450), + 41: uint16(29468), + 42: uint16(29462), + 43: uint16(29469), + 44: uint16(29492), + 45: uint16(29487), + 46: uint16(29481), + 47: uint16(29477), + 48: uint16(29502), + 49: uint16(29518), + 50: uint16(29519), + 51: uint16(40664), + 52: uint16(29527), + 53: uint16(29546), + 54: uint16(29544), + 55: uint16(29552), + 56: uint16(29560), + 57: uint16(29557), + 58: uint16(29563), + 59: uint16(29562), + 60: uint16(29640), + 61: uint16(29619), + 62: uint16(29646), + 63: uint16(29627), + 64: uint16(29632), + 65: uint16(29669), + 66: uint16(29678), + 67: uint16(29662), + 68: uint16(29858), + 69: uint16(29701), + 70: uint16(29807), + 71: uint16(29733), + 72: uint16(29688), + 73: uint16(29746), + 74: uint16(29754), + 75: uint16(29781), + 76: uint16(29759), + 77: uint16(29791), + 78: uint16(29785), + 79: uint16(29761), + 80: uint16(29788), + 81: uint16(29801), + 82: uint16(29808), + 83: uint16(29795), + 84: uint16(29802), + 85: uint16(29814), + 86: uint16(29822), + 87: uint16(29835), + 88: uint16(29854), + 89: uint16(29863), + 90: uint16(29898), + 91: uint16(29903), + 92: uint16(29908), + 93: uint16(29681), + }, + 64: { + 0: uint16(29920), + 1: uint16(29923), + 2: uint16(29927), + 3: uint16(29929), + 4: uint16(29934), + 5: uint16(29938), + 6: uint16(29936), + 7: uint16(29937), + 8: uint16(29944), + 9: uint16(29943), + 10: uint16(29956), + 11: uint16(29955), + 12: uint16(29957), + 13: uint16(29964), + 14: uint16(29966), + 15: uint16(29965), + 16: uint16(29973), + 17: uint16(29971), + 18: uint16(29982), + 19: uint16(29990), + 20: uint16(29996), + 21: uint16(30012), + 22: uint16(30020), + 23: uint16(30029), + 24: uint16(30026), + 25: uint16(30025), + 26: uint16(30043), + 27: uint16(30022), + 28: uint16(30042), + 29: uint16(30057), + 30: uint16(30052), + 31: uint16(30055), + 32: uint16(30059), + 33: uint16(30061), + 34: uint16(30072), + 35: uint16(30070), + 36: uint16(30086), + 37: uint16(30087), + 38: uint16(30068), + 39: uint16(30090), + 40: uint16(30089), + 41: uint16(30082), + 42: uint16(30100), + 43: uint16(30106), + 44: uint16(30109), + 45: uint16(30117), + 46: uint16(30115), + 47: uint16(30146), + 48: uint16(30131), + 49: uint16(30147), + 50: uint16(30133), + 51: uint16(30141), + 52: uint16(30136), + 53: uint16(30140), + 54: uint16(30129), + 55: uint16(30157), + 56: uint16(30154), + 57: uint16(30162), + 58: uint16(30169), + 59: uint16(30179), + 60: uint16(30174), + 61: uint16(30206), + 62: uint16(30207), + 63: uint16(30204), + 64: uint16(30209), + 65: uint16(30192), + 66: uint16(30202), + 67: uint16(30194), + 68: uint16(30195), + 69: uint16(30219), + 70: uint16(30221), + 71: uint16(30217), + 72: uint16(30239), + 73: uint16(30247), + 74: uint16(30240), + 75: uint16(30241), + 76: uint16(30242), + 77: uint16(30244), + 78: uint16(30260), + 79: uint16(30256), + 80: uint16(30267), + 81: uint16(30279), + 82: uint16(30280), + 83: uint16(30278), + 84: uint16(30300), + 85: uint16(30296), + 86: uint16(30305), + 87: uint16(30306), + 88: uint16(30312), + 89: uint16(30313), + 90: uint16(30314), + 91: uint16(30311), + 92: uint16(30316), + 93: uint16(30320), + }, + 65: { + 0: uint16(30322), + 1: uint16(30326), + 2: uint16(30328), + 3: uint16(30332), + 4: uint16(30336), + 5: uint16(30339), + 6: uint16(30344), + 7: uint16(30347), + 8: uint16(30350), + 9: uint16(30358), + 10: uint16(30355), + 11: uint16(30361), + 12: uint16(30362), + 13: uint16(30384), + 14: uint16(30388), + 15: uint16(30392), + 16: uint16(30393), + 17: uint16(30394), + 18: uint16(30402), + 19: uint16(30413), + 20: uint16(30422), + 21: uint16(30418), + 22: uint16(30430), + 23: uint16(30433), + 24: uint16(30437), + 25: uint16(30439), + 26: uint16(30442), + 27: uint16(34351), + 28: uint16(30459), + 29: uint16(30472), + 30: uint16(30471), + 31: uint16(30468), + 32: uint16(30505), + 33: uint16(30500), + 34: uint16(30494), + 35: uint16(30501), + 36: uint16(30502), + 37: uint16(30491), + 38: uint16(30519), + 39: uint16(30520), + 40: uint16(30535), + 41: uint16(30554), + 42: uint16(30568), + 43: uint16(30571), + 44: uint16(30555), + 45: uint16(30565), + 46: uint16(30591), + 47: uint16(30590), + 48: uint16(30585), + 49: uint16(30606), + 50: uint16(30603), + 51: uint16(30609), + 52: uint16(30624), + 53: uint16(30622), + 54: uint16(30640), + 55: uint16(30646), + 56: uint16(30649), + 57: uint16(30655), + 58: uint16(30652), + 59: uint16(30653), + 60: uint16(30651), + 61: uint16(30663), + 62: uint16(30669), + 63: uint16(30679), + 64: uint16(30682), + 65: uint16(30684), + 66: uint16(30691), + 67: uint16(30702), + 68: uint16(30716), + 69: uint16(30732), + 70: uint16(30738), + 71: uint16(31014), + 72: uint16(30752), + 73: uint16(31018), + 74: uint16(30789), + 75: uint16(30862), + 76: uint16(30836), + 77: uint16(30854), + 78: uint16(30844), + 79: uint16(30874), + 80: uint16(30860), + 81: uint16(30883), + 82: uint16(30901), + 83: uint16(30890), + 84: uint16(30895), + 85: uint16(30929), + 86: uint16(30918), + 87: uint16(30923), + 88: uint16(30932), + 89: uint16(30910), + 90: uint16(30908), + 91: uint16(30917), + 92: uint16(30922), + 93: uint16(30956), + }, + 66: { + 0: uint16(30951), + 1: uint16(30938), + 2: uint16(30973), + 3: uint16(30964), + 4: uint16(30983), + 5: uint16(30994), + 6: uint16(30993), + 7: uint16(31001), + 8: uint16(31020), + 9: uint16(31019), + 10: uint16(31040), + 11: uint16(31072), + 12: uint16(31063), + 13: uint16(31071), + 14: uint16(31066), + 15: uint16(31061), + 16: uint16(31059), + 17: uint16(31098), + 18: uint16(31103), + 19: uint16(31114), + 20: uint16(31133), + 21: uint16(31143), + 22: uint16(40779), + 23: uint16(31146), + 24: uint16(31150), + 25: uint16(31155), + 26: uint16(31161), + 27: uint16(31162), + 28: uint16(31177), + 29: uint16(31189), + 30: uint16(31207), + 31: uint16(31212), + 32: uint16(31201), + 33: uint16(31203), + 34: uint16(31240), + 35: uint16(31245), + 36: uint16(31256), + 37: uint16(31257), + 38: uint16(31264), + 39: uint16(31263), + 40: uint16(31104), + 41: uint16(31281), + 42: uint16(31291), + 43: uint16(31294), + 44: uint16(31287), + 45: uint16(31299), + 46: uint16(31319), + 47: uint16(31305), + 48: uint16(31329), + 49: uint16(31330), + 50: uint16(31337), + 51: uint16(40861), + 52: uint16(31344), + 53: uint16(31353), + 54: uint16(31357), + 55: uint16(31368), + 56: uint16(31383), + 57: uint16(31381), + 58: uint16(31384), + 59: uint16(31382), + 60: uint16(31401), + 61: uint16(31432), + 62: uint16(31408), + 63: uint16(31414), + 64: uint16(31429), + 65: uint16(31428), + 66: uint16(31423), + 67: uint16(36995), + 68: uint16(31431), + 69: uint16(31434), + 70: uint16(31437), + 71: uint16(31439), + 72: uint16(31445), + 73: uint16(31443), + 74: uint16(31449), + 75: uint16(31450), + 76: uint16(31453), + 77: uint16(31457), + 78: uint16(31458), + 79: uint16(31462), + 80: uint16(31469), + 81: uint16(31472), + 82: uint16(31490), + 83: uint16(31503), + 84: uint16(31498), + 85: uint16(31494), + 86: uint16(31539), + 87: uint16(31512), + 88: uint16(31513), + 89: uint16(31518), + 90: uint16(31541), + 91: uint16(31528), + 92: uint16(31542), + 93: uint16(31568), + }, + 67: { + 0: uint16(31610), + 1: uint16(31492), + 2: uint16(31565), + 3: uint16(31499), + 4: uint16(31564), + 5: uint16(31557), + 6: uint16(31605), + 7: uint16(31589), + 8: uint16(31604), + 9: uint16(31591), + 10: uint16(31600), + 11: uint16(31601), + 12: uint16(31596), + 13: uint16(31598), + 14: uint16(31645), + 15: uint16(31640), + 16: uint16(31647), + 17: uint16(31629), + 18: uint16(31644), + 19: uint16(31642), + 20: uint16(31627), + 21: uint16(31634), + 22: uint16(31631), + 23: uint16(31581), + 24: uint16(31641), + 25: uint16(31691), + 26: uint16(31681), + 27: uint16(31692), + 28: uint16(31695), + 29: uint16(31668), + 30: uint16(31686), + 31: uint16(31709), + 32: uint16(31721), + 33: uint16(31761), + 34: uint16(31764), + 35: uint16(31718), + 36: uint16(31717), + 37: uint16(31840), + 38: uint16(31744), + 39: uint16(31751), + 40: uint16(31763), + 41: uint16(31731), + 42: uint16(31735), + 43: uint16(31767), + 44: uint16(31757), + 45: uint16(31734), + 46: uint16(31779), + 47: uint16(31783), + 48: uint16(31786), + 49: uint16(31775), + 50: uint16(31799), + 51: uint16(31787), + 52: uint16(31805), + 53: uint16(31820), + 54: uint16(31811), + 55: uint16(31828), + 56: uint16(31823), + 57: uint16(31808), + 58: uint16(31824), + 59: uint16(31832), + 60: uint16(31839), + 61: uint16(31844), + 62: uint16(31830), + 63: uint16(31845), + 64: uint16(31852), + 65: uint16(31861), + 66: uint16(31875), + 67: uint16(31888), + 68: uint16(31908), + 69: uint16(31917), + 70: uint16(31906), + 71: uint16(31915), + 72: uint16(31905), + 73: uint16(31912), + 74: uint16(31923), + 75: uint16(31922), + 76: uint16(31921), + 77: uint16(31918), + 78: uint16(31929), + 79: uint16(31933), + 80: uint16(31936), + 81: uint16(31941), + 82: uint16(31938), + 83: uint16(31960), + 84: uint16(31954), + 85: uint16(31964), + 86: uint16(31970), + 87: uint16(39739), + 88: uint16(31983), + 89: uint16(31986), + 90: uint16(31988), + 91: uint16(31990), + 92: uint16(31994), + 93: uint16(32006), + }, + 68: { + 0: uint16(32002), + 1: uint16(32028), + 2: uint16(32021), + 3: uint16(32010), + 4: uint16(32069), + 5: uint16(32075), + 6: uint16(32046), + 7: uint16(32050), + 8: uint16(32063), + 9: uint16(32053), + 10: uint16(32070), + 11: uint16(32115), + 12: uint16(32086), + 13: uint16(32078), + 14: uint16(32114), + 15: uint16(32104), + 16: uint16(32110), + 17: uint16(32079), + 18: uint16(32099), + 19: uint16(32147), + 20: uint16(32137), + 21: uint16(32091), + 22: uint16(32143), + 23: uint16(32125), + 24: uint16(32155), + 25: uint16(32186), + 26: uint16(32174), + 27: uint16(32163), + 28: uint16(32181), + 29: uint16(32199), + 30: uint16(32189), + 31: uint16(32171), + 32: uint16(32317), + 33: uint16(32162), + 34: uint16(32175), + 35: uint16(32220), + 36: uint16(32184), + 37: uint16(32159), + 38: uint16(32176), + 39: uint16(32216), + 40: uint16(32221), + 41: uint16(32228), + 42: uint16(32222), + 43: uint16(32251), + 44: uint16(32242), + 45: uint16(32225), + 46: uint16(32261), + 47: uint16(32266), + 48: uint16(32291), + 49: uint16(32289), + 50: uint16(32274), + 51: uint16(32305), + 52: uint16(32287), + 53: uint16(32265), + 54: uint16(32267), + 55: uint16(32290), + 56: uint16(32326), + 57: uint16(32358), + 58: uint16(32315), + 59: uint16(32309), + 60: uint16(32313), + 61: uint16(32323), + 62: uint16(32311), + 63: uint16(32306), + 64: uint16(32314), + 65: uint16(32359), + 66: uint16(32349), + 67: uint16(32342), + 68: uint16(32350), + 69: uint16(32345), + 70: uint16(32346), + 71: uint16(32377), + 72: uint16(32362), + 73: uint16(32361), + 74: uint16(32380), + 75: uint16(32379), + 76: uint16(32387), + 77: uint16(32213), + 78: uint16(32381), + 79: uint16(36782), + 80: uint16(32383), + 81: uint16(32392), + 82: uint16(32393), + 83: uint16(32396), + 84: uint16(32402), + 85: uint16(32400), + 86: uint16(32403), + 87: uint16(32404), + 88: uint16(32406), + 89: uint16(32398), + 90: uint16(32411), + 91: uint16(32412), + 92: uint16(32568), + 93: uint16(32570), + }, + 69: { + 0: uint16(32581), + 1: uint16(32588), + 2: uint16(32589), + 3: uint16(32590), + 4: uint16(32592), + 5: uint16(32593), + 6: uint16(32597), + 7: uint16(32596), + 8: uint16(32600), + 9: uint16(32607), + 10: uint16(32608), + 11: uint16(32616), + 12: uint16(32617), + 13: uint16(32615), + 14: uint16(32632), + 15: uint16(32642), + 16: uint16(32646), + 17: uint16(32643), + 18: uint16(32648), + 19: uint16(32647), + 20: uint16(32652), + 21: uint16(32660), + 22: uint16(32670), + 23: uint16(32669), + 24: uint16(32666), + 25: uint16(32675), + 26: uint16(32687), + 27: uint16(32690), + 28: uint16(32697), + 29: uint16(32686), + 30: uint16(32694), + 31: uint16(32696), + 32: uint16(35697), + 33: uint16(32709), + 34: uint16(32710), + 35: uint16(32714), + 36: uint16(32725), + 37: uint16(32724), + 38: uint16(32737), + 39: uint16(32742), + 40: uint16(32745), + 41: uint16(32755), + 42: uint16(32761), + 43: uint16(39132), + 44: uint16(32774), + 45: uint16(32772), + 46: uint16(32779), + 47: uint16(32786), + 48: uint16(32792), + 49: uint16(32793), + 50: uint16(32796), + 51: uint16(32801), + 52: uint16(32808), + 53: uint16(32831), + 54: uint16(32827), + 55: uint16(32842), + 56: uint16(32838), + 57: uint16(32850), + 58: uint16(32856), + 59: uint16(32858), + 60: uint16(32863), + 61: uint16(32866), + 62: uint16(32872), + 63: uint16(32883), + 64: uint16(32882), + 65: uint16(32880), + 66: uint16(32886), + 67: uint16(32889), + 68: uint16(32893), + 69: uint16(32895), + 70: uint16(32900), + 71: uint16(32902), + 72: uint16(32901), + 73: uint16(32923), + 74: uint16(32915), + 75: uint16(32922), + 76: uint16(32941), + 77: uint16(20880), + 78: uint16(32940), + 79: uint16(32987), + 80: uint16(32997), + 81: uint16(32985), + 82: uint16(32989), + 83: uint16(32964), + 84: uint16(32986), + 85: uint16(32982), + 86: uint16(33033), + 87: uint16(33007), + 88: uint16(33009), + 89: uint16(33051), + 90: uint16(33065), + 91: uint16(33059), + 92: uint16(33071), + 93: uint16(33099), + }, + 70: { + 0: uint16(38539), + 1: uint16(33094), + 2: uint16(33086), + 3: uint16(33107), + 4: uint16(33105), + 5: uint16(33020), + 6: uint16(33137), + 7: uint16(33134), + 8: uint16(33125), + 9: uint16(33126), + 10: uint16(33140), + 11: uint16(33155), + 12: uint16(33160), + 13: uint16(33162), + 14: uint16(33152), + 15: uint16(33154), + 16: uint16(33184), + 17: uint16(33173), + 18: uint16(33188), + 19: uint16(33187), + 20: uint16(33119), + 21: uint16(33171), + 22: uint16(33193), + 23: uint16(33200), + 24: uint16(33205), + 25: uint16(33214), + 26: uint16(33208), + 27: uint16(33213), + 28: uint16(33216), + 29: uint16(33218), + 30: uint16(33210), + 31: uint16(33225), + 32: uint16(33229), + 33: uint16(33233), + 34: uint16(33241), + 35: uint16(33240), + 36: uint16(33224), + 37: uint16(33242), + 38: uint16(33247), + 39: uint16(33248), + 40: uint16(33255), + 41: uint16(33274), + 42: uint16(33275), + 43: uint16(33278), + 44: uint16(33281), + 45: uint16(33282), + 46: uint16(33285), + 47: uint16(33287), + 48: uint16(33290), + 49: uint16(33293), + 50: uint16(33296), + 51: uint16(33302), + 52: uint16(33321), + 53: uint16(33323), + 54: uint16(33336), + 55: uint16(33331), + 56: uint16(33344), + 57: uint16(33369), + 58: uint16(33368), + 59: uint16(33373), + 60: uint16(33370), + 61: uint16(33375), + 62: uint16(33380), + 63: uint16(33378), + 64: uint16(33384), + 65: uint16(33386), + 66: uint16(33387), + 67: uint16(33326), + 68: uint16(33393), + 69: uint16(33399), + 70: uint16(33400), + 71: uint16(33406), + 72: uint16(33421), + 73: uint16(33426), + 74: uint16(33451), + 75: uint16(33439), + 76: uint16(33467), + 77: uint16(33452), + 78: uint16(33505), + 79: uint16(33507), + 80: uint16(33503), + 81: uint16(33490), + 82: uint16(33524), + 83: uint16(33523), + 84: uint16(33530), + 85: uint16(33683), + 86: uint16(33539), + 87: uint16(33531), + 88: uint16(33529), + 89: uint16(33502), + 90: uint16(33542), + 91: uint16(33500), + 92: uint16(33545), + 93: uint16(33497), + }, + 71: { + 0: uint16(33589), + 1: uint16(33588), + 2: uint16(33558), + 3: uint16(33586), + 4: uint16(33585), + 5: uint16(33600), + 6: uint16(33593), + 7: uint16(33616), + 8: uint16(33605), + 9: uint16(33583), + 10: uint16(33579), + 11: uint16(33559), + 12: uint16(33560), + 13: uint16(33669), + 14: uint16(33690), + 15: uint16(33706), + 16: uint16(33695), + 17: uint16(33698), + 18: uint16(33686), + 19: uint16(33571), + 20: uint16(33678), + 21: uint16(33671), + 22: uint16(33674), + 23: uint16(33660), + 24: uint16(33717), + 25: uint16(33651), + 26: uint16(33653), + 27: uint16(33696), + 28: uint16(33673), + 29: uint16(33704), + 30: uint16(33780), + 31: uint16(33811), + 32: uint16(33771), + 33: uint16(33742), + 34: uint16(33789), + 35: uint16(33795), + 36: uint16(33752), + 37: uint16(33803), + 38: uint16(33729), + 39: uint16(33783), + 40: uint16(33799), + 41: uint16(33760), + 42: uint16(33778), + 43: uint16(33805), + 44: uint16(33826), + 45: uint16(33824), + 46: uint16(33725), + 47: uint16(33848), + 48: uint16(34054), + 49: uint16(33787), + 50: uint16(33901), + 51: uint16(33834), + 52: uint16(33852), + 53: uint16(34138), + 54: uint16(33924), + 55: uint16(33911), + 56: uint16(33899), + 57: uint16(33965), + 58: uint16(33902), + 59: uint16(33922), + 60: uint16(33897), + 61: uint16(33862), + 62: uint16(33836), + 63: uint16(33903), + 64: uint16(33913), + 65: uint16(33845), + 66: uint16(33994), + 67: uint16(33890), + 68: uint16(33977), + 69: uint16(33983), + 70: uint16(33951), + 71: uint16(34009), + 72: uint16(33997), + 73: uint16(33979), + 74: uint16(34010), + 75: uint16(34000), + 76: uint16(33985), + 77: uint16(33990), + 78: uint16(34006), + 79: uint16(33953), + 80: uint16(34081), + 81: uint16(34047), + 82: uint16(34036), + 83: uint16(34071), + 84: uint16(34072), + 85: uint16(34092), + 86: uint16(34079), + 87: uint16(34069), + 88: uint16(34068), + 89: uint16(34044), + 90: uint16(34112), + 91: uint16(34147), + 92: uint16(34136), + 93: uint16(34120), + }, + 72: { + 0: uint16(34113), + 1: uint16(34306), + 2: uint16(34123), + 3: uint16(34133), + 4: uint16(34176), + 5: uint16(34212), + 6: uint16(34184), + 7: uint16(34193), + 8: uint16(34186), + 9: uint16(34216), + 10: uint16(34157), + 11: uint16(34196), + 12: uint16(34203), + 13: uint16(34282), + 14: uint16(34183), + 15: uint16(34204), + 16: uint16(34167), + 17: uint16(34174), + 18: uint16(34192), + 19: uint16(34249), + 20: uint16(34234), + 21: uint16(34255), + 22: uint16(34233), + 23: uint16(34256), + 24: uint16(34261), + 25: uint16(34269), + 26: uint16(34277), + 27: uint16(34268), + 28: uint16(34297), + 29: uint16(34314), + 30: uint16(34323), + 31: uint16(34315), + 32: uint16(34302), + 33: uint16(34298), + 34: uint16(34310), + 35: uint16(34338), + 36: uint16(34330), + 37: uint16(34352), + 38: uint16(34367), + 39: uint16(34381), + 40: uint16(20053), + 41: uint16(34388), + 42: uint16(34399), + 43: uint16(34407), + 44: uint16(34417), + 45: uint16(34451), + 46: uint16(34467), + 47: uint16(34473), + 48: uint16(34474), + 49: uint16(34443), + 50: uint16(34444), + 51: uint16(34486), + 52: uint16(34479), + 53: uint16(34500), + 54: uint16(34502), + 55: uint16(34480), + 56: uint16(34505), + 57: uint16(34851), + 58: uint16(34475), + 59: uint16(34516), + 60: uint16(34526), + 61: uint16(34537), + 62: uint16(34540), + 63: uint16(34527), + 64: uint16(34523), + 65: uint16(34543), + 66: uint16(34578), + 67: uint16(34566), + 68: uint16(34568), + 69: uint16(34560), + 70: uint16(34563), + 71: uint16(34555), + 72: uint16(34577), + 73: uint16(34569), + 74: uint16(34573), + 75: uint16(34553), + 76: uint16(34570), + 77: uint16(34612), + 78: uint16(34623), + 79: uint16(34615), + 80: uint16(34619), + 81: uint16(34597), + 82: uint16(34601), + 83: uint16(34586), + 84: uint16(34656), + 85: uint16(34655), + 86: uint16(34680), + 87: uint16(34636), + 88: uint16(34638), + 89: uint16(34676), + 90: uint16(34647), + 91: uint16(34664), + 92: uint16(34670), + 93: uint16(34649), + }, + 73: { + 0: uint16(34643), + 1: uint16(34659), + 2: uint16(34666), + 3: uint16(34821), + 4: uint16(34722), + 5: uint16(34719), + 6: uint16(34690), + 7: uint16(34735), + 8: uint16(34763), + 9: uint16(34749), + 10: uint16(34752), + 11: uint16(34768), + 12: uint16(38614), + 13: uint16(34731), + 14: uint16(34756), + 15: uint16(34739), + 16: uint16(34759), + 17: uint16(34758), + 18: uint16(34747), + 19: uint16(34799), + 20: uint16(34802), + 21: uint16(34784), + 22: uint16(34831), + 23: uint16(34829), + 24: uint16(34814), + 25: uint16(34806), + 26: uint16(34807), + 27: uint16(34830), + 28: uint16(34770), + 29: uint16(34833), + 30: uint16(34838), + 31: uint16(34837), + 32: uint16(34850), + 33: uint16(34849), + 34: uint16(34865), + 35: uint16(34870), + 36: uint16(34873), + 37: uint16(34855), + 38: uint16(34875), + 39: uint16(34884), + 40: uint16(34882), + 41: uint16(34898), + 42: uint16(34905), + 43: uint16(34910), + 44: uint16(34914), + 45: uint16(34923), + 46: uint16(34945), + 47: uint16(34942), + 48: uint16(34974), + 49: uint16(34933), + 50: uint16(34941), + 51: uint16(34997), + 52: uint16(34930), + 53: uint16(34946), + 54: uint16(34967), + 55: uint16(34962), + 56: uint16(34990), + 57: uint16(34969), + 58: uint16(34978), + 59: uint16(34957), + 60: uint16(34980), + 61: uint16(34992), + 62: uint16(35007), + 63: uint16(34993), + 64: uint16(35011), + 65: uint16(35012), + 66: uint16(35028), + 67: uint16(35032), + 68: uint16(35033), + 69: uint16(35037), + 70: uint16(35065), + 71: uint16(35074), + 72: uint16(35068), + 73: uint16(35060), + 74: uint16(35048), + 75: uint16(35058), + 76: uint16(35076), + 77: uint16(35084), + 78: uint16(35082), + 79: uint16(35091), + 80: uint16(35139), + 81: uint16(35102), + 82: uint16(35109), + 83: uint16(35114), + 84: uint16(35115), + 85: uint16(35137), + 86: uint16(35140), + 87: uint16(35131), + 88: uint16(35126), + 89: uint16(35128), + 90: uint16(35148), + 91: uint16(35101), + 92: uint16(35168), + 93: uint16(35166), + }, + 74: { + 0: uint16(35174), + 1: uint16(35172), + 2: uint16(35181), + 3: uint16(35178), + 4: uint16(35183), + 5: uint16(35188), + 6: uint16(35191), + 7: uint16(35198), + 8: uint16(35203), + 9: uint16(35208), + 10: uint16(35210), + 11: uint16(35219), + 12: uint16(35224), + 13: uint16(35233), + 14: uint16(35241), + 15: uint16(35238), + 16: uint16(35244), + 17: uint16(35247), + 18: uint16(35250), + 19: uint16(35258), + 20: uint16(35261), + 21: uint16(35263), + 22: uint16(35264), + 23: uint16(35290), + 24: uint16(35292), + 25: uint16(35293), + 26: uint16(35303), + 27: uint16(35316), + 28: uint16(35320), + 29: uint16(35331), + 30: uint16(35350), + 31: uint16(35344), + 32: uint16(35340), + 33: uint16(35355), + 34: uint16(35357), + 35: uint16(35365), + 36: uint16(35382), + 37: uint16(35393), + 38: uint16(35419), + 39: uint16(35410), + 40: uint16(35398), + 41: uint16(35400), + 42: uint16(35452), + 43: uint16(35437), + 44: uint16(35436), + 45: uint16(35426), + 46: uint16(35461), + 47: uint16(35458), + 48: uint16(35460), + 49: uint16(35496), + 50: uint16(35489), + 51: uint16(35473), + 52: uint16(35493), + 53: uint16(35494), + 54: uint16(35482), + 55: uint16(35491), + 56: uint16(35524), + 57: uint16(35533), + 58: uint16(35522), + 59: uint16(35546), + 60: uint16(35563), + 61: uint16(35571), + 62: uint16(35559), + 63: uint16(35556), + 64: uint16(35569), + 65: uint16(35604), + 66: uint16(35552), + 67: uint16(35554), + 68: uint16(35575), + 69: uint16(35550), + 70: uint16(35547), + 71: uint16(35596), + 72: uint16(35591), + 73: uint16(35610), + 74: uint16(35553), + 75: uint16(35606), + 76: uint16(35600), + 77: uint16(35607), + 78: uint16(35616), + 79: uint16(35635), + 80: uint16(38827), + 81: uint16(35622), + 82: uint16(35627), + 83: uint16(35646), + 84: uint16(35624), + 85: uint16(35649), + 86: uint16(35660), + 87: uint16(35663), + 88: uint16(35662), + 89: uint16(35657), + 90: uint16(35670), + 91: uint16(35675), + 92: uint16(35674), + 93: uint16(35691), + }, + 75: { + 0: uint16(35679), + 1: uint16(35692), + 2: uint16(35695), + 3: uint16(35700), + 4: uint16(35709), + 5: uint16(35712), + 6: uint16(35724), + 7: uint16(35726), + 8: uint16(35730), + 9: uint16(35731), + 10: uint16(35734), + 11: uint16(35737), + 12: uint16(35738), + 13: uint16(35898), + 14: uint16(35905), + 15: uint16(35903), + 16: uint16(35912), + 17: uint16(35916), + 18: uint16(35918), + 19: uint16(35920), + 20: uint16(35925), + 21: uint16(35938), + 22: uint16(35948), + 23: uint16(35960), + 24: uint16(35962), + 25: uint16(35970), + 26: uint16(35977), + 27: uint16(35973), + 28: uint16(35978), + 29: uint16(35981), + 30: uint16(35982), + 31: uint16(35988), + 32: uint16(35964), + 33: uint16(35992), + 34: uint16(25117), + 35: uint16(36013), + 36: uint16(36010), + 37: uint16(36029), + 38: uint16(36018), + 39: uint16(36019), + 40: uint16(36014), + 41: uint16(36022), + 42: uint16(36040), + 43: uint16(36033), + 44: uint16(36068), + 45: uint16(36067), + 46: uint16(36058), + 47: uint16(36093), + 48: uint16(36090), + 49: uint16(36091), + 50: uint16(36100), + 51: uint16(36101), + 52: uint16(36106), + 53: uint16(36103), + 54: uint16(36111), + 55: uint16(36109), + 56: uint16(36112), + 57: uint16(40782), + 58: uint16(36115), + 59: uint16(36045), + 60: uint16(36116), + 61: uint16(36118), + 62: uint16(36199), + 63: uint16(36205), + 64: uint16(36209), + 65: uint16(36211), + 66: uint16(36225), + 67: uint16(36249), + 68: uint16(36290), + 69: uint16(36286), + 70: uint16(36282), + 71: uint16(36303), + 72: uint16(36314), + 73: uint16(36310), + 74: uint16(36300), + 75: uint16(36315), + 76: uint16(36299), + 77: uint16(36330), + 78: uint16(36331), + 79: uint16(36319), + 80: uint16(36323), + 81: uint16(36348), + 82: uint16(36360), + 83: uint16(36361), + 84: uint16(36351), + 85: uint16(36381), + 86: uint16(36382), + 87: uint16(36368), + 88: uint16(36383), + 89: uint16(36418), + 90: uint16(36405), + 91: uint16(36400), + 92: uint16(36404), + 93: uint16(36426), + }, + 76: { + 0: uint16(36423), + 1: uint16(36425), + 2: uint16(36428), + 3: uint16(36432), + 4: uint16(36424), + 5: uint16(36441), + 6: uint16(36452), + 7: uint16(36448), + 8: uint16(36394), + 9: uint16(36451), + 10: uint16(36437), + 11: uint16(36470), + 12: uint16(36466), + 13: uint16(36476), + 14: uint16(36481), + 15: uint16(36487), + 16: uint16(36485), + 17: uint16(36484), + 18: uint16(36491), + 19: uint16(36490), + 20: uint16(36499), + 21: uint16(36497), + 22: uint16(36500), + 23: uint16(36505), + 24: uint16(36522), + 25: uint16(36513), + 26: uint16(36524), + 27: uint16(36528), + 28: uint16(36550), + 29: uint16(36529), + 30: uint16(36542), + 31: uint16(36549), + 32: uint16(36552), + 33: uint16(36555), + 34: uint16(36571), + 35: uint16(36579), + 36: uint16(36604), + 37: uint16(36603), + 38: uint16(36587), + 39: uint16(36606), + 40: uint16(36618), + 41: uint16(36613), + 42: uint16(36629), + 43: uint16(36626), + 44: uint16(36633), + 45: uint16(36627), + 46: uint16(36636), + 47: uint16(36639), + 48: uint16(36635), + 49: uint16(36620), + 50: uint16(36646), + 51: uint16(36659), + 52: uint16(36667), + 53: uint16(36665), + 54: uint16(36677), + 55: uint16(36674), + 56: uint16(36670), + 57: uint16(36684), + 58: uint16(36681), + 59: uint16(36678), + 60: uint16(36686), + 61: uint16(36695), + 62: uint16(36700), + 63: uint16(36706), + 64: uint16(36707), + 65: uint16(36708), + 66: uint16(36764), + 67: uint16(36767), + 68: uint16(36771), + 69: uint16(36781), + 70: uint16(36783), + 71: uint16(36791), + 72: uint16(36826), + 73: uint16(36837), + 74: uint16(36834), + 75: uint16(36842), + 76: uint16(36847), + 77: uint16(36999), + 78: uint16(36852), + 79: uint16(36869), + 80: uint16(36857), + 81: uint16(36858), + 82: uint16(36881), + 83: uint16(36885), + 84: uint16(36897), + 85: uint16(36877), + 86: uint16(36894), + 87: uint16(36886), + 88: uint16(36875), + 89: uint16(36903), + 90: uint16(36918), + 91: uint16(36917), + 92: uint16(36921), + 93: uint16(36856), + }, + 77: { + 0: uint16(36943), + 1: uint16(36944), + 2: uint16(36945), + 3: uint16(36946), + 4: uint16(36878), + 5: uint16(36937), + 6: uint16(36926), + 7: uint16(36950), + 8: uint16(36952), + 9: uint16(36958), + 10: uint16(36968), + 11: uint16(36975), + 12: uint16(36982), + 13: uint16(38568), + 14: uint16(36978), + 15: uint16(36994), + 16: uint16(36989), + 17: uint16(36993), + 18: uint16(36992), + 19: uint16(37002), + 20: uint16(37001), + 21: uint16(37007), + 22: uint16(37032), + 23: uint16(37039), + 24: uint16(37041), + 25: uint16(37045), + 26: uint16(37090), + 27: uint16(37092), + 28: uint16(25160), + 29: uint16(37083), + 30: uint16(37122), + 31: uint16(37138), + 32: uint16(37145), + 33: uint16(37170), + 34: uint16(37168), + 35: uint16(37194), + 36: uint16(37206), + 37: uint16(37208), + 38: uint16(37219), + 39: uint16(37221), + 40: uint16(37225), + 41: uint16(37235), + 42: uint16(37234), + 43: uint16(37259), + 44: uint16(37257), + 45: uint16(37250), + 46: uint16(37282), + 47: uint16(37291), + 48: uint16(37295), + 49: uint16(37290), + 50: uint16(37301), + 51: uint16(37300), + 52: uint16(37306), + 53: uint16(37312), + 54: uint16(37313), + 55: uint16(37321), + 56: uint16(37323), + 57: uint16(37328), + 58: uint16(37334), + 59: uint16(37343), + 60: uint16(37345), + 61: uint16(37339), + 62: uint16(37372), + 63: uint16(37365), + 64: uint16(37366), + 65: uint16(37406), + 66: uint16(37375), + 67: uint16(37396), + 68: uint16(37420), + 69: uint16(37397), + 70: uint16(37393), + 71: uint16(37470), + 72: uint16(37463), + 73: uint16(37445), + 74: uint16(37449), + 75: uint16(37476), + 76: uint16(37448), + 77: uint16(37525), + 78: uint16(37439), + 79: uint16(37451), + 80: uint16(37456), + 81: uint16(37532), + 82: uint16(37526), + 83: uint16(37523), + 84: uint16(37531), + 85: uint16(37466), + 86: uint16(37583), + 87: uint16(37561), + 88: uint16(37559), + 89: uint16(37609), + 90: uint16(37647), + 91: uint16(37626), + 92: uint16(37700), + 93: uint16(37678), + }, + 78: { + 0: uint16(37657), + 1: uint16(37666), + 2: uint16(37658), + 3: uint16(37667), + 4: uint16(37690), + 5: uint16(37685), + 6: uint16(37691), + 7: uint16(37724), + 8: uint16(37728), + 9: uint16(37756), + 10: uint16(37742), + 11: uint16(37718), + 12: uint16(37808), + 13: uint16(37804), + 14: uint16(37805), + 15: uint16(37780), + 16: uint16(37817), + 17: uint16(37846), + 18: uint16(37847), + 19: uint16(37864), + 20: uint16(37861), + 21: uint16(37848), + 22: uint16(37827), + 23: uint16(37853), + 24: uint16(37840), + 25: uint16(37832), + 26: uint16(37860), + 27: uint16(37914), + 28: uint16(37908), + 29: uint16(37907), + 30: uint16(37891), + 31: uint16(37895), + 32: uint16(37904), + 33: uint16(37942), + 34: uint16(37931), + 35: uint16(37941), + 36: uint16(37921), + 37: uint16(37946), + 38: uint16(37953), + 39: uint16(37970), + 40: uint16(37956), + 41: uint16(37979), + 42: uint16(37984), + 43: uint16(37986), + 44: uint16(37982), + 45: uint16(37994), + 46: uint16(37417), + 47: uint16(38000), + 48: uint16(38005), + 49: uint16(38007), + 50: uint16(38013), + 51: uint16(37978), + 52: uint16(38012), + 53: uint16(38014), + 54: uint16(38017), + 55: uint16(38015), + 56: uint16(38274), + 57: uint16(38279), + 58: uint16(38282), + 59: uint16(38292), + 60: uint16(38294), + 61: uint16(38296), + 62: uint16(38297), + 63: uint16(38304), + 64: uint16(38312), + 65: uint16(38311), + 66: uint16(38317), + 67: uint16(38332), + 68: uint16(38331), + 69: uint16(38329), + 70: uint16(38334), + 71: uint16(38346), + 72: uint16(28662), + 73: uint16(38339), + 74: uint16(38349), + 75: uint16(38348), + 76: uint16(38357), + 77: uint16(38356), + 78: uint16(38358), + 79: uint16(38364), + 80: uint16(38369), + 81: uint16(38373), + 82: uint16(38370), + 83: uint16(38433), + 84: uint16(38440), + 85: uint16(38446), + 86: uint16(38447), + 87: uint16(38466), + 88: uint16(38476), + 89: uint16(38479), + 90: uint16(38475), + 91: uint16(38519), + 92: uint16(38492), + 93: uint16(38494), + }, + 79: { + 0: uint16(38493), + 1: uint16(38495), + 2: uint16(38502), + 3: uint16(38514), + 4: uint16(38508), + 5: uint16(38541), + 6: uint16(38552), + 7: uint16(38549), + 8: uint16(38551), + 9: uint16(38570), + 10: uint16(38567), + 11: uint16(38577), + 12: uint16(38578), + 13: uint16(38576), + 14: uint16(38580), + 15: uint16(38582), + 16: uint16(38584), + 17: uint16(38585), + 18: uint16(38606), + 19: uint16(38603), + 20: uint16(38601), + 21: uint16(38605), + 22: uint16(35149), + 23: uint16(38620), + 24: uint16(38669), + 25: uint16(38613), + 26: uint16(38649), + 27: uint16(38660), + 28: uint16(38662), + 29: uint16(38664), + 30: uint16(38675), + 31: uint16(38670), + 32: uint16(38673), + 33: uint16(38671), + 34: uint16(38678), + 35: uint16(38681), + 36: uint16(38692), + 37: uint16(38698), + 38: uint16(38704), + 39: uint16(38713), + 40: uint16(38717), + 41: uint16(38718), + 42: uint16(38724), + 43: uint16(38726), + 44: uint16(38728), + 45: uint16(38722), + 46: uint16(38729), + 47: uint16(38748), + 48: uint16(38752), + 49: uint16(38756), + 50: uint16(38758), + 51: uint16(38760), + 52: uint16(21202), + 53: uint16(38763), + 54: uint16(38769), + 55: uint16(38777), + 56: uint16(38789), + 57: uint16(38780), + 58: uint16(38785), + 59: uint16(38778), + 60: uint16(38790), + 61: uint16(38795), + 62: uint16(38799), + 63: uint16(38800), + 64: uint16(38812), + 65: uint16(38824), + 66: uint16(38822), + 67: uint16(38819), + 68: uint16(38835), + 69: uint16(38836), + 70: uint16(38851), + 71: uint16(38854), + 72: uint16(38856), + 73: uint16(38859), + 74: uint16(38876), + 75: uint16(38893), + 76: uint16(40783), + 77: uint16(38898), + 78: uint16(31455), + 79: uint16(38902), + 80: uint16(38901), + 81: uint16(38927), + 82: uint16(38924), + 83: uint16(38968), + 84: uint16(38948), + 85: uint16(38945), + 86: uint16(38967), + 87: uint16(38973), + 88: uint16(38982), + 89: uint16(38991), + 90: uint16(38987), + 91: uint16(39019), + 92: uint16(39023), + 93: uint16(39024), + }, + 80: { + 0: uint16(39025), + 1: uint16(39028), + 2: uint16(39027), + 3: uint16(39082), + 4: uint16(39087), + 5: uint16(39089), + 6: uint16(39094), + 7: uint16(39108), + 8: uint16(39107), + 9: uint16(39110), + 10: uint16(39145), + 11: uint16(39147), + 12: uint16(39171), + 13: uint16(39177), + 14: uint16(39186), + 15: uint16(39188), + 16: uint16(39192), + 17: uint16(39201), + 18: uint16(39197), + 19: uint16(39198), + 20: uint16(39204), + 21: uint16(39200), + 22: uint16(39212), + 23: uint16(39214), + 24: uint16(39229), + 25: uint16(39230), + 26: uint16(39234), + 27: uint16(39241), + 28: uint16(39237), + 29: uint16(39248), + 30: uint16(39243), + 31: uint16(39249), + 32: uint16(39250), + 33: uint16(39244), + 34: uint16(39253), + 35: uint16(39319), + 36: uint16(39320), + 37: uint16(39333), + 38: uint16(39341), + 39: uint16(39342), + 40: uint16(39356), + 41: uint16(39391), + 42: uint16(39387), + 43: uint16(39389), + 44: uint16(39384), + 45: uint16(39377), + 46: uint16(39405), + 47: uint16(39406), + 48: uint16(39409), + 49: uint16(39410), + 50: uint16(39419), + 51: uint16(39416), + 52: uint16(39425), + 53: uint16(39439), + 54: uint16(39429), + 55: uint16(39394), + 56: uint16(39449), + 57: uint16(39467), + 58: uint16(39479), + 59: uint16(39493), + 60: uint16(39490), + 61: uint16(39488), + 62: uint16(39491), + 63: uint16(39486), + 64: uint16(39509), + 65: uint16(39501), + 66: uint16(39515), + 67: uint16(39511), + 68: uint16(39519), + 69: uint16(39522), + 70: uint16(39525), + 71: uint16(39524), + 72: uint16(39529), + 73: uint16(39531), + 74: uint16(39530), + 75: uint16(39597), + 76: uint16(39600), + 77: uint16(39612), + 78: uint16(39616), + 79: uint16(39631), + 80: uint16(39633), + 81: uint16(39635), + 82: uint16(39636), + 83: uint16(39646), + 84: uint16(39647), + 85: uint16(39650), + 86: uint16(39651), + 87: uint16(39654), + 88: uint16(39663), + 89: uint16(39659), + 90: uint16(39662), + 91: uint16(39668), + 92: uint16(39665), + 93: uint16(39671), + }, + 81: { + 0: uint16(39675), + 1: uint16(39686), + 2: uint16(39704), + 3: uint16(39706), + 4: uint16(39711), + 5: uint16(39714), + 6: uint16(39715), + 7: uint16(39717), + 8: uint16(39719), + 9: uint16(39720), + 10: uint16(39721), + 11: uint16(39722), + 12: uint16(39726), + 13: uint16(39727), + 14: uint16(39730), + 15: uint16(39748), + 16: uint16(39747), + 17: uint16(39759), + 18: uint16(39757), + 19: uint16(39758), + 20: uint16(39761), + 21: uint16(39768), + 22: uint16(39796), + 23: uint16(39827), + 24: uint16(39811), + 25: uint16(39825), + 26: uint16(39830), + 27: uint16(39831), + 28: uint16(39839), + 29: uint16(39840), + 30: uint16(39848), + 31: uint16(39860), + 32: uint16(39872), + 33: uint16(39882), + 34: uint16(39865), + 35: uint16(39878), + 36: uint16(39887), + 37: uint16(39889), + 38: uint16(39890), + 39: uint16(39907), + 40: uint16(39906), + 41: uint16(39908), + 42: uint16(39892), + 43: uint16(39905), + 44: uint16(39994), + 45: uint16(39922), + 46: uint16(39921), + 47: uint16(39920), + 48: uint16(39957), + 49: uint16(39956), + 50: uint16(39945), + 51: uint16(39955), + 52: uint16(39948), + 53: uint16(39942), + 54: uint16(39944), + 55: uint16(39954), + 56: uint16(39946), + 57: uint16(39940), + 58: uint16(39982), + 59: uint16(39963), + 60: uint16(39973), + 61: uint16(39972), + 62: uint16(39969), + 63: uint16(39984), + 64: uint16(40007), + 65: uint16(39986), + 66: uint16(40006), + 67: uint16(39998), + 68: uint16(40026), + 69: uint16(40032), + 70: uint16(40039), + 71: uint16(40054), + 72: uint16(40056), + 73: uint16(40167), + 74: uint16(40172), + 75: uint16(40176), + 76: uint16(40201), + 77: uint16(40200), + 78: uint16(40171), + 79: uint16(40195), + 80: uint16(40198), + 81: uint16(40234), + 82: uint16(40230), + 83: uint16(40367), + 84: uint16(40227), + 85: uint16(40223), + 86: uint16(40260), + 87: uint16(40213), + 88: uint16(40210), + 89: uint16(40257), + 90: uint16(40255), + 91: uint16(40254), + 92: uint16(40262), + 93: uint16(40264), + }, + 82: { + 0: uint16(40285), + 1: uint16(40286), + 2: uint16(40292), + 3: uint16(40273), + 4: uint16(40272), + 5: uint16(40281), + 6: uint16(40306), + 7: uint16(40329), + 8: uint16(40327), + 9: uint16(40363), + 10: uint16(40303), + 11: uint16(40314), + 12: uint16(40346), + 13: uint16(40356), + 14: uint16(40361), + 15: uint16(40370), + 16: uint16(40388), + 17: uint16(40385), + 18: uint16(40379), + 19: uint16(40376), + 20: uint16(40378), + 21: uint16(40390), + 22: uint16(40399), + 23: uint16(40386), + 24: uint16(40409), + 25: uint16(40403), + 26: uint16(40440), + 27: uint16(40422), + 28: uint16(40429), + 29: uint16(40431), + 30: uint16(40445), + 31: uint16(40474), + 32: uint16(40475), + 33: uint16(40478), + 34: uint16(40565), + 35: uint16(40569), + 36: uint16(40573), + 37: uint16(40577), + 38: uint16(40584), + 39: uint16(40587), + 40: uint16(40588), + 41: uint16(40594), + 42: uint16(40597), + 43: uint16(40593), + 44: uint16(40605), + 45: uint16(40613), + 46: uint16(40617), + 47: uint16(40632), + 48: uint16(40618), + 49: uint16(40621), + 50: uint16(38753), + 51: uint16(40652), + 52: uint16(40654), + 53: uint16(40655), + 54: uint16(40656), + 55: uint16(40660), + 56: uint16(40668), + 57: uint16(40670), + 58: uint16(40669), + 59: uint16(40672), + 60: uint16(40677), + 61: uint16(40680), + 62: uint16(40687), + 63: uint16(40692), + 64: uint16(40694), + 65: uint16(40695), + 66: uint16(40697), + 67: uint16(40699), + 68: uint16(40700), + 69: uint16(40701), + 70: uint16(40711), + 71: uint16(40712), + 72: uint16(30391), + 73: uint16(40725), + 74: uint16(40737), + 75: uint16(40748), + 76: uint16(40766), + 77: uint16(40778), + 78: uint16(40786), + 79: uint16(40788), + 80: uint16(40803), + 81: uint16(40799), + 82: uint16(40800), + 83: uint16(40801), + 84: uint16(40806), + 85: uint16(40807), + 86: uint16(40812), + 87: uint16(40810), + 88: uint16(40823), + 89: uint16(40818), + 90: uint16(40822), + 91: uint16(40853), + 92: uint16(40860), + 93: uint16(40864), + }, + 83: { + 0: uint16(22575), + 1: uint16(27079), + 2: uint16(36953), + 3: uint16(29796), + 4: uint16(20956), + 5: uint16(29081), + }, +} + +var _gb18030 = [126][190]uint16{ + 0: { + 0: uint16(19970), + 1: uint16(19972), + 2: uint16(19973), + 3: uint16(19974), + 4: uint16(19983), + 5: uint16(19986), + 6: uint16(19991), + 7: uint16(19999), + 8: uint16(20000), + 9: uint16(20001), + 10: uint16(20003), + 11: uint16(20006), + 12: uint16(20009), + 13: uint16(20014), + 14: uint16(20015), + 15: uint16(20017), + 16: uint16(20019), + 17: uint16(20021), + 18: uint16(20023), + 19: uint16(20028), + 20: uint16(20032), + 21: uint16(20033), + 22: uint16(20034), + 23: uint16(20036), + 24: uint16(20038), + 25: uint16(20042), + 26: uint16(20049), + 27: uint16(20053), + 28: uint16(20055), + 29: uint16(20058), + 30: uint16(20059), + 31: uint16(20066), + 32: uint16(20067), + 33: uint16(20068), + 34: uint16(20069), + 35: uint16(20071), + 36: uint16(20072), + 37: uint16(20074), + 38: uint16(20075), + 39: uint16(20076), + 40: uint16(20077), + 41: uint16(20078), + 42: uint16(20079), + 43: uint16(20082), + 44: uint16(20084), + 45: uint16(20085), + 46: uint16(20086), + 47: uint16(20087), + 48: uint16(20088), + 49: uint16(20089), + 50: uint16(20090), + 51: uint16(20091), + 52: uint16(20092), + 53: uint16(20093), + 54: uint16(20095), + 55: uint16(20096), + 56: uint16(20097), + 57: uint16(20098), + 58: uint16(20099), + 59: uint16(20100), + 60: uint16(20101), + 61: uint16(20103), + 62: uint16(20106), + 63: uint16(20112), + 64: uint16(20118), + 65: uint16(20119), + 66: uint16(20121), + 67: uint16(20124), + 68: uint16(20125), + 69: uint16(20126), + 70: uint16(20131), + 71: uint16(20138), + 72: uint16(20143), + 73: uint16(20144), + 74: uint16(20145), + 75: uint16(20148), + 76: uint16(20150), + 77: uint16(20151), + 78: uint16(20152), + 79: uint16(20153), + 80: uint16(20156), + 81: uint16(20157), + 82: uint16(20158), + 83: uint16(20168), + 84: uint16(20172), + 85: uint16(20175), + 86: uint16(20176), + 87: uint16(20178), + 88: uint16(20186), + 89: uint16(20187), + 90: uint16(20188), + 91: uint16(20192), + 92: uint16(20194), + 93: uint16(20198), + 94: uint16(20199), + 95: uint16(20201), + 96: uint16(20205), + 97: uint16(20206), + 98: uint16(20207), + 99: uint16(20209), + 100: uint16(20212), + 101: uint16(20216), + 102: uint16(20217), + 103: uint16(20218), + 104: uint16(20220), + 105: uint16(20222), + 106: uint16(20224), + 107: uint16(20226), + 108: uint16(20227), + 109: uint16(20228), + 110: uint16(20229), + 111: uint16(20230), + 112: uint16(20231), + 113: uint16(20232), + 114: uint16(20235), + 115: uint16(20236), + 116: uint16(20242), + 117: uint16(20243), + 118: uint16(20244), + 119: uint16(20245), + 120: uint16(20246), + 121: uint16(20252), + 122: uint16(20253), + 123: uint16(20257), + 124: uint16(20259), + 125: uint16(20264), + 126: uint16(20265), + 127: uint16(20268), + 128: uint16(20269), + 129: uint16(20270), + 130: uint16(20273), + 131: uint16(20275), + 132: uint16(20277), + 133: uint16(20279), + 134: uint16(20281), + 135: uint16(20283), + 136: uint16(20286), + 137: uint16(20287), + 138: uint16(20288), + 139: uint16(20289), + 140: uint16(20290), + 141: uint16(20292), + 142: uint16(20293), + 143: uint16(20295), + 144: uint16(20296), + 145: uint16(20297), + 146: uint16(20298), + 147: uint16(20299), + 148: uint16(20300), + 149: uint16(20306), + 150: uint16(20308), + 151: uint16(20310), + 152: uint16(20321), + 153: uint16(20322), + 154: uint16(20326), + 155: uint16(20328), + 156: uint16(20330), + 157: uint16(20331), + 158: uint16(20333), + 159: uint16(20334), + 160: uint16(20337), + 161: uint16(20338), + 162: uint16(20341), + 163: uint16(20343), + 164: uint16(20344), + 165: uint16(20345), + 166: uint16(20346), + 167: uint16(20349), + 168: uint16(20352), + 169: uint16(20353), + 170: uint16(20354), + 171: uint16(20357), + 172: uint16(20358), + 173: uint16(20359), + 174: uint16(20362), + 175: uint16(20364), + 176: uint16(20366), + 177: uint16(20368), + 178: uint16(20370), + 179: uint16(20371), + 180: uint16(20373), + 181: uint16(20374), + 182: uint16(20376), + 183: uint16(20377), + 184: uint16(20378), + 185: uint16(20380), + 186: uint16(20382), + 187: uint16(20383), + 188: uint16(20385), + 189: uint16(20386), + }, + 1: { + 0: uint16(20388), + 1: uint16(20395), + 2: uint16(20397), + 3: uint16(20400), + 4: uint16(20401), + 5: uint16(20402), + 6: uint16(20403), + 7: uint16(20404), + 8: uint16(20406), + 9: uint16(20407), + 10: uint16(20408), + 11: uint16(20409), + 12: uint16(20410), + 13: uint16(20411), + 14: uint16(20412), + 15: uint16(20413), + 16: uint16(20414), + 17: uint16(20416), + 18: uint16(20417), + 19: uint16(20418), + 20: uint16(20422), + 21: uint16(20423), + 22: uint16(20424), + 23: uint16(20425), + 24: uint16(20427), + 25: uint16(20428), + 26: uint16(20429), + 27: uint16(20434), + 28: uint16(20435), + 29: uint16(20436), + 30: uint16(20437), + 31: uint16(20438), + 32: uint16(20441), + 33: uint16(20443), + 34: uint16(20448), + 35: uint16(20450), + 36: uint16(20452), + 37: uint16(20453), + 38: uint16(20455), + 39: uint16(20459), + 40: uint16(20460), + 41: uint16(20464), + 42: uint16(20466), + 43: uint16(20468), + 44: uint16(20469), + 45: uint16(20470), + 46: uint16(20471), + 47: uint16(20473), + 48: uint16(20475), + 49: uint16(20476), + 50: uint16(20477), + 51: uint16(20479), + 52: uint16(20480), + 53: uint16(20481), + 54: uint16(20482), + 55: uint16(20483), + 56: uint16(20484), + 57: uint16(20485), + 58: uint16(20486), + 59: uint16(20487), + 60: uint16(20488), + 61: uint16(20489), + 62: uint16(20490), + 63: uint16(20491), + 64: uint16(20494), + 65: uint16(20496), + 66: uint16(20497), + 67: uint16(20499), + 68: uint16(20501), + 69: uint16(20502), + 70: uint16(20503), + 71: uint16(20507), + 72: uint16(20509), + 73: uint16(20510), + 74: uint16(20512), + 75: uint16(20514), + 76: uint16(20515), + 77: uint16(20516), + 78: uint16(20519), + 79: uint16(20523), + 80: uint16(20527), + 81: uint16(20528), + 82: uint16(20529), + 83: uint16(20530), + 84: uint16(20531), + 85: uint16(20532), + 86: uint16(20533), + 87: uint16(20534), + 88: uint16(20535), + 89: uint16(20536), + 90: uint16(20537), + 91: uint16(20539), + 92: uint16(20541), + 93: uint16(20543), + 94: uint16(20544), + 95: uint16(20545), + 96: uint16(20546), + 97: uint16(20548), + 98: uint16(20549), + 99: uint16(20550), + 100: uint16(20553), + 101: uint16(20554), + 102: uint16(20555), + 103: uint16(20557), + 104: uint16(20560), + 105: uint16(20561), + 106: uint16(20562), + 107: uint16(20563), + 108: uint16(20564), + 109: uint16(20566), + 110: uint16(20567), + 111: uint16(20568), + 112: uint16(20569), + 113: uint16(20571), + 114: uint16(20573), + 115: uint16(20574), + 116: uint16(20575), + 117: uint16(20576), + 118: uint16(20577), + 119: uint16(20578), + 120: uint16(20579), + 121: uint16(20580), + 122: uint16(20582), + 123: uint16(20583), + 124: uint16(20584), + 125: uint16(20585), + 126: uint16(20586), + 127: uint16(20587), + 128: uint16(20589), + 129: uint16(20590), + 130: uint16(20591), + 131: uint16(20592), + 132: uint16(20593), + 133: uint16(20594), + 134: uint16(20595), + 135: uint16(20596), + 136: uint16(20597), + 137: uint16(20600), + 138: uint16(20601), + 139: uint16(20602), + 140: uint16(20604), + 141: uint16(20605), + 142: uint16(20609), + 143: uint16(20610), + 144: uint16(20611), + 145: uint16(20612), + 146: uint16(20614), + 147: uint16(20615), + 148: uint16(20617), + 149: uint16(20618), + 150: uint16(20619), + 151: uint16(20620), + 152: uint16(20622), + 153: uint16(20623), + 154: uint16(20624), + 155: uint16(20625), + 156: uint16(20626), + 157: uint16(20627), + 158: uint16(20628), + 159: uint16(20629), + 160: uint16(20630), + 161: uint16(20631), + 162: uint16(20632), + 163: uint16(20633), + 164: uint16(20634), + 165: uint16(20635), + 166: uint16(20636), + 167: uint16(20637), + 168: uint16(20638), + 169: uint16(20639), + 170: uint16(20640), + 171: uint16(20641), + 172: uint16(20642), + 173: uint16(20644), + 174: uint16(20646), + 175: uint16(20650), + 176: uint16(20651), + 177: uint16(20653), + 178: uint16(20654), + 179: uint16(20655), + 180: uint16(20656), + 181: uint16(20657), + 182: uint16(20659), + 183: uint16(20660), + 184: uint16(20661), + 185: uint16(20662), + 186: uint16(20663), + 187: uint16(20664), + 188: uint16(20665), + 189: uint16(20668), + }, + 2: { + 0: uint16(20669), + 1: uint16(20670), + 2: uint16(20671), + 3: uint16(20672), + 4: uint16(20673), + 5: uint16(20674), + 6: uint16(20675), + 7: uint16(20676), + 8: uint16(20677), + 9: uint16(20678), + 10: uint16(20679), + 11: uint16(20680), + 12: uint16(20681), + 13: uint16(20682), + 14: uint16(20683), + 15: uint16(20684), + 16: uint16(20685), + 17: uint16(20686), + 18: uint16(20688), + 19: uint16(20689), + 20: uint16(20690), + 21: uint16(20691), + 22: uint16(20692), + 23: uint16(20693), + 24: uint16(20695), + 25: uint16(20696), + 26: uint16(20697), + 27: uint16(20699), + 28: uint16(20700), + 29: uint16(20701), + 30: uint16(20702), + 31: uint16(20703), + 32: uint16(20704), + 33: uint16(20705), + 34: uint16(20706), + 35: uint16(20707), + 36: uint16(20708), + 37: uint16(20709), + 38: uint16(20712), + 39: uint16(20713), + 40: uint16(20714), + 41: uint16(20715), + 42: uint16(20719), + 43: uint16(20720), + 44: uint16(20721), + 45: uint16(20722), + 46: uint16(20724), + 47: uint16(20726), + 48: uint16(20727), + 49: uint16(20728), + 50: uint16(20729), + 51: uint16(20730), + 52: uint16(20732), + 53: uint16(20733), + 54: uint16(20734), + 55: uint16(20735), + 56: uint16(20736), + 57: uint16(20737), + 58: uint16(20738), + 59: uint16(20739), + 60: uint16(20740), + 61: uint16(20741), + 62: uint16(20744), + 63: uint16(20745), + 64: uint16(20746), + 65: uint16(20748), + 66: uint16(20749), + 67: uint16(20750), + 68: uint16(20751), + 69: uint16(20752), + 70: uint16(20753), + 71: uint16(20755), + 72: uint16(20756), + 73: uint16(20757), + 74: uint16(20758), + 75: uint16(20759), + 76: uint16(20760), + 77: uint16(20761), + 78: uint16(20762), + 79: uint16(20763), + 80: uint16(20764), + 81: uint16(20765), + 82: uint16(20766), + 83: uint16(20767), + 84: uint16(20768), + 85: uint16(20770), + 86: uint16(20771), + 87: uint16(20772), + 88: uint16(20773), + 89: uint16(20774), + 90: uint16(20775), + 91: uint16(20776), + 92: uint16(20777), + 93: uint16(20778), + 94: uint16(20779), + 95: uint16(20780), + 96: uint16(20781), + 97: uint16(20782), + 98: uint16(20783), + 99: uint16(20784), + 100: uint16(20785), + 101: uint16(20786), + 102: uint16(20787), + 103: uint16(20788), + 104: uint16(20789), + 105: uint16(20790), + 106: uint16(20791), + 107: uint16(20792), + 108: uint16(20793), + 109: uint16(20794), + 110: uint16(20795), + 111: uint16(20796), + 112: uint16(20797), + 113: uint16(20798), + 114: uint16(20802), + 115: uint16(20807), + 116: uint16(20810), + 117: uint16(20812), + 118: uint16(20814), + 119: uint16(20815), + 120: uint16(20816), + 121: uint16(20818), + 122: uint16(20819), + 123: uint16(20823), + 124: uint16(20824), + 125: uint16(20825), + 126: uint16(20827), + 127: uint16(20829), + 128: uint16(20830), + 129: uint16(20831), + 130: uint16(20832), + 131: uint16(20833), + 132: uint16(20835), + 133: uint16(20836), + 134: uint16(20838), + 135: uint16(20839), + 136: uint16(20841), + 137: uint16(20842), + 138: uint16(20847), + 139: uint16(20850), + 140: uint16(20858), + 141: uint16(20862), + 142: uint16(20863), + 143: uint16(20867), + 144: uint16(20868), + 145: uint16(20870), + 146: uint16(20871), + 147: uint16(20874), + 148: uint16(20875), + 149: uint16(20878), + 150: uint16(20879), + 151: uint16(20880), + 152: uint16(20881), + 153: uint16(20883), + 154: uint16(20884), + 155: uint16(20888), + 156: uint16(20890), + 157: uint16(20893), + 158: uint16(20894), + 159: uint16(20895), + 160: uint16(20897), + 161: uint16(20899), + 162: uint16(20902), + 163: uint16(20903), + 164: uint16(20904), + 165: uint16(20905), + 166: uint16(20906), + 167: uint16(20909), + 168: uint16(20910), + 169: uint16(20916), + 170: uint16(20920), + 171: uint16(20921), + 172: uint16(20922), + 173: uint16(20926), + 174: uint16(20927), + 175: uint16(20929), + 176: uint16(20930), + 177: uint16(20931), + 178: uint16(20933), + 179: uint16(20936), + 180: uint16(20938), + 181: uint16(20941), + 182: uint16(20942), + 183: uint16(20944), + 184: uint16(20946), + 185: uint16(20947), + 186: uint16(20948), + 187: uint16(20949), + 188: uint16(20950), + 189: uint16(20951), + }, + 3: { + 0: uint16(20952), + 1: uint16(20953), + 2: uint16(20954), + 3: uint16(20956), + 4: uint16(20958), + 5: uint16(20959), + 6: uint16(20962), + 7: uint16(20963), + 8: uint16(20965), + 9: uint16(20966), + 10: uint16(20967), + 11: uint16(20968), + 12: uint16(20969), + 13: uint16(20970), + 14: uint16(20972), + 15: uint16(20974), + 16: uint16(20977), + 17: uint16(20978), + 18: uint16(20980), + 19: uint16(20983), + 20: uint16(20990), + 21: uint16(20996), + 22: uint16(20997), + 23: uint16(21001), + 24: uint16(21003), + 25: uint16(21004), + 26: uint16(21007), + 27: uint16(21008), + 28: uint16(21011), + 29: uint16(21012), + 30: uint16(21013), + 31: uint16(21020), + 32: uint16(21022), + 33: uint16(21023), + 34: uint16(21025), + 35: uint16(21026), + 36: uint16(21027), + 37: uint16(21029), + 38: uint16(21030), + 39: uint16(21031), + 40: uint16(21034), + 41: uint16(21036), + 42: uint16(21039), + 43: uint16(21041), + 44: uint16(21042), + 45: uint16(21044), + 46: uint16(21045), + 47: uint16(21052), + 48: uint16(21054), + 49: uint16(21060), + 50: uint16(21061), + 51: uint16(21062), + 52: uint16(21063), + 53: uint16(21064), + 54: uint16(21065), + 55: uint16(21067), + 56: uint16(21070), + 57: uint16(21071), + 58: uint16(21074), + 59: uint16(21075), + 60: uint16(21077), + 61: uint16(21079), + 62: uint16(21080), + 63: uint16(21081), + 64: uint16(21082), + 65: uint16(21083), + 66: uint16(21085), + 67: uint16(21087), + 68: uint16(21088), + 69: uint16(21090), + 70: uint16(21091), + 71: uint16(21092), + 72: uint16(21094), + 73: uint16(21096), + 74: uint16(21099), + 75: uint16(21100), + 76: uint16(21101), + 77: uint16(21102), + 78: uint16(21104), + 79: uint16(21105), + 80: uint16(21107), + 81: uint16(21108), + 82: uint16(21109), + 83: uint16(21110), + 84: uint16(21111), + 85: uint16(21112), + 86: uint16(21113), + 87: uint16(21114), + 88: uint16(21115), + 89: uint16(21116), + 90: uint16(21118), + 91: uint16(21120), + 92: uint16(21123), + 93: uint16(21124), + 94: uint16(21125), + 95: uint16(21126), + 96: uint16(21127), + 97: uint16(21129), + 98: uint16(21130), + 99: uint16(21131), + 100: uint16(21132), + 101: uint16(21133), + 102: uint16(21134), + 103: uint16(21135), + 104: uint16(21137), + 105: uint16(21138), + 106: uint16(21140), + 107: uint16(21141), + 108: uint16(21142), + 109: uint16(21143), + 110: uint16(21144), + 111: uint16(21145), + 112: uint16(21146), + 113: uint16(21148), + 114: uint16(21156), + 115: uint16(21157), + 116: uint16(21158), + 117: uint16(21159), + 118: uint16(21166), + 119: uint16(21167), + 120: uint16(21168), + 121: uint16(21172), + 122: uint16(21173), + 123: uint16(21174), + 124: uint16(21175), + 125: uint16(21176), + 126: uint16(21177), + 127: uint16(21178), + 128: uint16(21179), + 129: uint16(21180), + 130: uint16(21181), + 131: uint16(21184), + 132: uint16(21185), + 133: uint16(21186), + 134: uint16(21188), + 135: uint16(21189), + 136: uint16(21190), + 137: uint16(21192), + 138: uint16(21194), + 139: uint16(21196), + 140: uint16(21197), + 141: uint16(21198), + 142: uint16(21199), + 143: uint16(21201), + 144: uint16(21203), + 145: uint16(21204), + 146: uint16(21205), + 147: uint16(21207), + 148: uint16(21209), + 149: uint16(21210), + 150: uint16(21211), + 151: uint16(21212), + 152: uint16(21213), + 153: uint16(21214), + 154: uint16(21216), + 155: uint16(21217), + 156: uint16(21218), + 157: uint16(21219), + 158: uint16(21221), + 159: uint16(21222), + 160: uint16(21223), + 161: uint16(21224), + 162: uint16(21225), + 163: uint16(21226), + 164: uint16(21227), + 165: uint16(21228), + 166: uint16(21229), + 167: uint16(21230), + 168: uint16(21231), + 169: uint16(21233), + 170: uint16(21234), + 171: uint16(21235), + 172: uint16(21236), + 173: uint16(21237), + 174: uint16(21238), + 175: uint16(21239), + 176: uint16(21240), + 177: uint16(21243), + 178: uint16(21244), + 179: uint16(21245), + 180: uint16(21249), + 181: uint16(21250), + 182: uint16(21251), + 183: uint16(21252), + 184: uint16(21255), + 185: uint16(21257), + 186: uint16(21258), + 187: uint16(21259), + 188: uint16(21260), + 189: uint16(21262), + }, + 4: { + 0: uint16(21265), + 1: uint16(21266), + 2: uint16(21267), + 3: uint16(21268), + 4: uint16(21272), + 5: uint16(21275), + 6: uint16(21276), + 7: uint16(21278), + 8: uint16(21279), + 9: uint16(21282), + 10: uint16(21284), + 11: uint16(21285), + 12: uint16(21287), + 13: uint16(21288), + 14: uint16(21289), + 15: uint16(21291), + 16: uint16(21292), + 17: uint16(21293), + 18: uint16(21295), + 19: uint16(21296), + 20: uint16(21297), + 21: uint16(21298), + 22: uint16(21299), + 23: uint16(21300), + 24: uint16(21301), + 25: uint16(21302), + 26: uint16(21303), + 27: uint16(21304), + 28: uint16(21308), + 29: uint16(21309), + 30: uint16(21312), + 31: uint16(21314), + 32: uint16(21316), + 33: uint16(21318), + 34: uint16(21323), + 35: uint16(21324), + 36: uint16(21325), + 37: uint16(21328), + 38: uint16(21332), + 39: uint16(21336), + 40: uint16(21337), + 41: uint16(21339), + 42: uint16(21341), + 43: uint16(21349), + 44: uint16(21352), + 45: uint16(21354), + 46: uint16(21356), + 47: uint16(21357), + 48: uint16(21362), + 49: uint16(21366), + 50: uint16(21369), + 51: uint16(21371), + 52: uint16(21372), + 53: uint16(21373), + 54: uint16(21374), + 55: uint16(21376), + 56: uint16(21377), + 57: uint16(21379), + 58: uint16(21383), + 59: uint16(21384), + 60: uint16(21386), + 61: uint16(21390), + 62: uint16(21391), + 63: uint16(21392), + 64: uint16(21393), + 65: uint16(21394), + 66: uint16(21395), + 67: uint16(21396), + 68: uint16(21398), + 69: uint16(21399), + 70: uint16(21401), + 71: uint16(21403), + 72: uint16(21404), + 73: uint16(21406), + 74: uint16(21408), + 75: uint16(21409), + 76: uint16(21412), + 77: uint16(21415), + 78: uint16(21418), + 79: uint16(21419), + 80: uint16(21420), + 81: uint16(21421), + 82: uint16(21423), + 83: uint16(21424), + 84: uint16(21425), + 85: uint16(21426), + 86: uint16(21427), + 87: uint16(21428), + 88: uint16(21429), + 89: uint16(21431), + 90: uint16(21432), + 91: uint16(21433), + 92: uint16(21434), + 93: uint16(21436), + 94: uint16(21437), + 95: uint16(21438), + 96: uint16(21440), + 97: uint16(21443), + 98: uint16(21444), + 99: uint16(21445), + 100: uint16(21446), + 101: uint16(21447), + 102: uint16(21454), + 103: uint16(21455), + 104: uint16(21456), + 105: uint16(21458), + 106: uint16(21459), + 107: uint16(21461), + 108: uint16(21466), + 109: uint16(21468), + 110: uint16(21469), + 111: uint16(21470), + 112: uint16(21473), + 113: uint16(21474), + 114: uint16(21479), + 115: uint16(21492), + 116: uint16(21498), + 117: uint16(21502), + 118: uint16(21503), + 119: uint16(21504), + 120: uint16(21506), + 121: uint16(21509), + 122: uint16(21511), + 123: uint16(21515), + 124: uint16(21524), + 125: uint16(21528), + 126: uint16(21529), + 127: uint16(21530), + 128: uint16(21532), + 129: uint16(21538), + 130: uint16(21540), + 131: uint16(21541), + 132: uint16(21546), + 133: uint16(21552), + 134: uint16(21555), + 135: uint16(21558), + 136: uint16(21559), + 137: uint16(21562), + 138: uint16(21565), + 139: uint16(21567), + 140: uint16(21569), + 141: uint16(21570), + 142: uint16(21572), + 143: uint16(21573), + 144: uint16(21575), + 145: uint16(21577), + 146: uint16(21580), + 147: uint16(21581), + 148: uint16(21582), + 149: uint16(21583), + 150: uint16(21585), + 151: uint16(21594), + 152: uint16(21597), + 153: uint16(21598), + 154: uint16(21599), + 155: uint16(21600), + 156: uint16(21601), + 157: uint16(21603), + 158: uint16(21605), + 159: uint16(21607), + 160: uint16(21609), + 161: uint16(21610), + 162: uint16(21611), + 163: uint16(21612), + 164: uint16(21613), + 165: uint16(21614), + 166: uint16(21615), + 167: uint16(21616), + 168: uint16(21620), + 169: uint16(21625), + 170: uint16(21626), + 171: uint16(21630), + 172: uint16(21631), + 173: uint16(21633), + 174: uint16(21635), + 175: uint16(21637), + 176: uint16(21639), + 177: uint16(21640), + 178: uint16(21641), + 179: uint16(21642), + 180: uint16(21645), + 181: uint16(21649), + 182: uint16(21651), + 183: uint16(21655), + 184: uint16(21656), + 185: uint16(21660), + 186: uint16(21662), + 187: uint16(21663), + 188: uint16(21664), + 189: uint16(21665), + }, + 5: { + 0: uint16(21666), + 1: uint16(21669), + 2: uint16(21678), + 3: uint16(21680), + 4: uint16(21682), + 5: uint16(21685), + 6: uint16(21686), + 7: uint16(21687), + 8: uint16(21689), + 9: uint16(21690), + 10: uint16(21692), + 11: uint16(21694), + 12: uint16(21699), + 13: uint16(21701), + 14: uint16(21706), + 15: uint16(21707), + 16: uint16(21718), + 17: uint16(21720), + 18: uint16(21723), + 19: uint16(21728), + 20: uint16(21729), + 21: uint16(21730), + 22: uint16(21731), + 23: uint16(21732), + 24: uint16(21739), + 25: uint16(21740), + 26: uint16(21743), + 27: uint16(21744), + 28: uint16(21745), + 29: uint16(21748), + 30: uint16(21749), + 31: uint16(21750), + 32: uint16(21751), + 33: uint16(21752), + 34: uint16(21753), + 35: uint16(21755), + 36: uint16(21758), + 37: uint16(21760), + 38: uint16(21762), + 39: uint16(21763), + 40: uint16(21764), + 41: uint16(21765), + 42: uint16(21768), + 43: uint16(21770), + 44: uint16(21771), + 45: uint16(21772), + 46: uint16(21773), + 47: uint16(21774), + 48: uint16(21778), + 49: uint16(21779), + 50: uint16(21781), + 51: uint16(21782), + 52: uint16(21783), + 53: uint16(21784), + 54: uint16(21785), + 55: uint16(21786), + 56: uint16(21788), + 57: uint16(21789), + 58: uint16(21790), + 59: uint16(21791), + 60: uint16(21793), + 61: uint16(21797), + 62: uint16(21798), + 63: uint16(21800), + 64: uint16(21801), + 65: uint16(21803), + 66: uint16(21805), + 67: uint16(21810), + 68: uint16(21812), + 69: uint16(21813), + 70: uint16(21814), + 71: uint16(21816), + 72: uint16(21817), + 73: uint16(21818), + 74: uint16(21819), + 75: uint16(21821), + 76: uint16(21824), + 77: uint16(21826), + 78: uint16(21829), + 79: uint16(21831), + 80: uint16(21832), + 81: uint16(21835), + 82: uint16(21836), + 83: uint16(21837), + 84: uint16(21838), + 85: uint16(21839), + 86: uint16(21841), + 87: uint16(21842), + 88: uint16(21843), + 89: uint16(21844), + 90: uint16(21847), + 91: uint16(21848), + 92: uint16(21849), + 93: uint16(21850), + 94: uint16(21851), + 95: uint16(21853), + 96: uint16(21854), + 97: uint16(21855), + 98: uint16(21856), + 99: uint16(21858), + 100: uint16(21859), + 101: uint16(21864), + 102: uint16(21865), + 103: uint16(21867), + 104: uint16(21871), + 105: uint16(21872), + 106: uint16(21873), + 107: uint16(21874), + 108: uint16(21875), + 109: uint16(21876), + 110: uint16(21881), + 111: uint16(21882), + 112: uint16(21885), + 113: uint16(21887), + 114: uint16(21893), + 115: uint16(21894), + 116: uint16(21900), + 117: uint16(21901), + 118: uint16(21902), + 119: uint16(21904), + 120: uint16(21906), + 121: uint16(21907), + 122: uint16(21909), + 123: uint16(21910), + 124: uint16(21911), + 125: uint16(21914), + 126: uint16(21915), + 127: uint16(21918), + 128: uint16(21920), + 129: uint16(21921), + 130: uint16(21922), + 131: uint16(21923), + 132: uint16(21924), + 133: uint16(21925), + 134: uint16(21926), + 135: uint16(21928), + 136: uint16(21929), + 137: uint16(21930), + 138: uint16(21931), + 139: uint16(21932), + 140: uint16(21933), + 141: uint16(21934), + 142: uint16(21935), + 143: uint16(21936), + 144: uint16(21938), + 145: uint16(21940), + 146: uint16(21942), + 147: uint16(21944), + 148: uint16(21946), + 149: uint16(21948), + 150: uint16(21951), + 151: uint16(21952), + 152: uint16(21953), + 153: uint16(21954), + 154: uint16(21955), + 155: uint16(21958), + 156: uint16(21959), + 157: uint16(21960), + 158: uint16(21962), + 159: uint16(21963), + 160: uint16(21966), + 161: uint16(21967), + 162: uint16(21968), + 163: uint16(21973), + 164: uint16(21975), + 165: uint16(21976), + 166: uint16(21977), + 167: uint16(21978), + 168: uint16(21979), + 169: uint16(21982), + 170: uint16(21984), + 171: uint16(21986), + 172: uint16(21991), + 173: uint16(21993), + 174: uint16(21997), + 175: uint16(21998), + 176: uint16(22000), + 177: uint16(22001), + 178: uint16(22004), + 179: uint16(22006), + 180: uint16(22008), + 181: uint16(22009), + 182: uint16(22010), + 183: uint16(22011), + 184: uint16(22012), + 185: uint16(22015), + 186: uint16(22018), + 187: uint16(22019), + 188: uint16(22020), + 189: uint16(22021), + }, + 6: { + 0: uint16(22022), + 1: uint16(22023), + 2: uint16(22026), + 3: uint16(22027), + 4: uint16(22029), + 5: uint16(22032), + 6: uint16(22033), + 7: uint16(22034), + 8: uint16(22035), + 9: uint16(22036), + 10: uint16(22037), + 11: uint16(22038), + 12: uint16(22039), + 13: uint16(22041), + 14: uint16(22042), + 15: uint16(22044), + 16: uint16(22045), + 17: uint16(22048), + 18: uint16(22049), + 19: uint16(22050), + 20: uint16(22053), + 21: uint16(22054), + 22: uint16(22056), + 23: uint16(22057), + 24: uint16(22058), + 25: uint16(22059), + 26: uint16(22062), + 27: uint16(22063), + 28: uint16(22064), + 29: uint16(22067), + 30: uint16(22069), + 31: uint16(22071), + 32: uint16(22072), + 33: uint16(22074), + 34: uint16(22076), + 35: uint16(22077), + 36: uint16(22078), + 37: uint16(22080), + 38: uint16(22081), + 39: uint16(22082), + 40: uint16(22083), + 41: uint16(22084), + 42: uint16(22085), + 43: uint16(22086), + 44: uint16(22087), + 45: uint16(22088), + 46: uint16(22089), + 47: uint16(22090), + 48: uint16(22091), + 49: uint16(22095), + 50: uint16(22096), + 51: uint16(22097), + 52: uint16(22098), + 53: uint16(22099), + 54: uint16(22101), + 55: uint16(22102), + 56: uint16(22106), + 57: uint16(22107), + 58: uint16(22109), + 59: uint16(22110), + 60: uint16(22111), + 61: uint16(22112), + 62: uint16(22113), + 63: uint16(22115), + 64: uint16(22117), + 65: uint16(22118), + 66: uint16(22119), + 67: uint16(22125), + 68: uint16(22126), + 69: uint16(22127), + 70: uint16(22128), + 71: uint16(22130), + 72: uint16(22131), + 73: uint16(22132), + 74: uint16(22133), + 75: uint16(22135), + 76: uint16(22136), + 77: uint16(22137), + 78: uint16(22138), + 79: uint16(22141), + 80: uint16(22142), + 81: uint16(22143), + 82: uint16(22144), + 83: uint16(22145), + 84: uint16(22146), + 85: uint16(22147), + 86: uint16(22148), + 87: uint16(22151), + 88: uint16(22152), + 89: uint16(22153), + 90: uint16(22154), + 91: uint16(22155), + 92: uint16(22156), + 93: uint16(22157), + 94: uint16(22160), + 95: uint16(22161), + 96: uint16(22162), + 97: uint16(22164), + 98: uint16(22165), + 99: uint16(22166), + 100: uint16(22167), + 101: uint16(22168), + 102: uint16(22169), + 103: uint16(22170), + 104: uint16(22171), + 105: uint16(22172), + 106: uint16(22173), + 107: uint16(22174), + 108: uint16(22175), + 109: uint16(22176), + 110: uint16(22177), + 111: uint16(22178), + 112: uint16(22180), + 113: uint16(22181), + 114: uint16(22182), + 115: uint16(22183), + 116: uint16(22184), + 117: uint16(22185), + 118: uint16(22186), + 119: uint16(22187), + 120: uint16(22188), + 121: uint16(22189), + 122: uint16(22190), + 123: uint16(22192), + 124: uint16(22193), + 125: uint16(22194), + 126: uint16(22195), + 127: uint16(22196), + 128: uint16(22197), + 129: uint16(22198), + 130: uint16(22200), + 131: uint16(22201), + 132: uint16(22202), + 133: uint16(22203), + 134: uint16(22205), + 135: uint16(22206), + 136: uint16(22207), + 137: uint16(22208), + 138: uint16(22209), + 139: uint16(22210), + 140: uint16(22211), + 141: uint16(22212), + 142: uint16(22213), + 143: uint16(22214), + 144: uint16(22215), + 145: uint16(22216), + 146: uint16(22217), + 147: uint16(22219), + 148: uint16(22220), + 149: uint16(22221), + 150: uint16(22222), + 151: uint16(22223), + 152: uint16(22224), + 153: uint16(22225), + 154: uint16(22226), + 155: uint16(22227), + 156: uint16(22229), + 157: uint16(22230), + 158: uint16(22232), + 159: uint16(22233), + 160: uint16(22236), + 161: uint16(22243), + 162: uint16(22245), + 163: uint16(22246), + 164: uint16(22247), + 165: uint16(22248), + 166: uint16(22249), + 167: uint16(22250), + 168: uint16(22252), + 169: uint16(22254), + 170: uint16(22255), + 171: uint16(22258), + 172: uint16(22259), + 173: uint16(22262), + 174: uint16(22263), + 175: uint16(22264), + 176: uint16(22267), + 177: uint16(22268), + 178: uint16(22272), + 179: uint16(22273), + 180: uint16(22274), + 181: uint16(22277), + 182: uint16(22279), + 183: uint16(22283), + 184: uint16(22284), + 185: uint16(22285), + 186: uint16(22286), + 187: uint16(22287), + 188: uint16(22288), + 189: uint16(22289), + }, + 7: { + 0: uint16(22290), + 1: uint16(22291), + 2: uint16(22292), + 3: uint16(22293), + 4: uint16(22294), + 5: uint16(22295), + 6: uint16(22296), + 7: uint16(22297), + 8: uint16(22298), + 9: uint16(22299), + 10: uint16(22301), + 11: uint16(22302), + 12: uint16(22304), + 13: uint16(22305), + 14: uint16(22306), + 15: uint16(22308), + 16: uint16(22309), + 17: uint16(22310), + 18: uint16(22311), + 19: uint16(22315), + 20: uint16(22321), + 21: uint16(22322), + 22: uint16(22324), + 23: uint16(22325), + 24: uint16(22326), + 25: uint16(22327), + 26: uint16(22328), + 27: uint16(22332), + 28: uint16(22333), + 29: uint16(22335), + 30: uint16(22337), + 31: uint16(22339), + 32: uint16(22340), + 33: uint16(22341), + 34: uint16(22342), + 35: uint16(22344), + 36: uint16(22345), + 37: uint16(22347), + 38: uint16(22354), + 39: uint16(22355), + 40: uint16(22356), + 41: uint16(22357), + 42: uint16(22358), + 43: uint16(22360), + 44: uint16(22361), + 45: uint16(22370), + 46: uint16(22371), + 47: uint16(22373), + 48: uint16(22375), + 49: uint16(22380), + 50: uint16(22382), + 51: uint16(22384), + 52: uint16(22385), + 53: uint16(22386), + 54: uint16(22388), + 55: uint16(22389), + 56: uint16(22392), + 57: uint16(22393), + 58: uint16(22394), + 59: uint16(22397), + 60: uint16(22398), + 61: uint16(22399), + 62: uint16(22400), + 63: uint16(22401), + 64: uint16(22407), + 65: uint16(22408), + 66: uint16(22409), + 67: uint16(22410), + 68: uint16(22413), + 69: uint16(22414), + 70: uint16(22415), + 71: uint16(22416), + 72: uint16(22417), + 73: uint16(22420), + 74: uint16(22421), + 75: uint16(22422), + 76: uint16(22423), + 77: uint16(22424), + 78: uint16(22425), + 79: uint16(22426), + 80: uint16(22428), + 81: uint16(22429), + 82: uint16(22430), + 83: uint16(22431), + 84: uint16(22437), + 85: uint16(22440), + 86: uint16(22442), + 87: uint16(22444), + 88: uint16(22447), + 89: uint16(22448), + 90: uint16(22449), + 91: uint16(22451), + 92: uint16(22453), + 93: uint16(22454), + 94: uint16(22455), + 95: uint16(22457), + 96: uint16(22458), + 97: uint16(22459), + 98: uint16(22460), + 99: uint16(22461), + 100: uint16(22462), + 101: uint16(22463), + 102: uint16(22464), + 103: uint16(22465), + 104: uint16(22468), + 105: uint16(22469), + 106: uint16(22470), + 107: uint16(22471), + 108: uint16(22472), + 109: uint16(22473), + 110: uint16(22474), + 111: uint16(22476), + 112: uint16(22477), + 113: uint16(22480), + 114: uint16(22481), + 115: uint16(22483), + 116: uint16(22486), + 117: uint16(22487), + 118: uint16(22491), + 119: uint16(22492), + 120: uint16(22494), + 121: uint16(22497), + 122: uint16(22498), + 123: uint16(22499), + 124: uint16(22501), + 125: uint16(22502), + 126: uint16(22503), + 127: uint16(22504), + 128: uint16(22505), + 129: uint16(22506), + 130: uint16(22507), + 131: uint16(22508), + 132: uint16(22510), + 133: uint16(22512), + 134: uint16(22513), + 135: uint16(22514), + 136: uint16(22515), + 137: uint16(22517), + 138: uint16(22518), + 139: uint16(22519), + 140: uint16(22523), + 141: uint16(22524), + 142: uint16(22526), + 143: uint16(22527), + 144: uint16(22529), + 145: uint16(22531), + 146: uint16(22532), + 147: uint16(22533), + 148: uint16(22536), + 149: uint16(22537), + 150: uint16(22538), + 151: uint16(22540), + 152: uint16(22542), + 153: uint16(22543), + 154: uint16(22544), + 155: uint16(22546), + 156: uint16(22547), + 157: uint16(22548), + 158: uint16(22550), + 159: uint16(22551), + 160: uint16(22552), + 161: uint16(22554), + 162: uint16(22555), + 163: uint16(22556), + 164: uint16(22557), + 165: uint16(22559), + 166: uint16(22562), + 167: uint16(22563), + 168: uint16(22565), + 169: uint16(22566), + 170: uint16(22567), + 171: uint16(22568), + 172: uint16(22569), + 173: uint16(22571), + 174: uint16(22572), + 175: uint16(22573), + 176: uint16(22574), + 177: uint16(22575), + 178: uint16(22577), + 179: uint16(22578), + 180: uint16(22579), + 181: uint16(22580), + 182: uint16(22582), + 183: uint16(22583), + 184: uint16(22584), + 185: uint16(22585), + 186: uint16(22586), + 187: uint16(22587), + 188: uint16(22588), + 189: uint16(22589), + }, + 8: { + 0: uint16(22590), + 1: uint16(22591), + 2: uint16(22592), + 3: uint16(22593), + 4: uint16(22594), + 5: uint16(22595), + 6: uint16(22597), + 7: uint16(22598), + 8: uint16(22599), + 9: uint16(22600), + 10: uint16(22601), + 11: uint16(22602), + 12: uint16(22603), + 13: uint16(22606), + 14: uint16(22607), + 15: uint16(22608), + 16: uint16(22610), + 17: uint16(22611), + 18: uint16(22613), + 19: uint16(22614), + 20: uint16(22615), + 21: uint16(22617), + 22: uint16(22618), + 23: uint16(22619), + 24: uint16(22620), + 25: uint16(22621), + 26: uint16(22623), + 27: uint16(22624), + 28: uint16(22625), + 29: uint16(22626), + 30: uint16(22627), + 31: uint16(22628), + 32: uint16(22630), + 33: uint16(22631), + 34: uint16(22632), + 35: uint16(22633), + 36: uint16(22634), + 37: uint16(22637), + 38: uint16(22638), + 39: uint16(22639), + 40: uint16(22640), + 41: uint16(22641), + 42: uint16(22642), + 43: uint16(22643), + 44: uint16(22644), + 45: uint16(22645), + 46: uint16(22646), + 47: uint16(22647), + 48: uint16(22648), + 49: uint16(22649), + 50: uint16(22650), + 51: uint16(22651), + 52: uint16(22652), + 53: uint16(22653), + 54: uint16(22655), + 55: uint16(22658), + 56: uint16(22660), + 57: uint16(22662), + 58: uint16(22663), + 59: uint16(22664), + 60: uint16(22666), + 61: uint16(22667), + 62: uint16(22668), + 63: uint16(22669), + 64: uint16(22670), + 65: uint16(22671), + 66: uint16(22672), + 67: uint16(22673), + 68: uint16(22676), + 69: uint16(22677), + 70: uint16(22678), + 71: uint16(22679), + 72: uint16(22680), + 73: uint16(22683), + 74: uint16(22684), + 75: uint16(22685), + 76: uint16(22688), + 77: uint16(22689), + 78: uint16(22690), + 79: uint16(22691), + 80: uint16(22692), + 81: uint16(22693), + 82: uint16(22694), + 83: uint16(22695), + 84: uint16(22698), + 85: uint16(22699), + 86: uint16(22700), + 87: uint16(22701), + 88: uint16(22702), + 89: uint16(22703), + 90: uint16(22704), + 91: uint16(22705), + 92: uint16(22706), + 93: uint16(22707), + 94: uint16(22708), + 95: uint16(22709), + 96: uint16(22710), + 97: uint16(22711), + 98: uint16(22712), + 99: uint16(22713), + 100: uint16(22714), + 101: uint16(22715), + 102: uint16(22717), + 103: uint16(22718), + 104: uint16(22719), + 105: uint16(22720), + 106: uint16(22722), + 107: uint16(22723), + 108: uint16(22724), + 109: uint16(22726), + 110: uint16(22727), + 111: uint16(22728), + 112: uint16(22729), + 113: uint16(22730), + 114: uint16(22731), + 115: uint16(22732), + 116: uint16(22733), + 117: uint16(22734), + 118: uint16(22735), + 119: uint16(22736), + 120: uint16(22738), + 121: uint16(22739), + 122: uint16(22740), + 123: uint16(22742), + 124: uint16(22743), + 125: uint16(22744), + 126: uint16(22745), + 127: uint16(22746), + 128: uint16(22747), + 129: uint16(22748), + 130: uint16(22749), + 131: uint16(22750), + 132: uint16(22751), + 133: uint16(22752), + 134: uint16(22753), + 135: uint16(22754), + 136: uint16(22755), + 137: uint16(22757), + 138: uint16(22758), + 139: uint16(22759), + 140: uint16(22760), + 141: uint16(22761), + 142: uint16(22762), + 143: uint16(22765), + 144: uint16(22767), + 145: uint16(22769), + 146: uint16(22770), + 147: uint16(22772), + 148: uint16(22773), + 149: uint16(22775), + 150: uint16(22776), + 151: uint16(22778), + 152: uint16(22779), + 153: uint16(22780), + 154: uint16(22781), + 155: uint16(22782), + 156: uint16(22783), + 157: uint16(22784), + 158: uint16(22785), + 159: uint16(22787), + 160: uint16(22789), + 161: uint16(22790), + 162: uint16(22792), + 163: uint16(22793), + 164: uint16(22794), + 165: uint16(22795), + 166: uint16(22796), + 167: uint16(22798), + 168: uint16(22800), + 169: uint16(22801), + 170: uint16(22802), + 171: uint16(22803), + 172: uint16(22807), + 173: uint16(22808), + 174: uint16(22811), + 175: uint16(22813), + 176: uint16(22814), + 177: uint16(22816), + 178: uint16(22817), + 179: uint16(22818), + 180: uint16(22819), + 181: uint16(22822), + 182: uint16(22824), + 183: uint16(22828), + 184: uint16(22832), + 185: uint16(22834), + 186: uint16(22835), + 187: uint16(22837), + 188: uint16(22838), + 189: uint16(22843), + }, + 9: { + 0: uint16(22845), + 1: uint16(22846), + 2: uint16(22847), + 3: uint16(22848), + 4: uint16(22851), + 5: uint16(22853), + 6: uint16(22854), + 7: uint16(22858), + 8: uint16(22860), + 9: uint16(22861), + 10: uint16(22864), + 11: uint16(22866), + 12: uint16(22867), + 13: uint16(22873), + 14: uint16(22875), + 15: uint16(22876), + 16: uint16(22877), + 17: uint16(22878), + 18: uint16(22879), + 19: uint16(22881), + 20: uint16(22883), + 21: uint16(22884), + 22: uint16(22886), + 23: uint16(22887), + 24: uint16(22888), + 25: uint16(22889), + 26: uint16(22890), + 27: uint16(22891), + 28: uint16(22892), + 29: uint16(22893), + 30: uint16(22894), + 31: uint16(22895), + 32: uint16(22896), + 33: uint16(22897), + 34: uint16(22898), + 35: uint16(22901), + 36: uint16(22903), + 37: uint16(22906), + 38: uint16(22907), + 39: uint16(22908), + 40: uint16(22910), + 41: uint16(22911), + 42: uint16(22912), + 43: uint16(22917), + 44: uint16(22921), + 45: uint16(22923), + 46: uint16(22924), + 47: uint16(22926), + 48: uint16(22927), + 49: uint16(22928), + 50: uint16(22929), + 51: uint16(22932), + 52: uint16(22933), + 53: uint16(22936), + 54: uint16(22938), + 55: uint16(22939), + 56: uint16(22940), + 57: uint16(22941), + 58: uint16(22943), + 59: uint16(22944), + 60: uint16(22945), + 61: uint16(22946), + 62: uint16(22950), + 63: uint16(22951), + 64: uint16(22956), + 65: uint16(22957), + 66: uint16(22960), + 67: uint16(22961), + 68: uint16(22963), + 69: uint16(22964), + 70: uint16(22965), + 71: uint16(22966), + 72: uint16(22967), + 73: uint16(22968), + 74: uint16(22970), + 75: uint16(22972), + 76: uint16(22973), + 77: uint16(22975), + 78: uint16(22976), + 79: uint16(22977), + 80: uint16(22978), + 81: uint16(22979), + 82: uint16(22980), + 83: uint16(22981), + 84: uint16(22983), + 85: uint16(22984), + 86: uint16(22985), + 87: uint16(22988), + 88: uint16(22989), + 89: uint16(22990), + 90: uint16(22991), + 91: uint16(22997), + 92: uint16(22998), + 93: uint16(23001), + 94: uint16(23003), + 95: uint16(23006), + 96: uint16(23007), + 97: uint16(23008), + 98: uint16(23009), + 99: uint16(23010), + 100: uint16(23012), + 101: uint16(23014), + 102: uint16(23015), + 103: uint16(23017), + 104: uint16(23018), + 105: uint16(23019), + 106: uint16(23021), + 107: uint16(23022), + 108: uint16(23023), + 109: uint16(23024), + 110: uint16(23025), + 111: uint16(23026), + 112: uint16(23027), + 113: uint16(23028), + 114: uint16(23029), + 115: uint16(23030), + 116: uint16(23031), + 117: uint16(23032), + 118: uint16(23034), + 119: uint16(23036), + 120: uint16(23037), + 121: uint16(23038), + 122: uint16(23040), + 123: uint16(23042), + 124: uint16(23050), + 125: uint16(23051), + 126: uint16(23053), + 127: uint16(23054), + 128: uint16(23055), + 129: uint16(23056), + 130: uint16(23058), + 131: uint16(23060), + 132: uint16(23061), + 133: uint16(23062), + 134: uint16(23063), + 135: uint16(23065), + 136: uint16(23066), + 137: uint16(23067), + 138: uint16(23069), + 139: uint16(23070), + 140: uint16(23073), + 141: uint16(23074), + 142: uint16(23076), + 143: uint16(23078), + 144: uint16(23079), + 145: uint16(23080), + 146: uint16(23082), + 147: uint16(23083), + 148: uint16(23084), + 149: uint16(23085), + 150: uint16(23086), + 151: uint16(23087), + 152: uint16(23088), + 153: uint16(23091), + 154: uint16(23093), + 155: uint16(23095), + 156: uint16(23096), + 157: uint16(23097), + 158: uint16(23098), + 159: uint16(23099), + 160: uint16(23101), + 161: uint16(23102), + 162: uint16(23103), + 163: uint16(23105), + 164: uint16(23106), + 165: uint16(23107), + 166: uint16(23108), + 167: uint16(23109), + 168: uint16(23111), + 169: uint16(23112), + 170: uint16(23115), + 171: uint16(23116), + 172: uint16(23117), + 173: uint16(23118), + 174: uint16(23119), + 175: uint16(23120), + 176: uint16(23121), + 177: uint16(23122), + 178: uint16(23123), + 179: uint16(23124), + 180: uint16(23126), + 181: uint16(23127), + 182: uint16(23128), + 183: uint16(23129), + 184: uint16(23131), + 185: uint16(23132), + 186: uint16(23133), + 187: uint16(23134), + 188: uint16(23135), + 189: uint16(23136), + }, + 10: { + 0: uint16(23137), + 1: uint16(23139), + 2: uint16(23140), + 3: uint16(23141), + 4: uint16(23142), + 5: uint16(23144), + 6: uint16(23145), + 7: uint16(23147), + 8: uint16(23148), + 9: uint16(23149), + 10: uint16(23150), + 11: uint16(23151), + 12: uint16(23152), + 13: uint16(23153), + 14: uint16(23154), + 15: uint16(23155), + 16: uint16(23160), + 17: uint16(23161), + 18: uint16(23163), + 19: uint16(23164), + 20: uint16(23165), + 21: uint16(23166), + 22: uint16(23168), + 23: uint16(23169), + 24: uint16(23170), + 25: uint16(23171), + 26: uint16(23172), + 27: uint16(23173), + 28: uint16(23174), + 29: uint16(23175), + 30: uint16(23176), + 31: uint16(23177), + 32: uint16(23178), + 33: uint16(23179), + 34: uint16(23180), + 35: uint16(23181), + 36: uint16(23182), + 37: uint16(23183), + 38: uint16(23184), + 39: uint16(23185), + 40: uint16(23187), + 41: uint16(23188), + 42: uint16(23189), + 43: uint16(23190), + 44: uint16(23191), + 45: uint16(23192), + 46: uint16(23193), + 47: uint16(23196), + 48: uint16(23197), + 49: uint16(23198), + 50: uint16(23199), + 51: uint16(23200), + 52: uint16(23201), + 53: uint16(23202), + 54: uint16(23203), + 55: uint16(23204), + 56: uint16(23205), + 57: uint16(23206), + 58: uint16(23207), + 59: uint16(23208), + 60: uint16(23209), + 61: uint16(23211), + 62: uint16(23212), + 63: uint16(23213), + 64: uint16(23214), + 65: uint16(23215), + 66: uint16(23216), + 67: uint16(23217), + 68: uint16(23220), + 69: uint16(23222), + 70: uint16(23223), + 71: uint16(23225), + 72: uint16(23226), + 73: uint16(23227), + 74: uint16(23228), + 75: uint16(23229), + 76: uint16(23231), + 77: uint16(23232), + 78: uint16(23235), + 79: uint16(23236), + 80: uint16(23237), + 81: uint16(23238), + 82: uint16(23239), + 83: uint16(23240), + 84: uint16(23242), + 85: uint16(23243), + 86: uint16(23245), + 87: uint16(23246), + 88: uint16(23247), + 89: uint16(23248), + 90: uint16(23249), + 91: uint16(23251), + 92: uint16(23253), + 93: uint16(23255), + 94: uint16(23257), + 95: uint16(23258), + 96: uint16(23259), + 97: uint16(23261), + 98: uint16(23262), + 99: uint16(23263), + 100: uint16(23266), + 101: uint16(23268), + 102: uint16(23269), + 103: uint16(23271), + 104: uint16(23272), + 105: uint16(23274), + 106: uint16(23276), + 107: uint16(23277), + 108: uint16(23278), + 109: uint16(23279), + 110: uint16(23280), + 111: uint16(23282), + 112: uint16(23283), + 113: uint16(23284), + 114: uint16(23285), + 115: uint16(23286), + 116: uint16(23287), + 117: uint16(23288), + 118: uint16(23289), + 119: uint16(23290), + 120: uint16(23291), + 121: uint16(23292), + 122: uint16(23293), + 123: uint16(23294), + 124: uint16(23295), + 125: uint16(23296), + 126: uint16(23297), + 127: uint16(23298), + 128: uint16(23299), + 129: uint16(23300), + 130: uint16(23301), + 131: uint16(23302), + 132: uint16(23303), + 133: uint16(23304), + 134: uint16(23306), + 135: uint16(23307), + 136: uint16(23308), + 137: uint16(23309), + 138: uint16(23310), + 139: uint16(23311), + 140: uint16(23312), + 141: uint16(23313), + 142: uint16(23314), + 143: uint16(23315), + 144: uint16(23316), + 145: uint16(23317), + 146: uint16(23320), + 147: uint16(23321), + 148: uint16(23322), + 149: uint16(23323), + 150: uint16(23324), + 151: uint16(23325), + 152: uint16(23326), + 153: uint16(23327), + 154: uint16(23328), + 155: uint16(23329), + 156: uint16(23330), + 157: uint16(23331), + 158: uint16(23332), + 159: uint16(23333), + 160: uint16(23334), + 161: uint16(23335), + 162: uint16(23336), + 163: uint16(23337), + 164: uint16(23338), + 165: uint16(23339), + 166: uint16(23340), + 167: uint16(23341), + 168: uint16(23342), + 169: uint16(23343), + 170: uint16(23344), + 171: uint16(23345), + 172: uint16(23347), + 173: uint16(23349), + 174: uint16(23350), + 175: uint16(23352), + 176: uint16(23353), + 177: uint16(23354), + 178: uint16(23355), + 179: uint16(23356), + 180: uint16(23357), + 181: uint16(23358), + 182: uint16(23359), + 183: uint16(23361), + 184: uint16(23362), + 185: uint16(23363), + 186: uint16(23364), + 187: uint16(23365), + 188: uint16(23366), + 189: uint16(23367), + }, + 11: { + 0: uint16(23368), + 1: uint16(23369), + 2: uint16(23370), + 3: uint16(23371), + 4: uint16(23372), + 5: uint16(23373), + 6: uint16(23374), + 7: uint16(23375), + 8: uint16(23378), + 9: uint16(23382), + 10: uint16(23390), + 11: uint16(23392), + 12: uint16(23393), + 13: uint16(23399), + 14: uint16(23400), + 15: uint16(23403), + 16: uint16(23405), + 17: uint16(23406), + 18: uint16(23407), + 19: uint16(23410), + 20: uint16(23412), + 21: uint16(23414), + 22: uint16(23415), + 23: uint16(23416), + 24: uint16(23417), + 25: uint16(23419), + 26: uint16(23420), + 27: uint16(23422), + 28: uint16(23423), + 29: uint16(23426), + 30: uint16(23430), + 31: uint16(23434), + 32: uint16(23437), + 33: uint16(23438), + 34: uint16(23440), + 35: uint16(23441), + 36: uint16(23442), + 37: uint16(23444), + 38: uint16(23446), + 39: uint16(23455), + 40: uint16(23463), + 41: uint16(23464), + 42: uint16(23465), + 43: uint16(23468), + 44: uint16(23469), + 45: uint16(23470), + 46: uint16(23471), + 47: uint16(23473), + 48: uint16(23474), + 49: uint16(23479), + 50: uint16(23482), + 51: uint16(23483), + 52: uint16(23484), + 53: uint16(23488), + 54: uint16(23489), + 55: uint16(23491), + 56: uint16(23496), + 57: uint16(23497), + 58: uint16(23498), + 59: uint16(23499), + 60: uint16(23501), + 61: uint16(23502), + 62: uint16(23503), + 63: uint16(23505), + 64: uint16(23508), + 65: uint16(23509), + 66: uint16(23510), + 67: uint16(23511), + 68: uint16(23512), + 69: uint16(23513), + 70: uint16(23514), + 71: uint16(23515), + 72: uint16(23516), + 73: uint16(23520), + 74: uint16(23522), + 75: uint16(23523), + 76: uint16(23526), + 77: uint16(23527), + 78: uint16(23529), + 79: uint16(23530), + 80: uint16(23531), + 81: uint16(23532), + 82: uint16(23533), + 83: uint16(23535), + 84: uint16(23537), + 85: uint16(23538), + 86: uint16(23539), + 87: uint16(23540), + 88: uint16(23541), + 89: uint16(23542), + 90: uint16(23543), + 91: uint16(23549), + 92: uint16(23550), + 93: uint16(23552), + 94: uint16(23554), + 95: uint16(23555), + 96: uint16(23557), + 97: uint16(23559), + 98: uint16(23560), + 99: uint16(23563), + 100: uint16(23564), + 101: uint16(23565), + 102: uint16(23566), + 103: uint16(23568), + 104: uint16(23570), + 105: uint16(23571), + 106: uint16(23575), + 107: uint16(23577), + 108: uint16(23579), + 109: uint16(23582), + 110: uint16(23583), + 111: uint16(23584), + 112: uint16(23585), + 113: uint16(23587), + 114: uint16(23590), + 115: uint16(23592), + 116: uint16(23593), + 117: uint16(23594), + 118: uint16(23595), + 119: uint16(23597), + 120: uint16(23598), + 121: uint16(23599), + 122: uint16(23600), + 123: uint16(23602), + 124: uint16(23603), + 125: uint16(23605), + 126: uint16(23606), + 127: uint16(23607), + 128: uint16(23619), + 129: uint16(23620), + 130: uint16(23622), + 131: uint16(23623), + 132: uint16(23628), + 133: uint16(23629), + 134: uint16(23634), + 135: uint16(23635), + 136: uint16(23636), + 137: uint16(23638), + 138: uint16(23639), + 139: uint16(23640), + 140: uint16(23642), + 141: uint16(23643), + 142: uint16(23644), + 143: uint16(23645), + 144: uint16(23647), + 145: uint16(23650), + 146: uint16(23652), + 147: uint16(23655), + 148: uint16(23656), + 149: uint16(23657), + 150: uint16(23658), + 151: uint16(23659), + 152: uint16(23660), + 153: uint16(23661), + 154: uint16(23664), + 155: uint16(23666), + 156: uint16(23667), + 157: uint16(23668), + 158: uint16(23669), + 159: uint16(23670), + 160: uint16(23671), + 161: uint16(23672), + 162: uint16(23675), + 163: uint16(23676), + 164: uint16(23677), + 165: uint16(23678), + 166: uint16(23680), + 167: uint16(23683), + 168: uint16(23684), + 169: uint16(23685), + 170: uint16(23686), + 171: uint16(23687), + 172: uint16(23689), + 173: uint16(23690), + 174: uint16(23691), + 175: uint16(23694), + 176: uint16(23695), + 177: uint16(23698), + 178: uint16(23699), + 179: uint16(23701), + 180: uint16(23709), + 181: uint16(23710), + 182: uint16(23711), + 183: uint16(23712), + 184: uint16(23713), + 185: uint16(23716), + 186: uint16(23717), + 187: uint16(23718), + 188: uint16(23719), + 189: uint16(23720), + }, + 12: { + 0: uint16(23722), + 1: uint16(23726), + 2: uint16(23727), + 3: uint16(23728), + 4: uint16(23730), + 5: uint16(23732), + 6: uint16(23734), + 7: uint16(23737), + 8: uint16(23738), + 9: uint16(23739), + 10: uint16(23740), + 11: uint16(23742), + 12: uint16(23744), + 13: uint16(23746), + 14: uint16(23747), + 15: uint16(23749), + 16: uint16(23750), + 17: uint16(23751), + 18: uint16(23752), + 19: uint16(23753), + 20: uint16(23754), + 21: uint16(23756), + 22: uint16(23757), + 23: uint16(23758), + 24: uint16(23759), + 25: uint16(23760), + 26: uint16(23761), + 27: uint16(23763), + 28: uint16(23764), + 29: uint16(23765), + 30: uint16(23766), + 31: uint16(23767), + 32: uint16(23768), + 33: uint16(23770), + 34: uint16(23771), + 35: uint16(23772), + 36: uint16(23773), + 37: uint16(23774), + 38: uint16(23775), + 39: uint16(23776), + 40: uint16(23778), + 41: uint16(23779), + 42: uint16(23783), + 43: uint16(23785), + 44: uint16(23787), + 45: uint16(23788), + 46: uint16(23790), + 47: uint16(23791), + 48: uint16(23793), + 49: uint16(23794), + 50: uint16(23795), + 51: uint16(23796), + 52: uint16(23797), + 53: uint16(23798), + 54: uint16(23799), + 55: uint16(23800), + 56: uint16(23801), + 57: uint16(23802), + 58: uint16(23804), + 59: uint16(23805), + 60: uint16(23806), + 61: uint16(23807), + 62: uint16(23808), + 63: uint16(23809), + 64: uint16(23812), + 65: uint16(23813), + 66: uint16(23816), + 67: uint16(23817), + 68: uint16(23818), + 69: uint16(23819), + 70: uint16(23820), + 71: uint16(23821), + 72: uint16(23823), + 73: uint16(23824), + 74: uint16(23825), + 75: uint16(23826), + 76: uint16(23827), + 77: uint16(23829), + 78: uint16(23831), + 79: uint16(23832), + 80: uint16(23833), + 81: uint16(23834), + 82: uint16(23836), + 83: uint16(23837), + 84: uint16(23839), + 85: uint16(23840), + 86: uint16(23841), + 87: uint16(23842), + 88: uint16(23843), + 89: uint16(23845), + 90: uint16(23848), + 91: uint16(23850), + 92: uint16(23851), + 93: uint16(23852), + 94: uint16(23855), + 95: uint16(23856), + 96: uint16(23857), + 97: uint16(23858), + 98: uint16(23859), + 99: uint16(23861), + 100: uint16(23862), + 101: uint16(23863), + 102: uint16(23864), + 103: uint16(23865), + 104: uint16(23866), + 105: uint16(23867), + 106: uint16(23868), + 107: uint16(23871), + 108: uint16(23872), + 109: uint16(23873), + 110: uint16(23874), + 111: uint16(23875), + 112: uint16(23876), + 113: uint16(23877), + 114: uint16(23878), + 115: uint16(23880), + 116: uint16(23881), + 117: uint16(23885), + 118: uint16(23886), + 119: uint16(23887), + 120: uint16(23888), + 121: uint16(23889), + 122: uint16(23890), + 123: uint16(23891), + 124: uint16(23892), + 125: uint16(23893), + 126: uint16(23894), + 127: uint16(23895), + 128: uint16(23897), + 129: uint16(23898), + 130: uint16(23900), + 131: uint16(23902), + 132: uint16(23903), + 133: uint16(23904), + 134: uint16(23905), + 135: uint16(23906), + 136: uint16(23907), + 137: uint16(23908), + 138: uint16(23909), + 139: uint16(23910), + 140: uint16(23911), + 141: uint16(23912), + 142: uint16(23914), + 143: uint16(23917), + 144: uint16(23918), + 145: uint16(23920), + 146: uint16(23921), + 147: uint16(23922), + 148: uint16(23923), + 149: uint16(23925), + 150: uint16(23926), + 151: uint16(23927), + 152: uint16(23928), + 153: uint16(23929), + 154: uint16(23930), + 155: uint16(23931), + 156: uint16(23932), + 157: uint16(23933), + 158: uint16(23934), + 159: uint16(23935), + 160: uint16(23936), + 161: uint16(23937), + 162: uint16(23939), + 163: uint16(23940), + 164: uint16(23941), + 165: uint16(23942), + 166: uint16(23943), + 167: uint16(23944), + 168: uint16(23945), + 169: uint16(23946), + 170: uint16(23947), + 171: uint16(23948), + 172: uint16(23949), + 173: uint16(23950), + 174: uint16(23951), + 175: uint16(23952), + 176: uint16(23953), + 177: uint16(23954), + 178: uint16(23955), + 179: uint16(23956), + 180: uint16(23957), + 181: uint16(23958), + 182: uint16(23959), + 183: uint16(23960), + 184: uint16(23962), + 185: uint16(23963), + 186: uint16(23964), + 187: uint16(23966), + 188: uint16(23967), + 189: uint16(23968), + }, + 13: { + 0: uint16(23969), + 1: uint16(23970), + 2: uint16(23971), + 3: uint16(23972), + 4: uint16(23973), + 5: uint16(23974), + 6: uint16(23975), + 7: uint16(23976), + 8: uint16(23977), + 9: uint16(23978), + 10: uint16(23979), + 11: uint16(23980), + 12: uint16(23981), + 13: uint16(23982), + 14: uint16(23983), + 15: uint16(23984), + 16: uint16(23985), + 17: uint16(23986), + 18: uint16(23987), + 19: uint16(23988), + 20: uint16(23989), + 21: uint16(23990), + 22: uint16(23992), + 23: uint16(23993), + 24: uint16(23994), + 25: uint16(23995), + 26: uint16(23996), + 27: uint16(23997), + 28: uint16(23998), + 29: uint16(23999), + 30: uint16(24000), + 31: uint16(24001), + 32: uint16(24002), + 33: uint16(24003), + 34: uint16(24004), + 35: uint16(24006), + 36: uint16(24007), + 37: uint16(24008), + 38: uint16(24009), + 39: uint16(24010), + 40: uint16(24011), + 41: uint16(24012), + 42: uint16(24014), + 43: uint16(24015), + 44: uint16(24016), + 45: uint16(24017), + 46: uint16(24018), + 47: uint16(24019), + 48: uint16(24020), + 49: uint16(24021), + 50: uint16(24022), + 51: uint16(24023), + 52: uint16(24024), + 53: uint16(24025), + 54: uint16(24026), + 55: uint16(24028), + 56: uint16(24031), + 57: uint16(24032), + 58: uint16(24035), + 59: uint16(24036), + 60: uint16(24042), + 61: uint16(24044), + 62: uint16(24045), + 63: uint16(24048), + 64: uint16(24053), + 65: uint16(24054), + 66: uint16(24056), + 67: uint16(24057), + 68: uint16(24058), + 69: uint16(24059), + 70: uint16(24060), + 71: uint16(24063), + 72: uint16(24064), + 73: uint16(24068), + 74: uint16(24071), + 75: uint16(24073), + 76: uint16(24074), + 77: uint16(24075), + 78: uint16(24077), + 79: uint16(24078), + 80: uint16(24082), + 81: uint16(24083), + 82: uint16(24087), + 83: uint16(24094), + 84: uint16(24095), + 85: uint16(24096), + 86: uint16(24097), + 87: uint16(24098), + 88: uint16(24099), + 89: uint16(24100), + 90: uint16(24101), + 91: uint16(24104), + 92: uint16(24105), + 93: uint16(24106), + 94: uint16(24107), + 95: uint16(24108), + 96: uint16(24111), + 97: uint16(24112), + 98: uint16(24114), + 99: uint16(24115), + 100: uint16(24116), + 101: uint16(24117), + 102: uint16(24118), + 103: uint16(24121), + 104: uint16(24122), + 105: uint16(24126), + 106: uint16(24127), + 107: uint16(24128), + 108: uint16(24129), + 109: uint16(24131), + 110: uint16(24134), + 111: uint16(24135), + 112: uint16(24136), + 113: uint16(24137), + 114: uint16(24138), + 115: uint16(24139), + 116: uint16(24141), + 117: uint16(24142), + 118: uint16(24143), + 119: uint16(24144), + 120: uint16(24145), + 121: uint16(24146), + 122: uint16(24147), + 123: uint16(24150), + 124: uint16(24151), + 125: uint16(24152), + 126: uint16(24153), + 127: uint16(24154), + 128: uint16(24156), + 129: uint16(24157), + 130: uint16(24159), + 131: uint16(24160), + 132: uint16(24163), + 133: uint16(24164), + 134: uint16(24165), + 135: uint16(24166), + 136: uint16(24167), + 137: uint16(24168), + 138: uint16(24169), + 139: uint16(24170), + 140: uint16(24171), + 141: uint16(24172), + 142: uint16(24173), + 143: uint16(24174), + 144: uint16(24175), + 145: uint16(24176), + 146: uint16(24177), + 147: uint16(24181), + 148: uint16(24183), + 149: uint16(24185), + 150: uint16(24190), + 151: uint16(24193), + 152: uint16(24194), + 153: uint16(24195), + 154: uint16(24197), + 155: uint16(24200), + 156: uint16(24201), + 157: uint16(24204), + 158: uint16(24205), + 159: uint16(24206), + 160: uint16(24210), + 161: uint16(24216), + 162: uint16(24219), + 163: uint16(24221), + 164: uint16(24225), + 165: uint16(24226), + 166: uint16(24227), + 167: uint16(24228), + 168: uint16(24232), + 169: uint16(24233), + 170: uint16(24234), + 171: uint16(24235), + 172: uint16(24236), + 173: uint16(24238), + 174: uint16(24239), + 175: uint16(24240), + 176: uint16(24241), + 177: uint16(24242), + 178: uint16(24244), + 179: uint16(24250), + 180: uint16(24251), + 181: uint16(24252), + 182: uint16(24253), + 183: uint16(24255), + 184: uint16(24256), + 185: uint16(24257), + 186: uint16(24258), + 187: uint16(24259), + 188: uint16(24260), + 189: uint16(24261), + }, + 14: { + 0: uint16(24262), + 1: uint16(24263), + 2: uint16(24264), + 3: uint16(24267), + 4: uint16(24268), + 5: uint16(24269), + 6: uint16(24270), + 7: uint16(24271), + 8: uint16(24272), + 9: uint16(24276), + 10: uint16(24277), + 11: uint16(24279), + 12: uint16(24280), + 13: uint16(24281), + 14: uint16(24282), + 15: uint16(24284), + 16: uint16(24285), + 17: uint16(24286), + 18: uint16(24287), + 19: uint16(24288), + 20: uint16(24289), + 21: uint16(24290), + 22: uint16(24291), + 23: uint16(24292), + 24: uint16(24293), + 25: uint16(24294), + 26: uint16(24295), + 27: uint16(24297), + 28: uint16(24299), + 29: uint16(24300), + 30: uint16(24301), + 31: uint16(24302), + 32: uint16(24303), + 33: uint16(24304), + 34: uint16(24305), + 35: uint16(24306), + 36: uint16(24307), + 37: uint16(24309), + 38: uint16(24312), + 39: uint16(24313), + 40: uint16(24315), + 41: uint16(24316), + 42: uint16(24317), + 43: uint16(24325), + 44: uint16(24326), + 45: uint16(24327), + 46: uint16(24329), + 47: uint16(24332), + 48: uint16(24333), + 49: uint16(24334), + 50: uint16(24336), + 51: uint16(24338), + 52: uint16(24340), + 53: uint16(24342), + 54: uint16(24345), + 55: uint16(24346), + 56: uint16(24348), + 57: uint16(24349), + 58: uint16(24350), + 59: uint16(24353), + 60: uint16(24354), + 61: uint16(24355), + 62: uint16(24356), + 63: uint16(24360), + 64: uint16(24363), + 65: uint16(24364), + 66: uint16(24366), + 67: uint16(24368), + 68: uint16(24370), + 69: uint16(24371), + 70: uint16(24372), + 71: uint16(24373), + 72: uint16(24374), + 73: uint16(24375), + 74: uint16(24376), + 75: uint16(24379), + 76: uint16(24381), + 77: uint16(24382), + 78: uint16(24383), + 79: uint16(24385), + 80: uint16(24386), + 81: uint16(24387), + 82: uint16(24388), + 83: uint16(24389), + 84: uint16(24390), + 85: uint16(24391), + 86: uint16(24392), + 87: uint16(24393), + 88: uint16(24394), + 89: uint16(24395), + 90: uint16(24396), + 91: uint16(24397), + 92: uint16(24398), + 93: uint16(24399), + 94: uint16(24401), + 95: uint16(24404), + 96: uint16(24409), + 97: uint16(24410), + 98: uint16(24411), + 99: uint16(24412), + 100: uint16(24414), + 101: uint16(24415), + 102: uint16(24416), + 103: uint16(24419), + 104: uint16(24421), + 105: uint16(24423), + 106: uint16(24424), + 107: uint16(24427), + 108: uint16(24430), + 109: uint16(24431), + 110: uint16(24434), + 111: uint16(24436), + 112: uint16(24437), + 113: uint16(24438), + 114: uint16(24440), + 115: uint16(24442), + 116: uint16(24445), + 117: uint16(24446), + 118: uint16(24447), + 119: uint16(24451), + 120: uint16(24454), + 121: uint16(24461), + 122: uint16(24462), + 123: uint16(24463), + 124: uint16(24465), + 125: uint16(24467), + 126: uint16(24468), + 127: uint16(24470), + 128: uint16(24474), + 129: uint16(24475), + 130: uint16(24477), + 131: uint16(24478), + 132: uint16(24479), + 133: uint16(24480), + 134: uint16(24482), + 135: uint16(24483), + 136: uint16(24484), + 137: uint16(24485), + 138: uint16(24486), + 139: uint16(24487), + 140: uint16(24489), + 141: uint16(24491), + 142: uint16(24492), + 143: uint16(24495), + 144: uint16(24496), + 145: uint16(24497), + 146: uint16(24498), + 147: uint16(24499), + 148: uint16(24500), + 149: uint16(24502), + 150: uint16(24504), + 151: uint16(24505), + 152: uint16(24506), + 153: uint16(24507), + 154: uint16(24510), + 155: uint16(24511), + 156: uint16(24512), + 157: uint16(24513), + 158: uint16(24514), + 159: uint16(24519), + 160: uint16(24520), + 161: uint16(24522), + 162: uint16(24523), + 163: uint16(24526), + 164: uint16(24531), + 165: uint16(24532), + 166: uint16(24533), + 167: uint16(24538), + 168: uint16(24539), + 169: uint16(24540), + 170: uint16(24542), + 171: uint16(24543), + 172: uint16(24546), + 173: uint16(24547), + 174: uint16(24549), + 175: uint16(24550), + 176: uint16(24552), + 177: uint16(24553), + 178: uint16(24556), + 179: uint16(24559), + 180: uint16(24560), + 181: uint16(24562), + 182: uint16(24563), + 183: uint16(24564), + 184: uint16(24566), + 185: uint16(24567), + 186: uint16(24569), + 187: uint16(24570), + 188: uint16(24572), + 189: uint16(24583), + }, + 15: { + 0: uint16(24584), + 1: uint16(24585), + 2: uint16(24587), + 3: uint16(24588), + 4: uint16(24592), + 5: uint16(24593), + 6: uint16(24595), + 7: uint16(24599), + 8: uint16(24600), + 9: uint16(24602), + 10: uint16(24606), + 11: uint16(24607), + 12: uint16(24610), + 13: uint16(24611), + 14: uint16(24612), + 15: uint16(24620), + 16: uint16(24621), + 17: uint16(24622), + 18: uint16(24624), + 19: uint16(24625), + 20: uint16(24626), + 21: uint16(24627), + 22: uint16(24628), + 23: uint16(24630), + 24: uint16(24631), + 25: uint16(24632), + 26: uint16(24633), + 27: uint16(24634), + 28: uint16(24637), + 29: uint16(24638), + 30: uint16(24640), + 31: uint16(24644), + 32: uint16(24645), + 33: uint16(24646), + 34: uint16(24647), + 35: uint16(24648), + 36: uint16(24649), + 37: uint16(24650), + 38: uint16(24652), + 39: uint16(24654), + 40: uint16(24655), + 41: uint16(24657), + 42: uint16(24659), + 43: uint16(24660), + 44: uint16(24662), + 45: uint16(24663), + 46: uint16(24664), + 47: uint16(24667), + 48: uint16(24668), + 49: uint16(24670), + 50: uint16(24671), + 51: uint16(24672), + 52: uint16(24673), + 53: uint16(24677), + 54: uint16(24678), + 55: uint16(24686), + 56: uint16(24689), + 57: uint16(24690), + 58: uint16(24692), + 59: uint16(24693), + 60: uint16(24695), + 61: uint16(24702), + 62: uint16(24704), + 63: uint16(24705), + 64: uint16(24706), + 65: uint16(24709), + 66: uint16(24710), + 67: uint16(24711), + 68: uint16(24712), + 69: uint16(24714), + 70: uint16(24715), + 71: uint16(24718), + 72: uint16(24719), + 73: uint16(24720), + 74: uint16(24721), + 75: uint16(24723), + 76: uint16(24725), + 77: uint16(24727), + 78: uint16(24728), + 79: uint16(24729), + 80: uint16(24732), + 81: uint16(24734), + 82: uint16(24737), + 83: uint16(24738), + 84: uint16(24740), + 85: uint16(24741), + 86: uint16(24743), + 87: uint16(24745), + 88: uint16(24746), + 89: uint16(24750), + 90: uint16(24752), + 91: uint16(24755), + 92: uint16(24757), + 93: uint16(24758), + 94: uint16(24759), + 95: uint16(24761), + 96: uint16(24762), + 97: uint16(24765), + 98: uint16(24766), + 99: uint16(24767), + 100: uint16(24768), + 101: uint16(24769), + 102: uint16(24770), + 103: uint16(24771), + 104: uint16(24772), + 105: uint16(24775), + 106: uint16(24776), + 107: uint16(24777), + 108: uint16(24780), + 109: uint16(24781), + 110: uint16(24782), + 111: uint16(24783), + 112: uint16(24784), + 113: uint16(24786), + 114: uint16(24787), + 115: uint16(24788), + 116: uint16(24790), + 117: uint16(24791), + 118: uint16(24793), + 119: uint16(24795), + 120: uint16(24798), + 121: uint16(24801), + 122: uint16(24802), + 123: uint16(24803), + 124: uint16(24804), + 125: uint16(24805), + 126: uint16(24810), + 127: uint16(24817), + 128: uint16(24818), + 129: uint16(24821), + 130: uint16(24823), + 131: uint16(24824), + 132: uint16(24827), + 133: uint16(24828), + 134: uint16(24829), + 135: uint16(24830), + 136: uint16(24831), + 137: uint16(24834), + 138: uint16(24835), + 139: uint16(24836), + 140: uint16(24837), + 141: uint16(24839), + 142: uint16(24842), + 143: uint16(24843), + 144: uint16(24844), + 145: uint16(24848), + 146: uint16(24849), + 147: uint16(24850), + 148: uint16(24851), + 149: uint16(24852), + 150: uint16(24854), + 151: uint16(24855), + 152: uint16(24856), + 153: uint16(24857), + 154: uint16(24859), + 155: uint16(24860), + 156: uint16(24861), + 157: uint16(24862), + 158: uint16(24865), + 159: uint16(24866), + 160: uint16(24869), + 161: uint16(24872), + 162: uint16(24873), + 163: uint16(24874), + 164: uint16(24876), + 165: uint16(24877), + 166: uint16(24878), + 167: uint16(24879), + 168: uint16(24880), + 169: uint16(24881), + 170: uint16(24882), + 171: uint16(24883), + 172: uint16(24884), + 173: uint16(24885), + 174: uint16(24886), + 175: uint16(24887), + 176: uint16(24888), + 177: uint16(24889), + 178: uint16(24890), + 179: uint16(24891), + 180: uint16(24892), + 181: uint16(24893), + 182: uint16(24894), + 183: uint16(24896), + 184: uint16(24897), + 185: uint16(24898), + 186: uint16(24899), + 187: uint16(24900), + 188: uint16(24901), + 189: uint16(24902), + }, + 16: { + 0: uint16(24903), + 1: uint16(24905), + 2: uint16(24907), + 3: uint16(24909), + 4: uint16(24911), + 5: uint16(24912), + 6: uint16(24914), + 7: uint16(24915), + 8: uint16(24916), + 9: uint16(24918), + 10: uint16(24919), + 11: uint16(24920), + 12: uint16(24921), + 13: uint16(24922), + 14: uint16(24923), + 15: uint16(24924), + 16: uint16(24926), + 17: uint16(24927), + 18: uint16(24928), + 19: uint16(24929), + 20: uint16(24931), + 21: uint16(24932), + 22: uint16(24933), + 23: uint16(24934), + 24: uint16(24937), + 25: uint16(24938), + 26: uint16(24939), + 27: uint16(24940), + 28: uint16(24941), + 29: uint16(24942), + 30: uint16(24943), + 31: uint16(24945), + 32: uint16(24946), + 33: uint16(24947), + 34: uint16(24948), + 35: uint16(24950), + 36: uint16(24952), + 37: uint16(24953), + 38: uint16(24954), + 39: uint16(24955), + 40: uint16(24956), + 41: uint16(24957), + 42: uint16(24958), + 43: uint16(24959), + 44: uint16(24960), + 45: uint16(24961), + 46: uint16(24962), + 47: uint16(24963), + 48: uint16(24964), + 49: uint16(24965), + 50: uint16(24966), + 51: uint16(24967), + 52: uint16(24968), + 53: uint16(24969), + 54: uint16(24970), + 55: uint16(24972), + 56: uint16(24973), + 57: uint16(24975), + 58: uint16(24976), + 59: uint16(24977), + 60: uint16(24978), + 61: uint16(24979), + 62: uint16(24981), + 63: uint16(24982), + 64: uint16(24983), + 65: uint16(24984), + 66: uint16(24985), + 67: uint16(24986), + 68: uint16(24987), + 69: uint16(24988), + 70: uint16(24990), + 71: uint16(24991), + 72: uint16(24992), + 73: uint16(24993), + 74: uint16(24994), + 75: uint16(24995), + 76: uint16(24996), + 77: uint16(24997), + 78: uint16(24998), + 79: uint16(25002), + 80: uint16(25003), + 81: uint16(25005), + 82: uint16(25006), + 83: uint16(25007), + 84: uint16(25008), + 85: uint16(25009), + 86: uint16(25010), + 87: uint16(25011), + 88: uint16(25012), + 89: uint16(25013), + 90: uint16(25014), + 91: uint16(25016), + 92: uint16(25017), + 93: uint16(25018), + 94: uint16(25019), + 95: uint16(25020), + 96: uint16(25021), + 97: uint16(25023), + 98: uint16(25024), + 99: uint16(25025), + 100: uint16(25027), + 101: uint16(25028), + 102: uint16(25029), + 103: uint16(25030), + 104: uint16(25031), + 105: uint16(25033), + 106: uint16(25036), + 107: uint16(25037), + 108: uint16(25038), + 109: uint16(25039), + 110: uint16(25040), + 111: uint16(25043), + 112: uint16(25045), + 113: uint16(25046), + 114: uint16(25047), + 115: uint16(25048), + 116: uint16(25049), + 117: uint16(25050), + 118: uint16(25051), + 119: uint16(25052), + 120: uint16(25053), + 121: uint16(25054), + 122: uint16(25055), + 123: uint16(25056), + 124: uint16(25057), + 125: uint16(25058), + 126: uint16(25059), + 127: uint16(25060), + 128: uint16(25061), + 129: uint16(25063), + 130: uint16(25064), + 131: uint16(25065), + 132: uint16(25066), + 133: uint16(25067), + 134: uint16(25068), + 135: uint16(25069), + 136: uint16(25070), + 137: uint16(25071), + 138: uint16(25072), + 139: uint16(25073), + 140: uint16(25074), + 141: uint16(25075), + 142: uint16(25076), + 143: uint16(25078), + 144: uint16(25079), + 145: uint16(25080), + 146: uint16(25081), + 147: uint16(25082), + 148: uint16(25083), + 149: uint16(25084), + 150: uint16(25085), + 151: uint16(25086), + 152: uint16(25088), + 153: uint16(25089), + 154: uint16(25090), + 155: uint16(25091), + 156: uint16(25092), + 157: uint16(25093), + 158: uint16(25095), + 159: uint16(25097), + 160: uint16(25107), + 161: uint16(25108), + 162: uint16(25113), + 163: uint16(25116), + 164: uint16(25117), + 165: uint16(25118), + 166: uint16(25120), + 167: uint16(25123), + 168: uint16(25126), + 169: uint16(25127), + 170: uint16(25128), + 171: uint16(25129), + 172: uint16(25131), + 173: uint16(25133), + 174: uint16(25135), + 175: uint16(25136), + 176: uint16(25137), + 177: uint16(25138), + 178: uint16(25141), + 179: uint16(25142), + 180: uint16(25144), + 181: uint16(25145), + 182: uint16(25146), + 183: uint16(25147), + 184: uint16(25148), + 185: uint16(25154), + 186: uint16(25156), + 187: uint16(25157), + 188: uint16(25158), + 189: uint16(25162), + }, + 17: { + 0: uint16(25167), + 1: uint16(25168), + 2: uint16(25173), + 3: uint16(25174), + 4: uint16(25175), + 5: uint16(25177), + 6: uint16(25178), + 7: uint16(25180), + 8: uint16(25181), + 9: uint16(25182), + 10: uint16(25183), + 11: uint16(25184), + 12: uint16(25185), + 13: uint16(25186), + 14: uint16(25188), + 15: uint16(25189), + 16: uint16(25192), + 17: uint16(25201), + 18: uint16(25202), + 19: uint16(25204), + 20: uint16(25205), + 21: uint16(25207), + 22: uint16(25208), + 23: uint16(25210), + 24: uint16(25211), + 25: uint16(25213), + 26: uint16(25217), + 27: uint16(25218), + 28: uint16(25219), + 29: uint16(25221), + 30: uint16(25222), + 31: uint16(25223), + 32: uint16(25224), + 33: uint16(25227), + 34: uint16(25228), + 35: uint16(25229), + 36: uint16(25230), + 37: uint16(25231), + 38: uint16(25232), + 39: uint16(25236), + 40: uint16(25241), + 41: uint16(25244), + 42: uint16(25245), + 43: uint16(25246), + 44: uint16(25251), + 45: uint16(25254), + 46: uint16(25255), + 47: uint16(25257), + 48: uint16(25258), + 49: uint16(25261), + 50: uint16(25262), + 51: uint16(25263), + 52: uint16(25264), + 53: uint16(25266), + 54: uint16(25267), + 55: uint16(25268), + 56: uint16(25270), + 57: uint16(25271), + 58: uint16(25272), + 59: uint16(25274), + 60: uint16(25278), + 61: uint16(25280), + 62: uint16(25281), + 63: uint16(25283), + 64: uint16(25291), + 65: uint16(25295), + 66: uint16(25297), + 67: uint16(25301), + 68: uint16(25309), + 69: uint16(25310), + 70: uint16(25312), + 71: uint16(25313), + 72: uint16(25316), + 73: uint16(25322), + 74: uint16(25323), + 75: uint16(25328), + 76: uint16(25330), + 77: uint16(25333), + 78: uint16(25336), + 79: uint16(25337), + 80: uint16(25338), + 81: uint16(25339), + 82: uint16(25344), + 83: uint16(25347), + 84: uint16(25348), + 85: uint16(25349), + 86: uint16(25350), + 87: uint16(25354), + 88: uint16(25355), + 89: uint16(25356), + 90: uint16(25357), + 91: uint16(25359), + 92: uint16(25360), + 93: uint16(25362), + 94: uint16(25363), + 95: uint16(25364), + 96: uint16(25365), + 97: uint16(25367), + 98: uint16(25368), + 99: uint16(25369), + 100: uint16(25372), + 101: uint16(25382), + 102: uint16(25383), + 103: uint16(25385), + 104: uint16(25388), + 105: uint16(25389), + 106: uint16(25390), + 107: uint16(25392), + 108: uint16(25393), + 109: uint16(25395), + 110: uint16(25396), + 111: uint16(25397), + 112: uint16(25398), + 113: uint16(25399), + 114: uint16(25400), + 115: uint16(25403), + 116: uint16(25404), + 117: uint16(25406), + 118: uint16(25407), + 119: uint16(25408), + 120: uint16(25409), + 121: uint16(25412), + 122: uint16(25415), + 123: uint16(25416), + 124: uint16(25418), + 125: uint16(25425), + 126: uint16(25426), + 127: uint16(25427), + 128: uint16(25428), + 129: uint16(25430), + 130: uint16(25431), + 131: uint16(25432), + 132: uint16(25433), + 133: uint16(25434), + 134: uint16(25435), + 135: uint16(25436), + 136: uint16(25437), + 137: uint16(25440), + 138: uint16(25444), + 139: uint16(25445), + 140: uint16(25446), + 141: uint16(25448), + 142: uint16(25450), + 143: uint16(25451), + 144: uint16(25452), + 145: uint16(25455), + 146: uint16(25456), + 147: uint16(25458), + 148: uint16(25459), + 149: uint16(25460), + 150: uint16(25461), + 151: uint16(25464), + 152: uint16(25465), + 153: uint16(25468), + 154: uint16(25469), + 155: uint16(25470), + 156: uint16(25471), + 157: uint16(25473), + 158: uint16(25475), + 159: uint16(25476), + 160: uint16(25477), + 161: uint16(25478), + 162: uint16(25483), + 163: uint16(25485), + 164: uint16(25489), + 165: uint16(25491), + 166: uint16(25492), + 167: uint16(25493), + 168: uint16(25495), + 169: uint16(25497), + 170: uint16(25498), + 171: uint16(25499), + 172: uint16(25500), + 173: uint16(25501), + 174: uint16(25502), + 175: uint16(25503), + 176: uint16(25505), + 177: uint16(25508), + 178: uint16(25510), + 179: uint16(25515), + 180: uint16(25519), + 181: uint16(25521), + 182: uint16(25522), + 183: uint16(25525), + 184: uint16(25526), + 185: uint16(25529), + 186: uint16(25531), + 187: uint16(25533), + 188: uint16(25535), + 189: uint16(25536), + }, + 18: { + 0: uint16(25537), + 1: uint16(25538), + 2: uint16(25539), + 3: uint16(25541), + 4: uint16(25543), + 5: uint16(25544), + 6: uint16(25546), + 7: uint16(25547), + 8: uint16(25548), + 9: uint16(25553), + 10: uint16(25555), + 11: uint16(25556), + 12: uint16(25557), + 13: uint16(25559), + 14: uint16(25560), + 15: uint16(25561), + 16: uint16(25562), + 17: uint16(25563), + 18: uint16(25564), + 19: uint16(25565), + 20: uint16(25567), + 21: uint16(25570), + 22: uint16(25572), + 23: uint16(25573), + 24: uint16(25574), + 25: uint16(25575), + 26: uint16(25576), + 27: uint16(25579), + 28: uint16(25580), + 29: uint16(25582), + 30: uint16(25583), + 31: uint16(25584), + 32: uint16(25585), + 33: uint16(25587), + 34: uint16(25589), + 35: uint16(25591), + 36: uint16(25593), + 37: uint16(25594), + 38: uint16(25595), + 39: uint16(25596), + 40: uint16(25598), + 41: uint16(25603), + 42: uint16(25604), + 43: uint16(25606), + 44: uint16(25607), + 45: uint16(25608), + 46: uint16(25609), + 47: uint16(25610), + 48: uint16(25613), + 49: uint16(25614), + 50: uint16(25617), + 51: uint16(25618), + 52: uint16(25621), + 53: uint16(25622), + 54: uint16(25623), + 55: uint16(25624), + 56: uint16(25625), + 57: uint16(25626), + 58: uint16(25629), + 59: uint16(25631), + 60: uint16(25634), + 61: uint16(25635), + 62: uint16(25636), + 63: uint16(25637), + 64: uint16(25639), + 65: uint16(25640), + 66: uint16(25641), + 67: uint16(25643), + 68: uint16(25646), + 69: uint16(25647), + 70: uint16(25648), + 71: uint16(25649), + 72: uint16(25650), + 73: uint16(25651), + 74: uint16(25653), + 75: uint16(25654), + 76: uint16(25655), + 77: uint16(25656), + 78: uint16(25657), + 79: uint16(25659), + 80: uint16(25660), + 81: uint16(25662), + 82: uint16(25664), + 83: uint16(25666), + 84: uint16(25667), + 85: uint16(25673), + 86: uint16(25675), + 87: uint16(25676), + 88: uint16(25677), + 89: uint16(25678), + 90: uint16(25679), + 91: uint16(25680), + 92: uint16(25681), + 93: uint16(25683), + 94: uint16(25685), + 95: uint16(25686), + 96: uint16(25687), + 97: uint16(25689), + 98: uint16(25690), + 99: uint16(25691), + 100: uint16(25692), + 101: uint16(25693), + 102: uint16(25695), + 103: uint16(25696), + 104: uint16(25697), + 105: uint16(25698), + 106: uint16(25699), + 107: uint16(25700), + 108: uint16(25701), + 109: uint16(25702), + 110: uint16(25704), + 111: uint16(25706), + 112: uint16(25707), + 113: uint16(25708), + 114: uint16(25710), + 115: uint16(25711), + 116: uint16(25712), + 117: uint16(25713), + 118: uint16(25714), + 119: uint16(25715), + 120: uint16(25716), + 121: uint16(25717), + 122: uint16(25718), + 123: uint16(25719), + 124: uint16(25723), + 125: uint16(25724), + 126: uint16(25725), + 127: uint16(25726), + 128: uint16(25727), + 129: uint16(25728), + 130: uint16(25729), + 131: uint16(25731), + 132: uint16(25734), + 133: uint16(25736), + 134: uint16(25737), + 135: uint16(25738), + 136: uint16(25739), + 137: uint16(25740), + 138: uint16(25741), + 139: uint16(25742), + 140: uint16(25743), + 141: uint16(25744), + 142: uint16(25747), + 143: uint16(25748), + 144: uint16(25751), + 145: uint16(25752), + 146: uint16(25754), + 147: uint16(25755), + 148: uint16(25756), + 149: uint16(25757), + 150: uint16(25759), + 151: uint16(25760), + 152: uint16(25761), + 153: uint16(25762), + 154: uint16(25763), + 155: uint16(25765), + 156: uint16(25766), + 157: uint16(25767), + 158: uint16(25768), + 159: uint16(25770), + 160: uint16(25771), + 161: uint16(25775), + 162: uint16(25777), + 163: uint16(25778), + 164: uint16(25779), + 165: uint16(25780), + 166: uint16(25782), + 167: uint16(25785), + 168: uint16(25787), + 169: uint16(25789), + 170: uint16(25790), + 171: uint16(25791), + 172: uint16(25793), + 173: uint16(25795), + 174: uint16(25796), + 175: uint16(25798), + 176: uint16(25799), + 177: uint16(25800), + 178: uint16(25801), + 179: uint16(25802), + 180: uint16(25803), + 181: uint16(25804), + 182: uint16(25807), + 183: uint16(25809), + 184: uint16(25811), + 185: uint16(25812), + 186: uint16(25813), + 187: uint16(25814), + 188: uint16(25817), + 189: uint16(25818), + }, + 19: { + 0: uint16(25819), + 1: uint16(25820), + 2: uint16(25821), + 3: uint16(25823), + 4: uint16(25824), + 5: uint16(25825), + 6: uint16(25827), + 7: uint16(25829), + 8: uint16(25831), + 9: uint16(25832), + 10: uint16(25833), + 11: uint16(25834), + 12: uint16(25835), + 13: uint16(25836), + 14: uint16(25837), + 15: uint16(25838), + 16: uint16(25839), + 17: uint16(25840), + 18: uint16(25841), + 19: uint16(25842), + 20: uint16(25843), + 21: uint16(25844), + 22: uint16(25845), + 23: uint16(25846), + 24: uint16(25847), + 25: uint16(25848), + 26: uint16(25849), + 27: uint16(25850), + 28: uint16(25851), + 29: uint16(25852), + 30: uint16(25853), + 31: uint16(25854), + 32: uint16(25855), + 33: uint16(25857), + 34: uint16(25858), + 35: uint16(25859), + 36: uint16(25860), + 37: uint16(25861), + 38: uint16(25862), + 39: uint16(25863), + 40: uint16(25864), + 41: uint16(25866), + 42: uint16(25867), + 43: uint16(25868), + 44: uint16(25869), + 45: uint16(25870), + 46: uint16(25871), + 47: uint16(25872), + 48: uint16(25873), + 49: uint16(25875), + 50: uint16(25876), + 51: uint16(25877), + 52: uint16(25878), + 53: uint16(25879), + 54: uint16(25881), + 55: uint16(25882), + 56: uint16(25883), + 57: uint16(25884), + 58: uint16(25885), + 59: uint16(25886), + 60: uint16(25887), + 61: uint16(25888), + 62: uint16(25889), + 63: uint16(25890), + 64: uint16(25891), + 65: uint16(25892), + 66: uint16(25894), + 67: uint16(25895), + 68: uint16(25896), + 69: uint16(25897), + 70: uint16(25898), + 71: uint16(25900), + 72: uint16(25901), + 73: uint16(25904), + 74: uint16(25905), + 75: uint16(25906), + 76: uint16(25907), + 77: uint16(25911), + 78: uint16(25914), + 79: uint16(25916), + 80: uint16(25917), + 81: uint16(25920), + 82: uint16(25921), + 83: uint16(25922), + 84: uint16(25923), + 85: uint16(25924), + 86: uint16(25926), + 87: uint16(25927), + 88: uint16(25930), + 89: uint16(25931), + 90: uint16(25933), + 91: uint16(25934), + 92: uint16(25936), + 93: uint16(25938), + 94: uint16(25939), + 95: uint16(25940), + 96: uint16(25943), + 97: uint16(25944), + 98: uint16(25946), + 99: uint16(25948), + 100: uint16(25951), + 101: uint16(25952), + 102: uint16(25953), + 103: uint16(25956), + 104: uint16(25957), + 105: uint16(25959), + 106: uint16(25960), + 107: uint16(25961), + 108: uint16(25962), + 109: uint16(25965), + 110: uint16(25966), + 111: uint16(25967), + 112: uint16(25969), + 113: uint16(25971), + 114: uint16(25973), + 115: uint16(25974), + 116: uint16(25976), + 117: uint16(25977), + 118: uint16(25978), + 119: uint16(25979), + 120: uint16(25980), + 121: uint16(25981), + 122: uint16(25982), + 123: uint16(25983), + 124: uint16(25984), + 125: uint16(25985), + 126: uint16(25986), + 127: uint16(25987), + 128: uint16(25988), + 129: uint16(25989), + 130: uint16(25990), + 131: uint16(25992), + 132: uint16(25993), + 133: uint16(25994), + 134: uint16(25997), + 135: uint16(25998), + 136: uint16(25999), + 137: uint16(26002), + 138: uint16(26004), + 139: uint16(26005), + 140: uint16(26006), + 141: uint16(26008), + 142: uint16(26010), + 143: uint16(26013), + 144: uint16(26014), + 145: uint16(26016), + 146: uint16(26018), + 147: uint16(26019), + 148: uint16(26022), + 149: uint16(26024), + 150: uint16(26026), + 151: uint16(26028), + 152: uint16(26030), + 153: uint16(26033), + 154: uint16(26034), + 155: uint16(26035), + 156: uint16(26036), + 157: uint16(26037), + 158: uint16(26038), + 159: uint16(26039), + 160: uint16(26040), + 161: uint16(26042), + 162: uint16(26043), + 163: uint16(26046), + 164: uint16(26047), + 165: uint16(26048), + 166: uint16(26050), + 167: uint16(26055), + 168: uint16(26056), + 169: uint16(26057), + 170: uint16(26058), + 171: uint16(26061), + 172: uint16(26064), + 173: uint16(26065), + 174: uint16(26067), + 175: uint16(26068), + 176: uint16(26069), + 177: uint16(26072), + 178: uint16(26073), + 179: uint16(26074), + 180: uint16(26075), + 181: uint16(26076), + 182: uint16(26077), + 183: uint16(26078), + 184: uint16(26079), + 185: uint16(26081), + 186: uint16(26083), + 187: uint16(26084), + 188: uint16(26090), + 189: uint16(26091), + }, + 20: { + 0: uint16(26098), + 1: uint16(26099), + 2: uint16(26100), + 3: uint16(26101), + 4: uint16(26104), + 5: uint16(26105), + 6: uint16(26107), + 7: uint16(26108), + 8: uint16(26109), + 9: uint16(26110), + 10: uint16(26111), + 11: uint16(26113), + 12: uint16(26116), + 13: uint16(26117), + 14: uint16(26119), + 15: uint16(26120), + 16: uint16(26121), + 17: uint16(26123), + 18: uint16(26125), + 19: uint16(26128), + 20: uint16(26129), + 21: uint16(26130), + 22: uint16(26134), + 23: uint16(26135), + 24: uint16(26136), + 25: uint16(26138), + 26: uint16(26139), + 27: uint16(26140), + 28: uint16(26142), + 29: uint16(26145), + 30: uint16(26146), + 31: uint16(26147), + 32: uint16(26148), + 33: uint16(26150), + 34: uint16(26153), + 35: uint16(26154), + 36: uint16(26155), + 37: uint16(26156), + 38: uint16(26158), + 39: uint16(26160), + 40: uint16(26162), + 41: uint16(26163), + 42: uint16(26167), + 43: uint16(26168), + 44: uint16(26169), + 45: uint16(26170), + 46: uint16(26171), + 47: uint16(26173), + 48: uint16(26175), + 49: uint16(26176), + 50: uint16(26178), + 51: uint16(26180), + 52: uint16(26181), + 53: uint16(26182), + 54: uint16(26183), + 55: uint16(26184), + 56: uint16(26185), + 57: uint16(26186), + 58: uint16(26189), + 59: uint16(26190), + 60: uint16(26192), + 61: uint16(26193), + 62: uint16(26200), + 63: uint16(26201), + 64: uint16(26203), + 65: uint16(26204), + 66: uint16(26205), + 67: uint16(26206), + 68: uint16(26208), + 69: uint16(26210), + 70: uint16(26211), + 71: uint16(26213), + 72: uint16(26215), + 73: uint16(26217), + 74: uint16(26218), + 75: uint16(26219), + 76: uint16(26220), + 77: uint16(26221), + 78: uint16(26225), + 79: uint16(26226), + 80: uint16(26227), + 81: uint16(26229), + 82: uint16(26232), + 83: uint16(26233), + 84: uint16(26235), + 85: uint16(26236), + 86: uint16(26237), + 87: uint16(26239), + 88: uint16(26240), + 89: uint16(26241), + 90: uint16(26243), + 91: uint16(26245), + 92: uint16(26246), + 93: uint16(26248), + 94: uint16(26249), + 95: uint16(26250), + 96: uint16(26251), + 97: uint16(26253), + 98: uint16(26254), + 99: uint16(26255), + 100: uint16(26256), + 101: uint16(26258), + 102: uint16(26259), + 103: uint16(26260), + 104: uint16(26261), + 105: uint16(26264), + 106: uint16(26265), + 107: uint16(26266), + 108: uint16(26267), + 109: uint16(26268), + 110: uint16(26270), + 111: uint16(26271), + 112: uint16(26272), + 113: uint16(26273), + 114: uint16(26274), + 115: uint16(26275), + 116: uint16(26276), + 117: uint16(26277), + 118: uint16(26278), + 119: uint16(26281), + 120: uint16(26282), + 121: uint16(26283), + 122: uint16(26284), + 123: uint16(26285), + 124: uint16(26287), + 125: uint16(26288), + 126: uint16(26289), + 127: uint16(26290), + 128: uint16(26291), + 129: uint16(26293), + 130: uint16(26294), + 131: uint16(26295), + 132: uint16(26296), + 133: uint16(26298), + 134: uint16(26299), + 135: uint16(26300), + 136: uint16(26301), + 137: uint16(26303), + 138: uint16(26304), + 139: uint16(26305), + 140: uint16(26306), + 141: uint16(26307), + 142: uint16(26308), + 143: uint16(26309), + 144: uint16(26310), + 145: uint16(26311), + 146: uint16(26312), + 147: uint16(26313), + 148: uint16(26314), + 149: uint16(26315), + 150: uint16(26316), + 151: uint16(26317), + 152: uint16(26318), + 153: uint16(26319), + 154: uint16(26320), + 155: uint16(26321), + 156: uint16(26322), + 157: uint16(26323), + 158: uint16(26324), + 159: uint16(26325), + 160: uint16(26326), + 161: uint16(26327), + 162: uint16(26328), + 163: uint16(26330), + 164: uint16(26334), + 165: uint16(26335), + 166: uint16(26336), + 167: uint16(26337), + 168: uint16(26338), + 169: uint16(26339), + 170: uint16(26340), + 171: uint16(26341), + 172: uint16(26343), + 173: uint16(26344), + 174: uint16(26346), + 175: uint16(26347), + 176: uint16(26348), + 177: uint16(26349), + 178: uint16(26350), + 179: uint16(26351), + 180: uint16(26353), + 181: uint16(26357), + 182: uint16(26358), + 183: uint16(26360), + 184: uint16(26362), + 185: uint16(26363), + 186: uint16(26365), + 187: uint16(26369), + 188: uint16(26370), + 189: uint16(26371), + }, + 21: { + 0: uint16(26372), + 1: uint16(26373), + 2: uint16(26374), + 3: uint16(26375), + 4: uint16(26380), + 5: uint16(26382), + 6: uint16(26383), + 7: uint16(26385), + 8: uint16(26386), + 9: uint16(26387), + 10: uint16(26390), + 11: uint16(26392), + 12: uint16(26393), + 13: uint16(26394), + 14: uint16(26396), + 15: uint16(26398), + 16: uint16(26400), + 17: uint16(26401), + 18: uint16(26402), + 19: uint16(26403), + 20: uint16(26404), + 21: uint16(26405), + 22: uint16(26407), + 23: uint16(26409), + 24: uint16(26414), + 25: uint16(26416), + 26: uint16(26418), + 27: uint16(26419), + 28: uint16(26422), + 29: uint16(26423), + 30: uint16(26424), + 31: uint16(26425), + 32: uint16(26427), + 33: uint16(26428), + 34: uint16(26430), + 35: uint16(26431), + 36: uint16(26433), + 37: uint16(26436), + 38: uint16(26437), + 39: uint16(26439), + 40: uint16(26442), + 41: uint16(26443), + 42: uint16(26445), + 43: uint16(26450), + 44: uint16(26452), + 45: uint16(26453), + 46: uint16(26455), + 47: uint16(26456), + 48: uint16(26457), + 49: uint16(26458), + 50: uint16(26459), + 51: uint16(26461), + 52: uint16(26466), + 53: uint16(26467), + 54: uint16(26468), + 55: uint16(26470), + 56: uint16(26471), + 57: uint16(26475), + 58: uint16(26476), + 59: uint16(26478), + 60: uint16(26481), + 61: uint16(26484), + 62: uint16(26486), + 63: uint16(26488), + 64: uint16(26489), + 65: uint16(26490), + 66: uint16(26491), + 67: uint16(26493), + 68: uint16(26496), + 69: uint16(26498), + 70: uint16(26499), + 71: uint16(26501), + 72: uint16(26502), + 73: uint16(26504), + 74: uint16(26506), + 75: uint16(26508), + 76: uint16(26509), + 77: uint16(26510), + 78: uint16(26511), + 79: uint16(26513), + 80: uint16(26514), + 81: uint16(26515), + 82: uint16(26516), + 83: uint16(26518), + 84: uint16(26521), + 85: uint16(26523), + 86: uint16(26527), + 87: uint16(26528), + 88: uint16(26529), + 89: uint16(26532), + 90: uint16(26534), + 91: uint16(26537), + 92: uint16(26540), + 93: uint16(26542), + 94: uint16(26545), + 95: uint16(26546), + 96: uint16(26548), + 97: uint16(26553), + 98: uint16(26554), + 99: uint16(26555), + 100: uint16(26556), + 101: uint16(26557), + 102: uint16(26558), + 103: uint16(26559), + 104: uint16(26560), + 105: uint16(26562), + 106: uint16(26565), + 107: uint16(26566), + 108: uint16(26567), + 109: uint16(26568), + 110: uint16(26569), + 111: uint16(26570), + 112: uint16(26571), + 113: uint16(26572), + 114: uint16(26573), + 115: uint16(26574), + 116: uint16(26581), + 117: uint16(26582), + 118: uint16(26583), + 119: uint16(26587), + 120: uint16(26591), + 121: uint16(26593), + 122: uint16(26595), + 123: uint16(26596), + 124: uint16(26598), + 125: uint16(26599), + 126: uint16(26600), + 127: uint16(26602), + 128: uint16(26603), + 129: uint16(26605), + 130: uint16(26606), + 131: uint16(26610), + 132: uint16(26613), + 133: uint16(26614), + 134: uint16(26615), + 135: uint16(26616), + 136: uint16(26617), + 137: uint16(26618), + 138: uint16(26619), + 139: uint16(26620), + 140: uint16(26622), + 141: uint16(26625), + 142: uint16(26626), + 143: uint16(26627), + 144: uint16(26628), + 145: uint16(26630), + 146: uint16(26637), + 147: uint16(26640), + 148: uint16(26642), + 149: uint16(26644), + 150: uint16(26645), + 151: uint16(26648), + 152: uint16(26649), + 153: uint16(26650), + 154: uint16(26651), + 155: uint16(26652), + 156: uint16(26654), + 157: uint16(26655), + 158: uint16(26656), + 159: uint16(26658), + 160: uint16(26659), + 161: uint16(26660), + 162: uint16(26661), + 163: uint16(26662), + 164: uint16(26663), + 165: uint16(26664), + 166: uint16(26667), + 167: uint16(26668), + 168: uint16(26669), + 169: uint16(26670), + 170: uint16(26671), + 171: uint16(26672), + 172: uint16(26673), + 173: uint16(26676), + 174: uint16(26677), + 175: uint16(26678), + 176: uint16(26682), + 177: uint16(26683), + 178: uint16(26687), + 179: uint16(26695), + 180: uint16(26699), + 181: uint16(26701), + 182: uint16(26703), + 183: uint16(26706), + 184: uint16(26710), + 185: uint16(26711), + 186: uint16(26712), + 187: uint16(26713), + 188: uint16(26714), + 189: uint16(26715), + }, + 22: { + 0: uint16(26716), + 1: uint16(26717), + 2: uint16(26718), + 3: uint16(26719), + 4: uint16(26730), + 5: uint16(26732), + 6: uint16(26733), + 7: uint16(26734), + 8: uint16(26735), + 9: uint16(26736), + 10: uint16(26737), + 11: uint16(26738), + 12: uint16(26739), + 13: uint16(26741), + 14: uint16(26744), + 15: uint16(26745), + 16: uint16(26746), + 17: uint16(26747), + 18: uint16(26748), + 19: uint16(26749), + 20: uint16(26750), + 21: uint16(26751), + 22: uint16(26752), + 23: uint16(26754), + 24: uint16(26756), + 25: uint16(26759), + 26: uint16(26760), + 27: uint16(26761), + 28: uint16(26762), + 29: uint16(26763), + 30: uint16(26764), + 31: uint16(26765), + 32: uint16(26766), + 33: uint16(26768), + 34: uint16(26769), + 35: uint16(26770), + 36: uint16(26772), + 37: uint16(26773), + 38: uint16(26774), + 39: uint16(26776), + 40: uint16(26777), + 41: uint16(26778), + 42: uint16(26779), + 43: uint16(26780), + 44: uint16(26781), + 45: uint16(26782), + 46: uint16(26783), + 47: uint16(26784), + 48: uint16(26785), + 49: uint16(26787), + 50: uint16(26788), + 51: uint16(26789), + 52: uint16(26793), + 53: uint16(26794), + 54: uint16(26795), + 55: uint16(26796), + 56: uint16(26798), + 57: uint16(26801), + 58: uint16(26802), + 59: uint16(26804), + 60: uint16(26806), + 61: uint16(26807), + 62: uint16(26808), + 63: uint16(26809), + 64: uint16(26810), + 65: uint16(26811), + 66: uint16(26812), + 67: uint16(26813), + 68: uint16(26814), + 69: uint16(26815), + 70: uint16(26817), + 71: uint16(26819), + 72: uint16(26820), + 73: uint16(26821), + 74: uint16(26822), + 75: uint16(26823), + 76: uint16(26824), + 77: uint16(26826), + 78: uint16(26828), + 79: uint16(26830), + 80: uint16(26831), + 81: uint16(26832), + 82: uint16(26833), + 83: uint16(26835), + 84: uint16(26836), + 85: uint16(26838), + 86: uint16(26839), + 87: uint16(26841), + 88: uint16(26843), + 89: uint16(26844), + 90: uint16(26845), + 91: uint16(26846), + 92: uint16(26847), + 93: uint16(26849), + 94: uint16(26850), + 95: uint16(26852), + 96: uint16(26853), + 97: uint16(26854), + 98: uint16(26855), + 99: uint16(26856), + 100: uint16(26857), + 101: uint16(26858), + 102: uint16(26859), + 103: uint16(26860), + 104: uint16(26861), + 105: uint16(26863), + 106: uint16(26866), + 107: uint16(26867), + 108: uint16(26868), + 109: uint16(26870), + 110: uint16(26871), + 111: uint16(26872), + 112: uint16(26875), + 113: uint16(26877), + 114: uint16(26878), + 115: uint16(26879), + 116: uint16(26880), + 117: uint16(26882), + 118: uint16(26883), + 119: uint16(26884), + 120: uint16(26886), + 121: uint16(26887), + 122: uint16(26888), + 123: uint16(26889), + 124: uint16(26890), + 125: uint16(26892), + 126: uint16(26895), + 127: uint16(26897), + 128: uint16(26899), + 129: uint16(26900), + 130: uint16(26901), + 131: uint16(26902), + 132: uint16(26903), + 133: uint16(26904), + 134: uint16(26905), + 135: uint16(26906), + 136: uint16(26907), + 137: uint16(26908), + 138: uint16(26909), + 139: uint16(26910), + 140: uint16(26913), + 141: uint16(26914), + 142: uint16(26915), + 143: uint16(26917), + 144: uint16(26918), + 145: uint16(26919), + 146: uint16(26920), + 147: uint16(26921), + 148: uint16(26922), + 149: uint16(26923), + 150: uint16(26924), + 151: uint16(26926), + 152: uint16(26927), + 153: uint16(26929), + 154: uint16(26930), + 155: uint16(26931), + 156: uint16(26933), + 157: uint16(26934), + 158: uint16(26935), + 159: uint16(26936), + 160: uint16(26938), + 161: uint16(26939), + 162: uint16(26940), + 163: uint16(26942), + 164: uint16(26944), + 165: uint16(26945), + 166: uint16(26947), + 167: uint16(26948), + 168: uint16(26949), + 169: uint16(26950), + 170: uint16(26951), + 171: uint16(26952), + 172: uint16(26953), + 173: uint16(26954), + 174: uint16(26955), + 175: uint16(26956), + 176: uint16(26957), + 177: uint16(26958), + 178: uint16(26959), + 179: uint16(26960), + 180: uint16(26961), + 181: uint16(26962), + 182: uint16(26963), + 183: uint16(26965), + 184: uint16(26966), + 185: uint16(26968), + 186: uint16(26969), + 187: uint16(26971), + 188: uint16(26972), + 189: uint16(26975), + }, + 23: { + 0: uint16(26977), + 1: uint16(26978), + 2: uint16(26980), + 3: uint16(26981), + 4: uint16(26983), + 5: uint16(26984), + 6: uint16(26985), + 7: uint16(26986), + 8: uint16(26988), + 9: uint16(26989), + 10: uint16(26991), + 11: uint16(26992), + 12: uint16(26994), + 13: uint16(26995), + 14: uint16(26996), + 15: uint16(26997), + 16: uint16(26998), + 17: uint16(27002), + 18: uint16(27003), + 19: uint16(27005), + 20: uint16(27006), + 21: uint16(27007), + 22: uint16(27009), + 23: uint16(27011), + 24: uint16(27013), + 25: uint16(27018), + 26: uint16(27019), + 27: uint16(27020), + 28: uint16(27022), + 29: uint16(27023), + 30: uint16(27024), + 31: uint16(27025), + 32: uint16(27026), + 33: uint16(27027), + 34: uint16(27030), + 35: uint16(27031), + 36: uint16(27033), + 37: uint16(27034), + 38: uint16(27037), + 39: uint16(27038), + 40: uint16(27039), + 41: uint16(27040), + 42: uint16(27041), + 43: uint16(27042), + 44: uint16(27043), + 45: uint16(27044), + 46: uint16(27045), + 47: uint16(27046), + 48: uint16(27049), + 49: uint16(27050), + 50: uint16(27052), + 51: uint16(27054), + 52: uint16(27055), + 53: uint16(27056), + 54: uint16(27058), + 55: uint16(27059), + 56: uint16(27061), + 57: uint16(27062), + 58: uint16(27064), + 59: uint16(27065), + 60: uint16(27066), + 61: uint16(27068), + 62: uint16(27069), + 63: uint16(27070), + 64: uint16(27071), + 65: uint16(27072), + 66: uint16(27074), + 67: uint16(27075), + 68: uint16(27076), + 69: uint16(27077), + 70: uint16(27078), + 71: uint16(27079), + 72: uint16(27080), + 73: uint16(27081), + 74: uint16(27083), + 75: uint16(27085), + 76: uint16(27087), + 77: uint16(27089), + 78: uint16(27090), + 79: uint16(27091), + 80: uint16(27093), + 81: uint16(27094), + 82: uint16(27095), + 83: uint16(27096), + 84: uint16(27097), + 85: uint16(27098), + 86: uint16(27100), + 87: uint16(27101), + 88: uint16(27102), + 89: uint16(27105), + 90: uint16(27106), + 91: uint16(27107), + 92: uint16(27108), + 93: uint16(27109), + 94: uint16(27110), + 95: uint16(27111), + 96: uint16(27112), + 97: uint16(27113), + 98: uint16(27114), + 99: uint16(27115), + 100: uint16(27116), + 101: uint16(27118), + 102: uint16(27119), + 103: uint16(27120), + 104: uint16(27121), + 105: uint16(27123), + 106: uint16(27124), + 107: uint16(27125), + 108: uint16(27126), + 109: uint16(27127), + 110: uint16(27128), + 111: uint16(27129), + 112: uint16(27130), + 113: uint16(27131), + 114: uint16(27132), + 115: uint16(27134), + 116: uint16(27136), + 117: uint16(27137), + 118: uint16(27138), + 119: uint16(27139), + 120: uint16(27140), + 121: uint16(27141), + 122: uint16(27142), + 123: uint16(27143), + 124: uint16(27144), + 125: uint16(27145), + 126: uint16(27147), + 127: uint16(27148), + 128: uint16(27149), + 129: uint16(27150), + 130: uint16(27151), + 131: uint16(27152), + 132: uint16(27153), + 133: uint16(27154), + 134: uint16(27155), + 135: uint16(27156), + 136: uint16(27157), + 137: uint16(27158), + 138: uint16(27161), + 139: uint16(27162), + 140: uint16(27163), + 141: uint16(27164), + 142: uint16(27165), + 143: uint16(27166), + 144: uint16(27168), + 145: uint16(27170), + 146: uint16(27171), + 147: uint16(27172), + 148: uint16(27173), + 149: uint16(27174), + 150: uint16(27175), + 151: uint16(27177), + 152: uint16(27179), + 153: uint16(27180), + 154: uint16(27181), + 155: uint16(27182), + 156: uint16(27184), + 157: uint16(27186), + 158: uint16(27187), + 159: uint16(27188), + 160: uint16(27190), + 161: uint16(27191), + 162: uint16(27192), + 163: uint16(27193), + 164: uint16(27194), + 165: uint16(27195), + 166: uint16(27196), + 167: uint16(27199), + 168: uint16(27200), + 169: uint16(27201), + 170: uint16(27202), + 171: uint16(27203), + 172: uint16(27205), + 173: uint16(27206), + 174: uint16(27208), + 175: uint16(27209), + 176: uint16(27210), + 177: uint16(27211), + 178: uint16(27212), + 179: uint16(27213), + 180: uint16(27214), + 181: uint16(27215), + 182: uint16(27217), + 183: uint16(27218), + 184: uint16(27219), + 185: uint16(27220), + 186: uint16(27221), + 187: uint16(27222), + 188: uint16(27223), + 189: uint16(27226), + }, + 24: { + 0: uint16(27228), + 1: uint16(27229), + 2: uint16(27230), + 3: uint16(27231), + 4: uint16(27232), + 5: uint16(27234), + 6: uint16(27235), + 7: uint16(27236), + 8: uint16(27238), + 9: uint16(27239), + 10: uint16(27240), + 11: uint16(27241), + 12: uint16(27242), + 13: uint16(27243), + 14: uint16(27244), + 15: uint16(27245), + 16: uint16(27246), + 17: uint16(27247), + 18: uint16(27248), + 19: uint16(27250), + 20: uint16(27251), + 21: uint16(27252), + 22: uint16(27253), + 23: uint16(27254), + 24: uint16(27255), + 25: uint16(27256), + 26: uint16(27258), + 27: uint16(27259), + 28: uint16(27261), + 29: uint16(27262), + 30: uint16(27263), + 31: uint16(27265), + 32: uint16(27266), + 33: uint16(27267), + 34: uint16(27269), + 35: uint16(27270), + 36: uint16(27271), + 37: uint16(27272), + 38: uint16(27273), + 39: uint16(27274), + 40: uint16(27275), + 41: uint16(27276), + 42: uint16(27277), + 43: uint16(27279), + 44: uint16(27282), + 45: uint16(27283), + 46: uint16(27284), + 47: uint16(27285), + 48: uint16(27286), + 49: uint16(27288), + 50: uint16(27289), + 51: uint16(27290), + 52: uint16(27291), + 53: uint16(27292), + 54: uint16(27293), + 55: uint16(27294), + 56: uint16(27295), + 57: uint16(27297), + 58: uint16(27298), + 59: uint16(27299), + 60: uint16(27300), + 61: uint16(27301), + 62: uint16(27302), + 63: uint16(27303), + 64: uint16(27304), + 65: uint16(27306), + 66: uint16(27309), + 67: uint16(27310), + 68: uint16(27311), + 69: uint16(27312), + 70: uint16(27313), + 71: uint16(27314), + 72: uint16(27315), + 73: uint16(27316), + 74: uint16(27317), + 75: uint16(27318), + 76: uint16(27319), + 77: uint16(27320), + 78: uint16(27321), + 79: uint16(27322), + 80: uint16(27323), + 81: uint16(27324), + 82: uint16(27325), + 83: uint16(27326), + 84: uint16(27327), + 85: uint16(27328), + 86: uint16(27329), + 87: uint16(27330), + 88: uint16(27331), + 89: uint16(27332), + 90: uint16(27333), + 91: uint16(27334), + 92: uint16(27335), + 93: uint16(27336), + 94: uint16(27337), + 95: uint16(27338), + 96: uint16(27339), + 97: uint16(27340), + 98: uint16(27341), + 99: uint16(27342), + 100: uint16(27343), + 101: uint16(27344), + 102: uint16(27345), + 103: uint16(27346), + 104: uint16(27347), + 105: uint16(27348), + 106: uint16(27349), + 107: uint16(27350), + 108: uint16(27351), + 109: uint16(27352), + 110: uint16(27353), + 111: uint16(27354), + 112: uint16(27355), + 113: uint16(27356), + 114: uint16(27357), + 115: uint16(27358), + 116: uint16(27359), + 117: uint16(27360), + 118: uint16(27361), + 119: uint16(27362), + 120: uint16(27363), + 121: uint16(27364), + 122: uint16(27365), + 123: uint16(27366), + 124: uint16(27367), + 125: uint16(27368), + 126: uint16(27369), + 127: uint16(27370), + 128: uint16(27371), + 129: uint16(27372), + 130: uint16(27373), + 131: uint16(27374), + 132: uint16(27375), + 133: uint16(27376), + 134: uint16(27377), + 135: uint16(27378), + 136: uint16(27379), + 137: uint16(27380), + 138: uint16(27381), + 139: uint16(27382), + 140: uint16(27383), + 141: uint16(27384), + 142: uint16(27385), + 143: uint16(27386), + 144: uint16(27387), + 145: uint16(27388), + 146: uint16(27389), + 147: uint16(27390), + 148: uint16(27391), + 149: uint16(27392), + 150: uint16(27393), + 151: uint16(27394), + 152: uint16(27395), + 153: uint16(27396), + 154: uint16(27397), + 155: uint16(27398), + 156: uint16(27399), + 157: uint16(27400), + 158: uint16(27401), + 159: uint16(27402), + 160: uint16(27403), + 161: uint16(27404), + 162: uint16(27405), + 163: uint16(27406), + 164: uint16(27407), + 165: uint16(27408), + 166: uint16(27409), + 167: uint16(27410), + 168: uint16(27411), + 169: uint16(27412), + 170: uint16(27413), + 171: uint16(27414), + 172: uint16(27415), + 173: uint16(27416), + 174: uint16(27417), + 175: uint16(27418), + 176: uint16(27419), + 177: uint16(27420), + 178: uint16(27421), + 179: uint16(27422), + 180: uint16(27423), + 181: uint16(27429), + 182: uint16(27430), + 183: uint16(27432), + 184: uint16(27433), + 185: uint16(27434), + 186: uint16(27435), + 187: uint16(27436), + 188: uint16(27437), + 189: uint16(27438), + }, + 25: { + 0: uint16(27439), + 1: uint16(27440), + 2: uint16(27441), + 3: uint16(27443), + 4: uint16(27444), + 5: uint16(27445), + 6: uint16(27446), + 7: uint16(27448), + 8: uint16(27451), + 9: uint16(27452), + 10: uint16(27453), + 11: uint16(27455), + 12: uint16(27456), + 13: uint16(27457), + 14: uint16(27458), + 15: uint16(27460), + 16: uint16(27461), + 17: uint16(27464), + 18: uint16(27466), + 19: uint16(27467), + 20: uint16(27469), + 21: uint16(27470), + 22: uint16(27471), + 23: uint16(27472), + 24: uint16(27473), + 25: uint16(27474), + 26: uint16(27475), + 27: uint16(27476), + 28: uint16(27477), + 29: uint16(27478), + 30: uint16(27479), + 31: uint16(27480), + 32: uint16(27482), + 33: uint16(27483), + 34: uint16(27484), + 35: uint16(27485), + 36: uint16(27486), + 37: uint16(27487), + 38: uint16(27488), + 39: uint16(27489), + 40: uint16(27496), + 41: uint16(27497), + 42: uint16(27499), + 43: uint16(27500), + 44: uint16(27501), + 45: uint16(27502), + 46: uint16(27503), + 47: uint16(27504), + 48: uint16(27505), + 49: uint16(27506), + 50: uint16(27507), + 51: uint16(27508), + 52: uint16(27509), + 53: uint16(27510), + 54: uint16(27511), + 55: uint16(27512), + 56: uint16(27514), + 57: uint16(27517), + 58: uint16(27518), + 59: uint16(27519), + 60: uint16(27520), + 61: uint16(27525), + 62: uint16(27528), + 63: uint16(27532), + 64: uint16(27534), + 65: uint16(27535), + 66: uint16(27536), + 67: uint16(27537), + 68: uint16(27540), + 69: uint16(27541), + 70: uint16(27543), + 71: uint16(27544), + 72: uint16(27545), + 73: uint16(27548), + 74: uint16(27549), + 75: uint16(27550), + 76: uint16(27551), + 77: uint16(27552), + 78: uint16(27554), + 79: uint16(27555), + 80: uint16(27556), + 81: uint16(27557), + 82: uint16(27558), + 83: uint16(27559), + 84: uint16(27560), + 85: uint16(27561), + 86: uint16(27563), + 87: uint16(27564), + 88: uint16(27565), + 89: uint16(27566), + 90: uint16(27567), + 91: uint16(27568), + 92: uint16(27569), + 93: uint16(27570), + 94: uint16(27574), + 95: uint16(27576), + 96: uint16(27577), + 97: uint16(27578), + 98: uint16(27579), + 99: uint16(27580), + 100: uint16(27581), + 101: uint16(27582), + 102: uint16(27584), + 103: uint16(27587), + 104: uint16(27588), + 105: uint16(27590), + 106: uint16(27591), + 107: uint16(27592), + 108: uint16(27593), + 109: uint16(27594), + 110: uint16(27596), + 111: uint16(27598), + 112: uint16(27600), + 113: uint16(27601), + 114: uint16(27608), + 115: uint16(27610), + 116: uint16(27612), + 117: uint16(27613), + 118: uint16(27614), + 119: uint16(27615), + 120: uint16(27616), + 121: uint16(27618), + 122: uint16(27619), + 123: uint16(27620), + 124: uint16(27621), + 125: uint16(27622), + 126: uint16(27623), + 127: uint16(27624), + 128: uint16(27625), + 129: uint16(27628), + 130: uint16(27629), + 131: uint16(27630), + 132: uint16(27632), + 133: uint16(27633), + 134: uint16(27634), + 135: uint16(27636), + 136: uint16(27638), + 137: uint16(27639), + 138: uint16(27640), + 139: uint16(27642), + 140: uint16(27643), + 141: uint16(27644), + 142: uint16(27646), + 143: uint16(27647), + 144: uint16(27648), + 145: uint16(27649), + 146: uint16(27650), + 147: uint16(27651), + 148: uint16(27652), + 149: uint16(27656), + 150: uint16(27657), + 151: uint16(27658), + 152: uint16(27659), + 153: uint16(27660), + 154: uint16(27662), + 155: uint16(27666), + 156: uint16(27671), + 157: uint16(27676), + 158: uint16(27677), + 159: uint16(27678), + 160: uint16(27680), + 161: uint16(27683), + 162: uint16(27685), + 163: uint16(27691), + 164: uint16(27692), + 165: uint16(27693), + 166: uint16(27697), + 167: uint16(27699), + 168: uint16(27702), + 169: uint16(27703), + 170: uint16(27705), + 171: uint16(27706), + 172: uint16(27707), + 173: uint16(27708), + 174: uint16(27710), + 175: uint16(27711), + 176: uint16(27715), + 177: uint16(27716), + 178: uint16(27717), + 179: uint16(27720), + 180: uint16(27723), + 181: uint16(27724), + 182: uint16(27725), + 183: uint16(27726), + 184: uint16(27727), + 185: uint16(27729), + 186: uint16(27730), + 187: uint16(27731), + 188: uint16(27734), + 189: uint16(27736), + }, + 26: { + 0: uint16(27737), + 1: uint16(27738), + 2: uint16(27746), + 3: uint16(27747), + 4: uint16(27749), + 5: uint16(27750), + 6: uint16(27751), + 7: uint16(27755), + 8: uint16(27756), + 9: uint16(27757), + 10: uint16(27758), + 11: uint16(27759), + 12: uint16(27761), + 13: uint16(27763), + 14: uint16(27765), + 15: uint16(27767), + 16: uint16(27768), + 17: uint16(27770), + 18: uint16(27771), + 19: uint16(27772), + 20: uint16(27775), + 21: uint16(27776), + 22: uint16(27780), + 23: uint16(27783), + 24: uint16(27786), + 25: uint16(27787), + 26: uint16(27789), + 27: uint16(27790), + 28: uint16(27793), + 29: uint16(27794), + 30: uint16(27797), + 31: uint16(27798), + 32: uint16(27799), + 33: uint16(27800), + 34: uint16(27802), + 35: uint16(27804), + 36: uint16(27805), + 37: uint16(27806), + 38: uint16(27808), + 39: uint16(27810), + 40: uint16(27816), + 41: uint16(27820), + 42: uint16(27823), + 43: uint16(27824), + 44: uint16(27828), + 45: uint16(27829), + 46: uint16(27830), + 47: uint16(27831), + 48: uint16(27834), + 49: uint16(27840), + 50: uint16(27841), + 51: uint16(27842), + 52: uint16(27843), + 53: uint16(27846), + 54: uint16(27847), + 55: uint16(27848), + 56: uint16(27851), + 57: uint16(27853), + 58: uint16(27854), + 59: uint16(27855), + 60: uint16(27857), + 61: uint16(27858), + 62: uint16(27864), + 63: uint16(27865), + 64: uint16(27866), + 65: uint16(27868), + 66: uint16(27869), + 67: uint16(27871), + 68: uint16(27876), + 69: uint16(27878), + 70: uint16(27879), + 71: uint16(27881), + 72: uint16(27884), + 73: uint16(27885), + 74: uint16(27890), + 75: uint16(27892), + 76: uint16(27897), + 77: uint16(27903), + 78: uint16(27904), + 79: uint16(27906), + 80: uint16(27907), + 81: uint16(27909), + 82: uint16(27910), + 83: uint16(27912), + 84: uint16(27913), + 85: uint16(27914), + 86: uint16(27917), + 87: uint16(27919), + 88: uint16(27920), + 89: uint16(27921), + 90: uint16(27923), + 91: uint16(27924), + 92: uint16(27925), + 93: uint16(27926), + 94: uint16(27928), + 95: uint16(27932), + 96: uint16(27933), + 97: uint16(27935), + 98: uint16(27936), + 99: uint16(27937), + 100: uint16(27938), + 101: uint16(27939), + 102: uint16(27940), + 103: uint16(27942), + 104: uint16(27944), + 105: uint16(27945), + 106: uint16(27948), + 107: uint16(27949), + 108: uint16(27951), + 109: uint16(27952), + 110: uint16(27956), + 111: uint16(27958), + 112: uint16(27959), + 113: uint16(27960), + 114: uint16(27962), + 115: uint16(27967), + 116: uint16(27968), + 117: uint16(27970), + 118: uint16(27972), + 119: uint16(27977), + 120: uint16(27980), + 121: uint16(27984), + 122: uint16(27989), + 123: uint16(27990), + 124: uint16(27991), + 125: uint16(27992), + 126: uint16(27995), + 127: uint16(27997), + 128: uint16(27999), + 129: uint16(28001), + 130: uint16(28002), + 131: uint16(28004), + 132: uint16(28005), + 133: uint16(28007), + 134: uint16(28008), + 135: uint16(28011), + 136: uint16(28012), + 137: uint16(28013), + 138: uint16(28016), + 139: uint16(28017), + 140: uint16(28018), + 141: uint16(28019), + 142: uint16(28021), + 143: uint16(28022), + 144: uint16(28025), + 145: uint16(28026), + 146: uint16(28027), + 147: uint16(28029), + 148: uint16(28030), + 149: uint16(28031), + 150: uint16(28032), + 151: uint16(28033), + 152: uint16(28035), + 153: uint16(28036), + 154: uint16(28038), + 155: uint16(28039), + 156: uint16(28042), + 157: uint16(28043), + 158: uint16(28045), + 159: uint16(28047), + 160: uint16(28048), + 161: uint16(28050), + 162: uint16(28054), + 163: uint16(28055), + 164: uint16(28056), + 165: uint16(28057), + 166: uint16(28058), + 167: uint16(28060), + 168: uint16(28066), + 169: uint16(28069), + 170: uint16(28076), + 171: uint16(28077), + 172: uint16(28080), + 173: uint16(28081), + 174: uint16(28083), + 175: uint16(28084), + 176: uint16(28086), + 177: uint16(28087), + 178: uint16(28089), + 179: uint16(28090), + 180: uint16(28091), + 181: uint16(28092), + 182: uint16(28093), + 183: uint16(28094), + 184: uint16(28097), + 185: uint16(28098), + 186: uint16(28099), + 187: uint16(28104), + 188: uint16(28105), + 189: uint16(28106), + }, + 27: { + 0: uint16(28109), + 1: uint16(28110), + 2: uint16(28111), + 3: uint16(28112), + 4: uint16(28114), + 5: uint16(28115), + 6: uint16(28116), + 7: uint16(28117), + 8: uint16(28119), + 9: uint16(28122), + 10: uint16(28123), + 11: uint16(28124), + 12: uint16(28127), + 13: uint16(28130), + 14: uint16(28131), + 15: uint16(28133), + 16: uint16(28135), + 17: uint16(28136), + 18: uint16(28137), + 19: uint16(28138), + 20: uint16(28141), + 21: uint16(28143), + 22: uint16(28144), + 23: uint16(28146), + 24: uint16(28148), + 25: uint16(28149), + 26: uint16(28150), + 27: uint16(28152), + 28: uint16(28154), + 29: uint16(28157), + 30: uint16(28158), + 31: uint16(28159), + 32: uint16(28160), + 33: uint16(28161), + 34: uint16(28162), + 35: uint16(28163), + 36: uint16(28164), + 37: uint16(28166), + 38: uint16(28167), + 39: uint16(28168), + 40: uint16(28169), + 41: uint16(28171), + 42: uint16(28175), + 43: uint16(28178), + 44: uint16(28179), + 45: uint16(28181), + 46: uint16(28184), + 47: uint16(28185), + 48: uint16(28187), + 49: uint16(28188), + 50: uint16(28190), + 51: uint16(28191), + 52: uint16(28194), + 53: uint16(28198), + 54: uint16(28199), + 55: uint16(28200), + 56: uint16(28202), + 57: uint16(28204), + 58: uint16(28206), + 59: uint16(28208), + 60: uint16(28209), + 61: uint16(28211), + 62: uint16(28213), + 63: uint16(28214), + 64: uint16(28215), + 65: uint16(28217), + 66: uint16(28219), + 67: uint16(28220), + 68: uint16(28221), + 69: uint16(28222), + 70: uint16(28223), + 71: uint16(28224), + 72: uint16(28225), + 73: uint16(28226), + 74: uint16(28229), + 75: uint16(28230), + 76: uint16(28231), + 77: uint16(28232), + 78: uint16(28233), + 79: uint16(28234), + 80: uint16(28235), + 81: uint16(28236), + 82: uint16(28239), + 83: uint16(28240), + 84: uint16(28241), + 85: uint16(28242), + 86: uint16(28245), + 87: uint16(28247), + 88: uint16(28249), + 89: uint16(28250), + 90: uint16(28252), + 91: uint16(28253), + 92: uint16(28254), + 93: uint16(28256), + 94: uint16(28257), + 95: uint16(28258), + 96: uint16(28259), + 97: uint16(28260), + 98: uint16(28261), + 99: uint16(28262), + 100: uint16(28263), + 101: uint16(28264), + 102: uint16(28265), + 103: uint16(28266), + 104: uint16(28268), + 105: uint16(28269), + 106: uint16(28271), + 107: uint16(28272), + 108: uint16(28273), + 109: uint16(28274), + 110: uint16(28275), + 111: uint16(28276), + 112: uint16(28277), + 113: uint16(28278), + 114: uint16(28279), + 115: uint16(28280), + 116: uint16(28281), + 117: uint16(28282), + 118: uint16(28283), + 119: uint16(28284), + 120: uint16(28285), + 121: uint16(28288), + 122: uint16(28289), + 123: uint16(28290), + 124: uint16(28292), + 125: uint16(28295), + 126: uint16(28296), + 127: uint16(28298), + 128: uint16(28299), + 129: uint16(28300), + 130: uint16(28301), + 131: uint16(28302), + 132: uint16(28305), + 133: uint16(28306), + 134: uint16(28307), + 135: uint16(28308), + 136: uint16(28309), + 137: uint16(28310), + 138: uint16(28311), + 139: uint16(28313), + 140: uint16(28314), + 141: uint16(28315), + 142: uint16(28317), + 143: uint16(28318), + 144: uint16(28320), + 145: uint16(28321), + 146: uint16(28323), + 147: uint16(28324), + 148: uint16(28326), + 149: uint16(28328), + 150: uint16(28329), + 151: uint16(28331), + 152: uint16(28332), + 153: uint16(28333), + 154: uint16(28334), + 155: uint16(28336), + 156: uint16(28339), + 157: uint16(28341), + 158: uint16(28344), + 159: uint16(28345), + 160: uint16(28348), + 161: uint16(28350), + 162: uint16(28351), + 163: uint16(28352), + 164: uint16(28355), + 165: uint16(28356), + 166: uint16(28357), + 167: uint16(28358), + 168: uint16(28360), + 169: uint16(28361), + 170: uint16(28362), + 171: uint16(28364), + 172: uint16(28365), + 173: uint16(28366), + 174: uint16(28368), + 175: uint16(28370), + 176: uint16(28374), + 177: uint16(28376), + 178: uint16(28377), + 179: uint16(28379), + 180: uint16(28380), + 181: uint16(28381), + 182: uint16(28387), + 183: uint16(28391), + 184: uint16(28394), + 185: uint16(28395), + 186: uint16(28396), + 187: uint16(28397), + 188: uint16(28398), + 189: uint16(28399), + }, + 28: { + 0: uint16(28400), + 1: uint16(28401), + 2: uint16(28402), + 3: uint16(28403), + 4: uint16(28405), + 5: uint16(28406), + 6: uint16(28407), + 7: uint16(28408), + 8: uint16(28410), + 9: uint16(28411), + 10: uint16(28412), + 11: uint16(28413), + 12: uint16(28414), + 13: uint16(28415), + 14: uint16(28416), + 15: uint16(28417), + 16: uint16(28419), + 17: uint16(28420), + 18: uint16(28421), + 19: uint16(28423), + 20: uint16(28424), + 21: uint16(28426), + 22: uint16(28427), + 23: uint16(28428), + 24: uint16(28429), + 25: uint16(28430), + 26: uint16(28432), + 27: uint16(28433), + 28: uint16(28434), + 29: uint16(28438), + 30: uint16(28439), + 31: uint16(28440), + 32: uint16(28441), + 33: uint16(28442), + 34: uint16(28443), + 35: uint16(28444), + 36: uint16(28445), + 37: uint16(28446), + 38: uint16(28447), + 39: uint16(28449), + 40: uint16(28450), + 41: uint16(28451), + 42: uint16(28453), + 43: uint16(28454), + 44: uint16(28455), + 45: uint16(28456), + 46: uint16(28460), + 47: uint16(28462), + 48: uint16(28464), + 49: uint16(28466), + 50: uint16(28468), + 51: uint16(28469), + 52: uint16(28471), + 53: uint16(28472), + 54: uint16(28473), + 55: uint16(28474), + 56: uint16(28475), + 57: uint16(28476), + 58: uint16(28477), + 59: uint16(28479), + 60: uint16(28480), + 61: uint16(28481), + 62: uint16(28482), + 63: uint16(28483), + 64: uint16(28484), + 65: uint16(28485), + 66: uint16(28488), + 67: uint16(28489), + 68: uint16(28490), + 69: uint16(28492), + 70: uint16(28494), + 71: uint16(28495), + 72: uint16(28496), + 73: uint16(28497), + 74: uint16(28498), + 75: uint16(28499), + 76: uint16(28500), + 77: uint16(28501), + 78: uint16(28502), + 79: uint16(28503), + 80: uint16(28505), + 81: uint16(28506), + 82: uint16(28507), + 83: uint16(28509), + 84: uint16(28511), + 85: uint16(28512), + 86: uint16(28513), + 87: uint16(28515), + 88: uint16(28516), + 89: uint16(28517), + 90: uint16(28519), + 91: uint16(28520), + 92: uint16(28521), + 93: uint16(28522), + 94: uint16(28523), + 95: uint16(28524), + 96: uint16(28527), + 97: uint16(28528), + 98: uint16(28529), + 99: uint16(28531), + 100: uint16(28533), + 101: uint16(28534), + 102: uint16(28535), + 103: uint16(28537), + 104: uint16(28539), + 105: uint16(28541), + 106: uint16(28542), + 107: uint16(28543), + 108: uint16(28544), + 109: uint16(28545), + 110: uint16(28546), + 111: uint16(28547), + 112: uint16(28549), + 113: uint16(28550), + 114: uint16(28551), + 115: uint16(28554), + 116: uint16(28555), + 117: uint16(28559), + 118: uint16(28560), + 119: uint16(28561), + 120: uint16(28562), + 121: uint16(28563), + 122: uint16(28564), + 123: uint16(28565), + 124: uint16(28566), + 125: uint16(28567), + 126: uint16(28568), + 127: uint16(28569), + 128: uint16(28570), + 129: uint16(28571), + 130: uint16(28573), + 131: uint16(28574), + 132: uint16(28575), + 133: uint16(28576), + 134: uint16(28578), + 135: uint16(28579), + 136: uint16(28580), + 137: uint16(28581), + 138: uint16(28582), + 139: uint16(28584), + 140: uint16(28585), + 141: uint16(28586), + 142: uint16(28587), + 143: uint16(28588), + 144: uint16(28589), + 145: uint16(28590), + 146: uint16(28591), + 147: uint16(28592), + 148: uint16(28593), + 149: uint16(28594), + 150: uint16(28596), + 151: uint16(28597), + 152: uint16(28599), + 153: uint16(28600), + 154: uint16(28602), + 155: uint16(28603), + 156: uint16(28604), + 157: uint16(28605), + 158: uint16(28606), + 159: uint16(28607), + 160: uint16(28609), + 161: uint16(28611), + 162: uint16(28612), + 163: uint16(28613), + 164: uint16(28614), + 165: uint16(28615), + 166: uint16(28616), + 167: uint16(28618), + 168: uint16(28619), + 169: uint16(28620), + 170: uint16(28621), + 171: uint16(28622), + 172: uint16(28623), + 173: uint16(28624), + 174: uint16(28627), + 175: uint16(28628), + 176: uint16(28629), + 177: uint16(28630), + 178: uint16(28631), + 179: uint16(28632), + 180: uint16(28633), + 181: uint16(28634), + 182: uint16(28635), + 183: uint16(28636), + 184: uint16(28637), + 185: uint16(28639), + 186: uint16(28642), + 187: uint16(28643), + 188: uint16(28644), + 189: uint16(28645), + }, + 29: { + 0: uint16(28646), + 1: uint16(28647), + 2: uint16(28648), + 3: uint16(28649), + 4: uint16(28650), + 5: uint16(28651), + 6: uint16(28652), + 7: uint16(28653), + 8: uint16(28656), + 9: uint16(28657), + 10: uint16(28658), + 11: uint16(28659), + 12: uint16(28660), + 13: uint16(28661), + 14: uint16(28662), + 15: uint16(28663), + 16: uint16(28664), + 17: uint16(28665), + 18: uint16(28666), + 19: uint16(28667), + 20: uint16(28668), + 21: uint16(28669), + 22: uint16(28670), + 23: uint16(28671), + 24: uint16(28672), + 25: uint16(28673), + 26: uint16(28674), + 27: uint16(28675), + 28: uint16(28676), + 29: uint16(28677), + 30: uint16(28678), + 31: uint16(28679), + 32: uint16(28680), + 33: uint16(28681), + 34: uint16(28682), + 35: uint16(28683), + 36: uint16(28684), + 37: uint16(28685), + 38: uint16(28686), + 39: uint16(28687), + 40: uint16(28688), + 41: uint16(28690), + 42: uint16(28691), + 43: uint16(28692), + 44: uint16(28693), + 45: uint16(28694), + 46: uint16(28695), + 47: uint16(28696), + 48: uint16(28697), + 49: uint16(28700), + 50: uint16(28701), + 51: uint16(28702), + 52: uint16(28703), + 53: uint16(28704), + 54: uint16(28705), + 55: uint16(28706), + 56: uint16(28708), + 57: uint16(28709), + 58: uint16(28710), + 59: uint16(28711), + 60: uint16(28712), + 61: uint16(28713), + 62: uint16(28714), + 63: uint16(28715), + 64: uint16(28716), + 65: uint16(28717), + 66: uint16(28718), + 67: uint16(28719), + 68: uint16(28720), + 69: uint16(28721), + 70: uint16(28722), + 71: uint16(28723), + 72: uint16(28724), + 73: uint16(28726), + 74: uint16(28727), + 75: uint16(28728), + 76: uint16(28730), + 77: uint16(28731), + 78: uint16(28732), + 79: uint16(28733), + 80: uint16(28734), + 81: uint16(28735), + 82: uint16(28736), + 83: uint16(28737), + 84: uint16(28738), + 85: uint16(28739), + 86: uint16(28740), + 87: uint16(28741), + 88: uint16(28742), + 89: uint16(28743), + 90: uint16(28744), + 91: uint16(28745), + 92: uint16(28746), + 93: uint16(28747), + 94: uint16(28749), + 95: uint16(28750), + 96: uint16(28752), + 97: uint16(28753), + 98: uint16(28754), + 99: uint16(28755), + 100: uint16(28756), + 101: uint16(28757), + 102: uint16(28758), + 103: uint16(28759), + 104: uint16(28760), + 105: uint16(28761), + 106: uint16(28762), + 107: uint16(28763), + 108: uint16(28764), + 109: uint16(28765), + 110: uint16(28767), + 111: uint16(28768), + 112: uint16(28769), + 113: uint16(28770), + 114: uint16(28771), + 115: uint16(28772), + 116: uint16(28773), + 117: uint16(28774), + 118: uint16(28775), + 119: uint16(28776), + 120: uint16(28777), + 121: uint16(28778), + 122: uint16(28782), + 123: uint16(28785), + 124: uint16(28786), + 125: uint16(28787), + 126: uint16(28788), + 127: uint16(28791), + 128: uint16(28793), + 129: uint16(28794), + 130: uint16(28795), + 131: uint16(28797), + 132: uint16(28801), + 133: uint16(28802), + 134: uint16(28803), + 135: uint16(28804), + 136: uint16(28806), + 137: uint16(28807), + 138: uint16(28808), + 139: uint16(28811), + 140: uint16(28812), + 141: uint16(28813), + 142: uint16(28815), + 143: uint16(28816), + 144: uint16(28817), + 145: uint16(28819), + 146: uint16(28823), + 147: uint16(28824), + 148: uint16(28826), + 149: uint16(28827), + 150: uint16(28830), + 151: uint16(28831), + 152: uint16(28832), + 153: uint16(28833), + 154: uint16(28834), + 155: uint16(28835), + 156: uint16(28836), + 157: uint16(28837), + 158: uint16(28838), + 159: uint16(28839), + 160: uint16(28840), + 161: uint16(28841), + 162: uint16(28842), + 163: uint16(28848), + 164: uint16(28850), + 165: uint16(28852), + 166: uint16(28853), + 167: uint16(28854), + 168: uint16(28858), + 169: uint16(28862), + 170: uint16(28863), + 171: uint16(28868), + 172: uint16(28869), + 173: uint16(28870), + 174: uint16(28871), + 175: uint16(28873), + 176: uint16(28875), + 177: uint16(28876), + 178: uint16(28877), + 179: uint16(28878), + 180: uint16(28879), + 181: uint16(28880), + 182: uint16(28881), + 183: uint16(28882), + 184: uint16(28883), + 185: uint16(28884), + 186: uint16(28885), + 187: uint16(28886), + 188: uint16(28887), + 189: uint16(28890), + }, + 30: { + 0: uint16(28892), + 1: uint16(28893), + 2: uint16(28894), + 3: uint16(28896), + 4: uint16(28897), + 5: uint16(28898), + 6: uint16(28899), + 7: uint16(28901), + 8: uint16(28906), + 9: uint16(28910), + 10: uint16(28912), + 11: uint16(28913), + 12: uint16(28914), + 13: uint16(28915), + 14: uint16(28916), + 15: uint16(28917), + 16: uint16(28918), + 17: uint16(28920), + 18: uint16(28922), + 19: uint16(28923), + 20: uint16(28924), + 21: uint16(28926), + 22: uint16(28927), + 23: uint16(28928), + 24: uint16(28929), + 25: uint16(28930), + 26: uint16(28931), + 27: uint16(28932), + 28: uint16(28933), + 29: uint16(28934), + 30: uint16(28935), + 31: uint16(28936), + 32: uint16(28939), + 33: uint16(28940), + 34: uint16(28941), + 35: uint16(28942), + 36: uint16(28943), + 37: uint16(28945), + 38: uint16(28946), + 39: uint16(28948), + 40: uint16(28951), + 41: uint16(28955), + 42: uint16(28956), + 43: uint16(28957), + 44: uint16(28958), + 45: uint16(28959), + 46: uint16(28960), + 47: uint16(28961), + 48: uint16(28962), + 49: uint16(28963), + 50: uint16(28964), + 51: uint16(28965), + 52: uint16(28967), + 53: uint16(28968), + 54: uint16(28969), + 55: uint16(28970), + 56: uint16(28971), + 57: uint16(28972), + 58: uint16(28973), + 59: uint16(28974), + 60: uint16(28978), + 61: uint16(28979), + 62: uint16(28980), + 63: uint16(28981), + 64: uint16(28983), + 65: uint16(28984), + 66: uint16(28985), + 67: uint16(28986), + 68: uint16(28987), + 69: uint16(28988), + 70: uint16(28989), + 71: uint16(28990), + 72: uint16(28991), + 73: uint16(28992), + 74: uint16(28993), + 75: uint16(28994), + 76: uint16(28995), + 77: uint16(28996), + 78: uint16(28998), + 79: uint16(28999), + 80: uint16(29000), + 81: uint16(29001), + 82: uint16(29003), + 83: uint16(29005), + 84: uint16(29007), + 85: uint16(29008), + 86: uint16(29009), + 87: uint16(29010), + 88: uint16(29011), + 89: uint16(29012), + 90: uint16(29013), + 91: uint16(29014), + 92: uint16(29015), + 93: uint16(29016), + 94: uint16(29017), + 95: uint16(29018), + 96: uint16(29019), + 97: uint16(29021), + 98: uint16(29023), + 99: uint16(29024), + 100: uint16(29025), + 101: uint16(29026), + 102: uint16(29027), + 103: uint16(29029), + 104: uint16(29033), + 105: uint16(29034), + 106: uint16(29035), + 107: uint16(29036), + 108: uint16(29037), + 109: uint16(29039), + 110: uint16(29040), + 111: uint16(29041), + 112: uint16(29044), + 113: uint16(29045), + 114: uint16(29046), + 115: uint16(29047), + 116: uint16(29049), + 117: uint16(29051), + 118: uint16(29052), + 119: uint16(29054), + 120: uint16(29055), + 121: uint16(29056), + 122: uint16(29057), + 123: uint16(29058), + 124: uint16(29059), + 125: uint16(29061), + 126: uint16(29062), + 127: uint16(29063), + 128: uint16(29064), + 129: uint16(29065), + 130: uint16(29067), + 131: uint16(29068), + 132: uint16(29069), + 133: uint16(29070), + 134: uint16(29072), + 135: uint16(29073), + 136: uint16(29074), + 137: uint16(29075), + 138: uint16(29077), + 139: uint16(29078), + 140: uint16(29079), + 141: uint16(29082), + 142: uint16(29083), + 143: uint16(29084), + 144: uint16(29085), + 145: uint16(29086), + 146: uint16(29089), + 147: uint16(29090), + 148: uint16(29091), + 149: uint16(29092), + 150: uint16(29093), + 151: uint16(29094), + 152: uint16(29095), + 153: uint16(29097), + 154: uint16(29098), + 155: uint16(29099), + 156: uint16(29101), + 157: uint16(29102), + 158: uint16(29103), + 159: uint16(29104), + 160: uint16(29105), + 161: uint16(29106), + 162: uint16(29108), + 163: uint16(29110), + 164: uint16(29111), + 165: uint16(29112), + 166: uint16(29114), + 167: uint16(29115), + 168: uint16(29116), + 169: uint16(29117), + 170: uint16(29118), + 171: uint16(29119), + 172: uint16(29120), + 173: uint16(29121), + 174: uint16(29122), + 175: uint16(29124), + 176: uint16(29125), + 177: uint16(29126), + 178: uint16(29127), + 179: uint16(29128), + 180: uint16(29129), + 181: uint16(29130), + 182: uint16(29131), + 183: uint16(29132), + 184: uint16(29133), + 185: uint16(29135), + 186: uint16(29136), + 187: uint16(29137), + 188: uint16(29138), + 189: uint16(29139), + }, + 31: { + 0: uint16(29142), + 1: uint16(29143), + 2: uint16(29144), + 3: uint16(29145), + 4: uint16(29146), + 5: uint16(29147), + 6: uint16(29148), + 7: uint16(29149), + 8: uint16(29150), + 9: uint16(29151), + 10: uint16(29153), + 11: uint16(29154), + 12: uint16(29155), + 13: uint16(29156), + 14: uint16(29158), + 15: uint16(29160), + 16: uint16(29161), + 17: uint16(29162), + 18: uint16(29163), + 19: uint16(29164), + 20: uint16(29165), + 21: uint16(29167), + 22: uint16(29168), + 23: uint16(29169), + 24: uint16(29170), + 25: uint16(29171), + 26: uint16(29172), + 27: uint16(29173), + 28: uint16(29174), + 29: uint16(29175), + 30: uint16(29176), + 31: uint16(29178), + 32: uint16(29179), + 33: uint16(29180), + 34: uint16(29181), + 35: uint16(29182), + 36: uint16(29183), + 37: uint16(29184), + 38: uint16(29185), + 39: uint16(29186), + 40: uint16(29187), + 41: uint16(29188), + 42: uint16(29189), + 43: uint16(29191), + 44: uint16(29192), + 45: uint16(29193), + 46: uint16(29194), + 47: uint16(29195), + 48: uint16(29196), + 49: uint16(29197), + 50: uint16(29198), + 51: uint16(29199), + 52: uint16(29200), + 53: uint16(29201), + 54: uint16(29202), + 55: uint16(29203), + 56: uint16(29204), + 57: uint16(29205), + 58: uint16(29206), + 59: uint16(29207), + 60: uint16(29208), + 61: uint16(29209), + 62: uint16(29210), + 63: uint16(29211), + 64: uint16(29212), + 65: uint16(29214), + 66: uint16(29215), + 67: uint16(29216), + 68: uint16(29217), + 69: uint16(29218), + 70: uint16(29219), + 71: uint16(29220), + 72: uint16(29221), + 73: uint16(29222), + 74: uint16(29223), + 75: uint16(29225), + 76: uint16(29227), + 77: uint16(29229), + 78: uint16(29230), + 79: uint16(29231), + 80: uint16(29234), + 81: uint16(29235), + 82: uint16(29236), + 83: uint16(29242), + 84: uint16(29244), + 85: uint16(29246), + 86: uint16(29248), + 87: uint16(29249), + 88: uint16(29250), + 89: uint16(29251), + 90: uint16(29252), + 91: uint16(29253), + 92: uint16(29254), + 93: uint16(29257), + 94: uint16(29258), + 95: uint16(29259), + 96: uint16(29262), + 97: uint16(29263), + 98: uint16(29264), + 99: uint16(29265), + 100: uint16(29267), + 101: uint16(29268), + 102: uint16(29269), + 103: uint16(29271), + 104: uint16(29272), + 105: uint16(29274), + 106: uint16(29276), + 107: uint16(29278), + 108: uint16(29280), + 109: uint16(29283), + 110: uint16(29284), + 111: uint16(29285), + 112: uint16(29288), + 113: uint16(29290), + 114: uint16(29291), + 115: uint16(29292), + 116: uint16(29293), + 117: uint16(29296), + 118: uint16(29297), + 119: uint16(29299), + 120: uint16(29300), + 121: uint16(29302), + 122: uint16(29303), + 123: uint16(29304), + 124: uint16(29307), + 125: uint16(29308), + 126: uint16(29309), + 127: uint16(29314), + 128: uint16(29315), + 129: uint16(29317), + 130: uint16(29318), + 131: uint16(29319), + 132: uint16(29320), + 133: uint16(29321), + 134: uint16(29324), + 135: uint16(29326), + 136: uint16(29328), + 137: uint16(29329), + 138: uint16(29331), + 139: uint16(29332), + 140: uint16(29333), + 141: uint16(29334), + 142: uint16(29335), + 143: uint16(29336), + 144: uint16(29337), + 145: uint16(29338), + 146: uint16(29339), + 147: uint16(29340), + 148: uint16(29341), + 149: uint16(29342), + 150: uint16(29344), + 151: uint16(29345), + 152: uint16(29346), + 153: uint16(29347), + 154: uint16(29348), + 155: uint16(29349), + 156: uint16(29350), + 157: uint16(29351), + 158: uint16(29352), + 159: uint16(29353), + 160: uint16(29354), + 161: uint16(29355), + 162: uint16(29358), + 163: uint16(29361), + 164: uint16(29362), + 165: uint16(29363), + 166: uint16(29365), + 167: uint16(29370), + 168: uint16(29371), + 169: uint16(29372), + 170: uint16(29373), + 171: uint16(29374), + 172: uint16(29375), + 173: uint16(29376), + 174: uint16(29381), + 175: uint16(29382), + 176: uint16(29383), + 177: uint16(29385), + 178: uint16(29386), + 179: uint16(29387), + 180: uint16(29388), + 181: uint16(29391), + 182: uint16(29393), + 183: uint16(29395), + 184: uint16(29396), + 185: uint16(29397), + 186: uint16(29398), + 187: uint16(29400), + 188: uint16(29402), + 189: uint16(29403), + }, + 32: { + 0: uint16(58566), + 1: uint16(58567), + 2: uint16(58568), + 3: uint16(58569), + 4: uint16(58570), + 5: uint16(58571), + 6: uint16(58572), + 7: uint16(58573), + 8: uint16(58574), + 9: uint16(58575), + 10: uint16(58576), + 11: uint16(58577), + 12: uint16(58578), + 13: uint16(58579), + 14: uint16(58580), + 15: uint16(58581), + 16: uint16(58582), + 17: uint16(58583), + 18: uint16(58584), + 19: uint16(58585), + 20: uint16(58586), + 21: uint16(58587), + 22: uint16(58588), + 23: uint16(58589), + 24: uint16(58590), + 25: uint16(58591), + 26: uint16(58592), + 27: uint16(58593), + 28: uint16(58594), + 29: uint16(58595), + 30: uint16(58596), + 31: uint16(58597), + 32: uint16(58598), + 33: uint16(58599), + 34: uint16(58600), + 35: uint16(58601), + 36: uint16(58602), + 37: uint16(58603), + 38: uint16(58604), + 39: uint16(58605), + 40: uint16(58606), + 41: uint16(58607), + 42: uint16(58608), + 43: uint16(58609), + 44: uint16(58610), + 45: uint16(58611), + 46: uint16(58612), + 47: uint16(58613), + 48: uint16(58614), + 49: uint16(58615), + 50: uint16(58616), + 51: uint16(58617), + 52: uint16(58618), + 53: uint16(58619), + 54: uint16(58620), + 55: uint16(58621), + 56: uint16(58622), + 57: uint16(58623), + 58: uint16(58624), + 59: uint16(58625), + 60: uint16(58626), + 61: uint16(58627), + 62: uint16(58628), + 63: uint16(58629), + 64: uint16(58630), + 65: uint16(58631), + 66: uint16(58632), + 67: uint16(58633), + 68: uint16(58634), + 69: uint16(58635), + 70: uint16(58636), + 71: uint16(58637), + 72: uint16(58638), + 73: uint16(58639), + 74: uint16(58640), + 75: uint16(58641), + 76: uint16(58642), + 77: uint16(58643), + 78: uint16(58644), + 79: uint16(58645), + 80: uint16(58646), + 81: uint16(58647), + 82: uint16(58648), + 83: uint16(58649), + 84: uint16(58650), + 85: uint16(58651), + 86: uint16(58652), + 87: uint16(58653), + 88: uint16(58654), + 89: uint16(58655), + 90: uint16(58656), + 91: uint16(58657), + 92: uint16(58658), + 93: uint16(58659), + 94: uint16(58660), + 95: uint16(58661), + 96: uint16(12288), + 97: uint16(12289), + 98: uint16(12290), + 99: uint16(183), + 100: uint16(713), + 101: uint16(711), + 102: uint16(168), + 103: uint16(12291), + 104: uint16(12293), + 105: uint16(8212), + 106: uint16(65374), + 107: uint16(8214), + 108: uint16(8230), + 109: uint16(8216), + 110: uint16(8217), + 111: uint16(8220), + 112: uint16(8221), + 113: uint16(12308), + 114: uint16(12309), + 115: uint16(12296), + 116: uint16(12297), + 117: uint16(12298), + 118: uint16(12299), + 119: uint16(12300), + 120: uint16(12301), + 121: uint16(12302), + 122: uint16(12303), + 123: uint16(12310), + 124: uint16(12311), + 125: uint16(12304), + 126: uint16(12305), + 127: uint16(177), + 128: uint16(215), + 129: uint16(247), + 130: uint16(8758), + 131: uint16(8743), + 132: uint16(8744), + 133: uint16(8721), + 134: uint16(8719), + 135: uint16(8746), + 136: uint16(8745), + 137: uint16(8712), + 138: uint16(8759), + 139: uint16(8730), + 140: uint16(8869), + 141: uint16(8741), + 142: uint16(8736), + 143: uint16(8978), + 144: uint16(8857), + 145: uint16(8747), + 146: uint16(8750), + 147: uint16(8801), + 148: uint16(8780), + 149: uint16(8776), + 150: uint16(8765), + 151: uint16(8733), + 152: uint16(8800), + 153: uint16(8814), + 154: uint16(8815), + 155: uint16(8804), + 156: uint16(8805), + 157: uint16(8734), + 158: uint16(8757), + 159: uint16(8756), + 160: uint16(9794), + 161: uint16(9792), + 162: uint16(176), + 163: uint16(8242), + 164: uint16(8243), + 165: uint16(8451), + 166: uint16(65284), + 167: uint16(164), + 168: uint16(65504), + 169: uint16(65505), + 170: uint16(8240), + 171: uint16(167), + 172: uint16(8470), + 173: uint16(9734), + 174: uint16(9733), + 175: uint16(9675), + 176: uint16(9679), + 177: uint16(9678), + 178: uint16(9671), + 179: uint16(9670), + 180: uint16(9633), + 181: uint16(9632), + 182: uint16(9651), + 183: uint16(9650), + 184: uint16(8251), + 185: uint16(8594), + 186: uint16(8592), + 187: uint16(8593), + 188: uint16(8595), + 189: uint16(12307), + }, + 33: { + 0: uint16(58662), + 1: uint16(58663), + 2: uint16(58664), + 3: uint16(58665), + 4: uint16(58666), + 5: uint16(58667), + 6: uint16(58668), + 7: uint16(58669), + 8: uint16(58670), + 9: uint16(58671), + 10: uint16(58672), + 11: uint16(58673), + 12: uint16(58674), + 13: uint16(58675), + 14: uint16(58676), + 15: uint16(58677), + 16: uint16(58678), + 17: uint16(58679), + 18: uint16(58680), + 19: uint16(58681), + 20: uint16(58682), + 21: uint16(58683), + 22: uint16(58684), + 23: uint16(58685), + 24: uint16(58686), + 25: uint16(58687), + 26: uint16(58688), + 27: uint16(58689), + 28: uint16(58690), + 29: uint16(58691), + 30: uint16(58692), + 31: uint16(58693), + 32: uint16(58694), + 33: uint16(58695), + 34: uint16(58696), + 35: uint16(58697), + 36: uint16(58698), + 37: uint16(58699), + 38: uint16(58700), + 39: uint16(58701), + 40: uint16(58702), + 41: uint16(58703), + 42: uint16(58704), + 43: uint16(58705), + 44: uint16(58706), + 45: uint16(58707), + 46: uint16(58708), + 47: uint16(58709), + 48: uint16(58710), + 49: uint16(58711), + 50: uint16(58712), + 51: uint16(58713), + 52: uint16(58714), + 53: uint16(58715), + 54: uint16(58716), + 55: uint16(58717), + 56: uint16(58718), + 57: uint16(58719), + 58: uint16(58720), + 59: uint16(58721), + 60: uint16(58722), + 61: uint16(58723), + 62: uint16(58724), + 63: uint16(58725), + 64: uint16(58726), + 65: uint16(58727), + 66: uint16(58728), + 67: uint16(58729), + 68: uint16(58730), + 69: uint16(58731), + 70: uint16(58732), + 71: uint16(58733), + 72: uint16(58734), + 73: uint16(58735), + 74: uint16(58736), + 75: uint16(58737), + 76: uint16(58738), + 77: uint16(58739), + 78: uint16(58740), + 79: uint16(58741), + 80: uint16(58742), + 81: uint16(58743), + 82: uint16(58744), + 83: uint16(58745), + 84: uint16(58746), + 85: uint16(58747), + 86: uint16(58748), + 87: uint16(58749), + 88: uint16(58750), + 89: uint16(58751), + 90: uint16(58752), + 91: uint16(58753), + 92: uint16(58754), + 93: uint16(58755), + 94: uint16(58756), + 95: uint16(58757), + 96: uint16(8560), + 97: uint16(8561), + 98: uint16(8562), + 99: uint16(8563), + 100: uint16(8564), + 101: uint16(8565), + 102: uint16(8566), + 103: uint16(8567), + 104: uint16(8568), + 105: uint16(8569), + 106: uint16(59238), + 107: uint16(59239), + 108: uint16(59240), + 109: uint16(59241), + 110: uint16(59242), + 111: uint16(59243), + 112: uint16(9352), + 113: uint16(9353), + 114: uint16(9354), + 115: uint16(9355), + 116: uint16(9356), + 117: uint16(9357), + 118: uint16(9358), + 119: uint16(9359), + 120: uint16(9360), + 121: uint16(9361), + 122: uint16(9362), + 123: uint16(9363), + 124: uint16(9364), + 125: uint16(9365), + 126: uint16(9366), + 127: uint16(9367), + 128: uint16(9368), + 129: uint16(9369), + 130: uint16(9370), + 131: uint16(9371), + 132: uint16(9332), + 133: uint16(9333), + 134: uint16(9334), + 135: uint16(9335), + 136: uint16(9336), + 137: uint16(9337), + 138: uint16(9338), + 139: uint16(9339), + 140: uint16(9340), + 141: uint16(9341), + 142: uint16(9342), + 143: uint16(9343), + 144: uint16(9344), + 145: uint16(9345), + 146: uint16(9346), + 147: uint16(9347), + 148: uint16(9348), + 149: uint16(9349), + 150: uint16(9350), + 151: uint16(9351), + 152: uint16(9312), + 153: uint16(9313), + 154: uint16(9314), + 155: uint16(9315), + 156: uint16(9316), + 157: uint16(9317), + 158: uint16(9318), + 159: uint16(9319), + 160: uint16(9320), + 161: uint16(9321), + 162: uint16(8364), + 163: uint16(59245), + 164: uint16(12832), + 165: uint16(12833), + 166: uint16(12834), + 167: uint16(12835), + 168: uint16(12836), + 169: uint16(12837), + 170: uint16(12838), + 171: uint16(12839), + 172: uint16(12840), + 173: uint16(12841), + 174: uint16(59246), + 175: uint16(59247), + 176: uint16(8544), + 177: uint16(8545), + 178: uint16(8546), + 179: uint16(8547), + 180: uint16(8548), + 181: uint16(8549), + 182: uint16(8550), + 183: uint16(8551), + 184: uint16(8552), + 185: uint16(8553), + 186: uint16(8554), + 187: uint16(8555), + 188: uint16(59248), + 189: uint16(59249), + }, + 34: { + 0: uint16(58758), + 1: uint16(58759), + 2: uint16(58760), + 3: uint16(58761), + 4: uint16(58762), + 5: uint16(58763), + 6: uint16(58764), + 7: uint16(58765), + 8: uint16(58766), + 9: uint16(58767), + 10: uint16(58768), + 11: uint16(58769), + 12: uint16(58770), + 13: uint16(58771), + 14: uint16(58772), + 15: uint16(58773), + 16: uint16(58774), + 17: uint16(58775), + 18: uint16(58776), + 19: uint16(58777), + 20: uint16(58778), + 21: uint16(58779), + 22: uint16(58780), + 23: uint16(58781), + 24: uint16(58782), + 25: uint16(58783), + 26: uint16(58784), + 27: uint16(58785), + 28: uint16(58786), + 29: uint16(58787), + 30: uint16(58788), + 31: uint16(58789), + 32: uint16(58790), + 33: uint16(58791), + 34: uint16(58792), + 35: uint16(58793), + 36: uint16(58794), + 37: uint16(58795), + 38: uint16(58796), + 39: uint16(58797), + 40: uint16(58798), + 41: uint16(58799), + 42: uint16(58800), + 43: uint16(58801), + 44: uint16(58802), + 45: uint16(58803), + 46: uint16(58804), + 47: uint16(58805), + 48: uint16(58806), + 49: uint16(58807), + 50: uint16(58808), + 51: uint16(58809), + 52: uint16(58810), + 53: uint16(58811), + 54: uint16(58812), + 55: uint16(58813), + 56: uint16(58814), + 57: uint16(58815), + 58: uint16(58816), + 59: uint16(58817), + 60: uint16(58818), + 61: uint16(58819), + 62: uint16(58820), + 63: uint16(58821), + 64: uint16(58822), + 65: uint16(58823), + 66: uint16(58824), + 67: uint16(58825), + 68: uint16(58826), + 69: uint16(58827), + 70: uint16(58828), + 71: uint16(58829), + 72: uint16(58830), + 73: uint16(58831), + 74: uint16(58832), + 75: uint16(58833), + 76: uint16(58834), + 77: uint16(58835), + 78: uint16(58836), + 79: uint16(58837), + 80: uint16(58838), + 81: uint16(58839), + 82: uint16(58840), + 83: uint16(58841), + 84: uint16(58842), + 85: uint16(58843), + 86: uint16(58844), + 87: uint16(58845), + 88: uint16(58846), + 89: uint16(58847), + 90: uint16(58848), + 91: uint16(58849), + 92: uint16(58850), + 93: uint16(58851), + 94: uint16(58852), + 95: uint16(58853), + 96: uint16(65281), + 97: uint16(65282), + 98: uint16(65283), + 99: uint16(65509), + 100: uint16(65285), + 101: uint16(65286), + 102: uint16(65287), + 103: uint16(65288), + 104: uint16(65289), + 105: uint16(65290), + 106: uint16(65291), + 107: uint16(65292), + 108: uint16(65293), + 109: uint16(65294), + 110: uint16(65295), + 111: uint16(65296), + 112: uint16(65297), + 113: uint16(65298), + 114: uint16(65299), + 115: uint16(65300), + 116: uint16(65301), + 117: uint16(65302), + 118: uint16(65303), + 119: uint16(65304), + 120: uint16(65305), + 121: uint16(65306), + 122: uint16(65307), + 123: uint16(65308), + 124: uint16(65309), + 125: uint16(65310), + 126: uint16(65311), + 127: uint16(65312), + 128: uint16(65313), + 129: uint16(65314), + 130: uint16(65315), + 131: uint16(65316), + 132: uint16(65317), + 133: uint16(65318), + 134: uint16(65319), + 135: uint16(65320), + 136: uint16(65321), + 137: uint16(65322), + 138: uint16(65323), + 139: uint16(65324), + 140: uint16(65325), + 141: uint16(65326), + 142: uint16(65327), + 143: uint16(65328), + 144: uint16(65329), + 145: uint16(65330), + 146: uint16(65331), + 147: uint16(65332), + 148: uint16(65333), + 149: uint16(65334), + 150: uint16(65335), + 151: uint16(65336), + 152: uint16(65337), + 153: uint16(65338), + 154: uint16(65339), + 155: uint16(65340), + 156: uint16(65341), + 157: uint16(65342), + 158: uint16(65343), + 159: uint16(65344), + 160: uint16(65345), + 161: uint16(65346), + 162: uint16(65347), + 163: uint16(65348), + 164: uint16(65349), + 165: uint16(65350), + 166: uint16(65351), + 167: uint16(65352), + 168: uint16(65353), + 169: uint16(65354), + 170: uint16(65355), + 171: uint16(65356), + 172: uint16(65357), + 173: uint16(65358), + 174: uint16(65359), + 175: uint16(65360), + 176: uint16(65361), + 177: uint16(65362), + 178: uint16(65363), + 179: uint16(65364), + 180: uint16(65365), + 181: uint16(65366), + 182: uint16(65367), + 183: uint16(65368), + 184: uint16(65369), + 185: uint16(65370), + 186: uint16(65371), + 187: uint16(65372), + 188: uint16(65373), + 189: uint16(65507), + }, + 35: { + 0: uint16(58854), + 1: uint16(58855), + 2: uint16(58856), + 3: uint16(58857), + 4: uint16(58858), + 5: uint16(58859), + 6: uint16(58860), + 7: uint16(58861), + 8: uint16(58862), + 9: uint16(58863), + 10: uint16(58864), + 11: uint16(58865), + 12: uint16(58866), + 13: uint16(58867), + 14: uint16(58868), + 15: uint16(58869), + 16: uint16(58870), + 17: uint16(58871), + 18: uint16(58872), + 19: uint16(58873), + 20: uint16(58874), + 21: uint16(58875), + 22: uint16(58876), + 23: uint16(58877), + 24: uint16(58878), + 25: uint16(58879), + 26: uint16(58880), + 27: uint16(58881), + 28: uint16(58882), + 29: uint16(58883), + 30: uint16(58884), + 31: uint16(58885), + 32: uint16(58886), + 33: uint16(58887), + 34: uint16(58888), + 35: uint16(58889), + 36: uint16(58890), + 37: uint16(58891), + 38: uint16(58892), + 39: uint16(58893), + 40: uint16(58894), + 41: uint16(58895), + 42: uint16(58896), + 43: uint16(58897), + 44: uint16(58898), + 45: uint16(58899), + 46: uint16(58900), + 47: uint16(58901), + 48: uint16(58902), + 49: uint16(58903), + 50: uint16(58904), + 51: uint16(58905), + 52: uint16(58906), + 53: uint16(58907), + 54: uint16(58908), + 55: uint16(58909), + 56: uint16(58910), + 57: uint16(58911), + 58: uint16(58912), + 59: uint16(58913), + 60: uint16(58914), + 61: uint16(58915), + 62: uint16(58916), + 63: uint16(58917), + 64: uint16(58918), + 65: uint16(58919), + 66: uint16(58920), + 67: uint16(58921), + 68: uint16(58922), + 69: uint16(58923), + 70: uint16(58924), + 71: uint16(58925), + 72: uint16(58926), + 73: uint16(58927), + 74: uint16(58928), + 75: uint16(58929), + 76: uint16(58930), + 77: uint16(58931), + 78: uint16(58932), + 79: uint16(58933), + 80: uint16(58934), + 81: uint16(58935), + 82: uint16(58936), + 83: uint16(58937), + 84: uint16(58938), + 85: uint16(58939), + 86: uint16(58940), + 87: uint16(58941), + 88: uint16(58942), + 89: uint16(58943), + 90: uint16(58944), + 91: uint16(58945), + 92: uint16(58946), + 93: uint16(58947), + 94: uint16(58948), + 95: uint16(58949), + 96: uint16(12353), + 97: uint16(12354), + 98: uint16(12355), + 99: uint16(12356), + 100: uint16(12357), + 101: uint16(12358), + 102: uint16(12359), + 103: uint16(12360), + 104: uint16(12361), + 105: uint16(12362), + 106: uint16(12363), + 107: uint16(12364), + 108: uint16(12365), + 109: uint16(12366), + 110: uint16(12367), + 111: uint16(12368), + 112: uint16(12369), + 113: uint16(12370), + 114: uint16(12371), + 115: uint16(12372), + 116: uint16(12373), + 117: uint16(12374), + 118: uint16(12375), + 119: uint16(12376), + 120: uint16(12377), + 121: uint16(12378), + 122: uint16(12379), + 123: uint16(12380), + 124: uint16(12381), + 125: uint16(12382), + 126: uint16(12383), + 127: uint16(12384), + 128: uint16(12385), + 129: uint16(12386), + 130: uint16(12387), + 131: uint16(12388), + 132: uint16(12389), + 133: uint16(12390), + 134: uint16(12391), + 135: uint16(12392), + 136: uint16(12393), + 137: uint16(12394), + 138: uint16(12395), + 139: uint16(12396), + 140: uint16(12397), + 141: uint16(12398), + 142: uint16(12399), + 143: uint16(12400), + 144: uint16(12401), + 145: uint16(12402), + 146: uint16(12403), + 147: uint16(12404), + 148: uint16(12405), + 149: uint16(12406), + 150: uint16(12407), + 151: uint16(12408), + 152: uint16(12409), + 153: uint16(12410), + 154: uint16(12411), + 155: uint16(12412), + 156: uint16(12413), + 157: uint16(12414), + 158: uint16(12415), + 159: uint16(12416), + 160: uint16(12417), + 161: uint16(12418), + 162: uint16(12419), + 163: uint16(12420), + 164: uint16(12421), + 165: uint16(12422), + 166: uint16(12423), + 167: uint16(12424), + 168: uint16(12425), + 169: uint16(12426), + 170: uint16(12427), + 171: uint16(12428), + 172: uint16(12429), + 173: uint16(12430), + 174: uint16(12431), + 175: uint16(12432), + 176: uint16(12433), + 177: uint16(12434), + 178: uint16(12435), + 179: uint16(59250), + 180: uint16(59251), + 181: uint16(59252), + 182: uint16(59253), + 183: uint16(59254), + 184: uint16(59255), + 185: uint16(59256), + 186: uint16(59257), + 187: uint16(59258), + 188: uint16(59259), + 189: uint16(59260), + }, + 36: { + 0: uint16(58950), + 1: uint16(58951), + 2: uint16(58952), + 3: uint16(58953), + 4: uint16(58954), + 5: uint16(58955), + 6: uint16(58956), + 7: uint16(58957), + 8: uint16(58958), + 9: uint16(58959), + 10: uint16(58960), + 11: uint16(58961), + 12: uint16(58962), + 13: uint16(58963), + 14: uint16(58964), + 15: uint16(58965), + 16: uint16(58966), + 17: uint16(58967), + 18: uint16(58968), + 19: uint16(58969), + 20: uint16(58970), + 21: uint16(58971), + 22: uint16(58972), + 23: uint16(58973), + 24: uint16(58974), + 25: uint16(58975), + 26: uint16(58976), + 27: uint16(58977), + 28: uint16(58978), + 29: uint16(58979), + 30: uint16(58980), + 31: uint16(58981), + 32: uint16(58982), + 33: uint16(58983), + 34: uint16(58984), + 35: uint16(58985), + 36: uint16(58986), + 37: uint16(58987), + 38: uint16(58988), + 39: uint16(58989), + 40: uint16(58990), + 41: uint16(58991), + 42: uint16(58992), + 43: uint16(58993), + 44: uint16(58994), + 45: uint16(58995), + 46: uint16(58996), + 47: uint16(58997), + 48: uint16(58998), + 49: uint16(58999), + 50: uint16(59000), + 51: uint16(59001), + 52: uint16(59002), + 53: uint16(59003), + 54: uint16(59004), + 55: uint16(59005), + 56: uint16(59006), + 57: uint16(59007), + 58: uint16(59008), + 59: uint16(59009), + 60: uint16(59010), + 61: uint16(59011), + 62: uint16(59012), + 63: uint16(59013), + 64: uint16(59014), + 65: uint16(59015), + 66: uint16(59016), + 67: uint16(59017), + 68: uint16(59018), + 69: uint16(59019), + 70: uint16(59020), + 71: uint16(59021), + 72: uint16(59022), + 73: uint16(59023), + 74: uint16(59024), + 75: uint16(59025), + 76: uint16(59026), + 77: uint16(59027), + 78: uint16(59028), + 79: uint16(59029), + 80: uint16(59030), + 81: uint16(59031), + 82: uint16(59032), + 83: uint16(59033), + 84: uint16(59034), + 85: uint16(59035), + 86: uint16(59036), + 87: uint16(59037), + 88: uint16(59038), + 89: uint16(59039), + 90: uint16(59040), + 91: uint16(59041), + 92: uint16(59042), + 93: uint16(59043), + 94: uint16(59044), + 95: uint16(59045), + 96: uint16(12449), + 97: uint16(12450), + 98: uint16(12451), + 99: uint16(12452), + 100: uint16(12453), + 101: uint16(12454), + 102: uint16(12455), + 103: uint16(12456), + 104: uint16(12457), + 105: uint16(12458), + 106: uint16(12459), + 107: uint16(12460), + 108: uint16(12461), + 109: uint16(12462), + 110: uint16(12463), + 111: uint16(12464), + 112: uint16(12465), + 113: uint16(12466), + 114: uint16(12467), + 115: uint16(12468), + 116: uint16(12469), + 117: uint16(12470), + 118: uint16(12471), + 119: uint16(12472), + 120: uint16(12473), + 121: uint16(12474), + 122: uint16(12475), + 123: uint16(12476), + 124: uint16(12477), + 125: uint16(12478), + 126: uint16(12479), + 127: uint16(12480), + 128: uint16(12481), + 129: uint16(12482), + 130: uint16(12483), + 131: uint16(12484), + 132: uint16(12485), + 133: uint16(12486), + 134: uint16(12487), + 135: uint16(12488), + 136: uint16(12489), + 137: uint16(12490), + 138: uint16(12491), + 139: uint16(12492), + 140: uint16(12493), + 141: uint16(12494), + 142: uint16(12495), + 143: uint16(12496), + 144: uint16(12497), + 145: uint16(12498), + 146: uint16(12499), + 147: uint16(12500), + 148: uint16(12501), + 149: uint16(12502), + 150: uint16(12503), + 151: uint16(12504), + 152: uint16(12505), + 153: uint16(12506), + 154: uint16(12507), + 155: uint16(12508), + 156: uint16(12509), + 157: uint16(12510), + 158: uint16(12511), + 159: uint16(12512), + 160: uint16(12513), + 161: uint16(12514), + 162: uint16(12515), + 163: uint16(12516), + 164: uint16(12517), + 165: uint16(12518), + 166: uint16(12519), + 167: uint16(12520), + 168: uint16(12521), + 169: uint16(12522), + 170: uint16(12523), + 171: uint16(12524), + 172: uint16(12525), + 173: uint16(12526), + 174: uint16(12527), + 175: uint16(12528), + 176: uint16(12529), + 177: uint16(12530), + 178: uint16(12531), + 179: uint16(12532), + 180: uint16(12533), + 181: uint16(12534), + 182: uint16(59261), + 183: uint16(59262), + 184: uint16(59263), + 185: uint16(59264), + 186: uint16(59265), + 187: uint16(59266), + 188: uint16(59267), + 189: uint16(59268), + }, + 37: { + 0: uint16(59046), + 1: uint16(59047), + 2: uint16(59048), + 3: uint16(59049), + 4: uint16(59050), + 5: uint16(59051), + 6: uint16(59052), + 7: uint16(59053), + 8: uint16(59054), + 9: uint16(59055), + 10: uint16(59056), + 11: uint16(59057), + 12: uint16(59058), + 13: uint16(59059), + 14: uint16(59060), + 15: uint16(59061), + 16: uint16(59062), + 17: uint16(59063), + 18: uint16(59064), + 19: uint16(59065), + 20: uint16(59066), + 21: uint16(59067), + 22: uint16(59068), + 23: uint16(59069), + 24: uint16(59070), + 25: uint16(59071), + 26: uint16(59072), + 27: uint16(59073), + 28: uint16(59074), + 29: uint16(59075), + 30: uint16(59076), + 31: uint16(59077), + 32: uint16(59078), + 33: uint16(59079), + 34: uint16(59080), + 35: uint16(59081), + 36: uint16(59082), + 37: uint16(59083), + 38: uint16(59084), + 39: uint16(59085), + 40: uint16(59086), + 41: uint16(59087), + 42: uint16(59088), + 43: uint16(59089), + 44: uint16(59090), + 45: uint16(59091), + 46: uint16(59092), + 47: uint16(59093), + 48: uint16(59094), + 49: uint16(59095), + 50: uint16(59096), + 51: uint16(59097), + 52: uint16(59098), + 53: uint16(59099), + 54: uint16(59100), + 55: uint16(59101), + 56: uint16(59102), + 57: uint16(59103), + 58: uint16(59104), + 59: uint16(59105), + 60: uint16(59106), + 61: uint16(59107), + 62: uint16(59108), + 63: uint16(59109), + 64: uint16(59110), + 65: uint16(59111), + 66: uint16(59112), + 67: uint16(59113), + 68: uint16(59114), + 69: uint16(59115), + 70: uint16(59116), + 71: uint16(59117), + 72: uint16(59118), + 73: uint16(59119), + 74: uint16(59120), + 75: uint16(59121), + 76: uint16(59122), + 77: uint16(59123), + 78: uint16(59124), + 79: uint16(59125), + 80: uint16(59126), + 81: uint16(59127), + 82: uint16(59128), + 83: uint16(59129), + 84: uint16(59130), + 85: uint16(59131), + 86: uint16(59132), + 87: uint16(59133), + 88: uint16(59134), + 89: uint16(59135), + 90: uint16(59136), + 91: uint16(59137), + 92: uint16(59138), + 93: uint16(59139), + 94: uint16(59140), + 95: uint16(59141), + 96: uint16(913), + 97: uint16(914), + 98: uint16(915), + 99: uint16(916), + 100: uint16(917), + 101: uint16(918), + 102: uint16(919), + 103: uint16(920), + 104: uint16(921), + 105: uint16(922), + 106: uint16(923), + 107: uint16(924), + 108: uint16(925), + 109: uint16(926), + 110: uint16(927), + 111: uint16(928), + 112: uint16(929), + 113: uint16(931), + 114: uint16(932), + 115: uint16(933), + 116: uint16(934), + 117: uint16(935), + 118: uint16(936), + 119: uint16(937), + 120: uint16(59269), + 121: uint16(59270), + 122: uint16(59271), + 123: uint16(59272), + 124: uint16(59273), + 125: uint16(59274), + 126: uint16(59275), + 127: uint16(59276), + 128: uint16(945), + 129: uint16(946), + 130: uint16(947), + 131: uint16(948), + 132: uint16(949), + 133: uint16(950), + 134: uint16(951), + 135: uint16(952), + 136: uint16(953), + 137: uint16(954), + 138: uint16(955), + 139: uint16(956), + 140: uint16(957), + 141: uint16(958), + 142: uint16(959), + 143: uint16(960), + 144: uint16(961), + 145: uint16(963), + 146: uint16(964), + 147: uint16(965), + 148: uint16(966), + 149: uint16(967), + 150: uint16(968), + 151: uint16(969), + 152: uint16(59277), + 153: uint16(59278), + 154: uint16(59279), + 155: uint16(59280), + 156: uint16(59281), + 157: uint16(59282), + 158: uint16(59283), + 159: uint16(65077), + 160: uint16(65078), + 161: uint16(65081), + 162: uint16(65082), + 163: uint16(65087), + 164: uint16(65088), + 165: uint16(65085), + 166: uint16(65086), + 167: uint16(65089), + 168: uint16(65090), + 169: uint16(65091), + 170: uint16(65092), + 171: uint16(59284), + 172: uint16(59285), + 173: uint16(65083), + 174: uint16(65084), + 175: uint16(65079), + 176: uint16(65080), + 177: uint16(65073), + 178: uint16(59286), + 179: uint16(65075), + 180: uint16(65076), + 181: uint16(59287), + 182: uint16(59288), + 183: uint16(59289), + 184: uint16(59290), + 185: uint16(59291), + 186: uint16(59292), + 187: uint16(59293), + 188: uint16(59294), + 189: uint16(59295), + }, + 38: { + 0: uint16(59142), + 1: uint16(59143), + 2: uint16(59144), + 3: uint16(59145), + 4: uint16(59146), + 5: uint16(59147), + 6: uint16(59148), + 7: uint16(59149), + 8: uint16(59150), + 9: uint16(59151), + 10: uint16(59152), + 11: uint16(59153), + 12: uint16(59154), + 13: uint16(59155), + 14: uint16(59156), + 15: uint16(59157), + 16: uint16(59158), + 17: uint16(59159), + 18: uint16(59160), + 19: uint16(59161), + 20: uint16(59162), + 21: uint16(59163), + 22: uint16(59164), + 23: uint16(59165), + 24: uint16(59166), + 25: uint16(59167), + 26: uint16(59168), + 27: uint16(59169), + 28: uint16(59170), + 29: uint16(59171), + 30: uint16(59172), + 31: uint16(59173), + 32: uint16(59174), + 33: uint16(59175), + 34: uint16(59176), + 35: uint16(59177), + 36: uint16(59178), + 37: uint16(59179), + 38: uint16(59180), + 39: uint16(59181), + 40: uint16(59182), + 41: uint16(59183), + 42: uint16(59184), + 43: uint16(59185), + 44: uint16(59186), + 45: uint16(59187), + 46: uint16(59188), + 47: uint16(59189), + 48: uint16(59190), + 49: uint16(59191), + 50: uint16(59192), + 51: uint16(59193), + 52: uint16(59194), + 53: uint16(59195), + 54: uint16(59196), + 55: uint16(59197), + 56: uint16(59198), + 57: uint16(59199), + 58: uint16(59200), + 59: uint16(59201), + 60: uint16(59202), + 61: uint16(59203), + 62: uint16(59204), + 63: uint16(59205), + 64: uint16(59206), + 65: uint16(59207), + 66: uint16(59208), + 67: uint16(59209), + 68: uint16(59210), + 69: uint16(59211), + 70: uint16(59212), + 71: uint16(59213), + 72: uint16(59214), + 73: uint16(59215), + 74: uint16(59216), + 75: uint16(59217), + 76: uint16(59218), + 77: uint16(59219), + 78: uint16(59220), + 79: uint16(59221), + 80: uint16(59222), + 81: uint16(59223), + 82: uint16(59224), + 83: uint16(59225), + 84: uint16(59226), + 85: uint16(59227), + 86: uint16(59228), + 87: uint16(59229), + 88: uint16(59230), + 89: uint16(59231), + 90: uint16(59232), + 91: uint16(59233), + 92: uint16(59234), + 93: uint16(59235), + 94: uint16(59236), + 95: uint16(59237), + 96: uint16(1040), + 97: uint16(1041), + 98: uint16(1042), + 99: uint16(1043), + 100: uint16(1044), + 101: uint16(1045), + 102: uint16(1025), + 103: uint16(1046), + 104: uint16(1047), + 105: uint16(1048), + 106: uint16(1049), + 107: uint16(1050), + 108: uint16(1051), + 109: uint16(1052), + 110: uint16(1053), + 111: uint16(1054), + 112: uint16(1055), + 113: uint16(1056), + 114: uint16(1057), + 115: uint16(1058), + 116: uint16(1059), + 117: uint16(1060), + 118: uint16(1061), + 119: uint16(1062), + 120: uint16(1063), + 121: uint16(1064), + 122: uint16(1065), + 123: uint16(1066), + 124: uint16(1067), + 125: uint16(1068), + 126: uint16(1069), + 127: uint16(1070), + 128: uint16(1071), + 129: uint16(59296), + 130: uint16(59297), + 131: uint16(59298), + 132: uint16(59299), + 133: uint16(59300), + 134: uint16(59301), + 135: uint16(59302), + 136: uint16(59303), + 137: uint16(59304), + 138: uint16(59305), + 139: uint16(59306), + 140: uint16(59307), + 141: uint16(59308), + 142: uint16(59309), + 143: uint16(59310), + 144: uint16(1072), + 145: uint16(1073), + 146: uint16(1074), + 147: uint16(1075), + 148: uint16(1076), + 149: uint16(1077), + 150: uint16(1105), + 151: uint16(1078), + 152: uint16(1079), + 153: uint16(1080), + 154: uint16(1081), + 155: uint16(1082), + 156: uint16(1083), + 157: uint16(1084), + 158: uint16(1085), + 159: uint16(1086), + 160: uint16(1087), + 161: uint16(1088), + 162: uint16(1089), + 163: uint16(1090), + 164: uint16(1091), + 165: uint16(1092), + 166: uint16(1093), + 167: uint16(1094), + 168: uint16(1095), + 169: uint16(1096), + 170: uint16(1097), + 171: uint16(1098), + 172: uint16(1099), + 173: uint16(1100), + 174: uint16(1101), + 175: uint16(1102), + 176: uint16(1103), + 177: uint16(59311), + 178: uint16(59312), + 179: uint16(59313), + 180: uint16(59314), + 181: uint16(59315), + 182: uint16(59316), + 183: uint16(59317), + 184: uint16(59318), + 185: uint16(59319), + 186: uint16(59320), + 187: uint16(59321), + 188: uint16(59322), + 189: uint16(59323), + }, + 39: { + 0: uint16(714), + 1: uint16(715), + 2: uint16(729), + 3: uint16(8211), + 4: uint16(8213), + 5: uint16(8229), + 6: uint16(8245), + 7: uint16(8453), + 8: uint16(8457), + 9: uint16(8598), + 10: uint16(8599), + 11: uint16(8600), + 12: uint16(8601), + 13: uint16(8725), + 14: uint16(8735), + 15: uint16(8739), + 16: uint16(8786), + 17: uint16(8806), + 18: uint16(8807), + 19: uint16(8895), + 20: uint16(9552), + 21: uint16(9553), + 22: uint16(9554), + 23: uint16(9555), + 24: uint16(9556), + 25: uint16(9557), + 26: uint16(9558), + 27: uint16(9559), + 28: uint16(9560), + 29: uint16(9561), + 30: uint16(9562), + 31: uint16(9563), + 32: uint16(9564), + 33: uint16(9565), + 34: uint16(9566), + 35: uint16(9567), + 36: uint16(9568), + 37: uint16(9569), + 38: uint16(9570), + 39: uint16(9571), + 40: uint16(9572), + 41: uint16(9573), + 42: uint16(9574), + 43: uint16(9575), + 44: uint16(9576), + 45: uint16(9577), + 46: uint16(9578), + 47: uint16(9579), + 48: uint16(9580), + 49: uint16(9581), + 50: uint16(9582), + 51: uint16(9583), + 52: uint16(9584), + 53: uint16(9585), + 54: uint16(9586), + 55: uint16(9587), + 56: uint16(9601), + 57: uint16(9602), + 58: uint16(9603), + 59: uint16(9604), + 60: uint16(9605), + 61: uint16(9606), + 62: uint16(9607), + 63: uint16(9608), + 64: uint16(9609), + 65: uint16(9610), + 66: uint16(9611), + 67: uint16(9612), + 68: uint16(9613), + 69: uint16(9614), + 70: uint16(9615), + 71: uint16(9619), + 72: uint16(9620), + 73: uint16(9621), + 74: uint16(9660), + 75: uint16(9661), + 76: uint16(9698), + 77: uint16(9699), + 78: uint16(9700), + 79: uint16(9701), + 80: uint16(9737), + 81: uint16(8853), + 82: uint16(12306), + 83: uint16(12317), + 84: uint16(12318), + 85: uint16(59324), + 86: uint16(59325), + 87: uint16(59326), + 88: uint16(59327), + 89: uint16(59328), + 90: uint16(59329), + 91: uint16(59330), + 92: uint16(59331), + 93: uint16(59332), + 94: uint16(59333), + 95: uint16(59334), + 96: uint16(257), + 97: uint16(225), + 98: uint16(462), + 99: uint16(224), + 100: uint16(275), + 101: uint16(233), + 102: uint16(283), + 103: uint16(232), + 104: uint16(299), + 105: uint16(237), + 106: uint16(464), + 107: uint16(236), + 108: uint16(333), + 109: uint16(243), + 110: uint16(466), + 111: uint16(242), + 112: uint16(363), + 113: uint16(250), + 114: uint16(468), + 115: uint16(249), + 116: uint16(470), + 117: uint16(472), + 118: uint16(474), + 119: uint16(476), + 120: uint16(252), + 121: uint16(234), + 122: uint16(593), + 123: uint16(59335), + 124: uint16(324), + 125: uint16(328), + 126: uint16(505), + 127: uint16(609), + 128: uint16(59337), + 129: uint16(59338), + 130: uint16(59339), + 131: uint16(59340), + 132: uint16(12549), + 133: uint16(12550), + 134: uint16(12551), + 135: uint16(12552), + 136: uint16(12553), + 137: uint16(12554), + 138: uint16(12555), + 139: uint16(12556), + 140: uint16(12557), + 141: uint16(12558), + 142: uint16(12559), + 143: uint16(12560), + 144: uint16(12561), + 145: uint16(12562), + 146: uint16(12563), + 147: uint16(12564), + 148: uint16(12565), + 149: uint16(12566), + 150: uint16(12567), + 151: uint16(12568), + 152: uint16(12569), + 153: uint16(12570), + 154: uint16(12571), + 155: uint16(12572), + 156: uint16(12573), + 157: uint16(12574), + 158: uint16(12575), + 159: uint16(12576), + 160: uint16(12577), + 161: uint16(12578), + 162: uint16(12579), + 163: uint16(12580), + 164: uint16(12581), + 165: uint16(12582), + 166: uint16(12583), + 167: uint16(12584), + 168: uint16(12585), + 169: uint16(59341), + 170: uint16(59342), + 171: uint16(59343), + 172: uint16(59344), + 173: uint16(59345), + 174: uint16(59346), + 175: uint16(59347), + 176: uint16(59348), + 177: uint16(59349), + 178: uint16(59350), + 179: uint16(59351), + 180: uint16(59352), + 181: uint16(59353), + 182: uint16(59354), + 183: uint16(59355), + 184: uint16(59356), + 185: uint16(59357), + 186: uint16(59358), + 187: uint16(59359), + 188: uint16(59360), + 189: uint16(59361), + }, + 40: { + 0: uint16(12321), + 1: uint16(12322), + 2: uint16(12323), + 3: uint16(12324), + 4: uint16(12325), + 5: uint16(12326), + 6: uint16(12327), + 7: uint16(12328), + 8: uint16(12329), + 9: uint16(12963), + 10: uint16(13198), + 11: uint16(13199), + 12: uint16(13212), + 13: uint16(13213), + 14: uint16(13214), + 15: uint16(13217), + 16: uint16(13252), + 17: uint16(13262), + 18: uint16(13265), + 19: uint16(13266), + 20: uint16(13269), + 21: uint16(65072), + 22: uint16(65506), + 23: uint16(65508), + 24: uint16(59362), + 25: uint16(8481), + 26: uint16(12849), + 27: uint16(59363), + 28: uint16(8208), + 29: uint16(59364), + 30: uint16(59365), + 31: uint16(59366), + 32: uint16(12540), + 33: uint16(12443), + 34: uint16(12444), + 35: uint16(12541), + 36: uint16(12542), + 37: uint16(12294), + 38: uint16(12445), + 39: uint16(12446), + 40: uint16(65097), + 41: uint16(65098), + 42: uint16(65099), + 43: uint16(65100), + 44: uint16(65101), + 45: uint16(65102), + 46: uint16(65103), + 47: uint16(65104), + 48: uint16(65105), + 49: uint16(65106), + 50: uint16(65108), + 51: uint16(65109), + 52: uint16(65110), + 53: uint16(65111), + 54: uint16(65113), + 55: uint16(65114), + 56: uint16(65115), + 57: uint16(65116), + 58: uint16(65117), + 59: uint16(65118), + 60: uint16(65119), + 61: uint16(65120), + 62: uint16(65121), + 63: uint16(65122), + 64: uint16(65123), + 65: uint16(65124), + 66: uint16(65125), + 67: uint16(65126), + 68: uint16(65128), + 69: uint16(65129), + 70: uint16(65130), + 71: uint16(65131), + 72: uint16(12350), + 73: uint16(12272), + 74: uint16(12273), + 75: uint16(12274), + 76: uint16(12275), + 77: uint16(12276), + 78: uint16(12277), + 79: uint16(12278), + 80: uint16(12279), + 81: uint16(12280), + 82: uint16(12281), + 83: uint16(12282), + 84: uint16(12283), + 85: uint16(12295), + 86: uint16(59380), + 87: uint16(59381), + 88: uint16(59382), + 89: uint16(59383), + 90: uint16(59384), + 91: uint16(59385), + 92: uint16(59386), + 93: uint16(59387), + 94: uint16(59388), + 95: uint16(59389), + 96: uint16(59390), + 97: uint16(59391), + 98: uint16(59392), + 99: uint16(9472), + 100: uint16(9473), + 101: uint16(9474), + 102: uint16(9475), + 103: uint16(9476), + 104: uint16(9477), + 105: uint16(9478), + 106: uint16(9479), + 107: uint16(9480), + 108: uint16(9481), + 109: uint16(9482), + 110: uint16(9483), + 111: uint16(9484), + 112: uint16(9485), + 113: uint16(9486), + 114: uint16(9487), + 115: uint16(9488), + 116: uint16(9489), + 117: uint16(9490), + 118: uint16(9491), + 119: uint16(9492), + 120: uint16(9493), + 121: uint16(9494), + 122: uint16(9495), + 123: uint16(9496), + 124: uint16(9497), + 125: uint16(9498), + 126: uint16(9499), + 127: uint16(9500), + 128: uint16(9501), + 129: uint16(9502), + 130: uint16(9503), + 131: uint16(9504), + 132: uint16(9505), + 133: uint16(9506), + 134: uint16(9507), + 135: uint16(9508), + 136: uint16(9509), + 137: uint16(9510), + 138: uint16(9511), + 139: uint16(9512), + 140: uint16(9513), + 141: uint16(9514), + 142: uint16(9515), + 143: uint16(9516), + 144: uint16(9517), + 145: uint16(9518), + 146: uint16(9519), + 147: uint16(9520), + 148: uint16(9521), + 149: uint16(9522), + 150: uint16(9523), + 151: uint16(9524), + 152: uint16(9525), + 153: uint16(9526), + 154: uint16(9527), + 155: uint16(9528), + 156: uint16(9529), + 157: uint16(9530), + 158: uint16(9531), + 159: uint16(9532), + 160: uint16(9533), + 161: uint16(9534), + 162: uint16(9535), + 163: uint16(9536), + 164: uint16(9537), + 165: uint16(9538), + 166: uint16(9539), + 167: uint16(9540), + 168: uint16(9541), + 169: uint16(9542), + 170: uint16(9543), + 171: uint16(9544), + 172: uint16(9545), + 173: uint16(9546), + 174: uint16(9547), + 175: uint16(59393), + 176: uint16(59394), + 177: uint16(59395), + 178: uint16(59396), + 179: uint16(59397), + 180: uint16(59398), + 181: uint16(59399), + 182: uint16(59400), + 183: uint16(59401), + 184: uint16(59402), + 185: uint16(59403), + 186: uint16(59404), + 187: uint16(59405), + 188: uint16(59406), + 189: uint16(59407), + }, + 41: { + 0: uint16(29404), + 1: uint16(29405), + 2: uint16(29407), + 3: uint16(29410), + 4: uint16(29411), + 5: uint16(29412), + 6: uint16(29413), + 7: uint16(29414), + 8: uint16(29415), + 9: uint16(29418), + 10: uint16(29419), + 11: uint16(29429), + 12: uint16(29430), + 13: uint16(29433), + 14: uint16(29437), + 15: uint16(29438), + 16: uint16(29439), + 17: uint16(29440), + 18: uint16(29442), + 19: uint16(29444), + 20: uint16(29445), + 21: uint16(29446), + 22: uint16(29447), + 23: uint16(29448), + 24: uint16(29449), + 25: uint16(29451), + 26: uint16(29452), + 27: uint16(29453), + 28: uint16(29455), + 29: uint16(29456), + 30: uint16(29457), + 31: uint16(29458), + 32: uint16(29460), + 33: uint16(29464), + 34: uint16(29465), + 35: uint16(29466), + 36: uint16(29471), + 37: uint16(29472), + 38: uint16(29475), + 39: uint16(29476), + 40: uint16(29478), + 41: uint16(29479), + 42: uint16(29480), + 43: uint16(29485), + 44: uint16(29487), + 45: uint16(29488), + 46: uint16(29490), + 47: uint16(29491), + 48: uint16(29493), + 49: uint16(29494), + 50: uint16(29498), + 51: uint16(29499), + 52: uint16(29500), + 53: uint16(29501), + 54: uint16(29504), + 55: uint16(29505), + 56: uint16(29506), + 57: uint16(29507), + 58: uint16(29508), + 59: uint16(29509), + 60: uint16(29510), + 61: uint16(29511), + 62: uint16(29512), + 63: uint16(29513), + 64: uint16(29514), + 65: uint16(29515), + 66: uint16(29516), + 67: uint16(29518), + 68: uint16(29519), + 69: uint16(29521), + 70: uint16(29523), + 71: uint16(29524), + 72: uint16(29525), + 73: uint16(29526), + 74: uint16(29528), + 75: uint16(29529), + 76: uint16(29530), + 77: uint16(29531), + 78: uint16(29532), + 79: uint16(29533), + 80: uint16(29534), + 81: uint16(29535), + 82: uint16(29537), + 83: uint16(29538), + 84: uint16(29539), + 85: uint16(29540), + 86: uint16(29541), + 87: uint16(29542), + 88: uint16(29543), + 89: uint16(29544), + 90: uint16(29545), + 91: uint16(29546), + 92: uint16(29547), + 93: uint16(29550), + 94: uint16(29552), + 95: uint16(29553), + 96: uint16(57344), + 97: uint16(57345), + 98: uint16(57346), + 99: uint16(57347), + 100: uint16(57348), + 101: uint16(57349), + 102: uint16(57350), + 103: uint16(57351), + 104: uint16(57352), + 105: uint16(57353), + 106: uint16(57354), + 107: uint16(57355), + 108: uint16(57356), + 109: uint16(57357), + 110: uint16(57358), + 111: uint16(57359), + 112: uint16(57360), + 113: uint16(57361), + 114: uint16(57362), + 115: uint16(57363), + 116: uint16(57364), + 117: uint16(57365), + 118: uint16(57366), + 119: uint16(57367), + 120: uint16(57368), + 121: uint16(57369), + 122: uint16(57370), + 123: uint16(57371), + 124: uint16(57372), + 125: uint16(57373), + 126: uint16(57374), + 127: uint16(57375), + 128: uint16(57376), + 129: uint16(57377), + 130: uint16(57378), + 131: uint16(57379), + 132: uint16(57380), + 133: uint16(57381), + 134: uint16(57382), + 135: uint16(57383), + 136: uint16(57384), + 137: uint16(57385), + 138: uint16(57386), + 139: uint16(57387), + 140: uint16(57388), + 141: uint16(57389), + 142: uint16(57390), + 143: uint16(57391), + 144: uint16(57392), + 145: uint16(57393), + 146: uint16(57394), + 147: uint16(57395), + 148: uint16(57396), + 149: uint16(57397), + 150: uint16(57398), + 151: uint16(57399), + 152: uint16(57400), + 153: uint16(57401), + 154: uint16(57402), + 155: uint16(57403), + 156: uint16(57404), + 157: uint16(57405), + 158: uint16(57406), + 159: uint16(57407), + 160: uint16(57408), + 161: uint16(57409), + 162: uint16(57410), + 163: uint16(57411), + 164: uint16(57412), + 165: uint16(57413), + 166: uint16(57414), + 167: uint16(57415), + 168: uint16(57416), + 169: uint16(57417), + 170: uint16(57418), + 171: uint16(57419), + 172: uint16(57420), + 173: uint16(57421), + 174: uint16(57422), + 175: uint16(57423), + 176: uint16(57424), + 177: uint16(57425), + 178: uint16(57426), + 179: uint16(57427), + 180: uint16(57428), + 181: uint16(57429), + 182: uint16(57430), + 183: uint16(57431), + 184: uint16(57432), + 185: uint16(57433), + 186: uint16(57434), + 187: uint16(57435), + 188: uint16(57436), + 189: uint16(57437), + }, + 42: { + 0: uint16(29554), + 1: uint16(29555), + 2: uint16(29556), + 3: uint16(29557), + 4: uint16(29558), + 5: uint16(29559), + 6: uint16(29560), + 7: uint16(29561), + 8: uint16(29562), + 9: uint16(29563), + 10: uint16(29564), + 11: uint16(29565), + 12: uint16(29567), + 13: uint16(29568), + 14: uint16(29569), + 15: uint16(29570), + 16: uint16(29571), + 17: uint16(29573), + 18: uint16(29574), + 19: uint16(29576), + 20: uint16(29578), + 21: uint16(29580), + 22: uint16(29581), + 23: uint16(29583), + 24: uint16(29584), + 25: uint16(29586), + 26: uint16(29587), + 27: uint16(29588), + 28: uint16(29589), + 29: uint16(29591), + 30: uint16(29592), + 31: uint16(29593), + 32: uint16(29594), + 33: uint16(29596), + 34: uint16(29597), + 35: uint16(29598), + 36: uint16(29600), + 37: uint16(29601), + 38: uint16(29603), + 39: uint16(29604), + 40: uint16(29605), + 41: uint16(29606), + 42: uint16(29607), + 43: uint16(29608), + 44: uint16(29610), + 45: uint16(29612), + 46: uint16(29613), + 47: uint16(29617), + 48: uint16(29620), + 49: uint16(29621), + 50: uint16(29622), + 51: uint16(29624), + 52: uint16(29625), + 53: uint16(29628), + 54: uint16(29629), + 55: uint16(29630), + 56: uint16(29631), + 57: uint16(29633), + 58: uint16(29635), + 59: uint16(29636), + 60: uint16(29637), + 61: uint16(29638), + 62: uint16(29639), + 63: uint16(29643), + 64: uint16(29644), + 65: uint16(29646), + 66: uint16(29650), + 67: uint16(29651), + 68: uint16(29652), + 69: uint16(29653), + 70: uint16(29654), + 71: uint16(29655), + 72: uint16(29656), + 73: uint16(29658), + 74: uint16(29659), + 75: uint16(29660), + 76: uint16(29661), + 77: uint16(29663), + 78: uint16(29665), + 79: uint16(29666), + 80: uint16(29667), + 81: uint16(29668), + 82: uint16(29670), + 83: uint16(29672), + 84: uint16(29674), + 85: uint16(29675), + 86: uint16(29676), + 87: uint16(29678), + 88: uint16(29679), + 89: uint16(29680), + 90: uint16(29681), + 91: uint16(29683), + 92: uint16(29684), + 93: uint16(29685), + 94: uint16(29686), + 95: uint16(29687), + 96: uint16(57438), + 97: uint16(57439), + 98: uint16(57440), + 99: uint16(57441), + 100: uint16(57442), + 101: uint16(57443), + 102: uint16(57444), + 103: uint16(57445), + 104: uint16(57446), + 105: uint16(57447), + 106: uint16(57448), + 107: uint16(57449), + 108: uint16(57450), + 109: uint16(57451), + 110: uint16(57452), + 111: uint16(57453), + 112: uint16(57454), + 113: uint16(57455), + 114: uint16(57456), + 115: uint16(57457), + 116: uint16(57458), + 117: uint16(57459), + 118: uint16(57460), + 119: uint16(57461), + 120: uint16(57462), + 121: uint16(57463), + 122: uint16(57464), + 123: uint16(57465), + 124: uint16(57466), + 125: uint16(57467), + 126: uint16(57468), + 127: uint16(57469), + 128: uint16(57470), + 129: uint16(57471), + 130: uint16(57472), + 131: uint16(57473), + 132: uint16(57474), + 133: uint16(57475), + 134: uint16(57476), + 135: uint16(57477), + 136: uint16(57478), + 137: uint16(57479), + 138: uint16(57480), + 139: uint16(57481), + 140: uint16(57482), + 141: uint16(57483), + 142: uint16(57484), + 143: uint16(57485), + 144: uint16(57486), + 145: uint16(57487), + 146: uint16(57488), + 147: uint16(57489), + 148: uint16(57490), + 149: uint16(57491), + 150: uint16(57492), + 151: uint16(57493), + 152: uint16(57494), + 153: uint16(57495), + 154: uint16(57496), + 155: uint16(57497), + 156: uint16(57498), + 157: uint16(57499), + 158: uint16(57500), + 159: uint16(57501), + 160: uint16(57502), + 161: uint16(57503), + 162: uint16(57504), + 163: uint16(57505), + 164: uint16(57506), + 165: uint16(57507), + 166: uint16(57508), + 167: uint16(57509), + 168: uint16(57510), + 169: uint16(57511), + 170: uint16(57512), + 171: uint16(57513), + 172: uint16(57514), + 173: uint16(57515), + 174: uint16(57516), + 175: uint16(57517), + 176: uint16(57518), + 177: uint16(57519), + 178: uint16(57520), + 179: uint16(57521), + 180: uint16(57522), + 181: uint16(57523), + 182: uint16(57524), + 183: uint16(57525), + 184: uint16(57526), + 185: uint16(57527), + 186: uint16(57528), + 187: uint16(57529), + 188: uint16(57530), + 189: uint16(57531), + }, + 43: { + 0: uint16(29688), + 1: uint16(29689), + 2: uint16(29690), + 3: uint16(29691), + 4: uint16(29692), + 5: uint16(29693), + 6: uint16(29694), + 7: uint16(29695), + 8: uint16(29696), + 9: uint16(29697), + 10: uint16(29698), + 11: uint16(29700), + 12: uint16(29703), + 13: uint16(29704), + 14: uint16(29707), + 15: uint16(29708), + 16: uint16(29709), + 17: uint16(29710), + 18: uint16(29713), + 19: uint16(29714), + 20: uint16(29715), + 21: uint16(29716), + 22: uint16(29717), + 23: uint16(29718), + 24: uint16(29719), + 25: uint16(29720), + 26: uint16(29721), + 27: uint16(29724), + 28: uint16(29725), + 29: uint16(29726), + 30: uint16(29727), + 31: uint16(29728), + 32: uint16(29729), + 33: uint16(29731), + 34: uint16(29732), + 35: uint16(29735), + 36: uint16(29737), + 37: uint16(29739), + 38: uint16(29741), + 39: uint16(29743), + 40: uint16(29745), + 41: uint16(29746), + 42: uint16(29751), + 43: uint16(29752), + 44: uint16(29753), + 45: uint16(29754), + 46: uint16(29755), + 47: uint16(29757), + 48: uint16(29758), + 49: uint16(29759), + 50: uint16(29760), + 51: uint16(29762), + 52: uint16(29763), + 53: uint16(29764), + 54: uint16(29765), + 55: uint16(29766), + 56: uint16(29767), + 57: uint16(29768), + 58: uint16(29769), + 59: uint16(29770), + 60: uint16(29771), + 61: uint16(29772), + 62: uint16(29773), + 63: uint16(29774), + 64: uint16(29775), + 65: uint16(29776), + 66: uint16(29777), + 67: uint16(29778), + 68: uint16(29779), + 69: uint16(29780), + 70: uint16(29782), + 71: uint16(29784), + 72: uint16(29789), + 73: uint16(29792), + 74: uint16(29793), + 75: uint16(29794), + 76: uint16(29795), + 77: uint16(29796), + 78: uint16(29797), + 79: uint16(29798), + 80: uint16(29799), + 81: uint16(29800), + 82: uint16(29801), + 83: uint16(29802), + 84: uint16(29803), + 85: uint16(29804), + 86: uint16(29806), + 87: uint16(29807), + 88: uint16(29809), + 89: uint16(29810), + 90: uint16(29811), + 91: uint16(29812), + 92: uint16(29813), + 93: uint16(29816), + 94: uint16(29817), + 95: uint16(29818), + 96: uint16(57532), + 97: uint16(57533), + 98: uint16(57534), + 99: uint16(57535), + 100: uint16(57536), + 101: uint16(57537), + 102: uint16(57538), + 103: uint16(57539), + 104: uint16(57540), + 105: uint16(57541), + 106: uint16(57542), + 107: uint16(57543), + 108: uint16(57544), + 109: uint16(57545), + 110: uint16(57546), + 111: uint16(57547), + 112: uint16(57548), + 113: uint16(57549), + 114: uint16(57550), + 115: uint16(57551), + 116: uint16(57552), + 117: uint16(57553), + 118: uint16(57554), + 119: uint16(57555), + 120: uint16(57556), + 121: uint16(57557), + 122: uint16(57558), + 123: uint16(57559), + 124: uint16(57560), + 125: uint16(57561), + 126: uint16(57562), + 127: uint16(57563), + 128: uint16(57564), + 129: uint16(57565), + 130: uint16(57566), + 131: uint16(57567), + 132: uint16(57568), + 133: uint16(57569), + 134: uint16(57570), + 135: uint16(57571), + 136: uint16(57572), + 137: uint16(57573), + 138: uint16(57574), + 139: uint16(57575), + 140: uint16(57576), + 141: uint16(57577), + 142: uint16(57578), + 143: uint16(57579), + 144: uint16(57580), + 145: uint16(57581), + 146: uint16(57582), + 147: uint16(57583), + 148: uint16(57584), + 149: uint16(57585), + 150: uint16(57586), + 151: uint16(57587), + 152: uint16(57588), + 153: uint16(57589), + 154: uint16(57590), + 155: uint16(57591), + 156: uint16(57592), + 157: uint16(57593), + 158: uint16(57594), + 159: uint16(57595), + 160: uint16(57596), + 161: uint16(57597), + 162: uint16(57598), + 163: uint16(57599), + 164: uint16(57600), + 165: uint16(57601), + 166: uint16(57602), + 167: uint16(57603), + 168: uint16(57604), + 169: uint16(57605), + 170: uint16(57606), + 171: uint16(57607), + 172: uint16(57608), + 173: uint16(57609), + 174: uint16(57610), + 175: uint16(57611), + 176: uint16(57612), + 177: uint16(57613), + 178: uint16(57614), + 179: uint16(57615), + 180: uint16(57616), + 181: uint16(57617), + 182: uint16(57618), + 183: uint16(57619), + 184: uint16(57620), + 185: uint16(57621), + 186: uint16(57622), + 187: uint16(57623), + 188: uint16(57624), + 189: uint16(57625), + }, + 44: { + 0: uint16(29819), + 1: uint16(29820), + 2: uint16(29821), + 3: uint16(29823), + 4: uint16(29826), + 5: uint16(29828), + 6: uint16(29829), + 7: uint16(29830), + 8: uint16(29832), + 9: uint16(29833), + 10: uint16(29834), + 11: uint16(29836), + 12: uint16(29837), + 13: uint16(29839), + 14: uint16(29841), + 15: uint16(29842), + 16: uint16(29843), + 17: uint16(29844), + 18: uint16(29845), + 19: uint16(29846), + 20: uint16(29847), + 21: uint16(29848), + 22: uint16(29849), + 23: uint16(29850), + 24: uint16(29851), + 25: uint16(29853), + 26: uint16(29855), + 27: uint16(29856), + 28: uint16(29857), + 29: uint16(29858), + 30: uint16(29859), + 31: uint16(29860), + 32: uint16(29861), + 33: uint16(29862), + 34: uint16(29866), + 35: uint16(29867), + 36: uint16(29868), + 37: uint16(29869), + 38: uint16(29870), + 39: uint16(29871), + 40: uint16(29872), + 41: uint16(29873), + 42: uint16(29874), + 43: uint16(29875), + 44: uint16(29876), + 45: uint16(29877), + 46: uint16(29878), + 47: uint16(29879), + 48: uint16(29880), + 49: uint16(29881), + 50: uint16(29883), + 51: uint16(29884), + 52: uint16(29885), + 53: uint16(29886), + 54: uint16(29887), + 55: uint16(29888), + 56: uint16(29889), + 57: uint16(29890), + 58: uint16(29891), + 59: uint16(29892), + 60: uint16(29893), + 61: uint16(29894), + 62: uint16(29895), + 63: uint16(29896), + 64: uint16(29897), + 65: uint16(29898), + 66: uint16(29899), + 67: uint16(29900), + 68: uint16(29901), + 69: uint16(29902), + 70: uint16(29903), + 71: uint16(29904), + 72: uint16(29905), + 73: uint16(29907), + 74: uint16(29908), + 75: uint16(29909), + 76: uint16(29910), + 77: uint16(29911), + 78: uint16(29912), + 79: uint16(29913), + 80: uint16(29914), + 81: uint16(29915), + 82: uint16(29917), + 83: uint16(29919), + 84: uint16(29921), + 85: uint16(29925), + 86: uint16(29927), + 87: uint16(29928), + 88: uint16(29929), + 89: uint16(29930), + 90: uint16(29931), + 91: uint16(29932), + 92: uint16(29933), + 93: uint16(29936), + 94: uint16(29937), + 95: uint16(29938), + 96: uint16(57626), + 97: uint16(57627), + 98: uint16(57628), + 99: uint16(57629), + 100: uint16(57630), + 101: uint16(57631), + 102: uint16(57632), + 103: uint16(57633), + 104: uint16(57634), + 105: uint16(57635), + 106: uint16(57636), + 107: uint16(57637), + 108: uint16(57638), + 109: uint16(57639), + 110: uint16(57640), + 111: uint16(57641), + 112: uint16(57642), + 113: uint16(57643), + 114: uint16(57644), + 115: uint16(57645), + 116: uint16(57646), + 117: uint16(57647), + 118: uint16(57648), + 119: uint16(57649), + 120: uint16(57650), + 121: uint16(57651), + 122: uint16(57652), + 123: uint16(57653), + 124: uint16(57654), + 125: uint16(57655), + 126: uint16(57656), + 127: uint16(57657), + 128: uint16(57658), + 129: uint16(57659), + 130: uint16(57660), + 131: uint16(57661), + 132: uint16(57662), + 133: uint16(57663), + 134: uint16(57664), + 135: uint16(57665), + 136: uint16(57666), + 137: uint16(57667), + 138: uint16(57668), + 139: uint16(57669), + 140: uint16(57670), + 141: uint16(57671), + 142: uint16(57672), + 143: uint16(57673), + 144: uint16(57674), + 145: uint16(57675), + 146: uint16(57676), + 147: uint16(57677), + 148: uint16(57678), + 149: uint16(57679), + 150: uint16(57680), + 151: uint16(57681), + 152: uint16(57682), + 153: uint16(57683), + 154: uint16(57684), + 155: uint16(57685), + 156: uint16(57686), + 157: uint16(57687), + 158: uint16(57688), + 159: uint16(57689), + 160: uint16(57690), + 161: uint16(57691), + 162: uint16(57692), + 163: uint16(57693), + 164: uint16(57694), + 165: uint16(57695), + 166: uint16(57696), + 167: uint16(57697), + 168: uint16(57698), + 169: uint16(57699), + 170: uint16(57700), + 171: uint16(57701), + 172: uint16(57702), + 173: uint16(57703), + 174: uint16(57704), + 175: uint16(57705), + 176: uint16(57706), + 177: uint16(57707), + 178: uint16(57708), + 179: uint16(57709), + 180: uint16(57710), + 181: uint16(57711), + 182: uint16(57712), + 183: uint16(57713), + 184: uint16(57714), + 185: uint16(57715), + 186: uint16(57716), + 187: uint16(57717), + 188: uint16(57718), + 189: uint16(57719), + }, + 45: { + 0: uint16(29939), + 1: uint16(29941), + 2: uint16(29944), + 3: uint16(29945), + 4: uint16(29946), + 5: uint16(29947), + 6: uint16(29948), + 7: uint16(29949), + 8: uint16(29950), + 9: uint16(29952), + 10: uint16(29953), + 11: uint16(29954), + 12: uint16(29955), + 13: uint16(29957), + 14: uint16(29958), + 15: uint16(29959), + 16: uint16(29960), + 17: uint16(29961), + 18: uint16(29962), + 19: uint16(29963), + 20: uint16(29964), + 21: uint16(29966), + 22: uint16(29968), + 23: uint16(29970), + 24: uint16(29972), + 25: uint16(29973), + 26: uint16(29974), + 27: uint16(29975), + 28: uint16(29979), + 29: uint16(29981), + 30: uint16(29982), + 31: uint16(29984), + 32: uint16(29985), + 33: uint16(29986), + 34: uint16(29987), + 35: uint16(29988), + 36: uint16(29990), + 37: uint16(29991), + 38: uint16(29994), + 39: uint16(29998), + 40: uint16(30004), + 41: uint16(30006), + 42: uint16(30009), + 43: uint16(30012), + 44: uint16(30013), + 45: uint16(30015), + 46: uint16(30017), + 47: uint16(30018), + 48: uint16(30019), + 49: uint16(30020), + 50: uint16(30022), + 51: uint16(30023), + 52: uint16(30025), + 53: uint16(30026), + 54: uint16(30029), + 55: uint16(30032), + 56: uint16(30033), + 57: uint16(30034), + 58: uint16(30035), + 59: uint16(30037), + 60: uint16(30038), + 61: uint16(30039), + 62: uint16(30040), + 63: uint16(30045), + 64: uint16(30046), + 65: uint16(30047), + 66: uint16(30048), + 67: uint16(30049), + 68: uint16(30050), + 69: uint16(30051), + 70: uint16(30052), + 71: uint16(30055), + 72: uint16(30056), + 73: uint16(30057), + 74: uint16(30059), + 75: uint16(30060), + 76: uint16(30061), + 77: uint16(30062), + 78: uint16(30063), + 79: uint16(30064), + 80: uint16(30065), + 81: uint16(30067), + 82: uint16(30069), + 83: uint16(30070), + 84: uint16(30071), + 85: uint16(30074), + 86: uint16(30075), + 87: uint16(30076), + 88: uint16(30077), + 89: uint16(30078), + 90: uint16(30080), + 91: uint16(30081), + 92: uint16(30082), + 93: uint16(30084), + 94: uint16(30085), + 95: uint16(30087), + 96: uint16(57720), + 97: uint16(57721), + 98: uint16(57722), + 99: uint16(57723), + 100: uint16(57724), + 101: uint16(57725), + 102: uint16(57726), + 103: uint16(57727), + 104: uint16(57728), + 105: uint16(57729), + 106: uint16(57730), + 107: uint16(57731), + 108: uint16(57732), + 109: uint16(57733), + 110: uint16(57734), + 111: uint16(57735), + 112: uint16(57736), + 113: uint16(57737), + 114: uint16(57738), + 115: uint16(57739), + 116: uint16(57740), + 117: uint16(57741), + 118: uint16(57742), + 119: uint16(57743), + 120: uint16(57744), + 121: uint16(57745), + 122: uint16(57746), + 123: uint16(57747), + 124: uint16(57748), + 125: uint16(57749), + 126: uint16(57750), + 127: uint16(57751), + 128: uint16(57752), + 129: uint16(57753), + 130: uint16(57754), + 131: uint16(57755), + 132: uint16(57756), + 133: uint16(57757), + 134: uint16(57758), + 135: uint16(57759), + 136: uint16(57760), + 137: uint16(57761), + 138: uint16(57762), + 139: uint16(57763), + 140: uint16(57764), + 141: uint16(57765), + 142: uint16(57766), + 143: uint16(57767), + 144: uint16(57768), + 145: uint16(57769), + 146: uint16(57770), + 147: uint16(57771), + 148: uint16(57772), + 149: uint16(57773), + 150: uint16(57774), + 151: uint16(57775), + 152: uint16(57776), + 153: uint16(57777), + 154: uint16(57778), + 155: uint16(57779), + 156: uint16(57780), + 157: uint16(57781), + 158: uint16(57782), + 159: uint16(57783), + 160: uint16(57784), + 161: uint16(57785), + 162: uint16(57786), + 163: uint16(57787), + 164: uint16(57788), + 165: uint16(57789), + 166: uint16(57790), + 167: uint16(57791), + 168: uint16(57792), + 169: uint16(57793), + 170: uint16(57794), + 171: uint16(57795), + 172: uint16(57796), + 173: uint16(57797), + 174: uint16(57798), + 175: uint16(57799), + 176: uint16(57800), + 177: uint16(57801), + 178: uint16(57802), + 179: uint16(57803), + 180: uint16(57804), + 181: uint16(57805), + 182: uint16(57806), + 183: uint16(57807), + 184: uint16(57808), + 185: uint16(57809), + 186: uint16(57810), + 187: uint16(57811), + 188: uint16(57812), + 189: uint16(57813), + }, + 46: { + 0: uint16(30088), + 1: uint16(30089), + 2: uint16(30090), + 3: uint16(30092), + 4: uint16(30093), + 5: uint16(30094), + 6: uint16(30096), + 7: uint16(30099), + 8: uint16(30101), + 9: uint16(30104), + 10: uint16(30107), + 11: uint16(30108), + 12: uint16(30110), + 13: uint16(30114), + 14: uint16(30118), + 15: uint16(30119), + 16: uint16(30120), + 17: uint16(30121), + 18: uint16(30122), + 19: uint16(30125), + 20: uint16(30134), + 21: uint16(30135), + 22: uint16(30138), + 23: uint16(30139), + 24: uint16(30143), + 25: uint16(30144), + 26: uint16(30145), + 27: uint16(30150), + 28: uint16(30155), + 29: uint16(30156), + 30: uint16(30158), + 31: uint16(30159), + 32: uint16(30160), + 33: uint16(30161), + 34: uint16(30163), + 35: uint16(30167), + 36: uint16(30169), + 37: uint16(30170), + 38: uint16(30172), + 39: uint16(30173), + 40: uint16(30175), + 41: uint16(30176), + 42: uint16(30177), + 43: uint16(30181), + 44: uint16(30185), + 45: uint16(30188), + 46: uint16(30189), + 47: uint16(30190), + 48: uint16(30191), + 49: uint16(30194), + 50: uint16(30195), + 51: uint16(30197), + 52: uint16(30198), + 53: uint16(30199), + 54: uint16(30200), + 55: uint16(30202), + 56: uint16(30203), + 57: uint16(30205), + 58: uint16(30206), + 59: uint16(30210), + 60: uint16(30212), + 61: uint16(30214), + 62: uint16(30215), + 63: uint16(30216), + 64: uint16(30217), + 65: uint16(30219), + 66: uint16(30221), + 67: uint16(30222), + 68: uint16(30223), + 69: uint16(30225), + 70: uint16(30226), + 71: uint16(30227), + 72: uint16(30228), + 73: uint16(30230), + 74: uint16(30234), + 75: uint16(30236), + 76: uint16(30237), + 77: uint16(30238), + 78: uint16(30241), + 79: uint16(30243), + 80: uint16(30247), + 81: uint16(30248), + 82: uint16(30252), + 83: uint16(30254), + 84: uint16(30255), + 85: uint16(30257), + 86: uint16(30258), + 87: uint16(30262), + 88: uint16(30263), + 89: uint16(30265), + 90: uint16(30266), + 91: uint16(30267), + 92: uint16(30269), + 93: uint16(30273), + 94: uint16(30274), + 95: uint16(30276), + 96: uint16(57814), + 97: uint16(57815), + 98: uint16(57816), + 99: uint16(57817), + 100: uint16(57818), + 101: uint16(57819), + 102: uint16(57820), + 103: uint16(57821), + 104: uint16(57822), + 105: uint16(57823), + 106: uint16(57824), + 107: uint16(57825), + 108: uint16(57826), + 109: uint16(57827), + 110: uint16(57828), + 111: uint16(57829), + 112: uint16(57830), + 113: uint16(57831), + 114: uint16(57832), + 115: uint16(57833), + 116: uint16(57834), + 117: uint16(57835), + 118: uint16(57836), + 119: uint16(57837), + 120: uint16(57838), + 121: uint16(57839), + 122: uint16(57840), + 123: uint16(57841), + 124: uint16(57842), + 125: uint16(57843), + 126: uint16(57844), + 127: uint16(57845), + 128: uint16(57846), + 129: uint16(57847), + 130: uint16(57848), + 131: uint16(57849), + 132: uint16(57850), + 133: uint16(57851), + 134: uint16(57852), + 135: uint16(57853), + 136: uint16(57854), + 137: uint16(57855), + 138: uint16(57856), + 139: uint16(57857), + 140: uint16(57858), + 141: uint16(57859), + 142: uint16(57860), + 143: uint16(57861), + 144: uint16(57862), + 145: uint16(57863), + 146: uint16(57864), + 147: uint16(57865), + 148: uint16(57866), + 149: uint16(57867), + 150: uint16(57868), + 151: uint16(57869), + 152: uint16(57870), + 153: uint16(57871), + 154: uint16(57872), + 155: uint16(57873), + 156: uint16(57874), + 157: uint16(57875), + 158: uint16(57876), + 159: uint16(57877), + 160: uint16(57878), + 161: uint16(57879), + 162: uint16(57880), + 163: uint16(57881), + 164: uint16(57882), + 165: uint16(57883), + 166: uint16(57884), + 167: uint16(57885), + 168: uint16(57886), + 169: uint16(57887), + 170: uint16(57888), + 171: uint16(57889), + 172: uint16(57890), + 173: uint16(57891), + 174: uint16(57892), + 175: uint16(57893), + 176: uint16(57894), + 177: uint16(57895), + 178: uint16(57896), + 179: uint16(57897), + 180: uint16(57898), + 181: uint16(57899), + 182: uint16(57900), + 183: uint16(57901), + 184: uint16(57902), + 185: uint16(57903), + 186: uint16(57904), + 187: uint16(57905), + 188: uint16(57906), + 189: uint16(57907), + }, + 47: { + 0: uint16(30277), + 1: uint16(30278), + 2: uint16(30279), + 3: uint16(30280), + 4: uint16(30281), + 5: uint16(30282), + 6: uint16(30283), + 7: uint16(30286), + 8: uint16(30287), + 9: uint16(30288), + 10: uint16(30289), + 11: uint16(30290), + 12: uint16(30291), + 13: uint16(30293), + 14: uint16(30295), + 15: uint16(30296), + 16: uint16(30297), + 17: uint16(30298), + 18: uint16(30299), + 19: uint16(30301), + 20: uint16(30303), + 21: uint16(30304), + 22: uint16(30305), + 23: uint16(30306), + 24: uint16(30308), + 25: uint16(30309), + 26: uint16(30310), + 27: uint16(30311), + 28: uint16(30312), + 29: uint16(30313), + 30: uint16(30314), + 31: uint16(30316), + 32: uint16(30317), + 33: uint16(30318), + 34: uint16(30320), + 35: uint16(30321), + 36: uint16(30322), + 37: uint16(30323), + 38: uint16(30324), + 39: uint16(30325), + 40: uint16(30326), + 41: uint16(30327), + 42: uint16(30329), + 43: uint16(30330), + 44: uint16(30332), + 45: uint16(30335), + 46: uint16(30336), + 47: uint16(30337), + 48: uint16(30339), + 49: uint16(30341), + 50: uint16(30345), + 51: uint16(30346), + 52: uint16(30348), + 53: uint16(30349), + 54: uint16(30351), + 55: uint16(30352), + 56: uint16(30354), + 57: uint16(30356), + 58: uint16(30357), + 59: uint16(30359), + 60: uint16(30360), + 61: uint16(30362), + 62: uint16(30363), + 63: uint16(30364), + 64: uint16(30365), + 65: uint16(30366), + 66: uint16(30367), + 67: uint16(30368), + 68: uint16(30369), + 69: uint16(30370), + 70: uint16(30371), + 71: uint16(30373), + 72: uint16(30374), + 73: uint16(30375), + 74: uint16(30376), + 75: uint16(30377), + 76: uint16(30378), + 77: uint16(30379), + 78: uint16(30380), + 79: uint16(30381), + 80: uint16(30383), + 81: uint16(30384), + 82: uint16(30387), + 83: uint16(30389), + 84: uint16(30390), + 85: uint16(30391), + 86: uint16(30392), + 87: uint16(30393), + 88: uint16(30394), + 89: uint16(30395), + 90: uint16(30396), + 91: uint16(30397), + 92: uint16(30398), + 93: uint16(30400), + 94: uint16(30401), + 95: uint16(30403), + 96: uint16(21834), + 97: uint16(38463), + 98: uint16(22467), + 99: uint16(25384), + 100: uint16(21710), + 101: uint16(21769), + 102: uint16(21696), + 103: uint16(30353), + 104: uint16(30284), + 105: uint16(34108), + 106: uint16(30702), + 107: uint16(33406), + 108: uint16(30861), + 109: uint16(29233), + 110: uint16(38552), + 111: uint16(38797), + 112: uint16(27688), + 113: uint16(23433), + 114: uint16(20474), + 115: uint16(25353), + 116: uint16(26263), + 117: uint16(23736), + 118: uint16(33018), + 119: uint16(26696), + 120: uint16(32942), + 121: uint16(26114), + 122: uint16(30414), + 123: uint16(20985), + 124: uint16(25942), + 125: uint16(29100), + 126: uint16(32753), + 127: uint16(34948), + 128: uint16(20658), + 129: uint16(22885), + 130: uint16(25034), + 131: uint16(28595), + 132: uint16(33453), + 133: uint16(25420), + 134: uint16(25170), + 135: uint16(21485), + 136: uint16(21543), + 137: uint16(31494), + 138: uint16(20843), + 139: uint16(30116), + 140: uint16(24052), + 141: uint16(25300), + 142: uint16(36299), + 143: uint16(38774), + 144: uint16(25226), + 145: uint16(32793), + 146: uint16(22365), + 147: uint16(38712), + 148: uint16(32610), + 149: uint16(29240), + 150: uint16(30333), + 151: uint16(26575), + 152: uint16(30334), + 153: uint16(25670), + 154: uint16(20336), + 155: uint16(36133), + 156: uint16(25308), + 157: uint16(31255), + 158: uint16(26001), + 159: uint16(29677), + 160: uint16(25644), + 161: uint16(25203), + 162: uint16(33324), + 163: uint16(39041), + 164: uint16(26495), + 165: uint16(29256), + 166: uint16(25198), + 167: uint16(25292), + 168: uint16(20276), + 169: uint16(29923), + 170: uint16(21322), + 171: uint16(21150), + 172: uint16(32458), + 173: uint16(37030), + 174: uint16(24110), + 175: uint16(26758), + 176: uint16(27036), + 177: uint16(33152), + 178: uint16(32465), + 179: uint16(26834), + 180: uint16(30917), + 181: uint16(34444), + 182: uint16(38225), + 183: uint16(20621), + 184: uint16(35876), + 185: uint16(33502), + 186: uint16(32990), + 187: uint16(21253), + 188: uint16(35090), + 189: uint16(21093), + }, + 48: { + 0: uint16(30404), + 1: uint16(30407), + 2: uint16(30409), + 3: uint16(30411), + 4: uint16(30412), + 5: uint16(30419), + 6: uint16(30421), + 7: uint16(30425), + 8: uint16(30426), + 9: uint16(30428), + 10: uint16(30429), + 11: uint16(30430), + 12: uint16(30432), + 13: uint16(30433), + 14: uint16(30434), + 15: uint16(30435), + 16: uint16(30436), + 17: uint16(30438), + 18: uint16(30439), + 19: uint16(30440), + 20: uint16(30441), + 21: uint16(30442), + 22: uint16(30443), + 23: uint16(30444), + 24: uint16(30445), + 25: uint16(30448), + 26: uint16(30451), + 27: uint16(30453), + 28: uint16(30454), + 29: uint16(30455), + 30: uint16(30458), + 31: uint16(30459), + 32: uint16(30461), + 33: uint16(30463), + 34: uint16(30464), + 35: uint16(30466), + 36: uint16(30467), + 37: uint16(30469), + 38: uint16(30470), + 39: uint16(30474), + 40: uint16(30476), + 41: uint16(30478), + 42: uint16(30479), + 43: uint16(30480), + 44: uint16(30481), + 45: uint16(30482), + 46: uint16(30483), + 47: uint16(30484), + 48: uint16(30485), + 49: uint16(30486), + 50: uint16(30487), + 51: uint16(30488), + 52: uint16(30491), + 53: uint16(30492), + 54: uint16(30493), + 55: uint16(30494), + 56: uint16(30497), + 57: uint16(30499), + 58: uint16(30500), + 59: uint16(30501), + 60: uint16(30503), + 61: uint16(30506), + 62: uint16(30507), + 63: uint16(30508), + 64: uint16(30510), + 65: uint16(30512), + 66: uint16(30513), + 67: uint16(30514), + 68: uint16(30515), + 69: uint16(30516), + 70: uint16(30521), + 71: uint16(30523), + 72: uint16(30525), + 73: uint16(30526), + 74: uint16(30527), + 75: uint16(30530), + 76: uint16(30532), + 77: uint16(30533), + 78: uint16(30534), + 79: uint16(30536), + 80: uint16(30537), + 81: uint16(30538), + 82: uint16(30539), + 83: uint16(30540), + 84: uint16(30541), + 85: uint16(30542), + 86: uint16(30543), + 87: uint16(30546), + 88: uint16(30547), + 89: uint16(30548), + 90: uint16(30549), + 91: uint16(30550), + 92: uint16(30551), + 93: uint16(30552), + 94: uint16(30553), + 95: uint16(30556), + 96: uint16(34180), + 97: uint16(38649), + 98: uint16(20445), + 99: uint16(22561), + 100: uint16(39281), + 101: uint16(23453), + 102: uint16(25265), + 103: uint16(25253), + 104: uint16(26292), + 105: uint16(35961), + 106: uint16(40077), + 107: uint16(29190), + 108: uint16(26479), + 109: uint16(30865), + 110: uint16(24754), + 111: uint16(21329), + 112: uint16(21271), + 113: uint16(36744), + 114: uint16(32972), + 115: uint16(36125), + 116: uint16(38049), + 117: uint16(20493), + 118: uint16(29384), + 119: uint16(22791), + 120: uint16(24811), + 121: uint16(28953), + 122: uint16(34987), + 123: uint16(22868), + 124: uint16(33519), + 125: uint16(26412), + 126: uint16(31528), + 127: uint16(23849), + 128: uint16(32503), + 129: uint16(29997), + 130: uint16(27893), + 131: uint16(36454), + 132: uint16(36856), + 133: uint16(36924), + 134: uint16(40763), + 135: uint16(27604), + 136: uint16(37145), + 137: uint16(31508), + 138: uint16(24444), + 139: uint16(30887), + 140: uint16(34006), + 141: uint16(34109), + 142: uint16(27605), + 143: uint16(27609), + 144: uint16(27606), + 145: uint16(24065), + 146: uint16(24199), + 147: uint16(30201), + 148: uint16(38381), + 149: uint16(25949), + 150: uint16(24330), + 151: uint16(24517), + 152: uint16(36767), + 153: uint16(22721), + 154: uint16(33218), + 155: uint16(36991), + 156: uint16(38491), + 157: uint16(38829), + 158: uint16(36793), + 159: uint16(32534), + 160: uint16(36140), + 161: uint16(25153), + 162: uint16(20415), + 163: uint16(21464), + 164: uint16(21342), + 165: uint16(36776), + 166: uint16(36777), + 167: uint16(36779), + 168: uint16(36941), + 169: uint16(26631), + 170: uint16(24426), + 171: uint16(33176), + 172: uint16(34920), + 173: uint16(40150), + 174: uint16(24971), + 175: uint16(21035), + 176: uint16(30250), + 177: uint16(24428), + 178: uint16(25996), + 179: uint16(28626), + 180: uint16(28392), + 181: uint16(23486), + 182: uint16(25672), + 183: uint16(20853), + 184: uint16(20912), + 185: uint16(26564), + 186: uint16(19993), + 187: uint16(31177), + 188: uint16(39292), + 189: uint16(28851), + }, + 49: { + 0: uint16(30557), + 1: uint16(30558), + 2: uint16(30559), + 3: uint16(30560), + 4: uint16(30564), + 5: uint16(30567), + 6: uint16(30569), + 7: uint16(30570), + 8: uint16(30573), + 9: uint16(30574), + 10: uint16(30575), + 11: uint16(30576), + 12: uint16(30577), + 13: uint16(30578), + 14: uint16(30579), + 15: uint16(30580), + 16: uint16(30581), + 17: uint16(30582), + 18: uint16(30583), + 19: uint16(30584), + 20: uint16(30586), + 21: uint16(30587), + 22: uint16(30588), + 23: uint16(30593), + 24: uint16(30594), + 25: uint16(30595), + 26: uint16(30598), + 27: uint16(30599), + 28: uint16(30600), + 29: uint16(30601), + 30: uint16(30602), + 31: uint16(30603), + 32: uint16(30607), + 33: uint16(30608), + 34: uint16(30611), + 35: uint16(30612), + 36: uint16(30613), + 37: uint16(30614), + 38: uint16(30615), + 39: uint16(30616), + 40: uint16(30617), + 41: uint16(30618), + 42: uint16(30619), + 43: uint16(30620), + 44: uint16(30621), + 45: uint16(30622), + 46: uint16(30625), + 47: uint16(30627), + 48: uint16(30628), + 49: uint16(30630), + 50: uint16(30632), + 51: uint16(30635), + 52: uint16(30637), + 53: uint16(30638), + 54: uint16(30639), + 55: uint16(30641), + 56: uint16(30642), + 57: uint16(30644), + 58: uint16(30646), + 59: uint16(30647), + 60: uint16(30648), + 61: uint16(30649), + 62: uint16(30650), + 63: uint16(30652), + 64: uint16(30654), + 65: uint16(30656), + 66: uint16(30657), + 67: uint16(30658), + 68: uint16(30659), + 69: uint16(30660), + 70: uint16(30661), + 71: uint16(30662), + 72: uint16(30663), + 73: uint16(30664), + 74: uint16(30665), + 75: uint16(30666), + 76: uint16(30667), + 77: uint16(30668), + 78: uint16(30670), + 79: uint16(30671), + 80: uint16(30672), + 81: uint16(30673), + 82: uint16(30674), + 83: uint16(30675), + 84: uint16(30676), + 85: uint16(30677), + 86: uint16(30678), + 87: uint16(30680), + 88: uint16(30681), + 89: uint16(30682), + 90: uint16(30685), + 91: uint16(30686), + 92: uint16(30687), + 93: uint16(30688), + 94: uint16(30689), + 95: uint16(30692), + 96: uint16(30149), + 97: uint16(24182), + 98: uint16(29627), + 99: uint16(33760), + 100: uint16(25773), + 101: uint16(25320), + 102: uint16(38069), + 103: uint16(27874), + 104: uint16(21338), + 105: uint16(21187), + 106: uint16(25615), + 107: uint16(38082), + 108: uint16(31636), + 109: uint16(20271), + 110: uint16(24091), + 111: uint16(33334), + 112: uint16(33046), + 113: uint16(33162), + 114: uint16(28196), + 115: uint16(27850), + 116: uint16(39539), + 117: uint16(25429), + 118: uint16(21340), + 119: uint16(21754), + 120: uint16(34917), + 121: uint16(22496), + 122: uint16(19981), + 123: uint16(24067), + 124: uint16(27493), + 125: uint16(31807), + 126: uint16(37096), + 127: uint16(24598), + 128: uint16(25830), + 129: uint16(29468), + 130: uint16(35009), + 131: uint16(26448), + 132: uint16(25165), + 133: uint16(36130), + 134: uint16(30572), + 135: uint16(36393), + 136: uint16(37319), + 137: uint16(24425), + 138: uint16(33756), + 139: uint16(34081), + 140: uint16(39184), + 141: uint16(21442), + 142: uint16(34453), + 143: uint16(27531), + 144: uint16(24813), + 145: uint16(24808), + 146: uint16(28799), + 147: uint16(33485), + 148: uint16(33329), + 149: uint16(20179), + 150: uint16(27815), + 151: uint16(34255), + 152: uint16(25805), + 153: uint16(31961), + 154: uint16(27133), + 155: uint16(26361), + 156: uint16(33609), + 157: uint16(21397), + 158: uint16(31574), + 159: uint16(20391), + 160: uint16(20876), + 161: uint16(27979), + 162: uint16(23618), + 163: uint16(36461), + 164: uint16(25554), + 165: uint16(21449), + 166: uint16(33580), + 167: uint16(33590), + 168: uint16(26597), + 169: uint16(30900), + 170: uint16(25661), + 171: uint16(23519), + 172: uint16(23700), + 173: uint16(24046), + 174: uint16(35815), + 175: uint16(25286), + 176: uint16(26612), + 177: uint16(35962), + 178: uint16(25600), + 179: uint16(25530), + 180: uint16(34633), + 181: uint16(39307), + 182: uint16(35863), + 183: uint16(32544), + 184: uint16(38130), + 185: uint16(20135), + 186: uint16(38416), + 187: uint16(39076), + 188: uint16(26124), + 189: uint16(29462), + }, + 50: { + 0: uint16(30694), + 1: uint16(30696), + 2: uint16(30698), + 3: uint16(30703), + 4: uint16(30704), + 5: uint16(30705), + 6: uint16(30706), + 7: uint16(30708), + 8: uint16(30709), + 9: uint16(30711), + 10: uint16(30713), + 11: uint16(30714), + 12: uint16(30715), + 13: uint16(30716), + 14: uint16(30723), + 15: uint16(30724), + 16: uint16(30725), + 17: uint16(30726), + 18: uint16(30727), + 19: uint16(30728), + 20: uint16(30730), + 21: uint16(30731), + 22: uint16(30734), + 23: uint16(30735), + 24: uint16(30736), + 25: uint16(30739), + 26: uint16(30741), + 27: uint16(30745), + 28: uint16(30747), + 29: uint16(30750), + 30: uint16(30752), + 31: uint16(30753), + 32: uint16(30754), + 33: uint16(30756), + 34: uint16(30760), + 35: uint16(30762), + 36: uint16(30763), + 37: uint16(30766), + 38: uint16(30767), + 39: uint16(30769), + 40: uint16(30770), + 41: uint16(30771), + 42: uint16(30773), + 43: uint16(30774), + 44: uint16(30781), + 45: uint16(30783), + 46: uint16(30785), + 47: uint16(30786), + 48: uint16(30787), + 49: uint16(30788), + 50: uint16(30790), + 51: uint16(30792), + 52: uint16(30793), + 53: uint16(30794), + 54: uint16(30795), + 55: uint16(30797), + 56: uint16(30799), + 57: uint16(30801), + 58: uint16(30803), + 59: uint16(30804), + 60: uint16(30808), + 61: uint16(30809), + 62: uint16(30810), + 63: uint16(30811), + 64: uint16(30812), + 65: uint16(30814), + 66: uint16(30815), + 67: uint16(30816), + 68: uint16(30817), + 69: uint16(30818), + 70: uint16(30819), + 71: uint16(30820), + 72: uint16(30821), + 73: uint16(30822), + 74: uint16(30823), + 75: uint16(30824), + 76: uint16(30825), + 77: uint16(30831), + 78: uint16(30832), + 79: uint16(30833), + 80: uint16(30834), + 81: uint16(30835), + 82: uint16(30836), + 83: uint16(30837), + 84: uint16(30838), + 85: uint16(30840), + 86: uint16(30841), + 87: uint16(30842), + 88: uint16(30843), + 89: uint16(30845), + 90: uint16(30846), + 91: uint16(30847), + 92: uint16(30848), + 93: uint16(30849), + 94: uint16(30850), + 95: uint16(30851), + 96: uint16(22330), + 97: uint16(23581), + 98: uint16(24120), + 99: uint16(38271), + 100: uint16(20607), + 101: uint16(32928), + 102: uint16(21378), + 103: uint16(25950), + 104: uint16(30021), + 105: uint16(21809), + 106: uint16(20513), + 107: uint16(36229), + 108: uint16(25220), + 109: uint16(38046), + 110: uint16(26397), + 111: uint16(22066), + 112: uint16(28526), + 113: uint16(24034), + 114: uint16(21557), + 115: uint16(28818), + 116: uint16(36710), + 117: uint16(25199), + 118: uint16(25764), + 119: uint16(25507), + 120: uint16(24443), + 121: uint16(28552), + 122: uint16(37108), + 123: uint16(33251), + 124: uint16(36784), + 125: uint16(23576), + 126: uint16(26216), + 127: uint16(24561), + 128: uint16(27785), + 129: uint16(38472), + 130: uint16(36225), + 131: uint16(34924), + 132: uint16(25745), + 133: uint16(31216), + 134: uint16(22478), + 135: uint16(27225), + 136: uint16(25104), + 137: uint16(21576), + 138: uint16(20056), + 139: uint16(31243), + 140: uint16(24809), + 141: uint16(28548), + 142: uint16(35802), + 143: uint16(25215), + 144: uint16(36894), + 145: uint16(39563), + 146: uint16(31204), + 147: uint16(21507), + 148: uint16(30196), + 149: uint16(25345), + 150: uint16(21273), + 151: uint16(27744), + 152: uint16(36831), + 153: uint16(24347), + 154: uint16(39536), + 155: uint16(32827), + 156: uint16(40831), + 157: uint16(20360), + 158: uint16(23610), + 159: uint16(36196), + 160: uint16(32709), + 161: uint16(26021), + 162: uint16(28861), + 163: uint16(20805), + 164: uint16(20914), + 165: uint16(34411), + 166: uint16(23815), + 167: uint16(23456), + 168: uint16(25277), + 169: uint16(37228), + 170: uint16(30068), + 171: uint16(36364), + 172: uint16(31264), + 173: uint16(24833), + 174: uint16(31609), + 175: uint16(20167), + 176: uint16(32504), + 177: uint16(30597), + 178: uint16(19985), + 179: uint16(33261), + 180: uint16(21021), + 181: uint16(20986), + 182: uint16(27249), + 183: uint16(21416), + 184: uint16(36487), + 185: uint16(38148), + 186: uint16(38607), + 187: uint16(28353), + 188: uint16(38500), + 189: uint16(26970), + }, + 51: { + 0: uint16(30852), + 1: uint16(30853), + 2: uint16(30854), + 3: uint16(30856), + 4: uint16(30858), + 5: uint16(30859), + 6: uint16(30863), + 7: uint16(30864), + 8: uint16(30866), + 9: uint16(30868), + 10: uint16(30869), + 11: uint16(30870), + 12: uint16(30873), + 13: uint16(30877), + 14: uint16(30878), + 15: uint16(30880), + 16: uint16(30882), + 17: uint16(30884), + 18: uint16(30886), + 19: uint16(30888), + 20: uint16(30889), + 21: uint16(30890), + 22: uint16(30891), + 23: uint16(30892), + 24: uint16(30893), + 25: uint16(30894), + 26: uint16(30895), + 27: uint16(30901), + 28: uint16(30902), + 29: uint16(30903), + 30: uint16(30904), + 31: uint16(30906), + 32: uint16(30907), + 33: uint16(30908), + 34: uint16(30909), + 35: uint16(30911), + 36: uint16(30912), + 37: uint16(30914), + 38: uint16(30915), + 39: uint16(30916), + 40: uint16(30918), + 41: uint16(30919), + 42: uint16(30920), + 43: uint16(30924), + 44: uint16(30925), + 45: uint16(30926), + 46: uint16(30927), + 47: uint16(30929), + 48: uint16(30930), + 49: uint16(30931), + 50: uint16(30934), + 51: uint16(30935), + 52: uint16(30936), + 53: uint16(30938), + 54: uint16(30939), + 55: uint16(30940), + 56: uint16(30941), + 57: uint16(30942), + 58: uint16(30943), + 59: uint16(30944), + 60: uint16(30945), + 61: uint16(30946), + 62: uint16(30947), + 63: uint16(30948), + 64: uint16(30949), + 65: uint16(30950), + 66: uint16(30951), + 67: uint16(30953), + 68: uint16(30954), + 69: uint16(30955), + 70: uint16(30957), + 71: uint16(30958), + 72: uint16(30959), + 73: uint16(30960), + 74: uint16(30961), + 75: uint16(30963), + 76: uint16(30965), + 77: uint16(30966), + 78: uint16(30968), + 79: uint16(30969), + 80: uint16(30971), + 81: uint16(30972), + 82: uint16(30973), + 83: uint16(30974), + 84: uint16(30975), + 85: uint16(30976), + 86: uint16(30978), + 87: uint16(30979), + 88: uint16(30980), + 89: uint16(30982), + 90: uint16(30983), + 91: uint16(30984), + 92: uint16(30985), + 93: uint16(30986), + 94: uint16(30987), + 95: uint16(30988), + 96: uint16(30784), + 97: uint16(20648), + 98: uint16(30679), + 99: uint16(25616), + 100: uint16(35302), + 101: uint16(22788), + 102: uint16(25571), + 103: uint16(24029), + 104: uint16(31359), + 105: uint16(26941), + 106: uint16(20256), + 107: uint16(33337), + 108: uint16(21912), + 109: uint16(20018), + 110: uint16(30126), + 111: uint16(31383), + 112: uint16(24162), + 113: uint16(24202), + 114: uint16(38383), + 115: uint16(21019), + 116: uint16(21561), + 117: uint16(28810), + 118: uint16(25462), + 119: uint16(38180), + 120: uint16(22402), + 121: uint16(26149), + 122: uint16(26943), + 123: uint16(37255), + 124: uint16(21767), + 125: uint16(28147), + 126: uint16(32431), + 127: uint16(34850), + 128: uint16(25139), + 129: uint16(32496), + 130: uint16(30133), + 131: uint16(33576), + 132: uint16(30913), + 133: uint16(38604), + 134: uint16(36766), + 135: uint16(24904), + 136: uint16(29943), + 137: uint16(35789), + 138: uint16(27492), + 139: uint16(21050), + 140: uint16(36176), + 141: uint16(27425), + 142: uint16(32874), + 143: uint16(33905), + 144: uint16(22257), + 145: uint16(21254), + 146: uint16(20174), + 147: uint16(19995), + 148: uint16(20945), + 149: uint16(31895), + 150: uint16(37259), + 151: uint16(31751), + 152: uint16(20419), + 153: uint16(36479), + 154: uint16(31713), + 155: uint16(31388), + 156: uint16(25703), + 157: uint16(23828), + 158: uint16(20652), + 159: uint16(33030), + 160: uint16(30209), + 161: uint16(31929), + 162: uint16(28140), + 163: uint16(32736), + 164: uint16(26449), + 165: uint16(23384), + 166: uint16(23544), + 167: uint16(30923), + 168: uint16(25774), + 169: uint16(25619), + 170: uint16(25514), + 171: uint16(25387), + 172: uint16(38169), + 173: uint16(25645), + 174: uint16(36798), + 175: uint16(31572), + 176: uint16(30249), + 177: uint16(25171), + 178: uint16(22823), + 179: uint16(21574), + 180: uint16(27513), + 181: uint16(20643), + 182: uint16(25140), + 183: uint16(24102), + 184: uint16(27526), + 185: uint16(20195), + 186: uint16(36151), + 187: uint16(34955), + 188: uint16(24453), + 189: uint16(36910), + }, + 52: { + 0: uint16(30989), + 1: uint16(30990), + 2: uint16(30991), + 3: uint16(30992), + 4: uint16(30993), + 5: uint16(30994), + 6: uint16(30996), + 7: uint16(30997), + 8: uint16(30998), + 9: uint16(30999), + 10: uint16(31000), + 11: uint16(31001), + 12: uint16(31002), + 13: uint16(31003), + 14: uint16(31004), + 15: uint16(31005), + 16: uint16(31007), + 17: uint16(31008), + 18: uint16(31009), + 19: uint16(31010), + 20: uint16(31011), + 21: uint16(31013), + 22: uint16(31014), + 23: uint16(31015), + 24: uint16(31016), + 25: uint16(31017), + 26: uint16(31018), + 27: uint16(31019), + 28: uint16(31020), + 29: uint16(31021), + 30: uint16(31022), + 31: uint16(31023), + 32: uint16(31024), + 33: uint16(31025), + 34: uint16(31026), + 35: uint16(31027), + 36: uint16(31029), + 37: uint16(31030), + 38: uint16(31031), + 39: uint16(31032), + 40: uint16(31033), + 41: uint16(31037), + 42: uint16(31039), + 43: uint16(31042), + 44: uint16(31043), + 45: uint16(31044), + 46: uint16(31045), + 47: uint16(31047), + 48: uint16(31050), + 49: uint16(31051), + 50: uint16(31052), + 51: uint16(31053), + 52: uint16(31054), + 53: uint16(31055), + 54: uint16(31056), + 55: uint16(31057), + 56: uint16(31058), + 57: uint16(31060), + 58: uint16(31061), + 59: uint16(31064), + 60: uint16(31065), + 61: uint16(31073), + 62: uint16(31075), + 63: uint16(31076), + 64: uint16(31078), + 65: uint16(31081), + 66: uint16(31082), + 67: uint16(31083), + 68: uint16(31084), + 69: uint16(31086), + 70: uint16(31088), + 71: uint16(31089), + 72: uint16(31090), + 73: uint16(31091), + 74: uint16(31092), + 75: uint16(31093), + 76: uint16(31094), + 77: uint16(31097), + 78: uint16(31099), + 79: uint16(31100), + 80: uint16(31101), + 81: uint16(31102), + 82: uint16(31103), + 83: uint16(31106), + 84: uint16(31107), + 85: uint16(31110), + 86: uint16(31111), + 87: uint16(31112), + 88: uint16(31113), + 89: uint16(31115), + 90: uint16(31116), + 91: uint16(31117), + 92: uint16(31118), + 93: uint16(31120), + 94: uint16(31121), + 95: uint16(31122), + 96: uint16(24608), + 97: uint16(32829), + 98: uint16(25285), + 99: uint16(20025), + 100: uint16(21333), + 101: uint16(37112), + 102: uint16(25528), + 103: uint16(32966), + 104: uint16(26086), + 105: uint16(27694), + 106: uint16(20294), + 107: uint16(24814), + 108: uint16(28129), + 109: uint16(35806), + 110: uint16(24377), + 111: uint16(34507), + 112: uint16(24403), + 113: uint16(25377), + 114: uint16(20826), + 115: uint16(33633), + 116: uint16(26723), + 117: uint16(20992), + 118: uint16(25443), + 119: uint16(36424), + 120: uint16(20498), + 121: uint16(23707), + 122: uint16(31095), + 123: uint16(23548), + 124: uint16(21040), + 125: uint16(31291), + 126: uint16(24764), + 127: uint16(36947), + 128: uint16(30423), + 129: uint16(24503), + 130: uint16(24471), + 131: uint16(30340), + 132: uint16(36460), + 133: uint16(28783), + 134: uint16(30331), + 135: uint16(31561), + 136: uint16(30634), + 137: uint16(20979), + 138: uint16(37011), + 139: uint16(22564), + 140: uint16(20302), + 141: uint16(28404), + 142: uint16(36842), + 143: uint16(25932), + 144: uint16(31515), + 145: uint16(29380), + 146: uint16(28068), + 147: uint16(32735), + 148: uint16(23265), + 149: uint16(25269), + 150: uint16(24213), + 151: uint16(22320), + 152: uint16(33922), + 153: uint16(31532), + 154: uint16(24093), + 155: uint16(24351), + 156: uint16(36882), + 157: uint16(32532), + 158: uint16(39072), + 159: uint16(25474), + 160: uint16(28359), + 161: uint16(30872), + 162: uint16(28857), + 163: uint16(20856), + 164: uint16(38747), + 165: uint16(22443), + 166: uint16(30005), + 167: uint16(20291), + 168: uint16(30008), + 169: uint16(24215), + 170: uint16(24806), + 171: uint16(22880), + 172: uint16(28096), + 173: uint16(27583), + 174: uint16(30857), + 175: uint16(21500), + 176: uint16(38613), + 177: uint16(20939), + 178: uint16(20993), + 179: uint16(25481), + 180: uint16(21514), + 181: uint16(38035), + 182: uint16(35843), + 183: uint16(36300), + 184: uint16(29241), + 185: uint16(30879), + 186: uint16(34678), + 187: uint16(36845), + 188: uint16(35853), + 189: uint16(21472), + }, + 53: { + 0: uint16(31123), + 1: uint16(31124), + 2: uint16(31125), + 3: uint16(31126), + 4: uint16(31127), + 5: uint16(31128), + 6: uint16(31129), + 7: uint16(31131), + 8: uint16(31132), + 9: uint16(31133), + 10: uint16(31134), + 11: uint16(31135), + 12: uint16(31136), + 13: uint16(31137), + 14: uint16(31138), + 15: uint16(31139), + 16: uint16(31140), + 17: uint16(31141), + 18: uint16(31142), + 19: uint16(31144), + 20: uint16(31145), + 21: uint16(31146), + 22: uint16(31147), + 23: uint16(31148), + 24: uint16(31149), + 25: uint16(31150), + 26: uint16(31151), + 27: uint16(31152), + 28: uint16(31153), + 29: uint16(31154), + 30: uint16(31156), + 31: uint16(31157), + 32: uint16(31158), + 33: uint16(31159), + 34: uint16(31160), + 35: uint16(31164), + 36: uint16(31167), + 37: uint16(31170), + 38: uint16(31172), + 39: uint16(31173), + 40: uint16(31175), + 41: uint16(31176), + 42: uint16(31178), + 43: uint16(31180), + 44: uint16(31182), + 45: uint16(31183), + 46: uint16(31184), + 47: uint16(31187), + 48: uint16(31188), + 49: uint16(31190), + 50: uint16(31191), + 51: uint16(31193), + 52: uint16(31194), + 53: uint16(31195), + 54: uint16(31196), + 55: uint16(31197), + 56: uint16(31198), + 57: uint16(31200), + 58: uint16(31201), + 59: uint16(31202), + 60: uint16(31205), + 61: uint16(31208), + 62: uint16(31210), + 63: uint16(31212), + 64: uint16(31214), + 65: uint16(31217), + 66: uint16(31218), + 67: uint16(31219), + 68: uint16(31220), + 69: uint16(31221), + 70: uint16(31222), + 71: uint16(31223), + 72: uint16(31225), + 73: uint16(31226), + 74: uint16(31228), + 75: uint16(31230), + 76: uint16(31231), + 77: uint16(31233), + 78: uint16(31236), + 79: uint16(31237), + 80: uint16(31239), + 81: uint16(31240), + 82: uint16(31241), + 83: uint16(31242), + 84: uint16(31244), + 85: uint16(31247), + 86: uint16(31248), + 87: uint16(31249), + 88: uint16(31250), + 89: uint16(31251), + 90: uint16(31253), + 91: uint16(31254), + 92: uint16(31256), + 93: uint16(31257), + 94: uint16(31259), + 95: uint16(31260), + 96: uint16(19969), + 97: uint16(30447), + 98: uint16(21486), + 99: uint16(38025), + 100: uint16(39030), + 101: uint16(40718), + 102: uint16(38189), + 103: uint16(23450), + 104: uint16(35746), + 105: uint16(20002), + 106: uint16(19996), + 107: uint16(20908), + 108: uint16(33891), + 109: uint16(25026), + 110: uint16(21160), + 111: uint16(26635), + 112: uint16(20375), + 113: uint16(24683), + 114: uint16(20923), + 115: uint16(27934), + 116: uint16(20828), + 117: uint16(25238), + 118: uint16(26007), + 119: uint16(38497), + 120: uint16(35910), + 121: uint16(36887), + 122: uint16(30168), + 123: uint16(37117), + 124: uint16(30563), + 125: uint16(27602), + 126: uint16(29322), + 127: uint16(29420), + 128: uint16(35835), + 129: uint16(22581), + 130: uint16(30585), + 131: uint16(36172), + 132: uint16(26460), + 133: uint16(38208), + 134: uint16(32922), + 135: uint16(24230), + 136: uint16(28193), + 137: uint16(22930), + 138: uint16(31471), + 139: uint16(30701), + 140: uint16(38203), + 141: uint16(27573), + 142: uint16(26029), + 143: uint16(32526), + 144: uint16(22534), + 145: uint16(20817), + 146: uint16(38431), + 147: uint16(23545), + 148: uint16(22697), + 149: uint16(21544), + 150: uint16(36466), + 151: uint16(25958), + 152: uint16(39039), + 153: uint16(22244), + 154: uint16(38045), + 155: uint16(30462), + 156: uint16(36929), + 157: uint16(25479), + 158: uint16(21702), + 159: uint16(22810), + 160: uint16(22842), + 161: uint16(22427), + 162: uint16(36530), + 163: uint16(26421), + 164: uint16(36346), + 165: uint16(33333), + 166: uint16(21057), + 167: uint16(24816), + 168: uint16(22549), + 169: uint16(34558), + 170: uint16(23784), + 171: uint16(40517), + 172: uint16(20420), + 173: uint16(39069), + 174: uint16(35769), + 175: uint16(23077), + 176: uint16(24694), + 177: uint16(21380), + 178: uint16(25212), + 179: uint16(36943), + 180: uint16(37122), + 181: uint16(39295), + 182: uint16(24681), + 183: uint16(32780), + 184: uint16(20799), + 185: uint16(32819), + 186: uint16(23572), + 187: uint16(39285), + 188: uint16(27953), + 189: uint16(20108), + }, + 54: { + 0: uint16(31261), + 1: uint16(31263), + 2: uint16(31265), + 3: uint16(31266), + 4: uint16(31268), + 5: uint16(31269), + 6: uint16(31270), + 7: uint16(31271), + 8: uint16(31272), + 9: uint16(31273), + 10: uint16(31274), + 11: uint16(31275), + 12: uint16(31276), + 13: uint16(31277), + 14: uint16(31278), + 15: uint16(31279), + 16: uint16(31280), + 17: uint16(31281), + 18: uint16(31282), + 19: uint16(31284), + 20: uint16(31285), + 21: uint16(31286), + 22: uint16(31288), + 23: uint16(31290), + 24: uint16(31294), + 25: uint16(31296), + 26: uint16(31297), + 27: uint16(31298), + 28: uint16(31299), + 29: uint16(31300), + 30: uint16(31301), + 31: uint16(31303), + 32: uint16(31304), + 33: uint16(31305), + 34: uint16(31306), + 35: uint16(31307), + 36: uint16(31308), + 37: uint16(31309), + 38: uint16(31310), + 39: uint16(31311), + 40: uint16(31312), + 41: uint16(31314), + 42: uint16(31315), + 43: uint16(31316), + 44: uint16(31317), + 45: uint16(31318), + 46: uint16(31320), + 47: uint16(31321), + 48: uint16(31322), + 49: uint16(31323), + 50: uint16(31324), + 51: uint16(31325), + 52: uint16(31326), + 53: uint16(31327), + 54: uint16(31328), + 55: uint16(31329), + 56: uint16(31330), + 57: uint16(31331), + 58: uint16(31332), + 59: uint16(31333), + 60: uint16(31334), + 61: uint16(31335), + 62: uint16(31336), + 63: uint16(31337), + 64: uint16(31338), + 65: uint16(31339), + 66: uint16(31340), + 67: uint16(31341), + 68: uint16(31342), + 69: uint16(31343), + 70: uint16(31345), + 71: uint16(31346), + 72: uint16(31347), + 73: uint16(31349), + 74: uint16(31355), + 75: uint16(31356), + 76: uint16(31357), + 77: uint16(31358), + 78: uint16(31362), + 79: uint16(31365), + 80: uint16(31367), + 81: uint16(31369), + 82: uint16(31370), + 83: uint16(31371), + 84: uint16(31372), + 85: uint16(31374), + 86: uint16(31375), + 87: uint16(31376), + 88: uint16(31379), + 89: uint16(31380), + 90: uint16(31385), + 91: uint16(31386), + 92: uint16(31387), + 93: uint16(31390), + 94: uint16(31393), + 95: uint16(31394), + 96: uint16(36144), + 97: uint16(21457), + 98: uint16(32602), + 99: uint16(31567), + 100: uint16(20240), + 101: uint16(20047), + 102: uint16(38400), + 103: uint16(27861), + 104: uint16(29648), + 105: uint16(34281), + 106: uint16(24070), + 107: uint16(30058), + 108: uint16(32763), + 109: uint16(27146), + 110: uint16(30718), + 111: uint16(38034), + 112: uint16(32321), + 113: uint16(20961), + 114: uint16(28902), + 115: uint16(21453), + 116: uint16(36820), + 117: uint16(33539), + 118: uint16(36137), + 119: uint16(29359), + 120: uint16(39277), + 121: uint16(27867), + 122: uint16(22346), + 123: uint16(33459), + 124: uint16(26041), + 125: uint16(32938), + 126: uint16(25151), + 127: uint16(38450), + 128: uint16(22952), + 129: uint16(20223), + 130: uint16(35775), + 131: uint16(32442), + 132: uint16(25918), + 133: uint16(33778), + 134: uint16(38750), + 135: uint16(21857), + 136: uint16(39134), + 137: uint16(32933), + 138: uint16(21290), + 139: uint16(35837), + 140: uint16(21536), + 141: uint16(32954), + 142: uint16(24223), + 143: uint16(27832), + 144: uint16(36153), + 145: uint16(33452), + 146: uint16(37210), + 147: uint16(21545), + 148: uint16(27675), + 149: uint16(20998), + 150: uint16(32439), + 151: uint16(22367), + 152: uint16(28954), + 153: uint16(27774), + 154: uint16(31881), + 155: uint16(22859), + 156: uint16(20221), + 157: uint16(24575), + 158: uint16(24868), + 159: uint16(31914), + 160: uint16(20016), + 161: uint16(23553), + 162: uint16(26539), + 163: uint16(34562), + 164: uint16(23792), + 165: uint16(38155), + 166: uint16(39118), + 167: uint16(30127), + 168: uint16(28925), + 169: uint16(36898), + 170: uint16(20911), + 171: uint16(32541), + 172: uint16(35773), + 173: uint16(22857), + 174: uint16(20964), + 175: uint16(20315), + 176: uint16(21542), + 177: uint16(22827), + 178: uint16(25975), + 179: uint16(32932), + 180: uint16(23413), + 181: uint16(25206), + 182: uint16(25282), + 183: uint16(36752), + 184: uint16(24133), + 185: uint16(27679), + 186: uint16(31526), + 187: uint16(20239), + 188: uint16(20440), + 189: uint16(26381), + }, + 55: { + 0: uint16(31395), + 1: uint16(31396), + 2: uint16(31399), + 3: uint16(31401), + 4: uint16(31402), + 5: uint16(31403), + 6: uint16(31406), + 7: uint16(31407), + 8: uint16(31408), + 9: uint16(31409), + 10: uint16(31410), + 11: uint16(31412), + 12: uint16(31413), + 13: uint16(31414), + 14: uint16(31415), + 15: uint16(31416), + 16: uint16(31417), + 17: uint16(31418), + 18: uint16(31419), + 19: uint16(31420), + 20: uint16(31421), + 21: uint16(31422), + 22: uint16(31424), + 23: uint16(31425), + 24: uint16(31426), + 25: uint16(31427), + 26: uint16(31428), + 27: uint16(31429), + 28: uint16(31430), + 29: uint16(31431), + 30: uint16(31432), + 31: uint16(31433), + 32: uint16(31434), + 33: uint16(31436), + 34: uint16(31437), + 35: uint16(31438), + 36: uint16(31439), + 37: uint16(31440), + 38: uint16(31441), + 39: uint16(31442), + 40: uint16(31443), + 41: uint16(31444), + 42: uint16(31445), + 43: uint16(31447), + 44: uint16(31448), + 45: uint16(31450), + 46: uint16(31451), + 47: uint16(31452), + 48: uint16(31453), + 49: uint16(31457), + 50: uint16(31458), + 51: uint16(31460), + 52: uint16(31463), + 53: uint16(31464), + 54: uint16(31465), + 55: uint16(31466), + 56: uint16(31467), + 57: uint16(31468), + 58: uint16(31470), + 59: uint16(31472), + 60: uint16(31473), + 61: uint16(31474), + 62: uint16(31475), + 63: uint16(31476), + 64: uint16(31477), + 65: uint16(31478), + 66: uint16(31479), + 67: uint16(31480), + 68: uint16(31483), + 69: uint16(31484), + 70: uint16(31486), + 71: uint16(31488), + 72: uint16(31489), + 73: uint16(31490), + 74: uint16(31493), + 75: uint16(31495), + 76: uint16(31497), + 77: uint16(31500), + 78: uint16(31501), + 79: uint16(31502), + 80: uint16(31504), + 81: uint16(31506), + 82: uint16(31507), + 83: uint16(31510), + 84: uint16(31511), + 85: uint16(31512), + 86: uint16(31514), + 87: uint16(31516), + 88: uint16(31517), + 89: uint16(31519), + 90: uint16(31521), + 91: uint16(31522), + 92: uint16(31523), + 93: uint16(31527), + 94: uint16(31529), + 95: uint16(31533), + 96: uint16(28014), + 97: uint16(28074), + 98: uint16(31119), + 99: uint16(34993), + 100: uint16(24343), + 101: uint16(29995), + 102: uint16(25242), + 103: uint16(36741), + 104: uint16(20463), + 105: uint16(37340), + 106: uint16(26023), + 107: uint16(33071), + 108: uint16(33105), + 109: uint16(24220), + 110: uint16(33104), + 111: uint16(36212), + 112: uint16(21103), + 113: uint16(35206), + 114: uint16(36171), + 115: uint16(22797), + 116: uint16(20613), + 117: uint16(20184), + 118: uint16(38428), + 119: uint16(29238), + 120: uint16(33145), + 121: uint16(36127), + 122: uint16(23500), + 123: uint16(35747), + 124: uint16(38468), + 125: uint16(22919), + 126: uint16(32538), + 127: uint16(21648), + 128: uint16(22134), + 129: uint16(22030), + 130: uint16(35813), + 131: uint16(25913), + 132: uint16(27010), + 133: uint16(38041), + 134: uint16(30422), + 135: uint16(28297), + 136: uint16(24178), + 137: uint16(29976), + 138: uint16(26438), + 139: uint16(26577), + 140: uint16(31487), + 141: uint16(32925), + 142: uint16(36214), + 143: uint16(24863), + 144: uint16(31174), + 145: uint16(25954), + 146: uint16(36195), + 147: uint16(20872), + 148: uint16(21018), + 149: uint16(38050), + 150: uint16(32568), + 151: uint16(32923), + 152: uint16(32434), + 153: uint16(23703), + 154: uint16(28207), + 155: uint16(26464), + 156: uint16(31705), + 157: uint16(30347), + 158: uint16(39640), + 159: uint16(33167), + 160: uint16(32660), + 161: uint16(31957), + 162: uint16(25630), + 163: uint16(38224), + 164: uint16(31295), + 165: uint16(21578), + 166: uint16(21733), + 167: uint16(27468), + 168: uint16(25601), + 169: uint16(25096), + 170: uint16(40509), + 171: uint16(33011), + 172: uint16(30105), + 173: uint16(21106), + 174: uint16(38761), + 175: uint16(33883), + 176: uint16(26684), + 177: uint16(34532), + 178: uint16(38401), + 179: uint16(38548), + 180: uint16(38124), + 181: uint16(20010), + 182: uint16(21508), + 183: uint16(32473), + 184: uint16(26681), + 185: uint16(36319), + 186: uint16(32789), + 187: uint16(26356), + 188: uint16(24218), + 189: uint16(32697), + }, + 56: { + 0: uint16(31535), + 1: uint16(31536), + 2: uint16(31538), + 3: uint16(31540), + 4: uint16(31541), + 5: uint16(31542), + 6: uint16(31543), + 7: uint16(31545), + 8: uint16(31547), + 9: uint16(31549), + 10: uint16(31551), + 11: uint16(31552), + 12: uint16(31553), + 13: uint16(31554), + 14: uint16(31555), + 15: uint16(31556), + 16: uint16(31558), + 17: uint16(31560), + 18: uint16(31562), + 19: uint16(31565), + 20: uint16(31566), + 21: uint16(31571), + 22: uint16(31573), + 23: uint16(31575), + 24: uint16(31577), + 25: uint16(31580), + 26: uint16(31582), + 27: uint16(31583), + 28: uint16(31585), + 29: uint16(31587), + 30: uint16(31588), + 31: uint16(31589), + 32: uint16(31590), + 33: uint16(31591), + 34: uint16(31592), + 35: uint16(31593), + 36: uint16(31594), + 37: uint16(31595), + 38: uint16(31596), + 39: uint16(31597), + 40: uint16(31599), + 41: uint16(31600), + 42: uint16(31603), + 43: uint16(31604), + 44: uint16(31606), + 45: uint16(31608), + 46: uint16(31610), + 47: uint16(31612), + 48: uint16(31613), + 49: uint16(31615), + 50: uint16(31617), + 51: uint16(31618), + 52: uint16(31619), + 53: uint16(31620), + 54: uint16(31622), + 55: uint16(31623), + 56: uint16(31624), + 57: uint16(31625), + 58: uint16(31626), + 59: uint16(31627), + 60: uint16(31628), + 61: uint16(31630), + 62: uint16(31631), + 63: uint16(31633), + 64: uint16(31634), + 65: uint16(31635), + 66: uint16(31638), + 67: uint16(31640), + 68: uint16(31641), + 69: uint16(31642), + 70: uint16(31643), + 71: uint16(31646), + 72: uint16(31647), + 73: uint16(31648), + 74: uint16(31651), + 75: uint16(31652), + 76: uint16(31653), + 77: uint16(31662), + 78: uint16(31663), + 79: uint16(31664), + 80: uint16(31666), + 81: uint16(31667), + 82: uint16(31669), + 83: uint16(31670), + 84: uint16(31671), + 85: uint16(31673), + 86: uint16(31674), + 87: uint16(31675), + 88: uint16(31676), + 89: uint16(31677), + 90: uint16(31678), + 91: uint16(31679), + 92: uint16(31680), + 93: uint16(31682), + 94: uint16(31683), + 95: uint16(31684), + 96: uint16(22466), + 97: uint16(32831), + 98: uint16(26775), + 99: uint16(24037), + 100: uint16(25915), + 101: uint16(21151), + 102: uint16(24685), + 103: uint16(40858), + 104: uint16(20379), + 105: uint16(36524), + 106: uint16(20844), + 107: uint16(23467), + 108: uint16(24339), + 109: uint16(24041), + 110: uint16(27742), + 111: uint16(25329), + 112: uint16(36129), + 113: uint16(20849), + 114: uint16(38057), + 115: uint16(21246), + 116: uint16(27807), + 117: uint16(33503), + 118: uint16(29399), + 119: uint16(22434), + 120: uint16(26500), + 121: uint16(36141), + 122: uint16(22815), + 123: uint16(36764), + 124: uint16(33735), + 125: uint16(21653), + 126: uint16(31629), + 127: uint16(20272), + 128: uint16(27837), + 129: uint16(23396), + 130: uint16(22993), + 131: uint16(40723), + 132: uint16(21476), + 133: uint16(34506), + 134: uint16(39592), + 135: uint16(35895), + 136: uint16(32929), + 137: uint16(25925), + 138: uint16(39038), + 139: uint16(22266), + 140: uint16(38599), + 141: uint16(21038), + 142: uint16(29916), + 143: uint16(21072), + 144: uint16(23521), + 145: uint16(25346), + 146: uint16(35074), + 147: uint16(20054), + 148: uint16(25296), + 149: uint16(24618), + 150: uint16(26874), + 151: uint16(20851), + 152: uint16(23448), + 153: uint16(20896), + 154: uint16(35266), + 155: uint16(31649), + 156: uint16(39302), + 157: uint16(32592), + 158: uint16(24815), + 159: uint16(28748), + 160: uint16(36143), + 161: uint16(20809), + 162: uint16(24191), + 163: uint16(36891), + 164: uint16(29808), + 165: uint16(35268), + 166: uint16(22317), + 167: uint16(30789), + 168: uint16(24402), + 169: uint16(40863), + 170: uint16(38394), + 171: uint16(36712), + 172: uint16(39740), + 173: uint16(35809), + 174: uint16(30328), + 175: uint16(26690), + 176: uint16(26588), + 177: uint16(36330), + 178: uint16(36149), + 179: uint16(21053), + 180: uint16(36746), + 181: uint16(28378), + 182: uint16(26829), + 183: uint16(38149), + 184: uint16(37101), + 185: uint16(22269), + 186: uint16(26524), + 187: uint16(35065), + 188: uint16(36807), + 189: uint16(21704), + }, + 57: { + 0: uint16(31685), + 1: uint16(31688), + 2: uint16(31689), + 3: uint16(31690), + 4: uint16(31691), + 5: uint16(31693), + 6: uint16(31694), + 7: uint16(31695), + 8: uint16(31696), + 9: uint16(31698), + 10: uint16(31700), + 11: uint16(31701), + 12: uint16(31702), + 13: uint16(31703), + 14: uint16(31704), + 15: uint16(31707), + 16: uint16(31708), + 17: uint16(31710), + 18: uint16(31711), + 19: uint16(31712), + 20: uint16(31714), + 21: uint16(31715), + 22: uint16(31716), + 23: uint16(31719), + 24: uint16(31720), + 25: uint16(31721), + 26: uint16(31723), + 27: uint16(31724), + 28: uint16(31725), + 29: uint16(31727), + 30: uint16(31728), + 31: uint16(31730), + 32: uint16(31731), + 33: uint16(31732), + 34: uint16(31733), + 35: uint16(31734), + 36: uint16(31736), + 37: uint16(31737), + 38: uint16(31738), + 39: uint16(31739), + 40: uint16(31741), + 41: uint16(31743), + 42: uint16(31744), + 43: uint16(31745), + 44: uint16(31746), + 45: uint16(31747), + 46: uint16(31748), + 47: uint16(31749), + 48: uint16(31750), + 49: uint16(31752), + 50: uint16(31753), + 51: uint16(31754), + 52: uint16(31757), + 53: uint16(31758), + 54: uint16(31760), + 55: uint16(31761), + 56: uint16(31762), + 57: uint16(31763), + 58: uint16(31764), + 59: uint16(31765), + 60: uint16(31767), + 61: uint16(31768), + 62: uint16(31769), + 63: uint16(31770), + 64: uint16(31771), + 65: uint16(31772), + 66: uint16(31773), + 67: uint16(31774), + 68: uint16(31776), + 69: uint16(31777), + 70: uint16(31778), + 71: uint16(31779), + 72: uint16(31780), + 73: uint16(31781), + 74: uint16(31784), + 75: uint16(31785), + 76: uint16(31787), + 77: uint16(31788), + 78: uint16(31789), + 79: uint16(31790), + 80: uint16(31791), + 81: uint16(31792), + 82: uint16(31793), + 83: uint16(31794), + 84: uint16(31795), + 85: uint16(31796), + 86: uint16(31797), + 87: uint16(31798), + 88: uint16(31799), + 89: uint16(31801), + 90: uint16(31802), + 91: uint16(31803), + 92: uint16(31804), + 93: uint16(31805), + 94: uint16(31806), + 95: uint16(31810), + 96: uint16(39608), + 97: uint16(23401), + 98: uint16(28023), + 99: uint16(27686), + 100: uint16(20133), + 101: uint16(23475), + 102: uint16(39559), + 103: uint16(37219), + 104: uint16(25000), + 105: uint16(37039), + 106: uint16(38889), + 107: uint16(21547), + 108: uint16(28085), + 109: uint16(23506), + 110: uint16(20989), + 111: uint16(21898), + 112: uint16(32597), + 113: uint16(32752), + 114: uint16(25788), + 115: uint16(25421), + 116: uint16(26097), + 117: uint16(25022), + 118: uint16(24717), + 119: uint16(28938), + 120: uint16(27735), + 121: uint16(27721), + 122: uint16(22831), + 123: uint16(26477), + 124: uint16(33322), + 125: uint16(22741), + 126: uint16(22158), + 127: uint16(35946), + 128: uint16(27627), + 129: uint16(37085), + 130: uint16(22909), + 131: uint16(32791), + 132: uint16(21495), + 133: uint16(28009), + 134: uint16(21621), + 135: uint16(21917), + 136: uint16(33655), + 137: uint16(33743), + 138: uint16(26680), + 139: uint16(31166), + 140: uint16(21644), + 141: uint16(20309), + 142: uint16(21512), + 143: uint16(30418), + 144: uint16(35977), + 145: uint16(38402), + 146: uint16(27827), + 147: uint16(28088), + 148: uint16(36203), + 149: uint16(35088), + 150: uint16(40548), + 151: uint16(36154), + 152: uint16(22079), + 153: uint16(40657), + 154: uint16(30165), + 155: uint16(24456), + 156: uint16(29408), + 157: uint16(24680), + 158: uint16(21756), + 159: uint16(20136), + 160: uint16(27178), + 161: uint16(34913), + 162: uint16(24658), + 163: uint16(36720), + 164: uint16(21700), + 165: uint16(28888), + 166: uint16(34425), + 167: uint16(40511), + 168: uint16(27946), + 169: uint16(23439), + 170: uint16(24344), + 171: uint16(32418), + 172: uint16(21897), + 173: uint16(20399), + 174: uint16(29492), + 175: uint16(21564), + 176: uint16(21402), + 177: uint16(20505), + 178: uint16(21518), + 179: uint16(21628), + 180: uint16(20046), + 181: uint16(24573), + 182: uint16(29786), + 183: uint16(22774), + 184: uint16(33899), + 185: uint16(32993), + 186: uint16(34676), + 187: uint16(29392), + 188: uint16(31946), + 189: uint16(28246), + }, + 58: { + 0: uint16(31811), + 1: uint16(31812), + 2: uint16(31813), + 3: uint16(31814), + 4: uint16(31815), + 5: uint16(31816), + 6: uint16(31817), + 7: uint16(31818), + 8: uint16(31819), + 9: uint16(31820), + 10: uint16(31822), + 11: uint16(31823), + 12: uint16(31824), + 13: uint16(31825), + 14: uint16(31826), + 15: uint16(31827), + 16: uint16(31828), + 17: uint16(31829), + 18: uint16(31830), + 19: uint16(31831), + 20: uint16(31832), + 21: uint16(31833), + 22: uint16(31834), + 23: uint16(31835), + 24: uint16(31836), + 25: uint16(31837), + 26: uint16(31838), + 27: uint16(31839), + 28: uint16(31840), + 29: uint16(31841), + 30: uint16(31842), + 31: uint16(31843), + 32: uint16(31844), + 33: uint16(31845), + 34: uint16(31846), + 35: uint16(31847), + 36: uint16(31848), + 37: uint16(31849), + 38: uint16(31850), + 39: uint16(31851), + 40: uint16(31852), + 41: uint16(31853), + 42: uint16(31854), + 43: uint16(31855), + 44: uint16(31856), + 45: uint16(31857), + 46: uint16(31858), + 47: uint16(31861), + 48: uint16(31862), + 49: uint16(31863), + 50: uint16(31864), + 51: uint16(31865), + 52: uint16(31866), + 53: uint16(31870), + 54: uint16(31871), + 55: uint16(31872), + 56: uint16(31873), + 57: uint16(31874), + 58: uint16(31875), + 59: uint16(31876), + 60: uint16(31877), + 61: uint16(31878), + 62: uint16(31879), + 63: uint16(31880), + 64: uint16(31882), + 65: uint16(31883), + 66: uint16(31884), + 67: uint16(31885), + 68: uint16(31886), + 69: uint16(31887), + 70: uint16(31888), + 71: uint16(31891), + 72: uint16(31892), + 73: uint16(31894), + 74: uint16(31897), + 75: uint16(31898), + 76: uint16(31899), + 77: uint16(31904), + 78: uint16(31905), + 79: uint16(31907), + 80: uint16(31910), + 81: uint16(31911), + 82: uint16(31912), + 83: uint16(31913), + 84: uint16(31915), + 85: uint16(31916), + 86: uint16(31917), + 87: uint16(31919), + 88: uint16(31920), + 89: uint16(31924), + 90: uint16(31925), + 91: uint16(31926), + 92: uint16(31927), + 93: uint16(31928), + 94: uint16(31930), + 95: uint16(31931), + 96: uint16(24359), + 97: uint16(34382), + 98: uint16(21804), + 99: uint16(25252), + 100: uint16(20114), + 101: uint16(27818), + 102: uint16(25143), + 103: uint16(33457), + 104: uint16(21719), + 105: uint16(21326), + 106: uint16(29502), + 107: uint16(28369), + 108: uint16(30011), + 109: uint16(21010), + 110: uint16(21270), + 111: uint16(35805), + 112: uint16(27088), + 113: uint16(24458), + 114: uint16(24576), + 115: uint16(28142), + 116: uint16(22351), + 117: uint16(27426), + 118: uint16(29615), + 119: uint16(26707), + 120: uint16(36824), + 121: uint16(32531), + 122: uint16(25442), + 123: uint16(24739), + 124: uint16(21796), + 125: uint16(30186), + 126: uint16(35938), + 127: uint16(28949), + 128: uint16(28067), + 129: uint16(23462), + 130: uint16(24187), + 131: uint16(33618), + 132: uint16(24908), + 133: uint16(40644), + 134: uint16(30970), + 135: uint16(34647), + 136: uint16(31783), + 137: uint16(30343), + 138: uint16(20976), + 139: uint16(24822), + 140: uint16(29004), + 141: uint16(26179), + 142: uint16(24140), + 143: uint16(24653), + 144: uint16(35854), + 145: uint16(28784), + 146: uint16(25381), + 147: uint16(36745), + 148: uint16(24509), + 149: uint16(24674), + 150: uint16(34516), + 151: uint16(22238), + 152: uint16(27585), + 153: uint16(24724), + 154: uint16(24935), + 155: uint16(21321), + 156: uint16(24800), + 157: uint16(26214), + 158: uint16(36159), + 159: uint16(31229), + 160: uint16(20250), + 161: uint16(28905), + 162: uint16(27719), + 163: uint16(35763), + 164: uint16(35826), + 165: uint16(32472), + 166: uint16(33636), + 167: uint16(26127), + 168: uint16(23130), + 169: uint16(39746), + 170: uint16(27985), + 171: uint16(28151), + 172: uint16(35905), + 173: uint16(27963), + 174: uint16(20249), + 175: uint16(28779), + 176: uint16(33719), + 177: uint16(25110), + 178: uint16(24785), + 179: uint16(38669), + 180: uint16(36135), + 181: uint16(31096), + 182: uint16(20987), + 183: uint16(22334), + 184: uint16(22522), + 185: uint16(26426), + 186: uint16(30072), + 187: uint16(31293), + 188: uint16(31215), + 189: uint16(31637), + }, + 59: { + 0: uint16(31935), + 1: uint16(31936), + 2: uint16(31938), + 3: uint16(31939), + 4: uint16(31940), + 5: uint16(31942), + 6: uint16(31945), + 7: uint16(31947), + 8: uint16(31950), + 9: uint16(31951), + 10: uint16(31952), + 11: uint16(31953), + 12: uint16(31954), + 13: uint16(31955), + 14: uint16(31956), + 15: uint16(31960), + 16: uint16(31962), + 17: uint16(31963), + 18: uint16(31965), + 19: uint16(31966), + 20: uint16(31969), + 21: uint16(31970), + 22: uint16(31971), + 23: uint16(31972), + 24: uint16(31973), + 25: uint16(31974), + 26: uint16(31975), + 27: uint16(31977), + 28: uint16(31978), + 29: uint16(31979), + 30: uint16(31980), + 31: uint16(31981), + 32: uint16(31982), + 33: uint16(31984), + 34: uint16(31985), + 35: uint16(31986), + 36: uint16(31987), + 37: uint16(31988), + 38: uint16(31989), + 39: uint16(31990), + 40: uint16(31991), + 41: uint16(31993), + 42: uint16(31994), + 43: uint16(31996), + 44: uint16(31997), + 45: uint16(31998), + 46: uint16(31999), + 47: uint16(32000), + 48: uint16(32001), + 49: uint16(32002), + 50: uint16(32003), + 51: uint16(32004), + 52: uint16(32005), + 53: uint16(32006), + 54: uint16(32007), + 55: uint16(32008), + 56: uint16(32009), + 57: uint16(32011), + 58: uint16(32012), + 59: uint16(32013), + 60: uint16(32014), + 61: uint16(32015), + 62: uint16(32016), + 63: uint16(32017), + 64: uint16(32018), + 65: uint16(32019), + 66: uint16(32020), + 67: uint16(32021), + 68: uint16(32022), + 69: uint16(32023), + 70: uint16(32024), + 71: uint16(32025), + 72: uint16(32026), + 73: uint16(32027), + 74: uint16(32028), + 75: uint16(32029), + 76: uint16(32030), + 77: uint16(32031), + 78: uint16(32033), + 79: uint16(32035), + 80: uint16(32036), + 81: uint16(32037), + 82: uint16(32038), + 83: uint16(32040), + 84: uint16(32041), + 85: uint16(32042), + 86: uint16(32044), + 87: uint16(32045), + 88: uint16(32046), + 89: uint16(32048), + 90: uint16(32049), + 91: uint16(32050), + 92: uint16(32051), + 93: uint16(32052), + 94: uint16(32053), + 95: uint16(32054), + 96: uint16(32908), + 97: uint16(39269), + 98: uint16(36857), + 99: uint16(28608), + 100: uint16(35749), + 101: uint16(40481), + 102: uint16(23020), + 103: uint16(32489), + 104: uint16(32521), + 105: uint16(21513), + 106: uint16(26497), + 107: uint16(26840), + 108: uint16(36753), + 109: uint16(31821), + 110: uint16(38598), + 111: uint16(21450), + 112: uint16(24613), + 113: uint16(30142), + 114: uint16(27762), + 115: uint16(21363), + 116: uint16(23241), + 117: uint16(32423), + 118: uint16(25380), + 119: uint16(20960), + 120: uint16(33034), + 121: uint16(24049), + 122: uint16(34015), + 123: uint16(25216), + 124: uint16(20864), + 125: uint16(23395), + 126: uint16(20238), + 127: uint16(31085), + 128: uint16(21058), + 129: uint16(24760), + 130: uint16(27982), + 131: uint16(23492), + 132: uint16(23490), + 133: uint16(35745), + 134: uint16(35760), + 135: uint16(26082), + 136: uint16(24524), + 137: uint16(38469), + 138: uint16(22931), + 139: uint16(32487), + 140: uint16(32426), + 141: uint16(22025), + 142: uint16(26551), + 143: uint16(22841), + 144: uint16(20339), + 145: uint16(23478), + 146: uint16(21152), + 147: uint16(33626), + 148: uint16(39050), + 149: uint16(36158), + 150: uint16(30002), + 151: uint16(38078), + 152: uint16(20551), + 153: uint16(31292), + 154: uint16(20215), + 155: uint16(26550), + 156: uint16(39550), + 157: uint16(23233), + 158: uint16(27516), + 159: uint16(30417), + 160: uint16(22362), + 161: uint16(23574), + 162: uint16(31546), + 163: uint16(38388), + 164: uint16(29006), + 165: uint16(20860), + 166: uint16(32937), + 167: uint16(33392), + 168: uint16(22904), + 169: uint16(32516), + 170: uint16(33575), + 171: uint16(26816), + 172: uint16(26604), + 173: uint16(30897), + 174: uint16(30839), + 175: uint16(25315), + 176: uint16(25441), + 177: uint16(31616), + 178: uint16(20461), + 179: uint16(21098), + 180: uint16(20943), + 181: uint16(33616), + 182: uint16(27099), + 183: uint16(37492), + 184: uint16(36341), + 185: uint16(36145), + 186: uint16(35265), + 187: uint16(38190), + 188: uint16(31661), + 189: uint16(20214), + }, + 60: { + 0: uint16(32055), + 1: uint16(32056), + 2: uint16(32057), + 3: uint16(32058), + 4: uint16(32059), + 5: uint16(32060), + 6: uint16(32061), + 7: uint16(32062), + 8: uint16(32063), + 9: uint16(32064), + 10: uint16(32065), + 11: uint16(32066), + 12: uint16(32067), + 13: uint16(32068), + 14: uint16(32069), + 15: uint16(32070), + 16: uint16(32071), + 17: uint16(32072), + 18: uint16(32073), + 19: uint16(32074), + 20: uint16(32075), + 21: uint16(32076), + 22: uint16(32077), + 23: uint16(32078), + 24: uint16(32079), + 25: uint16(32080), + 26: uint16(32081), + 27: uint16(32082), + 28: uint16(32083), + 29: uint16(32084), + 30: uint16(32085), + 31: uint16(32086), + 32: uint16(32087), + 33: uint16(32088), + 34: uint16(32089), + 35: uint16(32090), + 36: uint16(32091), + 37: uint16(32092), + 38: uint16(32093), + 39: uint16(32094), + 40: uint16(32095), + 41: uint16(32096), + 42: uint16(32097), + 43: uint16(32098), + 44: uint16(32099), + 45: uint16(32100), + 46: uint16(32101), + 47: uint16(32102), + 48: uint16(32103), + 49: uint16(32104), + 50: uint16(32105), + 51: uint16(32106), + 52: uint16(32107), + 53: uint16(32108), + 54: uint16(32109), + 55: uint16(32111), + 56: uint16(32112), + 57: uint16(32113), + 58: uint16(32114), + 59: uint16(32115), + 60: uint16(32116), + 61: uint16(32117), + 62: uint16(32118), + 63: uint16(32120), + 64: uint16(32121), + 65: uint16(32122), + 66: uint16(32123), + 67: uint16(32124), + 68: uint16(32125), + 69: uint16(32126), + 70: uint16(32127), + 71: uint16(32128), + 72: uint16(32129), + 73: uint16(32130), + 74: uint16(32131), + 75: uint16(32132), + 76: uint16(32133), + 77: uint16(32134), + 78: uint16(32135), + 79: uint16(32136), + 80: uint16(32137), + 81: uint16(32138), + 82: uint16(32139), + 83: uint16(32140), + 84: uint16(32141), + 85: uint16(32142), + 86: uint16(32143), + 87: uint16(32144), + 88: uint16(32145), + 89: uint16(32146), + 90: uint16(32147), + 91: uint16(32148), + 92: uint16(32149), + 93: uint16(32150), + 94: uint16(32151), + 95: uint16(32152), + 96: uint16(20581), + 97: uint16(33328), + 98: uint16(21073), + 99: uint16(39279), + 100: uint16(28176), + 101: uint16(28293), + 102: uint16(28071), + 103: uint16(24314), + 104: uint16(20725), + 105: uint16(23004), + 106: uint16(23558), + 107: uint16(27974), + 108: uint16(27743), + 109: uint16(30086), + 110: uint16(33931), + 111: uint16(26728), + 112: uint16(22870), + 113: uint16(35762), + 114: uint16(21280), + 115: uint16(37233), + 116: uint16(38477), + 117: uint16(34121), + 118: uint16(26898), + 119: uint16(30977), + 120: uint16(28966), + 121: uint16(33014), + 122: uint16(20132), + 123: uint16(37066), + 124: uint16(27975), + 125: uint16(39556), + 126: uint16(23047), + 127: uint16(22204), + 128: uint16(25605), + 129: uint16(38128), + 130: uint16(30699), + 131: uint16(20389), + 132: uint16(33050), + 133: uint16(29409), + 134: uint16(35282), + 135: uint16(39290), + 136: uint16(32564), + 137: uint16(32478), + 138: uint16(21119), + 139: uint16(25945), + 140: uint16(37237), + 141: uint16(36735), + 142: uint16(36739), + 143: uint16(21483), + 144: uint16(31382), + 145: uint16(25581), + 146: uint16(25509), + 147: uint16(30342), + 148: uint16(31224), + 149: uint16(34903), + 150: uint16(38454), + 151: uint16(25130), + 152: uint16(21163), + 153: uint16(33410), + 154: uint16(26708), + 155: uint16(26480), + 156: uint16(25463), + 157: uint16(30571), + 158: uint16(31469), + 159: uint16(27905), + 160: uint16(32467), + 161: uint16(35299), + 162: uint16(22992), + 163: uint16(25106), + 164: uint16(34249), + 165: uint16(33445), + 166: uint16(30028), + 167: uint16(20511), + 168: uint16(20171), + 169: uint16(30117), + 170: uint16(35819), + 171: uint16(23626), + 172: uint16(24062), + 173: uint16(31563), + 174: uint16(26020), + 175: uint16(37329), + 176: uint16(20170), + 177: uint16(27941), + 178: uint16(35167), + 179: uint16(32039), + 180: uint16(38182), + 181: uint16(20165), + 182: uint16(35880), + 183: uint16(36827), + 184: uint16(38771), + 185: uint16(26187), + 186: uint16(31105), + 187: uint16(36817), + 188: uint16(28908), + 189: uint16(28024), + }, + 61: { + 0: uint16(32153), + 1: uint16(32154), + 2: uint16(32155), + 3: uint16(32156), + 4: uint16(32157), + 5: uint16(32158), + 6: uint16(32159), + 7: uint16(32160), + 8: uint16(32161), + 9: uint16(32162), + 10: uint16(32163), + 11: uint16(32164), + 12: uint16(32165), + 13: uint16(32167), + 14: uint16(32168), + 15: uint16(32169), + 16: uint16(32170), + 17: uint16(32171), + 18: uint16(32172), + 19: uint16(32173), + 20: uint16(32175), + 21: uint16(32176), + 22: uint16(32177), + 23: uint16(32178), + 24: uint16(32179), + 25: uint16(32180), + 26: uint16(32181), + 27: uint16(32182), + 28: uint16(32183), + 29: uint16(32184), + 30: uint16(32185), + 31: uint16(32186), + 32: uint16(32187), + 33: uint16(32188), + 34: uint16(32189), + 35: uint16(32190), + 36: uint16(32191), + 37: uint16(32192), + 38: uint16(32193), + 39: uint16(32194), + 40: uint16(32195), + 41: uint16(32196), + 42: uint16(32197), + 43: uint16(32198), + 44: uint16(32199), + 45: uint16(32200), + 46: uint16(32201), + 47: uint16(32202), + 48: uint16(32203), + 49: uint16(32204), + 50: uint16(32205), + 51: uint16(32206), + 52: uint16(32207), + 53: uint16(32208), + 54: uint16(32209), + 55: uint16(32210), + 56: uint16(32211), + 57: uint16(32212), + 58: uint16(32213), + 59: uint16(32214), + 60: uint16(32215), + 61: uint16(32216), + 62: uint16(32217), + 63: uint16(32218), + 64: uint16(32219), + 65: uint16(32220), + 66: uint16(32221), + 67: uint16(32222), + 68: uint16(32223), + 69: uint16(32224), + 70: uint16(32225), + 71: uint16(32226), + 72: uint16(32227), + 73: uint16(32228), + 74: uint16(32229), + 75: uint16(32230), + 76: uint16(32231), + 77: uint16(32232), + 78: uint16(32233), + 79: uint16(32234), + 80: uint16(32235), + 81: uint16(32236), + 82: uint16(32237), + 83: uint16(32238), + 84: uint16(32239), + 85: uint16(32240), + 86: uint16(32241), + 87: uint16(32242), + 88: uint16(32243), + 89: uint16(32244), + 90: uint16(32245), + 91: uint16(32246), + 92: uint16(32247), + 93: uint16(32248), + 94: uint16(32249), + 95: uint16(32250), + 96: uint16(23613), + 97: uint16(21170), + 98: uint16(33606), + 99: uint16(20834), + 100: uint16(33550), + 101: uint16(30555), + 102: uint16(26230), + 103: uint16(40120), + 104: uint16(20140), + 105: uint16(24778), + 106: uint16(31934), + 107: uint16(31923), + 108: uint16(32463), + 109: uint16(20117), + 110: uint16(35686), + 111: uint16(26223), + 112: uint16(39048), + 113: uint16(38745), + 114: uint16(22659), + 115: uint16(25964), + 116: uint16(38236), + 117: uint16(24452), + 118: uint16(30153), + 119: uint16(38742), + 120: uint16(31455), + 121: uint16(31454), + 122: uint16(20928), + 123: uint16(28847), + 124: uint16(31384), + 125: uint16(25578), + 126: uint16(31350), + 127: uint16(32416), + 128: uint16(29590), + 129: uint16(38893), + 130: uint16(20037), + 131: uint16(28792), + 132: uint16(20061), + 133: uint16(37202), + 134: uint16(21417), + 135: uint16(25937), + 136: uint16(26087), + 137: uint16(33276), + 138: uint16(33285), + 139: uint16(21646), + 140: uint16(23601), + 141: uint16(30106), + 142: uint16(38816), + 143: uint16(25304), + 144: uint16(29401), + 145: uint16(30141), + 146: uint16(23621), + 147: uint16(39545), + 148: uint16(33738), + 149: uint16(23616), + 150: uint16(21632), + 151: uint16(30697), + 152: uint16(20030), + 153: uint16(27822), + 154: uint16(32858), + 155: uint16(25298), + 156: uint16(25454), + 157: uint16(24040), + 158: uint16(20855), + 159: uint16(36317), + 160: uint16(36382), + 161: uint16(38191), + 162: uint16(20465), + 163: uint16(21477), + 164: uint16(24807), + 165: uint16(28844), + 166: uint16(21095), + 167: uint16(25424), + 168: uint16(40515), + 169: uint16(23071), + 170: uint16(20518), + 171: uint16(30519), + 172: uint16(21367), + 173: uint16(32482), + 174: uint16(25733), + 175: uint16(25899), + 176: uint16(25225), + 177: uint16(25496), + 178: uint16(20500), + 179: uint16(29237), + 180: uint16(35273), + 181: uint16(20915), + 182: uint16(35776), + 183: uint16(32477), + 184: uint16(22343), + 185: uint16(33740), + 186: uint16(38055), + 187: uint16(20891), + 188: uint16(21531), + 189: uint16(23803), + }, + 62: { + 0: uint16(32251), + 1: uint16(32252), + 2: uint16(32253), + 3: uint16(32254), + 4: uint16(32255), + 5: uint16(32256), + 6: uint16(32257), + 7: uint16(32258), + 8: uint16(32259), + 9: uint16(32260), + 10: uint16(32261), + 11: uint16(32262), + 12: uint16(32263), + 13: uint16(32264), + 14: uint16(32265), + 15: uint16(32266), + 16: uint16(32267), + 17: uint16(32268), + 18: uint16(32269), + 19: uint16(32270), + 20: uint16(32271), + 21: uint16(32272), + 22: uint16(32273), + 23: uint16(32274), + 24: uint16(32275), + 25: uint16(32276), + 26: uint16(32277), + 27: uint16(32278), + 28: uint16(32279), + 29: uint16(32280), + 30: uint16(32281), + 31: uint16(32282), + 32: uint16(32283), + 33: uint16(32284), + 34: uint16(32285), + 35: uint16(32286), + 36: uint16(32287), + 37: uint16(32288), + 38: uint16(32289), + 39: uint16(32290), + 40: uint16(32291), + 41: uint16(32292), + 42: uint16(32293), + 43: uint16(32294), + 44: uint16(32295), + 45: uint16(32296), + 46: uint16(32297), + 47: uint16(32298), + 48: uint16(32299), + 49: uint16(32300), + 50: uint16(32301), + 51: uint16(32302), + 52: uint16(32303), + 53: uint16(32304), + 54: uint16(32305), + 55: uint16(32306), + 56: uint16(32307), + 57: uint16(32308), + 58: uint16(32309), + 59: uint16(32310), + 60: uint16(32311), + 61: uint16(32312), + 62: uint16(32313), + 63: uint16(32314), + 64: uint16(32316), + 65: uint16(32317), + 66: uint16(32318), + 67: uint16(32319), + 68: uint16(32320), + 69: uint16(32322), + 70: uint16(32323), + 71: uint16(32324), + 72: uint16(32325), + 73: uint16(32326), + 74: uint16(32328), + 75: uint16(32329), + 76: uint16(32330), + 77: uint16(32331), + 78: uint16(32332), + 79: uint16(32333), + 80: uint16(32334), + 81: uint16(32335), + 82: uint16(32336), + 83: uint16(32337), + 84: uint16(32338), + 85: uint16(32339), + 86: uint16(32340), + 87: uint16(32341), + 88: uint16(32342), + 89: uint16(32343), + 90: uint16(32344), + 91: uint16(32345), + 92: uint16(32346), + 93: uint16(32347), + 94: uint16(32348), + 95: uint16(32349), + 96: uint16(20426), + 97: uint16(31459), + 98: uint16(27994), + 99: uint16(37089), + 100: uint16(39567), + 101: uint16(21888), + 102: uint16(21654), + 103: uint16(21345), + 104: uint16(21679), + 105: uint16(24320), + 106: uint16(25577), + 107: uint16(26999), + 108: uint16(20975), + 109: uint16(24936), + 110: uint16(21002), + 111: uint16(22570), + 112: uint16(21208), + 113: uint16(22350), + 114: uint16(30733), + 115: uint16(30475), + 116: uint16(24247), + 117: uint16(24951), + 118: uint16(31968), + 119: uint16(25179), + 120: uint16(25239), + 121: uint16(20130), + 122: uint16(28821), + 123: uint16(32771), + 124: uint16(25335), + 125: uint16(28900), + 126: uint16(38752), + 127: uint16(22391), + 128: uint16(33499), + 129: uint16(26607), + 130: uint16(26869), + 131: uint16(30933), + 132: uint16(39063), + 133: uint16(31185), + 134: uint16(22771), + 135: uint16(21683), + 136: uint16(21487), + 137: uint16(28212), + 138: uint16(20811), + 139: uint16(21051), + 140: uint16(23458), + 141: uint16(35838), + 142: uint16(32943), + 143: uint16(21827), + 144: uint16(22438), + 145: uint16(24691), + 146: uint16(22353), + 147: uint16(21549), + 148: uint16(31354), + 149: uint16(24656), + 150: uint16(23380), + 151: uint16(25511), + 152: uint16(25248), + 153: uint16(21475), + 154: uint16(25187), + 155: uint16(23495), + 156: uint16(26543), + 157: uint16(21741), + 158: uint16(31391), + 159: uint16(33510), + 160: uint16(37239), + 161: uint16(24211), + 162: uint16(35044), + 163: uint16(22840), + 164: uint16(22446), + 165: uint16(25358), + 166: uint16(36328), + 167: uint16(33007), + 168: uint16(22359), + 169: uint16(31607), + 170: uint16(20393), + 171: uint16(24555), + 172: uint16(23485), + 173: uint16(27454), + 174: uint16(21281), + 175: uint16(31568), + 176: uint16(29378), + 177: uint16(26694), + 178: uint16(30719), + 179: uint16(30518), + 180: uint16(26103), + 181: uint16(20917), + 182: uint16(20111), + 183: uint16(30420), + 184: uint16(23743), + 185: uint16(31397), + 186: uint16(33909), + 187: uint16(22862), + 188: uint16(39745), + 189: uint16(20608), + }, + 63: { + 0: uint16(32350), + 1: uint16(32351), + 2: uint16(32352), + 3: uint16(32353), + 4: uint16(32354), + 5: uint16(32355), + 6: uint16(32356), + 7: uint16(32357), + 8: uint16(32358), + 9: uint16(32359), + 10: uint16(32360), + 11: uint16(32361), + 12: uint16(32362), + 13: uint16(32363), + 14: uint16(32364), + 15: uint16(32365), + 16: uint16(32366), + 17: uint16(32367), + 18: uint16(32368), + 19: uint16(32369), + 20: uint16(32370), + 21: uint16(32371), + 22: uint16(32372), + 23: uint16(32373), + 24: uint16(32374), + 25: uint16(32375), + 26: uint16(32376), + 27: uint16(32377), + 28: uint16(32378), + 29: uint16(32379), + 30: uint16(32380), + 31: uint16(32381), + 32: uint16(32382), + 33: uint16(32383), + 34: uint16(32384), + 35: uint16(32385), + 36: uint16(32387), + 37: uint16(32388), + 38: uint16(32389), + 39: uint16(32390), + 40: uint16(32391), + 41: uint16(32392), + 42: uint16(32393), + 43: uint16(32394), + 44: uint16(32395), + 45: uint16(32396), + 46: uint16(32397), + 47: uint16(32398), + 48: uint16(32399), + 49: uint16(32400), + 50: uint16(32401), + 51: uint16(32402), + 52: uint16(32403), + 53: uint16(32404), + 54: uint16(32405), + 55: uint16(32406), + 56: uint16(32407), + 57: uint16(32408), + 58: uint16(32409), + 59: uint16(32410), + 60: uint16(32412), + 61: uint16(32413), + 62: uint16(32414), + 63: uint16(32430), + 64: uint16(32436), + 65: uint16(32443), + 66: uint16(32444), + 67: uint16(32470), + 68: uint16(32484), + 69: uint16(32492), + 70: uint16(32505), + 71: uint16(32522), + 72: uint16(32528), + 73: uint16(32542), + 74: uint16(32567), + 75: uint16(32569), + 76: uint16(32571), + 77: uint16(32572), + 78: uint16(32573), + 79: uint16(32574), + 80: uint16(32575), + 81: uint16(32576), + 82: uint16(32577), + 83: uint16(32579), + 84: uint16(32582), + 85: uint16(32583), + 86: uint16(32584), + 87: uint16(32585), + 88: uint16(32586), + 89: uint16(32587), + 90: uint16(32588), + 91: uint16(32589), + 92: uint16(32590), + 93: uint16(32591), + 94: uint16(32594), + 95: uint16(32595), + 96: uint16(39304), + 97: uint16(24871), + 98: uint16(28291), + 99: uint16(22372), + 100: uint16(26118), + 101: uint16(25414), + 102: uint16(22256), + 103: uint16(25324), + 104: uint16(25193), + 105: uint16(24275), + 106: uint16(38420), + 107: uint16(22403), + 108: uint16(25289), + 109: uint16(21895), + 110: uint16(34593), + 111: uint16(33098), + 112: uint16(36771), + 113: uint16(21862), + 114: uint16(33713), + 115: uint16(26469), + 116: uint16(36182), + 117: uint16(34013), + 118: uint16(23146), + 119: uint16(26639), + 120: uint16(25318), + 121: uint16(31726), + 122: uint16(38417), + 123: uint16(20848), + 124: uint16(28572), + 125: uint16(35888), + 126: uint16(25597), + 127: uint16(35272), + 128: uint16(25042), + 129: uint16(32518), + 130: uint16(28866), + 131: uint16(28389), + 132: uint16(29701), + 133: uint16(27028), + 134: uint16(29436), + 135: uint16(24266), + 136: uint16(37070), + 137: uint16(26391), + 138: uint16(28010), + 139: uint16(25438), + 140: uint16(21171), + 141: uint16(29282), + 142: uint16(32769), + 143: uint16(20332), + 144: uint16(23013), + 145: uint16(37226), + 146: uint16(28889), + 147: uint16(28061), + 148: uint16(21202), + 149: uint16(20048), + 150: uint16(38647), + 151: uint16(38253), + 152: uint16(34174), + 153: uint16(30922), + 154: uint16(32047), + 155: uint16(20769), + 156: uint16(22418), + 157: uint16(25794), + 158: uint16(32907), + 159: uint16(31867), + 160: uint16(27882), + 161: uint16(26865), + 162: uint16(26974), + 163: uint16(20919), + 164: uint16(21400), + 165: uint16(26792), + 166: uint16(29313), + 167: uint16(40654), + 168: uint16(31729), + 169: uint16(29432), + 170: uint16(31163), + 171: uint16(28435), + 172: uint16(29702), + 173: uint16(26446), + 174: uint16(37324), + 175: uint16(40100), + 176: uint16(31036), + 177: uint16(33673), + 178: uint16(33620), + 179: uint16(21519), + 180: uint16(26647), + 181: uint16(20029), + 182: uint16(21385), + 183: uint16(21169), + 184: uint16(30782), + 185: uint16(21382), + 186: uint16(21033), + 187: uint16(20616), + 188: uint16(20363), + 189: uint16(20432), + }, + 64: { + 0: uint16(32598), + 1: uint16(32601), + 2: uint16(32603), + 3: uint16(32604), + 4: uint16(32605), + 5: uint16(32606), + 6: uint16(32608), + 7: uint16(32611), + 8: uint16(32612), + 9: uint16(32613), + 10: uint16(32614), + 11: uint16(32615), + 12: uint16(32619), + 13: uint16(32620), + 14: uint16(32621), + 15: uint16(32623), + 16: uint16(32624), + 17: uint16(32627), + 18: uint16(32629), + 19: uint16(32630), + 20: uint16(32631), + 21: uint16(32632), + 22: uint16(32634), + 23: uint16(32635), + 24: uint16(32636), + 25: uint16(32637), + 26: uint16(32639), + 27: uint16(32640), + 28: uint16(32642), + 29: uint16(32643), + 30: uint16(32644), + 31: uint16(32645), + 32: uint16(32646), + 33: uint16(32647), + 34: uint16(32648), + 35: uint16(32649), + 36: uint16(32651), + 37: uint16(32653), + 38: uint16(32655), + 39: uint16(32656), + 40: uint16(32657), + 41: uint16(32658), + 42: uint16(32659), + 43: uint16(32661), + 44: uint16(32662), + 45: uint16(32663), + 46: uint16(32664), + 47: uint16(32665), + 48: uint16(32667), + 49: uint16(32668), + 50: uint16(32672), + 51: uint16(32674), + 52: uint16(32675), + 53: uint16(32677), + 54: uint16(32678), + 55: uint16(32680), + 56: uint16(32681), + 57: uint16(32682), + 58: uint16(32683), + 59: uint16(32684), + 60: uint16(32685), + 61: uint16(32686), + 62: uint16(32689), + 63: uint16(32691), + 64: uint16(32692), + 65: uint16(32693), + 66: uint16(32694), + 67: uint16(32695), + 68: uint16(32698), + 69: uint16(32699), + 70: uint16(32702), + 71: uint16(32704), + 72: uint16(32706), + 73: uint16(32707), + 74: uint16(32708), + 75: uint16(32710), + 76: uint16(32711), + 77: uint16(32712), + 78: uint16(32713), + 79: uint16(32715), + 80: uint16(32717), + 81: uint16(32719), + 82: uint16(32720), + 83: uint16(32721), + 84: uint16(32722), + 85: uint16(32723), + 86: uint16(32726), + 87: uint16(32727), + 88: uint16(32729), + 89: uint16(32730), + 90: uint16(32731), + 91: uint16(32732), + 92: uint16(32733), + 93: uint16(32734), + 94: uint16(32738), + 95: uint16(32739), + 96: uint16(30178), + 97: uint16(31435), + 98: uint16(31890), + 99: uint16(27813), + 100: uint16(38582), + 101: uint16(21147), + 102: uint16(29827), + 103: uint16(21737), + 104: uint16(20457), + 105: uint16(32852), + 106: uint16(33714), + 107: uint16(36830), + 108: uint16(38256), + 109: uint16(24265), + 110: uint16(24604), + 111: uint16(28063), + 112: uint16(24088), + 113: uint16(25947), + 114: uint16(33080), + 115: uint16(38142), + 116: uint16(24651), + 117: uint16(28860), + 118: uint16(32451), + 119: uint16(31918), + 120: uint16(20937), + 121: uint16(26753), + 122: uint16(31921), + 123: uint16(33391), + 124: uint16(20004), + 125: uint16(36742), + 126: uint16(37327), + 127: uint16(26238), + 128: uint16(20142), + 129: uint16(35845), + 130: uint16(25769), + 131: uint16(32842), + 132: uint16(20698), + 133: uint16(30103), + 134: uint16(29134), + 135: uint16(23525), + 136: uint16(36797), + 137: uint16(28518), + 138: uint16(20102), + 139: uint16(25730), + 140: uint16(38243), + 141: uint16(24278), + 142: uint16(26009), + 143: uint16(21015), + 144: uint16(35010), + 145: uint16(28872), + 146: uint16(21155), + 147: uint16(29454), + 148: uint16(29747), + 149: uint16(26519), + 150: uint16(30967), + 151: uint16(38678), + 152: uint16(20020), + 153: uint16(37051), + 154: uint16(40158), + 155: uint16(28107), + 156: uint16(20955), + 157: uint16(36161), + 158: uint16(21533), + 159: uint16(25294), + 160: uint16(29618), + 161: uint16(33777), + 162: uint16(38646), + 163: uint16(40836), + 164: uint16(38083), + 165: uint16(20278), + 166: uint16(32666), + 167: uint16(20940), + 168: uint16(28789), + 169: uint16(38517), + 170: uint16(23725), + 171: uint16(39046), + 172: uint16(21478), + 173: uint16(20196), + 174: uint16(28316), + 175: uint16(29705), + 176: uint16(27060), + 177: uint16(30827), + 178: uint16(39311), + 179: uint16(30041), + 180: uint16(21016), + 181: uint16(30244), + 182: uint16(27969), + 183: uint16(26611), + 184: uint16(20845), + 185: uint16(40857), + 186: uint16(32843), + 187: uint16(21657), + 188: uint16(31548), + 189: uint16(31423), + }, + 65: { + 0: uint16(32740), + 1: uint16(32743), + 2: uint16(32744), + 3: uint16(32746), + 4: uint16(32747), + 5: uint16(32748), + 6: uint16(32749), + 7: uint16(32751), + 8: uint16(32754), + 9: uint16(32756), + 10: uint16(32757), + 11: uint16(32758), + 12: uint16(32759), + 13: uint16(32760), + 14: uint16(32761), + 15: uint16(32762), + 16: uint16(32765), + 17: uint16(32766), + 18: uint16(32767), + 19: uint16(32770), + 20: uint16(32775), + 21: uint16(32776), + 22: uint16(32777), + 23: uint16(32778), + 24: uint16(32782), + 25: uint16(32783), + 26: uint16(32785), + 27: uint16(32787), + 28: uint16(32794), + 29: uint16(32795), + 30: uint16(32797), + 31: uint16(32798), + 32: uint16(32799), + 33: uint16(32801), + 34: uint16(32803), + 35: uint16(32804), + 36: uint16(32811), + 37: uint16(32812), + 38: uint16(32813), + 39: uint16(32814), + 40: uint16(32815), + 41: uint16(32816), + 42: uint16(32818), + 43: uint16(32820), + 44: uint16(32825), + 45: uint16(32826), + 46: uint16(32828), + 47: uint16(32830), + 48: uint16(32832), + 49: uint16(32833), + 50: uint16(32836), + 51: uint16(32837), + 52: uint16(32839), + 53: uint16(32840), + 54: uint16(32841), + 55: uint16(32846), + 56: uint16(32847), + 57: uint16(32848), + 58: uint16(32849), + 59: uint16(32851), + 60: uint16(32853), + 61: uint16(32854), + 62: uint16(32855), + 63: uint16(32857), + 64: uint16(32859), + 65: uint16(32860), + 66: uint16(32861), + 67: uint16(32862), + 68: uint16(32863), + 69: uint16(32864), + 70: uint16(32865), + 71: uint16(32866), + 72: uint16(32867), + 73: uint16(32868), + 74: uint16(32869), + 75: uint16(32870), + 76: uint16(32871), + 77: uint16(32872), + 78: uint16(32875), + 79: uint16(32876), + 80: uint16(32877), + 81: uint16(32878), + 82: uint16(32879), + 83: uint16(32880), + 84: uint16(32882), + 85: uint16(32883), + 86: uint16(32884), + 87: uint16(32885), + 88: uint16(32886), + 89: uint16(32887), + 90: uint16(32888), + 91: uint16(32889), + 92: uint16(32890), + 93: uint16(32891), + 94: uint16(32892), + 95: uint16(32893), + 96: uint16(38534), + 97: uint16(22404), + 98: uint16(25314), + 99: uint16(38471), + 100: uint16(27004), + 101: uint16(23044), + 102: uint16(25602), + 103: uint16(31699), + 104: uint16(28431), + 105: uint16(38475), + 106: uint16(33446), + 107: uint16(21346), + 108: uint16(39045), + 109: uint16(24208), + 110: uint16(28809), + 111: uint16(25523), + 112: uint16(21348), + 113: uint16(34383), + 114: uint16(40065), + 115: uint16(40595), + 116: uint16(30860), + 117: uint16(38706), + 118: uint16(36335), + 119: uint16(36162), + 120: uint16(40575), + 121: uint16(28510), + 122: uint16(31108), + 123: uint16(24405), + 124: uint16(38470), + 125: uint16(25134), + 126: uint16(39540), + 127: uint16(21525), + 128: uint16(38109), + 129: uint16(20387), + 130: uint16(26053), + 131: uint16(23653), + 132: uint16(23649), + 133: uint16(32533), + 134: uint16(34385), + 135: uint16(27695), + 136: uint16(24459), + 137: uint16(29575), + 138: uint16(28388), + 139: uint16(32511), + 140: uint16(23782), + 141: uint16(25371), + 142: uint16(23402), + 143: uint16(28390), + 144: uint16(21365), + 145: uint16(20081), + 146: uint16(25504), + 147: uint16(30053), + 148: uint16(25249), + 149: uint16(36718), + 150: uint16(20262), + 151: uint16(20177), + 152: uint16(27814), + 153: uint16(32438), + 154: uint16(35770), + 155: uint16(33821), + 156: uint16(34746), + 157: uint16(32599), + 158: uint16(36923), + 159: uint16(38179), + 160: uint16(31657), + 161: uint16(39585), + 162: uint16(35064), + 163: uint16(33853), + 164: uint16(27931), + 165: uint16(39558), + 166: uint16(32476), + 167: uint16(22920), + 168: uint16(40635), + 169: uint16(29595), + 170: uint16(30721), + 171: uint16(34434), + 172: uint16(39532), + 173: uint16(39554), + 174: uint16(22043), + 175: uint16(21527), + 176: uint16(22475), + 177: uint16(20080), + 178: uint16(40614), + 179: uint16(21334), + 180: uint16(36808), + 181: uint16(33033), + 182: uint16(30610), + 183: uint16(39314), + 184: uint16(34542), + 185: uint16(28385), + 186: uint16(34067), + 187: uint16(26364), + 188: uint16(24930), + 189: uint16(28459), + }, + 66: { + 0: uint16(32894), + 1: uint16(32897), + 2: uint16(32898), + 3: uint16(32901), + 4: uint16(32904), + 5: uint16(32906), + 6: uint16(32909), + 7: uint16(32910), + 8: uint16(32911), + 9: uint16(32912), + 10: uint16(32913), + 11: uint16(32914), + 12: uint16(32916), + 13: uint16(32917), + 14: uint16(32919), + 15: uint16(32921), + 16: uint16(32926), + 17: uint16(32931), + 18: uint16(32934), + 19: uint16(32935), + 20: uint16(32936), + 21: uint16(32940), + 22: uint16(32944), + 23: uint16(32947), + 24: uint16(32949), + 25: uint16(32950), + 26: uint16(32952), + 27: uint16(32953), + 28: uint16(32955), + 29: uint16(32965), + 30: uint16(32967), + 31: uint16(32968), + 32: uint16(32969), + 33: uint16(32970), + 34: uint16(32971), + 35: uint16(32975), + 36: uint16(32976), + 37: uint16(32977), + 38: uint16(32978), + 39: uint16(32979), + 40: uint16(32980), + 41: uint16(32981), + 42: uint16(32984), + 43: uint16(32991), + 44: uint16(32992), + 45: uint16(32994), + 46: uint16(32995), + 47: uint16(32998), + 48: uint16(33006), + 49: uint16(33013), + 50: uint16(33015), + 51: uint16(33017), + 52: uint16(33019), + 53: uint16(33022), + 54: uint16(33023), + 55: uint16(33024), + 56: uint16(33025), + 57: uint16(33027), + 58: uint16(33028), + 59: uint16(33029), + 60: uint16(33031), + 61: uint16(33032), + 62: uint16(33035), + 63: uint16(33036), + 64: uint16(33045), + 65: uint16(33047), + 66: uint16(33049), + 67: uint16(33051), + 68: uint16(33052), + 69: uint16(33053), + 70: uint16(33055), + 71: uint16(33056), + 72: uint16(33057), + 73: uint16(33058), + 74: uint16(33059), + 75: uint16(33060), + 76: uint16(33061), + 77: uint16(33062), + 78: uint16(33063), + 79: uint16(33064), + 80: uint16(33065), + 81: uint16(33066), + 82: uint16(33067), + 83: uint16(33069), + 84: uint16(33070), + 85: uint16(33072), + 86: uint16(33075), + 87: uint16(33076), + 88: uint16(33077), + 89: uint16(33079), + 90: uint16(33081), + 91: uint16(33082), + 92: uint16(33083), + 93: uint16(33084), + 94: uint16(33085), + 95: uint16(33087), + 96: uint16(35881), + 97: uint16(33426), + 98: uint16(33579), + 99: uint16(30450), + 100: uint16(27667), + 101: uint16(24537), + 102: uint16(33725), + 103: uint16(29483), + 104: uint16(33541), + 105: uint16(38170), + 106: uint16(27611), + 107: uint16(30683), + 108: uint16(38086), + 109: uint16(21359), + 110: uint16(33538), + 111: uint16(20882), + 112: uint16(24125), + 113: uint16(35980), + 114: uint16(36152), + 115: uint16(20040), + 116: uint16(29611), + 117: uint16(26522), + 118: uint16(26757), + 119: uint16(37238), + 120: uint16(38665), + 121: uint16(29028), + 122: uint16(27809), + 123: uint16(30473), + 124: uint16(23186), + 125: uint16(38209), + 126: uint16(27599), + 127: uint16(32654), + 128: uint16(26151), + 129: uint16(23504), + 130: uint16(22969), + 131: uint16(23194), + 132: uint16(38376), + 133: uint16(38391), + 134: uint16(20204), + 135: uint16(33804), + 136: uint16(33945), + 137: uint16(27308), + 138: uint16(30431), + 139: uint16(38192), + 140: uint16(29467), + 141: uint16(26790), + 142: uint16(23391), + 143: uint16(30511), + 144: uint16(37274), + 145: uint16(38753), + 146: uint16(31964), + 147: uint16(36855), + 148: uint16(35868), + 149: uint16(24357), + 150: uint16(31859), + 151: uint16(31192), + 152: uint16(35269), + 153: uint16(27852), + 154: uint16(34588), + 155: uint16(23494), + 156: uint16(24130), + 157: uint16(26825), + 158: uint16(30496), + 159: uint16(32501), + 160: uint16(20885), + 161: uint16(20813), + 162: uint16(21193), + 163: uint16(23081), + 164: uint16(32517), + 165: uint16(38754), + 166: uint16(33495), + 167: uint16(25551), + 168: uint16(30596), + 169: uint16(34256), + 170: uint16(31186), + 171: uint16(28218), + 172: uint16(24217), + 173: uint16(22937), + 174: uint16(34065), + 175: uint16(28781), + 176: uint16(27665), + 177: uint16(25279), + 178: uint16(30399), + 179: uint16(25935), + 180: uint16(24751), + 181: uint16(38397), + 182: uint16(26126), + 183: uint16(34719), + 184: uint16(40483), + 185: uint16(38125), + 186: uint16(21517), + 187: uint16(21629), + 188: uint16(35884), + 189: uint16(25720), + }, + 67: { + 0: uint16(33088), + 1: uint16(33089), + 2: uint16(33090), + 3: uint16(33091), + 4: uint16(33092), + 5: uint16(33093), + 6: uint16(33095), + 7: uint16(33097), + 8: uint16(33101), + 9: uint16(33102), + 10: uint16(33103), + 11: uint16(33106), + 12: uint16(33110), + 13: uint16(33111), + 14: uint16(33112), + 15: uint16(33115), + 16: uint16(33116), + 17: uint16(33117), + 18: uint16(33118), + 19: uint16(33119), + 20: uint16(33121), + 21: uint16(33122), + 22: uint16(33123), + 23: uint16(33124), + 24: uint16(33126), + 25: uint16(33128), + 26: uint16(33130), + 27: uint16(33131), + 28: uint16(33132), + 29: uint16(33135), + 30: uint16(33138), + 31: uint16(33139), + 32: uint16(33141), + 33: uint16(33142), + 34: uint16(33143), + 35: uint16(33144), + 36: uint16(33153), + 37: uint16(33155), + 38: uint16(33156), + 39: uint16(33157), + 40: uint16(33158), + 41: uint16(33159), + 42: uint16(33161), + 43: uint16(33163), + 44: uint16(33164), + 45: uint16(33165), + 46: uint16(33166), + 47: uint16(33168), + 48: uint16(33170), + 49: uint16(33171), + 50: uint16(33172), + 51: uint16(33173), + 52: uint16(33174), + 53: uint16(33175), + 54: uint16(33177), + 55: uint16(33178), + 56: uint16(33182), + 57: uint16(33183), + 58: uint16(33184), + 59: uint16(33185), + 60: uint16(33186), + 61: uint16(33188), + 62: uint16(33189), + 63: uint16(33191), + 64: uint16(33193), + 65: uint16(33195), + 66: uint16(33196), + 67: uint16(33197), + 68: uint16(33198), + 69: uint16(33199), + 70: uint16(33200), + 71: uint16(33201), + 72: uint16(33202), + 73: uint16(33204), + 74: uint16(33205), + 75: uint16(33206), + 76: uint16(33207), + 77: uint16(33208), + 78: uint16(33209), + 79: uint16(33212), + 80: uint16(33213), + 81: uint16(33214), + 82: uint16(33215), + 83: uint16(33220), + 84: uint16(33221), + 85: uint16(33223), + 86: uint16(33224), + 87: uint16(33225), + 88: uint16(33227), + 89: uint16(33229), + 90: uint16(33230), + 91: uint16(33231), + 92: uint16(33232), + 93: uint16(33233), + 94: uint16(33234), + 95: uint16(33235), + 96: uint16(25721), + 97: uint16(34321), + 98: uint16(27169), + 99: uint16(33180), + 100: uint16(30952), + 101: uint16(25705), + 102: uint16(39764), + 103: uint16(25273), + 104: uint16(26411), + 105: uint16(33707), + 106: uint16(22696), + 107: uint16(40664), + 108: uint16(27819), + 109: uint16(28448), + 110: uint16(23518), + 111: uint16(38476), + 112: uint16(35851), + 113: uint16(29279), + 114: uint16(26576), + 115: uint16(25287), + 116: uint16(29281), + 117: uint16(20137), + 118: uint16(22982), + 119: uint16(27597), + 120: uint16(22675), + 121: uint16(26286), + 122: uint16(24149), + 123: uint16(21215), + 124: uint16(24917), + 125: uint16(26408), + 126: uint16(30446), + 127: uint16(30566), + 128: uint16(29287), + 129: uint16(31302), + 130: uint16(25343), + 131: uint16(21738), + 132: uint16(21584), + 133: uint16(38048), + 134: uint16(37027), + 135: uint16(23068), + 136: uint16(32435), + 137: uint16(27670), + 138: uint16(20035), + 139: uint16(22902), + 140: uint16(32784), + 141: uint16(22856), + 142: uint16(21335), + 143: uint16(30007), + 144: uint16(38590), + 145: uint16(22218), + 146: uint16(25376), + 147: uint16(33041), + 148: uint16(24700), + 149: uint16(38393), + 150: uint16(28118), + 151: uint16(21602), + 152: uint16(39297), + 153: uint16(20869), + 154: uint16(23273), + 155: uint16(33021), + 156: uint16(22958), + 157: uint16(38675), + 158: uint16(20522), + 159: uint16(27877), + 160: uint16(23612), + 161: uint16(25311), + 162: uint16(20320), + 163: uint16(21311), + 164: uint16(33147), + 165: uint16(36870), + 166: uint16(28346), + 167: uint16(34091), + 168: uint16(25288), + 169: uint16(24180), + 170: uint16(30910), + 171: uint16(25781), + 172: uint16(25467), + 173: uint16(24565), + 174: uint16(23064), + 175: uint16(37247), + 176: uint16(40479), + 177: uint16(23615), + 178: uint16(25423), + 179: uint16(32834), + 180: uint16(23421), + 181: uint16(21870), + 182: uint16(38218), + 183: uint16(38221), + 184: uint16(28037), + 185: uint16(24744), + 186: uint16(26592), + 187: uint16(29406), + 188: uint16(20957), + 189: uint16(23425), + }, + 68: { + 0: uint16(33236), + 1: uint16(33237), + 2: uint16(33238), + 3: uint16(33239), + 4: uint16(33240), + 5: uint16(33241), + 6: uint16(33242), + 7: uint16(33243), + 8: uint16(33244), + 9: uint16(33245), + 10: uint16(33246), + 11: uint16(33247), + 12: uint16(33248), + 13: uint16(33249), + 14: uint16(33250), + 15: uint16(33252), + 16: uint16(33253), + 17: uint16(33254), + 18: uint16(33256), + 19: uint16(33257), + 20: uint16(33259), + 21: uint16(33262), + 22: uint16(33263), + 23: uint16(33264), + 24: uint16(33265), + 25: uint16(33266), + 26: uint16(33269), + 27: uint16(33270), + 28: uint16(33271), + 29: uint16(33272), + 30: uint16(33273), + 31: uint16(33274), + 32: uint16(33277), + 33: uint16(33279), + 34: uint16(33283), + 35: uint16(33287), + 36: uint16(33288), + 37: uint16(33289), + 38: uint16(33290), + 39: uint16(33291), + 40: uint16(33294), + 41: uint16(33295), + 42: uint16(33297), + 43: uint16(33299), + 44: uint16(33301), + 45: uint16(33302), + 46: uint16(33303), + 47: uint16(33304), + 48: uint16(33305), + 49: uint16(33306), + 50: uint16(33309), + 51: uint16(33312), + 52: uint16(33316), + 53: uint16(33317), + 54: uint16(33318), + 55: uint16(33319), + 56: uint16(33321), + 57: uint16(33326), + 58: uint16(33330), + 59: uint16(33338), + 60: uint16(33340), + 61: uint16(33341), + 62: uint16(33343), + 63: uint16(33344), + 64: uint16(33345), + 65: uint16(33346), + 66: uint16(33347), + 67: uint16(33349), + 68: uint16(33350), + 69: uint16(33352), + 70: uint16(33354), + 71: uint16(33356), + 72: uint16(33357), + 73: uint16(33358), + 74: uint16(33360), + 75: uint16(33361), + 76: uint16(33362), + 77: uint16(33363), + 78: uint16(33364), + 79: uint16(33365), + 80: uint16(33366), + 81: uint16(33367), + 82: uint16(33369), + 83: uint16(33371), + 84: uint16(33372), + 85: uint16(33373), + 86: uint16(33374), + 87: uint16(33376), + 88: uint16(33377), + 89: uint16(33378), + 90: uint16(33379), + 91: uint16(33380), + 92: uint16(33381), + 93: uint16(33382), + 94: uint16(33383), + 95: uint16(33385), + 96: uint16(25319), + 97: uint16(27870), + 98: uint16(29275), + 99: uint16(25197), + 100: uint16(38062), + 101: uint16(32445), + 102: uint16(33043), + 103: uint16(27987), + 104: uint16(20892), + 105: uint16(24324), + 106: uint16(22900), + 107: uint16(21162), + 108: uint16(24594), + 109: uint16(22899), + 110: uint16(26262), + 111: uint16(34384), + 112: uint16(30111), + 113: uint16(25386), + 114: uint16(25062), + 115: uint16(31983), + 116: uint16(35834), + 117: uint16(21734), + 118: uint16(27431), + 119: uint16(40485), + 120: uint16(27572), + 121: uint16(34261), + 122: uint16(21589), + 123: uint16(20598), + 124: uint16(27812), + 125: uint16(21866), + 126: uint16(36276), + 127: uint16(29228), + 128: uint16(24085), + 129: uint16(24597), + 130: uint16(29750), + 131: uint16(25293), + 132: uint16(25490), + 133: uint16(29260), + 134: uint16(24472), + 135: uint16(28227), + 136: uint16(27966), + 137: uint16(25856), + 138: uint16(28504), + 139: uint16(30424), + 140: uint16(30928), + 141: uint16(30460), + 142: uint16(30036), + 143: uint16(21028), + 144: uint16(21467), + 145: uint16(20051), + 146: uint16(24222), + 147: uint16(26049), + 148: uint16(32810), + 149: uint16(32982), + 150: uint16(25243), + 151: uint16(21638), + 152: uint16(21032), + 153: uint16(28846), + 154: uint16(34957), + 155: uint16(36305), + 156: uint16(27873), + 157: uint16(21624), + 158: uint16(32986), + 159: uint16(22521), + 160: uint16(35060), + 161: uint16(36180), + 162: uint16(38506), + 163: uint16(37197), + 164: uint16(20329), + 165: uint16(27803), + 166: uint16(21943), + 167: uint16(30406), + 168: uint16(30768), + 169: uint16(25256), + 170: uint16(28921), + 171: uint16(28558), + 172: uint16(24429), + 173: uint16(34028), + 174: uint16(26842), + 175: uint16(30844), + 176: uint16(31735), + 177: uint16(33192), + 178: uint16(26379), + 179: uint16(40527), + 180: uint16(25447), + 181: uint16(30896), + 182: uint16(22383), + 183: uint16(30738), + 184: uint16(38713), + 185: uint16(25209), + 186: uint16(25259), + 187: uint16(21128), + 188: uint16(29749), + 189: uint16(27607), + }, + 69: { + 0: uint16(33386), + 1: uint16(33387), + 2: uint16(33388), + 3: uint16(33389), + 4: uint16(33393), + 5: uint16(33397), + 6: uint16(33398), + 7: uint16(33399), + 8: uint16(33400), + 9: uint16(33403), + 10: uint16(33404), + 11: uint16(33408), + 12: uint16(33409), + 13: uint16(33411), + 14: uint16(33413), + 15: uint16(33414), + 16: uint16(33415), + 17: uint16(33417), + 18: uint16(33420), + 19: uint16(33424), + 20: uint16(33427), + 21: uint16(33428), + 22: uint16(33429), + 23: uint16(33430), + 24: uint16(33434), + 25: uint16(33435), + 26: uint16(33438), + 27: uint16(33440), + 28: uint16(33442), + 29: uint16(33443), + 30: uint16(33447), + 31: uint16(33458), + 32: uint16(33461), + 33: uint16(33462), + 34: uint16(33466), + 35: uint16(33467), + 36: uint16(33468), + 37: uint16(33471), + 38: uint16(33472), + 39: uint16(33474), + 40: uint16(33475), + 41: uint16(33477), + 42: uint16(33478), + 43: uint16(33481), + 44: uint16(33488), + 45: uint16(33494), + 46: uint16(33497), + 47: uint16(33498), + 48: uint16(33501), + 49: uint16(33506), + 50: uint16(33511), + 51: uint16(33512), + 52: uint16(33513), + 53: uint16(33514), + 54: uint16(33516), + 55: uint16(33517), + 56: uint16(33518), + 57: uint16(33520), + 58: uint16(33522), + 59: uint16(33523), + 60: uint16(33525), + 61: uint16(33526), + 62: uint16(33528), + 63: uint16(33530), + 64: uint16(33532), + 65: uint16(33533), + 66: uint16(33534), + 67: uint16(33535), + 68: uint16(33536), + 69: uint16(33546), + 70: uint16(33547), + 71: uint16(33549), + 72: uint16(33552), + 73: uint16(33554), + 74: uint16(33555), + 75: uint16(33558), + 76: uint16(33560), + 77: uint16(33561), + 78: uint16(33565), + 79: uint16(33566), + 80: uint16(33567), + 81: uint16(33568), + 82: uint16(33569), + 83: uint16(33570), + 84: uint16(33571), + 85: uint16(33572), + 86: uint16(33573), + 87: uint16(33574), + 88: uint16(33577), + 89: uint16(33578), + 90: uint16(33582), + 91: uint16(33584), + 92: uint16(33586), + 93: uint16(33591), + 94: uint16(33595), + 95: uint16(33597), + 96: uint16(21860), + 97: uint16(33086), + 98: uint16(30130), + 99: uint16(30382), + 100: uint16(21305), + 101: uint16(30174), + 102: uint16(20731), + 103: uint16(23617), + 104: uint16(35692), + 105: uint16(31687), + 106: uint16(20559), + 107: uint16(29255), + 108: uint16(39575), + 109: uint16(39128), + 110: uint16(28418), + 111: uint16(29922), + 112: uint16(31080), + 113: uint16(25735), + 114: uint16(30629), + 115: uint16(25340), + 116: uint16(39057), + 117: uint16(36139), + 118: uint16(21697), + 119: uint16(32856), + 120: uint16(20050), + 121: uint16(22378), + 122: uint16(33529), + 123: uint16(33805), + 124: uint16(24179), + 125: uint16(20973), + 126: uint16(29942), + 127: uint16(35780), + 128: uint16(23631), + 129: uint16(22369), + 130: uint16(27900), + 131: uint16(39047), + 132: uint16(23110), + 133: uint16(30772), + 134: uint16(39748), + 135: uint16(36843), + 136: uint16(31893), + 137: uint16(21078), + 138: uint16(25169), + 139: uint16(38138), + 140: uint16(20166), + 141: uint16(33670), + 142: uint16(33889), + 143: uint16(33769), + 144: uint16(33970), + 145: uint16(22484), + 146: uint16(26420), + 147: uint16(22275), + 148: uint16(26222), + 149: uint16(28006), + 150: uint16(35889), + 151: uint16(26333), + 152: uint16(28689), + 153: uint16(26399), + 154: uint16(27450), + 155: uint16(26646), + 156: uint16(25114), + 157: uint16(22971), + 158: uint16(19971), + 159: uint16(20932), + 160: uint16(28422), + 161: uint16(26578), + 162: uint16(27791), + 163: uint16(20854), + 164: uint16(26827), + 165: uint16(22855), + 166: uint16(27495), + 167: uint16(30054), + 168: uint16(23822), + 169: uint16(33040), + 170: uint16(40784), + 171: uint16(26071), + 172: uint16(31048), + 173: uint16(31041), + 174: uint16(39569), + 175: uint16(36215), + 176: uint16(23682), + 177: uint16(20062), + 178: uint16(20225), + 179: uint16(21551), + 180: uint16(22865), + 181: uint16(30732), + 182: uint16(22120), + 183: uint16(27668), + 184: uint16(36804), + 185: uint16(24323), + 186: uint16(27773), + 187: uint16(27875), + 188: uint16(35755), + 189: uint16(25488), + }, + 70: { + 0: uint16(33598), + 1: uint16(33599), + 2: uint16(33601), + 3: uint16(33602), + 4: uint16(33604), + 5: uint16(33605), + 6: uint16(33608), + 7: uint16(33610), + 8: uint16(33611), + 9: uint16(33612), + 10: uint16(33613), + 11: uint16(33614), + 12: uint16(33619), + 13: uint16(33621), + 14: uint16(33622), + 15: uint16(33623), + 16: uint16(33624), + 17: uint16(33625), + 18: uint16(33629), + 19: uint16(33634), + 20: uint16(33648), + 21: uint16(33649), + 22: uint16(33650), + 23: uint16(33651), + 24: uint16(33652), + 25: uint16(33653), + 26: uint16(33654), + 27: uint16(33657), + 28: uint16(33658), + 29: uint16(33662), + 30: uint16(33663), + 31: uint16(33664), + 32: uint16(33665), + 33: uint16(33666), + 34: uint16(33667), + 35: uint16(33668), + 36: uint16(33671), + 37: uint16(33672), + 38: uint16(33674), + 39: uint16(33675), + 40: uint16(33676), + 41: uint16(33677), + 42: uint16(33679), + 43: uint16(33680), + 44: uint16(33681), + 45: uint16(33684), + 46: uint16(33685), + 47: uint16(33686), + 48: uint16(33687), + 49: uint16(33689), + 50: uint16(33690), + 51: uint16(33693), + 52: uint16(33695), + 53: uint16(33697), + 54: uint16(33698), + 55: uint16(33699), + 56: uint16(33700), + 57: uint16(33701), + 58: uint16(33702), + 59: uint16(33703), + 60: uint16(33708), + 61: uint16(33709), + 62: uint16(33710), + 63: uint16(33711), + 64: uint16(33717), + 65: uint16(33723), + 66: uint16(33726), + 67: uint16(33727), + 68: uint16(33730), + 69: uint16(33731), + 70: uint16(33732), + 71: uint16(33734), + 72: uint16(33736), + 73: uint16(33737), + 74: uint16(33739), + 75: uint16(33741), + 76: uint16(33742), + 77: uint16(33744), + 78: uint16(33745), + 79: uint16(33746), + 80: uint16(33747), + 81: uint16(33749), + 82: uint16(33751), + 83: uint16(33753), + 84: uint16(33754), + 85: uint16(33755), + 86: uint16(33758), + 87: uint16(33762), + 88: uint16(33763), + 89: uint16(33764), + 90: uint16(33766), + 91: uint16(33767), + 92: uint16(33768), + 93: uint16(33771), + 94: uint16(33772), + 95: uint16(33773), + 96: uint16(24688), + 97: uint16(27965), + 98: uint16(29301), + 99: uint16(25190), + 100: uint16(38030), + 101: uint16(38085), + 102: uint16(21315), + 103: uint16(36801), + 104: uint16(31614), + 105: uint16(20191), + 106: uint16(35878), + 107: uint16(20094), + 108: uint16(40660), + 109: uint16(38065), + 110: uint16(38067), + 111: uint16(21069), + 112: uint16(28508), + 113: uint16(36963), + 114: uint16(27973), + 115: uint16(35892), + 116: uint16(22545), + 117: uint16(23884), + 118: uint16(27424), + 119: uint16(27465), + 120: uint16(26538), + 121: uint16(21595), + 122: uint16(33108), + 123: uint16(32652), + 124: uint16(22681), + 125: uint16(34103), + 126: uint16(24378), + 127: uint16(25250), + 128: uint16(27207), + 129: uint16(38201), + 130: uint16(25970), + 131: uint16(24708), + 132: uint16(26725), + 133: uint16(30631), + 134: uint16(20052), + 135: uint16(20392), + 136: uint16(24039), + 137: uint16(38808), + 138: uint16(25772), + 139: uint16(32728), + 140: uint16(23789), + 141: uint16(20431), + 142: uint16(31373), + 143: uint16(20999), + 144: uint16(33540), + 145: uint16(19988), + 146: uint16(24623), + 147: uint16(31363), + 148: uint16(38054), + 149: uint16(20405), + 150: uint16(20146), + 151: uint16(31206), + 152: uint16(29748), + 153: uint16(21220), + 154: uint16(33465), + 155: uint16(25810), + 156: uint16(31165), + 157: uint16(23517), + 158: uint16(27777), + 159: uint16(38738), + 160: uint16(36731), + 161: uint16(27682), + 162: uint16(20542), + 163: uint16(21375), + 164: uint16(28165), + 165: uint16(25806), + 166: uint16(26228), + 167: uint16(27696), + 168: uint16(24773), + 169: uint16(39031), + 170: uint16(35831), + 171: uint16(24198), + 172: uint16(29756), + 173: uint16(31351), + 174: uint16(31179), + 175: uint16(19992), + 176: uint16(37041), + 177: uint16(29699), + 178: uint16(27714), + 179: uint16(22234), + 180: uint16(37195), + 181: uint16(27845), + 182: uint16(36235), + 183: uint16(21306), + 184: uint16(34502), + 185: uint16(26354), + 186: uint16(36527), + 187: uint16(23624), + 188: uint16(39537), + 189: uint16(28192), + }, + 71: { + 0: uint16(33774), + 1: uint16(33775), + 2: uint16(33779), + 3: uint16(33780), + 4: uint16(33781), + 5: uint16(33782), + 6: uint16(33783), + 7: uint16(33786), + 8: uint16(33787), + 9: uint16(33788), + 10: uint16(33790), + 11: uint16(33791), + 12: uint16(33792), + 13: uint16(33794), + 14: uint16(33797), + 15: uint16(33799), + 16: uint16(33800), + 17: uint16(33801), + 18: uint16(33802), + 19: uint16(33808), + 20: uint16(33810), + 21: uint16(33811), + 22: uint16(33812), + 23: uint16(33813), + 24: uint16(33814), + 25: uint16(33815), + 26: uint16(33817), + 27: uint16(33818), + 28: uint16(33819), + 29: uint16(33822), + 30: uint16(33823), + 31: uint16(33824), + 32: uint16(33825), + 33: uint16(33826), + 34: uint16(33827), + 35: uint16(33833), + 36: uint16(33834), + 37: uint16(33835), + 38: uint16(33836), + 39: uint16(33837), + 40: uint16(33838), + 41: uint16(33839), + 42: uint16(33840), + 43: uint16(33842), + 44: uint16(33843), + 45: uint16(33844), + 46: uint16(33845), + 47: uint16(33846), + 48: uint16(33847), + 49: uint16(33849), + 50: uint16(33850), + 51: uint16(33851), + 52: uint16(33854), + 53: uint16(33855), + 54: uint16(33856), + 55: uint16(33857), + 56: uint16(33858), + 57: uint16(33859), + 58: uint16(33860), + 59: uint16(33861), + 60: uint16(33863), + 61: uint16(33864), + 62: uint16(33865), + 63: uint16(33866), + 64: uint16(33867), + 65: uint16(33868), + 66: uint16(33869), + 67: uint16(33870), + 68: uint16(33871), + 69: uint16(33872), + 70: uint16(33874), + 71: uint16(33875), + 72: uint16(33876), + 73: uint16(33877), + 74: uint16(33878), + 75: uint16(33880), + 76: uint16(33885), + 77: uint16(33886), + 78: uint16(33887), + 79: uint16(33888), + 80: uint16(33890), + 81: uint16(33892), + 82: uint16(33893), + 83: uint16(33894), + 84: uint16(33895), + 85: uint16(33896), + 86: uint16(33898), + 87: uint16(33902), + 88: uint16(33903), + 89: uint16(33904), + 90: uint16(33906), + 91: uint16(33908), + 92: uint16(33911), + 93: uint16(33913), + 94: uint16(33915), + 95: uint16(33916), + 96: uint16(21462), + 97: uint16(23094), + 98: uint16(40843), + 99: uint16(36259), + 100: uint16(21435), + 101: uint16(22280), + 102: uint16(39079), + 103: uint16(26435), + 104: uint16(37275), + 105: uint16(27849), + 106: uint16(20840), + 107: uint16(30154), + 108: uint16(25331), + 109: uint16(29356), + 110: uint16(21048), + 111: uint16(21149), + 112: uint16(32570), + 113: uint16(28820), + 114: uint16(30264), + 115: uint16(21364), + 116: uint16(40522), + 117: uint16(27063), + 118: uint16(30830), + 119: uint16(38592), + 120: uint16(35033), + 121: uint16(32676), + 122: uint16(28982), + 123: uint16(29123), + 124: uint16(20873), + 125: uint16(26579), + 126: uint16(29924), + 127: uint16(22756), + 128: uint16(25880), + 129: uint16(22199), + 130: uint16(35753), + 131: uint16(39286), + 132: uint16(25200), + 133: uint16(32469), + 134: uint16(24825), + 135: uint16(28909), + 136: uint16(22764), + 137: uint16(20161), + 138: uint16(20154), + 139: uint16(24525), + 140: uint16(38887), + 141: uint16(20219), + 142: uint16(35748), + 143: uint16(20995), + 144: uint16(22922), + 145: uint16(32427), + 146: uint16(25172), + 147: uint16(20173), + 148: uint16(26085), + 149: uint16(25102), + 150: uint16(33592), + 151: uint16(33993), + 152: uint16(33635), + 153: uint16(34701), + 154: uint16(29076), + 155: uint16(28342), + 156: uint16(23481), + 157: uint16(32466), + 158: uint16(20887), + 159: uint16(25545), + 160: uint16(26580), + 161: uint16(32905), + 162: uint16(33593), + 163: uint16(34837), + 164: uint16(20754), + 165: uint16(23418), + 166: uint16(22914), + 167: uint16(36785), + 168: uint16(20083), + 169: uint16(27741), + 170: uint16(20837), + 171: uint16(35109), + 172: uint16(36719), + 173: uint16(38446), + 174: uint16(34122), + 175: uint16(29790), + 176: uint16(38160), + 177: uint16(38384), + 178: uint16(28070), + 179: uint16(33509), + 180: uint16(24369), + 181: uint16(25746), + 182: uint16(27922), + 183: uint16(33832), + 184: uint16(33134), + 185: uint16(40131), + 186: uint16(22622), + 187: uint16(36187), + 188: uint16(19977), + 189: uint16(21441), + }, + 72: { + 0: uint16(33917), + 1: uint16(33918), + 2: uint16(33919), + 3: uint16(33920), + 4: uint16(33921), + 5: uint16(33923), + 6: uint16(33924), + 7: uint16(33925), + 8: uint16(33926), + 9: uint16(33930), + 10: uint16(33933), + 11: uint16(33935), + 12: uint16(33936), + 13: uint16(33937), + 14: uint16(33938), + 15: uint16(33939), + 16: uint16(33940), + 17: uint16(33941), + 18: uint16(33942), + 19: uint16(33944), + 20: uint16(33946), + 21: uint16(33947), + 22: uint16(33949), + 23: uint16(33950), + 24: uint16(33951), + 25: uint16(33952), + 26: uint16(33954), + 27: uint16(33955), + 28: uint16(33956), + 29: uint16(33957), + 30: uint16(33958), + 31: uint16(33959), + 32: uint16(33960), + 33: uint16(33961), + 34: uint16(33962), + 35: uint16(33963), + 36: uint16(33964), + 37: uint16(33965), + 38: uint16(33966), + 39: uint16(33968), + 40: uint16(33969), + 41: uint16(33971), + 42: uint16(33973), + 43: uint16(33974), + 44: uint16(33975), + 45: uint16(33979), + 46: uint16(33980), + 47: uint16(33982), + 48: uint16(33984), + 49: uint16(33986), + 50: uint16(33987), + 51: uint16(33989), + 52: uint16(33990), + 53: uint16(33991), + 54: uint16(33992), + 55: uint16(33995), + 56: uint16(33996), + 57: uint16(33998), + 58: uint16(33999), + 59: uint16(34002), + 60: uint16(34004), + 61: uint16(34005), + 62: uint16(34007), + 63: uint16(34008), + 64: uint16(34009), + 65: uint16(34010), + 66: uint16(34011), + 67: uint16(34012), + 68: uint16(34014), + 69: uint16(34017), + 70: uint16(34018), + 71: uint16(34020), + 72: uint16(34023), + 73: uint16(34024), + 74: uint16(34025), + 75: uint16(34026), + 76: uint16(34027), + 77: uint16(34029), + 78: uint16(34030), + 79: uint16(34031), + 80: uint16(34033), + 81: uint16(34034), + 82: uint16(34035), + 83: uint16(34036), + 84: uint16(34037), + 85: uint16(34038), + 86: uint16(34039), + 87: uint16(34040), + 88: uint16(34041), + 89: uint16(34042), + 90: uint16(34043), + 91: uint16(34045), + 92: uint16(34046), + 93: uint16(34048), + 94: uint16(34049), + 95: uint16(34050), + 96: uint16(20254), + 97: uint16(25955), + 98: uint16(26705), + 99: uint16(21971), + 100: uint16(20007), + 101: uint16(25620), + 102: uint16(39578), + 103: uint16(25195), + 104: uint16(23234), + 105: uint16(29791), + 106: uint16(33394), + 107: uint16(28073), + 108: uint16(26862), + 109: uint16(20711), + 110: uint16(33678), + 111: uint16(30722), + 112: uint16(26432), + 113: uint16(21049), + 114: uint16(27801), + 115: uint16(32433), + 116: uint16(20667), + 117: uint16(21861), + 118: uint16(29022), + 119: uint16(31579), + 120: uint16(26194), + 121: uint16(29642), + 122: uint16(33515), + 123: uint16(26441), + 124: uint16(23665), + 125: uint16(21024), + 126: uint16(29053), + 127: uint16(34923), + 128: uint16(38378), + 129: uint16(38485), + 130: uint16(25797), + 131: uint16(36193), + 132: uint16(33203), + 133: uint16(21892), + 134: uint16(27733), + 135: uint16(25159), + 136: uint16(32558), + 137: uint16(22674), + 138: uint16(20260), + 139: uint16(21830), + 140: uint16(36175), + 141: uint16(26188), + 142: uint16(19978), + 143: uint16(23578), + 144: uint16(35059), + 145: uint16(26786), + 146: uint16(25422), + 147: uint16(31245), + 148: uint16(28903), + 149: uint16(33421), + 150: uint16(21242), + 151: uint16(38902), + 152: uint16(23569), + 153: uint16(21736), + 154: uint16(37045), + 155: uint16(32461), + 156: uint16(22882), + 157: uint16(36170), + 158: uint16(34503), + 159: uint16(33292), + 160: uint16(33293), + 161: uint16(36198), + 162: uint16(25668), + 163: uint16(23556), + 164: uint16(24913), + 165: uint16(28041), + 166: uint16(31038), + 167: uint16(35774), + 168: uint16(30775), + 169: uint16(30003), + 170: uint16(21627), + 171: uint16(20280), + 172: uint16(36523), + 173: uint16(28145), + 174: uint16(23072), + 175: uint16(32453), + 176: uint16(31070), + 177: uint16(27784), + 178: uint16(23457), + 179: uint16(23158), + 180: uint16(29978), + 181: uint16(32958), + 182: uint16(24910), + 183: uint16(28183), + 184: uint16(22768), + 185: uint16(29983), + 186: uint16(29989), + 187: uint16(29298), + 188: uint16(21319), + 189: uint16(32499), + }, + 73: { + 0: uint16(34051), + 1: uint16(34052), + 2: uint16(34053), + 3: uint16(34054), + 4: uint16(34055), + 5: uint16(34056), + 6: uint16(34057), + 7: uint16(34058), + 8: uint16(34059), + 9: uint16(34061), + 10: uint16(34062), + 11: uint16(34063), + 12: uint16(34064), + 13: uint16(34066), + 14: uint16(34068), + 15: uint16(34069), + 16: uint16(34070), + 17: uint16(34072), + 18: uint16(34073), + 19: uint16(34075), + 20: uint16(34076), + 21: uint16(34077), + 22: uint16(34078), + 23: uint16(34080), + 24: uint16(34082), + 25: uint16(34083), + 26: uint16(34084), + 27: uint16(34085), + 28: uint16(34086), + 29: uint16(34087), + 30: uint16(34088), + 31: uint16(34089), + 32: uint16(34090), + 33: uint16(34093), + 34: uint16(34094), + 35: uint16(34095), + 36: uint16(34096), + 37: uint16(34097), + 38: uint16(34098), + 39: uint16(34099), + 40: uint16(34100), + 41: uint16(34101), + 42: uint16(34102), + 43: uint16(34110), + 44: uint16(34111), + 45: uint16(34112), + 46: uint16(34113), + 47: uint16(34114), + 48: uint16(34116), + 49: uint16(34117), + 50: uint16(34118), + 51: uint16(34119), + 52: uint16(34123), + 53: uint16(34124), + 54: uint16(34125), + 55: uint16(34126), + 56: uint16(34127), + 57: uint16(34128), + 58: uint16(34129), + 59: uint16(34130), + 60: uint16(34131), + 61: uint16(34132), + 62: uint16(34133), + 63: uint16(34135), + 64: uint16(34136), + 65: uint16(34138), + 66: uint16(34139), + 67: uint16(34140), + 68: uint16(34141), + 69: uint16(34143), + 70: uint16(34144), + 71: uint16(34145), + 72: uint16(34146), + 73: uint16(34147), + 74: uint16(34149), + 75: uint16(34150), + 76: uint16(34151), + 77: uint16(34153), + 78: uint16(34154), + 79: uint16(34155), + 80: uint16(34156), + 81: uint16(34157), + 82: uint16(34158), + 83: uint16(34159), + 84: uint16(34160), + 85: uint16(34161), + 86: uint16(34163), + 87: uint16(34165), + 88: uint16(34166), + 89: uint16(34167), + 90: uint16(34168), + 91: uint16(34172), + 92: uint16(34173), + 93: uint16(34175), + 94: uint16(34176), + 95: uint16(34177), + 96: uint16(30465), + 97: uint16(30427), + 98: uint16(21097), + 99: uint16(32988), + 100: uint16(22307), + 101: uint16(24072), + 102: uint16(22833), + 103: uint16(29422), + 104: uint16(26045), + 105: uint16(28287), + 106: uint16(35799), + 107: uint16(23608), + 108: uint16(34417), + 109: uint16(21313), + 110: uint16(30707), + 111: uint16(25342), + 112: uint16(26102), + 113: uint16(20160), + 114: uint16(39135), + 115: uint16(34432), + 116: uint16(23454), + 117: uint16(35782), + 118: uint16(21490), + 119: uint16(30690), + 120: uint16(20351), + 121: uint16(23630), + 122: uint16(39542), + 123: uint16(22987), + 124: uint16(24335), + 125: uint16(31034), + 126: uint16(22763), + 127: uint16(19990), + 128: uint16(26623), + 129: uint16(20107), + 130: uint16(25325), + 131: uint16(35475), + 132: uint16(36893), + 133: uint16(21183), + 134: uint16(26159), + 135: uint16(21980), + 136: uint16(22124), + 137: uint16(36866), + 138: uint16(20181), + 139: uint16(20365), + 140: uint16(37322), + 141: uint16(39280), + 142: uint16(27663), + 143: uint16(24066), + 144: uint16(24643), + 145: uint16(23460), + 146: uint16(35270), + 147: uint16(35797), + 148: uint16(25910), + 149: uint16(25163), + 150: uint16(39318), + 151: uint16(23432), + 152: uint16(23551), + 153: uint16(25480), + 154: uint16(21806), + 155: uint16(21463), + 156: uint16(30246), + 157: uint16(20861), + 158: uint16(34092), + 159: uint16(26530), + 160: uint16(26803), + 161: uint16(27530), + 162: uint16(25234), + 163: uint16(36755), + 164: uint16(21460), + 165: uint16(33298), + 166: uint16(28113), + 167: uint16(30095), + 168: uint16(20070), + 169: uint16(36174), + 170: uint16(23408), + 171: uint16(29087), + 172: uint16(34223), + 173: uint16(26257), + 174: uint16(26329), + 175: uint16(32626), + 176: uint16(34560), + 177: uint16(40653), + 178: uint16(40736), + 179: uint16(23646), + 180: uint16(26415), + 181: uint16(36848), + 182: uint16(26641), + 183: uint16(26463), + 184: uint16(25101), + 185: uint16(31446), + 186: uint16(22661), + 187: uint16(24246), + 188: uint16(25968), + 189: uint16(28465), + }, + 74: { + 0: uint16(34178), + 1: uint16(34179), + 2: uint16(34182), + 3: uint16(34184), + 4: uint16(34185), + 5: uint16(34186), + 6: uint16(34187), + 7: uint16(34188), + 8: uint16(34189), + 9: uint16(34190), + 10: uint16(34192), + 11: uint16(34193), + 12: uint16(34194), + 13: uint16(34195), + 14: uint16(34196), + 15: uint16(34197), + 16: uint16(34198), + 17: uint16(34199), + 18: uint16(34200), + 19: uint16(34201), + 20: uint16(34202), + 21: uint16(34205), + 22: uint16(34206), + 23: uint16(34207), + 24: uint16(34208), + 25: uint16(34209), + 26: uint16(34210), + 27: uint16(34211), + 28: uint16(34213), + 29: uint16(34214), + 30: uint16(34215), + 31: uint16(34217), + 32: uint16(34219), + 33: uint16(34220), + 34: uint16(34221), + 35: uint16(34225), + 36: uint16(34226), + 37: uint16(34227), + 38: uint16(34228), + 39: uint16(34229), + 40: uint16(34230), + 41: uint16(34232), + 42: uint16(34234), + 43: uint16(34235), + 44: uint16(34236), + 45: uint16(34237), + 46: uint16(34238), + 47: uint16(34239), + 48: uint16(34240), + 49: uint16(34242), + 50: uint16(34243), + 51: uint16(34244), + 52: uint16(34245), + 53: uint16(34246), + 54: uint16(34247), + 55: uint16(34248), + 56: uint16(34250), + 57: uint16(34251), + 58: uint16(34252), + 59: uint16(34253), + 60: uint16(34254), + 61: uint16(34257), + 62: uint16(34258), + 63: uint16(34260), + 64: uint16(34262), + 65: uint16(34263), + 66: uint16(34264), + 67: uint16(34265), + 68: uint16(34266), + 69: uint16(34267), + 70: uint16(34269), + 71: uint16(34270), + 72: uint16(34271), + 73: uint16(34272), + 74: uint16(34273), + 75: uint16(34274), + 76: uint16(34275), + 77: uint16(34277), + 78: uint16(34278), + 79: uint16(34279), + 80: uint16(34280), + 81: uint16(34282), + 82: uint16(34283), + 83: uint16(34284), + 84: uint16(34285), + 85: uint16(34286), + 86: uint16(34287), + 87: uint16(34288), + 88: uint16(34289), + 89: uint16(34290), + 90: uint16(34291), + 91: uint16(34292), + 92: uint16(34293), + 93: uint16(34294), + 94: uint16(34295), + 95: uint16(34296), + 96: uint16(24661), + 97: uint16(21047), + 98: uint16(32781), + 99: uint16(25684), + 100: uint16(34928), + 101: uint16(29993), + 102: uint16(24069), + 103: uint16(26643), + 104: uint16(25332), + 105: uint16(38684), + 106: uint16(21452), + 107: uint16(29245), + 108: uint16(35841), + 109: uint16(27700), + 110: uint16(30561), + 111: uint16(31246), + 112: uint16(21550), + 113: uint16(30636), + 114: uint16(39034), + 115: uint16(33308), + 116: uint16(35828), + 117: uint16(30805), + 118: uint16(26388), + 119: uint16(28865), + 120: uint16(26031), + 121: uint16(25749), + 122: uint16(22070), + 123: uint16(24605), + 124: uint16(31169), + 125: uint16(21496), + 126: uint16(19997), + 127: uint16(27515), + 128: uint16(32902), + 129: uint16(23546), + 130: uint16(21987), + 131: uint16(22235), + 132: uint16(20282), + 133: uint16(20284), + 134: uint16(39282), + 135: uint16(24051), + 136: uint16(26494), + 137: uint16(32824), + 138: uint16(24578), + 139: uint16(39042), + 140: uint16(36865), + 141: uint16(23435), + 142: uint16(35772), + 143: uint16(35829), + 144: uint16(25628), + 145: uint16(33368), + 146: uint16(25822), + 147: uint16(22013), + 148: uint16(33487), + 149: uint16(37221), + 150: uint16(20439), + 151: uint16(32032), + 152: uint16(36895), + 153: uint16(31903), + 154: uint16(20723), + 155: uint16(22609), + 156: uint16(28335), + 157: uint16(23487), + 158: uint16(35785), + 159: uint16(32899), + 160: uint16(37240), + 161: uint16(33948), + 162: uint16(31639), + 163: uint16(34429), + 164: uint16(38539), + 165: uint16(38543), + 166: uint16(32485), + 167: uint16(39635), + 168: uint16(30862), + 169: uint16(23681), + 170: uint16(31319), + 171: uint16(36930), + 172: uint16(38567), + 173: uint16(31071), + 174: uint16(23385), + 175: uint16(25439), + 176: uint16(31499), + 177: uint16(34001), + 178: uint16(26797), + 179: uint16(21766), + 180: uint16(32553), + 181: uint16(29712), + 182: uint16(32034), + 183: uint16(38145), + 184: uint16(25152), + 185: uint16(22604), + 186: uint16(20182), + 187: uint16(23427), + 188: uint16(22905), + 189: uint16(22612), + }, + 75: { + 0: uint16(34297), + 1: uint16(34298), + 2: uint16(34300), + 3: uint16(34301), + 4: uint16(34302), + 5: uint16(34304), + 6: uint16(34305), + 7: uint16(34306), + 8: uint16(34307), + 9: uint16(34308), + 10: uint16(34310), + 11: uint16(34311), + 12: uint16(34312), + 13: uint16(34313), + 14: uint16(34314), + 15: uint16(34315), + 16: uint16(34316), + 17: uint16(34317), + 18: uint16(34318), + 19: uint16(34319), + 20: uint16(34320), + 21: uint16(34322), + 22: uint16(34323), + 23: uint16(34324), + 24: uint16(34325), + 25: uint16(34327), + 26: uint16(34328), + 27: uint16(34329), + 28: uint16(34330), + 29: uint16(34331), + 30: uint16(34332), + 31: uint16(34333), + 32: uint16(34334), + 33: uint16(34335), + 34: uint16(34336), + 35: uint16(34337), + 36: uint16(34338), + 37: uint16(34339), + 38: uint16(34340), + 39: uint16(34341), + 40: uint16(34342), + 41: uint16(34344), + 42: uint16(34346), + 43: uint16(34347), + 44: uint16(34348), + 45: uint16(34349), + 46: uint16(34350), + 47: uint16(34351), + 48: uint16(34352), + 49: uint16(34353), + 50: uint16(34354), + 51: uint16(34355), + 52: uint16(34356), + 53: uint16(34357), + 54: uint16(34358), + 55: uint16(34359), + 56: uint16(34361), + 57: uint16(34362), + 58: uint16(34363), + 59: uint16(34365), + 60: uint16(34366), + 61: uint16(34367), + 62: uint16(34368), + 63: uint16(34369), + 64: uint16(34370), + 65: uint16(34371), + 66: uint16(34372), + 67: uint16(34373), + 68: uint16(34374), + 69: uint16(34375), + 70: uint16(34376), + 71: uint16(34377), + 72: uint16(34378), + 73: uint16(34379), + 74: uint16(34380), + 75: uint16(34386), + 76: uint16(34387), + 77: uint16(34389), + 78: uint16(34390), + 79: uint16(34391), + 80: uint16(34392), + 81: uint16(34393), + 82: uint16(34395), + 83: uint16(34396), + 84: uint16(34397), + 85: uint16(34399), + 86: uint16(34400), + 87: uint16(34401), + 88: uint16(34403), + 89: uint16(34404), + 90: uint16(34405), + 91: uint16(34406), + 92: uint16(34407), + 93: uint16(34408), + 94: uint16(34409), + 95: uint16(34410), + 96: uint16(29549), + 97: uint16(25374), + 98: uint16(36427), + 99: uint16(36367), + 100: uint16(32974), + 101: uint16(33492), + 102: uint16(25260), + 103: uint16(21488), + 104: uint16(27888), + 105: uint16(37214), + 106: uint16(22826), + 107: uint16(24577), + 108: uint16(27760), + 109: uint16(22349), + 110: uint16(25674), + 111: uint16(36138), + 112: uint16(30251), + 113: uint16(28393), + 114: uint16(22363), + 115: uint16(27264), + 116: uint16(30192), + 117: uint16(28525), + 118: uint16(35885), + 119: uint16(35848), + 120: uint16(22374), + 121: uint16(27631), + 122: uint16(34962), + 123: uint16(30899), + 124: uint16(25506), + 125: uint16(21497), + 126: uint16(28845), + 127: uint16(27748), + 128: uint16(22616), + 129: uint16(25642), + 130: uint16(22530), + 131: uint16(26848), + 132: uint16(33179), + 133: uint16(21776), + 134: uint16(31958), + 135: uint16(20504), + 136: uint16(36538), + 137: uint16(28108), + 138: uint16(36255), + 139: uint16(28907), + 140: uint16(25487), + 141: uint16(28059), + 142: uint16(28372), + 143: uint16(32486), + 144: uint16(33796), + 145: uint16(26691), + 146: uint16(36867), + 147: uint16(28120), + 148: uint16(38518), + 149: uint16(35752), + 150: uint16(22871), + 151: uint16(29305), + 152: uint16(34276), + 153: uint16(33150), + 154: uint16(30140), + 155: uint16(35466), + 156: uint16(26799), + 157: uint16(21076), + 158: uint16(36386), + 159: uint16(38161), + 160: uint16(25552), + 161: uint16(39064), + 162: uint16(36420), + 163: uint16(21884), + 164: uint16(20307), + 165: uint16(26367), + 166: uint16(22159), + 167: uint16(24789), + 168: uint16(28053), + 169: uint16(21059), + 170: uint16(23625), + 171: uint16(22825), + 172: uint16(28155), + 173: uint16(22635), + 174: uint16(30000), + 175: uint16(29980), + 176: uint16(24684), + 177: uint16(33300), + 178: uint16(33094), + 179: uint16(25361), + 180: uint16(26465), + 181: uint16(36834), + 182: uint16(30522), + 183: uint16(36339), + 184: uint16(36148), + 185: uint16(38081), + 186: uint16(24086), + 187: uint16(21381), + 188: uint16(21548), + 189: uint16(28867), + }, + 76: { + 0: uint16(34413), + 1: uint16(34415), + 2: uint16(34416), + 3: uint16(34418), + 4: uint16(34419), + 5: uint16(34420), + 6: uint16(34421), + 7: uint16(34422), + 8: uint16(34423), + 9: uint16(34424), + 10: uint16(34435), + 11: uint16(34436), + 12: uint16(34437), + 13: uint16(34438), + 14: uint16(34439), + 15: uint16(34440), + 16: uint16(34441), + 17: uint16(34446), + 18: uint16(34447), + 19: uint16(34448), + 20: uint16(34449), + 21: uint16(34450), + 22: uint16(34452), + 23: uint16(34454), + 24: uint16(34455), + 25: uint16(34456), + 26: uint16(34457), + 27: uint16(34458), + 28: uint16(34459), + 29: uint16(34462), + 30: uint16(34463), + 31: uint16(34464), + 32: uint16(34465), + 33: uint16(34466), + 34: uint16(34469), + 35: uint16(34470), + 36: uint16(34475), + 37: uint16(34477), + 38: uint16(34478), + 39: uint16(34482), + 40: uint16(34483), + 41: uint16(34487), + 42: uint16(34488), + 43: uint16(34489), + 44: uint16(34491), + 45: uint16(34492), + 46: uint16(34493), + 47: uint16(34494), + 48: uint16(34495), + 49: uint16(34497), + 50: uint16(34498), + 51: uint16(34499), + 52: uint16(34501), + 53: uint16(34504), + 54: uint16(34508), + 55: uint16(34509), + 56: uint16(34514), + 57: uint16(34515), + 58: uint16(34517), + 59: uint16(34518), + 60: uint16(34519), + 61: uint16(34522), + 62: uint16(34524), + 63: uint16(34525), + 64: uint16(34528), + 65: uint16(34529), + 66: uint16(34530), + 67: uint16(34531), + 68: uint16(34533), + 69: uint16(34534), + 70: uint16(34535), + 71: uint16(34536), + 72: uint16(34538), + 73: uint16(34539), + 74: uint16(34540), + 75: uint16(34543), + 76: uint16(34549), + 77: uint16(34550), + 78: uint16(34551), + 79: uint16(34554), + 80: uint16(34555), + 81: uint16(34556), + 82: uint16(34557), + 83: uint16(34559), + 84: uint16(34561), + 85: uint16(34564), + 86: uint16(34565), + 87: uint16(34566), + 88: uint16(34571), + 89: uint16(34572), + 90: uint16(34574), + 91: uint16(34575), + 92: uint16(34576), + 93: uint16(34577), + 94: uint16(34580), + 95: uint16(34582), + 96: uint16(27712), + 97: uint16(24311), + 98: uint16(20572), + 99: uint16(20141), + 100: uint16(24237), + 101: uint16(25402), + 102: uint16(33351), + 103: uint16(36890), + 104: uint16(26704), + 105: uint16(37230), + 106: uint16(30643), + 107: uint16(21516), + 108: uint16(38108), + 109: uint16(24420), + 110: uint16(31461), + 111: uint16(26742), + 112: uint16(25413), + 113: uint16(31570), + 114: uint16(32479), + 115: uint16(30171), + 116: uint16(20599), + 117: uint16(25237), + 118: uint16(22836), + 119: uint16(36879), + 120: uint16(20984), + 121: uint16(31171), + 122: uint16(31361), + 123: uint16(22270), + 124: uint16(24466), + 125: uint16(36884), + 126: uint16(28034), + 127: uint16(23648), + 128: uint16(22303), + 129: uint16(21520), + 130: uint16(20820), + 131: uint16(28237), + 132: uint16(22242), + 133: uint16(25512), + 134: uint16(39059), + 135: uint16(33151), + 136: uint16(34581), + 137: uint16(35114), + 138: uint16(36864), + 139: uint16(21534), + 140: uint16(23663), + 141: uint16(33216), + 142: uint16(25302), + 143: uint16(25176), + 144: uint16(33073), + 145: uint16(40501), + 146: uint16(38464), + 147: uint16(39534), + 148: uint16(39548), + 149: uint16(26925), + 150: uint16(22949), + 151: uint16(25299), + 152: uint16(21822), + 153: uint16(25366), + 154: uint16(21703), + 155: uint16(34521), + 156: uint16(27964), + 157: uint16(23043), + 158: uint16(29926), + 159: uint16(34972), + 160: uint16(27498), + 161: uint16(22806), + 162: uint16(35916), + 163: uint16(24367), + 164: uint16(28286), + 165: uint16(29609), + 166: uint16(39037), + 167: uint16(20024), + 168: uint16(28919), + 169: uint16(23436), + 170: uint16(30871), + 171: uint16(25405), + 172: uint16(26202), + 173: uint16(30358), + 174: uint16(24779), + 175: uint16(23451), + 176: uint16(23113), + 177: uint16(19975), + 178: uint16(33109), + 179: uint16(27754), + 180: uint16(29579), + 181: uint16(20129), + 182: uint16(26505), + 183: uint16(32593), + 184: uint16(24448), + 185: uint16(26106), + 186: uint16(26395), + 187: uint16(24536), + 188: uint16(22916), + 189: uint16(23041), + }, + 77: { + 0: uint16(34585), + 1: uint16(34587), + 2: uint16(34589), + 3: uint16(34591), + 4: uint16(34592), + 5: uint16(34596), + 6: uint16(34598), + 7: uint16(34599), + 8: uint16(34600), + 9: uint16(34602), + 10: uint16(34603), + 11: uint16(34604), + 12: uint16(34605), + 13: uint16(34607), + 14: uint16(34608), + 15: uint16(34610), + 16: uint16(34611), + 17: uint16(34613), + 18: uint16(34614), + 19: uint16(34616), + 20: uint16(34617), + 21: uint16(34618), + 22: uint16(34620), + 23: uint16(34621), + 24: uint16(34624), + 25: uint16(34625), + 26: uint16(34626), + 27: uint16(34627), + 28: uint16(34628), + 29: uint16(34629), + 30: uint16(34630), + 31: uint16(34634), + 32: uint16(34635), + 33: uint16(34637), + 34: uint16(34639), + 35: uint16(34640), + 36: uint16(34641), + 37: uint16(34642), + 38: uint16(34644), + 39: uint16(34645), + 40: uint16(34646), + 41: uint16(34648), + 42: uint16(34650), + 43: uint16(34651), + 44: uint16(34652), + 45: uint16(34653), + 46: uint16(34654), + 47: uint16(34655), + 48: uint16(34657), + 49: uint16(34658), + 50: uint16(34662), + 51: uint16(34663), + 52: uint16(34664), + 53: uint16(34665), + 54: uint16(34666), + 55: uint16(34667), + 56: uint16(34668), + 57: uint16(34669), + 58: uint16(34671), + 59: uint16(34673), + 60: uint16(34674), + 61: uint16(34675), + 62: uint16(34677), + 63: uint16(34679), + 64: uint16(34680), + 65: uint16(34681), + 66: uint16(34682), + 67: uint16(34687), + 68: uint16(34688), + 69: uint16(34689), + 70: uint16(34692), + 71: uint16(34694), + 72: uint16(34695), + 73: uint16(34697), + 74: uint16(34698), + 75: uint16(34700), + 76: uint16(34702), + 77: uint16(34703), + 78: uint16(34704), + 79: uint16(34705), + 80: uint16(34706), + 81: uint16(34708), + 82: uint16(34709), + 83: uint16(34710), + 84: uint16(34712), + 85: uint16(34713), + 86: uint16(34714), + 87: uint16(34715), + 88: uint16(34716), + 89: uint16(34717), + 90: uint16(34718), + 91: uint16(34720), + 92: uint16(34721), + 93: uint16(34722), + 94: uint16(34723), + 95: uint16(34724), + 96: uint16(24013), + 97: uint16(24494), + 98: uint16(21361), + 99: uint16(38886), + 100: uint16(36829), + 101: uint16(26693), + 102: uint16(22260), + 103: uint16(21807), + 104: uint16(24799), + 105: uint16(20026), + 106: uint16(28493), + 107: uint16(32500), + 108: uint16(33479), + 109: uint16(33806), + 110: uint16(22996), + 111: uint16(20255), + 112: uint16(20266), + 113: uint16(23614), + 114: uint16(32428), + 115: uint16(26410), + 116: uint16(34074), + 117: uint16(21619), + 118: uint16(30031), + 119: uint16(32963), + 120: uint16(21890), + 121: uint16(39759), + 122: uint16(20301), + 123: uint16(28205), + 124: uint16(35859), + 125: uint16(23561), + 126: uint16(24944), + 127: uint16(21355), + 128: uint16(30239), + 129: uint16(28201), + 130: uint16(34442), + 131: uint16(25991), + 132: uint16(38395), + 133: uint16(32441), + 134: uint16(21563), + 135: uint16(31283), + 136: uint16(32010), + 137: uint16(38382), + 138: uint16(21985), + 139: uint16(32705), + 140: uint16(29934), + 141: uint16(25373), + 142: uint16(34583), + 143: uint16(28065), + 144: uint16(31389), + 145: uint16(25105), + 146: uint16(26017), + 147: uint16(21351), + 148: uint16(25569), + 149: uint16(27779), + 150: uint16(24043), + 151: uint16(21596), + 152: uint16(38056), + 153: uint16(20044), + 154: uint16(27745), + 155: uint16(35820), + 156: uint16(23627), + 157: uint16(26080), + 158: uint16(33436), + 159: uint16(26791), + 160: uint16(21566), + 161: uint16(21556), + 162: uint16(27595), + 163: uint16(27494), + 164: uint16(20116), + 165: uint16(25410), + 166: uint16(21320), + 167: uint16(33310), + 168: uint16(20237), + 169: uint16(20398), + 170: uint16(22366), + 171: uint16(25098), + 172: uint16(38654), + 173: uint16(26212), + 174: uint16(29289), + 175: uint16(21247), + 176: uint16(21153), + 177: uint16(24735), + 178: uint16(35823), + 179: uint16(26132), + 180: uint16(29081), + 181: uint16(26512), + 182: uint16(35199), + 183: uint16(30802), + 184: uint16(30717), + 185: uint16(26224), + 186: uint16(22075), + 187: uint16(21560), + 188: uint16(38177), + 189: uint16(29306), + }, + 78: { + 0: uint16(34725), + 1: uint16(34726), + 2: uint16(34727), + 3: uint16(34729), + 4: uint16(34730), + 5: uint16(34734), + 6: uint16(34736), + 7: uint16(34737), + 8: uint16(34738), + 9: uint16(34740), + 10: uint16(34742), + 11: uint16(34743), + 12: uint16(34744), + 13: uint16(34745), + 14: uint16(34747), + 15: uint16(34748), + 16: uint16(34750), + 17: uint16(34751), + 18: uint16(34753), + 19: uint16(34754), + 20: uint16(34755), + 21: uint16(34756), + 22: uint16(34757), + 23: uint16(34759), + 24: uint16(34760), + 25: uint16(34761), + 26: uint16(34764), + 27: uint16(34765), + 28: uint16(34766), + 29: uint16(34767), + 30: uint16(34768), + 31: uint16(34772), + 32: uint16(34773), + 33: uint16(34774), + 34: uint16(34775), + 35: uint16(34776), + 36: uint16(34777), + 37: uint16(34778), + 38: uint16(34780), + 39: uint16(34781), + 40: uint16(34782), + 41: uint16(34783), + 42: uint16(34785), + 43: uint16(34786), + 44: uint16(34787), + 45: uint16(34788), + 46: uint16(34790), + 47: uint16(34791), + 48: uint16(34792), + 49: uint16(34793), + 50: uint16(34795), + 51: uint16(34796), + 52: uint16(34797), + 53: uint16(34799), + 54: uint16(34800), + 55: uint16(34801), + 56: uint16(34802), + 57: uint16(34803), + 58: uint16(34804), + 59: uint16(34805), + 60: uint16(34806), + 61: uint16(34807), + 62: uint16(34808), + 63: uint16(34810), + 64: uint16(34811), + 65: uint16(34812), + 66: uint16(34813), + 67: uint16(34815), + 68: uint16(34816), + 69: uint16(34817), + 70: uint16(34818), + 71: uint16(34820), + 72: uint16(34821), + 73: uint16(34822), + 74: uint16(34823), + 75: uint16(34824), + 76: uint16(34825), + 77: uint16(34827), + 78: uint16(34828), + 79: uint16(34829), + 80: uint16(34830), + 81: uint16(34831), + 82: uint16(34832), + 83: uint16(34833), + 84: uint16(34834), + 85: uint16(34836), + 86: uint16(34839), + 87: uint16(34840), + 88: uint16(34841), + 89: uint16(34842), + 90: uint16(34844), + 91: uint16(34845), + 92: uint16(34846), + 93: uint16(34847), + 94: uint16(34848), + 95: uint16(34851), + 96: uint16(31232), + 97: uint16(24687), + 98: uint16(24076), + 99: uint16(24713), + 100: uint16(33181), + 101: uint16(22805), + 102: uint16(24796), + 103: uint16(29060), + 104: uint16(28911), + 105: uint16(28330), + 106: uint16(27728), + 107: uint16(29312), + 108: uint16(27268), + 109: uint16(34989), + 110: uint16(24109), + 111: uint16(20064), + 112: uint16(23219), + 113: uint16(21916), + 114: uint16(38115), + 115: uint16(27927), + 116: uint16(31995), + 117: uint16(38553), + 118: uint16(25103), + 119: uint16(32454), + 120: uint16(30606), + 121: uint16(34430), + 122: uint16(21283), + 123: uint16(38686), + 124: uint16(36758), + 125: uint16(26247), + 126: uint16(23777), + 127: uint16(20384), + 128: uint16(29421), + 129: uint16(19979), + 130: uint16(21414), + 131: uint16(22799), + 132: uint16(21523), + 133: uint16(25472), + 134: uint16(38184), + 135: uint16(20808), + 136: uint16(20185), + 137: uint16(40092), + 138: uint16(32420), + 139: uint16(21688), + 140: uint16(36132), + 141: uint16(34900), + 142: uint16(33335), + 143: uint16(38386), + 144: uint16(28046), + 145: uint16(24358), + 146: uint16(23244), + 147: uint16(26174), + 148: uint16(38505), + 149: uint16(29616), + 150: uint16(29486), + 151: uint16(21439), + 152: uint16(33146), + 153: uint16(39301), + 154: uint16(32673), + 155: uint16(23466), + 156: uint16(38519), + 157: uint16(38480), + 158: uint16(32447), + 159: uint16(30456), + 160: uint16(21410), + 161: uint16(38262), + 162: uint16(39321), + 163: uint16(31665), + 164: uint16(35140), + 165: uint16(28248), + 166: uint16(20065), + 167: uint16(32724), + 168: uint16(31077), + 169: uint16(35814), + 170: uint16(24819), + 171: uint16(21709), + 172: uint16(20139), + 173: uint16(39033), + 174: uint16(24055), + 175: uint16(27233), + 176: uint16(20687), + 177: uint16(21521), + 178: uint16(35937), + 179: uint16(33831), + 180: uint16(30813), + 181: uint16(38660), + 182: uint16(21066), + 183: uint16(21742), + 184: uint16(22179), + 185: uint16(38144), + 186: uint16(28040), + 187: uint16(23477), + 188: uint16(28102), + 189: uint16(26195), + }, + 79: { + 0: uint16(34852), + 1: uint16(34853), + 2: uint16(34854), + 3: uint16(34855), + 4: uint16(34856), + 5: uint16(34857), + 6: uint16(34858), + 7: uint16(34859), + 8: uint16(34860), + 9: uint16(34861), + 10: uint16(34862), + 11: uint16(34863), + 12: uint16(34864), + 13: uint16(34865), + 14: uint16(34867), + 15: uint16(34868), + 16: uint16(34869), + 17: uint16(34870), + 18: uint16(34871), + 19: uint16(34872), + 20: uint16(34874), + 21: uint16(34875), + 22: uint16(34877), + 23: uint16(34878), + 24: uint16(34879), + 25: uint16(34881), + 26: uint16(34882), + 27: uint16(34883), + 28: uint16(34886), + 29: uint16(34887), + 30: uint16(34888), + 31: uint16(34889), + 32: uint16(34890), + 33: uint16(34891), + 34: uint16(34894), + 35: uint16(34895), + 36: uint16(34896), + 37: uint16(34897), + 38: uint16(34898), + 39: uint16(34899), + 40: uint16(34901), + 41: uint16(34902), + 42: uint16(34904), + 43: uint16(34906), + 44: uint16(34907), + 45: uint16(34908), + 46: uint16(34909), + 47: uint16(34910), + 48: uint16(34911), + 49: uint16(34912), + 50: uint16(34918), + 51: uint16(34919), + 52: uint16(34922), + 53: uint16(34925), + 54: uint16(34927), + 55: uint16(34929), + 56: uint16(34931), + 57: uint16(34932), + 58: uint16(34933), + 59: uint16(34934), + 60: uint16(34936), + 61: uint16(34937), + 62: uint16(34938), + 63: uint16(34939), + 64: uint16(34940), + 65: uint16(34944), + 66: uint16(34947), + 67: uint16(34950), + 68: uint16(34951), + 69: uint16(34953), + 70: uint16(34954), + 71: uint16(34956), + 72: uint16(34958), + 73: uint16(34959), + 74: uint16(34960), + 75: uint16(34961), + 76: uint16(34963), + 77: uint16(34964), + 78: uint16(34965), + 79: uint16(34967), + 80: uint16(34968), + 81: uint16(34969), + 82: uint16(34970), + 83: uint16(34971), + 84: uint16(34973), + 85: uint16(34974), + 86: uint16(34975), + 87: uint16(34976), + 88: uint16(34977), + 89: uint16(34979), + 90: uint16(34981), + 91: uint16(34982), + 92: uint16(34983), + 93: uint16(34984), + 94: uint16(34985), + 95: uint16(34986), + 96: uint16(23567), + 97: uint16(23389), + 98: uint16(26657), + 99: uint16(32918), + 100: uint16(21880), + 101: uint16(31505), + 102: uint16(25928), + 103: uint16(26964), + 104: uint16(20123), + 105: uint16(27463), + 106: uint16(34638), + 107: uint16(38795), + 108: uint16(21327), + 109: uint16(25375), + 110: uint16(25658), + 111: uint16(37034), + 112: uint16(26012), + 113: uint16(32961), + 114: uint16(35856), + 115: uint16(20889), + 116: uint16(26800), + 117: uint16(21368), + 118: uint16(34809), + 119: uint16(25032), + 120: uint16(27844), + 121: uint16(27899), + 122: uint16(35874), + 123: uint16(23633), + 124: uint16(34218), + 125: uint16(33455), + 126: uint16(38156), + 127: uint16(27427), + 128: uint16(36763), + 129: uint16(26032), + 130: uint16(24571), + 131: uint16(24515), + 132: uint16(20449), + 133: uint16(34885), + 134: uint16(26143), + 135: uint16(33125), + 136: uint16(29481), + 137: uint16(24826), + 138: uint16(20852), + 139: uint16(21009), + 140: uint16(22411), + 141: uint16(24418), + 142: uint16(37026), + 143: uint16(34892), + 144: uint16(37266), + 145: uint16(24184), + 146: uint16(26447), + 147: uint16(24615), + 148: uint16(22995), + 149: uint16(20804), + 150: uint16(20982), + 151: uint16(33016), + 152: uint16(21256), + 153: uint16(27769), + 154: uint16(38596), + 155: uint16(29066), + 156: uint16(20241), + 157: uint16(20462), + 158: uint16(32670), + 159: uint16(26429), + 160: uint16(21957), + 161: uint16(38152), + 162: uint16(31168), + 163: uint16(34966), + 164: uint16(32483), + 165: uint16(22687), + 166: uint16(25100), + 167: uint16(38656), + 168: uint16(34394), + 169: uint16(22040), + 170: uint16(39035), + 171: uint16(24464), + 172: uint16(35768), + 173: uint16(33988), + 174: uint16(37207), + 175: uint16(21465), + 176: uint16(26093), + 177: uint16(24207), + 178: uint16(30044), + 179: uint16(24676), + 180: uint16(32110), + 181: uint16(23167), + 182: uint16(32490), + 183: uint16(32493), + 184: uint16(36713), + 185: uint16(21927), + 186: uint16(23459), + 187: uint16(24748), + 188: uint16(26059), + 189: uint16(29572), + }, + 80: { + 0: uint16(34988), + 1: uint16(34990), + 2: uint16(34991), + 3: uint16(34992), + 4: uint16(34994), + 5: uint16(34995), + 6: uint16(34996), + 7: uint16(34997), + 8: uint16(34998), + 9: uint16(35000), + 10: uint16(35001), + 11: uint16(35002), + 12: uint16(35003), + 13: uint16(35005), + 14: uint16(35006), + 15: uint16(35007), + 16: uint16(35008), + 17: uint16(35011), + 18: uint16(35012), + 19: uint16(35015), + 20: uint16(35016), + 21: uint16(35018), + 22: uint16(35019), + 23: uint16(35020), + 24: uint16(35021), + 25: uint16(35023), + 26: uint16(35024), + 27: uint16(35025), + 28: uint16(35027), + 29: uint16(35030), + 30: uint16(35031), + 31: uint16(35034), + 32: uint16(35035), + 33: uint16(35036), + 34: uint16(35037), + 35: uint16(35038), + 36: uint16(35040), + 37: uint16(35041), + 38: uint16(35046), + 39: uint16(35047), + 40: uint16(35049), + 41: uint16(35050), + 42: uint16(35051), + 43: uint16(35052), + 44: uint16(35053), + 45: uint16(35054), + 46: uint16(35055), + 47: uint16(35058), + 48: uint16(35061), + 49: uint16(35062), + 50: uint16(35063), + 51: uint16(35066), + 52: uint16(35067), + 53: uint16(35069), + 54: uint16(35071), + 55: uint16(35072), + 56: uint16(35073), + 57: uint16(35075), + 58: uint16(35076), + 59: uint16(35077), + 60: uint16(35078), + 61: uint16(35079), + 62: uint16(35080), + 63: uint16(35081), + 64: uint16(35083), + 65: uint16(35084), + 66: uint16(35085), + 67: uint16(35086), + 68: uint16(35087), + 69: uint16(35089), + 70: uint16(35092), + 71: uint16(35093), + 72: uint16(35094), + 73: uint16(35095), + 74: uint16(35096), + 75: uint16(35100), + 76: uint16(35101), + 77: uint16(35102), + 78: uint16(35103), + 79: uint16(35104), + 80: uint16(35106), + 81: uint16(35107), + 82: uint16(35108), + 83: uint16(35110), + 84: uint16(35111), + 85: uint16(35112), + 86: uint16(35113), + 87: uint16(35116), + 88: uint16(35117), + 89: uint16(35118), + 90: uint16(35119), + 91: uint16(35121), + 92: uint16(35122), + 93: uint16(35123), + 94: uint16(35125), + 95: uint16(35127), + 96: uint16(36873), + 97: uint16(30307), + 98: uint16(30505), + 99: uint16(32474), + 100: uint16(38772), + 101: uint16(34203), + 102: uint16(23398), + 103: uint16(31348), + 104: uint16(38634), + 105: uint16(34880), + 106: uint16(21195), + 107: uint16(29071), + 108: uint16(24490), + 109: uint16(26092), + 110: uint16(35810), + 111: uint16(23547), + 112: uint16(39535), + 113: uint16(24033), + 114: uint16(27529), + 115: uint16(27739), + 116: uint16(35757), + 117: uint16(35759), + 118: uint16(36874), + 119: uint16(36805), + 120: uint16(21387), + 121: uint16(25276), + 122: uint16(40486), + 123: uint16(40493), + 124: uint16(21568), + 125: uint16(20011), + 126: uint16(33469), + 127: uint16(29273), + 128: uint16(34460), + 129: uint16(23830), + 130: uint16(34905), + 131: uint16(28079), + 132: uint16(38597), + 133: uint16(21713), + 134: uint16(20122), + 135: uint16(35766), + 136: uint16(28937), + 137: uint16(21693), + 138: uint16(38409), + 139: uint16(28895), + 140: uint16(28153), + 141: uint16(30416), + 142: uint16(20005), + 143: uint16(30740), + 144: uint16(34578), + 145: uint16(23721), + 146: uint16(24310), + 147: uint16(35328), + 148: uint16(39068), + 149: uint16(38414), + 150: uint16(28814), + 151: uint16(27839), + 152: uint16(22852), + 153: uint16(25513), + 154: uint16(30524), + 155: uint16(34893), + 156: uint16(28436), + 157: uint16(33395), + 158: uint16(22576), + 159: uint16(29141), + 160: uint16(21388), + 161: uint16(30746), + 162: uint16(38593), + 163: uint16(21761), + 164: uint16(24422), + 165: uint16(28976), + 166: uint16(23476), + 167: uint16(35866), + 168: uint16(39564), + 169: uint16(27523), + 170: uint16(22830), + 171: uint16(40495), + 172: uint16(31207), + 173: uint16(26472), + 174: uint16(25196), + 175: uint16(20335), + 176: uint16(30113), + 177: uint16(32650), + 178: uint16(27915), + 179: uint16(38451), + 180: uint16(27687), + 181: uint16(20208), + 182: uint16(30162), + 183: uint16(20859), + 184: uint16(26679), + 185: uint16(28478), + 186: uint16(36992), + 187: uint16(33136), + 188: uint16(22934), + 189: uint16(29814), + }, + 81: { + 0: uint16(35128), + 1: uint16(35129), + 2: uint16(35130), + 3: uint16(35131), + 4: uint16(35132), + 5: uint16(35133), + 6: uint16(35134), + 7: uint16(35135), + 8: uint16(35136), + 9: uint16(35138), + 10: uint16(35139), + 11: uint16(35141), + 12: uint16(35142), + 13: uint16(35143), + 14: uint16(35144), + 15: uint16(35145), + 16: uint16(35146), + 17: uint16(35147), + 18: uint16(35148), + 19: uint16(35149), + 20: uint16(35150), + 21: uint16(35151), + 22: uint16(35152), + 23: uint16(35153), + 24: uint16(35154), + 25: uint16(35155), + 26: uint16(35156), + 27: uint16(35157), + 28: uint16(35158), + 29: uint16(35159), + 30: uint16(35160), + 31: uint16(35161), + 32: uint16(35162), + 33: uint16(35163), + 34: uint16(35164), + 35: uint16(35165), + 36: uint16(35168), + 37: uint16(35169), + 38: uint16(35170), + 39: uint16(35171), + 40: uint16(35172), + 41: uint16(35173), + 42: uint16(35175), + 43: uint16(35176), + 44: uint16(35177), + 45: uint16(35178), + 46: uint16(35179), + 47: uint16(35180), + 48: uint16(35181), + 49: uint16(35182), + 50: uint16(35183), + 51: uint16(35184), + 52: uint16(35185), + 53: uint16(35186), + 54: uint16(35187), + 55: uint16(35188), + 56: uint16(35189), + 57: uint16(35190), + 58: uint16(35191), + 59: uint16(35192), + 60: uint16(35193), + 61: uint16(35194), + 62: uint16(35196), + 63: uint16(35197), + 64: uint16(35198), + 65: uint16(35200), + 66: uint16(35202), + 67: uint16(35204), + 68: uint16(35205), + 69: uint16(35207), + 70: uint16(35208), + 71: uint16(35209), + 72: uint16(35210), + 73: uint16(35211), + 74: uint16(35212), + 75: uint16(35213), + 76: uint16(35214), + 77: uint16(35215), + 78: uint16(35216), + 79: uint16(35217), + 80: uint16(35218), + 81: uint16(35219), + 82: uint16(35220), + 83: uint16(35221), + 84: uint16(35222), + 85: uint16(35223), + 86: uint16(35224), + 87: uint16(35225), + 88: uint16(35226), + 89: uint16(35227), + 90: uint16(35228), + 91: uint16(35229), + 92: uint16(35230), + 93: uint16(35231), + 94: uint16(35232), + 95: uint16(35233), + 96: uint16(25671), + 97: uint16(23591), + 98: uint16(36965), + 99: uint16(31377), + 100: uint16(35875), + 101: uint16(23002), + 102: uint16(21676), + 103: uint16(33280), + 104: uint16(33647), + 105: uint16(35201), + 106: uint16(32768), + 107: uint16(26928), + 108: uint16(22094), + 109: uint16(32822), + 110: uint16(29239), + 111: uint16(37326), + 112: uint16(20918), + 113: uint16(20063), + 114: uint16(39029), + 115: uint16(25494), + 116: uint16(19994), + 117: uint16(21494), + 118: uint16(26355), + 119: uint16(33099), + 120: uint16(22812), + 121: uint16(28082), + 122: uint16(19968), + 123: uint16(22777), + 124: uint16(21307), + 125: uint16(25558), + 126: uint16(38129), + 127: uint16(20381), + 128: uint16(20234), + 129: uint16(34915), + 130: uint16(39056), + 131: uint16(22839), + 132: uint16(36951), + 133: uint16(31227), + 134: uint16(20202), + 135: uint16(33008), + 136: uint16(30097), + 137: uint16(27778), + 138: uint16(23452), + 139: uint16(23016), + 140: uint16(24413), + 141: uint16(26885), + 142: uint16(34433), + 143: uint16(20506), + 144: uint16(24050), + 145: uint16(20057), + 146: uint16(30691), + 147: uint16(20197), + 148: uint16(33402), + 149: uint16(25233), + 150: uint16(26131), + 151: uint16(37009), + 152: uint16(23673), + 153: uint16(20159), + 154: uint16(24441), + 155: uint16(33222), + 156: uint16(36920), + 157: uint16(32900), + 158: uint16(30123), + 159: uint16(20134), + 160: uint16(35028), + 161: uint16(24847), + 162: uint16(27589), + 163: uint16(24518), + 164: uint16(20041), + 165: uint16(30410), + 166: uint16(28322), + 167: uint16(35811), + 168: uint16(35758), + 169: uint16(35850), + 170: uint16(35793), + 171: uint16(24322), + 172: uint16(32764), + 173: uint16(32716), + 174: uint16(32462), + 175: uint16(33589), + 176: uint16(33643), + 177: uint16(22240), + 178: uint16(27575), + 179: uint16(38899), + 180: uint16(38452), + 181: uint16(23035), + 182: uint16(21535), + 183: uint16(38134), + 184: uint16(28139), + 185: uint16(23493), + 186: uint16(39278), + 187: uint16(23609), + 188: uint16(24341), + 189: uint16(38544), + }, + 82: { + 0: uint16(35234), + 1: uint16(35235), + 2: uint16(35236), + 3: uint16(35237), + 4: uint16(35238), + 5: uint16(35239), + 6: uint16(35240), + 7: uint16(35241), + 8: uint16(35242), + 9: uint16(35243), + 10: uint16(35244), + 11: uint16(35245), + 12: uint16(35246), + 13: uint16(35247), + 14: uint16(35248), + 15: uint16(35249), + 16: uint16(35250), + 17: uint16(35251), + 18: uint16(35252), + 19: uint16(35253), + 20: uint16(35254), + 21: uint16(35255), + 22: uint16(35256), + 23: uint16(35257), + 24: uint16(35258), + 25: uint16(35259), + 26: uint16(35260), + 27: uint16(35261), + 28: uint16(35262), + 29: uint16(35263), + 30: uint16(35264), + 31: uint16(35267), + 32: uint16(35277), + 33: uint16(35283), + 34: uint16(35284), + 35: uint16(35285), + 36: uint16(35287), + 37: uint16(35288), + 38: uint16(35289), + 39: uint16(35291), + 40: uint16(35293), + 41: uint16(35295), + 42: uint16(35296), + 43: uint16(35297), + 44: uint16(35298), + 45: uint16(35300), + 46: uint16(35303), + 47: uint16(35304), + 48: uint16(35305), + 49: uint16(35306), + 50: uint16(35308), + 51: uint16(35309), + 52: uint16(35310), + 53: uint16(35312), + 54: uint16(35313), + 55: uint16(35314), + 56: uint16(35316), + 57: uint16(35317), + 58: uint16(35318), + 59: uint16(35319), + 60: uint16(35320), + 61: uint16(35321), + 62: uint16(35322), + 63: uint16(35323), + 64: uint16(35324), + 65: uint16(35325), + 66: uint16(35326), + 67: uint16(35327), + 68: uint16(35329), + 69: uint16(35330), + 70: uint16(35331), + 71: uint16(35332), + 72: uint16(35333), + 73: uint16(35334), + 74: uint16(35336), + 75: uint16(35337), + 76: uint16(35338), + 77: uint16(35339), + 78: uint16(35340), + 79: uint16(35341), + 80: uint16(35342), + 81: uint16(35343), + 82: uint16(35344), + 83: uint16(35345), + 84: uint16(35346), + 85: uint16(35347), + 86: uint16(35348), + 87: uint16(35349), + 88: uint16(35350), + 89: uint16(35351), + 90: uint16(35352), + 91: uint16(35353), + 92: uint16(35354), + 93: uint16(35355), + 94: uint16(35356), + 95: uint16(35357), + 96: uint16(21360), + 97: uint16(33521), + 98: uint16(27185), + 99: uint16(23156), + 100: uint16(40560), + 101: uint16(24212), + 102: uint16(32552), + 103: uint16(33721), + 104: uint16(33828), + 105: uint16(33829), + 106: uint16(33639), + 107: uint16(34631), + 108: uint16(36814), + 109: uint16(36194), + 110: uint16(30408), + 111: uint16(24433), + 112: uint16(39062), + 113: uint16(30828), + 114: uint16(26144), + 115: uint16(21727), + 116: uint16(25317), + 117: uint16(20323), + 118: uint16(33219), + 119: uint16(30152), + 120: uint16(24248), + 121: uint16(38605), + 122: uint16(36362), + 123: uint16(34553), + 124: uint16(21647), + 125: uint16(27891), + 126: uint16(28044), + 127: uint16(27704), + 128: uint16(24703), + 129: uint16(21191), + 130: uint16(29992), + 131: uint16(24189), + 132: uint16(20248), + 133: uint16(24736), + 134: uint16(24551), + 135: uint16(23588), + 136: uint16(30001), + 137: uint16(37038), + 138: uint16(38080), + 139: uint16(29369), + 140: uint16(27833), + 141: uint16(28216), + 142: uint16(37193), + 143: uint16(26377), + 144: uint16(21451), + 145: uint16(21491), + 146: uint16(20305), + 147: uint16(37321), + 148: uint16(35825), + 149: uint16(21448), + 150: uint16(24188), + 151: uint16(36802), + 152: uint16(28132), + 153: uint16(20110), + 154: uint16(30402), + 155: uint16(27014), + 156: uint16(34398), + 157: uint16(24858), + 158: uint16(33286), + 159: uint16(20313), + 160: uint16(20446), + 161: uint16(36926), + 162: uint16(40060), + 163: uint16(24841), + 164: uint16(28189), + 165: uint16(28180), + 166: uint16(38533), + 167: uint16(20104), + 168: uint16(23089), + 169: uint16(38632), + 170: uint16(19982), + 171: uint16(23679), + 172: uint16(31161), + 173: uint16(23431), + 174: uint16(35821), + 175: uint16(32701), + 176: uint16(29577), + 177: uint16(22495), + 178: uint16(33419), + 179: uint16(37057), + 180: uint16(21505), + 181: uint16(36935), + 182: uint16(21947), + 183: uint16(23786), + 184: uint16(24481), + 185: uint16(24840), + 186: uint16(27442), + 187: uint16(29425), + 188: uint16(32946), + 189: uint16(35465), + }, + 83: { + 0: uint16(35358), + 1: uint16(35359), + 2: uint16(35360), + 3: uint16(35361), + 4: uint16(35362), + 5: uint16(35363), + 6: uint16(35364), + 7: uint16(35365), + 8: uint16(35366), + 9: uint16(35367), + 10: uint16(35368), + 11: uint16(35369), + 12: uint16(35370), + 13: uint16(35371), + 14: uint16(35372), + 15: uint16(35373), + 16: uint16(35374), + 17: uint16(35375), + 18: uint16(35376), + 19: uint16(35377), + 20: uint16(35378), + 21: uint16(35379), + 22: uint16(35380), + 23: uint16(35381), + 24: uint16(35382), + 25: uint16(35383), + 26: uint16(35384), + 27: uint16(35385), + 28: uint16(35386), + 29: uint16(35387), + 30: uint16(35388), + 31: uint16(35389), + 32: uint16(35391), + 33: uint16(35392), + 34: uint16(35393), + 35: uint16(35394), + 36: uint16(35395), + 37: uint16(35396), + 38: uint16(35397), + 39: uint16(35398), + 40: uint16(35399), + 41: uint16(35401), + 42: uint16(35402), + 43: uint16(35403), + 44: uint16(35404), + 45: uint16(35405), + 46: uint16(35406), + 47: uint16(35407), + 48: uint16(35408), + 49: uint16(35409), + 50: uint16(35410), + 51: uint16(35411), + 52: uint16(35412), + 53: uint16(35413), + 54: uint16(35414), + 55: uint16(35415), + 56: uint16(35416), + 57: uint16(35417), + 58: uint16(35418), + 59: uint16(35419), + 60: uint16(35420), + 61: uint16(35421), + 62: uint16(35422), + 63: uint16(35423), + 64: uint16(35424), + 65: uint16(35425), + 66: uint16(35426), + 67: uint16(35427), + 68: uint16(35428), + 69: uint16(35429), + 70: uint16(35430), + 71: uint16(35431), + 72: uint16(35432), + 73: uint16(35433), + 74: uint16(35434), + 75: uint16(35435), + 76: uint16(35436), + 77: uint16(35437), + 78: uint16(35438), + 79: uint16(35439), + 80: uint16(35440), + 81: uint16(35441), + 82: uint16(35442), + 83: uint16(35443), + 84: uint16(35444), + 85: uint16(35445), + 86: uint16(35446), + 87: uint16(35447), + 88: uint16(35448), + 89: uint16(35450), + 90: uint16(35451), + 91: uint16(35452), + 92: uint16(35453), + 93: uint16(35454), + 94: uint16(35455), + 95: uint16(35456), + 96: uint16(28020), + 97: uint16(23507), + 98: uint16(35029), + 99: uint16(39044), + 100: uint16(35947), + 101: uint16(39533), + 102: uint16(40499), + 103: uint16(28170), + 104: uint16(20900), + 105: uint16(20803), + 106: uint16(22435), + 107: uint16(34945), + 108: uint16(21407), + 109: uint16(25588), + 110: uint16(36757), + 111: uint16(22253), + 112: uint16(21592), + 113: uint16(22278), + 114: uint16(29503), + 115: uint16(28304), + 116: uint16(32536), + 117: uint16(36828), + 118: uint16(33489), + 119: uint16(24895), + 120: uint16(24616), + 121: uint16(38498), + 122: uint16(26352), + 123: uint16(32422), + 124: uint16(36234), + 125: uint16(36291), + 126: uint16(38053), + 127: uint16(23731), + 128: uint16(31908), + 129: uint16(26376), + 130: uint16(24742), + 131: uint16(38405), + 132: uint16(32792), + 133: uint16(20113), + 134: uint16(37095), + 135: uint16(21248), + 136: uint16(38504), + 137: uint16(20801), + 138: uint16(36816), + 139: uint16(34164), + 140: uint16(37213), + 141: uint16(26197), + 142: uint16(38901), + 143: uint16(23381), + 144: uint16(21277), + 145: uint16(30776), + 146: uint16(26434), + 147: uint16(26685), + 148: uint16(21705), + 149: uint16(28798), + 150: uint16(23472), + 151: uint16(36733), + 152: uint16(20877), + 153: uint16(22312), + 154: uint16(21681), + 155: uint16(25874), + 156: uint16(26242), + 157: uint16(36190), + 158: uint16(36163), + 159: uint16(33039), + 160: uint16(33900), + 161: uint16(36973), + 162: uint16(31967), + 163: uint16(20991), + 164: uint16(34299), + 165: uint16(26531), + 166: uint16(26089), + 167: uint16(28577), + 168: uint16(34468), + 169: uint16(36481), + 170: uint16(22122), + 171: uint16(36896), + 172: uint16(30338), + 173: uint16(28790), + 174: uint16(29157), + 175: uint16(36131), + 176: uint16(25321), + 177: uint16(21017), + 178: uint16(27901), + 179: uint16(36156), + 180: uint16(24590), + 181: uint16(22686), + 182: uint16(24974), + 183: uint16(26366), + 184: uint16(36192), + 185: uint16(25166), + 186: uint16(21939), + 187: uint16(28195), + 188: uint16(26413), + 189: uint16(36711), + }, + 84: { + 0: uint16(35457), + 1: uint16(35458), + 2: uint16(35459), + 3: uint16(35460), + 4: uint16(35461), + 5: uint16(35462), + 6: uint16(35463), + 7: uint16(35464), + 8: uint16(35467), + 9: uint16(35468), + 10: uint16(35469), + 11: uint16(35470), + 12: uint16(35471), + 13: uint16(35472), + 14: uint16(35473), + 15: uint16(35474), + 16: uint16(35476), + 17: uint16(35477), + 18: uint16(35478), + 19: uint16(35479), + 20: uint16(35480), + 21: uint16(35481), + 22: uint16(35482), + 23: uint16(35483), + 24: uint16(35484), + 25: uint16(35485), + 26: uint16(35486), + 27: uint16(35487), + 28: uint16(35488), + 29: uint16(35489), + 30: uint16(35490), + 31: uint16(35491), + 32: uint16(35492), + 33: uint16(35493), + 34: uint16(35494), + 35: uint16(35495), + 36: uint16(35496), + 37: uint16(35497), + 38: uint16(35498), + 39: uint16(35499), + 40: uint16(35500), + 41: uint16(35501), + 42: uint16(35502), + 43: uint16(35503), + 44: uint16(35504), + 45: uint16(35505), + 46: uint16(35506), + 47: uint16(35507), + 48: uint16(35508), + 49: uint16(35509), + 50: uint16(35510), + 51: uint16(35511), + 52: uint16(35512), + 53: uint16(35513), + 54: uint16(35514), + 55: uint16(35515), + 56: uint16(35516), + 57: uint16(35517), + 58: uint16(35518), + 59: uint16(35519), + 60: uint16(35520), + 61: uint16(35521), + 62: uint16(35522), + 63: uint16(35523), + 64: uint16(35524), + 65: uint16(35525), + 66: uint16(35526), + 67: uint16(35527), + 68: uint16(35528), + 69: uint16(35529), + 70: uint16(35530), + 71: uint16(35531), + 72: uint16(35532), + 73: uint16(35533), + 74: uint16(35534), + 75: uint16(35535), + 76: uint16(35536), + 77: uint16(35537), + 78: uint16(35538), + 79: uint16(35539), + 80: uint16(35540), + 81: uint16(35541), + 82: uint16(35542), + 83: uint16(35543), + 84: uint16(35544), + 85: uint16(35545), + 86: uint16(35546), + 87: uint16(35547), + 88: uint16(35548), + 89: uint16(35549), + 90: uint16(35550), + 91: uint16(35551), + 92: uint16(35552), + 93: uint16(35553), + 94: uint16(35554), + 95: uint16(35555), + 96: uint16(38113), + 97: uint16(38392), + 98: uint16(30504), + 99: uint16(26629), + 100: uint16(27048), + 101: uint16(21643), + 102: uint16(20045), + 103: uint16(28856), + 104: uint16(35784), + 105: uint16(25688), + 106: uint16(25995), + 107: uint16(23429), + 108: uint16(31364), + 109: uint16(20538), + 110: uint16(23528), + 111: uint16(30651), + 112: uint16(27617), + 113: uint16(35449), + 114: uint16(31896), + 115: uint16(27838), + 116: uint16(30415), + 117: uint16(26025), + 118: uint16(36759), + 119: uint16(23853), + 120: uint16(23637), + 121: uint16(34360), + 122: uint16(26632), + 123: uint16(21344), + 124: uint16(25112), + 125: uint16(31449), + 126: uint16(28251), + 127: uint16(32509), + 128: uint16(27167), + 129: uint16(31456), + 130: uint16(24432), + 131: uint16(28467), + 132: uint16(24352), + 133: uint16(25484), + 134: uint16(28072), + 135: uint16(26454), + 136: uint16(19976), + 137: uint16(24080), + 138: uint16(36134), + 139: uint16(20183), + 140: uint16(32960), + 141: uint16(30260), + 142: uint16(38556), + 143: uint16(25307), + 144: uint16(26157), + 145: uint16(25214), + 146: uint16(27836), + 147: uint16(36213), + 148: uint16(29031), + 149: uint16(32617), + 150: uint16(20806), + 151: uint16(32903), + 152: uint16(21484), + 153: uint16(36974), + 154: uint16(25240), + 155: uint16(21746), + 156: uint16(34544), + 157: uint16(36761), + 158: uint16(32773), + 159: uint16(38167), + 160: uint16(34071), + 161: uint16(36825), + 162: uint16(27993), + 163: uint16(29645), + 164: uint16(26015), + 165: uint16(30495), + 166: uint16(29956), + 167: uint16(30759), + 168: uint16(33275), + 169: uint16(36126), + 170: uint16(38024), + 171: uint16(20390), + 172: uint16(26517), + 173: uint16(30137), + 174: uint16(35786), + 175: uint16(38663), + 176: uint16(25391), + 177: uint16(38215), + 178: uint16(38453), + 179: uint16(33976), + 180: uint16(25379), + 181: uint16(30529), + 182: uint16(24449), + 183: uint16(29424), + 184: uint16(20105), + 185: uint16(24596), + 186: uint16(25972), + 187: uint16(25327), + 188: uint16(27491), + 189: uint16(25919), + }, + 85: { + 0: uint16(35556), + 1: uint16(35557), + 2: uint16(35558), + 3: uint16(35559), + 4: uint16(35560), + 5: uint16(35561), + 6: uint16(35562), + 7: uint16(35563), + 8: uint16(35564), + 9: uint16(35565), + 10: uint16(35566), + 11: uint16(35567), + 12: uint16(35568), + 13: uint16(35569), + 14: uint16(35570), + 15: uint16(35571), + 16: uint16(35572), + 17: uint16(35573), + 18: uint16(35574), + 19: uint16(35575), + 20: uint16(35576), + 21: uint16(35577), + 22: uint16(35578), + 23: uint16(35579), + 24: uint16(35580), + 25: uint16(35581), + 26: uint16(35582), + 27: uint16(35583), + 28: uint16(35584), + 29: uint16(35585), + 30: uint16(35586), + 31: uint16(35587), + 32: uint16(35588), + 33: uint16(35589), + 34: uint16(35590), + 35: uint16(35592), + 36: uint16(35593), + 37: uint16(35594), + 38: uint16(35595), + 39: uint16(35596), + 40: uint16(35597), + 41: uint16(35598), + 42: uint16(35599), + 43: uint16(35600), + 44: uint16(35601), + 45: uint16(35602), + 46: uint16(35603), + 47: uint16(35604), + 48: uint16(35605), + 49: uint16(35606), + 50: uint16(35607), + 51: uint16(35608), + 52: uint16(35609), + 53: uint16(35610), + 54: uint16(35611), + 55: uint16(35612), + 56: uint16(35613), + 57: uint16(35614), + 58: uint16(35615), + 59: uint16(35616), + 60: uint16(35617), + 61: uint16(35618), + 62: uint16(35619), + 63: uint16(35620), + 64: uint16(35621), + 65: uint16(35623), + 66: uint16(35624), + 67: uint16(35625), + 68: uint16(35626), + 69: uint16(35627), + 70: uint16(35628), + 71: uint16(35629), + 72: uint16(35630), + 73: uint16(35631), + 74: uint16(35632), + 75: uint16(35633), + 76: uint16(35634), + 77: uint16(35635), + 78: uint16(35636), + 79: uint16(35637), + 80: uint16(35638), + 81: uint16(35639), + 82: uint16(35640), + 83: uint16(35641), + 84: uint16(35642), + 85: uint16(35643), + 86: uint16(35644), + 87: uint16(35645), + 88: uint16(35646), + 89: uint16(35647), + 90: uint16(35648), + 91: uint16(35649), + 92: uint16(35650), + 93: uint16(35651), + 94: uint16(35652), + 95: uint16(35653), + 96: uint16(24103), + 97: uint16(30151), + 98: uint16(37073), + 99: uint16(35777), + 100: uint16(33437), + 101: uint16(26525), + 102: uint16(25903), + 103: uint16(21553), + 104: uint16(34584), + 105: uint16(30693), + 106: uint16(32930), + 107: uint16(33026), + 108: uint16(27713), + 109: uint16(20043), + 110: uint16(32455), + 111: uint16(32844), + 112: uint16(30452), + 113: uint16(26893), + 114: uint16(27542), + 115: uint16(25191), + 116: uint16(20540), + 117: uint16(20356), + 118: uint16(22336), + 119: uint16(25351), + 120: uint16(27490), + 121: uint16(36286), + 122: uint16(21482), + 123: uint16(26088), + 124: uint16(32440), + 125: uint16(24535), + 126: uint16(25370), + 127: uint16(25527), + 128: uint16(33267), + 129: uint16(33268), + 130: uint16(32622), + 131: uint16(24092), + 132: uint16(23769), + 133: uint16(21046), + 134: uint16(26234), + 135: uint16(31209), + 136: uint16(31258), + 137: uint16(36136), + 138: uint16(28825), + 139: uint16(30164), + 140: uint16(28382), + 141: uint16(27835), + 142: uint16(31378), + 143: uint16(20013), + 144: uint16(30405), + 145: uint16(24544), + 146: uint16(38047), + 147: uint16(34935), + 148: uint16(32456), + 149: uint16(31181), + 150: uint16(32959), + 151: uint16(37325), + 152: uint16(20210), + 153: uint16(20247), + 154: uint16(33311), + 155: uint16(21608), + 156: uint16(24030), + 157: uint16(27954), + 158: uint16(35788), + 159: uint16(31909), + 160: uint16(36724), + 161: uint16(32920), + 162: uint16(24090), + 163: uint16(21650), + 164: uint16(30385), + 165: uint16(23449), + 166: uint16(26172), + 167: uint16(39588), + 168: uint16(29664), + 169: uint16(26666), + 170: uint16(34523), + 171: uint16(26417), + 172: uint16(29482), + 173: uint16(35832), + 174: uint16(35803), + 175: uint16(36880), + 176: uint16(31481), + 177: uint16(28891), + 178: uint16(29038), + 179: uint16(25284), + 180: uint16(30633), + 181: uint16(22065), + 182: uint16(20027), + 183: uint16(33879), + 184: uint16(26609), + 185: uint16(21161), + 186: uint16(34496), + 187: uint16(36142), + 188: uint16(38136), + 189: uint16(31569), + }, + 86: { + 0: uint16(35654), + 1: uint16(35655), + 2: uint16(35656), + 3: uint16(35657), + 4: uint16(35658), + 5: uint16(35659), + 6: uint16(35660), + 7: uint16(35661), + 8: uint16(35662), + 9: uint16(35663), + 10: uint16(35664), + 11: uint16(35665), + 12: uint16(35666), + 13: uint16(35667), + 14: uint16(35668), + 15: uint16(35669), + 16: uint16(35670), + 17: uint16(35671), + 18: uint16(35672), + 19: uint16(35673), + 20: uint16(35674), + 21: uint16(35675), + 22: uint16(35676), + 23: uint16(35677), + 24: uint16(35678), + 25: uint16(35679), + 26: uint16(35680), + 27: uint16(35681), + 28: uint16(35682), + 29: uint16(35683), + 30: uint16(35684), + 31: uint16(35685), + 32: uint16(35687), + 33: uint16(35688), + 34: uint16(35689), + 35: uint16(35690), + 36: uint16(35691), + 37: uint16(35693), + 38: uint16(35694), + 39: uint16(35695), + 40: uint16(35696), + 41: uint16(35697), + 42: uint16(35698), + 43: uint16(35699), + 44: uint16(35700), + 45: uint16(35701), + 46: uint16(35702), + 47: uint16(35703), + 48: uint16(35704), + 49: uint16(35705), + 50: uint16(35706), + 51: uint16(35707), + 52: uint16(35708), + 53: uint16(35709), + 54: uint16(35710), + 55: uint16(35711), + 56: uint16(35712), + 57: uint16(35713), + 58: uint16(35714), + 59: uint16(35715), + 60: uint16(35716), + 61: uint16(35717), + 62: uint16(35718), + 63: uint16(35719), + 64: uint16(35720), + 65: uint16(35721), + 66: uint16(35722), + 67: uint16(35723), + 68: uint16(35724), + 69: uint16(35725), + 70: uint16(35726), + 71: uint16(35727), + 72: uint16(35728), + 73: uint16(35729), + 74: uint16(35730), + 75: uint16(35731), + 76: uint16(35732), + 77: uint16(35733), + 78: uint16(35734), + 79: uint16(35735), + 80: uint16(35736), + 81: uint16(35737), + 82: uint16(35738), + 83: uint16(35739), + 84: uint16(35740), + 85: uint16(35741), + 86: uint16(35742), + 87: uint16(35743), + 88: uint16(35756), + 89: uint16(35761), + 90: uint16(35771), + 91: uint16(35783), + 92: uint16(35792), + 93: uint16(35818), + 94: uint16(35849), + 95: uint16(35870), + 96: uint16(20303), + 97: uint16(27880), + 98: uint16(31069), + 99: uint16(39547), + 100: uint16(25235), + 101: uint16(29226), + 102: uint16(25341), + 103: uint16(19987), + 104: uint16(30742), + 105: uint16(36716), + 106: uint16(25776), + 107: uint16(36186), + 108: uint16(31686), + 109: uint16(26729), + 110: uint16(24196), + 111: uint16(35013), + 112: uint16(22918), + 113: uint16(25758), + 114: uint16(22766), + 115: uint16(29366), + 116: uint16(26894), + 117: uint16(38181), + 118: uint16(36861), + 119: uint16(36184), + 120: uint16(22368), + 121: uint16(32512), + 122: uint16(35846), + 123: uint16(20934), + 124: uint16(25417), + 125: uint16(25305), + 126: uint16(21331), + 127: uint16(26700), + 128: uint16(29730), + 129: uint16(33537), + 130: uint16(37196), + 131: uint16(21828), + 132: uint16(30528), + 133: uint16(28796), + 134: uint16(27978), + 135: uint16(20857), + 136: uint16(21672), + 137: uint16(36164), + 138: uint16(23039), + 139: uint16(28363), + 140: uint16(28100), + 141: uint16(23388), + 142: uint16(32043), + 143: uint16(20180), + 144: uint16(31869), + 145: uint16(28371), + 146: uint16(23376), + 147: uint16(33258), + 148: uint16(28173), + 149: uint16(23383), + 150: uint16(39683), + 151: uint16(26837), + 152: uint16(36394), + 153: uint16(23447), + 154: uint16(32508), + 155: uint16(24635), + 156: uint16(32437), + 157: uint16(37049), + 158: uint16(36208), + 159: uint16(22863), + 160: uint16(25549), + 161: uint16(31199), + 162: uint16(36275), + 163: uint16(21330), + 164: uint16(26063), + 165: uint16(31062), + 166: uint16(35781), + 167: uint16(38459), + 168: uint16(32452), + 169: uint16(38075), + 170: uint16(32386), + 171: uint16(22068), + 172: uint16(37257), + 173: uint16(26368), + 174: uint16(32618), + 175: uint16(23562), + 176: uint16(36981), + 177: uint16(26152), + 178: uint16(24038), + 179: uint16(20304), + 180: uint16(26590), + 181: uint16(20570), + 182: uint16(20316), + 183: uint16(22352), + 184: uint16(24231), + 185: uint16(59408), + 186: uint16(59409), + 187: uint16(59410), + 188: uint16(59411), + 189: uint16(59412), + }, + 87: { + 0: uint16(35896), + 1: uint16(35897), + 2: uint16(35898), + 3: uint16(35899), + 4: uint16(35900), + 5: uint16(35901), + 6: uint16(35902), + 7: uint16(35903), + 8: uint16(35904), + 9: uint16(35906), + 10: uint16(35907), + 11: uint16(35908), + 12: uint16(35909), + 13: uint16(35912), + 14: uint16(35914), + 15: uint16(35915), + 16: uint16(35917), + 17: uint16(35918), + 18: uint16(35919), + 19: uint16(35920), + 20: uint16(35921), + 21: uint16(35922), + 22: uint16(35923), + 23: uint16(35924), + 24: uint16(35926), + 25: uint16(35927), + 26: uint16(35928), + 27: uint16(35929), + 28: uint16(35931), + 29: uint16(35932), + 30: uint16(35933), + 31: uint16(35934), + 32: uint16(35935), + 33: uint16(35936), + 34: uint16(35939), + 35: uint16(35940), + 36: uint16(35941), + 37: uint16(35942), + 38: uint16(35943), + 39: uint16(35944), + 40: uint16(35945), + 41: uint16(35948), + 42: uint16(35949), + 43: uint16(35950), + 44: uint16(35951), + 45: uint16(35952), + 46: uint16(35953), + 47: uint16(35954), + 48: uint16(35956), + 49: uint16(35957), + 50: uint16(35958), + 51: uint16(35959), + 52: uint16(35963), + 53: uint16(35964), + 54: uint16(35965), + 55: uint16(35966), + 56: uint16(35967), + 57: uint16(35968), + 58: uint16(35969), + 59: uint16(35971), + 60: uint16(35972), + 61: uint16(35974), + 62: uint16(35975), + 63: uint16(35976), + 64: uint16(35979), + 65: uint16(35981), + 66: uint16(35982), + 67: uint16(35983), + 68: uint16(35984), + 69: uint16(35985), + 70: uint16(35986), + 71: uint16(35987), + 72: uint16(35989), + 73: uint16(35990), + 74: uint16(35991), + 75: uint16(35993), + 76: uint16(35994), + 77: uint16(35995), + 78: uint16(35996), + 79: uint16(35997), + 80: uint16(35998), + 81: uint16(35999), + 82: uint16(36000), + 83: uint16(36001), + 84: uint16(36002), + 85: uint16(36003), + 86: uint16(36004), + 87: uint16(36005), + 88: uint16(36006), + 89: uint16(36007), + 90: uint16(36008), + 91: uint16(36009), + 92: uint16(36010), + 93: uint16(36011), + 94: uint16(36012), + 95: uint16(36013), + 96: uint16(20109), + 97: uint16(19980), + 98: uint16(20800), + 99: uint16(19984), + 100: uint16(24319), + 101: uint16(21317), + 102: uint16(19989), + 103: uint16(20120), + 104: uint16(19998), + 105: uint16(39730), + 106: uint16(23404), + 107: uint16(22121), + 108: uint16(20008), + 109: uint16(31162), + 110: uint16(20031), + 111: uint16(21269), + 112: uint16(20039), + 113: uint16(22829), + 114: uint16(29243), + 115: uint16(21358), + 116: uint16(27664), + 117: uint16(22239), + 118: uint16(32996), + 119: uint16(39319), + 120: uint16(27603), + 121: uint16(30590), + 122: uint16(40727), + 123: uint16(20022), + 124: uint16(20127), + 125: uint16(40720), + 126: uint16(20060), + 127: uint16(20073), + 128: uint16(20115), + 129: uint16(33416), + 130: uint16(23387), + 131: uint16(21868), + 132: uint16(22031), + 133: uint16(20164), + 134: uint16(21389), + 135: uint16(21405), + 136: uint16(21411), + 137: uint16(21413), + 138: uint16(21422), + 139: uint16(38757), + 140: uint16(36189), + 141: uint16(21274), + 142: uint16(21493), + 143: uint16(21286), + 144: uint16(21294), + 145: uint16(21310), + 146: uint16(36188), + 147: uint16(21350), + 148: uint16(21347), + 149: uint16(20994), + 150: uint16(21000), + 151: uint16(21006), + 152: uint16(21037), + 153: uint16(21043), + 154: uint16(21055), + 155: uint16(21056), + 156: uint16(21068), + 157: uint16(21086), + 158: uint16(21089), + 159: uint16(21084), + 160: uint16(33967), + 161: uint16(21117), + 162: uint16(21122), + 163: uint16(21121), + 164: uint16(21136), + 165: uint16(21139), + 166: uint16(20866), + 167: uint16(32596), + 168: uint16(20155), + 169: uint16(20163), + 170: uint16(20169), + 171: uint16(20162), + 172: uint16(20200), + 173: uint16(20193), + 174: uint16(20203), + 175: uint16(20190), + 176: uint16(20251), + 177: uint16(20211), + 178: uint16(20258), + 179: uint16(20324), + 180: uint16(20213), + 181: uint16(20261), + 182: uint16(20263), + 183: uint16(20233), + 184: uint16(20267), + 185: uint16(20318), + 186: uint16(20327), + 187: uint16(25912), + 188: uint16(20314), + 189: uint16(20317), + }, + 88: { + 0: uint16(36014), + 1: uint16(36015), + 2: uint16(36016), + 3: uint16(36017), + 4: uint16(36018), + 5: uint16(36019), + 6: uint16(36020), + 7: uint16(36021), + 8: uint16(36022), + 9: uint16(36023), + 10: uint16(36024), + 11: uint16(36025), + 12: uint16(36026), + 13: uint16(36027), + 14: uint16(36028), + 15: uint16(36029), + 16: uint16(36030), + 17: uint16(36031), + 18: uint16(36032), + 19: uint16(36033), + 20: uint16(36034), + 21: uint16(36035), + 22: uint16(36036), + 23: uint16(36037), + 24: uint16(36038), + 25: uint16(36039), + 26: uint16(36040), + 27: uint16(36041), + 28: uint16(36042), + 29: uint16(36043), + 30: uint16(36044), + 31: uint16(36045), + 32: uint16(36046), + 33: uint16(36047), + 34: uint16(36048), + 35: uint16(36049), + 36: uint16(36050), + 37: uint16(36051), + 38: uint16(36052), + 39: uint16(36053), + 40: uint16(36054), + 41: uint16(36055), + 42: uint16(36056), + 43: uint16(36057), + 44: uint16(36058), + 45: uint16(36059), + 46: uint16(36060), + 47: uint16(36061), + 48: uint16(36062), + 49: uint16(36063), + 50: uint16(36064), + 51: uint16(36065), + 52: uint16(36066), + 53: uint16(36067), + 54: uint16(36068), + 55: uint16(36069), + 56: uint16(36070), + 57: uint16(36071), + 58: uint16(36072), + 59: uint16(36073), + 60: uint16(36074), + 61: uint16(36075), + 62: uint16(36076), + 63: uint16(36077), + 64: uint16(36078), + 65: uint16(36079), + 66: uint16(36080), + 67: uint16(36081), + 68: uint16(36082), + 69: uint16(36083), + 70: uint16(36084), + 71: uint16(36085), + 72: uint16(36086), + 73: uint16(36087), + 74: uint16(36088), + 75: uint16(36089), + 76: uint16(36090), + 77: uint16(36091), + 78: uint16(36092), + 79: uint16(36093), + 80: uint16(36094), + 81: uint16(36095), + 82: uint16(36096), + 83: uint16(36097), + 84: uint16(36098), + 85: uint16(36099), + 86: uint16(36100), + 87: uint16(36101), + 88: uint16(36102), + 89: uint16(36103), + 90: uint16(36104), + 91: uint16(36105), + 92: uint16(36106), + 93: uint16(36107), + 94: uint16(36108), + 95: uint16(36109), + 96: uint16(20319), + 97: uint16(20311), + 98: uint16(20274), + 99: uint16(20285), + 100: uint16(20342), + 101: uint16(20340), + 102: uint16(20369), + 103: uint16(20361), + 104: uint16(20355), + 105: uint16(20367), + 106: uint16(20350), + 107: uint16(20347), + 108: uint16(20394), + 109: uint16(20348), + 110: uint16(20396), + 111: uint16(20372), + 112: uint16(20454), + 113: uint16(20456), + 114: uint16(20458), + 115: uint16(20421), + 116: uint16(20442), + 117: uint16(20451), + 118: uint16(20444), + 119: uint16(20433), + 120: uint16(20447), + 121: uint16(20472), + 122: uint16(20521), + 123: uint16(20556), + 124: uint16(20467), + 125: uint16(20524), + 126: uint16(20495), + 127: uint16(20526), + 128: uint16(20525), + 129: uint16(20478), + 130: uint16(20508), + 131: uint16(20492), + 132: uint16(20517), + 133: uint16(20520), + 134: uint16(20606), + 135: uint16(20547), + 136: uint16(20565), + 137: uint16(20552), + 138: uint16(20558), + 139: uint16(20588), + 140: uint16(20603), + 141: uint16(20645), + 142: uint16(20647), + 143: uint16(20649), + 144: uint16(20666), + 145: uint16(20694), + 146: uint16(20742), + 147: uint16(20717), + 148: uint16(20716), + 149: uint16(20710), + 150: uint16(20718), + 151: uint16(20743), + 152: uint16(20747), + 153: uint16(20189), + 154: uint16(27709), + 155: uint16(20312), + 156: uint16(20325), + 157: uint16(20430), + 158: uint16(40864), + 159: uint16(27718), + 160: uint16(31860), + 161: uint16(20846), + 162: uint16(24061), + 163: uint16(40649), + 164: uint16(39320), + 165: uint16(20865), + 166: uint16(22804), + 167: uint16(21241), + 168: uint16(21261), + 169: uint16(35335), + 170: uint16(21264), + 171: uint16(20971), + 172: uint16(22809), + 173: uint16(20821), + 174: uint16(20128), + 175: uint16(20822), + 176: uint16(20147), + 177: uint16(34926), + 178: uint16(34980), + 179: uint16(20149), + 180: uint16(33044), + 181: uint16(35026), + 182: uint16(31104), + 183: uint16(23348), + 184: uint16(34819), + 185: uint16(32696), + 186: uint16(20907), + 187: uint16(20913), + 188: uint16(20925), + 189: uint16(20924), + }, + 89: { + 0: uint16(36110), + 1: uint16(36111), + 2: uint16(36112), + 3: uint16(36113), + 4: uint16(36114), + 5: uint16(36115), + 6: uint16(36116), + 7: uint16(36117), + 8: uint16(36118), + 9: uint16(36119), + 10: uint16(36120), + 11: uint16(36121), + 12: uint16(36122), + 13: uint16(36123), + 14: uint16(36124), + 15: uint16(36128), + 16: uint16(36177), + 17: uint16(36178), + 18: uint16(36183), + 19: uint16(36191), + 20: uint16(36197), + 21: uint16(36200), + 22: uint16(36201), + 23: uint16(36202), + 24: uint16(36204), + 25: uint16(36206), + 26: uint16(36207), + 27: uint16(36209), + 28: uint16(36210), + 29: uint16(36216), + 30: uint16(36217), + 31: uint16(36218), + 32: uint16(36219), + 33: uint16(36220), + 34: uint16(36221), + 35: uint16(36222), + 36: uint16(36223), + 37: uint16(36224), + 38: uint16(36226), + 39: uint16(36227), + 40: uint16(36230), + 41: uint16(36231), + 42: uint16(36232), + 43: uint16(36233), + 44: uint16(36236), + 45: uint16(36237), + 46: uint16(36238), + 47: uint16(36239), + 48: uint16(36240), + 49: uint16(36242), + 50: uint16(36243), + 51: uint16(36245), + 52: uint16(36246), + 53: uint16(36247), + 54: uint16(36248), + 55: uint16(36249), + 56: uint16(36250), + 57: uint16(36251), + 58: uint16(36252), + 59: uint16(36253), + 60: uint16(36254), + 61: uint16(36256), + 62: uint16(36257), + 63: uint16(36258), + 64: uint16(36260), + 65: uint16(36261), + 66: uint16(36262), + 67: uint16(36263), + 68: uint16(36264), + 69: uint16(36265), + 70: uint16(36266), + 71: uint16(36267), + 72: uint16(36268), + 73: uint16(36269), + 74: uint16(36270), + 75: uint16(36271), + 76: uint16(36272), + 77: uint16(36274), + 78: uint16(36278), + 79: uint16(36279), + 80: uint16(36281), + 81: uint16(36283), + 82: uint16(36285), + 83: uint16(36288), + 84: uint16(36289), + 85: uint16(36290), + 86: uint16(36293), + 87: uint16(36295), + 88: uint16(36296), + 89: uint16(36297), + 90: uint16(36298), + 91: uint16(36301), + 92: uint16(36304), + 93: uint16(36306), + 94: uint16(36307), + 95: uint16(36308), + 96: uint16(20935), + 97: uint16(20886), + 98: uint16(20898), + 99: uint16(20901), + 100: uint16(35744), + 101: uint16(35750), + 102: uint16(35751), + 103: uint16(35754), + 104: uint16(35764), + 105: uint16(35765), + 106: uint16(35767), + 107: uint16(35778), + 108: uint16(35779), + 109: uint16(35787), + 110: uint16(35791), + 111: uint16(35790), + 112: uint16(35794), + 113: uint16(35795), + 114: uint16(35796), + 115: uint16(35798), + 116: uint16(35800), + 117: uint16(35801), + 118: uint16(35804), + 119: uint16(35807), + 120: uint16(35808), + 121: uint16(35812), + 122: uint16(35816), + 123: uint16(35817), + 124: uint16(35822), + 125: uint16(35824), + 126: uint16(35827), + 127: uint16(35830), + 128: uint16(35833), + 129: uint16(35836), + 130: uint16(35839), + 131: uint16(35840), + 132: uint16(35842), + 133: uint16(35844), + 134: uint16(35847), + 135: uint16(35852), + 136: uint16(35855), + 137: uint16(35857), + 138: uint16(35858), + 139: uint16(35860), + 140: uint16(35861), + 141: uint16(35862), + 142: uint16(35865), + 143: uint16(35867), + 144: uint16(35864), + 145: uint16(35869), + 146: uint16(35871), + 147: uint16(35872), + 148: uint16(35873), + 149: uint16(35877), + 150: uint16(35879), + 151: uint16(35882), + 152: uint16(35883), + 153: uint16(35886), + 154: uint16(35887), + 155: uint16(35890), + 156: uint16(35891), + 157: uint16(35893), + 158: uint16(35894), + 159: uint16(21353), + 160: uint16(21370), + 161: uint16(38429), + 162: uint16(38434), + 163: uint16(38433), + 164: uint16(38449), + 165: uint16(38442), + 166: uint16(38461), + 167: uint16(38460), + 168: uint16(38466), + 169: uint16(38473), + 170: uint16(38484), + 171: uint16(38495), + 172: uint16(38503), + 173: uint16(38508), + 174: uint16(38514), + 175: uint16(38516), + 176: uint16(38536), + 177: uint16(38541), + 178: uint16(38551), + 179: uint16(38576), + 180: uint16(37015), + 181: uint16(37019), + 182: uint16(37021), + 183: uint16(37017), + 184: uint16(37036), + 185: uint16(37025), + 186: uint16(37044), + 187: uint16(37043), + 188: uint16(37046), + 189: uint16(37050), + }, + 90: { + 0: uint16(36309), + 1: uint16(36312), + 2: uint16(36313), + 3: uint16(36316), + 4: uint16(36320), + 5: uint16(36321), + 6: uint16(36322), + 7: uint16(36325), + 8: uint16(36326), + 9: uint16(36327), + 10: uint16(36329), + 11: uint16(36333), + 12: uint16(36334), + 13: uint16(36336), + 14: uint16(36337), + 15: uint16(36338), + 16: uint16(36340), + 17: uint16(36342), + 18: uint16(36348), + 19: uint16(36350), + 20: uint16(36351), + 21: uint16(36352), + 22: uint16(36353), + 23: uint16(36354), + 24: uint16(36355), + 25: uint16(36356), + 26: uint16(36358), + 27: uint16(36359), + 28: uint16(36360), + 29: uint16(36363), + 30: uint16(36365), + 31: uint16(36366), + 32: uint16(36368), + 33: uint16(36369), + 34: uint16(36370), + 35: uint16(36371), + 36: uint16(36373), + 37: uint16(36374), + 38: uint16(36375), + 39: uint16(36376), + 40: uint16(36377), + 41: uint16(36378), + 42: uint16(36379), + 43: uint16(36380), + 44: uint16(36384), + 45: uint16(36385), + 46: uint16(36388), + 47: uint16(36389), + 48: uint16(36390), + 49: uint16(36391), + 50: uint16(36392), + 51: uint16(36395), + 52: uint16(36397), + 53: uint16(36400), + 54: uint16(36402), + 55: uint16(36403), + 56: uint16(36404), + 57: uint16(36406), + 58: uint16(36407), + 59: uint16(36408), + 60: uint16(36411), + 61: uint16(36412), + 62: uint16(36414), + 63: uint16(36415), + 64: uint16(36419), + 65: uint16(36421), + 66: uint16(36422), + 67: uint16(36428), + 68: uint16(36429), + 69: uint16(36430), + 70: uint16(36431), + 71: uint16(36432), + 72: uint16(36435), + 73: uint16(36436), + 74: uint16(36437), + 75: uint16(36438), + 76: uint16(36439), + 77: uint16(36440), + 78: uint16(36442), + 79: uint16(36443), + 80: uint16(36444), + 81: uint16(36445), + 82: uint16(36446), + 83: uint16(36447), + 84: uint16(36448), + 85: uint16(36449), + 86: uint16(36450), + 87: uint16(36451), + 88: uint16(36452), + 89: uint16(36453), + 90: uint16(36455), + 91: uint16(36456), + 92: uint16(36458), + 93: uint16(36459), + 94: uint16(36462), + 95: uint16(36465), + 96: uint16(37048), + 97: uint16(37040), + 98: uint16(37071), + 99: uint16(37061), + 100: uint16(37054), + 101: uint16(37072), + 102: uint16(37060), + 103: uint16(37063), + 104: uint16(37075), + 105: uint16(37094), + 106: uint16(37090), + 107: uint16(37084), + 108: uint16(37079), + 109: uint16(37083), + 110: uint16(37099), + 111: uint16(37103), + 112: uint16(37118), + 113: uint16(37124), + 114: uint16(37154), + 115: uint16(37150), + 116: uint16(37155), + 117: uint16(37169), + 118: uint16(37167), + 119: uint16(37177), + 120: uint16(37187), + 121: uint16(37190), + 122: uint16(21005), + 123: uint16(22850), + 124: uint16(21154), + 125: uint16(21164), + 126: uint16(21165), + 127: uint16(21182), + 128: uint16(21759), + 129: uint16(21200), + 130: uint16(21206), + 131: uint16(21232), + 132: uint16(21471), + 133: uint16(29166), + 134: uint16(30669), + 135: uint16(24308), + 136: uint16(20981), + 137: uint16(20988), + 138: uint16(39727), + 139: uint16(21430), + 140: uint16(24321), + 141: uint16(30042), + 142: uint16(24047), + 143: uint16(22348), + 144: uint16(22441), + 145: uint16(22433), + 146: uint16(22654), + 147: uint16(22716), + 148: uint16(22725), + 149: uint16(22737), + 150: uint16(22313), + 151: uint16(22316), + 152: uint16(22314), + 153: uint16(22323), + 154: uint16(22329), + 155: uint16(22318), + 156: uint16(22319), + 157: uint16(22364), + 158: uint16(22331), + 159: uint16(22338), + 160: uint16(22377), + 161: uint16(22405), + 162: uint16(22379), + 163: uint16(22406), + 164: uint16(22396), + 165: uint16(22395), + 166: uint16(22376), + 167: uint16(22381), + 168: uint16(22390), + 169: uint16(22387), + 170: uint16(22445), + 171: uint16(22436), + 172: uint16(22412), + 173: uint16(22450), + 174: uint16(22479), + 175: uint16(22439), + 176: uint16(22452), + 177: uint16(22419), + 178: uint16(22432), + 179: uint16(22485), + 180: uint16(22488), + 181: uint16(22490), + 182: uint16(22489), + 183: uint16(22482), + 184: uint16(22456), + 185: uint16(22516), + 186: uint16(22511), + 187: uint16(22520), + 188: uint16(22500), + 189: uint16(22493), + }, + 91: { + 0: uint16(36467), + 1: uint16(36469), + 2: uint16(36471), + 3: uint16(36472), + 4: uint16(36473), + 5: uint16(36474), + 6: uint16(36475), + 7: uint16(36477), + 8: uint16(36478), + 9: uint16(36480), + 10: uint16(36482), + 11: uint16(36483), + 12: uint16(36484), + 13: uint16(36486), + 14: uint16(36488), + 15: uint16(36489), + 16: uint16(36490), + 17: uint16(36491), + 18: uint16(36492), + 19: uint16(36493), + 20: uint16(36494), + 21: uint16(36497), + 22: uint16(36498), + 23: uint16(36499), + 24: uint16(36501), + 25: uint16(36502), + 26: uint16(36503), + 27: uint16(36504), + 28: uint16(36505), + 29: uint16(36506), + 30: uint16(36507), + 31: uint16(36509), + 32: uint16(36511), + 33: uint16(36512), + 34: uint16(36513), + 35: uint16(36514), + 36: uint16(36515), + 37: uint16(36516), + 38: uint16(36517), + 39: uint16(36518), + 40: uint16(36519), + 41: uint16(36520), + 42: uint16(36521), + 43: uint16(36522), + 44: uint16(36525), + 45: uint16(36526), + 46: uint16(36528), + 47: uint16(36529), + 48: uint16(36531), + 49: uint16(36532), + 50: uint16(36533), + 51: uint16(36534), + 52: uint16(36535), + 53: uint16(36536), + 54: uint16(36537), + 55: uint16(36539), + 56: uint16(36540), + 57: uint16(36541), + 58: uint16(36542), + 59: uint16(36543), + 60: uint16(36544), + 61: uint16(36545), + 62: uint16(36546), + 63: uint16(36547), + 64: uint16(36548), + 65: uint16(36549), + 66: uint16(36550), + 67: uint16(36551), + 68: uint16(36552), + 69: uint16(36553), + 70: uint16(36554), + 71: uint16(36555), + 72: uint16(36556), + 73: uint16(36557), + 74: uint16(36559), + 75: uint16(36560), + 76: uint16(36561), + 77: uint16(36562), + 78: uint16(36563), + 79: uint16(36564), + 80: uint16(36565), + 81: uint16(36566), + 82: uint16(36567), + 83: uint16(36568), + 84: uint16(36569), + 85: uint16(36570), + 86: uint16(36571), + 87: uint16(36572), + 88: uint16(36573), + 89: uint16(36574), + 90: uint16(36575), + 91: uint16(36576), + 92: uint16(36577), + 93: uint16(36578), + 94: uint16(36579), + 95: uint16(36580), + 96: uint16(22539), + 97: uint16(22541), + 98: uint16(22525), + 99: uint16(22509), + 100: uint16(22528), + 101: uint16(22558), + 102: uint16(22553), + 103: uint16(22596), + 104: uint16(22560), + 105: uint16(22629), + 106: uint16(22636), + 107: uint16(22657), + 108: uint16(22665), + 109: uint16(22682), + 110: uint16(22656), + 111: uint16(39336), + 112: uint16(40729), + 113: uint16(25087), + 114: uint16(33401), + 115: uint16(33405), + 116: uint16(33407), + 117: uint16(33423), + 118: uint16(33418), + 119: uint16(33448), + 120: uint16(33412), + 121: uint16(33422), + 122: uint16(33425), + 123: uint16(33431), + 124: uint16(33433), + 125: uint16(33451), + 126: uint16(33464), + 127: uint16(33470), + 128: uint16(33456), + 129: uint16(33480), + 130: uint16(33482), + 131: uint16(33507), + 132: uint16(33432), + 133: uint16(33463), + 134: uint16(33454), + 135: uint16(33483), + 136: uint16(33484), + 137: uint16(33473), + 138: uint16(33449), + 139: uint16(33460), + 140: uint16(33441), + 141: uint16(33450), + 142: uint16(33439), + 143: uint16(33476), + 144: uint16(33486), + 145: uint16(33444), + 146: uint16(33505), + 147: uint16(33545), + 148: uint16(33527), + 149: uint16(33508), + 150: uint16(33551), + 151: uint16(33543), + 152: uint16(33500), + 153: uint16(33524), + 154: uint16(33490), + 155: uint16(33496), + 156: uint16(33548), + 157: uint16(33531), + 158: uint16(33491), + 159: uint16(33553), + 160: uint16(33562), + 161: uint16(33542), + 162: uint16(33556), + 163: uint16(33557), + 164: uint16(33504), + 165: uint16(33493), + 166: uint16(33564), + 167: uint16(33617), + 168: uint16(33627), + 169: uint16(33628), + 170: uint16(33544), + 171: uint16(33682), + 172: uint16(33596), + 173: uint16(33588), + 174: uint16(33585), + 175: uint16(33691), + 176: uint16(33630), + 177: uint16(33583), + 178: uint16(33615), + 179: uint16(33607), + 180: uint16(33603), + 181: uint16(33631), + 182: uint16(33600), + 183: uint16(33559), + 184: uint16(33632), + 185: uint16(33581), + 186: uint16(33594), + 187: uint16(33587), + 188: uint16(33638), + 189: uint16(33637), + }, + 92: { + 0: uint16(36581), + 1: uint16(36582), + 2: uint16(36583), + 3: uint16(36584), + 4: uint16(36585), + 5: uint16(36586), + 6: uint16(36587), + 7: uint16(36588), + 8: uint16(36589), + 9: uint16(36590), + 10: uint16(36591), + 11: uint16(36592), + 12: uint16(36593), + 13: uint16(36594), + 14: uint16(36595), + 15: uint16(36596), + 16: uint16(36597), + 17: uint16(36598), + 18: uint16(36599), + 19: uint16(36600), + 20: uint16(36601), + 21: uint16(36602), + 22: uint16(36603), + 23: uint16(36604), + 24: uint16(36605), + 25: uint16(36606), + 26: uint16(36607), + 27: uint16(36608), + 28: uint16(36609), + 29: uint16(36610), + 30: uint16(36611), + 31: uint16(36612), + 32: uint16(36613), + 33: uint16(36614), + 34: uint16(36615), + 35: uint16(36616), + 36: uint16(36617), + 37: uint16(36618), + 38: uint16(36619), + 39: uint16(36620), + 40: uint16(36621), + 41: uint16(36622), + 42: uint16(36623), + 43: uint16(36624), + 44: uint16(36625), + 45: uint16(36626), + 46: uint16(36627), + 47: uint16(36628), + 48: uint16(36629), + 49: uint16(36630), + 50: uint16(36631), + 51: uint16(36632), + 52: uint16(36633), + 53: uint16(36634), + 54: uint16(36635), + 55: uint16(36636), + 56: uint16(36637), + 57: uint16(36638), + 58: uint16(36639), + 59: uint16(36640), + 60: uint16(36641), + 61: uint16(36642), + 62: uint16(36643), + 63: uint16(36644), + 64: uint16(36645), + 65: uint16(36646), + 66: uint16(36647), + 67: uint16(36648), + 68: uint16(36649), + 69: uint16(36650), + 70: uint16(36651), + 71: uint16(36652), + 72: uint16(36653), + 73: uint16(36654), + 74: uint16(36655), + 75: uint16(36656), + 76: uint16(36657), + 77: uint16(36658), + 78: uint16(36659), + 79: uint16(36660), + 80: uint16(36661), + 81: uint16(36662), + 82: uint16(36663), + 83: uint16(36664), + 84: uint16(36665), + 85: uint16(36666), + 86: uint16(36667), + 87: uint16(36668), + 88: uint16(36669), + 89: uint16(36670), + 90: uint16(36671), + 91: uint16(36672), + 92: uint16(36673), + 93: uint16(36674), + 94: uint16(36675), + 95: uint16(36676), + 96: uint16(33640), + 97: uint16(33563), + 98: uint16(33641), + 99: uint16(33644), + 100: uint16(33642), + 101: uint16(33645), + 102: uint16(33646), + 103: uint16(33712), + 104: uint16(33656), + 105: uint16(33715), + 106: uint16(33716), + 107: uint16(33696), + 108: uint16(33706), + 109: uint16(33683), + 110: uint16(33692), + 111: uint16(33669), + 112: uint16(33660), + 113: uint16(33718), + 114: uint16(33705), + 115: uint16(33661), + 116: uint16(33720), + 117: uint16(33659), + 118: uint16(33688), + 119: uint16(33694), + 120: uint16(33704), + 121: uint16(33722), + 122: uint16(33724), + 123: uint16(33729), + 124: uint16(33793), + 125: uint16(33765), + 126: uint16(33752), + 127: uint16(22535), + 128: uint16(33816), + 129: uint16(33803), + 130: uint16(33757), + 131: uint16(33789), + 132: uint16(33750), + 133: uint16(33820), + 134: uint16(33848), + 135: uint16(33809), + 136: uint16(33798), + 137: uint16(33748), + 138: uint16(33759), + 139: uint16(33807), + 140: uint16(33795), + 141: uint16(33784), + 142: uint16(33785), + 143: uint16(33770), + 144: uint16(33733), + 145: uint16(33728), + 146: uint16(33830), + 147: uint16(33776), + 148: uint16(33761), + 149: uint16(33884), + 150: uint16(33873), + 151: uint16(33882), + 152: uint16(33881), + 153: uint16(33907), + 154: uint16(33927), + 155: uint16(33928), + 156: uint16(33914), + 157: uint16(33929), + 158: uint16(33912), + 159: uint16(33852), + 160: uint16(33862), + 161: uint16(33897), + 162: uint16(33910), + 163: uint16(33932), + 164: uint16(33934), + 165: uint16(33841), + 166: uint16(33901), + 167: uint16(33985), + 168: uint16(33997), + 169: uint16(34000), + 170: uint16(34022), + 171: uint16(33981), + 172: uint16(34003), + 173: uint16(33994), + 174: uint16(33983), + 175: uint16(33978), + 176: uint16(34016), + 177: uint16(33953), + 178: uint16(33977), + 179: uint16(33972), + 180: uint16(33943), + 181: uint16(34021), + 182: uint16(34019), + 183: uint16(34060), + 184: uint16(29965), + 185: uint16(34104), + 186: uint16(34032), + 187: uint16(34105), + 188: uint16(34079), + 189: uint16(34106), + }, + 93: { + 0: uint16(36677), + 1: uint16(36678), + 2: uint16(36679), + 3: uint16(36680), + 4: uint16(36681), + 5: uint16(36682), + 6: uint16(36683), + 7: uint16(36684), + 8: uint16(36685), + 9: uint16(36686), + 10: uint16(36687), + 11: uint16(36688), + 12: uint16(36689), + 13: uint16(36690), + 14: uint16(36691), + 15: uint16(36692), + 16: uint16(36693), + 17: uint16(36694), + 18: uint16(36695), + 19: uint16(36696), + 20: uint16(36697), + 21: uint16(36698), + 22: uint16(36699), + 23: uint16(36700), + 24: uint16(36701), + 25: uint16(36702), + 26: uint16(36703), + 27: uint16(36704), + 28: uint16(36705), + 29: uint16(36706), + 30: uint16(36707), + 31: uint16(36708), + 32: uint16(36709), + 33: uint16(36714), + 34: uint16(36736), + 35: uint16(36748), + 36: uint16(36754), + 37: uint16(36765), + 38: uint16(36768), + 39: uint16(36769), + 40: uint16(36770), + 41: uint16(36772), + 42: uint16(36773), + 43: uint16(36774), + 44: uint16(36775), + 45: uint16(36778), + 46: uint16(36780), + 47: uint16(36781), + 48: uint16(36782), + 49: uint16(36783), + 50: uint16(36786), + 51: uint16(36787), + 52: uint16(36788), + 53: uint16(36789), + 54: uint16(36791), + 55: uint16(36792), + 56: uint16(36794), + 57: uint16(36795), + 58: uint16(36796), + 59: uint16(36799), + 60: uint16(36800), + 61: uint16(36803), + 62: uint16(36806), + 63: uint16(36809), + 64: uint16(36810), + 65: uint16(36811), + 66: uint16(36812), + 67: uint16(36813), + 68: uint16(36815), + 69: uint16(36818), + 70: uint16(36822), + 71: uint16(36823), + 72: uint16(36826), + 73: uint16(36832), + 74: uint16(36833), + 75: uint16(36835), + 76: uint16(36839), + 77: uint16(36844), + 78: uint16(36847), + 79: uint16(36849), + 80: uint16(36850), + 81: uint16(36852), + 82: uint16(36853), + 83: uint16(36854), + 84: uint16(36858), + 85: uint16(36859), + 86: uint16(36860), + 87: uint16(36862), + 88: uint16(36863), + 89: uint16(36871), + 90: uint16(36872), + 91: uint16(36876), + 92: uint16(36878), + 93: uint16(36883), + 94: uint16(36885), + 95: uint16(36888), + 96: uint16(34134), + 97: uint16(34107), + 98: uint16(34047), + 99: uint16(34044), + 100: uint16(34137), + 101: uint16(34120), + 102: uint16(34152), + 103: uint16(34148), + 104: uint16(34142), + 105: uint16(34170), + 106: uint16(30626), + 107: uint16(34115), + 108: uint16(34162), + 109: uint16(34171), + 110: uint16(34212), + 111: uint16(34216), + 112: uint16(34183), + 113: uint16(34191), + 114: uint16(34169), + 115: uint16(34222), + 116: uint16(34204), + 117: uint16(34181), + 118: uint16(34233), + 119: uint16(34231), + 120: uint16(34224), + 121: uint16(34259), + 122: uint16(34241), + 123: uint16(34268), + 124: uint16(34303), + 125: uint16(34343), + 126: uint16(34309), + 127: uint16(34345), + 128: uint16(34326), + 129: uint16(34364), + 130: uint16(24318), + 131: uint16(24328), + 132: uint16(22844), + 133: uint16(22849), + 134: uint16(32823), + 135: uint16(22869), + 136: uint16(22874), + 137: uint16(22872), + 138: uint16(21263), + 139: uint16(23586), + 140: uint16(23589), + 141: uint16(23596), + 142: uint16(23604), + 143: uint16(25164), + 144: uint16(25194), + 145: uint16(25247), + 146: uint16(25275), + 147: uint16(25290), + 148: uint16(25306), + 149: uint16(25303), + 150: uint16(25326), + 151: uint16(25378), + 152: uint16(25334), + 153: uint16(25401), + 154: uint16(25419), + 155: uint16(25411), + 156: uint16(25517), + 157: uint16(25590), + 158: uint16(25457), + 159: uint16(25466), + 160: uint16(25486), + 161: uint16(25524), + 162: uint16(25453), + 163: uint16(25516), + 164: uint16(25482), + 165: uint16(25449), + 166: uint16(25518), + 167: uint16(25532), + 168: uint16(25586), + 169: uint16(25592), + 170: uint16(25568), + 171: uint16(25599), + 172: uint16(25540), + 173: uint16(25566), + 174: uint16(25550), + 175: uint16(25682), + 176: uint16(25542), + 177: uint16(25534), + 178: uint16(25669), + 179: uint16(25665), + 180: uint16(25611), + 181: uint16(25627), + 182: uint16(25632), + 183: uint16(25612), + 184: uint16(25638), + 185: uint16(25633), + 186: uint16(25694), + 187: uint16(25732), + 188: uint16(25709), + 189: uint16(25750), + }, + 94: { + 0: uint16(36889), + 1: uint16(36892), + 2: uint16(36899), + 3: uint16(36900), + 4: uint16(36901), + 5: uint16(36903), + 6: uint16(36904), + 7: uint16(36905), + 8: uint16(36906), + 9: uint16(36907), + 10: uint16(36908), + 11: uint16(36912), + 12: uint16(36913), + 13: uint16(36914), + 14: uint16(36915), + 15: uint16(36916), + 16: uint16(36919), + 17: uint16(36921), + 18: uint16(36922), + 19: uint16(36925), + 20: uint16(36927), + 21: uint16(36928), + 22: uint16(36931), + 23: uint16(36933), + 24: uint16(36934), + 25: uint16(36936), + 26: uint16(36937), + 27: uint16(36938), + 28: uint16(36939), + 29: uint16(36940), + 30: uint16(36942), + 31: uint16(36948), + 32: uint16(36949), + 33: uint16(36950), + 34: uint16(36953), + 35: uint16(36954), + 36: uint16(36956), + 37: uint16(36957), + 38: uint16(36958), + 39: uint16(36959), + 40: uint16(36960), + 41: uint16(36961), + 42: uint16(36964), + 43: uint16(36966), + 44: uint16(36967), + 45: uint16(36969), + 46: uint16(36970), + 47: uint16(36971), + 48: uint16(36972), + 49: uint16(36975), + 50: uint16(36976), + 51: uint16(36977), + 52: uint16(36978), + 53: uint16(36979), + 54: uint16(36982), + 55: uint16(36983), + 56: uint16(36984), + 57: uint16(36985), + 58: uint16(36986), + 59: uint16(36987), + 60: uint16(36988), + 61: uint16(36990), + 62: uint16(36993), + 63: uint16(36996), + 64: uint16(36997), + 65: uint16(36998), + 66: uint16(36999), + 67: uint16(37001), + 68: uint16(37002), + 69: uint16(37004), + 70: uint16(37005), + 71: uint16(37006), + 72: uint16(37007), + 73: uint16(37008), + 74: uint16(37010), + 75: uint16(37012), + 76: uint16(37014), + 77: uint16(37016), + 78: uint16(37018), + 79: uint16(37020), + 80: uint16(37022), + 81: uint16(37023), + 82: uint16(37024), + 83: uint16(37028), + 84: uint16(37029), + 85: uint16(37031), + 86: uint16(37032), + 87: uint16(37033), + 88: uint16(37035), + 89: uint16(37037), + 90: uint16(37042), + 91: uint16(37047), + 92: uint16(37052), + 93: uint16(37053), + 94: uint16(37055), + 95: uint16(37056), + 96: uint16(25722), + 97: uint16(25783), + 98: uint16(25784), + 99: uint16(25753), + 100: uint16(25786), + 101: uint16(25792), + 102: uint16(25808), + 103: uint16(25815), + 104: uint16(25828), + 105: uint16(25826), + 106: uint16(25865), + 107: uint16(25893), + 108: uint16(25902), + 109: uint16(24331), + 110: uint16(24530), + 111: uint16(29977), + 112: uint16(24337), + 113: uint16(21343), + 114: uint16(21489), + 115: uint16(21501), + 116: uint16(21481), + 117: uint16(21480), + 118: uint16(21499), + 119: uint16(21522), + 120: uint16(21526), + 121: uint16(21510), + 122: uint16(21579), + 123: uint16(21586), + 124: uint16(21587), + 125: uint16(21588), + 126: uint16(21590), + 127: uint16(21571), + 128: uint16(21537), + 129: uint16(21591), + 130: uint16(21593), + 131: uint16(21539), + 132: uint16(21554), + 133: uint16(21634), + 134: uint16(21652), + 135: uint16(21623), + 136: uint16(21617), + 137: uint16(21604), + 138: uint16(21658), + 139: uint16(21659), + 140: uint16(21636), + 141: uint16(21622), + 142: uint16(21606), + 143: uint16(21661), + 144: uint16(21712), + 145: uint16(21677), + 146: uint16(21698), + 147: uint16(21684), + 148: uint16(21714), + 149: uint16(21671), + 150: uint16(21670), + 151: uint16(21715), + 152: uint16(21716), + 153: uint16(21618), + 154: uint16(21667), + 155: uint16(21717), + 156: uint16(21691), + 157: uint16(21695), + 158: uint16(21708), + 159: uint16(21721), + 160: uint16(21722), + 161: uint16(21724), + 162: uint16(21673), + 163: uint16(21674), + 164: uint16(21668), + 165: uint16(21725), + 166: uint16(21711), + 167: uint16(21726), + 168: uint16(21787), + 169: uint16(21735), + 170: uint16(21792), + 171: uint16(21757), + 172: uint16(21780), + 173: uint16(21747), + 174: uint16(21794), + 175: uint16(21795), + 176: uint16(21775), + 177: uint16(21777), + 178: uint16(21799), + 179: uint16(21802), + 180: uint16(21863), + 181: uint16(21903), + 182: uint16(21941), + 183: uint16(21833), + 184: uint16(21869), + 185: uint16(21825), + 186: uint16(21845), + 187: uint16(21823), + 188: uint16(21840), + 189: uint16(21820), + }, + 95: { + 0: uint16(37058), + 1: uint16(37059), + 2: uint16(37062), + 3: uint16(37064), + 4: uint16(37065), + 5: uint16(37067), + 6: uint16(37068), + 7: uint16(37069), + 8: uint16(37074), + 9: uint16(37076), + 10: uint16(37077), + 11: uint16(37078), + 12: uint16(37080), + 13: uint16(37081), + 14: uint16(37082), + 15: uint16(37086), + 16: uint16(37087), + 17: uint16(37088), + 18: uint16(37091), + 19: uint16(37092), + 20: uint16(37093), + 21: uint16(37097), + 22: uint16(37098), + 23: uint16(37100), + 24: uint16(37102), + 25: uint16(37104), + 26: uint16(37105), + 27: uint16(37106), + 28: uint16(37107), + 29: uint16(37109), + 30: uint16(37110), + 31: uint16(37111), + 32: uint16(37113), + 33: uint16(37114), + 34: uint16(37115), + 35: uint16(37116), + 36: uint16(37119), + 37: uint16(37120), + 38: uint16(37121), + 39: uint16(37123), + 40: uint16(37125), + 41: uint16(37126), + 42: uint16(37127), + 43: uint16(37128), + 44: uint16(37129), + 45: uint16(37130), + 46: uint16(37131), + 47: uint16(37132), + 48: uint16(37133), + 49: uint16(37134), + 50: uint16(37135), + 51: uint16(37136), + 52: uint16(37137), + 53: uint16(37138), + 54: uint16(37139), + 55: uint16(37140), + 56: uint16(37141), + 57: uint16(37142), + 58: uint16(37143), + 59: uint16(37144), + 60: uint16(37146), + 61: uint16(37147), + 62: uint16(37148), + 63: uint16(37149), + 64: uint16(37151), + 65: uint16(37152), + 66: uint16(37153), + 67: uint16(37156), + 68: uint16(37157), + 69: uint16(37158), + 70: uint16(37159), + 71: uint16(37160), + 72: uint16(37161), + 73: uint16(37162), + 74: uint16(37163), + 75: uint16(37164), + 76: uint16(37165), + 77: uint16(37166), + 78: uint16(37168), + 79: uint16(37170), + 80: uint16(37171), + 81: uint16(37172), + 82: uint16(37173), + 83: uint16(37174), + 84: uint16(37175), + 85: uint16(37176), + 86: uint16(37178), + 87: uint16(37179), + 88: uint16(37180), + 89: uint16(37181), + 90: uint16(37182), + 91: uint16(37183), + 92: uint16(37184), + 93: uint16(37185), + 94: uint16(37186), + 95: uint16(37188), + 96: uint16(21815), + 97: uint16(21846), + 98: uint16(21877), + 99: uint16(21878), + 100: uint16(21879), + 101: uint16(21811), + 102: uint16(21808), + 103: uint16(21852), + 104: uint16(21899), + 105: uint16(21970), + 106: uint16(21891), + 107: uint16(21937), + 108: uint16(21945), + 109: uint16(21896), + 110: uint16(21889), + 111: uint16(21919), + 112: uint16(21886), + 113: uint16(21974), + 114: uint16(21905), + 115: uint16(21883), + 116: uint16(21983), + 117: uint16(21949), + 118: uint16(21950), + 119: uint16(21908), + 120: uint16(21913), + 121: uint16(21994), + 122: uint16(22007), + 123: uint16(21961), + 124: uint16(22047), + 125: uint16(21969), + 126: uint16(21995), + 127: uint16(21996), + 128: uint16(21972), + 129: uint16(21990), + 130: uint16(21981), + 131: uint16(21956), + 132: uint16(21999), + 133: uint16(21989), + 134: uint16(22002), + 135: uint16(22003), + 136: uint16(21964), + 137: uint16(21965), + 138: uint16(21992), + 139: uint16(22005), + 140: uint16(21988), + 141: uint16(36756), + 142: uint16(22046), + 143: uint16(22024), + 144: uint16(22028), + 145: uint16(22017), + 146: uint16(22052), + 147: uint16(22051), + 148: uint16(22014), + 149: uint16(22016), + 150: uint16(22055), + 151: uint16(22061), + 152: uint16(22104), + 153: uint16(22073), + 154: uint16(22103), + 155: uint16(22060), + 156: uint16(22093), + 157: uint16(22114), + 158: uint16(22105), + 159: uint16(22108), + 160: uint16(22092), + 161: uint16(22100), + 162: uint16(22150), + 163: uint16(22116), + 164: uint16(22129), + 165: uint16(22123), + 166: uint16(22139), + 167: uint16(22140), + 168: uint16(22149), + 169: uint16(22163), + 170: uint16(22191), + 171: uint16(22228), + 172: uint16(22231), + 173: uint16(22237), + 174: uint16(22241), + 175: uint16(22261), + 176: uint16(22251), + 177: uint16(22265), + 178: uint16(22271), + 179: uint16(22276), + 180: uint16(22282), + 181: uint16(22281), + 182: uint16(22300), + 183: uint16(24079), + 184: uint16(24089), + 185: uint16(24084), + 186: uint16(24081), + 187: uint16(24113), + 188: uint16(24123), + 189: uint16(24124), + }, + 96: { + 0: uint16(37189), + 1: uint16(37191), + 2: uint16(37192), + 3: uint16(37201), + 4: uint16(37203), + 5: uint16(37204), + 6: uint16(37205), + 7: uint16(37206), + 8: uint16(37208), + 9: uint16(37209), + 10: uint16(37211), + 11: uint16(37212), + 12: uint16(37215), + 13: uint16(37216), + 14: uint16(37222), + 15: uint16(37223), + 16: uint16(37224), + 17: uint16(37227), + 18: uint16(37229), + 19: uint16(37235), + 20: uint16(37242), + 21: uint16(37243), + 22: uint16(37244), + 23: uint16(37248), + 24: uint16(37249), + 25: uint16(37250), + 26: uint16(37251), + 27: uint16(37252), + 28: uint16(37254), + 29: uint16(37256), + 30: uint16(37258), + 31: uint16(37262), + 32: uint16(37263), + 33: uint16(37267), + 34: uint16(37268), + 35: uint16(37269), + 36: uint16(37270), + 37: uint16(37271), + 38: uint16(37272), + 39: uint16(37273), + 40: uint16(37276), + 41: uint16(37277), + 42: uint16(37278), + 43: uint16(37279), + 44: uint16(37280), + 45: uint16(37281), + 46: uint16(37284), + 47: uint16(37285), + 48: uint16(37286), + 49: uint16(37287), + 50: uint16(37288), + 51: uint16(37289), + 52: uint16(37291), + 53: uint16(37292), + 54: uint16(37296), + 55: uint16(37297), + 56: uint16(37298), + 57: uint16(37299), + 58: uint16(37302), + 59: uint16(37303), + 60: uint16(37304), + 61: uint16(37305), + 62: uint16(37307), + 63: uint16(37308), + 64: uint16(37309), + 65: uint16(37310), + 66: uint16(37311), + 67: uint16(37312), + 68: uint16(37313), + 69: uint16(37314), + 70: uint16(37315), + 71: uint16(37316), + 72: uint16(37317), + 73: uint16(37318), + 74: uint16(37320), + 75: uint16(37323), + 76: uint16(37328), + 77: uint16(37330), + 78: uint16(37331), + 79: uint16(37332), + 80: uint16(37333), + 81: uint16(37334), + 82: uint16(37335), + 83: uint16(37336), + 84: uint16(37337), + 85: uint16(37338), + 86: uint16(37339), + 87: uint16(37341), + 88: uint16(37342), + 89: uint16(37343), + 90: uint16(37344), + 91: uint16(37345), + 92: uint16(37346), + 93: uint16(37347), + 94: uint16(37348), + 95: uint16(37349), + 96: uint16(24119), + 97: uint16(24132), + 98: uint16(24148), + 99: uint16(24155), + 100: uint16(24158), + 101: uint16(24161), + 102: uint16(23692), + 103: uint16(23674), + 104: uint16(23693), + 105: uint16(23696), + 106: uint16(23702), + 107: uint16(23688), + 108: uint16(23704), + 109: uint16(23705), + 110: uint16(23697), + 111: uint16(23706), + 112: uint16(23708), + 113: uint16(23733), + 114: uint16(23714), + 115: uint16(23741), + 116: uint16(23724), + 117: uint16(23723), + 118: uint16(23729), + 119: uint16(23715), + 120: uint16(23745), + 121: uint16(23735), + 122: uint16(23748), + 123: uint16(23762), + 124: uint16(23780), + 125: uint16(23755), + 126: uint16(23781), + 127: uint16(23810), + 128: uint16(23811), + 129: uint16(23847), + 130: uint16(23846), + 131: uint16(23854), + 132: uint16(23844), + 133: uint16(23838), + 134: uint16(23814), + 135: uint16(23835), + 136: uint16(23896), + 137: uint16(23870), + 138: uint16(23860), + 139: uint16(23869), + 140: uint16(23916), + 141: uint16(23899), + 142: uint16(23919), + 143: uint16(23901), + 144: uint16(23915), + 145: uint16(23883), + 146: uint16(23882), + 147: uint16(23913), + 148: uint16(23924), + 149: uint16(23938), + 150: uint16(23961), + 151: uint16(23965), + 152: uint16(35955), + 153: uint16(23991), + 154: uint16(24005), + 155: uint16(24435), + 156: uint16(24439), + 157: uint16(24450), + 158: uint16(24455), + 159: uint16(24457), + 160: uint16(24460), + 161: uint16(24469), + 162: uint16(24473), + 163: uint16(24476), + 164: uint16(24488), + 165: uint16(24493), + 166: uint16(24501), + 167: uint16(24508), + 168: uint16(34914), + 169: uint16(24417), + 170: uint16(29357), + 171: uint16(29360), + 172: uint16(29364), + 173: uint16(29367), + 174: uint16(29368), + 175: uint16(29379), + 176: uint16(29377), + 177: uint16(29390), + 178: uint16(29389), + 179: uint16(29394), + 180: uint16(29416), + 181: uint16(29423), + 182: uint16(29417), + 183: uint16(29426), + 184: uint16(29428), + 185: uint16(29431), + 186: uint16(29441), + 187: uint16(29427), + 188: uint16(29443), + 189: uint16(29434), + }, + 97: { + 0: uint16(37350), + 1: uint16(37351), + 2: uint16(37352), + 3: uint16(37353), + 4: uint16(37354), + 5: uint16(37355), + 6: uint16(37356), + 7: uint16(37357), + 8: uint16(37358), + 9: uint16(37359), + 10: uint16(37360), + 11: uint16(37361), + 12: uint16(37362), + 13: uint16(37363), + 14: uint16(37364), + 15: uint16(37365), + 16: uint16(37366), + 17: uint16(37367), + 18: uint16(37368), + 19: uint16(37369), + 20: uint16(37370), + 21: uint16(37371), + 22: uint16(37372), + 23: uint16(37373), + 24: uint16(37374), + 25: uint16(37375), + 26: uint16(37376), + 27: uint16(37377), + 28: uint16(37378), + 29: uint16(37379), + 30: uint16(37380), + 31: uint16(37381), + 32: uint16(37382), + 33: uint16(37383), + 34: uint16(37384), + 35: uint16(37385), + 36: uint16(37386), + 37: uint16(37387), + 38: uint16(37388), + 39: uint16(37389), + 40: uint16(37390), + 41: uint16(37391), + 42: uint16(37392), + 43: uint16(37393), + 44: uint16(37394), + 45: uint16(37395), + 46: uint16(37396), + 47: uint16(37397), + 48: uint16(37398), + 49: uint16(37399), + 50: uint16(37400), + 51: uint16(37401), + 52: uint16(37402), + 53: uint16(37403), + 54: uint16(37404), + 55: uint16(37405), + 56: uint16(37406), + 57: uint16(37407), + 58: uint16(37408), + 59: uint16(37409), + 60: uint16(37410), + 61: uint16(37411), + 62: uint16(37412), + 63: uint16(37413), + 64: uint16(37414), + 65: uint16(37415), + 66: uint16(37416), + 67: uint16(37417), + 68: uint16(37418), + 69: uint16(37419), + 70: uint16(37420), + 71: uint16(37421), + 72: uint16(37422), + 73: uint16(37423), + 74: uint16(37424), + 75: uint16(37425), + 76: uint16(37426), + 77: uint16(37427), + 78: uint16(37428), + 79: uint16(37429), + 80: uint16(37430), + 81: uint16(37431), + 82: uint16(37432), + 83: uint16(37433), + 84: uint16(37434), + 85: uint16(37435), + 86: uint16(37436), + 87: uint16(37437), + 88: uint16(37438), + 89: uint16(37439), + 90: uint16(37440), + 91: uint16(37441), + 92: uint16(37442), + 93: uint16(37443), + 94: uint16(37444), + 95: uint16(37445), + 96: uint16(29435), + 97: uint16(29463), + 98: uint16(29459), + 99: uint16(29473), + 100: uint16(29450), + 101: uint16(29470), + 102: uint16(29469), + 103: uint16(29461), + 104: uint16(29474), + 105: uint16(29497), + 106: uint16(29477), + 107: uint16(29484), + 108: uint16(29496), + 109: uint16(29489), + 110: uint16(29520), + 111: uint16(29517), + 112: uint16(29527), + 113: uint16(29536), + 114: uint16(29548), + 115: uint16(29551), + 116: uint16(29566), + 117: uint16(33307), + 118: uint16(22821), + 119: uint16(39143), + 120: uint16(22820), + 121: uint16(22786), + 122: uint16(39267), + 123: uint16(39271), + 124: uint16(39272), + 125: uint16(39273), + 126: uint16(39274), + 127: uint16(39275), + 128: uint16(39276), + 129: uint16(39284), + 130: uint16(39287), + 131: uint16(39293), + 132: uint16(39296), + 133: uint16(39300), + 134: uint16(39303), + 135: uint16(39306), + 136: uint16(39309), + 137: uint16(39312), + 138: uint16(39313), + 139: uint16(39315), + 140: uint16(39316), + 141: uint16(39317), + 142: uint16(24192), + 143: uint16(24209), + 144: uint16(24203), + 145: uint16(24214), + 146: uint16(24229), + 147: uint16(24224), + 148: uint16(24249), + 149: uint16(24245), + 150: uint16(24254), + 151: uint16(24243), + 152: uint16(36179), + 153: uint16(24274), + 154: uint16(24273), + 155: uint16(24283), + 156: uint16(24296), + 157: uint16(24298), + 158: uint16(33210), + 159: uint16(24516), + 160: uint16(24521), + 161: uint16(24534), + 162: uint16(24527), + 163: uint16(24579), + 164: uint16(24558), + 165: uint16(24580), + 166: uint16(24545), + 167: uint16(24548), + 168: uint16(24574), + 169: uint16(24581), + 170: uint16(24582), + 171: uint16(24554), + 172: uint16(24557), + 173: uint16(24568), + 174: uint16(24601), + 175: uint16(24629), + 176: uint16(24614), + 177: uint16(24603), + 178: uint16(24591), + 179: uint16(24589), + 180: uint16(24617), + 181: uint16(24619), + 182: uint16(24586), + 183: uint16(24639), + 184: uint16(24609), + 185: uint16(24696), + 186: uint16(24697), + 187: uint16(24699), + 188: uint16(24698), + 189: uint16(24642), + }, + 98: { + 0: uint16(37446), + 1: uint16(37447), + 2: uint16(37448), + 3: uint16(37449), + 4: uint16(37450), + 5: uint16(37451), + 6: uint16(37452), + 7: uint16(37453), + 8: uint16(37454), + 9: uint16(37455), + 10: uint16(37456), + 11: uint16(37457), + 12: uint16(37458), + 13: uint16(37459), + 14: uint16(37460), + 15: uint16(37461), + 16: uint16(37462), + 17: uint16(37463), + 18: uint16(37464), + 19: uint16(37465), + 20: uint16(37466), + 21: uint16(37467), + 22: uint16(37468), + 23: uint16(37469), + 24: uint16(37470), + 25: uint16(37471), + 26: uint16(37472), + 27: uint16(37473), + 28: uint16(37474), + 29: uint16(37475), + 30: uint16(37476), + 31: uint16(37477), + 32: uint16(37478), + 33: uint16(37479), + 34: uint16(37480), + 35: uint16(37481), + 36: uint16(37482), + 37: uint16(37483), + 38: uint16(37484), + 39: uint16(37485), + 40: uint16(37486), + 41: uint16(37487), + 42: uint16(37488), + 43: uint16(37489), + 44: uint16(37490), + 45: uint16(37491), + 46: uint16(37493), + 47: uint16(37494), + 48: uint16(37495), + 49: uint16(37496), + 50: uint16(37497), + 51: uint16(37498), + 52: uint16(37499), + 53: uint16(37500), + 54: uint16(37501), + 55: uint16(37502), + 56: uint16(37503), + 57: uint16(37504), + 58: uint16(37505), + 59: uint16(37506), + 60: uint16(37507), + 61: uint16(37508), + 62: uint16(37509), + 63: uint16(37510), + 64: uint16(37511), + 65: uint16(37512), + 66: uint16(37513), + 67: uint16(37514), + 68: uint16(37515), + 69: uint16(37516), + 70: uint16(37517), + 71: uint16(37519), + 72: uint16(37520), + 73: uint16(37521), + 74: uint16(37522), + 75: uint16(37523), + 76: uint16(37524), + 77: uint16(37525), + 78: uint16(37526), + 79: uint16(37527), + 80: uint16(37528), + 81: uint16(37529), + 82: uint16(37530), + 83: uint16(37531), + 84: uint16(37532), + 85: uint16(37533), + 86: uint16(37534), + 87: uint16(37535), + 88: uint16(37536), + 89: uint16(37537), + 90: uint16(37538), + 91: uint16(37539), + 92: uint16(37540), + 93: uint16(37541), + 94: uint16(37542), + 95: uint16(37543), + 96: uint16(24682), + 97: uint16(24701), + 98: uint16(24726), + 99: uint16(24730), + 100: uint16(24749), + 101: uint16(24733), + 102: uint16(24707), + 103: uint16(24722), + 104: uint16(24716), + 105: uint16(24731), + 106: uint16(24812), + 107: uint16(24763), + 108: uint16(24753), + 109: uint16(24797), + 110: uint16(24792), + 111: uint16(24774), + 112: uint16(24794), + 113: uint16(24756), + 114: uint16(24864), + 115: uint16(24870), + 116: uint16(24853), + 117: uint16(24867), + 118: uint16(24820), + 119: uint16(24832), + 120: uint16(24846), + 121: uint16(24875), + 122: uint16(24906), + 123: uint16(24949), + 124: uint16(25004), + 125: uint16(24980), + 126: uint16(24999), + 127: uint16(25015), + 128: uint16(25044), + 129: uint16(25077), + 130: uint16(24541), + 131: uint16(38579), + 132: uint16(38377), + 133: uint16(38379), + 134: uint16(38385), + 135: uint16(38387), + 136: uint16(38389), + 137: uint16(38390), + 138: uint16(38396), + 139: uint16(38398), + 140: uint16(38403), + 141: uint16(38404), + 142: uint16(38406), + 143: uint16(38408), + 144: uint16(38410), + 145: uint16(38411), + 146: uint16(38412), + 147: uint16(38413), + 148: uint16(38415), + 149: uint16(38418), + 150: uint16(38421), + 151: uint16(38422), + 152: uint16(38423), + 153: uint16(38425), + 154: uint16(38426), + 155: uint16(20012), + 156: uint16(29247), + 157: uint16(25109), + 158: uint16(27701), + 159: uint16(27732), + 160: uint16(27740), + 161: uint16(27722), + 162: uint16(27811), + 163: uint16(27781), + 164: uint16(27792), + 165: uint16(27796), + 166: uint16(27788), + 167: uint16(27752), + 168: uint16(27753), + 169: uint16(27764), + 170: uint16(27766), + 171: uint16(27782), + 172: uint16(27817), + 173: uint16(27856), + 174: uint16(27860), + 175: uint16(27821), + 176: uint16(27895), + 177: uint16(27896), + 178: uint16(27889), + 179: uint16(27863), + 180: uint16(27826), + 181: uint16(27872), + 182: uint16(27862), + 183: uint16(27898), + 184: uint16(27883), + 185: uint16(27886), + 186: uint16(27825), + 187: uint16(27859), + 188: uint16(27887), + 189: uint16(27902), + }, + 99: { + 0: uint16(37544), + 1: uint16(37545), + 2: uint16(37546), + 3: uint16(37547), + 4: uint16(37548), + 5: uint16(37549), + 6: uint16(37551), + 7: uint16(37552), + 8: uint16(37553), + 9: uint16(37554), + 10: uint16(37555), + 11: uint16(37556), + 12: uint16(37557), + 13: uint16(37558), + 14: uint16(37559), + 15: uint16(37560), + 16: uint16(37561), + 17: uint16(37562), + 18: uint16(37563), + 19: uint16(37564), + 20: uint16(37565), + 21: uint16(37566), + 22: uint16(37567), + 23: uint16(37568), + 24: uint16(37569), + 25: uint16(37570), + 26: uint16(37571), + 27: uint16(37572), + 28: uint16(37573), + 29: uint16(37574), + 30: uint16(37575), + 31: uint16(37577), + 32: uint16(37578), + 33: uint16(37579), + 34: uint16(37580), + 35: uint16(37581), + 36: uint16(37582), + 37: uint16(37583), + 38: uint16(37584), + 39: uint16(37585), + 40: uint16(37586), + 41: uint16(37587), + 42: uint16(37588), + 43: uint16(37589), + 44: uint16(37590), + 45: uint16(37591), + 46: uint16(37592), + 47: uint16(37593), + 48: uint16(37594), + 49: uint16(37595), + 50: uint16(37596), + 51: uint16(37597), + 52: uint16(37598), + 53: uint16(37599), + 54: uint16(37600), + 55: uint16(37601), + 56: uint16(37602), + 57: uint16(37603), + 58: uint16(37604), + 59: uint16(37605), + 60: uint16(37606), + 61: uint16(37607), + 62: uint16(37608), + 63: uint16(37609), + 64: uint16(37610), + 65: uint16(37611), + 66: uint16(37612), + 67: uint16(37613), + 68: uint16(37614), + 69: uint16(37615), + 70: uint16(37616), + 71: uint16(37617), + 72: uint16(37618), + 73: uint16(37619), + 74: uint16(37620), + 75: uint16(37621), + 76: uint16(37622), + 77: uint16(37623), + 78: uint16(37624), + 79: uint16(37625), + 80: uint16(37626), + 81: uint16(37627), + 82: uint16(37628), + 83: uint16(37629), + 84: uint16(37630), + 85: uint16(37631), + 86: uint16(37632), + 87: uint16(37633), + 88: uint16(37634), + 89: uint16(37635), + 90: uint16(37636), + 91: uint16(37637), + 92: uint16(37638), + 93: uint16(37639), + 94: uint16(37640), + 95: uint16(37641), + 96: uint16(27961), + 97: uint16(27943), + 98: uint16(27916), + 99: uint16(27971), + 100: uint16(27976), + 101: uint16(27911), + 102: uint16(27908), + 103: uint16(27929), + 104: uint16(27918), + 105: uint16(27947), + 106: uint16(27981), + 107: uint16(27950), + 108: uint16(27957), + 109: uint16(27930), + 110: uint16(27983), + 111: uint16(27986), + 112: uint16(27988), + 113: uint16(27955), + 114: uint16(28049), + 115: uint16(28015), + 116: uint16(28062), + 117: uint16(28064), + 118: uint16(27998), + 119: uint16(28051), + 120: uint16(28052), + 121: uint16(27996), + 122: uint16(28000), + 123: uint16(28028), + 124: uint16(28003), + 125: uint16(28186), + 126: uint16(28103), + 127: uint16(28101), + 128: uint16(28126), + 129: uint16(28174), + 130: uint16(28095), + 131: uint16(28128), + 132: uint16(28177), + 133: uint16(28134), + 134: uint16(28125), + 135: uint16(28121), + 136: uint16(28182), + 137: uint16(28075), + 138: uint16(28172), + 139: uint16(28078), + 140: uint16(28203), + 141: uint16(28270), + 142: uint16(28238), + 143: uint16(28267), + 144: uint16(28338), + 145: uint16(28255), + 146: uint16(28294), + 147: uint16(28243), + 148: uint16(28244), + 149: uint16(28210), + 150: uint16(28197), + 151: uint16(28228), + 152: uint16(28383), + 153: uint16(28337), + 154: uint16(28312), + 155: uint16(28384), + 156: uint16(28461), + 157: uint16(28386), + 158: uint16(28325), + 159: uint16(28327), + 160: uint16(28349), + 161: uint16(28347), + 162: uint16(28343), + 163: uint16(28375), + 164: uint16(28340), + 165: uint16(28367), + 166: uint16(28303), + 167: uint16(28354), + 168: uint16(28319), + 169: uint16(28514), + 170: uint16(28486), + 171: uint16(28487), + 172: uint16(28452), + 173: uint16(28437), + 174: uint16(28409), + 175: uint16(28463), + 176: uint16(28470), + 177: uint16(28491), + 178: uint16(28532), + 179: uint16(28458), + 180: uint16(28425), + 181: uint16(28457), + 182: uint16(28553), + 183: uint16(28557), + 184: uint16(28556), + 185: uint16(28536), + 186: uint16(28530), + 187: uint16(28540), + 188: uint16(28538), + 189: uint16(28625), + }, + 100: { + 0: uint16(37642), + 1: uint16(37643), + 2: uint16(37644), + 3: uint16(37645), + 4: uint16(37646), + 5: uint16(37647), + 6: uint16(37648), + 7: uint16(37649), + 8: uint16(37650), + 9: uint16(37651), + 10: uint16(37652), + 11: uint16(37653), + 12: uint16(37654), + 13: uint16(37655), + 14: uint16(37656), + 15: uint16(37657), + 16: uint16(37658), + 17: uint16(37659), + 18: uint16(37660), + 19: uint16(37661), + 20: uint16(37662), + 21: uint16(37663), + 22: uint16(37664), + 23: uint16(37665), + 24: uint16(37666), + 25: uint16(37667), + 26: uint16(37668), + 27: uint16(37669), + 28: uint16(37670), + 29: uint16(37671), + 30: uint16(37672), + 31: uint16(37673), + 32: uint16(37674), + 33: uint16(37675), + 34: uint16(37676), + 35: uint16(37677), + 36: uint16(37678), + 37: uint16(37679), + 38: uint16(37680), + 39: uint16(37681), + 40: uint16(37682), + 41: uint16(37683), + 42: uint16(37684), + 43: uint16(37685), + 44: uint16(37686), + 45: uint16(37687), + 46: uint16(37688), + 47: uint16(37689), + 48: uint16(37690), + 49: uint16(37691), + 50: uint16(37692), + 51: uint16(37693), + 52: uint16(37695), + 53: uint16(37696), + 54: uint16(37697), + 55: uint16(37698), + 56: uint16(37699), + 57: uint16(37700), + 58: uint16(37701), + 59: uint16(37702), + 60: uint16(37703), + 61: uint16(37704), + 62: uint16(37705), + 63: uint16(37706), + 64: uint16(37707), + 65: uint16(37708), + 66: uint16(37709), + 67: uint16(37710), + 68: uint16(37711), + 69: uint16(37712), + 70: uint16(37713), + 71: uint16(37714), + 72: uint16(37715), + 73: uint16(37716), + 74: uint16(37717), + 75: uint16(37718), + 76: uint16(37719), + 77: uint16(37720), + 78: uint16(37721), + 79: uint16(37722), + 80: uint16(37723), + 81: uint16(37724), + 82: uint16(37725), + 83: uint16(37726), + 84: uint16(37727), + 85: uint16(37728), + 86: uint16(37729), + 87: uint16(37730), + 88: uint16(37731), + 89: uint16(37732), + 90: uint16(37733), + 91: uint16(37734), + 92: uint16(37735), + 93: uint16(37736), + 94: uint16(37737), + 95: uint16(37739), + 96: uint16(28617), + 97: uint16(28583), + 98: uint16(28601), + 99: uint16(28598), + 100: uint16(28610), + 101: uint16(28641), + 102: uint16(28654), + 103: uint16(28638), + 104: uint16(28640), + 105: uint16(28655), + 106: uint16(28698), + 107: uint16(28707), + 108: uint16(28699), + 109: uint16(28729), + 110: uint16(28725), + 111: uint16(28751), + 112: uint16(28766), + 113: uint16(23424), + 114: uint16(23428), + 115: uint16(23445), + 116: uint16(23443), + 117: uint16(23461), + 118: uint16(23480), + 119: uint16(29999), + 120: uint16(39582), + 121: uint16(25652), + 122: uint16(23524), + 123: uint16(23534), + 124: uint16(35120), + 125: uint16(23536), + 126: uint16(36423), + 127: uint16(35591), + 128: uint16(36790), + 129: uint16(36819), + 130: uint16(36821), + 131: uint16(36837), + 132: uint16(36846), + 133: uint16(36836), + 134: uint16(36841), + 135: uint16(36838), + 136: uint16(36851), + 137: uint16(36840), + 138: uint16(36869), + 139: uint16(36868), + 140: uint16(36875), + 141: uint16(36902), + 142: uint16(36881), + 143: uint16(36877), + 144: uint16(36886), + 145: uint16(36897), + 146: uint16(36917), + 147: uint16(36918), + 148: uint16(36909), + 149: uint16(36911), + 150: uint16(36932), + 151: uint16(36945), + 152: uint16(36946), + 153: uint16(36944), + 154: uint16(36968), + 155: uint16(36952), + 156: uint16(36962), + 157: uint16(36955), + 158: uint16(26297), + 159: uint16(36980), + 160: uint16(36989), + 161: uint16(36994), + 162: uint16(37000), + 163: uint16(36995), + 164: uint16(37003), + 165: uint16(24400), + 166: uint16(24407), + 167: uint16(24406), + 168: uint16(24408), + 169: uint16(23611), + 170: uint16(21675), + 171: uint16(23632), + 172: uint16(23641), + 173: uint16(23409), + 174: uint16(23651), + 175: uint16(23654), + 176: uint16(32700), + 177: uint16(24362), + 178: uint16(24361), + 179: uint16(24365), + 180: uint16(33396), + 181: uint16(24380), + 182: uint16(39739), + 183: uint16(23662), + 184: uint16(22913), + 185: uint16(22915), + 186: uint16(22925), + 187: uint16(22953), + 188: uint16(22954), + 189: uint16(22947), + }, + 101: { + 0: uint16(37740), + 1: uint16(37741), + 2: uint16(37742), + 3: uint16(37743), + 4: uint16(37744), + 5: uint16(37745), + 6: uint16(37746), + 7: uint16(37747), + 8: uint16(37748), + 9: uint16(37749), + 10: uint16(37750), + 11: uint16(37751), + 12: uint16(37752), + 13: uint16(37753), + 14: uint16(37754), + 15: uint16(37755), + 16: uint16(37756), + 17: uint16(37757), + 18: uint16(37758), + 19: uint16(37759), + 20: uint16(37760), + 21: uint16(37761), + 22: uint16(37762), + 23: uint16(37763), + 24: uint16(37764), + 25: uint16(37765), + 26: uint16(37766), + 27: uint16(37767), + 28: uint16(37768), + 29: uint16(37769), + 30: uint16(37770), + 31: uint16(37771), + 32: uint16(37772), + 33: uint16(37773), + 34: uint16(37774), + 35: uint16(37776), + 36: uint16(37777), + 37: uint16(37778), + 38: uint16(37779), + 39: uint16(37780), + 40: uint16(37781), + 41: uint16(37782), + 42: uint16(37783), + 43: uint16(37784), + 44: uint16(37785), + 45: uint16(37786), + 46: uint16(37787), + 47: uint16(37788), + 48: uint16(37789), + 49: uint16(37790), + 50: uint16(37791), + 51: uint16(37792), + 52: uint16(37793), + 53: uint16(37794), + 54: uint16(37795), + 55: uint16(37796), + 56: uint16(37797), + 57: uint16(37798), + 58: uint16(37799), + 59: uint16(37800), + 60: uint16(37801), + 61: uint16(37802), + 62: uint16(37803), + 63: uint16(37804), + 64: uint16(37805), + 65: uint16(37806), + 66: uint16(37807), + 67: uint16(37808), + 68: uint16(37809), + 69: uint16(37810), + 70: uint16(37811), + 71: uint16(37812), + 72: uint16(37813), + 73: uint16(37814), + 74: uint16(37815), + 75: uint16(37816), + 76: uint16(37817), + 77: uint16(37818), + 78: uint16(37819), + 79: uint16(37820), + 80: uint16(37821), + 81: uint16(37822), + 82: uint16(37823), + 83: uint16(37824), + 84: uint16(37825), + 85: uint16(37826), + 86: uint16(37827), + 87: uint16(37828), + 88: uint16(37829), + 89: uint16(37830), + 90: uint16(37831), + 91: uint16(37832), + 92: uint16(37833), + 93: uint16(37835), + 94: uint16(37836), + 95: uint16(37837), + 96: uint16(22935), + 97: uint16(22986), + 98: uint16(22955), + 99: uint16(22942), + 100: uint16(22948), + 101: uint16(22994), + 102: uint16(22962), + 103: uint16(22959), + 104: uint16(22999), + 105: uint16(22974), + 106: uint16(23045), + 107: uint16(23046), + 108: uint16(23005), + 109: uint16(23048), + 110: uint16(23011), + 111: uint16(23000), + 112: uint16(23033), + 113: uint16(23052), + 114: uint16(23049), + 115: uint16(23090), + 116: uint16(23092), + 117: uint16(23057), + 118: uint16(23075), + 119: uint16(23059), + 120: uint16(23104), + 121: uint16(23143), + 122: uint16(23114), + 123: uint16(23125), + 124: uint16(23100), + 125: uint16(23138), + 126: uint16(23157), + 127: uint16(33004), + 128: uint16(23210), + 129: uint16(23195), + 130: uint16(23159), + 131: uint16(23162), + 132: uint16(23230), + 133: uint16(23275), + 134: uint16(23218), + 135: uint16(23250), + 136: uint16(23252), + 137: uint16(23224), + 138: uint16(23264), + 139: uint16(23267), + 140: uint16(23281), + 141: uint16(23254), + 142: uint16(23270), + 143: uint16(23256), + 144: uint16(23260), + 145: uint16(23305), + 146: uint16(23319), + 147: uint16(23318), + 148: uint16(23346), + 149: uint16(23351), + 150: uint16(23360), + 151: uint16(23573), + 152: uint16(23580), + 153: uint16(23386), + 154: uint16(23397), + 155: uint16(23411), + 156: uint16(23377), + 157: uint16(23379), + 158: uint16(23394), + 159: uint16(39541), + 160: uint16(39543), + 161: uint16(39544), + 162: uint16(39546), + 163: uint16(39551), + 164: uint16(39549), + 165: uint16(39552), + 166: uint16(39553), + 167: uint16(39557), + 168: uint16(39560), + 169: uint16(39562), + 170: uint16(39568), + 171: uint16(39570), + 172: uint16(39571), + 173: uint16(39574), + 174: uint16(39576), + 175: uint16(39579), + 176: uint16(39580), + 177: uint16(39581), + 178: uint16(39583), + 179: uint16(39584), + 180: uint16(39586), + 181: uint16(39587), + 182: uint16(39589), + 183: uint16(39591), + 184: uint16(32415), + 185: uint16(32417), + 186: uint16(32419), + 187: uint16(32421), + 188: uint16(32424), + 189: uint16(32425), + }, + 102: { + 0: uint16(37838), + 1: uint16(37839), + 2: uint16(37840), + 3: uint16(37841), + 4: uint16(37842), + 5: uint16(37843), + 6: uint16(37844), + 7: uint16(37845), + 8: uint16(37847), + 9: uint16(37848), + 10: uint16(37849), + 11: uint16(37850), + 12: uint16(37851), + 13: uint16(37852), + 14: uint16(37853), + 15: uint16(37854), + 16: uint16(37855), + 17: uint16(37856), + 18: uint16(37857), + 19: uint16(37858), + 20: uint16(37859), + 21: uint16(37860), + 22: uint16(37861), + 23: uint16(37862), + 24: uint16(37863), + 25: uint16(37864), + 26: uint16(37865), + 27: uint16(37866), + 28: uint16(37867), + 29: uint16(37868), + 30: uint16(37869), + 31: uint16(37870), + 32: uint16(37871), + 33: uint16(37872), + 34: uint16(37873), + 35: uint16(37874), + 36: uint16(37875), + 37: uint16(37876), + 38: uint16(37877), + 39: uint16(37878), + 40: uint16(37879), + 41: uint16(37880), + 42: uint16(37881), + 43: uint16(37882), + 44: uint16(37883), + 45: uint16(37884), + 46: uint16(37885), + 47: uint16(37886), + 48: uint16(37887), + 49: uint16(37888), + 50: uint16(37889), + 51: uint16(37890), + 52: uint16(37891), + 53: uint16(37892), + 54: uint16(37893), + 55: uint16(37894), + 56: uint16(37895), + 57: uint16(37896), + 58: uint16(37897), + 59: uint16(37898), + 60: uint16(37899), + 61: uint16(37900), + 62: uint16(37901), + 63: uint16(37902), + 64: uint16(37903), + 65: uint16(37904), + 66: uint16(37905), + 67: uint16(37906), + 68: uint16(37907), + 69: uint16(37908), + 70: uint16(37909), + 71: uint16(37910), + 72: uint16(37911), + 73: uint16(37912), + 74: uint16(37913), + 75: uint16(37914), + 76: uint16(37915), + 77: uint16(37916), + 78: uint16(37917), + 79: uint16(37918), + 80: uint16(37919), + 81: uint16(37920), + 82: uint16(37921), + 83: uint16(37922), + 84: uint16(37923), + 85: uint16(37924), + 86: uint16(37925), + 87: uint16(37926), + 88: uint16(37927), + 89: uint16(37928), + 90: uint16(37929), + 91: uint16(37930), + 92: uint16(37931), + 93: uint16(37932), + 94: uint16(37933), + 95: uint16(37934), + 96: uint16(32429), + 97: uint16(32432), + 98: uint16(32446), + 99: uint16(32448), + 100: uint16(32449), + 101: uint16(32450), + 102: uint16(32457), + 103: uint16(32459), + 104: uint16(32460), + 105: uint16(32464), + 106: uint16(32468), + 107: uint16(32471), + 108: uint16(32475), + 109: uint16(32480), + 110: uint16(32481), + 111: uint16(32488), + 112: uint16(32491), + 113: uint16(32494), + 114: uint16(32495), + 115: uint16(32497), + 116: uint16(32498), + 117: uint16(32525), + 118: uint16(32502), + 119: uint16(32506), + 120: uint16(32507), + 121: uint16(32510), + 122: uint16(32513), + 123: uint16(32514), + 124: uint16(32515), + 125: uint16(32519), + 126: uint16(32520), + 127: uint16(32523), + 128: uint16(32524), + 129: uint16(32527), + 130: uint16(32529), + 131: uint16(32530), + 132: uint16(32535), + 133: uint16(32537), + 134: uint16(32540), + 135: uint16(32539), + 136: uint16(32543), + 137: uint16(32545), + 138: uint16(32546), + 139: uint16(32547), + 140: uint16(32548), + 141: uint16(32549), + 142: uint16(32550), + 143: uint16(32551), + 144: uint16(32554), + 145: uint16(32555), + 146: uint16(32556), + 147: uint16(32557), + 148: uint16(32559), + 149: uint16(32560), + 150: uint16(32561), + 151: uint16(32562), + 152: uint16(32563), + 153: uint16(32565), + 154: uint16(24186), + 155: uint16(30079), + 156: uint16(24027), + 157: uint16(30014), + 158: uint16(37013), + 159: uint16(29582), + 160: uint16(29585), + 161: uint16(29614), + 162: uint16(29602), + 163: uint16(29599), + 164: uint16(29647), + 165: uint16(29634), + 166: uint16(29649), + 167: uint16(29623), + 168: uint16(29619), + 169: uint16(29632), + 170: uint16(29641), + 171: uint16(29640), + 172: uint16(29669), + 173: uint16(29657), + 174: uint16(39036), + 175: uint16(29706), + 176: uint16(29673), + 177: uint16(29671), + 178: uint16(29662), + 179: uint16(29626), + 180: uint16(29682), + 181: uint16(29711), + 182: uint16(29738), + 183: uint16(29787), + 184: uint16(29734), + 185: uint16(29733), + 186: uint16(29736), + 187: uint16(29744), + 188: uint16(29742), + 189: uint16(29740), + }, + 103: { + 0: uint16(37935), + 1: uint16(37936), + 2: uint16(37937), + 3: uint16(37938), + 4: uint16(37939), + 5: uint16(37940), + 6: uint16(37941), + 7: uint16(37942), + 8: uint16(37943), + 9: uint16(37944), + 10: uint16(37945), + 11: uint16(37946), + 12: uint16(37947), + 13: uint16(37948), + 14: uint16(37949), + 15: uint16(37951), + 16: uint16(37952), + 17: uint16(37953), + 18: uint16(37954), + 19: uint16(37955), + 20: uint16(37956), + 21: uint16(37957), + 22: uint16(37958), + 23: uint16(37959), + 24: uint16(37960), + 25: uint16(37961), + 26: uint16(37962), + 27: uint16(37963), + 28: uint16(37964), + 29: uint16(37965), + 30: uint16(37966), + 31: uint16(37967), + 32: uint16(37968), + 33: uint16(37969), + 34: uint16(37970), + 35: uint16(37971), + 36: uint16(37972), + 37: uint16(37973), + 38: uint16(37974), + 39: uint16(37975), + 40: uint16(37976), + 41: uint16(37977), + 42: uint16(37978), + 43: uint16(37979), + 44: uint16(37980), + 45: uint16(37981), + 46: uint16(37982), + 47: uint16(37983), + 48: uint16(37984), + 49: uint16(37985), + 50: uint16(37986), + 51: uint16(37987), + 52: uint16(37988), + 53: uint16(37989), + 54: uint16(37990), + 55: uint16(37991), + 56: uint16(37992), + 57: uint16(37993), + 58: uint16(37994), + 59: uint16(37996), + 60: uint16(37997), + 61: uint16(37998), + 62: uint16(37999), + 63: uint16(38000), + 64: uint16(38001), + 65: uint16(38002), + 66: uint16(38003), + 67: uint16(38004), + 68: uint16(38005), + 69: uint16(38006), + 70: uint16(38007), + 71: uint16(38008), + 72: uint16(38009), + 73: uint16(38010), + 74: uint16(38011), + 75: uint16(38012), + 76: uint16(38013), + 77: uint16(38014), + 78: uint16(38015), + 79: uint16(38016), + 80: uint16(38017), + 81: uint16(38018), + 82: uint16(38019), + 83: uint16(38020), + 84: uint16(38033), + 85: uint16(38038), + 86: uint16(38040), + 87: uint16(38087), + 88: uint16(38095), + 89: uint16(38099), + 90: uint16(38100), + 91: uint16(38106), + 92: uint16(38118), + 93: uint16(38139), + 94: uint16(38172), + 95: uint16(38176), + 96: uint16(29723), + 97: uint16(29722), + 98: uint16(29761), + 99: uint16(29788), + 100: uint16(29783), + 101: uint16(29781), + 102: uint16(29785), + 103: uint16(29815), + 104: uint16(29805), + 105: uint16(29822), + 106: uint16(29852), + 107: uint16(29838), + 108: uint16(29824), + 109: uint16(29825), + 110: uint16(29831), + 111: uint16(29835), + 112: uint16(29854), + 113: uint16(29864), + 114: uint16(29865), + 115: uint16(29840), + 116: uint16(29863), + 117: uint16(29906), + 118: uint16(29882), + 119: uint16(38890), + 120: uint16(38891), + 121: uint16(38892), + 122: uint16(26444), + 123: uint16(26451), + 124: uint16(26462), + 125: uint16(26440), + 126: uint16(26473), + 127: uint16(26533), + 128: uint16(26503), + 129: uint16(26474), + 130: uint16(26483), + 131: uint16(26520), + 132: uint16(26535), + 133: uint16(26485), + 134: uint16(26536), + 135: uint16(26526), + 136: uint16(26541), + 137: uint16(26507), + 138: uint16(26487), + 139: uint16(26492), + 140: uint16(26608), + 141: uint16(26633), + 142: uint16(26584), + 143: uint16(26634), + 144: uint16(26601), + 145: uint16(26544), + 146: uint16(26636), + 147: uint16(26585), + 148: uint16(26549), + 149: uint16(26586), + 150: uint16(26547), + 151: uint16(26589), + 152: uint16(26624), + 153: uint16(26563), + 154: uint16(26552), + 155: uint16(26594), + 156: uint16(26638), + 157: uint16(26561), + 158: uint16(26621), + 159: uint16(26674), + 160: uint16(26675), + 161: uint16(26720), + 162: uint16(26721), + 163: uint16(26702), + 164: uint16(26722), + 165: uint16(26692), + 166: uint16(26724), + 167: uint16(26755), + 168: uint16(26653), + 169: uint16(26709), + 170: uint16(26726), + 171: uint16(26689), + 172: uint16(26727), + 173: uint16(26688), + 174: uint16(26686), + 175: uint16(26698), + 176: uint16(26697), + 177: uint16(26665), + 178: uint16(26805), + 179: uint16(26767), + 180: uint16(26740), + 181: uint16(26743), + 182: uint16(26771), + 183: uint16(26731), + 184: uint16(26818), + 185: uint16(26990), + 186: uint16(26876), + 187: uint16(26911), + 188: uint16(26912), + 189: uint16(26873), + }, + 104: { + 0: uint16(38183), + 1: uint16(38195), + 2: uint16(38205), + 3: uint16(38211), + 4: uint16(38216), + 5: uint16(38219), + 6: uint16(38229), + 7: uint16(38234), + 8: uint16(38240), + 9: uint16(38254), + 10: uint16(38260), + 11: uint16(38261), + 12: uint16(38263), + 13: uint16(38264), + 14: uint16(38265), + 15: uint16(38266), + 16: uint16(38267), + 17: uint16(38268), + 18: uint16(38269), + 19: uint16(38270), + 20: uint16(38272), + 21: uint16(38273), + 22: uint16(38274), + 23: uint16(38275), + 24: uint16(38276), + 25: uint16(38277), + 26: uint16(38278), + 27: uint16(38279), + 28: uint16(38280), + 29: uint16(38281), + 30: uint16(38282), + 31: uint16(38283), + 32: uint16(38284), + 33: uint16(38285), + 34: uint16(38286), + 35: uint16(38287), + 36: uint16(38288), + 37: uint16(38289), + 38: uint16(38290), + 39: uint16(38291), + 40: uint16(38292), + 41: uint16(38293), + 42: uint16(38294), + 43: uint16(38295), + 44: uint16(38296), + 45: uint16(38297), + 46: uint16(38298), + 47: uint16(38299), + 48: uint16(38300), + 49: uint16(38301), + 50: uint16(38302), + 51: uint16(38303), + 52: uint16(38304), + 53: uint16(38305), + 54: uint16(38306), + 55: uint16(38307), + 56: uint16(38308), + 57: uint16(38309), + 58: uint16(38310), + 59: uint16(38311), + 60: uint16(38312), + 61: uint16(38313), + 62: uint16(38314), + 63: uint16(38315), + 64: uint16(38316), + 65: uint16(38317), + 66: uint16(38318), + 67: uint16(38319), + 68: uint16(38320), + 69: uint16(38321), + 70: uint16(38322), + 71: uint16(38323), + 72: uint16(38324), + 73: uint16(38325), + 74: uint16(38326), + 75: uint16(38327), + 76: uint16(38328), + 77: uint16(38329), + 78: uint16(38330), + 79: uint16(38331), + 80: uint16(38332), + 81: uint16(38333), + 82: uint16(38334), + 83: uint16(38335), + 84: uint16(38336), + 85: uint16(38337), + 86: uint16(38338), + 87: uint16(38339), + 88: uint16(38340), + 89: uint16(38341), + 90: uint16(38342), + 91: uint16(38343), + 92: uint16(38344), + 93: uint16(38345), + 94: uint16(38346), + 95: uint16(38347), + 96: uint16(26916), + 97: uint16(26864), + 98: uint16(26891), + 99: uint16(26881), + 100: uint16(26967), + 101: uint16(26851), + 102: uint16(26896), + 103: uint16(26993), + 104: uint16(26937), + 105: uint16(26976), + 106: uint16(26946), + 107: uint16(26973), + 108: uint16(27012), + 109: uint16(26987), + 110: uint16(27008), + 111: uint16(27032), + 112: uint16(27000), + 113: uint16(26932), + 114: uint16(27084), + 115: uint16(27015), + 116: uint16(27016), + 117: uint16(27086), + 118: uint16(27017), + 119: uint16(26982), + 120: uint16(26979), + 121: uint16(27001), + 122: uint16(27035), + 123: uint16(27047), + 124: uint16(27067), + 125: uint16(27051), + 126: uint16(27053), + 127: uint16(27092), + 128: uint16(27057), + 129: uint16(27073), + 130: uint16(27082), + 131: uint16(27103), + 132: uint16(27029), + 133: uint16(27104), + 134: uint16(27021), + 135: uint16(27135), + 136: uint16(27183), + 137: uint16(27117), + 138: uint16(27159), + 139: uint16(27160), + 140: uint16(27237), + 141: uint16(27122), + 142: uint16(27204), + 143: uint16(27198), + 144: uint16(27296), + 145: uint16(27216), + 146: uint16(27227), + 147: uint16(27189), + 148: uint16(27278), + 149: uint16(27257), + 150: uint16(27197), + 151: uint16(27176), + 152: uint16(27224), + 153: uint16(27260), + 154: uint16(27281), + 155: uint16(27280), + 156: uint16(27305), + 157: uint16(27287), + 158: uint16(27307), + 159: uint16(29495), + 160: uint16(29522), + 161: uint16(27521), + 162: uint16(27522), + 163: uint16(27527), + 164: uint16(27524), + 165: uint16(27538), + 166: uint16(27539), + 167: uint16(27533), + 168: uint16(27546), + 169: uint16(27547), + 170: uint16(27553), + 171: uint16(27562), + 172: uint16(36715), + 173: uint16(36717), + 174: uint16(36721), + 175: uint16(36722), + 176: uint16(36723), + 177: uint16(36725), + 178: uint16(36726), + 179: uint16(36728), + 180: uint16(36727), + 181: uint16(36729), + 182: uint16(36730), + 183: uint16(36732), + 184: uint16(36734), + 185: uint16(36737), + 186: uint16(36738), + 187: uint16(36740), + 188: uint16(36743), + 189: uint16(36747), + }, + 105: { + 0: uint16(38348), + 1: uint16(38349), + 2: uint16(38350), + 3: uint16(38351), + 4: uint16(38352), + 5: uint16(38353), + 6: uint16(38354), + 7: uint16(38355), + 8: uint16(38356), + 9: uint16(38357), + 10: uint16(38358), + 11: uint16(38359), + 12: uint16(38360), + 13: uint16(38361), + 14: uint16(38362), + 15: uint16(38363), + 16: uint16(38364), + 17: uint16(38365), + 18: uint16(38366), + 19: uint16(38367), + 20: uint16(38368), + 21: uint16(38369), + 22: uint16(38370), + 23: uint16(38371), + 24: uint16(38372), + 25: uint16(38373), + 26: uint16(38374), + 27: uint16(38375), + 28: uint16(38380), + 29: uint16(38399), + 30: uint16(38407), + 31: uint16(38419), + 32: uint16(38424), + 33: uint16(38427), + 34: uint16(38430), + 35: uint16(38432), + 36: uint16(38435), + 37: uint16(38436), + 38: uint16(38437), + 39: uint16(38438), + 40: uint16(38439), + 41: uint16(38440), + 42: uint16(38441), + 43: uint16(38443), + 44: uint16(38444), + 45: uint16(38445), + 46: uint16(38447), + 47: uint16(38448), + 48: uint16(38455), + 49: uint16(38456), + 50: uint16(38457), + 51: uint16(38458), + 52: uint16(38462), + 53: uint16(38465), + 54: uint16(38467), + 55: uint16(38474), + 56: uint16(38478), + 57: uint16(38479), + 58: uint16(38481), + 59: uint16(38482), + 60: uint16(38483), + 61: uint16(38486), + 62: uint16(38487), + 63: uint16(38488), + 64: uint16(38489), + 65: uint16(38490), + 66: uint16(38492), + 67: uint16(38493), + 68: uint16(38494), + 69: uint16(38496), + 70: uint16(38499), + 71: uint16(38501), + 72: uint16(38502), + 73: uint16(38507), + 74: uint16(38509), + 75: uint16(38510), + 76: uint16(38511), + 77: uint16(38512), + 78: uint16(38513), + 79: uint16(38515), + 80: uint16(38520), + 81: uint16(38521), + 82: uint16(38522), + 83: uint16(38523), + 84: uint16(38524), + 85: uint16(38525), + 86: uint16(38526), + 87: uint16(38527), + 88: uint16(38528), + 89: uint16(38529), + 90: uint16(38530), + 91: uint16(38531), + 92: uint16(38532), + 93: uint16(38535), + 94: uint16(38537), + 95: uint16(38538), + 96: uint16(36749), + 97: uint16(36750), + 98: uint16(36751), + 99: uint16(36760), + 100: uint16(36762), + 101: uint16(36558), + 102: uint16(25099), + 103: uint16(25111), + 104: uint16(25115), + 105: uint16(25119), + 106: uint16(25122), + 107: uint16(25121), + 108: uint16(25125), + 109: uint16(25124), + 110: uint16(25132), + 111: uint16(33255), + 112: uint16(29935), + 113: uint16(29940), + 114: uint16(29951), + 115: uint16(29967), + 116: uint16(29969), + 117: uint16(29971), + 118: uint16(25908), + 119: uint16(26094), + 120: uint16(26095), + 121: uint16(26096), + 122: uint16(26122), + 123: uint16(26137), + 124: uint16(26482), + 125: uint16(26115), + 126: uint16(26133), + 127: uint16(26112), + 128: uint16(28805), + 129: uint16(26359), + 130: uint16(26141), + 131: uint16(26164), + 132: uint16(26161), + 133: uint16(26166), + 134: uint16(26165), + 135: uint16(32774), + 136: uint16(26207), + 137: uint16(26196), + 138: uint16(26177), + 139: uint16(26191), + 140: uint16(26198), + 141: uint16(26209), + 142: uint16(26199), + 143: uint16(26231), + 144: uint16(26244), + 145: uint16(26252), + 146: uint16(26279), + 147: uint16(26269), + 148: uint16(26302), + 149: uint16(26331), + 150: uint16(26332), + 151: uint16(26342), + 152: uint16(26345), + 153: uint16(36146), + 154: uint16(36147), + 155: uint16(36150), + 156: uint16(36155), + 157: uint16(36157), + 158: uint16(36160), + 159: uint16(36165), + 160: uint16(36166), + 161: uint16(36168), + 162: uint16(36169), + 163: uint16(36167), + 164: uint16(36173), + 165: uint16(36181), + 166: uint16(36185), + 167: uint16(35271), + 168: uint16(35274), + 169: uint16(35275), + 170: uint16(35276), + 171: uint16(35278), + 172: uint16(35279), + 173: uint16(35280), + 174: uint16(35281), + 175: uint16(29294), + 176: uint16(29343), + 177: uint16(29277), + 178: uint16(29286), + 179: uint16(29295), + 180: uint16(29310), + 181: uint16(29311), + 182: uint16(29316), + 183: uint16(29323), + 184: uint16(29325), + 185: uint16(29327), + 186: uint16(29330), + 187: uint16(25352), + 188: uint16(25394), + 189: uint16(25520), + }, + 106: { + 0: uint16(38540), + 1: uint16(38542), + 2: uint16(38545), + 3: uint16(38546), + 4: uint16(38547), + 5: uint16(38549), + 6: uint16(38550), + 7: uint16(38554), + 8: uint16(38555), + 9: uint16(38557), + 10: uint16(38558), + 11: uint16(38559), + 12: uint16(38560), + 13: uint16(38561), + 14: uint16(38562), + 15: uint16(38563), + 16: uint16(38564), + 17: uint16(38565), + 18: uint16(38566), + 19: uint16(38568), + 20: uint16(38569), + 21: uint16(38570), + 22: uint16(38571), + 23: uint16(38572), + 24: uint16(38573), + 25: uint16(38574), + 26: uint16(38575), + 27: uint16(38577), + 28: uint16(38578), + 29: uint16(38580), + 30: uint16(38581), + 31: uint16(38583), + 32: uint16(38584), + 33: uint16(38586), + 34: uint16(38587), + 35: uint16(38591), + 36: uint16(38594), + 37: uint16(38595), + 38: uint16(38600), + 39: uint16(38602), + 40: uint16(38603), + 41: uint16(38608), + 42: uint16(38609), + 43: uint16(38611), + 44: uint16(38612), + 45: uint16(38614), + 46: uint16(38615), + 47: uint16(38616), + 48: uint16(38617), + 49: uint16(38618), + 50: uint16(38619), + 51: uint16(38620), + 52: uint16(38621), + 53: uint16(38622), + 54: uint16(38623), + 55: uint16(38625), + 56: uint16(38626), + 57: uint16(38627), + 58: uint16(38628), + 59: uint16(38629), + 60: uint16(38630), + 61: uint16(38631), + 62: uint16(38635), + 63: uint16(38636), + 64: uint16(38637), + 65: uint16(38638), + 66: uint16(38640), + 67: uint16(38641), + 68: uint16(38642), + 69: uint16(38644), + 70: uint16(38645), + 71: uint16(38648), + 72: uint16(38650), + 73: uint16(38651), + 74: uint16(38652), + 75: uint16(38653), + 76: uint16(38655), + 77: uint16(38658), + 78: uint16(38659), + 79: uint16(38661), + 80: uint16(38666), + 81: uint16(38667), + 82: uint16(38668), + 83: uint16(38672), + 84: uint16(38673), + 85: uint16(38674), + 86: uint16(38676), + 87: uint16(38677), + 88: uint16(38679), + 89: uint16(38680), + 90: uint16(38681), + 91: uint16(38682), + 92: uint16(38683), + 93: uint16(38685), + 94: uint16(38687), + 95: uint16(38688), + 96: uint16(25663), + 97: uint16(25816), + 98: uint16(32772), + 99: uint16(27626), + 100: uint16(27635), + 101: uint16(27645), + 102: uint16(27637), + 103: uint16(27641), + 104: uint16(27653), + 105: uint16(27655), + 106: uint16(27654), + 107: uint16(27661), + 108: uint16(27669), + 109: uint16(27672), + 110: uint16(27673), + 111: uint16(27674), + 112: uint16(27681), + 113: uint16(27689), + 114: uint16(27684), + 115: uint16(27690), + 116: uint16(27698), + 117: uint16(25909), + 118: uint16(25941), + 119: uint16(25963), + 120: uint16(29261), + 121: uint16(29266), + 122: uint16(29270), + 123: uint16(29232), + 124: uint16(34402), + 125: uint16(21014), + 126: uint16(32927), + 127: uint16(32924), + 128: uint16(32915), + 129: uint16(32956), + 130: uint16(26378), + 131: uint16(32957), + 132: uint16(32945), + 133: uint16(32939), + 134: uint16(32941), + 135: uint16(32948), + 136: uint16(32951), + 137: uint16(32999), + 138: uint16(33000), + 139: uint16(33001), + 140: uint16(33002), + 141: uint16(32987), + 142: uint16(32962), + 143: uint16(32964), + 144: uint16(32985), + 145: uint16(32973), + 146: uint16(32983), + 147: uint16(26384), + 148: uint16(32989), + 149: uint16(33003), + 150: uint16(33009), + 151: uint16(33012), + 152: uint16(33005), + 153: uint16(33037), + 154: uint16(33038), + 155: uint16(33010), + 156: uint16(33020), + 157: uint16(26389), + 158: uint16(33042), + 159: uint16(35930), + 160: uint16(33078), + 161: uint16(33054), + 162: uint16(33068), + 163: uint16(33048), + 164: uint16(33074), + 165: uint16(33096), + 166: uint16(33100), + 167: uint16(33107), + 168: uint16(33140), + 169: uint16(33113), + 170: uint16(33114), + 171: uint16(33137), + 172: uint16(33120), + 173: uint16(33129), + 174: uint16(33148), + 175: uint16(33149), + 176: uint16(33133), + 177: uint16(33127), + 178: uint16(22605), + 179: uint16(23221), + 180: uint16(33160), + 181: uint16(33154), + 182: uint16(33169), + 183: uint16(28373), + 184: uint16(33187), + 185: uint16(33194), + 186: uint16(33228), + 187: uint16(26406), + 188: uint16(33226), + 189: uint16(33211), + }, + 107: { + 0: uint16(38689), + 1: uint16(38690), + 2: uint16(38691), + 3: uint16(38692), + 4: uint16(38693), + 5: uint16(38694), + 6: uint16(38695), + 7: uint16(38696), + 8: uint16(38697), + 9: uint16(38699), + 10: uint16(38700), + 11: uint16(38702), + 12: uint16(38703), + 13: uint16(38705), + 14: uint16(38707), + 15: uint16(38708), + 16: uint16(38709), + 17: uint16(38710), + 18: uint16(38711), + 19: uint16(38714), + 20: uint16(38715), + 21: uint16(38716), + 22: uint16(38717), + 23: uint16(38719), + 24: uint16(38720), + 25: uint16(38721), + 26: uint16(38722), + 27: uint16(38723), + 28: uint16(38724), + 29: uint16(38725), + 30: uint16(38726), + 31: uint16(38727), + 32: uint16(38728), + 33: uint16(38729), + 34: uint16(38730), + 35: uint16(38731), + 36: uint16(38732), + 37: uint16(38733), + 38: uint16(38734), + 39: uint16(38735), + 40: uint16(38736), + 41: uint16(38737), + 42: uint16(38740), + 43: uint16(38741), + 44: uint16(38743), + 45: uint16(38744), + 46: uint16(38746), + 47: uint16(38748), + 48: uint16(38749), + 49: uint16(38751), + 50: uint16(38755), + 51: uint16(38756), + 52: uint16(38758), + 53: uint16(38759), + 54: uint16(38760), + 55: uint16(38762), + 56: uint16(38763), + 57: uint16(38764), + 58: uint16(38765), + 59: uint16(38766), + 60: uint16(38767), + 61: uint16(38768), + 62: uint16(38769), + 63: uint16(38770), + 64: uint16(38773), + 65: uint16(38775), + 66: uint16(38776), + 67: uint16(38777), + 68: uint16(38778), + 69: uint16(38779), + 70: uint16(38781), + 71: uint16(38782), + 72: uint16(38783), + 73: uint16(38784), + 74: uint16(38785), + 75: uint16(38786), + 76: uint16(38787), + 77: uint16(38788), + 78: uint16(38790), + 79: uint16(38791), + 80: uint16(38792), + 81: uint16(38793), + 82: uint16(38794), + 83: uint16(38796), + 84: uint16(38798), + 85: uint16(38799), + 86: uint16(38800), + 87: uint16(38803), + 88: uint16(38805), + 89: uint16(38806), + 90: uint16(38807), + 91: uint16(38809), + 92: uint16(38810), + 93: uint16(38811), + 94: uint16(38812), + 95: uint16(38813), + 96: uint16(33217), + 97: uint16(33190), + 98: uint16(27428), + 99: uint16(27447), + 100: uint16(27449), + 101: uint16(27459), + 102: uint16(27462), + 103: uint16(27481), + 104: uint16(39121), + 105: uint16(39122), + 106: uint16(39123), + 107: uint16(39125), + 108: uint16(39129), + 109: uint16(39130), + 110: uint16(27571), + 111: uint16(24384), + 112: uint16(27586), + 113: uint16(35315), + 114: uint16(26000), + 115: uint16(40785), + 116: uint16(26003), + 117: uint16(26044), + 118: uint16(26054), + 119: uint16(26052), + 120: uint16(26051), + 121: uint16(26060), + 122: uint16(26062), + 123: uint16(26066), + 124: uint16(26070), + 125: uint16(28800), + 126: uint16(28828), + 127: uint16(28822), + 128: uint16(28829), + 129: uint16(28859), + 130: uint16(28864), + 131: uint16(28855), + 132: uint16(28843), + 133: uint16(28849), + 134: uint16(28904), + 135: uint16(28874), + 136: uint16(28944), + 137: uint16(28947), + 138: uint16(28950), + 139: uint16(28975), + 140: uint16(28977), + 141: uint16(29043), + 142: uint16(29020), + 143: uint16(29032), + 144: uint16(28997), + 145: uint16(29042), + 146: uint16(29002), + 147: uint16(29048), + 148: uint16(29050), + 149: uint16(29080), + 150: uint16(29107), + 151: uint16(29109), + 152: uint16(29096), + 153: uint16(29088), + 154: uint16(29152), + 155: uint16(29140), + 156: uint16(29159), + 157: uint16(29177), + 158: uint16(29213), + 159: uint16(29224), + 160: uint16(28780), + 161: uint16(28952), + 162: uint16(29030), + 163: uint16(29113), + 164: uint16(25150), + 165: uint16(25149), + 166: uint16(25155), + 167: uint16(25160), + 168: uint16(25161), + 169: uint16(31035), + 170: uint16(31040), + 171: uint16(31046), + 172: uint16(31049), + 173: uint16(31067), + 174: uint16(31068), + 175: uint16(31059), + 176: uint16(31066), + 177: uint16(31074), + 178: uint16(31063), + 179: uint16(31072), + 180: uint16(31087), + 181: uint16(31079), + 182: uint16(31098), + 183: uint16(31109), + 184: uint16(31114), + 185: uint16(31130), + 186: uint16(31143), + 187: uint16(31155), + 188: uint16(24529), + 189: uint16(24528), + }, + 108: { + 0: uint16(38814), + 1: uint16(38815), + 2: uint16(38817), + 3: uint16(38818), + 4: uint16(38820), + 5: uint16(38821), + 6: uint16(38822), + 7: uint16(38823), + 8: uint16(38824), + 9: uint16(38825), + 10: uint16(38826), + 11: uint16(38828), + 12: uint16(38830), + 13: uint16(38832), + 14: uint16(38833), + 15: uint16(38835), + 16: uint16(38837), + 17: uint16(38838), + 18: uint16(38839), + 19: uint16(38840), + 20: uint16(38841), + 21: uint16(38842), + 22: uint16(38843), + 23: uint16(38844), + 24: uint16(38845), + 25: uint16(38846), + 26: uint16(38847), + 27: uint16(38848), + 28: uint16(38849), + 29: uint16(38850), + 30: uint16(38851), + 31: uint16(38852), + 32: uint16(38853), + 33: uint16(38854), + 34: uint16(38855), + 35: uint16(38856), + 36: uint16(38857), + 37: uint16(38858), + 38: uint16(38859), + 39: uint16(38860), + 40: uint16(38861), + 41: uint16(38862), + 42: uint16(38863), + 43: uint16(38864), + 44: uint16(38865), + 45: uint16(38866), + 46: uint16(38867), + 47: uint16(38868), + 48: uint16(38869), + 49: uint16(38870), + 50: uint16(38871), + 51: uint16(38872), + 52: uint16(38873), + 53: uint16(38874), + 54: uint16(38875), + 55: uint16(38876), + 56: uint16(38877), + 57: uint16(38878), + 58: uint16(38879), + 59: uint16(38880), + 60: uint16(38881), + 61: uint16(38882), + 62: uint16(38883), + 63: uint16(38884), + 64: uint16(38885), + 65: uint16(38888), + 66: uint16(38894), + 67: uint16(38895), + 68: uint16(38896), + 69: uint16(38897), + 70: uint16(38898), + 71: uint16(38900), + 72: uint16(38903), + 73: uint16(38904), + 74: uint16(38905), + 75: uint16(38906), + 76: uint16(38907), + 77: uint16(38908), + 78: uint16(38909), + 79: uint16(38910), + 80: uint16(38911), + 81: uint16(38912), + 82: uint16(38913), + 83: uint16(38914), + 84: uint16(38915), + 85: uint16(38916), + 86: uint16(38917), + 87: uint16(38918), + 88: uint16(38919), + 89: uint16(38920), + 90: uint16(38921), + 91: uint16(38922), + 92: uint16(38923), + 93: uint16(38924), + 94: uint16(38925), + 95: uint16(38926), + 96: uint16(24636), + 97: uint16(24669), + 98: uint16(24666), + 99: uint16(24679), + 100: uint16(24641), + 101: uint16(24665), + 102: uint16(24675), + 103: uint16(24747), + 104: uint16(24838), + 105: uint16(24845), + 106: uint16(24925), + 107: uint16(25001), + 108: uint16(24989), + 109: uint16(25035), + 110: uint16(25041), + 111: uint16(25094), + 112: uint16(32896), + 113: uint16(32895), + 114: uint16(27795), + 115: uint16(27894), + 116: uint16(28156), + 117: uint16(30710), + 118: uint16(30712), + 119: uint16(30720), + 120: uint16(30729), + 121: uint16(30743), + 122: uint16(30744), + 123: uint16(30737), + 124: uint16(26027), + 125: uint16(30765), + 126: uint16(30748), + 127: uint16(30749), + 128: uint16(30777), + 129: uint16(30778), + 130: uint16(30779), + 131: uint16(30751), + 132: uint16(30780), + 133: uint16(30757), + 134: uint16(30764), + 135: uint16(30755), + 136: uint16(30761), + 137: uint16(30798), + 138: uint16(30829), + 139: uint16(30806), + 140: uint16(30807), + 141: uint16(30758), + 142: uint16(30800), + 143: uint16(30791), + 144: uint16(30796), + 145: uint16(30826), + 146: uint16(30875), + 147: uint16(30867), + 148: uint16(30874), + 149: uint16(30855), + 150: uint16(30876), + 151: uint16(30881), + 152: uint16(30883), + 153: uint16(30898), + 154: uint16(30905), + 155: uint16(30885), + 156: uint16(30932), + 157: uint16(30937), + 158: uint16(30921), + 159: uint16(30956), + 160: uint16(30962), + 161: uint16(30981), + 162: uint16(30964), + 163: uint16(30995), + 164: uint16(31012), + 165: uint16(31006), + 166: uint16(31028), + 167: uint16(40859), + 168: uint16(40697), + 169: uint16(40699), + 170: uint16(40700), + 171: uint16(30449), + 172: uint16(30468), + 173: uint16(30477), + 174: uint16(30457), + 175: uint16(30471), + 176: uint16(30472), + 177: uint16(30490), + 178: uint16(30498), + 179: uint16(30489), + 180: uint16(30509), + 181: uint16(30502), + 182: uint16(30517), + 183: uint16(30520), + 184: uint16(30544), + 185: uint16(30545), + 186: uint16(30535), + 187: uint16(30531), + 188: uint16(30554), + 189: uint16(30568), + }, + 109: { + 0: uint16(38927), + 1: uint16(38928), + 2: uint16(38929), + 3: uint16(38930), + 4: uint16(38931), + 5: uint16(38932), + 6: uint16(38933), + 7: uint16(38934), + 8: uint16(38935), + 9: uint16(38936), + 10: uint16(38937), + 11: uint16(38938), + 12: uint16(38939), + 13: uint16(38940), + 14: uint16(38941), + 15: uint16(38942), + 16: uint16(38943), + 17: uint16(38944), + 18: uint16(38945), + 19: uint16(38946), + 20: uint16(38947), + 21: uint16(38948), + 22: uint16(38949), + 23: uint16(38950), + 24: uint16(38951), + 25: uint16(38952), + 26: uint16(38953), + 27: uint16(38954), + 28: uint16(38955), + 29: uint16(38956), + 30: uint16(38957), + 31: uint16(38958), + 32: uint16(38959), + 33: uint16(38960), + 34: uint16(38961), + 35: uint16(38962), + 36: uint16(38963), + 37: uint16(38964), + 38: uint16(38965), + 39: uint16(38966), + 40: uint16(38967), + 41: uint16(38968), + 42: uint16(38969), + 43: uint16(38970), + 44: uint16(38971), + 45: uint16(38972), + 46: uint16(38973), + 47: uint16(38974), + 48: uint16(38975), + 49: uint16(38976), + 50: uint16(38977), + 51: uint16(38978), + 52: uint16(38979), + 53: uint16(38980), + 54: uint16(38981), + 55: uint16(38982), + 56: uint16(38983), + 57: uint16(38984), + 58: uint16(38985), + 59: uint16(38986), + 60: uint16(38987), + 61: uint16(38988), + 62: uint16(38989), + 63: uint16(38990), + 64: uint16(38991), + 65: uint16(38992), + 66: uint16(38993), + 67: uint16(38994), + 68: uint16(38995), + 69: uint16(38996), + 70: uint16(38997), + 71: uint16(38998), + 72: uint16(38999), + 73: uint16(39000), + 74: uint16(39001), + 75: uint16(39002), + 76: uint16(39003), + 77: uint16(39004), + 78: uint16(39005), + 79: uint16(39006), + 80: uint16(39007), + 81: uint16(39008), + 82: uint16(39009), + 83: uint16(39010), + 84: uint16(39011), + 85: uint16(39012), + 86: uint16(39013), + 87: uint16(39014), + 88: uint16(39015), + 89: uint16(39016), + 90: uint16(39017), + 91: uint16(39018), + 92: uint16(39019), + 93: uint16(39020), + 94: uint16(39021), + 95: uint16(39022), + 96: uint16(30562), + 97: uint16(30565), + 98: uint16(30591), + 99: uint16(30605), + 100: uint16(30589), + 101: uint16(30592), + 102: uint16(30604), + 103: uint16(30609), + 104: uint16(30623), + 105: uint16(30624), + 106: uint16(30640), + 107: uint16(30645), + 108: uint16(30653), + 109: uint16(30010), + 110: uint16(30016), + 111: uint16(30030), + 112: uint16(30027), + 113: uint16(30024), + 114: uint16(30043), + 115: uint16(30066), + 116: uint16(30073), + 117: uint16(30083), + 118: uint16(32600), + 119: uint16(32609), + 120: uint16(32607), + 121: uint16(35400), + 122: uint16(32616), + 123: uint16(32628), + 124: uint16(32625), + 125: uint16(32633), + 126: uint16(32641), + 127: uint16(32638), + 128: uint16(30413), + 129: uint16(30437), + 130: uint16(34866), + 131: uint16(38021), + 132: uint16(38022), + 133: uint16(38023), + 134: uint16(38027), + 135: uint16(38026), + 136: uint16(38028), + 137: uint16(38029), + 138: uint16(38031), + 139: uint16(38032), + 140: uint16(38036), + 141: uint16(38039), + 142: uint16(38037), + 143: uint16(38042), + 144: uint16(38043), + 145: uint16(38044), + 146: uint16(38051), + 147: uint16(38052), + 148: uint16(38059), + 149: uint16(38058), + 150: uint16(38061), + 151: uint16(38060), + 152: uint16(38063), + 153: uint16(38064), + 154: uint16(38066), + 155: uint16(38068), + 156: uint16(38070), + 157: uint16(38071), + 158: uint16(38072), + 159: uint16(38073), + 160: uint16(38074), + 161: uint16(38076), + 162: uint16(38077), + 163: uint16(38079), + 164: uint16(38084), + 165: uint16(38088), + 166: uint16(38089), + 167: uint16(38090), + 168: uint16(38091), + 169: uint16(38092), + 170: uint16(38093), + 171: uint16(38094), + 172: uint16(38096), + 173: uint16(38097), + 174: uint16(38098), + 175: uint16(38101), + 176: uint16(38102), + 177: uint16(38103), + 178: uint16(38105), + 179: uint16(38104), + 180: uint16(38107), + 181: uint16(38110), + 182: uint16(38111), + 183: uint16(38112), + 184: uint16(38114), + 185: uint16(38116), + 186: uint16(38117), + 187: uint16(38119), + 188: uint16(38120), + 189: uint16(38122), + }, + 110: { + 0: uint16(39023), + 1: uint16(39024), + 2: uint16(39025), + 3: uint16(39026), + 4: uint16(39027), + 5: uint16(39028), + 6: uint16(39051), + 7: uint16(39054), + 8: uint16(39058), + 9: uint16(39061), + 10: uint16(39065), + 11: uint16(39075), + 12: uint16(39080), + 13: uint16(39081), + 14: uint16(39082), + 15: uint16(39083), + 16: uint16(39084), + 17: uint16(39085), + 18: uint16(39086), + 19: uint16(39087), + 20: uint16(39088), + 21: uint16(39089), + 22: uint16(39090), + 23: uint16(39091), + 24: uint16(39092), + 25: uint16(39093), + 26: uint16(39094), + 27: uint16(39095), + 28: uint16(39096), + 29: uint16(39097), + 30: uint16(39098), + 31: uint16(39099), + 32: uint16(39100), + 33: uint16(39101), + 34: uint16(39102), + 35: uint16(39103), + 36: uint16(39104), + 37: uint16(39105), + 38: uint16(39106), + 39: uint16(39107), + 40: uint16(39108), + 41: uint16(39109), + 42: uint16(39110), + 43: uint16(39111), + 44: uint16(39112), + 45: uint16(39113), + 46: uint16(39114), + 47: uint16(39115), + 48: uint16(39116), + 49: uint16(39117), + 50: uint16(39119), + 51: uint16(39120), + 52: uint16(39124), + 53: uint16(39126), + 54: uint16(39127), + 55: uint16(39131), + 56: uint16(39132), + 57: uint16(39133), + 58: uint16(39136), + 59: uint16(39137), + 60: uint16(39138), + 61: uint16(39139), + 62: uint16(39140), + 63: uint16(39141), + 64: uint16(39142), + 65: uint16(39145), + 66: uint16(39146), + 67: uint16(39147), + 68: uint16(39148), + 69: uint16(39149), + 70: uint16(39150), + 71: uint16(39151), + 72: uint16(39152), + 73: uint16(39153), + 74: uint16(39154), + 75: uint16(39155), + 76: uint16(39156), + 77: uint16(39157), + 78: uint16(39158), + 79: uint16(39159), + 80: uint16(39160), + 81: uint16(39161), + 82: uint16(39162), + 83: uint16(39163), + 84: uint16(39164), + 85: uint16(39165), + 86: uint16(39166), + 87: uint16(39167), + 88: uint16(39168), + 89: uint16(39169), + 90: uint16(39170), + 91: uint16(39171), + 92: uint16(39172), + 93: uint16(39173), + 94: uint16(39174), + 95: uint16(39175), + 96: uint16(38121), + 97: uint16(38123), + 98: uint16(38126), + 99: uint16(38127), + 100: uint16(38131), + 101: uint16(38132), + 102: uint16(38133), + 103: uint16(38135), + 104: uint16(38137), + 105: uint16(38140), + 106: uint16(38141), + 107: uint16(38143), + 108: uint16(38147), + 109: uint16(38146), + 110: uint16(38150), + 111: uint16(38151), + 112: uint16(38153), + 113: uint16(38154), + 114: uint16(38157), + 115: uint16(38158), + 116: uint16(38159), + 117: uint16(38162), + 118: uint16(38163), + 119: uint16(38164), + 120: uint16(38165), + 121: uint16(38166), + 122: uint16(38168), + 123: uint16(38171), + 124: uint16(38173), + 125: uint16(38174), + 126: uint16(38175), + 127: uint16(38178), + 128: uint16(38186), + 129: uint16(38187), + 130: uint16(38185), + 131: uint16(38188), + 132: uint16(38193), + 133: uint16(38194), + 134: uint16(38196), + 135: uint16(38198), + 136: uint16(38199), + 137: uint16(38200), + 138: uint16(38204), + 139: uint16(38206), + 140: uint16(38207), + 141: uint16(38210), + 142: uint16(38197), + 143: uint16(38212), + 144: uint16(38213), + 145: uint16(38214), + 146: uint16(38217), + 147: uint16(38220), + 148: uint16(38222), + 149: uint16(38223), + 150: uint16(38226), + 151: uint16(38227), + 152: uint16(38228), + 153: uint16(38230), + 154: uint16(38231), + 155: uint16(38232), + 156: uint16(38233), + 157: uint16(38235), + 158: uint16(38238), + 159: uint16(38239), + 160: uint16(38237), + 161: uint16(38241), + 162: uint16(38242), + 163: uint16(38244), + 164: uint16(38245), + 165: uint16(38246), + 166: uint16(38247), + 167: uint16(38248), + 168: uint16(38249), + 169: uint16(38250), + 170: uint16(38251), + 171: uint16(38252), + 172: uint16(38255), + 173: uint16(38257), + 174: uint16(38258), + 175: uint16(38259), + 176: uint16(38202), + 177: uint16(30695), + 178: uint16(30700), + 179: uint16(38601), + 180: uint16(31189), + 181: uint16(31213), + 182: uint16(31203), + 183: uint16(31211), + 184: uint16(31238), + 185: uint16(23879), + 186: uint16(31235), + 187: uint16(31234), + 188: uint16(31262), + 189: uint16(31252), + }, + 111: { + 0: uint16(39176), + 1: uint16(39177), + 2: uint16(39178), + 3: uint16(39179), + 4: uint16(39180), + 5: uint16(39182), + 6: uint16(39183), + 7: uint16(39185), + 8: uint16(39186), + 9: uint16(39187), + 10: uint16(39188), + 11: uint16(39189), + 12: uint16(39190), + 13: uint16(39191), + 14: uint16(39192), + 15: uint16(39193), + 16: uint16(39194), + 17: uint16(39195), + 18: uint16(39196), + 19: uint16(39197), + 20: uint16(39198), + 21: uint16(39199), + 22: uint16(39200), + 23: uint16(39201), + 24: uint16(39202), + 25: uint16(39203), + 26: uint16(39204), + 27: uint16(39205), + 28: uint16(39206), + 29: uint16(39207), + 30: uint16(39208), + 31: uint16(39209), + 32: uint16(39210), + 33: uint16(39211), + 34: uint16(39212), + 35: uint16(39213), + 36: uint16(39215), + 37: uint16(39216), + 38: uint16(39217), + 39: uint16(39218), + 40: uint16(39219), + 41: uint16(39220), + 42: uint16(39221), + 43: uint16(39222), + 44: uint16(39223), + 45: uint16(39224), + 46: uint16(39225), + 47: uint16(39226), + 48: uint16(39227), + 49: uint16(39228), + 50: uint16(39229), + 51: uint16(39230), + 52: uint16(39231), + 53: uint16(39232), + 54: uint16(39233), + 55: uint16(39234), + 56: uint16(39235), + 57: uint16(39236), + 58: uint16(39237), + 59: uint16(39238), + 60: uint16(39239), + 61: uint16(39240), + 62: uint16(39241), + 63: uint16(39242), + 64: uint16(39243), + 65: uint16(39244), + 66: uint16(39245), + 67: uint16(39246), + 68: uint16(39247), + 69: uint16(39248), + 70: uint16(39249), + 71: uint16(39250), + 72: uint16(39251), + 73: uint16(39254), + 74: uint16(39255), + 75: uint16(39256), + 76: uint16(39257), + 77: uint16(39258), + 78: uint16(39259), + 79: uint16(39260), + 80: uint16(39261), + 81: uint16(39262), + 82: uint16(39263), + 83: uint16(39264), + 84: uint16(39265), + 85: uint16(39266), + 86: uint16(39268), + 87: uint16(39270), + 88: uint16(39283), + 89: uint16(39288), + 90: uint16(39289), + 91: uint16(39291), + 92: uint16(39294), + 93: uint16(39298), + 94: uint16(39299), + 95: uint16(39305), + 96: uint16(31289), + 97: uint16(31287), + 98: uint16(31313), + 99: uint16(40655), + 100: uint16(39333), + 101: uint16(31344), + 102: uint16(30344), + 103: uint16(30350), + 104: uint16(30355), + 105: uint16(30361), + 106: uint16(30372), + 107: uint16(29918), + 108: uint16(29920), + 109: uint16(29996), + 110: uint16(40480), + 111: uint16(40482), + 112: uint16(40488), + 113: uint16(40489), + 114: uint16(40490), + 115: uint16(40491), + 116: uint16(40492), + 117: uint16(40498), + 118: uint16(40497), + 119: uint16(40502), + 120: uint16(40504), + 121: uint16(40503), + 122: uint16(40505), + 123: uint16(40506), + 124: uint16(40510), + 125: uint16(40513), + 126: uint16(40514), + 127: uint16(40516), + 128: uint16(40518), + 129: uint16(40519), + 130: uint16(40520), + 131: uint16(40521), + 132: uint16(40523), + 133: uint16(40524), + 134: uint16(40526), + 135: uint16(40529), + 136: uint16(40533), + 137: uint16(40535), + 138: uint16(40538), + 139: uint16(40539), + 140: uint16(40540), + 141: uint16(40542), + 142: uint16(40547), + 143: uint16(40550), + 144: uint16(40551), + 145: uint16(40552), + 146: uint16(40553), + 147: uint16(40554), + 148: uint16(40555), + 149: uint16(40556), + 150: uint16(40561), + 151: uint16(40557), + 152: uint16(40563), + 153: uint16(30098), + 154: uint16(30100), + 155: uint16(30102), + 156: uint16(30112), + 157: uint16(30109), + 158: uint16(30124), + 159: uint16(30115), + 160: uint16(30131), + 161: uint16(30132), + 162: uint16(30136), + 163: uint16(30148), + 164: uint16(30129), + 165: uint16(30128), + 166: uint16(30147), + 167: uint16(30146), + 168: uint16(30166), + 169: uint16(30157), + 170: uint16(30179), + 171: uint16(30184), + 172: uint16(30182), + 173: uint16(30180), + 174: uint16(30187), + 175: uint16(30183), + 176: uint16(30211), + 177: uint16(30193), + 178: uint16(30204), + 179: uint16(30207), + 180: uint16(30224), + 181: uint16(30208), + 182: uint16(30213), + 183: uint16(30220), + 184: uint16(30231), + 185: uint16(30218), + 186: uint16(30245), + 187: uint16(30232), + 188: uint16(30229), + 189: uint16(30233), + }, + 112: { + 0: uint16(39308), + 1: uint16(39310), + 2: uint16(39322), + 3: uint16(39323), + 4: uint16(39324), + 5: uint16(39325), + 6: uint16(39326), + 7: uint16(39327), + 8: uint16(39328), + 9: uint16(39329), + 10: uint16(39330), + 11: uint16(39331), + 12: uint16(39332), + 13: uint16(39334), + 14: uint16(39335), + 15: uint16(39337), + 16: uint16(39338), + 17: uint16(39339), + 18: uint16(39340), + 19: uint16(39341), + 20: uint16(39342), + 21: uint16(39343), + 22: uint16(39344), + 23: uint16(39345), + 24: uint16(39346), + 25: uint16(39347), + 26: uint16(39348), + 27: uint16(39349), + 28: uint16(39350), + 29: uint16(39351), + 30: uint16(39352), + 31: uint16(39353), + 32: uint16(39354), + 33: uint16(39355), + 34: uint16(39356), + 35: uint16(39357), + 36: uint16(39358), + 37: uint16(39359), + 38: uint16(39360), + 39: uint16(39361), + 40: uint16(39362), + 41: uint16(39363), + 42: uint16(39364), + 43: uint16(39365), + 44: uint16(39366), + 45: uint16(39367), + 46: uint16(39368), + 47: uint16(39369), + 48: uint16(39370), + 49: uint16(39371), + 50: uint16(39372), + 51: uint16(39373), + 52: uint16(39374), + 53: uint16(39375), + 54: uint16(39376), + 55: uint16(39377), + 56: uint16(39378), + 57: uint16(39379), + 58: uint16(39380), + 59: uint16(39381), + 60: uint16(39382), + 61: uint16(39383), + 62: uint16(39384), + 63: uint16(39385), + 64: uint16(39386), + 65: uint16(39387), + 66: uint16(39388), + 67: uint16(39389), + 68: uint16(39390), + 69: uint16(39391), + 70: uint16(39392), + 71: uint16(39393), + 72: uint16(39394), + 73: uint16(39395), + 74: uint16(39396), + 75: uint16(39397), + 76: uint16(39398), + 77: uint16(39399), + 78: uint16(39400), + 79: uint16(39401), + 80: uint16(39402), + 81: uint16(39403), + 82: uint16(39404), + 83: uint16(39405), + 84: uint16(39406), + 85: uint16(39407), + 86: uint16(39408), + 87: uint16(39409), + 88: uint16(39410), + 89: uint16(39411), + 90: uint16(39412), + 91: uint16(39413), + 92: uint16(39414), + 93: uint16(39415), + 94: uint16(39416), + 95: uint16(39417), + 96: uint16(30235), + 97: uint16(30268), + 98: uint16(30242), + 99: uint16(30240), + 100: uint16(30272), + 101: uint16(30253), + 102: uint16(30256), + 103: uint16(30271), + 104: uint16(30261), + 105: uint16(30275), + 106: uint16(30270), + 107: uint16(30259), + 108: uint16(30285), + 109: uint16(30302), + 110: uint16(30292), + 111: uint16(30300), + 112: uint16(30294), + 113: uint16(30315), + 114: uint16(30319), + 115: uint16(32714), + 116: uint16(31462), + 117: uint16(31352), + 118: uint16(31353), + 119: uint16(31360), + 120: uint16(31366), + 121: uint16(31368), + 122: uint16(31381), + 123: uint16(31398), + 124: uint16(31392), + 125: uint16(31404), + 126: uint16(31400), + 127: uint16(31405), + 128: uint16(31411), + 129: uint16(34916), + 130: uint16(34921), + 131: uint16(34930), + 132: uint16(34941), + 133: uint16(34943), + 134: uint16(34946), + 135: uint16(34978), + 136: uint16(35014), + 137: uint16(34999), + 138: uint16(35004), + 139: uint16(35017), + 140: uint16(35042), + 141: uint16(35022), + 142: uint16(35043), + 143: uint16(35045), + 144: uint16(35057), + 145: uint16(35098), + 146: uint16(35068), + 147: uint16(35048), + 148: uint16(35070), + 149: uint16(35056), + 150: uint16(35105), + 151: uint16(35097), + 152: uint16(35091), + 153: uint16(35099), + 154: uint16(35082), + 155: uint16(35124), + 156: uint16(35115), + 157: uint16(35126), + 158: uint16(35137), + 159: uint16(35174), + 160: uint16(35195), + 161: uint16(30091), + 162: uint16(32997), + 163: uint16(30386), + 164: uint16(30388), + 165: uint16(30684), + 166: uint16(32786), + 167: uint16(32788), + 168: uint16(32790), + 169: uint16(32796), + 170: uint16(32800), + 171: uint16(32802), + 172: uint16(32805), + 173: uint16(32806), + 174: uint16(32807), + 175: uint16(32809), + 176: uint16(32808), + 177: uint16(32817), + 178: uint16(32779), + 179: uint16(32821), + 180: uint16(32835), + 181: uint16(32838), + 182: uint16(32845), + 183: uint16(32850), + 184: uint16(32873), + 185: uint16(32881), + 186: uint16(35203), + 187: uint16(39032), + 188: uint16(39040), + 189: uint16(39043), + }, + 113: { + 0: uint16(39418), + 1: uint16(39419), + 2: uint16(39420), + 3: uint16(39421), + 4: uint16(39422), + 5: uint16(39423), + 6: uint16(39424), + 7: uint16(39425), + 8: uint16(39426), + 9: uint16(39427), + 10: uint16(39428), + 11: uint16(39429), + 12: uint16(39430), + 13: uint16(39431), + 14: uint16(39432), + 15: uint16(39433), + 16: uint16(39434), + 17: uint16(39435), + 18: uint16(39436), + 19: uint16(39437), + 20: uint16(39438), + 21: uint16(39439), + 22: uint16(39440), + 23: uint16(39441), + 24: uint16(39442), + 25: uint16(39443), + 26: uint16(39444), + 27: uint16(39445), + 28: uint16(39446), + 29: uint16(39447), + 30: uint16(39448), + 31: uint16(39449), + 32: uint16(39450), + 33: uint16(39451), + 34: uint16(39452), + 35: uint16(39453), + 36: uint16(39454), + 37: uint16(39455), + 38: uint16(39456), + 39: uint16(39457), + 40: uint16(39458), + 41: uint16(39459), + 42: uint16(39460), + 43: uint16(39461), + 44: uint16(39462), + 45: uint16(39463), + 46: uint16(39464), + 47: uint16(39465), + 48: uint16(39466), + 49: uint16(39467), + 50: uint16(39468), + 51: uint16(39469), + 52: uint16(39470), + 53: uint16(39471), + 54: uint16(39472), + 55: uint16(39473), + 56: uint16(39474), + 57: uint16(39475), + 58: uint16(39476), + 59: uint16(39477), + 60: uint16(39478), + 61: uint16(39479), + 62: uint16(39480), + 63: uint16(39481), + 64: uint16(39482), + 65: uint16(39483), + 66: uint16(39484), + 67: uint16(39485), + 68: uint16(39486), + 69: uint16(39487), + 70: uint16(39488), + 71: uint16(39489), + 72: uint16(39490), + 73: uint16(39491), + 74: uint16(39492), + 75: uint16(39493), + 76: uint16(39494), + 77: uint16(39495), + 78: uint16(39496), + 79: uint16(39497), + 80: uint16(39498), + 81: uint16(39499), + 82: uint16(39500), + 83: uint16(39501), + 84: uint16(39502), + 85: uint16(39503), + 86: uint16(39504), + 87: uint16(39505), + 88: uint16(39506), + 89: uint16(39507), + 90: uint16(39508), + 91: uint16(39509), + 92: uint16(39510), + 93: uint16(39511), + 94: uint16(39512), + 95: uint16(39513), + 96: uint16(39049), + 97: uint16(39052), + 98: uint16(39053), + 99: uint16(39055), + 100: uint16(39060), + 101: uint16(39066), + 102: uint16(39067), + 103: uint16(39070), + 104: uint16(39071), + 105: uint16(39073), + 106: uint16(39074), + 107: uint16(39077), + 108: uint16(39078), + 109: uint16(34381), + 110: uint16(34388), + 111: uint16(34412), + 112: uint16(34414), + 113: uint16(34431), + 114: uint16(34426), + 115: uint16(34428), + 116: uint16(34427), + 117: uint16(34472), + 118: uint16(34445), + 119: uint16(34443), + 120: uint16(34476), + 121: uint16(34461), + 122: uint16(34471), + 123: uint16(34467), + 124: uint16(34474), + 125: uint16(34451), + 126: uint16(34473), + 127: uint16(34486), + 128: uint16(34500), + 129: uint16(34485), + 130: uint16(34510), + 131: uint16(34480), + 132: uint16(34490), + 133: uint16(34481), + 134: uint16(34479), + 135: uint16(34505), + 136: uint16(34511), + 137: uint16(34484), + 138: uint16(34537), + 139: uint16(34545), + 140: uint16(34546), + 141: uint16(34541), + 142: uint16(34547), + 143: uint16(34512), + 144: uint16(34579), + 145: uint16(34526), + 146: uint16(34548), + 147: uint16(34527), + 148: uint16(34520), + 149: uint16(34513), + 150: uint16(34563), + 151: uint16(34567), + 152: uint16(34552), + 153: uint16(34568), + 154: uint16(34570), + 155: uint16(34573), + 156: uint16(34569), + 157: uint16(34595), + 158: uint16(34619), + 159: uint16(34590), + 160: uint16(34597), + 161: uint16(34606), + 162: uint16(34586), + 163: uint16(34622), + 164: uint16(34632), + 165: uint16(34612), + 166: uint16(34609), + 167: uint16(34601), + 168: uint16(34615), + 169: uint16(34623), + 170: uint16(34690), + 171: uint16(34594), + 172: uint16(34685), + 173: uint16(34686), + 174: uint16(34683), + 175: uint16(34656), + 176: uint16(34672), + 177: uint16(34636), + 178: uint16(34670), + 179: uint16(34699), + 180: uint16(34643), + 181: uint16(34659), + 182: uint16(34684), + 183: uint16(34660), + 184: uint16(34649), + 185: uint16(34661), + 186: uint16(34707), + 187: uint16(34735), + 188: uint16(34728), + 189: uint16(34770), + }, + 114: { + 0: uint16(39514), + 1: uint16(39515), + 2: uint16(39516), + 3: uint16(39517), + 4: uint16(39518), + 5: uint16(39519), + 6: uint16(39520), + 7: uint16(39521), + 8: uint16(39522), + 9: uint16(39523), + 10: uint16(39524), + 11: uint16(39525), + 12: uint16(39526), + 13: uint16(39527), + 14: uint16(39528), + 15: uint16(39529), + 16: uint16(39530), + 17: uint16(39531), + 18: uint16(39538), + 19: uint16(39555), + 20: uint16(39561), + 21: uint16(39565), + 22: uint16(39566), + 23: uint16(39572), + 24: uint16(39573), + 25: uint16(39577), + 26: uint16(39590), + 27: uint16(39593), + 28: uint16(39594), + 29: uint16(39595), + 30: uint16(39596), + 31: uint16(39597), + 32: uint16(39598), + 33: uint16(39599), + 34: uint16(39602), + 35: uint16(39603), + 36: uint16(39604), + 37: uint16(39605), + 38: uint16(39609), + 39: uint16(39611), + 40: uint16(39613), + 41: uint16(39614), + 42: uint16(39615), + 43: uint16(39619), + 44: uint16(39620), + 45: uint16(39622), + 46: uint16(39623), + 47: uint16(39624), + 48: uint16(39625), + 49: uint16(39626), + 50: uint16(39629), + 51: uint16(39630), + 52: uint16(39631), + 53: uint16(39632), + 54: uint16(39634), + 55: uint16(39636), + 56: uint16(39637), + 57: uint16(39638), + 58: uint16(39639), + 59: uint16(39641), + 60: uint16(39642), + 61: uint16(39643), + 62: uint16(39644), + 63: uint16(39645), + 64: uint16(39646), + 65: uint16(39648), + 66: uint16(39650), + 67: uint16(39651), + 68: uint16(39652), + 69: uint16(39653), + 70: uint16(39655), + 71: uint16(39656), + 72: uint16(39657), + 73: uint16(39658), + 74: uint16(39660), + 75: uint16(39662), + 76: uint16(39664), + 77: uint16(39665), + 78: uint16(39666), + 79: uint16(39667), + 80: uint16(39668), + 81: uint16(39669), + 82: uint16(39670), + 83: uint16(39671), + 84: uint16(39672), + 85: uint16(39674), + 86: uint16(39676), + 87: uint16(39677), + 88: uint16(39678), + 89: uint16(39679), + 90: uint16(39680), + 91: uint16(39681), + 92: uint16(39682), + 93: uint16(39684), + 94: uint16(39685), + 95: uint16(39686), + 96: uint16(34758), + 97: uint16(34696), + 98: uint16(34693), + 99: uint16(34733), + 100: uint16(34711), + 101: uint16(34691), + 102: uint16(34731), + 103: uint16(34789), + 104: uint16(34732), + 105: uint16(34741), + 106: uint16(34739), + 107: uint16(34763), + 108: uint16(34771), + 109: uint16(34749), + 110: uint16(34769), + 111: uint16(34752), + 112: uint16(34762), + 113: uint16(34779), + 114: uint16(34794), + 115: uint16(34784), + 116: uint16(34798), + 117: uint16(34838), + 118: uint16(34835), + 119: uint16(34814), + 120: uint16(34826), + 121: uint16(34843), + 122: uint16(34849), + 123: uint16(34873), + 124: uint16(34876), + 125: uint16(32566), + 126: uint16(32578), + 127: uint16(32580), + 128: uint16(32581), + 129: uint16(33296), + 130: uint16(31482), + 131: uint16(31485), + 132: uint16(31496), + 133: uint16(31491), + 134: uint16(31492), + 135: uint16(31509), + 136: uint16(31498), + 137: uint16(31531), + 138: uint16(31503), + 139: uint16(31559), + 140: uint16(31544), + 141: uint16(31530), + 142: uint16(31513), + 143: uint16(31534), + 144: uint16(31537), + 145: uint16(31520), + 146: uint16(31525), + 147: uint16(31524), + 148: uint16(31539), + 149: uint16(31550), + 150: uint16(31518), + 151: uint16(31576), + 152: uint16(31578), + 153: uint16(31557), + 154: uint16(31605), + 155: uint16(31564), + 156: uint16(31581), + 157: uint16(31584), + 158: uint16(31598), + 159: uint16(31611), + 160: uint16(31586), + 161: uint16(31602), + 162: uint16(31601), + 163: uint16(31632), + 164: uint16(31654), + 165: uint16(31655), + 166: uint16(31672), + 167: uint16(31660), + 168: uint16(31645), + 169: uint16(31656), + 170: uint16(31621), + 171: uint16(31658), + 172: uint16(31644), + 173: uint16(31650), + 174: uint16(31659), + 175: uint16(31668), + 176: uint16(31697), + 177: uint16(31681), + 178: uint16(31692), + 179: uint16(31709), + 180: uint16(31706), + 181: uint16(31717), + 182: uint16(31718), + 183: uint16(31722), + 184: uint16(31756), + 185: uint16(31742), + 186: uint16(31740), + 187: uint16(31759), + 188: uint16(31766), + 189: uint16(31755), + }, + 115: { + 0: uint16(39687), + 1: uint16(39689), + 2: uint16(39690), + 3: uint16(39691), + 4: uint16(39692), + 5: uint16(39693), + 6: uint16(39694), + 7: uint16(39696), + 8: uint16(39697), + 9: uint16(39698), + 10: uint16(39700), + 11: uint16(39701), + 12: uint16(39702), + 13: uint16(39703), + 14: uint16(39704), + 15: uint16(39705), + 16: uint16(39706), + 17: uint16(39707), + 18: uint16(39708), + 19: uint16(39709), + 20: uint16(39710), + 21: uint16(39712), + 22: uint16(39713), + 23: uint16(39714), + 24: uint16(39716), + 25: uint16(39717), + 26: uint16(39718), + 27: uint16(39719), + 28: uint16(39720), + 29: uint16(39721), + 30: uint16(39722), + 31: uint16(39723), + 32: uint16(39724), + 33: uint16(39725), + 34: uint16(39726), + 35: uint16(39728), + 36: uint16(39729), + 37: uint16(39731), + 38: uint16(39732), + 39: uint16(39733), + 40: uint16(39734), + 41: uint16(39735), + 42: uint16(39736), + 43: uint16(39737), + 44: uint16(39738), + 45: uint16(39741), + 46: uint16(39742), + 47: uint16(39743), + 48: uint16(39744), + 49: uint16(39750), + 50: uint16(39754), + 51: uint16(39755), + 52: uint16(39756), + 53: uint16(39758), + 54: uint16(39760), + 55: uint16(39762), + 56: uint16(39763), + 57: uint16(39765), + 58: uint16(39766), + 59: uint16(39767), + 60: uint16(39768), + 61: uint16(39769), + 62: uint16(39770), + 63: uint16(39771), + 64: uint16(39772), + 65: uint16(39773), + 66: uint16(39774), + 67: uint16(39775), + 68: uint16(39776), + 69: uint16(39777), + 70: uint16(39778), + 71: uint16(39779), + 72: uint16(39780), + 73: uint16(39781), + 74: uint16(39782), + 75: uint16(39783), + 76: uint16(39784), + 77: uint16(39785), + 78: uint16(39786), + 79: uint16(39787), + 80: uint16(39788), + 81: uint16(39789), + 82: uint16(39790), + 83: uint16(39791), + 84: uint16(39792), + 85: uint16(39793), + 86: uint16(39794), + 87: uint16(39795), + 88: uint16(39796), + 89: uint16(39797), + 90: uint16(39798), + 91: uint16(39799), + 92: uint16(39800), + 93: uint16(39801), + 94: uint16(39802), + 95: uint16(39803), + 96: uint16(31775), + 97: uint16(31786), + 98: uint16(31782), + 99: uint16(31800), + 100: uint16(31809), + 101: uint16(31808), + 102: uint16(33278), + 103: uint16(33281), + 104: uint16(33282), + 105: uint16(33284), + 106: uint16(33260), + 107: uint16(34884), + 108: uint16(33313), + 109: uint16(33314), + 110: uint16(33315), + 111: uint16(33325), + 112: uint16(33327), + 113: uint16(33320), + 114: uint16(33323), + 115: uint16(33336), + 116: uint16(33339), + 117: uint16(33331), + 118: uint16(33332), + 119: uint16(33342), + 120: uint16(33348), + 121: uint16(33353), + 122: uint16(33355), + 123: uint16(33359), + 124: uint16(33370), + 125: uint16(33375), + 126: uint16(33384), + 127: uint16(34942), + 128: uint16(34949), + 129: uint16(34952), + 130: uint16(35032), + 131: uint16(35039), + 132: uint16(35166), + 133: uint16(32669), + 134: uint16(32671), + 135: uint16(32679), + 136: uint16(32687), + 137: uint16(32688), + 138: uint16(32690), + 139: uint16(31868), + 140: uint16(25929), + 141: uint16(31889), + 142: uint16(31901), + 143: uint16(31900), + 144: uint16(31902), + 145: uint16(31906), + 146: uint16(31922), + 147: uint16(31932), + 148: uint16(31933), + 149: uint16(31937), + 150: uint16(31943), + 151: uint16(31948), + 152: uint16(31949), + 153: uint16(31944), + 154: uint16(31941), + 155: uint16(31959), + 156: uint16(31976), + 157: uint16(33390), + 158: uint16(26280), + 159: uint16(32703), + 160: uint16(32718), + 161: uint16(32725), + 162: uint16(32741), + 163: uint16(32737), + 164: uint16(32742), + 165: uint16(32745), + 166: uint16(32750), + 167: uint16(32755), + 168: uint16(31992), + 169: uint16(32119), + 170: uint16(32166), + 171: uint16(32174), + 172: uint16(32327), + 173: uint16(32411), + 174: uint16(40632), + 175: uint16(40628), + 176: uint16(36211), + 177: uint16(36228), + 178: uint16(36244), + 179: uint16(36241), + 180: uint16(36273), + 181: uint16(36199), + 182: uint16(36205), + 183: uint16(35911), + 184: uint16(35913), + 185: uint16(37194), + 186: uint16(37200), + 187: uint16(37198), + 188: uint16(37199), + 189: uint16(37220), + }, + 116: { + 0: uint16(39804), + 1: uint16(39805), + 2: uint16(39806), + 3: uint16(39807), + 4: uint16(39808), + 5: uint16(39809), + 6: uint16(39810), + 7: uint16(39811), + 8: uint16(39812), + 9: uint16(39813), + 10: uint16(39814), + 11: uint16(39815), + 12: uint16(39816), + 13: uint16(39817), + 14: uint16(39818), + 15: uint16(39819), + 16: uint16(39820), + 17: uint16(39821), + 18: uint16(39822), + 19: uint16(39823), + 20: uint16(39824), + 21: uint16(39825), + 22: uint16(39826), + 23: uint16(39827), + 24: uint16(39828), + 25: uint16(39829), + 26: uint16(39830), + 27: uint16(39831), + 28: uint16(39832), + 29: uint16(39833), + 30: uint16(39834), + 31: uint16(39835), + 32: uint16(39836), + 33: uint16(39837), + 34: uint16(39838), + 35: uint16(39839), + 36: uint16(39840), + 37: uint16(39841), + 38: uint16(39842), + 39: uint16(39843), + 40: uint16(39844), + 41: uint16(39845), + 42: uint16(39846), + 43: uint16(39847), + 44: uint16(39848), + 45: uint16(39849), + 46: uint16(39850), + 47: uint16(39851), + 48: uint16(39852), + 49: uint16(39853), + 50: uint16(39854), + 51: uint16(39855), + 52: uint16(39856), + 53: uint16(39857), + 54: uint16(39858), + 55: uint16(39859), + 56: uint16(39860), + 57: uint16(39861), + 58: uint16(39862), + 59: uint16(39863), + 60: uint16(39864), + 61: uint16(39865), + 62: uint16(39866), + 63: uint16(39867), + 64: uint16(39868), + 65: uint16(39869), + 66: uint16(39870), + 67: uint16(39871), + 68: uint16(39872), + 69: uint16(39873), + 70: uint16(39874), + 71: uint16(39875), + 72: uint16(39876), + 73: uint16(39877), + 74: uint16(39878), + 75: uint16(39879), + 76: uint16(39880), + 77: uint16(39881), + 78: uint16(39882), + 79: uint16(39883), + 80: uint16(39884), + 81: uint16(39885), + 82: uint16(39886), + 83: uint16(39887), + 84: uint16(39888), + 85: uint16(39889), + 86: uint16(39890), + 87: uint16(39891), + 88: uint16(39892), + 89: uint16(39893), + 90: uint16(39894), + 91: uint16(39895), + 92: uint16(39896), + 93: uint16(39897), + 94: uint16(39898), + 95: uint16(39899), + 96: uint16(37218), + 97: uint16(37217), + 98: uint16(37232), + 99: uint16(37225), + 100: uint16(37231), + 101: uint16(37245), + 102: uint16(37246), + 103: uint16(37234), + 104: uint16(37236), + 105: uint16(37241), + 106: uint16(37260), + 107: uint16(37253), + 108: uint16(37264), + 109: uint16(37261), + 110: uint16(37265), + 111: uint16(37282), + 112: uint16(37283), + 113: uint16(37290), + 114: uint16(37293), + 115: uint16(37294), + 116: uint16(37295), + 117: uint16(37301), + 118: uint16(37300), + 119: uint16(37306), + 120: uint16(35925), + 121: uint16(40574), + 122: uint16(36280), + 123: uint16(36331), + 124: uint16(36357), + 125: uint16(36441), + 126: uint16(36457), + 127: uint16(36277), + 128: uint16(36287), + 129: uint16(36284), + 130: uint16(36282), + 131: uint16(36292), + 132: uint16(36310), + 133: uint16(36311), + 134: uint16(36314), + 135: uint16(36318), + 136: uint16(36302), + 137: uint16(36303), + 138: uint16(36315), + 139: uint16(36294), + 140: uint16(36332), + 141: uint16(36343), + 142: uint16(36344), + 143: uint16(36323), + 144: uint16(36345), + 145: uint16(36347), + 146: uint16(36324), + 147: uint16(36361), + 148: uint16(36349), + 149: uint16(36372), + 150: uint16(36381), + 151: uint16(36383), + 152: uint16(36396), + 153: uint16(36398), + 154: uint16(36387), + 155: uint16(36399), + 156: uint16(36410), + 157: uint16(36416), + 158: uint16(36409), + 159: uint16(36405), + 160: uint16(36413), + 161: uint16(36401), + 162: uint16(36425), + 163: uint16(36417), + 164: uint16(36418), + 165: uint16(36433), + 166: uint16(36434), + 167: uint16(36426), + 168: uint16(36464), + 169: uint16(36470), + 170: uint16(36476), + 171: uint16(36463), + 172: uint16(36468), + 173: uint16(36485), + 174: uint16(36495), + 175: uint16(36500), + 176: uint16(36496), + 177: uint16(36508), + 178: uint16(36510), + 179: uint16(35960), + 180: uint16(35970), + 181: uint16(35978), + 182: uint16(35973), + 183: uint16(35992), + 184: uint16(35988), + 185: uint16(26011), + 186: uint16(35286), + 187: uint16(35294), + 188: uint16(35290), + 189: uint16(35292), + }, + 117: { + 0: uint16(39900), + 1: uint16(39901), + 2: uint16(39902), + 3: uint16(39903), + 4: uint16(39904), + 5: uint16(39905), + 6: uint16(39906), + 7: uint16(39907), + 8: uint16(39908), + 9: uint16(39909), + 10: uint16(39910), + 11: uint16(39911), + 12: uint16(39912), + 13: uint16(39913), + 14: uint16(39914), + 15: uint16(39915), + 16: uint16(39916), + 17: uint16(39917), + 18: uint16(39918), + 19: uint16(39919), + 20: uint16(39920), + 21: uint16(39921), + 22: uint16(39922), + 23: uint16(39923), + 24: uint16(39924), + 25: uint16(39925), + 26: uint16(39926), + 27: uint16(39927), + 28: uint16(39928), + 29: uint16(39929), + 30: uint16(39930), + 31: uint16(39931), + 32: uint16(39932), + 33: uint16(39933), + 34: uint16(39934), + 35: uint16(39935), + 36: uint16(39936), + 37: uint16(39937), + 38: uint16(39938), + 39: uint16(39939), + 40: uint16(39940), + 41: uint16(39941), + 42: uint16(39942), + 43: uint16(39943), + 44: uint16(39944), + 45: uint16(39945), + 46: uint16(39946), + 47: uint16(39947), + 48: uint16(39948), + 49: uint16(39949), + 50: uint16(39950), + 51: uint16(39951), + 52: uint16(39952), + 53: uint16(39953), + 54: uint16(39954), + 55: uint16(39955), + 56: uint16(39956), + 57: uint16(39957), + 58: uint16(39958), + 59: uint16(39959), + 60: uint16(39960), + 61: uint16(39961), + 62: uint16(39962), + 63: uint16(39963), + 64: uint16(39964), + 65: uint16(39965), + 66: uint16(39966), + 67: uint16(39967), + 68: uint16(39968), + 69: uint16(39969), + 70: uint16(39970), + 71: uint16(39971), + 72: uint16(39972), + 73: uint16(39973), + 74: uint16(39974), + 75: uint16(39975), + 76: uint16(39976), + 77: uint16(39977), + 78: uint16(39978), + 79: uint16(39979), + 80: uint16(39980), + 81: uint16(39981), + 82: uint16(39982), + 83: uint16(39983), + 84: uint16(39984), + 85: uint16(39985), + 86: uint16(39986), + 87: uint16(39987), + 88: uint16(39988), + 89: uint16(39989), + 90: uint16(39990), + 91: uint16(39991), + 92: uint16(39992), + 93: uint16(39993), + 94: uint16(39994), + 95: uint16(39995), + 96: uint16(35301), + 97: uint16(35307), + 98: uint16(35311), + 99: uint16(35390), + 100: uint16(35622), + 101: uint16(38739), + 102: uint16(38633), + 103: uint16(38643), + 104: uint16(38639), + 105: uint16(38662), + 106: uint16(38657), + 107: uint16(38664), + 108: uint16(38671), + 109: uint16(38670), + 110: uint16(38698), + 111: uint16(38701), + 112: uint16(38704), + 113: uint16(38718), + 114: uint16(40832), + 115: uint16(40835), + 116: uint16(40837), + 117: uint16(40838), + 118: uint16(40839), + 119: uint16(40840), + 120: uint16(40841), + 121: uint16(40842), + 122: uint16(40844), + 123: uint16(40702), + 124: uint16(40715), + 125: uint16(40717), + 126: uint16(38585), + 127: uint16(38588), + 128: uint16(38589), + 129: uint16(38606), + 130: uint16(38610), + 131: uint16(30655), + 132: uint16(38624), + 133: uint16(37518), + 134: uint16(37550), + 135: uint16(37576), + 136: uint16(37694), + 137: uint16(37738), + 138: uint16(37834), + 139: uint16(37775), + 140: uint16(37950), + 141: uint16(37995), + 142: uint16(40063), + 143: uint16(40066), + 144: uint16(40069), + 145: uint16(40070), + 146: uint16(40071), + 147: uint16(40072), + 148: uint16(31267), + 149: uint16(40075), + 150: uint16(40078), + 151: uint16(40080), + 152: uint16(40081), + 153: uint16(40082), + 154: uint16(40084), + 155: uint16(40085), + 156: uint16(40090), + 157: uint16(40091), + 158: uint16(40094), + 159: uint16(40095), + 160: uint16(40096), + 161: uint16(40097), + 162: uint16(40098), + 163: uint16(40099), + 164: uint16(40101), + 165: uint16(40102), + 166: uint16(40103), + 167: uint16(40104), + 168: uint16(40105), + 169: uint16(40107), + 170: uint16(40109), + 171: uint16(40110), + 172: uint16(40112), + 173: uint16(40113), + 174: uint16(40114), + 175: uint16(40115), + 176: uint16(40116), + 177: uint16(40117), + 178: uint16(40118), + 179: uint16(40119), + 180: uint16(40122), + 181: uint16(40123), + 182: uint16(40124), + 183: uint16(40125), + 184: uint16(40132), + 185: uint16(40133), + 186: uint16(40134), + 187: uint16(40135), + 188: uint16(40138), + 189: uint16(40139), + }, + 118: { + 0: uint16(39996), + 1: uint16(39997), + 2: uint16(39998), + 3: uint16(39999), + 4: uint16(40000), + 5: uint16(40001), + 6: uint16(40002), + 7: uint16(40003), + 8: uint16(40004), + 9: uint16(40005), + 10: uint16(40006), + 11: uint16(40007), + 12: uint16(40008), + 13: uint16(40009), + 14: uint16(40010), + 15: uint16(40011), + 16: uint16(40012), + 17: uint16(40013), + 18: uint16(40014), + 19: uint16(40015), + 20: uint16(40016), + 21: uint16(40017), + 22: uint16(40018), + 23: uint16(40019), + 24: uint16(40020), + 25: uint16(40021), + 26: uint16(40022), + 27: uint16(40023), + 28: uint16(40024), + 29: uint16(40025), + 30: uint16(40026), + 31: uint16(40027), + 32: uint16(40028), + 33: uint16(40029), + 34: uint16(40030), + 35: uint16(40031), + 36: uint16(40032), + 37: uint16(40033), + 38: uint16(40034), + 39: uint16(40035), + 40: uint16(40036), + 41: uint16(40037), + 42: uint16(40038), + 43: uint16(40039), + 44: uint16(40040), + 45: uint16(40041), + 46: uint16(40042), + 47: uint16(40043), + 48: uint16(40044), + 49: uint16(40045), + 50: uint16(40046), + 51: uint16(40047), + 52: uint16(40048), + 53: uint16(40049), + 54: uint16(40050), + 55: uint16(40051), + 56: uint16(40052), + 57: uint16(40053), + 58: uint16(40054), + 59: uint16(40055), + 60: uint16(40056), + 61: uint16(40057), + 62: uint16(40058), + 63: uint16(40059), + 64: uint16(40061), + 65: uint16(40062), + 66: uint16(40064), + 67: uint16(40067), + 68: uint16(40068), + 69: uint16(40073), + 70: uint16(40074), + 71: uint16(40076), + 72: uint16(40079), + 73: uint16(40083), + 74: uint16(40086), + 75: uint16(40087), + 76: uint16(40088), + 77: uint16(40089), + 78: uint16(40093), + 79: uint16(40106), + 80: uint16(40108), + 81: uint16(40111), + 82: uint16(40121), + 83: uint16(40126), + 84: uint16(40127), + 85: uint16(40128), + 86: uint16(40129), + 87: uint16(40130), + 88: uint16(40136), + 89: uint16(40137), + 90: uint16(40145), + 91: uint16(40146), + 92: uint16(40154), + 93: uint16(40155), + 94: uint16(40160), + 95: uint16(40161), + 96: uint16(40140), + 97: uint16(40141), + 98: uint16(40142), + 99: uint16(40143), + 100: uint16(40144), + 101: uint16(40147), + 102: uint16(40148), + 103: uint16(40149), + 104: uint16(40151), + 105: uint16(40152), + 106: uint16(40153), + 107: uint16(40156), + 108: uint16(40157), + 109: uint16(40159), + 110: uint16(40162), + 111: uint16(38780), + 112: uint16(38789), + 113: uint16(38801), + 114: uint16(38802), + 115: uint16(38804), + 116: uint16(38831), + 117: uint16(38827), + 118: uint16(38819), + 119: uint16(38834), + 120: uint16(38836), + 121: uint16(39601), + 122: uint16(39600), + 123: uint16(39607), + 124: uint16(40536), + 125: uint16(39606), + 126: uint16(39610), + 127: uint16(39612), + 128: uint16(39617), + 129: uint16(39616), + 130: uint16(39621), + 131: uint16(39618), + 132: uint16(39627), + 133: uint16(39628), + 134: uint16(39633), + 135: uint16(39749), + 136: uint16(39747), + 137: uint16(39751), + 138: uint16(39753), + 139: uint16(39752), + 140: uint16(39757), + 141: uint16(39761), + 142: uint16(39144), + 143: uint16(39181), + 144: uint16(39214), + 145: uint16(39253), + 146: uint16(39252), + 147: uint16(39647), + 148: uint16(39649), + 149: uint16(39654), + 150: uint16(39663), + 151: uint16(39659), + 152: uint16(39675), + 153: uint16(39661), + 154: uint16(39673), + 155: uint16(39688), + 156: uint16(39695), + 157: uint16(39699), + 158: uint16(39711), + 159: uint16(39715), + 160: uint16(40637), + 161: uint16(40638), + 162: uint16(32315), + 163: uint16(40578), + 164: uint16(40583), + 165: uint16(40584), + 166: uint16(40587), + 167: uint16(40594), + 168: uint16(37846), + 169: uint16(40605), + 170: uint16(40607), + 171: uint16(40667), + 172: uint16(40668), + 173: uint16(40669), + 174: uint16(40672), + 175: uint16(40671), + 176: uint16(40674), + 177: uint16(40681), + 178: uint16(40679), + 179: uint16(40677), + 180: uint16(40682), + 181: uint16(40687), + 182: uint16(40738), + 183: uint16(40748), + 184: uint16(40751), + 185: uint16(40761), + 186: uint16(40759), + 187: uint16(40765), + 188: uint16(40766), + 189: uint16(40772), + }, + 119: { + 0: uint16(40163), + 1: uint16(40164), + 2: uint16(40165), + 3: uint16(40166), + 4: uint16(40167), + 5: uint16(40168), + 6: uint16(40169), + 7: uint16(40170), + 8: uint16(40171), + 9: uint16(40172), + 10: uint16(40173), + 11: uint16(40174), + 12: uint16(40175), + 13: uint16(40176), + 14: uint16(40177), + 15: uint16(40178), + 16: uint16(40179), + 17: uint16(40180), + 18: uint16(40181), + 19: uint16(40182), + 20: uint16(40183), + 21: uint16(40184), + 22: uint16(40185), + 23: uint16(40186), + 24: uint16(40187), + 25: uint16(40188), + 26: uint16(40189), + 27: uint16(40190), + 28: uint16(40191), + 29: uint16(40192), + 30: uint16(40193), + 31: uint16(40194), + 32: uint16(40195), + 33: uint16(40196), + 34: uint16(40197), + 35: uint16(40198), + 36: uint16(40199), + 37: uint16(40200), + 38: uint16(40201), + 39: uint16(40202), + 40: uint16(40203), + 41: uint16(40204), + 42: uint16(40205), + 43: uint16(40206), + 44: uint16(40207), + 45: uint16(40208), + 46: uint16(40209), + 47: uint16(40210), + 48: uint16(40211), + 49: uint16(40212), + 50: uint16(40213), + 51: uint16(40214), + 52: uint16(40215), + 53: uint16(40216), + 54: uint16(40217), + 55: uint16(40218), + 56: uint16(40219), + 57: uint16(40220), + 58: uint16(40221), + 59: uint16(40222), + 60: uint16(40223), + 61: uint16(40224), + 62: uint16(40225), + 63: uint16(40226), + 64: uint16(40227), + 65: uint16(40228), + 66: uint16(40229), + 67: uint16(40230), + 68: uint16(40231), + 69: uint16(40232), + 70: uint16(40233), + 71: uint16(40234), + 72: uint16(40235), + 73: uint16(40236), + 74: uint16(40237), + 75: uint16(40238), + 76: uint16(40239), + 77: uint16(40240), + 78: uint16(40241), + 79: uint16(40242), + 80: uint16(40243), + 81: uint16(40244), + 82: uint16(40245), + 83: uint16(40246), + 84: uint16(40247), + 85: uint16(40248), + 86: uint16(40249), + 87: uint16(40250), + 88: uint16(40251), + 89: uint16(40252), + 90: uint16(40253), + 91: uint16(40254), + 92: uint16(40255), + 93: uint16(40256), + 94: uint16(40257), + 95: uint16(40258), + 96: uint16(57908), + 97: uint16(57909), + 98: uint16(57910), + 99: uint16(57911), + 100: uint16(57912), + 101: uint16(57913), + 102: uint16(57914), + 103: uint16(57915), + 104: uint16(57916), + 105: uint16(57917), + 106: uint16(57918), + 107: uint16(57919), + 108: uint16(57920), + 109: uint16(57921), + 110: uint16(57922), + 111: uint16(57923), + 112: uint16(57924), + 113: uint16(57925), + 114: uint16(57926), + 115: uint16(57927), + 116: uint16(57928), + 117: uint16(57929), + 118: uint16(57930), + 119: uint16(57931), + 120: uint16(57932), + 121: uint16(57933), + 122: uint16(57934), + 123: uint16(57935), + 124: uint16(57936), + 125: uint16(57937), + 126: uint16(57938), + 127: uint16(57939), + 128: uint16(57940), + 129: uint16(57941), + 130: uint16(57942), + 131: uint16(57943), + 132: uint16(57944), + 133: uint16(57945), + 134: uint16(57946), + 135: uint16(57947), + 136: uint16(57948), + 137: uint16(57949), + 138: uint16(57950), + 139: uint16(57951), + 140: uint16(57952), + 141: uint16(57953), + 142: uint16(57954), + 143: uint16(57955), + 144: uint16(57956), + 145: uint16(57957), + 146: uint16(57958), + 147: uint16(57959), + 148: uint16(57960), + 149: uint16(57961), + 150: uint16(57962), + 151: uint16(57963), + 152: uint16(57964), + 153: uint16(57965), + 154: uint16(57966), + 155: uint16(57967), + 156: uint16(57968), + 157: uint16(57969), + 158: uint16(57970), + 159: uint16(57971), + 160: uint16(57972), + 161: uint16(57973), + 162: uint16(57974), + 163: uint16(57975), + 164: uint16(57976), + 165: uint16(57977), + 166: uint16(57978), + 167: uint16(57979), + 168: uint16(57980), + 169: uint16(57981), + 170: uint16(57982), + 171: uint16(57983), + 172: uint16(57984), + 173: uint16(57985), + 174: uint16(57986), + 175: uint16(57987), + 176: uint16(57988), + 177: uint16(57989), + 178: uint16(57990), + 179: uint16(57991), + 180: uint16(57992), + 181: uint16(57993), + 182: uint16(57994), + 183: uint16(57995), + 184: uint16(57996), + 185: uint16(57997), + 186: uint16(57998), + 187: uint16(57999), + 188: uint16(58000), + 189: uint16(58001), + }, + 120: { + 0: uint16(40259), + 1: uint16(40260), + 2: uint16(40261), + 3: uint16(40262), + 4: uint16(40263), + 5: uint16(40264), + 6: uint16(40265), + 7: uint16(40266), + 8: uint16(40267), + 9: uint16(40268), + 10: uint16(40269), + 11: uint16(40270), + 12: uint16(40271), + 13: uint16(40272), + 14: uint16(40273), + 15: uint16(40274), + 16: uint16(40275), + 17: uint16(40276), + 18: uint16(40277), + 19: uint16(40278), + 20: uint16(40279), + 21: uint16(40280), + 22: uint16(40281), + 23: uint16(40282), + 24: uint16(40283), + 25: uint16(40284), + 26: uint16(40285), + 27: uint16(40286), + 28: uint16(40287), + 29: uint16(40288), + 30: uint16(40289), + 31: uint16(40290), + 32: uint16(40291), + 33: uint16(40292), + 34: uint16(40293), + 35: uint16(40294), + 36: uint16(40295), + 37: uint16(40296), + 38: uint16(40297), + 39: uint16(40298), + 40: uint16(40299), + 41: uint16(40300), + 42: uint16(40301), + 43: uint16(40302), + 44: uint16(40303), + 45: uint16(40304), + 46: uint16(40305), + 47: uint16(40306), + 48: uint16(40307), + 49: uint16(40308), + 50: uint16(40309), + 51: uint16(40310), + 52: uint16(40311), + 53: uint16(40312), + 54: uint16(40313), + 55: uint16(40314), + 56: uint16(40315), + 57: uint16(40316), + 58: uint16(40317), + 59: uint16(40318), + 60: uint16(40319), + 61: uint16(40320), + 62: uint16(40321), + 63: uint16(40322), + 64: uint16(40323), + 65: uint16(40324), + 66: uint16(40325), + 67: uint16(40326), + 68: uint16(40327), + 69: uint16(40328), + 70: uint16(40329), + 71: uint16(40330), + 72: uint16(40331), + 73: uint16(40332), + 74: uint16(40333), + 75: uint16(40334), + 76: uint16(40335), + 77: uint16(40336), + 78: uint16(40337), + 79: uint16(40338), + 80: uint16(40339), + 81: uint16(40340), + 82: uint16(40341), + 83: uint16(40342), + 84: uint16(40343), + 85: uint16(40344), + 86: uint16(40345), + 87: uint16(40346), + 88: uint16(40347), + 89: uint16(40348), + 90: uint16(40349), + 91: uint16(40350), + 92: uint16(40351), + 93: uint16(40352), + 94: uint16(40353), + 95: uint16(40354), + 96: uint16(58002), + 97: uint16(58003), + 98: uint16(58004), + 99: uint16(58005), + 100: uint16(58006), + 101: uint16(58007), + 102: uint16(58008), + 103: uint16(58009), + 104: uint16(58010), + 105: uint16(58011), + 106: uint16(58012), + 107: uint16(58013), + 108: uint16(58014), + 109: uint16(58015), + 110: uint16(58016), + 111: uint16(58017), + 112: uint16(58018), + 113: uint16(58019), + 114: uint16(58020), + 115: uint16(58021), + 116: uint16(58022), + 117: uint16(58023), + 118: uint16(58024), + 119: uint16(58025), + 120: uint16(58026), + 121: uint16(58027), + 122: uint16(58028), + 123: uint16(58029), + 124: uint16(58030), + 125: uint16(58031), + 126: uint16(58032), + 127: uint16(58033), + 128: uint16(58034), + 129: uint16(58035), + 130: uint16(58036), + 131: uint16(58037), + 132: uint16(58038), + 133: uint16(58039), + 134: uint16(58040), + 135: uint16(58041), + 136: uint16(58042), + 137: uint16(58043), + 138: uint16(58044), + 139: uint16(58045), + 140: uint16(58046), + 141: uint16(58047), + 142: uint16(58048), + 143: uint16(58049), + 144: uint16(58050), + 145: uint16(58051), + 146: uint16(58052), + 147: uint16(58053), + 148: uint16(58054), + 149: uint16(58055), + 150: uint16(58056), + 151: uint16(58057), + 152: uint16(58058), + 153: uint16(58059), + 154: uint16(58060), + 155: uint16(58061), + 156: uint16(58062), + 157: uint16(58063), + 158: uint16(58064), + 159: uint16(58065), + 160: uint16(58066), + 161: uint16(58067), + 162: uint16(58068), + 163: uint16(58069), + 164: uint16(58070), + 165: uint16(58071), + 166: uint16(58072), + 167: uint16(58073), + 168: uint16(58074), + 169: uint16(58075), + 170: uint16(58076), + 171: uint16(58077), + 172: uint16(58078), + 173: uint16(58079), + 174: uint16(58080), + 175: uint16(58081), + 176: uint16(58082), + 177: uint16(58083), + 178: uint16(58084), + 179: uint16(58085), + 180: uint16(58086), + 181: uint16(58087), + 182: uint16(58088), + 183: uint16(58089), + 184: uint16(58090), + 185: uint16(58091), + 186: uint16(58092), + 187: uint16(58093), + 188: uint16(58094), + 189: uint16(58095), + }, + 121: { + 0: uint16(40355), + 1: uint16(40356), + 2: uint16(40357), + 3: uint16(40358), + 4: uint16(40359), + 5: uint16(40360), + 6: uint16(40361), + 7: uint16(40362), + 8: uint16(40363), + 9: uint16(40364), + 10: uint16(40365), + 11: uint16(40366), + 12: uint16(40367), + 13: uint16(40368), + 14: uint16(40369), + 15: uint16(40370), + 16: uint16(40371), + 17: uint16(40372), + 18: uint16(40373), + 19: uint16(40374), + 20: uint16(40375), + 21: uint16(40376), + 22: uint16(40377), + 23: uint16(40378), + 24: uint16(40379), + 25: uint16(40380), + 26: uint16(40381), + 27: uint16(40382), + 28: uint16(40383), + 29: uint16(40384), + 30: uint16(40385), + 31: uint16(40386), + 32: uint16(40387), + 33: uint16(40388), + 34: uint16(40389), + 35: uint16(40390), + 36: uint16(40391), + 37: uint16(40392), + 38: uint16(40393), + 39: uint16(40394), + 40: uint16(40395), + 41: uint16(40396), + 42: uint16(40397), + 43: uint16(40398), + 44: uint16(40399), + 45: uint16(40400), + 46: uint16(40401), + 47: uint16(40402), + 48: uint16(40403), + 49: uint16(40404), + 50: uint16(40405), + 51: uint16(40406), + 52: uint16(40407), + 53: uint16(40408), + 54: uint16(40409), + 55: uint16(40410), + 56: uint16(40411), + 57: uint16(40412), + 58: uint16(40413), + 59: uint16(40414), + 60: uint16(40415), + 61: uint16(40416), + 62: uint16(40417), + 63: uint16(40418), + 64: uint16(40419), + 65: uint16(40420), + 66: uint16(40421), + 67: uint16(40422), + 68: uint16(40423), + 69: uint16(40424), + 70: uint16(40425), + 71: uint16(40426), + 72: uint16(40427), + 73: uint16(40428), + 74: uint16(40429), + 75: uint16(40430), + 76: uint16(40431), + 77: uint16(40432), + 78: uint16(40433), + 79: uint16(40434), + 80: uint16(40435), + 81: uint16(40436), + 82: uint16(40437), + 83: uint16(40438), + 84: uint16(40439), + 85: uint16(40440), + 86: uint16(40441), + 87: uint16(40442), + 88: uint16(40443), + 89: uint16(40444), + 90: uint16(40445), + 91: uint16(40446), + 92: uint16(40447), + 93: uint16(40448), + 94: uint16(40449), + 95: uint16(40450), + 96: uint16(58096), + 97: uint16(58097), + 98: uint16(58098), + 99: uint16(58099), + 100: uint16(58100), + 101: uint16(58101), + 102: uint16(58102), + 103: uint16(58103), + 104: uint16(58104), + 105: uint16(58105), + 106: uint16(58106), + 107: uint16(58107), + 108: uint16(58108), + 109: uint16(58109), + 110: uint16(58110), + 111: uint16(58111), + 112: uint16(58112), + 113: uint16(58113), + 114: uint16(58114), + 115: uint16(58115), + 116: uint16(58116), + 117: uint16(58117), + 118: uint16(58118), + 119: uint16(58119), + 120: uint16(58120), + 121: uint16(58121), + 122: uint16(58122), + 123: uint16(58123), + 124: uint16(58124), + 125: uint16(58125), + 126: uint16(58126), + 127: uint16(58127), + 128: uint16(58128), + 129: uint16(58129), + 130: uint16(58130), + 131: uint16(58131), + 132: uint16(58132), + 133: uint16(58133), + 134: uint16(58134), + 135: uint16(58135), + 136: uint16(58136), + 137: uint16(58137), + 138: uint16(58138), + 139: uint16(58139), + 140: uint16(58140), + 141: uint16(58141), + 142: uint16(58142), + 143: uint16(58143), + 144: uint16(58144), + 145: uint16(58145), + 146: uint16(58146), + 147: uint16(58147), + 148: uint16(58148), + 149: uint16(58149), + 150: uint16(58150), + 151: uint16(58151), + 152: uint16(58152), + 153: uint16(58153), + 154: uint16(58154), + 155: uint16(58155), + 156: uint16(58156), + 157: uint16(58157), + 158: uint16(58158), + 159: uint16(58159), + 160: uint16(58160), + 161: uint16(58161), + 162: uint16(58162), + 163: uint16(58163), + 164: uint16(58164), + 165: uint16(58165), + 166: uint16(58166), + 167: uint16(58167), + 168: uint16(58168), + 169: uint16(58169), + 170: uint16(58170), + 171: uint16(58171), + 172: uint16(58172), + 173: uint16(58173), + 174: uint16(58174), + 175: uint16(58175), + 176: uint16(58176), + 177: uint16(58177), + 178: uint16(58178), + 179: uint16(58179), + 180: uint16(58180), + 181: uint16(58181), + 182: uint16(58182), + 183: uint16(58183), + 184: uint16(58184), + 185: uint16(58185), + 186: uint16(58186), + 187: uint16(58187), + 188: uint16(58188), + 189: uint16(58189), + }, + 122: { + 0: uint16(40451), + 1: uint16(40452), + 2: uint16(40453), + 3: uint16(40454), + 4: uint16(40455), + 5: uint16(40456), + 6: uint16(40457), + 7: uint16(40458), + 8: uint16(40459), + 9: uint16(40460), + 10: uint16(40461), + 11: uint16(40462), + 12: uint16(40463), + 13: uint16(40464), + 14: uint16(40465), + 15: uint16(40466), + 16: uint16(40467), + 17: uint16(40468), + 18: uint16(40469), + 19: uint16(40470), + 20: uint16(40471), + 21: uint16(40472), + 22: uint16(40473), + 23: uint16(40474), + 24: uint16(40475), + 25: uint16(40476), + 26: uint16(40477), + 27: uint16(40478), + 28: uint16(40484), + 29: uint16(40487), + 30: uint16(40494), + 31: uint16(40496), + 32: uint16(40500), + 33: uint16(40507), + 34: uint16(40508), + 35: uint16(40512), + 36: uint16(40525), + 37: uint16(40528), + 38: uint16(40530), + 39: uint16(40531), + 40: uint16(40532), + 41: uint16(40534), + 42: uint16(40537), + 43: uint16(40541), + 44: uint16(40543), + 45: uint16(40544), + 46: uint16(40545), + 47: uint16(40546), + 48: uint16(40549), + 49: uint16(40558), + 50: uint16(40559), + 51: uint16(40562), + 52: uint16(40564), + 53: uint16(40565), + 54: uint16(40566), + 55: uint16(40567), + 56: uint16(40568), + 57: uint16(40569), + 58: uint16(40570), + 59: uint16(40571), + 60: uint16(40572), + 61: uint16(40573), + 62: uint16(40576), + 63: uint16(40577), + 64: uint16(40579), + 65: uint16(40580), + 66: uint16(40581), + 67: uint16(40582), + 68: uint16(40585), + 69: uint16(40586), + 70: uint16(40588), + 71: uint16(40589), + 72: uint16(40590), + 73: uint16(40591), + 74: uint16(40592), + 75: uint16(40593), + 76: uint16(40596), + 77: uint16(40597), + 78: uint16(40598), + 79: uint16(40599), + 80: uint16(40600), + 81: uint16(40601), + 82: uint16(40602), + 83: uint16(40603), + 84: uint16(40604), + 85: uint16(40606), + 86: uint16(40608), + 87: uint16(40609), + 88: uint16(40610), + 89: uint16(40611), + 90: uint16(40612), + 91: uint16(40613), + 92: uint16(40615), + 93: uint16(40616), + 94: uint16(40617), + 95: uint16(40618), + 96: uint16(58190), + 97: uint16(58191), + 98: uint16(58192), + 99: uint16(58193), + 100: uint16(58194), + 101: uint16(58195), + 102: uint16(58196), + 103: uint16(58197), + 104: uint16(58198), + 105: uint16(58199), + 106: uint16(58200), + 107: uint16(58201), + 108: uint16(58202), + 109: uint16(58203), + 110: uint16(58204), + 111: uint16(58205), + 112: uint16(58206), + 113: uint16(58207), + 114: uint16(58208), + 115: uint16(58209), + 116: uint16(58210), + 117: uint16(58211), + 118: uint16(58212), + 119: uint16(58213), + 120: uint16(58214), + 121: uint16(58215), + 122: uint16(58216), + 123: uint16(58217), + 124: uint16(58218), + 125: uint16(58219), + 126: uint16(58220), + 127: uint16(58221), + 128: uint16(58222), + 129: uint16(58223), + 130: uint16(58224), + 131: uint16(58225), + 132: uint16(58226), + 133: uint16(58227), + 134: uint16(58228), + 135: uint16(58229), + 136: uint16(58230), + 137: uint16(58231), + 138: uint16(58232), + 139: uint16(58233), + 140: uint16(58234), + 141: uint16(58235), + 142: uint16(58236), + 143: uint16(58237), + 144: uint16(58238), + 145: uint16(58239), + 146: uint16(58240), + 147: uint16(58241), + 148: uint16(58242), + 149: uint16(58243), + 150: uint16(58244), + 151: uint16(58245), + 152: uint16(58246), + 153: uint16(58247), + 154: uint16(58248), + 155: uint16(58249), + 156: uint16(58250), + 157: uint16(58251), + 158: uint16(58252), + 159: uint16(58253), + 160: uint16(58254), + 161: uint16(58255), + 162: uint16(58256), + 163: uint16(58257), + 164: uint16(58258), + 165: uint16(58259), + 166: uint16(58260), + 167: uint16(58261), + 168: uint16(58262), + 169: uint16(58263), + 170: uint16(58264), + 171: uint16(58265), + 172: uint16(58266), + 173: uint16(58267), + 174: uint16(58268), + 175: uint16(58269), + 176: uint16(58270), + 177: uint16(58271), + 178: uint16(58272), + 179: uint16(58273), + 180: uint16(58274), + 181: uint16(58275), + 182: uint16(58276), + 183: uint16(58277), + 184: uint16(58278), + 185: uint16(58279), + 186: uint16(58280), + 187: uint16(58281), + 188: uint16(58282), + 189: uint16(58283), + }, + 123: { + 0: uint16(40619), + 1: uint16(40620), + 2: uint16(40621), + 3: uint16(40622), + 4: uint16(40623), + 5: uint16(40624), + 6: uint16(40625), + 7: uint16(40626), + 8: uint16(40627), + 9: uint16(40629), + 10: uint16(40630), + 11: uint16(40631), + 12: uint16(40633), + 13: uint16(40634), + 14: uint16(40636), + 15: uint16(40639), + 16: uint16(40640), + 17: uint16(40641), + 18: uint16(40642), + 19: uint16(40643), + 20: uint16(40645), + 21: uint16(40646), + 22: uint16(40647), + 23: uint16(40648), + 24: uint16(40650), + 25: uint16(40651), + 26: uint16(40652), + 27: uint16(40656), + 28: uint16(40658), + 29: uint16(40659), + 30: uint16(40661), + 31: uint16(40662), + 32: uint16(40663), + 33: uint16(40665), + 34: uint16(40666), + 35: uint16(40670), + 36: uint16(40673), + 37: uint16(40675), + 38: uint16(40676), + 39: uint16(40678), + 40: uint16(40680), + 41: uint16(40683), + 42: uint16(40684), + 43: uint16(40685), + 44: uint16(40686), + 45: uint16(40688), + 46: uint16(40689), + 47: uint16(40690), + 48: uint16(40691), + 49: uint16(40692), + 50: uint16(40693), + 51: uint16(40694), + 52: uint16(40695), + 53: uint16(40696), + 54: uint16(40698), + 55: uint16(40701), + 56: uint16(40703), + 57: uint16(40704), + 58: uint16(40705), + 59: uint16(40706), + 60: uint16(40707), + 61: uint16(40708), + 62: uint16(40709), + 63: uint16(40710), + 64: uint16(40711), + 65: uint16(40712), + 66: uint16(40713), + 67: uint16(40714), + 68: uint16(40716), + 69: uint16(40719), + 70: uint16(40721), + 71: uint16(40722), + 72: uint16(40724), + 73: uint16(40725), + 74: uint16(40726), + 75: uint16(40728), + 76: uint16(40730), + 77: uint16(40731), + 78: uint16(40732), + 79: uint16(40733), + 80: uint16(40734), + 81: uint16(40735), + 82: uint16(40737), + 83: uint16(40739), + 84: uint16(40740), + 85: uint16(40741), + 86: uint16(40742), + 87: uint16(40743), + 88: uint16(40744), + 89: uint16(40745), + 90: uint16(40746), + 91: uint16(40747), + 92: uint16(40749), + 93: uint16(40750), + 94: uint16(40752), + 95: uint16(40753), + 96: uint16(58284), + 97: uint16(58285), + 98: uint16(58286), + 99: uint16(58287), + 100: uint16(58288), + 101: uint16(58289), + 102: uint16(58290), + 103: uint16(58291), + 104: uint16(58292), + 105: uint16(58293), + 106: uint16(58294), + 107: uint16(58295), + 108: uint16(58296), + 109: uint16(58297), + 110: uint16(58298), + 111: uint16(58299), + 112: uint16(58300), + 113: uint16(58301), + 114: uint16(58302), + 115: uint16(58303), + 116: uint16(58304), + 117: uint16(58305), + 118: uint16(58306), + 119: uint16(58307), + 120: uint16(58308), + 121: uint16(58309), + 122: uint16(58310), + 123: uint16(58311), + 124: uint16(58312), + 125: uint16(58313), + 126: uint16(58314), + 127: uint16(58315), + 128: uint16(58316), + 129: uint16(58317), + 130: uint16(58318), + 131: uint16(58319), + 132: uint16(58320), + 133: uint16(58321), + 134: uint16(58322), + 135: uint16(58323), + 136: uint16(58324), + 137: uint16(58325), + 138: uint16(58326), + 139: uint16(58327), + 140: uint16(58328), + 141: uint16(58329), + 142: uint16(58330), + 143: uint16(58331), + 144: uint16(58332), + 145: uint16(58333), + 146: uint16(58334), + 147: uint16(58335), + 148: uint16(58336), + 149: uint16(58337), + 150: uint16(58338), + 151: uint16(58339), + 152: uint16(58340), + 153: uint16(58341), + 154: uint16(58342), + 155: uint16(58343), + 156: uint16(58344), + 157: uint16(58345), + 158: uint16(58346), + 159: uint16(58347), + 160: uint16(58348), + 161: uint16(58349), + 162: uint16(58350), + 163: uint16(58351), + 164: uint16(58352), + 165: uint16(58353), + 166: uint16(58354), + 167: uint16(58355), + 168: uint16(58356), + 169: uint16(58357), + 170: uint16(58358), + 171: uint16(58359), + 172: uint16(58360), + 173: uint16(58361), + 174: uint16(58362), + 175: uint16(58363), + 176: uint16(58364), + 177: uint16(58365), + 178: uint16(58366), + 179: uint16(58367), + 180: uint16(58368), + 181: uint16(58369), + 182: uint16(58370), + 183: uint16(58371), + 184: uint16(58372), + 185: uint16(58373), + 186: uint16(58374), + 187: uint16(58375), + 188: uint16(58376), + 189: uint16(58377), + }, + 124: { + 0: uint16(40754), + 1: uint16(40755), + 2: uint16(40756), + 3: uint16(40757), + 4: uint16(40758), + 5: uint16(40760), + 6: uint16(40762), + 7: uint16(40764), + 8: uint16(40767), + 9: uint16(40768), + 10: uint16(40769), + 11: uint16(40770), + 12: uint16(40771), + 13: uint16(40773), + 14: uint16(40774), + 15: uint16(40775), + 16: uint16(40776), + 17: uint16(40777), + 18: uint16(40778), + 19: uint16(40779), + 20: uint16(40780), + 21: uint16(40781), + 22: uint16(40782), + 23: uint16(40783), + 24: uint16(40786), + 25: uint16(40787), + 26: uint16(40788), + 27: uint16(40789), + 28: uint16(40790), + 29: uint16(40791), + 30: uint16(40792), + 31: uint16(40793), + 32: uint16(40794), + 33: uint16(40795), + 34: uint16(40796), + 35: uint16(40797), + 36: uint16(40798), + 37: uint16(40799), + 38: uint16(40800), + 39: uint16(40801), + 40: uint16(40802), + 41: uint16(40803), + 42: uint16(40804), + 43: uint16(40805), + 44: uint16(40806), + 45: uint16(40807), + 46: uint16(40808), + 47: uint16(40809), + 48: uint16(40810), + 49: uint16(40811), + 50: uint16(40812), + 51: uint16(40813), + 52: uint16(40814), + 53: uint16(40815), + 54: uint16(40816), + 55: uint16(40817), + 56: uint16(40818), + 57: uint16(40819), + 58: uint16(40820), + 59: uint16(40821), + 60: uint16(40822), + 61: uint16(40823), + 62: uint16(40824), + 63: uint16(40825), + 64: uint16(40826), + 65: uint16(40827), + 66: uint16(40828), + 67: uint16(40829), + 68: uint16(40830), + 69: uint16(40833), + 70: uint16(40834), + 71: uint16(40845), + 72: uint16(40846), + 73: uint16(40847), + 74: uint16(40848), + 75: uint16(40849), + 76: uint16(40850), + 77: uint16(40851), + 78: uint16(40852), + 79: uint16(40853), + 80: uint16(40854), + 81: uint16(40855), + 82: uint16(40856), + 83: uint16(40860), + 84: uint16(40861), + 85: uint16(40862), + 86: uint16(40865), + 87: uint16(40866), + 88: uint16(40867), + 89: uint16(40868), + 90: uint16(40869), + 91: uint16(63788), + 92: uint16(63865), + 93: uint16(63893), + 94: uint16(63975), + 95: uint16(63985), + 96: uint16(58378), + 97: uint16(58379), + 98: uint16(58380), + 99: uint16(58381), + 100: uint16(58382), + 101: uint16(58383), + 102: uint16(58384), + 103: uint16(58385), + 104: uint16(58386), + 105: uint16(58387), + 106: uint16(58388), + 107: uint16(58389), + 108: uint16(58390), + 109: uint16(58391), + 110: uint16(58392), + 111: uint16(58393), + 112: uint16(58394), + 113: uint16(58395), + 114: uint16(58396), + 115: uint16(58397), + 116: uint16(58398), + 117: uint16(58399), + 118: uint16(58400), + 119: uint16(58401), + 120: uint16(58402), + 121: uint16(58403), + 122: uint16(58404), + 123: uint16(58405), + 124: uint16(58406), + 125: uint16(58407), + 126: uint16(58408), + 127: uint16(58409), + 128: uint16(58410), + 129: uint16(58411), + 130: uint16(58412), + 131: uint16(58413), + 132: uint16(58414), + 133: uint16(58415), + 134: uint16(58416), + 135: uint16(58417), + 136: uint16(58418), + 137: uint16(58419), + 138: uint16(58420), + 139: uint16(58421), + 140: uint16(58422), + 141: uint16(58423), + 142: uint16(58424), + 143: uint16(58425), + 144: uint16(58426), + 145: uint16(58427), + 146: uint16(58428), + 147: uint16(58429), + 148: uint16(58430), + 149: uint16(58431), + 150: uint16(58432), + 151: uint16(58433), + 152: uint16(58434), + 153: uint16(58435), + 154: uint16(58436), + 155: uint16(58437), + 156: uint16(58438), + 157: uint16(58439), + 158: uint16(58440), + 159: uint16(58441), + 160: uint16(58442), + 161: uint16(58443), + 162: uint16(58444), + 163: uint16(58445), + 164: uint16(58446), + 165: uint16(58447), + 166: uint16(58448), + 167: uint16(58449), + 168: uint16(58450), + 169: uint16(58451), + 170: uint16(58452), + 171: uint16(58453), + 172: uint16(58454), + 173: uint16(58455), + 174: uint16(58456), + 175: uint16(58457), + 176: uint16(58458), + 177: uint16(58459), + 178: uint16(58460), + 179: uint16(58461), + 180: uint16(58462), + 181: uint16(58463), + 182: uint16(58464), + 183: uint16(58465), + 184: uint16(58466), + 185: uint16(58467), + 186: uint16(58468), + 187: uint16(58469), + 188: uint16(58470), + 189: uint16(58471), + }, + 125: { + 0: uint16(64012), + 1: uint16(64013), + 2: uint16(64014), + 3: uint16(64015), + 4: uint16(64017), + 5: uint16(64019), + 6: uint16(64020), + 7: uint16(64024), + 8: uint16(64031), + 9: uint16(64032), + 10: uint16(64033), + 11: uint16(64035), + 12: uint16(64036), + 13: uint16(64039), + 14: uint16(64040), + 15: uint16(64041), + 16: uint16(11905), + 17: uint16(59414), + 18: uint16(59415), + 19: uint16(59416), + 20: uint16(11908), + 21: uint16(13427), + 22: uint16(13383), + 23: uint16(11912), + 24: uint16(11915), + 25: uint16(59422), + 26: uint16(13726), + 27: uint16(13850), + 28: uint16(13838), + 29: uint16(11916), + 30: uint16(11927), + 31: uint16(14702), + 32: uint16(14616), + 33: uint16(59430), + 34: uint16(14799), + 35: uint16(14815), + 36: uint16(14963), + 37: uint16(14800), + 38: uint16(59435), + 39: uint16(59436), + 40: uint16(15182), + 41: uint16(15470), + 42: uint16(15584), + 43: uint16(11943), + 44: uint16(59441), + 45: uint16(59442), + 46: uint16(11946), + 47: uint16(16470), + 48: uint16(16735), + 49: uint16(11950), + 50: uint16(17207), + 51: uint16(11955), + 52: uint16(11958), + 53: uint16(11959), + 54: uint16(59451), + 55: uint16(17329), + 56: uint16(17324), + 57: uint16(11963), + 58: uint16(17373), + 59: uint16(17622), + 60: uint16(18017), + 61: uint16(17996), + 62: uint16(59459), + 63: uint16(18211), + 64: uint16(18217), + 65: uint16(18300), + 66: uint16(18317), + 67: uint16(11978), + 68: uint16(18759), + 69: uint16(18810), + 70: uint16(18813), + 71: uint16(18818), + 72: uint16(18819), + 73: uint16(18821), + 74: uint16(18822), + 75: uint16(18847), + 76: uint16(18843), + 77: uint16(18871), + 78: uint16(18870), + 79: uint16(59476), + 80: uint16(59477), + 81: uint16(19619), + 82: uint16(19615), + 83: uint16(19616), + 84: uint16(19617), + 85: uint16(19575), + 86: uint16(19618), + 87: uint16(19731), + 88: uint16(19732), + 89: uint16(19733), + 90: uint16(19734), + 91: uint16(19735), + 92: uint16(19736), + 93: uint16(19737), + 94: uint16(19886), + 95: uint16(59492), + 96: uint16(58472), + 97: uint16(58473), + 98: uint16(58474), + 99: uint16(58475), + 100: uint16(58476), + 101: uint16(58477), + 102: uint16(58478), + 103: uint16(58479), + 104: uint16(58480), + 105: uint16(58481), + 106: uint16(58482), + 107: uint16(58483), + 108: uint16(58484), + 109: uint16(58485), + 110: uint16(58486), + 111: uint16(58487), + 112: uint16(58488), + 113: uint16(58489), + 114: uint16(58490), + 115: uint16(58491), + 116: uint16(58492), + 117: uint16(58493), + 118: uint16(58494), + 119: uint16(58495), + 120: uint16(58496), + 121: uint16(58497), + 122: uint16(58498), + 123: uint16(58499), + 124: uint16(58500), + 125: uint16(58501), + 126: uint16(58502), + 127: uint16(58503), + 128: uint16(58504), + 129: uint16(58505), + 130: uint16(58506), + 131: uint16(58507), + 132: uint16(58508), + 133: uint16(58509), + 134: uint16(58510), + 135: uint16(58511), + 136: uint16(58512), + 137: uint16(58513), + 138: uint16(58514), + 139: uint16(58515), + 140: uint16(58516), + 141: uint16(58517), + 142: uint16(58518), + 143: uint16(58519), + 144: uint16(58520), + 145: uint16(58521), + 146: uint16(58522), + 147: uint16(58523), + 148: uint16(58524), + 149: uint16(58525), + 150: uint16(58526), + 151: uint16(58527), + 152: uint16(58528), + 153: uint16(58529), + 154: uint16(58530), + 155: uint16(58531), + 156: uint16(58532), + 157: uint16(58533), + 158: uint16(58534), + 159: uint16(58535), + 160: uint16(58536), + 161: uint16(58537), + 162: uint16(58538), + 163: uint16(58539), + 164: uint16(58540), + 165: uint16(58541), + 166: uint16(58542), + 167: uint16(58543), + 168: uint16(58544), + 169: uint16(58545), + 170: uint16(58546), + 171: uint16(58547), + 172: uint16(58548), + 173: uint16(58549), + 174: uint16(58550), + 175: uint16(58551), + 176: uint16(58552), + 177: uint16(58553), + 178: uint16(58554), + 179: uint16(58555), + 180: uint16(58556), + 181: uint16(58557), + 182: uint16(58558), + 183: uint16(58559), + 184: uint16(58560), + 185: uint16(58561), + 186: uint16(58562), + 187: uint16(58563), + 188: uint16(58564), + 189: uint16(58565), + }, +} + +var _big5 = [89][157]uint16{ + 0: { + 0: uint16(12288), + 1: uint16(65292), + 2: uint16(12289), + 3: uint16(12290), + 4: uint16(65294), + 5: uint16(8231), + 6: uint16(65307), + 7: uint16(65306), + 8: uint16(65311), + 9: uint16(65281), + 10: uint16(65072), + 11: uint16(8230), + 12: uint16(8229), + 13: uint16(65104), + 14: uint16(65105), + 15: uint16(65106), + 16: uint16(183), + 17: uint16(65108), + 18: uint16(65109), + 19: uint16(65110), + 20: uint16(65111), + 21: uint16(65372), + 22: uint16(8211), + 23: uint16(65073), + 24: uint16(8212), + 25: uint16(65075), + 26: uint16(9588), + 27: uint16(65076), + 28: uint16(65103), + 29: uint16(65288), + 30: uint16(65289), + 31: uint16(65077), + 32: uint16(65078), + 33: uint16(65371), + 34: uint16(65373), + 35: uint16(65079), + 36: uint16(65080), + 37: uint16(12308), + 38: uint16(12309), + 39: uint16(65081), + 40: uint16(65082), + 41: uint16(12304), + 42: uint16(12305), + 43: uint16(65083), + 44: uint16(65084), + 45: uint16(12298), + 46: uint16(12299), + 47: uint16(65085), + 48: uint16(65086), + 49: uint16(12296), + 50: uint16(12297), + 51: uint16(65087), + 52: uint16(65088), + 53: uint16(12300), + 54: uint16(12301), + 55: uint16(65089), + 56: uint16(65090), + 57: uint16(12302), + 58: uint16(12303), + 59: uint16(65091), + 60: uint16(65092), + 61: uint16(65113), + 62: uint16(65114), + 63: uint16(65115), + 64: uint16(65116), + 65: uint16(65117), + 66: uint16(65118), + 67: uint16(8216), + 68: uint16(8217), + 69: uint16(8220), + 70: uint16(8221), + 71: uint16(12317), + 72: uint16(12318), + 73: uint16(8245), + 74: uint16(8242), + 75: uint16(65283), + 76: uint16(65286), + 77: uint16(65290), + 78: uint16(8251), + 79: uint16(167), + 80: uint16(12291), + 81: uint16(9675), + 82: uint16(9679), + 83: uint16(9651), + 84: uint16(9650), + 85: uint16(9678), + 86: uint16(9734), + 87: uint16(9733), + 88: uint16(9671), + 89: uint16(9670), + 90: uint16(9633), + 91: uint16(9632), + 92: uint16(9661), + 93: uint16(9660), + 94: uint16(12963), + 95: uint16(8453), + 96: uint16(175), + 97: uint16(65507), + 98: uint16(65343), + 99: uint16(717), + 100: uint16(65097), + 101: uint16(65098), + 102: uint16(65101), + 103: uint16(65102), + 104: uint16(65099), + 105: uint16(65100), + 106: uint16(65119), + 107: uint16(65120), + 108: uint16(65121), + 109: uint16(65291), + 110: uint16(65293), + 111: uint16(215), + 112: uint16(247), + 113: uint16(177), + 114: uint16(8730), + 115: uint16(65308), + 116: uint16(65310), + 117: uint16(65309), + 118: uint16(8806), + 119: uint16(8807), + 120: uint16(8800), + 121: uint16(8734), + 122: uint16(8786), + 123: uint16(8801), + 124: uint16(65122), + 125: uint16(65123), + 126: uint16(65124), + 127: uint16(65125), + 128: uint16(65126), + 129: uint16(65374), + 130: uint16(8745), + 131: uint16(8746), + 132: uint16(8869), + 133: uint16(8736), + 134: uint16(8735), + 135: uint16(8895), + 136: uint16(13266), + 137: uint16(13265), + 138: uint16(8747), + 139: uint16(8750), + 140: uint16(8757), + 141: uint16(8756), + 142: uint16(9792), + 143: uint16(9794), + 144: uint16(8853), + 145: uint16(8857), + 146: uint16(8593), + 147: uint16(8595), + 148: uint16(8592), + 149: uint16(8594), + 150: uint16(8598), + 151: uint16(8599), + 152: uint16(8601), + 153: uint16(8600), + 154: uint16(8741), + 155: uint16(8739), + 156: uint16(65295), + }, + 1: { + 0: uint16(65340), + 1: uint16(8725), + 2: uint16(65128), + 3: uint16(65284), + 4: uint16(65509), + 5: uint16(12306), + 6: uint16(65504), + 7: uint16(65505), + 8: uint16(65285), + 9: uint16(65312), + 10: uint16(8451), + 11: uint16(8457), + 12: uint16(65129), + 13: uint16(65130), + 14: uint16(65131), + 15: uint16(13269), + 16: uint16(13212), + 17: uint16(13213), + 18: uint16(13214), + 19: uint16(13262), + 20: uint16(13217), + 21: uint16(13198), + 22: uint16(13199), + 23: uint16(13252), + 24: uint16(176), + 25: uint16(20825), + 26: uint16(20827), + 27: uint16(20830), + 28: uint16(20829), + 29: uint16(20833), + 30: uint16(20835), + 31: uint16(21991), + 32: uint16(29929), + 33: uint16(31950), + 34: uint16(9601), + 35: uint16(9602), + 36: uint16(9603), + 37: uint16(9604), + 38: uint16(9605), + 39: uint16(9606), + 40: uint16(9607), + 41: uint16(9608), + 42: uint16(9615), + 43: uint16(9614), + 44: uint16(9613), + 45: uint16(9612), + 46: uint16(9611), + 47: uint16(9610), + 48: uint16(9609), + 49: uint16(9532), + 50: uint16(9524), + 51: uint16(9516), + 52: uint16(9508), + 53: uint16(9500), + 54: uint16(9620), + 55: uint16(9472), + 56: uint16(9474), + 57: uint16(9621), + 58: uint16(9484), + 59: uint16(9488), + 60: uint16(9492), + 61: uint16(9496), + 62: uint16(9581), + 63: uint16(9582), + 64: uint16(9584), + 65: uint16(9583), + 66: uint16(9552), + 67: uint16(9566), + 68: uint16(9578), + 69: uint16(9569), + 70: uint16(9698), + 71: uint16(9699), + 72: uint16(9701), + 73: uint16(9700), + 74: uint16(9585), + 75: uint16(9586), + 76: uint16(9587), + 77: uint16(65296), + 78: uint16(65297), + 79: uint16(65298), + 80: uint16(65299), + 81: uint16(65300), + 82: uint16(65301), + 83: uint16(65302), + 84: uint16(65303), + 85: uint16(65304), + 86: uint16(65305), + 87: uint16(8544), + 88: uint16(8545), + 89: uint16(8546), + 90: uint16(8547), + 91: uint16(8548), + 92: uint16(8549), + 93: uint16(8550), + 94: uint16(8551), + 95: uint16(8552), + 96: uint16(8553), + 97: uint16(12321), + 98: uint16(12322), + 99: uint16(12323), + 100: uint16(12324), + 101: uint16(12325), + 102: uint16(12326), + 103: uint16(12327), + 104: uint16(12328), + 105: uint16(12329), + 106: uint16(21313), + 107: uint16(21316), + 108: uint16(21317), + 109: uint16(65313), + 110: uint16(65314), + 111: uint16(65315), + 112: uint16(65316), + 113: uint16(65317), + 114: uint16(65318), + 115: uint16(65319), + 116: uint16(65320), + 117: uint16(65321), + 118: uint16(65322), + 119: uint16(65323), + 120: uint16(65324), + 121: uint16(65325), + 122: uint16(65326), + 123: uint16(65327), + 124: uint16(65328), + 125: uint16(65329), + 126: uint16(65330), + 127: uint16(65331), + 128: uint16(65332), + 129: uint16(65333), + 130: uint16(65334), + 131: uint16(65335), + 132: uint16(65336), + 133: uint16(65337), + 134: uint16(65338), + 135: uint16(65345), + 136: uint16(65346), + 137: uint16(65347), + 138: uint16(65348), + 139: uint16(65349), + 140: uint16(65350), + 141: uint16(65351), + 142: uint16(65352), + 143: uint16(65353), + 144: uint16(65354), + 145: uint16(65355), + 146: uint16(65356), + 147: uint16(65357), + 148: uint16(65358), + 149: uint16(65359), + 150: uint16(65360), + 151: uint16(65361), + 152: uint16(65362), + 153: uint16(65363), + 154: uint16(65364), + 155: uint16(65365), + 156: uint16(65366), + }, + 2: { + 0: uint16(65367), + 1: uint16(65368), + 2: uint16(65369), + 3: uint16(65370), + 4: uint16(913), + 5: uint16(914), + 6: uint16(915), + 7: uint16(916), + 8: uint16(917), + 9: uint16(918), + 10: uint16(919), + 11: uint16(920), + 12: uint16(921), + 13: uint16(922), + 14: uint16(923), + 15: uint16(924), + 16: uint16(925), + 17: uint16(926), + 18: uint16(927), + 19: uint16(928), + 20: uint16(929), + 21: uint16(931), + 22: uint16(932), + 23: uint16(933), + 24: uint16(934), + 25: uint16(935), + 26: uint16(936), + 27: uint16(937), + 28: uint16(945), + 29: uint16(946), + 30: uint16(947), + 31: uint16(948), + 32: uint16(949), + 33: uint16(950), + 34: uint16(951), + 35: uint16(952), + 36: uint16(953), + 37: uint16(954), + 38: uint16(955), + 39: uint16(956), + 40: uint16(957), + 41: uint16(958), + 42: uint16(959), + 43: uint16(960), + 44: uint16(961), + 45: uint16(963), + 46: uint16(964), + 47: uint16(965), + 48: uint16(966), + 49: uint16(967), + 50: uint16(968), + 51: uint16(969), + 52: uint16(12549), + 53: uint16(12550), + 54: uint16(12551), + 55: uint16(12552), + 56: uint16(12553), + 57: uint16(12554), + 58: uint16(12555), + 59: uint16(12556), + 60: uint16(12557), + 61: uint16(12558), + 62: uint16(12559), + 63: uint16(12560), + 64: uint16(12561), + 65: uint16(12562), + 66: uint16(12563), + 67: uint16(12564), + 68: uint16(12565), + 69: uint16(12566), + 70: uint16(12567), + 71: uint16(12568), + 72: uint16(12569), + 73: uint16(12570), + 74: uint16(12571), + 75: uint16(12572), + 76: uint16(12573), + 77: uint16(12574), + 78: uint16(12575), + 79: uint16(12576), + 80: uint16(12577), + 81: uint16(12578), + 82: uint16(12579), + 83: uint16(12580), + 84: uint16(12581), + 85: uint16(12582), + 86: uint16(12583), + 87: uint16(12584), + 88: uint16(12585), + 89: uint16(729), + 90: uint16(713), + 91: uint16(714), + 92: uint16(711), + 93: uint16(715), + 94: uint16(9216), + 95: uint16(9217), + 96: uint16(9218), + 97: uint16(9219), + 98: uint16(9220), + 99: uint16(9221), + 100: uint16(9222), + 101: uint16(9223), + 102: uint16(9224), + 103: uint16(9225), + 104: uint16(9226), + 105: uint16(9227), + 106: uint16(9228), + 107: uint16(9229), + 108: uint16(9230), + 109: uint16(9231), + 110: uint16(9232), + 111: uint16(9233), + 112: uint16(9234), + 113: uint16(9235), + 114: uint16(9236), + 115: uint16(9237), + 116: uint16(9238), + 117: uint16(9239), + 118: uint16(9240), + 119: uint16(9241), + 120: uint16(9242), + 121: uint16(9243), + 122: uint16(9244), + 123: uint16(9245), + 124: uint16(9246), + 125: uint16(9247), + 126: uint16(9249), + 127: uint16(8364), + }, + 3: { + 0: uint16(19968), + 1: uint16(20057), + 2: uint16(19969), + 3: uint16(19971), + 4: uint16(20035), + 5: uint16(20061), + 6: uint16(20102), + 7: uint16(20108), + 8: uint16(20154), + 9: uint16(20799), + 10: uint16(20837), + 11: uint16(20843), + 12: uint16(20960), + 13: uint16(20992), + 14: uint16(20993), + 15: uint16(21147), + 16: uint16(21269), + 17: uint16(21313), + 18: uint16(21340), + 19: uint16(21448), + 20: uint16(19977), + 21: uint16(19979), + 22: uint16(19976), + 23: uint16(19978), + 24: uint16(20011), + 25: uint16(20024), + 26: uint16(20961), + 27: uint16(20037), + 28: uint16(20040), + 29: uint16(20063), + 30: uint16(20062), + 31: uint16(20110), + 32: uint16(20129), + 33: uint16(20800), + 34: uint16(20995), + 35: uint16(21242), + 36: uint16(21315), + 37: uint16(21449), + 38: uint16(21475), + 39: uint16(22303), + 40: uint16(22763), + 41: uint16(22805), + 42: uint16(22823), + 43: uint16(22899), + 44: uint16(23376), + 45: uint16(23377), + 46: uint16(23379), + 47: uint16(23544), + 48: uint16(23567), + 49: uint16(23586), + 50: uint16(23608), + 51: uint16(23665), + 52: uint16(24029), + 53: uint16(24037), + 54: uint16(24049), + 55: uint16(24050), + 56: uint16(24051), + 57: uint16(24062), + 58: uint16(24178), + 59: uint16(24318), + 60: uint16(24331), + 61: uint16(24339), + 62: uint16(25165), + 63: uint16(19985), + 64: uint16(19984), + 65: uint16(19981), + 66: uint16(20013), + 67: uint16(20016), + 68: uint16(20025), + 69: uint16(20043), + 70: uint16(23609), + 71: uint16(20104), + 72: uint16(20113), + 73: uint16(20117), + 74: uint16(20114), + 75: uint16(20116), + 76: uint16(20130), + 77: uint16(20161), + 78: uint16(20160), + 79: uint16(20163), + 80: uint16(20166), + 81: uint16(20167), + 82: uint16(20173), + 83: uint16(20170), + 84: uint16(20171), + 85: uint16(20164), + 86: uint16(20803), + 87: uint16(20801), + 88: uint16(20839), + 89: uint16(20845), + 90: uint16(20846), + 91: uint16(20844), + 92: uint16(20887), + 93: uint16(20982), + 94: uint16(20998), + 95: uint16(20999), + 96: uint16(21000), + 97: uint16(21243), + 98: uint16(21246), + 99: uint16(21247), + 100: uint16(21270), + 101: uint16(21305), + 102: uint16(21320), + 103: uint16(21319), + 104: uint16(21317), + 105: uint16(21342), + 106: uint16(21380), + 107: uint16(21451), + 108: uint16(21450), + 109: uint16(21453), + 110: uint16(22764), + 111: uint16(22825), + 112: uint16(22827), + 113: uint16(22826), + 114: uint16(22829), + 115: uint16(23380), + 116: uint16(23569), + 117: uint16(23588), + 118: uint16(23610), + 119: uint16(23663), + 120: uint16(24052), + 121: uint16(24187), + 122: uint16(24319), + 123: uint16(24340), + 124: uint16(24341), + 125: uint16(24515), + 126: uint16(25096), + 127: uint16(25142), + 128: uint16(25163), + 129: uint16(25166), + 130: uint16(25903), + 131: uint16(25991), + 132: uint16(26007), + 133: uint16(26020), + 134: uint16(26041), + 135: uint16(26085), + 136: uint16(26352), + 137: uint16(26376), + 138: uint16(26408), + 139: uint16(27424), + 140: uint16(27490), + 141: uint16(27513), + 142: uint16(27595), + 143: uint16(27604), + 144: uint16(27611), + 145: uint16(27663), + 146: uint16(27700), + 147: uint16(28779), + 148: uint16(29226), + 149: uint16(29238), + 150: uint16(29243), + 151: uint16(29255), + 152: uint16(29273), + 153: uint16(29275), + 154: uint16(29356), + 155: uint16(29579), + 156: uint16(19993), + }, + 4: { + 0: uint16(19990), + 1: uint16(19989), + 2: uint16(19988), + 3: uint16(19992), + 4: uint16(20027), + 5: uint16(20045), + 6: uint16(20047), + 7: uint16(20046), + 8: uint16(20197), + 9: uint16(20184), + 10: uint16(20180), + 11: uint16(20181), + 12: uint16(20182), + 13: uint16(20183), + 14: uint16(20195), + 15: uint16(20196), + 16: uint16(20185), + 17: uint16(20190), + 18: uint16(20805), + 19: uint16(20804), + 20: uint16(20873), + 21: uint16(20874), + 22: uint16(20908), + 23: uint16(20985), + 24: uint16(20986), + 25: uint16(20984), + 26: uint16(21002), + 27: uint16(21152), + 28: uint16(21151), + 29: uint16(21253), + 30: uint16(21254), + 31: uint16(21271), + 32: uint16(21277), + 33: uint16(20191), + 34: uint16(21322), + 35: uint16(21321), + 36: uint16(21345), + 37: uint16(21344), + 38: uint16(21359), + 39: uint16(21358), + 40: uint16(21435), + 41: uint16(21487), + 42: uint16(21476), + 43: uint16(21491), + 44: uint16(21484), + 45: uint16(21486), + 46: uint16(21481), + 47: uint16(21480), + 48: uint16(21500), + 49: uint16(21496), + 50: uint16(21493), + 51: uint16(21483), + 52: uint16(21478), + 53: uint16(21482), + 54: uint16(21490), + 55: uint16(21489), + 56: uint16(21488), + 57: uint16(21477), + 58: uint16(21485), + 59: uint16(21499), + 60: uint16(22235), + 61: uint16(22234), + 62: uint16(22806), + 63: uint16(22830), + 64: uint16(22833), + 65: uint16(22900), + 66: uint16(22902), + 67: uint16(23381), + 68: uint16(23427), + 69: uint16(23612), + 70: uint16(24040), + 71: uint16(24039), + 72: uint16(24038), + 73: uint16(24066), + 74: uint16(24067), + 75: uint16(24179), + 76: uint16(24188), + 77: uint16(24321), + 78: uint16(24344), + 79: uint16(24343), + 80: uint16(24517), + 81: uint16(25098), + 82: uint16(25171), + 83: uint16(25172), + 84: uint16(25170), + 85: uint16(25169), + 86: uint16(26021), + 87: uint16(26086), + 88: uint16(26414), + 89: uint16(26412), + 90: uint16(26410), + 91: uint16(26411), + 92: uint16(26413), + 93: uint16(27491), + 94: uint16(27597), + 95: uint16(27665), + 96: uint16(27664), + 97: uint16(27704), + 98: uint16(27713), + 99: uint16(27712), + 100: uint16(27710), + 101: uint16(29359), + 102: uint16(29572), + 103: uint16(29577), + 104: uint16(29916), + 105: uint16(29926), + 106: uint16(29976), + 107: uint16(29983), + 108: uint16(29992), + 109: uint16(29993), + 110: uint16(30000), + 111: uint16(30001), + 112: uint16(30002), + 113: uint16(30003), + 114: uint16(30091), + 115: uint16(30333), + 116: uint16(30382), + 117: uint16(30399), + 118: uint16(30446), + 119: uint16(30683), + 120: uint16(30690), + 121: uint16(30707), + 122: uint16(31034), + 123: uint16(31166), + 124: uint16(31348), + 125: uint16(31435), + 126: uint16(19998), + 127: uint16(19999), + 128: uint16(20050), + 129: uint16(20051), + 130: uint16(20073), + 131: uint16(20121), + 132: uint16(20132), + 133: uint16(20134), + 134: uint16(20133), + 135: uint16(20223), + 136: uint16(20233), + 137: uint16(20249), + 138: uint16(20234), + 139: uint16(20245), + 140: uint16(20237), + 141: uint16(20240), + 142: uint16(20241), + 143: uint16(20239), + 144: uint16(20210), + 145: uint16(20214), + 146: uint16(20219), + 147: uint16(20208), + 148: uint16(20211), + 149: uint16(20221), + 150: uint16(20225), + 151: uint16(20235), + 152: uint16(20809), + 153: uint16(20807), + 154: uint16(20806), + 155: uint16(20808), + 156: uint16(20840), + }, + 5: { + 0: uint16(20849), + 1: uint16(20877), + 2: uint16(20912), + 3: uint16(21015), + 4: uint16(21009), + 5: uint16(21010), + 6: uint16(21006), + 7: uint16(21014), + 8: uint16(21155), + 9: uint16(21256), + 10: uint16(21281), + 11: uint16(21280), + 12: uint16(21360), + 13: uint16(21361), + 14: uint16(21513), + 15: uint16(21519), + 16: uint16(21516), + 17: uint16(21514), + 18: uint16(21520), + 19: uint16(21505), + 20: uint16(21515), + 21: uint16(21508), + 22: uint16(21521), + 23: uint16(21517), + 24: uint16(21512), + 25: uint16(21507), + 26: uint16(21518), + 27: uint16(21510), + 28: uint16(21522), + 29: uint16(22240), + 30: uint16(22238), + 31: uint16(22237), + 32: uint16(22323), + 33: uint16(22320), + 34: uint16(22312), + 35: uint16(22317), + 36: uint16(22316), + 37: uint16(22319), + 38: uint16(22313), + 39: uint16(22809), + 40: uint16(22810), + 41: uint16(22839), + 42: uint16(22840), + 43: uint16(22916), + 44: uint16(22904), + 45: uint16(22915), + 46: uint16(22909), + 47: uint16(22905), + 48: uint16(22914), + 49: uint16(22913), + 50: uint16(23383), + 51: uint16(23384), + 52: uint16(23431), + 53: uint16(23432), + 54: uint16(23429), + 55: uint16(23433), + 56: uint16(23546), + 57: uint16(23574), + 58: uint16(23673), + 59: uint16(24030), + 60: uint16(24070), + 61: uint16(24182), + 62: uint16(24180), + 63: uint16(24335), + 64: uint16(24347), + 65: uint16(24537), + 66: uint16(24534), + 67: uint16(25102), + 68: uint16(25100), + 69: uint16(25101), + 70: uint16(25104), + 71: uint16(25187), + 72: uint16(25179), + 73: uint16(25176), + 74: uint16(25910), + 75: uint16(26089), + 76: uint16(26088), + 77: uint16(26092), + 78: uint16(26093), + 79: uint16(26354), + 80: uint16(26355), + 81: uint16(26377), + 82: uint16(26429), + 83: uint16(26420), + 84: uint16(26417), + 85: uint16(26421), + 86: uint16(27425), + 87: uint16(27492), + 88: uint16(27515), + 89: uint16(27670), + 90: uint16(27741), + 91: uint16(27735), + 92: uint16(27737), + 93: uint16(27743), + 94: uint16(27744), + 95: uint16(27728), + 96: uint16(27733), + 97: uint16(27745), + 98: uint16(27739), + 99: uint16(27725), + 100: uint16(27726), + 101: uint16(28784), + 102: uint16(29279), + 103: uint16(29277), + 104: uint16(30334), + 105: uint16(31481), + 106: uint16(31859), + 107: uint16(31992), + 108: uint16(32566), + 109: uint16(32650), + 110: uint16(32701), + 111: uint16(32769), + 112: uint16(32771), + 113: uint16(32780), + 114: uint16(32786), + 115: uint16(32819), + 116: uint16(32895), + 117: uint16(32905), + 118: uint16(32907), + 119: uint16(32908), + 120: uint16(33251), + 121: uint16(33258), + 122: uint16(33267), + 123: uint16(33276), + 124: uint16(33292), + 125: uint16(33307), + 126: uint16(33311), + 127: uint16(33390), + 128: uint16(33394), + 129: uint16(33406), + 130: uint16(34411), + 131: uint16(34880), + 132: uint16(34892), + 133: uint16(34915), + 134: uint16(35199), + 135: uint16(38433), + 136: uint16(20018), + 137: uint16(20136), + 138: uint16(20301), + 139: uint16(20303), + 140: uint16(20295), + 141: uint16(20311), + 142: uint16(20318), + 143: uint16(20276), + 144: uint16(20315), + 145: uint16(20309), + 146: uint16(20272), + 147: uint16(20304), + 148: uint16(20305), + 149: uint16(20285), + 150: uint16(20282), + 151: uint16(20280), + 152: uint16(20291), + 153: uint16(20308), + 154: uint16(20284), + 155: uint16(20294), + 156: uint16(20323), + }, + 6: { + 0: uint16(20316), + 1: uint16(20320), + 2: uint16(20271), + 3: uint16(20302), + 4: uint16(20278), + 5: uint16(20313), + 6: uint16(20317), + 7: uint16(20296), + 8: uint16(20314), + 9: uint16(20812), + 10: uint16(20811), + 11: uint16(20813), + 12: uint16(20853), + 13: uint16(20918), + 14: uint16(20919), + 15: uint16(21029), + 16: uint16(21028), + 17: uint16(21033), + 18: uint16(21034), + 19: uint16(21032), + 20: uint16(21163), + 21: uint16(21161), + 22: uint16(21162), + 23: uint16(21164), + 24: uint16(21283), + 25: uint16(21363), + 26: uint16(21365), + 27: uint16(21533), + 28: uint16(21549), + 29: uint16(21534), + 30: uint16(21566), + 31: uint16(21542), + 32: uint16(21582), + 33: uint16(21543), + 34: uint16(21574), + 35: uint16(21571), + 36: uint16(21555), + 37: uint16(21576), + 38: uint16(21570), + 39: uint16(21531), + 40: uint16(21545), + 41: uint16(21578), + 42: uint16(21561), + 43: uint16(21563), + 44: uint16(21560), + 45: uint16(21550), + 46: uint16(21557), + 47: uint16(21558), + 48: uint16(21536), + 49: uint16(21564), + 50: uint16(21568), + 51: uint16(21553), + 52: uint16(21547), + 53: uint16(21535), + 54: uint16(21548), + 55: uint16(22250), + 56: uint16(22256), + 57: uint16(22244), + 58: uint16(22251), + 59: uint16(22346), + 60: uint16(22353), + 61: uint16(22336), + 62: uint16(22349), + 63: uint16(22343), + 64: uint16(22350), + 65: uint16(22334), + 66: uint16(22352), + 67: uint16(22351), + 68: uint16(22331), + 69: uint16(22767), + 70: uint16(22846), + 71: uint16(22941), + 72: uint16(22930), + 73: uint16(22952), + 74: uint16(22942), + 75: uint16(22947), + 76: uint16(22937), + 77: uint16(22934), + 78: uint16(22925), + 79: uint16(22948), + 80: uint16(22931), + 81: uint16(22922), + 82: uint16(22949), + 83: uint16(23389), + 84: uint16(23388), + 85: uint16(23386), + 86: uint16(23387), + 87: uint16(23436), + 88: uint16(23435), + 89: uint16(23439), + 90: uint16(23596), + 91: uint16(23616), + 92: uint16(23617), + 93: uint16(23615), + 94: uint16(23614), + 95: uint16(23696), + 96: uint16(23697), + 97: uint16(23700), + 98: uint16(23692), + 99: uint16(24043), + 100: uint16(24076), + 101: uint16(24207), + 102: uint16(24199), + 103: uint16(24202), + 104: uint16(24311), + 105: uint16(24324), + 106: uint16(24351), + 107: uint16(24420), + 108: uint16(24418), + 109: uint16(24439), + 110: uint16(24441), + 111: uint16(24536), + 112: uint16(24524), + 113: uint16(24535), + 114: uint16(24525), + 115: uint16(24561), + 116: uint16(24555), + 117: uint16(24568), + 118: uint16(24554), + 119: uint16(25106), + 120: uint16(25105), + 121: uint16(25220), + 122: uint16(25239), + 123: uint16(25238), + 124: uint16(25216), + 125: uint16(25206), + 126: uint16(25225), + 127: uint16(25197), + 128: uint16(25226), + 129: uint16(25212), + 130: uint16(25214), + 131: uint16(25209), + 132: uint16(25203), + 133: uint16(25234), + 134: uint16(25199), + 135: uint16(25240), + 136: uint16(25198), + 137: uint16(25237), + 138: uint16(25235), + 139: uint16(25233), + 140: uint16(25222), + 141: uint16(25913), + 142: uint16(25915), + 143: uint16(25912), + 144: uint16(26097), + 145: uint16(26356), + 146: uint16(26463), + 147: uint16(26446), + 148: uint16(26447), + 149: uint16(26448), + 150: uint16(26449), + 151: uint16(26460), + 152: uint16(26454), + 153: uint16(26462), + 154: uint16(26441), + 155: uint16(26438), + 156: uint16(26464), + }, + 7: { + 0: uint16(26451), + 1: uint16(26455), + 2: uint16(27493), + 3: uint16(27599), + 4: uint16(27714), + 5: uint16(27742), + 6: uint16(27801), + 7: uint16(27777), + 8: uint16(27784), + 9: uint16(27785), + 10: uint16(27781), + 11: uint16(27803), + 12: uint16(27754), + 13: uint16(27770), + 14: uint16(27792), + 15: uint16(27760), + 16: uint16(27788), + 17: uint16(27752), + 18: uint16(27798), + 19: uint16(27794), + 20: uint16(27773), + 21: uint16(27779), + 22: uint16(27762), + 23: uint16(27774), + 24: uint16(27764), + 25: uint16(27782), + 26: uint16(27766), + 27: uint16(27789), + 28: uint16(27796), + 29: uint16(27800), + 30: uint16(27778), + 31: uint16(28790), + 32: uint16(28796), + 33: uint16(28797), + 34: uint16(28792), + 35: uint16(29282), + 36: uint16(29281), + 37: uint16(29280), + 38: uint16(29380), + 39: uint16(29378), + 40: uint16(29590), + 41: uint16(29996), + 42: uint16(29995), + 43: uint16(30007), + 44: uint16(30008), + 45: uint16(30338), + 46: uint16(30447), + 47: uint16(30691), + 48: uint16(31169), + 49: uint16(31168), + 50: uint16(31167), + 51: uint16(31350), + 52: uint16(31995), + 53: uint16(32597), + 54: uint16(32918), + 55: uint16(32915), + 56: uint16(32925), + 57: uint16(32920), + 58: uint16(32923), + 59: uint16(32922), + 60: uint16(32946), + 61: uint16(33391), + 62: uint16(33426), + 63: uint16(33419), + 64: uint16(33421), + 65: uint16(35211), + 66: uint16(35282), + 67: uint16(35328), + 68: uint16(35895), + 69: uint16(35910), + 70: uint16(35925), + 71: uint16(35997), + 72: uint16(36196), + 73: uint16(36208), + 74: uint16(36275), + 75: uint16(36523), + 76: uint16(36554), + 77: uint16(36763), + 78: uint16(36784), + 79: uint16(36802), + 80: uint16(36806), + 81: uint16(36805), + 82: uint16(36804), + 83: uint16(24033), + 84: uint16(37009), + 85: uint16(37026), + 86: uint16(37034), + 87: uint16(37030), + 88: uint16(37027), + 89: uint16(37193), + 90: uint16(37318), + 91: uint16(37324), + 92: uint16(38450), + 93: uint16(38446), + 94: uint16(38449), + 95: uint16(38442), + 96: uint16(38444), + 97: uint16(20006), + 98: uint16(20054), + 99: uint16(20083), + 100: uint16(20107), + 101: uint16(20123), + 102: uint16(20126), + 103: uint16(20139), + 104: uint16(20140), + 105: uint16(20335), + 106: uint16(20381), + 107: uint16(20365), + 108: uint16(20339), + 109: uint16(20351), + 110: uint16(20332), + 111: uint16(20379), + 112: uint16(20363), + 113: uint16(20358), + 114: uint16(20355), + 115: uint16(20336), + 116: uint16(20341), + 117: uint16(20360), + 118: uint16(20329), + 119: uint16(20347), + 120: uint16(20374), + 121: uint16(20350), + 122: uint16(20367), + 123: uint16(20369), + 124: uint16(20346), + 125: uint16(20820), + 126: uint16(20818), + 127: uint16(20821), + 128: uint16(20841), + 129: uint16(20855), + 130: uint16(20854), + 131: uint16(20856), + 132: uint16(20925), + 133: uint16(20989), + 134: uint16(21051), + 135: uint16(21048), + 136: uint16(21047), + 137: uint16(21050), + 138: uint16(21040), + 139: uint16(21038), + 140: uint16(21046), + 141: uint16(21057), + 142: uint16(21182), + 143: uint16(21179), + 144: uint16(21330), + 145: uint16(21332), + 146: uint16(21331), + 147: uint16(21329), + 148: uint16(21350), + 149: uint16(21367), + 150: uint16(21368), + 151: uint16(21369), + 152: uint16(21462), + 153: uint16(21460), + 154: uint16(21463), + 155: uint16(21619), + 156: uint16(21621), + }, + 8: { + 0: uint16(21654), + 1: uint16(21624), + 2: uint16(21653), + 3: uint16(21632), + 4: uint16(21627), + 5: uint16(21623), + 6: uint16(21636), + 7: uint16(21650), + 8: uint16(21638), + 9: uint16(21628), + 10: uint16(21648), + 11: uint16(21617), + 12: uint16(21622), + 13: uint16(21644), + 14: uint16(21658), + 15: uint16(21602), + 16: uint16(21608), + 17: uint16(21643), + 18: uint16(21629), + 19: uint16(21646), + 20: uint16(22266), + 21: uint16(22403), + 22: uint16(22391), + 23: uint16(22378), + 24: uint16(22377), + 25: uint16(22369), + 26: uint16(22374), + 27: uint16(22372), + 28: uint16(22396), + 29: uint16(22812), + 30: uint16(22857), + 31: uint16(22855), + 32: uint16(22856), + 33: uint16(22852), + 34: uint16(22868), + 35: uint16(22974), + 36: uint16(22971), + 37: uint16(22996), + 38: uint16(22969), + 39: uint16(22958), + 40: uint16(22993), + 41: uint16(22982), + 42: uint16(22992), + 43: uint16(22989), + 44: uint16(22987), + 45: uint16(22995), + 46: uint16(22986), + 47: uint16(22959), + 48: uint16(22963), + 49: uint16(22994), + 50: uint16(22981), + 51: uint16(23391), + 52: uint16(23396), + 53: uint16(23395), + 54: uint16(23447), + 55: uint16(23450), + 56: uint16(23448), + 57: uint16(23452), + 58: uint16(23449), + 59: uint16(23451), + 60: uint16(23578), + 61: uint16(23624), + 62: uint16(23621), + 63: uint16(23622), + 64: uint16(23735), + 65: uint16(23713), + 66: uint16(23736), + 67: uint16(23721), + 68: uint16(23723), + 69: uint16(23729), + 70: uint16(23731), + 71: uint16(24088), + 72: uint16(24090), + 73: uint16(24086), + 74: uint16(24085), + 75: uint16(24091), + 76: uint16(24081), + 77: uint16(24184), + 78: uint16(24218), + 79: uint16(24215), + 80: uint16(24220), + 81: uint16(24213), + 82: uint16(24214), + 83: uint16(24310), + 84: uint16(24358), + 85: uint16(24359), + 86: uint16(24361), + 87: uint16(24448), + 88: uint16(24449), + 89: uint16(24447), + 90: uint16(24444), + 91: uint16(24541), + 92: uint16(24544), + 93: uint16(24573), + 94: uint16(24565), + 95: uint16(24575), + 96: uint16(24591), + 97: uint16(24596), + 98: uint16(24623), + 99: uint16(24629), + 100: uint16(24598), + 101: uint16(24618), + 102: uint16(24597), + 103: uint16(24609), + 104: uint16(24615), + 105: uint16(24617), + 106: uint16(24619), + 107: uint16(24603), + 108: uint16(25110), + 109: uint16(25109), + 110: uint16(25151), + 111: uint16(25150), + 112: uint16(25152), + 113: uint16(25215), + 114: uint16(25289), + 115: uint16(25292), + 116: uint16(25284), + 117: uint16(25279), + 118: uint16(25282), + 119: uint16(25273), + 120: uint16(25298), + 121: uint16(25307), + 122: uint16(25259), + 123: uint16(25299), + 124: uint16(25300), + 125: uint16(25291), + 126: uint16(25288), + 127: uint16(25256), + 128: uint16(25277), + 129: uint16(25276), + 130: uint16(25296), + 131: uint16(25305), + 132: uint16(25287), + 133: uint16(25293), + 134: uint16(25269), + 135: uint16(25306), + 136: uint16(25265), + 137: uint16(25304), + 138: uint16(25302), + 139: uint16(25303), + 140: uint16(25286), + 141: uint16(25260), + 142: uint16(25294), + 143: uint16(25918), + 144: uint16(26023), + 145: uint16(26044), + 146: uint16(26106), + 147: uint16(26132), + 148: uint16(26131), + 149: uint16(26124), + 150: uint16(26118), + 151: uint16(26114), + 152: uint16(26126), + 153: uint16(26112), + 154: uint16(26127), + 155: uint16(26133), + 156: uint16(26122), + }, + 9: { + 0: uint16(26119), + 1: uint16(26381), + 2: uint16(26379), + 3: uint16(26477), + 4: uint16(26507), + 5: uint16(26517), + 6: uint16(26481), + 7: uint16(26524), + 8: uint16(26483), + 9: uint16(26487), + 10: uint16(26503), + 11: uint16(26525), + 12: uint16(26519), + 13: uint16(26479), + 14: uint16(26480), + 15: uint16(26495), + 16: uint16(26505), + 17: uint16(26494), + 18: uint16(26512), + 19: uint16(26485), + 20: uint16(26522), + 21: uint16(26515), + 22: uint16(26492), + 23: uint16(26474), + 24: uint16(26482), + 25: uint16(27427), + 26: uint16(27494), + 27: uint16(27495), + 28: uint16(27519), + 29: uint16(27667), + 30: uint16(27675), + 31: uint16(27875), + 32: uint16(27880), + 33: uint16(27891), + 34: uint16(27825), + 35: uint16(27852), + 36: uint16(27877), + 37: uint16(27827), + 38: uint16(27837), + 39: uint16(27838), + 40: uint16(27836), + 41: uint16(27874), + 42: uint16(27819), + 43: uint16(27861), + 44: uint16(27859), + 45: uint16(27832), + 46: uint16(27844), + 47: uint16(27833), + 48: uint16(27841), + 49: uint16(27822), + 50: uint16(27863), + 51: uint16(27845), + 52: uint16(27889), + 53: uint16(27839), + 54: uint16(27835), + 55: uint16(27873), + 56: uint16(27867), + 57: uint16(27850), + 58: uint16(27820), + 59: uint16(27887), + 60: uint16(27868), + 61: uint16(27862), + 62: uint16(27872), + 63: uint16(28821), + 64: uint16(28814), + 65: uint16(28818), + 66: uint16(28810), + 67: uint16(28825), + 68: uint16(29228), + 69: uint16(29229), + 70: uint16(29240), + 71: uint16(29256), + 72: uint16(29287), + 73: uint16(29289), + 74: uint16(29376), + 75: uint16(29390), + 76: uint16(29401), + 77: uint16(29399), + 78: uint16(29392), + 79: uint16(29609), + 80: uint16(29608), + 81: uint16(29599), + 82: uint16(29611), + 83: uint16(29605), + 84: uint16(30013), + 85: uint16(30109), + 86: uint16(30105), + 87: uint16(30106), + 88: uint16(30340), + 89: uint16(30402), + 90: uint16(30450), + 91: uint16(30452), + 92: uint16(30693), + 93: uint16(30717), + 94: uint16(31038), + 95: uint16(31040), + 96: uint16(31041), + 97: uint16(31177), + 98: uint16(31176), + 99: uint16(31354), + 100: uint16(31353), + 101: uint16(31482), + 102: uint16(31998), + 103: uint16(32596), + 104: uint16(32652), + 105: uint16(32651), + 106: uint16(32773), + 107: uint16(32954), + 108: uint16(32933), + 109: uint16(32930), + 110: uint16(32945), + 111: uint16(32929), + 112: uint16(32939), + 113: uint16(32937), + 114: uint16(32948), + 115: uint16(32938), + 116: uint16(32943), + 117: uint16(33253), + 118: uint16(33278), + 119: uint16(33293), + 120: uint16(33459), + 121: uint16(33437), + 122: uint16(33433), + 123: uint16(33453), + 124: uint16(33469), + 125: uint16(33439), + 126: uint16(33465), + 127: uint16(33457), + 128: uint16(33452), + 129: uint16(33445), + 130: uint16(33455), + 131: uint16(33464), + 132: uint16(33443), + 133: uint16(33456), + 134: uint16(33470), + 135: uint16(33463), + 136: uint16(34382), + 137: uint16(34417), + 138: uint16(21021), + 139: uint16(34920), + 140: uint16(36555), + 141: uint16(36814), + 142: uint16(36820), + 143: uint16(36817), + 144: uint16(37045), + 145: uint16(37048), + 146: uint16(37041), + 147: uint16(37046), + 148: uint16(37319), + 149: uint16(37329), + 150: uint16(38263), + 151: uint16(38272), + 152: uint16(38428), + 153: uint16(38464), + 154: uint16(38463), + 155: uint16(38459), + 156: uint16(38468), + }, + 10: { + 0: uint16(38466), + 1: uint16(38585), + 2: uint16(38632), + 3: uint16(38738), + 4: uint16(38750), + 5: uint16(20127), + 6: uint16(20141), + 7: uint16(20142), + 8: uint16(20449), + 9: uint16(20405), + 10: uint16(20399), + 11: uint16(20415), + 12: uint16(20448), + 13: uint16(20433), + 14: uint16(20431), + 15: uint16(20445), + 16: uint16(20419), + 17: uint16(20406), + 18: uint16(20440), + 19: uint16(20447), + 20: uint16(20426), + 21: uint16(20439), + 22: uint16(20398), + 23: uint16(20432), + 24: uint16(20420), + 25: uint16(20418), + 26: uint16(20442), + 27: uint16(20430), + 28: uint16(20446), + 29: uint16(20407), + 30: uint16(20823), + 31: uint16(20882), + 32: uint16(20881), + 33: uint16(20896), + 34: uint16(21070), + 35: uint16(21059), + 36: uint16(21066), + 37: uint16(21069), + 38: uint16(21068), + 39: uint16(21067), + 40: uint16(21063), + 41: uint16(21191), + 42: uint16(21193), + 43: uint16(21187), + 44: uint16(21185), + 45: uint16(21261), + 46: uint16(21335), + 47: uint16(21371), + 48: uint16(21402), + 49: uint16(21467), + 50: uint16(21676), + 51: uint16(21696), + 52: uint16(21672), + 53: uint16(21710), + 54: uint16(21705), + 55: uint16(21688), + 56: uint16(21670), + 57: uint16(21683), + 58: uint16(21703), + 59: uint16(21698), + 60: uint16(21693), + 61: uint16(21674), + 62: uint16(21697), + 63: uint16(21700), + 64: uint16(21704), + 65: uint16(21679), + 66: uint16(21675), + 67: uint16(21681), + 68: uint16(21691), + 69: uint16(21673), + 70: uint16(21671), + 71: uint16(21695), + 72: uint16(22271), + 73: uint16(22402), + 74: uint16(22411), + 75: uint16(22432), + 76: uint16(22435), + 77: uint16(22434), + 78: uint16(22478), + 79: uint16(22446), + 80: uint16(22419), + 81: uint16(22869), + 82: uint16(22865), + 83: uint16(22863), + 84: uint16(22862), + 85: uint16(22864), + 86: uint16(23004), + 87: uint16(23000), + 88: uint16(23039), + 89: uint16(23011), + 90: uint16(23016), + 91: uint16(23043), + 92: uint16(23013), + 93: uint16(23018), + 94: uint16(23002), + 95: uint16(23014), + 96: uint16(23041), + 97: uint16(23035), + 98: uint16(23401), + 99: uint16(23459), + 100: uint16(23462), + 101: uint16(23460), + 102: uint16(23458), + 103: uint16(23461), + 104: uint16(23553), + 105: uint16(23630), + 106: uint16(23631), + 107: uint16(23629), + 108: uint16(23627), + 109: uint16(23769), + 110: uint16(23762), + 111: uint16(24055), + 112: uint16(24093), + 113: uint16(24101), + 114: uint16(24095), + 115: uint16(24189), + 116: uint16(24224), + 117: uint16(24230), + 118: uint16(24314), + 119: uint16(24328), + 120: uint16(24365), + 121: uint16(24421), + 122: uint16(24456), + 123: uint16(24453), + 124: uint16(24458), + 125: uint16(24459), + 126: uint16(24455), + 127: uint16(24460), + 128: uint16(24457), + 129: uint16(24594), + 130: uint16(24605), + 131: uint16(24608), + 132: uint16(24613), + 133: uint16(24590), + 134: uint16(24616), + 135: uint16(24653), + 136: uint16(24688), + 137: uint16(24680), + 138: uint16(24674), + 139: uint16(24646), + 140: uint16(24643), + 141: uint16(24684), + 142: uint16(24683), + 143: uint16(24682), + 144: uint16(24676), + 145: uint16(25153), + 146: uint16(25308), + 147: uint16(25366), + 148: uint16(25353), + 149: uint16(25340), + 150: uint16(25325), + 151: uint16(25345), + 152: uint16(25326), + 153: uint16(25341), + 154: uint16(25351), + 155: uint16(25329), + 156: uint16(25335), + }, + 11: { + 0: uint16(25327), + 1: uint16(25324), + 2: uint16(25342), + 3: uint16(25332), + 4: uint16(25361), + 5: uint16(25346), + 6: uint16(25919), + 7: uint16(25925), + 8: uint16(26027), + 9: uint16(26045), + 10: uint16(26082), + 11: uint16(26149), + 12: uint16(26157), + 13: uint16(26144), + 14: uint16(26151), + 15: uint16(26159), + 16: uint16(26143), + 17: uint16(26152), + 18: uint16(26161), + 19: uint16(26148), + 20: uint16(26359), + 21: uint16(26623), + 22: uint16(26579), + 23: uint16(26609), + 24: uint16(26580), + 25: uint16(26576), + 26: uint16(26604), + 27: uint16(26550), + 28: uint16(26543), + 29: uint16(26613), + 30: uint16(26601), + 31: uint16(26607), + 32: uint16(26564), + 33: uint16(26577), + 34: uint16(26548), + 35: uint16(26586), + 36: uint16(26597), + 37: uint16(26552), + 38: uint16(26575), + 39: uint16(26590), + 40: uint16(26611), + 41: uint16(26544), + 42: uint16(26585), + 43: uint16(26594), + 44: uint16(26589), + 45: uint16(26578), + 46: uint16(27498), + 47: uint16(27523), + 48: uint16(27526), + 49: uint16(27573), + 50: uint16(27602), + 51: uint16(27607), + 52: uint16(27679), + 53: uint16(27849), + 54: uint16(27915), + 55: uint16(27954), + 56: uint16(27946), + 57: uint16(27969), + 58: uint16(27941), + 59: uint16(27916), + 60: uint16(27953), + 61: uint16(27934), + 62: uint16(27927), + 63: uint16(27963), + 64: uint16(27965), + 65: uint16(27966), + 66: uint16(27958), + 67: uint16(27931), + 68: uint16(27893), + 69: uint16(27961), + 70: uint16(27943), + 71: uint16(27960), + 72: uint16(27945), + 73: uint16(27950), + 74: uint16(27957), + 75: uint16(27918), + 76: uint16(27947), + 77: uint16(28843), + 78: uint16(28858), + 79: uint16(28851), + 80: uint16(28844), + 81: uint16(28847), + 82: uint16(28845), + 83: uint16(28856), + 84: uint16(28846), + 85: uint16(28836), + 86: uint16(29232), + 87: uint16(29298), + 88: uint16(29295), + 89: uint16(29300), + 90: uint16(29417), + 91: uint16(29408), + 92: uint16(29409), + 93: uint16(29623), + 94: uint16(29642), + 95: uint16(29627), + 96: uint16(29618), + 97: uint16(29645), + 98: uint16(29632), + 99: uint16(29619), + 100: uint16(29978), + 101: uint16(29997), + 102: uint16(30031), + 103: uint16(30028), + 104: uint16(30030), + 105: uint16(30027), + 106: uint16(30123), + 107: uint16(30116), + 108: uint16(30117), + 109: uint16(30114), + 110: uint16(30115), + 111: uint16(30328), + 112: uint16(30342), + 113: uint16(30343), + 114: uint16(30344), + 115: uint16(30408), + 116: uint16(30406), + 117: uint16(30403), + 118: uint16(30405), + 119: uint16(30465), + 120: uint16(30457), + 121: uint16(30456), + 122: uint16(30473), + 123: uint16(30475), + 124: uint16(30462), + 125: uint16(30460), + 126: uint16(30471), + 127: uint16(30684), + 128: uint16(30722), + 129: uint16(30740), + 130: uint16(30732), + 131: uint16(30733), + 132: uint16(31046), + 133: uint16(31049), + 134: uint16(31048), + 135: uint16(31047), + 136: uint16(31161), + 137: uint16(31162), + 138: uint16(31185), + 139: uint16(31186), + 140: uint16(31179), + 141: uint16(31359), + 142: uint16(31361), + 143: uint16(31487), + 144: uint16(31485), + 145: uint16(31869), + 146: uint16(32002), + 147: uint16(32005), + 148: uint16(32000), + 149: uint16(32009), + 150: uint16(32007), + 151: uint16(32004), + 152: uint16(32006), + 153: uint16(32568), + 154: uint16(32654), + 155: uint16(32703), + 156: uint16(32772), + }, + 12: { + 0: uint16(32784), + 1: uint16(32781), + 2: uint16(32785), + 3: uint16(32822), + 4: uint16(32982), + 5: uint16(32997), + 6: uint16(32986), + 7: uint16(32963), + 8: uint16(32964), + 9: uint16(32972), + 10: uint16(32993), + 11: uint16(32987), + 12: uint16(32974), + 13: uint16(32990), + 14: uint16(32996), + 15: uint16(32989), + 16: uint16(33268), + 17: uint16(33314), + 18: uint16(33511), + 19: uint16(33539), + 20: uint16(33541), + 21: uint16(33507), + 22: uint16(33499), + 23: uint16(33510), + 24: uint16(33540), + 25: uint16(33509), + 26: uint16(33538), + 27: uint16(33545), + 28: uint16(33490), + 29: uint16(33495), + 30: uint16(33521), + 31: uint16(33537), + 32: uint16(33500), + 33: uint16(33492), + 34: uint16(33489), + 35: uint16(33502), + 36: uint16(33491), + 37: uint16(33503), + 38: uint16(33519), + 39: uint16(33542), + 40: uint16(34384), + 41: uint16(34425), + 42: uint16(34427), + 43: uint16(34426), + 44: uint16(34893), + 45: uint16(34923), + 46: uint16(35201), + 47: uint16(35284), + 48: uint16(35336), + 49: uint16(35330), + 50: uint16(35331), + 51: uint16(35998), + 52: uint16(36000), + 53: uint16(36212), + 54: uint16(36211), + 55: uint16(36276), + 56: uint16(36557), + 57: uint16(36556), + 58: uint16(36848), + 59: uint16(36838), + 60: uint16(36834), + 61: uint16(36842), + 62: uint16(36837), + 63: uint16(36845), + 64: uint16(36843), + 65: uint16(36836), + 66: uint16(36840), + 67: uint16(37066), + 68: uint16(37070), + 69: uint16(37057), + 70: uint16(37059), + 71: uint16(37195), + 72: uint16(37194), + 73: uint16(37325), + 74: uint16(38274), + 75: uint16(38480), + 76: uint16(38475), + 77: uint16(38476), + 78: uint16(38477), + 79: uint16(38754), + 80: uint16(38761), + 81: uint16(38859), + 82: uint16(38893), + 83: uint16(38899), + 84: uint16(38913), + 85: uint16(39080), + 86: uint16(39131), + 87: uint16(39135), + 88: uint16(39318), + 89: uint16(39321), + 90: uint16(20056), + 91: uint16(20147), + 92: uint16(20492), + 93: uint16(20493), + 94: uint16(20515), + 95: uint16(20463), + 96: uint16(20518), + 97: uint16(20517), + 98: uint16(20472), + 99: uint16(20521), + 100: uint16(20502), + 101: uint16(20486), + 102: uint16(20540), + 103: uint16(20511), + 104: uint16(20506), + 105: uint16(20498), + 106: uint16(20497), + 107: uint16(20474), + 108: uint16(20480), + 109: uint16(20500), + 110: uint16(20520), + 111: uint16(20465), + 112: uint16(20513), + 113: uint16(20491), + 114: uint16(20505), + 115: uint16(20504), + 116: uint16(20467), + 117: uint16(20462), + 118: uint16(20525), + 119: uint16(20522), + 120: uint16(20478), + 121: uint16(20523), + 122: uint16(20489), + 123: uint16(20860), + 124: uint16(20900), + 125: uint16(20901), + 126: uint16(20898), + 127: uint16(20941), + 128: uint16(20940), + 129: uint16(20934), + 130: uint16(20939), + 131: uint16(21078), + 132: uint16(21084), + 133: uint16(21076), + 134: uint16(21083), + 135: uint16(21085), + 136: uint16(21290), + 137: uint16(21375), + 138: uint16(21407), + 139: uint16(21405), + 140: uint16(21471), + 141: uint16(21736), + 142: uint16(21776), + 143: uint16(21761), + 144: uint16(21815), + 145: uint16(21756), + 146: uint16(21733), + 147: uint16(21746), + 148: uint16(21766), + 149: uint16(21754), + 150: uint16(21780), + 151: uint16(21737), + 152: uint16(21741), + 153: uint16(21729), + 154: uint16(21769), + 155: uint16(21742), + 156: uint16(21738), + }, + 13: { + 0: uint16(21734), + 1: uint16(21799), + 2: uint16(21767), + 3: uint16(21757), + 4: uint16(21775), + 5: uint16(22275), + 6: uint16(22276), + 7: uint16(22466), + 8: uint16(22484), + 9: uint16(22475), + 10: uint16(22467), + 11: uint16(22537), + 12: uint16(22799), + 13: uint16(22871), + 14: uint16(22872), + 15: uint16(22874), + 16: uint16(23057), + 17: uint16(23064), + 18: uint16(23068), + 19: uint16(23071), + 20: uint16(23067), + 21: uint16(23059), + 22: uint16(23020), + 23: uint16(23072), + 24: uint16(23075), + 25: uint16(23081), + 26: uint16(23077), + 27: uint16(23052), + 28: uint16(23049), + 29: uint16(23403), + 30: uint16(23640), + 31: uint16(23472), + 32: uint16(23475), + 33: uint16(23478), + 34: uint16(23476), + 35: uint16(23470), + 36: uint16(23477), + 37: uint16(23481), + 38: uint16(23480), + 39: uint16(23556), + 40: uint16(23633), + 41: uint16(23637), + 42: uint16(23632), + 43: uint16(23789), + 44: uint16(23805), + 45: uint16(23803), + 46: uint16(23786), + 47: uint16(23784), + 48: uint16(23792), + 49: uint16(23798), + 50: uint16(23809), + 51: uint16(23796), + 52: uint16(24046), + 53: uint16(24109), + 54: uint16(24107), + 55: uint16(24235), + 56: uint16(24237), + 57: uint16(24231), + 58: uint16(24369), + 59: uint16(24466), + 60: uint16(24465), + 61: uint16(24464), + 62: uint16(24665), + 63: uint16(24675), + 64: uint16(24677), + 65: uint16(24656), + 66: uint16(24661), + 67: uint16(24685), + 68: uint16(24681), + 69: uint16(24687), + 70: uint16(24708), + 71: uint16(24735), + 72: uint16(24730), + 73: uint16(24717), + 74: uint16(24724), + 75: uint16(24716), + 76: uint16(24709), + 77: uint16(24726), + 78: uint16(25159), + 79: uint16(25331), + 80: uint16(25352), + 81: uint16(25343), + 82: uint16(25422), + 83: uint16(25406), + 84: uint16(25391), + 85: uint16(25429), + 86: uint16(25410), + 87: uint16(25414), + 88: uint16(25423), + 89: uint16(25417), + 90: uint16(25402), + 91: uint16(25424), + 92: uint16(25405), + 93: uint16(25386), + 94: uint16(25387), + 95: uint16(25384), + 96: uint16(25421), + 97: uint16(25420), + 98: uint16(25928), + 99: uint16(25929), + 100: uint16(26009), + 101: uint16(26049), + 102: uint16(26053), + 103: uint16(26178), + 104: uint16(26185), + 105: uint16(26191), + 106: uint16(26179), + 107: uint16(26194), + 108: uint16(26188), + 109: uint16(26181), + 110: uint16(26177), + 111: uint16(26360), + 112: uint16(26388), + 113: uint16(26389), + 114: uint16(26391), + 115: uint16(26657), + 116: uint16(26680), + 117: uint16(26696), + 118: uint16(26694), + 119: uint16(26707), + 120: uint16(26681), + 121: uint16(26690), + 122: uint16(26708), + 123: uint16(26665), + 124: uint16(26803), + 125: uint16(26647), + 126: uint16(26700), + 127: uint16(26705), + 128: uint16(26685), + 129: uint16(26612), + 130: uint16(26704), + 131: uint16(26688), + 132: uint16(26684), + 133: uint16(26691), + 134: uint16(26666), + 135: uint16(26693), + 136: uint16(26643), + 137: uint16(26648), + 138: uint16(26689), + 139: uint16(27530), + 140: uint16(27529), + 141: uint16(27575), + 142: uint16(27683), + 143: uint16(27687), + 144: uint16(27688), + 145: uint16(27686), + 146: uint16(27684), + 147: uint16(27888), + 148: uint16(28010), + 149: uint16(28053), + 150: uint16(28040), + 151: uint16(28039), + 152: uint16(28006), + 153: uint16(28024), + 154: uint16(28023), + 155: uint16(27993), + 156: uint16(28051), + }, + 14: { + 0: uint16(28012), + 1: uint16(28041), + 2: uint16(28014), + 3: uint16(27994), + 4: uint16(28020), + 5: uint16(28009), + 6: uint16(28044), + 7: uint16(28042), + 8: uint16(28025), + 9: uint16(28037), + 10: uint16(28005), + 11: uint16(28052), + 12: uint16(28874), + 13: uint16(28888), + 14: uint16(28900), + 15: uint16(28889), + 16: uint16(28872), + 17: uint16(28879), + 18: uint16(29241), + 19: uint16(29305), + 20: uint16(29436), + 21: uint16(29433), + 22: uint16(29437), + 23: uint16(29432), + 24: uint16(29431), + 25: uint16(29574), + 26: uint16(29677), + 27: uint16(29705), + 28: uint16(29678), + 29: uint16(29664), + 30: uint16(29674), + 31: uint16(29662), + 32: uint16(30036), + 33: uint16(30045), + 34: uint16(30044), + 35: uint16(30042), + 36: uint16(30041), + 37: uint16(30142), + 38: uint16(30149), + 39: uint16(30151), + 40: uint16(30130), + 41: uint16(30131), + 42: uint16(30141), + 43: uint16(30140), + 44: uint16(30137), + 45: uint16(30146), + 46: uint16(30136), + 47: uint16(30347), + 48: uint16(30384), + 49: uint16(30410), + 50: uint16(30413), + 51: uint16(30414), + 52: uint16(30505), + 53: uint16(30495), + 54: uint16(30496), + 55: uint16(30504), + 56: uint16(30697), + 57: uint16(30768), + 58: uint16(30759), + 59: uint16(30776), + 60: uint16(30749), + 61: uint16(30772), + 62: uint16(30775), + 63: uint16(30757), + 64: uint16(30765), + 65: uint16(30752), + 66: uint16(30751), + 67: uint16(30770), + 68: uint16(31061), + 69: uint16(31056), + 70: uint16(31072), + 71: uint16(31071), + 72: uint16(31062), + 73: uint16(31070), + 74: uint16(31069), + 75: uint16(31063), + 76: uint16(31066), + 77: uint16(31204), + 78: uint16(31203), + 79: uint16(31207), + 80: uint16(31199), + 81: uint16(31206), + 82: uint16(31209), + 83: uint16(31192), + 84: uint16(31364), + 85: uint16(31368), + 86: uint16(31449), + 87: uint16(31494), + 88: uint16(31505), + 89: uint16(31881), + 90: uint16(32033), + 91: uint16(32023), + 92: uint16(32011), + 93: uint16(32010), + 94: uint16(32032), + 95: uint16(32034), + 96: uint16(32020), + 97: uint16(32016), + 98: uint16(32021), + 99: uint16(32026), + 100: uint16(32028), + 101: uint16(32013), + 102: uint16(32025), + 103: uint16(32027), + 104: uint16(32570), + 105: uint16(32607), + 106: uint16(32660), + 107: uint16(32709), + 108: uint16(32705), + 109: uint16(32774), + 110: uint16(32792), + 111: uint16(32789), + 112: uint16(32793), + 113: uint16(32791), + 114: uint16(32829), + 115: uint16(32831), + 116: uint16(33009), + 117: uint16(33026), + 118: uint16(33008), + 119: uint16(33029), + 120: uint16(33005), + 121: uint16(33012), + 122: uint16(33030), + 123: uint16(33016), + 124: uint16(33011), + 125: uint16(33032), + 126: uint16(33021), + 127: uint16(33034), + 128: uint16(33020), + 129: uint16(33007), + 130: uint16(33261), + 131: uint16(33260), + 132: uint16(33280), + 133: uint16(33296), + 134: uint16(33322), + 135: uint16(33323), + 136: uint16(33320), + 137: uint16(33324), + 138: uint16(33467), + 139: uint16(33579), + 140: uint16(33618), + 141: uint16(33620), + 142: uint16(33610), + 143: uint16(33592), + 144: uint16(33616), + 145: uint16(33609), + 146: uint16(33589), + 147: uint16(33588), + 148: uint16(33615), + 149: uint16(33586), + 150: uint16(33593), + 151: uint16(33590), + 152: uint16(33559), + 153: uint16(33600), + 154: uint16(33585), + 155: uint16(33576), + 156: uint16(33603), + }, + 15: { + 0: uint16(34388), + 1: uint16(34442), + 2: uint16(34474), + 3: uint16(34451), + 4: uint16(34468), + 5: uint16(34473), + 6: uint16(34444), + 7: uint16(34467), + 8: uint16(34460), + 9: uint16(34928), + 10: uint16(34935), + 11: uint16(34945), + 12: uint16(34946), + 13: uint16(34941), + 14: uint16(34937), + 15: uint16(35352), + 16: uint16(35344), + 17: uint16(35342), + 18: uint16(35340), + 19: uint16(35349), + 20: uint16(35338), + 21: uint16(35351), + 22: uint16(35347), + 23: uint16(35350), + 24: uint16(35343), + 25: uint16(35345), + 26: uint16(35912), + 27: uint16(35962), + 28: uint16(35961), + 29: uint16(36001), + 30: uint16(36002), + 31: uint16(36215), + 32: uint16(36524), + 33: uint16(36562), + 34: uint16(36564), + 35: uint16(36559), + 36: uint16(36785), + 37: uint16(36865), + 38: uint16(36870), + 39: uint16(36855), + 40: uint16(36864), + 41: uint16(36858), + 42: uint16(36852), + 43: uint16(36867), + 44: uint16(36861), + 45: uint16(36869), + 46: uint16(36856), + 47: uint16(37013), + 48: uint16(37089), + 49: uint16(37085), + 50: uint16(37090), + 51: uint16(37202), + 52: uint16(37197), + 53: uint16(37196), + 54: uint16(37336), + 55: uint16(37341), + 56: uint16(37335), + 57: uint16(37340), + 58: uint16(37337), + 59: uint16(38275), + 60: uint16(38498), + 61: uint16(38499), + 62: uint16(38497), + 63: uint16(38491), + 64: uint16(38493), + 65: uint16(38500), + 66: uint16(38488), + 67: uint16(38494), + 68: uint16(38587), + 69: uint16(39138), + 70: uint16(39340), + 71: uint16(39592), + 72: uint16(39640), + 73: uint16(39717), + 74: uint16(39730), + 75: uint16(39740), + 76: uint16(20094), + 77: uint16(20602), + 78: uint16(20605), + 79: uint16(20572), + 80: uint16(20551), + 81: uint16(20547), + 82: uint16(20556), + 83: uint16(20570), + 84: uint16(20553), + 85: uint16(20581), + 86: uint16(20598), + 87: uint16(20558), + 88: uint16(20565), + 89: uint16(20597), + 90: uint16(20596), + 91: uint16(20599), + 92: uint16(20559), + 93: uint16(20495), + 94: uint16(20591), + 95: uint16(20589), + 96: uint16(20828), + 97: uint16(20885), + 98: uint16(20976), + 99: uint16(21098), + 100: uint16(21103), + 101: uint16(21202), + 102: uint16(21209), + 103: uint16(21208), + 104: uint16(21205), + 105: uint16(21264), + 106: uint16(21263), + 107: uint16(21273), + 108: uint16(21311), + 109: uint16(21312), + 110: uint16(21310), + 111: uint16(21443), + 112: uint16(26364), + 113: uint16(21830), + 114: uint16(21866), + 115: uint16(21862), + 116: uint16(21828), + 117: uint16(21854), + 118: uint16(21857), + 119: uint16(21827), + 120: uint16(21834), + 121: uint16(21809), + 122: uint16(21846), + 123: uint16(21839), + 124: uint16(21845), + 125: uint16(21807), + 126: uint16(21860), + 127: uint16(21816), + 128: uint16(21806), + 129: uint16(21852), + 130: uint16(21804), + 131: uint16(21859), + 132: uint16(21811), + 133: uint16(21825), + 134: uint16(21847), + 135: uint16(22280), + 136: uint16(22283), + 137: uint16(22281), + 138: uint16(22495), + 139: uint16(22533), + 140: uint16(22538), + 141: uint16(22534), + 142: uint16(22496), + 143: uint16(22500), + 144: uint16(22522), + 145: uint16(22530), + 146: uint16(22581), + 147: uint16(22519), + 148: uint16(22521), + 149: uint16(22816), + 150: uint16(22882), + 151: uint16(23094), + 152: uint16(23105), + 153: uint16(23113), + 154: uint16(23142), + 155: uint16(23146), + 156: uint16(23104), + }, + 16: { + 0: uint16(23100), + 1: uint16(23138), + 2: uint16(23130), + 3: uint16(23110), + 4: uint16(23114), + 5: uint16(23408), + 6: uint16(23495), + 7: uint16(23493), + 8: uint16(23492), + 9: uint16(23490), + 10: uint16(23487), + 11: uint16(23494), + 12: uint16(23561), + 13: uint16(23560), + 14: uint16(23559), + 15: uint16(23648), + 16: uint16(23644), + 17: uint16(23645), + 18: uint16(23815), + 19: uint16(23814), + 20: uint16(23822), + 21: uint16(23835), + 22: uint16(23830), + 23: uint16(23842), + 24: uint16(23825), + 25: uint16(23849), + 26: uint16(23828), + 27: uint16(23833), + 28: uint16(23844), + 29: uint16(23847), + 30: uint16(23831), + 31: uint16(24034), + 32: uint16(24120), + 33: uint16(24118), + 34: uint16(24115), + 35: uint16(24119), + 36: uint16(24247), + 37: uint16(24248), + 38: uint16(24246), + 39: uint16(24245), + 40: uint16(24254), + 41: uint16(24373), + 42: uint16(24375), + 43: uint16(24407), + 44: uint16(24428), + 45: uint16(24425), + 46: uint16(24427), + 47: uint16(24471), + 48: uint16(24473), + 49: uint16(24478), + 50: uint16(24472), + 51: uint16(24481), + 52: uint16(24480), + 53: uint16(24476), + 54: uint16(24703), + 55: uint16(24739), + 56: uint16(24713), + 57: uint16(24736), + 58: uint16(24744), + 59: uint16(24779), + 60: uint16(24756), + 61: uint16(24806), + 62: uint16(24765), + 63: uint16(24773), + 64: uint16(24763), + 65: uint16(24757), + 66: uint16(24796), + 67: uint16(24764), + 68: uint16(24792), + 69: uint16(24789), + 70: uint16(24774), + 71: uint16(24799), + 72: uint16(24760), + 73: uint16(24794), + 74: uint16(24775), + 75: uint16(25114), + 76: uint16(25115), + 77: uint16(25160), + 78: uint16(25504), + 79: uint16(25511), + 80: uint16(25458), + 81: uint16(25494), + 82: uint16(25506), + 83: uint16(25509), + 84: uint16(25463), + 85: uint16(25447), + 86: uint16(25496), + 87: uint16(25514), + 88: uint16(25457), + 89: uint16(25513), + 90: uint16(25481), + 91: uint16(25475), + 92: uint16(25499), + 93: uint16(25451), + 94: uint16(25512), + 95: uint16(25476), + 96: uint16(25480), + 97: uint16(25497), + 98: uint16(25505), + 99: uint16(25516), + 100: uint16(25490), + 101: uint16(25487), + 102: uint16(25472), + 103: uint16(25467), + 104: uint16(25449), + 105: uint16(25448), + 106: uint16(25466), + 107: uint16(25949), + 108: uint16(25942), + 109: uint16(25937), + 110: uint16(25945), + 111: uint16(25943), + 112: uint16(21855), + 113: uint16(25935), + 114: uint16(25944), + 115: uint16(25941), + 116: uint16(25940), + 117: uint16(26012), + 118: uint16(26011), + 119: uint16(26028), + 120: uint16(26063), + 121: uint16(26059), + 122: uint16(26060), + 123: uint16(26062), + 124: uint16(26205), + 125: uint16(26202), + 126: uint16(26212), + 127: uint16(26216), + 128: uint16(26214), + 129: uint16(26206), + 130: uint16(26361), + 131: uint16(21207), + 132: uint16(26395), + 133: uint16(26753), + 134: uint16(26799), + 135: uint16(26786), + 136: uint16(26771), + 137: uint16(26805), + 138: uint16(26751), + 139: uint16(26742), + 140: uint16(26801), + 141: uint16(26791), + 142: uint16(26775), + 143: uint16(26800), + 144: uint16(26755), + 145: uint16(26820), + 146: uint16(26797), + 147: uint16(26758), + 148: uint16(26757), + 149: uint16(26772), + 150: uint16(26781), + 151: uint16(26792), + 152: uint16(26783), + 153: uint16(26785), + 154: uint16(26754), + 155: uint16(27442), + 156: uint16(27578), + }, + 17: { + 0: uint16(27627), + 1: uint16(27628), + 2: uint16(27691), + 3: uint16(28046), + 4: uint16(28092), + 5: uint16(28147), + 6: uint16(28121), + 7: uint16(28082), + 8: uint16(28129), + 9: uint16(28108), + 10: uint16(28132), + 11: uint16(28155), + 12: uint16(28154), + 13: uint16(28165), + 14: uint16(28103), + 15: uint16(28107), + 16: uint16(28079), + 17: uint16(28113), + 18: uint16(28078), + 19: uint16(28126), + 20: uint16(28153), + 21: uint16(28088), + 22: uint16(28151), + 23: uint16(28149), + 24: uint16(28101), + 25: uint16(28114), + 26: uint16(28186), + 27: uint16(28085), + 28: uint16(28122), + 29: uint16(28139), + 30: uint16(28120), + 31: uint16(28138), + 32: uint16(28145), + 33: uint16(28142), + 34: uint16(28136), + 35: uint16(28102), + 36: uint16(28100), + 37: uint16(28074), + 38: uint16(28140), + 39: uint16(28095), + 40: uint16(28134), + 41: uint16(28921), + 42: uint16(28937), + 43: uint16(28938), + 44: uint16(28925), + 45: uint16(28911), + 46: uint16(29245), + 47: uint16(29309), + 48: uint16(29313), + 49: uint16(29468), + 50: uint16(29467), + 51: uint16(29462), + 52: uint16(29459), + 53: uint16(29465), + 54: uint16(29575), + 55: uint16(29701), + 56: uint16(29706), + 57: uint16(29699), + 58: uint16(29702), + 59: uint16(29694), + 60: uint16(29709), + 61: uint16(29920), + 62: uint16(29942), + 63: uint16(29943), + 64: uint16(29980), + 65: uint16(29986), + 66: uint16(30053), + 67: uint16(30054), + 68: uint16(30050), + 69: uint16(30064), + 70: uint16(30095), + 71: uint16(30164), + 72: uint16(30165), + 73: uint16(30133), + 74: uint16(30154), + 75: uint16(30157), + 76: uint16(30350), + 77: uint16(30420), + 78: uint16(30418), + 79: uint16(30427), + 80: uint16(30519), + 81: uint16(30526), + 82: uint16(30524), + 83: uint16(30518), + 84: uint16(30520), + 85: uint16(30522), + 86: uint16(30827), + 87: uint16(30787), + 88: uint16(30798), + 89: uint16(31077), + 90: uint16(31080), + 91: uint16(31085), + 92: uint16(31227), + 93: uint16(31378), + 94: uint16(31381), + 95: uint16(31520), + 96: uint16(31528), + 97: uint16(31515), + 98: uint16(31532), + 99: uint16(31526), + 100: uint16(31513), + 101: uint16(31518), + 102: uint16(31534), + 103: uint16(31890), + 104: uint16(31895), + 105: uint16(31893), + 106: uint16(32070), + 107: uint16(32067), + 108: uint16(32113), + 109: uint16(32046), + 110: uint16(32057), + 111: uint16(32060), + 112: uint16(32064), + 113: uint16(32048), + 114: uint16(32051), + 115: uint16(32068), + 116: uint16(32047), + 117: uint16(32066), + 118: uint16(32050), + 119: uint16(32049), + 120: uint16(32573), + 121: uint16(32670), + 122: uint16(32666), + 123: uint16(32716), + 124: uint16(32718), + 125: uint16(32722), + 126: uint16(32796), + 127: uint16(32842), + 128: uint16(32838), + 129: uint16(33071), + 130: uint16(33046), + 131: uint16(33059), + 132: uint16(33067), + 133: uint16(33065), + 134: uint16(33072), + 135: uint16(33060), + 136: uint16(33282), + 137: uint16(33333), + 138: uint16(33335), + 139: uint16(33334), + 140: uint16(33337), + 141: uint16(33678), + 142: uint16(33694), + 143: uint16(33688), + 144: uint16(33656), + 145: uint16(33698), + 146: uint16(33686), + 147: uint16(33725), + 148: uint16(33707), + 149: uint16(33682), + 150: uint16(33674), + 151: uint16(33683), + 152: uint16(33673), + 153: uint16(33696), + 154: uint16(33655), + 155: uint16(33659), + 156: uint16(33660), + }, + 18: { + 0: uint16(33670), + 1: uint16(33703), + 2: uint16(34389), + 3: uint16(24426), + 4: uint16(34503), + 5: uint16(34496), + 6: uint16(34486), + 7: uint16(34500), + 8: uint16(34485), + 9: uint16(34502), + 10: uint16(34507), + 11: uint16(34481), + 12: uint16(34479), + 13: uint16(34505), + 14: uint16(34899), + 15: uint16(34974), + 16: uint16(34952), + 17: uint16(34987), + 18: uint16(34962), + 19: uint16(34966), + 20: uint16(34957), + 21: uint16(34955), + 22: uint16(35219), + 23: uint16(35215), + 24: uint16(35370), + 25: uint16(35357), + 26: uint16(35363), + 27: uint16(35365), + 28: uint16(35377), + 29: uint16(35373), + 30: uint16(35359), + 31: uint16(35355), + 32: uint16(35362), + 33: uint16(35913), + 34: uint16(35930), + 35: uint16(36009), + 36: uint16(36012), + 37: uint16(36011), + 38: uint16(36008), + 39: uint16(36010), + 40: uint16(36007), + 41: uint16(36199), + 42: uint16(36198), + 43: uint16(36286), + 44: uint16(36282), + 45: uint16(36571), + 46: uint16(36575), + 47: uint16(36889), + 48: uint16(36877), + 49: uint16(36890), + 50: uint16(36887), + 51: uint16(36899), + 52: uint16(36895), + 53: uint16(36893), + 54: uint16(36880), + 55: uint16(36885), + 56: uint16(36894), + 57: uint16(36896), + 58: uint16(36879), + 59: uint16(36898), + 60: uint16(36886), + 61: uint16(36891), + 62: uint16(36884), + 63: uint16(37096), + 64: uint16(37101), + 65: uint16(37117), + 66: uint16(37207), + 67: uint16(37326), + 68: uint16(37365), + 69: uint16(37350), + 70: uint16(37347), + 71: uint16(37351), + 72: uint16(37357), + 73: uint16(37353), + 74: uint16(38281), + 75: uint16(38506), + 76: uint16(38517), + 77: uint16(38515), + 78: uint16(38520), + 79: uint16(38512), + 80: uint16(38516), + 81: uint16(38518), + 82: uint16(38519), + 83: uint16(38508), + 84: uint16(38592), + 85: uint16(38634), + 86: uint16(38633), + 87: uint16(31456), + 88: uint16(31455), + 89: uint16(38914), + 90: uint16(38915), + 91: uint16(39770), + 92: uint16(40165), + 93: uint16(40565), + 94: uint16(40575), + 95: uint16(40613), + 96: uint16(40635), + 97: uint16(20642), + 98: uint16(20621), + 99: uint16(20613), + 100: uint16(20633), + 101: uint16(20625), + 102: uint16(20608), + 103: uint16(20630), + 104: uint16(20632), + 105: uint16(20634), + 106: uint16(26368), + 107: uint16(20977), + 108: uint16(21106), + 109: uint16(21108), + 110: uint16(21109), + 111: uint16(21097), + 112: uint16(21214), + 113: uint16(21213), + 114: uint16(21211), + 115: uint16(21338), + 116: uint16(21413), + 117: uint16(21883), + 118: uint16(21888), + 119: uint16(21927), + 120: uint16(21884), + 121: uint16(21898), + 122: uint16(21917), + 123: uint16(21912), + 124: uint16(21890), + 125: uint16(21916), + 126: uint16(21930), + 127: uint16(21908), + 128: uint16(21895), + 129: uint16(21899), + 130: uint16(21891), + 131: uint16(21939), + 132: uint16(21934), + 133: uint16(21919), + 134: uint16(21822), + 135: uint16(21938), + 136: uint16(21914), + 137: uint16(21947), + 138: uint16(21932), + 139: uint16(21937), + 140: uint16(21886), + 141: uint16(21897), + 142: uint16(21931), + 143: uint16(21913), + 144: uint16(22285), + 145: uint16(22575), + 146: uint16(22570), + 147: uint16(22580), + 148: uint16(22564), + 149: uint16(22576), + 150: uint16(22577), + 151: uint16(22561), + 152: uint16(22557), + 153: uint16(22560), + 154: uint16(22777), + 155: uint16(22778), + 156: uint16(22880), + }, + 19: { + 0: uint16(23159), + 1: uint16(23194), + 2: uint16(23167), + 3: uint16(23186), + 4: uint16(23195), + 5: uint16(23207), + 6: uint16(23411), + 7: uint16(23409), + 8: uint16(23506), + 9: uint16(23500), + 10: uint16(23507), + 11: uint16(23504), + 12: uint16(23562), + 13: uint16(23563), + 14: uint16(23601), + 15: uint16(23884), + 16: uint16(23888), + 17: uint16(23860), + 18: uint16(23879), + 19: uint16(24061), + 20: uint16(24133), + 21: uint16(24125), + 22: uint16(24128), + 23: uint16(24131), + 24: uint16(24190), + 25: uint16(24266), + 26: uint16(24257), + 27: uint16(24258), + 28: uint16(24260), + 29: uint16(24380), + 30: uint16(24429), + 31: uint16(24489), + 32: uint16(24490), + 33: uint16(24488), + 34: uint16(24785), + 35: uint16(24801), + 36: uint16(24754), + 37: uint16(24758), + 38: uint16(24800), + 39: uint16(24860), + 40: uint16(24867), + 41: uint16(24826), + 42: uint16(24853), + 43: uint16(24816), + 44: uint16(24827), + 45: uint16(24820), + 46: uint16(24936), + 47: uint16(24817), + 48: uint16(24846), + 49: uint16(24822), + 50: uint16(24841), + 51: uint16(24832), + 52: uint16(24850), + 53: uint16(25119), + 54: uint16(25161), + 55: uint16(25507), + 56: uint16(25484), + 57: uint16(25551), + 58: uint16(25536), + 59: uint16(25577), + 60: uint16(25545), + 61: uint16(25542), + 62: uint16(25549), + 63: uint16(25554), + 64: uint16(25571), + 65: uint16(25552), + 66: uint16(25569), + 67: uint16(25558), + 68: uint16(25581), + 69: uint16(25582), + 70: uint16(25462), + 71: uint16(25588), + 72: uint16(25578), + 73: uint16(25563), + 74: uint16(25682), + 75: uint16(25562), + 76: uint16(25593), + 77: uint16(25950), + 78: uint16(25958), + 79: uint16(25954), + 80: uint16(25955), + 81: uint16(26001), + 82: uint16(26000), + 83: uint16(26031), + 84: uint16(26222), + 85: uint16(26224), + 86: uint16(26228), + 87: uint16(26230), + 88: uint16(26223), + 89: uint16(26257), + 90: uint16(26234), + 91: uint16(26238), + 92: uint16(26231), + 93: uint16(26366), + 94: uint16(26367), + 95: uint16(26399), + 96: uint16(26397), + 97: uint16(26874), + 98: uint16(26837), + 99: uint16(26848), + 100: uint16(26840), + 101: uint16(26839), + 102: uint16(26885), + 103: uint16(26847), + 104: uint16(26869), + 105: uint16(26862), + 106: uint16(26855), + 107: uint16(26873), + 108: uint16(26834), + 109: uint16(26866), + 110: uint16(26851), + 111: uint16(26827), + 112: uint16(26829), + 113: uint16(26893), + 114: uint16(26898), + 115: uint16(26894), + 116: uint16(26825), + 117: uint16(26842), + 118: uint16(26990), + 119: uint16(26875), + 120: uint16(27454), + 121: uint16(27450), + 122: uint16(27453), + 123: uint16(27544), + 124: uint16(27542), + 125: uint16(27580), + 126: uint16(27631), + 127: uint16(27694), + 128: uint16(27695), + 129: uint16(27692), + 130: uint16(28207), + 131: uint16(28216), + 132: uint16(28244), + 133: uint16(28193), + 134: uint16(28210), + 135: uint16(28263), + 136: uint16(28234), + 137: uint16(28192), + 138: uint16(28197), + 139: uint16(28195), + 140: uint16(28187), + 141: uint16(28251), + 142: uint16(28248), + 143: uint16(28196), + 144: uint16(28246), + 145: uint16(28270), + 146: uint16(28205), + 147: uint16(28198), + 148: uint16(28271), + 149: uint16(28212), + 150: uint16(28237), + 151: uint16(28218), + 152: uint16(28204), + 153: uint16(28227), + 154: uint16(28189), + 155: uint16(28222), + 156: uint16(28363), + }, + 20: { + 0: uint16(28297), + 1: uint16(28185), + 2: uint16(28238), + 3: uint16(28259), + 4: uint16(28228), + 5: uint16(28274), + 6: uint16(28265), + 7: uint16(28255), + 8: uint16(28953), + 9: uint16(28954), + 10: uint16(28966), + 11: uint16(28976), + 12: uint16(28961), + 13: uint16(28982), + 14: uint16(29038), + 15: uint16(28956), + 16: uint16(29260), + 17: uint16(29316), + 18: uint16(29312), + 19: uint16(29494), + 20: uint16(29477), + 21: uint16(29492), + 22: uint16(29481), + 23: uint16(29754), + 24: uint16(29738), + 25: uint16(29747), + 26: uint16(29730), + 27: uint16(29733), + 28: uint16(29749), + 29: uint16(29750), + 30: uint16(29748), + 31: uint16(29743), + 32: uint16(29723), + 33: uint16(29734), + 34: uint16(29736), + 35: uint16(29989), + 36: uint16(29990), + 37: uint16(30059), + 38: uint16(30058), + 39: uint16(30178), + 40: uint16(30171), + 41: uint16(30179), + 42: uint16(30169), + 43: uint16(30168), + 44: uint16(30174), + 45: uint16(30176), + 46: uint16(30331), + 47: uint16(30332), + 48: uint16(30358), + 49: uint16(30355), + 50: uint16(30388), + 51: uint16(30428), + 52: uint16(30543), + 53: uint16(30701), + 54: uint16(30813), + 55: uint16(30828), + 56: uint16(30831), + 57: uint16(31245), + 58: uint16(31240), + 59: uint16(31243), + 60: uint16(31237), + 61: uint16(31232), + 62: uint16(31384), + 63: uint16(31383), + 64: uint16(31382), + 65: uint16(31461), + 66: uint16(31459), + 67: uint16(31561), + 68: uint16(31574), + 69: uint16(31558), + 70: uint16(31568), + 71: uint16(31570), + 72: uint16(31572), + 73: uint16(31565), + 74: uint16(31563), + 75: uint16(31567), + 76: uint16(31569), + 77: uint16(31903), + 78: uint16(31909), + 79: uint16(32094), + 80: uint16(32080), + 81: uint16(32104), + 82: uint16(32085), + 83: uint16(32043), + 84: uint16(32110), + 85: uint16(32114), + 86: uint16(32097), + 87: uint16(32102), + 88: uint16(32098), + 89: uint16(32112), + 90: uint16(32115), + 91: uint16(21892), + 92: uint16(32724), + 93: uint16(32725), + 94: uint16(32779), + 95: uint16(32850), + 96: uint16(32901), + 97: uint16(33109), + 98: uint16(33108), + 99: uint16(33099), + 100: uint16(33105), + 101: uint16(33102), + 102: uint16(33081), + 103: uint16(33094), + 104: uint16(33086), + 105: uint16(33100), + 106: uint16(33107), + 107: uint16(33140), + 108: uint16(33298), + 109: uint16(33308), + 110: uint16(33769), + 111: uint16(33795), + 112: uint16(33784), + 113: uint16(33805), + 114: uint16(33760), + 115: uint16(33733), + 116: uint16(33803), + 117: uint16(33729), + 118: uint16(33775), + 119: uint16(33777), + 120: uint16(33780), + 121: uint16(33879), + 122: uint16(33802), + 123: uint16(33776), + 124: uint16(33804), + 125: uint16(33740), + 126: uint16(33789), + 127: uint16(33778), + 128: uint16(33738), + 129: uint16(33848), + 130: uint16(33806), + 131: uint16(33796), + 132: uint16(33756), + 133: uint16(33799), + 134: uint16(33748), + 135: uint16(33759), + 136: uint16(34395), + 137: uint16(34527), + 138: uint16(34521), + 139: uint16(34541), + 140: uint16(34516), + 141: uint16(34523), + 142: uint16(34532), + 143: uint16(34512), + 144: uint16(34526), + 145: uint16(34903), + 146: uint16(35009), + 147: uint16(35010), + 148: uint16(34993), + 149: uint16(35203), + 150: uint16(35222), + 151: uint16(35387), + 152: uint16(35424), + 153: uint16(35413), + 154: uint16(35422), + 155: uint16(35388), + 156: uint16(35393), + }, + 21: { + 0: uint16(35412), + 1: uint16(35419), + 2: uint16(35408), + 3: uint16(35398), + 4: uint16(35380), + 5: uint16(35386), + 6: uint16(35382), + 7: uint16(35414), + 8: uint16(35937), + 9: uint16(35970), + 10: uint16(36015), + 11: uint16(36028), + 12: uint16(36019), + 13: uint16(36029), + 14: uint16(36033), + 15: uint16(36027), + 16: uint16(36032), + 17: uint16(36020), + 18: uint16(36023), + 19: uint16(36022), + 20: uint16(36031), + 21: uint16(36024), + 22: uint16(36234), + 23: uint16(36229), + 24: uint16(36225), + 25: uint16(36302), + 26: uint16(36317), + 27: uint16(36299), + 28: uint16(36314), + 29: uint16(36305), + 30: uint16(36300), + 31: uint16(36315), + 32: uint16(36294), + 33: uint16(36603), + 34: uint16(36600), + 35: uint16(36604), + 36: uint16(36764), + 37: uint16(36910), + 38: uint16(36917), + 39: uint16(36913), + 40: uint16(36920), + 41: uint16(36914), + 42: uint16(36918), + 43: uint16(37122), + 44: uint16(37109), + 45: uint16(37129), + 46: uint16(37118), + 47: uint16(37219), + 48: uint16(37221), + 49: uint16(37327), + 50: uint16(37396), + 51: uint16(37397), + 52: uint16(37411), + 53: uint16(37385), + 54: uint16(37406), + 55: uint16(37389), + 56: uint16(37392), + 57: uint16(37383), + 58: uint16(37393), + 59: uint16(38292), + 60: uint16(38287), + 61: uint16(38283), + 62: uint16(38289), + 63: uint16(38291), + 64: uint16(38290), + 65: uint16(38286), + 66: uint16(38538), + 67: uint16(38542), + 68: uint16(38539), + 69: uint16(38525), + 70: uint16(38533), + 71: uint16(38534), + 72: uint16(38541), + 73: uint16(38514), + 74: uint16(38532), + 75: uint16(38593), + 76: uint16(38597), + 77: uint16(38596), + 78: uint16(38598), + 79: uint16(38599), + 80: uint16(38639), + 81: uint16(38642), + 82: uint16(38860), + 83: uint16(38917), + 84: uint16(38918), + 85: uint16(38920), + 86: uint16(39143), + 87: uint16(39146), + 88: uint16(39151), + 89: uint16(39145), + 90: uint16(39154), + 91: uint16(39149), + 92: uint16(39342), + 93: uint16(39341), + 94: uint16(40643), + 95: uint16(40653), + 96: uint16(40657), + 97: uint16(20098), + 98: uint16(20653), + 99: uint16(20661), + 100: uint16(20658), + 101: uint16(20659), + 102: uint16(20677), + 103: uint16(20670), + 104: uint16(20652), + 105: uint16(20663), + 106: uint16(20667), + 107: uint16(20655), + 108: uint16(20679), + 109: uint16(21119), + 110: uint16(21111), + 111: uint16(21117), + 112: uint16(21215), + 113: uint16(21222), + 114: uint16(21220), + 115: uint16(21218), + 116: uint16(21219), + 117: uint16(21295), + 118: uint16(21983), + 119: uint16(21992), + 120: uint16(21971), + 121: uint16(21990), + 122: uint16(21966), + 123: uint16(21980), + 124: uint16(21959), + 125: uint16(21969), + 126: uint16(21987), + 127: uint16(21988), + 128: uint16(21999), + 129: uint16(21978), + 130: uint16(21985), + 131: uint16(21957), + 132: uint16(21958), + 133: uint16(21989), + 134: uint16(21961), + 135: uint16(22290), + 136: uint16(22291), + 137: uint16(22622), + 138: uint16(22609), + 139: uint16(22616), + 140: uint16(22615), + 141: uint16(22618), + 142: uint16(22612), + 143: uint16(22635), + 144: uint16(22604), + 145: uint16(22637), + 146: uint16(22602), + 147: uint16(22626), + 148: uint16(22610), + 149: uint16(22603), + 150: uint16(22887), + 151: uint16(23233), + 152: uint16(23241), + 153: uint16(23244), + 154: uint16(23230), + 155: uint16(23229), + 156: uint16(23228), + }, + 22: { + 0: uint16(23219), + 1: uint16(23234), + 2: uint16(23218), + 3: uint16(23913), + 4: uint16(23919), + 5: uint16(24140), + 6: uint16(24185), + 7: uint16(24265), + 8: uint16(24264), + 9: uint16(24338), + 10: uint16(24409), + 11: uint16(24492), + 12: uint16(24494), + 13: uint16(24858), + 14: uint16(24847), + 15: uint16(24904), + 16: uint16(24863), + 17: uint16(24819), + 18: uint16(24859), + 19: uint16(24825), + 20: uint16(24833), + 21: uint16(24840), + 22: uint16(24910), + 23: uint16(24908), + 24: uint16(24900), + 25: uint16(24909), + 26: uint16(24894), + 27: uint16(24884), + 28: uint16(24871), + 29: uint16(24845), + 30: uint16(24838), + 31: uint16(24887), + 32: uint16(25121), + 33: uint16(25122), + 34: uint16(25619), + 35: uint16(25662), + 36: uint16(25630), + 37: uint16(25642), + 38: uint16(25645), + 39: uint16(25661), + 40: uint16(25644), + 41: uint16(25615), + 42: uint16(25628), + 43: uint16(25620), + 44: uint16(25613), + 45: uint16(25654), + 46: uint16(25622), + 47: uint16(25623), + 48: uint16(25606), + 49: uint16(25964), + 50: uint16(26015), + 51: uint16(26032), + 52: uint16(26263), + 53: uint16(26249), + 54: uint16(26247), + 55: uint16(26248), + 56: uint16(26262), + 57: uint16(26244), + 58: uint16(26264), + 59: uint16(26253), + 60: uint16(26371), + 61: uint16(27028), + 62: uint16(26989), + 63: uint16(26970), + 64: uint16(26999), + 65: uint16(26976), + 66: uint16(26964), + 67: uint16(26997), + 68: uint16(26928), + 69: uint16(27010), + 70: uint16(26954), + 71: uint16(26984), + 72: uint16(26987), + 73: uint16(26974), + 74: uint16(26963), + 75: uint16(27001), + 76: uint16(27014), + 77: uint16(26973), + 78: uint16(26979), + 79: uint16(26971), + 80: uint16(27463), + 81: uint16(27506), + 82: uint16(27584), + 83: uint16(27583), + 84: uint16(27603), + 85: uint16(27645), + 86: uint16(28322), + 87: uint16(28335), + 88: uint16(28371), + 89: uint16(28342), + 90: uint16(28354), + 91: uint16(28304), + 92: uint16(28317), + 93: uint16(28359), + 94: uint16(28357), + 95: uint16(28325), + 96: uint16(28312), + 97: uint16(28348), + 98: uint16(28346), + 99: uint16(28331), + 100: uint16(28369), + 101: uint16(28310), + 102: uint16(28316), + 103: uint16(28356), + 104: uint16(28372), + 105: uint16(28330), + 106: uint16(28327), + 107: uint16(28340), + 108: uint16(29006), + 109: uint16(29017), + 110: uint16(29033), + 111: uint16(29028), + 112: uint16(29001), + 113: uint16(29031), + 114: uint16(29020), + 115: uint16(29036), + 116: uint16(29030), + 117: uint16(29004), + 118: uint16(29029), + 119: uint16(29022), + 120: uint16(28998), + 121: uint16(29032), + 122: uint16(29014), + 123: uint16(29242), + 124: uint16(29266), + 125: uint16(29495), + 126: uint16(29509), + 127: uint16(29503), + 128: uint16(29502), + 129: uint16(29807), + 130: uint16(29786), + 131: uint16(29781), + 132: uint16(29791), + 133: uint16(29790), + 134: uint16(29761), + 135: uint16(29759), + 136: uint16(29785), + 137: uint16(29787), + 138: uint16(29788), + 139: uint16(30070), + 140: uint16(30072), + 141: uint16(30208), + 142: uint16(30192), + 143: uint16(30209), + 144: uint16(30194), + 145: uint16(30193), + 146: uint16(30202), + 147: uint16(30207), + 148: uint16(30196), + 149: uint16(30195), + 150: uint16(30430), + 151: uint16(30431), + 152: uint16(30555), + 153: uint16(30571), + 154: uint16(30566), + 155: uint16(30558), + 156: uint16(30563), + }, + 23: { + 0: uint16(30585), + 1: uint16(30570), + 2: uint16(30572), + 3: uint16(30556), + 4: uint16(30565), + 5: uint16(30568), + 6: uint16(30562), + 7: uint16(30702), + 8: uint16(30862), + 9: uint16(30896), + 10: uint16(30871), + 11: uint16(30872), + 12: uint16(30860), + 13: uint16(30857), + 14: uint16(30844), + 15: uint16(30865), + 16: uint16(30867), + 17: uint16(30847), + 18: uint16(31098), + 19: uint16(31103), + 20: uint16(31105), + 21: uint16(33836), + 22: uint16(31165), + 23: uint16(31260), + 24: uint16(31258), + 25: uint16(31264), + 26: uint16(31252), + 27: uint16(31263), + 28: uint16(31262), + 29: uint16(31391), + 30: uint16(31392), + 31: uint16(31607), + 32: uint16(31680), + 33: uint16(31584), + 34: uint16(31598), + 35: uint16(31591), + 36: uint16(31921), + 37: uint16(31923), + 38: uint16(31925), + 39: uint16(32147), + 40: uint16(32121), + 41: uint16(32145), + 42: uint16(32129), + 43: uint16(32143), + 44: uint16(32091), + 45: uint16(32622), + 46: uint16(32617), + 47: uint16(32618), + 48: uint16(32626), + 49: uint16(32681), + 50: uint16(32680), + 51: uint16(32676), + 52: uint16(32854), + 53: uint16(32856), + 54: uint16(32902), + 55: uint16(32900), + 56: uint16(33137), + 57: uint16(33136), + 58: uint16(33144), + 59: uint16(33125), + 60: uint16(33134), + 61: uint16(33139), + 62: uint16(33131), + 63: uint16(33145), + 64: uint16(33146), + 65: uint16(33126), + 66: uint16(33285), + 67: uint16(33351), + 68: uint16(33922), + 69: uint16(33911), + 70: uint16(33853), + 71: uint16(33841), + 72: uint16(33909), + 73: uint16(33894), + 74: uint16(33899), + 75: uint16(33865), + 76: uint16(33900), + 77: uint16(33883), + 78: uint16(33852), + 79: uint16(33845), + 80: uint16(33889), + 81: uint16(33891), + 82: uint16(33897), + 83: uint16(33901), + 84: uint16(33862), + 85: uint16(34398), + 86: uint16(34396), + 87: uint16(34399), + 88: uint16(34553), + 89: uint16(34579), + 90: uint16(34568), + 91: uint16(34567), + 92: uint16(34560), + 93: uint16(34558), + 94: uint16(34555), + 95: uint16(34562), + 96: uint16(34563), + 97: uint16(34566), + 98: uint16(34570), + 99: uint16(34905), + 100: uint16(35039), + 101: uint16(35028), + 102: uint16(35033), + 103: uint16(35036), + 104: uint16(35032), + 105: uint16(35037), + 106: uint16(35041), + 107: uint16(35018), + 108: uint16(35029), + 109: uint16(35026), + 110: uint16(35228), + 111: uint16(35299), + 112: uint16(35435), + 113: uint16(35442), + 114: uint16(35443), + 115: uint16(35430), + 116: uint16(35433), + 117: uint16(35440), + 118: uint16(35463), + 119: uint16(35452), + 120: uint16(35427), + 121: uint16(35488), + 122: uint16(35441), + 123: uint16(35461), + 124: uint16(35437), + 125: uint16(35426), + 126: uint16(35438), + 127: uint16(35436), + 128: uint16(35449), + 129: uint16(35451), + 130: uint16(35390), + 131: uint16(35432), + 132: uint16(35938), + 133: uint16(35978), + 134: uint16(35977), + 135: uint16(36042), + 136: uint16(36039), + 137: uint16(36040), + 138: uint16(36036), + 139: uint16(36018), + 140: uint16(36035), + 141: uint16(36034), + 142: uint16(36037), + 143: uint16(36321), + 144: uint16(36319), + 145: uint16(36328), + 146: uint16(36335), + 147: uint16(36339), + 148: uint16(36346), + 149: uint16(36330), + 150: uint16(36324), + 151: uint16(36326), + 152: uint16(36530), + 153: uint16(36611), + 154: uint16(36617), + 155: uint16(36606), + 156: uint16(36618), + }, + 24: { + 0: uint16(36767), + 1: uint16(36786), + 2: uint16(36939), + 3: uint16(36938), + 4: uint16(36947), + 5: uint16(36930), + 6: uint16(36948), + 7: uint16(36924), + 8: uint16(36949), + 9: uint16(36944), + 10: uint16(36935), + 11: uint16(36943), + 12: uint16(36942), + 13: uint16(36941), + 14: uint16(36945), + 15: uint16(36926), + 16: uint16(36929), + 17: uint16(37138), + 18: uint16(37143), + 19: uint16(37228), + 20: uint16(37226), + 21: uint16(37225), + 22: uint16(37321), + 23: uint16(37431), + 24: uint16(37463), + 25: uint16(37432), + 26: uint16(37437), + 27: uint16(37440), + 28: uint16(37438), + 29: uint16(37467), + 30: uint16(37451), + 31: uint16(37476), + 32: uint16(37457), + 33: uint16(37428), + 34: uint16(37449), + 35: uint16(37453), + 36: uint16(37445), + 37: uint16(37433), + 38: uint16(37439), + 39: uint16(37466), + 40: uint16(38296), + 41: uint16(38552), + 42: uint16(38548), + 43: uint16(38549), + 44: uint16(38605), + 45: uint16(38603), + 46: uint16(38601), + 47: uint16(38602), + 48: uint16(38647), + 49: uint16(38651), + 50: uint16(38649), + 51: uint16(38646), + 52: uint16(38742), + 53: uint16(38772), + 54: uint16(38774), + 55: uint16(38928), + 56: uint16(38929), + 57: uint16(38931), + 58: uint16(38922), + 59: uint16(38930), + 60: uint16(38924), + 61: uint16(39164), + 62: uint16(39156), + 63: uint16(39165), + 64: uint16(39166), + 65: uint16(39347), + 66: uint16(39345), + 67: uint16(39348), + 68: uint16(39649), + 69: uint16(40169), + 70: uint16(40578), + 71: uint16(40718), + 72: uint16(40723), + 73: uint16(40736), + 74: uint16(20711), + 75: uint16(20718), + 76: uint16(20709), + 77: uint16(20694), + 78: uint16(20717), + 79: uint16(20698), + 80: uint16(20693), + 81: uint16(20687), + 82: uint16(20689), + 83: uint16(20721), + 84: uint16(20686), + 85: uint16(20713), + 86: uint16(20834), + 87: uint16(20979), + 88: uint16(21123), + 89: uint16(21122), + 90: uint16(21297), + 91: uint16(21421), + 92: uint16(22014), + 93: uint16(22016), + 94: uint16(22043), + 95: uint16(22039), + 96: uint16(22013), + 97: uint16(22036), + 98: uint16(22022), + 99: uint16(22025), + 100: uint16(22029), + 101: uint16(22030), + 102: uint16(22007), + 103: uint16(22038), + 104: uint16(22047), + 105: uint16(22024), + 106: uint16(22032), + 107: uint16(22006), + 108: uint16(22296), + 109: uint16(22294), + 110: uint16(22645), + 111: uint16(22654), + 112: uint16(22659), + 113: uint16(22675), + 114: uint16(22666), + 115: uint16(22649), + 116: uint16(22661), + 117: uint16(22653), + 118: uint16(22781), + 119: uint16(22821), + 120: uint16(22818), + 121: uint16(22820), + 122: uint16(22890), + 123: uint16(22889), + 124: uint16(23265), + 125: uint16(23270), + 126: uint16(23273), + 127: uint16(23255), + 128: uint16(23254), + 129: uint16(23256), + 130: uint16(23267), + 131: uint16(23413), + 132: uint16(23518), + 133: uint16(23527), + 134: uint16(23521), + 135: uint16(23525), + 136: uint16(23526), + 137: uint16(23528), + 138: uint16(23522), + 139: uint16(23524), + 140: uint16(23519), + 141: uint16(23565), + 142: uint16(23650), + 143: uint16(23940), + 144: uint16(23943), + 145: uint16(24155), + 146: uint16(24163), + 147: uint16(24149), + 148: uint16(24151), + 149: uint16(24148), + 150: uint16(24275), + 151: uint16(24278), + 152: uint16(24330), + 153: uint16(24390), + 154: uint16(24432), + 155: uint16(24505), + 156: uint16(24903), + }, + 25: { + 0: uint16(24895), + 1: uint16(24907), + 2: uint16(24951), + 3: uint16(24930), + 4: uint16(24931), + 5: uint16(24927), + 6: uint16(24922), + 7: uint16(24920), + 8: uint16(24949), + 9: uint16(25130), + 10: uint16(25735), + 11: uint16(25688), + 12: uint16(25684), + 13: uint16(25764), + 14: uint16(25720), + 15: uint16(25695), + 16: uint16(25722), + 17: uint16(25681), + 18: uint16(25703), + 19: uint16(25652), + 20: uint16(25709), + 21: uint16(25723), + 22: uint16(25970), + 23: uint16(26017), + 24: uint16(26071), + 25: uint16(26070), + 26: uint16(26274), + 27: uint16(26280), + 28: uint16(26269), + 29: uint16(27036), + 30: uint16(27048), + 31: uint16(27029), + 32: uint16(27073), + 33: uint16(27054), + 34: uint16(27091), + 35: uint16(27083), + 36: uint16(27035), + 37: uint16(27063), + 38: uint16(27067), + 39: uint16(27051), + 40: uint16(27060), + 41: uint16(27088), + 42: uint16(27085), + 43: uint16(27053), + 44: uint16(27084), + 45: uint16(27046), + 46: uint16(27075), + 47: uint16(27043), + 48: uint16(27465), + 49: uint16(27468), + 50: uint16(27699), + 51: uint16(28467), + 52: uint16(28436), + 53: uint16(28414), + 54: uint16(28435), + 55: uint16(28404), + 56: uint16(28457), + 57: uint16(28478), + 58: uint16(28448), + 59: uint16(28460), + 60: uint16(28431), + 61: uint16(28418), + 62: uint16(28450), + 63: uint16(28415), + 64: uint16(28399), + 65: uint16(28422), + 66: uint16(28465), + 67: uint16(28472), + 68: uint16(28466), + 69: uint16(28451), + 70: uint16(28437), + 71: uint16(28459), + 72: uint16(28463), + 73: uint16(28552), + 74: uint16(28458), + 75: uint16(28396), + 76: uint16(28417), + 77: uint16(28402), + 78: uint16(28364), + 79: uint16(28407), + 80: uint16(29076), + 81: uint16(29081), + 82: uint16(29053), + 83: uint16(29066), + 84: uint16(29060), + 85: uint16(29074), + 86: uint16(29246), + 87: uint16(29330), + 88: uint16(29334), + 89: uint16(29508), + 90: uint16(29520), + 91: uint16(29796), + 92: uint16(29795), + 93: uint16(29802), + 94: uint16(29808), + 95: uint16(29805), + 96: uint16(29956), + 97: uint16(30097), + 98: uint16(30247), + 99: uint16(30221), + 100: uint16(30219), + 101: uint16(30217), + 102: uint16(30227), + 103: uint16(30433), + 104: uint16(30435), + 105: uint16(30596), + 106: uint16(30589), + 107: uint16(30591), + 108: uint16(30561), + 109: uint16(30913), + 110: uint16(30879), + 111: uint16(30887), + 112: uint16(30899), + 113: uint16(30889), + 114: uint16(30883), + 115: uint16(31118), + 116: uint16(31119), + 117: uint16(31117), + 118: uint16(31278), + 119: uint16(31281), + 120: uint16(31402), + 121: uint16(31401), + 122: uint16(31469), + 123: uint16(31471), + 124: uint16(31649), + 125: uint16(31637), + 126: uint16(31627), + 127: uint16(31605), + 128: uint16(31639), + 129: uint16(31645), + 130: uint16(31636), + 131: uint16(31631), + 132: uint16(31672), + 133: uint16(31623), + 134: uint16(31620), + 135: uint16(31929), + 136: uint16(31933), + 137: uint16(31934), + 138: uint16(32187), + 139: uint16(32176), + 140: uint16(32156), + 141: uint16(32189), + 142: uint16(32190), + 143: uint16(32160), + 144: uint16(32202), + 145: uint16(32180), + 146: uint16(32178), + 147: uint16(32177), + 148: uint16(32186), + 149: uint16(32162), + 150: uint16(32191), + 151: uint16(32181), + 152: uint16(32184), + 153: uint16(32173), + 154: uint16(32210), + 155: uint16(32199), + 156: uint16(32172), + }, + 26: { + 0: uint16(32624), + 1: uint16(32736), + 2: uint16(32737), + 3: uint16(32735), + 4: uint16(32862), + 5: uint16(32858), + 6: uint16(32903), + 7: uint16(33104), + 8: uint16(33152), + 9: uint16(33167), + 10: uint16(33160), + 11: uint16(33162), + 12: uint16(33151), + 13: uint16(33154), + 14: uint16(33255), + 15: uint16(33274), + 16: uint16(33287), + 17: uint16(33300), + 18: uint16(33310), + 19: uint16(33355), + 20: uint16(33993), + 21: uint16(33983), + 22: uint16(33990), + 23: uint16(33988), + 24: uint16(33945), + 25: uint16(33950), + 26: uint16(33970), + 27: uint16(33948), + 28: uint16(33995), + 29: uint16(33976), + 30: uint16(33984), + 31: uint16(34003), + 32: uint16(33936), + 33: uint16(33980), + 34: uint16(34001), + 35: uint16(33994), + 36: uint16(34623), + 37: uint16(34588), + 38: uint16(34619), + 39: uint16(34594), + 40: uint16(34597), + 41: uint16(34612), + 42: uint16(34584), + 43: uint16(34645), + 44: uint16(34615), + 45: uint16(34601), + 46: uint16(35059), + 47: uint16(35074), + 48: uint16(35060), + 49: uint16(35065), + 50: uint16(35064), + 51: uint16(35069), + 52: uint16(35048), + 53: uint16(35098), + 54: uint16(35055), + 55: uint16(35494), + 56: uint16(35468), + 57: uint16(35486), + 58: uint16(35491), + 59: uint16(35469), + 60: uint16(35489), + 61: uint16(35475), + 62: uint16(35492), + 63: uint16(35498), + 64: uint16(35493), + 65: uint16(35496), + 66: uint16(35480), + 67: uint16(35473), + 68: uint16(35482), + 69: uint16(35495), + 70: uint16(35946), + 71: uint16(35981), + 72: uint16(35980), + 73: uint16(36051), + 74: uint16(36049), + 75: uint16(36050), + 76: uint16(36203), + 77: uint16(36249), + 78: uint16(36245), + 79: uint16(36348), + 80: uint16(36628), + 81: uint16(36626), + 82: uint16(36629), + 83: uint16(36627), + 84: uint16(36771), + 85: uint16(36960), + 86: uint16(36952), + 87: uint16(36956), + 88: uint16(36963), + 89: uint16(36953), + 90: uint16(36958), + 91: uint16(36962), + 92: uint16(36957), + 93: uint16(36955), + 94: uint16(37145), + 95: uint16(37144), + 96: uint16(37150), + 97: uint16(37237), + 98: uint16(37240), + 99: uint16(37239), + 100: uint16(37236), + 101: uint16(37496), + 102: uint16(37504), + 103: uint16(37509), + 104: uint16(37528), + 105: uint16(37526), + 106: uint16(37499), + 107: uint16(37523), + 108: uint16(37532), + 109: uint16(37544), + 110: uint16(37500), + 111: uint16(37521), + 112: uint16(38305), + 113: uint16(38312), + 114: uint16(38313), + 115: uint16(38307), + 116: uint16(38309), + 117: uint16(38308), + 118: uint16(38553), + 119: uint16(38556), + 120: uint16(38555), + 121: uint16(38604), + 122: uint16(38610), + 123: uint16(38656), + 124: uint16(38780), + 125: uint16(38789), + 126: uint16(38902), + 127: uint16(38935), + 128: uint16(38936), + 129: uint16(39087), + 130: uint16(39089), + 131: uint16(39171), + 132: uint16(39173), + 133: uint16(39180), + 134: uint16(39177), + 135: uint16(39361), + 136: uint16(39599), + 137: uint16(39600), + 138: uint16(39654), + 139: uint16(39745), + 140: uint16(39746), + 141: uint16(40180), + 142: uint16(40182), + 143: uint16(40179), + 144: uint16(40636), + 145: uint16(40763), + 146: uint16(40778), + 147: uint16(20740), + 148: uint16(20736), + 149: uint16(20731), + 150: uint16(20725), + 151: uint16(20729), + 152: uint16(20738), + 153: uint16(20744), + 154: uint16(20745), + 155: uint16(20741), + 156: uint16(20956), + }, + 27: { + 0: uint16(21127), + 1: uint16(21128), + 2: uint16(21129), + 3: uint16(21133), + 4: uint16(21130), + 5: uint16(21232), + 6: uint16(21426), + 7: uint16(22062), + 8: uint16(22075), + 9: uint16(22073), + 10: uint16(22066), + 11: uint16(22079), + 12: uint16(22068), + 13: uint16(22057), + 14: uint16(22099), + 15: uint16(22094), + 16: uint16(22103), + 17: uint16(22132), + 18: uint16(22070), + 19: uint16(22063), + 20: uint16(22064), + 21: uint16(22656), + 22: uint16(22687), + 23: uint16(22686), + 24: uint16(22707), + 25: uint16(22684), + 26: uint16(22702), + 27: uint16(22697), + 28: uint16(22694), + 29: uint16(22893), + 30: uint16(23305), + 31: uint16(23291), + 32: uint16(23307), + 33: uint16(23285), + 34: uint16(23308), + 35: uint16(23304), + 36: uint16(23534), + 37: uint16(23532), + 38: uint16(23529), + 39: uint16(23531), + 40: uint16(23652), + 41: uint16(23653), + 42: uint16(23965), + 43: uint16(23956), + 44: uint16(24162), + 45: uint16(24159), + 46: uint16(24161), + 47: uint16(24290), + 48: uint16(24282), + 49: uint16(24287), + 50: uint16(24285), + 51: uint16(24291), + 52: uint16(24288), + 53: uint16(24392), + 54: uint16(24433), + 55: uint16(24503), + 56: uint16(24501), + 57: uint16(24950), + 58: uint16(24935), + 59: uint16(24942), + 60: uint16(24925), + 61: uint16(24917), + 62: uint16(24962), + 63: uint16(24956), + 64: uint16(24944), + 65: uint16(24939), + 66: uint16(24958), + 67: uint16(24999), + 68: uint16(24976), + 69: uint16(25003), + 70: uint16(24974), + 71: uint16(25004), + 72: uint16(24986), + 73: uint16(24996), + 74: uint16(24980), + 75: uint16(25006), + 76: uint16(25134), + 77: uint16(25705), + 78: uint16(25711), + 79: uint16(25721), + 80: uint16(25758), + 81: uint16(25778), + 82: uint16(25736), + 83: uint16(25744), + 84: uint16(25776), + 85: uint16(25765), + 86: uint16(25747), + 87: uint16(25749), + 88: uint16(25769), + 89: uint16(25746), + 90: uint16(25774), + 91: uint16(25773), + 92: uint16(25771), + 93: uint16(25754), + 94: uint16(25772), + 95: uint16(25753), + 96: uint16(25762), + 97: uint16(25779), + 98: uint16(25973), + 99: uint16(25975), + 100: uint16(25976), + 101: uint16(26286), + 102: uint16(26283), + 103: uint16(26292), + 104: uint16(26289), + 105: uint16(27171), + 106: uint16(27167), + 107: uint16(27112), + 108: uint16(27137), + 109: uint16(27166), + 110: uint16(27161), + 111: uint16(27133), + 112: uint16(27169), + 113: uint16(27155), + 114: uint16(27146), + 115: uint16(27123), + 116: uint16(27138), + 117: uint16(27141), + 118: uint16(27117), + 119: uint16(27153), + 120: uint16(27472), + 121: uint16(27470), + 122: uint16(27556), + 123: uint16(27589), + 124: uint16(27590), + 125: uint16(28479), + 126: uint16(28540), + 127: uint16(28548), + 128: uint16(28497), + 129: uint16(28518), + 130: uint16(28500), + 131: uint16(28550), + 132: uint16(28525), + 133: uint16(28507), + 134: uint16(28536), + 135: uint16(28526), + 136: uint16(28558), + 137: uint16(28538), + 138: uint16(28528), + 139: uint16(28516), + 140: uint16(28567), + 141: uint16(28504), + 142: uint16(28373), + 143: uint16(28527), + 144: uint16(28512), + 145: uint16(28511), + 146: uint16(29087), + 147: uint16(29100), + 148: uint16(29105), + 149: uint16(29096), + 150: uint16(29270), + 151: uint16(29339), + 152: uint16(29518), + 153: uint16(29527), + 154: uint16(29801), + 155: uint16(29835), + 156: uint16(29827), + }, + 28: { + 0: uint16(29822), + 1: uint16(29824), + 2: uint16(30079), + 3: uint16(30240), + 4: uint16(30249), + 5: uint16(30239), + 6: uint16(30244), + 7: uint16(30246), + 8: uint16(30241), + 9: uint16(30242), + 10: uint16(30362), + 11: uint16(30394), + 12: uint16(30436), + 13: uint16(30606), + 14: uint16(30599), + 15: uint16(30604), + 16: uint16(30609), + 17: uint16(30603), + 18: uint16(30923), + 19: uint16(30917), + 20: uint16(30906), + 21: uint16(30922), + 22: uint16(30910), + 23: uint16(30933), + 24: uint16(30908), + 25: uint16(30928), + 26: uint16(31295), + 27: uint16(31292), + 28: uint16(31296), + 29: uint16(31293), + 30: uint16(31287), + 31: uint16(31291), + 32: uint16(31407), + 33: uint16(31406), + 34: uint16(31661), + 35: uint16(31665), + 36: uint16(31684), + 37: uint16(31668), + 38: uint16(31686), + 39: uint16(31687), + 40: uint16(31681), + 41: uint16(31648), + 42: uint16(31692), + 43: uint16(31946), + 44: uint16(32224), + 45: uint16(32244), + 46: uint16(32239), + 47: uint16(32251), + 48: uint16(32216), + 49: uint16(32236), + 50: uint16(32221), + 51: uint16(32232), + 52: uint16(32227), + 53: uint16(32218), + 54: uint16(32222), + 55: uint16(32233), + 56: uint16(32158), + 57: uint16(32217), + 58: uint16(32242), + 59: uint16(32249), + 60: uint16(32629), + 61: uint16(32631), + 62: uint16(32687), + 63: uint16(32745), + 64: uint16(32806), + 65: uint16(33179), + 66: uint16(33180), + 67: uint16(33181), + 68: uint16(33184), + 69: uint16(33178), + 70: uint16(33176), + 71: uint16(34071), + 72: uint16(34109), + 73: uint16(34074), + 74: uint16(34030), + 75: uint16(34092), + 76: uint16(34093), + 77: uint16(34067), + 78: uint16(34065), + 79: uint16(34083), + 80: uint16(34081), + 81: uint16(34068), + 82: uint16(34028), + 83: uint16(34085), + 84: uint16(34047), + 85: uint16(34054), + 86: uint16(34690), + 87: uint16(34676), + 88: uint16(34678), + 89: uint16(34656), + 90: uint16(34662), + 91: uint16(34680), + 92: uint16(34664), + 93: uint16(34649), + 94: uint16(34647), + 95: uint16(34636), + 96: uint16(34643), + 97: uint16(34907), + 98: uint16(34909), + 99: uint16(35088), + 100: uint16(35079), + 101: uint16(35090), + 102: uint16(35091), + 103: uint16(35093), + 104: uint16(35082), + 105: uint16(35516), + 106: uint16(35538), + 107: uint16(35527), + 108: uint16(35524), + 109: uint16(35477), + 110: uint16(35531), + 111: uint16(35576), + 112: uint16(35506), + 113: uint16(35529), + 114: uint16(35522), + 115: uint16(35519), + 116: uint16(35504), + 117: uint16(35542), + 118: uint16(35533), + 119: uint16(35510), + 120: uint16(35513), + 121: uint16(35547), + 122: uint16(35916), + 123: uint16(35918), + 124: uint16(35948), + 125: uint16(36064), + 126: uint16(36062), + 127: uint16(36070), + 128: uint16(36068), + 129: uint16(36076), + 130: uint16(36077), + 131: uint16(36066), + 132: uint16(36067), + 133: uint16(36060), + 134: uint16(36074), + 135: uint16(36065), + 136: uint16(36205), + 137: uint16(36255), + 138: uint16(36259), + 139: uint16(36395), + 140: uint16(36368), + 141: uint16(36381), + 142: uint16(36386), + 143: uint16(36367), + 144: uint16(36393), + 145: uint16(36383), + 146: uint16(36385), + 147: uint16(36382), + 148: uint16(36538), + 149: uint16(36637), + 150: uint16(36635), + 151: uint16(36639), + 152: uint16(36649), + 153: uint16(36646), + 154: uint16(36650), + 155: uint16(36636), + 156: uint16(36638), + }, + 29: { + 0: uint16(36645), + 1: uint16(36969), + 2: uint16(36974), + 3: uint16(36968), + 4: uint16(36973), + 5: uint16(36983), + 6: uint16(37168), + 7: uint16(37165), + 8: uint16(37159), + 9: uint16(37169), + 10: uint16(37255), + 11: uint16(37257), + 12: uint16(37259), + 13: uint16(37251), + 14: uint16(37573), + 15: uint16(37563), + 16: uint16(37559), + 17: uint16(37610), + 18: uint16(37548), + 19: uint16(37604), + 20: uint16(37569), + 21: uint16(37555), + 22: uint16(37564), + 23: uint16(37586), + 24: uint16(37575), + 25: uint16(37616), + 26: uint16(37554), + 27: uint16(38317), + 28: uint16(38321), + 29: uint16(38660), + 30: uint16(38662), + 31: uint16(38663), + 32: uint16(38665), + 33: uint16(38752), + 34: uint16(38797), + 35: uint16(38795), + 36: uint16(38799), + 37: uint16(38945), + 38: uint16(38955), + 39: uint16(38940), + 40: uint16(39091), + 41: uint16(39178), + 42: uint16(39187), + 43: uint16(39186), + 44: uint16(39192), + 45: uint16(39389), + 46: uint16(39376), + 47: uint16(39391), + 48: uint16(39387), + 49: uint16(39377), + 50: uint16(39381), + 51: uint16(39378), + 52: uint16(39385), + 53: uint16(39607), + 54: uint16(39662), + 55: uint16(39663), + 56: uint16(39719), + 57: uint16(39749), + 58: uint16(39748), + 59: uint16(39799), + 60: uint16(39791), + 61: uint16(40198), + 62: uint16(40201), + 63: uint16(40195), + 64: uint16(40617), + 65: uint16(40638), + 66: uint16(40654), + 67: uint16(22696), + 68: uint16(40786), + 69: uint16(20754), + 70: uint16(20760), + 71: uint16(20756), + 72: uint16(20752), + 73: uint16(20757), + 74: uint16(20864), + 75: uint16(20906), + 76: uint16(20957), + 77: uint16(21137), + 78: uint16(21139), + 79: uint16(21235), + 80: uint16(22105), + 81: uint16(22123), + 82: uint16(22137), + 83: uint16(22121), + 84: uint16(22116), + 85: uint16(22136), + 86: uint16(22122), + 87: uint16(22120), + 88: uint16(22117), + 89: uint16(22129), + 90: uint16(22127), + 91: uint16(22124), + 92: uint16(22114), + 93: uint16(22134), + 94: uint16(22721), + 95: uint16(22718), + 96: uint16(22727), + 97: uint16(22725), + 98: uint16(22894), + 99: uint16(23325), + 100: uint16(23348), + 101: uint16(23416), + 102: uint16(23536), + 103: uint16(23566), + 104: uint16(24394), + 105: uint16(25010), + 106: uint16(24977), + 107: uint16(25001), + 108: uint16(24970), + 109: uint16(25037), + 110: uint16(25014), + 111: uint16(25022), + 112: uint16(25034), + 113: uint16(25032), + 114: uint16(25136), + 115: uint16(25797), + 116: uint16(25793), + 117: uint16(25803), + 118: uint16(25787), + 119: uint16(25788), + 120: uint16(25818), + 121: uint16(25796), + 122: uint16(25799), + 123: uint16(25794), + 124: uint16(25805), + 125: uint16(25791), + 126: uint16(25810), + 127: uint16(25812), + 128: uint16(25790), + 129: uint16(25972), + 130: uint16(26310), + 131: uint16(26313), + 132: uint16(26297), + 133: uint16(26308), + 134: uint16(26311), + 135: uint16(26296), + 136: uint16(27197), + 137: uint16(27192), + 138: uint16(27194), + 139: uint16(27225), + 140: uint16(27243), + 141: uint16(27224), + 142: uint16(27193), + 143: uint16(27204), + 144: uint16(27234), + 145: uint16(27233), + 146: uint16(27211), + 147: uint16(27207), + 148: uint16(27189), + 149: uint16(27231), + 150: uint16(27208), + 151: uint16(27481), + 152: uint16(27511), + 153: uint16(27653), + 154: uint16(28610), + 155: uint16(28593), + 156: uint16(28577), + }, + 30: { + 0: uint16(28611), + 1: uint16(28580), + 2: uint16(28609), + 3: uint16(28583), + 4: uint16(28595), + 5: uint16(28608), + 6: uint16(28601), + 7: uint16(28598), + 8: uint16(28582), + 9: uint16(28576), + 10: uint16(28596), + 11: uint16(29118), + 12: uint16(29129), + 13: uint16(29136), + 14: uint16(29138), + 15: uint16(29128), + 16: uint16(29141), + 17: uint16(29113), + 18: uint16(29134), + 19: uint16(29145), + 20: uint16(29148), + 21: uint16(29123), + 22: uint16(29124), + 23: uint16(29544), + 24: uint16(29852), + 25: uint16(29859), + 26: uint16(29848), + 27: uint16(29855), + 28: uint16(29854), + 29: uint16(29922), + 30: uint16(29964), + 31: uint16(29965), + 32: uint16(30260), + 33: uint16(30264), + 34: uint16(30266), + 35: uint16(30439), + 36: uint16(30437), + 37: uint16(30624), + 38: uint16(30622), + 39: uint16(30623), + 40: uint16(30629), + 41: uint16(30952), + 42: uint16(30938), + 43: uint16(30956), + 44: uint16(30951), + 45: uint16(31142), + 46: uint16(31309), + 47: uint16(31310), + 48: uint16(31302), + 49: uint16(31308), + 50: uint16(31307), + 51: uint16(31418), + 52: uint16(31705), + 53: uint16(31761), + 54: uint16(31689), + 55: uint16(31716), + 56: uint16(31707), + 57: uint16(31713), + 58: uint16(31721), + 59: uint16(31718), + 60: uint16(31957), + 61: uint16(31958), + 62: uint16(32266), + 63: uint16(32273), + 64: uint16(32264), + 65: uint16(32283), + 66: uint16(32291), + 67: uint16(32286), + 68: uint16(32285), + 69: uint16(32265), + 70: uint16(32272), + 71: uint16(32633), + 72: uint16(32690), + 73: uint16(32752), + 74: uint16(32753), + 75: uint16(32750), + 76: uint16(32808), + 77: uint16(33203), + 78: uint16(33193), + 79: uint16(33192), + 80: uint16(33275), + 81: uint16(33288), + 82: uint16(33368), + 83: uint16(33369), + 84: uint16(34122), + 85: uint16(34137), + 86: uint16(34120), + 87: uint16(34152), + 88: uint16(34153), + 89: uint16(34115), + 90: uint16(34121), + 91: uint16(34157), + 92: uint16(34154), + 93: uint16(34142), + 94: uint16(34691), + 95: uint16(34719), + 96: uint16(34718), + 97: uint16(34722), + 98: uint16(34701), + 99: uint16(34913), + 100: uint16(35114), + 101: uint16(35122), + 102: uint16(35109), + 103: uint16(35115), + 104: uint16(35105), + 105: uint16(35242), + 106: uint16(35238), + 107: uint16(35558), + 108: uint16(35578), + 109: uint16(35563), + 110: uint16(35569), + 111: uint16(35584), + 112: uint16(35548), + 113: uint16(35559), + 114: uint16(35566), + 115: uint16(35582), + 116: uint16(35585), + 117: uint16(35586), + 118: uint16(35575), + 119: uint16(35565), + 120: uint16(35571), + 121: uint16(35574), + 122: uint16(35580), + 123: uint16(35947), + 124: uint16(35949), + 125: uint16(35987), + 126: uint16(36084), + 127: uint16(36420), + 128: uint16(36401), + 129: uint16(36404), + 130: uint16(36418), + 131: uint16(36409), + 132: uint16(36405), + 133: uint16(36667), + 134: uint16(36655), + 135: uint16(36664), + 136: uint16(36659), + 137: uint16(36776), + 138: uint16(36774), + 139: uint16(36981), + 140: uint16(36980), + 141: uint16(36984), + 142: uint16(36978), + 143: uint16(36988), + 144: uint16(36986), + 145: uint16(37172), + 146: uint16(37266), + 147: uint16(37664), + 148: uint16(37686), + 149: uint16(37624), + 150: uint16(37683), + 151: uint16(37679), + 152: uint16(37666), + 153: uint16(37628), + 154: uint16(37675), + 155: uint16(37636), + 156: uint16(37658), + }, + 31: { + 0: uint16(37648), + 1: uint16(37670), + 2: uint16(37665), + 3: uint16(37653), + 4: uint16(37678), + 5: uint16(37657), + 6: uint16(38331), + 7: uint16(38567), + 8: uint16(38568), + 9: uint16(38570), + 10: uint16(38613), + 11: uint16(38670), + 12: uint16(38673), + 13: uint16(38678), + 14: uint16(38669), + 15: uint16(38675), + 16: uint16(38671), + 17: uint16(38747), + 18: uint16(38748), + 19: uint16(38758), + 20: uint16(38808), + 21: uint16(38960), + 22: uint16(38968), + 23: uint16(38971), + 24: uint16(38967), + 25: uint16(38957), + 26: uint16(38969), + 27: uint16(38948), + 28: uint16(39184), + 29: uint16(39208), + 30: uint16(39198), + 31: uint16(39195), + 32: uint16(39201), + 33: uint16(39194), + 34: uint16(39405), + 35: uint16(39394), + 36: uint16(39409), + 37: uint16(39608), + 38: uint16(39612), + 39: uint16(39675), + 40: uint16(39661), + 41: uint16(39720), + 42: uint16(39825), + 43: uint16(40213), + 44: uint16(40227), + 45: uint16(40230), + 46: uint16(40232), + 47: uint16(40210), + 48: uint16(40219), + 49: uint16(40664), + 50: uint16(40660), + 51: uint16(40845), + 52: uint16(40860), + 53: uint16(20778), + 54: uint16(20767), + 55: uint16(20769), + 56: uint16(20786), + 57: uint16(21237), + 58: uint16(22158), + 59: uint16(22144), + 60: uint16(22160), + 61: uint16(22149), + 62: uint16(22151), + 63: uint16(22159), + 64: uint16(22741), + 65: uint16(22739), + 66: uint16(22737), + 67: uint16(22734), + 68: uint16(23344), + 69: uint16(23338), + 70: uint16(23332), + 71: uint16(23418), + 72: uint16(23607), + 73: uint16(23656), + 74: uint16(23996), + 75: uint16(23994), + 76: uint16(23997), + 77: uint16(23992), + 78: uint16(24171), + 79: uint16(24396), + 80: uint16(24509), + 81: uint16(25033), + 82: uint16(25026), + 83: uint16(25031), + 84: uint16(25062), + 85: uint16(25035), + 86: uint16(25138), + 87: uint16(25140), + 88: uint16(25806), + 89: uint16(25802), + 90: uint16(25816), + 91: uint16(25824), + 92: uint16(25840), + 93: uint16(25830), + 94: uint16(25836), + 95: uint16(25841), + 96: uint16(25826), + 97: uint16(25837), + 98: uint16(25986), + 99: uint16(25987), + 100: uint16(26329), + 101: uint16(26326), + 102: uint16(27264), + 103: uint16(27284), + 104: uint16(27268), + 105: uint16(27298), + 106: uint16(27292), + 107: uint16(27355), + 108: uint16(27299), + 109: uint16(27262), + 110: uint16(27287), + 111: uint16(27280), + 112: uint16(27296), + 113: uint16(27484), + 114: uint16(27566), + 115: uint16(27610), + 116: uint16(27656), + 117: uint16(28632), + 118: uint16(28657), + 119: uint16(28639), + 120: uint16(28640), + 121: uint16(28635), + 122: uint16(28644), + 123: uint16(28651), + 124: uint16(28655), + 125: uint16(28544), + 126: uint16(28652), + 127: uint16(28641), + 128: uint16(28649), + 129: uint16(28629), + 130: uint16(28654), + 131: uint16(28656), + 132: uint16(29159), + 133: uint16(29151), + 134: uint16(29166), + 135: uint16(29158), + 136: uint16(29157), + 137: uint16(29165), + 138: uint16(29164), + 139: uint16(29172), + 140: uint16(29152), + 141: uint16(29237), + 142: uint16(29254), + 143: uint16(29552), + 144: uint16(29554), + 145: uint16(29865), + 146: uint16(29872), + 147: uint16(29862), + 148: uint16(29864), + 149: uint16(30278), + 150: uint16(30274), + 151: uint16(30284), + 152: uint16(30442), + 153: uint16(30643), + 154: uint16(30634), + 155: uint16(30640), + 156: uint16(30636), + }, + 32: { + 0: uint16(30631), + 1: uint16(30637), + 2: uint16(30703), + 3: uint16(30967), + 4: uint16(30970), + 5: uint16(30964), + 6: uint16(30959), + 7: uint16(30977), + 8: uint16(31143), + 9: uint16(31146), + 10: uint16(31319), + 11: uint16(31423), + 12: uint16(31751), + 13: uint16(31757), + 14: uint16(31742), + 15: uint16(31735), + 16: uint16(31756), + 17: uint16(31712), + 18: uint16(31968), + 19: uint16(31964), + 20: uint16(31966), + 21: uint16(31970), + 22: uint16(31967), + 23: uint16(31961), + 24: uint16(31965), + 25: uint16(32302), + 26: uint16(32318), + 27: uint16(32326), + 28: uint16(32311), + 29: uint16(32306), + 30: uint16(32323), + 31: uint16(32299), + 32: uint16(32317), + 33: uint16(32305), + 34: uint16(32325), + 35: uint16(32321), + 36: uint16(32308), + 37: uint16(32313), + 38: uint16(32328), + 39: uint16(32309), + 40: uint16(32319), + 41: uint16(32303), + 42: uint16(32580), + 43: uint16(32755), + 44: uint16(32764), + 45: uint16(32881), + 46: uint16(32882), + 47: uint16(32880), + 48: uint16(32879), + 49: uint16(32883), + 50: uint16(33222), + 51: uint16(33219), + 52: uint16(33210), + 53: uint16(33218), + 54: uint16(33216), + 55: uint16(33215), + 56: uint16(33213), + 57: uint16(33225), + 58: uint16(33214), + 59: uint16(33256), + 60: uint16(33289), + 61: uint16(33393), + 62: uint16(34218), + 63: uint16(34180), + 64: uint16(34174), + 65: uint16(34204), + 66: uint16(34193), + 67: uint16(34196), + 68: uint16(34223), + 69: uint16(34203), + 70: uint16(34183), + 71: uint16(34216), + 72: uint16(34186), + 73: uint16(34407), + 74: uint16(34752), + 75: uint16(34769), + 76: uint16(34739), + 77: uint16(34770), + 78: uint16(34758), + 79: uint16(34731), + 80: uint16(34747), + 81: uint16(34746), + 82: uint16(34760), + 83: uint16(34763), + 84: uint16(35131), + 85: uint16(35126), + 86: uint16(35140), + 87: uint16(35128), + 88: uint16(35133), + 89: uint16(35244), + 90: uint16(35598), + 91: uint16(35607), + 92: uint16(35609), + 93: uint16(35611), + 94: uint16(35594), + 95: uint16(35616), + 96: uint16(35613), + 97: uint16(35588), + 98: uint16(35600), + 99: uint16(35905), + 100: uint16(35903), + 101: uint16(35955), + 102: uint16(36090), + 103: uint16(36093), + 104: uint16(36092), + 105: uint16(36088), + 106: uint16(36091), + 107: uint16(36264), + 108: uint16(36425), + 109: uint16(36427), + 110: uint16(36424), + 111: uint16(36426), + 112: uint16(36676), + 113: uint16(36670), + 114: uint16(36674), + 115: uint16(36677), + 116: uint16(36671), + 117: uint16(36991), + 118: uint16(36989), + 119: uint16(36996), + 120: uint16(36993), + 121: uint16(36994), + 122: uint16(36992), + 123: uint16(37177), + 124: uint16(37283), + 125: uint16(37278), + 126: uint16(37276), + 127: uint16(37709), + 128: uint16(37762), + 129: uint16(37672), + 130: uint16(37749), + 131: uint16(37706), + 132: uint16(37733), + 133: uint16(37707), + 134: uint16(37656), + 135: uint16(37758), + 136: uint16(37740), + 137: uint16(37723), + 138: uint16(37744), + 139: uint16(37722), + 140: uint16(37716), + 141: uint16(38346), + 142: uint16(38347), + 143: uint16(38348), + 144: uint16(38344), + 145: uint16(38342), + 146: uint16(38577), + 147: uint16(38584), + 148: uint16(38614), + 149: uint16(38684), + 150: uint16(38686), + 151: uint16(38816), + 152: uint16(38867), + 153: uint16(38982), + 154: uint16(39094), + 155: uint16(39221), + 156: uint16(39425), + }, + 33: { + 0: uint16(39423), + 1: uint16(39854), + 2: uint16(39851), + 3: uint16(39850), + 4: uint16(39853), + 5: uint16(40251), + 6: uint16(40255), + 7: uint16(40587), + 8: uint16(40655), + 9: uint16(40670), + 10: uint16(40668), + 11: uint16(40669), + 12: uint16(40667), + 13: uint16(40766), + 14: uint16(40779), + 15: uint16(21474), + 16: uint16(22165), + 17: uint16(22190), + 18: uint16(22745), + 19: uint16(22744), + 20: uint16(23352), + 21: uint16(24413), + 22: uint16(25059), + 23: uint16(25139), + 24: uint16(25844), + 25: uint16(25842), + 26: uint16(25854), + 27: uint16(25862), + 28: uint16(25850), + 29: uint16(25851), + 30: uint16(25847), + 31: uint16(26039), + 32: uint16(26332), + 33: uint16(26406), + 34: uint16(27315), + 35: uint16(27308), + 36: uint16(27331), + 37: uint16(27323), + 38: uint16(27320), + 39: uint16(27330), + 40: uint16(27310), + 41: uint16(27311), + 42: uint16(27487), + 43: uint16(27512), + 44: uint16(27567), + 45: uint16(28681), + 46: uint16(28683), + 47: uint16(28670), + 48: uint16(28678), + 49: uint16(28666), + 50: uint16(28689), + 51: uint16(28687), + 52: uint16(29179), + 53: uint16(29180), + 54: uint16(29182), + 55: uint16(29176), + 56: uint16(29559), + 57: uint16(29557), + 58: uint16(29863), + 59: uint16(29887), + 60: uint16(29973), + 61: uint16(30294), + 62: uint16(30296), + 63: uint16(30290), + 64: uint16(30653), + 65: uint16(30655), + 66: uint16(30651), + 67: uint16(30652), + 68: uint16(30990), + 69: uint16(31150), + 70: uint16(31329), + 71: uint16(31330), + 72: uint16(31328), + 73: uint16(31428), + 74: uint16(31429), + 75: uint16(31787), + 76: uint16(31783), + 77: uint16(31786), + 78: uint16(31774), + 79: uint16(31779), + 80: uint16(31777), + 81: uint16(31975), + 82: uint16(32340), + 83: uint16(32341), + 84: uint16(32350), + 85: uint16(32346), + 86: uint16(32353), + 87: uint16(32338), + 88: uint16(32345), + 89: uint16(32584), + 90: uint16(32761), + 91: uint16(32763), + 92: uint16(32887), + 93: uint16(32886), + 94: uint16(33229), + 95: uint16(33231), + 96: uint16(33290), + 97: uint16(34255), + 98: uint16(34217), + 99: uint16(34253), + 100: uint16(34256), + 101: uint16(34249), + 102: uint16(34224), + 103: uint16(34234), + 104: uint16(34233), + 105: uint16(34214), + 106: uint16(34799), + 107: uint16(34796), + 108: uint16(34802), + 109: uint16(34784), + 110: uint16(35206), + 111: uint16(35250), + 112: uint16(35316), + 113: uint16(35624), + 114: uint16(35641), + 115: uint16(35628), + 116: uint16(35627), + 117: uint16(35920), + 118: uint16(36101), + 119: uint16(36441), + 120: uint16(36451), + 121: uint16(36454), + 122: uint16(36452), + 123: uint16(36447), + 124: uint16(36437), + 125: uint16(36544), + 126: uint16(36681), + 127: uint16(36685), + 128: uint16(36999), + 129: uint16(36995), + 130: uint16(37000), + 131: uint16(37291), + 132: uint16(37292), + 133: uint16(37328), + 134: uint16(37780), + 135: uint16(37770), + 136: uint16(37782), + 137: uint16(37794), + 138: uint16(37811), + 139: uint16(37806), + 140: uint16(37804), + 141: uint16(37808), + 142: uint16(37784), + 143: uint16(37786), + 144: uint16(37783), + 145: uint16(38356), + 146: uint16(38358), + 147: uint16(38352), + 148: uint16(38357), + 149: uint16(38626), + 150: uint16(38620), + 151: uint16(38617), + 152: uint16(38619), + 153: uint16(38622), + 154: uint16(38692), + 155: uint16(38819), + 156: uint16(38822), + }, + 34: { + 0: uint16(38829), + 1: uint16(38905), + 2: uint16(38989), + 3: uint16(38991), + 4: uint16(38988), + 5: uint16(38990), + 6: uint16(38995), + 7: uint16(39098), + 8: uint16(39230), + 9: uint16(39231), + 10: uint16(39229), + 11: uint16(39214), + 12: uint16(39333), + 13: uint16(39438), + 14: uint16(39617), + 15: uint16(39683), + 16: uint16(39686), + 17: uint16(39759), + 18: uint16(39758), + 19: uint16(39757), + 20: uint16(39882), + 21: uint16(39881), + 22: uint16(39933), + 23: uint16(39880), + 24: uint16(39872), + 25: uint16(40273), + 26: uint16(40285), + 27: uint16(40288), + 28: uint16(40672), + 29: uint16(40725), + 30: uint16(40748), + 31: uint16(20787), + 32: uint16(22181), + 33: uint16(22750), + 34: uint16(22751), + 35: uint16(22754), + 36: uint16(23541), + 37: uint16(40848), + 38: uint16(24300), + 39: uint16(25074), + 40: uint16(25079), + 41: uint16(25078), + 42: uint16(25077), + 43: uint16(25856), + 44: uint16(25871), + 45: uint16(26336), + 46: uint16(26333), + 47: uint16(27365), + 48: uint16(27357), + 49: uint16(27354), + 50: uint16(27347), + 51: uint16(28699), + 52: uint16(28703), + 53: uint16(28712), + 54: uint16(28698), + 55: uint16(28701), + 56: uint16(28693), + 57: uint16(28696), + 58: uint16(29190), + 59: uint16(29197), + 60: uint16(29272), + 61: uint16(29346), + 62: uint16(29560), + 63: uint16(29562), + 64: uint16(29885), + 65: uint16(29898), + 66: uint16(29923), + 67: uint16(30087), + 68: uint16(30086), + 69: uint16(30303), + 70: uint16(30305), + 71: uint16(30663), + 72: uint16(31001), + 73: uint16(31153), + 74: uint16(31339), + 75: uint16(31337), + 76: uint16(31806), + 77: uint16(31807), + 78: uint16(31800), + 79: uint16(31805), + 80: uint16(31799), + 81: uint16(31808), + 82: uint16(32363), + 83: uint16(32365), + 84: uint16(32377), + 85: uint16(32361), + 86: uint16(32362), + 87: uint16(32645), + 88: uint16(32371), + 89: uint16(32694), + 90: uint16(32697), + 91: uint16(32696), + 92: uint16(33240), + 93: uint16(34281), + 94: uint16(34269), + 95: uint16(34282), + 96: uint16(34261), + 97: uint16(34276), + 98: uint16(34277), + 99: uint16(34295), + 100: uint16(34811), + 101: uint16(34821), + 102: uint16(34829), + 103: uint16(34809), + 104: uint16(34814), + 105: uint16(35168), + 106: uint16(35167), + 107: uint16(35158), + 108: uint16(35166), + 109: uint16(35649), + 110: uint16(35676), + 111: uint16(35672), + 112: uint16(35657), + 113: uint16(35674), + 114: uint16(35662), + 115: uint16(35663), + 116: uint16(35654), + 117: uint16(35673), + 118: uint16(36104), + 119: uint16(36106), + 120: uint16(36476), + 121: uint16(36466), + 122: uint16(36487), + 123: uint16(36470), + 124: uint16(36460), + 125: uint16(36474), + 126: uint16(36468), + 127: uint16(36692), + 128: uint16(36686), + 129: uint16(36781), + 130: uint16(37002), + 131: uint16(37003), + 132: uint16(37297), + 133: uint16(37294), + 134: uint16(37857), + 135: uint16(37841), + 136: uint16(37855), + 137: uint16(37827), + 138: uint16(37832), + 139: uint16(37852), + 140: uint16(37853), + 141: uint16(37846), + 142: uint16(37858), + 143: uint16(37837), + 144: uint16(37848), + 145: uint16(37860), + 146: uint16(37847), + 147: uint16(37864), + 148: uint16(38364), + 149: uint16(38580), + 150: uint16(38627), + 151: uint16(38698), + 152: uint16(38695), + 153: uint16(38753), + 154: uint16(38876), + 155: uint16(38907), + 156: uint16(39006), + }, + 35: { + 0: uint16(39000), + 1: uint16(39003), + 2: uint16(39100), + 3: uint16(39237), + 4: uint16(39241), + 5: uint16(39446), + 6: uint16(39449), + 7: uint16(39693), + 8: uint16(39912), + 9: uint16(39911), + 10: uint16(39894), + 11: uint16(39899), + 12: uint16(40329), + 13: uint16(40289), + 14: uint16(40306), + 15: uint16(40298), + 16: uint16(40300), + 17: uint16(40594), + 18: uint16(40599), + 19: uint16(40595), + 20: uint16(40628), + 21: uint16(21240), + 22: uint16(22184), + 23: uint16(22199), + 24: uint16(22198), + 25: uint16(22196), + 26: uint16(22204), + 27: uint16(22756), + 28: uint16(23360), + 29: uint16(23363), + 30: uint16(23421), + 31: uint16(23542), + 32: uint16(24009), + 33: uint16(25080), + 34: uint16(25082), + 35: uint16(25880), + 36: uint16(25876), + 37: uint16(25881), + 38: uint16(26342), + 39: uint16(26407), + 40: uint16(27372), + 41: uint16(28734), + 42: uint16(28720), + 43: uint16(28722), + 44: uint16(29200), + 45: uint16(29563), + 46: uint16(29903), + 47: uint16(30306), + 48: uint16(30309), + 49: uint16(31014), + 50: uint16(31018), + 51: uint16(31020), + 52: uint16(31019), + 53: uint16(31431), + 54: uint16(31478), + 55: uint16(31820), + 56: uint16(31811), + 57: uint16(31821), + 58: uint16(31983), + 59: uint16(31984), + 60: uint16(36782), + 61: uint16(32381), + 62: uint16(32380), + 63: uint16(32386), + 64: uint16(32588), + 65: uint16(32768), + 66: uint16(33242), + 67: uint16(33382), + 68: uint16(34299), + 69: uint16(34297), + 70: uint16(34321), + 71: uint16(34298), + 72: uint16(34310), + 73: uint16(34315), + 74: uint16(34311), + 75: uint16(34314), + 76: uint16(34836), + 77: uint16(34837), + 78: uint16(35172), + 79: uint16(35258), + 80: uint16(35320), + 81: uint16(35696), + 82: uint16(35692), + 83: uint16(35686), + 84: uint16(35695), + 85: uint16(35679), + 86: uint16(35691), + 87: uint16(36111), + 88: uint16(36109), + 89: uint16(36489), + 90: uint16(36481), + 91: uint16(36485), + 92: uint16(36482), + 93: uint16(37300), + 94: uint16(37323), + 95: uint16(37912), + 96: uint16(37891), + 97: uint16(37885), + 98: uint16(38369), + 99: uint16(38704), + 100: uint16(39108), + 101: uint16(39250), + 102: uint16(39249), + 103: uint16(39336), + 104: uint16(39467), + 105: uint16(39472), + 106: uint16(39479), + 107: uint16(39477), + 108: uint16(39955), + 109: uint16(39949), + 110: uint16(40569), + 111: uint16(40629), + 112: uint16(40680), + 113: uint16(40751), + 114: uint16(40799), + 115: uint16(40803), + 116: uint16(40801), + 117: uint16(20791), + 118: uint16(20792), + 119: uint16(22209), + 120: uint16(22208), + 121: uint16(22210), + 122: uint16(22804), + 123: uint16(23660), + 124: uint16(24013), + 125: uint16(25084), + 126: uint16(25086), + 127: uint16(25885), + 128: uint16(25884), + 129: uint16(26005), + 130: uint16(26345), + 131: uint16(27387), + 132: uint16(27396), + 133: uint16(27386), + 134: uint16(27570), + 135: uint16(28748), + 136: uint16(29211), + 137: uint16(29351), + 138: uint16(29910), + 139: uint16(29908), + 140: uint16(30313), + 141: uint16(30675), + 142: uint16(31824), + 143: uint16(32399), + 144: uint16(32396), + 145: uint16(32700), + 146: uint16(34327), + 147: uint16(34349), + 148: uint16(34330), + 149: uint16(34851), + 150: uint16(34850), + 151: uint16(34849), + 152: uint16(34847), + 153: uint16(35178), + 154: uint16(35180), + 155: uint16(35261), + 156: uint16(35700), + }, + 36: { + 0: uint16(35703), + 1: uint16(35709), + 2: uint16(36115), + 3: uint16(36490), + 4: uint16(36493), + 5: uint16(36491), + 6: uint16(36703), + 7: uint16(36783), + 8: uint16(37306), + 9: uint16(37934), + 10: uint16(37939), + 11: uint16(37941), + 12: uint16(37946), + 13: uint16(37944), + 14: uint16(37938), + 15: uint16(37931), + 16: uint16(38370), + 17: uint16(38712), + 18: uint16(38713), + 19: uint16(38706), + 20: uint16(38911), + 21: uint16(39015), + 22: uint16(39013), + 23: uint16(39255), + 24: uint16(39493), + 25: uint16(39491), + 26: uint16(39488), + 27: uint16(39486), + 28: uint16(39631), + 29: uint16(39764), + 30: uint16(39761), + 31: uint16(39981), + 32: uint16(39973), + 33: uint16(40367), + 34: uint16(40372), + 35: uint16(40386), + 36: uint16(40376), + 37: uint16(40605), + 38: uint16(40687), + 39: uint16(40729), + 40: uint16(40796), + 41: uint16(40806), + 42: uint16(40807), + 43: uint16(20796), + 44: uint16(20795), + 45: uint16(22216), + 46: uint16(22218), + 47: uint16(22217), + 48: uint16(23423), + 49: uint16(24020), + 50: uint16(24018), + 51: uint16(24398), + 52: uint16(25087), + 53: uint16(25892), + 54: uint16(27402), + 55: uint16(27489), + 56: uint16(28753), + 57: uint16(28760), + 58: uint16(29568), + 59: uint16(29924), + 60: uint16(30090), + 61: uint16(30318), + 62: uint16(30316), + 63: uint16(31155), + 64: uint16(31840), + 65: uint16(31839), + 66: uint16(32894), + 67: uint16(32893), + 68: uint16(33247), + 69: uint16(35186), + 70: uint16(35183), + 71: uint16(35324), + 72: uint16(35712), + 73: uint16(36118), + 74: uint16(36119), + 75: uint16(36497), + 76: uint16(36499), + 77: uint16(36705), + 78: uint16(37192), + 79: uint16(37956), + 80: uint16(37969), + 81: uint16(37970), + 82: uint16(38717), + 83: uint16(38718), + 84: uint16(38851), + 85: uint16(38849), + 86: uint16(39019), + 87: uint16(39253), + 88: uint16(39509), + 89: uint16(39501), + 90: uint16(39634), + 91: uint16(39706), + 92: uint16(40009), + 93: uint16(39985), + 94: uint16(39998), + 95: uint16(39995), + 96: uint16(40403), + 97: uint16(40407), + 98: uint16(40756), + 99: uint16(40812), + 100: uint16(40810), + 101: uint16(40852), + 102: uint16(22220), + 103: uint16(24022), + 104: uint16(25088), + 105: uint16(25891), + 106: uint16(25899), + 107: uint16(25898), + 108: uint16(26348), + 109: uint16(27408), + 110: uint16(29914), + 111: uint16(31434), + 112: uint16(31844), + 113: uint16(31843), + 114: uint16(31845), + 115: uint16(32403), + 116: uint16(32406), + 117: uint16(32404), + 118: uint16(33250), + 119: uint16(34360), + 120: uint16(34367), + 121: uint16(34865), + 122: uint16(35722), + 123: uint16(37008), + 124: uint16(37007), + 125: uint16(37987), + 126: uint16(37984), + 127: uint16(37988), + 128: uint16(38760), + 129: uint16(39023), + 130: uint16(39260), + 131: uint16(39514), + 132: uint16(39515), + 133: uint16(39511), + 134: uint16(39635), + 135: uint16(39636), + 136: uint16(39633), + 137: uint16(40020), + 138: uint16(40023), + 139: uint16(40022), + 140: uint16(40421), + 141: uint16(40607), + 142: uint16(40692), + 143: uint16(22225), + 144: uint16(22761), + 145: uint16(25900), + 146: uint16(28766), + 147: uint16(30321), + 148: uint16(30322), + 149: uint16(30679), + 150: uint16(32592), + 151: uint16(32648), + 152: uint16(34870), + 153: uint16(34873), + 154: uint16(34914), + 155: uint16(35731), + 156: uint16(35730), + }, + 37: { + 0: uint16(35734), + 1: uint16(33399), + 2: uint16(36123), + 3: uint16(37312), + 4: uint16(37994), + 5: uint16(38722), + 6: uint16(38728), + 7: uint16(38724), + 8: uint16(38854), + 9: uint16(39024), + 10: uint16(39519), + 11: uint16(39714), + 12: uint16(39768), + 13: uint16(40031), + 14: uint16(40441), + 15: uint16(40442), + 16: uint16(40572), + 17: uint16(40573), + 18: uint16(40711), + 19: uint16(40823), + 20: uint16(40818), + 21: uint16(24307), + 22: uint16(27414), + 23: uint16(28771), + 24: uint16(31852), + 25: uint16(31854), + 26: uint16(34875), + 27: uint16(35264), + 28: uint16(36513), + 29: uint16(37313), + 30: uint16(38002), + 31: uint16(38000), + 32: uint16(39025), + 33: uint16(39262), + 34: uint16(39638), + 35: uint16(39715), + 36: uint16(40652), + 37: uint16(28772), + 38: uint16(30682), + 39: uint16(35738), + 40: uint16(38007), + 41: uint16(38857), + 42: uint16(39522), + 43: uint16(39525), + 44: uint16(32412), + 45: uint16(35740), + 46: uint16(36522), + 47: uint16(37317), + 48: uint16(38013), + 49: uint16(38014), + 50: uint16(38012), + 51: uint16(40055), + 52: uint16(40056), + 53: uint16(40695), + 54: uint16(35924), + 55: uint16(38015), + 56: uint16(40474), + 57: uint16(29224), + 58: uint16(39530), + 59: uint16(39729), + 60: uint16(40475), + 61: uint16(40478), + 62: uint16(31858), + 63: uint16(9312), + 64: uint16(9313), + 65: uint16(9314), + 66: uint16(9315), + 67: uint16(9316), + 68: uint16(9317), + 69: uint16(9318), + 70: uint16(9319), + 71: uint16(9320), + 72: uint16(9321), + 73: uint16(9332), + 74: uint16(9333), + 75: uint16(9334), + 76: uint16(9335), + 77: uint16(9336), + 78: uint16(9337), + 79: uint16(9338), + 80: uint16(9339), + 81: uint16(9340), + 82: uint16(9341), + 83: uint16(8560), + 84: uint16(8561), + 85: uint16(8562), + 86: uint16(8563), + 87: uint16(8564), + 88: uint16(8565), + 89: uint16(8566), + 90: uint16(8567), + 91: uint16(8568), + 92: uint16(8569), + 93: uint16(20022), + 94: uint16(20031), + 95: uint16(20101), + 96: uint16(20128), + 97: uint16(20866), + 98: uint16(20886), + 99: uint16(20907), + 100: uint16(21241), + 101: uint16(21304), + 102: uint16(21353), + 103: uint16(21430), + 104: uint16(22794), + 105: uint16(23424), + 106: uint16(24027), + 107: uint16(24186), + 108: uint16(24191), + 109: uint16(24308), + 110: uint16(24400), + 111: uint16(24417), + 112: uint16(25908), + 113: uint16(26080), + 114: uint16(30098), + 115: uint16(30326), + 116: uint16(36789), + 117: uint16(38582), + 118: uint16(168), + 119: uint16(710), + 120: uint16(12541), + 121: uint16(12542), + 122: uint16(12445), + 123: uint16(12446), + 126: uint16(12293), + 127: uint16(12294), + 128: uint16(12295), + 129: uint16(12540), + 130: uint16(65339), + 131: uint16(65341), + 132: uint16(10045), + 133: uint16(12353), + 134: uint16(12354), + 135: uint16(12355), + 136: uint16(12356), + 137: uint16(12357), + 138: uint16(12358), + 139: uint16(12359), + 140: uint16(12360), + 141: uint16(12361), + 142: uint16(12362), + 143: uint16(12363), + 144: uint16(12364), + 145: uint16(12365), + 146: uint16(12366), + 147: uint16(12367), + 148: uint16(12368), + 149: uint16(12369), + 150: uint16(12370), + 151: uint16(12371), + 152: uint16(12372), + 153: uint16(12373), + 154: uint16(12374), + 155: uint16(12375), + 156: uint16(12376), + }, + 38: { + 0: uint16(12377), + 1: uint16(12378), + 2: uint16(12379), + 3: uint16(12380), + 4: uint16(12381), + 5: uint16(12382), + 6: uint16(12383), + 7: uint16(12384), + 8: uint16(12385), + 9: uint16(12386), + 10: uint16(12387), + 11: uint16(12388), + 12: uint16(12389), + 13: uint16(12390), + 14: uint16(12391), + 15: uint16(12392), + 16: uint16(12393), + 17: uint16(12394), + 18: uint16(12395), + 19: uint16(12396), + 20: uint16(12397), + 21: uint16(12398), + 22: uint16(12399), + 23: uint16(12400), + 24: uint16(12401), + 25: uint16(12402), + 26: uint16(12403), + 27: uint16(12404), + 28: uint16(12405), + 29: uint16(12406), + 30: uint16(12407), + 31: uint16(12408), + 32: uint16(12409), + 33: uint16(12410), + 34: uint16(12411), + 35: uint16(12412), + 36: uint16(12413), + 37: uint16(12414), + 38: uint16(12415), + 39: uint16(12416), + 40: uint16(12417), + 41: uint16(12418), + 42: uint16(12419), + 43: uint16(12420), + 44: uint16(12421), + 45: uint16(12422), + 46: uint16(12423), + 47: uint16(12424), + 48: uint16(12425), + 49: uint16(12426), + 50: uint16(12427), + 51: uint16(12428), + 52: uint16(12429), + 53: uint16(12430), + 54: uint16(12431), + 55: uint16(12432), + 56: uint16(12433), + 57: uint16(12434), + 58: uint16(12435), + 59: uint16(12449), + 60: uint16(12450), + 61: uint16(12451), + 62: uint16(12452), + 63: uint16(12453), + 64: uint16(12454), + 65: uint16(12455), + 66: uint16(12456), + 67: uint16(12457), + 68: uint16(12458), + 69: uint16(12459), + 70: uint16(12460), + 71: uint16(12461), + 72: uint16(12462), + 73: uint16(12463), + 74: uint16(12464), + 75: uint16(12465), + 76: uint16(12466), + 77: uint16(12467), + 78: uint16(12468), + 79: uint16(12469), + 80: uint16(12470), + 81: uint16(12471), + 82: uint16(12472), + 83: uint16(12473), + 84: uint16(12474), + 85: uint16(12475), + 86: uint16(12476), + 87: uint16(12477), + 88: uint16(12478), + 89: uint16(12479), + 90: uint16(12480), + 91: uint16(12481), + 92: uint16(12482), + 93: uint16(12483), + 94: uint16(12484), + 95: uint16(12485), + 96: uint16(12486), + 97: uint16(12487), + 98: uint16(12488), + 99: uint16(12489), + 100: uint16(12490), + 101: uint16(12491), + 102: uint16(12492), + 103: uint16(12493), + 104: uint16(12494), + 105: uint16(12495), + 106: uint16(12496), + 107: uint16(12497), + 108: uint16(12498), + 109: uint16(12499), + 110: uint16(12500), + 111: uint16(12501), + 112: uint16(12502), + 113: uint16(12503), + 114: uint16(12504), + 115: uint16(12505), + 116: uint16(12506), + 117: uint16(12507), + 118: uint16(12508), + 119: uint16(12509), + 120: uint16(12510), + 121: uint16(12511), + 122: uint16(12512), + 123: uint16(12513), + 124: uint16(12514), + 125: uint16(12515), + 126: uint16(12516), + 127: uint16(12517), + 128: uint16(12518), + 129: uint16(12519), + 130: uint16(12520), + 131: uint16(12521), + 132: uint16(12522), + 133: uint16(12523), + 134: uint16(12524), + 135: uint16(12525), + 136: uint16(12526), + 137: uint16(12527), + 138: uint16(12528), + 139: uint16(12529), + 140: uint16(12530), + 141: uint16(12531), + 142: uint16(12532), + 143: uint16(12533), + 144: uint16(12534), + 145: uint16(1040), + 146: uint16(1041), + 147: uint16(1042), + 148: uint16(1043), + 149: uint16(1044), + 150: uint16(1045), + 151: uint16(1025), + 152: uint16(1046), + 153: uint16(1047), + 154: uint16(1048), + 155: uint16(1049), + 156: uint16(1050), + }, + 39: { + 0: uint16(1051), + 1: uint16(1052), + 2: uint16(1053), + 3: uint16(1054), + 4: uint16(1055), + 5: uint16(1056), + 6: uint16(1057), + 7: uint16(1058), + 8: uint16(1059), + 9: uint16(1060), + 10: uint16(1061), + 11: uint16(1062), + 12: uint16(1063), + 13: uint16(1064), + 14: uint16(1065), + 15: uint16(1066), + 16: uint16(1067), + 17: uint16(1068), + 18: uint16(1069), + 19: uint16(1070), + 20: uint16(1071), + 21: uint16(1072), + 22: uint16(1073), + 23: uint16(1074), + 24: uint16(1075), + 25: uint16(1076), + 26: uint16(1077), + 27: uint16(1105), + 28: uint16(1078), + 29: uint16(1079), + 30: uint16(1080), + 31: uint16(1081), + 32: uint16(1082), + 33: uint16(1083), + 34: uint16(1084), + 35: uint16(1085), + 36: uint16(1086), + 37: uint16(1087), + 38: uint16(1088), + 39: uint16(1089), + 40: uint16(1090), + 41: uint16(1091), + 42: uint16(1092), + 43: uint16(1093), + 44: uint16(1094), + 45: uint16(1095), + 46: uint16(1096), + 47: uint16(1097), + 48: uint16(1098), + 49: uint16(1099), + 50: uint16(1100), + 51: uint16(1101), + 52: uint16(1102), + 53: uint16(1103), + 54: uint16(8679), + 55: uint16(8632), + 56: uint16(8633), + 57: uint16(12751), + 58: uint16(204), + 59: uint16(20058), + 60: uint16(138), + 61: uint16(20994), + 62: uint16(17553), + 63: uint16(40880), + 64: uint16(20872), + 65: uint16(40881), + 66: uint16(30215), + 107: uint16(65506), + 108: uint16(65508), + 109: uint16(65287), + 110: uint16(65282), + 111: uint16(12849), + 112: uint16(8470), + 113: uint16(8481), + 114: uint16(12443), + 115: uint16(12444), + 116: uint16(11904), + 117: uint16(11908), + 118: uint16(11910), + 119: uint16(11911), + 120: uint16(11912), + 121: uint16(11914), + 122: uint16(11916), + 123: uint16(11917), + 124: uint16(11925), + 125: uint16(11932), + 126: uint16(11933), + 127: uint16(11941), + 128: uint16(11943), + 129: uint16(11946), + 130: uint16(11948), + 131: uint16(11950), + 132: uint16(11958), + 133: uint16(11964), + 134: uint16(11966), + 135: uint16(11974), + 136: uint16(11978), + 137: uint16(11980), + 138: uint16(11981), + 139: uint16(11983), + 140: uint16(11990), + 141: uint16(11991), + 142: uint16(11998), + 143: uint16(12003), + 147: uint16(643), + 148: uint16(592), + 149: uint16(603), + 150: uint16(596), + 151: uint16(629), + 152: uint16(339), + 153: uint16(248), + 154: uint16(331), + 155: uint16(650), + 156: uint16(618), + }, + 40: { + 0: uint16(20034), + 1: uint16(20060), + 2: uint16(20981), + 3: uint16(21274), + 4: uint16(21378), + 5: uint16(19975), + 6: uint16(19980), + 7: uint16(20039), + 8: uint16(20109), + 9: uint16(22231), + 10: uint16(64012), + 11: uint16(23662), + 12: uint16(24435), + 13: uint16(19983), + 14: uint16(20871), + 15: uint16(19982), + 16: uint16(20014), + 17: uint16(20115), + 18: uint16(20162), + 19: uint16(20169), + 20: uint16(20168), + 21: uint16(20888), + 22: uint16(21244), + 23: uint16(21356), + 24: uint16(21433), + 25: uint16(22304), + 26: uint16(22787), + 27: uint16(22828), + 28: uint16(23568), + 29: uint16(24063), + 30: uint16(26081), + 31: uint16(27571), + 32: uint16(27596), + 33: uint16(27668), + 34: uint16(29247), + 35: uint16(20017), + 36: uint16(20028), + 37: uint16(20200), + 38: uint16(20188), + 39: uint16(20201), + 40: uint16(20193), + 41: uint16(20189), + 42: uint16(20186), + 43: uint16(21004), + 44: uint16(21276), + 45: uint16(21324), + 46: uint16(22306), + 47: uint16(22307), + 48: uint16(22807), + 49: uint16(22831), + 50: uint16(23425), + 51: uint16(23428), + 52: uint16(23570), + 53: uint16(23611), + 54: uint16(23668), + 55: uint16(23667), + 56: uint16(24068), + 57: uint16(24192), + 58: uint16(24194), + 59: uint16(24521), + 60: uint16(25097), + 61: uint16(25168), + 62: uint16(27669), + 63: uint16(27702), + 64: uint16(27715), + 65: uint16(27711), + 66: uint16(27707), + 67: uint16(29358), + 68: uint16(29360), + 69: uint16(29578), + 70: uint16(31160), + 71: uint16(32906), + 72: uint16(38430), + 73: uint16(20238), + 74: uint16(20248), + 75: uint16(20268), + 76: uint16(20213), + 77: uint16(20244), + 78: uint16(20209), + 79: uint16(20224), + 80: uint16(20215), + 81: uint16(20232), + 82: uint16(20253), + 83: uint16(20226), + 84: uint16(20229), + 85: uint16(20258), + 86: uint16(20243), + 87: uint16(20228), + 88: uint16(20212), + 89: uint16(20242), + 90: uint16(20913), + 91: uint16(21011), + 92: uint16(21001), + 93: uint16(21008), + 94: uint16(21158), + 95: uint16(21282), + 96: uint16(21279), + 97: uint16(21325), + 98: uint16(21386), + 99: uint16(21511), + 100: uint16(22241), + 101: uint16(22239), + 102: uint16(22318), + 103: uint16(22314), + 104: uint16(22324), + 105: uint16(22844), + 106: uint16(22912), + 107: uint16(22908), + 108: uint16(22917), + 109: uint16(22907), + 110: uint16(22910), + 111: uint16(22903), + 112: uint16(22911), + 113: uint16(23382), + 114: uint16(23573), + 115: uint16(23589), + 116: uint16(23676), + 117: uint16(23674), + 118: uint16(23675), + 119: uint16(23678), + 120: uint16(24031), + 121: uint16(24181), + 122: uint16(24196), + 123: uint16(24322), + 124: uint16(24346), + 125: uint16(24436), + 126: uint16(24533), + 127: uint16(24532), + 128: uint16(24527), + 129: uint16(25180), + 130: uint16(25182), + 131: uint16(25188), + 132: uint16(25185), + 133: uint16(25190), + 134: uint16(25186), + 135: uint16(25177), + 136: uint16(25184), + 137: uint16(25178), + 138: uint16(25189), + 139: uint16(26095), + 140: uint16(26094), + 141: uint16(26430), + 142: uint16(26425), + 143: uint16(26424), + 144: uint16(26427), + 145: uint16(26426), + 146: uint16(26431), + 147: uint16(26428), + 148: uint16(26419), + 149: uint16(27672), + 150: uint16(27718), + 151: uint16(27730), + 152: uint16(27740), + 153: uint16(27727), + 154: uint16(27722), + 155: uint16(27732), + 156: uint16(27723), + }, + 41: { + 0: uint16(27724), + 1: uint16(28785), + 2: uint16(29278), + 3: uint16(29364), + 4: uint16(29365), + 5: uint16(29582), + 6: uint16(29994), + 7: uint16(30335), + 8: uint16(31349), + 9: uint16(32593), + 10: uint16(33400), + 11: uint16(33404), + 12: uint16(33408), + 13: uint16(33405), + 14: uint16(33407), + 15: uint16(34381), + 16: uint16(35198), + 17: uint16(37017), + 18: uint16(37015), + 19: uint16(37016), + 20: uint16(37019), + 21: uint16(37012), + 22: uint16(38434), + 23: uint16(38436), + 24: uint16(38432), + 25: uint16(38435), + 26: uint16(20310), + 27: uint16(20283), + 28: uint16(20322), + 29: uint16(20297), + 30: uint16(20307), + 31: uint16(20324), + 32: uint16(20286), + 33: uint16(20327), + 34: uint16(20306), + 35: uint16(20319), + 36: uint16(20289), + 37: uint16(20312), + 38: uint16(20269), + 39: uint16(20275), + 40: uint16(20287), + 41: uint16(20321), + 42: uint16(20879), + 43: uint16(20921), + 44: uint16(21020), + 45: uint16(21022), + 46: uint16(21025), + 47: uint16(21165), + 48: uint16(21166), + 49: uint16(21257), + 50: uint16(21347), + 51: uint16(21362), + 52: uint16(21390), + 53: uint16(21391), + 54: uint16(21552), + 55: uint16(21559), + 56: uint16(21546), + 57: uint16(21588), + 58: uint16(21573), + 59: uint16(21529), + 60: uint16(21532), + 61: uint16(21541), + 62: uint16(21528), + 63: uint16(21565), + 64: uint16(21583), + 65: uint16(21569), + 66: uint16(21544), + 67: uint16(21540), + 68: uint16(21575), + 69: uint16(22254), + 70: uint16(22247), + 71: uint16(22245), + 72: uint16(22337), + 73: uint16(22341), + 74: uint16(22348), + 75: uint16(22345), + 76: uint16(22347), + 77: uint16(22354), + 78: uint16(22790), + 79: uint16(22848), + 80: uint16(22950), + 81: uint16(22936), + 82: uint16(22944), + 83: uint16(22935), + 84: uint16(22926), + 85: uint16(22946), + 86: uint16(22928), + 87: uint16(22927), + 88: uint16(22951), + 89: uint16(22945), + 90: uint16(23438), + 91: uint16(23442), + 92: uint16(23592), + 93: uint16(23594), + 94: uint16(23693), + 95: uint16(23695), + 96: uint16(23688), + 97: uint16(23691), + 98: uint16(23689), + 99: uint16(23698), + 100: uint16(23690), + 101: uint16(23686), + 102: uint16(23699), + 103: uint16(23701), + 104: uint16(24032), + 105: uint16(24074), + 106: uint16(24078), + 107: uint16(24203), + 108: uint16(24201), + 109: uint16(24204), + 110: uint16(24200), + 111: uint16(24205), + 112: uint16(24325), + 113: uint16(24349), + 114: uint16(24440), + 115: uint16(24438), + 116: uint16(24530), + 117: uint16(24529), + 118: uint16(24528), + 119: uint16(24557), + 120: uint16(24552), + 121: uint16(24558), + 122: uint16(24563), + 123: uint16(24545), + 124: uint16(24548), + 125: uint16(24547), + 126: uint16(24570), + 127: uint16(24559), + 128: uint16(24567), + 129: uint16(24571), + 130: uint16(24576), + 131: uint16(24564), + 132: uint16(25146), + 133: uint16(25219), + 134: uint16(25228), + 135: uint16(25230), + 136: uint16(25231), + 137: uint16(25236), + 138: uint16(25223), + 139: uint16(25201), + 140: uint16(25211), + 141: uint16(25210), + 142: uint16(25200), + 143: uint16(25217), + 144: uint16(25224), + 145: uint16(25207), + 146: uint16(25213), + 147: uint16(25202), + 148: uint16(25204), + 149: uint16(25911), + 150: uint16(26096), + 151: uint16(26100), + 152: uint16(26099), + 153: uint16(26098), + 154: uint16(26101), + 155: uint16(26437), + 156: uint16(26439), + }, + 42: { + 0: uint16(26457), + 1: uint16(26453), + 2: uint16(26444), + 3: uint16(26440), + 4: uint16(26461), + 5: uint16(26445), + 6: uint16(26458), + 7: uint16(26443), + 8: uint16(27600), + 9: uint16(27673), + 10: uint16(27674), + 11: uint16(27768), + 12: uint16(27751), + 13: uint16(27755), + 14: uint16(27780), + 15: uint16(27787), + 16: uint16(27791), + 17: uint16(27761), + 18: uint16(27759), + 19: uint16(27753), + 20: uint16(27802), + 21: uint16(27757), + 22: uint16(27783), + 23: uint16(27797), + 24: uint16(27804), + 25: uint16(27750), + 26: uint16(27763), + 27: uint16(27749), + 28: uint16(27771), + 29: uint16(27790), + 30: uint16(28788), + 31: uint16(28794), + 32: uint16(29283), + 33: uint16(29375), + 34: uint16(29373), + 35: uint16(29379), + 36: uint16(29382), + 37: uint16(29377), + 38: uint16(29370), + 39: uint16(29381), + 40: uint16(29589), + 41: uint16(29591), + 42: uint16(29587), + 43: uint16(29588), + 44: uint16(29586), + 45: uint16(30010), + 46: uint16(30009), + 47: uint16(30100), + 48: uint16(30101), + 49: uint16(30337), + 50: uint16(31037), + 51: uint16(32820), + 52: uint16(32917), + 53: uint16(32921), + 54: uint16(32912), + 55: uint16(32914), + 56: uint16(32924), + 57: uint16(33424), + 58: uint16(33423), + 59: uint16(33413), + 60: uint16(33422), + 61: uint16(33425), + 62: uint16(33427), + 63: uint16(33418), + 64: uint16(33411), + 65: uint16(33412), + 66: uint16(35960), + 67: uint16(36809), + 68: uint16(36799), + 69: uint16(37023), + 70: uint16(37025), + 71: uint16(37029), + 72: uint16(37022), + 73: uint16(37031), + 74: uint16(37024), + 75: uint16(38448), + 76: uint16(38440), + 77: uint16(38447), + 78: uint16(38445), + 79: uint16(20019), + 80: uint16(20376), + 81: uint16(20348), + 82: uint16(20357), + 83: uint16(20349), + 84: uint16(20352), + 85: uint16(20359), + 86: uint16(20342), + 87: uint16(20340), + 88: uint16(20361), + 89: uint16(20356), + 90: uint16(20343), + 91: uint16(20300), + 92: uint16(20375), + 93: uint16(20330), + 94: uint16(20378), + 95: uint16(20345), + 96: uint16(20353), + 97: uint16(20344), + 98: uint16(20368), + 99: uint16(20380), + 100: uint16(20372), + 101: uint16(20382), + 102: uint16(20370), + 103: uint16(20354), + 104: uint16(20373), + 105: uint16(20331), + 106: uint16(20334), + 107: uint16(20894), + 108: uint16(20924), + 109: uint16(20926), + 110: uint16(21045), + 111: uint16(21042), + 112: uint16(21043), + 113: uint16(21062), + 114: uint16(21041), + 115: uint16(21180), + 116: uint16(21258), + 117: uint16(21259), + 118: uint16(21308), + 119: uint16(21394), + 120: uint16(21396), + 121: uint16(21639), + 122: uint16(21631), + 123: uint16(21633), + 124: uint16(21649), + 125: uint16(21634), + 126: uint16(21640), + 127: uint16(21611), + 128: uint16(21626), + 129: uint16(21630), + 130: uint16(21605), + 131: uint16(21612), + 132: uint16(21620), + 133: uint16(21606), + 134: uint16(21645), + 135: uint16(21615), + 136: uint16(21601), + 137: uint16(21600), + 138: uint16(21656), + 139: uint16(21603), + 140: uint16(21607), + 141: uint16(21604), + 142: uint16(22263), + 143: uint16(22265), + 144: uint16(22383), + 145: uint16(22386), + 146: uint16(22381), + 147: uint16(22379), + 148: uint16(22385), + 149: uint16(22384), + 150: uint16(22390), + 151: uint16(22400), + 152: uint16(22389), + 153: uint16(22395), + 154: uint16(22387), + 155: uint16(22388), + 156: uint16(22370), + }, + 43: { + 0: uint16(22376), + 1: uint16(22397), + 2: uint16(22796), + 3: uint16(22853), + 4: uint16(22965), + 5: uint16(22970), + 6: uint16(22991), + 7: uint16(22990), + 8: uint16(22962), + 9: uint16(22988), + 10: uint16(22977), + 11: uint16(22966), + 12: uint16(22972), + 13: uint16(22979), + 14: uint16(22998), + 15: uint16(22961), + 16: uint16(22973), + 17: uint16(22976), + 18: uint16(22984), + 19: uint16(22964), + 20: uint16(22983), + 21: uint16(23394), + 22: uint16(23397), + 23: uint16(23443), + 24: uint16(23445), + 25: uint16(23620), + 26: uint16(23623), + 27: uint16(23726), + 28: uint16(23716), + 29: uint16(23712), + 30: uint16(23733), + 31: uint16(23727), + 32: uint16(23720), + 33: uint16(23724), + 34: uint16(23711), + 35: uint16(23715), + 36: uint16(23725), + 37: uint16(23714), + 38: uint16(23722), + 39: uint16(23719), + 40: uint16(23709), + 41: uint16(23717), + 42: uint16(23734), + 43: uint16(23728), + 44: uint16(23718), + 45: uint16(24087), + 46: uint16(24084), + 47: uint16(24089), + 48: uint16(24360), + 49: uint16(24354), + 50: uint16(24355), + 51: uint16(24356), + 52: uint16(24404), + 53: uint16(24450), + 54: uint16(24446), + 55: uint16(24445), + 56: uint16(24542), + 57: uint16(24549), + 58: uint16(24621), + 59: uint16(24614), + 60: uint16(24601), + 61: uint16(24626), + 62: uint16(24587), + 63: uint16(24628), + 64: uint16(24586), + 65: uint16(24599), + 66: uint16(24627), + 67: uint16(24602), + 68: uint16(24606), + 69: uint16(24620), + 70: uint16(24610), + 71: uint16(24589), + 72: uint16(24592), + 73: uint16(24622), + 74: uint16(24595), + 75: uint16(24593), + 76: uint16(24588), + 77: uint16(24585), + 78: uint16(24604), + 79: uint16(25108), + 80: uint16(25149), + 81: uint16(25261), + 82: uint16(25268), + 83: uint16(25297), + 84: uint16(25278), + 85: uint16(25258), + 86: uint16(25270), + 87: uint16(25290), + 88: uint16(25262), + 89: uint16(25267), + 90: uint16(25263), + 91: uint16(25275), + 92: uint16(25257), + 93: uint16(25264), + 94: uint16(25272), + 95: uint16(25917), + 96: uint16(26024), + 97: uint16(26043), + 98: uint16(26121), + 99: uint16(26108), + 100: uint16(26116), + 101: uint16(26130), + 102: uint16(26120), + 103: uint16(26107), + 104: uint16(26115), + 105: uint16(26123), + 106: uint16(26125), + 107: uint16(26117), + 108: uint16(26109), + 109: uint16(26129), + 110: uint16(26128), + 111: uint16(26358), + 112: uint16(26378), + 113: uint16(26501), + 114: uint16(26476), + 115: uint16(26510), + 116: uint16(26514), + 117: uint16(26486), + 118: uint16(26491), + 119: uint16(26520), + 120: uint16(26502), + 121: uint16(26500), + 122: uint16(26484), + 123: uint16(26509), + 124: uint16(26508), + 125: uint16(26490), + 126: uint16(26527), + 127: uint16(26513), + 128: uint16(26521), + 129: uint16(26499), + 130: uint16(26493), + 131: uint16(26497), + 132: uint16(26488), + 133: uint16(26489), + 134: uint16(26516), + 135: uint16(27429), + 136: uint16(27520), + 137: uint16(27518), + 138: uint16(27614), + 139: uint16(27677), + 140: uint16(27795), + 141: uint16(27884), + 142: uint16(27883), + 143: uint16(27886), + 144: uint16(27865), + 145: uint16(27830), + 146: uint16(27860), + 147: uint16(27821), + 148: uint16(27879), + 149: uint16(27831), + 150: uint16(27856), + 151: uint16(27842), + 152: uint16(27834), + 153: uint16(27843), + 154: uint16(27846), + 155: uint16(27885), + 156: uint16(27890), + }, + 44: { + 0: uint16(27858), + 1: uint16(27869), + 2: uint16(27828), + 3: uint16(27786), + 4: uint16(27805), + 5: uint16(27776), + 6: uint16(27870), + 7: uint16(27840), + 8: uint16(27952), + 9: uint16(27853), + 10: uint16(27847), + 11: uint16(27824), + 12: uint16(27897), + 13: uint16(27855), + 14: uint16(27881), + 15: uint16(27857), + 16: uint16(28820), + 17: uint16(28824), + 18: uint16(28805), + 19: uint16(28819), + 20: uint16(28806), + 21: uint16(28804), + 22: uint16(28817), + 23: uint16(28822), + 24: uint16(28802), + 25: uint16(28826), + 26: uint16(28803), + 27: uint16(29290), + 28: uint16(29398), + 29: uint16(29387), + 30: uint16(29400), + 31: uint16(29385), + 32: uint16(29404), + 33: uint16(29394), + 34: uint16(29396), + 35: uint16(29402), + 36: uint16(29388), + 37: uint16(29393), + 38: uint16(29604), + 39: uint16(29601), + 40: uint16(29613), + 41: uint16(29606), + 42: uint16(29602), + 43: uint16(29600), + 44: uint16(29612), + 45: uint16(29597), + 46: uint16(29917), + 47: uint16(29928), + 48: uint16(30015), + 49: uint16(30016), + 50: uint16(30014), + 51: uint16(30092), + 52: uint16(30104), + 53: uint16(30383), + 54: uint16(30451), + 55: uint16(30449), + 56: uint16(30448), + 57: uint16(30453), + 58: uint16(30712), + 59: uint16(30716), + 60: uint16(30713), + 61: uint16(30715), + 62: uint16(30714), + 63: uint16(30711), + 64: uint16(31042), + 65: uint16(31039), + 66: uint16(31173), + 67: uint16(31352), + 68: uint16(31355), + 69: uint16(31483), + 70: uint16(31861), + 71: uint16(31997), + 72: uint16(32821), + 73: uint16(32911), + 74: uint16(32942), + 75: uint16(32931), + 76: uint16(32952), + 77: uint16(32949), + 78: uint16(32941), + 79: uint16(33312), + 80: uint16(33440), + 81: uint16(33472), + 82: uint16(33451), + 83: uint16(33434), + 84: uint16(33432), + 85: uint16(33435), + 86: uint16(33461), + 87: uint16(33447), + 88: uint16(33454), + 89: uint16(33468), + 90: uint16(33438), + 91: uint16(33466), + 92: uint16(33460), + 93: uint16(33448), + 94: uint16(33441), + 95: uint16(33449), + 96: uint16(33474), + 97: uint16(33444), + 98: uint16(33475), + 99: uint16(33462), + 100: uint16(33442), + 101: uint16(34416), + 102: uint16(34415), + 103: uint16(34413), + 104: uint16(34414), + 105: uint16(35926), + 106: uint16(36818), + 107: uint16(36811), + 108: uint16(36819), + 109: uint16(36813), + 110: uint16(36822), + 111: uint16(36821), + 112: uint16(36823), + 113: uint16(37042), + 114: uint16(37044), + 115: uint16(37039), + 116: uint16(37043), + 117: uint16(37040), + 118: uint16(38457), + 119: uint16(38461), + 120: uint16(38460), + 121: uint16(38458), + 122: uint16(38467), + 123: uint16(20429), + 124: uint16(20421), + 125: uint16(20435), + 126: uint16(20402), + 127: uint16(20425), + 128: uint16(20427), + 129: uint16(20417), + 130: uint16(20436), + 131: uint16(20444), + 132: uint16(20441), + 133: uint16(20411), + 134: uint16(20403), + 135: uint16(20443), + 136: uint16(20423), + 137: uint16(20438), + 138: uint16(20410), + 139: uint16(20416), + 140: uint16(20409), + 141: uint16(20460), + 142: uint16(21060), + 143: uint16(21065), + 144: uint16(21184), + 145: uint16(21186), + 146: uint16(21309), + 147: uint16(21372), + 148: uint16(21399), + 149: uint16(21398), + 150: uint16(21401), + 151: uint16(21400), + 152: uint16(21690), + 153: uint16(21665), + 154: uint16(21677), + 155: uint16(21669), + 156: uint16(21711), + }, + 45: { + 0: uint16(21699), + 1: uint16(33549), + 2: uint16(21687), + 3: uint16(21678), + 4: uint16(21718), + 5: uint16(21686), + 6: uint16(21701), + 7: uint16(21702), + 8: uint16(21664), + 9: uint16(21616), + 10: uint16(21692), + 11: uint16(21666), + 12: uint16(21694), + 13: uint16(21618), + 14: uint16(21726), + 15: uint16(21680), + 16: uint16(22453), + 17: uint16(22430), + 18: uint16(22431), + 19: uint16(22436), + 20: uint16(22412), + 21: uint16(22423), + 22: uint16(22429), + 23: uint16(22427), + 24: uint16(22420), + 25: uint16(22424), + 26: uint16(22415), + 27: uint16(22425), + 28: uint16(22437), + 29: uint16(22426), + 30: uint16(22421), + 31: uint16(22772), + 32: uint16(22797), + 33: uint16(22867), + 34: uint16(23009), + 35: uint16(23006), + 36: uint16(23022), + 37: uint16(23040), + 38: uint16(23025), + 39: uint16(23005), + 40: uint16(23034), + 41: uint16(23037), + 42: uint16(23036), + 43: uint16(23030), + 44: uint16(23012), + 45: uint16(23026), + 46: uint16(23031), + 47: uint16(23003), + 48: uint16(23017), + 49: uint16(23027), + 50: uint16(23029), + 51: uint16(23008), + 52: uint16(23038), + 53: uint16(23028), + 54: uint16(23021), + 55: uint16(23464), + 56: uint16(23628), + 57: uint16(23760), + 58: uint16(23768), + 59: uint16(23756), + 60: uint16(23767), + 61: uint16(23755), + 62: uint16(23771), + 63: uint16(23774), + 64: uint16(23770), + 65: uint16(23753), + 66: uint16(23751), + 67: uint16(23754), + 68: uint16(23766), + 69: uint16(23763), + 70: uint16(23764), + 71: uint16(23759), + 72: uint16(23752), + 73: uint16(23750), + 74: uint16(23758), + 75: uint16(23775), + 76: uint16(23800), + 77: uint16(24057), + 78: uint16(24097), + 79: uint16(24098), + 80: uint16(24099), + 81: uint16(24096), + 82: uint16(24100), + 83: uint16(24240), + 84: uint16(24228), + 85: uint16(24226), + 86: uint16(24219), + 87: uint16(24227), + 88: uint16(24229), + 89: uint16(24327), + 90: uint16(24366), + 91: uint16(24406), + 92: uint16(24454), + 93: uint16(24631), + 94: uint16(24633), + 95: uint16(24660), + 96: uint16(24690), + 97: uint16(24670), + 98: uint16(24645), + 99: uint16(24659), + 100: uint16(24647), + 101: uint16(24649), + 102: uint16(24667), + 103: uint16(24652), + 104: uint16(24640), + 105: uint16(24642), + 106: uint16(24671), + 107: uint16(24612), + 108: uint16(24644), + 109: uint16(24664), + 110: uint16(24678), + 111: uint16(24686), + 112: uint16(25154), + 113: uint16(25155), + 114: uint16(25295), + 115: uint16(25357), + 116: uint16(25355), + 117: uint16(25333), + 118: uint16(25358), + 119: uint16(25347), + 120: uint16(25323), + 121: uint16(25337), + 122: uint16(25359), + 123: uint16(25356), + 124: uint16(25336), + 125: uint16(25334), + 126: uint16(25344), + 127: uint16(25363), + 128: uint16(25364), + 129: uint16(25338), + 130: uint16(25365), + 131: uint16(25339), + 132: uint16(25328), + 133: uint16(25921), + 134: uint16(25923), + 135: uint16(26026), + 136: uint16(26047), + 137: uint16(26166), + 138: uint16(26145), + 139: uint16(26162), + 140: uint16(26165), + 141: uint16(26140), + 142: uint16(26150), + 143: uint16(26146), + 144: uint16(26163), + 145: uint16(26155), + 146: uint16(26170), + 147: uint16(26141), + 148: uint16(26164), + 149: uint16(26169), + 150: uint16(26158), + 151: uint16(26383), + 152: uint16(26384), + 153: uint16(26561), + 154: uint16(26610), + 155: uint16(26568), + 156: uint16(26554), + }, + 46: { + 0: uint16(26588), + 1: uint16(26555), + 2: uint16(26616), + 3: uint16(26584), + 4: uint16(26560), + 5: uint16(26551), + 6: uint16(26565), + 7: uint16(26603), + 8: uint16(26596), + 9: uint16(26591), + 10: uint16(26549), + 11: uint16(26573), + 12: uint16(26547), + 13: uint16(26615), + 14: uint16(26614), + 15: uint16(26606), + 16: uint16(26595), + 17: uint16(26562), + 18: uint16(26553), + 19: uint16(26574), + 20: uint16(26599), + 21: uint16(26608), + 22: uint16(26546), + 23: uint16(26620), + 24: uint16(26566), + 25: uint16(26605), + 26: uint16(26572), + 27: uint16(26542), + 28: uint16(26598), + 29: uint16(26587), + 30: uint16(26618), + 31: uint16(26569), + 32: uint16(26570), + 33: uint16(26563), + 34: uint16(26602), + 35: uint16(26571), + 36: uint16(27432), + 37: uint16(27522), + 38: uint16(27524), + 39: uint16(27574), + 40: uint16(27606), + 41: uint16(27608), + 42: uint16(27616), + 43: uint16(27680), + 44: uint16(27681), + 45: uint16(27944), + 46: uint16(27956), + 47: uint16(27949), + 48: uint16(27935), + 49: uint16(27964), + 50: uint16(27967), + 51: uint16(27922), + 52: uint16(27914), + 53: uint16(27866), + 54: uint16(27955), + 55: uint16(27908), + 56: uint16(27929), + 57: uint16(27962), + 58: uint16(27930), + 59: uint16(27921), + 60: uint16(27904), + 61: uint16(27933), + 62: uint16(27970), + 63: uint16(27905), + 64: uint16(27928), + 65: uint16(27959), + 66: uint16(27907), + 67: uint16(27919), + 68: uint16(27968), + 69: uint16(27911), + 70: uint16(27936), + 71: uint16(27948), + 72: uint16(27912), + 73: uint16(27938), + 74: uint16(27913), + 75: uint16(27920), + 76: uint16(28855), + 77: uint16(28831), + 78: uint16(28862), + 79: uint16(28849), + 80: uint16(28848), + 81: uint16(28833), + 82: uint16(28852), + 83: uint16(28853), + 84: uint16(28841), + 85: uint16(29249), + 86: uint16(29257), + 87: uint16(29258), + 88: uint16(29292), + 89: uint16(29296), + 90: uint16(29299), + 91: uint16(29294), + 92: uint16(29386), + 93: uint16(29412), + 94: uint16(29416), + 95: uint16(29419), + 96: uint16(29407), + 97: uint16(29418), + 98: uint16(29414), + 99: uint16(29411), + 100: uint16(29573), + 101: uint16(29644), + 102: uint16(29634), + 103: uint16(29640), + 104: uint16(29637), + 105: uint16(29625), + 106: uint16(29622), + 107: uint16(29621), + 108: uint16(29620), + 109: uint16(29675), + 110: uint16(29631), + 111: uint16(29639), + 112: uint16(29630), + 113: uint16(29635), + 114: uint16(29638), + 115: uint16(29624), + 116: uint16(29643), + 117: uint16(29932), + 118: uint16(29934), + 119: uint16(29998), + 120: uint16(30023), + 121: uint16(30024), + 122: uint16(30119), + 123: uint16(30122), + 124: uint16(30329), + 125: uint16(30404), + 126: uint16(30472), + 127: uint16(30467), + 128: uint16(30468), + 129: uint16(30469), + 130: uint16(30474), + 131: uint16(30455), + 132: uint16(30459), + 133: uint16(30458), + 134: uint16(30695), + 135: uint16(30696), + 136: uint16(30726), + 137: uint16(30737), + 138: uint16(30738), + 139: uint16(30725), + 140: uint16(30736), + 141: uint16(30735), + 142: uint16(30734), + 143: uint16(30729), + 144: uint16(30723), + 145: uint16(30739), + 146: uint16(31050), + 147: uint16(31052), + 148: uint16(31051), + 149: uint16(31045), + 150: uint16(31044), + 151: uint16(31189), + 152: uint16(31181), + 153: uint16(31183), + 154: uint16(31190), + 155: uint16(31182), + 156: uint16(31360), + }, + 47: { + 0: uint16(31358), + 1: uint16(31441), + 2: uint16(31488), + 3: uint16(31489), + 4: uint16(31866), + 5: uint16(31864), + 6: uint16(31865), + 7: uint16(31871), + 8: uint16(31872), + 9: uint16(31873), + 10: uint16(32003), + 11: uint16(32008), + 12: uint16(32001), + 13: uint16(32600), + 14: uint16(32657), + 15: uint16(32653), + 16: uint16(32702), + 17: uint16(32775), + 18: uint16(32782), + 19: uint16(32783), + 20: uint16(32788), + 21: uint16(32823), + 22: uint16(32984), + 23: uint16(32967), + 24: uint16(32992), + 25: uint16(32977), + 26: uint16(32968), + 27: uint16(32962), + 28: uint16(32976), + 29: uint16(32965), + 30: uint16(32995), + 31: uint16(32985), + 32: uint16(32988), + 33: uint16(32970), + 34: uint16(32981), + 35: uint16(32969), + 36: uint16(32975), + 37: uint16(32983), + 38: uint16(32998), + 39: uint16(32973), + 40: uint16(33279), + 41: uint16(33313), + 42: uint16(33428), + 43: uint16(33497), + 44: uint16(33534), + 45: uint16(33529), + 46: uint16(33543), + 47: uint16(33512), + 48: uint16(33536), + 49: uint16(33493), + 50: uint16(33594), + 51: uint16(33515), + 52: uint16(33494), + 53: uint16(33524), + 54: uint16(33516), + 55: uint16(33505), + 56: uint16(33522), + 57: uint16(33525), + 58: uint16(33548), + 59: uint16(33531), + 60: uint16(33526), + 61: uint16(33520), + 62: uint16(33514), + 63: uint16(33508), + 64: uint16(33504), + 65: uint16(33530), + 66: uint16(33523), + 67: uint16(33517), + 68: uint16(34423), + 69: uint16(34420), + 70: uint16(34428), + 71: uint16(34419), + 72: uint16(34881), + 73: uint16(34894), + 74: uint16(34919), + 75: uint16(34922), + 76: uint16(34921), + 77: uint16(35283), + 78: uint16(35332), + 79: uint16(35335), + 80: uint16(36210), + 81: uint16(36835), + 82: uint16(36833), + 83: uint16(36846), + 84: uint16(36832), + 85: uint16(37105), + 86: uint16(37053), + 87: uint16(37055), + 88: uint16(37077), + 89: uint16(37061), + 90: uint16(37054), + 91: uint16(37063), + 92: uint16(37067), + 93: uint16(37064), + 94: uint16(37332), + 95: uint16(37331), + 96: uint16(38484), + 97: uint16(38479), + 98: uint16(38481), + 99: uint16(38483), + 100: uint16(38474), + 101: uint16(38478), + 102: uint16(20510), + 103: uint16(20485), + 104: uint16(20487), + 105: uint16(20499), + 106: uint16(20514), + 107: uint16(20528), + 108: uint16(20507), + 109: uint16(20469), + 110: uint16(20468), + 111: uint16(20531), + 112: uint16(20535), + 113: uint16(20524), + 114: uint16(20470), + 115: uint16(20471), + 116: uint16(20503), + 117: uint16(20508), + 118: uint16(20512), + 119: uint16(20519), + 120: uint16(20533), + 121: uint16(20527), + 122: uint16(20529), + 123: uint16(20494), + 124: uint16(20826), + 125: uint16(20884), + 126: uint16(20883), + 127: uint16(20938), + 128: uint16(20932), + 129: uint16(20933), + 130: uint16(20936), + 131: uint16(20942), + 132: uint16(21089), + 133: uint16(21082), + 134: uint16(21074), + 135: uint16(21086), + 136: uint16(21087), + 137: uint16(21077), + 138: uint16(21090), + 139: uint16(21197), + 140: uint16(21262), + 141: uint16(21406), + 142: uint16(21798), + 143: uint16(21730), + 144: uint16(21783), + 145: uint16(21778), + 146: uint16(21735), + 147: uint16(21747), + 148: uint16(21732), + 149: uint16(21786), + 150: uint16(21759), + 151: uint16(21764), + 152: uint16(21768), + 153: uint16(21739), + 154: uint16(21777), + 155: uint16(21765), + 156: uint16(21745), + }, + 48: { + 0: uint16(21770), + 1: uint16(21755), + 2: uint16(21751), + 3: uint16(21752), + 4: uint16(21728), + 5: uint16(21774), + 6: uint16(21763), + 7: uint16(21771), + 8: uint16(22273), + 9: uint16(22274), + 10: uint16(22476), + 11: uint16(22578), + 12: uint16(22485), + 13: uint16(22482), + 14: uint16(22458), + 15: uint16(22470), + 16: uint16(22461), + 17: uint16(22460), + 18: uint16(22456), + 19: uint16(22454), + 20: uint16(22463), + 21: uint16(22471), + 22: uint16(22480), + 23: uint16(22457), + 24: uint16(22465), + 25: uint16(22798), + 26: uint16(22858), + 27: uint16(23065), + 28: uint16(23062), + 29: uint16(23085), + 30: uint16(23086), + 31: uint16(23061), + 32: uint16(23055), + 33: uint16(23063), + 34: uint16(23050), + 35: uint16(23070), + 36: uint16(23091), + 37: uint16(23404), + 38: uint16(23463), + 39: uint16(23469), + 40: uint16(23468), + 41: uint16(23555), + 42: uint16(23638), + 43: uint16(23636), + 44: uint16(23788), + 45: uint16(23807), + 46: uint16(23790), + 47: uint16(23793), + 48: uint16(23799), + 49: uint16(23808), + 50: uint16(23801), + 51: uint16(24105), + 52: uint16(24104), + 53: uint16(24232), + 54: uint16(24238), + 55: uint16(24234), + 56: uint16(24236), + 57: uint16(24371), + 58: uint16(24368), + 59: uint16(24423), + 60: uint16(24669), + 61: uint16(24666), + 62: uint16(24679), + 63: uint16(24641), + 64: uint16(24738), + 65: uint16(24712), + 66: uint16(24704), + 67: uint16(24722), + 68: uint16(24705), + 69: uint16(24733), + 70: uint16(24707), + 71: uint16(24725), + 72: uint16(24731), + 73: uint16(24727), + 74: uint16(24711), + 75: uint16(24732), + 76: uint16(24718), + 77: uint16(25113), + 78: uint16(25158), + 79: uint16(25330), + 80: uint16(25360), + 81: uint16(25430), + 82: uint16(25388), + 83: uint16(25412), + 84: uint16(25413), + 85: uint16(25398), + 86: uint16(25411), + 87: uint16(25572), + 88: uint16(25401), + 89: uint16(25419), + 90: uint16(25418), + 91: uint16(25404), + 92: uint16(25385), + 93: uint16(25409), + 94: uint16(25396), + 95: uint16(25432), + 96: uint16(25428), + 97: uint16(25433), + 98: uint16(25389), + 99: uint16(25415), + 100: uint16(25395), + 101: uint16(25434), + 102: uint16(25425), + 103: uint16(25400), + 104: uint16(25431), + 105: uint16(25408), + 106: uint16(25416), + 107: uint16(25930), + 108: uint16(25926), + 109: uint16(26054), + 110: uint16(26051), + 111: uint16(26052), + 112: uint16(26050), + 113: uint16(26186), + 114: uint16(26207), + 115: uint16(26183), + 116: uint16(26193), + 117: uint16(26386), + 118: uint16(26387), + 119: uint16(26655), + 120: uint16(26650), + 121: uint16(26697), + 122: uint16(26674), + 123: uint16(26675), + 124: uint16(26683), + 125: uint16(26699), + 126: uint16(26703), + 127: uint16(26646), + 128: uint16(26673), + 129: uint16(26652), + 130: uint16(26677), + 131: uint16(26667), + 132: uint16(26669), + 133: uint16(26671), + 134: uint16(26702), + 135: uint16(26692), + 136: uint16(26676), + 137: uint16(26653), + 138: uint16(26642), + 139: uint16(26644), + 140: uint16(26662), + 141: uint16(26664), + 142: uint16(26670), + 143: uint16(26701), + 144: uint16(26682), + 145: uint16(26661), + 146: uint16(26656), + 147: uint16(27436), + 148: uint16(27439), + 149: uint16(27437), + 150: uint16(27441), + 151: uint16(27444), + 152: uint16(27501), + 153: uint16(32898), + 154: uint16(27528), + 155: uint16(27622), + 156: uint16(27620), + }, + 49: { + 0: uint16(27624), + 1: uint16(27619), + 2: uint16(27618), + 3: uint16(27623), + 4: uint16(27685), + 5: uint16(28026), + 6: uint16(28003), + 7: uint16(28004), + 8: uint16(28022), + 9: uint16(27917), + 10: uint16(28001), + 11: uint16(28050), + 12: uint16(27992), + 13: uint16(28002), + 14: uint16(28013), + 15: uint16(28015), + 16: uint16(28049), + 17: uint16(28045), + 18: uint16(28143), + 19: uint16(28031), + 20: uint16(28038), + 21: uint16(27998), + 22: uint16(28007), + 23: uint16(28000), + 24: uint16(28055), + 25: uint16(28016), + 26: uint16(28028), + 27: uint16(27999), + 28: uint16(28034), + 29: uint16(28056), + 30: uint16(27951), + 31: uint16(28008), + 32: uint16(28043), + 33: uint16(28030), + 34: uint16(28032), + 35: uint16(28036), + 36: uint16(27926), + 37: uint16(28035), + 38: uint16(28027), + 39: uint16(28029), + 40: uint16(28021), + 41: uint16(28048), + 42: uint16(28892), + 43: uint16(28883), + 44: uint16(28881), + 45: uint16(28893), + 46: uint16(28875), + 47: uint16(32569), + 48: uint16(28898), + 49: uint16(28887), + 50: uint16(28882), + 51: uint16(28894), + 52: uint16(28896), + 53: uint16(28884), + 54: uint16(28877), + 55: uint16(28869), + 56: uint16(28870), + 57: uint16(28871), + 58: uint16(28890), + 59: uint16(28878), + 60: uint16(28897), + 61: uint16(29250), + 62: uint16(29304), + 63: uint16(29303), + 64: uint16(29302), + 65: uint16(29440), + 66: uint16(29434), + 67: uint16(29428), + 68: uint16(29438), + 69: uint16(29430), + 70: uint16(29427), + 71: uint16(29435), + 72: uint16(29441), + 73: uint16(29651), + 74: uint16(29657), + 75: uint16(29669), + 76: uint16(29654), + 77: uint16(29628), + 78: uint16(29671), + 79: uint16(29667), + 80: uint16(29673), + 81: uint16(29660), + 82: uint16(29650), + 83: uint16(29659), + 84: uint16(29652), + 85: uint16(29661), + 86: uint16(29658), + 87: uint16(29655), + 88: uint16(29656), + 89: uint16(29672), + 90: uint16(29918), + 91: uint16(29919), + 92: uint16(29940), + 93: uint16(29941), + 94: uint16(29985), + 95: uint16(30043), + 96: uint16(30047), + 97: uint16(30128), + 98: uint16(30145), + 99: uint16(30139), + 100: uint16(30148), + 101: uint16(30144), + 102: uint16(30143), + 103: uint16(30134), + 104: uint16(30138), + 105: uint16(30346), + 106: uint16(30409), + 107: uint16(30493), + 108: uint16(30491), + 109: uint16(30480), + 110: uint16(30483), + 111: uint16(30482), + 112: uint16(30499), + 113: uint16(30481), + 114: uint16(30485), + 115: uint16(30489), + 116: uint16(30490), + 117: uint16(30498), + 118: uint16(30503), + 119: uint16(30755), + 120: uint16(30764), + 121: uint16(30754), + 122: uint16(30773), + 123: uint16(30767), + 124: uint16(30760), + 125: uint16(30766), + 126: uint16(30763), + 127: uint16(30753), + 128: uint16(30761), + 129: uint16(30771), + 130: uint16(30762), + 131: uint16(30769), + 132: uint16(31060), + 133: uint16(31067), + 134: uint16(31055), + 135: uint16(31068), + 136: uint16(31059), + 137: uint16(31058), + 138: uint16(31057), + 139: uint16(31211), + 140: uint16(31212), + 141: uint16(31200), + 142: uint16(31214), + 143: uint16(31213), + 144: uint16(31210), + 145: uint16(31196), + 146: uint16(31198), + 147: uint16(31197), + 148: uint16(31366), + 149: uint16(31369), + 150: uint16(31365), + 151: uint16(31371), + 152: uint16(31372), + 153: uint16(31370), + 154: uint16(31367), + 155: uint16(31448), + 156: uint16(31504), + }, + 50: { + 0: uint16(31492), + 1: uint16(31507), + 2: uint16(31493), + 3: uint16(31503), + 4: uint16(31496), + 5: uint16(31498), + 6: uint16(31502), + 7: uint16(31497), + 8: uint16(31506), + 9: uint16(31876), + 10: uint16(31889), + 11: uint16(31882), + 12: uint16(31884), + 13: uint16(31880), + 14: uint16(31885), + 15: uint16(31877), + 16: uint16(32030), + 17: uint16(32029), + 18: uint16(32017), + 19: uint16(32014), + 20: uint16(32024), + 21: uint16(32022), + 22: uint16(32019), + 23: uint16(32031), + 24: uint16(32018), + 25: uint16(32015), + 26: uint16(32012), + 27: uint16(32604), + 28: uint16(32609), + 29: uint16(32606), + 30: uint16(32608), + 31: uint16(32605), + 32: uint16(32603), + 33: uint16(32662), + 34: uint16(32658), + 35: uint16(32707), + 36: uint16(32706), + 37: uint16(32704), + 38: uint16(32790), + 39: uint16(32830), + 40: uint16(32825), + 41: uint16(33018), + 42: uint16(33010), + 43: uint16(33017), + 44: uint16(33013), + 45: uint16(33025), + 46: uint16(33019), + 47: uint16(33024), + 48: uint16(33281), + 49: uint16(33327), + 50: uint16(33317), + 51: uint16(33587), + 52: uint16(33581), + 53: uint16(33604), + 54: uint16(33561), + 55: uint16(33617), + 56: uint16(33573), + 57: uint16(33622), + 58: uint16(33599), + 59: uint16(33601), + 60: uint16(33574), + 61: uint16(33564), + 62: uint16(33570), + 63: uint16(33602), + 64: uint16(33614), + 65: uint16(33563), + 66: uint16(33578), + 67: uint16(33544), + 68: uint16(33596), + 69: uint16(33613), + 70: uint16(33558), + 71: uint16(33572), + 72: uint16(33568), + 73: uint16(33591), + 74: uint16(33583), + 75: uint16(33577), + 76: uint16(33607), + 77: uint16(33605), + 78: uint16(33612), + 79: uint16(33619), + 80: uint16(33566), + 81: uint16(33580), + 82: uint16(33611), + 83: uint16(33575), + 84: uint16(33608), + 85: uint16(34387), + 86: uint16(34386), + 87: uint16(34466), + 88: uint16(34472), + 89: uint16(34454), + 90: uint16(34445), + 91: uint16(34449), + 92: uint16(34462), + 93: uint16(34439), + 94: uint16(34455), + 95: uint16(34438), + 96: uint16(34443), + 97: uint16(34458), + 98: uint16(34437), + 99: uint16(34469), + 100: uint16(34457), + 101: uint16(34465), + 102: uint16(34471), + 103: uint16(34453), + 104: uint16(34456), + 105: uint16(34446), + 106: uint16(34461), + 107: uint16(34448), + 108: uint16(34452), + 109: uint16(34883), + 110: uint16(34884), + 111: uint16(34925), + 112: uint16(34933), + 113: uint16(34934), + 114: uint16(34930), + 115: uint16(34944), + 116: uint16(34929), + 117: uint16(34943), + 118: uint16(34927), + 119: uint16(34947), + 120: uint16(34942), + 121: uint16(34932), + 122: uint16(34940), + 123: uint16(35346), + 124: uint16(35911), + 125: uint16(35927), + 126: uint16(35963), + 127: uint16(36004), + 128: uint16(36003), + 129: uint16(36214), + 130: uint16(36216), + 131: uint16(36277), + 132: uint16(36279), + 133: uint16(36278), + 134: uint16(36561), + 135: uint16(36563), + 136: uint16(36862), + 137: uint16(36853), + 138: uint16(36866), + 139: uint16(36863), + 140: uint16(36859), + 141: uint16(36868), + 142: uint16(36860), + 143: uint16(36854), + 144: uint16(37078), + 145: uint16(37088), + 146: uint16(37081), + 147: uint16(37082), + 148: uint16(37091), + 149: uint16(37087), + 150: uint16(37093), + 151: uint16(37080), + 152: uint16(37083), + 153: uint16(37079), + 154: uint16(37084), + 155: uint16(37092), + 156: uint16(37200), + }, + 51: { + 0: uint16(37198), + 1: uint16(37199), + 2: uint16(37333), + 3: uint16(37346), + 4: uint16(37338), + 5: uint16(38492), + 6: uint16(38495), + 7: uint16(38588), + 8: uint16(39139), + 9: uint16(39647), + 10: uint16(39727), + 11: uint16(20095), + 12: uint16(20592), + 13: uint16(20586), + 14: uint16(20577), + 15: uint16(20574), + 16: uint16(20576), + 17: uint16(20563), + 18: uint16(20555), + 19: uint16(20573), + 20: uint16(20594), + 21: uint16(20552), + 22: uint16(20557), + 23: uint16(20545), + 24: uint16(20571), + 25: uint16(20554), + 26: uint16(20578), + 27: uint16(20501), + 28: uint16(20549), + 29: uint16(20575), + 30: uint16(20585), + 31: uint16(20587), + 32: uint16(20579), + 33: uint16(20580), + 34: uint16(20550), + 35: uint16(20544), + 36: uint16(20590), + 37: uint16(20595), + 38: uint16(20567), + 39: uint16(20561), + 40: uint16(20944), + 41: uint16(21099), + 42: uint16(21101), + 43: uint16(21100), + 44: uint16(21102), + 45: uint16(21206), + 46: uint16(21203), + 47: uint16(21293), + 48: uint16(21404), + 49: uint16(21877), + 50: uint16(21878), + 51: uint16(21820), + 52: uint16(21837), + 53: uint16(21840), + 54: uint16(21812), + 55: uint16(21802), + 56: uint16(21841), + 57: uint16(21858), + 58: uint16(21814), + 59: uint16(21813), + 60: uint16(21808), + 61: uint16(21842), + 62: uint16(21829), + 63: uint16(21772), + 64: uint16(21810), + 65: uint16(21861), + 66: uint16(21838), + 67: uint16(21817), + 68: uint16(21832), + 69: uint16(21805), + 70: uint16(21819), + 71: uint16(21824), + 72: uint16(21835), + 73: uint16(22282), + 74: uint16(22279), + 75: uint16(22523), + 76: uint16(22548), + 77: uint16(22498), + 78: uint16(22518), + 79: uint16(22492), + 80: uint16(22516), + 81: uint16(22528), + 82: uint16(22509), + 83: uint16(22525), + 84: uint16(22536), + 85: uint16(22520), + 86: uint16(22539), + 87: uint16(22515), + 88: uint16(22479), + 89: uint16(22535), + 90: uint16(22510), + 91: uint16(22499), + 92: uint16(22514), + 93: uint16(22501), + 94: uint16(22508), + 95: uint16(22497), + 96: uint16(22542), + 97: uint16(22524), + 98: uint16(22544), + 99: uint16(22503), + 100: uint16(22529), + 101: uint16(22540), + 102: uint16(22513), + 103: uint16(22505), + 104: uint16(22512), + 105: uint16(22541), + 106: uint16(22532), + 107: uint16(22876), + 108: uint16(23136), + 109: uint16(23128), + 110: uint16(23125), + 111: uint16(23143), + 112: uint16(23134), + 113: uint16(23096), + 114: uint16(23093), + 115: uint16(23149), + 116: uint16(23120), + 117: uint16(23135), + 118: uint16(23141), + 119: uint16(23148), + 120: uint16(23123), + 121: uint16(23140), + 122: uint16(23127), + 123: uint16(23107), + 124: uint16(23133), + 125: uint16(23122), + 126: uint16(23108), + 127: uint16(23131), + 128: uint16(23112), + 129: uint16(23182), + 130: uint16(23102), + 131: uint16(23117), + 132: uint16(23097), + 133: uint16(23116), + 134: uint16(23152), + 135: uint16(23145), + 136: uint16(23111), + 137: uint16(23121), + 138: uint16(23126), + 139: uint16(23106), + 140: uint16(23132), + 141: uint16(23410), + 142: uint16(23406), + 143: uint16(23489), + 144: uint16(23488), + 145: uint16(23641), + 146: uint16(23838), + 147: uint16(23819), + 148: uint16(23837), + 149: uint16(23834), + 150: uint16(23840), + 151: uint16(23820), + 152: uint16(23848), + 153: uint16(23821), + 154: uint16(23846), + 155: uint16(23845), + 156: uint16(23823), + }, + 52: { + 0: uint16(23856), + 1: uint16(23826), + 2: uint16(23843), + 3: uint16(23839), + 4: uint16(23854), + 5: uint16(24126), + 6: uint16(24116), + 7: uint16(24241), + 8: uint16(24244), + 9: uint16(24249), + 10: uint16(24242), + 11: uint16(24243), + 12: uint16(24374), + 13: uint16(24376), + 14: uint16(24475), + 15: uint16(24470), + 16: uint16(24479), + 17: uint16(24714), + 18: uint16(24720), + 19: uint16(24710), + 20: uint16(24766), + 21: uint16(24752), + 22: uint16(24762), + 23: uint16(24787), + 24: uint16(24788), + 25: uint16(24783), + 26: uint16(24804), + 27: uint16(24793), + 28: uint16(24797), + 29: uint16(24776), + 30: uint16(24753), + 31: uint16(24795), + 32: uint16(24759), + 33: uint16(24778), + 34: uint16(24767), + 35: uint16(24771), + 36: uint16(24781), + 37: uint16(24768), + 38: uint16(25394), + 39: uint16(25445), + 40: uint16(25482), + 41: uint16(25474), + 42: uint16(25469), + 43: uint16(25533), + 44: uint16(25502), + 45: uint16(25517), + 46: uint16(25501), + 47: uint16(25495), + 48: uint16(25515), + 49: uint16(25486), + 50: uint16(25455), + 51: uint16(25479), + 52: uint16(25488), + 53: uint16(25454), + 54: uint16(25519), + 55: uint16(25461), + 56: uint16(25500), + 57: uint16(25453), + 58: uint16(25518), + 59: uint16(25468), + 60: uint16(25508), + 61: uint16(25403), + 62: uint16(25503), + 63: uint16(25464), + 64: uint16(25477), + 65: uint16(25473), + 66: uint16(25489), + 67: uint16(25485), + 68: uint16(25456), + 69: uint16(25939), + 70: uint16(26061), + 71: uint16(26213), + 72: uint16(26209), + 73: uint16(26203), + 74: uint16(26201), + 75: uint16(26204), + 76: uint16(26210), + 77: uint16(26392), + 78: uint16(26745), + 79: uint16(26759), + 80: uint16(26768), + 81: uint16(26780), + 82: uint16(26733), + 83: uint16(26734), + 84: uint16(26798), + 85: uint16(26795), + 86: uint16(26966), + 87: uint16(26735), + 88: uint16(26787), + 89: uint16(26796), + 90: uint16(26793), + 91: uint16(26741), + 92: uint16(26740), + 93: uint16(26802), + 94: uint16(26767), + 95: uint16(26743), + 96: uint16(26770), + 97: uint16(26748), + 98: uint16(26731), + 99: uint16(26738), + 100: uint16(26794), + 101: uint16(26752), + 102: uint16(26737), + 103: uint16(26750), + 104: uint16(26779), + 105: uint16(26774), + 106: uint16(26763), + 107: uint16(26784), + 108: uint16(26761), + 109: uint16(26788), + 110: uint16(26744), + 111: uint16(26747), + 112: uint16(26769), + 113: uint16(26764), + 114: uint16(26762), + 115: uint16(26749), + 116: uint16(27446), + 117: uint16(27443), + 118: uint16(27447), + 119: uint16(27448), + 120: uint16(27537), + 121: uint16(27535), + 122: uint16(27533), + 123: uint16(27534), + 124: uint16(27532), + 125: uint16(27690), + 126: uint16(28096), + 127: uint16(28075), + 128: uint16(28084), + 129: uint16(28083), + 130: uint16(28276), + 131: uint16(28076), + 132: uint16(28137), + 133: uint16(28130), + 134: uint16(28087), + 135: uint16(28150), + 136: uint16(28116), + 137: uint16(28160), + 138: uint16(28104), + 139: uint16(28128), + 140: uint16(28127), + 141: uint16(28118), + 142: uint16(28094), + 143: uint16(28133), + 144: uint16(28124), + 145: uint16(28125), + 146: uint16(28123), + 147: uint16(28148), + 148: uint16(28106), + 149: uint16(28093), + 150: uint16(28141), + 151: uint16(28144), + 152: uint16(28090), + 153: uint16(28117), + 154: uint16(28098), + 155: uint16(28111), + 156: uint16(28105), + }, + 53: { + 0: uint16(28112), + 1: uint16(28146), + 2: uint16(28115), + 3: uint16(28157), + 4: uint16(28119), + 5: uint16(28109), + 6: uint16(28131), + 7: uint16(28091), + 8: uint16(28922), + 9: uint16(28941), + 10: uint16(28919), + 11: uint16(28951), + 12: uint16(28916), + 13: uint16(28940), + 14: uint16(28912), + 15: uint16(28932), + 16: uint16(28915), + 17: uint16(28944), + 18: uint16(28924), + 19: uint16(28927), + 20: uint16(28934), + 21: uint16(28947), + 22: uint16(28928), + 23: uint16(28920), + 24: uint16(28918), + 25: uint16(28939), + 26: uint16(28930), + 27: uint16(28942), + 28: uint16(29310), + 29: uint16(29307), + 30: uint16(29308), + 31: uint16(29311), + 32: uint16(29469), + 33: uint16(29463), + 34: uint16(29447), + 35: uint16(29457), + 36: uint16(29464), + 37: uint16(29450), + 38: uint16(29448), + 39: uint16(29439), + 40: uint16(29455), + 41: uint16(29470), + 42: uint16(29576), + 43: uint16(29686), + 44: uint16(29688), + 45: uint16(29685), + 46: uint16(29700), + 47: uint16(29697), + 48: uint16(29693), + 49: uint16(29703), + 50: uint16(29696), + 51: uint16(29690), + 52: uint16(29692), + 53: uint16(29695), + 54: uint16(29708), + 55: uint16(29707), + 56: uint16(29684), + 57: uint16(29704), + 58: uint16(30052), + 59: uint16(30051), + 60: uint16(30158), + 61: uint16(30162), + 62: uint16(30159), + 63: uint16(30155), + 64: uint16(30156), + 65: uint16(30161), + 66: uint16(30160), + 67: uint16(30351), + 68: uint16(30345), + 69: uint16(30419), + 70: uint16(30521), + 71: uint16(30511), + 72: uint16(30509), + 73: uint16(30513), + 74: uint16(30514), + 75: uint16(30516), + 76: uint16(30515), + 77: uint16(30525), + 78: uint16(30501), + 79: uint16(30523), + 80: uint16(30517), + 81: uint16(30792), + 82: uint16(30802), + 83: uint16(30793), + 84: uint16(30797), + 85: uint16(30794), + 86: uint16(30796), + 87: uint16(30758), + 88: uint16(30789), + 89: uint16(30800), + 90: uint16(31076), + 91: uint16(31079), + 92: uint16(31081), + 93: uint16(31082), + 94: uint16(31075), + 95: uint16(31083), + 96: uint16(31073), + 97: uint16(31163), + 98: uint16(31226), + 99: uint16(31224), + 100: uint16(31222), + 101: uint16(31223), + 102: uint16(31375), + 103: uint16(31380), + 104: uint16(31376), + 105: uint16(31541), + 106: uint16(31559), + 107: uint16(31540), + 108: uint16(31525), + 109: uint16(31536), + 110: uint16(31522), + 111: uint16(31524), + 112: uint16(31539), + 113: uint16(31512), + 114: uint16(31530), + 115: uint16(31517), + 116: uint16(31537), + 117: uint16(31531), + 118: uint16(31533), + 119: uint16(31535), + 120: uint16(31538), + 121: uint16(31544), + 122: uint16(31514), + 123: uint16(31523), + 124: uint16(31892), + 125: uint16(31896), + 126: uint16(31894), + 127: uint16(31907), + 128: uint16(32053), + 129: uint16(32061), + 130: uint16(32056), + 131: uint16(32054), + 132: uint16(32058), + 133: uint16(32069), + 134: uint16(32044), + 135: uint16(32041), + 136: uint16(32065), + 137: uint16(32071), + 138: uint16(32062), + 139: uint16(32063), + 140: uint16(32074), + 141: uint16(32059), + 142: uint16(32040), + 143: uint16(32611), + 144: uint16(32661), + 145: uint16(32668), + 146: uint16(32669), + 147: uint16(32667), + 148: uint16(32714), + 149: uint16(32715), + 150: uint16(32717), + 151: uint16(32720), + 152: uint16(32721), + 153: uint16(32711), + 154: uint16(32719), + 155: uint16(32713), + 156: uint16(32799), + }, + 54: { + 0: uint16(32798), + 1: uint16(32795), + 2: uint16(32839), + 3: uint16(32835), + 4: uint16(32840), + 5: uint16(33048), + 6: uint16(33061), + 7: uint16(33049), + 8: uint16(33051), + 9: uint16(33069), + 10: uint16(33055), + 11: uint16(33068), + 12: uint16(33054), + 13: uint16(33057), + 14: uint16(33045), + 15: uint16(33063), + 16: uint16(33053), + 17: uint16(33058), + 18: uint16(33297), + 19: uint16(33336), + 20: uint16(33331), + 21: uint16(33338), + 22: uint16(33332), + 23: uint16(33330), + 24: uint16(33396), + 25: uint16(33680), + 26: uint16(33699), + 27: uint16(33704), + 28: uint16(33677), + 29: uint16(33658), + 30: uint16(33651), + 31: uint16(33700), + 32: uint16(33652), + 33: uint16(33679), + 34: uint16(33665), + 35: uint16(33685), + 36: uint16(33689), + 37: uint16(33653), + 38: uint16(33684), + 39: uint16(33705), + 40: uint16(33661), + 41: uint16(33667), + 42: uint16(33676), + 43: uint16(33693), + 44: uint16(33691), + 45: uint16(33706), + 46: uint16(33675), + 47: uint16(33662), + 48: uint16(33701), + 49: uint16(33711), + 50: uint16(33672), + 51: uint16(33687), + 52: uint16(33712), + 53: uint16(33663), + 54: uint16(33702), + 55: uint16(33671), + 56: uint16(33710), + 57: uint16(33654), + 58: uint16(33690), + 59: uint16(34393), + 60: uint16(34390), + 61: uint16(34495), + 62: uint16(34487), + 63: uint16(34498), + 64: uint16(34497), + 65: uint16(34501), + 66: uint16(34490), + 67: uint16(34480), + 68: uint16(34504), + 69: uint16(34489), + 70: uint16(34483), + 71: uint16(34488), + 72: uint16(34508), + 73: uint16(34484), + 74: uint16(34491), + 75: uint16(34492), + 76: uint16(34499), + 77: uint16(34493), + 78: uint16(34494), + 79: uint16(34898), + 80: uint16(34953), + 81: uint16(34965), + 82: uint16(34984), + 83: uint16(34978), + 84: uint16(34986), + 85: uint16(34970), + 86: uint16(34961), + 87: uint16(34977), + 88: uint16(34975), + 89: uint16(34968), + 90: uint16(34983), + 91: uint16(34969), + 92: uint16(34971), + 93: uint16(34967), + 94: uint16(34980), + 95: uint16(34988), + 96: uint16(34956), + 97: uint16(34963), + 98: uint16(34958), + 99: uint16(35202), + 100: uint16(35286), + 101: uint16(35289), + 102: uint16(35285), + 103: uint16(35376), + 104: uint16(35367), + 105: uint16(35372), + 106: uint16(35358), + 107: uint16(35897), + 108: uint16(35899), + 109: uint16(35932), + 110: uint16(35933), + 111: uint16(35965), + 112: uint16(36005), + 113: uint16(36221), + 114: uint16(36219), + 115: uint16(36217), + 116: uint16(36284), + 117: uint16(36290), + 118: uint16(36281), + 119: uint16(36287), + 120: uint16(36289), + 121: uint16(36568), + 122: uint16(36574), + 123: uint16(36573), + 124: uint16(36572), + 125: uint16(36567), + 126: uint16(36576), + 127: uint16(36577), + 128: uint16(36900), + 129: uint16(36875), + 130: uint16(36881), + 131: uint16(36892), + 132: uint16(36876), + 133: uint16(36897), + 134: uint16(37103), + 135: uint16(37098), + 136: uint16(37104), + 137: uint16(37108), + 138: uint16(37106), + 139: uint16(37107), + 140: uint16(37076), + 141: uint16(37099), + 142: uint16(37100), + 143: uint16(37097), + 144: uint16(37206), + 145: uint16(37208), + 146: uint16(37210), + 147: uint16(37203), + 148: uint16(37205), + 149: uint16(37356), + 150: uint16(37364), + 151: uint16(37361), + 152: uint16(37363), + 153: uint16(37368), + 154: uint16(37348), + 155: uint16(37369), + 156: uint16(37354), + }, + 55: { + 0: uint16(37355), + 1: uint16(37367), + 2: uint16(37352), + 3: uint16(37358), + 4: uint16(38266), + 5: uint16(38278), + 6: uint16(38280), + 7: uint16(38524), + 8: uint16(38509), + 9: uint16(38507), + 10: uint16(38513), + 11: uint16(38511), + 12: uint16(38591), + 13: uint16(38762), + 14: uint16(38916), + 15: uint16(39141), + 16: uint16(39319), + 17: uint16(20635), + 18: uint16(20629), + 19: uint16(20628), + 20: uint16(20638), + 21: uint16(20619), + 22: uint16(20643), + 23: uint16(20611), + 24: uint16(20620), + 25: uint16(20622), + 26: uint16(20637), + 27: uint16(20584), + 28: uint16(20636), + 29: uint16(20626), + 30: uint16(20610), + 31: uint16(20615), + 32: uint16(20831), + 33: uint16(20948), + 34: uint16(21266), + 35: uint16(21265), + 36: uint16(21412), + 37: uint16(21415), + 38: uint16(21905), + 39: uint16(21928), + 40: uint16(21925), + 41: uint16(21933), + 42: uint16(21879), + 43: uint16(22085), + 44: uint16(21922), + 45: uint16(21907), + 46: uint16(21896), + 47: uint16(21903), + 48: uint16(21941), + 49: uint16(21889), + 50: uint16(21923), + 51: uint16(21906), + 52: uint16(21924), + 53: uint16(21885), + 54: uint16(21900), + 55: uint16(21926), + 56: uint16(21887), + 57: uint16(21909), + 58: uint16(21921), + 59: uint16(21902), + 60: uint16(22284), + 61: uint16(22569), + 62: uint16(22583), + 63: uint16(22553), + 64: uint16(22558), + 65: uint16(22567), + 66: uint16(22563), + 67: uint16(22568), + 68: uint16(22517), + 69: uint16(22600), + 70: uint16(22565), + 71: uint16(22556), + 72: uint16(22555), + 73: uint16(22579), + 74: uint16(22591), + 75: uint16(22582), + 76: uint16(22574), + 77: uint16(22585), + 78: uint16(22584), + 79: uint16(22573), + 80: uint16(22572), + 81: uint16(22587), + 82: uint16(22881), + 83: uint16(23215), + 84: uint16(23188), + 85: uint16(23199), + 86: uint16(23162), + 87: uint16(23202), + 88: uint16(23198), + 89: uint16(23160), + 90: uint16(23206), + 91: uint16(23164), + 92: uint16(23205), + 93: uint16(23212), + 94: uint16(23189), + 95: uint16(23214), + 96: uint16(23095), + 97: uint16(23172), + 98: uint16(23178), + 99: uint16(23191), + 100: uint16(23171), + 101: uint16(23179), + 102: uint16(23209), + 103: uint16(23163), + 104: uint16(23165), + 105: uint16(23180), + 106: uint16(23196), + 107: uint16(23183), + 108: uint16(23187), + 109: uint16(23197), + 110: uint16(23530), + 111: uint16(23501), + 112: uint16(23499), + 113: uint16(23508), + 114: uint16(23505), + 115: uint16(23498), + 116: uint16(23502), + 117: uint16(23564), + 118: uint16(23600), + 119: uint16(23863), + 120: uint16(23875), + 121: uint16(23915), + 122: uint16(23873), + 123: uint16(23883), + 124: uint16(23871), + 125: uint16(23861), + 126: uint16(23889), + 127: uint16(23886), + 128: uint16(23893), + 129: uint16(23859), + 130: uint16(23866), + 131: uint16(23890), + 132: uint16(23869), + 133: uint16(23857), + 134: uint16(23897), + 135: uint16(23874), + 136: uint16(23865), + 137: uint16(23881), + 138: uint16(23864), + 139: uint16(23868), + 140: uint16(23858), + 141: uint16(23862), + 142: uint16(23872), + 143: uint16(23877), + 144: uint16(24132), + 145: uint16(24129), + 146: uint16(24408), + 147: uint16(24486), + 148: uint16(24485), + 149: uint16(24491), + 150: uint16(24777), + 151: uint16(24761), + 152: uint16(24780), + 153: uint16(24802), + 154: uint16(24782), + 155: uint16(24772), + 156: uint16(24852), + }, + 56: { + 0: uint16(24818), + 1: uint16(24842), + 2: uint16(24854), + 3: uint16(24837), + 4: uint16(24821), + 5: uint16(24851), + 6: uint16(24824), + 7: uint16(24828), + 8: uint16(24830), + 9: uint16(24769), + 10: uint16(24835), + 11: uint16(24856), + 12: uint16(24861), + 13: uint16(24848), + 14: uint16(24831), + 15: uint16(24836), + 16: uint16(24843), + 17: uint16(25162), + 18: uint16(25492), + 19: uint16(25521), + 20: uint16(25520), + 21: uint16(25550), + 22: uint16(25573), + 23: uint16(25576), + 24: uint16(25583), + 25: uint16(25539), + 26: uint16(25757), + 27: uint16(25587), + 28: uint16(25546), + 29: uint16(25568), + 30: uint16(25590), + 31: uint16(25557), + 32: uint16(25586), + 33: uint16(25589), + 34: uint16(25697), + 35: uint16(25567), + 36: uint16(25534), + 37: uint16(25565), + 38: uint16(25564), + 39: uint16(25540), + 40: uint16(25560), + 41: uint16(25555), + 42: uint16(25538), + 43: uint16(25543), + 44: uint16(25548), + 45: uint16(25547), + 46: uint16(25544), + 47: uint16(25584), + 48: uint16(25559), + 49: uint16(25561), + 50: uint16(25906), + 51: uint16(25959), + 52: uint16(25962), + 53: uint16(25956), + 54: uint16(25948), + 55: uint16(25960), + 56: uint16(25957), + 57: uint16(25996), + 58: uint16(26013), + 59: uint16(26014), + 60: uint16(26030), + 61: uint16(26064), + 62: uint16(26066), + 63: uint16(26236), + 64: uint16(26220), + 65: uint16(26235), + 66: uint16(26240), + 67: uint16(26225), + 68: uint16(26233), + 69: uint16(26218), + 70: uint16(26226), + 71: uint16(26369), + 72: uint16(26892), + 73: uint16(26835), + 74: uint16(26884), + 75: uint16(26844), + 76: uint16(26922), + 77: uint16(26860), + 78: uint16(26858), + 79: uint16(26865), + 80: uint16(26895), + 81: uint16(26838), + 82: uint16(26871), + 83: uint16(26859), + 84: uint16(26852), + 85: uint16(26870), + 86: uint16(26899), + 87: uint16(26896), + 88: uint16(26867), + 89: uint16(26849), + 90: uint16(26887), + 91: uint16(26828), + 92: uint16(26888), + 93: uint16(26992), + 94: uint16(26804), + 95: uint16(26897), + 96: uint16(26863), + 97: uint16(26822), + 98: uint16(26900), + 99: uint16(26872), + 100: uint16(26832), + 101: uint16(26877), + 102: uint16(26876), + 103: uint16(26856), + 104: uint16(26891), + 105: uint16(26890), + 106: uint16(26903), + 107: uint16(26830), + 108: uint16(26824), + 109: uint16(26845), + 110: uint16(26846), + 111: uint16(26854), + 112: uint16(26868), + 113: uint16(26833), + 114: uint16(26886), + 115: uint16(26836), + 116: uint16(26857), + 117: uint16(26901), + 118: uint16(26917), + 119: uint16(26823), + 120: uint16(27449), + 121: uint16(27451), + 122: uint16(27455), + 123: uint16(27452), + 124: uint16(27540), + 125: uint16(27543), + 126: uint16(27545), + 127: uint16(27541), + 128: uint16(27581), + 129: uint16(27632), + 130: uint16(27634), + 131: uint16(27635), + 132: uint16(27696), + 133: uint16(28156), + 134: uint16(28230), + 135: uint16(28231), + 136: uint16(28191), + 137: uint16(28233), + 138: uint16(28296), + 139: uint16(28220), + 140: uint16(28221), + 141: uint16(28229), + 142: uint16(28258), + 143: uint16(28203), + 144: uint16(28223), + 145: uint16(28225), + 146: uint16(28253), + 147: uint16(28275), + 148: uint16(28188), + 149: uint16(28211), + 150: uint16(28235), + 151: uint16(28224), + 152: uint16(28241), + 153: uint16(28219), + 154: uint16(28163), + 155: uint16(28206), + 156: uint16(28254), + }, + 57: { + 0: uint16(28264), + 1: uint16(28252), + 2: uint16(28257), + 3: uint16(28209), + 4: uint16(28200), + 5: uint16(28256), + 6: uint16(28273), + 7: uint16(28267), + 8: uint16(28217), + 9: uint16(28194), + 10: uint16(28208), + 11: uint16(28243), + 12: uint16(28261), + 13: uint16(28199), + 14: uint16(28280), + 15: uint16(28260), + 16: uint16(28279), + 17: uint16(28245), + 18: uint16(28281), + 19: uint16(28242), + 20: uint16(28262), + 21: uint16(28213), + 22: uint16(28214), + 23: uint16(28250), + 24: uint16(28960), + 25: uint16(28958), + 26: uint16(28975), + 27: uint16(28923), + 28: uint16(28974), + 29: uint16(28977), + 30: uint16(28963), + 31: uint16(28965), + 32: uint16(28962), + 33: uint16(28978), + 34: uint16(28959), + 35: uint16(28968), + 36: uint16(28986), + 37: uint16(28955), + 38: uint16(29259), + 39: uint16(29274), + 40: uint16(29320), + 41: uint16(29321), + 42: uint16(29318), + 43: uint16(29317), + 44: uint16(29323), + 45: uint16(29458), + 46: uint16(29451), + 47: uint16(29488), + 48: uint16(29474), + 49: uint16(29489), + 50: uint16(29491), + 51: uint16(29479), + 52: uint16(29490), + 53: uint16(29485), + 54: uint16(29478), + 55: uint16(29475), + 56: uint16(29493), + 57: uint16(29452), + 58: uint16(29742), + 59: uint16(29740), + 60: uint16(29744), + 61: uint16(29739), + 62: uint16(29718), + 63: uint16(29722), + 64: uint16(29729), + 65: uint16(29741), + 66: uint16(29745), + 67: uint16(29732), + 68: uint16(29731), + 69: uint16(29725), + 70: uint16(29737), + 71: uint16(29728), + 72: uint16(29746), + 73: uint16(29947), + 74: uint16(29999), + 75: uint16(30063), + 76: uint16(30060), + 77: uint16(30183), + 78: uint16(30170), + 79: uint16(30177), + 80: uint16(30182), + 81: uint16(30173), + 82: uint16(30175), + 83: uint16(30180), + 84: uint16(30167), + 85: uint16(30357), + 86: uint16(30354), + 87: uint16(30426), + 88: uint16(30534), + 89: uint16(30535), + 90: uint16(30532), + 91: uint16(30541), + 92: uint16(30533), + 93: uint16(30538), + 94: uint16(30542), + 95: uint16(30539), + 96: uint16(30540), + 97: uint16(30686), + 98: uint16(30700), + 99: uint16(30816), + 100: uint16(30820), + 101: uint16(30821), + 102: uint16(30812), + 103: uint16(30829), + 104: uint16(30833), + 105: uint16(30826), + 106: uint16(30830), + 107: uint16(30832), + 108: uint16(30825), + 109: uint16(30824), + 110: uint16(30814), + 111: uint16(30818), + 112: uint16(31092), + 113: uint16(31091), + 114: uint16(31090), + 115: uint16(31088), + 116: uint16(31234), + 117: uint16(31242), + 118: uint16(31235), + 119: uint16(31244), + 120: uint16(31236), + 121: uint16(31385), + 122: uint16(31462), + 123: uint16(31460), + 124: uint16(31562), + 125: uint16(31547), + 126: uint16(31556), + 127: uint16(31560), + 128: uint16(31564), + 129: uint16(31566), + 130: uint16(31552), + 131: uint16(31576), + 132: uint16(31557), + 133: uint16(31906), + 134: uint16(31902), + 135: uint16(31912), + 136: uint16(31905), + 137: uint16(32088), + 138: uint16(32111), + 139: uint16(32099), + 140: uint16(32083), + 141: uint16(32086), + 142: uint16(32103), + 143: uint16(32106), + 144: uint16(32079), + 145: uint16(32109), + 146: uint16(32092), + 147: uint16(32107), + 148: uint16(32082), + 149: uint16(32084), + 150: uint16(32105), + 151: uint16(32081), + 152: uint16(32095), + 153: uint16(32078), + 154: uint16(32574), + 155: uint16(32575), + 156: uint16(32613), + }, + 58: { + 0: uint16(32614), + 1: uint16(32674), + 2: uint16(32672), + 3: uint16(32673), + 4: uint16(32727), + 5: uint16(32849), + 6: uint16(32847), + 7: uint16(32848), + 8: uint16(33022), + 9: uint16(32980), + 10: uint16(33091), + 11: uint16(33098), + 12: uint16(33106), + 13: uint16(33103), + 14: uint16(33095), + 15: uint16(33085), + 16: uint16(33101), + 17: uint16(33082), + 18: uint16(33254), + 19: uint16(33262), + 20: uint16(33271), + 21: uint16(33272), + 22: uint16(33273), + 23: uint16(33284), + 24: uint16(33340), + 25: uint16(33341), + 26: uint16(33343), + 27: uint16(33397), + 28: uint16(33595), + 29: uint16(33743), + 30: uint16(33785), + 31: uint16(33827), + 32: uint16(33728), + 33: uint16(33768), + 34: uint16(33810), + 35: uint16(33767), + 36: uint16(33764), + 37: uint16(33788), + 38: uint16(33782), + 39: uint16(33808), + 40: uint16(33734), + 41: uint16(33736), + 42: uint16(33771), + 43: uint16(33763), + 44: uint16(33727), + 45: uint16(33793), + 46: uint16(33757), + 47: uint16(33765), + 48: uint16(33752), + 49: uint16(33791), + 50: uint16(33761), + 51: uint16(33739), + 52: uint16(33742), + 53: uint16(33750), + 54: uint16(33781), + 55: uint16(33737), + 56: uint16(33801), + 57: uint16(33807), + 58: uint16(33758), + 59: uint16(33809), + 60: uint16(33798), + 61: uint16(33730), + 62: uint16(33779), + 63: uint16(33749), + 64: uint16(33786), + 65: uint16(33735), + 66: uint16(33745), + 67: uint16(33770), + 68: uint16(33811), + 69: uint16(33731), + 70: uint16(33772), + 71: uint16(33774), + 72: uint16(33732), + 73: uint16(33787), + 74: uint16(33751), + 75: uint16(33762), + 76: uint16(33819), + 77: uint16(33755), + 78: uint16(33790), + 79: uint16(34520), + 80: uint16(34530), + 81: uint16(34534), + 82: uint16(34515), + 83: uint16(34531), + 84: uint16(34522), + 85: uint16(34538), + 86: uint16(34525), + 87: uint16(34539), + 88: uint16(34524), + 89: uint16(34540), + 90: uint16(34537), + 91: uint16(34519), + 92: uint16(34536), + 93: uint16(34513), + 94: uint16(34888), + 95: uint16(34902), + 96: uint16(34901), + 97: uint16(35002), + 98: uint16(35031), + 99: uint16(35001), + 100: uint16(35000), + 101: uint16(35008), + 102: uint16(35006), + 103: uint16(34998), + 104: uint16(35004), + 105: uint16(34999), + 106: uint16(35005), + 107: uint16(34994), + 108: uint16(35073), + 109: uint16(35017), + 110: uint16(35221), + 111: uint16(35224), + 112: uint16(35223), + 113: uint16(35293), + 114: uint16(35290), + 115: uint16(35291), + 116: uint16(35406), + 117: uint16(35405), + 118: uint16(35385), + 119: uint16(35417), + 120: uint16(35392), + 121: uint16(35415), + 122: uint16(35416), + 123: uint16(35396), + 124: uint16(35397), + 125: uint16(35410), + 126: uint16(35400), + 127: uint16(35409), + 128: uint16(35402), + 129: uint16(35404), + 130: uint16(35407), + 131: uint16(35935), + 132: uint16(35969), + 133: uint16(35968), + 134: uint16(36026), + 135: uint16(36030), + 136: uint16(36016), + 137: uint16(36025), + 138: uint16(36021), + 139: uint16(36228), + 140: uint16(36224), + 141: uint16(36233), + 142: uint16(36312), + 143: uint16(36307), + 144: uint16(36301), + 145: uint16(36295), + 146: uint16(36310), + 147: uint16(36316), + 148: uint16(36303), + 149: uint16(36309), + 150: uint16(36313), + 151: uint16(36296), + 152: uint16(36311), + 153: uint16(36293), + 154: uint16(36591), + 155: uint16(36599), + 156: uint16(36602), + }, + 59: { + 0: uint16(36601), + 1: uint16(36582), + 2: uint16(36590), + 3: uint16(36581), + 4: uint16(36597), + 5: uint16(36583), + 6: uint16(36584), + 7: uint16(36598), + 8: uint16(36587), + 9: uint16(36593), + 10: uint16(36588), + 11: uint16(36596), + 12: uint16(36585), + 13: uint16(36909), + 14: uint16(36916), + 15: uint16(36911), + 16: uint16(37126), + 17: uint16(37164), + 18: uint16(37124), + 19: uint16(37119), + 20: uint16(37116), + 21: uint16(37128), + 22: uint16(37113), + 23: uint16(37115), + 24: uint16(37121), + 25: uint16(37120), + 26: uint16(37127), + 27: uint16(37125), + 28: uint16(37123), + 29: uint16(37217), + 30: uint16(37220), + 31: uint16(37215), + 32: uint16(37218), + 33: uint16(37216), + 34: uint16(37377), + 35: uint16(37386), + 36: uint16(37413), + 37: uint16(37379), + 38: uint16(37402), + 39: uint16(37414), + 40: uint16(37391), + 41: uint16(37388), + 42: uint16(37376), + 43: uint16(37394), + 44: uint16(37375), + 45: uint16(37373), + 46: uint16(37382), + 47: uint16(37380), + 48: uint16(37415), + 49: uint16(37378), + 50: uint16(37404), + 51: uint16(37412), + 52: uint16(37401), + 53: uint16(37399), + 54: uint16(37381), + 55: uint16(37398), + 56: uint16(38267), + 57: uint16(38285), + 58: uint16(38284), + 59: uint16(38288), + 60: uint16(38535), + 61: uint16(38526), + 62: uint16(38536), + 63: uint16(38537), + 64: uint16(38531), + 65: uint16(38528), + 66: uint16(38594), + 67: uint16(38600), + 68: uint16(38595), + 69: uint16(38641), + 70: uint16(38640), + 71: uint16(38764), + 72: uint16(38768), + 73: uint16(38766), + 74: uint16(38919), + 75: uint16(39081), + 76: uint16(39147), + 77: uint16(40166), + 78: uint16(40697), + 79: uint16(20099), + 80: uint16(20100), + 81: uint16(20150), + 82: uint16(20669), + 83: uint16(20671), + 84: uint16(20678), + 85: uint16(20654), + 86: uint16(20676), + 87: uint16(20682), + 88: uint16(20660), + 89: uint16(20680), + 90: uint16(20674), + 91: uint16(20656), + 92: uint16(20673), + 93: uint16(20666), + 94: uint16(20657), + 95: uint16(20683), + 96: uint16(20681), + 97: uint16(20662), + 98: uint16(20664), + 99: uint16(20951), + 100: uint16(21114), + 101: uint16(21112), + 102: uint16(21115), + 103: uint16(21116), + 104: uint16(21955), + 105: uint16(21979), + 106: uint16(21964), + 107: uint16(21968), + 108: uint16(21963), + 109: uint16(21962), + 110: uint16(21981), + 111: uint16(21952), + 112: uint16(21972), + 113: uint16(21956), + 114: uint16(21993), + 115: uint16(21951), + 116: uint16(21970), + 117: uint16(21901), + 118: uint16(21967), + 119: uint16(21973), + 120: uint16(21986), + 121: uint16(21974), + 122: uint16(21960), + 123: uint16(22002), + 124: uint16(21965), + 125: uint16(21977), + 126: uint16(21954), + 127: uint16(22292), + 128: uint16(22611), + 129: uint16(22632), + 130: uint16(22628), + 131: uint16(22607), + 132: uint16(22605), + 133: uint16(22601), + 134: uint16(22639), + 135: uint16(22613), + 136: uint16(22606), + 137: uint16(22621), + 138: uint16(22617), + 139: uint16(22629), + 140: uint16(22619), + 141: uint16(22589), + 142: uint16(22627), + 143: uint16(22641), + 144: uint16(22780), + 145: uint16(23239), + 146: uint16(23236), + 147: uint16(23243), + 148: uint16(23226), + 149: uint16(23224), + 150: uint16(23217), + 151: uint16(23221), + 152: uint16(23216), + 153: uint16(23231), + 154: uint16(23240), + 155: uint16(23227), + 156: uint16(23238), + }, + 60: { + 0: uint16(23223), + 1: uint16(23232), + 2: uint16(23242), + 3: uint16(23220), + 4: uint16(23222), + 5: uint16(23245), + 6: uint16(23225), + 7: uint16(23184), + 8: uint16(23510), + 9: uint16(23512), + 10: uint16(23513), + 11: uint16(23583), + 12: uint16(23603), + 13: uint16(23921), + 14: uint16(23907), + 15: uint16(23882), + 16: uint16(23909), + 17: uint16(23922), + 18: uint16(23916), + 19: uint16(23902), + 20: uint16(23912), + 21: uint16(23911), + 22: uint16(23906), + 23: uint16(24048), + 24: uint16(24143), + 25: uint16(24142), + 26: uint16(24138), + 27: uint16(24141), + 28: uint16(24139), + 29: uint16(24261), + 30: uint16(24268), + 31: uint16(24262), + 32: uint16(24267), + 33: uint16(24263), + 34: uint16(24384), + 35: uint16(24495), + 36: uint16(24493), + 37: uint16(24823), + 38: uint16(24905), + 39: uint16(24906), + 40: uint16(24875), + 41: uint16(24901), + 42: uint16(24886), + 43: uint16(24882), + 44: uint16(24878), + 45: uint16(24902), + 46: uint16(24879), + 47: uint16(24911), + 48: uint16(24873), + 49: uint16(24896), + 50: uint16(25120), + 51: uint16(37224), + 52: uint16(25123), + 53: uint16(25125), + 54: uint16(25124), + 55: uint16(25541), + 56: uint16(25585), + 57: uint16(25579), + 58: uint16(25616), + 59: uint16(25618), + 60: uint16(25609), + 61: uint16(25632), + 62: uint16(25636), + 63: uint16(25651), + 64: uint16(25667), + 65: uint16(25631), + 66: uint16(25621), + 67: uint16(25624), + 68: uint16(25657), + 69: uint16(25655), + 70: uint16(25634), + 71: uint16(25635), + 72: uint16(25612), + 73: uint16(25638), + 74: uint16(25648), + 75: uint16(25640), + 76: uint16(25665), + 77: uint16(25653), + 78: uint16(25647), + 79: uint16(25610), + 80: uint16(25626), + 81: uint16(25664), + 82: uint16(25637), + 83: uint16(25639), + 84: uint16(25611), + 85: uint16(25575), + 86: uint16(25627), + 87: uint16(25646), + 88: uint16(25633), + 89: uint16(25614), + 90: uint16(25967), + 91: uint16(26002), + 92: uint16(26067), + 93: uint16(26246), + 94: uint16(26252), + 95: uint16(26261), + 96: uint16(26256), + 97: uint16(26251), + 98: uint16(26250), + 99: uint16(26265), + 100: uint16(26260), + 101: uint16(26232), + 102: uint16(26400), + 103: uint16(26982), + 104: uint16(26975), + 105: uint16(26936), + 106: uint16(26958), + 107: uint16(26978), + 108: uint16(26993), + 109: uint16(26943), + 110: uint16(26949), + 111: uint16(26986), + 112: uint16(26937), + 113: uint16(26946), + 114: uint16(26967), + 115: uint16(26969), + 116: uint16(27002), + 117: uint16(26952), + 118: uint16(26953), + 119: uint16(26933), + 120: uint16(26988), + 121: uint16(26931), + 122: uint16(26941), + 123: uint16(26981), + 124: uint16(26864), + 125: uint16(27000), + 126: uint16(26932), + 127: uint16(26985), + 128: uint16(26944), + 129: uint16(26991), + 130: uint16(26948), + 131: uint16(26998), + 132: uint16(26968), + 133: uint16(26945), + 134: uint16(26996), + 135: uint16(26956), + 136: uint16(26939), + 137: uint16(26955), + 138: uint16(26935), + 139: uint16(26972), + 140: uint16(26959), + 141: uint16(26961), + 142: uint16(26930), + 143: uint16(26962), + 144: uint16(26927), + 145: uint16(27003), + 146: uint16(26940), + 147: uint16(27462), + 148: uint16(27461), + 149: uint16(27459), + 150: uint16(27458), + 151: uint16(27464), + 152: uint16(27457), + 153: uint16(27547), + 154: uint16(64013), + 155: uint16(27643), + 156: uint16(27644), + }, + 61: { + 0: uint16(27641), + 1: uint16(27639), + 2: uint16(27640), + 3: uint16(28315), + 4: uint16(28374), + 5: uint16(28360), + 6: uint16(28303), + 7: uint16(28352), + 8: uint16(28319), + 9: uint16(28307), + 10: uint16(28308), + 11: uint16(28320), + 12: uint16(28337), + 13: uint16(28345), + 14: uint16(28358), + 15: uint16(28370), + 16: uint16(28349), + 17: uint16(28353), + 18: uint16(28318), + 19: uint16(28361), + 20: uint16(28343), + 21: uint16(28336), + 22: uint16(28365), + 23: uint16(28326), + 24: uint16(28367), + 25: uint16(28338), + 26: uint16(28350), + 27: uint16(28355), + 28: uint16(28380), + 29: uint16(28376), + 30: uint16(28313), + 31: uint16(28306), + 32: uint16(28302), + 33: uint16(28301), + 34: uint16(28324), + 35: uint16(28321), + 36: uint16(28351), + 37: uint16(28339), + 38: uint16(28368), + 39: uint16(28362), + 40: uint16(28311), + 41: uint16(28334), + 42: uint16(28323), + 43: uint16(28999), + 44: uint16(29012), + 45: uint16(29010), + 46: uint16(29027), + 47: uint16(29024), + 48: uint16(28993), + 49: uint16(29021), + 50: uint16(29026), + 51: uint16(29042), + 52: uint16(29048), + 53: uint16(29034), + 54: uint16(29025), + 55: uint16(28994), + 56: uint16(29016), + 57: uint16(28995), + 58: uint16(29003), + 59: uint16(29040), + 60: uint16(29023), + 61: uint16(29008), + 62: uint16(29011), + 63: uint16(28996), + 64: uint16(29005), + 65: uint16(29018), + 66: uint16(29263), + 67: uint16(29325), + 68: uint16(29324), + 69: uint16(29329), + 70: uint16(29328), + 71: uint16(29326), + 72: uint16(29500), + 73: uint16(29506), + 74: uint16(29499), + 75: uint16(29498), + 76: uint16(29504), + 77: uint16(29514), + 78: uint16(29513), + 79: uint16(29764), + 80: uint16(29770), + 81: uint16(29771), + 82: uint16(29778), + 83: uint16(29777), + 84: uint16(29783), + 85: uint16(29760), + 86: uint16(29775), + 87: uint16(29776), + 88: uint16(29774), + 89: uint16(29762), + 90: uint16(29766), + 91: uint16(29773), + 92: uint16(29780), + 93: uint16(29921), + 94: uint16(29951), + 95: uint16(29950), + 96: uint16(29949), + 97: uint16(29981), + 98: uint16(30073), + 99: uint16(30071), + 100: uint16(27011), + 101: uint16(30191), + 102: uint16(30223), + 103: uint16(30211), + 104: uint16(30199), + 105: uint16(30206), + 106: uint16(30204), + 107: uint16(30201), + 108: uint16(30200), + 109: uint16(30224), + 110: uint16(30203), + 111: uint16(30198), + 112: uint16(30189), + 113: uint16(30197), + 114: uint16(30205), + 115: uint16(30361), + 116: uint16(30389), + 117: uint16(30429), + 118: uint16(30549), + 119: uint16(30559), + 120: uint16(30560), + 121: uint16(30546), + 122: uint16(30550), + 123: uint16(30554), + 124: uint16(30569), + 125: uint16(30567), + 126: uint16(30548), + 127: uint16(30553), + 128: uint16(30573), + 129: uint16(30688), + 130: uint16(30855), + 131: uint16(30874), + 132: uint16(30868), + 133: uint16(30863), + 134: uint16(30852), + 135: uint16(30869), + 136: uint16(30853), + 137: uint16(30854), + 138: uint16(30881), + 139: uint16(30851), + 140: uint16(30841), + 141: uint16(30873), + 142: uint16(30848), + 143: uint16(30870), + 144: uint16(30843), + 145: uint16(31100), + 146: uint16(31106), + 147: uint16(31101), + 148: uint16(31097), + 149: uint16(31249), + 150: uint16(31256), + 151: uint16(31257), + 152: uint16(31250), + 153: uint16(31255), + 154: uint16(31253), + 155: uint16(31266), + 156: uint16(31251), + }, + 62: { + 0: uint16(31259), + 1: uint16(31248), + 2: uint16(31395), + 3: uint16(31394), + 4: uint16(31390), + 5: uint16(31467), + 6: uint16(31590), + 7: uint16(31588), + 8: uint16(31597), + 9: uint16(31604), + 10: uint16(31593), + 11: uint16(31602), + 12: uint16(31589), + 13: uint16(31603), + 14: uint16(31601), + 15: uint16(31600), + 16: uint16(31585), + 17: uint16(31608), + 18: uint16(31606), + 19: uint16(31587), + 20: uint16(31922), + 21: uint16(31924), + 22: uint16(31919), + 23: uint16(32136), + 24: uint16(32134), + 25: uint16(32128), + 26: uint16(32141), + 27: uint16(32127), + 28: uint16(32133), + 29: uint16(32122), + 30: uint16(32142), + 31: uint16(32123), + 32: uint16(32131), + 33: uint16(32124), + 34: uint16(32140), + 35: uint16(32148), + 36: uint16(32132), + 37: uint16(32125), + 38: uint16(32146), + 39: uint16(32621), + 40: uint16(32619), + 41: uint16(32615), + 42: uint16(32616), + 43: uint16(32620), + 44: uint16(32678), + 45: uint16(32677), + 46: uint16(32679), + 47: uint16(32731), + 48: uint16(32732), + 49: uint16(32801), + 50: uint16(33124), + 51: uint16(33120), + 52: uint16(33143), + 53: uint16(33116), + 54: uint16(33129), + 55: uint16(33115), + 56: uint16(33122), + 57: uint16(33138), + 58: uint16(26401), + 59: uint16(33118), + 60: uint16(33142), + 61: uint16(33127), + 62: uint16(33135), + 63: uint16(33092), + 64: uint16(33121), + 65: uint16(33309), + 66: uint16(33353), + 67: uint16(33348), + 68: uint16(33344), + 69: uint16(33346), + 70: uint16(33349), + 71: uint16(34033), + 72: uint16(33855), + 73: uint16(33878), + 74: uint16(33910), + 75: uint16(33913), + 76: uint16(33935), + 77: uint16(33933), + 78: uint16(33893), + 79: uint16(33873), + 80: uint16(33856), + 81: uint16(33926), + 82: uint16(33895), + 83: uint16(33840), + 84: uint16(33869), + 85: uint16(33917), + 86: uint16(33882), + 87: uint16(33881), + 88: uint16(33908), + 89: uint16(33907), + 90: uint16(33885), + 91: uint16(34055), + 92: uint16(33886), + 93: uint16(33847), + 94: uint16(33850), + 95: uint16(33844), + 96: uint16(33914), + 97: uint16(33859), + 98: uint16(33912), + 99: uint16(33842), + 100: uint16(33861), + 101: uint16(33833), + 102: uint16(33753), + 103: uint16(33867), + 104: uint16(33839), + 105: uint16(33858), + 106: uint16(33837), + 107: uint16(33887), + 108: uint16(33904), + 109: uint16(33849), + 110: uint16(33870), + 111: uint16(33868), + 112: uint16(33874), + 113: uint16(33903), + 114: uint16(33989), + 115: uint16(33934), + 116: uint16(33851), + 117: uint16(33863), + 118: uint16(33846), + 119: uint16(33843), + 120: uint16(33896), + 121: uint16(33918), + 122: uint16(33860), + 123: uint16(33835), + 124: uint16(33888), + 125: uint16(33876), + 126: uint16(33902), + 127: uint16(33872), + 128: uint16(34571), + 129: uint16(34564), + 130: uint16(34551), + 131: uint16(34572), + 132: uint16(34554), + 133: uint16(34518), + 134: uint16(34549), + 135: uint16(34637), + 136: uint16(34552), + 137: uint16(34574), + 138: uint16(34569), + 139: uint16(34561), + 140: uint16(34550), + 141: uint16(34573), + 142: uint16(34565), + 143: uint16(35030), + 144: uint16(35019), + 145: uint16(35021), + 146: uint16(35022), + 147: uint16(35038), + 148: uint16(35035), + 149: uint16(35034), + 150: uint16(35020), + 151: uint16(35024), + 152: uint16(35205), + 153: uint16(35227), + 154: uint16(35295), + 155: uint16(35301), + 156: uint16(35300), + }, + 63: { + 0: uint16(35297), + 1: uint16(35296), + 2: uint16(35298), + 3: uint16(35292), + 4: uint16(35302), + 5: uint16(35446), + 6: uint16(35462), + 7: uint16(35455), + 8: uint16(35425), + 9: uint16(35391), + 10: uint16(35447), + 11: uint16(35458), + 12: uint16(35460), + 13: uint16(35445), + 14: uint16(35459), + 15: uint16(35457), + 16: uint16(35444), + 17: uint16(35450), + 18: uint16(35900), + 19: uint16(35915), + 20: uint16(35914), + 21: uint16(35941), + 22: uint16(35940), + 23: uint16(35942), + 24: uint16(35974), + 25: uint16(35972), + 26: uint16(35973), + 27: uint16(36044), + 28: uint16(36200), + 29: uint16(36201), + 30: uint16(36241), + 31: uint16(36236), + 32: uint16(36238), + 33: uint16(36239), + 34: uint16(36237), + 35: uint16(36243), + 36: uint16(36244), + 37: uint16(36240), + 38: uint16(36242), + 39: uint16(36336), + 40: uint16(36320), + 41: uint16(36332), + 42: uint16(36337), + 43: uint16(36334), + 44: uint16(36304), + 45: uint16(36329), + 46: uint16(36323), + 47: uint16(36322), + 48: uint16(36327), + 49: uint16(36338), + 50: uint16(36331), + 51: uint16(36340), + 52: uint16(36614), + 53: uint16(36607), + 54: uint16(36609), + 55: uint16(36608), + 56: uint16(36613), + 57: uint16(36615), + 58: uint16(36616), + 59: uint16(36610), + 60: uint16(36619), + 61: uint16(36946), + 62: uint16(36927), + 63: uint16(36932), + 64: uint16(36937), + 65: uint16(36925), + 66: uint16(37136), + 67: uint16(37133), + 68: uint16(37135), + 69: uint16(37137), + 70: uint16(37142), + 71: uint16(37140), + 72: uint16(37131), + 73: uint16(37134), + 74: uint16(37230), + 75: uint16(37231), + 76: uint16(37448), + 77: uint16(37458), + 78: uint16(37424), + 79: uint16(37434), + 80: uint16(37478), + 81: uint16(37427), + 82: uint16(37477), + 83: uint16(37470), + 84: uint16(37507), + 85: uint16(37422), + 86: uint16(37450), + 87: uint16(37446), + 88: uint16(37485), + 89: uint16(37484), + 90: uint16(37455), + 91: uint16(37472), + 92: uint16(37479), + 93: uint16(37487), + 94: uint16(37430), + 95: uint16(37473), + 96: uint16(37488), + 97: uint16(37425), + 98: uint16(37460), + 99: uint16(37475), + 100: uint16(37456), + 101: uint16(37490), + 102: uint16(37454), + 103: uint16(37459), + 104: uint16(37452), + 105: uint16(37462), + 106: uint16(37426), + 107: uint16(38303), + 108: uint16(38300), + 109: uint16(38302), + 110: uint16(38299), + 111: uint16(38546), + 112: uint16(38547), + 113: uint16(38545), + 114: uint16(38551), + 115: uint16(38606), + 116: uint16(38650), + 117: uint16(38653), + 118: uint16(38648), + 119: uint16(38645), + 120: uint16(38771), + 121: uint16(38775), + 122: uint16(38776), + 123: uint16(38770), + 124: uint16(38927), + 125: uint16(38925), + 126: uint16(38926), + 127: uint16(39084), + 128: uint16(39158), + 129: uint16(39161), + 130: uint16(39343), + 131: uint16(39346), + 132: uint16(39344), + 133: uint16(39349), + 134: uint16(39597), + 135: uint16(39595), + 136: uint16(39771), + 137: uint16(40170), + 138: uint16(40173), + 139: uint16(40167), + 140: uint16(40576), + 141: uint16(40701), + 142: uint16(20710), + 143: uint16(20692), + 144: uint16(20695), + 145: uint16(20712), + 146: uint16(20723), + 147: uint16(20699), + 148: uint16(20714), + 149: uint16(20701), + 150: uint16(20708), + 151: uint16(20691), + 152: uint16(20716), + 153: uint16(20720), + 154: uint16(20719), + 155: uint16(20707), + 156: uint16(20704), + }, + 64: { + 0: uint16(20952), + 1: uint16(21120), + 2: uint16(21121), + 3: uint16(21225), + 4: uint16(21227), + 5: uint16(21296), + 6: uint16(21420), + 7: uint16(22055), + 8: uint16(22037), + 9: uint16(22028), + 10: uint16(22034), + 11: uint16(22012), + 12: uint16(22031), + 13: uint16(22044), + 14: uint16(22017), + 15: uint16(22035), + 16: uint16(22018), + 17: uint16(22010), + 18: uint16(22045), + 19: uint16(22020), + 20: uint16(22015), + 21: uint16(22009), + 22: uint16(22665), + 23: uint16(22652), + 24: uint16(22672), + 25: uint16(22680), + 26: uint16(22662), + 27: uint16(22657), + 28: uint16(22655), + 29: uint16(22644), + 30: uint16(22667), + 31: uint16(22650), + 32: uint16(22663), + 33: uint16(22673), + 34: uint16(22670), + 35: uint16(22646), + 36: uint16(22658), + 37: uint16(22664), + 38: uint16(22651), + 39: uint16(22676), + 40: uint16(22671), + 41: uint16(22782), + 42: uint16(22891), + 43: uint16(23260), + 44: uint16(23278), + 45: uint16(23269), + 46: uint16(23253), + 47: uint16(23274), + 48: uint16(23258), + 49: uint16(23277), + 50: uint16(23275), + 51: uint16(23283), + 52: uint16(23266), + 53: uint16(23264), + 54: uint16(23259), + 55: uint16(23276), + 56: uint16(23262), + 57: uint16(23261), + 58: uint16(23257), + 59: uint16(23272), + 60: uint16(23263), + 61: uint16(23415), + 62: uint16(23520), + 63: uint16(23523), + 64: uint16(23651), + 65: uint16(23938), + 66: uint16(23936), + 67: uint16(23933), + 68: uint16(23942), + 69: uint16(23930), + 70: uint16(23937), + 71: uint16(23927), + 72: uint16(23946), + 73: uint16(23945), + 74: uint16(23944), + 75: uint16(23934), + 76: uint16(23932), + 77: uint16(23949), + 78: uint16(23929), + 79: uint16(23935), + 80: uint16(24152), + 81: uint16(24153), + 82: uint16(24147), + 83: uint16(24280), + 84: uint16(24273), + 85: uint16(24279), + 86: uint16(24270), + 87: uint16(24284), + 88: uint16(24277), + 89: uint16(24281), + 90: uint16(24274), + 91: uint16(24276), + 92: uint16(24388), + 93: uint16(24387), + 94: uint16(24431), + 95: uint16(24502), + 96: uint16(24876), + 97: uint16(24872), + 98: uint16(24897), + 99: uint16(24926), + 100: uint16(24945), + 101: uint16(24947), + 102: uint16(24914), + 103: uint16(24915), + 104: uint16(24946), + 105: uint16(24940), + 106: uint16(24960), + 107: uint16(24948), + 108: uint16(24916), + 109: uint16(24954), + 110: uint16(24923), + 111: uint16(24933), + 112: uint16(24891), + 113: uint16(24938), + 114: uint16(24929), + 115: uint16(24918), + 116: uint16(25129), + 117: uint16(25127), + 118: uint16(25131), + 119: uint16(25643), + 120: uint16(25677), + 121: uint16(25691), + 122: uint16(25693), + 123: uint16(25716), + 124: uint16(25718), + 125: uint16(25714), + 126: uint16(25715), + 127: uint16(25725), + 128: uint16(25717), + 129: uint16(25702), + 130: uint16(25766), + 131: uint16(25678), + 132: uint16(25730), + 133: uint16(25694), + 134: uint16(25692), + 135: uint16(25675), + 136: uint16(25683), + 137: uint16(25696), + 138: uint16(25680), + 139: uint16(25727), + 140: uint16(25663), + 141: uint16(25708), + 142: uint16(25707), + 143: uint16(25689), + 144: uint16(25701), + 145: uint16(25719), + 146: uint16(25971), + 147: uint16(26016), + 148: uint16(26273), + 149: uint16(26272), + 150: uint16(26271), + 151: uint16(26373), + 152: uint16(26372), + 153: uint16(26402), + 154: uint16(27057), + 155: uint16(27062), + 156: uint16(27081), + }, + 65: { + 0: uint16(27040), + 1: uint16(27086), + 2: uint16(27030), + 3: uint16(27056), + 4: uint16(27052), + 5: uint16(27068), + 6: uint16(27025), + 7: uint16(27033), + 8: uint16(27022), + 9: uint16(27047), + 10: uint16(27021), + 11: uint16(27049), + 12: uint16(27070), + 13: uint16(27055), + 14: uint16(27071), + 15: uint16(27076), + 16: uint16(27069), + 17: uint16(27044), + 18: uint16(27092), + 19: uint16(27065), + 20: uint16(27082), + 21: uint16(27034), + 22: uint16(27087), + 23: uint16(27059), + 24: uint16(27027), + 25: uint16(27050), + 26: uint16(27041), + 27: uint16(27038), + 28: uint16(27097), + 29: uint16(27031), + 30: uint16(27024), + 31: uint16(27074), + 32: uint16(27061), + 33: uint16(27045), + 34: uint16(27078), + 35: uint16(27466), + 36: uint16(27469), + 37: uint16(27467), + 38: uint16(27550), + 39: uint16(27551), + 40: uint16(27552), + 41: uint16(27587), + 42: uint16(27588), + 43: uint16(27646), + 44: uint16(28366), + 45: uint16(28405), + 46: uint16(28401), + 47: uint16(28419), + 48: uint16(28453), + 49: uint16(28408), + 50: uint16(28471), + 51: uint16(28411), + 52: uint16(28462), + 53: uint16(28425), + 54: uint16(28494), + 55: uint16(28441), + 56: uint16(28442), + 57: uint16(28455), + 58: uint16(28440), + 59: uint16(28475), + 60: uint16(28434), + 61: uint16(28397), + 62: uint16(28426), + 63: uint16(28470), + 64: uint16(28531), + 65: uint16(28409), + 66: uint16(28398), + 67: uint16(28461), + 68: uint16(28480), + 69: uint16(28464), + 70: uint16(28476), + 71: uint16(28469), + 72: uint16(28395), + 73: uint16(28423), + 74: uint16(28430), + 75: uint16(28483), + 76: uint16(28421), + 77: uint16(28413), + 78: uint16(28406), + 79: uint16(28473), + 80: uint16(28444), + 81: uint16(28412), + 82: uint16(28474), + 83: uint16(28447), + 84: uint16(28429), + 85: uint16(28446), + 86: uint16(28424), + 87: uint16(28449), + 88: uint16(29063), + 89: uint16(29072), + 90: uint16(29065), + 91: uint16(29056), + 92: uint16(29061), + 93: uint16(29058), + 94: uint16(29071), + 95: uint16(29051), + 96: uint16(29062), + 97: uint16(29057), + 98: uint16(29079), + 99: uint16(29252), + 100: uint16(29267), + 101: uint16(29335), + 102: uint16(29333), + 103: uint16(29331), + 104: uint16(29507), + 105: uint16(29517), + 106: uint16(29521), + 107: uint16(29516), + 108: uint16(29794), + 109: uint16(29811), + 110: uint16(29809), + 111: uint16(29813), + 112: uint16(29810), + 113: uint16(29799), + 114: uint16(29806), + 115: uint16(29952), + 116: uint16(29954), + 117: uint16(29955), + 118: uint16(30077), + 119: uint16(30096), + 120: uint16(30230), + 121: uint16(30216), + 122: uint16(30220), + 123: uint16(30229), + 124: uint16(30225), + 125: uint16(30218), + 126: uint16(30228), + 127: uint16(30392), + 128: uint16(30593), + 129: uint16(30588), + 130: uint16(30597), + 131: uint16(30594), + 132: uint16(30574), + 133: uint16(30592), + 134: uint16(30575), + 135: uint16(30590), + 136: uint16(30595), + 137: uint16(30898), + 138: uint16(30890), + 139: uint16(30900), + 140: uint16(30893), + 141: uint16(30888), + 142: uint16(30846), + 143: uint16(30891), + 144: uint16(30878), + 145: uint16(30885), + 146: uint16(30880), + 147: uint16(30892), + 148: uint16(30882), + 149: uint16(30884), + 150: uint16(31128), + 151: uint16(31114), + 152: uint16(31115), + 153: uint16(31126), + 154: uint16(31125), + 155: uint16(31124), + 156: uint16(31123), + }, + 66: { + 0: uint16(31127), + 1: uint16(31112), + 2: uint16(31122), + 3: uint16(31120), + 4: uint16(31275), + 5: uint16(31306), + 6: uint16(31280), + 7: uint16(31279), + 8: uint16(31272), + 9: uint16(31270), + 10: uint16(31400), + 11: uint16(31403), + 12: uint16(31404), + 13: uint16(31470), + 14: uint16(31624), + 15: uint16(31644), + 16: uint16(31626), + 17: uint16(31633), + 18: uint16(31632), + 19: uint16(31638), + 20: uint16(31629), + 21: uint16(31628), + 22: uint16(31643), + 23: uint16(31630), + 24: uint16(31621), + 25: uint16(31640), + 26: uint16(21124), + 27: uint16(31641), + 28: uint16(31652), + 29: uint16(31618), + 30: uint16(31931), + 31: uint16(31935), + 32: uint16(31932), + 33: uint16(31930), + 34: uint16(32167), + 35: uint16(32183), + 36: uint16(32194), + 37: uint16(32163), + 38: uint16(32170), + 39: uint16(32193), + 40: uint16(32192), + 41: uint16(32197), + 42: uint16(32157), + 43: uint16(32206), + 44: uint16(32196), + 45: uint16(32198), + 46: uint16(32203), + 47: uint16(32204), + 48: uint16(32175), + 49: uint16(32185), + 50: uint16(32150), + 51: uint16(32188), + 52: uint16(32159), + 53: uint16(32166), + 54: uint16(32174), + 55: uint16(32169), + 56: uint16(32161), + 57: uint16(32201), + 58: uint16(32627), + 59: uint16(32738), + 60: uint16(32739), + 61: uint16(32741), + 62: uint16(32734), + 63: uint16(32804), + 64: uint16(32861), + 65: uint16(32860), + 66: uint16(33161), + 67: uint16(33158), + 68: uint16(33155), + 69: uint16(33159), + 70: uint16(33165), + 71: uint16(33164), + 72: uint16(33163), + 73: uint16(33301), + 74: uint16(33943), + 75: uint16(33956), + 76: uint16(33953), + 77: uint16(33951), + 78: uint16(33978), + 79: uint16(33998), + 80: uint16(33986), + 81: uint16(33964), + 82: uint16(33966), + 83: uint16(33963), + 84: uint16(33977), + 85: uint16(33972), + 86: uint16(33985), + 87: uint16(33997), + 88: uint16(33962), + 89: uint16(33946), + 90: uint16(33969), + 91: uint16(34000), + 92: uint16(33949), + 93: uint16(33959), + 94: uint16(33979), + 95: uint16(33954), + 96: uint16(33940), + 97: uint16(33991), + 98: uint16(33996), + 99: uint16(33947), + 100: uint16(33961), + 101: uint16(33967), + 102: uint16(33960), + 103: uint16(34006), + 104: uint16(33944), + 105: uint16(33974), + 106: uint16(33999), + 107: uint16(33952), + 108: uint16(34007), + 109: uint16(34004), + 110: uint16(34002), + 111: uint16(34011), + 112: uint16(33968), + 113: uint16(33937), + 114: uint16(34401), + 115: uint16(34611), + 116: uint16(34595), + 117: uint16(34600), + 118: uint16(34667), + 119: uint16(34624), + 120: uint16(34606), + 121: uint16(34590), + 122: uint16(34593), + 123: uint16(34585), + 124: uint16(34587), + 125: uint16(34627), + 126: uint16(34604), + 127: uint16(34625), + 128: uint16(34622), + 129: uint16(34630), + 130: uint16(34592), + 131: uint16(34610), + 132: uint16(34602), + 133: uint16(34605), + 134: uint16(34620), + 135: uint16(34578), + 136: uint16(34618), + 137: uint16(34609), + 138: uint16(34613), + 139: uint16(34626), + 140: uint16(34598), + 141: uint16(34599), + 142: uint16(34616), + 143: uint16(34596), + 144: uint16(34586), + 145: uint16(34608), + 146: uint16(34577), + 147: uint16(35063), + 148: uint16(35047), + 149: uint16(35057), + 150: uint16(35058), + 151: uint16(35066), + 152: uint16(35070), + 153: uint16(35054), + 154: uint16(35068), + 155: uint16(35062), + 156: uint16(35067), + }, + 67: { + 0: uint16(35056), + 1: uint16(35052), + 2: uint16(35051), + 3: uint16(35229), + 4: uint16(35233), + 5: uint16(35231), + 6: uint16(35230), + 7: uint16(35305), + 8: uint16(35307), + 9: uint16(35304), + 10: uint16(35499), + 11: uint16(35481), + 12: uint16(35467), + 13: uint16(35474), + 14: uint16(35471), + 15: uint16(35478), + 16: uint16(35901), + 17: uint16(35944), + 18: uint16(35945), + 19: uint16(36053), + 20: uint16(36047), + 21: uint16(36055), + 22: uint16(36246), + 23: uint16(36361), + 24: uint16(36354), + 25: uint16(36351), + 26: uint16(36365), + 27: uint16(36349), + 28: uint16(36362), + 29: uint16(36355), + 30: uint16(36359), + 31: uint16(36358), + 32: uint16(36357), + 33: uint16(36350), + 34: uint16(36352), + 35: uint16(36356), + 36: uint16(36624), + 37: uint16(36625), + 38: uint16(36622), + 39: uint16(36621), + 40: uint16(37155), + 41: uint16(37148), + 42: uint16(37152), + 43: uint16(37154), + 44: uint16(37151), + 45: uint16(37149), + 46: uint16(37146), + 47: uint16(37156), + 48: uint16(37153), + 49: uint16(37147), + 50: uint16(37242), + 51: uint16(37234), + 52: uint16(37241), + 53: uint16(37235), + 54: uint16(37541), + 55: uint16(37540), + 56: uint16(37494), + 57: uint16(37531), + 58: uint16(37498), + 59: uint16(37536), + 60: uint16(37524), + 61: uint16(37546), + 62: uint16(37517), + 63: uint16(37542), + 64: uint16(37530), + 65: uint16(37547), + 66: uint16(37497), + 67: uint16(37527), + 68: uint16(37503), + 69: uint16(37539), + 70: uint16(37614), + 71: uint16(37518), + 72: uint16(37506), + 73: uint16(37525), + 74: uint16(37538), + 75: uint16(37501), + 76: uint16(37512), + 77: uint16(37537), + 78: uint16(37514), + 79: uint16(37510), + 80: uint16(37516), + 81: uint16(37529), + 82: uint16(37543), + 83: uint16(37502), + 84: uint16(37511), + 85: uint16(37545), + 86: uint16(37533), + 87: uint16(37515), + 88: uint16(37421), + 89: uint16(38558), + 90: uint16(38561), + 91: uint16(38655), + 92: uint16(38744), + 93: uint16(38781), + 94: uint16(38778), + 95: uint16(38782), + 96: uint16(38787), + 97: uint16(38784), + 98: uint16(38786), + 99: uint16(38779), + 100: uint16(38788), + 101: uint16(38785), + 102: uint16(38783), + 103: uint16(38862), + 104: uint16(38861), + 105: uint16(38934), + 106: uint16(39085), + 107: uint16(39086), + 108: uint16(39170), + 109: uint16(39168), + 110: uint16(39175), + 111: uint16(39325), + 112: uint16(39324), + 113: uint16(39363), + 114: uint16(39353), + 115: uint16(39355), + 116: uint16(39354), + 117: uint16(39362), + 118: uint16(39357), + 119: uint16(39367), + 120: uint16(39601), + 121: uint16(39651), + 122: uint16(39655), + 123: uint16(39742), + 124: uint16(39743), + 125: uint16(39776), + 126: uint16(39777), + 127: uint16(39775), + 128: uint16(40177), + 129: uint16(40178), + 130: uint16(40181), + 131: uint16(40615), + 132: uint16(20735), + 133: uint16(20739), + 134: uint16(20784), + 135: uint16(20728), + 136: uint16(20742), + 137: uint16(20743), + 138: uint16(20726), + 139: uint16(20734), + 140: uint16(20747), + 141: uint16(20748), + 142: uint16(20733), + 143: uint16(20746), + 144: uint16(21131), + 145: uint16(21132), + 146: uint16(21233), + 147: uint16(21231), + 148: uint16(22088), + 149: uint16(22082), + 150: uint16(22092), + 151: uint16(22069), + 152: uint16(22081), + 153: uint16(22090), + 154: uint16(22089), + 155: uint16(22086), + 156: uint16(22104), + }, + 68: { + 0: uint16(22106), + 1: uint16(22080), + 2: uint16(22067), + 3: uint16(22077), + 4: uint16(22060), + 5: uint16(22078), + 6: uint16(22072), + 7: uint16(22058), + 8: uint16(22074), + 9: uint16(22298), + 10: uint16(22699), + 11: uint16(22685), + 12: uint16(22705), + 13: uint16(22688), + 14: uint16(22691), + 15: uint16(22703), + 16: uint16(22700), + 17: uint16(22693), + 18: uint16(22689), + 19: uint16(22783), + 20: uint16(23295), + 21: uint16(23284), + 22: uint16(23293), + 23: uint16(23287), + 24: uint16(23286), + 25: uint16(23299), + 26: uint16(23288), + 27: uint16(23298), + 28: uint16(23289), + 29: uint16(23297), + 30: uint16(23303), + 31: uint16(23301), + 32: uint16(23311), + 33: uint16(23655), + 34: uint16(23961), + 35: uint16(23959), + 36: uint16(23967), + 37: uint16(23954), + 38: uint16(23970), + 39: uint16(23955), + 40: uint16(23957), + 41: uint16(23968), + 42: uint16(23964), + 43: uint16(23969), + 44: uint16(23962), + 45: uint16(23966), + 46: uint16(24169), + 47: uint16(24157), + 48: uint16(24160), + 49: uint16(24156), + 50: uint16(32243), + 51: uint16(24283), + 52: uint16(24286), + 53: uint16(24289), + 54: uint16(24393), + 55: uint16(24498), + 56: uint16(24971), + 57: uint16(24963), + 58: uint16(24953), + 59: uint16(25009), + 60: uint16(25008), + 61: uint16(24994), + 62: uint16(24969), + 63: uint16(24987), + 64: uint16(24979), + 65: uint16(25007), + 66: uint16(25005), + 67: uint16(24991), + 68: uint16(24978), + 69: uint16(25002), + 70: uint16(24993), + 71: uint16(24973), + 72: uint16(24934), + 73: uint16(25011), + 74: uint16(25133), + 75: uint16(25710), + 76: uint16(25712), + 77: uint16(25750), + 78: uint16(25760), + 79: uint16(25733), + 80: uint16(25751), + 81: uint16(25756), + 82: uint16(25743), + 83: uint16(25739), + 84: uint16(25738), + 85: uint16(25740), + 86: uint16(25763), + 87: uint16(25759), + 88: uint16(25704), + 89: uint16(25777), + 90: uint16(25752), + 91: uint16(25974), + 92: uint16(25978), + 93: uint16(25977), + 94: uint16(25979), + 95: uint16(26034), + 96: uint16(26035), + 97: uint16(26293), + 98: uint16(26288), + 99: uint16(26281), + 100: uint16(26290), + 101: uint16(26295), + 102: uint16(26282), + 103: uint16(26287), + 104: uint16(27136), + 105: uint16(27142), + 106: uint16(27159), + 107: uint16(27109), + 108: uint16(27128), + 109: uint16(27157), + 110: uint16(27121), + 111: uint16(27108), + 112: uint16(27168), + 113: uint16(27135), + 114: uint16(27116), + 115: uint16(27106), + 116: uint16(27163), + 117: uint16(27165), + 118: uint16(27134), + 119: uint16(27175), + 120: uint16(27122), + 121: uint16(27118), + 122: uint16(27156), + 123: uint16(27127), + 124: uint16(27111), + 125: uint16(27200), + 126: uint16(27144), + 127: uint16(27110), + 128: uint16(27131), + 129: uint16(27149), + 130: uint16(27132), + 131: uint16(27115), + 132: uint16(27145), + 133: uint16(27140), + 134: uint16(27160), + 135: uint16(27173), + 136: uint16(27151), + 137: uint16(27126), + 138: uint16(27174), + 139: uint16(27143), + 140: uint16(27124), + 141: uint16(27158), + 142: uint16(27473), + 143: uint16(27557), + 144: uint16(27555), + 145: uint16(27554), + 146: uint16(27558), + 147: uint16(27649), + 148: uint16(27648), + 149: uint16(27647), + 150: uint16(27650), + 151: uint16(28481), + 152: uint16(28454), + 153: uint16(28542), + 154: uint16(28551), + 155: uint16(28614), + 156: uint16(28562), + }, + 69: { + 0: uint16(28557), + 1: uint16(28553), + 2: uint16(28556), + 3: uint16(28514), + 4: uint16(28495), + 5: uint16(28549), + 6: uint16(28506), + 7: uint16(28566), + 8: uint16(28534), + 9: uint16(28524), + 10: uint16(28546), + 11: uint16(28501), + 12: uint16(28530), + 13: uint16(28498), + 14: uint16(28496), + 15: uint16(28503), + 16: uint16(28564), + 17: uint16(28563), + 18: uint16(28509), + 19: uint16(28416), + 20: uint16(28513), + 21: uint16(28523), + 22: uint16(28541), + 23: uint16(28519), + 24: uint16(28560), + 25: uint16(28499), + 26: uint16(28555), + 27: uint16(28521), + 28: uint16(28543), + 29: uint16(28565), + 30: uint16(28515), + 31: uint16(28535), + 32: uint16(28522), + 33: uint16(28539), + 34: uint16(29106), + 35: uint16(29103), + 36: uint16(29083), + 37: uint16(29104), + 38: uint16(29088), + 39: uint16(29082), + 40: uint16(29097), + 41: uint16(29109), + 42: uint16(29085), + 43: uint16(29093), + 44: uint16(29086), + 45: uint16(29092), + 46: uint16(29089), + 47: uint16(29098), + 48: uint16(29084), + 49: uint16(29095), + 50: uint16(29107), + 51: uint16(29336), + 52: uint16(29338), + 53: uint16(29528), + 54: uint16(29522), + 55: uint16(29534), + 56: uint16(29535), + 57: uint16(29536), + 58: uint16(29533), + 59: uint16(29531), + 60: uint16(29537), + 61: uint16(29530), + 62: uint16(29529), + 63: uint16(29538), + 64: uint16(29831), + 65: uint16(29833), + 66: uint16(29834), + 67: uint16(29830), + 68: uint16(29825), + 69: uint16(29821), + 70: uint16(29829), + 71: uint16(29832), + 72: uint16(29820), + 73: uint16(29817), + 74: uint16(29960), + 75: uint16(29959), + 76: uint16(30078), + 77: uint16(30245), + 78: uint16(30238), + 79: uint16(30233), + 80: uint16(30237), + 81: uint16(30236), + 82: uint16(30243), + 83: uint16(30234), + 84: uint16(30248), + 85: uint16(30235), + 86: uint16(30364), + 87: uint16(30365), + 88: uint16(30366), + 89: uint16(30363), + 90: uint16(30605), + 91: uint16(30607), + 92: uint16(30601), + 93: uint16(30600), + 94: uint16(30925), + 95: uint16(30907), + 96: uint16(30927), + 97: uint16(30924), + 98: uint16(30929), + 99: uint16(30926), + 100: uint16(30932), + 101: uint16(30920), + 102: uint16(30915), + 103: uint16(30916), + 104: uint16(30921), + 105: uint16(31130), + 106: uint16(31137), + 107: uint16(31136), + 108: uint16(31132), + 109: uint16(31138), + 110: uint16(31131), + 111: uint16(27510), + 112: uint16(31289), + 113: uint16(31410), + 114: uint16(31412), + 115: uint16(31411), + 116: uint16(31671), + 117: uint16(31691), + 118: uint16(31678), + 119: uint16(31660), + 120: uint16(31694), + 121: uint16(31663), + 122: uint16(31673), + 123: uint16(31690), + 124: uint16(31669), + 125: uint16(31941), + 126: uint16(31944), + 127: uint16(31948), + 128: uint16(31947), + 129: uint16(32247), + 130: uint16(32219), + 131: uint16(32234), + 132: uint16(32231), + 133: uint16(32215), + 134: uint16(32225), + 135: uint16(32259), + 136: uint16(32250), + 137: uint16(32230), + 138: uint16(32246), + 139: uint16(32241), + 140: uint16(32240), + 141: uint16(32238), + 142: uint16(32223), + 143: uint16(32630), + 144: uint16(32684), + 145: uint16(32688), + 146: uint16(32685), + 147: uint16(32749), + 148: uint16(32747), + 149: uint16(32746), + 150: uint16(32748), + 151: uint16(32742), + 152: uint16(32744), + 153: uint16(32868), + 154: uint16(32871), + 155: uint16(33187), + 156: uint16(33183), + }, + 70: { + 0: uint16(33182), + 1: uint16(33173), + 2: uint16(33186), + 3: uint16(33177), + 4: uint16(33175), + 5: uint16(33302), + 6: uint16(33359), + 7: uint16(33363), + 8: uint16(33362), + 9: uint16(33360), + 10: uint16(33358), + 11: uint16(33361), + 12: uint16(34084), + 13: uint16(34107), + 14: uint16(34063), + 15: uint16(34048), + 16: uint16(34089), + 17: uint16(34062), + 18: uint16(34057), + 19: uint16(34061), + 20: uint16(34079), + 21: uint16(34058), + 22: uint16(34087), + 23: uint16(34076), + 24: uint16(34043), + 25: uint16(34091), + 26: uint16(34042), + 27: uint16(34056), + 28: uint16(34060), + 29: uint16(34036), + 30: uint16(34090), + 31: uint16(34034), + 32: uint16(34069), + 33: uint16(34039), + 34: uint16(34027), + 35: uint16(34035), + 36: uint16(34044), + 37: uint16(34066), + 38: uint16(34026), + 39: uint16(34025), + 40: uint16(34070), + 41: uint16(34046), + 42: uint16(34088), + 43: uint16(34077), + 44: uint16(34094), + 45: uint16(34050), + 46: uint16(34045), + 47: uint16(34078), + 48: uint16(34038), + 49: uint16(34097), + 50: uint16(34086), + 51: uint16(34023), + 52: uint16(34024), + 53: uint16(34032), + 54: uint16(34031), + 55: uint16(34041), + 56: uint16(34072), + 57: uint16(34080), + 58: uint16(34096), + 59: uint16(34059), + 60: uint16(34073), + 61: uint16(34095), + 62: uint16(34402), + 63: uint16(34646), + 64: uint16(34659), + 65: uint16(34660), + 66: uint16(34679), + 67: uint16(34785), + 68: uint16(34675), + 69: uint16(34648), + 70: uint16(34644), + 71: uint16(34651), + 72: uint16(34642), + 73: uint16(34657), + 74: uint16(34650), + 75: uint16(34641), + 76: uint16(34654), + 77: uint16(34669), + 78: uint16(34666), + 79: uint16(34640), + 80: uint16(34638), + 81: uint16(34655), + 82: uint16(34653), + 83: uint16(34671), + 84: uint16(34668), + 85: uint16(34682), + 86: uint16(34670), + 87: uint16(34652), + 88: uint16(34661), + 89: uint16(34639), + 90: uint16(34683), + 91: uint16(34677), + 92: uint16(34658), + 93: uint16(34663), + 94: uint16(34665), + 95: uint16(34906), + 96: uint16(35077), + 97: uint16(35084), + 98: uint16(35092), + 99: uint16(35083), + 100: uint16(35095), + 101: uint16(35096), + 102: uint16(35097), + 103: uint16(35078), + 104: uint16(35094), + 105: uint16(35089), + 106: uint16(35086), + 107: uint16(35081), + 108: uint16(35234), + 109: uint16(35236), + 110: uint16(35235), + 111: uint16(35309), + 112: uint16(35312), + 113: uint16(35308), + 114: uint16(35535), + 115: uint16(35526), + 116: uint16(35512), + 117: uint16(35539), + 118: uint16(35537), + 119: uint16(35540), + 120: uint16(35541), + 121: uint16(35515), + 122: uint16(35543), + 123: uint16(35518), + 124: uint16(35520), + 125: uint16(35525), + 126: uint16(35544), + 127: uint16(35523), + 128: uint16(35514), + 129: uint16(35517), + 130: uint16(35545), + 131: uint16(35902), + 132: uint16(35917), + 133: uint16(35983), + 134: uint16(36069), + 135: uint16(36063), + 136: uint16(36057), + 137: uint16(36072), + 138: uint16(36058), + 139: uint16(36061), + 140: uint16(36071), + 141: uint16(36256), + 142: uint16(36252), + 143: uint16(36257), + 144: uint16(36251), + 145: uint16(36384), + 146: uint16(36387), + 147: uint16(36389), + 148: uint16(36388), + 149: uint16(36398), + 150: uint16(36373), + 151: uint16(36379), + 152: uint16(36374), + 153: uint16(36369), + 154: uint16(36377), + 155: uint16(36390), + 156: uint16(36391), + }, + 71: { + 0: uint16(36372), + 1: uint16(36370), + 2: uint16(36376), + 3: uint16(36371), + 4: uint16(36380), + 5: uint16(36375), + 6: uint16(36378), + 7: uint16(36652), + 8: uint16(36644), + 9: uint16(36632), + 10: uint16(36634), + 11: uint16(36640), + 12: uint16(36643), + 13: uint16(36630), + 14: uint16(36631), + 15: uint16(36979), + 16: uint16(36976), + 17: uint16(36975), + 18: uint16(36967), + 19: uint16(36971), + 20: uint16(37167), + 21: uint16(37163), + 22: uint16(37161), + 23: uint16(37162), + 24: uint16(37170), + 25: uint16(37158), + 26: uint16(37166), + 27: uint16(37253), + 28: uint16(37254), + 29: uint16(37258), + 30: uint16(37249), + 31: uint16(37250), + 32: uint16(37252), + 33: uint16(37248), + 34: uint16(37584), + 35: uint16(37571), + 36: uint16(37572), + 37: uint16(37568), + 38: uint16(37593), + 39: uint16(37558), + 40: uint16(37583), + 41: uint16(37617), + 42: uint16(37599), + 43: uint16(37592), + 44: uint16(37609), + 45: uint16(37591), + 46: uint16(37597), + 47: uint16(37580), + 48: uint16(37615), + 49: uint16(37570), + 50: uint16(37608), + 51: uint16(37578), + 52: uint16(37576), + 53: uint16(37582), + 54: uint16(37606), + 55: uint16(37581), + 56: uint16(37589), + 57: uint16(37577), + 58: uint16(37600), + 59: uint16(37598), + 60: uint16(37607), + 61: uint16(37585), + 62: uint16(37587), + 63: uint16(37557), + 64: uint16(37601), + 65: uint16(37574), + 66: uint16(37556), + 67: uint16(38268), + 68: uint16(38316), + 69: uint16(38315), + 70: uint16(38318), + 71: uint16(38320), + 72: uint16(38564), + 73: uint16(38562), + 74: uint16(38611), + 75: uint16(38661), + 76: uint16(38664), + 77: uint16(38658), + 78: uint16(38746), + 79: uint16(38794), + 80: uint16(38798), + 81: uint16(38792), + 82: uint16(38864), + 83: uint16(38863), + 84: uint16(38942), + 85: uint16(38941), + 86: uint16(38950), + 87: uint16(38953), + 88: uint16(38952), + 89: uint16(38944), + 90: uint16(38939), + 91: uint16(38951), + 92: uint16(39090), + 93: uint16(39176), + 94: uint16(39162), + 95: uint16(39185), + 96: uint16(39188), + 97: uint16(39190), + 98: uint16(39191), + 99: uint16(39189), + 100: uint16(39388), + 101: uint16(39373), + 102: uint16(39375), + 103: uint16(39379), + 104: uint16(39380), + 105: uint16(39374), + 106: uint16(39369), + 107: uint16(39382), + 108: uint16(39384), + 109: uint16(39371), + 110: uint16(39383), + 111: uint16(39372), + 112: uint16(39603), + 113: uint16(39660), + 114: uint16(39659), + 115: uint16(39667), + 116: uint16(39666), + 117: uint16(39665), + 118: uint16(39750), + 119: uint16(39747), + 120: uint16(39783), + 121: uint16(39796), + 122: uint16(39793), + 123: uint16(39782), + 124: uint16(39798), + 125: uint16(39797), + 126: uint16(39792), + 127: uint16(39784), + 128: uint16(39780), + 129: uint16(39788), + 130: uint16(40188), + 131: uint16(40186), + 132: uint16(40189), + 133: uint16(40191), + 134: uint16(40183), + 135: uint16(40199), + 136: uint16(40192), + 137: uint16(40185), + 138: uint16(40187), + 139: uint16(40200), + 140: uint16(40197), + 141: uint16(40196), + 142: uint16(40579), + 143: uint16(40659), + 144: uint16(40719), + 145: uint16(40720), + 146: uint16(20764), + 147: uint16(20755), + 148: uint16(20759), + 149: uint16(20762), + 150: uint16(20753), + 151: uint16(20958), + 152: uint16(21300), + 153: uint16(21473), + 154: uint16(22128), + 155: uint16(22112), + 156: uint16(22126), + }, + 72: { + 0: uint16(22131), + 1: uint16(22118), + 2: uint16(22115), + 3: uint16(22125), + 4: uint16(22130), + 5: uint16(22110), + 6: uint16(22135), + 7: uint16(22300), + 8: uint16(22299), + 9: uint16(22728), + 10: uint16(22717), + 11: uint16(22729), + 12: uint16(22719), + 13: uint16(22714), + 14: uint16(22722), + 15: uint16(22716), + 16: uint16(22726), + 17: uint16(23319), + 18: uint16(23321), + 19: uint16(23323), + 20: uint16(23329), + 21: uint16(23316), + 22: uint16(23315), + 23: uint16(23312), + 24: uint16(23318), + 25: uint16(23336), + 26: uint16(23322), + 27: uint16(23328), + 28: uint16(23326), + 29: uint16(23535), + 30: uint16(23980), + 31: uint16(23985), + 32: uint16(23977), + 33: uint16(23975), + 34: uint16(23989), + 35: uint16(23984), + 36: uint16(23982), + 37: uint16(23978), + 38: uint16(23976), + 39: uint16(23986), + 40: uint16(23981), + 41: uint16(23983), + 42: uint16(23988), + 43: uint16(24167), + 44: uint16(24168), + 45: uint16(24166), + 46: uint16(24175), + 47: uint16(24297), + 48: uint16(24295), + 49: uint16(24294), + 50: uint16(24296), + 51: uint16(24293), + 52: uint16(24395), + 53: uint16(24508), + 54: uint16(24989), + 55: uint16(25000), + 56: uint16(24982), + 57: uint16(25029), + 58: uint16(25012), + 59: uint16(25030), + 60: uint16(25025), + 61: uint16(25036), + 62: uint16(25018), + 63: uint16(25023), + 64: uint16(25016), + 65: uint16(24972), + 66: uint16(25815), + 67: uint16(25814), + 68: uint16(25808), + 69: uint16(25807), + 70: uint16(25801), + 71: uint16(25789), + 72: uint16(25737), + 73: uint16(25795), + 74: uint16(25819), + 75: uint16(25843), + 76: uint16(25817), + 77: uint16(25907), + 78: uint16(25983), + 79: uint16(25980), + 80: uint16(26018), + 81: uint16(26312), + 82: uint16(26302), + 83: uint16(26304), + 84: uint16(26314), + 85: uint16(26315), + 86: uint16(26319), + 87: uint16(26301), + 88: uint16(26299), + 89: uint16(26298), + 90: uint16(26316), + 91: uint16(26403), + 92: uint16(27188), + 93: uint16(27238), + 94: uint16(27209), + 95: uint16(27239), + 96: uint16(27186), + 97: uint16(27240), + 98: uint16(27198), + 99: uint16(27229), + 100: uint16(27245), + 101: uint16(27254), + 102: uint16(27227), + 103: uint16(27217), + 104: uint16(27176), + 105: uint16(27226), + 106: uint16(27195), + 107: uint16(27199), + 108: uint16(27201), + 109: uint16(27242), + 110: uint16(27236), + 111: uint16(27216), + 112: uint16(27215), + 113: uint16(27220), + 114: uint16(27247), + 115: uint16(27241), + 116: uint16(27232), + 117: uint16(27196), + 118: uint16(27230), + 119: uint16(27222), + 120: uint16(27221), + 121: uint16(27213), + 122: uint16(27214), + 123: uint16(27206), + 124: uint16(27477), + 125: uint16(27476), + 126: uint16(27478), + 127: uint16(27559), + 128: uint16(27562), + 129: uint16(27563), + 130: uint16(27592), + 131: uint16(27591), + 132: uint16(27652), + 133: uint16(27651), + 134: uint16(27654), + 135: uint16(28589), + 136: uint16(28619), + 137: uint16(28579), + 138: uint16(28615), + 139: uint16(28604), + 140: uint16(28622), + 141: uint16(28616), + 142: uint16(28510), + 143: uint16(28612), + 144: uint16(28605), + 145: uint16(28574), + 146: uint16(28618), + 147: uint16(28584), + 148: uint16(28676), + 149: uint16(28581), + 150: uint16(28590), + 151: uint16(28602), + 152: uint16(28588), + 153: uint16(28586), + 154: uint16(28623), + 155: uint16(28607), + 156: uint16(28600), + }, + 73: { + 0: uint16(28578), + 1: uint16(28617), + 2: uint16(28587), + 3: uint16(28621), + 4: uint16(28591), + 5: uint16(28594), + 6: uint16(28592), + 7: uint16(29125), + 8: uint16(29122), + 9: uint16(29119), + 10: uint16(29112), + 11: uint16(29142), + 12: uint16(29120), + 13: uint16(29121), + 14: uint16(29131), + 15: uint16(29140), + 16: uint16(29130), + 17: uint16(29127), + 18: uint16(29135), + 19: uint16(29117), + 20: uint16(29144), + 21: uint16(29116), + 22: uint16(29126), + 23: uint16(29146), + 24: uint16(29147), + 25: uint16(29341), + 26: uint16(29342), + 27: uint16(29545), + 28: uint16(29542), + 29: uint16(29543), + 30: uint16(29548), + 31: uint16(29541), + 32: uint16(29547), + 33: uint16(29546), + 34: uint16(29823), + 35: uint16(29850), + 36: uint16(29856), + 37: uint16(29844), + 38: uint16(29842), + 39: uint16(29845), + 40: uint16(29857), + 41: uint16(29963), + 42: uint16(30080), + 43: uint16(30255), + 44: uint16(30253), + 45: uint16(30257), + 46: uint16(30269), + 47: uint16(30259), + 48: uint16(30268), + 49: uint16(30261), + 50: uint16(30258), + 51: uint16(30256), + 52: uint16(30395), + 53: uint16(30438), + 54: uint16(30618), + 55: uint16(30621), + 56: uint16(30625), + 57: uint16(30620), + 58: uint16(30619), + 59: uint16(30626), + 60: uint16(30627), + 61: uint16(30613), + 62: uint16(30617), + 63: uint16(30615), + 64: uint16(30941), + 65: uint16(30953), + 66: uint16(30949), + 67: uint16(30954), + 68: uint16(30942), + 69: uint16(30947), + 70: uint16(30939), + 71: uint16(30945), + 72: uint16(30946), + 73: uint16(30957), + 74: uint16(30943), + 75: uint16(30944), + 76: uint16(31140), + 77: uint16(31300), + 78: uint16(31304), + 79: uint16(31303), + 80: uint16(31414), + 81: uint16(31416), + 82: uint16(31413), + 83: uint16(31409), + 84: uint16(31415), + 85: uint16(31710), + 86: uint16(31715), + 87: uint16(31719), + 88: uint16(31709), + 89: uint16(31701), + 90: uint16(31717), + 91: uint16(31706), + 92: uint16(31720), + 93: uint16(31737), + 94: uint16(31700), + 95: uint16(31722), + 96: uint16(31714), + 97: uint16(31708), + 98: uint16(31723), + 99: uint16(31704), + 100: uint16(31711), + 101: uint16(31954), + 102: uint16(31956), + 103: uint16(31959), + 104: uint16(31952), + 105: uint16(31953), + 106: uint16(32274), + 107: uint16(32289), + 108: uint16(32279), + 109: uint16(32268), + 110: uint16(32287), + 111: uint16(32288), + 112: uint16(32275), + 113: uint16(32270), + 114: uint16(32284), + 115: uint16(32277), + 116: uint16(32282), + 117: uint16(32290), + 118: uint16(32267), + 119: uint16(32271), + 120: uint16(32278), + 121: uint16(32269), + 122: uint16(32276), + 123: uint16(32293), + 124: uint16(32292), + 125: uint16(32579), + 126: uint16(32635), + 127: uint16(32636), + 128: uint16(32634), + 129: uint16(32689), + 130: uint16(32751), + 131: uint16(32810), + 132: uint16(32809), + 133: uint16(32876), + 134: uint16(33201), + 135: uint16(33190), + 136: uint16(33198), + 137: uint16(33209), + 138: uint16(33205), + 139: uint16(33195), + 140: uint16(33200), + 141: uint16(33196), + 142: uint16(33204), + 143: uint16(33202), + 144: uint16(33207), + 145: uint16(33191), + 146: uint16(33266), + 147: uint16(33365), + 148: uint16(33366), + 149: uint16(33367), + 150: uint16(34134), + 151: uint16(34117), + 152: uint16(34155), + 153: uint16(34125), + 154: uint16(34131), + 155: uint16(34145), + 156: uint16(34136), + }, + 74: { + 0: uint16(34112), + 1: uint16(34118), + 2: uint16(34148), + 3: uint16(34113), + 4: uint16(34146), + 5: uint16(34116), + 6: uint16(34129), + 7: uint16(34119), + 8: uint16(34147), + 9: uint16(34110), + 10: uint16(34139), + 11: uint16(34161), + 12: uint16(34126), + 13: uint16(34158), + 14: uint16(34165), + 15: uint16(34133), + 16: uint16(34151), + 17: uint16(34144), + 18: uint16(34188), + 19: uint16(34150), + 20: uint16(34141), + 21: uint16(34132), + 22: uint16(34149), + 23: uint16(34156), + 24: uint16(34403), + 25: uint16(34405), + 26: uint16(34404), + 27: uint16(34715), + 28: uint16(34703), + 29: uint16(34711), + 30: uint16(34707), + 31: uint16(34706), + 32: uint16(34696), + 33: uint16(34689), + 34: uint16(34710), + 35: uint16(34712), + 36: uint16(34681), + 37: uint16(34695), + 38: uint16(34723), + 39: uint16(34693), + 40: uint16(34704), + 41: uint16(34705), + 42: uint16(34717), + 43: uint16(34692), + 44: uint16(34708), + 45: uint16(34716), + 46: uint16(34714), + 47: uint16(34697), + 48: uint16(35102), + 49: uint16(35110), + 50: uint16(35120), + 51: uint16(35117), + 52: uint16(35118), + 53: uint16(35111), + 54: uint16(35121), + 55: uint16(35106), + 56: uint16(35113), + 57: uint16(35107), + 58: uint16(35119), + 59: uint16(35116), + 60: uint16(35103), + 61: uint16(35313), + 62: uint16(35552), + 63: uint16(35554), + 64: uint16(35570), + 65: uint16(35572), + 66: uint16(35573), + 67: uint16(35549), + 68: uint16(35604), + 69: uint16(35556), + 70: uint16(35551), + 71: uint16(35568), + 72: uint16(35528), + 73: uint16(35550), + 74: uint16(35553), + 75: uint16(35560), + 76: uint16(35583), + 77: uint16(35567), + 78: uint16(35579), + 79: uint16(35985), + 80: uint16(35986), + 81: uint16(35984), + 82: uint16(36085), + 83: uint16(36078), + 84: uint16(36081), + 85: uint16(36080), + 86: uint16(36083), + 87: uint16(36204), + 88: uint16(36206), + 89: uint16(36261), + 90: uint16(36263), + 91: uint16(36403), + 92: uint16(36414), + 93: uint16(36408), + 94: uint16(36416), + 95: uint16(36421), + 96: uint16(36406), + 97: uint16(36412), + 98: uint16(36413), + 99: uint16(36417), + 100: uint16(36400), + 101: uint16(36415), + 102: uint16(36541), + 103: uint16(36662), + 104: uint16(36654), + 105: uint16(36661), + 106: uint16(36658), + 107: uint16(36665), + 108: uint16(36663), + 109: uint16(36660), + 110: uint16(36982), + 111: uint16(36985), + 112: uint16(36987), + 113: uint16(36998), + 114: uint16(37114), + 115: uint16(37171), + 116: uint16(37173), + 117: uint16(37174), + 118: uint16(37267), + 119: uint16(37264), + 120: uint16(37265), + 121: uint16(37261), + 122: uint16(37263), + 123: uint16(37671), + 124: uint16(37662), + 125: uint16(37640), + 126: uint16(37663), + 127: uint16(37638), + 128: uint16(37647), + 129: uint16(37754), + 130: uint16(37688), + 131: uint16(37692), + 132: uint16(37659), + 133: uint16(37667), + 134: uint16(37650), + 135: uint16(37633), + 136: uint16(37702), + 137: uint16(37677), + 138: uint16(37646), + 139: uint16(37645), + 140: uint16(37579), + 141: uint16(37661), + 142: uint16(37626), + 143: uint16(37669), + 144: uint16(37651), + 145: uint16(37625), + 146: uint16(37623), + 147: uint16(37684), + 148: uint16(37634), + 149: uint16(37668), + 150: uint16(37631), + 151: uint16(37673), + 152: uint16(37689), + 153: uint16(37685), + 154: uint16(37674), + 155: uint16(37652), + 156: uint16(37644), + }, + 75: { + 0: uint16(37643), + 1: uint16(37630), + 2: uint16(37641), + 3: uint16(37632), + 4: uint16(37627), + 5: uint16(37654), + 6: uint16(38332), + 7: uint16(38349), + 8: uint16(38334), + 9: uint16(38329), + 10: uint16(38330), + 11: uint16(38326), + 12: uint16(38335), + 13: uint16(38325), + 14: uint16(38333), + 15: uint16(38569), + 16: uint16(38612), + 17: uint16(38667), + 18: uint16(38674), + 19: uint16(38672), + 20: uint16(38809), + 21: uint16(38807), + 22: uint16(38804), + 23: uint16(38896), + 24: uint16(38904), + 25: uint16(38965), + 26: uint16(38959), + 27: uint16(38962), + 28: uint16(39204), + 29: uint16(39199), + 30: uint16(39207), + 31: uint16(39209), + 32: uint16(39326), + 33: uint16(39406), + 34: uint16(39404), + 35: uint16(39397), + 36: uint16(39396), + 37: uint16(39408), + 38: uint16(39395), + 39: uint16(39402), + 40: uint16(39401), + 41: uint16(39399), + 42: uint16(39609), + 43: uint16(39615), + 44: uint16(39604), + 45: uint16(39611), + 46: uint16(39670), + 47: uint16(39674), + 48: uint16(39673), + 49: uint16(39671), + 50: uint16(39731), + 51: uint16(39808), + 52: uint16(39813), + 53: uint16(39815), + 54: uint16(39804), + 55: uint16(39806), + 56: uint16(39803), + 57: uint16(39810), + 58: uint16(39827), + 59: uint16(39826), + 60: uint16(39824), + 61: uint16(39802), + 62: uint16(39829), + 63: uint16(39805), + 64: uint16(39816), + 65: uint16(40229), + 66: uint16(40215), + 67: uint16(40224), + 68: uint16(40222), + 69: uint16(40212), + 70: uint16(40233), + 71: uint16(40221), + 72: uint16(40216), + 73: uint16(40226), + 74: uint16(40208), + 75: uint16(40217), + 76: uint16(40223), + 77: uint16(40584), + 78: uint16(40582), + 79: uint16(40583), + 80: uint16(40622), + 81: uint16(40621), + 82: uint16(40661), + 83: uint16(40662), + 84: uint16(40698), + 85: uint16(40722), + 86: uint16(40765), + 87: uint16(20774), + 88: uint16(20773), + 89: uint16(20770), + 90: uint16(20772), + 91: uint16(20768), + 92: uint16(20777), + 93: uint16(21236), + 94: uint16(22163), + 95: uint16(22156), + 96: uint16(22157), + 97: uint16(22150), + 98: uint16(22148), + 99: uint16(22147), + 100: uint16(22142), + 101: uint16(22146), + 102: uint16(22143), + 103: uint16(22145), + 104: uint16(22742), + 105: uint16(22740), + 106: uint16(22735), + 107: uint16(22738), + 108: uint16(23341), + 109: uint16(23333), + 110: uint16(23346), + 111: uint16(23331), + 112: uint16(23340), + 113: uint16(23335), + 114: uint16(23334), + 115: uint16(23343), + 116: uint16(23342), + 117: uint16(23419), + 118: uint16(23537), + 119: uint16(23538), + 120: uint16(23991), + 121: uint16(24172), + 122: uint16(24170), + 123: uint16(24510), + 124: uint16(24507), + 125: uint16(25027), + 126: uint16(25013), + 127: uint16(25020), + 128: uint16(25063), + 129: uint16(25056), + 130: uint16(25061), + 131: uint16(25060), + 132: uint16(25064), + 133: uint16(25054), + 134: uint16(25839), + 135: uint16(25833), + 136: uint16(25827), + 137: uint16(25835), + 138: uint16(25828), + 139: uint16(25832), + 140: uint16(25985), + 141: uint16(25984), + 142: uint16(26038), + 143: uint16(26074), + 144: uint16(26322), + 145: uint16(27277), + 146: uint16(27286), + 147: uint16(27265), + 148: uint16(27301), + 149: uint16(27273), + 150: uint16(27295), + 151: uint16(27291), + 152: uint16(27297), + 153: uint16(27294), + 154: uint16(27271), + 155: uint16(27283), + 156: uint16(27278), + }, + 76: { + 0: uint16(27285), + 1: uint16(27267), + 2: uint16(27304), + 3: uint16(27300), + 4: uint16(27281), + 5: uint16(27263), + 6: uint16(27302), + 7: uint16(27290), + 8: uint16(27269), + 9: uint16(27276), + 10: uint16(27282), + 11: uint16(27483), + 12: uint16(27565), + 13: uint16(27657), + 14: uint16(28620), + 15: uint16(28585), + 16: uint16(28660), + 17: uint16(28628), + 18: uint16(28643), + 19: uint16(28636), + 20: uint16(28653), + 21: uint16(28647), + 22: uint16(28646), + 23: uint16(28638), + 24: uint16(28658), + 25: uint16(28637), + 26: uint16(28642), + 27: uint16(28648), + 28: uint16(29153), + 29: uint16(29169), + 30: uint16(29160), + 31: uint16(29170), + 32: uint16(29156), + 33: uint16(29168), + 34: uint16(29154), + 35: uint16(29555), + 36: uint16(29550), + 37: uint16(29551), + 38: uint16(29847), + 39: uint16(29874), + 40: uint16(29867), + 41: uint16(29840), + 42: uint16(29866), + 43: uint16(29869), + 44: uint16(29873), + 45: uint16(29861), + 46: uint16(29871), + 47: uint16(29968), + 48: uint16(29969), + 49: uint16(29970), + 50: uint16(29967), + 51: uint16(30084), + 52: uint16(30275), + 53: uint16(30280), + 54: uint16(30281), + 55: uint16(30279), + 56: uint16(30372), + 57: uint16(30441), + 58: uint16(30645), + 59: uint16(30635), + 60: uint16(30642), + 61: uint16(30647), + 62: uint16(30646), + 63: uint16(30644), + 64: uint16(30641), + 65: uint16(30632), + 66: uint16(30704), + 67: uint16(30963), + 68: uint16(30973), + 69: uint16(30978), + 70: uint16(30971), + 71: uint16(30972), + 72: uint16(30962), + 73: uint16(30981), + 74: uint16(30969), + 75: uint16(30974), + 76: uint16(30980), + 77: uint16(31147), + 78: uint16(31144), + 79: uint16(31324), + 80: uint16(31323), + 81: uint16(31318), + 82: uint16(31320), + 83: uint16(31316), + 84: uint16(31322), + 85: uint16(31422), + 86: uint16(31424), + 87: uint16(31425), + 88: uint16(31749), + 89: uint16(31759), + 90: uint16(31730), + 91: uint16(31744), + 92: uint16(31743), + 93: uint16(31739), + 94: uint16(31758), + 95: uint16(31732), + 96: uint16(31755), + 97: uint16(31731), + 98: uint16(31746), + 99: uint16(31753), + 100: uint16(31747), + 101: uint16(31745), + 102: uint16(31736), + 103: uint16(31741), + 104: uint16(31750), + 105: uint16(31728), + 106: uint16(31729), + 107: uint16(31760), + 108: uint16(31754), + 109: uint16(31976), + 110: uint16(32301), + 111: uint16(32316), + 112: uint16(32322), + 113: uint16(32307), + 114: uint16(38984), + 115: uint16(32312), + 116: uint16(32298), + 117: uint16(32329), + 118: uint16(32320), + 119: uint16(32327), + 120: uint16(32297), + 121: uint16(32332), + 122: uint16(32304), + 123: uint16(32315), + 124: uint16(32310), + 125: uint16(32324), + 126: uint16(32314), + 127: uint16(32581), + 128: uint16(32639), + 129: uint16(32638), + 130: uint16(32637), + 131: uint16(32756), + 132: uint16(32754), + 133: uint16(32812), + 134: uint16(33211), + 135: uint16(33220), + 136: uint16(33228), + 137: uint16(33226), + 138: uint16(33221), + 139: uint16(33223), + 140: uint16(33212), + 141: uint16(33257), + 142: uint16(33371), + 143: uint16(33370), + 144: uint16(33372), + 145: uint16(34179), + 146: uint16(34176), + 147: uint16(34191), + 148: uint16(34215), + 149: uint16(34197), + 150: uint16(34208), + 151: uint16(34187), + 152: uint16(34211), + 153: uint16(34171), + 154: uint16(34212), + 155: uint16(34202), + 156: uint16(34206), + }, + 77: { + 0: uint16(34167), + 1: uint16(34172), + 2: uint16(34185), + 3: uint16(34209), + 4: uint16(34170), + 5: uint16(34168), + 6: uint16(34135), + 7: uint16(34190), + 8: uint16(34198), + 9: uint16(34182), + 10: uint16(34189), + 11: uint16(34201), + 12: uint16(34205), + 13: uint16(34177), + 14: uint16(34210), + 15: uint16(34178), + 16: uint16(34184), + 17: uint16(34181), + 18: uint16(34169), + 19: uint16(34166), + 20: uint16(34200), + 21: uint16(34192), + 22: uint16(34207), + 23: uint16(34408), + 24: uint16(34750), + 25: uint16(34730), + 26: uint16(34733), + 27: uint16(34757), + 28: uint16(34736), + 29: uint16(34732), + 30: uint16(34745), + 31: uint16(34741), + 32: uint16(34748), + 33: uint16(34734), + 34: uint16(34761), + 35: uint16(34755), + 36: uint16(34754), + 37: uint16(34764), + 38: uint16(34743), + 39: uint16(34735), + 40: uint16(34756), + 41: uint16(34762), + 42: uint16(34740), + 43: uint16(34742), + 44: uint16(34751), + 45: uint16(34744), + 46: uint16(34749), + 47: uint16(34782), + 48: uint16(34738), + 49: uint16(35125), + 50: uint16(35123), + 51: uint16(35132), + 52: uint16(35134), + 53: uint16(35137), + 54: uint16(35154), + 55: uint16(35127), + 56: uint16(35138), + 57: uint16(35245), + 58: uint16(35247), + 59: uint16(35246), + 60: uint16(35314), + 61: uint16(35315), + 62: uint16(35614), + 63: uint16(35608), + 64: uint16(35606), + 65: uint16(35601), + 66: uint16(35589), + 67: uint16(35595), + 68: uint16(35618), + 69: uint16(35599), + 70: uint16(35602), + 71: uint16(35605), + 72: uint16(35591), + 73: uint16(35597), + 74: uint16(35592), + 75: uint16(35590), + 76: uint16(35612), + 77: uint16(35603), + 78: uint16(35610), + 79: uint16(35919), + 80: uint16(35952), + 81: uint16(35954), + 82: uint16(35953), + 83: uint16(35951), + 84: uint16(35989), + 85: uint16(35988), + 86: uint16(36089), + 87: uint16(36207), + 88: uint16(36430), + 89: uint16(36429), + 90: uint16(36435), + 91: uint16(36432), + 92: uint16(36428), + 93: uint16(36423), + 94: uint16(36675), + 95: uint16(36672), + 96: uint16(36997), + 97: uint16(36990), + 98: uint16(37176), + 99: uint16(37274), + 100: uint16(37282), + 101: uint16(37275), + 102: uint16(37273), + 103: uint16(37279), + 104: uint16(37281), + 105: uint16(37277), + 106: uint16(37280), + 107: uint16(37793), + 108: uint16(37763), + 109: uint16(37807), + 110: uint16(37732), + 111: uint16(37718), + 112: uint16(37703), + 113: uint16(37756), + 114: uint16(37720), + 115: uint16(37724), + 116: uint16(37750), + 117: uint16(37705), + 118: uint16(37712), + 119: uint16(37713), + 120: uint16(37728), + 121: uint16(37741), + 122: uint16(37775), + 123: uint16(37708), + 124: uint16(37738), + 125: uint16(37753), + 126: uint16(37719), + 127: uint16(37717), + 128: uint16(37714), + 129: uint16(37711), + 130: uint16(37745), + 131: uint16(37751), + 132: uint16(37755), + 133: uint16(37729), + 134: uint16(37726), + 135: uint16(37731), + 136: uint16(37735), + 137: uint16(37760), + 138: uint16(37710), + 139: uint16(37721), + 140: uint16(38343), + 141: uint16(38336), + 142: uint16(38345), + 143: uint16(38339), + 144: uint16(38341), + 145: uint16(38327), + 146: uint16(38574), + 147: uint16(38576), + 148: uint16(38572), + 149: uint16(38688), + 150: uint16(38687), + 151: uint16(38680), + 152: uint16(38685), + 153: uint16(38681), + 154: uint16(38810), + 155: uint16(38817), + 156: uint16(38812), + }, + 78: { + 0: uint16(38814), + 1: uint16(38813), + 2: uint16(38869), + 3: uint16(38868), + 4: uint16(38897), + 5: uint16(38977), + 6: uint16(38980), + 7: uint16(38986), + 8: uint16(38985), + 9: uint16(38981), + 10: uint16(38979), + 11: uint16(39205), + 12: uint16(39211), + 13: uint16(39212), + 14: uint16(39210), + 15: uint16(39219), + 16: uint16(39218), + 17: uint16(39215), + 18: uint16(39213), + 19: uint16(39217), + 20: uint16(39216), + 21: uint16(39320), + 22: uint16(39331), + 23: uint16(39329), + 24: uint16(39426), + 25: uint16(39418), + 26: uint16(39412), + 27: uint16(39415), + 28: uint16(39417), + 29: uint16(39416), + 30: uint16(39414), + 31: uint16(39419), + 32: uint16(39421), + 33: uint16(39422), + 34: uint16(39420), + 35: uint16(39427), + 36: uint16(39614), + 37: uint16(39678), + 38: uint16(39677), + 39: uint16(39681), + 40: uint16(39676), + 41: uint16(39752), + 42: uint16(39834), + 43: uint16(39848), + 44: uint16(39838), + 45: uint16(39835), + 46: uint16(39846), + 47: uint16(39841), + 48: uint16(39845), + 49: uint16(39844), + 50: uint16(39814), + 51: uint16(39842), + 52: uint16(39840), + 53: uint16(39855), + 54: uint16(40243), + 55: uint16(40257), + 56: uint16(40295), + 57: uint16(40246), + 58: uint16(40238), + 59: uint16(40239), + 60: uint16(40241), + 61: uint16(40248), + 62: uint16(40240), + 63: uint16(40261), + 64: uint16(40258), + 65: uint16(40259), + 66: uint16(40254), + 67: uint16(40247), + 68: uint16(40256), + 69: uint16(40253), + 70: uint16(32757), + 71: uint16(40237), + 72: uint16(40586), + 73: uint16(40585), + 74: uint16(40589), + 75: uint16(40624), + 76: uint16(40648), + 77: uint16(40666), + 78: uint16(40699), + 79: uint16(40703), + 80: uint16(40740), + 81: uint16(40739), + 82: uint16(40738), + 83: uint16(40788), + 84: uint16(40864), + 85: uint16(20785), + 86: uint16(20781), + 87: uint16(20782), + 88: uint16(22168), + 89: uint16(22172), + 90: uint16(22167), + 91: uint16(22170), + 92: uint16(22173), + 93: uint16(22169), + 94: uint16(22896), + 95: uint16(23356), + 96: uint16(23657), + 97: uint16(23658), + 98: uint16(24000), + 99: uint16(24173), + 100: uint16(24174), + 101: uint16(25048), + 102: uint16(25055), + 103: uint16(25069), + 104: uint16(25070), + 105: uint16(25073), + 106: uint16(25066), + 107: uint16(25072), + 108: uint16(25067), + 109: uint16(25046), + 110: uint16(25065), + 111: uint16(25855), + 112: uint16(25860), + 113: uint16(25853), + 114: uint16(25848), + 115: uint16(25857), + 116: uint16(25859), + 117: uint16(25852), + 118: uint16(26004), + 119: uint16(26075), + 120: uint16(26330), + 121: uint16(26331), + 122: uint16(26328), + 123: uint16(27333), + 124: uint16(27321), + 125: uint16(27325), + 126: uint16(27361), + 127: uint16(27334), + 128: uint16(27322), + 129: uint16(27318), + 130: uint16(27319), + 131: uint16(27335), + 132: uint16(27316), + 133: uint16(27309), + 134: uint16(27486), + 135: uint16(27593), + 136: uint16(27659), + 137: uint16(28679), + 138: uint16(28684), + 139: uint16(28685), + 140: uint16(28673), + 141: uint16(28677), + 142: uint16(28692), + 143: uint16(28686), + 144: uint16(28671), + 145: uint16(28672), + 146: uint16(28667), + 147: uint16(28710), + 148: uint16(28668), + 149: uint16(28663), + 150: uint16(28682), + 151: uint16(29185), + 152: uint16(29183), + 153: uint16(29177), + 154: uint16(29187), + 155: uint16(29181), + 156: uint16(29558), + }, + 79: { + 0: uint16(29880), + 1: uint16(29888), + 2: uint16(29877), + 3: uint16(29889), + 4: uint16(29886), + 5: uint16(29878), + 6: uint16(29883), + 7: uint16(29890), + 8: uint16(29972), + 9: uint16(29971), + 10: uint16(30300), + 11: uint16(30308), + 12: uint16(30297), + 13: uint16(30288), + 14: uint16(30291), + 15: uint16(30295), + 16: uint16(30298), + 17: uint16(30374), + 18: uint16(30397), + 19: uint16(30444), + 20: uint16(30658), + 21: uint16(30650), + 22: uint16(30975), + 23: uint16(30988), + 24: uint16(30995), + 25: uint16(30996), + 26: uint16(30985), + 27: uint16(30992), + 28: uint16(30994), + 29: uint16(30993), + 30: uint16(31149), + 31: uint16(31148), + 32: uint16(31327), + 33: uint16(31772), + 34: uint16(31785), + 35: uint16(31769), + 36: uint16(31776), + 37: uint16(31775), + 38: uint16(31789), + 39: uint16(31773), + 40: uint16(31782), + 41: uint16(31784), + 42: uint16(31778), + 43: uint16(31781), + 44: uint16(31792), + 45: uint16(32348), + 46: uint16(32336), + 47: uint16(32342), + 48: uint16(32355), + 49: uint16(32344), + 50: uint16(32354), + 51: uint16(32351), + 52: uint16(32337), + 53: uint16(32352), + 54: uint16(32343), + 55: uint16(32339), + 56: uint16(32693), + 57: uint16(32691), + 58: uint16(32759), + 59: uint16(32760), + 60: uint16(32885), + 61: uint16(33233), + 62: uint16(33234), + 63: uint16(33232), + 64: uint16(33375), + 65: uint16(33374), + 66: uint16(34228), + 67: uint16(34246), + 68: uint16(34240), + 69: uint16(34243), + 70: uint16(34242), + 71: uint16(34227), + 72: uint16(34229), + 73: uint16(34237), + 74: uint16(34247), + 75: uint16(34244), + 76: uint16(34239), + 77: uint16(34251), + 78: uint16(34254), + 79: uint16(34248), + 80: uint16(34245), + 81: uint16(34225), + 82: uint16(34230), + 83: uint16(34258), + 84: uint16(34340), + 85: uint16(34232), + 86: uint16(34231), + 87: uint16(34238), + 88: uint16(34409), + 89: uint16(34791), + 90: uint16(34790), + 91: uint16(34786), + 92: uint16(34779), + 93: uint16(34795), + 94: uint16(34794), + 95: uint16(34789), + 96: uint16(34783), + 97: uint16(34803), + 98: uint16(34788), + 99: uint16(34772), + 100: uint16(34780), + 101: uint16(34771), + 102: uint16(34797), + 103: uint16(34776), + 104: uint16(34787), + 105: uint16(34724), + 106: uint16(34775), + 107: uint16(34777), + 108: uint16(34817), + 109: uint16(34804), + 110: uint16(34792), + 111: uint16(34781), + 112: uint16(35155), + 113: uint16(35147), + 114: uint16(35151), + 115: uint16(35148), + 116: uint16(35142), + 117: uint16(35152), + 118: uint16(35153), + 119: uint16(35145), + 120: uint16(35626), + 121: uint16(35623), + 122: uint16(35619), + 123: uint16(35635), + 124: uint16(35632), + 125: uint16(35637), + 126: uint16(35655), + 127: uint16(35631), + 128: uint16(35644), + 129: uint16(35646), + 130: uint16(35633), + 131: uint16(35621), + 132: uint16(35639), + 133: uint16(35622), + 134: uint16(35638), + 135: uint16(35630), + 136: uint16(35620), + 137: uint16(35643), + 138: uint16(35645), + 139: uint16(35642), + 140: uint16(35906), + 141: uint16(35957), + 142: uint16(35993), + 143: uint16(35992), + 144: uint16(35991), + 145: uint16(36094), + 146: uint16(36100), + 147: uint16(36098), + 148: uint16(36096), + 149: uint16(36444), + 150: uint16(36450), + 151: uint16(36448), + 152: uint16(36439), + 153: uint16(36438), + 154: uint16(36446), + 155: uint16(36453), + 156: uint16(36455), + }, + 80: { + 0: uint16(36443), + 1: uint16(36442), + 2: uint16(36449), + 3: uint16(36445), + 4: uint16(36457), + 5: uint16(36436), + 6: uint16(36678), + 7: uint16(36679), + 8: uint16(36680), + 9: uint16(36683), + 10: uint16(37160), + 11: uint16(37178), + 12: uint16(37179), + 13: uint16(37182), + 14: uint16(37288), + 15: uint16(37285), + 16: uint16(37287), + 17: uint16(37295), + 18: uint16(37290), + 19: uint16(37813), + 20: uint16(37772), + 21: uint16(37778), + 22: uint16(37815), + 23: uint16(37787), + 24: uint16(37789), + 25: uint16(37769), + 26: uint16(37799), + 27: uint16(37774), + 28: uint16(37802), + 29: uint16(37790), + 30: uint16(37798), + 31: uint16(37781), + 32: uint16(37768), + 33: uint16(37785), + 34: uint16(37791), + 35: uint16(37773), + 36: uint16(37809), + 37: uint16(37777), + 38: uint16(37810), + 39: uint16(37796), + 40: uint16(37800), + 41: uint16(37812), + 42: uint16(37795), + 43: uint16(37797), + 44: uint16(38354), + 45: uint16(38355), + 46: uint16(38353), + 47: uint16(38579), + 48: uint16(38615), + 49: uint16(38618), + 50: uint16(24002), + 51: uint16(38623), + 52: uint16(38616), + 53: uint16(38621), + 54: uint16(38691), + 55: uint16(38690), + 56: uint16(38693), + 57: uint16(38828), + 58: uint16(38830), + 59: uint16(38824), + 60: uint16(38827), + 61: uint16(38820), + 62: uint16(38826), + 63: uint16(38818), + 64: uint16(38821), + 65: uint16(38871), + 66: uint16(38873), + 67: uint16(38870), + 68: uint16(38872), + 69: uint16(38906), + 70: uint16(38992), + 71: uint16(38993), + 72: uint16(38994), + 73: uint16(39096), + 74: uint16(39233), + 75: uint16(39228), + 76: uint16(39226), + 77: uint16(39439), + 78: uint16(39435), + 79: uint16(39433), + 80: uint16(39437), + 81: uint16(39428), + 82: uint16(39441), + 83: uint16(39434), + 84: uint16(39429), + 85: uint16(39431), + 86: uint16(39430), + 87: uint16(39616), + 88: uint16(39644), + 89: uint16(39688), + 90: uint16(39684), + 91: uint16(39685), + 92: uint16(39721), + 93: uint16(39733), + 94: uint16(39754), + 95: uint16(39756), + 96: uint16(39755), + 97: uint16(39879), + 98: uint16(39878), + 99: uint16(39875), + 100: uint16(39871), + 101: uint16(39873), + 102: uint16(39861), + 103: uint16(39864), + 104: uint16(39891), + 105: uint16(39862), + 106: uint16(39876), + 107: uint16(39865), + 108: uint16(39869), + 109: uint16(40284), + 110: uint16(40275), + 111: uint16(40271), + 112: uint16(40266), + 113: uint16(40283), + 114: uint16(40267), + 115: uint16(40281), + 116: uint16(40278), + 117: uint16(40268), + 118: uint16(40279), + 119: uint16(40274), + 120: uint16(40276), + 121: uint16(40287), + 122: uint16(40280), + 123: uint16(40282), + 124: uint16(40590), + 125: uint16(40588), + 126: uint16(40671), + 127: uint16(40705), + 128: uint16(40704), + 129: uint16(40726), + 130: uint16(40741), + 131: uint16(40747), + 132: uint16(40746), + 133: uint16(40745), + 134: uint16(40744), + 135: uint16(40780), + 136: uint16(40789), + 137: uint16(20788), + 138: uint16(20789), + 139: uint16(21142), + 140: uint16(21239), + 141: uint16(21428), + 142: uint16(22187), + 143: uint16(22189), + 144: uint16(22182), + 145: uint16(22183), + 146: uint16(22186), + 147: uint16(22188), + 148: uint16(22746), + 149: uint16(22749), + 150: uint16(22747), + 151: uint16(22802), + 152: uint16(23357), + 153: uint16(23358), + 154: uint16(23359), + 155: uint16(24003), + 156: uint16(24176), + }, + 81: { + 0: uint16(24511), + 1: uint16(25083), + 2: uint16(25863), + 3: uint16(25872), + 4: uint16(25869), + 5: uint16(25865), + 6: uint16(25868), + 7: uint16(25870), + 8: uint16(25988), + 9: uint16(26078), + 10: uint16(26077), + 11: uint16(26334), + 12: uint16(27367), + 13: uint16(27360), + 14: uint16(27340), + 15: uint16(27345), + 16: uint16(27353), + 17: uint16(27339), + 18: uint16(27359), + 19: uint16(27356), + 20: uint16(27344), + 21: uint16(27371), + 22: uint16(27343), + 23: uint16(27341), + 24: uint16(27358), + 25: uint16(27488), + 26: uint16(27568), + 27: uint16(27660), + 28: uint16(28697), + 29: uint16(28711), + 30: uint16(28704), + 31: uint16(28694), + 32: uint16(28715), + 33: uint16(28705), + 34: uint16(28706), + 35: uint16(28707), + 36: uint16(28713), + 37: uint16(28695), + 38: uint16(28708), + 39: uint16(28700), + 40: uint16(28714), + 41: uint16(29196), + 42: uint16(29194), + 43: uint16(29191), + 44: uint16(29186), + 45: uint16(29189), + 46: uint16(29349), + 47: uint16(29350), + 48: uint16(29348), + 49: uint16(29347), + 50: uint16(29345), + 51: uint16(29899), + 52: uint16(29893), + 53: uint16(29879), + 54: uint16(29891), + 55: uint16(29974), + 56: uint16(30304), + 57: uint16(30665), + 58: uint16(30666), + 59: uint16(30660), + 60: uint16(30705), + 61: uint16(31005), + 62: uint16(31003), + 63: uint16(31009), + 64: uint16(31004), + 65: uint16(30999), + 66: uint16(31006), + 67: uint16(31152), + 68: uint16(31335), + 69: uint16(31336), + 70: uint16(31795), + 71: uint16(31804), + 72: uint16(31801), + 73: uint16(31788), + 74: uint16(31803), + 75: uint16(31980), + 76: uint16(31978), + 77: uint16(32374), + 78: uint16(32373), + 79: uint16(32376), + 80: uint16(32368), + 81: uint16(32375), + 82: uint16(32367), + 83: uint16(32378), + 84: uint16(32370), + 85: uint16(32372), + 86: uint16(32360), + 87: uint16(32587), + 88: uint16(32586), + 89: uint16(32643), + 90: uint16(32646), + 91: uint16(32695), + 92: uint16(32765), + 93: uint16(32766), + 94: uint16(32888), + 95: uint16(33239), + 96: uint16(33237), + 97: uint16(33380), + 98: uint16(33377), + 99: uint16(33379), + 100: uint16(34283), + 101: uint16(34289), + 102: uint16(34285), + 103: uint16(34265), + 104: uint16(34273), + 105: uint16(34280), + 106: uint16(34266), + 107: uint16(34263), + 108: uint16(34284), + 109: uint16(34290), + 110: uint16(34296), + 111: uint16(34264), + 112: uint16(34271), + 113: uint16(34275), + 114: uint16(34268), + 115: uint16(34257), + 116: uint16(34288), + 117: uint16(34278), + 118: uint16(34287), + 119: uint16(34270), + 120: uint16(34274), + 121: uint16(34816), + 122: uint16(34810), + 123: uint16(34819), + 124: uint16(34806), + 125: uint16(34807), + 126: uint16(34825), + 127: uint16(34828), + 128: uint16(34827), + 129: uint16(34822), + 130: uint16(34812), + 131: uint16(34824), + 132: uint16(34815), + 133: uint16(34826), + 134: uint16(34818), + 135: uint16(35170), + 136: uint16(35162), + 137: uint16(35163), + 138: uint16(35159), + 139: uint16(35169), + 140: uint16(35164), + 141: uint16(35160), + 142: uint16(35165), + 143: uint16(35161), + 144: uint16(35208), + 145: uint16(35255), + 146: uint16(35254), + 147: uint16(35318), + 148: uint16(35664), + 149: uint16(35656), + 150: uint16(35658), + 151: uint16(35648), + 152: uint16(35667), + 153: uint16(35670), + 154: uint16(35668), + 155: uint16(35659), + 156: uint16(35669), + }, + 82: { + 0: uint16(35665), + 1: uint16(35650), + 2: uint16(35666), + 3: uint16(35671), + 4: uint16(35907), + 5: uint16(35959), + 6: uint16(35958), + 7: uint16(35994), + 8: uint16(36102), + 9: uint16(36103), + 10: uint16(36105), + 11: uint16(36268), + 12: uint16(36266), + 13: uint16(36269), + 14: uint16(36267), + 15: uint16(36461), + 16: uint16(36472), + 17: uint16(36467), + 18: uint16(36458), + 19: uint16(36463), + 20: uint16(36475), + 21: uint16(36546), + 22: uint16(36690), + 23: uint16(36689), + 24: uint16(36687), + 25: uint16(36688), + 26: uint16(36691), + 27: uint16(36788), + 28: uint16(37184), + 29: uint16(37183), + 30: uint16(37296), + 31: uint16(37293), + 32: uint16(37854), + 33: uint16(37831), + 34: uint16(37839), + 35: uint16(37826), + 36: uint16(37850), + 37: uint16(37840), + 38: uint16(37881), + 39: uint16(37868), + 40: uint16(37836), + 41: uint16(37849), + 42: uint16(37801), + 43: uint16(37862), + 44: uint16(37834), + 45: uint16(37844), + 46: uint16(37870), + 47: uint16(37859), + 48: uint16(37845), + 49: uint16(37828), + 50: uint16(37838), + 51: uint16(37824), + 52: uint16(37842), + 53: uint16(37863), + 54: uint16(38269), + 55: uint16(38362), + 56: uint16(38363), + 57: uint16(38625), + 58: uint16(38697), + 59: uint16(38699), + 60: uint16(38700), + 61: uint16(38696), + 62: uint16(38694), + 63: uint16(38835), + 64: uint16(38839), + 65: uint16(38838), + 66: uint16(38877), + 67: uint16(38878), + 68: uint16(38879), + 69: uint16(39004), + 70: uint16(39001), + 71: uint16(39005), + 72: uint16(38999), + 73: uint16(39103), + 74: uint16(39101), + 75: uint16(39099), + 76: uint16(39102), + 77: uint16(39240), + 78: uint16(39239), + 79: uint16(39235), + 80: uint16(39334), + 81: uint16(39335), + 82: uint16(39450), + 83: uint16(39445), + 84: uint16(39461), + 85: uint16(39453), + 86: uint16(39460), + 87: uint16(39451), + 88: uint16(39458), + 89: uint16(39456), + 90: uint16(39463), + 91: uint16(39459), + 92: uint16(39454), + 93: uint16(39452), + 94: uint16(39444), + 95: uint16(39618), + 96: uint16(39691), + 97: uint16(39690), + 98: uint16(39694), + 99: uint16(39692), + 100: uint16(39735), + 101: uint16(39914), + 102: uint16(39915), + 103: uint16(39904), + 104: uint16(39902), + 105: uint16(39908), + 106: uint16(39910), + 107: uint16(39906), + 108: uint16(39920), + 109: uint16(39892), + 110: uint16(39895), + 111: uint16(39916), + 112: uint16(39900), + 113: uint16(39897), + 114: uint16(39909), + 115: uint16(39893), + 116: uint16(39905), + 117: uint16(39898), + 118: uint16(40311), + 119: uint16(40321), + 120: uint16(40330), + 121: uint16(40324), + 122: uint16(40328), + 123: uint16(40305), + 124: uint16(40320), + 125: uint16(40312), + 126: uint16(40326), + 127: uint16(40331), + 128: uint16(40332), + 129: uint16(40317), + 130: uint16(40299), + 131: uint16(40308), + 132: uint16(40309), + 133: uint16(40304), + 134: uint16(40297), + 135: uint16(40325), + 136: uint16(40307), + 137: uint16(40315), + 138: uint16(40322), + 139: uint16(40303), + 140: uint16(40313), + 141: uint16(40319), + 142: uint16(40327), + 143: uint16(40296), + 144: uint16(40596), + 145: uint16(40593), + 146: uint16(40640), + 147: uint16(40700), + 148: uint16(40749), + 149: uint16(40768), + 150: uint16(40769), + 151: uint16(40781), + 152: uint16(40790), + 153: uint16(40791), + 154: uint16(40792), + 155: uint16(21303), + 156: uint16(22194), + }, + 83: { + 0: uint16(22197), + 1: uint16(22195), + 2: uint16(22755), + 3: uint16(23365), + 4: uint16(24006), + 5: uint16(24007), + 6: uint16(24302), + 7: uint16(24303), + 8: uint16(24512), + 9: uint16(24513), + 10: uint16(25081), + 11: uint16(25879), + 12: uint16(25878), + 13: uint16(25877), + 14: uint16(25875), + 15: uint16(26079), + 16: uint16(26344), + 17: uint16(26339), + 18: uint16(26340), + 19: uint16(27379), + 20: uint16(27376), + 21: uint16(27370), + 22: uint16(27368), + 23: uint16(27385), + 24: uint16(27377), + 25: uint16(27374), + 26: uint16(27375), + 27: uint16(28732), + 28: uint16(28725), + 29: uint16(28719), + 30: uint16(28727), + 31: uint16(28724), + 32: uint16(28721), + 33: uint16(28738), + 34: uint16(28728), + 35: uint16(28735), + 36: uint16(28730), + 37: uint16(28729), + 38: uint16(28736), + 39: uint16(28731), + 40: uint16(28723), + 41: uint16(28737), + 42: uint16(29203), + 43: uint16(29204), + 44: uint16(29352), + 45: uint16(29565), + 46: uint16(29564), + 47: uint16(29882), + 48: uint16(30379), + 49: uint16(30378), + 50: uint16(30398), + 51: uint16(30445), + 52: uint16(30668), + 53: uint16(30670), + 54: uint16(30671), + 55: uint16(30669), + 56: uint16(30706), + 57: uint16(31013), + 58: uint16(31011), + 59: uint16(31015), + 60: uint16(31016), + 61: uint16(31012), + 62: uint16(31017), + 63: uint16(31154), + 64: uint16(31342), + 65: uint16(31340), + 66: uint16(31341), + 67: uint16(31479), + 68: uint16(31817), + 69: uint16(31816), + 70: uint16(31818), + 71: uint16(31815), + 72: uint16(31813), + 73: uint16(31982), + 74: uint16(32379), + 75: uint16(32382), + 76: uint16(32385), + 77: uint16(32384), + 78: uint16(32698), + 79: uint16(32767), + 80: uint16(32889), + 81: uint16(33243), + 82: uint16(33241), + 83: uint16(33291), + 84: uint16(33384), + 85: uint16(33385), + 86: uint16(34338), + 87: uint16(34303), + 88: uint16(34305), + 89: uint16(34302), + 90: uint16(34331), + 91: uint16(34304), + 92: uint16(34294), + 93: uint16(34308), + 94: uint16(34313), + 95: uint16(34309), + 96: uint16(34316), + 97: uint16(34301), + 98: uint16(34841), + 99: uint16(34832), + 100: uint16(34833), + 101: uint16(34839), + 102: uint16(34835), + 103: uint16(34838), + 104: uint16(35171), + 105: uint16(35174), + 106: uint16(35257), + 107: uint16(35319), + 108: uint16(35680), + 109: uint16(35690), + 110: uint16(35677), + 111: uint16(35688), + 112: uint16(35683), + 113: uint16(35685), + 114: uint16(35687), + 115: uint16(35693), + 116: uint16(36270), + 117: uint16(36486), + 118: uint16(36488), + 119: uint16(36484), + 120: uint16(36697), + 121: uint16(36694), + 122: uint16(36695), + 123: uint16(36693), + 124: uint16(36696), + 125: uint16(36698), + 126: uint16(37005), + 127: uint16(37187), + 128: uint16(37185), + 129: uint16(37303), + 130: uint16(37301), + 131: uint16(37298), + 132: uint16(37299), + 133: uint16(37899), + 134: uint16(37907), + 135: uint16(37883), + 136: uint16(37920), + 137: uint16(37903), + 138: uint16(37908), + 139: uint16(37886), + 140: uint16(37909), + 141: uint16(37904), + 142: uint16(37928), + 143: uint16(37913), + 144: uint16(37901), + 145: uint16(37877), + 146: uint16(37888), + 147: uint16(37879), + 148: uint16(37895), + 149: uint16(37902), + 150: uint16(37910), + 151: uint16(37906), + 152: uint16(37882), + 153: uint16(37897), + 154: uint16(37880), + 155: uint16(37898), + 156: uint16(37887), + }, + 84: { + 0: uint16(37884), + 1: uint16(37900), + 2: uint16(37878), + 3: uint16(37905), + 4: uint16(37894), + 5: uint16(38366), + 6: uint16(38368), + 7: uint16(38367), + 8: uint16(38702), + 9: uint16(38703), + 10: uint16(38841), + 11: uint16(38843), + 12: uint16(38909), + 13: uint16(38910), + 14: uint16(39008), + 15: uint16(39010), + 16: uint16(39011), + 17: uint16(39007), + 18: uint16(39105), + 19: uint16(39106), + 20: uint16(39248), + 21: uint16(39246), + 22: uint16(39257), + 23: uint16(39244), + 24: uint16(39243), + 25: uint16(39251), + 26: uint16(39474), + 27: uint16(39476), + 28: uint16(39473), + 29: uint16(39468), + 30: uint16(39466), + 31: uint16(39478), + 32: uint16(39465), + 33: uint16(39470), + 34: uint16(39480), + 35: uint16(39469), + 36: uint16(39623), + 37: uint16(39626), + 38: uint16(39622), + 39: uint16(39696), + 40: uint16(39698), + 41: uint16(39697), + 42: uint16(39947), + 43: uint16(39944), + 44: uint16(39927), + 45: uint16(39941), + 46: uint16(39954), + 47: uint16(39928), + 48: uint16(40000), + 49: uint16(39943), + 50: uint16(39950), + 51: uint16(39942), + 52: uint16(39959), + 53: uint16(39956), + 54: uint16(39945), + 55: uint16(40351), + 56: uint16(40345), + 57: uint16(40356), + 58: uint16(40349), + 59: uint16(40338), + 60: uint16(40344), + 61: uint16(40336), + 62: uint16(40347), + 63: uint16(40352), + 64: uint16(40340), + 65: uint16(40348), + 66: uint16(40362), + 67: uint16(40343), + 68: uint16(40353), + 69: uint16(40346), + 70: uint16(40354), + 71: uint16(40360), + 72: uint16(40350), + 73: uint16(40355), + 74: uint16(40383), + 75: uint16(40361), + 76: uint16(40342), + 77: uint16(40358), + 78: uint16(40359), + 79: uint16(40601), + 80: uint16(40603), + 81: uint16(40602), + 82: uint16(40677), + 83: uint16(40676), + 84: uint16(40679), + 85: uint16(40678), + 86: uint16(40752), + 87: uint16(40750), + 88: uint16(40795), + 89: uint16(40800), + 90: uint16(40798), + 91: uint16(40797), + 92: uint16(40793), + 93: uint16(40849), + 94: uint16(20794), + 95: uint16(20793), + 96: uint16(21144), + 97: uint16(21143), + 98: uint16(22211), + 99: uint16(22205), + 100: uint16(22206), + 101: uint16(23368), + 102: uint16(23367), + 103: uint16(24011), + 104: uint16(24015), + 105: uint16(24305), + 106: uint16(25085), + 107: uint16(25883), + 108: uint16(27394), + 109: uint16(27388), + 110: uint16(27395), + 111: uint16(27384), + 112: uint16(27392), + 113: uint16(28739), + 114: uint16(28740), + 115: uint16(28746), + 116: uint16(28744), + 117: uint16(28745), + 118: uint16(28741), + 119: uint16(28742), + 120: uint16(29213), + 121: uint16(29210), + 122: uint16(29209), + 123: uint16(29566), + 124: uint16(29975), + 125: uint16(30314), + 126: uint16(30672), + 127: uint16(31021), + 128: uint16(31025), + 129: uint16(31023), + 130: uint16(31828), + 131: uint16(31827), + 132: uint16(31986), + 133: uint16(32394), + 134: uint16(32391), + 135: uint16(32392), + 136: uint16(32395), + 137: uint16(32390), + 138: uint16(32397), + 139: uint16(32589), + 140: uint16(32699), + 141: uint16(32816), + 142: uint16(33245), + 143: uint16(34328), + 144: uint16(34346), + 145: uint16(34342), + 146: uint16(34335), + 147: uint16(34339), + 148: uint16(34332), + 149: uint16(34329), + 150: uint16(34343), + 151: uint16(34350), + 152: uint16(34337), + 153: uint16(34336), + 154: uint16(34345), + 155: uint16(34334), + 156: uint16(34341), + }, + 85: { + 0: uint16(34857), + 1: uint16(34845), + 2: uint16(34843), + 3: uint16(34848), + 4: uint16(34852), + 5: uint16(34844), + 6: uint16(34859), + 7: uint16(34890), + 8: uint16(35181), + 9: uint16(35177), + 10: uint16(35182), + 11: uint16(35179), + 12: uint16(35322), + 13: uint16(35705), + 14: uint16(35704), + 15: uint16(35653), + 16: uint16(35706), + 17: uint16(35707), + 18: uint16(36112), + 19: uint16(36116), + 20: uint16(36271), + 21: uint16(36494), + 22: uint16(36492), + 23: uint16(36702), + 24: uint16(36699), + 25: uint16(36701), + 26: uint16(37190), + 27: uint16(37188), + 28: uint16(37189), + 29: uint16(37305), + 30: uint16(37951), + 31: uint16(37947), + 32: uint16(37942), + 33: uint16(37929), + 34: uint16(37949), + 35: uint16(37948), + 36: uint16(37936), + 37: uint16(37945), + 38: uint16(37930), + 39: uint16(37943), + 40: uint16(37932), + 41: uint16(37952), + 42: uint16(37937), + 43: uint16(38373), + 44: uint16(38372), + 45: uint16(38371), + 46: uint16(38709), + 47: uint16(38714), + 48: uint16(38847), + 49: uint16(38881), + 50: uint16(39012), + 51: uint16(39113), + 52: uint16(39110), + 53: uint16(39104), + 54: uint16(39256), + 55: uint16(39254), + 56: uint16(39481), + 57: uint16(39485), + 58: uint16(39494), + 59: uint16(39492), + 60: uint16(39490), + 61: uint16(39489), + 62: uint16(39482), + 63: uint16(39487), + 64: uint16(39629), + 65: uint16(39701), + 66: uint16(39703), + 67: uint16(39704), + 68: uint16(39702), + 69: uint16(39738), + 70: uint16(39762), + 71: uint16(39979), + 72: uint16(39965), + 73: uint16(39964), + 74: uint16(39980), + 75: uint16(39971), + 76: uint16(39976), + 77: uint16(39977), + 78: uint16(39972), + 79: uint16(39969), + 80: uint16(40375), + 81: uint16(40374), + 82: uint16(40380), + 83: uint16(40385), + 84: uint16(40391), + 85: uint16(40394), + 86: uint16(40399), + 87: uint16(40382), + 88: uint16(40389), + 89: uint16(40387), + 90: uint16(40379), + 91: uint16(40373), + 92: uint16(40398), + 93: uint16(40377), + 94: uint16(40378), + 95: uint16(40364), + 96: uint16(40392), + 97: uint16(40369), + 98: uint16(40365), + 99: uint16(40396), + 100: uint16(40371), + 101: uint16(40397), + 102: uint16(40370), + 103: uint16(40570), + 104: uint16(40604), + 105: uint16(40683), + 106: uint16(40686), + 107: uint16(40685), + 108: uint16(40731), + 109: uint16(40728), + 110: uint16(40730), + 111: uint16(40753), + 112: uint16(40782), + 113: uint16(40805), + 114: uint16(40804), + 115: uint16(40850), + 116: uint16(20153), + 117: uint16(22214), + 118: uint16(22213), + 119: uint16(22219), + 120: uint16(22897), + 121: uint16(23371), + 122: uint16(23372), + 123: uint16(24021), + 124: uint16(24017), + 125: uint16(24306), + 126: uint16(25889), + 127: uint16(25888), + 128: uint16(25894), + 129: uint16(25890), + 130: uint16(27403), + 131: uint16(27400), + 132: uint16(27401), + 133: uint16(27661), + 134: uint16(28757), + 135: uint16(28758), + 136: uint16(28759), + 137: uint16(28754), + 138: uint16(29214), + 139: uint16(29215), + 140: uint16(29353), + 141: uint16(29567), + 142: uint16(29912), + 143: uint16(29909), + 144: uint16(29913), + 145: uint16(29911), + 146: uint16(30317), + 147: uint16(30381), + 148: uint16(31029), + 149: uint16(31156), + 150: uint16(31344), + 151: uint16(31345), + 152: uint16(31831), + 153: uint16(31836), + 154: uint16(31833), + 155: uint16(31835), + 156: uint16(31834), + }, + 86: { + 0: uint16(31988), + 1: uint16(31985), + 2: uint16(32401), + 3: uint16(32591), + 4: uint16(32647), + 5: uint16(33246), + 6: uint16(33387), + 7: uint16(34356), + 8: uint16(34357), + 9: uint16(34355), + 10: uint16(34348), + 11: uint16(34354), + 12: uint16(34358), + 13: uint16(34860), + 14: uint16(34856), + 15: uint16(34854), + 16: uint16(34858), + 17: uint16(34853), + 18: uint16(35185), + 19: uint16(35263), + 20: uint16(35262), + 21: uint16(35323), + 22: uint16(35710), + 23: uint16(35716), + 24: uint16(35714), + 25: uint16(35718), + 26: uint16(35717), + 27: uint16(35711), + 28: uint16(36117), + 29: uint16(36501), + 30: uint16(36500), + 31: uint16(36506), + 32: uint16(36498), + 33: uint16(36496), + 34: uint16(36502), + 35: uint16(36503), + 36: uint16(36704), + 37: uint16(36706), + 38: uint16(37191), + 39: uint16(37964), + 40: uint16(37968), + 41: uint16(37962), + 42: uint16(37963), + 43: uint16(37967), + 44: uint16(37959), + 45: uint16(37957), + 46: uint16(37960), + 47: uint16(37961), + 48: uint16(37958), + 49: uint16(38719), + 50: uint16(38883), + 51: uint16(39018), + 52: uint16(39017), + 53: uint16(39115), + 54: uint16(39252), + 55: uint16(39259), + 56: uint16(39502), + 57: uint16(39507), + 58: uint16(39508), + 59: uint16(39500), + 60: uint16(39503), + 61: uint16(39496), + 62: uint16(39498), + 63: uint16(39497), + 64: uint16(39506), + 65: uint16(39504), + 66: uint16(39632), + 67: uint16(39705), + 68: uint16(39723), + 69: uint16(39739), + 70: uint16(39766), + 71: uint16(39765), + 72: uint16(40006), + 73: uint16(40008), + 74: uint16(39999), + 75: uint16(40004), + 76: uint16(39993), + 77: uint16(39987), + 78: uint16(40001), + 79: uint16(39996), + 80: uint16(39991), + 81: uint16(39988), + 82: uint16(39986), + 83: uint16(39997), + 84: uint16(39990), + 85: uint16(40411), + 86: uint16(40402), + 87: uint16(40414), + 88: uint16(40410), + 89: uint16(40395), + 90: uint16(40400), + 91: uint16(40412), + 92: uint16(40401), + 93: uint16(40415), + 94: uint16(40425), + 95: uint16(40409), + 96: uint16(40408), + 97: uint16(40406), + 98: uint16(40437), + 99: uint16(40405), + 100: uint16(40413), + 101: uint16(40630), + 102: uint16(40688), + 103: uint16(40757), + 104: uint16(40755), + 105: uint16(40754), + 106: uint16(40770), + 107: uint16(40811), + 108: uint16(40853), + 109: uint16(40866), + 110: uint16(20797), + 111: uint16(21145), + 112: uint16(22760), + 113: uint16(22759), + 114: uint16(22898), + 115: uint16(23373), + 116: uint16(24024), + 117: uint16(34863), + 118: uint16(24399), + 119: uint16(25089), + 120: uint16(25091), + 121: uint16(25092), + 122: uint16(25897), + 123: uint16(25893), + 124: uint16(26006), + 125: uint16(26347), + 126: uint16(27409), + 127: uint16(27410), + 128: uint16(27407), + 129: uint16(27594), + 130: uint16(28763), + 131: uint16(28762), + 132: uint16(29218), + 133: uint16(29570), + 134: uint16(29569), + 135: uint16(29571), + 136: uint16(30320), + 137: uint16(30676), + 138: uint16(31847), + 139: uint16(31846), + 140: uint16(32405), + 141: uint16(33388), + 142: uint16(34362), + 143: uint16(34368), + 144: uint16(34361), + 145: uint16(34364), + 146: uint16(34353), + 147: uint16(34363), + 148: uint16(34366), + 149: uint16(34864), + 150: uint16(34866), + 151: uint16(34862), + 152: uint16(34867), + 153: uint16(35190), + 154: uint16(35188), + 155: uint16(35187), + 156: uint16(35326), + }, + 87: { + 0: uint16(35724), + 1: uint16(35726), + 2: uint16(35723), + 3: uint16(35720), + 4: uint16(35909), + 5: uint16(36121), + 6: uint16(36504), + 7: uint16(36708), + 8: uint16(36707), + 9: uint16(37308), + 10: uint16(37986), + 11: uint16(37973), + 12: uint16(37981), + 13: uint16(37975), + 14: uint16(37982), + 15: uint16(38852), + 16: uint16(38853), + 17: uint16(38912), + 18: uint16(39510), + 19: uint16(39513), + 20: uint16(39710), + 21: uint16(39711), + 22: uint16(39712), + 23: uint16(40018), + 24: uint16(40024), + 25: uint16(40016), + 26: uint16(40010), + 27: uint16(40013), + 28: uint16(40011), + 29: uint16(40021), + 30: uint16(40025), + 31: uint16(40012), + 32: uint16(40014), + 33: uint16(40443), + 34: uint16(40439), + 35: uint16(40431), + 36: uint16(40419), + 37: uint16(40427), + 38: uint16(40440), + 39: uint16(40420), + 40: uint16(40438), + 41: uint16(40417), + 42: uint16(40430), + 43: uint16(40422), + 44: uint16(40434), + 45: uint16(40432), + 46: uint16(40418), + 47: uint16(40428), + 48: uint16(40436), + 49: uint16(40435), + 50: uint16(40424), + 51: uint16(40429), + 52: uint16(40642), + 53: uint16(40656), + 54: uint16(40690), + 55: uint16(40691), + 56: uint16(40710), + 57: uint16(40732), + 58: uint16(40760), + 59: uint16(40759), + 60: uint16(40758), + 61: uint16(40771), + 62: uint16(40783), + 63: uint16(40817), + 64: uint16(40816), + 65: uint16(40814), + 66: uint16(40815), + 67: uint16(22227), + 68: uint16(22221), + 69: uint16(23374), + 70: uint16(23661), + 71: uint16(25901), + 72: uint16(26349), + 73: uint16(26350), + 74: uint16(27411), + 75: uint16(28767), + 76: uint16(28769), + 77: uint16(28765), + 78: uint16(28768), + 79: uint16(29219), + 80: uint16(29915), + 81: uint16(29925), + 82: uint16(30677), + 83: uint16(31032), + 84: uint16(31159), + 85: uint16(31158), + 86: uint16(31850), + 87: uint16(32407), + 88: uint16(32649), + 89: uint16(33389), + 90: uint16(34371), + 91: uint16(34872), + 92: uint16(34871), + 93: uint16(34869), + 94: uint16(34891), + 95: uint16(35732), + 96: uint16(35733), + 97: uint16(36510), + 98: uint16(36511), + 99: uint16(36512), + 100: uint16(36509), + 101: uint16(37310), + 102: uint16(37309), + 103: uint16(37314), + 104: uint16(37995), + 105: uint16(37992), + 106: uint16(37993), + 107: uint16(38629), + 108: uint16(38726), + 109: uint16(38723), + 110: uint16(38727), + 111: uint16(38855), + 112: uint16(38885), + 113: uint16(39518), + 114: uint16(39637), + 115: uint16(39769), + 116: uint16(40035), + 117: uint16(40039), + 118: uint16(40038), + 119: uint16(40034), + 120: uint16(40030), + 121: uint16(40032), + 122: uint16(40450), + 123: uint16(40446), + 124: uint16(40455), + 125: uint16(40451), + 126: uint16(40454), + 127: uint16(40453), + 128: uint16(40448), + 129: uint16(40449), + 130: uint16(40457), + 131: uint16(40447), + 132: uint16(40445), + 133: uint16(40452), + 134: uint16(40608), + 135: uint16(40734), + 136: uint16(40774), + 137: uint16(40820), + 138: uint16(40821), + 139: uint16(40822), + 140: uint16(22228), + 141: uint16(25902), + 142: uint16(26040), + 143: uint16(27416), + 144: uint16(27417), + 145: uint16(27415), + 146: uint16(27418), + 147: uint16(28770), + 148: uint16(29222), + 149: uint16(29354), + 150: uint16(30680), + 151: uint16(30681), + 152: uint16(31033), + 153: uint16(31849), + 154: uint16(31851), + 155: uint16(31990), + 156: uint16(32410), + }, + 88: { + 0: uint16(32408), + 1: uint16(32411), + 2: uint16(32409), + 3: uint16(33248), + 4: uint16(33249), + 5: uint16(34374), + 6: uint16(34375), + 7: uint16(34376), + 8: uint16(35193), + 9: uint16(35194), + 10: uint16(35196), + 11: uint16(35195), + 12: uint16(35327), + 13: uint16(35736), + 14: uint16(35737), + 15: uint16(36517), + 16: uint16(36516), + 17: uint16(36515), + 18: uint16(37998), + 19: uint16(37997), + 20: uint16(37999), + 21: uint16(38001), + 22: uint16(38003), + 23: uint16(38729), + 24: uint16(39026), + 25: uint16(39263), + 26: uint16(40040), + 27: uint16(40046), + 28: uint16(40045), + 29: uint16(40459), + 30: uint16(40461), + 31: uint16(40464), + 32: uint16(40463), + 33: uint16(40466), + 34: uint16(40465), + 35: uint16(40609), + 36: uint16(40693), + 37: uint16(40713), + 38: uint16(40775), + 39: uint16(40824), + 40: uint16(40827), + 41: uint16(40826), + 42: uint16(40825), + 43: uint16(22302), + 44: uint16(28774), + 45: uint16(31855), + 46: uint16(34876), + 47: uint16(36274), + 48: uint16(36518), + 49: uint16(37315), + 50: uint16(38004), + 51: uint16(38008), + 52: uint16(38006), + 53: uint16(38005), + 54: uint16(39520), + 55: uint16(40052), + 56: uint16(40051), + 57: uint16(40049), + 58: uint16(40053), + 59: uint16(40468), + 60: uint16(40467), + 61: uint16(40694), + 62: uint16(40714), + 63: uint16(40868), + 64: uint16(28776), + 65: uint16(28773), + 66: uint16(31991), + 67: uint16(34410), + 68: uint16(34878), + 69: uint16(34877), + 70: uint16(34879), + 71: uint16(35742), + 72: uint16(35996), + 73: uint16(36521), + 74: uint16(36553), + 75: uint16(38731), + 76: uint16(39027), + 77: uint16(39028), + 78: uint16(39116), + 79: uint16(39265), + 80: uint16(39339), + 81: uint16(39524), + 82: uint16(39526), + 83: uint16(39527), + 84: uint16(39716), + 85: uint16(40469), + 86: uint16(40471), + 87: uint16(40776), + 88: uint16(25095), + 89: uint16(27422), + 90: uint16(29223), + 91: uint16(34380), + 92: uint16(36520), + 93: uint16(38018), + 94: uint16(38016), + 95: uint16(38017), + 96: uint16(39529), + 97: uint16(39528), + 98: uint16(39726), + 99: uint16(40473), + 100: uint16(29225), + 101: uint16(34379), + 102: uint16(35743), + 103: uint16(38019), + 104: uint16(40057), + 105: uint16(40631), + 106: uint16(30325), + 107: uint16(39531), + 108: uint16(40058), + 109: uint16(40477), + 110: uint16(28777), + 111: uint16(28778), + 112: uint16(40612), + 113: uint16(40830), + 114: uint16(40777), + 115: uint16(40856), + 116: uint16(30849), + 117: uint16(37561), + 118: uint16(35023), + 119: uint16(22715), + 120: uint16(24658), + 121: uint16(31911), + 122: uint16(23290), + 123: uint16(9556), + 124: uint16(9574), + 125: uint16(9559), + 126: uint16(9568), + 127: uint16(9580), + 128: uint16(9571), + 129: uint16(9562), + 130: uint16(9577), + 131: uint16(9565), + 132: uint16(9554), + 133: uint16(9572), + 134: uint16(9557), + 135: uint16(9566), + 136: uint16(9578), + 137: uint16(9569), + 138: uint16(9560), + 139: uint16(9575), + 140: uint16(9563), + 141: uint16(9555), + 142: uint16(9573), + 143: uint16(9558), + 144: uint16(9567), + 145: uint16(9579), + 146: uint16(9570), + 147: uint16(9561), + 148: uint16(9576), + 149: uint16(9564), + 150: uint16(9553), + 151: uint16(9552), + 152: uint16(9581), + 153: uint16(9582), + 154: uint16(9584), + 155: uint16(9583), + 156: uint16(9619), + }, +} + +var _hkscs = [5172]uint16{ + 0: uint16(17392), + 1: uint16(19506), + 2: uint16(17923), + 3: uint16(17830), + 4: uint16(17784), + 5: uint16(29287), + 6: uint16(19831), + 7: uint16(17843), + 8: uint16(31921), + 9: uint16(19682), + 10: uint16(31941), + 11: uint16(15253), + 12: uint16(18230), + 13: uint16(18244), + 14: uint16(19527), + 15: uint16(19520), + 16: uint16(17087), + 17: uint16(13847), + 18: uint16(29522), + 19: uint16(28299), + 20: uint16(28882), + 21: uint16(19543), + 22: uint16(41809), + 23: uint16(18255), + 24: uint16(17882), + 25: uint16(19589), + 26: uint16(31852), + 27: uint16(19719), + 28: uint16(19108), + 29: uint16(18081), + 30: uint16(27427), + 31: uint16(29221), + 32: uint16(23124), + 33: uint16(6755), + 34: uint16(15878), + 35: uint16(16225), + 36: uint16(26189), + 37: uint16(22267), + 39: uint16(32149), + 40: uint16(22813), + 41: uint16(35769), + 42: uint16(15860), + 43: uint16(38708), + 44: uint16(31727), + 45: uint16(23515), + 46: uint16(7518), + 47: uint16(23204), + 48: uint16(13861), + 49: uint16(40624), + 50: uint16(23249), + 51: uint16(23479), + 52: uint16(23804), + 53: uint16(26478), + 54: uint16(34195), + 55: uint16(39237), + 56: uint16(29793), + 57: uint16(29853), + 58: uint16(14453), + 59: uint16(7507), + 60: uint16(13982), + 61: uint16(24609), + 62: uint16(16108), + 63: uint16(22750), + 64: uint16(15093), + 65: uint16(31484), + 66: uint16(40855), + 67: uint16(16737), + 68: uint16(35085), + 69: uint16(12778), + 70: uint16(2698), + 71: uint16(12894), + 72: uint16(17162), + 73: uint16(33924), + 74: uint16(40854), + 75: uint16(37935), + 76: uint16(18736), + 77: uint16(34323), + 78: uint16(22678), + 79: uint16(38730), + 80: uint16(37400), + 81: uint16(31184), + 82: uint16(31282), + 83: uint16(26208), + 84: uint16(27177), + 85: uint16(34973), + 86: uint16(29772), + 87: uint16(31685), + 88: uint16(26498), + 89: uint16(31276), + 90: uint16(21071), + 91: uint16(36934), + 92: uint16(13542), + 93: uint16(29636), + 94: uint16(23993), + 95: uint16(29894), + 96: uint16(40903), + 97: uint16(22451), + 98: uint16(18735), + 99: uint16(21580), + 100: uint16(16689), + 101: uint16(13966), + 102: uint16(22552), + 103: uint16(31346), + 104: uint16(31589), + 105: uint16(35727), + 106: uint16(18094), + 107: uint16(28296), + 108: uint16(16769), + 109: uint16(23961), + 110: uint16(31662), + 111: uint16(9404), + 112: uint16(40904), + 113: uint16(9409), + 114: uint16(9417), + 115: uint16(9420), + 116: uint16(40905), + 117: uint16(34052), + 118: uint16(13755), + 119: uint16(16564), + 120: uint16(40906), + 121: uint16(17633), + 122: uint16(44543), + 123: uint16(25281), + 124: uint16(28782), + 125: uint16(40907), + 157: uint16(12736), + 158: uint16(12737), + 159: uint16(12738), + 160: uint16(12739), + 161: uint16(12740), + 162: uint16(268), + 163: uint16(12741), + 164: uint16(209), + 165: uint16(205), + 166: uint16(12742), + 167: uint16(12743), + 168: uint16(203), + 169: uint16(8168), + 170: uint16(12744), + 171: uint16(202), + 172: uint16(12745), + 173: uint16(12746), + 174: uint16(12747), + 175: uint16(12748), + 176: uint16(270), + 177: uint16(12749), + 178: uint16(12750), + 179: uint16(256), + 180: uint16(193), + 181: uint16(461), + 182: uint16(192), + 183: uint16(274), + 184: uint16(201), + 185: uint16(282), + 186: uint16(200), + 187: uint16(332), + 188: uint16(211), + 189: uint16(465), + 190: uint16(210), + 191: uint16(56320), + 192: uint16(7870), + 193: uint16(56324), + 194: uint16(7872), + 195: uint16(202), + 196: uint16(257), + 197: uint16(225), + 198: uint16(462), + 199: uint16(224), + 200: uint16(593), + 201: uint16(275), + 202: uint16(233), + 203: uint16(283), + 204: uint16(232), + 205: uint16(299), + 206: uint16(237), + 207: uint16(464), + 208: uint16(236), + 209: uint16(333), + 210: uint16(243), + 211: uint16(466), + 212: uint16(242), + 213: uint16(363), + 214: uint16(250), + 215: uint16(468), + 216: uint16(249), + 217: uint16(470), + 218: uint16(472), + 219: uint16(474), + 220: uint16(476), + 221: uint16(252), + 222: uint16(56328), + 223: uint16(7871), + 224: uint16(56332), + 225: uint16(7873), + 226: uint16(234), + 227: uint16(609), + 228: uint16(9178), + 229: uint16(9179), + 314: uint16(41897), + 315: uint16(4421), + 317: uint16(25866), + 320: uint16(20029), + 321: uint16(28381), + 322: uint16(40270), + 323: uint16(37343), + 326: uint16(30517), + 327: uint16(25745), + 328: uint16(20250), + 329: uint16(20264), + 330: uint16(20392), + 331: uint16(20822), + 332: uint16(20852), + 333: uint16(20892), + 334: uint16(20964), + 335: uint16(21153), + 336: uint16(21160), + 337: uint16(21307), + 338: uint16(21326), + 339: uint16(21457), + 340: uint16(21464), + 341: uint16(22242), + 342: uint16(22768), + 343: uint16(22788), + 344: uint16(22791), + 345: uint16(22834), + 346: uint16(22836), + 347: uint16(23398), + 348: uint16(23454), + 349: uint16(23455), + 350: uint16(23706), + 351: uint16(24198), + 352: uint16(24635), + 353: uint16(25993), + 354: uint16(26622), + 355: uint16(26628), + 356: uint16(26725), + 357: uint16(27982), + 358: uint16(28860), + 359: uint16(30005), + 360: uint16(32420), + 361: uint16(32428), + 362: uint16(32442), + 363: uint16(32455), + 364: uint16(32463), + 365: uint16(32479), + 366: uint16(32518), + 367: uint16(32567), + 368: uint16(33402), + 369: uint16(33487), + 370: uint16(33647), + 371: uint16(35270), + 372: uint16(35774), + 373: uint16(35810), + 374: uint16(36710), + 375: uint16(36711), + 376: uint16(36718), + 377: uint16(29713), + 378: uint16(31996), + 379: uint16(32205), + 380: uint16(26950), + 381: uint16(31433), + 382: uint16(21031), + 387: uint16(37260), + 388: uint16(30904), + 389: uint16(37214), + 390: uint16(32956), + 392: uint16(36107), + 393: uint16(33014), + 394: uint16(2535), + 397: uint16(32927), + 398: uint16(40647), + 399: uint16(19661), + 400: uint16(40393), + 401: uint16(40460), + 402: uint16(19518), + 403: uint16(40438), + 404: uint16(28686), + 405: uint16(40458), + 406: uint16(41267), + 407: uint16(13761), + 409: uint16(28314), + 410: uint16(33342), + 411: uint16(29977), + 413: uint16(18705), + 414: uint16(39532), + 415: uint16(39567), + 416: uint16(40857), + 417: uint16(31111), + 418: uint16(33900), + 419: uint16(7626), + 420: uint16(1488), + 421: uint16(10982), + 422: uint16(20004), + 423: uint16(20097), + 424: uint16(20096), + 425: uint16(20103), + 426: uint16(20159), + 427: uint16(20203), + 428: uint16(20279), + 429: uint16(13388), + 430: uint16(20413), + 431: uint16(15944), + 432: uint16(20483), + 433: uint16(20616), + 434: uint16(13437), + 435: uint16(13459), + 436: uint16(13477), + 437: uint16(20870), + 438: uint16(22789), + 439: uint16(20955), + 440: uint16(20988), + 441: uint16(20997), + 442: uint16(20105), + 443: uint16(21113), + 444: uint16(21136), + 445: uint16(21287), + 446: uint16(13767), + 447: uint16(21417), + 448: uint16(13649), + 449: uint16(21424), + 450: uint16(13651), + 451: uint16(21442), + 452: uint16(21539), + 453: uint16(13677), + 454: uint16(13682), + 455: uint16(13953), + 456: uint16(21651), + 457: uint16(21667), + 458: uint16(21684), + 459: uint16(21689), + 460: uint16(21712), + 461: uint16(21743), + 462: uint16(21784), + 463: uint16(21795), + 464: uint16(21800), + 465: uint16(13720), + 466: uint16(21823), + 467: uint16(13733), + 468: uint16(13759), + 469: uint16(21975), + 470: uint16(13765), + 471: uint16(32132), + 472: uint16(21797), + 474: uint16(3138), + 475: uint16(3349), + 476: uint16(20779), + 477: uint16(21904), + 478: uint16(11462), + 479: uint16(14828), + 480: uint16(833), + 481: uint16(36422), + 482: uint16(19896), + 483: uint16(38117), + 484: uint16(16467), + 485: uint16(32958), + 486: uint16(30586), + 487: uint16(11320), + 488: uint16(14900), + 489: uint16(18389), + 490: uint16(33117), + 491: uint16(27122), + 492: uint16(19946), + 493: uint16(25821), + 494: uint16(3452), + 495: uint16(4020), + 496: uint16(3285), + 497: uint16(4340), + 498: uint16(25741), + 499: uint16(36478), + 500: uint16(3734), + 501: uint16(3083), + 502: uint16(3940), + 503: uint16(11433), + 504: uint16(33366), + 505: uint16(17619), + 507: uint16(3398), + 508: uint16(39501), + 509: uint16(33001), + 510: uint16(18420), + 511: uint16(20135), + 512: uint16(11458), + 513: uint16(39602), + 514: uint16(14951), + 515: uint16(38388), + 516: uint16(16365), + 517: uint16(13574), + 518: uint16(21191), + 519: uint16(38868), + 520: uint16(30920), + 521: uint16(11588), + 522: uint16(40302), + 523: uint16(38933), + 525: uint16(17369), + 526: uint16(24741), + 527: uint16(25780), + 528: uint16(21731), + 529: uint16(11596), + 530: uint16(11210), + 531: uint16(4215), + 532: uint16(14843), + 533: uint16(4207), + 534: uint16(26330), + 535: uint16(26390), + 536: uint16(31136), + 537: uint16(25834), + 538: uint16(20562), + 539: uint16(3139), + 540: uint16(36456), + 541: uint16(8609), + 542: uint16(35660), + 543: uint16(1841), + 545: uint16(18443), + 546: uint16(425), + 547: uint16(16378), + 548: uint16(22643), + 549: uint16(11661), + 551: uint16(17864), + 552: uint16(1276), + 553: uint16(24727), + 554: uint16(3916), + 555: uint16(3478), + 556: uint16(21881), + 557: uint16(16571), + 558: uint16(17338), + 560: uint16(19124), + 561: uint16(10854), + 562: uint16(4253), + 563: uint16(33194), + 564: uint16(39157), + 565: uint16(3484), + 566: uint16(25465), + 567: uint16(14846), + 568: uint16(10101), + 569: uint16(36288), + 570: uint16(22177), + 571: uint16(25724), + 572: uint16(15939), + 574: uint16(42497), + 575: uint16(3593), + 576: uint16(10959), + 577: uint16(11465), + 579: uint16(4296), + 580: uint16(14786), + 581: uint16(14738), + 582: uint16(14854), + 583: uint16(33435), + 584: uint16(13688), + 585: uint16(24137), + 586: uint16(8391), + 587: uint16(22098), + 588: uint16(3889), + 589: uint16(11442), + 590: uint16(38688), + 591: uint16(13500), + 592: uint16(27709), + 593: uint16(20027), + 596: uint16(30068), + 597: uint16(11915), + 598: uint16(8712), + 599: uint16(42587), + 600: uint16(36045), + 601: uint16(3706), + 602: uint16(3124), + 603: uint16(26652), + 604: uint16(32659), + 605: uint16(4303), + 606: uint16(10243), + 607: uint16(10553), + 608: uint16(13819), + 609: uint16(20963), + 610: uint16(3724), + 611: uint16(3981), + 612: uint16(3754), + 613: uint16(16275), + 614: uint16(3888), + 615: uint16(3399), + 616: uint16(4431), + 617: uint16(3660), + 619: uint16(3755), + 620: uint16(2985), + 621: uint16(3400), + 622: uint16(4288), + 623: uint16(4413), + 624: uint16(16377), + 625: uint16(9878), + 626: uint16(25650), + 627: uint16(4013), + 628: uint16(13300), + 629: uint16(30265), + 630: uint16(11214), + 631: uint16(3454), + 632: uint16(3455), + 633: uint16(11345), + 634: uint16(11349), + 635: uint16(14872), + 636: uint16(3736), + 637: uint16(4295), + 638: uint16(3886), + 639: uint16(42546), + 640: uint16(27472), + 641: uint16(36050), + 642: uint16(36249), + 643: uint16(36042), + 644: uint16(38314), + 645: uint16(21708), + 646: uint16(33476), + 647: uint16(21945), + 649: uint16(40643), + 650: uint16(39974), + 651: uint16(39606), + 652: uint16(30558), + 653: uint16(11758), + 654: uint16(28992), + 655: uint16(33133), + 656: uint16(33004), + 657: uint16(23580), + 658: uint16(25970), + 659: uint16(33076), + 660: uint16(14231), + 661: uint16(21343), + 662: uint16(32957), + 663: uint16(37302), + 664: uint16(3834), + 665: uint16(3599), + 666: uint16(3703), + 667: uint16(3835), + 668: uint16(13789), + 669: uint16(19947), + 670: uint16(13833), + 671: uint16(3286), + 672: uint16(22191), + 673: uint16(10165), + 674: uint16(4297), + 675: uint16(3600), + 676: uint16(3704), + 677: uint16(4216), + 678: uint16(4424), + 679: uint16(33287), + 680: uint16(5205), + 681: uint16(3705), + 682: uint16(20048), + 683: uint16(11684), + 684: uint16(23124), + 685: uint16(4125), + 686: uint16(4126), + 687: uint16(4341), + 688: uint16(4342), + 689: uint16(22428), + 690: uint16(3601), + 691: uint16(30356), + 692: uint16(33485), + 693: uint16(4021), + 694: uint16(3707), + 695: uint16(20862), + 696: uint16(14083), + 697: uint16(4022), + 698: uint16(4480), + 699: uint16(21208), + 700: uint16(41661), + 701: uint16(18906), + 702: uint16(6202), + 703: uint16(16759), + 704: uint16(33404), + 705: uint16(22681), + 706: uint16(21096), + 707: uint16(13850), + 708: uint16(22333), + 709: uint16(31666), + 710: uint16(23400), + 711: uint16(18432), + 712: uint16(19244), + 713: uint16(40743), + 714: uint16(18919), + 715: uint16(39967), + 716: uint16(39821), + 717: uint16(23412), + 718: uint16(12605), + 719: uint16(22011), + 720: uint16(13810), + 721: uint16(22153), + 722: uint16(20008), + 723: uint16(22786), + 724: uint16(7105), + 725: uint16(63608), + 726: uint16(38737), + 727: uint16(134), + 728: uint16(20059), + 729: uint16(20155), + 730: uint16(13630), + 731: uint16(23587), + 732: uint16(24401), + 733: uint16(24516), + 734: uint16(14586), + 735: uint16(25164), + 736: uint16(25909), + 737: uint16(27514), + 738: uint16(27701), + 739: uint16(27706), + 740: uint16(28780), + 741: uint16(29227), + 742: uint16(20012), + 743: uint16(29357), + 744: uint16(18665), + 745: uint16(32594), + 746: uint16(31035), + 747: uint16(31993), + 748: uint16(32595), + 749: uint16(25194), + 750: uint16(13505), + 752: uint16(25419), + 753: uint16(32770), + 754: uint16(32896), + 755: uint16(26130), + 756: uint16(26961), + 757: uint16(21341), + 758: uint16(34916), + 759: uint16(35265), + 760: uint16(30898), + 761: uint16(35744), + 762: uint16(36125), + 763: uint16(38021), + 764: uint16(38264), + 765: uint16(38271), + 766: uint16(38376), + 767: uint16(36367), + 768: uint16(38886), + 769: uint16(39029), + 770: uint16(39118), + 771: uint16(39134), + 772: uint16(39267), + 773: uint16(38928), + 774: uint16(40060), + 775: uint16(40479), + 776: uint16(40644), + 777: uint16(27503), + 778: uint16(63751), + 779: uint16(20023), + 780: uint16(135), + 781: uint16(38429), + 782: uint16(25143), + 783: uint16(38050), + 785: uint16(20539), + 786: uint16(28158), + 787: uint16(40051), + 788: uint16(40870), + 789: uint16(15817), + 790: uint16(34959), + 791: uint16(16718), + 792: uint16(28791), + 793: uint16(23797), + 794: uint16(19232), + 795: uint16(20941), + 796: uint16(13657), + 797: uint16(23856), + 798: uint16(24866), + 799: uint16(35378), + 800: uint16(36775), + 801: uint16(37366), + 802: uint16(29073), + 803: uint16(26393), + 804: uint16(29626), + 805: uint16(12929), + 806: uint16(41223), + 807: uint16(15499), + 808: uint16(6528), + 809: uint16(19216), + 810: uint16(30948), + 811: uint16(29698), + 812: uint16(20910), + 813: uint16(34575), + 814: uint16(16393), + 815: uint16(27235), + 816: uint16(41658), + 817: uint16(16931), + 818: uint16(34319), + 819: uint16(2671), + 820: uint16(31274), + 821: uint16(39239), + 822: uint16(35562), + 823: uint16(38741), + 824: uint16(28749), + 825: uint16(21284), + 826: uint16(8318), + 827: uint16(37876), + 828: uint16(30425), + 829: uint16(35299), + 830: uint16(40871), + 831: uint16(30685), + 832: uint16(20131), + 833: uint16(20464), + 834: uint16(20668), + 835: uint16(20015), + 836: uint16(20247), + 837: uint16(40872), + 838: uint16(21556), + 839: uint16(32139), + 840: uint16(22674), + 841: uint16(22736), + 842: uint16(7606), + 843: uint16(24210), + 844: uint16(24217), + 845: uint16(24514), + 846: uint16(10002), + 847: uint16(25995), + 848: uint16(13305), + 849: uint16(26905), + 850: uint16(27203), + 851: uint16(15459), + 852: uint16(27903), + 854: uint16(29184), + 855: uint16(17669), + 856: uint16(29580), + 857: uint16(16091), + 858: uint16(18963), + 859: uint16(23317), + 860: uint16(29881), + 861: uint16(35715), + 862: uint16(23716), + 863: uint16(22165), + 864: uint16(31379), + 865: uint16(31724), + 866: uint16(31939), + 867: uint16(32364), + 868: uint16(33528), + 869: uint16(34199), + 870: uint16(40873), + 871: uint16(34960), + 872: uint16(40874), + 873: uint16(36537), + 874: uint16(40875), + 875: uint16(36815), + 876: uint16(34143), + 877: uint16(39392), + 878: uint16(37409), + 879: uint16(40876), + 880: uint16(36281), + 881: uint16(5183), + 882: uint16(16497), + 883: uint16(17058), + 884: uint16(23066), + 888: uint16(39016), + 889: uint16(26475), + 890: uint16(17014), + 891: uint16(22333), + 893: uint16(34262), + 894: uint16(18811), + 895: uint16(33471), + 896: uint16(28941), + 897: uint16(19585), + 898: uint16(28020), + 899: uint16(23931), + 900: uint16(27413), + 901: uint16(28606), + 902: uint16(40877), + 903: uint16(40878), + 904: uint16(23446), + 905: uint16(40879), + 906: uint16(26343), + 907: uint16(32347), + 908: uint16(28247), + 909: uint16(31178), + 910: uint16(15752), + 911: uint16(17603), + 912: uint16(12886), + 913: uint16(10134), + 914: uint16(17306), + 915: uint16(17718), + 917: uint16(23765), + 918: uint16(15130), + 919: uint16(35577), + 920: uint16(23672), + 921: uint16(15634), + 922: uint16(13649), + 923: uint16(23928), + 924: uint16(40882), + 925: uint16(29015), + 926: uint16(17752), + 927: uint16(16620), + 928: uint16(7715), + 929: uint16(19575), + 930: uint16(14712), + 931: uint16(13386), + 932: uint16(420), + 933: uint16(27713), + 934: uint16(35532), + 935: uint16(20404), + 936: uint16(569), + 937: uint16(22975), + 938: uint16(33132), + 939: uint16(38998), + 940: uint16(39162), + 941: uint16(24379), + 942: uint16(2975), + 944: uint16(8641), + 945: uint16(35181), + 946: uint16(16642), + 947: uint16(18107), + 948: uint16(36985), + 949: uint16(16135), + 950: uint16(40883), + 951: uint16(41397), + 952: uint16(16632), + 953: uint16(14294), + 954: uint16(18167), + 955: uint16(27718), + 956: uint16(16764), + 957: uint16(34482), + 958: uint16(29695), + 959: uint16(17773), + 960: uint16(14548), + 961: uint16(21658), + 962: uint16(17761), + 963: uint16(17691), + 964: uint16(19849), + 965: uint16(19579), + 966: uint16(19830), + 967: uint16(17898), + 968: uint16(16328), + 969: uint16(19215), + 970: uint16(13921), + 971: uint16(17630), + 972: uint16(17597), + 973: uint16(16877), + 974: uint16(23870), + 975: uint16(23880), + 976: uint16(23894), + 977: uint16(15868), + 978: uint16(14351), + 979: uint16(23972), + 980: uint16(23993), + 981: uint16(14368), + 982: uint16(14392), + 983: uint16(24130), + 984: uint16(24253), + 985: uint16(24357), + 986: uint16(24451), + 987: uint16(14600), + 988: uint16(14612), + 989: uint16(14655), + 990: uint16(14669), + 991: uint16(24791), + 992: uint16(24893), + 993: uint16(23781), + 994: uint16(14729), + 995: uint16(25015), + 996: uint16(25017), + 997: uint16(25039), + 998: uint16(14776), + 999: uint16(25132), + 1000: uint16(25232), + 1001: uint16(25317), + 1002: uint16(25368), + 1003: uint16(14840), + 1004: uint16(22193), + 1005: uint16(14851), + 1006: uint16(25570), + 1007: uint16(25595), + 1008: uint16(25607), + 1009: uint16(25690), + 1010: uint16(14923), + 1011: uint16(25792), + 1012: uint16(23829), + 1013: uint16(22049), + 1014: uint16(40863), + 1015: uint16(14999), + 1016: uint16(25990), + 1017: uint16(15037), + 1018: uint16(26111), + 1019: uint16(26195), + 1020: uint16(15090), + 1021: uint16(26258), + 1022: uint16(15138), + 1023: uint16(26390), + 1024: uint16(15170), + 1025: uint16(26532), + 1026: uint16(26624), + 1027: uint16(15192), + 1028: uint16(26698), + 1029: uint16(26756), + 1030: uint16(15218), + 1031: uint16(15217), + 1032: uint16(15227), + 1033: uint16(26889), + 1034: uint16(26947), + 1035: uint16(29276), + 1036: uint16(26980), + 1037: uint16(27039), + 1038: uint16(27013), + 1039: uint16(15292), + 1040: uint16(27094), + 1041: uint16(15325), + 1042: uint16(27237), + 1043: uint16(27252), + 1044: uint16(27249), + 1045: uint16(27266), + 1046: uint16(15340), + 1047: uint16(27289), + 1048: uint16(15346), + 1049: uint16(27307), + 1050: uint16(27317), + 1051: uint16(27348), + 1052: uint16(27382), + 1053: uint16(27521), + 1054: uint16(27585), + 1055: uint16(27626), + 1056: uint16(27765), + 1057: uint16(27818), + 1058: uint16(15563), + 1059: uint16(27906), + 1060: uint16(27910), + 1061: uint16(27942), + 1062: uint16(28033), + 1063: uint16(15599), + 1064: uint16(28068), + 1065: uint16(28081), + 1066: uint16(28181), + 1067: uint16(28184), + 1068: uint16(28201), + 1069: uint16(28294), + 1070: uint16(35264), + 1071: uint16(28347), + 1072: uint16(28386), + 1073: uint16(28378), + 1074: uint16(40831), + 1075: uint16(28392), + 1076: uint16(28393), + 1077: uint16(28452), + 1078: uint16(28468), + 1079: uint16(15686), + 1080: uint16(16193), + 1081: uint16(28545), + 1082: uint16(28606), + 1083: uint16(15722), + 1084: uint16(15733), + 1085: uint16(29111), + 1086: uint16(23705), + 1087: uint16(15754), + 1088: uint16(28716), + 1089: uint16(15761), + 1090: uint16(28752), + 1091: uint16(28756), + 1092: uint16(28783), + 1093: uint16(28799), + 1094: uint16(28809), + 1095: uint16(805), + 1096: uint16(17345), + 1097: uint16(13809), + 1098: uint16(3800), + 1099: uint16(16087), + 1100: uint16(22462), + 1101: uint16(28371), + 1102: uint16(28990), + 1103: uint16(22496), + 1104: uint16(13902), + 1105: uint16(27042), + 1106: uint16(35817), + 1107: uint16(23412), + 1108: uint16(31305), + 1109: uint16(22753), + 1110: uint16(38105), + 1111: uint16(31333), + 1112: uint16(31357), + 1113: uint16(22956), + 1114: uint16(31419), + 1115: uint16(31408), + 1116: uint16(31426), + 1117: uint16(31427), + 1118: uint16(29137), + 1119: uint16(25741), + 1120: uint16(16842), + 1121: uint16(31450), + 1122: uint16(31453), + 1123: uint16(31466), + 1124: uint16(16879), + 1125: uint16(21682), + 1126: uint16(23553), + 1127: uint16(31499), + 1128: uint16(31573), + 1129: uint16(31529), + 1130: uint16(21262), + 1131: uint16(23806), + 1132: uint16(31650), + 1133: uint16(31599), + 1134: uint16(33692), + 1135: uint16(23476), + 1136: uint16(27775), + 1137: uint16(31696), + 1138: uint16(33825), + 1139: uint16(31634), + 1141: uint16(23840), + 1142: uint16(15789), + 1143: uint16(23653), + 1144: uint16(33938), + 1145: uint16(31738), + 1147: uint16(31797), + 1148: uint16(23745), + 1149: uint16(31812), + 1150: uint16(31875), + 1151: uint16(18562), + 1152: uint16(31910), + 1153: uint16(26237), + 1154: uint16(17784), + 1155: uint16(31945), + 1156: uint16(31943), + 1157: uint16(31974), + 1158: uint16(31860), + 1159: uint16(31987), + 1160: uint16(31989), + 1162: uint16(32359), + 1163: uint16(17693), + 1164: uint16(28228), + 1165: uint16(32093), + 1166: uint16(28374), + 1167: uint16(29837), + 1168: uint16(32137), + 1169: uint16(32171), + 1170: uint16(28981), + 1171: uint16(32179), + 1173: uint16(16471), + 1174: uint16(24617), + 1175: uint16(32228), + 1176: uint16(15635), + 1177: uint16(32245), + 1178: uint16(6137), + 1179: uint16(32229), + 1180: uint16(33645), + 1182: uint16(24865), + 1183: uint16(24922), + 1184: uint16(32366), + 1185: uint16(32402), + 1186: uint16(17195), + 1187: uint16(37996), + 1188: uint16(32295), + 1189: uint16(32576), + 1190: uint16(32577), + 1191: uint16(32583), + 1192: uint16(31030), + 1193: uint16(25296), + 1194: uint16(39393), + 1195: uint16(32663), + 1196: uint16(25425), + 1197: uint16(32675), + 1198: uint16(5729), + 1199: uint16(104), + 1200: uint16(17756), + 1201: uint16(14182), + 1202: uint16(17667), + 1203: uint16(33594), + 1204: uint16(32762), + 1205: uint16(25737), + 1207: uint16(32776), + 1208: uint16(32797), + 1210: uint16(32815), + 1211: uint16(41095), + 1212: uint16(27843), + 1213: uint16(32827), + 1214: uint16(32828), + 1215: uint16(32865), + 1216: uint16(10004), + 1217: uint16(18825), + 1218: uint16(26150), + 1219: uint16(15843), + 1220: uint16(26344), + 1221: uint16(26405), + 1222: uint16(32935), + 1223: uint16(35400), + 1224: uint16(33031), + 1225: uint16(33050), + 1226: uint16(22704), + 1227: uint16(9974), + 1228: uint16(27775), + 1229: uint16(25752), + 1230: uint16(20408), + 1231: uint16(25831), + 1232: uint16(5258), + 1233: uint16(33304), + 1234: uint16(6238), + 1235: uint16(27219), + 1236: uint16(19045), + 1237: uint16(19093), + 1238: uint16(17530), + 1239: uint16(33321), + 1240: uint16(2829), + 1241: uint16(27218), + 1242: uint16(15742), + 1243: uint16(20473), + 1244: uint16(5373), + 1245: uint16(34018), + 1246: uint16(33634), + 1247: uint16(27402), + 1248: uint16(18855), + 1249: uint16(13616), + 1250: uint16(6003), + 1251: uint16(15864), + 1252: uint16(33450), + 1253: uint16(26907), + 1254: uint16(63892), + 1255: uint16(16859), + 1256: uint16(34123), + 1257: uint16(33488), + 1258: uint16(33562), + 1259: uint16(3606), + 1260: uint16(6068), + 1261: uint16(14017), + 1262: uint16(12669), + 1263: uint16(13658), + 1264: uint16(33403), + 1265: uint16(33506), + 1266: uint16(33560), + 1267: uint16(16011), + 1268: uint16(28067), + 1269: uint16(27397), + 1270: uint16(27543), + 1271: uint16(13774), + 1272: uint16(15807), + 1273: uint16(33565), + 1274: uint16(21996), + 1275: uint16(33669), + 1276: uint16(17675), + 1277: uint16(28069), + 1278: uint16(33708), + 1280: uint16(33747), + 1281: uint16(13438), + 1282: uint16(28372), + 1283: uint16(27223), + 1284: uint16(34138), + 1285: uint16(13462), + 1286: uint16(28226), + 1287: uint16(12015), + 1288: uint16(33880), + 1289: uint16(23524), + 1290: uint16(33905), + 1291: uint16(15827), + 1292: uint16(17636), + 1293: uint16(27303), + 1294: uint16(33866), + 1295: uint16(15541), + 1296: uint16(31064), + 1298: uint16(27542), + 1299: uint16(28279), + 1300: uint16(28227), + 1301: uint16(34014), + 1303: uint16(33681), + 1304: uint16(17568), + 1305: uint16(33939), + 1306: uint16(34020), + 1307: uint16(23697), + 1308: uint16(16960), + 1309: uint16(23744), + 1310: uint16(17731), + 1311: uint16(34100), + 1312: uint16(23282), + 1313: uint16(28313), + 1314: uint16(17703), + 1315: uint16(34163), + 1316: uint16(17686), + 1317: uint16(26559), + 1318: uint16(34326), + 1319: uint16(34341), + 1320: uint16(34363), + 1321: uint16(34241), + 1322: uint16(28808), + 1323: uint16(34306), + 1324: uint16(5506), + 1325: uint16(28877), + 1326: uint16(63922), + 1327: uint16(17770), + 1328: uint16(34344), + 1329: uint16(13896), + 1330: uint16(6306), + 1331: uint16(21495), + 1332: uint16(29594), + 1333: uint16(34430), + 1334: uint16(34673), + 1335: uint16(41208), + 1336: uint16(34798), + 1337: uint16(11303), + 1338: uint16(34737), + 1339: uint16(34778), + 1340: uint16(34831), + 1341: uint16(22113), + 1342: uint16(34412), + 1343: uint16(26710), + 1344: uint16(17935), + 1345: uint16(34885), + 1346: uint16(34886), + 1347: uint16(30176), + 1348: uint16(15801), + 1349: uint16(30180), + 1350: uint16(34910), + 1351: uint16(34972), + 1352: uint16(18011), + 1353: uint16(34996), + 1354: uint16(34997), + 1355: uint16(25537), + 1356: uint16(35013), + 1357: uint16(30583), + 1358: uint16(30479), + 1359: uint16(35207), + 1360: uint16(35210), + 1363: uint16(35239), + 1364: uint16(35260), + 1365: uint16(35365), + 1366: uint16(35303), + 1367: uint16(31012), + 1368: uint16(31421), + 1369: uint16(35484), + 1370: uint16(30611), + 1371: uint16(37374), + 1372: uint16(35472), + 1373: uint16(31321), + 1374: uint16(31465), + 1375: uint16(31546), + 1376: uint16(16271), + 1377: uint16(18195), + 1378: uint16(31544), + 1379: uint16(29052), + 1380: uint16(35596), + 1381: uint16(35615), + 1382: uint16(21552), + 1383: uint16(21861), + 1384: uint16(35647), + 1385: uint16(35660), + 1386: uint16(35661), + 1387: uint16(35497), + 1388: uint16(19066), + 1389: uint16(35728), + 1390: uint16(35739), + 1391: uint16(35503), + 1392: uint16(5855), + 1393: uint16(17941), + 1394: uint16(34895), + 1395: uint16(35995), + 1396: uint16(32084), + 1397: uint16(32143), + 1398: uint16(63956), + 1399: uint16(14117), + 1400: uint16(32083), + 1401: uint16(36054), + 1402: uint16(32152), + 1403: uint16(32189), + 1404: uint16(36114), + 1405: uint16(36099), + 1406: uint16(6416), + 1407: uint16(36059), + 1408: uint16(28764), + 1409: uint16(36113), + 1410: uint16(19657), + 1411: uint16(16080), + 1413: uint16(36265), + 1414: uint16(32770), + 1415: uint16(4116), + 1416: uint16(18826), + 1417: uint16(15228), + 1418: uint16(33212), + 1419: uint16(28940), + 1420: uint16(31463), + 1421: uint16(36525), + 1422: uint16(36534), + 1423: uint16(36547), + 1424: uint16(37588), + 1425: uint16(36633), + 1426: uint16(36653), + 1427: uint16(33637), + 1428: uint16(33810), + 1429: uint16(36773), + 1430: uint16(37635), + 1431: uint16(41631), + 1432: uint16(2640), + 1433: uint16(36787), + 1434: uint16(18730), + 1435: uint16(35294), + 1436: uint16(34109), + 1437: uint16(15803), + 1438: uint16(24312), + 1439: uint16(12898), + 1440: uint16(36857), + 1441: uint16(40980), + 1442: uint16(34492), + 1443: uint16(34049), + 1444: uint16(8997), + 1445: uint16(14720), + 1446: uint16(28375), + 1447: uint16(36919), + 1448: uint16(34108), + 1449: uint16(31422), + 1450: uint16(36961), + 1451: uint16(34156), + 1452: uint16(34315), + 1453: uint16(37032), + 1454: uint16(34579), + 1455: uint16(37060), + 1456: uint16(34534), + 1457: uint16(37038), + 1459: uint16(37223), + 1460: uint16(15088), + 1461: uint16(37289), + 1462: uint16(37316), + 1463: uint16(31916), + 1464: uint16(35123), + 1465: uint16(7817), + 1466: uint16(37390), + 1467: uint16(27807), + 1468: uint16(37441), + 1469: uint16(37474), + 1470: uint16(21945), + 1472: uint16(35526), + 1473: uint16(15515), + 1474: uint16(35596), + 1475: uint16(21979), + 1476: uint16(3377), + 1477: uint16(37676), + 1478: uint16(37739), + 1479: uint16(35553), + 1480: uint16(35819), + 1481: uint16(28815), + 1482: uint16(23235), + 1483: uint16(35554), + 1484: uint16(35557), + 1485: uint16(18789), + 1486: uint16(37444), + 1487: uint16(35820), + 1488: uint16(35897), + 1489: uint16(35839), + 1490: uint16(37747), + 1491: uint16(37979), + 1492: uint16(36540), + 1493: uint16(38277), + 1494: uint16(38310), + 1495: uint16(37926), + 1496: uint16(38304), + 1497: uint16(28662), + 1498: uint16(17081), + 1499: uint16(9850), + 1500: uint16(34520), + 1501: uint16(4732), + 1502: uint16(15918), + 1503: uint16(18911), + 1504: uint16(27676), + 1505: uint16(38523), + 1506: uint16(38550), + 1507: uint16(16748), + 1508: uint16(38563), + 1509: uint16(28373), + 1510: uint16(25050), + 1511: uint16(38582), + 1512: uint16(30965), + 1513: uint16(35552), + 1514: uint16(38589), + 1515: uint16(21452), + 1516: uint16(18849), + 1517: uint16(27832), + 1518: uint16(628), + 1519: uint16(25616), + 1520: uint16(37039), + 1521: uint16(37093), + 1522: uint16(19153), + 1523: uint16(6421), + 1524: uint16(13066), + 1525: uint16(38705), + 1526: uint16(34370), + 1527: uint16(38710), + 1528: uint16(18959), + 1529: uint16(17725), + 1530: uint16(17797), + 1531: uint16(19177), + 1532: uint16(28789), + 1533: uint16(23361), + 1534: uint16(38683), + 1536: uint16(37333), + 1537: uint16(38743), + 1538: uint16(23370), + 1539: uint16(37355), + 1540: uint16(38751), + 1541: uint16(37925), + 1542: uint16(20688), + 1543: uint16(12471), + 1544: uint16(12476), + 1545: uint16(38793), + 1546: uint16(38815), + 1547: uint16(38833), + 1548: uint16(38846), + 1549: uint16(38848), + 1550: uint16(38866), + 1551: uint16(38880), + 1552: uint16(21612), + 1553: uint16(38894), + 1554: uint16(29724), + 1555: uint16(37939), + 1557: uint16(38901), + 1558: uint16(37917), + 1559: uint16(31098), + 1560: uint16(19153), + 1561: uint16(38964), + 1562: uint16(38963), + 1563: uint16(38987), + 1564: uint16(39014), + 1565: uint16(15118), + 1566: uint16(29045), + 1567: uint16(15697), + 1568: uint16(1584), + 1569: uint16(16732), + 1570: uint16(22278), + 1571: uint16(39114), + 1572: uint16(39095), + 1573: uint16(39112), + 1574: uint16(39111), + 1575: uint16(19199), + 1576: uint16(27943), + 1577: uint16(5843), + 1578: uint16(21936), + 1579: uint16(39137), + 1580: uint16(39142), + 1581: uint16(39148), + 1582: uint16(37752), + 1583: uint16(39225), + 1584: uint16(18985), + 1585: uint16(19314), + 1586: uint16(38999), + 1587: uint16(39173), + 1588: uint16(39413), + 1589: uint16(39436), + 1590: uint16(39483), + 1591: uint16(39440), + 1592: uint16(39512), + 1593: uint16(22309), + 1594: uint16(14020), + 1595: uint16(37041), + 1596: uint16(39893), + 1597: uint16(39648), + 1598: uint16(39650), + 1599: uint16(39685), + 1600: uint16(39668), + 1601: uint16(19470), + 1602: uint16(39700), + 1603: uint16(39725), + 1604: uint16(34304), + 1605: uint16(20532), + 1606: uint16(39732), + 1607: uint16(27048), + 1608: uint16(14531), + 1609: uint16(12413), + 1610: uint16(39760), + 1611: uint16(39744), + 1612: uint16(40254), + 1613: uint16(23109), + 1614: uint16(6243), + 1615: uint16(39822), + 1616: uint16(16971), + 1617: uint16(39938), + 1618: uint16(39935), + 1619: uint16(39948), + 1620: uint16(40552), + 1621: uint16(40404), + 1622: uint16(40887), + 1623: uint16(41362), + 1624: uint16(41387), + 1625: uint16(41185), + 1626: uint16(41251), + 1627: uint16(41439), + 1628: uint16(40318), + 1629: uint16(40323), + 1630: uint16(41268), + 1631: uint16(40462), + 1632: uint16(26760), + 1633: uint16(40388), + 1634: uint16(8539), + 1635: uint16(41363), + 1636: uint16(41504), + 1637: uint16(6459), + 1638: uint16(41523), + 1639: uint16(40249), + 1640: uint16(41145), + 1641: uint16(41652), + 1642: uint16(40592), + 1643: uint16(40597), + 1644: uint16(40606), + 1645: uint16(40610), + 1646: uint16(19764), + 1647: uint16(40618), + 1648: uint16(40623), + 1649: uint16(17252), + 1650: uint16(40641), + 1651: uint16(15200), + 1652: uint16(14821), + 1653: uint16(15645), + 1654: uint16(20274), + 1655: uint16(14270), + 1656: uint16(35883), + 1657: uint16(40706), + 1658: uint16(40712), + 1659: uint16(19350), + 1660: uint16(37924), + 1661: uint16(28066), + 1662: uint16(40727), + 1664: uint16(40761), + 1665: uint16(22175), + 1666: uint16(22154), + 1667: uint16(40773), + 1668: uint16(39352), + 1669: uint16(37003), + 1670: uint16(38898), + 1671: uint16(33919), + 1672: uint16(40802), + 1673: uint16(40809), + 1674: uint16(31452), + 1675: uint16(40846), + 1676: uint16(29206), + 1677: uint16(19390), + 1678: uint16(18805), + 1679: uint16(18875), + 1680: uint16(29047), + 1681: uint16(18936), + 1682: uint16(17224), + 1683: uint16(19025), + 1684: uint16(29598), + 1685: uint16(35802), + 1686: uint16(6394), + 1687: uint16(31135), + 1688: uint16(35198), + 1689: uint16(36406), + 1690: uint16(37737), + 1691: uint16(37875), + 1692: uint16(35396), + 1693: uint16(37612), + 1694: uint16(37761), + 1695: uint16(37835), + 1696: uint16(35180), + 1697: uint16(17593), + 1698: uint16(29207), + 1699: uint16(16107), + 1700: uint16(30578), + 1701: uint16(31299), + 1702: uint16(28880), + 1703: uint16(17523), + 1704: uint16(17400), + 1705: uint16(29054), + 1706: uint16(6127), + 1707: uint16(28835), + 1708: uint16(6334), + 1709: uint16(13721), + 1710: uint16(16071), + 1711: uint16(6277), + 1712: uint16(21551), + 1713: uint16(6136), + 1714: uint16(14114), + 1715: uint16(5883), + 1716: uint16(6201), + 1717: uint16(14049), + 1718: uint16(6004), + 1719: uint16(6353), + 1720: uint16(24395), + 1721: uint16(14115), + 1722: uint16(5824), + 1723: uint16(22363), + 1724: uint16(18981), + 1725: uint16(5118), + 1726: uint16(4776), + 1727: uint16(5062), + 1728: uint16(5302), + 1729: uint16(34051), + 1730: uint16(13990), + 1732: uint16(33877), + 1733: uint16(18836), + 1734: uint16(29029), + 1735: uint16(15921), + 1736: uint16(21852), + 1737: uint16(16123), + 1738: uint16(28754), + 1739: uint16(17652), + 1740: uint16(14062), + 1741: uint16(39325), + 1742: uint16(28454), + 1743: uint16(26617), + 1744: uint16(14131), + 1745: uint16(15381), + 1746: uint16(15847), + 1747: uint16(22636), + 1748: uint16(6434), + 1749: uint16(26640), + 1750: uint16(16471), + 1751: uint16(14143), + 1752: uint16(16609), + 1753: uint16(16523), + 1754: uint16(16655), + 1755: uint16(27681), + 1756: uint16(21707), + 1757: uint16(22174), + 1758: uint16(26289), + 1759: uint16(22162), + 1760: uint16(4063), + 1761: uint16(2984), + 1762: uint16(3597), + 1763: uint16(37830), + 1764: uint16(35603), + 1765: uint16(37788), + 1766: uint16(20216), + 1767: uint16(20779), + 1768: uint16(14361), + 1769: uint16(17462), + 1770: uint16(20156), + 1771: uint16(1125), + 1772: uint16(895), + 1773: uint16(20299), + 1774: uint16(20362), + 1775: uint16(22097), + 1776: uint16(23144), + 1777: uint16(427), + 1778: uint16(971), + 1779: uint16(14745), + 1780: uint16(778), + 1781: uint16(1044), + 1782: uint16(13365), + 1783: uint16(20265), + 1784: uint16(704), + 1785: uint16(36531), + 1786: uint16(629), + 1787: uint16(35546), + 1788: uint16(524), + 1789: uint16(20120), + 1790: uint16(20685), + 1791: uint16(20749), + 1792: uint16(20386), + 1793: uint16(20227), + 1794: uint16(18958), + 1795: uint16(16010), + 1796: uint16(20290), + 1797: uint16(20526), + 1798: uint16(20588), + 1799: uint16(20609), + 1800: uint16(20428), + 1801: uint16(20453), + 1802: uint16(20568), + 1803: uint16(20732), + 1808: uint16(28278), + 1809: uint16(13717), + 1810: uint16(15929), + 1811: uint16(16063), + 1812: uint16(28018), + 1813: uint16(6276), + 1814: uint16(16009), + 1815: uint16(20904), + 1816: uint16(20931), + 1817: uint16(1504), + 1818: uint16(17629), + 1819: uint16(1187), + 1820: uint16(1170), + 1821: uint16(1169), + 1822: uint16(36218), + 1823: uint16(35484), + 1824: uint16(1806), + 1825: uint16(21081), + 1826: uint16(21156), + 1827: uint16(2163), + 1828: uint16(21217), + 1830: uint16(18042), + 1831: uint16(29068), + 1832: uint16(17292), + 1833: uint16(3104), + 1834: uint16(18860), + 1835: uint16(4324), + 1836: uint16(27089), + 1837: uint16(3613), + 1839: uint16(16094), + 1840: uint16(29849), + 1841: uint16(29716), + 1842: uint16(29782), + 1843: uint16(29592), + 1844: uint16(19342), + 1845: uint16(19132), + 1846: uint16(16525), + 1847: uint16(21456), + 1848: uint16(13700), + 1849: uint16(29199), + 1850: uint16(16585), + 1851: uint16(21940), + 1852: uint16(837), + 1853: uint16(21709), + 1854: uint16(3014), + 1855: uint16(22301), + 1856: uint16(37469), + 1857: uint16(38644), + 1858: uint16(37734), + 1859: uint16(22493), + 1860: uint16(22413), + 1861: uint16(22399), + 1862: uint16(13886), + 1863: uint16(22731), + 1864: uint16(23193), + 1865: uint16(35398), + 1866: uint16(5882), + 1867: uint16(5999), + 1868: uint16(5904), + 1869: uint16(23084), + 1870: uint16(22968), + 1871: uint16(37519), + 1872: uint16(23166), + 1873: uint16(23247), + 1874: uint16(23058), + 1875: uint16(22854), + 1876: uint16(6643), + 1877: uint16(6241), + 1878: uint16(17045), + 1879: uint16(14069), + 1880: uint16(27909), + 1881: uint16(29763), + 1882: uint16(23073), + 1883: uint16(24195), + 1884: uint16(23169), + 1885: uint16(35799), + 1886: uint16(1043), + 1887: uint16(37856), + 1888: uint16(29836), + 1889: uint16(4867), + 1890: uint16(28933), + 1891: uint16(18802), + 1892: uint16(37896), + 1893: uint16(35323), + 1894: uint16(37821), + 1895: uint16(14240), + 1896: uint16(23582), + 1897: uint16(23710), + 1898: uint16(24158), + 1899: uint16(24136), + 1900: uint16(6550), + 1901: uint16(6524), + 1902: uint16(15086), + 1903: uint16(24269), + 1904: uint16(23375), + 1905: uint16(6403), + 1906: uint16(6404), + 1907: uint16(14081), + 1908: uint16(6304), + 1909: uint16(14045), + 1910: uint16(5886), + 1911: uint16(14035), + 1912: uint16(33066), + 1913: uint16(35399), + 1914: uint16(7610), + 1915: uint16(13426), + 1916: uint16(35240), + 1917: uint16(24332), + 1918: uint16(24334), + 1919: uint16(6439), + 1920: uint16(6059), + 1921: uint16(23147), + 1922: uint16(5947), + 1923: uint16(23364), + 1924: uint16(34324), + 1925: uint16(30205), + 1926: uint16(34912), + 1927: uint16(24702), + 1928: uint16(10336), + 1929: uint16(9771), + 1930: uint16(24539), + 1931: uint16(16056), + 1932: uint16(9647), + 1933: uint16(9662), + 1934: uint16(37000), + 1935: uint16(28531), + 1936: uint16(25024), + 1937: uint16(62), + 1938: uint16(70), + 1939: uint16(9755), + 1940: uint16(24985), + 1941: uint16(24984), + 1942: uint16(24693), + 1943: uint16(11419), + 1944: uint16(11527), + 1945: uint16(18132), + 1946: uint16(37197), + 1947: uint16(25713), + 1948: uint16(18021), + 1949: uint16(11114), + 1950: uint16(14889), + 1951: uint16(11042), + 1952: uint16(13392), + 1953: uint16(39146), + 1954: uint16(11896), + 1955: uint16(25399), + 1956: uint16(42075), + 1957: uint16(25782), + 1958: uint16(25393), + 1959: uint16(25553), + 1960: uint16(18915), + 1961: uint16(11623), + 1962: uint16(25252), + 1963: uint16(11425), + 1964: uint16(25659), + 1965: uint16(25963), + 1966: uint16(26994), + 1967: uint16(15348), + 1968: uint16(12430), + 1969: uint16(12973), + 1970: uint16(18825), + 1971: uint16(12971), + 1972: uint16(21773), + 1973: uint16(13024), + 1974: uint16(6361), + 1975: uint16(37951), + 1976: uint16(26318), + 1977: uint16(12937), + 1978: uint16(12723), + 1979: uint16(15072), + 1980: uint16(16784), + 1981: uint16(21892), + 1982: uint16(35618), + 1983: uint16(21903), + 1984: uint16(5884), + 1985: uint16(21851), + 1986: uint16(21541), + 1987: uint16(30958), + 1988: uint16(12547), + 1989: uint16(6186), + 1990: uint16(12852), + 1991: uint16(13412), + 1992: uint16(12815), + 1993: uint16(12674), + 1994: uint16(17097), + 1995: uint16(26254), + 1996: uint16(27940), + 1997: uint16(26219), + 1998: uint16(19347), + 1999: uint16(26160), + 2000: uint16(30832), + 2001: uint16(7659), + 2002: uint16(26211), + 2003: uint16(13010), + 2004: uint16(13025), + 2005: uint16(26142), + 2006: uint16(22642), + 2007: uint16(14545), + 2008: uint16(14394), + 2009: uint16(14268), + 2010: uint16(15257), + 2011: uint16(14242), + 2012: uint16(13310), + 2013: uint16(29904), + 2014: uint16(15254), + 2015: uint16(26511), + 2016: uint16(17962), + 2017: uint16(26806), + 2018: uint16(26654), + 2019: uint16(15300), + 2020: uint16(27326), + 2021: uint16(14435), + 2022: uint16(14293), + 2023: uint16(17543), + 2024: uint16(27187), + 2025: uint16(27218), + 2026: uint16(27337), + 2027: uint16(27397), + 2028: uint16(6418), + 2029: uint16(25873), + 2030: uint16(26776), + 2031: uint16(27212), + 2032: uint16(15319), + 2033: uint16(27258), + 2034: uint16(27479), + 2035: uint16(16320), + 2036: uint16(15514), + 2037: uint16(37792), + 2038: uint16(37618), + 2039: uint16(35818), + 2040: uint16(35531), + 2041: uint16(37513), + 2042: uint16(32798), + 2043: uint16(35292), + 2044: uint16(37991), + 2045: uint16(28069), + 2046: uint16(28427), + 2047: uint16(18924), + 2049: uint16(16255), + 2050: uint16(15759), + 2051: uint16(28164), + 2052: uint16(16444), + 2053: uint16(23101), + 2054: uint16(28170), + 2055: uint16(22599), + 2056: uint16(27940), + 2057: uint16(30786), + 2058: uint16(28987), + 2059: uint16(17178), + 2060: uint16(17014), + 2061: uint16(28913), + 2062: uint16(29264), + 2063: uint16(29319), + 2064: uint16(29332), + 2065: uint16(18319), + 2066: uint16(18213), + 2067: uint16(20857), + 2068: uint16(19108), + 2069: uint16(1515), + 2070: uint16(29818), + 2071: uint16(16120), + 2072: uint16(13919), + 2073: uint16(19018), + 2074: uint16(18711), + 2075: uint16(24545), + 2076: uint16(16134), + 2077: uint16(16049), + 2078: uint16(19167), + 2079: uint16(35875), + 2080: uint16(16181), + 2081: uint16(24743), + 2082: uint16(16115), + 2083: uint16(29900), + 2084: uint16(29756), + 2085: uint16(37767), + 2086: uint16(29751), + 2087: uint16(17567), + 2088: uint16(28138), + 2089: uint16(17745), + 2090: uint16(30083), + 2091: uint16(16227), + 2092: uint16(19673), + 2093: uint16(19718), + 2094: uint16(16216), + 2095: uint16(30037), + 2096: uint16(30323), + 2097: uint16(42438), + 2098: uint16(15129), + 2099: uint16(29800), + 2100: uint16(35532), + 2101: uint16(18859), + 2102: uint16(18830), + 2103: uint16(15099), + 2104: uint16(15821), + 2105: uint16(19022), + 2106: uint16(16127), + 2107: uint16(18885), + 2108: uint16(18675), + 2109: uint16(37370), + 2110: uint16(22322), + 2111: uint16(37698), + 2112: uint16(35555), + 2113: uint16(6244), + 2114: uint16(20703), + 2115: uint16(21025), + 2116: uint16(20967), + 2117: uint16(30584), + 2118: uint16(12850), + 2119: uint16(30478), + 2120: uint16(30479), + 2121: uint16(30587), + 2122: uint16(18071), + 2123: uint16(14209), + 2124: uint16(14942), + 2125: uint16(18672), + 2126: uint16(29752), + 2127: uint16(29851), + 2128: uint16(16063), + 2129: uint16(19130), + 2130: uint16(19143), + 2131: uint16(16584), + 2132: uint16(19094), + 2133: uint16(25006), + 2134: uint16(37639), + 2135: uint16(21889), + 2136: uint16(30750), + 2137: uint16(30861), + 2138: uint16(30856), + 2139: uint16(30930), + 2140: uint16(29648), + 2141: uint16(31065), + 2142: uint16(30529), + 2143: uint16(22243), + 2144: uint16(16654), + 2146: uint16(33942), + 2147: uint16(31141), + 2148: uint16(27181), + 2149: uint16(16122), + 2150: uint16(31290), + 2151: uint16(31220), + 2152: uint16(16750), + 2153: uint16(5862), + 2154: uint16(16690), + 2155: uint16(37429), + 2156: uint16(31217), + 2157: uint16(3404), + 2158: uint16(18828), + 2159: uint16(665), + 2160: uint16(15802), + 2161: uint16(5998), + 2162: uint16(13719), + 2163: uint16(21867), + 2164: uint16(13680), + 2165: uint16(13994), + 2166: uint16(468), + 2167: uint16(3085), + 2168: uint16(31458), + 2169: uint16(23129), + 2170: uint16(9973), + 2171: uint16(23215), + 2172: uint16(23196), + 2173: uint16(23053), + 2174: uint16(603), + 2175: uint16(30960), + 2176: uint16(23082), + 2177: uint16(23494), + 2178: uint16(31486), + 2179: uint16(16889), + 2180: uint16(31837), + 2181: uint16(31853), + 2182: uint16(16913), + 2183: uint16(23475), + 2184: uint16(24252), + 2185: uint16(24230), + 2186: uint16(31949), + 2187: uint16(18937), + 2188: uint16(6064), + 2189: uint16(31886), + 2190: uint16(31868), + 2191: uint16(31918), + 2192: uint16(27314), + 2193: uint16(32220), + 2194: uint16(32263), + 2195: uint16(32211), + 2196: uint16(32590), + 2197: uint16(25185), + 2198: uint16(24924), + 2199: uint16(31560), + 2200: uint16(32151), + 2201: uint16(24194), + 2202: uint16(17002), + 2203: uint16(27509), + 2204: uint16(2326), + 2205: uint16(26582), + 2206: uint16(78), + 2207: uint16(13775), + 2208: uint16(22468), + 2209: uint16(25618), + 2210: uint16(25592), + 2211: uint16(18786), + 2212: uint16(32733), + 2213: uint16(31527), + 2214: uint16(2092), + 2215: uint16(23273), + 2216: uint16(23875), + 2217: uint16(31500), + 2218: uint16(24078), + 2219: uint16(39398), + 2220: uint16(34373), + 2221: uint16(39523), + 2222: uint16(27164), + 2223: uint16(13375), + 2224: uint16(14818), + 2225: uint16(18935), + 2226: uint16(26029), + 2227: uint16(39455), + 2228: uint16(26016), + 2229: uint16(33920), + 2230: uint16(28967), + 2231: uint16(27857), + 2232: uint16(17642), + 2233: uint16(33079), + 2234: uint16(17410), + 2235: uint16(32966), + 2236: uint16(33033), + 2237: uint16(33090), + 2238: uint16(26548), + 2239: uint16(39107), + 2240: uint16(27202), + 2241: uint16(33378), + 2242: uint16(33381), + 2243: uint16(27217), + 2244: uint16(33875), + 2245: uint16(28071), + 2246: uint16(34320), + 2247: uint16(29211), + 2248: uint16(23174), + 2249: uint16(16767), + 2250: uint16(6208), + 2251: uint16(23339), + 2252: uint16(6305), + 2253: uint16(23268), + 2254: uint16(6360), + 2255: uint16(34464), + 2256: uint16(63932), + 2257: uint16(15759), + 2258: uint16(34861), + 2259: uint16(29730), + 2260: uint16(23042), + 2261: uint16(34926), + 2262: uint16(20293), + 2263: uint16(34951), + 2264: uint16(35007), + 2265: uint16(35046), + 2266: uint16(35173), + 2267: uint16(35149), + 2268: uint16(22147), + 2269: uint16(35156), + 2270: uint16(30597), + 2271: uint16(30596), + 2272: uint16(35829), + 2273: uint16(35801), + 2274: uint16(35740), + 2275: uint16(35321), + 2276: uint16(16045), + 2277: uint16(33955), + 2278: uint16(18165), + 2279: uint16(18127), + 2280: uint16(14322), + 2281: uint16(35389), + 2282: uint16(35356), + 2283: uint16(37960), + 2284: uint16(24397), + 2285: uint16(37419), + 2286: uint16(17028), + 2287: uint16(26068), + 2288: uint16(28969), + 2289: uint16(28868), + 2290: uint16(6213), + 2291: uint16(40301), + 2292: uint16(35999), + 2293: uint16(36073), + 2294: uint16(32220), + 2295: uint16(22938), + 2296: uint16(30659), + 2297: uint16(23024), + 2298: uint16(17262), + 2299: uint16(14036), + 2300: uint16(36394), + 2301: uint16(36519), + 2302: uint16(19465), + 2303: uint16(36656), + 2304: uint16(36682), + 2305: uint16(17140), + 2306: uint16(27736), + 2307: uint16(28603), + 2308: uint16(8993), + 2309: uint16(18587), + 2310: uint16(28537), + 2311: uint16(28299), + 2312: uint16(6106), + 2313: uint16(39913), + 2314: uint16(14005), + 2315: uint16(18735), + 2316: uint16(37051), + 2318: uint16(21873), + 2319: uint16(18694), + 2320: uint16(37307), + 2321: uint16(37892), + 2322: uint16(35403), + 2323: uint16(16482), + 2324: uint16(35580), + 2325: uint16(37927), + 2326: uint16(35869), + 2327: uint16(35899), + 2328: uint16(34021), + 2329: uint16(35371), + 2330: uint16(38297), + 2331: uint16(38311), + 2332: uint16(38295), + 2333: uint16(38294), + 2334: uint16(36148), + 2335: uint16(29765), + 2336: uint16(16066), + 2337: uint16(18687), + 2338: uint16(19010), + 2339: uint16(17386), + 2340: uint16(16103), + 2341: uint16(12837), + 2342: uint16(38543), + 2343: uint16(36583), + 2344: uint16(36454), + 2345: uint16(36453), + 2346: uint16(16076), + 2347: uint16(18925), + 2348: uint16(19064), + 2349: uint16(16366), + 2350: uint16(29714), + 2351: uint16(29803), + 2352: uint16(16124), + 2353: uint16(38721), + 2354: uint16(37040), + 2355: uint16(26695), + 2356: uint16(18973), + 2357: uint16(37011), + 2358: uint16(22495), + 2360: uint16(37736), + 2361: uint16(35209), + 2362: uint16(35878), + 2363: uint16(35631), + 2364: uint16(25534), + 2365: uint16(37562), + 2366: uint16(23313), + 2367: uint16(35689), + 2368: uint16(18748), + 2369: uint16(29689), + 2370: uint16(16923), + 2371: uint16(38811), + 2372: uint16(38769), + 2373: uint16(39224), + 2374: uint16(3878), + 2375: uint16(24001), + 2376: uint16(35781), + 2377: uint16(19122), + 2378: uint16(38943), + 2379: uint16(38106), + 2380: uint16(37622), + 2381: uint16(38359), + 2382: uint16(37349), + 2383: uint16(17600), + 2384: uint16(35664), + 2385: uint16(19047), + 2386: uint16(35684), + 2387: uint16(39132), + 2388: uint16(35397), + 2389: uint16(16128), + 2390: uint16(37418), + 2391: uint16(18725), + 2392: uint16(33812), + 2393: uint16(39227), + 2394: uint16(39245), + 2395: uint16(31494), + 2396: uint16(15869), + 2397: uint16(39323), + 2398: uint16(19311), + 2399: uint16(39338), + 2400: uint16(39516), + 2401: uint16(35685), + 2402: uint16(22728), + 2403: uint16(27279), + 2404: uint16(39457), + 2405: uint16(23294), + 2406: uint16(39471), + 2407: uint16(39153), + 2408: uint16(19344), + 2409: uint16(39240), + 2410: uint16(39356), + 2411: uint16(19389), + 2412: uint16(19351), + 2413: uint16(37757), + 2414: uint16(22642), + 2415: uint16(4866), + 2416: uint16(22562), + 2417: uint16(18872), + 2418: uint16(5352), + 2419: uint16(30788), + 2420: uint16(10015), + 2421: uint16(15800), + 2422: uint16(26821), + 2423: uint16(15741), + 2424: uint16(37976), + 2425: uint16(14631), + 2426: uint16(24912), + 2427: uint16(10113), + 2428: uint16(10603), + 2429: uint16(24839), + 2430: uint16(40015), + 2431: uint16(40019), + 2432: uint16(40059), + 2433: uint16(39989), + 2434: uint16(39952), + 2435: uint16(39807), + 2436: uint16(39887), + 2437: uint16(40493), + 2438: uint16(39839), + 2439: uint16(41461), + 2440: uint16(41214), + 2441: uint16(40225), + 2442: uint16(19630), + 2443: uint16(16644), + 2444: uint16(40472), + 2445: uint16(19632), + 2446: uint16(40204), + 2447: uint16(41396), + 2448: uint16(41197), + 2449: uint16(41203), + 2450: uint16(39215), + 2451: uint16(40357), + 2452: uint16(33981), + 2453: uint16(28178), + 2454: uint16(28639), + 2455: uint16(27522), + 2456: uint16(34300), + 2457: uint16(17715), + 2458: uint16(28068), + 2459: uint16(28292), + 2460: uint16(28144), + 2461: uint16(33824), + 2462: uint16(34286), + 2463: uint16(28160), + 2464: uint16(14295), + 2465: uint16(24676), + 2466: uint16(31202), + 2467: uint16(13724), + 2468: uint16(13888), + 2469: uint16(18733), + 2470: uint16(18910), + 2471: uint16(15714), + 2472: uint16(37851), + 2473: uint16(37566), + 2474: uint16(37704), + 2475: uint16(703), + 2476: uint16(30905), + 2477: uint16(37495), + 2478: uint16(37965), + 2479: uint16(20452), + 2480: uint16(13376), + 2481: uint16(36964), + 2482: uint16(21853), + 2483: uint16(30781), + 2484: uint16(30804), + 2485: uint16(30902), + 2486: uint16(30795), + 2487: uint16(5975), + 2488: uint16(12745), + 2489: uint16(18753), + 2490: uint16(13978), + 2491: uint16(20338), + 2492: uint16(28634), + 2493: uint16(28633), + 2495: uint16(28702), + 2496: uint16(21524), + 2497: uint16(16821), + 2498: uint16(22459), + 2499: uint16(22771), + 2500: uint16(22410), + 2501: uint16(40214), + 2502: uint16(22487), + 2503: uint16(28980), + 2504: uint16(13487), + 2505: uint16(16812), + 2506: uint16(29163), + 2507: uint16(27712), + 2508: uint16(20375), + 2510: uint16(6069), + 2511: uint16(35401), + 2512: uint16(24844), + 2513: uint16(23246), + 2514: uint16(23051), + 2515: uint16(17084), + 2516: uint16(17544), + 2517: uint16(14124), + 2518: uint16(19323), + 2519: uint16(35324), + 2520: uint16(37819), + 2521: uint16(37816), + 2522: uint16(6358), + 2523: uint16(3869), + 2524: uint16(33906), + 2525: uint16(27840), + 2526: uint16(5139), + 2527: uint16(17146), + 2528: uint16(11302), + 2529: uint16(17345), + 2530: uint16(22932), + 2531: uint16(15799), + 2532: uint16(26433), + 2533: uint16(32168), + 2534: uint16(24923), + 2535: uint16(24740), + 2536: uint16(18873), + 2537: uint16(18827), + 2538: uint16(35322), + 2539: uint16(37605), + 2540: uint16(29666), + 2541: uint16(16105), + 2542: uint16(29876), + 2543: uint16(35683), + 2544: uint16(6303), + 2545: uint16(16097), + 2546: uint16(19123), + 2547: uint16(27352), + 2548: uint16(29683), + 2549: uint16(29691), + 2550: uint16(16086), + 2551: uint16(19006), + 2552: uint16(19092), + 2553: uint16(6105), + 2554: uint16(19046), + 2555: uint16(935), + 2556: uint16(5156), + 2557: uint16(18917), + 2558: uint16(29768), + 2559: uint16(18710), + 2560: uint16(28837), + 2561: uint16(18806), + 2562: uint16(37508), + 2563: uint16(29670), + 2564: uint16(37727), + 2565: uint16(1278), + 2566: uint16(37681), + 2567: uint16(35534), + 2568: uint16(35350), + 2569: uint16(37766), + 2570: uint16(35815), + 2571: uint16(21973), + 2572: uint16(18741), + 2573: uint16(35458), + 2574: uint16(29035), + 2575: uint16(18755), + 2576: uint16(3327), + 2577: uint16(22180), + 2578: uint16(1562), + 2579: uint16(3051), + 2580: uint16(3256), + 2581: uint16(21762), + 2582: uint16(31172), + 2583: uint16(6138), + 2584: uint16(32254), + 2585: uint16(5826), + 2586: uint16(19024), + 2587: uint16(6226), + 2588: uint16(17710), + 2589: uint16(37889), + 2590: uint16(14090), + 2591: uint16(35520), + 2592: uint16(18861), + 2593: uint16(22960), + 2594: uint16(6335), + 2595: uint16(6275), + 2596: uint16(29828), + 2597: uint16(23201), + 2598: uint16(14050), + 2599: uint16(15707), + 2600: uint16(14000), + 2601: uint16(37471), + 2602: uint16(23161), + 2603: uint16(35457), + 2604: uint16(6242), + 2605: uint16(37748), + 2606: uint16(15565), + 2607: uint16(2740), + 2608: uint16(19094), + 2609: uint16(14730), + 2610: uint16(20724), + 2611: uint16(15721), + 2612: uint16(15692), + 2613: uint16(5020), + 2614: uint16(29045), + 2615: uint16(17147), + 2616: uint16(33304), + 2617: uint16(28175), + 2618: uint16(37092), + 2619: uint16(17643), + 2620: uint16(27991), + 2621: uint16(32335), + 2622: uint16(28775), + 2623: uint16(27823), + 2624: uint16(15574), + 2625: uint16(16365), + 2626: uint16(15917), + 2627: uint16(28162), + 2628: uint16(28428), + 2629: uint16(15727), + 2630: uint16(1013), + 2631: uint16(30033), + 2632: uint16(14012), + 2633: uint16(13512), + 2634: uint16(18048), + 2635: uint16(16090), + 2636: uint16(18545), + 2637: uint16(22980), + 2638: uint16(37486), + 2639: uint16(18750), + 2640: uint16(36673), + 2641: uint16(35868), + 2642: uint16(27584), + 2643: uint16(22546), + 2644: uint16(22472), + 2645: uint16(14038), + 2646: uint16(5202), + 2647: uint16(28926), + 2648: uint16(17250), + 2649: uint16(19057), + 2650: uint16(12259), + 2651: uint16(4784), + 2652: uint16(9149), + 2653: uint16(26809), + 2654: uint16(26983), + 2655: uint16(5016), + 2656: uint16(13541), + 2657: uint16(31732), + 2658: uint16(14047), + 2659: uint16(35459), + 2660: uint16(14294), + 2661: uint16(13306), + 2662: uint16(19615), + 2663: uint16(27162), + 2664: uint16(13997), + 2665: uint16(27831), + 2666: uint16(33854), + 2667: uint16(17631), + 2668: uint16(17614), + 2669: uint16(27942), + 2670: uint16(27985), + 2671: uint16(27778), + 2672: uint16(28638), + 2673: uint16(28439), + 2674: uint16(28937), + 2675: uint16(33597), + 2676: uint16(5946), + 2677: uint16(33773), + 2678: uint16(27776), + 2679: uint16(28755), + 2680: uint16(6107), + 2681: uint16(22921), + 2682: uint16(23170), + 2683: uint16(6067), + 2684: uint16(23137), + 2685: uint16(23153), + 2686: uint16(6405), + 2687: uint16(16892), + 2688: uint16(14125), + 2689: uint16(23023), + 2690: uint16(5948), + 2691: uint16(14023), + 2692: uint16(29070), + 2693: uint16(37776), + 2694: uint16(26266), + 2695: uint16(17061), + 2696: uint16(23150), + 2697: uint16(23083), + 2698: uint16(17043), + 2699: uint16(27179), + 2700: uint16(16121), + 2701: uint16(30518), + 2702: uint16(17499), + 2703: uint16(17098), + 2704: uint16(28957), + 2705: uint16(16985), + 2706: uint16(35297), + 2707: uint16(20400), + 2708: uint16(27944), + 2709: uint16(23746), + 2710: uint16(17614), + 2711: uint16(32333), + 2712: uint16(17341), + 2713: uint16(27148), + 2714: uint16(16982), + 2715: uint16(4868), + 2716: uint16(28838), + 2717: uint16(28979), + 2718: uint16(17385), + 2719: uint16(15781), + 2720: uint16(27871), + 2721: uint16(63525), + 2722: uint16(19023), + 2723: uint16(32357), + 2724: uint16(23019), + 2725: uint16(23855), + 2726: uint16(15859), + 2727: uint16(24412), + 2728: uint16(19037), + 2729: uint16(6111), + 2730: uint16(32164), + 2731: uint16(33830), + 2732: uint16(21637), + 2733: uint16(15098), + 2734: uint16(13056), + 2735: uint16(532), + 2736: uint16(22398), + 2737: uint16(2261), + 2738: uint16(1561), + 2739: uint16(16357), + 2740: uint16(8094), + 2741: uint16(41654), + 2742: uint16(28675), + 2743: uint16(37211), + 2744: uint16(23920), + 2745: uint16(29583), + 2746: uint16(31955), + 2747: uint16(35417), + 2748: uint16(37920), + 2749: uint16(20424), + 2750: uint16(32743), + 2751: uint16(29389), + 2752: uint16(29456), + 2753: uint16(31476), + 2754: uint16(29496), + 2755: uint16(29497), + 2756: uint16(22262), + 2757: uint16(29505), + 2758: uint16(29512), + 2759: uint16(16041), + 2760: uint16(31512), + 2761: uint16(36972), + 2762: uint16(29173), + 2763: uint16(18674), + 2764: uint16(29665), + 2765: uint16(33270), + 2766: uint16(16074), + 2767: uint16(30476), + 2768: uint16(16081), + 2769: uint16(27810), + 2770: uint16(22269), + 2771: uint16(29721), + 2772: uint16(29726), + 2773: uint16(29727), + 2774: uint16(16098), + 2775: uint16(16112), + 2776: uint16(16116), + 2777: uint16(16122), + 2778: uint16(29907), + 2779: uint16(16142), + 2780: uint16(16211), + 2781: uint16(30018), + 2782: uint16(30061), + 2783: uint16(30066), + 2784: uint16(30093), + 2785: uint16(16252), + 2786: uint16(30152), + 2787: uint16(30172), + 2788: uint16(16320), + 2789: uint16(30285), + 2790: uint16(16343), + 2791: uint16(30324), + 2792: uint16(16348), + 2793: uint16(30330), + 2794: uint16(20316), + 2795: uint16(29064), + 2796: uint16(22051), + 2797: uint16(35200), + 2798: uint16(22633), + 2799: uint16(16413), + 2800: uint16(30531), + 2801: uint16(16441), + 2802: uint16(26465), + 2803: uint16(16453), + 2804: uint16(13787), + 2805: uint16(30616), + 2806: uint16(16490), + 2807: uint16(16495), + 2808: uint16(23646), + 2809: uint16(30654), + 2810: uint16(30667), + 2811: uint16(22770), + 2812: uint16(30744), + 2813: uint16(28857), + 2814: uint16(30748), + 2815: uint16(16552), + 2816: uint16(30777), + 2817: uint16(30791), + 2818: uint16(30801), + 2819: uint16(30822), + 2820: uint16(33864), + 2821: uint16(21813), + 2822: uint16(31027), + 2823: uint16(26627), + 2824: uint16(31026), + 2825: uint16(16643), + 2826: uint16(16649), + 2827: uint16(31121), + 2828: uint16(31129), + 2829: uint16(36795), + 2830: uint16(31238), + 2831: uint16(36796), + 2832: uint16(16743), + 2833: uint16(31377), + 2834: uint16(16818), + 2835: uint16(31420), + 2836: uint16(33401), + 2837: uint16(16836), + 2838: uint16(31439), + 2839: uint16(31451), + 2840: uint16(16847), + 2841: uint16(20001), + 2842: uint16(31586), + 2843: uint16(31596), + 2844: uint16(31611), + 2845: uint16(31762), + 2846: uint16(31771), + 2847: uint16(16992), + 2848: uint16(17018), + 2849: uint16(31867), + 2850: uint16(31900), + 2851: uint16(17036), + 2852: uint16(31928), + 2853: uint16(17044), + 2854: uint16(31981), + 2855: uint16(36755), + 2856: uint16(28864), + 2857: uint16(3279), + 2858: uint16(32207), + 2859: uint16(32212), + 2860: uint16(32208), + 2861: uint16(32253), + 2862: uint16(32686), + 2863: uint16(32692), + 2864: uint16(29343), + 2865: uint16(17303), + 2866: uint16(32800), + 2867: uint16(32805), + 2868: uint16(31545), + 2869: uint16(32814), + 2870: uint16(32817), + 2871: uint16(32852), + 2872: uint16(15820), + 2873: uint16(22452), + 2874: uint16(28832), + 2875: uint16(32951), + 2876: uint16(33001), + 2877: uint16(17389), + 2878: uint16(33036), + 2879: uint16(29482), + 2880: uint16(33038), + 2881: uint16(33042), + 2882: uint16(30048), + 2883: uint16(33044), + 2884: uint16(17409), + 2885: uint16(15161), + 2886: uint16(33110), + 2887: uint16(33113), + 2888: uint16(33114), + 2889: uint16(17427), + 2890: uint16(22586), + 2891: uint16(33148), + 2892: uint16(33156), + 2893: uint16(17445), + 2894: uint16(33171), + 2895: uint16(17453), + 2896: uint16(33189), + 2897: uint16(22511), + 2898: uint16(33217), + 2899: uint16(33252), + 2900: uint16(33364), + 2901: uint16(17551), + 2902: uint16(33446), + 2903: uint16(33398), + 2904: uint16(33482), + 2905: uint16(33496), + 2906: uint16(33535), + 2907: uint16(17584), + 2908: uint16(33623), + 2909: uint16(38505), + 2910: uint16(27018), + 2911: uint16(33797), + 2912: uint16(28917), + 2913: uint16(33892), + 2914: uint16(24803), + 2915: uint16(33928), + 2916: uint16(17668), + 2917: uint16(33982), + 2918: uint16(34017), + 2919: uint16(34040), + 2920: uint16(34064), + 2921: uint16(34104), + 2922: uint16(34130), + 2923: uint16(17723), + 2924: uint16(34159), + 2925: uint16(34160), + 2926: uint16(34272), + 2927: uint16(17783), + 2928: uint16(34418), + 2929: uint16(34450), + 2930: uint16(34482), + 2931: uint16(34543), + 2932: uint16(38469), + 2933: uint16(34699), + 2934: uint16(17926), + 2935: uint16(17943), + 2936: uint16(34990), + 2937: uint16(35071), + 2938: uint16(35108), + 2939: uint16(35143), + 2940: uint16(35217), + 2941: uint16(31079), + 2942: uint16(35369), + 2943: uint16(35384), + 2944: uint16(35476), + 2945: uint16(35508), + 2946: uint16(35921), + 2947: uint16(36052), + 2948: uint16(36082), + 2949: uint16(36124), + 2950: uint16(18328), + 2951: uint16(22623), + 2952: uint16(36291), + 2953: uint16(18413), + 2954: uint16(20206), + 2955: uint16(36410), + 2956: uint16(21976), + 2957: uint16(22356), + 2958: uint16(36465), + 2959: uint16(22005), + 2960: uint16(36528), + 2961: uint16(18487), + 2962: uint16(36558), + 2963: uint16(36578), + 2964: uint16(36580), + 2965: uint16(36589), + 2966: uint16(36594), + 2967: uint16(36791), + 2968: uint16(36801), + 2969: uint16(36810), + 2970: uint16(36812), + 2971: uint16(36915), + 2972: uint16(39364), + 2973: uint16(18605), + 2974: uint16(39136), + 2975: uint16(37395), + 2976: uint16(18718), + 2977: uint16(37416), + 2978: uint16(37464), + 2979: uint16(37483), + 2980: uint16(37553), + 2981: uint16(37550), + 2982: uint16(37567), + 2983: uint16(37603), + 2984: uint16(37611), + 2985: uint16(37619), + 2986: uint16(37620), + 2987: uint16(37629), + 2988: uint16(37699), + 2989: uint16(37764), + 2990: uint16(37805), + 2991: uint16(18757), + 2992: uint16(18769), + 2993: uint16(40639), + 2994: uint16(37911), + 2995: uint16(21249), + 2996: uint16(37917), + 2997: uint16(37933), + 2998: uint16(37950), + 2999: uint16(18794), + 3000: uint16(37972), + 3001: uint16(38009), + 3002: uint16(38189), + 3003: uint16(38306), + 3004: uint16(18855), + 3005: uint16(38388), + 3006: uint16(38451), + 3007: uint16(18917), + 3008: uint16(26528), + 3009: uint16(18980), + 3010: uint16(38720), + 3011: uint16(18997), + 3012: uint16(38834), + 3013: uint16(38850), + 3014: uint16(22100), + 3015: uint16(19172), + 3016: uint16(24808), + 3017: uint16(39097), + 3018: uint16(19225), + 3019: uint16(39153), + 3020: uint16(22596), + 3021: uint16(39182), + 3022: uint16(39193), + 3023: uint16(20916), + 3024: uint16(39196), + 3025: uint16(39223), + 3026: uint16(39234), + 3027: uint16(39261), + 3028: uint16(39266), + 3029: uint16(19312), + 3030: uint16(39365), + 3031: uint16(19357), + 3032: uint16(39484), + 3033: uint16(39695), + 3034: uint16(31363), + 3035: uint16(39785), + 3036: uint16(39809), + 3037: uint16(39901), + 3038: uint16(39921), + 3039: uint16(39924), + 3040: uint16(19565), + 3041: uint16(39968), + 3042: uint16(14191), + 3043: uint16(7106), + 3044: uint16(40265), + 3045: uint16(39994), + 3046: uint16(40702), + 3047: uint16(22096), + 3048: uint16(40339), + 3049: uint16(40381), + 3050: uint16(40384), + 3051: uint16(40444), + 3052: uint16(38134), + 3053: uint16(36790), + 3054: uint16(40571), + 3055: uint16(40620), + 3056: uint16(40625), + 3057: uint16(40637), + 3058: uint16(40646), + 3059: uint16(38108), + 3060: uint16(40674), + 3061: uint16(40689), + 3062: uint16(40696), + 3063: uint16(31432), + 3064: uint16(40772), + 3065: uint16(148), + 3066: uint16(695), + 3067: uint16(928), + 3068: uint16(26906), + 3069: uint16(38083), + 3070: uint16(22956), + 3071: uint16(1239), + 3072: uint16(22592), + 3073: uint16(38081), + 3074: uint16(14265), + 3075: uint16(1493), + 3076: uint16(1557), + 3077: uint16(1654), + 3078: uint16(5818), + 3079: uint16(22359), + 3080: uint16(29043), + 3081: uint16(2754), + 3082: uint16(2765), + 3083: uint16(3007), + 3084: uint16(21610), + 3085: uint16(63547), + 3086: uint16(3019), + 3087: uint16(21662), + 3088: uint16(3067), + 3089: uint16(3131), + 3090: uint16(3155), + 3091: uint16(3173), + 3092: uint16(3196), + 3093: uint16(24807), + 3094: uint16(3213), + 3095: uint16(22138), + 3096: uint16(3253), + 3097: uint16(3293), + 3098: uint16(3309), + 3099: uint16(3439), + 3100: uint16(3506), + 3101: uint16(3528), + 3102: uint16(26965), + 3103: uint16(39983), + 3104: uint16(34725), + 3105: uint16(3588), + 3106: uint16(3598), + 3107: uint16(3799), + 3108: uint16(3984), + 3109: uint16(3885), + 3110: uint16(3699), + 3111: uint16(23584), + 3112: uint16(4028), + 3113: uint16(24075), + 3114: uint16(4188), + 3115: uint16(4175), + 3116: uint16(4214), + 3117: uint16(26398), + 3118: uint16(4219), + 3119: uint16(4232), + 3120: uint16(4246), + 3121: uint16(13895), + 3122: uint16(4287), + 3123: uint16(4307), + 3124: uint16(4399), + 3125: uint16(4411), + 3126: uint16(21348), + 3127: uint16(33965), + 3128: uint16(4835), + 3129: uint16(4981), + 3130: uint16(4918), + 3131: uint16(35713), + 3132: uint16(5495), + 3133: uint16(5657), + 3134: uint16(6083), + 3135: uint16(6087), + 3136: uint16(20088), + 3137: uint16(28859), + 3138: uint16(6189), + 3139: uint16(6506), + 3140: uint16(6701), + 3141: uint16(6725), + 3142: uint16(7210), + 3143: uint16(7280), + 3144: uint16(7340), + 3145: uint16(7880), + 3146: uint16(25283), + 3147: uint16(7893), + 3148: uint16(7957), + 3149: uint16(29080), + 3150: uint16(26709), + 3151: uint16(8261), + 3152: uint16(27113), + 3153: uint16(14024), + 3154: uint16(8828), + 3155: uint16(9175), + 3156: uint16(9210), + 3157: uint16(10026), + 3158: uint16(10353), + 3159: uint16(10575), + 3160: uint16(33533), + 3161: uint16(10599), + 3162: uint16(10643), + 3163: uint16(10965), + 3164: uint16(35237), + 3165: uint16(10984), + 3166: uint16(36768), + 3167: uint16(11022), + 3168: uint16(38840), + 3169: uint16(11071), + 3170: uint16(38983), + 3171: uint16(39613), + 3172: uint16(11340), + 3174: uint16(11400), + 3175: uint16(11447), + 3176: uint16(23528), + 3177: uint16(11528), + 3178: uint16(11538), + 3179: uint16(11703), + 3180: uint16(11669), + 3181: uint16(11842), + 3182: uint16(12148), + 3183: uint16(12236), + 3184: uint16(12339), + 3185: uint16(12390), + 3186: uint16(13087), + 3187: uint16(13278), + 3188: uint16(24497), + 3189: uint16(26184), + 3190: uint16(26303), + 3191: uint16(31353), + 3192: uint16(13671), + 3193: uint16(13811), + 3195: uint16(18874), + 3197: uint16(13850), + 3198: uint16(14102), + 3200: uint16(838), + 3201: uint16(22709), + 3202: uint16(26382), + 3203: uint16(26904), + 3204: uint16(15015), + 3205: uint16(30295), + 3206: uint16(24546), + 3207: uint16(15889), + 3208: uint16(16057), + 3209: uint16(30206), + 3210: uint16(8346), + 3211: uint16(18640), + 3212: uint16(19128), + 3213: uint16(16665), + 3214: uint16(35482), + 3215: uint16(17134), + 3216: uint16(17165), + 3217: uint16(16443), + 3218: uint16(17204), + 3219: uint16(17302), + 3220: uint16(19013), + 3221: uint16(1482), + 3222: uint16(20946), + 3223: uint16(1553), + 3224: uint16(22943), + 3225: uint16(7848), + 3226: uint16(15294), + 3227: uint16(15615), + 3228: uint16(17412), + 3229: uint16(17622), + 3230: uint16(22408), + 3231: uint16(18036), + 3232: uint16(14747), + 3233: uint16(18223), + 3234: uint16(34280), + 3235: uint16(39369), + 3236: uint16(14178), + 3237: uint16(8643), + 3238: uint16(35678), + 3239: uint16(35662), + 3241: uint16(18450), + 3242: uint16(18683), + 3243: uint16(18965), + 3244: uint16(29193), + 3245: uint16(19136), + 3246: uint16(3192), + 3247: uint16(22885), + 3248: uint16(20133), + 3249: uint16(20358), + 3250: uint16(1913), + 3251: uint16(36570), + 3252: uint16(20524), + 3253: uint16(21135), + 3254: uint16(22335), + 3255: uint16(29041), + 3256: uint16(21145), + 3257: uint16(21529), + 3258: uint16(16202), + 3259: uint16(19111), + 3260: uint16(21948), + 3261: uint16(21574), + 3262: uint16(21614), + 3263: uint16(27474), + 3265: uint16(13427), + 3266: uint16(21823), + 3267: uint16(30258), + 3268: uint16(21854), + 3269: uint16(18200), + 3270: uint16(21858), + 3271: uint16(21862), + 3272: uint16(22471), + 3273: uint16(18751), + 3274: uint16(22621), + 3275: uint16(20582), + 3276: uint16(13563), + 3277: uint16(13260), + 3279: uint16(22787), + 3280: uint16(18300), + 3281: uint16(35144), + 3282: uint16(23214), + 3283: uint16(23433), + 3284: uint16(23558), + 3285: uint16(7568), + 3286: uint16(22433), + 3287: uint16(29009), + 3289: uint16(24834), + 3290: uint16(31762), + 3291: uint16(36950), + 3292: uint16(25010), + 3293: uint16(20378), + 3294: uint16(35682), + 3295: uint16(25602), + 3296: uint16(25674), + 3297: uint16(23899), + 3298: uint16(27639), + 3300: uint16(25732), + 3301: uint16(6428), + 3302: uint16(35562), + 3303: uint16(18934), + 3304: uint16(25736), + 3305: uint16(16367), + 3306: uint16(25874), + 3307: uint16(19392), + 3308: uint16(26047), + 3309: uint16(26293), + 3310: uint16(10011), + 3311: uint16(37989), + 3312: uint16(22497), + 3313: uint16(24981), + 3314: uint16(23079), + 3315: uint16(63693), + 3317: uint16(22201), + 3318: uint16(17697), + 3319: uint16(26364), + 3320: uint16(20074), + 3321: uint16(18740), + 3322: uint16(38486), + 3323: uint16(28047), + 3324: uint16(27837), + 3325: uint16(13848), + 3326: uint16(35191), + 3327: uint16(26521), + 3328: uint16(26734), + 3329: uint16(25617), + 3330: uint16(26718), + 3332: uint16(26823), + 3333: uint16(31554), + 3334: uint16(37056), + 3335: uint16(2577), + 3336: uint16(26918), + 3338: uint16(26937), + 3339: uint16(31301), + 3341: uint16(27130), + 3342: uint16(39462), + 3343: uint16(27181), + 3344: uint16(13919), + 3345: uint16(25705), + 3346: uint16(33), + 3347: uint16(31107), + 3348: uint16(27188), + 3349: uint16(27483), + 3350: uint16(23852), + 3351: uint16(13593), + 3353: uint16(27549), + 3354: uint16(18128), + 3355: uint16(27812), + 3356: uint16(30011), + 3357: uint16(34917), + 3358: uint16(28078), + 3359: uint16(22710), + 3360: uint16(14108), + 3361: uint16(9613), + 3362: uint16(28747), + 3363: uint16(29133), + 3364: uint16(15444), + 3365: uint16(29312), + 3366: uint16(29317), + 3367: uint16(37505), + 3368: uint16(8570), + 3369: uint16(29323), + 3370: uint16(37680), + 3371: uint16(29414), + 3372: uint16(18896), + 3373: uint16(27705), + 3374: uint16(38047), + 3375: uint16(29776), + 3376: uint16(3832), + 3377: uint16(34855), + 3378: uint16(35061), + 3379: uint16(10534), + 3380: uint16(33907), + 3381: uint16(6065), + 3382: uint16(28344), + 3383: uint16(18986), + 3384: uint16(6176), + 3385: uint16(14756), + 3386: uint16(14009), + 3389: uint16(17727), + 3390: uint16(26294), + 3391: uint16(40109), + 3392: uint16(39076), + 3393: uint16(35139), + 3394: uint16(30668), + 3395: uint16(30808), + 3396: uint16(22230), + 3397: uint16(16607), + 3398: uint16(5642), + 3399: uint16(14753), + 3400: uint16(14127), + 3401: uint16(33000), + 3402: uint16(5061), + 3403: uint16(29101), + 3404: uint16(33638), + 3405: uint16(31197), + 3406: uint16(37288), + 3408: uint16(19639), + 3409: uint16(28847), + 3410: uint16(35243), + 3411: uint16(31229), + 3412: uint16(31242), + 3413: uint16(31499), + 3414: uint16(32102), + 3415: uint16(16762), + 3416: uint16(31555), + 3417: uint16(31102), + 3418: uint16(32777), + 3419: uint16(28597), + 3420: uint16(41695), + 3421: uint16(27139), + 3422: uint16(33560), + 3423: uint16(21410), + 3424: uint16(28167), + 3425: uint16(37823), + 3426: uint16(26678), + 3427: uint16(38749), + 3428: uint16(33135), + 3429: uint16(32803), + 3430: uint16(27061), + 3431: uint16(5101), + 3432: uint16(12847), + 3433: uint16(32840), + 3434: uint16(23941), + 3435: uint16(35888), + 3436: uint16(32899), + 3437: uint16(22293), + 3438: uint16(38947), + 3439: uint16(35145), + 3440: uint16(23979), + 3441: uint16(18824), + 3442: uint16(26046), + 3443: uint16(27093), + 3444: uint16(21458), + 3445: uint16(19109), + 3446: uint16(16257), + 3447: uint16(15377), + 3448: uint16(26422), + 3449: uint16(32912), + 3450: uint16(33012), + 3451: uint16(33070), + 3452: uint16(8097), + 3453: uint16(33103), + 3454: uint16(33161), + 3455: uint16(33199), + 3456: uint16(33306), + 3457: uint16(33542), + 3458: uint16(33583), + 3459: uint16(33674), + 3460: uint16(13770), + 3461: uint16(33896), + 3462: uint16(34474), + 3463: uint16(18682), + 3464: uint16(25574), + 3465: uint16(35158), + 3466: uint16(30728), + 3467: uint16(37461), + 3468: uint16(35256), + 3469: uint16(17394), + 3470: uint16(35303), + 3471: uint16(17375), + 3472: uint16(35304), + 3473: uint16(35654), + 3474: uint16(35796), + 3475: uint16(23032), + 3476: uint16(35849), + 3478: uint16(36805), + 3479: uint16(37100), + 3481: uint16(37136), + 3482: uint16(37180), + 3483: uint16(15863), + 3484: uint16(37214), + 3485: uint16(19146), + 3486: uint16(36816), + 3487: uint16(29327), + 3488: uint16(22155), + 3489: uint16(38119), + 3490: uint16(38377), + 3491: uint16(38320), + 3492: uint16(38328), + 3493: uint16(38706), + 3494: uint16(39121), + 3495: uint16(39241), + 3496: uint16(39274), + 3497: uint16(39363), + 3498: uint16(39464), + 3499: uint16(39694), + 3500: uint16(40282), + 3501: uint16(40347), + 3502: uint16(32415), + 3503: uint16(40696), + 3504: uint16(40739), + 3505: uint16(19620), + 3506: uint16(38215), + 3507: uint16(41619), + 3508: uint16(29090), + 3509: uint16(41727), + 3510: uint16(19857), + 3511: uint16(36882), + 3512: uint16(42443), + 3513: uint16(19868), + 3514: uint16(3228), + 3515: uint16(36798), + 3516: uint16(21953), + 3517: uint16(36794), + 3518: uint16(9392), + 3519: uint16(36793), + 3520: uint16(19091), + 3521: uint16(17673), + 3522: uint16(32383), + 3523: uint16(28502), + 3524: uint16(27313), + 3525: uint16(20202), + 3526: uint16(13540), + 3527: uint16(35628), + 3528: uint16(30877), + 3529: uint16(14138), + 3530: uint16(36480), + 3531: uint16(6133), + 3532: uint16(32804), + 3533: uint16(35692), + 3534: uint16(35737), + 3535: uint16(31294), + 3536: uint16(26287), + 3537: uint16(15851), + 3538: uint16(30293), + 3539: uint16(15543), + 3540: uint16(22069), + 3541: uint16(22870), + 3542: uint16(20122), + 3543: uint16(24193), + 3544: uint16(25176), + 3545: uint16(22207), + 3546: uint16(3693), + 3547: uint16(36366), + 3548: uint16(23405), + 3549: uint16(16008), + 3550: uint16(19614), + 3551: uint16(25566), + 3553: uint16(6134), + 3554: uint16(6267), + 3555: uint16(25904), + 3556: uint16(22061), + 3557: uint16(23626), + 3558: uint16(21530), + 3559: uint16(21265), + 3560: uint16(15814), + 3561: uint16(40344), + 3562: uint16(19581), + 3563: uint16(22050), + 3564: uint16(22046), + 3565: uint16(32585), + 3566: uint16(24280), + 3567: uint16(22901), + 3568: uint16(15680), + 3569: uint16(34672), + 3570: uint16(19996), + 3571: uint16(4074), + 3572: uint16(3401), + 3573: uint16(14010), + 3574: uint16(33047), + 3575: uint16(40286), + 3576: uint16(36120), + 3577: uint16(30267), + 3578: uint16(40005), + 3579: uint16(30286), + 3580: uint16(30649), + 3581: uint16(37701), + 3582: uint16(21554), + 3583: uint16(33096), + 3584: uint16(33527), + 3585: uint16(22053), + 3586: uint16(33074), + 3587: uint16(33816), + 3588: uint16(32957), + 3589: uint16(21994), + 3590: uint16(31074), + 3591: uint16(22083), + 3592: uint16(21526), + 3593: uint16(3741), + 3594: uint16(13774), + 3595: uint16(22021), + 3596: uint16(22001), + 3597: uint16(26353), + 3598: uint16(33506), + 3599: uint16(13869), + 3600: uint16(30004), + 3601: uint16(22000), + 3602: uint16(21946), + 3603: uint16(21655), + 3604: uint16(21874), + 3605: uint16(3137), + 3606: uint16(3222), + 3607: uint16(24272), + 3608: uint16(20808), + 3609: uint16(3702), + 3610: uint16(11362), + 3611: uint16(3746), + 3612: uint16(40619), + 3613: uint16(32090), + 3614: uint16(21982), + 3615: uint16(4213), + 3616: uint16(25245), + 3617: uint16(38765), + 3618: uint16(21652), + 3619: uint16(36045), + 3620: uint16(29174), + 3621: uint16(37238), + 3622: uint16(25596), + 3623: uint16(25529), + 3624: uint16(25598), + 3625: uint16(21865), + 3626: uint16(11075), + 3627: uint16(40050), + 3628: uint16(11955), + 3629: uint16(20890), + 3630: uint16(13535), + 3631: uint16(3495), + 3632: uint16(20903), + 3633: uint16(21581), + 3634: uint16(21790), + 3635: uint16(21779), + 3636: uint16(30310), + 3637: uint16(36397), + 3638: uint16(26762), + 3639: uint16(30129), + 3640: uint16(32950), + 3641: uint16(34820), + 3642: uint16(34694), + 3643: uint16(35015), + 3644: uint16(33206), + 3645: uint16(33820), + 3646: uint16(4289), + 3647: uint16(17644), + 3648: uint16(29444), + 3649: uint16(18182), + 3650: uint16(23440), + 3651: uint16(33547), + 3652: uint16(26771), + 3653: uint16(22139), + 3654: uint16(9972), + 3655: uint16(32047), + 3656: uint16(16803), + 3657: uint16(32115), + 3658: uint16(28368), + 3659: uint16(29366), + 3660: uint16(37232), + 3661: uint16(4569), + 3662: uint16(37384), + 3663: uint16(15612), + 3664: uint16(42665), + 3665: uint16(3756), + 3666: uint16(3833), + 3667: uint16(29286), + 3668: uint16(7330), + 3669: uint16(18254), + 3670: uint16(20418), + 3671: uint16(32761), + 3672: uint16(4075), + 3673: uint16(16634), + 3674: uint16(40029), + 3675: uint16(25887), + 3676: uint16(11680), + 3677: uint16(18675), + 3678: uint16(18400), + 3679: uint16(40316), + 3680: uint16(4076), + 3681: uint16(3594), + 3683: uint16(30115), + 3684: uint16(4077), + 3686: uint16(24648), + 3687: uint16(4487), + 3688: uint16(29091), + 3689: uint16(32398), + 3690: uint16(40272), + 3691: uint16(19994), + 3692: uint16(19972), + 3693: uint16(13687), + 3694: uint16(23309), + 3695: uint16(27826), + 3696: uint16(21351), + 3697: uint16(13996), + 3698: uint16(14812), + 3699: uint16(21373), + 3700: uint16(13989), + 3701: uint16(17944), + 3702: uint16(22682), + 3703: uint16(19310), + 3704: uint16(33325), + 3705: uint16(21579), + 3706: uint16(22442), + 3707: uint16(23189), + 3708: uint16(2425), + 3710: uint16(14930), + 3711: uint16(9317), + 3712: uint16(29556), + 3713: uint16(40620), + 3714: uint16(19721), + 3715: uint16(39917), + 3716: uint16(15614), + 3717: uint16(40752), + 3718: uint16(19547), + 3719: uint16(20393), + 3720: uint16(38302), + 3721: uint16(40926), + 3722: uint16(33884), + 3723: uint16(15798), + 3724: uint16(29362), + 3725: uint16(26547), + 3726: uint16(14112), + 3727: uint16(25390), + 3728: uint16(32037), + 3729: uint16(16119), + 3730: uint16(15916), + 3731: uint16(14890), + 3732: uint16(36872), + 3733: uint16(21196), + 3734: uint16(15988), + 3735: uint16(13946), + 3736: uint16(17897), + 3737: uint16(1166), + 3738: uint16(30272), + 3739: uint16(23280), + 3740: uint16(3766), + 3741: uint16(30842), + 3742: uint16(32558), + 3743: uint16(22695), + 3744: uint16(16575), + 3745: uint16(22140), + 3746: uint16(39819), + 3747: uint16(23924), + 3748: uint16(30292), + 3749: uint16(42036), + 3750: uint16(40581), + 3751: uint16(19681), + 3753: uint16(14331), + 3754: uint16(24857), + 3755: uint16(12506), + 3756: uint16(17394), + 3758: uint16(22109), + 3759: uint16(4777), + 3760: uint16(22439), + 3761: uint16(18787), + 3762: uint16(40454), + 3763: uint16(21044), + 3764: uint16(28846), + 3765: uint16(13741), + 3767: uint16(40316), + 3768: uint16(31830), + 3769: uint16(39737), + 3770: uint16(22494), + 3771: uint16(5996), + 3772: uint16(23635), + 3773: uint16(25811), + 3774: uint16(38096), + 3775: uint16(25397), + 3776: uint16(29028), + 3777: uint16(34477), + 3778: uint16(3368), + 3779: uint16(27938), + 3780: uint16(19170), + 3781: uint16(3441), + 3783: uint16(20990), + 3784: uint16(7951), + 3785: uint16(23950), + 3786: uint16(38659), + 3787: uint16(7633), + 3788: uint16(40577), + 3789: uint16(36940), + 3790: uint16(31519), + 3791: uint16(39682), + 3792: uint16(23761), + 3793: uint16(31651), + 3794: uint16(25192), + 3795: uint16(25397), + 3796: uint16(39679), + 3797: uint16(31695), + 3798: uint16(39722), + 3799: uint16(31870), + 3801: uint16(31810), + 3802: uint16(31878), + 3803: uint16(39957), + 3804: uint16(31740), + 3805: uint16(39689), + 3807: uint16(39963), + 3808: uint16(18750), + 3809: uint16(40794), + 3810: uint16(21875), + 3811: uint16(23491), + 3812: uint16(20477), + 3813: uint16(40600), + 3814: uint16(20466), + 3815: uint16(21088), + 3816: uint16(15878), + 3817: uint16(21201), + 3818: uint16(22375), + 3819: uint16(20566), + 3820: uint16(22967), + 3821: uint16(24082), + 3822: uint16(38856), + 3823: uint16(40363), + 3824: uint16(36700), + 3825: uint16(21609), + 3826: uint16(38836), + 3827: uint16(39232), + 3828: uint16(38842), + 3829: uint16(21292), + 3830: uint16(24880), + 3831: uint16(26924), + 3832: uint16(21466), + 3833: uint16(39946), + 3834: uint16(40194), + 3835: uint16(19515), + 3836: uint16(38465), + 3837: uint16(27008), + 3838: uint16(20646), + 3839: uint16(30022), + 3840: uint16(5997), + 3841: uint16(39386), + 3842: uint16(21107), + 3844: uint16(37209), + 3845: uint16(38529), + 3846: uint16(37212), + 3848: uint16(37201), + 3849: uint16(36503), + 3850: uint16(25471), + 3851: uint16(27939), + 3852: uint16(27338), + 3853: uint16(22033), + 3854: uint16(37262), + 3855: uint16(30074), + 3856: uint16(25221), + 3857: uint16(1020), + 3858: uint16(29519), + 3859: uint16(31856), + 3860: uint16(23585), + 3861: uint16(15613), + 3863: uint16(18713), + 3864: uint16(30422), + 3865: uint16(39837), + 3866: uint16(20010), + 3867: uint16(3284), + 3868: uint16(33726), + 3869: uint16(34882), + 3871: uint16(23626), + 3872: uint16(27072), + 3874: uint16(22394), + 3875: uint16(21023), + 3876: uint16(24053), + 3877: uint16(20174), + 3878: uint16(27697), + 3879: uint16(498), + 3880: uint16(20281), + 3881: uint16(21660), + 3882: uint16(21722), + 3883: uint16(21146), + 3884: uint16(36226), + 3885: uint16(13822), + 3887: uint16(13811), + 3889: uint16(27474), + 3890: uint16(37244), + 3891: uint16(40869), + 3892: uint16(39831), + 3893: uint16(38958), + 3894: uint16(39092), + 3895: uint16(39610), + 3896: uint16(40616), + 3897: uint16(40580), + 3898: uint16(29050), + 3899: uint16(31508), + 3901: uint16(27642), + 3902: uint16(34840), + 3903: uint16(32632), + 3905: uint16(22048), + 3906: uint16(42570), + 3907: uint16(36471), + 3908: uint16(40787), + 3910: uint16(36308), + 3911: uint16(36431), + 3912: uint16(40476), + 3913: uint16(36353), + 3914: uint16(25218), + 3915: uint16(33661), + 3916: uint16(36392), + 3917: uint16(36469), + 3918: uint16(31443), + 3919: uint16(19063), + 3920: uint16(31294), + 3921: uint16(30936), + 3922: uint16(27882), + 3923: uint16(35431), + 3924: uint16(30215), + 3925: uint16(35418), + 3926: uint16(40742), + 3927: uint16(27854), + 3928: uint16(34774), + 3929: uint16(30147), + 3930: uint16(41650), + 3931: uint16(30803), + 3932: uint16(63552), + 3933: uint16(36108), + 3934: uint16(29410), + 3935: uint16(29553), + 3936: uint16(35629), + 3937: uint16(29442), + 3938: uint16(29937), + 3939: uint16(36075), + 3940: uint16(19131), + 3941: uint16(34351), + 3942: uint16(24506), + 3943: uint16(34976), + 3944: uint16(17591), + 3946: uint16(6203), + 3947: uint16(28165), + 3949: uint16(35454), + 3950: uint16(9499), + 3952: uint16(24829), + 3953: uint16(30311), + 3954: uint16(39639), + 3955: uint16(40260), + 3956: uint16(37742), + 3957: uint16(39823), + 3958: uint16(34805), + 3961: uint16(36087), + 3962: uint16(29484), + 3963: uint16(38689), + 3964: uint16(39856), + 3965: uint16(13782), + 3966: uint16(29362), + 3967: uint16(19463), + 3968: uint16(31825), + 3969: uint16(39242), + 3970: uint16(24921), + 3971: uint16(24921), + 3972: uint16(19460), + 3973: uint16(40598), + 3974: uint16(24957), + 3976: uint16(22367), + 3977: uint16(24943), + 3978: uint16(25254), + 3979: uint16(25145), + 3981: uint16(14940), + 3982: uint16(25058), + 3983: uint16(21418), + 3984: uint16(13301), + 3985: uint16(25444), + 3986: uint16(26626), + 3987: uint16(13778), + 3988: uint16(23895), + 3989: uint16(35778), + 3990: uint16(36826), + 3991: uint16(36409), + 3993: uint16(20697), + 3994: uint16(7494), + 3995: uint16(30982), + 3996: uint16(21298), + 3997: uint16(38456), + 3998: uint16(3899), + 3999: uint16(16485), + 4001: uint16(30718), + 4003: uint16(31938), + 4004: uint16(24346), + 4005: uint16(31962), + 4006: uint16(31277), + 4007: uint16(32870), + 4008: uint16(32867), + 4009: uint16(32077), + 4010: uint16(29957), + 4011: uint16(29938), + 4012: uint16(35220), + 4013: uint16(33306), + 4014: uint16(26380), + 4015: uint16(32866), + 4016: uint16(29830), + 4017: uint16(32859), + 4018: uint16(29936), + 4019: uint16(33027), + 4020: uint16(30500), + 4021: uint16(35209), + 4022: uint16(26572), + 4023: uint16(30035), + 4024: uint16(28369), + 4025: uint16(34729), + 4026: uint16(34766), + 4027: uint16(33224), + 4028: uint16(34700), + 4029: uint16(35401), + 4030: uint16(36013), + 4031: uint16(35651), + 4032: uint16(30507), + 4033: uint16(29944), + 4034: uint16(34010), + 4035: uint16(13877), + 4036: uint16(27058), + 4037: uint16(36262), + 4039: uint16(35241), + 4041: uint16(28089), + 4042: uint16(34753), + 4043: uint16(16401), + 4044: uint16(29927), + 4045: uint16(15835), + 4046: uint16(29046), + 4047: uint16(24740), + 4048: uint16(24988), + 4049: uint16(15569), + 4051: uint16(24695), + 4053: uint16(32625), + 4054: uint16(35629), + 4056: uint16(24809), + 4057: uint16(19326), + 4058: uint16(21024), + 4059: uint16(15384), + 4060: uint16(15559), + 4061: uint16(24279), + 4062: uint16(30294), + 4063: uint16(21809), + 4064: uint16(6468), + 4065: uint16(4862), + 4066: uint16(39171), + 4067: uint16(28124), + 4068: uint16(28845), + 4069: uint16(23745), + 4070: uint16(25005), + 4071: uint16(35343), + 4072: uint16(13943), + 4073: uint16(238), + 4074: uint16(26694), + 4075: uint16(20238), + 4076: uint16(17762), + 4077: uint16(23327), + 4078: uint16(25420), + 4079: uint16(40784), + 4080: uint16(40614), + 4081: uint16(25195), + 4082: uint16(1351), + 4083: uint16(37595), + 4084: uint16(1503), + 4085: uint16(16325), + 4086: uint16(34124), + 4087: uint16(17077), + 4088: uint16(29679), + 4089: uint16(20917), + 4090: uint16(13897), + 4091: uint16(18754), + 4092: uint16(35300), + 4093: uint16(37700), + 4094: uint16(6619), + 4095: uint16(33518), + 4096: uint16(15560), + 4097: uint16(30780), + 4098: uint16(26436), + 4099: uint16(25311), + 4100: uint16(18739), + 4101: uint16(35242), + 4102: uint16(672), + 4103: uint16(27571), + 4104: uint16(4869), + 4105: uint16(20395), + 4106: uint16(9453), + 4107: uint16(20488), + 4108: uint16(27945), + 4109: uint16(31364), + 4110: uint16(13824), + 4111: uint16(19121), + 4112: uint16(9491), + 4114: uint16(894), + 4115: uint16(24484), + 4116: uint16(896), + 4117: uint16(839), + 4118: uint16(28379), + 4119: uint16(1055), + 4121: uint16(20737), + 4122: uint16(13434), + 4123: uint16(20750), + 4124: uint16(39020), + 4125: uint16(14147), + 4126: uint16(33814), + 4127: uint16(18852), + 4128: uint16(1159), + 4129: uint16(20832), + 4130: uint16(13236), + 4131: uint16(20842), + 4132: uint16(3071), + 4133: uint16(8444), + 4134: uint16(741), + 4135: uint16(9520), + 4136: uint16(1422), + 4137: uint16(12851), + 4138: uint16(6531), + 4139: uint16(23426), + 4140: uint16(34685), + 4141: uint16(1459), + 4142: uint16(15513), + 4143: uint16(20914), + 4144: uint16(20920), + 4145: uint16(40244), + 4146: uint16(20937), + 4147: uint16(20943), + 4148: uint16(20945), + 4149: uint16(15580), + 4150: uint16(20947), + 4151: uint16(19110), + 4152: uint16(20915), + 4153: uint16(20962), + 4154: uint16(21314), + 4155: uint16(20973), + 4156: uint16(33741), + 4157: uint16(26942), + 4158: uint16(14125), + 4159: uint16(24443), + 4160: uint16(21003), + 4161: uint16(21030), + 4162: uint16(21052), + 4163: uint16(21173), + 4164: uint16(21079), + 4165: uint16(21140), + 4166: uint16(21177), + 4167: uint16(21189), + 4168: uint16(31765), + 4169: uint16(34114), + 4170: uint16(21216), + 4171: uint16(34317), + 4172: uint16(27411), + 4174: uint16(35550), + 4175: uint16(21833), + 4176: uint16(28377), + 4177: uint16(16256), + 4178: uint16(2388), + 4179: uint16(16364), + 4180: uint16(21299), + 4182: uint16(3042), + 4183: uint16(27851), + 4184: uint16(5926), + 4185: uint16(26651), + 4186: uint16(29653), + 4187: uint16(24650), + 4188: uint16(16042), + 4189: uint16(14540), + 4190: uint16(5864), + 4191: uint16(29149), + 4192: uint16(17570), + 4193: uint16(21357), + 4194: uint16(21364), + 4195: uint16(34475), + 4196: uint16(21374), + 4198: uint16(5526), + 4199: uint16(5651), + 4200: uint16(30694), + 4201: uint16(21395), + 4202: uint16(35483), + 4203: uint16(21408), + 4204: uint16(21419), + 4205: uint16(21422), + 4206: uint16(29607), + 4207: uint16(22386), + 4208: uint16(16217), + 4209: uint16(29596), + 4210: uint16(21441), + 4211: uint16(21445), + 4212: uint16(27721), + 4213: uint16(20041), + 4214: uint16(22526), + 4215: uint16(21465), + 4216: uint16(15019), + 4217: uint16(2959), + 4218: uint16(21472), + 4219: uint16(16363), + 4220: uint16(11683), + 4221: uint16(21494), + 4222: uint16(3191), + 4223: uint16(21523), + 4224: uint16(28793), + 4225: uint16(21803), + 4226: uint16(26199), + 4227: uint16(27995), + 4228: uint16(21613), + 4229: uint16(27475), + 4230: uint16(3444), + 4231: uint16(21853), + 4232: uint16(21647), + 4233: uint16(21668), + 4234: uint16(18342), + 4235: uint16(5901), + 4236: uint16(3805), + 4237: uint16(15796), + 4238: uint16(3405), + 4239: uint16(35260), + 4240: uint16(9880), + 4241: uint16(21831), + 4242: uint16(19693), + 4243: uint16(21551), + 4244: uint16(29719), + 4245: uint16(21894), + 4246: uint16(21929), + 4248: uint16(6359), + 4249: uint16(16442), + 4250: uint16(17746), + 4251: uint16(17461), + 4252: uint16(26291), + 4253: uint16(4276), + 4254: uint16(22071), + 4255: uint16(26317), + 4256: uint16(12938), + 4257: uint16(26276), + 4258: uint16(26285), + 4259: uint16(22093), + 4260: uint16(22095), + 4261: uint16(30961), + 4262: uint16(22257), + 4263: uint16(38791), + 4264: uint16(21502), + 4265: uint16(22272), + 4266: uint16(22255), + 4267: uint16(22253), + 4268: uint16(35686), + 4269: uint16(13859), + 4270: uint16(4687), + 4271: uint16(22342), + 4272: uint16(16805), + 4273: uint16(27758), + 4274: uint16(28811), + 4275: uint16(22338), + 4276: uint16(14001), + 4277: uint16(27774), + 4278: uint16(22502), + 4279: uint16(5142), + 4280: uint16(22531), + 4281: uint16(5204), + 4282: uint16(17251), + 4283: uint16(22566), + 4284: uint16(19445), + 4285: uint16(22620), + 4286: uint16(22698), + 4287: uint16(13665), + 4288: uint16(22752), + 4289: uint16(22748), + 4290: uint16(4668), + 4291: uint16(22779), + 4292: uint16(23551), + 4293: uint16(22339), + 4294: uint16(41296), + 4295: uint16(17016), + 4296: uint16(37843), + 4297: uint16(13729), + 4298: uint16(22815), + 4299: uint16(26790), + 4300: uint16(14019), + 4301: uint16(28249), + 4302: uint16(5694), + 4303: uint16(23076), + 4304: uint16(21843), + 4305: uint16(5778), + 4306: uint16(34053), + 4307: uint16(22985), + 4308: uint16(3406), + 4309: uint16(27777), + 4310: uint16(27946), + 4311: uint16(6108), + 4312: uint16(23001), + 4313: uint16(6139), + 4314: uint16(6066), + 4315: uint16(28070), + 4316: uint16(28017), + 4317: uint16(6184), + 4318: uint16(5845), + 4319: uint16(23033), + 4320: uint16(28229), + 4321: uint16(23211), + 4322: uint16(23139), + 4323: uint16(14054), + 4324: uint16(18857), + 4326: uint16(14088), + 4327: uint16(23190), + 4328: uint16(29797), + 4329: uint16(23251), + 4330: uint16(28577), + 4331: uint16(9556), + 4332: uint16(15749), + 4333: uint16(6417), + 4334: uint16(14130), + 4335: uint16(5816), + 4336: uint16(24195), + 4337: uint16(21200), + 4338: uint16(23414), + 4339: uint16(25992), + 4340: uint16(23420), + 4341: uint16(31246), + 4342: uint16(16388), + 4343: uint16(18525), + 4344: uint16(516), + 4345: uint16(23509), + 4346: uint16(24928), + 4347: uint16(6708), + 4348: uint16(22988), + 4349: uint16(1445), + 4350: uint16(23539), + 4351: uint16(23453), + 4352: uint16(19728), + 4353: uint16(23557), + 4354: uint16(6980), + 4355: uint16(23571), + 4356: uint16(29646), + 4357: uint16(23572), + 4358: uint16(7333), + 4359: uint16(27432), + 4360: uint16(23625), + 4361: uint16(18653), + 4362: uint16(23685), + 4363: uint16(23785), + 4364: uint16(23791), + 4365: uint16(23947), + 4366: uint16(7673), + 4367: uint16(7735), + 4368: uint16(23824), + 4369: uint16(23832), + 4370: uint16(23878), + 4371: uint16(7844), + 4372: uint16(23738), + 4373: uint16(24023), + 4374: uint16(33532), + 4375: uint16(14381), + 4376: uint16(18689), + 4377: uint16(8265), + 4378: uint16(8563), + 4379: uint16(33415), + 4380: uint16(14390), + 4381: uint16(15298), + 4382: uint16(24110), + 4383: uint16(27274), + 4385: uint16(24186), + 4386: uint16(17596), + 4387: uint16(3283), + 4388: uint16(21414), + 4389: uint16(20151), + 4391: uint16(21416), + 4392: uint16(6001), + 4393: uint16(24073), + 4394: uint16(24308), + 4395: uint16(33922), + 4396: uint16(24313), + 4397: uint16(24315), + 4398: uint16(14496), + 4399: uint16(24316), + 4400: uint16(26686), + 4401: uint16(37915), + 4402: uint16(24333), + 4403: uint16(449), + 4404: uint16(63636), + 4405: uint16(15070), + 4406: uint16(18606), + 4407: uint16(4922), + 4408: uint16(24378), + 4409: uint16(26760), + 4410: uint16(9168), + 4412: uint16(9329), + 4413: uint16(24419), + 4414: uint16(38845), + 4415: uint16(28270), + 4416: uint16(24434), + 4417: uint16(37696), + 4418: uint16(35382), + 4419: uint16(24487), + 4420: uint16(23990), + 4421: uint16(15711), + 4422: uint16(21072), + 4423: uint16(8042), + 4424: uint16(28920), + 4425: uint16(9832), + 4426: uint16(37334), + 4427: uint16(670), + 4428: uint16(35369), + 4429: uint16(24625), + 4430: uint16(26245), + 4431: uint16(6263), + 4432: uint16(14691), + 4433: uint16(15815), + 4434: uint16(13881), + 4435: uint16(22416), + 4436: uint16(10164), + 4437: uint16(31089), + 4438: uint16(15936), + 4439: uint16(24734), + 4441: uint16(24755), + 4442: uint16(18818), + 4443: uint16(18831), + 4444: uint16(31315), + 4445: uint16(29860), + 4446: uint16(20705), + 4447: uint16(23200), + 4448: uint16(24932), + 4449: uint16(33828), + 4450: uint16(24898), + 4451: uint16(63654), + 4452: uint16(28370), + 4453: uint16(24961), + 4454: uint16(20980), + 4455: uint16(1622), + 4456: uint16(24967), + 4457: uint16(23466), + 4458: uint16(16311), + 4459: uint16(10335), + 4460: uint16(25043), + 4461: uint16(35741), + 4462: uint16(39261), + 4463: uint16(25040), + 4464: uint16(14642), + 4465: uint16(10624), + 4466: uint16(10433), + 4467: uint16(24611), + 4468: uint16(24924), + 4469: uint16(25886), + 4470: uint16(25483), + 4471: uint16(280), + 4472: uint16(25285), + 4473: uint16(6000), + 4474: uint16(25301), + 4475: uint16(11789), + 4476: uint16(25452), + 4477: uint16(18911), + 4478: uint16(14871), + 4479: uint16(25656), + 4480: uint16(25592), + 4481: uint16(5006), + 4482: uint16(6140), + 4484: uint16(28554), + 4485: uint16(11830), + 4486: uint16(38932), + 4487: uint16(16524), + 4488: uint16(22301), + 4489: uint16(25825), + 4490: uint16(25829), + 4491: uint16(38011), + 4492: uint16(14950), + 4493: uint16(25658), + 4494: uint16(14935), + 4495: uint16(25933), + 4496: uint16(28438), + 4497: uint16(18984), + 4498: uint16(18979), + 4499: uint16(25989), + 4500: uint16(25965), + 4501: uint16(25951), + 4502: uint16(12414), + 4503: uint16(26037), + 4504: uint16(18752), + 4505: uint16(19255), + 4506: uint16(26065), + 4507: uint16(16600), + 4508: uint16(6185), + 4509: uint16(26080), + 4510: uint16(26083), + 4511: uint16(24543), + 4512: uint16(13312), + 4513: uint16(26136), + 4514: uint16(12791), + 4515: uint16(12792), + 4516: uint16(26180), + 4517: uint16(12708), + 4518: uint16(12709), + 4519: uint16(26187), + 4520: uint16(3701), + 4521: uint16(26215), + 4522: uint16(20966), + 4523: uint16(26227), + 4525: uint16(7741), + 4526: uint16(12849), + 4527: uint16(34292), + 4528: uint16(12744), + 4529: uint16(21267), + 4530: uint16(30661), + 4531: uint16(10487), + 4532: uint16(39332), + 4533: uint16(26370), + 4534: uint16(17308), + 4535: uint16(18977), + 4536: uint16(15147), + 4537: uint16(27130), + 4538: uint16(14274), + 4540: uint16(26471), + 4541: uint16(26466), + 4542: uint16(16845), + 4543: uint16(37101), + 4544: uint16(26583), + 4545: uint16(17641), + 4546: uint16(26658), + 4547: uint16(28240), + 4548: uint16(37436), + 4549: uint16(26625), + 4550: uint16(13286), + 4551: uint16(28064), + 4552: uint16(26717), + 4553: uint16(13423), + 4554: uint16(27105), + 4555: uint16(27147), + 4556: uint16(35551), + 4557: uint16(26995), + 4558: uint16(26819), + 4559: uint16(13773), + 4560: uint16(26881), + 4561: uint16(26880), + 4562: uint16(15666), + 4563: uint16(14849), + 4564: uint16(13884), + 4565: uint16(15232), + 4566: uint16(26540), + 4567: uint16(26977), + 4568: uint16(35402), + 4569: uint16(17148), + 4570: uint16(26934), + 4571: uint16(27032), + 4572: uint16(15265), + 4573: uint16(969), + 4574: uint16(33635), + 4575: uint16(20624), + 4576: uint16(27129), + 4577: uint16(13913), + 4578: uint16(8490), + 4579: uint16(27205), + 4580: uint16(14083), + 4581: uint16(27293), + 4582: uint16(15347), + 4583: uint16(26545), + 4584: uint16(27336), + 4585: uint16(37276), + 4586: uint16(15373), + 4587: uint16(27421), + 4588: uint16(2339), + 4589: uint16(24798), + 4590: uint16(27445), + 4591: uint16(27508), + 4592: uint16(10189), + 4593: uint16(28341), + 4594: uint16(15067), + 4595: uint16(949), + 4596: uint16(6488), + 4597: uint16(14144), + 4598: uint16(21537), + 4599: uint16(15194), + 4600: uint16(27617), + 4601: uint16(16124), + 4602: uint16(27612), + 4603: uint16(27703), + 4604: uint16(9355), + 4605: uint16(18673), + 4606: uint16(27473), + 4607: uint16(27738), + 4608: uint16(33318), + 4609: uint16(27769), + 4610: uint16(15804), + 4611: uint16(17605), + 4612: uint16(15805), + 4613: uint16(16804), + 4614: uint16(18700), + 4615: uint16(18688), + 4616: uint16(15561), + 4617: uint16(14053), + 4618: uint16(15595), + 4619: uint16(3378), + 4620: uint16(39811), + 4621: uint16(12793), + 4622: uint16(9361), + 4623: uint16(32655), + 4624: uint16(26679), + 4625: uint16(27941), + 4626: uint16(28065), + 4627: uint16(28139), + 4628: uint16(28054), + 4629: uint16(27996), + 4630: uint16(28284), + 4631: uint16(28420), + 4632: uint16(18815), + 4633: uint16(16517), + 4634: uint16(28274), + 4635: uint16(34099), + 4636: uint16(28532), + 4637: uint16(20935), + 4640: uint16(33838), + 4641: uint16(35617), + 4643: uint16(15919), + 4644: uint16(29779), + 4645: uint16(16258), + 4646: uint16(31180), + 4647: uint16(28239), + 4648: uint16(23185), + 4649: uint16(12363), + 4650: uint16(28664), + 4651: uint16(14093), + 4652: uint16(28573), + 4653: uint16(15920), + 4654: uint16(28410), + 4655: uint16(5271), + 4656: uint16(16445), + 4657: uint16(17749), + 4658: uint16(37872), + 4659: uint16(28484), + 4660: uint16(28508), + 4661: uint16(15694), + 4662: uint16(28532), + 4663: uint16(37232), + 4664: uint16(15675), + 4665: uint16(28575), + 4666: uint16(16708), + 4667: uint16(28627), + 4668: uint16(16529), + 4669: uint16(16725), + 4670: uint16(16441), + 4671: uint16(16368), + 4672: uint16(16308), + 4673: uint16(16703), + 4674: uint16(20959), + 4675: uint16(16726), + 4676: uint16(16727), + 4677: uint16(16704), + 4678: uint16(25053), + 4679: uint16(28747), + 4680: uint16(28798), + 4681: uint16(28839), + 4682: uint16(28801), + 4683: uint16(28876), + 4684: uint16(28885), + 4685: uint16(28886), + 4686: uint16(28895), + 4687: uint16(16644), + 4688: uint16(15848), + 4689: uint16(29108), + 4690: uint16(29078), + 4691: uint16(17015), + 4692: uint16(28971), + 4693: uint16(28997), + 4694: uint16(23176), + 4695: uint16(29002), + 4697: uint16(23708), + 4698: uint16(17253), + 4699: uint16(29007), + 4700: uint16(37730), + 4701: uint16(17089), + 4702: uint16(28972), + 4703: uint16(17498), + 4704: uint16(18983), + 4705: uint16(18978), + 4706: uint16(29114), + 4707: uint16(35816), + 4708: uint16(28861), + 4709: uint16(29198), + 4710: uint16(37954), + 4711: uint16(29205), + 4712: uint16(22801), + 4713: uint16(37955), + 4714: uint16(29220), + 4715: uint16(37697), + 4716: uint16(22021), + 4717: uint16(29230), + 4718: uint16(29248), + 4719: uint16(18804), + 4720: uint16(26813), + 4721: uint16(29269), + 4722: uint16(29271), + 4723: uint16(15957), + 4724: uint16(12356), + 4725: uint16(26637), + 4726: uint16(28477), + 4727: uint16(29314), + 4729: uint16(29483), + 4730: uint16(18467), + 4731: uint16(34859), + 4732: uint16(18669), + 4733: uint16(34820), + 4734: uint16(29480), + 4735: uint16(29486), + 4736: uint16(29647), + 4737: uint16(29610), + 4738: uint16(3130), + 4739: uint16(27182), + 4740: uint16(29641), + 4741: uint16(29769), + 4742: uint16(16866), + 4743: uint16(5863), + 4744: uint16(18980), + 4745: uint16(26147), + 4746: uint16(14021), + 4747: uint16(18871), + 4748: uint16(18829), + 4749: uint16(18939), + 4750: uint16(29687), + 4751: uint16(29717), + 4752: uint16(26883), + 4753: uint16(18982), + 4754: uint16(29753), + 4755: uint16(1475), + 4756: uint16(16087), + 4758: uint16(10413), + 4759: uint16(29792), + 4760: uint16(36530), + 4761: uint16(29767), + 4762: uint16(29668), + 4763: uint16(29814), + 4764: uint16(33721), + 4765: uint16(29804), + 4766: uint16(14128), + 4767: uint16(29812), + 4768: uint16(37873), + 4769: uint16(27180), + 4770: uint16(29826), + 4771: uint16(18771), + 4772: uint16(19084), + 4773: uint16(16735), + 4774: uint16(19065), + 4775: uint16(35727), + 4776: uint16(23366), + 4777: uint16(35843), + 4778: uint16(6302), + 4779: uint16(29896), + 4780: uint16(6536), + 4781: uint16(29966), + 4783: uint16(29982), + 4784: uint16(36569), + 4785: uint16(6731), + 4786: uint16(23511), + 4787: uint16(36524), + 4788: uint16(37765), + 4789: uint16(30029), + 4790: uint16(30026), + 4791: uint16(30055), + 4792: uint16(30062), + 4793: uint16(20354), + 4794: uint16(16132), + 4795: uint16(19731), + 4796: uint16(30094), + 4797: uint16(29789), + 4798: uint16(30110), + 4799: uint16(30132), + 4800: uint16(30210), + 4801: uint16(30252), + 4802: uint16(30289), + 4803: uint16(30287), + 4804: uint16(30319), + 4805: uint16(30326), + 4806: uint16(25589), + 4807: uint16(30352), + 4808: uint16(33263), + 4809: uint16(14328), + 4810: uint16(26897), + 4811: uint16(26894), + 4812: uint16(30369), + 4813: uint16(30373), + 4814: uint16(30391), + 4815: uint16(30412), + 4816: uint16(28575), + 4817: uint16(33890), + 4818: uint16(20637), + 4819: uint16(20861), + 4820: uint16(7708), + 4821: uint16(30494), + 4822: uint16(30502), + 4823: uint16(30528), + 4824: uint16(25775), + 4825: uint16(21024), + 4826: uint16(30552), + 4827: uint16(12972), + 4828: uint16(30639), + 4829: uint16(35172), + 4830: uint16(35176), + 4831: uint16(5825), + 4832: uint16(30708), + 4834: uint16(4982), + 4835: uint16(18962), + 4836: uint16(26826), + 4837: uint16(30895), + 4838: uint16(30919), + 4839: uint16(30931), + 4840: uint16(38565), + 4841: uint16(31022), + 4842: uint16(21984), + 4843: uint16(30935), + 4844: uint16(31028), + 4845: uint16(30897), + 4846: uint16(30220), + 4847: uint16(36792), + 4848: uint16(34948), + 4849: uint16(35627), + 4850: uint16(24707), + 4851: uint16(9756), + 4852: uint16(31110), + 4853: uint16(35072), + 4854: uint16(26882), + 4855: uint16(31104), + 4856: uint16(22615), + 4857: uint16(31133), + 4858: uint16(31545), + 4859: uint16(31036), + 4860: uint16(31145), + 4861: uint16(28202), + 4862: uint16(28966), + 4863: uint16(16040), + 4864: uint16(31174), + 4865: uint16(37133), + 4866: uint16(31188), + 4867: uint16(1312), + 4868: uint16(17503), + 4869: uint16(21007), + 4870: uint16(47234), + 4871: uint16(248), + 4872: uint16(16384), + 4873: uint16(43296), + 4874: uint16(1102), + 4877: uint16(2868), + 4878: uint16(1), + 4886: uint16(3072), + 4887: uint16(64), + 4891: uint16(1024), + 4892: uint16(88), + 4893: uint16(60), + 4896: uint16(23680), + 4897: uint16(56493), + 4898: uint16(48115), + 4899: uint16(17353), + 4900: uint16(60910), + 4901: uint16(4004), + 4902: uint16(49446), + 4903: uint16(30363), + 4904: uint16(61426), + 4905: uint16(64478), + 4906: uint16(63482), + 4907: uint16(12815), + 4908: uint16(44868), + 4909: uint16(61438), + 4910: uint16(65277), + 4911: uint16(24593), + 4912: uint16(176), + 4913: uint16(8448), + 4914: uint16(33049), + 4915: uint16(4128), + 4916: uint16(43144), + 4917: uint16(8544), + 4918: uint16(9321), + 4919: uint16(17408), + 4920: uint16(50313), + 4922: uint16(16387), + 4923: uint16(53), + 4924: uint16(33859), + 4925: uint16(20785), + 4926: uint16(26771), + 4927: uint16(514), + 4933: uint16(16384), + 4934: uint16(256), + 4935: uint16(44160), + 4936: uint16(33380), + 4937: uint16(35904), + 4938: uint16(37025), + 4939: uint16(20484), + 4940: uint16(54368), + 4941: uint16(53760), + 4942: uint16(6186), + 4943: uint16(26781), + 4944: uint16(38709), + 4945: uint16(55375), + 4946: uint16(8440), + 4947: uint16(33476), + 4948: uint16(10268), + 4949: uint16(30082), + 4950: uint16(660), + 4951: uint16(16440), + 4952: uint16(41376), + 4953: uint16(4293), + 4954: uint16(19825), + 4955: uint16(3524), + 4956: uint16(47512), + 4957: uint16(23390), + 4958: uint16(17153), + 4959: uint16(39327), + 4960: uint16(30723), + 4961: uint16(57888), + 4962: uint16(2079), + 4963: uint16(393), + 4964: uint16(16585), + 4965: uint16(775), + 4966: uint16(39437), + 4967: uint16(21136), + 4968: uint16(20433), + 4969: uint16(892), + 4970: uint16(8450), + 4971: uint16(49184), + 4972: uint16(4974), + 4973: uint16(46467), + 4974: uint16(62939), + 4975: uint16(30693), + 4976: uint16(20368), + 4977: uint16(39447), + 4978: uint16(5942), + 4979: uint16(12), + 4980: uint16(47726), + 4981: uint16(12041), + 4982: uint16(21600), + 4983: uint16(7680), + 4984: uint16(26744), + 4985: uint16(28706), + 4986: uint16(40534), + 4987: uint16(62245), + 4988: uint16(46990), + 4989: uint16(2839), + 4990: uint16(59119), + 4991: uint16(6007), + 4992: uint16(7003), + 4993: uint16(4289), + 4994: uint16(36248), + 4995: uint16(6162), + 4996: uint16(53174), + 4997: uint16(12545), + 4998: uint16(6770), + 4999: uint16(11355), + 5000: uint16(49334), + 5001: uint16(57888), + 5002: uint16(23747), + 5003: uint16(7042), + 5004: uint16(56032), + 5005: uint16(34254), + 5006: uint16(16598), + 5007: uint16(21673), + 5008: uint16(53259), + 5009: uint16(18447), + 5010: uint16(16452), + 5011: uint16(2320), + 5012: uint16(16596), + 5013: uint16(15278), + 5014: uint16(7780), + 5015: uint16(11076), + 5016: uint16(2071), + 5017: uint16(33414), + 5018: uint16(6198), + 5019: uint16(35232), + 5020: uint16(40167), + 5021: uint16(2139), + 5022: uint16(900), + 5023: uint16(55810), + 5024: uint16(60560), + 5025: uint16(34779), + 5026: uint16(49029), + 5027: uint16(44450), + 5028: uint16(36509), + 5029: uint16(39069), + 5030: uint16(9504), + 5031: uint16(70), + 5032: uint16(40774), + 5033: uint16(58239), + 5034: uint16(51669), + 5035: uint16(62596), + 5036: uint16(19926), + 5037: uint16(58118), + 5038: uint16(6326), + 5039: uint16(2322), + 5041: uint16(1024), + 5043: uint16(32), + 5045: uint16(512), + 5050: uint16(8192), + 5057: uint16(8), + 5058: uint16(36352), + 5059: uint16(28280), + 5060: uint16(16223), + 5061: uint16(56702), + 5062: uint16(63293), + 5063: uint16(39932), + 5064: uint16(44796), + 5065: uint16(65490), + 5066: uint16(27535), + 5067: uint16(59377), + 5068: uint16(47807), + 5069: uint16(28334), + 5070: uint16(61207), + 5071: uint16(42972), + 5072: uint16(46654), + 5073: uint16(30645), + 5074: uint16(37577), + 5075: uint16(42455), + 5076: uint16(19126), + 5077: uint16(39790), + 5078: uint16(33209), + 5079: uint16(26445), + 5080: uint16(21758), + 5081: uint16(39921), + 5082: uint16(65122), + 5083: uint16(21103), + 5084: uint16(14039), + 5085: uint16(49150), + 5086: uint16(17705), + 5087: uint16(63873), + 5088: uint16(26045), + 5089: uint16(17062), + 5090: uint16(57), + 5091: uint16(16896), + 5092: uint16(36704), + 5093: uint16(37888), + 5094: uint16(16448), + 5095: uint16(45010), + 5096: uint16(53719), + 5097: uint16(219), + 5098: uint16(39072), + 5099: uint16(31666), + 5100: uint16(20998), + 5101: uint16(38944), + 5102: uint16(51222), + 5103: uint16(2365), + 5105: uint16(1), + 5107: uint16(2561), + 5108: uint16(2226), + 5109: uint16(128), + 5111: uint16(34820), + 5112: uint16(5152), + 5113: uint16(19472), + 5115: uint16(4), + 5116: uint16(17569), + 5117: uint16(16), + 5118: uint16(321), + 5119: uint16(2048), + 5120: uint16(61504), + 5121: uint16(20447), + 5122: uint16(22582), + 5123: uint16(62961), + 5124: uint16(32949), + 5125: uint16(26613), + 5126: uint16(16512), + 5127: uint16(20480), + 5128: uint16(16718), + 5129: uint16(33992), + 5130: uint16(23040), + 5131: uint16(55392), + 5132: uint16(11009), + 5133: uint16(20481), + 5134: uint16(5793), + 5135: uint16(16580), + 5136: uint16(28402), + 5137: uint16(44049), + 5138: uint16(14624), + 5139: uint16(49348), + 5140: uint16(1800), + 5141: uint16(2316), + 5142: uint16(38552), + 5143: uint16(39876), + 5144: uint16(7184), + 5145: uint16(27800), + 5146: uint16(10886), + 5147: uint16(422), + 5148: uint16(4422), + 5149: uint16(58733), + 5150: uint16(50379), + 5151: uint16(37568), + 5152: uint16(8464), + 5153: uint16(4630), + 5154: uint16(29341), + 5155: uint16(27124), + 5156: uint16(5902), + 5157: uint16(41514), + 5158: uint16(62593), + 5159: uint16(123), + 5160: uint16(41992), + 5161: uint16(36875), + 5162: uint16(11280), + 5163: uint16(14796), + 5164: uint16(330), + 5165: uint16(5872), + 5166: uint16(2571), + 5167: uint16(3136), + 5168: uint16(59933), + 5169: uint16(17420), + 5170: uint16(17678), + 5171: uint16(2), +} + +var _ksc = [93][94]uint16{ + 0: { + 0: uint16(12288), + 1: uint16(12289), + 2: uint16(12290), + 3: uint16(183), + 4: uint16(8229), + 5: uint16(8230), + 6: uint16(168), + 7: uint16(12291), + 8: uint16(173), + 9: uint16(8213), + 10: uint16(8741), + 11: uint16(65340), + 12: uint16(8764), + 13: uint16(8216), + 14: uint16(8217), + 15: uint16(8220), + 16: uint16(8221), + 17: uint16(12308), + 18: uint16(12309), + 19: uint16(12296), + 20: uint16(12297), + 21: uint16(12298), + 22: uint16(12299), + 23: uint16(12300), + 24: uint16(12301), + 25: uint16(12302), + 26: uint16(12303), + 27: uint16(12304), + 28: uint16(12305), + 29: uint16(177), + 30: uint16(215), + 31: uint16(247), + 32: uint16(8800), + 33: uint16(8804), + 34: uint16(8805), + 35: uint16(8734), + 36: uint16(8756), + 37: uint16(176), + 38: uint16(8242), + 39: uint16(8243), + 40: uint16(8451), + 41: uint16(8491), + 42: uint16(65504), + 43: uint16(65505), + 44: uint16(65509), + 45: uint16(9794), + 46: uint16(9792), + 47: uint16(8736), + 48: uint16(8869), + 49: uint16(8978), + 50: uint16(8706), + 51: uint16(8711), + 52: uint16(8801), + 53: uint16(8786), + 54: uint16(167), + 55: uint16(8251), + 56: uint16(9734), + 57: uint16(9733), + 58: uint16(9675), + 59: uint16(9679), + 60: uint16(9678), + 61: uint16(9671), + 62: uint16(9670), + 63: uint16(9633), + 64: uint16(9632), + 65: uint16(9651), + 66: uint16(9650), + 67: uint16(9661), + 68: uint16(9660), + 69: uint16(8594), + 70: uint16(8592), + 71: uint16(8593), + 72: uint16(8595), + 73: uint16(8596), + 74: uint16(12307), + 75: uint16(8810), + 76: uint16(8811), + 77: uint16(8730), + 78: uint16(8765), + 79: uint16(8733), + 80: uint16(8757), + 81: uint16(8747), + 82: uint16(8748), + 83: uint16(8712), + 84: uint16(8715), + 85: uint16(8838), + 86: uint16(8839), + 87: uint16(8834), + 88: uint16(8835), + 89: uint16(8746), + 90: uint16(8745), + 91: uint16(8743), + 92: uint16(8744), + 93: uint16(65506), + }, + 1: { + 0: uint16(8658), + 1: uint16(8660), + 2: uint16(8704), + 3: uint16(8707), + 4: uint16(180), + 5: uint16(65374), + 6: uint16(711), + 7: uint16(728), + 8: uint16(733), + 9: uint16(730), + 10: uint16(729), + 11: uint16(184), + 12: uint16(731), + 13: uint16(161), + 14: uint16(191), + 15: uint16(720), + 16: uint16(8750), + 17: uint16(8721), + 18: uint16(8719), + 19: uint16(164), + 20: uint16(8457), + 21: uint16(8240), + 22: uint16(9665), + 23: uint16(9664), + 24: uint16(9655), + 25: uint16(9654), + 26: uint16(9828), + 27: uint16(9824), + 28: uint16(9825), + 29: uint16(9829), + 30: uint16(9831), + 31: uint16(9827), + 32: uint16(8857), + 33: uint16(9672), + 34: uint16(9635), + 35: uint16(9680), + 36: uint16(9681), + 37: uint16(9618), + 38: uint16(9636), + 39: uint16(9637), + 40: uint16(9640), + 41: uint16(9639), + 42: uint16(9638), + 43: uint16(9641), + 44: uint16(9832), + 45: uint16(9743), + 46: uint16(9742), + 47: uint16(9756), + 48: uint16(9758), + 49: uint16(182), + 50: uint16(8224), + 51: uint16(8225), + 52: uint16(8597), + 53: uint16(8599), + 54: uint16(8601), + 55: uint16(8598), + 56: uint16(8600), + 57: uint16(9837), + 58: uint16(9833), + 59: uint16(9834), + 60: uint16(9836), + 61: uint16(12927), + 62: uint16(12828), + 63: uint16(8470), + 64: uint16(13255), + 65: uint16(8482), + 66: uint16(13250), + 67: uint16(13272), + 68: uint16(8481), + 69: uint16(8364), + 70: uint16(174), + }, + 2: { + 0: uint16(65281), + 1: uint16(65282), + 2: uint16(65283), + 3: uint16(65284), + 4: uint16(65285), + 5: uint16(65286), + 6: uint16(65287), + 7: uint16(65288), + 8: uint16(65289), + 9: uint16(65290), + 10: uint16(65291), + 11: uint16(65292), + 12: uint16(65293), + 13: uint16(65294), + 14: uint16(65295), + 15: uint16(65296), + 16: uint16(65297), + 17: uint16(65298), + 18: uint16(65299), + 19: uint16(65300), + 20: uint16(65301), + 21: uint16(65302), + 22: uint16(65303), + 23: uint16(65304), + 24: uint16(65305), + 25: uint16(65306), + 26: uint16(65307), + 27: uint16(65308), + 28: uint16(65309), + 29: uint16(65310), + 30: uint16(65311), + 31: uint16(65312), + 32: uint16(65313), + 33: uint16(65314), + 34: uint16(65315), + 35: uint16(65316), + 36: uint16(65317), + 37: uint16(65318), + 38: uint16(65319), + 39: uint16(65320), + 40: uint16(65321), + 41: uint16(65322), + 42: uint16(65323), + 43: uint16(65324), + 44: uint16(65325), + 45: uint16(65326), + 46: uint16(65327), + 47: uint16(65328), + 48: uint16(65329), + 49: uint16(65330), + 50: uint16(65331), + 51: uint16(65332), + 52: uint16(65333), + 53: uint16(65334), + 54: uint16(65335), + 55: uint16(65336), + 56: uint16(65337), + 57: uint16(65338), + 58: uint16(65339), + 59: uint16(65510), + 60: uint16(65341), + 61: uint16(65342), + 62: uint16(65343), + 63: uint16(65344), + 64: uint16(65345), + 65: uint16(65346), + 66: uint16(65347), + 67: uint16(65348), + 68: uint16(65349), + 69: uint16(65350), + 70: uint16(65351), + 71: uint16(65352), + 72: uint16(65353), + 73: uint16(65354), + 74: uint16(65355), + 75: uint16(65356), + 76: uint16(65357), + 77: uint16(65358), + 78: uint16(65359), + 79: uint16(65360), + 80: uint16(65361), + 81: uint16(65362), + 82: uint16(65363), + 83: uint16(65364), + 84: uint16(65365), + 85: uint16(65366), + 86: uint16(65367), + 87: uint16(65368), + 88: uint16(65369), + 89: uint16(65370), + 90: uint16(65371), + 91: uint16(65372), + 92: uint16(65373), + 93: uint16(65507), + }, + 3: { + 0: uint16(12593), + 1: uint16(12594), + 2: uint16(12595), + 3: uint16(12596), + 4: uint16(12597), + 5: uint16(12598), + 6: uint16(12599), + 7: uint16(12600), + 8: uint16(12601), + 9: uint16(12602), + 10: uint16(12603), + 11: uint16(12604), + 12: uint16(12605), + 13: uint16(12606), + 14: uint16(12607), + 15: uint16(12608), + 16: uint16(12609), + 17: uint16(12610), + 18: uint16(12611), + 19: uint16(12612), + 20: uint16(12613), + 21: uint16(12614), + 22: uint16(12615), + 23: uint16(12616), + 24: uint16(12617), + 25: uint16(12618), + 26: uint16(12619), + 27: uint16(12620), + 28: uint16(12621), + 29: uint16(12622), + 30: uint16(12623), + 31: uint16(12624), + 32: uint16(12625), + 33: uint16(12626), + 34: uint16(12627), + 35: uint16(12628), + 36: uint16(12629), + 37: uint16(12630), + 38: uint16(12631), + 39: uint16(12632), + 40: uint16(12633), + 41: uint16(12634), + 42: uint16(12635), + 43: uint16(12636), + 44: uint16(12637), + 45: uint16(12638), + 46: uint16(12639), + 47: uint16(12640), + 48: uint16(12641), + 49: uint16(12642), + 50: uint16(12643), + 51: uint16(12644), + 52: uint16(12645), + 53: uint16(12646), + 54: uint16(12647), + 55: uint16(12648), + 56: uint16(12649), + 57: uint16(12650), + 58: uint16(12651), + 59: uint16(12652), + 60: uint16(12653), + 61: uint16(12654), + 62: uint16(12655), + 63: uint16(12656), + 64: uint16(12657), + 65: uint16(12658), + 66: uint16(12659), + 67: uint16(12660), + 68: uint16(12661), + 69: uint16(12662), + 70: uint16(12663), + 71: uint16(12664), + 72: uint16(12665), + 73: uint16(12666), + 74: uint16(12667), + 75: uint16(12668), + 76: uint16(12669), + 77: uint16(12670), + 78: uint16(12671), + 79: uint16(12672), + 80: uint16(12673), + 81: uint16(12674), + 82: uint16(12675), + 83: uint16(12676), + 84: uint16(12677), + 85: uint16(12678), + 86: uint16(12679), + 87: uint16(12680), + 88: uint16(12681), + 89: uint16(12682), + 90: uint16(12683), + 91: uint16(12684), + 92: uint16(12685), + 93: uint16(12686), + }, + 4: { + 0: uint16(8560), + 1: uint16(8561), + 2: uint16(8562), + 3: uint16(8563), + 4: uint16(8564), + 5: uint16(8565), + 6: uint16(8566), + 7: uint16(8567), + 8: uint16(8568), + 9: uint16(8569), + 15: uint16(8544), + 16: uint16(8545), + 17: uint16(8546), + 18: uint16(8547), + 19: uint16(8548), + 20: uint16(8549), + 21: uint16(8550), + 22: uint16(8551), + 23: uint16(8552), + 24: uint16(8553), + 32: uint16(913), + 33: uint16(914), + 34: uint16(915), + 35: uint16(916), + 36: uint16(917), + 37: uint16(918), + 38: uint16(919), + 39: uint16(920), + 40: uint16(921), + 41: uint16(922), + 42: uint16(923), + 43: uint16(924), + 44: uint16(925), + 45: uint16(926), + 46: uint16(927), + 47: uint16(928), + 48: uint16(929), + 49: uint16(931), + 50: uint16(932), + 51: uint16(933), + 52: uint16(934), + 53: uint16(935), + 54: uint16(936), + 55: uint16(937), + 64: uint16(945), + 65: uint16(946), + 66: uint16(947), + 67: uint16(948), + 68: uint16(949), + 69: uint16(950), + 70: uint16(951), + 71: uint16(952), + 72: uint16(953), + 73: uint16(954), + 74: uint16(955), + 75: uint16(956), + 76: uint16(957), + 77: uint16(958), + 78: uint16(959), + 79: uint16(960), + 80: uint16(961), + 81: uint16(963), + 82: uint16(964), + 83: uint16(965), + 84: uint16(966), + 85: uint16(967), + 86: uint16(968), + 87: uint16(969), + }, + 5: { + 0: uint16(9472), + 1: uint16(9474), + 2: uint16(9484), + 3: uint16(9488), + 4: uint16(9496), + 5: uint16(9492), + 6: uint16(9500), + 7: uint16(9516), + 8: uint16(9508), + 9: uint16(9524), + 10: uint16(9532), + 11: uint16(9473), + 12: uint16(9475), + 13: uint16(9487), + 14: uint16(9491), + 15: uint16(9499), + 16: uint16(9495), + 17: uint16(9507), + 18: uint16(9523), + 19: uint16(9515), + 20: uint16(9531), + 21: uint16(9547), + 22: uint16(9504), + 23: uint16(9519), + 24: uint16(9512), + 25: uint16(9527), + 26: uint16(9535), + 27: uint16(9501), + 28: uint16(9520), + 29: uint16(9509), + 30: uint16(9528), + 31: uint16(9538), + 32: uint16(9490), + 33: uint16(9489), + 34: uint16(9498), + 35: uint16(9497), + 36: uint16(9494), + 37: uint16(9493), + 38: uint16(9486), + 39: uint16(9485), + 40: uint16(9502), + 41: uint16(9503), + 42: uint16(9505), + 43: uint16(9506), + 44: uint16(9510), + 45: uint16(9511), + 46: uint16(9513), + 47: uint16(9514), + 48: uint16(9517), + 49: uint16(9518), + 50: uint16(9521), + 51: uint16(9522), + 52: uint16(9525), + 53: uint16(9526), + 54: uint16(9529), + 55: uint16(9530), + 56: uint16(9533), + 57: uint16(9534), + 58: uint16(9536), + 59: uint16(9537), + 60: uint16(9539), + 61: uint16(9540), + 62: uint16(9541), + 63: uint16(9542), + 64: uint16(9543), + 65: uint16(9544), + 66: uint16(9545), + 67: uint16(9546), + }, + 6: { + 0: uint16(13205), + 1: uint16(13206), + 2: uint16(13207), + 3: uint16(8467), + 4: uint16(13208), + 5: uint16(13252), + 6: uint16(13219), + 7: uint16(13220), + 8: uint16(13221), + 9: uint16(13222), + 10: uint16(13209), + 11: uint16(13210), + 12: uint16(13211), + 13: uint16(13212), + 14: uint16(13213), + 15: uint16(13214), + 16: uint16(13215), + 17: uint16(13216), + 18: uint16(13217), + 19: uint16(13218), + 20: uint16(13258), + 21: uint16(13197), + 22: uint16(13198), + 23: uint16(13199), + 24: uint16(13263), + 25: uint16(13192), + 26: uint16(13193), + 27: uint16(13256), + 28: uint16(13223), + 29: uint16(13224), + 30: uint16(13232), + 31: uint16(13233), + 32: uint16(13234), + 33: uint16(13235), + 34: uint16(13236), + 35: uint16(13237), + 36: uint16(13238), + 37: uint16(13239), + 38: uint16(13240), + 39: uint16(13241), + 40: uint16(13184), + 41: uint16(13185), + 42: uint16(13186), + 43: uint16(13187), + 44: uint16(13188), + 45: uint16(13242), + 46: uint16(13243), + 47: uint16(13244), + 48: uint16(13245), + 49: uint16(13246), + 50: uint16(13247), + 51: uint16(13200), + 52: uint16(13201), + 53: uint16(13202), + 54: uint16(13203), + 55: uint16(13204), + 56: uint16(8486), + 57: uint16(13248), + 58: uint16(13249), + 59: uint16(13194), + 60: uint16(13195), + 61: uint16(13196), + 62: uint16(13270), + 63: uint16(13253), + 64: uint16(13229), + 65: uint16(13230), + 66: uint16(13231), + 67: uint16(13275), + 68: uint16(13225), + 69: uint16(13226), + 70: uint16(13227), + 71: uint16(13228), + 72: uint16(13277), + 73: uint16(13264), + 74: uint16(13267), + 75: uint16(13251), + 76: uint16(13257), + 77: uint16(13276), + 78: uint16(13254), + }, + 7: { + 0: uint16(198), + 1: uint16(208), + 2: uint16(170), + 3: uint16(294), + 5: uint16(306), + 7: uint16(319), + 8: uint16(321), + 9: uint16(216), + 10: uint16(338), + 11: uint16(186), + 12: uint16(222), + 13: uint16(358), + 14: uint16(330), + 16: uint16(12896), + 17: uint16(12897), + 18: uint16(12898), + 19: uint16(12899), + 20: uint16(12900), + 21: uint16(12901), + 22: uint16(12902), + 23: uint16(12903), + 24: uint16(12904), + 25: uint16(12905), + 26: uint16(12906), + 27: uint16(12907), + 28: uint16(12908), + 29: uint16(12909), + 30: uint16(12910), + 31: uint16(12911), + 32: uint16(12912), + 33: uint16(12913), + 34: uint16(12914), + 35: uint16(12915), + 36: uint16(12916), + 37: uint16(12917), + 38: uint16(12918), + 39: uint16(12919), + 40: uint16(12920), + 41: uint16(12921), + 42: uint16(12922), + 43: uint16(12923), + 44: uint16(9424), + 45: uint16(9425), + 46: uint16(9426), + 47: uint16(9427), + 48: uint16(9428), + 49: uint16(9429), + 50: uint16(9430), + 51: uint16(9431), + 52: uint16(9432), + 53: uint16(9433), + 54: uint16(9434), + 55: uint16(9435), + 56: uint16(9436), + 57: uint16(9437), + 58: uint16(9438), + 59: uint16(9439), + 60: uint16(9440), + 61: uint16(9441), + 62: uint16(9442), + 63: uint16(9443), + 64: uint16(9444), + 65: uint16(9445), + 66: uint16(9446), + 67: uint16(9447), + 68: uint16(9448), + 69: uint16(9449), + 70: uint16(9312), + 71: uint16(9313), + 72: uint16(9314), + 73: uint16(9315), + 74: uint16(9316), + 75: uint16(9317), + 76: uint16(9318), + 77: uint16(9319), + 78: uint16(9320), + 79: uint16(9321), + 80: uint16(9322), + 81: uint16(9323), + 82: uint16(9324), + 83: uint16(9325), + 84: uint16(9326), + 85: uint16(189), + 86: uint16(8531), + 87: uint16(8532), + 88: uint16(188), + 89: uint16(190), + 90: uint16(8539), + 91: uint16(8540), + 92: uint16(8541), + 93: uint16(8542), + }, + 8: { + 0: uint16(230), + 1: uint16(273), + 2: uint16(240), + 3: uint16(295), + 4: uint16(305), + 5: uint16(307), + 6: uint16(312), + 7: uint16(320), + 8: uint16(322), + 9: uint16(248), + 10: uint16(339), + 11: uint16(223), + 12: uint16(254), + 13: uint16(359), + 14: uint16(331), + 15: uint16(329), + 16: uint16(12800), + 17: uint16(12801), + 18: uint16(12802), + 19: uint16(12803), + 20: uint16(12804), + 21: uint16(12805), + 22: uint16(12806), + 23: uint16(12807), + 24: uint16(12808), + 25: uint16(12809), + 26: uint16(12810), + 27: uint16(12811), + 28: uint16(12812), + 29: uint16(12813), + 30: uint16(12814), + 31: uint16(12815), + 32: uint16(12816), + 33: uint16(12817), + 34: uint16(12818), + 35: uint16(12819), + 36: uint16(12820), + 37: uint16(12821), + 38: uint16(12822), + 39: uint16(12823), + 40: uint16(12824), + 41: uint16(12825), + 42: uint16(12826), + 43: uint16(12827), + 44: uint16(9372), + 45: uint16(9373), + 46: uint16(9374), + 47: uint16(9375), + 48: uint16(9376), + 49: uint16(9377), + 50: uint16(9378), + 51: uint16(9379), + 52: uint16(9380), + 53: uint16(9381), + 54: uint16(9382), + 55: uint16(9383), + 56: uint16(9384), + 57: uint16(9385), + 58: uint16(9386), + 59: uint16(9387), + 60: uint16(9388), + 61: uint16(9389), + 62: uint16(9390), + 63: uint16(9391), + 64: uint16(9392), + 65: uint16(9393), + 66: uint16(9394), + 67: uint16(9395), + 68: uint16(9396), + 69: uint16(9397), + 70: uint16(9332), + 71: uint16(9333), + 72: uint16(9334), + 73: uint16(9335), + 74: uint16(9336), + 75: uint16(9337), + 76: uint16(9338), + 77: uint16(9339), + 78: uint16(9340), + 79: uint16(9341), + 80: uint16(9342), + 81: uint16(9343), + 82: uint16(9344), + 83: uint16(9345), + 84: uint16(9346), + 85: uint16(185), + 86: uint16(178), + 87: uint16(179), + 88: uint16(8308), + 89: uint16(8319), + 90: uint16(8321), + 91: uint16(8322), + 92: uint16(8323), + 93: uint16(8324), + }, + 9: { + 0: uint16(12353), + 1: uint16(12354), + 2: uint16(12355), + 3: uint16(12356), + 4: uint16(12357), + 5: uint16(12358), + 6: uint16(12359), + 7: uint16(12360), + 8: uint16(12361), + 9: uint16(12362), + 10: uint16(12363), + 11: uint16(12364), + 12: uint16(12365), + 13: uint16(12366), + 14: uint16(12367), + 15: uint16(12368), + 16: uint16(12369), + 17: uint16(12370), + 18: uint16(12371), + 19: uint16(12372), + 20: uint16(12373), + 21: uint16(12374), + 22: uint16(12375), + 23: uint16(12376), + 24: uint16(12377), + 25: uint16(12378), + 26: uint16(12379), + 27: uint16(12380), + 28: uint16(12381), + 29: uint16(12382), + 30: uint16(12383), + 31: uint16(12384), + 32: uint16(12385), + 33: uint16(12386), + 34: uint16(12387), + 35: uint16(12388), + 36: uint16(12389), + 37: uint16(12390), + 38: uint16(12391), + 39: uint16(12392), + 40: uint16(12393), + 41: uint16(12394), + 42: uint16(12395), + 43: uint16(12396), + 44: uint16(12397), + 45: uint16(12398), + 46: uint16(12399), + 47: uint16(12400), + 48: uint16(12401), + 49: uint16(12402), + 50: uint16(12403), + 51: uint16(12404), + 52: uint16(12405), + 53: uint16(12406), + 54: uint16(12407), + 55: uint16(12408), + 56: uint16(12409), + 57: uint16(12410), + 58: uint16(12411), + 59: uint16(12412), + 60: uint16(12413), + 61: uint16(12414), + 62: uint16(12415), + 63: uint16(12416), + 64: uint16(12417), + 65: uint16(12418), + 66: uint16(12419), + 67: uint16(12420), + 68: uint16(12421), + 69: uint16(12422), + 70: uint16(12423), + 71: uint16(12424), + 72: uint16(12425), + 73: uint16(12426), + 74: uint16(12427), + 75: uint16(12428), + 76: uint16(12429), + 77: uint16(12430), + 78: uint16(12431), + 79: uint16(12432), + 80: uint16(12433), + 81: uint16(12434), + 82: uint16(12435), + }, + 10: { + 0: uint16(12449), + 1: uint16(12450), + 2: uint16(12451), + 3: uint16(12452), + 4: uint16(12453), + 5: uint16(12454), + 6: uint16(12455), + 7: uint16(12456), + 8: uint16(12457), + 9: uint16(12458), + 10: uint16(12459), + 11: uint16(12460), + 12: uint16(12461), + 13: uint16(12462), + 14: uint16(12463), + 15: uint16(12464), + 16: uint16(12465), + 17: uint16(12466), + 18: uint16(12467), + 19: uint16(12468), + 20: uint16(12469), + 21: uint16(12470), + 22: uint16(12471), + 23: uint16(12472), + 24: uint16(12473), + 25: uint16(12474), + 26: uint16(12475), + 27: uint16(12476), + 28: uint16(12477), + 29: uint16(12478), + 30: uint16(12479), + 31: uint16(12480), + 32: uint16(12481), + 33: uint16(12482), + 34: uint16(12483), + 35: uint16(12484), + 36: uint16(12485), + 37: uint16(12486), + 38: uint16(12487), + 39: uint16(12488), + 40: uint16(12489), + 41: uint16(12490), + 42: uint16(12491), + 43: uint16(12492), + 44: uint16(12493), + 45: uint16(12494), + 46: uint16(12495), + 47: uint16(12496), + 48: uint16(12497), + 49: uint16(12498), + 50: uint16(12499), + 51: uint16(12500), + 52: uint16(12501), + 53: uint16(12502), + 54: uint16(12503), + 55: uint16(12504), + 56: uint16(12505), + 57: uint16(12506), + 58: uint16(12507), + 59: uint16(12508), + 60: uint16(12509), + 61: uint16(12510), + 62: uint16(12511), + 63: uint16(12512), + 64: uint16(12513), + 65: uint16(12514), + 66: uint16(12515), + 67: uint16(12516), + 68: uint16(12517), + 69: uint16(12518), + 70: uint16(12519), + 71: uint16(12520), + 72: uint16(12521), + 73: uint16(12522), + 74: uint16(12523), + 75: uint16(12524), + 76: uint16(12525), + 77: uint16(12526), + 78: uint16(12527), + 79: uint16(12528), + 80: uint16(12529), + 81: uint16(12530), + 82: uint16(12531), + 83: uint16(12532), + 84: uint16(12533), + 85: uint16(12534), + }, + 11: { + 0: uint16(1040), + 1: uint16(1041), + 2: uint16(1042), + 3: uint16(1043), + 4: uint16(1044), + 5: uint16(1045), + 6: uint16(1025), + 7: uint16(1046), + 8: uint16(1047), + 9: uint16(1048), + 10: uint16(1049), + 11: uint16(1050), + 12: uint16(1051), + 13: uint16(1052), + 14: uint16(1053), + 15: uint16(1054), + 16: uint16(1055), + 17: uint16(1056), + 18: uint16(1057), + 19: uint16(1058), + 20: uint16(1059), + 21: uint16(1060), + 22: uint16(1061), + 23: uint16(1062), + 24: uint16(1063), + 25: uint16(1064), + 26: uint16(1065), + 27: uint16(1066), + 28: uint16(1067), + 29: uint16(1068), + 30: uint16(1069), + 31: uint16(1070), + 32: uint16(1071), + 48: uint16(1072), + 49: uint16(1073), + 50: uint16(1074), + 51: uint16(1075), + 52: uint16(1076), + 53: uint16(1077), + 54: uint16(1105), + 55: uint16(1078), + 56: uint16(1079), + 57: uint16(1080), + 58: uint16(1081), + 59: uint16(1082), + 60: uint16(1083), + 61: uint16(1084), + 62: uint16(1085), + 63: uint16(1086), + 64: uint16(1087), + 65: uint16(1088), + 66: uint16(1089), + 67: uint16(1090), + 68: uint16(1091), + 69: uint16(1092), + 70: uint16(1093), + 71: uint16(1094), + 72: uint16(1095), + 73: uint16(1096), + 74: uint16(1097), + 75: uint16(1098), + 76: uint16(1099), + 77: uint16(1100), + 78: uint16(1101), + 79: uint16(1102), + 80: uint16(1103), + }, + 12: {}, + 13: {}, + 14: {}, + 15: { + 0: uint16(44032), + 1: uint16(44033), + 2: uint16(44036), + 3: uint16(44039), + 4: uint16(44040), + 5: uint16(44041), + 6: uint16(44042), + 7: uint16(44048), + 8: uint16(44049), + 9: uint16(44050), + 10: uint16(44051), + 11: uint16(44052), + 12: uint16(44053), + 13: uint16(44054), + 14: uint16(44055), + 15: uint16(44057), + 16: uint16(44058), + 17: uint16(44059), + 18: uint16(44060), + 19: uint16(44061), + 20: uint16(44064), + 21: uint16(44068), + 22: uint16(44076), + 23: uint16(44077), + 24: uint16(44079), + 25: uint16(44080), + 26: uint16(44081), + 27: uint16(44088), + 28: uint16(44089), + 29: uint16(44092), + 30: uint16(44096), + 31: uint16(44107), + 32: uint16(44109), + 33: uint16(44116), + 34: uint16(44120), + 35: uint16(44124), + 36: uint16(44144), + 37: uint16(44145), + 38: uint16(44148), + 39: uint16(44151), + 40: uint16(44152), + 41: uint16(44154), + 42: uint16(44160), + 43: uint16(44161), + 44: uint16(44163), + 45: uint16(44164), + 46: uint16(44165), + 47: uint16(44166), + 48: uint16(44169), + 49: uint16(44170), + 50: uint16(44171), + 51: uint16(44172), + 52: uint16(44176), + 53: uint16(44180), + 54: uint16(44188), + 55: uint16(44189), + 56: uint16(44191), + 57: uint16(44192), + 58: uint16(44193), + 59: uint16(44200), + 60: uint16(44201), + 61: uint16(44202), + 62: uint16(44204), + 63: uint16(44207), + 64: uint16(44208), + 65: uint16(44216), + 66: uint16(44217), + 67: uint16(44219), + 68: uint16(44220), + 69: uint16(44221), + 70: uint16(44225), + 71: uint16(44228), + 72: uint16(44232), + 73: uint16(44236), + 74: uint16(44245), + 75: uint16(44247), + 76: uint16(44256), + 77: uint16(44257), + 78: uint16(44260), + 79: uint16(44263), + 80: uint16(44264), + 81: uint16(44266), + 82: uint16(44268), + 83: uint16(44271), + 84: uint16(44272), + 85: uint16(44273), + 86: uint16(44275), + 87: uint16(44277), + 88: uint16(44278), + 89: uint16(44284), + 90: uint16(44285), + 91: uint16(44288), + 92: uint16(44292), + 93: uint16(44294), + }, + 16: { + 0: uint16(44300), + 1: uint16(44301), + 2: uint16(44303), + 3: uint16(44305), + 4: uint16(44312), + 5: uint16(44316), + 6: uint16(44320), + 7: uint16(44329), + 8: uint16(44332), + 9: uint16(44333), + 10: uint16(44340), + 11: uint16(44341), + 12: uint16(44344), + 13: uint16(44348), + 14: uint16(44356), + 15: uint16(44357), + 16: uint16(44359), + 17: uint16(44361), + 18: uint16(44368), + 19: uint16(44372), + 20: uint16(44376), + 21: uint16(44385), + 22: uint16(44387), + 23: uint16(44396), + 24: uint16(44397), + 25: uint16(44400), + 26: uint16(44403), + 27: uint16(44404), + 28: uint16(44405), + 29: uint16(44406), + 30: uint16(44411), + 31: uint16(44412), + 32: uint16(44413), + 33: uint16(44415), + 34: uint16(44417), + 35: uint16(44418), + 36: uint16(44424), + 37: uint16(44425), + 38: uint16(44428), + 39: uint16(44432), + 40: uint16(44444), + 41: uint16(44445), + 42: uint16(44452), + 43: uint16(44471), + 44: uint16(44480), + 45: uint16(44481), + 46: uint16(44484), + 47: uint16(44488), + 48: uint16(44496), + 49: uint16(44497), + 50: uint16(44499), + 51: uint16(44508), + 52: uint16(44512), + 53: uint16(44516), + 54: uint16(44536), + 55: uint16(44537), + 56: uint16(44540), + 57: uint16(44543), + 58: uint16(44544), + 59: uint16(44545), + 60: uint16(44552), + 61: uint16(44553), + 62: uint16(44555), + 63: uint16(44557), + 64: uint16(44564), + 65: uint16(44592), + 66: uint16(44593), + 67: uint16(44596), + 68: uint16(44599), + 69: uint16(44600), + 70: uint16(44602), + 71: uint16(44608), + 72: uint16(44609), + 73: uint16(44611), + 74: uint16(44613), + 75: uint16(44614), + 76: uint16(44618), + 77: uint16(44620), + 78: uint16(44621), + 79: uint16(44622), + 80: uint16(44624), + 81: uint16(44628), + 82: uint16(44630), + 83: uint16(44636), + 84: uint16(44637), + 85: uint16(44639), + 86: uint16(44640), + 87: uint16(44641), + 88: uint16(44645), + 89: uint16(44648), + 90: uint16(44649), + 91: uint16(44652), + 92: uint16(44656), + 93: uint16(44664), + }, + 17: { + 0: uint16(44665), + 1: uint16(44667), + 2: uint16(44668), + 3: uint16(44669), + 4: uint16(44676), + 5: uint16(44677), + 6: uint16(44684), + 7: uint16(44732), + 8: uint16(44733), + 9: uint16(44734), + 10: uint16(44736), + 11: uint16(44740), + 12: uint16(44748), + 13: uint16(44749), + 14: uint16(44751), + 15: uint16(44752), + 16: uint16(44753), + 17: uint16(44760), + 18: uint16(44761), + 19: uint16(44764), + 20: uint16(44776), + 21: uint16(44779), + 22: uint16(44781), + 23: uint16(44788), + 24: uint16(44792), + 25: uint16(44796), + 26: uint16(44807), + 27: uint16(44808), + 28: uint16(44813), + 29: uint16(44816), + 30: uint16(44844), + 31: uint16(44845), + 32: uint16(44848), + 33: uint16(44850), + 34: uint16(44852), + 35: uint16(44860), + 36: uint16(44861), + 37: uint16(44863), + 38: uint16(44865), + 39: uint16(44866), + 40: uint16(44867), + 41: uint16(44872), + 42: uint16(44873), + 43: uint16(44880), + 44: uint16(44892), + 45: uint16(44893), + 46: uint16(44900), + 47: uint16(44901), + 48: uint16(44921), + 49: uint16(44928), + 50: uint16(44932), + 51: uint16(44936), + 52: uint16(44944), + 53: uint16(44945), + 54: uint16(44949), + 55: uint16(44956), + 56: uint16(44984), + 57: uint16(44985), + 58: uint16(44988), + 59: uint16(44992), + 60: uint16(44999), + 61: uint16(45000), + 62: uint16(45001), + 63: uint16(45003), + 64: uint16(45005), + 65: uint16(45006), + 66: uint16(45012), + 67: uint16(45020), + 68: uint16(45032), + 69: uint16(45033), + 70: uint16(45040), + 71: uint16(45041), + 72: uint16(45044), + 73: uint16(45048), + 74: uint16(45056), + 75: uint16(45057), + 76: uint16(45060), + 77: uint16(45068), + 78: uint16(45072), + 79: uint16(45076), + 80: uint16(45084), + 81: uint16(45085), + 82: uint16(45096), + 83: uint16(45124), + 84: uint16(45125), + 85: uint16(45128), + 86: uint16(45130), + 87: uint16(45132), + 88: uint16(45134), + 89: uint16(45139), + 90: uint16(45140), + 91: uint16(45141), + 92: uint16(45143), + 93: uint16(45145), + }, + 18: { + 0: uint16(45149), + 1: uint16(45180), + 2: uint16(45181), + 3: uint16(45184), + 4: uint16(45188), + 5: uint16(45196), + 6: uint16(45197), + 7: uint16(45199), + 8: uint16(45201), + 9: uint16(45208), + 10: uint16(45209), + 11: uint16(45210), + 12: uint16(45212), + 13: uint16(45215), + 14: uint16(45216), + 15: uint16(45217), + 16: uint16(45218), + 17: uint16(45224), + 18: uint16(45225), + 19: uint16(45227), + 20: uint16(45228), + 21: uint16(45229), + 22: uint16(45230), + 23: uint16(45231), + 24: uint16(45233), + 25: uint16(45235), + 26: uint16(45236), + 27: uint16(45237), + 28: uint16(45240), + 29: uint16(45244), + 30: uint16(45252), + 31: uint16(45253), + 32: uint16(45255), + 33: uint16(45256), + 34: uint16(45257), + 35: uint16(45264), + 36: uint16(45265), + 37: uint16(45268), + 38: uint16(45272), + 39: uint16(45280), + 40: uint16(45285), + 41: uint16(45320), + 42: uint16(45321), + 43: uint16(45323), + 44: uint16(45324), + 45: uint16(45328), + 46: uint16(45330), + 47: uint16(45331), + 48: uint16(45336), + 49: uint16(45337), + 50: uint16(45339), + 51: uint16(45340), + 52: uint16(45341), + 53: uint16(45347), + 54: uint16(45348), + 55: uint16(45349), + 56: uint16(45352), + 57: uint16(45356), + 58: uint16(45364), + 59: uint16(45365), + 60: uint16(45367), + 61: uint16(45368), + 62: uint16(45369), + 63: uint16(45376), + 64: uint16(45377), + 65: uint16(45380), + 66: uint16(45384), + 67: uint16(45392), + 68: uint16(45393), + 69: uint16(45396), + 70: uint16(45397), + 71: uint16(45400), + 72: uint16(45404), + 73: uint16(45408), + 74: uint16(45432), + 75: uint16(45433), + 76: uint16(45436), + 77: uint16(45440), + 78: uint16(45442), + 79: uint16(45448), + 80: uint16(45449), + 81: uint16(45451), + 82: uint16(45453), + 83: uint16(45458), + 84: uint16(45459), + 85: uint16(45460), + 86: uint16(45464), + 87: uint16(45468), + 88: uint16(45480), + 89: uint16(45516), + 90: uint16(45520), + 91: uint16(45524), + 92: uint16(45532), + 93: uint16(45533), + }, + 19: { + 0: uint16(45535), + 1: uint16(45544), + 2: uint16(45545), + 3: uint16(45548), + 4: uint16(45552), + 5: uint16(45561), + 6: uint16(45563), + 7: uint16(45565), + 8: uint16(45572), + 9: uint16(45573), + 10: uint16(45576), + 11: uint16(45579), + 12: uint16(45580), + 13: uint16(45588), + 14: uint16(45589), + 15: uint16(45591), + 16: uint16(45593), + 17: uint16(45600), + 18: uint16(45620), + 19: uint16(45628), + 20: uint16(45656), + 21: uint16(45660), + 22: uint16(45664), + 23: uint16(45672), + 24: uint16(45673), + 25: uint16(45684), + 26: uint16(45685), + 27: uint16(45692), + 28: uint16(45700), + 29: uint16(45701), + 30: uint16(45705), + 31: uint16(45712), + 32: uint16(45713), + 33: uint16(45716), + 34: uint16(45720), + 35: uint16(45721), + 36: uint16(45722), + 37: uint16(45728), + 38: uint16(45729), + 39: uint16(45731), + 40: uint16(45733), + 41: uint16(45734), + 42: uint16(45738), + 43: uint16(45740), + 44: uint16(45744), + 45: uint16(45748), + 46: uint16(45768), + 47: uint16(45769), + 48: uint16(45772), + 49: uint16(45776), + 50: uint16(45778), + 51: uint16(45784), + 52: uint16(45785), + 53: uint16(45787), + 54: uint16(45789), + 55: uint16(45794), + 56: uint16(45796), + 57: uint16(45797), + 58: uint16(45798), + 59: uint16(45800), + 60: uint16(45803), + 61: uint16(45804), + 62: uint16(45805), + 63: uint16(45806), + 64: uint16(45807), + 65: uint16(45811), + 66: uint16(45812), + 67: uint16(45813), + 68: uint16(45815), + 69: uint16(45816), + 70: uint16(45817), + 71: uint16(45818), + 72: uint16(45819), + 73: uint16(45823), + 74: uint16(45824), + 75: uint16(45825), + 76: uint16(45828), + 77: uint16(45832), + 78: uint16(45840), + 79: uint16(45841), + 80: uint16(45843), + 81: uint16(45844), + 82: uint16(45845), + 83: uint16(45852), + 84: uint16(45908), + 85: uint16(45909), + 86: uint16(45910), + 87: uint16(45912), + 88: uint16(45915), + 89: uint16(45916), + 90: uint16(45918), + 91: uint16(45919), + 92: uint16(45924), + 93: uint16(45925), + }, + 20: { + 0: uint16(45927), + 1: uint16(45929), + 2: uint16(45931), + 3: uint16(45934), + 4: uint16(45936), + 5: uint16(45937), + 6: uint16(45940), + 7: uint16(45944), + 8: uint16(45952), + 9: uint16(45953), + 10: uint16(45955), + 11: uint16(45956), + 12: uint16(45957), + 13: uint16(45964), + 14: uint16(45968), + 15: uint16(45972), + 16: uint16(45984), + 17: uint16(45985), + 18: uint16(45992), + 19: uint16(45996), + 20: uint16(46020), + 21: uint16(46021), + 22: uint16(46024), + 23: uint16(46027), + 24: uint16(46028), + 25: uint16(46030), + 26: uint16(46032), + 27: uint16(46036), + 28: uint16(46037), + 29: uint16(46039), + 30: uint16(46041), + 31: uint16(46043), + 32: uint16(46045), + 33: uint16(46048), + 34: uint16(46052), + 35: uint16(46056), + 36: uint16(46076), + 37: uint16(46096), + 38: uint16(46104), + 39: uint16(46108), + 40: uint16(46112), + 41: uint16(46120), + 42: uint16(46121), + 43: uint16(46123), + 44: uint16(46132), + 45: uint16(46160), + 46: uint16(46161), + 47: uint16(46164), + 48: uint16(46168), + 49: uint16(46176), + 50: uint16(46177), + 51: uint16(46179), + 52: uint16(46181), + 53: uint16(46188), + 54: uint16(46208), + 55: uint16(46216), + 56: uint16(46237), + 57: uint16(46244), + 58: uint16(46248), + 59: uint16(46252), + 60: uint16(46261), + 61: uint16(46263), + 62: uint16(46265), + 63: uint16(46272), + 64: uint16(46276), + 65: uint16(46280), + 66: uint16(46288), + 67: uint16(46293), + 68: uint16(46300), + 69: uint16(46301), + 70: uint16(46304), + 71: uint16(46307), + 72: uint16(46308), + 73: uint16(46310), + 74: uint16(46316), + 75: uint16(46317), + 76: uint16(46319), + 77: uint16(46321), + 78: uint16(46328), + 79: uint16(46356), + 80: uint16(46357), + 81: uint16(46360), + 82: uint16(46363), + 83: uint16(46364), + 84: uint16(46372), + 85: uint16(46373), + 86: uint16(46375), + 87: uint16(46376), + 88: uint16(46377), + 89: uint16(46378), + 90: uint16(46384), + 91: uint16(46385), + 92: uint16(46388), + 93: uint16(46392), + }, + 21: { + 0: uint16(46400), + 1: uint16(46401), + 2: uint16(46403), + 3: uint16(46404), + 4: uint16(46405), + 5: uint16(46411), + 6: uint16(46412), + 7: uint16(46413), + 8: uint16(46416), + 9: uint16(46420), + 10: uint16(46428), + 11: uint16(46429), + 12: uint16(46431), + 13: uint16(46432), + 14: uint16(46433), + 15: uint16(46496), + 16: uint16(46497), + 17: uint16(46500), + 18: uint16(46504), + 19: uint16(46506), + 20: uint16(46507), + 21: uint16(46512), + 22: uint16(46513), + 23: uint16(46515), + 24: uint16(46516), + 25: uint16(46517), + 26: uint16(46523), + 27: uint16(46524), + 28: uint16(46525), + 29: uint16(46528), + 30: uint16(46532), + 31: uint16(46540), + 32: uint16(46541), + 33: uint16(46543), + 34: uint16(46544), + 35: uint16(46545), + 36: uint16(46552), + 37: uint16(46572), + 38: uint16(46608), + 39: uint16(46609), + 40: uint16(46612), + 41: uint16(46616), + 42: uint16(46629), + 43: uint16(46636), + 44: uint16(46644), + 45: uint16(46664), + 46: uint16(46692), + 47: uint16(46696), + 48: uint16(46748), + 49: uint16(46749), + 50: uint16(46752), + 51: uint16(46756), + 52: uint16(46763), + 53: uint16(46764), + 54: uint16(46769), + 55: uint16(46804), + 56: uint16(46832), + 57: uint16(46836), + 58: uint16(46840), + 59: uint16(46848), + 60: uint16(46849), + 61: uint16(46853), + 62: uint16(46888), + 63: uint16(46889), + 64: uint16(46892), + 65: uint16(46895), + 66: uint16(46896), + 67: uint16(46904), + 68: uint16(46905), + 69: uint16(46907), + 70: uint16(46916), + 71: uint16(46920), + 72: uint16(46924), + 73: uint16(46932), + 74: uint16(46933), + 75: uint16(46944), + 76: uint16(46948), + 77: uint16(46952), + 78: uint16(46960), + 79: uint16(46961), + 80: uint16(46963), + 81: uint16(46965), + 82: uint16(46972), + 83: uint16(46973), + 84: uint16(46976), + 85: uint16(46980), + 86: uint16(46988), + 87: uint16(46989), + 88: uint16(46991), + 89: uint16(46992), + 90: uint16(46993), + 91: uint16(46994), + 92: uint16(46998), + 93: uint16(46999), + }, + 22: { + 0: uint16(47000), + 1: uint16(47001), + 2: uint16(47004), + 3: uint16(47008), + 4: uint16(47016), + 5: uint16(47017), + 6: uint16(47019), + 7: uint16(47020), + 8: uint16(47021), + 9: uint16(47028), + 10: uint16(47029), + 11: uint16(47032), + 12: uint16(47047), + 13: uint16(47049), + 14: uint16(47084), + 15: uint16(47085), + 16: uint16(47088), + 17: uint16(47092), + 18: uint16(47100), + 19: uint16(47101), + 20: uint16(47103), + 21: uint16(47104), + 22: uint16(47105), + 23: uint16(47111), + 24: uint16(47112), + 25: uint16(47113), + 26: uint16(47116), + 27: uint16(47120), + 28: uint16(47128), + 29: uint16(47129), + 30: uint16(47131), + 31: uint16(47133), + 32: uint16(47140), + 33: uint16(47141), + 34: uint16(47144), + 35: uint16(47148), + 36: uint16(47156), + 37: uint16(47157), + 38: uint16(47159), + 39: uint16(47160), + 40: uint16(47161), + 41: uint16(47168), + 42: uint16(47172), + 43: uint16(47185), + 44: uint16(47187), + 45: uint16(47196), + 46: uint16(47197), + 47: uint16(47200), + 48: uint16(47204), + 49: uint16(47212), + 50: uint16(47213), + 51: uint16(47215), + 52: uint16(47217), + 53: uint16(47224), + 54: uint16(47228), + 55: uint16(47245), + 56: uint16(47272), + 57: uint16(47280), + 58: uint16(47284), + 59: uint16(47288), + 60: uint16(47296), + 61: uint16(47297), + 62: uint16(47299), + 63: uint16(47301), + 64: uint16(47308), + 65: uint16(47312), + 66: uint16(47316), + 67: uint16(47325), + 68: uint16(47327), + 69: uint16(47329), + 70: uint16(47336), + 71: uint16(47337), + 72: uint16(47340), + 73: uint16(47344), + 74: uint16(47352), + 75: uint16(47353), + 76: uint16(47355), + 77: uint16(47357), + 78: uint16(47364), + 79: uint16(47384), + 80: uint16(47392), + 81: uint16(47420), + 82: uint16(47421), + 83: uint16(47424), + 84: uint16(47428), + 85: uint16(47436), + 86: uint16(47439), + 87: uint16(47441), + 88: uint16(47448), + 89: uint16(47449), + 90: uint16(47452), + 91: uint16(47456), + 92: uint16(47464), + 93: uint16(47465), + }, + 23: { + 0: uint16(47467), + 1: uint16(47469), + 2: uint16(47476), + 3: uint16(47477), + 4: uint16(47480), + 5: uint16(47484), + 6: uint16(47492), + 7: uint16(47493), + 8: uint16(47495), + 9: uint16(47497), + 10: uint16(47498), + 11: uint16(47501), + 12: uint16(47502), + 13: uint16(47532), + 14: uint16(47533), + 15: uint16(47536), + 16: uint16(47540), + 17: uint16(47548), + 18: uint16(47549), + 19: uint16(47551), + 20: uint16(47553), + 21: uint16(47560), + 22: uint16(47561), + 23: uint16(47564), + 24: uint16(47566), + 25: uint16(47567), + 26: uint16(47568), + 27: uint16(47569), + 28: uint16(47570), + 29: uint16(47576), + 30: uint16(47577), + 31: uint16(47579), + 32: uint16(47581), + 33: uint16(47582), + 34: uint16(47585), + 35: uint16(47587), + 36: uint16(47588), + 37: uint16(47589), + 38: uint16(47592), + 39: uint16(47596), + 40: uint16(47604), + 41: uint16(47605), + 42: uint16(47607), + 43: uint16(47608), + 44: uint16(47609), + 45: uint16(47610), + 46: uint16(47616), + 47: uint16(47617), + 48: uint16(47624), + 49: uint16(47637), + 50: uint16(47672), + 51: uint16(47673), + 52: uint16(47676), + 53: uint16(47680), + 54: uint16(47682), + 55: uint16(47688), + 56: uint16(47689), + 57: uint16(47691), + 58: uint16(47693), + 59: uint16(47694), + 60: uint16(47699), + 61: uint16(47700), + 62: uint16(47701), + 63: uint16(47704), + 64: uint16(47708), + 65: uint16(47716), + 66: uint16(47717), + 67: uint16(47719), + 68: uint16(47720), + 69: uint16(47721), + 70: uint16(47728), + 71: uint16(47729), + 72: uint16(47732), + 73: uint16(47736), + 74: uint16(47747), + 75: uint16(47748), + 76: uint16(47749), + 77: uint16(47751), + 78: uint16(47756), + 79: uint16(47784), + 80: uint16(47785), + 81: uint16(47787), + 82: uint16(47788), + 83: uint16(47792), + 84: uint16(47794), + 85: uint16(47800), + 86: uint16(47801), + 87: uint16(47803), + 88: uint16(47805), + 89: uint16(47812), + 90: uint16(47816), + 91: uint16(47832), + 92: uint16(47833), + 93: uint16(47868), + }, + 24: { + 0: uint16(47872), + 1: uint16(47876), + 2: uint16(47885), + 3: uint16(47887), + 4: uint16(47889), + 5: uint16(47896), + 6: uint16(47900), + 7: uint16(47904), + 8: uint16(47913), + 9: uint16(47915), + 10: uint16(47924), + 11: uint16(47925), + 12: uint16(47926), + 13: uint16(47928), + 14: uint16(47931), + 15: uint16(47932), + 16: uint16(47933), + 17: uint16(47934), + 18: uint16(47940), + 19: uint16(47941), + 20: uint16(47943), + 21: uint16(47945), + 22: uint16(47949), + 23: uint16(47951), + 24: uint16(47952), + 25: uint16(47956), + 26: uint16(47960), + 27: uint16(47969), + 28: uint16(47971), + 29: uint16(47980), + 30: uint16(48008), + 31: uint16(48012), + 32: uint16(48016), + 33: uint16(48036), + 34: uint16(48040), + 35: uint16(48044), + 36: uint16(48052), + 37: uint16(48055), + 38: uint16(48064), + 39: uint16(48068), + 40: uint16(48072), + 41: uint16(48080), + 42: uint16(48083), + 43: uint16(48120), + 44: uint16(48121), + 45: uint16(48124), + 46: uint16(48127), + 47: uint16(48128), + 48: uint16(48130), + 49: uint16(48136), + 50: uint16(48137), + 51: uint16(48139), + 52: uint16(48140), + 53: uint16(48141), + 54: uint16(48143), + 55: uint16(48145), + 56: uint16(48148), + 57: uint16(48149), + 58: uint16(48150), + 59: uint16(48151), + 60: uint16(48152), + 61: uint16(48155), + 62: uint16(48156), + 63: uint16(48157), + 64: uint16(48158), + 65: uint16(48159), + 66: uint16(48164), + 67: uint16(48165), + 68: uint16(48167), + 69: uint16(48169), + 70: uint16(48173), + 71: uint16(48176), + 72: uint16(48177), + 73: uint16(48180), + 74: uint16(48184), + 75: uint16(48192), + 76: uint16(48193), + 77: uint16(48195), + 78: uint16(48196), + 79: uint16(48197), + 80: uint16(48201), + 81: uint16(48204), + 82: uint16(48205), + 83: uint16(48208), + 84: uint16(48221), + 85: uint16(48260), + 86: uint16(48261), + 87: uint16(48264), + 88: uint16(48267), + 89: uint16(48268), + 90: uint16(48270), + 91: uint16(48276), + 92: uint16(48277), + 93: uint16(48279), + }, + 25: { + 0: uint16(48281), + 1: uint16(48282), + 2: uint16(48288), + 3: uint16(48289), + 4: uint16(48292), + 5: uint16(48295), + 6: uint16(48296), + 7: uint16(48304), + 8: uint16(48305), + 9: uint16(48307), + 10: uint16(48308), + 11: uint16(48309), + 12: uint16(48316), + 13: uint16(48317), + 14: uint16(48320), + 15: uint16(48324), + 16: uint16(48333), + 17: uint16(48335), + 18: uint16(48336), + 19: uint16(48337), + 20: uint16(48341), + 21: uint16(48344), + 22: uint16(48348), + 23: uint16(48372), + 24: uint16(48373), + 25: uint16(48374), + 26: uint16(48376), + 27: uint16(48380), + 28: uint16(48388), + 29: uint16(48389), + 30: uint16(48391), + 31: uint16(48393), + 32: uint16(48400), + 33: uint16(48404), + 34: uint16(48420), + 35: uint16(48428), + 36: uint16(48448), + 37: uint16(48456), + 38: uint16(48457), + 39: uint16(48460), + 40: uint16(48464), + 41: uint16(48472), + 42: uint16(48473), + 43: uint16(48484), + 44: uint16(48488), + 45: uint16(48512), + 46: uint16(48513), + 47: uint16(48516), + 48: uint16(48519), + 49: uint16(48520), + 50: uint16(48521), + 51: uint16(48522), + 52: uint16(48528), + 53: uint16(48529), + 54: uint16(48531), + 55: uint16(48533), + 56: uint16(48537), + 57: uint16(48538), + 58: uint16(48540), + 59: uint16(48548), + 60: uint16(48560), + 61: uint16(48568), + 62: uint16(48596), + 63: uint16(48597), + 64: uint16(48600), + 65: uint16(48604), + 66: uint16(48617), + 67: uint16(48624), + 68: uint16(48628), + 69: uint16(48632), + 70: uint16(48640), + 71: uint16(48643), + 72: uint16(48645), + 73: uint16(48652), + 74: uint16(48653), + 75: uint16(48656), + 76: uint16(48660), + 77: uint16(48668), + 78: uint16(48669), + 79: uint16(48671), + 80: uint16(48708), + 81: uint16(48709), + 82: uint16(48712), + 83: uint16(48716), + 84: uint16(48718), + 85: uint16(48724), + 86: uint16(48725), + 87: uint16(48727), + 88: uint16(48729), + 89: uint16(48730), + 90: uint16(48731), + 91: uint16(48736), + 92: uint16(48737), + 93: uint16(48740), + }, + 26: { + 0: uint16(48744), + 1: uint16(48746), + 2: uint16(48752), + 3: uint16(48753), + 4: uint16(48755), + 5: uint16(48756), + 6: uint16(48757), + 7: uint16(48763), + 8: uint16(48764), + 9: uint16(48765), + 10: uint16(48768), + 11: uint16(48772), + 12: uint16(48780), + 13: uint16(48781), + 14: uint16(48783), + 15: uint16(48784), + 16: uint16(48785), + 17: uint16(48792), + 18: uint16(48793), + 19: uint16(48808), + 20: uint16(48848), + 21: uint16(48849), + 22: uint16(48852), + 23: uint16(48855), + 24: uint16(48856), + 25: uint16(48864), + 26: uint16(48867), + 27: uint16(48868), + 28: uint16(48869), + 29: uint16(48876), + 30: uint16(48897), + 31: uint16(48904), + 32: uint16(48905), + 33: uint16(48920), + 34: uint16(48921), + 35: uint16(48923), + 36: uint16(48924), + 37: uint16(48925), + 38: uint16(48960), + 39: uint16(48961), + 40: uint16(48964), + 41: uint16(48968), + 42: uint16(48976), + 43: uint16(48977), + 44: uint16(48981), + 45: uint16(49044), + 46: uint16(49072), + 47: uint16(49093), + 48: uint16(49100), + 49: uint16(49101), + 50: uint16(49104), + 51: uint16(49108), + 52: uint16(49116), + 53: uint16(49119), + 54: uint16(49121), + 55: uint16(49212), + 56: uint16(49233), + 57: uint16(49240), + 58: uint16(49244), + 59: uint16(49248), + 60: uint16(49256), + 61: uint16(49257), + 62: uint16(49296), + 63: uint16(49297), + 64: uint16(49300), + 65: uint16(49304), + 66: uint16(49312), + 67: uint16(49313), + 68: uint16(49315), + 69: uint16(49317), + 70: uint16(49324), + 71: uint16(49325), + 72: uint16(49327), + 73: uint16(49328), + 74: uint16(49331), + 75: uint16(49332), + 76: uint16(49333), + 77: uint16(49334), + 78: uint16(49340), + 79: uint16(49341), + 80: uint16(49343), + 81: uint16(49344), + 82: uint16(49345), + 83: uint16(49349), + 84: uint16(49352), + 85: uint16(49353), + 86: uint16(49356), + 87: uint16(49360), + 88: uint16(49368), + 89: uint16(49369), + 90: uint16(49371), + 91: uint16(49372), + 92: uint16(49373), + 93: uint16(49380), + }, + 27: { + 0: uint16(49381), + 1: uint16(49384), + 2: uint16(49388), + 3: uint16(49396), + 4: uint16(49397), + 5: uint16(49399), + 6: uint16(49401), + 7: uint16(49408), + 8: uint16(49412), + 9: uint16(49416), + 10: uint16(49424), + 11: uint16(49429), + 12: uint16(49436), + 13: uint16(49437), + 14: uint16(49438), + 15: uint16(49439), + 16: uint16(49440), + 17: uint16(49443), + 18: uint16(49444), + 19: uint16(49446), + 20: uint16(49447), + 21: uint16(49452), + 22: uint16(49453), + 23: uint16(49455), + 24: uint16(49456), + 25: uint16(49457), + 26: uint16(49462), + 27: uint16(49464), + 28: uint16(49465), + 29: uint16(49468), + 30: uint16(49472), + 31: uint16(49480), + 32: uint16(49481), + 33: uint16(49483), + 34: uint16(49484), + 35: uint16(49485), + 36: uint16(49492), + 37: uint16(49493), + 38: uint16(49496), + 39: uint16(49500), + 40: uint16(49508), + 41: uint16(49509), + 42: uint16(49511), + 43: uint16(49512), + 44: uint16(49513), + 45: uint16(49520), + 46: uint16(49524), + 47: uint16(49528), + 48: uint16(49541), + 49: uint16(49548), + 50: uint16(49549), + 51: uint16(49550), + 52: uint16(49552), + 53: uint16(49556), + 54: uint16(49558), + 55: uint16(49564), + 56: uint16(49565), + 57: uint16(49567), + 58: uint16(49569), + 59: uint16(49573), + 60: uint16(49576), + 61: uint16(49577), + 62: uint16(49580), + 63: uint16(49584), + 64: uint16(49597), + 65: uint16(49604), + 66: uint16(49608), + 67: uint16(49612), + 68: uint16(49620), + 69: uint16(49623), + 70: uint16(49624), + 71: uint16(49632), + 72: uint16(49636), + 73: uint16(49640), + 74: uint16(49648), + 75: uint16(49649), + 76: uint16(49651), + 77: uint16(49660), + 78: uint16(49661), + 79: uint16(49664), + 80: uint16(49668), + 81: uint16(49676), + 82: uint16(49677), + 83: uint16(49679), + 84: uint16(49681), + 85: uint16(49688), + 86: uint16(49689), + 87: uint16(49692), + 88: uint16(49695), + 89: uint16(49696), + 90: uint16(49704), + 91: uint16(49705), + 92: uint16(49707), + 93: uint16(49709), + }, + 28: { + 0: uint16(49711), + 1: uint16(49713), + 2: uint16(49714), + 3: uint16(49716), + 4: uint16(49736), + 5: uint16(49744), + 6: uint16(49745), + 7: uint16(49748), + 8: uint16(49752), + 9: uint16(49760), + 10: uint16(49765), + 11: uint16(49772), + 12: uint16(49773), + 13: uint16(49776), + 14: uint16(49780), + 15: uint16(49788), + 16: uint16(49789), + 17: uint16(49791), + 18: uint16(49793), + 19: uint16(49800), + 20: uint16(49801), + 21: uint16(49808), + 22: uint16(49816), + 23: uint16(49819), + 24: uint16(49821), + 25: uint16(49828), + 26: uint16(49829), + 27: uint16(49832), + 28: uint16(49836), + 29: uint16(49837), + 30: uint16(49844), + 31: uint16(49845), + 32: uint16(49847), + 33: uint16(49849), + 34: uint16(49884), + 35: uint16(49885), + 36: uint16(49888), + 37: uint16(49891), + 38: uint16(49892), + 39: uint16(49899), + 40: uint16(49900), + 41: uint16(49901), + 42: uint16(49903), + 43: uint16(49905), + 44: uint16(49910), + 45: uint16(49912), + 46: uint16(49913), + 47: uint16(49915), + 48: uint16(49916), + 49: uint16(49920), + 50: uint16(49928), + 51: uint16(49929), + 52: uint16(49932), + 53: uint16(49933), + 54: uint16(49939), + 55: uint16(49940), + 56: uint16(49941), + 57: uint16(49944), + 58: uint16(49948), + 59: uint16(49956), + 60: uint16(49957), + 61: uint16(49960), + 62: uint16(49961), + 63: uint16(49989), + 64: uint16(50024), + 65: uint16(50025), + 66: uint16(50028), + 67: uint16(50032), + 68: uint16(50034), + 69: uint16(50040), + 70: uint16(50041), + 71: uint16(50044), + 72: uint16(50045), + 73: uint16(50052), + 74: uint16(50056), + 75: uint16(50060), + 76: uint16(50112), + 77: uint16(50136), + 78: uint16(50137), + 79: uint16(50140), + 80: uint16(50143), + 81: uint16(50144), + 82: uint16(50146), + 83: uint16(50152), + 84: uint16(50153), + 85: uint16(50157), + 86: uint16(50164), + 87: uint16(50165), + 88: uint16(50168), + 89: uint16(50184), + 90: uint16(50192), + 91: uint16(50212), + 92: uint16(50220), + 93: uint16(50224), + }, + 29: { + 0: uint16(50228), + 1: uint16(50236), + 2: uint16(50237), + 3: uint16(50248), + 4: uint16(50276), + 5: uint16(50277), + 6: uint16(50280), + 7: uint16(50284), + 8: uint16(50292), + 9: uint16(50293), + 10: uint16(50297), + 11: uint16(50304), + 12: uint16(50324), + 13: uint16(50332), + 14: uint16(50360), + 15: uint16(50364), + 16: uint16(50409), + 17: uint16(50416), + 18: uint16(50417), + 19: uint16(50420), + 20: uint16(50424), + 21: uint16(50426), + 22: uint16(50431), + 23: uint16(50432), + 24: uint16(50433), + 25: uint16(50444), + 26: uint16(50448), + 27: uint16(50452), + 28: uint16(50460), + 29: uint16(50472), + 30: uint16(50473), + 31: uint16(50476), + 32: uint16(50480), + 33: uint16(50488), + 34: uint16(50489), + 35: uint16(50491), + 36: uint16(50493), + 37: uint16(50500), + 38: uint16(50501), + 39: uint16(50504), + 40: uint16(50505), + 41: uint16(50506), + 42: uint16(50508), + 43: uint16(50509), + 44: uint16(50510), + 45: uint16(50515), + 46: uint16(50516), + 47: uint16(50517), + 48: uint16(50519), + 49: uint16(50520), + 50: uint16(50521), + 51: uint16(50525), + 52: uint16(50526), + 53: uint16(50528), + 54: uint16(50529), + 55: uint16(50532), + 56: uint16(50536), + 57: uint16(50544), + 58: uint16(50545), + 59: uint16(50547), + 60: uint16(50548), + 61: uint16(50549), + 62: uint16(50556), + 63: uint16(50557), + 64: uint16(50560), + 65: uint16(50564), + 66: uint16(50567), + 67: uint16(50572), + 68: uint16(50573), + 69: uint16(50575), + 70: uint16(50577), + 71: uint16(50581), + 72: uint16(50583), + 73: uint16(50584), + 74: uint16(50588), + 75: uint16(50592), + 76: uint16(50601), + 77: uint16(50612), + 78: uint16(50613), + 79: uint16(50616), + 80: uint16(50617), + 81: uint16(50619), + 82: uint16(50620), + 83: uint16(50621), + 84: uint16(50622), + 85: uint16(50628), + 86: uint16(50629), + 87: uint16(50630), + 88: uint16(50631), + 89: uint16(50632), + 90: uint16(50633), + 91: uint16(50634), + 92: uint16(50636), + 93: uint16(50638), + }, + 30: { + 0: uint16(50640), + 1: uint16(50641), + 2: uint16(50644), + 3: uint16(50648), + 4: uint16(50656), + 5: uint16(50657), + 6: uint16(50659), + 7: uint16(50661), + 8: uint16(50668), + 9: uint16(50669), + 10: uint16(50670), + 11: uint16(50672), + 12: uint16(50676), + 13: uint16(50678), + 14: uint16(50679), + 15: uint16(50684), + 16: uint16(50685), + 17: uint16(50686), + 18: uint16(50687), + 19: uint16(50688), + 20: uint16(50689), + 21: uint16(50693), + 22: uint16(50694), + 23: uint16(50695), + 24: uint16(50696), + 25: uint16(50700), + 26: uint16(50704), + 27: uint16(50712), + 28: uint16(50713), + 29: uint16(50715), + 30: uint16(50716), + 31: uint16(50724), + 32: uint16(50725), + 33: uint16(50728), + 34: uint16(50732), + 35: uint16(50733), + 36: uint16(50734), + 37: uint16(50736), + 38: uint16(50739), + 39: uint16(50740), + 40: uint16(50741), + 41: uint16(50743), + 42: uint16(50745), + 43: uint16(50747), + 44: uint16(50752), + 45: uint16(50753), + 46: uint16(50756), + 47: uint16(50760), + 48: uint16(50768), + 49: uint16(50769), + 50: uint16(50771), + 51: uint16(50772), + 52: uint16(50773), + 53: uint16(50780), + 54: uint16(50781), + 55: uint16(50784), + 56: uint16(50796), + 57: uint16(50799), + 58: uint16(50801), + 59: uint16(50808), + 60: uint16(50809), + 61: uint16(50812), + 62: uint16(50816), + 63: uint16(50824), + 64: uint16(50825), + 65: uint16(50827), + 66: uint16(50829), + 67: uint16(50836), + 68: uint16(50837), + 69: uint16(50840), + 70: uint16(50844), + 71: uint16(50852), + 72: uint16(50853), + 73: uint16(50855), + 74: uint16(50857), + 75: uint16(50864), + 76: uint16(50865), + 77: uint16(50868), + 78: uint16(50872), + 79: uint16(50873), + 80: uint16(50874), + 81: uint16(50880), + 82: uint16(50881), + 83: uint16(50883), + 84: uint16(50885), + 85: uint16(50892), + 86: uint16(50893), + 87: uint16(50896), + 88: uint16(50900), + 89: uint16(50908), + 90: uint16(50909), + 91: uint16(50912), + 92: uint16(50913), + 93: uint16(50920), + }, + 31: { + 0: uint16(50921), + 1: uint16(50924), + 2: uint16(50928), + 3: uint16(50936), + 4: uint16(50937), + 5: uint16(50941), + 6: uint16(50948), + 7: uint16(50949), + 8: uint16(50952), + 9: uint16(50956), + 10: uint16(50964), + 11: uint16(50965), + 12: uint16(50967), + 13: uint16(50969), + 14: uint16(50976), + 15: uint16(50977), + 16: uint16(50980), + 17: uint16(50984), + 18: uint16(50992), + 19: uint16(50993), + 20: uint16(50995), + 21: uint16(50997), + 22: uint16(50999), + 23: uint16(51004), + 24: uint16(51005), + 25: uint16(51008), + 26: uint16(51012), + 27: uint16(51018), + 28: uint16(51020), + 29: uint16(51021), + 30: uint16(51023), + 31: uint16(51025), + 32: uint16(51026), + 33: uint16(51027), + 34: uint16(51028), + 35: uint16(51029), + 36: uint16(51030), + 37: uint16(51031), + 38: uint16(51032), + 39: uint16(51036), + 40: uint16(51040), + 41: uint16(51048), + 42: uint16(51051), + 43: uint16(51060), + 44: uint16(51061), + 45: uint16(51064), + 46: uint16(51068), + 47: uint16(51069), + 48: uint16(51070), + 49: uint16(51075), + 50: uint16(51076), + 51: uint16(51077), + 52: uint16(51079), + 53: uint16(51080), + 54: uint16(51081), + 55: uint16(51082), + 56: uint16(51086), + 57: uint16(51088), + 58: uint16(51089), + 59: uint16(51092), + 60: uint16(51094), + 61: uint16(51095), + 62: uint16(51096), + 63: uint16(51098), + 64: uint16(51104), + 65: uint16(51105), + 66: uint16(51107), + 67: uint16(51108), + 68: uint16(51109), + 69: uint16(51110), + 70: uint16(51116), + 71: uint16(51117), + 72: uint16(51120), + 73: uint16(51124), + 74: uint16(51132), + 75: uint16(51133), + 76: uint16(51135), + 77: uint16(51136), + 78: uint16(51137), + 79: uint16(51144), + 80: uint16(51145), + 81: uint16(51148), + 82: uint16(51150), + 83: uint16(51152), + 84: uint16(51160), + 85: uint16(51165), + 86: uint16(51172), + 87: uint16(51176), + 88: uint16(51180), + 89: uint16(51200), + 90: uint16(51201), + 91: uint16(51204), + 92: uint16(51208), + 93: uint16(51210), + }, + 32: { + 0: uint16(51216), + 1: uint16(51217), + 2: uint16(51219), + 3: uint16(51221), + 4: uint16(51222), + 5: uint16(51228), + 6: uint16(51229), + 7: uint16(51232), + 8: uint16(51236), + 9: uint16(51244), + 10: uint16(51245), + 11: uint16(51247), + 12: uint16(51249), + 13: uint16(51256), + 14: uint16(51260), + 15: uint16(51264), + 16: uint16(51272), + 17: uint16(51273), + 18: uint16(51276), + 19: uint16(51277), + 20: uint16(51284), + 21: uint16(51312), + 22: uint16(51313), + 23: uint16(51316), + 24: uint16(51320), + 25: uint16(51322), + 26: uint16(51328), + 27: uint16(51329), + 28: uint16(51331), + 29: uint16(51333), + 30: uint16(51334), + 31: uint16(51335), + 32: uint16(51339), + 33: uint16(51340), + 34: uint16(51341), + 35: uint16(51348), + 36: uint16(51357), + 37: uint16(51359), + 38: uint16(51361), + 39: uint16(51368), + 40: uint16(51388), + 41: uint16(51389), + 42: uint16(51396), + 43: uint16(51400), + 44: uint16(51404), + 45: uint16(51412), + 46: uint16(51413), + 47: uint16(51415), + 48: uint16(51417), + 49: uint16(51424), + 50: uint16(51425), + 51: uint16(51428), + 52: uint16(51445), + 53: uint16(51452), + 54: uint16(51453), + 55: uint16(51456), + 56: uint16(51460), + 57: uint16(51461), + 58: uint16(51462), + 59: uint16(51468), + 60: uint16(51469), + 61: uint16(51471), + 62: uint16(51473), + 63: uint16(51480), + 64: uint16(51500), + 65: uint16(51508), + 66: uint16(51536), + 67: uint16(51537), + 68: uint16(51540), + 69: uint16(51544), + 70: uint16(51552), + 71: uint16(51553), + 72: uint16(51555), + 73: uint16(51564), + 74: uint16(51568), + 75: uint16(51572), + 76: uint16(51580), + 77: uint16(51592), + 78: uint16(51593), + 79: uint16(51596), + 80: uint16(51600), + 81: uint16(51608), + 82: uint16(51609), + 83: uint16(51611), + 84: uint16(51613), + 85: uint16(51648), + 86: uint16(51649), + 87: uint16(51652), + 88: uint16(51655), + 89: uint16(51656), + 90: uint16(51658), + 91: uint16(51664), + 92: uint16(51665), + 93: uint16(51667), + }, + 33: { + 0: uint16(51669), + 1: uint16(51670), + 2: uint16(51673), + 3: uint16(51674), + 4: uint16(51676), + 5: uint16(51677), + 6: uint16(51680), + 7: uint16(51682), + 8: uint16(51684), + 9: uint16(51687), + 10: uint16(51692), + 11: uint16(51693), + 12: uint16(51695), + 13: uint16(51696), + 14: uint16(51697), + 15: uint16(51704), + 16: uint16(51705), + 17: uint16(51708), + 18: uint16(51712), + 19: uint16(51720), + 20: uint16(51721), + 21: uint16(51723), + 22: uint16(51724), + 23: uint16(51725), + 24: uint16(51732), + 25: uint16(51736), + 26: uint16(51753), + 27: uint16(51788), + 28: uint16(51789), + 29: uint16(51792), + 30: uint16(51796), + 31: uint16(51804), + 32: uint16(51805), + 33: uint16(51807), + 34: uint16(51808), + 35: uint16(51809), + 36: uint16(51816), + 37: uint16(51837), + 38: uint16(51844), + 39: uint16(51864), + 40: uint16(51900), + 41: uint16(51901), + 42: uint16(51904), + 43: uint16(51908), + 44: uint16(51916), + 45: uint16(51917), + 46: uint16(51919), + 47: uint16(51921), + 48: uint16(51923), + 49: uint16(51928), + 50: uint16(51929), + 51: uint16(51936), + 52: uint16(51948), + 53: uint16(51956), + 54: uint16(51976), + 55: uint16(51984), + 56: uint16(51988), + 57: uint16(51992), + 58: uint16(52000), + 59: uint16(52001), + 60: uint16(52033), + 61: uint16(52040), + 62: uint16(52041), + 63: uint16(52044), + 64: uint16(52048), + 65: uint16(52056), + 66: uint16(52057), + 67: uint16(52061), + 68: uint16(52068), + 69: uint16(52088), + 70: uint16(52089), + 71: uint16(52124), + 72: uint16(52152), + 73: uint16(52180), + 74: uint16(52196), + 75: uint16(52199), + 76: uint16(52201), + 77: uint16(52236), + 78: uint16(52237), + 79: uint16(52240), + 80: uint16(52244), + 81: uint16(52252), + 82: uint16(52253), + 83: uint16(52257), + 84: uint16(52258), + 85: uint16(52263), + 86: uint16(52264), + 87: uint16(52265), + 88: uint16(52268), + 89: uint16(52270), + 90: uint16(52272), + 91: uint16(52280), + 92: uint16(52281), + 93: uint16(52283), + }, + 34: { + 0: uint16(52284), + 1: uint16(52285), + 2: uint16(52286), + 3: uint16(52292), + 4: uint16(52293), + 5: uint16(52296), + 6: uint16(52300), + 7: uint16(52308), + 8: uint16(52309), + 9: uint16(52311), + 10: uint16(52312), + 11: uint16(52313), + 12: uint16(52320), + 13: uint16(52324), + 14: uint16(52326), + 15: uint16(52328), + 16: uint16(52336), + 17: uint16(52341), + 18: uint16(52376), + 19: uint16(52377), + 20: uint16(52380), + 21: uint16(52384), + 22: uint16(52392), + 23: uint16(52393), + 24: uint16(52395), + 25: uint16(52396), + 26: uint16(52397), + 27: uint16(52404), + 28: uint16(52405), + 29: uint16(52408), + 30: uint16(52412), + 31: uint16(52420), + 32: uint16(52421), + 33: uint16(52423), + 34: uint16(52425), + 35: uint16(52432), + 36: uint16(52436), + 37: uint16(52452), + 38: uint16(52460), + 39: uint16(52464), + 40: uint16(52481), + 41: uint16(52488), + 42: uint16(52489), + 43: uint16(52492), + 44: uint16(52496), + 45: uint16(52504), + 46: uint16(52505), + 47: uint16(52507), + 48: uint16(52509), + 49: uint16(52516), + 50: uint16(52520), + 51: uint16(52524), + 52: uint16(52537), + 53: uint16(52572), + 54: uint16(52576), + 55: uint16(52580), + 56: uint16(52588), + 57: uint16(52589), + 58: uint16(52591), + 59: uint16(52593), + 60: uint16(52600), + 61: uint16(52616), + 62: uint16(52628), + 63: uint16(52629), + 64: uint16(52632), + 65: uint16(52636), + 66: uint16(52644), + 67: uint16(52645), + 68: uint16(52647), + 69: uint16(52649), + 70: uint16(52656), + 71: uint16(52676), + 72: uint16(52684), + 73: uint16(52688), + 74: uint16(52712), + 75: uint16(52716), + 76: uint16(52720), + 77: uint16(52728), + 78: uint16(52729), + 79: uint16(52731), + 80: uint16(52733), + 81: uint16(52740), + 82: uint16(52744), + 83: uint16(52748), + 84: uint16(52756), + 85: uint16(52761), + 86: uint16(52768), + 87: uint16(52769), + 88: uint16(52772), + 89: uint16(52776), + 90: uint16(52784), + 91: uint16(52785), + 92: uint16(52787), + 93: uint16(52789), + }, + 35: { + 0: uint16(52824), + 1: uint16(52825), + 2: uint16(52828), + 3: uint16(52831), + 4: uint16(52832), + 5: uint16(52833), + 6: uint16(52840), + 7: uint16(52841), + 8: uint16(52843), + 9: uint16(52845), + 10: uint16(52852), + 11: uint16(52853), + 12: uint16(52856), + 13: uint16(52860), + 14: uint16(52868), + 15: uint16(52869), + 16: uint16(52871), + 17: uint16(52873), + 18: uint16(52880), + 19: uint16(52881), + 20: uint16(52884), + 21: uint16(52888), + 22: uint16(52896), + 23: uint16(52897), + 24: uint16(52899), + 25: uint16(52900), + 26: uint16(52901), + 27: uint16(52908), + 28: uint16(52909), + 29: uint16(52929), + 30: uint16(52964), + 31: uint16(52965), + 32: uint16(52968), + 33: uint16(52971), + 34: uint16(52972), + 35: uint16(52980), + 36: uint16(52981), + 37: uint16(52983), + 38: uint16(52984), + 39: uint16(52985), + 40: uint16(52992), + 41: uint16(52993), + 42: uint16(52996), + 43: uint16(53000), + 44: uint16(53008), + 45: uint16(53009), + 46: uint16(53011), + 47: uint16(53013), + 48: uint16(53020), + 49: uint16(53024), + 50: uint16(53028), + 51: uint16(53036), + 52: uint16(53037), + 53: uint16(53039), + 54: uint16(53040), + 55: uint16(53041), + 56: uint16(53048), + 57: uint16(53076), + 58: uint16(53077), + 59: uint16(53080), + 60: uint16(53084), + 61: uint16(53092), + 62: uint16(53093), + 63: uint16(53095), + 64: uint16(53097), + 65: uint16(53104), + 66: uint16(53105), + 67: uint16(53108), + 68: uint16(53112), + 69: uint16(53120), + 70: uint16(53125), + 71: uint16(53132), + 72: uint16(53153), + 73: uint16(53160), + 74: uint16(53168), + 75: uint16(53188), + 76: uint16(53216), + 77: uint16(53217), + 78: uint16(53220), + 79: uint16(53224), + 80: uint16(53232), + 81: uint16(53233), + 82: uint16(53235), + 83: uint16(53237), + 84: uint16(53244), + 85: uint16(53248), + 86: uint16(53252), + 87: uint16(53265), + 88: uint16(53272), + 89: uint16(53293), + 90: uint16(53300), + 91: uint16(53301), + 92: uint16(53304), + 93: uint16(53308), + }, + 36: { + 0: uint16(53316), + 1: uint16(53317), + 2: uint16(53319), + 3: uint16(53321), + 4: uint16(53328), + 5: uint16(53332), + 6: uint16(53336), + 7: uint16(53344), + 8: uint16(53356), + 9: uint16(53357), + 10: uint16(53360), + 11: uint16(53364), + 12: uint16(53372), + 13: uint16(53373), + 14: uint16(53377), + 15: uint16(53412), + 16: uint16(53413), + 17: uint16(53416), + 18: uint16(53420), + 19: uint16(53428), + 20: uint16(53429), + 21: uint16(53431), + 22: uint16(53433), + 23: uint16(53440), + 24: uint16(53441), + 25: uint16(53444), + 26: uint16(53448), + 27: uint16(53449), + 28: uint16(53456), + 29: uint16(53457), + 30: uint16(53459), + 31: uint16(53460), + 32: uint16(53461), + 33: uint16(53468), + 34: uint16(53469), + 35: uint16(53472), + 36: uint16(53476), + 37: uint16(53484), + 38: uint16(53485), + 39: uint16(53487), + 40: uint16(53488), + 41: uint16(53489), + 42: uint16(53496), + 43: uint16(53517), + 44: uint16(53552), + 45: uint16(53553), + 46: uint16(53556), + 47: uint16(53560), + 48: uint16(53562), + 49: uint16(53568), + 50: uint16(53569), + 51: uint16(53571), + 52: uint16(53572), + 53: uint16(53573), + 54: uint16(53580), + 55: uint16(53581), + 56: uint16(53584), + 57: uint16(53588), + 58: uint16(53596), + 59: uint16(53597), + 60: uint16(53599), + 61: uint16(53601), + 62: uint16(53608), + 63: uint16(53612), + 64: uint16(53628), + 65: uint16(53636), + 66: uint16(53640), + 67: uint16(53664), + 68: uint16(53665), + 69: uint16(53668), + 70: uint16(53672), + 71: uint16(53680), + 72: uint16(53681), + 73: uint16(53683), + 74: uint16(53685), + 75: uint16(53690), + 76: uint16(53692), + 77: uint16(53696), + 78: uint16(53720), + 79: uint16(53748), + 80: uint16(53752), + 81: uint16(53767), + 82: uint16(53769), + 83: uint16(53776), + 84: uint16(53804), + 85: uint16(53805), + 86: uint16(53808), + 87: uint16(53812), + 88: uint16(53820), + 89: uint16(53821), + 90: uint16(53823), + 91: uint16(53825), + 92: uint16(53832), + 93: uint16(53852), + }, + 37: { + 0: uint16(53860), + 1: uint16(53888), + 2: uint16(53889), + 3: uint16(53892), + 4: uint16(53896), + 5: uint16(53904), + 6: uint16(53905), + 7: uint16(53909), + 8: uint16(53916), + 9: uint16(53920), + 10: uint16(53924), + 11: uint16(53932), + 12: uint16(53937), + 13: uint16(53944), + 14: uint16(53945), + 15: uint16(53948), + 16: uint16(53951), + 17: uint16(53952), + 18: uint16(53954), + 19: uint16(53960), + 20: uint16(53961), + 21: uint16(53963), + 22: uint16(53972), + 23: uint16(53976), + 24: uint16(53980), + 25: uint16(53988), + 26: uint16(53989), + 27: uint16(54000), + 28: uint16(54001), + 29: uint16(54004), + 30: uint16(54008), + 31: uint16(54016), + 32: uint16(54017), + 33: uint16(54019), + 34: uint16(54021), + 35: uint16(54028), + 36: uint16(54029), + 37: uint16(54030), + 38: uint16(54032), + 39: uint16(54036), + 40: uint16(54038), + 41: uint16(54044), + 42: uint16(54045), + 43: uint16(54047), + 44: uint16(54048), + 45: uint16(54049), + 46: uint16(54053), + 47: uint16(54056), + 48: uint16(54057), + 49: uint16(54060), + 50: uint16(54064), + 51: uint16(54072), + 52: uint16(54073), + 53: uint16(54075), + 54: uint16(54076), + 55: uint16(54077), + 56: uint16(54084), + 57: uint16(54085), + 58: uint16(54140), + 59: uint16(54141), + 60: uint16(54144), + 61: uint16(54148), + 62: uint16(54156), + 63: uint16(54157), + 64: uint16(54159), + 65: uint16(54160), + 66: uint16(54161), + 67: uint16(54168), + 68: uint16(54169), + 69: uint16(54172), + 70: uint16(54176), + 71: uint16(54184), + 72: uint16(54185), + 73: uint16(54187), + 74: uint16(54189), + 75: uint16(54196), + 76: uint16(54200), + 77: uint16(54204), + 78: uint16(54212), + 79: uint16(54213), + 80: uint16(54216), + 81: uint16(54217), + 82: uint16(54224), + 83: uint16(54232), + 84: uint16(54241), + 85: uint16(54243), + 86: uint16(54252), + 87: uint16(54253), + 88: uint16(54256), + 89: uint16(54260), + 90: uint16(54268), + 91: uint16(54269), + 92: uint16(54271), + 93: uint16(54273), + }, + 38: { + 0: uint16(54280), + 1: uint16(54301), + 2: uint16(54336), + 3: uint16(54340), + 4: uint16(54364), + 5: uint16(54368), + 6: uint16(54372), + 7: uint16(54381), + 8: uint16(54383), + 9: uint16(54392), + 10: uint16(54393), + 11: uint16(54396), + 12: uint16(54399), + 13: uint16(54400), + 14: uint16(54402), + 15: uint16(54408), + 16: uint16(54409), + 17: uint16(54411), + 18: uint16(54413), + 19: uint16(54420), + 20: uint16(54441), + 21: uint16(54476), + 22: uint16(54480), + 23: uint16(54484), + 24: uint16(54492), + 25: uint16(54495), + 26: uint16(54504), + 27: uint16(54508), + 28: uint16(54512), + 29: uint16(54520), + 30: uint16(54523), + 31: uint16(54525), + 32: uint16(54532), + 33: uint16(54536), + 34: uint16(54540), + 35: uint16(54548), + 36: uint16(54549), + 37: uint16(54551), + 38: uint16(54588), + 39: uint16(54589), + 40: uint16(54592), + 41: uint16(54596), + 42: uint16(54604), + 43: uint16(54605), + 44: uint16(54607), + 45: uint16(54609), + 46: uint16(54616), + 47: uint16(54617), + 48: uint16(54620), + 49: uint16(54624), + 50: uint16(54629), + 51: uint16(54632), + 52: uint16(54633), + 53: uint16(54635), + 54: uint16(54637), + 55: uint16(54644), + 56: uint16(54645), + 57: uint16(54648), + 58: uint16(54652), + 59: uint16(54660), + 60: uint16(54661), + 61: uint16(54663), + 62: uint16(54664), + 63: uint16(54665), + 64: uint16(54672), + 65: uint16(54693), + 66: uint16(54728), + 67: uint16(54729), + 68: uint16(54732), + 69: uint16(54736), + 70: uint16(54738), + 71: uint16(54744), + 72: uint16(54745), + 73: uint16(54747), + 74: uint16(54749), + 75: uint16(54756), + 76: uint16(54757), + 77: uint16(54760), + 78: uint16(54764), + 79: uint16(54772), + 80: uint16(54773), + 81: uint16(54775), + 82: uint16(54777), + 83: uint16(54784), + 84: uint16(54785), + 85: uint16(54788), + 86: uint16(54792), + 87: uint16(54800), + 88: uint16(54801), + 89: uint16(54803), + 90: uint16(54804), + 91: uint16(54805), + 92: uint16(54812), + 93: uint16(54816), + }, + 39: { + 0: uint16(54820), + 1: uint16(54829), + 2: uint16(54840), + 3: uint16(54841), + 4: uint16(54844), + 5: uint16(54848), + 6: uint16(54853), + 7: uint16(54856), + 8: uint16(54857), + 9: uint16(54859), + 10: uint16(54861), + 11: uint16(54865), + 12: uint16(54868), + 13: uint16(54869), + 14: uint16(54872), + 15: uint16(54876), + 16: uint16(54887), + 17: uint16(54889), + 18: uint16(54896), + 19: uint16(54897), + 20: uint16(54900), + 21: uint16(54915), + 22: uint16(54917), + 23: uint16(54924), + 24: uint16(54925), + 25: uint16(54928), + 26: uint16(54932), + 27: uint16(54941), + 28: uint16(54943), + 29: uint16(54945), + 30: uint16(54952), + 31: uint16(54956), + 32: uint16(54960), + 33: uint16(54969), + 34: uint16(54971), + 35: uint16(54980), + 36: uint16(54981), + 37: uint16(54984), + 38: uint16(54988), + 39: uint16(54993), + 40: uint16(54996), + 41: uint16(54999), + 42: uint16(55001), + 43: uint16(55008), + 44: uint16(55012), + 45: uint16(55016), + 46: uint16(55024), + 47: uint16(55029), + 48: uint16(55036), + 49: uint16(55037), + 50: uint16(55040), + 51: uint16(55044), + 52: uint16(55057), + 53: uint16(55064), + 54: uint16(55065), + 55: uint16(55068), + 56: uint16(55072), + 57: uint16(55080), + 58: uint16(55081), + 59: uint16(55083), + 60: uint16(55085), + 61: uint16(55092), + 62: uint16(55093), + 63: uint16(55096), + 64: uint16(55100), + 65: uint16(55108), + 66: uint16(55111), + 67: uint16(55113), + 68: uint16(55120), + 69: uint16(55121), + 70: uint16(55124), + 71: uint16(55126), + 72: uint16(55127), + 73: uint16(55128), + 74: uint16(55129), + 75: uint16(55136), + 76: uint16(55137), + 77: uint16(55139), + 78: uint16(55141), + 79: uint16(55145), + 80: uint16(55148), + 81: uint16(55152), + 82: uint16(55156), + 83: uint16(55164), + 84: uint16(55165), + 85: uint16(55169), + 86: uint16(55176), + 87: uint16(55177), + 88: uint16(55180), + 89: uint16(55184), + 90: uint16(55192), + 91: uint16(55193), + 92: uint16(55195), + 93: uint16(55197), + }, + 40: {}, + 41: { + 0: uint16(20285), + 1: uint16(20339), + 2: uint16(20551), + 3: uint16(20729), + 4: uint16(21152), + 5: uint16(21487), + 6: uint16(21621), + 7: uint16(21733), + 8: uint16(22025), + 9: uint16(23233), + 10: uint16(23478), + 11: uint16(26247), + 12: uint16(26550), + 13: uint16(26551), + 14: uint16(26607), + 15: uint16(27468), + 16: uint16(29634), + 17: uint16(30146), + 18: uint16(31292), + 19: uint16(33499), + 20: uint16(33540), + 21: uint16(34903), + 22: uint16(34952), + 23: uint16(35382), + 24: uint16(36040), + 25: uint16(36303), + 26: uint16(36603), + 27: uint16(36838), + 28: uint16(39381), + 29: uint16(21051), + 30: uint16(21364), + 31: uint16(21508), + 32: uint16(24682), + 33: uint16(24932), + 34: uint16(27580), + 35: uint16(29647), + 36: uint16(33050), + 37: uint16(35258), + 38: uint16(35282), + 39: uint16(38307), + 40: uint16(20355), + 41: uint16(21002), + 42: uint16(22718), + 43: uint16(22904), + 44: uint16(23014), + 45: uint16(24178), + 46: uint16(24185), + 47: uint16(25031), + 48: uint16(25536), + 49: uint16(26438), + 50: uint16(26604), + 51: uint16(26751), + 52: uint16(28567), + 53: uint16(30286), + 54: uint16(30475), + 55: uint16(30965), + 56: uint16(31240), + 57: uint16(31487), + 58: uint16(31777), + 59: uint16(32925), + 60: uint16(33390), + 61: uint16(33393), + 62: uint16(35563), + 63: uint16(38291), + 64: uint16(20075), + 65: uint16(21917), + 66: uint16(26359), + 67: uint16(28212), + 68: uint16(30883), + 69: uint16(31469), + 70: uint16(33883), + 71: uint16(35088), + 72: uint16(34638), + 73: uint16(38824), + 74: uint16(21208), + 75: uint16(22350), + 76: uint16(22570), + 77: uint16(23884), + 78: uint16(24863), + 79: uint16(25022), + 80: uint16(25121), + 81: uint16(25954), + 82: uint16(26577), + 83: uint16(27204), + 84: uint16(28187), + 85: uint16(29976), + 86: uint16(30131), + 87: uint16(30435), + 88: uint16(30640), + 89: uint16(32058), + 90: uint16(37039), + 91: uint16(37969), + 92: uint16(37970), + 93: uint16(40853), + }, + 42: { + 0: uint16(21283), + 1: uint16(23724), + 2: uint16(30002), + 3: uint16(32987), + 4: uint16(37440), + 5: uint16(38296), + 6: uint16(21083), + 7: uint16(22536), + 8: uint16(23004), + 9: uint16(23713), + 10: uint16(23831), + 11: uint16(24247), + 12: uint16(24378), + 13: uint16(24394), + 14: uint16(24951), + 15: uint16(27743), + 16: uint16(30074), + 17: uint16(30086), + 18: uint16(31968), + 19: uint16(32115), + 20: uint16(32177), + 21: uint16(32652), + 22: uint16(33108), + 23: uint16(33313), + 24: uint16(34193), + 25: uint16(35137), + 26: uint16(35611), + 27: uint16(37628), + 28: uint16(38477), + 29: uint16(40007), + 30: uint16(20171), + 31: uint16(20215), + 32: uint16(20491), + 33: uint16(20977), + 34: uint16(22607), + 35: uint16(24887), + 36: uint16(24894), + 37: uint16(24936), + 38: uint16(25913), + 39: uint16(27114), + 40: uint16(28433), + 41: uint16(30117), + 42: uint16(30342), + 43: uint16(30422), + 44: uint16(31623), + 45: uint16(33445), + 46: uint16(33995), + 47: uint16(63744), + 48: uint16(37799), + 49: uint16(38283), + 50: uint16(21888), + 51: uint16(23458), + 52: uint16(22353), + 53: uint16(63745), + 54: uint16(31923), + 55: uint16(32697), + 56: uint16(37301), + 57: uint16(20520), + 58: uint16(21435), + 59: uint16(23621), + 60: uint16(24040), + 61: uint16(25298), + 62: uint16(25454), + 63: uint16(25818), + 64: uint16(25831), + 65: uint16(28192), + 66: uint16(28844), + 67: uint16(31067), + 68: uint16(36317), + 69: uint16(36382), + 70: uint16(63746), + 71: uint16(36989), + 72: uint16(37445), + 73: uint16(37624), + 74: uint16(20094), + 75: uint16(20214), + 76: uint16(20581), + 77: uint16(24062), + 78: uint16(24314), + 79: uint16(24838), + 80: uint16(26967), + 81: uint16(33137), + 82: uint16(34388), + 83: uint16(36423), + 84: uint16(37749), + 85: uint16(39467), + 86: uint16(20062), + 87: uint16(20625), + 88: uint16(26480), + 89: uint16(26688), + 90: uint16(20745), + 91: uint16(21133), + 92: uint16(21138), + 93: uint16(27298), + }, + 43: { + 0: uint16(30652), + 1: uint16(37392), + 2: uint16(40660), + 3: uint16(21163), + 4: uint16(24623), + 5: uint16(36850), + 6: uint16(20552), + 7: uint16(25001), + 8: uint16(25581), + 9: uint16(25802), + 10: uint16(26684), + 11: uint16(27268), + 12: uint16(28608), + 13: uint16(33160), + 14: uint16(35233), + 15: uint16(38548), + 16: uint16(22533), + 17: uint16(29309), + 18: uint16(29356), + 19: uint16(29956), + 20: uint16(32121), + 21: uint16(32365), + 22: uint16(32937), + 23: uint16(35211), + 24: uint16(35700), + 25: uint16(36963), + 26: uint16(40273), + 27: uint16(25225), + 28: uint16(27770), + 29: uint16(28500), + 30: uint16(32080), + 31: uint16(32570), + 32: uint16(35363), + 33: uint16(20860), + 34: uint16(24906), + 35: uint16(31645), + 36: uint16(35609), + 37: uint16(37463), + 38: uint16(37772), + 39: uint16(20140), + 40: uint16(20435), + 41: uint16(20510), + 42: uint16(20670), + 43: uint16(20742), + 44: uint16(21185), + 45: uint16(21197), + 46: uint16(21375), + 47: uint16(22384), + 48: uint16(22659), + 49: uint16(24218), + 50: uint16(24465), + 51: uint16(24950), + 52: uint16(25004), + 53: uint16(25806), + 54: uint16(25964), + 55: uint16(26223), + 56: uint16(26299), + 57: uint16(26356), + 58: uint16(26775), + 59: uint16(28039), + 60: uint16(28805), + 61: uint16(28913), + 62: uint16(29855), + 63: uint16(29861), + 64: uint16(29898), + 65: uint16(30169), + 66: uint16(30828), + 67: uint16(30956), + 68: uint16(31455), + 69: uint16(31478), + 70: uint16(32069), + 71: uint16(32147), + 72: uint16(32789), + 73: uint16(32831), + 74: uint16(33051), + 75: uint16(33686), + 76: uint16(35686), + 77: uint16(36629), + 78: uint16(36885), + 79: uint16(37857), + 80: uint16(38915), + 81: uint16(38968), + 82: uint16(39514), + 83: uint16(39912), + 84: uint16(20418), + 85: uint16(21843), + 86: uint16(22586), + 87: uint16(22865), + 88: uint16(23395), + 89: uint16(23622), + 90: uint16(24760), + 91: uint16(25106), + 92: uint16(26690), + 93: uint16(26800), + }, + 44: { + 0: uint16(26856), + 1: uint16(28330), + 2: uint16(30028), + 3: uint16(30328), + 4: uint16(30926), + 5: uint16(31293), + 6: uint16(31995), + 7: uint16(32363), + 8: uint16(32380), + 9: uint16(35336), + 10: uint16(35489), + 11: uint16(35903), + 12: uint16(38542), + 13: uint16(40388), + 14: uint16(21476), + 15: uint16(21481), + 16: uint16(21578), + 17: uint16(21617), + 18: uint16(22266), + 19: uint16(22993), + 20: uint16(23396), + 21: uint16(23611), + 22: uint16(24235), + 23: uint16(25335), + 24: uint16(25911), + 25: uint16(25925), + 26: uint16(25970), + 27: uint16(26272), + 28: uint16(26543), + 29: uint16(27073), + 30: uint16(27837), + 31: uint16(30204), + 32: uint16(30352), + 33: uint16(30590), + 34: uint16(31295), + 35: uint16(32660), + 36: uint16(32771), + 37: uint16(32929), + 38: uint16(33167), + 39: uint16(33510), + 40: uint16(33533), + 41: uint16(33776), + 42: uint16(34241), + 43: uint16(34865), + 44: uint16(34996), + 45: uint16(35493), + 46: uint16(63747), + 47: uint16(36764), + 48: uint16(37678), + 49: uint16(38599), + 50: uint16(39015), + 51: uint16(39640), + 52: uint16(40723), + 53: uint16(21741), + 54: uint16(26011), + 55: uint16(26354), + 56: uint16(26767), + 57: uint16(31296), + 58: uint16(35895), + 59: uint16(40288), + 60: uint16(22256), + 61: uint16(22372), + 62: uint16(23825), + 63: uint16(26118), + 64: uint16(26801), + 65: uint16(26829), + 66: uint16(28414), + 67: uint16(29736), + 68: uint16(34974), + 69: uint16(39908), + 70: uint16(27752), + 71: uint16(63748), + 72: uint16(39592), + 73: uint16(20379), + 74: uint16(20844), + 75: uint16(20849), + 76: uint16(21151), + 77: uint16(23380), + 78: uint16(24037), + 79: uint16(24656), + 80: uint16(24685), + 81: uint16(25329), + 82: uint16(25511), + 83: uint16(25915), + 84: uint16(29657), + 85: uint16(31354), + 86: uint16(34467), + 87: uint16(36002), + 88: uint16(38799), + 89: uint16(20018), + 90: uint16(23521), + 91: uint16(25096), + 92: uint16(26524), + 93: uint16(29916), + }, + 45: { + 0: uint16(31185), + 1: uint16(33747), + 2: uint16(35463), + 3: uint16(35506), + 4: uint16(36328), + 5: uint16(36942), + 6: uint16(37707), + 7: uint16(38982), + 8: uint16(24275), + 9: uint16(27112), + 10: uint16(34303), + 11: uint16(37101), + 12: uint16(63749), + 13: uint16(20896), + 14: uint16(23448), + 15: uint16(23532), + 16: uint16(24931), + 17: uint16(26874), + 18: uint16(27454), + 19: uint16(28748), + 20: uint16(29743), + 21: uint16(29912), + 22: uint16(31649), + 23: uint16(32592), + 24: uint16(33733), + 25: uint16(35264), + 26: uint16(36011), + 27: uint16(38364), + 28: uint16(39208), + 29: uint16(21038), + 30: uint16(24669), + 31: uint16(25324), + 32: uint16(36866), + 33: uint16(20362), + 34: uint16(20809), + 35: uint16(21281), + 36: uint16(22745), + 37: uint16(24291), + 38: uint16(26336), + 39: uint16(27960), + 40: uint16(28826), + 41: uint16(29378), + 42: uint16(29654), + 43: uint16(31568), + 44: uint16(33009), + 45: uint16(37979), + 46: uint16(21350), + 47: uint16(25499), + 48: uint16(32619), + 49: uint16(20054), + 50: uint16(20608), + 51: uint16(22602), + 52: uint16(22750), + 53: uint16(24618), + 54: uint16(24871), + 55: uint16(25296), + 56: uint16(27088), + 57: uint16(39745), + 58: uint16(23439), + 59: uint16(32024), + 60: uint16(32945), + 61: uint16(36703), + 62: uint16(20132), + 63: uint16(20689), + 64: uint16(21676), + 65: uint16(21932), + 66: uint16(23308), + 67: uint16(23968), + 68: uint16(24039), + 69: uint16(25898), + 70: uint16(25934), + 71: uint16(26657), + 72: uint16(27211), + 73: uint16(29409), + 74: uint16(30350), + 75: uint16(30703), + 76: uint16(32094), + 77: uint16(32761), + 78: uint16(33184), + 79: uint16(34126), + 80: uint16(34527), + 81: uint16(36611), + 82: uint16(36686), + 83: uint16(37066), + 84: uint16(39171), + 85: uint16(39509), + 86: uint16(39851), + 87: uint16(19992), + 88: uint16(20037), + 89: uint16(20061), + 90: uint16(20167), + 91: uint16(20465), + 92: uint16(20855), + 93: uint16(21246), + }, + 46: { + 0: uint16(21312), + 1: uint16(21475), + 2: uint16(21477), + 3: uint16(21646), + 4: uint16(22036), + 5: uint16(22389), + 6: uint16(22434), + 7: uint16(23495), + 8: uint16(23943), + 9: uint16(24272), + 10: uint16(25084), + 11: uint16(25304), + 12: uint16(25937), + 13: uint16(26552), + 14: uint16(26601), + 15: uint16(27083), + 16: uint16(27472), + 17: uint16(27590), + 18: uint16(27628), + 19: uint16(27714), + 20: uint16(28317), + 21: uint16(28792), + 22: uint16(29399), + 23: uint16(29590), + 24: uint16(29699), + 25: uint16(30655), + 26: uint16(30697), + 27: uint16(31350), + 28: uint16(32127), + 29: uint16(32777), + 30: uint16(33276), + 31: uint16(33285), + 32: uint16(33290), + 33: uint16(33503), + 34: uint16(34914), + 35: uint16(35635), + 36: uint16(36092), + 37: uint16(36544), + 38: uint16(36881), + 39: uint16(37041), + 40: uint16(37476), + 41: uint16(37558), + 42: uint16(39378), + 43: uint16(39493), + 44: uint16(40169), + 45: uint16(40407), + 46: uint16(40860), + 47: uint16(22283), + 48: uint16(23616), + 49: uint16(33738), + 50: uint16(38816), + 51: uint16(38827), + 52: uint16(40628), + 53: uint16(21531), + 54: uint16(31384), + 55: uint16(32676), + 56: uint16(35033), + 57: uint16(36557), + 58: uint16(37089), + 59: uint16(22528), + 60: uint16(23624), + 61: uint16(25496), + 62: uint16(31391), + 63: uint16(23470), + 64: uint16(24339), + 65: uint16(31353), + 66: uint16(31406), + 67: uint16(33422), + 68: uint16(36524), + 69: uint16(20518), + 70: uint16(21048), + 71: uint16(21240), + 72: uint16(21367), + 73: uint16(22280), + 74: uint16(25331), + 75: uint16(25458), + 76: uint16(27402), + 77: uint16(28099), + 78: uint16(30519), + 79: uint16(21413), + 80: uint16(29527), + 81: uint16(34152), + 82: uint16(36470), + 83: uint16(38357), + 84: uint16(26426), + 85: uint16(27331), + 86: uint16(28528), + 87: uint16(35437), + 88: uint16(36556), + 89: uint16(39243), + 90: uint16(63750), + 91: uint16(26231), + 92: uint16(27512), + 93: uint16(36020), + }, + 47: { + 0: uint16(39740), + 1: uint16(63751), + 2: uint16(21483), + 3: uint16(22317), + 4: uint16(22862), + 5: uint16(25542), + 6: uint16(27131), + 7: uint16(29674), + 8: uint16(30789), + 9: uint16(31418), + 10: uint16(31429), + 11: uint16(31998), + 12: uint16(33909), + 13: uint16(35215), + 14: uint16(36211), + 15: uint16(36917), + 16: uint16(38312), + 17: uint16(21243), + 18: uint16(22343), + 19: uint16(30023), + 20: uint16(31584), + 21: uint16(33740), + 22: uint16(37406), + 23: uint16(63752), + 24: uint16(27224), + 25: uint16(20811), + 26: uint16(21067), + 27: uint16(21127), + 28: uint16(25119), + 29: uint16(26840), + 30: uint16(26997), + 31: uint16(38553), + 32: uint16(20677), + 33: uint16(21156), + 34: uint16(21220), + 35: uint16(25027), + 36: uint16(26020), + 37: uint16(26681), + 38: uint16(27135), + 39: uint16(29822), + 40: uint16(31563), + 41: uint16(33465), + 42: uint16(33771), + 43: uint16(35250), + 44: uint16(35641), + 45: uint16(36817), + 46: uint16(39241), + 47: uint16(63753), + 48: uint16(20170), + 49: uint16(22935), + 50: uint16(25810), + 51: uint16(26129), + 52: uint16(27278), + 53: uint16(29748), + 54: uint16(31105), + 55: uint16(31165), + 56: uint16(33449), + 57: uint16(34942), + 58: uint16(34943), + 59: uint16(35167), + 60: uint16(63754), + 61: uint16(37670), + 62: uint16(20235), + 63: uint16(21450), + 64: uint16(24613), + 65: uint16(25201), + 66: uint16(27762), + 67: uint16(32026), + 68: uint16(32102), + 69: uint16(20120), + 70: uint16(20834), + 71: uint16(30684), + 72: uint16(32943), + 73: uint16(20225), + 74: uint16(20238), + 75: uint16(20854), + 76: uint16(20864), + 77: uint16(21980), + 78: uint16(22120), + 79: uint16(22331), + 80: uint16(22522), + 81: uint16(22524), + 82: uint16(22804), + 83: uint16(22855), + 84: uint16(22931), + 85: uint16(23492), + 86: uint16(23696), + 87: uint16(23822), + 88: uint16(24049), + 89: uint16(24190), + 90: uint16(24524), + 91: uint16(25216), + 92: uint16(26071), + 93: uint16(26083), + }, + 48: { + 0: uint16(26398), + 1: uint16(26399), + 2: uint16(26462), + 3: uint16(26827), + 4: uint16(26820), + 5: uint16(27231), + 6: uint16(27450), + 7: uint16(27683), + 8: uint16(27773), + 9: uint16(27778), + 10: uint16(28103), + 11: uint16(29592), + 12: uint16(29734), + 13: uint16(29738), + 14: uint16(29826), + 15: uint16(29859), + 16: uint16(30072), + 17: uint16(30079), + 18: uint16(30849), + 19: uint16(30959), + 20: uint16(31041), + 21: uint16(31047), + 22: uint16(31048), + 23: uint16(31098), + 24: uint16(31637), + 25: uint16(32000), + 26: uint16(32186), + 27: uint16(32648), + 28: uint16(32774), + 29: uint16(32813), + 30: uint16(32908), + 31: uint16(35352), + 32: uint16(35663), + 33: uint16(35912), + 34: uint16(36215), + 35: uint16(37665), + 36: uint16(37668), + 37: uint16(39138), + 38: uint16(39249), + 39: uint16(39438), + 40: uint16(39439), + 41: uint16(39525), + 42: uint16(40594), + 43: uint16(32202), + 44: uint16(20342), + 45: uint16(21513), + 46: uint16(25326), + 47: uint16(26708), + 48: uint16(37329), + 49: uint16(21931), + 50: uint16(20794), + 51: uint16(63755), + 52: uint16(63756), + 53: uint16(23068), + 54: uint16(25062), + 55: uint16(63757), + 56: uint16(25295), + 57: uint16(25343), + 58: uint16(63758), + 59: uint16(63759), + 60: uint16(63760), + 61: uint16(63761), + 62: uint16(63762), + 63: uint16(63763), + 64: uint16(37027), + 65: uint16(63764), + 66: uint16(63765), + 67: uint16(63766), + 68: uint16(63767), + 69: uint16(63768), + 70: uint16(35582), + 71: uint16(63769), + 72: uint16(63770), + 73: uint16(63771), + 74: uint16(63772), + 75: uint16(26262), + 76: uint16(63773), + 77: uint16(29014), + 78: uint16(63774), + 79: uint16(63775), + 80: uint16(38627), + 81: uint16(63776), + 82: uint16(25423), + 83: uint16(25466), + 84: uint16(21335), + 85: uint16(63777), + 86: uint16(26511), + 87: uint16(26976), + 88: uint16(28275), + 89: uint16(63778), + 90: uint16(30007), + 91: uint16(63779), + 92: uint16(63780), + 93: uint16(63781), + }, + 49: { + 0: uint16(32013), + 1: uint16(63782), + 2: uint16(63783), + 3: uint16(34930), + 4: uint16(22218), + 5: uint16(23064), + 6: uint16(63784), + 7: uint16(63785), + 8: uint16(63786), + 9: uint16(63787), + 10: uint16(63788), + 11: uint16(20035), + 12: uint16(63789), + 13: uint16(20839), + 14: uint16(22856), + 15: uint16(26608), + 16: uint16(32784), + 17: uint16(63790), + 18: uint16(22899), + 19: uint16(24180), + 20: uint16(25754), + 21: uint16(31178), + 22: uint16(24565), + 23: uint16(24684), + 24: uint16(25288), + 25: uint16(25467), + 26: uint16(23527), + 27: uint16(23511), + 28: uint16(21162), + 29: uint16(63791), + 30: uint16(22900), + 31: uint16(24361), + 32: uint16(24594), + 33: uint16(63792), + 34: uint16(63793), + 35: uint16(63794), + 36: uint16(29785), + 37: uint16(63795), + 38: uint16(63796), + 39: uint16(63797), + 40: uint16(63798), + 41: uint16(63799), + 42: uint16(63800), + 43: uint16(39377), + 44: uint16(63801), + 45: uint16(63802), + 46: uint16(63803), + 47: uint16(63804), + 48: uint16(63805), + 49: uint16(63806), + 50: uint16(63807), + 51: uint16(63808), + 52: uint16(63809), + 53: uint16(63810), + 54: uint16(63811), + 55: uint16(28611), + 56: uint16(63812), + 57: uint16(63813), + 58: uint16(33215), + 59: uint16(36786), + 60: uint16(24817), + 61: uint16(63814), + 62: uint16(63815), + 63: uint16(33126), + 64: uint16(63816), + 65: uint16(63817), + 66: uint16(23615), + 67: uint16(63818), + 68: uint16(63819), + 69: uint16(63820), + 70: uint16(63821), + 71: uint16(63822), + 72: uint16(63823), + 73: uint16(63824), + 74: uint16(63825), + 75: uint16(23273), + 76: uint16(35365), + 77: uint16(26491), + 78: uint16(32016), + 79: uint16(63826), + 80: uint16(63827), + 81: uint16(63828), + 82: uint16(63829), + 83: uint16(63830), + 84: uint16(63831), + 85: uint16(33021), + 86: uint16(63832), + 87: uint16(63833), + 88: uint16(23612), + 89: uint16(27877), + 90: uint16(21311), + 91: uint16(28346), + 92: uint16(22810), + 93: uint16(33590), + }, + 50: { + 0: uint16(20025), + 1: uint16(20150), + 2: uint16(20294), + 3: uint16(21934), + 4: uint16(22296), + 5: uint16(22727), + 6: uint16(24406), + 7: uint16(26039), + 8: uint16(26086), + 9: uint16(27264), + 10: uint16(27573), + 11: uint16(28237), + 12: uint16(30701), + 13: uint16(31471), + 14: uint16(31774), + 15: uint16(32222), + 16: uint16(34507), + 17: uint16(34962), + 18: uint16(37170), + 19: uint16(37723), + 20: uint16(25787), + 21: uint16(28606), + 22: uint16(29562), + 23: uint16(30136), + 24: uint16(36948), + 25: uint16(21846), + 26: uint16(22349), + 27: uint16(25018), + 28: uint16(25812), + 29: uint16(26311), + 30: uint16(28129), + 31: uint16(28251), + 32: uint16(28525), + 33: uint16(28601), + 34: uint16(30192), + 35: uint16(32835), + 36: uint16(33213), + 37: uint16(34113), + 38: uint16(35203), + 39: uint16(35527), + 40: uint16(35674), + 41: uint16(37663), + 42: uint16(27795), + 43: uint16(30035), + 44: uint16(31572), + 45: uint16(36367), + 46: uint16(36957), + 47: uint16(21776), + 48: uint16(22530), + 49: uint16(22616), + 50: uint16(24162), + 51: uint16(25095), + 52: uint16(25758), + 53: uint16(26848), + 54: uint16(30070), + 55: uint16(31958), + 56: uint16(34739), + 57: uint16(40680), + 58: uint16(20195), + 59: uint16(22408), + 60: uint16(22382), + 61: uint16(22823), + 62: uint16(23565), + 63: uint16(23729), + 64: uint16(24118), + 65: uint16(24453), + 66: uint16(25140), + 67: uint16(25825), + 68: uint16(29619), + 69: uint16(33274), + 70: uint16(34955), + 71: uint16(36024), + 72: uint16(38538), + 73: uint16(40667), + 74: uint16(23429), + 75: uint16(24503), + 76: uint16(24755), + 77: uint16(20498), + 78: uint16(20992), + 79: uint16(21040), + 80: uint16(22294), + 81: uint16(22581), + 82: uint16(22615), + 83: uint16(23566), + 84: uint16(23648), + 85: uint16(23798), + 86: uint16(23947), + 87: uint16(24230), + 88: uint16(24466), + 89: uint16(24764), + 90: uint16(25361), + 91: uint16(25481), + 92: uint16(25623), + 93: uint16(26691), + }, + 51: { + 0: uint16(26873), + 1: uint16(27330), + 2: uint16(28120), + 3: uint16(28193), + 4: uint16(28372), + 5: uint16(28644), + 6: uint16(29182), + 7: uint16(30428), + 8: uint16(30585), + 9: uint16(31153), + 10: uint16(31291), + 11: uint16(33796), + 12: uint16(35241), + 13: uint16(36077), + 14: uint16(36339), + 15: uint16(36424), + 16: uint16(36867), + 17: uint16(36884), + 18: uint16(36947), + 19: uint16(37117), + 20: uint16(37709), + 21: uint16(38518), + 22: uint16(38876), + 23: uint16(27602), + 24: uint16(28678), + 25: uint16(29272), + 26: uint16(29346), + 27: uint16(29544), + 28: uint16(30563), + 29: uint16(31167), + 30: uint16(31716), + 31: uint16(32411), + 32: uint16(35712), + 33: uint16(22697), + 34: uint16(24775), + 35: uint16(25958), + 36: uint16(26109), + 37: uint16(26302), + 38: uint16(27788), + 39: uint16(28958), + 40: uint16(29129), + 41: uint16(35930), + 42: uint16(38931), + 43: uint16(20077), + 44: uint16(31361), + 45: uint16(20189), + 46: uint16(20908), + 47: uint16(20941), + 48: uint16(21205), + 49: uint16(21516), + 50: uint16(24999), + 51: uint16(26481), + 52: uint16(26704), + 53: uint16(26847), + 54: uint16(27934), + 55: uint16(28540), + 56: uint16(30140), + 57: uint16(30643), + 58: uint16(31461), + 59: uint16(33012), + 60: uint16(33891), + 61: uint16(37509), + 62: uint16(20828), + 63: uint16(26007), + 64: uint16(26460), + 65: uint16(26515), + 66: uint16(30168), + 67: uint16(31431), + 68: uint16(33651), + 69: uint16(63834), + 70: uint16(35910), + 71: uint16(36887), + 72: uint16(38957), + 73: uint16(23663), + 74: uint16(33216), + 75: uint16(33434), + 76: uint16(36929), + 77: uint16(36975), + 78: uint16(37389), + 79: uint16(24471), + 80: uint16(23965), + 81: uint16(27225), + 82: uint16(29128), + 83: uint16(30331), + 84: uint16(31561), + 85: uint16(34276), + 86: uint16(35588), + 87: uint16(37159), + 88: uint16(39472), + 89: uint16(21895), + 90: uint16(25078), + 91: uint16(63835), + 92: uint16(30313), + 93: uint16(32645), + }, + 52: { + 0: uint16(34367), + 1: uint16(34746), + 2: uint16(35064), + 3: uint16(37007), + 4: uint16(63836), + 5: uint16(27931), + 6: uint16(28889), + 7: uint16(29662), + 8: uint16(32097), + 9: uint16(33853), + 10: uint16(63837), + 11: uint16(37226), + 12: uint16(39409), + 13: uint16(63838), + 14: uint16(20098), + 15: uint16(21365), + 16: uint16(27396), + 17: uint16(27410), + 18: uint16(28734), + 19: uint16(29211), + 20: uint16(34349), + 21: uint16(40478), + 22: uint16(21068), + 23: uint16(36771), + 24: uint16(23888), + 25: uint16(25829), + 26: uint16(25900), + 27: uint16(27414), + 28: uint16(28651), + 29: uint16(31811), + 30: uint16(32412), + 31: uint16(34253), + 32: uint16(35172), + 33: uint16(35261), + 34: uint16(25289), + 35: uint16(33240), + 36: uint16(34847), + 37: uint16(24266), + 38: uint16(26391), + 39: uint16(28010), + 40: uint16(29436), + 41: uint16(29701), + 42: uint16(29807), + 43: uint16(34690), + 44: uint16(37086), + 45: uint16(20358), + 46: uint16(23821), + 47: uint16(24480), + 48: uint16(33802), + 49: uint16(20919), + 50: uint16(25504), + 51: uint16(30053), + 52: uint16(20142), + 53: uint16(20486), + 54: uint16(20841), + 55: uint16(20937), + 56: uint16(26753), + 57: uint16(27153), + 58: uint16(31918), + 59: uint16(31921), + 60: uint16(31975), + 61: uint16(33391), + 62: uint16(35538), + 63: uint16(36635), + 64: uint16(37327), + 65: uint16(20406), + 66: uint16(20791), + 67: uint16(21237), + 68: uint16(21570), + 69: uint16(24300), + 70: uint16(24942), + 71: uint16(25150), + 72: uint16(26053), + 73: uint16(27354), + 74: uint16(28670), + 75: uint16(31018), + 76: uint16(34268), + 77: uint16(34851), + 78: uint16(38317), + 79: uint16(39522), + 80: uint16(39530), + 81: uint16(40599), + 82: uint16(40654), + 83: uint16(21147), + 84: uint16(26310), + 85: uint16(27511), + 86: uint16(28701), + 87: uint16(31019), + 88: uint16(36706), + 89: uint16(38722), + 90: uint16(24976), + 91: uint16(25088), + 92: uint16(25891), + 93: uint16(28451), + }, + 53: { + 0: uint16(29001), + 1: uint16(29833), + 2: uint16(32244), + 3: uint16(32879), + 4: uint16(34030), + 5: uint16(36646), + 6: uint16(36899), + 7: uint16(37706), + 8: uint16(20925), + 9: uint16(21015), + 10: uint16(21155), + 11: uint16(27916), + 12: uint16(28872), + 13: uint16(35010), + 14: uint16(24265), + 15: uint16(25986), + 16: uint16(27566), + 17: uint16(28610), + 18: uint16(31806), + 19: uint16(29557), + 20: uint16(20196), + 21: uint16(20278), + 22: uint16(22265), + 23: uint16(63839), + 24: uint16(23738), + 25: uint16(23994), + 26: uint16(24604), + 27: uint16(29618), + 28: uint16(31533), + 29: uint16(32666), + 30: uint16(32718), + 31: uint16(32838), + 32: uint16(36894), + 33: uint16(37428), + 34: uint16(38646), + 35: uint16(38728), + 36: uint16(38936), + 37: uint16(40801), + 38: uint16(20363), + 39: uint16(28583), + 40: uint16(31150), + 41: uint16(37300), + 42: uint16(38583), + 43: uint16(21214), + 44: uint16(63840), + 45: uint16(25736), + 46: uint16(25796), + 47: uint16(27347), + 48: uint16(28510), + 49: uint16(28696), + 50: uint16(29200), + 51: uint16(30439), + 52: uint16(32769), + 53: uint16(34310), + 54: uint16(34396), + 55: uint16(36335), + 56: uint16(36613), + 57: uint16(38706), + 58: uint16(39791), + 59: uint16(40442), + 60: uint16(40565), + 61: uint16(30860), + 62: uint16(31103), + 63: uint16(32160), + 64: uint16(33737), + 65: uint16(37636), + 66: uint16(40575), + 67: uint16(40595), + 68: uint16(35542), + 69: uint16(22751), + 70: uint16(24324), + 71: uint16(26407), + 72: uint16(28711), + 73: uint16(29903), + 74: uint16(31840), + 75: uint16(32894), + 76: uint16(20769), + 77: uint16(28712), + 78: uint16(29282), + 79: uint16(30922), + 80: uint16(36034), + 81: uint16(36058), + 82: uint16(36084), + 83: uint16(38647), + 84: uint16(20102), + 85: uint16(20698), + 86: uint16(23534), + 87: uint16(24278), + 88: uint16(26009), + 89: uint16(29134), + 90: uint16(30274), + 91: uint16(30637), + 92: uint16(32842), + 93: uint16(34044), + }, + 54: { + 0: uint16(36988), + 1: uint16(39719), + 2: uint16(40845), + 3: uint16(22744), + 4: uint16(23105), + 5: uint16(23650), + 6: uint16(27155), + 7: uint16(28122), + 8: uint16(28431), + 9: uint16(30267), + 10: uint16(32047), + 11: uint16(32311), + 12: uint16(34078), + 13: uint16(35128), + 14: uint16(37860), + 15: uint16(38475), + 16: uint16(21129), + 17: uint16(26066), + 18: uint16(26611), + 19: uint16(27060), + 20: uint16(27969), + 21: uint16(28316), + 22: uint16(28687), + 23: uint16(29705), + 24: uint16(29792), + 25: uint16(30041), + 26: uint16(30244), + 27: uint16(30827), + 28: uint16(35628), + 29: uint16(39006), + 30: uint16(20845), + 31: uint16(25134), + 32: uint16(38520), + 33: uint16(20374), + 34: uint16(20523), + 35: uint16(23833), + 36: uint16(28138), + 37: uint16(32184), + 38: uint16(36650), + 39: uint16(24459), + 40: uint16(24900), + 41: uint16(26647), + 42: uint16(63841), + 43: uint16(38534), + 44: uint16(21202), + 45: uint16(32907), + 46: uint16(20956), + 47: uint16(20940), + 48: uint16(26974), + 49: uint16(31260), + 50: uint16(32190), + 51: uint16(33777), + 52: uint16(38517), + 53: uint16(20442), + 54: uint16(21033), + 55: uint16(21400), + 56: uint16(21519), + 57: uint16(21774), + 58: uint16(23653), + 59: uint16(24743), + 60: uint16(26446), + 61: uint16(26792), + 62: uint16(28012), + 63: uint16(29313), + 64: uint16(29432), + 65: uint16(29702), + 66: uint16(29827), + 67: uint16(63842), + 68: uint16(30178), + 69: uint16(31852), + 70: uint16(32633), + 71: uint16(32696), + 72: uint16(33673), + 73: uint16(35023), + 74: uint16(35041), + 75: uint16(37324), + 76: uint16(37328), + 77: uint16(38626), + 78: uint16(39881), + 79: uint16(21533), + 80: uint16(28542), + 81: uint16(29136), + 82: uint16(29848), + 83: uint16(34298), + 84: uint16(36522), + 85: uint16(38563), + 86: uint16(40023), + 87: uint16(40607), + 88: uint16(26519), + 89: uint16(28107), + 90: uint16(29747), + 91: uint16(33256), + 92: uint16(38678), + 93: uint16(30764), + }, + 55: { + 0: uint16(31435), + 1: uint16(31520), + 2: uint16(31890), + 3: uint16(25705), + 4: uint16(29802), + 5: uint16(30194), + 6: uint16(30908), + 7: uint16(30952), + 8: uint16(39340), + 9: uint16(39764), + 10: uint16(40635), + 11: uint16(23518), + 12: uint16(24149), + 13: uint16(28448), + 14: uint16(33180), + 15: uint16(33707), + 16: uint16(37000), + 17: uint16(19975), + 18: uint16(21325), + 19: uint16(23081), + 20: uint16(24018), + 21: uint16(24398), + 22: uint16(24930), + 23: uint16(25405), + 24: uint16(26217), + 25: uint16(26364), + 26: uint16(28415), + 27: uint16(28459), + 28: uint16(28771), + 29: uint16(30622), + 30: uint16(33836), + 31: uint16(34067), + 32: uint16(34875), + 33: uint16(36627), + 34: uint16(39237), + 35: uint16(39995), + 36: uint16(21788), + 37: uint16(25273), + 38: uint16(26411), + 39: uint16(27819), + 40: uint16(33545), + 41: uint16(35178), + 42: uint16(38778), + 43: uint16(20129), + 44: uint16(22916), + 45: uint16(24536), + 46: uint16(24537), + 47: uint16(26395), + 48: uint16(32178), + 49: uint16(32596), + 50: uint16(33426), + 51: uint16(33579), + 52: uint16(33725), + 53: uint16(36638), + 54: uint16(37017), + 55: uint16(22475), + 56: uint16(22969), + 57: uint16(23186), + 58: uint16(23504), + 59: uint16(26151), + 60: uint16(26522), + 61: uint16(26757), + 62: uint16(27599), + 63: uint16(29028), + 64: uint16(32629), + 65: uint16(36023), + 66: uint16(36067), + 67: uint16(36993), + 68: uint16(39749), + 69: uint16(33032), + 70: uint16(35978), + 71: uint16(38476), + 72: uint16(39488), + 73: uint16(40613), + 74: uint16(23391), + 75: uint16(27667), + 76: uint16(29467), + 77: uint16(30450), + 78: uint16(30431), + 79: uint16(33804), + 80: uint16(20906), + 81: uint16(35219), + 82: uint16(20813), + 83: uint16(20885), + 84: uint16(21193), + 85: uint16(26825), + 86: uint16(27796), + 87: uint16(30468), + 88: uint16(30496), + 89: uint16(32191), + 90: uint16(32236), + 91: uint16(38754), + 92: uint16(40629), + 93: uint16(28357), + }, + 56: { + 0: uint16(34065), + 1: uint16(20901), + 2: uint16(21517), + 3: uint16(21629), + 4: uint16(26126), + 5: uint16(26269), + 6: uint16(26919), + 7: uint16(28319), + 8: uint16(30399), + 9: uint16(30609), + 10: uint16(33559), + 11: uint16(33986), + 12: uint16(34719), + 13: uint16(37225), + 14: uint16(37528), + 15: uint16(40180), + 16: uint16(34946), + 17: uint16(20398), + 18: uint16(20882), + 19: uint16(21215), + 20: uint16(22982), + 21: uint16(24125), + 22: uint16(24917), + 23: uint16(25720), + 24: uint16(25721), + 25: uint16(26286), + 26: uint16(26576), + 27: uint16(27169), + 28: uint16(27597), + 29: uint16(27611), + 30: uint16(29279), + 31: uint16(29281), + 32: uint16(29761), + 33: uint16(30520), + 34: uint16(30683), + 35: uint16(32791), + 36: uint16(33468), + 37: uint16(33541), + 38: uint16(35584), + 39: uint16(35624), + 40: uint16(35980), + 41: uint16(26408), + 42: uint16(27792), + 43: uint16(29287), + 44: uint16(30446), + 45: uint16(30566), + 46: uint16(31302), + 47: uint16(40361), + 48: uint16(27519), + 49: uint16(27794), + 50: uint16(22818), + 51: uint16(26406), + 52: uint16(33945), + 53: uint16(21359), + 54: uint16(22675), + 55: uint16(22937), + 56: uint16(24287), + 57: uint16(25551), + 58: uint16(26164), + 59: uint16(26483), + 60: uint16(28218), + 61: uint16(29483), + 62: uint16(31447), + 63: uint16(33495), + 64: uint16(37672), + 65: uint16(21209), + 66: uint16(24043), + 67: uint16(25006), + 68: uint16(25035), + 69: uint16(25098), + 70: uint16(25287), + 71: uint16(25771), + 72: uint16(26080), + 73: uint16(26969), + 74: uint16(27494), + 75: uint16(27595), + 76: uint16(28961), + 77: uint16(29687), + 78: uint16(30045), + 79: uint16(32326), + 80: uint16(33310), + 81: uint16(33538), + 82: uint16(34154), + 83: uint16(35491), + 84: uint16(36031), + 85: uint16(38695), + 86: uint16(40289), + 87: uint16(22696), + 88: uint16(40664), + 89: uint16(20497), + 90: uint16(21006), + 91: uint16(21563), + 92: uint16(21839), + 93: uint16(25991), + }, + 57: { + 0: uint16(27766), + 1: uint16(32010), + 2: uint16(32011), + 3: uint16(32862), + 4: uint16(34442), + 5: uint16(38272), + 6: uint16(38639), + 7: uint16(21247), + 8: uint16(27797), + 9: uint16(29289), + 10: uint16(21619), + 11: uint16(23194), + 12: uint16(23614), + 13: uint16(23883), + 14: uint16(24396), + 15: uint16(24494), + 16: uint16(26410), + 17: uint16(26806), + 18: uint16(26979), + 19: uint16(28220), + 20: uint16(28228), + 21: uint16(30473), + 22: uint16(31859), + 23: uint16(32654), + 24: uint16(34183), + 25: uint16(35598), + 26: uint16(36855), + 27: uint16(38753), + 28: uint16(40692), + 29: uint16(23735), + 30: uint16(24758), + 31: uint16(24845), + 32: uint16(25003), + 33: uint16(25935), + 34: uint16(26107), + 35: uint16(26108), + 36: uint16(27665), + 37: uint16(27887), + 38: uint16(29599), + 39: uint16(29641), + 40: uint16(32225), + 41: uint16(38292), + 42: uint16(23494), + 43: uint16(34588), + 44: uint16(35600), + 45: uint16(21085), + 46: uint16(21338), + 47: uint16(25293), + 48: uint16(25615), + 49: uint16(25778), + 50: uint16(26420), + 51: uint16(27192), + 52: uint16(27850), + 53: uint16(29632), + 54: uint16(29854), + 55: uint16(31636), + 56: uint16(31893), + 57: uint16(32283), + 58: uint16(33162), + 59: uint16(33334), + 60: uint16(34180), + 61: uint16(36843), + 62: uint16(38649), + 63: uint16(39361), + 64: uint16(20276), + 65: uint16(21322), + 66: uint16(21453), + 67: uint16(21467), + 68: uint16(25292), + 69: uint16(25644), + 70: uint16(25856), + 71: uint16(26001), + 72: uint16(27075), + 73: uint16(27886), + 74: uint16(28504), + 75: uint16(29677), + 76: uint16(30036), + 77: uint16(30242), + 78: uint16(30436), + 79: uint16(30460), + 80: uint16(30928), + 81: uint16(30971), + 82: uint16(31020), + 83: uint16(32070), + 84: uint16(33324), + 85: uint16(34784), + 86: uint16(36820), + 87: uint16(38930), + 88: uint16(39151), + 89: uint16(21187), + 90: uint16(25300), + 91: uint16(25765), + 92: uint16(28196), + 93: uint16(28497), + }, + 58: { + 0: uint16(30332), + 1: uint16(36299), + 2: uint16(37297), + 3: uint16(37474), + 4: uint16(39662), + 5: uint16(39747), + 6: uint16(20515), + 7: uint16(20621), + 8: uint16(22346), + 9: uint16(22952), + 10: uint16(23592), + 11: uint16(24135), + 12: uint16(24439), + 13: uint16(25151), + 14: uint16(25918), + 15: uint16(26041), + 16: uint16(26049), + 17: uint16(26121), + 18: uint16(26507), + 19: uint16(27036), + 20: uint16(28354), + 21: uint16(30917), + 22: uint16(32033), + 23: uint16(32938), + 24: uint16(33152), + 25: uint16(33323), + 26: uint16(33459), + 27: uint16(33953), + 28: uint16(34444), + 29: uint16(35370), + 30: uint16(35607), + 31: uint16(37030), + 32: uint16(38450), + 33: uint16(40848), + 34: uint16(20493), + 35: uint16(20467), + 36: uint16(63843), + 37: uint16(22521), + 38: uint16(24472), + 39: uint16(25308), + 40: uint16(25490), + 41: uint16(26479), + 42: uint16(28227), + 43: uint16(28953), + 44: uint16(30403), + 45: uint16(32972), + 46: uint16(32986), + 47: uint16(35060), + 48: uint16(35061), + 49: uint16(35097), + 50: uint16(36064), + 51: uint16(36649), + 52: uint16(37197), + 53: uint16(38506), + 54: uint16(20271), + 55: uint16(20336), + 56: uint16(24091), + 57: uint16(26575), + 58: uint16(26658), + 59: uint16(30333), + 60: uint16(30334), + 61: uint16(39748), + 62: uint16(24161), + 63: uint16(27146), + 64: uint16(29033), + 65: uint16(29140), + 66: uint16(30058), + 67: uint16(63844), + 68: uint16(32321), + 69: uint16(34115), + 70: uint16(34281), + 71: uint16(39132), + 72: uint16(20240), + 73: uint16(31567), + 74: uint16(32624), + 75: uint16(38309), + 76: uint16(20961), + 77: uint16(24070), + 78: uint16(26805), + 79: uint16(27710), + 80: uint16(27726), + 81: uint16(27867), + 82: uint16(29359), + 83: uint16(31684), + 84: uint16(33539), + 85: uint16(27861), + 86: uint16(29754), + 87: uint16(20731), + 88: uint16(21128), + 89: uint16(22721), + 90: uint16(25816), + 91: uint16(27287), + 92: uint16(29863), + 93: uint16(30294), + }, + 59: { + 0: uint16(30887), + 1: uint16(34327), + 2: uint16(38370), + 3: uint16(38713), + 4: uint16(63845), + 5: uint16(21342), + 6: uint16(24321), + 7: uint16(35722), + 8: uint16(36776), + 9: uint16(36783), + 10: uint16(37002), + 11: uint16(21029), + 12: uint16(30629), + 13: uint16(40009), + 14: uint16(40712), + 15: uint16(19993), + 16: uint16(20482), + 17: uint16(20853), + 18: uint16(23643), + 19: uint16(24183), + 20: uint16(26142), + 21: uint16(26170), + 22: uint16(26564), + 23: uint16(26821), + 24: uint16(28851), + 25: uint16(29953), + 26: uint16(30149), + 27: uint16(31177), + 28: uint16(31453), + 29: uint16(36647), + 30: uint16(39200), + 31: uint16(39432), + 32: uint16(20445), + 33: uint16(22561), + 34: uint16(22577), + 35: uint16(23542), + 36: uint16(26222), + 37: uint16(27493), + 38: uint16(27921), + 39: uint16(28282), + 40: uint16(28541), + 41: uint16(29668), + 42: uint16(29995), + 43: uint16(33769), + 44: uint16(35036), + 45: uint16(35091), + 46: uint16(35676), + 47: uint16(36628), + 48: uint16(20239), + 49: uint16(20693), + 50: uint16(21264), + 51: uint16(21340), + 52: uint16(23443), + 53: uint16(24489), + 54: uint16(26381), + 55: uint16(31119), + 56: uint16(33145), + 57: uint16(33583), + 58: uint16(34068), + 59: uint16(35079), + 60: uint16(35206), + 61: uint16(36665), + 62: uint16(36667), + 63: uint16(39333), + 64: uint16(39954), + 65: uint16(26412), + 66: uint16(20086), + 67: uint16(20472), + 68: uint16(22857), + 69: uint16(23553), + 70: uint16(23791), + 71: uint16(23792), + 72: uint16(25447), + 73: uint16(26834), + 74: uint16(28925), + 75: uint16(29090), + 76: uint16(29739), + 77: uint16(32299), + 78: uint16(34028), + 79: uint16(34562), + 80: uint16(36898), + 81: uint16(37586), + 82: uint16(40179), + 83: uint16(19981), + 84: uint16(20184), + 85: uint16(20463), + 86: uint16(20613), + 87: uint16(21078), + 88: uint16(21103), + 89: uint16(21542), + 90: uint16(21648), + 91: uint16(22496), + 92: uint16(22827), + 93: uint16(23142), + }, + 60: { + 0: uint16(23386), + 1: uint16(23413), + 2: uint16(23500), + 3: uint16(24220), + 4: uint16(63846), + 5: uint16(25206), + 6: uint16(25975), + 7: uint16(26023), + 8: uint16(28014), + 9: uint16(28325), + 10: uint16(29238), + 11: uint16(31526), + 12: uint16(31807), + 13: uint16(32566), + 14: uint16(33104), + 15: uint16(33105), + 16: uint16(33178), + 17: uint16(33344), + 18: uint16(33433), + 19: uint16(33705), + 20: uint16(35331), + 21: uint16(36000), + 22: uint16(36070), + 23: uint16(36091), + 24: uint16(36212), + 25: uint16(36282), + 26: uint16(37096), + 27: uint16(37340), + 28: uint16(38428), + 29: uint16(38468), + 30: uint16(39385), + 31: uint16(40167), + 32: uint16(21271), + 33: uint16(20998), + 34: uint16(21545), + 35: uint16(22132), + 36: uint16(22707), + 37: uint16(22868), + 38: uint16(22894), + 39: uint16(24575), + 40: uint16(24996), + 41: uint16(25198), + 42: uint16(26128), + 43: uint16(27774), + 44: uint16(28954), + 45: uint16(30406), + 46: uint16(31881), + 47: uint16(31966), + 48: uint16(32027), + 49: uint16(33452), + 50: uint16(36033), + 51: uint16(38640), + 52: uint16(63847), + 53: uint16(20315), + 54: uint16(24343), + 55: uint16(24447), + 56: uint16(25282), + 57: uint16(23849), + 58: uint16(26379), + 59: uint16(26842), + 60: uint16(30844), + 61: uint16(32323), + 62: uint16(40300), + 63: uint16(19989), + 64: uint16(20633), + 65: uint16(21269), + 66: uint16(21290), + 67: uint16(21329), + 68: uint16(22915), + 69: uint16(23138), + 70: uint16(24199), + 71: uint16(24754), + 72: uint16(24970), + 73: uint16(25161), + 74: uint16(25209), + 75: uint16(26000), + 76: uint16(26503), + 77: uint16(27047), + 78: uint16(27604), + 79: uint16(27606), + 80: uint16(27607), + 81: uint16(27608), + 82: uint16(27832), + 83: uint16(63848), + 84: uint16(29749), + 85: uint16(30202), + 86: uint16(30738), + 87: uint16(30865), + 88: uint16(31189), + 89: uint16(31192), + 90: uint16(31875), + 91: uint16(32203), + 92: uint16(32737), + 93: uint16(32933), + }, + 61: { + 0: uint16(33086), + 1: uint16(33218), + 2: uint16(33778), + 3: uint16(34586), + 4: uint16(35048), + 5: uint16(35513), + 6: uint16(35692), + 7: uint16(36027), + 8: uint16(37145), + 9: uint16(38750), + 10: uint16(39131), + 11: uint16(40763), + 12: uint16(22188), + 13: uint16(23338), + 14: uint16(24428), + 15: uint16(25996), + 16: uint16(27315), + 17: uint16(27567), + 18: uint16(27996), + 19: uint16(28657), + 20: uint16(28693), + 21: uint16(29277), + 22: uint16(29613), + 23: uint16(36007), + 24: uint16(36051), + 25: uint16(38971), + 26: uint16(24977), + 27: uint16(27703), + 28: uint16(32856), + 29: uint16(39425), + 30: uint16(20045), + 31: uint16(20107), + 32: uint16(20123), + 33: uint16(20181), + 34: uint16(20282), + 35: uint16(20284), + 36: uint16(20351), + 37: uint16(20447), + 38: uint16(20735), + 39: uint16(21490), + 40: uint16(21496), + 41: uint16(21766), + 42: uint16(21987), + 43: uint16(22235), + 44: uint16(22763), + 45: uint16(22882), + 46: uint16(23057), + 47: uint16(23531), + 48: uint16(23546), + 49: uint16(23556), + 50: uint16(24051), + 51: uint16(24107), + 52: uint16(24473), + 53: uint16(24605), + 54: uint16(25448), + 55: uint16(26012), + 56: uint16(26031), + 57: uint16(26614), + 58: uint16(26619), + 59: uint16(26797), + 60: uint16(27515), + 61: uint16(27801), + 62: uint16(27863), + 63: uint16(28195), + 64: uint16(28681), + 65: uint16(29509), + 66: uint16(30722), + 67: uint16(31038), + 68: uint16(31040), + 69: uint16(31072), + 70: uint16(31169), + 71: uint16(31721), + 72: uint16(32023), + 73: uint16(32114), + 74: uint16(32902), + 75: uint16(33293), + 76: uint16(33678), + 77: uint16(34001), + 78: uint16(34503), + 79: uint16(35039), + 80: uint16(35408), + 81: uint16(35422), + 82: uint16(35613), + 83: uint16(36060), + 84: uint16(36198), + 85: uint16(36781), + 86: uint16(37034), + 87: uint16(39164), + 88: uint16(39391), + 89: uint16(40605), + 90: uint16(21066), + 91: uint16(63849), + 92: uint16(26388), + 93: uint16(63850), + }, + 62: { + 0: uint16(20632), + 1: uint16(21034), + 2: uint16(23665), + 3: uint16(25955), + 4: uint16(27733), + 5: uint16(29642), + 6: uint16(29987), + 7: uint16(30109), + 8: uint16(31639), + 9: uint16(33948), + 10: uint16(37240), + 11: uint16(38704), + 12: uint16(20087), + 13: uint16(25746), + 14: uint16(27578), + 15: uint16(29022), + 16: uint16(34217), + 17: uint16(19977), + 18: uint16(63851), + 19: uint16(26441), + 20: uint16(26862), + 21: uint16(28183), + 22: uint16(33439), + 23: uint16(34072), + 24: uint16(34923), + 25: uint16(25591), + 26: uint16(28545), + 27: uint16(37394), + 28: uint16(39087), + 29: uint16(19978), + 30: uint16(20663), + 31: uint16(20687), + 32: uint16(20767), + 33: uint16(21830), + 34: uint16(21930), + 35: uint16(22039), + 36: uint16(23360), + 37: uint16(23577), + 38: uint16(23776), + 39: uint16(24120), + 40: uint16(24202), + 41: uint16(24224), + 42: uint16(24258), + 43: uint16(24819), + 44: uint16(26705), + 45: uint16(27233), + 46: uint16(28248), + 47: uint16(29245), + 48: uint16(29248), + 49: uint16(29376), + 50: uint16(30456), + 51: uint16(31077), + 52: uint16(31665), + 53: uint16(32724), + 54: uint16(35059), + 55: uint16(35316), + 56: uint16(35443), + 57: uint16(35937), + 58: uint16(36062), + 59: uint16(38684), + 60: uint16(22622), + 61: uint16(29885), + 62: uint16(36093), + 63: uint16(21959), + 64: uint16(63852), + 65: uint16(31329), + 66: uint16(32034), + 67: uint16(33394), + 68: uint16(29298), + 69: uint16(29983), + 70: uint16(29989), + 71: uint16(63853), + 72: uint16(31513), + 73: uint16(22661), + 74: uint16(22779), + 75: uint16(23996), + 76: uint16(24207), + 77: uint16(24246), + 78: uint16(24464), + 79: uint16(24661), + 80: uint16(25234), + 81: uint16(25471), + 82: uint16(25933), + 83: uint16(26257), + 84: uint16(26329), + 85: uint16(26360), + 86: uint16(26646), + 87: uint16(26866), + 88: uint16(29312), + 89: uint16(29790), + 90: uint16(31598), + 91: uint16(32110), + 92: uint16(32214), + 93: uint16(32626), + }, + 63: { + 0: uint16(32997), + 1: uint16(33298), + 2: uint16(34223), + 3: uint16(35199), + 4: uint16(35475), + 5: uint16(36893), + 6: uint16(37604), + 7: uint16(40653), + 8: uint16(40736), + 9: uint16(22805), + 10: uint16(22893), + 11: uint16(24109), + 12: uint16(24796), + 13: uint16(26132), + 14: uint16(26227), + 15: uint16(26512), + 16: uint16(27728), + 17: uint16(28101), + 18: uint16(28511), + 19: uint16(30707), + 20: uint16(30889), + 21: uint16(33990), + 22: uint16(37323), + 23: uint16(37675), + 24: uint16(20185), + 25: uint16(20682), + 26: uint16(20808), + 27: uint16(21892), + 28: uint16(23307), + 29: uint16(23459), + 30: uint16(25159), + 31: uint16(25982), + 32: uint16(26059), + 33: uint16(28210), + 34: uint16(29053), + 35: uint16(29697), + 36: uint16(29764), + 37: uint16(29831), + 38: uint16(29887), + 39: uint16(30316), + 40: uint16(31146), + 41: uint16(32218), + 42: uint16(32341), + 43: uint16(32680), + 44: uint16(33146), + 45: uint16(33203), + 46: uint16(33337), + 47: uint16(34330), + 48: uint16(34796), + 49: uint16(35445), + 50: uint16(36323), + 51: uint16(36984), + 52: uint16(37521), + 53: uint16(37925), + 54: uint16(39245), + 55: uint16(39854), + 56: uint16(21352), + 57: uint16(23633), + 58: uint16(26964), + 59: uint16(27844), + 60: uint16(27945), + 61: uint16(28203), + 62: uint16(33292), + 63: uint16(34203), + 64: uint16(35131), + 65: uint16(35373), + 66: uint16(35498), + 67: uint16(38634), + 68: uint16(40807), + 69: uint16(21089), + 70: uint16(26297), + 71: uint16(27570), + 72: uint16(32406), + 73: uint16(34814), + 74: uint16(36109), + 75: uint16(38275), + 76: uint16(38493), + 77: uint16(25885), + 78: uint16(28041), + 79: uint16(29166), + 80: uint16(63854), + 81: uint16(22478), + 82: uint16(22995), + 83: uint16(23468), + 84: uint16(24615), + 85: uint16(24826), + 86: uint16(25104), + 87: uint16(26143), + 88: uint16(26207), + 89: uint16(29481), + 90: uint16(29689), + 91: uint16(30427), + 92: uint16(30465), + 93: uint16(31596), + }, + 64: { + 0: uint16(32854), + 1: uint16(32882), + 2: uint16(33125), + 3: uint16(35488), + 4: uint16(37266), + 5: uint16(19990), + 6: uint16(21218), + 7: uint16(27506), + 8: uint16(27927), + 9: uint16(31237), + 10: uint16(31545), + 11: uint16(32048), + 12: uint16(63855), + 13: uint16(36016), + 14: uint16(21484), + 15: uint16(22063), + 16: uint16(22609), + 17: uint16(23477), + 18: uint16(23567), + 19: uint16(23569), + 20: uint16(24034), + 21: uint16(25152), + 22: uint16(25475), + 23: uint16(25620), + 24: uint16(26157), + 25: uint16(26803), + 26: uint16(27836), + 27: uint16(28040), + 28: uint16(28335), + 29: uint16(28703), + 30: uint16(28836), + 31: uint16(29138), + 32: uint16(29990), + 33: uint16(30095), + 34: uint16(30094), + 35: uint16(30233), + 36: uint16(31505), + 37: uint16(31712), + 38: uint16(31787), + 39: uint16(32032), + 40: uint16(32057), + 41: uint16(34092), + 42: uint16(34157), + 43: uint16(34311), + 44: uint16(35380), + 45: uint16(36877), + 46: uint16(36961), + 47: uint16(37045), + 48: uint16(37559), + 49: uint16(38902), + 50: uint16(39479), + 51: uint16(20439), + 52: uint16(23660), + 53: uint16(26463), + 54: uint16(28049), + 55: uint16(31903), + 56: uint16(32396), + 57: uint16(35606), + 58: uint16(36118), + 59: uint16(36895), + 60: uint16(23403), + 61: uint16(24061), + 62: uint16(25613), + 63: uint16(33984), + 64: uint16(36956), + 65: uint16(39137), + 66: uint16(29575), + 67: uint16(23435), + 68: uint16(24730), + 69: uint16(26494), + 70: uint16(28126), + 71: uint16(35359), + 72: uint16(35494), + 73: uint16(36865), + 74: uint16(38924), + 75: uint16(21047), + 76: uint16(63856), + 77: uint16(28753), + 78: uint16(30862), + 79: uint16(37782), + 80: uint16(34928), + 81: uint16(37335), + 82: uint16(20462), + 83: uint16(21463), + 84: uint16(22013), + 85: uint16(22234), + 86: uint16(22402), + 87: uint16(22781), + 88: uint16(23234), + 89: uint16(23432), + 90: uint16(23723), + 91: uint16(23744), + 92: uint16(24101), + 93: uint16(24833), + }, + 65: { + 0: uint16(25101), + 1: uint16(25163), + 2: uint16(25480), + 3: uint16(25628), + 4: uint16(25910), + 5: uint16(25976), + 6: uint16(27193), + 7: uint16(27530), + 8: uint16(27700), + 9: uint16(27929), + 10: uint16(28465), + 11: uint16(29159), + 12: uint16(29417), + 13: uint16(29560), + 14: uint16(29703), + 15: uint16(29874), + 16: uint16(30246), + 17: uint16(30561), + 18: uint16(31168), + 19: uint16(31319), + 20: uint16(31466), + 21: uint16(31929), + 22: uint16(32143), + 23: uint16(32172), + 24: uint16(32353), + 25: uint16(32670), + 26: uint16(33065), + 27: uint16(33585), + 28: uint16(33936), + 29: uint16(34010), + 30: uint16(34282), + 31: uint16(34966), + 32: uint16(35504), + 33: uint16(35728), + 34: uint16(36664), + 35: uint16(36930), + 36: uint16(36995), + 37: uint16(37228), + 38: uint16(37526), + 39: uint16(37561), + 40: uint16(38539), + 41: uint16(38567), + 42: uint16(38568), + 43: uint16(38614), + 44: uint16(38656), + 45: uint16(38920), + 46: uint16(39318), + 47: uint16(39635), + 48: uint16(39706), + 49: uint16(21460), + 50: uint16(22654), + 51: uint16(22809), + 52: uint16(23408), + 53: uint16(23487), + 54: uint16(28113), + 55: uint16(28506), + 56: uint16(29087), + 57: uint16(29729), + 58: uint16(29881), + 59: uint16(32901), + 60: uint16(33789), + 61: uint16(24033), + 62: uint16(24455), + 63: uint16(24490), + 64: uint16(24642), + 65: uint16(26092), + 66: uint16(26642), + 67: uint16(26991), + 68: uint16(27219), + 69: uint16(27529), + 70: uint16(27957), + 71: uint16(28147), + 72: uint16(29667), + 73: uint16(30462), + 74: uint16(30636), + 75: uint16(31565), + 76: uint16(32020), + 77: uint16(33059), + 78: uint16(33308), + 79: uint16(33600), + 80: uint16(34036), + 81: uint16(34147), + 82: uint16(35426), + 83: uint16(35524), + 84: uint16(37255), + 85: uint16(37662), + 86: uint16(38918), + 87: uint16(39348), + 88: uint16(25100), + 89: uint16(34899), + 90: uint16(36848), + 91: uint16(37477), + 92: uint16(23815), + 93: uint16(23847), + }, + 66: { + 0: uint16(23913), + 1: uint16(29791), + 2: uint16(33181), + 3: uint16(34664), + 4: uint16(28629), + 5: uint16(25342), + 6: uint16(32722), + 7: uint16(35126), + 8: uint16(35186), + 9: uint16(19998), + 10: uint16(20056), + 11: uint16(20711), + 12: uint16(21213), + 13: uint16(21319), + 14: uint16(25215), + 15: uint16(26119), + 16: uint16(32361), + 17: uint16(34821), + 18: uint16(38494), + 19: uint16(20365), + 20: uint16(21273), + 21: uint16(22070), + 22: uint16(22987), + 23: uint16(23204), + 24: uint16(23608), + 25: uint16(23630), + 26: uint16(23629), + 27: uint16(24066), + 28: uint16(24337), + 29: uint16(24643), + 30: uint16(26045), + 31: uint16(26159), + 32: uint16(26178), + 33: uint16(26558), + 34: uint16(26612), + 35: uint16(29468), + 36: uint16(30690), + 37: uint16(31034), + 38: uint16(32709), + 39: uint16(33940), + 40: uint16(33997), + 41: uint16(35222), + 42: uint16(35430), + 43: uint16(35433), + 44: uint16(35553), + 45: uint16(35925), + 46: uint16(35962), + 47: uint16(22516), + 48: uint16(23508), + 49: uint16(24335), + 50: uint16(24687), + 51: uint16(25325), + 52: uint16(26893), + 53: uint16(27542), + 54: uint16(28252), + 55: uint16(29060), + 56: uint16(31698), + 57: uint16(34645), + 58: uint16(35672), + 59: uint16(36606), + 60: uint16(39135), + 61: uint16(39166), + 62: uint16(20280), + 63: uint16(20353), + 64: uint16(20449), + 65: uint16(21627), + 66: uint16(23072), + 67: uint16(23480), + 68: uint16(24892), + 69: uint16(26032), + 70: uint16(26216), + 71: uint16(29180), + 72: uint16(30003), + 73: uint16(31070), + 74: uint16(32051), + 75: uint16(33102), + 76: uint16(33251), + 77: uint16(33688), + 78: uint16(34218), + 79: uint16(34254), + 80: uint16(34563), + 81: uint16(35338), + 82: uint16(36523), + 83: uint16(36763), + 84: uint16(63857), + 85: uint16(36805), + 86: uint16(22833), + 87: uint16(23460), + 88: uint16(23526), + 89: uint16(24713), + 90: uint16(23529), + 91: uint16(23563), + 92: uint16(24515), + 93: uint16(27777), + }, + 67: { + 0: uint16(63858), + 1: uint16(28145), + 2: uint16(28683), + 3: uint16(29978), + 4: uint16(33455), + 5: uint16(35574), + 6: uint16(20160), + 7: uint16(21313), + 8: uint16(63859), + 9: uint16(38617), + 10: uint16(27663), + 11: uint16(20126), + 12: uint16(20420), + 13: uint16(20818), + 14: uint16(21854), + 15: uint16(23077), + 16: uint16(23784), + 17: uint16(25105), + 18: uint16(29273), + 19: uint16(33469), + 20: uint16(33706), + 21: uint16(34558), + 22: uint16(34905), + 23: uint16(35357), + 24: uint16(38463), + 25: uint16(38597), + 26: uint16(39187), + 27: uint16(40201), + 28: uint16(40285), + 29: uint16(22538), + 30: uint16(23731), + 31: uint16(23997), + 32: uint16(24132), + 33: uint16(24801), + 34: uint16(24853), + 35: uint16(25569), + 36: uint16(27138), + 37: uint16(28197), + 38: uint16(37122), + 39: uint16(37716), + 40: uint16(38990), + 41: uint16(39952), + 42: uint16(40823), + 43: uint16(23433), + 44: uint16(23736), + 45: uint16(25353), + 46: uint16(26191), + 47: uint16(26696), + 48: uint16(30524), + 49: uint16(38593), + 50: uint16(38797), + 51: uint16(38996), + 52: uint16(39839), + 53: uint16(26017), + 54: uint16(35585), + 55: uint16(36555), + 56: uint16(38332), + 57: uint16(21813), + 58: uint16(23721), + 59: uint16(24022), + 60: uint16(24245), + 61: uint16(26263), + 62: uint16(30284), + 63: uint16(33780), + 64: uint16(38343), + 65: uint16(22739), + 66: uint16(25276), + 67: uint16(29390), + 68: uint16(40232), + 69: uint16(20208), + 70: uint16(22830), + 71: uint16(24591), + 72: uint16(26171), + 73: uint16(27523), + 74: uint16(31207), + 75: uint16(40230), + 76: uint16(21395), + 77: uint16(21696), + 78: uint16(22467), + 79: uint16(23830), + 80: uint16(24859), + 81: uint16(26326), + 82: uint16(28079), + 83: uint16(30861), + 84: uint16(33406), + 85: uint16(38552), + 86: uint16(38724), + 87: uint16(21380), + 88: uint16(25212), + 89: uint16(25494), + 90: uint16(28082), + 91: uint16(32266), + 92: uint16(33099), + 93: uint16(38989), + }, + 68: { + 0: uint16(27387), + 1: uint16(32588), + 2: uint16(40367), + 3: uint16(40474), + 4: uint16(20063), + 5: uint16(20539), + 6: uint16(20918), + 7: uint16(22812), + 8: uint16(24825), + 9: uint16(25590), + 10: uint16(26928), + 11: uint16(29242), + 12: uint16(32822), + 13: uint16(63860), + 14: uint16(37326), + 15: uint16(24369), + 16: uint16(63861), + 17: uint16(63862), + 18: uint16(32004), + 19: uint16(33509), + 20: uint16(33903), + 21: uint16(33979), + 22: uint16(34277), + 23: uint16(36493), + 24: uint16(63863), + 25: uint16(20335), + 26: uint16(63864), + 27: uint16(63865), + 28: uint16(22756), + 29: uint16(23363), + 30: uint16(24665), + 31: uint16(25562), + 32: uint16(25880), + 33: uint16(25965), + 34: uint16(26264), + 35: uint16(63866), + 36: uint16(26954), + 37: uint16(27171), + 38: uint16(27915), + 39: uint16(28673), + 40: uint16(29036), + 41: uint16(30162), + 42: uint16(30221), + 43: uint16(31155), + 44: uint16(31344), + 45: uint16(63867), + 46: uint16(32650), + 47: uint16(63868), + 48: uint16(35140), + 49: uint16(63869), + 50: uint16(35731), + 51: uint16(37312), + 52: uint16(38525), + 53: uint16(63870), + 54: uint16(39178), + 55: uint16(22276), + 56: uint16(24481), + 57: uint16(26044), + 58: uint16(28417), + 59: uint16(30208), + 60: uint16(31142), + 61: uint16(35486), + 62: uint16(39341), + 63: uint16(39770), + 64: uint16(40812), + 65: uint16(20740), + 66: uint16(25014), + 67: uint16(25233), + 68: uint16(27277), + 69: uint16(33222), + 70: uint16(20547), + 71: uint16(22576), + 72: uint16(24422), + 73: uint16(28937), + 74: uint16(35328), + 75: uint16(35578), + 76: uint16(23420), + 77: uint16(34326), + 78: uint16(20474), + 79: uint16(20796), + 80: uint16(22196), + 81: uint16(22852), + 82: uint16(25513), + 83: uint16(28153), + 84: uint16(23978), + 85: uint16(26989), + 86: uint16(20870), + 87: uint16(20104), + 88: uint16(20313), + 89: uint16(63871), + 90: uint16(63872), + 91: uint16(63873), + 92: uint16(22914), + 93: uint16(63874), + }, + 69: { + 0: uint16(63875), + 1: uint16(27487), + 2: uint16(27741), + 3: uint16(63876), + 4: uint16(29877), + 5: uint16(30998), + 6: uint16(63877), + 7: uint16(33287), + 8: uint16(33349), + 9: uint16(33593), + 10: uint16(36671), + 11: uint16(36701), + 12: uint16(63878), + 13: uint16(39192), + 14: uint16(63879), + 15: uint16(63880), + 16: uint16(63881), + 17: uint16(20134), + 18: uint16(63882), + 19: uint16(22495), + 20: uint16(24441), + 21: uint16(26131), + 22: uint16(63883), + 23: uint16(63884), + 24: uint16(30123), + 25: uint16(32377), + 26: uint16(35695), + 27: uint16(63885), + 28: uint16(36870), + 29: uint16(39515), + 30: uint16(22181), + 31: uint16(22567), + 32: uint16(23032), + 33: uint16(23071), + 34: uint16(23476), + 35: uint16(63886), + 36: uint16(24310), + 37: uint16(63887), + 38: uint16(63888), + 39: uint16(25424), + 40: uint16(25403), + 41: uint16(63889), + 42: uint16(26941), + 43: uint16(27783), + 44: uint16(27839), + 45: uint16(28046), + 46: uint16(28051), + 47: uint16(28149), + 48: uint16(28436), + 49: uint16(63890), + 50: uint16(28895), + 51: uint16(28982), + 52: uint16(29017), + 53: uint16(63891), + 54: uint16(29123), + 55: uint16(29141), + 56: uint16(63892), + 57: uint16(30799), + 58: uint16(30831), + 59: uint16(63893), + 60: uint16(31605), + 61: uint16(32227), + 62: uint16(63894), + 63: uint16(32303), + 64: uint16(63895), + 65: uint16(34893), + 66: uint16(36575), + 67: uint16(63896), + 68: uint16(63897), + 69: uint16(63898), + 70: uint16(37467), + 71: uint16(63899), + 72: uint16(40182), + 73: uint16(63900), + 74: uint16(63901), + 75: uint16(63902), + 76: uint16(24709), + 77: uint16(28037), + 78: uint16(63903), + 79: uint16(29105), + 80: uint16(63904), + 81: uint16(63905), + 82: uint16(38321), + 83: uint16(21421), + 84: uint16(63906), + 85: uint16(63907), + 86: uint16(63908), + 87: uint16(26579), + 88: uint16(63909), + 89: uint16(28814), + 90: uint16(28976), + 91: uint16(29744), + 92: uint16(33398), + 93: uint16(33490), + }, + 70: { + 0: uint16(63910), + 1: uint16(38331), + 2: uint16(39653), + 3: uint16(40573), + 4: uint16(26308), + 5: uint16(63911), + 6: uint16(29121), + 7: uint16(33865), + 8: uint16(63912), + 9: uint16(63913), + 10: uint16(22603), + 11: uint16(63914), + 12: uint16(63915), + 13: uint16(23992), + 14: uint16(24433), + 15: uint16(63916), + 16: uint16(26144), + 17: uint16(26254), + 18: uint16(27001), + 19: uint16(27054), + 20: uint16(27704), + 21: uint16(27891), + 22: uint16(28214), + 23: uint16(28481), + 24: uint16(28634), + 25: uint16(28699), + 26: uint16(28719), + 27: uint16(29008), + 28: uint16(29151), + 29: uint16(29552), + 30: uint16(63917), + 31: uint16(29787), + 32: uint16(63918), + 33: uint16(29908), + 34: uint16(30408), + 35: uint16(31310), + 36: uint16(32403), + 37: uint16(63919), + 38: uint16(63920), + 39: uint16(33521), + 40: uint16(35424), + 41: uint16(36814), + 42: uint16(63921), + 43: uint16(37704), + 44: uint16(63922), + 45: uint16(38681), + 46: uint16(63923), + 47: uint16(63924), + 48: uint16(20034), + 49: uint16(20522), + 50: uint16(63925), + 51: uint16(21000), + 52: uint16(21473), + 53: uint16(26355), + 54: uint16(27757), + 55: uint16(28618), + 56: uint16(29450), + 57: uint16(30591), + 58: uint16(31330), + 59: uint16(33454), + 60: uint16(34269), + 61: uint16(34306), + 62: uint16(63926), + 63: uint16(35028), + 64: uint16(35427), + 65: uint16(35709), + 66: uint16(35947), + 67: uint16(63927), + 68: uint16(37555), + 69: uint16(63928), + 70: uint16(38675), + 71: uint16(38928), + 72: uint16(20116), + 73: uint16(20237), + 74: uint16(20425), + 75: uint16(20658), + 76: uint16(21320), + 77: uint16(21566), + 78: uint16(21555), + 79: uint16(21978), + 80: uint16(22626), + 81: uint16(22714), + 82: uint16(22887), + 83: uint16(23067), + 84: uint16(23524), + 85: uint16(24735), + 86: uint16(63929), + 87: uint16(25034), + 88: uint16(25942), + 89: uint16(26111), + 90: uint16(26212), + 91: uint16(26791), + 92: uint16(27738), + 93: uint16(28595), + }, + 71: { + 0: uint16(28879), + 1: uint16(29100), + 2: uint16(29522), + 3: uint16(31613), + 4: uint16(34568), + 5: uint16(35492), + 6: uint16(39986), + 7: uint16(40711), + 8: uint16(23627), + 9: uint16(27779), + 10: uint16(29508), + 11: uint16(29577), + 12: uint16(37434), + 13: uint16(28331), + 14: uint16(29797), + 15: uint16(30239), + 16: uint16(31337), + 17: uint16(32277), + 18: uint16(34314), + 19: uint16(20800), + 20: uint16(22725), + 21: uint16(25793), + 22: uint16(29934), + 23: uint16(29973), + 24: uint16(30320), + 25: uint16(32705), + 26: uint16(37013), + 27: uint16(38605), + 28: uint16(39252), + 29: uint16(28198), + 30: uint16(29926), + 31: uint16(31401), + 32: uint16(31402), + 33: uint16(33253), + 34: uint16(34521), + 35: uint16(34680), + 36: uint16(35355), + 37: uint16(23113), + 38: uint16(23436), + 39: uint16(23451), + 40: uint16(26785), + 41: uint16(26880), + 42: uint16(28003), + 43: uint16(29609), + 44: uint16(29715), + 45: uint16(29740), + 46: uint16(30871), + 47: uint16(32233), + 48: uint16(32747), + 49: uint16(33048), + 50: uint16(33109), + 51: uint16(33694), + 52: uint16(35916), + 53: uint16(38446), + 54: uint16(38929), + 55: uint16(26352), + 56: uint16(24448), + 57: uint16(26106), + 58: uint16(26505), + 59: uint16(27754), + 60: uint16(29579), + 61: uint16(20525), + 62: uint16(23043), + 63: uint16(27498), + 64: uint16(30702), + 65: uint16(22806), + 66: uint16(23916), + 67: uint16(24013), + 68: uint16(29477), + 69: uint16(30031), + 70: uint16(63930), + 71: uint16(63931), + 72: uint16(20709), + 73: uint16(20985), + 74: uint16(22575), + 75: uint16(22829), + 76: uint16(22934), + 77: uint16(23002), + 78: uint16(23525), + 79: uint16(63932), + 80: uint16(63933), + 81: uint16(23970), + 82: uint16(25303), + 83: uint16(25622), + 84: uint16(25747), + 85: uint16(25854), + 86: uint16(63934), + 87: uint16(26332), + 88: uint16(63935), + 89: uint16(27208), + 90: uint16(63936), + 91: uint16(29183), + 92: uint16(29796), + 93: uint16(63937), + }, + 72: { + 0: uint16(31368), + 1: uint16(31407), + 2: uint16(32327), + 3: uint16(32350), + 4: uint16(32768), + 5: uint16(33136), + 6: uint16(63938), + 7: uint16(34799), + 8: uint16(35201), + 9: uint16(35616), + 10: uint16(36953), + 11: uint16(63939), + 12: uint16(36992), + 13: uint16(39250), + 14: uint16(24958), + 15: uint16(27442), + 16: uint16(28020), + 17: uint16(32287), + 18: uint16(35109), + 19: uint16(36785), + 20: uint16(20433), + 21: uint16(20653), + 22: uint16(20887), + 23: uint16(21191), + 24: uint16(22471), + 25: uint16(22665), + 26: uint16(23481), + 27: uint16(24248), + 28: uint16(24898), + 29: uint16(27029), + 30: uint16(28044), + 31: uint16(28263), + 32: uint16(28342), + 33: uint16(29076), + 34: uint16(29794), + 35: uint16(29992), + 36: uint16(29996), + 37: uint16(32883), + 38: uint16(33592), + 39: uint16(33993), + 40: uint16(36362), + 41: uint16(37780), + 42: uint16(37854), + 43: uint16(63940), + 44: uint16(20110), + 45: uint16(20305), + 46: uint16(20598), + 47: uint16(20778), + 48: uint16(21448), + 49: uint16(21451), + 50: uint16(21491), + 51: uint16(23431), + 52: uint16(23507), + 53: uint16(23588), + 54: uint16(24858), + 55: uint16(24962), + 56: uint16(26100), + 57: uint16(29275), + 58: uint16(29591), + 59: uint16(29760), + 60: uint16(30402), + 61: uint16(31056), + 62: uint16(31121), + 63: uint16(31161), + 64: uint16(32006), + 65: uint16(32701), + 66: uint16(33419), + 67: uint16(34261), + 68: uint16(34398), + 69: uint16(36802), + 70: uint16(36935), + 71: uint16(37109), + 72: uint16(37354), + 73: uint16(38533), + 74: uint16(38632), + 75: uint16(38633), + 76: uint16(21206), + 77: uint16(24423), + 78: uint16(26093), + 79: uint16(26161), + 80: uint16(26671), + 81: uint16(29020), + 82: uint16(31286), + 83: uint16(37057), + 84: uint16(38922), + 85: uint16(20113), + 86: uint16(63941), + 87: uint16(27218), + 88: uint16(27550), + 89: uint16(28560), + 90: uint16(29065), + 91: uint16(32792), + 92: uint16(33464), + 93: uint16(34131), + }, + 73: { + 0: uint16(36939), + 1: uint16(38549), + 2: uint16(38642), + 3: uint16(38907), + 4: uint16(34074), + 5: uint16(39729), + 6: uint16(20112), + 7: uint16(29066), + 8: uint16(38596), + 9: uint16(20803), + 10: uint16(21407), + 11: uint16(21729), + 12: uint16(22291), + 13: uint16(22290), + 14: uint16(22435), + 15: uint16(23195), + 16: uint16(23236), + 17: uint16(23491), + 18: uint16(24616), + 19: uint16(24895), + 20: uint16(25588), + 21: uint16(27781), + 22: uint16(27961), + 23: uint16(28274), + 24: uint16(28304), + 25: uint16(29232), + 26: uint16(29503), + 27: uint16(29783), + 28: uint16(33489), + 29: uint16(34945), + 30: uint16(36677), + 31: uint16(36960), + 32: uint16(63942), + 33: uint16(38498), + 34: uint16(39000), + 35: uint16(40219), + 36: uint16(26376), + 37: uint16(36234), + 38: uint16(37470), + 39: uint16(20301), + 40: uint16(20553), + 41: uint16(20702), + 42: uint16(21361), + 43: uint16(22285), + 44: uint16(22996), + 45: uint16(23041), + 46: uint16(23561), + 47: uint16(24944), + 48: uint16(26256), + 49: uint16(28205), + 50: uint16(29234), + 51: uint16(29771), + 52: uint16(32239), + 53: uint16(32963), + 54: uint16(33806), + 55: uint16(33894), + 56: uint16(34111), + 57: uint16(34655), + 58: uint16(34907), + 59: uint16(35096), + 60: uint16(35586), + 61: uint16(36949), + 62: uint16(38859), + 63: uint16(39759), + 64: uint16(20083), + 65: uint16(20369), + 66: uint16(20754), + 67: uint16(20842), + 68: uint16(63943), + 69: uint16(21807), + 70: uint16(21929), + 71: uint16(23418), + 72: uint16(23461), + 73: uint16(24188), + 74: uint16(24189), + 75: uint16(24254), + 76: uint16(24736), + 77: uint16(24799), + 78: uint16(24840), + 79: uint16(24841), + 80: uint16(25540), + 81: uint16(25912), + 82: uint16(26377), + 83: uint16(63944), + 84: uint16(26580), + 85: uint16(26586), + 86: uint16(63945), + 87: uint16(26977), + 88: uint16(26978), + 89: uint16(27833), + 90: uint16(27943), + 91: uint16(63946), + 92: uint16(28216), + 93: uint16(63947), + }, + 74: { + 0: uint16(28641), + 1: uint16(29494), + 2: uint16(29495), + 3: uint16(63948), + 4: uint16(29788), + 5: uint16(30001), + 6: uint16(63949), + 7: uint16(30290), + 8: uint16(63950), + 9: uint16(63951), + 10: uint16(32173), + 11: uint16(33278), + 12: uint16(33848), + 13: uint16(35029), + 14: uint16(35480), + 15: uint16(35547), + 16: uint16(35565), + 17: uint16(36400), + 18: uint16(36418), + 19: uint16(36938), + 20: uint16(36926), + 21: uint16(36986), + 22: uint16(37193), + 23: uint16(37321), + 24: uint16(37742), + 25: uint16(63952), + 26: uint16(63953), + 27: uint16(22537), + 28: uint16(63954), + 29: uint16(27603), + 30: uint16(32905), + 31: uint16(32946), + 32: uint16(63955), + 33: uint16(63956), + 34: uint16(20801), + 35: uint16(22891), + 36: uint16(23609), + 37: uint16(63957), + 38: uint16(63958), + 39: uint16(28516), + 40: uint16(29607), + 41: uint16(32996), + 42: uint16(36103), + 43: uint16(63959), + 44: uint16(37399), + 45: uint16(38287), + 46: uint16(63960), + 47: uint16(63961), + 48: uint16(63962), + 49: uint16(63963), + 50: uint16(32895), + 51: uint16(25102), + 52: uint16(28700), + 53: uint16(32104), + 54: uint16(34701), + 55: uint16(63964), + 56: uint16(22432), + 57: uint16(24681), + 58: uint16(24903), + 59: uint16(27575), + 60: uint16(35518), + 61: uint16(37504), + 62: uint16(38577), + 63: uint16(20057), + 64: uint16(21535), + 65: uint16(28139), + 66: uint16(34093), + 67: uint16(38512), + 68: uint16(38899), + 69: uint16(39150), + 70: uint16(25558), + 71: uint16(27875), + 72: uint16(37009), + 73: uint16(20957), + 74: uint16(25033), + 75: uint16(33210), + 76: uint16(40441), + 77: uint16(20381), + 78: uint16(20506), + 79: uint16(20736), + 80: uint16(23452), + 81: uint16(24847), + 82: uint16(25087), + 83: uint16(25836), + 84: uint16(26885), + 85: uint16(27589), + 86: uint16(30097), + 87: uint16(30691), + 88: uint16(32681), + 89: uint16(33380), + 90: uint16(34191), + 91: uint16(34811), + 92: uint16(34915), + 93: uint16(35516), + }, + 75: { + 0: uint16(35696), + 1: uint16(37291), + 2: uint16(20108), + 3: uint16(20197), + 4: uint16(20234), + 5: uint16(63965), + 6: uint16(63966), + 7: uint16(22839), + 8: uint16(23016), + 9: uint16(63967), + 10: uint16(24050), + 11: uint16(24347), + 12: uint16(24411), + 13: uint16(24609), + 14: uint16(63968), + 15: uint16(63969), + 16: uint16(63970), + 17: uint16(63971), + 18: uint16(29246), + 19: uint16(29669), + 20: uint16(63972), + 21: uint16(30064), + 22: uint16(30157), + 23: uint16(63973), + 24: uint16(31227), + 25: uint16(63974), + 26: uint16(32780), + 27: uint16(32819), + 28: uint16(32900), + 29: uint16(33505), + 30: uint16(33617), + 31: uint16(63975), + 32: uint16(63976), + 33: uint16(36029), + 34: uint16(36019), + 35: uint16(36999), + 36: uint16(63977), + 37: uint16(63978), + 38: uint16(39156), + 39: uint16(39180), + 40: uint16(63979), + 41: uint16(63980), + 42: uint16(28727), + 43: uint16(30410), + 44: uint16(32714), + 45: uint16(32716), + 46: uint16(32764), + 47: uint16(35610), + 48: uint16(20154), + 49: uint16(20161), + 50: uint16(20995), + 51: uint16(21360), + 52: uint16(63981), + 53: uint16(21693), + 54: uint16(22240), + 55: uint16(23035), + 56: uint16(23493), + 57: uint16(24341), + 58: uint16(24525), + 59: uint16(28270), + 60: uint16(63982), + 61: uint16(63983), + 62: uint16(32106), + 63: uint16(33589), + 64: uint16(63984), + 65: uint16(34451), + 66: uint16(35469), + 67: uint16(63985), + 68: uint16(38765), + 69: uint16(38775), + 70: uint16(63986), + 71: uint16(63987), + 72: uint16(19968), + 73: uint16(20314), + 74: uint16(20350), + 75: uint16(22777), + 76: uint16(26085), + 77: uint16(28322), + 78: uint16(36920), + 79: uint16(37808), + 80: uint16(39353), + 81: uint16(20219), + 82: uint16(22764), + 83: uint16(22922), + 84: uint16(23001), + 85: uint16(24641), + 86: uint16(63988), + 87: uint16(63989), + 88: uint16(31252), + 89: uint16(63990), + 90: uint16(33615), + 91: uint16(36035), + 92: uint16(20837), + 93: uint16(21316), + }, + 76: { + 0: uint16(63991), + 1: uint16(63992), + 2: uint16(63993), + 3: uint16(20173), + 4: uint16(21097), + 5: uint16(23381), + 6: uint16(33471), + 7: uint16(20180), + 8: uint16(21050), + 9: uint16(21672), + 10: uint16(22985), + 11: uint16(23039), + 12: uint16(23376), + 13: uint16(23383), + 14: uint16(23388), + 15: uint16(24675), + 16: uint16(24904), + 17: uint16(28363), + 18: uint16(28825), + 19: uint16(29038), + 20: uint16(29574), + 21: uint16(29943), + 22: uint16(30133), + 23: uint16(30913), + 24: uint16(32043), + 25: uint16(32773), + 26: uint16(33258), + 27: uint16(33576), + 28: uint16(34071), + 29: uint16(34249), + 30: uint16(35566), + 31: uint16(36039), + 32: uint16(38604), + 33: uint16(20316), + 34: uint16(21242), + 35: uint16(22204), + 36: uint16(26027), + 37: uint16(26152), + 38: uint16(28796), + 39: uint16(28856), + 40: uint16(29237), + 41: uint16(32189), + 42: uint16(33421), + 43: uint16(37196), + 44: uint16(38592), + 45: uint16(40306), + 46: uint16(23409), + 47: uint16(26855), + 48: uint16(27544), + 49: uint16(28538), + 50: uint16(30430), + 51: uint16(23697), + 52: uint16(26283), + 53: uint16(28507), + 54: uint16(31668), + 55: uint16(31786), + 56: uint16(34870), + 57: uint16(38620), + 58: uint16(19976), + 59: uint16(20183), + 60: uint16(21280), + 61: uint16(22580), + 62: uint16(22715), + 63: uint16(22767), + 64: uint16(22892), + 65: uint16(23559), + 66: uint16(24115), + 67: uint16(24196), + 68: uint16(24373), + 69: uint16(25484), + 70: uint16(26290), + 71: uint16(26454), + 72: uint16(27167), + 73: uint16(27299), + 74: uint16(27404), + 75: uint16(28479), + 76: uint16(29254), + 77: uint16(63994), + 78: uint16(29520), + 79: uint16(29835), + 80: uint16(31456), + 81: uint16(31911), + 82: uint16(33144), + 83: uint16(33247), + 84: uint16(33255), + 85: uint16(33674), + 86: uint16(33900), + 87: uint16(34083), + 88: uint16(34196), + 89: uint16(34255), + 90: uint16(35037), + 91: uint16(36115), + 92: uint16(37292), + 93: uint16(38263), + }, + 77: { + 0: uint16(38556), + 1: uint16(20877), + 2: uint16(21705), + 3: uint16(22312), + 4: uint16(23472), + 5: uint16(25165), + 6: uint16(26448), + 7: uint16(26685), + 8: uint16(26771), + 9: uint16(28221), + 10: uint16(28371), + 11: uint16(28797), + 12: uint16(32289), + 13: uint16(35009), + 14: uint16(36001), + 15: uint16(36617), + 16: uint16(40779), + 17: uint16(40782), + 18: uint16(29229), + 19: uint16(31631), + 20: uint16(35533), + 21: uint16(37658), + 22: uint16(20295), + 23: uint16(20302), + 24: uint16(20786), + 25: uint16(21632), + 26: uint16(22992), + 27: uint16(24213), + 28: uint16(25269), + 29: uint16(26485), + 30: uint16(26990), + 31: uint16(27159), + 32: uint16(27822), + 33: uint16(28186), + 34: uint16(29401), + 35: uint16(29482), + 36: uint16(30141), + 37: uint16(31672), + 38: uint16(32053), + 39: uint16(33511), + 40: uint16(33785), + 41: uint16(33879), + 42: uint16(34295), + 43: uint16(35419), + 44: uint16(36015), + 45: uint16(36487), + 46: uint16(36889), + 47: uint16(37048), + 48: uint16(38606), + 49: uint16(40799), + 50: uint16(21219), + 51: uint16(21514), + 52: uint16(23265), + 53: uint16(23490), + 54: uint16(25688), + 55: uint16(25973), + 56: uint16(28404), + 57: uint16(29380), + 58: uint16(63995), + 59: uint16(30340), + 60: uint16(31309), + 61: uint16(31515), + 62: uint16(31821), + 63: uint16(32318), + 64: uint16(32735), + 65: uint16(33659), + 66: uint16(35627), + 67: uint16(36042), + 68: uint16(36196), + 69: uint16(36321), + 70: uint16(36447), + 71: uint16(36842), + 72: uint16(36857), + 73: uint16(36969), + 74: uint16(37841), + 75: uint16(20291), + 76: uint16(20346), + 77: uint16(20659), + 78: uint16(20840), + 79: uint16(20856), + 80: uint16(21069), + 81: uint16(21098), + 82: uint16(22625), + 83: uint16(22652), + 84: uint16(22880), + 85: uint16(23560), + 86: uint16(23637), + 87: uint16(24283), + 88: uint16(24731), + 89: uint16(25136), + 90: uint16(26643), + 91: uint16(27583), + 92: uint16(27656), + 93: uint16(28593), + }, + 78: { + 0: uint16(29006), + 1: uint16(29728), + 2: uint16(30000), + 3: uint16(30008), + 4: uint16(30033), + 5: uint16(30322), + 6: uint16(31564), + 7: uint16(31627), + 8: uint16(31661), + 9: uint16(31686), + 10: uint16(32399), + 11: uint16(35438), + 12: uint16(36670), + 13: uint16(36681), + 14: uint16(37439), + 15: uint16(37523), + 16: uint16(37666), + 17: uint16(37931), + 18: uint16(38651), + 19: uint16(39002), + 20: uint16(39019), + 21: uint16(39198), + 22: uint16(20999), + 23: uint16(25130), + 24: uint16(25240), + 25: uint16(27993), + 26: uint16(30308), + 27: uint16(31434), + 28: uint16(31680), + 29: uint16(32118), + 30: uint16(21344), + 31: uint16(23742), + 32: uint16(24215), + 33: uint16(28472), + 34: uint16(28857), + 35: uint16(31896), + 36: uint16(38673), + 37: uint16(39822), + 38: uint16(40670), + 39: uint16(25509), + 40: uint16(25722), + 41: uint16(34678), + 42: uint16(19969), + 43: uint16(20117), + 44: uint16(20141), + 45: uint16(20572), + 46: uint16(20597), + 47: uint16(21576), + 48: uint16(22979), + 49: uint16(23450), + 50: uint16(24128), + 51: uint16(24237), + 52: uint16(24311), + 53: uint16(24449), + 54: uint16(24773), + 55: uint16(25402), + 56: uint16(25919), + 57: uint16(25972), + 58: uint16(26060), + 59: uint16(26230), + 60: uint16(26232), + 61: uint16(26622), + 62: uint16(26984), + 63: uint16(27273), + 64: uint16(27491), + 65: uint16(27712), + 66: uint16(28096), + 67: uint16(28136), + 68: uint16(28191), + 69: uint16(28254), + 70: uint16(28702), + 71: uint16(28833), + 72: uint16(29582), + 73: uint16(29693), + 74: uint16(30010), + 75: uint16(30555), + 76: uint16(30855), + 77: uint16(31118), + 78: uint16(31243), + 79: uint16(31357), + 80: uint16(31934), + 81: uint16(32142), + 82: uint16(33351), + 83: uint16(35330), + 84: uint16(35562), + 85: uint16(35998), + 86: uint16(37165), + 87: uint16(37194), + 88: uint16(37336), + 89: uint16(37478), + 90: uint16(37580), + 91: uint16(37664), + 92: uint16(38662), + 93: uint16(38742), + }, + 79: { + 0: uint16(38748), + 1: uint16(38914), + 2: uint16(40718), + 3: uint16(21046), + 4: uint16(21137), + 5: uint16(21884), + 6: uint16(22564), + 7: uint16(24093), + 8: uint16(24351), + 9: uint16(24716), + 10: uint16(25552), + 11: uint16(26799), + 12: uint16(28639), + 13: uint16(31085), + 14: uint16(31532), + 15: uint16(33229), + 16: uint16(34234), + 17: uint16(35069), + 18: uint16(35576), + 19: uint16(36420), + 20: uint16(37261), + 21: uint16(38500), + 22: uint16(38555), + 23: uint16(38717), + 24: uint16(38988), + 25: uint16(40778), + 26: uint16(20430), + 27: uint16(20806), + 28: uint16(20939), + 29: uint16(21161), + 30: uint16(22066), + 31: uint16(24340), + 32: uint16(24427), + 33: uint16(25514), + 34: uint16(25805), + 35: uint16(26089), + 36: uint16(26177), + 37: uint16(26362), + 38: uint16(26361), + 39: uint16(26397), + 40: uint16(26781), + 41: uint16(26839), + 42: uint16(27133), + 43: uint16(28437), + 44: uint16(28526), + 45: uint16(29031), + 46: uint16(29157), + 47: uint16(29226), + 48: uint16(29866), + 49: uint16(30522), + 50: uint16(31062), + 51: uint16(31066), + 52: uint16(31199), + 53: uint16(31264), + 54: uint16(31381), + 55: uint16(31895), + 56: uint16(31967), + 57: uint16(32068), + 58: uint16(32368), + 59: uint16(32903), + 60: uint16(34299), + 61: uint16(34468), + 62: uint16(35412), + 63: uint16(35519), + 64: uint16(36249), + 65: uint16(36481), + 66: uint16(36896), + 67: uint16(36973), + 68: uint16(37347), + 69: uint16(38459), + 70: uint16(38613), + 71: uint16(40165), + 72: uint16(26063), + 73: uint16(31751), + 74: uint16(36275), + 75: uint16(37827), + 76: uint16(23384), + 77: uint16(23562), + 78: uint16(21330), + 79: uint16(25305), + 80: uint16(29469), + 81: uint16(20519), + 82: uint16(23447), + 83: uint16(24478), + 84: uint16(24752), + 85: uint16(24939), + 86: uint16(26837), + 87: uint16(28121), + 88: uint16(29742), + 89: uint16(31278), + 90: uint16(32066), + 91: uint16(32156), + 92: uint16(32305), + 93: uint16(33131), + }, + 80: { + 0: uint16(36394), + 1: uint16(36405), + 2: uint16(37758), + 3: uint16(37912), + 4: uint16(20304), + 5: uint16(22352), + 6: uint16(24038), + 7: uint16(24231), + 8: uint16(25387), + 9: uint16(32618), + 10: uint16(20027), + 11: uint16(20303), + 12: uint16(20367), + 13: uint16(20570), + 14: uint16(23005), + 15: uint16(32964), + 16: uint16(21610), + 17: uint16(21608), + 18: uint16(22014), + 19: uint16(22863), + 20: uint16(23449), + 21: uint16(24030), + 22: uint16(24282), + 23: uint16(26205), + 24: uint16(26417), + 25: uint16(26609), + 26: uint16(26666), + 27: uint16(27880), + 28: uint16(27954), + 29: uint16(28234), + 30: uint16(28557), + 31: uint16(28855), + 32: uint16(29664), + 33: uint16(30087), + 34: uint16(31820), + 35: uint16(32002), + 36: uint16(32044), + 37: uint16(32162), + 38: uint16(33311), + 39: uint16(34523), + 40: uint16(35387), + 41: uint16(35461), + 42: uint16(36208), + 43: uint16(36490), + 44: uint16(36659), + 45: uint16(36913), + 46: uint16(37198), + 47: uint16(37202), + 48: uint16(37956), + 49: uint16(39376), + 50: uint16(31481), + 51: uint16(31909), + 52: uint16(20426), + 53: uint16(20737), + 54: uint16(20934), + 55: uint16(22472), + 56: uint16(23535), + 57: uint16(23803), + 58: uint16(26201), + 59: uint16(27197), + 60: uint16(27994), + 61: uint16(28310), + 62: uint16(28652), + 63: uint16(28940), + 64: uint16(30063), + 65: uint16(31459), + 66: uint16(34850), + 67: uint16(36897), + 68: uint16(36981), + 69: uint16(38603), + 70: uint16(39423), + 71: uint16(33537), + 72: uint16(20013), + 73: uint16(20210), + 74: uint16(34886), + 75: uint16(37325), + 76: uint16(21373), + 77: uint16(27355), + 78: uint16(26987), + 79: uint16(27713), + 80: uint16(33914), + 81: uint16(22686), + 82: uint16(24974), + 83: uint16(26366), + 84: uint16(25327), + 85: uint16(28893), + 86: uint16(29969), + 87: uint16(30151), + 88: uint16(32338), + 89: uint16(33976), + 90: uint16(35657), + 91: uint16(36104), + 92: uint16(20043), + 93: uint16(21482), + }, + 81: { + 0: uint16(21675), + 1: uint16(22320), + 2: uint16(22336), + 3: uint16(24535), + 4: uint16(25345), + 5: uint16(25351), + 6: uint16(25711), + 7: uint16(25903), + 8: uint16(26088), + 9: uint16(26234), + 10: uint16(26525), + 11: uint16(26547), + 12: uint16(27490), + 13: uint16(27744), + 14: uint16(27802), + 15: uint16(28460), + 16: uint16(30693), + 17: uint16(30757), + 18: uint16(31049), + 19: uint16(31063), + 20: uint16(32025), + 21: uint16(32930), + 22: uint16(33026), + 23: uint16(33267), + 24: uint16(33437), + 25: uint16(33463), + 26: uint16(34584), + 27: uint16(35468), + 28: uint16(63996), + 29: uint16(36100), + 30: uint16(36286), + 31: uint16(36978), + 32: uint16(30452), + 33: uint16(31257), + 34: uint16(31287), + 35: uint16(32340), + 36: uint16(32887), + 37: uint16(21767), + 38: uint16(21972), + 39: uint16(22645), + 40: uint16(25391), + 41: uint16(25634), + 42: uint16(26185), + 43: uint16(26187), + 44: uint16(26733), + 45: uint16(27035), + 46: uint16(27524), + 47: uint16(27941), + 48: uint16(28337), + 49: uint16(29645), + 50: uint16(29800), + 51: uint16(29857), + 52: uint16(30043), + 53: uint16(30137), + 54: uint16(30433), + 55: uint16(30494), + 56: uint16(30603), + 57: uint16(31206), + 58: uint16(32265), + 59: uint16(32285), + 60: uint16(33275), + 61: uint16(34095), + 62: uint16(34967), + 63: uint16(35386), + 64: uint16(36049), + 65: uint16(36587), + 66: uint16(36784), + 67: uint16(36914), + 68: uint16(37805), + 69: uint16(38499), + 70: uint16(38515), + 71: uint16(38663), + 72: uint16(20356), + 73: uint16(21489), + 74: uint16(23018), + 75: uint16(23241), + 76: uint16(24089), + 77: uint16(26702), + 78: uint16(29894), + 79: uint16(30142), + 80: uint16(31209), + 81: uint16(31378), + 82: uint16(33187), + 83: uint16(34541), + 84: uint16(36074), + 85: uint16(36300), + 86: uint16(36845), + 87: uint16(26015), + 88: uint16(26389), + 89: uint16(63997), + 90: uint16(22519), + 91: uint16(28503), + 92: uint16(32221), + 93: uint16(36655), + }, + 82: { + 0: uint16(37878), + 1: uint16(38598), + 2: uint16(24501), + 3: uint16(25074), + 4: uint16(28548), + 5: uint16(19988), + 6: uint16(20376), + 7: uint16(20511), + 8: uint16(21449), + 9: uint16(21983), + 10: uint16(23919), + 11: uint16(24046), + 12: uint16(27425), + 13: uint16(27492), + 14: uint16(30923), + 15: uint16(31642), + 16: uint16(63998), + 17: uint16(36425), + 18: uint16(36554), + 19: uint16(36974), + 20: uint16(25417), + 21: uint16(25662), + 22: uint16(30528), + 23: uint16(31364), + 24: uint16(37679), + 25: uint16(38015), + 26: uint16(40810), + 27: uint16(25776), + 28: uint16(28591), + 29: uint16(29158), + 30: uint16(29864), + 31: uint16(29914), + 32: uint16(31428), + 33: uint16(31762), + 34: uint16(32386), + 35: uint16(31922), + 36: uint16(32408), + 37: uint16(35738), + 38: uint16(36106), + 39: uint16(38013), + 40: uint16(39184), + 41: uint16(39244), + 42: uint16(21049), + 43: uint16(23519), + 44: uint16(25830), + 45: uint16(26413), + 46: uint16(32046), + 47: uint16(20717), + 48: uint16(21443), + 49: uint16(22649), + 50: uint16(24920), + 51: uint16(24921), + 52: uint16(25082), + 53: uint16(26028), + 54: uint16(31449), + 55: uint16(35730), + 56: uint16(35734), + 57: uint16(20489), + 58: uint16(20513), + 59: uint16(21109), + 60: uint16(21809), + 61: uint16(23100), + 62: uint16(24288), + 63: uint16(24432), + 64: uint16(24884), + 65: uint16(25950), + 66: uint16(26124), + 67: uint16(26166), + 68: uint16(26274), + 69: uint16(27085), + 70: uint16(28356), + 71: uint16(28466), + 72: uint16(29462), + 73: uint16(30241), + 74: uint16(31379), + 75: uint16(33081), + 76: uint16(33369), + 77: uint16(33750), + 78: uint16(33980), + 79: uint16(20661), + 80: uint16(22512), + 81: uint16(23488), + 82: uint16(23528), + 83: uint16(24425), + 84: uint16(25505), + 85: uint16(30758), + 86: uint16(32181), + 87: uint16(33756), + 88: uint16(34081), + 89: uint16(37319), + 90: uint16(37365), + 91: uint16(20874), + 92: uint16(26613), + 93: uint16(31574), + }, + 83: { + 0: uint16(36012), + 1: uint16(20932), + 2: uint16(22971), + 3: uint16(24765), + 4: uint16(34389), + 5: uint16(20508), + 6: uint16(63999), + 7: uint16(21076), + 8: uint16(23610), + 9: uint16(24957), + 10: uint16(25114), + 11: uint16(25299), + 12: uint16(25842), + 13: uint16(26021), + 14: uint16(28364), + 15: uint16(30240), + 16: uint16(33034), + 17: uint16(36448), + 18: uint16(38495), + 19: uint16(38587), + 20: uint16(20191), + 21: uint16(21315), + 22: uint16(21912), + 23: uint16(22825), + 24: uint16(24029), + 25: uint16(25797), + 26: uint16(27849), + 27: uint16(28154), + 28: uint16(29588), + 29: uint16(31359), + 30: uint16(33307), + 31: uint16(34214), + 32: uint16(36068), + 33: uint16(36368), + 34: uint16(36983), + 35: uint16(37351), + 36: uint16(38369), + 37: uint16(38433), + 38: uint16(38854), + 39: uint16(20984), + 40: uint16(21746), + 41: uint16(21894), + 42: uint16(24505), + 43: uint16(25764), + 44: uint16(28552), + 45: uint16(32180), + 46: uint16(36639), + 47: uint16(36685), + 48: uint16(37941), + 49: uint16(20681), + 50: uint16(23574), + 51: uint16(27838), + 52: uint16(28155), + 53: uint16(29979), + 54: uint16(30651), + 55: uint16(31805), + 56: uint16(31844), + 57: uint16(35449), + 58: uint16(35522), + 59: uint16(22558), + 60: uint16(22974), + 61: uint16(24086), + 62: uint16(25463), + 63: uint16(29266), + 64: uint16(30090), + 65: uint16(30571), + 66: uint16(35548), + 67: uint16(36028), + 68: uint16(36626), + 69: uint16(24307), + 70: uint16(26228), + 71: uint16(28152), + 72: uint16(32893), + 73: uint16(33729), + 74: uint16(35531), + 75: uint16(38737), + 76: uint16(39894), + 77: uint16(64000), + 78: uint16(21059), + 79: uint16(26367), + 80: uint16(28053), + 81: uint16(28399), + 82: uint16(32224), + 83: uint16(35558), + 84: uint16(36910), + 85: uint16(36958), + 86: uint16(39636), + 87: uint16(21021), + 88: uint16(21119), + 89: uint16(21736), + 90: uint16(24980), + 91: uint16(25220), + 92: uint16(25307), + 93: uint16(26786), + }, + 84: { + 0: uint16(26898), + 1: uint16(26970), + 2: uint16(27189), + 3: uint16(28818), + 4: uint16(28966), + 5: uint16(30813), + 6: uint16(30977), + 7: uint16(30990), + 8: uint16(31186), + 9: uint16(31245), + 10: uint16(32918), + 11: uint16(33400), + 12: uint16(33493), + 13: uint16(33609), + 14: uint16(34121), + 15: uint16(35970), + 16: uint16(36229), + 17: uint16(37218), + 18: uint16(37259), + 19: uint16(37294), + 20: uint16(20419), + 21: uint16(22225), + 22: uint16(29165), + 23: uint16(30679), + 24: uint16(34560), + 25: uint16(35320), + 26: uint16(23544), + 27: uint16(24534), + 28: uint16(26449), + 29: uint16(37032), + 30: uint16(21474), + 31: uint16(22618), + 32: uint16(23541), + 33: uint16(24740), + 34: uint16(24961), + 35: uint16(25696), + 36: uint16(32317), + 37: uint16(32880), + 38: uint16(34085), + 39: uint16(37507), + 40: uint16(25774), + 41: uint16(20652), + 42: uint16(23828), + 43: uint16(26368), + 44: uint16(22684), + 45: uint16(25277), + 46: uint16(25512), + 47: uint16(26894), + 48: uint16(27000), + 49: uint16(27166), + 50: uint16(28267), + 51: uint16(30394), + 52: uint16(31179), + 53: uint16(33467), + 54: uint16(33833), + 55: uint16(35535), + 56: uint16(36264), + 57: uint16(36861), + 58: uint16(37138), + 59: uint16(37195), + 60: uint16(37276), + 61: uint16(37648), + 62: uint16(37656), + 63: uint16(37786), + 64: uint16(38619), + 65: uint16(39478), + 66: uint16(39949), + 67: uint16(19985), + 68: uint16(30044), + 69: uint16(31069), + 70: uint16(31482), + 71: uint16(31569), + 72: uint16(31689), + 73: uint16(32302), + 74: uint16(33988), + 75: uint16(36441), + 76: uint16(36468), + 77: uint16(36600), + 78: uint16(36880), + 79: uint16(26149), + 80: uint16(26943), + 81: uint16(29763), + 82: uint16(20986), + 83: uint16(26414), + 84: uint16(40668), + 85: uint16(20805), + 86: uint16(24544), + 87: uint16(27798), + 88: uint16(34802), + 89: uint16(34909), + 90: uint16(34935), + 91: uint16(24756), + 92: uint16(33205), + 93: uint16(33795), + }, + 85: { + 0: uint16(36101), + 1: uint16(21462), + 2: uint16(21561), + 3: uint16(22068), + 4: uint16(23094), + 5: uint16(23601), + 6: uint16(28810), + 7: uint16(32736), + 8: uint16(32858), + 9: uint16(33030), + 10: uint16(33261), + 11: uint16(36259), + 12: uint16(37257), + 13: uint16(39519), + 14: uint16(40434), + 15: uint16(20596), + 16: uint16(20164), + 17: uint16(21408), + 18: uint16(24827), + 19: uint16(28204), + 20: uint16(23652), + 21: uint16(20360), + 22: uint16(20516), + 23: uint16(21988), + 24: uint16(23769), + 25: uint16(24159), + 26: uint16(24677), + 27: uint16(26772), + 28: uint16(27835), + 29: uint16(28100), + 30: uint16(29118), + 31: uint16(30164), + 32: uint16(30196), + 33: uint16(30305), + 34: uint16(31258), + 35: uint16(31305), + 36: uint16(32199), + 37: uint16(32251), + 38: uint16(32622), + 39: uint16(33268), + 40: uint16(34473), + 41: uint16(36636), + 42: uint16(38601), + 43: uint16(39347), + 44: uint16(40786), + 45: uint16(21063), + 46: uint16(21189), + 47: uint16(39149), + 48: uint16(35242), + 49: uint16(19971), + 50: uint16(26578), + 51: uint16(28422), + 52: uint16(20405), + 53: uint16(23522), + 54: uint16(26517), + 55: uint16(27784), + 56: uint16(28024), + 57: uint16(29723), + 58: uint16(30759), + 59: uint16(37341), + 60: uint16(37756), + 61: uint16(34756), + 62: uint16(31204), + 63: uint16(31281), + 64: uint16(24555), + 65: uint16(20182), + 66: uint16(21668), + 67: uint16(21822), + 68: uint16(22702), + 69: uint16(22949), + 70: uint16(24816), + 71: uint16(25171), + 72: uint16(25302), + 73: uint16(26422), + 74: uint16(26965), + 75: uint16(33333), + 76: uint16(38464), + 77: uint16(39345), + 78: uint16(39389), + 79: uint16(20524), + 80: uint16(21331), + 81: uint16(21828), + 82: uint16(22396), + 83: uint16(64001), + 84: uint16(25176), + 85: uint16(64002), + 86: uint16(25826), + 87: uint16(26219), + 88: uint16(26589), + 89: uint16(28609), + 90: uint16(28655), + 91: uint16(29730), + 92: uint16(29752), + 93: uint16(35351), + }, + 86: { + 0: uint16(37944), + 1: uint16(21585), + 2: uint16(22022), + 3: uint16(22374), + 4: uint16(24392), + 5: uint16(24986), + 6: uint16(27470), + 7: uint16(28760), + 8: uint16(28845), + 9: uint16(32187), + 10: uint16(35477), + 11: uint16(22890), + 12: uint16(33067), + 13: uint16(25506), + 14: uint16(30472), + 15: uint16(32829), + 16: uint16(36010), + 17: uint16(22612), + 18: uint16(25645), + 19: uint16(27067), + 20: uint16(23445), + 21: uint16(24081), + 22: uint16(28271), + 23: uint16(64003), + 24: uint16(34153), + 25: uint16(20812), + 26: uint16(21488), + 27: uint16(22826), + 28: uint16(24608), + 29: uint16(24907), + 30: uint16(27526), + 31: uint16(27760), + 32: uint16(27888), + 33: uint16(31518), + 34: uint16(32974), + 35: uint16(33492), + 36: uint16(36294), + 37: uint16(37040), + 38: uint16(39089), + 39: uint16(64004), + 40: uint16(25799), + 41: uint16(28580), + 42: uint16(25745), + 43: uint16(25860), + 44: uint16(20814), + 45: uint16(21520), + 46: uint16(22303), + 47: uint16(35342), + 48: uint16(24927), + 49: uint16(26742), + 50: uint16(64005), + 51: uint16(30171), + 52: uint16(31570), + 53: uint16(32113), + 54: uint16(36890), + 55: uint16(22534), + 56: uint16(27084), + 57: uint16(33151), + 58: uint16(35114), + 59: uint16(36864), + 60: uint16(38969), + 61: uint16(20600), + 62: uint16(22871), + 63: uint16(22956), + 64: uint16(25237), + 65: uint16(36879), + 66: uint16(39722), + 67: uint16(24925), + 68: uint16(29305), + 69: uint16(38358), + 70: uint16(22369), + 71: uint16(23110), + 72: uint16(24052), + 73: uint16(25226), + 74: uint16(25773), + 75: uint16(25850), + 76: uint16(26487), + 77: uint16(27874), + 78: uint16(27966), + 79: uint16(29228), + 80: uint16(29750), + 81: uint16(30772), + 82: uint16(32631), + 83: uint16(33453), + 84: uint16(36315), + 85: uint16(38935), + 86: uint16(21028), + 87: uint16(22338), + 88: uint16(26495), + 89: uint16(29256), + 90: uint16(29923), + 91: uint16(36009), + 92: uint16(36774), + 93: uint16(37393), + }, + 87: { + 0: uint16(38442), + 1: uint16(20843), + 2: uint16(21485), + 3: uint16(25420), + 4: uint16(20329), + 5: uint16(21764), + 6: uint16(24726), + 7: uint16(25943), + 8: uint16(27803), + 9: uint16(28031), + 10: uint16(29260), + 11: uint16(29437), + 12: uint16(31255), + 13: uint16(35207), + 14: uint16(35997), + 15: uint16(24429), + 16: uint16(28558), + 17: uint16(28921), + 18: uint16(33192), + 19: uint16(24846), + 20: uint16(20415), + 21: uint16(20559), + 22: uint16(25153), + 23: uint16(29255), + 24: uint16(31687), + 25: uint16(32232), + 26: uint16(32745), + 27: uint16(36941), + 28: uint16(38829), + 29: uint16(39449), + 30: uint16(36022), + 31: uint16(22378), + 32: uint16(24179), + 33: uint16(26544), + 34: uint16(33805), + 35: uint16(35413), + 36: uint16(21536), + 37: uint16(23318), + 38: uint16(24163), + 39: uint16(24290), + 40: uint16(24330), + 41: uint16(25987), + 42: uint16(32954), + 43: uint16(34109), + 44: uint16(38281), + 45: uint16(38491), + 46: uint16(20296), + 47: uint16(21253), + 48: uint16(21261), + 49: uint16(21263), + 50: uint16(21638), + 51: uint16(21754), + 52: uint16(22275), + 53: uint16(24067), + 54: uint16(24598), + 55: uint16(25243), + 56: uint16(25265), + 57: uint16(25429), + 58: uint16(64006), + 59: uint16(27873), + 60: uint16(28006), + 61: uint16(30129), + 62: uint16(30770), + 63: uint16(32990), + 64: uint16(33071), + 65: uint16(33502), + 66: uint16(33889), + 67: uint16(33970), + 68: uint16(34957), + 69: uint16(35090), + 70: uint16(36875), + 71: uint16(37610), + 72: uint16(39165), + 73: uint16(39825), + 74: uint16(24133), + 75: uint16(26292), + 76: uint16(26333), + 77: uint16(28689), + 78: uint16(29190), + 79: uint16(64007), + 80: uint16(20469), + 81: uint16(21117), + 82: uint16(24426), + 83: uint16(24915), + 84: uint16(26451), + 85: uint16(27161), + 86: uint16(28418), + 87: uint16(29922), + 88: uint16(31080), + 89: uint16(34920), + 90: uint16(35961), + 91: uint16(39111), + 92: uint16(39108), + 93: uint16(39491), + }, + 88: { + 0: uint16(21697), + 1: uint16(31263), + 2: uint16(26963), + 3: uint16(35575), + 4: uint16(35914), + 5: uint16(39080), + 6: uint16(39342), + 7: uint16(24444), + 8: uint16(25259), + 9: uint16(30130), + 10: uint16(30382), + 11: uint16(34987), + 12: uint16(36991), + 13: uint16(38466), + 14: uint16(21305), + 15: uint16(24380), + 16: uint16(24517), + 17: uint16(27852), + 18: uint16(29644), + 19: uint16(30050), + 20: uint16(30091), + 21: uint16(31558), + 22: uint16(33534), + 23: uint16(39325), + 24: uint16(20047), + 25: uint16(36924), + 26: uint16(19979), + 27: uint16(20309), + 28: uint16(21414), + 29: uint16(22799), + 30: uint16(24264), + 31: uint16(26160), + 32: uint16(27827), + 33: uint16(29781), + 34: uint16(33655), + 35: uint16(34662), + 36: uint16(36032), + 37: uint16(36944), + 38: uint16(38686), + 39: uint16(39957), + 40: uint16(22737), + 41: uint16(23416), + 42: uint16(34384), + 43: uint16(35604), + 44: uint16(40372), + 45: uint16(23506), + 46: uint16(24680), + 47: uint16(24717), + 48: uint16(26097), + 49: uint16(27735), + 50: uint16(28450), + 51: uint16(28579), + 52: uint16(28698), + 53: uint16(32597), + 54: uint16(32752), + 55: uint16(38289), + 56: uint16(38290), + 57: uint16(38480), + 58: uint16(38867), + 59: uint16(21106), + 60: uint16(36676), + 61: uint16(20989), + 62: uint16(21547), + 63: uint16(21688), + 64: uint16(21859), + 65: uint16(21898), + 66: uint16(27323), + 67: uint16(28085), + 68: uint16(32216), + 69: uint16(33382), + 70: uint16(37532), + 71: uint16(38519), + 72: uint16(40569), + 73: uint16(21512), + 74: uint16(21704), + 75: uint16(30418), + 76: uint16(34532), + 77: uint16(38308), + 78: uint16(38356), + 79: uint16(38492), + 80: uint16(20130), + 81: uint16(20233), + 82: uint16(23022), + 83: uint16(23270), + 84: uint16(24055), + 85: uint16(24658), + 86: uint16(25239), + 87: uint16(26477), + 88: uint16(26689), + 89: uint16(27782), + 90: uint16(28207), + 91: uint16(32568), + 92: uint16(32923), + 93: uint16(33322), + }, + 89: { + 0: uint16(64008), + 1: uint16(64009), + 2: uint16(38917), + 3: uint16(20133), + 4: uint16(20565), + 5: uint16(21683), + 6: uint16(22419), + 7: uint16(22874), + 8: uint16(23401), + 9: uint16(23475), + 10: uint16(25032), + 11: uint16(26999), + 12: uint16(28023), + 13: uint16(28707), + 14: uint16(34809), + 15: uint16(35299), + 16: uint16(35442), + 17: uint16(35559), + 18: uint16(36994), + 19: uint16(39405), + 20: uint16(39608), + 21: uint16(21182), + 22: uint16(26680), + 23: uint16(20502), + 24: uint16(24184), + 25: uint16(26447), + 26: uint16(33607), + 27: uint16(34892), + 28: uint16(20139), + 29: uint16(21521), + 30: uint16(22190), + 31: uint16(29670), + 32: uint16(37141), + 33: uint16(38911), + 34: uint16(39177), + 35: uint16(39255), + 36: uint16(39321), + 37: uint16(22099), + 38: uint16(22687), + 39: uint16(34395), + 40: uint16(35377), + 41: uint16(25010), + 42: uint16(27382), + 43: uint16(29563), + 44: uint16(36562), + 45: uint16(27463), + 46: uint16(38570), + 47: uint16(39511), + 48: uint16(22869), + 49: uint16(29184), + 50: uint16(36203), + 51: uint16(38761), + 52: uint16(20436), + 53: uint16(23796), + 54: uint16(24358), + 55: uint16(25080), + 56: uint16(26203), + 57: uint16(27883), + 58: uint16(28843), + 59: uint16(29572), + 60: uint16(29625), + 61: uint16(29694), + 62: uint16(30505), + 63: uint16(30541), + 64: uint16(32067), + 65: uint16(32098), + 66: uint16(32291), + 67: uint16(33335), + 68: uint16(34898), + 69: uint16(64010), + 70: uint16(36066), + 71: uint16(37449), + 72: uint16(39023), + 73: uint16(23377), + 74: uint16(31348), + 75: uint16(34880), + 76: uint16(38913), + 77: uint16(23244), + 78: uint16(20448), + 79: uint16(21332), + 80: uint16(22846), + 81: uint16(23805), + 82: uint16(25406), + 83: uint16(28025), + 84: uint16(29433), + 85: uint16(33029), + 86: uint16(33031), + 87: uint16(33698), + 88: uint16(37583), + 89: uint16(38960), + 90: uint16(20136), + 91: uint16(20804), + 92: uint16(21009), + 93: uint16(22411), + }, + 90: { + 0: uint16(24418), + 1: uint16(27842), + 2: uint16(28366), + 3: uint16(28677), + 4: uint16(28752), + 5: uint16(28847), + 6: uint16(29074), + 7: uint16(29673), + 8: uint16(29801), + 9: uint16(33610), + 10: uint16(34722), + 11: uint16(34913), + 12: uint16(36872), + 13: uint16(37026), + 14: uint16(37795), + 15: uint16(39336), + 16: uint16(20846), + 17: uint16(24407), + 18: uint16(24800), + 19: uint16(24935), + 20: uint16(26291), + 21: uint16(34137), + 22: uint16(36426), + 23: uint16(37295), + 24: uint16(38795), + 25: uint16(20046), + 26: uint16(20114), + 27: uint16(21628), + 28: uint16(22741), + 29: uint16(22778), + 30: uint16(22909), + 31: uint16(23733), + 32: uint16(24359), + 33: uint16(25142), + 34: uint16(25160), + 35: uint16(26122), + 36: uint16(26215), + 37: uint16(27627), + 38: uint16(28009), + 39: uint16(28111), + 40: uint16(28246), + 41: uint16(28408), + 42: uint16(28564), + 43: uint16(28640), + 44: uint16(28649), + 45: uint16(28765), + 46: uint16(29392), + 47: uint16(29733), + 48: uint16(29786), + 49: uint16(29920), + 50: uint16(30355), + 51: uint16(31068), + 52: uint16(31946), + 53: uint16(32286), + 54: uint16(32993), + 55: uint16(33446), + 56: uint16(33899), + 57: uint16(33983), + 58: uint16(34382), + 59: uint16(34399), + 60: uint16(34676), + 61: uint16(35703), + 62: uint16(35946), + 63: uint16(37804), + 64: uint16(38912), + 65: uint16(39013), + 66: uint16(24785), + 67: uint16(25110), + 68: uint16(37239), + 69: uint16(23130), + 70: uint16(26127), + 71: uint16(28151), + 72: uint16(28222), + 73: uint16(29759), + 74: uint16(39746), + 75: uint16(24573), + 76: uint16(24794), + 77: uint16(31503), + 78: uint16(21700), + 79: uint16(24344), + 80: uint16(27742), + 81: uint16(27859), + 82: uint16(27946), + 83: uint16(28888), + 84: uint16(32005), + 85: uint16(34425), + 86: uint16(35340), + 87: uint16(40251), + 88: uint16(21270), + 89: uint16(21644), + 90: uint16(23301), + 91: uint16(27194), + 92: uint16(28779), + 93: uint16(30069), + }, + 91: { + 0: uint16(31117), + 1: uint16(31166), + 2: uint16(33457), + 3: uint16(33775), + 4: uint16(35441), + 5: uint16(35649), + 6: uint16(36008), + 7: uint16(38772), + 8: uint16(64011), + 9: uint16(25844), + 10: uint16(25899), + 11: uint16(30906), + 12: uint16(30907), + 13: uint16(31339), + 14: uint16(20024), + 15: uint16(21914), + 16: uint16(22864), + 17: uint16(23462), + 18: uint16(24187), + 19: uint16(24739), + 20: uint16(25563), + 21: uint16(27489), + 22: uint16(26213), + 23: uint16(26707), + 24: uint16(28185), + 25: uint16(29029), + 26: uint16(29872), + 27: uint16(32008), + 28: uint16(36996), + 29: uint16(39529), + 30: uint16(39973), + 31: uint16(27963), + 32: uint16(28369), + 33: uint16(29502), + 34: uint16(35905), + 35: uint16(38346), + 36: uint16(20976), + 37: uint16(24140), + 38: uint16(24488), + 39: uint16(24653), + 40: uint16(24822), + 41: uint16(24880), + 42: uint16(24908), + 43: uint16(26179), + 44: uint16(26180), + 45: uint16(27045), + 46: uint16(27841), + 47: uint16(28255), + 48: uint16(28361), + 49: uint16(28514), + 50: uint16(29004), + 51: uint16(29852), + 52: uint16(30343), + 53: uint16(31681), + 54: uint16(31783), + 55: uint16(33618), + 56: uint16(34647), + 57: uint16(36945), + 58: uint16(38541), + 59: uint16(40643), + 60: uint16(21295), + 61: uint16(22238), + 62: uint16(24315), + 63: uint16(24458), + 64: uint16(24674), + 65: uint16(24724), + 66: uint16(25079), + 67: uint16(26214), + 68: uint16(26371), + 69: uint16(27292), + 70: uint16(28142), + 71: uint16(28590), + 72: uint16(28784), + 73: uint16(29546), + 74: uint16(32362), + 75: uint16(33214), + 76: uint16(33588), + 77: uint16(34516), + 78: uint16(35496), + 79: uint16(36036), + 80: uint16(21123), + 81: uint16(29554), + 82: uint16(23446), + 83: uint16(27243), + 84: uint16(37892), + 85: uint16(21742), + 86: uint16(22150), + 87: uint16(23389), + 88: uint16(25928), + 89: uint16(25989), + 90: uint16(26313), + 91: uint16(26783), + 92: uint16(28045), + 93: uint16(28102), + }, + 92: { + 0: uint16(29243), + 1: uint16(32948), + 2: uint16(37237), + 3: uint16(39501), + 4: uint16(20399), + 5: uint16(20505), + 6: uint16(21402), + 7: uint16(21518), + 8: uint16(21564), + 9: uint16(21897), + 10: uint16(21957), + 11: uint16(24127), + 12: uint16(24460), + 13: uint16(26429), + 14: uint16(29030), + 15: uint16(29661), + 16: uint16(36869), + 17: uint16(21211), + 18: uint16(21235), + 19: uint16(22628), + 20: uint16(22734), + 21: uint16(28932), + 22: uint16(29071), + 23: uint16(29179), + 24: uint16(34224), + 25: uint16(35347), + 26: uint16(26248), + 27: uint16(34216), + 28: uint16(21927), + 29: uint16(26244), + 30: uint16(29002), + 31: uint16(33841), + 32: uint16(21321), + 33: uint16(21913), + 34: uint16(27585), + 35: uint16(24409), + 36: uint16(24509), + 37: uint16(25582), + 38: uint16(26249), + 39: uint16(28999), + 40: uint16(35569), + 41: uint16(36637), + 42: uint16(40638), + 43: uint16(20241), + 44: uint16(25658), + 45: uint16(28875), + 46: uint16(30054), + 47: uint16(34407), + 48: uint16(24676), + 49: uint16(35662), + 50: uint16(40440), + 51: uint16(20807), + 52: uint16(20982), + 53: uint16(21256), + 54: uint16(27958), + 55: uint16(33016), + 56: uint16(40657), + 57: uint16(26133), + 58: uint16(27427), + 59: uint16(28824), + 60: uint16(30165), + 61: uint16(21507), + 62: uint16(23673), + 63: uint16(32007), + 64: uint16(35350), + 65: uint16(27424), + 66: uint16(27453), + 67: uint16(27462), + 68: uint16(21560), + 69: uint16(24688), + 70: uint16(27965), + 71: uint16(32725), + 72: uint16(33288), + 73: uint16(20694), + 74: uint16(20958), + 75: uint16(21916), + 76: uint16(22123), + 77: uint16(22221), + 78: uint16(23020), + 79: uint16(23305), + 80: uint16(24076), + 81: uint16(24985), + 82: uint16(24984), + 83: uint16(25137), + 84: uint16(26206), + 85: uint16(26342), + 86: uint16(29081), + 87: uint16(29113), + 88: uint16(29114), + 89: uint16(29351), + 90: uint16(31143), + 91: uint16(31232), + 92: uint16(32690), + 93: uint16(35440), + }, +} + +var _rev_jis = [6879]uint16{ + 0: uint16(31), + 1: uint16(80), + 2: uint16(81), + 3: uint16(87), + 4: uint16(14), + 5: uint16(299), + 6: uint16(74), + 7: uint16(61), + 8: uint16(12), + 9: uint16(344), + 10: uint16(62), + 11: uint16(63), + 12: uint16(1280), + 13: uint16(1281), + 14: uint16(1282), + 15: uint16(1283), + 16: uint16(1284), + 17: uint16(1285), + 18: uint16(1286), + 19: uint16(1287), + 20: uint16(1288), + 21: uint16(1289), + 22: uint16(1290), + 23: uint16(1291), + 24: uint16(1292), + 25: uint16(1293), + 26: uint16(1294), + 27: uint16(1295), + 28: uint16(1296), + 29: uint16(1297), + 30: uint16(1298), + 31: uint16(1299), + 32: uint16(1300), + 33: uint16(1301), + 34: uint16(1302), + 35: uint16(1303), + 36: uint16(1312), + 37: uint16(1313), + 38: uint16(1314), + 39: uint16(1315), + 40: uint16(1316), + 41: uint16(1317), + 42: uint16(1318), + 43: uint16(1319), + 44: uint16(1320), + 45: uint16(1321), + 46: uint16(1322), + 47: uint16(1323), + 48: uint16(1324), + 49: uint16(1325), + 50: uint16(1326), + 51: uint16(1327), + 52: uint16(1328), + 53: uint16(1329), + 54: uint16(1330), + 55: uint16(1331), + 56: uint16(1332), + 57: uint16(1333), + 58: uint16(1334), + 59: uint16(1335), + 60: uint16(1542), + 61: uint16(1536), + 62: uint16(1537), + 63: uint16(1538), + 64: uint16(1539), + 65: uint16(1540), + 66: uint16(1541), + 67: uint16(1543), + 68: uint16(1544), + 69: uint16(1545), + 70: uint16(1546), + 71: uint16(1547), + 72: uint16(1548), + 73: uint16(1549), + 74: uint16(1550), + 75: uint16(1551), + 76: uint16(1552), + 77: uint16(1553), + 78: uint16(1554), + 79: uint16(1555), + 80: uint16(1556), + 81: uint16(1557), + 82: uint16(1558), + 83: uint16(1559), + 84: uint16(1560), + 85: uint16(1561), + 86: uint16(1562), + 87: uint16(1563), + 88: uint16(1564), + 89: uint16(1565), + 90: uint16(1566), + 91: uint16(1567), + 92: uint16(1568), + 93: uint16(1584), + 94: uint16(1585), + 95: uint16(1586), + 96: uint16(1587), + 97: uint16(1588), + 98: uint16(1589), + 99: uint16(1591), + 100: uint16(1592), + 101: uint16(1593), + 102: uint16(1594), + 103: uint16(1595), + 104: uint16(1596), + 105: uint16(1597), + 106: uint16(1598), + 107: uint16(1599), + 108: uint16(1600), + 109: uint16(1601), + 110: uint16(1602), + 111: uint16(1603), + 112: uint16(1604), + 113: uint16(1605), + 114: uint16(1606), + 115: uint16(1607), + 116: uint16(1608), + 117: uint16(1609), + 118: uint16(1610), + 119: uint16(1611), + 120: uint16(1612), + 121: uint16(1613), + 122: uint16(1614), + 123: uint16(1615), + 124: uint16(1616), + 125: uint16(1590), + 126: uint16(29), + 127: uint16(28), + 128: uint16(33), + 129: uint16(37), + 130: uint16(38), + 131: uint16(39), + 132: uint16(40), + 133: uint16(342), + 134: uint16(343), + 135: uint16(36), + 136: uint16(35), + 137: uint16(338), + 138: uint16(75), + 139: uint16(76), + 140: uint16(263), + 141: uint16(77), + 142: uint16(337), + 143: uint16(266), + 144: uint16(267), + 145: uint16(265), + 146: uint16(268), + 147: uint16(300), + 148: uint16(301), + 149: uint16(302), + 150: uint16(318), + 151: uint16(303), + 152: uint16(319), + 153: uint16(281), + 154: uint16(282), + 155: uint16(60), + 156: uint16(324), + 157: uint16(326), + 158: uint16(70), + 159: uint16(315), + 160: uint16(297), + 161: uint16(298), + 162: uint16(288), + 163: uint16(287), + 164: uint16(328), + 165: uint16(329), + 166: uint16(71), + 167: uint16(327), + 168: uint16(325), + 169: uint16(321), + 170: uint16(65), + 171: uint16(320), + 172: uint16(68), + 173: uint16(69), + 174: uint16(322), + 175: uint16(323), + 176: uint16(285), + 177: uint16(286), + 178: uint16(283), + 179: uint16(284), + 180: uint16(316), + 181: uint16(317), + 182: uint16(1792), + 183: uint16(1803), + 184: uint16(1793), + 185: uint16(1804), + 186: uint16(1794), + 187: uint16(1805), + 188: uint16(1795), + 189: uint16(1806), + 190: uint16(1797), + 191: uint16(1808), + 192: uint16(1796), + 193: uint16(1807), + 194: uint16(1798), + 195: uint16(1819), + 196: uint16(1814), + 197: uint16(1809), + 198: uint16(1800), + 199: uint16(1821), + 200: uint16(1816), + 201: uint16(1811), + 202: uint16(1799), + 203: uint16(1815), + 204: uint16(1820), + 205: uint16(1810), + 206: uint16(1801), + 207: uint16(1817), + 208: uint16(1822), + 209: uint16(1812), + 210: uint16(1802), + 211: uint16(1818), + 212: uint16(1823), + 213: uint16(1813), + 214: uint16(258), + 215: uint16(257), + 216: uint16(260), + 217: uint16(259), + 218: uint16(262), + 219: uint16(261), + 220: uint16(256), + 221: uint16(93), + 222: uint16(90), + 223: uint16(92), + 224: uint16(91), + 225: uint16(349), + 226: uint16(89), + 227: uint16(88), + 228: uint16(73), + 229: uint16(72), + 230: uint16(341), + 231: uint16(340), + 232: uint16(339), + 234: uint16(1), + 235: uint16(2), + 236: uint16(22), + 237: uint16(24), + 238: uint16(25), + 239: uint16(26), + 240: uint16(49), + 241: uint16(50), + 242: uint16(51), + 243: uint16(52), + 244: uint16(53), + 245: uint16(54), + 246: uint16(55), + 247: uint16(56), + 248: uint16(57), + 249: uint16(58), + 250: uint16(264), + 251: uint16(269), + 252: uint16(43), + 253: uint16(44), + 254: uint16(32), + 255: uint16(768), + 256: uint16(769), + 257: uint16(770), + 258: uint16(771), + 259: uint16(772), + 260: uint16(773), + 261: uint16(774), + 262: uint16(775), + 263: uint16(776), + 264: uint16(777), + 265: uint16(778), + 266: uint16(779), + 267: uint16(780), + 268: uint16(781), + 269: uint16(782), + 270: uint16(783), + 271: uint16(784), + 272: uint16(785), + 273: uint16(786), + 274: uint16(787), + 275: uint16(788), + 276: uint16(789), + 277: uint16(790), + 278: uint16(791), + 279: uint16(792), + 280: uint16(793), + 281: uint16(794), + 282: uint16(795), + 283: uint16(796), + 284: uint16(797), + 285: uint16(798), + 286: uint16(799), + 287: uint16(800), + 288: uint16(801), + 289: uint16(802), + 290: uint16(803), + 291: uint16(804), + 292: uint16(805), + 293: uint16(806), + 294: uint16(807), + 295: uint16(808), + 296: uint16(809), + 297: uint16(810), + 298: uint16(811), + 299: uint16(812), + 300: uint16(813), + 301: uint16(814), + 302: uint16(815), + 303: uint16(816), + 304: uint16(817), + 305: uint16(818), + 306: uint16(819), + 307: uint16(820), + 308: uint16(821), + 309: uint16(822), + 310: uint16(823), + 311: uint16(824), + 312: uint16(825), + 313: uint16(826), + 314: uint16(827), + 315: uint16(828), + 316: uint16(829), + 317: uint16(830), + 318: uint16(831), + 319: uint16(832), + 320: uint16(833), + 321: uint16(834), + 322: uint16(835), + 323: uint16(836), + 324: uint16(837), + 325: uint16(838), + 326: uint16(839), + 327: uint16(840), + 328: uint16(841), + 329: uint16(842), + 330: uint16(843), + 331: uint16(844), + 332: uint16(845), + 333: uint16(846), + 334: uint16(847), + 335: uint16(848), + 336: uint16(849), + 337: uint16(850), + 338: uint16(10), + 339: uint16(11), + 340: uint16(20), + 341: uint16(21), + 342: uint16(1024), + 343: uint16(1025), + 344: uint16(1026), + 345: uint16(1027), + 346: uint16(1028), + 347: uint16(1029), + 348: uint16(1030), + 349: uint16(1031), + 350: uint16(1032), + 351: uint16(1033), + 352: uint16(1034), + 353: uint16(1035), + 354: uint16(1036), + 355: uint16(1037), + 356: uint16(1038), + 357: uint16(1039), + 358: uint16(1040), + 359: uint16(1041), + 360: uint16(1042), + 361: uint16(1043), + 362: uint16(1044), + 363: uint16(1045), + 364: uint16(1046), + 365: uint16(1047), + 366: uint16(1048), + 367: uint16(1049), + 368: uint16(1050), + 369: uint16(1051), + 370: uint16(1052), + 371: uint16(1053), + 372: uint16(1054), + 373: uint16(1055), + 374: uint16(1056), + 375: uint16(1057), + 376: uint16(1058), + 377: uint16(1059), + 378: uint16(1060), + 379: uint16(1061), + 380: uint16(1062), + 381: uint16(1063), + 382: uint16(1064), + 383: uint16(1065), + 384: uint16(1066), + 385: uint16(1067), + 386: uint16(1068), + 387: uint16(1069), + 388: uint16(1070), + 389: uint16(1071), + 390: uint16(1072), + 391: uint16(1073), + 392: uint16(1074), + 393: uint16(1075), + 394: uint16(1076), + 395: uint16(1077), + 396: uint16(1078), + 397: uint16(1079), + 398: uint16(1080), + 399: uint16(1081), + 400: uint16(1082), + 401: uint16(1083), + 402: uint16(1084), + 403: uint16(1085), + 404: uint16(1086), + 405: uint16(1087), + 406: uint16(1088), + 407: uint16(1089), + 408: uint16(1090), + 409: uint16(1091), + 410: uint16(1092), + 411: uint16(1093), + 412: uint16(1094), + 413: uint16(1095), + 414: uint16(1096), + 415: uint16(1097), + 416: uint16(1098), + 417: uint16(1099), + 418: uint16(1100), + 419: uint16(1101), + 420: uint16(1102), + 421: uint16(1103), + 422: uint16(1104), + 423: uint16(1105), + 424: uint16(1106), + 425: uint16(1107), + 426: uint16(1108), + 427: uint16(1109), + 428: uint16(5), + 429: uint16(27), + 430: uint16(18), + 431: uint16(19), + 432: uint16(3915), + 433: uint16(8793), + 434: uint16(6934), + 435: uint16(10843), + 436: uint16(7493), + 437: uint16(6671), + 438: uint16(7492), + 439: uint16(4379), + 440: uint16(10291), + 441: uint16(11294), + 442: uint16(12033), + 443: uint16(4110), + 444: uint16(4685), + 445: uint16(12034), + 446: uint16(7939), + 447: uint16(12577), + 448: uint16(5173), + 449: uint16(10521), + 450: uint16(7494), + 451: uint16(11549), + 452: uint16(10529), + 453: uint16(12035), + 454: uint16(8773), + 455: uint16(12036), + 456: uint16(5465), + 457: uint16(12037), + 458: uint16(4924), + 459: uint16(8719), + 460: uint16(6982), + 461: uint16(12038), + 462: uint16(12039), + 463: uint16(12040), + 464: uint16(9748), + 465: uint16(5174), + 466: uint16(9750), + 467: uint16(9538), + 468: uint16(5922), + 469: uint16(10770), + 470: uint16(18472), + 471: uint16(12041), + 472: uint16(7495), + 473: uint16(12042), + 474: uint16(4372), + 475: uint16(5444), + 476: uint16(5967), + 477: uint16(11080), + 478: uint16(13573), + 479: uint16(11343), + 480: uint16(9564), + 481: uint16(4868), + 482: uint16(5140), + 483: uint16(12043), + 484: uint16(12044), + 485: uint16(11546), + 486: uint16(11292), + 487: uint16(8263), + 488: uint16(12046), + 489: uint16(6741), + 490: uint16(9554), + 491: uint16(12049), + 492: uint16(4125), + 493: uint16(5950), + 494: uint16(5949), + 495: uint16(3909), + 496: uint16(11818), + 497: uint16(11817), + 498: uint16(6418), + 499: uint16(3840), + 500: uint16(12050), + 501: uint16(12051), + 502: uint16(12052), + 503: uint16(10771), + 504: uint16(12053), + 505: uint16(5969), + 506: uint16(3910), + 507: uint16(10833), + 508: uint16(5211), + 509: uint16(5212), + 510: uint16(5213), + 511: uint16(9025), + 512: uint16(11547), + 513: uint16(12054), + 514: uint16(12055), + 515: uint16(12056), + 516: uint16(7724), + 517: uint16(7193), + 518: uint16(7725), + 519: uint16(12061), + 520: uint16(12059), + 521: uint16(12060), + 522: uint16(5175), + 523: uint16(6402), + 524: uint16(4431), + 525: uint16(12058), + 526: uint16(12057), + 527: uint16(10504), + 528: uint16(6693), + 529: uint16(6692), + 530: uint16(8477), + 531: uint16(12062), + 532: uint16(10292), + 533: uint16(8006), + 534: uint16(23), + 535: uint16(12063), + 536: uint16(12065), + 537: uint16(8516), + 538: uint16(11584), + 539: uint16(3881), + 540: uint16(12064), + 541: uint16(4381), + 542: uint16(5411), + 543: uint16(8774), + 544: uint16(5710), + 545: uint16(12066), + 546: uint16(9731), + 547: uint16(4938), + 548: uint16(12067), + 549: uint16(3882), + 550: uint16(5951), + 551: uint16(4939), + 552: uint16(10329), + 553: uint16(10001), + 554: uint16(5176), + 555: uint16(4432), + 556: uint16(12102), + 557: uint16(9248), + 558: uint16(9803), + 559: uint16(12069), + 560: uint16(10011), + 561: uint16(11585), + 562: uint16(7692), + 563: uint16(6694), + 564: uint16(6742), + 565: uint16(4383), + 566: uint16(9008), + 567: uint16(8705), + 568: uint16(12073), + 569: uint16(3883), + 570: uint16(9026), + 571: uint16(7194), + 572: uint16(6419), + 573: uint16(11267), + 574: uint16(8493), + 575: uint16(4382), + 576: uint16(12072), + 577: uint16(11293), + 578: uint16(12068), + 579: uint16(12070), + 580: uint16(6477), + 581: uint16(12071), + 582: uint16(13315), + 583: uint16(12079), + 584: uint16(12082), + 585: uint16(12080), + 586: uint16(4385), + 587: uint16(10522), + 588: uint16(12074), + 589: uint16(12078), + 590: uint16(5970), + 591: uint16(6695), + 592: uint16(4869), + 593: uint16(12083), + 594: uint16(12075), + 595: uint16(11586), + 596: uint16(6743), + 597: uint16(12076), + 598: uint16(12081), + 599: uint16(12084), + 600: uint16(12077), + 601: uint16(5376), + 602: uint16(3884), + 603: uint16(5377), + 604: uint16(4384), + 605: uint16(13316), + 606: uint16(10840), + 607: uint16(10317), + 608: uint16(5971), + 609: uint16(7694), + 610: uint16(11542), + 611: uint16(10551), + 612: uint16(5655), + 613: uint16(8452), + 614: uint16(4419), + 615: uint16(7218), + 616: uint16(12088), + 617: uint16(12093), + 618: uint16(12091), + 619: uint16(12086), + 620: uint16(8462), + 621: uint16(12089), + 622: uint16(12092), + 623: uint16(12090), + 624: uint16(10556), + 625: uint16(12087), + 626: uint16(7693), + 627: uint16(10834), + 628: uint16(12094), + 629: uint16(12095), + 630: uint16(7171), + 631: uint16(12108), + 632: uint16(9775), + 633: uint16(10261), + 634: uint16(12103), + 635: uint16(10575), + 636: uint16(4373), + 637: uint16(12107), + 638: uint16(12101), + 639: uint16(12110), + 640: uint16(8241), + 641: uint16(5923), + 642: uint16(9787), + 643: uint16(16166), + 644: uint16(12109), + 645: uint16(9276), + 646: uint16(12098), + 647: uint16(5973), + 648: uint16(5972), + 649: uint16(12096), + 650: uint16(6969), + 651: uint16(12104), + 652: uint16(10574), + 653: uint16(8748), + 654: uint16(12100), + 655: uint16(5712), + 656: uint16(12097), + 657: uint16(12105), + 658: uint16(12099), + 659: uint16(11568), + 660: uint16(12106), + 661: uint16(11808), + 662: uint16(5445), + 663: uint16(5711), + 664: uint16(12111), + 665: uint16(12112), + 666: uint16(12116), + 667: uint16(3885), + 668: uint16(10543), + 669: uint16(12115), + 670: uint16(12114), + 671: uint16(12118), + 672: uint16(12117), + 673: uint16(9027), + 674: uint16(5713), + 675: uint16(12119), + 676: uint16(6948), + 677: uint16(8453), + 678: uint16(9028), + 679: uint16(5461), + 680: uint16(12120), + 681: uint16(5141), + 682: uint16(12121), + 683: uint16(12123), + 684: uint16(10772), + 685: uint16(5701), + 686: uint16(6672), + 687: uint16(10070), + 688: uint16(12122), + 689: uint16(6436), + 690: uint16(11298), + 691: uint16(12125), + 692: uint16(12290), + 693: uint16(12124), + 694: uint16(6435), + 695: uint16(7260), + 696: uint16(5656), + 697: uint16(12291), + 698: uint16(5422), + 699: uint16(12288), + 700: uint16(12289), + 701: uint16(9486), + 702: uint16(8283), + 703: uint16(5378), + 704: uint16(10796), + 705: uint16(12292), + 706: uint16(11548), + 707: uint16(12293), + 708: uint16(12296), + 709: uint16(12294), + 710: uint16(8237), + 711: uint16(12295), + 712: uint16(12297), + 713: uint16(12299), + 714: uint16(12298), + 715: uint16(10535), + 716: uint16(5142), + 717: uint16(12301), + 718: uint16(12302), + 719: uint16(4366), + 720: uint16(12300), + 721: uint16(6995), + 722: uint16(12305), + 723: uint16(12304), + 724: uint16(12303), + 725: uint16(12085), + 726: uint16(12306), + 727: uint16(7261), + 728: uint16(12307), + 729: uint16(11268), + 730: uint16(11064), + 731: uint16(12309), + 732: uint16(12308), + 733: uint16(12311), + 734: uint16(12310), + 735: uint16(12312), + 736: uint16(12313), + 737: uint16(3923), + 738: uint16(5908), + 739: uint16(5658), + 740: uint16(7195), + 741: uint16(8794), + 742: uint16(5379), + 743: uint16(8007), + 744: uint16(5974), + 745: uint16(6221), + 746: uint16(12315), + 747: uint16(11047), + 748: uint16(9253), + 749: uint16(6744), + 750: uint16(12314), + 751: uint16(12316), + 752: uint16(9277), + 753: uint16(4692), + 754: uint16(12317), + 755: uint16(9565), + 756: uint16(8211), + 757: uint16(12319), + 758: uint16(12320), + 759: uint16(9995), + 760: uint16(5975), + 761: uint16(11802), + 762: uint16(12321), + 763: uint16(5381), + 764: uint16(10523), + 765: uint16(8469), + 766: uint16(5456), + 767: uint16(9236), + 768: uint16(5714), + 769: uint16(12322), + 770: uint16(12323), + 771: uint16(9537), + 772: uint16(4158), + 773: uint16(12326), + 774: uint16(6492), + 775: uint16(12325), + 776: uint16(6437), + 777: uint16(12327), + 778: uint16(17741), + 779: uint16(12328), + 780: uint16(10784), + 781: uint16(12329), + 782: uint16(12330), + 783: uint16(12331), + 784: uint16(7496), + 785: uint16(6955), + 786: uint16(4870), + 787: uint16(12334), + 788: uint16(12332), + 789: uint16(11036), + 790: uint16(12333), + 791: uint16(10297), + 792: uint16(12335), + 793: uint16(12336), + 794: uint16(12337), + 795: uint16(9278), + 796: uint16(12341), + 797: uint16(12339), + 798: uint16(12340), + 799: uint16(12338), + 800: uint16(6466), + 801: uint16(12342), + 802: uint16(11081), + 803: uint16(11587), + 804: uint16(12343), + 805: uint16(7943), + 806: uint16(12344), + 807: uint16(7225), + 808: uint16(12345), + 809: uint16(8795), + 810: uint16(11550), + 811: uint16(9279), + 812: uint16(12580), + 813: uint16(12346), + 814: uint16(21252), + 815: uint16(5412), + 816: uint16(12347), + 817: uint16(10813), + 818: uint16(7239), + 819: uint16(8539), + 820: uint16(12349), + 821: uint16(9539), + 822: uint16(12350), + 823: uint16(12351), + 824: uint16(4621), + 825: uint16(12352), + 826: uint16(5382), + 827: uint16(9515), + 828: uint16(4185), + 829: uint16(7215), + 830: uint16(9984), + 831: uint16(12353), + 832: uint16(9280), + 833: uint16(7726), + 834: uint16(12354), + 835: uint16(10507), + 836: uint16(7993), + 837: uint16(4865), + 838: uint16(4872), + 839: uint16(12355), + 840: uint16(12357), + 841: uint16(5657), + 842: uint16(12356), + 843: uint16(11602), + 844: uint16(7240), + 845: uint16(10012), + 846: uint16(10539), + 847: uint16(12358), + 848: uint16(11351), + 849: uint16(12359), + 850: uint16(12360), + 851: uint16(9309), + 852: uint16(12361), + 853: uint16(7944), + 854: uint16(6493), + 855: uint16(5715), + 856: uint16(12362), + 857: uint16(6696), + 858: uint16(6222), + 859: uint16(9029), + 860: uint16(12364), + 861: uint16(8454), + 862: uint16(6478), + 863: uint16(12365), + 864: uint16(12366), + 865: uint16(8207), + 866: uint16(12363), + 867: uint16(12368), + 868: uint16(10773), + 869: uint16(6211), + 870: uint16(12367), + 871: uint16(5716), + 872: uint16(6461), + 873: uint16(9804), + 874: uint16(12371), + 875: uint16(12369), + 876: uint16(10330), + 877: uint16(7497), + 878: uint16(12378), + 879: uint16(4675), + 880: uint16(12372), + 881: uint16(12370), + 882: uint16(8238), + 883: uint16(12374), + 884: uint16(12373), + 885: uint16(4643), + 886: uint16(5695), + 887: uint16(12379), + 888: uint16(11532), + 889: uint16(12375), + 890: uint16(12380), + 891: uint16(12377), + 892: uint16(12376), + 893: uint16(11566), + 894: uint16(5976), + 895: uint16(4386), + 896: uint16(11603), + 897: uint16(7252), + 898: uint16(9271), + 899: uint16(6212), + 900: uint16(12545), + 901: uint16(12546), + 902: uint16(11588), + 903: uint16(11786), + 904: uint16(12548), + 905: uint16(5977), + 906: uint16(12547), + 907: uint16(4622), + 908: uint16(12549), + 909: uint16(10805), + 910: uint16(8987), + 911: uint16(11269), + 912: uint16(10552), + 913: uint16(12550), + 914: uint16(20276), + 915: uint16(9487), + 916: uint16(12551), + 917: uint16(4873), + 918: uint16(11026), + 919: uint16(7424), + 920: uint16(12552), + 921: uint16(10566), + 922: uint16(12556), + 923: uint16(7945), + 924: uint16(12553), + 925: uint16(5423), + 926: uint16(12554), + 927: uint16(4874), + 928: uint16(5645), + 929: uint16(12557), + 930: uint16(12558), + 931: uint16(12559), + 932: uint16(12560), + 933: uint16(6970), + 934: uint16(5978), + 935: uint16(11069), + 936: uint16(11079), + 937: uint16(9558), + 938: uint16(10576), + 939: uint16(12561), + 940: uint16(12562), + 941: uint16(12564), + 942: uint16(12566), + 943: uint16(12565), + 944: uint16(12567), + 945: uint16(4380), + 946: uint16(10795), + 947: uint16(6491), + 948: uint16(12568), + 949: uint16(8248), + 950: uint16(7425), + 951: uint16(5384), + 952: uint16(12569), + 953: uint16(10042), + 954: uint16(12570), + 955: uint16(12571), + 956: uint16(12572), + 957: uint16(12573), + 958: uint16(10243), + 959: uint16(5447), + 960: uint16(3908), + 961: uint16(9502), + 962: uint16(12574), + 963: uint16(7196), + 964: uint16(8008), + 965: uint16(12576), + 966: uint16(12575), + 967: uint16(7426), + 968: uint16(5952), + 969: uint16(12578), + 970: uint16(10013), + 971: uint16(12579), + 972: uint16(10043), + 973: uint16(8467), + 974: uint16(8525), + 975: uint16(5383), + 976: uint16(9549), + 977: uint16(8720), + 978: uint16(9805), + 979: uint16(10797), + 980: uint16(12581), + 981: uint16(8009), + 982: uint16(5652), + 983: uint16(12582), + 984: uint16(12583), + 985: uint16(4107), + 986: uint16(3924), + 987: uint16(4940), + 988: uint16(8455), + 989: uint16(5168), + 990: uint16(11344), + 991: uint16(12586), + 992: uint16(4374), + 993: uint16(12585), + 994: uint16(5385), + 995: uint16(12587), + 996: uint16(11088), + 997: uint16(12588), + 998: uint16(11569), + 999: uint16(5979), + 1000: uint16(5909), + 1001: uint16(12589), + 1002: uint16(12591), + 1003: uint16(12590), + 1004: uint16(7742), + 1005: uint16(4120), + 1006: uint16(4157), + 1007: uint16(12592), + 1008: uint16(12593), + 1009: uint16(5910), + 1010: uint16(12594), + 1011: uint16(5197), + 1012: uint16(6673), + 1013: uint16(12595), + 1014: uint16(10835), + 1015: uint16(6420), + 1016: uint16(5177), + 1017: uint16(11270), + 1018: uint16(8239), + 1019: uint16(10014), + 1020: uint16(7004), + 1021: uint16(7206), + 1022: uint16(6983), + 1023: uint16(6996), + 1024: uint16(7253), + 1025: uint16(10015), + 1026: uint16(12598), + 1027: uint16(4130), + 1028: uint16(8240), + 1029: uint16(5980), + 1030: uint16(5924), + 1031: uint16(5446), + 1032: uint16(12602), + 1033: uint16(8704), + 1034: uint16(8541), + 1035: uint16(5386), + 1036: uint16(7427), + 1037: uint16(12603), + 1038: uint16(12601), + 1039: uint16(4387), + 1040: uint16(8517), + 1041: uint16(6935), + 1042: uint16(6698), + 1043: uint16(4101), + 1044: uint16(4687), + 1045: uint16(6213), + 1046: uint16(6697), + 1047: uint16(12604), + 1048: uint16(12605), + 1049: uint16(5160), + 1050: uint16(4645), + 1051: uint16(6214), + 1052: uint16(5159), + 1053: uint16(9022), + 1054: uint16(4100), + 1055: uint16(9488), + 1056: uint16(11037), + 1057: uint16(6144), + 1058: uint16(11352), + 1059: uint16(9254), + 1060: uint16(5981), + 1061: uint16(5646), + 1062: uint16(12614), + 1063: uint16(5442), + 1064: uint16(10793), + 1065: uint16(10044), + 1066: uint16(12613), + 1067: uint16(4925), + 1068: uint16(12608), + 1069: uint16(12609), + 1070: uint16(12611), + 1071: uint16(12612), + 1072: uint16(5178), + 1073: uint16(7744), + 1074: uint16(10508), + 1075: uint16(12610), + 1076: uint16(12606), + 1077: uint16(5954), + 1078: uint16(12607), + 1079: uint16(11779), + 1080: uint16(10577), + 1081: uint16(9031), + 1082: uint16(5953), + 1083: uint16(6223), + 1084: uint16(12615), + 1085: uint16(9532), + 1086: uint16(12619), + 1087: uint16(7005), + 1088: uint16(6997), + 1089: uint16(12622), + 1090: uint16(12620), + 1091: uint16(11010), + 1092: uint16(12617), + 1093: uint16(12626), + 1094: uint16(12621), + 1095: uint16(12624), + 1096: uint16(5925), + 1097: uint16(11038), + 1098: uint16(12625), + 1099: uint16(12627), + 1100: uint16(12629), + 1101: uint16(6479), + 1102: uint16(11809), + 1103: uint16(12618), + 1104: uint16(12616), + 1105: uint16(12628), + 1106: uint16(12623), + 1107: uint16(12631), + 1108: uint16(12802), + 1109: uint16(12633), + 1110: uint16(12637), + 1111: uint16(12800), + 1112: uint16(12634), + 1113: uint16(12829), + 1114: uint16(6472), + 1115: uint16(4624), + 1116: uint16(12632), + 1117: uint16(12804), + 1118: uint16(3925), + 1119: uint16(12803), + 1120: uint16(3844), + 1121: uint16(10281), + 1122: uint16(12801), + 1123: uint16(12635), + 1124: uint16(12630), + 1125: uint16(12636), + 1126: uint16(6439), + 1127: uint16(12805), + 1128: uint16(3926), + 1129: uint16(12814), + 1130: uint16(12806), + 1131: uint16(12807), + 1132: uint16(7428), + 1133: uint16(10824), + 1134: uint16(12812), + 1135: uint16(12811), + 1136: uint16(9230), + 1137: uint16(12813), + 1138: uint16(12810), + 1139: uint16(4115), + 1140: uint16(6421), + 1141: uint16(7695), + 1142: uint16(12808), + 1143: uint16(9281), + 1144: uint16(12809), + 1145: uint16(3841), + 1146: uint16(12819), + 1147: uint16(11266), + 1148: uint16(7430), + 1149: uint16(12825), + 1150: uint16(12824), + 1151: uint16(12815), + 1152: uint16(8482), + 1153: uint16(12816), + 1154: uint16(8526), + 1155: uint16(12821), + 1156: uint16(7429), + 1157: uint16(12818), + 1158: uint16(11075), + 1159: uint16(5659), + 1160: uint16(12822), + 1161: uint16(12823), + 1162: uint16(12820), + 1163: uint16(12826), + 1164: uint16(12817), + 1165: uint16(12832), + 1166: uint16(12837), + 1167: uint16(12833), + 1168: uint16(12828), + 1169: uint16(12838), + 1170: uint16(8208), + 1171: uint16(12840), + 1172: uint16(6145), + 1173: uint16(12830), + 1174: uint16(8796), + 1175: uint16(12834), + 1176: uint16(12827), + 1177: uint16(4876), + 1178: uint16(4941), + 1179: uint16(4676), + 1180: uint16(12835), + 1181: uint16(12831), + 1182: uint16(5717), + 1183: uint16(12841), + 1184: uint16(12839), + 1185: uint16(8242), + 1186: uint16(5161), + 1187: uint16(5387), + 1188: uint16(12836), + 1189: uint16(5459), + 1190: uint16(4131), + 1191: uint16(12845), + 1192: uint16(12843), + 1193: uint16(13062), + 1194: uint16(12848), + 1195: uint16(12842), + 1196: uint16(12846), + 1197: uint16(12844), + 1198: uint16(6699), + 1199: uint16(12847), + 1200: uint16(12850), + 1201: uint16(12855), + 1202: uint16(12853), + 1203: uint16(12852), + 1204: uint16(8721), + 1205: uint16(4388), + 1206: uint16(12849), + 1207: uint16(12851), + 1208: uint16(7431), + 1209: uint16(4114), + 1210: uint16(12854), + 1211: uint16(4413), + 1212: uint16(12865), + 1213: uint16(7515), + 1214: uint16(12861), + 1215: uint16(12859), + 1216: uint16(12860), + 1217: uint16(12862), + 1218: uint16(4124), + 1219: uint16(8216), + 1220: uint16(12856), + 1221: uint16(12857), + 1222: uint16(4697), + 1223: uint16(12864), + 1224: uint16(4942), + 1225: uint16(12867), + 1226: uint16(12863), + 1227: uint16(12866), + 1228: uint16(10509), + 1229: uint16(9524), + 1230: uint16(10007), + 1231: uint16(12869), + 1232: uint16(12868), + 1233: uint16(4644), + 1234: uint16(12870), + 1235: uint16(12873), + 1236: uint16(12872), + 1237: uint16(12871), + 1238: uint16(9752), + 1239: uint16(12874), + 1240: uint16(12875), + 1241: uint16(12877), + 1242: uint16(12876), + 1243: uint16(12879), + 1244: uint16(12882), + 1245: uint16(12880), + 1246: uint16(12878), + 1247: uint16(12881), + 1248: uint16(12883), + 1249: uint16(12884), + 1250: uint16(12885), + 1251: uint16(12886), + 1252: uint16(12887), + 1253: uint16(12324), + 1254: uint16(7003), + 1255: uint16(6700), + 1256: uint16(4434), + 1257: uint16(3927), + 1258: uint16(8739), + 1259: uint16(12888), + 1260: uint16(6403), + 1261: uint16(3886), + 1262: uint16(7741), + 1263: uint16(12889), + 1264: uint16(5926), + 1265: uint16(6224), + 1266: uint16(12891), + 1267: uint16(12890), + 1268: uint16(10559), + 1269: uint16(12892), + 1270: uint16(13056), + 1271: uint16(12893), + 1272: uint16(13057), + 1273: uint16(13058), + 1274: uint16(5718), + 1275: uint16(4159), + 1276: uint16(13059), + 1277: uint16(13061), + 1278: uint16(13060), + 1279: uint16(13063), + 1280: uint16(9273), + 1281: uint16(13064), + 1282: uint16(3860), + 1283: uint16(6462), + 1284: uint16(5660), + 1285: uint16(8750), + 1286: uint16(13065), + 1287: uint16(13066), + 1288: uint16(13068), + 1289: uint16(13069), + 1290: uint16(6467), + 1291: uint16(5424), + 1292: uint16(10774), + 1293: uint16(13067), + 1294: uint16(13070), + 1295: uint16(6432), + 1296: uint16(6146), + 1297: uint16(13074), + 1298: uint16(6404), + 1299: uint16(8722), + 1300: uint16(13071), + 1301: uint16(9017), + 1302: uint16(13075), + 1303: uint16(7745), + 1304: uint16(13073), + 1305: uint16(13076), + 1306: uint16(5662), + 1307: uint16(13077), + 1308: uint16(13078), + 1309: uint16(6147), + 1310: uint16(4639), + 1311: uint16(13080), + 1312: uint16(13081), + 1313: uint16(13082), + 1314: uint16(13079), + 1315: uint16(13072), + 1316: uint16(13083), + 1317: uint16(13084), + 1318: uint16(10819), + 1319: uint16(7498), + 1320: uint16(13086), + 1321: uint16(13087), + 1322: uint16(13085), + 1323: uint16(13089), + 1324: uint16(9751), + 1325: uint16(3911), + 1326: uint16(10293), + 1327: uint16(13090), + 1328: uint16(7516), + 1329: uint16(6936), + 1330: uint16(9788), + 1331: uint16(4943), + 1332: uint16(6474), + 1333: uint16(10808), + 1334: uint16(9489), + 1335: uint16(5719), + 1336: uint16(8494), + 1337: uint16(13088), + 1338: uint16(13091), + 1339: uint16(8483), + 1340: uint16(13092), + 1341: uint16(13093), + 1342: uint16(13095), + 1343: uint16(9032), + 1344: uint16(4877), + 1345: uint16(21248), + 1346: uint16(4160), + 1347: uint16(10578), + 1348: uint16(7499), + 1349: uint16(9255), + 1350: uint16(6469), + 1351: uint16(13101), + 1352: uint16(10524), + 1353: uint16(11580), + 1354: uint16(4435), + 1355: uint16(13097), + 1356: uint16(8217), + 1357: uint16(13100), + 1358: uint16(9282), + 1359: uint16(9256), + 1360: uint16(9283), + 1361: uint16(10008), + 1362: uint16(9004), + 1363: uint16(6440), + 1364: uint16(13096), + 1365: uint16(4181), + 1366: uint16(9237), + 1367: uint16(13098), + 1368: uint16(13094), + 1369: uint16(7727), + 1370: uint16(13102), + 1371: uint16(7213), + 1372: uint16(5388), + 1373: uint16(13103), + 1374: uint16(10567), + 1375: uint16(8284), + 1376: uint16(8997), + 1377: uint16(13105), + 1378: uint16(10798), + 1379: uint16(13106), + 1380: uint16(13111), + 1381: uint16(10510), + 1382: uint16(13110), + 1383: uint16(13104), + 1384: uint16(13107), + 1385: uint16(13109), + 1386: uint16(6405), + 1387: uint16(10536), + 1388: uint16(13112), + 1389: uint16(8740), + 1390: uint16(4436), + 1391: uint16(7500), + 1392: uint16(13114), + 1393: uint16(13113), + 1394: uint16(6215), + 1395: uint16(13115), + 1396: uint16(13117), + 1397: uint16(13116), + 1398: uint16(13119), + 1399: uint16(13108), + 1400: uint16(13121), + 1401: uint16(13120), + 1402: uint16(13118), + 1403: uint16(6701), + 1404: uint16(7728), + 1405: uint16(8243), + 1406: uint16(13122), + 1407: uint16(7963), + 1408: uint16(3916), + 1409: uint16(9795), + 1410: uint16(9018), + 1411: uint16(13124), + 1412: uint16(13123), + 1413: uint16(13125), + 1414: uint16(13126), + 1415: uint16(13127), + 1416: uint16(13128), + 1417: uint16(10544), + 1418: uint16(13129), + 1419: uint16(4389), + 1420: uint16(13130), + 1421: uint16(11291), + 1422: uint16(4623), + 1423: uint16(12584), + 1424: uint16(7207), + 1425: uint16(8478), + 1426: uint16(13131), + 1427: uint16(11082), + 1428: uint16(11027), + 1429: uint16(13133), + 1430: uint16(8518), + 1431: uint16(9238), + 1432: uint16(8479), + 1433: uint16(10294), + 1434: uint16(13134), + 1435: uint16(13135), + 1436: uint16(4186), + 1437: uint16(6937), + 1438: uint16(13136), + 1439: uint16(3887), + 1440: uint16(13137), + 1441: uint16(13138), + 1442: uint16(4161), + 1443: uint16(4944), + 1444: uint16(9535), + 1445: uint16(10579), + 1446: uint16(13142), + 1447: uint16(8244), + 1448: uint16(13141), + 1449: uint16(5663), + 1450: uint16(10810), + 1451: uint16(13140), + 1452: uint16(9284), + 1453: uint16(13144), + 1454: uint16(13143), + 1455: uint16(13146), + 1456: uint16(13145), + 1457: uint16(4187), + 1458: uint16(13147), + 1459: uint16(7432), + 1460: uint16(13149), + 1461: uint16(8708), + 1462: uint16(13148), + 1463: uint16(10514), + 1464: uint16(7254), + 1465: uint16(9274), + 1466: uint16(13312), + 1467: uint16(6148), + 1468: uint16(13313), + 1469: uint16(9728), + 1470: uint16(10045), + 1471: uint16(11056), + 1472: uint16(9732), + 1473: uint16(13322), + 1474: uint16(5143), + 1475: uint16(11300), + 1476: uint16(11022), + 1477: uint16(13579), + 1478: uint16(13314), + 1479: uint16(13317), + 1480: uint16(8484), + 1481: uint16(10775), + 1482: uint16(9257), + 1483: uint16(13318), + 1484: uint16(10820), + 1485: uint16(6441), + 1486: uint16(7433), + 1487: uint16(13319), + 1488: uint16(6703), + 1489: uint16(6702), + 1490: uint16(3864), + 1491: uint16(5927), + 1492: uint16(7946), + 1493: uint16(3888), + 1494: uint16(13323), + 1495: uint16(13324), + 1496: uint16(13321), + 1497: uint16(4119), + 1498: uint16(4878), + 1499: uint16(13320), + 1500: uint16(11044), + 1501: uint16(10256), + 1502: uint16(3847), + 1503: uint16(3928), + 1504: uint16(6704), + 1505: uint16(3889), + 1506: uint16(3842), + 1507: uint16(13329), + 1508: uint16(13327), + 1509: uint16(11035), + 1510: uint16(13330), + 1511: uint16(13328), + 1512: uint16(13326), + 1513: uint16(7696), + 1514: uint16(13325), + 1515: uint16(10553), + 1516: uint16(5955), + 1517: uint16(13334), + 1518: uint16(13335), + 1519: uint16(7434), + 1520: uint16(13331), + 1521: uint16(11787), + 1522: uint16(9771), + 1523: uint16(13333), + 1524: uint16(6406), + 1525: uint16(13336), + 1526: uint16(10295), + 1527: uint16(13337), + 1528: uint16(13332), + 1529: uint16(11034), + 1530: uint16(9789), + 1531: uint16(13338), + 1532: uint16(10257), + 1533: uint16(13339), + 1534: uint16(13343), + 1535: uint16(13340), + 1536: uint16(4390), + 1537: uint16(13342), + 1538: uint16(6938), + 1539: uint16(13341), + 1540: uint16(5720), + 1541: uint16(13355), + 1542: uint16(13348), + 1543: uint16(13345), + 1544: uint16(8771), + 1545: uint16(13344), + 1546: uint16(13346), + 1547: uint16(13347), + 1548: uint16(13349), + 1549: uint16(13350), + 1550: uint16(4945), + 1551: uint16(13352), + 1552: uint16(13351), + 1553: uint16(13353), + 1554: uint16(7501), + 1555: uint16(13356), + 1556: uint16(9019), + 1557: uint16(4132), + 1558: uint16(13354), + 1559: uint16(13357), + 1560: uint16(13358), + 1561: uint16(13361), + 1562: uint16(13359), + 1563: uint16(13360), + 1564: uint16(6705), + 1565: uint16(13362), + 1566: uint16(6149), + 1567: uint16(13363), + 1568: uint16(6745), + 1569: uint16(8471), + 1570: uint16(13364), + 1571: uint16(13365), + 1572: uint16(6713), + 1573: uint16(6150), + 1574: uint16(11057), + 1575: uint16(5127), + 1576: uint16(5928), + 1577: uint16(13366), + 1578: uint16(4663), + 1579: uint16(13367), + 1580: uint16(8472), + 1581: uint16(13368), + 1582: uint16(13570), + 1583: uint16(13369), + 1584: uint16(13370), + 1585: uint16(13371), + 1586: uint16(13373), + 1587: uint16(13374), + 1588: uint16(13375), + 1589: uint16(8527), + 1590: uint16(4102), + 1591: uint16(6984), + 1592: uint16(3873), + 1593: uint16(8246), + 1594: uint16(4879), + 1595: uint16(6932), + 1596: uint16(6151), + 1597: uint16(9285), + 1598: uint16(7168), + 1599: uint16(4880), + 1600: uint16(8775), + 1601: uint16(9033), + 1602: uint16(3863), + 1603: uint16(5144), + 1604: uint16(10580), + 1605: uint16(6945), + 1606: uint16(5169), + 1607: uint16(8010), + 1608: uint16(6939), + 1609: uint16(11271), + 1610: uint16(13376), + 1611: uint16(5179), + 1612: uint16(6442), + 1613: uint16(4625), + 1614: uint16(4162), + 1615: uint16(7435), + 1616: uint16(4391), + 1617: uint16(13377), + 1618: uint16(11301), + 1619: uint16(7208), + 1620: uint16(6979), + 1621: uint16(13378), + 1622: uint16(4946), + 1623: uint16(9521), + 1624: uint16(11016), + 1625: uint16(13379), + 1626: uint16(13380), + 1627: uint16(10296), + 1628: uint16(13382), + 1629: uint16(4871), + 1630: uint16(5462), + 1631: uint16(13381), + 1632: uint16(4881), + 1633: uint16(7697), + 1634: uint16(13386), + 1635: uint16(6656), + 1636: uint16(4392), + 1637: uint16(13385), + 1638: uint16(13383), + 1639: uint16(13387), + 1640: uint16(13384), + 1641: uint16(9738), + 1642: uint16(15148), + 1643: uint16(7698), + 1644: uint16(13388), + 1645: uint16(11551), + 1646: uint16(13389), + 1647: uint16(13391), + 1648: uint16(8797), + 1649: uint16(13390), + 1650: uint16(7938), + 1651: uint16(6746), + 1652: uint16(8495), + 1653: uint16(6998), + 1654: uint16(10324), + 1655: uint16(8011), + 1656: uint16(6956), + 1657: uint16(13392), + 1658: uint16(7436), + 1659: uint16(13393), + 1660: uint16(13394), + 1661: uint16(3890), + 1662: uint16(8473), + 1663: uint16(7729), + 1664: uint16(13395), + 1665: uint16(9490), + 1666: uint16(7437), + 1667: uint16(7438), + 1668: uint16(13396), + 1669: uint16(8012), + 1670: uint16(7439), + 1671: uint16(13397), + 1672: uint16(13398), + 1673: uint16(11071), + 1674: uint16(13399), + 1675: uint16(5413), + 1676: uint16(7169), + 1677: uint16(13400), + 1678: uint16(13401), + 1679: uint16(6971), + 1680: uint16(7691), + 1681: uint16(9555), + 1682: uint16(7731), + 1683: uint16(10071), + 1684: uint16(9729), + 1685: uint16(5416), + 1686: uint16(13402), + 1687: uint16(5198), + 1688: uint16(13403), + 1689: uint16(5469), + 1690: uint16(9518), + 1691: uint16(4367), + 1692: uint16(6706), + 1693: uint16(13404), + 1694: uint16(13569), + 1695: uint16(13568), + 1696: uint16(5468), + 1697: uint16(13405), + 1698: uint16(9239), + 1699: uint16(8463), + 1700: uint16(9258), + 1701: uint16(6951), + 1702: uint16(8247), + 1703: uint16(11353), + 1704: uint16(13571), + 1705: uint16(13572), + 1706: uint16(9525), + 1707: uint16(6674), + 1708: uint16(13574), + 1709: uint16(13575), + 1710: uint16(13576), + 1711: uint16(4947), + 1712: uint16(13577), + 1713: uint16(13578), + 1714: uint16(4363), + 1715: uint16(8218), + 1716: uint16(4931), + 1717: uint16(13580), + 1718: uint16(11015), + 1719: uint16(8497), + 1720: uint16(4664), + 1721: uint16(13582), + 1722: uint16(13584), + 1723: uint16(4926), + 1724: uint16(13581), + 1725: uint16(13583), + 1726: uint16(13586), + 1727: uint16(13585), + 1728: uint16(13587), + 1729: uint16(13588), + 1730: uint16(9500), + 1731: uint16(5389), + 1732: uint16(4420), + 1733: uint16(13589), + 1734: uint16(13594), + 1735: uint16(13592), + 1736: uint16(10582), + 1737: uint16(10581), + 1738: uint16(9286), + 1739: uint16(13591), + 1740: uint16(7219), + 1741: uint16(13590), + 1742: uint16(7761), + 1743: uint16(13595), + 1744: uint16(6473), + 1745: uint16(13601), + 1746: uint16(13602), + 1747: uint16(13596), + 1748: uint16(4626), + 1749: uint16(13597), + 1750: uint16(13606), + 1751: uint16(13605), + 1752: uint16(13604), + 1753: uint16(13600), + 1754: uint16(13599), + 1755: uint16(13603), + 1756: uint16(10583), + 1757: uint16(13610), + 1758: uint16(13607), + 1759: uint16(13609), + 1760: uint16(11345), + 1761: uint16(13608), + 1762: uint16(13598), + 1763: uint16(7762), + 1764: uint16(13611), + 1765: uint16(6422), + 1766: uint16(13612), + 1767: uint16(13613), + 1768: uint16(13616), + 1769: uint16(13615), + 1770: uint16(13614), + 1771: uint16(9287), + 1772: uint16(13593), + 1773: uint16(13622), + 1774: uint16(13618), + 1775: uint16(13617), + 1776: uint16(13619), + 1777: uint16(13620), + 1778: uint16(13623), + 1779: uint16(11589), + 1780: uint16(13624), + 1781: uint16(13621), + 1782: uint16(13625), + 1783: uint16(4927), + 1784: uint16(13626), + 1785: uint16(13628), + 1786: uint16(13627), + 1787: uint16(13629), + 1788: uint16(13630), + 1789: uint16(8013), + 1790: uint16(7170), + 1791: uint16(7235), + 1792: uint16(8258), + 1793: uint16(6152), + 1794: uint16(6423), + 1795: uint16(6153), + 1796: uint16(5199), + 1797: uint16(13631), + 1798: uint16(6424), + 1799: uint16(5929), + 1800: uint16(13632), + 1801: uint16(11013), + 1802: uint16(9762), + 1803: uint16(13633), + 1804: uint16(6154), + 1805: uint16(4875), + 1806: uint16(8710), + 1807: uint16(5425), + 1808: uint16(6707), + 1809: uint16(10298), + 1810: uint16(10016), + 1811: uint16(13634), + 1812: uint16(4948), + 1813: uint16(13637), + 1814: uint16(8960), + 1815: uint16(13636), + 1816: uint16(13635), + 1817: uint16(13638), + 1818: uint16(9034), + 1819: uint16(7746), + 1820: uint16(6708), + 1821: uint16(7977), + 1822: uint16(8498), + 1823: uint16(5121), + 1824: uint16(8961), + 1825: uint16(13639), + 1826: uint16(13640), + 1827: uint16(7502), + 1828: uint16(10776), + 1829: uint16(13643), + 1830: uint16(13642), + 1831: uint16(13641), + 1832: uint16(10332), + 1833: uint16(13650), + 1834: uint16(10809), + 1835: uint16(13644), + 1836: uint16(13646), + 1837: uint16(10826), + 1838: uint16(13645), + 1839: uint16(13647), + 1840: uint16(9991), + 1841: uint16(13648), + 1842: uint16(10525), + 1843: uint16(13649), + 1844: uint16(4882), + 1845: uint16(10526), + 1846: uint16(9742), + 1847: uint16(13651), + 1848: uint16(13652), + 1849: uint16(6155), + 1850: uint16(4883), + 1851: uint16(13653), + 1852: uint16(5911), + 1853: uint16(11299), + 1854: uint16(11272), + 1855: uint16(4949), + 1856: uint16(13655), + 1857: uint16(8962), + 1858: uint16(6156), + 1859: uint16(7440), + 1860: uint16(10046), + 1861: uint16(7441), + 1862: uint16(7255), + 1863: uint16(9035), + 1864: uint16(10584), + 1865: uint16(9240), + 1866: uint16(6157), + 1867: uint16(10299), + 1868: uint16(13656), + 1869: uint16(9272), + 1870: uint16(6433), + 1871: uint16(5930), + 1872: uint16(9036), + 1873: uint16(3874), + 1874: uint16(7245), + 1875: uint16(6158), + 1876: uint16(11302), + 1877: uint16(13657), + 1878: uint16(13658), + 1879: uint16(9776), + 1880: uint16(13659), + 1881: uint16(11606), + 1882: uint16(11788), + 1883: uint16(13661), + 1884: uint16(13660), + 1885: uint16(4646), + 1886: uint16(13824), + 1887: uint16(13827), + 1888: uint16(13828), + 1889: uint16(13826), + 1890: uint16(10271), + 1891: uint16(7442), + 1892: uint16(13830), + 1893: uint16(13829), + 1894: uint16(13825), + 1895: uint16(13831), + 1896: uint16(13832), + 1897: uint16(13833), + 1898: uint16(13836), + 1899: uint16(13834), + 1900: uint16(13835), + 1901: uint16(13837), + 1902: uint16(4163), + 1903: uint16(9037), + 1904: uint16(13838), + 1905: uint16(5721), + 1906: uint16(4437), + 1907: uint16(9749), + 1908: uint16(13839), + 1909: uint16(9562), + 1910: uint16(10554), + 1911: uint16(13840), + 1912: uint16(11789), + 1913: uint16(13841), + 1914: uint16(10527), + 1915: uint16(13844), + 1916: uint16(12032), + 1917: uint16(12048), + 1918: uint16(6927), + 1919: uint16(9556), + 1920: uint16(13845), + 1921: uint16(5180), + 1922: uint16(8963), + 1923: uint16(3929), + 1924: uint16(13846), + 1925: uint16(10501), + 1926: uint16(6159), + 1927: uint16(8751), + 1928: uint16(9038), + 1929: uint16(11086), + 1930: uint16(5912), + 1931: uint16(5931), + 1932: uint16(13847), + 1933: uint16(13848), + 1934: uint16(13854), + 1935: uint16(6980), + 1936: uint16(8964), + 1937: uint16(5390), + 1938: uint16(13849), + 1939: uint16(10250), + 1940: uint16(8741), + 1941: uint16(13850), + 1942: uint16(13851), + 1943: uint16(5391), + 1944: uint16(13852), + 1945: uint16(13853), + 1946: uint16(13855), + 1947: uint16(9301), + 1948: uint16(13856), + 1949: uint16(13857), + 1950: uint16(13858), + 1951: uint16(13843), + 1952: uint16(13842), + 1953: uint16(13859), + 1954: uint16(5664), + 1955: uint16(10246), + 1956: uint16(6443), + 1957: uint16(10262), + 1958: uint16(8965), + 1959: uint16(10282), + 1960: uint16(13860), + 1961: uint16(7443), + 1962: uint16(4133), + 1963: uint16(13861), + 1964: uint16(13862), + 1965: uint16(11089), + 1966: uint16(10047), + 1967: uint16(13865), + 1968: uint16(4188), + 1969: uint16(7947), + 1970: uint16(13864), + 1971: uint16(13863), + 1972: uint16(5665), + 1973: uint16(8499), + 1974: uint16(13869), + 1975: uint16(13867), + 1976: uint16(13866), + 1977: uint16(11526), + 1978: uint16(5956), + 1979: uint16(7256), + 1980: uint16(13868), + 1981: uint16(9259), + 1982: uint16(7197), + 1983: uint16(9503), + 1984: uint16(13872), + 1985: uint16(13871), + 1986: uint16(13870), + 1987: uint16(13873), + 1988: uint16(5957), + 1989: uint16(13874), + 1990: uint16(10331), + 1991: uint16(7226), + 1992: uint16(13875), + 1993: uint16(10072), + 1994: uint16(9504), + 1995: uint16(8966), + 1996: uint16(9231), + 1997: uint16(13876), + 1998: uint16(5130), + 1999: uint16(7699), + 2000: uint16(10251), + 2001: uint16(4950), + 2002: uint16(9733), + 2003: uint16(13877), + 2004: uint16(6709), + 2005: uint16(10777), + 2006: uint16(10778), + 2007: uint16(4189), + 2008: uint16(13882), + 2009: uint16(8776), + 2010: uint16(13879), + 2011: uint16(4438), + 2012: uint16(14092), + 2013: uint16(13881), + 2014: uint16(9743), + 2015: uint16(13880), + 2016: uint16(13878), + 2017: uint16(6233), + 2018: uint16(13884), + 2019: uint16(13890), + 2020: uint16(13896), + 2021: uint16(13888), + 2022: uint16(9275), + 2023: uint16(13893), + 2024: uint16(10300), + 2025: uint16(13887), + 2026: uint16(13892), + 2027: uint16(11590), + 2028: uint16(6710), + 2029: uint16(8500), + 2030: uint16(13885), + 2031: uint16(5181), + 2032: uint16(13895), + 2033: uint16(7948), + 2034: uint16(4164), + 2035: uint16(13889), + 2036: uint16(4439), + 2037: uint16(13894), + 2038: uint16(5392), + 2039: uint16(13891), + 2040: uint16(13897), + 2041: uint16(13899), + 2042: uint16(13909), + 2043: uint16(13907), + 2044: uint16(13904), + 2045: uint16(13903), + 2046: uint16(11607), + 2047: uint16(13905), + 2048: uint16(5393), + 2049: uint16(6160), + 2050: uint16(7257), + 2051: uint16(13912), + 2052: uint16(13898), + 2053: uint16(13902), + 2054: uint16(13886), + 2055: uint16(4441), + 2056: uint16(13906), + 2057: uint16(13908), + 2058: uint16(8752), + 2059: uint16(6407), + 2060: uint16(4375), + 2061: uint16(13900), + 2062: uint16(13911), + 2063: uint16(13910), + 2064: uint16(5394), + 2065: uint16(8456), + 2066: uint16(4677), + 2067: uint16(5666), + 2068: uint16(13901), + 2069: uint16(13913), + 2070: uint16(13916), + 2071: uint16(14080), + 2072: uint16(6940), + 2073: uint16(14086), + 2074: uint16(9039), + 2075: uint16(13914), + 2076: uint16(14084), + 2077: uint16(4440), + 2078: uint16(14082), + 2079: uint16(14083), + 2080: uint16(13917), + 2081: uint16(14081), + 2082: uint16(5958), + 2083: uint16(11273), + 2084: uint16(4884), + 2085: uint16(4152), + 2086: uint16(14085), + 2087: uint16(9753), + 2088: uint16(3852), + 2089: uint16(10048), + 2090: uint16(13883), + 2091: uint16(14091), + 2092: uint16(14095), + 2093: uint16(11076), + 2094: uint16(14088), + 2095: uint16(9288), + 2096: uint16(14093), + 2097: uint16(7503), + 2098: uint16(14094), + 2099: uint16(9526), + 2100: uint16(11814), + 2101: uint16(14090), + 2102: uint16(14096), + 2103: uint16(6234), + 2104: uint16(7978), + 2105: uint16(3891), + 2106: uint16(14089), + 2107: uint16(14087), + 2108: uint16(8249), + 2109: uint16(13915), + 2110: uint16(6675), + 2111: uint16(8485), + 2112: uint16(14108), + 2113: uint16(8250), + 2114: uint16(14103), + 2115: uint16(14100), + 2116: uint16(14101), + 2117: uint16(6981), + 2118: uint16(14104), + 2119: uint16(14107), + 2120: uint16(14102), + 2121: uint16(7172), + 2122: uint16(14105), + 2123: uint16(14099), + 2124: uint16(11099), + 2125: uint16(11098), + 2126: uint16(14109), + 2127: uint16(14110), + 2128: uint16(3892), + 2129: uint16(14098), + 2130: uint16(5457), + 2131: uint16(3845), + 2132: uint16(4885), + 2133: uint16(14106), + 2134: uint16(14114), + 2135: uint16(14113), + 2136: uint16(14118), + 2137: uint16(14119), + 2138: uint16(14117), + 2139: uint16(14120), + 2140: uint16(14112), + 2141: uint16(14116), + 2142: uint16(14121), + 2143: uint16(14122), + 2144: uint16(14111), + 2145: uint16(6747), + 2146: uint16(14115), + 2147: uint16(8501), + 2148: uint16(6161), + 2149: uint16(14097), + 2150: uint16(7700), + 2151: uint16(14135), + 2152: uint16(10568), + 2153: uint16(14125), + 2154: uint16(14126), + 2155: uint16(14127), + 2156: uint16(14134), + 2157: uint16(14133), + 2158: uint16(10844), + 2159: uint16(4886), + 2160: uint16(14131), + 2161: uint16(5668), + 2162: uint16(4627), + 2163: uint16(14128), + 2164: uint16(11543), + 2165: uint16(14130), + 2166: uint16(3893), + 2167: uint16(14132), + 2168: uint16(14123), + 2169: uint16(14129), + 2170: uint16(14136), + 2171: uint16(5667), + 2172: uint16(14124), + 2173: uint16(11324), + 2174: uint16(11274), + 2175: uint16(14139), + 2176: uint16(14143), + 2177: uint16(8285), + 2178: uint16(11608), + 2179: uint16(14144), + 2180: uint16(14141), + 2181: uint16(14138), + 2182: uint16(14137), + 2183: uint16(14142), + 2184: uint16(10511), + 2185: uint16(9491), + 2186: uint16(5669), + 2187: uint16(14145), + 2188: uint16(14140), + 2189: uint16(14146), + 2190: uint16(5722), + 2191: uint16(4368), + 2192: uint16(14154), + 2193: uint16(4887), + 2194: uint16(14152), + 2195: uint16(14153), + 2196: uint16(6408), + 2197: uint16(14151), + 2198: uint16(14149), + 2199: uint16(14148), + 2200: uint16(14155), + 2201: uint16(14147), + 2202: uint16(14157), + 2203: uint16(4442), + 2204: uint16(14159), + 2205: uint16(14158), + 2206: uint16(8967), + 2207: uint16(14162), + 2208: uint16(14160), + 2209: uint16(14150), + 2210: uint16(5723), + 2211: uint16(14161), + 2212: uint16(14165), + 2213: uint16(14164), + 2214: uint16(14166), + 2215: uint16(14163), + 2216: uint16(14167), + 2217: uint16(14168), + 2218: uint16(14169), + 2219: uint16(10569), + 2220: uint16(14171), + 2221: uint16(14170), + 2222: uint16(7198), + 2223: uint16(7949), + 2224: uint16(4421), + 2225: uint16(4443), + 2226: uint16(14172), + 2227: uint16(3870), + 2228: uint16(7979), + 2229: uint16(14173), + 2230: uint16(19234), + 2231: uint16(14336), + 2232: uint16(5696), + 2233: uint16(14337), + 2234: uint16(8014), + 2235: uint16(14338), + 2236: uint16(14339), + 2237: uint16(5145), + 2238: uint16(14340), + 2239: uint16(14341), + 2240: uint16(14342), + 2241: uint16(8502), + 2242: uint16(5932), + 2243: uint16(11072), + 2244: uint16(10779), + 2245: uint16(7241), + 2246: uint16(14343), + 2247: uint16(8015), + 2248: uint16(19740), + 2249: uint16(10049), + 2250: uint16(6985), + 2251: uint16(6444), + 2252: uint16(14344), + 2253: uint16(8486), + 2254: uint16(10502), + 2255: uint16(8528), + 2256: uint16(14347), + 2257: uint16(14345), + 2258: uint16(14348), + 2259: uint16(14346), + 2260: uint16(14349), + 2261: uint16(10512), + 2262: uint16(3862), + 2263: uint16(10301), + 2264: uint16(10050), + 2265: uint16(14350), + 2266: uint16(14353), + 2267: uint16(7444), + 2268: uint16(5146), + 2269: uint16(14351), + 2270: uint16(14358), + 2271: uint16(7445), + 2272: uint16(14352), + 2273: uint16(9763), + 2274: uint16(11325), + 2275: uint16(14354), + 2276: uint16(14355), + 2277: uint16(14359), + 2278: uint16(9289), + 2279: uint16(14356), + 2280: uint16(6162), + 2281: uint16(7997), + 2282: uint16(14373), + 2283: uint16(10003), + 2284: uint16(8529), + 2285: uint16(10051), + 2286: uint16(14604), + 2287: uint16(10585), + 2288: uint16(9040), + 2289: uint16(10836), + 2290: uint16(14362), + 2291: uint16(4352), + 2292: uint16(8777), + 2293: uint16(14371), + 2294: uint16(8723), + 2295: uint16(14365), + 2296: uint16(14372), + 2297: uint16(14367), + 2298: uint16(14374), + 2299: uint16(14370), + 2300: uint16(14369), + 2301: uint16(9806), + 2302: uint16(14363), + 2303: uint16(4444), + 2304: uint16(14361), + 2305: uint16(5200), + 2306: uint16(8530), + 2307: uint16(14357), + 2308: uint16(14360), + 2309: uint16(6163), + 2310: uint16(7994), + 2311: uint16(7446), + 2312: uint16(14368), + 2313: uint16(9777), + 2314: uint16(5201), + 2315: uint16(4647), + 2316: uint16(4678), + 2317: uint16(7680), + 2318: uint16(14376), + 2319: uint16(14381), + 2320: uint16(14377), + 2321: uint16(5724), + 2322: uint16(14382), + 2323: uint16(6657), + 2324: uint16(6216), + 2325: uint16(7173), + 2326: uint16(14364), + 2327: uint16(6748), + 2328: uint16(14379), + 2329: uint16(6711), + 2330: uint16(14380), + 2331: uint16(3875), + 2332: uint16(14375), + 2333: uint16(8968), + 2334: uint16(5202), + 2335: uint16(5395), + 2336: uint16(14378), + 2337: uint16(3846), + 2338: uint16(6434), + 2339: uint16(7701), + 2340: uint16(9041), + 2341: uint16(10035), + 2342: uint16(14384), + 2343: uint16(8253), + 2344: uint16(8457), + 2345: uint16(6666), + 2346: uint16(14385), + 2347: uint16(14387), + 2348: uint16(14383), + 2349: uint16(10560), + 2350: uint16(8988), + 2351: uint16(8251), + 2352: uint16(10586), + 2353: uint16(6957), + 2354: uint16(14399), + 2355: uint16(14398), + 2356: uint16(7767), + 2357: uint16(5725), + 2358: uint16(14392), + 2359: uint16(7448), + 2360: uint16(9543), + 2361: uint16(9744), + 2362: uint16(14390), + 2363: uint16(8252), + 2364: uint16(6999), + 2365: uint16(14395), + 2366: uint16(7447), + 2367: uint16(14389), + 2368: uint16(14394), + 2369: uint16(9778), + 2370: uint16(14388), + 2371: uint16(5632), + 2372: uint16(4668), + 2373: uint16(14396), + 2374: uint16(11530), + 2375: uint16(6445), + 2376: uint16(8724), + 2377: uint16(14393), + 2378: uint16(7995), + 2379: uint16(6164), + 2380: uint16(7747), + 2381: uint16(4165), + 2382: uint16(8219), + 2383: uint16(14391), + 2384: uint16(5156), + 2385: uint16(5670), + 2386: uint16(9006), + 2387: uint16(14397), + 2388: uint16(8254), + 2389: uint16(14400), + 2390: uint16(14402), + 2391: uint16(8470), + 2392: uint16(14408), + 2393: uint16(14403), + 2394: uint16(14405), + 2395: uint16(10272), + 2396: uint16(9042), + 2397: uint16(14406), + 2398: uint16(11275), + 2399: uint16(11303), + 2400: uint16(4888), + 2401: uint16(3853), + 2402: uint16(14404), + 2403: uint16(14401), + 2404: uint16(4951), + 2405: uint16(4166), + 2406: uint16(14407), + 2407: uint16(11304), + 2408: uint16(14411), + 2409: uint16(8474), + 2410: uint16(14418), + 2411: uint16(14412), + 2412: uint16(14409), + 2413: uint16(14416), + 2414: uint16(14386), + 2415: uint16(14413), + 2416: uint16(14417), + 2417: uint16(10017), + 2418: uint16(9290), + 2419: uint16(14410), + 2420: uint16(14414), + 2421: uint16(5671), + 2422: uint16(6480), + 2423: uint16(7996), + 2424: uint16(14422), + 2425: uint16(9221), + 2426: uint16(14419), + 2427: uint16(10815), + 2428: uint16(14420), + 2429: uint16(14421), + 2430: uint16(11053), + 2431: uint16(7937), + 2432: uint16(5697), + 2433: uint16(14428), + 2434: uint16(6676), + 2435: uint16(14425), + 2436: uint16(14424), + 2437: uint16(9745), + 2438: uint16(9492), + 2439: uint16(9232), + 2440: uint16(14426), + 2441: uint16(14427), + 2442: uint16(10318), + 2443: uint16(9764), + 2444: uint16(6658), + 2445: uint16(8016), + 2446: uint16(10799), + 2447: uint16(4648), + 2448: uint16(14596), + 2449: uint16(14429), + 2450: uint16(11305), + 2451: uint16(14598), + 2452: uint16(14594), + 2453: uint16(14595), + 2454: uint16(8255), + 2455: uint16(14593), + 2456: uint16(14366), + 2457: uint16(14597), + 2458: uint16(14592), + 2459: uint16(14602), + 2460: uint16(14603), + 2461: uint16(9222), + 2462: uint16(14605), + 2463: uint16(6659), + 2464: uint16(14600), + 2465: uint16(5147), + 2466: uint16(14606), + 2467: uint16(14599), + 2468: uint16(14610), + 2469: uint16(14609), + 2470: uint16(14608), + 2471: uint16(14611), + 2472: uint16(14613), + 2473: uint16(7504), + 2474: uint16(14612), + 2475: uint16(14616), + 2476: uint16(14614), + 2477: uint16(14615), + 2478: uint16(14415), + 2479: uint16(14618), + 2480: uint16(14617), + 2481: uint16(14423), + 2482: uint16(14619), + 2483: uint16(14607), + 2484: uint16(6712), + 2485: uint16(14620), + 2486: uint16(14621), + 2487: uint16(14623), + 2488: uint16(14622), + 2489: uint16(14624), + 2490: uint16(4445), + 2491: uint16(6165), + 2492: uint16(10587), + 2493: uint16(7950), + 2494: uint16(5933), + 2495: uint16(14626), + 2496: uint16(14629), + 2497: uint16(10289), + 2498: uint16(5182), + 2499: uint16(14628), + 2500: uint16(14627), + 2501: uint16(9779), + 2502: uint16(14630), + 2503: uint16(5396), + 2504: uint16(14632), + 2505: uint16(14631), + 2506: uint16(4889), + 2507: uint16(6677), + 2508: uint16(9527), + 2509: uint16(5672), + 2510: uint16(7763), + 2511: uint16(14633), + 2512: uint16(7951), + 2513: uint16(9223), + 2514: uint16(10302), + 2515: uint16(14634), + 2516: uint16(14635), + 2517: uint16(14636), + 2518: uint16(10519), + 2519: uint16(13372), + 2520: uint16(7973), + 2521: uint16(10283), + 2522: uint16(6455), + 2523: uint16(10052), + 2524: uint16(10018), + 2525: uint16(9260), + 2526: uint16(11552), + 2527: uint16(14638), + 2528: uint16(6959), + 2529: uint16(14639), + 2530: uint16(3861), + 2531: uint16(5427), + 2532: uint16(7980), + 2533: uint16(10303), + 2534: uint16(14640), + 2535: uint16(6689), + 2536: uint16(8742), + 2537: uint16(6714), + 2538: uint16(7702), + 2539: uint16(14641), + 2540: uint16(10588), + 2541: uint16(4182), + 2542: uint16(6715), + 2543: uint16(14644), + 2544: uint16(14642), + 2545: uint16(14645), + 2546: uint16(11544), + 2547: uint16(14643), + 2548: uint16(8026), + 2549: uint16(14646), + 2550: uint16(8465), + 2551: uint16(14647), + 2552: uint16(4953), + 2553: uint16(14649), + 2554: uint16(14648), + 2555: uint16(14650), + 2556: uint16(14651), + 2557: uint16(4954), + 2558: uint16(9563), + 2559: uint16(8725), + 2560: uint16(5195), + 2561: uint16(6716), + 2562: uint16(8256), + 2563: uint16(7227), + 2564: uint16(3855), + 2565: uint16(14652), + 2566: uint16(4353), + 2567: uint16(14656), + 2568: uint16(6166), + 2569: uint16(14655), + 2570: uint16(6410), + 2571: uint16(7449), + 2572: uint16(14654), + 2573: uint16(7450), + 2574: uint16(11039), + 2575: uint16(6409), + 2576: uint16(3894), + 2577: uint16(7981), + 2578: uint16(14661), + 2579: uint16(7952), + 2580: uint16(4134), + 2581: uint16(7220), + 2582: uint16(10821), + 2583: uint16(6481), + 2584: uint16(7451), + 2585: uint16(7942), + 2586: uint16(14660), + 2587: uint16(14658), + 2588: uint16(14659), + 2589: uint16(8778), + 2590: uint16(14853), + 2591: uint16(14665), + 2592: uint16(6749), + 2593: uint16(6167), + 2594: uint16(14663), + 2595: uint16(14664), + 2596: uint16(7703), + 2597: uint16(14662), + 2598: uint16(6670), + 2599: uint16(14667), + 2600: uint16(14666), + 2601: uint16(14671), + 2602: uint16(14672), + 2603: uint16(14668), + 2604: uint16(4609), + 2605: uint16(14669), + 2606: uint16(14670), + 2607: uint16(10036), + 2608: uint16(10304), + 2609: uint16(5673), + 2610: uint16(14673), + 2611: uint16(7953), + 2612: uint16(7452), + 2613: uint16(8753), + 2614: uint16(5414), + 2615: uint16(14674), + 2616: uint16(14678), + 2617: uint16(4394), + 2618: uint16(14675), + 2619: uint16(14677), + 2620: uint16(14676), + 2621: uint16(7242), + 2622: uint16(8743), + 2623: uint16(3876), + 2624: uint16(14679), + 2625: uint16(14680), + 2626: uint16(8969), + 2627: uint16(11600), + 2628: uint16(6690), + 2629: uint16(10570), + 2630: uint16(10780), + 2631: uint16(14849), + 2632: uint16(14682), + 2633: uint16(14685), + 2634: uint16(14684), + 2635: uint16(14681), + 2636: uint16(14848), + 2637: uint16(9533), + 2638: uint16(14683), + 2639: uint16(14850), + 2640: uint16(7243), + 2641: uint16(14851), + 2642: uint16(11306), + 2643: uint16(9815), + 2644: uint16(14852), + 2645: uint16(14854), + 2646: uint16(14855), + 2647: uint16(14856), + 2648: uint16(5417), + 2649: uint16(4135), + 2650: uint16(6168), + 2651: uint16(14857), + 2652: uint16(14858), + 2653: uint16(7248), + 2654: uint16(8257), + 2655: uint16(12599), + 2656: uint16(8221), + 2657: uint16(8220), + 2658: uint16(8503), + 2659: uint16(6438), + 2660: uint16(12113), + 2661: uint16(5709), + 2662: uint16(11276), + 2663: uint16(10589), + 2664: uint16(10333), + 2665: uint16(14859), + 2666: uint16(6482), + 2667: uint16(8990), + 2668: uint16(14860), + 2669: uint16(11790), + 2670: uint16(10781), + 2671: uint16(8970), + 2672: uint16(14861), + 2673: uint16(4955), + 2674: uint16(14862), + 2675: uint16(14863), + 2676: uint16(11065), + 2677: uint16(11011), + 2678: uint16(10837), + 2679: uint16(10811), + 2680: uint16(6660), + 2681: uint16(14865), + 2682: uint16(6986), + 2683: uint16(10800), + 2684: uint16(14867), + 2685: uint16(14870), + 2686: uint16(14869), + 2687: uint16(4952), + 2688: uint16(5183), + 2689: uint16(14866), + 2690: uint16(14868), + 2691: uint16(14871), + 2692: uint16(7768), + 2693: uint16(11354), + 2694: uint16(3880), + 2695: uint16(6463), + 2696: uint16(8475), + 2697: uint16(6972), + 2698: uint16(7506), + 2699: uint16(14874), + 2700: uint16(9261), + 2701: uint16(14872), + 2702: uint16(8458), + 2703: uint16(14873), + 2704: uint16(7505), + 2705: uint16(11068), + 2706: uint16(14875), + 2707: uint16(14876), + 2708: uint16(11335), + 2709: uint16(14881), + 2710: uint16(6169), + 2711: uint16(9780), + 2712: uint16(14878), + 2713: uint16(9291), + 2714: uint16(14653), + 2715: uint16(14657), + 2716: uint16(5166), + 2717: uint16(9766), + 2718: uint16(14880), + 2719: uint16(7453), + 2720: uint16(10019), + 2721: uint16(14886), + 2722: uint16(10073), + 2723: uint16(14877), + 2724: uint16(14883), + 2725: uint16(14882), + 2726: uint16(7982), + 2727: uint16(10828), + 2728: uint16(11570), + 2729: uint16(10822), + 2730: uint16(4395), + 2731: uint16(6717), + 2732: uint16(11815), + 2733: uint16(14885), + 2734: uint16(7764), + 2735: uint16(14884), + 2736: uint16(14879), + 2737: uint16(5934), + 2738: uint16(14891), + 2739: uint16(14889), + 2740: uint16(4396), + 2741: uint16(14887), + 2742: uint16(14893), + 2743: uint16(14899), + 2744: uint16(8487), + 2745: uint16(10528), + 2746: uint16(14901), + 2747: uint16(10241), + 2748: uint16(14900), + 2749: uint16(9807), + 2750: uint16(10782), + 2751: uint16(4890), + 2752: uint16(8022), + 2753: uint16(7199), + 2754: uint16(9010), + 2755: uint16(11277), + 2756: uint16(14896), + 2757: uint16(14895), + 2758: uint16(14897), + 2759: uint16(14894), + 2760: uint16(14902), + 2761: uint16(14892), + 2762: uint16(14890), + 2763: uint16(14898), + 2764: uint16(14888), + 2765: uint16(8779), + 2766: uint16(11095), + 2767: uint16(6949), + 2768: uint16(6483), + 2769: uint16(6425), + 2770: uint16(10830), + 2771: uint16(4640), + 2772: uint16(9005), + 2773: uint16(9513), + 2774: uint16(4136), + 2775: uint16(8017), + 2776: uint16(7955), + 2777: uint16(5641), + 2778: uint16(14904), + 2779: uint16(6170), + 2780: uint16(4699), + 2781: uint16(14906), + 2782: uint16(4691), + 2783: uint16(14912), + 2784: uint16(14909), + 2785: uint16(8018), + 2786: uint16(4650), + 2787: uint16(6411), + 2788: uint16(4649), + 2789: uint16(6446), + 2790: uint16(14907), + 2791: uint16(5700), + 2792: uint16(5674), + 2793: uint16(9292), + 2794: uint16(14905), + 2795: uint16(3877), + 2796: uint16(14908), + 2797: uint16(14910), + 2798: uint16(5420), + 2799: uint16(5643), + 2800: uint16(4891), + 2801: uint16(5162), + 2802: uint16(14913), + 2803: uint16(6488), + 2804: uint16(10832), + 2805: uint16(6678), + 2806: uint16(14914), + 2807: uint16(10255), + 2808: uint16(14926), + 2809: uint16(4370), + 2810: uint16(14915), + 2811: uint16(14932), + 2812: uint16(14916), + 2813: uint16(11553), + 2814: uint16(14923), + 2815: uint16(9790), + 2816: uint16(14931), + 2817: uint16(14918), + 2818: uint16(3859), + 2819: uint16(14920), + 2820: uint16(6171), + 2821: uint16(14922), + 2822: uint16(14921), + 2823: uint16(14917), + 2824: uint16(14928), + 2825: uint16(7454), + 2826: uint16(13132), + 2827: uint16(5959), + 2828: uint16(11355), + 2829: uint16(14919), + 2830: uint16(9043), + 2831: uint16(4610), + 2832: uint16(6412), + 2833: uint16(14911), + 2834: uint16(14927), + 2835: uint16(4672), + 2836: uint16(14925), + 2837: uint16(14929), + 2838: uint16(9293), + 2839: uint16(4957), + 2840: uint16(15121), + 2841: uint16(11048), + 2842: uint16(14934), + 2843: uint16(4956), + 2844: uint16(14941), + 2845: uint16(10783), + 2846: uint16(15104), + 2847: uint16(15106), + 2848: uint16(15110), + 2849: uint16(14936), + 2850: uint16(8713), + 2851: uint16(9294), + 2852: uint16(15114), + 2853: uint16(14939), + 2854: uint16(15111), + 2855: uint16(15105), + 2856: uint16(7704), + 2857: uint16(15115), + 2858: uint16(7954), + 2859: uint16(15113), + 2860: uint16(4892), + 2861: uint16(11823), + 2862: uint16(14933), + 2863: uint16(15109), + 2864: uint16(3895), + 2865: uint16(14935), + 2866: uint16(11033), + 2867: uint16(14940), + 2868: uint16(7681), + 2869: uint16(8998), + 2870: uint16(14930), + 2871: uint16(15108), + 2872: uint16(7769), + 2873: uint16(15118), + 2874: uint16(4688), + 2875: uint16(5888), + 2876: uint16(15120), + 2877: uint16(14937), + 2878: uint16(15119), + 2879: uint16(15112), + 2880: uint16(14938), + 2881: uint16(15116), + 2882: uint16(15117), + 2883: uint16(15134), + 2884: uint16(9517), + 2885: uint16(15107), + 2886: uint16(15130), + 2887: uint16(15132), + 2888: uint16(9015), + 2889: uint16(11307), + 2890: uint16(10325), + 2891: uint16(15127), + 2892: uint16(8489), + 2893: uint16(15133), + 2894: uint16(8222), + 2895: uint16(15124), + 2896: uint16(15137), + 2897: uint16(15136), + 2898: uint16(9550), + 2899: uint16(15135), + 2900: uint16(9545), + 2901: uint16(15139), + 2902: uint16(15126), + 2903: uint16(5415), + 2904: uint16(15129), + 2905: uint16(7228), + 2906: uint16(9791), + 2907: uint16(15131), + 2908: uint16(5418), + 2909: uint16(15123), + 2910: uint16(15125), + 2911: uint16(15122), + 2912: uint16(11791), + 2913: uint16(4665), + 2914: uint16(15128), + 2915: uint16(15138), + 2916: uint16(4628), + 2917: uint16(6470), + 2918: uint16(4156), + 2919: uint16(15155), + 2920: uint16(11792), + 2921: uint16(15158), + 2922: uint16(7705), + 2923: uint16(15157), + 2924: uint16(15156), + 2925: uint16(15153), + 2926: uint16(15141), + 2927: uint16(15170), + 2928: uint16(15140), + 2929: uint16(15159), + 2930: uint16(15151), + 2931: uint16(15146), + 2932: uint16(15143), + 2933: uint16(15144), + 2934: uint16(15152), + 2935: uint16(21249), + 2936: uint16(15149), + 2937: uint16(6172), + 2938: uint16(8999), + 2939: uint16(8259), + 2940: uint16(15147), + 2941: uint16(15142), + 2942: uint16(15145), + 2943: uint16(11308), + 2944: uint16(10825), + 2945: uint16(15150), + 2946: uint16(15160), + 2947: uint16(15168), + 2948: uint16(15161), + 2949: uint16(15174), + 2950: uint16(15172), + 2951: uint16(15167), + 2952: uint16(15166), + 2953: uint16(9007), + 2954: uint16(8260), + 2955: uint16(15164), + 2956: uint16(15162), + 2957: uint16(15169), + 2958: uint16(15175), + 2959: uint16(10068), + 2960: uint16(15181), + 2961: uint16(15176), + 2962: uint16(15179), + 2963: uint16(15173), + 2964: uint16(8787), + 2965: uint16(10263), + 2966: uint16(15163), + 2967: uint16(15171), + 2968: uint16(7455), + 2969: uint16(11054), + 2970: uint16(15191), + 2971: uint16(15178), + 2972: uint16(5889), + 2973: uint16(4354), + 2974: uint16(4670), + 2975: uint16(15154), + 2976: uint16(7456), + 2977: uint16(15183), + 2978: uint16(15190), + 2979: uint16(7000), + 2980: uint16(4689), + 2981: uint16(8717), + 2982: uint16(15180), + 2983: uint16(15185), + 2984: uint16(15189), + 2985: uint16(5397), + 2986: uint16(5163), + 2987: uint16(15187), + 2988: uint16(5120), + 2989: uint16(9514), + 2990: uint16(15186), + 2991: uint16(15188), + 2992: uint16(15182), + 2993: uint16(15184), + 2994: uint16(4671), + 2995: uint16(8744), + 2996: uint16(15195), + 2997: uint16(15193), + 2998: uint16(5960), + 2999: uint16(15192), + 3000: uint16(15360), + 3001: uint16(14903), + 3002: uint16(15194), + 3003: uint16(15196), + 3004: uint16(15197), + 3005: uint16(15371), + 3006: uint16(15367), + 3007: uint16(14924), + 3008: uint16(15366), + 3009: uint16(15365), + 3010: uint16(15362), + 3011: uint16(15177), + 3012: uint16(15364), + 3013: uint16(15363), + 3014: uint16(15369), + 3015: uint16(11781), + 3016: uint16(15372), + 3017: uint16(5466), + 3018: uint16(15368), + 3019: uint16(15370), + 3020: uint16(9990), + 3021: uint16(15373), + 3022: uint16(15377), + 3023: uint16(15374), + 3024: uint16(11346), + 3025: uint16(15375), + 3026: uint16(15165), + 3027: uint16(15378), + 3028: uint16(15379), + 3029: uint16(4116), + 3030: uint16(15381), + 3031: uint16(5702), + 3032: uint16(6912), + 3033: uint16(5428), + 3034: uint16(4355), + 3035: uint16(11326), + 3036: uint16(15383), + 3037: uint16(15382), + 3038: uint16(15385), + 3039: uint16(5148), + 3040: uint16(5429), + 3041: uint16(4893), + 3042: uint16(15388), + 3043: uint16(15387), + 3044: uint16(15389), + 3045: uint16(4397), + 3046: uint16(8726), + 3047: uint16(15390), + 3048: uint16(4894), + 3049: uint16(15392), + 3050: uint16(15391), + 3051: uint16(15393), + 3052: uint16(15394), + 3053: uint16(15395), + 3054: uint16(6718), + 3055: uint16(7956), + 3056: uint16(6400), + 3057: uint16(10319), + 3058: uint16(10561), + 3059: uint16(11811), + 3060: uint16(6740), + 3061: uint16(6447), + 3062: uint16(11601), + 3063: uint16(15396), + 3064: uint16(15397), + 3065: uint16(6719), + 3066: uint16(15398), + 3067: uint16(15399), + 3068: uint16(15401), + 3069: uint16(15400), + 3070: uint16(10807), + 3071: uint16(7229), + 3072: uint16(6987), + 3073: uint16(6691), + 3074: uint16(15402), + 3075: uint16(15404), + 3076: uint16(7682), + 3077: uint16(15403), + 3078: uint16(15405), + 3079: uint16(15406), + 3080: uint16(15407), + 3081: uint16(15408), + 3082: uint16(15409), + 3083: uint16(15411), + 3084: uint16(15410), + 3085: uint16(15412), + 3086: uint16(4356), + 3087: uint16(8745), + 3088: uint16(15413), + 3089: uint16(6661), + 3090: uint16(4651), + 3091: uint16(15414), + 3092: uint16(9249), + 3093: uint16(13099), + 3094: uint16(5122), + 3095: uint16(15415), + 3096: uint16(15416), + 3097: uint16(10571), + 3098: uint16(10823), + 3099: uint16(9510), + 3100: uint16(15417), + 3101: uint16(10053), + 3102: uint16(10074), + 3103: uint16(11058), + 3104: uint16(15418), + 3105: uint16(15420), + 3106: uint16(15419), + 3107: uint16(15422), + 3108: uint16(15421), + 3109: uint16(15424), + 3110: uint16(6720), + 3111: uint16(11024), + 3112: uint16(15425), + 3113: uint16(15426), + 3114: uint16(5123), + 3115: uint16(15427), + 3116: uint16(15429), + 3117: uint16(15428), + 3118: uint16(7748), + 3119: uint16(10264), + 3120: uint16(4137), + 3121: uint16(10020), + 3122: uint16(9044), + 3123: uint16(7200), + 3124: uint16(5184), + 3125: uint16(10021), + 3126: uint16(6925), + 3127: uint16(15431), + 3128: uint16(4895), + 3129: uint16(4183), + 3130: uint16(9553), + 3131: uint16(15430), + 3132: uint16(6173), + 3133: uint16(8754), + 3134: uint16(15432), + 3135: uint16(15440), + 3136: uint16(15433), + 3137: uint16(8480), + 3138: uint16(5185), + 3139: uint16(15441), + 3140: uint16(5703), + 3141: uint16(5124), + 3142: uint16(15439), + 3143: uint16(15437), + 3144: uint16(15434), + 3145: uint16(11327), + 3146: uint16(8991), + 3147: uint16(9528), + 3148: uint16(15435), + 3149: uint16(15443), + 3150: uint16(15442), + 3151: uint16(5634), + 3152: uint16(4364), + 3153: uint16(6426), + 3154: uint16(15436), + 3155: uint16(15438), + 3156: uint16(10806), + 3157: uint16(8531), + 3158: uint16(10838), + 3159: uint16(15451), + 3160: uint16(15452), + 3161: uint16(4398), + 3162: uint16(10503), + 3163: uint16(11100), + 3164: uint16(15616), + 3165: uint16(6914), + 3166: uint16(7457), + 3167: uint16(15447), + 3168: uint16(15453), + 3169: uint16(4167), + 3170: uint16(5398), + 3171: uint16(15444), + 3172: uint16(15449), + 3173: uint16(8019), + 3174: uint16(9808), + 3175: uint16(10054), + 3176: uint16(15446), + 3177: uint16(10752), + 3178: uint16(15448), + 3179: uint16(15619), + 3180: uint16(15617), + 3181: uint16(15450), + 3182: uint16(10753), + 3183: uint16(9767), + 3184: uint16(5186), + 3185: uint16(9220), + 3186: uint16(8780), + 3187: uint16(15620), + 3188: uint16(15618), + 3189: uint16(8504), + 3190: uint16(15445), + 3191: uint16(4138), + 3192: uint16(11309), + 3193: uint16(15631), + 3194: uint16(15630), + 3195: uint16(8021), + 3196: uint16(15627), + 3197: uint16(11339), + 3198: uint16(9493), + 3199: uint16(15621), + 3200: uint16(8996), + 3201: uint16(4139), + 3202: uint16(6174), + 3203: uint16(15624), + 3204: uint16(7174), + 3205: uint16(15629), + 3206: uint16(15628), + 3207: uint16(15623), + 3208: uint16(15626), + 3209: uint16(4679), + 3210: uint16(15625), + 3211: uint16(9768), + 3212: uint16(11533), + 3213: uint16(7507), + 3214: uint16(8020), + 3215: uint16(15637), + 3216: uint16(15635), + 3217: uint16(10284), + 3218: uint16(15632), + 3219: uint16(15634), + 3220: uint16(4121), + 3221: uint16(6175), + 3222: uint16(11793), + 3223: uint16(4636), + 3224: uint16(10305), + 3225: uint16(11328), + 3226: uint16(4611), + 3227: uint16(7706), + 3228: uint16(15636), + 3229: uint16(15641), + 3230: uint16(7458), + 3231: uint16(11279), + 3232: uint16(15638), + 3233: uint16(15633), + 3234: uint16(15639), + 3235: uint16(11581), + 3236: uint16(9298), + 3237: uint16(9505), + 3238: uint16(4629), + 3239: uint16(4148), + 3240: uint16(15645), + 3241: uint16(15648), + 3242: uint16(11554), + 3243: uint16(11331), + 3244: uint16(15655), + 3245: uint16(15649), + 3246: uint16(15646), + 3247: uint16(11571), + 3248: uint16(15652), + 3249: uint16(7209), + 3250: uint16(15654), + 3251: uint16(15659), + 3252: uint16(9296), + 3253: uint16(15657), + 3254: uint16(15651), + 3255: uint16(8727), + 3256: uint16(15658), + 3257: uint16(15647), + 3258: uint16(15653), + 3259: uint16(15660), + 3260: uint16(3931), + 3261: uint16(15650), + 3262: uint16(15661), + 3263: uint16(7707), + 3264: uint16(7230), + 3265: uint16(10500), + 3266: uint16(6413), + 3267: uint16(15642), + 3268: uint16(15656), + 3269: uint16(9241), + 3270: uint16(7957), + 3271: uint16(4680), + 3272: uint16(6448), + 3273: uint16(7459), + 3274: uint16(15644), + 3275: uint16(7201), + 3276: uint16(5675), + 3277: uint16(15643), + 3278: uint16(15665), + 3279: uint16(7244), + 3280: uint16(5913), + 3281: uint16(15680), + 3282: uint16(15674), + 3283: uint16(5203), + 3284: uint16(9262), + 3285: uint16(15669), + 3286: uint16(15678), + 3287: uint16(3854), + 3288: uint16(4113), + 3289: uint16(4376), + 3290: uint16(15671), + 3291: uint16(8459), + 3292: uint16(15662), + 3293: uint16(15664), + 3294: uint16(6176), + 3295: uint16(15681), + 3296: uint16(15676), + 3297: uint16(15668), + 3298: uint16(15675), + 3299: uint16(11018), + 3300: uint16(15673), + 3301: uint16(15677), + 3302: uint16(5935), + 3303: uint16(7460), + 3304: uint16(8728), + 3305: uint16(15667), + 3306: uint16(11278), + 3307: uint16(15670), + 3308: uint16(15663), + 3309: uint16(9297), + 3310: uint16(15666), + 3311: uint16(15672), + 3312: uint16(11824), + 3313: uint16(6941), + 3314: uint16(10845), + 3315: uint16(15682), + 3316: uint16(9997), + 3317: uint16(15694), + 3318: uint16(5914), + 3319: uint16(7231), + 3320: uint16(15684), + 3321: uint16(11534), + 3322: uint16(6177), + 3323: uint16(15697), + 3324: uint16(3917), + 3325: uint16(15695), + 3326: uint16(15683), + 3327: uint16(15689), + 3328: uint16(15691), + 3329: uint16(11310), + 3330: uint16(15686), + 3331: uint16(9229), + 3332: uint16(15688), + 3333: uint16(15696), + 3334: uint16(15690), + 3335: uint16(11046), + 3336: uint16(15685), + 3337: uint16(6913), + 3338: uint16(15709), + 3339: uint16(4681), + 3340: uint16(15687), + 3341: uint16(15692), + 3342: uint16(15693), + 3343: uint16(8523), + 3344: uint16(8505), + 3345: uint16(15701), + 3346: uint16(15707), + 3347: uint16(15705), + 3348: uint16(9224), + 3349: uint16(15874), + 3350: uint16(15702), + 3351: uint16(15703), + 3352: uint16(15679), + 3353: uint16(5208), + 3354: uint16(10265), + 3355: uint16(6942), + 3356: uint16(6230), + 3357: uint16(11794), + 3358: uint16(15699), + 3359: uint16(15873), + 3360: uint16(4168), + 3361: uint16(8261), + 3362: uint16(9816), + 3363: uint16(4896), + 3364: uint16(11609), + 3365: uint16(11008), + 3366: uint16(9009), + 3367: uint16(15706), + 3368: uint16(15708), + 3369: uint16(8209), + 3370: uint16(15872), + 3371: uint16(15704), + 3372: uint16(15698), + 3373: uint16(4898), + 3374: uint16(5704), + 3375: uint16(15886), + 3376: uint16(15881), + 3377: uint16(8023), + 3378: uint16(4674), + 3379: uint16(7232), + 3380: uint16(15890), + 3381: uint16(15883), + 3382: uint16(8971), + 3383: uint16(15880), + 3384: uint16(9016), + 3385: uint16(15915), + 3386: uint16(15877), + 3387: uint16(15876), + 3388: uint16(15885), + 3389: uint16(15879), + 3390: uint16(15878), + 3391: uint16(15884), + 3392: uint16(7936), + 3393: uint16(15875), + 3394: uint16(15887), + 3395: uint16(15888), + 3396: uint16(4897), + 3397: uint16(15893), + 3398: uint16(15892), + 3399: uint16(15894), + 3400: uint16(15897), + 3401: uint16(9250), + 3402: uint16(15891), + 3403: uint16(15895), + 3404: uint16(5698), + 3405: uint16(8536), + 3406: uint16(15889), + 3407: uint16(9754), + 3408: uint16(15896), + 3409: uint16(15901), + 3410: uint16(15899), + 3411: uint16(15902), + 3412: uint16(15905), + 3413: uint16(15898), + 3414: uint16(6217), + 3415: uint16(9735), + 3416: uint16(15640), + 3417: uint16(11347), + 3418: uint16(15900), + 3419: uint16(15904), + 3420: uint16(8532), + 3421: uint16(15903), + 3422: uint16(15882), + 3423: uint16(20040), + 3424: uint16(15908), + 3425: uint16(15912), + 3426: uint16(15910), + 3427: uint16(15906), + 3428: uint16(15907), + 3429: uint16(15911), + 3430: uint16(15909), + 3431: uint16(10285), + 3432: uint16(15917), + 3433: uint16(15914), + 3434: uint16(15913), + 3435: uint16(15916), + 3436: uint16(9523), + 3437: uint16(15918), + 3438: uint16(8788), + 3439: uint16(8524), + 3440: uint16(7940), + 3441: uint16(15919), + 3442: uint16(15921), + 3443: uint16(15920), + 3444: uint16(15700), + 3445: uint16(15922), + 3446: uint16(9542), + 3447: uint16(15923), + 3448: uint16(4399), + 3449: uint16(9299), + 3450: uint16(4612), + 3451: uint16(5187), + 3452: uint16(6973), + 3453: uint16(6449), + 3454: uint16(11782), + 3455: uint16(7749), + 3456: uint16(4169), + 3457: uint16(15925), + 3458: uint16(15924), + 3459: uint16(15928), + 3460: uint16(8729), + 3461: uint16(15931), + 3462: uint16(15926), + 3463: uint16(15930), + 3464: uint16(15929), + 3465: uint16(9247), + 3466: uint16(3896), + 3467: uint16(11604), + 3468: uint16(15933), + 3469: uint16(4103), + 3470: uint16(15935), + 3471: uint16(15934), + 3472: uint16(15932), + 3473: uint16(15927), + 3474: uint16(10754), + 3475: uint16(15937), + 3476: uint16(15936), + 3477: uint16(4170), + 3478: uint16(15939), + 3479: uint16(10513), + 3480: uint16(15938), + 3481: uint16(11028), + 3482: uint16(7462), + 3483: uint16(8210), + 3484: uint16(7461), + 3485: uint16(11610), + 3486: uint16(15945), + 3487: uint16(8024), + 3488: uint16(15941), + 3489: uint16(15946), + 3490: uint16(4171), + 3491: uint16(15944), + 3492: uint16(9792), + 3493: uint16(15940), + 3494: uint16(15943), + 3495: uint16(7463), + 3496: uint16(10032), + 3497: uint16(15947), + 3498: uint16(6960), + 3499: uint16(8025), + 3500: uint16(15950), + 3501: uint16(15942), + 3502: uint16(5638), + 3503: uint16(15948), + 3504: uint16(11311), + 3505: uint16(15951), + 3506: uint16(21253), + 3507: uint16(7214), + 3508: uint16(15952), + 3509: uint16(15953), + 3510: uint16(9741), + 3511: uint16(15955), + 3512: uint16(15956), + 3513: uint16(9746), + 3514: uint16(9300), + 3515: uint16(15958), + 3516: uint16(15960), + 3517: uint16(11572), + 3518: uint16(15957), + 3519: uint16(15959), + 3520: uint16(4172), + 3521: uint16(15954), + 3522: uint16(12858), + 3523: uint16(15961), + 3524: uint16(8262), + 3525: uint16(6679), + 3526: uint16(15963), + 3527: uint16(15962), + 3528: uint16(7683), + 3529: uint16(12600), + 3530: uint16(15964), + 3531: uint16(16128), + 3532: uint16(15949), + 3533: uint16(15965), + 3534: uint16(16129), + 3535: uint16(9817), + 3536: uint16(16130), + 3537: uint16(16131), + 3538: uint16(16132), + 3539: uint16(16133), + 3540: uint16(9021), + 3541: uint16(16135), + 3542: uint16(16134), + 3543: uint16(16136), + 3544: uint16(16137), + 3545: uint16(6974), + 3546: uint16(10306), + 3547: uint16(11083), + 3548: uint16(16138), + 3549: uint16(16139), + 3550: uint16(8245), + 3551: uint16(6915), + 3552: uint16(16140), + 3553: uint16(16141), + 3554: uint16(16142), + 3555: uint16(10545), + 3556: uint16(10022), + 3557: uint16(16143), + 3558: uint16(9782), + 3559: uint16(8972), + 3560: uint16(16144), + 3561: uint16(4422), + 3562: uint16(5196), + 3563: uint16(11045), + 3564: uint16(11029), + 3565: uint16(4371), + 3566: uint16(11795), + 3567: uint16(10801), + 3568: uint16(10505), + 3569: uint16(7958), + 3570: uint16(16145), + 3571: uint16(9506), + 3572: uint16(5890), + 3573: uint16(16146), + 3574: uint16(6451), + 3575: uint16(16148), + 3576: uint16(16147), + 3577: uint16(16149), + 3578: uint16(16150), + 3579: uint16(16151), + 3580: uint16(5149), + 3581: uint16(16152), + 3582: uint16(16153), + 3583: uint16(5891), + 3584: uint16(10023), + 3585: uint16(16155), + 3586: uint16(7508), + 3587: uint16(16154), + 3588: uint16(5399), + 3589: uint16(16156), + 3590: uint16(16158), + 3591: uint16(16157), + 3592: uint16(16159), + 3593: uint16(5936), + 3594: uint16(16160), + 3595: uint16(5448), + 3596: uint16(8223), + 3597: uint16(6236), + 3598: uint16(16162), + 3599: uint16(16163), + 3600: uint16(16161), + 3601: uint16(6988), + 3602: uint16(9511), + 3603: uint16(5400), + 3604: uint16(16165), + 3605: uint16(8715), + 3606: uint16(16164), + 3607: uint16(11796), + 3608: uint16(9793), + 3609: uint16(16168), + 3610: uint16(16170), + 3611: uint16(16167), + 3612: uint16(11059), + 3613: uint16(16169), + 3614: uint16(16171), + 3615: uint16(11555), + 3616: uint16(16175), + 3617: uint16(16174), + 3618: uint16(8789), + 3619: uint16(9740), + 3620: uint16(5892), + 3621: uint16(16173), + 3622: uint16(16172), + 3623: uint16(11280), + 3624: uint16(11281), + 3625: uint16(16176), + 3626: uint16(4173), + 3627: uint16(6229), + 3628: uint16(6721), + 3629: uint16(16177), + 3630: uint16(16178), + 3631: uint16(16180), + 3632: uint16(7202), + 3633: uint16(16182), + 3634: uint16(16181), + 3635: uint16(16183), + 3636: uint16(4652), + 3637: uint16(16185), + 3638: uint16(16184), + 3639: uint16(16187), + 3640: uint16(16186), + 3641: uint16(5915), + 3642: uint16(11527), + 3643: uint16(5419), + 3644: uint16(4357), + 3645: uint16(5449), + 3646: uint16(4928), + 3647: uint16(11591), + 3648: uint16(16189), + 3649: uint16(16191), + 3650: uint16(16192), + 3651: uint16(4400), + 3652: uint16(16188), + 3653: uint16(6680), + 3654: uint16(8992), + 3655: uint16(16190), + 3656: uint16(16195), + 3657: uint16(6989), + 3658: uint16(16193), + 3659: uint16(5661), + 3660: uint16(10024), + 3661: uint16(16194), + 3662: uint16(16221), + 3663: uint16(16200), + 3664: uint16(5916), + 3665: uint16(5188), + 3666: uint16(16197), + 3667: uint16(11356), + 3668: uint16(11535), + 3669: uint16(8533), + 3670: uint16(16199), + 3671: uint16(16201), + 3672: uint16(11573), + 3673: uint16(5430), + 3674: uint16(10075), + 3675: uint16(9769), + 3676: uint16(16202), + 3677: uint16(16204), + 3678: uint16(16207), + 3679: uint16(16203), + 3680: uint16(16206), + 3681: uint16(5961), + 3682: uint16(4140), + 3683: uint16(16208), + 3684: uint16(7759), + 3685: uint16(16205), + 3686: uint16(11579), + 3687: uint16(16211), + 3688: uint16(21251), + 3689: uint16(16209), + 3690: uint16(16212), + 3691: uint16(16198), + 3692: uint16(16210), + 3693: uint16(6427), + 3694: uint16(16213), + 3695: uint16(16214), + 3696: uint16(11357), + 3697: uint16(16215), + 3698: uint16(16216), + 3699: uint16(16196), + 3700: uint16(16217), + 3701: uint16(4899), + 3702: uint16(6916), + 3703: uint16(16218), + 3704: uint16(16219), + 3705: uint16(16220), + 3706: uint16(4122), + 3707: uint16(16384), + 3708: uint16(10266), + 3709: uint16(16385), + 3710: uint16(4867), + 3711: uint16(16386), + 3712: uint16(16387), + 3713: uint16(16388), + 3714: uint16(16390), + 3715: uint16(16391), + 3716: uint16(16389), + 3717: uint16(10290), + 3718: uint16(16393), + 3719: uint16(16392), + 3720: uint16(16395), + 3721: uint16(16394), + 3722: uint16(16396), + 3723: uint16(16397), + 3724: uint16(16399), + 3725: uint16(16398), + 3726: uint16(6232), + 3727: uint16(16401), + 3728: uint16(16400), + 3729: uint16(4900), + 3730: uint16(7730), + 3731: uint16(9243), + 3732: uint16(16402), + 3733: uint16(7959), + 3734: uint16(6681), + 3735: uint16(4184), + 3736: uint16(16403), + 3737: uint16(11312), + 3738: uint16(10562), + 3739: uint16(16404), + 3740: uint16(9251), + 3741: uint16(11282), + 3742: uint16(6178), + 3743: uint16(7708), + 3744: uint16(8746), + 3745: uint16(12563), + 3746: uint16(8973), + 3747: uint16(4423), + 3748: uint16(16405), + 3749: uint16(16406), + 3750: uint16(16411), + 3751: uint16(16409), + 3752: uint16(16408), + 3753: uint16(14625), + 3754: uint16(4613), + 3755: uint16(16407), + 3756: uint16(3897), + 3757: uint16(9993), + 3758: uint16(10025), + 3759: uint16(11536), + 3760: uint16(16412), + 3761: uint16(16410), + 3762: uint16(8763), + 3763: uint16(7941), + 3764: uint16(9994), + 3765: uint16(10252), + 3766: uint16(16414), + 3767: uint16(11531), + 3768: uint16(5676), + 3769: uint16(16415), + 3770: uint16(16413), + 3771: uint16(10037), + 3772: uint16(16416), + 3773: uint16(16417), + 3774: uint16(3898), + 3775: uint16(7509), + 3776: uint16(16422), + 3777: uint16(16419), + 3778: uint16(9548), + 3779: uint16(16418), + 3780: uint16(5125), + 3781: uint16(16425), + 3782: uint16(16420), + 3783: uint16(16421), + 3784: uint16(16424), + 3785: uint16(16423), + 3786: uint16(10244), + 3787: uint16(8225), + 3788: uint16(8224), + 3789: uint16(5150), + 3790: uint16(16426), + 3791: uint16(16427), + 3792: uint16(16428), + 3793: uint16(16430), + 3794: uint16(16429), + 3795: uint16(4149), + 3796: uint16(16438), + 3797: uint16(10055), + 3798: uint16(16432), + 3799: uint16(16434), + 3800: uint16(16436), + 3801: uint16(7709), + 3802: uint16(16437), + 3803: uint16(16435), + 3804: uint16(6943), + 3805: uint16(16431), + 3806: uint16(16433), + 3807: uint16(10273), + 3808: uint16(7464), + 3809: uint16(16440), + 3810: uint16(16439), + 3811: uint16(16441), + 3812: uint16(6917), + 3813: uint16(6414), + 3814: uint16(9302), + 3815: uint16(16442), + 3816: uint16(9002), + 3817: uint16(16444), + 3818: uint16(11520), + 3819: uint16(16443), + 3820: uint16(8264), + 3821: uint16(16449), + 3822: uint16(16451), + 3823: uint16(16452), + 3824: uint16(8755), + 3825: uint16(16450), + 3826: uint16(16447), + 3827: uint16(16445), + 3828: uint16(16446), + 3829: uint16(16448), + 3830: uint16(16455), + 3831: uint16(16453), + 3832: uint16(16454), + 3833: uint16(16456), + 3834: uint16(16458), + 3835: uint16(16459), + 3836: uint16(16460), + 3837: uint16(16461), + 3838: uint16(16457), + 3839: uint16(16463), + 3840: uint16(16462), + 3841: uint16(16464), + 3842: uint16(11556), + 3843: uint16(16467), + 3844: uint16(16465), + 3845: uint16(16466), + 3846: uint16(4929), + 3847: uint16(11101), + 3848: uint16(10537), + 3849: uint16(16469), + 3850: uint16(16468), + 3851: uint16(16470), + 3852: uint16(16471), + 3853: uint16(16475), + 3854: uint16(16472), + 3855: uint16(16473), + 3856: uint16(16474), + 3857: uint16(16476), + 3858: uint16(16477), + 3859: uint16(16640), + 3860: uint16(16641), + 3861: uint16(16642), + 3862: uint16(9998), + 3863: uint16(9263), + 3864: uint16(16643), + 3865: uint16(9809), + 3866: uint16(10259), + 3867: uint16(16644), + 3868: uint16(16645), + 3869: uint16(9225), + 3870: uint16(4614), + 3871: uint16(6179), + 3872: uint16(16646), + 3873: uint16(16647), + 3874: uint16(16648), + 3875: uint16(6664), + 3876: uint16(16650), + 3877: uint16(16649), + 3878: uint16(16651), + 3879: uint16(16652), + 3880: uint16(10056), + 3881: uint16(16653), + 3882: uint16(16654), + 3883: uint16(21064), + 3884: uint16(16655), + 3885: uint16(16656), + 3886: uint16(16657), + 3887: uint16(6669), + 3888: uint16(16658), + 3889: uint16(9781), + 3890: uint16(10814), + 3891: uint16(4141), + 3892: uint16(4150), + 3893: uint16(16659), + 3894: uint16(16661), + 3895: uint16(16660), + 3896: uint16(9295), + 3897: uint16(7960), + 3898: uint16(15384), + 3899: uint16(16662), + 3900: uint16(11040), + 3901: uint16(16663), + 3902: uint16(4901), + 3903: uint16(10038), + 3904: uint16(16664), + 3905: uint16(16665), + 3906: uint16(16666), + 3907: uint16(11067), + 3908: uint16(11060), + 3909: uint16(8989), + 3910: uint16(8265), + 3911: uint16(16668), + 3912: uint16(7233), + 3913: uint16(7465), + 3914: uint16(16671), + 3915: uint16(16670), + 3916: uint16(16669), + 3917: uint16(10076), + 3918: uint16(4902), + 3919: uint16(5896), + 3920: uint16(16677), + 3921: uint16(16674), + 3922: uint16(7710), + 3923: uint16(11025), + 3924: uint16(16673), + 3925: uint16(16675), + 3926: uint16(16676), + 3927: uint16(16672), + 3928: uint16(16678), + 3929: uint16(16679), + 3930: uint16(8974), + 3931: uint16(4930), + 3932: uint16(8772), + 3933: uint16(16680), + 3934: uint16(16681), + 3935: uint16(16684), + 3936: uint16(7750), + 3937: uint16(9507), + 3938: uint16(16685), + 3939: uint16(10802), + 3940: uint16(16682), + 3941: uint16(16683), + 3942: uint16(16688), + 3943: uint16(16687), + 3944: uint16(16686), + 3945: uint16(16690), + 3946: uint16(16689), + 3947: uint16(16691), + 3948: uint16(16693), + 3949: uint16(16692), + 3950: uint16(10540), + 3951: uint16(7221), + 3952: uint16(11557), + 3953: uint16(16694), + 3954: uint16(9494), + 3955: uint16(16695), + 3956: uint16(16696), + 3957: uint16(16700), + 3958: uint16(16698), + 3959: uint16(16699), + 3960: uint16(16697), + 3961: uint16(16701), + 3962: uint16(16702), + 3963: uint16(16703), + 3964: uint16(16704), + 3965: uint16(11030), + 3966: uint16(16705), + 3967: uint16(11087), + 3968: uint16(16706), + 3969: uint16(8749), + 3970: uint16(9801), + 3971: uint16(5450), + 3972: uint16(8730), + 3973: uint16(16707), + 3974: uint16(5401), + 3975: uint16(7983), + 3976: uint16(16708), + 3977: uint16(6428), + 3978: uint16(16709), + 3979: uint16(16710), + 3980: uint16(5893), + 3981: uint16(6452), + 3982: uint16(16712), + 3983: uint16(9269), + 3984: uint16(6453), + 3985: uint16(5165), + 3986: uint16(10755), + 3987: uint16(9770), + 3988: uint16(9270), + 3989: uint16(6203), + 3990: uint16(16714), + 3991: uint16(7466), + 3992: uint16(11537), + 3993: uint16(6180), + 3994: uint16(5894), + 3995: uint16(9986), + 3996: uint16(16716), + 3997: uint16(16718), + 3998: uint16(5962), + 3999: uint16(16717), + 4000: uint16(9045), + 4001: uint16(16720), + 4002: uint16(4630), + 4003: uint16(16715), + 4004: uint16(10057), + 4005: uint16(4111), + 4006: uint16(6475), + 4007: uint16(11825), + 4008: uint16(16719), + 4009: uint16(16721), + 4010: uint16(10538), + 4011: uint16(7992), + 4012: uint16(16723), + 4013: uint16(16724), + 4014: uint16(16722), + 4015: uint16(4653), + 4016: uint16(16730), + 4017: uint16(16729), + 4018: uint16(6918), + 4019: uint16(16731), + 4020: uint16(16726), + 4021: uint16(16732), + 4022: uint16(16727), + 4023: uint16(10039), + 4024: uint16(16725), + 4025: uint16(16728), + 4026: uint16(16897), + 4027: uint16(16896), + 4028: uint16(10816), + 4029: uint16(16733), + 4030: uint16(3914), + 4031: uint16(16899), + 4032: uint16(16898), + 4033: uint16(7467), + 4034: uint16(16900), + 4035: uint16(8226), + 4036: uint16(16902), + 4037: uint16(16901), + 4038: uint16(16903), + 4039: uint16(16711), + 4040: uint16(16713), + 4041: uint16(16905), + 4042: uint16(16904), + 4043: uint16(6919), + 4044: uint16(11592), + 4045: uint16(6961), + 4046: uint16(16906), + 4047: uint16(5654), + 4048: uint16(5151), + 4049: uint16(5126), + 4050: uint16(6722), + 4051: uint16(11283), + 4052: uint16(16912), + 4053: uint16(16911), + 4054: uint16(8227), + 4055: uint16(16908), + 4056: uint16(16910), + 4057: uint16(7210), + 4058: uint16(7711), + 4059: uint16(16909), + 4060: uint16(16907), + 4061: uint16(9737), + 4062: uint16(7468), + 4063: uint16(10267), + 4064: uint16(6454), + 4065: uint16(9303), + 4066: uint16(16913), + 4067: uint16(16914), + 4068: uint16(16936), + 4069: uint16(5431), + 4070: uint16(11804), + 4071: uint16(8212), + 4072: uint16(16915), + 4073: uint16(4401), + 4074: uint16(9046), + 4075: uint16(10496), + 4076: uint16(16916), + 4077: uint16(5209), + 4078: uint16(16917), + 4079: uint16(16919), + 4080: uint16(16920), + 4081: uint16(9736), + 4082: uint16(16921), + 4083: uint16(16922), + 4084: uint16(16923), + 4085: uint16(5432), + 4086: uint16(4402), + 4087: uint16(9508), + 4088: uint16(7175), + 4089: uint16(6723), + 4090: uint16(16924), + 4091: uint16(7176), + 4092: uint16(4393), + 4093: uint16(10274), + 4094: uint16(16925), + 4095: uint16(10058), + 4096: uint16(8228), + 4097: uint16(16928), + 4098: uint16(16929), + 4099: uint16(9800), + 4100: uint16(7712), + 4101: uint16(16926), + 4102: uint16(8768), + 4103: uint16(16927), + 4104: uint16(7469), + 4105: uint16(3899), + 4106: uint16(5128), + 4107: uint16(16930), + 4108: uint16(9047), + 4109: uint16(16931), + 4110: uint16(7974), + 4111: uint16(11020), + 4112: uint16(10242), + 4113: uint16(16932), + 4114: uint16(16933), + 4115: uint16(8756), + 4116: uint16(11558), + 4117: uint16(16935), + 4118: uint16(16934), + 4119: uint16(6990), + 4120: uint16(16937), + 4121: uint16(3919), + 4122: uint16(16940), + 4123: uint16(16938), + 4124: uint16(4403), + 4125: uint16(5677), + 4126: uint16(16939), + 4127: uint16(6181), + 4128: uint16(6225), + 4129: uint16(10565), + 4130: uint16(16941), + 4131: uint16(10803), + 4132: uint16(16943), + 4133: uint16(7984), + 4134: uint16(4142), + 4135: uint16(4377), + 4136: uint16(3851), + 4137: uint16(16942), + 4138: uint16(16944), + 4139: uint16(16945), + 4140: uint16(7510), + 4141: uint16(16946), + 4142: uint16(4654), + 4143: uint16(16948), + 4144: uint16(5705), + 4145: uint16(5189), + 4146: uint16(16949), + 4147: uint16(5460), + 4148: uint16(16950), + 4149: uint16(8027), + 4150: uint16(9516), + 4151: uint16(7999), + 4152: uint16(6484), + 4153: uint16(16951), + 4154: uint16(8769), + 4155: uint16(8266), + 4156: uint16(16953), + 4157: uint16(16955), + 4158: uint16(16952), + 4159: uint16(16954), + 4160: uint16(5633), + 4161: uint16(16956), + 4162: uint16(5637), + 4163: uint16(5190), + 4164: uint16(11313), + 4165: uint16(16958), + 4166: uint16(16959), + 4167: uint16(4109), + 4168: uint16(16962), + 4169: uint16(4693), + 4170: uint16(16961), + 4171: uint16(16960), + 4172: uint16(16964), + 4173: uint16(16957), + 4174: uint16(16965), + 4175: uint16(11528), + 4176: uint16(16966), + 4177: uint16(16967), + 4178: uint16(13139), + 4179: uint16(16969), + 4180: uint16(16968), + 4181: uint16(16970), + 4182: uint16(16971), + 4183: uint16(11540), + 4184: uint16(16972), + 4185: uint16(20302), + 4186: uint16(7470), + 4187: uint16(16973), + 4188: uint16(16974), + 4189: uint16(7222), + 4190: uint16(9495), + 4191: uint16(16975), + 4192: uint16(8711), + 4193: uint16(16976), + 4194: uint16(8731), + 4195: uint16(16977), + 4196: uint16(5380), + 4197: uint16(12318), + 4198: uint16(8764), + 4199: uint16(6930), + 4200: uint16(4903), + 4201: uint16(16978), + 4202: uint16(17153), + 4203: uint16(16981), + 4204: uint16(5191), + 4205: uint16(16980), + 4206: uint16(17155), + 4207: uint16(16979), + 4208: uint16(7471), + 4209: uint16(16983), + 4210: uint16(16984), + 4211: uint16(9226), + 4212: uint16(16985), + 4213: uint16(4669), + 4214: uint16(7737), + 4215: uint16(10307), + 4216: uint16(16987), + 4217: uint16(8519), + 4218: uint16(16982), + 4219: uint16(16986), + 4220: uint16(16988), + 4221: uint16(6490), + 4222: uint16(17157), + 4223: uint16(10253), + 4224: uint16(9989), + 4225: uint16(9304), + 4226: uint16(5433), + 4227: uint16(17156), + 4228: uint16(17154), + 4229: uint16(10004), + 4230: uint16(16989), + 4231: uint16(8765), + 4232: uint16(9306), + 4233: uint16(9305), + 4234: uint16(6485), + 4235: uint16(17175), + 4236: uint16(17159), + 4237: uint16(17161), + 4238: uint16(17164), + 4239: uint16(17165), + 4240: uint16(17162), + 4241: uint16(17163), + 4242: uint16(17160), + 4243: uint16(17158), + 4244: uint16(17152), + 4245: uint16(10542), + 4246: uint16(4404), + 4247: uint16(17172), + 4248: uint16(17169), + 4249: uint16(17174), + 4250: uint16(17173), + 4251: uint16(9810), + 4252: uint16(11014), + 4253: uint16(6682), + 4254: uint16(17167), + 4255: uint16(17176), + 4256: uint16(17171), + 4257: uint16(17170), + 4258: uint16(17166), + 4259: uint16(17168), + 4260: uint16(4904), + 4261: uint16(8732), + 4262: uint16(8028), + 4263: uint16(9985), + 4264: uint16(17181), + 4265: uint16(9987), + 4266: uint16(8000), + 4267: uint16(17178), + 4268: uint16(10030), + 4269: uint16(17182), + 4270: uint16(10546), + 4271: uint16(8762), + 4272: uint16(17177), + 4273: uint16(17179), + 4274: uint16(17180), + 4275: uint16(17183), + 4276: uint16(6947), + 4277: uint16(9509), + 4278: uint16(17188), + 4279: uint16(17187), + 4280: uint16(17184), + 4281: uint16(11797), + 4282: uint16(17193), + 4283: uint16(17197), + 4284: uint16(17194), + 4285: uint16(17190), + 4286: uint16(17191), + 4287: uint16(17196), + 4288: uint16(17185), + 4289: uint16(12596), + 4290: uint16(17192), + 4291: uint16(17186), + 4292: uint16(17195), + 4293: uint16(17201), + 4294: uint16(4905), + 4295: uint16(17198), + 4296: uint16(17199), + 4297: uint16(17200), + 4298: uint16(17203), + 4299: uint16(17202), + 4300: uint16(10069), + 4301: uint16(17204), + 4302: uint16(11611), + 4303: uint16(10572), + 4304: uint16(17209), + 4305: uint16(17206), + 4306: uint16(17205), + 4307: uint16(7985), + 4308: uint16(17208), + 4309: uint16(17210), + 4310: uint16(17207), + 4311: uint16(17214), + 4312: uint16(17211), + 4313: uint16(17212), + 4314: uint16(17189), + 4315: uint16(17213), + 4316: uint16(17215), + 4317: uint16(17216), + 4318: uint16(10533), + 4319: uint16(17217), + 4320: uint16(11073), + 4321: uint16(5421), + 4322: uint16(5640), + 4323: uint16(17218), + 4324: uint16(10515), + 4325: uint16(7751), + 4326: uint16(11023), + 4327: uint16(17219), + 4328: uint16(11538), + 4329: uint16(9811), + 4330: uint16(8229), + 4331: uint16(9747), + 4332: uint16(7212), + 4333: uint16(3871), + 4334: uint16(17224), + 4335: uint16(17222), + 4336: uint16(17220), + 4337: uint16(4864), + 4338: uint16(7472), + 4339: uint16(17225), + 4340: uint16(17223), + 4341: uint16(17221), + 4342: uint16(17229), + 4343: uint16(17228), + 4344: uint16(17227), + 4345: uint16(17226), + 4346: uint16(17230), + 4347: uint16(17231), + 4348: uint16(7961), + 4349: uint16(17232), + 4350: uint16(17234), + 4351: uint16(17233), + 4352: uint16(5937), + 4353: uint16(8215), + 4354: uint16(17236), + 4355: uint16(9307), + 4356: uint16(17235), + 4357: uint16(17237), + 4358: uint16(10516), + 4359: uint16(8267), + 4360: uint16(6182), + 4361: uint16(17238), + 4362: uint16(11559), + 4363: uint16(17240), + 4364: uint16(17241), + 4365: uint16(17242), + 4366: uint16(17243), + 4367: uint16(6724), + 4368: uint16(17244), + 4369: uint16(5678), + 4370: uint16(5193), + 4371: uint16(5129), + 4372: uint16(17408), + 4373: uint16(11090), + 4374: uint16(6183), + 4375: uint16(17245), + 4376: uint16(17411), + 4377: uint16(11077), + 4378: uint16(9755), + 4379: uint16(10258), + 4380: uint16(7234), + 4381: uint16(17410), + 4382: uint16(6962), + 4383: uint16(6184), + 4384: uint16(6725), + 4385: uint16(5192), + 4386: uint16(10517), + 4387: uint16(17409), + 4388: uint16(8230), + 4389: uint16(10785), + 4390: uint16(6486), + 4391: uint16(6726), + 4392: uint16(9020), + 4393: uint16(17414), + 4394: uint16(11582), + 4395: uint16(6456), + 4396: uint16(17415), + 4397: uint16(7713), + 4398: uint16(17417), + 4399: uint16(7473), + 4400: uint16(6415), + 4401: uint16(17416), + 4402: uint16(7177), + 4403: uint16(5917), + 4404: uint16(8231), + 4405: uint16(17412), + 4406: uint16(17418), + 4407: uint16(17413), + 4408: uint16(5679), + 4409: uint16(17421), + 4410: uint16(17425), + 4411: uint16(5706), + 4412: uint16(17420), + 4413: uint16(17429), + 4414: uint16(6185), + 4415: uint16(11340), + 4416: uint16(3867), + 4417: uint16(17426), + 4418: uint16(5194), + 4419: uint16(17423), + 4420: uint16(17424), + 4421: uint16(9308), + 4422: uint16(17422), + 4423: uint16(17419), + 4424: uint16(4615), + 4425: uint16(8003), + 4426: uint16(5895), + 4427: uint16(17431), + 4428: uint16(17428), + 4429: uint16(17430), + 4430: uint16(17427), + 4431: uint16(5680), + 4432: uint16(8466), + 4433: uint16(17432), + 4434: uint16(8269), + 4435: uint16(17445), + 4436: uint16(17441), + 4437: uint16(17435), + 4438: uint16(17439), + 4439: uint16(7001), + 4440: uint16(3900), + 4441: uint16(17434), + 4442: uint16(17442), + 4443: uint16(17446), + 4444: uint16(6186), + 4445: uint16(11061), + 4446: uint16(9013), + 4447: uint16(17436), + 4448: uint16(17444), + 4449: uint16(17433), + 4450: uint16(8733), + 4451: uint16(17438), + 4452: uint16(3868), + 4453: uint16(11049), + 4454: uint16(17437), + 4455: uint16(5434), + 4456: uint16(10059), + 4457: uint16(8268), + 4458: uint16(11567), + 4459: uint16(7246), + 4460: uint16(17485), + 4461: uint16(17447), + 4462: uint16(8029), + 4463: uint16(17443), + 4464: uint16(17448), + 4465: uint16(17450), + 4466: uint16(9048), + 4467: uint16(17453), + 4468: uint16(17449), + 4469: uint16(10547), + 4470: uint16(4906), + 4471: uint16(11050), + 4472: uint16(3901), + 4473: uint16(17452), + 4474: uint16(11612), + 4475: uint16(17451), + 4476: uint16(4174), + 4477: uint16(9547), + 4478: uint16(17454), + 4479: uint16(17461), + 4480: uint16(17455), + 4481: uint16(17462), + 4482: uint16(17458), + 4483: uint16(9818), + 4484: uint16(6953), + 4485: uint16(17460), + 4486: uint16(17457), + 4487: uint16(17463), + 4488: uint16(17456), + 4489: uint16(7203), + 4490: uint16(10756), + 4491: uint16(7211), + 4492: uint16(17459), + 4493: uint16(17471), + 4494: uint16(17467), + 4495: uint16(17470), + 4496: uint16(17468), + 4497: uint16(17472), + 4498: uint16(17466), + 4499: uint16(17440), + 4500: uint16(7986), + 4501: uint16(10026), + 4502: uint16(17469), + 4503: uint16(17464), + 4504: uint16(8192), + 4505: uint16(5681), + 4506: uint16(7178), + 4507: uint16(7684), + 4508: uint16(8213), + 4509: uint16(17475), + 4510: uint16(17477), + 4511: uint16(17478), + 4512: uint16(17474), + 4513: uint16(17476), + 4514: uint16(17465), + 4515: uint16(17473), + 4516: uint16(17481), + 4517: uint16(17480), + 4518: uint16(10841), + 4519: uint16(5642), + 4520: uint16(17479), + 4521: uint16(17483), + 4522: uint16(17482), + 4523: uint16(17486), + 4524: uint16(17488), + 4525: uint16(6683), + 4526: uint16(17484), + 4527: uint16(17489), + 4528: uint16(17490), + 4529: uint16(17491), + 4530: uint16(17497), + 4531: uint16(9242), + 4532: uint16(17493), + 4533: uint16(17492), + 4534: uint16(17494), + 4535: uint16(17495), + 4536: uint16(17496), + 4537: uint16(17498), + 4538: uint16(17499), + 4539: uint16(4907), + 4540: uint16(17500), + 4541: uint16(17501), + 4542: uint16(17664), + 4543: uint16(17665), + 4544: uint16(17666), + 4545: uint16(17667), + 4546: uint16(17668), + 4547: uint16(17669), + 4548: uint16(17671), + 4549: uint16(17670), + 4550: uint16(17672), + 4551: uint16(17673), + 4552: uint16(17674), + 4553: uint16(17677), + 4554: uint16(17675), + 4555: uint16(17676), + 4556: uint16(6464), + 4557: uint16(5682), + 4558: uint16(8757), + 4559: uint16(10002), + 4560: uint16(7247), + 4561: uint16(9772), + 4562: uint16(10060), + 4563: uint16(17678), + 4564: uint16(14156), + 4565: uint16(17679), + 4566: uint16(17681), + 4567: uint16(11332), + 4568: uint16(17680), + 4569: uint16(17683), + 4570: uint16(17682), + 4571: uint16(11314), + 4572: uint16(17684), + 4573: uint16(10077), + 4574: uint16(17685), + 4575: uint16(17688), + 4576: uint16(17687), + 4577: uint16(17686), + 4578: uint16(17689), + 4579: uint16(5649), + 4580: uint16(8193), + 4581: uint16(5152), + 4582: uint16(17693), + 4583: uint16(17690), + 4584: uint16(17691), + 4585: uint16(17694), + 4586: uint16(17695), + 4587: uint16(17692), + 4588: uint16(4104), + 4589: uint16(4358), + 4590: uint16(17697), + 4591: uint16(17698), + 4592: uint16(17699), + 4593: uint16(11329), + 4594: uint16(7179), + 4595: uint16(17701), + 4596: uint16(17700), + 4597: uint16(7752), + 4598: uint16(17702), + 4599: uint16(17703), + 4600: uint16(17704), + 4601: uint16(4932), + 4602: uint16(4908), + 4603: uint16(17705), + 4604: uint16(17706), + 4605: uint16(10812), + 4606: uint16(11330), + 4607: uint16(11315), + 4608: uint16(11798), + 4609: uint16(6188), + 4610: uint16(17709), + 4611: uint16(6963), + 4612: uint16(17708), + 4613: uint16(17710), + 4614: uint16(6920), + 4615: uint16(8496), + 4616: uint16(17711), + 4617: uint16(6187), + 4618: uint16(11062), + 4619: uint16(17712), + 4620: uint16(17713), + 4621: uint16(17714), + 4622: uint16(17715), + 4623: uint16(17716), + 4624: uint16(6921), + 4625: uint16(11084), + 4626: uint16(17718), + 4627: uint16(8734), + 4628: uint16(17717), + 4629: uint16(17720), + 4630: uint16(17719), + 4631: uint16(17721), + 4632: uint16(7962), + 4633: uint16(17722), + 4634: uint16(17723), + 4635: uint16(10520), + 4636: uint16(17724), + 4637: uint16(8270), + 4638: uint16(17725), + 4639: uint16(17726), + 4640: uint16(11613), + 4641: uint16(17729), + 4642: uint16(17728), + 4643: uint16(17727), + 4644: uint16(8975), + 4645: uint16(17730), + 4646: uint16(7685), + 4647: uint16(17731), + 4648: uint16(17732), + 4649: uint16(11799), + 4650: uint16(17733), + 4651: uint16(17734), + 4652: uint16(17736), + 4653: uint16(17735), + 4654: uint16(9988), + 4655: uint16(9560), + 4656: uint16(11805), + 4657: uint16(9992), + 4658: uint16(17738), + 4659: uint16(7474), + 4660: uint16(10249), + 4661: uint16(17739), + 4662: uint16(17737), + 4663: uint16(4909), + 4664: uint16(5939), + 4665: uint16(6727), + 4666: uint16(10061), + 4667: uint16(5897), + 4668: uint16(10786), + 4669: uint16(17742), + 4670: uint16(17740), + 4671: uint16(6189), + 4672: uint16(6190), + 4673: uint16(3912), + 4674: uint16(6471), + 4675: uint16(9784), + 4676: uint16(3902), + 4677: uint16(17747), + 4678: uint16(8735), + 4679: uint16(9783), + 4680: uint16(8506), + 4681: uint16(17749), + 4682: uint16(17745), + 4683: uint16(17748), + 4684: uint16(17743), + 4685: uint16(17746), + 4686: uint16(10757), + 4687: uint16(5940), + 4688: uint16(3932), + 4689: uint16(17744), + 4690: uint16(17751), + 4691: uint16(17752), + 4692: uint16(9496), + 4693: uint16(5402), + 4694: uint16(17925), + 4695: uint16(9756), + 4696: uint16(6728), + 4697: uint16(5403), + 4698: uint16(7975), + 4699: uint16(11813), + 4700: uint16(11021), + 4701: uint16(17750), + 4702: uint16(7987), + 4703: uint16(5170), + 4704: uint16(17753), + 4705: uint16(17755), + 4706: uint16(17754), + 4707: uint16(17756), + 4708: uint16(8709), + 4709: uint16(9757), + 4710: uint16(8976), + 4711: uint16(17922), + 4712: uint16(17921), + 4713: uint16(17757), + 4714: uint16(7732), + 4715: uint16(10308), + 4716: uint16(17924), + 4717: uint16(17923), + 4718: uint16(6191), + 4719: uint16(11826), + 4720: uint16(17940), + 4721: uint16(17928), + 4722: uint16(17929), + 4723: uint16(6991), + 4724: uint16(17927), + 4725: uint16(6231), + 4726: uint16(17926), + 4727: uint16(17930), + 4728: uint16(8977), + 4729: uint16(10497), + 4730: uint16(8194), + 4731: uint16(8507), + 4732: uint16(17934), + 4733: uint16(17935), + 4734: uint16(17931), + 4735: uint16(17932), + 4736: uint16(17933), + 4737: uint16(6192), + 4738: uint16(17941), + 4739: uint16(17937), + 4740: uint16(10309), + 4741: uint16(10827), + 4742: uint16(10247), + 4743: uint16(17936), + 4744: uint16(17939), + 4745: uint16(17938), + 4746: uint16(10787), + 4747: uint16(17942), + 4748: uint16(17943), + 4749: uint16(8214), + 4750: uint16(17944), + 4751: uint16(17946), + 4752: uint16(17950), + 4753: uint16(17947), + 4754: uint16(17945), + 4755: uint16(9758), + 4756: uint16(17948), + 4757: uint16(17949), + 4758: uint16(4369), + 4759: uint16(17956), + 4760: uint16(17951), + 4761: uint16(17952), + 4762: uint16(17953), + 4763: uint16(8448), + 4764: uint16(17955), + 4765: uint16(17954), + 4766: uint16(17957), + 4767: uint16(17958), + 4768: uint16(17959), + 4769: uint16(7714), + 4770: uint16(4424), + 4771: uint16(17960), + 4772: uint16(11574), + 4773: uint16(6922), + 4774: uint16(7180), + 4775: uint16(6729), + 4776: uint16(8758), + 4777: uint16(17961), + 4778: uint16(17962), + 4779: uint16(4112), + 4780: uint16(17963), + 4781: uint16(17964), + 4782: uint16(17965), + 4783: uint16(17966), + 4784: uint16(17967), + 4785: uint16(5404), + 4786: uint16(14601), + 4787: uint16(17968), + 4788: uint16(8004), + 4789: uint16(17969), + 4790: uint16(6954), + 4791: uint16(17970), + 4792: uint16(12047), + 4793: uint16(17971), + 4794: uint16(10557), + 4795: uint16(4923), + 4796: uint16(8195), + 4797: uint16(7223), + 4798: uint16(10320), + 4799: uint16(7181), + 4800: uint16(17972), + 4801: uint16(6193), + 4802: uint16(17973), + 4803: uint16(10027), + 4804: uint16(17987), + 4805: uint16(17975), + 4806: uint16(8488), + 4807: uint16(9812), + 4808: uint16(5918), + 4809: uint16(17974), + 4810: uint16(8196), + 4811: uint16(17976), + 4812: uint16(9049), + 4813: uint16(17978), + 4814: uint16(17977), + 4815: uint16(17980), + 4816: uint16(17979), + 4817: uint16(17981), + 4818: uint16(17983), + 4819: uint16(17982), + 4820: uint16(4910), + 4821: uint16(17984), + 4822: uint16(17985), + 4823: uint16(17986), + 4824: uint16(6416), + 4825: uint16(11560), + 4826: uint16(17988), + 4827: uint16(7686), + 4828: uint16(4175), + 4829: uint16(17989), + 4830: uint16(17990), + 4831: uint16(17991), + 4832: uint16(3921), + 4833: uint16(17992), + 4834: uint16(17993), + 4835: uint16(10310), + 4836: uint16(6950), + 4837: uint16(17995), + 4838: uint16(4616), + 4839: uint16(3857), + 4840: uint16(17994), + 4841: uint16(17997), + 4842: uint16(9773), + 4843: uint16(7715), + 4844: uint16(4405), + 4845: uint16(10758), + 4846: uint16(5692), + 4847: uint16(5435), + 4848: uint16(17996), + 4849: uint16(4425), + 4850: uint16(4866), + 4851: uint16(4176), + 4852: uint16(18001), + 4853: uint16(11593), + 4854: uint16(8508), + 4855: uint16(10275), + 4856: uint16(18013), + 4857: uint16(4406), + 4858: uint16(18011), + 4859: uint16(18009), + 4860: uint16(18000), + 4861: uint16(17998), + 4862: uint16(17999), + 4863: uint16(6978), + 4864: uint16(5451), + 4865: uint16(8790), + 4866: uint16(9520), + 4867: uint16(4144), + 4868: uint16(18003), + 4869: uint16(18002), + 4870: uint16(18008), + 4871: uint16(18004), + 4872: uint16(18007), + 4873: uint16(11055), + 4874: uint16(18006), + 4875: uint16(4407), + 4876: uint16(4700), + 4877: uint16(18010), + 4878: uint16(18012), + 4879: uint16(5683), + 4880: uint16(18178), + 4881: uint16(18187), + 4882: uint16(18188), + 4883: uint16(3850), + 4884: uint16(18195), + 4885: uint16(3920), + 4886: uint16(18186), + 4887: uint16(18185), + 4888: uint16(18180), + 4889: uint16(18179), + 4890: uint16(18177), + 4891: uint16(18176), + 4892: uint16(8770), + 4893: uint16(8538), + 4894: uint16(18182), + 4895: uint16(18181), + 4896: uint16(18184), + 4897: uint16(8271), + 4898: uint16(5684), + 4899: uint16(4128), + 4900: uint16(18183), + 4901: uint16(6194), + 4902: uint16(8272), + 4903: uint16(18201), + 4904: uint16(18202), + 4905: uint16(4408), + 4906: uint16(4365), + 4907: uint16(18199), + 4908: uint16(18189), + 4909: uint16(18197), + 4910: uint16(18204), + 4911: uint16(18198), + 4912: uint16(18196), + 4913: uint16(18005), + 4914: uint16(18194), + 4915: uint16(18190), + 4916: uint16(4911), + 4917: uint16(18192), + 4918: uint16(18203), + 4919: uint16(18193), + 4920: uint16(18205), + 4921: uint16(18191), + 4922: uint16(9819), + 4923: uint16(11336), + 4924: uint16(18200), + 4925: uint16(18222), + 4926: uint16(18214), + 4927: uint16(7770), + 4928: uint16(5157), + 4929: uint16(5436), + 4930: uint16(18209), + 4931: uint16(4410), + 4932: uint16(7475), + 4933: uint16(18212), + 4934: uint16(6457), + 4935: uint16(9264), + 4936: uint16(18217), + 4937: uint16(10573), + 4938: uint16(18208), + 4939: uint16(4409), + 4940: uint16(5941), + 4941: uint16(10248), + 4942: uint16(18218), + 4943: uint16(18206), + 4944: uint16(18215), + 4945: uint16(18225), + 4946: uint16(18210), + 4947: uint16(18211), + 4948: uint16(9497), + 4949: uint16(18216), + 4950: uint16(18213), + 4951: uint16(10759), + 4952: uint16(18219), + 4953: uint16(3903), + 4954: uint16(18207), + 4955: uint16(18221), + 4956: uint16(18220), + 4957: uint16(9802), + 4958: uint16(18227), + 4959: uint16(18238), + 4960: uint16(4701), + 4961: uint16(18241), + 4962: uint16(18223), + 4963: uint16(18228), + 4964: uint16(11341), + 4965: uint16(18237), + 4966: uint16(11316), + 4967: uint16(11529), + 4968: uint16(8791), + 4969: uint16(4682), + 4970: uint16(10321), + 4971: uint16(18243), + 4972: uint16(9472), + 4973: uint16(3856), + 4974: uint16(18236), + 4975: uint16(18232), + 4976: uint16(8273), + 4977: uint16(18226), + 4978: uint16(18234), + 4979: uint16(18239), + 4980: uint16(9739), + 4981: uint16(3849), + 4982: uint16(18231), + 4983: uint16(18240), + 4984: uint16(10327), + 4985: uint16(18235), + 4986: uint16(18230), + 4987: uint16(7476), + 4988: uint16(7182), + 4989: uint16(6923), + 4990: uint16(11063), + 4991: uint16(10278), + 4992: uint16(18246), + 4993: uint16(18255), + 4994: uint16(18233), + 4995: uint16(4694), + 4996: uint16(7511), + 4997: uint16(18244), + 4998: uint16(18249), + 4999: uint16(8274), + 5000: uint16(18245), + 5001: uint16(18252), + 5002: uint16(8766), + 5003: uint16(18253), + 5004: uint16(11317), + 5005: uint16(18242), + 5006: uint16(4631), + 5007: uint16(18248), + 5008: uint16(18251), + 5009: uint16(11019), + 5010: uint16(18254), + 5011: uint16(18247), + 5012: uint16(18250), + 5013: uint16(10760), + 5014: uint16(11776), + 5015: uint16(18258), + 5016: uint16(18265), + 5017: uint16(18257), + 5018: uint16(6946), + 5019: uint16(18224), + 5020: uint16(10541), + 5021: uint16(11009), + 5022: uint16(18264), + 5023: uint16(18263), + 5024: uint16(18259), + 5025: uint16(18260), + 5026: uint16(4117), + 5027: uint16(18262), + 5028: uint16(18256), + 5029: uint16(9012), + 5030: uint16(18261), + 5031: uint16(3933), + 5032: uint16(8449), + 5033: uint16(10530), + 5034: uint16(18266), + 5035: uint16(18432), + 5036: uint16(10040), + 5037: uint16(18269), + 5038: uint16(7477), + 5039: uint16(6952), + 5040: uint16(18434), + 5041: uint16(5405), + 5042: uint16(18435), + 5043: uint16(10328), + 5044: uint16(18268), + 5045: uint16(18229), + 5046: uint16(18267), + 5047: uint16(11822), + 5048: uint16(9473), + 5049: uint16(10322), + 5050: uint16(18442), + 5051: uint16(18448), + 5052: uint16(18449), + 5053: uint16(18436), + 5054: uint16(9813), + 5055: uint16(18446), + 5056: uint16(18438), + 5057: uint16(18440), + 5058: uint16(18450), + 5059: uint16(18439), + 5060: uint16(18443), + 5061: uint16(4177), + 5062: uint16(9540), + 5063: uint16(18444), + 5064: uint16(18447), + 5065: uint16(18437), + 5066: uint16(8197), + 5067: uint16(18441), + 5068: uint16(6662), + 5069: uint16(7716), + 5070: uint16(5647), + 5071: uint16(11091), + 5072: uint16(11096), + 5073: uint16(7249), + 5074: uint16(18454), + 5075: uint16(18452), + 5076: uint16(11821), + 5077: uint16(18451), + 5078: uint16(11348), + 5079: uint16(18453), + 5080: uint16(18455), + 5081: uint16(18456), + 5082: uint16(18459), + 5083: uint16(18457), + 5084: uint16(9474), + 5085: uint16(18458), + 5086: uint16(10028), + 5087: uint16(18445), + 5088: uint16(7250), + 5089: uint16(18460), + 5090: uint16(18465), + 5091: uint16(8275), + 5092: uint16(18464), + 5093: uint16(18433), + 5094: uint16(18466), + 5095: uint16(8232), + 5096: uint16(18461), + 5097: uint16(18463), + 5098: uint16(18462), + 5099: uint16(15376), + 5100: uint16(15361), + 5101: uint16(18468), + 5102: uint16(18467), + 5103: uint16(11349), + 5104: uint16(16667), + 5105: uint16(18469), + 5106: uint16(18470), + 5107: uint16(18471), + 5108: uint16(5942), + 5109: uint16(5171), + 5110: uint16(18473), + 5111: uint16(12348), + 5112: uint16(5204), + 5113: uint16(11545), + 5114: uint16(5458), + 5115: uint16(18474), + 5116: uint16(18475), + 5117: uint16(8781), + 5118: uint16(18476), + 5119: uint16(9561), + 5120: uint16(3865), + 5121: uint16(4418), + 5122: uint16(18481), + 5123: uint16(18482), + 5124: uint16(18477), + 5125: uint16(6684), + 5126: uint16(18478), + 5127: uint16(9761), + 5128: uint16(18479), + 5129: uint16(18480), + 5130: uint16(18490), + 5131: uint16(18484), + 5132: uint16(18487), + 5133: uint16(18483), + 5134: uint16(18485), + 5135: uint16(18486), + 5136: uint16(6967), + 5137: uint16(18488), + 5138: uint16(8736), + 5139: uint16(5685), + 5140: uint16(4641), + 5141: uint16(18491), + 5142: uint16(4638), + 5143: uint16(18496), + 5144: uint16(18492), + 5145: uint16(18495), + 5146: uint16(10009), + 5147: uint16(18493), + 5148: uint16(18494), + 5149: uint16(10279), + 5150: uint16(10041), + 5151: uint16(18497), + 5152: uint16(8540), + 5153: uint16(18507), + 5154: uint16(18503), + 5155: uint16(4426), + 5156: uint16(18501), + 5157: uint16(10761), + 5158: uint16(18502), + 5159: uint16(18499), + 5160: uint16(18500), + 5161: uint16(18505), + 5162: uint16(18508), + 5163: uint16(18506), + 5164: uint16(18504), + 5165: uint16(18498), + 5166: uint16(8759), + 5167: uint16(18515), + 5168: uint16(11017), + 5169: uint16(18513), + 5170: uint16(18514), + 5171: uint16(18509), + 5172: uint16(18511), + 5173: uint16(18512), + 5174: uint16(18510), + 5175: uint16(8005), + 5176: uint16(11800), + 5177: uint16(18519), + 5178: uint16(18520), + 5179: uint16(18688), + 5180: uint16(7689), + 5181: uint16(18522), + 5182: uint16(18525), + 5183: uint16(18517), + 5184: uint16(18516), + 5185: uint16(18689), + 5186: uint16(4411), + 5187: uint16(18523), + 5188: uint16(18690), + 5189: uint16(18524), + 5190: uint16(18521), + 5191: uint16(8978), + 5192: uint16(18518), + 5193: uint16(9799), + 5194: uint16(18694), + 5195: uint16(11290), + 5196: uint16(18693), + 5197: uint16(18692), + 5198: uint16(18701), + 5199: uint16(18695), + 5200: uint16(18703), + 5201: uint16(11333), + 5202: uint16(18706), + 5203: uint16(18697), + 5204: uint16(18698), + 5205: uint16(18702), + 5206: uint16(18705), + 5207: uint16(18704), + 5208: uint16(18696), + 5209: uint16(18699), + 5210: uint16(18716), + 5211: uint16(18709), + 5212: uint16(18707), + 5213: uint16(18708), + 5214: uint16(18713), + 5215: uint16(18714), + 5216: uint16(4617), + 5217: uint16(5153), + 5218: uint16(18712), + 5219: uint16(18691), + 5220: uint16(18711), + 5221: uint16(18715), + 5222: uint16(18710), + 5223: uint16(18717), + 5224: uint16(18719), + 5225: uint16(18718), + 5226: uint16(18721), + 5227: uint16(18720), + 5228: uint16(18489), + 5229: uint16(18725), + 5230: uint16(18722), + 5231: uint16(18723), + 5232: uint16(18724), + 5233: uint16(18726), + 5234: uint16(5707), + 5235: uint16(18728), + 5236: uint16(18727), + 5237: uint16(7183), + 5238: uint16(6195), + 5239: uint16(15622), + 5240: uint16(18729), + 5241: uint16(7216), + 5242: uint16(4632), + 5243: uint16(18730), + 5244: uint16(4145), + 5245: uint16(7478), + 5246: uint16(18731), + 5247: uint16(6196), + 5248: uint16(18732), + 5249: uint16(3904), + 5250: uint16(10268), + 5251: uint16(18733), + 5252: uint16(7753), + 5253: uint16(18740), + 5254: uint16(18737), + 5255: uint16(8782), + 5256: uint16(18738), + 5257: uint16(18735), + 5258: uint16(5437), + 5259: uint16(18734), + 5260: uint16(18741), + 5261: uint16(5653), + 5262: uint16(8509), + 5263: uint16(18747), + 5264: uint16(18743), + 5265: uint16(8468), + 5266: uint16(18742), + 5267: uint16(18745), + 5268: uint16(18736), + 5269: uint16(18746), + 5270: uint16(18748), + 5271: uint16(10062), + 5272: uint16(18744), + 5273: uint16(18749), + 5274: uint16(18751), + 5275: uint16(5938), + 5276: uint16(18739), + 5277: uint16(3872), + 5278: uint16(18750), + 5279: uint16(6458), + 5280: uint16(11605), + 5281: uint16(18752), + 5282: uint16(18753), + 5283: uint16(8276), + 5284: uint16(11521), + 5285: uint16(18754), + 5286: uint16(11284), + 5287: uint16(18755), + 5288: uint16(18756), + 5289: uint16(10563), + 5290: uint16(18757), + 5291: uint16(6431), + 5292: uint16(11522), + 5293: uint16(18762), + 5294: uint16(18763), + 5295: uint16(7479), + 5296: uint16(18761), + 5297: uint16(11334), + 5298: uint16(18758), + 5299: uint16(18760), + 5300: uint16(7964), + 5301: uint16(7773), + 5302: uint16(18759), + 5303: uint16(18764), + 5304: uint16(10498), + 5305: uint16(18766), + 5306: uint16(18765), + 5307: uint16(4683), + 5308: uint16(10762), + 5309: uint16(18767), + 5310: uint16(18779), + 5311: uint16(18769), + 5312: uint16(18770), + 5313: uint16(18771), + 5314: uint16(18772), + 5315: uint16(18776), + 5316: uint16(18777), + 5317: uint16(18775), + 5318: uint16(18773), + 5319: uint16(18768), + 5320: uint16(18774), + 5321: uint16(18778), + 5322: uint16(20246), + 5323: uint16(4359), + 5324: uint16(18781), + 5325: uint16(5438), + 5326: uint16(18780), + 5327: uint16(18945), + 5328: uint16(18944), + 5329: uint16(18947), + 5330: uint16(18946), + 5331: uint16(18948), + 5332: uint16(7184), + 5333: uint16(18949), + 5334: uint16(18950), + 5335: uint16(18951), + 5336: uint16(7965), + 5337: uint16(11318), + 5338: uint16(18952), + 5339: uint16(10499), + 5340: uint16(9765), + 5341: uint16(18953), + 5342: uint16(18954), + 5343: uint16(5898), + 5344: uint16(5131), + 5345: uint16(18955), + 5346: uint16(6730), + 5347: uint16(9760), + 5348: uint16(18956), + 5349: uint16(4655), + 5350: uint16(18957), + 5351: uint16(18959), + 5352: uint16(11350), + 5353: uint16(18958), + 5354: uint16(7717), + 5355: uint16(18960), + 5356: uint16(18961), + 5357: uint16(18962), + 5358: uint16(4912), + 5359: uint16(18963), + 5360: uint16(18964), + 5361: uint16(18965), + 5362: uint16(18966), + 5363: uint16(4656), + 5364: uint16(18967), + 5365: uint16(18968), + 5366: uint16(18969), + 5367: uint16(4433), + 5368: uint16(7687), + 5369: uint16(18970), + 5370: uint16(18971), + 5371: uint16(18972), + 5372: uint16(5919), + 5373: uint16(9050), + 5374: uint16(18973), + 5375: uint16(5686), + 5376: uint16(7733), + 5377: uint16(18976), + 5378: uint16(9475), + 5379: uint16(18975), + 5380: uint16(5648), + 5381: uint16(18974), + 5382: uint16(8534), + 5383: uint16(5132), + 5384: uint16(18977), + 5385: uint16(18978), + 5386: uint16(7480), + 5387: uint16(5708), + 5388: uint16(18979), + 5389: uint16(10763), + 5390: uint16(7998), + 5391: uint16(5205), + 5392: uint16(11092), + 5393: uint16(8233), + 5394: uint16(18980), + 5395: uint16(7718), + 5396: uint16(8783), + 5397: uint16(7481), + 5398: uint16(18981), + 5399: uint16(18984), + 5400: uint16(18985), + 5401: uint16(6429), + 5402: uint16(8481), + 5403: uint16(18983), + 5404: uint16(7482), + 5405: uint16(10269), + 5406: uint16(18982), + 5407: uint16(6731), + 5408: uint16(4146), + 5409: uint16(18989), + 5410: uint16(5687), + 5411: uint16(6733), + 5412: uint16(6732), + 5413: uint16(11820), + 5414: uint16(18988), + 5415: uint16(18987), + 5416: uint16(8198), + 5417: uint16(5164), + 5418: uint16(11810), + 5419: uint16(4633), + 5420: uint16(7483), + 5421: uint16(18986), + 5422: uint16(18991), + 5423: uint16(18992), + 5424: uint16(18990), + 5425: uint16(5943), + 5426: uint16(11295), + 5427: uint16(6734), + 5428: uint16(9734), + 5429: uint16(18995), + 5430: uint16(7967), + 5431: uint16(8737), + 5432: uint16(11285), + 5433: uint16(18998), + 5434: uint16(5963), + 5435: uint16(7966), + 5436: uint16(18994), + 5437: uint16(18999), + 5438: uint16(5964), + 5439: uint16(18996), + 5440: uint16(18997), + 5441: uint16(18993), + 5442: uint16(8001), + 5443: uint16(9512), + 5444: uint16(8718), + 5445: uint16(4412), + 5446: uint16(10063), + 5447: uint16(5154), + 5448: uint16(8979), + 5449: uint16(19002), + 5450: uint16(19000), + 5451: uint16(8747), + 5452: uint16(7968), + 5453: uint16(4913), + 5454: uint16(19001), + 5455: uint16(7738), + 5456: uint16(11561), + 5457: uint16(11807), + 5458: uint16(19003), + 5459: uint16(19014), + 5460: uint16(8980), + 5461: uint16(19013), + 5462: uint16(19010), + 5463: uint16(19018), + 5464: uint16(19011), + 5465: uint16(19007), + 5466: uint16(9051), + 5467: uint16(19006), + 5468: uint16(19004), + 5469: uint16(11264), + 5470: uint16(6735), + 5471: uint16(19008), + 5472: uint16(19005), + 5473: uint16(19012), + 5474: uint16(7251), + 5475: uint16(5920), + 5476: uint16(8537), + 5477: uint16(10788), + 5478: uint16(4153), + 5479: uint16(3905), + 5480: uint16(9476), + 5481: uint16(19016), + 5482: uint16(19015), + 5483: uint16(9541), + 5484: uint16(19020), + 5485: uint16(19009), + 5486: uint16(19019), + 5487: uint16(19021), + 5488: uint16(5899), + 5489: uint16(19017), + 5490: uint16(6197), + 5491: uint16(6964), + 5492: uint16(19022), + 5493: uint16(11319), + 5494: uint16(19025), + 5495: uint16(19028), + 5496: uint16(19026), + 5497: uint16(10260), + 5498: uint16(19023), + 5499: uint16(5439), + 5500: uint16(19027), + 5501: uint16(19029), + 5502: uint16(19033), + 5503: uint16(19030), + 5504: uint16(19032), + 5505: uint16(19031), + 5506: uint16(19034), + 5507: uint16(6928), + 5508: uint16(19036), + 5509: uint16(19035), + 5510: uint16(10311), + 5511: uint16(19200), + 5512: uint16(5688), + 5513: uint16(19037), + 5514: uint16(19201), + 5515: uint16(19202), + 5516: uint16(5155), + 5517: uint16(17696), + 5518: uint16(7512), + 5519: uint16(19203), + 5520: uint16(5965), + 5521: uint16(19204), + 5522: uint16(19205), + 5523: uint16(6685), + 5524: uint16(14637), + 5525: uint16(19206), + 5526: uint16(19207), + 5527: uint16(7185), + 5528: uint16(19208), + 5529: uint16(19209), + 5530: uint16(19210), + 5531: uint16(19211), + 5532: uint16(19212), + 5533: uint16(8714), + 5534: uint16(19213), + 5535: uint16(19215), + 5536: uint16(19214), + 5537: uint16(9477), + 5538: uint16(19216), + 5539: uint16(10764), + 5540: uint16(19217), + 5541: uint16(19218), + 5542: uint16(19219), + 5543: uint16(19220), + 5544: uint16(9529), + 5545: uint16(7484), + 5546: uint16(19221), + 5547: uint16(6218), + 5548: uint16(12045), + 5549: uint16(19222), + 5550: uint16(19223), + 5551: uint16(10270), + 5552: uint16(19224), + 5553: uint16(19232), + 5554: uint16(19225), + 5555: uint16(19227), + 5556: uint16(19226), + 5557: uint16(19228), + 5558: uint16(10789), + 5559: uint16(19229), + 5560: uint16(19230), + 5561: uint16(19231), + 5562: uint16(19233), + 5563: uint16(4620), + 5564: uint16(9030), + 5565: uint16(10312), + 5566: uint16(6465), + 5567: uint16(6198), + 5568: uint16(10286), + 5569: uint16(4414), + 5570: uint16(10029), + 5571: uint16(19236), + 5572: uint16(4914), + 5573: uint16(7988), + 5574: uint16(19235), + 5575: uint16(19240), + 5576: uint16(8792), + 5577: uint16(11074), + 5578: uint16(19238), + 5579: uint16(19239), + 5580: uint16(5133), + 5581: uint16(19241), + 5582: uint16(9794), + 5583: uint16(8510), + 5584: uint16(10064), + 5585: uint16(9244), + 5586: uint16(19237), + 5587: uint16(10790), + 5588: uint16(4427), + 5589: uint16(19243), + 5590: uint16(11783), + 5591: uint16(8993), + 5592: uint16(11812), + 5593: uint16(6736), + 5594: uint16(19242), + 5595: uint16(8464), + 5596: uint16(19259), + 5597: uint16(8199), + 5598: uint16(9559), + 5599: uint16(10287), + 5600: uint16(19246), + 5601: uint16(6686), + 5602: uint16(6737), + 5603: uint16(7485), + 5604: uint16(9796), + 5605: uint16(5900), + 5606: uint16(19245), + 5607: uint16(19244), + 5608: uint16(10313), + 5609: uint16(6944), + 5610: uint16(9265), + 5611: uint16(19248), + 5612: uint16(19249), + 5613: uint16(6199), + 5614: uint16(19247), + 5615: uint16(19250), + 5616: uint16(19251), + 5617: uint16(19253), + 5618: uint16(8450), + 5619: uint16(19252), + 5620: uint16(4933), + 5621: uint16(19255), + 5622: uint16(19254), + 5623: uint16(19256), + 5624: uint16(19258), + 5625: uint16(19260), + 5626: uint16(19261), + 5627: uint16(7989), + 5628: uint16(6958), + 5629: uint16(19262), + 5630: uint16(4657), + 5631: uint16(19263), + 5632: uint16(8277), + 5633: uint16(19264), + 5634: uint16(19265), + 5635: uint16(10314), + 5636: uint16(5134), + 5637: uint16(19266), + 5638: uint16(8981), + 5639: uint16(4154), + 5640: uint16(19267), + 5641: uint16(6992), + 5642: uint16(7765), + 5643: uint16(8460), + 5644: uint16(19270), + 5645: uint16(19269), + 5646: uint16(19268), + 5647: uint16(19276), + 5648: uint16(19274), + 5649: uint16(19271), + 5650: uint16(19273), + 5651: uint16(19272), + 5652: uint16(19275), + 5653: uint16(5206), + 5654: uint16(19279), + 5655: uint16(7990), + 5656: uint16(19280), + 5657: uint16(5944), + 5658: uint16(19277), + 5659: uint16(19278), + 5660: uint16(11784), + 5661: uint16(8982), + 5662: uint16(8200), + 5663: uint16(19281), + 5664: uint16(19284), + 5665: uint16(19282), + 5666: uint16(19283), + 5667: uint16(11320), + 5668: uint16(9478), + 5669: uint16(19287), + 5670: uint16(19285), + 5671: uint16(19286), + 5672: uint16(19288), + 5673: uint16(19464), + 5674: uint16(19291), + 5675: uint16(19292), + 5676: uint16(19290), + 5677: uint16(19289), + 5678: uint16(9052), + 5679: uint16(19456), + 5680: uint16(19460), + 5681: uint16(19457), + 5682: uint16(19293), + 5683: uint16(19458), + 5684: uint16(19459), + 5685: uint16(19466), + 5686: uint16(19461), + 5687: uint16(7991), + 5688: uint16(19463), + 5689: uint16(19465), + 5690: uint16(19462), + 5691: uint16(19468), + 5692: uint16(7186), + 5693: uint16(19467), + 5694: uint16(19469), + 5695: uint16(19470), + 5696: uint16(19473), + 5697: uint16(19472), + 5698: uint16(19471), + 5699: uint16(19475), + 5700: uint16(19474), + 5701: uint16(11093), + 5702: uint16(19477), + 5703: uint16(19476), + 5704: uint16(19478), + 5705: uint16(19479), + 5706: uint16(19481), + 5707: uint16(19480), + 5708: uint16(7719), + 5709: uint16(19482), + 5710: uint16(5452), + 5711: uint16(19483), + 5712: uint16(19485), + 5713: uint16(19486), + 5714: uint16(19487), + 5715: uint16(19484), + 5716: uint16(19488), + 5717: uint16(6965), + 5718: uint16(19489), + 5719: uint16(5135), + 5720: uint16(5650), + 5721: uint16(5901), + 5722: uint16(19490), + 5723: uint16(9551), + 5724: uint16(9245), + 5725: uint16(19491), + 5726: uint16(19494), + 5727: uint16(6931), + 5728: uint16(19493), + 5729: uint16(19492), + 5730: uint16(5689), + 5731: uint16(19495), + 5732: uint16(4658), + 5733: uint16(19497), + 5734: uint16(6459), + 5735: uint16(19496), + 5736: uint16(19505), + 5737: uint16(19499), + 5738: uint16(19501), + 5739: uint16(10564), + 5740: uint16(19498), + 5741: uint16(19500), + 5742: uint16(19504), + 5743: uint16(19502), + 5744: uint16(5136), + 5745: uint16(19503), + 5746: uint16(19506), + 5747: uint16(9785), + 5748: uint16(11575), + 5749: uint16(7187), + 5750: uint16(19507), + 5751: uint16(11265), + 5752: uint16(19509), + 5753: uint16(19508), + 5754: uint16(19512), + 5755: uint16(11296), + 5756: uint16(19511), + 5757: uint16(4684), + 5758: uint16(19510), + 5759: uint16(19515), + 5760: uint16(19514), + 5761: uint16(19513), + 5762: uint16(9233), + 5763: uint16(19516), + 5764: uint16(19517), + 5765: uint16(19518), + 5766: uint16(6219), + 5767: uint16(5636), + 5768: uint16(19519), + 5769: uint16(19520), + 5770: uint16(19521), + 5771: uint16(7720), + 5772: uint16(19522), + 5773: uint16(6924), + 5774: uint16(19523), + 5775: uint16(19524), + 5776: uint16(12544), + 5777: uint16(12381), + 5778: uint16(19525), + 5779: uint16(17487), + 5780: uint16(19526), + 5781: uint16(8707), + 5782: uint16(7690), + 5783: uint16(9759), + 5784: uint16(19527), + 5785: uint16(10548), + 5786: uint16(9011), + 5787: uint16(6237), + 5788: uint16(8712), + 5789: uint16(4105), + 5790: uint16(10839), + 5791: uint16(7734), + 5792: uint16(5693), + 5793: uint16(5440), + 5794: uint16(10549), + 5795: uint16(19528), + 5796: uint16(19530), + 5797: uint16(19529), + 5798: uint16(4415), + 5799: uint16(9557), + 5800: uint16(19531), + 5801: uint16(9814), + 5802: uint16(9234), + 5803: uint16(19532), + 5804: uint16(7217), + 5805: uint16(19534), + 5806: uint16(11041), + 5807: uint16(19549), + 5808: uint16(19536), + 5809: uint16(19537), + 5810: uint16(9000), + 5811: uint16(8511), + 5812: uint16(8278), + 5813: uint16(9479), + 5814: uint16(19535), + 5815: uint16(5172), + 5816: uint16(19544), + 5817: uint16(19541), + 5818: uint16(19716), + 5819: uint16(9480), + 5820: uint16(8767), + 5821: uint16(19538), + 5822: uint16(9053), + 5823: uint16(9266), + 5824: uint16(19539), + 5825: uint16(19543), + 5826: uint16(7743), + 5827: uint16(9798), + 5828: uint16(9003), + 5829: uint16(7969), + 5830: uint16(19542), + 5831: uint16(8461), + 5832: uint16(8451), + 5833: uint16(19540), + 5834: uint16(3848), + 5835: uint16(11777), + 5836: uint16(19545), + 5837: uint16(8512), + 5838: uint16(7188), + 5839: uint16(7721), + 5840: uint16(19547), + 5841: uint16(19546), + 5842: uint16(3918), + 5843: uint16(19548), + 5844: uint16(10254), + 5845: uint16(19718), + 5846: uint16(9530), + 5847: uint16(7754), + 5848: uint16(8760), + 5849: uint16(5463), + 5850: uint16(19717), + 5851: uint16(11286), + 5852: uint16(4126), + 5853: uint16(10550), + 5854: uint16(4416), + 5855: uint16(19712), + 5856: uint16(19713), + 5857: uint16(19714), + 5858: uint16(19715), + 5859: uint16(9498), + 5860: uint16(8706), + 5861: uint16(3906), + 5862: uint16(19719), + 5863: uint16(19720), + 5864: uint16(21250), + 5865: uint16(8476), + 5866: uint16(19721), + 5867: uint16(4178), + 5868: uint16(8235), + 5869: uint16(5902), + 5870: uint16(11321), + 5871: uint16(19722), + 5872: uint16(9227), + 5873: uint16(8279), + 5874: uint16(6966), + 5875: uint16(19723), + 5876: uint16(19726), + 5877: uint16(7236), + 5878: uint16(19724), + 5879: uint16(8202), + 5880: uint16(8201), + 5881: uint16(3907), + 5882: uint16(11562), + 5883: uint16(19728), + 5884: uint16(10065), + 5885: uint16(19730), + 5886: uint16(19729), + 5887: uint16(19727), + 5888: uint16(16963), + 5889: uint16(4915), + 5890: uint16(19533), + 5891: uint16(19732), + 5892: uint16(19731), + 5893: uint16(19733), + 5894: uint16(11287), + 5895: uint16(9536), + 5896: uint16(10765), + 5897: uint16(19734), + 5898: uint16(6968), + 5899: uint16(19735), + 5900: uint16(19736), + 5901: uint16(19737), + 5902: uint16(9216), + 5903: uint16(3913), + 5904: uint16(6200), + 5905: uint16(11801), + 5906: uint16(19741), + 5907: uint16(5651), + 5908: uint16(19738), + 5909: uint16(19739), + 5910: uint16(10323), + 5911: uint16(4659), + 5912: uint16(11288), + 5913: uint16(5406), + 5914: uint16(9267), + 5915: uint16(19742), + 5916: uint16(19743), + 5917: uint16(19744), + 5918: uint16(9217), + 5919: uint16(19746), + 5920: uint16(19745), + 5921: uint16(9522), + 5922: uint16(19747), + 5923: uint16(7189), + 5924: uint16(6975), + 5925: uint16(9786), + 5926: uint16(8784), + 5927: uint16(6993), + 5928: uint16(7755), + 5929: uint16(19748), + 5930: uint16(19749), + 5931: uint16(7740), + 5932: uint16(19750), + 5933: uint16(19751), + 5934: uint16(19752), + 5935: uint16(11342), + 5936: uint16(7190), + 5937: uint16(19754), + 5938: uint16(19753), + 5939: uint16(6201), + 5940: uint16(6226), + 5941: uint16(6687), + 5942: uint16(19757), + 5943: uint16(7237), + 5944: uint16(19756), + 5945: uint16(19755), + 5946: uint16(8520), + 5947: uint16(5966), + 5948: uint16(7970), + 5949: uint16(9999), + 5950: uint16(7192), + 5951: uint16(19758), + 5952: uint16(7486), + 5953: uint16(19761), + 5954: uint16(19759), + 5955: uint16(19760), + 5956: uint16(19763), + 5957: uint16(19762), + 5958: uint16(7513), + 5959: uint16(19764), + 5960: uint16(19765), + 5961: uint16(19766), + 5962: uint16(10031), + 5963: uint16(6450), + 5964: uint16(6976), + 5965: uint16(19767), + 5966: uint16(19768), + 5967: uint16(11523), + 5968: uint16(7204), + 5969: uint16(11085), + 5970: uint16(11563), + 5971: uint16(19769), + 5972: uint16(5441), + 5973: uint16(19770), + 5974: uint16(9218), + 5975: uint16(19773), + 5976: uint16(4695), + 5977: uint16(7722), + 5978: uint16(19771), + 5979: uint16(19772), + 5980: uint16(9023), + 5981: uint16(10804), + 5982: uint16(5467), + 5983: uint16(19775), + 5984: uint16(19776), + 5985: uint16(19774), + 5986: uint16(19778), + 5987: uint16(9534), + 5988: uint16(4642), + 5989: uint16(19782), + 5990: uint16(19779), + 5991: uint16(19781), + 5992: uint16(19777), + 5993: uint16(20014), + 5994: uint16(19780), + 5995: uint16(11594), + 5996: uint16(5945), + 5997: uint16(19790), + 5998: uint16(9235), + 5999: uint16(19785), + 6000: uint16(19788), + 6001: uint16(19786), + 6002: uint16(19791), + 6003: uint16(19792), + 6004: uint16(19784), + 6005: uint16(19797), + 6006: uint16(4179), + 6007: uint16(19783), + 6008: uint16(9996), + 6009: uint16(19787), + 6010: uint16(7487), + 6011: uint16(6202), + 6012: uint16(10791), + 6013: uint16(5443), + 6014: uint16(7205), + 6015: uint16(9499), + 6016: uint16(8204), + 6017: uint16(19795), + 6018: uint16(19789), + 6019: uint16(19794), + 6020: uint16(11042), + 6021: uint16(8983), + 6022: uint16(19796), + 6023: uint16(19793), + 6024: uint16(8203), + 6025: uint16(19800), + 6026: uint16(19799), + 6027: uint16(19798), + 6028: uint16(10766), + 6029: uint16(7258), + 6030: uint16(19801), + 6031: uint16(10558), + 6032: uint16(4147), + 6033: uint16(10277), + 6034: uint16(8785), + 6035: uint16(5207), + 6036: uint16(19803), + 6037: uint16(6204), + 6038: uint16(6667), + 6039: uint16(19802), + 6040: uint16(7756), + 6041: uint16(7757), + 6042: uint16(19968), + 6043: uint16(19970), + 6044: uint16(7514), + 6045: uint16(19969), + 6046: uint16(19971), + 6047: uint16(5426), + 6048: uint16(10276), + 6049: uint16(6977), + 6050: uint16(11778), + 6051: uint16(19805), + 6052: uint16(6487), + 6053: uint16(11806), + 6054: uint16(19973), + 6055: uint16(19972), + 6056: uint16(19974), + 6057: uint16(19804), + 6058: uint16(9544), + 6059: uint16(9268), + 6060: uint16(9014), + 6061: uint16(19979), + 6062: uint16(8738), + 6063: uint16(19975), + 6064: uint16(19976), + 6065: uint16(5644), + 6066: uint16(19978), + 6067: uint16(5903), + 6068: uint16(19977), + 6069: uint16(7488), + 6070: uint16(4696), + 6071: uint16(19983), + 6072: uint16(6430), + 6073: uint16(8280), + 6074: uint16(9001), + 6075: uint16(4634), + 6076: uint16(19981), + 6077: uint16(19982), + 6078: uint16(8994), + 6079: uint16(19980), + 6080: uint16(19984), + 6081: uint16(19990), + 6082: uint16(19993), + 6083: uint16(19992), + 6084: uint16(9228), + 6085: uint16(19985), + 6086: uint16(19986), + 6087: uint16(19989), + 6088: uint16(19991), + 6089: uint16(5407), + 6090: uint16(19994), + 6091: uint16(19988), + 6092: uint16(19987), + 6093: uint16(19998), + 6094: uint16(19999), + 6095: uint16(20000), + 6096: uint16(19997), + 6097: uint16(19996), + 6098: uint16(7489), + 6099: uint16(9481), + 6100: uint16(19995), + 6101: uint16(20004), + 6102: uint16(20002), + 6103: uint16(20003), + 6104: uint16(20001), + 6105: uint16(8535), + 6106: uint16(20005), + 6107: uint16(20006), + 6108: uint16(20008), + 6109: uint16(4916), + 6110: uint16(20007), + 6111: uint16(11097), + 6112: uint16(20019), + 6113: uint16(20009), + 6114: uint16(20012), + 6115: uint16(20010), + 6116: uint16(20011), + 6117: uint16(20013), + 6118: uint16(20015), + 6119: uint16(20016), + 6120: uint16(20017), + 6121: uint16(20020), + 6122: uint16(20018), + 6123: uint16(20021), + 6124: uint16(20023), + 6125: uint16(20022), + 6126: uint16(8984), + 6127: uint16(11078), + 6128: uint16(20024), + 6129: uint16(8205), + 6130: uint16(20025), + 6131: uint16(10531), + 6132: uint16(20026), + 6133: uint16(4618), + 6134: uint16(4123), + 6135: uint16(4918), + 6136: uint16(4917), + 6137: uint16(20027), + 6138: uint16(20028), + 6139: uint16(20029), + 6140: uint16(20030), + 6141: uint16(20031), + 6142: uint16(4919), + 6143: uint16(4660), + 6144: uint16(6205), + 6145: uint16(10005), + 6146: uint16(20033), + 6147: uint16(20032), + 6148: uint16(20034), + 6149: uint16(4155), + 6150: uint16(20037), + 6151: uint16(20036), + 6152: uint16(20035), + 6153: uint16(20038), + 6154: uint16(20041), + 6155: uint16(3878), + 6156: uint16(20039), + 6157: uint16(20043), + 6158: uint16(20042), + 6159: uint16(20045), + 6160: uint16(20044), + 6161: uint16(20046), + 6162: uint16(9485), + 6163: uint16(20047), + 6164: uint16(20048), + 6165: uint16(20050), + 6166: uint16(20049), + 6167: uint16(10315), + 6168: uint16(20051), + 6169: uint16(20052), + 6170: uint16(6468), + 6171: uint16(20053), + 6172: uint16(20054), + 6173: uint16(10792), + 6174: uint16(8234), + 6175: uint16(3843), + 6176: uint16(8490), + 6177: uint16(20055), + 6178: uint16(10316), + 6179: uint16(20058), + 6180: uint16(20056), + 6181: uint16(6206), + 6182: uint16(20057), + 6183: uint16(5921), + 6184: uint16(10532), + 6185: uint16(20060), + 6186: uint16(20224), + 6187: uint16(20061), + 6188: uint16(20225), + 6189: uint16(4096), + 6190: uint16(7735), + 6191: uint16(7259), + 6192: uint16(4920), + 6193: uint16(20226), + 6194: uint16(9797), + 6195: uint16(20228), + 6196: uint16(4097), + 6197: uint16(20227), + 6198: uint16(8995), + 6199: uint16(11564), + 6200: uint16(9482), + 6201: uint16(20059), + 6202: uint16(11525), + 6203: uint16(5904), + 6204: uint16(11322), + 6205: uint16(5464), + 6206: uint16(11539), + 6207: uint16(5639), + 6208: uint16(8513), + 6209: uint16(17920), + 6210: uint16(20229), + 6211: uint16(4619), + 6212: uint16(7758), + 6213: uint16(4661), + 6214: uint16(20231), + 6215: uint16(20232), + 6216: uint16(20230), + 6217: uint16(5699), + 6218: uint16(6460), + 6219: uint16(7490), + 6220: uint16(4098), + 6221: uint16(11576), + 6222: uint16(20234), + 6223: uint16(19725), + 6224: uint16(20233), + 6225: uint16(20237), + 6226: uint16(20235), + 6227: uint16(20236), + 6228: uint16(20238), + 6229: uint16(20239), + 6230: uint16(11595), + 6231: uint16(20240), + 6232: uint16(20241), + 6233: uint16(7976), + 6234: uint16(10010), + 6235: uint16(7772), + 6236: uint16(4934), + 6237: uint16(11289), + 6238: uint16(4428), + 6239: uint16(7191), + 6240: uint16(5946), + 6241: uint16(20244), + 6242: uint16(20243), + 6243: uint16(6738), + 6244: uint16(20245), + 6245: uint16(20242), + 6246: uint16(6663), + 6247: uint16(20249), + 6248: uint16(18700), + 6249: uint16(12597), + 6250: uint16(7766), + 6251: uint16(20247), + 6252: uint16(11524), + 6253: uint16(9552), + 6254: uint16(4106), + 6255: uint16(8002), + 6256: uint16(6933), + 6257: uint16(10518), + 6258: uint16(4127), + 6259: uint16(11596), + 6260: uint16(11338), + 6261: uint16(20250), + 6262: uint16(9252), + 6263: uint16(7002), + 6264: uint16(20251), + 6265: uint16(20252), + 6266: uint16(7723), + 6267: uint16(20253), + 6268: uint16(11597), + 6269: uint16(20248), + 6270: uint16(20255), + 6271: uint16(20257), + 6272: uint16(20256), + 6273: uint16(20254), + 6274: uint16(20258), + 6275: uint16(20259), + 6276: uint16(8281), + 6277: uint16(4417), + 6278: uint16(20260), + 6279: uint16(11031), + 6280: uint16(20261), + 6281: uint16(20262), + 6282: uint16(11785), + 6283: uint16(14864), + 6284: uint16(20263), + 6285: uint16(20264), + 6286: uint16(20265), + 6287: uint16(20269), + 6288: uint16(20266), + 6289: uint16(20267), + 6290: uint16(20268), + 6291: uint16(20270), + 6292: uint16(7971), + 6293: uint16(11094), + 6294: uint16(7972), + 6295: uint16(20271), + 6296: uint16(10066), + 6297: uint16(20272), + 6298: uint16(21042), + 6299: uint16(11051), + 6300: uint16(20273), + 6301: uint16(20274), + 6302: uint16(20275), + 6303: uint16(4662), + 6304: uint16(20277), + 6305: uint16(7736), + 6306: uint16(20278), + 6307: uint16(5635), + 6308: uint16(20279), + 6309: uint16(20283), + 6310: uint16(20281), + 6311: uint16(20282), + 6312: uint16(4690), + 6313: uint16(20280), + 6314: uint16(20284), + 6315: uint16(20285), + 6316: uint16(3879), + 6317: uint16(20286), + 6318: uint16(20287), + 6319: uint16(7491), + 6320: uint16(20288), + 6321: uint16(5158), + 6322: uint16(20291), + 6323: uint16(20290), + 6324: uint16(20289), + 6325: uint16(19024), + 6326: uint16(10555), + 6327: uint16(20292), + 6328: uint16(20293), + 6329: uint16(20294), + 6330: uint16(20295), + 6331: uint16(20296), + 6332: uint16(20297), + 6333: uint16(4921), + 6334: uint16(20298), + 6335: uint16(20299), + 6336: uint16(9730), + 6337: uint16(20301), + 6338: uint16(4378), + 6339: uint16(20304), + 6340: uint16(20303), + 6341: uint16(4099), + 6342: uint16(5408), + 6343: uint16(10534), + 6344: uint16(8985), + 6345: uint16(6401), + 6346: uint16(6207), + 6347: uint16(7238), + 6348: uint16(7739), + 6349: uint16(20306), + 6350: uint16(20305), + 6351: uint16(11297), + 6352: uint16(4935), + 6353: uint16(10033), + 6354: uint16(9531), + 6355: uint16(7771), + 6356: uint16(11565), + 6357: uint16(5690), + 6358: uint16(20309), + 6359: uint16(20308), + 6360: uint16(10794), + 6361: uint16(9483), + 6362: uint16(4143), + 6363: uint16(20310), + 6364: uint16(20307), + 6365: uint16(10288), + 6366: uint16(11337), + 6367: uint16(20311), + 6368: uint16(20312), + 6369: uint16(20314), + 6370: uint16(8521), + 6371: uint16(4666), + 6372: uint16(4667), + 6373: uint16(20313), + 6374: uint16(4936), + 6375: uint16(5905), + 6376: uint16(4937), + 6377: uint16(9246), + 6378: uint16(11583), + 6379: uint16(5947), + 6380: uint16(20315), + 6381: uint16(20316), + 6382: uint16(20317), + 6383: uint16(20480), + 6384: uint16(20482), + 6385: uint16(20481), + 6386: uint16(10326), + 6387: uint16(20483), + 6388: uint16(20484), + 6389: uint16(20485), + 6390: uint16(20486), + 6391: uint16(20488), + 6392: uint16(20487), + 6393: uint16(20489), + 6394: uint16(10067), + 6395: uint16(17707), + 6396: uint16(7688), + 6397: uint16(5137), + 6398: uint16(20490), + 6399: uint16(20491), + 6400: uint16(12555), + 6401: uint16(15386), + 6402: uint16(10034), + 6403: uint16(3930), + 6404: uint16(3866), + 6405: uint16(6739), + 6406: uint16(10767), + 6407: uint16(7517), + 6408: uint16(20492), + 6409: uint16(11070), + 6410: uint16(20493), + 6411: uint16(11323), + 6412: uint16(4129), + 6413: uint16(6688), + 6414: uint16(20494), + 6415: uint16(4429), + 6416: uint16(20495), + 6417: uint16(20496), + 6418: uint16(20498), + 6419: uint16(20499), + 6420: uint16(20501), + 6421: uint16(20497), + 6422: uint16(20500), + 6423: uint16(4922), + 6424: uint16(20502), + 6425: uint16(20503), + 6426: uint16(20504), + 6427: uint16(20505), + 6428: uint16(20506), + 6429: uint16(20508), + 6430: uint16(20507), + 6431: uint16(20510), + 6432: uint16(20513), + 6433: uint16(20509), + 6434: uint16(20511), + 6435: uint16(20512), + 6436: uint16(20514), + 6437: uint16(5409), + 6438: uint16(6994), + 6439: uint16(20515), + 6440: uint16(20516), + 6441: uint16(6208), + 6442: uint16(20517), + 6443: uint16(4637), + 6444: uint16(9774), + 6445: uint16(20518), + 6446: uint16(20519), + 6447: uint16(8761), + 6448: uint16(9546), + 6449: uint16(20520), + 6450: uint16(9820), + 6451: uint16(8491), + 6452: uint16(4151), + 6453: uint16(5453), + 6454: uint16(5454), + 6455: uint16(8786), + 6456: uint16(20525), + 6457: uint16(5455), + 6458: uint16(4430), + 6459: uint16(20524), + 6460: uint16(20522), + 6461: uint16(20523), + 6462: uint16(20521), + 6463: uint16(20535), + 6464: uint16(20526), + 6465: uint16(20527), + 6466: uint16(20528), + 6467: uint16(20529), + 6468: uint16(20531), + 6469: uint16(20530), + 6470: uint16(7224), + 6471: uint16(20532), + 6472: uint16(20534), + 6473: uint16(5138), + 6474: uint16(20533), + 6475: uint16(8282), + 6476: uint16(5906), + 6477: uint16(20536), + 6478: uint16(8492), + 6479: uint16(20537), + 6480: uint16(9484), + 6481: uint16(20538), + 6482: uint16(20543), + 6483: uint16(20541), + 6484: uint16(20540), + 6485: uint16(20542), + 6486: uint16(20539), + 6487: uint16(20545), + 6488: uint16(20544), + 6489: uint16(20547), + 6490: uint16(5410), + 6491: uint16(20546), + 6492: uint16(20548), + 6493: uint16(20549), + 6494: uint16(20551), + 6495: uint16(20550), + 6496: uint16(20552), + 6497: uint16(20554), + 6498: uint16(20553), + 6499: uint16(6235), + 6500: uint16(20555), + 6501: uint16(20556), + 6502: uint16(4635), + 6503: uint16(20557), + 6504: uint16(20558), + 6505: uint16(7760), + 6506: uint16(20559), + 6507: uint16(20560), + 6508: uint16(20561), + 6509: uint16(20562), + 6510: uint16(6209), + 6511: uint16(20563), + 6512: uint16(20564), + 6513: uint16(20565), + 6514: uint16(20566), + 6515: uint16(20567), + 6516: uint16(10000), + 6517: uint16(20569), + 6518: uint16(10245), + 6519: uint16(20570), + 6520: uint16(20568), + 6521: uint16(20572), + 6522: uint16(20571), + 6523: uint16(20573), + 6524: uint16(20736), + 6525: uint16(20737), + 6526: uint16(20738), + 6527: uint16(20739), + 6528: uint16(20740), + 6529: uint16(20741), + 6530: uint16(20742), + 6531: uint16(20743), + 6532: uint16(20744), + 6533: uint16(20745), + 6534: uint16(20746), + 6535: uint16(20747), + 6536: uint16(20748), + 6537: uint16(20749), + 6538: uint16(15380), + 6539: uint16(20750), + 6540: uint16(17239), + 6541: uint16(5139), + 6542: uint16(4608), + 6543: uint16(6417), + 6544: uint16(20752), + 6545: uint16(20751), + 6546: uint16(11012), + 6547: uint16(20754), + 6548: uint16(20755), + 6549: uint16(20753), + 6550: uint16(20756), + 6551: uint16(10817), + 6552: uint16(20757), + 6553: uint16(5210), + 6554: uint16(11780), + 6555: uint16(20758), + 6556: uint16(20760), + 6557: uint16(3869), + 6558: uint16(20761), + 6559: uint16(10506), + 6560: uint16(20759), + 6561: uint16(20762), + 6562: uint16(20763), + 6563: uint16(20764), + 6564: uint16(20765), + 6565: uint16(20766), + 6566: uint16(10829), + 6567: uint16(6668), + 6568: uint16(6489), + 6569: uint16(8206), + 6570: uint16(20767), + 6571: uint16(20770), + 6572: uint16(20768), + 6573: uint16(20771), + 6574: uint16(5968), + 6575: uint16(20769), + 6576: uint16(20772), + 6577: uint16(20773), + 6578: uint16(20774), + 6579: uint16(20778), + 6580: uint16(6665), + 6581: uint16(8515), + 6582: uint16(20779), + 6583: uint16(20776), + 6584: uint16(20775), + 6585: uint16(20777), + 6586: uint16(5694), + 6587: uint16(20783), + 6588: uint16(20782), + 6589: uint16(20781), + 6590: uint16(3858), + 6591: uint16(20793), + 6592: uint16(20789), + 6593: uint16(20790), + 6594: uint16(20786), + 6595: uint16(20792), + 6596: uint16(20788), + 6597: uint16(4673), + 6598: uint16(11819), + 6599: uint16(20791), + 6600: uint16(20787), + 6601: uint16(20785), + 6602: uint16(20784), + 6603: uint16(20795), + 6604: uint16(20798), + 6605: uint16(20797), + 6606: uint16(20796), + 6607: uint16(10280), + 6608: uint16(20794), + 6609: uint16(3922), + 6610: uint16(20799), + 6611: uint16(20801), + 6612: uint16(4686), + 6613: uint16(20780), + 6614: uint16(4118), + 6615: uint16(20803), + 6616: uint16(20802), + 6617: uint16(20800), + 6618: uint16(8716), + 6619: uint16(10831), + 6620: uint16(11577), + 6621: uint16(20804), + 6622: uint16(20805), + 6623: uint16(20806), + 6624: uint16(20807), + 6625: uint16(20808), + 6626: uint16(8986), + 6627: uint16(20809), + 6628: uint16(10006), + 6629: uint16(20814), + 6630: uint16(20810), + 6631: uint16(20811), + 6632: uint16(10768), + 6633: uint16(11043), + 6634: uint16(9519), + 6635: uint16(20815), + 6636: uint16(20816), + 6637: uint16(9501), + 6638: uint16(20813), + 6639: uint16(20812), + 6640: uint16(4361), + 6641: uint16(20824), + 6642: uint16(20823), + 6643: uint16(4180), + 6644: uint16(20821), + 6645: uint16(20820), + 6646: uint16(20818), + 6647: uint16(4698), + 6648: uint16(20817), + 6649: uint16(6929), + 6650: uint16(4360), + 6651: uint16(6210), + 6652: uint16(20827), + 6653: uint16(20826), + 6654: uint16(20825), + 6655: uint16(20822), + 6656: uint16(20828), + 6657: uint16(20829), + 6658: uint16(20996), + 6659: uint16(20995), + 6660: uint16(20997), + 6661: uint16(4108), + 6662: uint16(20992), + 6663: uint16(20993), + 6664: uint16(6227), + 6665: uint16(11032), + 6666: uint16(20994), + 6667: uint16(10769), + 6668: uint16(21002), + 6669: uint16(20998), + 6670: uint16(21003), + 6671: uint16(21000), + 6672: uint16(20999), + 6673: uint16(5691), + 6674: uint16(21004), + 6675: uint16(21005), + 6676: uint16(21006), + 6677: uint16(21001), + 6678: uint16(20819), + 6679: uint16(21007), + 6680: uint16(9024), + 6681: uint16(21011), + 6682: uint16(21012), + 6683: uint16(21010), + 6684: uint16(21009), + 6685: uint16(21015), + 6686: uint16(21008), + 6687: uint16(21013), + 6688: uint16(21014), + 6689: uint16(21017), + 6690: uint16(21016), + 6691: uint16(21019), + 6692: uint16(21020), + 6693: uint16(21021), + 6694: uint16(11816), + 6695: uint16(21018), + 6696: uint16(8522), + 6697: uint16(6476), + 6698: uint16(21022), + 6699: uint16(21023), + 6700: uint16(21024), + 6701: uint16(21025), + 6702: uint16(21026), + 6703: uint16(5907), + 6704: uint16(21027), + 6705: uint16(21028), + 6706: uint16(6926), + 6707: uint16(21029), + 6708: uint16(21030), + 6709: uint16(21031), + 6710: uint16(21032), + 6711: uint16(21035), + 6712: uint16(21033), + 6713: uint16(11803), + 6714: uint16(21034), + 6715: uint16(11598), + 6716: uint16(21036), + 6717: uint16(11578), + 6718: uint16(21037), + 6719: uint16(9821), + 6720: uint16(21038), + 6721: uint16(21040), + 6722: uint16(21041), + 6723: uint16(21039), + 6724: uint16(6220), + 6725: uint16(11052), + 6726: uint16(10818), + 6727: uint16(13654), + 6728: uint16(15423), + 6729: uint16(10842), + 6730: uint16(4362), + 6731: uint16(21043), + 6732: uint16(5167), + 6733: uint16(21044), + 6734: uint16(21045), + 6735: uint16(21046), + 6736: uint16(6228), + 6737: uint16(21047), + 6738: uint16(16179), + 6739: uint16(11066), + 6740: uint16(8514), + 6741: uint16(21048), + 6742: uint16(21050), + 6743: uint16(21049), + 6744: uint16(21051), + 6745: uint16(21052), + 6746: uint16(21053), + 6747: uint16(21054), + 6748: uint16(21055), + 6749: uint16(21056), + 6750: uint16(21057), + 6751: uint16(21058), + 6752: uint16(21059), + 6753: uint16(21060), + 6754: uint16(21061), + 6755: uint16(21062), + 6756: uint16(21063), + 6757: uint16(9219), + 6758: uint16(5948), + 6759: uint16(21065), + 6760: uint16(8236), + 6761: uint16(21066), + 6762: uint16(21067), + 6763: uint16(10240), + 6764: uint16(21068), + 6765: uint16(21069), + 6766: uint16(16918), + 6767: uint16(19257), + 6768: uint16(20300), + 6769: uint16(21070), + 6770: uint16(21071), + 6771: uint16(21073), + 6772: uint16(21074), + 6773: uint16(21075), + 6774: uint16(11599), + 6775: uint16(21072), + 6776: uint16(21076), + 6777: uint16(21077), + 6778: uint16(21079), + 6779: uint16(21078), + 6780: uint16(21081), + 6781: uint16(21082), + 6782: uint16(21080), + 6783: uint16(11541), + 6784: uint16(21083), + 6785: uint16(21084), + 6786: uint16(16947), + 6787: uint16(21085), + 6788: uint16(9), + 6789: uint16(83), + 6790: uint16(79), + 6791: uint16(82), + 6792: uint16(84), + 6793: uint16(41), + 6794: uint16(42), + 6795: uint16(85), + 6796: uint16(59), + 6797: uint16(3), + 6798: uint16(4), + 6799: uint16(30), + 6800: uint16(527), + 6801: uint16(528), + 6802: uint16(529), + 6803: uint16(530), + 6804: uint16(531), + 6805: uint16(532), + 6806: uint16(533), + 6807: uint16(534), + 6808: uint16(535), + 6809: uint16(536), + 6810: uint16(6), + 6811: uint16(7), + 6812: uint16(66), + 6813: uint16(64), + 6814: uint16(67), + 6815: uint16(8), + 6816: uint16(86), + 6817: uint16(544), + 6818: uint16(545), + 6819: uint16(546), + 6820: uint16(547), + 6821: uint16(548), + 6822: uint16(549), + 6823: uint16(550), + 6824: uint16(551), + 6825: uint16(552), + 6826: uint16(553), + 6827: uint16(554), + 6828: uint16(555), + 6829: uint16(556), + 6830: uint16(557), + 6831: uint16(558), + 6832: uint16(559), + 6833: uint16(560), + 6834: uint16(561), + 6835: uint16(562), + 6836: uint16(563), + 6837: uint16(564), + 6838: uint16(565), + 6839: uint16(566), + 6840: uint16(567), + 6841: uint16(568), + 6842: uint16(569), + 6843: uint16(45), + 6844: uint16(46), + 6845: uint16(15), + 6846: uint16(17), + 6847: uint16(13), + 6848: uint16(576), + 6849: uint16(577), + 6850: uint16(578), + 6851: uint16(579), + 6852: uint16(580), + 6853: uint16(581), + 6854: uint16(582), + 6855: uint16(583), + 6856: uint16(584), + 6857: uint16(585), + 6858: uint16(586), + 6859: uint16(587), + 6860: uint16(588), + 6861: uint16(589), + 6862: uint16(590), + 6863: uint16(591), + 6864: uint16(592), + 6865: uint16(593), + 6866: uint16(594), + 6867: uint16(595), + 6868: uint16(596), + 6869: uint16(597), + 6870: uint16(598), + 6871: uint16(599), + 6872: uint16(600), + 6873: uint16(601), + 6874: uint16(47), + 6875: uint16(34), + 6876: uint16(48), + 6877: uint16(16), + 6878: uint16(78), +} + +func _fuzzycmp(tls *TLS, a uintptr, b uintptr) (r int32) { + for { + if !(**(**uint8)(__ccgo_up(a)) != 0 && **(**uint8)(__ccgo_up(b)) != 0) { + break + } + for **(**uint8)(__ccgo_up(a)) != 0 && uint32(**(**uint8)(__ccgo_up(a)))|uint32(32)-uint32('a') > uint32(26) && Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(a)))-int32('0')) > uint32(10) { + a = a + 1 + } + if uint32(**(**uint8)(__ccgo_up(a)))|uint32(32) != uint32(**(**uint8)(__ccgo_up(b))) { + return int32(1) + } + goto _1 + _1: + ; + a = a + 1 + b = b + 1 + } + return BoolInt32(Int32FromUint8(**(**uint8)(__ccgo_up(a))) != Int32FromUint8(**(**uint8)(__ccgo_up(b)))) +} + +func _find_charmap(tls *TLS, name uintptr) (r Tsize_t) { + var s uintptr + _ = s + if !(**(**uint8)(__ccgo_up(name)) != 0) { + name = uintptr(unsafe.Pointer(&_charmaps)) + } /* "utf8" */ + s = uintptr(unsafe.Pointer(&_charmaps)) + for { + if !(**(**uint8)(__ccgo_up(s)) != 0) { + break + } + if !(_fuzzycmp(tls, name, s) != 0) { + for { + if !(**(**uint8)(__ccgo_up(s)) != 0) { + break + } + goto _2 + _2: + ; + s = s + uintptr(_strlen(tls, s)+uint64(1)) + } + return Uint64FromInt64(int64(s+uintptr(1)) - t__predefined_ptrdiff_t(uintptr(unsafe.Pointer(&_charmaps)))) + } + s = s + uintptr(_strlen(tls, s)+uint64(1)) + if !(**(**uint8)(__ccgo_up(s)) != 0) { + if Int32FromUint8(**(**uint8)(__ccgo_up(s + 1))) > int32(0200) { + s = s + uintptr(2) + } else { + s = s + uintptr(uint32(2)+(uint32(64)-uint32(**(**uint8)(__ccgo_up(s + 1))))*uint32(5)) + } + } + goto _1 + _1: + } + return Uint64FromInt32(-Int32FromInt32(1)) +} + +type Tstateful_cd = struct { + Fbase_cd Ticonv_t + Fstate uint32 +} + +func _combine_to_from(tls *TLS, t Tsize_t, f Tsize_t) (r Ticonv_t) { + return uintptr(f<> int32(16) +} + +func _extract_to(tls *TLS, cd Ticonv_t) (r Tsize_t) { + return uint64(cd) >> int32(1) & uint64(0x7fff) +} + +func Xiconv_open(tls *TLS, to uintptr, from uintptr) (r Ticonv_t) { + if __ccgo_strace { + trc("tls=%v to=%v from=%v, (%v:)", tls, to, from, origin(2)) + defer func() { trc("-> %v", r) }() + } + var cd Ticonv_t + var f, t, v1, v2 Tsize_t + var scd uintptr + var v3 bool + _, _, _, _, _, _, _ = cd, f, scd, t, v1, v2, v3 + v1 = _find_charmap(tls, to) + t = v1 + if v3 = v1 == Uint64FromInt32(-Int32FromInt32(1)); !v3 { + v2 = _find_charmap(tls, from) + f = v2 + } + if v3 || v2 == Uint64FromInt32(-Int32FromInt32(1)) || Int32FromUint8(_charmaps[t]) >= int32(0330) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(-Int32FromInt32(1)) + } + cd = _combine_to_from(tls, t, f) + switch Int32FromUint8(_charmaps[f]) { + case int32(UTF_16): + fallthrough + case int32(UTF_32): + fallthrough + case int32(UCS2): + fallthrough + case int32(ISO2022_JP): + scd = Xmalloc(tls, uint64(16)) + if !(scd != 0) { + return uintptr(-Int32FromInt32(1)) + } + (*Tstateful_cd)(unsafe.Pointer(scd)).Fbase_cd = cd + (*Tstateful_cd)(unsafe.Pointer(scd)).Fstate = uint32(0) + cd = scd + } + return cd +} + +func _get_16(tls *TLS, s uintptr, e int32) (r uint32) { + e = e & int32(1) + return Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(e))))<> int32(8)) + **(**uint8)(__ccgo_up(s + uintptr(int32(1)-e))) = uint8(c) +} + +func _get_32(tls *TLS, s uintptr, e int32) (r uint32) { + e = e & int32(3) + return (uint32(**(**uint8)(__ccgo_up(s + uintptr(e))))+0)<> int32(24)) + **(**uint8)(__ccgo_up(s + uintptr(e^int32(1)))) = uint8(c >> int32(16)) + **(**uint8)(__ccgo_up(s + uintptr(e^int32(2)))) = uint8(c >> int32(8)) + **(**uint8)(__ccgo_up(s + uintptr(e^int32(3)))) = uint8(c) +} + +/* Adapt as needed */ + +func _legacy_map(tls *TLS, map1 uintptr, c uint32) (r uint32) { + var x, v1 uint32 + _, _ = x, v1 + if c < Uint32FromInt32(int32(4)*Int32FromUint8(**(**uint8)(__ccgo_up(map1 + uintptr(-Int32FromInt32(1)))))) { + return c + } + x = c - Uint32FromInt32(int32(4)*Int32FromUint8(**(**uint8)(__ccgo_up(map1 + uintptr(-Int32FromInt32(1)))))) + x = Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(map1 + uintptr(x*uint32(5)/uint32(4)))))>>(uint32(2)*x%uint32(8)) | Int32FromUint8(**(**uint8)(__ccgo_up(map1 + uintptr(x*uint32(5)/uint32(4)+uint32(1)))))<<(uint32(8)-uint32(2)*x%uint32(8))&int32(1023)) + if x < uint32(256) { + v1 = x + } else { + v1 = uint32(_legacy_chars[x-uint32(256)]) + } + return v1 +} + +func _uni_to_jis(tls *TLS, c uint32) (r uint32) { + var b, d, i, j, nel uint32 + _, _, _, _, _ = b, d, i, j, nel + nel = uint32(Uint64FromInt64(13758) / Uint64FromInt64(2)) + b = uint32(0) + for { + i = nel / uint32(2) + j = uint32(_rev_jis[b+i]) + d = uint32(**(**uint16)(__ccgo_up(uintptr(unsafe.Pointer(&_jis0208)) + uintptr(j/uint32(256))*188 + uintptr(j%uint32(256))*2))) + if d == c { + return j + uint32(0x2121) + } else { + if nel == uint32(1) { + return uint32(0) + } else { + if c < d { + nel = nel / uint32(2) + } else { + b = b + i + nel = nel - nel/uint32(2) + } + } + } + goto _1 + _1: + } + return r +} + +func Xiconv(tls *TLS, cd Ticonv_t, in uintptr, inb uintptr, out uintptr, outb uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v cd=%v in=%v inb=%v out=%v outb=%v, (%v:)", tls, cd, in, inb, out, outb, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var c, d, from, to, v62 uint32 + var err, i, i1, j, j1, v25, v26, v27 int32 + var k, l, tmplen, tmpx, x Tsize_t + var loc Tlocale_t + var map1, ploc, scd, tomap, v54, v55 uintptr + var totype, type1 uint8 + var _ /* ptmp at bp+48 */ uintptr + var _ /* st at bp+24 */ Tmbstate_t + var _ /* tmp at bp+40 */ struct { + Fwc [0][2]Twchar_t + Fc [8]uint8 + } + var _ /* tmp at bp+56 */ [4]uint8 + var _ /* wc at bp+32 */ Twchar_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = c, d, err, from, i, i1, j, j1, k, l, loc, map1, ploc, scd, tmplen, tmpx, to, tomap, totype, type1, x, v25, v26, v27, v54, v55, v62 + x = uint64(0) + scd = uintptr(0) + if !(uint64(cd)&Uint64FromInt32(1) != 0) { + scd = cd + cd = (*Tstateful_cd)(unsafe.Pointer(scd)).Fbase_cd + } + to = uint32(_extract_to(tls, cd)) + from = uint32(_extract_from(tls, cd)) + map1 = uintptr(unsafe.Pointer(&_charmaps)) + uintptr(from) + uintptr(1) + tomap = uintptr(unsafe.Pointer(&_charmaps)) + uintptr(to) + uintptr(1) + **(**Tmbstate_t)(__ccgo_up(bp + 24)) = Tmbstate_t{} + type1 = **(**uint8)(__ccgo_up(map1 + uintptr(-Int32FromInt32(1)))) + totype = **(**uint8)(__ccgo_up(tomap + uintptr(-Int32FromInt32(1)))) + ploc = uintptr(___get_tp(tls)) + 168 + loc = **(**Tlocale_t)(__ccgo_up(ploc)) + if !(in != 0) || !(**(**uintptr)(__ccgo_up(in)) != 0) || !(**(**Tsize_t)(__ccgo_up(inb)) != 0) { + return uint64(0) + } + **(**Tlocale_t)(__ccgo_up(ploc)) = uintptr(unsafe.Pointer(&X__c_dot_utf8_locale)) + for { + if !(**(**Tsize_t)(__ccgo_up(inb)) != 0) { + break + } + c = uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(in))))) + l = uint64(1) + switch Int32FromUint8(type1) { + case int32(UTF_8): + goto _2 + case int32(US_ASCII): + goto _3 + case int32(WCHAR_T): + goto _4 + case int32(UTF_32LE): + goto _5 + case int32(UTF_32BE): + goto _6 + case int32(UTF_16LE): + goto _7 + case int32(UTF_16BE): + goto _8 + case int32(UCS2LE): + goto _9 + case int32(UCS2BE): + goto _10 + case int32(UTF_16): + goto _11 + case int32(UCS2): + goto _12 + case int32(UTF_32): + goto _13 + case int32(SHIFT_JIS): + goto _14 + case int32(EUC_JP): + goto _15 + case int32(ISO2022_JP): + goto _16 + case int32(GB2312): + goto _17 + case int32(GBK): + goto _18 + case int32(GB18030): + goto _19 + case int32(BIG5): + goto _20 + case int32(EUC_KR): + goto _21 + default: + goto _22 + } + goto _23 + _2: + ; + if c < uint32(128) { + goto _23 + } + l = Xmbrtowc(tls, bp+32, **(**uintptr)(__ccgo_up(in)), **(**Tsize_t)(__ccgo_up(inb)), bp+24) + if l == Uint64FromInt32(-Int32FromInt32(1)) { + goto ilseq + } + if l == Uint64FromInt32(-Int32FromInt32(2)) { + goto starved + } + c = Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp + 32))) + goto _23 + _3: + ; + if c >= uint32(128) { + goto ilseq + } + goto _23 + _4: + ; + l = uint64(4) + if **(**Tsize_t)(__ccgo_up(inb)) < l { + goto starved + } + c = Uint32FromInt32(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(in))))) + if !(0 != 0) { + goto _24 + } + _6: + ; + _5: + ; + l = uint64(4) + if **(**Tsize_t)(__ccgo_up(inb)) < uint64(4) { + goto starved + } + c = _get_32(tls, **(**uintptr)(__ccgo_up(in)), Int32FromUint8(type1)) + _24: + ; + if c-uint32(0xd800) < uint32(0x800) || c >= uint32(0x110000) { + goto ilseq + } + goto _23 + _10: + ; + _9: + ; + _8: + ; + _7: + ; + l = uint64(2) + if **(**Tsize_t)(__ccgo_up(inb)) < uint64(2) { + goto starved + } + c = _get_16(tls, **(**uintptr)(__ccgo_up(in)), Int32FromUint8(type1)) + if c-Uint32FromInt32(0xdc00) < uint32(0x400) { + goto ilseq + } + if c-Uint32FromInt32(0xd800) < uint32(0x400) { + if Uint32FromInt32(Int32FromUint8(type1)-int32(UCS2BE)) < uint32(2) { + goto ilseq + } + l = uint64(4) + if **(**Tsize_t)(__ccgo_up(inb)) < uint64(4) { + goto starved + } + d = _get_16(tls, **(**uintptr)(__ccgo_up(in))+UintptrFromInt32(2), Int32FromUint8(type1)) + if d-Uint32FromInt32(0xdc00) >= uint32(0x400) { + goto ilseq + } + c = (c-uint32(0xd7c0))< uint32(127) { + d = d - 1 + } + d = d - uint32(64) + } else { + if d-uint32(159) <= Uint32FromInt32(Int32FromInt32(252)-Int32FromInt32(159)) { + c = c + 1 + d = d - uint32(159) + } + } + if c >= uint32(84) { + goto ilseq + } + c = uint32(**(**uint16)(__ccgo_up(uintptr(unsafe.Pointer(&_jis0208)) + uintptr(c)*188 + uintptr(d)*2))) + if !(c != 0) { + goto ilseq + } + goto _23 + _15: + ; + if c < uint32(128) { + goto _23 + } + l = uint64(2) + if **(**Tsize_t)(__ccgo_up(inb)) < uint64(2) { + goto starved + } + d = uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(in)) + UintptrFromInt32(1)))) + if c == uint32(0x8e) { + c = d + if c-uint32(0xa1) > Uint32FromInt32(Int32FromInt32(0xdf)-Int32FromInt32(0xa1)) { + goto ilseq + } + c = c + Uint32FromInt32(Int32FromInt32(0xff61)-Int32FromInt32(0xa1)) + goto _23 + } + c = c - uint32(0xa1) + d = d - uint32(0xa1) + if c >= uint32(84) || d >= uint32(94) { + goto ilseq + } + c = uint32(**(**uint16)(__ccgo_up(uintptr(unsafe.Pointer(&_jis0208)) + uintptr(c)*188 + uintptr(d)*2))) + if !(c != 0) { + goto ilseq + } + goto _23 + _16: + ; + if c >= uint32(128) { + goto ilseq + } + if c == uint32('\033') { + l = uint64(3) + if **(**Tsize_t)(__ccgo_up(inb)) < uint64(3) { + goto starved + } + c = uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(in)) + UintptrFromInt32(1)))) + d = uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(in)) + UintptrFromInt32(2)))) + if c != uint32('(') && c != uint32('$') { + goto ilseq + } + switch Uint32FromInt32(Int32FromInt32(128)*BoolInt32(c == Uint32FromUint8('$'))) + d { + case uint32('B'): + (*Tstateful_cd)(unsafe.Pointer(scd)).Fstate = uint32(0) + goto _1 + case uint32('J'): + (*Tstateful_cd)(unsafe.Pointer(scd)).Fstate = uint32(1) + goto _1 + case uint32('I'): + (*Tstateful_cd)(unsafe.Pointer(scd)).Fstate = uint32(4) + goto _1 + case Uint32FromInt32(Int32FromInt32(128) + Int32FromUint8('@')): + (*Tstateful_cd)(unsafe.Pointer(scd)).Fstate = uint32(2) + goto _1 + case Uint32FromInt32(Int32FromInt32(128) + Int32FromUint8('B')): + (*Tstateful_cd)(unsafe.Pointer(scd)).Fstate = uint32(3) + goto _1 + } + goto ilseq + } + switch (*Tstateful_cd)(unsafe.Pointer(scd)).Fstate { + case uint32(1): + if c == uint32('\\') { + c = uint32(0xa5) + } + if c == uint32('~') { + c = uint32(0x203e) + } + case uint32(2): + fallthrough + case uint32(3): + l = uint64(2) + if **(**Tsize_t)(__ccgo_up(inb)) < uint64(2) { + goto starved + } + d = uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(in)) + UintptrFromInt32(1)))) + c = c - uint32(0x21) + d = d - uint32(0x21) + if c >= uint32(84) || d >= uint32(94) { + goto ilseq + } + c = uint32(**(**uint16)(__ccgo_up(uintptr(unsafe.Pointer(&_jis0208)) + uintptr(c)*188 + uintptr(d)*2))) + if !(c != 0) { + goto ilseq + } + case uint32(4): + if c-uint32(0x60) < uint32(0x1f) { + goto ilseq + } + if c-uint32(0x21) < uint32(0x5e) { + c = c + Uint32FromInt32(Int32FromInt32(0xff61)-Int32FromInt32(0x21)) + } + break + } + goto _23 + _17: + ; + if c < uint32(128) { + goto _23 + } + if c < uint32(0xa1) { + goto ilseq + } + _18: + ; + if c == uint32(128) { + c = uint32(0x20ac) + goto _23 + } + _19: + ; + if c < uint32(128) { + goto _23 + } + c = c - uint32(0x81) + if c >= uint32(126) { + goto ilseq + } + l = uint64(2) + if **(**Tsize_t)(__ccgo_up(inb)) < uint64(2) { + goto starved + } + d = uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(in)) + UintptrFromInt32(1)))) + if d < uint32(0xa1) && Int32FromUint8(type1) == int32(GB2312) { + goto ilseq + } + if d-uint32(0x40) >= uint32(191) || d == uint32(127) { + if d-uint32('0') > uint32(9) || Int32FromUint8(type1) != int32(GB18030) { + goto ilseq + } + l = uint64(4) + if **(**Tsize_t)(__ccgo_up(inb)) < uint64(4) { + goto starved + } + c = (uint32(10)*c + d - uint32('0')) * uint32(1260) + d = uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(in)) + UintptrFromInt32(2)))) + if d-uint32(0x81) > uint32(126) { + goto ilseq + } + c = c + uint32(10)*(d-uint32(0x81)) + d = uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(in)) + UintptrFromInt32(3)))) + if d-uint32('0') > uint32(9) { + goto ilseq + } + c = c + (d - uint32('0')) + c = c + uint32(128) + d = uint32(0) + for { + if !(d <= c) { + break + } + k = uint64(0) + i = 0 + for { + if !(i < int32(126)) { + break + } + j = 0 + for { + if !(j < int32(190)) { + break + } + if uint32(**(**uint16)(__ccgo_up(uintptr(unsafe.Pointer(&_gb18030)) + uintptr(i)*380 + uintptr(j)*2)))-d <= c-d { + k = k + 1 + } + goto _31 + _31: + ; + j = j + 1 + } + goto _30 + _30: + ; + i = i + 1 + } + d = c + uint32(1) + c = uint32(uint64(c) + k) + goto _29 + _29: + } + goto _23 + } + d = d - uint32(0x40) + if d > uint32(63) { + d = d - 1 + } + c = uint32(**(**uint16)(__ccgo_up(uintptr(unsafe.Pointer(&_gb18030)) + uintptr(c)*380 + uintptr(d)*2))) + goto _23 + _20: + ; + if c < uint32(128) { + goto _23 + } + l = uint64(2) + if **(**Tsize_t)(__ccgo_up(inb)) < uint64(2) { + goto starved + } + d = uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(in)) + UintptrFromInt32(1)))) + if d-uint32(0x40) >= Uint32FromInt32(Int32FromInt32(0xff)-Int32FromInt32(0x40)) || d-uint32(0x7f) < Uint32FromInt32(Int32FromInt32(0xa1)-Int32FromInt32(0x7f)) { + goto ilseq + } + d = d - uint32(0x40) + if d > uint32(0x3e) { + d = d - uint32(0x22) + } + if c-uint32(0xa1) >= Uint32FromInt32(Int32FromInt32(0xfa)-Int32FromInt32(0xa1)) { + if c-uint32(0x87) >= Uint32FromInt32(Int32FromInt32(0xff)-Int32FromInt32(0x87)) { + goto ilseq + } + if c < uint32(0xa1) { + c = c - uint32(0x87) + } else { + c = c - Uint32FromInt32(Int32FromInt32(0x87)+(Int32FromInt32(0xfa)-Int32FromInt32(0xa1))) + } + c = Uint32FromInt32(Int32FromUint16(_hkscs[uint32(4867)+(c*uint32(157)+d)/uint32(16)])>>((c*uint32(157)+d)%uint32(16))%int32(2)< **(**Tsize_t)(__ccgo_up(outb)) { + goto toobig + } + if tmpx != 0 { + x = x + 1 + } + Xmemcpy(tls, **(**uintptr)(__ccgo_up(out)), bp+40, tmplen) + **(**uintptr)(__ccgo_up(out)) += uintptr(tmplen) + **(**Tsize_t)(__ccgo_up(outb)) -= tmplen + goto _1 + } + if !(c != 0) { + goto ilseq + } + goto _23 + } + c = c - uint32(0xa1) + c = Uint32FromInt32(Int32FromUint16(**(**uint16)(__ccgo_up(uintptr(unsafe.Pointer(&_big5)) + uintptr(c)*314 + uintptr(d)*2))) | BoolInt32(c == uint32(0x27) && (d == uint32(0x3a) || d == uint32(0x3c) || d == uint32(0x42)))<= uint32(93) || d >= uint32(94) { + c = c + Uint32FromInt32(Int32FromInt32(0xa1)-Int32FromInt32(0x81)) + d = d + uint32(0xa1) + if c >= uint32(93) || c >= Uint32FromInt32(Int32FromInt32(0xc6)-Int32FromInt32(0x81)) && d > uint32(0x52) { + goto ilseq + } + if d-uint32('A') < uint32(26) { + d = d - uint32('A') + } else { + if d-uint32('a') < uint32(26) { + d = d - uint32('a') + uint32(26) + } else { + if d-uint32(0x81) < Uint32FromInt32(Int32FromInt32(0xff)-Int32FromInt32(0x81)) { + d = d - uint32(0x81) + uint32(52) + } else { + goto ilseq + } + } + } + if c < uint32(0x20) { + c = uint32(178)*c + d + } else { + c = Uint32FromInt32(Int32FromInt32(178)*Int32FromInt32(0x20)) + uint32(84)*(c-uint32(0x20)) + d + } + c = c + uint32(0xac00) + d = uint32(0xac00) + for { + if !(d <= c) { + break + } + k = uint64(0) + i1 = 0 + for { + if !(i1 < int32(93)) { + break + } + j1 = 0 + for { + if !(j1 < int32(94)) { + break + } + if uint32(**(**uint16)(__ccgo_up(uintptr(unsafe.Pointer(&_ksc)) + uintptr(i1)*188 + uintptr(j1)*2)))-d <= c-d { + k = k + 1 + } + goto _34 + _34: + ; + j1 = j1 + 1 + } + goto _33 + _33: + ; + i1 = i1 + 1 + } + d = c + uint32(1) + c = uint32(uint64(c) + k) + goto _32 + _32: + } + goto _23 + } + c = uint32(**(**uint16)(__ccgo_up(uintptr(unsafe.Pointer(&_ksc)) + uintptr(c)*188 + uintptr(d)*2))) + if !(c != 0) { + goto ilseq + } + goto _23 + _22: + ; + if !(c != 0) { + goto _23 + } + c = _legacy_map(tls, map1, c) + if !(c != 0) { + goto ilseq + } + _23: + ; + switch Int32FromUint8(totype) { + case int32(WCHAR_T): + goto _35 + case int32(UTF_8): + goto _36 + case int32(US_ASCII): + goto _37 + default: + goto _38 + case int32(SHIFT_JIS): + goto _39 + case int32(EUC_JP): + goto _40 + case int32(ISO2022_JP): + goto _41 + case int32(UCS2): + goto _42 + case int32(UTF_16LE): + goto _43 + case int32(UTF_16BE): + goto _44 + case int32(UTF_16): + goto _45 + case int32(UCS2LE): + goto _46 + case int32(UCS2BE): + goto _47 + case int32(UTF_32): + goto _48 + case int32(UTF_32LE): + goto _49 + case int32(UTF_32BE): + goto _50 + } + goto _51 + _35: + ; + if **(**Tsize_t)(__ccgo_up(outb)) < uint64(4) { + goto toobig + } + **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(out)))) = Int32FromUint32(c) + **(**uintptr)(__ccgo_up(out)) += uintptr(4) + **(**Tsize_t)(__ccgo_up(outb)) -= uint64(4) + goto _51 + _36: + ; + if **(**Tsize_t)(__ccgo_up(outb)) < uint64(4) { + k = Uint64FromInt32(Xwctomb(tls, bp+56, Int32FromUint32(c))) + if **(**Tsize_t)(__ccgo_up(outb)) < k { + goto toobig + } + Xmemcpy(tls, **(**uintptr)(__ccgo_up(out)), bp+56, k) + } else { + k = Uint64FromInt32(Xwctomb(tls, **(**uintptr)(__ccgo_up(out)), Int32FromUint32(c))) + } + **(**uintptr)(__ccgo_up(out)) += uintptr(k) + **(**Tsize_t)(__ccgo_up(outb)) -= k + goto _51 + _37: + ; + if !(c > uint32(0x7f)) { + goto _52 + } + goto subst + subst: + ; + x = x + 1 + c = Uint32FromUint8('*') + _52: + ; + _38: + ; + if **(**Tsize_t)(__ccgo_up(outb)) < uint64(1) { + goto toobig + } + if !(c < uint32(256) && c == _legacy_map(tls, tomap, c)) { + goto _53 + } + goto revout + revout: + ; + if **(**Tsize_t)(__ccgo_up(outb)) < uint64(1) { + goto toobig + } + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8(c) + **(**Tsize_t)(__ccgo_up(outb)) -= uint64(1) + goto _51 + _53: + ; + d = c + c = Uint32FromInt32(int32(4) * Int32FromUint8(totype)) + for { + if !(c < uint32(256)) { + break + } + if d == _legacy_map(tls, tomap, c) { + goto revout + } + goto _56 + _56: + ; + c = c + 1 + } + goto subst + _39: + ; + if c < uint32(128) { + goto revout + } + if c == uint32(0xa5) { + x = x + 1 + c = uint32('\\') + goto revout + } + if c == uint32(0x203e) { + x = x + 1 + c = uint32('~') + goto revout + } + if c-uint32(0xff61) <= Uint32FromInt32(Int32FromInt32(0xdf)-Int32FromInt32(0xa1)) { + c = c + Uint32FromInt32(Int32FromInt32(0xa1)-Int32FromInt32(0xff61)) + goto revout + } + c = _uni_to_jis(tls, c) + if !(c != 0) { + goto subst + } + if **(**Tsize_t)(__ccgo_up(outb)) < uint64(2) { + goto toobig + } + d = c % uint32(256) + c = c / uint32(256) + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + if c < uint32(95) { + v25 = int32(112) + } else { + v25 = int32(176) + } + **(**uint8)(__ccgo_up(v54)) = uint8((c+uint32(1))/uint32(2) + Uint32FromInt32(v25)) + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + if c%uint32(2) != 0 { + v62 = d + uint32(31) + d/uint32(96) + } else { + v62 = d + uint32(126) + } + **(**uint8)(__ccgo_up(v54)) = uint8(v62) + **(**Tsize_t)(__ccgo_up(outb)) -= uint64(2) + goto _51 + _40: + ; + if c < uint32(128) { + goto revout + } + if c-uint32(0xff61) <= Uint32FromInt32(Int32FromInt32(0xdf)-Int32FromInt32(0xa1)) { + c = c + Uint32FromInt32(Int32FromInt32(0x0e00)+Int32FromInt32(0x21)-Int32FromInt32(0xff61)) + } else { + c = _uni_to_jis(tls, c) + } + if !(c != 0) { + goto subst + } + if **(**Tsize_t)(__ccgo_up(outb)) < uint64(2) { + goto toobig + } + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8(c/uint32(256) + uint32(0x80)) + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8(c%uint32(256) + uint32(0x80)) + **(**Tsize_t)(__ccgo_up(outb)) -= uint64(2) + goto _51 + _41: + ; + if c < uint32(128) { + goto revout + } + if c-uint32(0xff61) <= Uint32FromInt32(Int32FromInt32(0xdf)-Int32FromInt32(0xa1)) || c == uint32(0xa5) || c == uint32(0x203e) { + if **(**Tsize_t)(__ccgo_up(outb)) < uint64(7) { + goto toobig + } + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8('\033') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8('(') + if c == uint32(0xa5) { + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8('J') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8('\\') + } else { + if c == uint32(0x203e) { + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8('J') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8('~') + } else { + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8('I') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8(c - uint32(0xff61) + uint32(0x21)) + } + } + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8('\033') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8('(') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8('B') + **(**Tsize_t)(__ccgo_up(outb)) -= uint64(7) + goto _51 + } + c = _uni_to_jis(tls, c) + if !(c != 0) { + goto subst + } + if **(**Tsize_t)(__ccgo_up(outb)) < uint64(8) { + goto toobig + } + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8('\033') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8('$') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8('B') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8(c / uint32(256)) + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8(c % uint32(256)) + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8('\033') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8('(') + v55 = out + v54 = *(*uintptr)(unsafe.Pointer(v55)) + *(*uintptr)(unsafe.Pointer(v55)) = *(*uintptr)(unsafe.Pointer(v55)) + 1 + **(**uint8)(__ccgo_up(v54)) = uint8('B') + **(**Tsize_t)(__ccgo_up(outb)) -= uint64(8) + goto _51 + _42: + ; + totype = uint8(UCS2BE) + _47: + ; + _46: + ; + _45: + ; + _44: + ; + _43: + ; + if c < uint32(0x10000) || Uint32FromInt32(Int32FromUint8(totype)-int32(UCS2BE)) < uint32(2) { + if c >= uint32(0x10000) { + c = uint32(0xFFFD) + } + if **(**Tsize_t)(__ccgo_up(outb)) < uint64(2) { + goto toobig + } + _put_16(tls, **(**uintptr)(__ccgo_up(out)), c, Int32FromUint8(totype)) + **(**uintptr)(__ccgo_up(out)) += uintptr(2) + **(**Tsize_t)(__ccgo_up(outb)) -= uint64(2) + goto _51 + } + if **(**Tsize_t)(__ccgo_up(outb)) < uint64(4) { + goto toobig + } + c = c - uint32(0x10000) + _put_16(tls, **(**uintptr)(__ccgo_up(out)), c>>int32(10)|uint32(0xd800), Int32FromUint8(totype)) + _put_16(tls, **(**uintptr)(__ccgo_up(out))+UintptrFromInt32(2), c&uint32(0x3ff)|uint32(0xdc00), Int32FromUint8(totype)) + **(**uintptr)(__ccgo_up(out)) += uintptr(4) + **(**Tsize_t)(__ccgo_up(outb)) -= uint64(4) + goto _51 + _48: + ; + totype = uint8(UTF_32BE) + _50: + ; + _49: + ; + if **(**Tsize_t)(__ccgo_up(outb)) < uint64(4) { + goto toobig + } + _put_32(tls, **(**uintptr)(__ccgo_up(out)), c, Int32FromUint8(totype)) + **(**uintptr)(__ccgo_up(out)) += uintptr(4) + **(**Tsize_t)(__ccgo_up(outb)) -= uint64(4) + goto _51 + _51: + ; + goto _1 + _1: + ; + **(**uintptr)(__ccgo_up(in)) += uintptr(l) + **(**Tsize_t)(__ccgo_up(inb)) -= l + } + **(**Tlocale_t)(__ccgo_up(ploc)) = loc + return x + goto ilseq +ilseq: + ; + err = int32(EILSEQ) + x = Uint64FromInt32(-Int32FromInt32(1)) + goto end + goto toobig +toobig: + ; + err = int32(E2BIG) + x = Uint64FromInt32(-Int32FromInt32(1)) + goto end + goto starved +starved: + ; + err = int32(EINVAL) + x = Uint64FromInt32(-Int32FromInt32(1)) + goto end +end: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = err + **(**Tlocale_t)(__ccgo_up(ploc)) = loc + return x +} + +func Xiconv_close(tls *TLS, cd Ticonv_t) (r int32) { + if __ccgo_strace { + trc("tls=%v cd=%v, (%v:)", tls, cd, origin(2)) + defer func() { trc("-> %v", r) }() + } + if !(uint64(cd)&Uint64FromInt32(1) != 0) { + Xfree(tls, cd) + } + return 0 +} + +var _c_time = [316]uint8{'S', 'u', 'n', 0, 'M', 'o', 'n', 0, 'T', 'u', 'e', 0, 'W', 'e', 'd', 0, 'T', 'h', 'u', 0, 'F', 'r', 'i', 0, 'S', 'a', 't', 0, 'S', 'u', 'n', 'd', 'a', 'y', 0, 'M', 'o', 'n', 'd', 'a', 'y', 0, 'T', 'u', 'e', 's', 'd', 'a', 'y', 0, 'W', 'e', 'd', 'n', 'e', 's', 'd', 'a', 'y', 0, 'T', 'h', 'u', 'r', 's', 'd', 'a', 'y', 0, 'F', 'r', 'i', 'd', 'a', 'y', 0, 'S', 'a', 't', 'u', 'r', 'd', 'a', 'y', 0, 'J', 'a', 'n', 0, 'F', 'e', 'b', 0, 'M', 'a', 'r', 0, 'A', 'p', 'r', 0, 'M', 'a', 'y', 0, 'J', 'u', 'n', 0, 'J', 'u', 'l', 0, 'A', 'u', 'g', 0, 'S', 'e', 'p', 0, 'O', 'c', 't', 0, 'N', 'o', 'v', 0, 'D', 'e', 'c', 0, 'J', 'a', 'n', 'u', 'a', 'r', 'y', 0, 'F', 'e', 'b', 'r', 'u', 'a', 'r', 'y', 0, 'M', 'a', 'r', 'c', 'h', 0, 'A', 'p', 'r', 'i', 'l', 0, 'M', 'a', 'y', 0, 'J', 'u', 'n', 'e', 0, 'J', 'u', 'l', 'y', 0, 'A', 'u', 'g', 'u', 's', 't', 0, 'S', 'e', 'p', 't', 'e', 'm', 'b', 'e', 'r', 0, 'O', 'c', 't', 'o', 'b', 'e', 'r', 0, 'N', 'o', 'v', 'e', 'm', 'b', 'e', 'r', 0, 'D', 'e', 'c', 'e', 'm', 'b', 'e', 'r', 0, 'A', 'M', 0, 'P', 'M', 0, '%', 'a', ' ', '%', 'b', ' ', '%', 'e', ' ', '%', 'T', ' ', '%', 'Y', 0, '%', 'm', '/', '%', 'd', '/', '%', 'y', 0, '%', 'H', ':', '%', 'M', ':', '%', 'S', 0, '%', 'I', ':', '%', 'M', ':', '%', 'S', ' ', '%', 'p', 0, 0, 0, '%', 'm', '/', '%', 'd', '/', '%', 'y', 0, '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 0, '%', 'a', ' ', '%', 'b', ' ', '%', 'e', ' ', '%', 'T', ' ', '%', 'Y', 0, '%', 'H', ':', '%', 'M', ':', '%', 'S'} + +var _c_messages = [19]uint8{'^', '[', 'y', 'Y', ']', 0, '^', '[', 'n', 'N', ']', 0, 'y', 'e', 's', 0, 'n', 'o'} +var _c_numeric = [3]uint8{'.'} + +func X__nl_langinfo_l(tls *TLS, item Tnl_item, loc Tlocale_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v item=%v loc=%v, (%v:)", tls, item, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + var cat, idx int32 + var str, v1 uintptr + _, _, _, _ = cat, idx, str, v1 + cat = item >> int32(16) + idx = item & int32(65535) + if item == int32(CODESET) { + if **(**uintptr)(__ccgo_up(loc)) != 0 { + v1 = __ccgo_ts + 411 + } else { + v1 = __ccgo_ts + 556 + } + return v1 + } + /* _NL_LOCALE_NAME extension */ + if idx == int32(65535) && cat < int32(LC_ALL) { + if **(**uintptr)(__ccgo_up(loc + uintptr(cat)*8)) != 0 { + v1 = **(**uintptr)(__ccgo_up(loc + uintptr(cat)*8)) + 16 + } else { + v1 = __ccgo_ts + 562 + } + return v1 + } + switch cat { + case int32(LC_NUMERIC): + if idx > int32(1) { + return __ccgo_ts + } + str = uintptr(unsafe.Pointer(&_c_numeric)) + case int32(LC_TIME): + if idx > int32(0x31) { + return __ccgo_ts + } + str = uintptr(unsafe.Pointer(&_c_time)) + case int32(LC_MONETARY): + if idx > 0 { + return __ccgo_ts + } + str = __ccgo_ts + case int32(LC_MESSAGES): + if idx > int32(3) { + return __ccgo_ts + } + str = uintptr(unsafe.Pointer(&_c_messages)) + default: + return __ccgo_ts + } + for { + if !(idx != 0) { + break + } + for { + if !(**(**uint8)(__ccgo_up(str)) != 0) { + break + } + goto _4 + _4: + ; + str = str + 1 + } + goto _3 + _3: + ; + idx = idx - 1 + str = str + 1 + } + if cat != int32(LC_NUMERIC) && **(**uint8)(__ccgo_up(str)) != 0 { + str = X__lctrans(tls, str, **(**uintptr)(__ccgo_up(loc + uintptr(cat)*8))) + } + return str +} + +func X__nl_langinfo(tls *TLS, item Tnl_item) (r uintptr) { + if __ccgo_strace { + trc("tls=%v item=%v, (%v:)", tls, item, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__nl_langinfo_l(tls, item, (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale) +} + +func Xnl_langinfo(tls *TLS, item Tnl_item) (r uintptr) { + if __ccgo_strace { + trc("tls=%v item=%v, (%v:)", tls, item, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__nl_langinfo(tls, item) +} + +func Xnl_langinfo_l(tls *TLS, item Tnl_item, loc Tlocale_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v item=%v loc=%v, (%v:)", tls, item, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__nl_langinfo_l(tls, item, loc) +} + +func X__lctrans_impl(tls *TLS, msg uintptr, lm uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v msg=%v lm=%v, (%v:)", tls, msg, lm, origin(2)) + defer func() { trc("-> %v", r) }() + } + var trans, v1 uintptr + _, _ = trans, v1 + trans = uintptr(0) + if lm != 0 { + trans = X__mo_lookup(tls, (*t__locale_map)(unsafe.Pointer(lm)).Fmap1, (*t__locale_map)(unsafe.Pointer(lm)).Fmap_size, msg) + } + if trans != 0 { + v1 = trans + } else { + v1 = msg + } + return v1 +} + +var _envvars = [6][12]uint8{ + 0: {'L', 'C', '_', 'C', 'T', 'Y', 'P', 'E'}, + 1: {'L', 'C', '_', 'N', 'U', 'M', 'E', 'R', 'I', 'C'}, + 2: {'L', 'C', '_', 'T', 'I', 'M', 'E'}, + 3: {'L', 'C', '_', 'C', 'O', 'L', 'L', 'A', 'T', 'E'}, + 4: {'L', 'C', '_', 'M', 'O', 'N', 'E', 'T', 'A', 'R', 'Y'}, + 5: {'L', 'C', '_', 'M', 'E', 'S', 'S', 'A', 'G', 'E', 'S'}, +} + +func X__get_locale(tls *TLS, cat int32, val uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v cat=%v val=%v, (%v:)", tls, cat, val, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(272) + defer tls.Free(272) + var builtin int32 + var l, n Tsize_t + var map1, new1, p, path, z, v1, v2, v4, v6 uintptr + var v3, v5, v7 bool + var _ /* buf at bp+0 */ [256]uint8 + var _ /* map_size at bp+256 */ Tsize_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = builtin, l, map1, n, new1, p, path, z, v1, v2, v3, v4, v5, v6, v7 + new1 = uintptr(0) + path = uintptr(0) + if !(**(**uint8)(__ccgo_up(val)) != 0) { + v1 = Xgetenv(tls, __ccgo_ts+564) + val = v1 + if v3 = v1 != 0 && **(**uint8)(__ccgo_up(val)) != 0; !v3 { + v2 = Xgetenv(tls, uintptr(unsafe.Pointer(&_envvars))+uintptr(cat)*12) + val = v2 + } + if v5 = v3 || v2 != 0 && **(**uint8)(__ccgo_up(val)) != 0; !v5 { + v4 = Xgetenv(tls, __ccgo_ts+425) + val = v4 + } + if v7 = v5 || v4 != 0 && **(**uint8)(__ccgo_up(val)) != 0; !v7 { + v6 = __ccgo_ts + 571 + val = v6 + } + _ = v7 || v6 != 0 + } + /* Limit name length and forbid leading dot or any slashes. */ + n = uint64(0) + for { + if !(n < uint64(LOCALE_NAME_MAX) && **(**uint8)(__ccgo_up(val + uintptr(n))) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(val + uintptr(n)))) != int32('/')) { + break + } + goto _8 + _8: + ; + n = n + 1 + } + if Int32FromUint8(**(**uint8)(__ccgo_up(val))) == int32('.') || **(**uint8)(__ccgo_up(val + uintptr(n))) != 0 { + val = __ccgo_ts + 571 + } + builtin = BoolInt32(Int32FromUint8(**(**uint8)(__ccgo_up(val))) == int32('C') && !(**(**uint8)(__ccgo_up(val + 1)) != 0) || !(Xstrcmp(tls, val, __ccgo_ts+571) != 0) || !(Xstrcmp(tls, val, __ccgo_ts+579) != 0)) + if builtin != 0 { + if cat == LC_CTYPE && Int32FromUint8(**(**uint8)(__ccgo_up(val + 1))) == int32('.') { + return uintptr(unsafe.Pointer(&X__c_dot_utf8)) + } + return uintptr(0) + } + p = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_loc_head))) + for { + if !(p != 0) { + break + } + if !(Xstrcmp(tls, val, p+16) != 0) { + return p + } + goto _9 + _9: + ; + p = (*t__locale_map)(unsafe.Pointer(p)).Fnext + } + if !(X__libc.Fsecure != 0) { + path = Xgetenv(tls, __ccgo_ts+585) + } + /* FIXME: add a default path? */ + if path != 0 { + for { + if !(**(**uint8)(__ccgo_up(path)) != 0) { + break + } + z = X__strchrnul(tls, path, int32(':')) + l = Uint64FromInt64(int64(z) - int64(path)) + if l >= uint64(256)-n-uint64(2) { + goto _10 + } + Xmemcpy(tls, bp, path, l) + (**(**[256]uint8)(__ccgo_up(bp)))[l] = uint8('/') + Xmemcpy(tls, bp+uintptr(l)+uintptr(1), val, n) + (**(**[256]uint8)(__ccgo_up(bp)))[l+uint64(1)+n] = uint8(0) + map1 = X__map_file(tls, bp, bp+256) + if map1 != 0 { + new1 = Xmalloc(tls, uint64(48)) + if !(new1 != 0) { + X__munmap(tls, map1, **(**Tsize_t)(__ccgo_up(bp + 256))) + break + } + (*t__locale_map)(unsafe.Pointer(new1)).Fmap1 = map1 + (*t__locale_map)(unsafe.Pointer(new1)).Fmap_size = **(**Tsize_t)(__ccgo_up(bp + 256)) + Xmemcpy(tls, new1+16, val, n) + **(**uint8)(__ccgo_up(new1 + 16 + uintptr(n))) = uint8(0) + (*t__locale_map)(unsafe.Pointer(new1)).Fnext = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_loc_head))) + AtomicStorePUintptr(uintptr(unsafe.Pointer(&_loc_head)), new1) + break + } + goto _10 + _10: + ; + path = z + BoolUintptr(!!(**(**uint8)(__ccgo_up(z)) != 0)) + } + } + /* If no locale definition was found, make a locale map + * object anyway to store the name, which is kept for the + * sake of being able to do message translations at the + * application level. */ + if v3 = !(new1 != 0); v3 { + v1 = Xmalloc(tls, uint64(48)) + new1 = v1 + } + if v3 && v1 != 0 { + (*t__locale_map)(unsafe.Pointer(new1)).Fmap1 = X__c_dot_utf8.Fmap1 + (*t__locale_map)(unsafe.Pointer(new1)).Fmap_size = X__c_dot_utf8.Fmap_size + Xmemcpy(tls, new1+16, val, n) + **(**uint8)(__ccgo_up(new1 + 16 + uintptr(n))) = uint8(0) + (*t__locale_map)(unsafe.Pointer(new1)).Fnext = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_loc_head))) + AtomicStorePUintptr(uintptr(unsafe.Pointer(&_loc_head)), new1) + } + /* For LC_CTYPE, never return a null pointer unless the + * requested name was "C" or "POSIX". */ + if !(new1 != 0) && cat == LC_CTYPE { + new1 = uintptr(unsafe.Pointer(&X__c_dot_utf8)) + } + return new1 +} + +var _loc_head uintptr + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +var _posix_lconv = Tlconv{ + Fdecimal_point: __ccgo_ts + 598, + Fthousands_sep: __ccgo_ts, + Fgrouping: __ccgo_ts, + Fint_curr_symbol: __ccgo_ts, + Fcurrency_symbol: __ccgo_ts, + Fmon_decimal_point: __ccgo_ts, + Fmon_thousands_sep: __ccgo_ts, + Fmon_grouping: __ccgo_ts, + Fpositive_sign: __ccgo_ts, + Fnegative_sign: __ccgo_ts, + Fint_frac_digits: uint8(CHAR_MAX), + Ffrac_digits: uint8(CHAR_MAX), + Fp_cs_precedes: uint8(CHAR_MAX), + Fp_sep_by_space: uint8(CHAR_MAX), + Fn_cs_precedes: uint8(CHAR_MAX), + Fn_sep_by_space: uint8(CHAR_MAX), + Fp_sign_posn: uint8(CHAR_MAX), + Fn_sign_posn: uint8(CHAR_MAX), + Fint_p_cs_precedes: uint8(CHAR_MAX), + Fint_p_sep_by_space: uint8(CHAR_MAX), + Fint_n_cs_precedes: uint8(CHAR_MAX), + Fint_n_sep_by_space: uint8(CHAR_MAX), + Fint_p_sign_posn: uint8(CHAR_MAX), + Fint_n_sign_posn: uint8(CHAR_MAX), +} + +func Xlocaleconv(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(unsafe.Pointer(&_posix_lconv)) +} + +var _default_locale_init_done int32 +var _default_locale t__locale_struct +var _default_ctype_locale t__locale_struct + +func X__loc_is_allocated(tls *TLS, loc Tlocale_t) (r int32) { + if __ccgo_strace { + trc("tls=%v loc=%v, (%v:)", tls, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(loc != 0 && loc != uintptr(unsafe.Pointer(&X__c_locale)) && loc != uintptr(unsafe.Pointer(&X__c_dot_utf8_locale)) && loc != uintptr(unsafe.Pointer(&_default_locale)) && loc != uintptr(unsafe.Pointer(&_default_ctype_locale))) +} + +func _do_newlocale(tls *TLS, mask int32, name uintptr, loc Tlocale_t) (r Tlocale_t) { + bp := tls.Alloc(48) + defer tls.Free(48) + var i, i1 int32 + var v2, v3 uintptr + var v5 Tlocale_t + var _ /* tmp at bp+0 */ t__locale_struct + _, _, _, _, _ = i, i1, v2, v3, v5 + i = 0 + for { + if !(i < int32(LC_ALL)) { + break + } + if !(mask&(Int32FromInt32(1)< %v", r) }() + } + ___lock(tls, uintptr(unsafe.Pointer(&X__locale_lock))) + loc = _do_newlocale(tls, mask, name, loc) + ___unlock(tls, uintptr(unsafe.Pointer(&X__locale_lock))) + return loc +} + +func Xnewlocale(tls *TLS, mask int32, name uintptr, loc Tlocale_t) (r Tlocale_t) { + if __ccgo_strace { + trc("tls=%v mask=%v name=%v loc=%v, (%v:)", tls, mask, name, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__newlocale(tls, mask, name, loc) +} + +/* +grammar: + +Start = Expr ';' +Expr = Or | Or '?' Expr ':' Expr +Or = And | Or '||' And +And = Eq | And '&&' Eq +Eq = Rel | Eq '==' Rel | Eq '!=' Rel +Rel = Add | Rel '<=' Add | Rel '>=' Add | Rel '<' Add | Rel '>' Add +Add = Mul | Add '+' Mul | Add '-' Mul +Mul = Prim | Mul '*' Prim | Mul '/' Prim | Mul '%' Prim +Prim = '(' Expr ')' | '!' Prim | decimal | 'n' + +internals: + +recursive descent expression evaluator with stack depth limit. +for binary operators an operator-precedence parser is used. +eval* functions store the result of the parsed subexpression +and return a pointer to the next non-space character. +*/ + +type Tst = struct { + Fr uint64 + Fn uint64 + Fop int32 +} + +func _skipspace(tls *TLS, s uintptr) (r uintptr) { + var v1, v2 int32 + _, _ = v1, v2 + for { + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(s))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _3 + _3: + if !(v2 != 0) { + break + } + s = s + 1 + } + return s +} + +func _evalprim(tls *TLS, st uintptr, s uintptr, d int32) (r uintptr) { + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 int32 + var _ /* e at bp+0 */ uintptr + _ = v1 + d = d - 1 + v1 = d + if v1 < 0 { + return __ccgo_ts + } + s = _skipspace(tls, s) + if BoolInt32(uint32(**(**uint8)(__ccgo_up(s)))-uint32('0') < uint32(10)) != 0 { + (*Tst)(unsafe.Pointer(st)).Fr = Xstrtoul(tls, s, bp, int32(10)) + if **(**uintptr)(__ccgo_up(bp)) == s || (*Tst)(unsafe.Pointer(st)).Fr == Uint64FromInt32(-Int32FromInt32(1)) { + return __ccgo_ts + } + return _skipspace(tls, **(**uintptr)(__ccgo_up(bp))) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('n') { + (*Tst)(unsafe.Pointer(st)).Fr = (*Tst)(unsafe.Pointer(st)).Fn + return _skipspace(tls, s+uintptr(1)) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('(') { + s = _evalexpr(tls, st, s+uintptr(1), d) + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) != int32(')') { + return __ccgo_ts + } + return _skipspace(tls, s+uintptr(1)) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('!') { + s = _evalprim(tls, st, s+uintptr(1), d) + (*Tst)(unsafe.Pointer(st)).Fr = BoolUint64(!((*Tst)(unsafe.Pointer(st)).Fr != 0)) + return s + } + return __ccgo_ts +} + +func _binop(tls *TLS, st uintptr, op int32, left uint64) (r int32) { + var a, b uint64 + _, _ = a, b + a = left + b = (*Tst)(unsafe.Pointer(st)).Fr + switch op { + case 0: + (*Tst)(unsafe.Pointer(st)).Fr = BoolUint64(a != 0 || b != 0) + return 0 + case int32(1): + (*Tst)(unsafe.Pointer(st)).Fr = BoolUint64(a != 0 && b != 0) + return 0 + case int32(2): + (*Tst)(unsafe.Pointer(st)).Fr = BoolUint64(a == b) + return 0 + case int32(3): + (*Tst)(unsafe.Pointer(st)).Fr = BoolUint64(a != b) + return 0 + case int32(4): + (*Tst)(unsafe.Pointer(st)).Fr = BoolUint64(a >= b) + return 0 + case int32(5): + (*Tst)(unsafe.Pointer(st)).Fr = BoolUint64(a <= b) + return 0 + case int32(6): + (*Tst)(unsafe.Pointer(st)).Fr = BoolUint64(a > b) + return 0 + case int32(7): + (*Tst)(unsafe.Pointer(st)).Fr = BoolUint64(a < b) + return 0 + case int32(8): + (*Tst)(unsafe.Pointer(st)).Fr = a + b + return 0 + case int32(9): + (*Tst)(unsafe.Pointer(st)).Fr = a - b + return 0 + case int32(10): + (*Tst)(unsafe.Pointer(st)).Fr = a * b + return 0 + case int32(11): + if b != 0 { + (*Tst)(unsafe.Pointer(st)).Fr = a % b + return 0 + } + return int32(1) + case int32(12): + if b != 0 { + (*Tst)(unsafe.Pointer(st)).Fr = a / b + return 0 + } + return int32(1) + } + return int32(1) +} + +func _parseop(tls *TLS, st uintptr, s uintptr) (r uintptr) { + var i int32 + _ = i + i = 0 + for { + if !(i < int32(11)) { + break + } + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == Int32FromUint8(_opch[i]) { + /* note: >,< are accepted with or without = */ + if i < int32(6) && Int32FromUint8(**(**uint8)(__ccgo_up(s + 1))) == Int32FromUint8(_opch2[i]) { + (*Tst)(unsafe.Pointer(st)).Fop = i + return s + uintptr(2) + } + if i >= int32(4) { + (*Tst)(unsafe.Pointer(st)).Fop = i + int32(2) + return s + uintptr(1) + } + break + } + goto _1 + _1: + ; + i = i + 1 + } + (*Tst)(unsafe.Pointer(st)).Fop = int32(13) + return s +} + +var _opch = [11]uint8{'|', '&', '=', '!', '>', '<', '+', '-', '*', '%', '/'} + +var _opch2 = [6]uint8{'|', '&', '=', '=', '=', '='} + +func _evalbinop(tls *TLS, st uintptr, s uintptr, minprec int32, d int32) (r uintptr) { + var left uint64 + var op int32 + _, _ = left, op + d = d - 1 + s = _evalprim(tls, st, s, d) + s = _parseop(tls, st, s) + for { + /* + st->r (left hand side value) and st->op are now set, + get the right hand side or back out if op has low prec, + if op was missing then prec[op]==0 + */ + op = (*Tst)(unsafe.Pointer(st)).Fop + if Int32FromUint8(_prec[op]) <= minprec { + return s + } + left = (*Tst)(unsafe.Pointer(st)).Fr + s = _evalbinop(tls, st, s, Int32FromUint8(_prec[op]), d) + if _binop(tls, st, op, left) != 0 { + return __ccgo_ts + } + goto _1 + _1: + } + return r +} + +var _prec = [14]uint8{ + 0: uint8(1), + 1: uint8(2), + 2: uint8(3), + 3: uint8(3), + 4: uint8(4), + 5: uint8(4), + 6: uint8(4), + 7: uint8(4), + 8: uint8(5), + 9: uint8(5), + 10: uint8(6), + 11: uint8(6), + 12: uint8(6), +} + +func _evalexpr(tls *TLS, st uintptr, s uintptr, d int32) (r uintptr) { + var a, b, v2 uint64 + var v1 int32 + _, _, _, _ = a, b, v1, v2 + d = d - 1 + v1 = d + if v1 < 0 { + return __ccgo_ts + } + s = _evalbinop(tls, st, s, 0, d) + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) != int32('?') { + return s + } + a = (*Tst)(unsafe.Pointer(st)).Fr + s = _evalexpr(tls, st, s+uintptr(1), d) + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) != int32(':') { + return __ccgo_ts + } + b = (*Tst)(unsafe.Pointer(st)).Fr + s = _evalexpr(tls, st, s+uintptr(1), d) + if a != 0 { + v2 = b + } else { + v2 = (*Tst)(unsafe.Pointer(st)).Fr + } + (*Tst)(unsafe.Pointer(st)).Fr = v2 + return s +} + +func X__pleval(tls *TLS, s uintptr, n uint64) (r uint64) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v, (%v:)", tls, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var v1 uint64 + var _ /* st at bp+0 */ Tst + _ = v1 + (**(**Tst)(__ccgo_up(bp))).Fn = n + s = _evalexpr(tls, bp, s, int32(100)) + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32(';') { + v1 = (**(**Tst)(__ccgo_up(bp))).Fr + } else { + v1 = Uint64FromInt32(-Int32FromInt32(1)) + } + return v1 +} + +var _buf1 [144]uint8 + +func Xsetlocale(tls *TLS, cat int32, name uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v cat=%v name=%v, (%v:)", tls, cat, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(80) + defer tls.Free(80) + var i, same int32 + var l Tsize_t + var lm, lm1, p, part1, ret, s, z, v3 uintptr + var _ /* part at bp+48 */ [24]uint8 + var _ /* tmp_locale at bp+0 */ t__locale_struct + _, _, _, _, _, _, _, _, _, _, _ = i, l, lm, lm1, p, part1, ret, s, same, z, v3 + if Uint32FromInt32(cat) > uint32(LC_ALL) { + return uintptr(0) + } + ___lock(tls, uintptr(unsafe.Pointer(&X__locale_lock))) + /* For LC_ALL, setlocale is required to return a string which + * encodes the current setting for all categories. The format of + * this string is unspecified, and only the following code, which + * performs both the serialization and deserialization, depends + * on the format, so it can easily be changed if needed. */ + if cat == int32(LC_ALL) { + if name != 0 { + **(**[24]uint8)(__ccgo_up(bp + 48)) = [24]uint8{'C', '.', 'U', 'T', 'F', '-', '8'} + p = name + i = 0 + for { + if !(i < int32(LC_ALL)) { + break + } + z = X__strchrnul(tls, p, int32(';')) + if int64(z)-int64(p) <= int64(LOCALE_NAME_MAX) { + Xmemcpy(tls, bp+48, p, Uint64FromInt64(int64(z)-int64(p))) + (**(**[24]uint8)(__ccgo_up(bp + 48)))[int64(z)-int64(p)] = uint8(0) + if **(**uint8)(__ccgo_up(z)) != 0 { + p = z + uintptr(1) + } + } + lm = X__get_locale(tls, i, bp+48) + if lm == uintptr(-Int32FromInt32(1)) { + ___unlock(tls, uintptr(unsafe.Pointer(&X__locale_lock))) + return uintptr(0) + } + **(**uintptr)(__ccgo_up(bp + uintptr(i)*8)) = lm + goto _1 + _1: + ; + i = i + 1 + } + X__libc.Fglobal_locale = **(**t__locale_struct)(__ccgo_up(bp)) + } + s = uintptr(unsafe.Pointer(&_buf1)) + same = 0 + i = 0 + for { + if !(i < int32(LC_ALL)) { + break + } + lm1 = **(**uintptr)(__ccgo_up(uintptr(unsafe.Pointer(&X__libc)) + 56 + uintptr(i)*8)) + if lm1 == **(**uintptr)(__ccgo_up(uintptr(unsafe.Pointer(&X__libc)) + 56)) { + same = same + 1 + } + if lm1 != 0 { + v3 = lm1 + 16 + } else { + v3 = __ccgo_ts + 562 + } + part1 = v3 + l = _strlen(tls, part1) + Xmemcpy(tls, s, part1, l) + **(**uint8)(__ccgo_up(s + uintptr(l))) = uint8(';') + s = s + uintptr(l+uint64(1)) + goto _2 + _2: + ; + i = i + 1 + } + s = s - 1 + v3 = s + **(**uint8)(__ccgo_up(v3)) = uint8(0) + ___unlock(tls, uintptr(unsafe.Pointer(&X__locale_lock))) + if same == int32(LC_ALL) { + v3 = part1 + } else { + v3 = uintptr(unsafe.Pointer(&_buf1)) + } + return v3 + } + if name != 0 { + lm = X__get_locale(tls, cat, name) + if lm == uintptr(-Int32FromInt32(1)) { + ___unlock(tls, uintptr(unsafe.Pointer(&X__locale_lock))) + return uintptr(0) + } + **(**uintptr)(__ccgo_up(uintptr(unsafe.Pointer(&X__libc)) + 56 + uintptr(cat)*8)) = lm + } else { + lm = **(**uintptr)(__ccgo_up(uintptr(unsafe.Pointer(&X__libc)) + 56 + uintptr(cat)*8)) + } + if lm != 0 { + v3 = lm + 16 + } else { + v3 = __ccgo_ts + 562 + } + ret = v3 + ___unlock(tls, uintptr(unsafe.Pointer(&X__locale_lock))) + return ret +} + +func X__strcoll_l(tls *TLS, l uintptr, r uintptr, loc Tlocale_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v loc=%v, (%v:)", tls, l, r, loc, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return Xstrcmp(tls, l, r) +} + +func Xstrcoll(tls *TLS, l uintptr, r uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v, (%v:)", tls, l, r, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return X__strcoll_l(tls, l, r, (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale) +} + +func Xstrcoll_l(tls *TLS, l uintptr, r uintptr, loc Tlocale_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v loc=%v, (%v:)", tls, l, r, loc, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return X__strcoll_l(tls, l, r, loc) +} + +func _vstrfmon_l(tls *TLS, s uintptr, n Tsize_t, loc Tlocale_t, fmt uintptr, ap Tva_list) (r Tssize_t) { + bp := tls.Alloc(32) + defer tls.Free(32) + var fill, fw, intl, left, lp, negpar, nogrp, nosym, rp, w int32 + var l Tsize_t + var s0, v5, v6 uintptr + var x float64 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = fill, fw, intl, l, left, lp, negpar, nogrp, nosym, rp, s0, w, x, v5, v6 + s0 = s +_3: + ; + if !(n != 0 && **(**uint8)(__ccgo_up(fmt)) != 0) { + goto _1 + } + if !(Int32FromUint8(**(**uint8)(__ccgo_up(fmt))) != int32('%')) { + goto _4 + } + goto literal +literal: + ; + v5 = s + s = s + 1 + v6 = fmt + fmt = fmt + 1 + **(**uint8)(__ccgo_up(v5)) = **(**uint8)(__ccgo_up(v6)) + n = n - 1 + goto _2 +_4: + ; + fmt = fmt + 1 + if Int32FromUint8(**(**uint8)(__ccgo_up(fmt))) == int32('%') { + goto literal + } + fill = int32(' ') + nogrp = 0 + negpar = 0 + nosym = 0 + left = 0 + for { + switch Int32FromUint8(**(**uint8)(__ccgo_up(fmt))) { + case int32('='): + fmt = fmt + 1 + v5 = fmt + fill = Int32FromUint8(**(**uint8)(__ccgo_up(v5))) + goto _7 + case int32('^'): + nogrp = int32(1) + goto _7 + case int32('('): + negpar = int32(1) + fallthrough + case int32('+'): + goto _7 + case int32('!'): + nosym = int32(1) + goto _7 + case int32('-'): + left = int32(1) + goto _7 + } + break + goto _7 + _7: + ; + fmt = fmt + 1 + } + fw = 0 + for { + if !(BoolInt32(uint32(**(**uint8)(__ccgo_up(fmt)))-uint32('0') < uint32(10)) != 0) { + break + } + fw = int32(10)*fw + (Int32FromUint8(**(**uint8)(__ccgo_up(fmt))) - int32('0')) + goto _9 + _9: + ; + fmt = fmt + 1 + } + lp = 0 + rp = int32(2) + if Int32FromUint8(**(**uint8)(__ccgo_up(fmt))) == int32('#') { + lp = 0 + fmt = fmt + 1 + for { + if !(BoolInt32(uint32(**(**uint8)(__ccgo_up(fmt)))-uint32('0') < uint32(10)) != 0) { + break + } + lp = int32(10)*lp + (Int32FromUint8(**(**uint8)(__ccgo_up(fmt))) - int32('0')) + goto _10 + _10: + ; + fmt = fmt + 1 + } + } + if Int32FromUint8(**(**uint8)(__ccgo_up(fmt))) == int32('.') { + rp = 0 + fmt = fmt + 1 + for { + if !(BoolInt32(uint32(**(**uint8)(__ccgo_up(fmt)))-uint32('0') < uint32(10)) != 0) { + break + } + rp = int32(10)*rp + (Int32FromUint8(**(**uint8)(__ccgo_up(fmt))) - int32('0')) + goto _11 + _11: + ; + fmt = fmt + 1 + } + } + v5 = fmt + fmt = fmt + 1 + intl = BoolInt32(Int32FromUint8(**(**uint8)(__ccgo_up(v5))) == int32('i')) + w = lp + int32(1) + rp + if !(left != 0) && fw > w { + w = fw + } + x = VaFloat64(&ap) + l = Uint64FromInt32(Xsnprintf(tls, s, n, __ccgo_ts+600, VaList(bp+8, w, rp, x))) + if l >= n { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(E2BIG) + return int64(-int32(1)) + } + s = s + uintptr(l) + n = n - l + goto _2 +_2: + ; + goto _3 + goto _1 +_1: + ; + return int64(s) - int64(s0) +} + +func Xstrfmon_l(tls *TLS, s uintptr, n Tsize_t, loc Tlocale_t, fmt uintptr, va uintptr) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v loc=%v fmt=%v va=%v, (%v:)", tls, s, n, loc, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret Tssize_t + _, _ = ap, ret + ap = va + ret = _vstrfmon_l(tls, s, n, loc, fmt, ap) + _ = ap + return ret +} + +func Xstrfmon(tls *TLS, s uintptr, n Tsize_t, fmt uintptr, va uintptr) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v fmt=%v va=%v, (%v:)", tls, s, n, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret Tssize_t + _, _ = ap, ret + ap = va + ret = _vstrfmon_l(tls, s, n, (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale, fmt, ap) + _ = ap + return ret +} + +func Xstrtof_l(tls *TLS, s uintptr, p uintptr, l Tlocale_t) (r float32) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v l=%v, (%v:)", tls, s, p, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtof(tls, s, p) +} + +func Xstrtod_l(tls *TLS, s uintptr, p uintptr, l Tlocale_t) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v l=%v, (%v:)", tls, s, p, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtod(tls, s, p) +} + +func Xstrtold_l(tls *TLS, s uintptr, p uintptr, l Tlocale_t) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v l=%v, (%v:)", tls, s, p, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtold(tls, s, p) +} + +func X__strtod_l(tls *TLS, s uintptr, p uintptr, l Tlocale_t) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v l=%v, (%v:)", tls, s, p, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtod_l(tls, s, p, l) +} + +func X__strtof_l(tls *TLS, s uintptr, p uintptr, l Tlocale_t) (r float32) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v l=%v, (%v:)", tls, s, p, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtof_l(tls, s, p, l) +} + +func X__strtold_l(tls *TLS, s uintptr, p uintptr, l Tlocale_t) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v l=%v, (%v:)", tls, s, p, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtold_l(tls, s, p, l) +} + +// C documentation +// +// /* collate only by code points */ +func X__strxfrm_l(tls *TLS, dest uintptr, src uintptr, n Tsize_t, loc Tlocale_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v n=%v loc=%v, (%v:)", tls, dest, src, n, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l Tsize_t + _ = l + l = _strlen(tls, src) + if n > l { + Xstrcpy(tls, dest, src) + } + return l +} + +func Xstrxfrm(tls *TLS, dest uintptr, src uintptr, n Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v n=%v, (%v:)", tls, dest, src, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__strxfrm_l(tls, dest, src, n, (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale) +} + +// C documentation +// +// /* collate only by code points */ +func Xstrxfrm_l(tls *TLS, dest uintptr, src uintptr, n Tsize_t, loc Tlocale_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v n=%v loc=%v, (%v:)", tls, dest, src, n, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__strxfrm_l(tls, dest, src, n, loc) +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +var _current_domain uintptr + +func X__gettextdomain(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 uintptr + _ = v1 + if _current_domain != 0 { + v1 = _current_domain + } else { + v1 = __ccgo_ts + 454 + } + return v1 +} + +func Xtextdomain(tls *TLS, domainname uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v domainname=%v, (%v:)", tls, domainname, origin(2)) + defer func() { trc("-> %v", r) }() + } + var domlen Tsize_t + _ = domlen + if !(domainname != 0) { + return X__gettextdomain(tls) + } + domlen = _strlen(tls, domainname) + if domlen > uint64(NAME_MAX) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(0) + } + if !(_current_domain != 0) { + _current_domain = Xmalloc(tls, Uint64FromInt32(Int32FromInt32(NAME_MAX)+Int32FromInt32(1))) + if !(_current_domain != 0) { + return uintptr(0) + } + } + Xmemcpy(tls, _current_domain, domainname, domlen+uint64(1)) + return _current_domain +} + +func Xgettext(tls *TLS, msgid uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v msgid=%v, (%v:)", tls, msgid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xdgettext(tls, uintptr(0), msgid) +} + +func Xngettext(tls *TLS, msgid1 uintptr, msgid2 uintptr, n uint64) (r uintptr) { + if __ccgo_strace { + trc("tls=%v msgid1=%v msgid2=%v n=%v, (%v:)", tls, msgid1, msgid2, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xdngettext(tls, uintptr(0), msgid1, msgid2, n) +} + +func X__uselocale(tls *TLS, new1 Tlocale_t) (r Tlocale_t) { + if __ccgo_strace { + trc("tls=%v new1=%v, (%v:)", tls, new1, origin(2)) + defer func() { trc("-> %v", r) }() + } + var global, old, v1 Tlocale_t + var self Tpthread_t + _, _, _, _ = global, old, self, v1 + self = uintptr(___get_tp(tls)) + old = (*t__pthread)(unsafe.Pointer(self)).Flocale + global = uintptr(unsafe.Pointer(&X__libc)) + 56 + if new1 != 0 { + if new1 == uintptr(-Int32FromInt32(1)) { + v1 = global + } else { + v1 = new1 + } + (*t__pthread)(unsafe.Pointer(self)).Flocale = v1 + } + if old == global { + v1 = uintptr(-Int32FromInt32(1)) + } else { + v1 = old + } + return v1 +} + +func Xuselocale(tls *TLS, new1 Tlocale_t) (r Tlocale_t) { + if __ccgo_strace { + trc("tls=%v new1=%v, (%v:)", tls, new1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__uselocale(tls, new1) +} + +// C documentation +// +// /* FIXME: stub */ +func X__wcscoll_l(tls *TLS, l uintptr, r uintptr, locale Tlocale_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v locale=%v, (%v:)", tls, l, r, locale, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return Xwcscmp(tls, l, r) +} + +func Xwcscoll(tls *TLS, l uintptr, r uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v, (%v:)", tls, l, r, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return X__wcscoll_l(tls, l, r, (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale) +} + +// C documentation +// +// /* FIXME: stub */ +func Xwcscoll_l(tls *TLS, l uintptr, r uintptr, locale Tlocale_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v locale=%v, (%v:)", tls, l, r, locale, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return X__wcscoll_l(tls, l, r, locale) +} + +// C documentation +// +// /* collate only by code points */ +func X__wcsxfrm_l(tls *TLS, dest uintptr, src uintptr, n Tsize_t, loc Tlocale_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v n=%v loc=%v, (%v:)", tls, dest, src, n, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l Tsize_t + _ = l + l = Xwcslen(tls, src) + if l < n { + Xwmemcpy(tls, dest, src, l+uint64(1)) + } else { + if n != 0 { + Xwmemcpy(tls, dest, src, n-uint64(1)) + **(**Twchar_t)(__ccgo_up(dest + uintptr(n-uint64(1))*4)) = 0 + } + } + return l +} + +func Xwcsxfrm(tls *TLS, dest uintptr, src uintptr, n Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v n=%v, (%v:)", tls, dest, src, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__wcsxfrm_l(tls, dest, src, n, (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale) +} + +// C documentation +// +// /* collate only by code points */ +func Xwcsxfrm_l(tls *TLS, dest uintptr, src uintptr, n Tsize_t, loc Tlocale_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v n=%v loc=%v, (%v:)", tls, dest, src, n, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__wcsxfrm_l(tls, dest, src, n, loc) +} + +func Xreallocarray(tls *TLS, ptr uintptr, m Tsize_t, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v ptr=%v m=%v n=%v, (%v:)", tls, ptr, m, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + if n != 0 && m > Uint64FromInt32(-Int32FromInt32(1))/n { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOMEM) + return uintptr(0) + } + return Xrealloc(tls, ptr, m*n) +} + +const LDBL_EPSILON2 = 0 +const LDBL_MAX2 = 0 +const LDBL_MIN2 = 0 + +var _C1 = float64(0.0416666666666666) /* 0x3FA55555, 0x5555554C */ +var _C2 = -Float64FromFloat64(0.001388888888887411) /* 0xBF56C16C, 0x16C15177 */ +var _C3 = float64(2.480158728947673e-05) /* 0x3EFA01A0, 0x19CB1590 */ +var _C4 = -Float64FromFloat64(2.7557314351390663e-07) /* 0xBE927E4F, 0x809C52AD */ +var _C5 = float64(2.087572321298175e-09) /* 0x3E21EE9E, 0xBDB4B1C4 */ +var _C6 = -Float64FromFloat64(1.1359647557788195e-11) /* 0xBDA8FAE9, 0xBE8838D4 */ + +func X__cos(tls *TLS, x float64, y float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var hz, r, w, z Tdouble_t + _, _, _, _ = hz, r, w, z + z = Tdouble_t(x * x) + w = Tdouble_t(z * z) + r = Tdouble_t(z*(_C1+float64(z*(_C2+float64(z*_C3))))) + Tdouble_t(Tdouble_t(w*w)*(_C4+float64(z*(_C5+float64(z*_C6))))) + hz = Tdouble_t(float64(0.5) * z) + w = float64(1) - hz + return w + (Float64FromFloat64(1) - w - hz + (Tdouble_t(z*r) - Tdouble_t(x*y))) +} + +// C documentation +// +// /* |cos(x) - c(x)| < 2**-34.1 (~[-5.37e-11, 5.295e-11]). */ + +var _C0 = -Float64FromFloat64(0.499999997251031) /* -0.499999997251031003120 */ +var _C11 = float64(0.04166662332373906) /* 0.0416666233237390631894 */ +var _C21 = -Float64FromFloat64(0.001388676377460993) /* -0.00138867637746099294692 */ +var _C31 = float64(2.439044879627741e-05) /* 0.0000243904487962774090654 */ + +func X__cosdf(tls *TLS, x float64) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, w, z Tdouble_t + _, _, _ = r, w, z + /* Try to optimize for parallel evaluation as in __tandf.c. */ + z = Tdouble_t(x * x) + w = Tdouble_t(z * z) + r = _C21 + float64(z*_C31) + return float32(float64(1) + float64(z*_C0) + float64(w*_C11) + float64(Tdouble_t(w*z)*r)) +} + +// C documentation +// +// /* k is such that k*ln2 has minimal relative error and x - kln2 > log(DBL_MIN) */ +var _k2 = int32(2043) +var _kln22 = float64(1416.0996898839683) + +// C documentation +// +// /* exp(x)/2 for x >= log(DBL_MAX), slightly better than 0.5*exp(x/2)*exp(x/2) */ +func X__expo2(tls *TLS, x float64, sign float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v sign=%v, (%v:)", tls, x, sign, origin(2)) + defer func() { trc("-> %v", r) }() + } + var scale float64 + var v1 Tuint64_t + _, _ = scale, v1 + /* note that k is odd and scale*scale overflows */ + v1 = uint64(Uint32FromInt32(Int32FromInt32(0x3ff)+_k2/Int32FromInt32(2))< log(FLT_MIN) */ +var _k3 = int32(235) +var _kln23 = Float32FromFloat32(162.88958740234375) + +// C documentation +// +// /* expf(x)/2 for x >= log(FLT_MAX), slightly better than 0.5f*expf(x/2)*expf(x/2) */ +func X__expo2f(tls *TLS, x float32, sign float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v sign=%v, (%v:)", tls, x, sign, origin(2)) + defer func() { trc("-> %v", r) }() + } + var scale float32 + var v1 Tuint32_t + _, _ = scale, v1 + /* note that k is odd and scale*scale overflows */ + v1 = Uint32FromInt32(Int32FromInt32(0x7f)+_k3/Int32FromInt32(2)) << int32(23) + scale = *(*float32)(unsafe.Pointer(&v1)) + /* exp(x - k ln2) * 2**(k-1) */ + /* in directed rounding correct sign before rounding or overflow is important */ + return float32(float32(Xexpf(tls, x-_kln23)*float32(sign*scale)) * scale) +} + +func X__fpclassify(tls *TLS, x float64) (r int32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e, v1 int32 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _ = e, v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + e = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + if !(e != 0) { + if *(*Tuint64_t)(unsafe.Pointer(bp))< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e, v1 int32 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _ = e, v1 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + e = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(23) & uint32(0xff)) + if !(e != 0) { + if *(*Tuint32_t)(unsafe.Pointer(bp))< %v", r) }() + } + return X__fpclassify(tls, x) +} + +const pio2_hi = 0 +const pio2_lo = 0 + +func X__math_divzero(tls *TLS, sign Tuint32_t) (r float64) { + if __ccgo_strace { + trc("tls=%v sign=%v, (%v:)", tls, sign, origin(2)) + defer func() { trc("-> %v", r) }() + } + var y, v1, v2 float64 + _, _, _ = y, v1, v2 + if sign != 0 { + v1 = -Float64FromFloat64(1) + } else { + v1 = float64(1) + } + y = v1 + v2 = y + goto _3 +_3: + return v2 / float64(0) +} + +func X__math_divzerof(tls *TLS, sign Tuint32_t) (r float32) { + if __ccgo_strace { + trc("tls=%v sign=%v, (%v:)", tls, sign, origin(2)) + defer func() { trc("-> %v", r) }() + } + var y, v1, v2 float32 + _, _, _ = y, v1, v2 + if sign != 0 { + v1 = -Float32FromFloat32(1) + } else { + v1 = Float32FromFloat32(1) + } + y = v1 + v2 = y + goto _3 +_3: + return v2 / Float32FromFloat32(0) +} + +func X__math_invalid(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return (x - x) / (x - x) +} + +func X__math_invalidf(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return (x - x) / (x - x) +} + +func X__math_oflow(tls *TLS, sign Tuint32_t) (r float64) { + if __ccgo_strace { + trc("tls=%v sign=%v, (%v:)", tls, sign, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__math_xflow(tls, sign, float64(3.105036184601418e+231)) +} + +func X__math_oflowf(tls *TLS, sign Tuint32_t) (r float32) { + if __ccgo_strace { + trc("tls=%v sign=%v, (%v:)", tls, sign, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__math_xflowf(tls, sign, Float32FromFloat32(1.5845632502852868e+29)) +} + +func X__math_uflow(tls *TLS, sign Tuint32_t) (r float64) { + if __ccgo_strace { + trc("tls=%v sign=%v, (%v:)", tls, sign, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__math_xflow(tls, sign, float64(1.2882297539194267e-231)) +} + +func X__math_uflowf(tls *TLS, sign Tuint32_t) (r float32) { + if __ccgo_strace { + trc("tls=%v sign=%v, (%v:)", tls, sign, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__math_xflowf(tls, sign, Float32FromFloat32(2.524354896707238e-29)) +} + +func X__math_xflow(tls *TLS, sign Tuint32_t, y2 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v sign=%v y2=%v, (%v:)", tls, sign, y2, origin(2)) + defer func() { trc("-> %v", r) }() + } + var y, y1, v1, v2, v4 float64 + _, _, _, _, _ = y, y1, v1, v2, v4 + if sign != 0 { + v1 = -y2 + } else { + v1 = y2 + } + y1 = v1 + v2 = y1 + goto _3 +_3: + y = float64(v2 * y2) + v4 = y + goto _5 +_5: + return v4 +} + +func X__math_xflowf(tls *TLS, sign Tuint32_t, y2 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v sign=%v y2=%v, (%v:)", tls, sign, y2, origin(2)) + defer func() { trc("-> %v", r) }() + } + var y, y1, v1, v2, v4 float32 + _, _, _, _, _ = y, y1, v1, v2, v4 + if sign != 0 { + v1 = -y2 + } else { + v1 = y2 + } + y1 = v1 + v2 = y1 + goto _3 +_3: + y = float32(v2 * y2) + v4 = y + goto _5 +_5: + return v4 +} + +const DBL_EPSILON1 = 2.220446049250313e-16 +const EPS = 0 + +// C documentation +// +// /* +// * invpio2: 53 bits of 2/pi +// * pio2_1: first 33 bit of pi/2 +// * pio2_1t: pi/2 - pio2_1 +// * pio2_2: second 33 bit of pi/2 +// * pio2_2t: pi/2 - (pio2_1+pio2_2) +// * pio2_3: third 33 bit of pi/2 +// * pio2_3t: pi/2 - (pio2_1+pio2_2+pio2_3) +// */ + +var _toint = Float64FromFloat64(1.5) / Float64FromFloat64(2.220446049250313e-16) +var _pio4 = float64(0.7853981633974483) +var _invpio2 = float64(0.6366197723675814) /* 0x3FE45F30, 0x6DC9C883 */ +var _pio2_1 = float64(1.5707963267341256) /* 0x3FF921FB, 0x54400000 */ +var _pio2_1t = float64(6.077100506506192e-11) /* 0x3DD0B461, 0x1A626331 */ +var _pio2_2 = float64(6.077100506303966e-11) /* 0x3DD0B461, 0x1A600000 */ +var _pio2_2t = float64(2.0222662487959506e-21) /* 0x3BA3198A, 0x2E037073 */ +var _pio2_3 = float64(2.0222662487111665e-21) /* 0x3BA3198A, 0x2E000000 */ +var _pio2_3t = float64(8.4784276603689e-32) /* 0x397B839A, 0x252049C1 */ + +// C documentation +// +// /* caller must handle the case when reduction is not needed: |x| ~<= pi/4 */ +func X__rem_pio2(tls *TLS, x float64, y uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + var ex, ey, i, n, sign int32 + var fn, r, t, w, z Tdouble_t + var ix Tuint32_t + var v2 float64 + var _ /* tx at bp+8 */ [3]float64 + var _ /* ty at bp+32 */ [2]float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _, _, _, _, _, _ = ex, ey, fn, i, ix, n, r, sign, t, w, z, v2 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + sign = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(63)) + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32) & uint64(0x7fffffff)) + if ix <= uint32(0x400f6a7a) { /* |x| ~<= 5pi/4 */ + if ix&uint32(0xfffff) == uint32(0x921fb) { /* |x| ~= pi/2 or 2pi/2 */ + goto medium + } /* cancellation -- use medium case */ + if ix <= uint32(0x4002d97c) { /* |x| ~<= 3pi/4 */ + if !(sign != 0) { + z = x - _pio2_1 /* one round good to 85 bits */ + **(**float64)(__ccgo_up(y)) = z - _pio2_1t + **(**float64)(__ccgo_up(y + 1*8)) = z - **(**float64)(__ccgo_up(y)) - _pio2_1t + return int32(1) + } else { + z = x + _pio2_1 + **(**float64)(__ccgo_up(y)) = z + _pio2_1t + **(**float64)(__ccgo_up(y + 1*8)) = z - **(**float64)(__ccgo_up(y)) + _pio2_1t + return -int32(1) + } + } else { + if !(sign != 0) { + z = x - float64(Float64FromInt32(2)*_pio2_1) + **(**float64)(__ccgo_up(y)) = z - Tdouble_t(Float64FromInt32(2)*_pio2_1t) + **(**float64)(__ccgo_up(y + 1*8)) = z - **(**float64)(__ccgo_up(y)) - Tdouble_t(Float64FromInt32(2)*_pio2_1t) + return int32(2) + } else { + z = x + float64(Float64FromInt32(2)*_pio2_1) + **(**float64)(__ccgo_up(y)) = z + Tdouble_t(Float64FromInt32(2)*_pio2_1t) + **(**float64)(__ccgo_up(y + 1*8)) = z - **(**float64)(__ccgo_up(y)) + Tdouble_t(Float64FromInt32(2)*_pio2_1t) + return -int32(2) + } + } + } + if ix <= uint32(0x401c463b) { /* |x| ~<= 9pi/4 */ + if ix <= uint32(0x4015fdbc) { /* |x| ~<= 7pi/4 */ + if ix == uint32(0x4012d97c) { /* |x| ~= 3pi/2 */ + goto medium + } + if !(sign != 0) { + z = x - float64(Float64FromInt32(3)*_pio2_1) + **(**float64)(__ccgo_up(y)) = z - Tdouble_t(Float64FromInt32(3)*_pio2_1t) + **(**float64)(__ccgo_up(y + 1*8)) = z - **(**float64)(__ccgo_up(y)) - Tdouble_t(Float64FromInt32(3)*_pio2_1t) + return int32(3) + } else { + z = x + float64(Float64FromInt32(3)*_pio2_1) + **(**float64)(__ccgo_up(y)) = z + Tdouble_t(Float64FromInt32(3)*_pio2_1t) + **(**float64)(__ccgo_up(y + 1*8)) = z - **(**float64)(__ccgo_up(y)) + Tdouble_t(Float64FromInt32(3)*_pio2_1t) + return -int32(3) + } + } else { + if ix == uint32(0x401921fb) { /* |x| ~= 4pi/2 */ + goto medium + } + if !(sign != 0) { + z = x - float64(Float64FromInt32(4)*_pio2_1) + **(**float64)(__ccgo_up(y)) = z - Tdouble_t(Float64FromInt32(4)*_pio2_1t) + **(**float64)(__ccgo_up(y + 1*8)) = z - **(**float64)(__ccgo_up(y)) - Tdouble_t(Float64FromInt32(4)*_pio2_1t) + return int32(4) + } else { + z = x + float64(Float64FromInt32(4)*_pio2_1) + **(**float64)(__ccgo_up(y)) = z + Tdouble_t(Float64FromInt32(4)*_pio2_1t) + **(**float64)(__ccgo_up(y + 1*8)) = z - **(**float64)(__ccgo_up(y)) + Tdouble_t(Float64FromInt32(4)*_pio2_1t) + return -int32(4) + } + } + } + if !(ix < uint32(0x413921fb)) { + goto _1 + } /* |x| ~< 2^20*(pi/2), medium size */ + goto medium +medium: + ; + /* rint(x/(pi/2)) */ + fn = Tdouble_t(x*_invpio2) + _toint - _toint + n = int32(fn) + r = x - float64(fn*_pio2_1) + w = Tdouble_t(fn * _pio2_1t) /* 1st round, good to 85 bits */ + /* Matters with directed rounding. */ + if r-w < -_pio4 { + n = n - 1 + fn = fn - 1 + r = x - float64(fn*_pio2_1) + w = Tdouble_t(fn * _pio2_1t) + } else { + if r-w > _pio4 { + n = n + 1 + fn = fn + 1 + r = x - float64(fn*_pio2_1) + w = Tdouble_t(fn * _pio2_1t) + } + } + **(**float64)(__ccgo_up(y)) = r - w + *(*float64)(unsafe.Pointer(bp)) = **(**float64)(__ccgo_up(y)) + ey = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + ex = Int32FromUint32(ix >> int32(20)) + if ex-ey > int32(16) { /* 2nd round, good to 118 bits */ + t = r + w = Tdouble_t(fn * _pio2_2) + r = t - w + w = Tdouble_t(fn*_pio2_2t) - (t - r - w) + **(**float64)(__ccgo_up(y)) = r - w + *(*float64)(unsafe.Pointer(bp)) = **(**float64)(__ccgo_up(y)) + ey = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + if ex-ey > int32(49) { /* 3rd round, good to 151 bits, covers all cases */ + t = r + w = Tdouble_t(fn * _pio2_3) + r = t - w + w = Tdouble_t(fn*_pio2_3t) - (t - r - w) + **(**float64)(__ccgo_up(y)) = r - w + } + } + **(**float64)(__ccgo_up(y + 1*8)) = r - **(**float64)(__ccgo_up(y)) - w + return n +_1: + ; + /* + * all other (large) arguments + */ + if ix >= uint32(0x7ff00000) { /* x is inf or NaN */ + v2 = x - x + **(**float64)(__ccgo_up(y + 1*8)) = v2 + **(**float64)(__ccgo_up(y)) = v2 + return 0 + } + /* set z = scalbn(|x|,-ilogb(x)+23) */ + *(*float64)(unsafe.Pointer(bp)) = x + *(*Tuint64_t)(unsafe.Pointer(bp)) &= Uint64FromInt32(-Int32FromInt32(1)) >> Int32FromInt32(12) + *(*Tuint64_t)(unsafe.Pointer(bp)) |= Uint64FromInt32(Int32FromInt32(0x3ff)+Int32FromInt32(23)) << Int32FromInt32(52) + z = *(*float64)(unsafe.Pointer(bp)) + i = 0 + for { + if !(i < int32(2)) { + break + } + (**(**[3]float64)(__ccgo_up(bp + 8)))[i] = float64(int32(z)) + z = Tdouble_t((z - (**(**[3]float64)(__ccgo_up(bp + 8)))[i]) * float64(1.6777216e+07)) + goto _3 + _3: + ; + i = i + 1 + } + (**(**[3]float64)(__ccgo_up(bp + 8)))[i] = z + /* skip zero terms, first term is non-zero */ + for (**(**[3]float64)(__ccgo_up(bp + 8)))[i] == float64(0) { + i = i - 1 + } + n = X__rem_pio2_large(tls, bp+8, bp+32, Int32FromUint32(ix>>Int32FromInt32(20))-(Int32FromInt32(0x3ff)+Int32FromInt32(23)), i+int32(1), int32(1)) + if sign != 0 { + **(**float64)(__ccgo_up(y)) = -(**(**[2]float64)(__ccgo_up(bp + 32)))[0] + **(**float64)(__ccgo_up(y + 1*8)) = -(**(**[2]float64)(__ccgo_up(bp + 32)))[int32(1)] + return -n + } + **(**float64)(__ccgo_up(y)) = (**(**[2]float64)(__ccgo_up(bp + 32)))[0] + **(**float64)(__ccgo_up(y + 1*8)) = (**(**[2]float64)(__ccgo_up(bp + 32)))[int32(1)] + return n +} + +const DBL_EPSILON2 = 0 + +var _init_jk = [4]int32{ + 0: int32(3), + 1: int32(4), + 2: int32(4), + 3: int32(6), +} /* initial value for jk */ + +// C documentation +// +// /* +// * Table of constants for 2/pi, 396 Hex digits (476 decimal) of 2/pi +// * +// * integer array, contains the (24*i)-th to (24*i+23)-th +// * bit of 2/pi after binary point. The corresponding +// * floating value is +// * +// * ipio2[i] * 2^(-24(i+1)). +// * +// * NB: This table must have at least (e0-3)/24 + jk terms. +// * For quad precision (e0 <= 16360, jk = 6), this is 686. +// */ +var _ipio2 = [66]Tint32_t{ + 0: int32(0xA2F983), + 1: int32(0x6E4E44), + 2: int32(0x1529FC), + 3: int32(0x2757D1), + 4: int32(0xF534DD), + 5: int32(0xC0DB62), + 6: int32(0x95993C), + 7: int32(0x439041), + 8: int32(0xFE5163), + 9: int32(0xABDEBB), + 10: int32(0xC561B7), + 11: int32(0x246E3A), + 12: int32(0x424DD2), + 13: int32(0xE00649), + 14: int32(0x2EEA09), + 15: int32(0xD1921C), + 16: int32(0xFE1DEB), + 17: int32(0x1CB129), + 18: int32(0xA73EE8), + 19: int32(0x8235F5), + 20: int32(0x2EBB44), + 21: int32(0x84E99C), + 22: int32(0x7026B4), + 23: int32(0x5F7E41), + 24: int32(0x3991D6), + 25: int32(0x398353), + 26: int32(0x39F49C), + 27: int32(0x845F8B), + 28: int32(0xBDF928), + 29: int32(0x3B1FF8), + 30: int32(0x97FFDE), + 31: int32(0x05980F), + 32: int32(0xEF2F11), + 33: int32(0x8B5A0A), + 34: int32(0x6D1F6D), + 35: int32(0x367ECF), + 36: int32(0x27CB09), + 37: int32(0xB74F46), + 38: int32(0x3F669E), + 39: int32(0x5FEA2D), + 40: int32(0x7527BA), + 41: int32(0xC7EBE5), + 42: int32(0xF17B3D), + 43: int32(0x0739F7), + 44: int32(0x8A5292), + 45: int32(0xEA6BFB), + 46: int32(0x5FB11F), + 47: int32(0x8D5D08), + 48: int32(0x560330), + 49: int32(0x46FC7B), + 50: int32(0x6BABF0), + 51: int32(0xCFBC20), + 52: int32(0x9AF436), + 53: int32(0x1DA9E3), + 54: int32(0x91615E), + 55: int32(0xE61B08), + 56: int32(0x659985), + 57: int32(0x5F14A0), + 58: int32(0x68408D), + 59: int32(0xFFD880), + 60: int32(0x4D7327), + 61: int32(0x310606), + 62: int32(0x1556CA), + 63: int32(0x73A8C9), + 64: int32(0x60E27B), + 65: int32(0xC08C6B), +} + +var _PIo2 = [8]float64{ + 0: float64(1.570796251296997), + 1: float64(7.549789415861596e-08), + 2: float64(5.390302529957765e-15), + 3: float64(3.282003415807913e-22), + 4: float64(1.270655753080676e-29), + 5: float64(1.2293330898111133e-36), + 6: float64(2.7337005381646456e-44), + 7: float64(2.1674168387780482e-51), +} + +func X__rem_pio2_large(tls *TLS, x uintptr, y uintptr, e0 int32, nx int32, prec int32) (r int32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v e0=%v nx=%v prec=%v, (%v:)", tls, x, y, e0, nx, prec, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(240) + defer tls.Free(240) + var carry, i, ih, j, jk, jp, jv, jx, jz, k, m, n, q0 Tint32_t + var f, q [20]float64 + var fw, z, v2 float64 + var _ /* fq at bp+80 */ [20]float64 + var _ /* iq at bp+0 */ [20]Tint32_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = carry, f, fw, i, ih, j, jk, jp, jv, jx, jz, k, m, n, q, q0, z, v2 + /* initialize jk*/ + jk = _init_jk[prec] + jp = jk + /* determine jx,jv,q0, note that 3>q0 */ + jx = nx - int32(1) + jv = (e0 - int32(3)) / int32(24) + if jv < 0 { + jv = 0 + } + q0 = e0 - int32(24)*(jv+int32(1)) + /* set up f[0] to f[jx+jk] where f[jx+jk] = ipio2[jv+jk] */ + j = jv - jx + m = jx + jk + i = 0 + for { + if !(i <= m) { + break + } + if j < 0 { + v2 = float64(0) + } else { + v2 = float64(_ipio2[j]) + } + f[i] = v2 + goto _1 + _1: + ; + i = i + 1 + j = j + 1 + } + /* compute q[0],q[1],...q[jk] */ + i = 0 + for { + if !(i <= jk) { + break + } + j = 0 + fw = Float64FromFloat64(0) + for { + if !(j <= jx) { + break + } + fw = fw + float64(**(**float64)(__ccgo_up(x + uintptr(j)*8))*f[jx+i-j]) + goto _4 + _4: + ; + j = j + 1 + } + q[i] = fw + goto _3 + _3: + ; + i = i + 1 + } + jz = jk + goto recompute +recompute: + ; + /* distill q[] into iq[] reversingly */ + i = 0 + j = jz + z = q[jz] + for { + if !(j > 0) { + break + } + fw = float64(int32(float64(Float64FromFloat64(5.960464477539063e-08) * z))) + (**(**[20]Tint32_t)(__ccgo_up(bp)))[i] = int32(z - float64(Float64FromFloat64(1.6777216e+07)*fw)) + z = q[j-int32(1)] + fw + goto _5 + _5: + ; + i = i + 1 + j = j - 1 + } + /* compute n */ + z = Xscalbn(tls, z, q0) /* actual value of z */ + z = z - float64(float64(8)*Xfloor(tls, float64(z*float64(0.125)))) /* trim off integer >= 8 */ + n = int32(z) + z = z - float64(n) + ih = 0 + if q0 > 0 { /* need iq[jz-1] to determine n */ + i = (**(**[20]Tint32_t)(__ccgo_up(bp)))[jz-int32(1)] >> (int32(24) - q0) + n = n + i + **(**Tint32_t)(__ccgo_up(bp + uintptr(jz-int32(1))*4)) -= i << (int32(24) - q0) + ih = (**(**[20]Tint32_t)(__ccgo_up(bp)))[jz-int32(1)] >> (int32(23) - q0) + } else { + if q0 == 0 { + ih = (**(**[20]Tint32_t)(__ccgo_up(bp)))[jz-int32(1)] >> int32(23) + } else { + if z >= float64(0.5) { + ih = int32(2) + } + } + } + if ih > 0 { /* q > 0.5 */ + n = n + int32(1) + carry = 0 + i = 0 + for { + if !(i < jz) { + break + } /* compute 1-q */ + j = (**(**[20]Tint32_t)(__ccgo_up(bp)))[i] + if carry == 0 { + if j != 0 { + carry = int32(1) + (**(**[20]Tint32_t)(__ccgo_up(bp)))[i] = int32(0x1000000) - j + } + } else { + (**(**[20]Tint32_t)(__ccgo_up(bp)))[i] = int32(0xffffff) - j + } + goto _6 + _6: + ; + i = i + 1 + } + if q0 > 0 { /* rare case: chance is 1 in 12 */ + switch q0 { + case int32(1): + **(**Tint32_t)(__ccgo_up(bp + uintptr(jz-int32(1))*4)) &= int32(0x7fffff) + case int32(2): + **(**Tint32_t)(__ccgo_up(bp + uintptr(jz-int32(1))*4)) &= int32(0x3fffff) + break + } + } + if ih == int32(2) { + z = float64(1) - z + if carry != 0 { + z = z - Xscalbn(tls, float64(1), q0) + } + } + } + /* check if recomputation is needed */ + if z == float64(0) { + j = 0 + i = jz - int32(1) + for { + if !(i >= jk) { + break + } + j = j | (**(**[20]Tint32_t)(__ccgo_up(bp)))[i] + goto _7 + _7: + ; + i = i - 1 + } + if j == 0 { /* need recomputation */ + k = int32(1) + for { + if !((**(**[20]Tint32_t)(__ccgo_up(bp)))[jk-k] == 0) { + break + } + goto _8 + _8: + ; + k = k + 1 + } /* k = no. of terms needed */ + i = jz + int32(1) + for { + if !(i <= jz+k) { + break + } /* add q[jz+1] to q[jz+k] */ + f[jx+i] = float64(_ipio2[jv+i]) + j = 0 + fw = Float64FromFloat64(0) + for { + if !(j <= jx) { + break + } + fw = fw + float64(**(**float64)(__ccgo_up(x + uintptr(j)*8))*f[jx+i-j]) + goto _10 + _10: + ; + j = j + 1 + } + q[i] = fw + goto _9 + _9: + ; + i = i + 1 + } + jz = jz + k + goto recompute + } + } + /* chop off zero terms */ + if z == float64(0) { + jz = jz - int32(1) + q0 = q0 - int32(24) + for (**(**[20]Tint32_t)(__ccgo_up(bp)))[jz] == 0 { + jz = jz - 1 + q0 = q0 - int32(24) + } + } else { /* break z into 24-bit if necessary */ + z = Xscalbn(tls, z, -q0) + if z >= float64(1.6777216e+07) { + fw = float64(int32(float64(Float64FromFloat64(5.960464477539063e-08) * z))) + (**(**[20]Tint32_t)(__ccgo_up(bp)))[jz] = int32(z - float64(Float64FromFloat64(1.6777216e+07)*fw)) + jz = jz + int32(1) + q0 = q0 + int32(24) + (**(**[20]Tint32_t)(__ccgo_up(bp)))[jz] = int32(fw) + } else { + (**(**[20]Tint32_t)(__ccgo_up(bp)))[jz] = int32(z) + } + } + /* convert integer "bit" chunk to floating-point value */ + fw = Xscalbn(tls, float64(1), q0) + i = jz + for { + if !(i >= 0) { + break + } + q[i] = float64(fw * float64((**(**[20]Tint32_t)(__ccgo_up(bp)))[i])) + fw = fw * float64(5.960464477539063e-08) + goto _11 + _11: + ; + i = i - 1 + } + /* compute PIo2[0,...,jp]*q[jz,...,0] */ + i = jz + for { + if !(i >= 0) { + break + } + fw = float64(0) + k = Int32FromInt32(0) + for { + if !(k <= jp && k <= jz-i) { + break + } + fw = fw + float64(_PIo2[k]*q[i+k]) + goto _13 + _13: + ; + k = k + 1 + } + (**(**[20]float64)(__ccgo_up(bp + 80)))[jz-i] = fw + goto _12 + _12: + ; + i = i - 1 + } + /* compress fq[] into y[] */ + switch prec { + case 0: + goto _14 + case int32(2): + goto _15 + case int32(1): + goto _16 + case int32(3): + goto _17 + } + goto _18 +_14: + ; + fw = float64(0) + i = jz + for { + if !(i >= 0) { + break + } + fw = fw + (**(**[20]float64)(__ccgo_up(bp + 80)))[i] + goto _19 + _19: + ; + i = i - 1 + } + if ih == 0 { + v2 = fw + } else { + v2 = -fw + } + **(**float64)(__ccgo_up(y)) = v2 + goto _18 +_16: + ; +_15: + ; + fw = float64(0) + i = jz + for { + if !(i >= 0) { + break + } + fw = fw + (**(**[20]float64)(__ccgo_up(bp + 80)))[i] + goto _21 + _21: + ; + i = i - 1 + } + // TODO: drop excess precision here once double_t is used + fw = fw + if ih == 0 { + v2 = fw + } else { + v2 = -fw + } + **(**float64)(__ccgo_up(y)) = v2 + fw = (**(**[20]float64)(__ccgo_up(bp + 80)))[0] - fw + i = int32(1) + for { + if !(i <= jz) { + break + } + fw = fw + (**(**[20]float64)(__ccgo_up(bp + 80)))[i] + goto _23 + _23: + ; + i = i + 1 + } + if ih == 0 { + v2 = fw + } else { + v2 = -fw + } + **(**float64)(__ccgo_up(y + 1*8)) = v2 + goto _18 +_17: + ; /* painful */ + i = jz +_27: + ; + if !(i > 0) { + goto _25 + } + fw = (**(**[20]float64)(__ccgo_up(bp + 80)))[i-int32(1)] + (**(**[20]float64)(__ccgo_up(bp + 80)))[i] + **(**float64)(__ccgo_up(bp + 80 + uintptr(i)*8)) += (**(**[20]float64)(__ccgo_up(bp + 80)))[i-int32(1)] - fw + (**(**[20]float64)(__ccgo_up(bp + 80)))[i-int32(1)] = fw + goto _26 +_26: + ; + i = i - 1 + goto _27 + goto _25 +_25: + ; + i = jz + for { + if !(i > int32(1)) { + break + } + fw = (**(**[20]float64)(__ccgo_up(bp + 80)))[i-int32(1)] + (**(**[20]float64)(__ccgo_up(bp + 80)))[i] + **(**float64)(__ccgo_up(bp + 80 + uintptr(i)*8)) += (**(**[20]float64)(__ccgo_up(bp + 80)))[i-int32(1)] - fw + (**(**[20]float64)(__ccgo_up(bp + 80)))[i-int32(1)] = fw + goto _28 + _28: + ; + i = i - 1 + } + fw = float64(0) + i = jz + for { + if !(i >= int32(2)) { + break + } + fw = fw + (**(**[20]float64)(__ccgo_up(bp + 80)))[i] + goto _29 + _29: + ; + i = i - 1 + } + if ih == 0 { + **(**float64)(__ccgo_up(y)) = (**(**[20]float64)(__ccgo_up(bp + 80)))[0] + **(**float64)(__ccgo_up(y + 1*8)) = (**(**[20]float64)(__ccgo_up(bp + 80)))[int32(1)] + **(**float64)(__ccgo_up(y + 2*8)) = fw + } else { + **(**float64)(__ccgo_up(y)) = -(**(**[20]float64)(__ccgo_up(bp + 80)))[0] + **(**float64)(__ccgo_up(y + 1*8)) = -(**(**[20]float64)(__ccgo_up(bp + 80)))[int32(1)] + **(**float64)(__ccgo_up(y + 2*8)) = -fw + } +_18: + ; + return n & int32(7) +} + +const DBL_EPSILON3 = 2.220446049250313e-16 + +// C documentation +// +// /* +// * invpio2: 53 bits of 2/pi +// * pio2_1: first 25 bits of pi/2 +// * pio2_1t: pi/2 - pio2_1 +// */ + +var _toint1 = Float64FromFloat64(1.5) / Float64FromFloat64(2.220446049250313e-16) +var _pio41 = float64(0.7853981852531433) +var _invpio21 = float64(0.6366197723675814) /* 0x3FE45F30, 0x6DC9C883 */ +var _pio2_11 = float64(1.5707963109016418) /* 0x3FF921FB, 0x50000000 */ +var _pio2_1t1 = float64(1.5893254773528196e-08) /* 0x3E5110b4, 0x611A6263 */ + +func X__rem_pio2f(tls *TLS, x float32, y uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var e0, n, sign int32 + var fn Tdouble_t + var ix Tuint32_t + var _ /* tx at bp+8 */ [1]float64 + var _ /* ty at bp+16 */ [1]float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _ = e0, fn, ix, n, sign + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + ix = *(*Tuint32_t)(unsafe.Pointer(bp)) & uint32(0x7fffffff) + /* 25+53 bit pi is good enough for medium size */ + if ix < uint32(0x4dc90fdb) { /* |x| ~< 2^28*(pi/2), medium size */ + /* Use a specialized rint() to get fn. */ + fn = Tdouble_t(float64(x)*_invpio21) + _toint1 - _toint1 + n = int32(fn) + **(**float64)(__ccgo_up(y)) = float64(x) - Tdouble_t(fn*_pio2_11) - Tdouble_t(fn*_pio2_1t1) + /* Matters with directed rounding. */ + if **(**float64)(__ccgo_up(y)) < -_pio41 { + n = n - 1 + fn = fn - 1 + **(**float64)(__ccgo_up(y)) = float64(x) - Tdouble_t(fn*_pio2_11) - Tdouble_t(fn*_pio2_1t1) + } else { + if **(**float64)(__ccgo_up(y)) > _pio41 { + n = n + 1 + fn = fn + 1 + **(**float64)(__ccgo_up(y)) = float64(x) - Tdouble_t(fn*_pio2_11) - Tdouble_t(fn*_pio2_1t1) + } + } + return n + } + if ix >= uint32(0x7f800000) { /* x is inf or NaN */ + **(**float64)(__ccgo_up(y)) = float64(x - x) + return 0 + } + /* scale x into [2^23, 2^24-1] */ + sign = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(31)) + e0 = Int32FromUint32(ix>>Int32FromInt32(23) - Uint32FromInt32(Int32FromInt32(0x7f)+Int32FromInt32(23))) /* e0 = ilogb(|x|)-23, positive */ + *(*Tuint32_t)(unsafe.Pointer(bp)) = ix - Uint32FromInt32(e0< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* y at bp+0 */ struct { + Fi [0]Tuint64_t + Fd float64 + } + *(*struct { + Fi [0]Tuint64_t + Fd float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Fd float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + return Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(63)) +} + +// C documentation +// +// // FIXME: macro in math.h +func X__signbitf(tls *TLS, x float32) (r int32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* y at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + return Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(31)) +} + +func X__signbitl(tls *TLS, x float64) (r int32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__signbit(tls, x) +} + +var _S1 = -Float64FromFloat64(0.16666666666666632) /* 0xBFC55555, 0x55555549 */ +var _S2 = float64(0.00833333333332249) /* 0x3F811111, 0x1110F8A6 */ +var _S3 = -Float64FromFloat64(0.0001984126982985795) /* 0xBF2A01A0, 0x19C161D5 */ +var _S4 = float64(2.7557313707070068e-06) /* 0x3EC71DE3, 0x57B1FE7D */ +var _S5 = -Float64FromFloat64(2.5050760253406863e-08) /* 0xBE5AE5E6, 0x8A2B9CEB */ +var _S6 = float64(1.58969099521155e-10) /* 0x3DE5D93A, 0x5ACFD57C */ + +func X__sin(tls *TLS, x float64, y float64, iy int32) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v iy=%v, (%v:)", tls, x, y, iy, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v, w, z Tdouble_t + _, _, _, _ = r, v, w, z + z = Tdouble_t(x * x) + w = Tdouble_t(z * z) + r = _S2 + float64(z*(_S3+float64(z*_S4))) + float64(Tdouble_t(z*w)*(_S5+float64(z*_S6))) + v = Tdouble_t(z * x) + if iy == 0 { + return x + float64(v*(_S1+float64(z*r))) + } else { + return x - (Tdouble_t(z*(float64(Float64FromFloat64(0.5)*y)-float64(v*r))) - y - Tdouble_t(v*_S1)) + } + return r1 +} + +// C documentation +// +// /* |sin(x)/x - s(x)| < 2**-37.5 (~[-4.89e-12, 4.824e-12]). */ + +var _S11 = -Float64FromFloat64(0.16666666641626524) /* -0.166666666416265235595 */ +var _S21 = float64(0.008333329385889463) /* 0.0083333293858894631756 */ +var _S31 = -Float64FromFloat64(0.00019839334836096632) /* -0.000198393348360966317347 */ +var _S41 = float64(2.718311493989822e-06) /* 0.0000027183114939898219064 */ + +func X__sindf(tls *TLS, x float64) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, s, w, z Tdouble_t + _, _, _, _ = r, s, w, z + /* Try to optimize for parallel evaluation as in __tandf.c. */ + z = Tdouble_t(x * x) + w = Tdouble_t(z * z) + r = _S31 + float64(z*_S41) + s = Tdouble_t(z * x) + return float32(x + float64(s*(_S11+float64(z*_S21))) + float64(Tdouble_t(s*w)*r)) +} + +var _T = [13]float64{ + 0: float64(0.3333333333333341), + 1: float64(0.13333333333320124), + 2: float64(0.05396825397622605), + 3: float64(0.021869488294859542), + 4: float64(0.0088632398235993), + 5: float64(0.0035920791075913124), + 6: float64(0.0014562094543252903), + 7: float64(0.0005880412408202641), + 8: float64(0.0002464631348184699), + 9: float64(7.817944429395571e-05), + 10: float64(7.140724913826082e-05), + 11: -Float64FromFloat64(1.8558637485527546e-05), + 12: float64(2.590730518636337e-05), +} +var _pio42 = float64(0.7853981633974483) /* 3FE921FB, 54442D18 */ +var _pio4lo = float64(3.061616997868383e-17) /* 3C81A626, 33145C07 */ + +func X__tan(tls *TLS, x float64, y float64, odd int32) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v odd=%v, (%v:)", tls, x, y, odd, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var a, r, s, v, w, z, v1 Tdouble_t + var a0, w0 float64 + var big, sign int32 + var hx Tuint32_t + var v2 Tuint64_t + _, _, _, _, _, _, _, _, _, _, _, _, _ = a, a0, big, hx, r, s, sign, v, w, w0, z, v1, v2 + hx = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + big = BoolInt32(hx&uint32(0x7fffffff) >= uint32(0x3FE59428)) /* |x| >= 0.6744 */ + if big != 0 { + sign = Int32FromUint32(hx >> int32(31)) + if sign != 0 { + x = -x + y = -y + } + x = _pio42 - x + (_pio4lo - y) + y = float64(0) + } + z = Tdouble_t(x * x) + w = Tdouble_t(z * z) + /* + * Break x^5*(T[1]+x^2*T[2]+...) into + * x^5(T[1]+x^4*T[3]+...+x^20*T[11]) + + * x^5(x^2*(T[2]+x^4*T[4]+...+x^22*[T12])) + */ + r = _T[int32(1)] + float64(w*(_T[int32(3)]+float64(w*(_T[int32(5)]+float64(w*(_T[int32(7)]+float64(w*(_T[int32(9)]+float64(w*_T[int32(11)]))))))))) + v = Tdouble_t(z * (_T[int32(2)] + float64(w*(_T[int32(4)]+float64(w*(_T[int32(6)]+float64(w*(_T[int32(8)]+float64(w*(_T[int32(10)]+float64(w*_T[int32(12)]))))))))))) + s = Tdouble_t(z * x) + r = y + float64(z*(Tdouble_t(s*(r+v))+y)) + float64(s*_T[0]) + w = x + r + if big != 0 { + s = float64(int32(1) - int32(2)*odd) + v = s - Tdouble_t(float64(2)*(x+(r-Tdouble_t(w*w)/(w+s)))) + if sign != 0 { + v1 = -v + } else { + v1 = v + } + return v1 + } + if !(odd != 0) { + return w + } + /* -1.0/(x+r) has up to 2ulp error, so compute it accurately */ + w0 = w + v2 = *(*Tuint64_t)(unsafe.Pointer(&w0))>>Int32FromInt32(32)<>Int32FromInt32(32)< %v", r1) }() + } + var r, s, t, u, w, z Tdouble_t + var v1 float64 + _, _, _, _, _, _, _ = r, s, t, u, w, z, v1 + z = Tdouble_t(x * x) + /* + * Split up the polynomial into small independent terms to give + * opportunities for parallel evaluation. The chosen splitting is + * micro-optimized for Athlons (XP, X64). It costs 2 multiplications + * relative to Horner's method on sequential machines. + * + * We add the small terms from lowest degree up for efficiency on + * non-sequential machines (the lowest degree terms tend to be ready + * earlier). Apart from this, we don't care about order of + * operations, and don't need to to care since we have precision to + * spare. However, the chosen splitting is good for accuracy too, + * and would give results as accurate as Horner's method if the + * small terms were added from highest degree down. + */ + r = _T1[int32(4)] + float64(z*_T1[int32(5)]) + t = _T1[int32(2)] + float64(z*_T1[int32(3)]) + w = Tdouble_t(z * z) + s = Tdouble_t(z * x) + u = _T1[0] + float64(z*_T1[int32(1)]) + r = x + float64(s*u) + float64(Tdouble_t(s*w)*(t+Tdouble_t(w*r))) + if odd != 0 { + v1 = -Float64FromFloat64(1) / r + } else { + v1 = r + } + return float32(v1) +} + +var _pio2_hi = float64(1.5707963267948966) /* 0x3FF921FB, 0x54442D18 */ +var _pio2_lo = float64(6.123233995736766e-17) /* 0x3C91A626, 0x33145C07 */ +var _pS0 = float64(0.16666666666666666) /* 0x3FC55555, 0x55555555 */ +var _pS1 = -Float64FromFloat64(0.3255658186224009) /* 0xBFD4D612, 0x03EB6F7D */ +var _pS2 = float64(0.20121253213486293) /* 0x3FC9C155, 0x0E884455 */ +var _pS3 = -Float64FromFloat64(0.04005553450067941) /* 0xBFA48228, 0xB5688F3B */ +var _pS4 = float64(0.0007915349942898145) /* 0x3F49EFE0, 0x7501B288 */ +var _pS5 = float64(3.479331075960212e-05) /* 0x3F023DE1, 0x0DFDF709 */ +var _qS1 = -Float64FromFloat64(2.403394911734414) /* 0xC0033A27, 0x1C8A2D4B */ +var _qS2 = float64(2.0209457602335057) /* 0x40002AE5, 0x9C598AC8 */ +var _qS3 = -Float64FromFloat64(0.6882839716054533) /* 0xBFE6066C, 0x1B8D0159 */ +var _qS4 = float64(0.07703815055590194) /* 0x3FB3B8C5, 0xB12E9282 */ + +func _R(tls *TLS, z float64) (r float64) { + var p, q Tdouble_t + _, _ = p, q + p = Tdouble_t(z * (_pS0 + float64(z*(_pS1+float64(z*(_pS2+float64(z*(_pS3+float64(z*(_pS4+float64(z*_pS5))))))))))) + q = float64(1) + float64(z*(_qS1+float64(z*(_qS2+float64(z*(_qS3+float64(z*_qS4))))))) + return p / q +} + +func Xacos(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + var c, df, s, w, z float64 + var hx, ix, lx Tuint32_t + var v1 Tuint64_t + _, _, _, _, _, _, _, _, _ = c, df, hx, ix, lx, s, w, z, v1 + hx = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + ix = hx & uint32(0x7fffffff) + /* |x| >= 1 or nan */ + if ix >= uint32(0x3ff00000) { + lx = uint32(*(*Tuint64_t)(unsafe.Pointer(&x))) + if ix-uint32(0x3ff00000)|lx == uint32(0) { + /* acos(1)=0, acos(-1)=pi */ + if hx>>int32(31) != 0 { + return float64(Float64FromInt32(2)*_pio2_hi) + Float64FromFloat32(7.52316384526264e-37) + } + return Float64FromInt32(0) + } + return Float64FromInt32(0) / (x - x) + } + /* |x| < 0.5 */ + if ix < uint32(0x3fe00000) { + if ix <= uint32(0x3c600000) { /* |x| < 2**-57 */ + return _pio2_hi + Float64FromFloat32(7.52316384526264e-37) + } + return _pio2_hi - (x - (_pio2_lo - float64(x*_R(tls, float64(x*x))))) + } + /* x < -0.5 */ + if hx>>int32(31) != 0 { + z = float64((float64(1) + x) * float64(0.5)) + s = Xsqrt(tls, z) + w = float64(_R(tls, z)*s) - _pio2_lo + return float64(Float64FromInt32(2) * (_pio2_hi - (s + w))) + } + /* x > 0.5 */ + z = float64((float64(1) - x) * float64(0.5)) + s = Xsqrt(tls, z) + df = s + v1 = *(*Tuint64_t)(unsafe.Pointer(&df))>>Int32FromInt32(32)< %v", r) }() + } + var c, df, s, w, z float32 + var hx, ix, v1 Tuint32_t + _, _, _, _, _, _, _, _ = c, df, hx, ix, s, w, z, v1 + hx = *(*Tuint32_t)(unsafe.Pointer(&x)) + ix = hx & uint32(0x7fffffff) + /* |x| >= 1 or nan */ + if ix >= uint32(0x3f800000) { + if ix == uint32(0x3f800000) { + if hx>>int32(31) != 0 { + return float32(Float32FromInt32(2)*_pio2_hi1) + Float32FromFloat32(7.52316384526264e-37) + } + return Float32FromInt32(0) + } + return Float32FromInt32(0) / (x - x) + } + /* |x| < 0.5 */ + if ix < uint32(0x3f000000) { + if ix <= uint32(0x32800000) { /* |x| < 2**-26 */ + return _pio2_hi1 + Float32FromFloat32(7.52316384526264e-37) + } + return _pio2_hi1 - (x - (_pio2_lo1 - float32(x*_R1(tls, float32(x*x))))) + } + /* x < -0.5 */ + if hx>>int32(31) != 0 { + z = float32((Float32FromInt32(1) + x) * Float32FromFloat32(0.5)) + s = Xsqrtf(tls, z) + w = float32(_R1(tls, z)*s) - _pio2_lo1 + return float32(Float32FromInt32(2) * (_pio2_hi1 - (s + w))) + } + /* x > 0.5 */ + z = float32((Float32FromInt32(1) - x) * Float32FromFloat32(0.5)) + s = Xsqrtf(tls, z) + hx = *(*Tuint32_t)(unsafe.Pointer(&s)) + v1 = hx & uint32(0xfffff000) + df = *(*float32)(unsafe.Pointer(&v1)) + c = (z - float32(df*df)) / (s + df) + w = float32(_R1(tls, z)*s) + c + return float32(Float32FromInt32(2) * (df + w)) +} + +// C documentation +// +// /* acosh(x) = log(x + sqrt(x*x-1)) */ +func Xacosh(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e uint32 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _ = e + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + e = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + /* x < 1 domain error is handled in the called functions */ + if e < Uint32FromInt32(Int32FromInt32(0x3ff)+Int32FromInt32(1)) { + /* |x| < 2, up to 2ulp error in [1,1.125] */ + return Xlog1p(tls, x-Float64FromInt32(1)+Xsqrt(tls, float64((x-Float64FromInt32(1))*(x-Float64FromInt32(1)))+float64(Float64FromInt32(2)*(x-Float64FromInt32(1))))) + } + if e < Uint32FromInt32(Int32FromInt32(0x3ff)+Int32FromInt32(26)) { + /* |x| < 0x1p26 */ + return Xlog(tls, float64(Float64FromInt32(2)*x)-Float64FromInt32(1)/(x+Xsqrt(tls, float64(x*x)-Float64FromInt32(1)))) + } + /* |x| >= 0x1p26 or nan */ + return Xlog(tls, x) + float64(0.6931471805599453) +} + +// C documentation +// +// /* acosh(x) = log(x + sqrt(x*x-1)) */ +func Xacoshf(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var a Tuint32_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _ = a + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + a = *(*Tuint32_t)(unsafe.Pointer(bp)) & uint32(0x7fffffff) + if a < Uint32FromInt32(Int32FromInt32(0x3f800000)+Int32FromInt32(1)<= 0x1p12 or x <= -2 or nan */ + return Xlogf(tls, x) + Float32FromFloat32(0.6931471805599453) +} + +func Xacoshl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xacosh(tls, x) +} + +func Xacosl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xacos(tls, x) +} + +var _pio2_hi2 = float64(1.5707963267948966) /* 0x3FF921FB, 0x54442D18 */ +var _pio2_lo2 = float64(6.123233995736766e-17) /* 0x3C91A626, 0x33145C07 */ +/* coefficients for R(x^2) */ +var _pS02 = float64(0.16666666666666666) /* 0x3FC55555, 0x55555555 */ +var _pS12 = -Float64FromFloat64(0.3255658186224009) /* 0xBFD4D612, 0x03EB6F7D */ +var _pS22 = float64(0.20121253213486293) /* 0x3FC9C155, 0x0E884455 */ +var _pS31 = -Float64FromFloat64(0.04005553450067941) /* 0xBFA48228, 0xB5688F3B */ +var _pS41 = float64(0.0007915349942898145) /* 0x3F49EFE0, 0x7501B288 */ +var _pS51 = float64(3.479331075960212e-05) /* 0x3F023DE1, 0x0DFDF709 */ +var _qS12 = -Float64FromFloat64(2.403394911734414) /* 0xC0033A27, 0x1C8A2D4B */ +var _qS21 = float64(2.0209457602335057) /* 0x40002AE5, 0x9C598AC8 */ +var _qS31 = -Float64FromFloat64(0.6882839716054533) /* 0xBFE6066C, 0x1B8D0159 */ +var _qS41 = float64(0.07703815055590194) /* 0x3FB3B8C5, 0xB12E9282 */ + +func _R2(tls *TLS, z float64) (r float64) { + var p, q Tdouble_t + _, _ = p, q + p = Tdouble_t(z * (_pS02 + float64(z*(_pS12+float64(z*(_pS22+float64(z*(_pS31+float64(z*(_pS41+float64(z*_pS51))))))))))) + q = float64(1) + float64(z*(_qS12+float64(z*(_qS21+float64(z*(_qS31+float64(z*_qS41))))))) + return p / q +} + +func Xasin(tls *TLS, x float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var c, f, r, s, z float64 + var hx, ix, lx Tuint32_t + var v1 Tuint64_t + _, _, _, _, _, _, _, _, _ = c, f, hx, ix, lx, r, s, z, v1 + hx = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + ix = hx & uint32(0x7fffffff) + /* |x| >= 1 or nan */ + if ix >= uint32(0x3ff00000) { + lx = uint32(*(*Tuint64_t)(unsafe.Pointer(&x))) + if ix-uint32(0x3ff00000)|lx == uint32(0) { + /* asin(1) = +-pi/2 with inexact */ + return float64(x*_pio2_hi2) + Float64FromFloat32(7.52316384526264e-37) + } + return Float64FromInt32(0) / (x - x) + } + /* |x| < 0.5 */ + if ix < uint32(0x3fe00000) { + /* if 0x1p-1022 <= |x| < 0x1p-26, avoid raising underflow */ + if ix < uint32(0x3e500000) && ix >= uint32(0x00100000) { + return x + } + return x + float64(x*_R2(tls, float64(x*x))) + } + /* 1 > |x| >= 0.5 */ + z = float64((Float64FromInt32(1) - Xfabs(tls, x)) * float64(0.5)) + s = Xsqrt(tls, z) + r = _R2(tls, z) + if ix >= uint32(0x3fef3333) { /* if |x| > 0.975 */ + x = _pio2_hi2 - (float64(Float64FromInt32(2)*(s+float64(s*r))) - _pio2_lo2) + } else { + /* f+c = sqrt(z) */ + f = s + v1 = *(*Tuint64_t)(unsafe.Pointer(&f))>>Int32FromInt32(32)<>int32(31) != 0 { + return -x + } + return x +} + +var _pio2 = float64(1.5707963267948966) + +/* coefficients for R(x^2) */ +var _pS03 = float32(0.16666586697) +var _pS13 = float32(-Float64FromFloat64(0.042743422091)) +var _pS23 = float32(-Float64FromFloat64(0.008656363003)) +var _qS13 = float32(-Float64FromFloat64(0.7066296339)) + +func _R3(tls *TLS, z float32) (r float32) { + var p, q Tfloat_t + _, _ = p, q + p = Tfloat_t(z * (_pS03 + float32(z*(_pS13+float32(z*_pS23))))) + q = float64(Float32FromFloat32(1) + float32(z*_qS13)) + return float32(p / q) +} + +func Xasinf(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + var hx, ix Tuint32_t + var s float64 + var z float32 + _, _, _, _ = hx, ix, s, z + hx = *(*Tuint32_t)(unsafe.Pointer(&x)) + ix = hx & uint32(0x7fffffff) + if ix >= uint32(0x3f800000) { /* |x| >= 1 */ + if ix == uint32(0x3f800000) { /* |x| == 1 */ + return float32(float64(float64(x)*_pio2) + Float64FromFloat32(7.52316384526264e-37)) + } /* asin(+-1) = +-pi/2 with inexact */ + return Float32FromInt32(0) / (x - x) /* asin(|x|>1) is NaN */ + } + if ix < uint32(0x3f000000) { /* |x| < 0.5 */ + /* if 0x1p-126 <= |x| < 0x1p-12, avoid raising underflow */ + if ix < uint32(0x39800000) && ix >= uint32(0x00800000) { + return x + } + return x + float32(x*_R3(tls, float32(x*x))) + } + /* 1 > |x| >= 0.5 */ + z = float32((Float32FromInt32(1) - Xfabsf(tls, x)) * Float32FromFloat32(0.5)) + s = Xsqrt(tls, float64(z)) + x = float32(_pio2 - float64(Float64FromInt32(2)*(s+float64(s*float64(_R3(tls, z)))))) + if hx>>int32(31) != 0 { + return -x + } + return x +} + +// C documentation +// +// /* asinh(x) = sign(x)*log(|x|+sqrt(x*x+1)) ~= x - x^3/6 + o(x^5) */ +func Xasinh(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e, s uint32 + var y float32 + var y1, y2, v1 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _ = e, s, y, y1, y2, v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + e = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + s = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(63)) + /* |x| */ + *(*Tuint64_t)(unsafe.Pointer(bp)) &= Uint64FromInt32(-Int32FromInt32(1)) / Uint64FromInt32(2) + x3 = *(*float64)(unsafe.Pointer(bp)) + if e >= Uint32FromInt32(Int32FromInt32(0x3ff)+Int32FromInt32(26)) { + /* |x| >= 0x1p26 or inf or nan */ + x3 = Xlog(tls, x3) + float64(0.6931471805599453) + } else { + if e >= Uint32FromInt32(Int32FromInt32(0x3ff)+Int32FromInt32(1)) { + /* |x| >= 2 */ + x3 = Xlog(tls, float64(Float64FromInt32(2)*x3)+Float64FromInt32(1)/(Xsqrt(tls, float64(x3*x3)+Float64FromInt32(1))+x3)) + } else { + if e >= Uint32FromInt32(Int32FromInt32(0x3ff)-Int32FromInt32(26)) { + /* |x| >= 0x1p-26, up to 1.6ulp error in [0.125,0.5] */ + x3 = Xlog1p(tls, x3+float64(x3*x3)/(Xsqrt(tls, float64(x3*x3)+Float64FromInt32(1))+Float64FromInt32(1))) + } else { + /* |x| < 0x1p-26, raise inexact if x != 0 */ + if uint64(8) == uint64(4) { + y = float32(x3 + Float64FromFloat32(1.329227995784916e+36)) + } else { + if uint64(8) == uint64(8) { + y1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } else { + y2 = float64(x3 + Float64FromFloat32(1.329227995784916e+36)) + } + } + } + } + } + if s != 0 { + v1 = -x3 + } else { + v1 = x3 + } + return v1 +} + +// C documentation +// +// /* asinh(x) = sign(x)*log(|x|+sqrt(x*x+1)) ~= x - x^3/6 + o(x^5) */ +func Xasinhf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var i Tuint32_t + var s uint32 + var y, v1 float32 + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _ = i, s, y, y1, y2, v1 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + i = *(*Tuint32_t)(unsafe.Pointer(bp)) & uint32(0x7fffffff) + s = *(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(31) + /* |x| */ + *(*Tuint32_t)(unsafe.Pointer(bp)) = i + x3 = *(*float32)(unsafe.Pointer(bp)) + if i >= Uint32FromInt32(Int32FromInt32(0x3f800000)+Int32FromInt32(12)<= 0x1p12 or inf or nan */ + x3 = Xlogf(tls, x3) + Float32FromFloat32(0.6931471805599453) + } else { + if i >= Uint32FromInt32(Int32FromInt32(0x3f800000)+Int32FromInt32(1)<= 2 */ + x3 = Xlogf(tls, float32(Float32FromInt32(2)*x3)+Float32FromInt32(1)/(Xsqrtf(tls, float32(x3*x3)+Float32FromInt32(1))+x3)) + } else { + if i >= Uint32FromInt32(Int32FromInt32(0x3f800000)-Int32FromInt32(12)<= 0x1p-12, up to 1.6ulp error in [0.125,0.5] */ + x3 = Xlog1pf(tls, x3+float32(x3*x3)/(Xsqrtf(tls, float32(x3*x3)+Float32FromInt32(1))+Float32FromInt32(1))) + } else { + /* |x| < 0x1p-12, raise inexact if x!=0 */ + if uint64(4) == uint64(4) { + y = x3 + Float32FromFloat32(1.329227995784916e+36) + } else { + if uint64(4) == uint64(8) { + y1 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } else { + y2 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } + } + } + } + } + if s != 0 { + v1 = -x3 + } else { + v1 = x3 + } + return v1 +} + +func Xasinhl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xasinh(tls, x) +} + +func Xasinl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xasin(tls, x) +} + +var _atanhi = [4]float64{ + 0: float64(0.4636476090008061), + 1: float64(0.7853981633974483), + 2: float64(0.982793723247329), + 3: float64(1.5707963267948966), +} + +var _atanlo = [4]float64{ + 0: float64(2.2698777452961687e-17), + 1: float64(3.061616997868383e-17), + 2: float64(1.3903311031230998e-17), + 3: float64(6.123233995736766e-17), +} + +var _aT = [11]float64{ + 0: float64(0.3333333333333293), + 1: -Float64FromFloat64(0.19999999999876483), + 2: float64(0.14285714272503466), + 3: -Float64FromFloat64(0.11111110405462356), + 4: float64(0.09090887133436507), + 5: -Float64FromFloat64(0.0769187620504483), + 6: float64(0.06661073137387531), + 7: -Float64FromFloat64(0.058335701337905735), + 8: float64(0.049768779946159324), + 9: -Float64FromFloat64(0.036531572744216916), + 10: float64(0.016285820115365782), +} + +func Xatan(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var id int32 + var ix, sign Tuint32_t + var s1, s2, w, z, v3 Tdouble_t + var y float32 + var y1, y2 float64 + var v1 uint64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _, _, _, _, _, _, _, _, _, _, _, _ = id, ix, s1, s2, sign, w, y, y1, y2, z, v1, v3 + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x3)) >> int32(32)) + sign = ix >> int32(31) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x44100000) { /* if |x| >= 2^66 */ + *(*float64)(unsafe.Pointer(bp)) = x3 + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 + _2: + if BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var __u1, __u2 Tuint64_t + var ix, iy, lx, ly, m Tuint32_t + var z, v6 float64 + var v1, v3 uint64 + var v5 bool + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _, _, _, _, _, _, _, _, _, _, _, _ = __u1, __u2, ix, iy, lx, ly, m, z, v1, v3, v5, v6 + *(*float64)(unsafe.Pointer(bp)) = x + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + ; + if v5 = BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<> int32(32)) + lx = uint32(__u1) + __u2 = *(*Tuint64_t)(unsafe.Pointer(&y)) + iy = uint32(__u2 >> int32(32)) + ly = uint32(__u2) + if ix-uint32(0x3ff00000)|lx == uint32(0) { /* x = 1.0 */ + return Xatan(tls, y) + } + m = iy>>Int32FromInt32(31)&uint32(1) | ix>>Int32FromInt32(30)&uint32(2) /* 2*sign(x)+sign(y) */ + ix = ix & uint32(0x7fffffff) + iy = iy & uint32(0x7fffffff) + /* when y = 0 */ + if iy|ly == uint32(0) { + switch m { + case uint32(0): + fallthrough + case uint32(1): + return y /* atan(+-0,+anything)=+-0 */ + case uint32(2): + return _pi /* atan(+0,-anything) = pi */ + case uint32(3): + return -_pi /* atan(-0,-anything) =-pi */ + } + } + /* when x = 0 */ + if ix|lx == uint32(0) { + if m&uint32(1) != 0 { + v6 = -_pi / Float64FromInt32(2) + } else { + v6 = _pi / Float64FromInt32(2) + } + return v6 + } + /* when x is INF */ + if ix == uint32(0x7ff00000) { + if iy == uint32(0x7ff00000) { + switch m { + case uint32(0): + return _pi / Float64FromInt32(4) /* atan(+INF,+INF) */ + case uint32(1): + return -_pi / Float64FromInt32(4) /* atan(-INF,+INF) */ + case uint32(2): + return float64(Float64FromInt32(3)*_pi) / Float64FromInt32(4) /* atan(+INF,-INF) */ + case uint32(3): + return float64(float64(-Int32FromInt32(3))*_pi) / Float64FromInt32(4) /* atan(-INF,-INF) */ + } + } else { + switch m { + case uint32(0): + return float64(0) /* atan(+...,+INF) */ + case uint32(1): + return -Float64FromFloat64(0) /* atan(-...,+INF) */ + case uint32(2): + return _pi /* atan(+...,-INF) */ + case uint32(3): + return -_pi /* atan(-...,-INF) */ + } + } + } + /* |y/x| > 0x1p64 */ + if ix+Uint32FromInt32(Int32FromInt32(64)< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ix, iy, m Tuint32_t + var z, v6 float32 + var v1, v3 uint32 + var v5 bool + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _, _, _, _, _, _, _, _ = ix, iy, m, z, v1, v3, v5, v6 + *(*float32)(unsafe.Pointer(bp)) = x + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + ; + if v5 = BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0; !v5 { + *(*float32)(unsafe.Pointer(bp)) = y + v3 = *(*uint32)(unsafe.Pointer(bp)) + goto _4 + _4: + } + if v5 || BoolInt32(v3&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return x + y + } + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + iy = *(*Tuint32_t)(unsafe.Pointer(&y)) + if ix == uint32(0x3f800000) { /* x=1.0 */ + return Xatanf(tls, y) + } + m = iy>>Int32FromInt32(31)&uint32(1) | ix>>Int32FromInt32(30)&uint32(2) /* 2*sign(x)+sign(y) */ + ix = ix & uint32(0x7fffffff) + iy = iy & uint32(0x7fffffff) + /* when y = 0 */ + if iy == uint32(0) { + switch m { + case uint32(0): + fallthrough + case uint32(1): + return y /* atan(+-0,+anything)=+-0 */ + case uint32(2): + return _pi1 /* atan(+0,-anything) = pi */ + case uint32(3): + return -_pi1 /* atan(-0,-anything) =-pi */ + } + } + /* when x = 0 */ + if ix == uint32(0) { + if m&uint32(1) != 0 { + v6 = -_pi1 / Float32FromInt32(2) + } else { + v6 = _pi1 / Float32FromInt32(2) + } + return v6 + } + /* when x is INF */ + if ix == uint32(0x7f800000) { + if iy == uint32(0x7f800000) { + switch m { + case uint32(0): + return _pi1 / Float32FromInt32(4) /* atan(+INF,+INF) */ + case uint32(1): + return -_pi1 / Float32FromInt32(4) /* atan(-INF,+INF) */ + case uint32(2): + return float32(Float32FromInt32(3)*_pi1) / Float32FromInt32(4) /*atan(+INF,-INF)*/ + case uint32(3): + return float32(float32(-Int32FromInt32(3))*_pi1) / Float32FromInt32(4) /*atan(-INF,-INF)*/ + } + } else { + switch m { + case uint32(0): + return Float32FromFloat32(0) /* atan(+...,+INF) */ + case uint32(1): + return -Float32FromFloat32(0) /* atan(-...,+INF) */ + case uint32(2): + return _pi1 /* atan(+...,-INF) */ + case uint32(3): + return -_pi1 /* atan(-...,-INF) */ + } + } + } + /* |y/x| > 0x1p26 */ + if ix+Uint32FromInt32(Int32FromInt32(26)< %v", r) }() + } + return Xatan2(tls, y, x) +} + +var _atanhi1 = [4]float32{ + 0: float32(0.46364760399), + 1: float32(0.78539812565), + 2: float32(0.98279368877), + 3: float32(1.5707962513), +} + +var _atanlo1 = [4]float32{ + 0: float32(5.012158244e-09), + 1: float32(3.7748947079e-08), + 2: float32(3.447321717e-08), + 3: float32(7.5497894159e-08), +} + +var _aT1 = [5]float32{ + 0: float32(0.33333328366), + 1: float32(-Float64FromFloat64(0.19999158382)), + 2: float32(0.14253635705), + 3: float32(-Float64FromFloat64(0.10648017377)), + 4: float32(0.061687607318), +} + +func Xatanf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var id int32 + var ix, sign Tuint32_t + var s1, s2, w, z, v3 Tfloat_t + var y float32 + var y1, y2 float64 + var v1 uint32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _, _, _, _, _, _, _, _, _, _, _, _ = id, ix, s1, s2, sign, w, y, y1, y2, z, v1, v3 + ix = *(*Tuint32_t)(unsafe.Pointer(&x3)) + sign = ix >> int32(31) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x4c800000) { /* if |x| >= 2**26 */ + *(*float32)(unsafe.Pointer(bp)) = x3 + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 + _2: + if BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return x3 + } + z = float64(_atanhi1[int32(3)] + Float32FromFloat32(7.52316384526264e-37)) + if sign != 0 { + v3 = -z + } else { + v3 = z + } + return float32(v3) + } + if ix < uint32(0x3ee00000) { /* |x| < 0.4375 */ + if ix < uint32(0x39800000) { /* |x| < 2**-12 */ + if ix < uint32(0x00800000) { + /* raise underflow for subnormal x */ + if uint64(4) == uint64(4) { + y = float32(x3 * x3) + } else { + if uint64(4) == uint64(8) { + y1 = float64(x3 * x3) + } else { + y2 = float64(x3 * x3) + } + } + } + return x3 + } + id = -int32(1) + } else { + x3 = Xfabsf(tls, x3) + if ix < uint32(0x3f980000) { /* |x| < 1.1875 */ + if ix < uint32(0x3f300000) { /* 7/16 <= |x| < 11/16 */ + id = 0 + x3 = (float32(Float32FromFloat32(2)*x3) - Float32FromFloat32(1)) / (Float32FromFloat32(2) + x3) + } else { /* 11/16 <= |x| < 19/16 */ + id = int32(1) + x3 = (x3 - Float32FromFloat32(1)) / (x3 + Float32FromFloat32(1)) + } + } else { + if ix < uint32(0x401c0000) { /* |x| < 2.4375 */ + id = int32(2) + x3 = (x3 - Float32FromFloat32(1.5)) / (Float32FromFloat32(1) + float32(Float32FromFloat32(1.5)*x3)) + } else { /* 2.4375 <= |x| < 2**26 */ + id = int32(3) + x3 = -Float32FromFloat32(1) / x3 + } + } + } + /* end of argument reduction */ + z = Tfloat_t(x3 * x3) + w = Tfloat_t(z * z) + /* break sum from i=0 to 10 aT[i]z**(i+1) into odd and even poly */ + s1 = Tfloat_t(z * (float64(_aT1[0]) + Tfloat_t(w*(float64(_aT1[int32(2)])+Tfloat_t(w*float64(_aT1[int32(4)])))))) + s2 = Tfloat_t(w * (float64(_aT1[int32(1)]) + Tfloat_t(w*float64(_aT1[int32(3)])))) + if id < 0 { + return float32(float64(x3) - Tfloat_t(float64(x3)*(s1+s2))) + } + z = float64(_atanhi1[id]) - (Tfloat_t(float64(x3)*(s1+s2)) - float64(_atanlo1[id]) - float64(x3)) + if sign != 0 { + v3 = -z + } else { + v3 = z + } + return float32(v3) +} + +// C documentation +// +// /* atanh(x) = log((1+x)/(1-x))/2 = log1p(2x/(1-x))/2 ~= x + x^3/3 + o(x^5) */ +func Xatanh(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e, s uint32 + var y float32 + var y1, y2 float64 + var y3, v1 Tdouble_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _ = e, s, y, y1, y2, y3, v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + e = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + s = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(63)) + /* |x| */ + *(*Tuint64_t)(unsafe.Pointer(bp)) &= Uint64FromInt32(-Int32FromInt32(1)) / Uint64FromInt32(2) + y3 = *(*float64)(unsafe.Pointer(bp)) + if e < Uint32FromInt32(Int32FromInt32(0x3ff)-Int32FromInt32(1)) { + if e < Uint32FromInt32(Int32FromInt32(0x3ff)-Int32FromInt32(32)) { + /* handle underflow */ + if e == uint32(0) { + if uint64(4) == uint64(4) { + y = float32(y3) + } else { + if uint64(4) == uint64(8) { + y1 = float64(float32(y3)) + } else { + y2 = float64(float32(y3)) + } + } + } + } else { + /* |x| < 0.5, up to 1.7ulp error */ + y3 = Tdouble_t(float64(0.5) * Xlog1p(tls, Tdouble_t(Float64FromInt32(2)*y3)+Tdouble_t(Tdouble_t(Float64FromInt32(2)*y3)*y3)/(Float64FromInt32(1)-y3))) + } + } else { + /* avoid overflow */ + y3 = Tdouble_t(float64(0.5) * Xlog1p(tls, float64(Float64FromInt32(2)*(y3/(Float64FromInt32(1)-y3))))) + } + if s != 0 { + v1 = -y3 + } else { + v1 = y3 + } + return v1 +} + +// C documentation +// +// /* atanh(x) = log((1+x)/(1-x))/2 = log1p(2x/(1-x))/2 ~= x + x^3/3 + o(x^5) */ +func Xatanhf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var s uint32 + var y float32 + var y1, y2 float64 + var y3, v1 Tfloat_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _ = s, y, y1, y2, y3, v1 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + s = *(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(31) + /* |x| */ + *(*Tuint32_t)(unsafe.Pointer(bp)) &= uint32(0x7fffffff) + y3 = float64(*(*float32)(unsafe.Pointer(bp))) + if *(*Tuint32_t)(unsafe.Pointer(bp)) < Uint32FromInt32(Int32FromInt32(0x3f800000)-Int32FromInt32(1)< %v", r) }() + } + return Xatanh(tls, x) +} + +func Xatanl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xatan(tls, x) +} + +var _B1 = uint32(715094163) /* B1 = (1023-1023/3-0.03306235651)*2**20 */ +var _B2 = uint32(696219795) /* B2 = (1023-1023/3-54/3-0.03306235651)*2**20 */ + +// C documentation +// +// /* |1/cbrt(x) - p(x)| < 2**-23.5 (~[-7.93e-8, 7.929e-8]). */ + +var _P0 = float64(1.87595182427177) /* 0x3ffe03e6, 0x0f61e692 */ +var _P1 = -Float64FromFloat64(1.8849797954337717) /* 0xbffe28e0, 0x92f02420 */ +var _P2 = float64(1.6214297201053545) /* 0x3ff9f160, 0x4a49d6c2 */ +var _P3 = -Float64FromFloat64(0.758397934778766) /* 0xbfe844cb, 0xbee751d9 */ +var _P4 = float64(0.14599619288661245) /* 0x3fc2b000, 0xd4e4edd7 */ + +func Xcbrt(tls *TLS, x float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var hx Tuint32_t + var r, s, t, w Tdouble_t + var v1 uintptr + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _ = hx, r, s, t, w, v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + hx = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32) & uint64(0x7fffffff)) + if hx >= uint32(0x7ff00000) { /* cbrt(NaN,INF) is itself */ + return x + x + } + /* + * Rough cbrt to 5 bits: + * cbrt(2**e*(1+m) ~= 2**(e/3)*(1+(e%3+m)/3) + * where e is integral and >= 0, m is real and in [0, 1), and "/" and + * "%" are integer division and modulus with rounding towards minus + * infinity. The RHS is always >= the LHS and has a maximum relative + * error of about 1 in 16. Adding a bias of -0.03306235651 to the + * (e%3+m)/3 term reduces the error to about 1 in 32. With the IEEE + * floating point representation, for finite positive normal values, + * ordinary integer divison of the value in bits magically gives + * almost exactly the RHS of the above provided we first subtract the + * exponent bias (1023 for doubles) and later add it back. We do the + * subtraction virtually to keep e >= 0 so that ordinary integer + * division rounds towards minus infinity; this is also efficient. + */ + if hx < uint32(0x00100000) { /* zero or subnormal? */ + *(*float64)(unsafe.Pointer(bp)) = float64(x * float64(1.8014398509481984e+16)) + hx = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32) & uint64(0x7fffffff)) + if hx == uint32(0) { + return x + } /* cbrt(0) is itself */ + hx = hx/uint32(3) + _B2 + } else { + hx = hx/uint32(3) + _B1 + } + v1 = bp + *(*Tuint64_t)(unsafe.Pointer(v1)) = Tuint64_t(*(*Tuint64_t)(unsafe.Pointer(v1)) & (Uint64FromUint64(1) << Int32FromInt32(63))) + *(*Tuint64_t)(unsafe.Pointer(bp)) |= uint64(hx) << int32(32) + t = *(*float64)(unsafe.Pointer(bp)) + /* + * New cbrt to 23 bits: + * cbrt(x) = t*cbrt(x/t**3) ~= t*P(t**3/x) + * where P(r) is a polynomial of degree 4 that approximates 1/cbrt(r) + * to within 2**-23.5 when |r - 1| < 1/10. The rough approximation + * has produced t such than |t/cbrt(x) - 1| ~< 1/32, and cubing this + * gives us bounds for r = t**3/x. + * + * Try to optimize for parallel evaluation as in __tanf.c. + */ + r = Tdouble_t(Tdouble_t(t*t) * (t / x)) + t = Tdouble_t(t * (_P0 + float64(r*(_P1+float64(r*_P2))) + float64(Tdouble_t(Tdouble_t(r*r)*r)*(_P3+float64(r*_P4))))) + /* + * Round t away from zero to 23 bits (sloppily except for ensuring that + * the result is larger in magnitude than cbrt(x) but not much more than + * 2 23-bit ulps larger). With rounding towards zero, the error bound + * would be ~5/6 instead of ~4/6. With a maximum error of 2 23-bit ulps + * in the rounded t, the infinite-precision error in the Newton + * approximation barely affects third digit in the final error + * 0.667; the error in the rounded t can be up to about 3 23-bit ulps + * before the final error is larger than 0.667 ulps. + */ + *(*float64)(unsafe.Pointer(bp)) = t + *(*Tuint64_t)(unsafe.Pointer(bp)) = uint64(*(*Tuint64_t)(unsafe.Pointer(bp))+Uint64FromUint32(0x80000000)) & uint64(0xffffffffc0000000) + t = *(*float64)(unsafe.Pointer(bp)) + /* one step Newton iteration to 53 bits with error < 0.667 ulps */ + s = Tdouble_t(t * t) /* t*t is exact */ + r = x / s /* error <= 0.5 ulps; |r| < |t| */ + w = t + t /* t+t is exact */ + r = (r - t) / (w + r) /* r-t is exact; w+r ~= 3*t */ + t = t + Tdouble_t(t*r) /* error <= 0.5 + 0.5/3 + epsilon */ + return t +} + +var _B11 = uint32(709958130) /* B1 = (127-127.0/3-0.03306235651)*2**23 */ +var _B21 = uint32(642849266) /* B2 = (127-127.0/3-24/3-0.03306235651)*2**23 */ + +func Xcbrtf(tls *TLS, x float32) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var T, r Tdouble_t + var hx Tuint32_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _ = T, hx, r + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + hx = *(*Tuint32_t)(unsafe.Pointer(bp)) & uint32(0x7fffffff) + if hx >= uint32(0x7f800000) { /* cbrt(NaN,INF) is itself */ + return x + x + } + /* rough cbrt to 5 bits */ + if hx < uint32(0x00800000) { /* zero or subnormal? */ + if hx == uint32(0) { + return x + } /* cbrt(+-0) is itself */ + *(*float32)(unsafe.Pointer(bp)) = float32(x * Float32FromFloat32(1.6777216e+07)) + hx = *(*Tuint32_t)(unsafe.Pointer(bp)) & uint32(0x7fffffff) + hx = hx/uint32(3) + _B21 + } else { + hx = hx/uint32(3) + _B11 + } + *(*Tuint32_t)(unsafe.Pointer(bp)) &= uint32(0x80000000) + *(*Tuint32_t)(unsafe.Pointer(bp)) |= hx + /* + * First step Newton iteration (solving t*t-x/t == 0) to 16 bits. In + * double precision so that its terms can be arranged for efficiency + * without causing overflow or underflow. + */ + T = float64(*(*float32)(unsafe.Pointer(bp))) + r = Tdouble_t(Tdouble_t(T*T) * T) + T = Tdouble_t(T*(float64(x)+float64(x)+r)) / (float64(x) + r + r) + /* + * Second step Newton iteration to 47 bits. In double precision for + * efficiency and accuracy. + */ + r = Tdouble_t(Tdouble_t(T*T) * T) + T = Tdouble_t(T*(float64(x)+float64(x)+r)) / (float64(x) + r + r) + /* rounding to 24 bits is perfect in round-to-nearest mode */ + return float32(T) +} + +func Xcbrtl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xcbrt(tls, x) +} + +const DBL_EPSILON5 = 2.220446049250313e-16 + +var _toint2 = Float64FromInt32(1) / Float64FromFloat64(2.220446049250313e-16) + +func Xceil(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e int32 + var y float32 + var y1, y2, v1 float64 + var y3 Tdouble_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _ = e, y, y1, y2, y3, v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + e = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + if e >= Int32FromInt32(0x3ff)+Int32FromInt32(52) || x3 == Float64FromInt32(0) { + return x3 + } + /* y = int(x) - x, where int(x) is an integer neighbor of x */ + if *(*Tuint64_t)(unsafe.Pointer(bp))>>int32(63) != 0 { + y3 = x3 - _toint2 + _toint2 - x3 + } else { + y3 = x3 + _toint2 - _toint2 - x3 + } + /* special case because of non-nearest rounding modes */ + if e <= Int32FromInt32(0x3ff)-Int32FromInt32(1) { + if uint64(8) == uint64(4) { + y = float32(y3) + } else { + if uint64(8) == uint64(8) { + y1 = y3 + } else { + y2 = y3 + } + } + if *(*Tuint64_t)(unsafe.Pointer(bp))>>int32(63) != 0 { + v1 = -Float64FromFloat64(0) + } else { + v1 = Float64FromInt32(1) + } + return v1 + } + if y3 < Float64FromInt32(0) { + return x3 + y3 + Float64FromInt32(1) + } + return x3 + y3 +} + +const DBL_EPSILON6 = 0 + +func Xceilf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e int32 + var m Tuint32_t + var y float32 + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _ = e, m, y, y1, y2 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + e = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp))>>Int32FromInt32(23)&Uint32FromInt32(0xff)) - int32(0x7f) + if e >= int32(23) { + return x3 + } + if e >= 0 { + m = Uint32FromInt32(int32(0x007fffff) >> e) + if *(*Tuint32_t)(unsafe.Pointer(bp))&m == uint32(0) { + return x3 + } + if uint64(4) == uint64(4) { + y = x3 + Float32FromFloat32(1.329227995784916e+36) + } else { + if uint64(4) == uint64(8) { + y1 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } else { + y2 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } + } + if *(*Tuint32_t)(unsafe.Pointer(bp))>>int32(31) == uint32(0) { + *(*Tuint32_t)(unsafe.Pointer(bp)) += m + } + *(*Tuint32_t)(unsafe.Pointer(bp)) &= ^m + } else { + if uint64(4) == uint64(4) { + y = x3 + Float32FromFloat32(1.329227995784916e+36) + } else { + if uint64(4) == uint64(8) { + y1 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } else { + y2 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } + } + if *(*Tuint32_t)(unsafe.Pointer(bp))>>int32(31) != 0 { + *(*float32)(unsafe.Pointer(bp)) = float32(-Float64FromFloat64(0)) + } else { + if *(*Tuint32_t)(unsafe.Pointer(bp))< %v", r) }() + } + return Xceil(tls, x) +} + +func Xcopysign(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uintptr + var _ /* ux at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + var _ /* uy at bp+8 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _ = v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp + 8)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp + 8)) = y + v1 = bp + *(*Tuint64_t)(unsafe.Pointer(v1)) = Tuint64_t(*(*Tuint64_t)(unsafe.Pointer(v1)) & (-Uint64FromUint64(1) / Uint64FromInt32(2))) + v1 = bp + *(*Tuint64_t)(unsafe.Pointer(v1)) = Tuint64_t(*(*Tuint64_t)(unsafe.Pointer(v1)) | *(*Tuint64_t)(unsafe.Pointer(bp + 8))&(Uint64FromUint64(1)< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* ux at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + var _ /* uy at bp+4 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp + 4)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp + 4)) = y + *(*Tuint32_t)(unsafe.Pointer(bp)) &= uint32(0x7fffffff) + *(*Tuint32_t)(unsafe.Pointer(bp)) |= *(*Tuint32_t)(unsafe.Pointer(bp + 4)) & uint32(0x80000000) + return *(*float32)(unsafe.Pointer(bp)) +} + +func Xcopysignl(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xcopysign(tls, x, y) +} + +func Xcos(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ix Tuint32_t + var n uint32 + var y float32 + var y1, y2 float64 + var _ /* y at bp+0 */ [2]float64 + _, _, _, _, _ = ix, n, y, y1, y2 + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x3)) >> int32(32)) + ix = ix & uint32(0x7fffffff) + /* |x| ~< pi/4 */ + if ix <= uint32(0x3fe921fb) { + if ix < uint32(0x3e46a09e) { /* |x| < 2**-27 * sqrt(2) */ + /* raise inexact if x!=0 */ + if uint64(8) == uint64(4) { + y = float32(x3 + Float64FromFloat32(1.329227995784916e+36)) + } else { + if uint64(8) == uint64(8) { + y1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } else { + y2 = float64(x3 + Float64FromFloat32(1.329227995784916e+36)) + } + } + return float64(1) + } + return X__cos(tls, x3, Float64FromInt32(0)) + } + /* cos(Inf or NaN) is NaN */ + if ix >= uint32(0x7ff00000) { + return x3 - x3 + } + /* argument reduction */ + n = Uint32FromInt32(X__rem_pio2(tls, x3, bp)) + switch n & Uint32FromInt32(3) { + case uint32(0): + return X__cos(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)]) + case uint32(1): + return -X__sin(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)], int32(1)) + case uint32(2): + return -X__cos(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)]) + default: + return X__sin(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)], int32(1)) + } + return r +} + +const M_PI_23 = 1.5707963267948966 + +// C documentation +// +// /* Small multiples of pi/2 rounded to double precision. */ + +var _c1pio2 = float64(Float64FromInt32(1) * Float64FromFloat64(1.5707963267948966)) /* 0x3FF921FB, 0x54442D18 */ +var _c2pio2 = float64(Float64FromInt32(2) * Float64FromFloat64(1.5707963267948966)) /* 0x400921FB, 0x54442D18 */ +var _c3pio2 = float64(Float64FromInt32(3) * Float64FromFloat64(1.5707963267948966)) /* 0x4012D97C, 0x7F3321D2 */ +var _c4pio2 = float64(Float64FromInt32(4) * Float64FromFloat64(1.5707963267948966)) /* 0x401921FB, 0x54442D18 */ + +func Xcosf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ix Tuint32_t + var n, sign uint32 + var y float32 + var y1, y2, v1 float64 + var _ /* y at bp+0 */ float64 + _, _, _, _, _, _, _ = ix, n, sign, y, y1, y2, v1 + ix = *(*Tuint32_t)(unsafe.Pointer(&x3)) + sign = ix >> int32(31) + ix = ix & uint32(0x7fffffff) + if ix <= uint32(0x3f490fda) { /* |x| ~<= pi/4 */ + if ix < uint32(0x39800000) { /* |x| < 2**-12 */ + /* raise inexact if x != 0 */ + if uint64(4) == uint64(4) { + y = x3 + Float32FromFloat32(1.329227995784916e+36) + } else { + if uint64(4) == uint64(8) { + y1 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } else { + y2 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } + } + return Float32FromFloat32(1) + } + return X__cosdf(tls, float64(x3)) + } + if ix <= uint32(0x407b53d1) { /* |x| ~<= 5*pi/4 */ + if ix > uint32(0x4016cbe3) { /* |x| ~> 3*pi/4 */ + if sign != 0 { + v1 = float64(x3) + _c2pio2 + } else { + v1 = float64(x3) - _c2pio2 + } + return -X__cosdf(tls, v1) + } else { + if sign != 0 { + return X__sindf(tls, float64(x3)+_c1pio2) + } else { + return X__sindf(tls, _c1pio2-float64(x3)) + } + } + } + if ix <= uint32(0x40e231d5) { /* |x| ~<= 9*pi/4 */ + if ix > uint32(0x40afeddf) { /* |x| ~> 7*pi/4 */ + if sign != 0 { + v1 = float64(x3) + _c4pio2 + } else { + v1 = float64(x3) - _c4pio2 + } + return X__cosdf(tls, v1) + } else { + if sign != 0 { + return X__sindf(tls, float64(-x3)-_c3pio2) + } else { + return X__sindf(tls, float64(x3)-_c3pio2) + } + } + } + /* cos(Inf or NaN) is NaN */ + if ix >= uint32(0x7f800000) { + return x3 - x3 + } + /* general argument reduction needed */ + n = Uint32FromInt32(X__rem_pio2f(tls, x3, bp)) + switch n & Uint32FromInt32(3) { + case uint32(0): + return X__cosdf(tls, **(**float64)(__ccgo_up(bp))) + case uint32(1): + return X__sindf(tls, -**(**float64)(__ccgo_up(bp))) + case uint32(2): + return -X__cosdf(tls, **(**float64)(__ccgo_up(bp))) + default: + return X__sindf(tls, **(**float64)(__ccgo_up(bp))) + } + return r +} + +const M_PI_24 = 0 + +// C documentation +// +// /* cosh(x) = (exp(x) + 1/exp(x))/2 +// * = 1 + 0.5*(exp(x)-1)*(exp(x)-1)/exp(x) +// * = 1 + x*x/2 + o(x^4) +// */ +func Xcosh(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var t, y1, y2 float64 + var w Tuint32_t + var y float32 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _ = t, w, y, y1, y2 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + /* |x| */ + *(*Tuint64_t)(unsafe.Pointer(bp)) &= Uint64FromInt32(-Int32FromInt32(1)) / Uint64FromInt32(2) + x3 = *(*float64)(unsafe.Pointer(bp)) + w = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32)) + /* |x| < log(2) */ + if w < uint32(0x3fe62e42) { + if w < Uint32FromInt32(Int32FromInt32(0x3ff00000)-Int32FromInt32(26)<log(0x1p26) then the 1/t is not needed */ + return float64(float64(0.5) * (t + Float64FromInt32(1)/t)) + } + /* |x| > log(DBL_MAX) or nan */ + /* note: the result is stored to handle overflow */ + t = X__expo2(tls, x3, float64(1)) + return t +} + +func Xcoshf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var t, y float32 + var w Tuint32_t + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _ = t, w, y, y1, y2 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + /* |x| */ + *(*Tuint32_t)(unsafe.Pointer(bp)) &= uint32(0x7fffffff) + x3 = *(*float32)(unsafe.Pointer(bp)) + w = *(*Tuint32_t)(unsafe.Pointer(bp)) + /* |x| < log(2) */ + if w < uint32(0x3f317217) { + if w < Uint32FromInt32(Int32FromInt32(0x3f800000)-Int32FromInt32(12)< log(FLT_MAX) or nan */ + t = X__expo2f(tls, x3, Float32FromFloat32(1)) + return t +} + +func Xcoshl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xcosh(tls, x) +} + +func Xcosl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xcos(tls, x) +} + +var _erx = float64(0.8450629115104675) /* 0x3FEB0AC1, 0x60000000 */ +/* + * Coefficients for approximation to erf on [0,0.84375] + */ +var _efx8 = float64(1.0270333367641007) /* 0x3FF06EBA, 0x8214DB69 */ +var _pp0 = float64(0.12837916709551256) /* 0x3FC06EBA, 0x8214DB68 */ +var _pp1 = -Float64FromFloat64(0.3250421072470015) /* 0xBFD4CD7D, 0x691CB913 */ +var _pp2 = -Float64FromFloat64(0.02848174957559851) /* 0xBF9D2A51, 0xDBD7194F */ +var _pp3 = -Float64FromFloat64(0.005770270296489442) /* 0xBF77A291, 0x236668E4 */ +var _pp4 = -Float64FromFloat64(2.3763016656650163e-05) /* 0xBEF8EAD6, 0x120016AC */ +var _qq1 = float64(0.39791722395915535) /* 0x3FD97779, 0xCDDADC09 */ +var _qq2 = float64(0.0650222499887673) /* 0x3FB0A54C, 0x5536CEBA */ +var _qq3 = float64(0.005081306281875766) /* 0x3F74D022, 0xC4D36B0F */ +var _qq4 = float64(0.00013249473800432164) /* 0x3F215DC9, 0x221C1A10 */ +var _qq5 = -Float64FromFloat64(3.960228278775368e-06) /* 0xBED09C43, 0x42A26120 */ +/* + * Coefficients for approximation to erf in [0.84375,1.25] + */ +var _pa0 = -Float64FromFloat64(0.0023621185607526594) /* 0xBF6359B8, 0xBEF77538 */ +var _pa1 = float64(0.41485611868374833) /* 0x3FDA8D00, 0xAD92B34D */ +var _pa2 = -Float64FromFloat64(0.3722078760357013) /* 0xBFD7D240, 0xFBB8C3F1 */ +var _pa3 = float64(0.31834661990116175) /* 0x3FD45FCA, 0x805120E4 */ +var _pa4 = -Float64FromFloat64(0.11089469428239668) /* 0xBFBC6398, 0x3D3E28EC */ +var _pa5 = float64(0.035478304325618236) /* 0x3FA22A36, 0x599795EB */ +var _pa6 = -Float64FromFloat64(0.002166375594868791) /* 0xBF61BF38, 0x0A96073F */ +var _qa1 = float64(0.10642088040084423) /* 0x3FBB3E66, 0x18EEE323 */ +var _qa2 = float64(0.540397917702171) /* 0x3FE14AF0, 0x92EB6F33 */ +var _qa3 = float64(0.07182865441419627) /* 0x3FB2635C, 0xD99FE9A7 */ +var _qa4 = float64(0.12617121980876164) /* 0x3FC02660, 0xE763351F */ +var _qa5 = float64(0.01363708391202905) /* 0x3F8BEDC2, 0x6B51DD1C */ +var _qa6 = float64(0.011984499846799107) /* 0x3F888B54, 0x5735151D */ +/* + * Coefficients for approximation to erfc in [1.25,1/0.35] + */ +var _ra0 = -Float64FromFloat64(0.009864944034847148) /* 0xBF843412, 0x600D6435 */ +var _ra1 = -Float64FromFloat64(0.6938585727071818) /* 0xBFE63416, 0xE4BA7360 */ +var _ra2 = -Float64FromFloat64(10.558626225323291) /* 0xC0251E04, 0x41B0E726 */ +var _ra3 = -Float64FromFloat64(62.375332450326006) /* 0xC04F300A, 0xE4CBA38D */ +var _ra4 = -Float64FromFloat64(162.39666946257347) /* 0xC0644CB1, 0x84282266 */ +var _ra5 = -Float64FromFloat64(184.60509290671104) /* 0xC067135C, 0xEBCCABB2 */ +var _ra6 = -Float64FromFloat64(81.2874355063066) /* 0xC0545265, 0x57E4D2F2 */ +var _ra7 = -Float64FromFloat64(9.814329344169145) /* 0xC023A0EF, 0xC69AC25C */ +var _sa1 = float64(19.651271667439257) /* 0x4033A6B9, 0xBD707687 */ +var _sa2 = float64(137.65775414351904) /* 0x4061350C, 0x526AE721 */ +var _sa3 = float64(434.56587747522923) /* 0x407B290D, 0xD58A1A71 */ +var _sa4 = float64(645.3872717332679) /* 0x40842B19, 0x21EC2868 */ +var _sa5 = float64(429.00814002756783) /* 0x407AD021, 0x57700314 */ +var _sa6 = float64(108.63500554177944) /* 0x405B28A3, 0xEE48AE2C */ +var _sa7 = float64(6.570249770319282) /* 0x401A47EF, 0x8E484A93 */ +var _sa8 = -Float64FromFloat64(0.0604244152148581) /* 0xBFAEEFF2, 0xEE749A62 */ +/* + * Coefficients for approximation to erfc in [1/.35,28] + */ +var _rb0 = -Float64FromFloat64(0.0098649429247001) /* 0xBF843412, 0x39E86F4A */ +var _rb1 = -Float64FromFloat64(0.799283237680523) /* 0xBFE993BA, 0x70C285DE */ +var _rb2 = -Float64FromFloat64(17.757954917754752) /* 0xC031C209, 0x555F995A */ +var _rb3 = -Float64FromFloat64(160.63638485582192) /* 0xC064145D, 0x43C5ED98 */ +var _rb4 = -Float64FromFloat64(637.5664433683896) /* 0xC083EC88, 0x1375F228 */ +var _rb5 = -Float64FromFloat64(1025.0951316110772) /* 0xC0900461, 0x6A2E5992 */ +var _rb6 = -Float64FromFloat64(483.5191916086514) /* 0xC07E384E, 0x9BDC383F */ +var _sb1 = float64(30.33806074348246) /* 0x403E568B, 0x261D5190 */ +var _sb2 = float64(325.7925129965739) /* 0x40745CAE, 0x221B9F0A */ +var _sb3 = float64(1536.729586084437) /* 0x409802EB, 0x189D5118 */ +var _sb4 = float64(3199.8582195085955) /* 0x40A8FFB7, 0x688C246A */ +var _sb5 = float64(2553.0504064331644) /* 0x40A3F219, 0xCEDF3BE6 */ +var _sb6 = float64(474.52854120695537) /* 0x407DA874, 0xE79FE763 */ +var _sb7 = -Float64FromFloat64(22.44095244658582) /* 0xC03670E2, 0x42712D62 */ + +func _erfc1(tls *TLS, x float64) (r float64) { + var P, Q, s Tdouble_t + _, _, _ = P, Q, s + s = Xfabs(tls, x) - Float64FromInt32(1) + P = _pa0 + float64(s*(_pa1+float64(s*(_pa2+float64(s*(_pa3+float64(s*(_pa4+float64(s*(_pa5+float64(s*_pa6))))))))))) + Q = Float64FromInt32(1) + Tdouble_t(s*(_qa1+float64(s*(_qa2+float64(s*(_qa3+float64(s*(_qa4+float64(s*(_qa5+float64(s*_qa6))))))))))) + return Float64FromInt32(1) - _erx - P/Q +} + +func _erfc2(tls *TLS, ix Tuint32_t, x float64) (r float64) { + var R, S, s Tdouble_t + var z float64 + var v1 Tuint64_t + _, _, _, _, _ = R, S, s, z, v1 + if ix < uint32(0x3ff40000) { /* |x| < 1.25 */ + return _erfc1(tls, x) + } + x = Xfabs(tls, x) + s = Float64FromInt32(1) / float64(x*x) + if ix < uint32(0x4006db6d) { /* |x| < 1/.35 ~ 2.85714 */ + R = _ra0 + float64(s*(_ra1+float64(s*(_ra2+float64(s*(_ra3+float64(s*(_ra4+float64(s*(_ra5+float64(s*(_ra6+float64(s*_ra7))))))))))))) + S = float64(1) + float64(s*(_sa1+float64(s*(_sa2+float64(s*(_sa3+float64(s*(_sa4+float64(s*(_sa5+float64(s*(_sa6+float64(s*(_sa7+float64(s*_sa8))))))))))))))) + } else { /* |x| > 1/.35 */ + R = _rb0 + float64(s*(_rb1+float64(s*(_rb2+float64(s*(_rb3+float64(s*(_rb4+float64(s*(_rb5+float64(s*_rb6))))))))))) + S = float64(1) + float64(s*(_sb1+float64(s*(_sb2+float64(s*(_sb3+float64(s*(_sb4+float64(s*(_sb5+float64(s*(_sb6+float64(s*_sb7))))))))))))) + } + z = x + v1 = *(*Tuint64_t)(unsafe.Pointer(&z))>>Int32FromInt32(32)< %v", r1) }() + } + var ix Tuint32_t + var r, s, y, z, v1 float64 + var sign int32 + _, _, _, _, _, _, _ = ix, r, s, sign, y, z, v1 + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x7ff00000) { + /* erf(nan)=nan, erf(+-inf)=+-1 */ + return float64(int32(1)-int32(2)*sign) + Float64FromInt32(1)/x + } + if ix < uint32(0x3feb0000) { /* |x| < 0.84375 */ + if ix < uint32(0x3e300000) { /* |x| < 2**-28 */ + /* avoid underflow */ + return float64(float64(0.125) * (float64(Float64FromInt32(8)*x) + float64(_efx8*x))) + } + z = float64(x * x) + r = _pp0 + float64(z*(_pp1+float64(z*(_pp2+float64(z*(_pp3+float64(z*_pp4))))))) + s = float64(1) + float64(z*(_qq1+float64(z*(_qq2+float64(z*(_qq3+float64(z*(_qq4+float64(z*_qq5))))))))) + y = r / s + return x + float64(x*y) + } + if ix < uint32(0x40180000) { /* 0.84375 <= |x| < 6 */ + y = Float64FromInt32(1) - _erfc2(tls, ix, x) + } else { + y = Float64FromInt32(1) - Float64FromFloat64(2.2250738585072014e-308) + } + if sign != 0 { + v1 = -y + } else { + v1 = y + } + return v1 +} + +func Xerfc(tls *TLS, x float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var ix Tuint32_t + var r, s, y, z, v1 float64 + var sign int32 + _, _, _, _, _, _, _ = ix, r, s, sign, y, z, v1 + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x7ff00000) { + /* erfc(nan)=nan, erfc(+-inf)=0,2 */ + return float64(int32(2)*sign) + Float64FromInt32(1)/x + } + if ix < uint32(0x3feb0000) { /* |x| < 0.84375 */ + if ix < uint32(0x3c700000) { /* |x| < 2**-56 */ + return float64(1) - x + } + z = float64(x * x) + r = _pp0 + float64(z*(_pp1+float64(z*(_pp2+float64(z*(_pp3+float64(z*_pp4))))))) + s = float64(1) + float64(z*(_qq1+float64(z*(_qq2+float64(z*(_qq3+float64(z*(_qq4+float64(z*_qq5))))))))) + y = r / s + if sign != 0 || ix < uint32(0x3fd00000) { /* x < 1/4 */ + return float64(1) - (x + float64(x*y)) + } + return float64(0.5) - (x - float64(0.5) + float64(x*y)) + } + if ix < uint32(0x403c0000) { /* 0.84375 <= |x| < 28 */ + if sign != 0 { + v1 = Float64FromInt32(2) - _erfc2(tls, ix, x) + } else { + v1 = _erfc2(tls, ix, x) + } + return v1 + } + if sign != 0 { + v1 = Float64FromInt32(2) - Float64FromFloat64(2.2250738585072014e-308) + } else { + v1 = float64(Float64FromFloat64(2.2250738585072014e-308) * Float64FromFloat64(2.2250738585072014e-308)) + } + return v1 +} + +var _erx1 = float32(0.84506291151) /* 0x3f58560b */ +/* + * Coefficients for approximation to erf on [0,0.84375] + */ +var _efx81 = float32(1.027033329) /* 0x3f8375d4 */ +var _pp01 = float32(0.12837916613) /* 0x3e0375d4 */ +var _pp11 = float32(-Float64FromFloat64(0.32504209876)) /* 0xbea66beb */ +var _pp21 = float32(-Float64FromFloat64(0.028481749818)) /* 0xbce9528f */ +var _pp31 = float32(-Float64FromFloat64(0.005770270247)) /* 0xbbbd1489 */ +var _pp41 = float32(-Float64FromFloat64(2.3763017452e-05)) /* 0xb7c756b1 */ +var _qq11 = float32(0.39791721106) /* 0x3ecbbbce */ +var _qq21 = float32(0.0650222525) /* 0x3d852a63 */ +var _qq31 = float32(0.0050813062117) /* 0x3ba68116 */ +var _qq41 = float32(0.00013249473704) /* 0x390aee49 */ +var _qq51 = float32(-Float64FromFloat64(3.9602282413e-06)) /* 0xb684e21a */ +/* + * Coefficients for approximation to erf in [0.84375,1.25] + */ +var _pa01 = float32(-Float64FromFloat64(0.0023621185683)) /* 0xbb1acdc6 */ +var _pa11 = float32(0.41485610604) /* 0x3ed46805 */ +var _pa21 = float32(-Float64FromFloat64(0.37220788002)) /* 0xbebe9208 */ +var _pa31 = float32(0.31834661961) /* 0x3ea2fe54 */ +var _pa41 = float32(-Float64FromFloat64(0.11089469492)) /* 0xbde31cc2 */ +var _pa51 = float32(0.035478305072) /* 0x3d1151b3 */ +var _pa61 = float32(-Float64FromFloat64(0.0021663755178)) /* 0xbb0df9c0 */ +var _qa11 = float32(0.10642088205) /* 0x3dd9f331 */ +var _qa21 = float32(0.54039794207) /* 0x3f0a5785 */ +var _qa31 = float32(0.071828655899) /* 0x3d931ae7 */ +var _qa41 = float32(0.12617121637) /* 0x3e013307 */ +var _qa51 = float32(0.013637083583) /* 0x3c5f6e13 */ +var _qa61 = float32(0.011984500103) /* 0x3c445aa3 */ +/* + * Coefficients for approximation to erfc in [1.25,1/0.35] + */ +var _ra01 = float32(-Float64FromFloat64(0.0098649440333)) /* 0xbc21a093 */ +var _ra11 = float32(-Float64FromFloat64(0.6938585639)) /* 0xbf31a0b7 */ +var _ra21 = float32(-Float64FromFloat64(10.558626175)) /* 0xc128f022 */ +var _ra31 = float32(-Float64FromFloat64(62.375331879)) /* 0xc2798057 */ +var _ra41 = float32(-Float64FromFloat64(162.39666748)) /* 0xc322658c */ +var _ra51 = float32(-Float64FromFloat64(184.60508728)) /* 0xc3389ae7 */ +var _ra61 = float32(-Float64FromFloat64(81.287437439)) /* 0xc2a2932b */ +var _ra71 = float32(-Float64FromFloat64(9.8143291473)) /* 0xc11d077e */ +var _sa11 = float32(19.65127182) /* 0x419d35ce */ +var _sa21 = float32(137.65776062) /* 0x4309a863 */ +var _sa31 = float32(434.56588745) /* 0x43d9486f */ +var _sa41 = float32(645.38726807) /* 0x442158c9 */ +var _sa51 = float32(429.00814819) /* 0x43d6810b */ +var _sa61 = float32(108.63500214) /* 0x42d9451f */ +var _sa71 = float32(6.5702495575) /* 0x40d23f7c */ +var _sa81 = float32(-Float64FromFloat64(0.060424413532)) /* 0xbd777f97 */ +/* + * Coefficients for approximation to erfc in [1/.35,28] + */ +var _rb01 = float32(-Float64FromFloat64(0.009864943102)) /* 0xbc21a092 */ +var _rb11 = float32(-Float64FromFloat64(0.79928326607)) /* 0xbf4c9dd4 */ +var _rb21 = float32(-Float64FromFloat64(17.757955551)) /* 0xc18e104b */ +var _rb31 = float32(-Float64FromFloat64(160.63638306)) /* 0xc320a2ea */ +var _rb41 = float32(-Float64FromFloat64(637.56646729)) /* 0xc41f6441 */ +var _rb51 = float32(-Float64FromFloat64(1025.0950928)) /* 0xc480230b */ +var _rb61 = float32(-Float64FromFloat64(483.51919556)) /* 0xc3f1c275 */ +var _sb11 = float32(30.338060379) /* 0x41f2b459 */ +var _sb21 = float32(325.79251099) /* 0x43a2e571 */ +var _sb31 = float32(1536.7296143) /* 0x44c01759 */ +var _sb41 = float32(3199.8581543) /* 0x4547fdbb */ +var _sb51 = float32(2553.050293) /* 0x451f90ce */ +var _sb61 = float32(474.52853394) /* 0x43ed43a7 */ +var _sb71 = float32(-Float64FromFloat64(22.440952301)) /* 0xc1b38712 */ + +func _erfc11(tls *TLS, x float32) (r float32) { + var P, Q, s Tfloat_t + _, _, _ = P, Q, s + s = float64(Xfabsf(tls, x) - Float32FromInt32(1)) + P = float64(_pa01) + Tfloat_t(s*(float64(_pa11)+Tfloat_t(s*(float64(_pa21)+Tfloat_t(s*(float64(_pa31)+Tfloat_t(s*(float64(_pa41)+Tfloat_t(s*(float64(_pa51)+Tfloat_t(s*float64(_pa61)))))))))))) + Q = Float64FromInt32(1) + Tfloat_t(s*(float64(_qa11)+Tfloat_t(s*(float64(_qa21)+Tfloat_t(s*(float64(_qa31)+Tfloat_t(s*(float64(_qa41)+Tfloat_t(s*(float64(_qa51)+Tfloat_t(s*float64(_qa61)))))))))))) + return float32(float64(Float32FromInt32(1)-_erx1) - P/Q) +} + +func _erfc21(tls *TLS, ix Tuint32_t, x float32) (r float32) { + var R, S, s Tfloat_t + var z float32 + var v1 Tuint32_t + _, _, _, _, _ = R, S, s, z, v1 + if ix < uint32(0x3fa00000) { /* |x| < 1.25 */ + return _erfc11(tls, x) + } + x = Xfabsf(tls, x) + s = float64(Float32FromInt32(1) / float32(x*x)) + if ix < uint32(0x4036db6d) { /* |x| < 1/0.35 */ + R = float64(_ra01) + Tfloat_t(s*(float64(_ra11)+Tfloat_t(s*(float64(_ra21)+Tfloat_t(s*(float64(_ra31)+Tfloat_t(s*(float64(_ra41)+Tfloat_t(s*(float64(_ra51)+Tfloat_t(s*(float64(_ra61)+Tfloat_t(s*float64(_ra71)))))))))))))) + S = Float64FromFloat32(1) + Tfloat_t(s*(float64(_sa11)+Tfloat_t(s*(float64(_sa21)+Tfloat_t(s*(float64(_sa31)+Tfloat_t(s*(float64(_sa41)+Tfloat_t(s*(float64(_sa51)+Tfloat_t(s*(float64(_sa61)+Tfloat_t(s*(float64(_sa71)+Tfloat_t(s*float64(_sa81)))))))))))))))) + } else { /* |x| >= 1/0.35 */ + R = float64(_rb01) + Tfloat_t(s*(float64(_rb11)+Tfloat_t(s*(float64(_rb21)+Tfloat_t(s*(float64(_rb31)+Tfloat_t(s*(float64(_rb41)+Tfloat_t(s*(float64(_rb51)+Tfloat_t(s*float64(_rb61)))))))))))) + S = Float64FromFloat32(1) + Tfloat_t(s*(float64(_sb11)+Tfloat_t(s*(float64(_sb21)+Tfloat_t(s*(float64(_sb31)+Tfloat_t(s*(float64(_sb41)+Tfloat_t(s*(float64(_sb51)+Tfloat_t(s*(float64(_sb61)+Tfloat_t(s*float64(_sb71)))))))))))))) + } + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + v1 = ix & uint32(0xffffe000) + z = *(*float32)(unsafe.Pointer(&v1)) + return float32(Xexpf(tls, float32(-z*z)-Float32FromFloat32(0.5625))*Xexpf(tls, float32(Tfloat_t((z-x)*(z+x))+R/S))) / x +} + +func Xerff(tls *TLS, x float32) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var ix Tuint32_t + var r, s, y, z, v1 float32 + var sign int32 + _, _, _, _, _, _, _ = ix, r, s, sign, y, z, v1 + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x7f800000) { + /* erf(nan)=nan, erf(+-inf)=+-1 */ + return float32(int32(1)-int32(2)*sign) + Float32FromInt32(1)/x + } + if ix < uint32(0x3f580000) { /* |x| < 0.84375 */ + if ix < uint32(0x31800000) { /* |x| < 2**-28 */ + /*avoid underflow */ + return float32(Float32FromFloat32(0.125) * (float32(Float32FromInt32(8)*x) + float32(_efx81*x))) + } + z = float32(x * x) + r = _pp01 + float32(z*(_pp11+float32(z*(_pp21+float32(z*(_pp31+float32(z*_pp41))))))) + s = Float32FromInt32(1) + float32(z*(_qq11+float32(z*(_qq21+float32(z*(_qq31+float32(z*(_qq41+float32(z*_qq51))))))))) + y = r / s + return x + float32(x*y) + } + if ix < uint32(0x40c00000) { /* |x| < 6 */ + y = Float32FromInt32(1) - _erfc21(tls, ix, x) + } else { + y = Float32FromInt32(1) - Float32FromFloat32(7.52316384526264e-37) + } + if sign != 0 { + v1 = -y + } else { + v1 = y + } + return v1 +} + +func Xerfcf(tls *TLS, x float32) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var ix Tuint32_t + var r, s, y, z, v1 float32 + var sign int32 + _, _, _, _, _, _, _ = ix, r, s, sign, y, z, v1 + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x7f800000) { + /* erfc(nan)=nan, erfc(+-inf)=0,2 */ + return float32(int32(2)*sign) + Float32FromInt32(1)/x + } + if ix < uint32(0x3f580000) { /* |x| < 0.84375 */ + if ix < uint32(0x23800000) { /* |x| < 2**-56 */ + return Float32FromFloat32(1) - x + } + z = float32(x * x) + r = _pp01 + float32(z*(_pp11+float32(z*(_pp21+float32(z*(_pp31+float32(z*_pp41))))))) + s = Float32FromFloat32(1) + float32(z*(_qq11+float32(z*(_qq21+float32(z*(_qq31+float32(z*(_qq41+float32(z*_qq51))))))))) + y = r / s + if sign != 0 || ix < uint32(0x3e800000) { /* x < 1/4 */ + return Float32FromFloat32(1) - (x + float32(x*y)) + } + return Float32FromFloat32(0.5) - (x - Float32FromFloat32(0.5) + float32(x*y)) + } + if ix < uint32(0x41e00000) { /* |x| < 28 */ + if sign != 0 { + v1 = Float32FromInt32(2) - _erfc21(tls, ix, x) + } else { + v1 = _erfc21(tls, ix, x) + } + return v1 + } + if sign != 0 { + v1 = Float32FromInt32(2) - Float32FromFloat32(7.52316384526264e-37) + } else { + v1 = float32(Float32FromFloat32(7.52316384526264e-37) * Float32FromFloat32(7.52316384526264e-37)) + } + return v1 +} + +func Xerfl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xerf(tls, x) +} + +func Xerfcl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xerfc(tls, x) +} + +const EXP2_POLY_ORDER = 5 +const EXP_POLY_ORDER = 5 +const EXP_TABLE_BITS = 7 +const EXP_USE_TOINT_NARROW = 0 +const N = 128 + +// C documentation +// +// /* Handle cases that may overflow or underflow when computing the result that +// is scale*(1+TMP) without intermediate rounding. The bit representation of +// scale is in SBITS, however it has a computed exponent that may have +// overflown into the sign bit so that needs to be adjusted before using it as +// a double. (int32_t)KI is the k used in the argument reduction and exponent +// adjustment of scale, positive k here means the result may overflow and +// negative k means the result may underflow. */ +func _specialcase(tls *TLS, tmp Tdouble_t, sbits Tuint64_t, ki Tuint64_t) (r float64) { + var hi, lo, scale, y3 Tdouble_t + var y, y1, y2, v1 float64 + _, _, _, _, _, _, _, _ = hi, lo, scale, y, y1, y2, y3, v1 + if ki&uint64(0x80000000) == uint64(0) { + /* k > 0, the exponent of scale might have overflowed by <= 460. */ + sbits = uint64(sbits - Uint64FromUint64(1009)<> int32(52)) +} + +func Xexp(tls *TLS, x1 float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x1=%v, (%v:)", tls, x1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var abstop Tuint32_t + var idx, ki, sbits, top, v5 Tuint64_t + var kd, r, r2, scale, tail, tmp, z Tdouble_t + var y, v1 float64 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = abstop, idx, kd, ki, r, r2, sbits, scale, tail, tmp, top, y, z, v1, v5 + abstop = _top12(tls, x1) & uint32(0x7ff) + if abstop-_top12(tls, float64(5.551115123125783e-17)) >= _top12(tls, float64(512))-_top12(tls, float64(5.551115123125783e-17)) { + if abstop-_top12(tls, float64(5.551115123125783e-17)) >= uint32(0x80000000) { + /* Avoid spurious underflow for tiny x. */ + /* Note: 0 is common input. */ + return float64(1) + x1 + } + if abstop >= _top12(tls, float64(1024)) { + v1 = float64(-X__builtin_inff(tls)) + if *(*Tuint64_t)(unsafe.Pointer(&x1)) == *(*Tuint64_t)(unsafe.Pointer(&v1)) { + return float64(0) + } + if abstop >= _top12(tls, float64(X__builtin_inff(tls))) { + return float64(1) + x1 + } + if *(*Tuint64_t)(unsafe.Pointer(&x1))>>int32(63) != 0 { + return X__math_uflow(tls, uint32(0)) + } else { + return X__math_oflow(tls, uint32(0)) + } + } + /* Large x is special cased below. */ + abstop = uint32(0) + } + /* exp(x) = 2^(k/N) * exp(r), with exp(r) in [2^(-1/2N),2^(1/2N)]. */ + /* x = ln2/N*k + r, with int k and r in [-ln2/2N, ln2/2N]. */ + z = Tdouble_t(X__exp_data.Finvln2N * x1) + /* z - kd is in [-1, 1] in non-nearest rounding modes. */ + y = z + X__exp_data.Fshift + v1 = y + goto _3 +_3: + kd = v1 + v1 = kd + ki = *(*Tuint64_t)(unsafe.Pointer(&v1)) + kd = kd - X__exp_data.Fshift + r = x1 + float64(kd*X__exp_data.Fnegln2hiN) + float64(kd*X__exp_data.Fnegln2loN) + /* 2^(k/N) ~= scale * (1 + tail). */ + idx = uint64(2) * (ki % Uint64FromInt32(Int32FromInt32(1)< 2^-200 and scale > 2^-739, so there + is no spurious underflow here even without fma. */ + y = scale + Tdouble_t(scale*tmp) + v1 = y + goto _7 +_7: + return v1 +} + +const HUGE = 0 + +func Xexp10(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var y float64 + var _ /* n at bp+0 */ float64 + var _ /* u at bp+8 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _ = y + y = Xmodf(tls, x, bp) + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp + 8)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp + 8)) = **(**float64)(__ccgo_up(bp)) + /* fabs(n) < 16 without raising invalid on nan */ + if *(*Tuint64_t)(unsafe.Pointer(bp + 8))>>int32(52)&uint64(0x7ff) < Uint64FromInt32(Int32FromInt32(0x3ff)+Int32FromInt32(4)) { + if !(y != 0) { + return _p10[int32(**(**float64)(__ccgo_up(bp)))+int32(15)] + } + y = Xexp2(tls, float64(float64(3.321928094887362)*y)) + return float64(y * _p10[int32(**(**float64)(__ccgo_up(bp)))+int32(15)]) + } + return Xpow(tls, float64(10), x) +} + +var _p10 = [31]float64{ + 0: float64(1e-15), + 1: float64(1e-14), + 2: float64(1e-13), + 3: float64(1e-12), + 4: float64(1e-11), + 5: float64(1e-10), + 6: float64(1e-09), + 7: float64(1e-08), + 8: float64(1e-07), + 9: float64(1e-06), + 10: float64(1e-05), + 11: float64(0.0001), + 12: float64(0.001), + 13: float64(0.01), + 14: float64(0.1), + 15: Float64FromInt32(1), + 16: float64(10), + 17: float64(100), + 18: float64(1000), + 19: float64(10000), + 20: float64(100000), + 21: float64(1e+06), + 22: float64(1e+07), + 23: float64(1e+08), + 24: float64(1e+09), + 25: float64(1e+10), + 26: float64(1e+11), + 27: float64(1e+12), + 28: float64(1e+13), + 29: float64(1e+14), + 30: float64(1e+15), +} + +func Xpow10(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xexp10(tls, x) +} + +func Xexp10f(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var y float32 + var _ /* n at bp+0 */ float32 + var _ /* u at bp+4 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _ = y + y = Xmodff(tls, x, bp) + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp + 4)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp + 4)) = **(**float32)(__ccgo_up(bp)) + /* fabsf(n) < 8 without raising invalid on nan */ + if *(*Tuint32_t)(unsafe.Pointer(bp + 4))>>int32(23)&uint32(0xff) < Uint32FromInt32(Int32FromInt32(0x7f)+Int32FromInt32(3)) { + if !(y != 0) { + return _p101[int32(**(**float32)(__ccgo_up(bp)))+int32(7)] + } + y = Xexp2f(tls, float32(Float32FromFloat32(3.321928094887362)*y)) + return float32(y * _p101[int32(**(**float32)(__ccgo_up(bp)))+int32(7)]) + } + return float32(Xexp2(tls, float64(float64(3.321928094887362)*float64(x)))) +} + +var _p101 = [15]float32{ + 0: Float32FromFloat32(1e-07), + 1: Float32FromFloat32(1e-06), + 2: Float32FromFloat32(1e-05), + 3: Float32FromFloat32(0.0001), + 4: Float32FromFloat32(0.001), + 5: Float32FromFloat32(0.01), + 6: Float32FromFloat32(0.1), + 7: Float32FromInt32(1), + 8: float32(10), + 9: float32(100), + 10: float32(1000), + 11: float32(10000), + 12: float32(100000), + 13: float32(1e+06), + 14: float32(1e+07), +} + +func Xpow10f(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xexp10f(tls, x) +} + +func Xexp10l(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xexp10(tls, x) +} + +func Xpow10l(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xexp10l(tls, x) +} + +// C documentation +// +// /* Handle cases that may overflow or underflow when computing the result that +// is scale*(1+TMP) without intermediate rounding. The bit representation of +// scale is in SBITS, however it has a computed exponent that may have +// overflown into the sign bit so that needs to be adjusted before using it as +// a double. (int32_t)KI is the k used in the argument reduction and exponent +// adjustment of scale, positive k here means the result may overflow and +// negative k means the result may underflow. */ +func _specialcase1(tls *TLS, tmp Tdouble_t, sbits Tuint64_t, ki Tuint64_t) (r float64) { + var hi, lo, scale, y3 Tdouble_t + var y, y1, y2, v1 float64 + _, _, _, _, _, _, _, _ = hi, lo, scale, y, y1, y2, y3, v1 + if ki&uint64(0x80000000) == uint64(0) { + /* k > 0, the exponent of scale might have overflowed by 1. */ + sbits = uint64(sbits - Uint64FromUint64(1)<> int32(52)) +} + +func Xexp2(tls *TLS, x1 float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x1=%v, (%v:)", tls, x1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var abstop Tuint32_t + var idx, ki, sbits, top, v7 Tuint64_t + var kd, r, r2, scale, tail, tmp Tdouble_t + var y, v1 float64 + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = abstop, idx, kd, ki, r, r2, sbits, scale, tail, tmp, top, y, v1, v7 + abstop = _top121(tls, x1) & uint32(0x7ff) + if abstop-_top121(tls, float64(5.551115123125783e-17)) >= _top121(tls, float64(512))-_top121(tls, float64(5.551115123125783e-17)) { + if abstop-_top121(tls, float64(5.551115123125783e-17)) >= uint32(0x80000000) { + /* Avoid spurious underflow for tiny x. */ + /* Note: 0 is common input. */ + return float64(1) + x1 + } + if abstop >= _top121(tls, float64(1024)) { + v1 = float64(-X__builtin_inff(tls)) + if *(*Tuint64_t)(unsafe.Pointer(&x1)) == *(*Tuint64_t)(unsafe.Pointer(&v1)) { + return float64(0) + } + if abstop >= _top121(tls, float64(X__builtin_inff(tls))) { + return float64(1) + x1 + } + if !(*(*Tuint64_t)(unsafe.Pointer(&x1))>>Int32FromInt32(63) != 0) { + return X__math_oflow(tls, uint32(0)) + } else { + v1 = -Float64FromFloat64(1075) + if *(*Tuint64_t)(unsafe.Pointer(&x1)) >= *(*Tuint64_t)(unsafe.Pointer(&v1)) { + return X__math_uflow(tls, uint32(0)) + } + } + } + v1 = float64(928) + if uint64(2)**(*Tuint64_t)(unsafe.Pointer(&x1)) > uint64(2)**(*Tuint64_t)(unsafe.Pointer(&v1)) { + /* Large x is special cased below. */ + abstop = uint32(0) + } + } + /* exp2(x) = 2^(k/N) * 2^r, with 2^r in [2^(-1/2N),2^(1/2N)]. */ + /* x = k/N + r, with int k and r in [-1/2N, 1/2N]. */ + y = x1 + X__exp_data.Fexp2_shift + v1 = y + goto _5 +_5: + kd = v1 + v1 = kd + ki = *(*Tuint64_t)(unsafe.Pointer(&v1)) /* k. */ + kd = kd - X__exp_data.Fexp2_shift /* k/N for int k. */ + r = x1 - kd + /* 2^(k/N) ~= scale * (1 + tail). */ + idx = uint64(2) * (ki % Uint64FromInt32(Int32FromInt32(1)< 2^-65 and scale > 2^-928, so there + is no spurious underflow here even without fma. */ + y = scale + Tdouble_t(scale*tmp) + v1 = y + goto _9 +_9: + return v1 +} + +const EXP2F_POLY_ORDER = 3 +const EXP2F_TABLE_BITS = 5 +const N1 = 32 + +/* +EXP2F_TABLE_BITS = 5 +EXP2F_POLY_ORDER = 3 + +ULP error: 0.502 (nearest rounding.) +Relative error: 1.69 * 2^-34 in [-1/64, 1/64] (before rounding.) +Wrong count: 168353 (all nearest rounding wrong results with fma.) +Non-nearest ULP error: 1 (rounded ULP error) +*/ + +func _top122(tls *TLS, x float32) (r Tuint32_t) { + return *(*Tuint32_t)(unsafe.Pointer(&x)) >> int32(20) +} + +func Xexp2f(tls *TLS, x2 float32) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x2=%v, (%v:)", tls, x2, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var abstop Tuint32_t + var kd, r, r2, s, xd, y2, z Tdouble_t + var ki, t Tuint64_t + var y, v1 float32 + var y1, v2 float64 + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = abstop, kd, ki, r, r2, s, t, xd, y, y1, y2, z, v1, v2 + xd = float64(x2) + abstop = _top122(tls, x2) & uint32(0x7ff) + if abstop >= _top122(tls, Float32FromFloat32(128)) { + /* |x| >= 128 or x is nan. */ + v1 = -X__builtin_inff(tls) + if *(*Tuint32_t)(unsafe.Pointer(&x2)) == *(*Tuint32_t)(unsafe.Pointer(&v1)) { + return Float32FromFloat32(0) + } + if abstop >= _top122(tls, X__builtin_inff(tls)) { + return x2 + x2 + } + if x2 > Float32FromFloat32(0) { + return X__math_oflowf(tls, uint32(0)) + } + if x2 <= -Float32FromFloat32(150) { + return X__math_uflowf(tls, uint32(0)) + } + } + /* x = k/N + r with r in [-1/(2N), 1/(2N)] and int k. */ + y1 = xd + X__exp2f_data.Fshift_scaled + v2 = y1 + goto _3 +_3: + kd = v2 + v2 = kd + ki = *(*Tuint64_t)(unsafe.Pointer(&v2)) + kd = kd - X__exp2f_data.Fshift_scaled /* k/N for int k. */ + r = xd - kd + /* exp2(x) = 2^(k/N) * 2^r ~= s * (C0*r^3 + C1*r^2 + C2*r + 1) */ + t = **(**Tuint64_t)(__ccgo_up(uintptr(unsafe.Pointer(&X__exp2f_data)) + uintptr(ki%Uint64FromInt32(Int32FromInt32(1)< %v", r) }() + } + return Xexp2(tls, x) +} + +const N2 = 128 + +type Texp_data = struct { + Finvln2N float64 + Fshift float64 + Fnegln2hiN float64 + Fnegln2loN float64 + Fpoly [4]float64 + Fexp2_shift float64 + Fexp2_poly [5]float64 + Ftab [256]Tuint64_t +} + +const N3 = 32 + +/* +EXP2F_TABLE_BITS = 5 +EXP2F_POLY_ORDER = 3 + +ULP error: 0.502 (nearest rounding.) +Relative error: 1.69 * 2^-34 in [-ln2/64, ln2/64] (before rounding.) +Wrong count: 170635 (all nearest rounding wrong results with fma.) +Non-nearest ULP error: 1 (rounded ULP error) +*/ + +func _top123(tls *TLS, x float32) (r Tuint32_t) { + return *(*Tuint32_t)(unsafe.Pointer(&x)) >> int32(20) +} + +func Xexpf(tls *TLS, x2 float32) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x2=%v, (%v:)", tls, x2, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var abstop Tuint32_t + var kd, r, r2, s, xd, y2, z Tdouble_t + var ki, t Tuint64_t + var y, v1 float32 + var y1, v2 float64 + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = abstop, kd, ki, r, r2, s, t, xd, y, y1, y2, z, v1, v2 + xd = float64(x2) + abstop = _top123(tls, x2) & uint32(0x7ff) + if abstop >= _top123(tls, Float32FromFloat32(88)) { + /* |x| >= 88 or x is nan. */ + v1 = -X__builtin_inff(tls) + if *(*Tuint32_t)(unsafe.Pointer(&x2)) == *(*Tuint32_t)(unsafe.Pointer(&v1)) { + return Float32FromFloat32(0) + } + if abstop >= _top123(tls, X__builtin_inff(tls)) { + return x2 + x2 + } + if x2 > Float32FromFloat32(88.72283172607422) { /* x > log(0x1p128) ~= 88.72 */ + return X__math_oflowf(tls, uint32(0)) + } + if x2 < -Float32FromFloat32(103.97207641601562) { /* x < log(0x1p-150) ~= -103.97 */ + return X__math_uflowf(tls, uint32(0)) + } + } + /* x*N/Ln2 = k + r with r in [-1/2, 1/2] and int k. */ + z = Tdouble_t(X__exp2f_data.Finvln2_scaled * xd) + /* Round and convert z to int, the result is in [-150*N, 128*N] and + ideally ties-to-even rule is used, otherwise the magnitude of r + can be bigger which gives larger approximation error. */ + y1 = z + X__exp2f_data.Fshift + v2 = y1 + goto _3 +_3: + kd = v2 + v2 = kd + ki = *(*Tuint64_t)(unsafe.Pointer(&v2)) + kd = kd - X__exp2f_data.Fshift + r = z - kd + /* exp(x) = 2^(k/N) * 2^(r/N) ~= s * (C0*r^3 + C1*r^2 + C2*r + 1) */ + t = **(**Tuint64_t)(__ccgo_up(uintptr(unsafe.Pointer(&X__exp2f_data)) + uintptr(ki%Uint64FromInt32(Int32FromInt32(1)< %v", r) }() + } + return Xexp(tls, x) +} + +var _o_threshold = float64(709.782712893384) /* 0x40862E42, 0xFEFA39EF */ +var _ln2_hi = float64(0.6931471803691238) /* 0x3fe62e42, 0xfee00000 */ +var _ln2_lo = float64(1.9082149292705877e-10) /* 0x3dea39ef, 0x35793c76 */ +var _invln2 = float64(1.4426950408889634) /* 0x3ff71547, 0x652b82fe */ +/* Scaled Q's: Qn_here = 2**n * Qn_above, for R(2*z) where z = hxs = x*x/2: */ +var _Q1 = -Float64FromFloat64(0.03333333333333313) /* BFA11111 111110F4 */ +var _Q2 = float64(0.0015873015872548146) /* 3F5A01A0 19FE5585 */ +var _Q3 = -Float64FromFloat64(7.93650757867488e-05) /* BF14CE19 9EAADBB7 */ +var _Q4 = float64(4.008217827329362e-06) /* 3ED0CFCA 86E65239 */ +var _Q5 = -Float64FromFloat64(2.0109921818362437e-07) /* BE8AFDB7 6E09C32D */ + +func Xexpm1(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var c, e, hfx, hi, hxs, lo, r1, t, twopk, y3 Tdouble_t + var hx Tuint32_t + var k, sign int32 + var y float32 + var y1, y2, v3 float64 + var v1 uint64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + var _ /* u at bp+8 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = c, e, hfx, hi, hx, hxs, k, lo, r1, sign, t, twopk, y, y1, y2, y3, v1, v3 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp + 8)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp + 8)) = x3 + hx = uint32(*(*Tuint64_t)(unsafe.Pointer(bp + 8)) >> int32(32) & uint64(0x7fffffff)) + sign = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp + 8)) >> int32(63)) + /* filter out huge and non-finite argument */ + if hx >= uint32(0x4043687A) { /* if |x|>=56*ln2 */ + *(*float64)(unsafe.Pointer(bp)) = x3 + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 + _2: + if BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)< _o_threshold { + x3 = x3 * float64(8.98846567431158e+307) + return x3 + } + } + /* argument reduction */ + if hx > uint32(0x3fd62e42) { /* if |x| > 0.5 ln2 */ + if hx < uint32(0x3FF0A2B2) { /* and |x| < 1.5 ln2 */ + if !(sign != 0) { + hi = x3 - _ln2_hi + lo = _ln2_lo + k = int32(1) + } else { + hi = x3 + _ln2_hi + lo = -_ln2_lo + k = -int32(1) + } + } else { + if sign != 0 { + v3 = -Float64FromFloat64(0.5) + } else { + v3 = float64(0.5) + } + k = int32(float64(_invln2*x3) + v3) + t = float64(k) + hi = x3 - float64(t*_ln2_hi) /* t*ln2_hi is exact here */ + lo = Tdouble_t(t * _ln2_lo) + } + x3 = hi - lo + c = hi - x3 - lo + } else { + if hx < uint32(0x3c900000) { /* |x| < 2**-54, return x */ + if hx < uint32(0x00100000) { + if uint64(4) == uint64(4) { + y = float32(x3) + } else { + if uint64(4) == uint64(8) { + y1 = float64(float32(x3)) + } else { + y2 = float64(float32(x3)) + } + } + } + return x3 + } else { + k = 0 + } + } + /* x is now in primary range */ + hfx = Tdouble_t(float64(0.5) * x3) + hxs = Tdouble_t(x3 * hfx) + r1 = float64(1) + float64(hxs*(_Q1+float64(hxs*(_Q2+float64(hxs*(_Q3+float64(hxs*(_Q4+float64(hxs*_Q5))))))))) + t = float64(3) - float64(r1*hfx) + e = Tdouble_t(hxs * ((r1 - t) / (Float64FromFloat64(6) - float64(x3*t)))) + if k == 0 { /* c is 0 */ + return x3 - (float64(x3*e) - hxs) + } + e = float64(x3*(e-c)) - c + e = e - hxs + /* exp(x) ~ 2^k (Xreduced - e + 1) */ + if k == -int32(1) { + return float64(float64(0.5)*(x3-e)) - float64(0.5) + } + if k == int32(1) { + if x3 < -Float64FromFloat64(0.25) { + return float64(-Float64FromFloat64(2) * (e - (x3 + Float64FromFloat64(0.5)))) + } + return float64(1) + float64(float64(2)*(x3-e)) + } + *(*Tuint64_t)(unsafe.Pointer(bp + 8)) = Uint64FromInt32(Int32FromInt32(0x3ff)+k) << int32(52) /* 2^k */ + twopk = *(*float64)(unsafe.Pointer(bp + 8)) + if k < 0 || k > int32(56) { /* suffice to return exp(x)-1 */ + y3 = x3 - e + float64(1) + if k == int32(1024) { + y3 = Tdouble_t(Tdouble_t(y3*float64(2)) * float64(8.98846567431158e+307)) + } else { + y3 = Tdouble_t(y3 * twopk) + } + return y3 - float64(1) + } + *(*Tuint64_t)(unsafe.Pointer(bp + 8)) = Uint64FromInt32(Int32FromInt32(0x3ff)-k) << int32(52) /* 2^-k */ + if k < int32(20) { + y3 = Tdouble_t((x3 - e + (Float64FromInt32(1) - *(*float64)(unsafe.Pointer(bp + 8)))) * twopk) + } else { + y3 = Tdouble_t((x3 - (e + *(*float64)(unsafe.Pointer(bp + 8))) + Float64FromInt32(1)) * twopk) + } + return y3 +} + +var _ln2_hi1 = float32(0.69313812256) /* 0x3f317180 */ +var _ln2_lo1 = float32(9.0580006145e-06) /* 0x3717f7d1 */ +var _invln21 = float32(1.4426950216) /* 0x3fb8aa3b */ +/* + * Domain [-0.34568, 0.34568], range ~[-6.694e-10, 6.696e-10]: + * |6 / x * (1 + 2 * (1 / (exp(x) - 1) - 1 / x)) - q(x)| < 2**-30.04 + * Scaled coefficients: Qn_here = 2**n * Qn_for_q (see s_expm1.c): + */ +var _Q11 = float32(-Float64FromFloat64(0.033333212137)) /* -0x888868.0p-28 */ +var _Q21 = float32(0.0015807170421) /* 0xcf3010.0p-33 */ + +func Xexpm1f(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var c, e, hfx, hi, hxs, lo, r1, t, twopk, y3 Tfloat_t + var hx Tuint32_t + var k, sign int32 + var y, v1 float32 + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = c, e, hfx, hi, hx, hxs, k, lo, r1, sign, t, twopk, y, y1, y2, y3, v1 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + hx = *(*Tuint32_t)(unsafe.Pointer(bp)) & uint32(0x7fffffff) + sign = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(31)) + /* filter out huge and non-finite argument */ + if hx >= uint32(0x4195b844) { /* if |x|>=27*ln2 */ + if hx > uint32(0x7f800000) { /* NaN */ + return x3 + } + if sign != 0 { + return float32(-Int32FromInt32(1)) + } + if hx > uint32(0x42b17217) { /* x > log(FLT_MAX) */ + x3 = x3 * Float32FromFloat32(1.7014118346046923e+38) + return x3 + } + } + /* argument reduction */ + if hx > uint32(0x3eb17218) { /* if |x| > 0.5 ln2 */ + if hx < uint32(0x3F851592) { /* and |x| < 1.5 ln2 */ + if !(sign != 0) { + hi = float64(x3 - _ln2_hi1) + lo = float64(_ln2_lo1) + k = int32(1) + } else { + hi = float64(x3 + _ln2_hi1) + lo = float64(-_ln2_lo1) + k = -int32(1) + } + } else { + if sign != 0 { + v1 = -Float32FromFloat32(0.5) + } else { + v1 = Float32FromFloat32(0.5) + } + k = int32(float32(_invln21*x3) + v1) + t = float64(k) + hi = float64(x3) - Tfloat_t(t*float64(_ln2_hi1)) /* t*ln2_hi is exact here */ + lo = Tfloat_t(t * float64(_ln2_lo1)) + } + x3 = float32(hi - lo) + c = hi - float64(x3) - lo + } else { + if hx < uint32(0x33000000) { /* when |x|<2**-25, return x */ + if hx < uint32(0x00800000) { + if uint64(4) == uint64(4) { + y = float32(x3 * x3) + } else { + if uint64(4) == uint64(8) { + y1 = float64(x3 * x3) + } else { + y2 = float64(x3 * x3) + } + } + } + return x3 + } else { + k = 0 + } + } + /* x is now in primary range */ + hfx = Tfloat_t(Float32FromFloat32(0.5) * x3) + hxs = Tfloat_t(float64(x3) * hfx) + r1 = Float64FromFloat32(1) + Tfloat_t(hxs*(float64(_Q11)+Tfloat_t(hxs*float64(_Q21)))) + t = Float64FromFloat32(3) - Tfloat_t(r1*hfx) + e = Tfloat_t(hxs * ((r1 - t) / (Float64FromFloat32(6) - Tfloat_t(float64(x3)*t)))) + if k == 0 { /* c is 0 */ + return float32(float64(x3) - (Tfloat_t(float64(x3)*e) - hxs)) + } + e = Tfloat_t(float64(x3)*(e-c)) - c + e = e - hxs + /* exp(x) ~ 2^k (Xreduced - e + 1) */ + if k == -int32(1) { + return float32(Tfloat_t(Float64FromFloat32(0.5)*(float64(x3)-e)) - Float64FromFloat32(0.5)) + } + if k == int32(1) { + if x3 < -Float32FromFloat32(0.25) { + return float32(float64(-Float32FromFloat32(2)) * (e - float64(x3+Float32FromFloat32(0.5)))) + } + return float32(Float64FromFloat32(1) + Tfloat_t(Float64FromFloat32(2)*(float64(x3)-e))) + } + *(*Tuint32_t)(unsafe.Pointer(bp)) = Uint32FromInt32((int32(0x7f) + k) << int32(23)) /* 2^k */ + twopk = float64(*(*float32)(unsafe.Pointer(bp))) + if k < 0 || k > int32(56) { /* suffice to return exp(x)-1 */ + y3 = float64(x3) - e + Float64FromFloat32(1) + if k == int32(128) { + y3 = Tfloat_t(Tfloat_t(y3*Float64FromFloat32(2)) * Float64FromFloat32(1.7014118346046923e+38)) + } else { + y3 = Tfloat_t(y3 * twopk) + } + return float32(y3 - Float64FromFloat32(1)) + } + *(*Tuint32_t)(unsafe.Pointer(bp)) = Uint32FromInt32((int32(0x7f) - k) << int32(23)) /* 2^-k */ + if k < int32(23) { + y3 = Tfloat_t((float64(x3) - e + float64(Float32FromInt32(1)-*(*float32)(unsafe.Pointer(bp)))) * twopk) + } else { + y3 = Tfloat_t((float64(x3) - (e + float64(*(*float32)(unsafe.Pointer(bp)))) + Float64FromInt32(1)) * twopk) + } + return float32(y3) +} + +func Xexpm1l(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xexpm1(tls, x) +} + +func Xfabs(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uintptr + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _ = v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + v1 = bp + *(*Tuint64_t)(unsafe.Pointer(v1)) = Tuint64_t(*(*Tuint64_t)(unsafe.Pointer(v1)) & (-Uint64FromUint64(1) / Uint64FromInt32(2))) + return *(*float64)(unsafe.Pointer(bp)) +} + +func Xfabsf(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + *(*Tuint32_t)(unsafe.Pointer(bp)) &= uint32(0x7fffffff) + return *(*float32)(unsafe.Pointer(bp)) +} + +func Xfabsl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfabs(tls, x) +} + +func Xfdim(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uint64 + var v5 float64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _, _ = v1, v5 + *(*float64)(unsafe.Pointer(bp)) = x + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + if BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)< y { + v5 = x - y + } else { + v5 = Float64FromInt32(0) + } + return v5 +} + +func Xfdimf(tls *TLS, x float32, y float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uint32 + var v5 float32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _, _ = v1, v5 + *(*float32)(unsafe.Pointer(bp)) = x + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + if BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return x + } + *(*float32)(unsafe.Pointer(bp)) = y + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _4 +_4: + if BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return y + } + if x > y { + v5 = x - y + } else { + v5 = Float32FromInt32(0) + } + return v5 +} + +func Xfdiml(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfdim(tls, x, y) +} + +func Xfinite(tls *TLS, x float64) (r int32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uint64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _ = v1 + *(*float64)(unsafe.Pointer(bp)) = x + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + return BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) < Uint64FromUint64(0x7ff)< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uint32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _ = v1 + *(*float32)(unsafe.Pointer(bp)) = x + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + return BoolInt32(v1&uint32(0x7fffffff) < uint32(0x7f800000)) +} + +const DBL_EPSILON7 = 2.220446049250313e-16 + +var _toint3 = Float64FromInt32(1) / Float64FromFloat64(2.220446049250313e-16) + +func Xfloor(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e, v1 int32 + var y float32 + var y1, y2 float64 + var y3 Tdouble_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _ = e, y, y1, y2, y3, v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + e = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + if e >= Int32FromInt32(0x3ff)+Int32FromInt32(52) || x3 == Float64FromInt32(0) { + return x3 + } + /* y = int(x) - x, where int(x) is an integer neighbor of x */ + if *(*Tuint64_t)(unsafe.Pointer(bp))>>int32(63) != 0 { + y3 = x3 - _toint3 + _toint3 - x3 + } else { + y3 = x3 + _toint3 - _toint3 - x3 + } + /* special case because of non-nearest rounding modes */ + if e <= Int32FromInt32(0x3ff)-Int32FromInt32(1) { + if uint64(8) == uint64(4) { + y = float32(y3) + } else { + if uint64(8) == uint64(8) { + y1 = y3 + } else { + y2 = y3 + } + } + if *(*Tuint64_t)(unsafe.Pointer(bp))>>int32(63) != 0 { + v1 = -int32(1) + } else { + v1 = 0 + } + return float64(v1) + } + if y3 > Float64FromInt32(0) { + return x3 + y3 - Float64FromInt32(1) + } + return x3 + y3 +} + +const DBL_EPSILON8 = 0 + +func Xfloorf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e int32 + var m Tuint32_t + var y float32 + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _ = e, m, y, y1, y2 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + e = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp))>>Int32FromInt32(23)&Uint32FromInt32(0xff)) - int32(0x7f) + if e >= int32(23) { + return x3 + } + if e >= 0 { + m = Uint32FromInt32(int32(0x007fffff) >> e) + if *(*Tuint32_t)(unsafe.Pointer(bp))&m == uint32(0) { + return x3 + } + if uint64(4) == uint64(4) { + y = x3 + Float32FromFloat32(1.329227995784916e+36) + } else { + if uint64(4) == uint64(8) { + y1 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } else { + y2 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } + } + if *(*Tuint32_t)(unsafe.Pointer(bp))>>int32(31) != 0 { + *(*Tuint32_t)(unsafe.Pointer(bp)) += m + } + *(*Tuint32_t)(unsafe.Pointer(bp)) &= ^m + } else { + if uint64(4) == uint64(4) { + y = x3 + Float32FromFloat32(1.329227995784916e+36) + } else { + if uint64(4) == uint64(8) { + y1 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } else { + y2 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } + } + if *(*Tuint32_t)(unsafe.Pointer(bp))>>int32(31) == uint32(0) { + *(*Tuint32_t)(unsafe.Pointer(bp)) = uint32(0) + } else { + if *(*Tuint32_t)(unsafe.Pointer(bp))< %v", r) }() + } + return Xfloor(tls, x) +} + +const DBL_MIN1 = 2.2250738585072014e-308 +const FLT_MIN1 = 1.1754943508222875e-38 +const ZEROINFNAN = 971 + +type Tnum = struct { + Fm Tuint64_t + Fe int32 + Fsign int32 +} + +func _normalize(tls *TLS, x float64) (r Tnum) { + var e, sign, v2 int32 + var ix Tuint64_t + var v1 float64 + _, _, _, _, _ = e, ix, sign, v1, v2 + ix = *(*Tuint64_t)(unsafe.Pointer(&x)) + e = Int32FromUint64(ix >> int32(52)) + sign = e & int32(0x800) + e = e & int32(0x7ff) + if !(e != 0) { + v1 = float64(x * float64(9.223372036854776e+18)) + ix = *(*Tuint64_t)(unsafe.Pointer(&v1)) + e = Int32FromUint64(ix >> int32(52) & uint64(0x7ff)) + if e != 0 { + v2 = e - int32(63) + } else { + v2 = int32(0x800) + } + e = v2 + } + ix = uint64(ix & (Uint64FromUint64(1)<> int32(32) + ylo = uint64(uint32(y)) + yhi = y >> int32(32) + t1 = xlo * ylo + t2 = xlo*yhi + xhi*ylo + t3 = xhi * yhi + **(**Tuint64_t)(__ccgo_up(lo)) = t1 + t2<>Int32FromInt32(32) + BoolUint64(t1 > **(**Tuint64_t)(__ccgo_up(lo))) +} + +func Xfma(tls *TLS, x1 float64, y1 float64, z float64) (r2 float64) { + if __ccgo_strace { + trc("tls=%v x1=%v y1=%v z=%v, (%v:)", tls, x1, y1, z, origin(2)) + defer func() { trc("-> %v", r2) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var c, r1 float64 + var d, e, nonzero, r, samesign, sign, v2 int32 + var fltmin float32 + var i Tint64_t + var nx, ny, nz Tnum + var t, zhi, zlo, v1 Tuint64_t + var tiny Tdouble_t + var y Tuint32_t + var _ /* rhi at bp+0 */ Tuint64_t + var _ /* rlo at bp+8 */ Tuint64_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = c, d, e, fltmin, i, nonzero, nx, ny, nz, r, r1, samesign, sign, t, tiny, y, zhi, zlo, v1, v2 + nx = _normalize(tls, x1) + ny = _normalize(tls, y1) + nz = _normalize(tls, z) + if nx.Fe >= Int32FromInt32(0x7ff)-Int32FromInt32(0x3ff)-Int32FromInt32(52)-Int32FromInt32(1) || ny.Fe >= Int32FromInt32(0x7ff)-Int32FromInt32(0x3ff)-Int32FromInt32(52)-Int32FromInt32(1) { + return float64(x1*y1) + z + } + if nz.Fe >= Int32FromInt32(0x7ff)-Int32FromInt32(0x3ff)-Int32FromInt32(52)-Int32FromInt32(1) { + if nz.Fe > Int32FromInt32(0x7ff)-Int32FromInt32(0x3ff)-Int32FromInt32(52)-Int32FromInt32(1) { /* z==0 */ + return float64(x1*y1) + z + } + return z + } + _mul(tls, bp, bp+8, nx.Fm, ny.Fm) + /* either top 20 or 21 bits of rhi and last 2 bits of rlo are 0 */ + /* align exponents */ + e = nx.Fe + ny.Fe + d = nz.Fe - e + /* shift bits z<<=kz, r>>=kr, so kz+kr == d, set e = e+kr (== ez-kz) */ + if d > 0 { + if d < int32(64) { + zlo = nz.Fm << d + zhi = nz.Fm >> (int32(64) - d) + } else { + zlo = uint64(0) + zhi = nz.Fm + e = nz.Fe - int32(64) + d = d - int32(64) + if d == 0 { + } else { + if d < int32(64) { + **(**Tuint64_t)(__ccgo_up(bp + 8)) = **(**Tuint64_t)(__ccgo_up(bp))<<(int32(64)-d) | **(**Tuint64_t)(__ccgo_up(bp + 8))>>d | BoolUint64(!!(**(**Tuint64_t)(__ccgo_up(bp + 8))<<(Int32FromInt32(64)-d) != 0)) + **(**Tuint64_t)(__ccgo_up(bp)) = **(**Tuint64_t)(__ccgo_up(bp)) >> d + } else { + **(**Tuint64_t)(__ccgo_up(bp + 8)) = uint64(1) + **(**Tuint64_t)(__ccgo_up(bp)) = uint64(0) + } + } + } + } else { + zhi = uint64(0) + d = -d + if d == 0 { + zlo = nz.Fm + } else { + if d < int32(64) { + zlo = nz.Fm>>d | BoolUint64(!!(nz.Fm<<(Int32FromInt32(64)-d) != 0)) + } else { + zlo = uint64(1) + } + } + } + /* add */ + sign = nx.Fsign ^ ny.Fsign + samesign = BoolInt32(!(sign^nz.Fsign != 0)) + nonzero = int32(1) + if samesign != 0 { + /* r += z */ + **(**Tuint64_t)(__ccgo_up(bp + 8)) = **(**Tuint64_t)(__ccgo_up(bp + 8)) + zlo + **(**Tuint64_t)(__ccgo_up(bp)) = **(**Tuint64_t)(__ccgo_up(bp)) + (zhi + BoolUint64(**(**Tuint64_t)(__ccgo_up(bp + 8)) < zlo)) + } else { + /* r -= z */ + t = **(**Tuint64_t)(__ccgo_up(bp + 8)) + **(**Tuint64_t)(__ccgo_up(bp + 8)) = **(**Tuint64_t)(__ccgo_up(bp + 8)) - zlo + **(**Tuint64_t)(__ccgo_up(bp)) = **(**Tuint64_t)(__ccgo_up(bp)) - zhi - BoolUint64(t < **(**Tuint64_t)(__ccgo_up(bp + 8))) + if **(**Tuint64_t)(__ccgo_up(bp))>>int32(63) != 0 { + **(**Tuint64_t)(__ccgo_up(bp + 8)) = -**(**Tuint64_t)(__ccgo_up(bp + 8)) + **(**Tuint64_t)(__ccgo_up(bp)) = -**(**Tuint64_t)(__ccgo_up(bp)) - BoolUint64(!!(**(**Tuint64_t)(__ccgo_up(bp + 8)) != 0)) + sign = BoolInt32(!(sign != 0)) + } + nonzero = BoolInt32(!!(**(**Tuint64_t)(__ccgo_up(bp)) != 0)) + } + /* set rhi to top 63bit of the result (last bit is sticky) */ + if nonzero != 0 { + e = e + int32(64) + v1 = **(**Tuint64_t)(__ccgo_up(bp)) + if v1>>Int32FromInt32(32) != 0 { + y = uint32(v1 >> int32(32)) + r = Int32FromInt32(0) + } else { + y = uint32(v1) + r = Int32FromInt32(32) + } + if y>>Int32FromInt32(16) != 0 { + y = y >> uint32(16) + } else { + r = r | int32(16) + } + if y>>Int32FromInt32(8) != 0 { + y = y >> uint32(8) + } else { + r = r | int32(8) + } + if y>>Int32FromInt32(4) != 0 { + y = y >> uint32(4) + } else { + r = r | int32(4) + } + if y>>Int32FromInt32(2) != 0 { + y = y >> uint32(2) + } else { + r = r | int32(2) + } + v2 = r | BoolInt32(!(y>>Int32FromInt32(1) != 0)) + goto _3 + _3: + d = v2 - int32(1) + /* note: d > 0 */ + **(**Tuint64_t)(__ccgo_up(bp)) = **(**Tuint64_t)(__ccgo_up(bp))<>(int32(64)-d) | BoolUint64(!!(**(**Tuint64_t)(__ccgo_up(bp + 8))<>Int32FromInt32(32) != 0 { + y = uint32(v1 >> int32(32)) + r = Int32FromInt32(0) + } else { + y = uint32(v1) + r = Int32FromInt32(32) + } + if y>>Int32FromInt32(16) != 0 { + y = y >> uint32(16) + } else { + r = r | int32(16) + } + if y>>Int32FromInt32(8) != 0 { + y = y >> uint32(8) + } else { + r = r | int32(8) + } + if y>>Int32FromInt32(4) != 0 { + y = y >> uint32(4) + } else { + r = r | int32(4) + } + if y>>Int32FromInt32(2) != 0 { + y = y >> uint32(2) + } else { + r = r | int32(2) + } + v2 = r | BoolInt32(!(y>>Int32FromInt32(1) != 0)) + goto _6 + _6: + d = v2 - int32(1) + if d < 0 { + **(**Tuint64_t)(__ccgo_up(bp)) = **(**Tuint64_t)(__ccgo_up(bp + 8))>>int32(1) | **(**Tuint64_t)(__ccgo_up(bp + 8))&uint64(1) + } else { + **(**Tuint64_t)(__ccgo_up(bp)) = **(**Tuint64_t)(__ccgo_up(bp + 8)) << d + } + } else { + /* exact +-0 */ + return float64(x1*y1) + z + } + } + e = e - d + /* convert to double */ + i = Int64FromUint64(**(**Tuint64_t)(__ccgo_up(bp))) /* i is in [1<<62,(1<<63)-1] */ + if sign != 0 { + i = -i + } + r1 = float64(i) /* |r| is in [0x1p62,0x1p63] */ + if e < -Int32FromInt32(1022)-Int32FromInt32(62) { + /* result is subnormal before rounding */ + if e == -Int32FromInt32(1022)-Int32FromInt32(63) { + c = float64(9.223372036854776e+18) + if sign != 0 { + c = -c + } + if r1 == c { + /* min normal after rounding, underflow depends + on arch behaviour which can be imitated by + a double to float conversion */ + fltmin = float32(float64(Float64FromFloat64(1.0842021401737618e-19)*Float64FromFloat32(1.1754943508222875e-38)) * r1) + return float64(Float64FromFloat64(2.2250738585072014e-308) / Float64FromFloat32(1.1754943508222875e-38) * float64(fltmin)) + } + /* one bit is lost when scaled, add another top bit to + only round once at conversion if it is inexact */ + if **(**Tuint64_t)(__ccgo_up(bp))<>int32(1)|**(**Tuint64_t)(__ccgo_up(bp))&uint64(1)) | Uint64FromUint64(1)<>d | BoolUint64(!!(**(**Tuint64_t)(__ccgo_up(bp))<<(Int32FromInt32(64)-d) != 0))) << d) + if sign != 0 { + i = -i + } + r1 = float64(i) + } + } + return Xscalbn(tls, r1, e) +} + +const DBL_MIN2 = 0 +const FLT_MIN2 = 0 + +func Xfmal(tls *TLS, x float64, y float64, z float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v z=%v, (%v:)", tls, x, y, z, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfma(tls, x, y, z) +} + +func Xfmax(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1, v3, v5 uint64 + var v9 float64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _, _, _, _ = v1, v3, v5, v9 + *(*float64)(unsafe.Pointer(bp)) = x + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + if BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(63)) != Int32FromUint64(v3>>Int32FromInt32(63)) { + *(*float64)(unsafe.Pointer(bp)) = x + v5 = *(*uint64)(unsafe.Pointer(bp)) + goto _11 + _11: + if Int32FromUint64(v5>>Int32FromInt32(63)) != 0 { + v9 = y + } else { + v9 = x + } + return v9 + } + if x < y { + v9 = y + } else { + v9 = x + } + return v9 +} + +func Xfmaxf(tls *TLS, x float32, y float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1, v3, v5 uint32 + var v9 float32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _, _, _, _ = v1, v3, v5, v9 + *(*float32)(unsafe.Pointer(bp)) = x + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + if BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return y + } + *(*float32)(unsafe.Pointer(bp)) = y + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _4 +_4: + if BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return x + } + /* handle signed zeroes, see C99 Annex F.9.9.2 */ + *(*float32)(unsafe.Pointer(bp)) = x + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _6 +_6: + *(*float32)(unsafe.Pointer(bp)) = y + v3 = *(*uint32)(unsafe.Pointer(bp)) + goto _8 +_8: + if Int32FromUint32(v1>>Int32FromInt32(31)) != Int32FromUint32(v3>>Int32FromInt32(31)) { + *(*float32)(unsafe.Pointer(bp)) = x + v5 = *(*uint32)(unsafe.Pointer(bp)) + goto _11 + _11: + if Int32FromUint32(v5>>Int32FromInt32(31)) != 0 { + v9 = y + } else { + v9 = x + } + return v9 + } + if x < y { + v9 = y + } else { + v9 = x + } + return v9 +} + +func Xfmaxl(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfmax(tls, x, y) +} + +func Xfmin(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1, v3, v5 uint64 + var v9 float64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _, _, _, _ = v1, v3, v5, v9 + *(*float64)(unsafe.Pointer(bp)) = x + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + if BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(63)) != Int32FromUint64(v3>>Int32FromInt32(63)) { + *(*float64)(unsafe.Pointer(bp)) = x + v5 = *(*uint64)(unsafe.Pointer(bp)) + goto _11 + _11: + if Int32FromUint64(v5>>Int32FromInt32(63)) != 0 { + v9 = x + } else { + v9 = y + } + return v9 + } + if x < y { + v9 = x + } else { + v9 = y + } + return v9 +} + +func Xfminf(tls *TLS, x float32, y float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1, v3, v5 uint32 + var v9 float32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _, _, _, _ = v1, v3, v5, v9 + *(*float32)(unsafe.Pointer(bp)) = x + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + if BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return y + } + *(*float32)(unsafe.Pointer(bp)) = y + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _4 +_4: + if BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return x + } + /* handle signed zeros, see C99 Annex F.9.9.2 */ + *(*float32)(unsafe.Pointer(bp)) = x + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _6 +_6: + *(*float32)(unsafe.Pointer(bp)) = y + v3 = *(*uint32)(unsafe.Pointer(bp)) + goto _8 +_8: + if Int32FromUint32(v1>>Int32FromInt32(31)) != Int32FromUint32(v3>>Int32FromInt32(31)) { + *(*float32)(unsafe.Pointer(bp)) = x + v5 = *(*uint32)(unsafe.Pointer(bp)) + goto _11 + _11: + if Int32FromUint32(v5>>Int32FromInt32(31)) != 0 { + v9 = x + } else { + v9 = y + } + return v9 + } + if x < y { + v9 = x + } else { + v9 = y + } + return v9 +} + +func Xfminl(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfmin(tls, x, y) +} + +func Xfmod(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var ex, ey, sx int32 + var i, uxi Tuint64_t + var v1 uint64 + var v3 bool + var v6 uintptr + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + var _ /* ux at bp+8 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + var _ /* uy at bp+16 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _, _ = ex, ey, i, sx, uxi, v1, v3, v6 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp + 8)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp + 8)) = x + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp + 16)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp + 16)) = y + ex = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp + 8)) >> int32(52) & uint64(0x7ff)) + ey = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp + 16)) >> int32(52) & uint64(0x7ff)) + sx = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp + 8)) >> int32(63)) + /* in the followings uxi should be ux.i, but then gcc wrongly adds */ + /* float load/store to inner loops ruining performance and code size */ + uxi = *(*Tuint64_t)(unsafe.Pointer(bp + 8)) + if v3 = *(*Tuint64_t)(unsafe.Pointer(bp + 16))<>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>int32(63) == uint64(0)) { + break + } + goto _4 + _4: + ; + ex = ex - 1 + i = i << uint64(1) + } + uxi = uxi << Uint64FromInt32(-ex+int32(1)) + } else { + uxi = uint64(uxi & (-Uint64FromUint64(1) >> Int32FromInt32(12))) + uxi = uint64(uxi | Uint64FromUint64(1)<>int32(63) == uint64(0)) { + break + } + goto _5 + _5: + ; + ey = ey - 1 + i = i << uint64(1) + } + *(*Tuint64_t)(unsafe.Pointer(bp + 16)) <<= Uint64FromInt32(-ey + int32(1)) + } else { + v6 = bp + 16 + *(*Tuint64_t)(unsafe.Pointer(v6)) = Tuint64_t(*(*Tuint64_t)(unsafe.Pointer(v6)) & (-Uint64FromUint64(1) >> Int32FromInt32(12))) + v6 = bp + 16 + *(*Tuint64_t)(unsafe.Pointer(v6)) = Tuint64_t(*(*Tuint64_t)(unsafe.Pointer(v6)) | Uint64FromUint64(1)< ey) { + break + } + i = uxi - *(*Tuint64_t)(unsafe.Pointer(bp + 16)) + if i>>int32(63) == uint64(0) { + if i == uint64(0) { + return float64(Float64FromInt32(0) * x) + } + uxi = i + } + uxi = uxi << uint64(1) + goto _8 + _8: + ; + ex = ex - 1 + } + i = uxi - *(*Tuint64_t)(unsafe.Pointer(bp + 16)) + if i>>int32(63) == uint64(0) { + if i == uint64(0) { + return float64(Float64FromInt32(0) * x) + } + uxi = i + } + for { + if !(uxi>>int32(52) == uint64(0)) { + break + } + goto _9 + _9: + ; + uxi = uxi << uint64(1) + ex = ex - 1 + } + /* scale result */ + if ex > 0 { + uxi = uint64(uxi - Uint64FromUint64(1)<> Uint64FromInt32(-ex+int32(1)) + } + uxi = uxi | Uint64FromInt32(sx)< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ex, ey int32 + var i, sx, uxi Tuint32_t + var v1 uint32 + var v3 bool + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + var _ /* ux at bp+4 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + var _ /* uy at bp+8 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _, _ = ex, ey, i, sx, uxi, v1, v3 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp + 4)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp + 4)) = x + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp + 8)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp + 8)) = y + ex = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp + 4)) >> int32(23) & uint32(0xff)) + ey = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp + 8)) >> int32(23) & uint32(0xff)) + sx = *(*Tuint32_t)(unsafe.Pointer(bp + 4)) & uint32(0x80000000) + uxi = *(*Tuint32_t)(unsafe.Pointer(bp + 4)) + if v3 = *(*Tuint32_t)(unsafe.Pointer(bp + 8))< uint32(0x7f800000)) != 0 || ex == int32(0xff) { + return float32(x*y) / float32(x*y) + } + if uxi<>int32(31) == uint32(0)) { + break + } + goto _4 + _4: + ; + ex = ex - 1 + i = i << uint32(1) + } + uxi = uxi << Uint32FromInt32(-ex+int32(1)) + } else { + uxi = uxi & (-Uint32FromUint32(1) >> Int32FromInt32(9)) + uxi = uxi | Uint32FromUint32(1)<>int32(31) == uint32(0)) { + break + } + goto _5 + _5: + ; + ey = ey - 1 + i = i << uint32(1) + } + *(*Tuint32_t)(unsafe.Pointer(bp + 8)) <<= Uint32FromInt32(-ey + int32(1)) + } else { + *(*Tuint32_t)(unsafe.Pointer(bp + 8)) &= -Uint32FromUint32(1) >> Int32FromInt32(9) + *(*Tuint32_t)(unsafe.Pointer(bp + 8)) |= Uint32FromUint32(1) << Int32FromInt32(23) + } + /* x mod y */ + for { + if !(ex > ey) { + break + } + i = uxi - *(*Tuint32_t)(unsafe.Pointer(bp + 8)) + if i>>int32(31) == uint32(0) { + if i == uint32(0) { + return float32(Float32FromInt32(0) * x) + } + uxi = i + } + uxi = uxi << uint32(1) + goto _6 + _6: + ; + ex = ex - 1 + } + i = uxi - *(*Tuint32_t)(unsafe.Pointer(bp + 8)) + if i>>int32(31) == uint32(0) { + if i == uint32(0) { + return float32(Float32FromInt32(0) * x) + } + uxi = i + } + for { + if !(uxi>>int32(23) == uint32(0)) { + break + } + goto _7 + _7: + ; + uxi = uxi << uint32(1) + ex = ex - 1 + } + /* scale result up */ + if ex > 0 { + uxi = uxi - Uint32FromUint32(1)<> Uint32FromInt32(-ex+int32(1)) + } + uxi = uxi | sx + *(*Tuint32_t)(unsafe.Pointer(bp + 4)) = uxi + return *(*float32)(unsafe.Pointer(bp + 4)) +} + +func Xfmodl(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfmod(tls, x, y) +} + +func Xfrexp(tls *TLS, x float64, e uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v e=%v, (%v:)", tls, x, e, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ee int32 + var v1 uintptr + var _ /* y at bp+0 */ struct { + Fi [0]Tuint64_t + Fd float64 + } + _, _ = ee, v1 + *(*struct { + Fi [0]Tuint64_t + Fd float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Fd float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + ee = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + if !(ee != 0) { + if x != 0 { + x = Xfrexp(tls, float64(x*float64(1.8446744073709552e+19)), e) + **(**int32)(__ccgo_up(e)) -= int32(64) + } else { + **(**int32)(__ccgo_up(e)) = 0 + } + return x + } else { + if ee == int32(0x7ff) { + return x + } + } + **(**int32)(__ccgo_up(e)) = ee - int32(0x3fe) + v1 = bp + *(*Tuint64_t)(unsafe.Pointer(v1)) = Tuint64_t(*(*Tuint64_t)(unsafe.Pointer(v1)) & Uint64FromUint64(0x800fffffffffffff)) + v1 = bp + *(*Tuint64_t)(unsafe.Pointer(v1)) = Tuint64_t(*(*Tuint64_t)(unsafe.Pointer(v1)) | Uint64FromUint64(0x3fe0000000000000)) + return *(*float64)(unsafe.Pointer(bp)) +} + +func Xfrexpf(tls *TLS, x float32, e uintptr) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v e=%v, (%v:)", tls, x, e, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ee int32 + var v1 uintptr + var _ /* y at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _ = ee, v1 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + ee = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(23) & uint32(0xff)) + if !(ee != 0) { + if x != 0 { + x = Xfrexpf(tls, float32(float64(x)*float64(1.8446744073709552e+19)), e) + **(**int32)(__ccgo_up(e)) -= int32(64) + } else { + **(**int32)(__ccgo_up(e)) = 0 + } + return x + } else { + if ee == int32(0xff) { + return x + } + } + **(**int32)(__ccgo_up(e)) = ee - int32(0x7e) + v1 = bp + *(*Tuint32_t)(unsafe.Pointer(v1)) = Tuint32_t(uint64(*(*Tuint32_t)(unsafe.Pointer(v1))) & Uint64FromUint64(0x807fffff)) + v1 = bp + *(*Tuint32_t)(unsafe.Pointer(v1)) = Tuint32_t(uint64(*(*Tuint32_t)(unsafe.Pointer(v1))) | Uint64FromUint64(0x3f000000)) + return *(*float32)(unsafe.Pointer(bp)) +} + +func Xfrexpl(tls *TLS, x float64, e uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v e=%v, (%v:)", tls, x, e, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfrexp(tls, x, e) +} + +const SPLIT = 1 + +func _sq(tls *TLS, hi uintptr, lo uintptr, x float64) { + var xc, xh, xl Tdouble_t + _, _, _ = xc, xh, xl + xc = Tdouble_t(x * (Float64FromFloat64(1.34217728e+08) + Float64FromInt32(1))) + xh = x - xc + xc + xl = x - xh + **(**Tdouble_t)(__ccgo_up(hi)) = Tdouble_t(x * x) + **(**Tdouble_t)(__ccgo_up(lo)) = Tdouble_t(xh*xh) - **(**Tdouble_t)(__ccgo_up(hi)) + Tdouble_t(Tdouble_t(Float64FromInt32(2)*xh)*xl) + Tdouble_t(xl*xl) +} + +func Xhypot(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + var ex, ey int32 + var ut struct { + Fi [0]Tuint64_t + Ff float64 + } + var z Tdouble_t + var v1 uintptr + var _ /* hx at bp+16 */ Tdouble_t + var _ /* hy at bp+32 */ Tdouble_t + var _ /* lx at bp+24 */ Tdouble_t + var _ /* ly at bp+40 */ Tdouble_t + var _ /* ux at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + var _ /* uy at bp+8 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _ = ex, ey, ut, z, v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp + 8)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp + 8)) = y + /* arrange |x| >= |y| */ + v1 = bp + *(*Tuint64_t)(unsafe.Pointer(v1)) = Tuint64_t(*(*Tuint64_t)(unsafe.Pointer(v1)) & (-Uint64FromUint64(1) >> Int32FromInt32(1))) + v1 = bp + 8 + *(*Tuint64_t)(unsafe.Pointer(v1)) = Tuint64_t(*(*Tuint64_t)(unsafe.Pointer(v1)) & (-Uint64FromUint64(1) >> Int32FromInt32(1))) + if *(*Tuint64_t)(unsafe.Pointer(bp)) < *(*Tuint64_t)(unsafe.Pointer(bp + 8)) { + ut = **(**struct { + Fi [0]Tuint64_t + Ff float64 + })(__ccgo_up(bp)) + **(**struct { + Fi [0]Tuint64_t + Ff float64 + })(__ccgo_up(bp)) = **(**struct { + Fi [0]Tuint64_t + Ff float64 + })(__ccgo_up(bp + 8)) + **(**struct { + Fi [0]Tuint64_t + Ff float64 + })(__ccgo_up(bp + 8)) = ut + } + /* special cases */ + ex = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52)) + ey = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp + 8)) >> int32(52)) + x = *(*float64)(unsafe.Pointer(bp)) + y = *(*float64)(unsafe.Pointer(bp + 8)) + /* note: hypot(inf,nan) == inf */ + if ey == int32(0x7ff) { + return y + } + if ex == int32(0x7ff) || *(*Tuint64_t)(unsafe.Pointer(bp + 8)) == uint64(0) { + return x + } + /* note: hypot(x,y) ~= x + y*y/x/2 with inexact for small y/x */ + /* 64 difference is enough for ld80 double_t */ + if ex-ey > int32(64) { + return x + y + } + /* precise sqrt argument in nearest rounding mode without overflow */ + /* xh*xh must not overflow and xl*xl must not underflow in sq */ + z = Float64FromInt32(1) + if ex > Int32FromInt32(0x3ff)+Int32FromInt32(510) { + z = float64(5.260135901548374e+210) + x = x * float64(1.90109156629516e-211) + y = y * float64(1.90109156629516e-211) + } else { + if ey < Int32FromInt32(0x3ff)-Int32FromInt32(450) { + z = float64(1.90109156629516e-211) + x = x * float64(5.260135901548374e+210) + y = y * float64(5.260135901548374e+210) + } + } + _sq(tls, bp+16, bp+24, x) + _sq(tls, bp+32, bp+40, y) + return float64(z * Xsqrt(tls, **(**Tdouble_t)(__ccgo_up(bp + 40))+**(**Tdouble_t)(__ccgo_up(bp + 24))+**(**Tdouble_t)(__ccgo_up(bp + 32))+**(**Tdouble_t)(__ccgo_up(bp + 16)))) +} + +func Xhypotf(tls *TLS, x float32, y float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ut struct { + Fi [0]Tuint32_t + Ff float32 + } + var z Tfloat_t + var _ /* ux at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + var _ /* uy at bp+4 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _ = ut, z + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp + 4)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp + 4)) = y + *(*Tuint32_t)(unsafe.Pointer(bp)) &= -Uint32FromUint32(1) >> Int32FromInt32(1) + *(*Tuint32_t)(unsafe.Pointer(bp + 4)) &= -Uint32FromUint32(1) >> Int32FromInt32(1) + if *(*Tuint32_t)(unsafe.Pointer(bp)) < *(*Tuint32_t)(unsafe.Pointer(bp + 4)) { + ut = **(**struct { + Fi [0]Tuint32_t + Ff float32 + })(__ccgo_up(bp)) + **(**struct { + Fi [0]Tuint32_t + Ff float32 + })(__ccgo_up(bp)) = **(**struct { + Fi [0]Tuint32_t + Ff float32 + })(__ccgo_up(bp + 4)) + **(**struct { + Fi [0]Tuint32_t + Ff float32 + })(__ccgo_up(bp + 4)) = ut + } + x = *(*float32)(unsafe.Pointer(bp)) + y = *(*float32)(unsafe.Pointer(bp + 4)) + if *(*Tuint32_t)(unsafe.Pointer(bp + 4)) == Uint32FromInt32(Int32FromInt32(0xff)<= Uint32FromInt32(Int32FromInt32(0xff)<= Uint32FromInt32(Int32FromInt32(25)<= Uint32FromInt32((Int32FromInt32(0x7f)+Int32FromInt32(60))< %v", r) }() + } + return Xhypot(tls, x, y) +} + +func Xilogb(tls *TLS, x3 float64) (r int32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e, v2 int32 + var i Tuint64_t + var y float32 + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _ = e, i, y, y1, y2, v2 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + i = *(*Tuint64_t)(unsafe.Pointer(bp)) + e = Int32FromUint64(i >> int32(52) & uint64(0x7ff)) + if !(e != 0) { + i = i << uint64(12) + if i == uint64(0) { + if uint64(4) == uint64(4) { + y = Float32FromInt32(0) / Float32FromFloat32(0) + } else { + if uint64(4) == uint64(8) { + y1 = float64(Float32FromInt32(0) / Float32FromFloat32(0)) + } else { + y2 = float64(Float32FromInt32(0) / Float32FromFloat32(0)) + } + } + return -Int32FromInt32(1) - Int32FromInt32(0x7fffffff) + } + /* subnormal x */ + e = -int32(0x3ff) + for { + if !(i>>int32(63) == uint64(0)) { + break + } + goto _1 + _1: + ; + e = e - 1 + i = i << uint64(1) + } + return e + } + if e == int32(0x7ff) { + if uint64(4) == uint64(4) { + y = Float32FromInt32(0) / Float32FromFloat32(0) + } else { + if uint64(4) == uint64(8) { + y1 = float64(Float32FromInt32(0) / Float32FromFloat32(0)) + } else { + y2 = float64(Float32FromInt32(0) / Float32FromFloat32(0)) + } + } + if i< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e, v2 int32 + var i Tuint32_t + var y float32 + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _ = e, i, y, y1, y2, v2 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + i = *(*Tuint32_t)(unsafe.Pointer(bp)) + e = Int32FromUint32(i >> int32(23) & uint32(0xff)) + if !(e != 0) { + i = i << uint32(9) + if i == uint32(0) { + if uint64(4) == uint64(4) { + y = Float32FromInt32(0) / Float32FromFloat32(0) + } else { + if uint64(4) == uint64(8) { + y1 = float64(Float32FromInt32(0) / Float32FromFloat32(0)) + } else { + y2 = float64(Float32FromInt32(0) / Float32FromFloat32(0)) + } + } + return -Int32FromInt32(1) - Int32FromInt32(0x7fffffff) + } + /* subnormal x */ + e = -int32(0x7f) + for { + if !(i>>int32(31) == uint32(0)) { + break + } + goto _1 + _1: + ; + e = e - 1 + i = i << uint32(1) + } + return e + } + if e == int32(0xff) { + if uint64(4) == uint64(4) { + y = Float32FromInt32(0) / Float32FromFloat32(0) + } else { + if uint64(4) == uint64(8) { + y1 = float64(Float32FromInt32(0) / Float32FromFloat32(0)) + } else { + y2 = float64(Float32FromInt32(0) / Float32FromFloat32(0)) + } + } + if i< %v", r) }() + } + return Xilogb(tls, x) +} + +var _invsqrtpi = float64(0.5641895835477563) /* 0x3FE20DD7, 0x50429B6D */ +var _tpi = float64(0.6366197723675814) /* 0x3FE45F30, 0x6DC9C883 */ + +// C documentation +// +// /* common method when |x|>=2 */ +func _common(tls *TLS, ix Tuint32_t, x float64, y0 int32) (r float64) { + var c, cc, s, ss, z float64 + _, _, _, _, _ = c, cc, s, ss, z + /* + * j0(x) = sqrt(2/(pi*x))*(p0(x)*cos(x-pi/4)-q0(x)*sin(x-pi/4)) + * y0(x) = sqrt(2/(pi*x))*(p0(x)*sin(x-pi/4)+q0(x)*cos(x-pi/4)) + * + * sin(x-pi/4) = (sin(x) - cos(x))/sqrt(2) + * cos(x-pi/4) = (sin(x) + cos(x))/sqrt(2) + * sin(x) +- cos(x) = -cos(2x)/(sin(x) -+ cos(x)) + */ + s = Xsin(tls, x) + c = Xcos(tls, x) + if y0 != 0 { + c = -c + } + cc = s + c + /* avoid overflow in 2*x, big ulp error when x>=0x1p1023 */ + if ix < uint32(0x7fe00000) { + ss = s - c + z = -Xcos(tls, float64(Float64FromInt32(2)*x)) + if float64(s*c) < Float64FromInt32(0) { + cc = z / ss + } else { + ss = z / cc + } + if ix < uint32(0x48000000) { + if y0 != 0 { + ss = -ss + } + cc = float64(_pzero(tls, x)*cc) - float64(_qzero(tls, x)*ss) + } + } + return float64(_invsqrtpi*cc) / Xsqrt(tls, x) +} + +// C documentation +// +// /* R0/S0 on [0, 2.00] */ + +var _R02 = float64(0.015624999999999995) /* 0x3F8FFFFF, 0xFFFFFFFD */ +var _R03 = -Float64FromFloat64(0.00018997929423885472) /* 0xBF28E6A5, 0xB61AC6E9 */ +var _R04 = float64(1.8295404953270067e-06) /* 0x3EBEB1D1, 0x0C503919 */ +var _R05 = -Float64FromFloat64(4.618326885321032e-09) /* 0xBE33D5E7, 0x73D63FCE */ +var _S01 = float64(0.015619102946489001) /* 0x3F8FFCE8, 0x82C8C2A4 */ +var _S02 = float64(0.00011692678466333745) /* 0x3F1EA6D2, 0xDD57DBF4 */ +var _S03 = float64(5.135465502073181e-07) /* 0x3EA13B54, 0xCE84D5A9 */ +var _S04 = float64(1.1661400333379e-09) /* 0x3E1408BC, 0xF4745D8F */ + +func Xj0(tls *TLS, x float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var ix Tuint32_t + var r, s, z float64 + _, _, _, _ = ix, r, s, z + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + ix = ix & uint32(0x7fffffff) + /* j0(+-inf)=0, j0(nan)=nan */ + if ix >= uint32(0x7ff00000) { + return Float64FromInt32(1) / float64(x*x) + } + x = Xfabs(tls, x) + if ix >= uint32(0x40000000) { /* |x| >= 2 */ + /* large ulp error near zeros: 2.4, 5.52, 8.6537,.. */ + return _common(tls, ix, x, 0) + } + /* 1 - x*x/4 + x*x*R(x^2)/S(x^2) */ + if ix >= uint32(0x3f200000) { /* |x| >= 2**-13 */ + /* up to 4ulp error close to 2 */ + z = float64(x * x) + r = float64(z * (_R02 + float64(z*(_R03+float64(z*(_R04+float64(z*_R05))))))) + s = Float64FromInt32(1) + float64(z*(_S01+float64(z*(_S02+float64(z*(_S03+float64(z*_S04))))))) + return float64((Float64FromInt32(1)+x/Float64FromInt32(2))*(Float64FromInt32(1)-x/Float64FromInt32(2))) + float64(z*(r/s)) + } + /* 1 - x*x/4 */ + /* prevent underflow */ + /* inexact should be raised when x!=0, this is not done correctly */ + if ix >= uint32(0x38000000) { /* |x| >= 2**-127 */ + x = float64(float64(float64(0.25)*x) * x) + } + return Float64FromInt32(1) - x +} + +var _u00 = -Float64FromFloat64(0.07380429510868723) /* 0xBFB2E4D6, 0x99CBD01F */ +var _u01 = float64(0.17666645250918112) /* 0x3FC69D01, 0x9DE9E3FC */ +var _u02 = -Float64FromFloat64(0.01381856719455969) /* 0xBF8C4CE8, 0xB16CFA97 */ +var _u03 = float64(0.00034745343209368365) /* 0x3F36C54D, 0x20B29B6B */ +var _u04 = -Float64FromFloat64(3.8140705372436416e-06) /* 0xBECFFEA7, 0x73D25CAD */ +var _u05 = float64(1.9559013703502292e-08) /* 0x3E550057, 0x3B4EABD4 */ +var _u06 = -Float64FromFloat64(3.982051941321034e-11) /* 0xBDC5E43D, 0x693FB3C8 */ +var _v01 = float64(0.01273048348341237) /* 0x3F8A1270, 0x91C9C71A */ +var _v02 = float64(7.600686273503533e-05) /* 0x3F13ECBB, 0xF578C6C1 */ +var _v03 = float64(2.591508518404578e-07) /* 0x3E91642D, 0x7FF202FD */ +var _v04 = float64(4.4111031133267547e-10) /* 0x3DFE5018, 0x3BD6D9EF */ + +func Xy0(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __u Tuint64_t + var ix, lx Tuint32_t + var u, v, z float64 + _, _, _, _, _, _ = __u, ix, lx, u, v, z + __u = *(*Tuint64_t)(unsafe.Pointer(&x)) + ix = uint32(__u >> int32(32)) + lx = uint32(__u) + /* y0(nan)=nan, y0(<0)=nan, y0(0)=-inf, y0(inf)=0 */ + if ix<>int32(31) != 0 { + return Float64FromInt32(0) / Float64FromFloat64(0) + } + if ix >= uint32(0x7ff00000) { + return Float64FromInt32(1) / x + } + if ix >= uint32(0x40000000) { /* x >= 2 */ + /* large ulp errors near zeros: 3.958, 7.086,.. */ + return _common(tls, ix, x, int32(1)) + } + /* U(x^2)/V(x^2) + (2/pi)*j0(x)*log(x) */ + if ix >= uint32(0x3e400000) { /* x >= 2**-27 */ + /* large ulp error near the first zero, x ~= 0.89 */ + z = float64(x * x) + u = _u00 + float64(z*(_u01+float64(z*(_u02+float64(z*(_u03+float64(z*(_u04+float64(z*(_u05+float64(z*_u06))))))))))) + v = float64(1) + float64(z*(_v01+float64(z*(_v02+float64(z*(_v03+float64(z*_v04))))))) + return u/v + float64(_tpi*float64(Xj0(tls, x)*Xlog(tls, x))) + } + return _u00 + float64(_tpi*Xlog(tls, x)) +} + +// C documentation +// +// /* The asymptotic expansions of pzero is +// * 1 - 9/128 s^2 + 11025/98304 s^4 - ..., where s = 1/x. +// * For x >= 2, We approximate pzero by +// * pzero(x) = 1 + (R/S) +// * where R = pR0 + pR1*s^2 + pR2*s^4 + ... + pR5*s^10 +// * S = 1 + pS0*s^2 + ... + pS4*s^10 +// * and +// * | pzero(x)-1-R/S | <= 2 ** ( -60.26) +// */ +var _pR8 = [6]float64{ + 1: -Float64FromFloat64(0.07031249999999004), + 2: -Float64FromFloat64(8.081670412753498), + 3: -Float64FromFloat64(257.06310567970485), + 4: -Float64FromFloat64(2485.216410094288), + 5: -Float64FromFloat64(5253.043804907295), +} +var _pS8 = [5]float64{ + 0: float64(116.53436461966818), + 1: float64(3833.7447536412183), + 2: float64(40597.857264847255), + 3: float64(116752.97256437592), + 4: float64(47627.728414673096), +} + +var _pR5 = [6]float64{ + 0: -Float64FromFloat64(1.141254646918945e-11), + 1: -Float64FromFloat64(0.07031249408735993), + 2: -Float64FromFloat64(4.159610644705878), + 3: -Float64FromFloat64(67.67476522651673), + 4: -Float64FromFloat64(331.23129964917297), + 5: -Float64FromFloat64(346.4333883656049), +} +var _pS52 = [5]float64{ + 0: float64(60.753938269230034), + 1: float64(1051.2523059570458), + 2: float64(5978.970943338558), + 3: float64(9625.445143577745), + 4: float64(2406.058159229391), +} + +var _pR3 = [6]float64{ + 0: -Float64FromFloat64(2.547046017719519e-09), + 1: -Float64FromFloat64(0.07031196163814817), + 2: -Float64FromFloat64(2.409032215495296), + 3: -Float64FromFloat64(21.96597747348831), + 4: -Float64FromFloat64(58.07917047017376), + 5: -Float64FromFloat64(31.44794705948885), +} +var _pS32 = [5]float64{ + 0: float64(35.85603380552097), + 1: float64(361.51398305030386), + 2: float64(1193.6078379211153), + 3: float64(1127.9967985690741), + 4: float64(173.58093081333575), +} + +var _pR2 = [6]float64{ + 0: -Float64FromFloat64(8.875343330325264e-08), + 1: -Float64FromFloat64(0.07030309954836247), + 2: -Float64FromFloat64(1.4507384678095299), + 3: -Float64FromFloat64(7.635696138235278), + 4: -Float64FromFloat64(11.193166886035675), + 5: -Float64FromFloat64(3.2336457935133534), +} +var _pS24 = [5]float64{ + 0: float64(22.22029975320888), + 1: float64(136.2067942182152), + 2: float64(270.4702786580835), + 3: float64(153.87539420832033), + 4: float64(14.65761769482562), +} + +func _pzero(tls *TLS, x float64) (r1 float64) { + var ix Tuint32_t + var p, q uintptr + var r, s, z Tdouble_t + _, _, _, _, _, _ = ix, p, q, r, s, z + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x40200000) { + p = uintptr(unsafe.Pointer(&_pR8)) + q = uintptr(unsafe.Pointer(&_pS8)) + } else { + if ix >= uint32(0x40122E8B) { + p = uintptr(unsafe.Pointer(&_pR5)) + q = uintptr(unsafe.Pointer(&_pS52)) + } else { + if ix >= uint32(0x4006DB6D) { + p = uintptr(unsafe.Pointer(&_pR3)) + q = uintptr(unsafe.Pointer(&_pS32)) + } else { /*ix >= 0x40000000*/ + p = uintptr(unsafe.Pointer(&_pR2)) + q = uintptr(unsafe.Pointer(&_pS24)) + } + } + } + z = float64(1) / float64(x*x) + r = **(**float64)(__ccgo_up(p)) + float64(z*(**(**float64)(__ccgo_up(p + 1*8))+float64(z*(**(**float64)(__ccgo_up(p + 2*8))+float64(z*(**(**float64)(__ccgo_up(p + 3*8))+float64(z*(**(**float64)(__ccgo_up(p + 4*8))+float64(z***(**float64)(__ccgo_up(p + 5*8))))))))))) + s = float64(1) + float64(z*(**(**float64)(__ccgo_up(q))+float64(z*(**(**float64)(__ccgo_up(q + 1*8))+float64(z*(**(**float64)(__ccgo_up(q + 2*8))+float64(z*(**(**float64)(__ccgo_up(q + 3*8))+float64(z***(**float64)(__ccgo_up(q + 4*8))))))))))) + return float64(1) + r/s +} + +// C documentation +// +// /* For x >= 8, the asymptotic expansions of qzero is +// * -1/8 s + 75/1024 s^3 - ..., where s = 1/x. +// * We approximate pzero by +// * qzero(x) = s*(-1.25 + (R/S)) +// * where R = qR0 + qR1*s^2 + qR2*s^4 + ... + qR5*s^10 +// * S = 1 + qS0*s^2 + ... + qS5*s^12 +// * and +// * | qzero(x)/s +1.25-R/S | <= 2 ** ( -61.22) +// */ +var _qR8 = [6]float64{ + 1: float64(0.0732421874999935), + 2: float64(11.76820646822527), + 3: float64(557.6733802564019), + 4: float64(8859.197207564686), + 5: float64(37014.62677768878), +} +var _qS8 = [6]float64{ + 0: float64(163.77602689568982), + 1: float64(8098.344946564498), + 2: float64(142538.29141912048), + 3: float64(803309.2571195144), + 4: float64(840501.5798190605), + 5: -Float64FromFloat64(343899.2935378666), +} + +var _qR5 = [6]float64{ + 0: float64(1.8408596359451553e-11), + 1: float64(0.07324217666126848), + 2: float64(5.8356350896205695), + 3: float64(135.11157728644983), + 4: float64(1027.243765961641), + 5: float64(1989.9778586460538), +} +var _qS5 = [6]float64{ + 0: float64(82.77661022365378), + 1: float64(2077.81416421393), + 2: float64(18847.28877857181), + 3: float64(56751.11228949473), + 4: float64(35976.75384251145), + 5: -Float64FromFloat64(5354.342756019448), +} + +var _qR3 = [6]float64{ + 0: float64(4.377410140897386e-09), + 1: float64(0.07324111800429114), + 2: float64(3.344231375161707), + 3: float64(42.621844074541265), + 4: float64(170.8080913405656), + 5: float64(166.73394869665117), +} +var _qS32 = [6]float64{ + 0: float64(48.75887297245872), + 1: float64(709.689221056606), + 2: float64(3704.1482262011136), + 3: float64(6460.425167525689), + 4: float64(2516.3336892036896), + 5: -Float64FromFloat64(149.2474518361564), +} + +var _qR2 = [6]float64{ + 0: float64(1.5044444488698327e-07), + 1: float64(0.07322342659630793), + 2: float64(1.99819174093816), + 3: float64(14.495602934788574), + 4: float64(31.666231750478154), + 5: float64(16.252707571092927), +} +var _qS22 = [6]float64{ + 0: float64(30.36558483552192), + 1: float64(269.34811860804984), + 2: float64(844.7837575953201), + 3: float64(882.9358451124886), + 4: float64(212.66638851179883), + 5: -Float64FromFloat64(5.3109549388266695), +} + +func _qzero(tls *TLS, x float64) (r1 float64) { + var ix Tuint32_t + var p, q uintptr + var r, s, z Tdouble_t + _, _, _, _, _, _ = ix, p, q, r, s, z + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x40200000) { + p = uintptr(unsafe.Pointer(&_qR8)) + q = uintptr(unsafe.Pointer(&_qS8)) + } else { + if ix >= uint32(0x40122E8B) { + p = uintptr(unsafe.Pointer(&_qR5)) + q = uintptr(unsafe.Pointer(&_qS5)) + } else { + if ix >= uint32(0x4006DB6D) { + p = uintptr(unsafe.Pointer(&_qR3)) + q = uintptr(unsafe.Pointer(&_qS32)) + } else { /*ix >= 0x40000000*/ + p = uintptr(unsafe.Pointer(&_qR2)) + q = uintptr(unsafe.Pointer(&_qS22)) + } + } + } + z = float64(1) / float64(x*x) + r = **(**float64)(__ccgo_up(p)) + float64(z*(**(**float64)(__ccgo_up(p + 1*8))+float64(z*(**(**float64)(__ccgo_up(p + 2*8))+float64(z*(**(**float64)(__ccgo_up(p + 3*8))+float64(z*(**(**float64)(__ccgo_up(p + 4*8))+float64(z***(**float64)(__ccgo_up(p + 5*8))))))))))) + s = float64(1) + float64(z*(**(**float64)(__ccgo_up(q))+float64(z*(**(**float64)(__ccgo_up(q + 1*8))+float64(z*(**(**float64)(__ccgo_up(q + 2*8))+float64(z*(**(**float64)(__ccgo_up(q + 3*8))+float64(z*(**(**float64)(__ccgo_up(q + 4*8))+float64(z***(**float64)(__ccgo_up(q + 5*8))))))))))))) + return (-Float64FromFloat64(0.125) + r/s) / x +} + +var _invsqrtpi1 = float32(0.56418961287) /* 0x3f106ebb */ +var _tpi1 = float32(0.63661974669) /* 0x3f22f983 */ + +func _common1(tls *TLS, ix Tuint32_t, x float32, y0 int32) (r float32) { + var c, cc, s, ss, z float32 + _, _, _, _, _ = c, cc, s, ss, z + /* + * j0(x) = 1/sqrt(pi) * (P(0,x)*cc - Q(0,x)*ss) / sqrt(x) + * y0(x) = 1/sqrt(pi) * (P(0,x)*ss + Q(0,x)*cc) / sqrt(x) + */ + s = Xsinf(tls, x) + c = Xcosf(tls, x) + if y0 != 0 { + c = -c + } + cc = s + c + if ix < uint32(0x7f000000) { + ss = s - c + z = -Xcosf(tls, float32(Float32FromInt32(2)*x)) + if float32(s*c) < Float32FromInt32(0) { + cc = z / ss + } else { + ss = z / cc + } + if ix < uint32(0x58800000) { + if y0 != 0 { + ss = -ss + } + cc = float32(_pzerof(tls, x)*cc) - float32(_qzerof(tls, x)*ss) + } + } + return float32(_invsqrtpi1*cc) / Xsqrtf(tls, x) +} + +// C documentation +// +// /* R0/S0 on [0, 2.00] */ + +var _R021 = float32(0.015625) /* 0x3c800000 */ +var _R031 = float32(-Float64FromFloat64(0.00018997929874)) /* 0xb947352e */ +var _R041 = float32(1.8295404516e-06) /* 0x35f58e88 */ +var _R051 = float32(-Float64FromFloat64(4.6183270541e-09)) /* 0xb19eaf3c */ +var _S011 = float32(0.015619102865) /* 0x3c7fe744 */ +var _S021 = float32(0.00011692678527) /* 0x38f53697 */ +var _S031 = float32(5.1354652442e-07) /* 0x3509daa6 */ +var _S041 = float32(1.1661400734e-09) /* 0x30a045e8 */ + +func Xj0f(tls *TLS, x float32) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var ix Tuint32_t + var r, s, z float32 + _, _, _, _ = ix, r, s, z + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x7f800000) { + return Float32FromInt32(1) / float32(x*x) + } + x = Xfabsf(tls, x) + if ix >= uint32(0x40000000) { /* |x| >= 2 */ + /* large ulp error near zeros */ + return _common1(tls, ix, x, 0) + } + if ix >= uint32(0x3a000000) { /* |x| >= 2**-11 */ + /* up to 4ulp error near 2 */ + z = float32(x * x) + r = float32(z * (_R021 + float32(z*(_R031+float32(z*(_R041+float32(z*_R051))))))) + s = Float32FromInt32(1) + float32(z*(_S011+float32(z*(_S021+float32(z*(_S031+float32(z*_S041))))))) + return float32((Float32FromInt32(1)+x/Float32FromInt32(2))*(Float32FromInt32(1)-x/Float32FromInt32(2))) + float32(z*(r/s)) + } + if ix >= uint32(0x21800000) { /* |x| >= 2**-60 */ + x = float32(float32(Float32FromFloat32(0.25)*x) * x) + } + return Float32FromInt32(1) - x +} + +var _u001 = float32(-Float64FromFloat64(0.073804296553)) /* 0xbd9726b5 */ +var _u011 = float32(0.17666645348) /* 0x3e34e80d */ +var _u021 = float32(-Float64FromFloat64(0.013818567619)) /* 0xbc626746 */ +var _u031 = float32(0.00034745343146) /* 0x39b62a69 */ +var _u041 = float32(-Float64FromFloat64(3.8140706238e-06)) /* 0xb67ff53c */ +var _u051 = float32(1.9559013964e-08) /* 0x32a802ba */ +var _u061 = float32(-Float64FromFloat64(3.982051841e-11)) /* 0xae2f21eb */ +var _v011 = float32(0.012730483897) /* 0x3c509385 */ +var _v021 = float32(7.6006865129e-05) /* 0x389f65e0 */ +var _v031 = float32(2.5915085189e-07) /* 0x348b216c */ +var _v041 = float32(4.4111031494e-10) /* 0x2ff280c2 */ + +func Xy0f(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ix Tuint32_t + var u, v, z float32 + _, _, _, _ = ix, u, v, z + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + if ix&uint32(0x7fffffff) == uint32(0) { + return float32(-Int32FromInt32(1)) / Float32FromFloat32(0) + } + if ix>>int32(31) != 0 { + return Float32FromInt32(0) / Float32FromFloat32(0) + } + if ix >= uint32(0x7f800000) { + return Float32FromInt32(1) / x + } + if ix >= uint32(0x40000000) { /* |x| >= 2.0 */ + /* large ulp error near zeros */ + return _common1(tls, ix, x, int32(1)) + } + if ix >= uint32(0x39000000) { /* x >= 2**-13 */ + /* large ulp error at x ~= 0.89 */ + z = float32(x * x) + u = _u001 + float32(z*(_u011+float32(z*(_u021+float32(z*(_u031+float32(z*(_u041+float32(z*(_u051+float32(z*_u061))))))))))) + v = Float32FromInt32(1) + float32(z*(_v011+float32(z*(_v021+float32(z*(_v031+float32(z*_v041))))))) + return u/v + float32(_tpi1*float32(Xj0f(tls, x)*Xlogf(tls, x))) + } + return _u001 + float32(_tpi1*Xlogf(tls, x)) +} + +// C documentation +// +// /* The asymptotic expansions of pzero is +// * 1 - 9/128 s^2 + 11025/98304 s^4 - ..., where s = 1/x. +// * For x >= 2, We approximate pzero by +// * pzero(x) = 1 + (R/S) +// * where R = pR0 + pR1*s^2 + pR2*s^4 + ... + pR5*s^10 +// * S = 1 + pS0*s^2 + ... + pS4*s^10 +// * and +// * | pzero(x)-1-R/S | <= 2 ** ( -60.26) +// */ +var _pR81 = [6]float32{ + 1: float32(-Float64FromFloat64(0.0703125)), + 2: float32(-Float64FromFloat64(8.0816707611)), + 3: float32(-Float64FromFloat64(257.06311035)), + 4: float32(-Float64FromFloat64(2485.2163086)), + 5: float32(-Float64FromFloat64(5253.0439453)), +} +var _pS81 = [5]float32{ + 0: float32(116.53436279), + 1: float32(3833.744873), + 2: float32(40597.855469), + 3: float32(116752.96875), + 4: float32(47627.726562), +} +var _pR51 = [6]float32{ + 0: float32(-Float64FromFloat64(1.1412546255e-11)), + 1: float32(-Float64FromFloat64(0.070312492549)), + 2: float32(-Float64FromFloat64(4.1596107483)), + 3: float32(-Float64FromFloat64(67.674766541)), + 4: float32(-Float64FromFloat64(331.23129272)), + 5: float32(-Float64FromFloat64(346.43338013)), +} +var _pS53 = [5]float32{ + 0: float32(60.753936768), + 1: float32(1051.2523193), + 2: float32(5978.9707031), + 3: float32(9625.4453125), + 4: float32(2406.0581055), +} + +var _pR31 = [6]float32{ + 0: float32(-Float64FromFloat64(2.5470459075e-09)), + 1: float32(-Float64FromFloat64(0.070311963558)), + 2: float32(-Float64FromFloat64(2.4090321064)), + 3: float32(-Float64FromFloat64(21.965976715)), + 4: float32(-Float64FromFloat64(58.079170227)), + 5: float32(-Float64FromFloat64(31.447946548)), +} +var _pS33 = [5]float32{ + 0: float32(35.856033325), + 1: float32(361.51397705), + 2: float32(1193.6077881), + 3: float32(1127.9968262), + 4: float32(173.58093262), +} + +var _pR21 = [6]float32{ + 0: float32(-Float64FromFloat64(8.8753431271e-08)), + 1: float32(-Float64FromFloat64(0.070303097367)), + 2: float32(-Float64FromFloat64(1.45073843)), + 3: float32(-Float64FromFloat64(7.6356959343)), + 4: float32(-Float64FromFloat64(11.193166733)), + 5: float32(-Float64FromFloat64(3.2336456776)), +} +var _pS25 = [5]float32{ + 0: float32(22.220300674), + 1: float32(136.20678711), + 2: float32(270.47027588), + 3: float32(153.87539673), + 4: float32(14.657617569), +} + +func _pzerof(tls *TLS, x float32) (r1 float32) { + var ix Tuint32_t + var p, q uintptr + var r, s, z Tfloat_t + _, _, _, _, _, _ = ix, p, q, r, s, z + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x41000000) { + p = uintptr(unsafe.Pointer(&_pR81)) + q = uintptr(unsafe.Pointer(&_pS81)) + } else { + if ix >= uint32(0x409173eb) { + p = uintptr(unsafe.Pointer(&_pR51)) + q = uintptr(unsafe.Pointer(&_pS53)) + } else { + if ix >= uint32(0x4036d917) { + p = uintptr(unsafe.Pointer(&_pR31)) + q = uintptr(unsafe.Pointer(&_pS33)) + } else { /*ix >= 0x40000000*/ + p = uintptr(unsafe.Pointer(&_pR21)) + q = uintptr(unsafe.Pointer(&_pS25)) + } + } + } + z = float64(Float32FromFloat32(1) / float32(x*x)) + r = float64(**(**float32)(__ccgo_up(p))) + Tfloat_t(z*(float64(**(**float32)(__ccgo_up(p + 1*4)))+Tfloat_t(z*(float64(**(**float32)(__ccgo_up(p + 2*4)))+Tfloat_t(z*(float64(**(**float32)(__ccgo_up(p + 3*4)))+Tfloat_t(z*(float64(**(**float32)(__ccgo_up(p + 4*4)))+Tfloat_t(z*float64(**(**float32)(__ccgo_up(p + 5*4)))))))))))) + s = Float64FromFloat32(1) + Tfloat_t(z*(float64(**(**float32)(__ccgo_up(q)))+Tfloat_t(z*(float64(**(**float32)(__ccgo_up(q + 1*4)))+Tfloat_t(z*(float64(**(**float32)(__ccgo_up(q + 2*4)))+Tfloat_t(z*(float64(**(**float32)(__ccgo_up(q + 3*4)))+Tfloat_t(z*float64(**(**float32)(__ccgo_up(q + 4*4)))))))))))) + return float32(Float64FromFloat32(1) + r/s) +} + +// C documentation +// +// /* For x >= 8, the asymptotic expansions of qzero is +// * -1/8 s + 75/1024 s^3 - ..., where s = 1/x. +// * We approximate pzero by +// * qzero(x) = s*(-1.25 + (R/S)) +// * where R = qR0 + qR1*s^2 + qR2*s^4 + ... + qR5*s^10 +// * S = 1 + qS0*s^2 + ... + qS5*s^12 +// * and +// * | qzero(x)/s +1.25-R/S | <= 2 ** ( -61.22) +// */ +var _qR81 = [6]float32{ + 1: float32(0.0732421875), + 2: float32(11.768206596), + 3: float32(557.67340088), + 4: float32(8859.1972656), + 5: float32(37014.625), +} +var _qS81 = [6]float32{ + 0: float32(163.77603149), + 1: float32(8098.3447266), + 2: float32(142538.29688), + 3: float32(803309.25), + 4: float32(840501.5625), + 5: float32(-Float64FromFloat64(343899.28125)), +} + +var _qR51 = [6]float32{ + 0: float32(1.8408595828e-11), + 1: float32(0.073242180049), + 2: float32(5.8356351852), + 3: float32(135.11157227), + 4: float32(1027.2437744), + 5: float32(1989.9779053), +} +var _qS51 = [6]float32{ + 0: float32(82.776611328), + 1: float32(2077.814209), + 2: float32(18847.289062), + 3: float32(56751.113281), + 4: float32(35976.753906), + 5: float32(-Float64FromFloat64(5354.3427734)), +} + +var _qR31 = [6]float32{ + 0: float32(4.37740999e-09), + 1: float32(0.073241114616), + 2: float32(3.3442313671), + 3: float32(42.621845245), + 4: float32(170.80809021), + 5: float32(166.73394775), +} +var _qS33 = [6]float32{ + 0: float32(48.758872986), + 1: float32(709.68920898), + 2: float32(3704.1481934), + 3: float32(6460.425293), + 4: float32(2516.3337402), + 5: float32(-Float64FromFloat64(149.24745178)), +} + +var _qR21 = [6]float32{ + 0: float32(1.5044444979e-07), + 1: float32(0.073223426938), + 2: float32(1.9981917143), + 3: float32(14.495602608), + 4: float32(31.666231155), + 5: float32(16.252708435), +} +var _qS23 = [6]float32{ + 0: float32(30.365585327), + 1: float32(269.34811401), + 2: float32(844.78375244), + 3: float32(882.93585205), + 4: float32(212.66638184), + 5: float32(-Float64FromFloat64(5.3109550476)), +} + +func _qzerof(tls *TLS, x float32) (r1 float32) { + var ix Tuint32_t + var p, q uintptr + var r, s, z Tfloat_t + _, _, _, _, _, _ = ix, p, q, r, s, z + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x41000000) { + p = uintptr(unsafe.Pointer(&_qR81)) + q = uintptr(unsafe.Pointer(&_qS81)) + } else { + if ix >= uint32(0x409173eb) { + p = uintptr(unsafe.Pointer(&_qR51)) + q = uintptr(unsafe.Pointer(&_qS51)) + } else { + if ix >= uint32(0x4036d917) { + p = uintptr(unsafe.Pointer(&_qR31)) + q = uintptr(unsafe.Pointer(&_qS33)) + } else { /*ix >= 0x40000000*/ + p = uintptr(unsafe.Pointer(&_qR21)) + q = uintptr(unsafe.Pointer(&_qS23)) + } + } + } + z = float64(Float32FromFloat32(1) / float32(x*x)) + r = float64(**(**float32)(__ccgo_up(p))) + Tfloat_t(z*(float64(**(**float32)(__ccgo_up(p + 1*4)))+Tfloat_t(z*(float64(**(**float32)(__ccgo_up(p + 2*4)))+Tfloat_t(z*(float64(**(**float32)(__ccgo_up(p + 3*4)))+Tfloat_t(z*(float64(**(**float32)(__ccgo_up(p + 4*4)))+Tfloat_t(z*float64(**(**float32)(__ccgo_up(p + 5*4)))))))))))) + s = Float64FromFloat32(1) + Tfloat_t(z*(float64(**(**float32)(__ccgo_up(q)))+Tfloat_t(z*(float64(**(**float32)(__ccgo_up(q + 1*4)))+Tfloat_t(z*(float64(**(**float32)(__ccgo_up(q + 2*4)))+Tfloat_t(z*(float64(**(**float32)(__ccgo_up(q + 3*4)))+Tfloat_t(z*(float64(**(**float32)(__ccgo_up(q + 4*4)))+Tfloat_t(z*float64(**(**float32)(__ccgo_up(q + 5*4)))))))))))))) + return float32((float64(-Float32FromFloat32(0.125)) + r/s) / float64(x)) +} + +var _invsqrtpi2 = float64(0.5641895835477563) /* 0x3FE20DD7, 0x50429B6D */ +var _tpi2 = float64(0.6366197723675814) /* 0x3FE45F30, 0x6DC9C883 */ + +func _common2(tls *TLS, ix Tuint32_t, x float64, y1 int32, sign int32) (r float64) { + var c, cc, s, ss, z float64 + _, _, _, _, _ = c, cc, s, ss, z + /* + * j1(x) = sqrt(2/(pi*x))*(p1(x)*cos(x-3pi/4)-q1(x)*sin(x-3pi/4)) + * y1(x) = sqrt(2/(pi*x))*(p1(x)*sin(x-3pi/4)+q1(x)*cos(x-3pi/4)) + * + * sin(x-3pi/4) = -(sin(x) + cos(x))/sqrt(2) + * cos(x-3pi/4) = (sin(x) - cos(x))/sqrt(2) + * sin(x) +- cos(x) = -cos(2x)/(sin(x) -+ cos(x)) + */ + s = Xsin(tls, x) + if y1 != 0 { + s = -s + } + c = Xcos(tls, x) + cc = s - c + if ix < uint32(0x7fe00000) { + /* avoid overflow in 2*x */ + ss = -s - c + z = Xcos(tls, float64(Float64FromInt32(2)*x)) + if float64(s*c) > Float64FromInt32(0) { + cc = z / ss + } else { + ss = z / cc + } + if ix < uint32(0x48000000) { + if y1 != 0 { + ss = -ss + } + cc = float64(_pone(tls, x)*cc) - float64(_qone(tls, x)*ss) + } + } + if sign != 0 { + cc = -cc + } + return float64(_invsqrtpi2*cc) / Xsqrt(tls, x) +} + +// C documentation +// +// /* R0/S0 on [0,2] */ + +var _r00 = -Float64FromFloat64(0.0625) /* 0xBFB00000, 0x00000000 */ +var _r01 = float64(0.001407056669551897) /* 0x3F570D9F, 0x98472C61 */ +var _r02 = -Float64FromFloat64(1.599556310840356e-05) /* 0xBEF0C5C6, 0xBA169668 */ +var _r03 = float64(4.9672799960958445e-08) /* 0x3E6AAAFA, 0x46CA0BD9 */ +var _s01 = float64(0.019153759953836346) /* 0x3F939D0B, 0x12637E53 */ +var _s02 = float64(0.00018594678558863092) /* 0x3F285F56, 0xB9CDF664 */ +var _s03 = float64(1.1771846404262368e-06) /* 0x3EB3BFF8, 0x333F8498 */ +var _s04 = float64(5.0463625707621704e-09) /* 0x3E35AC88, 0xC97DFF2C */ +var _s05 = float64(1.2354227442613791e-11) /* 0x3DAB2ACF, 0xCFB97ED8 */ + +func Xj1(tls *TLS, x float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var ix Tuint32_t + var r, s, z float64 + var sign int32 + _, _, _, _, _ = ix, r, s, sign, z + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x7ff00000) { + return Float64FromInt32(1) / float64(x*x) + } + if ix >= uint32(0x40000000) { /* |x| >= 2 */ + return _common2(tls, ix, Xfabs(tls, x), 0, sign) + } + if ix >= uint32(0x38000000) { /* |x| >= 2**-127 */ + z = float64(x * x) + r = float64(z * (_r00 + float64(z*(_r01+float64(z*(_r02+float64(z*_r03))))))) + s = Float64FromInt32(1) + float64(z*(_s01+float64(z*(_s02+float64(z*(_s03+float64(z*(_s04+float64(z*_s05))))))))) + z = r / s + } else { + /* avoid underflow, raise inexact if x!=0 */ + z = x + } + return float64((float64(0.5) + z) * x) +} + +var _U0 = [5]float64{ + 0: -Float64FromFloat64(0.19605709064623894), + 1: float64(0.05044387166398113), + 2: -Float64FromFloat64(0.0019125689587576355), + 3: float64(2.352526005616105e-05), + 4: -Float64FromFloat64(9.190991580398789e-08), +} +var _V0 = [5]float64{ + 0: float64(0.01991673182366499), + 1: float64(0.00020255258102513517), + 2: float64(1.3560880109751623e-06), + 3: float64(6.227414523646215e-09), + 4: float64(1.6655924620799208e-11), +} + +func Xy1(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __u Tuint64_t + var ix, lx Tuint32_t + var u, v, z float64 + _, _, _, _, _, _ = __u, ix, lx, u, v, z + __u = *(*Tuint64_t)(unsafe.Pointer(&x)) + ix = uint32(__u >> int32(32)) + lx = uint32(__u) + /* y1(nan)=nan, y1(<0)=nan, y1(0)=-inf, y1(inf)=0 */ + if ix<>int32(31) != 0 { + return Float64FromInt32(0) / Float64FromFloat64(0) + } + if ix >= uint32(0x7ff00000) { + return Float64FromInt32(1) / x + } + if ix >= uint32(0x40000000) { /* x >= 2 */ + return _common2(tls, ix, x, int32(1), 0) + } + if ix < uint32(0x3c900000) { /* x < 2**-54 */ + return -_tpi2 / x + } + z = float64(x * x) + u = _U0[0] + float64(z*(_U0[int32(1)]+float64(z*(_U0[int32(2)]+float64(z*(_U0[int32(3)]+float64(z*_U0[int32(4)]))))))) + v = Float64FromInt32(1) + float64(z*(_V0[0]+float64(z*(_V0[int32(1)]+float64(z*(_V0[int32(2)]+float64(z*(_V0[int32(3)]+float64(z*_V0[int32(4)]))))))))) + return float64(x*(u/v)) + float64(_tpi2*(float64(Xj1(tls, x)*Xlog(tls, x))-Float64FromInt32(1)/x)) +} + +/* For x >= 8, the asymptotic expansions of pone is + * 1 + 15/128 s^2 - 4725/2^15 s^4 - ..., where s = 1/x. + * We approximate pone by + * pone(x) = 1 + (R/S) + * where R = pr0 + pr1*s^2 + pr2*s^4 + ... + pr5*s^10 + * S = 1 + ps0*s^2 + ... + ps4*s^10 + * and + * | pone(x)-1-R/S | <= 2 ** ( -60.06) + */ + +var _pr8 = [6]float64{ + 1: float64(0.11718749999998865), + 2: float64(13.239480659307358), + 3: float64(412.05185430737856), + 4: float64(3874.7453891396053), + 5: float64(7914.479540318917), +} +var _ps8 = [5]float64{ + 0: float64(114.20737037567841), + 1: float64(3650.9308342085346), + 2: float64(36956.206026903346), + 3: float64(97602.79359349508), + 4: float64(30804.27206278888), +} + +var _pr5 = [6]float64{ + 0: float64(1.3199051955624352e-11), + 1: float64(0.1171874931906141), + 2: float64(6.802751278684329), + 3: float64(108.30818299018911), + 4: float64(517.6361395331998), + 5: float64(528.7152013633375), +} +var _ps5 = [5]float64{ + 0: float64(59.28059872211313), + 1: float64(991.4014187336144), + 2: float64(5353.26695291488), + 3: float64(7844.690317495512), + 4: float64(1504.0468881036106), +} + +var _pr3 = [6]float64{ + 0: float64(3.025039161373736e-09), + 1: float64(0.11718686556725359), + 2: float64(3.9329775003331564), + 3: float64(35.11940355916369), + 4: float64(91.05501107507813), + 5: float64(48.55906851973649), +} +var _ps3 = [5]float64{ + 0: float64(34.79130950012515), + 1: float64(336.76245874782575), + 2: float64(1046.8713997577513), + 3: float64(890.8113463982564), + 4: float64(103.78793243963928), +} + +var _pr2 = [6]float64{ + 0: float64(1.0771083010687374e-07), + 1: float64(0.11717621946268335), + 2: float64(2.368514966676088), + 3: float64(12.242610914826123), + 4: float64(17.693971127168773), + 5: float64(5.073523125888185), +} +var _ps2 = [5]float64{ + 0: float64(21.43648593638214), + 1: float64(125.29022716840275), + 2: float64(232.2764690571628), + 3: float64(117.6793732871471), + 4: float64(8.364638933716183), +} + +func _pone(tls *TLS, x float64) (r1 float64) { + var ix Tuint32_t + var p, q uintptr + var r, s, z Tdouble_t + _, _, _, _, _, _ = ix, p, q, r, s, z + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x40200000) { + p = uintptr(unsafe.Pointer(&_pr8)) + q = uintptr(unsafe.Pointer(&_ps8)) + } else { + if ix >= uint32(0x40122E8B) { + p = uintptr(unsafe.Pointer(&_pr5)) + q = uintptr(unsafe.Pointer(&_ps5)) + } else { + if ix >= uint32(0x4006DB6D) { + p = uintptr(unsafe.Pointer(&_pr3)) + q = uintptr(unsafe.Pointer(&_ps3)) + } else { /*ix >= 0x40000000*/ + p = uintptr(unsafe.Pointer(&_pr2)) + q = uintptr(unsafe.Pointer(&_ps2)) + } + } + } + z = float64(1) / float64(x*x) + r = **(**float64)(__ccgo_up(p)) + float64(z*(**(**float64)(__ccgo_up(p + 1*8))+float64(z*(**(**float64)(__ccgo_up(p + 2*8))+float64(z*(**(**float64)(__ccgo_up(p + 3*8))+float64(z*(**(**float64)(__ccgo_up(p + 4*8))+float64(z***(**float64)(__ccgo_up(p + 5*8))))))))))) + s = float64(1) + float64(z*(**(**float64)(__ccgo_up(q))+float64(z*(**(**float64)(__ccgo_up(q + 1*8))+float64(z*(**(**float64)(__ccgo_up(q + 2*8))+float64(z*(**(**float64)(__ccgo_up(q + 3*8))+float64(z***(**float64)(__ccgo_up(q + 4*8))))))))))) + return float64(1) + r/s +} + +/* For x >= 8, the asymptotic expansions of qone is + * 3/8 s - 105/1024 s^3 - ..., where s = 1/x. + * We approximate pone by + * qone(x) = s*(0.375 + (R/S)) + * where R = qr1*s^2 + qr2*s^4 + ... + qr5*s^10 + * S = 1 + qs1*s^2 + ... + qs6*s^12 + * and + * | qone(x)/s -0.375-R/S | <= 2 ** ( -61.13) + */ + +var _qr8 = [6]float64{ + 1: -Float64FromFloat64(0.10253906249999271), + 2: -Float64FromFloat64(16.271753454459), + 3: -Float64FromFloat64(759.6017225139501), + 4: -Float64FromFloat64(11849.806670242959), + 5: -Float64FromFloat64(48438.512428575035), +} +var _qs8 = [6]float64{ + 0: float64(161.3953697007229), + 1: float64(7825.385999233485), + 2: float64(133875.33628724958), + 3: float64(719657.7236832409), + 4: float64(666601.2326177764), + 5: -Float64FromFloat64(294490.26430383464), +} + +var _qr5 = [6]float64{ + 0: -Float64FromFloat64(2.089799311417641e-11), + 1: -Float64FromFloat64(0.10253905024137543), + 2: -Float64FromFloat64(8.05644828123936), + 3: -Float64FromFloat64(183.66960747488838), + 4: -Float64FromFloat64(1373.1937606550816), + 5: -Float64FromFloat64(2612.4444045321566), +} +var _qs5 = [6]float64{ + 0: float64(81.27655013843358), + 1: float64(1991.7987346048596), + 2: float64(17468.48519249089), + 3: float64(49851.42709103523), + 4: float64(27948.075163891812), + 5: -Float64FromFloat64(4719.183547951285), +} + +var _qr3 = [6]float64{ + 0: -Float64FromFloat64(5.078312264617666e-09), + 1: -Float64FromFloat64(0.10253782982083709), + 2: -Float64FromFloat64(4.610115811394734), + 3: -Float64FromFloat64(57.847221656278364), + 4: -Float64FromFloat64(228.2445407376317), + 5: -Float64FromFloat64(219.21012847890933), +} +var _qs3 = [6]float64{ + 0: float64(47.66515503237295), + 1: float64(673.8651126766997), + 2: float64(3380.1528667952634), + 3: float64(5547.729097207228), + 4: float64(1903.119193388108), + 5: -Float64FromFloat64(135.20119144430734), +} + +var _qr2 = [6]float64{ + 0: -Float64FromFloat64(1.7838172751095887e-07), + 1: -Float64FromFloat64(0.10251704260798555), + 2: -Float64FromFloat64(2.7522056827818746), + 3: -Float64FromFloat64(19.663616264370372), + 4: -Float64FromFloat64(42.32531333728305), + 5: -Float64FromFloat64(21.371921170370406), +} +var _qs2 = [6]float64{ + 0: float64(29.533362906052385), + 1: float64(252.98154998219053), + 2: float64(757.5028348686454), + 3: float64(739.3932053204672), + 4: float64(155.94900333666612), + 5: -Float64FromFloat64(4.959498988226282), +} + +func _qone(tls *TLS, x float64) (r1 float64) { + var ix Tuint32_t + var p, q uintptr + var r, s, z Tdouble_t + _, _, _, _, _, _ = ix, p, q, r, s, z + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x40200000) { + p = uintptr(unsafe.Pointer(&_qr8)) + q = uintptr(unsafe.Pointer(&_qs8)) + } else { + if ix >= uint32(0x40122E8B) { + p = uintptr(unsafe.Pointer(&_qr5)) + q = uintptr(unsafe.Pointer(&_qs5)) + } else { + if ix >= uint32(0x4006DB6D) { + p = uintptr(unsafe.Pointer(&_qr3)) + q = uintptr(unsafe.Pointer(&_qs3)) + } else { /*ix >= 0x40000000*/ + p = uintptr(unsafe.Pointer(&_qr2)) + q = uintptr(unsafe.Pointer(&_qs2)) + } + } + } + z = float64(1) / float64(x*x) + r = **(**float64)(__ccgo_up(p)) + float64(z*(**(**float64)(__ccgo_up(p + 1*8))+float64(z*(**(**float64)(__ccgo_up(p + 2*8))+float64(z*(**(**float64)(__ccgo_up(p + 3*8))+float64(z*(**(**float64)(__ccgo_up(p + 4*8))+float64(z***(**float64)(__ccgo_up(p + 5*8))))))))))) + s = float64(1) + float64(z*(**(**float64)(__ccgo_up(q))+float64(z*(**(**float64)(__ccgo_up(q + 1*8))+float64(z*(**(**float64)(__ccgo_up(q + 2*8))+float64(z*(**(**float64)(__ccgo_up(q + 3*8))+float64(z*(**(**float64)(__ccgo_up(q + 4*8))+float64(z***(**float64)(__ccgo_up(q + 5*8))))))))))))) + return (float64(0.375) + r/s) / x +} + +var _invsqrtpi3 = float32(0.56418961287) /* 0x3f106ebb */ +var _tpi3 = float32(0.63661974669) /* 0x3f22f983 */ + +func _common3(tls *TLS, ix Tuint32_t, x float32, y1 int32, sign int32) (r float32) { + var c, cc, s, ss, z float64 + _, _, _, _, _ = c, cc, s, ss, z + s = float64(Xsinf(tls, x)) + if y1 != 0 { + s = -s + } + c = float64(Xcosf(tls, x)) + cc = s - c + if ix < uint32(0x7f000000) { + ss = -s - c + z = float64(Xcosf(tls, float32(Float32FromInt32(2)*x))) + if float64(s*c) > Float64FromInt32(0) { + cc = z / ss + } else { + ss = z / cc + } + if ix < uint32(0x58800000) { + if y1 != 0 { + ss = -ss + } + cc = float64(float64(_ponef(tls, x))*cc) - float64(float64(_qonef(tls, x))*ss) + } + } + if sign != 0 { + cc = -cc + } + return float32(float64(float64(_invsqrtpi3)*cc) / float64(Xsqrtf(tls, x))) +} + +// C documentation +// +// /* R0/S0 on [0,2] */ + +var _r001 = float32(-Float64FromFloat64(0.0625)) /* 0xbd800000 */ +var _r011 = float32(0.0014070566976) /* 0x3ab86cfd */ +var _r021 = float32(-Float64FromFloat64(1.5995563444e-05)) /* 0xb7862e36 */ +var _r031 = float32(4.9672799207e-08) /* 0x335557d2 */ +var _s011 = float32(0.019153760746) /* 0x3c9ce859 */ +var _s021 = float32(0.00018594678841) /* 0x3942fab6 */ +var _s031 = float32(1.1771846857e-06) /* 0x359dffc2 */ +var _s041 = float32(5.046362439e-09) /* 0x31ad6446 */ +var _s051 = float32(1.2354227016e-11) /* 0x2d59567e */ + +func Xj1f(tls *TLS, x float32) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var ix Tuint32_t + var r, s, z float32 + var sign int32 + _, _, _, _, _ = ix, r, s, sign, z + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x7f800000) { + return Float32FromInt32(1) / float32(x*x) + } + if ix >= uint32(0x40000000) { /* |x| >= 2 */ + return _common3(tls, ix, Xfabsf(tls, x), 0, sign) + } + if ix >= uint32(0x39000000) { /* |x| >= 2**-13 */ + z = float32(x * x) + r = float32(z * (_r001 + float32(z*(_r011+float32(z*(_r021+float32(z*_r031))))))) + s = Float32FromInt32(1) + float32(z*(_s011+float32(z*(_s021+float32(z*(_s031+float32(z*(_s041+float32(z*_s051))))))))) + z = Float32FromFloat32(0.5) + r/s + } else { + z = Float32FromFloat32(0.5) + } + return float32(z * x) +} + +var _U01 = [5]float32{ + 0: float32(-Float64FromFloat64(0.19605709612)), + 1: float32(0.050443872809), + 2: float32(-Float64FromFloat64(0.0019125689287)), + 3: float32(2.3525259166e-05), + 4: float32(-Float64FromFloat64(9.1909917899e-08)), +} +var _V01 = [5]float32{ + 0: float32(0.019916731864), + 1: float32(0.0002025525755), + 2: float32(1.3560879779e-06), + 3: float32(6.227414584e-09), + 4: float32(1.6655924903e-11), +} + +func Xy1f(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ix Tuint32_t + var u, v, z float32 + _, _, _, _ = ix, u, v, z + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + if ix&uint32(0x7fffffff) == uint32(0) { + return float32(-Int32FromInt32(1)) / Float32FromFloat32(0) + } + if ix>>int32(31) != 0 { + return Float32FromInt32(0) / Float32FromFloat32(0) + } + if ix >= uint32(0x7f800000) { + return Float32FromInt32(1) / x + } + if ix >= uint32(0x40000000) { /* |x| >= 2.0 */ + return _common3(tls, ix, x, int32(1), 0) + } + if ix < uint32(0x33000000) { /* x < 2**-25 */ + return -_tpi3 / x + } + z = float32(x * x) + u = _U01[0] + float32(z*(_U01[int32(1)]+float32(z*(_U01[int32(2)]+float32(z*(_U01[int32(3)]+float32(z*_U01[int32(4)]))))))) + v = Float32FromFloat32(1) + float32(z*(_V01[0]+float32(z*(_V01[int32(1)]+float32(z*(_V01[int32(2)]+float32(z*(_V01[int32(3)]+float32(z*_V01[int32(4)]))))))))) + return float32(x*(u/v)) + float32(_tpi3*(float32(Xj1f(tls, x)*Xlogf(tls, x))-Float32FromFloat32(1)/x)) +} + +/* For x >= 8, the asymptotic expansions of pone is + * 1 + 15/128 s^2 - 4725/2^15 s^4 - ..., where s = 1/x. + * We approximate pone by + * pone(x) = 1 + (R/S) + * where R = pr0 + pr1*s^2 + pr2*s^4 + ... + pr5*s^10 + * S = 1 + ps0*s^2 + ... + ps4*s^10 + * and + * | pone(x)-1-R/S | <= 2 ** ( -60.06) + */ + +var _pr81 = [6]float32{ + 1: float32(0.1171875), + 2: float32(13.239480972), + 3: float32(412.05184937), + 4: float32(3874.7453613), + 5: float32(7914.4794922), +} +var _ps81 = [5]float32{ + 0: float32(114.20736694), + 1: float32(3650.9309082), + 2: float32(36956.207031), + 3: float32(97602.796875), + 4: float32(30804.271484), +} + +var _pr51 = [6]float32{ + 0: float32(1.3199052094e-11), + 1: float32(0.11718749255), + 2: float32(6.8027510643), + 3: float32(108.30818176), + 4: float32(517.63616943), + 5: float32(528.71520996), +} +var _ps51 = [5]float32{ + 0: float32(59.280597687), + 1: float32(991.40142822), + 2: float32(5353.2670898), + 3: float32(7844.6904297), + 4: float32(1504.046875), +} + +var _pr31 = [6]float32{ + 0: float32(3.0250391081e-09), + 1: float32(0.1171868667), + 2: float32(3.932977438), + 3: float32(35.119403839), + 4: float32(91.055007935), + 5: float32(48.559066772), +} +var _ps31 = [5]float32{ + 0: float32(34.791309357), + 1: float32(336.76245117), + 2: float32(1046.87146), + 3: float32(890.81134033), + 4: float32(103.78793335), +} + +var _pr21 = [6]float32{ + 0: float32(1.0771083225e-07), + 1: float32(0.11717621982), + 2: float32(2.3685150146), + 3: float32(12.242610931), + 4: float32(17.693971634), + 5: float32(5.0735230446), +} +var _ps21 = [5]float32{ + 0: float32(21.436485291), + 1: float32(125.2902298), + 2: float32(232.276474), + 3: float32(117.67937469), + 4: float32(8.3646392822), +} + +func _ponef(tls *TLS, x float32) (r1 float32) { + var ix Tuint32_t + var p, q uintptr + var r, s, z Tfloat_t + _, _, _, _, _, _ = ix, p, q, r, s, z + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x41000000) { + p = uintptr(unsafe.Pointer(&_pr81)) + q = uintptr(unsafe.Pointer(&_ps81)) + } else { + if ix >= uint32(0x409173eb) { + p = uintptr(unsafe.Pointer(&_pr51)) + q = uintptr(unsafe.Pointer(&_ps51)) + } else { + if ix >= uint32(0x4036d917) { + p = uintptr(unsafe.Pointer(&_pr31)) + q = uintptr(unsafe.Pointer(&_ps31)) + } else { /*ix >= 0x40000000*/ + p = uintptr(unsafe.Pointer(&_pr21)) + q = uintptr(unsafe.Pointer(&_ps21)) + } + } + } + z = float64(Float32FromFloat32(1) / float32(x*x)) + r = float64(**(**float32)(__ccgo_up(p))) + Tfloat_t(z*(float64(**(**float32)(__ccgo_up(p + 1*4)))+Tfloat_t(z*(float64(**(**float32)(__ccgo_up(p + 2*4)))+Tfloat_t(z*(float64(**(**float32)(__ccgo_up(p + 3*4)))+Tfloat_t(z*(float64(**(**float32)(__ccgo_up(p + 4*4)))+Tfloat_t(z*float64(**(**float32)(__ccgo_up(p + 5*4)))))))))))) + s = Float64FromFloat32(1) + Tfloat_t(z*(float64(**(**float32)(__ccgo_up(q)))+Tfloat_t(z*(float64(**(**float32)(__ccgo_up(q + 1*4)))+Tfloat_t(z*(float64(**(**float32)(__ccgo_up(q + 2*4)))+Tfloat_t(z*(float64(**(**float32)(__ccgo_up(q + 3*4)))+Tfloat_t(z*float64(**(**float32)(__ccgo_up(q + 4*4)))))))))))) + return float32(Float64FromFloat32(1) + r/s) +} + +/* For x >= 8, the asymptotic expansions of qone is + * 3/8 s - 105/1024 s^3 - ..., where s = 1/x. + * We approximate pone by + * qone(x) = s*(0.375 + (R/S)) + * where R = qr1*s^2 + qr2*s^4 + ... + qr5*s^10 + * S = 1 + qs1*s^2 + ... + qs6*s^12 + * and + * | qone(x)/s -0.375-R/S | <= 2 ** ( -61.13) + */ + +var _qr81 = [6]float32{ + 1: float32(-Float64FromFloat64(0.1025390625)), + 2: float32(-Float64FromFloat64(16.271753311)), + 3: float32(-Float64FromFloat64(759.60174561)), + 4: float32(-Float64FromFloat64(11849.806641)), + 5: float32(-Float64FromFloat64(48438.511719)), +} +var _qs81 = [6]float32{ + 0: float32(161.39537048), + 1: float32(7825.3862305), + 2: float32(133875.34375), + 3: float32(719657.75), + 4: float32(666601.25), + 5: float32(-Float64FromFloat64(294490.25)), +} + +var _qr51 = [6]float32{ + 0: float32(-Float64FromFloat64(2.0897993405e-11)), + 1: float32(-Float64FromFloat64(0.1025390476)), + 2: float32(-Float64FromFloat64(8.0564479828)), + 3: float32(-Float64FromFloat64(183.66960144)), + 4: float32(-Float64FromFloat64(1373.1937256)), + 5: float32(-Float64FromFloat64(2612.4443359)), +} +var _qs51 = [6]float32{ + 0: float32(81.276550293), + 1: float32(1991.7987061), + 2: float32(17468.484375), + 3: float32(49851.425781), + 4: float32(27948.074219), + 5: float32(-Float64FromFloat64(4719.1835938)), +} + +var _qr31 = [6]float32{ + 0: float32(-Float64FromFloat64(5.0783124372e-09)), + 1: float32(-Float64FromFloat64(0.10253783315)), + 2: float32(-Float64FromFloat64(4.6101160049)), + 3: float32(-Float64FromFloat64(57.847221375)), + 4: float32(-Float64FromFloat64(228.24453735)), + 5: float32(-Float64FromFloat64(219.21012878)), +} +var _qs31 = [6]float32{ + 0: float32(47.665153503), + 1: float32(673.8651123), + 2: float32(3380.152832), + 3: float32(5547.7290039), + 4: float32(1903.1191406), + 5: float32(-Float64FromFloat64(135.20118713)), +} + +var _qr21 = [6]float32{ + 0: float32(-Float64FromFloat64(1.7838172539e-07)), + 1: float32(-Float64FromFloat64(0.10251704603)), + 2: float32(-Float64FromFloat64(2.7522056103)), + 3: float32(-Float64FromFloat64(19.66361618)), + 4: float32(-Float64FromFloat64(42.325313568)), + 5: float32(-Float64FromFloat64(21.371921539)), +} +var _qs21 = [6]float32{ + 0: float32(29.533363342), + 1: float32(252.98155212), + 2: float32(757.50280762), + 3: float32(739.39318848), + 4: float32(155.94900513), + 5: float32(-Float64FromFloat64(4.9594988823)), +} + +func _qonef(tls *TLS, x float32) (r1 float32) { + var ix Tuint32_t + var p, q uintptr + var r, s, z Tfloat_t + _, _, _, _, _, _ = ix, p, q, r, s, z + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + ix = ix & uint32(0x7fffffff) + if ix >= uint32(0x41000000) { + p = uintptr(unsafe.Pointer(&_qr81)) + q = uintptr(unsafe.Pointer(&_qs81)) + } else { + if ix >= uint32(0x409173eb) { + p = uintptr(unsafe.Pointer(&_qr51)) + q = uintptr(unsafe.Pointer(&_qs51)) + } else { + if ix >= uint32(0x4036d917) { + p = uintptr(unsafe.Pointer(&_qr31)) + q = uintptr(unsafe.Pointer(&_qs31)) + } else { /*ix >= 0x40000000*/ + p = uintptr(unsafe.Pointer(&_qr21)) + q = uintptr(unsafe.Pointer(&_qs21)) + } + } + } + z = float64(Float32FromFloat32(1) / float32(x*x)) + r = float64(**(**float32)(__ccgo_up(p))) + Tfloat_t(z*(float64(**(**float32)(__ccgo_up(p + 1*4)))+Tfloat_t(z*(float64(**(**float32)(__ccgo_up(p + 2*4)))+Tfloat_t(z*(float64(**(**float32)(__ccgo_up(p + 3*4)))+Tfloat_t(z*(float64(**(**float32)(__ccgo_up(p + 4*4)))+Tfloat_t(z*float64(**(**float32)(__ccgo_up(p + 5*4)))))))))))) + s = Float64FromFloat32(1) + Tfloat_t(z*(float64(**(**float32)(__ccgo_up(q)))+Tfloat_t(z*(float64(**(**float32)(__ccgo_up(q + 1*4)))+Tfloat_t(z*(float64(**(**float32)(__ccgo_up(q + 2*4)))+Tfloat_t(z*(float64(**(**float32)(__ccgo_up(q + 3*4)))+Tfloat_t(z*(float64(**(**float32)(__ccgo_up(q + 4*4)))+Tfloat_t(z*float64(**(**float32)(__ccgo_up(q + 5*4)))))))))))))) + return float32((Float64FromFloat32(0.375) + r/s) / float64(x)) +} + +var _invsqrtpi4 = float64(0.5641895835477563) /* 0x3FE20DD7, 0x50429B6D */ + +func Xjn(tls *TLS, n int32, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v n=%v x=%v, (%v:)", tls, n, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __u Tuint64_t + var a, b, h, nf, q0, q1, t, temp, tmp, w, z, v6 float64 + var i, k, nm1, sign int32 + var ix, lx Tuint32_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = __u, a, b, h, i, ix, k, lx, nf, nm1, q0, q1, sign, t, temp, tmp, w, z, v6 + __u = *(*Tuint64_t)(unsafe.Pointer(&x)) + ix = uint32(__u >> int32(32)) + lx = uint32(__u) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix|(lx|-lx)>>int32(31) > uint32(0x7ff00000) { /* nan */ + return x + } + /* J(-n,x) = (-1)^n * J(n, x), J(n, -x) = (-1)^n * J(n, x) + * Thus, J(-n,x) = J(n,-x) + */ + /* nm1 = |n|-1 is used instead of |n| to handle n==INT_MIN */ + if n == 0 { + return Xj0(tls, x) + } + if n < 0 { + nm1 = -(n + int32(1)) + x = -x + sign = sign ^ int32(1) + } else { + nm1 = n - int32(1) + } + if nm1 == 0 { + return Xj1(tls, x) + } + sign = sign & n /* even n: 0, odd n: signbit(x) */ + x = Xfabs(tls, x) + if ix|lx == uint32(0) || ix == uint32(0x7ff00000) { /* if x is 0 or inf */ + b = float64(0) + } else { + if float64(nm1) < x { + /* Safe to use J(n+1,x)=2n/x *J(n,x)-J(n-1,x) */ + if ix >= uint32(0x52d00000) { /* x > 2**302 */ + /* (x >> n**2) + * Jn(x) = cos(x-(2n+1)*pi/4)*sqrt(2/x*pi) + * Yn(x) = sin(x-(2n+1)*pi/4)*sqrt(2/x*pi) + * Let s=sin(x), c=cos(x), + * xn=x-(2n+1)*pi/4, sqt2 = sqrt(2),then + * + * n sin(xn)*sqt2 cos(xn)*sqt2 + * ---------------------------------- + * 0 s-c c+s + * 1 -s-c -c+s + * 2 -s+c -c-s + * 3 s+c c-s + */ + switch nm1 & Int32FromInt32(3) { + case 0: + temp = -Xcos(tls, x) + Xsin(tls, x) + case int32(1): + temp = -Xcos(tls, x) - Xsin(tls, x) + case int32(2): + temp = Xcos(tls, x) - Xsin(tls, x) + default: + fallthrough + case int32(3): + temp = Xcos(tls, x) + Xsin(tls, x) + break + } + b = float64(_invsqrtpi4*temp) / Xsqrt(tls, x) + } else { + a = Xj0(tls, x) + b = Xj1(tls, x) + i = 0 + for { + if !(i < nm1) { + break + } + i = i + 1 + temp = b + b = float64(b*(float64(float64(2)*float64(i))/x)) - a /* avoid underflow */ + a = temp + goto _1 + _1: + } + } + } else { + if ix < uint32(0x3e100000) { /* x < 2**-29 */ + /* x is tiny, return the first Taylor expansion of J(n,x) + * J(n,x) = 1/n!*(x/2)^n - ... + */ + if nm1 > int32(32) { /* underflow */ + b = float64(0) + } else { + temp = float64(x * float64(0.5)) + b = temp + a = float64(1) + i = int32(2) + for { + if !(i <= nm1+int32(1)) { + break + } + a = a * float64(i) /* a = n! */ + b = b * temp /* b = (x/2)^n */ + goto _2 + _2: + ; + i = i + 1 + } + b = b / a + } + } else { + nf = float64(nm1) + float64(1) + w = float64(Float64FromInt32(2)*nf) / x + h = Float64FromInt32(2) / x + z = w + h + q0 = w + q1 = float64(w*z) - float64(1) + k = int32(1) + for q1 < float64(1e+09) { + k = k + int32(1) + z = z + h + tmp = float64(z*q1) - q0 + q0 = q1 + q1 = tmp + } + t = float64(0) + i = k + for { + if !(i >= 0) { + break + } + t = Float64FromInt32(1) / (float64(Float64FromInt32(2)*(float64(i)+nf))/x - t) + goto _3 + _3: + ; + i = i - 1 + } + a = t + b = float64(1) + /* estimate log((2/x)^n*n!) = n*log(2/x)+n*ln(n) + * Hence, if n*(log(2n/x)) > ... + * single 8.8722839355e+01 + * double 7.09782712893383973096e+02 + * long double 1.1356523406294143949491931077970765006170e+04 + * then recurrent value may overflow and the result is + * likely underflow to zero + */ + tmp = float64(nf * Xlog(tls, Xfabs(tls, w))) + if tmp < float64(709.782712893384) { + i = nm1 + for { + if !(i > 0) { + break + } + temp = b + b = float64(b*float64(float64(2)*float64(i)))/x - a + a = temp + goto _4 + _4: + ; + i = i - 1 + } + } else { + i = nm1 + for { + if !(i > 0) { + break + } + temp = b + b = float64(b*float64(float64(2)*float64(i)))/x - a + a = temp + /* scale b to avoid spurious overflow */ + if b > float64(3.273390607896142e+150) { + a = a / b + t = t / b + b = float64(1) + } + goto _5 + _5: + ; + i = i - 1 + } + } + z = Xj0(tls, x) + w = Xj1(tls, x) + if Xfabs(tls, z) >= Xfabs(tls, w) { + b = float64(t*z) / b + } else { + b = float64(t*w) / a + } + } + } + } + if sign != 0 { + v6 = -b + } else { + v6 = b + } + return v6 +} + +func Xyn(tls *TLS, n int32, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v n=%v x=%v, (%v:)", tls, n, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __u Tuint64_t + var a, b, temp, v1 float64 + var i, nm1, sign int32 + var ib, ix, lx Tuint32_t + _, _, _, _, _, _, _, _, _, _, _ = __u, a, b, i, ib, ix, lx, nm1, sign, temp, v1 + __u = *(*Tuint64_t)(unsafe.Pointer(&x)) + ix = uint32(__u >> int32(32)) + lx = uint32(__u) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix|(lx|-lx)>>int32(31) > uint32(0x7ff00000) { /* nan */ + return x + } + if sign != 0 && ix|lx != uint32(0) { /* x < 0 */ + return Float64FromInt32(0) / Float64FromFloat64(0) + } + if ix == uint32(0x7ff00000) { + return float64(0) + } + if n == 0 { + return Xy0(tls, x) + } + if n < 0 { + nm1 = -(n + int32(1)) + sign = n & int32(1) + } else { + nm1 = n - int32(1) + sign = 0 + } + if nm1 == 0 { + if sign != 0 { + v1 = -Xy1(tls, x) + } else { + v1 = Xy1(tls, x) + } + return v1 + } + if ix >= uint32(0x52d00000) { /* x > 2**302 */ + /* (x >> n**2) + * Jn(x) = cos(x-(2n+1)*pi/4)*sqrt(2/x*pi) + * Yn(x) = sin(x-(2n+1)*pi/4)*sqrt(2/x*pi) + * Let s=sin(x), c=cos(x), + * xn=x-(2n+1)*pi/4, sqt2 = sqrt(2),then + * + * n sin(xn)*sqt2 cos(xn)*sqt2 + * ---------------------------------- + * 0 s-c c+s + * 1 -s-c -c+s + * 2 -s+c -c-s + * 3 s+c c-s + */ + switch nm1 & Int32FromInt32(3) { + case 0: + temp = -Xsin(tls, x) - Xcos(tls, x) + case int32(1): + temp = -Xsin(tls, x) + Xcos(tls, x) + case int32(2): + temp = Xsin(tls, x) + Xcos(tls, x) + default: + fallthrough + case int32(3): + temp = Xsin(tls, x) - Xcos(tls, x) + break + } + b = float64(_invsqrtpi4*temp) / Xsqrt(tls, x) + } else { + a = Xy0(tls, x) + b = Xy1(tls, x) + /* quit if b is -inf */ + ib = uint32(*(*Tuint64_t)(unsafe.Pointer(&b)) >> int32(32)) + i = 0 + for { + if !(i < nm1 && ib != uint32(0xfff00000)) { + break + } + i = i + 1 + temp = b + b = float64(float64(float64(2)*float64(i))/x*b) - a + ib = uint32(*(*Tuint64_t)(unsafe.Pointer(&b)) >> int32(32)) + a = temp + goto _2 + _2: + } + } + if sign != 0 { + v1 = -b + } else { + v1 = b + } + return v1 +} + +func Xjnf(tls *TLS, n int32, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v n=%v x=%v, (%v:)", tls, n, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, b, h, nf, q0, q1, t, temp, tmp, w, z, v6 float32 + var i, k, nm1, sign int32 + var ix Tuint32_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = a, b, h, i, ix, k, nf, nm1, q0, q1, sign, t, temp, tmp, w, z, v6 + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix > uint32(0x7f800000) { /* nan */ + return x + } + /* J(-n,x) = J(n,-x), use |n|-1 to avoid overflow in -n */ + if n == 0 { + return Xj0f(tls, x) + } + if n < 0 { + nm1 = -(n + int32(1)) + x = -x + sign = sign ^ int32(1) + } else { + nm1 = n - int32(1) + } + if nm1 == 0 { + return Xj1f(tls, x) + } + sign = sign & n /* even n: 0, odd n: signbit(x) */ + x = Xfabsf(tls, x) + if ix == uint32(0) || ix == uint32(0x7f800000) { /* if x is 0 or inf */ + b = Float32FromFloat32(0) + } else { + if float32(nm1) < x { + /* Safe to use J(n+1,x)=2n/x *J(n,x)-J(n-1,x) */ + a = Xj0f(tls, x) + b = Xj1f(tls, x) + i = 0 + for { + if !(i < nm1) { + break + } + i = i + 1 + temp = b + b = float32(b*(float32(Float32FromFloat32(2)*float32(i))/x)) - a + a = temp + goto _1 + _1: + } + } else { + if ix < uint32(0x35800000) { /* x < 2**-20 */ + /* x is tiny, return the first Taylor expansion of J(n,x) + * J(n,x) = 1/n!*(x/2)^n - ... + */ + if nm1 > int32(8) { /* underflow */ + nm1 = int32(8) + } + temp = float32(Float32FromFloat32(0.5) * x) + b = temp + a = Float32FromFloat32(1) + i = int32(2) + for { + if !(i <= nm1+int32(1)) { + break + } + a = a * float32(i) /* a = n! */ + b = b * temp /* b = (x/2)^n */ + goto _2 + _2: + ; + i = i + 1 + } + b = b / a + } else { + nf = float32(nm1) + Float32FromFloat32(1) + w = float32(Float32FromInt32(2)*nf) / x + h = Float32FromInt32(2) / x + z = w + h + q0 = w + q1 = float32(w*z) - Float32FromFloat32(1) + k = int32(1) + for q1 < Float32FromFloat32(10000) { + k = k + int32(1) + z = z + h + tmp = float32(z*q1) - q0 + q0 = q1 + q1 = tmp + } + t = Float32FromFloat32(0) + i = k + for { + if !(i >= 0) { + break + } + t = Float32FromFloat32(1) / (float32(Float32FromInt32(2)*(float32(i)+nf))/x - t) + goto _3 + _3: + ; + i = i - 1 + } + a = t + b = Float32FromFloat32(1) + /* estimate log((2/x)^n*n!) = n*log(2/x)+n*ln(n) + * Hence, if n*(log(2n/x)) > ... + * single 8.8722839355e+01 + * double 7.09782712893383973096e+02 + * long double 1.1356523406294143949491931077970765006170e+04 + * then recurrent value may overflow and the result is + * likely underflow to zero + */ + tmp = float32(nf * Xlogf(tls, Xfabsf(tls, w))) + if tmp < Float32FromFloat32(88.721679688) { + i = nm1 + for { + if !(i > 0) { + break + } + temp = b + b = float32(float32(Float32FromFloat32(2)*float32(i))*b)/x - a + a = temp + goto _4 + _4: + ; + i = i - 1 + } + } else { + i = nm1 + for { + if !(i > 0) { + break + } + temp = b + b = float32(float32(Float32FromFloat32(2)*float32(i))*b)/x - a + a = temp + /* scale b to avoid spurious overflow */ + if b > Float32FromFloat32(1.152921504606847e+18) { + a = a / b + t = t / b + b = Float32FromFloat32(1) + } + goto _5 + _5: + ; + i = i - 1 + } + } + z = Xj0f(tls, x) + w = Xj1f(tls, x) + if Xfabsf(tls, z) >= Xfabsf(tls, w) { + b = float32(t*z) / b + } else { + b = float32(t*w) / a + } + } + } + } + if sign != 0 { + v6 = -b + } else { + v6 = b + } + return v6 +} + +func Xynf(tls *TLS, n int32, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v n=%v x=%v, (%v:)", tls, n, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, b, temp, v1 float32 + var i, nm1, sign int32 + var ib, ix Tuint32_t + _, _, _, _, _, _, _, _, _ = a, b, i, ib, ix, nm1, sign, temp, v1 + ix = *(*Tuint32_t)(unsafe.Pointer(&x)) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix > uint32(0x7f800000) { /* nan */ + return x + } + if sign != 0 && ix != uint32(0) { /* x < 0 */ + return Float32FromInt32(0) / Float32FromFloat32(0) + } + if ix == uint32(0x7f800000) { + return Float32FromFloat32(0) + } + if n == 0 { + return Xy0f(tls, x) + } + if n < 0 { + nm1 = -(n + int32(1)) + sign = n & int32(1) + } else { + nm1 = n - int32(1) + sign = 0 + } + if nm1 == 0 { + if sign != 0 { + v1 = -Xy1f(tls, x) + } else { + v1 = Xy1f(tls, x) + } + return v1 + } + a = Xy0f(tls, x) + b = Xy1f(tls, x) + /* quit if b is -inf */ + ib = *(*Tuint32_t)(unsafe.Pointer(&b)) + i = 0 + for { + if !(i < nm1 && ib != uint32(0xff800000)) { + break + } + i = i + 1 + temp = b + b = float32(float32(Float32FromFloat32(2)*float32(i))/x*b) - a + ib = *(*Tuint32_t)(unsafe.Pointer(&b)) + a = temp + goto _2 + _2: + } + if sign != 0 { + v1 = -b + } else { + v1 = b + } + return v1 +} + +func Xldexp(tls *TLS, x float64, n int32) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xscalbn(tls, x, n) +} + +func Xldexpf(tls *TLS, x float32, n int32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xscalbnf(tls, x, n) +} + +func Xldexpl(tls *TLS, x float64, n int32) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xscalbnl(tls, x, n) +} + +func Xlgamma(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lgamma_r(tls, x, uintptr(unsafe.Pointer(&Xsigngam))) +} + +var _pi2 = float64(3.141592653589793) /* 0x400921FB, 0x54442D18 */ +var _a0 = float64(0.07721566490153287) /* 0x3FB3C467, 0xE37DB0C8 */ +var _a1 = float64(0.3224670334241136) /* 0x3FD4A34C, 0xC4A60FAD */ +var _a2 = float64(0.06735230105312927) /* 0x3FB13E00, 0x1A5562A7 */ +var _a3 = float64(0.020580808432516733) /* 0x3F951322, 0xAC92547B */ +var _a4 = float64(0.007385550860814029) /* 0x3F7E404F, 0xB68FEFE8 */ +var _a5 = float64(0.0028905138367341563) /* 0x3F67ADD8, 0xCCB7926B */ +var _a6 = float64(0.0011927076318336207) /* 0x3F538A94, 0x116F3F5D */ +var _a7 = float64(0.0005100697921535113) /* 0x3F40B6C6, 0x89B99C00 */ +var _a8 = float64(0.00022086279071390839) /* 0x3F2CF2EC, 0xED10E54D */ +var _a9 = float64(0.00010801156724758394) /* 0x3F1C5088, 0x987DFB07 */ +var _a10 = float64(2.5214456545125733e-05) /* 0x3EFA7074, 0x428CFA52 */ +var _a11 = float64(4.4864094961891516e-05) /* 0x3F07858E, 0x90A45837 */ +var _tc = float64(1.4616321449683622) /* 0x3FF762D8, 0x6356BE3F */ +var _tf = -Float64FromFloat64(0.12148629053584961) /* 0xBFBF19B9, 0xBCC38A42 */ +/* tt = -(tail of tf) */ +var _tt = -Float64FromFloat64(3.638676997039505e-18) /* 0xBC50C7CA, 0xA48A971F */ +var _t0 = float64(0.48383612272381005) /* 0x3FDEF72B, 0xC8EE38A2 */ +var _t1 = -Float64FromFloat64(0.1475877229945939) /* 0xBFC2E427, 0x8DC6C509 */ +var _t2 = float64(0.06462494023913339) /* 0x3FB08B42, 0x94D5419B */ +var _t3 = -Float64FromFloat64(0.032788541075985965) /* 0xBFA0C9A8, 0xDF35B713 */ +var _t4 = float64(0.01797067508118204) /* 0x3F9266E7, 0x970AF9EC */ +var _t5 = -Float64FromFloat64(0.010314224129834144) /* 0xBF851F9F, 0xBA91EC6A */ +var _t6 = float64(0.006100538702462913) /* 0x3F78FCE0, 0xE370E344 */ +var _t7 = -Float64FromFloat64(0.0036845201678113826) /* 0xBF6E2EFF, 0xB3E914D7 */ +var _t8 = float64(0.0022596478090061247) /* 0x3F6282D3, 0x2E15C915 */ +var _t9 = -Float64FromFloat64(0.0014034646998923284) /* 0xBF56FE8E, 0xBF2D1AF1 */ +var _t10 = float64(0.000881081882437654) /* 0x3F4CDF0C, 0xEF61A8E9 */ +var _t11 = -Float64FromFloat64(0.0005385953053567405) /* 0xBF41A610, 0x9C73E0EC */ +var _t12 = float64(0.00031563207090362595) /* 0x3F34AF6D, 0x6C0EBBF7 */ +var _t13 = -Float64FromFloat64(0.00031275416837512086) /* 0xBF347F24, 0xECC38C38 */ +var _t14 = float64(0.0003355291926355191) /* 0x3F35FD3E, 0xE8C2D3F4 */ +var _u0 = -Float64FromFloat64(0.07721566490153287) /* 0xBFB3C467, 0xE37DB0C8 */ +var _u1 = float64(0.6328270640250934) /* 0x3FE4401E, 0x8B005DFF */ +var _u2 = float64(1.4549225013723477) /* 0x3FF7475C, 0xD119BD6F */ +var _u3 = float64(0.9777175279633727) /* 0x3FEF4976, 0x44EA8450 */ +var _u4 = float64(0.22896372806469245) /* 0x3FCD4EAE, 0xF6010924 */ +var _u5 = float64(0.013381091853678766) /* 0x3F8B678B, 0xBF2BAB09 */ +var _v1 = float64(2.4559779371304113) /* 0x4003A5D7, 0xC2BD619C */ +var _v2 = float64(2.128489763798934) /* 0x40010725, 0xA42B18F5 */ +var _v3 = float64(0.7692851504566728) /* 0x3FE89DFB, 0xE45050AF */ +var _v4 = float64(0.10422264559336913) /* 0x3FBAAE55, 0xD6537C88 */ +var _v5 = float64(0.003217092422824239) /* 0x3F6A5ABB, 0x57D0CF61 */ +var _s0 = -Float64FromFloat64(0.07721566490153287) /* 0xBFB3C467, 0xE37DB0C8 */ +var _s1 = float64(0.21498241596060885) /* 0x3FCB848B, 0x36E20878 */ +var _s2 = float64(0.325778796408931) /* 0x3FD4D98F, 0x4F139F59 */ +var _s3 = float64(0.14635047265246445) /* 0x3FC2BB9C, 0xBEE5F2F7 */ +var _s4 = float64(0.02664227030336386) /* 0x3F9B481C, 0x7E939961 */ +var _s5 = float64(0.0018402845140733772) /* 0x3F5E26B6, 0x7368F239 */ +var _s6 = float64(3.194753265841009e-05) /* 0x3F00BFEC, 0xDD17E945 */ +var _r1 = float64(1.3920053346762105) /* 0x3FF645A7, 0x62C4AB74 */ +var _r2 = float64(0.7219355475671381) /* 0x3FE71A18, 0x93D3DCDC */ +var _r3 = float64(0.17193386563280308) /* 0x3FC601ED, 0xCCFBDF27 */ +var _r4 = float64(0.01864591917156529) /* 0x3F9317EA, 0x742ED475 */ +var _r5 = float64(0.0007779424963818936) /* 0x3F497DDA, 0xCA41A95B */ +var _r6 = float64(7.326684307446256e-06) /* 0x3EDEBAF7, 0xA5B38140 */ +var _w0 = float64(0.4189385332046727) /* 0x3FDACFE3, 0x90C97D69 */ +var _w1 = float64(0.08333333333333297) /* 0x3FB55555, 0x5555553B */ +var _w2 = -Float64FromFloat64(0.0027777777772877554) /* 0xBF66C16C, 0x16B02E5C */ +var _w3 = float64(0.0007936505586430196) /* 0x3F4A019F, 0x98CF38B6 */ +var _w4 = -Float64FromFloat64(0.00059518755745034) /* 0xBF4380CB, 0x8C0FE741 */ +var _w5 = float64(0.0008363399189962821) /* 0x3F4B67BA, 0x4CDAD5D1 */ +var _w6 = -Float64FromFloat64(0.0016309293409657527) /* 0xBF5AB89D, 0x0B9E43E4 */ + +// C documentation +// +// /* sin(pi*x) assuming x > 2^-100, if sin(pi*x)==0 the sign is arbitrary */ +func _sin_pi(tls *TLS, x float64) (r float64) { + var n int32 + _ = n + /* spurious inexact if odd int */ + x = float64(float64(2) * (float64(x*float64(0.5)) - Xfloor(tls, float64(x*float64(0.5))))) /* x mod 2.0 */ + n = int32(float64(x * Float64FromFloat64(4))) + n = (n + int32(1)) / int32(2) + x = x - float64(float32(n)*Float32FromFloat32(0.5)) + x = x * _pi2 + switch n { + default: /* case 4: */ + fallthrough + case 0: + return X__sin(tls, x, float64(0), 0) + case int32(1): + return X__cos(tls, x, float64(0)) + case int32(2): + return X__sin(tls, -x, float64(0), 0) + case int32(3): + return -X__cos(tls, x, float64(0)) + } + return r +} + +func X__lgamma_r(tls *TLS, x float64, signgamp uintptr) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x=%v signgamp=%v, (%v:)", tls, x, signgamp, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var i, sign int32 + var ix Tuint32_t + var nadj, p, p1, p2, p3, q, r, t, w, y, z Tdouble_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = i, ix, nadj, p, p1, p2, p3, q, r, sign, t, w, y, z + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + /* purge off +-inf, NaN, +-0, tiny and negative arguments */ + **(**int32)(__ccgo_up(signgamp)) = int32(1) + sign = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(63)) + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32) & uint64(0x7fffffff)) + if ix >= uint32(0x7ff00000) { + return float64(x * x) + } + if ix < Uint32FromInt32((Int32FromInt32(0x3ff)-Int32FromInt32(70))< float64(0) { + **(**int32)(__ccgo_up(signgamp)) = -int32(1) + } else { + t = -t + } + nadj = Xlog(tls, _pi2/Tdouble_t(t*x)) + } + /* purge off 1 and 2 */ + if (ix == uint32(0x3ff00000) || ix == uint32(0x40000000)) && uint32(*(*Tuint64_t)(unsafe.Pointer(bp))) == uint32(0) { + r = Float64FromInt32(0) + } else { + if ix < uint32(0x40000000) { + if ix <= uint32(0x3feccccc) { /* lgamma(x) = lgamma(x+1)-log(x) */ + r = -Xlog(tls, x) + if ix >= uint32(0x3FE76944) { + y = float64(1) - x + i = 0 + } else { + if ix >= uint32(0x3FCDA661) { + y = x - (_tc - Float64FromFloat64(1)) + i = int32(1) + } else { + y = x + i = int32(2) + } + } + } else { + r = float64(0) + if ix >= uint32(0x3FFBB4C3) { /* [1.7316,2] */ + y = float64(2) - x + i = 0 + } else { + if ix >= uint32(0x3FF3B4C4) { /* [1.23,1.73] */ + y = x - _tc + i = int32(1) + } else { + y = x - float64(1) + i = int32(2) + } + } + } + switch i { + case 0: + z = Tdouble_t(y * y) + p1 = _a0 + float64(z*(_a2+float64(z*(_a4+float64(z*(_a6+float64(z*(_a8+float64(z*_a10))))))))) + p2 = Tdouble_t(z * (_a1 + float64(z*(_a3+float64(z*(_a5+float64(z*(_a7+float64(z*(_a9+float64(z*_a11))))))))))) + p = Tdouble_t(y*p1) + p2 + r = r + (p - Tdouble_t(float64(0.5)*y)) + case int32(1): + z = Tdouble_t(y * y) + w = Tdouble_t(z * y) + p1 = _t0 + float64(w*(_t3+float64(w*(_t6+float64(w*(_t9+float64(w*_t12))))))) /* parallel comp */ + p2 = _t1 + float64(w*(_t4+float64(w*(_t7+float64(w*(_t10+float64(w*_t13))))))) + p3 = _t2 + float64(w*(_t5+float64(w*(_t8+float64(w*(_t11+float64(w*_t14))))))) + p = Tdouble_t(z*p1) - (_tt - float64(w*(p2+Tdouble_t(y*p3)))) + r = r + (_tf + p) + case int32(2): + p1 = Tdouble_t(y * (_u0 + float64(y*(_u1+float64(y*(_u2+float64(y*(_u3+float64(y*(_u4+float64(y*_u5))))))))))) + p2 = float64(1) + float64(y*(_v1+float64(y*(_v2+float64(y*(_v3+float64(y*(_v4+float64(y*_v5))))))))) + r = r + (float64(-Float64FromFloat64(0.5)*y) + p1/p2) + } + } else { + if ix < uint32(0x40200000) { /* x < 8.0 */ + i = int32(x) + y = x - float64(i) + p = Tdouble_t(y * (_s0 + float64(y*(_s1+float64(y*(_s2+float64(y*(_s3+float64(y*(_s4+float64(y*(_s5+float64(y*_s6))))))))))))) + q = float64(1) + float64(y*(_r1+float64(y*(_r2+float64(y*(_r3+float64(y*(_r4+float64(y*(_r5+float64(y*_r6))))))))))) + r = float64(float64(0.5)*y) + p/q + z = float64(1) /* lgamma(1+s) = log(s) + lgamma(s) */ + switch i { + case int32(7): + z = z * (y + float64(6)) /* FALLTHRU */ + fallthrough + case int32(6): + z = z * (y + float64(5)) /* FALLTHRU */ + fallthrough + case int32(5): + z = z * (y + float64(4)) /* FALLTHRU */ + fallthrough + case int32(4): + z = z * (y + float64(3)) /* FALLTHRU */ + fallthrough + case int32(3): + z = z * (y + float64(2)) /* FALLTHRU */ + r = r + Xlog(tls, z) + break + } + } else { + if ix < uint32(0x43900000) { /* 8.0 <= x < 2**58 */ + t = Xlog(tls, x) + z = float64(1) / x + y = Tdouble_t(z * z) + w = _w0 + float64(z*(_w1+float64(y*(_w2+float64(y*(_w3+float64(y*(_w4+float64(y*(_w5+float64(y*_w6))))))))))) + r = float64((x-float64(0.5))*(t-Float64FromFloat64(1))) + w + } else { /* 2**58 <= x <= inf */ + r = Tdouble_t(x * (Xlog(tls, x) - float64(1))) + } + } + } + } + if sign != 0 { + r = nadj - r + } + return r +} + +func Xlgamma_r(tls *TLS, x float64, signgamp uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v signgamp=%v, (%v:)", tls, x, signgamp, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lgamma_r(tls, x, signgamp) +} + +func Xlgammaf(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lgammaf_r(tls, x, uintptr(unsafe.Pointer(&Xsigngam))) +} + +var _pi3 = float32(3.141592741) /* 0x40490fdb */ +var _a01 = float32(0.077215664089) /* 0x3d9e233f */ +var _a12 = float32(0.32246702909) /* 0x3ea51a66 */ +var _a21 = float32(0.067352302372) /* 0x3d89f001 */ +var _a31 = float32(0.020580807701) /* 0x3ca89915 */ +var _a41 = float32(0.0073855509982) /* 0x3bf2027e */ +var _a51 = float32(0.0028905137442) /* 0x3b3d6ec6 */ +var _a61 = float32(0.0011927076848) /* 0x3a9c54a1 */ +var _a71 = float32(0.00051006977446) /* 0x3a05b634 */ +var _a81 = float32(0.00022086278477) /* 0x39679767 */ +var _a91 = float32(0.00010801156895) /* 0x38e28445 */ +var _a101 = float32(2.52144564e-05) /* 0x37d383a2 */ +var _a111 = float32(4.4864096708e-05) /* 0x383c2c75 */ +var _tc1 = float32(1.4616321325) /* 0x3fbb16c3 */ +var _tf1 = float32(-Float64FromFloat64(0.12148628384)) /* 0xbdf8cdcd */ +/* tt = -(tail of tf) */ +var _tt1 = float32(6.6971006518e-09) /* 0x31e61c52 */ +var _t01 = float32(0.48383611441) /* 0x3ef7b95e */ +var _t15 = float32(-Float64FromFloat64(0.14758771658)) /* 0xbe17213c */ +var _t21 = float32(0.064624942839) /* 0x3d845a15 */ +var _t31 = float32(-Float64FromFloat64(0.032788541168)) /* 0xbd064d47 */ +var _t41 = float32(0.017970675603) /* 0x3c93373d */ +var _t51 = float32(-Float64FromFloat64(0.010314224288)) /* 0xbc28fcfe */ +var _t61 = float32(0.0061005386524) /* 0x3bc7e707 */ +var _t71 = float32(-Float64FromFloat64(0.0036845202558)) /* 0xbb7177fe */ +var _t81 = float32(0.0022596477065) /* 0x3b141699 */ +var _t91 = float32(-Float64FromFloat64(0.0014034647029)) /* 0xbab7f476 */ +var _t101 = float32(0.00088108185446) /* 0x3a66f867 */ +var _t111 = float32(-Float64FromFloat64(0.00053859531181)) /* 0xba0d3085 */ +var _t121 = float32(0.00031563205994) /* 0x39a57b6b */ +var _t131 = float32(-Float64FromFloat64(0.00031275415677)) /* 0xb9a3f927 */ +var _t141 = float32(0.00033552918467) /* 0x39afe9f7 */ +var _u07 = float32(-Float64FromFloat64(0.077215664089)) /* 0xbd9e233f */ +var _u11 = float32(0.63282704353) /* 0x3f2200f4 */ +var _u21 = float32(1.4549225569) /* 0x3fba3ae7 */ +var _u31 = float32(0.97771751881) /* 0x3f7a4bb2 */ +var _u41 = float32(0.22896373272) /* 0x3e6a7578 */ +var _u51 = float32(0.013381091878) /* 0x3c5b3c5e */ +var _v11 = float32(2.4559779167) /* 0x401d2ebe */ +var _v21 = float32(2.1284897327) /* 0x4008392d */ +var _v31 = float32(0.76928514242) /* 0x3f44efdf */ +var _v41 = float32(0.10422264785) /* 0x3dd572af */ +var _v51 = float32(0.0032170924824) /* 0x3b52d5db */ +var _s06 = float32(-Float64FromFloat64(0.077215664089)) /* 0xbd9e233f */ +var _s11 = float32(0.21498242021) /* 0x3e5c245a */ +var _s21 = float32(0.32577878237) /* 0x3ea6cc7a */ +var _s31 = float32(0.14635047317) /* 0x3e15dce6 */ +var _s41 = float32(0.026642270386) /* 0x3cda40e4 */ +var _s51 = float32(0.0018402845599) /* 0x3af135b4 */ +var _s61 = float32(3.1947532989e-05) /* 0x3805ff67 */ +var _r11 = float32(1.3920053244) /* 0x3fb22d3b */ +var _r21 = float32(0.72193557024) /* 0x3f38d0c5 */ +var _r31 = float32(0.17193385959) /* 0x3e300f6e */ +var _r41 = float32(0.018645919859) /* 0x3c98bf54 */ +var _r51 = float32(0.00077794247773) /* 0x3a4beed6 */ +var _r61 = float32(7.3266842264e-06) /* 0x36f5d7bd */ +var _w01 = float32(0.41893854737) /* 0x3ed67f1d */ +var _w11 = float32(0.083333335817) /* 0x3daaaaab */ +var _w21 = float32(-Float64FromFloat64(0.002777777845)) /* 0xbb360b61 */ +var _w31 = float32(0.00079365057172) /* 0x3a500cfd */ +var _w41 = float32(-Float64FromFloat64(0.00059518753551)) /* 0xba1c065c */ +var _w51 = float32(0.00083633989561) /* 0x3a5b3dd2 */ +var _w61 = float32(-Float64FromFloat64(0.0016309292987)) /* 0xbad5c4e8 */ + +// C documentation +// +// /* sin(pi*x) assuming x > 2^-100, if sin(pi*x)==0 the sign is arbitrary */ +func _sin_pi1(tls *TLS, x float32) (r float32) { + var n int32 + var y Tdouble_t + _, _ = n, y + /* spurious inexact if odd int */ + x = float32(Float32FromInt32(2) * (float32(x*Float32FromFloat32(0.5)) - Xfloorf(tls, float32(x*Float32FromFloat32(0.5))))) /* x mod 2.0 */ + n = int32(float32(x * Float32FromInt32(4))) + n = (n + int32(1)) / int32(2) + y = float64(x - float32(float32(n)*Float32FromFloat32(0.5))) + y = y * float64(3.141592653589793) + switch n { + default: /* case 4: */ + fallthrough + case 0: + return X__sindf(tls, y) + case int32(1): + return X__cosdf(tls, y) + case int32(2): + return X__sindf(tls, -y) + case int32(3): + return -X__cosdf(tls, y) + } + return r +} + +func X__lgammaf_r(tls *TLS, x float32, signgamp uintptr) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x=%v signgamp=%v, (%v:)", tls, x, signgamp, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var i, sign int32 + var ix Tuint32_t + var nadj, p, p1, p2, p3, q, r, t, w, y, z float32 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = i, ix, nadj, p, p1, p2, p3, q, r, sign, t, w, y, z + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + /* purge off +-inf, NaN, +-0, tiny and negative arguments */ + **(**int32)(__ccgo_up(signgamp)) = int32(1) + sign = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(31)) + ix = *(*Tuint32_t)(unsafe.Pointer(bp)) & uint32(0x7fffffff) + if ix >= uint32(0x7f800000) { + return float32(x * x) + } + if ix < uint32(0x35000000) { /* |x| < 2**-21, return -log(|x|) */ + if sign != 0 { + **(**int32)(__ccgo_up(signgamp)) = -int32(1) + x = -x + } + return -Xlogf(tls, x) + } + if sign != 0 { + x = -x + t = _sin_pi1(tls, x) + if t == Float32FromFloat32(0) { /* -integer */ + return Float32FromFloat32(1) / (x - x) + } + if t > Float32FromFloat32(0) { + **(**int32)(__ccgo_up(signgamp)) = -int32(1) + } else { + t = -t + } + nadj = Xlogf(tls, _pi3/float32(t*x)) + } + /* purge off 1 and 2 */ + if ix == uint32(0x3f800000) || ix == uint32(0x40000000) { + r = Float32FromInt32(0) + } else { + if ix < uint32(0x40000000) { + if ix <= uint32(0x3f666666) { /* lgamma(x) = lgamma(x+1)-log(x) */ + r = -Xlogf(tls, x) + if ix >= uint32(0x3f3b4a20) { + y = Float32FromFloat32(1) - x + i = 0 + } else { + if ix >= uint32(0x3e6d3308) { + y = x - (_tc1 - Float32FromFloat32(1)) + i = int32(1) + } else { + y = x + i = int32(2) + } + } + } else { + r = Float32FromFloat32(0) + if ix >= uint32(0x3fdda618) { /* [1.7316,2] */ + y = Float32FromFloat32(2) - x + i = 0 + } else { + if ix >= uint32(0x3F9da620) { /* [1.23,1.73] */ + y = x - _tc1 + i = int32(1) + } else { + y = x - Float32FromFloat32(1) + i = int32(2) + } + } + } + switch i { + case 0: + z = float32(y * y) + p1 = _a01 + float32(z*(_a21+float32(z*(_a41+float32(z*(_a61+float32(z*(_a81+float32(z*_a101))))))))) + p2 = float32(z * (_a12 + float32(z*(_a31+float32(z*(_a51+float32(z*(_a71+float32(z*(_a91+float32(z*_a111))))))))))) + p = float32(y*p1) + p2 + r = r + (p - float32(Float32FromFloat32(0.5)*y)) + case int32(1): + z = float32(y * y) + w = float32(z * y) + p1 = _t01 + float32(w*(_t31+float32(w*(_t61+float32(w*(_t91+float32(w*_t121))))))) /* parallel comp */ + p2 = _t15 + float32(w*(_t41+float32(w*(_t71+float32(w*(_t101+float32(w*_t131))))))) + p3 = _t21 + float32(w*(_t51+float32(w*(_t81+float32(w*(_t111+float32(w*_t141))))))) + p = float32(z*p1) - (_tt1 - float32(w*(p2+float32(y*p3)))) + r = r + (_tf1 + p) + case int32(2): + p1 = float32(y * (_u07 + float32(y*(_u11+float32(y*(_u21+float32(y*(_u31+float32(y*(_u41+float32(y*_u51))))))))))) + p2 = Float32FromFloat32(1) + float32(y*(_v11+float32(y*(_v21+float32(y*(_v31+float32(y*(_v41+float32(y*_v51))))))))) + r = r + (float32(-Float32FromFloat32(0.5)*y) + p1/p2) + } + } else { + if ix < uint32(0x41000000) { /* x < 8.0 */ + i = int32(x) + y = x - float32(i) + p = float32(y * (_s06 + float32(y*(_s11+float32(y*(_s21+float32(y*(_s31+float32(y*(_s41+float32(y*(_s51+float32(y*_s61))))))))))))) + q = Float32FromFloat32(1) + float32(y*(_r11+float32(y*(_r21+float32(y*(_r31+float32(y*(_r41+float32(y*(_r51+float32(y*_r61))))))))))) + r = float32(Float32FromFloat32(0.5)*y) + p/q + z = Float32FromFloat32(1) /* lgamma(1+s) = log(s) + lgamma(s) */ + switch i { + case int32(7): + z = z * (y + Float32FromFloat32(6)) /* FALLTHRU */ + fallthrough + case int32(6): + z = z * (y + Float32FromFloat32(5)) /* FALLTHRU */ + fallthrough + case int32(5): + z = z * (y + Float32FromFloat32(4)) /* FALLTHRU */ + fallthrough + case int32(4): + z = z * (y + Float32FromFloat32(3)) /* FALLTHRU */ + fallthrough + case int32(3): + z = z * (y + Float32FromFloat32(2)) /* FALLTHRU */ + r = r + Xlogf(tls, z) + break + } + } else { + if ix < uint32(0x5c800000) { /* 8.0 <= x < 2**58 */ + t = Xlogf(tls, x) + z = Float32FromFloat32(1) / x + y = float32(z * z) + w = _w01 + float32(z*(_w11+float32(y*(_w21+float32(y*(_w31+float32(y*(_w41+float32(y*(_w51+float32(y*_w61))))))))))) + r = float32((x-Float32FromFloat32(0.5))*(t-Float32FromFloat32(1))) + w + } else { /* 2**58 <= x <= inf */ + r = float32(x * (Xlogf(tls, x) - Float32FromFloat32(1))) + } + } + } + } + if sign != 0 { + r = nadj - r + } + return r +} + +func Xlgammaf_r(tls *TLS, x float32, signgamp uintptr) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v signgamp=%v, (%v:)", tls, x, signgamp, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lgammaf_r(tls, x, signgamp) +} + +func X__lgammal_r(tls *TLS, x float64, sg uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v sg=%v, (%v:)", tls, x, sg, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lgamma_r(tls, x, sg) +} + +func Xlgammal(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lgammal_r(tls, x, uintptr(unsafe.Pointer(&Xsigngam))) +} + +func Xlgammal_r(tls *TLS, x float64, sg uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v sg=%v, (%v:)", tls, x, sg, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lgammal_r(tls, x, sg) +} + +/* uses LLONG_MAX > 2^53, see comments in lrint.c */ + +func Xllrint(tls *TLS, x float64) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int64(Xrint(tls, x)) +} + +/* uses LLONG_MAX > 2^24, see comments in lrint.c */ + +func Xllrintf(tls *TLS, x float32) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int64(Xrintf(tls, x)) +} + +func Xllrintl(tls *TLS, x float64) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xllrint(tls, x) +} + +func Xllround(tls *TLS, x float64) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int64(Xround(tls, x)) +} + +func Xllroundf(tls *TLS, x float32) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int64(Xroundf(tls, x)) +} + +func Xllroundl(tls *TLS, x float64) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int64(Xroundl(tls, x)) +} + +const LOG_POLY1_ORDER = 12 +const LOG_POLY_ORDER = 6 +const LOG_TABLE_BITS = 7 +const N4 = 128 +const OFF = 4604367669032910848 + +// C documentation +// +// /* Top 16 bits of a double. */ +func _top16(tls *TLS, x float64) (r Tuint32_t) { + return uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(48)) +} + +func Xlog(tls *TLS, x1 float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x1=%v, (%v:)", tls, x1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var hi, invc, kd, lo, logc, r, r2, r3, rhi, rlo, w, y1, z Tdouble_t + var i, k int32 + var ix, iz, tmp Tuint64_t + var top Tuint32_t + var y, v1, v2, v3, v4 float64 + var v5 bool + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = hi, i, invc, ix, iz, k, kd, lo, logc, r, r2, r3, rhi, rlo, tmp, top, w, y, y1, z, v1, v2, v3, v4, v5 + ix = *(*Tuint64_t)(unsafe.Pointer(&x1)) + top = _top16(tls, x1) + v1 = Float64FromFloat64(1) - Float64FromFloat64(0.0625) + v2 = Float64FromFloat64(1) + Float64FromFloat64(0.064697265625) + v3 = Float64FromFloat64(1) - Float64FromFloat64(0.0625) + if ix-*(*Tuint64_t)(unsafe.Pointer(&v1)) < *(*Tuint64_t)(unsafe.Pointer(&v2))-*(*Tuint64_t)(unsafe.Pointer(&v3)) { + /* Handle close to 1.0 inputs separately. */ + /* Fix sign of zero with downward rounding when x==1. */ + if v5 = Bool(int32(WANT_ROUNDING) != 0); v5 { + v4 = float64(1) + } + if v5 && ix == *(*Tuint64_t)(unsafe.Pointer(&v4)) { + return Float64FromInt32(0) + } + r = x1 - float64(1) + r2 = Tdouble_t(r * r) + r3 = Tdouble_t(r * r2) + y1 = Tdouble_t(r3 * (**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56 + 1*8)) + float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56 + 2*8))) + float64(r2***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56 + 3*8))) + float64(r3*(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56 + 4*8))+float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56 + 5*8)))+float64(r2***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56 + 6*8)))+float64(r3*(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56 + 7*8))+float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56 + 8*8)))+float64(r2***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56 + 9*8)))+float64(r3***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56 + 10*8))))))))) + /* Worst-case error is around 0.507 ULP. */ + w = Tdouble_t(r * float64(1.34217728e+08)) + rhi = r + w - w + rlo = r - rhi + w = Tdouble_t(Tdouble_t(rhi*rhi) * **(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56))) /* B[0] == -0.5. */ + hi = r + w + lo = r - hi + w + lo = lo + Tdouble_t(float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 56))*rlo)*(rhi+r)) + y1 = y1 + lo + y1 = y1 + hi + y = y1 + v1 = y + goto _7 + _7: + return v1 + } + if top-uint32(0x0010) >= Uint32FromInt32(Int32FromInt32(0x7ff0)-Int32FromInt32(0x0010)) { + /* x < 0x1p-1022 or inf or nan. */ + if ix*uint64(2) == uint64(0) { + return X__math_divzero(tls, uint32(1)) + } + v1 = float64(X__builtin_inff(tls)) + if ix == *(*Tuint64_t)(unsafe.Pointer(&v1)) { /* log(inf) == inf. */ + return x1 + } + if top&uint32(0x8000) != 0 || top&uint32(0x7ff0) == uint32(0x7ff0) { + return X__math_invalid(tls, x1) + } + /* x is subnormal, normalize it. */ + v1 = float64(x1 * float64(4.503599627370496e+15)) + ix = *(*Tuint64_t)(unsafe.Pointer(&v1)) + ix = uint64(ix - Uint64FromUint64(52)<> (Int32FromInt32(52) - Int32FromInt32(LOG_TABLE_BITS)) % Uint64FromInt32(Int32FromInt32(1)<> int32(52)) /* arithmetic shift */ + iz = uint64(ix - tmp&(Uint64FromUint64(0xfff)< 0x1p-5: + 0.5 + 4.13/N + abs-poly-error*2^57 ULP (+ 0.002 ULP without fma) + Worst case error if |y| > 0x1p-4: + 0.5 + 2.06/N + abs-poly-error*2^56 ULP (+ 0.001 ULP without fma). */ + y1 = lo + Tdouble_t(r2***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 16))) + Tdouble_t(Tdouble_t(r*r2)*(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 16 + 1*8))+float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 16 + 2*8)))+float64(r2*(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 16 + 3*8))+float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log_data)) + 16 + 4*8))))))) + hi + y = y1 + v1 = y + goto _11 +_11: + return v1 +} + +var _ivln10hi = float64(0.4342944818781689) /* 0x3fdbcb7b, 0x15200000 */ +var _ivln10lo = float64(2.5082946711645275e-11) /* 0x3dbb9438, 0xca9aadd5 */ +var _log10_2hi = float64(0.30102999566361177) /* 0x3FD34413, 0x509F6000 */ +var _log10_2lo = float64(3.694239077158931e-13) /* 0x3D59FEF3, 0x11F12B36 */ +var _Lg1 = float64(0.6666666666666735) /* 3FE55555 55555593 */ +var _Lg2 = float64(0.3999999999940942) /* 3FD99999 9997FA04 */ +var _Lg3 = float64(0.2857142874366239) /* 3FD24924 94229359 */ +var _Lg4 = float64(0.22222198432149784) /* 3FCC71C5 1D8E78AF */ +var _Lg5 = float64(0.1818357216161805) /* 3FC74664 96CB03DE */ +var _Lg6 = float64(0.15313837699209373) /* 3FC39A09 D078C69F */ +var _Lg7 = float64(0.14798198605116586) /* 3FC2F112 DF3E5244 */ + +func Xlog10(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var R, dk, f, hfsq, hi, lo, s, t1, t2, val_hi, val_lo, w, y, z Tdouble_t + var hx Tuint32_t + var k int32 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = R, dk, f, hfsq, hi, hx, k, lo, s, t1, t2, val_hi, val_lo, w, y, z + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + hx = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32)) + k = 0 + if hx < uint32(0x00100000) || hx>>int32(31) != 0 { + if *(*Tuint64_t)(unsafe.Pointer(bp))<>int32(31) != 0 { + return (x - x) / float64(0) + } /* log(-#) = NaN */ + /* subnormal number, scale x up */ + k = k - int32(54) + x = x * float64(1.8014398509481984e+16) + *(*float64)(unsafe.Pointer(bp)) = x + hx = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32)) + } else { + if hx >= uint32(0x7ff00000) { + return x + } else { + if hx == uint32(0x3ff00000) && *(*Tuint64_t)(unsafe.Pointer(bp))<>Int32FromInt32(20)) - int32(0x3ff)) + hx = hx&uint32(0x000fffff) + uint32(0x3fe6a09e) + *(*Tuint64_t)(unsafe.Pointer(bp)) = uint64(hx)< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var R, dk, f, hfsq, hi, lo, s, t1, t2, w, z Tfloat_t + var ix Tuint32_t + var k int32 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _, _, _, _, _, _, _, _ = R, dk, f, hfsq, hi, ix, k, lo, s, t1, t2, w, z + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + ix = *(*Tuint32_t)(unsafe.Pointer(bp)) + k = 0 + if ix < uint32(0x00800000) || ix>>int32(31) != 0 { /* x < 2**-126 */ + if ix<>int32(31) != 0 { + return (x - x) / Float32FromFloat32(0) + } /* log(-#) = NaN */ + /* subnormal number, scale up x */ + k = k - int32(25) + x = x * Float32FromFloat32(3.3554432e+07) + *(*float32)(unsafe.Pointer(bp)) = x + ix = *(*Tuint32_t)(unsafe.Pointer(bp)) + } else { + if ix >= uint32(0x7f800000) { + return x + } else { + if ix == uint32(0x3f800000) { + return Float32FromInt32(0) + } + } + } + /* reduce x into [sqrt(2)/2, sqrt(2)] */ + ix = ix + Uint32FromInt32(Int32FromInt32(0x3f800000)-Int32FromInt32(0x3f3504f3)) + k = k + (Int32FromUint32(ix>>Int32FromInt32(23)) - int32(0x7f)) + ix = ix&uint32(0x007fffff) + uint32(0x3f3504f3) + *(*Tuint32_t)(unsafe.Pointer(bp)) = ix + x = *(*float32)(unsafe.Pointer(bp)) + f = float64(x - Float32FromFloat32(1)) + s = f / (Float64FromFloat32(2) + f) + z = Tfloat_t(s * s) + w = Tfloat_t(z * z) + t1 = Tfloat_t(w * (float64(_Lg21) + Tfloat_t(w*float64(_Lg41)))) + t2 = Tfloat_t(z * (float64(_Lg11) + Tfloat_t(w*float64(_Lg31)))) + R = t2 + t1 + hfsq = Tfloat_t(Tfloat_t(Float64FromFloat32(0.5)*f) * f) + hi = f - hfsq + *(*float32)(unsafe.Pointer(bp)) = float32(hi) + *(*Tuint32_t)(unsafe.Pointer(bp)) &= uint32(0xfffff000) + hi = float64(*(*float32)(unsafe.Pointer(bp))) + lo = f - hi - hfsq + Tfloat_t(s*(hfsq+R)) + dk = float64(k) + return float32(Tfloat_t(dk*float64(_log10_2lo1)) + Tfloat_t((lo+hi)*float64(_ivln10lo1)) + Tfloat_t(lo*float64(_ivln10hi1)) + Tfloat_t(hi*float64(_ivln10hi1)) + Tfloat_t(dk*float64(_log10_2hi1))) +} + +func Xlog10l(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xlog10(tls, x) +} + +var _ln2_hi2 = float64(0.6931471803691238) /* 3fe62e42 fee00000 */ +var _ln2_lo2 = float64(1.9082149292705877e-10) /* 3dea39ef 35793c76 */ +var _Lg12 = float64(0.6666666666666735) /* 3FE55555 55555593 */ +var _Lg22 = float64(0.3999999999940942) /* 3FD99999 9997FA04 */ +var _Lg32 = float64(0.2857142874366239) /* 3FD24924 94229359 */ +var _Lg42 = float64(0.22222198432149784) /* 3FCC71C5 1D8E78AF */ +var _Lg51 = float64(0.1818357216161805) /* 3FC74664 96CB03DE */ +var _Lg61 = float64(0.15313837699209373) /* 3FC39A09 D078C69F */ +var _Lg71 = float64(0.14798198605116586) /* 3FC2F112 DF3E5244 */ + +func Xlog1p(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var R, c, dk, f, hfsq, s, t1, t2, w, z Tdouble_t + var hu, hx Tuint32_t + var k int32 + var y float32 + var y1, y2, v1 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = R, c, dk, f, hfsq, hu, hx, k, s, t1, t2, w, y, y1, y2, z, v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + hx = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32)) + k = int32(1) + if hx < uint32(0x3fda827a) || hx>>int32(31) != 0 { /* 1+x < sqrt(2)+ */ + if hx >= uint32(0xbff00000) { /* x <= -1.0 */ + if x3 == float64(-Int32FromInt32(1)) { + return x3 / float64(0) + } /* log1p(-1) = -inf */ + return (x3 - x3) / float64(0) /* log1p(x<-1) = NaN */ + } + if hx<= uint32(0x7ff00000) { + return x3 + } + } + if k != 0 { + *(*float64)(unsafe.Pointer(bp)) = Float64FromInt32(1) + x3 + hu = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32)) + hu = hu + Uint32FromInt32(Int32FromInt32(0x3ff00000)-Int32FromInt32(0x3fe6a09e)) + k = Int32FromUint32(hu>>Int32FromInt32(20)) - int32(0x3ff) + /* correction term ~ log(1+x)-log(u), avoid underflow in c/u */ + if k < int32(54) { + if k >= int32(2) { + v1 = Float64FromInt32(1) - (*(*float64)(unsafe.Pointer(bp)) - x3) + } else { + v1 = x3 - (*(*float64)(unsafe.Pointer(bp)) - Float64FromInt32(1)) + } + c = v1 + c = c / *(*float64)(unsafe.Pointer(bp)) + } else { + c = Float64FromInt32(0) + } + /* reduce u into [sqrt(2)/2, sqrt(2)] */ + hu = hu&uint32(0x000fffff) + uint32(0x3fe6a09e) + *(*Tuint64_t)(unsafe.Pointer(bp)) = uint64(hu)< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var R, c, dk, f, hfsq, s, t1, t2, w, z Tfloat_t + var iu, ix Tuint32_t + var k int32 + var y, v1 float32 + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = R, c, dk, f, hfsq, iu, ix, k, s, t1, t2, w, y, y1, y2, z, v1 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + ix = *(*Tuint32_t)(unsafe.Pointer(bp)) + k = int32(1) + if ix < uint32(0x3ed413d0) || ix>>int32(31) != 0 { /* 1+x < sqrt(2)+ */ + if ix >= uint32(0xbf800000) { /* x <= -1.0 */ + if x3 == float32(-Int32FromInt32(1)) { + return x3 / Float32FromFloat32(0) + } /* log1p(-1)=+inf */ + return (x3 - x3) / Float32FromFloat32(0) /* log1p(x<-1)=NaN */ + } + if ix<= uint32(0x7f800000) { + return x3 + } + } + if k != 0 { + *(*float32)(unsafe.Pointer(bp)) = Float32FromInt32(1) + x3 + iu = *(*Tuint32_t)(unsafe.Pointer(bp)) + iu = iu + Uint32FromInt32(Int32FromInt32(0x3f800000)-Int32FromInt32(0x3f3504f3)) + k = Int32FromUint32(iu>>Int32FromInt32(23)) - int32(0x7f) + /* correction term ~ log(1+x)-log(u), avoid underflow in c/u */ + if k < int32(25) { + if k >= int32(2) { + v1 = Float32FromInt32(1) - (*(*float32)(unsafe.Pointer(bp)) - x3) + } else { + v1 = x3 - (*(*float32)(unsafe.Pointer(bp)) - Float32FromInt32(1)) + } + c = float64(v1) + c = c / float64(*(*float32)(unsafe.Pointer(bp))) + } else { + c = Float64FromInt32(0) + } + /* reduce u into [sqrt(2)/2, sqrt(2)] */ + iu = iu&uint32(0x007fffff) + uint32(0x3f3504f3) + *(*Tuint32_t)(unsafe.Pointer(bp)) = iu + f = float64(*(*float32)(unsafe.Pointer(bp)) - Float32FromInt32(1)) + } + s = f / (Float64FromFloat32(2) + f) + z = Tfloat_t(s * s) + w = Tfloat_t(z * z) + t1 = Tfloat_t(w * (float64(_Lg23) + Tfloat_t(w*float64(_Lg43)))) + t2 = Tfloat_t(z * (float64(_Lg13) + Tfloat_t(w*float64(_Lg33)))) + R = t2 + t1 + hfsq = Tfloat_t(Tfloat_t(Float64FromFloat32(0.5)*f) * f) + dk = float64(k) + return float32(Tfloat_t(s*(hfsq+R)) + (Tfloat_t(dk*float64(_ln2_lo3)) + c) - hfsq + f + Tfloat_t(dk*float64(_ln2_hi3))) +} + +func Xlog1pl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xlog1p(tls, x) +} + +const LOG2_POLY1_ORDER = 11 +const LOG2_POLY_ORDER = 7 +const LOG2_TABLE_BITS = 6 +const N5 = 64 + +// C documentation +// +// /* Top 16 bits of a double. */ +func _top161(tls *TLS, x float64) (r Tuint32_t) { + return uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(48)) +} + +func Xlog2(tls *TLS, x1 float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x1=%v, (%v:)", tls, x1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var hi, invc, kd, lo, logc, p, r, r2, r4, t1, t2, t3, y1, z Tdouble_t + var i, k int32 + var ix, iz, tmp Tuint64_t + var top Tuint32_t + var y, v1, v2, v3, v4 float64 + var v5 bool + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = hi, i, invc, ix, iz, k, kd, lo, logc, p, r, r2, r4, t1, t2, t3, tmp, top, y, y1, z, v1, v2, v3, v4, v5 + ix = *(*Tuint64_t)(unsafe.Pointer(&x1)) + top = _top161(tls, x1) + v1 = Float64FromFloat64(1) - Float64FromFloat64(0.04239702224731445) + v2 = Float64FromFloat64(1) + Float64FromFloat64(0.044274330139160156) + v3 = Float64FromFloat64(1) - Float64FromFloat64(0.04239702224731445) + if ix-*(*Tuint64_t)(unsafe.Pointer(&v1)) < *(*Tuint64_t)(unsafe.Pointer(&v2))-*(*Tuint64_t)(unsafe.Pointer(&v3)) { + /* Handle close to 1.0 inputs separately. */ + /* Fix sign of zero with downward rounding when x==1. */ + if v5 = Bool(int32(WANT_ROUNDING) != 0); v5 { + v4 = float64(1) + } + if v5 && ix == *(*Tuint64_t)(unsafe.Pointer(&v4)) { + return Float64FromInt32(0) + } + r = x1 - float64(1) + hi = Tdouble_t(r * X__log2_data.Finvln2hi) + lo = Tdouble_t(r*X__log2_data.Finvln2lo) + float64(X__builtin_fma(tls, r, X__log2_data.Finvln2hi, -hi)) + r2 = Tdouble_t(r * r) /* rounding error: 0x1p-62. */ + r4 = Tdouble_t(r2 * r2) + /* Worst-case error is less than 0.54 ULP (0.55 ULP without fma). */ + p = Tdouble_t(r2 * (**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 64)) + float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 64 + 1*8))))) + y1 = hi + p + lo = lo + (hi - y1 + p) + lo = lo + Tdouble_t(r4*(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 64 + 2*8))+float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 64 + 3*8)))+float64(r2*(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 64 + 4*8))+float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 64 + 5*8)))))+float64(r4*(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 64 + 6*8))+float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 64 + 7*8)))+float64(r2*(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 64 + 8*8))+float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 64 + 9*8))))))))) + y1 = y1 + lo + y = y1 + v1 = y + goto _7 + _7: + return v1 + } + if top-uint32(0x0010) >= Uint32FromInt32(Int32FromInt32(0x7ff0)-Int32FromInt32(0x0010)) { + /* x < 0x1p-1022 or inf or nan. */ + if ix*uint64(2) == uint64(0) { + return X__math_divzero(tls, uint32(1)) + } + v1 = float64(X__builtin_inff(tls)) + if ix == *(*Tuint64_t)(unsafe.Pointer(&v1)) { /* log(inf) == inf. */ + return x1 + } + if top&uint32(0x8000) != 0 || top&uint32(0x7ff0) == uint32(0x7ff0) { + return X__math_invalid(tls, x1) + } + /* x is subnormal, normalize it. */ + v1 = float64(x1 * float64(4.503599627370496e+15)) + ix = *(*Tuint64_t)(unsafe.Pointer(&v1)) + ix = uint64(ix - Uint64FromUint64(52)<> (Int32FromInt32(52) - Int32FromInt32(LOG2_TABLE_BITS)) % Uint64FromInt32(Int32FromInt32(1)<> int32(52)) /* arithmetic shift */ + iz = uint64(ix - tmp&(Uint64FromUint64(0xfff)< 0x1p-4: 0.547 ULP (0.550 ULP without fma). + ~ 0.5 + 2/N/ln2 + abs-poly-error*0x1p56 ULP (+ 0.003 ULP without fma). */ + p = **(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 16)) + float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 16 + 1*8))) + float64(r2*(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 16 + 2*8))+float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 16 + 3*8))))) + float64(r4*(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 16 + 4*8))+float64(r***(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2_data)) + 16 + 5*8))))) + y1 = lo + Tdouble_t(r2*p) + hi + y = y1 + v1 = y + goto _11 +_11: + return v1 +} + +type Tlog2_data = struct { + Finvln2hi float64 + Finvln2lo float64 + Fpoly [6]float64 + Fpoly1 [10]float64 + Ftab [64]struct { + Finvc float64 + Flogc float64 + } +} + +const LOG2F_POLY_ORDER = 4 +const LOG2F_TABLE_BITS = 4 +const N6 = 16 +const OFF1 = 1060306944 + +/* +LOG2F_TABLE_BITS = 4 +LOG2F_POLY_ORDER = 4 + +ULP error: 0.752 (nearest rounding.) +Relative error: 1.9 * 2^-26 (before rounding.) +*/ + +func Xlog2f(tls *TLS, x1 float32) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x1=%v, (%v:)", tls, x1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var i, k int32 + var invc, logc, p, r, r2, y0, y1, z Tdouble_t + var ix, iz, tmp, top Tuint32_t + var y, v1 float32 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = i, invc, ix, iz, k, logc, p, r, r2, tmp, top, y, y0, y1, z, v1 + ix = *(*Tuint32_t)(unsafe.Pointer(&x1)) + /* Fix sign of zero with downward rounding when x==1. */ + if Bool(int32(WANT_ROUNDING) != 0) && ix == uint32(0x3f800000) { + return Float32FromInt32(0) + } + if ix-uint32(0x00800000) >= Uint32FromInt32(Int32FromInt32(0x7f800000)-Int32FromInt32(0x00800000)) { + /* x < 0x1p-126 or inf or nan. */ + if ix*uint32(2) == uint32(0) { + return X__math_divzerof(tls, uint32(1)) + } + if ix == uint32(0x7f800000) { /* log2(inf) == inf. */ + return x1 + } + if ix&uint32(0x80000000) != 0 || ix*uint32(2) >= uint32(0xff000000) { + return X__math_invalidf(tls, x1) + } + /* x is subnormal, normalize it. */ + v1 = float32(x1 * Float32FromFloat32(8.388608e+06)) + ix = *(*Tuint32_t)(unsafe.Pointer(&v1)) + ix = ix - Uint32FromInt32(Int32FromInt32(23)<> (Int32FromInt32(23) - Int32FromInt32(LOG2F_TABLE_BITS)) % Uint32FromInt32(Int32FromInt32(1)<> int32(23) /* arithmetic shift */ + invc = (**(**struct { + Finvc float64 + Flogc float64 + })(__ccgo_up(uintptr(unsafe.Pointer(&X__log2f_data)) + uintptr(i)*16))).Finvc + logc = (**(**struct { + Finvc float64 + Flogc float64 + })(__ccgo_up(uintptr(unsafe.Pointer(&X__log2f_data)) + uintptr(i)*16))).Flogc + z = float64(*(*float32)(unsafe.Pointer(&iz))) + /* log2(x) = log1p(z/c-1)/ln2 + log2(c) + k */ + r = Tdouble_t(z*invc) - Float64FromInt32(1) + y0 = logc + float64(k) + /* Pipelined polynomial evaluation to approximate log1p(r)/ln2. */ + r2 = Tdouble_t(r * r) + y1 = float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2f_data)) + 256 + 1*8))*r) + **(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2f_data)) + 256 + 2*8)) + y1 = float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2f_data)) + 256))*r2) + y1 + p = float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__log2f_data)) + 256 + 3*8))*r) + y0 + y1 = Tdouble_t(y1*r2) + p + y = float32(y1) + v1 = y + goto _3 +_3: + return v1 +} + +type Tlog2f_data = struct { + Ftab [16]struct { + Finvc float64 + Flogc float64 + } + Fpoly [4]float64 +} + +func Xlog2l(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xlog2(tls, x) +} + +const N7 = 128 + +type Tlog_data = struct { + Fln2hi float64 + Fln2lo float64 + Fpoly [5]float64 + Fpoly1 [11]float64 + Ftab [128]struct { + Finvc float64 + Flogc float64 + } +} + +/* +special cases: + logb(+-0) = -inf, and raise divbyzero + logb(+-inf) = +inf + logb(nan) = nan +*/ + +func Xlogb(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uint64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _ = v1 + *(*float64)(unsafe.Pointer(bp)) = x + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + if !(BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) < Uint64FromUint64(0x7ff)< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uint32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _ = v1 + *(*float32)(unsafe.Pointer(bp)) = x + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + if !(BoolInt32(v1&Uint32FromInt32(0x7fffffff) < Uint32FromInt32(0x7f800000)) != 0) { + return float32(x * x) + } + if x == Float32FromInt32(0) { + return float32(-Int32FromInt32(1)) / float32(x*x) + } + return float32(Xilogbf(tls, x)) +} + +func Xlogbl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uint64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _ = v1 + *(*float64)(unsafe.Pointer(bp)) = x + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + if !(BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) < Uint64FromUint64(0x7ff)< %v", r1) }() + } + var i, k int32 + var invc, logc, r, r2, y0, y1, z Tdouble_t + var ix, iz, tmp Tuint32_t + var y, v1 float32 + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = i, invc, ix, iz, k, logc, r, r2, tmp, y, y0, y1, z, v1 + ix = *(*Tuint32_t)(unsafe.Pointer(&x1)) + /* Fix sign of zero with downward rounding when x==1. */ + if Bool(int32(WANT_ROUNDING) != 0) && ix == uint32(0x3f800000) { + return Float32FromInt32(0) + } + if ix-uint32(0x00800000) >= Uint32FromInt32(Int32FromInt32(0x7f800000)-Int32FromInt32(0x00800000)) { + /* x < 0x1p-126 or inf or nan. */ + if ix*uint32(2) == uint32(0) { + return X__math_divzerof(tls, uint32(1)) + } + if ix == uint32(0x7f800000) { /* log(inf) == inf. */ + return x1 + } + if ix&uint32(0x80000000) != 0 || ix*uint32(2) >= uint32(0xff000000) { + return X__math_invalidf(tls, x1) + } + /* x is subnormal, normalize it. */ + v1 = float32(x1 * Float32FromFloat32(8.388608e+06)) + ix = *(*Tuint32_t)(unsafe.Pointer(&v1)) + ix = ix - Uint32FromInt32(Int32FromInt32(23)<> (Int32FromInt32(23) - Int32FromInt32(LOGF_TABLE_BITS)) % Uint32FromInt32(Int32FromInt32(1)<> int32(23) /* arithmetic shift */ + iz = ix - tmp&uint32(0xff800000) + invc = (**(**struct { + Finvc float64 + Flogc float64 + })(__ccgo_up(uintptr(unsafe.Pointer(&X__logf_data)) + uintptr(i)*16))).Finvc + logc = (**(**struct { + Finvc float64 + Flogc float64 + })(__ccgo_up(uintptr(unsafe.Pointer(&X__logf_data)) + uintptr(i)*16))).Flogc + z = float64(*(*float32)(unsafe.Pointer(&iz))) + /* log(x) = log1p(z/c-1) + log(c) + k*Ln2 */ + r = Tdouble_t(z*invc) - Float64FromInt32(1) + y0 = logc + Tdouble_t(float64(k)*X__logf_data.Fln2) + /* Pipelined polynomial evaluation to approximate log1p(r). */ + r2 = Tdouble_t(r * r) + y1 = float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__logf_data)) + 264 + 1*8))*r) + **(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__logf_data)) + 264 + 2*8)) + y1 = float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__logf_data)) + 264))*r2) + y1 + y1 = Tdouble_t(y1*r2) + (y0 + r) + y = float32(y1) + v1 = y + goto _3 +_3: + return v1 +} + +type Tlogf_data = struct { + Ftab [16]struct { + Finvc float64 + Flogc float64 + } + Fln2 float64 + Fpoly [3]float64 +} + +func Xlogl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xlog(tls, x) +} + +/* +If the result cannot be represented (overflow, nan), then +lrint raises the invalid exception. + +Otherwise if the input was not an integer then the inexact +exception is raised. + +C99 is a bit vague about whether inexact exception is +allowed to be raised when invalid is raised. +(F.9 explicitly allows spurious inexact exceptions, F.9.6.5 +does not make it clear if that rule applies to lrint, but +IEEE 754r 7.8 seems to forbid spurious inexact exception in +the ineger conversion functions) + +So we try to make sure that no spurious inexact exception is +raised in case of an overflow. + +If the bit size of long > precision of double, then there +cannot be inexact rounding in case the result overflows, +otherwise LONG_MAX and LONG_MIN can be represented exactly +as a double. +*/ + +func Xlrint(tls *TLS, x float64) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int64(Xrint(tls, x)) +} + +/* uses LONG_MAX > 2^24, see comments in lrint.c */ + +func Xlrintf(tls *TLS, x float32) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int64(Xrintf(tls, x)) +} + +func Xlrintl(tls *TLS, x float64) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xlrint(tls, x) +} + +func Xlround(tls *TLS, x float64) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int64(Xround(tls, x)) +} + +func Xlroundf(tls *TLS, x float32) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int64(Xroundf(tls, x)) +} + +func Xlroundl(tls *TLS, x float64) (r int64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int64(Xroundl(tls, x)) +} + +func Xmodf(tls *TLS, x float64, iptr uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v iptr=%v, (%v:)", tls, x, iptr, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e int32 + var mask Tuint64_t + var v1 uintptr + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _ = e, mask, v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + e = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp))>>Int32FromInt32(52)&Uint64FromInt32(0x7ff)) - int32(0x3ff) + /* no fractional part */ + if e >= int32(52) { + **(**float64)(__ccgo_up(iptr)) = x + if e == int32(0x400) && *(*Tuint64_t)(unsafe.Pointer(bp))<> Int32FromInt32(12) >> e) + if *(*Tuint64_t)(unsafe.Pointer(bp))&mask == uint64(0) { + **(**float64)(__ccgo_up(iptr)) = x + v1 = bp + *(*Tuint64_t)(unsafe.Pointer(v1)) = Tuint64_t(*(*Tuint64_t)(unsafe.Pointer(v1)) & (Uint64FromUint64(1) << Int32FromInt32(63))) + return *(*float64)(unsafe.Pointer(bp)) + } + *(*Tuint64_t)(unsafe.Pointer(bp)) &= ^mask + **(**float64)(__ccgo_up(iptr)) = *(*float64)(unsafe.Pointer(bp)) + return x - *(*float64)(unsafe.Pointer(bp)) +} + +func Xmodff(tls *TLS, x float32, iptr uintptr) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v iptr=%v, (%v:)", tls, x, iptr, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e int32 + var mask Tuint32_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _ = e, mask + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + e = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp))>>Int32FromInt32(23)&Uint32FromInt32(0xff)) - int32(0x7f) + /* no fractional part */ + if e >= int32(23) { + **(**float32)(__ccgo_up(iptr)) = x + if e == int32(0x80) && *(*Tuint32_t)(unsafe.Pointer(bp))<> e) + if *(*Tuint32_t)(unsafe.Pointer(bp))&mask == uint32(0) { + **(**float32)(__ccgo_up(iptr)) = x + *(*Tuint32_t)(unsafe.Pointer(bp)) &= uint32(0x80000000) + return *(*float32)(unsafe.Pointer(bp)) + } + *(*Tuint32_t)(unsafe.Pointer(bp)) &= ^mask + **(**float32)(__ccgo_up(iptr)) = *(*float32)(unsafe.Pointer(bp)) + return x - *(*float32)(unsafe.Pointer(bp)) +} + +func Xmodfl(tls *TLS, x float64, iptr uintptr) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x=%v iptr=%v, (%v:)", tls, x, iptr, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var r float64 + var _ /* d at bp+0 */ float64 + _ = r + r = Xmodf(tls, x, bp) + **(**float64)(__ccgo_up(iptr)) = float64(**(**float64)(__ccgo_up(bp))) + return r +} + +func Xnan(tls *TLS, s uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + return float64(X__builtin_nanf(tls, __ccgo_ts)) +} + +func Xnanf(tls *TLS, s uintptr) (r float32) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__builtin_nanf(tls, __ccgo_ts) +} + +func Xnanl(tls *TLS, s uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + return float64(X__builtin_nanf(tls, __ccgo_ts)) +} + +func Xnextafter(tls *TLS, x3 float64, y3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v y3=%v, (%v:)", tls, x3, y3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var ax, ay Tuint64_t + var e int32 + var y float32 + var y1, y2 float64 + var v1, v3 uint64 + var v5 bool + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + var _ /* ux at bp+8 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + var _ /* uy at bp+16 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _, _, _ = ax, ay, e, y, y1, y2, v1, v3, v5 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp + 8)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp + 8)) = x3 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp + 16)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp + 16)) = y3 + *(*float64)(unsafe.Pointer(bp)) = x3 + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + ; + if v5 = BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)< ay || (*(*Tuint64_t)(unsafe.Pointer(bp + 8))^*(*Tuint64_t)(unsafe.Pointer(bp + 16)))&(Uint64FromUint64(1)<> int32(52) & uint64(0x7ff)) + /* raise overflow if ux.f is infinite and x is finite */ + if e == int32(0x7ff) { + if uint64(8) == uint64(4) { + y = float32(x3 + x3) + } else { + if uint64(8) == uint64(8) { + y1 = x3 + x3 + } else { + y2 = x3 + x3 + } + } + } + /* raise underflow if ux.f is subnormal or zero */ + if e == 0 { + if uint64(8) == uint64(4) { + y = float32(float64(x3*x3) + float64(*(*float64)(unsafe.Pointer(bp + 8))**(*float64)(unsafe.Pointer(bp + 8)))) + } else { + if uint64(8) == uint64(8) { + y1 = float64(x3*x3) + float64(*(*float64)(unsafe.Pointer(bp + 8))**(*float64)(unsafe.Pointer(bp + 8))) + } else { + y2 = float64(x3*x3) + float64(*(*float64)(unsafe.Pointer(bp + 8))**(*float64)(unsafe.Pointer(bp + 8))) + } + } + } + return *(*float64)(unsafe.Pointer(bp + 8)) +} + +func Xnextafterf(tls *TLS, x3 float32, y3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v y3=%v, (%v:)", tls, x3, y3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ax, ay, e Tuint32_t + var y float32 + var y1, y2 float64 + var v1, v3 uint32 + var v5 bool + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + var _ /* ux at bp+4 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + var _ /* uy at bp+8 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _, _, _, _ = ax, ay, e, y, y1, y2, v1, v3, v5 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp + 4)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp + 4)) = x3 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp + 8)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp + 8)) = y3 + *(*float32)(unsafe.Pointer(bp)) = x3 + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + ; + if v5 = BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0; !v5 { + *(*float32)(unsafe.Pointer(bp)) = y3 + v3 = *(*uint32)(unsafe.Pointer(bp)) + goto _4 + _4: + } + if v5 || BoolInt32(v3&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return x3 + y3 + } + if *(*Tuint32_t)(unsafe.Pointer(bp + 4)) == *(*Tuint32_t)(unsafe.Pointer(bp + 8)) { + return y3 + } + ax = *(*Tuint32_t)(unsafe.Pointer(bp + 4)) & uint32(0x7fffffff) + ay = *(*Tuint32_t)(unsafe.Pointer(bp + 8)) & uint32(0x7fffffff) + if ax == uint32(0) { + if ay == uint32(0) { + return y3 + } + *(*Tuint32_t)(unsafe.Pointer(bp + 4)) = *(*Tuint32_t)(unsafe.Pointer(bp + 8))&uint32(0x80000000) | uint32(1) + } else { + if ax > ay || (*(*Tuint32_t)(unsafe.Pointer(bp + 4))^*(*Tuint32_t)(unsafe.Pointer(bp + 8)))&uint32(0x80000000) != 0 { + *(*Tuint32_t)(unsafe.Pointer(bp + 4)) = *(*Tuint32_t)(unsafe.Pointer(bp + 4)) - 1 + } else { + *(*Tuint32_t)(unsafe.Pointer(bp + 4)) = *(*Tuint32_t)(unsafe.Pointer(bp + 4)) + 1 + } + } + e = *(*Tuint32_t)(unsafe.Pointer(bp + 4)) & uint32(0x7f800000) + /* raise overflow if ux.f is infinite and x is finite */ + if e == uint32(0x7f800000) { + if uint64(4) == uint64(4) { + y = x3 + x3 + } else { + if uint64(4) == uint64(8) { + y1 = float64(x3 + x3) + } else { + y2 = float64(x3 + x3) + } + } + } + /* raise underflow if ux.f is subnormal or zero */ + if e == uint32(0) { + if uint64(4) == uint64(4) { + y = float32(x3*x3) + float32(*(*float32)(unsafe.Pointer(bp + 4))**(*float32)(unsafe.Pointer(bp + 4))) + } else { + if uint64(4) == uint64(8) { + y1 = float64(float32(x3*x3) + float32(*(*float32)(unsafe.Pointer(bp + 4))**(*float32)(unsafe.Pointer(bp + 4)))) + } else { + y2 = float64(float32(x3*x3) + float32(*(*float32)(unsafe.Pointer(bp + 4))**(*float32)(unsafe.Pointer(bp + 4)))) + } + } + } + return *(*float32)(unsafe.Pointer(bp + 4)) +} + +func Xnextafterl(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xnextafter(tls, x, y) +} + +func Xnexttoward(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xnextafter(tls, x, y) +} + +func Xnexttowardf(tls *TLS, x3 float32, y3 float64) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v y3=%v, (%v:)", tls, x3, y3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var e Tuint32_t + var y float32 + var y1, y2 float64 + var v1 uint32 + var v3 uint64 + var v5 bool + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + var _ /* __u at bp+8 */ struct { + F__i [0]uint64 + F__f float64 + } + var _ /* ux at bp+16 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _, _ = e, y, y1, y2, v1, v3, v5 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp + 16)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp + 16)) = x3 + *(*float32)(unsafe.Pointer(bp)) = x3 + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + ; + if v5 = BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0; !v5 { + *(*float64)(unsafe.Pointer(bp + 8)) = y3 + v3 = *(*uint64)(unsafe.Pointer(bp + 8)) + goto _4 + _4: + } + if v5 || BoolInt32(v3&(-Uint64FromUint64(1)>>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(63)) != 0 { + *(*Tuint32_t)(unsafe.Pointer(bp + 16)) |= uint32(0x80000000) + } + } else { + if float64(x3) < y3 { + *(*float32)(unsafe.Pointer(bp)) = x3 + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _9 + _9: + if Int32FromUint32(v1>>Int32FromInt32(31)) != 0 { + *(*Tuint32_t)(unsafe.Pointer(bp + 16)) = *(*Tuint32_t)(unsafe.Pointer(bp + 16)) - 1 + } else { + *(*Tuint32_t)(unsafe.Pointer(bp + 16)) = *(*Tuint32_t)(unsafe.Pointer(bp + 16)) + 1 + } + } else { + *(*float32)(unsafe.Pointer(bp)) = x3 + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _11 + _11: + if Int32FromUint32(v1>>Int32FromInt32(31)) != 0 { + *(*Tuint32_t)(unsafe.Pointer(bp + 16)) = *(*Tuint32_t)(unsafe.Pointer(bp + 16)) + 1 + } else { + *(*Tuint32_t)(unsafe.Pointer(bp + 16)) = *(*Tuint32_t)(unsafe.Pointer(bp + 16)) - 1 + } + } + } + e = *(*Tuint32_t)(unsafe.Pointer(bp + 16)) & uint32(0x7f800000) + /* raise overflow if ux.f is infinite and x is finite */ + if e == uint32(0x7f800000) { + if uint64(4) == uint64(4) { + y = x3 + x3 + } else { + if uint64(4) == uint64(8) { + y1 = float64(x3 + x3) + } else { + y2 = float64(x3 + x3) + } + } + } + /* raise underflow if ux.f is subnormal or zero */ + if e == uint32(0) { + if uint64(4) == uint64(4) { + y = float32(x3*x3) + float32(*(*float32)(unsafe.Pointer(bp + 16))**(*float32)(unsafe.Pointer(bp + 16))) + } else { + if uint64(4) == uint64(8) { + y1 = float64(float32(x3*x3) + float32(*(*float32)(unsafe.Pointer(bp + 16))**(*float32)(unsafe.Pointer(bp + 16)))) + } else { + y2 = float64(float32(x3*x3) + float32(*(*float32)(unsafe.Pointer(bp + 16))**(*float32)(unsafe.Pointer(bp + 16)))) + } + } + } + return *(*float32)(unsafe.Pointer(bp + 16)) +} + +func Xnexttowardl(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xnextafterl(tls, x, y) +} + +const OFF2 = 4604531861337669632 +const POW_LOG_POLY_ORDER = 8 +const POW_LOG_TABLE_BITS = 7 +const SIGN_BIAS = 262144 + +/* +Worst-case error: 0.54 ULP (~= ulperr_exp + 1024*Ln2*relerr_log*2^53) +relerr_log: 1.3 * 2^-68 (Relative error of log, 1.5 * 2^-68 without fma) +ulperr_exp: 0.509 ULP (ULP error of exp, 0.511 ULP without fma) +*/ + +// C documentation +// +// /* Top 12 bits of a double (sign and exponent bits). */ +func _top124(tls *TLS, x float64) (r Tuint32_t) { + return uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(52)) +} + +// C documentation +// +// /* Compute y+TAIL = log(x) where the rounded result is y and TAIL has about +// additional 15 bits precision. IX is the bit representation of x, but +// normalized in the subnormal range using the sign bit for the exponent. */ +func _log_inline(tls *TLS, ix Tuint64_t, tail uintptr) (r1 Tdouble_t) { + var ar, ar2, ar3, hi, invc, kd, lo, lo1, lo2, lo3, lo4, logc, logctail, p, r, t1, t2, y, z Tdouble_t + var i, k int32 + var iz, tmp Tuint64_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = ar, ar2, ar3, hi, i, invc, iz, k, kd, lo, lo1, lo2, lo3, lo4, logc, logctail, p, r, t1, t2, tmp, y, z + /* x = 2^k z; where z is in range [OFF,2*OFF) and exact. + The range is split into N subintervals. + The ith subinterval contains z and c is near its center. */ + tmp = ix - uint64(OFF2) + i = Int32FromUint64(tmp >> (Int32FromInt32(52) - Int32FromInt32(POW_LOG_TABLE_BITS)) % Uint64FromInt32(Int32FromInt32(1)<> int32(52)) /* arithmetic shift */ + iz = uint64(ix - tmp&(Uint64FromUint64(0xfff)< 0, the exponent of scale might have overflowed by <= 460. */ + sbits = uint64(sbits - Uint64FromUint64(1009)<= _top124(tls, float64(512))-_top124(tls, float64(5.551115123125783e-17)) { + if abstop-_top124(tls, float64(5.551115123125783e-17)) >= uint32(0x80000000) { + /* Avoid spurious underflow for tiny x. */ + /* Note: 0 is common input. */ + one = float64(1) + x1 + if sign_bias != 0 { + v1 = -one + } else { + v1 = one + } + return v1 + } + if abstop >= _top124(tls, float64(1024)) { + /* Note: inf and nan are already handled. */ + v2 = x1 + if *(*Tuint64_t)(unsafe.Pointer(&v2))>>int32(63) != 0 { + return X__math_uflow(tls, sign_bias) + } else { + return X__math_oflow(tls, sign_bias) + } + } + /* Large x is special cased below. */ + abstop = uint32(0) + } + /* exp(x) = 2^(k/N) * exp(r), with exp(r) in [2^(-1/2N),2^(1/2N)]. */ + /* x = ln2/N*k + r, with int k and r in [-ln2/2N, ln2/2N]. */ + z = Tdouble_t(X__exp_data.Finvln2N * x1) + /* z - kd is in [-1, 1] in non-nearest rounding modes. */ + y = z + X__exp_data.Fshift + v2 = y + goto _4 +_4: + kd = v2 + v2 = kd + ki = *(*Tuint64_t)(unsafe.Pointer(&v2)) + kd = kd - X__exp_data.Fshift + r = x1 + Tdouble_t(kd*X__exp_data.Fnegln2hiN) + Tdouble_t(kd*X__exp_data.Fnegln2loN) + /* The code assumes 2^-200 < |xtail| < 2^-8/N. */ + r = r + xtail + /* 2^(k/N) ~= scale * (1 + tail). */ + idx = uint64(2) * (ki % Uint64FromInt32(Int32FromInt32(1)< 2^-200 and scale > 2^-739, so there + is no spurious underflow here even without fma. */ + y = scale + Tdouble_t(scale*tmp) + v2 = y + goto _8 +_8: + return v2 +} + +// C documentation +// +// /* Returns 0 if not int, 1 if odd int, 2 if even int. The argument is +// the bit representation of a non-zero finite floating-point value. */ +func _checkint(tls *TLS, iy Tuint64_t) (r int32) { + var e int32 + _ = e + e = Int32FromUint64(iy >> int32(52) & uint64(0x7ff)) + if e < int32(0x3ff) { + return 0 + } + if e > Int32FromInt32(0x3ff)+Int32FromInt32(52) { + return int32(2) + } + if iy&(uint64(1)<<(Int32FromInt32(0x3ff)+Int32FromInt32(52)-e)-uint64(1)) != 0 { + return 0 + } + if iy&(uint64(1)<<(Int32FromInt32(0x3ff)+Int32FromInt32(52)-e)) != 0 { + return int32(1) + } + return int32(2) +} + +// C documentation +// +// /* Returns 1 if input is the bit representation of 0, infinity or nan. */ +func _zeroinfnan(tls *TLS, i Tuint64_t) (r int32) { + var v1 float64 + _ = v1 + v1 = float64(X__builtin_inff(tls)) + return BoolInt32(uint64(2)*i-uint64(1) >= uint64(2)**(*Tuint64_t)(unsafe.Pointer(&v1))-uint64(1)) +} + +func Xpow(tls *TLS, x1 float64, y1 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x1=%v y1=%v, (%v:)", tls, x1, y1, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ehi, elo, hi, x2 Tdouble_t + var ix, iy Tuint64_t + var sign_bias, topx, topy Tuint32_t + var y, v1, v2 float64 + var yint int32 + var v4 bool + var _ /* lo at bp+0 */ Tdouble_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = ehi, elo, hi, ix, iy, sign_bias, topx, topy, x2, y, yint, v1, v2, v4 + sign_bias = uint32(0) + ix = *(*Tuint64_t)(unsafe.Pointer(&x1)) + iy = *(*Tuint64_t)(unsafe.Pointer(&y1)) + topx = _top124(tls, x1) + topy = _top124(tls, y1) + if topx-uint32(0x001) >= Uint32FromInt32(Int32FromInt32(0x7ff)-Int32FromInt32(0x001)) || topy&uint32(0x7ff)-uint32(0x3be) >= Uint32FromInt32(Int32FromInt32(0x43e)-Int32FromInt32(0x3be)) { + /* Note: if |y| > 1075 * ln2 * 2^53 ~= 0x1.749p62 then pow(x,y) = inf/0 + and if |y| < 2^-54 / 1075 ~= 0x1.e7b6p-65 then pow(x,y) = +-1. */ + /* Special cases: (x < 0x1p-126 or inf or nan) or + (|y| < 0x1p-65 or |y| >= 0x1p63 or nan). */ + if _zeroinfnan(tls, iy) != 0 { + if uint64(2)*iy == uint64(0) { + return float64(1) + } + v1 = float64(1) + if ix == *(*Tuint64_t)(unsafe.Pointer(&v1)) { + return float64(1) + } + v1 = float64(X__builtin_inff(tls)) + if v4 = uint64(2)*ix > uint64(2)**(*Tuint64_t)(unsafe.Pointer(&v1)); !v4 { + v2 = float64(X__builtin_inff(tls)) + } + if v4 || uint64(2)*iy > uint64(2)**(*Tuint64_t)(unsafe.Pointer(&v2)) { + return x1 + y1 + } + v1 = float64(1) + if uint64(2)*ix == uint64(2)**(*Tuint64_t)(unsafe.Pointer(&v1)) { + return float64(1) + } + v1 = float64(1) + if BoolInt32(uint64(2)*ix < uint64(2)**(*Tuint64_t)(unsafe.Pointer(&v1))) == BoolInt32(!(iy>>Int32FromInt32(63) != 0)) { + return float64(0) + } /* |x|<1 && y==inf or |x|>1 && y==-inf. */ + return float64(y1 * y1) + } + if _zeroinfnan(tls, ix) != 0 { + x2 = Tdouble_t(x1 * x1) + if ix>>int32(63) != 0 && _checkint(tls, iy) == int32(1) { + x2 = -x2 + } + /* Without the barrier some versions of clang hoist the 1/x2 and + thus division by zero exception can be signaled spuriously. */ + if iy>>int32(63) != 0 { + y = Float64FromInt32(1) / x2 + v2 = y + goto _9 + _9: + v1 = v2 + } else { + v1 = x2 + } + return v1 + } + /* Here x and y are non-zero finite. */ + if ix>>int32(63) != 0 { + /* Finite x < 0. */ + yint = _checkint(tls, iy) + if yint == 0 { + return X__math_invalid(tls, x1) + } + if yint == int32(1) { + sign_bias = Uint32FromInt32(Int32FromInt32(0x800) << Int32FromInt32(EXP_TABLE_BITS)) + } + ix = ix & uint64(0x7fffffffffffffff) + topx = topx & uint32(0x7ff) + } + if topy&uint32(0x7ff)-uint32(0x3be) >= Uint32FromInt32(Int32FromInt32(0x43e)-Int32FromInt32(0x3be)) { + /* Note: sign_bias == 0 here because y is not odd. */ + v1 = float64(1) + if ix == *(*Tuint64_t)(unsafe.Pointer(&v1)) { + return float64(1) + } + if topy&uint32(0x7ff) < uint32(0x3be) { + /* |y| < 2^-65, x^y ~= 1 + y*log(x). */ + if int32(WANT_ROUNDING) != 0 { + v2 = float64(1) + if ix > *(*Tuint64_t)(unsafe.Pointer(&v2)) { + v1 = float64(1) + y1 + } else { + v1 = float64(1) - y1 + } + return v1 + } else { + return float64(1) + } + } + v2 = float64(1) + if BoolInt32(ix > *(*Tuint64_t)(unsafe.Pointer(&v2))) == BoolInt32(topy < uint32(0x800)) { + v1 = X__math_oflow(tls, uint32(0)) + } else { + v1 = X__math_uflow(tls, uint32(0)) + } + return v1 + } + if topx == uint32(0) { + /* Normalize subnormal x so exponent becomes negative. */ + v1 = float64(x1 * float64(4.503599627370496e+15)) + ix = *(*Tuint64_t)(unsafe.Pointer(&v1)) + ix = ix & uint64(0x7fffffffffffffff) + ix = uint64(ix - Uint64FromUint64(52)<> (Int32FromInt32(23) - Int32FromInt32(POWF_LOG2_TABLE_BITS)) % Uint32FromInt32(Int32FromInt32(1)<> (Int32FromInt32(23) - Int32FromInt32(POWF_SCALE_BITS)) /* arithmetic shift */ + invc = (**(**struct { + Finvc float64 + Flogc float64 + })(__ccgo_up(uintptr(unsafe.Pointer(&X__powf_log2_data)) + uintptr(i)*16))).Finvc + logc = (**(**struct { + Finvc float64 + Flogc float64 + })(__ccgo_up(uintptr(unsafe.Pointer(&X__powf_log2_data)) + uintptr(i)*16))).Flogc + z = float64(*(*float32)(unsafe.Pointer(&iz))) + /* log2(x) = log1p(z/c-1)/ln2 + log2(c) + k */ + r = Tdouble_t(z*invc) - Float64FromInt32(1) + y0 = logc + float64(k) + /* Pipelined polynomial evaluation to approximate log1p(r)/ln2. */ + r2 = Tdouble_t(r * r) + y = float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__powf_log2_data)) + 256))*r) + **(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__powf_log2_data)) + 256 + 1*8)) + p = float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__powf_log2_data)) + 256 + 2*8))*r) + **(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__powf_log2_data)) + 256 + 3*8)) + r4 = Tdouble_t(r2 * r2) + q = float64(**(**float64)(__ccgo_up(uintptr(unsafe.Pointer(&X__powf_log2_data)) + 256 + 4*8))*r) + y0 + q = Tdouble_t(p*r2) + q + y = Tdouble_t(y*r4) + q + return y +} + +// C documentation +// +// /* The output of log2 and thus the input of exp2 is either scaled by N +// (in case of fast toint intrinsics) or not. The unscaled xd must be +// in [-1021,1023], sign_bias sets the sign of the result. */ +func _exp2_inline(tls *TLS, xd Tdouble_t, sign_bias Tuint32_t) (r1 float32) { + var kd, r, r2, s, y2, z Tdouble_t + var ki, ski, t Tuint64_t + var y, v4 float32 + var y1, v1 float64 + _, _, _, _, _, _, _, _, _, _, _, _, _ = kd, ki, r, r2, s, ski, t, y, y1, y2, z, v1, v4 + /* x = k/N + r with r in [-1/(2N), 1/(2N)] */ + y1 = xd + X__exp2f_data.Fshift_scaled + v1 = y1 + goto _2 +_2: + kd = v1 + v1 = kd + ki = *(*Tuint64_t)(unsafe.Pointer(&v1)) + kd = kd - X__exp2f_data.Fshift_scaled /* k/N */ + r = xd - kd + /* exp2(x) = 2^(k/N) * 2^r ~= s * (C0*r^3 + C1*r^2 + C2*r + 1) */ + t = **(**Tuint64_t)(__ccgo_up(uintptr(unsafe.Pointer(&X__exp2f_data)) + uintptr(ki%Uint64FromInt32(Int32FromInt32(1)<> int32(23) & uint32(0xff)) + if e < int32(0x7f) { + return 0 + } + if e > Int32FromInt32(0x7f)+Int32FromInt32(23) { + return int32(2) + } + if iy&Uint32FromInt32(Int32FromInt32(1)<<(Int32FromInt32(0x7f)+Int32FromInt32(23)-e)-Int32FromInt32(1)) != 0 { + return 0 + } + if iy&Uint32FromInt32(Int32FromInt32(1)<<(Int32FromInt32(0x7f)+Int32FromInt32(23)-e)) != 0 { + return int32(1) + } + return int32(2) +} + +func _zeroinfnan1(tls *TLS, ix Tuint32_t) (r int32) { + return BoolInt32(uint32(2)*ix-uint32(1) >= Uint32FromUint32(2)*Uint32FromInt32(0x7f800000)-Uint32FromInt32(1)) +} + +func Xpowf(tls *TLS, x1 float32, y1 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x1=%v y1=%v, (%v:)", tls, x1, y1, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ix, iy, sign_bias Tuint32_t + var logx, ylogx Tdouble_t + var x2, v1 Tfloat_t + var y, v2 float32 + var yint int32 + var v5, v6 float64 + _, _, _, _, _, _, _, _, _, _, _, _ = ix, iy, logx, sign_bias, x2, y, yint, ylogx, v1, v2, v5, v6 + sign_bias = uint32(0) + ix = *(*Tuint32_t)(unsafe.Pointer(&x1)) + iy = *(*Tuint32_t)(unsafe.Pointer(&y1)) + if ix-uint32(0x00800000) >= Uint32FromInt32(Int32FromInt32(0x7f800000)-Int32FromInt32(0x00800000)) || _zeroinfnan1(tls, iy) != 0 { + /* Either (x < 0x1p-126 or inf or nan) or (y is 0 or inf or nan). */ + if _zeroinfnan1(tls, iy) != 0 { + if uint32(2)*iy == uint32(0) { + return Float32FromFloat32(1) + } + if ix == uint32(0x3f800000) { + return Float32FromFloat32(1) + } + if uint32(2)*ix > Uint32FromUint32(2)*Uint32FromInt32(0x7f800000) || uint32(2)*iy > Uint32FromUint32(2)*Uint32FromInt32(0x7f800000) { + return x1 + y1 + } + if uint32(2)*ix == Uint32FromInt32(Int32FromInt32(2)*Int32FromInt32(0x3f800000)) { + return Float32FromFloat32(1) + } + if BoolInt32(uint32(2)*ix < Uint32FromInt32(Int32FromInt32(2)*Int32FromInt32(0x3f800000))) == BoolInt32(!(iy&Uint32FromUint32(0x80000000) != 0)) { + return Float32FromFloat32(0) + } /* |x|<1 && y==inf or |x|>1 && y==-inf. */ + return float32(y1 * y1) + } + if _zeroinfnan1(tls, ix) != 0 { + x2 = Tfloat_t(x1 * x1) + if ix&uint32(0x80000000) != 0 && _checkint1(tls, iy) == int32(1) { + x2 = -x2 + } + /* Without the barrier some versions of clang hoist the 1/x2 and + thus division by zero exception can be signaled spuriously. */ + if iy&uint32(0x80000000) != 0 { + y = float32(Float64FromInt32(1) / x2) + v2 = y + goto _3 + _3: + v1 = float64(v2) + } else { + v1 = x2 + } + return float32(v1) + } + /* x and y are non-zero finite. */ + if ix&uint32(0x80000000) != 0 { + /* Finite x < 0. */ + yint = _checkint1(tls, iy) + if yint == 0 { + return X__math_invalidf(tls, x1) + } + if yint == int32(1) { + sign_bias = Uint32FromInt32(Int32FromInt32(1) << (Int32FromInt32(EXP2F_TABLE_BITS) + Int32FromInt32(11))) + } + ix = ix & uint32(0x7fffffff) + } + if ix < uint32(0x00800000) { + /* Normalize subnormal x so exponent becomes negative. */ + v2 = float32(x1 * Float32FromFloat32(8.388608e+06)) + ix = *(*Tuint32_t)(unsafe.Pointer(&v2)) + ix = ix & uint32(0x7fffffff) + ix = ix - Uint32FromInt32(Int32FromInt32(23)<>int32(47)&uint64(0xffff) >= *(*Tuint64_t)(unsafe.Pointer(&v6))>>int32(47) { + /* |y*log(x)| >= 126. */ + if ylogx > Tdouble_t(float64(127.99999995700433)*float64(Int32FromInt32(1)< %v", r) }() + } + return Xpow(tls, x, y) +} + +func Xremainder(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* q at bp+0 */ int32 + return Xremquo(tls, x, y, bp) +} + +func Xdrem(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xremainder(tls, x, y) +} + +func Xremainderf(tls *TLS, x float32, y float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* q at bp+0 */ int32 + return Xremquof(tls, x, y, bp) +} + +func Xdremf(tls *TLS, x float32, y float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xremainderf(tls, x, y) +} + +func Xremainderl(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xremainder(tls, x, y) +} + +func Xremquo(tls *TLS, x float64, y float64, quo uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v quo=%v, (%v:)", tls, x, y, quo, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var ex, ey, sx, sy, v10 int32 + var i, uxi Tuint64_t + var q Tuint32_t + var v1 uint64 + var v11 float64 + var v3 bool + var v6 uintptr + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + var _ /* ux at bp+8 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + var _ /* uy at bp+16 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _, _, _, _, _, _ = ex, ey, i, q, sx, sy, uxi, v1, v10, v11, v3, v6 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp + 8)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp + 8)) = x + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp + 16)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp + 16)) = y + ex = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp + 8)) >> int32(52) & uint64(0x7ff)) + ey = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp + 16)) >> int32(52) & uint64(0x7ff)) + sx = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp + 8)) >> int32(63)) + sy = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp + 16)) >> int32(63)) + uxi = *(*Tuint64_t)(unsafe.Pointer(bp + 8)) + **(**int32)(__ccgo_up(quo)) = 0 + if v3 = *(*Tuint64_t)(unsafe.Pointer(bp + 16))<>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>int32(63) == uint64(0)) { + break + } + goto _4 + _4: + ; + ex = ex - 1 + i = i << uint64(1) + } + uxi = uxi << Uint64FromInt32(-ex+int32(1)) + } else { + uxi = uint64(uxi & (-Uint64FromUint64(1) >> Int32FromInt32(12))) + uxi = uint64(uxi | Uint64FromUint64(1)<>int32(63) == uint64(0)) { + break + } + goto _5 + _5: + ; + ey = ey - 1 + i = i << uint64(1) + } + *(*Tuint64_t)(unsafe.Pointer(bp + 16)) <<= Uint64FromInt32(-ey + int32(1)) + } else { + v6 = bp + 16 + *(*Tuint64_t)(unsafe.Pointer(v6)) = Tuint64_t(*(*Tuint64_t)(unsafe.Pointer(v6)) & (-Uint64FromUint64(1) >> Int32FromInt32(12))) + v6 = bp + 16 + *(*Tuint64_t)(unsafe.Pointer(v6)) = Tuint64_t(*(*Tuint64_t)(unsafe.Pointer(v6)) | Uint64FromUint64(1)< ey) { + break + } + i = uxi - *(*Tuint64_t)(unsafe.Pointer(bp + 16)) + if i>>int32(63) == uint64(0) { + uxi = i + q = q + 1 + } + uxi = uxi << uint64(1) + q = q << uint32(1) + goto _8 + _8: + ; + ex = ex - 1 + } + i = uxi - *(*Tuint64_t)(unsafe.Pointer(bp + 16)) + if i>>int32(63) == uint64(0) { + uxi = i + q = q + 1 + } + if uxi == uint64(0) { + ex = -int32(60) + } else { + for { + if !(uxi>>int32(52) == uint64(0)) { + break + } + goto _9 + _9: + ; + uxi = uxi << uint64(1) + ex = ex - 1 + } + } + goto end +end: + ; + /* scale result and decide between |x| and |x|-|y| */ + if ex > 0 { + uxi = uint64(uxi - Uint64FromUint64(1)<> Uint64FromInt32(-ex+int32(1)) + } + *(*Tuint64_t)(unsafe.Pointer(bp + 8)) = uxi + x = *(*float64)(unsafe.Pointer(bp + 8)) + if sy != 0 { + y = -y + } + if ex == ey || ex+int32(1) == ey && (float64(Float64FromInt32(2)*x) > y || float64(Float64FromInt32(2)*x) == y && q%uint32(2) != 0) { + x = x - y + q = q + 1 + } + q = q & uint32(0x7fffffff) + if sx^sy != 0 { + v10 = -Int32FromUint32(q) + } else { + v10 = Int32FromUint32(q) + } + **(**int32)(__ccgo_up(quo)) = v10 + if sx != 0 { + v11 = -x + } else { + v11 = x + } + return v11 +} + +func Xremquof(tls *TLS, x float32, y float32, quo uintptr) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v quo=%v, (%v:)", tls, x, y, quo, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ex, ey, sx, sy, v8 int32 + var i, q, uxi Tuint32_t + var v1 uint32 + var v3 bool + var v9 float32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + var _ /* ux at bp+4 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + var _ /* uy at bp+8 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _, _, _, _, _, _ = ex, ey, i, q, sx, sy, uxi, v1, v3, v8, v9 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp + 4)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp + 4)) = x + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp + 8)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp + 8)) = y + ex = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp + 4)) >> int32(23) & uint32(0xff)) + ey = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp + 8)) >> int32(23) & uint32(0xff)) + sx = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp + 4)) >> int32(31)) + sy = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp + 8)) >> int32(31)) + uxi = *(*Tuint32_t)(unsafe.Pointer(bp + 4)) + **(**int32)(__ccgo_up(quo)) = 0 + if v3 = *(*Tuint32_t)(unsafe.Pointer(bp + 8))< uint32(0x7f800000)) != 0 || ex == int32(0xff) { + return float32(x*y) / float32(x*y) + } + if *(*Tuint32_t)(unsafe.Pointer(bp + 4))<>int32(31) == uint32(0)) { + break + } + goto _4 + _4: + ; + ex = ex - 1 + i = i << uint32(1) + } + uxi = uxi << Uint32FromInt32(-ex+int32(1)) + } else { + uxi = uxi & (-Uint32FromUint32(1) >> Int32FromInt32(9)) + uxi = uxi | Uint32FromUint32(1)<>int32(31) == uint32(0)) { + break + } + goto _5 + _5: + ; + ey = ey - 1 + i = i << uint32(1) + } + *(*Tuint32_t)(unsafe.Pointer(bp + 8)) <<= Uint32FromInt32(-ey + int32(1)) + } else { + *(*Tuint32_t)(unsafe.Pointer(bp + 8)) &= -Uint32FromUint32(1) >> Int32FromInt32(9) + *(*Tuint32_t)(unsafe.Pointer(bp + 8)) |= Uint32FromUint32(1) << Int32FromInt32(23) + } + q = uint32(0) + if ex < ey { + if ex+int32(1) == ey { + goto end + } + return x + } + /* x mod y */ + for { + if !(ex > ey) { + break + } + i = uxi - *(*Tuint32_t)(unsafe.Pointer(bp + 8)) + if i>>int32(31) == uint32(0) { + uxi = i + q = q + 1 + } + uxi = uxi << uint32(1) + q = q << uint32(1) + goto _6 + _6: + ; + ex = ex - 1 + } + i = uxi - *(*Tuint32_t)(unsafe.Pointer(bp + 8)) + if i>>int32(31) == uint32(0) { + uxi = i + q = q + 1 + } + if uxi == uint32(0) { + ex = -int32(30) + } else { + for { + if !(uxi>>int32(23) == uint32(0)) { + break + } + goto _7 + _7: + ; + uxi = uxi << uint32(1) + ex = ex - 1 + } + } + goto end +end: + ; + /* scale result and decide between |x| and |x|-|y| */ + if ex > 0 { + uxi = uxi - Uint32FromUint32(1)<> Uint32FromInt32(-ex+int32(1)) + } + *(*Tuint32_t)(unsafe.Pointer(bp + 4)) = uxi + x = *(*float32)(unsafe.Pointer(bp + 4)) + if sy != 0 { + y = -y + } + if ex == ey || ex+int32(1) == ey && (float32(Float32FromInt32(2)*x) > y || float32(Float32FromInt32(2)*x) == y && q%uint32(2) != 0) { + x = x - y + q = q + 1 + } + q = q & uint32(0x7fffffff) + if sx^sy != 0 { + v8 = -Int32FromUint32(q) + } else { + v8 = Int32FromUint32(q) + } + **(**int32)(__ccgo_up(quo)) = v8 + if sx != 0 { + v9 = -x + } else { + v9 = x + } + return v9 +} + +func Xremquol(tls *TLS, x float64, y float64, quo uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v quo=%v, (%v:)", tls, x, y, quo, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xremquo(tls, x, y, quo) +} + +const DBL_EPSILON9 = 2.220446049250313e-16 + +var _toint4 = Float64FromInt32(1) / Float64FromFloat64(2.220446049250313e-16) + +func Xrint(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e, s int32 + var y Tdouble_t + var v1 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _ = e, s, y, v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + e = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + s = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(63)) + if e >= Int32FromInt32(0x3ff)+Int32FromInt32(52) { + return x + } + if s != 0 { + y = x - _toint4 + _toint4 + } else { + y = x + _toint4 - _toint4 + } + if y == Float64FromInt32(0) { + if s != 0 { + v1 = -Float64FromFloat64(0) + } else { + v1 = Float64FromInt32(0) + } + return v1 + } + return y +} + +const DBL_EPSILON10 = 0 +const FLT_EPSILON1 = 1.1920928955078125e-07 + +var _toint5 = float64(Float32FromInt32(1) / Float32FromFloat32(1.1920928955078125e-07)) + +func Xrintf(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e, s int32 + var y Tfloat_t + var v1 float32 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _ = e, s, y, v1 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + e = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(23) & uint32(0xff)) + s = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(31)) + if e >= Int32FromInt32(0x7f)+Int32FromInt32(23) { + return x + } + if s != 0 { + y = float64(x) - _toint5 + _toint5 + } else { + y = float64(x) + _toint5 - _toint5 + } + if y == Float64FromInt32(0) { + if s != 0 { + v1 = -Float32FromFloat32(0) + } else { + v1 = Float32FromFloat32(0) + } + return v1 + } + return float32(y) +} + +const FLT_EPSILON2 = 0 + +func Xrintl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xrint(tls, x) +} + +const DBL_EPSILON11 = 2.220446049250313e-16 + +var _toint6 = Float64FromInt32(1) / Float64FromFloat64(2.220446049250313e-16) + +func Xround(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e int32 + var y float32 + var y1, y2 float64 + var y3 Tdouble_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _ = e, y, y1, y2, y3 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + e = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + if e >= Int32FromInt32(0x3ff)+Int32FromInt32(52) { + return x3 + } + if *(*Tuint64_t)(unsafe.Pointer(bp))>>int32(63) != 0 { + x3 = -x3 + } + if e < Int32FromInt32(0x3ff)-Int32FromInt32(1) { + /* raise inexact if x!=0 */ + if uint64(8) == uint64(4) { + y = float32(x3 + _toint6) + } else { + if uint64(8) == uint64(8) { + y1 = x3 + _toint6 + } else { + y2 = float64(x3 + _toint6) + } + } + return float64(Float64FromInt32(0) * *(*float64)(unsafe.Pointer(bp))) + } + y3 = x3 + _toint6 - _toint6 - x3 + if y3 > float64(0.5) { + y3 = y3 + x3 - Float64FromInt32(1) + } else { + if y3 <= -Float64FromFloat64(0.5) { + y3 = y3 + x3 + Float64FromInt32(1) + } else { + y3 = y3 + x3 + } + } + if *(*Tuint64_t)(unsafe.Pointer(bp))>>int32(63) != 0 { + y3 = -y3 + } + return y3 +} + +const DBL_EPSILON12 = 0 +const FLT_EPSILON3 = 1.1920928955078125e-07 + +var _toint7 = float64(Float32FromInt32(1) / Float32FromFloat32(1.1920928955078125e-07)) + +func Xroundf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e int32 + var y float32 + var y1, y2 float64 + var y3 Tfloat_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _ = e, y, y1, y2, y3 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + e = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(23) & uint32(0xff)) + if e >= Int32FromInt32(0x7f)+Int32FromInt32(23) { + return x3 + } + if *(*Tuint32_t)(unsafe.Pointer(bp))>>int32(31) != 0 { + x3 = -x3 + } + if e < Int32FromInt32(0x7f)-Int32FromInt32(1) { + if uint64(8) == uint64(4) { + y = float32(float64(x3) + _toint7) + } else { + if uint64(8) == uint64(8) { + y1 = float64(x3) + _toint7 + } else { + y2 = float64(x3) + _toint7 + } + } + return float32(Float32FromInt32(0) * *(*float32)(unsafe.Pointer(bp))) + } + y3 = float64(x3) + _toint7 - _toint7 - float64(x3) + if y3 > Float64FromFloat32(0.5) { + y3 = y3 + float64(x3) - Float64FromInt32(1) + } else { + if y3 <= float64(-Float32FromFloat32(0.5)) { + y3 = y3 + float64(x3) + Float64FromInt32(1) + } else { + y3 = y3 + float64(x3) + } + } + if *(*Tuint32_t)(unsafe.Pointer(bp))>>int32(31) != 0 { + y3 = -y3 + } + return float32(y3) +} + +const FLT_EPSILON4 = 0 + +func Xroundl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xround(tls, x) +} + +func Xscalb(tls *TLS, x float64, fn float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v fn=%v, (%v:)", tls, x, fn, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1, v3 uint64 + var v5 bool + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _, _, _ = v1, v3, v5 + *(*float64)(unsafe.Pointer(bp)) = x + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + ; + if v5 = BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) < Uint64FromUint64(0x7ff)< float64(0) { + return float64(x * fn) + } else { + return x / -fn + } + } + if Xrint(tls, fn) != fn { + return (fn - fn) / (fn - fn) + } + if fn > float64(65000) { + return Xscalbn(tls, x, int32(65000)) + } + if -fn > float64(65000) { + return Xscalbn(tls, x, -int32(65000)) + } + return Xscalbn(tls, x, int32(fn)) +} + +func Xscalbf(tls *TLS, x float32, fn float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v fn=%v, (%v:)", tls, x, fn, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1, v3 uint32 + var v5 bool + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _, _, _ = v1, v3, v5 + *(*float32)(unsafe.Pointer(bp)) = x + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + ; + if v5 = BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0; !v5 { + *(*float32)(unsafe.Pointer(bp)) = fn + v3 = *(*uint32)(unsafe.Pointer(bp)) + goto _4 + _4: + } + if v5 || BoolInt32(v3&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return float32(x * fn) + } + *(*float32)(unsafe.Pointer(bp)) = fn + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _7 +_7: + if !(BoolInt32(v1&Uint32FromInt32(0x7fffffff) < Uint32FromInt32(0x7f800000)) != 0) { + if fn > Float32FromFloat32(0) { + return float32(x * fn) + } else { + return x / -fn + } + } + if Xrintf(tls, fn) != fn { + return (fn - fn) / (fn - fn) + } + if fn > Float32FromFloat32(65000) { + return Xscalbnf(tls, x, int32(65000)) + } + if -fn > Float32FromFloat32(65000) { + return Xscalbnf(tls, x, -int32(65000)) + } + return Xscalbnf(tls, x, int32(fn)) +} + +func Xscalbln(tls *TLS, x float64, n int64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + if n > int64(INT_MAX) { + n = int64(INT_MAX) + } else { + if n < int64(-Int32FromInt32(1)-Int32FromInt32(0x7fffffff)) { + n = int64(-Int32FromInt32(1) - Int32FromInt32(0x7fffffff)) + } + } + return Xscalbn(tls, x, int32(n)) +} + +func Xscalblnf(tls *TLS, x float32, n int64) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + if n > int64(INT_MAX) { + n = int64(INT_MAX) + } else { + if n < int64(-Int32FromInt32(1)-Int32FromInt32(0x7fffffff)) { + n = int64(-Int32FromInt32(1) - Int32FromInt32(0x7fffffff)) + } + } + return Xscalbnf(tls, x, int32(n)) +} + +func Xscalblnl(tls *TLS, x float64, n int64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xscalbln(tls, x, n) +} + +func Xscalbn(tls *TLS, x float64, n int32) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var y Tdouble_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _ = y + y = x + if n > int32(1023) { + y = y * float64(8.98846567431158e+307) + n = n - int32(1023) + if n > int32(1023) { + y = y * float64(8.98846567431158e+307) + n = n - int32(1023) + if n > int32(1023) { + n = int32(1023) + } + } + } else { + if n < -int32(1022) { + /* make sure final n < -53 to avoid double + rounding in the subnormal range */ + y = y * Tdouble_t(Float64FromFloat64(2.2250738585072014e-308)*Float64FromFloat64(9.007199254740992e+15)) + n = n + (Int32FromInt32(1022) - Int32FromInt32(53)) + if n < -int32(1022) { + y = y * Tdouble_t(Float64FromFloat64(2.2250738585072014e-308)*Float64FromFloat64(9.007199254740992e+15)) + n = n + (Int32FromInt32(1022) - Int32FromInt32(53)) + if n < -int32(1022) { + n = -int32(1022) + } + } + } + } + *(*Tuint64_t)(unsafe.Pointer(bp)) = Uint64FromInt32(Int32FromInt32(0x3ff)+n) << int32(52) + x = float64(y * *(*float64)(unsafe.Pointer(bp))) + return x +} + +func Xscalbnf(tls *TLS, x float32, n int32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var y Tfloat_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _ = y + y = float64(x) + if n > int32(127) { + y = y * Float64FromFloat32(1.7014118346046923e+38) + n = n - int32(127) + if n > int32(127) { + y = y * Float64FromFloat32(1.7014118346046923e+38) + n = n - int32(127) + if n > int32(127) { + n = int32(127) + } + } + } else { + if n < -int32(126) { + y = y * Tfloat_t(Float32FromFloat32(1.1754943508222875e-38)*Float32FromFloat32(1.6777216e+07)) + n = n + (Int32FromInt32(126) - Int32FromInt32(24)) + if n < -int32(126) { + y = y * Tfloat_t(Float32FromFloat32(1.1754943508222875e-38)*Float32FromFloat32(1.6777216e+07)) + n = n + (Int32FromInt32(126) - Int32FromInt32(24)) + if n < -int32(126) { + n = -int32(126) + } + } + } + } + *(*Tuint32_t)(unsafe.Pointer(bp)) = Uint32FromInt32(Int32FromInt32(0x7f)+n) << int32(23) + x = float32(y * float64(*(*float32)(unsafe.Pointer(bp)))) + return x +} + +func Xscalbnl(tls *TLS, x float64, n int32) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xscalbn(tls, x, n) +} + +func Xsignificand(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xscalbn(tls, x, -Xilogb(tls, x)) +} + +func Xsignificandf(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xscalbnf(tls, x, -Xilogbf(tls, x)) +} + +func Xsin(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ix Tuint32_t + var n uint32 + var y float32 + var y1, y2, v1 float64 + var _ /* y at bp+0 */ [2]float64 + _, _, _, _, _, _ = ix, n, y, y1, y2, v1 + /* High word of x. */ + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x3)) >> int32(32)) + ix = ix & uint32(0x7fffffff) + /* |x| ~< pi/4 */ + if ix <= uint32(0x3fe921fb) { + if ix < uint32(0x3e500000) { /* |x| < 2**-26 */ + /* raise inexact if x != 0 and underflow if subnormal*/ + if uint64(8) == uint64(4) { + if ix < uint32(0x00100000) { + v1 = x3 / Float64FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } + y = float32(v1) + } else { + if uint64(8) == uint64(8) { + if ix < uint32(0x00100000) { + v1 = x3 / Float64FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } + y1 = v1 + } else { + if ix < uint32(0x00100000) { + v1 = x3 / Float64FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } + y2 = v1 + } + } + return x3 + } + return X__sin(tls, x3, float64(0), 0) + } + /* sin(Inf or NaN) is NaN */ + if ix >= uint32(0x7ff00000) { + return x3 - x3 + } + /* argument reduction needed */ + n = Uint32FromInt32(X__rem_pio2(tls, x3, bp)) + switch n & Uint32FromInt32(3) { + case uint32(0): + return X__sin(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)], int32(1)) + case uint32(1): + return X__cos(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)]) + case uint32(2): + return -X__sin(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)], int32(1)) + default: + return -X__cos(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)]) + } + return r +} + +func Xsincos(tls *TLS, x3 float64, sin uintptr, cos uintptr) { + if __ccgo_strace { + trc("tls=%v x3=%v sin=%v cos=%v, (%v:)", tls, x3, sin, cos, origin(2)) + } + bp := tls.Alloc(16) + defer tls.Free(16) + var c, s, y1, y2, v1 float64 + var ix Tuint32_t + var n uint32 + var y float32 + var _ /* y at bp+0 */ [2]float64 + _, _, _, _, _, _, _, _ = c, ix, n, s, y, y1, y2, v1 + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x3)) >> int32(32)) + ix = ix & uint32(0x7fffffff) + /* |x| ~< pi/4 */ + if ix <= uint32(0x3fe921fb) { + /* if |x| < 2**-27 * sqrt(2) */ + if ix < uint32(0x3e46a09e) { + /* raise inexact if x!=0 and underflow if subnormal */ + if uint64(8) == uint64(4) { + if ix < uint32(0x00100000) { + v1 = x3 / Float64FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } + y = float32(v1) + } else { + if uint64(8) == uint64(8) { + if ix < uint32(0x00100000) { + v1 = x3 / Float64FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } + y1 = v1 + } else { + if ix < uint32(0x00100000) { + v1 = x3 / Float64FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } + y2 = v1 + } + } + **(**float64)(__ccgo_up(sin)) = x3 + **(**float64)(__ccgo_up(cos)) = float64(1) + return + } + **(**float64)(__ccgo_up(sin)) = X__sin(tls, x3, float64(0), 0) + **(**float64)(__ccgo_up(cos)) = X__cos(tls, x3, float64(0)) + return + } + /* sincos(Inf or NaN) is NaN */ + if ix >= uint32(0x7ff00000) { + v1 = x3 - x3 + **(**float64)(__ccgo_up(cos)) = v1 + **(**float64)(__ccgo_up(sin)) = v1 + return + } + /* argument reduction needed */ + n = Uint32FromInt32(X__rem_pio2(tls, x3, bp)) + s = X__sin(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)], int32(1)) + c = X__cos(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)]) + switch n & Uint32FromInt32(3) { + case uint32(0): + **(**float64)(__ccgo_up(sin)) = s + **(**float64)(__ccgo_up(cos)) = c + case uint32(1): + **(**float64)(__ccgo_up(sin)) = c + **(**float64)(__ccgo_up(cos)) = -s + case uint32(2): + **(**float64)(__ccgo_up(sin)) = -s + **(**float64)(__ccgo_up(cos)) = -c + case uint32(3): + fallthrough + default: + **(**float64)(__ccgo_up(sin)) = -c + **(**float64)(__ccgo_up(cos)) = s + break + } +} + +const M_PI_25 = 1.5707963267948966 + +// C documentation +// +// /* Small multiples of pi/2 rounded to double precision. */ + +var _s1pio2 = float64(Float64FromInt32(1) * Float64FromFloat64(1.5707963267948966)) /* 0x3FF921FB, 0x54442D18 */ +var _s2pio2 = float64(Float64FromInt32(2) * Float64FromFloat64(1.5707963267948966)) /* 0x400921FB, 0x54442D18 */ +var _s3pio2 = float64(Float64FromInt32(3) * Float64FromFloat64(1.5707963267948966)) /* 0x4012D97C, 0x7F3321D2 */ +var _s4pio2 = float64(Float64FromInt32(4) * Float64FromFloat64(1.5707963267948966)) /* 0x401921FB, 0x54442D18 */ + +func Xsincosf(tls *TLS, x3 float32, sin uintptr, cos uintptr) { + if __ccgo_strace { + trc("tls=%v x3=%v sin=%v cos=%v, (%v:)", tls, x3, sin, cos, origin(2)) + } + bp := tls.Alloc(16) + defer tls.Free(16) + var c, s Tfloat_t + var ix Tuint32_t + var n, sign uint32 + var y, v1 float32 + var y1, y2, v4 float64 + var _ /* y at bp+0 */ float64 + _, _, _, _, _, _, _, _, _, _ = c, ix, n, s, sign, y, y1, y2, v1, v4 + ix = *(*Tuint32_t)(unsafe.Pointer(&x3)) + sign = ix >> int32(31) + ix = ix & uint32(0x7fffffff) + /* |x| ~<= pi/4 */ + if ix <= uint32(0x3f490fda) { + /* |x| < 2**-12 */ + if ix < uint32(0x39800000) { + /* raise inexact if x!=0 and underflow if subnormal */ + if uint64(4) == uint64(4) { + if ix < uint32(0x00100000) { + v1 = x3 / Float32FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float32FromFloat32(1.329227995784916e+36) + } + y = v1 + } else { + if uint64(4) == uint64(8) { + if ix < uint32(0x00100000) { + v1 = x3 / Float32FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float32FromFloat32(1.329227995784916e+36) + } + y1 = float64(v1) + } else { + if ix < uint32(0x00100000) { + v1 = x3 / Float32FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float32FromFloat32(1.329227995784916e+36) + } + y2 = float64(v1) + } + } + **(**float32)(__ccgo_up(sin)) = x3 + **(**float32)(__ccgo_up(cos)) = Float32FromFloat32(1) + return + } + **(**float32)(__ccgo_up(sin)) = X__sindf(tls, float64(x3)) + **(**float32)(__ccgo_up(cos)) = X__cosdf(tls, float64(x3)) + return + } + /* |x| ~<= 5*pi/4 */ + if ix <= uint32(0x407b53d1) { + if ix <= uint32(0x4016cbe3) { /* |x| ~<= 3pi/4 */ + if sign != 0 { + **(**float32)(__ccgo_up(sin)) = -X__cosdf(tls, float64(x3)+_s1pio2) + **(**float32)(__ccgo_up(cos)) = X__sindf(tls, float64(x3)+_s1pio2) + } else { + **(**float32)(__ccgo_up(sin)) = X__cosdf(tls, _s1pio2-float64(x3)) + **(**float32)(__ccgo_up(cos)) = X__sindf(tls, _s1pio2-float64(x3)) + } + return + } + /* -sin(x+c) is not correct if x+c could be 0: -0 vs +0 */ + if sign != 0 { + v4 = float64(x3) + _s2pio2 + } else { + v4 = float64(x3) - _s2pio2 + } + **(**float32)(__ccgo_up(sin)) = -X__sindf(tls, v4) + if sign != 0 { + v4 = float64(x3) + _s2pio2 + } else { + v4 = float64(x3) - _s2pio2 + } + **(**float32)(__ccgo_up(cos)) = -X__cosdf(tls, v4) + return + } + /* |x| ~<= 9*pi/4 */ + if ix <= uint32(0x40e231d5) { + if ix <= uint32(0x40afeddf) { /* |x| ~<= 7*pi/4 */ + if sign != 0 { + **(**float32)(__ccgo_up(sin)) = X__cosdf(tls, float64(x3)+_s3pio2) + **(**float32)(__ccgo_up(cos)) = -X__sindf(tls, float64(x3)+_s3pio2) + } else { + **(**float32)(__ccgo_up(sin)) = -X__cosdf(tls, float64(x3)-_s3pio2) + **(**float32)(__ccgo_up(cos)) = X__sindf(tls, float64(x3)-_s3pio2) + } + return + } + if sign != 0 { + v4 = float64(x3) + _s4pio2 + } else { + v4 = float64(x3) - _s4pio2 + } + **(**float32)(__ccgo_up(sin)) = X__sindf(tls, v4) + if sign != 0 { + v4 = float64(x3) + _s4pio2 + } else { + v4 = float64(x3) - _s4pio2 + } + **(**float32)(__ccgo_up(cos)) = X__cosdf(tls, v4) + return + } + /* sin(Inf or NaN) is NaN */ + if ix >= uint32(0x7f800000) { + v1 = x3 - x3 + **(**float32)(__ccgo_up(cos)) = v1 + **(**float32)(__ccgo_up(sin)) = v1 + return + } + /* general argument reduction needed */ + n = Uint32FromInt32(X__rem_pio2f(tls, x3, bp)) + s = float64(X__sindf(tls, **(**float64)(__ccgo_up(bp)))) + c = float64(X__cosdf(tls, **(**float64)(__ccgo_up(bp)))) + switch n & Uint32FromInt32(3) { + case uint32(0): + **(**float32)(__ccgo_up(sin)) = float32(s) + **(**float32)(__ccgo_up(cos)) = float32(c) + case uint32(1): + **(**float32)(__ccgo_up(sin)) = float32(c) + **(**float32)(__ccgo_up(cos)) = float32(-s) + case uint32(2): + **(**float32)(__ccgo_up(sin)) = float32(-s) + **(**float32)(__ccgo_up(cos)) = float32(-c) + case uint32(3): + fallthrough + default: + **(**float32)(__ccgo_up(sin)) = float32(-c) + **(**float32)(__ccgo_up(cos)) = float32(s) + break + } +} + +const M_PI_26 = 0 + +func Xsincosl(tls *TLS, x float64, sin uintptr, cos uintptr) { + if __ccgo_strace { + trc("tls=%v x=%v sin=%v cos=%v, (%v:)", tls, x, sin, cos, origin(2)) + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* cosd at bp+8 */ float64 + var _ /* sind at bp+0 */ float64 + Xsincos(tls, x, bp, bp+8) + **(**float64)(__ccgo_up(sin)) = float64(**(**float64)(__ccgo_up(bp))) + **(**float64)(__ccgo_up(cos)) = float64(**(**float64)(__ccgo_up(bp + 8))) +} + +const M_PI_27 = 1.5707963267948966 + +// C documentation +// +// /* Small multiples of pi/2 rounded to double precision. */ + +var _s1pio21 = float64(Float64FromInt32(1) * Float64FromFloat64(1.5707963267948966)) /* 0x3FF921FB, 0x54442D18 */ +var _s2pio21 = float64(Float64FromInt32(2) * Float64FromFloat64(1.5707963267948966)) /* 0x400921FB, 0x54442D18 */ +var _s3pio21 = float64(Float64FromInt32(3) * Float64FromFloat64(1.5707963267948966)) /* 0x4012D97C, 0x7F3321D2 */ +var _s4pio21 = float64(Float64FromInt32(4) * Float64FromFloat64(1.5707963267948966)) /* 0x401921FB, 0x54442D18 */ + +func Xsinf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ix Tuint32_t + var n, sign int32 + var y, v1 float32 + var y1, y2, v4 float64 + var _ /* y at bp+0 */ float64 + _, _, _, _, _, _, _, _ = ix, n, sign, y, y1, y2, v1, v4 + ix = *(*Tuint32_t)(unsafe.Pointer(&x3)) + sign = Int32FromUint32(ix >> int32(31)) + ix = ix & uint32(0x7fffffff) + if ix <= uint32(0x3f490fda) { /* |x| ~<= pi/4 */ + if ix < uint32(0x39800000) { /* |x| < 2**-12 */ + /* raise inexact if x!=0 and underflow if subnormal */ + if uint64(4) == uint64(4) { + if ix < uint32(0x00800000) { + v1 = x3 / Float32FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float32FromFloat32(1.329227995784916e+36) + } + y = v1 + } else { + if uint64(4) == uint64(8) { + if ix < uint32(0x00800000) { + v1 = x3 / Float32FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float32FromFloat32(1.329227995784916e+36) + } + y1 = float64(v1) + } else { + if ix < uint32(0x00800000) { + v1 = x3 / Float32FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float32FromFloat32(1.329227995784916e+36) + } + y2 = float64(v1) + } + } + return x3 + } + return X__sindf(tls, float64(x3)) + } + if ix <= uint32(0x407b53d1) { /* |x| ~<= 5*pi/4 */ + if ix <= uint32(0x4016cbe3) { /* |x| ~<= 3pi/4 */ + if sign != 0 { + return -X__cosdf(tls, float64(x3)+_s1pio21) + } else { + return X__cosdf(tls, float64(x3)-_s1pio21) + } + } + if sign != 0 { + v4 = -(float64(x3) + _s2pio21) + } else { + v4 = -(float64(x3) - _s2pio21) + } + return X__sindf(tls, v4) + } + if ix <= uint32(0x40e231d5) { /* |x| ~<= 9*pi/4 */ + if ix <= uint32(0x40afeddf) { /* |x| ~<= 7*pi/4 */ + if sign != 0 { + return X__cosdf(tls, float64(x3)+_s3pio21) + } else { + return -X__cosdf(tls, float64(x3)-_s3pio21) + } + } + if sign != 0 { + v4 = float64(x3) + _s4pio21 + } else { + v4 = float64(x3) - _s4pio21 + } + return X__sindf(tls, v4) + } + /* sin(Inf or NaN) is NaN */ + if ix >= uint32(0x7f800000) { + return x3 - x3 + } + /* general argument reduction needed */ + n = X__rem_pio2f(tls, x3, bp) + switch n & Int32FromInt32(3) { + case 0: + return X__sindf(tls, **(**float64)(__ccgo_up(bp))) + case int32(1): + return X__cosdf(tls, **(**float64)(__ccgo_up(bp))) + case int32(2): + return X__sindf(tls, -**(**float64)(__ccgo_up(bp))) + default: + return -X__cosdf(tls, **(**float64)(__ccgo_up(bp))) + } + return r +} + +const M_PI_28 = 0 + +// C documentation +// +// /* sinh(x) = (exp(x) - 1/exp(x))/2 +// * = (exp(x)-1 + (exp(x)-1)/exp(x))/2 +// * = x + x^3/6 + o(x^5) +// */ +func Xsinh(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var absx, h, t float64 + var w Tuint32_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _ = absx, h, t, w + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + h = float64(0.5) + if *(*Tuint64_t)(unsafe.Pointer(bp))>>int32(63) != 0 { + h = -h + } + /* |x| */ + *(*Tuint64_t)(unsafe.Pointer(bp)) &= Uint64FromInt32(-Int32FromInt32(1)) / Uint64FromInt32(2) + absx = *(*float64)(unsafe.Pointer(bp)) + w = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32)) + /* |x| < log(DBL_MAX) */ + if w < uint32(0x40862e42) { + t = Xexpm1(tls, absx) + if w < uint32(0x3ff00000) { + if w < Uint32FromInt32(Int32FromInt32(0x3ff00000)-Int32FromInt32(26)<log(0x1p26)+eps could be just h*exp(x) */ + return float64(h * (t + t/(t+Float64FromInt32(1)))) + } + /* |x| > log(DBL_MAX) or nan */ + /* note: the result is stored to handle overflow */ + t = X__expo2(tls, absx, float64(Float64FromInt32(2)*h)) + return t +} + +func Xsinhf(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var absx, h, t float32 + var w Tuint32_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _ = absx, h, t, w + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + h = float32(0.5) + if *(*Tuint32_t)(unsafe.Pointer(bp))>>int32(31) != 0 { + h = -h + } + /* |x| */ + *(*Tuint32_t)(unsafe.Pointer(bp)) &= uint32(0x7fffffff) + absx = *(*float32)(unsafe.Pointer(bp)) + w = *(*Tuint32_t)(unsafe.Pointer(bp)) + /* |x| < log(FLT_MAX) */ + if w < uint32(0x42b17217) { + t = Xexpm1f(tls, absx) + if w < uint32(0x3f800000) { + if w < Uint32FromInt32(Int32FromInt32(0x3f800000)-Int32FromInt32(12)< logf(FLT_MAX) or nan */ + t = X__expo2f(tls, absx, float32(Float32FromInt32(2)*h)) + return t +} + +func Xsinhl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xsinh(tls, x) +} + +func Xsinl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xsin(tls, x) +} + +const FENV_SUPPORT = 1 + +// C documentation +// +// /* returns a*b*2^-32 - e, with error 0 <= e < 1. */ +func _mul32(tls *TLS, a Tuint32_t, b Tuint32_t) (r Tuint32_t) { + return uint32(uint64(a) * uint64(b) >> int32(32)) +} + +// C documentation +// +// /* returns a*b*2^-64 - e, with error 0 <= e < 3. */ +func _mul64(tls *TLS, a Tuint64_t, b Tuint64_t) (r Tuint64_t) { + var ahi, alo, bhi, blo Tuint64_t + _, _, _, _ = ahi, alo, bhi, blo + ahi = a >> int32(32) + alo = a & uint64(0xffffffff) + bhi = b >> int32(32) + blo = b & uint64(0xffffffff) + return ahi*bhi + ahi*blo>>int32(32) + alo*bhi>>int32(32) +} + +func Xsqrt(tls *TLS, x1 float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x1=%v, (%v:)", tls, x1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var d, d0, d1, d2, i, ix, m, r, s, tiny, top, u Tuint64_t + var even int32 + var t, y, y1, v1 float64 + var v2 int64 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = d, d0, d1, d2, even, i, ix, m, r, s, t, tiny, top, u, y, y1, v1, v2 + /* special case handling. */ + ix = *(*Tuint64_t)(unsafe.Pointer(&x1)) + top = ix >> int32(52) + if top-uint64(0x001) >= Uint64FromInt32(Int32FromInt32(0x7ff)-Int32FromInt32(0x001)) { + /* x < 0x1p-1022 or inf or nan. */ + if ix*uint64(2) == uint64(0) { + return x1 + } + if ix == uint64(0x7ff0000000000000) { + return x1 + } + if ix > uint64(0x7ff0000000000000) { + return X__math_invalid(tls, x1) + } + /* x is subnormal, normalize it. */ + v1 = float64(x1 * float64(4.503599627370496e+15)) + ix = *(*Tuint64_t)(unsafe.Pointer(&v1)) + top = ix >> int32(52) + top = top - uint64(52) + } + /* argument reduction: + x = 4^e m; with integer e, and m in [1, 4) + m: fixed point representation [2.62] + 2^e is the exponent part of the result. */ + even = Int32FromUint64(top & uint64(1)) + m = ix<> uint64(1) + } + top = (top + uint64(0x3ff)) >> int32(1) + i = ix >> Int32FromInt32(46) % uint64(128) + r = uint64(uint32(X__rsqrt_tab[i]) << int32(16)) + /* |r sqrt(m) - 1| < 0x1.fdp-9 */ + s = uint64(_mul32(tls, uint32(m>>int32(32)), uint32(r))) + /* |s/sqrt(m) - 1| < 0x1.fdp-9 */ + d = uint64(_mul32(tls, uint32(s), uint32(r))) + u = _three - d + r = uint64(_mul32(tls, uint32(r), uint32(u)) << int32(1)) + /* |r sqrt(m) - 1| < 0x1.7bp-16 */ + s = uint64(_mul32(tls, uint32(s), uint32(u)) << int32(1)) + /* |s/sqrt(m) - 1| < 0x1.7bp-16 */ + d = uint64(_mul32(tls, uint32(s), uint32(r))) + u = _three - d + r = uint64(_mul32(tls, uint32(r), uint32(u)) << int32(1)) + /* |r sqrt(m) - 1| < 0x1.3704p-29 (measured worst-case) */ + r = r << int32(32) + s = _mul64(tls, m, r) + d = _mul64(tls, s, r) + u = _three<> int32(9) + d0 = m<>int32(63) + s = s & uint64(0x000fffffffffffff) + s = s | top<=13bit table would be needed (16k). + + a newton-raphson iteration for r is + w = r*r + u = 3 - m*w + r = r*u/2 + can use a goldschmidt iteration for s at the end or + s = m*r + + first goldschmidt iteration is + s = m*r + u = 3 - s*r + r = r*u/2 + s = s*u/2 + next goldschmidt iteration is + u = 3 - s*r + r = r*u/2 + s = s*u/2 + and at the end r is not computed only s. + + they use the same amount of operations and converge at the + same quadratic rate, i.e. if + r1 sqrt(m) - 1 = e, then + r2 sqrt(m) - 1 = -3/2 e^2 - 1/2 e^3 + the advantage of goldschmidt is that the mul for s and r + are independent (computed in parallel), however it is not + "self synchronizing": it only uses the input m in the + first iteration so rounding errors accumulate. at the end + or when switching to larger precision arithmetics rounding + errors dominate so the first iteration should be used. + + the fixed point representations are + m: 2.30 r: 0.32, s: 2.30, d: 2.30, u: 2.30, three: 2.30 + and after switching to 64 bit + m: 2.62 r: 0.64, s: 2.62, d: 2.62, u: 2.62, three: 2.62 */ + +var _three = uint64(0xc0000000) + +func _mul321(tls *TLS, a Tuint32_t, b Tuint32_t) (r Tuint32_t) { + return uint32(uint64(a) * uint64(b) >> int32(32)) +} + +/* see sqrt.c for more detailed comments. */ + +func Xsqrtf(tls *TLS, x1 float32) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x1=%v, (%v:)", tls, x1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var d, d0, d1, d2, even, ey, i, ix, m, m0, m1, r, s, tiny, u Tuint32_t + var t, y, y1, v1 float32 + var v2 uint32 + var v3 int32 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = d, d0, d1, d2, even, ey, i, ix, m, m0, m1, r, s, t, tiny, u, y, y1, v1, v2, v3 + ix = *(*Tuint32_t)(unsafe.Pointer(&x1)) + if ix-uint32(0x00800000) >= Uint32FromInt32(Int32FromInt32(0x7f800000)-Int32FromInt32(0x00800000)) { + /* x < 0x1p-126 or inf or nan. */ + if ix*uint32(2) == uint32(0) { + return x1 + } + if ix == uint32(0x7f800000) { + return x1 + } + if ix > uint32(0x7f800000) { + return X__math_invalidf(tls, x1) + } + /* x is subnormal, normalize it. */ + v1 = float32(x1 * Float32FromFloat32(8.388608e+06)) + ix = *(*Tuint32_t)(unsafe.Pointer(&v1)) + ix = ix - Uint32FromInt32(Int32FromInt32(23)<> int32(1) + ey = ey + Uint32FromInt32(Int32FromInt32(0x3f800000)>>Int32FromInt32(1)) + ey = ey & uint32(0x7f800000) + i = ix >> Int32FromInt32(17) % uint32(128) + r = uint32(X__rsqrt_tab[i]) << int32(16) + /* |r*sqrt(m) - 1| < 0x1p-8 */ + s = _mul321(tls, m, r) + /* |s/sqrt(m) - 1| < 0x1p-8 */ + d = _mul321(tls, s, r) + u = _three1 - d + r = _mul321(tls, r, u) << int32(1) + /* |r*sqrt(m) - 1| < 0x1.7bp-16 */ + s = _mul321(tls, s, u) << int32(1) + /* |s/sqrt(m) - 1| < 0x1.7bp-16 */ + d = _mul321(tls, s, r) + u = _three1 - d + s = _mul321(tls, s, u) + /* -0x1.03p-28 < s/sqrt(m) - 1 < 0x1.fp-31 */ + s = (s - uint32(1)) >> int32(6) + d0 = m<>int32(31) + s = s & uint32(0x007fffff) + s = s | ey + y1 = *(*float32)(unsafe.Pointer(&s)) + if int32(FENV_SUPPORT) != 0 { + if d2 == uint32(0) { + v3 = 0 + } else { + v3 = int32(0x01000000) + } + /* handle rounding and inexact exception. */ + tiny = Uint32FromInt32(v3) + tiny = tiny | (d1^d2)&uint32(0x80000000) + t = *(*float32)(unsafe.Pointer(&tiny)) + y = y1 + t + v1 = y + goto _5 + _5: + y1 = v1 + } + return y1 +} + +/* compute r ~ 1/sqrt(m), s ~ sqrt(m) with 2 goldschmidt iterations. */ +var _three1 = uint32(0xc0000000) + +func Xsqrtl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xsqrt(tls, x) +} + +func Xtan(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ix Tuint32_t + var n uint32 + var y float32 + var y1, y2, v1 float64 + var _ /* y at bp+0 */ [2]float64 + _, _, _, _, _, _ = ix, n, y, y1, y2, v1 + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x3)) >> int32(32)) + ix = ix & uint32(0x7fffffff) + /* |x| ~< pi/4 */ + if ix <= uint32(0x3fe921fb) { + if ix < uint32(0x3e400000) { /* |x| < 2**-27 */ + /* raise inexact if x!=0 and underflow if subnormal */ + if uint64(8) == uint64(4) { + if ix < uint32(0x00100000) { + v1 = x3 / Float64FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } + y = float32(v1) + } else { + if uint64(8) == uint64(8) { + if ix < uint32(0x00100000) { + v1 = x3 / Float64FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } + y1 = v1 + } else { + if ix < uint32(0x00100000) { + v1 = x3 / Float64FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } + y2 = v1 + } + } + return x3 + } + return X__tan(tls, x3, float64(0), 0) + } + /* tan(Inf or NaN) is NaN */ + if ix >= uint32(0x7ff00000) { + return x3 - x3 + } + /* argument reduction */ + n = Uint32FromInt32(X__rem_pio2(tls, x3, bp)) + return X__tan(tls, (**(**[2]float64)(__ccgo_up(bp)))[0], (**(**[2]float64)(__ccgo_up(bp)))[int32(1)], Int32FromUint32(n&uint32(1))) +} + +const M_PI_29 = 1.5707963267948966 + +// C documentation +// +// /* Small multiples of pi/2 rounded to double precision. */ + +var _t1pio2 = float64(Float64FromInt32(1) * Float64FromFloat64(1.5707963267948966)) /* 0x3FF921FB, 0x54442D18 */ +var _t2pio2 = float64(Float64FromInt32(2) * Float64FromFloat64(1.5707963267948966)) /* 0x400921FB, 0x54442D18 */ +var _t3pio2 = float64(Float64FromInt32(3) * Float64FromFloat64(1.5707963267948966)) /* 0x4012D97C, 0x7F3321D2 */ +var _t4pio2 = float64(Float64FromInt32(4) * Float64FromFloat64(1.5707963267948966)) /* 0x401921FB, 0x54442D18 */ + +func Xtanf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ix Tuint32_t + var n, sign uint32 + var y, v1 float32 + var y1, y2, v4 float64 + var _ /* y at bp+0 */ float64 + _, _, _, _, _, _, _, _ = ix, n, sign, y, y1, y2, v1, v4 + ix = *(*Tuint32_t)(unsafe.Pointer(&x3)) + sign = ix >> int32(31) + ix = ix & uint32(0x7fffffff) + if ix <= uint32(0x3f490fda) { /* |x| ~<= pi/4 */ + if ix < uint32(0x39800000) { /* |x| < 2**-12 */ + /* raise inexact if x!=0 and underflow if subnormal */ + if uint64(4) == uint64(4) { + if ix < uint32(0x00800000) { + v1 = x3 / Float32FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float32FromFloat32(1.329227995784916e+36) + } + y = v1 + } else { + if uint64(4) == uint64(8) { + if ix < uint32(0x00800000) { + v1 = x3 / Float32FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float32FromFloat32(1.329227995784916e+36) + } + y1 = float64(v1) + } else { + if ix < uint32(0x00800000) { + v1 = x3 / Float32FromFloat32(1.329227995784916e+36) + } else { + v1 = x3 + Float32FromFloat32(1.329227995784916e+36) + } + y2 = float64(v1) + } + } + return x3 + } + return X__tandf(tls, float64(x3), 0) + } + if ix <= uint32(0x407b53d1) { /* |x| ~<= 5*pi/4 */ + if ix <= uint32(0x4016cbe3) { /* |x| ~<= 3pi/4 */ + if sign != 0 { + v4 = float64(x3) + _t1pio2 + } else { + v4 = float64(x3) - _t1pio2 + } + return X__tandf(tls, v4, int32(1)) + } else { + if sign != 0 { + v4 = float64(x3) + _t2pio2 + } else { + v4 = float64(x3) - _t2pio2 + } + return X__tandf(tls, v4, 0) + } + } + if ix <= uint32(0x40e231d5) { /* |x| ~<= 9*pi/4 */ + if ix <= uint32(0x40afeddf) { /* |x| ~<= 7*pi/4 */ + if sign != 0 { + v4 = float64(x3) + _t3pio2 + } else { + v4 = float64(x3) - _t3pio2 + } + return X__tandf(tls, v4, int32(1)) + } else { + if sign != 0 { + v4 = float64(x3) + _t4pio2 + } else { + v4 = float64(x3) - _t4pio2 + } + return X__tandf(tls, v4, 0) + } + } + /* tan(Inf or NaN) is NaN */ + if ix >= uint32(0x7f800000) { + return x3 - x3 + } + /* argument reduction */ + n = Uint32FromInt32(X__rem_pio2f(tls, x3, bp)) + return X__tandf(tls, **(**float64)(__ccgo_up(bp)), Int32FromUint32(n&uint32(1))) +} + +const M_PI_210 = 0 + +// C documentation +// +// /* tanh(x) = (exp(x) - exp(-x))/(exp(x) + exp(-x)) +// * = (exp(2*x) - 1)/(exp(2*x) - 1 + 2) +// * = (1 - exp(-2*x))/(exp(-2*x) - 1 + 2) +// */ +func Xtanh(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var sign int32 + var t, v1 Tdouble_t + var w Tuint32_t + var y float32 + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _ = sign, t, w, y, y1, y2, v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + /* x = |x| */ + sign = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(63)) + *(*Tuint64_t)(unsafe.Pointer(bp)) &= Uint64FromInt32(-Int32FromInt32(1)) / Uint64FromInt32(2) + x3 = *(*float64)(unsafe.Pointer(bp)) + w = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32)) + if w > uint32(0x3fe193ea) { + /* |x| > log(3)/2 ~= 0.5493 or nan */ + if w > uint32(0x40340000) { + /* |x| > 20 or nan */ + /* note: this branch avoids raising overflow */ + t = Float64FromInt32(1) - Float64FromInt32(0)/x3 + } else { + t = Xexpm1(tls, float64(Float64FromInt32(2)*x3)) + t = Float64FromInt32(1) - Float64FromInt32(2)/(t+Float64FromInt32(2)) + } + } else { + if w > uint32(0x3fd058ae) { + /* |x| > log(5/3)/2 ~= 0.2554 */ + t = Xexpm1(tls, float64(Float64FromInt32(2)*x3)) + t = t / (t + Float64FromInt32(2)) + } else { + if w >= uint32(0x00100000) { + /* |x| >= 0x1p-1022, up to 2ulp error in [0.1,0.2554] */ + t = Xexpm1(tls, float64(float64(-Int32FromInt32(2))*x3)) + t = -t / (t + Float64FromInt32(2)) + } else { + /* |x| is subnormal */ + /* note: the branch above would not raise underflow in [0x1p-1023,0x1p-1022) */ + if uint64(4) == uint64(4) { + y = float32(x3) + } else { + if uint64(4) == uint64(8) { + y1 = float64(float32(x3)) + } else { + y2 = float64(float32(x3)) + } + } + t = x3 + } + } + } + if sign != 0 { + v1 = -t + } else { + v1 = t + } + return v1 +} + +func Xtanhf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var sign int32 + var t, y, v1 float32 + var w Tuint32_t + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _, _ = sign, t, w, y, y1, y2, v1 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + /* x = |x| */ + sign = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(31)) + *(*Tuint32_t)(unsafe.Pointer(bp)) &= uint32(0x7fffffff) + x3 = *(*float32)(unsafe.Pointer(bp)) + w = *(*Tuint32_t)(unsafe.Pointer(bp)) + if w > uint32(0x3f0c9f54) { + /* |x| > log(3)/2 ~= 0.5493 or nan */ + if w > uint32(0x41200000) { + /* |x| > 10 */ + t = Float32FromInt32(1) + Float32FromInt32(0)/x3 + } else { + t = Xexpm1f(tls, float32(Float32FromInt32(2)*x3)) + t = Float32FromInt32(1) - Float32FromInt32(2)/(t+Float32FromInt32(2)) + } + } else { + if w > uint32(0x3e82c578) { + /* |x| > log(5/3)/2 ~= 0.2554 */ + t = Xexpm1f(tls, float32(Float32FromInt32(2)*x3)) + t = t / (t + Float32FromInt32(2)) + } else { + if w >= uint32(0x00800000) { + /* |x| >= 0x1p-126 */ + t = Xexpm1f(tls, float32(float32(-Int32FromInt32(2))*x3)) + t = -t / (t + Float32FromInt32(2)) + } else { + /* |x| is subnormal */ + if uint64(4) == uint64(4) { + y = float32(x3 * x3) + } else { + if uint64(4) == uint64(8) { + y1 = float64(x3 * x3) + } else { + y2 = float64(x3 * x3) + } + } + t = x3 + } + } + } + if sign != 0 { + v1 = -t + } else { + v1 = t + } + return v1 +} + +func Xtanhl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xtanh(tls, x) +} + +func Xtanl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xtan(tls, x) +} + +const N10 = 12 + +var _pi4 = float64(3.141592653589793) + +// C documentation +// +// /* sin(pi x) with x > 0x1p-100, if sin(pi*x)==0 the sign is arbitrary */ +func _sinpi(tls *TLS, x float64) (r float64) { + var n int32 + _ = n + /* argument reduction: x = |x| mod 2 */ + /* spurious inexact when x is odd int */ + x = float64(x * float64(0.5)) + x = float64(Float64FromInt32(2) * (x - Xfloor(tls, x))) + /* reduce x into [-.25,.25] */ + n = int32(Float64FromInt32(4) * x) + n = (n + int32(1)) / int32(2) + x = x - float64(float64(n)*float64(0.5)) + x = x * _pi4 + switch n { + default: /* case 4 */ + fallthrough + case 0: + return X__sin(tls, x, Float64FromInt32(0), 0) + case int32(1): + return X__cos(tls, x, Float64FromInt32(0)) + case int32(2): + return X__sin(tls, -x, Float64FromInt32(0), 0) + case int32(3): + return -X__cos(tls, x, Float64FromInt32(0)) + } + return r +} + +// C documentation +// +// //static const double g = 6.024680040776729583740234375; +var _gmhalf = float64(5.52468004077673) +var _Snum = [13]float64{ + 0: float64(2.353137688041076e+10), + 1: float64(4.29198036426491e+10), + 2: float64(3.571195923735567e+10), + 3: float64(1.792103442603721e+10), + 4: float64(6.039542586352028e+09), + 5: float64(1.4397204073117216e+09), + 6: float64(2.4887455786205417e+08), + 7: float64(3.1426415585400194e+07), + 8: float64(2.8763706289353725e+06), + 9: float64(186056.26539522348), + 10: float64(8071.672002365816), + 11: float64(210.82427775157936), + 12: float64(2.5066282746310002), +} +var _Sden = [13]float64{ + 1: Float64FromInt32(39916800), + 2: Float64FromInt32(120543840), + 3: Float64FromInt32(150917976), + 4: Float64FromInt32(105258076), + 5: Float64FromInt32(45995730), + 6: Float64FromInt32(13339535), + 7: Float64FromInt32(2637558), + 8: Float64FromInt32(357423), + 9: Float64FromInt32(32670), + 10: Float64FromInt32(1925), + 11: Float64FromInt32(66), + 12: Float64FromInt32(1), +} + +// C documentation +// +// /* n! for small integer n */ +var _fact = [23]float64{ + 0: Float64FromInt32(1), + 1: Float64FromInt32(1), + 2: Float64FromInt32(2), + 3: Float64FromInt32(6), + 4: Float64FromInt32(24), + 5: Float64FromInt32(120), + 6: Float64FromInt32(720), + 7: float64(5040), + 8: float64(40320), + 9: float64(362880), + 10: float64(3.6288e+06), + 11: float64(3.99168e+07), + 12: float64(4.790016e+08), + 13: float64(6.2270208e+09), + 14: float64(8.71782912e+10), + 15: float64(1.307674368e+12), + 16: float64(2.0922789888e+13), + 17: float64(3.55687428096e+14), + 18: float64(6.402373705728e+15), + 19: float64(1.21645100408832e+17), + 20: float64(2.43290200817664e+18), + 21: float64(5.109094217170944e+19), + 22: float64(1.1240007277776077e+21), +} + +// C documentation +// +// /* S(x) rational function for positive x */ +func _S(tls *TLS, x float64) (r float64) { + var den, num Tdouble_t + var i int32 + _, _, _ = den, i, num + num = Float64FromInt32(0) + den = Float64FromInt32(0) + /* to avoid overflow handle large x differently */ + if x < Float64FromInt32(8) { + i = int32(N10) + for { + if !(i >= 0) { + break + } + num = Tdouble_t(num*x) + _Snum[i] + den = Tdouble_t(den*x) + _Sden[i] + goto _1 + _1: + ; + i = i - 1 + } + } else { + i = 0 + for { + if !(i <= int32(N10)) { + break + } + num = num/x + _Snum[i] + den = den/x + _Sden[i] + goto _2 + _2: + ; + i = i + 1 + } + } + return num / den +} + +func Xtgamma(tls *TLS, x3 float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var absx, y1, y2, y3, v1 float64 + var dy, r, z Tdouble_t + var ix Tuint32_t + var sign int32 + var y float32 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _, _, _, _, _ = absx, dy, ix, r, sign, y, y1, y2, y3, z, v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + ix = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32) & uint64(0x7fffffff)) + sign = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(63)) + /* special cases */ + if ix >= uint32(0x7ff00000) { + /* tgamma(nan)=nan, tgamma(inf)=inf, tgamma(-inf)=nan with invalid */ + return x3 + float64(X__builtin_inff(tls)) + } + if ix < Uint32FromInt32((Int32FromInt32(0x3ff)-Int32FromInt32(54))<= 172: tgamma(x)=inf with overflow */ + /* x =< -184: tgamma(x)=+-0 with underflow */ + if ix >= uint32(0x40670000) { /* |x| >= 184 */ + if sign != 0 { + if uint64(4) == uint64(4) { + y = float32(Float64FromFloat64(1.1754943508222875e-38) / x3) + } else { + if uint64(4) == uint64(8) { + y1 = float64(float32(Float64FromFloat64(1.1754943508222875e-38) / x3)) + } else { + y2 = float64(float32(Float64FromFloat64(1.1754943508222875e-38) / x3)) + } + } + if float64(Xfloor(tls, x3)*float64(0.5)) == Xfloor(tls, float64(x3*float64(0.5))) { + return Float64FromInt32(0) + } + return -Float64FromFloat64(0) + } + x3 = x3 * float64(8.98846567431158e+307) + return x3 + } + if sign != 0 { + v1 = -x3 + } else { + v1 = x3 + } + absx = v1 + /* handle the error of x + g - 0.5 */ + y3 = absx + _gmhalf + if absx > _gmhalf { + dy = y3 - absx + dy = dy - _gmhalf + } else { + dy = y3 - _gmhalf + dy = dy - absx + } + z = absx - float64(0.5) + r = Tdouble_t(_S(tls, absx) * Xexp(tls, -y3)) + if x3 < Float64FromInt32(0) { + /* reflection formula for negative x */ + /* sinpi(absx) is not 0, integers are already handled */ + r = -_pi4 / float64(float64(_sinpi(tls, absx)*absx)*r) + dy = -dy + z = -z + } + r = r + Tdouble_t(Tdouble_t(dy*(_gmhalf+Float64FromFloat64(0.5)))*r)/y3 + z = Xpow(tls, y3, float64(float64(0.5)*z)) + y3 = float64(Tdouble_t(r*z) * z) + return y3 +} + +func Xtgammaf(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return float32(Xtgamma(tls, float64(x))) +} + +func Xtgammal(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xtgamma(tls, x) +} + +func Xtrunc(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e int32 + var m Tuint64_t + var y float32 + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _ = e, m, y, y1, y2 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + e = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp))>>Int32FromInt32(52)&Uint64FromInt32(0x7ff)) - int32(0x3ff) + int32(12) + if e >= Int32FromInt32(52)+Int32FromInt32(12) { + return x3 + } + if e < int32(12) { + e = int32(1) + } + m = uint64(-Uint64FromUint64(1) >> e) + if *(*Tuint64_t)(unsafe.Pointer(bp))&m == uint64(0) { + return x3 + } + if uint64(8) == uint64(4) { + y = float32(x3 + Float64FromFloat32(1.329227995784916e+36)) + } else { + if uint64(8) == uint64(8) { + y1 = x3 + Float64FromFloat32(1.329227995784916e+36) + } else { + y2 = float64(x3 + Float64FromFloat32(1.329227995784916e+36)) + } + } + *(*Tuint64_t)(unsafe.Pointer(bp)) &= ^m + return *(*float64)(unsafe.Pointer(bp)) +} + +func Xtruncf(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e int32 + var m Tuint32_t + var y float32 + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _ = e, m, y, y1, y2 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + e = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp))>>Int32FromInt32(23)&Uint32FromInt32(0xff)) - int32(0x7f) + int32(9) + if e >= Int32FromInt32(23)+Int32FromInt32(9) { + return x3 + } + if e < int32(9) { + e = int32(1) + } + m = -Uint32FromUint32(1) >> e + if *(*Tuint32_t)(unsafe.Pointer(bp))&m == uint32(0) { + return x3 + } + if uint64(4) == uint64(4) { + y = x3 + Float32FromFloat32(1.329227995784916e+36) + } else { + if uint64(4) == uint64(8) { + y1 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } else { + y2 = float64(x3 + Float32FromFloat32(1.329227995784916e+36)) + } + } + *(*Tuint32_t)(unsafe.Pointer(bp)) &= ^m + return *(*float32)(unsafe.Pointer(bp)) +} + +func Xtruncl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xtrunc(tls, x) +} + +var _digits = [65]uint8{'.', '/', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'} + +func Xa64l(tls *TLS, s uintptr) (r int64) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var d uintptr + var e int32 + var x Tuint32_t + _, _, _ = d, e, x + x = uint32(0) + e = 0 + for { + if !(e < int32(36) && **(**uint8)(__ccgo_up(s)) != 0) { + break + } + d = Xstrchr(tls, uintptr(unsafe.Pointer(&_digits)), Int32FromUint8(**(**uint8)(__ccgo_up(s)))) + if !(d != 0) { + break + } + x = x | Uint32FromInt64(int64(d)-t__predefined_ptrdiff_t(uintptr(unsafe.Pointer(&_digits))))< %v", r) }() + } + var p uintptr + var x Tuint32_t + _, _ = p, x + x = Uint32FromInt64(x0) + p = uintptr(unsafe.Pointer(&_s)) + for { + if !(x != 0) { + break + } + **(**uint8)(__ccgo_up(p)) = _digits[x&uint32(63)] + goto _1 + _1: + ; + p = p + 1 + x = x >> uint32(6) + } + **(**uint8)(__ccgo_up(p)) = uint8(0) + return uintptr(unsafe.Pointer(&_s)) +} + +var _s [7]uint8 + +func Xbasename(tls *TLS, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var i Tsize_t + _ = i + if !(s != 0) || !(**(**uint8)(__ccgo_up(s)) != 0) { + return __ccgo_ts + 598 + } + i = _strlen(tls, s) - uint64(1) + for { + if !(i != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(i)))) == int32('/')) { + break + } + **(**uint8)(__ccgo_up(s + uintptr(i))) = uint8(0) + goto _1 + _1: + ; + i = i - 1 + } + for { + if !(i != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(i-uint64(1))))) != int32('/')) { + break + } + goto _2 + _2: + ; + i = i - 1 + } + return s + uintptr(i) +} + +func X__xpg_basename(tls *TLS, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xbasename(tls, s) +} + +func Xdirname(tls *TLS, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var i Tsize_t + _ = i + if !(s != 0) || !(**(**uint8)(__ccgo_up(s)) != 0) { + return __ccgo_ts + 598 + } + i = _strlen(tls, s) - uint64(1) + for { + if !(Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(i)))) == int32('/')) { + break + } + if !(i != 0) { + return __ccgo_ts + 606 + } + goto _1 + _1: + ; + i = i - 1 + } + for { + if !(Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(i)))) != int32('/')) { + break + } + if !(i != 0) { + return __ccgo_ts + 598 + } + goto _2 + _2: + ; + i = i - 1 + } + for { + if !(Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(i)))) == int32('/')) { + break + } + if !(i != 0) { + return __ccgo_ts + 606 + } + goto _3 + _3: + ; + i = i - 1 + } + **(**uint8)(__ccgo_up(s + uintptr(i+uint64(1)))) = uint8(0) + return s +} + +func Xffs(tls *TLS, i int32) (r int32) { + if __ccgo_strace { + trc("tls=%v i=%v, (%v:)", tls, i, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1, v3 int32 + var v2 uint64 + _, _, _ = v1, v2, v3 + if i != 0 { + v2 = Uint64FromInt32(i) + v3 = _a_ctz_64(tls, v2) + goto _4 + _4: + v1 = v3 + int32(1) + } else { + v1 = 0 + } + return v1 +} + +func Xffsl(tls *TLS, i int64) (r int32) { + if __ccgo_strace { + trc("tls=%v i=%v, (%v:)", tls, i, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1, v3 int32 + var v2 uint64 + _, _, _ = v1, v2, v3 + if i != 0 { + v2 = Uint64FromInt64(i) + v3 = _a_ctz_64(tls, v2) + goto _4 + _4: + v1 = v3 + int32(1) + } else { + v1 = 0 + } + return v1 +} + +func Xffsll(tls *TLS, i int64) (r int32) { + if __ccgo_strace { + trc("tls=%v i=%v, (%v:)", tls, i, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + _ = v1 + if i != 0 { + v1 = _a_ctz_64(tls, Uint64FromInt64(i)) + int32(1) + } else { + v1 = 0 + } + return v1 +} + +const MM_APPL = 8 +const MM_CONSOLE = 512 +const MM_ERROR = 2 +const MM_FIRM = 4 +const MM_HALT = 1 +const MM_HARD = 1 +const MM_INFO = 4 +const MM_NOCON = 4 +const MM_NOMSG = 1 +const MM_NOSEV = 0 +const MM_NOTOK = -1 +const MM_NRECOV = 128 +const MM_NULLMC = 0 +const MM_NULLSEV = 0 +const MM_OK = 0 +const MM_OPSYS = 32 +const MM_PRINT = 256 +const MM_RECOVER = 64 +const MM_SOFT = 2 +const MM_UTIL = 16 +const MM_WARNING = 3 + +// C documentation +// +// /* +// * If lstr is the first part of bstr, check that the next char in bstr +// * is either \0 or : +// */ +func __strcolcmp(tls *TLS, lstr uintptr, bstr uintptr) (r int32) { + var i Tsize_t + _ = i + i = uint64(0) + for **(**uint8)(__ccgo_up(lstr + uintptr(i))) != 0 && **(**uint8)(__ccgo_up(bstr + uintptr(i))) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(bstr + uintptr(i)))) == Int32FromUint8(**(**uint8)(__ccgo_up(lstr + uintptr(i)))) { + i = i + 1 + } + if **(**uint8)(__ccgo_up(lstr + uintptr(i))) != 0 || **(**uint8)(__ccgo_up(bstr + uintptr(i))) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(bstr + uintptr(i)))) != int32(':') { + return int32(1) + } + return 0 +} + +func Xfmtmsg(tls *TLS, classification int64, label uintptr, severity int32, text uintptr, action uintptr, tag uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v classification=%v label=%v severity=%v text=%v action=%v tag=%v, (%v:)", tls, classification, label, severity, text, action, tag, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(80) + defer tls.Free(80) + var cmsg, errstring, v1, v2, v3, v4, v5, v6, v7, v8 uintptr + var consolefd, i, ret, verb int32 + var msgs [6]uintptr + var _ /* cs at bp+0 */ int32 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = cmsg, consolefd, errstring, i, msgs, ret, verb, v1, v2, v3, v4, v5, v6, v7, v8 + ret = 0 + verb = 0 + errstring = uintptr(MM_NULLSEV) + cmsg = Xgetenv(tls, __ccgo_ts+608) + msgs = [6]uintptr{ + 0: __ccgo_ts + 616, + 1: __ccgo_ts + 622, + 2: __ccgo_ts + 631, + 3: __ccgo_ts + 636, + 4: __ccgo_ts + 643, + 5: UintptrFromInt32(0), + } + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp) + if severity == int32(MM_HALT) { + errstring = __ccgo_ts + 647 + } else { + if severity == int32(MM_ERROR) { + errstring = __ccgo_ts + 654 + } else { + if severity == int32(MM_WARNING) { + errstring = __ccgo_ts + 662 + } else { + if severity == int32(MM_INFO) { + errstring = __ccgo_ts + 672 + } + } + } + } + if classification&int64(MM_CONSOLE) != 0 { + consolefd = Xopen(tls, __ccgo_ts+679, int32(O_WRONLY), 0) + if consolefd < 0 { + ret = int32(MM_NOCON) + } else { + if label != 0 { + v1 = label + } else { + v1 = __ccgo_ts + } + if label != 0 { + v2 = __ccgo_ts + 378 + } else { + v2 = __ccgo_ts + } + if severity != 0 { + v3 = errstring + } else { + v3 = __ccgo_ts + } + if text != 0 { + v4 = text + } else { + v4 = __ccgo_ts + } + if action != 0 { + v5 = __ccgo_ts + 692 + } else { + v5 = __ccgo_ts + } + if action != 0 { + v6 = action + } else { + v6 = __ccgo_ts + } + if action != 0 { + v7 = __ccgo_ts + 702 + } else { + v7 = __ccgo_ts + } + if tag != 0 { + v8 = tag + } else { + v8 = __ccgo_ts + } + if Xdprintf(tls, consolefd, __ccgo_ts+704, VaList(bp+16, v1, v2, v3, v4, v5, v6, v7, v8)) < int32(1) { + ret = int32(MM_NOCON) + } + Xclose(tls, consolefd) + } + } + if classification&int64(MM_PRINT) != 0 { + for cmsg != 0 && **(**uint8)(__ccgo_up(cmsg)) != 0 { + i = 0 + for { + if !(msgs[i] != 0) { + break + } + if !(__strcolcmp(tls, msgs[i], cmsg) != 0) { + break + } + goto _9 + _9: + ; + i = i + 1 + } + if msgs[i] == UintptrFromInt32(0) { + //ignore MSGVERB-unrecognized component + verb = int32(0xFF) + break + } else { + verb = verb | int32(1)< %v", r) }() + } + bp := tls.Alloc(288) + defer tls.Free(288) + var res uintptr + var _ /* a at bp+0 */ Tstat + var _ /* b at bp+144 */ Tstat + _ = res + res = Xgetenv(tls, __ccgo_ts+722) + if res != 0 && **(**uint8)(__ccgo_up(res)) != 0 && !(Xstat(tls, res, bp) != 0) && !(Xstat(tls, __ccgo_ts+598, bp+144) != 0) && (**(**Tstat)(__ccgo_up(bp))).Fst_dev == (**(**Tstat)(__ccgo_up(bp + 144))).Fst_dev && (**(**Tstat)(__ccgo_up(bp))).Fst_ino == (**(**Tstat)(__ccgo_up(bp + 144))).Fst_ino { + return Xstrdup(tls, res) + } + return Xgetcwd(tls, uintptr(0), uint64(0)) +} + +func X__getauxval(tls *TLS, item uint64) (r uint64) { + if __ccgo_strace { + trc("tls=%v item=%v, (%v:)", tls, item, origin(2)) + defer func() { trc("-> %v", r) }() + } + var auxv uintptr + _ = auxv + auxv = X__libc.Fauxv + if item == uint64(AT_SECURE) { + return uint64(X__libc.Fsecure) + } + for { + if !(**(**Tsize_t)(__ccgo_up(auxv)) != 0) { + break + } + if **(**Tsize_t)(__ccgo_up(auxv)) == item { + return **(**Tsize_t)(__ccgo_up(auxv + 1*8)) + } + goto _1 + _1: + ; + auxv = auxv + uintptr(2)*8 + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOENT) + return uint64(0) +} + +func Xgetauxval(tls *TLS, item uint64) (r uint64) { + if __ccgo_strace { + trc("tls=%v item=%v, (%v:)", tls, item, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__getauxval(tls, item) +} + +type Tutsname = struct { + Fsysname [65]uint8 + Fnodename [65]uint8 + Frelease [65]uint8 + Fversion [65]uint8 + Fmachine [65]uint8 + Fdomainname [65]uint8 +} + +func Xgetdomainname(tls *TLS, name uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v len1=%v, (%v:)", tls, name, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(400) + defer tls.Free(400) + var _ /* temp at bp+0 */ Tutsname + Xuname(tls, bp) + if !(len1 != 0) || _strlen(tls, bp+325) >= len1 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + Xstrcpy(tls, name, bp+325) + return 0 +} + +func Xgetentropy(tls *TLS, buffer uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v buffer=%v len1=%v, (%v:)", tls, buffer, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var pos uintptr + var ret int32 + var _ /* cs at bp+0 */ int32 + _, _ = pos, ret + ret = 0 + pos = buffer + if len1 > uint64(256) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EIO) + return -int32(1) + } + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp) + for len1 != 0 { + ret = int32(Xgetrandom(tls, pos, len1, uint32(0))) + if ret < 0 { + if **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EINTR) { + continue + } else { + break + } + } + pos = pos + uintptr(ret) + len1 = len1 - Uint64FromInt32(ret) + ret = 0 + } + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp)), uintptr(0)) + return ret +} + +func Xgethostid(tls *TLS) (r int64) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return 0 +} + +const optpos = 0 + +type t__ucontext1 = Tucontext_t1 + +func X__getopt_msg(tls *TLS, a uintptr, b uintptr, c uintptr, l Tsize_t) { + if __ccgo_strace { + trc("tls=%v a=%v b=%v c=%v l=%v, (%v:)", tls, a, b, c, l, origin(2)) + } + var __need_unlock, v1 int32 + var f uintptr + _, _, _ = __need_unlock, f, v1 + f = uintptr(unsafe.Pointer(&X__stderr_FILE)) + b = X__lctrans_cur(tls, b) + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + _ = Xfputs(tls, a, f) >= 0 && Xfwrite(tls, b, _strlen(tls, b), uint64(1), f) != 0 && Xfwrite(tls, c, uint64(1), l, f) == l && Xputc(tls, int32('\n'), f) != 0 + if __need_unlock != 0 { + ___unlockfile(tls, f) + } +} + +func Xgetopt(tls *TLS, argc int32, argv uintptr, optstring uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v argc=%v argv=%v optstring=%v, (%v:)", tls, argc, argv, optstring, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var i, k, l, v1 int32 + var optchar uintptr + var _ /* c at bp+0 */ Twchar_t + var _ /* d at bp+4 */ Twchar_t + _, _, _, _, _ = i, k, l, optchar, v1 + if !(Xoptind != 0) || Xoptreset != 0 { + Xoptreset = 0 + X__optpos = 0 + Xoptind = int32(1) + } + if Xoptind >= argc || !(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) != 0) { + return -int32(1) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8))))) != int32('-') { + if Int32FromUint8(**(**uint8)(__ccgo_up(optstring))) == int32('-') { + v1 = Xoptind + Xoptind = Xoptind + 1 + Xoptarg = **(**uintptr)(__ccgo_up(argv + uintptr(v1)*8)) + return int32(1) + } + return -int32(1) + } + if !(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) + 1)) != 0) { + return -int32(1) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) + 1))) == int32('-') && !(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) + 2)) != 0) { + Xoptind = Xoptind + 1 + return -Int32FromInt32(1) + } + if !(X__optpos != 0) { + X__optpos = X__optpos + 1 + } + v1 = Xmbtowc(tls, bp, **(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8))+uintptr(X__optpos), uint64(MB_LEN_MAX)) + k = v1 + if v1 < 0 { + k = int32(1) + **(**Twchar_t)(__ccgo_up(bp)) = int32(0xfffd) /* replacement char */ + } + optchar = **(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) + uintptr(X__optpos) + X__optpos = X__optpos + k + if !(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) + uintptr(X__optpos))) != 0) { + Xoptind = Xoptind + 1 + X__optpos = 0 + } + if Int32FromUint8(**(**uint8)(__ccgo_up(optstring))) == int32('-') || Int32FromUint8(**(**uint8)(__ccgo_up(optstring))) == int32('+') { + optstring = optstring + 1 + } + i = 0 + **(**Twchar_t)(__ccgo_up(bp + 4)) = 0 + for cond := true; cond; cond = l != 0 && **(**Twchar_t)(__ccgo_up(bp + 4)) != **(**Twchar_t)(__ccgo_up(bp)) { + l = Xmbtowc(tls, bp+4, optstring+uintptr(i), uint64(MB_LEN_MAX)) + if l > 0 { + i = i + l + } else { + i = i + 1 + } + } + if **(**Twchar_t)(__ccgo_up(bp + 4)) != **(**Twchar_t)(__ccgo_up(bp)) || **(**Twchar_t)(__ccgo_up(bp)) == int32(':') { + Xoptopt = **(**Twchar_t)(__ccgo_up(bp)) + if Int32FromUint8(**(**uint8)(__ccgo_up(optstring))) != int32(':') && Xopterr != 0 { + X__getopt_msg(tls, **(**uintptr)(__ccgo_up(argv)), __ccgo_ts+726, optchar, Uint64FromInt32(k)) + } + return int32('?') + } + if Int32FromUint8(**(**uint8)(__ccgo_up(optstring + uintptr(i)))) == int32(':') { + Xoptarg = uintptr(0) + if Int32FromUint8(**(**uint8)(__ccgo_up(optstring + uintptr(i+int32(1))))) != int32(':') || X__optpos != 0 { + v1 = Xoptind + Xoptind = Xoptind + 1 + Xoptarg = **(**uintptr)(__ccgo_up(argv + uintptr(v1)*8)) + if X__optpos != 0 { + Xoptarg = Xoptarg + uintptr(X__optpos) + } + X__optpos = 0 + } + if Xoptind > argc { + Xoptopt = **(**Twchar_t)(__ccgo_up(bp)) + if Int32FromUint8(**(**uint8)(__ccgo_up(optstring))) == int32(':') { + return int32(':') + } + if Xopterr != 0 { + X__getopt_msg(tls, **(**uintptr)(__ccgo_up(argv)), __ccgo_ts+750, optchar, Uint64FromInt32(k)) + } + return int32('?') + } + } + return **(**Twchar_t)(__ccgo_up(bp)) +} + +func X__posix_getopt(tls *TLS, argc int32, argv uintptr, optstring uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v argc=%v argv=%v optstring=%v, (%v:)", tls, argc, argv, optstring, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetopt(tls, argc, argv, optstring) +} + +const no_argument = 0 +const optional_argument = 2 +const required_argument = 1 + +type Toption = struct { + Fname uintptr + Fhas_arg int32 + Fflag uintptr + Fval int32 +} + +func _permute(tls *TLS, argv uintptr, dest int32, src int32) { + var av, tmp uintptr + var i int32 + _, _, _ = av, i, tmp + av = argv + tmp = **(**uintptr)(__ccgo_up(av + uintptr(src)*8)) + i = src + for { + if !(i > dest) { + break + } + **(**uintptr)(__ccgo_up(av + uintptr(i)*8)) = **(**uintptr)(__ccgo_up(av + uintptr(i-int32(1))*8)) + goto _1 + _1: + ; + i = i - 1 + } + **(**uintptr)(__ccgo_up(av + uintptr(dest)*8)) = tmp +} + +func ___getopt_long(tls *TLS, argc int32, argv uintptr, optstring uintptr, longopts uintptr, idx uintptr, longonly int32) (r int32) { + var cnt, i, i1, resumed, ret, skipped int32 + _, _, _, _, _, _ = cnt, i, i1, resumed, ret, skipped + if !(Xoptind != 0) || Xoptreset != 0 { + Xoptreset = 0 + X__optpos = 0 + Xoptind = int32(1) + } + if Xoptind >= argc || !(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) != 0) { + return -int32(1) + } + skipped = Xoptind + if Int32FromUint8(**(**uint8)(__ccgo_up(optstring))) != int32('+') && Int32FromUint8(**(**uint8)(__ccgo_up(optstring))) != int32('-') { + i = Xoptind + for { + if i >= argc || !(**(**uintptr)(__ccgo_up(argv + uintptr(i)*8)) != 0) { + return -int32(1) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(i)*8))))) == int32('-') && **(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(i)*8)) + 1)) != 0 { + break + } + goto _1 + _1: + ; + i = i + 1 + } + Xoptind = i + } + resumed = Xoptind + ret = ___getopt_long_core(tls, argc, argv, optstring, longopts, idx, longonly) + if resumed > skipped { + cnt = Xoptind - resumed + i1 = 0 + for { + if !(i1 < cnt) { + break + } + _permute(tls, argv, skipped, Xoptind-int32(1)) + goto _2 + _2: + ; + i1 = i1 + 1 + } + Xoptind = skipped + cnt + } + return ret +} + +func ___getopt_long_core(tls *TLS, argc int32, argv uintptr, optstring uintptr, longopts uintptr, idx uintptr, longonly int32) (r int32) { + var arg, name, opt, start, v5 uintptr + var cnt, colon, i, j, l, match, v2 int32 + _, _, _, _, _, _, _, _, _, _, _, _ = arg, cnt, colon, i, j, l, match, name, opt, start, v2, v5 + Xoptarg = uintptr(0) + if longopts != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8))))) == int32('-') && (longonly != 0 && **(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) + 1)) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) + 1))) != int32('-') || Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) + 1))) == int32('-') && **(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) + 2)) != 0) { + colon = BoolInt32(Int32FromUint8(**(**uint8)(__ccgo_up(optstring + BoolUintptr(Int32FromUint8(**(**uint8)(__ccgo_up(optstring))) == int32('+') || Int32FromUint8(**(**uint8)(__ccgo_up(optstring))) == int32('-'))))) == int32(':')) + start = **(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) + uintptr(1) + v2 = Int32FromInt32(0) + i = v2 + cnt = v2 + for { + if !((**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fname != 0) { + break + } + name = (**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fname + opt = start + if Int32FromUint8(**(**uint8)(__ccgo_up(opt))) == int32('-') { + opt = opt + 1 + } + for **(**uint8)(__ccgo_up(opt)) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(opt))) != int32('=') && Int32FromUint8(**(**uint8)(__ccgo_up(opt))) == Int32FromUint8(**(**uint8)(__ccgo_up(name))) { + name = name + 1 + opt = opt + 1 + } + if **(**uint8)(__ccgo_up(opt)) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(opt))) != int32('=') { + goto _1 + } + arg = opt + match = i + if !(**(**uint8)(__ccgo_up(name)) != 0) { + cnt = int32(1) + break + } + cnt = cnt + 1 + goto _1 + _1: + ; + i = i + 1 + } + if cnt == int32(1) && longonly != 0 && int64(arg)-int64(start) == int64(Xmblen(tls, start, uint64(MB_LEN_MAX))) { + l = int32(int64(arg) - int64(start)) + i = 0 + for { + if !(**(**uint8)(__ccgo_up(optstring + uintptr(i))) != 0) { + break + } + j = 0 + for { + if !(j < l && Int32FromUint8(**(**uint8)(__ccgo_up(start + uintptr(j)))) == Int32FromUint8(**(**uint8)(__ccgo_up(optstring + uintptr(i+j))))) { + break + } + goto _4 + _4: + ; + j = j + 1 + } + if j == l { + cnt = cnt + 1 + break + } + goto _3 + _3: + ; + i = i + 1 + } + } + if cnt == int32(1) { + i = match + opt = arg + Xoptind = Xoptind + 1 + if Int32FromUint8(**(**uint8)(__ccgo_up(opt))) == int32('=') { + if !((**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fhas_arg != 0) { + Xoptopt = (**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fval + if colon != 0 || !(Xopterr != 0) { + return int32('?') + } + X__getopt_msg(tls, **(**uintptr)(__ccgo_up(argv)), __ccgo_ts+782, (**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fname, _strlen(tls, (**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fname)) + return int32('?') + } + Xoptarg = opt + uintptr(1) + } else { + if (**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fhas_arg == int32(required_argument) { + v5 = **(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) + Xoptarg = v5 + if !(v5 != 0) { + Xoptopt = (**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fval + if colon != 0 { + return int32(':') + } + if !(Xopterr != 0) { + return int32('?') + } + X__getopt_msg(tls, **(**uintptr)(__ccgo_up(argv)), __ccgo_ts+750, (**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fname, _strlen(tls, (**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fname)) + return int32('?') + } + Xoptind = Xoptind + 1 + } + } + if idx != 0 { + **(**int32)(__ccgo_up(idx)) = i + } + if (**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fflag != 0 { + **(**int32)(__ccgo_up((**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fflag)) = (**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fval + return 0 + } + return (**(**Toption)(__ccgo_up(longopts + uintptr(i)*32))).Fval + } + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8)) + 1))) == int32('-') { + Xoptopt = 0 + if !(colon != 0) && Xopterr != 0 { + if cnt != 0 { + v5 = __ccgo_ts + 819 + } else { + v5 = __ccgo_ts + 726 + } + X__getopt_msg(tls, **(**uintptr)(__ccgo_up(argv)), v5, **(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8))+uintptr(2), _strlen(tls, **(**uintptr)(__ccgo_up(argv + uintptr(Xoptind)*8))+uintptr(2))) + } + Xoptind = Xoptind + 1 + return int32('?') + } + } + return Xgetopt(tls, argc, argv, optstring) +} + +func Xgetopt_long(tls *TLS, argc int32, argv uintptr, optstring uintptr, longopts uintptr, idx uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v argc=%v argv=%v optstring=%v longopts=%v idx=%v, (%v:)", tls, argc, argv, optstring, longopts, idx, origin(2)) + defer func() { trc("-> %v", r) }() + } + return ___getopt_long(tls, argc, argv, optstring, longopts, idx, 0) +} + +func Xgetopt_long_only(tls *TLS, argc int32, argv uintptr, optstring uintptr, longopts uintptr, idx uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v argc=%v argv=%v optstring=%v longopts=%v idx=%v, (%v:)", tls, argc, argv, optstring, longopts, idx, origin(2)) + defer func() { trc("-> %v", r) }() + } + return ___getopt_long(tls, argc, argv, optstring, longopts, idx, int32(1)) +} + +func Xgetpriority(tls *TLS, which int32, who Tid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v which=%v who=%v, (%v:)", tls, which, who, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret int32 + _ = ret + ret = int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_getpriority), int64(which), Int64FromUint32(who))))) + if ret < 0 { + return ret + } + return int32(20) - ret +} + +func Xgetresgid(tls *TLS, rgid uintptr, egid uintptr, sgid uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v rgid=%v egid=%v sgid=%v, (%v:)", tls, rgid, egid, sgid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_getresgid), int64(rgid), int64(egid), int64(sgid))))) +} + +func Xgetresuid(tls *TLS, ruid uintptr, euid uintptr, suid uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v ruid=%v euid=%v suid=%v, (%v:)", tls, ruid, euid, suid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_getresuid), int64(ruid), int64(euid), int64(suid))))) +} + +func Xgetrlimit(tls *TLS, resource int32, rlim uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v resource=%v rlim=%v, (%v:)", tls, resource, rlim, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ret int32 + var v1 uint64 + var _ /* k_rlim at bp+0 */ [2]uint64 + _, _ = ret, v1 + ret = int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_prlimit64), int64(Int32FromInt32(0)), int64(resource), int64(Int32FromInt32(0)), int64(rlim))))) + if !(ret != 0) { + if (*Trlimit)(unsafe.Pointer(rlim)).Frlim_cur >= ^Uint64FromUint64(0) { + (*Trlimit)(unsafe.Pointer(rlim)).Frlim_cur = ^Uint64FromUint64(0) + } + if (*Trlimit)(unsafe.Pointer(rlim)).Frlim_max >= ^Uint64FromUint64(0) { + (*Trlimit)(unsafe.Pointer(rlim)).Frlim_max = ^Uint64FromUint64(0) + } + } + if !(ret != 0) || **(**int32)(__ccgo_up(X__errno_location(tls))) != int32(ENOSYS) { + return ret + } + if X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_getrlimit), int64(resource), int64(bp)))) < 0 { + return -int32(1) + } + if (**(**[2]uint64)(__ccgo_up(bp)))[0] == -Uint64FromUint64(1) { + v1 = ^Uint64FromUint64(0) + } else { + v1 = (**(**[2]uint64)(__ccgo_up(bp)))[0] + } + (*Trlimit)(unsafe.Pointer(rlim)).Frlim_cur = v1 + if (**(**[2]uint64)(__ccgo_up(bp)))[int32(1)] == -Uint64FromUint64(1) { + v1 = ^Uint64FromUint64(0) + } else { + v1 = (**(**[2]uint64)(__ccgo_up(bp)))[int32(1)] + } + (*Trlimit)(unsafe.Pointer(rlim)).Frlim_max = v1 + if (*Trlimit)(unsafe.Pointer(rlim)).Frlim_cur >= ^Uint64FromUint64(0) { + (*Trlimit)(unsafe.Pointer(rlim)).Frlim_cur = ^Uint64FromUint64(0) + } + if (*Trlimit)(unsafe.Pointer(rlim)).Frlim_max >= ^Uint64FromUint64(0) { + (*Trlimit)(unsafe.Pointer(rlim)).Frlim_max = ^Uint64FromUint64(0) + } + return 0 +} + +func Xgetrusage(tls *TLS, who int32, ru uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v who=%v ru=%v, (%v:)", tls, who, ru, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var dest uintptr + var r int32 + var _ /* kru at bp+0 */ [4]int64 + _, _ = dest, r + dest = ru + 32 - uintptr(Uint64FromInt32(4)*Uint64FromInt64(8)) + r = int32(X__syscall2(tls, int64(SYS_getrusage), int64(who), int64(dest))) + if !(r != 0) && Bool(uint64(8) > uint64(8)) { + Xmemcpy(tls, bp, dest, Uint64FromInt32(4)*Uint64FromInt64(8)) + (*Trusage)(unsafe.Pointer(ru)).Fru_utime = Ttimeval{ + Ftv_sec: (**(**[4]int64)(__ccgo_up(bp)))[0], + Ftv_usec: (**(**[4]int64)(__ccgo_up(bp)))[int32(1)], + } + (*Trusage)(unsafe.Pointer(ru)).Fru_stime = Ttimeval{ + Ftv_sec: (**(**[4]int64)(__ccgo_up(bp)))[int32(2)], + Ftv_usec: (**(**[4]int64)(__ccgo_up(bp)))[int32(3)], + } + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func Xgetsubopt(tls *TLS, opt uintptr, keys uintptr, val uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v opt=%v keys=%v val=%v, (%v:)", tls, opt, keys, val, origin(2)) + defer func() { trc("-> %v", r) }() + } + var i int32 + var l Tsize_t + var s, v1, v2 uintptr + _, _, _, _, _ = i, l, s, v1, v2 + s = **(**uintptr)(__ccgo_up(opt)) + **(**uintptr)(__ccgo_up(val)) = UintptrFromInt32(0) + **(**uintptr)(__ccgo_up(opt)) = Xstrchr(tls, s, int32(',')) + if **(**uintptr)(__ccgo_up(opt)) != 0 { + v2 = opt + v1 = *(*uintptr)(unsafe.Pointer(v2)) + *(*uintptr)(unsafe.Pointer(v2)) = *(*uintptr)(unsafe.Pointer(v2)) + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(0) + } else { + **(**uintptr)(__ccgo_up(opt)) = s + uintptr(_strlen(tls, s)) + } + i = 0 + for { + if !(**(**uintptr)(__ccgo_up(keys + uintptr(i)*8)) != 0) { + break + } + l = _strlen(tls, **(**uintptr)(__ccgo_up(keys + uintptr(i)*8))) + if Xstrncmp(tls, **(**uintptr)(__ccgo_up(keys + uintptr(i)*8)), s, l) != 0 { + goto _3 + } + if Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(l)))) == int32('=') { + **(**uintptr)(__ccgo_up(val)) = s + uintptr(l) + uintptr(1) + } else { + if **(**uint8)(__ccgo_up(s + uintptr(l))) != 0 { + goto _3 + } + } + return i + goto _3 + _3: + ; + i = i + 1 + } + return -int32(1) +} + +const R = 2 +const W = 1 +const WR = 3 + +type Tioctl_compat_map = struct { + Fnew_req int32 + Fold_req int32 + Fold_size uint8 + Fdir uint8 + Fforce_align uint8 + Fnoffs uint8 + Foffsets [8]uint8 +} + +/* yields a type for a struct with original size n, with a misaligned + * timeval/timespec expanded from 32- to 64-bit. for use with ioctl + * number producing macros; only size of result is meaningful. */ + +type Tv4l2_event = struct { + Fa Tuint32_t + Fb [8]Tuint64_t + Fc [2]Tuint32_t + Fts [2]Tuint32_t + Fd [9]Tuint32_t +} + +var _compat_map = [20]Tioctl_compat_map{ + 0: { + Fnew_req: int32(SIOCGSTAMP), + Fold_req: int32(SIOCGSTAMP_OLD), + Fold_size: uint8(8), + Fdir: uint8(R), + Fnoffs: uint8(2), + Foffsets: [8]uint8{ + 1: uint8(4), + }, + }, + 1: { + Fnew_req: int32(SIOCGSTAMPNS), + Fold_req: int32(SIOCGSTAMPNS_OLD), + Fold_size: uint8(8), + Fdir: uint8(R), + Fnoffs: uint8(2), + Foffsets: [8]uint8{ + 1: uint8(4), + }, + }, + 2: { + Fnew_req: Int32FromUint64(uint64(Uint32FromUint32(2)< %v", r1) }() + } + bp := tls.Alloc(256) + defer tls.Free(256) + var ap Tva_list + var arg uintptr + var i, r int32 + var _ /* u at bp+0 */ struct { + Fbuf [0][256]uint8 + Falign int64 + F__ccgo_pad2 [248]byte + } + _, _, _, _ = ap, arg, i, r + ap = va + arg = VaUintptr(&ap) + _ = ap + r = int32(X__syscall3(tls, int64(SYS_ioctl), int64(fd), int64(req), int64(arg))) + if Bool(Bool(int32(SIOCGSTAMP) != int32(SIOCGSTAMP_OLD)) && req != 0) && r == -int32(ENOTTY) { + i = 0 + for { + if !(Uint64FromInt32(i) < Uint64FromInt64(400)/Uint64FromInt64(20)) { + break + } + if _compat_map[i].Fnew_req != req { + goto _1 + } + _convert_ioctl_struct(tls, uintptr(unsafe.Pointer(&_compat_map))+uintptr(i)*20, bp, arg, int32(W)) + r = int32(X__syscall3(tls, int64(SYS_ioctl), int64(fd), int64(_compat_map[i].Fold_req), int64(bp))) + if r < 0 { + break + } + _convert_ioctl_struct(tls, uintptr(unsafe.Pointer(&_compat_map))+uintptr(i)*20, bp, arg, int32(R)) + break + goto _1 + _1: + ; + i = i + 1 + } + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func Xissetugid(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Int32FromUint8(X__libc.Fsecure) +} + +func Xlockf(tls *TLS, fd int32, op int32, size Toff_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v op=%v size=%v, (%v:)", tls, fd, op, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + var _ /* l at bp+0 */ Tflock + **(**Tflock)(__ccgo_up(bp)) = Tflock{ + Fl_type: int16(F_WRLCK), + Fl_whence: int16(1), + Fl_len: size, + } + switch op { + case int32(F_TEST): + (**(**Tflock)(__ccgo_up(bp))).Fl_type = F_RDLCK + if Xfcntl(tls, fd, int32(F_GETLK), VaList(bp+40, bp)) < 0 { + return -int32(1) + } + if int32((**(**Tflock)(__ccgo_up(bp))).Fl_type) == int32(F_UNLCK) || (**(**Tflock)(__ccgo_up(bp))).Fl_pid == Xgetpid(tls) { + return 0 + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EACCES) + return -int32(1) + case F_ULOCK: + (**(**Tflock)(__ccgo_up(bp))).Fl_type = int16(F_UNLCK) + fallthrough + case int32(F_TLOCK): + return Xfcntl(tls, fd, int32(F_SETLK), VaList(bp+40, bp)) + case int32(F_LOCK): + return Xfcntl(tls, fd, int32(F_SETLKW), VaList(bp+40, bp)) + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) +} + +const ACCOUNTING = 9 +const UTMP_FILE = "_PATH_UTMP" +const UTMP_FILENAME = "_PATH_UTMP" +const UT_HOSTSIZE = 256 +const UT_LINESIZE = 32 +const UT_NAMESIZE = 32 +const WTMP_FILE = "_PATH_WTMP" +const WTMP_FILENAME = "_PATH_WTMP" +const _PATH_UTMP = "/dev/null/utmp" +const _PATH_WTMP = "/dev/null/wtmp" +const ut_name = 0 +const utmp = 0 + +type Tlastlog = struct { + Fll_time Ttime_t + Fll_line [32]uint8 + Fll_host [256]uint8 +} + +func Xlogin_tty(tls *TLS, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + Xsetsid(tls) + if Xioctl(tls, fd, int32(TIOCSCTTY), VaList(bp+8, UintptrFromInt32(0))) != 0 { + return -int32(1) + } + Xdup2(tls, fd, 0) + Xdup2(tls, fd, int32(1)) + Xdup2(tls, fd, int32(2)) + if fd > int32(2) { + Xclose(tls, fd) + } + return 0 +} + +const MNTOPT_DEFAULTS = "defaults" +const MNTOPT_NOAUTO = "noauto" +const MNTOPT_NOSUID = "nosuid" +const MNTOPT_RO = "ro" +const MNTOPT_RW = "rw" +const MNTOPT_SUID = "suid" +const MNTTYPE_IGNORE = "ignore" +const MNTTYPE_NFS = "nfs" +const MNTTYPE_SWAP = "swap" +const MOUNTED = "/etc/mtab" +const SENTINEL = 0 + +type Tmntent = struct { + Fmnt_fsname uintptr + Fmnt_dir uintptr + Fmnt_type uintptr + Fmnt_opts uintptr + Fmnt_freq int32 + Fmnt_passno int32 +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +var _internal_buf uintptr +var _internal_bufsize Tsize_t + +func Xsetmntent(tls *TLS, name uintptr, mode uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v mode=%v, (%v:)", tls, name, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfopen(tls, name, mode) +} + +func Xendmntent(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + if f != 0 { + Xfclose(tls, f) + } + return int32(1) +} + +func _unescape_ent(tls *TLS, beg uintptr) (r uintptr) { + var cval uint8 + var dest, src, val, v1, v2 uintptr + var i int32 + _, _, _, _, _, _, _ = cval, dest, i, src, val, v1, v2 + dest = beg + src = beg + for **(**uint8)(__ccgo_up(src)) != 0 { + cval = uint8(0) + if Int32FromUint8(**(**uint8)(__ccgo_up(src))) != int32('\\') { + v1 = dest + dest = dest + 1 + v2 = src + src = src + 1 + **(**uint8)(__ccgo_up(v1)) = **(**uint8)(__ccgo_up(v2)) + continue + } + if Int32FromUint8(**(**uint8)(__ccgo_up(src + 1))) == int32('\\') { + src = src + 1 + v1 = dest + dest = dest + 1 + v2 = src + src = src + 1 + **(**uint8)(__ccgo_up(v1)) = **(**uint8)(__ccgo_up(v2)) + continue + } + val = src + uintptr(1) + i = 0 + for { + if !(i < int32(3)) { + break + } + if Int32FromUint8(**(**uint8)(__ccgo_up(val))) >= int32('0') && Int32FromUint8(**(**uint8)(__ccgo_up(val))) <= int32('7') { + cval = Uint8FromInt32(int32(cval) << Int32FromInt32(3)) + v1 = val + val = val + 1 + cval = Uint8FromInt32(int32(cval) + (Int32FromUint8(**(**uint8)(__ccgo_up(v1))) - Int32FromUint8('0'))) + } else { + break + } + goto _5 + _5: + ; + i = i + 1 + } + if cval != 0 { + v1 = dest + dest = dest + 1 + **(**uint8)(__ccgo_up(v1)) = cval + src = val + } else { + v1 = dest + dest = dest + 1 + v2 = src + src = src + 1 + **(**uint8)(__ccgo_up(v1)) = **(**uint8)(__ccgo_up(v2)) + } + } + **(**uint8)(__ccgo_up(dest)) = uint8(0) + return beg +} + +func Xgetmntent_r(tls *TLS, f uintptr, mnt uintptr, linebuf uintptr, buflen int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v mnt=%v linebuf=%v buflen=%v, (%v:)", tls, f, mnt, linebuf, buflen, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(128) + defer tls.Free(128) + var i, len1 Tsize_t + var use_internal int32 + var _ /* n at bp+0 */ [8]int32 + _, _, _ = i, len1, use_internal + use_internal = BoolInt32(linebuf == uintptr(unsafe.Pointer(&_internal_buf))) + (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_freq = 0 + (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_passno = 0 + for cond := true; cond; cond = Int32FromUint8(**(**uint8)(__ccgo_up(linebuf + uintptr((**(**[8]int32)(__ccgo_up(bp)))[0])))) == int32('#') || Uint64FromInt32((**(**[8]int32)(__ccgo_up(bp)))[int32(1)]) == len1 { + if use_internal != 0 { + Xgetline(tls, uintptr(unsafe.Pointer(&_internal_buf)), uintptr(unsafe.Pointer(&_internal_bufsize)), f) + linebuf = _internal_buf + } else { + Xfgets(tls, linebuf, buflen, f) + } + if Xfeof(tls, f) != 0 || Xferror(tls, f) != 0 { + return uintptr(0) + } + if !(Xstrchr(tls, linebuf, int32('\n')) != 0) { + Xfscanf(tls, f, __ccgo_ts+843, 0) + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ERANGE) + return uintptr(0) + } + len1 = _strlen(tls, linebuf) + if len1 > uint64(INT_MAX) { + continue + } + i = uint64(0) + for { + if !(i < Uint64FromInt64(32)/Uint64FromInt64(4)) { + break + } + (**(**[8]int32)(__ccgo_up(bp)))[i] = Int32FromUint64(len1) + goto _1 + _1: + ; + i = i + 1 + } + Xsscanf(tls, linebuf, __ccgo_ts+855, VaList(bp+40, bp, bp+uintptr(1)*4, bp+uintptr(2)*4, bp+uintptr(3)*4, bp+uintptr(4)*4, bp+uintptr(5)*4, bp+uintptr(6)*4, bp+uintptr(7)*4, mnt+32, mnt+36)) + } + **(**uint8)(__ccgo_up(linebuf + uintptr((**(**[8]int32)(__ccgo_up(bp)))[int32(1)]))) = uint8(0) + **(**uint8)(__ccgo_up(linebuf + uintptr((**(**[8]int32)(__ccgo_up(bp)))[int32(3)]))) = uint8(0) + **(**uint8)(__ccgo_up(linebuf + uintptr((**(**[8]int32)(__ccgo_up(bp)))[int32(5)]))) = uint8(0) + **(**uint8)(__ccgo_up(linebuf + uintptr((**(**[8]int32)(__ccgo_up(bp)))[int32(7)]))) = uint8(0) + (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_fsname = _unescape_ent(tls, linebuf+uintptr((**(**[8]int32)(__ccgo_up(bp)))[0])) + (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_dir = _unescape_ent(tls, linebuf+uintptr((**(**[8]int32)(__ccgo_up(bp)))[int32(2)])) + (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_type = _unescape_ent(tls, linebuf+uintptr((**(**[8]int32)(__ccgo_up(bp)))[int32(4)])) + (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_opts = _unescape_ent(tls, linebuf+uintptr((**(**[8]int32)(__ccgo_up(bp)))[int32(6)])) + return mnt +} + +func Xgetmntent(tls *TLS, f uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetmntent_r(tls, f, uintptr(unsafe.Pointer(&_mnt)), uintptr(unsafe.Pointer(&_internal_buf)), 0) +} + +var _mnt Tmntent + +func Xaddmntent(tls *TLS, f uintptr, mnt uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v mnt=%v, (%v:)", tls, f, mnt, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + if Xfseek(tls, f, 0, int32(2)) != 0 { + return int32(1) + } + return BoolInt32(Xfprintf(tls, f, __ccgo_ts+910, VaList(bp+8, (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_fsname, (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_dir, (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_type, (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_opts, (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_freq, (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_passno)) < 0) +} + +func Xhasmntopt(tls *TLS, mnt uintptr, opt uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v mnt=%v opt=%v, (%v:)", tls, mnt, opt, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrstr(tls, (*Tmntent)(unsafe.Pointer(mnt)).Fmnt_opts, opt) +} + +type Thistory = struct { + Fchain uintptr + Fdev Tdev_t + Fino Tino_t + Flevel int32 + Fbase int32 +} + +func _do_nftw(tls *TLS, path uintptr, __ccgo_fp_fn uintptr, fd_limit int32, flags int32, h uintptr) (r1 int32) { + bp := tls.Alloc(192) + defer tls.Free(192) + var d, de, v10 uintptr + var dfd, err, r, type1, v3 int32 + var j, k, l Tsize_t + var v1 uint64 + var v8 bool + var v2 Tino_t + var _ /* lev at bp+176 */ TFTW + var _ /* new at bp+144 */ Thistory + var _ /* st at bp+0 */ Tstat + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = d, de, dfd, err, j, k, l, r, type1, v1, v10, v2, v3, v8 + l = _strlen(tls, path) + if l != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(path + uintptr(l-uint64(1))))) == int32('/') { + v1 = l - uint64(1) + } else { + v1 = l + } + j = v1 + v2 = Uint64FromInt32(0) + (**(**Tstat)(__ccgo_up(bp))).Fst_ino = v2 + (**(**Tstat)(__ccgo_up(bp))).Fst_dev = v2 + if flags&int32(FTW_PHYS) != 0 { + v3 = Xlstat(tls, path, bp) + } else { + v3 = BoolInt32(Xstat(tls, path, bp) < 0) + } + if v3 != 0 { + if !(flags&Int32FromInt32(FTW_PHYS) != 0) && **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(ENOENT) && !(Xlstat(tls, path, bp) != 0) { + type1 = int32(FTW_SLN) + } else { + if **(**int32)(__ccgo_up(X__errno_location(tls))) != int32(EACCES) { + return -int32(1) + } else { + type1 = int32(FTW_NS) + } + } + } else { + if (**(**Tstat)(__ccgo_up(bp))).Fst_mode&uint32(S_IFMT) == uint32(S_IFDIR) { + if flags&int32(FTW_DEPTH) != 0 { + type1 = int32(FTW_DP) + } else { + type1 = int32(FTW_D) + } + } else { + if (**(**Tstat)(__ccgo_up(bp))).Fst_mode&uint32(S_IFMT) == uint32(S_IFLNK) { + if flags&int32(FTW_PHYS) != 0 { + type1 = int32(FTW_SL) + } else { + type1 = int32(FTW_SLN) + } + } else { + type1 = int32(FTW_F) + } + } + } + if flags&int32(FTW_MOUNT) != 0 && h != 0 && type1 != int32(FTW_NS) && (**(**Tstat)(__ccgo_up(bp))).Fst_dev != (*Thistory)(unsafe.Pointer(h)).Fdev { + return 0 + } + (**(**Thistory)(__ccgo_up(bp + 144))).Fchain = h + (**(**Thistory)(__ccgo_up(bp + 144))).Fdev = (**(**Tstat)(__ccgo_up(bp))).Fst_dev + (**(**Thistory)(__ccgo_up(bp + 144))).Fino = (**(**Tstat)(__ccgo_up(bp))).Fst_ino + if h != 0 { + v3 = (*Thistory)(unsafe.Pointer(h)).Flevel + int32(1) + } else { + v3 = 0 + } + (**(**Thistory)(__ccgo_up(bp + 144))).Flevel = v3 + (**(**Thistory)(__ccgo_up(bp + 144))).Fbase = Int32FromUint64(j + uint64(1)) + (**(**TFTW)(__ccgo_up(bp + 176))).Flevel = (**(**Thistory)(__ccgo_up(bp + 144))).Flevel + if h != 0 { + (**(**TFTW)(__ccgo_up(bp + 176))).Fbase = (*Thistory)(unsafe.Pointer(h)).Fbase + } else { + k = j + for { + if !(k != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(path + uintptr(k)))) == int32('/')) { + break + } + goto _5 + _5: + ; + k = k - 1 + } + for { + if !(k != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(path + uintptr(k-uint64(1))))) != int32('/')) { + break + } + goto _6 + _6: + ; + k = k - 1 + } + (**(**TFTW)(__ccgo_up(bp + 176))).Fbase = Int32FromUint64(k) + } + if type1 == int32(FTW_D) || type1 == int32(FTW_DP) { + dfd = Xopen(tls, path, O_RDONLY, 0) + err = **(**int32)(__ccgo_up(X__errno_location(tls))) + if dfd < 0 && err == int32(EACCES) { + type1 = int32(FTW_DNR) + } + if !(fd_limit != 0) { + Xclose(tls, dfd) + } + } + if v8 = !(flags&Int32FromInt32(FTW_DEPTH) != 0); v8 { + v3 = (*(*func(*TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_fn})))(tls, path, bp, type1, bp+176) + r = v3 + } + if v8 && v3 != 0 { + return r + } + for { + if !(h != 0) { + break + } + if (*Thistory)(unsafe.Pointer(h)).Fdev == (**(**Tstat)(__ccgo_up(bp))).Fst_dev && (*Thistory)(unsafe.Pointer(h)).Fino == (**(**Tstat)(__ccgo_up(bp))).Fst_ino { + return 0 + } + goto _9 + _9: + ; + h = (*Thistory)(unsafe.Pointer(h)).Fchain + } + if (type1 == int32(FTW_D) || type1 == int32(FTW_DP)) && fd_limit != 0 { + if dfd < 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = err + return -int32(1) + } + d = Xfdopendir(tls, dfd) + if d != 0 { + for { + v10 = Xreaddir(tls, d) + de = v10 + if !(v10 != 0) { + break + } + if Int32FromUint8(**(**uint8)(__ccgo_up(de + 19))) == int32('.') && (!(**(**uint8)(__ccgo_up(de + 19 + 1)) != 0) || Int32FromUint8(**(**uint8)(__ccgo_up(de + 19 + 1))) == int32('.') && !(**(**uint8)(__ccgo_up(de + 19 + 2)) != 0)) { + continue + } + if _strlen(tls, de+19) >= uint64(PATH_MAX)-l { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENAMETOOLONG) + Xclosedir(tls, d) + return -int32(1) + } + **(**uint8)(__ccgo_up(path + uintptr(j))) = uint8('/') + Xstrcpy(tls, path+uintptr(j)+uintptr(1), de+19) + v3 = _do_nftw(tls, path, __ccgo_fp_fn, fd_limit-int32(1), flags, bp+144) + r = v3 + if v3 != 0 { + Xclosedir(tls, d) + return r + } + } + Xclosedir(tls, d) + } else { + Xclose(tls, dfd) + return -int32(1) + } + } + **(**uint8)(__ccgo_up(path + uintptr(l))) = uint8(0) + if v8 = flags&int32(FTW_DEPTH) != 0; v8 { + v3 = (*(*func(*TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_fn})))(tls, path, bp, type1, bp+176) + r = v3 + } + if v8 && v3 != 0 { + return r + } + return 0 +} + +type t__ccgo_fp__Xnftw_1 = func(*TLS, uintptr, uintptr, int32, uintptr) int32 + +func Xnftw(tls *TLS, path uintptr, __ccgo_fp_fn uintptr, fd_limit int32, flags int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v path=%v __ccgo_fp_fn=%v fd_limit=%v flags=%v, (%v:)", tls, path, __ccgo_fp_fn, fd_limit, flags, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(4112) + defer tls.Free(4112) + var l Tsize_t + var r int32 + var _ /* cs at bp+0 */ int32 + var _ /* pathbuf at bp+4 */ [4097]uint8 + _, _ = l, r + if fd_limit <= 0 { + return 0 + } + l = _strlen(tls, path) + if l > uint64(PATH_MAX) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENAMETOOLONG) + return -int32(1) + } + Xmemcpy(tls, bp+4, path, l+uint64(1)) + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp) + r = _do_nftw(tls, bp+4, __ccgo_fp_fn, fd_limit, flags, UintptrFromInt32(0)) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp)), uintptr(0)) + return r +} + +/* Nonstandard, but vastly superior to the standard functions */ + +func Xopenpty(tls *TLS, pm uintptr, ps uintptr, name uintptr, tio uintptr, ws uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v pm=%v ps=%v name=%v tio=%v ws=%v, (%v:)", tls, pm, ps, name, tio, ws, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + var m, s, v1 int32 + var _ /* buf at bp+8 */ [20]uint8 + var _ /* cs at bp+4 */ int32 + var _ /* n at bp+0 */ int32 + _, _, _ = m, s, v1 + **(**int32)(__ccgo_up(bp)) = 0 + m = Xopen(tls, __ccgo_ts+929, Int32FromInt32(O_RDWR)|Int32FromInt32(O_NOCTTY), 0) + if m < 0 { + return -int32(1) + } + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp+4) + if Xioctl(tls, m, int32(TIOCSPTLCK), VaList(bp+40, bp)) != 0 || Xioctl(tls, m, Int32FromUint32(TIOCGPTN), VaList(bp+40, bp)) != 0 { + goto fail + } + if !(name != 0) { + name = bp + 8 + } + Xsnprintf(tls, name, uint64(20), __ccgo_ts+939, VaList(bp+40, **(**int32)(__ccgo_up(bp)))) + v1 = Xopen(tls, name, Int32FromInt32(O_RDWR)|Int32FromInt32(O_NOCTTY), 0) + s = v1 + if v1 < 0 { + goto fail + } + if tio != 0 { + Xtcsetattr(tls, s, TCSANOW, tio) + } + if ws != 0 { + Xioctl(tls, s, int32(TIOCSWINSZ), VaList(bp+40, ws)) + } + **(**int32)(__ccgo_up(pm)) = m + **(**int32)(__ccgo_up(ps)) = s + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 4)), uintptr(0)) + return 0 + goto fail +fail: + ; + Xclose(tls, m) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 4)), uintptr(0)) + return -int32(1) +} + +func Xptsname(tls *TLS, fd int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + var err int32 + _ = err + err = X__ptsname_r(tls, fd, uintptr(unsafe.Pointer(&_buf2)), uint64(22)) + if err != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = err + return uintptr(0) + } + return uintptr(unsafe.Pointer(&_buf2)) +} + +var _buf2 [22]uint8 + +func Xposix_openpt(tls *TLS, flags int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v flags=%v, (%v:)", tls, flags, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + r = Xopen(tls, __ccgo_ts+929, flags, 0) + if r < 0 && **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(ENOSPC) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EAGAIN) + } + return r +} + +func Xgrantpt(tls *TLS, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + return 0 +} + +func Xunlockpt(tls *TLS, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var _ /* unlock at bp+0 */ int32 + **(**int32)(__ccgo_up(bp)) = 0 + return Xioctl(tls, fd, int32(TIOCSPTLCK), VaList(bp+16, bp)) +} + +func X__ptsname_r(tls *TLS, fd int32, buf uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v len1=%v, (%v:)", tls, fd, buf, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var err, v1 int32 + var _ /* pty at bp+0 */ int32 + _, _ = err, v1 + if !(buf != 0) { + len1 = uint64(0) + } + v1 = int32(X__syscall3(tls, int64(SYS_ioctl), int64(fd), Int64FromUint32(Uint32FromUint32(TIOCGPTN)), int64(bp))) + err = v1 + if v1 != 0 { + return -err + } + if Uint64FromInt32(Xsnprintf(tls, buf, len1, __ccgo_ts+939, VaList(bp+16, **(**int32)(__ccgo_up(bp))))) >= len1 { + return int32(ERANGE) + } + return 0 +} + +func Xptsname_r(tls *TLS, fd int32, buf uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v len1=%v, (%v:)", tls, fd, buf, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__ptsname_r(tls, fd, buf, len1) +} + +func _slash_len(tls *TLS, s uintptr) (r Tsize_t) { + var s0 uintptr + _ = s0 + s0 = s + for Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('/') { + s = s + 1 + } + return Uint64FromInt64(int64(s) - int64(s0)) +} + +func Xrealpath(tls *TLS, filename uintptr, resolved uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v filename=%v resolved=%v, (%v:)", tls, filename, resolved, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(8208) + defer tls.Free(8208) + var check_dir, up int32 + var cnt, l, l0, nup, p, q, v4 Tsize_t + var k Tssize_t + var z uintptr + var _ /* output at bp+4097 */ [4096]uint8 + var _ /* stack at bp+0 */ [4097]uint8 + _, _, _, _, _, _, _, _, _, _, _ = check_dir, cnt, k, l, l0, nup, p, q, up, z, v4 + cnt = uint64(0) + nup = uint64(0) + check_dir = 0 + if !(filename != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(0) + } + l = Xstrnlen(tls, filename, uint64(4097)) + if !(l != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOENT) + return uintptr(0) + } + if l >= uint64(PATH_MAX) { + goto toolong + } + p = uint64(4097) - l - uint64(1) + q = uint64(0) + Xmemcpy(tls, bp+uintptr(p), filename, l+uint64(1)) + /* Main loop. Each iteration pops the next part from stack of + * remaining path components and consumes any slashes that follow. + * If not a link, it's moved to output; if a link, contents are + * pushed to the stack. */ + goto restart +restart: + ; +_3: + ; + /* If stack starts with /, the whole component is / or // + * and the output state must be reset. */ + if Int32FromUint8((**(**[4097]uint8)(__ccgo_up(bp)))[p]) == int32('/') { + check_dir = 0 + nup = uint64(0) + q = uint64(0) + v4 = q + q = q + 1 + (**(**[4096]uint8)(__ccgo_up(bp + 4097)))[v4] = uint8('/') + p = p + 1 + /* Initial // is special. */ + if Int32FromUint8((**(**[4097]uint8)(__ccgo_up(bp)))[p]) == int32('/') && Int32FromUint8((**(**[4097]uint8)(__ccgo_up(bp)))[p+uint64(1)]) != int32('/') { + v4 = q + q = q + 1 + (**(**[4096]uint8)(__ccgo_up(bp + 4097)))[v4] = uint8('/') + } + goto _2 + } + z = X__strchrnul(tls, bp+uintptr(p), int32('/')) + v4 = Uint64FromInt64(int64(z) - int64(bp+uintptr(p))) + l = v4 + l0 = v4 + if !(l != 0) && !(check_dir != 0) { + goto _1 + } + /* Skip any . component but preserve check_dir status. */ + if l == uint64(1) && Int32FromUint8((**(**[4097]uint8)(__ccgo_up(bp)))[p]) == int32('.') { + p = p + l + goto _2 + } + /* Copy next component onto output at least temporarily, to + * call readlink, but wait to advance output position until + * determining it's not a link. */ + if q != 0 && Int32FromUint8((**(**[4096]uint8)(__ccgo_up(bp + 4097)))[q-uint64(1)]) != int32('/') { + if !(p != 0) { + goto toolong + } + p = p - 1 + v4 = p + (**(**[4097]uint8)(__ccgo_up(bp)))[v4] = uint8('/') + l = l + 1 + } + if q+l >= uint64(PATH_MAX) { + goto toolong + } + Xmemcpy(tls, bp+4097+uintptr(q), bp+uintptr(p), l) + (**(**[4096]uint8)(__ccgo_up(bp + 4097)))[q+l] = uint8(0) + p = p + l + up = 0 + if l0 == uint64(2) && Int32FromUint8((**(**[4097]uint8)(__ccgo_up(bp)))[p-uint64(2)]) == int32('.') && Int32FromUint8((**(**[4097]uint8)(__ccgo_up(bp)))[p-uint64(1)]) == int32('.') { + up = int32(1) + /* Any non-.. path components we could cancel start + * after nup repetitions of the 3-byte string "../"; + * if there are none, accumulate .. components to + * later apply to cwd, if needed. */ + if q <= uint64(3)*nup { + nup = nup + 1 + q = q + l + goto _2 + } + /* When previous components are already known to be + * directories, processing .. can skip readlink. */ + if !(check_dir != 0) { + goto skip_readlink + } + } + k = Xreadlink(tls, bp+4097, bp, p) + if Uint64FromInt64(k) == p { + goto toolong + } + if !(k != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOENT) + return uintptr(0) + } + if !(k < 0) { + goto _8 + } + if **(**int32)(__ccgo_up(X__errno_location(tls))) != int32(EINVAL) { + return uintptr(0) + } + goto skip_readlink +skip_readlink: + ; + check_dir = 0 + if up != 0 { + for q != 0 && Int32FromUint8((**(**[4096]uint8)(__ccgo_up(bp + 4097)))[q-uint64(1)]) != int32('/') { + q = q - 1 + } + if q > uint64(1) && (q > uint64(2) || Int32FromUint8((**(**[4096]uint8)(__ccgo_up(bp + 4097)))[0]) != int32('/')) { + q = q - 1 + } + goto _2 + } + if l0 != 0 { + q = q + l + } + check_dir = Int32FromUint8((**(**[4097]uint8)(__ccgo_up(bp)))[p]) + goto _2 +_8: + ; + cnt = cnt + 1 + v4 = cnt + if v4 == uint64(SYMLOOP_MAX) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ELOOP) + return uintptr(0) + } + /* If link contents end in /, strip any slashes already on + * stack to avoid /->// or //->/// or spurious toolong. */ + if Int32FromUint8((**(**[4097]uint8)(__ccgo_up(bp)))[k-int64(1)]) == int32('/') { + for Int32FromUint8((**(**[4097]uint8)(__ccgo_up(bp)))[p]) == int32('/') { + p = p + 1 + } + } + p = p - Uint64FromInt64(k) + Xmemmove(tls, bp+uintptr(p), bp, Uint64FromInt64(k)) + /* Skip the stack advancement in case we have a new + * absolute base path. */ + goto restart + goto _2 +_2: + ; + p = p + _slash_len(tls, bp+uintptr(p)) + goto _3 + goto _1 +_1: + ; + (**(**[4096]uint8)(__ccgo_up(bp + 4097)))[q] = uint8(0) + if Int32FromUint8((**(**[4096]uint8)(__ccgo_up(bp + 4097)))[0]) != int32('/') { + if !(Xgetcwd(tls, bp, uint64(4097)) != 0) { + return uintptr(0) + } + l = _strlen(tls, bp) + /* Cancel any initial .. components. */ + p = uint64(0) + for { + v4 = nup + nup = nup - 1 + if !(v4 != 0) { + break + } + for l > uint64(1) && Int32FromUint8((**(**[4097]uint8)(__ccgo_up(bp)))[l-uint64(1)]) != int32('/') { + l = l - 1 + } + if l > uint64(1) { + l = l - 1 + } + p = p + uint64(2) + if p < q { + p = p + 1 + } + } + if q-p != 0 && Int32FromUint8((**(**[4097]uint8)(__ccgo_up(bp)))[l-uint64(1)]) != int32('/') { + v4 = l + l = l + 1 + (**(**[4097]uint8)(__ccgo_up(bp)))[v4] = uint8('/') + } + if l+(q-p)+uint64(1) >= uint64(PATH_MAX) { + goto toolong + } + Xmemmove(tls, bp+4097+uintptr(l), bp+4097+uintptr(p), q-p+uint64(1)) + Xmemcpy(tls, bp+4097, bp, l) + q = l + q - p + } + if resolved != 0 { + return Xmemcpy(tls, resolved, bp+4097, q+uint64(1)) + } else { + return Xstrdup(tls, bp+4097) + } + goto toolong +toolong: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENAMETOOLONG) + return uintptr(0) +} + +func Xsetdomainname(tls *TLS, name uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v len1=%v, (%v:)", tls, name, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_setdomainname), int64(name), Int64FromUint64(len1))))) +} + +func Xsetpriority(tls *TLS, which int32, who Tid_t, prio int32) (r int32) { + if __ccgo_strace { + trc("tls=%v which=%v who=%v prio=%v, (%v:)", tls, which, who, prio, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_setpriority), int64(which), Int64FromUint32(who), int64(prio))))) +} + +type Tctx = struct { + Flim [2]uint64 + Fres int32 + Ferr int32 +} + +func _do_setrlimit(tls *TLS, p uintptr) { + var c uintptr + _ = c + c = p + if (*Tctx)(unsafe.Pointer(c)).Ferr > 0 { + return + } + (*Tctx)(unsafe.Pointer(c)).Ferr = int32(-X__syscall2(tls, int64(SYS_setrlimit), int64((*Tctx)(unsafe.Pointer(c)).Fres), int64(c))) +} + +func Xsetrlimit(tls *TLS, resource int32, rlim uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v resource=%v rlim=%v, (%v:)", tls, resource, rlim, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + var ret int32 + var v1, v2 uint64 + var _ /* c at bp+16 */ Tctx + var _ /* tmp at bp+0 */ Trlimit + _, _, _ = ret, v1, v2 + if ^Uint64FromUint64(0) != ^Uint64FromUint64(0) { + **(**Trlimit)(__ccgo_up(bp)) = **(**Trlimit)(__ccgo_up(rlim)) + if (**(**Trlimit)(__ccgo_up(bp))).Frlim_cur >= ^Uint64FromUint64(0) { + (**(**Trlimit)(__ccgo_up(bp))).Frlim_cur = ^Uint64FromUint64(0) + } + if (**(**Trlimit)(__ccgo_up(bp))).Frlim_max >= ^Uint64FromUint64(0) { + (**(**Trlimit)(__ccgo_up(bp))).Frlim_max = ^Uint64FromUint64(0) + } + rlim = bp + } + ret = int32(X__syscall4(tls, int64(SYS_prlimit64), int64(Int32FromInt32(0)), int64(resource), int64(rlim), int64(Int32FromInt32(0)))) + if ret != -int32(ENOSYS) { + return int32(X__syscall_ret(tls, Uint64FromInt32(ret))) + } + if (*Trlimit)(unsafe.Pointer(rlim)).Frlim_cur < ^Uint64FromUint64(0) { + v1 = (*Trlimit)(unsafe.Pointer(rlim)).Frlim_cur + } else { + v1 = ^Uint64FromUint64(0) + } + if (*Trlimit)(unsafe.Pointer(rlim)).Frlim_max < ^Uint64FromUint64(0) { + v2 = (*Trlimit)(unsafe.Pointer(rlim)).Frlim_max + } else { + v2 = ^Uint64FromUint64(0) + } + **(**Tctx)(__ccgo_up(bp + 16)) = Tctx{ + Flim: [2]uint64{ + 0: v1, + 1: v2, + }, + Fres: resource, + Ferr: -int32(1), + } + ___synccall(tls, __ccgo_fp(_do_setrlimit), bp+16) + if (**(**Tctx)(__ccgo_up(bp + 16))).Ferr != 0 { + if (**(**Tctx)(__ccgo_up(bp + 16))).Ferr > 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = (**(**Tctx)(__ccgo_up(bp + 16))).Ferr + } + return -int32(1) + } + return 0 +} + +func Xsyscall(tls *TLS, n int64, va uintptr) (r int64) { + if __ccgo_strace { + trc("tls=%v n=%v va=%v, (%v:)", tls, n, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, b, c, d, e, f Tsyscall_arg_t + var ap Tva_list + _, _, _, _, _, _, _ = a, ap, b, c, d, e, f + ap = va + a = VaInt64(&ap) + b = VaInt64(&ap) + c = VaInt64(&ap) + d = VaInt64(&ap) + e = VaInt64(&ap) + f = VaInt64(&ap) + _ = ap + return X__syscall_ret(tls, Uint64FromInt64(X__syscall6(tls, n, a, b, c, d, e, f))) +} + +const AF_ALG = 38 +const AF_APPLETALK = 5 +const AF_ASH = 18 +const AF_ATMPVC = 8 +const AF_ATMSVC = 20 +const AF_AX25 = 3 +const AF_BLUETOOTH = 31 +const AF_BRIDGE = 7 +const AF_CAIF = 37 +const AF_CAN = 29 +const AF_DECnet = 12 +const AF_ECONET = 19 +const AF_FILE = 1 +const AF_IB = 27 +const AF_IEEE802154 = 36 +const AF_INET = 2 +const AF_INET6 = 10 +const AF_IPX = 4 +const AF_IRDA = 23 +const AF_ISDN = 34 +const AF_IUCV = 32 +const AF_KCM = 41 +const AF_KEY = 15 +const AF_LLC = 26 +const AF_LOCAL = 1 +const AF_MAX = 45 +const AF_MPLS = 28 +const AF_NETBEUI = 13 +const AF_NETLINK = 16 +const AF_NETROM = 6 +const AF_NFC = 39 +const AF_PACKET = 17 +const AF_PHONET = 35 +const AF_PPPOX = 24 +const AF_QIPCRTR = 42 +const AF_RDS = 21 +const AF_ROSE = 11 +const AF_ROUTE = 16 +const AF_RXRPC = 33 +const AF_SECURITY = 14 +const AF_SMC = 43 +const AF_SNA = 22 +const AF_TIPC = 30 +const AF_UNIX = 1 +const AF_UNSPEC = 0 +const AF_VSOCK = 40 +const AF_WANPIPE = 25 +const AF_X25 = 9 +const AF_XDP = 44 +const LOG_ALERT = 1 +const LOG_AUTH = 32 +const LOG_AUTHPRIV = 80 +const LOG_CONS = 2 +const LOG_CRIT = 2 +const LOG_CRON = 72 +const LOG_DAEMON = 24 +const LOG_DEBUG = 7 +const LOG_EMERG = 0 +const LOG_ERR = 3 +const LOG_FACMASK = 1016 +const LOG_FTP = 88 +const LOG_INFO = 6 +const LOG_KERN = 0 +const LOG_LOCAL0 = 128 +const LOG_LOCAL1 = 136 +const LOG_LOCAL2 = 144 +const LOG_LOCAL3 = 152 +const LOG_LOCAL4 = 160 +const LOG_LOCAL5 = 168 +const LOG_LOCAL6 = 176 +const LOG_LOCAL7 = 184 +const LOG_LPR = 48 +const LOG_MAIL = 16 +const LOG_NDELAY = 8 +const LOG_NEWS = 56 +const LOG_NFACILITIES = 24 +const LOG_NOTICE = 5 +const LOG_NOWAIT = 16 +const LOG_ODELAY = 4 +const LOG_PERROR = 32 +const LOG_PID = 1 +const LOG_PRIMASK = 7 +const LOG_SYSLOG = 40 +const LOG_USER = 8 +const LOG_UUCP = 64 +const LOG_WARNING = 4 +const MSG_BATCH = 262144 +const MSG_CMSG_CLOEXEC = 1073741824 +const MSG_CONFIRM = 2048 +const MSG_CTRUNC = 8 +const MSG_DONTROUTE = 4 +const MSG_DONTWAIT = 64 +const MSG_EOR = 128 +const MSG_ERRQUEUE = 8192 +const MSG_FASTOPEN = 536870912 +const MSG_FIN = 512 +const MSG_MORE = 32768 +const MSG_NOSIGNAL = 16384 +const MSG_OOB = 1 +const MSG_PEEK = 2 +const MSG_PROXY = 16 +const MSG_RST = 4096 +const MSG_SYN = 1024 +const MSG_TRUNC = 32 +const MSG_WAITALL = 256 +const MSG_WAITFORONE = 65536 +const MSG_ZEROCOPY = 67108864 +const PF_ALG = 38 +const PF_APPLETALK = 5 +const PF_ASH = 18 +const PF_ATMPVC = 8 +const PF_ATMSVC = 20 +const PF_AX25 = 3 +const PF_BLUETOOTH = 31 +const PF_BRIDGE = 7 +const PF_CAIF = 37 +const PF_CAN = 29 +const PF_DECnet = 12 +const PF_ECONET = 19 +const PF_FILE = 1 +const PF_IB = 27 +const PF_IEEE802154 = 36 +const PF_INET = 2 +const PF_INET6 = 10 +const PF_IPX = 4 +const PF_IRDA = 23 +const PF_ISDN = 34 +const PF_IUCV = 32 +const PF_KCM = 41 +const PF_KEY = 15 +const PF_LLC = 26 +const PF_LOCAL = 1 +const PF_MAX = 45 +const PF_MPLS = 28 +const PF_NETBEUI = 13 +const PF_NETLINK = 16 +const PF_NETROM = 6 +const PF_NFC = 39 +const PF_PACKET = 17 +const PF_PHONET = 35 +const PF_PPPOX = 24 +const PF_QIPCRTR = 42 +const PF_RDS = 21 +const PF_ROSE = 11 +const PF_ROUTE = 16 +const PF_RXRPC = 33 +const PF_SECURITY = 14 +const PF_SMC = 43 +const PF_SNA = 22 +const PF_TIPC = 30 +const PF_UNIX = 1 +const PF_UNSPEC = 0 +const PF_VSOCK = 40 +const PF_WANPIPE = 25 +const PF_X25 = 9 +const PF_XDP = 44 +const SCM_CREDENTIALS = 2 +const SCM_RIGHTS = 1 +const SCM_TIMESTAMP = 29 +const SCM_TIMESTAMPING = 37 +const SCM_TIMESTAMPING_OPT_STATS = 54 +const SCM_TIMESTAMPING_PKTINFO = 58 +const SCM_TIMESTAMPNS = 35 +const SCM_TXTIME = 61 +const SCM_WIFI_STATUS = 41 +const SHUT_RD = 0 +const SHUT_RDWR = 2 +const SHUT_WR = 1 +const SOCK_CLOEXEC = 524288 +const SOCK_DCCP = 6 +const SOCK_DGRAM = 2 +const SOCK_NONBLOCK = 2048 +const SOCK_PACKET = 10 +const SOCK_RAW = 3 +const SOCK_RDM = 4 +const SOCK_SEQPACKET = 5 +const SOCK_STREAM = 1 +const SOL_AAL = 265 +const SOL_ALG = 279 +const SOL_ATM = 264 +const SOL_BLUETOOTH = 274 +const SOL_CAIF = 278 +const SOL_DCCP = 269 +const SOL_DECNET = 261 +const SOL_ICMPV6 = 58 +const SOL_IP = 0 +const SOL_IPV6 = 41 +const SOL_IRDA = 266 +const SOL_IUCV = 277 +const SOL_KCM = 281 +const SOL_LLC = 268 +const SOL_NETBEUI = 267 +const SOL_NETLINK = 270 +const SOL_NFC = 280 +const SOL_PACKET = 263 +const SOL_PNPIPE = 275 +const SOL_PPPOL2TP = 273 +const SOL_RAW = 255 +const SOL_RDS = 276 +const SOL_RXRPC = 272 +const SOL_SOCKET = 1 +const SOL_TIPC = 271 +const SOL_TLS = 282 +const SOL_X25 = 262 +const SOL_XDP = 283 +const SOMAXCONN = 128 +const SO_ACCEPTCONN = 30 +const SO_ATTACH_BPF = 50 +const SO_ATTACH_FILTER = 26 +const SO_ATTACH_REUSEPORT_CBPF = 51 +const SO_ATTACH_REUSEPORT_EBPF = 52 +const SO_BINDTODEVICE = 25 +const SO_BINDTOIFINDEX = 62 +const SO_BPF_EXTENSIONS = 48 +const SO_BROADCAST = 6 +const SO_BSDCOMPAT = 14 +const SO_BUSY_POLL = 46 +const SO_BUSY_POLL_BUDGET = 70 +const SO_CNX_ADVICE = 53 +const SO_COOKIE = 57 +const SO_DEBUG = 1 +const SO_DETACH_BPF = 27 +const SO_DETACH_FILTER = 27 +const SO_DETACH_REUSEPORT_BPF = 68 +const SO_DOMAIN = 39 +const SO_DONTROUTE = 5 +const SO_ERROR = 4 +const SO_GET_FILTER = 26 +const SO_INCOMING_CPU = 49 +const SO_INCOMING_NAPI_ID = 56 +const SO_KEEPALIVE = 9 +const SO_LINGER = 13 +const SO_LOCK_FILTER = 44 +const SO_MARK = 36 +const SO_MAX_PACING_RATE = 47 +const SO_MEMINFO = 55 +const SO_NOFCS = 43 +const SO_NO_CHECK = 11 +const SO_OOBINLINE = 10 +const SO_PASSCRED = 16 +const SO_PASSSEC = 34 +const SO_PEEK_OFF = 42 +const SO_PEERCRED = 17 +const SO_PEERGROUPS = 59 +const SO_PEERNAME = 28 +const SO_PEERSEC = 31 +const SO_PREFER_BUSY_POLL = 69 +const SO_PRIORITY = 12 +const SO_PROTOCOL = 38 +const SO_RCVBUF = 8 +const SO_RCVBUFFORCE = 33 +const SO_RCVLOWAT = 18 +const SO_RCVTIMEO = 20 +const SO_REUSEADDR = 2 +const SO_REUSEPORT = 15 +const SO_RXQ_OVFL = 40 +const SO_SECURITY_AUTHENTICATION = 22 +const SO_SECURITY_ENCRYPTION_NETWORK = 24 +const SO_SECURITY_ENCRYPTION_TRANSPORT = 23 +const SO_SELECT_ERR_QUEUE = 45 +const SO_SNDBUF = 7 +const SO_SNDBUFFORCE = 32 +const SO_SNDLOWAT = 19 +const SO_SNDTIMEO = 21 +const SO_TIMESTAMP = 29 +const SO_TIMESTAMPING = 37 +const SO_TIMESTAMPNS = 35 +const SO_TXTIME = 61 +const SO_TYPE = 3 +const SO_WIFI_STATUS = 41 +const SO_ZEROCOPY = 60 + +type Tsocklen_t = uint32 + +type Tsa_family_t = uint16 + +type Tmsghdr = struct { + Fmsg_name uintptr + Fmsg_namelen Tsocklen_t + Fmsg_iov uintptr + F__pad1 int32 + Fmsg_iovlen int32 + Fmsg_control uintptr + F__pad2 int32 + Fmsg_controllen Tsocklen_t + Fmsg_flags int32 +} + +type Tcmsghdr = struct { + F__pad1 int32 + Fcmsg_len Tsocklen_t + Fcmsg_level int32 + Fcmsg_type int32 +} + +type Tlinger = struct { + Fl_onoff int32 + Fl_linger int32 +} + +type Tsockaddr = struct { + Fsa_family Tsa_family_t + Fsa_data [14]uint8 +} + +type Tsockaddr_storage = struct { + Fss_family Tsa_family_t + F__ss_padding [118]uint8 + F__ss_align uint64 +} + +var _lock2 [1]int32 +var _log_ident [32]uint8 +var _log_opt int32 +var _log_facility = Int32FromInt32(1) << Int32FromInt32(3) +var _log_mask = int32(0xff) +var _log_fd = -int32(1) + +func Xsetlogmask(tls *TLS, maskpri int32) (r int32) { + if __ccgo_strace { + trc("tls=%v maskpri=%v, (%v:)", tls, maskpri, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret int32 + _ = ret + ___lock(tls, uintptr(unsafe.Pointer(&_lock2))) + ret = _log_mask + if maskpri != 0 { + _log_mask = maskpri + } + ___unlock(tls, uintptr(unsafe.Pointer(&_lock2))) + return ret +} + +var _log_addr = struct { + Fsun_family int16 + Fsun_path [9]uint8 +}{ + Fsun_family: int16(PF_LOCAL), + Fsun_path: [9]uint8{'/', 'd', 'e', 'v', '/', 'l', 'o', 'g'}, +} + +func Xcloselog(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* cs at bp+0 */ int32 + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp) + ___lock(tls, uintptr(unsafe.Pointer(&_lock2))) + Xclose(tls, _log_fd) + _log_fd = -int32(1) + ___unlock(tls, uintptr(unsafe.Pointer(&_lock2))) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp)), uintptr(0)) +} + +func ___openlog(tls *TLS) { + _log_fd = Xsocket(tls, int32(PF_LOCAL), Int32FromInt32(SOCK_DGRAM)|Int32FromInt32(SOCK_CLOEXEC), 0) + if _log_fd >= 0 { + Xconnect(tls, _log_fd, uintptr(unsafe.Pointer(&_log_addr)), uint32(12)) + } +} + +func Xopenlog(tls *TLS, ident uintptr, opt int32, facility int32) { + if __ccgo_strace { + trc("tls=%v ident=%v opt=%v facility=%v, (%v:)", tls, ident, opt, facility, origin(2)) + } + bp := tls.Alloc(16) + defer tls.Free(16) + var n Tsize_t + var _ /* cs at bp+0 */ int32 + _ = n + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp) + ___lock(tls, uintptr(unsafe.Pointer(&_lock2))) + if ident != 0 { + n = Xstrnlen(tls, ident, Uint64FromInt64(32)-Uint64FromInt32(1)) + Xmemcpy(tls, uintptr(unsafe.Pointer(&_log_ident)), ident, n) + _log_ident[n] = uint8(0) + } else { + _log_ident[0] = uint8(0) + } + _log_opt = opt + _log_facility = facility + if opt&int32(LOG_NDELAY) != 0 && _log_fd < 0 { + ___openlog(tls) + } + ___unlock(tls, uintptr(unsafe.Pointer(&_lock2))) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp)), uintptr(0)) +} + +func _is_lost_conn(tls *TLS, e int32) (r int32) { + return BoolInt32(e == int32(ECONNREFUSED) || e == int32(ECONNRESET) || e == int32(ENOTCONN) || e == int32(EPIPE)) +} + +func __vsyslog(tls *TLS, priority int32, message uintptr, ap Tva_list) { + bp := tls.Alloc(1184) + defer tls.Free(1184) + var errno_save, fd, l, l2, pid, v1 int32 + var _ /* buf at bp+80 */ [1024]uint8 + var _ /* hlen at bp+1104 */ int32 + var _ /* now at bp+16 */ Ttime_t + var _ /* timebuf at bp+0 */ [16]uint8 + var _ /* tm at bp+24 */ Ttm + _, _, _, _, _, _ = errno_save, fd, l, l2, pid, v1 + errno_save = **(**int32)(__ccgo_up(X__errno_location(tls))) + if _log_fd < 0 { + ___openlog(tls) + } + if !(priority&Int32FromInt32(LOG_FACMASK) != 0) { + priority = priority | _log_facility + } + **(**Ttime_t)(__ccgo_up(bp + 16)) = Xtime(tls, UintptrFromInt32(0)) + Xgmtime_r(tls, bp+16, bp+24) + Xstrftime_l(tls, bp, uint64(16), __ccgo_ts+951, bp+24, uintptr(unsafe.Pointer(&X__c_locale))) + if _log_opt&int32(LOG_PID) != 0 { + v1 = Xgetpid(tls) + } else { + v1 = 0 + } + pid = v1 + l = Xsnprintf(tls, bp+80, uint64(1024), __ccgo_ts+960, VaList(bp+1120, priority, bp, bp+1104, uintptr(unsafe.Pointer(&_log_ident)), __ccgo_ts+982+BoolUintptr(!(pid != 0)), pid, __ccgo_ts+984+BoolUintptr(!(pid != 0)))) + **(**int32)(__ccgo_up(X__errno_location(tls))) = errno_save + l2 = Xvsnprintf(tls, bp+80+uintptr(l), uint64(1024)-Uint64FromInt32(l), message, ap) + if l2 >= 0 { + if Uint64FromInt32(l2) >= uint64(1024)-Uint64FromInt32(l) { + l = Int32FromUint64(Uint64FromInt64(1024) - Uint64FromInt32(1)) + } else { + l = l + l2 + } + if Int32FromUint8((**(**[1024]uint8)(__ccgo_up(bp + 80)))[l-int32(1)]) != int32('\n') { + v1 = l + l = l + 1 + (**(**[1024]uint8)(__ccgo_up(bp + 80)))[v1] = uint8('\n') + } + if Xsend(tls, _log_fd, bp+80, Uint64FromInt32(l), 0) < 0 && (!(_is_lost_conn(tls, **(**int32)(__ccgo_up(X__errno_location(tls)))) != 0) || Xconnect(tls, _log_fd, uintptr(unsafe.Pointer(&_log_addr)), uint32(12)) < 0 || Xsend(tls, _log_fd, bp+80, Uint64FromInt32(l), 0) < 0) && _log_opt&int32(LOG_CONS) != 0 { + fd = Xopen(tls, __ccgo_ts+679, Int32FromInt32(O_WRONLY)|Int32FromInt32(O_NOCTTY)|Int32FromInt32(O_CLOEXEC), 0) + if fd >= 0 { + Xdprintf(tls, fd, __ccgo_ts+986, VaList(bp+1120, l-**(**int32)(__ccgo_up(bp + 1104)), bp+80+uintptr(**(**int32)(__ccgo_up(bp + 1104))))) + Xclose(tls, fd) + } + } + if _log_opt&int32(LOG_PERROR) != 0 { + Xdprintf(tls, int32(2), __ccgo_ts+986, VaList(bp+1120, l-**(**int32)(__ccgo_up(bp + 1104)), bp+80+uintptr(**(**int32)(__ccgo_up(bp + 1104))))) + } + } +} + +func ___vsyslog(tls *TLS, priority int32, message uintptr, ap Tva_list) { + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* cs at bp+0 */ int32 + if !(_log_mask&(Int32FromInt32(1)<<(priority&Int32FromInt32(7))) != 0) || priority & ^Int32FromInt32(0x3ff) != 0 { + return + } + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp) + ___lock(tls, uintptr(unsafe.Pointer(&_lock2))) + __vsyslog(tls, priority, message, ap) + ___unlock(tls, uintptr(unsafe.Pointer(&_lock2))) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp)), uintptr(0)) +} + +func Xsyslog(tls *TLS, priority int32, message uintptr, va uintptr) { + if __ccgo_strace { + trc("tls=%v priority=%v message=%v va=%v, (%v:)", tls, priority, message, va, origin(2)) + } + var ap Tva_list + _ = ap + ap = va + ___vsyslog(tls, priority, message, ap) + _ = ap +} + +type Tutsname1 = struct { + Fsysname [65]uint8 + Fnodename [65]uint8 + Frelease [65]uint8 + Fversion [65]uint8 + Fmachine [65]uint8 + F__domainname [65]uint8 +} + +func Xuname(tls *TLS, uts uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v uts=%v, (%v:)", tls, uts, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_uname), int64(uts))))) +} + +func X__madvise(tls *TLS, addr uintptr, len1 Tsize_t, advice int32) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v len1=%v advice=%v, (%v:)", tls, addr, len1, advice, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_madvise), int64(addr), Int64FromUint64(len1), int64(advice))))) +} + +func Xmadvise(tls *TLS, addr uintptr, len1 Tsize_t, advice int32) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v len1=%v advice=%v, (%v:)", tls, addr, len1, advice, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__madvise(tls, addr, len1, advice) +} + +func Xmincore(tls *TLS, addr uintptr, len1 Tsize_t, vec uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v len1=%v vec=%v, (%v:)", tls, addr, len1, vec, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_mincore), int64(addr), Int64FromUint64(len1), int64(vec))))) +} + +func Xmlock(tls *TLS, addr uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v len1=%v, (%v:)", tls, addr, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_mlock), int64(addr), Int64FromUint64(len1))))) +} + +func Xmlockall(tls *TLS, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v flags=%v, (%v:)", tls, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_mlockall), int64(flags))))) +} + +const OFF_MASK = 4095 +const UNIT = 4096 + +func _dummy5(tls *TLS) { +} + +func X__mprotect(tls *TLS, addr uintptr, len1 Tsize_t, prot int32) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v len1=%v prot=%v, (%v:)", tls, addr, len1, prot, origin(2)) + defer func() { trc("-> %v", r) }() + } + var end, start Tsize_t + _, _ = end, start + start = uint64(addr) & Uint64FromInt32(-Int32FromInt32(PAGESIZE)) + end = uint64(addr+uintptr(len1)+UintptrFromInt32(PAGESIZE)-UintptrFromInt32(1)) & Uint64FromInt32(-Int32FromInt32(PAGESIZE)) + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_mprotect), Int64FromUint64(start), Int64FromUint64(end-start), int64(prot))))) +} + +func Xmprotect(tls *TLS, addr uintptr, len1 Tsize_t, prot int32) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v len1=%v prot=%v, (%v:)", tls, addr, len1, prot, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__mprotect(tls, addr, len1, prot) +} + +func _dummy6(tls *TLS) { +} + +func X__mremap(tls *TLS, old_addr uintptr, old_len Tsize_t, new_len Tsize_t, flags int32, va uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v old_addr=%v old_len=%v new_len=%v flags=%v va=%v, (%v:)", tls, old_addr, old_len, new_len, flags, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var new_addr uintptr + _, _ = ap, new_addr + new_addr = uintptr(0) + if new_len >= Uint64FromInt64(Int64FromInt64(INT64_MAX)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOMEM) + return uintptr(-Int32FromInt32(1)) + } + if flags&int32(MREMAP_FIXED) != 0 { + _dummy6(tls) + ap = va + new_addr = VaUintptr(&ap) + _ = ap + } + return uintptr(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_mremap), int64(old_addr), Int64FromUint64(old_len), Int64FromUint64(new_len), int64(flags), int64(new_addr))))) +} + +func Xmremap(tls *TLS, old_addr uintptr, old_len Tsize_t, new_len Tsize_t, flags int32, va uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v old_addr=%v old_len=%v new_len=%v flags=%v va=%v, (%v:)", tls, old_addr, old_len, new_len, flags, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__mremap(tls, old_addr, old_len, new_len, flags, va) +} + +func Xmsync(tls *TLS, start uintptr, len1 Tsize_t, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v start=%v len1=%v flags=%v, (%v:)", tls, start, len1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_msync), int64(start), Int64FromUint64(len1), int64(flags), 0, 0, 0)))) +} + +func Xmunlock(tls *TLS, addr uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v len1=%v, (%v:)", tls, addr, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_munlock), int64(addr), Int64FromUint64(len1))))) +} + +func Xmunlockall(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall0(tls, int64(SYS_munlockall))))) +} + +func _dummy7(tls *TLS) { +} + +func X__munmap(tls *TLS, start uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v start=%v len1=%v, (%v:)", tls, start, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + _dummy7(tls) + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_munmap), int64(start), Int64FromUint64(len1))))) +} + +func Xmunmap(tls *TLS, start uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v start=%v len1=%v, (%v:)", tls, start, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__munmap(tls, start, len1) +} + +func Xposix_madvise(tls *TLS, addr uintptr, len1 Tsize_t, advice int32) (r int32) { + if __ccgo_strace { + trc("tls=%v addr=%v len1=%v advice=%v, (%v:)", tls, addr, len1, advice, origin(2)) + defer func() { trc("-> %v", r) }() + } + if advice == int32(MADV_DONTNEED) { + return 0 + } + return int32(-X__syscall3(tls, int64(SYS_madvise), int64(addr), Int64FromUint64(len1), int64(advice))) +} + +func X__shm_mapname(tls *TLS, name uintptr, buf uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v buf=%v, (%v:)", tls, name, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + var p, v1 uintptr + _, _ = p, v1 + for Int32FromUint8(**(**uint8)(__ccgo_up(name))) == int32('/') { + name = name + 1 + } + v1 = X__strchrnul(tls, name, int32('/')) + p = v1 + if **(**uint8)(__ccgo_up(v1)) != 0 || p == name || int64(p)-int64(name) <= int64(2) && Int32FromUint8(**(**uint8)(__ccgo_up(name))) == int32('.') && Int32FromUint8(**(**uint8)(__ccgo_up(p + uintptr(-Int32FromInt32(1))))) == int32('.') { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(0) + } + if int64(p)-int64(name) > int64(NAME_MAX) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENAMETOOLONG) + return uintptr(0) + } + Xmemcpy(tls, buf, __ccgo_ts+991, uint64(9)) + Xmemcpy(tls, buf+uintptr(9), name, Uint64FromInt64(int64(p)-int64(name)+int64(1))) + return buf +} + +func Xshm_open(tls *TLS, name uintptr, flag int32, mode Tmode_t) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v flag=%v mode=%v, (%v:)", tls, name, flag, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(288) + defer tls.Free(288) + var fd int32 + var v1 uintptr + var _ /* buf at bp+4 */ [265]uint8 + var _ /* cs at bp+0 */ int32 + _, _ = fd, v1 + v1 = X__shm_mapname(tls, name, bp+4) + name = v1 + if !(v1 != 0) { + return -int32(1) + } + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp) + fd = Xopen(tls, name, flag|int32(O_NOFOLLOW)|int32(O_CLOEXEC)|int32(O_NONBLOCK), VaList(bp+280, mode)) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp)), uintptr(0)) + return fd +} + +func Xshm_unlink(tls *TLS, name uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(272) + defer tls.Free(272) + var v1 uintptr + var _ /* buf at bp+0 */ [265]uint8 + _ = v1 + v1 = X__shm_mapname(tls, name, bp) + name = v1 + if !(v1 != 0) { + return -int32(1) + } + return Xunlink(tls, name) +} + +const SA = 194 +const SB = 244 +const bittab = 0 + +func Xbtowc(tls *TLS, c int32) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + var b, v3 int32 + var v1, v2 uint32 + _, _, _, _ = b, v1, v2, v3 + b = Int32FromUint8(Uint8FromInt32(c)) + if Uint32FromInt32(b) < uint32(128) { + v1 = Uint32FromInt32(b) + } else { + if !!(**(**uintptr)(__ccgo_up((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale)) != 0) { + v3 = int32(4) + } else { + v3 = int32(1) + } + if v3 == int32(1) && c != -int32(1) { + v2 = Uint32FromInt32(Int32FromInt32(0xdfff) & int32(int8(c))) + } else { + v2 = uint32(0xffffffff) + } + v1 = v2 + } + return v1 +} + +type Tchar16_t = uint16 + +type Tchar32_t = uint32 + +func Xc16rtomb(tls *TLS, s uintptr, c16 Tchar16_t, ps uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v c16=%v ps=%v, (%v:)", tls, s, c16, ps, origin(2)) + defer func() { trc("-> %v", r) }() + } + var wc Twchar_t + var x uintptr + _, _ = wc, x + if !(ps != 0) { + ps = uintptr(unsafe.Pointer(&_internal_state)) + } + x = ps + if !(s != 0) { + if **(**uint32)(__ccgo_up(x)) != 0 { + goto ilseq + } + return uint64(1) + } + if !(**(**uint32)(__ccgo_up(x)) != 0) && uint32(c16)-uint32(0xd800) < uint32(0x400) { + **(**uint32)(__ccgo_up(x)) = Uint32FromInt32((Int32FromUint16(c16) - int32(0xd7c0)) << int32(10)) + return uint64(0) + } + if **(**uint32)(__ccgo_up(x)) != 0 { + if uint32(c16)-uint32(0xdc00) >= uint32(0x400) { + goto ilseq + } else { + wc = Int32FromUint32(**(**uint32)(__ccgo_up(x)) + uint32(c16) - uint32(0xdc00)) + } + **(**uint32)(__ccgo_up(x)) = uint32(0) + } else { + wc = Int32FromUint16(c16) + } + return Xwcrtomb(tls, s, wc, uintptr(0)) + goto ilseq +ilseq: + ; + **(**uint32)(__ccgo_up(x)) = uint32(0) + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EILSEQ) + return Uint64FromInt32(-Int32FromInt32(1)) +} + +var _internal_state uint32 + +func Xc32rtomb(tls *TLS, s uintptr, c32 Tchar32_t, ps uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v c32=%v ps=%v, (%v:)", tls, s, c32, ps, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwcrtomb(tls, s, Int32FromUint32(c32), ps) +} + +func Xmblen(tls *TLS, s uintptr, n Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v, (%v:)", tls, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xmbtowc(tls, uintptr(0), s, n) +} + +func Xmbrlen(tls *TLS, s uintptr, n Tsize_t, st uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v st=%v, (%v:)", tls, s, n, st, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 uintptr + _ = v1 + if st != 0 { + v1 = st + } else { + v1 = uintptr(unsafe.Pointer(&_internal)) + } + return Xmbrtowc(tls, uintptr(0), s, n, v1) +} + +var _internal uint32 + +func Xmbrtoc16(tls *TLS, pc16 uintptr, s uintptr, n Tsize_t, ps uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v pc16=%v s=%v n=%v ps=%v, (%v:)", tls, pc16, s, n, ps, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var pending uintptr + var ret Tsize_t + var _ /* wc at bp+0 */ Twchar_t + _, _ = pending, ret + if !(ps != 0) { + ps = uintptr(unsafe.Pointer(&_internal_state1)) + } + pending = ps + if !(s != 0) { + return Xmbrtoc16(tls, uintptr(0), __ccgo_ts, uint64(1), ps) + } + /* mbrtowc states for partial UTF-8 characters have the high bit set; + * we use nonzero states without high bit for pending surrogates. */ + if Int32FromUint32(**(**uint32)(__ccgo_up(pending))) > 0 { + if pc16 != 0 { + **(**Tchar16_t)(__ccgo_up(pc16)) = uint16(**(**uint32)(__ccgo_up(pending))) + } + **(**uint32)(__ccgo_up(pending)) = uint32(0) + return Uint64FromInt32(-Int32FromInt32(3)) + } + ret = Xmbrtowc(tls, bp, s, n, ps) + if ret <= uint64(4) { + if **(**Twchar_t)(__ccgo_up(bp)) >= int32(0x10000) { + **(**uint32)(__ccgo_up(pending)) = Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp))&int32(0x3ff) + int32(0xdc00)) + **(**Twchar_t)(__ccgo_up(bp)) = int32(0xd7c0) + **(**Twchar_t)(__ccgo_up(bp))>>Int32FromInt32(10) + } + if pc16 != 0 { + **(**Tchar16_t)(__ccgo_up(pc16)) = Uint16FromInt32(**(**Twchar_t)(__ccgo_up(bp))) + } + } + return ret +} + +var _internal_state1 uint32 + +func Xmbrtoc32(tls *TLS, pc32 uintptr, s uintptr, n Tsize_t, ps uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v pc32=%v s=%v n=%v ps=%v, (%v:)", tls, pc32, s, n, ps, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ret Tsize_t + var _ /* wc at bp+0 */ Twchar_t + _ = ret + if !(ps != 0) { + ps = uintptr(unsafe.Pointer(&_internal_state2)) + } + if !(s != 0) { + return Xmbrtoc32(tls, uintptr(0), __ccgo_ts, uint64(1), ps) + } + ret = Xmbrtowc(tls, bp, s, n, ps) + if ret <= uint64(4) && pc32 != 0 { + **(**Tchar32_t)(__ccgo_up(pc32)) = Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp))) + } + return ret +} + +var _internal_state2 uint32 + +func Xmbrtowc(tls *TLS, wc uintptr, src uintptr, n Tsize_t, st uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v wc=%v src=%v n=%v st=%v, (%v:)", tls, wc, src, n, st, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var N Tsize_t + var c uint32 + var s, v3 uintptr + var v1 Twchar_t + var v2 int32 + var _ /* dummy at bp+0 */ Twchar_t + _, _, _, _, _, _ = N, c, s, v1, v2, v3 + s = src + N = n + if !(st != 0) { + st = uintptr(unsafe.Pointer(&_internal_state3)) + } + c = **(**uint32)(__ccgo_up(st)) + if !(s != 0) { + if c != 0 { + goto ilseq + } + return uint64(0) + } else { + if !(wc != 0) { + wc = bp + } + } + if !(n != 0) { + return Uint64FromInt32(-Int32FromInt32(2)) + } + if !(c != 0) { + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) < int32(0x80) { + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(s))) + **(**Twchar_t)(__ccgo_up(wc)) = v1 + return BoolUint64(!!(v1 != 0)) + } + if !!(**(**uintptr)(__ccgo_up((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale)) != 0) { + v2 = int32(4) + } else { + v2 = int32(1) + } + if v2 == int32(1) { + **(**Twchar_t)(__ccgo_up(wc)) = Int32FromInt32(0xdfff) & int32(Int8FromUint8(**(**uint8)(__ccgo_up(s)))) + return Uint64FromInt32(1) + } + if uint32(**(**uint8)(__ccgo_up(s)))-uint32(0xc2) > Uint32FromUint32(0xf4)-Uint32FromUint32(0xc2) { + goto ilseq + } + v3 = s + s = s + 1 + c = X__fsmu8[uint32(**(**uint8)(__ccgo_up(v3)))-uint32(0xc2)] + n = n - 1 + } + if n != 0 { + if (Int32FromUint8(**(**uint8)(__ccgo_up(s)))>>int32(3)-int32(0x10)|(Int32FromUint8(**(**uint8)(__ccgo_up(s)))>>int32(3)+Int32FromUint32(c)>>Int32FromInt32(26))) & ^Int32FromInt32(7) != 0 { + goto ilseq + } + goto loop + loop: + ; + v3 = s + s = s + 1 + c = c<= uint32(0x40) { + goto ilseq + } + goto loop + } + } + **(**uint32)(__ccgo_up(st)) = c + return Uint64FromInt32(-Int32FromInt32(2)) + goto ilseq +ilseq: + ; + **(**uint32)(__ccgo_up(st)) = uint32(0) + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EILSEQ) + return Uint64FromInt32(-Int32FromInt32(1)) +} + +var _internal_state3 uint32 + +func Xmbsinit(tls *TLS, st uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v st=%v, (%v:)", tls, st, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(!(st != 0) || !(**(**uint32)(__ccgo_up(st)) != 0)) +} + +func Xmbsnrtowcs(tls *TLS, wcs uintptr, src uintptr, n Tsize_t, wn Tsize_t, st uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v wcs=%v src=%v n=%v wn=%v st=%v, (%v:)", tls, wcs, src, n, wn, st, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(1040) + defer tls.Free(1040) + var cnt, l, n2, v1 Tsize_t + var tmp_s, ws uintptr + var v2 bool + var v3 uint64 + var _ /* s at bp+1024 */ uintptr + var _ /* wbuf at bp+0 */ [256]Twchar_t + _, _, _, _, _, _, _, _ = cnt, l, n2, tmp_s, ws, v1, v2, v3 + cnt = uint64(0) + **(**uintptr)(__ccgo_up(bp + 1024)) = **(**uintptr)(__ccgo_up(src)) + if !(wcs != 0) { + ws = bp + wn = Uint64FromInt64(1024) / Uint64FromInt64(4) + } else { + ws = wcs + } + /* making sure output buffer size is at most n/4 will ensure + * that mbsrtowcs never reads more than n input bytes. thus + * we can use mbsrtowcs as long as it's practical.. */ + for { + if v2 = **(**uintptr)(__ccgo_up(bp + 1024)) != 0 && wn != 0; v2 { + v1 = n / Uint64FromInt32(4) + n2 = v1 + } + if !(v2 && (v1 >= wn || n2 > uint64(32))) { + break + } + if n2 >= wn { + n2 = wn + } + tmp_s = **(**uintptr)(__ccgo_up(bp + 1024)) + l = Xmbsrtowcs(tls, ws, bp+1024, n2, st) + if !(l+Uint64FromInt32(1) != 0) { + cnt = l + wn = uint64(0) + break + } + if ws != bp { + ws = ws + uintptr(l)*4 + wn = wn - l + } + if **(**uintptr)(__ccgo_up(bp + 1024)) != 0 { + v3 = n - Uint64FromInt64(int64(**(**uintptr)(__ccgo_up(bp + 1024)))-int64(tmp_s)) + } else { + v3 = uint64(0) + } + n = v3 + cnt = cnt + l + } + if **(**uintptr)(__ccgo_up(bp + 1024)) != 0 { + for wn != 0 && n != 0 { + l = Xmbrtowc(tls, ws, **(**uintptr)(__ccgo_up(bp + 1024)), n, st) + if l+uint64(2) <= uint64(2) { + if !(l+Uint64FromInt32(1) != 0) { + cnt = l + break + } + if !(l != 0) { + **(**uintptr)(__ccgo_up(bp + 1024)) = uintptr(0) + break + } + /* have to roll back partial character */ + **(**uint32)(__ccgo_up(st)) = uint32(0) + break + } + **(**uintptr)(__ccgo_up(bp + 1024)) = **(**uintptr)(__ccgo_up(bp + 1024)) + uintptr(l) + n = n - l + /* safe - this loop runs fewer than sizeof(wbuf)/8 times */ + ws += 4 + wn = wn - 1 + cnt = cnt + 1 + } + } + if wcs != 0 { + **(**uintptr)(__ccgo_up(src)) = **(**uintptr)(__ccgo_up(bp + 1024)) + } + return cnt +} + +func Xmbsrtowcs(tls *TLS, ws uintptr, src uintptr, wn Tsize_t, st uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v ws=%v src=%v wn=%v st=%v, (%v:)", tls, ws, src, wn, st, origin(2)) + defer func() { trc("-> %v", r) }() + } + var c, v1 uint32 + var s, v5, v6 uintptr + var wn0 Tsize_t + var v2 bool + var v3 int32 + _, _, _, _, _, _, _, _ = c, s, wn0, v1, v2, v3, v5, v6 + s = **(**uintptr)(__ccgo_up(src)) + wn0 = wn + c = uint32(0) + if v2 = st != 0; v2 { + v1 = **(**uint32)(__ccgo_up(st)) + c = v1 + } + if v2 && v1 != 0 { + if ws != 0 { + **(**uint32)(__ccgo_up(st)) = uint32(0) + goto resume + } else { + goto resume0 + } + } + if !!(**(**uintptr)(__ccgo_up((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale)) != 0) { + v3 = int32(4) + } else { + v3 = int32(1) + } + if v3 == int32(1) { + if !(ws != 0) { + return _strlen(tls, s) + } + for { + if !(wn != 0) { + **(**uintptr)(__ccgo_up(src)) = s + return wn0 + } + if !(**(**uint8)(__ccgo_up(s)) != 0) { + break + } + v5 = s + s = s + 1 + c = uint32(**(**uint8)(__ccgo_up(v5))) + v5 = ws + ws += 4 + **(**Twchar_t)(__ccgo_up(v5)) = Int32FromInt32(0xdfff) & int32(Int8FromUint32(c)) + wn = wn - 1 + goto _4 + _4: + } + **(**Twchar_t)(__ccgo_up(ws)) = 0 + **(**uintptr)(__ccgo_up(src)) = uintptr(0) + return wn0 - wn + } + if !!(ws != 0) { + goto _7 + } +_11: + ; + if uint32(**(**uint8)(__ccgo_up(s)))-uint32(1) < uint32(0x7f) && uint64(s)%uint64(4) == uint64(0) { + for !((**(**uint32)(__ccgo_up(s))|(**(**uint32)(__ccgo_up(s))-Uint32FromInt32(0x01010101)))&Uint32FromUint32(0x80808080) != 0) { + s = s + uintptr(4) + wn = wn - uint64(4) + } + } + if uint32(**(**uint8)(__ccgo_up(s)))-uint32(1) < uint32(0x7f) { + s = s + 1 + wn = wn - 1 + goto _10 + } + if uint32(**(**uint8)(__ccgo_up(s)))-uint32(0xc2) > Uint32FromUint32(0xf4)-Uint32FromUint32(0xc2) { + goto _9 + } + v5 = s + s = s + 1 + c = X__fsmu8[uint32(**(**uint8)(__ccgo_up(v5)))-uint32(0xc2)] + goto resume0 +resume0: + ; + if (Int32FromUint8(**(**uint8)(__ccgo_up(s)))>>int32(3)-int32(0x10)|(Int32FromUint8(**(**uint8)(__ccgo_up(s)))>>int32(3)+Int32FromUint32(c)>>Int32FromInt32(26))) & ^Int32FromInt32(7) != 0 { + s = s - 1 + goto _9 + } + s = s + 1 + if c&(Uint32FromUint32(1)<= uint32(0x40) { + s = s - uintptr(2) + goto _9 + } + s = s + 1 + if c&(Uint32FromUint32(1)<= uint32(0x40) { + s = s - uintptr(3) + goto _9 + } + s = s + 1 + } + } + wn = wn - 1 + c = uint32(0) + goto _10 +_10: + ; + goto _11 + goto _9 +_9: + ; + goto _8 +_7: + ; +_15: + ; + if !(wn != 0) { + **(**uintptr)(__ccgo_up(src)) = s + return wn0 + } + if uint32(**(**uint8)(__ccgo_up(s)))-uint32(1) < uint32(0x7f) && uint64(s)%uint64(4) == uint64(0) { + for wn >= uint64(5) && !((**(**uint32)(__ccgo_up(s))|(**(**uint32)(__ccgo_up(s))-Uint32FromInt32(0x01010101)))&Uint32FromUint32(0x80808080) != 0) { + v5 = ws + ws += 4 + v6 = s + s = s + 1 + **(**Twchar_t)(__ccgo_up(v5)) = Int32FromUint8(**(**uint8)(__ccgo_up(v6))) + v5 = ws + ws += 4 + v6 = s + s = s + 1 + **(**Twchar_t)(__ccgo_up(v5)) = Int32FromUint8(**(**uint8)(__ccgo_up(v6))) + v5 = ws + ws += 4 + v6 = s + s = s + 1 + **(**Twchar_t)(__ccgo_up(v5)) = Int32FromUint8(**(**uint8)(__ccgo_up(v6))) + v5 = ws + ws += 4 + v6 = s + s = s + 1 + **(**Twchar_t)(__ccgo_up(v5)) = Int32FromUint8(**(**uint8)(__ccgo_up(v6))) + wn = wn - uint64(4) + } + } + if uint32(**(**uint8)(__ccgo_up(s)))-uint32(1) < uint32(0x7f) { + v5 = ws + ws += 4 + v6 = s + s = s + 1 + **(**Twchar_t)(__ccgo_up(v5)) = Int32FromUint8(**(**uint8)(__ccgo_up(v6))) + wn = wn - 1 + goto _14 + } + if uint32(**(**uint8)(__ccgo_up(s)))-uint32(0xc2) > Uint32FromUint32(0xf4)-Uint32FromUint32(0xc2) { + goto _13 + } + v5 = s + s = s + 1 + c = X__fsmu8[uint32(**(**uint8)(__ccgo_up(v5)))-uint32(0xc2)] + goto resume +resume: + ; + if (Int32FromUint8(**(**uint8)(__ccgo_up(s)))>>int32(3)-int32(0x10)|(Int32FromUint8(**(**uint8)(__ccgo_up(s)))>>int32(3)+Int32FromUint32(c)>>Int32FromInt32(26))) & ^Int32FromInt32(7) != 0 { + s = s - 1 + goto _13 + } + v5 = s + s = s + 1 + c = c<= uint32(0x40) { + s = s - uintptr(2) + goto _13 + } + v5 = s + s = s + 1 + c = c<= uint32(0x40) { + s = s - uintptr(3) + goto _13 + } + v5 = s + s = s + 1 + c = c< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + *(*uintptr)(unsafe.Pointer(bp)) = _s + return Xmbsrtowcs(tls, ws, bp, wn, uintptr(0)) +} + +func Xmbtowc(tls *TLS, wc uintptr, src uintptr, n Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v wc=%v src=%v n=%v, (%v:)", tls, wc, src, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var c uint32 + var s, v3 uintptr + var v1 Twchar_t + var v2 int32 + var _ /* dummy at bp+0 */ Twchar_t + _, _, _, _, _ = c, s, v1, v2, v3 + s = src + if !(s != 0) { + return 0 + } + if !(n != 0) { + goto ilseq + } + if !(wc != 0) { + wc = bp + } + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) < int32(0x80) { + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(s))) + **(**Twchar_t)(__ccgo_up(wc)) = v1 + return BoolInt32(!!(v1 != 0)) + } + if !!(**(**uintptr)(__ccgo_up((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale)) != 0) { + v2 = int32(4) + } else { + v2 = int32(1) + } + if v2 == int32(1) { + **(**Twchar_t)(__ccgo_up(wc)) = Int32FromInt32(0xdfff) & int32(Int8FromUint8(**(**uint8)(__ccgo_up(s)))) + return Int32FromInt32(1) + } + if uint32(**(**uint8)(__ccgo_up(s)))-uint32(0xc2) > Uint32FromUint32(0xf4)-Uint32FromUint32(0xc2) { + goto ilseq + } + v3 = s + s = s + 1 + c = X__fsmu8[uint32(**(**uint8)(__ccgo_up(v3)))-uint32(0xc2)] + /* Avoid excessive checks against n: If shifting the state n-1 + * times does not clear the high bit, then the value of n is + * insufficient to read a character */ + if n < uint64(4) && c<<(uint64(6)*n-uint64(6))&(Uint32FromUint32(1)<>int32(3)-int32(0x10)|(Int32FromUint8(**(**uint8)(__ccgo_up(s)))>>int32(3)+Int32FromUint32(c)>>Int32FromInt32(26))) & ^Int32FromInt32(7) != 0 { + goto ilseq + } + v3 = s + s = s + 1 + c = c<= uint32(0x40) { + goto ilseq + } + v3 = s + s = s + 1 + c = c<= uint32(0x40) { + goto ilseq + } + v3 = s + s = s + 1 + **(**Twchar_t)(__ccgo_up(wc)) = Int32FromUint32(c< %v", r) }() + } + var v1 int32 + var v2 uintptr + _, _ = v1, v2 + if !(s != 0) { + return uint64(1) + } + if Uint32FromInt32(wc) < uint32(0x80) { + **(**uint8)(__ccgo_up(s)) = Uint8FromInt32(wc) + return uint64(1) + } else { + if !!(**(**uintptr)(__ccgo_up((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale)) != 0) { + v1 = int32(4) + } else { + v1 = int32(1) + } + if v1 == int32(1) { + if !(Uint32FromInt32(wc)-Uint32FromInt32(0xdf80) < Uint32FromInt32(0x80)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EILSEQ) + return Uint64FromInt32(-Int32FromInt32(1)) + } + **(**uint8)(__ccgo_up(s)) = Uint8FromInt32(wc) + return uint64(1) + } else { + if Uint32FromInt32(wc) < uint32(0x800) { + v2 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = Uint8FromInt32(int32(0xc0) | wc>>Int32FromInt32(6)) + **(**uint8)(__ccgo_up(s)) = Uint8FromInt32(int32(0x80) | wc&int32(0x3f)) + return uint64(2) + } else { + if Uint32FromInt32(wc) < uint32(0xd800) || Uint32FromInt32(wc)-uint32(0xe000) < uint32(0x2000) { + v2 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = Uint8FromInt32(int32(0xe0) | wc>>Int32FromInt32(12)) + v2 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = Uint8FromInt32(int32(0x80) | wc>>Int32FromInt32(6)&int32(0x3f)) + **(**uint8)(__ccgo_up(s)) = Uint8FromInt32(int32(0x80) | wc&int32(0x3f)) + return uint64(3) + } else { + if Uint32FromInt32(wc)-uint32(0x10000) < uint32(0x100000) { + v2 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = Uint8FromInt32(int32(0xf0) | wc>>Int32FromInt32(18)) + v2 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = Uint8FromInt32(int32(0x80) | wc>>Int32FromInt32(12)&int32(0x3f)) + v2 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = Uint8FromInt32(int32(0x80) | wc>>Int32FromInt32(6)&int32(0x3f)) + **(**uint8)(__ccgo_up(s)) = Uint8FromInt32(int32(0x80) | wc&int32(0x3f)) + return uint64(4) + } + } + } + } + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EILSEQ) + return Uint64FromInt32(-Int32FromInt32(1)) +} + +func Xwcsnrtombs(tls *TLS, dst uintptr, wcs uintptr, wn Tsize_t, n Tsize_t, st uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v dst=%v wcs=%v wn=%v n=%v st=%v, (%v:)", tls, dst, wcs, wn, n, st, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var cnt, l Tsize_t + var ws, v1 uintptr + var _ /* tmp at bp+0 */ [4]uint8 + _, _, _, _ = cnt, l, ws, v1 + ws = **(**uintptr)(__ccgo_up(wcs)) + cnt = uint64(0) + if !(dst != 0) { + n = uint64(0) + } + for ws != 0 && wn != 0 { + if n < uint64(MB_LEN_MAX) { + v1 = bp + } else { + v1 = dst + } + l = Xwcrtomb(tls, v1, **(**Twchar_t)(__ccgo_up(ws)), uintptr(0)) + if l == Uint64FromInt32(-Int32FromInt32(1)) { + cnt = Uint64FromInt32(-Int32FromInt32(1)) + break + } + if dst != 0 { + if n < uint64(MB_LEN_MAX) { + if l > n { + break + } + Xmemcpy(tls, dst, bp, l) + } + dst = dst + uintptr(l) + n = n - l + } + if !(**(**Twchar_t)(__ccgo_up(ws)) != 0) { + ws = uintptr(0) + break + } + ws += 4 + wn = wn - 1 + cnt = cnt + l + } + if dst != 0 { + **(**uintptr)(__ccgo_up(wcs)) = ws + } + return cnt +} + +func Xwcsrtombs(tls *TLS, s uintptr, ws uintptr, n Tsize_t, st uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v ws=%v n=%v st=%v, (%v:)", tls, s, ws, n, st, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var N, l Tsize_t + var ws2, v2 uintptr + var _ /* buf at bp+0 */ [4]uint8 + _, _, _, _ = N, l, ws2, v2 + N = n + if !(s != 0) { + n = uint64(0) + ws2 = **(**uintptr)(__ccgo_up(ws)) + for { + if !(**(**Twchar_t)(__ccgo_up(ws2)) != 0) { + break + } + if Uint32FromInt32(**(**Twchar_t)(__ccgo_up(ws2))) >= uint32(0x80) { + l = Xwcrtomb(tls, bp, **(**Twchar_t)(__ccgo_up(ws2)), uintptr(0)) + if !(l+Uint64FromInt32(1) != 0) { + return Uint64FromInt32(-Int32FromInt32(1)) + } + n = n + l + } else { + n = n + 1 + } + goto _1 + _1: + ; + ws2 += 4 + } + return n + } + for n >= uint64(4) { + if Uint32FromInt32(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(ws)))))-uint32(1) >= uint32(0x7f) { + if !(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(ws)))) != 0) { + **(**uint8)(__ccgo_up(s)) = uint8(0) + **(**uintptr)(__ccgo_up(ws)) = uintptr(0) + return N - n + } + l = Xwcrtomb(tls, s, **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(ws)))), uintptr(0)) + if !(l+Uint64FromInt32(1) != 0) { + return Uint64FromInt32(-Int32FromInt32(1)) + } + s = s + uintptr(l) + n = n - l + } else { + v2 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = Uint8FromInt32(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(ws))))) + n = n - 1 + } + **(**uintptr)(__ccgo_up(ws)) += 4 + } + for n != 0 { + if Uint32FromInt32(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(ws)))))-uint32(1) >= uint32(0x7f) { + if !(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(ws)))) != 0) { + **(**uint8)(__ccgo_up(s)) = uint8(0) + **(**uintptr)(__ccgo_up(ws)) = uintptr(0) + return N - n + } + l = Xwcrtomb(tls, bp, **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(ws)))), uintptr(0)) + if !(l+Uint64FromInt32(1) != 0) { + return Uint64FromInt32(-Int32FromInt32(1)) + } + if l > n { + return N - n + } + Xwcrtomb(tls, s, **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(ws)))), uintptr(0)) + s = s + uintptr(l) + n = n - l + } else { + v2 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = Uint8FromInt32(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(ws))))) + n = n - 1 + } + **(**uintptr)(__ccgo_up(ws)) += 4 + } + return N +} + +func Xwcstombs(tls *TLS, s uintptr, ws uintptr, n Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v ws=%v n=%v, (%v:)", tls, s, ws, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + *(*uintptr)(unsafe.Pointer(bp)) = ws + return Xwcsrtombs(tls, s, bp, n, uintptr(0)) +} + +func Xwctob(tls *TLS, c Twint_t) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + _ = v1 + if c < uint32(128) { + return Int32FromUint32(c) + } + if !!(**(**uintptr)(__ccgo_up((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale)) != 0) { + v1 = int32(4) + } else { + v1 = int32(1) + } + if v1 == int32(1) && c-uint32(0xdf80) < uint32(0x80) { + return Int32FromUint8(uint8(c)) + } + return -int32(1) +} + +func Xwctomb(tls *TLS, s uintptr, wc Twchar_t) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v wc=%v, (%v:)", tls, s, wc, origin(2)) + defer func() { trc("-> %v", r) }() + } + if !(s != 0) { + return 0 + } + return Int32FromUint64(Xwcrtomb(tls, s, wc, uintptr(0))) +} + +func Xaccept(tls *TLS, fd int32, addr uintptr, len1 uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v addr=%v len1=%v, (%v:)", tls, fd, addr, len1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(96) + defer tls.Free(96) + var r, v10 int64 + var v1, v2, v3 int32 + var v4, v5, v6, v7, v8, v9 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _, _, _ = r, v1, v10, v2, v3, v4, v5, v6, v7, v8, v9 + v1 = int32(SYS_accept4) + v2 = int32(__SC_accept) + v3 = int32(1) + v4 = int64(fd) + v5 = int64(addr) + v6 = int64(len1) + v7 = int64(Int32FromInt32(0)) + v8 = int64(Int32FromInt32(0)) + v9 = int64(Int32FromInt32(0)) + if v3 != 0 { + r = ___syscall_cp(tls, int64(v1), v4, v5, v6, v7, v8, v9) + } else { + r = X__syscall6(tls, int64(v1), v4, v5, v6, v7, v8, v9) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v10 = r + goto _11 + } + if v3 != 0 { + *(*[6]int64)(unsafe.Pointer(bp)) = [6]int64{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = ___syscall_cp(tls, int64(SYS_socketcall), int64(v2), int64(bp), 0, 0, 0, 0) + } else { + *(*[6]int64)(unsafe.Pointer(bp + 48)) = [6]int64{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = X__syscall2(tls, int64(SYS_socketcall), int64(v2), int64(bp+48)) + } + v10 = r + goto _11 +_11: + return int32(X__syscall_ret(tls, Uint64FromInt64(v10))) +} + +type Tucred = struct { + Fpid Tpid_t + Fuid Tuid_t + Fgid Tgid_t +} + +type Tmmsghdr = struct { + Fmsg_hdr Tmsghdr + Fmsg_len uint32 +} + +func Xaccept4(tls *TLS, fd int32, addr uintptr, len1 uintptr, flg int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v addr=%v len1=%v flg=%v, (%v:)", tls, fd, addr, len1, flg, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(96) + defer tls.Free(96) + var r, v10 int64 + var ret, v1, v2, v3 int32 + var v4, v5, v6, v7, v8, v9 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _, _, _, _ = r, ret, v1, v10, v2, v3, v4, v5, v6, v7, v8, v9 + if !(flg != 0) { + return Xaccept(tls, fd, addr, len1) + } + v1 = int32(SYS_accept4) + v2 = int32(__SC_accept4) + v3 = int32(1) + v4 = int64(fd) + v5 = int64(addr) + v6 = int64(len1) + v7 = int64(flg) + v8 = int64(Int32FromInt32(0)) + v9 = int64(Int32FromInt32(0)) + if v3 != 0 { + r = ___syscall_cp(tls, int64(v1), v4, v5, v6, v7, v8, v9) + } else { + r = X__syscall6(tls, int64(v1), v4, v5, v6, v7, v8, v9) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v10 = r + goto _11 + } + if v3 != 0 { + *(*[6]int64)(unsafe.Pointer(bp)) = [6]int64{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = ___syscall_cp(tls, int64(SYS_socketcall), int64(v2), int64(bp), 0, 0, 0, 0) + } else { + *(*[6]int64)(unsafe.Pointer(bp + 48)) = [6]int64{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = X__syscall2(tls, int64(SYS_socketcall), int64(v2), int64(bp+48)) + } + v10 = r + goto _11 +_11: + ret = int32(X__syscall_ret(tls, Uint64FromInt64(v10))) + if ret >= 0 || **(**int32)(__ccgo_up(X__errno_location(tls))) != int32(ENOSYS) && **(**int32)(__ccgo_up(X__errno_location(tls))) != int32(EINVAL) { + return ret + } + if flg & ^(Int32FromInt32(SOCK_CLOEXEC)|Int32FromInt32(SOCK_NONBLOCK)) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + ret = Xaccept(tls, fd, addr, len1) + if ret < 0 { + return ret + } + if flg&int32(SOCK_CLOEXEC) != 0 { + X__syscall3(tls, int64(SYS_fcntl), int64(ret), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + } + if flg&int32(SOCK_NONBLOCK) != 0 { + X__syscall3(tls, int64(SYS_fcntl), int64(ret), int64(Int32FromInt32(F_SETFL)), int64(Int32FromInt32(O_NONBLOCK))) + } + return ret +} + +func Xbind(tls *TLS, fd int32, addr uintptr, len1 Tsocklen_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v addr=%v len1=%v, (%v:)", tls, fd, addr, len1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(96) + defer tls.Free(96) + var r, v10 int64 + var v1, v2, v3 int32 + var v4, v5, v6, v7, v8, v9 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _, _, _ = r, v1, v10, v2, v3, v4, v5, v6, v7, v8, v9 + v1 = int32(SYS_bind) + v2 = int32(__SC_bind) + v3 = 0 + v4 = int64(fd) + v5 = int64(addr) + v6 = Int64FromUint32(len1) + v7 = int64(Int32FromInt32(0)) + v8 = int64(Int32FromInt32(0)) + v9 = int64(Int32FromInt32(0)) + if v3 != 0 { + r = ___syscall_cp(tls, int64(v1), v4, v5, v6, v7, v8, v9) + } else { + r = X__syscall6(tls, int64(v1), v4, v5, v6, v7, v8, v9) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v10 = r + goto _11 + } + if v3 != 0 { + *(*[6]int64)(unsafe.Pointer(bp)) = [6]int64{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = ___syscall_cp(tls, int64(SYS_socketcall), int64(v2), int64(bp), 0, 0, 0, 0) + } else { + *(*[6]int64)(unsafe.Pointer(bp + 48)) = [6]int64{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = X__syscall2(tls, int64(SYS_socketcall), int64(v2), int64(bp+48)) + } + v10 = r + goto _11 +_11: + return int32(X__syscall_ret(tls, Uint64FromInt64(v10))) +} + +func Xconnect(tls *TLS, fd int32, addr uintptr, len1 Tsocklen_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v addr=%v len1=%v, (%v:)", tls, fd, addr, len1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(96) + defer tls.Free(96) + var r, v10 int64 + var v1, v2, v3 int32 + var v4, v5, v6, v7, v8, v9 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _, _, _ = r, v1, v10, v2, v3, v4, v5, v6, v7, v8, v9 + v1 = int32(SYS_connect) + v2 = int32(__SC_connect) + v3 = int32(1) + v4 = int64(fd) + v5 = int64(addr) + v6 = Int64FromUint32(len1) + v7 = int64(Int32FromInt32(0)) + v8 = int64(Int32FromInt32(0)) + v9 = int64(Int32FromInt32(0)) + if v3 != 0 { + r = ___syscall_cp(tls, int64(v1), v4, v5, v6, v7, v8, v9) + } else { + r = X__syscall6(tls, int64(v1), v4, v5, v6, v7, v8, v9) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v10 = r + goto _11 + } + if v3 != 0 { + *(*[6]int64)(unsafe.Pointer(bp)) = [6]int64{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = ___syscall_cp(tls, int64(SYS_socketcall), int64(v2), int64(bp), 0, 0, 0, 0) + } else { + *(*[6]int64)(unsafe.Pointer(bp + 48)) = [6]int64{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = X__syscall2(tls, int64(SYS_socketcall), int64(v2), int64(bp+48)) + } + v10 = r + goto _11 +_11: + return int32(X__syscall_ret(tls, Uint64FromInt64(v10))) +} + +const ADD = 0 +const C_ANY = 0 +const C_CHAOS = 0 +const C_HS = 0 +const C_IN = 0 +const C_NONE = 0 +const DELETE = 0 +const FORMERR = 0 +const GETLONG = 0 +const GETSHORT = 0 +const HFIXEDSZ = 12 +const IN6ADDRSZ = 16 +const INADDRSZ = 4 +const INDIR_MASK = 192 +const INET6_ADDRSTRLEN = 46 +const INET_ADDRSTRLEN = 16 +const INT16SZ = 2 +const INT32SZ = 4 +const INT8SZ = 1 +const IN_CLASSA_HOST = 16777215 +const IN_CLASSA_MAX = 128 +const IN_CLASSA_NET = 4278190080 +const IN_CLASSA_NSHIFT = 24 +const IN_CLASSB_HOST = 65535 +const IN_CLASSB_MAX = 65536 +const IN_CLASSB_NET = 4294901760 +const IN_CLASSB_NSHIFT = 16 +const IN_CLASSC_HOST = 255 +const IN_CLASSC_NET = 4294967040 +const IN_CLASSC_NSHIFT = 8 +const IN_LOOPBACKNET = 127 +const IPPORT_RESERVED = 1024 +const IPPROTO_AH = 51 +const IPPROTO_BEETPH = 94 +const IPPROTO_COMP = 108 +const IPPROTO_DCCP = 33 +const IPPROTO_DSTOPTS = 60 +const IPPROTO_EGP = 8 +const IPPROTO_ENCAP = 98 +const IPPROTO_ESP = 50 +const IPPROTO_ETHERNET = 143 +const IPPROTO_FRAGMENT = 44 +const IPPROTO_GRE = 47 +const IPPROTO_HOPOPTS = 0 +const IPPROTO_ICMP = 1 +const IPPROTO_ICMPV6 = 58 +const IPPROTO_IDP = 22 +const IPPROTO_IGMP = 2 +const IPPROTO_IP = 0 +const IPPROTO_IPIP = 4 +const IPPROTO_IPV6 = 41 +const IPPROTO_MAX = 263 +const IPPROTO_MH = 135 +const IPPROTO_MPLS = 137 +const IPPROTO_MPTCP = 262 +const IPPROTO_MTP = 92 +const IPPROTO_NONE = 59 +const IPPROTO_PIM = 103 +const IPPROTO_PUP = 12 +const IPPROTO_RAW = 255 +const IPPROTO_ROUTING = 43 +const IPPROTO_RSVP = 46 +const IPPROTO_SCTP = 132 +const IPPROTO_TCP = 6 +const IPPROTO_TP = 29 +const IPPROTO_UDP = 17 +const IPPROTO_UDPLITE = 136 +const IPV6_2292DSTOPTS = 4 +const IPV6_2292HOPLIMIT = 8 +const IPV6_2292HOPOPTS = 3 +const IPV6_2292PKTINFO = 2 +const IPV6_2292PKTOPTIONS = 6 +const IPV6_2292RTHDR = 5 +const IPV6_ADDRFORM = 1 +const IPV6_ADDR_PREFERENCES = 72 +const IPV6_ADD_MEMBERSHIP = 20 +const IPV6_AUTHHDR = 10 +const IPV6_AUTOFLOWLABEL = 70 +const IPV6_CHECKSUM = 7 +const IPV6_DONTFRAG = 62 +const IPV6_DROP_MEMBERSHIP = 21 +const IPV6_DSTOPTS = 59 +const IPV6_FREEBIND = 78 +const IPV6_HDRINCL = 36 +const IPV6_HOPLIMIT = 52 +const IPV6_HOPOPTS = 54 +const IPV6_IPSEC_POLICY = 34 +const IPV6_JOIN_ANYCAST = 27 +const IPV6_JOIN_GROUP = 20 +const IPV6_LEAVE_ANYCAST = 28 +const IPV6_LEAVE_GROUP = 21 +const IPV6_MINHOPCOUNT = 73 +const IPV6_MTU = 24 +const IPV6_MTU_DISCOVER = 23 +const IPV6_MULTICAST_ALL = 29 +const IPV6_MULTICAST_HOPS = 18 +const IPV6_MULTICAST_IF = 17 +const IPV6_MULTICAST_LOOP = 19 +const IPV6_NEXTHOP = 9 +const IPV6_ORIGDSTADDR = 74 +const IPV6_PATHMTU = 61 +const IPV6_PKTINFO = 50 +const IPV6_PMTUDISC_DO = 2 +const IPV6_PMTUDISC_DONT = 0 +const IPV6_PMTUDISC_INTERFACE = 4 +const IPV6_PMTUDISC_OMIT = 5 +const IPV6_PMTUDISC_PROBE = 3 +const IPV6_PMTUDISC_WANT = 1 +const IPV6_PREFER_SRC_CGA = 8 +const IPV6_PREFER_SRC_COA = 4 +const IPV6_PREFER_SRC_HOME = 1024 +const IPV6_PREFER_SRC_NONCGA = 2048 +const IPV6_PREFER_SRC_PUBLIC = 2 +const IPV6_PREFER_SRC_PUBTMP_DEFAULT = 256 +const IPV6_PREFER_SRC_TMP = 1 +const IPV6_RECVDSTOPTS = 58 +const IPV6_RECVERR = 25 +const IPV6_RECVFRAGSIZE = 77 +const IPV6_RECVHOPLIMIT = 51 +const IPV6_RECVHOPOPTS = 53 +const IPV6_RECVORIGDSTADDR = 74 +const IPV6_RECVPATHMTU = 60 +const IPV6_RECVPKTINFO = 49 +const IPV6_RECVRTHDR = 56 +const IPV6_RECVTCLASS = 66 +const IPV6_ROUTER_ALERT = 22 +const IPV6_ROUTER_ALERT_ISOLATE = 30 +const IPV6_RTHDR = 57 +const IPV6_RTHDRDSTOPTS = 55 +const IPV6_RTHDR_LOOSE = 0 +const IPV6_RTHDR_STRICT = 1 +const IPV6_RTHDR_TYPE_0 = 0 +const IPV6_RXDSTOPTS = 59 +const IPV6_RXHOPOPTS = 54 +const IPV6_TCLASS = 67 +const IPV6_TRANSPARENT = 75 +const IPV6_UNICAST_HOPS = 16 +const IPV6_UNICAST_IF = 76 +const IPV6_V6ONLY = 26 +const IPV6_XFRM_POLICY = 35 +const IP_ADD_MEMBERSHIP = 35 +const IP_ADD_SOURCE_MEMBERSHIP = 39 +const IP_BIND_ADDRESS_NO_PORT = 24 +const IP_BLOCK_SOURCE = 38 +const IP_CHECKSUM = 23 +const IP_DEFAULT_MULTICAST_LOOP = 1 +const IP_DEFAULT_MULTICAST_TTL = 1 +const IP_DROP_MEMBERSHIP = 36 +const IP_DROP_SOURCE_MEMBERSHIP = 40 +const IP_FREEBIND = 15 +const IP_HDRINCL = 3 +const IP_IPSEC_POLICY = 16 +const IP_MAX_MEMBERSHIPS = 20 +const IP_MINTTL = 21 +const IP_MSFILTER = 41 +const IP_MTU = 14 +const IP_MTU_DISCOVER = 10 +const IP_MULTICAST_ALL = 49 +const IP_MULTICAST_IF = 32 +const IP_MULTICAST_LOOP = 34 +const IP_MULTICAST_TTL = 33 +const IP_NODEFRAG = 22 +const IP_OPTIONS = 4 +const IP_ORIGDSTADDR = 20 +const IP_PASSSEC = 18 +const IP_PKTINFO = 8 +const IP_PKTOPTIONS = 9 +const IP_PMTUDISC = 10 +const IP_PMTUDISC_DO = 2 +const IP_PMTUDISC_DONT = 0 +const IP_PMTUDISC_INTERFACE = 4 +const IP_PMTUDISC_OMIT = 5 +const IP_PMTUDISC_PROBE = 3 +const IP_PMTUDISC_WANT = 1 +const IP_RECVERR = 11 +const IP_RECVERR_RFC4884 = 26 +const IP_RECVFRAGSIZE = 25 +const IP_RECVOPTS = 6 +const IP_RECVORIGDSTADDR = 20 +const IP_RECVRETOPTS = 7 +const IP_RECVTOS = 13 +const IP_RECVTTL = 12 +const IP_RETOPTS = 7 +const IP_ROUTER_ALERT = 5 +const IP_TOS = 1 +const IP_TRANSPARENT = 19 +const IP_TTL = 2 +const IP_UNBLOCK_SOURCE = 37 +const IP_UNICAST_IF = 50 +const IP_XFRM_POLICY = 17 +const IQUERY = 0 +const LOCALDOMAINPARTS = 2 +const MAXCDNAME = 255 +const MAXDFLSRCH = 3 +const MAXDNAME = 1025 +const MAXDNSRCH = 6 +const MAXLABEL = 63 +const MAXNS = 3 +const MAXRESOLVSORT = 10 +const NAMESERVER_PORT = 53 +const NOERROR = 0 +const NOTAUTH = 0 +const NOTIMP = 0 +const NOTZONE = 0 +const NS_ALG_DH = 2 +const NS_ALG_DSA = 3 +const NS_ALG_DSS = 3 +const NS_ALG_EXPIRE_ONLY = 253 +const NS_ALG_MD5RSA = 1 +const NS_ALG_PRIVATE_OID = 254 +const NS_CMPRSFLGS = 192 +const NS_DEFAULTPORT = 53 +const NS_DSA_MAX_BYTES = 405 +const NS_DSA_MIN_SIZE = 213 +const NS_DSA_SIG_SIZE = 41 +const NS_HFIXEDSZ = 12 +const NS_IN6ADDRSZ = 16 +const NS_INADDRSZ = 4 +const NS_INT16SZ = 2 +const NS_INT32SZ = 4 +const NS_INT8SZ = 1 +const NS_KEY_EXTENDED_FLAGS = 4096 +const NS_KEY_NAME_ENTITY = 512 +const NS_KEY_NAME_RESERVED = 768 +const NS_KEY_NAME_TYPE = 768 +const NS_KEY_NAME_USER = 0 +const NS_KEY_NAME_ZONE = 256 +const NS_KEY_NO_AUTH = 32768 +const NS_KEY_NO_CONF = 16384 +const NS_KEY_PROT_ANY = 255 +const NS_KEY_PROT_DNSSEC = 3 +const NS_KEY_PROT_EMAIL = 2 +const NS_KEY_PROT_IPSEC = 4 +const NS_KEY_PROT_TLS = 1 +const NS_KEY_RESERVED10 = 32 +const NS_KEY_RESERVED11 = 16 +const NS_KEY_RESERVED2 = 8192 +const NS_KEY_RESERVED4 = 2048 +const NS_KEY_RESERVED5 = 1024 +const NS_KEY_RESERVED8 = 128 +const NS_KEY_RESERVED9 = 64 +const NS_KEY_RESERVED_BITMASK = 11504 +const NS_KEY_RESERVED_BITMASK2 = 65535 +const NS_KEY_SIGNATORYMASK = 15 +const NS_KEY_TYPEMASK = 49152 +const NS_KEY_TYPE_AUTH_CONF = 0 +const NS_KEY_TYPE_AUTH_ONLY = 16384 +const NS_KEY_TYPE_CONF_ONLY = 32768 +const NS_KEY_TYPE_NO_KEY = 49152 +const NS_MAXCDNAME = 255 +const NS_MAXDNAME = 1025 +const NS_MAXLABEL = 63 +const NS_MAXMSG = 65535 +const NS_MD5RSA_MAX_BASE64 = 10928 +const NS_MD5RSA_MAX_BITS = 4096 +const NS_MD5RSA_MAX_BYTES = 8195 +const NS_MD5RSA_MAX_SIZE = 512 +const NS_MD5RSA_MIN_BITS = 512 +const NS_MD5RSA_MIN_SIZE = 64 +const NS_NOTIFY_OP = 0 +const NS_NXT_BITS = 8 +const NS_NXT_MAX = 127 +const NS_OPT_DNSSEC_OK = 32768 +const NS_OPT_NSID = 3 +const NS_PACKETSZ = 512 +const NS_QFIXEDSZ = 4 +const NS_RRFIXEDSZ = 10 +const NS_SIG_ALG = 2 +const NS_SIG_EXPIR = 8 +const NS_SIG_FOOT = 16 +const NS_SIG_LABELS = 3 +const NS_SIG_OTTL = 4 +const NS_SIG_SIGNED = 12 +const NS_SIG_SIGNER = 18 +const NS_SIG_TYPE = 0 +const NS_TSIG_ALG_HMAC_MD5 = "HMAC-MD5.SIG-ALG.REG.INT" +const NS_TSIG_ERROR_FORMERR = -12 +const NS_TSIG_ERROR_NO_SPACE = -11 +const NS_TSIG_ERROR_NO_TSIG = -10 +const NS_TSIG_FUDGE = 300 +const NS_TSIG_TCP_COUNT = 100 +const NS_UPDATE_OP = 0 +const NXDOMAIN = 0 +const NXRRSET = 0 +const PACKETSZ = 512 +const PRIX16 = "X" +const PRIX32 = "X" +const PRIX8 = "X" +const PRIXFAST16 = "X" +const PRIXFAST32 = "X" +const PRIXFAST8 = "X" +const PRIXLEAST16 = "X" +const PRIXLEAST32 = "X" +const PRIXLEAST8 = "X" +const PRId16 = "d" +const PRId32 = "d" +const PRId8 = "d" +const PRIdFAST16 = "d" +const PRIdFAST32 = "d" +const PRIdFAST8 = "d" +const PRIdLEAST16 = "d" +const PRIdLEAST32 = "d" +const PRIdLEAST8 = "d" +const PRIi16 = "i" +const PRIi32 = "i" +const PRIi8 = "i" +const PRIiFAST16 = "i" +const PRIiFAST32 = "i" +const PRIiFAST8 = "i" +const PRIiLEAST16 = "i" +const PRIiLEAST32 = "i" +const PRIiLEAST8 = "i" +const PRIo16 = "o" +const PRIo32 = "o" +const PRIo8 = "o" +const PRIoFAST16 = "o" +const PRIoFAST32 = "o" +const PRIoFAST8 = "o" +const PRIoLEAST16 = "o" +const PRIoLEAST32 = "o" +const PRIoLEAST8 = "o" +const PRIu16 = "u" +const PRIu32 = "u" +const PRIu8 = "u" +const PRIuFAST16 = "u" +const PRIuFAST32 = "u" +const PRIuFAST8 = "u" +const PRIuLEAST16 = "u" +const PRIuLEAST32 = "u" +const PRIuLEAST8 = "u" +const PRIx16 = "x" +const PRIx32 = "x" +const PRIx8 = "x" +const PRIxFAST16 = "x" +const PRIxFAST32 = "x" +const PRIxFAST8 = "x" +const PRIxLEAST16 = "x" +const PRIxLEAST32 = "x" +const PRIxLEAST8 = "x" +const PUTLONG = 0 +const PUTSHORT = 0 +const QFIXEDSZ = 4 +const QUERY = 0 +const REFUSED = 0 +const RES_AAONLY = 4 +const RES_BLAST = 131072 +const RES_DEBUG = 2 +const RES_DEFAULT = 524992 +const RES_DEFNAMES = 128 +const RES_DFLRETRY = 2 +const RES_DNSRCH = 512 +const RES_EXHAUSTIVE = 1 +const RES_F_CONN = 2 +const RES_F_EDNS0ERR = 4 +const RES_F_VC = 1 +const RES_IGNTC = 32 +const RES_INIT = 1 +const RES_INSECURE1 = 1024 +const RES_INSECURE2 = 2048 +const RES_KEEPTSIG = 65536 +const RES_MAXNDOTS = 15 +const RES_MAXRETRANS = 30 +const RES_MAXRETRY = 5 +const RES_MAXTIME = 65535 +const RES_NOALIASES = 4096 +const RES_NOCHECKNAME = 32768 +const RES_NOIP6DOTINT = 524288 +const RES_PRF_ADD = 128 +const RES_PRF_ANS = 32 +const RES_PRF_AUTH = 64 +const RES_PRF_CLASS = 4 +const RES_PRF_CMD = 8 +const RES_PRF_HEAD1 = 256 +const RES_PRF_HEAD2 = 512 +const RES_PRF_HEADX = 2048 +const RES_PRF_INIT = 16384 +const RES_PRF_QUERY = 4096 +const RES_PRF_QUES = 16 +const RES_PRF_REPLY = 8192 +const RES_PRF_STATS = 1 +const RES_PRF_TTLID = 1024 +const RES_PRF_UPDATE = 2 +const RES_PRIMARY = 16 +const RES_RECURSE = 64 +const RES_ROTATE = 16384 +const RES_SNGLKUP = 2097152 +const RES_SNGLKUPREOP = 4194304 +const RES_STAYOPEN = 256 +const RES_TIMEOUT = 5 +const RES_USEBSTRING = 262144 +const RES_USEVC = 8 +const RES_USE_DNSSEC = 8388608 +const RES_USE_EDNS0 = 1048576 +const RES_USE_INET6 = 8192 +const RRFIXEDSZ = 10 +const SCNd16 = "hd" +const SCNd32 = "d" +const SCNd8 = "hhd" +const SCNdFAST16 = "d" +const SCNdFAST32 = "d" +const SCNdFAST8 = "hhd" +const SCNdLEAST16 = "hd" +const SCNdLEAST32 = "d" +const SCNdLEAST8 = "hhd" +const SCNi16 = "hi" +const SCNi32 = "i" +const SCNi8 = "hhi" +const SCNiFAST16 = "i" +const SCNiFAST32 = "i" +const SCNiFAST8 = "hhi" +const SCNiLEAST16 = "hi" +const SCNiLEAST32 = "i" +const SCNiLEAST8 = "hhi" +const SCNo16 = "ho" +const SCNo32 = "o" +const SCNo8 = "hho" +const SCNoFAST16 = "o" +const SCNoFAST32 = "o" +const SCNoFAST8 = "hho" +const SCNoLEAST16 = "ho" +const SCNoLEAST32 = "o" +const SCNoLEAST8 = "hho" +const SCNu16 = "hu" +const SCNu32 = "u" +const SCNu8 = "hhu" +const SCNuFAST16 = "u" +const SCNuFAST32 = "u" +const SCNuFAST8 = "hhu" +const SCNuLEAST16 = "hu" +const SCNuLEAST32 = "u" +const SCNuLEAST8 = "hhu" +const SCNx16 = "hx" +const SCNx32 = "x" +const SCNx8 = "hhx" +const SCNxFAST16 = "x" +const SCNxFAST32 = "x" +const SCNxFAST8 = "hhx" +const SCNxLEAST16 = "hx" +const SCNxLEAST32 = "x" +const SCNxLEAST8 = "hhx" +const SERVFAIL = 0 +const STATUS = 0 +const S_ADDT = 0 +const S_PREREQ = 0 +const S_UPDATE = 0 +const S_ZONE = 0 +const T_A = 0 +const T_A6 = 0 +const T_AAAA = 0 +const T_AFSDB = 0 +const T_ANY = 0 +const T_ATMA = 0 +const T_AVC = 0 +const T_AXFR = 0 +const T_CAA = 0 +const T_CDNSKEY = 0 +const T_CDS = 0 +const T_CNAME = 0 +const T_CSYNC = 0 +const T_DHCID = 0 +const T_DLV = 0 +const T_DNAME = 0 +const T_DNSKEY = 0 +const T_DS = 0 +const T_EID = 0 +const T_EUI48 = 0 +const T_EUI64 = 0 +const T_GID = 0 +const T_GPOS = 0 +const T_HINFO = 0 +const T_HIP = 0 +const T_IPSECKEY = 0 +const T_ISDN = 0 +const T_IXFR = 0 +const T_KEY = 0 +const T_L32 = 0 +const T_L64 = 0 +const T_LOC = 0 +const T_LP = 0 +const T_MAILA = 0 +const T_MAILB = 0 +const T_MB = 0 +const T_MD = 0 +const T_MF = 0 +const T_MG = 0 +const T_MINFO = 0 +const T_MR = 0 +const T_MX = 0 +const T_NAPTR = 0 +const T_NID = 0 +const T_NIMLOC = 0 +const T_NINFO = 0 +const T_NS = 0 +const T_NSAP = 0 +const T_NSAP_PTR = 0 +const T_NSEC = 0 +const T_NSEC3 = 0 +const T_NSEC3PARAM = 0 +const T_NULL = 0 +const T_NXT = 0 +const T_OPENPGPKEY = 0 +const T_PTR = 0 +const T_PX = 0 +const T_RKEY = 0 +const T_RP = 0 +const T_RRSIG = 0 +const T_RT = 0 +const T_SIG = 0 +const T_SMIMEA = 0 +const T_SOA = 0 +const T_SPF = 0 +const T_SRV = 0 +const T_SSHFP = 0 +const T_TA = 0 +const T_TALINK = 0 +const T_TKEY = 0 +const T_TLSA = 0 +const T_TSIG = 0 +const T_TXT = 0 +const T_UID = 0 +const T_UINFO = 0 +const T_UNSPEC = 0 +const T_URI = 0 +const T_WKS = 0 +const T_X25 = 0 +const YXDOMAIN = 0 +const YXRRSET = 0 +const _PATH_RESCONF = "/etc/resolv.conf" +const __BIND = 19950621 +const __NAMESER = 19991006 +const __PRI64 = "l" +const __PRIPTR = "l" +const __RES = 19960801 +const __UAPI_DEF_IN6_ADDR = 0 +const __UAPI_DEF_IN6_ADDR_ALT = 0 +const __UAPI_DEF_IN6_PKTINFO = 0 +const __UAPI_DEF_IN_ADDR = 0 +const __UAPI_DEF_IN_CLASS = 0 +const __UAPI_DEF_IN_IPPROTO = 0 +const __UAPI_DEF_IN_PKTINFO = 0 +const __UAPI_DEF_IP6_MTUINFO = 0 +const __UAPI_DEF_IPPROTO_V6 = 0 +const __UAPI_DEF_IPV6_MREQ = 0 +const __UAPI_DEF_IPV6_OPTIONS = 0 +const __UAPI_DEF_IP_MREQ = 0 +const __UAPI_DEF_SOCKADDR_IN = 0 +const __UAPI_DEF_SOCKADDR_IN6 = 0 +const _res = 0 + +type Tns_sect = int32 + +type ___ns_sect = int32 + +const _ns_s_qd = 0 +const _ns_s_zn = 0 +const _ns_s_an = 1 +const _ns_s_pr = 1 +const _ns_s_ns = 2 +const _ns_s_ud = 2 +const _ns_s_ar = 3 +const _ns_s_max = 4 + +type Tns_msg = struct { + F_msg uintptr + F_eom uintptr + F_id Tuint16_t + F_flags Tuint16_t + F_counts [4]Tuint16_t + F_sections [4]uintptr + F_sect Tns_sect + F_rrnum int32 + F_msg_ptr uintptr +} + +type t__ns_msg = Tns_msg + +type T_ns_flagdata = struct { + Fmask int32 + Fshift int32 +} + +type Tns_rr = struct { + Fname [1025]uint8 + Ftype1 Tuint16_t + Frr_class Tuint16_t + Fttl Tuint32_t + Frdlength Tuint16_t + Frdata uintptr +} + +type t__ns_rr = Tns_rr + +type Tns_flag = int32 + +type ___ns_flag = int32 + +const _ns_f_qr = 0 +const _ns_f_opcode = 1 +const _ns_f_aa = 2 +const _ns_f_tc = 3 +const _ns_f_rd = 4 +const _ns_f_ra = 5 +const _ns_f_z = 6 +const _ns_f_ad = 7 +const _ns_f_cd = 8 +const _ns_f_rcode = 9 +const _ns_f_max = 10 + +type Tns_opcode = int32 + +type ___ns_opcode = int32 + +const _ns_o_query = 0 +const _ns_o_iquery = 1 +const _ns_o_status = 2 +const _ns_o_notify = 4 +const _ns_o_update = 5 +const _ns_o_max = 6 + +type Tns_rcode = int32 + +type ___ns_rcode = int32 + +const _ns_r_noerror = 0 +const _ns_r_formerr = 1 +const _ns_r_servfail = 2 +const _ns_r_nxdomain = 3 +const _ns_r_notimpl = 4 +const _ns_r_refused = 5 +const _ns_r_yxdomain = 6 +const _ns_r_yxrrset = 7 +const _ns_r_nxrrset = 8 +const _ns_r_notauth = 9 +const _ns_r_notzone = 10 +const _ns_r_max = 11 +const _ns_r_badvers = 16 +const _ns_r_badsig = 16 +const _ns_r_badkey = 17 +const _ns_r_badtime = 18 + +type Tns_update_operation = int32 + +type ___ns_update_operation = int32 + +const _ns_uop_delete = 0 +const _ns_uop_add = 1 +const _ns_uop_max = 2 + +type Tns_tsig_key = struct { + Fname [1025]uint8 + Falg [1025]uint8 + Fdata uintptr + Flen1 int32 +} + +type Tns_tcp_tsig_state = struct { + Fcounter int32 + Fkey uintptr + Fctx uintptr + Fsig [512]uint8 + Fsiglen int32 +} + +type Tns_type = int32 + +type ___ns_type = int32 + +const _ns_t_invalid = 0 +const _ns_t_a = 1 +const _ns_t_ns = 2 +const _ns_t_md = 3 +const _ns_t_mf = 4 +const _ns_t_cname = 5 +const _ns_t_soa = 6 +const _ns_t_mb = 7 +const _ns_t_mg = 8 +const _ns_t_mr = 9 +const _ns_t_null = 10 +const _ns_t_wks = 11 +const _ns_t_ptr = 12 +const _ns_t_hinfo = 13 +const _ns_t_minfo = 14 +const _ns_t_mx = 15 +const _ns_t_txt = 16 +const _ns_t_rp = 17 +const _ns_t_afsdb = 18 +const _ns_t_x25 = 19 +const _ns_t_isdn = 20 +const _ns_t_rt = 21 +const _ns_t_nsap = 22 +const _ns_t_nsap_ptr = 23 +const _ns_t_sig = 24 +const _ns_t_key = 25 +const _ns_t_px = 26 +const _ns_t_gpos = 27 +const _ns_t_aaaa = 28 +const _ns_t_loc = 29 +const _ns_t_nxt = 30 +const _ns_t_eid = 31 +const _ns_t_nimloc = 32 +const _ns_t_srv = 33 +const _ns_t_atma = 34 +const _ns_t_naptr = 35 +const _ns_t_kx = 36 +const _ns_t_cert = 37 +const _ns_t_a6 = 38 +const _ns_t_dname = 39 +const _ns_t_sink = 40 +const _ns_t_opt = 41 +const _ns_t_apl = 42 +const _ns_t_ds = 43 +const _ns_t_sshfp = 44 +const _ns_t_ipseckey = 45 +const _ns_t_rrsig = 46 +const _ns_t_nsec = 47 +const _ns_t_dnskey = 48 +const _ns_t_dhcid = 49 +const _ns_t_nsec3 = 50 +const _ns_t_nsec3param = 51 +const _ns_t_tlsa = 52 +const _ns_t_smimea = 53 +const _ns_t_hip = 55 +const _ns_t_ninfo = 56 +const _ns_t_rkey = 57 +const _ns_t_talink = 58 +const _ns_t_cds = 59 +const _ns_t_cdnskey = 60 +const _ns_t_openpgpkey = 61 +const _ns_t_csync = 62 +const _ns_t_spf = 99 +const _ns_t_uinfo = 100 +const _ns_t_uid = 101 +const _ns_t_gid = 102 +const _ns_t_unspec = 103 +const _ns_t_nid = 104 +const _ns_t_l32 = 105 +const _ns_t_l64 = 106 +const _ns_t_lp = 107 +const _ns_t_eui48 = 108 +const _ns_t_eui64 = 109 +const _ns_t_tkey = 249 +const _ns_t_tsig = 250 +const _ns_t_ixfr = 251 +const _ns_t_axfr = 252 +const _ns_t_mailb = 253 +const _ns_t_maila = 254 +const _ns_t_any = 255 +const _ns_t_zxfr = 256 +const _ns_t_uri = 256 +const _ns_t_caa = 257 +const _ns_t_avc = 258 +const _ns_t_ta = 32768 +const _ns_t_dlv = 32769 +const _ns_t_max = 65536 + +type Tns_class = int32 + +type ___ns_class = int32 + +const _ns_c_invalid = 0 +const _ns_c_in = 1 +const _ns_c_2 = 2 +const _ns_c_chaos = 3 +const _ns_c_hs = 4 +const _ns_c_none = 254 +const _ns_c_any = 255 +const _ns_c_max = 65536 + +type Tns_key_types = int32 + +type ___ns_key_types = int32 + +const _ns_kt_rsa = 1 +const _ns_kt_dh = 2 +const _ns_kt_dsa = 3 +const _ns_kt_private = 254 + +type Tns_cert_types = int32 + +type ___ns_cert_types = int32 + +const _cert_t_pkix = 1 +const _cert_t_spki = 2 +const _cert_t_pgp = 3 +const _cert_t_url = 253 +const _cert_t_oid = 254 + +type THEADER = struct { + F__ccgo0 uint32 + F__ccgo4 uint32 + F__ccgo8 uint32 +} + +type Timaxdiv_t = struct { + Fquot Tintmax_t + Frem Tintmax_t +} + +type Tin_port_t = uint16 + +type Tin_addr_t = uint32 + +type Tin_addr = struct { + Fs_addr Tin_addr_t +} + +type Tsockaddr_in = struct { + Fsin_family Tsa_family_t + Fsin_port Tin_port_t + Fsin_addr Tin_addr + Fsin_zero [8]Tuint8_t +} + +type Tin6_addr = struct { + F__in6_union struct { + F__s6_addr16 [0][8]Tuint16_t + F__s6_addr32 [0][4]Tuint32_t + F__s6_addr [16]Tuint8_t + } +} + +type Tsockaddr_in6 = struct { + Fsin6_family Tsa_family_t + Fsin6_port Tin_port_t + Fsin6_flowinfo Tuint32_t + Fsin6_addr Tin6_addr + Fsin6_scope_id Tuint32_t +} + +type Tipv6_mreq = struct { + Fipv6mr_multiaddr Tin6_addr + Fipv6mr_interface uint32 +} + +type Tip_opts = struct { + Fip_dst Tin_addr + Fip_opts [40]uint8 +} + +type Tres_state = uintptr + +type t__res_state = struct { + Fretrans int32 + Fretry int32 + Foptions uint64 + Fnscount int32 + Fnsaddr_list [3]Tsockaddr_in + Fid uint16 + Fdnsrch [7]uintptr + Fdefdname [256]uint8 + Fpfcode uint64 + F__ccgo392 uint32 + Fsort_list [10]struct { + Faddr Tin_addr + Fmask Tuint32_t + } + Fqhook uintptr + Frhook uintptr + Fres_h_errno int32 + F_vcsock int32 + F_flags uint32 + F_u struct { + F_ext [0]struct { + Fnscount Tuint16_t + Fnsmap [3]Tuint16_t + Fnssocks [3]int32 + Fnscount6 Tuint16_t + Fnsinit Tuint16_t + Fnsaddrs [3]uintptr + F_initstamp [2]uint32 + } + Fpad [52]uint8 + F__ccgo_pad2 [4]byte + } +} + +type Tres_sym = struct { + Fnumber int32 + Fname uintptr + Fhumanname uintptr +} + +/* RFC 1035 message compression */ + +// C documentation +// +// /* label start offsets of a compressed domain name s */ +func _getoffs(tls *TLS, offs uintptr, base uintptr, s uintptr) (r int32) { + var i, v2 int32 + _, _ = i, v2 + i = 0 + for { + for Int32FromUint8(**(**uint8)(__ccgo_up(s)))&int32(0xc0) != 0 { + if Int32FromUint8(**(**uint8)(__ccgo_up(s)))&int32(0xc0) != int32(0xc0) { + return 0 + } + s = base + uintptr(Int32FromUint8(**(**uint8)(__ccgo_up(s)))&Int32FromInt32(0x3f)<= int64(0x4000) { + return 0 + } + v2 = i + i = i + 1 + **(**int16)(__ccgo_up(offs + uintptr(v2)*2)) = int16(int64(s) - int64(base)) + s = s + uintptr(Int32FromUint8(**(**uint8)(__ccgo_up(s)))+int32(1)) + goto _1 + _1: + } + return r +} + +// C documentation +// +// /* label lengths of an ascii domain name s */ +func _getlens(tls *TLS, lens uintptr, s uintptr, l int32) (r int32) { + var i, j, k, v3 int32 + _, _, _, _ = i, j, k, v3 + i = 0 + j = 0 + k = 0 + for { + for { + if !(j < l && Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(j)))) != int32('.')) { + break + } + goto _2 + _2: + ; + j = j + 1 + } + if Uint32FromInt32(j-k)-uint32(1) > uint32(62) { + return 0 + } + v3 = i + i = i + 1 + **(**uint8)(__ccgo_up(lens + uintptr(v3))) = Uint8FromInt32(j - k) + if j == l { + return i + } + j = j + 1 + v3 = j + k = v3 + goto _1 + _1: + } + return r +} + +// C documentation +// +// /* longest suffix match of an ascii domain with a compressed domain name dn */ +func _match(tls *TLS, offset uintptr, base uintptr, dn uintptr, end uintptr, lens uintptr, nlen int32) (r int32) { + bp := tls.Alloc(256) + defer tls.Free(256) + var l, m, noff, o, v2 int32 + var _ /* offs at bp+0 */ [128]int16 + _, _, _, _, _ = l, m, noff, o, v2 + m = 0 + noff = _getoffs(tls, bp, base, dn) + if !(noff != 0) { + return 0 + } + for { + nlen = nlen - 1 + v2 = nlen + l = Int32FromUint8(**(**uint8)(__ccgo_up(lens + uintptr(v2)))) + noff = noff - 1 + v2 = noff + o = int32((**(**[128]int16)(__ccgo_up(bp)))[v2]) + end = end - uintptr(l) + if l != Int32FromUint8(**(**uint8)(__ccgo_up(base + uintptr(o)))) || Xmemcmp(tls, base+uintptr(o)+uintptr(1), end, Uint64FromInt32(l)) != 0 { + return m + } + **(**int32)(__ccgo_up(offset)) = o + m = m + l + if nlen != 0 { + m = m + 1 + } + if !(nlen != 0) || !(noff != 0) { + return m + } + end = end - 1 + goto _1 + _1: + } + return r +} + +func Xdn_comp(tls *TLS, src uintptr, dst uintptr, space int32, dnptrs uintptr, lastdnptr uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v src=%v dst=%v space=%v dnptrs=%v lastdnptr=%v, (%v:)", tls, src, dst, space, dnptrs, lastdnptr, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(144) + defer tls.Free(144) + var bestlen, bestoff, i, j, m, n, v3 int32 + var end, p, v8 uintptr + var l Tsize_t + var _ /* lens at bp+4 */ [127]uint8 + var _ /* offset at bp+0 */ int32 + _, _, _, _, _, _, _, _, _, _, _ = bestlen, bestoff, end, i, j, l, m, n, p, v3, v8 + m = 0 + bestlen = 0 + l = Xstrnlen(tls, src, uint64(255)) + if l != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(src + uintptr(l-uint64(1))))) == int32('.') { + l = l - 1 + } + if l > uint64(253) || space <= 0 { + return -int32(1) + } + if !(l != 0) { + **(**uint8)(__ccgo_up(dst)) = uint8(0) + return int32(1) + } + end = src + uintptr(l) + n = _getlens(tls, bp+4, src, Int32FromUint64(l)) + if !(n != 0) { + return -int32(1) + } + p = dnptrs + if p != 0 && **(**uintptr)(__ccgo_up(p)) != 0 { + p += 8 + for { + if !(**(**uintptr)(__ccgo_up(p)) != 0) { + break + } + m = _match(tls, bp, **(**uintptr)(__ccgo_up(dnptrs)), **(**uintptr)(__ccgo_up(p)), end, bp+4, n) + if m > bestlen { + bestlen = m + bestoff = **(**int32)(__ccgo_up(bp)) + if Uint64FromInt32(m) == l { + break + } + } + goto _1 + _1: + ; + p += 8 + } + } + /* encode unmatched part */ + if Uint64FromInt32(space) < l-Uint64FromInt32(bestlen)+uint64(2)+BoolUint64(Uint64FromInt32(bestlen-Int32FromInt32(1)) < l-Uint64FromInt32(1)) { + return -int32(1) + } + Xmemcpy(tls, dst+uintptr(1), src, l-Uint64FromInt32(bestlen)) + v3 = Int32FromInt32(0) + j = v3 + i = v3 + for { + if !(Uint64FromInt32(i) < l-Uint64FromInt32(bestlen)) { + break + } + **(**uint8)(__ccgo_up(dst + uintptr(i))) = (**(**[127]uint8)(__ccgo_up(bp + 4)))[j] + goto _2 + _2: + ; + v3 = j + j = j + 1 + i = i + (Int32FromUint8((**(**[127]uint8)(__ccgo_up(bp + 4)))[v3]) + int32(1)) + } + /* add tail */ + if bestlen != 0 { + v3 = i + i = i + 1 + **(**uint8)(__ccgo_up(dst + uintptr(v3))) = Uint8FromInt32(int32(0xc0) | bestoff>>int32(8)) + v3 = i + i = i + 1 + **(**uint8)(__ccgo_up(dst + uintptr(v3))) = Uint8FromInt32(bestoff) + } else { + v3 = i + i = i + 1 + **(**uint8)(__ccgo_up(dst + uintptr(v3))) = uint8(0) + } + /* save dst pointer */ + if i > int32(2) && lastdnptr != 0 && dnptrs != 0 && **(**uintptr)(__ccgo_up(dnptrs)) != 0 { + for **(**uintptr)(__ccgo_up(p)) != 0 { + p += 8 + } + if p+uintptr(1)*8 < lastdnptr { + v8 = p + p += 8 + **(**uintptr)(__ccgo_up(v8)) = dst + **(**uintptr)(__ccgo_up(p)) = uintptr(0) + } + } + return i +} + +func X__dn_expand(tls *TLS, base uintptr, end uintptr, src uintptr, dest uintptr, space int32) (r int32) { + if __ccgo_strace { + trc("tls=%v base=%v end=%v src=%v dest=%v space=%v, (%v:)", tls, base, end, src, dest, space, origin(2)) + defer func() { trc("-> %v", r) }() + } + var dbegin, dend, p, v3, v4 uintptr + var i, j, len1, v1 int32 + _, _, _, _, _, _, _, _, _ = dbegin, dend, i, j, len1, p, v1, v3, v4 + p = src + dbegin = dest + len1 = -int32(1) + if p == end || space <= 0 { + return -int32(1) + } + if space > int32(254) { + v1 = int32(254) + } else { + v1 = space + } + dend = dest + uintptr(v1) + /* detect reference loop using an iteration counter */ + i = 0 + for { + if !(int64(i) < int64(end)-int64(base)) { + break + } + /* loop invariants: p= int64(end)-int64(base) { + return -int32(1) + } + p = base + uintptr(j) + } else { + if **(**uint8)(__ccgo_up(p)) != 0 { + if dest != dbegin { + v3 = dest + dest = dest + 1 + **(**uint8)(__ccgo_up(v3)) = uint8('.') + } + v3 = p + p = p + 1 + j = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + if int64(j) >= int64(end)-int64(p) || int64(j) >= int64(dend)-int64(dest) { + return -int32(1) + } + for { + v1 = j + j = j - 1 + if !(v1 != 0) { + break + } + v3 = dest + dest = dest + 1 + v4 = p + p = p + 1 + **(**uint8)(__ccgo_up(v3)) = uint8(**(**uint8)(__ccgo_up(v4))) + } + } else { + **(**uint8)(__ccgo_up(dest)) = uint8(0) + if len1 < 0 { + len1 = int32(int64(p+uintptr(1)) - int64(src)) + } + return len1 + } + } + goto _2 + _2: + ; + i = i + int32(2) + } + return -int32(1) +} + +func Xdn_expand(tls *TLS, base uintptr, end uintptr, src uintptr, dest uintptr, space int32) (r int32) { + if __ccgo_strace { + trc("tls=%v base=%v end=%v src=%v dest=%v space=%v, (%v:)", tls, base, end, src, dest, space, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__dn_expand(tls, base, end, src, dest, space) +} + +func Xdn_skipname(tls *TLS, s uintptr, end uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v end=%v, (%v:)", tls, s, end, origin(2)) + defer func() { trc("-> %v", r) }() + } + var p uintptr + _ = p + p = s + for p < end { + if !(**(**uint8)(__ccgo_up(p)) != 0) { + return int32(int64(p) - int64(s) + int64(1)) + } else { + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) >= int32(192) { + if p+uintptr(1) < end { + return int32(int64(p) - int64(s) + int64(2)) + } else { + break + } + } else { + if int64(end)-int64(p) < int64(Int32FromUint8(**(**uint8)(__ccgo_up(p)))+int32(1)) { + break + } else { + p = p + uintptr(Int32FromUint8(**(**uint8)(__ccgo_up(p)))+int32(1)) + } + } + } + } + return -int32(1) +} + +const AI_ADDRCONFIG = 32 +const AI_ALL = 16 +const AI_CANONNAME = 2 +const AI_NUMERICHOST = 4 +const AI_NUMERICSERV = 1024 +const AI_PASSIVE = 1 +const AI_V4MAPPED = 8 +const EAI_AGAIN = -3 +const EAI_BADFLAGS = -1 +const EAI_FAIL = -4 +const EAI_FAMILY = -6 +const EAI_MEMORY = -10 +const EAI_NODATA = -5 +const EAI_NONAME = -2 +const EAI_OVERFLOW = -12 +const EAI_SERVICE = -8 +const EAI_SOCKTYPE = -7 +const EAI_SYSTEM = -11 +const MAXADDRS = 48 +const MAXSERVS = 2 +const NI_DGRAM = 16 +const NI_NAMEREQD = 8 +const NI_NOFQDN = 4 +const NI_NUMERICHOST = 1 +const NI_NUMERICSCOPE = 256 +const NI_NUMERICSERV = 2 + +type Taddrinfo = struct { + Fai_flags int32 + Fai_family int32 + Fai_socktype int32 + Fai_protocol int32 + Fai_addrlen Tsocklen_t + Fai_addr uintptr + Fai_canonname uintptr + Fai_next uintptr +} + +type Tnetent = struct { + Fn_name uintptr + Fn_aliases uintptr + Fn_addrtype int32 + Fn_net Tuint32_t +} + +type Thostent = struct { + Fh_name uintptr + Fh_aliases uintptr + Fh_addrtype int32 + Fh_length int32 + Fh_addr_list uintptr +} + +type Tservent = struct { + Fs_name uintptr + Fs_aliases uintptr + Fs_port int32 + Fs_proto uintptr +} + +type Tprotoent = struct { + Fp_name uintptr + Fp_aliases uintptr + Fp_proto int32 +} + +type Taibuf = struct { + Fai Taddrinfo + Fsa Tsa + Flock [1]int32 + Fslot int16 + Fref int16 +} + +type Taddress = struct { + Ffamily int32 + Fscopeid uint32 + Faddr [16]Tuint8_t + Fsortkey int32 +} + +type Tservice = struct { + Fport Tuint16_t + Fproto uint8 + Fsocktype uint8 +} + +type Tresolvconf = struct { + Fns [3]Taddress + Fnns uint32 + Fattempts uint32 + Fndots uint32 + Ftimeout uint32 +} + +type t__ccgo_fp__X__dns_parse_2 = func(*TLS, uintptr, int32, uintptr, int32, uintptr, int32) int32 + +func X__dns_parse(tls *TLS, r uintptr, rlen int32, __ccgo_fp_callback uintptr, ctx uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v r=%v rlen=%v __ccgo_fp_callback=%v ctx=%v, (%v:)", tls, r, rlen, __ccgo_fp_callback, ctx, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var ancount, len1, qdcount, v1 int32 + var p uintptr + _, _, _, _, _ = ancount, len1, p, qdcount, v1 + if rlen < int32(12) { + return -int32(1) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(r + 3)))&int32(15) != 0 { + return 0 + } + p = r + uintptr(12) + qdcount = Int32FromUint8(**(**uint8)(__ccgo_up(r + 4)))*int32(256) + Int32FromUint8(**(**uint8)(__ccgo_up(r + 5))) + ancount = Int32FromUint8(**(**uint8)(__ccgo_up(r + 6)))*int32(256) + Int32FromUint8(**(**uint8)(__ccgo_up(r + 7))) + for { + v1 = qdcount + qdcount = qdcount - 1 + if !(v1 != 0) { + break + } + for int64(p)-int64(r) < int64(rlen) && uint32(**(**uint8)(__ccgo_up(p)))-uint32(1) < uint32(127) { + p = p + 1 + } + if p > r+uintptr(rlen)-uintptr(6) { + return -int32(1) + } + p = p + uintptr(int32(5)+BoolInt32(!!(**(**uint8)(__ccgo_up(p)) != 0))) + } + for { + v1 = ancount + ancount = ancount - 1 + if !(v1 != 0) { + break + } + for int64(p)-int64(r) < int64(rlen) && uint32(**(**uint8)(__ccgo_up(p)))-uint32(1) < uint32(127) { + p = p + 1 + } + if p > r+uintptr(rlen)-uintptr(12) { + return -int32(1) + } + p = p + uintptr(int32(1)+BoolInt32(!!(**(**uint8)(__ccgo_up(p)) != 0))) + len1 = Int32FromUint8(**(**uint8)(__ccgo_up(p + 8)))*int32(256) + Int32FromUint8(**(**uint8)(__ccgo_up(p + 9))) + if int64(len1+int32(10)) > int64(r+uintptr(rlen))-int64(p) { + return -int32(1) + } + if (*(*func(*TLS, uintptr, int32, uintptr, int32, uintptr, int32) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_callback})))(tls, ctx, Int32FromUint8(**(**uint8)(__ccgo_up(p + 1))), p+uintptr(10), len1, r, rlen) < 0 { + return -int32(1) + } + p = p + uintptr(int32(10)+len1) + } + return 0 +} + +type Tsa = struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte +} + +func Xsethostent(tls *TLS, x int32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + } +} + +func Xgethostent(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(0) +} + +func Xgetnetent(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(0) +} + +func Xendhostent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } +} + +func Xendnetent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + Xendhostent(tls) +} + +func Xsetnetent(tls *TLS, x int32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + } + Xsethostent(tls, x) +} + +const ARPD_FLUSH = 3 +const ARPD_LOOKUP = 2 +const ARPD_UPDATE = 1 +const ARPHRD_6LOWPAN = 825 +const ARPHRD_ADAPT = 264 +const ARPHRD_APPLETLK = 8 +const ARPHRD_ARCNET = 7 +const ARPHRD_ASH = 781 +const ARPHRD_ATM = 19 +const ARPHRD_AX25 = 3 +const ARPHRD_BIF = 775 +const ARPHRD_CAIF = 822 +const ARPHRD_CAN = 280 +const ARPHRD_CHAOS = 5 +const ARPHRD_CISCO = 513 +const ARPHRD_CSLIP = 257 +const ARPHRD_CSLIP6 = 259 +const ARPHRD_DDCMP = 517 +const ARPHRD_DLCI = 15 +const ARPHRD_ECONET = 782 +const ARPHRD_EETHER = 2 +const ARPHRD_ETHER = 1 +const ARPHRD_EUI64 = 27 +const ARPHRD_FCAL = 785 +const ARPHRD_FCFABRIC = 787 +const ARPHRD_FCPL = 786 +const ARPHRD_FCPP = 784 +const ARPHRD_FDDI = 774 +const ARPHRD_FRAD = 770 +const ARPHRD_HDLC = 513 +const ARPHRD_HIPPI = 780 +const ARPHRD_HWX25 = 272 +const ARPHRD_IEEE1394 = 24 +const ARPHRD_IEEE802 = 6 +const ARPHRD_IEEE80211 = 801 +const ARPHRD_IEEE80211_PRISM = 802 +const ARPHRD_IEEE80211_RADIOTAP = 803 +const ARPHRD_IEEE802154 = 804 +const ARPHRD_IEEE802154_MONITOR = 805 +const ARPHRD_IEEE802_TR = 800 +const ARPHRD_INFINIBAND = 32 +const ARPHRD_IP6GRE = 823 +const ARPHRD_IPDDP = 777 +const ARPHRD_IPGRE = 778 +const ARPHRD_IRDA = 783 +const ARPHRD_LAPB = 516 +const ARPHRD_LOCALTLK = 773 +const ARPHRD_LOOPBACK = 772 +const ARPHRD_METRICOM = 23 +const ARPHRD_NETLINK = 824 +const ARPHRD_NETROM = 0 +const ARPHRD_NONE = 65534 +const ARPHRD_PHONET = 820 +const ARPHRD_PHONET_PIPE = 821 +const ARPHRD_PIMREG = 779 +const ARPHRD_PPP = 512 +const ARPHRD_PRONET = 4 +const ARPHRD_RAWHDLC = 518 +const ARPHRD_RAWIP = 519 +const ARPHRD_ROSE = 270 +const ARPHRD_RSRVD = 260 +const ARPHRD_SIT = 776 +const ARPHRD_SKIP = 771 +const ARPHRD_SLIP = 256 +const ARPHRD_SLIP6 = 258 +const ARPHRD_TUNNEL = 768 +const ARPHRD_TUNNEL6 = 769 +const ARPHRD_VOID = 65535 +const ARPHRD_VSOCKMON = 826 +const ARPHRD_X25 = 271 +const ARPOP_InREPLY = 9 +const ARPOP_InREQUEST = 8 +const ARPOP_NAK = 10 +const ARPOP_REPLY = 2 +const ARPOP_REQUEST = 1 +const ARPOP_RREPLY = 4 +const ARPOP_RREQUEST = 3 +const ATF_COM = 2 +const ATF_DONTPUB = 64 +const ATF_MAGIC = 128 +const ATF_NETMASK = 32 +const ATF_PERM = 4 +const ATF_PUBL = 8 +const ATF_USETRAILERS = 16 +const ETHERMIN = 46 +const ETHERMTU = 1500 +const ETHERTYPE_AARP = 33011 +const ETHERTYPE_ARP = 2054 +const ETHERTYPE_AT = 32923 +const ETHERTYPE_IP = 2048 +const ETHERTYPE_IPV6 = 34525 +const ETHERTYPE_IPX = 33079 +const ETHERTYPE_LOOPBACK = 36864 +const ETHERTYPE_NTRAILER = 16 +const ETHERTYPE_PUP = 512 +const ETHERTYPE_REVARP = 32821 +const ETHERTYPE_SPRITE = 1280 +const ETHERTYPE_TRAIL = 4096 +const ETHERTYPE_VLAN = 33024 +const ETHER_ADDR_LEN = 6 +const ETHER_CRC_LEN = 4 +const ETHER_HDR_LEN = 14 +const ETHER_MAX_LEN = 1518 +const ETHER_MIN_LEN = 64 +const ETHER_TYPE_LEN = 2 +const ETH_ALEN = 6 +const ETH_DATA_LEN = 1500 +const ETH_FCS_LEN = 4 +const ETH_FRAME_LEN = 1514 +const ETH_HLEN = 14 +const ETH_MAX_MTU = 65535 +const ETH_MIN_MTU = 68 +const ETH_P_1588 = 35063 +const ETH_P_8021AD = 34984 +const ETH_P_8021AH = 35047 +const ETH_P_8021Q = 33024 +const ETH_P_80221 = 35095 +const ETH_P_802_2 = 4 +const ETH_P_802_3 = 1 +const ETH_P_802_3_MIN = 1536 +const ETH_P_802_EX1 = 34997 +const ETH_P_AARP = 33011 +const ETH_P_AF_IUCV = 64507 +const ETH_P_ALL = 3 +const ETH_P_AOE = 34978 +const ETH_P_ARCNET = 26 +const ETH_P_ARP = 2054 +const ETH_P_ATALK = 32923 +const ETH_P_ATMFATE = 34948 +const ETH_P_ATMMPOA = 34892 +const ETH_P_AX25 = 2 +const ETH_P_BATMAN = 17157 +const ETH_P_BPQ = 2303 +const ETH_P_CAIF = 247 +const ETH_P_CAN = 12 +const ETH_P_CANFD = 13 +const ETH_P_CFM = 35074 +const ETH_P_CONTROL = 22 +const ETH_P_CUST = 24582 +const ETH_P_DDCMP = 6 +const ETH_P_DEC = 24576 +const ETH_P_DIAG = 24581 +const ETH_P_DNA_DL = 24577 +const ETH_P_DNA_RC = 24578 +const ETH_P_DNA_RT = 24579 +const ETH_P_DSA = 27 +const ETH_P_DSA_8021Q = 56027 +const ETH_P_ECONET = 24 +const ETH_P_EDSA = 56026 +const ETH_P_ERSPAN = 35006 +const ETH_P_ERSPAN2 = 8939 +const ETH_P_FCOE = 35078 +const ETH_P_FIP = 35092 +const ETH_P_HDLC = 25 +const ETH_P_HSR = 35119 +const ETH_P_IBOE = 35093 +const ETH_P_IEEE802154 = 246 +const ETH_P_IEEEPUP = 2560 +const ETH_P_IEEEPUPAT = 2561 +const ETH_P_IFE = 60734 +const ETH_P_IP = 2048 +const ETH_P_IPV6 = 34525 +const ETH_P_IPX = 33079 +const ETH_P_IRDA = 23 +const ETH_P_LAT = 24580 +const ETH_P_LINK_CTL = 34924 +const ETH_P_LLDP = 35020 +const ETH_P_LOCALTALK = 9 +const ETH_P_LOOP = 96 +const ETH_P_LOOPBACK = 36864 +const ETH_P_MACSEC = 35045 +const ETH_P_MAP = 249 +const ETH_P_MOBITEX = 21 +const ETH_P_MPLS_MC = 34888 +const ETH_P_MPLS_UC = 34887 +const ETH_P_MRP = 35043 +const ETH_P_MVRP = 35061 +const ETH_P_NCSI = 35064 +const ETH_P_NSH = 35151 +const ETH_P_PAE = 34958 +const ETH_P_PAUSE = 34824 +const ETH_P_PHONET = 245 +const ETH_P_PPPTALK = 16 +const ETH_P_PPP_DISC = 34915 +const ETH_P_PPP_MP = 8 +const ETH_P_PPP_SES = 34916 +const ETH_P_PREAUTH = 35015 +const ETH_P_PRP = 35067 +const ETH_P_PUP = 512 +const ETH_P_PUPAT = 513 +const ETH_P_QINQ1 = 37120 +const ETH_P_QINQ2 = 37376 +const ETH_P_QINQ3 = 37632 +const ETH_P_RARP = 32821 +const ETH_P_SCA = 24583 +const ETH_P_SLOW = 34825 +const ETH_P_SNAP = 5 +const ETH_P_TDLS = 35085 +const ETH_P_TEB = 25944 +const ETH_P_TIPC = 35018 +const ETH_P_TRAILER = 28 +const ETH_P_TR_802_2 = 17 +const ETH_P_TSN = 8944 +const ETH_P_WAN_PPP = 7 +const ETH_P_WCCP = 34878 +const ETH_P_X25 = 2053 +const ETH_P_XDSA = 248 +const ETH_TLEN = 2 +const ETH_ZLEN = 60 +const MAX_ADDR_LEN = 7 +const __UAPI_DEF_ETHHDR = 0 + +type Tethhdr = struct { + Fh_dest [6]Tuint8_t + Fh_source [6]Tuint8_t + Fh_proto Tuint16_t +} + +type Tether_addr = struct { + Fether_addr_octet [6]Tuint8_t +} + +type Tether_header = struct { + Fether_dhost [6]Tuint8_t + Fether_shost [6]Tuint8_t + Fether_type Tuint16_t +} + +type Tarphdr = struct { + Far_hrd Tuint16_t + Far_pro Tuint16_t + Far_hln Tuint8_t + Far_pln Tuint8_t + Far_op Tuint16_t +} + +type Tarpreq = struct { + Farp_pa Tsockaddr + Farp_ha Tsockaddr + Farp_flags int32 + Farp_netmask Tsockaddr + Farp_dev [16]uint8 +} + +type Tarpreq_old = struct { + Farp_pa Tsockaddr + Farp_ha Tsockaddr + Farp_flags int32 + Farp_netmask Tsockaddr +} + +type Tarpd_request = struct { + Freq uint16 + Fip Tuint32_t + Fdev uint64 + Fstamp uint64 + Fupdated uint64 + Fha [7]uint8 +} + +type Tether_arp = struct { + Fea_hdr Tarphdr + Farp_sha [6]Tuint8_t + Farp_spa [4]Tuint8_t + Farp_tha [6]Tuint8_t + Farp_tpa [4]Tuint8_t +} + +func Xether_aton_r(tls *TLS, x uintptr, p_a uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v x=%v p_a=%v, (%v:)", tls, x, p_a, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ii int32 + var n uint64 + var _ /* a at bp+0 */ Tether_addr + var _ /* y at bp+8 */ uintptr + _, _ = ii, n + ii = 0 + for { + if !(ii < int32(6)) { + break + } + if ii != 0 { + if Int32FromUint8(**(**uint8)(__ccgo_up(x))) != int32(':') { + return uintptr(0) + } else { + x = x + 1 + } + } + n = Xstrtoul(tls, x, bp+8, int32(16)) + x = **(**uintptr)(__ccgo_up(bp + 8)) + if n > uint64(0xFF) { + return uintptr(0) + } /* bad byte */ + **(**Tuint8_t)(__ccgo_up(bp + uintptr(ii))) = uint8(n) + goto _1 + _1: + ; + ii = ii + 1 + } + if Int32FromUint8(**(**uint8)(__ccgo_up(x))) != 0 { + return uintptr(0) + } /* bad format */ + **(**Tether_addr)(__ccgo_up(p_a)) = **(**Tether_addr)(__ccgo_up(bp)) + return p_a +} + +func Xether_aton(tls *TLS, x uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xether_aton_r(tls, x, uintptr(unsafe.Pointer(&_a))) +} + +var _a Tether_addr + +func Xether_ntoa_r(tls *TLS, p_a uintptr, x uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v p_a=%v x=%v, (%v:)", tls, p_a, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ii int32 + var y, v2 uintptr + _, _, _ = ii, y, v2 + y = x + ii = 0 + for { + if !(ii < int32(6)) { + break + } + if ii == 0 { + v2 = __ccgo_ts + 1001 + } else { + v2 = __ccgo_ts + 1006 + } + x = x + uintptr(Xsprintf(tls, x, v2, VaList(bp+8, Int32FromUint8(**(**Tuint8_t)(__ccgo_up(p_a + uintptr(ii))))))) + goto _1 + _1: + ; + ii = ii + 1 + } + return y +} + +func Xether_ntoa(tls *TLS, p_a uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v p_a=%v, (%v:)", tls, p_a, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xether_ntoa_r(tls, p_a, uintptr(unsafe.Pointer(&_x))) +} + +var _x [18]uint8 + +func Xether_line(tls *TLS, l uintptr, e uintptr, hostname uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v l=%v e=%v hostname=%v, (%v:)", tls, l, e, hostname, origin(2)) + defer func() { trc("-> %v", r) }() + } + return -int32(1) +} + +func Xether_ntohost(tls *TLS, hostname uintptr, e uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v hostname=%v e=%v, (%v:)", tls, hostname, e, origin(2)) + defer func() { trc("-> %v", r) }() + } + return -int32(1) +} + +func Xether_hostton(tls *TLS, hostname uintptr, e uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v hostname=%v e=%v, (%v:)", tls, hostname, e, origin(2)) + defer func() { trc("-> %v", r) }() + } + return -int32(1) +} + +func Xfreeaddrinfo(tls *TLS, p uintptr) { + if __ccgo_strace { + trc("tls=%v p=%v, (%v:)", tls, p, origin(2)) + } + var b, v2 uintptr + var cnt Tsize_t + _, _, _ = b, cnt, v2 + cnt = uint64(1) + for { + if !((*Taddrinfo)(unsafe.Pointer(p)).Fai_next != 0) { + break + } + goto _1 + _1: + ; + cnt = cnt + 1 + p = (*Taddrinfo)(unsafe.Pointer(p)).Fai_next + } + b = p - uintptr(uint64(UintptrFromInt32(0))) + b = b - uintptr((*Taibuf)(unsafe.Pointer(b)).Fslot)*88 + ___lock(tls, b+76) + v2 = b + 82 + *(*int16)(unsafe.Pointer(v2)) = int16(uint64(*(*int16)(unsafe.Pointer(v2))) - cnt) + if !(*(*int16)(unsafe.Pointer(v2)) != 0) { + Xfree(tls, b) + } else { + ___unlock(tls, b+76) + } +} + +var _msgs = [252]uint8{'I', 'n', 'v', 'a', 'l', 'i', 'd', ' ', 'f', 'l', 'a', 'g', 's', 0, 'N', 'a', 'm', 'e', ' ', 'd', 'o', 'e', 's', ' ', 'n', 'o', 't', ' ', 'r', 'e', 's', 'o', 'l', 'v', 'e', 0, 'T', 'r', 'y', ' ', 'a', 'g', 'a', 'i', 'n', 0, 'N', 'o', 'n', '-', 'r', 'e', 'c', 'o', 'v', 'e', 'r', 'a', 'b', 'l', 'e', ' ', 'e', 'r', 'r', 'o', 'r', 0, 'N', 'a', 'm', 'e', ' ', 'h', 'a', 's', ' ', 'n', 'o', ' ', 'u', 's', 'a', 'b', 'l', 'e', ' ', 'a', 'd', 'd', 'r', 'e', 's', 's', 0, 'U', 'n', 'r', 'e', 'c', 'o', 'g', 'n', 'i', 'z', 'e', 'd', ' ', 'a', 'd', 'd', 'r', 'e', 's', 's', ' ', 'f', 'a', 'm', 'i', 'l', 'y', ' ', 'o', 'r', ' ', 'i', 'n', 'v', 'a', 'l', 'i', 'd', ' ', 'l', 'e', 'n', 'g', 't', 'h', 0, 'U', 'n', 'r', 'e', 'c', 'o', 'g', 'n', 'i', 'z', 'e', 'd', ' ', 's', 'o', 'c', 'k', 'e', 't', ' ', 't', 'y', 'p', 'e', 0, 'U', 'n', 'r', 'e', 'c', 'o', 'g', 'n', 'i', 'z', 'e', 'd', ' ', 's', 'e', 'r', 'v', 'i', 'c', 'e', 0, 'U', 'n', 'k', 'n', 'o', 'w', 'n', ' ', 'e', 'r', 'r', 'o', 'r', 0, 'O', 'u', 't', ' ', 'o', 'f', ' ', 'm', 'e', 'm', 'o', 'r', 'y', 0, 'S', 'y', 's', 't', 'e', 'm', ' ', 'e', 'r', 'r', 'o', 'r', 0, 'O', 'v', 'e', 'r', 'f', 'l', 'o', 'w', 0, 0, 'U', 'n', 'k', 'n', 'o', 'w', 'n', ' ', 'e', 'r', 'r', 'o', 'r'} + +func Xgai_strerror(tls *TLS, ecode int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v ecode=%v, (%v:)", tls, ecode, origin(2)) + defer func() { trc("-> %v", r) }() + } + var s uintptr + _ = s + s = uintptr(unsafe.Pointer(&_msgs)) + ecode = ecode + 1 + for { + if !(ecode != 0 && **(**uint8)(__ccgo_up(s)) != 0) { + break + } + for { + if !(**(**uint8)(__ccgo_up(s)) != 0) { + break + } + goto _2 + _2: + ; + s = s + 1 + } + goto _1 + _1: + ; + ecode = ecode + 1 + s = s + 1 + } + if !(**(**uint8)(__ccgo_up(s)) != 0) { + s = s + 1 + } + return X__lctrans_cur(tls, s) +} + +func Xgetaddrinfo(tls *TLS, host uintptr, serv uintptr, hint uintptr, res uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v host=%v serv=%v hint=%v res=%v, (%v:)", tls, host, serv, hint, res, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(1616) + defer tls.Free(1616) + var canon_len, family, flags, i, j, k, mask, naddrs, nais, no_family, nservs, proto, r, s, saved_errno, socktype, v3 int32 + var out, outcanon uintptr + var ta [2]uintptr + var tf [2]int32 + var tl [2]Tsocklen_t + var v5 uint64 + var _ /* addrs at bp+8 */ [48]Taddress + var _ /* canon at bp+1352 */ [256]uint8 + var _ /* cs at bp+1608 */ int32 + var _ /* ports at bp+0 */ [2]Tservice + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = canon_len, family, flags, i, j, k, mask, naddrs, nais, no_family, nservs, out, outcanon, proto, r, s, saved_errno, socktype, ta, tf, tl, v3, v5 + family = PF_UNSPEC + flags = 0 + proto = 0 + socktype = 0 + no_family = 0 + if !(host != 0) && !(serv != 0) { + return -int32(2) + } + if hint != 0 { + family = (*Taddrinfo)(unsafe.Pointer(hint)).Fai_family + flags = (*Taddrinfo)(unsafe.Pointer(hint)).Fai_flags + proto = (*Taddrinfo)(unsafe.Pointer(hint)).Fai_protocol + socktype = (*Taddrinfo)(unsafe.Pointer(hint)).Fai_socktype + mask = Int32FromInt32(AI_PASSIVE) | Int32FromInt32(AI_CANONNAME) | Int32FromInt32(AI_NUMERICHOST) | Int32FromInt32(AI_V4MAPPED) | Int32FromInt32(AI_ALL) | Int32FromInt32(AI_ADDRCONFIG) | Int32FromInt32(AI_NUMERICSERV) + if flags&mask != flags { + return -int32(1) + } + switch family { + case int32(PF_INET): + fallthrough + case int32(PF_INET6): + fallthrough + case PF_UNSPEC: + default: + return -int32(6) + } + } + if flags&int32(AI_ADDRCONFIG) != 0 { + tf = [2]int32{ + 0: int32(PF_INET), + 1: int32(PF_INET6), + } + ta = [2]uintptr{ + 0: uintptr(unsafe.Pointer(&_lo4)), + 1: uintptr(unsafe.Pointer(&_lo6)), + } + tl = [2]Tsocklen_t{ + 0: uint32(16), + 1: uint32(28), + } + i = 0 + for { + if !(i < int32(2)) { + break + } + if family == tf[int32(1)-i] { + goto _1 + } + s = Xsocket(tls, tf[i], Int32FromInt32(SOCK_CLOEXEC)|Int32FromInt32(SOCK_DGRAM), int32(IPPROTO_UDP)) + if s >= 0 { + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp+1608) + r = Xconnect(tls, s, ta[i], tl[i]) + saved_errno = **(**int32)(__ccgo_up(X__errno_location(tls))) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 1608)), uintptr(0)) + Xclose(tls, s) + if !(r != 0) { + goto _1 + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = saved_errno + } + switch **(**int32)(__ccgo_up(X__errno_location(tls))) { + case int32(EADDRNOTAVAIL): + fallthrough + case int32(EAFNOSUPPORT): + fallthrough + case int32(EHOSTUNREACH): + fallthrough + case int32(ENETDOWN): + fallthrough + case int32(ENETUNREACH): + default: + return -int32(11) + } + if family == tf[i] { + no_family = int32(1) + } + family = tf[int32(1)-i] + goto _1 + _1: + ; + i = i + 1 + } + } + nservs = X__lookup_serv(tls, bp, serv, proto, socktype, flags) + if nservs < 0 { + return nservs + } + naddrs = X__lookup_name(tls, bp+8, bp+1352, host, family, flags) + if naddrs < 0 { + return naddrs + } + if no_family != 0 { + return -int32(5) + } + nais = nservs * naddrs + canon_len = Int32FromUint64(_strlen(tls, bp+1352)) + out = Xcalloc(tls, uint64(1), Uint64FromInt32(nais)*uint64(88)+Uint64FromInt32(canon_len)+uint64(1)) + if !(out != 0) { + return -int32(10) + } + if canon_len != 0 { + outcanon = out + uintptr(nais)*88 + Xmemcpy(tls, outcanon, bp+1352, Uint64FromInt32(canon_len+int32(1))) + } else { + outcanon = uintptr(0) + } + v3 = Int32FromInt32(0) + i = v3 + k = v3 + for { + if !(i < naddrs) { + break + } + j = 0 + for { + if !(j < nservs) { + break + } + (**(**Taibuf)(__ccgo_up(out + uintptr(k)*88))).Fslot = int16(k) + if (**(**[48]Taddress)(__ccgo_up(bp + 8)))[i].Ffamily == int32(PF_INET) { + v5 = uint64(16) + } else { + v5 = uint64(28) + } + (**(**Taibuf)(__ccgo_up(out + uintptr(k)*88))).Fai = Taddrinfo{ + Fai_family: (**(**[48]Taddress)(__ccgo_up(bp + 8)))[i].Ffamily, + Fai_socktype: Int32FromUint8((**(**[2]Tservice)(__ccgo_up(bp)))[j].Fsocktype), + Fai_protocol: Int32FromUint8((**(**[2]Tservice)(__ccgo_up(bp)))[j].Fproto), + Fai_addrlen: uint32(v5), + Fai_addr: out + uintptr(k)*88 + 48, + Fai_canonname: outcanon, + } + if k != 0 { + (**(**Taibuf)(__ccgo_up(out + uintptr(k-int32(1))*88))).Fai.Fai_next = out + uintptr(k)*88 + } + switch (**(**[48]Taddress)(__ccgo_up(bp + 8)))[i].Ffamily { + case int32(PF_INET): + *(*Tsa_family_t)(unsafe.Pointer(out + uintptr(k)*88 + 48)) = uint16(PF_INET) + *(*Tin_port_t)(unsafe.Pointer(out + uintptr(k)*88 + 48 + 2)) = Xhtons(tls, (**(**[2]Tservice)(__ccgo_up(bp)))[j].Fport) + Xmemcpy(tls, out+uintptr(k)*88+48+4, bp+8+uintptr(i)*28+8, uint64(4)) + case int32(PF_INET6): + *(*Tsa_family_t)(unsafe.Pointer(out + uintptr(k)*88 + 48)) = uint16(PF_INET6) + *(*Tin_port_t)(unsafe.Pointer(out + uintptr(k)*88 + 48 + 2)) = Xhtons(tls, (**(**[2]Tservice)(__ccgo_up(bp)))[j].Fport) + *(*Tuint32_t)(unsafe.Pointer(out + uintptr(k)*88 + 48 + 24)) = (**(**[48]Taddress)(__ccgo_up(bp + 8)))[i].Fscopeid + Xmemcpy(tls, out+uintptr(k)*88+48+8, bp+8+uintptr(i)*28+8, uint64(16)) + break + } + goto _4 + _4: + ; + j = j + 1 + k = k + 1 + } + goto _2 + _2: + ; + i = i + 1 + } + (**(**Taibuf)(__ccgo_up(out))).Fref = int16(nais) + **(**uintptr)(__ccgo_up(res)) = out + return 0 +} + +/* Define the "an address is configured" condition for address + * families via ability to create a socket for the family plus + * routability of the loopback address for the family. */ +var _lo4 = Tsockaddr_in{ + Fsin_family: uint16(PF_INET), + Fsin_port: uint16(65535), + Fsin_addr: Tin_addr{ + Fs_addr: uint32(0x7f000001), + }, +} + +var _lo6 = Tsockaddr_in6{ + Fsin6_family: uint16(PF_INET6), + Fsin6_port: uint16(65535), + Fsin6_addr: Tin6_addr{ + F__in6_union: *(*struct { + F__s6_addr16 [0][8]Tuint16_t + F__s6_addr32 [0][4]Tuint32_t + F__s6_addr [16]Tuint8_t + })(unsafe.Pointer(&[16]Tuint8_t{ + 15: uint8(1), + })), + }, +} + +const EAI_ADDRFAMILY = -9 +const EAI_ALLDONE = -103 +const EAI_CANCELED = -101 +const EAI_IDN_ENCODE = -105 +const EAI_INPROGRESS = -100 +const EAI_INTR = -104 +const EAI_NOTCANCELED = -102 +const HOST_NOT_FOUND = 1 +const MCAST_BLOCK_SOURCE = 43 +const MCAST_EXCLUDE = 0 +const MCAST_INCLUDE = 1 +const MCAST_JOIN_GROUP = 42 +const MCAST_JOIN_SOURCE_GROUP = 46 +const MCAST_LEAVE_GROUP = 45 +const MCAST_LEAVE_SOURCE_GROUP = 47 +const MCAST_MSFILTER = 48 +const MCAST_UNBLOCK_SOURCE = 44 +const NI_MAXHOST = 255 +const NI_MAXSERV = 32 +const NO_ADDRESS = 4 +const NO_DATA = 4 +const NO_RECOVERY = 3 +const TRY_AGAIN = 2 +const h_errno = 0 + +type Tip_mreq = struct { + Fimr_multiaddr Tin_addr + Fimr_interface Tin_addr +} + +type Tip_mreqn = struct { + Fimr_multiaddr Tin_addr + Fimr_address Tin_addr + Fimr_ifindex int32 +} + +type Tip_mreq_source = struct { + Fimr_multiaddr Tin_addr + Fimr_interface Tin_addr + Fimr_sourceaddr Tin_addr +} + +type Tip_msfilter = struct { + Fimsf_multiaddr Tin_addr + Fimsf_interface Tin_addr + Fimsf_fmode Tuint32_t + Fimsf_numsrc Tuint32_t + Fimsf_slist [1]Tin_addr +} + +type Tgroup_req = struct { + Fgr_interface Tuint32_t + Fgr_group Tsockaddr_storage +} + +type Tgroup_source_req = struct { + Fgsr_interface Tuint32_t + Fgsr_group Tsockaddr_storage + Fgsr_source Tsockaddr_storage +} + +type Tgroup_filter = struct { + Fgf_interface Tuint32_t + Fgf_group Tsockaddr_storage + Fgf_fmode Tuint32_t + Fgf_numsrc Tuint32_t + Fgf_slist [1]Tsockaddr_storage +} + +type Tin_pktinfo = struct { + Fipi_ifindex int32 + Fipi_spec_dst Tin_addr + Fipi_addr Tin_addr +} + +type Tin6_pktinfo = struct { + Fipi6_addr Tin6_addr + Fipi6_ifindex uint32 +} + +type Tip6_mtuinfo = struct { + Fip6m_addr Tsockaddr_in6 + Fip6m_mtu Tuint32_t +} + +func Xgethostbyaddr(tls *TLS, a uintptr, l Tsocklen_t, af int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v a=%v l=%v af=%v, (%v:)", tls, a, l, af, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var err int32 + var size Tsize_t + var _ /* res at bp+0 */ uintptr + _, _ = err, size + size = uint64(63) + for cond := true; cond; cond = err == int32(ERANGE) { + Xfree(tls, _h) + size = size + (size + uint64(1)) + _h = Xmalloc(tls, size) + if !(_h != 0) { + **(**int32)(__ccgo_up(X__h_errno_location(tls))) = int32(NO_RECOVERY) + return uintptr(0) + } + err = Xgethostbyaddr_r(tls, a, l, af, _h, _h+UintptrFromInt32(1)*32, size-uint64(32), bp, X__h_errno_location(tls)) + } + return **(**uintptr)(__ccgo_up(bp)) +} + +var _h uintptr + +func Xgethostbyaddr_r(tls *TLS, a uintptr, l Tsocklen_t, af int32, h uintptr, buf uintptr, buflen Tsize_t, res uintptr, err uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v a=%v l=%v af=%v h=%v buf=%v buflen=%v res=%v err=%v, (%v:)", tls, a, l, af, h, buf, buflen, res, err, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var i int32 + var sl Tsocklen_t + var v1 uint64 + var _ /* sa at bp+0 */ struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + } + _, _, _ = i, sl, v1 + *(*struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + })(unsafe.Pointer(bp)) = struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + }{} + *(*uint16)(unsafe.Pointer(bp)) = Uint16FromInt32(af) + if af == int32(PF_INET6) { + v1 = uint64(28) + } else { + v1 = uint64(16) + } + sl = uint32(v1) + **(**uintptr)(__ccgo_up(res)) = uintptr(0) + /* Load address argument into sockaddr structure */ + if af == int32(PF_INET6) && l == uint32(16) { + Xmemcpy(tls, bp+8, a, uint64(16)) + } else { + if af == int32(PF_INET) && l == uint32(4) { + Xmemcpy(tls, bp+4, a, uint64(4)) + } else { + **(**int32)(__ccgo_up(err)) = int32(NO_RECOVERY) + return int32(EINVAL) + } + } + /* Align buffer and check for space for pointers and ip address */ + i = Int32FromUint64(uint64(buf) & (Uint64FromInt64(8) - Uint64FromInt32(1))) + if !(i != 0) { + i = int32(8) + } + if buflen <= Uint64FromInt32(5)*Uint64FromInt64(8)-Uint64FromInt32(i)+uint64(l) { + return int32(ERANGE) + } + buf = buf + uintptr(uint64(8)-Uint64FromInt32(i)) + buflen = buflen - (Uint64FromInt32(5)*Uint64FromInt64(8) - Uint64FromInt32(i) + uint64(l)) + (*Thostent)(unsafe.Pointer(h)).Fh_addr_list = buf + buf = buf + uintptr(Uint64FromInt32(2)*Uint64FromInt64(8)) + (*Thostent)(unsafe.Pointer(h)).Fh_aliases = buf + buf = buf + uintptr(Uint64FromInt32(2)*Uint64FromInt64(8)) + **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_addr_list)) = buf + Xmemcpy(tls, **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_addr_list)), a, uint64(l)) + buf = buf + uintptr(l) + **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_addr_list + 1*8)) = uintptr(0) + **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_aliases)) = buf + **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_aliases + 1*8)) = uintptr(0) + switch Xgetnameinfo(tls, bp, sl, buf, uint32(buflen), uintptr(0), uint32(0), 0) { + case -int32(3): + **(**int32)(__ccgo_up(err)) = int32(TRY_AGAIN) + return int32(EAGAIN) + case -int32(12): + return int32(ERANGE) + default: + fallthrough + case -int32(4): + **(**int32)(__ccgo_up(err)) = int32(NO_RECOVERY) + return int32(EBADMSG) + case -int32(11): + **(**int32)(__ccgo_up(err)) = int32(NO_RECOVERY) + return **(**int32)(__ccgo_up(X__errno_location(tls))) + case 0: + break + } + (*Thostent)(unsafe.Pointer(h)).Fh_addrtype = af + (*Thostent)(unsafe.Pointer(h)).Fh_length = Int32FromUint32(l) + (*Thostent)(unsafe.Pointer(h)).Fh_name = **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_aliases)) + **(**uintptr)(__ccgo_up(res)) = h + return 0 +} + +func Xgethostbyname(tls *TLS, name uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgethostbyname2(tls, name, int32(PF_INET)) +} + +func Xgethostbyname2(tls *TLS, name uintptr, af int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v af=%v, (%v:)", tls, name, af, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var err int32 + var size Tsize_t + var _ /* res at bp+0 */ uintptr + _, _ = err, size + size = uint64(63) + for cond := true; cond; cond = err == int32(ERANGE) { + Xfree(tls, _h1) + size = size + (size + uint64(1)) + _h1 = Xmalloc(tls, size) + if !(_h1 != 0) { + **(**int32)(__ccgo_up(X__h_errno_location(tls))) = int32(NO_RECOVERY) + return uintptr(0) + } + err = Xgethostbyname2_r(tls, name, af, _h1, _h1+UintptrFromInt32(1)*32, size-uint64(32), bp, X__h_errno_location(tls)) + } + return **(**uintptr)(__ccgo_up(bp)) +} + +var _h1 uintptr + +func Xgethostbyname2_r(tls *TLS, name uintptr, af int32, h uintptr, buf uintptr, buflen Tsize_t, res uintptr, err uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v af=%v h=%v buf=%v buflen=%v res=%v err=%v, (%v:)", tls, name, af, h, buf, buflen, res, err, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(1600) + defer tls.Free(1600) + var align, need Tsize_t + var cnt, i, v1 int32 + var v3 uintptr + var _ /* addrs at bp+0 */ [48]Taddress + var _ /* canon at bp+1344 */ [256]uint8 + _, _, _, _, _, _ = align, cnt, i, need, v1, v3 + **(**uintptr)(__ccgo_up(res)) = uintptr(0) + cnt = X__lookup_name(tls, bp, bp+1344, name, af, int32(AI_CANONNAME)) + if cnt < 0 { + switch cnt { + case -int32(2): + **(**int32)(__ccgo_up(err)) = int32(HOST_NOT_FOUND) + return 0 + case -int32(5): + **(**int32)(__ccgo_up(err)) = int32(NO_DATA) + return 0 + case -int32(3): + **(**int32)(__ccgo_up(err)) = int32(TRY_AGAIN) + return int32(EAGAIN) + default: + fallthrough + case -int32(4): + **(**int32)(__ccgo_up(err)) = int32(NO_RECOVERY) + return int32(EBADMSG) + case -int32(11): + **(**int32)(__ccgo_up(err)) = int32(NO_RECOVERY) + return **(**int32)(__ccgo_up(X__errno_location(tls))) + } + } + (*Thostent)(unsafe.Pointer(h)).Fh_addrtype = af + if af == int32(PF_INET6) { + v1 = int32(16) + } else { + v1 = int32(4) + } + (*Thostent)(unsafe.Pointer(h)).Fh_length = v1 + /* Align buffer */ + align = -uint64(buf) & (Uint64FromInt64(8) - Uint64FromInt32(1)) + need = Uint64FromInt32(4) * Uint64FromInt64(8) + need = need + Uint64FromInt32(cnt+Int32FromInt32(1))*(uint64(8)+Uint64FromInt32((*Thostent)(unsafe.Pointer(h)).Fh_length)) + need = need + (_strlen(tls, name) + uint64(1)) + need = need + (_strlen(tls, bp+1344) + uint64(1)) + need = need + align + if need > buflen { + return int32(ERANGE) + } + buf = buf + uintptr(align) + (*Thostent)(unsafe.Pointer(h)).Fh_aliases = buf + buf = buf + uintptr(Uint64FromInt32(3)*Uint64FromInt64(8)) + (*Thostent)(unsafe.Pointer(h)).Fh_addr_list = buf + buf = buf + uintptr(Uint64FromInt32(cnt+Int32FromInt32(1))*uint64(8)) + i = 0 + for { + if !(i < cnt) { + break + } + **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_addr_list + uintptr(i)*8)) = buf + buf = buf + uintptr((*Thostent)(unsafe.Pointer(h)).Fh_length) + Xmemcpy(tls, **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_addr_list + uintptr(i)*8)), bp+uintptr(i)*28+8, Uint64FromInt32((*Thostent)(unsafe.Pointer(h)).Fh_length)) + goto _2 + _2: + ; + i = i + 1 + } + **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_addr_list + uintptr(i)*8)) = uintptr(0) + v3 = buf + **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_aliases)) = v3 + (*Thostent)(unsafe.Pointer(h)).Fh_name = v3 + Xstrcpy(tls, (*Thostent)(unsafe.Pointer(h)).Fh_name, bp+1344) + buf = buf + uintptr(_strlen(tls, (*Thostent)(unsafe.Pointer(h)).Fh_name)+uint64(1)) + if Xstrcmp(tls, (*Thostent)(unsafe.Pointer(h)).Fh_name, name) != 0 { + **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_aliases + 1*8)) = buf + Xstrcpy(tls, **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_aliases + 1*8)), name) + buf = buf + uintptr(_strlen(tls, **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_aliases + 1*8)))+uint64(1)) + } else { + **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_aliases + 1*8)) = uintptr(0) + } + **(**uintptr)(__ccgo_up((*Thostent)(unsafe.Pointer(h)).Fh_aliases + 2*8)) = uintptr(0) + **(**uintptr)(__ccgo_up(res)) = h + return 0 +} + +func Xgethostbyname_r(tls *TLS, name uintptr, h uintptr, buf uintptr, buflen Tsize_t, res uintptr, err uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v h=%v buf=%v buflen=%v res=%v err=%v, (%v:)", tls, name, h, buf, buflen, res, err, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgethostbyname2_r(tls, name, int32(PF_INET), h, buf, buflen, res, err) +} + +const IFADDRS_HASH_SIZE = 64 +const IFA_ADDRESS = 1 +const IFA_BROADCAST = 4 +const IFA_LABEL = 3 +const IFA_LOCAL = 2 +const IFF_ALLMULTI = 512 +const IFF_AUTOMEDIA = 16384 +const IFF_BROADCAST = 2 +const IFF_DEBUG = 4 +const IFF_DORMANT = 131072 +const IFF_DYNAMIC = 32768 +const IFF_ECHO = 262144 +const IFF_LOOPBACK = 8 +const IFF_LOWER_UP = 65536 +const IFF_MASTER = 1024 +const IFF_MULTICAST = 4096 +const IFF_NOARP = 128 +const IFF_NOTRAILERS = 32 +const IFF_POINTOPOINT = 16 +const IFF_PORTSEL = 8192 +const IFF_PROMISC = 256 +const IFF_RUNNING = 64 +const IFF_SLAVE = 2048 +const IFF_UP = 1 +const IFF_VOLATILE = 461914 +const IFHWADDRLEN = 6 +const IFLA_ADDRESS = 1 +const IFLA_BROADCAST = 2 +const IFLA_IFNAME = 3 +const IFLA_STATS = 7 +const IFNAMSIZ = 16 +const IF_NAMESIZE = 16 +const NETLINK_ROUTE = 0 +const NLMSG_DONE = 3 +const NLMSG_ERROR = 2 +const NLMSG_NOOP = 1 +const NLMSG_OVERRUN = 4 +const NLM_F_ACK = 4 +const NLM_F_ATOMIC = 1024 +const NLM_F_DUMP = 768 +const NLM_F_MATCH = 512 +const NLM_F_MULTI = 2 +const NLM_F_REQUEST = 1 +const NLM_F_ROOT = 256 +const RTM_GETADDR = 22 +const RTM_GETLINK = 18 +const RTM_NEWADDR = 20 +const RTM_NEWLINK = 16 +const __UAPI_DEF_IF_IFCONF = 0 +const __UAPI_DEF_IF_IFMAP = 0 +const __UAPI_DEF_IF_IFNAMSIZ = 0 +const __UAPI_DEF_IF_IFREQ = 0 +const __UAPI_DEF_IF_NET_DEVICE_FLAGS = 0 +const __UAPI_DEF_IF_NET_DEVICE_FLAGS_LOWER_UP_DORMANT_ECHO = 0 + +type Tifaddrs = struct { + Fifa_next uintptr + Fifa_name uintptr + Fifa_flags uint32 + Fifa_addr uintptr + Fifa_netmask uintptr + Fifa_ifu struct { + Fifu_dstaddr [0]uintptr + Fifu_broadaddr uintptr + } + Fifa_data uintptr +} + +type Tif_nameindex = struct { + Fif_index uint32 + Fif_name uintptr +} + +type Tifaddr = struct { + Fifa_addr Tsockaddr + Fifa_ifu struct { + Fifu_dstaddr [0]Tsockaddr + Fifu_broadaddr Tsockaddr + } + Fifa_ifp uintptr + Fifa_next uintptr +} + +type Tifmap = struct { + Fmem_start uint64 + Fmem_end uint64 + Fbase_addr uint16 + Firq uint8 + Fdma uint8 + Fport uint8 +} + +type Tifreq = struct { + Fifr_ifrn struct { + Fifrn_name [16]uint8 + } + Fifr_ifru struct { + Fifru_dstaddr [0]Tsockaddr + Fifru_broadaddr [0]Tsockaddr + Fifru_netmask [0]Tsockaddr + Fifru_hwaddr [0]Tsockaddr + Fifru_flags [0]int16 + Fifru_ivalue [0]int32 + Fifru_mtu [0]int32 + Fifru_map [0]Tifmap + Fifru_slave [0][16]uint8 + Fifru_newname [0][16]uint8 + Fifru_data [0]uintptr + Fifru_addr Tsockaddr + F__ccgo_pad12 [8]byte + } +} + +type Tifconf = struct { + Fifc_len int32 + Fifc_ifcu struct { + Fifcu_req [0]uintptr + Fifcu_buf uintptr + } +} + +type Tnlmsghdr = struct { + Fnlmsg_len Tuint32_t + Fnlmsg_type Tuint16_t + Fnlmsg_flags Tuint16_t + Fnlmsg_seq Tuint32_t + Fnlmsg_pid Tuint32_t +} + +type Trtattr = struct { + Frta_len uint16 + Frta_type uint16 +} + +type Trtgenmsg = struct { + Frtgen_family uint8 +} + +type Tifinfomsg = struct { + Fifi_family uint8 + F__ifi_pad uint8 + Fifi_type uint16 + Fifi_index int32 + Fifi_flags uint32 + Fifi_change uint32 +} + +type Tifaddrmsg = struct { + Fifa_family Tuint8_t + Fifa_prefixlen Tuint8_t + Fifa_flags Tuint8_t + Fifa_scope Tuint8_t + Fifa_index Tuint32_t +} + +/* getifaddrs() reports hardware addresses with PF_PACKET that implies + * struct sockaddr_ll. But e.g. Infiniband socket address length is + * longer than sockaddr_ll.ssl_addr[8] can hold. Use this hack struct + * to extend ssl_addr - callers should be able to still use it. */ +type Tsockaddr_ll_hack = struct { + Fsll_family uint16 + Fsll_protocol uint16 + Fsll_ifindex int32 + Fsll_hatype uint16 + Fsll_pkttype uint8 + Fsll_halen uint8 + Fsll_addr [24]uint8 +} + +type Tsockany = struct { + Fll [0]Tsockaddr_ll_hack + Fv4 [0]Tsockaddr_in + Fv6 [0]Tsockaddr_in6 + Fsa Tsockaddr + F__ccgo_pad4 [20]byte +} + +type Tifaddrs_storage = struct { + Fifa Tifaddrs + Fhash_next uintptr + Faddr Tsockany + Fnetmask Tsockany + Fifu Tsockany + Findex uint32 + Fname [17]uint8 +} + +type Tifaddrs_ctx = struct { + Ffirst uintptr + Flast uintptr + Fhash [64]uintptr +} + +func Xfreeifaddrs(tls *TLS, ifp uintptr) { + if __ccgo_strace { + trc("tls=%v ifp=%v, (%v:)", tls, ifp, origin(2)) + } + var n uintptr + _ = n + for ifp != 0 { + n = (*Tifaddrs)(unsafe.Pointer(ifp)).Fifa_next + Xfree(tls, ifp) + ifp = n + } +} + +func _copy_addr(tls *TLS, r uintptr, af int32, sa uintptr, addr uintptr, addrlen Tsize_t, ifindex int32) { + var dst uintptr + var len1 int32 + _, _ = dst, len1 + switch af { + case int32(PF_INET): + dst = sa + 4 + len1 = int32(4) + case int32(PF_INET6): + dst = sa + 8 + len1 = int32(16) + if Int32FromUint8(**(**Tuint8_t)(__ccgo_up(addr))) == int32(0xfe) && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(addr + 1)))&int32(0xc0) == int32(0x80) || Int32FromUint8(**(**Tuint8_t)(__ccgo_up(addr))) == int32(0xff) && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(addr + 1)))&int32(0xf) == int32(0x2) { + (*(*Tsockaddr_in6)(unsafe.Pointer(sa))).Fsin6_scope_id = Uint32FromInt32(ifindex) + } + default: + return + } + if addrlen < Uint64FromInt32(len1) { + return + } + (*Tsockany)(unsafe.Pointer(sa)).Fsa.Fsa_family = Uint16FromInt32(af) + Xmemcpy(tls, dst, addr, Uint64FromInt32(len1)) + **(**uintptr)(__ccgo_up(r)) = sa +} + +func _gen_netmask(tls *TLS, r uintptr, af int32, sa uintptr, prefixlen int32) { + bp := tls.Alloc(16) + defer tls.Free(16) + var i, v1 int32 + var _ /* addr at bp+0 */ [16]Tuint8_t + _, _ = i, v1 + **(**[16]Tuint8_t)(__ccgo_up(bp)) = [16]Tuint8_t{} + if Uint64FromInt32(prefixlen) > Uint64FromInt32(8)*Uint64FromInt64(16) { + prefixlen = Int32FromUint64(Uint64FromInt32(8) * Uint64FromInt64(16)) + } + i = prefixlen / int32(8) + Xmemset(tls, bp, int32(0xff), Uint64FromInt32(i)) + if Uint64FromInt32(i) < uint64(16) { + v1 = i + i = i + 1 + (**(**[16]Tuint8_t)(__ccgo_up(bp)))[v1] = Uint8FromInt32(int32(0xff) << (int32(8) - prefixlen%int32(8))) + } + _copy_addr(tls, r, af, sa, bp, uint64(16), 0) +} + +func _copy_lladdr(tls *TLS, r uintptr, sa uintptr, addr uintptr, addrlen Tsize_t, ifindex int32, hatype uint16) { + if addrlen > uint64(24) { + return + } + (*(*Tsockaddr_ll_hack)(unsafe.Pointer(sa))).Fsll_family = uint16(PF_PACKET) + (*(*Tsockaddr_ll_hack)(unsafe.Pointer(sa))).Fsll_ifindex = ifindex + (*(*Tsockaddr_ll_hack)(unsafe.Pointer(sa))).Fsll_hatype = hatype + (*(*Tsockaddr_ll_hack)(unsafe.Pointer(sa))).Fsll_halen = uint8(addrlen) + Xmemcpy(tls, sa+12, addr, addrlen) + **(**uintptr)(__ccgo_up(r)) = sa +} + +func _netlink_msg_to_ifaddr(tls *TLS, pctx uintptr, h uintptr) (r int32) { + var bucket uint32 + var ctx, ifa, ifi, ifs, ifs0, rta uintptr + var stats_len int32 + _, _, _, _, _, _, _, _ = bucket, ctx, ifa, ifi, ifs, ifs0, rta, stats_len + ctx = pctx + ifi = h + UintptrFromInt64(16) + ifa = h + UintptrFromInt64(16) + stats_len = 0 + if Int32FromUint16((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_type) == int32(RTM_NEWLINK) { + rta = h + UintptrFromInt64(16) + uintptr((Uint64FromInt64(16)+Uint64FromInt32(3))&Uint64FromInt32(^Int32FromInt32(3))) + for { + if !(Uint64FromInt64(int64(h+uintptr((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_len))-int64(rta)) >= uint64(4)) { + break + } + if Int32FromUint16((*Trtattr)(unsafe.Pointer(rta)).Frta_type) != int32(IFLA_STATS) { + goto _1 + } + stats_len = Int32FromUint64(uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len) - Uint64FromInt64(4)) + break + goto _1 + _1: + ; + rta = rta + uintptr((Int32FromUint16((*Trtattr)(unsafe.Pointer(rta)).Frta_len)+Int32FromInt32(3)) & ^Int32FromInt32(3)) + } + } else { + ifs0 = **(**uintptr)(__ccgo_up(ctx + 16 + uintptr((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_index%uint32(IFADDRS_HASH_SIZE))*8)) + for { + if !(ifs0 != 0) { + break + } + if (*Tifaddrs_storage)(unsafe.Pointer(ifs0)).Findex == (*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_index { + break + } + goto _2 + _2: + ; + ifs0 = (*Tifaddrs_storage)(unsafe.Pointer(ifs0)).Fhash_next + } + if !(ifs0 != 0) { + return 0 + } + } + ifs = Xcalloc(tls, uint64(1), uint64(200)+Uint64FromInt32(stats_len)) + if ifs == uintptr(0) { + return -int32(1) + } + if Int32FromUint16((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_type) == int32(RTM_NEWLINK) { + (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Findex = Uint32FromInt32((*Tifinfomsg)(unsafe.Pointer(ifi)).Fifi_index) + (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_flags = (*Tifinfomsg)(unsafe.Pointer(ifi)).Fifi_flags + rta = h + UintptrFromInt64(16) + uintptr((Uint64FromInt64(16)+Uint64FromInt32(3))&Uint64FromInt32(^Int32FromInt32(3))) + for { + if !(Uint64FromInt64(int64(h+uintptr((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_len))-int64(rta)) >= uint64(4)) { + break + } + switch Int32FromUint16((*Trtattr)(unsafe.Pointer(rta)).Frta_type) { + case int32(IFLA_IFNAME): + if uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-uint64(4) < uint64(17) { + Xmemcpy(tls, ifs+176, rta+UintptrFromInt64(4), uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-Uint64FromInt64(4)) + (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_name = ifs + 176 + } + case int32(IFLA_ADDRESS): + _copy_lladdr(tls, ifs+24, ifs+64, rta+UintptrFromInt64(4), uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-Uint64FromInt64(4), (*Tifinfomsg)(unsafe.Pointer(ifi)).Fifi_index, (*Tifinfomsg)(unsafe.Pointer(ifi)).Fifi_type) + case int32(IFLA_BROADCAST): + _copy_lladdr(tls, ifs+40, ifs+136, rta+UintptrFromInt64(4), uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-Uint64FromInt64(4), (*Tifinfomsg)(unsafe.Pointer(ifi)).Fifi_index, (*Tifinfomsg)(unsafe.Pointer(ifi)).Fifi_type) + case int32(IFLA_STATS): + (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_data = ifs + UintptrFromInt32(1)*200 + Xmemcpy(tls, (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_data, rta+UintptrFromInt64(4), uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-Uint64FromInt64(4)) + break + } + goto _3 + _3: + ; + rta = rta + uintptr((Int32FromUint16((*Trtattr)(unsafe.Pointer(rta)).Frta_len)+Int32FromInt32(3)) & ^Int32FromInt32(3)) + } + if (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_name != 0 { + bucket = (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Findex % uint32(IFADDRS_HASH_SIZE) + (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fhash_next = **(**uintptr)(__ccgo_up(ctx + 16 + uintptr(bucket)*8)) + **(**uintptr)(__ccgo_up(ctx + 16 + uintptr(bucket)*8)) = ifs + } + } else { + (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_name = (*Tifaddrs_storage)(unsafe.Pointer(ifs0)).Fifa.Fifa_name + (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_flags = (*Tifaddrs_storage)(unsafe.Pointer(ifs0)).Fifa.Fifa_flags + rta = h + UintptrFromInt64(16) + uintptr((Uint64FromInt64(8)+Uint64FromInt32(3))&Uint64FromInt32(^Int32FromInt32(3))) + for { + if !(Uint64FromInt64(int64(h+uintptr((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_len))-int64(rta)) >= uint64(4)) { + break + } + switch Int32FromUint16((*Trtattr)(unsafe.Pointer(rta)).Frta_type) { + case int32(IFA_ADDRESS): + /* If ifa_addr is already set we, received an IFA_LOCAL before + * so treat this as destination address */ + if (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_addr != 0 { + _copy_addr(tls, ifs+40, Int32FromUint8((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_family), ifs+136, rta+UintptrFromInt64(4), uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-Uint64FromInt64(4), Int32FromUint32((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_index)) + } else { + _copy_addr(tls, ifs+24, Int32FromUint8((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_family), ifs+64, rta+UintptrFromInt64(4), uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-Uint64FromInt64(4), Int32FromUint32((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_index)) + } + case int32(IFA_BROADCAST): + _copy_addr(tls, ifs+40, Int32FromUint8((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_family), ifs+136, rta+UintptrFromInt64(4), uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-Uint64FromInt64(4), Int32FromUint32((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_index)) + case int32(IFA_LOCAL): + /* If ifa_addr is set and we get IFA_LOCAL, assume we have + * a point-to-point network. Move address to correct field. */ + if (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_addr != 0 { + (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifu = (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Faddr + *(*uintptr)(unsafe.Pointer(ifs + 40)) = ifs + 136 + Xmemset(tls, ifs+64, 0, uint64(36)) + } + _copy_addr(tls, ifs+24, Int32FromUint8((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_family), ifs+64, rta+UintptrFromInt64(4), uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-Uint64FromInt64(4), Int32FromUint32((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_index)) + case int32(IFA_LABEL): + if uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-uint64(4) < uint64(17) { + Xmemcpy(tls, ifs+176, rta+UintptrFromInt64(4), uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-Uint64FromInt64(4)) + (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_name = ifs + 176 + } + break + } + goto _4 + _4: + ; + rta = rta + uintptr((Int32FromUint16((*Trtattr)(unsafe.Pointer(rta)).Frta_len)+Int32FromInt32(3)) & ^Int32FromInt32(3)) + } + if (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_addr != 0 { + _gen_netmask(tls, ifs+32, Int32FromUint8((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_family), ifs+100, Int32FromUint8((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_prefixlen)) + } + } + if (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_name != 0 { + if !((*Tifaddrs_ctx)(unsafe.Pointer(ctx)).Ffirst != 0) { + (*Tifaddrs_ctx)(unsafe.Pointer(ctx)).Ffirst = ifs + } + if (*Tifaddrs_ctx)(unsafe.Pointer(ctx)).Flast != 0 { + (*Tifaddrs)(unsafe.Pointer((*Tifaddrs_ctx)(unsafe.Pointer(ctx)).Flast)).Fifa_next = ifs + } + (*Tifaddrs_ctx)(unsafe.Pointer(ctx)).Flast = ifs + } else { + Xfree(tls, ifs) + } + return 0 +} + +func Xgetifaddrs(tls *TLS, ifap uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v ifap=%v, (%v:)", tls, ifap, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(528) + defer tls.Free(528) + var ctx uintptr + var r int32 + var _ /* _ctx at bp+0 */ Tifaddrs_ctx + _, _ = ctx, r + ctx = bp + Xmemset(tls, ctx, 0, uint64(528)) + r = X__rtnetlink_enumerate(tls, PF_UNSPEC, PF_UNSPEC, __ccgo_fp(_netlink_msg_to_ifaddr), ctx) + if r == 0 { + **(**uintptr)(__ccgo_up(ifap)) = (*Tifaddrs_ctx)(unsafe.Pointer(ctx)).Ffirst + } else { + Xfreeifaddrs(tls, (*Tifaddrs_ctx)(unsafe.Pointer(ctx)).Ffirst) + } + return r +} + +const RR_PTR = 12 + +func _itoa(tls *TLS, p uintptr, x uint32) (r uintptr) { + var v1 uintptr + _ = v1 + p = p + uintptr(Uint64FromInt32(3)*Uint64FromInt64(4)) + p = p - 1 + v1 = p + **(**uint8)(__ccgo_up(v1)) = uint8(0) + for cond := true; cond; cond = x != 0 { + p = p - 1 + v1 = p + **(**uint8)(__ccgo_up(v1)) = uint8(uint32('0') + x%uint32(10)) + x = x / uint32(10) + } + return p +} + +func _mkptr4(tls *TLS, s uintptr, ip uintptr) { + bp := tls.Alloc(48) + defer tls.Free(48) + Xsprintf(tls, s, __ccgo_ts+1012, VaList(bp+8, Int32FromUint8(**(**uint8)(__ccgo_up(ip + 3))), Int32FromUint8(**(**uint8)(__ccgo_up(ip + 2))), Int32FromUint8(**(**uint8)(__ccgo_up(ip + 1))), Int32FromUint8(**(**uint8)(__ccgo_up(ip))))) +} + +func _mkptr6(tls *TLS, s uintptr, ip uintptr) { + var i int32 + var v2 uintptr + _, _ = i, v2 + i = int32(15) + for { + if !(i >= 0) { + break + } + v2 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = _xdigits[Int32FromUint8(**(**uint8)(__ccgo_up(ip + uintptr(i))))&int32(15)] + v2 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = uint8('.') + v2 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = _xdigits[Int32FromUint8(**(**uint8)(__ccgo_up(ip + uintptr(i))))>>int32(4)] + v2 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = uint8('.') + goto _1 + _1: + ; + i = i - 1 + } + Xstrcpy(tls, s, __ccgo_ts+1037) +} + +var _xdigits = [17]uint8{'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'} + +func _reverse_hosts(tls *TLS, buf uintptr, a uintptr, scopeid uint32, family int32) { + bp := tls.Alloc(1824) + defer tls.Free(1824) + var f, p, z, v1, v2 uintptr + var v4, v5 int32 + var v7 bool + var _ /* _buf at bp+512 */ [1032]uint8 + var _ /* _f at bp+1592 */ TFILE + var _ /* atmp at bp+1544 */ [16]uint8 + var _ /* iplit at bp+1560 */ Taddress + var _ /* line at bp+0 */ [512]uint8 + _, _, _, _, _, _, _, _ = f, p, z, v1, v2, v4, v5, v7 + f = X__fopen_rb_ca(tls, __ccgo_ts+1046, bp+1592, bp+512, uint64(1032)) + if !(f != 0) { + return + } + if family == int32(PF_INET) { + Xmemcpy(tls, bp+1544+uintptr(12), a, uint64(4)) + Xmemcpy(tls, bp+1544, __ccgo_ts+1057, uint64(12)) + a = bp + 1544 + } + for Xfgets(tls, bp, int32(512), f) != 0 { + v1 = Xstrchr(tls, bp, int32('#')) + p = v1 + if v1 != 0 { + v2 = p + p = p + 1 + **(**uint8)(__ccgo_up(v2)) = uint8('\n') + **(**uint8)(__ccgo_up(p)) = Uint8FromInt32(0) + } + p = bp + for { + if v7 = **(**uint8)(__ccgo_up(p)) != 0; v7 { + v4 = Int32FromUint8(**(**uint8)(__ccgo_up(p))) + v5 = BoolInt32(v4 == int32(' ') || Uint32FromInt32(v4)-uint32('\t') < uint32(5)) + goto _6 + _6: + } + if !(v7 && !(v5 != 0)) { + break + } + goto _3 + _3: + ; + p = p + 1 + } + if !(**(**uint8)(__ccgo_up(p)) != 0) { + continue + } + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(0) + if X__lookup_ipliteral(tls, bp+1560, bp, PF_UNSPEC) <= 0 { + continue + } + if (**(**Taddress)(__ccgo_up(bp + 1560))).Ffamily == int32(PF_INET) { + Xmemcpy(tls, bp+1560+8+uintptr(12), bp+1560+8, uint64(4)) + Xmemcpy(tls, bp+1560+8, __ccgo_ts+1057, uint64(12)) + (**(**Taddress)(__ccgo_up(bp + 1560))).Fscopeid = uint32(0) + } + if Xmemcmp(tls, a, bp+1560+8, uint64(16)) != 0 || (**(**Taddress)(__ccgo_up(bp + 1560))).Fscopeid != scopeid { + continue + } + for { + if v7 = **(**uint8)(__ccgo_up(p)) != 0; v7 { + v4 = Int32FromUint8(**(**uint8)(__ccgo_up(p))) + v5 = BoolInt32(v4 == int32(' ') || Uint32FromInt32(v4)-uint32('\t') < uint32(5)) + goto _12 + _12: + } + if !(v7 && v5 != 0) { + break + } + goto _9 + _9: + ; + p = p + 1 + } + z = p + for { + if v7 = **(**uint8)(__ccgo_up(z)) != 0; v7 { + v4 = Int32FromUint8(**(**uint8)(__ccgo_up(z))) + v5 = BoolInt32(v4 == int32(' ') || Uint32FromInt32(v4)-uint32('\t') < uint32(5)) + goto _17 + _17: + } + if !(v7 && !(v5 != 0)) { + break + } + goto _14 + _14: + ; + z = z + 1 + } + **(**uint8)(__ccgo_up(z)) = uint8(0) + if int64(z)-int64(p) < int64(256) { + Xmemcpy(tls, buf, p, Uint64FromInt64(int64(z)-int64(p)+int64(1))) + break + } + } + X__fclose_ca(tls, f) +} + +func _reverse_services(tls *TLS, buf uintptr, port int32, dgram int32) { + bp := tls.Alloc(1408) + defer tls.Free(1408) + var f, p, v1, v2 uintptr + var svport uint64 + var v4, v5 int32 + var v7 bool + var _ /* _buf at bp+136 */ [1032]uint8 + var _ /* _f at bp+1168 */ TFILE + var _ /* line at bp+0 */ [128]uint8 + var _ /* z at bp+128 */ uintptr + _, _, _, _, _, _, _, _ = f, p, svport, v1, v2, v4, v5, v7 + f = X__fopen_rb_ca(tls, __ccgo_ts+1070, bp+1168, bp+136, uint64(1032)) + if !(f != 0) { + return + } + for Xfgets(tls, bp, int32(128), f) != 0 { + v1 = Xstrchr(tls, bp, int32('#')) + p = v1 + if v1 != 0 { + v2 = p + p = p + 1 + **(**uint8)(__ccgo_up(v2)) = uint8('\n') + **(**uint8)(__ccgo_up(p)) = Uint8FromInt32(0) + } + p = bp + for { + if v7 = **(**uint8)(__ccgo_up(p)) != 0; v7 { + v4 = Int32FromUint8(**(**uint8)(__ccgo_up(p))) + v5 = BoolInt32(v4 == int32(' ') || Uint32FromInt32(v4)-uint32('\t') < uint32(5)) + goto _6 + _6: + } + if !(v7 && !(v5 != 0)) { + break + } + goto _3 + _3: + ; + p = p + 1 + } + if !(**(**uint8)(__ccgo_up(p)) != 0) { + continue + } + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(0) + svport = Xstrtoul(tls, p, bp+128, int32(10)) + if svport != Uint64FromInt32(port) || **(**uintptr)(__ccgo_up(bp + 128)) == p { + continue + } + if dgram != 0 && Xstrncmp(tls, **(**uintptr)(__ccgo_up(bp + 128)), __ccgo_ts+1084, uint64(4)) != 0 { + continue + } + if !(dgram != 0) && Xstrncmp(tls, **(**uintptr)(__ccgo_up(bp + 128)), __ccgo_ts+1089, uint64(4)) != 0 { + continue + } + if int64(p)-t__predefined_ptrdiff_t(bp) > int64(32) { + continue + } + Xmemcpy(tls, buf, bp, Uint64FromInt64(int64(p)-t__predefined_ptrdiff_t(bp))) + break + } + X__fclose_ca(tls, f) +} + +func _dns_parse_callback(tls *TLS, c uintptr, rr int32, data uintptr, len1 int32, packet uintptr, plen int32) (r int32) { + if rr != int32(RR_PTR) { + return 0 + } + if X__dn_expand(tls, packet, packet+uintptr(plen), data, c, int32(256)) <= 0 { + **(**uint8)(__ccgo_up(c)) = uint8(0) + } + return 0 +} + +func Xgetnameinfo(tls *TLS, sa uintptr, sl Tsocklen_t, node uintptr, nodelen Tsocklen_t, serv uintptr, servlen Tsocklen_t, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v sa=%v sl=%v node=%v nodelen=%v serv=%v servlen=%v flags=%v, (%v:)", tls, sa, sl, node, nodelen, serv, servlen, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(976) + defer tls.Free(976) + var a, p, p1, v1 uintptr + var af, port, qlen, rlen int32 + var scopeid uint32 + var _ /* buf at bp+78 */ [256]uint8 + var _ /* num at bp+334 */ [13]uint8 + var _ /* ptr at bp+0 */ [78]uint8 + var _ /* query at bp+347 */ [96]uint8 + var _ /* reply at bp+443 */ [512]uint8 + var _ /* tmp at bp+955 */ [17]uint8 + _, _, _, _, _, _, _, _, _ = a, af, p, p1, port, qlen, rlen, scopeid, v1 + af = Int32FromUint16((*Tsockaddr)(unsafe.Pointer(sa)).Fsa_family) + switch af { + case int32(PF_INET): + a = sa + 4 + if uint64(sl) < uint64(16) { + return -int32(6) + } + _mkptr4(tls, bp, a) + scopeid = uint32(0) + case int32(PF_INET6): + a = sa + 8 + if uint64(sl) < uint64(28) { + return -int32(6) + } + if Xmemcmp(tls, a, __ccgo_ts+1057, uint64(12)) != 0 { + _mkptr6(tls, bp, a) + } else { + _mkptr4(tls, bp, a+uintptr(12)) + } + scopeid = (*Tsockaddr_in6)(unsafe.Pointer(sa)).Fsin6_scope_id + default: + return -int32(6) + } + if node != 0 && nodelen != 0 { + (**(**[256]uint8)(__ccgo_up(bp + 78)))[0] = uint8(0) + if !(flags&Int32FromInt32(NI_NUMERICHOST) != 0) { + _reverse_hosts(tls, bp+78, a, scopeid, af) + } + if !(**(**uint8)(__ccgo_up(bp + 78)) != 0) && !(flags&Int32FromInt32(NI_NUMERICHOST) != 0) { + qlen = X__res_mkquery(tls, 0, bp, int32(1), int32(RR_PTR), uintptr(0), 0, uintptr(0), bp+347, int32(96)) + (**(**[96]uint8)(__ccgo_up(bp + 347)))[int32(3)] = uint8(0) /* don't need AD flag */ + rlen = X__res_send(tls, bp+347, qlen, bp+443, int32(512)) + (**(**[256]uint8)(__ccgo_up(bp + 78)))[0] = uint8(0) + if rlen > 0 { + if Uint64FromInt32(rlen) > uint64(512) { + rlen = int32(512) + } + X__dns_parse(tls, bp+443, rlen, __ccgo_fp(_dns_parse_callback), bp+78) + } + } + if !(**(**uint8)(__ccgo_up(bp + 78)) != 0) { + if flags&int32(NI_NAMEREQD) != 0 { + return -int32(2) + } + Xinet_ntop(tls, af, a, bp+78, uint32(256)) + if scopeid != 0 { + p = uintptr(0) + if !(flags&Int32FromInt32(NI_NUMERICSCOPE) != 0) && (Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a))) == int32(0xfe) && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a + 1)))&int32(0xc0) == int32(0x80) || Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a))) == int32(0xff) && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a + 1)))&int32(0xf) == int32(0x2)) { + p = Xif_indextoname(tls, scopeid, bp+955+uintptr(1)) + } + if !(p != 0) { + p = _itoa(tls, bp+334, scopeid) + } + p = p - 1 + v1 = p + **(**uint8)(__ccgo_up(v1)) = uint8('%') + Xstrcat(tls, bp+78, p) + } + } + if _strlen(tls, bp+78) >= uint64(nodelen) { + return -int32(12) + } + Xstrcpy(tls, node, bp+78) + } + if serv != 0 && servlen != 0 { + p1 = bp + 78 + port = Int32FromUint16(Xntohs(tls, (*Tsockaddr_in)(unsafe.Pointer(sa)).Fsin_port)) + (**(**[256]uint8)(__ccgo_up(bp + 78)))[0] = uint8(0) + if !(flags&Int32FromInt32(NI_NUMERICSERV) != 0) { + _reverse_services(tls, bp+78, port, flags&int32(NI_DGRAM)) + } + if !(**(**uint8)(__ccgo_up(p1)) != 0) { + p1 = _itoa(tls, bp+334, Uint32FromInt32(port)) + } + if _strlen(tls, p1) >= uint64(servlen) { + return -int32(12) + } + Xstrcpy(tls, serv, p1) + } + return 0 +} + +func Xgetpeername(tls *TLS, fd int32, addr uintptr, len1 uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v addr=%v len1=%v, (%v:)", tls, fd, addr, len1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(96) + defer tls.Free(96) + var r, v10 int64 + var v1, v2, v3 int32 + var v4, v5, v6, v7, v8, v9 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _, _, _ = r, v1, v10, v2, v3, v4, v5, v6, v7, v8, v9 + v1 = int32(SYS_getpeername) + v2 = int32(__SC_getpeername) + v3 = 0 + v4 = int64(fd) + v5 = int64(addr) + v6 = int64(len1) + v7 = int64(Int32FromInt32(0)) + v8 = int64(Int32FromInt32(0)) + v9 = int64(Int32FromInt32(0)) + if v3 != 0 { + r = ___syscall_cp(tls, int64(v1), v4, v5, v6, v7, v8, v9) + } else { + r = X__syscall6(tls, int64(v1), v4, v5, v6, v7, v8, v9) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v10 = r + goto _11 + } + if v3 != 0 { + *(*[6]int64)(unsafe.Pointer(bp)) = [6]int64{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = ___syscall_cp(tls, int64(SYS_socketcall), int64(v2), int64(bp), 0, 0, 0, 0) + } else { + *(*[6]int64)(unsafe.Pointer(bp + 48)) = [6]int64{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = X__syscall2(tls, int64(SYS_socketcall), int64(v2), int64(bp+48)) + } + v10 = r + goto _11 +_11: + return int32(X__syscall_ret(tls, Uint64FromInt64(v10))) +} + +func Xgetservbyname(tls *TLS, name uintptr, prots uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v prots=%v, (%v:)", tls, name, prots, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* res at bp+0 */ uintptr + if Xgetservbyname_r(tls, name, prots, uintptr(unsafe.Pointer(&_se)), uintptr(unsafe.Pointer(&_buf3)), uint64(16), bp) != 0 { + return uintptr(0) + } + return uintptr(unsafe.Pointer(&_se)) +} + +var _se Tservent + +var _buf3 [2]uintptr + +const ALIGN = 0 + +func Xgetservbyname_r(tls *TLS, name uintptr, prots uintptr, se uintptr, buf uintptr, buflen Tsize_t, res uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v prots=%v se=%v buf=%v buflen=%v res=%v, (%v:)", tls, name, prots, se, buf, buflen, res, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var align, cnt, proto int32 + var v1 uintptr + var _ /* end at bp+8 */ uintptr + var _ /* servs at bp+0 */ [2]Tservice + _, _, _, _ = align, cnt, proto, v1 + **(**uintptr)(__ccgo_up(res)) = uintptr(0) + /* Don't treat numeric port number strings as service records. */ + **(**uintptr)(__ccgo_up(bp + 8)) = __ccgo_ts + Xstrtoul(tls, name, bp+8, int32(10)) + if !(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)))) != 0) { + return int32(ENOENT) + } + /* Align buffer */ + align = Int32FromUint64(-uint64(buf) & (Uint64FromInt64(16) - Uint64FromInt64(8) - Uint64FromInt32(1))) + if buflen < Uint64FromInt32(2)*Uint64FromInt64(8)+Uint64FromInt32(align) { + return int32(ERANGE) + } + buf = buf + uintptr(align) + if !(prots != 0) { + proto = 0 + } else { + if !(Xstrcmp(tls, prots, __ccgo_ts+1094) != 0) { + proto = int32(IPPROTO_TCP) + } else { + if !(Xstrcmp(tls, prots, __ccgo_ts+1098) != 0) { + proto = int32(IPPROTO_UDP) + } else { + return int32(EINVAL) + } + } + } + cnt = X__lookup_serv(tls, bp, name, proto, 0, 0) + if cnt < 0 { + switch cnt { + case -int32(10): + fallthrough + case -int32(11): + return int32(ENOMEM) + default: + return int32(ENOENT) + } + } + (*Tservent)(unsafe.Pointer(se)).Fs_name = name + (*Tservent)(unsafe.Pointer(se)).Fs_aliases = buf + **(**uintptr)(__ccgo_up((*Tservent)(unsafe.Pointer(se)).Fs_aliases)) = (*Tservent)(unsafe.Pointer(se)).Fs_name + **(**uintptr)(__ccgo_up((*Tservent)(unsafe.Pointer(se)).Fs_aliases + 1*8)) = uintptr(0) + (*Tservent)(unsafe.Pointer(se)).Fs_port = Int32FromUint16(Xhtons(tls, (**(**[2]Tservice)(__ccgo_up(bp)))[0].Fport)) + if Int32FromUint8((**(**[2]Tservice)(__ccgo_up(bp)))[0].Fproto) == int32(IPPROTO_TCP) { + v1 = __ccgo_ts + 1094 + } else { + v1 = __ccgo_ts + 1098 + } + (*Tservent)(unsafe.Pointer(se)).Fs_proto = v1 + **(**uintptr)(__ccgo_up(res)) = se + return 0 +} + +func Xgetsockname(tls *TLS, fd int32, addr uintptr, len1 uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v addr=%v len1=%v, (%v:)", tls, fd, addr, len1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(96) + defer tls.Free(96) + var r, v10 int64 + var v1, v2, v3 int32 + var v4, v5, v6, v7, v8, v9 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _, _, _ = r, v1, v10, v2, v3, v4, v5, v6, v7, v8, v9 + v1 = int32(SYS_getsockname) + v2 = int32(__SC_getsockname) + v3 = 0 + v4 = int64(fd) + v5 = int64(addr) + v6 = int64(len1) + v7 = int64(Int32FromInt32(0)) + v8 = int64(Int32FromInt32(0)) + v9 = int64(Int32FromInt32(0)) + if v3 != 0 { + r = ___syscall_cp(tls, int64(v1), v4, v5, v6, v7, v8, v9) + } else { + r = X__syscall6(tls, int64(v1), v4, v5, v6, v7, v8, v9) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v10 = r + goto _11 + } + if v3 != 0 { + *(*[6]int64)(unsafe.Pointer(bp)) = [6]int64{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = ___syscall_cp(tls, int64(SYS_socketcall), int64(v2), int64(bp), 0, 0, 0, 0) + } else { + *(*[6]int64)(unsafe.Pointer(bp + 48)) = [6]int64{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = X__syscall2(tls, int64(SYS_socketcall), int64(v2), int64(bp+48)) + } + v10 = r + goto _11 +_11: + return int32(X__syscall_ret(tls, Uint64FromInt64(v10))) +} + +func Xgetsockopt(tls *TLS, fd int32, level int32, optname int32, optval uintptr, optlen uintptr) (r2 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v level=%v optname=%v optval=%v optlen=%v, (%v:)", tls, fd, level, optname, optval, optlen, origin(2)) + defer func() { trc("-> %v", r2) }() + } + bp := tls.Alloc(320) + defer tls.Free(320) + var r, v10 int64 + var r1, v1, v2, v3 int32 + var tv uintptr + var v4, v5, v6, v7, v8, v9 Tsyscall_arg_t + var _ /* tv32 at bp+296 */ [2]int64 + _, _, _, _, _, _, _, _, _, _, _, _, _ = r, r1, tv, v1, v10, v2, v3, v4, v5, v6, v7, v8, v9 + v1 = int32(SYS_getsockopt) + v2 = int32(__SC_getsockopt) + v3 = 0 + v4 = int64(fd) + v5 = int64(level) + v6 = int64(optname) + v7 = int64(optval) + v8 = int64(optlen) + v9 = int64(Int32FromInt32(0)) + if v3 != 0 { + r = ___syscall_cp(tls, int64(v1), v4, v5, v6, v7, v8, v9) + } else { + r = X__syscall6(tls, int64(v1), v4, v5, v6, v7, v8, v9) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v10 = r + goto _11 + } + if v3 != 0 { + *(*[6]int64)(unsafe.Pointer(bp + 200)) = [6]int64{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = ___syscall_cp(tls, int64(SYS_socketcall), int64(v2), int64(bp+200), 0, 0, 0, 0) + } else { + *(*[6]int64)(unsafe.Pointer(bp + 248)) = [6]int64{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = X__syscall2(tls, int64(SYS_socketcall), int64(v2), int64(bp+248)) + } + v10 = r + goto _11 +_11: + r1 = int32(v10) + if r1 == -int32(ENOPROTOOPT) { + switch level { + case int32(SOL_SOCKET): + switch optname { + case int32(SO_RCVTIMEO): + fallthrough + case int32(SO_SNDTIMEO): + if true { + break + } + if uint64(**(**Tsocklen_t)(__ccgo_up(optlen))) < uint64(16) { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL)))) + } + if optname == int32(SO_RCVTIMEO) { + optname = int32(SO_RCVTIMEO_OLD) + } + if optname == int32(SO_SNDTIMEO) { + optname = int32(SO_SNDTIMEO_OLD) + } + *(*[1]Tsocklen_t)(unsafe.Pointer(bp + 96)) = [1]Tsocklen_t{ + 0: uint32(16), + } + v1 = int32(SYS_getsockopt) + v2 = int32(__SC_getsockopt) + v3 = 0 + v4 = int64(fd) + v5 = int64(level) + v6 = int64(optname) + v7 = int64(bp + 296) + v8 = int64(bp + 96) + v9 = int64(Int32FromInt32(0)) + if v3 != 0 { + r = ___syscall_cp(tls, int64(v1), v4, v5, v6, v7, v8, v9) + } else { + r = X__syscall6(tls, int64(v1), v4, v5, v6, v7, v8, v9) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v10 = r + goto _22 + } + if v3 != 0 { + *(*[6]int64)(unsafe.Pointer(bp + 200)) = [6]int64{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = ___syscall_cp(tls, int64(SYS_socketcall), int64(v2), int64(bp+200), 0, 0, 0, 0) + } else { + *(*[6]int64)(unsafe.Pointer(bp + 248)) = [6]int64{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = X__syscall2(tls, int64(SYS_socketcall), int64(v2), int64(bp+248)) + } + v10 = r + goto _22 + _22: + r1 = int32(v10) + if r1 < 0 { + break + } + tv = optval + (*Ttimeval)(unsafe.Pointer(tv)).Ftv_sec = (**(**[2]int64)(__ccgo_up(bp + 296)))[0] + (*Ttimeval)(unsafe.Pointer(tv)).Ftv_usec = (**(**[2]int64)(__ccgo_up(bp + 296)))[int32(1)] + **(**Tsocklen_t)(__ccgo_up(optlen)) = uint32(16) + case int32(SO_TIMESTAMP): + fallthrough + case int32(SO_TIMESTAMPNS): + if true { + break + } + if optname == int32(SO_TIMESTAMP) { + optname = int32(SO_TIMESTAMP_OLD) + } + if optname == int32(SO_TIMESTAMPNS) { + optname = int32(SO_TIMESTAMPNS_OLD) + } + v1 = int32(SYS_getsockopt) + v2 = int32(__SC_getsockopt) + v3 = 0 + v4 = int64(fd) + v5 = int64(level) + v6 = int64(optname) + v7 = int64(optval) + v8 = int64(optlen) + v9 = int64(Int32FromInt32(0)) + if v3 != 0 { + r = ___syscall_cp(tls, int64(v1), v4, v5, v6, v7, v8, v9) + } else { + r = X__syscall6(tls, int64(v1), v4, v5, v6, v7, v8, v9) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v10 = r + goto _33 + } + if v3 != 0 { + *(*[6]int64)(unsafe.Pointer(bp + 200)) = [6]int64{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = ___syscall_cp(tls, int64(SYS_socketcall), int64(v2), int64(bp+200), 0, 0, 0, 0) + } else { + *(*[6]int64)(unsafe.Pointer(bp + 248)) = [6]int64{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = X__syscall2(tls, int64(SYS_socketcall), int64(v2), int64(bp+248)) + } + v10 = r + goto _33 + _33: + r1 = int32(v10) + break + } + } + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r1))) +} + +func X__h_errno_location(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + if !((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Fstack != 0) { + return uintptr(unsafe.Pointer(&Xh_errno)) + } + return uintptr(___get_tp(tls)) + 160 +} + +func Xherror(tls *TLS, msg uintptr) { + if __ccgo_strace { + trc("tls=%v msg=%v, (%v:)", tls, msg, origin(2)) + } + bp := tls.Alloc(32) + defer tls.Free(32) + var v1, v2 uintptr + _, _ = v1, v2 + if msg != 0 { + v1 = msg + } else { + v1 = __ccgo_ts + } + if msg != 0 { + v2 = __ccgo_ts + 378 + } else { + v2 = __ccgo_ts + } + Xfprintf(tls, uintptr(unsafe.Pointer(&X__stderr_FILE)), __ccgo_ts+1102, VaList(bp+8, v1, v2, Xhstrerror(tls, **(**int32)(__ccgo_up(X__h_errno_location(tls)))))) +} + +var _msgs1 = [84]uint8{'H', 'o', 's', 't', ' ', 'n', 'o', 't', ' ', 'f', 'o', 'u', 'n', 'd', 0, 'T', 'r', 'y', ' ', 'a', 'g', 'a', 'i', 'n', 0, 'N', 'o', 'n', '-', 'r', 'e', 'c', 'o', 'v', 'e', 'r', 'a', 'b', 'l', 'e', ' ', 'e', 'r', 'r', 'o', 'r', 0, 'A', 'd', 'd', 'r', 'e', 's', 's', ' ', 'n', 'o', 't', ' ', 'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e', 0, 0, 'U', 'n', 'k', 'n', 'o', 'w', 'n', ' ', 'e', 'r', 'r', 'o', 'r'} + +func Xhstrerror(tls *TLS, ecode int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v ecode=%v, (%v:)", tls, ecode, origin(2)) + defer func() { trc("-> %v", r) }() + } + var s uintptr + _ = s + s = uintptr(unsafe.Pointer(&_msgs1)) + ecode = ecode - 1 + for { + if !(ecode != 0 && **(**uint8)(__ccgo_up(s)) != 0) { + break + } + for { + if !(**(**uint8)(__ccgo_up(s)) != 0) { + break + } + goto _2 + _2: + ; + s = s + 1 + } + goto _1 + _1: + ; + ecode = ecode - 1 + s = s + 1 + } + if !(**(**uint8)(__ccgo_up(s)) != 0) { + s = s + 1 + } + return X__lctrans_cur(tls, s) +} + +func Xhtonl(tls *TLS, n Tuint32_t) (r Tuint32_t) { + if __ccgo_strace { + trc("tls=%v n=%v, (%v:)", tls, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var u struct { + Fc [0]uint8 + Fi int32 + } + var v1 uint32 + var v2, v3 Tuint32_t + _, _, _, _ = u, v1, v2, v3 + u = *(*struct { + Fc [0]uint8 + Fi int32 + })(unsafe.Pointer(&struct{ f int32 }{f: int32(1)})) + if *(*uint8)(unsafe.Pointer(&u)) != 0 { + v2 = n + v3 = v2>>int32(24) | v2>>int32(8)&uint32(0xff00) | v2< %v", r) }() + } + var u struct { + Fc [0]uint8 + Fi int32 + } + var v1 int32 + var v2, v3 Tuint16_t + _, _, _, _ = u, v1, v2, v3 + u = *(*struct { + Fc [0]uint8 + Fi int32 + })(unsafe.Pointer(&struct{ f int32 }{f: int32(1)})) + if *(*uint8)(unsafe.Pointer(&u)) != 0 { + v2 = n + v3 = Uint16FromInt32(Int32FromUint16(v2)<>int32(8)) + goto _4 + _4: + v1 = Int32FromUint16(v3) + } else { + v1 = Int32FromUint16(n) + } + return Uint16FromInt32(v1) +} + +func Xif_freenameindex(tls *TLS, idx uintptr) { + if __ccgo_strace { + trc("tls=%v idx=%v, (%v:)", tls, idx, origin(2)) + } + Xfree(tls, idx) +} + +func Xif_indextoname(tls *TLS, index uint32, name uintptr) (r1 uintptr) { + if __ccgo_strace { + trc("tls=%v index=%v name=%v, (%v:)", tls, index, name, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var fd, r, v1 int32 + var _ /* ifr at bp+0 */ Tifreq + _, _, _ = fd, r, v1 + v1 = Xsocket(tls, int32(PF_LOCAL), Int32FromInt32(SOCK_DGRAM)|Int32FromInt32(SOCK_CLOEXEC), 0) + fd = v1 + if v1 < 0 { + return uintptr(0) + } + *(*int32)(unsafe.Pointer(bp + 16)) = Int32FromUint32(index) + r = Xioctl(tls, fd, int32(SIOCGIFNAME), VaList(bp+48, bp)) + X__syscall1(tls, int64(SYS_close), int64(fd)) + if r < 0 { + if **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(ENODEV) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENXIO) + } + return uintptr(0) + } + return Xstrncpy(tls, name, bp, uint64(IF_NAMESIZE)) +} + +type Tifnamemap = struct { + Fhash_next uint32 + Findex uint32 + Fnamelen uint8 + Fname [16]uint8 +} + +type Tifnameindexctx = struct { + Fnum uint32 + Fallocated uint32 + Fstr_bytes uint32 + Flist uintptr + Fhash [64]uint32 +} + +func _netlink_msg_to_nameindex(tls *TLS, pctx uintptr, h uintptr) (r int32) { + var a Tsize_t + var bucket, index, namelen, type1 int32 + var ctx, ifa, ifi, map1, rta uintptr + var i, v2 uint32 + _, _, _, _, _, _, _, _, _, _, _, _ = a, bucket, ctx, i, ifa, ifi, index, map1, namelen, rta, type1, v2 + ctx = pctx + if Int32FromUint16((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_type) == int32(RTM_NEWLINK) { + ifi = h + UintptrFromInt64(16) + index = (*Tifinfomsg)(unsafe.Pointer(ifi)).Fifi_index + type1 = int32(IFLA_IFNAME) + rta = h + UintptrFromInt64(16) + uintptr((Uint64FromInt64(16)+Uint64FromInt32(3))&Uint64FromInt32(^Int32FromInt32(3))) + } else { + ifa = h + UintptrFromInt64(16) + index = Int32FromUint32((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_index) + type1 = int32(IFA_LABEL) + rta = h + UintptrFromInt64(16) + uintptr((Uint64FromInt64(8)+Uint64FromInt32(3))&Uint64FromInt32(^Int32FromInt32(3))) + } + for { + if !(Uint64FromInt64(int64(h+uintptr((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_len))-int64(rta)) >= uint64(4)) { + break + } + if Int32FromUint16((*Trtattr)(unsafe.Pointer(rta)).Frta_type) != type1 { + goto _1 + } + namelen = Int32FromUint64(uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len) - uint64(4) - uint64(1)) + if namelen > int32(IF_NAMESIZE) { + return 0 + } + /* suppress duplicates */ + bucket = index % int32(IFADDRS_HASH_SIZE) + i = **(**uint32)(__ccgo_up(ctx + 24 + uintptr(bucket)*4)) + for i != 0 { + map1 = (*Tifnameindexctx)(unsafe.Pointer(ctx)).Flist + uintptr(i-uint32(1))*28 + if (*Tifnamemap)(unsafe.Pointer(map1)).Findex == Uint32FromInt32(index) && Int32FromUint8((*Tifnamemap)(unsafe.Pointer(map1)).Fnamelen) == namelen && Xmemcmp(tls, map1+9, rta+UintptrFromInt64(4), Uint64FromInt32(namelen)) == 0 { + return 0 + } + i = (*Tifnamemap)(unsafe.Pointer(map1)).Fhash_next + } + if (*Tifnameindexctx)(unsafe.Pointer(ctx)).Fnum >= (*Tifnameindexctx)(unsafe.Pointer(ctx)).Fallocated { + if (*Tifnameindexctx)(unsafe.Pointer(ctx)).Fallocated != 0 { + v2 = (*Tifnameindexctx)(unsafe.Pointer(ctx)).Fallocated*uint32(2) + uint32(1) + } else { + v2 = uint32(8) + } + a = uint64(v2) + if a > Uint64FromUint64(0xffffffffffffffff)/Uint64FromInt64(28) { + return -int32(1) + } + map1 = Xrealloc(tls, (*Tifnameindexctx)(unsafe.Pointer(ctx)).Flist, a*uint64(28)) + if !(map1 != 0) { + return -int32(1) + } + (*Tifnameindexctx)(unsafe.Pointer(ctx)).Flist = map1 + (*Tifnameindexctx)(unsafe.Pointer(ctx)).Fallocated = uint32(a) + } + map1 = (*Tifnameindexctx)(unsafe.Pointer(ctx)).Flist + uintptr((*Tifnameindexctx)(unsafe.Pointer(ctx)).Fnum)*28 + (*Tifnamemap)(unsafe.Pointer(map1)).Findex = Uint32FromInt32(index) + (*Tifnamemap)(unsafe.Pointer(map1)).Fnamelen = Uint8FromInt32(namelen) + Xmemcpy(tls, map1+9, rta+UintptrFromInt64(4), Uint64FromInt32(namelen)) + **(**uint32)(__ccgo_up(ctx + 8)) += Uint32FromInt32(namelen + int32(1)) + (*Tifnameindexctx)(unsafe.Pointer(ctx)).Fnum = (*Tifnameindexctx)(unsafe.Pointer(ctx)).Fnum + 1 + (*Tifnamemap)(unsafe.Pointer(map1)).Fhash_next = **(**uint32)(__ccgo_up(ctx + 24 + uintptr(bucket)*4)) + **(**uint32)(__ccgo_up(ctx + 24 + uintptr(bucket)*4)) = (*Tifnameindexctx)(unsafe.Pointer(ctx)).Fnum + return 0 + goto _1 + _1: + ; + rta = rta + uintptr((Int32FromUint16((*Trtattr)(unsafe.Pointer(rta)).Frta_len)+Int32FromInt32(3)) & ^Int32FromInt32(3)) + } + return 0 +} + +func Xif_nameindex(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(288) + defer tls.Free(288) + var ctx, d, ifs, p, s, v2 uintptr + var i int32 + var _ /* _ctx at bp+0 */ Tifnameindexctx + var _ /* cs at bp+280 */ int32 + _, _, _, _, _, _, _ = ctx, d, i, ifs, p, s, v2 + ctx = bp + ifs = uintptr(0) + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp+280) + Xmemset(tls, ctx, 0, uint64(280)) + if X__rtnetlink_enumerate(tls, PF_UNSPEC, int32(PF_INET), __ccgo_fp(_netlink_msg_to_nameindex), ctx) < 0 { + goto err + } + ifs = Xmalloc(tls, uint64((*Tifnameindexctx)(unsafe.Pointer(ctx)).Fnum+Uint32FromInt32(1))*16+uint64((*Tifnameindexctx)(unsafe.Pointer(ctx)).Fstr_bytes)) + if !(ifs != 0) { + goto err + } + p = ifs + uintptr((*Tifnameindexctx)(unsafe.Pointer(ctx)).Fnum)*16 + UintptrFromInt32(1)*16 + i = Int32FromUint32((*Tifnameindexctx)(unsafe.Pointer(ctx)).Fnum) + d = ifs + s = (*Tifnameindexctx)(unsafe.Pointer(ctx)).Flist + for { + if !(i != 0) { + break + } + (*Tif_nameindex)(unsafe.Pointer(d)).Fif_index = (*Tifnamemap)(unsafe.Pointer(s)).Findex + (*Tif_nameindex)(unsafe.Pointer(d)).Fif_name = p + Xmemcpy(tls, p, s+9, uint64((*Tifnamemap)(unsafe.Pointer(s)).Fnamelen)) + p = p + uintptr((*Tifnamemap)(unsafe.Pointer(s)).Fnamelen) + v2 = p + p = p + 1 + **(**uint8)(__ccgo_up(v2)) = uint8(0) + goto _1 + _1: + ; + i = i - 1 + s += 28 + d += 16 + } + (*Tif_nameindex)(unsafe.Pointer(d)).Fif_index = uint32(0) + (*Tif_nameindex)(unsafe.Pointer(d)).Fif_name = uintptr(0) + goto err +err: + ; + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 280)), uintptr(0)) + Xfree(tls, (*Tifnameindexctx)(unsafe.Pointer(ctx)).Flist) + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOBUFS) + return ifs +} + +func Xif_nametoindex(tls *TLS, name uintptr) (r1 uint32) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var fd, r, v1 int32 + var _ /* ifr at bp+0 */ Tifreq + _, _, _ = fd, r, v1 + v1 = Xsocket(tls, int32(PF_LOCAL), Int32FromInt32(SOCK_DGRAM)|Int32FromInt32(SOCK_CLOEXEC), 0) + fd = v1 + if v1 < 0 { + return uint32(0) + } + Xstrncpy(tls, bp, name, uint64(16)) + r = Xioctl(tls, fd, int32(SIOCGIFINDEX), VaList(bp+48, bp)) + X__syscall1(tls, int64(SYS_close), int64(fd)) + if r < 0 { + v1 = 0 + } else { + v1 = *(*int32)(unsafe.Pointer(bp + 16)) + } + return Uint32FromInt32(v1) +} + +func Xinet_addr(tls *TLS, p uintptr) (r Tin_addr_t) { + if __ccgo_strace { + trc("tls=%v p=%v, (%v:)", tls, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* a at bp+0 */ Tin_addr + if !(X__inet_aton(tls, p, bp) != 0) { + return Uint32FromInt32(-Int32FromInt32(1)) + } + return (**(**Tin_addr)(__ccgo_up(bp))).Fs_addr +} + +func X__inet_aton(tls *TLS, s0 uintptr, dest uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s0=%v dest=%v, (%v:)", tls, s0, dest, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + var d, s uintptr + var i int32 + var _ /* a at bp+0 */ [4]uint64 + var _ /* z at bp+32 */ uintptr + _, _, _ = d, i, s + s = s0 + d = dest + **(**[4]uint64)(__ccgo_up(bp)) = [4]uint64{} + i = 0 + for { + if !(i < int32(4)) { + break + } + (**(**[4]uint64)(__ccgo_up(bp)))[i] = Xstrtoul(tls, s, bp+32, 0) + if **(**uintptr)(__ccgo_up(bp + 32)) == s || **(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 32)))) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 32))))) != int32('.') || !(BoolInt32(uint32(**(**uint8)(__ccgo_up(s)))-Uint32FromUint8('0') < Uint32FromInt32(10)) != 0) { + return 0 + } + if !(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 32)))) != 0) { + break + } + s = **(**uintptr)(__ccgo_up(bp + 32)) + uintptr(1) + goto _1 + _1: + ; + i = i + 1 + } + if i == int32(4) { + return 0 + } + switch i { + case 0: + (**(**[4]uint64)(__ccgo_up(bp)))[int32(1)] = (**(**[4]uint64)(__ccgo_up(bp)))[0] & uint64(0xffffff) + **(**uint64)(__ccgo_up(bp)) >>= uint64(24) + fallthrough + case int32(1): + (**(**[4]uint64)(__ccgo_up(bp)))[int32(2)] = (**(**[4]uint64)(__ccgo_up(bp)))[int32(1)] & uint64(0xffff) + **(**uint64)(__ccgo_up(bp + 1*8)) >>= uint64(16) + fallthrough + case int32(2): + (**(**[4]uint64)(__ccgo_up(bp)))[int32(3)] = (**(**[4]uint64)(__ccgo_up(bp)))[int32(2)] & uint64(0xff) + **(**uint64)(__ccgo_up(bp + 2*8)) >>= uint64(8) + } + i = 0 + for { + if !(i < int32(4)) { + break + } + if (**(**[4]uint64)(__ccgo_up(bp)))[i] > uint64(255) { + return 0 + } + **(**uint8)(__ccgo_up(d + uintptr(i))) = uint8((**(**[4]uint64)(__ccgo_up(bp)))[i]) + goto _2 + _2: + ; + i = i + 1 + } + return int32(1) +} + +func Xinet_aton(tls *TLS, s0 uintptr, dest uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s0=%v dest=%v, (%v:)", tls, s0, dest, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__inet_aton(tls, s0, dest) +} + +func Xinet_network(tls *TLS, p uintptr) (r Tin_addr_t) { + if __ccgo_strace { + trc("tls=%v p=%v, (%v:)", tls, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xntohl(tls, Xinet_addr(tls, p)) +} + +func Xinet_makeaddr(tls *TLS, n Tin_addr_t, h Tin_addr_t) (r Tin_addr) { + if __ccgo_strace { + trc("tls=%v n=%v h=%v, (%v:)", tls, n, h, origin(2)) + defer func() { trc("-> %v", r) }() + } + if n < uint32(256) { + h = h | n< %v", r) }() + } + var h Tuint32_t + _ = h + h = in.Fs_addr + if h>>int32(24) < uint32(128) { + return h & uint32(0xffffff) + } + if h>>int32(24) < uint32(192) { + return h & uint32(0xffff) + } + return h & uint32(0xff) +} + +func Xinet_netof(tls *TLS, in Tin_addr) (r Tin_addr_t) { + if __ccgo_strace { + trc("tls=%v in=%v, (%v:)", tls, in, origin(2)) + defer func() { trc("-> %v", r) }() + } + var h Tuint32_t + _ = h + h = in.Fs_addr + if h>>int32(24) < uint32(128) { + return h >> int32(24) + } + if h>>int32(24) < uint32(192) { + return h >> int32(16) + } + return h >> int32(8) +} + +func Xinet_ntoa(tls *TLS, _in Tin_addr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v _in=%v, (%v:)", tls, _in, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + *(*Tin_addr)(unsafe.Pointer(bp)) = _in + var a uintptr + _ = a + a = bp + Xsnprintf(tls, uintptr(unsafe.Pointer(&_buf4)), uint64(16), __ccgo_ts+1110, VaList(bp+16, Int32FromUint8(**(**uint8)(__ccgo_up(a))), Int32FromUint8(**(**uint8)(__ccgo_up(a + 1))), Int32FromUint8(**(**uint8)(__ccgo_up(a + 2))), Int32FromUint8(**(**uint8)(__ccgo_up(a + 3))))) + return uintptr(unsafe.Pointer(&_buf4)) +} + +var _buf4 [16]uint8 + +func Xinet_ntop(tls *TLS, af int32, a0 uintptr, s uintptr, l Tsocklen_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v af=%v a0=%v s=%v l=%v, (%v:)", tls, af, a0, s, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(192) + defer tls.Free(192) + var a uintptr + var best, i, j, max, v2 int32 + var v3 uint8 + var _ /* buf at bp+0 */ [100]uint8 + _, _, _, _, _, _, _ = a, best, i, j, max, v2, v3 + a = a0 + switch af { + case int32(PF_INET): + if Uint32FromInt32(Xsnprintf(tls, s, uint64(l), __ccgo_ts+1110, VaList(bp+112, Int32FromUint8(**(**uint8)(__ccgo_up(a))), Int32FromUint8(**(**uint8)(__ccgo_up(a + 1))), Int32FromUint8(**(**uint8)(__ccgo_up(a + 2))), Int32FromUint8(**(**uint8)(__ccgo_up(a + 3)))))) < l { + return s + } + case int32(PF_INET6): + if Xmemcmp(tls, a, __ccgo_ts+1057, uint64(12)) != 0 { + Xsnprintf(tls, bp, uint64(100), __ccgo_ts+1122, VaList(bp+112, int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 1))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 2)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 3))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 4)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 5))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 6)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 7))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 8)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 9))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 10)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 11))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 12)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 13))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 14)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 15))))) + } else { + Xsnprintf(tls, bp, uint64(100), __ccgo_ts+1146, VaList(bp+112, int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 1))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 2)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 3))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 4)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 5))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 6)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 7))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 8)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 9))), int32(256)*Int32FromUint8(**(**uint8)(__ccgo_up(a + 10)))+Int32FromUint8(**(**uint8)(__ccgo_up(a + 11))), Int32FromUint8(**(**uint8)(__ccgo_up(a + 12))), Int32FromUint8(**(**uint8)(__ccgo_up(a + 13))), Int32FromUint8(**(**uint8)(__ccgo_up(a + 14))), Int32FromUint8(**(**uint8)(__ccgo_up(a + 15))))) + } + /* Replace longest /(^0|:)[:0]{2,}/ with "::" */ + v2 = Int32FromInt32(0) + best = v2 + i = v2 + max = Int32FromInt32(2) + for { + if !((**(**[100]uint8)(__ccgo_up(bp)))[i] != 0) { + break + } + if i != 0 && Int32FromUint8((**(**[100]uint8)(__ccgo_up(bp)))[i]) != int32(':') { + goto _1 + } + j = Int32FromUint64(Xstrspn(tls, bp+uintptr(i), __ccgo_ts+1176)) + if j > max { + best = i + max = j + } + goto _1 + _1: + ; + i = i + 1 + } + if max > int32(3) { + v3 = Uint8FromUint8(':') + (**(**[100]uint8)(__ccgo_up(bp)))[best+int32(1)] = v3 + (**(**[100]uint8)(__ccgo_up(bp)))[best] = v3 + Xmemmove(tls, bp+uintptr(best)+uintptr(2), bp+uintptr(best)+uintptr(max), Uint64FromInt32(i-best-max+int32(1))) + } + if _strlen(tls, bp) < uint64(l) { + Xstrcpy(tls, s, bp) + return s + } + default: + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EAFNOSUPPORT) + return uintptr(0) + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOSPC) + return uintptr(0) +} + +func _hexval(tls *TLS, c uint32) (r int32) { + if c-uint32('0') < uint32(10) { + return Int32FromUint32(c - uint32('0')) + } + c = c | uint32(32) + if c-uint32('a') < uint32(6) { + return Int32FromUint32(c - uint32('a') + uint32(10)) + } + return -int32(1) +} + +func Xinet_pton(tls *TLS, af int32, s uintptr, a0 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v af=%v s=%v a0=%v, (%v:)", tls, af, s, a0, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var a, v4 uintptr + var brk, d, i, j, need_v4, v, v3, v9 int32 + var v5 bool + var _ /* ip at bp+0 */ [8]Tuint16_t + _, _, _, _, _, _, _, _, _, _, _ = a, brk, d, i, j, need_v4, v, v3, v4, v5, v9 + a = a0 + brk = -int32(1) + need_v4 = 0 + if af == int32(PF_INET) { + i = 0 + for { + if !(i < int32(4)) { + break + } + v3 = Int32FromInt32(0) + j = v3 + v = v3 + for { + if !(j < int32(3) && BoolInt32(uint32(**(**uint8)(__ccgo_up(s + uintptr(j))))-uint32('0') < uint32(10)) != 0) { + break + } + v = int32(10)*v + Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(j)))) - int32('0') + goto _2 + _2: + ; + j = j + 1 + } + if j == 0 || j > int32(1) && Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('0') || v > int32(255) { + return 0 + } + **(**uint8)(__ccgo_up(a + uintptr(i))) = Uint8FromInt32(v) + if Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(j)))) == 0 && i == int32(3) { + return int32(1) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(j)))) != int32('.') { + return 0 + } + s = s + uintptr(j+int32(1)) + goto _1 + _1: + ; + i = i + 1 + } + return 0 + } else { + if af != int32(PF_INET6) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EAFNOSUPPORT) + return -int32(1) + } + } + if v5 = Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32(':'); v5 { + s = s + 1 + v4 = s + } + if v5 && Int32FromUint8(**(**uint8)(__ccgo_up(v4))) != int32(':') { + return 0 + } + i = 0 + for { + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32(':') && brk < 0 { + brk = i + (**(**[8]Tuint16_t)(__ccgo_up(bp)))[i&int32(7)] = uint16(0) + s = s + 1 + v4 = s + if !(**(**uint8)(__ccgo_up(v4)) != 0) { + break + } + if i == int32(7) { + return 0 + } + goto _6 + } + v3 = Int32FromInt32(0) + j = v3 + v = v3 + for { + if v5 = j < int32(4); v5 { + v9 = _hexval(tls, uint32(**(**uint8)(__ccgo_up(s + uintptr(j))))) + d = v9 + } + if !(v5 && v9 >= 0) { + break + } + v = int32(16)*v + d + goto _8 + _8: + ; + j = j + 1 + } + if j == 0 { + return 0 + } + (**(**[8]Tuint16_t)(__ccgo_up(bp)))[i&int32(7)] = Uint16FromInt32(v) + if !(**(**uint8)(__ccgo_up(s + uintptr(j))) != 0) && (brk >= 0 || i == int32(7)) { + break + } + if i == int32(7) { + return 0 + } + if Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(j)))) != int32(':') { + if Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(j)))) != int32('.') || i < int32(6) && brk < 0 { + return 0 + } + need_v4 = int32(1) + i = i + 1 + (**(**[8]Tuint16_t)(__ccgo_up(bp)))[i&int32(7)] = uint16(0) + break + } + s = s + uintptr(j+int32(1)) + goto _6 + _6: + ; + i = i + 1 + } + if brk >= 0 { + Xmemmove(tls, bp+uintptr(brk)*2+uintptr(7)*2-uintptr(i)*2, bp+uintptr(brk)*2, Uint64FromInt32(int32(2)*(i+int32(1)-brk))) + j = 0 + for { + if !(j < int32(7)-i) { + break + } + (**(**[8]Tuint16_t)(__ccgo_up(bp)))[brk+j] = uint16(0) + goto _12 + _12: + ; + j = j + 1 + } + } + j = 0 + for { + if !(j < int32(8)) { + break + } + v4 = a + a = a + 1 + **(**uint8)(__ccgo_up(v4)) = Uint8FromInt32(Int32FromUint16((**(**[8]Tuint16_t)(__ccgo_up(bp)))[j]) >> int32(8)) + v4 = a + a = a + 1 + **(**uint8)(__ccgo_up(v4)) = uint8((**(**[8]Tuint16_t)(__ccgo_up(bp)))[j]) + goto _13 + _13: + ; + j = j + 1 + } + if need_v4 != 0 && Xinet_pton(tls, int32(PF_INET), s, a-uintptr(4)) <= 0 { + return 0 + } + return int32(1) +} + +func Xlisten(tls *TLS, fd int32, backlog int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v backlog=%v, (%v:)", tls, fd, backlog, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(96) + defer tls.Free(96) + var r, v10 int64 + var v1, v2, v3 int32 + var v4, v5, v6, v7, v8, v9 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _, _, _ = r, v1, v10, v2, v3, v4, v5, v6, v7, v8, v9 + v1 = int32(SYS_listen) + v2 = int32(__SC_listen) + v3 = 0 + v4 = int64(fd) + v5 = int64(backlog) + v6 = int64(Int32FromInt32(0)) + v7 = int64(Int32FromInt32(0)) + v8 = int64(Int32FromInt32(0)) + v9 = int64(Int32FromInt32(0)) + if v3 != 0 { + r = ___syscall_cp(tls, int64(v1), v4, v5, v6, v7, v8, v9) + } else { + r = X__syscall6(tls, int64(v1), v4, v5, v6, v7, v8, v9) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v10 = r + goto _11 + } + if v3 != 0 { + *(*[6]int64)(unsafe.Pointer(bp)) = [6]int64{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = ___syscall_cp(tls, int64(SYS_socketcall), int64(v2), int64(bp), 0, 0, 0, 0) + } else { + *(*[6]int64)(unsafe.Pointer(bp + 48)) = [6]int64{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = X__syscall2(tls, int64(SYS_socketcall), int64(v2), int64(bp+48)) + } + v10 = r + goto _11 +_11: + return int32(X__syscall_ret(tls, Uint64FromInt64(v10))) +} + +func X__lookup_ipliteral(tls *TLS, buf uintptr, name uintptr, family int32) (r int32) { + if __ccgo_strace { + trc("tls=%v buf=%v name=%v family=%v, (%v:)", tls, buf, name, family, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(96) + defer tls.Free(96) + var p, v1 uintptr + var scopeid uint64 + var _ /* a4 at bp+0 */ Tin_addr + var _ /* a6 at bp+4 */ Tin6_addr + var _ /* tmp at bp+20 */ [64]uint8 + var _ /* z at bp+88 */ uintptr + _, _, _ = p, scopeid, v1 + if X__inet_aton(tls, name, bp) > 0 { + if family == int32(PF_INET6) { /* wrong family */ + return -int32(5) + } + Xmemcpy(tls, buf+8, bp, uint64(4)) + (**(**Taddress)(__ccgo_up(buf))).Ffamily = int32(PF_INET) + (**(**Taddress)(__ccgo_up(buf))).Fscopeid = uint32(0) + return int32(1) + } + p = Xstrchr(tls, name, int32('%')) + scopeid = uint64(0) + if p != 0 && int64(p)-int64(name) < int64(64) { + Xmemcpy(tls, bp+20, name, Uint64FromInt64(int64(p)-int64(name))) + (**(**[64]uint8)(__ccgo_up(bp + 20)))[int64(p)-int64(name)] = uint8(0) + name = bp + 20 + } + if Xinet_pton(tls, int32(PF_INET6), name, bp+4) <= 0 { + return 0 + } + if family == int32(PF_INET) { /* wrong family */ + return -int32(5) + } + Xmemcpy(tls, buf+8, bp+4, uint64(16)) + (**(**Taddress)(__ccgo_up(buf))).Ffamily = int32(PF_INET6) + if p != 0 { + p = p + 1 + v1 = p + if BoolInt32(uint32(**(**uint8)(__ccgo_up(v1)))-uint32('0') < uint32(10)) != 0 { + scopeid = Xstrtoull(tls, p, bp+88, int32(10)) + } else { + **(**uintptr)(__ccgo_up(bp + 88)) = p - uintptr(1) + } + if **(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 88)))) != 0 { + if !(Int32FromUint8(**(**Tuint8_t)(__ccgo_up(bp + 4))) == int32(0xfe) && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(bp + 4 + 1)))&int32(0xc0) == int32(0x80)) && !(Int32FromUint8(**(**Tuint8_t)(__ccgo_up(bp + 4))) == int32(0xff) && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(bp + 4 + 1)))&int32(0xf) == int32(0x2)) { + return -int32(2) + } + scopeid = uint64(Xif_nametoindex(tls, p)) + if !(scopeid != 0) { + return -int32(2) + } + } + if scopeid > uint64(0xffffffff) { + return -int32(2) + } + } + (**(**Taddress)(__ccgo_up(buf))).Fscopeid = uint32(scopeid) + return int32(1) +} + +const ABUF_SIZE = 4800 +const DAS_MATCHINGLABEL = 268435456 +const DAS_MATCHINGSCOPE = 536870912 +const DAS_ORDER_SHIFT = 0 +const DAS_PREC_SHIFT = 20 +const DAS_PREFIX_SHIFT = 8 +const DAS_SCOPE_SHIFT = 16 +const DAS_USABLE = 1073741824 +const RR_A = 1 +const RR_AAAA = 28 +const RR_CNAME = 5 + +func _is_valid_hostname(tls *TLS, host uintptr) (r int32) { + var s uintptr + _ = s + if Xstrnlen(tls, host, uint64(255))-uint64(1) >= uint64(254) || Xmbstowcs(tls, uintptr(0), host, uint64(0)) == Uint64FromInt32(-Int32FromInt32(1)) { + return 0 + } + s = host + for { + if !(Int32FromUint8(**(**uint8)(__ccgo_up(s))) >= int32(0x80) || Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('.') || Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('-') || Xisalnum(tls, Int32FromUint8(**(**uint8)(__ccgo_up(s)))) != 0) { + break + } + goto _1 + _1: + ; + s = s + 1 + } + return BoolInt32(!(**(**uint8)(__ccgo_up(s)) != 0)) +} + +func _name_from_null(tls *TLS, buf uintptr, name uintptr, family int32, flags int32) (r int32) { + var cnt, v1 int32 + _, _ = cnt, v1 + cnt = 0 + if name != 0 { + return 0 + } + if flags&int32(AI_PASSIVE) != 0 { + if family != int32(PF_INET6) { + v1 = cnt + cnt = cnt + 1 + **(**Taddress)(__ccgo_up(buf + uintptr(v1)*28)) = Taddress{ + Ffamily: int32(PF_INET), + } + } + if family != int32(PF_INET) { + v1 = cnt + cnt = cnt + 1 + **(**Taddress)(__ccgo_up(buf + uintptr(v1)*28)) = Taddress{ + Ffamily: int32(PF_INET6), + } + } + } else { + if family != int32(PF_INET6) { + v1 = cnt + cnt = cnt + 1 + **(**Taddress)(__ccgo_up(buf + uintptr(v1)*28)) = Taddress{ + Ffamily: int32(PF_INET), + Faddr: [16]Tuint8_t{ + 0: uint8(127), + 3: uint8(1), + }, + } + } + if family != int32(PF_INET) { + v1 = cnt + cnt = cnt + 1 + **(**Taddress)(__ccgo_up(buf + uintptr(v1)*28)) = Taddress{ + Ffamily: int32(PF_INET6), + Faddr: [16]Tuint8_t{ + 15: uint8(1), + }, + } + } + } + return cnt +} + +func _name_from_numeric(tls *TLS, buf uintptr, name uintptr, family int32) (r int32) { + return X__lookup_ipliteral(tls, buf, name, family) +} + +func _name_from_hosts(tls *TLS, buf uintptr, canon uintptr, name uintptr, family int32) (r int32) { + bp := tls.Alloc(1776) + defer tls.Free(1776) + var badfam, cnt, have_canon, v5, v6, v8, v9 int32 + var f, p, z, v1, v2 uintptr + var l Tsize_t + var v11, v12 bool + var _ /* _buf at bp+512 */ [1032]uint8 + var _ /* _f at bp+1544 */ TFILE + var _ /* line at bp+0 */ [512]uint8 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = badfam, cnt, f, have_canon, l, p, z, v1, v11, v12, v2, v5, v6, v8, v9 + l = _strlen(tls, name) + cnt = 0 + badfam = 0 + have_canon = 0 + f = X__fopen_rb_ca(tls, __ccgo_ts+1046, bp+1544, bp+512, uint64(1032)) + if !(f != 0) { + switch **(**int32)(__ccgo_up(X__errno_location(tls))) { + case int32(ENOENT): + fallthrough + case int32(ENOTDIR): + fallthrough + case int32(EACCES): + return 0 + default: + return -int32(11) + } + } + for Xfgets(tls, bp, int32(512), f) != 0 && cnt < int32(MAXADDRS) { + v1 = Xstrchr(tls, bp, int32('#')) + p = v1 + if v1 != 0 { + v2 = p + p = p + 1 + **(**uint8)(__ccgo_up(v2)) = uint8('\n') + **(**uint8)(__ccgo_up(p)) = Uint8FromInt32(0) + } + p = bp + uintptr(1) + for { + v1 = Xstrstr(tls, p, name) + p = v1 + if v12 = v1 != 0; v12 { + v5 = Int32FromUint8(**(**uint8)(__ccgo_up(p + uintptr(-Int32FromInt32(1))))) + v6 = BoolInt32(v5 == int32(' ') || Uint32FromInt32(v5)-uint32('\t') < uint32(5)) + goto _7 + _7: + ; + if v11 = !(v6 != 0); !v11 { + v8 = Int32FromUint8(**(**uint8)(__ccgo_up(p + uintptr(l)))) + v9 = BoolInt32(v8 == int32(' ') || Uint32FromInt32(v8)-uint32('\t') < uint32(5)) + goto _10 + _10: + } + } + if !(v12 && (v11 || !(v9 != 0))) { + break + } + goto _3 + _3: + ; + p = p + 1 + } + if !(p != 0) { + continue + } + /* Isolate IP address to parse */ + p = bp + for { + if v11 = **(**uint8)(__ccgo_up(p)) != 0; v11 { + v5 = Int32FromUint8(**(**uint8)(__ccgo_up(p))) + v6 = BoolInt32(v5 == int32(' ') || Uint32FromInt32(v5)-uint32('\t') < uint32(5)) + goto _16 + _16: + } + if !(v11 && !(v6 != 0)) { + break + } + goto _13 + _13: + ; + p = p + 1 + } + v1 = p + p = p + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(0) + switch _name_from_numeric(tls, buf+uintptr(cnt)*28, bp, family) { + case int32(1): + cnt = cnt + 1 + case 0: + continue + default: + badfam = -int32(5) + break + } + if have_canon != 0 { + continue + } + /* Extract first name as canonical name */ + for { + if v11 = **(**uint8)(__ccgo_up(p)) != 0; v11 { + v5 = Int32FromUint8(**(**uint8)(__ccgo_up(p))) + v6 = BoolInt32(v5 == int32(' ') || Uint32FromInt32(v5)-uint32('\t') < uint32(5)) + goto _22 + _22: + } + if !(v11 && v6 != 0) { + break + } + goto _19 + _19: + ; + p = p + 1 + } + z = p + for { + if v11 = **(**uint8)(__ccgo_up(z)) != 0; v11 { + v5 = Int32FromUint8(**(**uint8)(__ccgo_up(z))) + v6 = BoolInt32(v5 == int32(' ') || Uint32FromInt32(v5)-uint32('\t') < uint32(5)) + goto _27 + _27: + } + if !(v11 && !(v6 != 0)) { + break + } + goto _24 + _24: + ; + z = z + 1 + } + **(**uint8)(__ccgo_up(z)) = uint8(0) + if _is_valid_hostname(tls, p) != 0 { + have_canon = int32(1) + Xmemcpy(tls, canon, p, Uint64FromInt64(int64(z)-int64(p)+int64(1))) + } + } + X__fclose_ca(tls, f) + if cnt != 0 { + v5 = cnt + } else { + v5 = badfam + } + return v5 +} + +type Tdpc_ctx = struct { + Faddrs uintptr + Fcanon uintptr + Fcnt int32 + Frrtype int32 +} + +func _dns_parse_callback1(tls *TLS, c uintptr, rr int32, data uintptr, len1 int32, packet uintptr, plen int32) (r int32) { + bp := tls.Alloc(256) + defer tls.Free(256) + var ctx, v2 uintptr + var family, v1 int32 + var _ /* tmp at bp+0 */ [256]uint8 + _, _, _, _ = ctx, family, v1, v2 + ctx = c + if rr == int32(RR_CNAME) { + if X__dn_expand(tls, packet, packet+uintptr(plen), data, bp, int32(256)) > 0 && _is_valid_hostname(tls, bp) != 0 { + Xstrcpy(tls, (*Tdpc_ctx)(unsafe.Pointer(ctx)).Fcanon, bp) + } + return 0 + } + if (*Tdpc_ctx)(unsafe.Pointer(ctx)).Fcnt >= int32(MAXADDRS) { + return 0 + } + if rr != (*Tdpc_ctx)(unsafe.Pointer(ctx)).Frrtype { + return 0 + } + switch rr { + case int32(RR_A): + if len1 != int32(4) { + return -int32(1) + } + family = int32(PF_INET) + case int32(RR_AAAA): + if len1 != int32(16) { + return -int32(1) + } + family = int32(PF_INET6) + break + } + (**(**Taddress)(__ccgo_up((*Tdpc_ctx)(unsafe.Pointer(ctx)).Faddrs + uintptr((*Tdpc_ctx)(unsafe.Pointer(ctx)).Fcnt)*28))).Ffamily = family + (**(**Taddress)(__ccgo_up((*Tdpc_ctx)(unsafe.Pointer(ctx)).Faddrs + uintptr((*Tdpc_ctx)(unsafe.Pointer(ctx)).Fcnt)*28))).Fscopeid = uint32(0) + v2 = ctx + 16 + v1 = *(*int32)(unsafe.Pointer(v2)) + *(*int32)(unsafe.Pointer(v2)) = *(*int32)(unsafe.Pointer(v2)) + 1 + Xmemcpy(tls, (*Tdpc_ctx)(unsafe.Pointer(ctx)).Faddrs+uintptr(v1)*28+8, data, Uint64FromInt32(len1)) + return 0 +} + +func _name_from_dns(tls *TLS, buf uintptr, canon uintptr, name uintptr, family int32, conf uintptr) (r int32) { + bp := tls.Alloc(10240) + defer tls.Free(10240) + var i, nq int32 + var qtypes [2]int32 + var _ /* abuf at bp+560 */ [2][4800]uint8 + var _ /* alens at bp+10200 */ [2]int32 + var _ /* ap at bp+10176 */ [2]uintptr + var _ /* ctx at bp+10208 */ Tdpc_ctx + var _ /* qbuf at bp+0 */ [2][280]uint8 + var _ /* qlens at bp+10192 */ [2]int32 + var _ /* qp at bp+10160 */ [2]uintptr + _, _, _ = i, nq, qtypes + **(**[2]uintptr)(__ccgo_up(bp + 10160)) = [2]uintptr{ + 0: bp, + 1: bp + 1*280, + } + **(**[2]uintptr)(__ccgo_up(bp + 10176)) = [2]uintptr{ + 0: bp + 560, + 1: bp + 560 + 1*4800, + } + nq = 0 + **(**Tdpc_ctx)(__ccgo_up(bp + 10208)) = Tdpc_ctx{ + Faddrs: buf, + Fcanon: canon, + } + i = 0 + for { + if !(i < int32(2)) { + break + } + if family != _afrr[i].Faf { + (**(**[2]int32)(__ccgo_up(bp + 10192)))[nq] = X__res_mkquery(tls, 0, name, int32(1), _afrr[i].Frr, uintptr(0), 0, uintptr(0), bp+uintptr(nq)*280, int32(280)) + if (**(**[2]int32)(__ccgo_up(bp + 10192)))[nq] == -int32(1) { + return 0 + } + qtypes[nq] = _afrr[i].Frr + **(**uint8)(__ccgo_up(bp + uintptr(nq)*280 + 3)) = uint8(0) /* don't need AD flag */ + /* Ensure query IDs are distinct. */ + if nq != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(bp + uintptr(nq)*280))) == Int32FromUint8(**(**uint8)(__ccgo_up(bp))) { + **(**uint8)(__ccgo_up(bp + uintptr(nq)*280)) = **(**uint8)(__ccgo_up(bp + uintptr(nq)*280)) + 1 + } + nq = nq + 1 + } + goto _1 + _1: + ; + i = i + 1 + } + if X__res_msend_rc(tls, nq, bp+10160, bp+10192, bp+10176, bp+10200, int32(4800), conf) < 0 { + return -int32(11) + } + i = 0 + for { + if !(i < nq) { + break + } + if (**(**[2]int32)(__ccgo_up(bp + 10200)))[i] < int32(4) || Int32FromUint8(**(**uint8)(__ccgo_up(bp + 560 + uintptr(i)*4800 + 3)))&int32(15) == int32(2) { + return -int32(3) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(bp + 560 + uintptr(i)*4800 + 3)))&int32(15) == int32(3) { + return 0 + } + if Int32FromUint8(**(**uint8)(__ccgo_up(bp + 560 + uintptr(i)*4800 + 3)))&int32(15) != 0 { + return -int32(4) + } + goto _2 + _2: + ; + i = i + 1 + } + i = nq - int32(1) + for { + if !(i >= 0) { + break + } + (**(**Tdpc_ctx)(__ccgo_up(bp + 10208))).Frrtype = qtypes[i] + if Uint64FromInt32((**(**[2]int32)(__ccgo_up(bp + 10200)))[i]) > uint64(4800) { + (**(**[2]int32)(__ccgo_up(bp + 10200)))[i] = int32(4800) + } + X__dns_parse(tls, bp+560+uintptr(i)*4800, (**(**[2]int32)(__ccgo_up(bp + 10200)))[i], __ccgo_fp(_dns_parse_callback1), bp+10208) + goto _3 + _3: + ; + i = i - 1 + } + if (**(**Tdpc_ctx)(__ccgo_up(bp + 10208))).Fcnt != 0 { + return (**(**Tdpc_ctx)(__ccgo_up(bp + 10208))).Fcnt + } + return -int32(5) +} + +var _afrr = [2]struct { + Faf int32 + Frr int32 +}{ + 0: { + Faf: int32(PF_INET6), + Frr: int32(RR_A), + }, + 1: { + Faf: int32(PF_INET), + Frr: int32(RR_AAAA), + }, +} + +func _name_from_dns_search(tls *TLS, buf uintptr, canon uintptr, name uintptr, family int32) (r int32) { + bp := tls.Alloc(368) + defer tls.Free(368) + var cnt, v5, v6 int32 + var dots, l, v2 Tsize_t + var p, z uintptr + var v12 bool + var _ /* conf at bp+256 */ Tresolvconf + var _ /* search at bp+0 */ [256]uint8 + _, _, _, _, _, _, _, _, _ = cnt, dots, l, p, z, v12, v2, v5, v6 + if X__get_resolv_conf(tls, bp+256, bp, uint64(256)) < 0 { + return -int32(1) + } + /* Count dots, suppress search when >=ndots or name ends in + * a dot, which is an explicit request for global scope. */ + v2 = Uint64FromInt32(0) + l = v2 + dots = v2 + for { + if !(**(**uint8)(__ccgo_up(name + uintptr(l))) != 0) { + break + } + if Int32FromUint8(**(**uint8)(__ccgo_up(name + uintptr(l)))) == int32('.') { + dots = dots + 1 + } + goto _1 + _1: + ; + l = l + 1 + } + if dots >= uint64((**(**Tresolvconf)(__ccgo_up(bp + 256))).Fndots) || Int32FromUint8(**(**uint8)(__ccgo_up(name + uintptr(l-uint64(1))))) == int32('.') { + **(**uint8)(__ccgo_up(bp)) = uint8(0) + } + /* Strip final dot for canon, fail if multiple trailing dots. */ + if Int32FromUint8(**(**uint8)(__ccgo_up(name + uintptr(l-uint64(1))))) == int32('.') { + l = l - 1 + } + if !(l != 0) || Int32FromUint8(**(**uint8)(__ccgo_up(name + uintptr(l-uint64(1))))) == int32('.') { + return -int32(2) + } + /* This can never happen; the caller already checked length. */ + if l >= uint64(256) { + return -int32(2) + } + /* Name with search domain appended is setup in canon[]. This both + * provides the desired default canonical name (if the requested + * name is not a CNAME record) and serves as a buffer for passing + * the full requested name to name_from_dns. */ + Xmemcpy(tls, canon, name, l) + **(**uint8)(__ccgo_up(canon + uintptr(l))) = uint8('.') + p = bp + for { + if !(**(**uint8)(__ccgo_up(p)) != 0) { + break + } + for { + v5 = Int32FromUint8(**(**uint8)(__ccgo_up(p))) + v6 = BoolInt32(v5 == int32(' ') || Uint32FromInt32(v5)-uint32('\t') < uint32(5)) + goto _7 + _7: + if !(v6 != 0) { + break + } + goto _4 + _4: + ; + p = p + 1 + } + z = p + for { + if v12 = **(**uint8)(__ccgo_up(z)) != 0; v12 { + v5 = Int32FromUint8(**(**uint8)(__ccgo_up(z))) + v6 = BoolInt32(v5 == int32(' ') || Uint32FromInt32(v5)-uint32('\t') < uint32(5)) + goto _11 + _11: + } + if !(v12 && !(v6 != 0)) { + break + } + goto _8 + _8: + ; + z = z + 1 + } + if z == p { + break + } + if Uint64FromInt64(int64(z)-int64(p)) < uint64(256)-l-uint64(1) { + Xmemcpy(tls, canon+uintptr(l)+uintptr(1), p, Uint64FromInt64(int64(z)-int64(p))) + **(**uint8)(__ccgo_up(canon + uintptr(Uint64FromInt64(int64(z)-int64(p)+int64(1))+l))) = uint8(0) + cnt = _name_from_dns(tls, buf, canon, canon, family, bp+256) + if cnt != 0 { + return cnt + } + } + goto _3 + _3: + ; + p = z + } + **(**uint8)(__ccgo_up(canon + uintptr(l))) = uint8(0) + return _name_from_dns(tls, buf, canon, name, family, bp+256) +} + +type Tpolicy = struct { + Faddr [16]uint8 + Flen1 uint8 + Fmask uint8 + Fprec uint8 + Flabel uint8 +} + +var _defpolicy = [6]Tpolicy{ + 0: { + Faddr: [16]uint8{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1}, + Flen1: uint8(15), + Fmask: uint8(0xff), + Fprec: uint8(50), + }, + 1: { + Faddr: [16]uint8{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255}, + Flen1: uint8(11), + Fmask: uint8(0xff), + Fprec: uint8(35), + Flabel: uint8(4), + }, + 2: { + Faddr: [16]uint8{' ', 2}, + Flen1: uint8(1), + Fmask: uint8(0xff), + Fprec: uint8(30), + Flabel: uint8(2), + }, + 3: { + Faddr: [16]uint8{' ', 1}, + Flen1: uint8(3), + Fmask: uint8(0xff), + Fprec: uint8(5), + Flabel: uint8(5), + }, + 4: { + Faddr: [16]uint8{252}, + Fmask: uint8(0xfe), + Fprec: uint8(3), + Flabel: uint8(13), + }, + 5: { + Faddr: [16]uint8{}, + Fprec: uint8(40), + Flabel: uint8(1), + }, +} + +func _policyof(tls *TLS, a uintptr) (r uintptr) { + var i int32 + _ = i + i = 0 + for { + if Xmemcmp(tls, a, uintptr(unsafe.Pointer(&_defpolicy))+uintptr(i)*20, uint64(_defpolicy[i].Flen1)) != 0 { + goto _1 + } + if Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a + uintptr(_defpolicy[i].Flen1))))&Int32FromUint8(_defpolicy[i].Fmask) != Int32FromUint8(**(**uint8)(__ccgo_up(uintptr(unsafe.Pointer(&_defpolicy)) + uintptr(i)*20 + uintptr(_defpolicy[i].Flen1)))) { + goto _1 + } + return uintptr(unsafe.Pointer(&_defpolicy)) + uintptr(i)*20 + goto _1 + _1: + ; + i = i + 1 + } + return r +} + +func _labelof(tls *TLS, a uintptr) (r int32) { + return Int32FromUint8((*Tpolicy)(unsafe.Pointer(_policyof(tls, a))).Flabel) +} + +func _scopeof(tls *TLS, a uintptr) (r int32) { + if Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a))) == int32(0xff) { + return Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a + 1))) & int32(15) + } + if Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a))) == int32(0xfe) && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a + 1)))&int32(0xc0) == int32(0x80) { + return int32(2) + } + if **(**Tuint32_t)(__ccgo_up(a)) == uint32(0) && **(**Tuint32_t)(__ccgo_up(a + 1*4)) == uint32(0) && **(**Tuint32_t)(__ccgo_up(a + 2*4)) == uint32(0) && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a + 12))) == 0 && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a + 13))) == 0 && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a + 14))) == 0 && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a + 15))) == int32(1) { + return int32(2) + } + if Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a))) == int32(0xfe) && Int32FromUint8(**(**Tuint8_t)(__ccgo_up(a + 1)))&int32(0xc0) == int32(0xc0) { + return int32(5) + } + return int32(14) +} + +func _prefixmatch(tls *TLS, s uintptr, d uintptr) (r int32) { + var i uint32 + _ = i + i = uint32(0) + for { + if !(i < uint32(128) && !((Int32FromUint8(**(**Tuint8_t)(__ccgo_up(s + uintptr(i/uint32(8)))))^Int32FromUint8(**(**Tuint8_t)(__ccgo_up(d + uintptr(i/uint32(8))))))&(Int32FromInt32(128)>>(i%Uint32FromInt32(8))) != 0)) { + break + } + goto _1 + _1: + ; + i = i + 1 + } + return Int32FromUint32(i) +} + +func _addrcmp(tls *TLS, _a uintptr, _b uintptr) (r int32) { + var a, b uintptr + _, _ = a, b + a = _a + b = _b + return (*Taddress)(unsafe.Pointer(b)).Fsortkey - (*Taddress)(unsafe.Pointer(a)).Fsortkey +} + +func X__lookup_name(tls *TLS, buf uintptr, canon uintptr, name uintptr, family int32, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v buf=%v canon=%v name=%v family=%v flags=%v, (%v:)", tls, buf, canon, name, family, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(96) + defer tls.Free(96) + var cnt, dlabel, dprec, dscope, family1, fd, i, j, key, prefixlen, v1 int32 + var da, dpolicy, sa uintptr + var dalen Tsocklen_t + var l Tsize_t + var _ /* cs at bp+0 */ int32 + var _ /* da4 at bp+76 */ Tsockaddr_in + var _ /* da6 at bp+32 */ Tsockaddr_in6 + var _ /* sa4 at bp+60 */ Tsockaddr_in + var _ /* sa6 at bp+4 */ Tsockaddr_in6 + var _ /* salen at bp+92 */ Tsocklen_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = cnt, da, dalen, dlabel, dpolicy, dprec, dscope, family1, fd, i, j, key, l, prefixlen, sa, v1 + cnt = 0 + **(**uint8)(__ccgo_up(canon)) = uint8(0) + if name != 0 { + /* reject empty name and check len so it fits into temp bufs */ + l = Xstrnlen(tls, name, uint64(255)) + if l-uint64(1) >= uint64(254) { + return -int32(2) + } + Xmemcpy(tls, canon, name, l+uint64(1)) + } + /* Procedurally, a request for v6 addresses with the v4-mapped + * flag set is like a request for unspecified family, followed + * by filtering of the results. */ + if flags&int32(AI_V4MAPPED) != 0 { + if family == int32(PF_INET6) { + family = PF_UNSPEC + } else { + flags = flags - int32(AI_V4MAPPED) + } + } + /* Try each backend until there's at least one result. */ + cnt = _name_from_null(tls, buf, name, family, flags) + if !(cnt != 0) { + cnt = _name_from_numeric(tls, buf, name, family) + } + if !(cnt != 0) && !(flags&Int32FromInt32(AI_NUMERICHOST) != 0) { + cnt = _name_from_hosts(tls, buf, canon, name, family) + if !(cnt != 0) { + cnt = _name_from_dns_search(tls, buf, canon, name, family) + } + } + if cnt <= 0 { + if cnt != 0 { + v1 = cnt + } else { + v1 = -int32(2) + } + return v1 + } + /* Filter/transform results for v4-mapped lookup, if requested. */ + if flags&int32(AI_V4MAPPED) != 0 { + if !(flags&Int32FromInt32(AI_ALL) != 0) { + /* If any v6 results exist, remove v4 results. */ + i = 0 + for { + if !(i < cnt && (**(**Taddress)(__ccgo_up(buf + uintptr(i)*28))).Ffamily != int32(PF_INET6)) { + break + } + goto _2 + _2: + ; + i = i + 1 + } + if i < cnt { + j = 0 + for { + if !(i < cnt) { + break + } + if (**(**Taddress)(__ccgo_up(buf + uintptr(i)*28))).Ffamily == int32(PF_INET6) { + v1 = j + j = j + 1 + **(**Taddress)(__ccgo_up(buf + uintptr(v1)*28)) = **(**Taddress)(__ccgo_up(buf + uintptr(i)*28)) + } + goto _3 + _3: + ; + i = i + 1 + } + v1 = j + i = v1 + cnt = v1 + } + } + /* Translate any remaining v4 results to v6 */ + i = 0 + for { + if !(i < cnt) { + break + } + if (**(**Taddress)(__ccgo_up(buf + uintptr(i)*28))).Ffamily != int32(PF_INET) { + goto _6 + } + Xmemcpy(tls, buf+uintptr(i)*28+8+uintptr(12), buf+uintptr(i)*28+8, uint64(4)) + Xmemcpy(tls, buf+uintptr(i)*28+8, __ccgo_ts+1057, uint64(12)) + (**(**Taddress)(__ccgo_up(buf + uintptr(i)*28))).Ffamily = int32(PF_INET6) + goto _6 + _6: + ; + i = i + 1 + } + } + /* No further processing is needed if there are fewer than 2 + * results or if there are only IPv4 results. */ + if cnt < int32(2) || family == int32(PF_INET) { + return cnt + } + i = 0 + for { + if !(i < cnt) { + break + } + if (**(**Taddress)(__ccgo_up(buf + uintptr(i)*28))).Ffamily != int32(PF_INET) { + break + } + goto _7 + _7: + ; + i = i + 1 + } + if i == cnt { + return cnt + } + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp) + /* The following implements a subset of RFC 3484/6724 destination + * address selection by generating a single 31-bit sort key for + * each address. Rules 3, 4, and 7 are omitted for having + * excessive runtime and code size cost and dubious benefit. + * So far the label/precedence table cannot be customized. */ + i = 0 + for { + if !(i < cnt) { + break + } + family1 = (**(**Taddress)(__ccgo_up(buf + uintptr(i)*28))).Ffamily + key = 0 + **(**Tsockaddr_in6)(__ccgo_up(bp + 4)) = Tsockaddr_in6{} + **(**Tsockaddr_in6)(__ccgo_up(bp + 32)) = Tsockaddr_in6{ + Fsin6_family: uint16(PF_INET6), + Fsin6_port: uint16(65535), + Fsin6_scope_id: (**(**Taddress)(__ccgo_up(buf + uintptr(i)*28))).Fscopeid, + } + **(**Tsockaddr_in)(__ccgo_up(bp + 60)) = Tsockaddr_in{} + **(**Tsockaddr_in)(__ccgo_up(bp + 76)) = Tsockaddr_in{ + Fsin_family: uint16(PF_INET), + Fsin_port: uint16(65535), + } + if family1 == int32(PF_INET6) { + Xmemcpy(tls, bp+32+8, buf+uintptr(i)*28+8, uint64(16)) + da = bp + 32 + dalen = uint32(28) + sa = bp + 4 + **(**Tsocklen_t)(__ccgo_up(bp + 92)) = uint32(28) + } else { + Xmemcpy(tls, bp+4+8, __ccgo_ts+1057, uint64(12)) + Xmemcpy(tls, bp+32+8+uintptr(12), buf+uintptr(i)*28+8, uint64(4)) + Xmemcpy(tls, bp+32+8, __ccgo_ts+1057, uint64(12)) + Xmemcpy(tls, bp+32+8+uintptr(12), buf+uintptr(i)*28+8, uint64(4)) + Xmemcpy(tls, bp+76+4, buf+uintptr(i)*28+8, uint64(4)) + da = bp + 76 + dalen = uint32(16) + sa = bp + 60 + **(**Tsocklen_t)(__ccgo_up(bp + 92)) = uint32(16) + } + dpolicy = _policyof(tls, bp+32+8) + dscope = _scopeof(tls, bp+32+8) + dlabel = Int32FromUint8((*Tpolicy)(unsafe.Pointer(dpolicy)).Flabel) + dprec = Int32FromUint8((*Tpolicy)(unsafe.Pointer(dpolicy)).Fprec) + prefixlen = 0 + fd = Xsocket(tls, family1, Int32FromInt32(SOCK_DGRAM)|Int32FromInt32(SOCK_CLOEXEC), int32(IPPROTO_UDP)) + if fd >= 0 { + if !(Xconnect(tls, fd, da, dalen) != 0) { + key = key | int32(DAS_USABLE) + if !(Xgetsockname(tls, fd, sa, bp+92) != 0) { + if family1 == int32(PF_INET) { + Xmemcpy(tls, bp+4+8+uintptr(12), bp+60+4, uint64(4)) + } + if dscope == _scopeof(tls, bp+4+8) { + key = key | int32(DAS_MATCHINGSCOPE) + } + if dlabel == _labelof(tls, bp+4+8) { + key = key | int32(DAS_MATCHINGLABEL) + } + prefixlen = _prefixmatch(tls, bp+4+8, bp+32+8) + } + } + Xclose(tls, fd) + } + key = key | dprec< %v", r) }() + } + bp := tls.Alloc(1408) + defer tls.Free(1408) + var cnt, v1, v2 int32 + var f, p, v3, v4 uintptr + var l Tsize_t + var port uint64 + var v10 bool + var _ /* _buf at bp+136 */ [1032]uint8 + var _ /* _f at bp+1168 */ TFILE + var _ /* line at bp+0 */ [128]uint8 + var _ /* z at bp+128 */ uintptr + _, _, _, _, _, _, _, _, _, _ = cnt, f, l, p, port, v1, v10, v2, v3, v4 + cnt = 0 + **(**uintptr)(__ccgo_up(bp + 128)) = __ccgo_ts + port = uint64(0) + switch socktype { + case int32(SOCK_STREAM): + switch proto { + case 0: + proto = int32(IPPROTO_TCP) + fallthrough + case int32(IPPROTO_TCP): + default: + return -int32(8) + } + case int32(SOCK_DGRAM): + switch proto { + case 0: + proto = int32(IPPROTO_UDP) + fallthrough + case int32(IPPROTO_UDP): + default: + return -int32(8) + } + fallthrough + case 0: + default: + if name != 0 { + return -int32(8) + } + (**(**Tservice)(__ccgo_up(buf))).Fport = uint16(0) + (**(**Tservice)(__ccgo_up(buf))).Fproto = Uint8FromInt32(proto) + (**(**Tservice)(__ccgo_up(buf))).Fsocktype = Uint8FromInt32(socktype) + return int32(1) + } + if name != 0 { + if !(**(**uint8)(__ccgo_up(name)) != 0) { + return -int32(8) + } + port = Xstrtoul(tls, name, bp+128, int32(10)) + } + if !(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 128)))) != 0) { + if port > uint64(65535) { + return -int32(8) + } + if proto != int32(IPPROTO_UDP) { + (**(**Tservice)(__ccgo_up(buf + uintptr(cnt)*4))).Fport = uint16(port) + (**(**Tservice)(__ccgo_up(buf + uintptr(cnt)*4))).Fsocktype = uint8(SOCK_STREAM) + v1 = cnt + cnt = cnt + 1 + (**(**Tservice)(__ccgo_up(buf + uintptr(v1)*4))).Fproto = uint8(IPPROTO_TCP) + } + if proto != int32(IPPROTO_TCP) { + (**(**Tservice)(__ccgo_up(buf + uintptr(cnt)*4))).Fport = uint16(port) + (**(**Tservice)(__ccgo_up(buf + uintptr(cnt)*4))).Fsocktype = uint8(SOCK_DGRAM) + v1 = cnt + cnt = cnt + 1 + (**(**Tservice)(__ccgo_up(buf + uintptr(v1)*4))).Fproto = uint8(IPPROTO_UDP) + } + return cnt + } + if flags&int32(AI_NUMERICSERV) != 0 { + return -int32(2) + } + l = _strlen(tls, name) + f = X__fopen_rb_ca(tls, __ccgo_ts+1070, bp+1168, bp+136, uint64(1032)) + if !(f != 0) { + switch **(**int32)(__ccgo_up(X__errno_location(tls))) { + case int32(ENOENT): + fallthrough + case int32(ENOTDIR): + fallthrough + case int32(EACCES): + return -int32(8) + default: + return -int32(11) + } + } + for Xfgets(tls, bp, int32(128), f) != 0 && cnt < int32(MAXSERVS) { + v3 = Xstrchr(tls, bp, int32('#')) + p = v3 + if v3 != 0 { + v4 = p + p = p + 1 + **(**uint8)(__ccgo_up(v4)) = uint8('\n') + **(**uint8)(__ccgo_up(p)) = Uint8FromInt32(0) + } + /* Find service name */ + p = bp + for { + v3 = Xstrstr(tls, p, name) + p = v3 + if !(v3 != 0) { + break + } + if v10 = p > bp; v10 { + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(p + uintptr(-Int32FromInt32(1))))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _9 + _9: + } + if v10 && !(v2 != 0) { + goto _5 + } + if v10 = **(**uint8)(__ccgo_up(p + uintptr(l))) != 0; v10 { + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(p + uintptr(l)))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _13 + _13: + } + if v10 && !(v2 != 0) { + goto _5 + } + break + goto _5 + _5: + ; + p = p + 1 + } + if !(p != 0) { + continue + } + /* Skip past canonical name at beginning of line */ + p = bp + for { + if v10 = **(**uint8)(__ccgo_up(p)) != 0; v10 { + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(p))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _18 + _18: + } + if !(v10 && !(v2 != 0)) { + break + } + goto _15 + _15: + ; + p = p + 1 + } + port = Xstrtoul(tls, p, bp+128, int32(10)) + if port > uint64(65535) || **(**uintptr)(__ccgo_up(bp + 128)) == p { + continue + } + if !(Xstrncmp(tls, **(**uintptr)(__ccgo_up(bp + 128)), __ccgo_ts+1084, uint64(4)) != 0) { + if proto == int32(IPPROTO_TCP) { + continue + } + (**(**Tservice)(__ccgo_up(buf + uintptr(cnt)*4))).Fport = uint16(port) + (**(**Tservice)(__ccgo_up(buf + uintptr(cnt)*4))).Fsocktype = uint8(SOCK_DGRAM) + v1 = cnt + cnt = cnt + 1 + (**(**Tservice)(__ccgo_up(buf + uintptr(v1)*4))).Fproto = uint8(IPPROTO_UDP) + } + if !(Xstrncmp(tls, **(**uintptr)(__ccgo_up(bp + 128)), __ccgo_ts+1089, uint64(4)) != 0) { + if proto == int32(IPPROTO_UDP) { + continue + } + (**(**Tservice)(__ccgo_up(buf + uintptr(cnt)*4))).Fport = uint16(port) + (**(**Tservice)(__ccgo_up(buf + uintptr(cnt)*4))).Fsocktype = uint8(SOCK_STREAM) + v1 = cnt + cnt = cnt + 1 + (**(**Tservice)(__ccgo_up(buf + uintptr(v1)*4))).Fproto = uint8(IPPROTO_TCP) + } + } + X__fclose_ca(tls, f) + if cnt > 0 { + v1 = cnt + } else { + v1 = -int32(8) + } + return v1 +} + +func ___netlink_enumerate(tls *TLS, fd int32, seq uint32, type1 int32, af int32, __ccgo_fp_cb uintptr, ctx uintptr) (r1 int32) { + bp := tls.Alloc(8192) + defer tls.Free(8192) + var h uintptr + var r, ret int32 + var _ /* u at bp+0 */ struct { + Freq [0]struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + } + Freply [0]Tnlmsghdr + Fbuf [8192]Tuint8_t + } + _, _, _ = h, r, ret + Xmemset(tls, bp, 0, uint64(20)) + (*(*struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + })(unsafe.Pointer(&**(**struct { + Freq [0]struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + } + Freply [0]Tnlmsghdr + Fbuf [8192]Tuint8_t + })(__ccgo_up(bp))))).Fnlh.Fnlmsg_len = uint32(20) + (*(*struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + })(unsafe.Pointer(&**(**struct { + Freq [0]struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + } + Freply [0]Tnlmsghdr + Fbuf [8192]Tuint8_t + })(__ccgo_up(bp))))).Fnlh.Fnlmsg_type = Uint16FromInt32(type1) + (*(*struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + })(unsafe.Pointer(&**(**struct { + Freq [0]struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + } + Freply [0]Tnlmsghdr + Fbuf [8192]Tuint8_t + })(__ccgo_up(bp))))).Fnlh.Fnlmsg_flags = Uint16FromInt32(Int32FromInt32(NLM_F_ROOT) | Int32FromInt32(NLM_F_MATCH) | Int32FromInt32(NLM_F_REQUEST)) + (*(*struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + })(unsafe.Pointer(&**(**struct { + Freq [0]struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + } + Freply [0]Tnlmsghdr + Fbuf [8192]Tuint8_t + })(__ccgo_up(bp))))).Fnlh.Fnlmsg_seq = seq + (*(*struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + })(unsafe.Pointer(&**(**struct { + Freq [0]struct { + Fnlh Tnlmsghdr + Fg Trtgenmsg + } + Freply [0]Tnlmsghdr + Fbuf [8192]Tuint8_t + })(__ccgo_up(bp))))).Fg.Frtgen_family = Uint8FromInt32(af) + r = int32(Xsend(tls, fd, bp, uint64(20), 0)) + if r < 0 { + return r + } + for int32(1) != 0 { + r = int32(Xrecv(tls, fd, bp, uint64(8192), int32(MSG_DONTWAIT))) + if r <= 0 { + return -int32(1) + } + h = bp + for { + if !(Uint64FromInt64(int64(bp+uintptr(r))-int64(h)) >= uint64(16)) { + break + } + if Int32FromUint16((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_type) == int32(NLMSG_DONE) { + return 0 + } + if Int32FromUint16((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_type) == int32(NLMSG_ERROR) { + return -int32(1) + } + ret = (*(*func(*TLS, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cb})))(tls, ctx, h) + if ret != 0 { + return ret + } + goto _1 + _1: + ; + h = h + uintptr(((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_len+Uint32FromInt32(3))&Uint32FromInt32(^Int32FromInt32(3))) + } + } + return r1 +} + +type t__ccgo_fp__X__rtnetlink_enumerate_2 = func(*TLS, uintptr, uintptr) int32 + +func X__rtnetlink_enumerate(tls *TLS, link_af int32, addr_af int32, __ccgo_fp_cb uintptr, ctx uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v link_af=%v addr_af=%v __ccgo_fp_cb=%v ctx=%v, (%v:)", tls, link_af, addr_af, __ccgo_fp_cb, ctx, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var fd, r int32 + _, _ = fd, r + fd = Xsocket(tls, int32(PF_NETLINK), Int32FromInt32(SOCK_RAW)|Int32FromInt32(SOCK_CLOEXEC), NETLINK_ROUTE) + if fd < 0 { + return -int32(1) + } + r = ___netlink_enumerate(tls, fd, uint32(1), int32(RTM_GETLINK), link_af, __ccgo_fp_cb, ctx) + if !(r != 0) { + r = ___netlink_enumerate(tls, fd, uint32(2), int32(RTM_GETADDR), addr_af, __ccgo_fp_cb, ctx) + } + X__syscall1(tls, int64(SYS_close), int64(fd)) + return r +} + +func Xgetnetbyaddr(tls *TLS, net Tuint32_t, type1 int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v net=%v type1=%v, (%v:)", tls, net, type1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(0) +} + +func Xgetnetbyname(tls *TLS, name uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(0) +} + +func Xns_get16(tls *TLS, cp uintptr) (r uint32) { + if __ccgo_strace { + trc("tls=%v cp=%v, (%v:)", tls, cp, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(cp)))< %v", r) }() + } + return uint64(uint32(**(**uint8)(__ccgo_up(cp)))<> int32(8)) + v1 = cp + cp = cp + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(s) +} + +func Xns_put32(tls *TLS, l uint64, cp uintptr) { + if __ccgo_strace { + trc("tls=%v l=%v cp=%v, (%v:)", tls, l, cp, origin(2)) + } + var v1 uintptr + _ = v1 + v1 = cp + cp = cp + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(l >> int32(24)) + v1 = cp + cp = cp + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(l >> int32(16)) + v1 = cp + cp = cp + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(l >> int32(8)) + v1 = cp + cp = cp + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(l) +} + +func Xns_initparse(tls *TLS, msg uintptr, msglen int32, handle uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v msg=%v msglen=%v handle=%v, (%v:)", tls, msg, msglen, handle, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var i, r int32 + _, _ = i, r + (*Tns_msg)(unsafe.Pointer(handle)).F_msg = msg + (*Tns_msg)(unsafe.Pointer(handle)).F_eom = msg + uintptr(msglen) + if msglen < (Int32FromInt32(2)+int32(_ns_s_max))*Int32FromInt32(NS_INT16SZ) { + goto bad + } + msg = msg + uintptr(2) + (*Tns_msg)(unsafe.Pointer(handle)).F_id = uint16(Xns_get16(tls, msg-uintptr(2))) + msg = msg + uintptr(2) + (*Tns_msg)(unsafe.Pointer(handle)).F_flags = uint16(Xns_get16(tls, msg-uintptr(2))) + i = 0 + for { + if !(i < int32(_ns_s_max)) { + break + } + msg = msg + uintptr(2) + **(**Tuint16_t)(__ccgo_up(handle + 20 + uintptr(i)*2)) = uint16(Xns_get16(tls, msg-uintptr(2))) + goto _1 + _1: + ; + i = i + 1 + } + i = 0 + for { + if !(i < int32(_ns_s_max)) { + break + } + if **(**Tuint16_t)(__ccgo_up(handle + 20 + uintptr(i)*2)) != 0 { + **(**uintptr)(__ccgo_up(handle + 32 + uintptr(i)*8)) = msg + r = Xns_skiprr(tls, msg, (*Tns_msg)(unsafe.Pointer(handle)).F_eom, i, Int32FromUint16(**(**Tuint16_t)(__ccgo_up(handle + 20 + uintptr(i)*2)))) + if r < 0 { + return -int32(1) + } + msg = msg + uintptr(r) + } else { + **(**uintptr)(__ccgo_up(handle + 32 + uintptr(i)*8)) = UintptrFromInt32(0) + } + goto _2 + _2: + ; + i = i + 1 + } + if msg != (*Tns_msg)(unsafe.Pointer(handle)).F_eom { + goto bad + } + (*Tns_msg)(unsafe.Pointer(handle)).F_sect = int32(_ns_s_max) + (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum = -int32(1) + (*Tns_msg)(unsafe.Pointer(handle)).F_msg_ptr = UintptrFromInt32(0) + return 0 + goto bad +bad: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EMSGSIZE) + return -int32(1) +} + +func Xns_skiprr(tls *TLS, ptr uintptr, eom uintptr, section Tns_sect, count int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v ptr=%v eom=%v section=%v count=%v, (%v:)", tls, ptr, eom, section, count, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var p uintptr + var r, v1 int32 + _, _, _ = p, r, v1 + p = ptr + for { + v1 = count + count = count - 1 + if !(v1 != 0) { + break + } + r = Xdn_skipname(tls, p, eom) + if r < 0 { + goto bad + } + if int64(r+Int32FromInt32(2)*Int32FromInt32(NS_INT16SZ)) > int64(eom)-int64(p) { + goto bad + } + p = p + uintptr(r+Int32FromInt32(2)*Int32FromInt32(NS_INT16SZ)) + if section != int32(_ns_s_qd) { + if int64(Int32FromInt32(NS_INT32SZ)+Int32FromInt32(NS_INT16SZ)) > int64(eom)-int64(p) { + goto bad + } + p = p + uintptr(NS_INT32SZ) + p = p + uintptr(2) + r = Int32FromUint32(Xns_get16(tls, p-uintptr(2))) + if int64(r) > int64(eom)-int64(p) { + goto bad + } + p = p + uintptr(r) + } + } + return int32(int64(p) - int64(ptr)) + goto bad +bad: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EMSGSIZE) + return -int32(1) +} + +func Xns_parserr(tls *TLS, handle uintptr, section Tns_sect, rrnum int32, rr uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v handle=%v section=%v rrnum=%v rr=%v, (%v:)", tls, handle, section, rrnum, rr, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + var v1 uintptr + _, _ = r, v1 + if section < 0 || section >= int32(_ns_s_max) { + goto bad + } + if section != (*Tns_msg)(unsafe.Pointer(handle)).F_sect { + (*Tns_msg)(unsafe.Pointer(handle)).F_sect = section + (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum = 0 + (*Tns_msg)(unsafe.Pointer(handle)).F_msg_ptr = **(**uintptr)(__ccgo_up(handle + 32 + uintptr(section)*8)) + } + if rrnum == -int32(1) { + rrnum = (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum + } + if rrnum < 0 || rrnum >= Int32FromUint16(**(**Tuint16_t)(__ccgo_up(handle + 20 + uintptr(section)*2))) { + goto bad + } + if rrnum < (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum { + (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum = 0 + (*Tns_msg)(unsafe.Pointer(handle)).F_msg_ptr = **(**uintptr)(__ccgo_up(handle + 32 + uintptr(section)*8)) + } + if rrnum > (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum { + r = Xns_skiprr(tls, (*Tns_msg)(unsafe.Pointer(handle)).F_msg_ptr, (*Tns_msg)(unsafe.Pointer(handle)).F_eom, section, rrnum-(*Tns_msg)(unsafe.Pointer(handle)).F_rrnum) + if r < 0 { + return -int32(1) + } + **(**uintptr)(__ccgo_up(handle + 72)) += uintptr(r) + (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum = rrnum + } + r = Xns_name_uncompress(tls, (*Tns_msg)(unsafe.Pointer(handle)).F_msg, (*Tns_msg)(unsafe.Pointer(handle)).F_eom, (*Tns_msg)(unsafe.Pointer(handle)).F_msg_ptr, rr, uint64(NS_MAXDNAME)) + if r < 0 { + return -int32(1) + } + **(**uintptr)(__ccgo_up(handle + 72)) += uintptr(r) + if int64(Int32FromInt32(2)*Int32FromInt32(NS_INT16SZ)) > int64((*Tns_msg)(unsafe.Pointer(handle)).F_eom)-int64((*Tns_msg)(unsafe.Pointer(handle)).F_msg_ptr) { + goto size + } + v1 = handle + 72 + *(*uintptr)(unsafe.Pointer(v1)) += uintptr(2) + (*Tns_rr)(unsafe.Pointer(rr)).Ftype1 = uint16(Xns_get16(tls, *(*uintptr)(unsafe.Pointer(v1))-uintptr(2))) + v1 = handle + 72 + *(*uintptr)(unsafe.Pointer(v1)) += uintptr(2) + (*Tns_rr)(unsafe.Pointer(rr)).Frr_class = uint16(Xns_get16(tls, *(*uintptr)(unsafe.Pointer(v1))-uintptr(2))) + if section != int32(_ns_s_qd) { + if int64(Int32FromInt32(NS_INT32SZ)+Int32FromInt32(NS_INT16SZ)) > int64((*Tns_msg)(unsafe.Pointer(handle)).F_eom)-int64((*Tns_msg)(unsafe.Pointer(handle)).F_msg_ptr) { + goto size + } + v1 = handle + 72 + *(*uintptr)(unsafe.Pointer(v1)) += uintptr(4) + (*Tns_rr)(unsafe.Pointer(rr)).Fttl = uint32(Xns_get32(tls, *(*uintptr)(unsafe.Pointer(v1))-uintptr(4))) + v1 = handle + 72 + *(*uintptr)(unsafe.Pointer(v1)) += uintptr(2) + (*Tns_rr)(unsafe.Pointer(rr)).Frdlength = uint16(Xns_get16(tls, *(*uintptr)(unsafe.Pointer(v1))-uintptr(2))) + if Int64FromUint16((*Tns_rr)(unsafe.Pointer(rr)).Frdlength) > int64((*Tns_msg)(unsafe.Pointer(handle)).F_eom)-int64((*Tns_msg)(unsafe.Pointer(handle)).F_msg_ptr) { + goto size + } + (*Tns_rr)(unsafe.Pointer(rr)).Frdata = (*Tns_msg)(unsafe.Pointer(handle)).F_msg_ptr + **(**uintptr)(__ccgo_up(handle + 72)) += uintptr((*Tns_rr)(unsafe.Pointer(rr)).Frdlength) + } else { + (*Tns_rr)(unsafe.Pointer(rr)).Fttl = uint32(0) + (*Tns_rr)(unsafe.Pointer(rr)).Frdlength = uint16(0) + (*Tns_rr)(unsafe.Pointer(rr)).Frdata = UintptrFromInt32(0) + } + (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum = (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum + 1 + if (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum > Int32FromUint16(**(**Tuint16_t)(__ccgo_up(handle + 20 + uintptr(section)*2))) { + (*Tns_msg)(unsafe.Pointer(handle)).F_sect = section + int32(1) + if (*Tns_msg)(unsafe.Pointer(handle)).F_sect == int32(_ns_s_max) { + (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum = -int32(1) + (*Tns_msg)(unsafe.Pointer(handle)).F_msg_ptr = UintptrFromInt32(0) + } else { + (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum = 0 + } + } + return 0 + goto bad +bad: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENODEV) + return -int32(1) + goto size +size: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EMSGSIZE) + return -int32(1) +} + +func Xns_name_uncompress(tls *TLS, msg uintptr, eom uintptr, src uintptr, dst uintptr, dstsiz Tsize_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v msg=%v eom=%v src=%v dst=%v dstsiz=%v, (%v:)", tls, msg, eom, src, dst, dstsiz, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + r = Xdn_expand(tls, msg, eom, src, dst, Int32FromUint64(dstsiz)) + if r < 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EMSGSIZE) + } + return r +} + +func Xntohl(tls *TLS, n Tuint32_t) (r Tuint32_t) { + if __ccgo_strace { + trc("tls=%v n=%v, (%v:)", tls, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var u struct { + Fc [0]uint8 + Fi int32 + } + var v1 uint32 + var v2, v3 Tuint32_t + _, _, _, _ = u, v1, v2, v3 + u = *(*struct { + Fc [0]uint8 + Fi int32 + })(unsafe.Pointer(&struct{ f int32 }{f: int32(1)})) + if *(*uint8)(unsafe.Pointer(&u)) != 0 { + v2 = n + v3 = v2>>int32(24) | v2>>int32(8)&uint32(0xff00) | v2< %v", r) }() + } + var u struct { + Fc [0]uint8 + Fi int32 + } + var v1 int32 + var v2, v3 Tuint16_t + _, _, _, _ = u, v1, v2, v3 + u = *(*struct { + Fc [0]uint8 + Fi int32 + })(unsafe.Pointer(&struct{ f int32 }{f: int32(1)})) + if *(*uint8)(unsafe.Pointer(&u)) != 0 { + v2 = n + v3 = Uint16FromInt32(Int32FromUint16(v2)<>int32(8)) + goto _4 + _4: + v1 = Int32FromUint16(v3) + } else { + v1 = Int32FromUint16(n) + } + return Uint16FromInt32(v1) +} + +/* do we really need all these?? */ + +var _idx int32 +var _protos = [239]uint8{0, 'i', 'p', 0, 1, 'i', 'c', 'm', 'p', 0, 2, 'i', 'g', 'm', 'p', 0, 3, 'g', 'g', 'p', 0, 4, 'i', 'p', 'e', 'n', 'c', 'a', 'p', 0, 5, 's', 't', 0, 6, 't', 'c', 'p', 0, 8, 'e', 'g', 'p', 0, 12, 'p', 'u', 'p', 0, 17, 'u', 'd', 'p', 0, 20, 'h', 'm', 'p', 0, 22, 'x', 'n', 's', '-', 'i', 'd', 'p', 0, 27, 'r', 'd', 'p', 0, 29, 'i', 's', 'o', '-', 't', 'p', '4', 0, '$', 'x', 't', 'p', 0, '%', 'd', 'd', 'p', 0, '&', 'i', 'd', 'p', 'r', '-', 'c', 'm', 't', 'p', 0, ')', 'i', 'p', 'v', '6', 0, '+', 'i', 'p', 'v', '6', '-', 'r', 'o', 'u', 't', 'e', 0, ',', 'i', 'p', 'v', '6', '-', 'f', 'r', 'a', 'g', 0, '-', 'i', 'd', 'r', 'p', 0, '.', 'r', 's', 'v', 'p', 0, '/', 'g', 'r', 'e', 0, '2', 'e', 's', 'p', 0, '3', 'a', 'h', 0, '9', 's', 'k', 'i', 'p', 0, ':', 'i', 'p', 'v', '6', '-', 'i', 'c', 'm', 'p', 0, ';', 'i', 'p', 'v', '6', '-', 'n', 'o', 'n', 'x', 't', 0, '<', 'i', 'p', 'v', '6', '-', 'o', 'p', 't', 's', 0, 'I', 'r', 's', 'p', 'f', 0, 'Q', 'v', 'm', 't', 'p', 0, 'Y', 'o', 's', 'p', 'f', 0, '^', 'i', 'p', 'i', 'p', 0, 'b', 'e', 'n', 'c', 'a', 'p', 0, 'g', 'p', 'i', 'm', 0, 255, 'r', 'a', 'w'} + +func Xendprotoent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + _idx = 0 +} + +func Xsetprotoent(tls *TLS, stayopen int32) { + if __ccgo_strace { + trc("tls=%v stayopen=%v, (%v:)", tls, stayopen, origin(2)) + } + _idx = 0 +} + +func Xgetprotoent(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + if Uint64FromInt32(_idx) >= uint64(239) { + return UintptrFromInt32(0) + } + _p.Fp_proto = Int32FromUint8(_protos[_idx]) + _p.Fp_name = uintptr(unsafe.Pointer(&_protos)) + uintptr(_idx+int32(1)) + _p.Fp_aliases = uintptr(unsafe.Pointer(&_aliases)) + _idx = Int32FromUint64(uint64(_idx) + (_strlen(tls, _p.Fp_name) + Uint64FromInt32(2))) + return uintptr(unsafe.Pointer(&_p)) +} + +var _p Tprotoent + +var _aliases uintptr + +func Xgetprotobyname(tls *TLS, name uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + var p uintptr + _ = p + Xendprotoent(tls) + for cond := true; cond; cond = p != 0 && Xstrcmp(tls, name, (*Tprotoent)(unsafe.Pointer(p)).Fp_name) != 0 { + p = Xgetprotoent(tls) + } + return p +} + +func Xgetprotobynumber(tls *TLS, num int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v num=%v, (%v:)", tls, num, origin(2)) + defer func() { trc("-> %v", r) }() + } + var p uintptr + _ = p + Xendprotoent(tls) + for cond := true; cond; cond = p != 0 && (*Tprotoent)(unsafe.Pointer(p)).Fp_proto != num { + p = Xgetprotoent(tls) + } + return p +} + +func Xrecv(tls *TLS, fd int32, buf uintptr, len1 Tsize_t, flags int32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v len1=%v flags=%v, (%v:)", tls, fd, buf, len1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xrecvfrom(tls, fd, buf, len1, flags, uintptr(0), uintptr(0)) +} + +func Xrecvfrom(tls *TLS, fd int32, buf uintptr, len1 Tsize_t, flags int32, addr uintptr, alen uintptr) (r1 Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v len1=%v flags=%v addr=%v alen=%v, (%v:)", tls, fd, buf, len1, flags, addr, alen, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(96) + defer tls.Free(96) + var r, v10 int64 + var v1, v2, v3 int32 + var v4, v5, v6, v7, v8, v9 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _, _, _ = r, v1, v10, v2, v3, v4, v5, v6, v7, v8, v9 + v1 = int32(SYS_recvfrom) + v2 = int32(__SC_recvfrom) + v3 = int32(1) + v4 = int64(fd) + v5 = int64(buf) + v6 = Int64FromUint64(len1) + v7 = int64(flags) + v8 = int64(addr) + v9 = int64(alen) + if v3 != 0 { + r = ___syscall_cp(tls, int64(v1), v4, v5, v6, v7, v8, v9) + } else { + r = X__syscall6(tls, int64(v1), v4, v5, v6, v7, v8, v9) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v10 = r + goto _11 + } + if v3 != 0 { + *(*[6]int64)(unsafe.Pointer(bp)) = [6]int64{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = ___syscall_cp(tls, int64(SYS_socketcall), int64(v2), int64(bp), 0, 0, 0, 0) + } else { + *(*[6]int64)(unsafe.Pointer(bp + 48)) = [6]int64{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = X__syscall2(tls, int64(SYS_socketcall), int64(v2), int64(bp+48)) + } + v10 = r + goto _11 +_11: + return X__syscall_ret(tls, Uint64FromInt64(v10)) +} + +func Xrecvmmsg(tls *TLS, fd int32, msgvec uintptr, vlen uint32, flags uint32, timeout uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v msgvec=%v vlen=%v flags=%v timeout=%v, (%v:)", tls, fd, msgvec, vlen, flags, timeout, origin(2)) + defer func() { trc("-> %v", r) }() + } + var i uint32 + var mh uintptr + var v2 int32 + _, _, _ = i, mh, v2 + mh = msgvec + i = vlen + for { + if !(i != 0) { + break + } + v2 = Int32FromInt32(0) + (*Tmmsghdr)(unsafe.Pointer(mh)).Fmsg_hdr.F__pad2 = v2 + (*Tmmsghdr)(unsafe.Pointer(mh)).Fmsg_hdr.F__pad1 = v2 + goto _1 + _1: + ; + i = i - 1 + mh += 64 + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_recvmmsg), int64(fd), int64(msgvec), Int64FromUint32(vlen), Int64FromUint32(flags), int64(timeout), 0)))) +} + +func X__convert_scm_timestamps(tls *TLS, msg uintptr, csize Tsocklen_t) { + if __ccgo_strace { + trc("tls=%v msg=%v csize=%v, (%v:)", tls, msg, csize, origin(2)) + } + bp := tls.Alloc(32) + defer tls.Free(32) + var cmsg, last, v2 uintptr + var type1 int32 + var _ /* tmp at bp+0 */ int64 + var _ /* tvts at bp+8 */ [2]int64 + _, _, _, _ = cmsg, last, type1, v2 + if true { + return + } + if !((*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_control != 0) || !((*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_controllen != 0) { + return + } + last = uintptr(0) + type1 = 0 + if uint64((*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_controllen) >= uint64(16) { + v2 = (*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_control + } else { + v2 = UintptrFromInt32(0) + } + cmsg = v2 + for { + if !(cmsg != 0) { + break + } + if (*Tcmsghdr)(unsafe.Pointer(cmsg)).Fcmsg_level == int32(SOL_SOCKET) { + switch (*Tcmsghdr)(unsafe.Pointer(cmsg)).Fcmsg_type { + case int32(SO_TIMESTAMP_OLD): + goto _3 + case int32(SO_TIMESTAMPNS_OLD): + goto _4 + } + goto _5 + _3: + ; + if type1 != 0 { + goto _5 + } + type1 = int32(SO_TIMESTAMP) + goto common + _4: + ; + type1 = int32(SO_TIMESTAMPNS) + goto common + common: + ; + Xmemcpy(tls, bp, cmsg+UintptrFromInt32(1)*16, uint64(8)) + (**(**[2]int64)(__ccgo_up(bp + 8)))[0] = int64(**(**int64)(__ccgo_up(bp))) + Xmemcpy(tls, bp, cmsg+UintptrFromInt32(1)*16+uintptr(8), uint64(8)) + (**(**[2]int64)(__ccgo_up(bp + 8)))[int32(1)] = int64(**(**int64)(__ccgo_up(bp))) + goto _5 + _5: + } + last = cmsg + goto _1 + _1: + ; + if uint64((*Tcmsghdr)(unsafe.Pointer(cmsg)).Fcmsg_len) < uint64(16) || (uint64((*Tcmsghdr)(unsafe.Pointer(cmsg)).Fcmsg_len)+uint64(8)-uint64(1))&Uint64FromInt64(^Int64FromUint64(Uint64FromInt64(8)-Uint64FromInt32(1)))+uint64(16) >= Uint64FromInt64(int64((*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_control+uintptr((*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_controllen))-int64(cmsg)) { + v2 = uintptr(0) + } else { + v2 = cmsg + uintptr((uint64((*Tcmsghdr)(unsafe.Pointer(cmsg)).Fcmsg_len)+Uint64FromInt64(8)-Uint64FromInt32(1))&Uint64FromInt64(^Int64FromUint64(Uint64FromInt64(8)-Uint64FromInt32(1)))) + } + cmsg = v2 + } + if !(last != 0) || !(type1 != 0) { + return + } + if (Uint64FromInt64(16)+Uint64FromInt64(8)-Uint64FromInt32(1)) & ^(Uint64FromInt64(8)-Uint64FromInt32(1)) + (Uint64FromInt64(16)+Uint64FromInt64(8)-Uint64FromInt32(1)) & ^(Uint64FromInt64(8)-Uint64FromInt32(1)) > uint64(csize-(*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_controllen) { + **(**int32)(__ccgo_up(msg + 48)) |= int32(MSG_CTRUNC) + return + } + v2 = msg + 44 + *(*Tsocklen_t)(unsafe.Pointer(v2)) = Tsocklen_t(uint64(*(*Tsocklen_t)(unsafe.Pointer(v2))) + ((Uint64FromInt64(16)+Uint64FromInt64(8)-Uint64FromInt32(1)) & ^(Uint64FromInt64(8)-Uint64FromInt32(1)) + (Uint64FromInt64(16)+Uint64FromInt64(8)-Uint64FromInt32(1)) & ^(Uint64FromInt64(8)-Uint64FromInt32(1)))) + if uint64((*Tcmsghdr)(unsafe.Pointer(last)).Fcmsg_len) < uint64(16) || (uint64((*Tcmsghdr)(unsafe.Pointer(last)).Fcmsg_len)+uint64(8)-uint64(1))&Uint64FromInt64(^Int64FromUint64(Uint64FromInt64(8)-Uint64FromInt32(1)))+uint64(16) >= Uint64FromInt64(int64((*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_control+uintptr((*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_controllen))-int64(last)) { + v2 = uintptr(0) + } else { + v2 = last + uintptr((uint64((*Tcmsghdr)(unsafe.Pointer(last)).Fcmsg_len)+Uint64FromInt64(8)-Uint64FromInt32(1))&Uint64FromInt64(^Int64FromUint64(Uint64FromInt64(8)-Uint64FromInt32(1)))) + } + cmsg = v2 + (*Tcmsghdr)(unsafe.Pointer(cmsg)).Fcmsg_level = int32(SOL_SOCKET) + (*Tcmsghdr)(unsafe.Pointer(cmsg)).Fcmsg_type = type1 + (*Tcmsghdr)(unsafe.Pointer(cmsg)).Fcmsg_len = uint32((Uint64FromInt64(16)+Uint64FromInt64(8)-Uint64FromInt32(1)) & ^(Uint64FromInt64(8)-Uint64FromInt32(1)) + Uint64FromInt64(16)) + Xmemcpy(tls, cmsg+UintptrFromInt32(1)*16, bp+8, uint64(16)) +} + +func Xrecvmsg(tls *TLS, fd int32, msg uintptr, flags int32) (r2 Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v msg=%v flags=%v, (%v:)", tls, fd, msg, flags, origin(2)) + defer func() { trc("-> %v", r2) }() + } + bp := tls.Alloc(160) + defer tls.Free(160) + var orig uintptr + var orig_controllen Tsocklen_t + var r, v11 int64 + var r1 Tssize_t + var v1, v2, v3 int32 + var v10, v5, v6, v7, v8, v9 Tsyscall_arg_t + var _ /* h at bp+96 */ Tmsghdr + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = orig, orig_controllen, r, r1, v1, v10, v11, v2, v3, v5, v6, v7, v8, v9 + orig_controllen = (*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_controllen + orig = msg + if msg != 0 { + **(**Tmsghdr)(__ccgo_up(bp + 96)) = **(**Tmsghdr)(__ccgo_up(msg)) + v1 = Int32FromInt32(0) + (**(**Tmsghdr)(__ccgo_up(bp + 96))).F__pad2 = v1 + (**(**Tmsghdr)(__ccgo_up(bp + 96))).F__pad1 = v1 + msg = bp + 96 + } + v1 = int32(SYS_recvmsg) + v2 = int32(__SC_recvmsg) + v3 = int32(1) + v5 = int64(fd) + v6 = int64(msg) + v7 = int64(flags) + v8 = int64(Int32FromInt32(0)) + v9 = int64(Int32FromInt32(0)) + v10 = int64(Int32FromInt32(0)) + if v3 != 0 { + r = ___syscall_cp(tls, int64(v1), v5, v6, v7, v8, v9, v10) + } else { + r = X__syscall6(tls, int64(v1), v5, v6, v7, v8, v9, v10) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v11 = r + goto _12 + } + if v3 != 0 { + *(*[6]int64)(unsafe.Pointer(bp)) = [6]int64{ + 0: v5, + 1: v6, + 2: v7, + 3: v8, + 4: v9, + 5: v10, + } + r = ___syscall_cp(tls, int64(SYS_socketcall), int64(v2), int64(bp), 0, 0, 0, 0) + } else { + *(*[6]int64)(unsafe.Pointer(bp + 48)) = [6]int64{ + 0: v5, + 1: v6, + 2: v7, + 3: v8, + 4: v9, + 5: v10, + } + r = X__syscall2(tls, int64(SYS_socketcall), int64(v2), int64(bp+48)) + } + v11 = r + goto _12 +_12: + r1 = X__syscall_ret(tls, Uint64FromInt64(v11)) + if r1 >= 0 { + X__convert_scm_timestamps(tls, msg, orig_controllen) + } + if orig != 0 { + **(**Tmsghdr)(__ccgo_up(orig)) = **(**Tmsghdr)(__ccgo_up(bp + 96)) + } + return r1 +} + +func Xres_init(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return 0 +} + +func X__res_mkquery(tls *TLS, op int32, dname uintptr, class int32, type1 int32, data uintptr, datalen int32, newrr uintptr, buf uintptr, buflen int32) (r int32) { + if __ccgo_strace { + trc("tls=%v op=%v dname=%v class=%v type1=%v data=%v datalen=%v newrr=%v buf=%v buflen=%v, (%v:)", tls, op, dname, class, type1, data, datalen, newrr, buf, buflen, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(304) + defer tls.Free(304) + var i, id, j, n int32 + var l Tsize_t + var _ /* q at bp+0 */ [280]uint8 + var _ /* ts at bp+280 */ Ttimespec + _, _, _, _, _ = i, id, j, l, n + l = Xstrnlen(tls, dname, uint64(255)) + if l != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(dname + uintptr(l-uint64(1))))) == int32('.') { + l = l - 1 + } + if l != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(dname + uintptr(l-uint64(1))))) == int32('.') { + return -int32(1) + } + n = Int32FromUint64(uint64(17) + l + BoolUint64(!!(l != 0))) + if l > uint64(253) || buflen < n || Uint32FromInt32(op) > uint32(15) || Uint32FromInt32(class) > uint32(255) || Uint32FromInt32(type1) > uint32(255) { + return -int32(1) + } + /* Construct query template - ID will be filled later */ + Xmemset(tls, bp, 0, Uint64FromInt32(n)) + (**(**[280]uint8)(__ccgo_up(bp)))[int32(2)] = Uint8FromInt32(op*int32(8) + int32(1)) + (**(**[280]uint8)(__ccgo_up(bp)))[int32(3)] = uint8(32) /* AD */ + (**(**[280]uint8)(__ccgo_up(bp)))[int32(5)] = uint8(1) + Xmemcpy(tls, bp+uintptr(13), dname, l) + i = int32(13) + for { + if !((**(**[280]uint8)(__ccgo_up(bp)))[i] != 0) { + break + } + j = i + for { + if !((**(**[280]uint8)(__ccgo_up(bp)))[j] != 0 && Int32FromUint8((**(**[280]uint8)(__ccgo_up(bp)))[j]) != int32('.')) { + break + } + goto _2 + _2: + ; + j = j + 1 + } + if Uint32FromInt32(j-i)-uint32(1) > uint32(62) { + return -int32(1) + } + (**(**[280]uint8)(__ccgo_up(bp)))[i-int32(1)] = Uint8FromInt32(j - i) + goto _1 + _1: + ; + i = j + int32(1) + } + (**(**[280]uint8)(__ccgo_up(bp)))[i+int32(1)] = Uint8FromInt32(type1) + (**(**[280]uint8)(__ccgo_up(bp)))[i+int32(3)] = Uint8FromInt32(class) + /* Make a reasonably unpredictable id */ + Xclock_gettime(tls, CLOCK_REALTIME, bp+280) + id = Int32FromUint64((Uint64FromInt64((**(**Ttimespec)(__ccgo_up(bp + 280))).Ftv_nsec) + Uint64FromInt64((**(**Ttimespec)(__ccgo_up(bp + 280))).Ftv_nsec)/uint64(65536)) & uint64(0xffff)) + (**(**[280]uint8)(__ccgo_up(bp)))[0] = Uint8FromInt32(id / int32(256)) + (**(**[280]uint8)(__ccgo_up(bp)))[int32(1)] = Uint8FromInt32(id) + Xmemcpy(tls, buf, bp, Uint64FromInt32(n)) + return n +} + +func Xres_mkquery(tls *TLS, op int32, dname uintptr, class int32, type1 int32, data uintptr, datalen int32, newrr uintptr, buf uintptr, buflen int32) (r int32) { + if __ccgo_strace { + trc("tls=%v op=%v dname=%v class=%v type1=%v data=%v datalen=%v newrr=%v buf=%v buflen=%v, (%v:)", tls, op, dname, class, type1, data, datalen, newrr, buf, buflen, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__res_mkquery(tls, op, dname, class, type1, data, datalen, newrr, buf, buflen) +} + +const POLLERR = 8 +const POLLHUP = 16 +const POLLIN = 1 +const POLLMSG = 1024 +const POLLNVAL = 32 +const POLLOUT = 4 +const POLLPRI = 2 +const POLLRDBAND = 128 +const POLLRDHUP = 8192 +const POLLRDNORM = 64 +const POLLWRBAND = 512 +const POLLWRNORM = 256 +const TCP_CC_INFO = 26 +const TCP_CLOSE = 7 +const TCP_CLOSE_WAIT = 8 +const TCP_CLOSING = 11 +const TCP_CM_INQ = 36 +const TCP_CONGESTION = 13 +const TCP_CORK = 3 +const TCP_DEFER_ACCEPT = 9 +const TCP_ESTABLISHED = 1 +const TCP_FASTOPEN = 23 +const TCP_FASTOPEN_CONNECT = 30 +const TCP_FASTOPEN_KEY = 33 +const TCP_FASTOPEN_NO_COOKIE = 34 +const TCP_FIN_WAIT1 = 4 +const TCP_FIN_WAIT2 = 5 +const TCP_INFO = 11 +const TCP_INQ = 36 +const TCP_KEEPCNT = 6 +const TCP_KEEPIDLE = 4 +const TCP_KEEPINTVL = 5 +const TCP_LAST_ACK = 9 +const TCP_LINGER2 = 8 +const TCP_LISTEN = 10 +const TCP_MAXSEG = 2 +const TCP_MD5SIG = 14 +const TCP_MD5SIG_EXT = 32 +const TCP_NODELAY = 1 +const TCP_NOTSENT_LOWAT = 25 +const TCP_QUEUE_SEQ = 21 +const TCP_QUICKACK = 12 +const TCP_REPAIR = 19 +const TCP_REPAIR_OPTIONS = 22 +const TCP_REPAIR_QUEUE = 20 +const TCP_REPAIR_WINDOW = 29 +const TCP_SAVED_SYN = 28 +const TCP_SAVE_SYN = 27 +const TCP_SYNCNT = 7 +const TCP_SYN_RECV = 3 +const TCP_SYN_SENT = 2 +const TCP_THIN_DUPACK = 17 +const TCP_THIN_LINEAR_TIMEOUTS = 16 +const TCP_TIMESTAMP = 24 +const TCP_TIME_WAIT = 6 +const TCP_TX_DELAY = 37 +const TCP_ULP = 31 +const TCP_USER_TIMEOUT = 18 +const TCP_WINDOW_CLAMP = 10 +const TCP_ZEROCOPY_RECEIVE = 35 + +const _TCP_NLA_PAD = 0 +const _TCP_NLA_BUSY = 1 +const _TCP_NLA_RWND_LIMITED = 2 +const _TCP_NLA_SNDBUF_LIMITED = 3 +const _TCP_NLA_DATA_SEGS_OUT = 4 +const _TCP_NLA_TOTAL_RETRANS = 5 +const _TCP_NLA_PACING_RATE = 6 +const _TCP_NLA_DELIVERY_RATE = 7 +const _TCP_NLA_SND_CWND = 8 +const _TCP_NLA_REORDERING = 9 +const _TCP_NLA_MIN_RTT = 10 +const _TCP_NLA_RECUR_RETRANS = 11 +const _TCP_NLA_DELIVERY_RATE_APP_LMT = 12 +const _TCP_NLA_SNDQ_SIZE = 13 +const _TCP_NLA_CA_STATE = 14 +const _TCP_NLA_SND_SSTHRESH = 15 +const _TCP_NLA_DELIVERED = 16 +const _TCP_NLA_DELIVERED_CE = 17 +const _TCP_NLA_BYTES_SENT = 18 +const _TCP_NLA_BYTES_RETRANS = 19 +const _TCP_NLA_DSACK_DUPS = 20 +const _TCP_NLA_REORD_SEEN = 21 +const _TCP_NLA_SRTT = 22 +const _TCP_NLA_TIMEOUT_REHASH = 23 +const _TCP_NLA_BYTES_NOTSENT = 24 +const _TCP_NLA_EDT = 25 +const _TCP_NLA_TTL = 26 + +type Tnfds_t = uint64 + +type Tpollfd = struct { + Ffd int32 + Fevents int16 + Frevents int16 +} + +func _cleanup(tls *TLS, p uintptr) { + var i int32 + var pfd uintptr + _, _ = i, pfd + pfd = p + i = 0 + for { + if !((**(**Tpollfd)(__ccgo_up(pfd + uintptr(i)*8))).Ffd >= -int32(1)) { + break + } + if (**(**Tpollfd)(__ccgo_up(pfd + uintptr(i)*8))).Ffd >= 0 { + X__syscall1(tls, int64(SYS_close), int64((**(**Tpollfd)(__ccgo_up(pfd + uintptr(i)*8))).Ffd)) + } + goto _1 + _1: + ; + i = i + 1 + } +} + +func _mtime(tls *TLS) (r uint64) { + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* ts at bp+0 */ Ttimespec + if Xclock_gettime(tls, int32(CLOCK_MONOTONIC), bp) < 0 && **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(ENOSYS) { + Xclock_gettime(tls, CLOCK_REALTIME, bp) + } + return Uint64FromInt64((**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec)*uint64(1000) + Uint64FromInt64((**(**Ttimespec)(__ccgo_up(bp))).Ftv_nsec/int64(1000000)) +} + +func _start_tcp(tls *TLS, pfd uintptr, family int32, sa uintptr, sl Tsocklen_t, q uintptr, ql int32) (r1 int32) { + bp := tls.Alloc(96) + defer tls.Free(96) + var fd, r int32 + var _ /* mh at bp+40 */ Tmsghdr + _, _ = fd, r + *(*[2]Tuint8_t)(unsafe.Pointer(bp + 32)) = [2]Tuint8_t{ + 0: Uint8FromInt32(ql >> int32(8)), + 1: Uint8FromInt32(ql), + } + *(*[2]Tiovec)(unsafe.Pointer(bp)) = [2]Tiovec{ + 0: { + Fiov_base: bp + 32, + Fiov_len: uint64(2), + }, + 1: { + Fiov_base: q, + Fiov_len: Uint64FromInt32(ql), + }, + } + **(**Tmsghdr)(__ccgo_up(bp + 40)) = Tmsghdr{ + Fmsg_name: sa, + Fmsg_namelen: sl, + Fmsg_iov: bp, + Fmsg_iovlen: int32(2), + } + fd = Xsocket(tls, family, Int32FromInt32(SOCK_STREAM)|Int32FromInt32(SOCK_CLOEXEC)|Int32FromInt32(SOCK_NONBLOCK), 0) + (*Tpollfd)(unsafe.Pointer(pfd)).Ffd = fd + (*Tpollfd)(unsafe.Pointer(pfd)).Fevents = int16(POLLOUT) + *(*int32)(unsafe.Pointer(bp + 36)) = int32(1) + if !(Xsetsockopt(tls, fd, int32(IPPROTO_TCP), int32(TCP_FASTOPEN_CONNECT), bp+36, uint32(4)) != 0) { + r = int32(Xsendmsg(tls, fd, bp+40, Int32FromInt32(MSG_FASTOPEN)|Int32FromInt32(MSG_NOSIGNAL))) + if r == ql+int32(2) { + (*Tpollfd)(unsafe.Pointer(pfd)).Fevents = int16(POLLIN) + } + if r >= 0 { + return r + } + if **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EINPROGRESS) { + return 0 + } + } + r = Xconnect(tls, fd, sa, sl) + if !(r != 0) || **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EINPROGRESS) { + return 0 + } + Xclose(tls, fd) + (*Tpollfd)(unsafe.Pointer(pfd)).Ffd = -int32(1) + return -int32(1) +} + +func _step_mh(tls *TLS, mh uintptr, n Tsize_t) { + /* Adjust iovec in msghdr to skip first n bytes. */ + for (*Tmsghdr)(unsafe.Pointer(mh)).Fmsg_iovlen != 0 && n >= (*Tiovec)(unsafe.Pointer((*Tmsghdr)(unsafe.Pointer(mh)).Fmsg_iov)).Fiov_len { + n = n - (*Tiovec)(unsafe.Pointer((*Tmsghdr)(unsafe.Pointer(mh)).Fmsg_iov)).Fiov_len + (*Tmsghdr)(unsafe.Pointer(mh)).Fmsg_iov += 16 + (*Tmsghdr)(unsafe.Pointer(mh)).Fmsg_iovlen = (*Tmsghdr)(unsafe.Pointer(mh)).Fmsg_iovlen - 1 + } + if !((*Tmsghdr)(unsafe.Pointer(mh)).Fmsg_iovlen != 0) { + return + } + (*Tiovec)(unsafe.Pointer((*Tmsghdr)(unsafe.Pointer(mh)).Fmsg_iov)).Fiov_base = (*Tiovec)(unsafe.Pointer((*Tmsghdr)(unsafe.Pointer(mh)).Fmsg_iov)).Fiov_base + uintptr(n) + **(**Tsize_t)(__ccgo_up((*Tmsghdr)(unsafe.Pointer(mh)).Fmsg_iov + 8)) -= n +} + +/* Internal contract for __res_msend[_rc]: asize must be >=512, nqueries + * must be sufficiently small to be safe as VLA size. In practice it's + * either 1 or 2, anyway. */ + +func X__res_msend_rc(tls *TLS, nqueries int32, queries uintptr, qlens uintptr, answers uintptr, alens uintptr, asize int32, conf uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v nqueries=%v queries=%v qlens=%v answers=%v alens=%v asize=%v conf=%v, (%v:)", tls, nqueries, queries, qlens, answers, alens, asize, conf, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(400) + defer tls.Free(400) + var alen, attempts, family, fd, i, j, next, nns, r, rcode, retry_interval, rlen, servfail_retry, timeout, v6 int32 + var alen_buf, apos, iplit, pfd, qpos uintptr + var sl Tsocklen_t + var t0, t1, t2, v10 uint64 + var v1, v2, v3, v4 t__predefined_size_t + var v18 bool + var _ /* __cb at bp+208 */ t__ptcb + var _ /* cs at bp+200 */ int32 + var _ /* mh at bp+232 */ Tmsghdr + var _ /* mh at bp+288 */ Tmsghdr + var _ /* mh at bp+344 */ Tmsghdr + var _ /* ns at bp+116 */ [3]struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + } + var _ /* sa at bp+88 */ struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = alen, alen_buf, apos, attempts, family, fd, i, iplit, j, next, nns, pfd, qpos, r, rcode, retry_interval, rlen, servfail_retry, sl, t0, t1, t2, timeout, v1, v10, v18, v2, v3, v4, v6 + defer func() { + Xrealloc(tls, alen_buf, 0) + Xrealloc(tls, apos, 0) + Xrealloc(tls, pfd, 0) + Xrealloc(tls, qpos, 0) + }() + *(*struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + })(unsafe.Pointer(bp + 88)) = struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + }{} + *(*uint16)(unsafe.Pointer(bp + 88)) = uint16(0) + **(**[3]struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + })(__ccgo_up(bp + 116)) = [3]struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + }{} + sl = uint32(16) + nns = 0 + family = int32(PF_INET) + v1 = Uint64FromInt32(nqueries+int32(2)) * 8 + pfd = Xrealloc(tls, pfd, v1) + v2 = Uint64FromInt32(nqueries) * 4 + qpos = Xrealloc(tls, qpos, v2) + v3 = Uint64FromInt32(nqueries) * 4 + apos = Xrealloc(tls, apos, v3) + v4 = Uint64FromInt32(nqueries) * 2 + alen_buf = Xrealloc(tls, alen_buf, v4) + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp+200) + timeout = Int32FromUint32(uint32(1000) * (*Tresolvconf)(unsafe.Pointer(conf)).Ftimeout) + attempts = Int32FromUint32((*Tresolvconf)(unsafe.Pointer(conf)).Fattempts) + nns = 0 + for { + if !(Uint32FromInt32(nns) < (*Tresolvconf)(unsafe.Pointer(conf)).Fnns) { + break + } + iplit = conf + uintptr(nns)*28 + if (*Taddress)(unsafe.Pointer(iplit)).Ffamily == int32(PF_INET) { + Xmemcpy(tls, bp+116+uintptr(nns)*28+4, iplit+8, uint64(4)) + (**(**[3]struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + })(__ccgo_up(bp + 116)))[nns].Fsin.Fsin_port = Xhtons(tls, uint16(53)) + (**(**[3]struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + })(__ccgo_up(bp + 116)))[nns].Fsin.Fsin_family = uint16(PF_INET) + } else { + sl = uint32(28) + Xmemcpy(tls, bp+116+uintptr(nns)*28+8, iplit+8, uint64(16)) + (*(*Tsockaddr_in6)(unsafe.Pointer(bp + 116 + uintptr(nns)*28))).Fsin6_port = Xhtons(tls, uint16(53)) + (*(*Tsockaddr_in6)(unsafe.Pointer(bp + 116 + uintptr(nns)*28))).Fsin6_scope_id = (*Taddress)(unsafe.Pointer(iplit)).Fscopeid + v6 = Int32FromInt32(PF_INET6) + family = v6 + (*(*Tsockaddr_in6)(unsafe.Pointer(bp + 116 + uintptr(nns)*28))).Fsin6_family = Uint16FromInt32(v6) + } + goto _5 + _5: + ; + nns = nns + 1 + } + /* Get local address and open/bind a socket */ + fd = Xsocket(tls, family, Int32FromInt32(SOCK_DGRAM)|Int32FromInt32(SOCK_CLOEXEC)|Int32FromInt32(SOCK_NONBLOCK), 0) + /* Handle case where system lacks IPv6 support */ + if fd < 0 && family == int32(PF_INET6) && **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EAFNOSUPPORT) { + i = 0 + for { + if !(i < nns && (**(**Taddress)(__ccgo_up(conf + uintptr(nns)*28))).Ffamily == int32(PF_INET6)) { + break + } + goto _7 + _7: + ; + i = i + 1 + } + if i == nns { + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 200)), uintptr(0)) + return -int32(1) + } + fd = Xsocket(tls, int32(PF_INET), Int32FromInt32(SOCK_DGRAM)|Int32FromInt32(SOCK_CLOEXEC)|Int32FromInt32(SOCK_NONBLOCK), 0) + family = int32(PF_INET) + sl = uint32(16) + } + /* Convert any IPv4 addresses in a mixed environment to v4-mapped */ + if fd >= 0 && family == int32(PF_INET6) { + *(*int32)(unsafe.Pointer(bp)) = 0 + Xsetsockopt(tls, fd, int32(IPPROTO_IPV6), int32(IPV6_V6ONLY), bp, uint32(4)) + i = 0 + for { + if !(i < nns) { + break + } + if Int32FromUint16((**(**[3]struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + })(__ccgo_up(bp + 116)))[i].Fsin.Fsin_family) != int32(PF_INET) { + goto _8 + } + Xmemcpy(tls, bp+116+uintptr(i)*28+8+uintptr(12), bp+116+uintptr(i)*28+4, uint64(4)) + Xmemcpy(tls, bp+116+uintptr(i)*28+8, __ccgo_ts+1057, uint64(12)) + (*(*Tsockaddr_in6)(unsafe.Pointer(bp + 116 + uintptr(i)*28))).Fsin6_family = uint16(PF_INET6) + (*(*Tsockaddr_in6)(unsafe.Pointer(bp + 116 + uintptr(i)*28))).Fsin6_flowinfo = uint32(0) + (*(*Tsockaddr_in6)(unsafe.Pointer(bp + 116 + uintptr(i)*28))).Fsin6_scope_id = uint32(0) + goto _8 + _8: + ; + i = i + 1 + } + } + (**(**struct { + Fsin6 [0]Tsockaddr_in6 + Fsin Tsockaddr_in + F__ccgo_pad2 [12]byte + })(__ccgo_up(bp + 88))).Fsin.Fsin_family = Uint16FromInt32(family) + if fd < 0 || Xbind(tls, fd, bp+88, sl) < 0 { + if fd >= 0 { + Xclose(tls, fd) + } + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 200)), uintptr(0)) + return -int32(1) + } + /* Past this point, there are no errors. Each individual query will + * yield either no reply (indicated by zero length) or an answer + * packet which is up to the caller to interpret. */ + i = 0 + for { + if !(i < nqueries) { + break + } + (*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), i*8))).Ffd = -int32(1) + goto _9 + _9: + ; + i = i + 1 + } + (*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), nqueries*8))).Ffd = fd + (*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), nqueries*8))).Fevents = int16(POLLIN) + (*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), (nqueries+int32(1))*8))).Ffd = -int32(2) + __pthread_cleanup_push(tls, bp+208, __ccgo_fp(_cleanup), pfd) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 200)), uintptr(0)) + Xmemset(tls, alens, 0, uint64(4)*Uint64FromInt32(nqueries)) + retry_interval = timeout / attempts + next = 0 + v10 = _mtime(tls) + t2 = v10 + t0 = v10 + t1 = t2 - Uint64FromInt32(retry_interval) + for { + if !(t2-t0 < Uint64FromInt32(timeout)) { + break + } + /* This is the loop exit condition: that all queries + * have an accepted answer. */ + i = 0 + for { + if !(i < nqueries && **(**int32)(__ccgo_up(alens + uintptr(i)*4)) > 0) { + break + } + goto _12 + _12: + ; + i = i + 1 + } + if i == nqueries { + break + } + if t2-t1 >= Uint64FromInt32(retry_interval) { + /* Query all configured namservers in parallel */ + i = 0 + for { + if !(i < nqueries) { + break + } + if !(**(**int32)(__ccgo_up(alens + uintptr(i)*4)) != 0) { + j = 0 + for { + if !(j < nns) { + break + } + Xsendto(tls, fd, **(**uintptr)(__ccgo_up(queries + uintptr(i)*8)), Uint64FromInt32(**(**int32)(__ccgo_up(qlens + uintptr(i)*4))), int32(MSG_NOSIGNAL), bp+116+uintptr(j)*28, sl) + goto _14 + _14: + ; + j = j + 1 + } + } + goto _13 + _13: + ; + i = i + 1 + } + t1 = t2 + servfail_retry = int32(2) * nqueries + } + /* Wait for a response, or until time to retry */ + if Xpoll(tls, pfd, Uint64FromInt32(nqueries+int32(1)), Int32FromUint64(t1+Uint64FromInt32(retry_interval)-t2)) <= 0 { + goto _11 + } + for next < nqueries { + *(*[1]Tiovec)(unsafe.Pointer(bp + 8)) = [1]Tiovec{ + 0: { + Fiov_base: **(**uintptr)(__ccgo_up(answers + uintptr(next)*8)), + Fiov_len: Uint64FromInt32(asize), + }, + } + **(**Tmsghdr)(__ccgo_up(bp + 232)) = Tmsghdr{ + Fmsg_name: bp + 88, + Fmsg_namelen: sl, + Fmsg_iov: bp + 8, + Fmsg_iovlen: int32(1), + } + rlen = int32(Xrecvmsg(tls, fd, bp+232, 0)) + if rlen < 0 { + break + } + /* Ignore non-identifiable packets */ + if rlen < int32(4) { + continue + } + /* Ignore replies from addresses we didn't send to */ + j = 0 + for { + if !(j < nns && Xmemcmp(tls, bp+116+uintptr(j)*28, bp+88, uint64(sl)) != 0) { + break + } + goto _15 + _15: + ; + j = j + 1 + } + if j == nns { + continue + } + /* Find which query this answer goes with, if any */ + i = next + for { + if !(i < nqueries && (Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(answers + uintptr(next)*8))))) != Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(queries + uintptr(i)*8))))) || Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(answers + uintptr(next)*8)) + 1))) != Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(queries + uintptr(i)*8)) + 1))))) { + break + } + goto _16 + _16: + ; + i = i + 1 + } + if i == nqueries { + continue + } + if **(**int32)(__ccgo_up(alens + uintptr(i)*4)) != 0 { + continue + } + /* Only accept positive or negative responses; + * retry immediately on server failure, and ignore + * all other codes such as refusal. */ + switch Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(answers + uintptr(next)*8)) + 3))) & Int32FromInt32(15) { + case 0: + fallthrough + case int32(3): + case int32(2): + if v18 = servfail_retry != 0; v18 { + v6 = servfail_retry + servfail_retry = servfail_retry - 1 + } + if v18 && v6 != 0 { + Xsendto(tls, fd, **(**uintptr)(__ccgo_up(queries + uintptr(i)*8)), Uint64FromInt32(**(**int32)(__ccgo_up(qlens + uintptr(i)*4))), int32(MSG_NOSIGNAL), bp+116+uintptr(j)*28, sl) + } + fallthrough + default: + continue + } + /* Store answer in the right slot, or update next + * available temp slot if it's already in place. */ + **(**int32)(__ccgo_up(alens + uintptr(i)*4)) = rlen + if i == next { + for { + if !(next < nqueries && **(**int32)(__ccgo_up(alens + uintptr(next)*4)) != 0) { + break + } + goto _19 + _19: + ; + next = next + 1 + } + } else { + Xmemcpy(tls, **(**uintptr)(__ccgo_up(answers + uintptr(i)*8)), **(**uintptr)(__ccgo_up(answers + uintptr(next)*8)), Uint64FromInt32(rlen)) + } + /* Ignore further UDP if all slots full or TCP-mode */ + if next == nqueries { + (*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), nqueries*8))).Fevents = 0 + } + /* If answer is truncated (TC bit), fallback to TCP */ + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(answers + uintptr(i)*8)) + 2)))&int32(2) != 0 || (**(**Tmsghdr)(__ccgo_up(bp + 232))).Fmsg_flags&int32(MSG_TRUNC) != 0 { + **(**int32)(__ccgo_up(alens + uintptr(i)*4)) = -int32(1) + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), uintptr(0)) + r = _start_tcp(tls, pfd+uintptr(i)*8, family, bp+116+uintptr(j)*28, sl, **(**uintptr)(__ccgo_up(queries + uintptr(i)*8)), **(**int32)(__ccgo_up(qlens + uintptr(i)*4))) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 200)), uintptr(0)) + if r >= 0 { + *(*int32)(unsafe.Add(unsafe.Pointer(qpos), i*4)) = r + *(*int32)(unsafe.Add(unsafe.Pointer(apos), i*4)) = 0 + } + continue + } + } + i = 0 + for { + if !(i < nqueries) { + break + } + if int32((*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), i*8))).Frevents)&int32(POLLOUT) != 0 { + *(*[2]Tuint8_t)(unsafe.Pointer(bp + 52)) = [2]Tuint8_t{ + 0: Uint8FromInt32(**(**int32)(__ccgo_up(qlens + uintptr(i)*4)) >> int32(8)), + 1: Uint8FromInt32(**(**int32)(__ccgo_up(qlens + uintptr(i)*4))), + } + *(*[2]Tiovec)(unsafe.Pointer(bp + 24)) = [2]Tiovec{ + 0: { + Fiov_base: bp + 52, + Fiov_len: uint64(2), + }, + 1: { + Fiov_base: **(**uintptr)(__ccgo_up(queries + uintptr(i)*8)), + Fiov_len: Uint64FromInt32(**(**int32)(__ccgo_up(qlens + uintptr(i)*4))), + }, + } + **(**Tmsghdr)(__ccgo_up(bp + 288)) = Tmsghdr{ + Fmsg_iov: bp + 24, + Fmsg_iovlen: int32(2), + } + _step_mh(tls, bp+288, Uint64FromInt32(*(*int32)(unsafe.Add(unsafe.Pointer(qpos), i*4)))) + r = int32(Xsendmsg(tls, (*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), i*8))).Ffd, bp+288, int32(MSG_NOSIGNAL))) + if r < 0 { + goto out + } + **(**int32)(__ccgo_up(qpos + uintptr(i)*4)) += r + if *(*int32)(unsafe.Add(unsafe.Pointer(qpos), i*4)) == **(**int32)(__ccgo_up(qlens + uintptr(i)*4))+int32(2) { + (*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), i*8))).Fevents = int16(POLLIN) + } + } + goto _20 + _20: + ; + i = i + 1 + } + i = 0 + for { + if !(i < nqueries) { + break + } + if int32((*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), i*8))).Frevents)&int32(POLLIN) != 0 { + *(*[2]Tiovec)(unsafe.Pointer(bp + 56)) = [2]Tiovec{ + 0: { + Fiov_base: alen_buf + uintptr(i)*2, + Fiov_len: uint64(2), + }, + 1: { + Fiov_base: **(**uintptr)(__ccgo_up(answers + uintptr(i)*8)), + Fiov_len: Uint64FromInt32(asize), + }, + } + **(**Tmsghdr)(__ccgo_up(bp + 344)) = Tmsghdr{ + Fmsg_iov: bp + 56, + Fmsg_iovlen: int32(2), + } + _step_mh(tls, bp+344, Uint64FromInt32(*(*int32)(unsafe.Add(unsafe.Pointer(apos), i*4)))) + r = int32(Xrecvmsg(tls, (*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), i*8))).Ffd, bp+344, 0)) + if r <= 0 { + goto out + } + **(**int32)(__ccgo_up(apos + uintptr(i)*4)) += r + if *(*int32)(unsafe.Add(unsafe.Pointer(apos), i*4)) < int32(2) { + goto _21 + } + alen = Int32FromUint8(**(**uint8)(__ccgo_up(alen_buf + uintptr(i)*2)))*int32(256) + Int32FromUint8(**(**uint8)(__ccgo_up(alen_buf + uintptr(i)*2 + 1))) + if alen < int32(13) { + goto out + } + if *(*int32)(unsafe.Add(unsafe.Pointer(apos), i*4)) < alen+int32(2) && *(*int32)(unsafe.Add(unsafe.Pointer(apos), i*4)) < asize+int32(2) { + goto _21 + } + rcode = Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(answers + uintptr(i)*8)) + 3))) & int32(15) + if rcode != 0 && rcode != int32(3) { + goto out + } + /* Storing the length here commits the accepted answer. + * Immediately close TCP socket so as not to consume + * resources we no longer need. */ + **(**int32)(__ccgo_up(alens + uintptr(i)*4)) = alen + X__syscall1(tls, int64(SYS_close), int64((*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), i*8))).Ffd)) + (*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), i*8))).Ffd = -int32(1) + } + goto _21 + _21: + ; + i = i + 1 + } + goto _11 + _11: + ; + t2 = _mtime(tls) + } + goto out +out: + ; + __pthread_cleanup_pop(tls, bp+208, int32(1)) + /* Disregard any incomplete TCP results */ + i = 0 + for { + if !(i < nqueries) { + break + } + if **(**int32)(__ccgo_up(alens + uintptr(i)*4)) < 0 { + **(**int32)(__ccgo_up(alens + uintptr(i)*4)) = 0 + } + goto _22 + _22: + ; + i = i + 1 + } + return 0 +} + +func X__res_msend(tls *TLS, nqueries int32, queries uintptr, qlens uintptr, answers uintptr, alens uintptr, asize int32) (r int32) { + if __ccgo_strace { + trc("tls=%v nqueries=%v queries=%v qlens=%v answers=%v alens=%v asize=%v, (%v:)", tls, nqueries, queries, qlens, answers, alens, asize, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(112) + defer tls.Free(112) + var _ /* conf at bp+0 */ Tresolvconf + if X__get_resolv_conf(tls, bp, uintptr(0), uint64(0)) < 0 { + return -int32(1) + } + return X__res_msend_rc(tls, nqueries, queries, qlens, answers, alens, asize, bp) +} + +func X__res_send(tls *TLS, _msg uintptr, _msglen int32, _answer uintptr, _anslen int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v _msg=%v _msglen=%v _answer=%v _anslen=%v, (%v:)", tls, _msg, _msglen, _answer, _anslen, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(544) + defer tls.Free(544) + *(*uintptr)(unsafe.Pointer(bp)) = _msg + *(*int32)(unsafe.Pointer(bp + 8)) = _msglen + *(*uintptr)(unsafe.Pointer(bp + 16)) = _answer + *(*int32)(unsafe.Pointer(bp + 24)) = _anslen + var r, v1 int32 + var _ /* buf at bp+28 */ [512]uint8 + _, _ = r, v1 + if **(**int32)(__ccgo_up(bp + 24)) < int32(512) { + r = X__res_send(tls, **(**uintptr)(__ccgo_up(bp)), **(**int32)(__ccgo_up(bp + 8)), bp+28, int32(512)) + if r >= 0 { + if r < **(**int32)(__ccgo_up(bp + 24)) { + v1 = r + } else { + v1 = **(**int32)(__ccgo_up(bp + 24)) + } + Xmemcpy(tls, **(**uintptr)(__ccgo_up(bp + 16)), bp+28, Uint64FromInt32(v1)) + } + return r + } + r = X__res_msend(tls, int32(1), bp, bp+8, bp+16, bp+24, **(**int32)(__ccgo_up(bp + 24))) + if r < 0 || !(**(**int32)(__ccgo_up(bp + 24)) != 0) { + v1 = -int32(1) + } else { + v1 = **(**int32)(__ccgo_up(bp + 24)) + } + return v1 +} + +func Xres_send(tls *TLS, _msg uintptr, _msglen int32, _answer uintptr, _anslen int32) (r int32) { + if __ccgo_strace { + trc("tls=%v _msg=%v _msglen=%v _answer=%v _anslen=%v, (%v:)", tls, _msg, _msglen, _answer, _anslen, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__res_send(tls, _msg, _msglen, _answer, _anslen) +} + +/* This is completely unused, and exists purely to satisfy broken apps. */ + +func X__res_state(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(unsafe.Pointer(&_res1)) +} + +var _res1 t__res_state + +func X__get_resolv_conf(tls *TLS, conf uintptr, search uintptr, search_sz Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v conf=%v search=%v search_sz=%v, (%v:)", tls, conf, search, search_sz, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(752) + defer tls.Free(752) + var c, nns, v1, v2 int32 + var f, p uintptr + var l Tsize_t + var x, x1, x2, v5 uint64 + var v4 bool + var _ /* _buf at bp+256 */ [256]uint8 + var _ /* _f at bp+512 */ TFILE + var _ /* line at bp+0 */ [256]uint8 + var _ /* z at bp+744 */ uintptr + _, _, _, _, _, _, _, _, _, _, _, _ = c, f, l, nns, p, x, x1, x2, v1, v2, v4, v5 + nns = 0 + (*Tresolvconf)(unsafe.Pointer(conf)).Fndots = uint32(1) + (*Tresolvconf)(unsafe.Pointer(conf)).Ftimeout = uint32(5) + (*Tresolvconf)(unsafe.Pointer(conf)).Fattempts = uint32(2) + if search != 0 { + **(**uint8)(__ccgo_up(search)) = uint8(0) + } + f = X__fopen_rb_ca(tls, __ccgo_ts+1179, bp+512, bp+256, uint64(256)) + if !(f != 0) { + switch **(**int32)(__ccgo_up(X__errno_location(tls))) { + case int32(ENOENT): + fallthrough + case int32(ENOTDIR): + fallthrough + case int32(EACCES): + goto no_resolv_conf + default: + return -int32(1) + } + } + for Xfgets(tls, bp, int32(256), f) != 0 { + if !(Xstrchr(tls, bp, int32('\n')) != 0) && !((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_EOF) != 0) { + for cond := true; cond; cond = c != int32('\n') && c != -int32(1) { + c = Xgetc(tls, f) + } + continue + } + if v4 = !(Xstrncmp(tls, bp, __ccgo_ts+1196, uint64(7)) != 0); v4 { + v1 = Int32FromUint8((**(**[256]uint8)(__ccgo_up(bp)))[int32(7)]) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _3 + _3: + } + if v4 && v2 != 0 { + p = Xstrstr(tls, bp, __ccgo_ts+1204) + if p != 0 && BoolInt32(uint32(**(**uint8)(__ccgo_up(p + 6)))-uint32('0') < uint32(10)) != 0 { + p = p + uintptr(6) + x = Xstrtoul(tls, p, bp+744, int32(10)) + if **(**uintptr)(__ccgo_up(bp + 744)) != p { + if x > uint64(15) { + v5 = uint64(15) + } else { + v5 = x + } + (*Tresolvconf)(unsafe.Pointer(conf)).Fndots = uint32(v5) + } + } + p = Xstrstr(tls, bp, __ccgo_ts+1211) + if p != 0 && BoolInt32(uint32(**(**uint8)(__ccgo_up(p + 9)))-uint32('0') < uint32(10)) != 0 { + p = p + uintptr(9) + x1 = Xstrtoul(tls, p, bp+744, int32(10)) + if **(**uintptr)(__ccgo_up(bp + 744)) != p { + if x1 > uint64(10) { + v5 = uint64(10) + } else { + v5 = x1 + } + (*Tresolvconf)(unsafe.Pointer(conf)).Fattempts = uint32(v5) + } + } + p = Xstrstr(tls, bp, __ccgo_ts+1221) + if p != 0 && (BoolInt32(uint32(**(**uint8)(__ccgo_up(p + 8)))-uint32('0') < uint32(10)) != 0 || Int32FromUint8(**(**uint8)(__ccgo_up(p + 8))) == int32('.')) { + p = p + uintptr(8) + x2 = Xstrtoul(tls, p, bp+744, int32(10)) + if **(**uintptr)(__ccgo_up(bp + 744)) != p { + if x2 > uint64(60) { + v5 = uint64(60) + } else { + v5 = x2 + } + (*Tresolvconf)(unsafe.Pointer(conf)).Ftimeout = uint32(v5) + } + } + continue + } + if v4 = !(Xstrncmp(tls, bp, __ccgo_ts+1230, uint64(10)) != 0); v4 { + v1 = Int32FromUint8((**(**[256]uint8)(__ccgo_up(bp)))[int32(10)]) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _10 + _10: + } + if v4 && v2 != 0 { + if nns >= int32(MAXNS) { + continue + } + p = bp + uintptr(11) + for { + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(p))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _15 + _15: + if !(v2 != 0) { + break + } + goto _12 + _12: + ; + p = p + 1 + } + **(**uintptr)(__ccgo_up(bp + 744)) = p + for { + if v4 = **(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 744)))) != 0; v4 { + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 744))))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _19 + _19: + } + if !(v4 && !(v2 != 0)) { + break + } + goto _16 + _16: + ; + **(**uintptr)(__ccgo_up(bp + 744)) = **(**uintptr)(__ccgo_up(bp + 744)) + 1 + } + **(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 744)))) = uint8(0) + if X__lookup_ipliteral(tls, conf+uintptr(nns)*28, p, PF_UNSPEC) > 0 { + nns = nns + 1 + } + continue + } + if !(search != 0) { + continue + } + if v4 = Xstrncmp(tls, bp, __ccgo_ts+1241, uint64(6)) != 0 && Xstrncmp(tls, bp, __ccgo_ts+1248, uint64(6)) != 0; !v4 { + v1 = Int32FromUint8((**(**[256]uint8)(__ccgo_up(bp)))[int32(6)]) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _23 + _23: + } + if v4 || !(v2 != 0) { + continue + } + p = bp + uintptr(7) + for { + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(p))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _28 + _28: + if !(v2 != 0) { + break + } + goto _25 + _25: + ; + p = p + 1 + } + l = _strlen(tls, p) + /* This can never happen anyway with chosen buffer sizes. */ + if l >= search_sz { + continue + } + Xmemcpy(tls, search, p, l+uint64(1)) + } + X__fclose_ca(tls, f) + goto no_resolv_conf +no_resolv_conf: + ; + if !(nns != 0) { + X__lookup_ipliteral(tls, conf, __ccgo_ts+1255, PF_UNSPEC) + nns = int32(1) + } + (*Tresolvconf)(unsafe.Pointer(conf)).Fnns = Uint32FromInt32(nns) + return 0 +} + +func Xsend(tls *TLS, fd int32, buf uintptr, len1 Tsize_t, flags int32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v len1=%v flags=%v, (%v:)", tls, fd, buf, len1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xsendto(tls, fd, buf, len1, flags, uintptr(0), uint32(0)) +} + +func Xsendmmsg(tls *TLS, fd int32, msgvec uintptr, vlen uint32, flags uint32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v msgvec=%v vlen=%v flags=%v, (%v:)", tls, fd, msgvec, vlen, flags, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var i, v2 int32 + var r Tssize_t + _, _, _ = i, r, v2 + if vlen > uint32(IOV_MAX) { + vlen = uint32(IOV_MAX) + } /* This matches the kernel. */ + if !(vlen != 0) { + return 0 + } + i = 0 + for { + if !(Uint32FromInt32(i) < vlen) { + break + } + /* As an unfortunate inconsistency, the sendmmsg API uses + * unsigned int for the resulting msg_len, despite sendmsg + * returning ssize_t. However Linux limits the total bytes + * sent by sendmsg to INT_MAX, so the assignment is safe. */ + r = Xsendmsg(tls, fd, msgvec+uintptr(i)*64, Int32FromUint32(flags)) + if r < 0 { + goto error + } + (**(**Tmmsghdr)(__ccgo_up(msgvec + uintptr(i)*64))).Fmsg_len = Uint32FromInt64(r) + goto _1 + _1: + ; + i = i + 1 + } + goto error +error: + ; + if i != 0 { + v2 = i + } else { + v2 = -int32(1) + } + return v2 + return r1 +} + +func Xsendmsg(tls *TLS, fd int32, msg uintptr, flags int32) (r1 Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v msg=%v flags=%v, (%v:)", tls, fd, msg, flags, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(1216) + defer tls.Free(1216) + var c1, v3 uintptr + var r, v14 int64 + var v1, v5, v6 int32 + var v10, v11, v12, v13, v8, v9 Tsyscall_arg_t + var _ /* chbuf at bp+152 */ [66]Tcmsghdr + var _ /* h at bp+96 */ Tmsghdr + _, _, _, _, _, _, _, _, _, _, _, _, _ = c1, r, v1, v10, v11, v12, v13, v14, v3, v5, v6, v8, v9 + if msg != 0 { + **(**Tmsghdr)(__ccgo_up(bp + 96)) = **(**Tmsghdr)(__ccgo_up(msg)) + v1 = Int32FromInt32(0) + (**(**Tmsghdr)(__ccgo_up(bp + 96))).F__pad2 = v1 + (**(**Tmsghdr)(__ccgo_up(bp + 96))).F__pad1 = v1 + msg = bp + 96 + if (**(**Tmsghdr)(__ccgo_up(bp + 96))).Fmsg_controllen != 0 { + if uint64((**(**Tmsghdr)(__ccgo_up(bp + 96))).Fmsg_controllen) > uint64(1056) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOMEM) + return int64(-int32(1)) + } + Xmemcpy(tls, bp+152, (**(**Tmsghdr)(__ccgo_up(bp + 96))).Fmsg_control, uint64((**(**Tmsghdr)(__ccgo_up(bp + 96))).Fmsg_controllen)) + (**(**Tmsghdr)(__ccgo_up(bp + 96))).Fmsg_control = bp + 152 + if uint64((*Tmsghdr)(unsafe.Pointer(bp+96)).Fmsg_controllen) >= uint64(16) { + v3 = (*Tmsghdr)(unsafe.Pointer(bp + 96)).Fmsg_control + } else { + v3 = UintptrFromInt32(0) + } + c1 = v3 + for { + if !(c1 != 0) { + break + } + (*Tcmsghdr)(unsafe.Pointer(c1)).F__pad1 = 0 + goto _2 + _2: + ; + if uint64((*Tcmsghdr)(unsafe.Pointer(c1)).Fcmsg_len) < uint64(16) || (uint64((*Tcmsghdr)(unsafe.Pointer(c1)).Fcmsg_len)+uint64(8)-uint64(1))&Uint64FromInt64(^Int64FromUint64(Uint64FromInt64(8)-Uint64FromInt32(1)))+uint64(16) >= Uint64FromInt64(int64((*Tmsghdr)(unsafe.Pointer(bp+96)).Fmsg_control+uintptr((*Tmsghdr)(unsafe.Pointer(bp+96)).Fmsg_controllen))-int64(c1)) { + v3 = uintptr(0) + } else { + v3 = c1 + uintptr((uint64((*Tcmsghdr)(unsafe.Pointer(c1)).Fcmsg_len)+Uint64FromInt64(8)-Uint64FromInt32(1))&Uint64FromInt64(^Int64FromUint64(Uint64FromInt64(8)-Uint64FromInt32(1)))) + } + c1 = v3 + } + } + } + v1 = int32(SYS_sendmsg) + v5 = int32(__SC_sendmsg) + v6 = int32(1) + v8 = int64(fd) + v9 = int64(msg) + v10 = int64(flags) + v11 = int64(Int32FromInt32(0)) + v12 = int64(Int32FromInt32(0)) + v13 = int64(Int32FromInt32(0)) + if v6 != 0 { + r = ___syscall_cp(tls, int64(v1), v8, v9, v10, v11, v12, v13) + } else { + r = X__syscall6(tls, int64(v1), v8, v9, v10, v11, v12, v13) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v14 = r + goto _15 + } + if v6 != 0 { + *(*[6]int64)(unsafe.Pointer(bp)) = [6]int64{ + 0: v8, + 1: v9, + 2: v10, + 3: v11, + 4: v12, + 5: v13, + } + r = ___syscall_cp(tls, int64(SYS_socketcall), int64(v5), int64(bp), 0, 0, 0, 0) + } else { + *(*[6]int64)(unsafe.Pointer(bp + 48)) = [6]int64{ + 0: v8, + 1: v9, + 2: v10, + 3: v11, + 4: v12, + 5: v13, + } + r = X__syscall2(tls, int64(SYS_socketcall), int64(v5), int64(bp+48)) + } + v14 = r + goto _15 +_15: + return X__syscall_ret(tls, Uint64FromInt64(v14)) +} + +func Xsendto(tls *TLS, fd int32, buf uintptr, len1 Tsize_t, flags int32, addr uintptr, alen Tsocklen_t) (r1 Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v len1=%v flags=%v addr=%v alen=%v, (%v:)", tls, fd, buf, len1, flags, addr, alen, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(96) + defer tls.Free(96) + var r, v10 int64 + var v1, v2, v3 int32 + var v4, v5, v6, v7, v8, v9 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _, _, _ = r, v1, v10, v2, v3, v4, v5, v6, v7, v8, v9 + v1 = int32(SYS_sendto) + v2 = int32(__SC_sendto) + v3 = int32(1) + v4 = int64(fd) + v5 = int64(buf) + v6 = Int64FromUint64(len1) + v7 = int64(flags) + v8 = int64(addr) + v9 = Int64FromUint32(alen) + if v3 != 0 { + r = ___syscall_cp(tls, int64(v1), v4, v5, v6, v7, v8, v9) + } else { + r = X__syscall6(tls, int64(v1), v4, v5, v6, v7, v8, v9) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v10 = r + goto _11 + } + if v3 != 0 { + *(*[6]int64)(unsafe.Pointer(bp)) = [6]int64{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = ___syscall_cp(tls, int64(SYS_socketcall), int64(v2), int64(bp), 0, 0, 0, 0) + } else { + *(*[6]int64)(unsafe.Pointer(bp + 48)) = [6]int64{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = X__syscall2(tls, int64(SYS_socketcall), int64(v2), int64(bp+48)) + } + v10 = r + goto _11 +_11: + return X__syscall_ret(tls, Uint64FromInt64(v10)) +} + +func Xendservent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } +} + +func Xsetservent(tls *TLS, stayopen int32) { + if __ccgo_strace { + trc("tls=%v stayopen=%v, (%v:)", tls, stayopen, origin(2)) + } +} + +func Xgetservent(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(0) +} + +func Xsetsockopt(tls *TLS, fd int32, level int32, optname int32, optval uintptr, optlen Tsocklen_t) (r2 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v level=%v optname=%v optval=%v optlen=%v, (%v:)", tls, fd, level, optname, optval, optlen, origin(2)) + defer func() { trc("-> %v", r2) }() + } + bp := tls.Alloc(304) + defer tls.Free(304) + var r, v10 int64 + var r1, v1, v2, v3 int32 + var s Ttime_t + var tv uintptr + var us Tsuseconds_t + var v12 uint64 + var v4, v5, v6, v7, v8, v9 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = r, r1, s, tv, us, v1, v10, v12, v2, v3, v4, v5, v6, v7, v8, v9 + v1 = int32(SYS_setsockopt) + v2 = int32(__SC_setsockopt) + v3 = 0 + v4 = int64(fd) + v5 = int64(level) + v6 = int64(optname) + v7 = int64(optval) + v8 = Int64FromUint32(optlen) + v9 = int64(Int32FromInt32(0)) + if v3 != 0 { + r = ___syscall_cp(tls, int64(v1), v4, v5, v6, v7, v8, v9) + } else { + r = X__syscall6(tls, int64(v1), v4, v5, v6, v7, v8, v9) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v10 = r + goto _11 + } + if v3 != 0 { + *(*[6]int64)(unsafe.Pointer(bp + 208)) = [6]int64{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = ___syscall_cp(tls, int64(SYS_socketcall), int64(v2), int64(bp+208), 0, 0, 0, 0) + } else { + *(*[6]int64)(unsafe.Pointer(bp + 256)) = [6]int64{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = X__syscall2(tls, int64(SYS_socketcall), int64(v2), int64(bp+256)) + } + v10 = r + goto _11 +_11: + r1 = int32(v10) + if r1 == -int32(ENOPROTOOPT) { + switch level { + case int32(SOL_SOCKET): + switch optname { + case int32(SO_RCVTIMEO): + fallthrough + case int32(SO_SNDTIMEO): + if true { + break + } + if uint64(optlen) < uint64(16) { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL)))) + } + tv = optval + s = (*Ttimeval)(unsafe.Pointer(tv)).Ftv_sec + us = (*Ttimeval)(unsafe.Pointer(tv)).Ftv_usec + if !!((Uint64FromInt64(s)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EOPNOTSUPP)))) + } + if optname == int32(SO_RCVTIMEO) { + optname = int32(SO_RCVTIMEO_OLD) + } + if optname == int32(SO_SNDTIMEO) { + optname = int32(SO_SNDTIMEO_OLD) + } + if !((Uint64FromInt64(us)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) { + v12 = Uint64FromInt64(us) + } else { + v12 = uint64(0x7fffffff) + (0+Uint64FromInt64(us))>>int32(63) + } + *(*[2]int64)(unsafe.Pointer(bp + 96)) = [2]int64{ + 0: s, + 1: int64(Int32FromUint64(v12)), + } + v1 = int32(SYS_setsockopt) + v2 = int32(__SC_setsockopt) + v3 = 0 + v4 = int64(fd) + v5 = int64(level) + v6 = int64(optname) + v7 = int64(bp + 96) + v8 = Int64FromUint64(Uint64FromInt32(2) * Uint64FromInt64(8)) + v9 = int64(Int32FromInt32(0)) + if v3 != 0 { + r = ___syscall_cp(tls, int64(v1), v4, v5, v6, v7, v8, v9) + } else { + r = X__syscall6(tls, int64(v1), v4, v5, v6, v7, v8, v9) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v10 = r + goto _23 + } + if v3 != 0 { + *(*[6]int64)(unsafe.Pointer(bp + 208)) = [6]int64{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = ___syscall_cp(tls, int64(SYS_socketcall), int64(v2), int64(bp+208), 0, 0, 0, 0) + } else { + *(*[6]int64)(unsafe.Pointer(bp + 256)) = [6]int64{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = X__syscall2(tls, int64(SYS_socketcall), int64(v2), int64(bp+256)) + } + v10 = r + goto _23 + _23: + r1 = int32(v10) + case int32(SO_TIMESTAMP): + fallthrough + case int32(SO_TIMESTAMPNS): + if true { + break + } + if optname == int32(SO_TIMESTAMP) { + optname = int32(SO_TIMESTAMP_OLD) + } + if optname == int32(SO_TIMESTAMPNS) { + optname = int32(SO_TIMESTAMPNS_OLD) + } + v1 = int32(SYS_setsockopt) + v2 = int32(__SC_setsockopt) + v3 = 0 + v4 = int64(fd) + v5 = int64(level) + v6 = int64(optname) + v7 = int64(optval) + v8 = Int64FromUint32(optlen) + v9 = int64(Int32FromInt32(0)) + if v3 != 0 { + r = ___syscall_cp(tls, int64(v1), v4, v5, v6, v7, v8, v9) + } else { + r = X__syscall6(tls, int64(v1), v4, v5, v6, v7, v8, v9) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v10 = r + goto _34 + } + if v3 != 0 { + *(*[6]int64)(unsafe.Pointer(bp + 208)) = [6]int64{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = ___syscall_cp(tls, int64(SYS_socketcall), int64(v2), int64(bp+208), 0, 0, 0, 0) + } else { + *(*[6]int64)(unsafe.Pointer(bp + 256)) = [6]int64{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = X__syscall2(tls, int64(SYS_socketcall), int64(v2), int64(bp+256)) + } + v10 = r + goto _34 + _34: + r1 = int32(v10) + break + } + } + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r1))) +} + +func Xshutdown(tls *TLS, fd int32, how int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v how=%v, (%v:)", tls, fd, how, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(96) + defer tls.Free(96) + var r, v10 int64 + var v1, v2, v3 int32 + var v4, v5, v6, v7, v8, v9 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _, _, _ = r, v1, v10, v2, v3, v4, v5, v6, v7, v8, v9 + v1 = int32(SYS_shutdown) + v2 = int32(__SC_shutdown) + v3 = 0 + v4 = int64(fd) + v5 = int64(how) + v6 = int64(Int32FromInt32(0)) + v7 = int64(Int32FromInt32(0)) + v8 = int64(Int32FromInt32(0)) + v9 = int64(Int32FromInt32(0)) + if v3 != 0 { + r = ___syscall_cp(tls, int64(v1), v4, v5, v6, v7, v8, v9) + } else { + r = X__syscall6(tls, int64(v1), v4, v5, v6, v7, v8, v9) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v10 = r + goto _11 + } + if v3 != 0 { + *(*[6]int64)(unsafe.Pointer(bp)) = [6]int64{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = ___syscall_cp(tls, int64(SYS_socketcall), int64(v2), int64(bp), 0, 0, 0, 0) + } else { + *(*[6]int64)(unsafe.Pointer(bp + 48)) = [6]int64{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = X__syscall2(tls, int64(SYS_socketcall), int64(v2), int64(bp+48)) + } + v10 = r + goto _11 +_11: + return int32(X__syscall_ret(tls, Uint64FromInt64(v10))) +} + +func Xsockatmark(tls *TLS, s int32) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var _ /* ret at bp+0 */ int32 + if Xioctl(tls, s, int32(SIOCATMARK), VaList(bp+16, bp)) < 0 { + return -int32(1) + } + return **(**int32)(__ccgo_up(bp)) +} + +func Xsocket(tls *TLS, domain int32, type1 int32, protocol int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v domain=%v type1=%v protocol=%v, (%v:)", tls, domain, type1, protocol, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(192) + defer tls.Free(192) + var r, v10, v21 int64 + var s, v1, v12, v13, v14, v2, v3 int32 + var v15, v16, v17, v18, v19, v20, v4, v5, v6, v7, v8, v9 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = r, s, v1, v10, v12, v13, v14, v15, v16, v17, v18, v19, v2, v20, v21, v3, v4, v5, v6, v7, v8, v9 + v1 = int32(SYS_socket) + v2 = int32(__SC_socket) + v3 = 0 + v4 = int64(domain) + v5 = int64(type1) + v6 = int64(protocol) + v7 = int64(Int32FromInt32(0)) + v8 = int64(Int32FromInt32(0)) + v9 = int64(Int32FromInt32(0)) + if v3 != 0 { + r = ___syscall_cp(tls, int64(v1), v4, v5, v6, v7, v8, v9) + } else { + r = X__syscall6(tls, int64(v1), v4, v5, v6, v7, v8, v9) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v10 = r + goto _11 + } + if v3 != 0 { + *(*[6]int64)(unsafe.Pointer(bp + 96)) = [6]int64{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = ___syscall_cp(tls, int64(SYS_socketcall), int64(v2), int64(bp+96), 0, 0, 0, 0) + } else { + *(*[6]int64)(unsafe.Pointer(bp + 144)) = [6]int64{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = X__syscall2(tls, int64(SYS_socketcall), int64(v2), int64(bp+144)) + } + v10 = r + goto _11 +_11: + s = int32(v10) + if (s == -int32(EINVAL) || s == -int32(EPROTONOSUPPORT)) && type1&(Int32FromInt32(SOCK_CLOEXEC)|Int32FromInt32(SOCK_NONBLOCK)) != 0 { + v12 = int32(SYS_socket) + v13 = int32(__SC_socket) + v14 = 0 + v15 = int64(domain) + v16 = int64(type1 & ^(Int32FromInt32(SOCK_CLOEXEC) | Int32FromInt32(SOCK_NONBLOCK))) + v17 = int64(protocol) + v18 = int64(Int32FromInt32(0)) + v19 = int64(Int32FromInt32(0)) + v20 = int64(Int32FromInt32(0)) + if v14 != 0 { + r = ___syscall_cp(tls, int64(v12), v15, v16, v17, v18, v19, v20) + } else { + r = X__syscall6(tls, int64(v12), v15, v16, v17, v18, v19, v20) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v21 = r + goto _22 + } + if v14 != 0 { + *(*[6]int64)(unsafe.Pointer(bp + 96)) = [6]int64{ + 0: v15, + 1: v16, + 2: v17, + 3: v18, + 4: v19, + 5: v20, + } + r = ___syscall_cp(tls, int64(SYS_socketcall), int64(v13), int64(bp+96), 0, 0, 0, 0) + } else { + *(*[6]int64)(unsafe.Pointer(bp + 144)) = [6]int64{ + 0: v15, + 1: v16, + 2: v17, + 3: v18, + 4: v19, + 5: v20, + } + r = X__syscall2(tls, int64(SYS_socketcall), int64(v13), int64(bp+144)) + } + v21 = r + goto _22 + _22: + s = int32(v21) + if s < 0 { + return int32(X__syscall_ret(tls, Uint64FromInt32(s))) + } + if type1&int32(SOCK_CLOEXEC) != 0 { + X__syscall3(tls, int64(SYS_fcntl), int64(s), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + } + if type1&int32(SOCK_NONBLOCK) != 0 { + X__syscall3(tls, int64(SYS_fcntl), int64(s), int64(Int32FromInt32(F_SETFL)), int64(Int32FromInt32(O_NONBLOCK))) + } + } + return int32(X__syscall_ret(tls, Uint64FromInt32(s))) +} + +func Xsocketpair(tls *TLS, domain int32, type1 int32, protocol int32, fd uintptr) (r2 int32) { + if __ccgo_strace { + trc("tls=%v domain=%v type1=%v protocol=%v fd=%v, (%v:)", tls, domain, type1, protocol, fd, origin(2)) + defer func() { trc("-> %v", r2) }() + } + bp := tls.Alloc(192) + defer tls.Free(192) + var r, v10, v21 int64 + var r1, v1, v12, v13, v14, v2, v3 int32 + var v15, v16, v17, v18, v19, v20, v4, v5, v6, v7, v8, v9 Tsyscall_arg_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = r, r1, v1, v10, v12, v13, v14, v15, v16, v17, v18, v19, v2, v20, v21, v3, v4, v5, v6, v7, v8, v9 + v1 = int32(SYS_socketpair) + v2 = int32(__SC_socketpair) + v3 = 0 + v4 = int64(domain) + v5 = int64(type1) + v6 = int64(protocol) + v7 = int64(fd) + v8 = int64(Int32FromInt32(0)) + v9 = int64(Int32FromInt32(0)) + if v3 != 0 { + r = ___syscall_cp(tls, int64(v1), v4, v5, v6, v7, v8, v9) + } else { + r = X__syscall6(tls, int64(v1), v4, v5, v6, v7, v8, v9) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v10 = r + goto _11 + } + if v3 != 0 { + *(*[6]int64)(unsafe.Pointer(bp + 96)) = [6]int64{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = ___syscall_cp(tls, int64(SYS_socketcall), int64(v2), int64(bp+96), 0, 0, 0, 0) + } else { + *(*[6]int64)(unsafe.Pointer(bp + 144)) = [6]int64{ + 0: v4, + 1: v5, + 2: v6, + 3: v7, + 4: v8, + 5: v9, + } + r = X__syscall2(tls, int64(SYS_socketcall), int64(v2), int64(bp+144)) + } + v10 = r + goto _11 +_11: + r1 = int32(X__syscall_ret(tls, Uint64FromInt64(v10))) + if r1 < 0 && (**(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EINVAL) || **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EPROTONOSUPPORT)) && type1&(Int32FromInt32(SOCK_CLOEXEC)|Int32FromInt32(SOCK_NONBLOCK)) != 0 { + v12 = int32(SYS_socketpair) + v13 = int32(__SC_socketpair) + v14 = 0 + v15 = int64(domain) + v16 = int64(type1 & ^(Int32FromInt32(SOCK_CLOEXEC) | Int32FromInt32(SOCK_NONBLOCK))) + v17 = int64(protocol) + v18 = int64(fd) + v19 = int64(Int32FromInt32(0)) + v20 = int64(Int32FromInt32(0)) + if v14 != 0 { + r = ___syscall_cp(tls, int64(v12), v15, v16, v17, v18, v19, v20) + } else { + r = X__syscall6(tls, int64(v12), v15, v16, v17, v18, v19, v20) + } + if r != int64(-Int32FromInt32(ENOSYS)) { + v21 = r + goto _22 + } + if v14 != 0 { + *(*[6]int64)(unsafe.Pointer(bp + 96)) = [6]int64{ + 0: v15, + 1: v16, + 2: v17, + 3: v18, + 4: v19, + 5: v20, + } + r = ___syscall_cp(tls, int64(SYS_socketcall), int64(v13), int64(bp+96), 0, 0, 0, 0) + } else { + *(*[6]int64)(unsafe.Pointer(bp + 144)) = [6]int64{ + 0: v15, + 1: v16, + 2: v17, + 3: v18, + 4: v19, + 5: v20, + } + r = X__syscall2(tls, int64(SYS_socketcall), int64(v13), int64(bp+144)) + } + v21 = r + goto _22 + _22: + r1 = int32(X__syscall_ret(tls, Uint64FromInt64(v21))) + if r1 < 0 { + return r1 + } + if type1&int32(SOCK_CLOEXEC) != 0 { + X__syscall3(tls, int64(SYS_fcntl), int64(**(**int32)(__ccgo_up(fd))), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + X__syscall3(tls, int64(SYS_fcntl), int64(**(**int32)(__ccgo_up(fd + 1*4))), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + } + if type1&int32(SOCK_NONBLOCK) != 0 { + X__syscall3(tls, int64(SYS_fcntl), int64(**(**int32)(__ccgo_up(fd))), int64(Int32FromInt32(F_SETFL)), int64(Int32FromInt32(O_NONBLOCK))) + X__syscall3(tls, int64(SYS_fcntl), int64(**(**int32)(__ccgo_up(fd + 1*4))), int64(Int32FromInt32(F_SETFL)), int64(Int32FromInt32(O_NONBLOCK))) + } + } + return r1 +} + +const SHADOW = "/etc/shadow" + +type Tgroup = struct { + Fgr_name uintptr + Fgr_passwd uintptr + Fgr_gid Tgid_t + Fgr_mem uintptr +} + +type Tspwd = struct { + Fsp_namp uintptr + Fsp_pwdp uintptr + Fsp_lstchg int64 + Fsp_min int64 + Fsp_max int64 + Fsp_warn int64 + Fsp_inact int64 + Fsp_expire int64 + Fsp_flag uint64 +} + +func Xfgetgrent(tls *TLS, f uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var _ /* nmem at bp+16 */ Tsize_t + var _ /* res at bp+0 */ uintptr + var _ /* size at bp+8 */ Tsize_t + **(**Tsize_t)(__ccgo_up(bp + 8)) = uint64(0) + **(**Tsize_t)(__ccgo_up(bp + 16)) = uint64(0) + X__getgrent_a(tls, f, uintptr(unsafe.Pointer(&_gr)), uintptr(unsafe.Pointer(&_line1)), bp+8, uintptr(unsafe.Pointer(&_mem)), bp+16, bp) + return **(**uintptr)(__ccgo_up(bp)) +} + +var _line1 uintptr + +var _mem uintptr + +var _gr Tgroup + +func Xfgetpwent(tls *TLS, f uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* res at bp+8 */ uintptr + var _ /* size at bp+0 */ Tsize_t + **(**Tsize_t)(__ccgo_up(bp)) = uint64(0) + X__getpwent_a(tls, f, uintptr(unsafe.Pointer(&_pw)), uintptr(unsafe.Pointer(&_line2)), bp, bp+8) + return **(**uintptr)(__ccgo_up(bp + 8)) +} + +var _line2 uintptr + +var _pw Tpasswd + +const GETGRBYGID = 3 +const GETGRBYNAME = 2 +const GETINITGR = 15 +const GETPWBYNAME = 0 +const GETPWBYUID = 1 +const GRFOUND = 1 +const GRGID = 4 +const GRMEMCNT = 5 +const GRNAMELEN = 2 +const GRPASSWDLEN = 3 +const GRVERSION = 0 +const GR_LEN = 6 +const INITGRFOUND = 1 +const INITGRNGRPS = 2 +const INITGRVERSION = 0 +const INITGR_LEN = 3 +const NSCDVERSION = 2 +const PWDIRLEN = 7 +const PWFOUND = 1 +const PWGECOSLEN = 6 +const PWGID = 5 +const PWNAMELEN = 2 +const PWPASSWDLEN = 3 +const PWSHELLLEN = 8 +const PWUID = 4 +const PWVERSION = 0 +const PW_LEN = 9 +const REQKEYLEN = 2 +const REQTYPE = 1 +const REQVERSION = 0 +const REQ_LEN = 3 + +func _itoa1(tls *TLS, p uintptr, x Tuint32_t) (r uintptr) { + var v1 uintptr + _ = v1 + // number of digits in a uint32_t + NUL + p = p + uintptr(11) + p = p - 1 + v1 = p + **(**uint8)(__ccgo_up(v1)) = uint8(0) + for cond := true; cond; cond = x != 0 { + p = p - 1 + v1 = p + **(**uint8)(__ccgo_up(v1)) = uint8(uint32('0') + x%uint32(10)) + x = x / uint32(10) + } + return p +} + +func X__getgr_a(tls *TLS, name uintptr, gid Tgid_t, gr uintptr, buf uintptr, size uintptr, mem uintptr, nmem uintptr, res uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v gid=%v gr=%v buf=%v size=%v mem=%v nmem=%v res=%v, (%v:)", tls, name, gid, gr, buf, size, mem, nmem, res, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(48) + defer tls.Free(48) + var f, key, ptr, tmp, tmp1 uintptr + var grlist_len, len1 Tsize_t + var i, req, v10 Tint32_t + var rv, v1 int32 + var v5, v6 Tuint32_t + var _ /* cs at bp+0 */ int32 + var _ /* gidbuf at bp+28 */ [11]uint8 + var _ /* groupbuf at bp+4 */ [6]Tint32_t + var _ /* name_len at bp+44 */ Tuint32_t + var _ /* swap at bp+40 */ int32 + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = f, grlist_len, i, key, len1, ptr, req, rv, tmp, tmp1, v1, v10, v5, v6 + rv = 0 + **(**uintptr)(__ccgo_up(res)) = uintptr(0) + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp) + f = Xfopen(tls, __ccgo_ts+1265, __ccgo_ts+404) + if !(f != 0) { + rv = **(**int32)(__ccgo_up(X__errno_location(tls))) + goto done + } + for { + v1 = X__getgrent_a(tls, f, gr, buf, size, mem, nmem, res) + rv = v1 + if !(!(v1 != 0) && **(**uintptr)(__ccgo_up(res)) != 0) { + break + } + if name != 0 && !(Xstrcmp(tls, name, (*Tgroup)(unsafe.Pointer(**(**uintptr)(__ccgo_up(res)))).Fgr_name) != 0) || !(name != 0) && (*Tgroup)(unsafe.Pointer(**(**uintptr)(__ccgo_up(res)))).Fgr_gid == gid { + break + } + } + Xfclose(tls, f) + if !(**(**uintptr)(__ccgo_up(res)) != 0) && (rv == 0 || rv == int32(ENOENT) || rv == int32(ENOTDIR)) { + if name != 0 { + v1 = int32(GETGRBYNAME) + } else { + v1 = int32(GETGRBYGID) + } + req = v1 + **(**[6]Tint32_t)(__ccgo_up(bp + 4)) = [6]Tint32_t{} + len1 = uint64(0) + grlist_len = uint64(0) + **(**[11]uint8)(__ccgo_up(bp + 28)) = [11]uint8{} + **(**int32)(__ccgo_up(bp + 40)) = 0 + if name != 0 { + key = name + } else { + if gid < uint32(0) || gid > uint32(0xffffffff) { + rv = 0 + goto done + } + key = _itoa1(tls, bp+28, gid) + } + f = X__nscd_query(tls, req, key, bp+4, uint64(24), bp+40) + if !(f != 0) { + rv = **(**int32)(__ccgo_up(X__errno_location(tls))) + goto done + } + if !((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRFOUND)] != 0) { + rv = 0 + goto cleanup_f + } + if !((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRNAMELEN)] != 0) || !((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRPASSWDLEN)] != 0) { + rv = int32(EIO) + goto cleanup_f + } + if Uint64FromInt32((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRNAMELEN)]) > uint64(0xffffffffffffffff)-Uint64FromInt32((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRPASSWDLEN)]) { + rv = int32(ENOMEM) + goto cleanup_f + } + len1 = Uint64FromInt32((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRNAMELEN)] + (**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRPASSWDLEN)]) + i = 0 + for { + if !(i < (**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRMEMCNT)]) { + break + } + if Xfread(tls, bp+44, uint64(4), uint64(1), f) < uint64(1) { + if Xferror(tls, f) != 0 { + v1 = **(**int32)(__ccgo_up(X__errno_location(tls))) + } else { + v1 = int32(EIO) + } + rv = v1 + goto cleanup_f + } + if **(**int32)(__ccgo_up(bp + 40)) != 0 { + v5 = **(**Tuint32_t)(__ccgo_up(bp + 44)) + v6 = v5>>int32(24) | v5>>int32(8)&uint32(0xff00) | v5< uint64(0xffffffffffffffff)-grlist_len || uint64(**(**Tuint32_t)(__ccgo_up(bp + 44))) > uint64(0xffffffffffffffff)-len1 { + rv = int32(ENOMEM) + goto cleanup_f + } + len1 = len1 + uint64(**(**Tuint32_t)(__ccgo_up(bp + 44))) + grlist_len = grlist_len + uint64(**(**Tuint32_t)(__ccgo_up(bp + 44))) + goto _3 + _3: + ; + i = i + 1 + } + if len1 > **(**Tsize_t)(__ccgo_up(size)) || !(**(**uintptr)(__ccgo_up(buf)) != 0) { + tmp = Xrealloc(tls, **(**uintptr)(__ccgo_up(buf)), len1) + if !(tmp != 0) { + rv = **(**int32)(__ccgo_up(X__errno_location(tls))) + goto cleanup_f + } + **(**uintptr)(__ccgo_up(buf)) = tmp + **(**Tsize_t)(__ccgo_up(size)) = len1 + } + if !(Xfread(tls, **(**uintptr)(__ccgo_up(buf)), len1, uint64(1), f) != 0) { + if Xferror(tls, f) != 0 { + v1 = **(**int32)(__ccgo_up(X__errno_location(tls))) + } else { + v1 = int32(EIO) + } + rv = v1 + goto cleanup_f + } + if Uint64FromInt32((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRMEMCNT)]+int32(1)) > **(**Tsize_t)(__ccgo_up(nmem)) { + if Uint64FromInt32((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRMEMCNT)]+int32(1)) > Uint64FromUint64(0xffffffffffffffff)/Uint64FromInt64(8) { + rv = int32(ENOMEM) + goto cleanup_f + } + tmp1 = Xrealloc(tls, **(**uintptr)(__ccgo_up(mem)), Uint64FromInt32((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRMEMCNT)]+Int32FromInt32(1))*uint64(8)) + if !(tmp1 != 0) { + rv = **(**int32)(__ccgo_up(X__errno_location(tls))) + goto cleanup_f + } + **(**uintptr)(__ccgo_up(mem)) = tmp1 + **(**Tsize_t)(__ccgo_up(nmem)) = Uint64FromInt32((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRMEMCNT)] + int32(1)) + } + if (**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRMEMCNT)] != 0 { + **(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(mem)))) = **(**uintptr)(__ccgo_up(buf)) + uintptr((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRNAMELEN)]) + uintptr((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRPASSWDLEN)]) + ptr = **(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(mem)))) + i = Int32FromInt32(0) + for { + if !(ptr != **(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(mem))))+uintptr(grlist_len)) { + break + } + if !(**(**uint8)(__ccgo_up(ptr)) != 0) { + i = i + 1 + v10 = i + **(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(mem)) + uintptr(v10)*8)) = ptr + uintptr(1) + } + goto _9 + _9: + ; + ptr = ptr + 1 + } + **(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(mem)) + uintptr(i)*8)) = uintptr(0) + if i != (**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRMEMCNT)] { + rv = int32(EIO) + goto cleanup_f + } + } else { + **(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(mem)))) = uintptr(0) + } + (*Tgroup)(unsafe.Pointer(gr)).Fgr_name = **(**uintptr)(__ccgo_up(buf)) + (*Tgroup)(unsafe.Pointer(gr)).Fgr_passwd = (*Tgroup)(unsafe.Pointer(gr)).Fgr_name + uintptr((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRNAMELEN)]) + (*Tgroup)(unsafe.Pointer(gr)).Fgr_gid = Uint32FromInt32((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRGID)]) + (*Tgroup)(unsafe.Pointer(gr)).Fgr_mem = **(**uintptr)(__ccgo_up(mem)) + if **(**uint8)(__ccgo_up((*Tgroup)(unsafe.Pointer(gr)).Fgr_passwd + uintptr(-Int32FromInt32(1)))) != 0 || **(**uint8)(__ccgo_up((*Tgroup)(unsafe.Pointer(gr)).Fgr_passwd + uintptr((**(**[6]Tint32_t)(__ccgo_up(bp + 4)))[int32(GRPASSWDLEN)]-int32(1)))) != 0 { + rv = int32(EIO) + goto cleanup_f + } + if name != 0 && Xstrcmp(tls, name, (*Tgroup)(unsafe.Pointer(gr)).Fgr_name) != 0 || !(name != 0) && gid != (*Tgroup)(unsafe.Pointer(gr)).Fgr_gid { + rv = int32(EIO) + goto cleanup_f + } + **(**uintptr)(__ccgo_up(res)) = gr + goto cleanup_f + cleanup_f: + ; + Xfclose(tls, f) + goto done + } + goto done +done: + ; + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp)), uintptr(0)) + if rv != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = rv + } + return rv +} + +func _getgr_r(tls *TLS, name uintptr, gid Tgid_t, gr uintptr, buf uintptr, size Tsize_t, res uintptr) (r int32) { + bp := tls.Alloc(48) + defer tls.Free(48) + var i Tsize_t + var rv int32 + var _ /* cs at bp+32 */ int32 + var _ /* len at bp+8 */ Tsize_t + var _ /* line at bp+0 */ uintptr + var _ /* mem at bp+16 */ uintptr + var _ /* nmem at bp+24 */ Tsize_t + _, _ = i, rv + **(**uintptr)(__ccgo_up(bp)) = uintptr(0) + **(**Tsize_t)(__ccgo_up(bp + 8)) = uint64(0) + **(**uintptr)(__ccgo_up(bp + 16)) = uintptr(0) + **(**Tsize_t)(__ccgo_up(bp + 24)) = uint64(0) + rv = 0 + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp+32) + rv = X__getgr_a(tls, name, gid, gr, bp, bp+8, bp+16, bp+24, res) + if **(**uintptr)(__ccgo_up(res)) != 0 && size < **(**Tsize_t)(__ccgo_up(bp + 8))+(**(**Tsize_t)(__ccgo_up(bp + 24))+uint64(1))*uint64(8)+uint64(32) { + **(**uintptr)(__ccgo_up(res)) = uintptr(0) + rv = int32(ERANGE) + } + if **(**uintptr)(__ccgo_up(res)) != 0 { + buf = buf + uintptr((uint64(16)-uint64(buf))%uint64(16)) + (*Tgroup)(unsafe.Pointer(gr)).Fgr_mem = buf + buf = buf + uintptr((**(**Tsize_t)(__ccgo_up(bp + 24))+uint64(1))*uint64(8)) + Xmemcpy(tls, buf, **(**uintptr)(__ccgo_up(bp)), **(**Tsize_t)(__ccgo_up(bp + 8))) + (*Tgroup)(unsafe.Pointer(gr)).Fgr_name = uintptr(int64((*Tgroup)(unsafe.Pointer(gr)).Fgr_name)-int64(**(**uintptr)(__ccgo_up(bp)))) + buf + (*Tgroup)(unsafe.Pointer(gr)).Fgr_passwd = uintptr(int64((*Tgroup)(unsafe.Pointer(gr)).Fgr_passwd)-int64(**(**uintptr)(__ccgo_up(bp)))) + buf + i = uint64(0) + for { + if !(**(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 16)) + uintptr(i)*8)) != 0) { + break + } + **(**uintptr)(__ccgo_up((*Tgroup)(unsafe.Pointer(gr)).Fgr_mem + uintptr(i)*8)) = uintptr(int64(**(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 16)) + uintptr(i)*8)))-int64(**(**uintptr)(__ccgo_up(bp)))) + buf + goto _1 + _1: + ; + i = i + 1 + } + **(**uintptr)(__ccgo_up((*Tgroup)(unsafe.Pointer(gr)).Fgr_mem + uintptr(i)*8)) = uintptr(0) + } + Xfree(tls, **(**uintptr)(__ccgo_up(bp + 16))) + Xfree(tls, **(**uintptr)(__ccgo_up(bp))) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 32)), uintptr(0)) + if rv != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = rv + } + return rv +} + +func Xgetgrnam_r(tls *TLS, name uintptr, gr uintptr, buf uintptr, size Tsize_t, res uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v gr=%v buf=%v size=%v res=%v, (%v:)", tls, name, gr, buf, size, res, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _getgr_r(tls, name, uint32(0), gr, buf, size, res) +} + +func Xgetgrgid_r(tls *TLS, gid Tgid_t, gr uintptr, buf uintptr, size Tsize_t, res uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v gid=%v gr=%v buf=%v size=%v res=%v, (%v:)", tls, gid, gr, buf, size, res, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _getgr_r(tls, uintptr(0), gid, gr, buf, size, res) +} + +var _f1 uintptr +var _line3 uintptr +var _mem1 uintptr +var _gr1 Tgroup + +func Xsetgrent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + if _f1 != 0 { + Xfclose(tls, _f1) + } + _f1 = uintptr(0) +} + +func Xgetgrent(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var _ /* nmem at bp+16 */ Tsize_t + var _ /* res at bp+0 */ uintptr + var _ /* size at bp+8 */ Tsize_t + **(**Tsize_t)(__ccgo_up(bp + 8)) = uint64(0) + **(**Tsize_t)(__ccgo_up(bp + 16)) = uint64(0) + if !(_f1 != 0) { + _f1 = Xfopen(tls, __ccgo_ts+1265, __ccgo_ts+404) + } + if !(_f1 != 0) { + return uintptr(0) + } + X__getgrent_a(tls, _f1, uintptr(unsafe.Pointer(&_gr1)), uintptr(unsafe.Pointer(&_line3)), bp+8, uintptr(unsafe.Pointer(&_mem1)), bp+16, bp) + return **(**uintptr)(__ccgo_up(bp)) +} + +func Xgetgrgid(tls *TLS, gid Tgid_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v gid=%v, (%v:)", tls, gid, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var _ /* nmem at bp+16 */ Tsize_t + var _ /* res at bp+0 */ uintptr + var _ /* size at bp+8 */ Tsize_t + **(**Tsize_t)(__ccgo_up(bp + 8)) = uint64(0) + **(**Tsize_t)(__ccgo_up(bp + 16)) = uint64(0) + X__getgr_a(tls, uintptr(0), gid, uintptr(unsafe.Pointer(&_gr1)), uintptr(unsafe.Pointer(&_line3)), bp+8, uintptr(unsafe.Pointer(&_mem1)), bp+16, bp) + return **(**uintptr)(__ccgo_up(bp)) +} + +func Xgetgrnam(tls *TLS, name uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var _ /* nmem at bp+16 */ Tsize_t + var _ /* res at bp+0 */ uintptr + var _ /* size at bp+8 */ Tsize_t + **(**Tsize_t)(__ccgo_up(bp + 8)) = uint64(0) + **(**Tsize_t)(__ccgo_up(bp + 16)) = uint64(0) + X__getgr_a(tls, name, uint32(0), uintptr(unsafe.Pointer(&_gr1)), uintptr(unsafe.Pointer(&_line3)), bp+8, uintptr(unsafe.Pointer(&_mem1)), bp+16, bp) + return **(**uintptr)(__ccgo_up(bp)) +} + +func Xendgrent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + Xsetgrent(tls) +} + +func _atou(tls *TLS, s uintptr) (r uint32) { + var x uint32 + _ = x + x = uint32(0) + for { + if !(Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(s)))))-int32('0')) < uint32(10)) { + break + } + x = uint32(10)*x + Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(s)))))-Int32FromUint8('0')) + goto _1 + _1: + ; + **(**uintptr)(__ccgo_up(s)) = **(**uintptr)(__ccgo_up(s)) + 1 + } + return x +} + +func X__getgrent_a(tls *TLS, f uintptr, gr uintptr, line uintptr, size uintptr, mem uintptr, nmem uintptr, res uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v gr=%v line=%v size=%v mem=%v nmem=%v res=%v, (%v:)", tls, f, gr, line, size, mem, nmem, res, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var i, v13 Tsize_t + var l, v2 Tssize_t + var mems, v4 uintptr + var rv, v3 int32 + var _ /* cs at bp+8 */ int32 + var _ /* s at bp+0 */ uintptr + _, _, _, _, _, _, _, _ = i, l, mems, rv, v13, v2, v3, v4 + rv = 0 + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp+8) + for { + v2 = Xgetline(tls, line, size, f) + l = v2 + if v2 < 0 { + if Xferror(tls, f) != 0 { + v3 = **(**int32)(__ccgo_up(X__errno_location(tls))) + } else { + v3 = 0 + } + rv = v3 + Xfree(tls, **(**uintptr)(__ccgo_up(line))) + **(**uintptr)(__ccgo_up(line)) = uintptr(0) + gr = uintptr(0) + goto end + } + **(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(line)) + uintptr(l-int64(1)))) = uint8(0) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(line)) + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + (*Tgroup)(unsafe.Pointer(gr)).Fgr_name = v4 + v4 = Xstrchr(tls, **(**uintptr)(__ccgo_up(bp)), int32(':')) + **(**uintptr)(__ccgo_up(bp)) = v4 + if !(v4 != 0) { + goto _1 + } + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + **(**uint8)(__ccgo_up(v4)) = uint8(0) + (*Tgroup)(unsafe.Pointer(gr)).Fgr_passwd = **(**uintptr)(__ccgo_up(bp)) + v4 = Xstrchr(tls, **(**uintptr)(__ccgo_up(bp)), int32(':')) + **(**uintptr)(__ccgo_up(bp)) = v4 + if !(v4 != 0) { + goto _1 + } + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + **(**uint8)(__ccgo_up(v4)) = uint8(0) + (*Tgroup)(unsafe.Pointer(gr)).Fgr_gid = _atou(tls, bp) + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp))))) != int32(':') { + goto _1 + } + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + **(**uint8)(__ccgo_up(v4)) = uint8(0) + mems = **(**uintptr)(__ccgo_up(bp)) + break + goto _1 + _1: + } + **(**Tsize_t)(__ccgo_up(nmem)) = BoolUint64(!!(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)))) != 0)) + for { + if !(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)))) != 0) { + break + } + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp))))) == int32(',') { + **(**Tsize_t)(__ccgo_up(nmem)) = **(**Tsize_t)(__ccgo_up(nmem)) + 1 + } + goto _10 + _10: + ; + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + } + Xfree(tls, **(**uintptr)(__ccgo_up(mem))) + **(**uintptr)(__ccgo_up(mem)) = Xcalloc(tls, uint64(8), **(**Tsize_t)(__ccgo_up(nmem))+uint64(1)) + if !(**(**uintptr)(__ccgo_up(mem)) != 0) { + rv = **(**int32)(__ccgo_up(X__errno_location(tls))) + Xfree(tls, **(**uintptr)(__ccgo_up(line))) + **(**uintptr)(__ccgo_up(line)) = uintptr(0) + gr = uintptr(0) + goto end + } + if **(**uint8)(__ccgo_up(mems)) != 0 { + **(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(mem)))) = mems + **(**uintptr)(__ccgo_up(bp)) = mems + i = Uint64FromInt32(0) + for { + if !(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)))) != 0) { + break + } + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp))))) == int32(',') { + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + **(**uint8)(__ccgo_up(v4)) = uint8(0) + i = i + 1 + v13 = i + **(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(mem)) + uintptr(v13)*8)) = **(**uintptr)(__ccgo_up(bp)) + } + goto _11 + _11: + ; + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + } + i = i + 1 + v13 = i + **(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(mem)) + uintptr(v13)*8)) = uintptr(0) + } else { + **(**uintptr)(__ccgo_up(**(**uintptr)(__ccgo_up(mem)))) = uintptr(0) + } + (*Tgroup)(unsafe.Pointer(gr)).Fgr_mem = **(**uintptr)(__ccgo_up(mem)) + goto end +end: + ; + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 8)), uintptr(0)) + **(**uintptr)(__ccgo_up(res)) = gr + if rv != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = rv + } + return rv +} + +func Xgetgrouplist(tls *TLS, user uintptr, gid Tgid_t, groups uintptr, ngroups uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v user=%v gid=%v groups=%v ngroups=%v, (%v:)", tls, user, gid, groups, ngroups, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(96) + defer tls.Free(96) + var f, nscdbuf, v1 uintptr + var i, n, v9 Tssize_t + var nbytes Tsize_t + var nlim, ret, rv, v6 int32 + var v14 int64 + var v3, v4 Tuint32_t + var _ /* buf at bp+56 */ uintptr + var _ /* gr at bp+0 */ Tgroup + var _ /* mem at bp+64 */ uintptr + var _ /* nmem at bp+72 */ Tsize_t + var _ /* res at bp+32 */ uintptr + var _ /* resp at bp+44 */ [3]Tint32_t + var _ /* size at bp+80 */ Tsize_t + var _ /* swap at bp+40 */ int32 + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = f, i, n, nbytes, nlim, nscdbuf, ret, rv, v1, v14, v3, v4, v6, v9 + ret = -int32(1) + n = int64(1) + **(**int32)(__ccgo_up(bp + 40)) = 0 + nscdbuf = uintptr(0) + **(**uintptr)(__ccgo_up(bp + 56)) = uintptr(0) + **(**uintptr)(__ccgo_up(bp + 64)) = uintptr(0) + **(**Tsize_t)(__ccgo_up(bp + 72)) = uint64(0) + nlim = **(**int32)(__ccgo_up(ngroups)) + if nlim >= int32(1) { + v1 = groups + groups += 4 + **(**Tgid_t)(__ccgo_up(v1)) = gid + } + f = X__nscd_query(tls, int32(GETINITGR), user, bp+44, uint64(12), bp+40) + if !(f != 0) { + goto cleanup + } + if (**(**[3]Tint32_t)(__ccgo_up(bp + 44)))[int32(INITGRFOUND)] != 0 { + nscdbuf = Xcalloc(tls, Uint64FromInt32((**(**[3]Tint32_t)(__ccgo_up(bp + 44)))[int32(INITGRNGRPS)]), uint64(4)) + if !(nscdbuf != 0) { + goto cleanup + } + nbytes = uint64(4) * Uint64FromInt32((**(**[3]Tint32_t)(__ccgo_up(bp + 44)))[int32(INITGRNGRPS)]) + if nbytes != 0 && !(Xfread(tls, nscdbuf, nbytes, uint64(1), f) != 0) { + if !(Xferror(tls, f) != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EIO) + } + goto cleanup + } + if **(**int32)(__ccgo_up(bp + 40)) != 0 { + i = 0 + for { + if !(i < int64((**(**[3]Tint32_t)(__ccgo_up(bp + 44)))[int32(INITGRNGRPS)])) { + break + } + v3 = **(**Tuint32_t)(__ccgo_up(nscdbuf + uintptr(i)*4)) + v4 = v3>>int32(24) | v3>>int32(8)&uint32(0xff00) | v3< int64(nlim) { + v14 = int64(-int32(1)) + } else { + v14 = n + } + ret = int32(v14) + **(**int32)(__ccgo_up(ngroups)) = int32(n) + goto cleanup +cleanup: + ; + if f != 0 { + Xfclose(tls, f) + } + Xfree(tls, nscdbuf) + Xfree(tls, **(**uintptr)(__ccgo_up(bp + 56))) + Xfree(tls, **(**uintptr)(__ccgo_up(bp + 64))) + return ret +} + +func _itoa2(tls *TLS, p uintptr, x Tuint32_t) (r uintptr) { + var v1 uintptr + _ = v1 + // number of digits in a uint32_t + NUL + p = p + uintptr(11) + p = p - 1 + v1 = p + **(**uint8)(__ccgo_up(v1)) = uint8(0) + for cond := true; cond; cond = x != 0 { + p = p - 1 + v1 = p + **(**uint8)(__ccgo_up(v1)) = uint8(uint32('0') + x%uint32(10)) + x = x / uint32(10) + } + return p +} + +func X__getpw_a(tls *TLS, name uintptr, uid Tuid_t, pw uintptr, buf uintptr, size uintptr, res uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v uid=%v pw=%v buf=%v size=%v res=%v, (%v:)", tls, name, uid, pw, buf, size, res, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var f, key, tmp uintptr + var len1 Tsize_t + var req Tint32_t + var rv, v1 int32 + var _ /* cs at bp+4 */ int32 + var _ /* passwdbuf at bp+8 */ [9]Tint32_t + var _ /* uidbuf at bp+44 */ [11]uint8 + _, _, _, _, _, _, _ = f, key, len1, req, rv, tmp, v1 + rv = 0 + **(**uintptr)(__ccgo_up(res)) = uintptr(0) + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp+4) + f = Xfopen(tls, __ccgo_ts+1276, __ccgo_ts+404) + if !(f != 0) { + rv = **(**int32)(__ccgo_up(X__errno_location(tls))) + goto done + } + for { + v1 = X__getpwent_a(tls, f, pw, buf, size, res) + rv = v1 + if !(!(v1 != 0) && **(**uintptr)(__ccgo_up(res)) != 0) { + break + } + if name != 0 && !(Xstrcmp(tls, name, (*Tpasswd)(unsafe.Pointer(**(**uintptr)(__ccgo_up(res)))).Fpw_name) != 0) || !(name != 0) && (*Tpasswd)(unsafe.Pointer(**(**uintptr)(__ccgo_up(res)))).Fpw_uid == uid { + break + } + } + Xfclose(tls, f) + if !(**(**uintptr)(__ccgo_up(res)) != 0) && (rv == 0 || rv == int32(ENOENT) || rv == int32(ENOTDIR)) { + if name != 0 { + v1 = GETPWBYNAME + } else { + v1 = int32(GETPWBYUID) + } + req = v1 + **(**[9]Tint32_t)(__ccgo_up(bp + 8)) = [9]Tint32_t{} + len1 = uint64(0) + **(**[11]uint8)(__ccgo_up(bp + 44)) = [11]uint8{} + if name != 0 { + key = name + } else { + /* uid outside of this range can't be queried with the + * nscd interface, but might happen if uid_t ever + * happens to be a larger type (this is not true as of + * now) + */ + if uid < uint32(0) || uid > uint32(0xffffffff) { + rv = 0 + goto done + } + key = _itoa2(tls, bp+44, uid) + } + *(*[1]int32)(unsafe.Pointer(bp)) = [1]int32{} + f = X__nscd_query(tls, req, key, bp+8, uint64(36), bp) + if !(f != 0) { + rv = **(**int32)(__ccgo_up(X__errno_location(tls))) + goto done + } + if !((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWFOUND)] != 0) { + rv = 0 + goto cleanup_f + } + /* A zero length response from nscd is invalid. We ignore + * invalid responses and just report an error, rather than + * trying to do something with them. + */ + if !((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWNAMELEN)] != 0) || !((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWPASSWDLEN)] != 0) || !((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWGECOSLEN)] != 0) || !((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWDIRLEN)] != 0) || !((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWSHELLLEN)] != 0) { + rv = int32(EIO) + goto cleanup_f + } + if Uint64FromInt32((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWNAMELEN)]|(**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWPASSWDLEN)]|(**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWGECOSLEN)]|(**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWDIRLEN)]|(**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWSHELLLEN)]) >= Uint64FromUint64(0xffffffffffffffff)/Uint64FromInt32(8) { + rv = int32(ENOMEM) + goto cleanup_f + } + len1 = Uint64FromInt32((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWNAMELEN)] + (**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWPASSWDLEN)] + (**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWGECOSLEN)] + (**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWDIRLEN)] + (**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWSHELLLEN)]) + if len1 > **(**Tsize_t)(__ccgo_up(size)) || !(**(**uintptr)(__ccgo_up(buf)) != 0) { + tmp = Xrealloc(tls, **(**uintptr)(__ccgo_up(buf)), len1) + if !(tmp != 0) { + rv = **(**int32)(__ccgo_up(X__errno_location(tls))) + goto cleanup_f + } + **(**uintptr)(__ccgo_up(buf)) = tmp + **(**Tsize_t)(__ccgo_up(size)) = len1 + } + if !(Xfread(tls, **(**uintptr)(__ccgo_up(buf)), len1, uint64(1), f) != 0) { + if Xferror(tls, f) != 0 { + v1 = **(**int32)(__ccgo_up(X__errno_location(tls))) + } else { + v1 = int32(EIO) + } + rv = v1 + goto cleanup_f + } + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_name = **(**uintptr)(__ccgo_up(buf)) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_passwd = (*Tpasswd)(unsafe.Pointer(pw)).Fpw_name + uintptr((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWNAMELEN)]) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_gecos = (*Tpasswd)(unsafe.Pointer(pw)).Fpw_passwd + uintptr((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWPASSWDLEN)]) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_dir = (*Tpasswd)(unsafe.Pointer(pw)).Fpw_gecos + uintptr((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWGECOSLEN)]) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_shell = (*Tpasswd)(unsafe.Pointer(pw)).Fpw_dir + uintptr((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWDIRLEN)]) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_uid = Uint32FromInt32((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWUID)]) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_gid = Uint32FromInt32((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWGID)]) + /* Don't assume that nscd made sure to null terminate strings. + * It's supposed to, but malicious nscd should be ignored + * rather than causing a crash. + */ + if **(**uint8)(__ccgo_up((*Tpasswd)(unsafe.Pointer(pw)).Fpw_passwd + uintptr(-Int32FromInt32(1)))) != 0 || **(**uint8)(__ccgo_up((*Tpasswd)(unsafe.Pointer(pw)).Fpw_gecos + uintptr(-Int32FromInt32(1)))) != 0 || **(**uint8)(__ccgo_up((*Tpasswd)(unsafe.Pointer(pw)).Fpw_dir + uintptr(-Int32FromInt32(1)))) != 0 || **(**uint8)(__ccgo_up((*Tpasswd)(unsafe.Pointer(pw)).Fpw_shell + uintptr((**(**[9]Tint32_t)(__ccgo_up(bp + 8)))[int32(PWSHELLLEN)]-int32(1)))) != 0 { + rv = int32(EIO) + goto cleanup_f + } + if name != 0 && Xstrcmp(tls, name, (*Tpasswd)(unsafe.Pointer(pw)).Fpw_name) != 0 || !(name != 0) && uid != (*Tpasswd)(unsafe.Pointer(pw)).Fpw_uid { + rv = int32(EIO) + goto cleanup_f + } + **(**uintptr)(__ccgo_up(res)) = pw + goto cleanup_f + cleanup_f: + ; + Xfclose(tls, f) + goto done + } + goto done +done: + ; + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 4)), uintptr(0)) + if rv != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = rv + } + return rv +} + +func _getpw_r(tls *TLS, name uintptr, uid Tuid_t, pw uintptr, buf uintptr, size Tsize_t, res uintptr) (r int32) { + bp := tls.Alloc(32) + defer tls.Free(32) + var rv int32 + var _ /* cs at bp+16 */ int32 + var _ /* len at bp+8 */ Tsize_t + var _ /* line at bp+0 */ uintptr + _ = rv + **(**uintptr)(__ccgo_up(bp)) = uintptr(0) + **(**Tsize_t)(__ccgo_up(bp + 8)) = uint64(0) + rv = 0 + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp+16) + rv = X__getpw_a(tls, name, uid, pw, bp, bp+8, res) + if **(**uintptr)(__ccgo_up(res)) != 0 && size < **(**Tsize_t)(__ccgo_up(bp + 8)) { + **(**uintptr)(__ccgo_up(res)) = uintptr(0) + rv = int32(ERANGE) + } + if **(**uintptr)(__ccgo_up(res)) != 0 { + Xmemcpy(tls, buf, **(**uintptr)(__ccgo_up(bp)), **(**Tsize_t)(__ccgo_up(bp + 8))) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_name = uintptr(int64((*Tpasswd)(unsafe.Pointer(pw)).Fpw_name)-int64(**(**uintptr)(__ccgo_up(bp)))) + buf + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_passwd = uintptr(int64((*Tpasswd)(unsafe.Pointer(pw)).Fpw_passwd)-int64(**(**uintptr)(__ccgo_up(bp)))) + buf + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_gecos = uintptr(int64((*Tpasswd)(unsafe.Pointer(pw)).Fpw_gecos)-int64(**(**uintptr)(__ccgo_up(bp)))) + buf + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_dir = uintptr(int64((*Tpasswd)(unsafe.Pointer(pw)).Fpw_dir)-int64(**(**uintptr)(__ccgo_up(bp)))) + buf + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_shell = uintptr(int64((*Tpasswd)(unsafe.Pointer(pw)).Fpw_shell)-int64(**(**uintptr)(__ccgo_up(bp)))) + buf + } + Xfree(tls, **(**uintptr)(__ccgo_up(bp))) + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 16)), uintptr(0)) + if rv != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = rv + } + return rv +} + +func Xgetpwnam_r(tls *TLS, name uintptr, pw uintptr, buf uintptr, size Tsize_t, res uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v pw=%v buf=%v size=%v res=%v, (%v:)", tls, name, pw, buf, size, res, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _getpw_r(tls, name, uint32(0), pw, buf, size, res) +} + +func Xgetpwuid_r(tls *TLS, uid Tuid_t, pw uintptr, buf uintptr, size Tsize_t, res uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v uid=%v pw=%v buf=%v size=%v res=%v, (%v:)", tls, uid, pw, buf, size, res, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _getpw_r(tls, uintptr(0), uid, pw, buf, size, res) +} + +var _f2 uintptr +var _line4 uintptr +var _pw1 Tpasswd +var _size Tsize_t + +func Xsetpwent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + if _f2 != 0 { + Xfclose(tls, _f2) + } + _f2 = uintptr(0) +} + +func Xgetpwent(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* res at bp+0 */ uintptr + if !(_f2 != 0) { + _f2 = Xfopen(tls, __ccgo_ts+1276, __ccgo_ts+404) + } + if !(_f2 != 0) { + return uintptr(0) + } + X__getpwent_a(tls, _f2, uintptr(unsafe.Pointer(&_pw1)), uintptr(unsafe.Pointer(&_line4)), uintptr(unsafe.Pointer(&_size)), bp) + return **(**uintptr)(__ccgo_up(bp)) +} + +func Xgetpwuid(tls *TLS, uid Tuid_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v uid=%v, (%v:)", tls, uid, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* res at bp+0 */ uintptr + X__getpw_a(tls, uintptr(0), uid, uintptr(unsafe.Pointer(&_pw1)), uintptr(unsafe.Pointer(&_line4)), uintptr(unsafe.Pointer(&_size)), bp) + return **(**uintptr)(__ccgo_up(bp)) +} + +func Xgetpwnam(tls *TLS, name uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* res at bp+0 */ uintptr + X__getpw_a(tls, name, uint32(0), uintptr(unsafe.Pointer(&_pw1)), uintptr(unsafe.Pointer(&_line4)), uintptr(unsafe.Pointer(&_size)), bp) + return **(**uintptr)(__ccgo_up(bp)) +} + +func Xendpwent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + Xsetpwent(tls) +} + +func _atou1(tls *TLS, s uintptr) (r uint32) { + var x uint32 + _ = x + x = uint32(0) + for { + if !(Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(s)))))-int32('0')) < uint32(10)) { + break + } + x = uint32(10)*x + Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(s)))))-Int32FromUint8('0')) + goto _1 + _1: + ; + **(**uintptr)(__ccgo_up(s)) = **(**uintptr)(__ccgo_up(s)) + 1 + } + return x +} + +func X__getpwent_a(tls *TLS, f uintptr, pw uintptr, line uintptr, size uintptr, res uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v pw=%v line=%v size=%v res=%v, (%v:)", tls, f, pw, line, size, res, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var l, v2 Tssize_t + var rv, v3 int32 + var v4 uintptr + var _ /* cs at bp+8 */ int32 + var _ /* s at bp+0 */ uintptr + _, _, _, _, _ = l, rv, v2, v3, v4 + rv = 0 + _pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp+8) + for { + v2 = Xgetline(tls, line, size, f) + l = v2 + if v2 < 0 { + if Xferror(tls, f) != 0 { + v3 = **(**int32)(__ccgo_up(X__errno_location(tls))) + } else { + v3 = 0 + } + rv = v3 + Xfree(tls, **(**uintptr)(__ccgo_up(line))) + **(**uintptr)(__ccgo_up(line)) = uintptr(0) + pw = uintptr(0) + break + } + **(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(line)) + uintptr(l-int64(1)))) = uint8(0) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(line)) + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_name = v4 + v4 = Xstrchr(tls, **(**uintptr)(__ccgo_up(bp)), int32(':')) + **(**uintptr)(__ccgo_up(bp)) = v4 + if !(v4 != 0) { + goto _1 + } + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + **(**uint8)(__ccgo_up(v4)) = uint8(0) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_passwd = **(**uintptr)(__ccgo_up(bp)) + v4 = Xstrchr(tls, **(**uintptr)(__ccgo_up(bp)), int32(':')) + **(**uintptr)(__ccgo_up(bp)) = v4 + if !(v4 != 0) { + goto _1 + } + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + **(**uint8)(__ccgo_up(v4)) = uint8(0) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_uid = _atou1(tls, bp) + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp))))) != int32(':') { + goto _1 + } + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + **(**uint8)(__ccgo_up(v4)) = uint8(0) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_gid = _atou1(tls, bp) + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp))))) != int32(':') { + goto _1 + } + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + **(**uint8)(__ccgo_up(v4)) = uint8(0) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_gecos = **(**uintptr)(__ccgo_up(bp)) + v4 = Xstrchr(tls, **(**uintptr)(__ccgo_up(bp)), int32(':')) + **(**uintptr)(__ccgo_up(bp)) = v4 + if !(v4 != 0) { + goto _1 + } + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + **(**uint8)(__ccgo_up(v4)) = uint8(0) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_dir = **(**uintptr)(__ccgo_up(bp)) + v4 = Xstrchr(tls, **(**uintptr)(__ccgo_up(bp)), int32(':')) + **(**uintptr)(__ccgo_up(bp)) = v4 + if !(v4 != 0) { + goto _1 + } + v4 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + **(**uint8)(__ccgo_up(v4)) = uint8(0) + (*Tpasswd)(unsafe.Pointer(pw)).Fpw_shell = **(**uintptr)(__ccgo_up(bp)) + break + goto _1 + _1: + } + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 8)), uintptr(0)) + **(**uintptr)(__ccgo_up(res)) = pw + if rv != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = rv + } + return rv +} + +func Xsetspent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } +} + +func Xendspent(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } +} + +func Xgetspent(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(0) +} + +func Xlckpwdf(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return 0 +} + +func Xulckpwdf(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return 0 +} + +var _addr = struct { + Fsun_family int16 + Fsun_path [21]uint8 +}{ + Fsun_family: int16(PF_LOCAL), + Fsun_path: [21]uint8{'/', 'v', 'a', 'r', '/', 'r', 'u', 'n', '/', 'n', 's', 'c', 'd', '/', 's', 'o', 'c', 'k', 'e', 't'}, +} + +func X__nscd_query(tls *TLS, req Tint32_t, key uintptr, buf uintptr, len1 Tsize_t, swap uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v req=%v key=%v buf=%v len1=%v swap=%v, (%v:)", tls, req, key, buf, len1, swap, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(112) + defer tls.Free(112) + var errno_save, fd int32 + var f, v1 uintptr + var i Tsize_t + var v3, v4 Tuint32_t + var _ /* msg at bp+48 */ Tmsghdr + var _ /* req_buf at bp+32 */ [3]Tint32_t + _, _, _, _, _, _, _ = errno_save, f, fd, i, v1, v3, v4 + f = uintptr(0) + **(**[3]Tint32_t)(__ccgo_up(bp + 32)) = [3]Tint32_t{ + 0: int32(NSCDVERSION), + 1: req, + 2: Int32FromUint64(Xstrnlen(tls, key, uint64(LOGIN_NAME_MAX)) + uint64(1)), + } + *(*[2]Tiovec)(unsafe.Pointer(bp)) = [2]Tiovec{ + 0: { + Fiov_base: bp + 32, + Fiov_len: uint64(12), + }, + 1: { + Fiov_base: key, + Fiov_len: _strlen(tls, key) + uint64(1), + }, + } + **(**Tmsghdr)(__ccgo_up(bp + 48)) = Tmsghdr{ + Fmsg_iov: bp, + Fmsg_iovlen: int32(2), + } + errno_save = **(**int32)(__ccgo_up(X__errno_location(tls))) + **(**int32)(__ccgo_up(swap)) = 0 + goto retry +retry: + ; + Xmemset(tls, buf, 0, len1) + **(**Tint32_t)(__ccgo_up(buf)) = int32(NSCDVERSION) + fd = Xsocket(tls, int32(PF_LOCAL), Int32FromInt32(SOCK_STREAM)|Int32FromInt32(SOCK_CLOEXEC), 0) + if fd < 0 { + if **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EAFNOSUPPORT) { + f = Xfopen(tls, __ccgo_ts+1288, __ccgo_ts+1298) + if f != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = errno_save + } + return f + } + return uintptr(0) + } + v1 = Xfdopen(tls, fd, __ccgo_ts+1301) + f = v1 + if !(v1 != 0) { + Xclose(tls, fd) + return uintptr(0) + } + if (**(**[3]Tint32_t)(__ccgo_up(bp + 32)))[int32(2)] > int32(LOGIN_NAME_MAX) { + return f + } + if Xconnect(tls, fd, uintptr(unsafe.Pointer(&_addr)), uint32(24)) < 0 { + /* If there isn't a running nscd we simulate a "not found" + * result and the caller is responsible for calling + * fclose on the (unconnected) socket. The value of + * errno must be left unchanged in this case. */ + if **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EACCES) || **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(ECONNREFUSED) || **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(ENOENT) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = errno_save + return f + } + goto error + } + if Xsendmsg(tls, fd, bp+48, int32(MSG_NOSIGNAL)) < 0 { + goto error + } + if !(Xfread(tls, buf, len1, uint64(1), f) != 0) { + /* If the VERSION entry mismatches nscd will disconnect. The + * most likely cause is that the endianness mismatched. So, we + * byteswap and try once more. (if we already swapped, just + * fail out) + */ + if Xferror(tls, f) != 0 { + goto error + } + if !(**(**int32)(__ccgo_up(swap)) != 0) { + Xfclose(tls, f) + i = uint64(0) + for { + if !(i < Uint64FromInt64(12)/Uint64FromInt64(4)) { + break + } + v3 = Uint32FromInt32((**(**[3]Tint32_t)(__ccgo_up(bp + 32)))[i]) + v4 = v3>>int32(24) | v3>>int32(8)&uint32(0xff00) | v3<>int32(24) | v3>>int32(8)&uint32(0xff00) | v3< %v", r1) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var i Tsize_t + var r, v1 int32 + var v4 uintptr + _, _, _, _ = i, r, v1, v4 + Xflockfile(tls, f) + v1 = Xfprintf(tls, f, __ccgo_ts+1303, VaList(bp+8, (*Tgroup)(unsafe.Pointer(gr)).Fgr_name, (*Tgroup)(unsafe.Pointer(gr)).Fgr_passwd, (*Tgroup)(unsafe.Pointer(gr)).Fgr_gid)) + r = v1 + if v1 < 0 { + goto done + } + if (*Tgroup)(unsafe.Pointer(gr)).Fgr_mem != 0 { + i = uint64(0) + for { + if !(**(**uintptr)(__ccgo_up((*Tgroup)(unsafe.Pointer(gr)).Fgr_mem + uintptr(i)*8)) != 0) { + break + } + if i != 0 { + v4 = __ccgo_ts + 1313 + } else { + v4 = __ccgo_ts + } + v1 = Xfprintf(tls, f, __ccgo_ts+1315, VaList(bp+8, v4, **(**uintptr)(__ccgo_up((*Tgroup)(unsafe.Pointer(gr)).Fgr_mem + uintptr(i)*8)))) + r = v1 + if v1 < 0 { + goto done + } + goto _2 + _2: + ; + i = i + 1 + } + } + r = Xfputc(tls, int32('\n'), f) + goto done +done: + ; + Xfunlockfile(tls, f) + if r < 0 { + v1 = -int32(1) + } else { + v1 = 0 + } + return v1 +} + +func Xputpwent(tls *TLS, pw uintptr, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v pw=%v f=%v, (%v:)", tls, pw, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var v1 int32 + _ = v1 + if Xfprintf(tls, f, __ccgo_ts+1320, VaList(bp+8, (*Tpasswd)(unsafe.Pointer(pw)).Fpw_name, (*Tpasswd)(unsafe.Pointer(pw)).Fpw_passwd, (*Tpasswd)(unsafe.Pointer(pw)).Fpw_uid, (*Tpasswd)(unsafe.Pointer(pw)).Fpw_gid, (*Tpasswd)(unsafe.Pointer(pw)).Fpw_gecos, (*Tpasswd)(unsafe.Pointer(pw)).Fpw_dir, (*Tpasswd)(unsafe.Pointer(pw)).Fpw_shell)) < 0 { + v1 = -int32(1) + } else { + v1 = 0 + } + return v1 +} + +func Xputspent(tls *TLS, sp uintptr, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v sp=%v f=%v, (%v:)", tls, sp, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(144) + defer tls.Free(144) + var v1, v10, v12, v14, v16, v4, v6, v8 int32 + var v11, v13, v15, v5, v7, v9 int64 + var v17 uint64 + var v2, v3 uintptr + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = v1, v10, v11, v12, v13, v14, v15, v16, v17, v2, v3, v4, v5, v6, v7, v8, v9 + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_namp != 0 { + v2 = (*Tspwd)(unsafe.Pointer(sp)).Fsp_namp + } else { + v2 = __ccgo_ts + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_pwdp != 0 { + v3 = (*Tspwd)(unsafe.Pointer(sp)).Fsp_pwdp + } else { + v3 = __ccgo_ts + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_lstchg == int64(-int32(1)) { + v4 = 0 + } else { + v4 = -int32(1) + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_lstchg == int64(-int32(1)) { + v5 = 0 + } else { + v5 = (*Tspwd)(unsafe.Pointer(sp)).Fsp_lstchg + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_min == int64(-int32(1)) { + v6 = 0 + } else { + v6 = -int32(1) + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_min == int64(-int32(1)) { + v7 = 0 + } else { + v7 = (*Tspwd)(unsafe.Pointer(sp)).Fsp_min + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_max == int64(-int32(1)) { + v8 = 0 + } else { + v8 = -int32(1) + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_max == int64(-int32(1)) { + v9 = 0 + } else { + v9 = (*Tspwd)(unsafe.Pointer(sp)).Fsp_max + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_warn == int64(-int32(1)) { + v10 = 0 + } else { + v10 = -int32(1) + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_warn == int64(-int32(1)) { + v11 = 0 + } else { + v11 = (*Tspwd)(unsafe.Pointer(sp)).Fsp_warn + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_inact == int64(-int32(1)) { + v12 = 0 + } else { + v12 = -int32(1) + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_inact == int64(-int32(1)) { + v13 = 0 + } else { + v13 = (*Tspwd)(unsafe.Pointer(sp)).Fsp_inact + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_expire == int64(-int32(1)) { + v14 = 0 + } else { + v14 = -int32(1) + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_expire == int64(-int32(1)) { + v15 = 0 + } else { + v15 = (*Tspwd)(unsafe.Pointer(sp)).Fsp_expire + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_flag == Uint64FromInt32(-Int32FromInt32(1)) { + v16 = 0 + } else { + v16 = -int32(1) + } + if (*Tspwd)(unsafe.Pointer(sp)).Fsp_flag == Uint64FromInt32(-Int32FromInt32(1)) { + v17 = uint64(0) + } else { + v17 = (*Tspwd)(unsafe.Pointer(sp)).Fsp_flag + } + if Xfprintf(tls, f, __ccgo_ts+1342, VaList(bp+8, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17)) < 0 { + v1 = -int32(1) + } else { + v1 = 0 + } + return v1 +} + +func X__rand48_step(tls *TLS, xi uintptr, lc uintptr) (r Tuint64_t) { + if __ccgo_strace { + trc("tls=%v xi=%v lc=%v, (%v:)", tls, xi, lc, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, x Tuint64_t + _, _ = a, x + x = uint64(uint32(**(**uint16)(__ccgo_up(xi)))|(uint32(**(**uint16)(__ccgo_up(xi + 1*2)))+0)<> int32(16)) + **(**uint16)(__ccgo_up(xi + 2*2)) = uint16(x >> int32(32)) + return x & uint64(0xffffffffffff) +} + +func Xerand48(tls *TLS, s uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* x at bp+0 */ struct { + Ff [0]float64 + Fu Tuint64_t + } + *(*struct { + Ff [0]float64 + Fu Tuint64_t + })(unsafe.Pointer(bp)) = struct { + Ff [0]float64 + Fu Tuint64_t + }{} + *(*uint64)(unsafe.Pointer(bp)) = uint64(0x3ff0000000000000) | X__rand48_step(tls, s, uintptr(unsafe.Pointer(&X__seed48))+uintptr(3)*2)< %v", r) }() + } + return Xerand48(tls, uintptr(unsafe.Pointer(&X__seed48))) +} + +func Xlcong48(tls *TLS, p uintptr) { + if __ccgo_strace { + trc("tls=%v p=%v, (%v:)", tls, p, origin(2)) + } + Xmemcpy(tls, uintptr(unsafe.Pointer(&X__seed48)), p, uint64(14)) +} + +func Xnrand48(tls *TLS, s uintptr) (r int64) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Int64FromUint64(X__rand48_step(tls, s, uintptr(unsafe.Pointer(&X__seed48))+uintptr(3)*2) >> int32(17)) +} + +func Xlrand48(tls *TLS) (r int64) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xnrand48(tls, uintptr(unsafe.Pointer(&X__seed48))) +} + +func Xjrand48(tls *TLS, s uintptr) (r int64) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int64(Int32FromUint64(X__rand48_step(tls, s, uintptr(unsafe.Pointer(&X__seed48))+uintptr(3)*2) >> Int32FromInt32(16))) +} + +func Xmrand48(tls *TLS) (r int64) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xjrand48(tls, uintptr(unsafe.Pointer(&X__seed48))) +} + +var _seed Tuint64_t + +func Xsrand(tls *TLS, s uint32) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + } + _seed = uint64(s - uint32(1)) +} + +func Xrand(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + _seed = uint64(6364136223846793005)*_seed + uint64(1) + return Int32FromUint64(_seed >> int32(33)) +} + +func _temper(tls *TLS, x uint32) (r uint32) { + x = x ^ x>>int32(11) + x = x ^ x<>int32(18) + return x +} + +func Xrand_r(tls *TLS, seed uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v seed=%v, (%v:)", tls, seed, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 uint32 + _ = v1 + v1 = **(**uint32)(__ccgo_up(seed))*Uint32FromInt32(1103515245) + Uint32FromInt32(12345) + **(**uint32)(__ccgo_up(seed)) = v1 + return Int32FromUint32(_temper(tls, v1) / uint32(2)) +} + +/* +this code uses the same lagged fibonacci generator as the +original bsd random implementation except for the seeding +which was broken in the original +*/ + +var _init = [32]Tuint32_t{ + 1: uint32(0x5851f42d), + 2: uint32(0xc0b18ccf), + 3: uint32(0xcbb5f646), + 4: uint32(0xc7033129), + 5: uint32(0x30705b04), + 6: uint32(0x20fd5db4), + 7: uint32(0x9a8b7f78), + 8: uint32(0x502959d8), + 9: uint32(0xab894868), + 10: uint32(0x6c0356a7), + 11: uint32(0x88cdb7ff), + 12: uint32(0xb477d43f), + 13: uint32(0x70a3a52b), + 14: uint32(0xa8e4baf1), + 15: uint32(0xfd8341fc), + 16: uint32(0x8ae16fd9), + 17: uint32(0x742d2f7a), + 18: uint32(0x0d1f0796), + 19: uint32(0x76035e09), + 20: uint32(0x40f7702c), + 21: uint32(0x6fa72ca5), + 22: uint32(0xaaa84157), + 23: uint32(0x58a0df74), + 24: uint32(0xc74a0364), + 25: uint32(0xae533cc4), + 26: uint32(0x04185faf), + 27: uint32(0x6de3b115), + 28: uint32(0x0cab8628), + 29: uint32(0xf043bfa4), + 30: uint32(0x398150e9), + 31: uint32(0x37521657), +} + +var _n = int32(31) +var _i = int32(3) +var _j = int32(0) +var _x1 = uintptr(unsafe.Pointer(&_init)) + uintptr(1)*4 +var _lock3 [1]int32 + +func _lcg31(tls *TLS, x Tuint32_t) (r Tuint32_t) { + return (uint32(1103515245)*x + uint32(12345)) & uint32(0x7fffffff) +} + +func _lcg64(tls *TLS, x Tuint64_t) (r Tuint64_t) { + return uint64(6364136223846793005)*x + uint64(1) +} + +func _savestate(tls *TLS) (r uintptr) { + **(**Tuint32_t)(__ccgo_up(_x1 + uintptr(-Int32FromInt32(1))*4)) = Uint32FromInt32(_n<> int32(16)) + _i = Int32FromUint32(**(**Tuint32_t)(__ccgo_up(_x1 + uintptr(-Int32FromInt32(1))*4)) >> Int32FromInt32(8) & uint32(0xff)) + _j = Int32FromUint32(**(**Tuint32_t)(__ccgo_up(_x1 + uintptr(-Int32FromInt32(1))*4)) & uint32(0xff)) +} + +func ___srandom(tls *TLS, seed uint32) { + var k, v1 int32 + var s Tuint64_t + _, _, _ = k, s, v1 + s = uint64(seed) + if _n == 0 { + **(**Tuint32_t)(__ccgo_up(_x1)) = uint32(s) + return + } + if _n == int32(31) || _n == int32(7) { + v1 = int32(3) + } else { + v1 = int32(1) + } + _i = v1 + _j = 0 + k = 0 + for { + if !(k < _n) { + break + } + s = _lcg64(tls, s) + **(**Tuint32_t)(__ccgo_up(_x1 + uintptr(k)*4)) = uint32(s >> int32(32)) + goto _2 + _2: + ; + k = k + 1 + } + /* make sure x contains at least one odd number */ + **(**Tuint32_t)(__ccgo_up(_x1)) |= uint32(1) +} + +func Xsrandom(tls *TLS, seed uint32) { + if __ccgo_strace { + trc("tls=%v seed=%v, (%v:)", tls, seed, origin(2)) + } + ___lock(tls, uintptr(unsafe.Pointer(&_lock3))) + ___srandom(tls, seed) + ___unlock(tls, uintptr(unsafe.Pointer(&_lock3))) +} + +func Xinitstate(tls *TLS, seed uint32, state uintptr, size Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v seed=%v state=%v size=%v, (%v:)", tls, seed, state, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + var old uintptr + _ = old + if size < uint64(8) { + return uintptr(0) + } + ___lock(tls, uintptr(unsafe.Pointer(&_lock3))) + old = _savestate(tls) + if size < uint64(32) { + _n = 0 + } else { + if size < uint64(64) { + _n = int32(7) + } else { + if size < uint64(128) { + _n = int32(15) + } else { + if size < uint64(256) { + _n = int32(31) + } else { + _n = int32(63) + } + } + } + } + _x1 = state + uintptr(1)*4 + ___srandom(tls, seed) + _savestate(tls) + ___unlock(tls, uintptr(unsafe.Pointer(&_lock3))) + return old +} + +func Xsetstate(tls *TLS, state uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v state=%v, (%v:)", tls, state, origin(2)) + defer func() { trc("-> %v", r) }() + } + var old uintptr + _ = old + ___lock(tls, uintptr(unsafe.Pointer(&_lock3))) + old = _savestate(tls) + _loadstate(tls, state) + ___unlock(tls, uintptr(unsafe.Pointer(&_lock3))) + return old +} + +func Xrandom(tls *TLS) (r int64) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + var k int64 + var v1 Tuint32_t + var v2 int32 + _, _, _ = k, v1, v2 + ___lock(tls, uintptr(unsafe.Pointer(&_lock3))) + if _n == 0 { + v1 = _lcg31(tls, **(**Tuint32_t)(__ccgo_up(_x1))) + **(**Tuint32_t)(__ccgo_up(_x1)) = v1 + k = Int64FromUint32(v1) + goto end + } + **(**Tuint32_t)(__ccgo_up(_x1 + uintptr(_i)*4)) += **(**Tuint32_t)(__ccgo_up(_x1 + uintptr(_j)*4)) + k = Int64FromUint32(**(**Tuint32_t)(__ccgo_up(_x1 + uintptr(_i)*4)) >> int32(1)) + _i = _i + 1 + v2 = _i + if v2 == _n { + _i = 0 + } + _j = _j + 1 + v2 = _j + if v2 == _n { + _j = 0 + } + goto end +end: + ; + ___unlock(tls, uintptr(unsafe.Pointer(&_lock3))) + return k +} + +func Xseed48(tls *TLS, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + Xmemcpy(tls, uintptr(unsafe.Pointer(&_p1)), uintptr(unsafe.Pointer(&X__seed48)), uint64(6)) + Xmemcpy(tls, uintptr(unsafe.Pointer(&X__seed48)), s, uint64(6)) + return uintptr(unsafe.Pointer(&_p1)) +} + +var _p1 [3]uint16 + +func Xsrand48(tls *TLS, seed int64) { + if __ccgo_strace { + trc("tls=%v seed=%v, (%v:)", tls, seed, origin(2)) + } + bp := tls.Alloc(16) + defer tls.Free(16) + *(*[3]uint16)(unsafe.Pointer(bp)) = [3]uint16{ + 0: uint16(0x330e), + 1: Uint16FromInt64(seed), + 2: Uint16FromInt64(seed >> int32(16)), + } + Xseed48(tls, bp) +} + +func Xexecl(tls *TLS, path uintptr, argv0 uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v argv0=%v va=%v, (%v:)", tls, path, argv0, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var argc, i int32 + var argv uintptr + var v2 t__predefined_size_t + _, _, _, _, _ = ap, argc, argv, i, v2 + defer func() { Xrealloc(tls, argv, 0) }() + ap = va + argc = int32(1) + for { + if !(VaUintptr(&ap) != 0) { + break + } + goto _1 + _1: + ; + argc = argc + 1 + } + _ = ap + v2 = Uint64FromInt32(argc+int32(1)) * 8 + argv = Xrealloc(tls, argv, v2) + ap = va + *(*uintptr)(unsafe.Add(unsafe.Pointer(argv), 0*8)) = argv0 + i = int32(1) + for { + if !(i < argc) { + break + } + *(*uintptr)(unsafe.Add(unsafe.Pointer(argv), i*8)) = VaUintptr(&ap) + goto _3 + _3: + ; + i = i + 1 + } + *(*uintptr)(unsafe.Add(unsafe.Pointer(argv), i*8)) = UintptrFromInt32(0) + _ = ap + return Xexecv(tls, path, argv) + return r +} + +func Xexecle(tls *TLS, path uintptr, argv0 uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v argv0=%v va=%v, (%v:)", tls, path, argv0, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var argc, i int32 + var argv, envp uintptr + var v2 t__predefined_size_t + _, _, _, _, _, _ = ap, argc, argv, envp, i, v2 + defer func() { Xrealloc(tls, argv, 0) }() + ap = va + argc = int32(1) + for { + if !(VaUintptr(&ap) != 0) { + break + } + goto _1 + _1: + ; + argc = argc + 1 + } + _ = ap + v2 = Uint64FromInt32(argc+int32(1)) * 8 + argv = Xrealloc(tls, argv, v2) + ap = va + *(*uintptr)(unsafe.Add(unsafe.Pointer(argv), 0*8)) = argv0 + i = int32(1) + for { + if !(i <= argc) { + break + } + *(*uintptr)(unsafe.Add(unsafe.Pointer(argv), i*8)) = VaUintptr(&ap) + goto _3 + _3: + ; + i = i + 1 + } + envp = VaUintptr(&ap) + _ = ap + return Xexecve(tls, path, argv, envp) + return r +} + +func Xexeclp(tls *TLS, file uintptr, argv0 uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v file=%v argv0=%v va=%v, (%v:)", tls, file, argv0, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var argc, i int32 + var argv uintptr + var v2 t__predefined_size_t + _, _, _, _, _ = ap, argc, argv, i, v2 + defer func() { Xrealloc(tls, argv, 0) }() + ap = va + argc = int32(1) + for { + if !(VaUintptr(&ap) != 0) { + break + } + goto _1 + _1: + ; + argc = argc + 1 + } + _ = ap + v2 = Uint64FromInt32(argc+int32(1)) * 8 + argv = Xrealloc(tls, argv, v2) + ap = va + *(*uintptr)(unsafe.Add(unsafe.Pointer(argv), 0*8)) = argv0 + i = int32(1) + for { + if !(i < argc) { + break + } + *(*uintptr)(unsafe.Add(unsafe.Pointer(argv), i*8)) = VaUintptr(&ap) + goto _3 + _3: + ; + i = i + 1 + } + *(*uintptr)(unsafe.Add(unsafe.Pointer(argv), i*8)) = UintptrFromInt32(0) + _ = ap + return Xexecvp(tls, file, argv) + return r +} + +func Xexecv(tls *TLS, path uintptr, argv uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v argv=%v, (%v:)", tls, path, argv, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xexecve(tls, path, argv, Xenviron) +} + +func Xexecve(tls *TLS, path uintptr, argv uintptr, envp uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v argv=%v envp=%v, (%v:)", tls, path, argv, envp, origin(2)) + defer func() { trc("-> %v", r) }() + } + /* do we need to use environ if envp is null? */ + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_execve), int64(path), int64(argv), int64(envp))))) +} + +func X__execvpe(tls *TLS, file uintptr, argv uintptr, envp uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v file=%v argv=%v envp=%v, (%v:)", tls, file, argv, envp, origin(2)) + defer func() { trc("-> %v", r) }() + } + var b, p, path, z, v3 uintptr + var k, l Tsize_t + var seen_eacces int32 + var v2 t__predefined_size_t + _, _, _, _, _, _, _, _, _ = b, k, l, p, path, seen_eacces, z, v2, v3 + defer func() { Xrealloc(tls, b, 0) }() + path = Xgetenv(tls, __ccgo_ts+1391) + seen_eacces = 0 + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOENT) + if !(**(**uint8)(__ccgo_up(file)) != 0) { + return -int32(1) + } + if Xstrchr(tls, file, int32('/')) != 0 { + return Xexecve(tls, file, argv, envp) + } + if !(path != 0) { + path = __ccgo_ts + 1396 + } + k = Xstrnlen(tls, file, Uint64FromInt32(Int32FromInt32(NAME_MAX)+Int32FromInt32(1))) + if k > uint64(NAME_MAX) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENAMETOOLONG) + return -int32(1) + } + l = Xstrnlen(tls, path, Uint64FromInt32(Int32FromInt32(PATH_MAX)-Int32FromInt32(1))) + uint64(1) + p = path + for { + v2 = l + k + uint64(1) + b = Xrealloc(tls, b, v2) + z = X__strchrnul(tls, p, int32(':')) + if Uint64FromInt64(int64(z)-int64(p)) >= l { + v3 = z + z = z + 1 + if !(**(**uint8)(__ccgo_up(v3)) != 0) { + break + } + goto _1 + } + Xmemcpy(tls, b, p, Uint64FromInt64(int64(z)-int64(p))) + *(*uint8)(unsafe.Add(unsafe.Pointer(b), int64(z)-int64(p))) = uint8('/') + Xmemcpy(tls, b+uintptr(int64(z)-int64(p))+BoolUintptr(z > p), file, k+uint64(1)) + Xexecve(tls, b, argv, envp) + switch **(**int32)(__ccgo_up(X__errno_location(tls))) { + case int32(EACCES): + seen_eacces = int32(1) + fallthrough + case int32(ENOENT): + fallthrough + case int32(ENOTDIR): + default: + return -int32(1) + } + v3 = z + z = z + 1 + if !(**(**uint8)(__ccgo_up(v3)) != 0) { + break + } + goto _1 + _1: + ; + p = z + } + if seen_eacces != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EACCES) + } + return -int32(1) +} + +func Xexecvp(tls *TLS, file uintptr, argv uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v file=%v argv=%v, (%v:)", tls, file, argv, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__execvpe(tls, file, argv, Xenviron) +} + +func Xexecvpe(tls *TLS, file uintptr, argv uintptr, envp uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v file=%v argv=%v envp=%v, (%v:)", tls, file, argv, envp, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__execvpe(tls, file, argv, envp) +} + +func Xfexecve(tls *TLS, fd int32, argv uintptr, envp uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v argv=%v envp=%v, (%v:)", tls, fd, argv, envp, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var r int32 + var _ /* buf at bp+0 */ [27]uint8 + _ = r + r = int32(X__syscall5(tls, int64(SYS_execveat), int64(fd), int64(__ccgo_ts), int64(argv), int64(envp), int64(Int32FromInt32(AT_EMPTY_PATH)))) + if r != -int32(ENOSYS) { + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) + } + X__procfdname(tls, bp, Uint32FromInt32(fd)) + Xexecve(tls, bp, argv, envp) + if **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(ENOENT) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EBADF) + } + return -int32(1) +} + +var _dummy_lockptr = uintptr(0) + +var _atfork_locks = [10]uintptr{ + 0: uintptr(unsafe.Pointer(&X__at_quick_exit_lockptr)), + 1: uintptr(unsafe.Pointer(&_dummy_lockptr)), + 2: uintptr(unsafe.Pointer(&X__gettext_lockptr)), + 3: uintptr(unsafe.Pointer(&X__locale_lockptr)), + 4: uintptr(unsafe.Pointer(&X__random_lockptr)), + 5: uintptr(unsafe.Pointer(&_dummy_lockptr)), + 6: uintptr(unsafe.Pointer(&X__stdio_ofl_lockptr)), + 7: uintptr(unsafe.Pointer(&X__syslog_lockptr)), + 8: uintptr(unsafe.Pointer(&X__timezone_lockptr)), + 9: uintptr(unsafe.Pointer(&_dummy_lockptr)), +} + +func _dummy8(tls *TLS, x int32) { +} + +func _dummy_0(tls *TLS) { +} + +const FDOP_CHDIR = 4 +const FDOP_CLOSE = 1 +const FDOP_DUP2 = 2 +const FDOP_FCHDIR = 5 +const FDOP_OPEN = 3 +const POSIX_SPAWN_RESETIDS = 1 +const POSIX_SPAWN_SETPGROUP = 2 +const POSIX_SPAWN_SETSCHEDPARAM = 16 +const POSIX_SPAWN_SETSCHEDULER = 32 +const POSIX_SPAWN_SETSID = 128 +const POSIX_SPAWN_SETSIGDEF = 4 +const POSIX_SPAWN_SETSIGMASK = 8 +const POSIX_SPAWN_USEVFORK = 64 + +type Tposix_spawnattr_t = struct { + F__flags int32 + F__pgrp Tpid_t + F__def Tsigset_t + F__mask Tsigset_t + F__prio int32 + F__pol int32 + F__fn uintptr + F__pad [56]uint8 +} + +type Tposix_spawn_file_actions_t = struct { + F__pad0 [2]int32 + F__actions uintptr + F__pad [16]int32 +} + +type Tfdop = struct { + Fnext uintptr + Fprev uintptr + Fcmd int32 + Ffd int32 + Fsrcfd int32 + Foflag int32 + Fmode Tmode_t +} + +func Xposix_spawn_file_actions_addchdir_np(tls *TLS, fa uintptr, path uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fa=%v path=%v, (%v:)", tls, fa, path, origin(2)) + defer func() { trc("-> %v", r) }() + } + var op, v1 uintptr + _, _ = op, v1 + op = Xmalloc(tls, uint64(40)+_strlen(tls, path)+uint64(1)) + if !(op != 0) { + return int32(ENOMEM) + } + (*Tfdop)(unsafe.Pointer(op)).Fcmd = int32(FDOP_CHDIR) + (*Tfdop)(unsafe.Pointer(op)).Ffd = -int32(1) + Xstrcpy(tls, op+36, path) + v1 = (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions + (*Tfdop)(unsafe.Pointer(op)).Fnext = v1 + if v1 != 0 { + (*Tfdop)(unsafe.Pointer((*Tfdop)(unsafe.Pointer(op)).Fnext)).Fprev = op + } + (*Tfdop)(unsafe.Pointer(op)).Fprev = uintptr(0) + (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions = op + return 0 +} + +func Xposix_spawn_file_actions_addclose(tls *TLS, fa uintptr, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fa=%v fd=%v, (%v:)", tls, fa, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + var op, v1 uintptr + _, _ = op, v1 + if fd < 0 { + return int32(EBADF) + } + op = Xmalloc(tls, uint64(40)) + if !(op != 0) { + return int32(ENOMEM) + } + (*Tfdop)(unsafe.Pointer(op)).Fcmd = int32(FDOP_CLOSE) + (*Tfdop)(unsafe.Pointer(op)).Ffd = fd + v1 = (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions + (*Tfdop)(unsafe.Pointer(op)).Fnext = v1 + if v1 != 0 { + (*Tfdop)(unsafe.Pointer((*Tfdop)(unsafe.Pointer(op)).Fnext)).Fprev = op + } + (*Tfdop)(unsafe.Pointer(op)).Fprev = uintptr(0) + (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions = op + return 0 +} + +func Xposix_spawn_file_actions_adddup2(tls *TLS, fa uintptr, srcfd int32, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fa=%v srcfd=%v fd=%v, (%v:)", tls, fa, srcfd, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + var op, v1 uintptr + _, _ = op, v1 + if srcfd < 0 || fd < 0 { + return int32(EBADF) + } + op = Xmalloc(tls, uint64(40)) + if !(op != 0) { + return int32(ENOMEM) + } + (*Tfdop)(unsafe.Pointer(op)).Fcmd = int32(FDOP_DUP2) + (*Tfdop)(unsafe.Pointer(op)).Fsrcfd = srcfd + (*Tfdop)(unsafe.Pointer(op)).Ffd = fd + v1 = (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions + (*Tfdop)(unsafe.Pointer(op)).Fnext = v1 + if v1 != 0 { + (*Tfdop)(unsafe.Pointer((*Tfdop)(unsafe.Pointer(op)).Fnext)).Fprev = op + } + (*Tfdop)(unsafe.Pointer(op)).Fprev = uintptr(0) + (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions = op + return 0 +} + +func Xposix_spawn_file_actions_addfchdir_np(tls *TLS, fa uintptr, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fa=%v fd=%v, (%v:)", tls, fa, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + var op, v1 uintptr + _, _ = op, v1 + if fd < 0 { + return int32(EBADF) + } + op = Xmalloc(tls, uint64(40)) + if !(op != 0) { + return int32(ENOMEM) + } + (*Tfdop)(unsafe.Pointer(op)).Fcmd = int32(FDOP_FCHDIR) + (*Tfdop)(unsafe.Pointer(op)).Ffd = fd + v1 = (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions + (*Tfdop)(unsafe.Pointer(op)).Fnext = v1 + if v1 != 0 { + (*Tfdop)(unsafe.Pointer((*Tfdop)(unsafe.Pointer(op)).Fnext)).Fprev = op + } + (*Tfdop)(unsafe.Pointer(op)).Fprev = uintptr(0) + (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions = op + return 0 +} + +func Xposix_spawn_file_actions_addopen(tls *TLS, fa uintptr, fd int32, path uintptr, flags int32, mode Tmode_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fa=%v fd=%v path=%v flags=%v mode=%v, (%v:)", tls, fa, fd, path, flags, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + var op, v1 uintptr + _, _ = op, v1 + if fd < 0 { + return int32(EBADF) + } + op = Xmalloc(tls, uint64(40)+_strlen(tls, path)+uint64(1)) + if !(op != 0) { + return int32(ENOMEM) + } + (*Tfdop)(unsafe.Pointer(op)).Fcmd = int32(FDOP_OPEN) + (*Tfdop)(unsafe.Pointer(op)).Ffd = fd + (*Tfdop)(unsafe.Pointer(op)).Foflag = flags + (*Tfdop)(unsafe.Pointer(op)).Fmode = mode + Xstrcpy(tls, op+36, path) + v1 = (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions + (*Tfdop)(unsafe.Pointer(op)).Fnext = v1 + if v1 != 0 { + (*Tfdop)(unsafe.Pointer((*Tfdop)(unsafe.Pointer(op)).Fnext)).Fprev = op + } + (*Tfdop)(unsafe.Pointer(op)).Fprev = uintptr(0) + (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions = op + return 0 +} + +func Xposix_spawn_file_actions_destroy(tls *TLS, fa uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fa=%v, (%v:)", tls, fa, origin(2)) + defer func() { trc("-> %v", r) }() + } + var next, op uintptr + _, _ = next, op + op = (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions + for op != 0 { + next = (*Tfdop)(unsafe.Pointer(op)).Fnext + Xfree(tls, op) + op = next + } + return 0 +} + +func Xposix_spawn_file_actions_init(tls *TLS, fa uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fa=%v, (%v:)", tls, fa, origin(2)) + defer func() { trc("-> %v", r) }() + } + (*Tposix_spawn_file_actions_t)(unsafe.Pointer(fa)).F__actions = uintptr(0) + return 0 +} + +func Xposix_spawnattr_destroy(tls *TLS, attr uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v, (%v:)", tls, attr, origin(2)) + defer func() { trc("-> %v", r) }() + } + return 0 +} + +func Xposix_spawnattr_getflags(tls *TLS, attr uintptr, flags uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v flags=%v, (%v:)", tls, attr, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + **(**int16)(__ccgo_up(flags)) = int16((*Tposix_spawnattr_t)(unsafe.Pointer(attr)).F__flags) + return 0 +} + +func Xposix_spawnattr_getpgroup(tls *TLS, attr uintptr, pgrp uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v pgrp=%v, (%v:)", tls, attr, pgrp, origin(2)) + defer func() { trc("-> %v", r) }() + } + **(**Tpid_t)(__ccgo_up(pgrp)) = (*Tposix_spawnattr_t)(unsafe.Pointer(attr)).F__pgrp + return 0 +} + +func Xposix_spawnattr_getsigdefault(tls *TLS, attr uintptr, def uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v def=%v, (%v:)", tls, attr, def, origin(2)) + defer func() { trc("-> %v", r) }() + } + **(**Tsigset_t)(__ccgo_up(def)) = (*Tposix_spawnattr_t)(unsafe.Pointer(attr)).F__def + return 0 +} + +func Xposix_spawnattr_getsigmask(tls *TLS, attr uintptr, mask uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v mask=%v, (%v:)", tls, attr, mask, origin(2)) + defer func() { trc("-> %v", r) }() + } + **(**Tsigset_t)(__ccgo_up(mask)) = (*Tposix_spawnattr_t)(unsafe.Pointer(attr)).F__mask + return 0 +} + +func Xposix_spawnattr_init(tls *TLS, attr uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v, (%v:)", tls, attr, origin(2)) + defer func() { trc("-> %v", r) }() + } + **(**Tposix_spawnattr_t)(__ccgo_up(attr)) = Tposix_spawnattr_t{} + return 0 +} + +func Xposix_spawnattr_getschedparam(tls *TLS, attr uintptr, schedparam uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v schedparam=%v, (%v:)", tls, attr, schedparam, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(ENOSYS) +} + +func Xposix_spawnattr_setschedparam(tls *TLS, attr uintptr, schedparam uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v schedparam=%v, (%v:)", tls, attr, schedparam, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(ENOSYS) +} + +func Xposix_spawnattr_getschedpolicy(tls *TLS, attr uintptr, policy uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v policy=%v, (%v:)", tls, attr, policy, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(ENOSYS) +} + +func Xposix_spawnattr_setschedpolicy(tls *TLS, attr uintptr, policy int32) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v policy=%v, (%v:)", tls, attr, policy, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(ENOSYS) +} + +func Xposix_spawnattr_setflags(tls *TLS, attr uintptr, flags int16) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v flags=%v, (%v:)", tls, attr, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + var all_flags uint32 + _ = all_flags + all_flags = Uint32FromInt32(Int32FromInt32(POSIX_SPAWN_RESETIDS) | Int32FromInt32(POSIX_SPAWN_SETPGROUP) | Int32FromInt32(POSIX_SPAWN_SETSIGDEF) | Int32FromInt32(POSIX_SPAWN_SETSIGMASK) | Int32FromInt32(POSIX_SPAWN_SETSCHEDPARAM) | Int32FromInt32(POSIX_SPAWN_SETSCHEDULER) | Int32FromInt32(POSIX_SPAWN_USEVFORK) | Int32FromInt32(POSIX_SPAWN_SETSID)) + if Uint32FromInt16(flags) & ^all_flags != 0 { + return int32(EINVAL) + } + (*Tposix_spawnattr_t)(unsafe.Pointer(attr)).F__flags = int32(flags) + return 0 +} + +func Xposix_spawnattr_setpgroup(tls *TLS, attr uintptr, pgrp Tpid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v pgrp=%v, (%v:)", tls, attr, pgrp, origin(2)) + defer func() { trc("-> %v", r) }() + } + (*Tposix_spawnattr_t)(unsafe.Pointer(attr)).F__pgrp = pgrp + return 0 +} + +func Xposix_spawnattr_setsigdefault(tls *TLS, attr uintptr, def uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v def=%v, (%v:)", tls, attr, def, origin(2)) + defer func() { trc("-> %v", r) }() + } + (*Tposix_spawnattr_t)(unsafe.Pointer(attr)).F__def = **(**Tsigset_t)(__ccgo_up(def)) + return 0 +} + +func Xposix_spawnattr_setsigmask(tls *TLS, attr uintptr, mask uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v attr=%v mask=%v, (%v:)", tls, attr, mask, origin(2)) + defer func() { trc("-> %v", r) }() + } + (*Tposix_spawnattr_t)(unsafe.Pointer(attr)).F__mask = **(**Tsigset_t)(__ccgo_up(mask)) + return 0 +} + +func Xvfork(tls *TLS) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + /* vfork syscall cannot be made from C code */ + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall0(tls, int64(SYS_fork))))) +} + +func Xwait(tls *TLS, status uintptr) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v status=%v, (%v:)", tls, status, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwaitpid(tls, -Int32FromInt32(1), status, 0) +} + +func Xwaitid(tls *TLS, type1 Tidtype_t, id Tid_t, info uintptr, options int32) (r int32) { + if __ccgo_strace { + trc("tls=%v type1=%v id=%v info=%v options=%v, (%v:)", tls, type1, id, info, options, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_waitid), int64(type1), Int64FromUint32(id), int64(info), int64(options), int64(Int32FromInt32(0)), 0)))) +} + +func Xwaitpid(tls *TLS, pid Tpid_t, status uintptr, options int32) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v pid=%v status=%v options=%v, (%v:)", tls, pid, status, options, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_wait4), int64(pid), int64(status), int64(options), int64(Int32FromInt32(0)), 0, 0)))) +} + +const BRACKET = -3 +const END = 0 +const FNM_CASEFOLD = 16 +const FNM_FILE_NAME = 1 +const FNM_LEADING_DIR = 8 +const FNM_NOESCAPE = 2 +const FNM_NOMATCH = 1 +const FNM_NOSYS = -1 +const FNM_PATHNAME = 1 +const FNM_PERIOD = 4 +const QUESTION = -4 +const STAR = -5 +const UNMATCHABLE = -2 + +func _str_next(tls *TLS, str uintptr, n Tsize_t, step uintptr) (r int32) { + bp := tls.Alloc(16) + defer tls.Free(16) + var k int32 + var _ /* wc at bp+0 */ Twchar_t + _ = k + if !(n != 0) { + **(**Tsize_t)(__ccgo_up(step)) = uint64(0) + return 0 + } + if uint32(**(**uint8)(__ccgo_up(str))) >= uint32(128) { + k = Xmbtowc(tls, bp, str, n) + if k < 0 { + **(**Tsize_t)(__ccgo_up(step)) = uint64(1) + return -int32(1) + } + **(**Tsize_t)(__ccgo_up(step)) = Uint64FromInt32(k) + return **(**Twchar_t)(__ccgo_up(bp)) + } + **(**Tsize_t)(__ccgo_up(step)) = uint64(1) + return Int32FromUint8(**(**uint8)(__ccgo_up(str))) +} + +func _pat_next(tls *TLS, pat uintptr, m Tsize_t, step uintptr, flags int32) (r int32) { + bp := tls.Alloc(16) + defer tls.Free(16) + var esc, k1, z int32 + var k Tsize_t + var _ /* wc at bp+0 */ Twchar_t + _, _, _, _ = esc, k, k1, z + esc = 0 + if !(m != 0) || !(**(**uint8)(__ccgo_up(pat)) != 0) { + **(**Tsize_t)(__ccgo_up(step)) = uint64(0) + return END + } + **(**Tsize_t)(__ccgo_up(step)) = uint64(1) + if Int32FromUint8(**(**uint8)(__ccgo_up(pat))) == int32('\\') && **(**uint8)(__ccgo_up(pat + 1)) != 0 && !(flags&Int32FromInt32(FNM_NOESCAPE) != 0) { + **(**Tsize_t)(__ccgo_up(step)) = uint64(2) + pat = pat + 1 + esc = int32(1) + goto escaped + } + if Int32FromUint8(**(**uint8)(__ccgo_up(pat))) == int32('[') { + k = uint64(1) + if k < m { + if Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(k)))) == int32('^') || Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(k)))) == int32('!') { + k = k + 1 + } + } + if k < m { + if Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(k)))) == int32(']') { + k = k + 1 + } + } + for { + if !(k < m && **(**uint8)(__ccgo_up(pat + uintptr(k))) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(k)))) != int32(']')) { + break + } + if k+uint64(1) < m && **(**uint8)(__ccgo_up(pat + uintptr(k+uint64(1)))) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(k)))) == int32('[') && (Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(k+uint64(1))))) == int32(':') || Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(k+uint64(1))))) == int32('.') || Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(k+uint64(1))))) == int32('=')) { + z = Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(k+uint64(1))))) + k = k + uint64(2) + if k < m && **(**uint8)(__ccgo_up(pat + uintptr(k))) != 0 { + k = k + 1 + } + for k < m && **(**uint8)(__ccgo_up(pat + uintptr(k))) != 0 && (Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(k-uint64(1))))) != z || Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(k)))) != int32(']')) { + k = k + 1 + } + if k == m || !(**(**uint8)(__ccgo_up(pat + uintptr(k))) != 0) { + break + } + } + goto _1 + _1: + ; + k = k + 1 + } + if k == m || !(**(**uint8)(__ccgo_up(pat + uintptr(k))) != 0) { + **(**Tsize_t)(__ccgo_up(step)) = uint64(1) + return int32('[') + } + **(**Tsize_t)(__ccgo_up(step)) = k + uint64(1) + return -int32(3) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(pat))) == int32('*') { + return -int32(5) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(pat))) == int32('?') { + return -int32(4) + } + goto escaped +escaped: + ; + if uint32(**(**uint8)(__ccgo_up(pat))) >= uint32(128) { + k1 = Xmbtowc(tls, bp, pat, m) + if k1 < 0 { + **(**Tsize_t)(__ccgo_up(step)) = uint64(0) + return -int32(2) + } + **(**Tsize_t)(__ccgo_up(step)) = Uint64FromInt32(k1 + esc) + return **(**Twchar_t)(__ccgo_up(bp)) + } + return Int32FromUint8(**(**uint8)(__ccgo_up(pat))) +} + +func _casefold(tls *TLS, k int32) (r int32) { + var c int32 + var v1 uint32 + _, _ = c, v1 + c = Int32FromUint32(Xtowupper(tls, Uint32FromInt32(k))) + if c == k { + v1 = Xtowlower(tls, Uint32FromInt32(k)) + } else { + v1 = Uint32FromInt32(c) + } + return Int32FromUint32(v1) +} + +func _match_bracket(tls *TLS, p uintptr, k int32, kfold int32) (r int32) { + bp := tls.Alloc(32) + defer tls.Free(32) + var inv, l, l1, z int32 + var p0 uintptr + var _ /* buf at bp+8 */ [16]uint8 + var _ /* wc at bp+0 */ Twchar_t + var _ /* wc2 at bp+4 */ Twchar_t + _, _, _, _, _ = inv, l, l1, p0, z + inv = 0 + p = p + 1 + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('^') || Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('!') { + inv = int32(1) + p = p + 1 + } + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32(']') { + if k == int32(']') { + return BoolInt32(!(inv != 0)) + } + p = p + 1 + } else { + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('-') { + if k == int32('-') { + return BoolInt32(!(inv != 0)) + } + p = p + 1 + } + } + **(**Twchar_t)(__ccgo_up(bp)) = Int32FromUint8(**(**uint8)(__ccgo_up(p + uintptr(-Int32FromInt32(1))))) + for { + if !(Int32FromUint8(**(**uint8)(__ccgo_up(p))) != int32(']')) { + break + } + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('-') && Int32FromUint8(**(**uint8)(__ccgo_up(p + 1))) != int32(']') { + l = Xmbtowc(tls, bp+4, p+uintptr(1), uint64(4)) + if l < 0 { + return 0 + } + if **(**Twchar_t)(__ccgo_up(bp)) <= **(**Twchar_t)(__ccgo_up(bp + 4)) { + if Uint32FromInt32(k)-Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp))) <= Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp + 4))-**(**Twchar_t)(__ccgo_up(bp))) || Uint32FromInt32(kfold)-Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp))) <= Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp + 4))-**(**Twchar_t)(__ccgo_up(bp))) { + return BoolInt32(!(inv != 0)) + } + } + p = p + uintptr(l-int32(1)) + goto _1 + } + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('[') && (Int32FromUint8(**(**uint8)(__ccgo_up(p + 1))) == int32(':') || Int32FromUint8(**(**uint8)(__ccgo_up(p + 1))) == int32('.') || Int32FromUint8(**(**uint8)(__ccgo_up(p + 1))) == int32('=')) { + p0 = p + uintptr(2) + z = Int32FromUint8(**(**uint8)(__ccgo_up(p + 1))) + p = p + uintptr(3) + for Int32FromUint8(**(**uint8)(__ccgo_up(p + uintptr(-Int32FromInt32(1))))) != z || Int32FromUint8(**(**uint8)(__ccgo_up(p))) != int32(']') { + p = p + 1 + } + if z == int32(':') && int64(p-uintptr(1))-int64(p0) < int64(16) { + Xmemcpy(tls, bp+8, p0, Uint64FromInt64(int64(p-uintptr(1))-int64(p0))) + (**(**[16]uint8)(__ccgo_up(bp + 8)))[int64(p-uintptr(1))-int64(p0)] = uint8(0) + if Xiswctype(tls, Uint32FromInt32(k), Xwctype(tls, bp+8)) != 0 || Xiswctype(tls, Uint32FromInt32(kfold), Xwctype(tls, bp+8)) != 0 { + return BoolInt32(!(inv != 0)) + } + } + goto _1 + } + if uint32(**(**uint8)(__ccgo_up(p))) < uint32(128) { + **(**Twchar_t)(__ccgo_up(bp)) = Int32FromUint8(uint8(**(**uint8)(__ccgo_up(p)))) + } else { + l1 = Xmbtowc(tls, bp, p, uint64(4)) + if l1 < 0 { + return 0 + } + p = p + uintptr(l1-int32(1)) + } + if **(**Twchar_t)(__ccgo_up(bp)) == k || **(**Twchar_t)(__ccgo_up(bp)) == kfold { + return BoolInt32(!(inv != 0)) + } + goto _1 + _1: + ; + p = p + 1 + } + return inv +} + +func _fnmatch_internal(tls *TLS, pat uintptr, m Tsize_t, str uintptr, n Tsize_t, flags int32) (r int32) { + bp := tls.Alloc(16) + defer tls.Free(16) + var c, k, kfold, v2 int32 + var endpat, endstr, p, ptail, s, stail, v6 uintptr + var tailcnt Tsize_t + var v9 bool + var _ /* pinc at bp+0 */ Tsize_t + var _ /* sinc at bp+8 */ Tsize_t + _, _, _, _, _, _, _, _, _, _, _, _, _ = c, endpat, endstr, k, kfold, p, ptail, s, stail, tailcnt, v2, v6, v9 + tailcnt = uint64(0) + if flags&int32(FNM_PERIOD) != 0 { + if Int32FromUint8(**(**uint8)(__ccgo_up(str))) == int32('.') && Int32FromUint8(**(**uint8)(__ccgo_up(pat))) != int32('.') { + return int32(FNM_NOMATCH) + } + } + for { + v2 = _pat_next(tls, pat, m, bp, flags) + c = v2 + switch v2 { + case -int32(2): + return int32(FNM_NOMATCH) + case -int32(5): + pat = pat + 1 + m = m - 1 + default: + k = _str_next(tls, str, n, bp+8) + if k <= 0 { + if c == END { + v2 = 0 + } else { + v2 = int32(FNM_NOMATCH) + } + return v2 + } + str = str + uintptr(**(**Tsize_t)(__ccgo_up(bp + 8))) + n = n - **(**Tsize_t)(__ccgo_up(bp + 8)) + if flags&int32(FNM_CASEFOLD) != 0 { + v2 = _casefold(tls, k) + } else { + v2 = k + } + kfold = v2 + if c == -int32(3) { + if !(_match_bracket(tls, pat, k, kfold) != 0) { + return int32(FNM_NOMATCH) + } + } else { + if c != -int32(4) && k != c && kfold != c { + return int32(FNM_NOMATCH) + } + } + pat = pat + uintptr(**(**Tsize_t)(__ccgo_up(bp))) + m = m - **(**Tsize_t)(__ccgo_up(bp)) + goto _1 + } + break + goto _1 + _1: + } + /* Compute real pat length if it was initially unknown/-1 */ + m = Xstrnlen(tls, pat, m) + endpat = pat + uintptr(m) + /* Find the last * in pat and count chars needed after it */ + v6 = pat + ptail = v6 + p = v6 + for { + if !(p < endpat) { + break + } + switch _pat_next(tls, p, Uint64FromInt64(int64(endpat)-int64(p)), bp, flags) { + case -int32(2): + return int32(FNM_NOMATCH) + case -int32(5): + tailcnt = uint64(0) + ptail = p + uintptr(1) + default: + tailcnt = tailcnt + 1 + break + } + goto _5 + _5: + ; + p = p + uintptr(**(**Tsize_t)(__ccgo_up(bp))) + } + /* Past this point we need not check for UNMATCHABLE in pat, + * because all of pat has already been parsed once. */ + /* Compute real str length if it was initially unknown/-1 */ + n = Xstrnlen(tls, str, n) + endstr = str + uintptr(n) + if n < tailcnt { + return int32(FNM_NOMATCH) + } + /* Find the final tailcnt chars of str, accounting for UTF-8. + * On illegal sequences we may get it wrong, but in that case + * we necessarily have a matching failure anyway. */ + s = endstr + for { + if !(s > str && tailcnt != 0) { + break + } + if v9 = uint32(**(**uint8)(__ccgo_up(s + uintptr(-Int32FromInt32(1))))) < uint32(128); !v9 { + if !!(**(**uintptr)(__ccgo_up((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale)) != 0) { + v2 = int32(4) + } else { + v2 = int32(1) + } + } + if v9 || v2 == int32(1) { + s = s - 1 + } else { + for { + s = s - 1 + v6 = s + if !(uint32(uint8(**(**uint8)(__ccgo_up(v6))))-uint32(0x80) < uint32(0x40) && s > str) { + break + } + } + } + goto _7 + _7: + ; + tailcnt = tailcnt - 1 + } + if tailcnt != 0 { + return int32(FNM_NOMATCH) + } + stail = s + /* Check that the pat and str tails match */ + p = ptail + for { + c = _pat_next(tls, p, Uint64FromInt64(int64(endpat)-int64(p)), bp, flags) + p = p + uintptr(**(**Tsize_t)(__ccgo_up(bp))) + v2 = _str_next(tls, s, Uint64FromInt64(int64(endstr)-int64(s)), bp+8) + k = v2 + if v2 <= 0 { + if c != END { + return int32(FNM_NOMATCH) + } + break + } + s = s + uintptr(**(**Tsize_t)(__ccgo_up(bp + 8))) + if flags&int32(FNM_CASEFOLD) != 0 { + v2 = _casefold(tls, k) + } else { + v2 = k + } + kfold = v2 + if c == -int32(3) { + if !(_match_bracket(tls, p-uintptr(**(**Tsize_t)(__ccgo_up(bp))), k, kfold) != 0) { + return int32(FNM_NOMATCH) + } + } else { + if c != -int32(4) && k != c && kfold != c { + return int32(FNM_NOMATCH) + } + } + goto _11 + _11: + } + /* We're all done with the tails now, so throw them out */ + endstr = stail + endpat = ptail + /* Match pattern components until there are none left */ + for pat < endpat { + p = pat + s = str + for { + c = _pat_next(tls, p, Uint64FromInt64(int64(endpat)-int64(p)), bp, flags) + p = p + uintptr(**(**Tsize_t)(__ccgo_up(bp))) + /* Encountering * completes/commits a component */ + if c == -int32(5) { + pat = p + str = s + break + } + k = _str_next(tls, s, Uint64FromInt64(int64(endstr)-int64(s)), bp+8) + if !(k != 0) { + return int32(FNM_NOMATCH) + } + if flags&int32(FNM_CASEFOLD) != 0 { + v2 = _casefold(tls, k) + } else { + v2 = k + } + kfold = v2 + if c == -int32(3) { + if !(_match_bracket(tls, p-uintptr(**(**Tsize_t)(__ccgo_up(bp))), k, kfold) != 0) { + break + } + } else { + if c != -int32(4) && k != c && kfold != c { + break + } + } + s = s + uintptr(**(**Tsize_t)(__ccgo_up(bp + 8))) + goto _14 + _14: + } + if c == -int32(5) { + continue + } + /* If we failed, advance str, by 1 char if it's a valid + * char, or past all invalid bytes otherwise. */ + k = _str_next(tls, str, Uint64FromInt64(int64(endstr)-int64(str)), bp+8) + if k > 0 { + str = str + uintptr(**(**Tsize_t)(__ccgo_up(bp + 8))) + } else { + str = str + 1 + for { + if !(_str_next(tls, str, Uint64FromInt64(int64(endstr)-int64(str)), bp+8) < 0) { + break + } + goto _16 + _16: + ; + str = str + 1 + } + } + } + return 0 +} + +func Xfnmatch(tls *TLS, pat uintptr, str uintptr, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v pat=%v str=%v flags=%v, (%v:)", tls, pat, str, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var c, v4 int32 + var p, s uintptr + var _ /* inc at bp+0 */ Tsize_t + _, _, _, _ = c, p, s, v4 + if flags&int32(FNM_PATHNAME) != 0 { + for { + s = str + for { + if !(**(**uint8)(__ccgo_up(s)) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(s))) != int32('/')) { + break + } + goto _2 + _2: + ; + s = s + 1 + } + p = pat + for { + v4 = _pat_next(tls, p, Uint64FromInt32(-Int32FromInt32(1)), bp, flags) + c = v4 + if !(v4 != END && c != int32('/')) { + break + } + goto _3 + _3: + ; + p = p + uintptr(**(**Tsize_t)(__ccgo_up(bp))) + } + if c != Int32FromUint8(**(**uint8)(__ccgo_up(s))) && (!(**(**uint8)(__ccgo_up(s)) != 0) || !(flags&Int32FromInt32(FNM_LEADING_DIR) != 0)) { + return int32(FNM_NOMATCH) + } + if _fnmatch_internal(tls, pat, Uint64FromInt64(int64(p)-int64(pat)), str, Uint64FromInt64(int64(s)-int64(str)), flags) != 0 { + return int32(FNM_NOMATCH) + } + if !(c != 0) { + return 0 + } + str = s + uintptr(1) + pat = p + uintptr(**(**Tsize_t)(__ccgo_up(bp))) + goto _1 + _1: + } + } else { + if flags&int32(FNM_LEADING_DIR) != 0 { + s = str + for { + if !(**(**uint8)(__ccgo_up(s)) != 0) { + break + } + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) != int32('/') { + goto _5 + } + if !(_fnmatch_internal(tls, pat, Uint64FromInt32(-Int32FromInt32(1)), str, Uint64FromInt64(int64(s)-int64(str)), flags) != 0) { + return 0 + } + goto _5 + _5: + ; + s = s + 1 + } + } + } + return _fnmatch_internal(tls, pat, Uint64FromInt32(-Int32FromInt32(1)), str, Uint64FromInt32(-Int32FromInt32(1)), flags) +} + +const GLOB_ABORTED = 2 +const GLOB_APPEND = 32 +const GLOB_DOOFFS = 8 +const GLOB_ERR = 1 +const GLOB_MARK = 2 +const GLOB_NOCHECK = 16 +const GLOB_NOESCAPE = 64 +const GLOB_NOMATCH = 3 +const GLOB_NOSORT = 4 +const GLOB_NOSPACE = 1 +const GLOB_NOSYS = 4 +const GLOB_PERIOD = 128 +const GLOB_TILDE = 4096 +const GLOB_TILDE_CHECK = 16384 + +type Tglob_t = struct { + Fgl_pathc Tsize_t + Fgl_pathv uintptr + Fgl_offs Tsize_t + F__dummy1 int32 + F__dummy2 [5]uintptr +} + +type Tmatch = struct { + Fnext uintptr +} + +func _append(tls *TLS, tail uintptr, name uintptr, len1 Tsize_t, mark int32) (r int32) { + var new1 uintptr + _ = new1 + new1 = Xmalloc(tls, uint64(8)+len1+uint64(2)) + if !(new1 != 0) { + return -int32(1) + } + (*Tmatch)(unsafe.Pointer(**(**uintptr)(__ccgo_up(tail)))).Fnext = new1 + (*Tmatch)(unsafe.Pointer(new1)).Fnext = UintptrFromInt32(0) + Xmemcpy(tls, new1+8, name, len1+uint64(1)) + if mark != 0 && len1 != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(name + uintptr(len1-uint64(1))))) != int32('/') { + *(*uint8)(unsafe.Pointer(new1 + 8 + uintptr(len1))) = uint8('/') + *(*uint8)(unsafe.Pointer(new1 + 8 + uintptr(len1+uint64(1)))) = uint8(0) + } + **(**uintptr)(__ccgo_up(tail)) = new1 + return 0 +} + +func _do_glob(tls *TLS, buf uintptr, pos Tsize_t, type1 int32, pat uintptr, flags int32, __ccgo_fp_errfunc uintptr, tail uintptr) (r1 int32) { + bp := tls.Alloc(144) + defer tls.Free(144) + var de, dir, p, p2, v2 uintptr + var fnm_flags, in_bracket, old_errno, overflow, r, readerr, v10, v9 int32 + var i, j, v4 Tptrdiff_t + var l, v1 Tsize_t + var saved_sep uint8 + var _ /* st at bp+0 */ Tstat + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = de, dir, fnm_flags, i, in_bracket, j, l, old_errno, overflow, p, p2, r, readerr, saved_sep, v1, v10, v2, v4, v9 + /* If GLOB_MARK is unused, we don't care about type. */ + if !(type1 != 0) && !(flags&Int32FromInt32(GLOB_MARK) != 0) { + type1 = int32(DT_REG) + } + /* Special-case the remaining pattern being all slashes, in + * which case we can use caller-passed type if it's a dir. */ + if **(**uint8)(__ccgo_up(pat)) != 0 && type1 != int32(DT_DIR) { + type1 = 0 + } + for pos+uint64(1) < uint64(PATH_MAX) && Int32FromUint8(**(**uint8)(__ccgo_up(pat))) == int32('/') { + v1 = pos + pos = pos + 1 + v2 = pat + pat = pat + 1 + **(**uint8)(__ccgo_up(buf + uintptr(v1))) = **(**uint8)(__ccgo_up(v2)) + } + /* Consume maximal [escaped-]literal prefix of pattern, copying + * and un-escaping it to the running buffer as we go. */ + i = 0 + j = 0 + in_bracket = 0 + overflow = 0 + for { + if !(Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(i)))) != int32('*') && Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(i)))) != int32('?') && (!(in_bracket != 0) || Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(i)))) != int32(']'))) { + break + } + if !(**(**uint8)(__ccgo_up(pat + uintptr(i))) != 0) { + if overflow != 0 { + return 0 + } + pat = pat + uintptr(i) + pos = pos + Uint64FromInt64(j) + v4 = Int64FromInt32(0) + j = v4 + i = v4 + break + } else { + if Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(i)))) == int32('[') { + in_bracket = int32(1) + } else { + if Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(i)))) == int32('\\') && !(flags&Int32FromInt32(GLOB_NOESCAPE) != 0) { + /* Backslashes inside a bracket are (at least by + * our interpretation) non-special, so if next + * char is ']' we have a complete expression. */ + if in_bracket != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(i+int64(1))))) == int32(']') { + break + } + /* Unpaired final backslash never matches. */ + if !(**(**uint8)(__ccgo_up(pat + uintptr(i+int64(1)))) != 0) { + return 0 + } + i = i + 1 + } + } + } + if Int32FromUint8(**(**uint8)(__ccgo_up(pat + uintptr(i)))) == int32('/') { + if overflow != 0 { + return 0 + } + in_bracket = 0 + pat = pat + uintptr(i+int64(1)) + i = int64(-int32(1)) + pos = pos + Uint64FromInt64(j+int64(1)) + j = int64(-int32(1)) + } + /* Only store a character if it fits in the buffer, but if + * a potential bracket expression is open, the overflow + * must be remembered and handled later only if the bracket + * is unterminated (and thereby a literal), so as not to + * disallow long bracket expressions with short matches. */ + if pos+Uint64FromInt64(j+Int64FromInt32(1)) < uint64(PATH_MAX) { + v4 = j + j = j + 1 + **(**uint8)(__ccgo_up(buf + uintptr(pos+Uint64FromInt64(v4)))) = **(**uint8)(__ccgo_up(pat + uintptr(i))) + } else { + if in_bracket != 0 { + overflow = int32(1) + } else { + return 0 + } + } + /* If we consume any new components, the caller-passed type + * or dummy type from above is no longer valid. */ + type1 = 0 + goto _3 + _3: + ; + i = i + 1 + } + **(**uint8)(__ccgo_up(buf + uintptr(pos))) = uint8(0) + if !(**(**uint8)(__ccgo_up(pat)) != 0) { + if flags&int32(GLOB_MARK) != 0 && (!(type1 != 0) || type1 == int32(DT_LNK)) && !(Xstat(tls, buf, bp) != 0) { + if (**(**Tstat)(__ccgo_up(bp))).Fst_mode&uint32(S_IFMT) == uint32(S_IFDIR) { + type1 = int32(DT_DIR) + } else { + type1 = int32(DT_REG) + } + } + if !(type1 != 0) && Xlstat(tls, buf, bp) != 0 { + if **(**int32)(__ccgo_up(X__errno_location(tls))) != int32(ENOENT) && ((*(*func(*TLS, uintptr, int32) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_errfunc})))(tls, buf, **(**int32)(__ccgo_up(X__errno_location(tls)))) != 0 || flags&int32(GLOB_ERR) != 0) { + return int32(GLOB_ABORTED) + } + return 0 + } + if _append(tls, tail, buf, pos, BoolInt32(flags&int32(GLOB_MARK) != 0 && type1 == int32(DT_DIR))) != 0 { + return int32(GLOB_NOSPACE) + } + return 0 + } + p2 = Xstrchr(tls, pat, int32('/')) + saved_sep = uint8('/') + /* Check if the '/' was escaped and, if so, remove the escape char + * so that it will not be unpaired when passed to fnmatch. */ + if p2 != 0 && !(flags&Int32FromInt32(GLOB_NOESCAPE) != 0) { + p = p2 + for { + if !(p > pat && Int32FromUint8(**(**uint8)(__ccgo_up(p + uintptr(-Int32FromInt32(1))))) == int32('\\')) { + break + } + goto _6 + _6: + ; + p = p - 1 + } + if (int64(p2)-int64(p))%int64(2) != 0 { + p2 = p2 - 1 + saved_sep = uint8('\\') + } + } + if pos != 0 { + v2 = buf + } else { + v2 = __ccgo_ts + 598 + } + dir = Xopendir(tls, v2) + if !(dir != 0) { + if (*(*func(*TLS, uintptr, int32) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_errfunc})))(tls, buf, **(**int32)(__ccgo_up(X__errno_location(tls)))) != 0 || flags&int32(GLOB_ERR) != 0 { + return int32(GLOB_ABORTED) + } + return 0 + } + old_errno = **(**int32)(__ccgo_up(X__errno_location(tls))) + for { + **(**int32)(__ccgo_up(X__errno_location(tls))) = 0 + v2 = Xreaddir(tls, dir) + de = v2 + if !(v2 != 0) { + break + } + /* Quickly skip non-directories when there's pattern left. */ + if p2 != 0 && (*Tdirent)(unsafe.Pointer(de)).Fd_type != 0 && Int32FromUint8((*Tdirent)(unsafe.Pointer(de)).Fd_type) != int32(DT_DIR) && Int32FromUint8((*Tdirent)(unsafe.Pointer(de)).Fd_type) != int32(DT_LNK) { + continue + } + l = _strlen(tls, de+19) + if l >= uint64(PATH_MAX)-pos { + continue + } + if p2 != 0 { + **(**uint8)(__ccgo_up(p2)) = uint8(0) + } + if flags&int32(GLOB_NOESCAPE) != 0 { + v9 = int32(FNM_NOESCAPE) + } else { + v9 = 0 + } + if !(flags&Int32FromInt32(GLOB_PERIOD) != 0) { + v10 = int32(FNM_PERIOD) + } else { + v10 = 0 + } + fnm_flags = v9 | v10 + if Xfnmatch(tls, pat, de+19, fnm_flags) != 0 { + continue + } + /* With GLOB_PERIOD, don't allow matching . or .. unless + * fnmatch would match them with FNM_PERIOD rules in effect. */ + if p2 != 0 && flags&int32(GLOB_PERIOD) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(de + 19))) == int32('.') && (!(**(**uint8)(__ccgo_up(de + 19 + 1)) != 0) || Int32FromUint8(**(**uint8)(__ccgo_up(de + 19 + 1))) == int32('.') && !(**(**uint8)(__ccgo_up(de + 19 + 2)) != 0)) && Xfnmatch(tls, pat, de+19, fnm_flags|int32(FNM_PERIOD)) != 0 { + continue + } + Xmemcpy(tls, buf+uintptr(pos), de+19, l+uint64(1)) + if p2 != 0 { + **(**uint8)(__ccgo_up(p2)) = saved_sep + } + if p2 != 0 { + v2 = p2 + } else { + v2 = __ccgo_ts + } + r = _do_glob(tls, buf, pos+l, Int32FromUint8((*Tdirent)(unsafe.Pointer(de)).Fd_type), v2, flags, __ccgo_fp_errfunc, tail) + if r != 0 { + Xclosedir(tls, dir) + return r + } + } + readerr = **(**int32)(__ccgo_up(X__errno_location(tls))) + if p2 != 0 { + **(**uint8)(__ccgo_up(p2)) = saved_sep + } + Xclosedir(tls, dir) + if readerr != 0 && ((*(*func(*TLS, uintptr, int32) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_errfunc})))(tls, buf, **(**int32)(__ccgo_up(X__errno_location(tls)))) != 0 || flags&int32(GLOB_ERR) != 0) { + return int32(GLOB_ABORTED) + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = old_errno + return 0 +} + +func _ignore_err(tls *TLS, path uintptr, err int32) (r int32) { + return 0 +} + +func _freelist(tls *TLS, head uintptr) { + var match, next uintptr + _, _ = match, next + match = (*Tmatch)(unsafe.Pointer(head)).Fnext + for { + if !(match != 0) { + break + } + next = (*Tmatch)(unsafe.Pointer(match)).Fnext + Xfree(tls, match) + goto _1 + _1: + ; + match = next + } +} + +func _sort(tls *TLS, a uintptr, b uintptr) (r int32) { + return Xstrcmp(tls, **(**uintptr)(__ccgo_up(a)), **(**uintptr)(__ccgo_up(b))) +} + +func _expand_tilde(tls *TLS, pat uintptr, buf uintptr, pos uintptr) (r int32) { + bp := tls.Alloc(64) + defer tls.Free(64) + var delim, v1 uint8 + var home, name_end, p, v2 uintptr + var i, v10 Tsize_t + var v4 int32 + var _ /* pw at bp+0 */ Tpasswd + var _ /* res at bp+48 */ uintptr + _, _, _, _, _, _, _, _, _ = delim, home, i, name_end, p, v1, v10, v2, v4 + p = **(**uintptr)(__ccgo_up(pat)) + uintptr(1) + i = uint64(0) + name_end = X__strchrnul(tls, p, int32('/')) + v1 = **(**uint8)(__ccgo_up(name_end)) + delim = v1 + if v1 != 0 { + v2 = name_end + name_end = name_end + 1 + **(**uint8)(__ccgo_up(v2)) = uint8(0) + } + **(**uintptr)(__ccgo_up(pat)) = name_end + if **(**uint8)(__ccgo_up(p)) != 0 { + v2 = UintptrFromInt32(0) + } else { + v2 = Xgetenv(tls, __ccgo_ts+1425) + } + home = v2 + if !(home != 0) { + if **(**uint8)(__ccgo_up(p)) != 0 { + v4 = Xgetpwnam_r(tls, p, bp, buf, uint64(PATH_MAX), bp+48) + } else { + v4 = Xgetpwuid_r(tls, Xgetuid(tls), bp, buf, uint64(PATH_MAX), bp+48) + } + switch v4 { + case int32(ENOMEM): + goto _5 + default: + goto _6 + case 0: + goto _7 + } + goto _8 + _5: + ; + return int32(GLOB_NOSPACE) + _7: + ; + if !!(**(**uintptr)(__ccgo_up(bp + 48)) != 0) { + goto _9 + } + _6: + ; + return int32(GLOB_NOMATCH) + _9: + ; + _8: + ; + home = (**(**Tpasswd)(__ccgo_up(bp))).Fpw_dir + } + for i < Uint64FromInt32(Int32FromInt32(PATH_MAX)-Int32FromInt32(2)) && **(**uint8)(__ccgo_up(home)) != 0 { + v10 = i + i = i + 1 + v2 = home + home = home + 1 + **(**uint8)(__ccgo_up(buf + uintptr(v10))) = **(**uint8)(__ccgo_up(v2)) + } + if **(**uint8)(__ccgo_up(home)) != 0 { + return int32(GLOB_NOMATCH) + } + v1 = delim + **(**uint8)(__ccgo_up(buf + uintptr(i))) = v1 + if v1 != 0 { + i = i + 1 + v10 = i + **(**uint8)(__ccgo_up(buf + uintptr(v10))) = uint8(0) + } + **(**Tsize_t)(__ccgo_up(pos)) = i + return 0 +} + +type t__ccgo_fp__Xglob_2 = func(*TLS, uintptr, int32) int32 + +func Xglob(tls *TLS, pat uintptr, flags int32, __ccgo_fp_errfunc uintptr, g uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v pat=%v flags=%v __ccgo_fp_errfunc=%v g=%v, (%v:)", tls, pat, flags, __ccgo_fp_errfunc, g, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(4128) + defer tls.Free(4128) + var cnt, i, offs Tsize_t + var error1 int32 + var p, pathv uintptr + var v1 uint64 + var _ /* buf at bp+16 */ [4096]uint8 + var _ /* head at bp+0 */ Tmatch + var _ /* pos at bp+4112 */ Tsize_t + var _ /* s at bp+4120 */ uintptr + var _ /* tail at bp+8 */ uintptr + _, _, _, _, _, _, _ = cnt, error1, i, offs, p, pathv, v1 + **(**Tmatch)(__ccgo_up(bp)) = struct { + Fnext uintptr + }{} + **(**uintptr)(__ccgo_up(bp + 8)) = bp + if flags&int32(GLOB_DOOFFS) != 0 { + v1 = (*Tglob_t)(unsafe.Pointer(g)).Fgl_offs + } else { + v1 = uint64(0) + } + offs = v1 + error1 = 0 + if !(__ccgo_fp_errfunc != 0) { + __ccgo_fp_errfunc = __ccgo_fp(_ignore_err) + } + if !(flags&Int32FromInt32(GLOB_APPEND) != 0) { + (*Tglob_t)(unsafe.Pointer(g)).Fgl_offs = offs + (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathc = uint64(0) + (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv = UintptrFromInt32(0) + } + if **(**uint8)(__ccgo_up(pat)) != 0 { + p = Xstrdup(tls, pat) + if !(p != 0) { + return int32(GLOB_NOSPACE) + } + (**(**[4096]uint8)(__ccgo_up(bp + 16)))[0] = uint8(0) + **(**Tsize_t)(__ccgo_up(bp + 4112)) = uint64(0) + **(**uintptr)(__ccgo_up(bp + 4120)) = p + if flags&(Int32FromInt32(GLOB_TILDE)|Int32FromInt32(GLOB_TILDE_CHECK)) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('~') { + error1 = _expand_tilde(tls, bp+4120, bp+16, bp+4112) + } + if !(error1 != 0) { + error1 = _do_glob(tls, bp+16, **(**Tsize_t)(__ccgo_up(bp + 4112)), 0, **(**uintptr)(__ccgo_up(bp + 4120)), flags, __ccgo_fp_errfunc, bp+8) + } + Xfree(tls, p) + } + if error1 == int32(GLOB_NOSPACE) { + _freelist(tls, bp) + return error1 + } + cnt = uint64(0) + **(**uintptr)(__ccgo_up(bp + 8)) = (**(**Tmatch)(__ccgo_up(bp))).Fnext + for { + if !(**(**uintptr)(__ccgo_up(bp + 8)) != 0) { + break + } + goto _2 + _2: + ; + **(**uintptr)(__ccgo_up(bp + 8)) = (*Tmatch)(unsafe.Pointer(**(**uintptr)(__ccgo_up(bp + 8)))).Fnext + cnt = cnt + 1 + } + if !(cnt != 0) { + if flags&int32(GLOB_NOCHECK) != 0 { + **(**uintptr)(__ccgo_up(bp + 8)) = bp + if _append(tls, bp+8, pat, _strlen(tls, pat), 0) != 0 { + return int32(GLOB_NOSPACE) + } + cnt = cnt + 1 + } else { + if !(error1 != 0) { + return int32(GLOB_NOMATCH) + } + } + } + if flags&int32(GLOB_APPEND) != 0 { + pathv = Xrealloc(tls, (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv, (offs+(*Tglob_t)(unsafe.Pointer(g)).Fgl_pathc+cnt+uint64(1))*uint64(8)) + if !(pathv != 0) { + _freelist(tls, bp) + return int32(GLOB_NOSPACE) + } + (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv = pathv + offs = offs + (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathc + } else { + (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv = Xmalloc(tls, (offs+cnt+uint64(1))*uint64(8)) + if !((*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv != 0) { + _freelist(tls, bp) + return int32(GLOB_NOSPACE) + } + i = uint64(0) + for { + if !(i < offs) { + break + } + **(**uintptr)(__ccgo_up((*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv + uintptr(i)*8)) = UintptrFromInt32(0) + goto _3 + _3: + ; + i = i + 1 + } + } + i = uint64(0) + **(**uintptr)(__ccgo_up(bp + 8)) = (**(**Tmatch)(__ccgo_up(bp))).Fnext + for { + if !(i < cnt) { + break + } + **(**uintptr)(__ccgo_up((*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv + uintptr(offs+i)*8)) = **(**uintptr)(__ccgo_up(bp + 8)) + 8 + goto _4 + _4: + ; + **(**uintptr)(__ccgo_up(bp + 8)) = (*Tmatch)(unsafe.Pointer(**(**uintptr)(__ccgo_up(bp + 8)))).Fnext + i = i + 1 + } + **(**uintptr)(__ccgo_up((*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv + uintptr(offs+i)*8)) = UintptrFromInt32(0) + **(**Tsize_t)(__ccgo_up(g)) += cnt + if !(flags&Int32FromInt32(GLOB_NOSORT) != 0) { + Xqsort(tls, (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv+uintptr(offs)*8, cnt, uint64(8), __ccgo_fp(_sort)) + } + return error1 +} + +func Xglobfree(tls *TLS, g uintptr) { + if __ccgo_strace { + trc("tls=%v g=%v, (%v:)", tls, g, origin(2)) + } + var i Tsize_t + _ = i + i = uint64(0) + for { + if !(i < (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathc) { + break + } + Xfree(tls, **(**uintptr)(__ccgo_up((*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv + uintptr((*Tglob_t)(unsafe.Pointer(g)).Fgl_offs+i)*8))-uintptr(uint64(UintptrFromInt32(0)+8))) + goto _1 + _1: + ; + i = i + 1 + } + Xfree(tls, (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv) + (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathc = uint64(0) + (*Tglob_t)(unsafe.Pointer(g)).Fgl_pathv = UintptrFromInt32(0) +} + +const ASSERTION = -2 +const ASSERT_AT_BOL = 1 +const ASSERT_AT_BOW = 16 +const ASSERT_AT_EOL = 2 +const ASSERT_AT_EOW = 32 +const ASSERT_AT_WB = 64 +const ASSERT_AT_WB_NEG = 128 +const ASSERT_BACKREF = 256 +const ASSERT_CHAR_CLASS = 4 +const ASSERT_CHAR_CLASS_NEG = 8 +const ASSERT_LAST = 256 +const BACKREF = -4 +const COPY_MAXIMIZE_FIRST_TAG = 2 +const COPY_REMOVE_TAGS = 1 +const EMPTY1 = -1 +const MAX_NEG_CLASSES = 64 +const REG_BADBR = 10 +const REG_BADPAT = 2 +const REG_BADRPT = 13 +const REG_EBRACE = 9 +const REG_EBRACK = 7 +const REG_ECOLLATE = 3 +const REG_ECTYPE = 4 +const REG_EESCAPE = 5 +const REG_ENOSYS = -1 +const REG_EPAREN = 8 +const REG_ERANGE = 11 +const REG_ESPACE = 12 +const REG_ESUBREG = 6 +const REG_EXTENDED = 1 +const REG_ICASE = 2 +const REG_NEWLINE = 4 +const REG_NOMATCH = 1 +const REG_NOSUB = 8 +const REG_NOTBOL = 1 +const REG_NOTEOL = 2 +const REG_OK = 0 +const TAG = -3 +const TRE_CHAR_MAX = 1114111 +const TRE_MEM_BLOCK_SIZE = 1024 +const TRE_REGEX_T_FIELD = 0 +const tre_ctype = 0 +const tre_isalnum = 0 +const tre_isalpha = 0 +const tre_isblank = 0 +const tre_iscntrl = 0 +const tre_isctype = 0 +const tre_isdigit = 0 +const tre_isgraph = 0 +const tre_islower = 0 +const tre_isprint = 0 +const tre_ispunct = 0 +const tre_isspace = 0 +const tre_isupper = 0 +const tre_isxdigit = 0 +const tre_mem_alloc_impl = 0 +const tre_mem_destroy = 0 +const tre_mem_new_impl = 0 +const tre_strlen = 0 +const tre_tolower = 0 +const tre_toupper = 0 +const xcalloc = 0 +const xfree = 0 +const xmalloc = 0 +const xrealloc = 0 + +type Tregoff_t = int64 + +type Tregex_t = struct { + Fre_nsub Tsize_t + F__opaque uintptr + F__padding [4]uintptr + F__nsub2 Tsize_t + F__padding2 uint8 +} + +type Tre_pattern_buffer = Tregex_t + +type Tregmatch_t = struct { + Frm_so Tregoff_t + Frm_eo Tregoff_t +} + +type Treg_errcode_t = int32 + +type Ttre_char_t = int32 + +type Ttre_cint_t = uint32 + +type Ttre_ctype_t = uint64 + +type Ttre_tnfa_transition_t = struct { + Fcode_min Ttre_cint_t + Fcode_max Ttre_cint_t + Fstate uintptr + Fstate_id int32 + Ftags uintptr + Fassertions int32 + Fu struct { + Fbackref [0]int32 + Fclass Ttre_ctype_t + } + Fneg_classes uintptr +} + +type Ttnfa_transition = Ttre_tnfa_transition_t + +type Ttre_tag_direction_t = int32 + +const _TRE_TAG_MINIMIZE = 0 +const _TRE_TAG_MAXIMIZE = 1 + +type Ttre_submatch_data = struct { + Fso_tag int32 + Feo_tag int32 + Fparents uintptr +} + +type Ttre_submatch_data_t = struct { + Fso_tag int32 + Feo_tag int32 + Fparents uintptr +} + +type Ttre_tnfa_t = struct { + Ftransitions uintptr + Fnum_transitions uint32 + Finitial uintptr + Ffinal uintptr + Fsubmatch_data uintptr + Ffirstpos_chars uintptr + Ffirst_char int32 + Fnum_submatches uint32 + Ftag_directions uintptr + Fminimal_tags uintptr + Fnum_tags int32 + Fnum_minimals int32 + Fend_tag int32 + Fnum_states int32 + Fcflags int32 + Fhave_backrefs int32 + Fhave_approx int32 +} + +type Ttnfa = Ttre_tnfa_t + +type Ttre_list_t = struct { + Fdata uintptr + Fnext uintptr +} + +type Ttre_list = Ttre_list_t + +type Ttre_mem_t = uintptr + +type Ttre_mem_struct = struct { + Fblocks uintptr + Fcurrent uintptr + Fptr uintptr + Fn Tsize_t + Ffailed int32 + Fprovided uintptr +} + +/*********************************************************************** + from tre-compile.h +***********************************************************************/ + +type Ttre_pos_and_tags_t = struct { + Fposition int32 + Fcode_min int32 + Fcode_max int32 + Ftags uintptr + Fassertions int32 + Fclass Ttre_ctype_t + Fneg_classes uintptr + Fbackref int32 +} + +/*********************************************************************** + from tre-ast.c and tre-ast.h +***********************************************************************/ + +// C documentation +// +// /* The different AST node types. */ +type Ttre_ast_type_t = int32 + +const _LITERAL = 0 +const _CATENATION = 1 +const _ITERATION = 2 +const _UNION = 3 + +/* Special subtypes of TRE_LITERAL. */ + +// C documentation +// +// /* A generic AST node. All AST nodes consist of this node on the top +// level with `obj' pointing to the actual content. */ +type Ttre_ast_node_t = struct { + Ftype1 Ttre_ast_type_t + Fobj uintptr + Fnullable int32 + Fsubmatch_id int32 + Fnum_submatches int32 + Fnum_tags int32 + Ffirstpos uintptr + Flastpos uintptr +} + +// C documentation +// +// /* A "literal" node. These are created for assertions, back references, +// tags, matching parameter settings, and all expressions that match one +// character. */ +type Ttre_literal_t = struct { + Fcode_min int64 + Fcode_max int64 + Fposition int32 + Fclass Ttre_ctype_t + Fneg_classes uintptr +} + +// C documentation +// +// /* A "catenation" node. These are created when two regexps are concatenated. +// If there are more than one subexpressions in sequence, the `left' part +// holds all but the last, and `right' part holds the last subexpression +// (catenation is left associative). */ +type Ttre_catenation_t = struct { + Fleft uintptr + Fright uintptr +} + +// C documentation +// +// /* An "iteration" node. These are created for the "*", "+", "?", and "{m,n}" +// operators. */ +type Ttre_iteration_t = struct { + Farg uintptr + Fmin int32 + Fmax int32 + F__ccgo16 uint8 +} + +// C documentation +// +// /* An "union" node. These are created for the "|" operator. */ +type Ttre_union_t = struct { + Fleft uintptr + Fright uintptr +} + +func _tre_ast_new_node(tls *TLS, mem Ttre_mem_t, type1 int32, obj uintptr) (r uintptr) { + var node uintptr + _ = node + node = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), int32(1), uint64(48)) + if !(node != 0) || !(obj != 0) { + return uintptr(0) + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj = obj + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 = type1 + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnullable = -int32(1) + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fsubmatch_id = -int32(1) + return node +} + +func _tre_ast_new_literal(tls *TLS, mem Ttre_mem_t, code_min int32, code_max int32, position int32) (r uintptr) { + var lit, node uintptr + _, _ = lit, node + lit = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), int32(1), uint64(40)) + node = _tre_ast_new_node(tls, mem, int32(_LITERAL), lit) + if !(node != 0) { + return uintptr(0) + } + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min = int64(code_min) + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max = int64(code_max) + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition = position + return node +} + +func _tre_ast_new_iter(tls *TLS, mem Ttre_mem_t, arg uintptr, min int32, max int32, minimal int32) (r uintptr) { + var iter, node uintptr + _, _ = iter, node + iter = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), int32(1), uint64(24)) + node = _tre_ast_new_node(tls, mem, int32(_ITERATION), iter) + if !(node != 0) { + return uintptr(0) + } + (*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg = arg + (*Ttre_iteration_t)(unsafe.Pointer(iter)).Fmin = min + (*Ttre_iteration_t)(unsafe.Pointer(iter)).Fmax = max + SetBitFieldPtr8Uint32(iter+16, Uint32FromInt32(minimal), 0, 0x1) + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_submatches = (*Ttre_ast_node_t)(unsafe.Pointer(arg)).Fnum_submatches + return node +} + +func _tre_ast_new_union(tls *TLS, mem Ttre_mem_t, left uintptr, right uintptr) (r uintptr) { + var node, un uintptr + _, _ = node, un + if !(left != 0) { + return right + } + un = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), int32(1), uint64(16)) + node = _tre_ast_new_node(tls, mem, int32(_UNION), un) + if !(node != 0) || !(right != 0) { + return uintptr(0) + } + (*Ttre_union_t)(unsafe.Pointer(un)).Fleft = left + (*Ttre_union_t)(unsafe.Pointer(un)).Fright = right + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_submatches = (*Ttre_ast_node_t)(unsafe.Pointer(left)).Fnum_submatches + (*Ttre_ast_node_t)(unsafe.Pointer(right)).Fnum_submatches + return node +} + +func _tre_ast_new_catenation(tls *TLS, mem Ttre_mem_t, left uintptr, right uintptr) (r uintptr) { + var cat, node uintptr + _, _ = cat, node + if !(left != 0) { + return right + } + cat = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), int32(1), uint64(16)) + node = _tre_ast_new_node(tls, mem, int32(_CATENATION), cat) + if !(node != 0) { + return uintptr(0) + } + (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft = left + (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright = right + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_submatches = (*Ttre_ast_node_t)(unsafe.Pointer(left)).Fnum_submatches + (*Ttre_ast_node_t)(unsafe.Pointer(right)).Fnum_submatches + return node +} + +/*********************************************************************** + from tre-stack.c and tre-stack.h +***********************************************************************/ + +type Ttre_stack_t = struct { + Fsize int32 + Fmax_size int32 + Fincrement int32 + Fptr int32 + Fstack uintptr +} + +/*********************************************************************** + from tre-stack.c and tre-stack.h +***********************************************************************/ + +type Ttre_stack_rec = Ttre_stack_t + +/* Just to save some typing. */ + +type Ttre_stack_item = struct { + Fint_value [0]int32 + Fvoidptr_value uintptr +} + +func _tre_stack_new(tls *TLS, size int32, max_size int32, increment int32) (r uintptr) { + var s uintptr + _ = s + s = Xmalloc(tls, uint64(24)) + if s != UintptrFromInt32(0) { + (*Ttre_stack_t)(unsafe.Pointer(s)).Fstack = Xmalloc(tls, uint64(8)*Uint64FromInt32(size)) + if (*Ttre_stack_t)(unsafe.Pointer(s)).Fstack == UintptrFromInt32(0) { + Xfree(tls, s) + return UintptrFromInt32(0) + } + (*Ttre_stack_t)(unsafe.Pointer(s)).Fsize = size + (*Ttre_stack_t)(unsafe.Pointer(s)).Fmax_size = max_size + (*Ttre_stack_t)(unsafe.Pointer(s)).Fincrement = increment + (*Ttre_stack_t)(unsafe.Pointer(s)).Fptr = 0 + } + return s +} + +func _tre_stack_destroy(tls *TLS, s uintptr) { + Xfree(tls, (*Ttre_stack_t)(unsafe.Pointer(s)).Fstack) + Xfree(tls, s) +} + +func _tre_stack_num_objects(tls *TLS, s uintptr) (r int32) { + return (*Ttre_stack_t)(unsafe.Pointer(s)).Fptr +} + +func _tre_stack_push(tls *TLS, s uintptr, value Ttre_stack_item) (r Treg_errcode_t) { + var new_buffer uintptr + var new_size int32 + _, _ = new_buffer, new_size + if (*Ttre_stack_t)(unsafe.Pointer(s)).Fptr < (*Ttre_stack_t)(unsafe.Pointer(s)).Fsize { + **(**Ttre_stack_item)(__ccgo_up((*Ttre_stack_t)(unsafe.Pointer(s)).Fstack + uintptr((*Ttre_stack_t)(unsafe.Pointer(s)).Fptr)*8)) = value + (*Ttre_stack_t)(unsafe.Pointer(s)).Fptr = (*Ttre_stack_t)(unsafe.Pointer(s)).Fptr + 1 + } else { + if (*Ttre_stack_t)(unsafe.Pointer(s)).Fsize >= (*Ttre_stack_t)(unsafe.Pointer(s)).Fmax_size { + return int32(REG_ESPACE) + } else { + new_size = (*Ttre_stack_t)(unsafe.Pointer(s)).Fsize + (*Ttre_stack_t)(unsafe.Pointer(s)).Fincrement + if new_size > (*Ttre_stack_t)(unsafe.Pointer(s)).Fmax_size { + new_size = (*Ttre_stack_t)(unsafe.Pointer(s)).Fmax_size + } + new_buffer = Xrealloc(tls, (*Ttre_stack_t)(unsafe.Pointer(s)).Fstack, uint64(8)*Uint64FromInt32(new_size)) + if new_buffer == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + (*Ttre_stack_t)(unsafe.Pointer(s)).Fsize = new_size + (*Ttre_stack_t)(unsafe.Pointer(s)).Fstack = new_buffer + _tre_stack_push(tls, s, value) + } + } + return REG_OK +} + +func _tre_stack_push_int(tls *TLS, s uintptr, value int32) (r Treg_errcode_t) { + var item Ttre_stack_item + _ = item + *(*int32)(unsafe.Pointer(&item)) = value + return _tre_stack_push(tls, s, item) +} + +func _tre_stack_push_voidptr(tls *TLS, s uintptr, value uintptr) (r Treg_errcode_t) { + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* item at bp+0 */ Ttre_stack_item + *(*uintptr)(unsafe.Pointer(bp)) = value + return _tre_stack_push(tls, s, **(**Ttre_stack_item)(__ccgo_up(bp))) +} + +func _tre_stack_pop_int(tls *TLS, s uintptr) (r int32) { + var v1 int32 + var v2 uintptr + _, _ = v1, v2 + v2 = s + 12 + *(*int32)(unsafe.Pointer(v2)) = *(*int32)(unsafe.Pointer(v2)) - 1 + v1 = *(*int32)(unsafe.Pointer(v2)) + return *(*int32)(unsafe.Pointer(&**(**Ttre_stack_item)(__ccgo_up((*Ttre_stack_t)(unsafe.Pointer(s)).Fstack + uintptr(v1)*8)))) +} + +func _tre_stack_pop_voidptr(tls *TLS, s uintptr) (r uintptr) { + var v1 int32 + var v2 uintptr + _, _ = v1, v2 + v2 = s + 12 + *(*int32)(unsafe.Pointer(v2)) = *(*int32)(unsafe.Pointer(v2)) - 1 + v1 = *(*int32)(unsafe.Pointer(v2)) + return *(*uintptr)(unsafe.Pointer((*Ttre_stack_t)(unsafe.Pointer(s)).Fstack + uintptr(v1)*8)) +} + +/*********************************************************************** + from tre-parse.c and tre-parse.h +***********************************************************************/ + +// C documentation +// +// /* Parse context. */ +type Ttre_parse_ctx_t = struct { + Fmem Ttre_mem_t + Fstack uintptr + Fn uintptr + Fs uintptr + Fstart uintptr + Fsubmatch_id int32 + Fposition int32 + Fmax_backref int32 + Fcflags int32 +} + +// C documentation +// +// /* Some macros for expanding \w, \s, etc. */ +var _tre_macros = [13]struct { + Fc uint8 + Fexpansion uintptr +}{ + 0: { + Fc: uint8('t'), + Fexpansion: __ccgo_ts + 1430, + }, + 1: { + Fc: uint8('n'), + Fexpansion: __ccgo_ts + 390, + }, + 2: { + Fc: uint8('r'), + Fexpansion: __ccgo_ts + 1432, + }, + 3: { + Fc: uint8('f'), + Fexpansion: __ccgo_ts + 1434, + }, + 4: { + Fc: uint8('a'), + Fexpansion: __ccgo_ts + 1436, + }, + 5: { + Fc: uint8('e'), + Fexpansion: __ccgo_ts + 1438, + }, + 6: { + Fc: uint8('w'), + Fexpansion: __ccgo_ts + 1440, + }, + 7: { + Fc: uint8('W'), + Fexpansion: __ccgo_ts + 1453, + }, + 8: { + Fc: uint8('s'), + Fexpansion: __ccgo_ts + 1467, + }, + 9: { + Fc: uint8('S'), + Fexpansion: __ccgo_ts + 1479, + }, + 10: { + Fc: uint8('d'), + Fexpansion: __ccgo_ts + 1492, + }, + 11: { + Fc: uint8('D'), + Fexpansion: __ccgo_ts + 1504, + }, + 12: {}, +} + +// C documentation +// +// /* Expands a macro delimited by `regex' and `regex_end' to `buf', which +// must have at least `len' items. Sets buf[0] to zero if the there +// is no match in `tre_macros'. */ +func _tre_expand_macro(tls *TLS, s uintptr) (r uintptr) { + var i int32 + _ = i + i = 0 + for { + if !(_tre_macros[i].Fc != 0 && Int32FromUint8(_tre_macros[i].Fc) != Int32FromUint8(**(**uint8)(__ccgo_up(s)))) { + break + } + goto _1 + _1: + ; + i = i + 1 + } + return _tre_macros[i].Fexpansion +} + +func _tre_compare_lit(tls *TLS, a uintptr, b uintptr) (r int32) { + var la, lb uintptr + _, _ = la, lb + la = a + lb = b + /* assumes the range of valid code_min is < INT_MAX */ + return int32((*Ttre_literal_t)(unsafe.Pointer(**(**uintptr)(__ccgo_up(la)))).Fcode_min - (*Ttre_literal_t)(unsafe.Pointer(**(**uintptr)(__ccgo_up(lb)))).Fcode_min) +} + +type Tliterals = struct { + Fmem Ttre_mem_t + Fa uintptr + Flen1 int32 + Fcap1 int32 +} + +func _tre_new_lit(tls *TLS, p uintptr) (r uintptr) { + var a, v2 uintptr + var v1 int32 + _, _, _ = a, v1, v2 + if (*Tliterals)(unsafe.Pointer(p)).Flen1 >= (*Tliterals)(unsafe.Pointer(p)).Fcap1 { + if (*Tliterals)(unsafe.Pointer(p)).Fcap1 >= Int32FromInt32(1)< max { + return int32(REG_ERANGE) + } + s = s + uintptr(len1) + } + } + if class != 0 && (*Tneg)(unsafe.Pointer(neg)).Fnegate != 0 { + if (*Tneg)(unsafe.Pointer(neg)).Flen1 >= int32(MAX_NEG_CLASSES) { + return int32(REG_ESPACE) + } + v6 = neg + 4 + v2 = *(*int32)(unsafe.Pointer(v6)) + *(*int32)(unsafe.Pointer(v6)) = *(*int32)(unsafe.Pointer(v6)) + 1 + **(**Ttre_ctype_t)(__ccgo_up(neg + 8 + uintptr(v2)*8)) = class + } else { + lit = _tre_new_lit(tls, ls) + if !(lit != 0) { + return int32(REG_ESPACE) + } + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min = int64(min) + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max = int64(max) + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fclass = class + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition = -int32(1) + /* Add opposite-case codepoints if REG_ICASE is present. + It seems that POSIX requires that bracket negation + should happen before case-folding, but most practical + implementations do it the other way around. Changing + the order would need efficient representation of + case-fold ranges and bracket range sets even with + simple patterns so this is ok for now. */ + if (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fcflags&int32(REG_ICASE) != 0 && !(class != 0) { + if _add_icase_literals(tls, ls, min, max) != 0 { + return int32(REG_ESPACE) + } + } + } + goto _1 + _1: + } + return r +} + +func _parse_bracket(tls *TLS, ctx uintptr, s uintptr) (r Treg_errcode_t) { + bp := tls.Alloc(544) + defer tls.Free(544) + var err Treg_errcode_t + var i, max, min, negmax, negmin, v1 int32 + var lit, n, nc, node uintptr + var _ /* ls at bp+0 */ Tliterals + var _ /* neg at bp+24 */ Tneg + _, _, _, _, _, _, _, _, _, _, _ = err, i, lit, max, min, n, nc, negmax, negmin, node, v1 + node = uintptr(0) + nc = uintptr(0) + (**(**Tliterals)(__ccgo_up(bp))).Fmem = (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem + (**(**Tliterals)(__ccgo_up(bp))).Flen1 = 0 + (**(**Tliterals)(__ccgo_up(bp))).Fcap1 = int32(32) + (**(**Tliterals)(__ccgo_up(bp))).Fa = Xmalloc(tls, Uint64FromInt32((**(**Tliterals)(__ccgo_up(bp))).Fcap1)*uint64(8)) + if !((**(**Tliterals)(__ccgo_up(bp))).Fa != 0) { + return int32(REG_ESPACE) + } + (**(**Tneg)(__ccgo_up(bp + 24))).Flen1 = 0 + (**(**Tneg)(__ccgo_up(bp + 24))).Fnegate = BoolInt32(Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('^')) + if (**(**Tneg)(__ccgo_up(bp + 24))).Fnegate != 0 { + s = s + 1 + } + err = _parse_bracket_terms(tls, ctx, s, bp, bp+24) + if err != REG_OK { + goto parse_bracket_done + } + if (**(**Tneg)(__ccgo_up(bp + 24))).Fnegate != 0 { + /* + * With REG_NEWLINE, POSIX requires that newlines are not matched by + * any form of a non-matching list. + */ + if (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fcflags&int32(REG_NEWLINE) != 0 { + lit = _tre_new_lit(tls, bp) + if !(lit != 0) { + err = int32(REG_ESPACE) + goto parse_bracket_done + } + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min = int64('\n') + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max = int64('\n') + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition = -int32(1) + } + /* Sort the array if we need to negate it. */ + Xqsort(tls, (**(**Tliterals)(__ccgo_up(bp))).Fa, Uint64FromInt32((**(**Tliterals)(__ccgo_up(bp))).Flen1), uint64(8), __ccgo_fp(_tre_compare_lit)) + /* extra lit for the last negated range */ + lit = _tre_new_lit(tls, bp) + if !(lit != 0) { + err = int32(REG_ESPACE) + goto parse_bracket_done + } + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min = int64(Int32FromInt32(TRE_CHAR_MAX) + Int32FromInt32(1)) + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max = int64(Int32FromInt32(TRE_CHAR_MAX) + Int32FromInt32(1)) + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition = -int32(1) + /* negated classes */ + if (**(**Tneg)(__ccgo_up(bp + 24))).Flen1 != 0 { + nc = X__tre_mem_alloc_impl(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, 0, UintptrFromInt32(0), 0, Uint64FromInt32((**(**Tneg)(__ccgo_up(bp + 24))).Flen1+Int32FromInt32(1))*uint64(8)) + if !(nc != 0) { + err = int32(REG_ESPACE) + goto parse_bracket_done + } + Xmemcpy(tls, nc, bp+24+8, Uint64FromInt32((**(**Tneg)(__ccgo_up(bp + 24))).Flen1)*uint64(8)) + **(**Ttre_ctype_t)(__ccgo_up(nc + uintptr((**(**Tneg)(__ccgo_up(bp + 24))).Flen1)*8)) = uint64(0) + } + } + /* Build a union of the items in the array, negated if necessary. */ + v1 = Int32FromInt32(0) + negmin = v1 + negmax = v1 + i = 0 + for { + if !(i < (**(**Tliterals)(__ccgo_up(bp))).Flen1) { + break + } + lit = **(**uintptr)(__ccgo_up((**(**Tliterals)(__ccgo_up(bp))).Fa + uintptr(i)*8)) + min = int32((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min) + max = int32((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max) + if (**(**Tneg)(__ccgo_up(bp + 24))).Fnegate != 0 { + if min <= negmin { + /* Overlap. */ + if max+int32(1) >= negmin { + v1 = max + int32(1) + } else { + v1 = negmin + } + negmin = v1 + goto _2 + } + negmax = min - int32(1) + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min = int64(negmin) + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max = int64(negmax) + negmin = max + int32(1) + } + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition = (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fposition + (*Ttre_literal_t)(unsafe.Pointer(lit)).Fneg_classes = nc + n = _tre_ast_new_node(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, int32(_LITERAL), lit) + node = _tre_ast_new_union(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, node, n) + if !(node != 0) { + err = int32(REG_ESPACE) + break + } + goto _2 + _2: + ; + i = i + 1 + } + goto parse_bracket_done +parse_bracket_done: + ; + Xfree(tls, (**(**Tliterals)(__ccgo_up(bp))).Fa) + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fposition = (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fposition + 1 + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fn = node + return err +} + +func _parse_dup_count(tls *TLS, s uintptr, n uintptr) (r uintptr) { + **(**int32)(__ccgo_up(n)) = -int32(1) + if !(BoolInt32(uint32(**(**uint8)(__ccgo_up(s)))-Uint32FromUint8('0') < Uint32FromInt32(10)) != 0) { + return s + } + **(**int32)(__ccgo_up(n)) = 0 + for { + **(**int32)(__ccgo_up(n)) = int32(10)***(**int32)(__ccgo_up(n)) + (Int32FromUint8(**(**uint8)(__ccgo_up(s))) - int32('0')) + s = s + 1 + if !(BoolInt32(uint32(**(**uint8)(__ccgo_up(s)))-Uint32FromUint8('0') < Uint32FromInt32(10)) != 0) || **(**int32)(__ccgo_up(n)) > int32(RE_DUP_MAX) { + break + } + goto _1 + _1: + } + return s +} + +func _parse_dup(tls *TLS, s uintptr, ere int32, pmin uintptr, pmax uintptr) (r uintptr) { + bp := tls.Alloc(16) + defer tls.Free(16) + var v1, v4 uintptr + var v2, v3, v5 bool + var _ /* max at bp+4 */ int32 + var _ /* min at bp+0 */ int32 + _, _, _, _, _ = v1, v2, v3, v4, v5 + s = _parse_dup_count(tls, s, bp) + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32(',') { + s = _parse_dup_count(tls, s+uintptr(1), bp+4) + } else { + **(**int32)(__ccgo_up(bp + 4)) = **(**int32)(__ccgo_up(bp)) + } + if v3 = **(**int32)(__ccgo_up(bp + 4)) < **(**int32)(__ccgo_up(bp)) && **(**int32)(__ccgo_up(bp + 4)) >= 0 || **(**int32)(__ccgo_up(bp + 4)) > int32(RE_DUP_MAX) || **(**int32)(__ccgo_up(bp)) > int32(RE_DUP_MAX) || **(**int32)(__ccgo_up(bp)) < 0; !v3 { + if v2 = !(ere != 0); v2 { + v1 = s + s = s + 1 + } + } + if v5 = v3 || v2 && Int32FromUint8(**(**uint8)(__ccgo_up(v1))) != int32('\\'); !v5 { + v4 = s + s = s + 1 + } + if v5 || Int32FromUint8(**(**uint8)(__ccgo_up(v4))) != int32('}') { + return uintptr(0) + } + **(**int32)(__ccgo_up(pmin)) = **(**int32)(__ccgo_up(bp)) + **(**int32)(__ccgo_up(pmax)) = **(**int32)(__ccgo_up(bp + 4)) + return s +} + +func _hexval1(tls *TLS, c uint32) (r int32) { + if c-uint32('0') < uint32(10) { + return Int32FromUint32(c - uint32('0')) + } + c = c | uint32(32) + if c-uint32('a') < uint32(6) { + return Int32FromUint32(c - uint32('a') + uint32(10)) + } + return -int32(1) +} + +func _marksub(tls *TLS, ctx uintptr, node uintptr, subid int32) (r Treg_errcode_t) { + var n uintptr + _ = n + if (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fsubmatch_id >= 0 { + n = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(1), -int32(1), -int32(1)) + if !(n != 0) { + return int32(REG_ESPACE) + } + n = _tre_ast_new_catenation(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, n, node) + if !(n != 0) { + return int32(REG_ESPACE) + } + (*Ttre_ast_node_t)(unsafe.Pointer(n)).Fnum_submatches = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_submatches + node = n + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fsubmatch_id = subid + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_submatches = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_submatches + 1 + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fn = node + return REG_OK +} + +/* +BRE grammar: +Regex = Branch | '^' | '$' | '^$' | '^' Branch | Branch '$' | '^' Branch '$' +Branch = Atom | Branch Atom +Atom = char | quoted_char | '.' | Bracket | Atom Dup | '\(' Branch '\)' | back_ref +Dup = '*' | '\{' Count '\}' | '\{' Count ',\}' | '\{' Count ',' Count '\}' + +(leading ^ and trailing $ in a sub expr may be an anchor or literal as well) + +ERE grammar: +Regex = Branch | Regex '|' Branch +Branch = Atom | Branch Atom +Atom = char | quoted_char | '.' | Bracket | Atom Dup | '(' Regex ')' | '^' | '$' +Dup = '*' | '+' | '?' | '{' Count '}' | '{' Count ',}' | '{' Count ',' Count '}' + +(a*+?, ^*, $+, \X, {, (|a) are unspecified) +*/ + +func _parse_atom(tls *TLS, ctx uintptr, s uintptr) (r Treg_errcode_t) { + bp := tls.Alloc(16) + defer tls.Free(16) + var c, ere, i, len1, v, val, v16 int32 + var err Treg_errcode_t + var node, p, tmp1, tmp11, tmp2, tmp21, v14 uintptr + var _ /* wc at bp+0 */ Twchar_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = c, ere, err, i, len1, node, p, tmp1, tmp11, tmp2, tmp21, v, val, v14, v16 + ere = (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fcflags & int32(REG_EXTENDED) + switch Int32FromUint8(**(**uint8)(__ccgo_up(s))) { + case int32('['): + goto _1 + case int32('\\'): + goto _2 + case int32('.'): + goto _3 + case int32('^'): + goto _4 + case int32('$'): + goto _5 + case int32('?'): + goto _6 + case int32('+'): + goto _7 + case int32('{'): + goto _8 + case int32('*'): + goto _9 + case int32('|'): + goto _10 + case 0: + goto _11 + default: + goto _12 + } + goto _13 +_1: + ; + return _parse_bracket(tls, ctx, s+uintptr(1)) +_2: + ; + p = _tre_expand_macro(tls, s+uintptr(1)) + if p != 0 { + /* assume \X expansion is a single atom */ + err = _parse_atom(tls, ctx, p) + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fs = s + uintptr(2) + return err + } + /* extensions: \b, \B, \<, \>, \xHH \x{HHHH} */ + s = s + 1 + v14 = s + switch Int32FromUint8(**(**uint8)(__ccgo_up(v14))) { + case 0: + return int32(REG_EESCAPE) + case int32('b'): + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(2), int32(ASSERT_AT_WB), -int32(1)) + case int32('B'): + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(2), int32(ASSERT_AT_WB_NEG), -int32(1)) + case int32('<'): + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(2), int32(ASSERT_AT_BOW), -int32(1)) + case int32('>'): + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(2), int32(ASSERT_AT_EOW), -int32(1)) + case int32('x'): + s = s + 1 + v = 0 + len1 = int32(2) + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('{') { + len1 = int32(8) + s = s + 1 + } + i = 0 + for { + if !(i < len1 && v < int32(0x110000)) { + break + } + c = _hexval1(tls, uint32(**(**uint8)(__ccgo_up(s + uintptr(i))))) + if c < 0 { + break + } + v = int32(16)*v + c + goto _15 + _15: + ; + i = i + 1 + } + s = s + uintptr(i) + if len1 == int32(8) { + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) != int32('}') { + return int32(REG_EBRACE) + } + s = s + 1 + } + v14 = ctx + 44 + v16 = *(*int32)(unsafe.Pointer(v14)) + *(*int32)(unsafe.Pointer(v14)) = *(*int32)(unsafe.Pointer(v14)) + 1 + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, v, v, v16) + s = s - 1 + case int32('{'): + fallthrough + case int32('+'): + fallthrough + case int32('?'): + /* extension: treat \+, \? as repetitions in BRE */ + /* reject repetitions after empty expression in BRE */ + if !(ere != 0) { + return int32(REG_BADRPT) + } + fallthrough + case int32('|'): + /* extension: treat \| as alternation in BRE */ + if !(ere != 0) { + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(1), -int32(1), -int32(1)) + s = s - 1 + goto end + } + /* fallthrough */ + fallthrough + default: + if !(ere != 0) && uint32(**(**uint8)(__ccgo_up(s)))-uint32('1') < uint32(9) { + /* back reference */ + val = Int32FromUint8(**(**uint8)(__ccgo_up(s))) - int32('0') + v14 = ctx + 44 + v16 = *(*int32)(unsafe.Pointer(v14)) + *(*int32)(unsafe.Pointer(v14)) = *(*int32)(unsafe.Pointer(v14)) + 1 + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(4), val, v16) + if val >= (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmax_backref { + v16 = val + } else { + v16 = (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmax_backref + } + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmax_backref = v16 + } else { + /* extension: accept unknown escaped char + as a literal */ + goto parse_literal + } + } + s = s + 1 + goto _13 +_3: + ; + if (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fcflags&int32(REG_NEWLINE) != 0 { + v14 = ctx + 44 + v16 = *(*int32)(unsafe.Pointer(v14)) + *(*int32)(unsafe.Pointer(v14)) = *(*int32)(unsafe.Pointer(v14)) + 1 + tmp1 = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, 0, Int32FromUint8('\n')-Int32FromInt32(1), v16) + v14 = ctx + 44 + v16 = *(*int32)(unsafe.Pointer(v14)) + *(*int32)(unsafe.Pointer(v14)) = *(*int32)(unsafe.Pointer(v14)) + 1 + tmp2 = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, Int32FromUint8('\n')+Int32FromInt32(1), int32(TRE_CHAR_MAX), v16) + if tmp1 != 0 && tmp2 != 0 { + node = _tre_ast_new_union(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, tmp1, tmp2) + } else { + node = uintptr(0) + } + } else { + v14 = ctx + 44 + v16 = *(*int32)(unsafe.Pointer(v14)) + *(*int32)(unsafe.Pointer(v14)) = *(*int32)(unsafe.Pointer(v14)) + 1 + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, 0, int32(TRE_CHAR_MAX), v16) + } + s = s + 1 + goto _13 +_4: + ; + /* '^' has a special meaning everywhere in EREs, and at beginning of BRE. */ + if !(ere != 0) && s != (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fstart { + goto parse_literal + } + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(2), int32(ASSERT_AT_BOL), -int32(1)) + s = s + 1 + goto _13 +_5: + ; + /* '$' is special everywhere in EREs, and at the end of a BRE subexpression. */ + if !(ere != 0) && **(**uint8)(__ccgo_up(s + 1)) != 0 && (Int32FromUint8(**(**uint8)(__ccgo_up(s + 1))) != int32('\\') || Int32FromUint8(**(**uint8)(__ccgo_up(s + 2))) != int32(')') && Int32FromUint8(**(**uint8)(__ccgo_up(s + 2))) != int32('|')) { + goto parse_literal + } + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(2), int32(ASSERT_AT_EOL), -int32(1)) + s = s + 1 + goto _13 +_9: + ; +_8: + ; +_7: + ; +_6: + ; + /* reject repetitions after empty expression in ERE */ + if ere != 0 { + return int32(REG_BADRPT) + } +_10: + ; + if !(ere != 0) { + goto parse_literal + } +_11: + ; + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(1), -int32(1), -int32(1)) + goto _13 +_12: + ; + goto parse_literal +parse_literal: + ; + len1 = Xmbtowc(tls, bp, s, Uint64FromInt32(-Int32FromInt32(1))) + if len1 < 0 { + return int32(REG_BADPAT) + } + if (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fcflags&int32(REG_ICASE) != 0 && (Xiswupper(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp)))) != 0 || Xiswlower(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp)))) != 0) { + /* multiple opposite case characters are not supported */ + tmp11 = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, Int32FromUint32(Xtowupper(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp))))), Int32FromUint32(Xtowupper(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp))))), (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fposition) + tmp21 = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, Int32FromUint32(Xtowlower(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp))))), Int32FromUint32(Xtowlower(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp))))), (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fposition) + if tmp11 != 0 && tmp21 != 0 { + node = _tre_ast_new_union(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, tmp11, tmp21) + } else { + node = uintptr(0) + } + } else { + node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, **(**Twchar_t)(__ccgo_up(bp)), **(**Twchar_t)(__ccgo_up(bp)), (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fposition) + } + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fposition = (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fposition + 1 + s = s + uintptr(len1) + goto _13 +_13: + ; + goto end +end: + ; + if !(node != 0) { + return int32(REG_ESPACE) + } + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fn = node + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fs = s + return REG_OK +} + +func _tre_parse(tls *TLS, ctx uintptr) (r Treg_errcode_t) { + bp := tls.Alloc(16) + defer tls.Free(16) + var c, depth, ere, subid, v2 int32 + var err, v1 Treg_errcode_t + var nbranch, nunion, s, stack, v8 uintptr + var _ /* max at bp+4 */ int32 + var _ /* min at bp+0 */ int32 + _, _, _, _, _, _, _, _, _, _, _, _ = c, depth, ere, err, nbranch, nunion, s, stack, subid, v1, v2, v8 + nbranch = uintptr(0) + nunion = uintptr(0) + ere = (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fcflags & int32(REG_EXTENDED) + s = (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fstart + subid = 0 + depth = 0 + stack = (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fstack + v2 = subid + subid = subid + 1 + v1 = _tre_stack_push_int(tls, stack, v2) + err = v1 + if v1 != REG_OK { + return err + } + for { + if !(ere != 0) && Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('\\') && Int32FromUint8(**(**uint8)(__ccgo_up(s + 1))) == int32('(') || ere != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('(') { + v1 = _tre_stack_push_voidptr(tls, stack, nunion) + err = v1 + if v1 != REG_OK { + return err + } + v1 = _tre_stack_push_voidptr(tls, stack, nbranch) + err = v1 + if v1 != REG_OK { + return err + } + v2 = subid + subid = subid + 1 + v1 = _tre_stack_push_int(tls, stack, v2) + err = v1 + if v1 != REG_OK { + return err + } + s = s + 1 + if !(ere != 0) { + s = s + 1 + } + depth = depth + 1 + v8 = UintptrFromInt32(0) + nunion = v8 + nbranch = v8 + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fstart = s + goto _3 + } + if !(ere != 0) && Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('\\') && Int32FromUint8(**(**uint8)(__ccgo_up(s + 1))) == int32(')') || ere != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32(')') && depth != 0 { + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fn = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(1), -int32(1), -int32(1)) + if !((*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fn != 0) { + return int32(REG_ESPACE) + } + } else { + err = _parse_atom(tls, ctx, s) + if err != REG_OK { + return err + } + s = (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fs + } + goto parse_iter + parse_iter: + ; + for { + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) != int32('\\') && Int32FromUint8(**(**uint8)(__ccgo_up(s))) != int32('*') { + if !(ere != 0) { + break + } + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) != int32('+') && Int32FromUint8(**(**uint8)(__ccgo_up(s))) != int32('?') && Int32FromUint8(**(**uint8)(__ccgo_up(s))) != int32('{') { + break + } + } + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('\\') && ere != 0 { + break + } + /* extension: treat \+, \? as repetitions in BRE */ + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('\\') && Int32FromUint8(**(**uint8)(__ccgo_up(s + 1))) != int32('+') && Int32FromUint8(**(**uint8)(__ccgo_up(s + 1))) != int32('?') && Int32FromUint8(**(**uint8)(__ccgo_up(s + 1))) != int32('{') { + break + } + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('\\') { + s = s + 1 + } + /* handle ^* at the start of a BRE. */ + if !(ere != 0) && s == (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fstart+uintptr(1) && Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(-Int32FromInt32(1))))) == int32('^') { + break + } + /* extension: multiple consecutive *+?{,} is unspecified, + but (a+)+ has to be supported so accepting a++ makes + sense, note however that the RE_DUP_MAX limit can be + circumvented: (a{255}){255} uses a lot of memory.. */ + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('{') { + s = _parse_dup(tls, s+uintptr(1), ere, bp, bp+4) + if !(s != 0) { + return int32(REG_BADBR) + } + } else { + **(**int32)(__ccgo_up(bp)) = 0 + **(**int32)(__ccgo_up(bp + 4)) = -int32(1) + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('+') { + **(**int32)(__ccgo_up(bp)) = int32(1) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('?') { + **(**int32)(__ccgo_up(bp + 4)) = int32(1) + } + s = s + 1 + } + if **(**int32)(__ccgo_up(bp + 4)) == 0 { + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fn = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(1), -int32(1), -int32(1)) + } else { + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fn = _tre_ast_new_iter(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fn, **(**int32)(__ccgo_up(bp)), **(**int32)(__ccgo_up(bp + 4)), 0) + } + if !((*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fn != 0) { + return int32(REG_ESPACE) + } + goto _9 + _9: + } + nbranch = _tre_ast_new_catenation(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, nbranch, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fn) + if ere != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('|') || ere != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32(')') && depth != 0 || !(ere != 0) && Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('\\') && Int32FromUint8(**(**uint8)(__ccgo_up(s + 1))) == int32(')') || !(ere != 0) && Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('\\') && Int32FromUint8(**(**uint8)(__ccgo_up(s + 1))) == int32('|') || !(**(**uint8)(__ccgo_up(s)) != 0) { + /* extension: empty branch is unspecified (), (|a), (a|) + here they are not rejected but match on empty string */ + c = Int32FromUint8(**(**uint8)(__ccgo_up(s))) + nunion = _tre_ast_new_union(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, nunion, nbranch) + nbranch = uintptr(0) + if c == int32('\\') && Int32FromUint8(**(**uint8)(__ccgo_up(s + 1))) == int32('|') { + s = s + uintptr(2) + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fstart = s + } else { + if c == int32('|') { + s = s + 1 + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fstart = s + } else { + if c == int32('\\') { + if !(depth != 0) { + return int32(REG_EPAREN) + } + s = s + uintptr(2) + } else { + if c == int32(')') { + s = s + 1 + } + } + depth = depth - 1 + err = _marksub(tls, ctx, nunion, _tre_stack_pop_int(tls, stack)) + if err != REG_OK { + return err + } + if !(c != 0) && depth < 0 { + (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fsubmatch_id = subid + return REG_OK + } + if !(c != 0) || depth < 0 { + return int32(REG_EPAREN) + } + nbranch = _tre_stack_pop_voidptr(tls, stack) + nunion = _tre_stack_pop_voidptr(tls, stack) + goto parse_iter + } + } + } + goto _3 + _3: + } + return r +} + +/*********************************************************************** + from tre-compile.c +***********************************************************************/ + +/* + TODO: + - Fix tre_ast_to_tnfa() to recurse using a stack instead of recursive + function calls. +*/ + +/* + Algorithms to setup tags so that submatch addressing can be done. +*/ + +// C documentation +// +// /* Inserts a catenation node to the root of the tree given in `node'. +// As the left child a new tag with number `tag_id' to `node' is added, +// and the right child is the old root. */ +func _tre_add_tag_left(tls *TLS, mem Ttre_mem_t, node uintptr, tag_id int32) (r Treg_errcode_t) { + var c uintptr + _ = c + c = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint64(16)) + if c == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + (*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft = _tre_ast_new_literal(tls, mem, -int32(3), tag_id, -int32(1)) + if (*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + (*Ttre_catenation_t)(unsafe.Pointer(c)).Fright = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint64(48)) + if (*Ttre_catenation_t)(unsafe.Pointer(c)).Fright == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fright)).Fobj = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fright)).Ftype1 = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fright)).Fnullable = -int32(1) + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fright)).Fsubmatch_id = -int32(1) + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fright)).Ffirstpos = UintptrFromInt32(0) + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fright)).Flastpos = UintptrFromInt32(0) + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fright)).Fnum_tags = 0 + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fright)).Fnum_submatches = 0 + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj = c + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 = int32(_CATENATION) + return REG_OK +} + +// C documentation +// +// /* Inserts a catenation node to the root of the tree given in `node'. +// As the right child a new tag with number `tag_id' to `node' is added, +// and the left child is the old root. */ +func _tre_add_tag_right(tls *TLS, mem Ttre_mem_t, node uintptr, tag_id int32) (r Treg_errcode_t) { + var c uintptr + _ = c + c = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint64(16)) + if c == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + (*Ttre_catenation_t)(unsafe.Pointer(c)).Fright = _tre_ast_new_literal(tls, mem, -int32(3), tag_id, -int32(1)) + if (*Ttre_catenation_t)(unsafe.Pointer(c)).Fright == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + (*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint64(48)) + if (*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft)).Fobj = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft)).Ftype1 = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft)).Fnullable = -int32(1) + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft)).Fsubmatch_id = -int32(1) + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft)).Ffirstpos = UintptrFromInt32(0) + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft)).Flastpos = UintptrFromInt32(0) + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft)).Fnum_tags = 0 + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(c)).Fleft)).Fnum_submatches = 0 + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj = c + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 = int32(_CATENATION) + return REG_OK +} + +type Ttre_addtags_symbol_t = int32 + +const _ADDTAGS_RECURSE = 0 +const _ADDTAGS_AFTER_ITERATION = 1 +const _ADDTAGS_AFTER_UNION_LEFT = 2 +const _ADDTAGS_AFTER_UNION_RIGHT = 3 +const _ADDTAGS_AFTER_CAT_LEFT = 4 +const _ADDTAGS_AFTER_CAT_RIGHT = 5 +const _ADDTAGS_SET_SUBMATCH_END = 6 + +type Ttre_tag_states_t = struct { + Ftag int32 + Fnext_tag int32 +} + +// C documentation +// +// /* Go through `regset' and set submatch data for submatches that are +// using this tag. */ +func _tre_purge_regset(tls *TLS, regset uintptr, tnfa uintptr, tag int32) { + var i, id, start int32 + _, _, _ = i, id, start + i = 0 + for { + if !(**(**int32)(__ccgo_up(regset + uintptr(i)*4)) >= 0) { + break + } + id = **(**int32)(__ccgo_up(regset + uintptr(i)*4)) / int32(2) + start = BoolInt32(!(**(**int32)(__ccgo_up(regset + uintptr(i)*4))%Int32FromInt32(2) != 0)) + if start != 0 { + (**(**Ttre_submatch_data_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fsubmatch_data + uintptr(id)*16))).Fso_tag = tag + } else { + (**(**Ttre_submatch_data_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fsubmatch_data + uintptr(id)*16))).Feo_tag = tag + } + goto _1 + _1: + ; + i = i + 1 + } + **(**int32)(__ccgo_up(regset)) = -int32(1) +} + +// C documentation +// +// /* Adds tags to appropriate locations in the parse tree in `tree', so that +// subexpressions marked for submatch addressing can be traced. */ +func _tre_add_tags(tls *TLS, mem Ttre_mem_t, stack uintptr, tree uintptr, tnfa uintptr) (r Treg_errcode_t) { + var added_tags, bottom, enter_tag, first_pass, i1, i2, i3, i4, i5, i6, i7, id, id1, left_tag, minimal, minimal_tag, new_tag, next_tag, num_minimals, num_tags, reserved_tag, right_tag, tag, tag_left, tag_right, v22 int32 + var cat, iter, left, left1, left2, lit, node, orig_regset, p, parents, regset, right, right1, right2, saved_states, uni uintptr + var direction Ttre_tag_direction_t + var i uint32 + var status Treg_errcode_t + var symbol Ttre_addtags_symbol_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = added_tags, bottom, cat, direction, enter_tag, first_pass, i, i1, i2, i3, i4, i5, i6, i7, id, id1, iter, left, left1, left2, left_tag, lit, minimal, minimal_tag, new_tag, next_tag, node, num_minimals, num_tags, orig_regset, p, parents, regset, reserved_tag, right, right1, right2, right_tag, saved_states, status, symbol, tag, tag_left, tag_right, uni, v22 + status = REG_OK + node = tree /* Tree node we are currently looking at. */ + bottom = _tre_stack_num_objects(tls, stack) + /* True for first pass (counting number of needed tags) */ + first_pass = BoolInt32(mem == UintptrFromInt32(0) || tnfa == UintptrFromInt32(0)) + num_tags = 0 /* Total number of tags. */ + num_minimals = 0 /* Number of special minimal tags. */ + tag = 0 /* The tag that is to be added next. */ + next_tag = int32(1) /* Stack of submatches the current submatch is + contained in. */ + minimal_tag = -int32(1) + direction = int32(_TRE_TAG_MINIMIZE) + if !(first_pass != 0) { + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fend_tag = 0 + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags)) = -int32(1) + } + regset = Xmalloc(tls, uint64(4)*uint64(((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_submatches+Uint32FromInt32(1))*Uint32FromInt32(2))) + if regset == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + **(**int32)(__ccgo_up(regset)) = -int32(1) + orig_regset = regset + parents = Xmalloc(tls, uint64(4)*uint64((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_submatches+Uint32FromInt32(1))) + if parents == UintptrFromInt32(0) { + Xfree(tls, regset) + return int32(REG_ESPACE) + } + **(**int32)(__ccgo_up(parents)) = -int32(1) + saved_states = Xmalloc(tls, uint64(8)*uint64((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_submatches+Uint32FromInt32(1))) + if saved_states == UintptrFromInt32(0) { + Xfree(tls, regset) + Xfree(tls, parents) + return int32(REG_ESPACE) + } else { + i = uint32(0) + for { + if !(i <= (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_submatches) { + break + } + (**(**Ttre_tag_states_t)(__ccgo_up(saved_states + uintptr(i)*8))).Ftag = -int32(1) + goto _1 + _1: + ; + i = i + 1 + } + } + status = _tre_stack_push_voidptr(tls, stack, node) + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_RECURSE)) + for _tre_stack_num_objects(tls, stack) > bottom { + if status != REG_OK { + break + } + symbol = _tre_stack_pop_int(tls, stack) + switch symbol { + case int32(_ADDTAGS_SET_SUBMATCH_END): + goto _2 + case int32(_ADDTAGS_RECURSE): + goto _3 + case int32(_ADDTAGS_AFTER_ITERATION): + goto _4 + case int32(_ADDTAGS_AFTER_CAT_LEFT): + goto _5 + case int32(_ADDTAGS_AFTER_CAT_RIGHT): + goto _6 + case int32(_ADDTAGS_AFTER_UNION_LEFT): + goto _7 + case int32(_ADDTAGS_AFTER_UNION_RIGHT): + goto _8 + default: + goto _9 + } + goto _10 + _2: + ; + id = _tre_stack_pop_int(tls, stack) + /* Add end of this submatch to regset. */ + i1 = 0 + for { + if !(**(**int32)(__ccgo_up(regset + uintptr(i1)*4)) >= 0) { + break + } + goto _11 + _11: + ; + i1 = i1 + 1 + } + **(**int32)(__ccgo_up(regset + uintptr(i1)*4)) = id*int32(2) + int32(1) + **(**int32)(__ccgo_up(regset + uintptr(i1+int32(1))*4)) = -int32(1) + /* Pop this submatch from the parents stack. */ + i1 = 0 + for { + if !(**(**int32)(__ccgo_up(parents + uintptr(i1)*4)) >= 0) { + break + } + goto _12 + _12: + ; + i1 = i1 + 1 + } + **(**int32)(__ccgo_up(parents + uintptr(i1-int32(1))*4)) = -int32(1) + goto _10 + _3: + ; + node = _tre_stack_pop_voidptr(tls, stack) + if (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fsubmatch_id >= 0 { + id1 = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fsubmatch_id + /* Add start of this submatch to regset. */ + i2 = 0 + for { + if !(**(**int32)(__ccgo_up(regset + uintptr(i2)*4)) >= 0) { + break + } + goto _13 + _13: + ; + i2 = i2 + 1 + } + **(**int32)(__ccgo_up(regset + uintptr(i2)*4)) = id1 * int32(2) + **(**int32)(__ccgo_up(regset + uintptr(i2+int32(1))*4)) = -int32(1) + if !(first_pass != 0) { + i2 = 0 + for { + if !(**(**int32)(__ccgo_up(parents + uintptr(i2)*4)) >= 0) { + break + } + goto _14 + _14: + ; + i2 = i2 + 1 + } + (**(**Ttre_submatch_data_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fsubmatch_data + uintptr(id1)*16))).Fparents = UintptrFromInt32(0) + if i2 > 0 { + p = Xmalloc(tls, uint64(4)*Uint64FromInt32(i2+Int32FromInt32(1))) + if p == UintptrFromInt32(0) { + status = int32(REG_ESPACE) + goto _10 + } + (**(**Ttre_submatch_data_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fsubmatch_data + uintptr(id1)*16))).Fparents = p + i2 = 0 + for { + if !(**(**int32)(__ccgo_up(parents + uintptr(i2)*4)) >= 0) { + break + } + **(**int32)(__ccgo_up(p + uintptr(i2)*4)) = **(**int32)(__ccgo_up(parents + uintptr(i2)*4)) + goto _15 + _15: + ; + i2 = i2 + 1 + } + **(**int32)(__ccgo_up(p + uintptr(i2)*4)) = -int32(1) + } + } + /* Add end of this submatch to regset after processing this + node. */ + status = _tre_stack_push_int(tls, stack, (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fsubmatch_id) + if status != REG_OK { + goto _10 + } + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_SET_SUBMATCH_END)) + if status != REG_OK { + goto _10 + } + } + switch (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 { + case int32(_LITERAL): + lit = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + if !((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min < Int64FromInt32(0)) || (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min == int64(-int32(4)) { + if **(**int32)(__ccgo_up(regset)) >= 0 { + /* Regset is not empty, so add a tag before the + literal or backref. */ + if !(first_pass != 0) { + status = _tre_add_tag_left(tls, mem, node, tag) + **(**Ttre_tag_direction_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions + uintptr(tag)*4)) = direction + if minimal_tag >= 0 { + i3 = 0 + for { + if !(**(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i3)*4)) >= 0) { + break + } + goto _16 + _16: + ; + i3 = i3 + 1 + } + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i3)*4)) = tag + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i3+int32(1))*4)) = minimal_tag + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i3+int32(2))*4)) = -int32(1) + minimal_tag = -int32(1) + num_minimals = num_minimals + 1 + } + _tre_purge_regset(tls, regset, tnfa, tag) + } else { + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_tags = int32(1) + } + **(**int32)(__ccgo_up(regset)) = -int32(1) + tag = next_tag + num_tags = num_tags + 1 + next_tag = next_tag + 1 + } + } else { + } + case int32(_CATENATION): + cat = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + left = (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft + right = (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright + reserved_tag = -int32(1) + /* After processing right child. */ + status = _tre_stack_push_voidptr(tls, stack, node) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_AFTER_CAT_RIGHT)) + if status != REG_OK { + break + } + /* Process right child. */ + status = _tre_stack_push_voidptr(tls, stack, right) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_RECURSE)) + if status != REG_OK { + break + } + /* After processing left child. */ + status = _tre_stack_push_int(tls, stack, next_tag+(*Ttre_ast_node_t)(unsafe.Pointer(left)).Fnum_tags) + if status != REG_OK { + break + } + if (*Ttre_ast_node_t)(unsafe.Pointer(left)).Fnum_tags > 0 && (*Ttre_ast_node_t)(unsafe.Pointer(right)).Fnum_tags > 0 { + /* Reserve the next tag to the right child. */ + reserved_tag = next_tag + next_tag = next_tag + 1 + } + status = _tre_stack_push_int(tls, stack, reserved_tag) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_AFTER_CAT_LEFT)) + if status != REG_OK { + break + } + /* Process left child. */ + status = _tre_stack_push_voidptr(tls, stack, left) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_RECURSE)) + if status != REG_OK { + break + } + case int32(_ITERATION): + iter = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + if first_pass != 0 { + status = _tre_stack_push_int(tls, stack, BoolInt32(**(**int32)(__ccgo_up(regset)) >= 0 || int32(uint32(*(*uint8)(unsafe.Pointer(iter + 16))&0x1>>0)) != 0)) + if status != REG_OK { + break + } + } else { + status = _tre_stack_push_int(tls, stack, tag) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(uint32(*(*uint8)(unsafe.Pointer(iter + 16))&0x1>>0))) + if status != REG_OK { + break + } + } + status = _tre_stack_push_voidptr(tls, stack, node) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_AFTER_ITERATION)) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_RECURSE)) + if status != REG_OK { + break + } + /* Regset is not empty, so add a tag here. */ + if **(**int32)(__ccgo_up(regset)) >= 0 || int32(uint32(*(*uint8)(unsafe.Pointer(iter + 16))&0x1>>0)) != 0 { + if !(first_pass != 0) { + status = _tre_add_tag_left(tls, mem, node, tag) + if int32(uint32(*(*uint8)(unsafe.Pointer(iter + 16))&0x1>>0)) != 0 { + **(**Ttre_tag_direction_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions + uintptr(tag)*4)) = int32(_TRE_TAG_MAXIMIZE) + } else { + **(**Ttre_tag_direction_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions + uintptr(tag)*4)) = direction + } + if minimal_tag >= 0 { + i4 = 0 + for { + if !(**(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i4)*4)) >= 0) { + break + } + goto _17 + _17: + ; + i4 = i4 + 1 + } + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i4)*4)) = tag + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i4+int32(1))*4)) = minimal_tag + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i4+int32(2))*4)) = -int32(1) + minimal_tag = -int32(1) + num_minimals = num_minimals + 1 + } + _tre_purge_regset(tls, regset, tnfa, tag) + } + **(**int32)(__ccgo_up(regset)) = -int32(1) + tag = next_tag + num_tags = num_tags + 1 + next_tag = next_tag + 1 + } + direction = int32(_TRE_TAG_MINIMIZE) + case int32(_UNION): + uni = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + left1 = (*Ttre_union_t)(unsafe.Pointer(uni)).Fleft + right1 = (*Ttre_union_t)(unsafe.Pointer(uni)).Fright + if **(**int32)(__ccgo_up(regset)) >= 0 { + left_tag = next_tag + right_tag = next_tag + int32(1) + } else { + left_tag = tag + right_tag = next_tag + } + /* After processing right child. */ + status = _tre_stack_push_int(tls, stack, right_tag) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, left_tag) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, regset) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, BoolInt32(**(**int32)(__ccgo_up(regset)) >= 0)) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, node) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, right1) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, left1) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_AFTER_UNION_RIGHT)) + if status != REG_OK { + break + } + /* Process right child. */ + status = _tre_stack_push_voidptr(tls, stack, right1) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_RECURSE)) + if status != REG_OK { + break + } + /* After processing left child. */ + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_AFTER_UNION_LEFT)) + if status != REG_OK { + break + } + /* Process left child. */ + status = _tre_stack_push_voidptr(tls, stack, left1) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_ADDTAGS_RECURSE)) + if status != REG_OK { + break + } + /* Regset is not empty, so add a tag here. */ + if **(**int32)(__ccgo_up(regset)) >= 0 { + if !(first_pass != 0) { + status = _tre_add_tag_left(tls, mem, node, tag) + **(**Ttre_tag_direction_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions + uintptr(tag)*4)) = direction + if minimal_tag >= 0 { + i5 = 0 + for { + if !(**(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i5)*4)) >= 0) { + break + } + goto _18 + _18: + ; + i5 = i5 + 1 + } + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i5)*4)) = tag + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i5+int32(1))*4)) = minimal_tag + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i5+int32(2))*4)) = -int32(1) + minimal_tag = -int32(1) + num_minimals = num_minimals + 1 + } + _tre_purge_regset(tls, regset, tnfa, tag) + } + **(**int32)(__ccgo_up(regset)) = -int32(1) + tag = next_tag + num_tags = num_tags + 1 + next_tag = next_tag + 1 + } + if (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_submatches > 0 { + /* The next two tags are reserved for markers. */ + next_tag = next_tag + 1 + tag = next_tag + next_tag = next_tag + 1 + } + break + } + if (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fsubmatch_id >= 0 { + /* Push this submatch on the parents stack. */ + i6 = 0 + for { + if !(**(**int32)(__ccgo_up(parents + uintptr(i6)*4)) >= 0) { + break + } + goto _19 + _19: + ; + i6 = i6 + 1 + } + **(**int32)(__ccgo_up(parents + uintptr(i6)*4)) = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fsubmatch_id + **(**int32)(__ccgo_up(parents + uintptr(i6+int32(1))*4)) = -int32(1) + } + goto _10 /* end case: ADDTAGS_RECURSE */ + _4: + ; + minimal = 0 + node = _tre_stack_pop_voidptr(tls, stack) + if first_pass != 0 { + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_tags = (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_iteration_t)(unsafe.Pointer((*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj)).Farg)).Fnum_tags + _tre_stack_pop_int(tls, stack) + minimal_tag = -int32(1) + } else { + minimal = _tre_stack_pop_int(tls, stack) + enter_tag = _tre_stack_pop_int(tls, stack) + if minimal != 0 { + minimal_tag = enter_tag + } + } + if !(first_pass != 0) { + if minimal != 0 { + direction = int32(_TRE_TAG_MINIMIZE) + } else { + direction = int32(_TRE_TAG_MAXIMIZE) + } + } + goto _10 + _5: + ; + new_tag = _tre_stack_pop_int(tls, stack) + next_tag = _tre_stack_pop_int(tls, stack) + if new_tag >= 0 { + tag = new_tag + } + goto _10 + _6: + ; + node = _tre_stack_pop_voidptr(tls, stack) + if first_pass != 0 { + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_tags = (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer((*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj)).Fleft)).Fnum_tags + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer((*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj)).Fright)).Fnum_tags + } + goto _10 + _7: + ; + /* Lift the bottom of the `regset' array so that when processing + the right operand the items currently in the array are + invisible. The original bottom was saved at ADDTAGS_UNION and + will be restored at ADDTAGS_AFTER_UNION_RIGHT below. */ + _21: + ; + if !(**(**int32)(__ccgo_up(regset)) >= 0) { + goto _20 + } + regset += 4 + goto _21 + _20: + ; + goto _10 + _8: + ; + left2 = _tre_stack_pop_voidptr(tls, stack) + right2 = _tre_stack_pop_voidptr(tls, stack) + node = _tre_stack_pop_voidptr(tls, stack) + added_tags = _tre_stack_pop_int(tls, stack) + if first_pass != 0 { + if (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_submatches > 0 { + v22 = int32(2) + } else { + v22 = 0 + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_tags = (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_union_t)(unsafe.Pointer((*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj)).Fleft)).Fnum_tags + (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_union_t)(unsafe.Pointer((*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj)).Fright)).Fnum_tags + added_tags + v22 + } + regset = _tre_stack_pop_voidptr(tls, stack) + tag_left = _tre_stack_pop_int(tls, stack) + tag_right = _tre_stack_pop_int(tls, stack) + /* Add tags after both children, the left child gets a smaller + tag than the right child. This guarantees that we prefer + the left child over the right child. */ + /* XXX - This is not always necessary (if the children have + tags which must be seen for every match of that child). */ + /* XXX - Check if this is the only place where tre_add_tag_right + is used. If so, use tre_add_tag_left (putting the tag before + the child as opposed after the child) and throw away + tre_add_tag_right. */ + if (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_submatches > 0 { + if !(first_pass != 0) { + status = _tre_add_tag_right(tls, mem, left2, tag_left) + **(**Ttre_tag_direction_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions + uintptr(tag_left)*4)) = int32(_TRE_TAG_MAXIMIZE) + if status == REG_OK { + status = _tre_add_tag_right(tls, mem, right2, tag_right) + } + **(**Ttre_tag_direction_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions + uintptr(tag_right)*4)) = int32(_TRE_TAG_MAXIMIZE) + } + num_tags = num_tags + int32(2) + } + direction = int32(_TRE_TAG_MAXIMIZE) + goto _10 + _9: + ; + goto _10 + _10: + /* end switch(symbol) */ + } /* end while(tre_stack_num_objects(stack) > bottom) */ + if !(first_pass != 0) { + _tre_purge_regset(tls, regset, tnfa, tag) + } + if !(first_pass != 0) && minimal_tag >= 0 { + i7 = 0 + for { + if !(**(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i7)*4)) >= 0) { + break + } + goto _23 + _23: + ; + i7 = i7 + 1 + } + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i7)*4)) = tag + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i7+int32(1))*4)) = minimal_tag + **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i7+int32(2))*4)) = -int32(1) + minimal_tag = -int32(1) + num_minimals = num_minimals + 1 + } + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fend_tag = num_tags + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags = num_tags + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_minimals = num_minimals + Xfree(tls, orig_regset) + Xfree(tls, parents) + Xfree(tls, saved_states) + return status +} + +/* + AST to TNFA compilation routines. +*/ + +type Ttre_copyast_symbol_t = int32 + +const _COPY_RECURSE = 0 +const _COPY_SET_RESULT_PTR = 1 + +/* Flags for tre_copy_ast(). */ + +func _tre_copy_ast(tls *TLS, mem Ttre_mem_t, stack uintptr, ast uintptr, flags int32, pos_add uintptr, tag_directions uintptr, copy1 uintptr, max_pos uintptr) (r Treg_errcode_t) { + var bottom, first_tag, max, min, num_copied, pos, v1 int32 + var cat, iter, lit, node, p, result, tmp, tmp1, uni uintptr + var status Treg_errcode_t + var symbol Ttre_copyast_symbol_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = bottom, cat, first_tag, iter, lit, max, min, node, num_copied, p, pos, result, status, symbol, tmp, tmp1, uni, v1 + status = REG_OK + bottom = _tre_stack_num_objects(tls, stack) + num_copied = 0 + first_tag = int32(1) + result = copy1 + status = _tre_stack_push_voidptr(tls, stack, ast) + status = _tre_stack_push_int(tls, stack, int32(_COPY_RECURSE)) + for status == REG_OK && _tre_stack_num_objects(tls, stack) > bottom { + if status != REG_OK { + break + } + symbol = _tre_stack_pop_int(tls, stack) + switch symbol { + case int32(_COPY_SET_RESULT_PTR): + result = _tre_stack_pop_voidptr(tls, stack) + case int32(_COPY_RECURSE): + node = _tre_stack_pop_voidptr(tls, stack) + switch (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 { + case int32(_LITERAL): + lit = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + pos = (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition + min = int32((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min) + max = int32((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max) + if !((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min < Int64FromInt32(0)) || (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min == int64(-int32(4)) { + /* XXX - e.g. [ab] has only one position but two + nodes, so we are creating holes in the state space + here. Not fatal, just wastes memory. */ + pos = pos + **(**int32)(__ccgo_up(pos_add)) + num_copied = num_copied + 1 + } else { + if (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min == int64(-int32(3)) && flags&int32(COPY_REMOVE_TAGS) != 0 { + /* Change this tag to empty. */ + min = -int32(1) + v1 = -Int32FromInt32(1) + pos = v1 + max = v1 + } else { + if (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min == int64(-int32(3)) && flags&int32(COPY_MAXIMIZE_FIRST_TAG) != 0 && first_tag != 0 { + /* Maximize the first tag. */ + **(**Ttre_tag_direction_t)(__ccgo_up(tag_directions + uintptr(max)*4)) = int32(_TRE_TAG_MAXIMIZE) + first_tag = 0 + } + } + } + **(**uintptr)(__ccgo_up(result)) = _tre_ast_new_literal(tls, mem, min, max, pos) + if **(**uintptr)(__ccgo_up(result)) == UintptrFromInt32(0) { + status = int32(REG_ESPACE) + } else { + p = (*Ttre_ast_node_t)(unsafe.Pointer(**(**uintptr)(__ccgo_up(result)))).Fobj + (*Ttre_literal_t)(unsafe.Pointer(p)).Fclass = (*Ttre_literal_t)(unsafe.Pointer(lit)).Fclass + (*Ttre_literal_t)(unsafe.Pointer(p)).Fneg_classes = (*Ttre_literal_t)(unsafe.Pointer(lit)).Fneg_classes + } + if pos > **(**int32)(__ccgo_up(max_pos)) { + **(**int32)(__ccgo_up(max_pos)) = pos + } + case int32(_UNION): + uni = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + **(**uintptr)(__ccgo_up(result)) = _tre_ast_new_union(tls, mem, (*Ttre_union_t)(unsafe.Pointer(uni)).Fleft, (*Ttre_union_t)(unsafe.Pointer(uni)).Fright) + if **(**uintptr)(__ccgo_up(result)) == UintptrFromInt32(0) { + status = int32(REG_ESPACE) + break + } + tmp = (*Ttre_ast_node_t)(unsafe.Pointer(**(**uintptr)(__ccgo_up(result)))).Fobj + result = tmp + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_union_t)(unsafe.Pointer(uni)).Fright) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_COPY_RECURSE)) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, tmp+8) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_COPY_SET_RESULT_PTR)) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_union_t)(unsafe.Pointer(uni)).Fleft) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_COPY_RECURSE)) + if status != REG_OK { + break + } + case int32(_CATENATION): + cat = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + **(**uintptr)(__ccgo_up(result)) = _tre_ast_new_catenation(tls, mem, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright) + if **(**uintptr)(__ccgo_up(result)) == UintptrFromInt32(0) { + status = int32(REG_ESPACE) + break + } + tmp1 = (*Ttre_ast_node_t)(unsafe.Pointer(**(**uintptr)(__ccgo_up(result)))).Fobj + (*Ttre_catenation_t)(unsafe.Pointer(tmp1)).Fleft = UintptrFromInt32(0) + (*Ttre_catenation_t)(unsafe.Pointer(tmp1)).Fright = UintptrFromInt32(0) + result = tmp1 + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_COPY_RECURSE)) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, tmp1+8) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_COPY_SET_RESULT_PTR)) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_COPY_RECURSE)) + if status != REG_OK { + break + } + case int32(_ITERATION): + iter = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_COPY_RECURSE)) + if status != REG_OK { + break + } + **(**uintptr)(__ccgo_up(result)) = _tre_ast_new_iter(tls, mem, (*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg, (*Ttre_iteration_t)(unsafe.Pointer(iter)).Fmin, (*Ttre_iteration_t)(unsafe.Pointer(iter)).Fmax, int32(uint32(*(*uint8)(unsafe.Pointer(iter + 16))&0x1>>0))) + if **(**uintptr)(__ccgo_up(result)) == UintptrFromInt32(0) { + status = int32(REG_ESPACE) + break + } + iter = (*Ttre_ast_node_t)(unsafe.Pointer(**(**uintptr)(__ccgo_up(result)))).Fobj + result = iter + default: + break + } + break + } + } + **(**int32)(__ccgo_up(pos_add)) += num_copied + return status +} + +type Ttre_expand_ast_symbol_t = int32 + +const _EXPAND_RECURSE = 0 +const _EXPAND_AFTER_ITER = 1 + +// C documentation +// +// /* Expands each iteration node that has a finite nonzero minimum or maximum +// iteration count to a catenated sequence of copies of the node. */ +func _tre_expand_ast(tls *TLS, mem Ttre_mem_t, stack uintptr, ast uintptr, position uintptr, tag_directions uintptr) (r Treg_errcode_t) { + bp := tls.Alloc(32) + defer tls.Free(32) + var _status, _status1, status Treg_errcode_t + var bottom, flags, iter_depth, j, pos_add_last, pos_add_save, pos_add_total, v2 int32 + var cat, iter, iter1, lit, node, seq1, tmp, uni uintptr + var symbol Ttre_expand_ast_symbol_t + var _ /* copy at bp+16 */ uintptr + var _ /* copy at bp+24 */ uintptr + var _ /* max_pos at bp+4 */ int32 + var _ /* pos_add at bp+0 */ int32 + var _ /* seq2 at bp+8 */ uintptr + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = _status, _status1, bottom, cat, flags, iter, iter1, iter_depth, j, lit, node, pos_add_last, pos_add_save, pos_add_total, seq1, status, symbol, tmp, uni, v2 + status = REG_OK + bottom = _tre_stack_num_objects(tls, stack) + **(**int32)(__ccgo_up(bp)) = 0 + pos_add_total = 0 + **(**int32)(__ccgo_up(bp + 4)) = 0 + iter_depth = 0 + _status = _tre_stack_push_voidptr(tls, stack, ast) + if _status != REG_OK { + return _status + } + _status1 = _tre_stack_push_int(tls, stack, int32(_EXPAND_RECURSE)) + if _status1 != REG_OK { + return _status1 + } + for status == REG_OK && _tre_stack_num_objects(tls, stack) > bottom { + if status != REG_OK { + break + } + symbol = _tre_stack_pop_int(tls, stack) + node = _tre_stack_pop_voidptr(tls, stack) + switch symbol { + case int32(_EXPAND_RECURSE): + switch (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 { + case int32(_LITERAL): + lit = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + if !((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min < Int64FromInt32(0)) || (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min == int64(-int32(4)) { + **(**int32)(__ccgo_up(lit + 16)) += **(**int32)(__ccgo_up(bp)) + if (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition > **(**int32)(__ccgo_up(bp + 4)) { + **(**int32)(__ccgo_up(bp + 4)) = (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition + } + } + case int32(_UNION): + uni = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_union_t)(unsafe.Pointer(uni)).Fright) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_EXPAND_RECURSE)) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_union_t)(unsafe.Pointer(uni)).Fleft) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_EXPAND_RECURSE)) + if status != REG_OK { + break + } + case int32(_CATENATION): + cat = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_EXPAND_RECURSE)) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_EXPAND_RECURSE)) + if status != REG_OK { + break + } + case int32(_ITERATION): + iter = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + status = _tre_stack_push_int(tls, stack, **(**int32)(__ccgo_up(bp))) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, node) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_EXPAND_AFTER_ITER)) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg) + if status != REG_OK { + break + } + status = _tre_stack_push_int(tls, stack, int32(_EXPAND_RECURSE)) + if status != REG_OK { + break + } + /* If we are going to expand this node at EXPAND_AFTER_ITER + then don't increase the `pos' fields of the nodes now, it + will get done when expanding. */ + if (*Ttre_iteration_t)(unsafe.Pointer(iter)).Fmin > int32(1) || (*Ttre_iteration_t)(unsafe.Pointer(iter)).Fmax > int32(1) { + **(**int32)(__ccgo_up(bp)) = 0 + } + iter_depth = iter_depth + 1 + default: + break + } + case int32(_EXPAND_AFTER_ITER): + iter1 = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + **(**int32)(__ccgo_up(bp)) = _tre_stack_pop_int(tls, stack) + pos_add_last = **(**int32)(__ccgo_up(bp)) + if (*Ttre_iteration_t)(unsafe.Pointer(iter1)).Fmin > int32(1) || (*Ttre_iteration_t)(unsafe.Pointer(iter1)).Fmax > int32(1) { + seq1 = UintptrFromInt32(0) + **(**uintptr)(__ccgo_up(bp + 8)) = UintptrFromInt32(0) + pos_add_save = **(**int32)(__ccgo_up(bp)) + /* Create a catenated sequence of copies of the node. */ + j = 0 + for { + if !(j < (*Ttre_iteration_t)(unsafe.Pointer(iter1)).Fmin) { + break + } + if j+int32(1) < (*Ttre_iteration_t)(unsafe.Pointer(iter1)).Fmin { + v2 = int32(COPY_REMOVE_TAGS) + } else { + v2 = int32(COPY_MAXIMIZE_FIRST_TAG) + } + /* Remove tags from all but the last copy. */ + flags = v2 + pos_add_save = **(**int32)(__ccgo_up(bp)) + status = _tre_copy_ast(tls, mem, stack, (*Ttre_iteration_t)(unsafe.Pointer(iter1)).Farg, flags, bp, tag_directions, bp+16, bp+4) + if status != REG_OK { + return status + } + if seq1 != UintptrFromInt32(0) { + seq1 = _tre_ast_new_catenation(tls, mem, seq1, **(**uintptr)(__ccgo_up(bp + 16))) + } else { + seq1 = **(**uintptr)(__ccgo_up(bp + 16)) + } + if seq1 == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + goto _1 + _1: + ; + j = j + 1 + } + if (*Ttre_iteration_t)(unsafe.Pointer(iter1)).Fmax == -int32(1) { + /* No upper limit. */ + pos_add_save = **(**int32)(__ccgo_up(bp)) + status = _tre_copy_ast(tls, mem, stack, (*Ttre_iteration_t)(unsafe.Pointer(iter1)).Farg, 0, bp, UintptrFromInt32(0), bp+8, bp+4) + if status != REG_OK { + return status + } + **(**uintptr)(__ccgo_up(bp + 8)) = _tre_ast_new_iter(tls, mem, **(**uintptr)(__ccgo_up(bp + 8)), 0, -int32(1), 0) + if **(**uintptr)(__ccgo_up(bp + 8)) == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + } else { + j = (*Ttre_iteration_t)(unsafe.Pointer(iter1)).Fmin + for { + if !(j < (*Ttre_iteration_t)(unsafe.Pointer(iter1)).Fmax) { + break + } + pos_add_save = **(**int32)(__ccgo_up(bp)) + status = _tre_copy_ast(tls, mem, stack, (*Ttre_iteration_t)(unsafe.Pointer(iter1)).Farg, 0, bp, UintptrFromInt32(0), bp+24, bp+4) + if status != REG_OK { + return status + } + if **(**uintptr)(__ccgo_up(bp + 8)) != UintptrFromInt32(0) { + **(**uintptr)(__ccgo_up(bp + 8)) = _tre_ast_new_catenation(tls, mem, **(**uintptr)(__ccgo_up(bp + 24)), **(**uintptr)(__ccgo_up(bp + 8))) + } else { + **(**uintptr)(__ccgo_up(bp + 8)) = **(**uintptr)(__ccgo_up(bp + 24)) + } + if **(**uintptr)(__ccgo_up(bp + 8)) == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + tmp = _tre_ast_new_literal(tls, mem, -int32(1), -int32(1), -int32(1)) + if tmp == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + **(**uintptr)(__ccgo_up(bp + 8)) = _tre_ast_new_union(tls, mem, tmp, **(**uintptr)(__ccgo_up(bp + 8))) + if **(**uintptr)(__ccgo_up(bp + 8)) == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + goto _3 + _3: + ; + j = j + 1 + } + } + **(**int32)(__ccgo_up(bp)) = pos_add_save + if seq1 == UintptrFromInt32(0) { + seq1 = **(**uintptr)(__ccgo_up(bp + 8)) + } else { + if **(**uintptr)(__ccgo_up(bp + 8)) != UintptrFromInt32(0) { + seq1 = _tre_ast_new_catenation(tls, mem, seq1, **(**uintptr)(__ccgo_up(bp + 8))) + } + } + if seq1 == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj = (*Ttre_ast_node_t)(unsafe.Pointer(seq1)).Fobj + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 = (*Ttre_ast_node_t)(unsafe.Pointer(seq1)).Ftype1 + } + iter_depth = iter_depth - 1 + pos_add_total = pos_add_total + (**(**int32)(__ccgo_up(bp)) - pos_add_last) + if iter_depth == 0 { + **(**int32)(__ccgo_up(bp)) = pos_add_total + } + default: + break + } + } + **(**int32)(__ccgo_up(position)) += pos_add_total + /* `max_pos' should never be larger than `*position' if the above + code works, but just an extra safeguard let's make sure + `*position' is set large enough so enough memory will be + allocated for the transition table. */ + if **(**int32)(__ccgo_up(bp + 4)) > **(**int32)(__ccgo_up(position)) { + **(**int32)(__ccgo_up(position)) = **(**int32)(__ccgo_up(bp + 4)) + } + return status +} + +func _tre_set_empty(tls *TLS, mem Ttre_mem_t) (r uintptr) { + var new_set uintptr + _ = new_set + new_set = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), int32(1), uint64(56)) + if new_set == UintptrFromInt32(0) { + return UintptrFromInt32(0) + } + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set))).Fposition = -int32(1) + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set))).Fcode_min = -int32(1) + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set))).Fcode_max = -int32(1) + return new_set +} + +func _tre_set_one(tls *TLS, mem Ttre_mem_t, position int32, code_min int32, code_max int32, class Ttre_ctype_t, neg_classes uintptr, backref int32) (r uintptr) { + var new_set uintptr + _ = new_set + new_set = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), int32(1), Uint64FromInt64(56)*Uint64FromInt32(2)) + if new_set == UintptrFromInt32(0) { + return UintptrFromInt32(0) + } + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set))).Fposition = position + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set))).Fcode_min = code_min + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set))).Fcode_max = code_max + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set))).Fclass = class + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set))).Fneg_classes = neg_classes + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set))).Fbackref = backref + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + 1*56))).Fposition = -int32(1) + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + 1*56))).Fcode_min = -int32(1) + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + 1*56))).Fcode_max = -int32(1) + return new_set +} + +func _tre_set_union(tls *TLS, mem Ttre_mem_t, set1 uintptr, set2 uintptr, tags uintptr, assertions int32) (r uintptr) { + var i, j, num_tags, s1, s2 int32 + var new_set, new_tags uintptr + _, _, _, _, _, _, _ = i, j, new_set, new_tags, num_tags, s1, s2 + num_tags = 0 + for { + if !(tags != UintptrFromInt32(0) && **(**int32)(__ccgo_up(tags + uintptr(num_tags)*4)) >= 0) { + break + } + goto _1 + _1: + ; + num_tags = num_tags + 1 + } + s1 = 0 + for { + if !((**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*56))).Fposition >= 0) { + break + } + goto _2 + _2: + ; + s1 = s1 + 1 + } + s2 = 0 + for { + if !((**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*56))).Fposition >= 0) { + break + } + goto _3 + _3: + ; + s2 = s2 + 1 + } + new_set = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), int32(1), uint64(56)*Uint64FromInt32(s1+s2+Int32FromInt32(1))) + if !(new_set != 0) { + return UintptrFromInt32(0) + } + s1 = 0 + for { + if !((**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*56))).Fposition >= 0) { + break + } + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1)*56))).Fposition = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*56))).Fposition + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1)*56))).Fcode_min = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*56))).Fcode_min + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1)*56))).Fcode_max = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*56))).Fcode_max + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1)*56))).Fassertions = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*56))).Fassertions | assertions + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1)*56))).Fclass = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*56))).Fclass + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1)*56))).Fneg_classes = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*56))).Fneg_classes + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1)*56))).Fbackref = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*56))).Fbackref + if (**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*56))).Ftags == UintptrFromInt32(0) && tags == UintptrFromInt32(0) { + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1)*56))).Ftags = UintptrFromInt32(0) + } else { + i = 0 + for { + if !((**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*56))).Ftags != UintptrFromInt32(0) && **(**int32)(__ccgo_up((**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*56))).Ftags + uintptr(i)*4)) >= 0) { + break + } + goto _5 + _5: + ; + i = i + 1 + } + new_tags = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, Uint64FromInt64(4)*Uint64FromInt32(i+num_tags+Int32FromInt32(1))) + if new_tags == UintptrFromInt32(0) { + return UintptrFromInt32(0) + } + j = 0 + for { + if !(j < i) { + break + } + **(**int32)(__ccgo_up(new_tags + uintptr(j)*4)) = **(**int32)(__ccgo_up((**(**Ttre_pos_and_tags_t)(__ccgo_up(set1 + uintptr(s1)*56))).Ftags + uintptr(j)*4)) + goto _6 + _6: + ; + j = j + 1 + } + i = 0 + for { + if !(i < num_tags) { + break + } + **(**int32)(__ccgo_up(new_tags + uintptr(j+i)*4)) = **(**int32)(__ccgo_up(tags + uintptr(i)*4)) + goto _7 + _7: + ; + i = i + 1 + } + **(**int32)(__ccgo_up(new_tags + uintptr(j+i)*4)) = -int32(1) + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1)*56))).Ftags = new_tags + } + goto _4 + _4: + ; + s1 = s1 + 1 + } + s2 = 0 + for { + if !((**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*56))).Fposition >= 0) { + break + } + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1+s2)*56))).Fposition = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*56))).Fposition + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1+s2)*56))).Fcode_min = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*56))).Fcode_min + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1+s2)*56))).Fcode_max = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*56))).Fcode_max + /* XXX - why not | assertions here as well? */ + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1+s2)*56))).Fassertions = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*56))).Fassertions + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1+s2)*56))).Fclass = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*56))).Fclass + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1+s2)*56))).Fneg_classes = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*56))).Fneg_classes + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1+s2)*56))).Fbackref = (**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*56))).Fbackref + if (**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*56))).Ftags == UintptrFromInt32(0) { + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1+s2)*56))).Ftags = UintptrFromInt32(0) + } else { + i = 0 + for { + if !(**(**int32)(__ccgo_up((**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*56))).Ftags + uintptr(i)*4)) >= 0) { + break + } + goto _9 + _9: + ; + i = i + 1 + } + new_tags = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint64(4)*Uint64FromInt32(i+Int32FromInt32(1))) + if new_tags == UintptrFromInt32(0) { + return UintptrFromInt32(0) + } + j = 0 + for { + if !(j < i) { + break + } + **(**int32)(__ccgo_up(new_tags + uintptr(j)*4)) = **(**int32)(__ccgo_up((**(**Ttre_pos_and_tags_t)(__ccgo_up(set2 + uintptr(s2)*56))).Ftags + uintptr(j)*4)) + goto _10 + _10: + ; + j = j + 1 + } + **(**int32)(__ccgo_up(new_tags + uintptr(j)*4)) = -int32(1) + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1+s2)*56))).Ftags = new_tags + } + goto _8 + _8: + ; + s2 = s2 + 1 + } + (**(**Ttre_pos_and_tags_t)(__ccgo_up(new_set + uintptr(s1+s2)*56))).Fposition = -int32(1) + return new_set +} + +// C documentation +// +// /* Finds the empty path through `node' which is the one that should be +// taken according to POSIX.2 rules, and adds the tags on that path to +// `tags'. `tags' may be NULL. If `num_tags_seen' is not NULL, it is +// set to the number of tags seen on the path. */ +func _tre_match_empty(tls *TLS, stack uintptr, node uintptr, tags uintptr, assertions uintptr, num_tags_seen uintptr) (r Treg_errcode_t) { + var bottom, i int32 + var cat, iter, lit, uni, v2 uintptr + var status Treg_errcode_t + _, _, _, _, _, _, _, _ = bottom, cat, i, iter, lit, status, uni, v2 + bottom = _tre_stack_num_objects(tls, stack) + status = REG_OK + if num_tags_seen != 0 { + **(**int32)(__ccgo_up(num_tags_seen)) = 0 + } + status = _tre_stack_push_voidptr(tls, stack, node) + /* Walk through the tree recursively. */ + for status == REG_OK && _tre_stack_num_objects(tls, stack) > bottom { + node = _tre_stack_pop_voidptr(tls, stack) + switch (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 { + case int32(_LITERAL): + lit = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + switch (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min { + case int64(-int32(3)): + if (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max >= 0 { + if tags != UintptrFromInt32(0) { + /* Add the tag to `tags'. */ + i = 0 + for { + if !(**(**int32)(__ccgo_up(tags + uintptr(i)*4)) >= 0) { + break + } + if int64(**(**int32)(__ccgo_up(tags + uintptr(i)*4))) == (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max { + break + } + goto _1 + _1: + ; + i = i + 1 + } + if **(**int32)(__ccgo_up(tags + uintptr(i)*4)) < 0 { + **(**int32)(__ccgo_up(tags + uintptr(i)*4)) = int32((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max) + **(**int32)(__ccgo_up(tags + uintptr(i+int32(1))*4)) = -int32(1) + } + } + if num_tags_seen != 0 { + **(**int32)(__ccgo_up(num_tags_seen)) = **(**int32)(__ccgo_up(num_tags_seen)) + 1 + } + } + case int64(-int32(2)): + if assertions != UintptrFromInt32(0) { + v2 = assertions + *(*int32)(unsafe.Pointer(v2)) = int32(int64(*(*int32)(unsafe.Pointer(v2))) | (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max) + } + case int64(-int32(1)): + default: + break + } + case int32(_UNION): + /* Subexpressions starting earlier take priority over ones + starting later, so we prefer the left subexpression over the + right subexpression. */ + uni = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + if (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_union_t)(unsafe.Pointer(uni)).Fleft)).Fnullable != 0 { + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_union_t)(unsafe.Pointer(uni)).Fleft) + if status != REG_OK { + break + } + } else { + if (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_union_t)(unsafe.Pointer(uni)).Fright)).Fnullable != 0 { + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_union_t)(unsafe.Pointer(uni)).Fright) + if status != REG_OK { + break + } + } else { + } + } + case int32(_CATENATION): + /* The path must go through both children. */ + cat = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft) + if status != REG_OK { + break + } + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright) + if status != REG_OK { + break + } + case int32(_ITERATION): + /* A match with an empty string is preferred over no match at + all, so we go through the argument if possible. */ + iter = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + if (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg)).Fnullable != 0 { + status = _tre_stack_push_voidptr(tls, stack, (*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg) + if status != REG_OK { + break + } + } + default: + break + } + } + return status +} + +type Ttre_nfl_stack_symbol_t = int32 + +const _NFL_RECURSE = 0 +const _NFL_POST_UNION = 1 +const _NFL_POST_CATENATION = 2 +const _NFL_POST_ITERATION = 3 + +// C documentation +// +// /* Computes and fills in the fields `nullable', `firstpos', and `lastpos' for +// the nodes of the AST `tree'. */ +func _tre_compute_nfl(tls *TLS, mem Ttre_mem_t, stack uintptr, tree uintptr) (r Treg_errcode_t) { + bp := tls.Alloc(16) + defer tls.Free(16) + var _status, _status1, _status10, _status11, _status12, _status13, _status14, _status15, _status16, _status17, _status2, _status3, _status4, _status5, _status6, _status7, _status8, _status9, status Treg_errcode_t + var bottom int32 + var cat, iter, lit, node, tags, uni uintptr + var symbol Ttre_nfl_stack_symbol_t + var _ /* assertions at bp+4 */ int32 + var _ /* num_tags at bp+0 */ int32 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = _status, _status1, _status10, _status11, _status12, _status13, _status14, _status15, _status16, _status17, _status2, _status3, _status4, _status5, _status6, _status7, _status8, _status9, bottom, cat, iter, lit, node, status, symbol, tags, uni + bottom = _tre_stack_num_objects(tls, stack) + _status = _tre_stack_push_voidptr(tls, stack, tree) + if _status != REG_OK { + return _status + } + _status1 = _tre_stack_push_int(tls, stack, int32(_NFL_RECURSE)) + if _status1 != REG_OK { + return _status1 + } + for _tre_stack_num_objects(tls, stack) > bottom { + symbol = _tre_stack_pop_int(tls, stack) + node = _tre_stack_pop_voidptr(tls, stack) + switch symbol { + case int32(_NFL_RECURSE): + switch (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 { + case int32(_LITERAL): + lit = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + if (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min == int64(-int32(4)) { + /* Back references: nullable = false, firstpos = {i}, + lastpos = {i}. */ + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnullable = 0 + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos = _tre_set_one(tls, mem, (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition, 0, int32(TRE_CHAR_MAX), uint64(0), UintptrFromInt32(0), -int32(1)) + if !((*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos != 0) { + return int32(REG_ESPACE) + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos = _tre_set_one(tls, mem, (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition, 0, int32(TRE_CHAR_MAX), uint64(0), UintptrFromInt32(0), int32((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max)) + if !((*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos != 0) { + return int32(REG_ESPACE) + } + } else { + if (*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min < 0 { + /* Tags, empty strings, params, and zero width assertions: + nullable = true, firstpos = {}, and lastpos = {}. */ + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnullable = int32(1) + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos = _tre_set_empty(tls, mem) + if !((*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos != 0) { + return int32(REG_ESPACE) + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos = _tre_set_empty(tls, mem) + if !((*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos != 0) { + return int32(REG_ESPACE) + } + } else { + /* Literal at position i: nullable = false, firstpos = {i}, + lastpos = {i}. */ + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnullable = 0 + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos = _tre_set_one(tls, mem, (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition, int32((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min), int32((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max), uint64(0), UintptrFromInt32(0), -int32(1)) + if !((*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos != 0) { + return int32(REG_ESPACE) + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos = _tre_set_one(tls, mem, (*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition, int32((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_min), int32((*Ttre_literal_t)(unsafe.Pointer(lit)).Fcode_max), (*Ttre_literal_t)(unsafe.Pointer(lit)).Fclass, (*Ttre_literal_t)(unsafe.Pointer(lit)).Fneg_classes, -int32(1)) + if !((*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos != 0) { + return int32(REG_ESPACE) + } + } + } + case int32(_UNION): + /* Compute the attributes for the two subtrees, and after that + for this node. */ + _status2 = _tre_stack_push_voidptr(tls, stack, node) + if _status2 != REG_OK { + return _status2 + } + _status3 = _tre_stack_push_int(tls, stack, int32(_NFL_POST_UNION)) + if _status3 != REG_OK { + return _status3 + } + _status4 = _tre_stack_push_voidptr(tls, stack, (*Ttre_union_t)(unsafe.Pointer((*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj)).Fright) + if _status4 != REG_OK { + return _status4 + } + _status5 = _tre_stack_push_int(tls, stack, int32(_NFL_RECURSE)) + if _status5 != REG_OK { + return _status5 + } + _status6 = _tre_stack_push_voidptr(tls, stack, (*Ttre_union_t)(unsafe.Pointer((*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj)).Fleft) + if _status6 != REG_OK { + return _status6 + } + _status7 = _tre_stack_push_int(tls, stack, int32(_NFL_RECURSE)) + if _status7 != REG_OK { + return _status7 + } + case int32(_CATENATION): + /* Compute the attributes for the two subtrees, and after that + for this node. */ + _status8 = _tre_stack_push_voidptr(tls, stack, node) + if _status8 != REG_OK { + return _status8 + } + _status9 = _tre_stack_push_int(tls, stack, int32(_NFL_POST_CATENATION)) + if _status9 != REG_OK { + return _status9 + } + _status10 = _tre_stack_push_voidptr(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer((*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj)).Fright) + if _status10 != REG_OK { + return _status10 + } + _status11 = _tre_stack_push_int(tls, stack, int32(_NFL_RECURSE)) + if _status11 != REG_OK { + return _status11 + } + _status12 = _tre_stack_push_voidptr(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer((*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj)).Fleft) + if _status12 != REG_OK { + return _status12 + } + _status13 = _tre_stack_push_int(tls, stack, int32(_NFL_RECURSE)) + if _status13 != REG_OK { + return _status13 + } + case int32(_ITERATION): + /* Compute the attributes for the subtree, and after that for + this node. */ + _status14 = _tre_stack_push_voidptr(tls, stack, node) + if _status14 != REG_OK { + return _status14 + } + _status15 = _tre_stack_push_int(tls, stack, int32(_NFL_POST_ITERATION)) + if _status15 != REG_OK { + return _status15 + } + _status16 = _tre_stack_push_voidptr(tls, stack, (*Ttre_iteration_t)(unsafe.Pointer((*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj)).Farg) + if _status16 != REG_OK { + return _status16 + } + _status17 = _tre_stack_push_int(tls, stack, int32(_NFL_RECURSE)) + if _status17 != REG_OK { + return _status17 + } + break + } + case int32(_NFL_POST_UNION): + uni = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnullable = BoolInt32((*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_union_t)(unsafe.Pointer(uni)).Fleft)).Fnullable != 0 || (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_union_t)(unsafe.Pointer(uni)).Fright)).Fnullable != 0) + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos = _tre_set_union(tls, mem, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_union_t)(unsafe.Pointer(uni)).Fleft)).Ffirstpos, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_union_t)(unsafe.Pointer(uni)).Fright)).Ffirstpos, UintptrFromInt32(0), 0) + if !((*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos != 0) { + return int32(REG_ESPACE) + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos = _tre_set_union(tls, mem, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_union_t)(unsafe.Pointer(uni)).Fleft)).Flastpos, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_union_t)(unsafe.Pointer(uni)).Fright)).Flastpos, UintptrFromInt32(0), 0) + if !((*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos != 0) { + return int32(REG_ESPACE) + } + case int32(_NFL_POST_ITERATION): + iter = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + if (*Ttre_iteration_t)(unsafe.Pointer(iter)).Fmin == 0 || (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg)).Fnullable != 0 { + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnullable = int32(1) + } else { + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnullable = 0 + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos = (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg)).Ffirstpos + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos = (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg)).Flastpos + case int32(_NFL_POST_CATENATION): + cat = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnullable = BoolInt32((*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft)).Fnullable != 0 && (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright)).Fnullable != 0) + /* Compute firstpos. */ + if (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft)).Fnullable != 0 { + /* The left side matches the empty string. Make a first pass + with tre_match_empty() to get the number of tags and + parameters. */ + status = _tre_match_empty(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft, UintptrFromInt32(0), UintptrFromInt32(0), bp) + if status != REG_OK { + return status + } + /* Allocate arrays for the tags and parameters. */ + tags = Xmalloc(tls, uint64(4)*Uint64FromInt32(**(**int32)(__ccgo_up(bp))+Int32FromInt32(1))) + if !(tags != 0) { + return int32(REG_ESPACE) + } + **(**int32)(__ccgo_up(tags)) = -int32(1) + **(**int32)(__ccgo_up(bp + 4)) = 0 + /* Second pass with tre_mach_empty() to get the list of + tags and parameters. */ + status = _tre_match_empty(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft, tags, bp+4, UintptrFromInt32(0)) + if status != REG_OK { + Xfree(tls, tags) + return status + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos = _tre_set_union(tls, mem, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright)).Ffirstpos, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft)).Ffirstpos, tags, **(**int32)(__ccgo_up(bp + 4))) + Xfree(tls, tags) + if !((*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos != 0) { + return int32(REG_ESPACE) + } + } else { + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ffirstpos = (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft)).Ffirstpos + } + /* Compute lastpos. */ + if (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright)).Fnullable != 0 { + /* The right side matches the empty string. Make a first pass + with tre_match_empty() to get the number of tags and + parameters. */ + status = _tre_match_empty(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright, UintptrFromInt32(0), UintptrFromInt32(0), bp) + if status != REG_OK { + return status + } + /* Allocate arrays for the tags and parameters. */ + tags = Xmalloc(tls, uint64(4)*Uint64FromInt32(**(**int32)(__ccgo_up(bp))+Int32FromInt32(1))) + if !(tags != 0) { + return int32(REG_ESPACE) + } + **(**int32)(__ccgo_up(tags)) = -int32(1) + **(**int32)(__ccgo_up(bp + 4)) = 0 + /* Second pass with tre_mach_empty() to get the list of + tags and parameters. */ + status = _tre_match_empty(tls, stack, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright, tags, bp+4, UintptrFromInt32(0)) + if status != REG_OK { + Xfree(tls, tags) + return status + } + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos = _tre_set_union(tls, mem, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft)).Flastpos, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright)).Flastpos, tags, **(**int32)(__ccgo_up(bp + 4))) + Xfree(tls, tags) + if !((*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos != 0) { + return int32(REG_ESPACE) + } + } else { + (*Ttre_ast_node_t)(unsafe.Pointer(node)).Flastpos = (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright)).Flastpos + } + default: + break + } + } + return REG_OK +} + +// C documentation +// +// /* Adds a transition from each position in `p1' to each position in `p2'. */ +func _tre_make_trans(tls *TLS, p1 uintptr, p2 uintptr, transitions uintptr, counts uintptr, offs uintptr) (r Treg_errcode_t) { + var dup, i, j, k, l, prev_p2_pos, v1, v2 int32 + var orig_p2, trans uintptr + _, _, _, _, _, _, _, _, _, _ = dup, i, j, k, l, orig_p2, prev_p2_pos, trans, v1, v2 + orig_p2 = p2 + if transitions != UintptrFromInt32(0) { + for (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fposition >= 0 { + p2 = orig_p2 + prev_p2_pos = -int32(1) + for (*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Fposition >= 0 { + /* Optimization: if this position was already handled, skip it. */ + if (*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Fposition == prev_p2_pos { + p2 += 56 + continue + } + prev_p2_pos = (*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Fposition + /* Set `trans' to point to the next unused transition from + position `p1->position'. */ + trans = transitions + uintptr(**(**int32)(__ccgo_up(offs + uintptr((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fposition)*4)))*56 + for (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fstate != UintptrFromInt32(0) { + trans += 56 + } + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fstate == UintptrFromInt32(0) { + (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans + UintptrFromInt32(1)*56)).Fstate = UintptrFromInt32(0) + } + /* Use the character ranges, assertions, etc. from `p1' for + the transition from `p1' to `p2'. */ + (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fcode_min = Uint32FromInt32((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fcode_min) + (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fcode_max = Uint32FromInt32((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fcode_max) + (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fstate = transitions + uintptr(**(**int32)(__ccgo_up(offs + uintptr((*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Fposition)*4)))*56 + (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fstate_id = (*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Fposition + if (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fclass != 0 { + v1 = int32(ASSERT_CHAR_CLASS) + } else { + v1 = 0 + } + if (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fneg_classes != UintptrFromInt32(0) { + v2 = int32(ASSERT_CHAR_CLASS_NEG) + } else { + v2 = 0 + } + (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fassertions = (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fassertions | (*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Fassertions | v1 | v2 + if (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fbackref >= 0 { + *(*int32)(unsafe.Pointer(&(*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fu)) = (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fbackref + **(**int32)(__ccgo_up(trans + 32)) |= int32(ASSERT_BACKREF) + } else { + *(*Ttre_ctype_t)(unsafe.Pointer(trans + 40)) = (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fclass + } + if (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fneg_classes != UintptrFromInt32(0) { + i = 0 + for { + if !(**(**Ttre_ctype_t)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fneg_classes + uintptr(i)*8)) != Uint64FromInt32(0)) { + break + } + goto _3 + _3: + ; + i = i + 1 + } + (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fneg_classes = Xmalloc(tls, uint64(8)*Uint64FromInt32(i+Int32FromInt32(1))) + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fneg_classes == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + i = 0 + for { + if !(**(**Ttre_ctype_t)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fneg_classes + uintptr(i)*8)) != Uint64FromInt32(0)) { + break + } + **(**Ttre_ctype_t)(__ccgo_up((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fneg_classes + uintptr(i)*8)) = **(**Ttre_ctype_t)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fneg_classes + uintptr(i)*8)) + goto _4 + _4: + ; + i = i + 1 + } + **(**Ttre_ctype_t)(__ccgo_up((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fneg_classes + uintptr(i)*8)) = Uint64FromInt32(0) + } else { + (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fneg_classes = UintptrFromInt32(0) + } + /* Find out how many tags this transition has. */ + i = 0 + if (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Ftags != UintptrFromInt32(0) { + for **(**int32)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Ftags + uintptr(i)*4)) >= 0 { + i = i + 1 + } + } + j = 0 + if (*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Ftags != UintptrFromInt32(0) { + for **(**int32)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Ftags + uintptr(j)*4)) >= 0 { + j = j + 1 + } + } + /* If we are overwriting a transition, free the old tag array. */ + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags != UintptrFromInt32(0) { + Xfree(tls, (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags) + } + (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags = UintptrFromInt32(0) + /* If there were any tags, allocate an array and fill it. */ + if i+j > 0 { + (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags = Xmalloc(tls, uint64(4)*Uint64FromInt32(i+j+Int32FromInt32(1))) + if !((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags != 0) { + return int32(REG_ESPACE) + } + i = 0 + if (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Ftags != UintptrFromInt32(0) { + for **(**int32)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Ftags + uintptr(i)*4)) >= 0 { + **(**int32)(__ccgo_up((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags + uintptr(i)*4)) = **(**int32)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Ftags + uintptr(i)*4)) + i = i + 1 + } + } + l = i + j = 0 + if (*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Ftags != UintptrFromInt32(0) { + for **(**int32)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Ftags + uintptr(j)*4)) >= 0 { + /* Don't add duplicates. */ + dup = 0 + k = 0 + for { + if !(k < i) { + break + } + if **(**int32)(__ccgo_up((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags + uintptr(k)*4)) == **(**int32)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Ftags + uintptr(j)*4)) { + dup = int32(1) + break + } + goto _5 + _5: + ; + k = k + 1 + } + if !(dup != 0) { + v1 = l + l = l + 1 + **(**int32)(__ccgo_up((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags + uintptr(v1)*4)) = **(**int32)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Ftags + uintptr(j)*4)) + } + j = j + 1 + } + } + **(**int32)(__ccgo_up((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags + uintptr(l)*4)) = -int32(1) + } + p2 += 56 + } + p1 += 56 + } + } else { + /* Compute a maximum limit for the number of transitions leaving + from each state. */ + for (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fposition >= 0 { + p2 = orig_p2 + for (*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Fposition >= 0 { + **(**int32)(__ccgo_up(counts + uintptr((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fposition)*4)) = **(**int32)(__ccgo_up(counts + uintptr((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fposition)*4)) + 1 + p2 += 56 + } + p1 += 56 + } + } + return REG_OK +} + +// C documentation +// +// /* Converts the syntax tree to a TNFA. All the transitions in the TNFA are +// labelled with one character range (there are no transitions on empty +// strings). The TNFA takes O(n^2) space in the worst case, `n' is size of +// the regexp. */ +func _tre_ast_to_tnfa(tls *TLS, node uintptr, transitions uintptr, counts uintptr, offs uintptr) (r Treg_errcode_t) { + var cat, iter, uni uintptr + var errcode Treg_errcode_t + _, _, _, _ = cat, errcode, iter, uni + errcode = REG_OK + /* XXX - recurse using a stack!. */ + switch (*Ttre_ast_node_t)(unsafe.Pointer(node)).Ftype1 { + case int32(_LITERAL): + case int32(_UNION): + uni = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + errcode = _tre_ast_to_tnfa(tls, (*Ttre_union_t)(unsafe.Pointer(uni)).Fleft, transitions, counts, offs) + if errcode != REG_OK { + return errcode + } + errcode = _tre_ast_to_tnfa(tls, (*Ttre_union_t)(unsafe.Pointer(uni)).Fright, transitions, counts, offs) + case int32(_CATENATION): + cat = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + /* Add a transition from each position in cat->left->lastpos + to each position in cat->right->firstpos. */ + errcode = _tre_make_trans(tls, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft)).Flastpos, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright)).Ffirstpos, transitions, counts, offs) + if errcode != REG_OK { + return errcode + } + errcode = _tre_ast_to_tnfa(tls, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fleft, transitions, counts, offs) + if errcode != REG_OK { + return errcode + } + errcode = _tre_ast_to_tnfa(tls, (*Ttre_catenation_t)(unsafe.Pointer(cat)).Fright, transitions, counts, offs) + case int32(_ITERATION): + iter = (*Ttre_ast_node_t)(unsafe.Pointer(node)).Fobj + if (*Ttre_iteration_t)(unsafe.Pointer(iter)).Fmax == -int32(1) { + /* Add a transition from each last position in the iterated + expression to each first position. */ + errcode = _tre_make_trans(tls, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg)).Flastpos, (*Ttre_ast_node_t)(unsafe.Pointer((*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg)).Ffirstpos, transitions, counts, offs) + if errcode != REG_OK { + return errcode + } + } + errcode = _tre_ast_to_tnfa(tls, (*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg, transitions, counts, offs) + break + } + return errcode +} + +func Xregcomp(tls *TLS, preg uintptr, regex uintptr, cflags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v preg=%v regex=%v cflags=%v, (%v:)", tls, preg, regex, cflags, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var add, i, j, v1 int32 + var counts, initial, offs, p, stack, submatch_data, tag_directions, tmp_ast_l, tmp_ast_r, tnfa, transitions, tree, v2 uintptr + var errcode Treg_errcode_t + var mem Ttre_mem_t + var _ /* parse_ctx at bp+0 */ Ttre_parse_ctx_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = add, counts, errcode, i, initial, j, mem, offs, p, stack, submatch_data, tag_directions, tmp_ast_l, tmp_ast_r, tnfa, transitions, tree, v1, v2 + counts = UintptrFromInt32(0) + offs = UintptrFromInt32(0) + add = 0 + tnfa = UintptrFromInt32(0) + tag_directions = UintptrFromInt32(0) + /* Allocate a stack used throughout the compilation process for various + purposes. */ + stack = _tre_stack_new(tls, int32(512), int32(1024000), int32(128)) + if !(stack != 0) { + return int32(REG_ESPACE) + } + /* Allocate a fast memory allocator. */ + mem = X__tre_mem_new_impl(tls, 0, UintptrFromInt32(0)) + if !(mem != 0) { + _tre_stack_destroy(tls, stack) + return int32(REG_ESPACE) + } + /* Parse the regexp. */ + Xmemset(tls, bp, 0, uint64(56)) + (**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fmem = mem + (**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fstack = stack + (**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fstart = regex + (**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fcflags = cflags + (**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fmax_backref = -int32(1) + errcode = _tre_parse(tls, bp) + if errcode != REG_OK { + errcode = errcode + if int32(1) != 0 { + goto error_exit + } + } + (*Tregex_t)(unsafe.Pointer(preg)).Fre_nsub = Uint64FromInt32((**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fsubmatch_id - int32(1)) + tree = (**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fn + /* Referring to nonexistent subexpressions is illegal. */ + if (**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fmax_backref > Int32FromUint64((*Tregex_t)(unsafe.Pointer(preg)).Fre_nsub) { + errcode = int32(REG_ESUBREG) + if int32(1) != 0 { + goto error_exit + } + } + /* Allocate the TNFA struct. */ + tnfa = Xcalloc(tls, uint64(1), uint64(104)) + if tnfa == UintptrFromInt32(0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fhave_backrefs = BoolInt32((**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fmax_backref >= 0) + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fhave_approx = 0 + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_submatches = Uint32FromInt32((**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fsubmatch_id) + /* Set up tags for submatch addressing. If REG_NOSUB is set and the + regexp does not have back references, this can be skipped. */ + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fhave_backrefs != 0 || !(cflags&Int32FromInt32(REG_NOSUB) != 0) { + /* Figure out how many tags we will need. */ + errcode = _tre_add_tags(tls, UintptrFromInt32(0), stack, tree, tnfa) + if errcode != REG_OK { + errcode = errcode + if int32(1) != 0 { + goto error_exit + } + } + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags > 0 { + tag_directions = Xmalloc(tls, uint64(4)*Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags+Int32FromInt32(1))) + if tag_directions == UintptrFromInt32(0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions = tag_directions + Xmemset(tls, tag_directions, -int32(1), uint64(4)*Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags+Int32FromInt32(1))) + } + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags = Xcalloc(tls, uint64(Uint32FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags)*uint32(2)+uint32(1)), uint64(4)) + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags == UintptrFromInt32(0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + submatch_data = Xcalloc(tls, uint64(Uint32FromInt32((**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fsubmatch_id)), uint64(16)) + if submatch_data == UintptrFromInt32(0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fsubmatch_data = submatch_data + errcode = _tre_add_tags(tls, mem, stack, tree, tnfa) + if errcode != REG_OK { + errcode = errcode + if int32(1) != 0 { + goto error_exit + } + } + } + /* Expand iteration nodes. */ + errcode = _tre_expand_ast(tls, mem, stack, tree, bp+44, tag_directions) + if errcode != REG_OK { + errcode = errcode + if int32(1) != 0 { + goto error_exit + } + } + /* Add a dummy node for the final state. + XXX - For certain patterns this dummy node can be optimized away, + for example "a*" or "ab*". Figure out a simple way to detect + this possibility. */ + tmp_ast_l = tree + v2 = bp + 44 + v1 = *(*int32)(unsafe.Pointer(v2)) + *(*int32)(unsafe.Pointer(v2)) = *(*int32)(unsafe.Pointer(v2)) + 1 + tmp_ast_r = _tre_ast_new_literal(tls, mem, 0, 0, v1) + if tmp_ast_r == UintptrFromInt32(0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + tree = _tre_ast_new_catenation(tls, mem, tmp_ast_l, tmp_ast_r) + if tree == UintptrFromInt32(0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + errcode = _tre_compute_nfl(tls, mem, stack, tree) + if errcode != REG_OK { + errcode = errcode + if int32(1) != 0 { + goto error_exit + } + } + counts = Xmalloc(tls, uint64(4)*Uint64FromInt32((**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fposition)) + if counts == UintptrFromInt32(0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + offs = Xmalloc(tls, uint64(4)*Uint64FromInt32((**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fposition)) + if offs == UintptrFromInt32(0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + i = 0 + for { + if !(i < (**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fposition) { + break + } + **(**int32)(__ccgo_up(counts + uintptr(i)*4)) = 0 + goto _3 + _3: + ; + i = i + 1 + } + _tre_ast_to_tnfa(tls, tree, UintptrFromInt32(0), counts, UintptrFromInt32(0)) + add = 0 + i = 0 + for { + if !(i < (**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fposition) { + break + } + **(**int32)(__ccgo_up(offs + uintptr(i)*4)) = add + add = add + (**(**int32)(__ccgo_up(counts + uintptr(i)*4)) + int32(1)) + **(**int32)(__ccgo_up(counts + uintptr(i)*4)) = 0 + goto _4 + _4: + ; + i = i + 1 + } + transitions = Xcalloc(tls, uint64(Uint32FromInt32(add)+uint32(1)), uint64(56)) + if transitions == UintptrFromInt32(0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftransitions = transitions + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_transitions = Uint32FromInt32(add) + errcode = _tre_ast_to_tnfa(tls, tree, transitions, counts, offs) + if errcode != REG_OK { + errcode = errcode + if int32(1) != 0 { + goto error_exit + } + } + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ffirstpos_chars = UintptrFromInt32(0) + p = (*Ttre_ast_node_t)(unsafe.Pointer(tree)).Ffirstpos + i = 0 + for (*Ttre_pos_and_tags_t)(unsafe.Pointer(p)).Fposition >= 0 { + i = i + 1 + p += 56 + } + initial = Xcalloc(tls, uint64(Uint32FromInt32(i)+uint32(1)), uint64(56)) + if initial == UintptrFromInt32(0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Finitial = initial + i = 0 + p = (*Ttre_ast_node_t)(unsafe.Pointer(tree)).Ffirstpos + for { + if !((*Ttre_pos_and_tags_t)(unsafe.Pointer(p)).Fposition >= 0) { + break + } + (**(**Ttre_tnfa_transition_t)(__ccgo_up(initial + uintptr(i)*56))).Fstate = transitions + uintptr(**(**int32)(__ccgo_up(offs + uintptr((*Ttre_pos_and_tags_t)(unsafe.Pointer(p)).Fposition)*4)))*56 + (**(**Ttre_tnfa_transition_t)(__ccgo_up(initial + uintptr(i)*56))).Fstate_id = (*Ttre_pos_and_tags_t)(unsafe.Pointer(p)).Fposition + (**(**Ttre_tnfa_transition_t)(__ccgo_up(initial + uintptr(i)*56))).Ftags = UintptrFromInt32(0) + /* Copy the arrays p->tags, and p->params, they are allocated + from a tre_mem object. */ + if (*Ttre_pos_and_tags_t)(unsafe.Pointer(p)).Ftags != 0 { + j = 0 + for { + if !(**(**int32)(__ccgo_up((*Ttre_pos_and_tags_t)(unsafe.Pointer(p)).Ftags + uintptr(j)*4)) >= 0) { + break + } + goto _6 + _6: + ; + j = j + 1 + } + (**(**Ttre_tnfa_transition_t)(__ccgo_up(initial + uintptr(i)*56))).Ftags = Xmalloc(tls, uint64(4)*Uint64FromInt32(j+Int32FromInt32(1))) + if !((**(**Ttre_tnfa_transition_t)(__ccgo_up(initial + uintptr(i)*56))).Ftags != 0) { + errcode = int32(REG_ESPACE) + if int32(1) != 0 { + goto error_exit + } + } + Xmemcpy(tls, (**(**Ttre_tnfa_transition_t)(__ccgo_up(initial + uintptr(i)*56))).Ftags, (*Ttre_pos_and_tags_t)(unsafe.Pointer(p)).Ftags, uint64(4)*Uint64FromInt32(j+Int32FromInt32(1))) + } + (**(**Ttre_tnfa_transition_t)(__ccgo_up(initial + uintptr(i)*56))).Fassertions = (*Ttre_pos_and_tags_t)(unsafe.Pointer(p)).Fassertions + i = i + 1 + goto _5 + _5: + ; + p += 56 + } + (**(**Ttre_tnfa_transition_t)(__ccgo_up(initial + uintptr(i)*56))).Fstate = UintptrFromInt32(0) + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_transitions = Uint32FromInt32(add) + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ffinal = transitions + uintptr(**(**int32)(__ccgo_up(offs + uintptr((**(**Ttre_pos_and_tags_t)(__ccgo_up((*Ttre_ast_node_t)(unsafe.Pointer(tree)).Flastpos))).Fposition)*4)))*56 + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states = (**(**Ttre_parse_ctx_t)(__ccgo_up(bp))).Fposition + (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags = cflags + X__tre_mem_destroy(tls, mem) + _tre_stack_destroy(tls, stack) + Xfree(tls, counts) + Xfree(tls, offs) + (*Tregex_t)(unsafe.Pointer(preg)).F__opaque = tnfa + return REG_OK + goto error_exit +error_exit: + ; + /* Free everything that was allocated and return the error code. */ + X__tre_mem_destroy(tls, mem) + if stack != UintptrFromInt32(0) { + _tre_stack_destroy(tls, stack) + } + if counts != UintptrFromInt32(0) { + Xfree(tls, counts) + } + if offs != UintptrFromInt32(0) { + Xfree(tls, offs) + } + (*Tregex_t)(unsafe.Pointer(preg)).F__opaque = tnfa + Xregfree(tls, preg) + return errcode +} + +func Xregfree(tls *TLS, preg uintptr) { + if __ccgo_strace { + trc("tls=%v preg=%v, (%v:)", tls, preg, origin(2)) + } + var i uint32 + var tnfa, trans uintptr + _, _, _ = i, tnfa, trans + tnfa = (*Tregex_t)(unsafe.Pointer(preg)).F__opaque + if !(tnfa != 0) { + return + } + i = uint32(0) + for { + if !(i < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_transitions) { + break + } + if (**(**Ttre_tnfa_transition_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftransitions + uintptr(i)*56))).Fstate != 0 { + if (**(**Ttre_tnfa_transition_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftransitions + uintptr(i)*56))).Ftags != 0 { + Xfree(tls, (**(**Ttre_tnfa_transition_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftransitions + uintptr(i)*56))).Ftags) + } + if (**(**Ttre_tnfa_transition_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftransitions + uintptr(i)*56))).Fneg_classes != 0 { + Xfree(tls, (**(**Ttre_tnfa_transition_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftransitions + uintptr(i)*56))).Fneg_classes) + } + } + goto _1 + _1: + ; + i = i + 1 + } + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftransitions != 0 { + Xfree(tls, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftransitions) + } + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Finitial != 0 { + trans = (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Finitial + for { + if !((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fstate != 0) { + break + } + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags != 0 { + Xfree(tls, (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags) + } + goto _2 + _2: + ; + trans += 56 + } + Xfree(tls, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Finitial) + } + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fsubmatch_data != 0 { + i = uint32(0) + for { + if !(i < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_submatches) { + break + } + if (**(**Ttre_submatch_data_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fsubmatch_data + uintptr(i)*16))).Fparents != 0 { + Xfree(tls, (**(**Ttre_submatch_data_t)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fsubmatch_data + uintptr(i)*16))).Fparents) + } + goto _3 + _3: + ; + i = i + 1 + } + Xfree(tls, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fsubmatch_data) + } + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions != 0 { + Xfree(tls, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions) + } + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ffirstpos_chars != 0 { + Xfree(tls, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ffirstpos_chars) + } + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags != 0 { + Xfree(tls, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags) + } + Xfree(tls, tnfa) +} + +/* Error message strings for error codes listed in `regex.h'. This list + needs to be in sync with the codes listed there, naturally. */ + +/* Converted to single string by Rich Felker to remove the need for + * data relocations at runtime, 27 Feb 2006. */ + +var _messages = [286]uint8{'N', 'o', ' ', 'e', 'r', 'r', 'o', 'r', 0, 'N', 'o', ' ', 'm', 'a', 't', 'c', 'h', 0, 'I', 'n', 'v', 'a', 'l', 'i', 'd', ' ', 'r', 'e', 'g', 'e', 'x', 'p', 0, 'U', 'n', 'k', 'n', 'o', 'w', 'n', ' ', 'c', 'o', 'l', 'l', 'a', 't', 'i', 'n', 'g', ' ', 'e', 'l', 'e', 'm', 'e', 'n', 't', 0, 'U', 'n', 'k', 'n', 'o', 'w', 'n', ' ', 'c', 'h', 'a', 'r', 'a', 'c', 't', 'e', 'r', ' ', 'c', 'l', 'a', 's', 's', ' ', 'n', 'a', 'm', 'e', 0, 'T', 'r', 'a', 'i', 'l', 'i', 'n', 'g', ' ', 'b', 'a', 'c', 'k', 's', 'l', 'a', 's', 'h', 0, 'I', 'n', 'v', 'a', 'l', 'i', 'd', ' ', 'b', 'a', 'c', 'k', ' ', 'r', 'e', 'f', 'e', 'r', 'e', 'n', 'c', 'e', 0, 'M', 'i', 's', 's', 'i', 'n', 'g', ' ', '\'', ']', '\'', 0, 'M', 'i', 's', 's', 'i', 'n', 'g', ' ', '\'', ')', '\'', 0, 'M', 'i', 's', 's', 'i', 'n', 'g', ' ', '\'', '}', '\'', 0, 'I', 'n', 'v', 'a', 'l', 'i', 'd', ' ', 'c', 'o', 'n', 't', 'e', 'n', 't', 's', ' ', 'o', 'f', ' ', '{', '}', 0, 'I', 'n', 'v', 'a', 'l', 'i', 'd', ' ', 'c', 'h', 'a', 'r', 'a', 'c', 't', 'e', 'r', ' ', 'r', 'a', 'n', 'g', 'e', 0, 'O', 'u', 't', ' ', 'o', 'f', ' ', 'm', 'e', 'm', 'o', 'r', 'y', 0, 'R', 'e', 'p', 'e', 't', 'i', 't', 'i', 'o', 'n', ' ', 'n', 'o', 't', ' ', 'p', 'r', 'e', 'c', 'e', 'd', 'e', 'd', ' ', 'b', 'y', ' ', 'v', 'a', 'l', 'i', 'd', ' ', 'e', 'x', 'p', 'r', 'e', 's', 's', 'i', 'o', 'n', 0, 0, 'U', 'n', 'k', 'n', 'o', 'w', 'n', ' ', 'e', 'r', 'r', 'o', 'r'} + +func Xregerror(tls *TLS, e int32, preg uintptr, buf uintptr, size Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v e=%v preg=%v buf=%v size=%v, (%v:)", tls, e, preg, buf, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var s uintptr + _ = s + s = uintptr(unsafe.Pointer(&_messages)) + for { + if !(e != 0 && **(**uint8)(__ccgo_up(s)) != 0) { + break + } + goto _1 + _1: + ; + e = e - 1 + s = s + uintptr(_strlen(tls, s)+uint64(1)) + } + if !(**(**uint8)(__ccgo_up(s)) != 0) { + s = s + 1 + } + s = X__lctrans_cur(tls, s) + return Uint64FromInt32(int32(1) + Xsnprintf(tls, buf, size, __ccgo_ts+15, VaList(bp+8, s))) +} + +const tre_bt_mem_alloc = 0 +const tre_bt_mem_destroy = 0 +const tre_bt_mem_new = 0 + +/*********************************************************************** + from tre-match-utils.h +***********************************************************************/ + +// C documentation +// +// /* Returns 1 if `t1' wins `t2', 0 otherwise. */ +func _tre_tag_order(tls *TLS, num_tags int32, tag_directions uintptr, t1 uintptr, t2 uintptr) (r int32) { + var i int32 + _ = i + i = 0 + for { + if !(i < num_tags) { + break + } + if **(**Ttre_tag_direction_t)(__ccgo_up(tag_directions + uintptr(i)*4)) == int32(_TRE_TAG_MINIMIZE) { + if **(**Tregoff_t)(__ccgo_up(t1 + uintptr(i)*8)) < **(**Tregoff_t)(__ccgo_up(t2 + uintptr(i)*8)) { + return int32(1) + } + if **(**Tregoff_t)(__ccgo_up(t1 + uintptr(i)*8)) > **(**Tregoff_t)(__ccgo_up(t2 + uintptr(i)*8)) { + return 0 + } + } else { + if **(**Tregoff_t)(__ccgo_up(t1 + uintptr(i)*8)) > **(**Tregoff_t)(__ccgo_up(t2 + uintptr(i)*8)) { + return int32(1) + } + if **(**Tregoff_t)(__ccgo_up(t1 + uintptr(i)*8)) < **(**Tregoff_t)(__ccgo_up(t2 + uintptr(i)*8)) { + return 0 + } + } + goto _1 + _1: + ; + i = i + 1 + } + /* assert(0);*/ + return 0 +} + +func _tre_neg_char_classes_match(tls *TLS, classes uintptr, wc Ttre_cint_t, icase int32) (r int32) { + for **(**Ttre_ctype_t)(__ccgo_up(classes)) != Uint64FromInt32(0) { + if !(icase != 0) && Xiswctype(tls, wc, **(**Ttre_ctype_t)(__ccgo_up(classes))) != 0 || icase != 0 && (Xiswctype(tls, Xtowupper(tls, wc), **(**Ttre_ctype_t)(__ccgo_up(classes))) != 0 || Xiswctype(tls, Xtowlower(tls, wc), **(**Ttre_ctype_t)(__ccgo_up(classes))) != 0) { + return int32(1) + } else { + classes += 8 + } + } + return 0 /* No match. */ +} + +/*********************************************************************** + from tre-match-parallel.c +***********************************************************************/ + +/* + This algorithm searches for matches basically by reading characters + in the searched string one by one, starting at the beginning. All + matching paths in the TNFA are traversed in parallel. When two or + more paths reach the same state, exactly one is chosen according to + tag ordering rules; if returning submatches is not required it does + not matter which path is chosen. + + The worst case time required for finding the leftmost and longest + match, or determining that there is no match, is always linearly + dependent on the length of the text being searched. + + This algorithm cannot handle TNFAs with back referencing nodes. + See `tre-match-backtrack.c'. +*/ + +type Ttre_tnfa_reach_t = struct { + Fstate uintptr + Ftags uintptr +} + +type Ttre_reach_pos_t = struct { + Fpos Tregoff_t + Ftags uintptr +} + +func _tre_tnfa_run_parallel(tls *TLS, tnfa uintptr, string1 uintptr, match_tags uintptr, eflags int32, match_end_ofs uintptr) (r Treg_errcode_t) { + bp := tls.Alloc(16) + defer tls.Free(16) + var buf, reach, reach_i, reach_next, reach_next_i, reach_pos, str_byte, tag_i, tmp_buf, tmp_iptr, tmp_tags, trans_i uintptr + var end, i, new_match, num_tags, reg_newline, reg_notbol, reg_noteol, skip, start, v18 int32 + var match_eo, pos, pos_add_next, v7 Tregoff_t + var pbytes, rbytes, tbytes, total_bytes, xbytes Tsize_t + var prev_c Ttre_char_t + var ret Treg_errcode_t + var v1 uint64 + var _ /* next_c at bp+0 */ Ttre_char_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = buf, end, i, match_eo, new_match, num_tags, pbytes, pos, pos_add_next, prev_c, rbytes, reach, reach_i, reach_next, reach_next_i, reach_pos, reg_newline, reg_notbol, reg_noteol, ret, skip, start, str_byte, tag_i, tbytes, tmp_buf, tmp_iptr, tmp_tags, total_bytes, trans_i, xbytes, v1, v18, v7 + /* State variables required by GET_NEXT_WCHAR. */ + prev_c = 0 + **(**Ttre_char_t)(__ccgo_up(bp)) = 0 + str_byte = string1 + pos = int64(-int32(1)) + pos_add_next = int64(1) + reg_notbol = eflags & int32(REG_NOTBOL) + reg_noteol = eflags & int32(REG_NOTEOL) + reg_newline = (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags & int32(REG_NEWLINE) + match_eo = int64(-int32(1)) /* end offset of match (-1 if no match found yet) */ + new_match = 0 + tmp_tags = UintptrFromInt32(0) + if !(match_tags != 0) { + num_tags = 0 + } else { + num_tags = (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags + } + /* Allocate memory for temporary data required for matching. This needs to + be done for every matching operation to be thread safe. This allocates + everything in a single large block with calloc(). */ + /* Ensure that tbytes and xbytes*num_states cannot overflow, and that + * they don't contribute more than 1/8 of SIZE_MAX to total_bytes. */ + if Uint64FromInt32(num_tags) > uint64(0xffffffffffffffff)/(Uint64FromInt32(8)*Uint64FromInt64(8)*Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states)) { + return int32(REG_ESPACE) + } + /* Likewise check rbytes. */ + if Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states+int32(1)) > Uint64FromUint64(0xffffffffffffffff)/(Uint64FromInt32(8)*Uint64FromInt64(16)) { + return int32(REG_ESPACE) + } + /* Likewise check pbytes. */ + if Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states) > Uint64FromUint64(0xffffffffffffffff)/(Uint64FromInt32(8)*Uint64FromInt64(16)) { + return int32(REG_ESPACE) + } + /* Compute the length of the block we need. */ + tbytes = uint64(8) * Uint64FromInt32(num_tags) + rbytes = uint64(16) * Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states+Int32FromInt32(1)) + pbytes = uint64(16) * Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states) + xbytes = uint64(8) * Uint64FromInt32(num_tags) + total_bytes = (Uint64FromInt64(8)-Uint64FromInt32(1))*Uint64FromInt32(4) + (rbytes+xbytes*Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states))*uint64(2) + tbytes + pbytes + /* Allocate the memory. */ + buf = Xcalloc(tls, total_bytes, uint64(1)) + if buf == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + /* Get the various pointers within tmp_buf (properly aligned). */ + tmp_tags = buf + tmp_buf = buf + uintptr(tbytes) + if Uint64FromInt64(int64(tmp_buf))%uint64(8) != 0 { + v1 = uint64(8) - Uint64FromInt64(int64(tmp_buf))%uint64(8) + } else { + v1 = uint64(0) + } + tmp_buf = tmp_buf + uintptr(v1) + reach_next = tmp_buf + tmp_buf = tmp_buf + uintptr(rbytes) + if Uint64FromInt64(int64(tmp_buf))%uint64(8) != 0 { + v1 = uint64(8) - Uint64FromInt64(int64(tmp_buf))%uint64(8) + } else { + v1 = uint64(0) + } + tmp_buf = tmp_buf + uintptr(v1) + reach = tmp_buf + tmp_buf = tmp_buf + uintptr(rbytes) + if Uint64FromInt64(int64(tmp_buf))%uint64(8) != 0 { + v1 = uint64(8) - Uint64FromInt64(int64(tmp_buf))%uint64(8) + } else { + v1 = uint64(0) + } + tmp_buf = tmp_buf + uintptr(v1) + reach_pos = tmp_buf + tmp_buf = tmp_buf + uintptr(pbytes) + if Uint64FromInt64(int64(tmp_buf))%uint64(8) != 0 { + v1 = uint64(8) - Uint64FromInt64(int64(tmp_buf))%uint64(8) + } else { + v1 = uint64(0) + } + tmp_buf = tmp_buf + uintptr(v1) + i = 0 + for { + if !(i < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states) { + break + } + (**(**Ttre_tnfa_reach_t)(__ccgo_up(reach + uintptr(i)*16))).Ftags = tmp_buf + tmp_buf = tmp_buf + uintptr(xbytes) + (**(**Ttre_tnfa_reach_t)(__ccgo_up(reach_next + uintptr(i)*16))).Ftags = tmp_buf + tmp_buf = tmp_buf + uintptr(xbytes) + goto _5 + _5: + ; + i = i + 1 + } + i = 0 + for { + if !(i < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states) { + break + } + (**(**Ttre_reach_pos_t)(__ccgo_up(reach_pos + uintptr(i)*16))).Fpos = int64(-int32(1)) + goto _6 + _6: + ; + i = i + 1 + } + prev_c = **(**Ttre_char_t)(__ccgo_up(bp)) + pos = pos + pos_add_next + v7 = int64(Xmbtowc(tls, bp, str_byte, uint64(MB_LEN_MAX))) + pos_add_next = v7 + if v7 <= 0 { + if pos_add_next < 0 { + ret = int32(REG_NOMATCH) + goto error_exit + } else { + pos_add_next = pos_add_next + 1 + } + } + str_byte = str_byte + uintptr(pos_add_next) + pos = 0 + reach_next_i = reach_next + for int32(1) != 0 { + /* If no match found yet, add the initial states to `reach_next'. */ + if match_eo < 0 { + trans_i = (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Finitial + for (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate != UintptrFromInt32(0) { + if (**(**Ttre_reach_pos_t)(__ccgo_up(reach_pos + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*16))).Fpos < pos { + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions != 0 && ((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_BOL) != 0 && (pos > 0 || reg_notbol != 0) && (prev_c != int32('\n') || !(reg_newline != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_EOL) != 0 && (**(**Ttre_char_t)(__ccgo_up(bp)) != int32('\000') || reg_noteol != 0) && (**(**Ttre_char_t)(__ccgo_up(bp)) != int32('\n') || !(reg_newline != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_BOW) != 0 && (prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0 || !(**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_EOW) != 0 && (!(prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0) || (**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_WB) != 0 && (pos != 0 && **(**Ttre_char_t)(__ccgo_up(bp)) != int32('\000') && BoolInt32(prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0) == BoolInt32(**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_WB_NEG) != 0 && (pos == 0 || **(**Ttre_char_t)(__ccgo_up(bp)) == int32('\000') || BoolInt32(prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0) != BoolInt32(**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0))) { + trans_i += 56 + continue + } + (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Fstate = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate + i = 0 + for { + if !(i < num_tags) { + break + } + **(**Tregoff_t)(__ccgo_up((*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Ftags + uintptr(i)*8)) = int64(-int32(1)) + goto _8 + _8: + ; + i = i + 1 + } + tag_i = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Ftags + if tag_i != 0 { + for **(**int32)(__ccgo_up(tag_i)) >= 0 { + if **(**int32)(__ccgo_up(tag_i)) < num_tags { + **(**Tregoff_t)(__ccgo_up((*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Ftags + uintptr(**(**int32)(__ccgo_up(tag_i)))*8)) = pos + } + tag_i += 4 + } + } + if (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Fstate == (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ffinal { + match_eo = pos + new_match = int32(1) + i = 0 + for { + if !(i < num_tags) { + break + } + **(**Tregoff_t)(__ccgo_up(match_tags + uintptr(i)*8)) = **(**Tregoff_t)(__ccgo_up((*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Ftags + uintptr(i)*8)) + goto _9 + _9: + ; + i = i + 1 + } + } + (**(**Ttre_reach_pos_t)(__ccgo_up(reach_pos + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*16))).Fpos = pos + (**(**Ttre_reach_pos_t)(__ccgo_up(reach_pos + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*16))).Ftags = reach_next_i + 8 + reach_next_i += 16 + } + trans_i += 56 + } + (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Fstate = UintptrFromInt32(0) + } else { + if num_tags == 0 || reach_next_i == reach_next { + /* We have found a match. */ + break + } + } + /* Check for end of string. */ + if !(**(**Ttre_char_t)(__ccgo_up(bp)) != 0) { + break + } + prev_c = **(**Ttre_char_t)(__ccgo_up(bp)) + pos = pos + pos_add_next + v7 = int64(Xmbtowc(tls, bp, str_byte, uint64(MB_LEN_MAX))) + pos_add_next = v7 + if v7 <= 0 { + if pos_add_next < 0 { + ret = int32(REG_NOMATCH) + goto error_exit + } else { + pos_add_next = pos_add_next + 1 + } + } + str_byte = str_byte + uintptr(pos_add_next) + /* Swap `reach' and `reach_next'. */ + reach_i = reach + reach = reach_next + reach_next = reach_i + /* For each state in `reach', weed out states that don't fulfill the + minimal matching conditions. */ + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_minimals != 0 && new_match != 0 { + new_match = 0 + reach_next_i = reach_next + reach_i = reach + for { + if !((*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_i)).Fstate != 0) { + break + } + skip = 0 + i = 0 + for { + if !(**(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i)*4)) >= 0) { + break + } + end = **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i)*4)) + start = **(**int32)(__ccgo_up((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags + uintptr(i+int32(1))*4)) + if end >= num_tags { + skip = int32(1) + break + } else { + if **(**Tregoff_t)(__ccgo_up((*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_i)).Ftags + uintptr(start)*8)) == **(**Tregoff_t)(__ccgo_up(match_tags + uintptr(start)*8)) && **(**Tregoff_t)(__ccgo_up((*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_i)).Ftags + uintptr(end)*8)) < **(**Tregoff_t)(__ccgo_up(match_tags + uintptr(end)*8)) { + skip = int32(1) + break + } + } + goto _12 + _12: + ; + i = i + int32(2) + } + if !(skip != 0) { + (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Fstate = (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_i)).Fstate + tmp_iptr = (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Ftags + (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Ftags = (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_i)).Ftags + (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_i)).Ftags = tmp_iptr + reach_next_i += 16 + } + goto _11 + _11: + ; + reach_i += 16 + } + (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Fstate = UintptrFromInt32(0) + /* Swap `reach' and `reach_next'. */ + reach_i = reach + reach = reach_next + reach_next = reach_i + } + /* For each state in `reach' see if there is a transition leaving with + the current input symbol to a state not yet in `reach_next', and + add the destination states to `reach_next'. */ + reach_next_i = reach_next + reach_i = reach + for { + if !((*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_i)).Fstate != 0) { + break + } + trans_i = (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_i)).Fstate + for { + if !((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate != 0) { + break + } + /* Does this transition match the input symbol? */ + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fcode_min <= Uint32FromInt32(prev_c) && (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fcode_max >= Uint32FromInt32(prev_c) { + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions != 0 && ((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_BOL) != 0 && (pos > 0 || reg_notbol != 0) && (prev_c != int32('\n') || !(reg_newline != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_EOL) != 0 && (**(**Ttre_char_t)(__ccgo_up(bp)) != int32('\000') || reg_noteol != 0) && (**(**Ttre_char_t)(__ccgo_up(bp)) != int32('\n') || !(reg_newline != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_BOW) != 0 && (prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0 || !(**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_EOW) != 0 && (!(prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0) || (**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_WB) != 0 && (pos != 0 && **(**Ttre_char_t)(__ccgo_up(bp)) != int32('\000') && BoolInt32(prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0) == BoolInt32(**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_WB_NEG) != 0 && (pos == 0 || **(**Ttre_char_t)(__ccgo_up(bp)) == int32('\000') || BoolInt32(prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0) != BoolInt32(**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || ((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_CHAR_CLASS) != 0 && !((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags&Int32FromInt32(REG_ICASE) != 0) && !(Xiswctype(tls, Uint32FromInt32(prev_c), *(*Ttre_ctype_t)(unsafe.Pointer(trans_i + 40))) != 0) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_CHAR_CLASS) != 0 && (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags&int32(REG_ICASE) != 0 && !(Xiswctype(tls, Xtowlower(tls, Uint32FromInt32(prev_c)), *(*Ttre_ctype_t)(unsafe.Pointer(trans_i + 40))) != 0) && !(Xiswctype(tls, Xtowupper(tls, Uint32FromInt32(prev_c)), *(*Ttre_ctype_t)(unsafe.Pointer(trans_i + 40))) != 0) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_CHAR_CLASS_NEG) != 0 && _tre_neg_char_classes_match(tls, (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fneg_classes, Uint32FromInt32(prev_c), (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags&int32(REG_ICASE)) != 0)) { + goto _14 + } + /* Compute the tags after this transition. */ + i = 0 + for { + if !(i < num_tags) { + break + } + **(**Tregoff_t)(__ccgo_up(tmp_tags + uintptr(i)*8)) = **(**Tregoff_t)(__ccgo_up((*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_i)).Ftags + uintptr(i)*8)) + goto _15 + _15: + ; + i = i + 1 + } + tag_i = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Ftags + if tag_i != UintptrFromInt32(0) { + for **(**int32)(__ccgo_up(tag_i)) >= 0 { + if **(**int32)(__ccgo_up(tag_i)) < num_tags { + **(**Tregoff_t)(__ccgo_up(tmp_tags + uintptr(**(**int32)(__ccgo_up(tag_i)))*8)) = pos + } + tag_i += 4 + } + } + if (**(**Ttre_reach_pos_t)(__ccgo_up(reach_pos + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*16))).Fpos < pos { + /* Found an unvisited node. */ + (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Fstate = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate + tmp_iptr = (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Ftags + (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Ftags = tmp_tags + tmp_tags = tmp_iptr + (**(**Ttre_reach_pos_t)(__ccgo_up(reach_pos + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*16))).Fpos = pos + (**(**Ttre_reach_pos_t)(__ccgo_up(reach_pos + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*16))).Ftags = reach_next_i + 8 + if (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Fstate == (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ffinal && (match_eo == int64(-int32(1)) || num_tags > 0 && **(**Tregoff_t)(__ccgo_up((*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Ftags)) <= **(**Tregoff_t)(__ccgo_up(match_tags))) { + match_eo = pos + new_match = int32(1) + i = 0 + for { + if !(i < num_tags) { + break + } + **(**Tregoff_t)(__ccgo_up(match_tags + uintptr(i)*8)) = **(**Tregoff_t)(__ccgo_up((*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Ftags + uintptr(i)*8)) + goto _16 + _16: + ; + i = i + 1 + } + } + reach_next_i += 16 + } else { + /* Another path has also reached this state. We choose + the winner by examining the tag values for both + paths. */ + if _tre_tag_order(tls, num_tags, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions, tmp_tags, **(**uintptr)(__ccgo_up((**(**Ttre_reach_pos_t)(__ccgo_up(reach_pos + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*16))).Ftags))) != 0 { + /* The new path wins. */ + tmp_iptr = **(**uintptr)(__ccgo_up((**(**Ttre_reach_pos_t)(__ccgo_up(reach_pos + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*16))).Ftags)) + **(**uintptr)(__ccgo_up((**(**Ttre_reach_pos_t)(__ccgo_up(reach_pos + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*16))).Ftags)) = tmp_tags + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate == (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ffinal { + match_eo = pos + new_match = int32(1) + i = 0 + for { + if !(i < num_tags) { + break + } + **(**Tregoff_t)(__ccgo_up(match_tags + uintptr(i)*8)) = **(**Tregoff_t)(__ccgo_up(tmp_tags + uintptr(i)*8)) + goto _17 + _17: + ; + i = i + 1 + } + } + tmp_tags = tmp_iptr + } + } + } + goto _14 + _14: + ; + trans_i += 56 + } + goto _13 + _13: + ; + reach_i += 16 + } + (*Ttre_tnfa_reach_t)(unsafe.Pointer(reach_next_i)).Fstate = UintptrFromInt32(0) + } + **(**Tregoff_t)(__ccgo_up(match_end_ofs)) = match_eo + if match_eo >= 0 { + v18 = REG_OK + } else { + v18 = int32(REG_NOMATCH) + } + ret = v18 + goto error_exit +error_exit: + ; + Xfree(tls, buf) + return ret +} + +/*********************************************************************** + from tre-match-backtrack.c +***********************************************************************/ + +/* + This matcher is for regexps that use back referencing. Regexp matching + with back referencing is an NP-complete problem on the number of back + references. The easiest way to match them is to use a backtracking + routine which basically goes through all possible paths in the TNFA + and chooses the one which results in the best (leftmost and longest) + match. This can be spectacularly expensive and may run out of stack + space, but there really is no better known generic algorithm. Quoting + Henry Spencer from comp.compilers: + + + POSIX.2 REs require longest match, which is really exciting to + implement since the obsolete ("basic") variant also includes + \. I haven't found a better way of tackling this than doing + a preliminary match using a DFA (or simulation) on a modified RE + that just replicates subREs for \, and then doing a + backtracking match to determine whether the subRE matches were + right. This can be rather slow, but I console myself with the + thought that people who use \ deserve very slow execution. + (Pun unintentional but very appropriate.) + +*/ + +type Ttre_backtrack_item_t = struct { + Fpos Tregoff_t + Fstr_byte uintptr + Fstate uintptr + Fstate_id int32 + Fnext_c int32 + Ftags uintptr +} + +type Ttre_backtrack_t = uintptr + +type Ttre_backtrack_struct = struct { + Fitem Ttre_backtrack_item_t + Fprev uintptr + Fnext uintptr +} + +func _tre_tnfa_run_backtrack(tls *TLS, tnfa uintptr, string1 uintptr, match_tags uintptr, eflags int32, match_end_ofs uintptr) (r Treg_errcode_t) { + bp := tls.Alloc(16) + defer tls.Free(16) + var bt, empty_br_match, i, i1, i2, i3, i4, next_c_start, reg_newline, reg_notbol, reg_noteol, result, ret, v20 int32 + var bt_len, eo, match_eo, pos, pos_add_next, pos_start, so, v3 Tregoff_t + var mem Ttre_mem_t + var next_state, next_tags, pmatch, state, states_seen, str_byte, str_byte_start, tags, tmp, tmp1, trans_i, v6 uintptr + var prev_c Ttre_char_t + var s, s1, stack Ttre_backtrack_t + var _ /* next_c at bp+0 */ Ttre_char_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = bt, bt_len, empty_br_match, eo, i, i1, i2, i3, i4, match_eo, mem, next_c_start, next_state, next_tags, pmatch, pos, pos_add_next, pos_start, prev_c, reg_newline, reg_notbol, reg_noteol, result, ret, s, s1, so, stack, state, states_seen, str_byte, str_byte_start, tags, tmp, tmp1, trans_i, v20, v3, v6 + /* State variables required by GET_NEXT_WCHAR. */ + prev_c = 0 + **(**Ttre_char_t)(__ccgo_up(bp)) = 0 + str_byte = string1 + pos = 0 + pos_add_next = int64(1) + reg_notbol = eflags & int32(REG_NOTBOL) + reg_noteol = eflags & int32(REG_NOTEOL) + reg_newline = (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags & int32(REG_NEWLINE) + pos_start = int64(-int32(1)) + /* End offset of best match so far, or -1 if no match found yet. */ + match_eo = int64(-int32(1)) + tags = UintptrFromInt32(0) + states_seen = UintptrFromInt32(0) + /* Memory allocator to for allocating the backtracking stack. */ + mem = X__tre_mem_new_impl(tls, 0, UintptrFromInt32(0)) + pmatch = UintptrFromInt32(0) + if !(mem != 0) { + return int32(REG_ESPACE) + } + stack = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint64(56)) + if !(stack != 0) { + ret = int32(REG_ESPACE) + goto error_exit + } + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fprev = UintptrFromInt32(0) + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fnext = UintptrFromInt32(0) + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags != 0 { + tags = Xmalloc(tls, uint64(8)*Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags)) + if !(tags != 0) { + ret = int32(REG_ESPACE) + goto error_exit + } + } + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_submatches != 0 { + pmatch = Xmalloc(tls, uint64(16)*uint64((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_submatches)) + if !(pmatch != 0) { + ret = int32(REG_ESPACE) + goto error_exit + } + } + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states != 0 { + states_seen = Xmalloc(tls, uint64(4)*Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states)) + if !(states_seen != 0) { + ret = int32(REG_ESPACE) + goto error_exit + } + } + goto retry +retry: + ; + i = 0 + for { + if !(i < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags) { + break + } + **(**Tregoff_t)(__ccgo_up(tags + uintptr(i)*8)) = int64(-int32(1)) + if match_tags != 0 { + **(**Tregoff_t)(__ccgo_up(match_tags + uintptr(i)*8)) = int64(-int32(1)) + } + goto _1 + _1: + ; + i = i + 1 + } + i = 0 + for { + if !(i < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states) { + break + } + **(**int32)(__ccgo_up(states_seen + uintptr(i)*4)) = 0 + goto _2 + _2: + ; + i = i + 1 + } + state = UintptrFromInt32(0) + pos = pos_start + prev_c = **(**Ttre_char_t)(__ccgo_up(bp)) + pos = pos + pos_add_next + v3 = int64(Xmbtowc(tls, bp, str_byte, uint64(MB_LEN_MAX))) + pos_add_next = v3 + if v3 <= 0 { + if pos_add_next < 0 { + ret = int32(REG_NOMATCH) + goto error_exit + } else { + pos_add_next = pos_add_next + 1 + } + } + str_byte = str_byte + uintptr(pos_add_next) + pos_start = pos + next_c_start = **(**Ttre_char_t)(__ccgo_up(bp)) + str_byte_start = str_byte + /* Handle initial states. */ + next_tags = UintptrFromInt32(0) + trans_i = (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Finitial + for { + if !((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate != 0) { + break + } + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions != 0 && ((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_BOL) != 0 && (pos > 0 || reg_notbol != 0) && (prev_c != int32('\n') || !(reg_newline != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_EOL) != 0 && (**(**Ttre_char_t)(__ccgo_up(bp)) != int32('\000') || reg_noteol != 0) && (**(**Ttre_char_t)(__ccgo_up(bp)) != int32('\n') || !(reg_newline != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_BOW) != 0 && (prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0 || !(**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_EOW) != 0 && (!(prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0) || (**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_WB) != 0 && (pos != 0 && **(**Ttre_char_t)(__ccgo_up(bp)) != int32('\000') && BoolInt32(prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0) == BoolInt32(**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_WB_NEG) != 0 && (pos == 0 || **(**Ttre_char_t)(__ccgo_up(bp)) == int32('\000') || BoolInt32(prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0) != BoolInt32(**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0))) { + goto _4 + } + if state == UintptrFromInt32(0) { + /* Start from this state. */ + state = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate + next_tags = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Ftags + } else { + /* Backtrack to this state. */ + if !((*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fnext != 0) { + s = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint64(56)) + if !(s != 0) { + X__tre_mem_destroy(tls, mem) + if tags != 0 { + Xfree(tls, tags) + } + if pmatch != 0 { + Xfree(tls, pmatch) + } + if states_seen != 0 { + Xfree(tls, states_seen) + } + return int32(REG_ESPACE) + } + (*Ttre_backtrack_struct)(unsafe.Pointer(s)).Fprev = stack + (*Ttre_backtrack_struct)(unsafe.Pointer(s)).Fnext = UintptrFromInt32(0) + (*Ttre_backtrack_struct)(unsafe.Pointer(s)).Fitem.Ftags = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint64(8)*Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags)) + if !((*Ttre_backtrack_struct)(unsafe.Pointer(s)).Fitem.Ftags != 0) { + X__tre_mem_destroy(tls, mem) + if tags != 0 { + Xfree(tls, tags) + } + if pmatch != 0 { + Xfree(tls, pmatch) + } + if states_seen != 0 { + Xfree(tls, states_seen) + } + return int32(REG_ESPACE) + } + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fnext = s + stack = s + } else { + stack = (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fnext + } + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fpos = pos + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstr_byte = str_byte + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstate = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstate_id = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fnext_c = **(**Ttre_char_t)(__ccgo_up(bp)) + i1 = 0 + for { + if !(i1 < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags) { + break + } + **(**Tregoff_t)(__ccgo_up((*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Ftags + uintptr(i1)*8)) = **(**Tregoff_t)(__ccgo_up(tags + uintptr(i1)*8)) + goto _5 + _5: + ; + i1 = i1 + 1 + } + tmp = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Ftags + if tmp != 0 { + for **(**int32)(__ccgo_up(tmp)) >= 0 { + v6 = tmp + tmp += 4 + **(**Tregoff_t)(__ccgo_up((*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Ftags + uintptr(**(**int32)(__ccgo_up(v6)))*8)) = pos + } + } + } + goto _4 + _4: + ; + trans_i += 56 + } + if next_tags != 0 { + for { + if !(**(**int32)(__ccgo_up(next_tags)) >= 0) { + break + } + **(**Tregoff_t)(__ccgo_up(tags + uintptr(**(**int32)(__ccgo_up(next_tags)))*8)) = pos + goto _7 + _7: + ; + next_tags += 4 + } + } + if state == UintptrFromInt32(0) { + goto backtrack + } +_9: + ; + if !(int32(1) != 0) { + goto _8 + } + if state == (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ffinal { + if match_eo < pos || match_eo == pos && match_tags != 0 && _tre_tag_order(tls, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions, tags, match_tags) != 0 { + /* This match wins the previous match. */ + match_eo = pos + if match_tags != 0 { + i2 = 0 + for { + if !(i2 < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags) { + break + } + **(**Tregoff_t)(__ccgo_up(match_tags + uintptr(i2)*8)) = **(**Tregoff_t)(__ccgo_up(tags + uintptr(i2)*8)) + goto _10 + _10: + ; + i2 = i2 + 1 + } + } + } + /* Our TNFAs never have transitions leaving from the final state, + so we jump right to backtracking. */ + goto backtrack + } + /* Go to the next character in the input string. */ + empty_br_match = 0 + trans_i = state + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate != 0 && (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_BACKREF) != 0 { + bt = *(*int32)(unsafe.Pointer(&(*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fu)) + /* Get the substring we need to match against. Remember to + turn off REG_NOSUB temporarily. */ + _tre_fill_pmatch(tls, Uint64FromInt32(bt+int32(1)), pmatch, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags & ^Int32FromInt32(REG_NOSUB), tnfa, tags, pos) + so = (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(bt)*16))).Frm_so + eo = (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(bt)*16))).Frm_eo + bt_len = eo - so + result = Xstrncmp(tls, string1+uintptr(so), str_byte-uintptr(1), Uint64FromInt64(bt_len)) + if result == 0 { + /* Back reference matched. Check for infinite loop. */ + if bt_len == 0 { + empty_br_match = int32(1) + } + if empty_br_match != 0 && **(**int32)(__ccgo_up(states_seen + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*4)) != 0 { + goto backtrack + } + **(**int32)(__ccgo_up(states_seen + uintptr((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id)*4)) = empty_br_match + /* Advance in input string and resync `prev_c', `next_c' + and pos. */ + str_byte = str_byte + uintptr(bt_len-int64(1)) + pos = pos + (bt_len - int64(1)) + prev_c = **(**Ttre_char_t)(__ccgo_up(bp)) + pos = pos + pos_add_next + v3 = int64(Xmbtowc(tls, bp, str_byte, uint64(MB_LEN_MAX))) + pos_add_next = v3 + if v3 <= 0 { + if pos_add_next < 0 { + ret = int32(REG_NOMATCH) + goto error_exit + } else { + pos_add_next = pos_add_next + 1 + } + } + str_byte = str_byte + uintptr(pos_add_next) + } else { + goto backtrack + } + } else { + /* Check for end of string. */ + if **(**Ttre_char_t)(__ccgo_up(bp)) == int32('\000') { + goto backtrack + } + /* Read the next character. */ + prev_c = **(**Ttre_char_t)(__ccgo_up(bp)) + pos = pos + pos_add_next + v3 = int64(Xmbtowc(tls, bp, str_byte, uint64(MB_LEN_MAX))) + pos_add_next = v3 + if v3 <= 0 { + if pos_add_next < 0 { + ret = int32(REG_NOMATCH) + goto error_exit + } else { + pos_add_next = pos_add_next + 1 + } + } + str_byte = str_byte + uintptr(pos_add_next) + } + next_state = UintptrFromInt32(0) + trans_i = state + for { + if !((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate != 0) { + break + } + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fcode_min <= Uint32FromInt32(prev_c) && (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fcode_max >= Uint32FromInt32(prev_c) { + if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions != 0 && ((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_BOL) != 0 && (pos > 0 || reg_notbol != 0) && (prev_c != int32('\n') || !(reg_newline != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_EOL) != 0 && (**(**Ttre_char_t)(__ccgo_up(bp)) != int32('\000') || reg_noteol != 0) && (**(**Ttre_char_t)(__ccgo_up(bp)) != int32('\n') || !(reg_newline != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_BOW) != 0 && (prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0 || !(**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_EOW) != 0 && (!(prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0) || (**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_WB) != 0 && (pos != 0 && **(**Ttre_char_t)(__ccgo_up(bp)) != int32('\000') && BoolInt32(prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0) == BoolInt32(**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_AT_WB_NEG) != 0 && (pos == 0 || **(**Ttre_char_t)(__ccgo_up(bp)) == int32('\000') || BoolInt32(prev_c == int32('_') || Xiswalnum(tls, Uint32FromInt32(prev_c)) != 0) != BoolInt32(**(**Ttre_char_t)(__ccgo_up(bp)) == int32('_') || Xiswalnum(tls, Uint32FromInt32(**(**Ttre_char_t)(__ccgo_up(bp)))) != 0)) || ((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_CHAR_CLASS) != 0 && !((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags&Int32FromInt32(REG_ICASE) != 0) && !(Xiswctype(tls, Uint32FromInt32(prev_c), *(*Ttre_ctype_t)(unsafe.Pointer(trans_i + 40))) != 0) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_CHAR_CLASS) != 0 && (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags&int32(REG_ICASE) != 0 && !(Xiswctype(tls, Xtowlower(tls, Uint32FromInt32(prev_c)), *(*Ttre_ctype_t)(unsafe.Pointer(trans_i + 40))) != 0) && !(Xiswctype(tls, Xtowupper(tls, Uint32FromInt32(prev_c)), *(*Ttre_ctype_t)(unsafe.Pointer(trans_i + 40))) != 0) || (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fassertions&int32(ASSERT_CHAR_CLASS_NEG) != 0 && _tre_neg_char_classes_match(tls, (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fneg_classes, Uint32FromInt32(prev_c), (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags&int32(REG_ICASE)) != 0)) { + goto _13 + } + if next_state == UintptrFromInt32(0) { + /* First matching transition. */ + next_state = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate + next_tags = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Ftags + } else { + /* Second matching transition. We may need to backtrack here + to take this transition instead of the first one, so we + push this transition in the backtracking stack so we can + jump back here if needed. */ + if !((*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fnext != 0) { + s1 = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint64(56)) + if !(s1 != 0) { + X__tre_mem_destroy(tls, mem) + if tags != 0 { + Xfree(tls, tags) + } + if pmatch != 0 { + Xfree(tls, pmatch) + } + if states_seen != 0 { + Xfree(tls, states_seen) + } + return int32(REG_ESPACE) + } + (*Ttre_backtrack_struct)(unsafe.Pointer(s1)).Fprev = stack + (*Ttre_backtrack_struct)(unsafe.Pointer(s1)).Fnext = UintptrFromInt32(0) + (*Ttre_backtrack_struct)(unsafe.Pointer(s1)).Fitem.Ftags = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint64(8)*Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags)) + if !((*Ttre_backtrack_struct)(unsafe.Pointer(s1)).Fitem.Ftags != 0) { + X__tre_mem_destroy(tls, mem) + if tags != 0 { + Xfree(tls, tags) + } + if pmatch != 0 { + Xfree(tls, pmatch) + } + if states_seen != 0 { + Xfree(tls, states_seen) + } + return int32(REG_ESPACE) + } + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fnext = s1 + stack = s1 + } else { + stack = (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fnext + } + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fpos = pos + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstr_byte = str_byte + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstate = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstate_id = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id + (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fnext_c = **(**Ttre_char_t)(__ccgo_up(bp)) + i3 = 0 + for { + if !(i3 < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags) { + break + } + **(**Tregoff_t)(__ccgo_up((*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Ftags + uintptr(i3)*8)) = **(**Tregoff_t)(__ccgo_up(tags + uintptr(i3)*8)) + goto _14 + _14: + ; + i3 = i3 + 1 + } + tmp1 = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Ftags + for { + if !(tmp1 != 0 && **(**int32)(__ccgo_up(tmp1)) >= 0) { + break + } + **(**Tregoff_t)(__ccgo_up((*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Ftags + uintptr(**(**int32)(__ccgo_up(tmp1)))*8)) = pos + goto _15 + _15: + ; + tmp1 += 4 + } + } + } + goto _13 + _13: + ; + trans_i += 56 + } + if !(next_state != UintptrFromInt32(0)) { + goto _16 + } + /* Matching transitions were found. Take the first one. */ + state = next_state + /* Update the tag values. */ + if next_tags != 0 { + for **(**int32)(__ccgo_up(next_tags)) >= 0 { + v6 = next_tags + next_tags += 4 + **(**Tregoff_t)(__ccgo_up(tags + uintptr(**(**int32)(__ccgo_up(v6)))*8)) = pos + } + } + goto _17 +_16: + ; + goto backtrack +backtrack: + ; + /* A matching transition was not found. Try to backtrack. */ + if (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fprev != 0 { + if (*Ttre_tnfa_transition_t)(unsafe.Pointer((*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstate)).Fassertions&int32(ASSERT_BACKREF) != 0 { + **(**int32)(__ccgo_up(states_seen + uintptr((*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstate_id)*4)) = 0 + } + pos = (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fpos + str_byte = (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstr_byte + state = (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstate + **(**Ttre_char_t)(__ccgo_up(bp)) = (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fnext_c + i4 = 0 + for { + if !(i4 < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags) { + break + } + **(**Tregoff_t)(__ccgo_up(tags + uintptr(i4)*8)) = **(**Tregoff_t)(__ccgo_up((*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Ftags + uintptr(i4)*8)) + goto _19 + _19: + ; + i4 = i4 + 1 + } + stack = (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fprev + } else { + if match_eo < 0 { + /* Try starting from a later position in the input string. */ + /* Check for end of string. */ + if **(**Ttre_char_t)(__ccgo_up(bp)) == int32('\000') { + goto _8 + } + **(**Ttre_char_t)(__ccgo_up(bp)) = next_c_start + str_byte = str_byte_start + goto retry + } else { + goto _8 + } + } +_17: + ; + goto _9 +_8: + ; + if match_eo >= 0 { + v20 = REG_OK + } else { + v20 = int32(REG_NOMATCH) + } + ret = v20 + **(**Tregoff_t)(__ccgo_up(match_end_ofs)) = match_eo + goto error_exit +error_exit: + ; + X__tre_mem_destroy(tls, mem) + if tags != 0 { + Xfree(tls, tags) + } + if pmatch != 0 { + Xfree(tls, pmatch) + } + if states_seen != 0 { + Xfree(tls, states_seen) + } + return ret +} + +/*********************************************************************** + from regexec.c +***********************************************************************/ + +// C documentation +// +// /* Fills the POSIX.2 regmatch_t array according to the TNFA tag and match +// endpoint values. */ +func _tre_fill_pmatch(tls *TLS, nmatch Tsize_t, pmatch uintptr, cflags int32, tnfa uintptr, tags uintptr, match_eo Tregoff_t) { + var i, j uint32 + var parents, submatch_data uintptr + var v1 Tregoff_t + _, _, _, _, _ = i, j, parents, submatch_data, v1 + i = uint32(0) + if match_eo >= 0 && !(cflags&Int32FromInt32(REG_NOSUB) != 0) { + /* Construct submatch offsets from the tags. */ + submatch_data = (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fsubmatch_data + for i < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_submatches && uint64(i) < nmatch { + if (**(**Ttre_submatch_data_t)(__ccgo_up(submatch_data + uintptr(i)*16))).Fso_tag == (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fend_tag { + (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_so = match_eo + } else { + (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_so = **(**Tregoff_t)(__ccgo_up(tags + uintptr((**(**Ttre_submatch_data_t)(__ccgo_up(submatch_data + uintptr(i)*16))).Fso_tag)*8)) + } + if (**(**Ttre_submatch_data_t)(__ccgo_up(submatch_data + uintptr(i)*16))).Feo_tag == (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fend_tag { + (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_eo = match_eo + } else { + (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_eo = **(**Tregoff_t)(__ccgo_up(tags + uintptr((**(**Ttre_submatch_data_t)(__ccgo_up(submatch_data + uintptr(i)*16))).Feo_tag)*8)) + } + /* If either of the endpoints were not used, this submatch + was not part of the match. */ + if (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_so == int64(-int32(1)) || (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_eo == int64(-int32(1)) { + v1 = int64(-Int32FromInt32(1)) + (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_eo = v1 + (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_so = v1 + } + i = i + 1 + } + /* Reset all submatches that are not within all of their parent + submatches. */ + i = uint32(0) + for i < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_submatches && uint64(i) < nmatch { + if (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_eo == int64(-int32(1)) { + } + parents = (**(**Ttre_submatch_data_t)(__ccgo_up(submatch_data + uintptr(i)*16))).Fparents + if parents != UintptrFromInt32(0) { + j = uint32(0) + for { + if !(**(**int32)(__ccgo_up(parents + uintptr(j)*4)) >= 0) { + break + } + if (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_so < (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(**(**int32)(__ccgo_up(parents + uintptr(j)*4)))*16))).Frm_so || (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_eo > (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(**(**int32)(__ccgo_up(parents + uintptr(j)*4)))*16))).Frm_eo { + v1 = int64(-Int32FromInt32(1)) + (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_eo = v1 + (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_so = v1 + } + goto _2 + _2: + ; + j = j + 1 + } + } + i = i + 1 + } + } + for uint64(i) < nmatch { + (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_so = int64(-int32(1)) + (**(**Tregmatch_t)(__ccgo_up(pmatch + uintptr(i)*16))).Frm_eo = int64(-int32(1)) + i = i + 1 + } +} + +/* + Wrapper functions for POSIX compatible regexp matching. +*/ + +func Xregexec(tls *TLS, preg uintptr, string1 uintptr, nmatch Tsize_t, pmatch uintptr, eflags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v preg=%v string1=%v nmatch=%v pmatch=%v eflags=%v, (%v:)", tls, preg, string1, nmatch, pmatch, eflags, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var status Treg_errcode_t + var tags, tnfa uintptr + var _ /* eo at bp+0 */ Tregoff_t + _, _, _ = status, tags, tnfa + tnfa = (*Tregex_t)(unsafe.Pointer(preg)).F__opaque + tags = UintptrFromInt32(0) + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags&int32(REG_NOSUB) != 0 { + nmatch = uint64(0) + } + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags > 0 && nmatch > uint64(0) { + tags = Xmalloc(tls, uint64(8)*Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags)) + if tags == UintptrFromInt32(0) { + return int32(REG_ESPACE) + } + } + /* Dispatch to the appropriate matcher. */ + if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fhave_backrefs != 0 { + /* The regex has back references, use the backtracking matcher. */ + status = _tre_tnfa_run_backtrack(tls, tnfa, string1, tags, eflags, bp) + } else { + /* Exact matching, no back references, use the parallel matcher. */ + status = _tre_tnfa_run_parallel(tls, tnfa, string1, tags, eflags, bp) + } + if status == REG_OK { + /* A match was found, so fill the submatch registers. */ + _tre_fill_pmatch(tls, nmatch, pmatch, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags, tnfa, tags, **(**Tregoff_t)(__ccgo_up(bp))) + } + if tags != 0 { + Xfree(tls, tags) + } + return status +} + +/* + This memory allocator is for allocating small memory blocks efficiently + in terms of memory overhead and execution speed. The allocated blocks + cannot be freed individually, only all at once. There can be multiple + allocators, though. +*/ + +// C documentation +// +// /* Returns a new memory allocator or NULL if out of memory. */ +func X__tre_mem_new_impl(tls *TLS, provided int32, provided_block uintptr) (r Ttre_mem_t) { + if __ccgo_strace { + trc("tls=%v provided=%v provided_block=%v, (%v:)", tls, provided, provided_block, origin(2)) + defer func() { trc("-> %v", r) }() + } + var mem Ttre_mem_t + _ = mem + if provided != 0 { + mem = provided_block + Xmemset(tls, mem, 0, uint64(48)) + } else { + mem = Xcalloc(tls, uint64(1), uint64(48)) + } + if mem == UintptrFromInt32(0) { + return UintptrFromInt32(0) + } + return mem +} + +// C documentation +// +// /* Frees the memory allocator and all memory allocated with it. */ +func X__tre_mem_destroy(tls *TLS, mem Ttre_mem_t) { + if __ccgo_strace { + trc("tls=%v mem=%v, (%v:)", tls, mem, origin(2)) + } + var l, tmp uintptr + _, _ = l, tmp + l = (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fblocks + for l != UintptrFromInt32(0) { + Xfree(tls, (*Ttre_list_t)(unsafe.Pointer(l)).Fdata) + tmp = (*Ttre_list_t)(unsafe.Pointer(l)).Fnext + Xfree(tls, l) + l = tmp + } + Xfree(tls, mem) +} + +// C documentation +// +// /* Allocates a block of `size' bytes from `mem'. Returns a pointer to the +// allocated block or NULL if an underlying malloc() failed. */ +func X__tre_mem_alloc_impl(tls *TLS, mem Ttre_mem_t, provided int32, provided_block uintptr, zero int32, size Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v mem=%v provided=%v provided_block=%v zero=%v size=%v, (%v:)", tls, mem, provided, provided_block, zero, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + var block_size int32 + var l, ptr uintptr + var v1 uint64 + _, _, _, _ = block_size, l, ptr, v1 + if (*Ttre_mem_struct)(unsafe.Pointer(mem)).Ffailed != 0 { + return UintptrFromInt32(0) + } + if (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fn < size { + if provided != 0 { + if provided_block == UintptrFromInt32(0) { + (*Ttre_mem_struct)(unsafe.Pointer(mem)).Ffailed = int32(1) + return UintptrFromInt32(0) + } + (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fptr = provided_block + (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fn = uint64(TRE_MEM_BLOCK_SIZE) + } else { + if size*uint64(8) > uint64(TRE_MEM_BLOCK_SIZE) { + block_size = Int32FromUint64(size * uint64(8)) + } else { + block_size = int32(TRE_MEM_BLOCK_SIZE) + } + l = Xmalloc(tls, uint64(16)) + if l == UintptrFromInt32(0) { + (*Ttre_mem_struct)(unsafe.Pointer(mem)).Ffailed = int32(1) + return UintptrFromInt32(0) + } + (*Ttre_list_t)(unsafe.Pointer(l)).Fdata = Xmalloc(tls, Uint64FromInt32(block_size)) + if (*Ttre_list_t)(unsafe.Pointer(l)).Fdata == UintptrFromInt32(0) { + Xfree(tls, l) + (*Ttre_mem_struct)(unsafe.Pointer(mem)).Ffailed = int32(1) + return UintptrFromInt32(0) + } + (*Ttre_list_t)(unsafe.Pointer(l)).Fnext = UintptrFromInt32(0) + if (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fcurrent != UintptrFromInt32(0) { + (*Ttre_list_t)(unsafe.Pointer((*Ttre_mem_struct)(unsafe.Pointer(mem)).Fcurrent)).Fnext = l + } + if (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fblocks == UintptrFromInt32(0) { + (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fblocks = l + } + (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fcurrent = l + (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fptr = (*Ttre_list_t)(unsafe.Pointer(l)).Fdata + (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fn = Uint64FromInt32(block_size) + } + } + /* Make sure the next pointer will be aligned. */ + if (Uint64FromInt64(int64((*Ttre_mem_struct)(unsafe.Pointer(mem)).Fptr))+size)%uint64(8) != 0 { + v1 = uint64(8) - (Uint64FromInt64(int64((*Ttre_mem_struct)(unsafe.Pointer(mem)).Fptr))+size)%uint64(8) + } else { + v1 = uint64(0) + } + size = size + v1 + /* Allocate from current block. */ + ptr = (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fptr + **(**uintptr)(__ccgo_up(mem + 16)) += uintptr(size) + **(**Tsize_t)(__ccgo_up(mem + 24)) -= size + /* Set to zero if needed. */ + if zero != 0 { + Xmemset(tls, ptr, 0, size) + } + return ptr +} + +const MAXSIZE = 1 +const MINSIZE = 8 + +type TACTION = int32 + +const _FIND = 0 +const _ENTER = 1 + +type TVISIT = int32 + +const _preorder = 0 +const _postorder = 1 +const _endorder = 2 +const _leaf = 3 + +type TENTRY = struct { + Fkey uintptr + Fdata uintptr +} + +type Tentry = TENTRY + +type Thsearch_data = struct { + F__tab uintptr + F__unused1 uint32 + F__unused2 uint32 +} + +type Tqelem = struct { + Fq_forw uintptr + Fq_back uintptr + Fq_data [1]uint8 +} + +/* +open addressing hash table with 2^n table size +quadratic probing is used in case of hash collision +tab indices and hash are size_t +after resize fails with ENOMEM the state of tab is still usable + +with the posix api items cannot be iterated and length cannot be queried +*/ + +type t__tab = struct { + Fentries uintptr + Fmask Tsize_t + Fused Tsize_t +} + +var _htab Thsearch_data + +func _keyhash(tls *TLS, k uintptr) (r Tsize_t) { + var h Tsize_t + var p, v1 uintptr + _, _, _ = h, p, v1 + p = k + h = uint64(0) + for **(**uint8)(__ccgo_up(p)) != 0 { + v1 = p + p = p + 1 + h = uint64(31)*h + uint64(**(**uint8)(__ccgo_up(v1))) + } + return h +} + +func _resize(tls *TLS, nel Tsize_t, htab uintptr) (r int32) { + var e, newe, oldtab uintptr + var i, j, newsize, oldsize, v4 Tsize_t + _, _, _, _, _, _, _, _ = e, i, j, newe, newsize, oldsize, oldtab, v4 + oldsize = (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fmask + uint64(1) + oldtab = (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fentries + if nel > Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(2)+Uint64FromInt32(1) { + nel = Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(2) + Uint64FromInt32(1) + } + newsize = uint64(MINSIZE) + for { + if !(newsize < nel) { + break + } + goto _1 + _1: + ; + newsize = newsize * uint64(2) + } + (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fentries = Xcalloc(tls, newsize, uint64(16)) + if !((*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fentries != 0) { + (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fentries = oldtab + return 0 + } + (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fmask = newsize - uint64(1) + if !(oldtab != 0) { + return int32(1) + } + e = oldtab + for { + if !(e < oldtab+uintptr(oldsize)*16) { + break + } + if (*TENTRY)(unsafe.Pointer(e)).Fkey != 0 { + i = _keyhash(tls, (*TENTRY)(unsafe.Pointer(e)).Fkey) + j = Uint64FromInt32(1) + for { + newe = (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fentries + uintptr(i&(*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fmask)*16 + if !((*TENTRY)(unsafe.Pointer(newe)).Fkey != 0) { + break + } + goto _3 + _3: + ; + v4 = j + j = j + 1 + i = i + v4 + } + **(**TENTRY)(__ccgo_up(newe)) = **(**TENTRY)(__ccgo_up(e)) + } + goto _2 + _2: + ; + e += 16 + } + Xfree(tls, oldtab) + return int32(1) +} + +func Xhcreate(tls *TLS, nel Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v nel=%v, (%v:)", tls, nel, origin(2)) + defer func() { trc("-> %v", r) }() + } + return ___hcreate_r(tls, nel, uintptr(unsafe.Pointer(&_htab))) +} + +func Xhdestroy(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + ___hdestroy_r(tls, uintptr(unsafe.Pointer(&_htab))) +} + +func _lookup(tls *TLS, key uintptr, hash Tsize_t, htab uintptr) (r uintptr) { + var e uintptr + var i, j, v2 Tsize_t + _, _, _, _ = e, i, j, v2 + i = hash + j = Uint64FromInt32(1) + for { + e = (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fentries + uintptr(i&(*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fmask)*16 + if !((*TENTRY)(unsafe.Pointer(e)).Fkey != 0) || Xstrcmp(tls, (*TENTRY)(unsafe.Pointer(e)).Fkey, key) == 0 { + break + } + goto _1 + _1: + ; + v2 = j + j = j + 1 + i = i + v2 + } + return e +} + +func Xhsearch(tls *TLS, item TENTRY, action TACTION) (r uintptr) { + if __ccgo_strace { + trc("tls=%v item=%v action=%v, (%v:)", tls, item, action, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* e at bp+0 */ uintptr + ___hsearch_r(tls, item, action, bp, uintptr(unsafe.Pointer(&_htab))) + return **(**uintptr)(__ccgo_up(bp)) +} + +func ___hcreate_r(tls *TLS, nel Tsize_t, htab uintptr) (r1 int32) { + var r int32 + _ = r + (*Thsearch_data)(unsafe.Pointer(htab)).F__tab = Xcalloc(tls, uint64(1), uint64(24)) + if !((*Thsearch_data)(unsafe.Pointer(htab)).F__tab != 0) { + return 0 + } + r = _resize(tls, nel, htab) + if r == 0 { + Xfree(tls, (*Thsearch_data)(unsafe.Pointer(htab)).F__tab) + (*Thsearch_data)(unsafe.Pointer(htab)).F__tab = uintptr(0) + } + return r +} + +func ___hdestroy_r(tls *TLS, htab uintptr) { + if (*Thsearch_data)(unsafe.Pointer(htab)).F__tab != 0 { + Xfree(tls, (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fentries) + } + Xfree(tls, (*Thsearch_data)(unsafe.Pointer(htab)).F__tab) + (*Thsearch_data)(unsafe.Pointer(htab)).F__tab = uintptr(0) +} + +func ___hsearch_r(tls *TLS, item TENTRY, action TACTION, retval uintptr, htab uintptr) (r int32) { + var e, v2 uintptr + var hash, v1 Tsize_t + _, _, _, _ = e, hash, v1, v2 + hash = _keyhash(tls, item.Fkey) + e = _lookup(tls, item.Fkey, hash, htab) + if (*TENTRY)(unsafe.Pointer(e)).Fkey != 0 { + **(**uintptr)(__ccgo_up(retval)) = e + return int32(1) + } + if action == int32(_FIND) { + **(**uintptr)(__ccgo_up(retval)) = uintptr(0) + return 0 + } + **(**TENTRY)(__ccgo_up(e)) = item + v2 = (*Thsearch_data)(unsafe.Pointer(htab)).F__tab + 16 + *(*Tsize_t)(unsafe.Pointer(v2)) = *(*Tsize_t)(unsafe.Pointer(v2)) + 1 + v1 = *(*Tsize_t)(unsafe.Pointer(v2)) + if v1 > (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fmask-(*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fmask/uint64(4) { + if !(_resize(tls, uint64(2)*(*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fused, htab) != 0) { + (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fused = (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fused - 1 + (*TENTRY)(unsafe.Pointer(e)).Fkey = uintptr(0) + **(**uintptr)(__ccgo_up(retval)) = uintptr(0) + return 0 + } + e = _lookup(tls, item.Fkey, hash, htab) + } + **(**uintptr)(__ccgo_up(retval)) = e + return int32(1) +} + +type Tnode = struct { + Fnext uintptr + Fprev uintptr +} + +func Xinsque(tls *TLS, element uintptr, pred uintptr) { + if __ccgo_strace { + trc("tls=%v element=%v pred=%v, (%v:)", tls, element, pred, origin(2)) + } + var e, p, v1 uintptr + _, _, _ = e, p, v1 + e = element + p = pred + if !(p != 0) { + v1 = UintptrFromInt32(0) + (*Tnode)(unsafe.Pointer(e)).Fprev = v1 + (*Tnode)(unsafe.Pointer(e)).Fnext = v1 + return + } + (*Tnode)(unsafe.Pointer(e)).Fnext = (*Tnode)(unsafe.Pointer(p)).Fnext + (*Tnode)(unsafe.Pointer(e)).Fprev = p + (*Tnode)(unsafe.Pointer(p)).Fnext = e + if (*Tnode)(unsafe.Pointer(e)).Fnext != 0 { + (*Tnode)(unsafe.Pointer((*Tnode)(unsafe.Pointer(e)).Fnext)).Fprev = e + } +} + +func Xremque(tls *TLS, element uintptr) { + if __ccgo_strace { + trc("tls=%v element=%v, (%v:)", tls, element, origin(2)) + } + var e uintptr + _ = e + e = element + if (*Tnode)(unsafe.Pointer(e)).Fnext != 0 { + (*Tnode)(unsafe.Pointer((*Tnode)(unsafe.Pointer(e)).Fnext)).Fprev = (*Tnode)(unsafe.Pointer(e)).Fprev + } + if (*Tnode)(unsafe.Pointer(e)).Fprev != 0 { + (*Tnode)(unsafe.Pointer((*Tnode)(unsafe.Pointer(e)).Fprev)).Fnext = (*Tnode)(unsafe.Pointer(e)).Fnext + } +} + +type t__ccgo_fp__Xlsearch_4 = func(*TLS, uintptr, uintptr) int32 + +func Xlsearch(tls *TLS, key uintptr, base uintptr, nelp uintptr, width Tsize_t, __ccgo_fp_compar uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v base=%v nelp=%v width=%v __ccgo_fp_compar=%v, (%v:)", tls, key, base, nelp, width, __ccgo_fp_compar, origin(2)) + defer func() { trc("-> %v", r) }() + } + var i, n Tsize_t + var p uintptr + var v1 t__predefined_size_t + _, _, _, _ = i, n, p, v1 + defer func() {}() + v1 = width + p = base + n = **(**Tsize_t)(__ccgo_up(nelp)) + i = uint64(0) + for { + if !(i < n) { + break + } + if (*(*func(*TLS, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_compar})))(tls, key, p+uintptr(i)*uintptr(v1)) == 0 { + return p + uintptr(i)*uintptr(v1) + } + goto _2 + _2: + ; + i = i + 1 + } + **(**Tsize_t)(__ccgo_up(nelp)) = n + uint64(1) + return Xmemcpy(tls, p+uintptr(n)*uintptr(v1), key, width) +} + +type t__ccgo_fp__Xlfind_4 = func(*TLS, uintptr, uintptr) int32 + +func Xlfind(tls *TLS, key uintptr, base uintptr, nelp uintptr, width Tsize_t, __ccgo_fp_compar uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v base=%v nelp=%v width=%v __ccgo_fp_compar=%v, (%v:)", tls, key, base, nelp, width, __ccgo_fp_compar, origin(2)) + defer func() { trc("-> %v", r) }() + } + var i, n Tsize_t + var p uintptr + var v1 t__predefined_size_t + _, _, _, _ = i, n, p, v1 + defer func() {}() + v1 = width + p = base + n = **(**Tsize_t)(__ccgo_up(nelp)) + i = uint64(0) + for { + if !(i < n) { + break + } + if (*(*func(*TLS, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_compar})))(tls, key, p+uintptr(i)*uintptr(v1)) == 0 { + return p + uintptr(i)*uintptr(v1) + } + goto _2 + _2: + ; + i = i + 1 + } + return uintptr(0) +} + +const MAXH = 0 + +type Tnode1 = struct { + Fkey uintptr + Fa [2]uintptr + Fh int32 +} + +type t__ccgo_fp__Xtdelete_2 = func(*TLS, uintptr, uintptr) int32 + +func Xtdelete(tls *TLS, key uintptr, rootp uintptr, __ccgo_fp_cmp uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v rootp=%v __ccgo_fp_cmp=%v, (%v:)", tls, key, rootp, __ccgo_fp_cmp, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a [97]uintptr + var c, i, v1 int32 + var child, deleted, n, parent uintptr + _, _, _, _, _, _, _, _ = a, c, child, deleted, i, n, parent, v1 + if !(rootp != 0) { + return uintptr(0) + } + n = **(**uintptr)(__ccgo_up(rootp)) + i = 0 + /* *a[0] is an arbitrary non-null pointer that is returned when + the root node is deleted. */ + v1 = i + i = i + 1 + a[v1] = rootp + v1 = i + i = i + 1 + a[v1] = rootp + for { + if !(n != 0) { + return uintptr(0) + } + c = (*(*func(*TLS, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cmp})))(tls, key, (*Tnode1)(unsafe.Pointer(n)).Fkey) + if !(c != 0) { + break + } + v1 = i + i = i + 1 + a[v1] = n + 8 + BoolUintptr(c > 0)*8 + n = **(**uintptr)(__ccgo_up(n + 8 + BoolUintptr(c > 0)*8)) + goto _3 + _3: + } + parent = **(**uintptr)(__ccgo_up(a[i-int32(2)])) + if **(**uintptr)(__ccgo_up(n + 8)) != 0 { + /* free the preceding node instead of the deleted one. */ + deleted = n + v1 = i + i = i + 1 + a[v1] = n + 8 + n = **(**uintptr)(__ccgo_up(n + 8)) + for **(**uintptr)(__ccgo_up(n + 8 + 1*8)) != 0 { + v1 = i + i = i + 1 + a[v1] = n + 8 + 1*8 + n = **(**uintptr)(__ccgo_up(n + 8 + 1*8)) + } + (*Tnode1)(unsafe.Pointer(deleted)).Fkey = (*Tnode1)(unsafe.Pointer(n)).Fkey + child = **(**uintptr)(__ccgo_up(n + 8)) + } else { + child = **(**uintptr)(__ccgo_up(n + 8 + 1*8)) + } + /* freed node has at most one child, move it up and rebalance. */ + Xfree(tls, n) + i = i - 1 + v1 = i + **(**uintptr)(__ccgo_up(a[v1])) = child + for { + i = i - 1 + v1 = i + if !(v1 != 0 && X__tsearch_balance(tls, a[i]) != 0) { + break + } + } + return parent +} + +type t__ccgo_fp__Xtdestroy_1 = func(*TLS, uintptr) + +func Xtdestroy(tls *TLS, root uintptr, __ccgo_fp_freekey uintptr) { + if __ccgo_strace { + trc("tls=%v root=%v __ccgo_fp_freekey=%v, (%v:)", tls, root, __ccgo_fp_freekey, origin(2)) + } + var r uintptr + _ = r + r = root + if r == uintptr(0) { + return + } + Xtdestroy(tls, **(**uintptr)(__ccgo_up(r + 8)), __ccgo_fp_freekey) + Xtdestroy(tls, **(**uintptr)(__ccgo_up(r + 8 + 1*8)), __ccgo_fp_freekey) + if __ccgo_fp_freekey != 0 { + (*(*func(*TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_freekey})))(tls, (*Tnode1)(unsafe.Pointer(r)).Fkey) + } + Xfree(tls, r) +} + +type t__ccgo_fp__Xtfind_2 = func(*TLS, uintptr, uintptr) int32 + +func Xtfind(tls *TLS, key uintptr, rootp uintptr, __ccgo_fp_cmp uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v rootp=%v __ccgo_fp_cmp=%v, (%v:)", tls, key, rootp, __ccgo_fp_cmp, origin(2)) + defer func() { trc("-> %v", r) }() + } + var c int32 + var n uintptr + _, _ = c, n + if !(rootp != 0) { + return uintptr(0) + } + n = **(**uintptr)(__ccgo_up(rootp)) + for { + if !(n != 0) { + break + } + c = (*(*func(*TLS, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cmp})))(tls, key, (*Tnode1)(unsafe.Pointer(n)).Fkey) + if !(c != 0) { + break + } + n = **(**uintptr)(__ccgo_up(n + 8 + BoolUintptr(c > 0)*8)) + goto _1 + _1: + } + return n +} + +func _height(tls *TLS, n uintptr) (r int32) { + var v1 int32 + _ = v1 + if n != 0 { + v1 = (*Tnode1)(unsafe.Pointer(n)).Fh + } else { + v1 = 0 + } + return v1 +} + +func _rot(tls *TLS, p uintptr, x uintptr, dir int32) (r int32) { + var hx, hz int32 + var y, z uintptr + _, _, _, _ = hx, hz, y, z + y = **(**uintptr)(__ccgo_up(x + 8 + uintptr(dir)*8)) + z = **(**uintptr)(__ccgo_up(y + 8 + BoolUintptr(!(dir != 0))*8)) + hx = (*Tnode1)(unsafe.Pointer(x)).Fh + hz = _height(tls, z) + if hz > _height(tls, **(**uintptr)(__ccgo_up(y + 8 + uintptr(dir)*8))) { + /* + * x + * / \ dir z + * A y / * / \ --> x y + * z D /| | * / \ A B C D + * B C + */ + **(**uintptr)(__ccgo_up(x + 8 + uintptr(dir)*8)) = **(**uintptr)(__ccgo_up(z + 8 + BoolUintptr(!(dir != 0))*8)) + **(**uintptr)(__ccgo_up(y + 8 + BoolUintptr(!(dir != 0))*8)) = **(**uintptr)(__ccgo_up(z + 8 + uintptr(dir)*8)) + **(**uintptr)(__ccgo_up(z + 8 + BoolUintptr(!(dir != 0))*8)) = x + **(**uintptr)(__ccgo_up(z + 8 + uintptr(dir)*8)) = y + (*Tnode1)(unsafe.Pointer(x)).Fh = hz + (*Tnode1)(unsafe.Pointer(y)).Fh = hz + (*Tnode1)(unsafe.Pointer(z)).Fh = hz + int32(1) + } else { + /* + * x y + * / \ / * A y --> x D + * / \ / * z D A z + */ + **(**uintptr)(__ccgo_up(x + 8 + uintptr(dir)*8)) = z + **(**uintptr)(__ccgo_up(y + 8 + BoolUintptr(!(dir != 0))*8)) = x + (*Tnode1)(unsafe.Pointer(x)).Fh = hz + int32(1) + (*Tnode1)(unsafe.Pointer(y)).Fh = hz + int32(2) + z = y + } + **(**uintptr)(__ccgo_up(p)) = z + return (*Tnode1)(unsafe.Pointer(z)).Fh - hx +} + +// C documentation +// +// /* balance *p, return 0 if height is unchanged. */ +func X__tsearch_balance(tls *TLS, p uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v p=%v, (%v:)", tls, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + var h0, h1, old, v1 int32 + var n uintptr + _, _, _, _, _ = h0, h1, n, old, v1 + n = **(**uintptr)(__ccgo_up(p)) + h0 = _height(tls, **(**uintptr)(__ccgo_up(n + 8))) + h1 = _height(tls, **(**uintptr)(__ccgo_up(n + 8 + 1*8))) + if Uint32FromInt32(h0-h1)+uint32(1) < uint32(3) { + old = (*Tnode1)(unsafe.Pointer(n)).Fh + if h0 < h1 { + v1 = h1 + int32(1) + } else { + v1 = h0 + int32(1) + } + (*Tnode1)(unsafe.Pointer(n)).Fh = v1 + return (*Tnode1)(unsafe.Pointer(n)).Fh - old + } + return _rot(tls, p, n, BoolInt32(h0 < h1)) +} + +type t__ccgo_fp__Xtsearch_2 = func(*TLS, uintptr, uintptr) int32 + +func Xtsearch(tls *TLS, key uintptr, rootp uintptr, __ccgo_fp_cmp uintptr) (r1 uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v rootp=%v __ccgo_fp_cmp=%v, (%v:)", tls, key, rootp, __ccgo_fp_cmp, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var a [96]uintptr + var c, i, v1 int32 + var n, r, v4 uintptr + var v7 bool + _, _, _, _, _, _, _, _ = a, c, i, n, r, v1, v4, v7 + if !(rootp != 0) { + return uintptr(0) + } + n = **(**uintptr)(__ccgo_up(rootp)) + i = 0 + v1 = i + i = i + 1 + a[v1] = rootp + for { + if !(n != 0) { + break + } + c = (*(*func(*TLS, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cmp})))(tls, key, (*Tnode1)(unsafe.Pointer(n)).Fkey) + if !(c != 0) { + return n + } + v1 = i + i = i + 1 + a[v1] = n + 8 + BoolUintptr(c > 0)*8 + n = **(**uintptr)(__ccgo_up(n + 8 + BoolUintptr(c > 0)*8)) + goto _2 + _2: + } + r = Xmalloc(tls, uint64(32)) + if !(r != 0) { + return uintptr(0) + } + (*Tnode1)(unsafe.Pointer(r)).Fkey = key + v4 = UintptrFromInt32(0) + **(**uintptr)(__ccgo_up(r + 8 + 1*8)) = v4 + **(**uintptr)(__ccgo_up(r + 8)) = v4 + (*Tnode1)(unsafe.Pointer(r)).Fh = int32(1) + /* insert new node, rebalance ancestors. */ + i = i - 1 + v1 = i + **(**uintptr)(__ccgo_up(a[v1])) = r + for { + if v7 = i != 0; v7 { + i = i - 1 + v1 = i + } + if !(v7 && X__tsearch_balance(tls, a[v1]) != 0) { + break + } + } + return r +} + +func _walk(tls *TLS, r uintptr, __ccgo_fp_action uintptr, d int32) { + if !(r != 0) { + return + } + if (*Tnode1)(unsafe.Pointer(r)).Fh == int32(1) { + (*(*func(*TLS, uintptr, TVISIT, int32))(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_action})))(tls, r, int32(_leaf), d) + } else { + (*(*func(*TLS, uintptr, TVISIT, int32))(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_action})))(tls, r, int32(_preorder), d) + _walk(tls, **(**uintptr)(__ccgo_up(r + 8)), __ccgo_fp_action, d+int32(1)) + (*(*func(*TLS, uintptr, TVISIT, int32))(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_action})))(tls, r, int32(_postorder), d) + _walk(tls, **(**uintptr)(__ccgo_up(r + 8 + 1*8)), __ccgo_fp_action, d+int32(1)) + (*(*func(*TLS, uintptr, TVISIT, int32))(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_action})))(tls, r, int32(_endorder), d) + } +} + +type t__ccgo_fp__Xtwalk_1 = func(*TLS, uintptr, int32, int32) + +func Xtwalk(tls *TLS, root uintptr, __ccgo_fp_action uintptr) { + if __ccgo_strace { + trc("tls=%v root=%v __ccgo_fp_action=%v, (%v:)", tls, root, __ccgo_fp_action, origin(2)) + } + _walk(tls, root, __ccgo_fp_action, 0) +} + +func Xpoll(tls *TLS, fds uintptr, n Tnfds_t, timeout int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fds=%v n=%v timeout=%v, (%v:)", tls, fds, n, timeout, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_poll), int64(fds), Int64FromUint64(n), int64(timeout), 0, 0, 0)))) +} + +func Xppoll(tls *TLS, fds uintptr, n Tnfds_t, to uintptr, mask uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fds=%v n=%v to=%v mask=%v, (%v:)", tls, fds, n, to, mask, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var ns, v1, v2 int64 + var s Ttime_t + var v3 uintptr + _, _, _, _, _ = ns, s, v1, v2, v3 + if to != 0 { + v1 = (*Ttimespec)(unsafe.Pointer(to)).Ftv_sec + } else { + v1 = 0 + } + s = v1 + if to != 0 { + v2 = (*Ttimespec)(unsafe.Pointer(to)).Ftv_nsec + } else { + v2 = 0 + } + ns = v2 + if to != 0 { + *(*[2]int64)(unsafe.Pointer(bp)) = [2]int64{ + 0: s, + 1: ns, + } + v3 = bp + } else { + v3 = uintptr(0) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_ppoll), int64(fds), Int64FromUint64(n), int64(v3), int64(mask), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8)), 0)))) +} + +func Xpselect(tls *TLS, n int32, rfds uintptr, wfds uintptr, efds uintptr, ts uintptr, mask uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v n=%v rfds=%v wfds=%v efds=%v ts=%v mask=%v, (%v:)", tls, n, rfds, wfds, efds, ts, mask, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var ns, v1, v2 int64 + var s Ttime_t + var v3 uintptr + var _ /* data at bp+16 */ [2]Tsyscall_arg_t + _, _, _, _, _ = ns, s, v1, v2, v3 + **(**[2]Tsyscall_arg_t)(__ccgo_up(bp + 16)) = [2]Tsyscall_arg_t{ + 0: Int64FromUint64(uint64(mask)), + 1: int64(Int32FromInt32(_NSIG) / Int32FromInt32(8)), + } + if ts != 0 { + v1 = (*Ttimespec)(unsafe.Pointer(ts)).Ftv_sec + } else { + v1 = 0 + } + s = v1 + if ts != 0 { + v2 = (*Ttimespec)(unsafe.Pointer(ts)).Ftv_nsec + } else { + v2 = 0 + } + ns = v2 + if ts != 0 { + *(*[2]int64)(unsafe.Pointer(bp)) = [2]int64{ + 0: s, + 1: ns, + } + v3 = bp + } else { + v3 = uintptr(0) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_pselect6), int64(n), int64(rfds), int64(wfds), int64(efds), int64(v3), int64(bp+16))))) +} + +func Xselect(tls *TLS, n int32, rfds uintptr, wfds uintptr, efds uintptr, tv uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v n=%v rfds=%v wfds=%v efds=%v tv=%v, (%v:)", tls, n, rfds, wfds, efds, tv, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var max_time, s Ttime_t + var ns, v1, v2 int64 + var us Tsuseconds_t + var v3 uintptr + _, _, _, _, _, _, _ = max_time, ns, s, us, v1, v2, v3 + if tv != 0 { + v1 = (*Ttimeval)(unsafe.Pointer(tv)).Ftv_sec + } else { + v1 = 0 + } + s = v1 + if tv != 0 { + v2 = (*Ttimeval)(unsafe.Pointer(tv)).Ftv_usec + } else { + v2 = 0 + } + us = v2 + max_time = Int64FromUint64(Uint64FromUint64(1)<<(Uint64FromInt32(8)*Uint64FromInt64(8)-Uint64FromInt32(1)) - Uint64FromInt32(1)) + if s < 0 || us < 0 { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL)))) + } + if us/int64(1000000) > max_time-s { + s = max_time + us = int64(999999) + ns = int64(999999999) + } else { + s = s + us/int64(1000000) + us = us % int64(1000000) + ns = us * int64(1000) + } + if tv != 0 { + *(*[2]int64)(unsafe.Pointer(bp)) = [2]int64{ + 0: s, + 1: us, + } + v3 = bp + } else { + v3 = uintptr(0) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_select), int64(n), int64(rfds), int64(wfds), int64(efds), int64(v3), 0)))) +} + +var _all_mask = [1]uint64{ + 0: -Uint64FromUint64(1), +} + +var _app_mask = [1]uint64{ + 0: uint64(0xfffffffc7fffffff), +} + +func X__block_all_sigs(tls *TLS, set uintptr) { + if __ccgo_strace { + trc("tls=%v set=%v, (%v:)", tls, set, origin(2)) + } + X__syscall4(tls, int64(SYS_rt_sigprocmask), int64(Int32FromInt32(SIG_BLOCK)), int64(uintptr(unsafe.Pointer(&_all_mask))), int64(set), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8))) +} + +func X__block_app_sigs(tls *TLS, set uintptr) { + if __ccgo_strace { + trc("tls=%v set=%v, (%v:)", tls, set, origin(2)) + } + X__syscall4(tls, int64(SYS_rt_sigprocmask), int64(Int32FromInt32(SIG_BLOCK)), int64(uintptr(unsafe.Pointer(&_app_mask))), int64(set), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8))) +} + +func X__restore_sigs(tls *TLS, set uintptr) { + if __ccgo_strace { + trc("tls=%v set=%v, (%v:)", tls, set, origin(2)) + } + X__syscall4(tls, int64(SYS_rt_sigprocmask), int64(Int32FromInt32(SIG_SETMASK)), int64(set), int64(Int32FromInt32(0)), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8))) +} + +func Xgetitimer(tls *TLS, which int32, old uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v which=%v old=%v, (%v:)", tls, which, old, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var r int32 + var _ /* old32 at bp+0 */ [4]int64 + _ = r + if uint64(8) > uint64(8) { + r = int32(X__syscall2(tls, int64(SYS_getitimer), int64(which), int64(bp))) + if !(r != 0) { + (*Titimerval)(unsafe.Pointer(old)).Fit_interval.Ftv_sec = (**(**[4]int64)(__ccgo_up(bp)))[0] + (*Titimerval)(unsafe.Pointer(old)).Fit_interval.Ftv_usec = (**(**[4]int64)(__ccgo_up(bp)))[int32(1)] + (*Titimerval)(unsafe.Pointer(old)).Fit_value.Ftv_sec = (**(**[4]int64)(__ccgo_up(bp)))[int32(2)] + (*Titimerval)(unsafe.Pointer(old)).Fit_value.Ftv_usec = (**(**[4]int64)(__ccgo_up(bp)))[int32(3)] + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_getitimer), int64(which), int64(old))))) +} + +func Xkill(tls *TLS, pid Tpid_t, sig int32) (r int32) { + if __ccgo_strace { + trc("tls=%v pid=%v sig=%v, (%v:)", tls, pid, sig, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_kill), int64(pid), int64(sig))))) +} + +func Xkillpg(tls *TLS, pgid Tpid_t, sig int32) (r int32) { + if __ccgo_strace { + trc("tls=%v pgid=%v sig=%v, (%v:)", tls, pgid, sig, origin(2)) + defer func() { trc("-> %v", r) }() + } + if pgid < 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + return Xkill(tls, -pgid, sig) +} + +func Xpsiginfo(tls *TLS, si uintptr, msg uintptr) { + if __ccgo_strace { + trc("tls=%v si=%v msg=%v, (%v:)", tls, si, msg, origin(2)) + } + Xpsignal(tls, (*Tsiginfo_t)(unsafe.Pointer(si)).Fsi_signo, msg) +} + +func Xpsignal(tls *TLS, sig int32, msg uintptr) { + if __ccgo_strace { + trc("tls=%v sig=%v msg=%v, (%v:)", tls, sig, msg, origin(2)) + } + bp := tls.Alloc(32) + defer tls.Free(32) + var __need_unlock, old_errno, old_mode, v1 int32 + var f, old_locale, s, v2, v3 uintptr + _, _, _, _, _, _, _, _, _ = __need_unlock, f, old_errno, old_locale, old_mode, s, v1, v2, v3 + f = uintptr(unsafe.Pointer(&X__stderr_FILE)) + s = Xstrsignal(tls, sig) + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + /* Save stderr's orientation and encoding rule, since psignal is not + * permitted to change them. Save errno and restore it if there is no + * error since fprintf might change it even on success but psignal is + * not permitted to do so. */ + old_locale = (*TFILE)(unsafe.Pointer(f)).Flocale + old_mode = (*TFILE)(unsafe.Pointer(f)).Fmode + old_errno = **(**int32)(__ccgo_up(X__errno_location(tls))) + if msg != 0 { + v2 = msg + } else { + v2 = __ccgo_ts + } + if msg != 0 { + v3 = __ccgo_ts + 378 + } else { + v3 = __ccgo_ts + } + if Xfprintf(tls, f, __ccgo_ts+1102, VaList(bp+8, v2, v3, s)) >= 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = old_errno + } + (*TFILE)(unsafe.Pointer(f)).Fmode = old_mode + (*TFILE)(unsafe.Pointer(f)).Flocale = old_locale + if __need_unlock != 0 { + ___unlockfile(tls, f) + } +} + +func Xraise(tls *TLS, sig int32) (r int32) { + if __ccgo_strace { + trc("tls=%v sig=%v, (%v:)", tls, sig, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(128) + defer tls.Free(128) + var ret int32 + var _ /* set at bp+0 */ Tsigset_t + _ = ret + X__block_app_sigs(tls, bp) + ret = int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_tkill), int64((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Ftid), int64(sig))))) + X__restore_sigs(tls, bp) + return ret +} + +/* These functions will not work, but suffice for targets where the + * kernel sigaction structure does not actually use sa_restorer. */ +func X__restore(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } +} + +func X__restore_rt(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } +} + +func Xsetitimer(tls *TLS, which int32, new1 uintptr, old uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v which=%v new1=%v old=%v, (%v:)", tls, which, new1, old, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var is, vs Ttime_t + var ius, vus int64 + var r int32 + var _ /* old32 at bp+32 */ [4]int64 + _, _, _, _, _ = is, ius, r, vs, vus + if uint64(8) > uint64(8) { + is = (*Titimerval)(unsafe.Pointer(new1)).Fit_interval.Ftv_sec + vs = (*Titimerval)(unsafe.Pointer(new1)).Fit_value.Ftv_sec + ius = (*Titimerval)(unsafe.Pointer(new1)).Fit_interval.Ftv_usec + vus = (*Titimerval)(unsafe.Pointer(new1)).Fit_value.Ftv_usec + if !!((Uint64FromInt64(is)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) || !!((Uint64FromInt64(vs)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EOPNOTSUPP)))) + } + *(*[4]int64)(unsafe.Pointer(bp)) = [4]int64{ + 0: is, + 1: ius, + 2: vs, + 3: vus, + } + r = int32(X__syscall3(tls, int64(SYS_setitimer), int64(which), int64(bp), int64(bp+32))) + if !(r != 0) && old != 0 { + (*Titimerval)(unsafe.Pointer(old)).Fit_interval.Ftv_sec = (**(**[4]int64)(__ccgo_up(bp + 32)))[0] + (*Titimerval)(unsafe.Pointer(old)).Fit_interval.Ftv_usec = (**(**[4]int64)(__ccgo_up(bp + 32)))[int32(1)] + (*Titimerval)(unsafe.Pointer(old)).Fit_value.Ftv_sec = (**(**[4]int64)(__ccgo_up(bp + 32)))[int32(2)] + (*Titimerval)(unsafe.Pointer(old)).Fit_value.Ftv_usec = (**(**[4]int64)(__ccgo_up(bp + 32)))[int32(3)] + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_setitimer), int64(which), int64(new1), int64(old))))) +} + +type Tk_sigaction = struct { + Fhandler uintptr + Fflags uint64 + Frestorer uintptr + Fmask [2]uint32 +} + +var _unmask_done int32 +var _handler_set [1]uint64 + +func X__get_handler_set(tls *TLS, set uintptr) { + if __ccgo_strace { + trc("tls=%v set=%v, (%v:)", tls, set, origin(2)) + } + Xmemcpy(tls, set, uintptr(unsafe.Pointer(&_handler_set)), uint64(8)) +} + +func X__libc_sigaction(tls *TLS, sig int32, sa uintptr, old1 uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v sig=%v sa=%v old1=%v, (%v:)", tls, sig, sa, old1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(80) + defer tls.Free(80) + var old, r, v11, v12, v17, v18, v4, v5 int32 + var v1, v10, v16, v3, v9 uintptr + var v2 int64 + var _ /* ksa at bp+16 */ Tk_sigaction + var _ /* ksa_old at bp+48 */ Tk_sigaction + var _ /* u at bp+8 */ struct { + Fr [0][2]Tuint32_t + Fv Tuint64_t + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = old, r, v1, v10, v11, v12, v16, v17, v18, v2, v3, v4, v5, v9 + if sa != 0 { + if uint64(*(*uintptr)(unsafe.Pointer(sa))) > uint64(1) { + v1 = uintptr(unsafe.Pointer(&_handler_set)) + uintptr(Uint64FromInt32(sig-Int32FromInt32(1))/(Uint64FromInt32(8)*Uint64FromInt64(8)))*8 + v2 = Int64FromUint64(uint64(1) << (Uint64FromInt32(sig-Int32FromInt32(1)) % (Uint64FromInt32(8) * Uint64FromInt64(8)))) + if Uint64FromInt64(8) == Uint64FromInt64(4) { + v3 = v1 + for { + old = AtomicLoadPInt32(v3) + goto _7 + _7: + ; + v4 = old + // __asm__ __volatile__ ( + // + // "cs %0, %2, %1" + // : "+d"(t), "+Q"(*p) : "d"(s) : "memory", "cc"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 4, __ccgo_ts+1517) + v5 = v4 + goto _6 + _6: + ; + if !(v5 != old) { + break + } + } + _ = old + goto _8 + _8: + } else { + v9 = v1 + *(*struct { + Fr [0][2]Tuint32_t + Fv Tuint64_t + })(unsafe.Pointer(bp + 8)) = struct { + Fr [0][2]Tuint32_t + Fv Tuint64_t + }{} + *(*uint64)(unsafe.Pointer(bp + 8)) = Uint64FromInt64(v2) + if **(**Tuint32_t)(__ccgo_up(bp + 8)) != 0 { + v10 = v9 + for { + old = AtomicLoadPInt32(v10) + goto _14 + _14: + ; + v11 = old + // __asm__ __volatile__ ( + // + // "cs %0, %2, %1" + // : "+d"(t), "+Q"(*p) : "d"(s) : "memory", "cc"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 4, __ccgo_ts+1517) + v12 = v11 + goto _13 + _13: + ; + if !(v12 != old) { + break + } + } + _ = old + goto _15 + _15: + } + if **(**Tuint32_t)(__ccgo_up(bp + 8 + 1*4)) != 0 { + v16 = v9 + uintptr(1)*4 + for { + old = AtomicLoadPInt32(v16) + goto _20 + _20: + ; + v17 = old + // __asm__ __volatile__ ( + // + // "cs %0, %2, %1" + // : "+d"(t), "+Q"(*p) : "d"(s) : "memory", "cc"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 4, __ccgo_ts+1517) + v18 = v17 + goto _19 + _19: + ; + if !(v18 != old) { + break + } + } + _ = old + goto _21 + _21: + } + } + /* If pthread_create has not yet been called, + * implementation-internal signals might not + * yet have been unblocked. They must be + * unblocked before any signal handler is + * installed, so that an application cannot + * receive an illegal sigset_t (with them + * blocked) as part of the ucontext_t passed + * to the signal handler. */ + if !(X__libc.Fthreaded != 0) && !(_unmask_done != 0) { + *(*[1]uint64)(unsafe.Pointer(bp)) = [1]uint64{ + 0: Uint64FromUint64(3) << (Int32FromInt32(32) * BoolInt32(Uint64FromInt64(8) > Uint64FromInt32(4))), + } + X__syscall4(tls, int64(SYS_rt_sigprocmask), int64(Int32FromInt32(SIG_UNBLOCK)), int64(bp), int64(Int32FromInt32(0)), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8))) + _unmask_done = int32(1) + } + if !(Uint32FromInt32((*Tsigaction)(unsafe.Pointer(sa)).Fsa_flags)&Uint32FromUint32(0x10000000) != 0) { + // __asm__ __volatile__ ("bcr 15,0" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 23, __ccgo_ts+1517) + AtomicStorePInt32(uintptr(unsafe.Pointer(&X__eintr_valid_flag)), int32(1)) + // __asm__ __volatile__ ("bcr 15,0" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 23, __ccgo_ts+1517) + } + } + (**(**Tk_sigaction)(__ccgo_up(bp + 16))).Fhandler = *(*uintptr)(unsafe.Pointer(sa)) + (**(**Tk_sigaction)(__ccgo_up(bp + 16))).Fflags = Uint64FromInt32((*Tsigaction)(unsafe.Pointer(sa)).Fsa_flags) + (**(**Tk_sigaction)(__ccgo_up(bp + 16))).Fflags |= uint64(0x04000000) + if Uint32FromInt32((*Tsigaction)(unsafe.Pointer(sa)).Fsa_flags)&uint32(4) != 0 { + v1 = __ccgo_fp(X__restore_rt) + } else { + v1 = __ccgo_fp(X__restore) + } + (**(**Tk_sigaction)(__ccgo_up(bp + 16))).Frestorer = v1 + Xmemcpy(tls, bp+16+24, sa+8, Uint64FromInt32(Int32FromInt32(_NSIG)/Int32FromInt32(8))) + } + if sa != 0 { + v1 = bp + 16 + } else { + v1 = uintptr(0) + } + if old1 != 0 { + v3 = bp + 48 + } else { + v3 = uintptr(0) + } + r = int32(X__syscall4(tls, int64(SYS_rt_sigaction), int64(sig), int64(v1), int64(v3), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8)))) + if old1 != 0 && !(r != 0) { + *(*uintptr)(unsafe.Pointer(old1)) = (**(**Tk_sigaction)(__ccgo_up(bp + 48))).Fhandler + (*Tsigaction)(unsafe.Pointer(old1)).Fsa_flags = Int32FromUint64((**(**Tk_sigaction)(__ccgo_up(bp + 48))).Fflags) + Xmemcpy(tls, old1+8, bp+48+24, Uint64FromInt32(Int32FromInt32(_NSIG)/Int32FromInt32(8))) + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func X__sigaction(tls *TLS, sig int32, sa uintptr, old uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v sig=%v sa=%v old=%v, (%v:)", tls, sig, sa, old, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var r int32 + var _ /* set at bp+0 */ [1]uint64 + _ = r + if Uint32FromInt32(sig)-uint32(32) < uint32(3) || Uint32FromInt32(sig)-uint32(1) >= Uint32FromInt32(Int32FromInt32(_NSIG)-Int32FromInt32(1)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + /* Doing anything with the disposition of SIGABRT requires a lock, + * so that it cannot be changed while abort is terminating the + * process and so any change made by abort can't be observed. */ + if sig == int32(SIGABRT) { + X__block_all_sigs(tls, bp) + ___lock(tls, uintptr(unsafe.Pointer(&X__abort_lock))) + } + r = X__libc_sigaction(tls, sig, sa, old) + if sig == int32(SIGABRT) { + ___unlock(tls, uintptr(unsafe.Pointer(&X__abort_lock))) + X__restore_sigs(tls, bp) + } + return r +} + +func Xsigaction(tls *TLS, sig int32, sa uintptr, old uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v sig=%v sa=%v old=%v, (%v:)", tls, sig, sa, old, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__sigaction(tls, sig, sa, old) +} + +func Xsigaddset(tls *TLS, set uintptr, sig int32) (r int32) { + if __ccgo_strace { + trc("tls=%v set=%v sig=%v, (%v:)", tls, set, sig, origin(2)) + defer func() { trc("-> %v", r) }() + } + var s uint32 + _ = s + s = Uint32FromInt32(sig - int32(1)) + if s >= Uint32FromInt32(Int32FromInt32(_NSIG)-Int32FromInt32(1)) || Uint32FromInt32(sig)-uint32(32) < uint32(3) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + **(**uint64)(__ccgo_up(set + uintptr(uint64(s/uint32(8))/uint64(8))*8)) |= uint64(1) << (uint64(s) & (Uint64FromInt32(8)*Uint64FromInt64(8) - Uint64FromInt32(1))) + return 0 +} + +func Xsigaltstack(tls *TLS, ss uintptr, old uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v ss=%v old=%v, (%v:)", tls, ss, old, origin(2)) + defer func() { trc("-> %v", r) }() + } + if ss != 0 { + if !((*Tstack_t)(unsafe.Pointer(ss)).Fss_flags&Int32FromInt32(SS_DISABLE) != 0) && (*Tstack_t)(unsafe.Pointer(ss)).Fss_size < uint64(MINSIGSTKSZ) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOMEM) + return -int32(1) + } + if (*Tstack_t)(unsafe.Pointer(ss)).Fss_flags&int32(SS_ONSTACK) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_sigaltstack), int64(ss), int64(old))))) +} + +const SST_SIZE = 8 + +func Xsigandset(tls *TLS, dest uintptr, left uintptr, right uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v dest=%v left=%v right=%v, (%v:)", tls, dest, left, right, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var d, l, r uintptr + var i uint64 + _, _, _, _ = d, i, l, r + i = uint64(0) + d = dest + l = left + r = right + for { + if !(i < Uint64FromInt32(Int32FromInt32(_NSIG)/Int32FromInt32(8))/Uint64FromInt64(8)) { + break + } + **(**uint64)(__ccgo_up(d + uintptr(i)*8)) = **(**uint64)(__ccgo_up(l + uintptr(i)*8)) & **(**uint64)(__ccgo_up(r + uintptr(i)*8)) + goto _1 + _1: + ; + i = i + 1 + } + return 0 +} + +func Xsigdelset(tls *TLS, set uintptr, sig int32) (r int32) { + if __ccgo_strace { + trc("tls=%v set=%v sig=%v, (%v:)", tls, set, sig, origin(2)) + defer func() { trc("-> %v", r) }() + } + var s uint32 + _ = s + s = Uint32FromInt32(sig - int32(1)) + if s >= Uint32FromInt32(Int32FromInt32(_NSIG)-Int32FromInt32(1)) || Uint32FromInt32(sig)-uint32(32) < uint32(3) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + **(**uint64)(__ccgo_up(set + uintptr(uint64(s/uint32(8))/uint64(8))*8)) &= ^(Uint64FromUint64(1) << (uint64(s) & (Uint64FromInt32(8)*Uint64FromInt64(8) - Uint64FromInt32(1)))) + return 0 +} + +func Xsigemptyset(tls *TLS, set uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v set=%v, (%v:)", tls, set, origin(2)) + defer func() { trc("-> %v", r) }() + } + **(**uint64)(__ccgo_up(set)) = uint64(0) + if Bool(uint64(8) == uint64(4)) || Bool(int32(_NSIG) > int32(65)) { + **(**uint64)(__ccgo_up(set + 1*8)) = uint64(0) + } + if Bool(uint64(8) == uint64(4)) && Bool(int32(_NSIG) > int32(65)) { + **(**uint64)(__ccgo_up(set + 2*8)) = uint64(0) + **(**uint64)(__ccgo_up(set + 3*8)) = uint64(0) + } + return 0 +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xsigfillset(tls *TLS, set uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v set=%v, (%v:)", tls, set, origin(2)) + defer func() { trc("-> %v", r) }() + } + **(**uint64)(__ccgo_up(set)) = uint64(0xfffffffc7fffffff) + if int32(_NSIG) > int32(65) { + **(**uint64)(__ccgo_up(set + 1*8)) = uint64(0xffffffffffffffff) + } + return 0 +} + +func Xsigisemptyset(tls *TLS, set uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v set=%v, (%v:)", tls, set, origin(2)) + defer func() { trc("-> %v", r) }() + } + var i Tsize_t + _ = i + i = uint64(0) + for { + if !(i < Uint64FromInt32(Int32FromInt32(_NSIG)/Int32FromInt32(8))/Uint64FromInt64(8)) { + break + } + if **(**uint64)(__ccgo_up(set + uintptr(i)*8)) != 0 { + return 0 + } + goto _1 + _1: + ; + i = i + 1 + } + return int32(1) +} + +func Xsigismember(tls *TLS, set uintptr, sig int32) (r int32) { + if __ccgo_strace { + trc("tls=%v set=%v sig=%v, (%v:)", tls, set, sig, origin(2)) + defer func() { trc("-> %v", r) }() + } + var s uint32 + _ = s + s = Uint32FromInt32(sig - int32(1)) + if s >= Uint32FromInt32(Int32FromInt32(_NSIG)-Int32FromInt32(1)) { + return 0 + } + return BoolInt32(!!(**(**uint64)(__ccgo_up(set + uintptr(uint64(s/uint32(8))/uint64(8))*8))&(Uint64FromUint64(1)<<(uint64(s)&(Uint64FromInt32(8)*Uint64FromInt64(8)-Uint64FromInt32(1)))) != 0)) +} + +func Xsigorset(tls *TLS, dest uintptr, left uintptr, right uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v dest=%v left=%v right=%v, (%v:)", tls, dest, left, right, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var d, l, r uintptr + var i uint64 + _, _, _, _ = d, i, l, r + i = uint64(0) + d = dest + l = left + r = right + for { + if !(i < Uint64FromInt32(Int32FromInt32(_NSIG)/Int32FromInt32(8))/Uint64FromInt64(8)) { + break + } + **(**uint64)(__ccgo_up(d + uintptr(i)*8)) = **(**uint64)(__ccgo_up(l + uintptr(i)*8)) | **(**uint64)(__ccgo_up(r + uintptr(i)*8)) + goto _1 + _1: + ; + i = i + 1 + } + return 0 +} + +func Xsigpending(tls *TLS, set uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v set=%v, (%v:)", tls, set, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_rt_sigpending), int64(set), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8)))))) +} + +func Xsigprocmask(tls *TLS, how int32, set uintptr, old uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v how=%v set=%v old=%v, (%v:)", tls, how, set, old, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + r = _pthread_sigmask(tls, how, set, old) + if !(r != 0) { + return r + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = r + return -int32(1) +} + +func Xsigqueue(tls *TLS, pid Tpid_t, sig int32, value Tsigval) (r1 int32) { + if __ccgo_strace { + trc("tls=%v pid=%v sig=%v value=%v, (%v:)", tls, pid, sig, value, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(256) + defer tls.Free(256) + var r int32 + var _ /* set at bp+128 */ Tsigset_t + var _ /* si at bp+0 */ Tsiginfo_t + _ = r + Xmemset(tls, bp, 0, uint64(128)) + (**(**Tsiginfo_t)(__ccgo_up(bp))).Fsi_signo = sig + (**(**Tsiginfo_t)(__ccgo_up(bp))).Fsi_code = -int32(1) + *(*Tsigval)(unsafe.Pointer(bp + 16 + 8)) = value + *(*Tuid_t)(unsafe.Pointer(bp + 16 + 4)) = Xgetuid(tls) + X__block_app_sigs(tls, bp+128) + *(*Tpid_t)(unsafe.Pointer(bp + 16)) = Xgetpid(tls) + r = int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_rt_sigqueueinfo), int64(pid), int64(sig), int64(bp))))) + X__restore_sigs(tls, bp+128) + return r +} + +func X__libc_current_sigrtmax(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Int32FromInt32(_NSIG) - Int32FromInt32(1) +} + +func X__libc_current_sigrtmin(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(35) +} + +type t__jmp_buf = [18]uint64 + +type Tjmp_buf = [1]t__jmp_buf_tag + +type t__jmp_buf_tag = struct { + F__jb t__jmp_buf + F__fl uint64 + F__ss [16]uint64 +} + +type Tsigjmp_buf = [1]t__jmp_buf_tag + +func X__sigsetjmp_tail(tls *TLS, jb uintptr, ret int32) (r int32) { + if __ccgo_strace { + trc("tls=%v jb=%v ret=%v, (%v:)", tls, jb, ret, origin(2)) + defer func() { trc("-> %v", r) }() + } + var p, v1, v2 uintptr + _, _, _ = p, v1, v2 + p = jb + 152 + if ret != 0 { + v1 = p + } else { + v1 = uintptr(0) + } + if ret != 0 { + v2 = uintptr(0) + } else { + v2 = p + } + X__syscall4(tls, int64(SYS_rt_sigprocmask), int64(Int32FromInt32(SIG_SETMASK)), int64(v1), int64(v2), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8))) + return ret +} + +func Xsigsuspend(tls *TLS, mask uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v mask=%v, (%v:)", tls, mask, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_rt_sigsuspend), int64(mask), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8)), 0, 0, 0, 0)))) +} + +func _do_sigtimedwait(tls *TLS, mask uintptr, si uintptr, ts uintptr) (r int32) { + return int32(___syscall_cp(tls, int64(SYS_rt_sigtimedwait), int64(mask), int64(si), int64(ts), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8)), 0, 0)) +} + +func Xsigtimedwait(tls *TLS, mask uintptr, si uintptr, timeout uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v mask=%v si=%v timeout=%v, (%v:)", tls, mask, si, timeout, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret int32 + _ = ret + for cond := true; cond; cond = ret == -int32(EINTR) { + ret = _do_sigtimedwait(tls, mask, si, timeout) + } + return int32(X__syscall_ret(tls, Uint64FromInt32(ret))) +} + +func Xsigwait(tls *TLS, mask uintptr, sig uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v mask=%v sig=%v, (%v:)", tls, mask, sig, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(128) + defer tls.Free(128) + var _ /* si at bp+0 */ Tsiginfo_t + if Xsigtimedwait(tls, mask, bp, uintptr(0)) < 0 { + return -int32(1) + } + **(**int32)(__ccgo_up(sig)) = (**(**Tsiginfo_t)(__ccgo_up(bp))).Fsi_signo + return 0 +} + +func Xsigwaitinfo(tls *TLS, mask uintptr, si uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v mask=%v si=%v, (%v:)", tls, mask, si, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xsigtimedwait(tls, mask, si, uintptr(0)) +} + +func X__fxstat(tls *TLS, ver int32, fd int32, buf uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v ver=%v fd=%v buf=%v, (%v:)", tls, ver, fd, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfstat(tls, fd, buf) +} + +func X__fxstatat(tls *TLS, ver int32, fd int32, path uintptr, buf uintptr, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v ver=%v fd=%v path=%v buf=%v flag=%v, (%v:)", tls, ver, fd, path, buf, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfstatat(tls, fd, path, buf, flag) +} + +func X__lxstat(tls *TLS, ver int32, path uintptr, buf uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v ver=%v path=%v buf=%v, (%v:)", tls, ver, path, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xlstat(tls, path, buf) +} + +func X__xstat(tls *TLS, ver int32, path uintptr, buf uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v ver=%v path=%v buf=%v, (%v:)", tls, ver, path, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstat(tls, path, buf) +} + +func X__xmknod(tls *TLS, ver int32, path uintptr, mode Tmode_t, dev uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v ver=%v path=%v mode=%v dev=%v, (%v:)", tls, ver, path, mode, dev, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xmknod(tls, path, mode, **(**Tdev_t)(__ccgo_up(dev))) +} + +func X__xmknodat(tls *TLS, ver int32, fd int32, path uintptr, mode Tmode_t, dev uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v ver=%v fd=%v path=%v mode=%v dev=%v, (%v:)", tls, ver, fd, path, mode, dev, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xmknodat(tls, fd, path, mode, **(**Tdev_t)(__ccgo_up(dev))) +} + +func Xchmod(tls *TLS, path uintptr, mode Tmode_t) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v mode=%v, (%v:)", tls, path, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_chmod), int64(path), Int64FromUint32(mode))))) +} + +func Xfchmod(tls *TLS, fd int32, mode Tmode_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v mode=%v, (%v:)", tls, fd, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var ret int32 + var _ /* buf at bp+0 */ [27]uint8 + _ = ret + ret = int32(X__syscall2(tls, int64(SYS_fchmod), int64(fd), Int64FromUint32(mode))) + if ret != -int32(EBADF) || X__syscall2(tls, int64(SYS_fcntl), int64(fd), int64(Int32FromInt32(F_GETFD))) < 0 { + return int32(X__syscall_ret(tls, Uint64FromInt32(ret))) + } + X__procfdname(tls, bp, Uint32FromInt32(fd)) + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_chmod), int64(bp), Int64FromUint32(mode))))) +} + +func Xfchmodat(tls *TLS, fd int32, path uintptr, mode Tmode_t, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v path=%v mode=%v flag=%v, (%v:)", tls, fd, path, mode, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(176) + defer tls.Free(176) + var fd2, ret, v1 int32 + var _ /* proc at bp+144 */ [27]uint8 + var _ /* st at bp+0 */ Tstat + _, _, _ = fd2, ret, v1 + if !(flag != 0) { + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_fchmodat), int64(fd), int64(path), Int64FromUint32(mode))))) + } + ret = int32(X__syscall4(tls, int64(SYS_fchmodat2), int64(fd), int64(path), Int64FromUint32(mode), int64(flag))) + if ret != -int32(ENOSYS) { + return int32(X__syscall_ret(tls, Uint64FromInt32(ret))) + } + if flag != int32(AT_SYMLINK_NOFOLLOW) { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL)))) + } + if Xfstatat(tls, fd, path, bp, flag) != 0 { + return -int32(1) + } + if (**(**Tstat)(__ccgo_up(bp))).Fst_mode&uint32(S_IFMT) == uint32(S_IFLNK) { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EOPNOTSUPP)))) + } + v1 = int32(X__syscall3(tls, int64(SYS_openat), int64(fd), int64(path), int64(Int32FromInt32(O_RDONLY)|Int32FromInt32(O_PATH)|Int32FromInt32(O_NOFOLLOW)|Int32FromInt32(O_NOCTTY)|Int32FromInt32(O_CLOEXEC)))) + fd2 = v1 + if v1 < 0 { + if fd2 == -int32(ELOOP) { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EOPNOTSUPP)))) + } + return int32(X__syscall_ret(tls, Uint64FromInt32(fd2))) + } + X__procfdname(tls, bp+144, Uint32FromInt32(fd2)) + ret = Xstat(tls, bp+144, bp) + if !(ret != 0) { + if (**(**Tstat)(__ccgo_up(bp))).Fst_mode&uint32(S_IFMT) == uint32(S_IFLNK) { + ret = int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EOPNOTSUPP)))) + } else { + ret = int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_fchmodat), int64(-Int32FromInt32(100)), int64(bp+144), Int64FromUint32(mode))))) + } + } + X__syscall1(tls, int64(SYS_close), int64(fd2)) + return ret +} + +func X__fstat(tls *TLS, fd int32, st uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v st=%v, (%v:)", tls, fd, st, origin(2)) + defer func() { trc("-> %v", r) }() + } + if fd < 0 { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EBADF)))) + } + return X__fstatat(tls, fd, __ccgo_ts, st, int32(AT_EMPTY_PATH)) +} + +func Xfstat(tls *TLS, fd int32, st uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v st=%v, (%v:)", tls, fd, st, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fstat(tls, fd, st) +} + +type Tstatx1 = struct { + Fstx_mask Tuint32_t + Fstx_blksize Tuint32_t + Fstx_attributes Tuint64_t + Fstx_nlink Tuint32_t + Fstx_uid Tuint32_t + Fstx_gid Tuint32_t + Fstx_mode Tuint16_t + Fpad1 Tuint16_t + Fstx_ino Tuint64_t + Fstx_size Tuint64_t + Fstx_blocks Tuint64_t + Fstx_attributes_mask Tuint64_t + Fstx_atime struct { + Ftv_sec Tint64_t + Ftv_nsec Tuint32_t + Fpad Tint32_t + } + Fstx_btime struct { + Ftv_sec Tint64_t + Ftv_nsec Tuint32_t + Fpad Tint32_t + } + Fstx_ctime struct { + Ftv_sec Tint64_t + Ftv_nsec Tuint32_t + Fpad Tint32_t + } + Fstx_mtime struct { + Ftv_sec Tint64_t + Ftv_nsec Tuint32_t + Fpad Tint32_t + } + Fstx_rdev_major Tuint32_t + Fstx_rdev_minor Tuint32_t + Fstx_dev_major Tuint32_t + Fstx_dev_minor Tuint32_t + Fspare [14]Tuint64_t +} + +func _fstatat_statx(tls *TLS, fd int32, path uintptr, st uintptr, flag int32) (r int32) { + bp := tls.Alloc(256) + defer tls.Free(256) + var ret int32 + var _ /* stx at bp+0 */ Tstatx1 + _ = ret + flag = flag | int32(AT_NO_AUTOMOUNT) + ret = int32(X__syscall5(tls, int64(SYS_statx), int64(fd), int64(path), int64(flag), int64(Int32FromInt32(0x7ff)), int64(bp))) + if ret != 0 { + return ret + } + **(**Tstat)(__ccgo_up(st)) = Tstat{ + Fst_dev: uint64(uint64((**(**Tstatx1)(__ccgo_up(bp))).Fstx_dev_major)&Uint64FromUint64(0xfffff000)<= 0 && !(**(**uint8)(__ccgo_up(path)) != 0) { + ret = int32(X__syscall2(tls, int64(SYS_fstat), int64(fd), int64(bp))) + if ret == -int32(EBADF) && X__syscall2(tls, int64(SYS_fcntl), int64(fd), int64(Int32FromInt32(F_GETFD))) >= 0 { + ret = int32(X__syscall4(tls, int64(SYS_newfstatat), int64(fd), int64(path), int64(bp), int64(flag))) + if ret == -int32(EINVAL) { + X__procfdname(tls, bp+144, Uint32FromInt32(fd)) + ret = int32(X__syscall2(tls, int64(SYS_stat), int64(bp+144), int64(bp))) + } + } + } else { + if (fd == -int32(100) || Int32FromUint8(**(**uint8)(__ccgo_up(path))) == int32('/')) && flag == int32(AT_SYMLINK_NOFOLLOW) { + ret = int32(X__syscall2(tls, int64(SYS_lstat), int64(path), int64(bp))) + } else { + if (fd == -int32(100) || Int32FromUint8(**(**uint8)(__ccgo_up(path))) == int32('/')) && !(flag != 0) { + ret = int32(X__syscall2(tls, int64(SYS_stat), int64(path), int64(bp))) + } else { + ret = int32(X__syscall4(tls, int64(SYS_newfstatat), int64(fd), int64(path), int64(bp), int64(flag))) + } + } + } + if ret != 0 { + return ret + } + **(**Tstat)(__ccgo_up(st)) = Tstat{ + Fst_dev: (**(**Tkstat)(__ccgo_up(bp))).Fst_dev, + Fst_ino: (**(**Tkstat)(__ccgo_up(bp))).Fst_ino, + Fst_nlink: (**(**Tkstat)(__ccgo_up(bp))).Fst_nlink, + Fst_mode: (**(**Tkstat)(__ccgo_up(bp))).Fst_mode, + Fst_uid: (**(**Tkstat)(__ccgo_up(bp))).Fst_uid, + Fst_gid: (**(**Tkstat)(__ccgo_up(bp))).Fst_gid, + Fst_rdev: (**(**Tkstat)(__ccgo_up(bp))).Fst_rdev, + Fst_size: (**(**Tkstat)(__ccgo_up(bp))).Fst_size, + Fst_atim: Ttimespec{ + Ftv_sec: (**(**Tkstat)(__ccgo_up(bp))).Fst_atime_sec, + Ftv_nsec: (**(**Tkstat)(__ccgo_up(bp))).Fst_atime_nsec, + }, + Fst_mtim: Ttimespec{ + Ftv_sec: (**(**Tkstat)(__ccgo_up(bp))).Fst_mtime_sec, + Ftv_nsec: (**(**Tkstat)(__ccgo_up(bp))).Fst_mtime_nsec, + }, + Fst_ctim: Ttimespec{ + Ftv_sec: (**(**Tkstat)(__ccgo_up(bp))).Fst_ctime_sec, + Ftv_nsec: (**(**Tkstat)(__ccgo_up(bp))).Fst_ctime_nsec, + }, + Fst_blksize: (**(**Tkstat)(__ccgo_up(bp))).Fst_blksize, + Fst_blocks: (**(**Tkstat)(__ccgo_up(bp))).Fst_blocks, + } + return 0 +} + +func X__fstatat(tls *TLS, fd int32, path uintptr, st uintptr, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v path=%v st=%v flag=%v, (%v:)", tls, fd, path, st, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret int32 + _ = ret + if uint64(8) < uint64(8) { + ret = _fstatat_statx(tls, fd, path, st, flag) + if ret != -int32(ENOSYS) { + return int32(X__syscall_ret(tls, Uint64FromInt32(ret))) + } + } + ret = _fstatat_kstat(tls, fd, path, st, flag) + return int32(X__syscall_ret(tls, Uint64FromInt32(ret))) +} + +func Xfstatat(tls *TLS, fd int32, path uintptr, st uintptr, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v path=%v st=%v flag=%v, (%v:)", tls, fd, path, st, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fstatat(tls, fd, path, st, flag) +} + +func Xfutimens(tls *TLS, fd int32, times uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v times=%v, (%v:)", tls, fd, times, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xutimensat(tls, fd, uintptr(0), times, 0) +} + +func X__futimesat(tls *TLS, dirfd int32, pathname uintptr, times uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v dirfd=%v pathname=%v times=%v, (%v:)", tls, dirfd, pathname, times, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var i int32 + var v2 uintptr + var _ /* ts at bp+0 */ [2]Ttimespec + _, _ = i, v2 + if times != 0 { + i = 0 + for { + if !(i < int32(2)) { + break + } + if Uint64FromInt64((**(**Ttimeval)(__ccgo_up(times + uintptr(i)*16))).Ftv_usec) >= uint64(1000000) { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL)))) + } + (**(**[2]Ttimespec)(__ccgo_up(bp)))[i].Ftv_sec = (**(**Ttimeval)(__ccgo_up(times + uintptr(i)*16))).Ftv_sec + (**(**[2]Ttimespec)(__ccgo_up(bp)))[i].Ftv_nsec = (**(**Ttimeval)(__ccgo_up(times + uintptr(i)*16))).Ftv_usec * int64(1000) + goto _1 + _1: + ; + i = i + 1 + } + } + if times != 0 { + v2 = bp + } else { + v2 = uintptr(0) + } + return Xutimensat(tls, dirfd, pathname, v2, 0) +} + +func Xfutimesat(tls *TLS, dirfd int32, pathname uintptr, times uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v dirfd=%v pathname=%v times=%v, (%v:)", tls, dirfd, pathname, times, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__futimesat(tls, dirfd, pathname, times) +} + +func Xlchmod(tls *TLS, path uintptr, mode Tmode_t) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v mode=%v, (%v:)", tls, path, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfchmodat(tls, -int32(100), path, mode, int32(AT_SYMLINK_NOFOLLOW)) +} + +func Xlstat(tls *TLS, path uintptr, buf uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v buf=%v, (%v:)", tls, path, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfstatat(tls, -int32(100), path, buf, int32(AT_SYMLINK_NOFOLLOW)) +} + +func Xmkdir(tls *TLS, path uintptr, mode Tmode_t) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v mode=%v, (%v:)", tls, path, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_mkdir), int64(path), Int64FromUint32(mode))))) +} + +func Xmkdirat(tls *TLS, fd int32, path uintptr, mode Tmode_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v path=%v mode=%v, (%v:)", tls, fd, path, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_mkdirat), int64(fd), int64(path), Int64FromUint32(mode))))) +} + +func Xmkfifo(tls *TLS, path uintptr, mode Tmode_t) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v mode=%v, (%v:)", tls, path, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xmknod(tls, path, mode|uint32(S_IFIFO), uint64(0)) +} + +func Xmkfifoat(tls *TLS, fd int32, path uintptr, mode Tmode_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v path=%v mode=%v, (%v:)", tls, fd, path, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xmknodat(tls, fd, path, mode|uint32(S_IFIFO), uint64(0)) +} + +func Xmknod(tls *TLS, path uintptr, mode Tmode_t, dev Tdev_t) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v mode=%v dev=%v, (%v:)", tls, path, mode, dev, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_mknod), int64(path), Int64FromUint32(mode), Int64FromUint64(dev))))) +} + +func Xmknodat(tls *TLS, fd int32, path uintptr, mode Tmode_t, dev Tdev_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v path=%v mode=%v dev=%v, (%v:)", tls, fd, path, mode, dev, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_mknodat), int64(fd), int64(path), Int64FromUint32(mode), Int64FromUint64(dev))))) +} + +func Xstat(tls *TLS, path uintptr, buf uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v buf=%v, (%v:)", tls, path, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfstatat(tls, -int32(100), path, buf, 0) +} + +func ___statfs(tls *TLS, path uintptr, buf uintptr) (r int32) { + **(**Tstatfs)(__ccgo_up(buf)) = Tstatfs{} + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_statfs64), int64(path), Int64FromUint64(Uint64FromInt64(88)), int64(buf))))) +} + +func Xfstatfs(tls *TLS, fd int32, buf uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v, (%v:)", tls, fd, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + **(**Tstatfs)(__ccgo_up(buf)) = Tstatfs{} + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_fstatfs64), int64(fd), Int64FromUint64(Uint64FromInt64(88)), int64(buf))))) +} + +func _fixup(tls *TLS, out uintptr, in uintptr) { + var v1 uint32 + _ = v1 + **(**Tstatvfs)(__ccgo_up(out)) = Tstatvfs{} + (*Tstatvfs)(unsafe.Pointer(out)).Ff_bsize = uint64((*Tstatfs)(unsafe.Pointer(in)).Ff_bsize) + if (*Tstatfs)(unsafe.Pointer(in)).Ff_frsize != 0 { + v1 = (*Tstatfs)(unsafe.Pointer(in)).Ff_frsize + } else { + v1 = (*Tstatfs)(unsafe.Pointer(in)).Ff_bsize + } + (*Tstatvfs)(unsafe.Pointer(out)).Ff_frsize = uint64(v1) + (*Tstatvfs)(unsafe.Pointer(out)).Ff_blocks = (*Tstatfs)(unsafe.Pointer(in)).Ff_blocks + (*Tstatvfs)(unsafe.Pointer(out)).Ff_bfree = (*Tstatfs)(unsafe.Pointer(in)).Ff_bfree + (*Tstatvfs)(unsafe.Pointer(out)).Ff_bavail = (*Tstatfs)(unsafe.Pointer(in)).Ff_bavail + (*Tstatvfs)(unsafe.Pointer(out)).Ff_files = (*Tstatfs)(unsafe.Pointer(in)).Ff_files + (*Tstatvfs)(unsafe.Pointer(out)).Ff_ffree = (*Tstatfs)(unsafe.Pointer(in)).Ff_ffree + (*Tstatvfs)(unsafe.Pointer(out)).Ff_favail = (*Tstatfs)(unsafe.Pointer(in)).Ff_ffree + (*Tstatvfs)(unsafe.Pointer(out)).Ff_fsid = Uint64FromInt32(**(**int32)(__ccgo_up(in + 48))) + (*Tstatvfs)(unsafe.Pointer(out)).Ff_flag = uint64((*Tstatfs)(unsafe.Pointer(in)).Ff_flags) + (*Tstatvfs)(unsafe.Pointer(out)).Ff_namemax = uint64((*Tstatfs)(unsafe.Pointer(in)).Ff_namelen) + (*Tstatvfs)(unsafe.Pointer(out)).Ff_type = (*Tstatfs)(unsafe.Pointer(in)).Ff_type +} + +func Xstatvfs(tls *TLS, path uintptr, buf uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v buf=%v, (%v:)", tls, path, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(96) + defer tls.Free(96) + var _ /* kbuf at bp+0 */ Tstatfs + if ___statfs(tls, path, bp) < 0 { + return -int32(1) + } + _fixup(tls, buf, bp) + return 0 +} + +func Xfstatvfs(tls *TLS, fd int32, buf uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v, (%v:)", tls, fd, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(96) + defer tls.Free(96) + var _ /* kbuf at bp+0 */ Tstatfs + if Xfstatfs(tls, fd, bp) < 0 { + return -int32(1) + } + _fixup(tls, buf, bp) + return 0 +} + +func Xumask(tls *TLS, mode Tmode_t) (r Tmode_t) { + if __ccgo_strace { + trc("tls=%v mode=%v, (%v:)", tls, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Uint32FromInt64(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_umask), Int64FromUint32(mode))))) +} + +func Xutimensat(tls *TLS, fd int32, path uintptr, times uintptr, flags int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v path=%v times=%v flags=%v, (%v:)", tls, fd, path, times, flags, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var i, r int32 + var tv uintptr + var _ /* tmp at bp+0 */ [4]int64 + _, _, _ = i, r, tv + if times != 0 && (**(**Ttimespec)(__ccgo_up(times))).Ftv_nsec == int64(UTIME_NOW) && (**(**Ttimespec)(__ccgo_up(times + 1*16))).Ftv_nsec == int64(UTIME_NOW) { + times = uintptr(0) + } + r = int32(X__syscall4(tls, int64(SYS_utimensat), int64(fd), int64(path), int64(times), int64(flags))) + if r != -int32(ENOSYS) || flags != 0 { + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) + } + tv = uintptr(0) + if times != 0 { + tv = bp + i = 0 + for { + if !(i < int32(2)) { + break + } + if Uint64FromInt64((**(**Ttimespec)(__ccgo_up(times + uintptr(i)*16))).Ftv_nsec) >= uint64(1000000000) { + if (**(**Ttimespec)(__ccgo_up(times + uintptr(i)*16))).Ftv_nsec == int64(UTIME_NOW) || (**(**Ttimespec)(__ccgo_up(times + uintptr(i)*16))).Ftv_nsec == int64(UTIME_OMIT) { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(ENOSYS)))) + } + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL)))) + } + (**(**[4]int64)(__ccgo_up(bp)))[int32(2)*i+0] = (**(**Ttimespec)(__ccgo_up(times + uintptr(i)*16))).Ftv_sec + (**(**[4]int64)(__ccgo_up(bp)))[int32(2)*i+int32(1)] = (**(**Ttimespec)(__ccgo_up(times + uintptr(i)*16))).Ftv_nsec / int64(1000) + goto _1 + _1: + ; + i = i + 1 + } + } + r = int32(X__syscall3(tls, int64(SYS_futimesat), int64(fd), int64(path), int64(tv))) + if r != -int32(ENOSYS) || fd != -int32(100) { + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) + } + r = int32(X__syscall2(tls, int64(SYS_utimes), int64(path), int64(tv))) + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func X__fclose_ca(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return (*(*func(*TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fclose1})))(tls, f) +} + +func X__fdopen(tls *TLS, fd int32, mode uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v fd=%v mode=%v, (%v:)", tls, fd, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var f, v1 uintptr + var flags, v2 int32 + var _ /* wsz at bp+0 */ Twinsize + _, _, _, _ = f, flags, v1, v2 + /* Check for valid initial mode character */ + if !(Xstrchr(tls, __ccgo_ts+1534, Int32FromUint8(**(**uint8)(__ccgo_up(mode)))) != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(0) + } + /* Allocate FILE+buffer or fail */ + v1 = Xmalloc(tls, Uint64FromInt64(232)+Uint64FromInt32(UNGET)+Uint64FromInt32(BUFSIZ)) + f = v1 + if !(v1 != 0) { + return uintptr(0) + } + /* Zero-fill only the struct, not the buffer */ + Xmemset(tls, f, 0, uint64(232)) + /* Impose mode restrictions */ + if !(Xstrchr(tls, mode, int32('+')) != 0) { + if Int32FromUint8(**(**uint8)(__ccgo_up(mode))) == int32('r') { + v2 = int32(F_NOWR) + } else { + v2 = int32(F_NORD) + } + (*TFILE)(unsafe.Pointer(f)).Fflags = Uint32FromInt32(v2) + } + /* Apply close-on-exec flag */ + if Xstrchr(tls, mode, int32('e')) != 0 { + X__syscall3(tls, int64(SYS_fcntl), int64(fd), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + } + /* Set append mode on fd if opened for append */ + if Int32FromUint8(**(**uint8)(__ccgo_up(mode))) == int32('a') { + flags = int32(X__syscall2(tls, int64(SYS_fcntl), int64(fd), int64(Int32FromInt32(F_GETFL)))) + if !(flags&Int32FromInt32(O_APPEND) != 0) { + X__syscall3(tls, int64(SYS_fcntl), int64(fd), int64(Int32FromInt32(F_SETFL)), int64(flags|Int32FromInt32(O_APPEND))) + } + **(**uint32)(__ccgo_up(f)) |= uint32(F_APP) + } + (*TFILE)(unsafe.Pointer(f)).Ffd = fd + (*TFILE)(unsafe.Pointer(f)).Fbuf = f + uintptr(232) + uintptr(UNGET) + (*TFILE)(unsafe.Pointer(f)).Fbuf_size = uint64(BUFSIZ) + /* Activate line buffered mode for terminals */ + (*TFILE)(unsafe.Pointer(f)).Flbf = -int32(1) + if !((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_NOWR) != 0) && !(X__syscall3(tls, int64(SYS_ioctl), int64(fd), int64(Int32FromInt32(TIOCGWINSZ)), int64(bp)) != 0) { + (*TFILE)(unsafe.Pointer(f)).Flbf = int32('\n') + } + /* Initialize op ptrs. No problem if some are unneeded. */ + (*TFILE)(unsafe.Pointer(f)).Fread = __ccgo_fp(X__stdio_read) + (*TFILE)(unsafe.Pointer(f)).Fwrite = __ccgo_fp(X__stdio_write) + (*TFILE)(unsafe.Pointer(f)).Fseek = __ccgo_fp(X__stdio_seek) + (*TFILE)(unsafe.Pointer(f)).Fclose1 = __ccgo_fp(X__stdio_close) + if !(X__libc.Fthreaded != 0) { + AtomicStorePInt32(f+140, -int32(1)) + } + /* Add new FILE to open file list */ + return X__ofl_add(tls, f) +} + +func Xfdopen(tls *TLS, fd int32, mode uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v fd=%v mode=%v, (%v:)", tls, fd, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fdopen(tls, fd, mode) +} + +func X__fmodeflags(tls *TLS, mode uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v mode=%v, (%v:)", tls, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + var flags int32 + _ = flags + if Xstrchr(tls, mode, int32('+')) != 0 { + flags = int32(O_RDWR) + } else { + if Int32FromUint8(**(**uint8)(__ccgo_up(mode))) == int32('r') { + flags = O_RDONLY + } else { + flags = int32(O_WRONLY) + } + } + if Xstrchr(tls, mode, int32('x')) != 0 { + flags = flags | int32(O_EXCL) + } + if Xstrchr(tls, mode, int32('e')) != 0 { + flags = flags | int32(O_CLOEXEC) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(mode))) != int32('r') { + flags = flags | int32(O_CREAT) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(mode))) == int32('w') { + flags = flags | int32(O_TRUNC) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(mode))) == int32('a') { + flags = flags | int32(O_APPEND) + } + return flags +} + +func X__fopen_rb_ca(tls *TLS, filename uintptr, f uintptr, buf uintptr, len1 Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v filename=%v f=%v buf=%v len1=%v, (%v:)", tls, filename, f, buf, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + Xmemset(tls, f, 0, uint64(232)) + (*TFILE)(unsafe.Pointer(f)).Ffd = int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_open), int64(filename), int64(Int32FromInt32(O_RDONLY)|Int32FromInt32(O_CLOEXEC)|Int32FromInt32(O_LARGEFILE)))))) + if (*TFILE)(unsafe.Pointer(f)).Ffd < 0 { + return uintptr(0) + } + X__syscall3(tls, int64(SYS_fcntl), int64((*TFILE)(unsafe.Pointer(f)).Ffd), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + (*TFILE)(unsafe.Pointer(f)).Fflags = Uint32FromInt32(Int32FromInt32(F_NOWR) | Int32FromInt32(F_PERM)) + (*TFILE)(unsafe.Pointer(f)).Fbuf = buf + uintptr(UNGET) + (*TFILE)(unsafe.Pointer(f)).Fbuf_size = len1 - uint64(UNGET) + (*TFILE)(unsafe.Pointer(f)).Fread = __ccgo_fp(X__stdio_read) + (*TFILE)(unsafe.Pointer(f)).Fseek = __ccgo_fp(X__stdio_seek) + (*TFILE)(unsafe.Pointer(f)).Fclose1 = __ccgo_fp(X__stdio_close) + AtomicStorePInt32(f+140, -int32(1)) + return f +} + +func X__overflow(tls *TLS, f uintptr, _c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v _c=%v, (%v:)", tls, f, _c, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 uint8 + var v2, v3 uintptr + var _ /* c at bp+0 */ uint8 + _, _, _ = v1, v2, v3 + **(**uint8)(__ccgo_up(bp)) = Uint8FromInt32(_c) + if !((*TFILE)(unsafe.Pointer(f)).Fwend != 0) && X__towrite(tls, f) != 0 { + return -int32(1) + } + if (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwend && Int32FromUint8(**(**uint8)(__ccgo_up(bp))) != (*TFILE)(unsafe.Pointer(f)).Flbf { + v1 = **(**uint8)(__ccgo_up(bp)) + v3 = f + 40 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + **(**uint8)(__ccgo_up(v2)) = v1 + return Int32FromUint8(v1) + } + if (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tsize_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fwrite})))(tls, f, bp, uint64(1)) != uint64(1) { + return -int32(1) + } + return Int32FromUint8(**(**uint8)(__ccgo_up(bp))) +} + +func _dummy9(tls *TLS, fd int32) (r int32) { + return fd +} + +func X__stdio_close(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_close), int64(_dummy9(tls, (*TFILE)(unsafe.Pointer(f)).Ffd)))))) +} + +var _dummy_file = uintptr(0) + +func _close_file(tls *TLS, f uintptr) { + if !(f != 0) { + return + } + if AtomicLoadPInt32(f+140) >= 0 { + ___lockfile(tls, f) + } + if (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwbase { + (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tsize_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fwrite})))(tls, f, uintptr(0), uint64(0)) + } + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + (*(*func(*TLS, uintptr, Toff_t, int32) Toff_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fseek})))(tls, f, int64((*TFILE)(unsafe.Pointer(f)).Frpos)-int64((*TFILE)(unsafe.Pointer(f)).Frend), int32(1)) + } +} + +func X__stdio_exit(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + var f uintptr + _ = f + f = **(**uintptr)(__ccgo_up(X__ofl_lock(tls))) + for { + if !(f != 0) { + break + } + _close_file(tls, f) + goto _1 + _1: + ; + f = (*TFILE)(unsafe.Pointer(f)).Fnext + } + _close_file(tls, AtomicLoadPUintptr(uintptr(unsafe.Pointer(&X__stdin_used)))) + _close_file(tls, AtomicLoadPUintptr(uintptr(unsafe.Pointer(&X__stdout_used)))) + _close_file(tls, AtomicLoadPUintptr(uintptr(unsafe.Pointer(&X__stderr_used)))) +} + +func X__stdio_exit_needed(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + X__stdio_exit(tls) +} + +func X__stdio_read(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v f=%v buf=%v len1=%v, (%v:)", tls, f, buf, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var cnt Tssize_t + var v1 int64 + var v2 int32 + var v3, v4 uintptr + var _ /* iov at bp+0 */ [2]Tiovec + _, _, _, _, _ = cnt, v1, v2, v3, v4 + **(**[2]Tiovec)(__ccgo_up(bp)) = [2]Tiovec{ + 0: { + Fiov_base: buf, + Fiov_len: len1 - BoolUint64(!!((*TFILE)(unsafe.Pointer(f)).Fbuf_size != 0)), + }, + 1: { + Fiov_base: (*TFILE)(unsafe.Pointer(f)).Fbuf, + Fiov_len: (*TFILE)(unsafe.Pointer(f)).Fbuf_size, + }, + } + if (**(**[2]Tiovec)(__ccgo_up(bp)))[0].Fiov_len != 0 { + v1 = X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_readv), int64((*TFILE)(unsafe.Pointer(f)).Ffd), int64(bp), int64(Int32FromInt32(2))))) + } else { + v1 = X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_read), int64((*TFILE)(unsafe.Pointer(f)).Ffd), int64((**(**[2]Tiovec)(__ccgo_up(bp)))[int32(1)].Fiov_base), Int64FromUint64((**(**[2]Tiovec)(__ccgo_up(bp)))[int32(1)].Fiov_len)))) + } + cnt = v1 + if cnt <= 0 { + if cnt != 0 { + v2 = int32(F_ERR) + } else { + v2 = int32(F_EOF) + } + **(**uint32)(__ccgo_up(f)) |= Uint32FromInt32(v2) + return uint64(0) + } + if Uint64FromInt64(cnt) <= (**(**[2]Tiovec)(__ccgo_up(bp)))[0].Fiov_len { + return Uint64FromInt64(cnt) + } + cnt = Int64FromUint64(uint64(cnt) - (**(**[2]Tiovec)(__ccgo_up(bp)))[0].Fiov_len) + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Frend = (*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr(cnt) + if (*TFILE)(unsafe.Pointer(f)).Fbuf_size != 0 { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + **(**uint8)(__ccgo_up(buf + uintptr(len1-uint64(1)))) = **(**uint8)(__ccgo_up(v3)) + } + return len1 +} + +func X__stdio_seek(tls *TLS, f uintptr, off Toff_t, whence int32) (r Toff_t) { + if __ccgo_strace { + trc("tls=%v f=%v off=%v whence=%v, (%v:)", tls, f, off, whence, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lseek(tls, (*TFILE)(unsafe.Pointer(f)).Ffd, off, whence) +} + +func X__stdio_write(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v f=%v buf=%v len1=%v, (%v:)", tls, f, buf, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var cnt Tssize_t + var iov, v2, v3 uintptr + var iovcnt int32 + var rem Tsize_t + var v5 uint64 + var _ /* iovs at bp+0 */ [2]Tiovec + _, _, _, _, _, _, _ = cnt, iov, iovcnt, rem, v2, v3, v5 + **(**[2]Tiovec)(__ccgo_up(bp)) = [2]Tiovec{ + 0: { + Fiov_base: (*TFILE)(unsafe.Pointer(f)).Fwbase, + Fiov_len: Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Fwpos) - int64((*TFILE)(unsafe.Pointer(f)).Fwbase)), + }, + 1: { + Fiov_base: buf, + Fiov_len: len1, + }, + } + iov = bp + rem = (**(**Tiovec)(__ccgo_up(iov))).Fiov_len + (**(**Tiovec)(__ccgo_up(iov + 1*16))).Fiov_len + iovcnt = int32(2) + for { + cnt = X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_writev), int64((*TFILE)(unsafe.Pointer(f)).Ffd), int64(iov), int64(iovcnt)))) + if Uint64FromInt64(cnt) == rem { + (*TFILE)(unsafe.Pointer(f)).Fwend = (*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr((*TFILE)(unsafe.Pointer(f)).Fbuf_size) + v2 = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Fwbase = v2 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v2 + return len1 + } + if cnt < 0 { + v3 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Fwend = v3 + v2 = v3 + (*TFILE)(unsafe.Pointer(f)).Fwbase = v2 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v2 + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) + if iovcnt == int32(2) { + v5 = uint64(0) + } else { + v5 = len1 - (**(**Tiovec)(__ccgo_up(iov))).Fiov_len + } + return v5 + } + rem = rem - Uint64FromInt64(cnt) + if Uint64FromInt64(cnt) > (**(**Tiovec)(__ccgo_up(iov))).Fiov_len { + cnt = Int64FromUint64(uint64(cnt) - (**(**Tiovec)(__ccgo_up(iov))).Fiov_len) + iov += 16 + iovcnt = iovcnt - 1 + } + (**(**Tiovec)(__ccgo_up(iov))).Fiov_base = (**(**Tiovec)(__ccgo_up(iov))).Fiov_base + uintptr(cnt) + (**(**Tiovec)(__ccgo_up(iov))).Fiov_len -= Uint64FromInt64(cnt) + goto _1 + _1: + } + return r +} + +func X__stdout_write(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v f=%v buf=%v len1=%v, (%v:)", tls, f, buf, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* wsz at bp+0 */ Twinsize + (*TFILE)(unsafe.Pointer(f)).Fwrite = __ccgo_fp(X__stdio_write) + if !((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_SVB) != 0) && X__syscall3(tls, int64(SYS_ioctl), int64((*TFILE)(unsafe.Pointer(f)).Ffd), int64(Int32FromInt32(TIOCGWINSZ)), int64(bp)) != 0 { + (*TFILE)(unsafe.Pointer(f)).Flbf = -int32(1) + } + return X__stdio_write(tls, f, buf, len1) +} + +func X__toread(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1, v2 uintptr + var v4 int32 + _, _, _ = v1, v2, v4 + **(**int32)(__ccgo_up(f + 136)) |= (*TFILE)(unsafe.Pointer(f)).Fmode - int32(1) + if (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwbase { + (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tsize_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fwrite})))(tls, f, uintptr(0), uint64(0)) + } + v2 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Fwend = v2 + v1 = v2 + (*TFILE)(unsafe.Pointer(f)).Fwbase = v1 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v1 + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_NORD) != 0 { + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) + return -int32(1) + } + v1 = (*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr((*TFILE)(unsafe.Pointer(f)).Fbuf_size) + (*TFILE)(unsafe.Pointer(f)).Frend = v1 + (*TFILE)(unsafe.Pointer(f)).Frpos = v1 + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_EOF) != 0 { + v4 = -int32(1) + } else { + v4 = 0 + } + return v4 +} + +func X__toread_needs_stdio_exit(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + X__stdio_exit_needed(tls) +} + +func X__towrite(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 uintptr + _ = v1 + **(**int32)(__ccgo_up(f + 136)) |= (*TFILE)(unsafe.Pointer(f)).Fmode - int32(1) + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_NOWR) != 0 { + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) + return -int32(1) + } + /* Clear read buffer (easier than summoning nasal demons) */ + v1 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Frend = v1 + (*TFILE)(unsafe.Pointer(f)).Frpos = v1 + /* Activate write through the buffer. */ + v1 = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Fwbase = v1 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v1 + (*TFILE)(unsafe.Pointer(f)).Fwend = (*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr((*TFILE)(unsafe.Pointer(f)).Fbuf_size) + return 0 +} + +func X__towrite_needs_stdio_exit(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + X__stdio_exit_needed(tls) +} + +/* This function assumes it will never be called if there is already + * data buffered for reading. */ + +func X__uflow(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* c at bp+0 */ uint8 + if !(X__toread(tls, f) != 0) && (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tsize_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fread})))(tls, f, bp, uint64(1)) == uint64(1) { + return Int32FromUint8(**(**uint8)(__ccgo_up(bp))) + } + return -int32(1) +} + +func Xasprintf(tls *TLS, s uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v va=%v, (%v:)", tls, s, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvasprintf(tls, s, fmt, ap) + _ = ap + return ret +} + +func Xclearerr(tls *TLS, f uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } + var __need_unlock, v1 int32 + _, _ = __need_unlock, v1 + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + **(**uint32)(__ccgo_up(f)) &= Uint32FromInt32(^(Int32FromInt32(F_EOF) | Int32FromInt32(F_ERR))) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } +} + +func Xclearerr_unlocked(tls *TLS, f uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } + Xclearerr(tls, f) +} + +func Xdprintf(tls *TLS, fd int32, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v fmt=%v va=%v, (%v:)", tls, fd, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvdprintf(tls, fd, fmt, ap) + _ = ap + return ret +} + +const FSETLOCKING_BYCALLER = 2 +const FSETLOCKING_INTERNAL = 1 +const FSETLOCKING_QUERY = 0 + +func X_flushlbf(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + Xfflush(tls, uintptr(0)) +} + +func X__fsetlocking(tls *TLS, f uintptr, type1 int32) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v type1=%v, (%v:)", tls, f, type1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return 0 +} + +func X__fwriting(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32((*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_NORD) != 0 || (*TFILE)(unsafe.Pointer(f)).Fwend != 0) +} + +func X__freading(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32((*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_NOWR) != 0 || (*TFILE)(unsafe.Pointer(f)).Frend != 0) +} + +func X__freadable(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(!((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_NORD) != 0)) +} + +func X__fwritable(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32(!((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_NOWR) != 0)) +} + +func X__flbf(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return BoolInt32((*TFILE)(unsafe.Pointer(f)).Flbf >= 0) +} + +func X__fbufsize(tls *TLS, f uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return (*TFILE)(unsafe.Pointer(f)).Fbuf_size +} + +func X__fpending(tls *TLS, f uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int64 + _ = v1 + if (*TFILE)(unsafe.Pointer(f)).Fwend != 0 { + v1 = int64((*TFILE)(unsafe.Pointer(f)).Fwpos) - int64((*TFILE)(unsafe.Pointer(f)).Fwbase) + } else { + v1 = 0 + } + return Uint64FromInt64(v1) +} + +func X__fpurge(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1, v2 uintptr + _, _ = v1, v2 + if !(f != 0) { // libbsd fpurge test fails w/o this. + return int32(1) + } + v2 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Fwend = v2 + v1 = v2 + (*TFILE)(unsafe.Pointer(f)).Fwbase = v1 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v1 + v1 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Frend = v1 + (*TFILE)(unsafe.Pointer(f)).Frpos = v1 + return 0 +} + +func Xfpurge(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fpurge(tls, f) +} + +func X__freadahead(tls *TLS, f uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int64 + _ = v1 + if (*TFILE)(unsafe.Pointer(f)).Frend != 0 { + v1 = int64((*TFILE)(unsafe.Pointer(f)).Frend) - int64((*TFILE)(unsafe.Pointer(f)).Frpos) + } else { + v1 = 0 + } + return Uint64FromInt64(v1) +} + +func X__freadptr(tls *TLS, f uintptr, sizep uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v sizep=%v, (%v:)", tls, f, sizep, origin(2)) + defer func() { trc("-> %v", r) }() + } + if (*TFILE)(unsafe.Pointer(f)).Frpos == (*TFILE)(unsafe.Pointer(f)).Frend { + return uintptr(0) + } + **(**Tsize_t)(__ccgo_up(sizep)) = Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Frend) - int64((*TFILE)(unsafe.Pointer(f)).Frpos)) + return (*TFILE)(unsafe.Pointer(f)).Frpos +} + +func X__freadptrinc(tls *TLS, f uintptr, inc Tsize_t) { + if __ccgo_strace { + trc("tls=%v f=%v inc=%v, (%v:)", tls, f, inc, origin(2)) + } + **(**uintptr)(__ccgo_up(f + 8)) += uintptr(inc) +} + +func X__fseterr(tls *TLS, f uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) +} + +func _dummy10(tls *TLS, f uintptr) { +} + +func Xfclose(tls *TLS, f uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var __need_unlock, r, v1 int32 + var head uintptr + _, _, _, _ = __need_unlock, head, r, v1 + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + r = Xfflush(tls, f) + r = r | (*(*func(*TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fclose1})))(tls, f) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + /* Past this point, f is closed and any further explict access + * to it is undefined. However, it still exists as an entry in + * the open file list and possibly in the thread's locked files + * list, if it was closed while explicitly locked. Functions + * which process these lists must tolerate dead FILE objects + * (which necessarily have inactive buffer pointers) without + * producing any side effects. */ + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_PERM) != 0 { + return r + } + X__unlist_locked_file(tls, f) + head = X__ofl_lock(tls) + if (*TFILE)(unsafe.Pointer(f)).Fprev != 0 { + (*TFILE)(unsafe.Pointer((*TFILE)(unsafe.Pointer(f)).Fprev)).Fnext = (*TFILE)(unsafe.Pointer(f)).Fnext + } + if (*TFILE)(unsafe.Pointer(f)).Fnext != 0 { + (*TFILE)(unsafe.Pointer((*TFILE)(unsafe.Pointer(f)).Fnext)).Fprev = (*TFILE)(unsafe.Pointer(f)).Fprev + } + if **(**uintptr)(__ccgo_up(head)) == f { + **(**uintptr)(__ccgo_up(head)) = (*TFILE)(unsafe.Pointer(f)).Fnext + } + X__ofl_unlock(tls) + Xfree(tls, (*TFILE)(unsafe.Pointer(f)).Fgetln_buf) + Xfree(tls, f) + return r +} + +func Xfeof(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, ret, v1 int32 + _, _, _ = __need_unlock, ret, v1 + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + ret = BoolInt32(!!((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_EOF) != 0)) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return ret +} + +func X_IO_feof_unlocked(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfeof(tls, f) +} + +func Xfeof_unlocked(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfeof(tls, f) +} + +func Xferror(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, ret, v1 int32 + _, _, _ = __need_unlock, ret, v1 + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + ret = BoolInt32(!!((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_ERR) != 0)) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return ret +} + +func X_IO_ferror_unlocked(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xferror(tls, f) +} + +func Xferror_unlocked(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xferror(tls, f) +} + +// C documentation +// +// /* stdout.c will override this if linked */ +var _dummy11 = uintptr(0) + +func Xfflush(tls *TLS, f uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var __need_unlock, __need_unlock1, r, v2 int32 + var v4, v5 uintptr + _, _, _, _, _, _ = __need_unlock, __need_unlock1, r, v2, v4, v5 + if !(f != 0) { + r = 0 + if AtomicLoadPUintptr(uintptr(unsafe.Pointer(&X__stdout_used))) != 0 { + r = r | Xfflush(tls, AtomicLoadPUintptr(uintptr(unsafe.Pointer(&X__stdout_used)))) + } + if AtomicLoadPUintptr(uintptr(unsafe.Pointer(&X__stderr_used))) != 0 { + r = r | Xfflush(tls, AtomicLoadPUintptr(uintptr(unsafe.Pointer(&X__stderr_used)))) + } + f = **(**uintptr)(__ccgo_up(X__ofl_lock(tls))) + for { + if !(f != 0) { + break + } + if AtomicLoadPInt32(f+140) >= 0 { + v2 = ___lockfile(tls, f) + } else { + v2 = 0 + } + __need_unlock = v2 + if (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwbase { + r = r | Xfflush(tls, f) + } + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + goto _1 + _1: + ; + f = (*TFILE)(unsafe.Pointer(f)).Fnext + } + X__ofl_unlock(tls) + return r + } + if AtomicLoadPInt32(f+140) >= 0 { + v2 = ___lockfile(tls, f) + } else { + v2 = 0 + } + __need_unlock1 = v2 + /* If writing, flush output */ + if (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwbase { + (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tsize_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fwrite})))(tls, f, uintptr(0), uint64(0)) + if !((*TFILE)(unsafe.Pointer(f)).Fwpos != 0) { + if __need_unlock1 != 0 { + ___unlockfile(tls, f) + } + return -int32(1) + } + } + /* If reading, sync position, per POSIX */ + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + (*(*func(*TLS, uintptr, Toff_t, int32) Toff_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fseek})))(tls, f, int64((*TFILE)(unsafe.Pointer(f)).Frpos)-int64((*TFILE)(unsafe.Pointer(f)).Frend), int32(1)) + } + /* Clear read and write modes */ + v5 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Fwend = v5 + v4 = v5 + (*TFILE)(unsafe.Pointer(f)).Fwbase = v4 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v4 + v4 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Frend = v4 + (*TFILE)(unsafe.Pointer(f)).Frpos = v4 + if __need_unlock1 != 0 { + ___unlockfile(tls, f) + } + return 0 +} + +func Xfflush_unlocked(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfflush(tls, f) +} + +func _locking_getc(tls *TLS, f uintptr) (r int32) { + var c, old, v1, v12, v2, v4, v8, v9 int32 + var v14, v5, v6, v7 uintptr + _, _, _, _, _, _, _, _, _, _, _, _ = c, old, v1, v12, v14, v2, v4, v5, v6, v7, v8, v9 + v1 = 0 + // __asm__ __volatile__ ( + // + // "cs %0, %2, %1" + // : "+d"(t), "+Q"(*p) : "d"(s) : "memory", "cc"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 4, __ccgo_ts+1538) + v2 = v1 + goto _3 +_3: + if v2 != 0 { + ___lockfile(tls, f) + } + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + v6 = f + 8 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v5))) + } else { + v1 = X__uflow(tls, f) + } + c = v1 + v7 = f + 140 + for { + old = AtomicLoadPInt32(v7) + goto _11 + _11: + ; + v2 = old + // __asm__ __volatile__ ( + // + // "cs %0, %2, %1" + // : "+d"(t), "+Q"(*p) : "d"(s) : "memory", "cc"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 4, __ccgo_ts+1538) + v4 = v2 + goto _10 + _10: + ; + if !(v4 != old) { + break + } + } + v8 = old + goto _13 +_13: + if v8&int32(MAYBE_WAITERS) != 0 { + v14 = f + 140 + v9 = int32(1) + v12 = int32(1) + if v12 != 0 { + v12 = int32(FUTEX_PRIVATE) + } + if v9 < Int32FromInt32(0) { + v9 = int32(INT_MAX) + } + _ = X__syscall3(tls, int64(SYS_futex), int64(v14), int64(Int32FromInt32(FUTEX_WAKE)|v12), int64(v9)) != int64(-int32(ENOSYS)) || X__syscall3(tls, int64(SYS_futex), int64(v14), int64(Int32FromInt32(FUTEX_WAKE)), int64(v9)) != 0 + } + return c +} + +func Xfgetc(tls *TLS, f1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f1=%v, (%v:)", tls, f1, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l, v2, v4 int32 + var v1, v5, v6 uintptr + _, _, _, _, _, _ = l, v1, v2, v4, v5, v6 + v1 = f1 + l = AtomicLoadPInt32(v1 + 140) + if l < 0 || l != 0 && l & ^Int32FromInt32(MAYBE_WAITERS) == (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Ftid { + if (*TFILE)(unsafe.Pointer(v1)).Frpos != (*TFILE)(unsafe.Pointer(v1)).Frend { + v6 = v1 + 8 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + v4 = Int32FromUint8(**(**uint8)(__ccgo_up(v5))) + } else { + v4 = X__uflow(tls, v1) + } + v2 = v4 + goto _3 + } + v2 = _locking_getc(tls, v1) + goto _3 +_3: + return v2 +} + +func Xfgetln(tls *TLS, f uintptr, plen uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v plen=%v, (%v:)", tls, f, plen, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var __need_unlock, v1, v2 int32 + var l, v8 Tssize_t + var ret, z, v3, v4 uintptr + var v6 bool + _, _, _, _, _, _, _, _, _, _ = __need_unlock, l, ret, z, v1, v2, v3, v4, v6, v8 + ret = uintptr(0) + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v2 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v2 = X__uflow(tls, f) + } + Xungetc(tls, v2, f) + if v6 = (*TFILE)(unsafe.Pointer(f)).Frend != 0; v6 { + v3 = Xmemchr(tls, (*TFILE)(unsafe.Pointer(f)).Frpos, int32('\n'), Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Frend)-int64((*TFILE)(unsafe.Pointer(f)).Frpos))) + z = v3 + } + if v6 && v3 != 0 { + ret = (*TFILE)(unsafe.Pointer(f)).Frpos + z = z + 1 + v3 = z + **(**Tsize_t)(__ccgo_up(plen)) = Uint64FromInt64(int64(v3) - int64(ret)) + (*TFILE)(unsafe.Pointer(f)).Frpos = z + } else { + *(*[1]Tsize_t)(unsafe.Pointer(bp)) = [1]Tsize_t{} + v8 = Xgetline(tls, f+168, bp, f) + l = v8 + if v8 > 0 { + **(**Tsize_t)(__ccgo_up(plen)) = Uint64FromInt64(l) + ret = (*TFILE)(unsafe.Pointer(f)).Fgetln_buf + } + } + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return ret +} + +func Xfgetpos(tls *TLS, f uintptr, pos uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v pos=%v, (%v:)", tls, f, pos, origin(2)) + defer func() { trc("-> %v", r) }() + } + var off Toff_t + _ = off + off = X__ftello(tls, f) + if off < 0 { + return -int32(1) + } + **(**int64)(__ccgo_up(pos)) = off + return 0 +} + +func Xfgets(tls *TLS, s uintptr, n int32, f uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v f=%v, (%v:)", tls, s, n, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, c, v1, v4 int32 + var k Tsize_t + var p, z, v6, v7 uintptr + var v2 int64 + var v3 uint64 + var v8 uint8 + _, _, _, _, _, _, _, _, _, _, _, _ = __need_unlock, c, k, p, z, v1, v2, v3, v4, v6, v7, v8 + p = s + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + if n <= int32(1) { + **(**int32)(__ccgo_up(f + 136)) |= (*TFILE)(unsafe.Pointer(f)).Fmode - int32(1) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + if n < int32(1) { + return uintptr(0) + } + **(**uint8)(__ccgo_up(s)) = uint8(0) + return s + } + n = n - 1 + for n != 0 { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + z = Xmemchr(tls, (*TFILE)(unsafe.Pointer(f)).Frpos, int32('\n'), Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Frend)-int64((*TFILE)(unsafe.Pointer(f)).Frpos))) + if z != 0 { + v2 = int64(z) - int64((*TFILE)(unsafe.Pointer(f)).Frpos) + int64(1) + } else { + v2 = int64((*TFILE)(unsafe.Pointer(f)).Frend) - int64((*TFILE)(unsafe.Pointer(f)).Frpos) + } + k = Uint64FromInt64(v2) + if k < Uint64FromInt32(n) { + v3 = k + } else { + v3 = Uint64FromInt32(n) + } + k = v3 + Xmemcpy(tls, p, (*TFILE)(unsafe.Pointer(f)).Frpos, k) + **(**uintptr)(__ccgo_up(f + 8)) += uintptr(k) + p = p + uintptr(k) + n = Int32FromUint64(uint64(n) - k) + if z != 0 || !(n != 0) { + break + } + } + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + v7 = f + 8 + v6 = *(*uintptr)(unsafe.Pointer(v7)) + *(*uintptr)(unsafe.Pointer(v7)) = *(*uintptr)(unsafe.Pointer(v7)) + 1 + v4 = Int32FromUint8(**(**uint8)(__ccgo_up(v6))) + } else { + v4 = X__uflow(tls, f) + } + v1 = v4 + c = v1 + if v1 < 0 { + if p == s || !((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_EOF) != 0) { + s = uintptr(0) + } + break + } + n = n - 1 + v8 = Uint8FromInt32(c) + v6 = p + p = p + 1 + **(**uint8)(__ccgo_up(v6)) = v8 + if Int32FromUint8(v8) == int32('\n') { + break + } + } + if s != 0 { + **(**uint8)(__ccgo_up(p)) = uint8(0) + } + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return s +} + +func Xfgets_unlocked(tls *TLS, s uintptr, n int32, f uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v f=%v, (%v:)", tls, s, n, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfgets(tls, s, n, f) +} + +func ___fgetwc_unlocked_internal(tls *TLS, f uintptr) (r Twint_t) { + bp := tls.Alloc(32) + defer tls.Free(32) + var c, first, v1, v2 int32 + var l Tsize_t + var v3, v4 uintptr + var _ /* b at bp+16 */ uint8 + var _ /* st at bp+8 */ Tmbstate_t + var _ /* wc at bp+0 */ Twchar_t + _, _, _, _, _, _, _ = c, first, l, v1, v2, v3, v4 + /* Convert character from buffer if possible */ + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + l = Uint64FromInt32(Xmbtowc(tls, bp, (*TFILE)(unsafe.Pointer(f)).Frpos, Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Frend)-int64((*TFILE)(unsafe.Pointer(f)).Frpos)))) + if l+uint64(1) >= uint64(1) { + **(**uintptr)(__ccgo_up(f + 8)) += uintptr(l + BoolUint64(!(l != 0))) /* l==0 means 1 byte, null */ + return Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp))) + } + } + /* Convert character byte-by-byte */ + **(**Tmbstate_t)(__ccgo_up(bp + 8)) = Tmbstate_t{} + first = int32(1) + for cond := true; cond; cond = l == Uint64FromInt32(-Int32FromInt32(2)) { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + v2 = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } else { + v2 = X__uflow(tls, f) + } + v1 = v2 + c = v1 + **(**uint8)(__ccgo_up(bp + 16)) = Uint8FromInt32(v1) + if c < 0 { + if !(first != 0) { + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EILSEQ) + } + return uint32(0xffffffff) + } + l = Xmbrtowc(tls, bp, bp+16, uint64(1), bp+8) + if l == Uint64FromInt32(-Int32FromInt32(1)) { + if !(first != 0) { + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) + Xungetc(tls, Int32FromUint8(**(**uint8)(__ccgo_up(bp + 16))), f) + } + return uint32(0xffffffff) + } + first = 0 + } + return Uint32FromInt32(**(**Twchar_t)(__ccgo_up(bp))) +} + +func X__fgetwc_unlocked(tls *TLS, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var loc Tlocale_t + var ploc uintptr + var wc Twchar_t + _, _, _ = loc, ploc, wc + ploc = uintptr(___get_tp(tls)) + 168 + loc = **(**Tlocale_t)(__ccgo_up(ploc)) + if (*TFILE)(unsafe.Pointer(f)).Fmode <= 0 { + Xfwide(tls, f, int32(1)) + } + **(**Tlocale_t)(__ccgo_up(ploc)) = (*TFILE)(unsafe.Pointer(f)).Flocale + wc = Int32FromUint32(___fgetwc_unlocked_internal(tls, f)) + **(**Tlocale_t)(__ccgo_up(ploc)) = loc + return Uint32FromInt32(wc) +} + +func Xfgetwc(tls *TLS, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, v1 int32 + var c Twint_t + _, _, _ = __need_unlock, c, v1 + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + c = X__fgetwc_unlocked(tls, f) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return c +} + +func Xfgetwc_unlocked(tls *TLS, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fgetwc_unlocked(tls, f) +} + +func Xgetwc_unlocked(tls *TLS, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fgetwc_unlocked(tls, f) +} + +func Xfgetws(tls *TLS, s uintptr, n int32, f uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v f=%v, (%v:)", tls, s, n, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, v1 int32 + var c Twint_t + var p, v4 uintptr + _, _, _, _, _ = __need_unlock, c, p, v1, v4 + p = s + v1 = n + n = n - 1 + if !(v1 != 0) { + return s + } + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + for { + if !(n != 0) { + break + } + c = X__fgetwc_unlocked(tls, f) + if c == uint32(0xffffffff) { + break + } + v4 = p + p += 4 + **(**Twchar_t)(__ccgo_up(v4)) = Int32FromUint32(c) + if c == uint32('\n') { + break + } + goto _3 + _3: + ; + n = n - 1 + } + **(**Twchar_t)(__ccgo_up(p)) = 0 + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_ERR) != 0 { + p = s + } + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + if p == s { + v4 = UintptrFromInt32(0) + } else { + v4 = s + } + return v4 +} + +func Xfgetws_unlocked(tls *TLS, s uintptr, n int32, f uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v f=%v, (%v:)", tls, s, n, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfgetws(tls, s, n, f) +} + +func Xfileno(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, fd, v1 int32 + _, _, _ = __need_unlock, fd, v1 + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + fd = (*TFILE)(unsafe.Pointer(f)).Ffd + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + if fd < 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EBADF) + return -int32(1) + } + return fd +} + +func Xfileno_unlocked(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfileno(tls, f) +} + +func Xflockfile(tls *TLS, f uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } + if !(Xftrylockfile(tls, f) != 0) { + return + } + ___lockfile(tls, f) + X__register_locked_file(tls, f, uintptr(___get_tp(tls))) +} + +type Tcookie = struct { + Fpos Tsize_t + Flen1 Tsize_t + Fsize Tsize_t + Fbuf uintptr + Fmode int32 +} + +type Tmem_FILE = struct { + Ff TFILE + Fc Tcookie + Fbuf [1032]uint8 +} + +func _mseek(tls *TLS, f uintptr, off Toff_t, whence int32) (r Toff_t) { + bp := tls.Alloc(32) + defer tls.Free(32) + var base Tssize_t + var c uintptr + var v2 Tsize_t + _, _, _ = base, c, v2 + c = (*TFILE)(unsafe.Pointer(f)).Fcookie + if !(Uint32FromInt32(whence) > uint32(2)) { + goto _1 + } + goto fail +fail: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return int64(-int32(1)) +_1: + ; + *(*[3]Tsize_t)(unsafe.Pointer(bp)) = [3]Tsize_t{ + 1: (*Tcookie)(unsafe.Pointer(c)).Fpos, + 2: (*Tcookie)(unsafe.Pointer(c)).Flen1, + } + base = Int64FromUint64(**(**Tsize_t)(__ccgo_up(bp + uintptr(whence)*8))) + if off < -base || off > Int64FromUint64((*Tcookie)(unsafe.Pointer(c)).Fsize)-base { + goto fail + } + v2 = Uint64FromInt64(base + off) + (*Tcookie)(unsafe.Pointer(c)).Fpos = v2 + return Int64FromUint64(v2) +} + +func _mread(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + var c uintptr + var rem Tsize_t + _, _ = c, rem + c = (*TFILE)(unsafe.Pointer(f)).Fcookie + rem = (*Tcookie)(unsafe.Pointer(c)).Flen1 - (*Tcookie)(unsafe.Pointer(c)).Fpos + if (*Tcookie)(unsafe.Pointer(c)).Fpos > (*Tcookie)(unsafe.Pointer(c)).Flen1 { + rem = uint64(0) + } + if len1 > rem { + len1 = rem + **(**uint32)(__ccgo_up(f)) |= uint32(F_EOF) + } + Xmemcpy(tls, buf, (*Tcookie)(unsafe.Pointer(c)).Fbuf+uintptr((*Tcookie)(unsafe.Pointer(c)).Fpos), len1) + **(**Tsize_t)(__ccgo_up(c)) += len1 + rem = rem - len1 + if rem > (*TFILE)(unsafe.Pointer(f)).Fbuf_size { + rem = (*TFILE)(unsafe.Pointer(f)).Fbuf_size + } + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Frend = (*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr(rem) + Xmemcpy(tls, (*TFILE)(unsafe.Pointer(f)).Frpos, (*Tcookie)(unsafe.Pointer(c)).Fbuf+uintptr((*Tcookie)(unsafe.Pointer(c)).Fpos), rem) + **(**Tsize_t)(__ccgo_up(c)) += rem + return len1 +} + +func _mwrite(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + var c uintptr + var len2, rem Tsize_t + _, _, _ = c, len2, rem + c = (*TFILE)(unsafe.Pointer(f)).Fcookie + len2 = Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Fwpos) - int64((*TFILE)(unsafe.Pointer(f)).Fwbase)) + if len2 != 0 { + (*TFILE)(unsafe.Pointer(f)).Fwpos = (*TFILE)(unsafe.Pointer(f)).Fwbase + if _mwrite(tls, f, (*TFILE)(unsafe.Pointer(f)).Fwpos, len2) < len2 { + return uint64(0) + } + } + if (*Tcookie)(unsafe.Pointer(c)).Fmode == int32('a') { + (*Tcookie)(unsafe.Pointer(c)).Fpos = (*Tcookie)(unsafe.Pointer(c)).Flen1 + } + rem = (*Tcookie)(unsafe.Pointer(c)).Fsize - (*Tcookie)(unsafe.Pointer(c)).Fpos + if len1 > rem { + len1 = rem + } + Xmemcpy(tls, (*Tcookie)(unsafe.Pointer(c)).Fbuf+uintptr((*Tcookie)(unsafe.Pointer(c)).Fpos), buf, len1) + **(**Tsize_t)(__ccgo_up(c)) += len1 + if (*Tcookie)(unsafe.Pointer(c)).Fpos > (*Tcookie)(unsafe.Pointer(c)).Flen1 { + (*Tcookie)(unsafe.Pointer(c)).Flen1 = (*Tcookie)(unsafe.Pointer(c)).Fpos + if (*Tcookie)(unsafe.Pointer(c)).Flen1 < (*Tcookie)(unsafe.Pointer(c)).Fsize { + **(**uint8)(__ccgo_up((*Tcookie)(unsafe.Pointer(c)).Fbuf + uintptr((*Tcookie)(unsafe.Pointer(c)).Flen1))) = uint8(0) + } else { + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_NORD) != 0 && (*Tcookie)(unsafe.Pointer(c)).Fsize != 0 { + **(**uint8)(__ccgo_up((*Tcookie)(unsafe.Pointer(c)).Fbuf + uintptr((*Tcookie)(unsafe.Pointer(c)).Fsize-uint64(1)))) = uint8(0) + } + } + } + return len1 +} + +func _mclose(tls *TLS, m uintptr) (r int32) { + return 0 +} + +func Xfmemopen(tls *TLS, buf uintptr, size Tsize_t, mode uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v buf=%v size=%v mode=%v, (%v:)", tls, buf, size, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + var f uintptr + var plus, v2 int32 + var v1 uint64 + var v3 Tsize_t + _, _, _, _, _ = f, plus, v1, v2, v3 + plus = BoolInt32(!!(Xstrchr(tls, mode, int32('+')) != 0)) + if !(Xstrchr(tls, __ccgo_ts+1534, Int32FromUint8(**(**uint8)(__ccgo_up(mode)))) != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(0) + } + if !(buf != 0) && size > Uint64FromInt64(Int64FromInt64(INT64_MAX)) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOMEM) + return uintptr(0) + } + if buf != 0 { + v1 = uint64(0) + } else { + v1 = size + } + f = Xmalloc(tls, uint64(1304)+v1) + if !(f != 0) { + return uintptr(0) + } + Xmemset(tls, f, 0, uint64(UintptrFromInt32(0)+272)) + (*Tmem_FILE)(unsafe.Pointer(f)).Ff.Fcookie = f + 232 + (*Tmem_FILE)(unsafe.Pointer(f)).Ff.Ffd = -int32(1) + (*Tmem_FILE)(unsafe.Pointer(f)).Ff.Flbf = -int32(1) + (*Tmem_FILE)(unsafe.Pointer(f)).Ff.Fbuf = f + 272 + uintptr(UNGET) + (*Tmem_FILE)(unsafe.Pointer(f)).Ff.Fbuf_size = Uint64FromInt64(1032) - Uint64FromInt32(UNGET) + if !(buf != 0) { + buf = f + 1304 + Xmemset(tls, buf, 0, size) + } + (*Tmem_FILE)(unsafe.Pointer(f)).Fc.Fbuf = buf + (*Tmem_FILE)(unsafe.Pointer(f)).Fc.Fsize = size + (*Tmem_FILE)(unsafe.Pointer(f)).Fc.Fmode = Int32FromUint8(**(**uint8)(__ccgo_up(mode))) + if !(plus != 0) { + if Int32FromUint8(**(**uint8)(__ccgo_up(mode))) == int32('r') { + v2 = int32(F_NOWR) + } else { + v2 = int32(F_NORD) + } + (*Tmem_FILE)(unsafe.Pointer(f)).Ff.Fflags = Uint32FromInt32(v2) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(mode))) == int32('r') { + (*Tmem_FILE)(unsafe.Pointer(f)).Fc.Flen1 = size + } else { + if Int32FromUint8(**(**uint8)(__ccgo_up(mode))) == int32('a') { + v3 = Xstrnlen(tls, buf, size) + (*Tmem_FILE)(unsafe.Pointer(f)).Fc.Fpos = v3 + (*Tmem_FILE)(unsafe.Pointer(f)).Fc.Flen1 = v3 + } else { + if plus != 0 { + **(**uint8)(__ccgo_up((*Tmem_FILE)(unsafe.Pointer(f)).Fc.Fbuf)) = uint8(0) + } + } + } + (*Tmem_FILE)(unsafe.Pointer(f)).Ff.Fread = __ccgo_fp(_mread) + (*Tmem_FILE)(unsafe.Pointer(f)).Ff.Fwrite = __ccgo_fp(_mwrite) + (*Tmem_FILE)(unsafe.Pointer(f)).Ff.Fseek = __ccgo_fp(_mseek) + (*Tmem_FILE)(unsafe.Pointer(f)).Ff.Fclose1 = __ccgo_fp(_mclose) + if !(X__libc.Fthreaded != 0) { + AtomicStorePInt32(f+140, -int32(1)) + } + return X__ofl_add(tls, f) +} + +func Xfopen(tls *TLS, filename uintptr, mode uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v filename=%v mode=%v, (%v:)", tls, filename, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + var f uintptr + var fd, flags int32 + _, _, _ = f, fd, flags + /* Check for valid initial mode character */ + if !(Xstrchr(tls, __ccgo_ts+1534, Int32FromUint8(**(**uint8)(__ccgo_up(mode)))) != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(0) + } + /* Compute the flags to pass to open() */ + flags = X__fmodeflags(tls, mode) + fd = int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_open), int64(filename), int64(flags|Int32FromInt32(O_LARGEFILE)), int64(Int32FromInt32(0666)))))) + if fd < 0 { + return uintptr(0) + } + if flags&int32(O_CLOEXEC) != 0 { + X__syscall3(tls, int64(SYS_fcntl), int64(fd), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + } + f = X__fdopen(tls, fd, mode) + if f != 0 { + return f + } + X__syscall1(tls, int64(SYS_close), int64(fd)) + return uintptr(0) +} + +type Tfcookie = struct { + Fcookie uintptr + Fiofuncs Tcookie_io_functions_t +} + +type Tcookie_FILE = struct { + Ff TFILE + Ffc Tfcookie + Fbuf [1032]uint8 +} + +func _cookieread(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + var fc, v2, v3 uintptr + var len2, readlen, remain, v1 Tsize_t + var ret Tssize_t + var v4 int32 + _, _, _, _, _, _, _, _, _ = fc, len2, readlen, remain, ret, v1, v2, v3, v4 + fc = (*TFILE)(unsafe.Pointer(f)).Fcookie + ret = int64(-int32(1)) + remain = len1 + readlen = uint64(0) + len2 = len1 - BoolUint64(!!((*TFILE)(unsafe.Pointer(f)).Fbuf_size != 0)) + if !((*Tfcookie)(unsafe.Pointer(fc)).Fiofuncs.Fread != 0) { + goto bail + } + if len2 != 0 { + ret = (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tssize_t)(unsafe.Pointer(&struct{ uintptr }{(*Tfcookie)(unsafe.Pointer(fc)).Fiofuncs.Fread})))(tls, (*Tfcookie)(unsafe.Pointer(fc)).Fcookie, buf, len2) + if ret <= 0 { + goto bail + } + readlen = readlen + Uint64FromInt64(ret) + remain = remain - Uint64FromInt64(ret) + } + if !((*TFILE)(unsafe.Pointer(f)).Fbuf_size != 0) || remain > BoolUint64(!!((*TFILE)(unsafe.Pointer(f)).Fbuf_size != 0)) { + return readlen + } + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Fbuf + ret = (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tssize_t)(unsafe.Pointer(&struct{ uintptr }{(*Tfcookie)(unsafe.Pointer(fc)).Fiofuncs.Fread})))(tls, (*Tfcookie)(unsafe.Pointer(fc)).Fcookie, (*TFILE)(unsafe.Pointer(f)).Frpos, (*TFILE)(unsafe.Pointer(f)).Fbuf_size) + if ret <= 0 { + goto bail + } + (*TFILE)(unsafe.Pointer(f)).Frend = (*TFILE)(unsafe.Pointer(f)).Frpos + uintptr(ret) + v1 = readlen + readlen = readlen + 1 + v3 = f + 8 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + **(**uint8)(__ccgo_up(buf + uintptr(v1))) = **(**uint8)(__ccgo_up(v2)) + return readlen + goto bail +bail: + ; + if ret == 0 { + v4 = int32(F_EOF) + } else { + v4 = int32(F_ERR) + } + **(**uint32)(__ccgo_up(f)) |= Uint32FromInt32(v4) + v2 = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Frend = v2 + (*TFILE)(unsafe.Pointer(f)).Frpos = v2 + return readlen +} + +func _cookiewrite(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + var fc, v1, v2 uintptr + var len2 Tsize_t + var ret Tssize_t + _, _, _, _, _ = fc, len2, ret, v1, v2 + fc = (*TFILE)(unsafe.Pointer(f)).Fcookie + len2 = Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Fwpos) - int64((*TFILE)(unsafe.Pointer(f)).Fwbase)) + if !((*Tfcookie)(unsafe.Pointer(fc)).Fiofuncs.Fwrite != 0) { + return len1 + } + if len2 != 0 { + (*TFILE)(unsafe.Pointer(f)).Fwpos = (*TFILE)(unsafe.Pointer(f)).Fwbase + if _cookiewrite(tls, f, (*TFILE)(unsafe.Pointer(f)).Fwpos, len2) < len2 { + return uint64(0) + } + } + ret = (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tssize_t)(unsafe.Pointer(&struct{ uintptr }{(*Tfcookie)(unsafe.Pointer(fc)).Fiofuncs.Fwrite})))(tls, (*Tfcookie)(unsafe.Pointer(fc)).Fcookie, buf, len1) + if ret < 0 { + v2 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Fwend = v2 + v1 = v2 + (*TFILE)(unsafe.Pointer(f)).Fwbase = v1 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v1 + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) + return uint64(0) + } + return Uint64FromInt64(ret) +} + +func _cookieseek(tls *TLS, f uintptr, _off Toff_t, whence int32) (r Toff_t) { + bp := tls.Alloc(16) + defer tls.Free(16) + *(*Toff_t)(unsafe.Pointer(bp)) = _off + var fc uintptr + var res int32 + _, _ = fc, res + fc = (*TFILE)(unsafe.Pointer(f)).Fcookie + if Uint32FromInt32(whence) > uint32(2) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return int64(-int32(1)) + } + if !((*Tfcookie)(unsafe.Pointer(fc)).Fiofuncs.Fseek != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOPNOTSUPP) + return int64(-int32(1)) + } + res = (*(*func(*TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(&struct{ uintptr }{(*Tfcookie)(unsafe.Pointer(fc)).Fiofuncs.Fseek})))(tls, (*Tfcookie)(unsafe.Pointer(fc)).Fcookie, bp, whence) + if res < 0 { + return int64(res) + } + return **(**Toff_t)(__ccgo_up(bp)) +} + +func _cookieclose(tls *TLS, f uintptr) (r int32) { + var fc uintptr + _ = fc + fc = (*TFILE)(unsafe.Pointer(f)).Fcookie + if (*Tfcookie)(unsafe.Pointer(fc)).Fiofuncs.Fclose1 != 0 { + return (*(*func(*TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*Tfcookie)(unsafe.Pointer(fc)).Fiofuncs.Fclose1})))(tls, (*Tfcookie)(unsafe.Pointer(fc)).Fcookie) + } + return 0 +} + +func Xfopencookie(tls *TLS, cookie uintptr, mode uintptr, iofuncs Tcookie_io_functions_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v cookie=%v mode=%v iofuncs=%v, (%v:)", tls, cookie, mode, iofuncs, origin(2)) + defer func() { trc("-> %v", r) }() + } + var f, v1 uintptr + var v2 int32 + _, _, _ = f, v1, v2 + /* Check for valid initial mode character */ + if !(Xstrchr(tls, __ccgo_ts+1534, Int32FromUint8(**(**uint8)(__ccgo_up(mode)))) != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(0) + } + /* Allocate FILE+fcookie+buffer or fail */ + v1 = Xmalloc(tls, uint64(1304)) + f = v1 + if !(v1 != 0) { + return uintptr(0) + } + /* Zero-fill only the struct, not the buffer */ + Xmemset(tls, f, 0, uint64(232)) + /* Impose mode restrictions */ + if !(Xstrchr(tls, mode, int32('+')) != 0) { + if Int32FromUint8(**(**uint8)(__ccgo_up(mode))) == int32('r') { + v2 = int32(F_NOWR) + } else { + v2 = int32(F_NORD) + } + (*Tcookie_FILE)(unsafe.Pointer(f)).Ff.Fflags = Uint32FromInt32(v2) + } + /* Set up our fcookie */ + (*Tcookie_FILE)(unsafe.Pointer(f)).Ffc.Fcookie = cookie + (*Tcookie_FILE)(unsafe.Pointer(f)).Ffc.Fiofuncs = iofuncs + (*Tcookie_FILE)(unsafe.Pointer(f)).Ff.Ffd = -int32(1) + (*Tcookie_FILE)(unsafe.Pointer(f)).Ff.Fcookie = f + 232 + (*Tcookie_FILE)(unsafe.Pointer(f)).Ff.Fbuf = f + 272 + uintptr(UNGET) + (*Tcookie_FILE)(unsafe.Pointer(f)).Ff.Fbuf_size = Uint64FromInt64(1032) - Uint64FromInt32(UNGET) + (*Tcookie_FILE)(unsafe.Pointer(f)).Ff.Flbf = -int32(1) + /* Initialize op ptrs. No problem if some are unneeded. */ + (*Tcookie_FILE)(unsafe.Pointer(f)).Ff.Fread = __ccgo_fp(_cookieread) + (*Tcookie_FILE)(unsafe.Pointer(f)).Ff.Fwrite = __ccgo_fp(_cookiewrite) + (*Tcookie_FILE)(unsafe.Pointer(f)).Ff.Fseek = __ccgo_fp(_cookieseek) + (*Tcookie_FILE)(unsafe.Pointer(f)).Ff.Fclose1 = __ccgo_fp(_cookieclose) + /* Add new FILE to open file list */ + return X__ofl_add(tls, f) +} + +func Xfprintf(tls *TLS, f uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v va=%v, (%v:)", tls, f, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvfprintf(tls, f, fmt, ap) + _ = ap + return ret +} + +func _locking_putc(tls *TLS, c int32, f uintptr) (r int32) { + var old, v1, v10, v2, v4, v9 int32 + var v6, v7 uintptr + var v5 uint8 + _, _, _, _, _, _, _, _, _ = old, v1, v10, v2, v4, v5, v6, v7, v9 + v1 = 0 + // __asm__ __volatile__ ( + // + // "cs %0, %2, %1" + // : "+d"(t), "+Q"(*p) : "d"(s) : "memory", "cc"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 4, __ccgo_ts+1551) + v2 = v1 + goto _3 +_3: + if v2 != 0 { + ___lockfile(tls, f) + } + if Int32FromUint8(Uint8FromInt32(c)) != (*TFILE)(unsafe.Pointer(f)).Flbf && (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwend { + v5 = Uint8FromInt32(c) + v7 = f + 40 + v6 = *(*uintptr)(unsafe.Pointer(v7)) + *(*uintptr)(unsafe.Pointer(v7)) = *(*uintptr)(unsafe.Pointer(v7)) + 1 + **(**uint8)(__ccgo_up(v6)) = v5 + v1 = Int32FromUint8(v5) + } else { + v1 = X__overflow(tls, f, Int32FromUint8(Uint8FromInt32(c))) + } + c = v1 + v6 = f + 140 + for { + old = AtomicLoadPInt32(v6) + goto _12 + _12: + ; + v1 = old + // __asm__ __volatile__ ( + // + // "cs %0, %2, %1" + // : "+d"(t), "+Q"(*p) : "d"(s) : "memory", "cc"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 4, __ccgo_ts+1551) + v2 = v1 + goto _11 + _11: + ; + if !(v2 != old) { + break + } + } + v4 = old + goto _14 +_14: + if v4&int32(MAYBE_WAITERS) != 0 { + v7 = f + 140 + v9 = int32(1) + v10 = int32(1) + if v10 != 0 { + v10 = int32(FUTEX_PRIVATE) + } + if v9 < Int32FromInt32(0) { + v9 = int32(INT_MAX) + } + _ = X__syscall3(tls, int64(SYS_futex), int64(v7), int64(Int32FromInt32(FUTEX_WAKE)|v10), int64(v9)) != int64(-int32(ENOSYS)) || X__syscall3(tls, int64(SYS_futex), int64(v7), int64(Int32FromInt32(FUTEX_WAKE)), int64(v9)) != 0 + } + return c +} + +func Xfputc(tls *TLS, c1 int32, f1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v c1=%v f1=%v, (%v:)", tls, c1, f1, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l, v1, v3, v5 int32 + var v2, v7, v8 uintptr + var v6 uint8 + _, _, _, _, _, _, _, _ = l, v1, v2, v3, v5, v6, v7, v8 + v1 = c1 + v2 = f1 + l = AtomicLoadPInt32(v2 + 140) + if l < 0 || l != 0 && l & ^Int32FromInt32(MAYBE_WAITERS) == (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Ftid { + if Int32FromUint8(Uint8FromInt32(v1)) != (*TFILE)(unsafe.Pointer(v2)).Flbf && (*TFILE)(unsafe.Pointer(v2)).Fwpos != (*TFILE)(unsafe.Pointer(v2)).Fwend { + v6 = Uint8FromInt32(v1) + v8 = v2 + 40 + v7 = *(*uintptr)(unsafe.Pointer(v8)) + *(*uintptr)(unsafe.Pointer(v8)) = *(*uintptr)(unsafe.Pointer(v8)) + 1 + **(**uint8)(__ccgo_up(v7)) = v6 + v5 = Int32FromUint8(v6) + } else { + v5 = X__overflow(tls, v2, Int32FromUint8(Uint8FromInt32(v1))) + } + v3 = v5 + goto _4 + } + v3 = _locking_putc(tls, v1, v2) + goto _4 +_4: + return v3 +} + +func Xfputs(tls *TLS, s uintptr, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v f=%v, (%v:)", tls, s, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l Tsize_t + _ = l + l = _strlen(tls, s) + return BoolInt32(Xfwrite(tls, s, uint64(1), l, f) == l) - int32(1) +} + +func Xfputs_unlocked(tls *TLS, s uintptr, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v f=%v, (%v:)", tls, s, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfputs(tls, s, f) +} + +func X__fputwc_unlocked(tls *TLS, c Twchar_t, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v f=%v, (%v:)", tls, c, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var l, v1 int32 + var loc Tlocale_t + var ploc, v3, v4 uintptr + var v2 uint8 + var _ /* mbc at bp+0 */ [4]uint8 + _, _, _, _, _, _, _ = l, loc, ploc, v1, v2, v3, v4 + ploc = uintptr(___get_tp(tls)) + 168 + loc = **(**Tlocale_t)(__ccgo_up(ploc)) + if (*TFILE)(unsafe.Pointer(f)).Fmode <= 0 { + Xfwide(tls, f, int32(1)) + } + **(**Tlocale_t)(__ccgo_up(ploc)) = (*TFILE)(unsafe.Pointer(f)).Flocale + if BoolInt32(Uint32FromInt32(c) < uint32(128)) != 0 { + if Int32FromUint8(Uint8FromInt32(c)) != (*TFILE)(unsafe.Pointer(f)).Flbf && (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwend { + v2 = Uint8FromInt32(c) + v4 = f + 40 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + **(**uint8)(__ccgo_up(v3)) = v2 + v1 = Int32FromUint8(v2) + } else { + v1 = X__overflow(tls, f, Int32FromUint8(Uint8FromInt32(c))) + } + c = v1 + } else { + if (*TFILE)(unsafe.Pointer(f)).Fwpos+uintptr(MB_LEN_MAX) < (*TFILE)(unsafe.Pointer(f)).Fwend { + l = Xwctomb(tls, (*TFILE)(unsafe.Pointer(f)).Fwpos, c) + if l < 0 { + c = Int32FromUint32(0xffffffff) + } else { + **(**uintptr)(__ccgo_up(f + 40)) += uintptr(l) + } + } else { + l = Xwctomb(tls, bp, c) + if l < 0 || X__fwritex(tls, bp, Uint64FromInt32(l), f) < Uint64FromInt32(l) { + c = Int32FromUint32(0xffffffff) + } + } + } + if Uint32FromInt32(c) == uint32(0xffffffff) { + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) + } + **(**Tlocale_t)(__ccgo_up(ploc)) = loc + return Uint32FromInt32(c) +} + +func Xfputwc(tls *TLS, c Twchar_t, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v f=%v, (%v:)", tls, c, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, v1 int32 + _, _ = __need_unlock, v1 + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + c = Int32FromUint32(X__fputwc_unlocked(tls, c, f)) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return Uint32FromInt32(c) +} + +func Xfputwc_unlocked(tls *TLS, c Twchar_t, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v f=%v, (%v:)", tls, c, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fputwc_unlocked(tls, c, f) +} + +func Xputwc_unlocked(tls *TLS, c Twchar_t, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v f=%v, (%v:)", tls, c, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fputwc_unlocked(tls, c, f) +} + +func Xfputws(tls *TLS, _ws uintptr, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v _ws=%v f=%v, (%v:)", tls, _ws, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(1040) + defer tls.Free(1040) + *(*uintptr)(unsafe.Pointer(bp)) = _ws + var __need_unlock, v1 int32 + var l, v2 Tsize_t + var loc Tlocale_t + var ploc uintptr + var v3 bool + var _ /* buf at bp+8 */ [1024]uint8 + _, _, _, _, _, _, _ = __need_unlock, l, loc, ploc, v1, v2, v3 + l = uint64(0) + ploc = uintptr(___get_tp(tls)) + 168 + loc = **(**Tlocale_t)(__ccgo_up(ploc)) + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + Xfwide(tls, f, int32(1)) + **(**Tlocale_t)(__ccgo_up(ploc)) = (*TFILE)(unsafe.Pointer(f)).Flocale + for { + if v3 = **(**uintptr)(__ccgo_up(bp)) != 0; v3 { + v2 = Xwcsrtombs(tls, bp+8, bp, uint64(1024), uintptr(0)) + l = v2 + } + if !(v3 && v2+uint64(1) > uint64(1)) { + break + } + if X__fwritex(tls, bp+8, l, f) < l { + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + **(**Tlocale_t)(__ccgo_up(ploc)) = loc + return -int32(1) + } + } + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + **(**Tlocale_t)(__ccgo_up(ploc)) = loc + return Int32FromUint64(l) /* 0 or -1 */ +} + +func Xfputws_unlocked(tls *TLS, _ws uintptr, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v _ws=%v f=%v, (%v:)", tls, _ws, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfputws(tls, _ws, f) +} + +func Xfread(tls *TLS, destv uintptr, size Tsize_t, nmemb Tsize_t, f uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v destv=%v size=%v nmemb=%v f=%v, (%v:)", tls, destv, size, nmemb, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, v1 int32 + var dest uintptr + var k, l, len1 Tsize_t + var v2 uint64 + _, _, _, _, _, _, _ = __need_unlock, dest, k, l, len1, v1, v2 + dest = destv + len1 = size * nmemb + l = len1 + if !(size != 0) { + nmemb = uint64(0) + } + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + **(**int32)(__ccgo_up(f + 136)) |= (*TFILE)(unsafe.Pointer(f)).Fmode - int32(1) + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + /* First exhaust the buffer. */ + if Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Frend)-int64((*TFILE)(unsafe.Pointer(f)).Frpos)) < l { + v2 = Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Frend) - int64((*TFILE)(unsafe.Pointer(f)).Frpos)) + } else { + v2 = l + } + k = v2 + Xmemcpy(tls, dest, (*TFILE)(unsafe.Pointer(f)).Frpos, k) + **(**uintptr)(__ccgo_up(f + 8)) += uintptr(k) + dest = dest + uintptr(k) + l = l - k + } + /* Read the remainder directly */ + for { + if !(l != 0) { + break + } + if X__toread(tls, f) != 0 { + v2 = uint64(0) + } else { + v2 = (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tsize_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fread})))(tls, f, dest, l) + } + k = v2 + if !(k != 0) { + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return (len1 - l) / size + } + goto _3 + _3: + ; + l = l - k + dest = dest + uintptr(k) + } + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return nmemb +} + +func Xfread_unlocked(tls *TLS, destv uintptr, size Tsize_t, nmemb Tsize_t, f uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v destv=%v size=%v nmemb=%v f=%v, (%v:)", tls, destv, size, nmemb, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfread(tls, destv, size, nmemb, f) +} + +/* The basic idea of this implementation is to open a new FILE, + * hack the necessary parts of the new FILE into the old one, then + * close the new FILE. */ + +/* Locking IS necessary because another thread may provably hold the + * lock, via flockfile or otherwise, when freopen is called, and in that + * case, freopen cannot act until the lock is released. */ + +func Xfreopen(tls *TLS, filename uintptr, mode uintptr, f uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v filename=%v mode=%v f=%v, (%v:)", tls, filename, mode, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, fl, v1 int32 + var f2 uintptr + _, _, _, _ = __need_unlock, f2, fl, v1 + fl = X__fmodeflags(tls, mode) + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + Xfflush(tls, f) + if !(filename != 0) { + if fl&int32(O_CLOEXEC) != 0 { + X__syscall3(tls, int64(SYS_fcntl), int64((*TFILE)(unsafe.Pointer(f)).Ffd), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + } + fl = fl & ^(Int32FromInt32(O_CREAT) | Int32FromInt32(O_EXCL) | Int32FromInt32(O_CLOEXEC)) + if X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_fcntl), int64((*TFILE)(unsafe.Pointer(f)).Ffd), int64(Int32FromInt32(F_SETFL)), int64(fl)))) < 0 { + goto fail + } + } else { + f2 = Xfopen(tls, filename, mode) + if !(f2 != 0) { + goto fail + } + if (*TFILE)(unsafe.Pointer(f2)).Ffd == (*TFILE)(unsafe.Pointer(f)).Ffd { + (*TFILE)(unsafe.Pointer(f2)).Ffd = -int32(1) + } else { + if X__dup3(tls, (*TFILE)(unsafe.Pointer(f2)).Ffd, (*TFILE)(unsafe.Pointer(f)).Ffd, fl&int32(O_CLOEXEC)) < 0 { + goto fail2 + } + } + (*TFILE)(unsafe.Pointer(f)).Fflags = (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_PERM) | (*TFILE)(unsafe.Pointer(f2)).Fflags + (*TFILE)(unsafe.Pointer(f)).Fread = (*TFILE)(unsafe.Pointer(f2)).Fread + (*TFILE)(unsafe.Pointer(f)).Fwrite = (*TFILE)(unsafe.Pointer(f2)).Fwrite + (*TFILE)(unsafe.Pointer(f)).Fseek = (*TFILE)(unsafe.Pointer(f2)).Fseek + (*TFILE)(unsafe.Pointer(f)).Fclose1 = (*TFILE)(unsafe.Pointer(f2)).Fclose1 + Xfclose(tls, f2) + } + (*TFILE)(unsafe.Pointer(f)).Fmode = 0 + (*TFILE)(unsafe.Pointer(f)).Flocale = uintptr(0) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return f + goto fail2 +fail2: + ; + Xfclose(tls, f2) + goto fail +fail: + ; + Xfclose(tls, f) + return UintptrFromInt32(0) +} + +func Xfscanf(tls *TLS, f uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v va=%v, (%v:)", tls, f, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvfscanf(tls, f, fmt, ap) + _ = ap + return ret +} + +func X__isoc99_fscanf(tls *TLS, f uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v va=%v, (%v:)", tls, f, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfscanf(tls, f, fmt, va) +} + +func X__fseeko_unlocked(tls *TLS, f uintptr, off Toff_t, whence int32) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v off=%v whence=%v, (%v:)", tls, f, off, whence, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1, v2 uintptr + _, _ = v1, v2 + /* Fail immediately for invalid whence argument. */ + if whence != int32(1) && whence != 0 && whence != int32(2) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + /* Adjust relative offset for unread data in buffer, if any. */ + if whence == int32(1) && (*TFILE)(unsafe.Pointer(f)).Frend != 0 { + off = off - (int64((*TFILE)(unsafe.Pointer(f)).Frend) - int64((*TFILE)(unsafe.Pointer(f)).Frpos)) + } + /* Flush write buffer, and report error on failure. */ + if (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwbase { + (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tsize_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fwrite})))(tls, f, uintptr(0), uint64(0)) + if !((*TFILE)(unsafe.Pointer(f)).Fwpos != 0) { + return -int32(1) + } + } + /* Leave writing mode */ + v2 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Fwend = v2 + v1 = v2 + (*TFILE)(unsafe.Pointer(f)).Fwbase = v1 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v1 + /* Perform the underlying seek. */ + if (*(*func(*TLS, uintptr, Toff_t, int32) Toff_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fseek})))(tls, f, off, whence) < 0 { + return -int32(1) + } + /* If seek succeeded, file is seekable and we discard read buffer. */ + v1 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Frend = v1 + (*TFILE)(unsafe.Pointer(f)).Frpos = v1 + **(**uint32)(__ccgo_up(f)) &= Uint32FromInt32(^Int32FromInt32(F_EOF)) + return 0 +} + +func X__fseeko(tls *TLS, f uintptr, off Toff_t, whence int32) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v off=%v whence=%v, (%v:)", tls, f, off, whence, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, result, v1 int32 + _, _, _ = __need_unlock, result, v1 + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + result = X__fseeko_unlocked(tls, f, off, whence) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return result +} + +func Xfseek(tls *TLS, f uintptr, off int64, whence int32) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v off=%v whence=%v, (%v:)", tls, f, off, whence, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fseeko(tls, f, off, whence) +} + +func Xfseeko(tls *TLS, f uintptr, off Toff_t, whence int32) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v off=%v whence=%v, (%v:)", tls, f, off, whence, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fseeko(tls, f, off, whence) +} + +func Xfsetpos(tls *TLS, f uintptr, pos uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v pos=%v, (%v:)", tls, f, pos, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__fseeko(tls, f, int64(**(**int64)(__ccgo_up(pos))), 0) +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func X__ftello_unlocked(tls *TLS, f uintptr) (r Toff_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var pos Toff_t + var v1 int32 + _, _ = pos, v1 + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_APP) != 0 && (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwbase { + v1 = int32(2) + } else { + v1 = int32(1) + } + pos = (*(*func(*TLS, uintptr, Toff_t, int32) Toff_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fseek})))(tls, f, 0, v1) + if pos < 0 { + return pos + } + /* Adjust for data in buffer. */ + if (*TFILE)(unsafe.Pointer(f)).Frend != 0 { + pos = pos + (int64((*TFILE)(unsafe.Pointer(f)).Frpos) - int64((*TFILE)(unsafe.Pointer(f)).Frend)) + } else { + if (*TFILE)(unsafe.Pointer(f)).Fwbase != 0 { + pos = pos + (int64((*TFILE)(unsafe.Pointer(f)).Fwpos) - int64((*TFILE)(unsafe.Pointer(f)).Fwbase)) + } + } + return pos +} + +func X__ftello(tls *TLS, f uintptr) (r Toff_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, v1 int32 + var pos Toff_t + _, _, _ = __need_unlock, pos, v1 + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + pos = X__ftello_unlocked(tls, f) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return pos +} + +func Xftell(tls *TLS, f uintptr) (r int64) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var pos Toff_t + _ = pos + pos = X__ftello(tls, f) + if pos > int64(0x7fffffffffffffff) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOVERFLOW) + return int64(-int32(1)) + } + return pos +} + +func Xftello(tls *TLS, f uintptr) (r Toff_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__ftello(tls, f) +} + +func X__do_orphaned_stdio_locks(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + var f uintptr + _ = f + f = (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Fstdio_locks + for { + if !(f != 0) { + break + } + // __asm__ __volatile__ ("bcr 15,0" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 23, __ccgo_ts+1564) + AtomicStorePInt32(f+140, int32(0x40000000)) + // __asm__ __volatile__ ("bcr 15,0" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 23, __ccgo_ts+1564) + goto _1 + _1: + ; + f = (*TFILE)(unsafe.Pointer(f)).Fnext_locked + } +} + +func X__unlist_locked_file(tls *TLS, f uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } + if (*TFILE)(unsafe.Pointer(f)).Flockcount != 0 { + if (*TFILE)(unsafe.Pointer(f)).Fnext_locked != 0 { + (*TFILE)(unsafe.Pointer((*TFILE)(unsafe.Pointer(f)).Fnext_locked)).Fprev_locked = (*TFILE)(unsafe.Pointer(f)).Fprev_locked + } + if (*TFILE)(unsafe.Pointer(f)).Fprev_locked != 0 { + (*TFILE)(unsafe.Pointer((*TFILE)(unsafe.Pointer(f)).Fprev_locked)).Fnext_locked = (*TFILE)(unsafe.Pointer(f)).Fnext_locked + } else { + (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Fstdio_locks = (*TFILE)(unsafe.Pointer(f)).Fnext_locked + } + } +} + +func X__register_locked_file(tls *TLS, f uintptr, self Tpthread_t) { + if __ccgo_strace { + trc("tls=%v f=%v self=%v, (%v:)", tls, f, self, origin(2)) + } + (*TFILE)(unsafe.Pointer(f)).Flockcount = int64(1) + (*TFILE)(unsafe.Pointer(f)).Fprev_locked = uintptr(0) + (*TFILE)(unsafe.Pointer(f)).Fnext_locked = (*t__pthread)(unsafe.Pointer(self)).Fstdio_locks + if (*TFILE)(unsafe.Pointer(f)).Fnext_locked != 0 { + (*TFILE)(unsafe.Pointer((*TFILE)(unsafe.Pointer(f)).Fnext_locked)).Fprev_locked = f + } + (*t__pthread)(unsafe.Pointer(self)).Fstdio_locks = f +} + +func Xftrylockfile(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var owner, tid, v1, v2 int32 + var self Tpthread_t + var v5 bool + _, _, _, _, _, _ = owner, self, tid, v1, v2, v5 + self = uintptr(___get_tp(tls)) + tid = (*t__pthread)(unsafe.Pointer(self)).Ftid + owner = AtomicLoadPInt32(f + 140) + if owner & ^Int32FromInt32(MAYBE_WAITERS) == tid { + if (*TFILE)(unsafe.Pointer(f)).Flockcount == int64(0x7fffffffffffffff) { + return -int32(1) + } + (*TFILE)(unsafe.Pointer(f)).Flockcount = (*TFILE)(unsafe.Pointer(f)).Flockcount + 1 + return 0 + } + if owner < 0 { + v1 = Int32FromInt32(0) + owner = v1 + AtomicStorePInt32(f+140, v1) + } + if v5 = owner != 0; !v5 { + v1 = 0 + // __asm__ __volatile__ ( + // + // "cs %0, %2, %1" + // : "+d"(t), "+Q"(*p) : "d"(s) : "memory", "cc"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 4, __ccgo_ts+1590) + v2 = v1 + goto _4 + _4: + } + if v5 || v2 != 0 { + return -int32(1) + } + X__register_locked_file(tls, f, self) + return 0 +} + +func Xfunlockfile(tls *TLS, f uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } + if (*TFILE)(unsafe.Pointer(f)).Flockcount == int64(1) { + X__unlist_locked_file(tls, f) + (*TFILE)(unsafe.Pointer(f)).Flockcount = 0 + ___unlockfile(tls, f) + } else { + (*TFILE)(unsafe.Pointer(f)).Flockcount = (*TFILE)(unsafe.Pointer(f)).Flockcount - 1 + } +} + +func Xfwide(tls *TLS, f uintptr, mode int32) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v mode=%v, (%v:)", tls, f, mode, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, v1, v3 int32 + var v2 Tlocale_t + _, _, _, _ = __need_unlock, v1, v2, v3 + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + if mode != 0 { + if !((*TFILE)(unsafe.Pointer(f)).Flocale != 0) { + if !!(**(**uintptr)(__ccgo_up((*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale)) != 0) { + v3 = int32(4) + } else { + v3 = int32(1) + } + if v3 == int32(1) { + v2 = uintptr(unsafe.Pointer(&X__c_locale)) + } else { + v2 = uintptr(unsafe.Pointer(&X__c_dot_utf8_locale)) + } + (*TFILE)(unsafe.Pointer(f)).Flocale = v2 + } + if !((*TFILE)(unsafe.Pointer(f)).Fmode != 0) { + if mode > 0 { + v1 = int32(1) + } else { + v1 = -int32(1) + } + (*TFILE)(unsafe.Pointer(f)).Fmode = v1 + } + } + mode = (*TFILE)(unsafe.Pointer(f)).Fmode + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return mode +} + +func Xfwprintf(tls *TLS, f uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v va=%v, (%v:)", tls, f, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvfwprintf(tls, f, fmt, ap) + _ = ap + return ret +} + +func X__fwritex(tls *TLS, s uintptr, l Tsize_t, f uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v l=%v f=%v, (%v:)", tls, s, l, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var i, n Tsize_t + _, _ = i, n + i = uint64(0) + if !((*TFILE)(unsafe.Pointer(f)).Fwend != 0) && X__towrite(tls, f) != 0 { + return uint64(0) + } + if l > Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Fwend)-int64((*TFILE)(unsafe.Pointer(f)).Fwpos)) { + return (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tsize_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fwrite})))(tls, f, s, l) + } + if (*TFILE)(unsafe.Pointer(f)).Flbf >= 0 { + /* Match /^(.*\n|)/ */ + i = l + for { + if !(i != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(i-uint64(1))))) != int32('\n')) { + break + } + goto _1 + _1: + ; + i = i - 1 + } + if i != 0 { + n = (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tsize_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fwrite})))(tls, f, s, i) + if n < i { + return n + } + s = s + uintptr(i) + l = l - i + } + } + Xmemcpy(tls, (*TFILE)(unsafe.Pointer(f)).Fwpos, s, l) + **(**uintptr)(__ccgo_up(f + 40)) += uintptr(l) + return l + i +} + +func Xfwrite(tls *TLS, src uintptr, size Tsize_t, nmemb Tsize_t, f uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v src=%v size=%v nmemb=%v f=%v, (%v:)", tls, src, size, nmemb, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, v1 int32 + var k, l Tsize_t + var v2 uint64 + _, _, _, _, _ = __need_unlock, k, l, v1, v2 + l = size * nmemb + if !(size != 0) { + nmemb = uint64(0) + } + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + k = X__fwritex(tls, src, l, f) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + if k == l { + v2 = nmemb + } else { + v2 = k / size + } + return v2 +} + +func Xfwrite_unlocked(tls *TLS, src uintptr, size Tsize_t, nmemb Tsize_t, f uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v src=%v size=%v nmemb=%v f=%v, (%v:)", tls, src, size, nmemb, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfwrite(tls, src, size, nmemb, f) +} + +func Xfwscanf(tls *TLS, f uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v va=%v, (%v:)", tls, f, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvfwscanf(tls, f, fmt, ap) + _ = ap + return ret +} + +func X__isoc99_fwscanf(tls *TLS, f uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v va=%v, (%v:)", tls, f, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfwscanf(tls, f, fmt, va) +} + +func _locking_getc1(tls *TLS, f uintptr) (r int32) { + var c, old, v1, v12, v2, v4, v8, v9 int32 + var v14, v5, v6, v7 uintptr + _, _, _, _, _, _, _, _, _, _, _, _ = c, old, v1, v12, v14, v2, v4, v5, v6, v7, v8, v9 + v1 = 0 + // __asm__ __volatile__ ( + // + // "cs %0, %2, %1" + // : "+d"(t), "+Q"(*p) : "d"(s) : "memory", "cc"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 4, __ccgo_ts+1538) + v2 = v1 + goto _3 +_3: + if v2 != 0 { + ___lockfile(tls, f) + } + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + v6 = f + 8 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v5))) + } else { + v1 = X__uflow(tls, f) + } + c = v1 + v7 = f + 140 + for { + old = AtomicLoadPInt32(v7) + goto _11 + _11: + ; + v2 = old + // __asm__ __volatile__ ( + // + // "cs %0, %2, %1" + // : "+d"(t), "+Q"(*p) : "d"(s) : "memory", "cc"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 4, __ccgo_ts+1538) + v4 = v2 + goto _10 + _10: + ; + if !(v4 != old) { + break + } + } + v8 = old + goto _13 +_13: + if v8&int32(MAYBE_WAITERS) != 0 { + v14 = f + 140 + v9 = int32(1) + v12 = int32(1) + if v12 != 0 { + v12 = int32(FUTEX_PRIVATE) + } + if v9 < Int32FromInt32(0) { + v9 = int32(INT_MAX) + } + _ = X__syscall3(tls, int64(SYS_futex), int64(v14), int64(Int32FromInt32(FUTEX_WAKE)|v12), int64(v9)) != int64(-int32(ENOSYS)) || X__syscall3(tls, int64(SYS_futex), int64(v14), int64(Int32FromInt32(FUTEX_WAKE)), int64(v9)) != 0 + } + return c +} + +func Xgetc(tls *TLS, f1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f1=%v, (%v:)", tls, f1, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l, v2, v4 int32 + var v1, v5, v6 uintptr + _, _, _, _, _, _ = l, v1, v2, v4, v5, v6 + v1 = f1 + l = AtomicLoadPInt32(v1 + 140) + if l < 0 || l != 0 && l & ^Int32FromInt32(MAYBE_WAITERS) == (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Ftid { + if (*TFILE)(unsafe.Pointer(v1)).Frpos != (*TFILE)(unsafe.Pointer(v1)).Frend { + v6 = v1 + 8 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + v4 = Int32FromUint8(**(**uint8)(__ccgo_up(v5))) + } else { + v4 = X__uflow(tls, v1) + } + v2 = v4 + goto _3 + } + v2 = _locking_getc1(tls, v1) + goto _3 +_3: + return v2 +} + +func X_IO_getc(tls *TLS, f1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f1=%v, (%v:)", tls, f1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetc(tls, f1) +} + +func Xgetc_unlocked(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + var v2, v3 uintptr + _, _, _ = v1, v2, v3 + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + v3 = f + 8 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__uflow(tls, f) + } + return v1 +} + +func X_IO_getc_unlocked(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetc_unlocked(tls, f) +} + +func Xfgetc_unlocked(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetc_unlocked(tls, f) +} + +func _locking_getc2(tls *TLS, f uintptr) (r int32) { + var c, old, v1, v12, v2, v4, v8, v9 int32 + var v14, v5, v6, v7 uintptr + _, _, _, _, _, _, _, _, _, _, _, _ = c, old, v1, v12, v14, v2, v4, v5, v6, v7, v8, v9 + v1 = 0 + // __asm__ __volatile__ ( + // + // "cs %0, %2, %1" + // : "+d"(t), "+Q"(*p) : "d"(s) : "memory", "cc"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 4, __ccgo_ts+1538) + v2 = v1 + goto _3 +_3: + if v2 != 0 { + ___lockfile(tls, f) + } + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + v6 = f + 8 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v5))) + } else { + v1 = X__uflow(tls, f) + } + c = v1 + v7 = f + 140 + for { + old = AtomicLoadPInt32(v7) + goto _11 + _11: + ; + v2 = old + // __asm__ __volatile__ ( + // + // "cs %0, %2, %1" + // : "+d"(t), "+Q"(*p) : "d"(s) : "memory", "cc"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 4, __ccgo_ts+1538) + v4 = v2 + goto _10 + _10: + ; + if !(v4 != old) { + break + } + } + v8 = old + goto _13 +_13: + if v8&int32(MAYBE_WAITERS) != 0 { + v14 = f + 140 + v9 = int32(1) + v12 = int32(1) + if v12 != 0 { + v12 = int32(FUTEX_PRIVATE) + } + if v9 < Int32FromInt32(0) { + v9 = int32(INT_MAX) + } + _ = X__syscall3(tls, int64(SYS_futex), int64(v14), int64(Int32FromInt32(FUTEX_WAKE)|v12), int64(v9)) != int64(-int32(ENOSYS)) || X__syscall3(tls, int64(SYS_futex), int64(v14), int64(Int32FromInt32(FUTEX_WAKE)), int64(v9)) != 0 + } + return c +} + +func Xgetchar(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l, v2, v4 int32 + var v1, v5, v6 uintptr + _, _, _, _, _, _ = l, v1, v2, v4, v5, v6 + v1 = uintptr(unsafe.Pointer(&X__stdin_FILE)) + l = AtomicLoadPInt32(v1 + 140) + if l < 0 || l != 0 && l & ^Int32FromInt32(MAYBE_WAITERS) == (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Ftid { + if (*TFILE)(unsafe.Pointer(v1)).Frpos != (*TFILE)(unsafe.Pointer(v1)).Frend { + v6 = v1 + 8 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + v4 = Int32FromUint8(**(**uint8)(__ccgo_up(v5))) + } else { + v4 = X__uflow(tls, v1) + } + v2 = v4 + goto _3 + } + v2 = _locking_getc2(tls, v1) + goto _3 +_3: + return v2 +} + +func Xgetchar_unlocked(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + var v2, v3 uintptr + _, _, _ = v1, v2, v3 + if (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdin_FILE)))).Frpos != (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdin_FILE)))).Frend { + v3 = uintptr(unsafe.Pointer(&X__stdin_FILE)) + 8 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v2))) + } else { + v1 = X__uflow(tls, uintptr(unsafe.Pointer(&X__stdin_FILE))) + } + return v1 +} + +func Xgetdelim(tls *TLS, s uintptr, n uintptr, delim int32, f uintptr) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v delim=%v f=%v, (%v:)", tls, s, n, delim, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, c, v1, v4 int32 + var i, k, m, v11 Tsize_t + var tmp, z, v6, v7 uintptr + var v10 uint8 + var v3 int64 + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = __need_unlock, c, i, k, m, tmp, z, v1, v10, v11, v3, v4, v6, v7 + i = uint64(0) + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + if !(n != 0) || !(s != 0) { + **(**int32)(__ccgo_up(f + 136)) |= (*TFILE)(unsafe.Pointer(f)).Fmode - int32(1) + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return int64(-int32(1)) + } + if !(**(**uintptr)(__ccgo_up(s)) != 0) { + **(**Tsize_t)(__ccgo_up(n)) = uint64(0) + } + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + z = Xmemchr(tls, (*TFILE)(unsafe.Pointer(f)).Frpos, delim, Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Frend)-int64((*TFILE)(unsafe.Pointer(f)).Frpos))) + if z != 0 { + v3 = int64(z) - int64((*TFILE)(unsafe.Pointer(f)).Frpos) + int64(1) + } else { + v3 = int64((*TFILE)(unsafe.Pointer(f)).Frend) - int64((*TFILE)(unsafe.Pointer(f)).Frpos) + } + k = Uint64FromInt64(v3) + } else { + z = uintptr(0) + k = uint64(0) + } + if i+k >= **(**Tsize_t)(__ccgo_up(n)) { + m = i + k + uint64(2) + if !(z != 0) && m < Uint64FromUint64(0xffffffffffffffff)/Uint64FromInt32(4) { + m = m + m/uint64(2) + } + tmp = Xrealloc(tls, **(**uintptr)(__ccgo_up(s)), m) + if !(tmp != 0) { + m = i + k + uint64(2) + tmp = Xrealloc(tls, **(**uintptr)(__ccgo_up(s)), m) + if !(tmp != 0) { + /* Copy as much as fits and ensure no + * pushback remains in the FILE buf. */ + k = **(**Tsize_t)(__ccgo_up(n)) - i + Xmemcpy(tls, **(**uintptr)(__ccgo_up(s))+uintptr(i), (*TFILE)(unsafe.Pointer(f)).Frpos, k) + **(**uintptr)(__ccgo_up(f + 8)) += uintptr(k) + **(**int32)(__ccgo_up(f + 136)) |= (*TFILE)(unsafe.Pointer(f)).Fmode - int32(1) + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOMEM) + return int64(-int32(1)) + } + } + **(**uintptr)(__ccgo_up(s)) = tmp + **(**Tsize_t)(__ccgo_up(n)) = m + } + if k != 0 { + Xmemcpy(tls, **(**uintptr)(__ccgo_up(s))+uintptr(i), (*TFILE)(unsafe.Pointer(f)).Frpos, k) + **(**uintptr)(__ccgo_up(f + 8)) += uintptr(k) + i = i + k + } + if z != 0 { + break + } + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend { + v7 = f + 8 + v6 = *(*uintptr)(unsafe.Pointer(v7)) + *(*uintptr)(unsafe.Pointer(v7)) = *(*uintptr)(unsafe.Pointer(v7)) + 1 + v4 = Int32FromUint8(**(**uint8)(__ccgo_up(v6))) + } else { + v4 = X__uflow(tls, f) + } + v1 = v4 + c = v1 + if v1 == -int32(1) { + if !(i != 0) || !((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_EOF) != 0) { + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return int64(-int32(1)) + } + break + } + /* If the byte read by getc won't fit without growing the + * output buffer, push it back for next iteration. */ + if i+uint64(1) >= **(**Tsize_t)(__ccgo_up(n)) { + v7 = f + 8 + *(*uintptr)(unsafe.Pointer(v7)) = *(*uintptr)(unsafe.Pointer(v7)) - 1 + v6 = *(*uintptr)(unsafe.Pointer(v7)) + **(**uint8)(__ccgo_up(v6)) = Uint8FromInt32(c) + } else { + v10 = Uint8FromInt32(c) + v11 = i + i = i + 1 + **(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(s)) + uintptr(v11))) = v10 + if Int32FromUint8(v10) == delim { + break + } + } + goto _2 + _2: + } + **(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(s)) + uintptr(i))) = uint8(0) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return Int64FromUint64(i) +} + +func X__getdelim(tls *TLS, s uintptr, n uintptr, delim int32, f uintptr) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v delim=%v f=%v, (%v:)", tls, s, n, delim, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetdelim(tls, s, n, delim, f) +} + +func Xgetline(tls *TLS, s uintptr, n uintptr, f uintptr) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v f=%v, (%v:)", tls, s, n, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetdelim(tls, s, n, int32('\n'), f) +} + +func Xgets(tls *TLS, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, c, v1, v2, v3 int32 + var i, v6 Tsize_t + var v4, v5 uintptr + _, _, _, _, _, _, _, _, _ = __need_unlock, c, i, v1, v2, v3, v4, v5, v6 + i = uint64(0) + if AtomicLoadPInt32(uintptr(unsafe.Pointer(&X__stdin_FILE))+140) >= 0 { + v1 = ___lockfile(tls, uintptr(unsafe.Pointer(&X__stdin_FILE))) + } else { + v1 = 0 + } + __need_unlock = v1 + for { + if (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdin_FILE)))).Frpos != (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdin_FILE)))).Frend { + v5 = uintptr(unsafe.Pointer(&X__stdin_FILE)) + 8 + v4 = *(*uintptr)(unsafe.Pointer(v5)) + *(*uintptr)(unsafe.Pointer(v5)) = *(*uintptr)(unsafe.Pointer(v5)) + 1 + v3 = Int32FromUint8(**(**uint8)(__ccgo_up(v4))) + } else { + v3 = X__uflow(tls, uintptr(unsafe.Pointer(&X__stdin_FILE))) + } + v2 = v3 + c = v2 + if !(v2 != -int32(1) && c != int32('\n')) { + break + } + v6 = i + i = i + 1 + **(**uint8)(__ccgo_up(s + uintptr(v6))) = Uint8FromInt32(c) + } + **(**uint8)(__ccgo_up(s + uintptr(i))) = uint8(0) + if c != int32('\n') && (!((*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdin_FILE)))).Fflags&Uint32FromInt32(F_EOF) != 0) || !(i != 0)) { + s = uintptr(0) + } + if __need_unlock != 0 { + ___unlockfile(tls, uintptr(unsafe.Pointer(&X__stdin_FILE))) + } + return s +} + +func Xgetw(tls *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 int32 + var _ /* x at bp+0 */ int32 + _ = v1 + if Xfread(tls, bp, uint64(4), uint64(1), f) != 0 { + v1 = **(**int32)(__ccgo_up(bp)) + } else { + v1 = -int32(1) + } + return v1 +} + +func Xgetwc(tls *TLS, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfgetwc(tls, f) +} + +func Xgetwchar(tls *TLS) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfgetwc(tls, uintptr(unsafe.Pointer(&X__stdin_FILE))) +} + +func Xgetwchar_unlocked(tls *TLS) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetwchar(tls) +} + +var _ofl_head uintptr +var _ofl_lock [1]int32 + +func X__ofl_lock(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + ___lock(tls, uintptr(unsafe.Pointer(&_ofl_lock))) + return uintptr(unsafe.Pointer(&_ofl_head)) +} + +func X__ofl_unlock(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + ___unlock(tls, uintptr(unsafe.Pointer(&_ofl_lock))) +} + +func X__ofl_add(tls *TLS, f uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var head uintptr + _ = head + head = X__ofl_lock(tls) + (*TFILE)(unsafe.Pointer(f)).Fnext = **(**uintptr)(__ccgo_up(head)) + if **(**uintptr)(__ccgo_up(head)) != 0 { + (*TFILE)(unsafe.Pointer(**(**uintptr)(__ccgo_up(head)))).Fprev = f + } + **(**uintptr)(__ccgo_up(head)) = f + X__ofl_unlock(tls) + return f +} + +type Tcookie1 = struct { + Fbufp uintptr + Fsizep uintptr + Fpos Tsize_t + Fbuf uintptr + Flen1 Tsize_t + Fspace Tsize_t +} + +type Tms_FILE = struct { + Ff TFILE + Fc Tcookie1 + Fbuf [1024]uint8 +} + +func _ms_seek(tls *TLS, f uintptr, off Toff_t, whence int32) (r Toff_t) { + bp := tls.Alloc(32) + defer tls.Free(32) + var base Tssize_t + var c uintptr + var v2 Tsize_t + _, _, _ = base, c, v2 + c = (*TFILE)(unsafe.Pointer(f)).Fcookie + if !(Uint32FromInt32(whence) > uint32(2)) { + goto _1 + } + goto fail +fail: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return int64(-int32(1)) +_1: + ; + *(*[3]Tsize_t)(unsafe.Pointer(bp)) = [3]Tsize_t{ + 1: (*Tcookie1)(unsafe.Pointer(c)).Fpos, + 2: (*Tcookie1)(unsafe.Pointer(c)).Flen1, + } + base = Int64FromUint64(**(**Tsize_t)(__ccgo_up(bp + uintptr(whence)*8))) + if off < -base || off > int64(0x7fffffffffffffff)-base { + goto fail + } + v2 = Uint64FromInt64(base + off) + (*Tcookie1)(unsafe.Pointer(c)).Fpos = v2 + return Int64FromUint64(v2) +} + +func _ms_write(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + var c, newbuf, v1 uintptr + var len2 Tsize_t + _, _, _, _ = c, len2, newbuf, v1 + c = (*TFILE)(unsafe.Pointer(f)).Fcookie + len2 = Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Fwpos) - int64((*TFILE)(unsafe.Pointer(f)).Fwbase)) + if len2 != 0 { + (*TFILE)(unsafe.Pointer(f)).Fwpos = (*TFILE)(unsafe.Pointer(f)).Fwbase + if _ms_write(tls, f, (*TFILE)(unsafe.Pointer(f)).Fwbase, len2) < len2 { + return uint64(0) + } + } + if len1+(*Tcookie1)(unsafe.Pointer(c)).Fpos >= (*Tcookie1)(unsafe.Pointer(c)).Fspace { + len2 = uint64(2)*(*Tcookie1)(unsafe.Pointer(c)).Fspace + uint64(1) | ((*Tcookie1)(unsafe.Pointer(c)).Fpos + len1 + uint64(1)) + newbuf = Xrealloc(tls, (*Tcookie1)(unsafe.Pointer(c)).Fbuf, len2) + if !(newbuf != 0) { + return uint64(0) + } + v1 = newbuf + (*Tcookie1)(unsafe.Pointer(c)).Fbuf = v1 + **(**uintptr)(__ccgo_up((*Tcookie1)(unsafe.Pointer(c)).Fbufp)) = v1 + Xmemset(tls, (*Tcookie1)(unsafe.Pointer(c)).Fbuf+uintptr((*Tcookie1)(unsafe.Pointer(c)).Fspace), 0, len2-(*Tcookie1)(unsafe.Pointer(c)).Fspace) + (*Tcookie1)(unsafe.Pointer(c)).Fspace = len2 + } + Xmemcpy(tls, (*Tcookie1)(unsafe.Pointer(c)).Fbuf+uintptr((*Tcookie1)(unsafe.Pointer(c)).Fpos), buf, len1) + **(**Tsize_t)(__ccgo_up(c + 16)) += len1 + if (*Tcookie1)(unsafe.Pointer(c)).Fpos >= (*Tcookie1)(unsafe.Pointer(c)).Flen1 { + (*Tcookie1)(unsafe.Pointer(c)).Flen1 = (*Tcookie1)(unsafe.Pointer(c)).Fpos + } + **(**Tsize_t)(__ccgo_up((*Tcookie1)(unsafe.Pointer(c)).Fsizep)) = (*Tcookie1)(unsafe.Pointer(c)).Fpos + return len1 +} + +func _ms_close(tls *TLS, f uintptr) (r int32) { + return 0 +} + +func Xopen_memstream(tls *TLS, bufp uintptr, sizep uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v bufp=%v sizep=%v, (%v:)", tls, bufp, sizep, origin(2)) + defer func() { trc("-> %v", r) }() + } + var buf, f, v1 uintptr + var v3, v4, v5 Tsize_t + _, _, _, _, _, _ = buf, f, v1, v3, v4, v5 + v1 = Xmalloc(tls, uint64(1304)) + f = v1 + if !(v1 != 0) { + return uintptr(0) + } + v1 = Xmalloc(tls, uint64(1)) + buf = v1 + if !(v1 != 0) { + Xfree(tls, f) + return uintptr(0) + } + Xmemset(tls, f, 0, uint64(232)) + Xmemset(tls, f+232, 0, uint64(48)) + (*Tms_FILE)(unsafe.Pointer(f)).Ff.Fcookie = f + 232 + (*Tms_FILE)(unsafe.Pointer(f)).Fc.Fbufp = bufp + (*Tms_FILE)(unsafe.Pointer(f)).Fc.Fsizep = sizep + v5 = Uint64FromInt32(0) + **(**Tsize_t)(__ccgo_up(sizep)) = v5 + v4 = v5 + (*Tms_FILE)(unsafe.Pointer(f)).Fc.Fspace = v4 + v3 = v4 + (*Tms_FILE)(unsafe.Pointer(f)).Fc.Flen1 = v3 + (*Tms_FILE)(unsafe.Pointer(f)).Fc.Fpos = v3 + v1 = buf + **(**uintptr)(__ccgo_up(bufp)) = v1 + (*Tms_FILE)(unsafe.Pointer(f)).Fc.Fbuf = v1 + **(**uint8)(__ccgo_up(buf)) = uint8(0) + (*Tms_FILE)(unsafe.Pointer(f)).Ff.Fflags = uint32(F_NORD) + (*Tms_FILE)(unsafe.Pointer(f)).Ff.Ffd = -int32(1) + (*Tms_FILE)(unsafe.Pointer(f)).Ff.Fbuf = f + 280 + (*Tms_FILE)(unsafe.Pointer(f)).Ff.Fbuf_size = uint64(1024) + (*Tms_FILE)(unsafe.Pointer(f)).Ff.Flbf = -int32(1) + (*Tms_FILE)(unsafe.Pointer(f)).Ff.Fwrite = __ccgo_fp(_ms_write) + (*Tms_FILE)(unsafe.Pointer(f)).Ff.Fseek = __ccgo_fp(_ms_seek) + (*Tms_FILE)(unsafe.Pointer(f)).Ff.Fclose1 = __ccgo_fp(_ms_close) + (*Tms_FILE)(unsafe.Pointer(f)).Ff.Fmode = -int32(1) + if !(X__libc.Fthreaded != 0) { + AtomicStorePInt32(f+140, -int32(1)) + } + return X__ofl_add(tls, f) +} + +type Tcookie2 = struct { + Fbufp uintptr + Fsizep uintptr + Fpos Tsize_t + Fbuf uintptr + Flen1 Tsize_t + Fspace Tsize_t + Fmbs Tmbstate_t +} + +type Twms_FILE = struct { + Ff TFILE + Fc Tcookie2 + Fbuf [1]uint8 +} + +func _wms_seek(tls *TLS, f uintptr, off Toff_t, whence int32) (r Toff_t) { + bp := tls.Alloc(32) + defer tls.Free(32) + var base Tssize_t + var c uintptr + var v2 Tsize_t + _, _, _ = base, c, v2 + c = (*TFILE)(unsafe.Pointer(f)).Fcookie + if !(Uint32FromInt32(whence) > uint32(2)) { + goto _1 + } + goto fail +fail: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return int64(-int32(1)) +_1: + ; + *(*[3]Tsize_t)(unsafe.Pointer(bp)) = [3]Tsize_t{ + 1: (*Tcookie2)(unsafe.Pointer(c)).Fpos, + 2: (*Tcookie2)(unsafe.Pointer(c)).Flen1, + } + base = Int64FromUint64(**(**Tsize_t)(__ccgo_up(bp + uintptr(whence)*8))) + if off < -base || off > Int64FromInt64(0x7fffffffffffffff)/Int64FromInt32(4)-base { + goto fail + } + Xmemset(tls, c+48, 0, uint64(8)) + v2 = Uint64FromInt64(base + off) + (*Tcookie2)(unsafe.Pointer(c)).Fpos = v2 + return Int64FromUint64(v2) +} + +func _wms_write(tls *TLS, f uintptr, _buf uintptr, len1 Tsize_t) (r Tsize_t) { + bp := tls.Alloc(16) + defer tls.Free(16) + *(*uintptr)(unsafe.Pointer(bp)) = _buf + var c, newbuf, v1 uintptr + var len2 Tsize_t + _, _, _, _ = c, len2, newbuf, v1 + c = (*TFILE)(unsafe.Pointer(f)).Fcookie + len2 = Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Fwpos) - int64((*TFILE)(unsafe.Pointer(f)).Fwbase)) + if len2 != 0 { + (*TFILE)(unsafe.Pointer(f)).Fwpos = (*TFILE)(unsafe.Pointer(f)).Fwbase + if _wms_write(tls, f, (*TFILE)(unsafe.Pointer(f)).Fwbase, len2) < len2 { + return uint64(0) + } + } + if len1+(*Tcookie2)(unsafe.Pointer(c)).Fpos >= (*Tcookie2)(unsafe.Pointer(c)).Fspace { + len2 = uint64(2)*(*Tcookie2)(unsafe.Pointer(c)).Fspace + uint64(1) | ((*Tcookie2)(unsafe.Pointer(c)).Fpos + len1 + uint64(1)) + if len2 > Uint64FromInt64(Int64FromInt64(0x7fffffffffffffff)/Int64FromInt32(4)) { + return uint64(0) + } + newbuf = Xrealloc(tls, (*Tcookie2)(unsafe.Pointer(c)).Fbuf, len2*uint64(4)) + if !(newbuf != 0) { + return uint64(0) + } + v1 = newbuf + (*Tcookie2)(unsafe.Pointer(c)).Fbuf = v1 + **(**uintptr)(__ccgo_up((*Tcookie2)(unsafe.Pointer(c)).Fbufp)) = v1 + Xmemset(tls, (*Tcookie2)(unsafe.Pointer(c)).Fbuf+uintptr((*Tcookie2)(unsafe.Pointer(c)).Fspace)*4, 0, uint64(4)*(len2-(*Tcookie2)(unsafe.Pointer(c)).Fspace)) + (*Tcookie2)(unsafe.Pointer(c)).Fspace = len2 + } + len2 = Xmbsnrtowcs(tls, (*Tcookie2)(unsafe.Pointer(c)).Fbuf+uintptr((*Tcookie2)(unsafe.Pointer(c)).Fpos)*4, bp, len1, (*Tcookie2)(unsafe.Pointer(c)).Fspace-(*Tcookie2)(unsafe.Pointer(c)).Fpos, c+48) + if len2 == Uint64FromInt32(-Int32FromInt32(1)) { + return uint64(0) + } + **(**Tsize_t)(__ccgo_up(c + 16)) += len2 + if (*Tcookie2)(unsafe.Pointer(c)).Fpos >= (*Tcookie2)(unsafe.Pointer(c)).Flen1 { + (*Tcookie2)(unsafe.Pointer(c)).Flen1 = (*Tcookie2)(unsafe.Pointer(c)).Fpos + } + **(**Tsize_t)(__ccgo_up((*Tcookie2)(unsafe.Pointer(c)).Fsizep)) = (*Tcookie2)(unsafe.Pointer(c)).Fpos + return len1 +} + +func _wms_close(tls *TLS, f uintptr) (r int32) { + return 0 +} + +func Xopen_wmemstream(tls *TLS, bufp uintptr, sizep uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v bufp=%v sizep=%v, (%v:)", tls, bufp, sizep, origin(2)) + defer func() { trc("-> %v", r) }() + } + var buf, f, v1 uintptr + var v3, v4, v5 Tsize_t + _, _, _, _, _, _ = buf, f, v1, v3, v4, v5 + v1 = Xmalloc(tls, uint64(296)) + f = v1 + if !(v1 != 0) { + return uintptr(0) + } + v1 = Xmalloc(tls, uint64(4)) + buf = v1 + if !(v1 != 0) { + Xfree(tls, f) + return uintptr(0) + } + Xmemset(tls, f, 0, uint64(232)) + Xmemset(tls, f+232, 0, uint64(56)) + (*Twms_FILE)(unsafe.Pointer(f)).Ff.Fcookie = f + 232 + (*Twms_FILE)(unsafe.Pointer(f)).Fc.Fbufp = bufp + (*Twms_FILE)(unsafe.Pointer(f)).Fc.Fsizep = sizep + v5 = Uint64FromInt32(0) + **(**Tsize_t)(__ccgo_up(sizep)) = v5 + v4 = v5 + (*Twms_FILE)(unsafe.Pointer(f)).Fc.Fspace = v4 + v3 = v4 + (*Twms_FILE)(unsafe.Pointer(f)).Fc.Flen1 = v3 + (*Twms_FILE)(unsafe.Pointer(f)).Fc.Fpos = v3 + v1 = buf + **(**uintptr)(__ccgo_up(bufp)) = v1 + (*Twms_FILE)(unsafe.Pointer(f)).Fc.Fbuf = v1 + **(**Twchar_t)(__ccgo_up(buf)) = 0 + (*Twms_FILE)(unsafe.Pointer(f)).Ff.Fflags = uint32(F_NORD) + (*Twms_FILE)(unsafe.Pointer(f)).Ff.Ffd = -int32(1) + (*Twms_FILE)(unsafe.Pointer(f)).Ff.Fbuf = f + 288 + (*Twms_FILE)(unsafe.Pointer(f)).Ff.Fbuf_size = uint64(0) + (*Twms_FILE)(unsafe.Pointer(f)).Ff.Flbf = -int32(1) + (*Twms_FILE)(unsafe.Pointer(f)).Ff.Fwrite = __ccgo_fp(_wms_write) + (*Twms_FILE)(unsafe.Pointer(f)).Ff.Fseek = __ccgo_fp(_wms_seek) + (*Twms_FILE)(unsafe.Pointer(f)).Ff.Fclose1 = __ccgo_fp(_wms_close) + if !(X__libc.Fthreaded != 0) { + AtomicStorePInt32(f+140, -int32(1)) + } + Xfwide(tls, f, int32(1)) + return X__ofl_add(tls, f) +} + +func Xpclose(tls *TLS, f uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var pid Tpid_t + var r, v1 int32 + var _ /* status at bp+0 */ int32 + _, _, _ = pid, r, v1 + pid = (*TFILE)(unsafe.Pointer(f)).Fpipe_pid + Xfclose(tls, f) + for { + v1 = int32(X__syscall4(tls, int64(SYS_wait4), int64(pid), int64(bp), int64(Int32FromInt32(0)), int64(Int32FromInt32(0)))) + r = v1 + if !(v1 == -int32(EINTR)) { + break + } + } + if r < 0 { + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) + } + return **(**int32)(__ccgo_up(bp)) +} + +func Xperror(tls *TLS, msg uintptr) { + if __ccgo_strace { + trc("tls=%v msg=%v, (%v:)", tls, msg, origin(2)) + } + var __need_unlock, old_mode, v1 int32 + var errstr, f, old_locale uintptr + _, _, _, _, _, _ = __need_unlock, errstr, f, old_locale, old_mode, v1 + f = uintptr(unsafe.Pointer(&X__stderr_FILE)) + errstr = Xstrerror(tls, **(**int32)(__ccgo_up(X__errno_location(tls)))) + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + /* Save stderr's orientation and encoding rule, since perror is not + * permitted to change them. */ + old_locale = (*TFILE)(unsafe.Pointer(f)).Flocale + old_mode = (*TFILE)(unsafe.Pointer(f)).Fmode + if msg != 0 && **(**uint8)(__ccgo_up(msg)) != 0 { + Xfwrite(tls, msg, _strlen(tls, msg), uint64(1), f) + Xfputc(tls, int32(':'), f) + Xfputc(tls, int32(' '), f) + } + Xfwrite(tls, errstr, _strlen(tls, errstr), uint64(1), f) + Xfputc(tls, int32('\n'), f) + (*TFILE)(unsafe.Pointer(f)).Fmode = old_mode + (*TFILE)(unsafe.Pointer(f)).Flocale = old_locale + if __need_unlock != 0 { + ___unlockfile(tls, f) + } +} + +func Xprintf(tls *TLS, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v va=%v, (%v:)", tls, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvfprintf(tls, uintptr(unsafe.Pointer(&X__stdout_FILE)), fmt, ap) + _ = ap + return ret +} + +func _locking_putc1(tls *TLS, c int32, f uintptr) (r int32) { + var old, v1, v10, v2, v4, v9 int32 + var v6, v7 uintptr + var v5 uint8 + _, _, _, _, _, _, _, _, _ = old, v1, v10, v2, v4, v5, v6, v7, v9 + v1 = 0 + // __asm__ __volatile__ ( + // + // "cs %0, %2, %1" + // : "+d"(t), "+Q"(*p) : "d"(s) : "memory", "cc"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 4, __ccgo_ts+1551) + v2 = v1 + goto _3 +_3: + if v2 != 0 { + ___lockfile(tls, f) + } + if Int32FromUint8(Uint8FromInt32(c)) != (*TFILE)(unsafe.Pointer(f)).Flbf && (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwend { + v5 = Uint8FromInt32(c) + v7 = f + 40 + v6 = *(*uintptr)(unsafe.Pointer(v7)) + *(*uintptr)(unsafe.Pointer(v7)) = *(*uintptr)(unsafe.Pointer(v7)) + 1 + **(**uint8)(__ccgo_up(v6)) = v5 + v1 = Int32FromUint8(v5) + } else { + v1 = X__overflow(tls, f, Int32FromUint8(Uint8FromInt32(c))) + } + c = v1 + v6 = f + 140 + for { + old = AtomicLoadPInt32(v6) + goto _12 + _12: + ; + v1 = old + // __asm__ __volatile__ ( + // + // "cs %0, %2, %1" + // : "+d"(t), "+Q"(*p) : "d"(s) : "memory", "cc"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 4, __ccgo_ts+1551) + v2 = v1 + goto _11 + _11: + ; + if !(v2 != old) { + break + } + } + v4 = old + goto _14 +_14: + if v4&int32(MAYBE_WAITERS) != 0 { + v7 = f + 140 + v9 = int32(1) + v10 = int32(1) + if v10 != 0 { + v10 = int32(FUTEX_PRIVATE) + } + if v9 < Int32FromInt32(0) { + v9 = int32(INT_MAX) + } + _ = X__syscall3(tls, int64(SYS_futex), int64(v7), int64(Int32FromInt32(FUTEX_WAKE)|v10), int64(v9)) != int64(-int32(ENOSYS)) || X__syscall3(tls, int64(SYS_futex), int64(v7), int64(Int32FromInt32(FUTEX_WAKE)), int64(v9)) != 0 + } + return c +} + +func Xputc(tls *TLS, c1 int32, f1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v c1=%v f1=%v, (%v:)", tls, c1, f1, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l, v1, v3, v5 int32 + var v2, v7, v8 uintptr + var v6 uint8 + _, _, _, _, _, _, _, _ = l, v1, v2, v3, v5, v6, v7, v8 + v1 = c1 + v2 = f1 + l = AtomicLoadPInt32(v2 + 140) + if l < 0 || l != 0 && l & ^Int32FromInt32(MAYBE_WAITERS) == (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Ftid { + if Int32FromUint8(Uint8FromInt32(v1)) != (*TFILE)(unsafe.Pointer(v2)).Flbf && (*TFILE)(unsafe.Pointer(v2)).Fwpos != (*TFILE)(unsafe.Pointer(v2)).Fwend { + v6 = Uint8FromInt32(v1) + v8 = v2 + 40 + v7 = *(*uintptr)(unsafe.Pointer(v8)) + *(*uintptr)(unsafe.Pointer(v8)) = *(*uintptr)(unsafe.Pointer(v8)) + 1 + **(**uint8)(__ccgo_up(v7)) = v6 + v5 = Int32FromUint8(v6) + } else { + v5 = X__overflow(tls, v2, Int32FromUint8(Uint8FromInt32(v1))) + } + v3 = v5 + goto _4 + } + v3 = _locking_putc1(tls, v1, v2) + goto _4 +_4: + return v3 +} + +func X_IO_putc(tls *TLS, c1 int32, f1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v c1=%v f1=%v, (%v:)", tls, c1, f1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xputc(tls, c1, f1) +} + +func Xputc_unlocked(tls *TLS, c int32, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v f=%v, (%v:)", tls, c, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + var v2 uint8 + var v3, v4 uintptr + _, _, _, _ = v1, v2, v3, v4 + if Int32FromUint8(Uint8FromInt32(c)) != (*TFILE)(unsafe.Pointer(f)).Flbf && (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwend { + v2 = Uint8FromInt32(c) + v4 = f + 40 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + **(**uint8)(__ccgo_up(v3)) = v2 + v1 = Int32FromUint8(v2) + } else { + v1 = X__overflow(tls, f, Int32FromUint8(Uint8FromInt32(c))) + } + return v1 +} + +func X_IO_putc_unlocked(tls *TLS, c int32, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v f=%v, (%v:)", tls, c, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xputc_unlocked(tls, c, f) +} + +func Xfputc_unlocked(tls *TLS, c int32, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v f=%v, (%v:)", tls, c, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xputc_unlocked(tls, c, f) +} + +func _locking_putc2(tls *TLS, c int32, f uintptr) (r int32) { + var old, v1, v10, v2, v4, v9 int32 + var v6, v7 uintptr + var v5 uint8 + _, _, _, _, _, _, _, _, _ = old, v1, v10, v2, v4, v5, v6, v7, v9 + v1 = 0 + // __asm__ __volatile__ ( + // + // "cs %0, %2, %1" + // : "+d"(t), "+Q"(*p) : "d"(s) : "memory", "cc"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 4, __ccgo_ts+1551) + v2 = v1 + goto _3 +_3: + if v2 != 0 { + ___lockfile(tls, f) + } + if Int32FromUint8(Uint8FromInt32(c)) != (*TFILE)(unsafe.Pointer(f)).Flbf && (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwend { + v5 = Uint8FromInt32(c) + v7 = f + 40 + v6 = *(*uintptr)(unsafe.Pointer(v7)) + *(*uintptr)(unsafe.Pointer(v7)) = *(*uintptr)(unsafe.Pointer(v7)) + 1 + **(**uint8)(__ccgo_up(v6)) = v5 + v1 = Int32FromUint8(v5) + } else { + v1 = X__overflow(tls, f, Int32FromUint8(Uint8FromInt32(c))) + } + c = v1 + v6 = f + 140 + for { + old = AtomicLoadPInt32(v6) + goto _12 + _12: + ; + v1 = old + // __asm__ __volatile__ ( + // + // "cs %0, %2, %1" + // : "+d"(t), "+Q"(*p) : "d"(s) : "memory", "cc"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 4, __ccgo_ts+1551) + v2 = v1 + goto _11 + _11: + ; + if !(v2 != old) { + break + } + } + v4 = old + goto _14 +_14: + if v4&int32(MAYBE_WAITERS) != 0 { + v7 = f + 140 + v9 = int32(1) + v10 = int32(1) + if v10 != 0 { + v10 = int32(FUTEX_PRIVATE) + } + if v9 < Int32FromInt32(0) { + v9 = int32(INT_MAX) + } + _ = X__syscall3(tls, int64(SYS_futex), int64(v7), int64(Int32FromInt32(FUTEX_WAKE)|v10), int64(v9)) != int64(-int32(ENOSYS)) || X__syscall3(tls, int64(SYS_futex), int64(v7), int64(Int32FromInt32(FUTEX_WAKE)), int64(v9)) != 0 + } + return c +} + +func Xputchar(tls *TLS, c1 int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c1=%v, (%v:)", tls, c1, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l, v1, v3, v5 int32 + var v2, v7, v8 uintptr + var v6 uint8 + _, _, _, _, _, _, _, _ = l, v1, v2, v3, v5, v6, v7, v8 + v1 = c1 + v2 = uintptr(unsafe.Pointer(&X__stdout_FILE)) + l = AtomicLoadPInt32(v2 + 140) + if l < 0 || l != 0 && l & ^Int32FromInt32(MAYBE_WAITERS) == (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Ftid { + if Int32FromUint8(Uint8FromInt32(v1)) != (*TFILE)(unsafe.Pointer(v2)).Flbf && (*TFILE)(unsafe.Pointer(v2)).Fwpos != (*TFILE)(unsafe.Pointer(v2)).Fwend { + v6 = Uint8FromInt32(v1) + v8 = v2 + 40 + v7 = *(*uintptr)(unsafe.Pointer(v8)) + *(*uintptr)(unsafe.Pointer(v8)) = *(*uintptr)(unsafe.Pointer(v8)) + 1 + **(**uint8)(__ccgo_up(v7)) = v6 + v5 = Int32FromUint8(v6) + } else { + v5 = X__overflow(tls, v2, Int32FromUint8(Uint8FromInt32(v1))) + } + v3 = v5 + goto _4 + } + v3 = _locking_putc2(tls, v1, v2) + goto _4 +_4: + return v3 +} + +func Xputchar_unlocked(tls *TLS, c int32) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + var v2 uint8 + var v3, v4 uintptr + _, _, _, _ = v1, v2, v3, v4 + if Int32FromUint8(Uint8FromInt32(c)) != (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdout_FILE)))).Flbf && (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdout_FILE)))).Fwpos != (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdout_FILE)))).Fwend { + v2 = Uint8FromInt32(c) + v4 = uintptr(unsafe.Pointer(&X__stdout_FILE)) + 40 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + **(**uint8)(__ccgo_up(v3)) = v2 + v1 = Int32FromUint8(v2) + } else { + v1 = X__overflow(tls, uintptr(unsafe.Pointer(&X__stdout_FILE)), Int32FromUint8(Uint8FromInt32(c))) + } + return v1 +} + +func Xputs(tls *TLS, s uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var __need_unlock, r, v1, v2 int32 + var v3 uint8 + var v4, v5 uintptr + var v6 bool + _, _, _, _, _, _, _, _ = __need_unlock, r, v1, v2, v3, v4, v5, v6 + if AtomicLoadPInt32(uintptr(unsafe.Pointer(&X__stdout_FILE))+140) >= 0 { + v1 = ___lockfile(tls, uintptr(unsafe.Pointer(&X__stdout_FILE))) + } else { + v1 = 0 + } + __need_unlock = v1 + if v6 = Xfputs(tls, s, uintptr(unsafe.Pointer(&X__stdout_FILE))) < 0; !v6 { + if Int32FromUint8(Uint8FromInt32(Int32FromUint8('\n'))) != (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdout_FILE)))).Flbf && (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdout_FILE)))).Fwpos != (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdout_FILE)))).Fwend { + v3 = Uint8FromInt32(Int32FromUint8('\n')) + v5 = uintptr(unsafe.Pointer(&X__stdout_FILE)) + 40 + v4 = *(*uintptr)(unsafe.Pointer(v5)) + *(*uintptr)(unsafe.Pointer(v5)) = *(*uintptr)(unsafe.Pointer(v5)) + 1 + **(**uint8)(__ccgo_up(v4)) = v3 + v2 = Int32FromUint8(v3) + } else { + v2 = X__overflow(tls, uintptr(unsafe.Pointer(&X__stdout_FILE)), Int32FromUint8(Uint8FromInt32(Int32FromUint8('\n')))) + } + } + r = -BoolInt32(v6 || v2 < 0) + if __need_unlock != 0 { + ___unlockfile(tls, uintptr(unsafe.Pointer(&X__stdout_FILE))) + } + return r +} + +func Xputw(tls *TLS, _x int32, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v _x=%v f=%v, (%v:)", tls, _x, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + *(*int32)(unsafe.Pointer(bp)) = _x + return Int32FromUint64(Xfwrite(tls, bp, uint64(4), uint64(1), f)) - int32(1) +} + +func Xputwc(tls *TLS, c Twchar_t, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v f=%v, (%v:)", tls, c, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfputwc(tls, c, f) +} + +func Xputwchar(tls *TLS, c Twchar_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfputwc(tls, c, uintptr(unsafe.Pointer(&X__stdout_FILE))) +} + +func Xputwchar_unlocked(tls *TLS, c Twchar_t) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xputwchar(tls, c) +} + +func Xremove(tls *TLS, path uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v path=%v, (%v:)", tls, path, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + r = int32(X__syscall1(tls, int64(SYS_unlink), int64(path))) + if r == -int32(EISDIR) { + r = int32(X__syscall1(tls, int64(SYS_rmdir), int64(path))) + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func Xrename(tls *TLS, old uintptr, new1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v old=%v new1=%v, (%v:)", tls, old, new1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_rename), int64(old), int64(new1))))) +} + +func Xrewind(tls *TLS, f uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } + var __need_unlock, v1 int32 + _, _ = __need_unlock, v1 + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + X__fseeko_unlocked(tls, f, 0, 0) + **(**uint32)(__ccgo_up(f)) &= Uint32FromInt32(^Int32FromInt32(F_ERR)) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } +} + +func Xscanf(tls *TLS, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v va=%v, (%v:)", tls, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvscanf(tls, fmt, ap) + _ = ap + return ret +} + +func X__isoc99_scanf(tls *TLS, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v va=%v, (%v:)", tls, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xscanf(tls, fmt, va) +} + +func Xsetbuf(tls *TLS, f uintptr, buf uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v buf=%v, (%v:)", tls, f, buf, origin(2)) + } + var v1 int32 + _ = v1 + if buf != 0 { + v1 = _IOFBF + } else { + v1 = int32(_IONBF) + } + Xsetvbuf(tls, f, buf, v1, uint64(BUFSIZ)) +} + +func Xsetbuffer(tls *TLS, f uintptr, buf uintptr, size Tsize_t) { + if __ccgo_strace { + trc("tls=%v f=%v buf=%v size=%v, (%v:)", tls, f, buf, size, origin(2)) + } + var v1 int32 + _ = v1 + if buf != 0 { + v1 = _IOFBF + } else { + v1 = int32(_IONBF) + } + Xsetvbuf(tls, f, buf, v1, size) +} + +func Xsetlinebuf(tls *TLS, f uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } + Xsetvbuf(tls, f, uintptr(0), int32(_IOLBF), uint64(0)) +} + +/* The behavior of this function is undefined except when it is the first + * operation on the stream, so the presence or absence of locking is not + * observable in a program whose behavior is defined. Thus no locking is + * performed here. No allocation of buffers is performed, but a buffer + * provided by the caller is used as long as it is suitably sized. */ + +func Xsetvbuf(tls *TLS, f uintptr, buf uintptr, type1 int32, size Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v buf=%v type1=%v size=%v, (%v:)", tls, f, buf, type1, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + (*TFILE)(unsafe.Pointer(f)).Flbf = -int32(1) + if type1 == int32(_IONBF) { + (*TFILE)(unsafe.Pointer(f)).Fbuf_size = uint64(0) + } else { + if type1 == int32(_IOLBF) || type1 == _IOFBF { + if buf != 0 && size >= uint64(UNGET) { + (*TFILE)(unsafe.Pointer(f)).Fbuf = buf + UintptrFromInt32(UNGET) + (*TFILE)(unsafe.Pointer(f)).Fbuf_size = size - uint64(UNGET) + } + if type1 == int32(_IOLBF) && (*TFILE)(unsafe.Pointer(f)).Fbuf_size != 0 { + (*TFILE)(unsafe.Pointer(f)).Flbf = int32('\n') + } + } else { + return -int32(1) + } + } + **(**uint32)(__ccgo_up(f)) |= uint32(F_SVB) + return 0 +} + +func Xsnprintf(tls *TLS, s uintptr, n Tsize_t, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v fmt=%v va=%v, (%v:)", tls, s, n, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvsnprintf(tls, s, n, fmt, ap) + _ = ap + return ret +} + +func Xsprintf(tls *TLS, s uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v va=%v, (%v:)", tls, s, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvsprintf(tls, s, fmt, ap) + _ = ap + return ret +} + +func Xsscanf(tls *TLS, s uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v va=%v, (%v:)", tls, s, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvsscanf(tls, s, fmt, ap) + _ = ap + return ret +} + +func X__isoc99_sscanf(tls *TLS, s uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v va=%v, (%v:)", tls, s, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xsscanf(tls, s, fmt, va) +} + +var _buf5 [8]uint8 + +func init() { + p := unsafe.Pointer(&X__stderr_FILE) + *(*uintptr)(unsafe.Add(p, 24)) = __ccgo_fp(X__stdio_close) + *(*uintptr)(unsafe.Add(p, 72)) = __ccgo_fp(X__stdio_write) + *(*uintptr)(unsafe.Add(p, 80)) = __ccgo_fp(X__stdio_seek) +} + +var _buf6 [1032]uint8 + +func init() { + p := unsafe.Pointer(&X__stdin_FILE) + *(*uintptr)(unsafe.Add(p, 24)) = __ccgo_fp(X__stdio_close) + *(*uintptr)(unsafe.Add(p, 64)) = __ccgo_fp(X__stdio_read) + *(*uintptr)(unsafe.Add(p, 80)) = __ccgo_fp(X__stdio_seek) +} + +var _buf7 [1032]uint8 + +func init() { + p := unsafe.Pointer(&X__stdout_FILE) + *(*uintptr)(unsafe.Add(p, 24)) = __ccgo_fp(X__stdio_close) + *(*uintptr)(unsafe.Add(p, 72)) = __ccgo_fp(X__stdout_write) + *(*uintptr)(unsafe.Add(p, 80)) = __ccgo_fp(X__stdio_seek) +} + +func Xswprintf(tls *TLS, s uintptr, n Tsize_t, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v fmt=%v va=%v, (%v:)", tls, s, n, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvswprintf(tls, s, n, fmt, ap) + _ = ap + return ret +} + +func Xswscanf(tls *TLS, s uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v va=%v, (%v:)", tls, s, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvswscanf(tls, s, fmt, ap) + _ = ap + return ret +} + +func X__isoc99_swscanf(tls *TLS, s uintptr, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v va=%v, (%v:)", tls, s, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xswscanf(tls, s, fmt, va) +} + +const MAXTRIES = 100 + +func Xtempnam(tls *TLS, dir uintptr, pfx uintptr) (r1 uintptr) { + if __ccgo_strace { + trc("tls=%v dir=%v pfx=%v, (%v:)", tls, dir, pfx, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(4112) + defer tls.Free(4112) + var dl, l, pl Tsize_t + var r, try int32 + var _ /* s at bp+1 */ [4096]uint8 + _, _, _, _, _ = dl, l, pl, r, try + if !(dir != 0) { + dir = __ccgo_ts + 1603 + } + if !(pfx != 0) { + pfx = __ccgo_ts + 1608 + } + dl = _strlen(tls, dir) + pl = _strlen(tls, pfx) + l = dl + uint64(1) + pl + uint64(1) + uint64(6) + if l >= uint64(PATH_MAX) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENAMETOOLONG) + return uintptr(0) + } + Xmemcpy(tls, bp+1, dir, dl) + (**(**[4096]uint8)(__ccgo_up(bp + 1)))[dl] = uint8('/') + Xmemcpy(tls, bp+1+uintptr(dl)+uintptr(1), pfx, pl) + (**(**[4096]uint8)(__ccgo_up(bp + 1)))[dl+uint64(1)+pl] = uint8('_') + (**(**[4096]uint8)(__ccgo_up(bp + 1)))[l] = uint8(0) + try = 0 + for { + if !(try < int32(MAXTRIES)) { + break + } + ___randname(tls, bp+1+uintptr(l)-uintptr(6)) + *(*[1]uint8)(unsafe.Pointer(bp)) = [1]uint8{} + r = int32(X__syscall3(tls, int64(SYS_readlink), int64(bp+1), int64(bp), int64(Int32FromInt32(1)))) + if r == -int32(ENOENT) { + return Xstrdup(tls, bp+1) + } + goto _1 + _1: + ; + try = try + 1 + } + return uintptr(0) +} + +func Xtmpfile(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var f uintptr + var fd, try int32 + var _ /* s at bp+0 */ [20]uint8 + _, _, _ = f, fd, try + **(**[20]uint8)(__ccgo_up(bp)) = [20]uint8{'/', 't', 'm', 'p', '/', 't', 'm', 'p', 'f', 'i', 'l', 'e', '_', 'X', 'X', 'X', 'X', 'X', 'X'} + try = 0 + for { + if !(try < int32(MAXTRIES)) { + break + } + ___randname(tls, bp+uintptr(13)) + fd = int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_open), int64(bp), int64(Int32FromInt32(O_RDWR)|Int32FromInt32(O_CREAT)|Int32FromInt32(O_EXCL)|Int32FromInt32(O_LARGEFILE)), int64(Int32FromInt32(0600)))))) + if fd >= 0 { + X__syscall1(tls, int64(SYS_unlink), int64(bp)) + f = X__fdopen(tls, fd, __ccgo_ts+1613) + if !(f != 0) { + X__syscall1(tls, int64(SYS_close), int64(fd)) + } + return f + } + goto _1 + _1: + ; + try = try + 1 + } + return uintptr(0) +} + +func Xtmpnam(tls *TLS, buf uintptr) (r1 uintptr) { + if __ccgo_strace { + trc("tls=%v buf=%v, (%v:)", tls, buf, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var r, try int32 + var v2 uintptr + var _ /* s at bp+1 */ [19]uint8 + _, _, _ = r, try, v2 + **(**[19]uint8)(__ccgo_up(bp + 1)) = [19]uint8{'/', 't', 'm', 'p', '/', 't', 'm', 'p', 'n', 'a', 'm', '_', 'X', 'X', 'X', 'X', 'X', 'X'} + try = 0 + for { + if !(try < int32(MAXTRIES)) { + break + } + ___randname(tls, bp+1+uintptr(12)) + *(*[1]uint8)(unsafe.Pointer(bp)) = [1]uint8{} + r = int32(X__syscall3(tls, int64(SYS_readlink), int64(bp+1), int64(bp), int64(Int32FromInt32(1)))) + if r == -int32(ENOENT) { + if buf != 0 { + v2 = buf + } else { + v2 = uintptr(unsafe.Pointer(&_internal1)) + } + return Xstrcpy(tls, v2, bp+1) + } + goto _1 + _1: + ; + try = try + 1 + } + return uintptr(0) +} + +var _internal1 [20]uint8 + +func Xungetc(tls *TLS, c int32, f uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v c=%v f=%v, (%v:)", tls, c, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + var __need_unlock, v1 int32 + var v2, v3 uintptr + _, _, _, _ = __need_unlock, v1, v2, v3 + if c == -int32(1) { + return c + } + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + if !((*TFILE)(unsafe.Pointer(f)).Frpos != 0) { + X__toread(tls, f) + } + if !((*TFILE)(unsafe.Pointer(f)).Frpos != 0) || (*TFILE)(unsafe.Pointer(f)).Frpos <= (*TFILE)(unsafe.Pointer(f)).Fbuf-uintptr(UNGET) { + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return -int32(1) + } + v3 = f + 8 + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) - 1 + v2 = *(*uintptr)(unsafe.Pointer(v3)) + **(**uint8)(__ccgo_up(v2)) = Uint8FromInt32(c) + **(**uint32)(__ccgo_up(f)) &= Uint32FromInt32(^Int32FromInt32(F_EOF)) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return Int32FromUint8(Uint8FromInt32(c)) +} + +func Xungetwc(tls *TLS, c Twint_t, f uintptr) (r Twint_t) { + if __ccgo_strace { + trc("tls=%v c=%v f=%v, (%v:)", tls, c, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var __need_unlock, l, v1 int32 + var loc Tlocale_t + var ploc, v4, v5 uintptr + var v3 bool + var _ /* mbc at bp+0 */ [4]uint8 + _, _, _, _, _, _, _, _ = __need_unlock, l, loc, ploc, v1, v3, v4, v5 + ploc = uintptr(___get_tp(tls)) + 168 + loc = **(**Tlocale_t)(__ccgo_up(ploc)) + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + if (*TFILE)(unsafe.Pointer(f)).Fmode <= 0 { + Xfwide(tls, f, int32(1)) + } + **(**Tlocale_t)(__ccgo_up(ploc)) = (*TFILE)(unsafe.Pointer(f)).Flocale + if !((*TFILE)(unsafe.Pointer(f)).Frpos != 0) { + X__toread(tls, f) + } + if v3 = !((*TFILE)(unsafe.Pointer(f)).Frpos != 0) || c == uint32(0xffffffff); !v3 { + v1 = Int32FromUint64(Xwcrtomb(tls, bp, Int32FromUint32(c), uintptr(0))) + l = v1 + } + if v3 || v1 < 0 || (*TFILE)(unsafe.Pointer(f)).Frpos < (*TFILE)(unsafe.Pointer(f)).Fbuf-uintptr(UNGET)+uintptr(l) { + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + **(**Tlocale_t)(__ccgo_up(ploc)) = loc + return uint32(0xffffffff) + } + if BoolInt32(c < uint32(128)) != 0 { + v5 = f + 8 + *(*uintptr)(unsafe.Pointer(v5)) = *(*uintptr)(unsafe.Pointer(v5)) - 1 + v4 = *(*uintptr)(unsafe.Pointer(v5)) + **(**uint8)(__ccgo_up(v4)) = uint8(c) + } else { + v4 = f + 8 + *(*uintptr)(unsafe.Pointer(v4)) -= uintptr(l) + Xmemcpy(tls, *(*uintptr)(unsafe.Pointer(v4)), bp, Uint64FromInt32(l)) + } + **(**uint32)(__ccgo_up(f)) &= Uint32FromInt32(^Int32FromInt32(F_EOF)) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + **(**Tlocale_t)(__ccgo_up(ploc)) = loc + return c +} + +func Xvasprintf(tls *TLS, s uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v ap=%v, (%v:)", tls, s, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap2 Tva_list + var l int32 + var v1 uintptr + var v2 bool + _, _, _, _ = ap2, l, v1, v2 + ap2 = ap + l = Xvsnprintf(tls, uintptr(0), uint64(0), fmt, ap2) + _ = ap2 + if v2 = l < 0; !v2 { + v1 = Xmalloc(tls, uint64(Uint32FromInt32(l)+uint32(1))) + **(**uintptr)(__ccgo_up(s)) = v1 + } + if v2 || !(v1 != 0) { + return -int32(1) + } + return Xvsnprintf(tls, **(**uintptr)(__ccgo_up(s)), uint64(Uint32FromInt32(l)+uint32(1)), fmt, ap) +} + +func Xvdprintf(tls *TLS, fd int32, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v fmt=%v ap=%v, (%v:)", tls, fd, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(240) + defer tls.Free(240) + var _ /* f at bp+0 */ TFILE + **(**TFILE)(__ccgo_up(bp)) = TFILE{ + Fwrite: __ccgo_fp(X__stdio_write), + Fbuf: fmt, + Ffd: fd, + Flock: -int32(1), + Flbf: -int32(1), + } + return Xvfprintf(tls, bp, fmt, ap) +} + +const ALT_FORM = 8 +const FLAGMASK = 75913 +const GROUPED = 128 +const LDBL_EPSILON3 = 2.22044604925031308085e-16 +const LEFT_ADJ = 8192 +const MARK_POS = 2048 +const PAD_POS = 1 +const ZERO_PAD = 65536 + +const _BARE = 0 +const _LPRE = 1 +const _LLPRE = 2 +const _HPRE = 3 +const _HHPRE = 4 +const _BIGLPRE = 5 +const _ZTPRE = 6 +const _JPRE = 7 +const _STOP = 8 +const _PTR = 9 +const _INT = 10 +const _UINT = 11 +const _ULLONG = 12 +const _LONG = 13 +const _ULONG = 14 +const _SHORT = 15 +const _USHORT = 16 +const _CHAR = 17 +const _UCHAR = 18 +const _LLONG = 19 +const _SIZET = 20 +const _IMAX = 21 +const _UMAX = 22 +const _PDIFF = 23 +const _UIPTR = 24 +const _DBL = 25 +const _LDBL = 26 +const _NOARG = 27 +const _MAXSTATE = 28 + +var _states = [8][58]uint8{ + 0: { + 0: uint8(_DBL), + 2: uint8(_UINT), + 4: uint8(_DBL), + 5: uint8(_DBL), + 6: uint8(_DBL), + 11: uint8(_BIGLPRE), + 18: uint8(_PTR), + 23: uint8(_UINT), + 32: uint8(_DBL), + 34: uint8(_INT), + 35: uint8(_INT), + 36: uint8(_DBL), + 37: uint8(_DBL), + 38: uint8(_DBL), + 39: uint8(_HPRE), + 40: uint8(_INT), + 41: uint8(_JPRE), + 43: uint8(_LPRE), + 44: uint8(_NOARG), + 45: uint8(_PTR), + 46: uint8(_UINT), + 47: uint8(_UIPTR), + 50: uint8(_PTR), + 51: uint8(_ZTPRE), + 52: uint8(_UINT), + 55: uint8(_UINT), + 57: uint8(_ZTPRE), + }, + 1: { + 0: uint8(_DBL), + 4: uint8(_DBL), + 5: uint8(_DBL), + 6: uint8(_DBL), + 23: uint8(_ULONG), + 32: uint8(_DBL), + 34: uint8(_UINT), + 35: uint8(_LONG), + 36: uint8(_DBL), + 37: uint8(_DBL), + 38: uint8(_DBL), + 40: uint8(_LONG), + 43: uint8(_LLPRE), + 45: uint8(_PTR), + 46: uint8(_ULONG), + 50: uint8(_PTR), + 52: uint8(_ULONG), + 55: uint8(_ULONG), + }, + 2: { + 23: uint8(_ULLONG), + 35: uint8(_LLONG), + 40: uint8(_LLONG), + 45: uint8(_PTR), + 46: uint8(_ULLONG), + 52: uint8(_ULLONG), + 55: uint8(_ULLONG), + }, + 3: { + 23: uint8(_USHORT), + 35: uint8(_SHORT), + 39: uint8(_HHPRE), + 40: uint8(_SHORT), + 45: uint8(_PTR), + 46: uint8(_USHORT), + 52: uint8(_USHORT), + 55: uint8(_USHORT), + }, + 4: { + 23: uint8(_UCHAR), + 35: uint8(_CHAR), + 40: uint8(_CHAR), + 45: uint8(_PTR), + 46: uint8(_UCHAR), + 52: uint8(_UCHAR), + 55: uint8(_UCHAR), + }, + 5: { + 0: uint8(_LDBL), + 4: uint8(_LDBL), + 5: uint8(_LDBL), + 6: uint8(_LDBL), + 32: uint8(_LDBL), + 36: uint8(_LDBL), + 37: uint8(_LDBL), + 38: uint8(_LDBL), + 45: uint8(_PTR), + }, + 6: { + 23: uint8(_SIZET), + 35: uint8(_PDIFF), + 40: uint8(_PDIFF), + 45: uint8(_PTR), + 46: uint8(_SIZET), + 52: uint8(_SIZET), + 55: uint8(_SIZET), + }, + 7: { + 23: uint8(_UMAX), + 35: uint8(_IMAX), + 40: uint8(_IMAX), + 45: uint8(_PTR), + 46: uint8(_UMAX), + 52: uint8(_UMAX), + 55: uint8(_UMAX), + }, +} + +type Targ = struct { + Ff [0]float64 + Fp [0]uintptr + Fi Tuintmax_t +} + +func _pop_arg(tls *TLS, arg uintptr, type1 int32, ap uintptr) { + switch type1 { + case int32(_PTR): + *(*uintptr)(unsafe.Pointer(arg)) = VaUintptr(&**(**Tva_list)(__ccgo_up(ap))) + case int32(_INT): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt32(VaInt32(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_UINT): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(VaUint32(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_LONG): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt64(VaInt64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_ULONG): + (*Targ)(unsafe.Pointer(arg)).Fi = VaUint64(&**(**Tva_list)(__ccgo_up(ap))) + case int32(_ULLONG): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(VaUint64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_SHORT): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt16(int16(VaInt32(&**(**Tva_list)(__ccgo_up(ap))))) + case int32(_USHORT): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(Uint16FromInt32(VaInt32(&**(**Tva_list)(__ccgo_up(ap))))) + case int32(_CHAR): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt8(int8(VaInt32(&**(**Tva_list)(__ccgo_up(ap))))) + case int32(_UCHAR): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(Uint8FromInt32(VaInt32(&**(**Tva_list)(__ccgo_up(ap))))) + case int32(_LLONG): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt64(VaInt64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_SIZET): + (*Targ)(unsafe.Pointer(arg)).Fi = VaUint64(&**(**Tva_list)(__ccgo_up(ap))) + case int32(_IMAX): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt64(VaInt64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_UMAX): + (*Targ)(unsafe.Pointer(arg)).Fi = VaUint64(&**(**Tva_list)(__ccgo_up(ap))) + case int32(_PDIFF): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt64(VaInt64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_UIPTR): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(VaUintptr(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_DBL): + *(*float64)(unsafe.Pointer(arg)) = float64(VaFloat64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_LDBL): + *(*float64)(unsafe.Pointer(arg)) = VaFloat64(&**(**Tva_list)(__ccgo_up(ap))) + } +} + +func _out(tls *TLS, f uintptr, s uintptr, l Tsize_t) { + if !((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_ERR) != 0) { + X__fwritex(tls, s, l, f) + } +} + +func _pad3(tls *TLS, f uintptr, c uint8, w int32, l int32, fl int32) { + bp := tls.Alloc(256) + defer tls.Free(256) + var v1 uint64 + var _ /* pad at bp+0 */ [256]uint8 + _ = v1 + if Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8('0')-Int32FromUint8(' '))) != 0 || l >= w { + return + } + l = w - l + if Uint64FromInt32(l) > uint64(256) { + v1 = uint64(256) + } else { + v1 = Uint64FromInt32(l) + } + Xmemset(tls, bp, Int32FromUint8(c), v1) + for { + if !(Uint64FromInt32(l) >= uint64(256)) { + break + } + _out(tls, f, bp, uint64(256)) + goto _2 + _2: + ; + l = Int32FromUint64(uint64(l) - Uint64FromInt64(256)) + } + _out(tls, f, bp, Uint64FromInt32(l)) +} + +var _xdigits1 = [16]uint8{'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'} + +func _fmt_x(tls *TLS, x Tuintmax_t, s uintptr, lower int32) (r uintptr) { + var v2 uintptr + _ = v2 + for { + if !(x != 0) { + break + } + s = s - 1 + v2 = s + **(**uint8)(__ccgo_up(v2)) = Uint8FromInt32(Int32FromUint8(_xdigits1[x&uint64(15)]) | lower) + goto _1 + _1: + ; + x = x >> uint64(4) + } + return s +} + +func _fmt_o(tls *TLS, x Tuintmax_t, s uintptr) (r uintptr) { + var v2 uintptr + _ = v2 + for { + if !(x != 0) { + break + } + s = s - 1 + v2 = s + **(**uint8)(__ccgo_up(v2)) = uint8(uint64('0') + x&uint64(7)) + goto _1 + _1: + ; + x = x >> uint64(3) + } + return s +} + +func _fmt_u(tls *TLS, x Tuintmax_t, s uintptr) (r uintptr) { + var y uint64 + var v2 uintptr + _, _ = y, v2 + for { + if !(x > Uint64FromUint64(2)*Uint64FromInt64(0x7fffffffffffffff)+Uint64FromInt32(1)) { + break + } + s = s - 1 + v2 = s + **(**uint8)(__ccgo_up(v2)) = uint8(uint64('0') + x%uint64(10)) + goto _1 + _1: + ; + x = x / uint64(10) + } + y = x + for { + if !(y != 0) { + break + } + s = s - 1 + v2 = s + **(**uint8)(__ccgo_up(v2)) = uint8(uint64('0') + y%uint64(10)) + goto _3 + _3: + ; + y = y / uint64(10) + } + return s +} + +// C documentation +// +// /* Do not override this check. The floating point printing code below +// * depends on the float.h constants being right. If they are wrong, it +// * may overflow the stack. */ +type Tcompiler_defines_long_double_incorrectly = [1]uint8 + +func _fmt_fp(tls *TLS, f uintptr, y float64, w int32, p int32, fl int32, t int32) (r1 int32) { + bp := tls.Alloc(560) + defer tls.Free(560) + var a, b, d, ebuf, estr, prefix, r, s, s1, s2, s3, s4, z, v5, v6 uintptr + var carry, carry1, rm, x2 Tuint32_t + var e, i, j, l, need, pl, re, sh, sh1, x, v7 int32 + var round, round1, small float64 + var x1 Tuint64_t + var v1 uint64 + var v36, v37, v38 int64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + var _ /* big at bp+8 */ [126]Tuint32_t + var _ /* buf at bp+516 */ [22]uint8 + var _ /* e2 at bp+512 */ int32 + var _ /* ebuf0 at bp+538 */ [12]uint8 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = a, b, carry, carry1, d, e, ebuf, estr, i, j, l, need, pl, prefix, r, re, rm, round, round1, s, s1, s2, s3, s4, sh, sh1, small, x, x1, x2, z, v1, v36, v37, v38, v5, v6, v7 + **(**int32)(__ccgo_up(bp + 512)) = 0 + prefix = __ccgo_ts + 1616 + ebuf = bp + 538 + uintptr(Uint64FromInt32(3)*Uint64FromInt64(4)) + pl = int32(1) + *(*float64)(unsafe.Pointer(bp)) = y + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + if Int32FromUint64(v1>>Int32FromInt32(63)) != 0 { + y = -y + } else { + if Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('+')-Int32FromUint8(' '))) != 0 { + prefix = prefix + uintptr(3) + } else { + if Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8(' ')-Int32FromUint8(' '))) != 0 { + prefix = prefix + uintptr(6) + } else { + prefix = prefix + 1 + pl = Int32FromInt32(0) + } + } + } + *(*float64)(unsafe.Pointer(bp)) = y + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _4 +_4: + if !(BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) < Uint64FromUint64(0x7ff)< int32(3)+pl { + v7 = w + } else { + v7 = int32(3) + pl + } + return v7 + } + y = float64(Xfrexpl(tls, y, bp+512) * Float64FromInt32(2)) + if y != 0 { + **(**int32)(__ccgo_up(bp + 512)) = **(**int32)(__ccgo_up(bp + 512)) - 1 + } + if t|int32(32) == int32('a') { + round = Float64FromFloat64(8) + if t&int32(32) != 0 { + prefix = prefix + uintptr(9) + } + pl = pl + int32(2) + if p < 0 || p >= Int32FromInt32(LDBL_MANT_DIG)/Int32FromInt32(4)-Int32FromInt32(1) { + re = 0 + } else { + re = Int32FromInt32(LDBL_MANT_DIG)/Int32FromInt32(4) - Int32FromInt32(1) - p + } + if re != 0 { + round = round * float64(Int32FromInt32(1)<<(Int32FromInt32(LDBL_MANT_DIG)%Int32FromInt32(4))) + for { + v7 = re + re = re - 1 + if !(v7 != 0) { + break + } + round = round * Float64FromInt32(16) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(prefix))) == int32('-') { + y = -y + y = y - round + y = y + round + y = -y + } else { + y = y + round + y = y - round + } + } + if **(**int32)(__ccgo_up(bp + 512)) < 0 { + v7 = -**(**int32)(__ccgo_up(bp + 512)) + } else { + v7 = **(**int32)(__ccgo_up(bp + 512)) + } + estr = _fmt_u(tls, Uint64FromInt32(v7), ebuf) + if estr == ebuf { + estr = estr - 1 + v5 = estr + **(**uint8)(__ccgo_up(v5)) = uint8('0') + } + estr = estr - 1 + v5 = estr + if **(**int32)(__ccgo_up(bp + 512)) < 0 { + v7 = int32('-') + } else { + v7 = int32('+') + } + **(**uint8)(__ccgo_up(v5)) = Uint8FromInt32(v7) + estr = estr - 1 + v5 = estr + **(**uint8)(__ccgo_up(v5)) = Uint8FromInt32(t + (Int32FromUint8('p') - Int32FromUint8('a'))) + s = bp + 516 + for cond := true; cond; cond = y != 0 { + x = int32(y) + v5 = s + s = s + 1 + **(**uint8)(__ccgo_up(v5)) = Uint8FromInt32(Int32FromUint8(_xdigits1[x]) | t&int32(32)) + y = float64(Float64FromInt32(16) * (y - float64(x))) + if int64(s)-t__predefined_ptrdiff_t(bp+516) == int64(1) && (y != 0 || p > 0 || Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0) { + v5 = s + s = s + 1 + **(**uint8)(__ccgo_up(v5)) = uint8('.') + } + } + if int64(p) > int64(Int32FromInt32(INT_MAX)-Int32FromInt32(2))-(int64(ebuf)-int64(estr))-int64(pl) { + return -int32(1) + } + if p != 0 && int64(s)-t__predefined_ptrdiff_t(bp+516)-int64(2) < int64(p) { + l = int32(int64(p+Int32FromInt32(2)) + (int64(ebuf) - int64(estr))) + } else { + l = int32(int64(s) - t__predefined_ptrdiff_t(bp+516) + (int64(ebuf) - int64(estr))) + } + _pad3(tls, f, uint8(' '), w, pl+l, fl) + _out(tls, f, prefix, Uint64FromInt32(pl)) + _pad3(tls, f, uint8('0'), w, pl+l, Int32FromUint32(Uint32FromInt32(fl)^Uint32FromUint32(1)<<(Int32FromUint8('0')-Int32FromUint8(' ')))) + _out(tls, f, bp+516, Uint64FromInt64(int64(s)-t__predefined_ptrdiff_t(bp+516))) + _pad3(tls, f, uint8('0'), int32(int64(l)-(int64(ebuf)-int64(estr))-(int64(s)-t__predefined_ptrdiff_t(bp+516))), 0, 0) + _out(tls, f, estr, Uint64FromInt64(int64(ebuf)-int64(estr))) + _pad3(tls, f, uint8(' '), w, pl+l, Int32FromUint32(Uint32FromInt32(fl)^Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' ')))) + if w > pl+l { + v7 = w + } else { + v7 = pl + l + } + return v7 + } + if p < 0 { + p = int32(6) + } + if y != 0 { + y = y * Float64FromFloat64(2.68435456e+08) + **(**int32)(__ccgo_up(bp + 512)) = **(**int32)(__ccgo_up(bp + 512)) - int32(28) + } + if **(**int32)(__ccgo_up(bp + 512)) < 0 { + v6 = bp + 8 + z = v6 + v5 = v6 + r = v5 + a = v5 + } else { + v6 = bp + 8 + uintptr(Uint64FromInt64(504)/Uint64FromInt64(4))*4 - UintptrFromInt32(LDBL_MANT_DIG)*4 - UintptrFromInt32(1)*4 + z = v6 + v5 = v6 + r = v5 + a = v5 + } + for cond := true; cond; cond = y != 0 { + **(**Tuint32_t)(__ccgo_up(z)) = uint32(y) + v5 = z + z += 4 + y = float64(Float64FromInt32(1000000000) * (y - float64(**(**Tuint32_t)(__ccgo_up(v5))))) + } + for **(**int32)(__ccgo_up(bp + 512)) > 0 { + carry = uint32(0) + if int32(29) < **(**int32)(__ccgo_up(bp + 512)) { + v7 = int32(29) + } else { + v7 = **(**int32)(__ccgo_up(bp + 512)) + } + sh = v7 + d = z - uintptr(1)*4 + for { + if !(d >= a) { + break + } + x1 = uint64(**(**Tuint32_t)(__ccgo_up(d)))< a && !(**(**Tuint32_t)(__ccgo_up(z + uintptr(-Int32FromInt32(1))*4)) != 0) { + z -= 4 + } + **(**int32)(__ccgo_up(bp + 512)) = **(**int32)(__ccgo_up(bp + 512)) - sh + } + for **(**int32)(__ccgo_up(bp + 512)) < 0 { + carry1 = uint32(0) + if int32(9) < -**(**int32)(__ccgo_up(bp + 512)) { + v7 = int32(9) + } else { + v7 = -**(**int32)(__ccgo_up(bp + 512)) + } + sh1 = v7 + need = Int32FromUint32(uint32(1) + (Uint32FromInt32(p)+Uint32FromInt32(LDBL_MANT_DIG)/Uint32FromUint32(3)+uint32(8))/uint32(9)) + d = a + for { + if !(d < z) { + break + } + rm = **(**Tuint32_t)(__ccgo_up(d)) & Uint32FromInt32(int32(1)<>sh1 + carry1 + carry1 = Uint32FromInt32(Int32FromInt32(1000000000)>>sh1) * rm + goto _26 + _26: + ; + d += 4 + } + if !(**(**Tuint32_t)(__ccgo_up(a)) != 0) { + a += 4 + } + if carry1 != 0 { + v5 = z + z += 4 + **(**Tuint32_t)(__ccgo_up(v5)) = carry1 + } + /* Avoid (slow!) computation past requested precision */ + if t|int32(32) == int32('f') { + v5 = r + } else { + v5 = a + } + b = v5 + if (int64(z)-int64(b))/4 > int64(need) { + z = b + uintptr(need)*4 + } + **(**int32)(__ccgo_up(bp + 512)) = **(**int32)(__ccgo_up(bp + 512)) + sh1 + } + if a < z { + i = int32(10) + e = int32(Int64FromInt32(9) * ((int64(r) - int64(a)) / 4)) + for { + if !(**(**Tuint32_t)(__ccgo_up(a)) >= Uint32FromInt32(i)) { + break + } + goto _29 + _29: + ; + i = i * int32(10) + e = e + 1 + } + } else { + e = 0 + } + /* Perform rounding: j is precision after the radix (possibly neg) */ + j = p - BoolInt32(t|int32(32) != int32('f'))*e - BoolInt32(t|int32(32) == int32('g') && p != 0) + if int64(j) < int64(9)*((int64(z)-int64(r))/4-int64(1)) { + /* We avoid C's broken division of negative numbers */ + d = r + uintptr(1)*4 + uintptr((j+Int32FromInt32(9)*Int32FromInt32(LDBL_MAX_EXP))/Int32FromInt32(9)-Int32FromInt32(LDBL_MAX_EXP))*4 + j = j + Int32FromInt32(9)*Int32FromInt32(LDBL_MAX_EXP) + j = j % int32(9) + i = int32(10) + j = j + 1 + for { + if !(j < int32(9)) { + break + } + goto _30 + _30: + ; + i = i * int32(10) + j = j + 1 + } + x2 = **(**Tuint32_t)(__ccgo_up(d)) % Uint32FromInt32(i) + /* Are there any significant digits past j? */ + if x2 != 0 || d+uintptr(1)*4 != z { + round1 = Float64FromInt32(2) / Float64FromFloat64(2.22044604925031308085e-16) + if **(**Tuint32_t)(__ccgo_up(d))/Uint32FromInt32(i)&uint32(1) != 0 || i == int32(1000000000) && d > a && **(**Tuint32_t)(__ccgo_up(d + uintptr(-Int32FromInt32(1))*4))&uint32(1) != 0 { + round1 = round1 + Float64FromInt32(2) + } + if x2 < Uint32FromInt32(i/int32(2)) { + small = Float64FromFloat64(0.5) + } else { + if x2 == Uint32FromInt32(i/int32(2)) && d+uintptr(1)*4 == z { + small = Float64FromFloat64(1) + } else { + small = Float64FromFloat64(1.5) + } + } + if pl != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(prefix))) == int32('-') { + round1 = round1 * float64(-Int32FromInt32(1)) + small = small * float64(-Int32FromInt32(1)) + } + **(**Tuint32_t)(__ccgo_up(d)) -= x2 + /* Decide whether to round by probing round+small */ + if round1+small != round1 { + **(**Tuint32_t)(__ccgo_up(d)) = **(**Tuint32_t)(__ccgo_up(d)) + Uint32FromInt32(i) + for **(**Tuint32_t)(__ccgo_up(d)) > uint32(999999999) { + v5 = d + d -= 4 + **(**Tuint32_t)(__ccgo_up(v5)) = uint32(0) + if d < a { + a -= 4 + v5 = a + **(**Tuint32_t)(__ccgo_up(v5)) = uint32(0) + } + **(**Tuint32_t)(__ccgo_up(d)) = **(**Tuint32_t)(__ccgo_up(d)) + 1 + } + i = int32(10) + e = int32(Int64FromInt32(9) * ((int64(r) - int64(a)) / 4)) + for { + if !(**(**Tuint32_t)(__ccgo_up(a)) >= Uint32FromInt32(i)) { + break + } + goto _33 + _33: + ; + i = i * int32(10) + e = e + 1 + } + } + } + if z > d+uintptr(1)*4 { + z = d + uintptr(1)*4 + } + } + for { + if !(z > a && !(**(**Tuint32_t)(__ccgo_up(z + uintptr(-Int32FromInt32(1))*4)) != 0)) { + break + } + goto _34 + _34: + ; + z -= 4 + } + if t|int32(32) == int32('g') { + if !(p != 0) { + p = p + 1 + } + if p > e && e >= -int32(4) { + t = t - 1 + p = p - (e + int32(1)) + } else { + t = t - int32(2) + p = p - 1 + } + if !(Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0) { + /* Count trailing zeros in last place */ + if z > a && **(**Tuint32_t)(__ccgo_up(z + uintptr(-Int32FromInt32(1))*4)) != 0 { + i = int32(10) + j = Int32FromInt32(0) + for { + if !(**(**Tuint32_t)(__ccgo_up(z + uintptr(-Int32FromInt32(1))*4))%Uint32FromInt32(i) == uint32(0)) { + break + } + goto _35 + _35: + ; + i = i * int32(10) + j = j + 1 + } + } else { + j = int32(9) + } + if t|int32(32) == int32('f') { + if int64(Int32FromInt32(0)) > int64(9)*((int64(z)-int64(r))/4-int64(1))-int64(j) { + v37 = int64(Int32FromInt32(0)) + } else { + v37 = int64(9)*((int64(z)-int64(r))/4-int64(1)) - int64(j) + } + if int64(p) < v37 { + v36 = int64(p) + } else { + if int64(Int32FromInt32(0)) > int64(9)*((int64(z)-int64(r))/4-int64(1))-int64(j) { + v38 = int64(Int32FromInt32(0)) + } else { + v38 = int64(9)*((int64(z)-int64(r))/4-int64(1)) - int64(j) + } + v36 = v38 + } + p = int32(v36) + } else { + if int64(Int32FromInt32(0)) > int64(9)*((int64(z)-int64(r))/4-int64(1))+int64(e)-int64(j) { + v37 = int64(Int32FromInt32(0)) + } else { + v37 = int64(9)*((int64(z)-int64(r))/4-int64(1)) + int64(e) - int64(j) + } + if int64(p) < v37 { + v36 = int64(p) + } else { + if int64(Int32FromInt32(0)) > int64(9)*((int64(z)-int64(r))/4-int64(1))+int64(e)-int64(j) { + v38 = int64(Int32FromInt32(0)) + } else { + v38 = int64(9)*((int64(z)-int64(r))/4-int64(1)) + int64(e) - int64(j) + } + v36 = v38 + } + p = int32(v36) + } + } + } + if p > Int32FromInt32(INT_MAX)-Int32FromInt32(1)-BoolInt32(p != 0 || Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0) { + return -int32(1) + } + l = int32(1) + p + BoolInt32(p != 0 || Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0) + if t|int32(32) == int32('f') { + if e > int32(INT_MAX)-l { + return -int32(1) + } + if e > 0 { + l = l + e + } + } else { + if e < 0 { + v7 = -e + } else { + v7 = e + } + estr = _fmt_u(tls, Uint64FromInt32(v7), ebuf) + for int64(ebuf)-int64(estr) < int64(2) { + estr = estr - 1 + v5 = estr + **(**uint8)(__ccgo_up(v5)) = uint8('0') + } + estr = estr - 1 + v5 = estr + if e < 0 { + v7 = int32('-') + } else { + v7 = int32('+') + } + **(**uint8)(__ccgo_up(v5)) = Uint8FromInt32(v7) + estr = estr - 1 + v5 = estr + **(**uint8)(__ccgo_up(v5)) = Uint8FromInt32(t) + if int64(ebuf)-int64(estr) > int64(int32(INT_MAX)-l) { + return -int32(1) + } + l = int32(int64(l) + (int64(ebuf) - int64(estr))) + } + if l > int32(INT_MAX)-pl { + return -int32(1) + } + _pad3(tls, f, uint8(' '), w, pl+l, fl) + _out(tls, f, prefix, Uint64FromInt32(pl)) + _pad3(tls, f, uint8('0'), w, pl+l, Int32FromUint32(Uint32FromInt32(fl)^Uint32FromUint32(1)<<(Int32FromUint8('0')-Int32FromUint8(' ')))) + if t|int32(32) == int32('f') { + if a > r { + a = r + } + d = a + for { + if !(d <= r) { + break + } + s2 = _fmt_u(tls, uint64(**(**Tuint32_t)(__ccgo_up(d))), bp+516+uintptr(9)) + if d != a { + for s2 > bp+516 { + s2 = s2 - 1 + v5 = s2 + **(**uint8)(__ccgo_up(v5)) = uint8('0') + } + } else { + if s2 == bp+516+uintptr(9) { + s2 = s2 - 1 + v5 = s2 + **(**uint8)(__ccgo_up(v5)) = uint8('0') + } + } + _out(tls, f, s2, Uint64FromInt64(int64(bp+516+uintptr(9))-int64(s2))) + goto _47 + _47: + ; + d += 4 + } + if p != 0 || Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0 { + _out(tls, f, __ccgo_ts+598, uint64(1)) + } + for { + if !(d < z && p > 0) { + break + } + s3 = _fmt_u(tls, uint64(**(**Tuint32_t)(__ccgo_up(d))), bp+516+uintptr(9)) + for s3 > bp+516 { + s3 = s3 - 1 + v5 = s3 + **(**uint8)(__ccgo_up(v5)) = uint8('0') + } + if int32(9) < p { + v7 = int32(9) + } else { + v7 = p + } + _out(tls, f, s3, Uint64FromInt32(v7)) + goto _50 + _50: + ; + d += 4 + p = p - int32(9) + } + _pad3(tls, f, uint8('0'), p+int32(9), int32(9), 0) + } else { + if z <= a { + z = a + uintptr(1)*4 + } + d = a + for { + if !(d < z && p >= 0) { + break + } + s4 = _fmt_u(tls, uint64(**(**Tuint32_t)(__ccgo_up(d))), bp+516+uintptr(9)) + if s4 == bp+516+uintptr(9) { + s4 = s4 - 1 + v5 = s4 + **(**uint8)(__ccgo_up(v5)) = uint8('0') + } + if d != a { + for s4 > bp+516 { + s4 = s4 - 1 + v5 = s4 + **(**uint8)(__ccgo_up(v5)) = uint8('0') + } + } else { + v5 = s4 + s4 = s4 + 1 + _out(tls, f, v5, uint64(1)) + if p > 0 || Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0 { + _out(tls, f, __ccgo_ts+598, uint64(1)) + } + } + if int64(bp+516+UintptrFromInt32(9))-int64(s4) < int64(p) { + v36 = int64(bp+516+UintptrFromInt32(9)) - int64(s4) + } else { + v36 = int64(p) + } + _out(tls, f, s4, Uint64FromInt64(v36)) + p = int32(int64(p) - (int64(bp+516+UintptrFromInt32(9)) - int64(s4))) + goto _53 + _53: + ; + d += 4 + } + _pad3(tls, f, uint8('0'), p+int32(18), int32(18), 0) + _out(tls, f, estr, Uint64FromInt64(int64(ebuf)-int64(estr))) + } + _pad3(tls, f, uint8(' '), w, pl+l, Int32FromUint32(Uint32FromInt32(fl)^Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' ')))) + if w > pl+l { + v7 = w + } else { + v7 = pl + l + } + return v7 +} + +func _getint(tls *TLS, s uintptr) (r int32) { + var i int32 + _ = i + i = 0 + for { + if !(BoolInt32(uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(s)))))-uint32('0') < uint32(10)) != 0) { + break + } + if Uint32FromInt32(i) > Uint32FromInt32(INT_MAX)/Uint32FromUint32(10) || Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(s)))))-int32('0') > int32(INT_MAX)-int32(10)*i { + i = -int32(1) + } else { + i = int32(10)*i + (Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(s))))) - int32('0')) + } + goto _1 + _1: + ; + **(**uintptr)(__ccgo_up(s)) = **(**uintptr)(__ccgo_up(s)) + 1 + } + return i +} + +func _printf_core(tls *TLS, f uintptr, fmt uintptr, ap uintptr, nl_arg uintptr, nl_type uintptr) (r int32) { + bp := tls.Alloc(64) + defer tls.Free(64) + var a, prefix, ws, z, v8 uintptr + var argpos, cnt, l, p, pl, t, w, xp, v5, v6 int32 + var fl, l10n, ps, st uint32 + var i Tsize_t + var v31 uint64 + var v34 int64 + var v45 bool + var _ /* arg at bp+8 */ Targ + var _ /* buf at bp+16 */ [24]uint8 + var _ /* mb at bp+48 */ [4]uint8 + var _ /* s at bp+0 */ uintptr + var _ /* wc at bp+40 */ [2]Twchar_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = a, argpos, cnt, fl, i, l, l10n, p, pl, prefix, ps, st, t, w, ws, xp, z, v31, v34, v45, v5, v6, v8 + **(**uintptr)(__ccgo_up(bp)) = fmt + l10n = uint32(0) + cnt = 0 + l = 0 + for { + /* This error is only specified for snprintf, but since it's + * unspecified for other forms, do the same. Stop immediately + * on overflow; otherwise %n could produce wrong results. */ + if l > int32(INT_MAX)-cnt { + goto overflow + } + /* Update output count, end loop when fmt is exhausted */ + cnt = cnt + l + if !(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)))) != 0) { + break + } + /* Handle literal text and %% format specifiers */ + a = **(**uintptr)(__ccgo_up(bp)) + for { + if !(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)))) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp))))) != int32('%')) { + break + } + goto _2 + _2: + ; + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + } + z = **(**uintptr)(__ccgo_up(bp)) + for { + if !(Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp))))) == int32('%') && Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 1))) == int32('%')) { + break + } + goto _3 + _3: + ; + z = z + 1 + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + uintptr(2) + } + if int64(z)-int64(a) > int64(int32(INT_MAX)-cnt) { + goto overflow + } + l = int32(int64(z) - int64(a)) + if f != 0 { + _out(tls, f, a, Uint64FromInt32(l)) + } + if l != 0 { + goto _1 + } + if BoolInt32(uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 1)))-uint32('0') < uint32(10)) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 2))) == int32('$') { + l10n = uint32(1) + argpos = Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 1))) - int32('0') + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + uintptr(3) + } else { + argpos = -int32(1) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + } + /* Read modifier flags */ + fl = uint32(0) + for { + if !(uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)))))-uint32(' ') < uint32(32) && (Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8('0')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8(' ')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8('+')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8('\'')-Int32FromUint8(' ')))&(uint32(1)<<(Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)))))-int32(' '))) != 0) { + break + } + fl = fl | uint32(1)<<(Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)))))-int32(' ')) + goto _4 + _4: + ; + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + } + /* Read field width */ + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp))))) == int32('*') { + if BoolInt32(uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 1)))-uint32('0') < uint32(10)) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 2))) == int32('$') { + l10n = uint32(1) + if !(f != 0) { + **(**int32)(__ccgo_up(nl_type + uintptr(Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 1)))-int32('0'))*4)) = int32(_INT) + w = Int32FromInt32(0) + } else { + w = Int32FromUint64(*(*Tuintmax_t)(unsafe.Pointer(nl_arg + uintptr(Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 1)))-int32('0'))*8))) + } + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + uintptr(3) + } else { + if !(l10n != 0) { + if f != 0 { + v5 = VaInt32(&**(**Tva_list)(__ccgo_up(ap))) + } else { + v5 = 0 + } + w = v5 + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + } else { + goto inval + } + } + if w < 0 { + fl = fl | Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' ')) + w = -w + } + } else { + v5 = _getint(tls, bp) + w = v5 + if v5 < 0 { + goto overflow + } + } + /* Read precision */ + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp))))) == int32('.') && Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 1))) == int32('*') { + if BoolInt32(uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 2)))-uint32('0') < uint32(10)) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 3))) == int32('$') { + if !(f != 0) { + **(**int32)(__ccgo_up(nl_type + uintptr(Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 2)))-int32('0'))*4)) = int32(_INT) + p = Int32FromInt32(0) + } else { + p = Int32FromUint64(*(*Tuintmax_t)(unsafe.Pointer(nl_arg + uintptr(Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + 2)))-int32('0'))*8))) + } + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + uintptr(4) + } else { + if !(l10n != 0) { + if f != 0 { + v5 = VaInt32(&**(**Tva_list)(__ccgo_up(ap))) + } else { + v5 = 0 + } + p = v5 + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + uintptr(2) + } else { + goto inval + } + } + xp = BoolInt32(p >= 0) + } else { + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp))))) == int32('.') { + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + p = _getint(tls, bp) + xp = int32(1) + } else { + p = -int32(1) + xp = 0 + } + } + /* Format specifier state machine */ + st = uint32(0) + for cond := true; cond; cond = st-uint32(1) < uint32(_STOP) { + if uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)))))-uint32('A') > Uint32FromInt32(Int32FromUint8('z')-Int32FromUint8('A')) { + goto inval + } + ps = st + v8 = **(**uintptr)(__ccgo_up(bp)) + **(**uintptr)(__ccgo_up(bp)) = **(**uintptr)(__ccgo_up(bp)) + 1 + st = uint32(**(**uint8)(__ccgo_up(uintptr(unsafe.Pointer(&_states)) + uintptr(st)*58 + uintptr(Int32FromUint8(**(**uint8)(__ccgo_up(v8)))-int32('A'))))) + } + if !(st != 0) { + goto inval + } + /* Check validity of argument type (nl/normal) */ + if st == uint32(_NOARG) { + if argpos >= 0 { + goto inval + } + } else { + if argpos >= 0 { + if !(f != 0) { + **(**int32)(__ccgo_up(nl_type + uintptr(argpos)*4)) = Int32FromUint32(st) + } else { + **(**Targ)(__ccgo_up(bp + 8)) = **(**Targ)(__ccgo_up(nl_arg + uintptr(argpos)*8)) + } + } else { + if f != 0 { + _pop_arg(tls, bp+8, Int32FromUint32(st), ap) + } else { + return 0 + } + } + } + if !(f != 0) { + goto _1 + } + /* Do not process any new directives once in error state. */ + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_ERR) != 0 { + return -int32(1) + } + z = bp + 16 + uintptr(24) + prefix = __ccgo_ts + 1647 + pl = 0 + t = Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp)) + uintptr(-Int32FromInt32(1))))) + /* Transform ls,lc -> S,C */ + if ps != 0 && t&int32(15) == int32(3) { + t = t & ^Int32FromInt32(32) + } + /* - and 0 flags are mutually exclusive */ + if fl&(Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' '))) != 0 { + fl = fl & ^(Uint32FromUint32(1) << (Int32FromUint8('0') - Int32FromUint8(' '))) + } + switch t { + case int32('n'): + goto _9 + case int32('p'): + goto _10 + case int32('X'): + goto _11 + case int32('x'): + goto _12 + case int32('o'): + goto _13 + case int32('i'): + goto _14 + case int32('d'): + goto _15 + case int32('u'): + goto _16 + case int32('c'): + goto _17 + case int32('s'): + goto _18 + case int32('m'): + goto _19 + case int32('C'): + goto _20 + case int32('S'): + goto _21 + case int32('A'): + goto _22 + case int32('G'): + goto _23 + case int32('F'): + goto _24 + case int32('E'): + goto _25 + case int32('a'): + goto _26 + case int32('g'): + goto _27 + case int32('f'): + goto _28 + case int32('e'): + goto _29 + } + goto _30 + _9: + ; + switch ps { + case uint32(_BARE): + **(**int32)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 8)))) = cnt + case uint32(_LPRE): + **(**int64)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 8)))) = int64(cnt) + case uint32(_LLPRE): + **(**int64)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 8)))) = int64(cnt) + case uint32(_HPRE): + **(**uint16)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 8)))) = Uint16FromInt32(cnt) + case uint32(_HHPRE): + **(**uint8)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 8)))) = Uint8FromInt32(cnt) + case uint32(_ZTPRE): + **(**Tsize_t)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 8)))) = Uint64FromInt32(cnt) + case uint32(_JPRE): + **(**Tuintmax_t)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 8)))) = Uint64FromInt32(cnt) + break + } + goto _1 + _10: + ; + if Uint64FromInt32(p) > Uint64FromInt32(2)*Uint64FromInt64(8) { + v31 = Uint64FromInt32(p) + } else { + v31 = Uint64FromInt32(2) * Uint64FromInt64(8) + } + p = Int32FromUint64(v31) + t = int32('x') + fl = fl | Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' ')) + _12: + ; + _11: + ; + a = _fmt_x(tls, *(*Tuintmax_t)(unsafe.Pointer(bp + 8)), z, t&int32(32)) + if *(*Tuintmax_t)(unsafe.Pointer(bp + 8)) != 0 && fl&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0 { + prefix = prefix + uintptr(t>>Int32FromInt32(4)) + pl = Int32FromInt32(2) + } + if !(0 != 0) { + goto _32 + } + _13: + ; + a = _fmt_o(tls, *(*Tuintmax_t)(unsafe.Pointer(bp + 8)), z) + if fl&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0 && int64(p) < int64(z)-int64(a)+int64(1) { + p = int32(int64(z) - int64(a) + int64(1)) + } + _32: + ; + if !(0 != 0) { + goto _33 + } + _15: + ; + _14: + ; + pl = int32(1) + if *(*Tuintmax_t)(unsafe.Pointer(bp + 8)) > Uint64FromInt64(Int64FromInt64(INT64_MAX)) { + *(*Tuintmax_t)(unsafe.Pointer(bp + 8)) = -*(*Tuintmax_t)(unsafe.Pointer(bp + 8)) + } else { + if fl&(Uint32FromUint32(1)<<(Int32FromUint8('+')-Int32FromUint8(' '))) != 0 { + prefix = prefix + 1 + } else { + if fl&(Uint32FromUint32(1)<<(Int32FromUint8(' ')-Int32FromUint8(' '))) != 0 { + prefix = prefix + uintptr(2) + } else { + pl = 0 + } + } + } + _16: + ; + a = _fmt_u(tls, *(*Tuintmax_t)(unsafe.Pointer(bp + 8)), z) + _33: + ; + if xp != 0 && p < 0 { + goto overflow + } + if xp != 0 { + fl = fl & ^(Uint32FromUint32(1) << (Int32FromUint8('0') - Int32FromUint8(' '))) + } + if !(*(*Tuintmax_t)(unsafe.Pointer(bp + 8)) != 0) && !(p != 0) { + a = z + goto _30 + } + if int64(p) > int64(z)-int64(a)+BoolInt64(!(*(*Tuintmax_t)(unsafe.Pointer(bp + 8)) != 0)) { + v34 = int64(p) + } else { + v34 = int64(z) - int64(a) + BoolInt64(!(*(*Tuintmax_t)(unsafe.Pointer(bp + 8)) != 0)) + } + p = int32(v34) + goto _30 + goto narrow_c + narrow_c: + ; + _17: + ; + v5 = Int32FromInt32(1) + p = v5 + v8 = z - uintptr(v5) + a = v8 + **(**uint8)(__ccgo_up(v8)) = uint8(*(*Tuintmax_t)(unsafe.Pointer(bp + 8))) + fl = fl & ^(Uint32FromUint32(1) << (Int32FromUint8('0') - Int32FromUint8(' '))) + goto _30 + _19: + ; + if !(int32(1) != 0) { + goto _37 + } + a = Xstrerror(tls, **(**int32)(__ccgo_up(X__errno_location(tls)))) + goto _38 + _37: + ; + _18: + ; + if *(*uintptr)(unsafe.Pointer(bp + 8)) != 0 { + v8 = *(*uintptr)(unsafe.Pointer(bp + 8)) + } else { + v8 = __ccgo_ts + 1657 + } + a = v8 + _38: + ; + if p < 0 { + v5 = int32(INT_MAX) + } else { + v5 = p + } + z = a + uintptr(Xstrnlen(tls, a, Uint64FromInt32(v5))) + if p < 0 && **(**uint8)(__ccgo_up(z)) != 0 { + goto overflow + } + p = int32(int64(z) - int64(a)) + fl = fl & ^(Uint32FromUint32(1) << (Int32FromUint8('0') - Int32FromUint8(' '))) + goto _30 + _20: + ; + if !(*(*Tuintmax_t)(unsafe.Pointer(bp + 8)) != 0) { + goto narrow_c + } + (**(**[2]Twchar_t)(__ccgo_up(bp + 40)))[0] = Int32FromUint64(*(*Tuintmax_t)(unsafe.Pointer(bp + 8))) + (**(**[2]Twchar_t)(__ccgo_up(bp + 40)))[int32(1)] = 0 + *(*uintptr)(unsafe.Pointer(bp + 8)) = bp + 40 + p = -int32(1) + _21: + ; + ws = *(*uintptr)(unsafe.Pointer(bp + 8)) + v5 = Int32FromInt32(0) + l = v5 + i = Uint64FromInt32(v5) + for { + if v45 = i < Uint64FromInt32(p) && **(**Twchar_t)(__ccgo_up(ws)) != 0; v45 { + v8 = ws + ws += 4 + v6 = Xwctomb(tls, bp+48, **(**Twchar_t)(__ccgo_up(v8))) + l = v6 + } + if !(v45 && v6 >= 0 && Uint64FromInt32(l) <= Uint64FromInt32(p)-i) { + break + } + goto _41 + _41: + ; + i = i + Uint64FromInt32(l) + } + if l < 0 { + return -int32(1) + } + if i > uint64(INT_MAX) { + goto overflow + } + p = Int32FromUint64(i) + _pad3(tls, f, uint8(' '), w, p, Int32FromUint32(fl)) + ws = *(*uintptr)(unsafe.Pointer(bp + 8)) + i = uint64(0) + for { + if v45 = i < uint64(0+Uint32FromInt32(p)) && **(**Twchar_t)(__ccgo_up(ws)) != 0; v45 { + v8 = ws + ws += 4 + v5 = Xwctomb(tls, bp+48, **(**Twchar_t)(__ccgo_up(v8))) + l = v5 + } + if !(v45 && i+Uint64FromInt32(v5) <= Uint64FromInt32(p)) { + break + } + _out(tls, f, bp+48, Uint64FromInt32(l)) + goto _46 + _46: + ; + i = i + Uint64FromInt32(l) + } + _pad3(tls, f, uint8(' '), w, p, Int32FromUint32(fl^Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' ')))) + if w > p { + v5 = w + } else { + v5 = p + } + l = v5 + goto _1 + _29: + ; + _28: + ; + _27: + ; + _26: + ; + _25: + ; + _24: + ; + _23: + ; + _22: + ; + if xp != 0 && p < 0 { + goto overflow + } + l = _fmt_fp(tls, f, *(*float64)(unsafe.Pointer(bp + 8)), w, p, Int32FromUint32(fl), t) + if l < 0 { + goto overflow + } + goto _1 + _30: + ; + if int64(p) < int64(z)-int64(a) { + p = int32(int64(z) - int64(a)) + } + if p > int32(INT_MAX)-pl { + goto overflow + } + if w < pl+p { + w = pl + p + } + if w > int32(INT_MAX)-cnt { + goto overflow + } + _pad3(tls, f, uint8(' '), w, pl+p, Int32FromUint32(fl)) + _out(tls, f, prefix, Uint64FromInt32(pl)) + _pad3(tls, f, uint8('0'), w, pl+p, Int32FromUint32(fl^Uint32FromUint32(1)<<(Int32FromUint8('0')-Int32FromUint8(' ')))) + _pad3(tls, f, uint8('0'), p, int32(int64(z)-int64(a)), 0) + _out(tls, f, a, Uint64FromInt64(int64(z)-int64(a))) + _pad3(tls, f, uint8(' '), w, pl+p, Int32FromUint32(fl^Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' ')))) + l = w + goto _1 + _1: + } + if f != 0 { + return cnt + } + if !(l10n != 0) { + return 0 + } + i = uint64(1) + for { + if !(i <= uint64(NL_ARGMAX) && **(**int32)(__ccgo_up(nl_type + uintptr(i)*4)) != 0) { + break + } + _pop_arg(tls, nl_arg+uintptr(i)*8, **(**int32)(__ccgo_up(nl_type + uintptr(i)*4)), ap) + goto _51 + _51: + ; + i = i + 1 + } + for { + if !(i <= uint64(NL_ARGMAX) && !(**(**int32)(__ccgo_up(nl_type + uintptr(i)*4)) != 0)) { + break + } + goto _52 + _52: + ; + i = i + 1 + } + if i <= uint64(NL_ARGMAX) { + goto inval + } + return int32(1) + goto inval +inval: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + goto overflow +overflow: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOVERFLOW) + return -int32(1) +} + +func Xvfprintf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v ap=%v, (%v:)", tls, f, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(208) + defer tls.Free(208) + var __need_unlock, olderr, ret, v1 int32 + var saved_buf, v2, v3 uintptr + var _ /* ap2 at bp+0 */ Tva_list + var _ /* internal_buf at bp+128 */ [80]uint8 + var _ /* nl_arg at bp+48 */ [10]Targ + var _ /* nl_type at bp+8 */ [10]int32 + _, _, _, _, _, _, _ = __need_unlock, olderr, ret, saved_buf, v1, v2, v3 + **(**[10]int32)(__ccgo_up(bp + 8)) = [10]int32{} + saved_buf = uintptr(0) + /* the copy allows passing va_list* even if va_list is an array */ + **(**Tva_list)(__ccgo_up(bp)) = ap + if _printf_core(tls, uintptr(0), fmt, bp, bp+48, bp+8) < 0 { + _ = **(**Tva_list)(__ccgo_up(bp)) + return -int32(1) + } + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + olderr = Int32FromUint32((*TFILE)(unsafe.Pointer(f)).Fflags & uint32(F_ERR)) + **(**uint32)(__ccgo_up(f)) &= Uint32FromInt32(^Int32FromInt32(F_ERR)) + if !((*TFILE)(unsafe.Pointer(f)).Fbuf_size != 0) { + saved_buf = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Fbuf = bp + 128 + (*TFILE)(unsafe.Pointer(f)).Fbuf_size = uint64(80) + v3 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Fwend = v3 + v2 = v3 + (*TFILE)(unsafe.Pointer(f)).Fwbase = v2 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v2 + } + if !((*TFILE)(unsafe.Pointer(f)).Fwend != 0) && X__towrite(tls, f) != 0 { + ret = -int32(1) + } else { + ret = _printf_core(tls, f, fmt, bp, bp+48, bp+8) + } + if saved_buf != 0 { + (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tsize_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fwrite})))(tls, f, uintptr(0), uint64(0)) + if !((*TFILE)(unsafe.Pointer(f)).Fwpos != 0) { + ret = -int32(1) + } + (*TFILE)(unsafe.Pointer(f)).Fbuf = saved_buf + (*TFILE)(unsafe.Pointer(f)).Fbuf_size = uint64(0) + v3 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Fwend = v3 + v2 = v3 + (*TFILE)(unsafe.Pointer(f)).Fwbase = v2 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v2 + } + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_ERR) != 0 { + ret = -int32(1) + } + **(**uint32)(__ccgo_up(f)) |= Uint32FromInt32(olderr) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + _ = **(**Tva_list)(__ccgo_up(bp)) + return ret +} + +const SIZE_L = 2 +const SIZE_def = 0 +const SIZE_h = -1 +const SIZE_hh = -2 +const SIZE_l = 1 +const SIZE_ll = 3 + +func _store_int(tls *TLS, dest uintptr, size int32, i uint64) { + if !(dest != 0) { + return + } + switch size { + case -int32(2): + **(**uint8)(__ccgo_up(dest)) = uint8(i) + case -int32(1): + **(**int16)(__ccgo_up(dest)) = Int16FromUint64(i) + case SIZE_def: + **(**int32)(__ccgo_up(dest)) = Int32FromUint64(i) + case int32(SIZE_l): + **(**int64)(__ccgo_up(dest)) = Int64FromUint64(i) + case int32(SIZE_ll): + **(**int64)(__ccgo_up(dest)) = Int64FromUint64(i) + break + } +} + +func _arg_n(tls *TLS, ap Tva_list, n uint32) (r uintptr) { + var ap2 Tva_list + var i uint32 + var p uintptr + _, _, _ = ap2, i, p + ap2 = ap + i = n + for { + if !(i > uint32(1)) { + break + } + _ = VaUintptr(&ap2) + goto _1 + _1: + ; + i = i - 1 + } + p = VaUintptr(&ap2) + _ = ap2 + return p +} + +func Xvfscanf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v ap=%v, (%v:)", tls, f, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(288) + defer tls.Free(288) + var __need_unlock, alloc, base, c, invert, matches, size, t, width, v1, v3, v4, v6 int32 + var dest, p, s, tmp, tmp1, wcs, v10, v11, v17 uintptr + var i, k, v64 Tsize_t + var pos Toff_t + var x uint64 + var y float64 + var v59 uint32 + var _ /* scanset at bp+16 */ [257]uint8 + var _ /* st at bp+8 */ Tmbstate_t + var _ /* wc at bp+276 */ Twchar_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = __need_unlock, alloc, base, c, dest, i, invert, k, matches, p, pos, s, size, t, tmp, tmp1, wcs, width, x, y, v1, v10, v11, v17, v3, v4, v59, v6, v64 + alloc = 0 + dest = UintptrFromInt32(0) + matches = 0 + pos = 0 + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + if !((*TFILE)(unsafe.Pointer(f)).Frpos != 0) { + X__toread(tls, f) + } + if !((*TFILE)(unsafe.Pointer(f)).Frpos != 0) { + goto input_fail + } + p = fmt + for { + if !(**(**uint8)(__ccgo_up(p)) != 0) { + break + } + alloc = 0 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(p))) + v3 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _5 + _5: + if v3 != 0 { + for { + v4 = Int32FromUint8(**(**uint8)(__ccgo_up(p + 1))) + v6 = BoolInt32(v4 == int32(' ') || Uint32FromInt32(v4)-uint32('\t') < uint32(5)) + goto _8 + _8: + if !(v6 != 0) { + break + } + p = p + 1 + } + X__shlim(tls, f, int64(Int32FromInt32(0))) + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v11 = f + 8 + v10 = *(*uintptr)(unsafe.Pointer(v11)) + *(*uintptr)(unsafe.Pointer(v11)) = *(*uintptr)(unsafe.Pointer(v11)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v10))) + } else { + v1 = X__shgetc(tls, f) + } + v3 = v1 + v4 = BoolInt32(v3 == int32(' ') || Uint32FromInt32(v3)-uint32('\t') < uint32(5)) + goto _14 + _14: + if !(v4 != 0) { + break + } + } + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + pos = pos + ((*TFILE)(unsafe.Pointer(f)).Fshcnt + (int64((*TFILE)(unsafe.Pointer(f)).Frpos) - int64((*TFILE)(unsafe.Pointer(f)).Fbuf))) + goto _2 + } + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) != int32('%') || Int32FromUint8(**(**uint8)(__ccgo_up(p + 1))) == int32('%') { + X__shlim(tls, f, int64(Int32FromInt32(0))) + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('%') { + p = p + 1 + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v11 = f + 8 + v10 = *(*uintptr)(unsafe.Pointer(v11)) + *(*uintptr)(unsafe.Pointer(v11)) = *(*uintptr)(unsafe.Pointer(v11)) + 1 + v3 = Int32FromUint8(**(**uint8)(__ccgo_up(v10))) + } else { + v3 = X__shgetc(tls, f) + } + v1 = v3 + c = v1 + v4 = v1 + v6 = BoolInt32(v4 == int32(' ') || Uint32FromInt32(v4)-uint32('\t') < uint32(5)) + goto _21 + _21: + if !(v6 != 0) { + break + } + } + } else { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v11 = f + 8 + v10 = *(*uintptr)(unsafe.Pointer(v11)) + *(*uintptr)(unsafe.Pointer(v11)) = *(*uintptr)(unsafe.Pointer(v11)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v10))) + } else { + v1 = X__shgetc(tls, f) + } + c = v1 + } + if c != Int32FromUint8(**(**uint8)(__ccgo_up(p))) { + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + if c < 0 { + goto input_fail + } + goto match_fail + } + pos = pos + ((*TFILE)(unsafe.Pointer(f)).Fshcnt + (int64((*TFILE)(unsafe.Pointer(f)).Frpos) - int64((*TFILE)(unsafe.Pointer(f)).Fbuf))) + goto _2 + } + p = p + 1 + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('*') { + dest = uintptr(0) + p = p + 1 + } else { + if BoolInt32(uint32(**(**uint8)(__ccgo_up(p)))-uint32('0') < uint32(10)) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(p + 1))) == int32('$') { + dest = _arg_n(tls, ap, Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(p)))-int32('0'))) + p = p + uintptr(2) + } else { + dest = VaUintptr(&ap) + } + } + width = 0 + for { + if !(BoolInt32(uint32(**(**uint8)(__ccgo_up(p)))-uint32('0') < uint32(10)) != 0) { + break + } + width = int32(10)*width + Int32FromUint8(**(**uint8)(__ccgo_up(p))) - int32('0') + goto _25 + _25: + ; + p = p + 1 + } + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('m') { + wcs = uintptr(0) + s = uintptr(0) + alloc = BoolInt32(!!(dest != 0)) + p = p + 1 + } else { + alloc = 0 + } + size = SIZE_def + v10 = p + p = p + 1 + switch Int32FromUint8(**(**uint8)(__ccgo_up(v10))) { + case int32('h'): + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('h') { + p = p + 1 + size = -Int32FromInt32(2) + } else { + size = -int32(1) + } + case int32('l'): + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('l') { + p = p + 1 + size = Int32FromInt32(SIZE_ll) + } else { + size = int32(SIZE_l) + } + case int32('j'): + size = int32(SIZE_ll) + case int32('z'): + fallthrough + case int32('t'): + size = int32(SIZE_l) + case int32('L'): + size = int32(SIZE_L) + case int32('d'): + fallthrough + case int32('i'): + fallthrough + case int32('o'): + fallthrough + case int32('u'): + fallthrough + case int32('x'): + fallthrough + case int32('a'): + fallthrough + case int32('e'): + fallthrough + case int32('f'): + fallthrough + case int32('g'): + fallthrough + case int32('A'): + fallthrough + case int32('E'): + fallthrough + case int32('F'): + fallthrough + case int32('G'): + fallthrough + case int32('X'): + fallthrough + case int32('s'): + fallthrough + case int32('c'): + fallthrough + case int32('['): + fallthrough + case int32('S'): + fallthrough + case int32('C'): + fallthrough + case int32('p'): + fallthrough + case int32('n'): + p = p - 1 + default: + goto fmt_fail + } + t = Int32FromUint8(**(**uint8)(__ccgo_up(p))) + /* C or S */ + if t&int32(0x2f) == int32(3) { + t = t | int32(32) + size = int32(SIZE_l) + } + switch t { + case int32('c'): + if width < int32(1) { + width = int32(1) + } + fallthrough + case int32('['): + case int32('n'): + _store_int(tls, dest, size, Uint64FromInt64(pos)) + /* do not increment match count, etc! */ + goto _2 + default: + X__shlim(tls, f, int64(Int32FromInt32(0))) + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v11 = f + 8 + v10 = *(*uintptr)(unsafe.Pointer(v11)) + *(*uintptr)(unsafe.Pointer(v11)) = *(*uintptr)(unsafe.Pointer(v11)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v10))) + } else { + v1 = X__shgetc(tls, f) + } + v3 = v1 + v4 = BoolInt32(v3 == int32(' ') || Uint32FromInt32(v3)-uint32('\t') < uint32(5)) + goto _32 + _32: + if !(v4 != 0) { + break + } + } + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + pos = pos + ((*TFILE)(unsafe.Pointer(f)).Fshcnt + (int64((*TFILE)(unsafe.Pointer(f)).Frpos) - int64((*TFILE)(unsafe.Pointer(f)).Fbuf))) + } + X__shlim(tls, f, int64(width)) + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v11 = f + 8 + v10 = *(*uintptr)(unsafe.Pointer(v11)) + *(*uintptr)(unsafe.Pointer(v11)) = *(*uintptr)(unsafe.Pointer(v11)) + 1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(v10))) + } else { + v1 = X__shgetc(tls, f) + } + if v1 < 0 { + goto input_fail + } + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + switch t { + case int32('['): + goto _36 + case int32('c'): + goto _37 + case int32('s'): + goto _38 + case int32('x'): + goto _39 + case int32('X'): + goto _40 + case int32('p'): + goto _41 + case int32('o'): + goto _42 + case int32('u'): + goto _43 + case int32('d'): + goto _44 + case int32('i'): + goto _45 + case int32('G'): + goto _46 + case int32('g'): + goto _47 + case int32('F'): + goto _48 + case int32('f'): + goto _49 + case int32('E'): + goto _50 + case int32('e'): + goto _51 + case int32('A'): + goto _52 + case int32('a'): + goto _53 + } + goto _54 + _38: + ; + _37: + ; + _36: + ; + if t == int32('c') || t == int32('s') { + Xmemset(tls, bp+16, -int32(1), uint64(257)) + (**(**[257]uint8)(__ccgo_up(bp + 16)))[0] = uint8(0) + if t == int32('s') { + (**(**[257]uint8)(__ccgo_up(bp + 16)))[Int32FromInt32(1)+Int32FromUint8('\t')] = uint8(0) + (**(**[257]uint8)(__ccgo_up(bp + 16)))[Int32FromInt32(1)+Int32FromUint8('\n')] = uint8(0) + (**(**[257]uint8)(__ccgo_up(bp + 16)))[Int32FromInt32(1)+Int32FromUint8('\v')] = uint8(0) + (**(**[257]uint8)(__ccgo_up(bp + 16)))[Int32FromInt32(1)+Int32FromUint8('\f')] = uint8(0) + (**(**[257]uint8)(__ccgo_up(bp + 16)))[Int32FromInt32(1)+Int32FromUint8('\r')] = uint8(0) + (**(**[257]uint8)(__ccgo_up(bp + 16)))[Int32FromInt32(1)+Int32FromUint8(' ')] = uint8(0) + } + } else { + p = p + 1 + v10 = p + if Int32FromUint8(**(**uint8)(__ccgo_up(v10))) == int32('^') { + p = p + 1 + invert = Int32FromInt32(1) + } else { + invert = 0 + } + Xmemset(tls, bp+16, invert, uint64(257)) + (**(**[257]uint8)(__ccgo_up(bp + 16)))[0] = uint8(0) + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('-') { + p = p + 1 + (**(**[257]uint8)(__ccgo_up(bp + 16)))[Int32FromInt32(1)+Int32FromUint8('-')] = Uint8FromInt32(Int32FromInt32(1) - invert) + } else { + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32(']') { + p = p + 1 + (**(**[257]uint8)(__ccgo_up(bp + 16)))[Int32FromInt32(1)+Int32FromUint8(']')] = Uint8FromInt32(Int32FromInt32(1) - invert) + } + } + for { + if !(Int32FromUint8(**(**uint8)(__ccgo_up(p))) != int32(']')) { + break + } + if !(**(**uint8)(__ccgo_up(p)) != 0) { + goto fmt_fail + } + if Int32FromUint8(**(**uint8)(__ccgo_up(p))) == int32('-') && **(**uint8)(__ccgo_up(p + 1)) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(p + 1))) != int32(']') { + v10 = p + p = p + 1 + c = Int32FromUint8(**(**uint8)(__ccgo_up(v10 + uintptr(-Int32FromInt32(1))))) + for { + if !(c < Int32FromUint8(**(**uint8)(__ccgo_up(p)))) { + break + } + (**(**[257]uint8)(__ccgo_up(bp + 16)))[int32(1)+c] = Uint8FromInt32(int32(1) - invert) + goto _57 + _57: + ; + c = c + 1 + } + } + (**(**[257]uint8)(__ccgo_up(bp + 16)))[int32(1)+Int32FromUint8(**(**uint8)(__ccgo_up(p)))] = Uint8FromInt32(int32(1) - invert) + goto _56 + _56: + ; + p = p + 1 + } + } + wcs = uintptr(0) + s = uintptr(0) + i = uint64(0) + if t == int32('c') { + v59 = Uint32FromInt32(width) + uint32(1) + } else { + v59 = uint32(31) + } + k = uint64(v59) + if size == int32(SIZE_l) { + if alloc != 0 { + wcs = Xmalloc(tls, k*uint64(4)) + if !(wcs != 0) { + goto alloc_fail + } + } else { + wcs = dest + } + **(**Tmbstate_t)(__ccgo_up(bp + 8)) = Tmbstate_t{} + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v11 = f + 8 + v10 = *(*uintptr)(unsafe.Pointer(v11)) + *(*uintptr)(unsafe.Pointer(v11)) = *(*uintptr)(unsafe.Pointer(v11)) + 1 + v3 = Int32FromUint8(**(**uint8)(__ccgo_up(v10))) + } else { + v3 = X__shgetc(tls, f) + } + v1 = v3 + c = v1 + if !((**(**[257]uint8)(__ccgo_up(bp + 16)))[v1+int32(1)] != 0) { + break + } + *(*uint8)(unsafe.Pointer(bp)) = Uint8FromInt32(c) + switch Xmbrtowc(tls, bp+276, bp, uint64(1), bp+8) { + case Uint64FromInt32(-Int32FromInt32(1)): + goto input_fail + case Uint64FromInt32(-Int32FromInt32(2)): + continue + } + if wcs != 0 { + v64 = i + i = i + 1 + **(**Twchar_t)(__ccgo_up(wcs + uintptr(v64)*4)) = **(**Twchar_t)(__ccgo_up(bp + 276)) + } + if alloc != 0 && i == k { + k = k + (k + uint64(1)) + tmp = Xrealloc(tls, wcs, k*uint64(4)) + if !(tmp != 0) { + goto alloc_fail + } + wcs = tmp + } + } + if !(Xmbsinit(tls, bp+8) != 0) { + goto input_fail + } + } else { + if alloc != 0 { + s = Xmalloc(tls, k) + if !(s != 0) { + goto alloc_fail + } + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v11 = f + 8 + v10 = *(*uintptr)(unsafe.Pointer(v11)) + *(*uintptr)(unsafe.Pointer(v11)) = *(*uintptr)(unsafe.Pointer(v11)) + 1 + v3 = Int32FromUint8(**(**uint8)(__ccgo_up(v10))) + } else { + v3 = X__shgetc(tls, f) + } + v1 = v3 + c = v1 + if !((**(**[257]uint8)(__ccgo_up(bp + 16)))[v1+int32(1)] != 0) { + break + } + v64 = i + i = i + 1 + **(**uint8)(__ccgo_up(s + uintptr(v64))) = Uint8FromInt32(c) + if i == k { + k = k + (k + uint64(1)) + tmp1 = Xrealloc(tls, s, k) + if !(tmp1 != 0) { + goto alloc_fail + } + s = tmp1 + } + } + } else { + v10 = dest + s = v10 + if v10 != 0 { + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v17 = f + 8 + v11 = *(*uintptr)(unsafe.Pointer(v17)) + *(*uintptr)(unsafe.Pointer(v17)) = *(*uintptr)(unsafe.Pointer(v17)) + 1 + v3 = Int32FromUint8(**(**uint8)(__ccgo_up(v11))) + } else { + v3 = X__shgetc(tls, f) + } + v1 = v3 + c = v1 + if !((**(**[257]uint8)(__ccgo_up(bp + 16)))[v1+int32(1)] != 0) { + break + } + v64 = i + i = i + 1 + **(**uint8)(__ccgo_up(s + uintptr(v64))) = Uint8FromInt32(c) + } + } else { + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend { + v11 = f + 8 + v10 = *(*uintptr)(unsafe.Pointer(v11)) + *(*uintptr)(unsafe.Pointer(v11)) = *(*uintptr)(unsafe.Pointer(v11)) + 1 + v3 = Int32FromUint8(**(**uint8)(__ccgo_up(v10))) + } else { + v3 = X__shgetc(tls, f) + } + v1 = v3 + c = v1 + if !((**(**[257]uint8)(__ccgo_up(bp + 16)))[v1+int32(1)] != 0) { + break + } + } + } + } + } + if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 { + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Frpos - 1 + } + if !((*TFILE)(unsafe.Pointer(f)).Fshcnt+(int64((*TFILE)(unsafe.Pointer(f)).Frpos)-int64((*TFILE)(unsafe.Pointer(f)).Fbuf)) != 0) { + goto match_fail + } + if t == int32('c') && (*TFILE)(unsafe.Pointer(f)).Fshcnt+(int64((*TFILE)(unsafe.Pointer(f)).Frpos)-int64((*TFILE)(unsafe.Pointer(f)).Fbuf)) != int64(width) { + goto match_fail + } + if alloc != 0 { + if size == int32(SIZE_l) { + **(**uintptr)(__ccgo_up(dest)) = wcs + } else { + **(**uintptr)(__ccgo_up(dest)) = s + } + } + if t != int32('c') { + if wcs != 0 { + **(**Twchar_t)(__ccgo_up(wcs + uintptr(i)*4)) = 0 + } + if s != 0 { + **(**uint8)(__ccgo_up(s + uintptr(i))) = uint8(0) + } + } + goto _54 + _41: + ; + _40: + ; + _39: + ; + base = int32(16) + goto int_common + _42: + ; + base = int32(8) + goto int_common + _44: + ; + _43: + ; + base = int32(10) + goto int_common + _45: + ; + base = 0 + goto int_common + int_common: + ; + x = X__intscan(tls, f, Uint32FromInt32(base), 0, Uint64FromUint64(2)*Uint64FromInt64(0x7fffffffffffffff)+Uint64FromInt32(1)) + if !((*TFILE)(unsafe.Pointer(f)).Fshcnt+(int64((*TFILE)(unsafe.Pointer(f)).Frpos)-int64((*TFILE)(unsafe.Pointer(f)).Fbuf)) != 0) { + goto match_fail + } + if t == int32('p') && dest != 0 { + **(**uintptr)(__ccgo_up(dest)) = uintptr(x) + } else { + _store_int(tls, dest, size, x) + } + goto _54 + _53: + ; + _52: + ; + _51: + ; + _50: + ; + _49: + ; + _48: + ; + _47: + ; + _46: + ; + y = X__floatscan(tls, f, size, 0) + if !((*TFILE)(unsafe.Pointer(f)).Fshcnt+(int64((*TFILE)(unsafe.Pointer(f)).Frpos)-int64((*TFILE)(unsafe.Pointer(f)).Fbuf)) != 0) { + goto match_fail + } + if dest != 0 { + switch size { + case SIZE_def: + **(**float32)(__ccgo_up(dest)) = float32(y) + case int32(SIZE_l): + **(**float64)(__ccgo_up(dest)) = y + case int32(SIZE_L): + **(**float64)(__ccgo_up(dest)) = y + break + } + } + goto _54 + _54: + ; + pos = pos + ((*TFILE)(unsafe.Pointer(f)).Fshcnt + (int64((*TFILE)(unsafe.Pointer(f)).Frpos) - int64((*TFILE)(unsafe.Pointer(f)).Fbuf))) + if dest != 0 { + matches = matches + 1 + } + goto _2 + _2: + ; + p = p + 1 + } + if !(0 != 0) { + goto _80 + } + goto fmt_fail +fmt_fail: + ; + goto alloc_fail +alloc_fail: + ; + goto input_fail +input_fail: + ; + if !(matches != 0) { + matches = matches - 1 + } + goto match_fail +match_fail: + ; + if alloc != 0 { + Xfree(tls, s) + Xfree(tls, wcs) + } +_80: + ; + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return matches +} + +func X__isoc99_vfscanf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v ap=%v, (%v:)", tls, f, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvfscanf(tls, f, fmt, ap) +} + +var _states1 = [8][58]uint8{ + 0: { + 0: uint8(_DBL), + 2: uint8(_UINT), + 4: uint8(_DBL), + 5: uint8(_DBL), + 6: uint8(_DBL), + 11: uint8(_BIGLPRE), + 18: uint8(_PTR), + 23: uint8(_UINT), + 32: uint8(_DBL), + 34: uint8(_INT), + 35: uint8(_INT), + 36: uint8(_DBL), + 37: uint8(_DBL), + 38: uint8(_DBL), + 39: uint8(_HPRE), + 40: uint8(_INT), + 41: uint8(_JPRE), + 43: uint8(_LPRE), + 44: uint8(_NOARG), + 45: uint8(_PTR), + 46: uint8(_UINT), + 47: uint8(_UIPTR), + 50: uint8(_PTR), + 51: uint8(_ZTPRE), + 52: uint8(_UINT), + 55: uint8(_UINT), + 57: uint8(_ZTPRE), + }, + 1: { + 0: uint8(_DBL), + 4: uint8(_DBL), + 5: uint8(_DBL), + 6: uint8(_DBL), + 23: uint8(_ULONG), + 32: uint8(_DBL), + 34: uint8(_UINT), + 35: uint8(_LONG), + 36: uint8(_DBL), + 37: uint8(_DBL), + 38: uint8(_DBL), + 40: uint8(_LONG), + 43: uint8(_LLPRE), + 45: uint8(_PTR), + 46: uint8(_ULONG), + 50: uint8(_PTR), + 52: uint8(_ULONG), + 55: uint8(_ULONG), + }, + 2: { + 23: uint8(_ULLONG), + 35: uint8(_LLONG), + 40: uint8(_LLONG), + 45: uint8(_PTR), + 46: uint8(_ULLONG), + 52: uint8(_ULLONG), + 55: uint8(_ULLONG), + }, + 3: { + 23: uint8(_USHORT), + 35: uint8(_SHORT), + 39: uint8(_HHPRE), + 40: uint8(_SHORT), + 45: uint8(_PTR), + 46: uint8(_USHORT), + 52: uint8(_USHORT), + 55: uint8(_USHORT), + }, + 4: { + 23: uint8(_UCHAR), + 35: uint8(_CHAR), + 40: uint8(_CHAR), + 45: uint8(_PTR), + 46: uint8(_UCHAR), + 52: uint8(_UCHAR), + 55: uint8(_UCHAR), + }, + 5: { + 0: uint8(_LDBL), + 4: uint8(_LDBL), + 5: uint8(_LDBL), + 6: uint8(_LDBL), + 32: uint8(_LDBL), + 36: uint8(_LDBL), + 37: uint8(_LDBL), + 38: uint8(_LDBL), + 45: uint8(_PTR), + }, + 6: { + 23: uint8(_SIZET), + 35: uint8(_PDIFF), + 40: uint8(_PDIFF), + 45: uint8(_PTR), + 46: uint8(_SIZET), + 52: uint8(_SIZET), + 55: uint8(_SIZET), + }, + 7: { + 23: uint8(_UMAX), + 35: uint8(_IMAX), + 40: uint8(_IMAX), + 45: uint8(_PTR), + 46: uint8(_UMAX), + 52: uint8(_UMAX), + 55: uint8(_UMAX), + }, +} + +func _pop_arg1(tls *TLS, arg uintptr, type1 int32, ap uintptr) { + switch type1 { + case int32(_PTR): + *(*uintptr)(unsafe.Pointer(arg)) = VaUintptr(&**(**Tva_list)(__ccgo_up(ap))) + case int32(_INT): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt32(VaInt32(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_UINT): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(VaUint32(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_LONG): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt64(VaInt64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_ULONG): + (*Targ)(unsafe.Pointer(arg)).Fi = VaUint64(&**(**Tva_list)(__ccgo_up(ap))) + case int32(_ULLONG): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(VaUint64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_SHORT): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt16(int16(VaInt32(&**(**Tva_list)(__ccgo_up(ap))))) + case int32(_USHORT): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(Uint16FromInt32(VaInt32(&**(**Tva_list)(__ccgo_up(ap))))) + case int32(_CHAR): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt8(int8(VaInt32(&**(**Tva_list)(__ccgo_up(ap))))) + case int32(_UCHAR): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(Uint8FromInt32(VaInt32(&**(**Tva_list)(__ccgo_up(ap))))) + case int32(_LLONG): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt64(VaInt64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_SIZET): + (*Targ)(unsafe.Pointer(arg)).Fi = VaUint64(&**(**Tva_list)(__ccgo_up(ap))) + case int32(_IMAX): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt64(VaInt64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_UMAX): + (*Targ)(unsafe.Pointer(arg)).Fi = VaUint64(&**(**Tva_list)(__ccgo_up(ap))) + case int32(_PDIFF): + (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt64(VaInt64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_UIPTR): + (*Targ)(unsafe.Pointer(arg)).Fi = uint64(VaUintptr(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_DBL): + *(*float64)(unsafe.Pointer(arg)) = float64(VaFloat64(&**(**Tva_list)(__ccgo_up(ap)))) + case int32(_LDBL): + *(*float64)(unsafe.Pointer(arg)) = VaFloat64(&**(**Tva_list)(__ccgo_up(ap))) + } +} + +func _out1(tls *TLS, f uintptr, s uintptr, l Tsize_t) { + var v1 Tsize_t + var v2 uintptr + _, _ = v1, v2 + for { + v1 = l + l = l - 1 + if !(v1 != 0 && !((*TFILE)(unsafe.Pointer(f)).Fflags&Uint32FromInt32(F_ERR) != 0)) { + break + } + v2 = s + s += 4 + Xfputwc(tls, **(**Twchar_t)(__ccgo_up(v2)), f) + } +} + +func _pad4(tls *TLS, f uintptr, n int32, fl int32) { + bp := tls.Alloc(32) + defer tls.Free(32) + if Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' '))) != 0 || !(n != 0) || (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_ERR) != 0 { + return + } + Xfprintf(tls, f, __ccgo_ts+1664, VaList(bp+8, n, __ccgo_ts)) +} + +func _getint1(tls *TLS, s uintptr) (r int32) { + var i int32 + _ = i + i = 0 + for { + if !(BoolInt32(Uint32FromInt32(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(s)))))-uint32('0') < uint32(10)) != 0) { + break + } + if Uint32FromInt32(i) > Uint32FromInt32(INT_MAX)/Uint32FromUint32(10) || **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(s))))-int32('0') > int32(INT_MAX)-int32(10)*i { + i = -int32(1) + } else { + i = int32(10)*i + (**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(s)))) - int32('0')) + } + goto _1 + _1: + ; + **(**uintptr)(__ccgo_up(s)) += 4 + } + return i +} + +var _sizeprefix = [24]uint8{ + 0: uint8('L'), + 3: uint8('j'), + 4: uint8('L'), + 5: uint8('L'), + 6: uint8('L'), + 8: uint8('j'), + 14: uint8('j'), + 15: uint8('j'), + 20: uint8('j'), + 23: uint8('j'), +} + +func _wprintf_core(tls *TLS, f uintptr, fmt uintptr, ap uintptr, nl_arg uintptr, nl_type uintptr) (r int32) { + bp := tls.Alloc(112) + defer tls.Free(112) + var a, bs, z, v8 uintptr + var argpos, cnt, i, l, p, t, w, xp, v5, v6, v7 int32 + var fl, l10n, ps, st uint32 + var v15 bool + var v9 uint64 + var _ /* arg at bp+16 */ Targ + var _ /* charfmt at bp+24 */ [16]uint8 + var _ /* s at bp+8 */ uintptr + var _ /* wc at bp+40 */ Twchar_t + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = a, argpos, bs, cnt, fl, i, l, l10n, p, ps, st, t, w, xp, z, v15, v5, v6, v7, v8, v9 + **(**uintptr)(__ccgo_up(bp + 8)) = fmt + l10n = uint32(0) + cnt = 0 + l = 0 + for { + /* This error is only specified for snprintf, but since it's + * unspecified for other forms, do the same. Stop immediately + * on overflow; otherwise %n could produce wrong results. */ + if l > int32(INT_MAX)-cnt { + goto overflow + } + /* Update output count, end loop when fmt is exhausted */ + cnt = cnt + l + if !(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)))) != 0) { + break + } + /* Handle literal text and %% format specifiers */ + a = **(**uintptr)(__ccgo_up(bp + 8)) + for { + if !(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)))) != 0 && **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)))) != int32('%')) { + break + } + goto _2 + _2: + ; + **(**uintptr)(__ccgo_up(bp + 8)) += 4 + } + z = **(**uintptr)(__ccgo_up(bp + 8)) + for { + if !(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)))) == int32('%') && **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + 1*4)) == int32('%')) { + break + } + goto _3 + _3: + ; + z += 4 + **(**uintptr)(__ccgo_up(bp + 8)) = **(**uintptr)(__ccgo_up(bp + 8)) + uintptr(2)*4 + } + if (int64(z)-int64(a))/4 > int64(int32(INT_MAX)-cnt) { + goto overflow + } + l = int32((int64(z) - int64(a)) / 4) + if f != 0 { + _out1(tls, f, a, Uint64FromInt32(l)) + } + if l != 0 { + goto _1 + } + if BoolInt32(Uint32FromInt32(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + 1*4)))-uint32('0') < uint32(10)) != 0 && **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + 2*4)) == int32('$') { + l10n = uint32(1) + argpos = **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + 1*4)) - int32('0') + **(**uintptr)(__ccgo_up(bp + 8)) = **(**uintptr)(__ccgo_up(bp + 8)) + uintptr(3)*4 + } else { + argpos = -int32(1) + **(**uintptr)(__ccgo_up(bp + 8)) += 4 + } + /* Read modifier flags */ + fl = uint32(0) + for { + if !(Uint32FromInt32(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)))))-uint32(' ') < uint32(32) && (Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8('0')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8(' ')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8('+')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8('\'')-Int32FromUint8(' ')))&(uint32(1)<<(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8))))-int32(' '))) != 0) { + break + } + fl = fl | uint32(1)<<(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8))))-int32(' ')) + goto _4 + _4: + ; + **(**uintptr)(__ccgo_up(bp + 8)) += 4 + } + /* Read field width */ + if **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)))) == int32('*') { + if BoolInt32(Uint32FromInt32(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + 1*4)))-uint32('0') < uint32(10)) != 0 && **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + 2*4)) == int32('$') { + l10n = uint32(1) + **(**int32)(__ccgo_up(nl_type + uintptr(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + 1*4))-int32('0'))*4)) = int32(_INT) + w = Int32FromUint64(*(*Tuintmax_t)(unsafe.Pointer(nl_arg + uintptr(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + 1*4))-int32('0'))*8))) + **(**uintptr)(__ccgo_up(bp + 8)) = **(**uintptr)(__ccgo_up(bp + 8)) + uintptr(3)*4 + } else { + if !(l10n != 0) { + if f != 0 { + v5 = VaInt32(&**(**Tva_list)(__ccgo_up(ap))) + } else { + v5 = 0 + } + w = v5 + **(**uintptr)(__ccgo_up(bp + 8)) += 4 + } else { + goto inval + } + } + if w < 0 { + fl = fl | Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' ')) + w = -w + } + } else { + v5 = _getint1(tls, bp+8) + w = v5 + if v5 < 0 { + goto overflow + } + } + /* Read precision */ + if **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)))) == int32('.') && **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + 1*4)) == int32('*') { + if BoolInt32(Uint32FromInt32(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + 2*4)))-uint32('0') < uint32(10)) != 0 && **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + 3*4)) == int32('$') { + **(**int32)(__ccgo_up(nl_type + uintptr(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + 2*4))-int32('0'))*4)) = int32(_INT) + p = Int32FromUint64(*(*Tuintmax_t)(unsafe.Pointer(nl_arg + uintptr(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + 2*4))-int32('0'))*8))) + **(**uintptr)(__ccgo_up(bp + 8)) = **(**uintptr)(__ccgo_up(bp + 8)) + uintptr(4)*4 + } else { + if !(l10n != 0) { + if f != 0 { + v5 = VaInt32(&**(**Tva_list)(__ccgo_up(ap))) + } else { + v5 = 0 + } + p = v5 + **(**uintptr)(__ccgo_up(bp + 8)) = **(**uintptr)(__ccgo_up(bp + 8)) + uintptr(2)*4 + } else { + goto inval + } + } + xp = BoolInt32(p >= 0) + } else { + if **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)))) == int32('.') { + **(**uintptr)(__ccgo_up(bp + 8)) += 4 + p = _getint1(tls, bp+8) + xp = int32(1) + } else { + p = -int32(1) + xp = 0 + } + } + /* Format specifier state machine */ + st = uint32(0) + for cond := true; cond; cond = st-uint32(1) < uint32(_STOP) { + if Uint32FromInt32(**(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)))))-uint32('A') > Uint32FromInt32(Int32FromUint8('z')-Int32FromUint8('A')) { + goto inval + } + ps = st + v8 = **(**uintptr)(__ccgo_up(bp + 8)) + **(**uintptr)(__ccgo_up(bp + 8)) += 4 + st = uint32(**(**uint8)(__ccgo_up(uintptr(unsafe.Pointer(&_states1)) + uintptr(st)*58 + uintptr(**(**Twchar_t)(__ccgo_up(v8))-int32('A'))))) + } + if !(st != 0) { + goto inval + } + /* Check validity of argument type (nl/normal) */ + if st == uint32(_NOARG) { + if argpos >= 0 { + goto inval + } + } else { + if argpos >= 0 { + **(**int32)(__ccgo_up(nl_type + uintptr(argpos)*4)) = Int32FromUint32(st) + **(**Targ)(__ccgo_up(bp + 16)) = **(**Targ)(__ccgo_up(nl_arg + uintptr(argpos)*8)) + } else { + if f != 0 { + _pop_arg1(tls, bp+16, Int32FromUint32(st), ap) + } else { + return 0 + } + } + } + if !(f != 0) { + goto _1 + } + /* Do not process any new directives once in error state. */ + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_ERR) != 0 { + return -int32(1) + } + t = **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 8)) + uintptr(-Int32FromInt32(1))*4)) + if ps != 0 && t&int32(15) == int32(3) { + t = t & ^Int32FromInt32(32) + } + switch t { + case int32('n'): + switch ps { + case uint32(_BARE): + **(**int32)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 16)))) = cnt + case uint32(_LPRE): + **(**int64)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 16)))) = int64(cnt) + case uint32(_LLPRE): + **(**int64)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 16)))) = int64(cnt) + case uint32(_HPRE): + **(**uint16)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 16)))) = Uint16FromInt32(cnt) + case uint32(_HHPRE): + **(**uint8)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 16)))) = Uint8FromInt32(cnt) + case uint32(_ZTPRE): + **(**Tsize_t)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 16)))) = Uint64FromInt32(cnt) + case uint32(_JPRE): + **(**Tuintmax_t)(__ccgo_up(*(*uintptr)(unsafe.Pointer(bp + 16)))) = Uint64FromInt32(cnt) + break + } + goto _1 + case int32('c'): + fallthrough + case int32('C'): + if w < int32(1) { + w = int32(1) + } + _pad4(tls, f, w-int32(1), Int32FromUint32(fl)) + if t == int32('C') { + v9 = *(*Tuintmax_t)(unsafe.Pointer(bp + 16)) + } else { + v9 = uint64(Xbtowc(tls, Int32FromUint64(*(*Tuintmax_t)(unsafe.Pointer(bp + 16))))) + } + *(*Twchar_t)(unsafe.Pointer(bp)) = Int32FromUint64(v9) + _out1(tls, f, bp, uint64(1)) + _pad4(tls, f, w-int32(1), Int32FromUint32(fl^Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' ')))) + l = w + goto _1 + case int32('S'): + a = *(*uintptr)(unsafe.Pointer(bp + 16)) + if p < 0 { + v5 = int32(INT_MAX) + } else { + v5 = p + } + z = a + uintptr(Xwcsnlen(tls, a, Uint64FromInt32(v5)))*4 + if p < 0 && **(**Twchar_t)(__ccgo_up(z)) != 0 { + goto overflow + } + p = int32((int64(z) - int64(a)) / 4) + if w < p { + w = p + } + _pad4(tls, f, w-p, Int32FromUint32(fl)) + _out1(tls, f, a, Uint64FromInt32(p)) + _pad4(tls, f, w-p, Int32FromUint32(fl^Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' ')))) + l = w + goto _1 + case int32('m'): + *(*uintptr)(unsafe.Pointer(bp + 16)) = Xstrerror(tls, **(**int32)(__ccgo_up(X__errno_location(tls)))) + fallthrough + case int32('s'): + if !(*(*uintptr)(unsafe.Pointer(bp + 16)) != 0) { + *(*uintptr)(unsafe.Pointer(bp + 16)) = __ccgo_ts + 1657 + } + bs = *(*uintptr)(unsafe.Pointer(bp + 16)) + v5 = Int32FromInt32(0) + l = v5 + i = v5 + for { + if p < 0 { + v6 = int32(INT_MAX) + } else { + v6 = p + } + if v15 = l < v6; v15 { + v7 = Xmbtowc(tls, bp+40, bs, uint64(MB_LEN_MAX)) + i = v7 + } + if !(v15 && v7 > 0) { + break + } + goto _11 + _11: + ; + bs = bs + uintptr(i) + l = l + 1 + } + if i < 0 { + return -int32(1) + } + if p < 0 && **(**uint8)(__ccgo_up(bs)) != 0 { + goto overflow + } + p = l + if w < p { + w = p + } + _pad4(tls, f, w-p, Int32FromUint32(fl)) + bs = *(*uintptr)(unsafe.Pointer(bp + 16)) + for { + v5 = l + l = l - 1 + if !(v5 != 0) { + break + } + i = Xmbtowc(tls, bp+40, bs, uint64(MB_LEN_MAX)) + bs = bs + uintptr(i) + _out1(tls, f, bp+40, uint64(1)) + } + _pad4(tls, f, w-p, Int32FromUint32(fl^Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' ')))) + l = w + goto _1 + } + if xp != 0 && p < 0 { + goto overflow + } + Xsnprintf(tls, bp+24, uint64(16), __ccgo_ts+1668, VaList(bp+56, __ccgo_ts+1688+BoolUintptr(!(fl&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0)), __ccgo_ts+1690+BoolUintptr(!(fl&(Uint32FromUint32(1)<<(Int32FromUint8('+')-Int32FromUint8(' '))) != 0)), __ccgo_ts+1692+BoolUintptr(!(fl&(Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' '))) != 0)), __ccgo_ts+702+BoolUintptr(!(fl&(Uint32FromUint32(1)<<(Int32FromUint8(' ')-Int32FromUint8(' '))) != 0)), __ccgo_ts+1694+BoolUintptr(!(fl&(Uint32FromUint32(1)<<(Int32FromUint8('0')-Int32FromUint8(' '))) != 0)), Int32FromUint8(_sizeprefix[t|int32(32)-int32('a')]), t)) + switch t | Int32FromInt32(32) { + case int32('a'): + fallthrough + case int32('e'): + fallthrough + case int32('f'): + fallthrough + case int32('g'): + l = Xfprintf(tls, f, bp+24, VaList(bp+56, w, p, *(*float64)(unsafe.Pointer(bp + 16)))) + case int32('d'): + fallthrough + case int32('i'): + fallthrough + case int32('o'): + fallthrough + case int32('u'): + fallthrough + case int32('x'): + fallthrough + case int32('p'): + l = Xfprintf(tls, f, bp+24, VaList(bp+56, w, p, *(*Tuintmax_t)(unsafe.Pointer(bp + 16)))) + break + } + goto _1 + _1: + } + if f != 0 { + return cnt + } + if !(l10n != 0) { + return 0 + } + i = int32(1) + for { + if !(i <= int32(NL_ARGMAX) && **(**int32)(__ccgo_up(nl_type + uintptr(i)*4)) != 0) { + break + } + _pop_arg1(tls, nl_arg+uintptr(i)*8, **(**int32)(__ccgo_up(nl_type + uintptr(i)*4)), ap) + goto _17 + _17: + ; + i = i + 1 + } + for { + if !(i <= int32(NL_ARGMAX) && !(**(**int32)(__ccgo_up(nl_type + uintptr(i)*4)) != 0)) { + break + } + goto _18 + _18: + ; + i = i + 1 + } + if i <= int32(NL_ARGMAX) { + return -int32(1) + } + return int32(1) + goto inval +inval: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + goto overflow +overflow: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOVERFLOW) + return -int32(1) +} + +func Xvfwprintf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v ap=%v, (%v:)", tls, f, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(128) + defer tls.Free(128) + var __need_unlock, olderr, ret, v1 int32 + var _ /* ap2 at bp+0 */ Tva_list + var _ /* nl_arg at bp+48 */ [10]Targ + var _ /* nl_type at bp+8 */ [10]int32 + _, _, _, _ = __need_unlock, olderr, ret, v1 + **(**[10]int32)(__ccgo_up(bp + 8)) = [10]int32{} + /* the copy allows passing va_list* even if va_list is an array */ + **(**Tva_list)(__ccgo_up(bp)) = ap + if _wprintf_core(tls, uintptr(0), fmt, bp, bp+48, bp+8) < 0 { + _ = **(**Tva_list)(__ccgo_up(bp)) + return -int32(1) + } + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + Xfwide(tls, f, int32(1)) + olderr = Int32FromUint32((*TFILE)(unsafe.Pointer(f)).Fflags & uint32(F_ERR)) + **(**uint32)(__ccgo_up(f)) &= Uint32FromInt32(^Int32FromInt32(F_ERR)) + ret = _wprintf_core(tls, f, fmt, bp, bp+48, bp+8) + if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_ERR) != 0 { + ret = -int32(1) + } + **(**uint32)(__ccgo_up(f)) |= Uint32FromInt32(olderr) + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + _ = **(**Tva_list)(__ccgo_up(bp)) + return ret +} + +func _store_int1(tls *TLS, dest uintptr, size int32, i uint64) { + if !(dest != 0) { + return + } + switch size { + case -int32(2): + **(**uint8)(__ccgo_up(dest)) = uint8(i) + case -int32(1): + **(**int16)(__ccgo_up(dest)) = Int16FromUint64(i) + case SIZE_def: + **(**int32)(__ccgo_up(dest)) = Int32FromUint64(i) + case int32(SIZE_l): + **(**int64)(__ccgo_up(dest)) = Int64FromUint64(i) + case int32(SIZE_ll): + **(**int64)(__ccgo_up(dest)) = Int64FromUint64(i) + break + } +} + +func _arg_n1(tls *TLS, ap Tva_list, n uint32) (r uintptr) { + var ap2 Tva_list + var i uint32 + var p uintptr + _, _, _ = ap2, i, p + ap2 = ap + i = n + for { + if !(i > uint32(1)) { + break + } + _ = VaUintptr(&ap2) + goto _1 + _1: + ; + i = i - 1 + } + p = VaUintptr(&ap2) + _ = ap2 + return p +} + +func _in_set(tls *TLS, set uintptr, c int32) (r int32) { + var j int32 + var p, v3 uintptr + _, _, _ = j, p, v3 + p = set + if **(**Twchar_t)(__ccgo_up(p)) == int32('-') { + if c == int32('-') { + return int32(1) + } + p += 4 + } else { + if **(**Twchar_t)(__ccgo_up(p)) == int32(']') { + if c == int32(']') { + return int32(1) + } + p += 4 + } + } + for { + if !(**(**Twchar_t)(__ccgo_up(p)) != 0 && **(**Twchar_t)(__ccgo_up(p)) != int32(']')) { + break + } + if **(**Twchar_t)(__ccgo_up(p)) == int32('-') && **(**Twchar_t)(__ccgo_up(p + 1*4)) != 0 && **(**Twchar_t)(__ccgo_up(p + 1*4)) != int32(']') { + v3 = p + p += 4 + j = **(**Twchar_t)(__ccgo_up(v3 + uintptr(-Int32FromInt32(1))*4)) + for { + if !(j < **(**Twchar_t)(__ccgo_up(p))) { + break + } + if c == j { + return int32(1) + } + goto _2 + _2: + ; + j = j + 1 + } + } + if c == **(**Twchar_t)(__ccgo_up(p)) { + return int32(1) + } + goto _1 + _1: + ; + p += 4 + } + return 0 +} + +func Xvfwscanf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v ap=%v, (%v:)", tls, f, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(80) + defer tls.Free(80) + var __need_unlock, alloc, c, gotmatch, invert, l, matches, size, t, width, v1 int32 + var dest, p, s, set, tmp1, tmp2, wcs, v5, v6 uintptr + var i, k, v37 Tsize_t + var pos Toff_t + var v4 uint32 + var _ /* cnt at bp+0 */ Toff_t + var _ /* tmp at bp+8 */ [22]uint8 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = __need_unlock, alloc, c, dest, gotmatch, i, invert, k, l, matches, p, pos, s, set, size, t, tmp1, tmp2, wcs, width, v1, v37, v4, v5, v6 + dest = UintptrFromInt32(0) + matches = 0 + pos = 0 + if AtomicLoadPInt32(f+140) >= 0 { + v1 = ___lockfile(tls, f) + } else { + v1 = 0 + } + __need_unlock = v1 + Xfwide(tls, f, int32(1)) + p = fmt + for { + if !(**(**Twchar_t)(__ccgo_up(p)) != 0) { + break + } + alloc = 0 + if Xiswspace(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(p)))) != 0 { + for Xiswspace(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(p + 1*4)))) != 0 { + p += 4 + } + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend && Int32FromUint8(**(**uint8)(__ccgo_up((*TFILE)(unsafe.Pointer(f)).Frpos))) < int32(128) { + v6 = f + 8 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + v4 = uint32(**(**uint8)(__ccgo_up(v5))) + } else { + v4 = Xgetwc(tls, f) + } + v1 = Int32FromUint32(v4) + c = v1 + if !(Xiswspace(tls, Uint32FromInt32(v1)) != 0) { + break + } + pos = pos + 1 + } + if (*TFILE)(unsafe.Pointer(f)).Frend != 0 && Uint32FromInt32(c) < uint32(128) { + v6 = f + 8 + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) - 1 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + _ = **(**uint8)(__ccgo_up(v5)) + } else { + Xungetwc(tls, Uint32FromInt32(c), f) + } + goto _2 + } + if **(**Twchar_t)(__ccgo_up(p)) != int32('%') || **(**Twchar_t)(__ccgo_up(p + 1*4)) == int32('%') { + if **(**Twchar_t)(__ccgo_up(p)) == int32('%') { + p += 4 + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend && Int32FromUint8(**(**uint8)(__ccgo_up((*TFILE)(unsafe.Pointer(f)).Frpos))) < int32(128) { + v6 = f + 8 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + v4 = uint32(**(**uint8)(__ccgo_up(v5))) + } else { + v4 = Xgetwc(tls, f) + } + v1 = Int32FromUint32(v4) + c = v1 + if !(Xiswspace(tls, Uint32FromInt32(v1)) != 0) { + break + } + pos = pos + 1 + } + } else { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend && Int32FromUint8(**(**uint8)(__ccgo_up((*TFILE)(unsafe.Pointer(f)).Frpos))) < int32(128) { + v6 = f + 8 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + v4 = uint32(**(**uint8)(__ccgo_up(v5))) + } else { + v4 = Xgetwc(tls, f) + } + c = Int32FromUint32(v4) + } + if c != **(**Twchar_t)(__ccgo_up(p)) { + if (*TFILE)(unsafe.Pointer(f)).Frend != 0 && Uint32FromInt32(c) < uint32(128) { + v6 = f + 8 + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) - 1 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + _ = **(**uint8)(__ccgo_up(v5)) + } else { + Xungetwc(tls, Uint32FromInt32(c), f) + } + if c < 0 { + goto input_fail + } + goto match_fail + } + pos = pos + 1 + goto _2 + } + p += 4 + if **(**Twchar_t)(__ccgo_up(p)) == int32('*') { + dest = uintptr(0) + p += 4 + } else { + if BoolInt32(Uint32FromInt32(**(**Twchar_t)(__ccgo_up(p)))-uint32('0') < uint32(10)) != 0 && **(**Twchar_t)(__ccgo_up(p + 1*4)) == int32('$') { + dest = _arg_n1(tls, ap, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(p))-int32('0'))) + p = p + uintptr(2)*4 + } else { + dest = VaUintptr(&ap) + } + } + width = 0 + for { + if !(BoolInt32(Uint32FromInt32(**(**Twchar_t)(__ccgo_up(p)))-uint32('0') < uint32(10)) != 0) { + break + } + width = int32(10)*width + **(**Twchar_t)(__ccgo_up(p)) - int32('0') + goto _18 + _18: + ; + p += 4 + } + if **(**Twchar_t)(__ccgo_up(p)) == int32('m') { + wcs = uintptr(0) + s = uintptr(0) + alloc = BoolInt32(!!(dest != 0)) + p += 4 + } else { + alloc = 0 + } + size = SIZE_def + v5 = p + p += 4 + switch **(**Twchar_t)(__ccgo_up(v5)) { + case int32('h'): + if **(**Twchar_t)(__ccgo_up(p)) == int32('h') { + p += 4 + size = -Int32FromInt32(2) + } else { + size = -int32(1) + } + case int32('l'): + if **(**Twchar_t)(__ccgo_up(p)) == int32('l') { + p += 4 + size = Int32FromInt32(SIZE_ll) + } else { + size = int32(SIZE_l) + } + case int32('j'): + size = int32(SIZE_ll) + case int32('z'): + fallthrough + case int32('t'): + size = int32(SIZE_l) + case int32('L'): + size = int32(SIZE_L) + case int32('d'): + fallthrough + case int32('i'): + fallthrough + case int32('o'): + fallthrough + case int32('u'): + fallthrough + case int32('x'): + fallthrough + case int32('a'): + fallthrough + case int32('e'): + fallthrough + case int32('f'): + fallthrough + case int32('g'): + fallthrough + case int32('A'): + fallthrough + case int32('E'): + fallthrough + case int32('F'): + fallthrough + case int32('G'): + fallthrough + case int32('X'): + fallthrough + case int32('s'): + fallthrough + case int32('c'): + fallthrough + case int32('['): + fallthrough + case int32('S'): + fallthrough + case int32('C'): + fallthrough + case int32('p'): + fallthrough + case int32('n'): + p -= 4 + default: + goto fmt_fail + } + t = **(**Twchar_t)(__ccgo_up(p)) + /* Transform S,C -> ls,lc */ + if t&int32(0x2f) == int32(3) { + size = int32(SIZE_l) + t = t | int32(32) + } + if t != int32('n') { + if t != int32('[') && t|int32(32) != int32('c') { + for { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend && Int32FromUint8(**(**uint8)(__ccgo_up((*TFILE)(unsafe.Pointer(f)).Frpos))) < int32(128) { + v6 = f + 8 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + v4 = uint32(**(**uint8)(__ccgo_up(v5))) + } else { + v4 = Xgetwc(tls, f) + } + v1 = Int32FromUint32(v4) + c = v1 + if !(Xiswspace(tls, Uint32FromInt32(v1)) != 0) { + break + } + pos = pos + 1 + } + } else { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend && Int32FromUint8(**(**uint8)(__ccgo_up((*TFILE)(unsafe.Pointer(f)).Frpos))) < int32(128) { + v6 = f + 8 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + v4 = uint32(**(**uint8)(__ccgo_up(v5))) + } else { + v4 = Xgetwc(tls, f) + } + c = Int32FromUint32(v4) + } + if c < 0 { + goto input_fail + } + if (*TFILE)(unsafe.Pointer(f)).Frend != 0 && Uint32FromInt32(c) < uint32(128) { + v6 = f + 8 + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) - 1 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + _ = **(**uint8)(__ccgo_up(v5)) + } else { + Xungetwc(tls, Uint32FromInt32(c), f) + } + } + switch t { + case int32('n'): + _store_int1(tls, dest, size, Uint64FromInt64(pos)) + /* do not increment match count, etc! */ + goto _2 + case int32('s'): + fallthrough + case int32('c'): + fallthrough + case int32('['): + if t == int32('c') { + if width < int32(1) { + width = int32(1) + } + invert = int32(1) + set = __ccgo_ts + 1696 + } else { + if t == int32('s') { + invert = int32(1) + set = uintptr(unsafe.Pointer(&_spaces1)) + } else { + p += 4 + v5 = p + if **(**Twchar_t)(__ccgo_up(v5)) == int32('^') { + p += 4 + invert = Int32FromInt32(1) + } else { + invert = 0 + } + set = p + if **(**Twchar_t)(__ccgo_up(p)) == int32(']') { + p += 4 + } + for **(**Twchar_t)(__ccgo_up(p)) != int32(']') { + if !(**(**Twchar_t)(__ccgo_up(p)) != 0) { + goto fmt_fail + } + p += 4 + } + } + } + if size == SIZE_def { + v5 = dest + } else { + v5 = uintptr(0) + } + s = v5 + if size == int32(SIZE_l) { + v5 = dest + } else { + v5 = uintptr(0) + } + wcs = v5 + gotmatch = 0 + if width < int32(1) { + width = -int32(1) + } + i = uint64(0) + if alloc != 0 { + if t == int32('c') { + v4 = Uint32FromInt32(width) + uint32(1) + } else { + v4 = uint32(31) + } + k = uint64(v4) + if size == int32(SIZE_l) { + wcs = Xmalloc(tls, k*uint64(4)) + if !(wcs != 0) { + goto alloc_fail + } + } else { + s = Xmalloc(tls, k) + if !(s != 0) { + goto alloc_fail + } + } + } + for width != 0 { + if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend && Int32FromUint8(**(**uint8)(__ccgo_up((*TFILE)(unsafe.Pointer(f)).Frpos))) < int32(128) { + v6 = f + 8 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) + 1 + v4 = uint32(**(**uint8)(__ccgo_up(v5))) + } else { + v4 = Xgetwc(tls, f) + } + v1 = Int32FromUint32(v4) + c = v1 + if v1 < 0 { + break + } + if _in_set(tls, set, c) == invert { + break + } + if wcs != 0 { + v37 = i + i = i + 1 + **(**Twchar_t)(__ccgo_up(wcs + uintptr(v37)*4)) = c + if alloc != 0 && i == k { + k = k + (k + uint64(1)) + tmp1 = Xrealloc(tls, wcs, k*uint64(4)) + if !(tmp1 != 0) { + goto alloc_fail + } + wcs = tmp1 + } + } else { + if size != int32(SIZE_l) { + if s != 0 { + v5 = s + uintptr(i) + } else { + v5 = bp + 8 + } + l = Xwctomb(tls, v5, c) + if l < 0 { + goto input_fail + } + i = i + Uint64FromInt32(l) + if alloc != 0 && i > k-uint64(4) { + k = k + (k + uint64(1)) + tmp2 = Xrealloc(tls, s, k) + if !(tmp2 != 0) { + goto alloc_fail + } + s = tmp2 + } + } + } + pos = pos + 1 + width = width - BoolInt32(width > 0) + gotmatch = int32(1) + } + if width != 0 { + if (*TFILE)(unsafe.Pointer(f)).Frend != 0 && Uint32FromInt32(c) < uint32(128) { + v6 = f + 8 + *(*uintptr)(unsafe.Pointer(v6)) = *(*uintptr)(unsafe.Pointer(v6)) - 1 + v5 = *(*uintptr)(unsafe.Pointer(v6)) + _ = **(**uint8)(__ccgo_up(v5)) + } else { + Xungetwc(tls, Uint32FromInt32(c), f) + } + if t == int32('c') || !(gotmatch != 0) { + goto match_fail + } + } + if alloc != 0 { + if size == int32(SIZE_l) { + **(**uintptr)(__ccgo_up(dest)) = wcs + } else { + **(**uintptr)(__ccgo_up(dest)) = s + } + } + if t != int32('c') { + if wcs != 0 { + **(**Twchar_t)(__ccgo_up(wcs + uintptr(i)*4)) = 0 + } + if s != 0 { + **(**uint8)(__ccgo_up(s + uintptr(i))) = uint8(0) + } + } + case int32('d'): + fallthrough + case int32('i'): + fallthrough + case int32('o'): + fallthrough + case int32('u'): + fallthrough + case int32('x'): + fallthrough + case int32('a'): + fallthrough + case int32('e'): + fallthrough + case int32('f'): + fallthrough + case int32('g'): + fallthrough + case int32('A'): + fallthrough + case int32('E'): + fallthrough + case int32('F'): + fallthrough + case int32('G'): + fallthrough + case int32('X'): + fallthrough + case int32('p'): + if width < int32(1) { + width = 0 + } + Xsnprintf(tls, bp+8, uint64(22), __ccgo_ts+1700, VaList(bp+40, int32(1)+BoolInt32(!(dest != 0)), __ccgo_ts+1718, width, uintptr(unsafe.Pointer(&_size_pfx))+uintptr(size+int32(2))*3, t)) + **(**Toff_t)(__ccgo_up(bp)) = 0 + if dest != 0 { + v5 = dest + } else { + v5 = bp + } + if Xfscanf(tls, f, bp+8, VaList(bp+40, v5, bp)) == -int32(1) { + goto input_fail + } else { + if !(**(**Toff_t)(__ccgo_up(bp)) != 0) { + goto match_fail + } + } + pos = pos + **(**Toff_t)(__ccgo_up(bp)) + default: + goto fmt_fail + } + if dest != 0 { + matches = matches + 1 + } + goto _2 + _2: + ; + p += 4 + } + if !(0 != 0) { + goto _42 + } + goto fmt_fail +fmt_fail: + ; + goto alloc_fail +alloc_fail: + ; + goto input_fail +input_fail: + ; + if !(matches != 0) { + matches = matches - 1 + } + goto match_fail +match_fail: + ; + if alloc != 0 { + Xfree(tls, s) + Xfree(tls, wcs) + } +_42: + ; + if __need_unlock != 0 { + ___unlockfile(tls, f) + } + return matches +} + +var _size_pfx = [6][3]uint8{ + 0: {'h', 'h'}, + 1: {'h'}, + 2: {}, + 3: {'l'}, + 4: {'L'}, + 5: {'l', 'l'}, +} + +var _spaces1 = [22]Twchar_t{ + 0: int32(' '), + 1: int32('\t'), + 2: int32('\n'), + 3: int32('\r'), + 4: int32(11), + 5: int32(12), + 6: int32(0x0085), + 7: int32(0x2000), + 8: int32(0x2001), + 9: int32(0x2002), + 10: int32(0x2003), + 11: int32(0x2004), + 12: int32(0x2005), + 13: int32(0x2006), + 14: int32(0x2008), + 15: int32(0x2009), + 16: int32(0x200a), + 17: int32(0x2028), + 18: int32(0x2029), + 19: int32(0x205f), + 20: int32(0x3000), +} + +func X__isoc99_vfwscanf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v ap=%v, (%v:)", tls, f, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvfwscanf(tls, f, fmt, ap) +} + +func Xvprintf(tls *TLS, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v ap=%v, (%v:)", tls, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvfprintf(tls, uintptr(unsafe.Pointer(&X__stdout_FILE)), fmt, ap) +} + +func Xvscanf(tls *TLS, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v ap=%v, (%v:)", tls, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvfscanf(tls, uintptr(unsafe.Pointer(&X__stdin_FILE)), fmt, ap) +} + +func X__isoc99_vscanf(tls *TLS, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v ap=%v, (%v:)", tls, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvscanf(tls, fmt, ap) +} + +type Tcookie3 = struct { + Fs uintptr + Fn Tsize_t +} + +func _sn_write(tls *TLS, f uintptr, s uintptr, l Tsize_t) (r Tsize_t) { + var c, v3 uintptr + var k Tsize_t + var v1 uint64 + _, _, _, _ = c, k, v1, v3 + c = (*TFILE)(unsafe.Pointer(f)).Fcookie + if (*Tcookie3)(unsafe.Pointer(c)).Fn < Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Fwpos)-int64((*TFILE)(unsafe.Pointer(f)).Fwbase)) { + v1 = (*Tcookie3)(unsafe.Pointer(c)).Fn + } else { + v1 = Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Fwpos) - int64((*TFILE)(unsafe.Pointer(f)).Fwbase)) + } + k = v1 + if k != 0 { + Xmemcpy(tls, (*Tcookie3)(unsafe.Pointer(c)).Fs, (*TFILE)(unsafe.Pointer(f)).Fwbase, k) + **(**uintptr)(__ccgo_up(c)) += uintptr(k) + **(**Tsize_t)(__ccgo_up(c + 8)) -= k + } + if (*Tcookie3)(unsafe.Pointer(c)).Fn < l { + v1 = (*Tcookie3)(unsafe.Pointer(c)).Fn + } else { + v1 = l + } + k = v1 + if k != 0 { + Xmemcpy(tls, (*Tcookie3)(unsafe.Pointer(c)).Fs, s, k) + **(**uintptr)(__ccgo_up(c)) += uintptr(k) + **(**Tsize_t)(__ccgo_up(c + 8)) -= k + } + **(**uint8)(__ccgo_up((*Tcookie3)(unsafe.Pointer(c)).Fs)) = uint8(0) + v3 = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Fwbase = v3 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v3 + /* pretend to succeed, even if we discarded extra data */ + return l +} + +func Xvsnprintf(tls *TLS, s uintptr, n Tsize_t, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v fmt=%v ap=%v, (%v:)", tls, s, n, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(256) + defer tls.Free(256) + var v1 uintptr + var v2 uint64 + var _ /* buf at bp+0 */ [1]uint8 + var _ /* c at bp+8 */ Tcookie3 + var _ /* dummy at bp+1 */ [1]uint8 + var _ /* f at bp+24 */ TFILE + _, _ = v1, v2 + if n != 0 { + v1 = s + } else { + v1 = bp + 1 + } + if n != 0 { + v2 = n - uint64(1) + } else { + v2 = uint64(0) + } + **(**Tcookie3)(__ccgo_up(bp + 8)) = Tcookie3{ + Fs: v1, + Fn: v2, + } + **(**TFILE)(__ccgo_up(bp + 24)) = TFILE{ + Fwrite: __ccgo_fp(_sn_write), + Fbuf: bp, + Flock: -int32(1), + Flbf: -int32(1), + Fcookie: bp + 8, + } + **(**uint8)(__ccgo_up((**(**Tcookie3)(__ccgo_up(bp + 8))).Fs)) = uint8(0) + return Xvfprintf(tls, bp+24, fmt, ap) +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xvsprintf(tls *TLS, s uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v ap=%v, (%v:)", tls, s, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvsnprintf(tls, s, uint64(INT_MAX), fmt, ap) +} + +func _string_read(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + var end, src uintptr + var k Tsize_t + _, _, _ = end, k, src + src = (*TFILE)(unsafe.Pointer(f)).Fcookie + k = len1 + uint64(256) + end = Xmemchr(tls, src, 0, k) + if end != 0 { + k = Uint64FromInt64(int64(end) - int64(src)) + } + if k < len1 { + len1 = k + } + Xmemcpy(tls, buf, src, len1) + (*TFILE)(unsafe.Pointer(f)).Frpos = src + uintptr(len1) + (*TFILE)(unsafe.Pointer(f)).Frend = src + uintptr(k) + (*TFILE)(unsafe.Pointer(f)).Fcookie = src + uintptr(k) + return len1 +} + +func Xvsscanf(tls *TLS, s uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v ap=%v, (%v:)", tls, s, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(240) + defer tls.Free(240) + var _ /* f at bp+0 */ TFILE + **(**TFILE)(__ccgo_up(bp)) = TFILE{ + Fread: __ccgo_fp(_string_read), + Fbuf: s, + Flock: -int32(1), + Fcookie: s, + } + return Xvfscanf(tls, bp, fmt, ap) +} + +func X__isoc99_vsscanf(tls *TLS, s uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v ap=%v, (%v:)", tls, s, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvsscanf(tls, s, fmt, ap) +} + +type Tcookie4 = struct { + Fws uintptr + Fl Tsize_t +} + +func _sw_write(tls *TLS, f uintptr, s uintptr, l Tsize_t) (r Tsize_t) { + var c, v3, v4 uintptr + var i, v1 int32 + var l0 Tsize_t + var v2 bool + _, _, _, _, _, _, _ = c, i, l0, v1, v2, v3, v4 + l0 = l + i = 0 + c = (*TFILE)(unsafe.Pointer(f)).Fcookie + if s != (*TFILE)(unsafe.Pointer(f)).Fwbase && _sw_write(tls, f, (*TFILE)(unsafe.Pointer(f)).Fwbase, Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Fwpos)-int64((*TFILE)(unsafe.Pointer(f)).Fwbase))) == Uint64FromInt32(-Int32FromInt32(1)) { + return Uint64FromInt32(-Int32FromInt32(1)) + } + for { + if v2 = (*Tcookie4)(unsafe.Pointer(c)).Fl != 0 && l != 0; v2 { + v1 = Xmbtowc(tls, (*Tcookie4)(unsafe.Pointer(c)).Fws, s, l) + i = v1 + } + if !(v2 && v1 >= 0) { + break + } + if !(i != 0) { + i = int32(1) + } + s = s + uintptr(i) + l = l - Uint64FromInt32(i) + (*Tcookie4)(unsafe.Pointer(c)).Fl = (*Tcookie4)(unsafe.Pointer(c)).Fl - 1 + (*Tcookie4)(unsafe.Pointer(c)).Fws += 4 + } + **(**Twchar_t)(__ccgo_up((*Tcookie4)(unsafe.Pointer(c)).Fws)) = 0 + if i < 0 { + v4 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Fwend = v4 + v3 = v4 + (*TFILE)(unsafe.Pointer(f)).Fwbase = v3 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v3 + **(**uint32)(__ccgo_up(f)) |= uint32(F_ERR) + return Uint64FromInt32(i) + } + (*TFILE)(unsafe.Pointer(f)).Fwend = (*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr((*TFILE)(unsafe.Pointer(f)).Fbuf_size) + v3 = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Fwbase = v3 + (*TFILE)(unsafe.Pointer(f)).Fwpos = v3 + return l0 +} + +func Xvswprintf(tls *TLS, s uintptr, n Tsize_t, fmt uintptr, ap Tva_list) (r1 int32) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v fmt=%v ap=%v, (%v:)", tls, s, n, fmt, ap, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(512) + defer tls.Free(512) + var r, v1 int32 + var _ /* buf at bp+0 */ [256]uint8 + var _ /* c at bp+256 */ Tcookie4 + var _ /* f at bp+272 */ TFILE + _, _ = r, v1 + **(**Tcookie4)(__ccgo_up(bp + 256)) = Tcookie4{ + Fws: s, + Fl: n - uint64(1), + } + **(**TFILE)(__ccgo_up(bp + 272)) = TFILE{ + Fwrite: __ccgo_fp(_sw_write), + Fbuf: bp, + Fbuf_size: uint64(256), + Flock: -int32(1), + Flbf: -int32(1), + Fcookie: bp + 256, + } + if !(n != 0) { + return -int32(1) + } + r = Xvfwprintf(tls, bp+272, fmt, ap) + _sw_write(tls, bp+272, uintptr(0), uint64(0)) + if Uint64FromInt32(r) >= n { + v1 = -int32(1) + } else { + v1 = r + } + return v1 +} + +func _wstring_read(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + bp := tls.Alloc(16) + defer tls.Free(16) + var k Tsize_t + var v1, v2 uintptr + var _ /* src at bp+0 */ uintptr + _, _, _ = k, v1, v2 + **(**uintptr)(__ccgo_up(bp)) = (*TFILE)(unsafe.Pointer(f)).Fcookie + if !(**(**uintptr)(__ccgo_up(bp)) != 0) { + return uint64(0) + } + k = Xwcsrtombs(tls, (*TFILE)(unsafe.Pointer(f)).Fbuf, bp, (*TFILE)(unsafe.Pointer(f)).Fbuf_size, uintptr(0)) + if k == Uint64FromInt32(-Int32FromInt32(1)) { + v1 = UintptrFromInt32(0) + (*TFILE)(unsafe.Pointer(f)).Frend = v1 + (*TFILE)(unsafe.Pointer(f)).Frpos = v1 + return uint64(0) + } + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Frend = (*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr(k) + (*TFILE)(unsafe.Pointer(f)).Fcookie = **(**uintptr)(__ccgo_up(bp)) + if !(len1 != 0) || !(k != 0) { + return uint64(0) + } + v2 = f + 8 + v1 = *(*uintptr)(unsafe.Pointer(v2)) + *(*uintptr)(unsafe.Pointer(v2)) = *(*uintptr)(unsafe.Pointer(v2)) + 1 + **(**uint8)(__ccgo_up(buf)) = **(**uint8)(__ccgo_up(v1)) + return uint64(1) +} + +func Xvswscanf(tls *TLS, s uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v ap=%v, (%v:)", tls, s, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(496) + defer tls.Free(496) + var _ /* buf at bp+0 */ [256]uint8 + var _ /* f at bp+256 */ TFILE + **(**TFILE)(__ccgo_up(bp + 256)) = TFILE{ + Fread: __ccgo_fp(_wstring_read), + Fbuf: bp, + Fbuf_size: uint64(256), + Flock: -int32(1), + Fcookie: s, + } + return Xvfwscanf(tls, bp+256, fmt, ap) +} + +func X__isoc99_vswscanf(tls *TLS, s uintptr, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v ap=%v, (%v:)", tls, s, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvswscanf(tls, s, fmt, ap) +} + +func Xvwprintf(tls *TLS, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v ap=%v, (%v:)", tls, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvfwprintf(tls, uintptr(unsafe.Pointer(&X__stdout_FILE)), fmt, ap) +} + +func Xvwscanf(tls *TLS, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v ap=%v, (%v:)", tls, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvfwscanf(tls, uintptr(unsafe.Pointer(&X__stdin_FILE)), fmt, ap) +} + +func X__isoc99_vwscanf(tls *TLS, fmt uintptr, ap Tva_list) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v ap=%v, (%v:)", tls, fmt, ap, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xvwscanf(tls, fmt, ap) +} + +func Xwprintf(tls *TLS, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v va=%v, (%v:)", tls, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvwprintf(tls, fmt, ap) + _ = ap + return ret +} + +func Xwscanf(tls *TLS, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v va=%v, (%v:)", tls, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ap Tva_list + var ret int32 + _, _ = ap, ret + ap = va + ret = Xvwscanf(tls, fmt, ap) + _ = ap + return ret +} + +func X__isoc99_wscanf(tls *TLS, fmt uintptr, va uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fmt=%v va=%v, (%v:)", tls, fmt, va, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwscanf(tls, fmt, va) +} + +func Xabs(tls *TLS, a int32) (r int32) { + if __ccgo_strace { + trc("tls=%v a=%v, (%v:)", tls, a, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + _ = v1 + if a > 0 { + v1 = a + } else { + v1 = -a + } + return v1 +} + +func Xatof(tls *TLS, s uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtod(tls, s, uintptr(0)) +} + +func Xatoi(tls *TLS, s uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var n, neg, v1, v2 int32 + var v4 uintptr + _, _, _, _, _ = n, neg, v1, v2, v4 + n = 0 + neg = 0 + for { + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(s))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _3 + _3: + if !(v2 != 0) { + break + } + s = s + 1 + } + switch Int32FromUint8(**(**uint8)(__ccgo_up(s))) { + case int32('-'): + neg = int32(1) + fallthrough + case int32('+'): + s = s + 1 + } + /* Compute n as a negative number to avoid overflow on INT_MIN */ + for BoolInt32(uint32(**(**uint8)(__ccgo_up(s)))-uint32('0') < uint32(10)) != 0 { + v4 = s + s = s + 1 + n = int32(10)*n - (Int32FromUint8(**(**uint8)(__ccgo_up(v4))) - int32('0')) + } + if neg != 0 { + v1 = n + } else { + v1 = -n + } + return v1 +} + +func Xatol(tls *TLS, s uintptr) (r int64) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var n, v5 int64 + var neg, v1, v2 int32 + var v4 uintptr + _, _, _, _, _, _ = n, neg, v1, v2, v4, v5 + n = 0 + neg = 0 + for { + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(s))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _3 + _3: + if !(v2 != 0) { + break + } + s = s + 1 + } + switch Int32FromUint8(**(**uint8)(__ccgo_up(s))) { + case int32('-'): + neg = int32(1) + fallthrough + case int32('+'): + s = s + 1 + } + /* Compute n as a negative number to avoid overflow on LONG_MIN */ + for BoolInt32(uint32(**(**uint8)(__ccgo_up(s)))-uint32('0') < uint32(10)) != 0 { + v4 = s + s = s + 1 + n = int64(10)*n - int64(Int32FromUint8(**(**uint8)(__ccgo_up(v4)))-Int32FromUint8('0')) + } + if neg != 0 { + v5 = n + } else { + v5 = -n + } + return v5 +} + +func Xatoll(tls *TLS, s uintptr) (r int64) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var n, v5 int64 + var neg, v1, v2 int32 + var v4 uintptr + _, _, _, _, _, _ = n, neg, v1, v2, v4, v5 + n = 0 + neg = 0 + for { + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(s))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _3 + _3: + if !(v2 != 0) { + break + } + s = s + 1 + } + switch Int32FromUint8(**(**uint8)(__ccgo_up(s))) { + case int32('-'): + neg = int32(1) + fallthrough + case int32('+'): + s = s + 1 + } + /* Compute n as a negative number to avoid overflow on LLONG_MIN */ + for BoolInt32(uint32(**(**uint8)(__ccgo_up(s)))-uint32('0') < uint32(10)) != 0 { + v4 = s + s = s + 1 + n = int64(10)*n - int64(Int32FromUint8(**(**uint8)(__ccgo_up(v4)))-Int32FromUint8('0')) + } + if neg != 0 { + v5 = n + } else { + v5 = -n + } + return v5 +} + +type t__ccgo_fp__Xbsearch_4 = func(*TLS, uintptr, uintptr) int32 + +func Xbsearch(tls *TLS, key uintptr, base uintptr, nel Tsize_t, width Tsize_t, __ccgo_fp_cmp uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v key=%v base=%v nel=%v width=%v __ccgo_fp_cmp=%v, (%v:)", tls, key, base, nel, width, __ccgo_fp_cmp, origin(2)) + defer func() { trc("-> %v", r) }() + } + var sign int32 + var try uintptr + _, _ = sign, try + for nel > uint64(0) { + try = base + uintptr(width*(nel/uint64(2))) + sign = (*(*func(*TLS, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cmp})))(tls, key, try) + if sign < 0 { + nel = nel / uint64(2) + } else { + if sign > 0 { + base = try + uintptr(width) + nel = nel - (nel/uint64(2) + uint64(1)) + } else { + return try + } + } + } + return UintptrFromInt32(0) +} + +func Xdiv(tls *TLS, num int32, den int32) (r Tdiv_t) { + if __ccgo_strace { + trc("tls=%v num=%v den=%v, (%v:)", tls, num, den, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Tdiv_t{ + Fquot: num / den, + Frem: num % den, + } +} + +func Xecvt(tls *TLS, x float64, n int32, dp uintptr, sign uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v dp=%v sign=%v, (%v:)", tls, x, n, dp, sign, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var i, j, v1 int32 + var _ /* tmp at bp+0 */ [32]uint8 + _, _, _ = i, j, v1 + if Uint32FromInt32(n)-uint32(1) > uint32(15) { + n = int32(15) + } + Xsprintf(tls, bp, __ccgo_ts+1721, VaList(bp+40, n-int32(1), x)) + v1 = BoolInt32(Int32FromUint8((**(**[32]uint8)(__ccgo_up(bp)))[0]) == Int32FromUint8('-')) + **(**int32)(__ccgo_up(sign)) = v1 + i = v1 + j = 0 + for { + if !(Int32FromUint8((**(**[32]uint8)(__ccgo_up(bp)))[i]) != int32('e')) { + break + } + _buf8[j] = (**(**[32]uint8)(__ccgo_up(bp)))[i] + goto _2 + _2: + ; + v1 = i + i = i + 1 + j = j + BoolInt32(Int32FromUint8((**(**[32]uint8)(__ccgo_up(bp)))[v1]) != int32('.')) + } + _buf8[j] = uint8(0) + **(**int32)(__ccgo_up(dp)) = Xatoi(tls, bp+uintptr(i)+uintptr(1)) + int32(1) + return uintptr(unsafe.Pointer(&_buf8)) +} + +var _buf8 [16]uint8 + +func Xfcvt(tls *TLS, x float64, n int32, dp uintptr, sign uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v dp=%v sign=%v, (%v:)", tls, x, n, dp, sign, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(1536) + defer tls.Free(1536) + var i, lz int32 + var _ /* tmp at bp+0 */ [1500]uint8 + _, _ = i, lz + if Uint32FromInt32(n) > uint32(1400) { + n = int32(1400) + } + Xsprintf(tls, bp, __ccgo_ts+1726, VaList(bp+1512, n, x)) + i = BoolInt32(Int32FromUint8((**(**[1500]uint8)(__ccgo_up(bp)))[0]) == int32('-')) + if Int32FromUint8((**(**[1500]uint8)(__ccgo_up(bp)))[i]) == int32('0') { + lz = Int32FromUint64(Xstrspn(tls, bp+uintptr(i)+uintptr(2), __ccgo_ts+1694)) + } else { + lz = -Int32FromUint64(Xstrcspn(tls, bp+uintptr(i), __ccgo_ts+598)) + } + if n <= lz { + **(**int32)(__ccgo_up(sign)) = i + **(**int32)(__ccgo_up(dp)) = int32(1) + if Uint32FromInt32(n) > uint32(14) { + n = int32(14) + } + return __ccgo_ts + 1731 + UintptrFromInt32(14) - uintptr(n) + } + return Xecvt(tls, x, n-lz, dp, sign) +} + +func Xgcvt(tls *TLS, x float64, n int32, b uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v x=%v n=%v b=%v, (%v:)", tls, x, n, b, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + Xsprintf(tls, b, __ccgo_ts+1747, VaList(bp+8, n, x)) + return b +} + +func Ximaxabs(tls *TLS, a Tintmax_t) (r Tintmax_t) { + if __ccgo_strace { + trc("tls=%v a=%v, (%v:)", tls, a, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int64 + _ = v1 + if a > 0 { + v1 = a + } else { + v1 = -a + } + return v1 +} + +func Ximaxdiv(tls *TLS, num Tintmax_t, den Tintmax_t) (r Timaxdiv_t) { + if __ccgo_strace { + trc("tls=%v num=%v den=%v, (%v:)", tls, num, den, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Timaxdiv_t{ + Fquot: num / den, + Frem: num % den, + } +} + +func Xlabs(tls *TLS, a int64) (r int64) { + if __ccgo_strace { + trc("tls=%v a=%v, (%v:)", tls, a, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int64 + _ = v1 + if a > 0 { + v1 = a + } else { + v1 = -a + } + return v1 +} + +func Xldiv(tls *TLS, num int64, den int64) (r Tldiv_t) { + if __ccgo_strace { + trc("tls=%v num=%v den=%v, (%v:)", tls, num, den, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Tldiv_t{ + Fquot: num / den, + Frem: num % den, + } +} + +func Xllabs(tls *TLS, a int64) (r int64) { + if __ccgo_strace { + trc("tls=%v a=%v, (%v:)", tls, a, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int64 + _ = v1 + if a > 0 { + v1 = a + } else { + v1 = -a + } + return v1 +} + +func Xlldiv(tls *TLS, num int64, den int64) (r Tlldiv_t) { + if __ccgo_strace { + trc("tls=%v num=%v den=%v, (%v:)", tls, num, den, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Tlldiv_t{ + Fquot: num / den, + Frem: num % den, + } +} + +type Tcmpfun = uintptr + +func _pntz(tls *TLS, p uintptr) (r1 int32) { + var r, v2, v4, v6 int32 + var v1, v5 uint64 + var v8 bool + _, _, _, _, _, _, _ = r, v1, v2, v4, v5, v6, v8 + v1 = **(**Tsize_t)(__ccgo_up(p)) - uint64(1) + v2 = _a_ctz_64(tls, v1) + goto _3 +_3: + r = v2 + if v8 = r != 0; !v8 { + v5 = **(**Tsize_t)(__ccgo_up(p + 1*8)) + v6 = _a_ctz_64(tls, v5) + goto _7 + _7: + v4 = Int32FromUint64(Uint64FromInt32(8)*Uint64FromInt64(8) + Uint64FromInt32(v6)) + r = v4 + } + if v8 || Uint64FromInt32(v4) != Uint64FromInt32(8)*Uint64FromInt64(8) { + return r + } + return 0 +} + +func _cycle(tls *TLS, width Tsize_t, ar uintptr, n int32) { + bp := tls.Alloc(256) + defer tls.Free(256) + var i int32 + var l Tsize_t + var v1 uint64 + var _ /* tmp at bp+0 */ [256]uint8 + _, _, _ = i, l, v1 + if n < int32(2) { + return + } + **(**uintptr)(__ccgo_up(ar + uintptr(n)*8)) = bp + for width != 0 { + if uint64(256) < width { + v1 = uint64(256) + } else { + v1 = width + } + l = v1 + Xmemcpy(tls, **(**uintptr)(__ccgo_up(ar + uintptr(n)*8)), **(**uintptr)(__ccgo_up(ar)), l) + i = 0 + for { + if !(i < n) { + break + } + Xmemcpy(tls, **(**uintptr)(__ccgo_up(ar + uintptr(i)*8)), **(**uintptr)(__ccgo_up(ar + uintptr(i+int32(1))*8)), l) + **(**uintptr)(__ccgo_up(ar + uintptr(i)*8)) += uintptr(l) + goto _2 + _2: + ; + i = i + 1 + } + width = width - l + } +} + +// C documentation +// +// /* shl() and shr() need n > 0 */ +func _shl(tls *TLS, p uintptr, n int32) { + if Uint64FromInt32(n) >= Uint64FromInt32(8)*Uint64FromInt64(8) { + n = Int32FromUint64(uint64(n) - Uint64FromInt32(8)*Uint64FromInt64(8)) + **(**Tsize_t)(__ccgo_up(p + 1*8)) = **(**Tsize_t)(__ccgo_up(p)) + **(**Tsize_t)(__ccgo_up(p)) = uint64(0) + } + **(**Tsize_t)(__ccgo_up(p + 1*8)) <<= Uint64FromInt32(n) + **(**Tsize_t)(__ccgo_up(p + 1*8)) |= **(**Tsize_t)(__ccgo_up(p)) >> (Uint64FromInt64(8)*Uint64FromInt32(8) - Uint64FromInt32(n)) + **(**Tsize_t)(__ccgo_up(p)) <<= Uint64FromInt32(n) +} + +func _shr(tls *TLS, p uintptr, n int32) { + if Uint64FromInt32(n) >= Uint64FromInt32(8)*Uint64FromInt64(8) { + n = Int32FromUint64(uint64(n) - Uint64FromInt32(8)*Uint64FromInt64(8)) + **(**Tsize_t)(__ccgo_up(p)) = **(**Tsize_t)(__ccgo_up(p + 1*8)) + **(**Tsize_t)(__ccgo_up(p + 1*8)) = uint64(0) + } + **(**Tsize_t)(__ccgo_up(p)) >>= Uint64FromInt32(n) + **(**Tsize_t)(__ccgo_up(p)) |= **(**Tsize_t)(__ccgo_up(p + 1*8)) << (Uint64FromInt64(8)*Uint64FromInt32(8) - Uint64FromInt32(n)) + **(**Tsize_t)(__ccgo_up(p + 1*8)) >>= Uint64FromInt32(n) +} + +func _sift(tls *TLS, head uintptr, width Tsize_t, __ccgo_fp_cmp Tcmpfun, arg uintptr, pshift int32, lp uintptr) { + bp := tls.Alloc(912) + defer tls.Free(912) + var i, v1 int32 + var lf, rt uintptr + var _ /* ar at bp+0 */ [113]uintptr + _, _, _, _ = i, lf, rt, v1 + i = int32(1) + (**(**[113]uintptr)(__ccgo_up(bp)))[0] = head + for pshift > int32(1) { + rt = head - uintptr(width) + lf = head - uintptr(width) - uintptr(**(**Tsize_t)(__ccgo_up(lp + uintptr(pshift-int32(2))*8))) + if (*(*func(*TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cmp})))(tls, (**(**[113]uintptr)(__ccgo_up(bp)))[0], lf, arg) >= 0 && (*(*func(*TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cmp})))(tls, (**(**[113]uintptr)(__ccgo_up(bp)))[0], rt, arg) >= 0 { + break + } + if (*(*func(*TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cmp})))(tls, lf, rt, arg) >= 0 { + v1 = i + i = i + 1 + (**(**[113]uintptr)(__ccgo_up(bp)))[v1] = lf + head = lf + pshift = pshift - int32(1) + } else { + v1 = i + i = i + 1 + (**(**[113]uintptr)(__ccgo_up(bp)))[v1] = rt + head = rt + pshift = pshift - int32(2) + } + } + _cycle(tls, width, bp, i) +} + +func _trinkle(tls *TLS, head uintptr, width Tsize_t, __ccgo_fp_cmp Tcmpfun, arg uintptr, pp uintptr, pshift int32, trusty int32, lp uintptr) { + bp := tls.Alloc(928) + defer tls.Free(928) + var i, trail, v1 int32 + var lf, rt, stepson uintptr + var _ /* ar at bp+16 */ [113]uintptr + var _ /* p at bp+0 */ [2]Tsize_t + _, _, _, _, _, _ = i, lf, rt, stepson, trail, v1 + i = int32(1) + (**(**[2]Tsize_t)(__ccgo_up(bp)))[0] = **(**Tsize_t)(__ccgo_up(pp)) + (**(**[2]Tsize_t)(__ccgo_up(bp)))[int32(1)] = **(**Tsize_t)(__ccgo_up(pp + 1*8)) + (**(**[113]uintptr)(__ccgo_up(bp + 16)))[0] = head + for (**(**[2]Tsize_t)(__ccgo_up(bp)))[0] != uint64(1) || (**(**[2]Tsize_t)(__ccgo_up(bp)))[int32(1)] != uint64(0) { + stepson = head - uintptr(**(**Tsize_t)(__ccgo_up(lp + uintptr(pshift)*8))) + if (*(*func(*TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cmp})))(tls, stepson, (**(**[113]uintptr)(__ccgo_up(bp + 16)))[0], arg) <= 0 { + break + } + if !(trusty != 0) && pshift > int32(1) { + rt = head - uintptr(width) + lf = head - uintptr(width) - uintptr(**(**Tsize_t)(__ccgo_up(lp + uintptr(pshift-int32(2))*8))) + if (*(*func(*TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cmp})))(tls, rt, stepson, arg) >= 0 || (*(*func(*TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{__ccgo_fp_cmp})))(tls, lf, stepson, arg) >= 0 { + break + } + } + v1 = i + i = i + 1 + (**(**[113]uintptr)(__ccgo_up(bp + 16)))[v1] = stepson + head = stepson + trail = _pntz(tls, bp) + _shr(tls, bp, trail) + pshift = pshift + trail + trusty = 0 + } + if !(trusty != 0) { + _cycle(tls, width, bp+16, i) + _sift(tls, head, width, __ccgo_fp_cmp, arg, pshift, lp) + } +} + +type t__ccgo_fp__X__qsort_r_3 = func(*TLS, uintptr, uintptr, uintptr) int32 + +func X__qsort_r(tls *TLS, base uintptr, nel Tsize_t, width Tsize_t, __ccgo_fp_cmp Tcmpfun, arg uintptr) { + if __ccgo_strace { + trc("tls=%v base=%v nel=%v width=%v __ccgo_fp_cmp=%v arg=%v, (%v:)", tls, base, nel, width, __ccgo_fp_cmp, arg, origin(2)) + } + bp := tls.Alloc(784) + defer tls.Free(784) + var head, high uintptr + var i, size, v2, v3 Tsize_t + var pshift, trail int32 + var _ /* lp at bp+0 */ [96]Tsize_t + var _ /* p at bp+768 */ [2]Tsize_t + _, _, _, _, _, _, _, _ = head, high, i, pshift, size, trail, v2, v3 + size = width * nel + **(**[2]Tsize_t)(__ccgo_up(bp + 768)) = [2]Tsize_t{ + 0: uint64(1), + } + pshift = int32(1) + if !(size != 0) { + return + } + head = base + high = head + uintptr(size) - uintptr(width) + /* Precompute Leonardo numbers, scaled by element width */ + v2 = width + (**(**[96]Tsize_t)(__ccgo_up(bp)))[int32(1)] = v2 + (**(**[96]Tsize_t)(__ccgo_up(bp)))[0] = v2 + i = Uint64FromInt32(2) + for { + v3 = (**(**[96]Tsize_t)(__ccgo_up(bp)))[i-uint64(2)] + (**(**[96]Tsize_t)(__ccgo_up(bp)))[i-uint64(1)] + width + (**(**[96]Tsize_t)(__ccgo_up(bp)))[i] = v3 + if !(v3 < size) { + break + } + goto _1 + _1: + ; + i = i + 1 + } + for head < high { + if (**(**[2]Tsize_t)(__ccgo_up(bp + 768)))[0]&uint64(3) == uint64(3) { + _sift(tls, head, width, __ccgo_fp_cmp, arg, pshift, bp) + _shr(tls, bp+768, int32(2)) + pshift = pshift + int32(2) + } else { + if (**(**[96]Tsize_t)(__ccgo_up(bp)))[pshift-int32(1)] >= Uint64FromInt64(int64(high)-int64(head)) { + _trinkle(tls, head, width, __ccgo_fp_cmp, arg, bp+768, pshift, 0, bp) + } else { + _sift(tls, head, width, __ccgo_fp_cmp, arg, pshift, bp) + } + if pshift == int32(1) { + _shl(tls, bp+768, int32(1)) + pshift = 0 + } else { + _shl(tls, bp+768, pshift-int32(1)) + pshift = int32(1) + } + } + **(**Tsize_t)(__ccgo_up(bp + 768)) |= uint64(1) + head = head + uintptr(width) + } + _trinkle(tls, head, width, __ccgo_fp_cmp, arg, bp+768, pshift, 0, bp) + for pshift != int32(1) || (**(**[2]Tsize_t)(__ccgo_up(bp + 768)))[0] != uint64(1) || (**(**[2]Tsize_t)(__ccgo_up(bp + 768)))[int32(1)] != uint64(0) { + if pshift <= int32(1) { + trail = _pntz(tls, bp+768) + _shr(tls, bp+768, trail) + pshift = pshift + trail + } else { + _shl(tls, bp+768, int32(2)) + pshift = pshift - int32(2) + **(**Tsize_t)(__ccgo_up(bp + 768)) ^= uint64(7) + _shr(tls, bp+768, int32(1)) + _trinkle(tls, head-uintptr((**(**[96]Tsize_t)(__ccgo_up(bp)))[pshift])-uintptr(width), width, __ccgo_fp_cmp, arg, bp+768, pshift+int32(1), int32(1), bp) + _shl(tls, bp+768, int32(1)) + **(**Tsize_t)(__ccgo_up(bp + 768)) |= uint64(1) + _trinkle(tls, head-uintptr(width), width, __ccgo_fp_cmp, arg, bp+768, pshift, int32(1), bp) + } + head = head - uintptr(width) + } +} + +type t__ccgo_fp__Xqsort_r_3 = func(*TLS, uintptr, uintptr, uintptr) int32 + +func Xqsort_r(tls *TLS, base uintptr, nel Tsize_t, width Tsize_t, __ccgo_fp_cmp Tcmpfun, arg uintptr) { + if __ccgo_strace { + trc("tls=%v base=%v nel=%v width=%v __ccgo_fp_cmp=%v arg=%v, (%v:)", tls, base, nel, width, __ccgo_fp_cmp, arg, origin(2)) + } + X__qsort_r(tls, base, nel, width, __ccgo_fp_cmp, arg) +} + +func _wrapper_cmp(tls *TLS, v1 uintptr, v2 uintptr, cmp uintptr) (r int32) { + return (*(*func(*TLS, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{cmp})))(tls, v1, v2) +} + +type t__ccgo_fp__Xqsort_3 = func(*TLS, uintptr, uintptr) int32 + +func Xqsort(tls *TLS, base uintptr, nel Tsize_t, width Tsize_t, __ccgo_fp_cmp Tcmpfun) { + if __ccgo_strace { + trc("tls=%v base=%v nel=%v width=%v __ccgo_fp_cmp=%v, (%v:)", tls, base, nel, width, __ccgo_fp_cmp, origin(2)) + } + X__qsort_r(tls, base, nel, width, __ccgo_fp(_wrapper_cmp), __ccgo_fp_cmp) +} + +func _strtox(tls *TLS, s uintptr, p uintptr, prec int32) (r float64) { + bp := tls.Alloc(240) + defer tls.Free(240) + var cnt Toff_t + var y float64 + var v1 uintptr + var _ /* f at bp+0 */ TFILE + _, _, _ = cnt, y, v1 + v1 = s + (*TFILE)(unsafe.Pointer(bp)).Frpos = v1 + (*TFILE)(unsafe.Pointer(bp)).Fbuf = v1 + (*TFILE)(unsafe.Pointer(bp)).Frend = uintptr(-Int32FromInt32(1)) + X__shlim(tls, bp, int64(Int32FromInt32(0))) + y = X__floatscan(tls, bp, prec, int32(1)) + cnt = (*TFILE)(unsafe.Pointer(bp)).Fshcnt + (int64((*TFILE)(unsafe.Pointer(bp)).Frpos) - int64((*TFILE)(unsafe.Pointer(bp)).Fbuf)) + if p != 0 { + if cnt != 0 { + v1 = s + uintptr(cnt) + } else { + v1 = s + } + **(**uintptr)(__ccgo_up(p)) = v1 + } + return y +} + +func Xstrtof(tls *TLS, s uintptr, p uintptr) (r float32) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + return float32(_strtox(tls, s, p, 0)) +} + +func Xstrtod(tls *TLS, s uintptr, p uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _strtox(tls, s, p, int32(1)) +} + +func Xstrtold(tls *TLS, s uintptr, p uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _strtox(tls, s, p, int32(2)) +} + +func _strtox1(tls *TLS, s uintptr, p uintptr, base int32, lim uint64) (r uint64) { + bp := tls.Alloc(240) + defer tls.Free(240) + var cnt Tsize_t + var y uint64 + var v1 uintptr + var _ /* f at bp+0 */ TFILE + _, _, _ = cnt, y, v1 + v1 = s + (*TFILE)(unsafe.Pointer(bp)).Frpos = v1 + (*TFILE)(unsafe.Pointer(bp)).Fbuf = v1 + (*TFILE)(unsafe.Pointer(bp)).Frend = uintptr(-Int32FromInt32(1)) + X__shlim(tls, bp, int64(Int32FromInt32(0))) + y = X__intscan(tls, bp, Uint32FromInt32(base), int32(1), lim) + if p != 0 { + cnt = Uint64FromInt64((*TFILE)(unsafe.Pointer(bp)).Fshcnt + (int64((*TFILE)(unsafe.Pointer(bp)).Frpos) - int64((*TFILE)(unsafe.Pointer(bp)).Fbuf))) + **(**uintptr)(__ccgo_up(p)) = s + uintptr(cnt) + } + return y +} + +func Xstrtoull(tls *TLS, s uintptr, p uintptr, base int32) (r uint64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _strtox1(tls, s, p, base, Uint64FromUint64(2)*Uint64FromInt64(0x7fffffffffffffff)+Uint64FromInt32(1)) +} + +func Xstrtoll(tls *TLS, s uintptr, p uintptr, base int32) (r int64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Int64FromUint64(_strtox1(tls, s, p, base, Uint64FromInt64(-Int64FromInt64(0x7fffffffffffffff)-Int64FromInt32(1)))) +} + +func Xstrtoul(tls *TLS, s uintptr, p uintptr, base int32) (r uint64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _strtox1(tls, s, p, base, uint64(Uint64FromUint64(2)*Uint64FromInt64(0x7fffffffffffffff)+Uint64FromInt32(1))) +} + +func Xstrtol(tls *TLS, s uintptr, p uintptr, base int32) (r int64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Int64FromUint64(_strtox1(tls, s, p, base, uint64(Uint64FromUint64(0)+Uint64FromInt64(-Int64FromInt64(0x7fffffffffffffff)-Int64FromInt32(1))))) +} + +func Xstrtoimax(tls *TLS, s uintptr, p uintptr, base int32) (r Tintmax_t) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtoll(tls, s, p, base) +} + +func Xstrtoumax(tls *TLS, s uintptr, p uintptr, base int32) (r Tuintmax_t) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtoull(tls, s, p, base) +} + +func X__strtoimax_internal(tls *TLS, s uintptr, p uintptr, base int32) (r Tintmax_t) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtoimax(tls, s, p, base) +} + +func X__strtol_internal(tls *TLS, s uintptr, p uintptr, base int32) (r int64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtol(tls, s, p, base) +} + +func X__strtoll_internal(tls *TLS, s uintptr, p uintptr, base int32) (r int64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtoll(tls, s, p, base) +} + +func X__strtoul_internal(tls *TLS, s uintptr, p uintptr, base int32) (r uint64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtoul(tls, s, p, base) +} + +func X__strtoull_internal(tls *TLS, s uintptr, p uintptr, base int32) (r uint64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtoull(tls, s, p, base) +} + +func X__strtoumax_internal(tls *TLS, s uintptr, p uintptr, base int32) (r Tuintmax_t) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrtoumax(tls, s, p, base) +} + +/* This read function heavily cheats. It knows: + * (1) len will always be 1 + * (2) non-ascii characters don't matter */ + +func _do_read(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + var i Tsize_t + var wcs, v3, v4 uintptr + var v2 int32 + _, _, _, _, _ = i, wcs, v2, v3, v4 + wcs = (*TFILE)(unsafe.Pointer(f)).Fcookie + if !(**(**Twchar_t)(__ccgo_up(wcs)) != 0) { + wcs = __ccgo_ts + 1752 + } + i = uint64(0) + for { + if !(i < (*TFILE)(unsafe.Pointer(f)).Fbuf_size && **(**Twchar_t)(__ccgo_up(wcs + uintptr(i)*4)) != 0) { + break + } + if **(**Twchar_t)(__ccgo_up(wcs + uintptr(i)*4)) < int32(128) { + v2 = **(**Twchar_t)(__ccgo_up(wcs + uintptr(i)*4)) + } else { + v2 = int32('@') + } + **(**uint8)(__ccgo_up((*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr(i))) = Uint8FromInt32(v2) + goto _1 + _1: + ; + i = i + 1 + } + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Frend = (*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr(i) + (*TFILE)(unsafe.Pointer(f)).Fcookie = wcs + uintptr(i)*4 + if i != 0 && len1 != 0 { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + **(**uint8)(__ccgo_up(buf)) = **(**uint8)(__ccgo_up(v3)) + return uint64(1) + } + return uint64(0) +} + +func _wcstox(tls *TLS, s uintptr, p uintptr, prec int32) (r float64) { + bp := tls.Alloc(304) + defer tls.Free(304) + var cnt Tsize_t + var t, v1, v2 uintptr + var y float64 + var _ /* buf at bp+0 */ [64]uint8 + var _ /* f at bp+64 */ TFILE + _, _, _, _, _ = cnt, t, y, v1, v2 + t = s + **(**TFILE)(__ccgo_up(bp + 64)) = TFILE{} + (**(**TFILE)(__ccgo_up(bp + 64))).Fflags = uint32(0) + v2 = bp + UintptrFromInt32(4) + (**(**TFILE)(__ccgo_up(bp + 64))).Fbuf = v2 + v1 = v2 + (**(**TFILE)(__ccgo_up(bp + 64))).Frend = v1 + (**(**TFILE)(__ccgo_up(bp + 64))).Frpos = v1 + (**(**TFILE)(__ccgo_up(bp + 64))).Fbuf_size = Uint64FromInt64(64) - Uint64FromInt32(4) + AtomicStorePInt32(bp+64+140, -int32(1)) + (**(**TFILE)(__ccgo_up(bp + 64))).Fread = __ccgo_fp(_do_read) + for Xiswspace(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(t)))) != 0 { + t += 4 + } + (**(**TFILE)(__ccgo_up(bp + 64))).Fcookie = t + X__shlim(tls, bp+64, int64(Int32FromInt32(0))) + y = X__floatscan(tls, bp+64, prec, int32(1)) + if p != 0 { + cnt = Uint64FromInt64((*TFILE)(unsafe.Pointer(bp+64)).Fshcnt + (int64((*TFILE)(unsafe.Pointer(bp+64)).Frpos) - int64((*TFILE)(unsafe.Pointer(bp+64)).Fbuf))) + if cnt != 0 { + v1 = t + uintptr(cnt)*4 + } else { + v1 = s + } + **(**uintptr)(__ccgo_up(p)) = v1 + } + return y +} + +func Xwcstof(tls *TLS, s uintptr, p uintptr) (r float32) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + return float32(_wcstox(tls, s, p, 0)) +} + +func Xwcstod(tls *TLS, s uintptr, p uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _wcstox(tls, s, p, int32(1)) +} + +func Xwcstold(tls *TLS, s uintptr, p uintptr) (r float64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _wcstox(tls, s, p, int32(2)) +} + +/* This read function heavily cheats. It knows: + * (1) len will always be 1 + * (2) non-ascii characters don't matter */ + +func _do_read1(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) { + var i Tsize_t + var wcs, v3, v4 uintptr + var v2 int32 + _, _, _, _, _ = i, wcs, v2, v3, v4 + wcs = (*TFILE)(unsafe.Pointer(f)).Fcookie + if !(**(**Twchar_t)(__ccgo_up(wcs)) != 0) { + wcs = __ccgo_ts + 1752 + } + i = uint64(0) + for { + if !(i < (*TFILE)(unsafe.Pointer(f)).Fbuf_size && **(**Twchar_t)(__ccgo_up(wcs + uintptr(i)*4)) != 0) { + break + } + if **(**Twchar_t)(__ccgo_up(wcs + uintptr(i)*4)) < int32(128) { + v2 = **(**Twchar_t)(__ccgo_up(wcs + uintptr(i)*4)) + } else { + v2 = int32('@') + } + **(**uint8)(__ccgo_up((*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr(i))) = Uint8FromInt32(v2) + goto _1 + _1: + ; + i = i + 1 + } + (*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Fbuf + (*TFILE)(unsafe.Pointer(f)).Frend = (*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr(i) + (*TFILE)(unsafe.Pointer(f)).Fcookie = wcs + uintptr(i)*4 + if i != 0 && len1 != 0 { + v4 = f + 8 + v3 = *(*uintptr)(unsafe.Pointer(v4)) + *(*uintptr)(unsafe.Pointer(v4)) = *(*uintptr)(unsafe.Pointer(v4)) + 1 + **(**uint8)(__ccgo_up(buf)) = **(**uint8)(__ccgo_up(v3)) + return uint64(1) + } + return uint64(0) +} + +func _wcstox1(tls *TLS, s uintptr, p uintptr, base int32, lim uint64) (r uint64) { + bp := tls.Alloc(304) + defer tls.Free(304) + var cnt Tsize_t + var t, v1, v2 uintptr + var y uint64 + var _ /* buf at bp+0 */ [64]uint8 + var _ /* f at bp+64 */ TFILE + _, _, _, _, _ = cnt, t, y, v1, v2 + t = s + **(**TFILE)(__ccgo_up(bp + 64)) = TFILE{} + (**(**TFILE)(__ccgo_up(bp + 64))).Fflags = uint32(0) + v2 = bp + UintptrFromInt32(4) + (**(**TFILE)(__ccgo_up(bp + 64))).Fbuf = v2 + v1 = v2 + (**(**TFILE)(__ccgo_up(bp + 64))).Frend = v1 + (**(**TFILE)(__ccgo_up(bp + 64))).Frpos = v1 + (**(**TFILE)(__ccgo_up(bp + 64))).Fbuf_size = Uint64FromInt64(64) - Uint64FromInt32(4) + AtomicStorePInt32(bp+64+140, -int32(1)) + (**(**TFILE)(__ccgo_up(bp + 64))).Fread = __ccgo_fp(_do_read1) + for Xiswspace(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(t)))) != 0 { + t += 4 + } + (**(**TFILE)(__ccgo_up(bp + 64))).Fcookie = t + X__shlim(tls, bp+64, int64(Int32FromInt32(0))) + y = X__intscan(tls, bp+64, Uint32FromInt32(base), int32(1), lim) + if p != 0 { + cnt = Uint64FromInt64((*TFILE)(unsafe.Pointer(bp+64)).Fshcnt + (int64((*TFILE)(unsafe.Pointer(bp+64)).Frpos) - int64((*TFILE)(unsafe.Pointer(bp+64)).Fbuf))) + if cnt != 0 { + v1 = t + uintptr(cnt)*4 + } else { + v1 = s + } + **(**uintptr)(__ccgo_up(p)) = v1 + } + return y +} + +func Xwcstoull(tls *TLS, s uintptr, p uintptr, base int32) (r uint64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _wcstox1(tls, s, p, base, Uint64FromUint64(2)*Uint64FromInt64(0x7fffffffffffffff)+Uint64FromInt32(1)) +} + +func Xwcstoll(tls *TLS, s uintptr, p uintptr, base int32) (r int64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Int64FromUint64(_wcstox1(tls, s, p, base, Uint64FromInt64(-Int64FromInt64(0x7fffffffffffffff)-Int64FromInt32(1)))) +} + +func Xwcstoul(tls *TLS, s uintptr, p uintptr, base int32) (r uint64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _wcstox1(tls, s, p, base, uint64(Uint64FromUint64(2)*Uint64FromInt64(0x7fffffffffffffff)+Uint64FromInt32(1))) +} + +func Xwcstol(tls *TLS, s uintptr, p uintptr, base int32) (r int64) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Int64FromUint64(_wcstox1(tls, s, p, base, uint64(Uint64FromUint64(0)+Uint64FromInt64(-Int64FromInt64(0x7fffffffffffffff)-Int64FromInt32(1))))) +} + +func Xwcstoimax(tls *TLS, s uintptr, p uintptr, base int32) (r Tintmax_t) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwcstoll(tls, s, p, base) +} + +func Xwcstoumax(tls *TLS, s uintptr, p uintptr, base int32) (r Tuintmax_t) { + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwcstoull(tls, s, p, base) +} + +func Xbcmp(tls *TLS, s1 uintptr, s2 uintptr, n Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v s1=%v s2=%v n=%v, (%v:)", tls, s1, s2, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xmemcmp(tls, s1, s2, n) +} + +func Xbcopy(tls *TLS, s1 uintptr, s2 uintptr, n Tsize_t) { + if __ccgo_strace { + trc("tls=%v s1=%v s2=%v n=%v, (%v:)", tls, s1, s2, n, origin(2)) + } + Xmemmove(tls, s2, s1, n) +} + +func Xbzero(tls *TLS, s uintptr, n Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v, (%v:)", tls, s, n, origin(2)) + } + Xmemset(tls, s, 0, n) +} + +func Xexplicit_bzero(tls *TLS, d uintptr, n Tsize_t) { + if __ccgo_strace { + trc("tls=%v d=%v n=%v, (%v:)", tls, d, n, origin(2)) + } + d = Xmemset(tls, d, 0, n) +} + +func Xindex(tls *TLS, s uintptr, c int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrchr(tls, s, c) +} + +const ALIGN1 = -1 +const HIGHS = 0 +const ONES = 0 + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xmemccpy(tls *TLS, dest uintptr, src uintptr, c int32, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v c=%v n=%v, (%v:)", tls, dest, src, c, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var d, s, wd, ws uintptr + var k Tsize_t + var v2 uint8 + var v3 bool + _, _, _, _, _, _, _ = d, k, s, wd, ws, v2, v3 + d = dest + s = src + c = Int32FromUint8(Uint8FromInt32(c)) + if uint64(s)&(Uint64FromInt64(8)-Uint64FromInt32(1)) == uint64(d)&(Uint64FromInt64(8)-Uint64FromInt32(1)) { + for { + if v3 = uint64(s)&(Uint64FromInt64(8)-Uint64FromInt32(1)) != 0 && n != 0; v3 { + v2 = **(**uint8)(__ccgo_up(s)) + **(**uint8)(__ccgo_up(d)) = v2 + } + if !(v3 && Int32FromUint8(v2) != c) { + break + } + goto _1 + _1: + ; + n = n - 1 + s = s + 1 + d = d + 1 + } + if uint64(s)&(Uint64FromInt64(8)-Uint64FromInt32(1)) != 0 { + goto tail + } + k = Uint64FromInt32(-Int32FromInt32(1)) / Uint64FromInt32(UCHAR_MAX) * Uint64FromInt32(c) + wd = d + ws = s + for { + if !(n >= uint64(8) && !((**(**uint64)(__ccgo_up(ws))^k-Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)) & ^(**(**uint64)(__ccgo_up(ws))^k) & (Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)*Uint64FromInt32(Int32FromInt32(UCHAR_MAX)/Int32FromInt32(2)+Int32FromInt32(1))) != 0)) { + break + } + **(**uint64)(__ccgo_up(wd)) = **(**uint64)(__ccgo_up(ws)) + goto _4 + _4: + ; + n = n - uint64(8) + ws += 8 + wd += 8 + } + d = wd + s = ws + } + for { + if v3 = n != 0; v3 { + v2 = **(**uint8)(__ccgo_up(s)) + **(**uint8)(__ccgo_up(d)) = v2 + } + if !(v3 && Int32FromUint8(v2) != c) { + break + } + goto _5 + _5: + ; + n = n - 1 + s = s + 1 + d = d + 1 + } + goto tail +tail: + ; + if n != 0 { + return d + uintptr(1) + } + return uintptr(0) +} + +const SS = 0 + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xmemchr(tls *TLS, src uintptr, c int32, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v src=%v c=%v n=%v, (%v:)", tls, src, c, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var k Tsize_t + var s, w, v4 uintptr + _, _, _, _ = k, s, w, v4 + s = src + c = Int32FromUint8(Uint8FromInt32(c)) + for { + if !(uint64(s)&(Uint64FromInt64(8)-Uint64FromInt32(1)) != 0 && n != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(s))) != c) { + break + } + goto _1 + _1: + ; + s = s + 1 + n = n - 1 + } + if n != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(s))) != c { + k = Uint64FromInt32(-Int32FromInt32(1)) / Uint64FromInt32(UCHAR_MAX) * Uint64FromInt32(c) + w = s + for { + if !(n >= Uint64FromInt64(8) && !((**(**uint64)(__ccgo_up(w))^k-Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)) & ^(**(**uint64)(__ccgo_up(w))^k) & (Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)*Uint64FromInt32(Int32FromInt32(UCHAR_MAX)/Int32FromInt32(2)+Int32FromInt32(1))) != 0)) { + break + } + goto _2 + _2: + ; + w += 8 + n = n - Uint64FromInt64(8) + } + s = w + } + for { + if !(n != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(s))) != c) { + break + } + goto _3 + _3: + ; + s = s + 1 + n = n - 1 + } + if n != 0 { + v4 = s + } else { + v4 = uintptr(0) + } + return v4 +} + +func Xmemcmp(tls *TLS, vl uintptr, vr uintptr, n Tsize_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v vl=%v vr=%v n=%v, (%v:)", tls, vl, vr, n, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var l, r uintptr + var v2 int32 + _, _, _ = l, r, v2 + l = vl + r = vr + for { + if !(n != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(l))) == Int32FromUint8(**(**uint8)(__ccgo_up(r)))) { + break + } + goto _1 + _1: + ; + n = n - 1 + l = l + 1 + r = r + 1 + } + if n != 0 { + v2 = Int32FromUint8(**(**uint8)(__ccgo_up(l))) - Int32FromUint8(**(**uint8)(__ccgo_up(r))) + } else { + v2 = 0 + } + return v2 +} + +const LS = 0 +const RS = 0 + +func Xmemcpy(tls *TLS, dest uintptr, src uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v n=%v, (%v:)", tls, dest, src, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var d, s, v2, v3 uintptr + var w, x Tuint32_t + _, _, _, _, _, _ = d, s, w, x, v2, v3 + d = dest + s = src + for { + if !(uint64(s)%uint64(4) != 0 && n != 0) { + break + } + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + goto _1 + _1: + ; + n = n - 1 + } + if uint64(d)%uint64(4) == uint64(0) { + for { + if !(n >= uint64(16)) { + break + } + **(**uint32)(__ccgo_up(d + UintptrFromInt32(0))) = **(**uint32)(__ccgo_up(s + UintptrFromInt32(0))) + **(**uint32)(__ccgo_up(d + UintptrFromInt32(4))) = **(**uint32)(__ccgo_up(s + UintptrFromInt32(4))) + **(**uint32)(__ccgo_up(d + UintptrFromInt32(8))) = **(**uint32)(__ccgo_up(s + UintptrFromInt32(8))) + **(**uint32)(__ccgo_up(d + UintptrFromInt32(12))) = **(**uint32)(__ccgo_up(s + UintptrFromInt32(12))) + goto _4 + _4: + ; + s = s + uintptr(16) + d = d + uintptr(16) + n = n - uint64(16) + } + if n&uint64(8) != 0 { + **(**uint32)(__ccgo_up(d + UintptrFromInt32(0))) = **(**uint32)(__ccgo_up(s + UintptrFromInt32(0))) + **(**uint32)(__ccgo_up(d + UintptrFromInt32(4))) = **(**uint32)(__ccgo_up(s + UintptrFromInt32(4))) + d = d + uintptr(8) + s = s + uintptr(8) + } + if n&uint64(4) != 0 { + **(**uint32)(__ccgo_up(d + UintptrFromInt32(0))) = **(**uint32)(__ccgo_up(s + UintptrFromInt32(0))) + d = d + uintptr(4) + s = s + uintptr(4) + } + if n&uint64(2) != 0 { + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + } + if n&uint64(1) != 0 { + **(**uint8)(__ccgo_up(d)) = **(**uint8)(__ccgo_up(s)) + } + return dest + } + if n >= uint64(32) { + switch uint64(d) % Uint64FromInt32(4) { + case uint64(1): + w = **(**uint32)(__ccgo_up(s)) + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + n = n - uint64(3) + for { + if !(n >= uint64(17)) { + break + } + x = **(**uint32)(__ccgo_up(s + UintptrFromInt32(1))) + **(**uint32)(__ccgo_up(d + UintptrFromInt32(0))) = w<>Int32FromInt32(8) + w = **(**uint32)(__ccgo_up(s + UintptrFromInt32(5))) + **(**uint32)(__ccgo_up(d + UintptrFromInt32(4))) = x<>Int32FromInt32(8) + x = **(**uint32)(__ccgo_up(s + UintptrFromInt32(9))) + **(**uint32)(__ccgo_up(d + UintptrFromInt32(8))) = w<>Int32FromInt32(8) + w = **(**uint32)(__ccgo_up(s + UintptrFromInt32(13))) + **(**uint32)(__ccgo_up(d + UintptrFromInt32(12))) = x<>Int32FromInt32(8) + goto _15 + _15: + ; + s = s + uintptr(16) + d = d + uintptr(16) + n = n - uint64(16) + } + case uint64(2): + w = **(**uint32)(__ccgo_up(s)) + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + n = n - uint64(2) + for { + if !(n >= uint64(18)) { + break + } + x = **(**uint32)(__ccgo_up(s + UintptrFromInt32(2))) + **(**uint32)(__ccgo_up(d + UintptrFromInt32(0))) = w<>Int32FromInt32(16) + w = **(**uint32)(__ccgo_up(s + UintptrFromInt32(6))) + **(**uint32)(__ccgo_up(d + UintptrFromInt32(4))) = x<>Int32FromInt32(16) + x = **(**uint32)(__ccgo_up(s + UintptrFromInt32(10))) + **(**uint32)(__ccgo_up(d + UintptrFromInt32(8))) = w<>Int32FromInt32(16) + w = **(**uint32)(__ccgo_up(s + UintptrFromInt32(14))) + **(**uint32)(__ccgo_up(d + UintptrFromInt32(12))) = x<>Int32FromInt32(16) + goto _20 + _20: + ; + s = s + uintptr(16) + d = d + uintptr(16) + n = n - uint64(16) + } + case uint64(3): + w = **(**uint32)(__ccgo_up(s)) + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + n = n - uint64(1) + for { + if !(n >= uint64(19)) { + break + } + x = **(**uint32)(__ccgo_up(s + UintptrFromInt32(3))) + **(**uint32)(__ccgo_up(d + UintptrFromInt32(0))) = w<>Int32FromInt32(24) + w = **(**uint32)(__ccgo_up(s + UintptrFromInt32(7))) + **(**uint32)(__ccgo_up(d + UintptrFromInt32(4))) = x<>Int32FromInt32(24) + x = **(**uint32)(__ccgo_up(s + UintptrFromInt32(11))) + **(**uint32)(__ccgo_up(d + UintptrFromInt32(8))) = w<>Int32FromInt32(24) + w = **(**uint32)(__ccgo_up(s + UintptrFromInt32(15))) + **(**uint32)(__ccgo_up(d + UintptrFromInt32(12))) = x<>Int32FromInt32(24) + goto _23 + _23: + ; + s = s + uintptr(16) + d = d + uintptr(16) + n = n - uint64(16) + } + break + } + } + if n&uint64(16) != 0 { + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + } + if n&uint64(8) != 0 { + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + } + if n&uint64(4) != 0 { + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + } + if n&uint64(2) != 0 { + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + } + if n&uint64(1) != 0 { + **(**uint8)(__ccgo_up(d)) = **(**uint8)(__ccgo_up(s)) + } + return dest + for { + if !(n != 0) { + break + } + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + goto _84 + _84: + ; + n = n - 1 + } + return dest +} + +func _twobyte_memmem(tls *TLS, h uintptr, k Tsize_t, n uintptr) (r uintptr) { + var hw, nw Tuint16_t + var v2 uintptr + _, _, _ = hw, nw, v2 + nw = Uint16FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(n)))< Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(jp+k)))) { + jp = jp + k + k = uint64(1) + p = jp - ip + } else { + v2 = jp + jp = jp + 1 + ip = v2 + v2 = Uint64FromInt32(1) + p = v2 + k = v2 + } + } + } + ms = ip + p0 = p + /* And with the opposite comparison */ + ip = Uint64FromInt32(-Int32FromInt32(1)) + jp = uint64(0) + v2 = Uint64FromInt32(1) + p = v2 + k = v2 + for jp+k < l { + if Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(ip+k)))) == Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(jp+k)))) { + if k == p { + jp = jp + p + k = uint64(1) + } else { + k = k + 1 + } + } else { + if Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(ip+k)))) < Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(jp+k)))) { + jp = jp + k + k = uint64(1) + p = jp - ip + } else { + v2 = jp + jp = jp + 1 + ip = v2 + v2 = Uint64FromInt32(1) + p = v2 + k = v2 + } + } + } + if ip+uint64(1) > ms+uint64(1) { + ms = ip + } else { + p = p0 + } + /* Periodic needle? */ + if Xmemcmp(tls, n, n+uintptr(p), ms+uint64(1)) != 0 { + mem0 = uint64(0) + if ms > l-ms-uint64(1) { + v8 = ms + } else { + v8 = l - ms - uint64(1) + } + p = v8 + uint64(1) + } else { + mem0 = l - p + } + mem = uint64(0) + /* Search loop */ + for { + /* If remainder of haystack is shorter than needle, done */ + if Uint64FromInt64(int64(z)-int64(h)) < l { + return uintptr(0) + } + /* Check last byte first; advance by shift on mismatch */ + if (**(**[4]Tsize_t)(__ccgo_up(bp)))[uint64(**(**uint8)(__ccgo_up(h + uintptr(l-uint64(1)))))/(Uint64FromInt32(8)*Uint64FromInt64(8))]&(Uint64FromInt32(1)<<(uint64(**(**uint8)(__ccgo_up(h + uintptr(l-uint64(1)))))%(Uint64FromInt32(8)*Uint64FromInt64(8)))) != 0 { + k = l - shift[**(**uint8)(__ccgo_up(h + uintptr(l-uint64(1))))] + if k != 0 { + if k < mem { + k = mem + } + h = h + uintptr(k) + mem = uint64(0) + goto _9 + } + } else { + h = h + uintptr(l) + mem = uint64(0) + goto _9 + } + /* Compare right half */ + if ms+uint64(1) > mem { + v8 = ms + uint64(1) + } else { + v8 = mem + } + k = v8 + for { + if !(k < l && Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(k)))) == Int32FromUint8(**(**uint8)(__ccgo_up(h + uintptr(k))))) { + break + } + goto _10 + _10: + ; + k = k + 1 + } + if k < l { + h = h + uintptr(k-ms) + mem = uint64(0) + goto _9 + } + /* Compare left half */ + k = ms + uint64(1) + for { + if !(k > mem && Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(k-uint64(1))))) == Int32FromUint8(**(**uint8)(__ccgo_up(h + uintptr(k-uint64(1)))))) { + break + } + goto _12 + _12: + ; + k = k - 1 + } + if k <= mem { + return h + } + h = h + uintptr(p) + mem = mem0 + goto _9 + _9: + } + return r +} + +func Xmemmem(tls *TLS, h0 uintptr, k Tsize_t, n0 uintptr, l Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v h0=%v k=%v n0=%v l=%v, (%v:)", tls, h0, k, n0, l, origin(2)) + defer func() { trc("-> %v", r) }() + } + var h, n uintptr + _, _ = h, n + h = h0 + n = n0 + /* Return immediately on empty needle */ + if !(l != 0) { + return h + } + /* Return immediately when needle is longer than haystack */ + if k < l { + return uintptr(0) + } + /* Use faster algorithms for short needles */ + h = Xmemchr(tls, h0, Int32FromUint8(**(**uint8)(__ccgo_up(n))), k) + if !(h != 0) || l == uint64(1) { + return h + } + k = k - Uint64FromInt64(int64(h)-int64(h0)) + if k < l { + return uintptr(0) + } + if l == uint64(2) { + return _twobyte_memmem(tls, h, k, n) + } + if l == uint64(3) { + return _threebyte_memmem(tls, h, k, n) + } + if l == uint64(4) { + return _fourbyte_memmem(tls, h, k, n) + } + return _twoway_memmem(tls, h, h+uintptr(k), n, l) +} + +const WS = 0 + +type TWT = uint64 + +func Xmemmove(tls *TLS, dest uintptr, src uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v n=%v, (%v:)", tls, dest, src, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var d, s, v2, v3 uintptr + var v1 Tsize_t + _, _, _, _, _ = d, s, v1, v2, v3 + d = dest + s = src + if d == s { + return d + } + if uint64(s)-uint64(d)-n <= Uint64FromInt32(-Int32FromInt32(2))*n { + return Xmemcpy(tls, d, s, n) + } + if d < s { + if uint64(s)%Uint64FromInt64(8) == uint64(d)%Uint64FromInt64(8) { + for uint64(d)%Uint64FromInt64(8) != 0 { + v1 = n + n = n - 1 + if !(v1 != 0) { + return dest + } + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + } + for { + if !(n >= Uint64FromInt64(8)) { + break + } + **(**TWT)(__ccgo_up(d)) = **(**TWT)(__ccgo_up(s)) + goto _4 + _4: + ; + n = n - Uint64FromInt64(8) + d = d + uintptr(Uint64FromInt64(8)) + s = s + uintptr(Uint64FromInt64(8)) + } + } + for { + if !(n != 0) { + break + } + v2 = d + d = d + 1 + v3 = s + s = s + 1 + **(**uint8)(__ccgo_up(v2)) = **(**uint8)(__ccgo_up(v3)) + goto _5 + _5: + ; + n = n - 1 + } + } else { + if uint64(s)%Uint64FromInt64(8) == uint64(d)%Uint64FromInt64(8) { + for uint64(d+uintptr(n))%Uint64FromInt64(8) != 0 { + v1 = n + n = n - 1 + if !(v1 != 0) { + return dest + } + **(**uint8)(__ccgo_up(d + uintptr(n))) = **(**uint8)(__ccgo_up(s + uintptr(n))) + } + for n >= Uint64FromInt64(8) { + n = n - Uint64FromInt64(8) + **(**TWT)(__ccgo_up(d + uintptr(n))) = **(**TWT)(__ccgo_up(s + uintptr(n))) + } + } + for n != 0 { + n = n - 1 + **(**uint8)(__ccgo_up(d + uintptr(n))) = **(**uint8)(__ccgo_up(s + uintptr(n))) + } + } + return dest +} + +func Xmempcpy(tls *TLS, dest uintptr, src uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v n=%v, (%v:)", tls, dest, src, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xmemcpy(tls, dest, src, n) + uintptr(n) +} + +func X__memrchr(tls *TLS, m uintptr, c int32, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v m=%v c=%v n=%v, (%v:)", tls, m, c, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var s uintptr + var v1 Tsize_t + _, _ = s, v1 + s = m + c = Int32FromUint8(Uint8FromInt32(c)) + for { + v1 = n + n = n - 1 + if !(v1 != 0) { + break + } + if Int32FromUint8(**(**uint8)(__ccgo_up(s + uintptr(n)))) == c { + return s + uintptr(n) + } + } + return uintptr(0) +} + +func Xmemrchr(tls *TLS, m uintptr, c int32, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v m=%v c=%v n=%v, (%v:)", tls, m, c, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__memrchr(tls, m, c, n) +} + +func Xmemset(tls *TLS, dest uintptr, c int32, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v dest=%v c=%v n=%v, (%v:)", tls, dest, c, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var c32 uint32 + var c64 uint64 + var k Tsize_t + var s uintptr + _, _, _, _ = c32, c64, k, s + s = dest + /* Fill head and tail with minimal branching. Each + * conditional ensures that all the subsequently used + * offsets are well-defined and in the dest region. */ + if !(n != 0) { + return dest + } + **(**uint8)(__ccgo_up(s)) = Uint8FromInt32(c) + **(**uint8)(__ccgo_up(s + uintptr(n-uint64(1)))) = Uint8FromInt32(c) + if n <= uint64(2) { + return dest + } + **(**uint8)(__ccgo_up(s + 1)) = Uint8FromInt32(c) + **(**uint8)(__ccgo_up(s + 2)) = Uint8FromInt32(c) + **(**uint8)(__ccgo_up(s + uintptr(n-uint64(2)))) = Uint8FromInt32(c) + **(**uint8)(__ccgo_up(s + uintptr(n-uint64(3)))) = Uint8FromInt32(c) + if n <= uint64(6) { + return dest + } + **(**uint8)(__ccgo_up(s + 3)) = Uint8FromInt32(c) + **(**uint8)(__ccgo_up(s + uintptr(n-uint64(4)))) = Uint8FromInt32(c) + if n <= uint64(8) { + return dest + } + /* Advance pointer to align it at a 4-byte boundary, + * and truncate n to a multiple of 4. The previous code + * already took care of any head/tail that get cut off + * by the alignment. */ + k = -uint64(s) & uint64(3) + s = s + uintptr(k) + n = n - k + n = n & Uint64FromInt32(-Int32FromInt32(4)) + c32 = Uint32FromInt32(-Int32FromInt32(1)) / Uint32FromInt32(255) * uint32(Uint8FromInt32(c)) + /* In preparation to copy 32 bytes at a time, aligned on + * an 8-byte bounary, fill head/tail up to 28 bytes each. + * As in the initial byte-based head/tail fill, each + * conditional below ensures that the subsequent offsets + * are valid (e.g. !(n<=24) implies n>=28). */ + **(**uint32)(__ccgo_up(s + UintptrFromInt32(0))) = c32 + **(**uint32)(__ccgo_up(s + uintptr(n) - UintptrFromInt32(4))) = c32 + if n <= uint64(8) { + return dest + } + **(**uint32)(__ccgo_up(s + UintptrFromInt32(4))) = c32 + **(**uint32)(__ccgo_up(s + UintptrFromInt32(8))) = c32 + **(**uint32)(__ccgo_up(s + uintptr(n) - UintptrFromInt32(12))) = c32 + **(**uint32)(__ccgo_up(s + uintptr(n) - UintptrFromInt32(8))) = c32 + if n <= uint64(24) { + return dest + } + **(**uint32)(__ccgo_up(s + UintptrFromInt32(12))) = c32 + **(**uint32)(__ccgo_up(s + UintptrFromInt32(16))) = c32 + **(**uint32)(__ccgo_up(s + UintptrFromInt32(20))) = c32 + **(**uint32)(__ccgo_up(s + UintptrFromInt32(24))) = c32 + **(**uint32)(__ccgo_up(s + uintptr(n) - UintptrFromInt32(28))) = c32 + **(**uint32)(__ccgo_up(s + uintptr(n) - UintptrFromInt32(24))) = c32 + **(**uint32)(__ccgo_up(s + uintptr(n) - UintptrFromInt32(20))) = c32 + **(**uint32)(__ccgo_up(s + uintptr(n) - UintptrFromInt32(16))) = c32 + /* Align to a multiple of 8 so we can fill 64 bits at a time, + * and avoid writing the same bytes twice as much as is + * practical without introducing additional branching. */ + k = uint64(24) + uint64(s)&uint64(4) + s = s + uintptr(k) + n = n - k + /* If this loop is reached, 28 tail bytes have already been + * filled, so any remainder when n drops below 32 can be + * safely ignored. */ + c64 = uint64(c32) | uint64(c32)<= uint64(32)) { + break + } + **(**uint64)(__ccgo_up(s + UintptrFromInt32(0))) = c64 + **(**uint64)(__ccgo_up(s + UintptrFromInt32(8))) = c64 + **(**uint64)(__ccgo_up(s + UintptrFromInt32(16))) = c64 + **(**uint64)(__ccgo_up(s + UintptrFromInt32(24))) = c64 + goto _1 + _1: + ; + n = n - uint64(32) + s = s + uintptr(32) + } + return dest +} + +func Xrindex(tls *TLS, s uintptr, c int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrrchr(tls, s, c) +} + +const ALIGN2 = 0 + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func X__stpcpy(tls *TLS, d uintptr, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v, (%v:)", tls, d, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var wd, ws, v4, v5 uintptr + var v2 uint8 + _, _, _, _, _ = wd, ws, v2, v4, v5 + if uint64(s)%Uint64FromInt64(8) == uint64(d)%Uint64FromInt64(8) { + for { + if !(uint64(s)%Uint64FromInt64(8) != 0) { + break + } + v2 = **(**uint8)(__ccgo_up(s)) + **(**uint8)(__ccgo_up(d)) = v2 + if !(v2 != 0) { + return d + } + goto _1 + _1: + ; + s = s + 1 + d = d + 1 + } + wd = d + ws = s + for { + if !!((**(**uint64)(__ccgo_up(ws))-Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)) & ^**(**uint64)(__ccgo_up(ws)) & (Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)*Uint64FromInt32(Int32FromInt32(UCHAR_MAX)/Int32FromInt32(2)+Int32FromInt32(1))) != 0) { + break + } + goto _3 + _3: + ; + v4 = wd + wd += 8 + v5 = ws + ws += 8 + **(**uint64)(__ccgo_up(v4)) = **(**uint64)(__ccgo_up(v5)) + } + d = wd + s = ws + } + for { + v2 = **(**uint8)(__ccgo_up(s)) + **(**uint8)(__ccgo_up(d)) = v2 + if !(v2 != 0) { + break + } + goto _6 + _6: + ; + s = s + 1 + d = d + 1 + } + return d +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xstpcpy(tls *TLS, d uintptr, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v, (%v:)", tls, d, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__stpcpy(tls, d, s) +} + +const ALIGN3 = -1 + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func X__stpncpy(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var wd, ws uintptr + var v2 uint8 + var v3 bool + _, _, _, _ = wd, ws, v2, v3 + if uint64(s)&(Uint64FromInt64(8)-Uint64FromInt32(1)) == uint64(d)&(Uint64FromInt64(8)-Uint64FromInt32(1)) { + for { + if v3 = uint64(s)&(Uint64FromInt64(8)-Uint64FromInt32(1)) != 0 && n != 0; v3 { + v2 = **(**uint8)(__ccgo_up(s)) + **(**uint8)(__ccgo_up(d)) = v2 + } + if !(v3 && v2 != 0) { + break + } + goto _1 + _1: + ; + n = n - 1 + s = s + 1 + d = d + 1 + } + if !(n != 0) || !(**(**uint8)(__ccgo_up(s)) != 0) { + goto tail + } + wd = d + ws = s + for { + if !(n >= uint64(8) && !((**(**uint64)(__ccgo_up(ws))-Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)) & ^**(**uint64)(__ccgo_up(ws)) & (Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)*Uint64FromInt32(Int32FromInt32(UCHAR_MAX)/Int32FromInt32(2)+Int32FromInt32(1))) != 0)) { + break + } + **(**uint64)(__ccgo_up(wd)) = **(**uint64)(__ccgo_up(ws)) + goto _4 + _4: + ; + n = n - uint64(8) + ws += 8 + wd += 8 + } + d = wd + s = ws + } + for { + if v3 = n != 0; v3 { + v2 = **(**uint8)(__ccgo_up(s)) + **(**uint8)(__ccgo_up(d)) = v2 + } + if !(v3 && v2 != 0) { + break + } + goto _5 + _5: + ; + n = n - 1 + s = s + 1 + d = d + 1 + } + goto tail +tail: + ; + Xmemset(tls, d, 0, n) + return d +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xstpncpy(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__stpncpy(tls, d, s, n) +} + +func Xstrcasecmp(tls *TLS, _l uintptr, _r uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v _l=%v _r=%v, (%v:)", tls, _l, _r, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var l, r uintptr + _, _ = l, r + l = _l + r = _r + for { + if !(**(**uint8)(__ccgo_up(l)) != 0 && **(**uint8)(__ccgo_up(r)) != 0 && (Int32FromUint8(**(**uint8)(__ccgo_up(l))) == Int32FromUint8(**(**uint8)(__ccgo_up(r))) || Xtolower(tls, Int32FromUint8(**(**uint8)(__ccgo_up(l)))) == Xtolower(tls, Int32FromUint8(**(**uint8)(__ccgo_up(r)))))) { + break + } + goto _1 + _1: + ; + l = l + 1 + r = r + 1 + } + return Xtolower(tls, Int32FromUint8(**(**uint8)(__ccgo_up(l)))) - Xtolower(tls, Int32FromUint8(**(**uint8)(__ccgo_up(r)))) +} + +func X__strcasecmp_l(tls *TLS, l uintptr, r uintptr, loc Tlocale_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v loc=%v, (%v:)", tls, l, r, loc, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return Xstrcasecmp(tls, l, r) +} + +func Xstrcasecmp_l(tls *TLS, l uintptr, r uintptr, loc Tlocale_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v loc=%v, (%v:)", tls, l, r, loc, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return X__strcasecmp_l(tls, l, r, loc) +} + +func Xstrcasestr(tls *TLS, h uintptr, n uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v h=%v n=%v, (%v:)", tls, h, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l Tsize_t + _ = l + l = _strlen(tls, n) + for { + if !(**(**uint8)(__ccgo_up(h)) != 0) { + break + } + if !(Xstrncasecmp(tls, h, n, l) != 0) { + return h + } + goto _1 + _1: + ; + h = h + 1 + } + return uintptr(0) +} + +func Xstrcat(tls *TLS, dest uintptr, src uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v, (%v:)", tls, dest, src, origin(2)) + defer func() { trc("-> %v", r) }() + } + Xstrcpy(tls, dest+uintptr(_strlen(tls, dest)), src) + return dest +} + +func Xstrchr(tls *TLS, s uintptr, c int32) (r1 uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v1 uintptr + _, _ = r, v1 + r = X__strchrnul(tls, s, c) + if Int32FromUint8(**(**uint8)(__ccgo_up(r))) == Int32FromUint8(Uint8FromInt32(c)) { + v1 = r + } else { + v1 = uintptr(0) + } + return v1 +} + +const ALIGN4 = 0 + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func X__strchrnul(tls *TLS, s uintptr, c int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + var k Tsize_t + var w uintptr + _, _ = k, w + c = Int32FromUint8(Uint8FromInt32(c)) + if !(c != 0) { + return s + uintptr(_strlen(tls, s)) + } + for { + if !(uint64(s)%Uint64FromInt64(8) != 0) { + break + } + if !(**(**uint8)(__ccgo_up(s)) != 0) || Int32FromUint8(**(**uint8)(__ccgo_up(s))) == c { + return s + } + goto _1 + _1: + ; + s = s + 1 + } + k = Uint64FromInt32(-Int32FromInt32(1)) / Uint64FromInt32(UCHAR_MAX) * Uint64FromInt32(c) + w = s + for { + if !(!((**(**uint64)(__ccgo_up(w))-Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)) & ^**(**uint64)(__ccgo_up(w)) & (Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)*Uint64FromInt32(Int32FromInt32(UCHAR_MAX)/Int32FromInt32(2)+Int32FromInt32(1))) != 0) && !((**(**uint64)(__ccgo_up(w))^k-Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)) & ^(**(**uint64)(__ccgo_up(w))^k) & (Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)*Uint64FromInt32(Int32FromInt32(UCHAR_MAX)/Int32FromInt32(2)+Int32FromInt32(1))) != 0)) { + break + } + goto _2 + _2: + ; + w += 8 + } + s = w + for { + if !(**(**uint8)(__ccgo_up(s)) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(s))) != c) { + break + } + goto _3 + _3: + ; + s = s + 1 + } + return s +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xstrchrnul(tls *TLS, s uintptr, c int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__strchrnul(tls, s, c) +} + +func Xstrcmp(tls *TLS, l uintptr, r uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v, (%v:)", tls, l, r, origin(2)) + defer func() { trc("-> %v", r1) }() + } + for { + if !(Int32FromUint8(**(**uint8)(__ccgo_up(l))) == Int32FromUint8(**(**uint8)(__ccgo_up(r))) && **(**uint8)(__ccgo_up(l)) != 0) { + break + } + goto _1 + _1: + ; + l = l + 1 + r = r + 1 + } + return Int32FromUint8(**(**uint8)(__ccgo_up(l))) - Int32FromUint8(**(**uint8)(__ccgo_up(r))) +} + +func Xstrcpy(tls *TLS, dest uintptr, src uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v, (%v:)", tls, dest, src, origin(2)) + defer func() { trc("-> %v", r) }() + } + X__stpcpy(tls, dest, src) + return dest +} + +func Xstrcspn(tls *TLS, s uintptr, c uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var a, v2 uintptr + var v3 bool + var _ /* byteset at bp+0 */ [4]Tsize_t + _, _, _ = a, v2, v3 + a = s + if !(**(**uint8)(__ccgo_up(c)) != 0) || !(**(**uint8)(__ccgo_up(c + 1)) != 0) { + return Uint64FromInt64(int64(X__strchrnul(tls, s, Int32FromUint8(**(**uint8)(__ccgo_up(c))))) - int64(a)) + } + Xmemset(tls, bp, 0, uint64(32)) + for { + if v3 = **(**uint8)(__ccgo_up(c)) != 0; v3 { + v2 = bp + uintptr(uint64(**(**uint8)(__ccgo_up(c)))/(Uint64FromInt32(8)*Uint64FromInt64(8)))*8 + *(*Tsize_t)(unsafe.Pointer(v2)) |= Uint64FromInt32(1) << (uint64(**(**uint8)(__ccgo_up(c))) % (Uint64FromInt32(8) * Uint64FromInt64(8))) + } + if !(v3 && *(*Tsize_t)(unsafe.Pointer(v2)) != 0) { + break + } + goto _1 + _1: + ; + c = c + 1 + } + for { + if !(**(**uint8)(__ccgo_up(s)) != 0 && !((**(**[4]Tsize_t)(__ccgo_up(bp)))[uint64(**(**uint8)(__ccgo_up(s)))/(Uint64FromInt32(8)*Uint64FromInt64(8))]&(Uint64FromInt32(1)<<(uint64(**(**uint8)(__ccgo_up(s)))%(Uint64FromInt32(8)*Uint64FromInt64(8)))) != 0)) { + break + } + goto _4 + _4: + ; + s = s + 1 + } + return Uint64FromInt64(int64(s) - int64(a)) +} + +func Xstrdup(tls *TLS, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var d uintptr + var l Tsize_t + _, _ = d, l + l = _strlen(tls, s) + d = Xmalloc(tls, l+uint64(1)) + if !(d != 0) { + return UintptrFromInt32(0) + } + return Xmemcpy(tls, d, s, l+uint64(1)) +} + +func Xstrerror_r(tls *TLS, err int32, buf uintptr, buflen Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v err=%v buf=%v buflen=%v, (%v:)", tls, err, buf, buflen, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l Tsize_t + var msg uintptr + _, _ = l, msg + msg = Xstrerror(tls, err) + l = _strlen(tls, msg) + if l >= buflen { + if buflen != 0 { + Xmemcpy(tls, buf, msg, buflen-uint64(1)) + **(**uint8)(__ccgo_up(buf + uintptr(buflen-uint64(1)))) = uint8(0) + } + return int32(ERANGE) + } + Xmemcpy(tls, buf, msg, l+uint64(1)) + return 0 +} + +func X__xpg_strerror_r(tls *TLS, err int32, buf uintptr, buflen Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v err=%v buf=%v buflen=%v, (%v:)", tls, err, buf, buflen, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xstrerror_r(tls, err, buf, buflen) +} + +func Xstrlcat(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l Tsize_t + _ = l + l = Xstrnlen(tls, d, n) + if l == n { + return l + _strlen(tls, s) + } + return l + Xstrlcpy(tls, d+uintptr(l), s, n-l) +} + +const ALIGN5 = -1 + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xstrlcpy(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var d0, wd, ws uintptr + var v1 Tsize_t + var v3 uint8 + var v4 bool + _, _, _, _, _, _ = d0, wd, ws, v1, v3, v4 + d0 = d + v1 = n + n = n - 1 + if !(v1 != 0) { + goto finish + } + if uint64(s)&(Uint64FromInt64(8)-Uint64FromInt32(1)) == uint64(d)&(Uint64FromInt64(8)-Uint64FromInt32(1)) { + for { + if v4 = uint64(s)&(Uint64FromInt64(8)-Uint64FromInt32(1)) != 0 && n != 0; v4 { + v3 = **(**uint8)(__ccgo_up(s)) + **(**uint8)(__ccgo_up(d)) = v3 + } + if !(v4 && v3 != 0) { + break + } + goto _2 + _2: + ; + n = n - 1 + s = s + 1 + d = d + 1 + } + if n != 0 && **(**uint8)(__ccgo_up(s)) != 0 { + wd = d + ws = s + for { + if !(n >= uint64(8) && !((**(**uint64)(__ccgo_up(ws))-Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)) & ^**(**uint64)(__ccgo_up(ws)) & (Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)*Uint64FromInt32(Int32FromInt32(UCHAR_MAX)/Int32FromInt32(2)+Int32FromInt32(1))) != 0)) { + break + } + **(**Tsize_t)(__ccgo_up(wd)) = **(**uint64)(__ccgo_up(ws)) + goto _5 + _5: + ; + n = n - uint64(8) + ws += 8 + wd += 8 + } + d = wd + s = ws + } + } + for { + if v4 = n != 0; v4 { + v3 = **(**uint8)(__ccgo_up(s)) + **(**uint8)(__ccgo_up(d)) = v3 + } + if !(v4 && v3 != 0) { + break + } + goto _6 + _6: + ; + n = n - 1 + s = s + 1 + d = d + 1 + } + **(**uint8)(__ccgo_up(d)) = uint8(0) + goto finish +finish: + ; + return Uint64FromInt64(int64(d)-int64(d0)) + _strlen(tls, s) + return r +} + +const ALIGN6 = 0 + +func Xstrncasecmp(tls *TLS, _l uintptr, _r uintptr, n Tsize_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v _l=%v _r=%v n=%v, (%v:)", tls, _l, _r, n, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var l, r uintptr + var v1 Tsize_t + _, _, _ = l, r, v1 + l = _l + r = _r + v1 = n + n = n - 1 + if !(v1 != 0) { + return 0 + } + for { + if !(**(**uint8)(__ccgo_up(l)) != 0 && **(**uint8)(__ccgo_up(r)) != 0 && n != 0 && (Int32FromUint8(**(**uint8)(__ccgo_up(l))) == Int32FromUint8(**(**uint8)(__ccgo_up(r))) || Xtolower(tls, Int32FromUint8(**(**uint8)(__ccgo_up(l)))) == Xtolower(tls, Int32FromUint8(**(**uint8)(__ccgo_up(r)))))) { + break + } + goto _2 + _2: + ; + l = l + 1 + r = r + 1 + n = n - 1 + } + return Xtolower(tls, Int32FromUint8(**(**uint8)(__ccgo_up(l)))) - Xtolower(tls, Int32FromUint8(**(**uint8)(__ccgo_up(r)))) +} + +func X__strncasecmp_l(tls *TLS, l uintptr, r uintptr, n Tsize_t, loc Tlocale_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v n=%v loc=%v, (%v:)", tls, l, r, n, loc, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return Xstrncasecmp(tls, l, r, n) +} + +func Xstrncasecmp_l(tls *TLS, l uintptr, r uintptr, n Tsize_t, loc Tlocale_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v n=%v loc=%v, (%v:)", tls, l, r, n, loc, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return X__strncasecmp_l(tls, l, r, n, loc) +} + +func Xstrncat(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, v1, v2 uintptr + _, _, _ = a, v1, v2 + a = d + d = d + uintptr(_strlen(tls, d)) + for n != 0 && **(**uint8)(__ccgo_up(s)) != 0 { + n = n - 1 + v1 = d + d = d + 1 + v2 = s + s = s + 1 + **(**uint8)(__ccgo_up(v1)) = **(**uint8)(__ccgo_up(v2)) + } + v1 = d + d = d + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(0) + return a +} + +func Xstrncmp(tls *TLS, _l uintptr, _r uintptr, n Tsize_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v _l=%v _r=%v n=%v, (%v:)", tls, _l, _r, n, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var l, r uintptr + var v1 Tsize_t + _, _, _ = l, r, v1 + l = _l + r = _r + v1 = n + n = n - 1 + if !(v1 != 0) { + return 0 + } + for { + if !(**(**uint8)(__ccgo_up(l)) != 0 && **(**uint8)(__ccgo_up(r)) != 0 && n != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(l))) == Int32FromUint8(**(**uint8)(__ccgo_up(r)))) { + break + } + goto _2 + _2: + ; + l = l + 1 + r = r + 1 + n = n - 1 + } + return Int32FromUint8(**(**uint8)(__ccgo_up(l))) - Int32FromUint8(**(**uint8)(__ccgo_up(r))) +} + +func Xstrncpy(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + X__stpncpy(tls, d, s, n) + return d +} + +func Xstrndup(tls *TLS, s uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v, (%v:)", tls, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var d uintptr + var l Tsize_t + _, _ = d, l + l = Xstrnlen(tls, s, n) + d = Xmalloc(tls, l+uint64(1)) + if !(d != 0) { + return UintptrFromInt32(0) + } + Xmemcpy(tls, d, s, l) + **(**uint8)(__ccgo_up(d + uintptr(l))) = uint8(0) + return d +} + +func Xstrnlen(tls *TLS, s uintptr, n Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v, (%v:)", tls, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var p uintptr + var v1 uint64 + _, _ = p, v1 + p = Xmemchr(tls, s, 0, n) + if p != 0 { + v1 = Uint64FromInt64(int64(p) - int64(s)) + } else { + v1 = n + } + return v1 +} + +func Xstrpbrk(tls *TLS, s uintptr, b uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v b=%v, (%v:)", tls, s, b, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 uintptr + _ = v1 + s = s + uintptr(Xstrcspn(tls, s, b)) + if **(**uint8)(__ccgo_up(s)) != 0 { + v1 = s + } else { + v1 = uintptr(0) + } + return v1 +} + +func Xstrrchr(tls *TLS, s uintptr, c int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__memrchr(tls, s, c, _strlen(tls, s)+uint64(1)) +} + +func Xstrsep(tls *TLS, str uintptr, sep uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v str=%v sep=%v, (%v:)", tls, str, sep, origin(2)) + defer func() { trc("-> %v", r) }() + } + var end, s, v1 uintptr + _, _, _ = end, s, v1 + s = **(**uintptr)(__ccgo_up(str)) + if !(s != 0) { + return UintptrFromInt32(0) + } + end = s + uintptr(Xstrcspn(tls, s, sep)) + if **(**uint8)(__ccgo_up(end)) != 0 { + v1 = end + end = end + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(0) + } else { + end = uintptr(0) + } + **(**uintptr)(__ccgo_up(str)) = end + return s +} + +var _strings = [671]uint8{'U', 'n', 'k', 'n', 'o', 'w', 'n', ' ', 's', 'i', 'g', 'n', 'a', 'l', 0, 'H', 'a', 'n', 'g', 'u', 'p', 0, 'I', 'n', 't', 'e', 'r', 'r', 'u', 'p', 't', 0, 'Q', 'u', 'i', 't', 0, 'I', 'l', 'l', 'e', 'g', 'a', 'l', ' ', 'i', 'n', 's', 't', 'r', 'u', 'c', 't', 'i', 'o', 'n', 0, 'T', 'r', 'a', 'c', 'e', '/', 'b', 'r', 'e', 'a', 'k', 'p', 'o', 'i', 'n', 't', ' ', 't', 'r', 'a', 'p', 0, 'A', 'b', 'o', 'r', 't', 'e', 'd', 0, 'B', 'u', 's', ' ', 'e', 'r', 'r', 'o', 'r', 0, 'A', 'r', 'i', 't', 'h', 'm', 'e', 't', 'i', 'c', ' ', 'e', 'x', 'c', 'e', 'p', 't', 'i', 'o', 'n', 0, 'K', 'i', 'l', 'l', 'e', 'd', 0, 'U', 's', 'e', 'r', ' ', 'd', 'e', 'f', 'i', 'n', 'e', 'd', ' ', 's', 'i', 'g', 'n', 'a', 'l', ' ', '1', 0, 'S', 'e', 'g', 'm', 'e', 'n', 't', 'a', 't', 'i', 'o', 'n', ' ', 'f', 'a', 'u', 'l', 't', 0, 'U', 's', 'e', 'r', ' ', 'd', 'e', 'f', 'i', 'n', 'e', 'd', ' ', 's', 'i', 'g', 'n', 'a', 'l', ' ', '2', 0, 'B', 'r', 'o', 'k', 'e', 'n', ' ', 'p', 'i', 'p', 'e', 0, 'A', 'l', 'a', 'r', 'm', ' ', 'c', 'l', 'o', 'c', 'k', 0, 'T', 'e', 'r', 'm', 'i', 'n', 'a', 't', 'e', 'd', 0, 'S', 't', 'a', 'c', 'k', ' ', 'f', 'a', 'u', 'l', 't', 0, 'C', 'h', 'i', 'l', 'd', ' ', 'p', 'r', 'o', 'c', 'e', 's', 's', ' ', 's', 't', 'a', 't', 'u', 's', 0, 'C', 'o', 'n', 't', 'i', 'n', 'u', 'e', 'd', 0, 'S', 't', 'o', 'p', 'p', 'e', 'd', ' ', '(', 's', 'i', 'g', 'n', 'a', 'l', ')', 0, 'S', 't', 'o', 'p', 'p', 'e', 'd', 0, 'S', 't', 'o', 'p', 'p', 'e', 'd', ' ', '(', 't', 't', 'y', ' ', 'i', 'n', 'p', 'u', 't', ')', 0, 'S', 't', 'o', 'p', 'p', 'e', 'd', ' ', '(', 't', 't', 'y', ' ', 'o', 'u', 't', 'p', 'u', 't', ')', 0, 'U', 'r', 'g', 'e', 'n', 't', ' ', 'I', '/', 'O', ' ', 'c', 'o', 'n', 'd', 'i', 't', 'i', 'o', 'n', 0, 'C', 'P', 'U', ' ', 't', 'i', 'm', 'e', ' ', 'l', 'i', 'm', 'i', 't', ' ', 'e', 'x', 'c', 'e', 'e', 'd', 'e', 'd', 0, 'F', 'i', 'l', 'e', ' ', 's', 'i', 'z', 'e', ' ', 'l', 'i', 'm', 'i', 't', ' ', 'e', 'x', 'c', 'e', 'e', 'd', 'e', 'd', 0, 'V', 'i', 'r', 't', 'u', 'a', 'l', ' ', 't', 'i', 'm', 'e', 'r', ' ', 'e', 'x', 'p', 'i', 'r', 'e', 'd', 0, 'P', 'r', 'o', 'f', 'i', 'l', 'i', 'n', 'g', ' ', 't', 'i', 'm', 'e', 'r', ' ', 'e', 'x', 'p', 'i', 'r', 'e', 'd', 0, 'W', 'i', 'n', 'd', 'o', 'w', ' ', 'c', 'h', 'a', 'n', 'g', 'e', 'd', 0, 'I', '/', 'O', ' ', 'p', 'o', 's', 's', 'i', 'b', 'l', 'e', 0, 'P', 'o', 'w', 'e', 'r', ' ', 'f', 'a', 'i', 'l', 'u', 'r', 'e', 0, 'B', 'a', 'd', ' ', 's', 'y', 's', 't', 'e', 'm', ' ', 'c', 'a', 'l', 'l', 0, 'R', 'T', '3', '2', 0, 'R', 'T', '3', '3', 0, 'R', 'T', '3', '4', 0, 'R', 'T', '3', '5', 0, 'R', 'T', '3', '6', 0, 'R', 'T', '3', '7', 0, 'R', 'T', '3', '8', 0, 'R', 'T', '3', '9', 0, 'R', 'T', '4', '0', 0, 'R', 'T', '4', '1', 0, 'R', 'T', '4', '2', 0, 'R', 'T', '4', '3', 0, 'R', 'T', '4', '4', 0, 'R', 'T', '4', '5', 0, 'R', 'T', '4', '6', 0, 'R', 'T', '4', '7', 0, 'R', 'T', '4', '8', 0, 'R', 'T', '4', '9', 0, 'R', 'T', '5', '0', 0, 'R', 'T', '5', '1', 0, 'R', 'T', '5', '2', 0, 'R', 'T', '5', '3', 0, 'R', 'T', '5', '4', 0, 'R', 'T', '5', '5', 0, 'R', 'T', '5', '6', 0, 'R', 'T', '5', '7', 0, 'R', 'T', '5', '8', 0, 'R', 'T', '5', '9', 0, 'R', 'T', '6', '0', 0, 'R', 'T', '6', '1', 0, 'R', 'T', '6', '2', 0, 'R', 'T', '6', '3', 0, 'R', 'T', '6', '4'} + +func Xstrsignal(tls *TLS, signum int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v signum=%v, (%v:)", tls, signum, origin(2)) + defer func() { trc("-> %v", r) }() + } + var s uintptr + var v2 int32 + _, _ = s, v2 + s = uintptr(unsafe.Pointer(&_strings)) + signum = signum + if Uint32FromInt32(signum)-uint32(1) >= Uint32FromInt32(Int32FromInt32(_NSIG)-Int32FromInt32(1)) { + signum = 0 + } + for { + v2 = signum + signum = signum - 1 + if !(v2 != 0) { + break + } + for { + if !(**(**uint8)(__ccgo_up(s)) != 0) { + break + } + goto _3 + _3: + ; + s = s + 1 + } + goto _1 + _1: + ; + s = s + 1 + } + return X__lctrans_cur(tls, s) +} + +func Xstrspn(tls *TLS, s uintptr, c uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var a, v3 uintptr + var v4 bool + var _ /* byteset at bp+0 */ [4]Tsize_t + _, _, _ = a, v3, v4 + a = s + **(**[4]Tsize_t)(__ccgo_up(bp)) = [4]Tsize_t{} + if !(**(**uint8)(__ccgo_up(c)) != 0) { + return uint64(0) + } + if !(**(**uint8)(__ccgo_up(c + 1)) != 0) { + for { + if !(Int32FromUint8(**(**uint8)(__ccgo_up(s))) == Int32FromUint8(**(**uint8)(__ccgo_up(c)))) { + break + } + goto _1 + _1: + ; + s = s + 1 + } + return Uint64FromInt64(int64(s) - int64(a)) + } + for { + if v4 = **(**uint8)(__ccgo_up(c)) != 0; v4 { + v3 = bp + uintptr(uint64(**(**uint8)(__ccgo_up(c)))/(Uint64FromInt32(8)*Uint64FromInt64(8)))*8 + *(*Tsize_t)(unsafe.Pointer(v3)) |= Uint64FromInt32(1) << (uint64(**(**uint8)(__ccgo_up(c))) % (Uint64FromInt32(8) * Uint64FromInt64(8))) + } + if !(v4 && *(*Tsize_t)(unsafe.Pointer(v3)) != 0) { + break + } + goto _2 + _2: + ; + c = c + 1 + } + for { + if !(**(**uint8)(__ccgo_up(s)) != 0 && (**(**[4]Tsize_t)(__ccgo_up(bp)))[uint64(**(**uint8)(__ccgo_up(s)))/(Uint64FromInt32(8)*Uint64FromInt64(8))]&(Uint64FromInt32(1)<<(uint64(**(**uint8)(__ccgo_up(s)))%(Uint64FromInt32(8)*Uint64FromInt64(8)))) != 0) { + break + } + goto _5 + _5: + ; + s = s + 1 + } + return Uint64FromInt64(int64(s) - int64(a)) +} + +func _twobyte_strstr(tls *TLS, h uintptr, n uintptr) (r uintptr) { + var hw, nw Tuint16_t + var v2 uintptr + _, _, _ = hw, nw, v2 + nw = Uint16FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(n)))< Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(jp+k)))) { + jp = jp + k + k = uint64(1) + p = jp - ip + } else { + v2 = jp + jp = jp + 1 + ip = v2 + v2 = Uint64FromInt32(1) + p = v2 + k = v2 + } + } + } + ms = ip + p0 = p + /* And with the opposite comparison */ + ip = Uint64FromInt32(-Int32FromInt32(1)) + jp = uint64(0) + v2 = Uint64FromInt32(1) + p = v2 + k = v2 + for jp+k < l { + if Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(ip+k)))) == Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(jp+k)))) { + if k == p { + jp = jp + p + k = uint64(1) + } else { + k = k + 1 + } + } else { + if Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(ip+k)))) < Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(jp+k)))) { + jp = jp + k + k = uint64(1) + p = jp - ip + } else { + v2 = jp + jp = jp + 1 + ip = v2 + v2 = Uint64FromInt32(1) + p = v2 + k = v2 + } + } + } + if ip+uint64(1) > ms+uint64(1) { + ms = ip + } else { + p = p0 + } + /* Periodic needle? */ + if Xmemcmp(tls, n, n+uintptr(p), ms+uint64(1)) != 0 { + mem0 = uint64(0) + if ms > l-ms-uint64(1) { + v8 = ms + } else { + v8 = l - ms - uint64(1) + } + p = v8 + uint64(1) + } else { + mem0 = l - p + } + mem = uint64(0) + /* Initialize incremental end-of-haystack pointer */ + z = h + /* Search loop */ + for { + /* Update incremental end-of-haystack pointer */ + if Uint64FromInt64(int64(z)-int64(h)) < l { + /* Fast estimate for MAX(l,63) */ + grow = l | uint64(63) + z2 = Xmemchr(tls, z, 0, grow) + if z2 != 0 { + z = z2 + if Uint64FromInt64(int64(z)-int64(h)) < l { + return uintptr(0) + } + } else { + z = z + uintptr(grow) + } + } + /* Check last byte first; advance by shift on mismatch */ + if (**(**[4]Tsize_t)(__ccgo_up(bp)))[uint64(**(**uint8)(__ccgo_up(h + uintptr(l-uint64(1)))))/(Uint64FromInt32(8)*Uint64FromInt64(8))]&(Uint64FromInt32(1)<<(uint64(**(**uint8)(__ccgo_up(h + uintptr(l-uint64(1)))))%(Uint64FromInt32(8)*Uint64FromInt64(8)))) != 0 { + k = l - shift[**(**uint8)(__ccgo_up(h + uintptr(l-uint64(1))))] + if k != 0 { + if k < mem { + k = mem + } + h = h + uintptr(k) + mem = uint64(0) + goto _9 + } + } else { + h = h + uintptr(l) + mem = uint64(0) + goto _9 + } + /* Compare right half */ + if ms+uint64(1) > mem { + v8 = ms + uint64(1) + } else { + v8 = mem + } + k = v8 + for { + if !(**(**uint8)(__ccgo_up(n + uintptr(k))) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(k)))) == Int32FromUint8(**(**uint8)(__ccgo_up(h + uintptr(k))))) { + break + } + goto _10 + _10: + ; + k = k + 1 + } + if **(**uint8)(__ccgo_up(n + uintptr(k))) != 0 { + h = h + uintptr(k-ms) + mem = uint64(0) + goto _9 + } + /* Compare left half */ + k = ms + uint64(1) + for { + if !(k > mem && Int32FromUint8(**(**uint8)(__ccgo_up(n + uintptr(k-uint64(1))))) == Int32FromUint8(**(**uint8)(__ccgo_up(h + uintptr(k-uint64(1)))))) { + break + } + goto _12 + _12: + ; + k = k - 1 + } + if k <= mem { + return h + } + h = h + uintptr(p) + mem = mem0 + goto _9 + _9: + } + return r +} + +func Xstrstr(tls *TLS, h uintptr, n uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v h=%v n=%v, (%v:)", tls, h, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + /* Return immediately on empty needle */ + if !(**(**uint8)(__ccgo_up(n)) != 0) { + return h + } + /* Use faster algorithms for short needles */ + h = Xstrchr(tls, h, Int32FromUint8(**(**uint8)(__ccgo_up(n)))) + if !(h != 0) || !(**(**uint8)(__ccgo_up(n + 1)) != 0) { + return h + } + if !(**(**uint8)(__ccgo_up(h + 1)) != 0) { + return uintptr(0) + } + if !(**(**uint8)(__ccgo_up(n + 2)) != 0) { + return _twobyte_strstr(tls, h, n) + } + if !(**(**uint8)(__ccgo_up(h + 2)) != 0) { + return uintptr(0) + } + if !(**(**uint8)(__ccgo_up(n + 3)) != 0) { + return _threebyte_strstr(tls, h, n) + } + if !(**(**uint8)(__ccgo_up(h + 3)) != 0) { + return uintptr(0) + } + if !(**(**uint8)(__ccgo_up(n + 4)) != 0) { + return _fourbyte_strstr(tls, h, n) + } + return _twoway_strstr(tls, h, n) +} + +func Xstrtok(tls *TLS, s uintptr, sep uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v sep=%v, (%v:)", tls, s, sep, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 uintptr + var v2 bool + _, _ = v1, v2 + if v2 = !(s != 0); v2 { + v1 = _p2 + s = v1 + } + if v2 && !(v1 != 0) { + return UintptrFromInt32(0) + } + s = s + uintptr(Xstrspn(tls, s, sep)) + if !(**(**uint8)(__ccgo_up(s)) != 0) { + v1 = UintptrFromInt32(0) + _p2 = v1 + return v1 + } + _p2 = s + uintptr(Xstrcspn(tls, s, sep)) + if **(**uint8)(__ccgo_up(_p2)) != 0 { + v1 = _p2 + _p2 = _p2 + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(0) + } else { + _p2 = uintptr(0) + } + return s +} + +var _p2 uintptr + +func Xstrtok_r(tls *TLS, s uintptr, sep uintptr, p uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v sep=%v p=%v, (%v:)", tls, s, sep, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1, v3 uintptr + var v2 bool + _, _, _ = v1, v2, v3 + if v2 = !(s != 0); v2 { + v1 = **(**uintptr)(__ccgo_up(p)) + s = v1 + } + if v2 && !(v1 != 0) { + return UintptrFromInt32(0) + } + s = s + uintptr(Xstrspn(tls, s, sep)) + if !(**(**uint8)(__ccgo_up(s)) != 0) { + v1 = UintptrFromInt32(0) + **(**uintptr)(__ccgo_up(p)) = v1 + return v1 + } + **(**uintptr)(__ccgo_up(p)) = s + uintptr(Xstrcspn(tls, s, sep)) + if **(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(p)))) != 0 { + v3 = p + v1 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) = *(*uintptr)(unsafe.Pointer(v3)) + 1 + **(**uint8)(__ccgo_up(v1)) = uint8(0) + } else { + **(**uintptr)(__ccgo_up(p)) = uintptr(0) + } + return s +} + +func Xstrverscmp(tls *TLS, l0 uintptr, r0 uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l0=%v r0=%v, (%v:)", tls, l0, r0, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var c, z int32 + var dp, i, j, v2 Tsize_t + var l, r uintptr + _, _, _, _, _, _, _, _ = c, dp, i, j, l, r, z, v2 + l = l0 + r = r0 + z = int32(1) + /* Find maximal matching prefix and track its maximal digit + * suffix and whether those digits are all zeros. */ + v2 = Uint64FromInt32(0) + i = v2 + dp = v2 + for { + if !(Int32FromUint8(**(**uint8)(__ccgo_up(l + uintptr(i)))) == Int32FromUint8(**(**uint8)(__ccgo_up(r + uintptr(i))))) { + break + } + c = Int32FromUint8(**(**uint8)(__ccgo_up(l + uintptr(i)))) + if !(c != 0) { + return 0 + } + if !(BoolInt32(Uint32FromInt32(c)-Uint32FromUint8('0') < Uint32FromInt32(10)) != 0) { + dp = i + uint64(1) + z = Int32FromInt32(1) + } else { + if c != int32('0') { + z = 0 + } + } + goto _1 + _1: + ; + i = i + 1 + } + if Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(l + uintptr(dp))))-int32('1')) < uint32(9) && Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(r + uintptr(dp))))-int32('1')) < uint32(9) { + /* If we're looking at non-degenerate digit sequences starting + * with nonzero digits, longest digit string is greater. */ + j = i + for { + if !(BoolInt32(uint32(**(**uint8)(__ccgo_up(l + uintptr(j))))-uint32('0') < uint32(10)) != 0) { + break + } + if !(BoolInt32(uint32(**(**uint8)(__ccgo_up(r + uintptr(j))))-Uint32FromUint8('0') < Uint32FromInt32(10)) != 0) { + return int32(1) + } + goto _3 + _3: + ; + j = j + 1 + } + if BoolInt32(uint32(**(**uint8)(__ccgo_up(r + uintptr(j))))-uint32('0') < uint32(10)) != 0 { + return -int32(1) + } + } else { + if z != 0 && dp < i && (BoolInt32(uint32(**(**uint8)(__ccgo_up(l + uintptr(i))))-uint32('0') < uint32(10)) != 0 || BoolInt32(uint32(**(**uint8)(__ccgo_up(r + uintptr(i))))-uint32('0') < uint32(10)) != 0) { + /* Otherwise, if common prefix of digit sequence is + * all zeros, digits order less than non-digits. */ + return Int32FromUint8(Uint8FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(l + uintptr(i))))-Int32FromUint8('0'))) - Int32FromUint8(Uint8FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(r + uintptr(i))))-Int32FromUint8('0'))) + } + } + return Int32FromUint8(**(**uint8)(__ccgo_up(l + uintptr(i)))) - Int32FromUint8(**(**uint8)(__ccgo_up(r + uintptr(i)))) +} + +func Xswab(tls *TLS, _src uintptr, _dest uintptr, n Tssize_t) { + if __ccgo_strace { + trc("tls=%v _src=%v _dest=%v n=%v, (%v:)", tls, _src, _dest, n, origin(2)) + } + var dest, src uintptr + _, _ = dest, src + src = _src + dest = _dest + for { + if !(n > int64(1)) { + break + } + **(**uint8)(__ccgo_up(dest)) = **(**uint8)(__ccgo_up(src + 1)) + **(**uint8)(__ccgo_up(dest + 1)) = **(**uint8)(__ccgo_up(src)) + dest = dest + uintptr(2) + src = src + uintptr(2) + goto _1 + _1: + ; + n = n - int64(2) + } +} + +func Xwcpcpy(tls *TLS, d uintptr, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v, (%v:)", tls, d, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwcscpy(tls, d, s) + uintptr(Xwcslen(tls, s))*4 +} + +func Xwcpncpy(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwcsncpy(tls, d, s, n) + uintptr(Xwcsnlen(tls, s, n))*4 +} + +func Xwcscasecmp(tls *TLS, l uintptr, r uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v, (%v:)", tls, l, r, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return Xwcsncasecmp(tls, l, r, Uint64FromInt32(-Int32FromInt32(1))) +} + +func Xwcscasecmp_l(tls *TLS, l uintptr, r uintptr, locale Tlocale_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v locale=%v, (%v:)", tls, l, r, locale, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return Xwcscasecmp(tls, l, r) +} + +func Xwcscat(tls *TLS, dest uintptr, src uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v dest=%v src=%v, (%v:)", tls, dest, src, origin(2)) + defer func() { trc("-> %v", r) }() + } + Xwcscpy(tls, dest+uintptr(Xwcslen(tls, dest))*4, src) + return dest +} + +func Xwcschr(tls *TLS, s uintptr, c Twchar_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v2 uintptr + _ = v2 + if !(c != 0) { + return s + uintptr(Xwcslen(tls, s))*4 + } + for { + if !(**(**Twchar_t)(__ccgo_up(s)) != 0 && **(**Twchar_t)(__ccgo_up(s)) != c) { + break + } + goto _1 + _1: + ; + s += 4 + } + if **(**Twchar_t)(__ccgo_up(s)) != 0 { + v2 = s + } else { + v2 = uintptr(0) + } + return v2 +} + +func Xwcscmp(tls *TLS, l uintptr, r uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v, (%v:)", tls, l, r, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var v2 int32 + _ = v2 + for { + if !(**(**Twchar_t)(__ccgo_up(l)) == **(**Twchar_t)(__ccgo_up(r)) && **(**Twchar_t)(__ccgo_up(l)) != 0 && **(**Twchar_t)(__ccgo_up(r)) != 0) { + break + } + goto _1 + _1: + ; + l += 4 + r += 4 + } + if **(**Twchar_t)(__ccgo_up(l)) < **(**Twchar_t)(__ccgo_up(r)) { + v2 = -int32(1) + } else { + v2 = BoolInt32(**(**Twchar_t)(__ccgo_up(l)) > **(**Twchar_t)(__ccgo_up(r))) + } + return v2 +} + +func Xwcscpy(tls *TLS, d uintptr, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v, (%v:)", tls, d, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, v2, v3 uintptr + var v1 Twchar_t + _, _, _, _ = a, v1, v2, v3 + a = d + for { + v2 = s + s += 4 + v1 = **(**Twchar_t)(__ccgo_up(v2)) + v3 = d + d += 4 + **(**Twchar_t)(__ccgo_up(v3)) = v1 + if !(v1 != 0) { + break + } + } + return a +} + +func Xwcscspn(tls *TLS, s uintptr, c uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, v2, v3 uintptr + var v1 uint64 + _, _, _, _ = a, v1, v2, v3 + if !(**(**Twchar_t)(__ccgo_up(c)) != 0) { + return Xwcslen(tls, s) + } + if !(**(**Twchar_t)(__ccgo_up(c + 1*4)) != 0) { + v3 = s + a = v3 + v2 = Xwcschr(tls, v3, **(**Twchar_t)(__ccgo_up(c))) + s = v2 + if v2 != 0 { + v1 = Uint64FromInt64((int64(s) - int64(a)) / 4) + } else { + v1 = Xwcslen(tls, a) + } + return v1 + } + a = s + for { + if !(**(**Twchar_t)(__ccgo_up(s)) != 0 && !(Xwcschr(tls, c, **(**Twchar_t)(__ccgo_up(s))) != 0)) { + break + } + goto _4 + _4: + ; + s += 4 + } + return Uint64FromInt64((int64(s) - int64(a)) / 4) +} + +func Xwcsdup(tls *TLS, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var d uintptr + var l Tsize_t + _, _ = d, l + l = Xwcslen(tls, s) + d = Xmalloc(tls, (l+uint64(1))*uint64(4)) + if !(d != 0) { + return UintptrFromInt32(0) + } + return Xwmemcpy(tls, d, s, l+uint64(1)) +} + +func Xwcslen(tls *TLS, s uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a uintptr + _ = a + a = s + for { + if !(**(**Twchar_t)(__ccgo_up(s)) != 0) { + break + } + goto _1 + _1: + ; + s += 4 + } + return Uint64FromInt64((int64(s) - int64(a)) / 4) +} + +func Xwcsncasecmp(tls *TLS, l uintptr, r uintptr, n Tsize_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v n=%v, (%v:)", tls, l, r, n, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var v1 Tsize_t + _ = v1 + v1 = n + n = n - 1 + if !(v1 != 0) { + return 0 + } + for { + if !(**(**Twchar_t)(__ccgo_up(l)) != 0 && **(**Twchar_t)(__ccgo_up(r)) != 0 && n != 0 && (**(**Twchar_t)(__ccgo_up(l)) == **(**Twchar_t)(__ccgo_up(r)) || Xtowlower(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(l)))) == Xtowlower(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(r)))))) { + break + } + goto _2 + _2: + ; + l += 4 + r += 4 + n = n - 1 + } + return Int32FromUint32(Xtowlower(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(l)))) - Xtowlower(tls, Uint32FromInt32(**(**Twchar_t)(__ccgo_up(r))))) +} + +func Xwcsncasecmp_l(tls *TLS, l uintptr, r uintptr, n Tsize_t, locale Tlocale_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v n=%v locale=%v, (%v:)", tls, l, r, n, locale, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return Xwcsncasecmp(tls, l, r, n) +} + +func Xwcsncat(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, v1, v2 uintptr + _, _, _ = a, v1, v2 + a = d + d = d + uintptr(Xwcslen(tls, d))*4 + for n != 0 && **(**Twchar_t)(__ccgo_up(s)) != 0 { + n = n - 1 + v1 = d + d += 4 + v2 = s + s += 4 + **(**Twchar_t)(__ccgo_up(v1)) = **(**Twchar_t)(__ccgo_up(v2)) + } + v1 = d + d += 4 + **(**Twchar_t)(__ccgo_up(v1)) = 0 + return a +} + +func Xwcsncmp(tls *TLS, l uintptr, r uintptr, n Tsize_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v n=%v, (%v:)", tls, l, r, n, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var v2, v3 int32 + _, _ = v2, v3 + for { + if !(n != 0 && **(**Twchar_t)(__ccgo_up(l)) == **(**Twchar_t)(__ccgo_up(r)) && **(**Twchar_t)(__ccgo_up(l)) != 0 && **(**Twchar_t)(__ccgo_up(r)) != 0) { + break + } + goto _1 + _1: + ; + n = n - 1 + l += 4 + r += 4 + } + if n != 0 { + if **(**Twchar_t)(__ccgo_up(l)) < **(**Twchar_t)(__ccgo_up(r)) { + v3 = -int32(1) + } else { + v3 = BoolInt32(**(**Twchar_t)(__ccgo_up(l)) > **(**Twchar_t)(__ccgo_up(r))) + } + v2 = v3 + } else { + v2 = 0 + } + return v2 +} + +func Xwcsncpy(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, v1, v2 uintptr + _, _, _ = a, v1, v2 + a = d + for n != 0 && **(**Twchar_t)(__ccgo_up(s)) != 0 { + n = n - 1 + v1 = d + d += 4 + v2 = s + s += 4 + **(**Twchar_t)(__ccgo_up(v1)) = **(**Twchar_t)(__ccgo_up(v2)) + } + Xwmemset(tls, d, 0, n) + return a +} + +func Xwcsnlen(tls *TLS, s uintptr, n Tsize_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v, (%v:)", tls, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var z uintptr + _ = z + z = Xwmemchr(tls, s, 0, n) + if z != 0 { + n = Uint64FromInt64((int64(z) - int64(s)) / 4) + } + return n +} + +func Xwcspbrk(tls *TLS, s uintptr, b uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v b=%v, (%v:)", tls, s, b, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 uintptr + _ = v1 + s = s + uintptr(Xwcscspn(tls, s, b))*4 + if **(**Twchar_t)(__ccgo_up(s)) != 0 { + v1 = s + } else { + v1 = UintptrFromInt32(0) + } + return v1 +} + +func Xwcsrchr(tls *TLS, s uintptr, c Twchar_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + var p, v2 uintptr + _, _ = p, v2 + p = s + uintptr(Xwcslen(tls, s))*4 + for { + if !(p >= s && **(**Twchar_t)(__ccgo_up(p)) != c) { + break + } + goto _1 + _1: + ; + p -= 4 + } + if p >= s { + v2 = p + } else { + v2 = uintptr(0) + } + return v2 +} + +func Xwcsspn(tls *TLS, s uintptr, c uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a uintptr + _ = a + a = s + for { + if !(**(**Twchar_t)(__ccgo_up(s)) != 0 && Xwcschr(tls, c, **(**Twchar_t)(__ccgo_up(s))) != 0) { + break + } + goto _1 + _1: + ; + s += 4 + } + return Uint64FromInt64((int64(s) - int64(a)) / 4) +} + +func _twoway_wcsstr(tls *TLS, h uintptr, n uintptr) (r uintptr) { + var grow, ip, jp, k, l, mem, mem0, ms, p, p0, v2 Tsize_t + var z, z2 uintptr + var v8 uint64 + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = grow, ip, jp, k, l, mem, mem0, ms, p, p0, z, z2, v2, v8 + /* Computing length of needle */ + l = uint64(0) + for { + if !(**(**Twchar_t)(__ccgo_up(n + uintptr(l)*4)) != 0 && **(**Twchar_t)(__ccgo_up(h + uintptr(l)*4)) != 0) { + break + } + goto _1 + _1: + ; + l = l + 1 + } + if **(**Twchar_t)(__ccgo_up(n + uintptr(l)*4)) != 0 { + return uintptr(0) + } /* hit the end of h */ + /* Compute maximal suffix */ + ip = Uint64FromInt32(-Int32FromInt32(1)) + jp = uint64(0) + v2 = Uint64FromInt32(1) + p = v2 + k = v2 + for jp+k < l { + if **(**Twchar_t)(__ccgo_up(n + uintptr(ip+k)*4)) == **(**Twchar_t)(__ccgo_up(n + uintptr(jp+k)*4)) { + if k == p { + jp = jp + p + k = uint64(1) + } else { + k = k + 1 + } + } else { + if **(**Twchar_t)(__ccgo_up(n + uintptr(ip+k)*4)) > **(**Twchar_t)(__ccgo_up(n + uintptr(jp+k)*4)) { + jp = jp + k + k = uint64(1) + p = jp - ip + } else { + v2 = jp + jp = jp + 1 + ip = v2 + v2 = Uint64FromInt32(1) + p = v2 + k = v2 + } + } + } + ms = ip + p0 = p + /* And with the opposite comparison */ + ip = Uint64FromInt32(-Int32FromInt32(1)) + jp = uint64(0) + v2 = Uint64FromInt32(1) + p = v2 + k = v2 + for jp+k < l { + if **(**Twchar_t)(__ccgo_up(n + uintptr(ip+k)*4)) == **(**Twchar_t)(__ccgo_up(n + uintptr(jp+k)*4)) { + if k == p { + jp = jp + p + k = uint64(1) + } else { + k = k + 1 + } + } else { + if **(**Twchar_t)(__ccgo_up(n + uintptr(ip+k)*4)) < **(**Twchar_t)(__ccgo_up(n + uintptr(jp+k)*4)) { + jp = jp + k + k = uint64(1) + p = jp - ip + } else { + v2 = jp + jp = jp + 1 + ip = v2 + v2 = Uint64FromInt32(1) + p = v2 + k = v2 + } + } + } + if ip+uint64(1) > ms+uint64(1) { + ms = ip + } else { + p = p0 + } + /* Periodic needle? */ + if Xwmemcmp(tls, n, n+uintptr(p)*4, ms+uint64(1)) != 0 { + mem0 = uint64(0) + if ms > l-ms-uint64(1) { + v8 = ms + } else { + v8 = l - ms - uint64(1) + } + p = v8 + uint64(1) + } else { + mem0 = l - p + } + mem = uint64(0) + /* Initialize incremental end-of-haystack pointer */ + z = h + /* Search loop */ + for { + /* Update incremental end-of-haystack pointer */ + if Uint64FromInt64((int64(z)-int64(h))/4) < l { + /* Fast estimate for MIN(l,63) */ + grow = l | uint64(63) + z2 = Xwmemchr(tls, z, 0, grow) + if z2 != 0 { + z = z2 + if Uint64FromInt64((int64(z)-int64(h))/4) < l { + return uintptr(0) + } + } else { + z = z + uintptr(grow)*4 + } + } + /* Compare right half */ + if ms+uint64(1) > mem { + v8 = ms + uint64(1) + } else { + v8 = mem + } + k = v8 + for { + if !(**(**Twchar_t)(__ccgo_up(n + uintptr(k)*4)) != 0 && **(**Twchar_t)(__ccgo_up(n + uintptr(k)*4)) == **(**Twchar_t)(__ccgo_up(h + uintptr(k)*4))) { + break + } + goto _10 + _10: + ; + k = k + 1 + } + if **(**Twchar_t)(__ccgo_up(n + uintptr(k)*4)) != 0 { + h = h + uintptr(k-ms)*4 + mem = uint64(0) + goto _9 + } + /* Compare left half */ + k = ms + uint64(1) + for { + if !(k > mem && **(**Twchar_t)(__ccgo_up(n + uintptr(k-uint64(1))*4)) == **(**Twchar_t)(__ccgo_up(h + uintptr(k-uint64(1))*4))) { + break + } + goto _12 + _12: + ; + k = k - 1 + } + if k <= mem { + return h + } + h = h + uintptr(p)*4 + mem = mem0 + goto _9 + _9: + } + return r +} + +func Xwcsstr(tls *TLS, h uintptr, n uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v h=%v n=%v, (%v:)", tls, h, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + /* Return immediately on empty needle or haystack */ + if !(**(**Twchar_t)(__ccgo_up(n)) != 0) { + return h + } + if !(**(**Twchar_t)(__ccgo_up(h)) != 0) { + return uintptr(0) + } + /* Use faster algorithms for short needles */ + h = Xwcschr(tls, h, **(**Twchar_t)(__ccgo_up(n))) + if !(h != 0) || !(**(**Twchar_t)(__ccgo_up(n + 1*4)) != 0) { + return h + } + if !(**(**Twchar_t)(__ccgo_up(h + 1*4)) != 0) { + return uintptr(0) + } + return _twoway_wcsstr(tls, h, n) +} + +func Xwcstok(tls *TLS, s uintptr, sep uintptr, p uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v sep=%v p=%v, (%v:)", tls, s, sep, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1, v3 uintptr + var v2 bool + _, _, _ = v1, v2, v3 + if v2 = !(s != 0); v2 { + v1 = **(**uintptr)(__ccgo_up(p)) + s = v1 + } + if v2 && !(v1 != 0) { + return UintptrFromInt32(0) + } + s = s + uintptr(Xwcsspn(tls, s, sep))*4 + if !(**(**Twchar_t)(__ccgo_up(s)) != 0) { + v1 = UintptrFromInt32(0) + **(**uintptr)(__ccgo_up(p)) = v1 + return v1 + } + **(**uintptr)(__ccgo_up(p)) = s + uintptr(Xwcscspn(tls, s, sep))*4 + if **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(p)))) != 0 { + v3 = p + v1 = *(*uintptr)(unsafe.Pointer(v3)) + *(*uintptr)(unsafe.Pointer(v3)) += 4 + **(**Twchar_t)(__ccgo_up(v1)) = 0 + } else { + **(**uintptr)(__ccgo_up(p)) = uintptr(0) + } + return s +} + +func Xwcswcs(tls *TLS, haystack uintptr, needle uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v haystack=%v needle=%v, (%v:)", tls, haystack, needle, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xwcsstr(tls, haystack, needle) +} + +func Xwmemchr(tls *TLS, s uintptr, c Twchar_t, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v n=%v, (%v:)", tls, s, c, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v2 uintptr + _ = v2 + for { + if !(n != 0 && **(**Twchar_t)(__ccgo_up(s)) != c) { + break + } + goto _1 + _1: + ; + n = n - 1 + s += 4 + } + if n != 0 { + v2 = s + } else { + v2 = uintptr(0) + } + return v2 +} + +func Xwmemcmp(tls *TLS, l uintptr, r uintptr, n Tsize_t) (r1 int32) { + if __ccgo_strace { + trc("tls=%v l=%v r=%v n=%v, (%v:)", tls, l, r, n, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var v2, v3 int32 + _, _ = v2, v3 + for { + if !(n != 0 && **(**Twchar_t)(__ccgo_up(l)) == **(**Twchar_t)(__ccgo_up(r))) { + break + } + goto _1 + _1: + ; + n = n - 1 + l += 4 + r += 4 + } + if n != 0 { + if **(**Twchar_t)(__ccgo_up(l)) < **(**Twchar_t)(__ccgo_up(r)) { + v3 = -int32(1) + } else { + v3 = BoolInt32(**(**Twchar_t)(__ccgo_up(l)) > **(**Twchar_t)(__ccgo_up(r))) + } + v2 = v3 + } else { + v2 = 0 + } + return v2 +} + +func Xwmemcpy(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var a, v2, v3 uintptr + var v1 Tsize_t + _, _, _, _ = a, v1, v2, v3 + a = d + for { + v1 = n + n = n - 1 + if !(v1 != 0) { + break + } + v2 = d + d += 4 + v3 = s + s += 4 + **(**Twchar_t)(__ccgo_up(v2)) = **(**Twchar_t)(__ccgo_up(v3)) + } + return a +} + +func Xwmemmove(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var d0, v3, v4 uintptr + var v1 Tsize_t + _, _, _, _ = d0, v1, v3, v4 + d0 = d + if d == s { + return d + } + if uint64(d)-uint64(s) < n*uint64(4) { + for { + v1 = n + n = n - 1 + if !(v1 != 0) { + break + } + **(**Twchar_t)(__ccgo_up(d + uintptr(n)*4)) = **(**Twchar_t)(__ccgo_up(s + uintptr(n)*4)) + } + } else { + for { + v1 = n + n = n - 1 + if !(v1 != 0) { + break + } + v3 = d + d += 4 + v4 = s + s += 4 + **(**Twchar_t)(__ccgo_up(v3)) = **(**Twchar_t)(__ccgo_up(v4)) + } + } + return d0 +} + +func Xwmemset(tls *TLS, d uintptr, c Twchar_t, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v d=%v c=%v n=%v, (%v:)", tls, d, c, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret, v2 uintptr + var v1 Tsize_t + _, _, _ = ret, v1, v2 + ret = d + for { + v1 = n + n = n - 1 + if !(v1 != 0) { + break + } + v2 = d + d += 4 + **(**Twchar_t)(__ccgo_up(v2)) = c + } + return ret +} + +func Xmkdtemp(tls *TLS, template uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v template=%v, (%v:)", tls, template, origin(2)) + defer func() { trc("-> %v", r) }() + } + var l Tsize_t + var retries, v1 int32 + _, _, _ = l, retries, v1 + l = _strlen(tls, template) + retries = int32(100) + if l < uint64(6) || Xmemcmp(tls, template+uintptr(l)-uintptr(6), __ccgo_ts+1760, uint64(6)) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(0) + } + for { + ___randname(tls, template+uintptr(l)-uintptr(6)) + if !(Xmkdir(tls, template, uint32(0700)) != 0) { + return template + } + goto _2 + _2: + ; + retries = retries - 1 + v1 = retries + if !(v1 != 0 && **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EEXIST)) { + break + } + } + Xmemcpy(tls, template+uintptr(l)-uintptr(6), __ccgo_ts+1760, uint64(6)) + return uintptr(0) +} + +func Xmkostemp(tls *TLS, template uintptr, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v template=%v flags=%v, (%v:)", tls, template, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__mkostemps(tls, template, 0, flags) +} + +func X__mkostemps(tls *TLS, template uintptr, len1 int32, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v template=%v len1=%v flags=%v, (%v:)", tls, template, len1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var fd, retries, v1 int32 + var l Tsize_t + _, _, _, _ = fd, l, retries, v1 + l = _strlen(tls, template) + if l < uint64(6) || Uint64FromInt32(len1) > l-uint64(6) || Xmemcmp(tls, template+uintptr(l)-uintptr(len1)-uintptr(6), __ccgo_ts+1760, uint64(6)) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + flags = flags - flags&(Int32FromInt32(03)|Int32FromInt32(O_PATH)) + retries = int32(100) + for { + ___randname(tls, template+uintptr(l)-uintptr(len1)-uintptr(6)) + v1 = Xopen(tls, template, flags|int32(O_RDWR)|int32(O_CREAT)|int32(O_EXCL), VaList(bp+8, int32(0600))) + fd = v1 + if v1 >= 0 { + return fd + } + goto _2 + _2: + ; + retries = retries - 1 + v1 = retries + if !(v1 != 0 && **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EEXIST)) { + break + } + } + Xmemcpy(tls, template+uintptr(l)-uintptr(len1)-uintptr(6), __ccgo_ts+1760, uint64(6)) + return -int32(1) +} + +func Xmkostemps(tls *TLS, template uintptr, len1 int32, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v template=%v len1=%v flags=%v, (%v:)", tls, template, len1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__mkostemps(tls, template, len1, flags) +} + +func Xmkstemp(tls *TLS, template uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v template=%v, (%v:)", tls, template, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__mkostemps(tls, template, 0, 0) +} + +func Xmkstemps(tls *TLS, template uintptr, len1 int32) (r int32) { + if __ccgo_strace { + trc("tls=%v template=%v len1=%v, (%v:)", tls, template, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__mkostemps(tls, template, len1, 0) +} + +func Xmktemp(tls *TLS, template uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v template=%v, (%v:)", tls, template, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(144) + defer tls.Free(144) + var l Tsize_t + var retries, v1 int32 + var _ /* st at bp+0 */ Tstat + _, _, _ = l, retries, v1 + l = _strlen(tls, template) + retries = int32(100) + if l < uint64(6) || Xmemcmp(tls, template+uintptr(l)-uintptr(6), __ccgo_ts+1760, uint64(6)) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + **(**uint8)(__ccgo_up(template)) = uint8(0) + return template + } + for { + ___randname(tls, template+uintptr(l)-uintptr(6)) + if Xstat(tls, template, bp) != 0 { + if **(**int32)(__ccgo_up(X__errno_location(tls))) != int32(ENOENT) { + **(**uint8)(__ccgo_up(template)) = uint8(0) + } + return template + } + goto _2 + _2: + ; + retries = retries - 1 + v1 = retries + if !(v1 != 0) { + break + } + } + **(**uint8)(__ccgo_up(template)) = uint8(0) + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EEXIST) + return template +} + +func Xcfgetospeed(tls *TLS, tio uintptr) (r Tspeed_t) { + if __ccgo_strace { + trc("tls=%v tio=%v, (%v:)", tls, tio, origin(2)) + defer func() { trc("-> %v", r) }() + } + return (*Ttermios)(unsafe.Pointer(tio)).Fc_cflag & uint32(CBAUD) +} + +func Xcfgetispeed(tls *TLS, tio uintptr) (r Tspeed_t) { + if __ccgo_strace { + trc("tls=%v tio=%v, (%v:)", tls, tio, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xcfgetospeed(tls, tio) +} + +func Xcfmakeraw(tls *TLS, t uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v, (%v:)", tls, t, origin(2)) + } + **(**Ttcflag_t)(__ccgo_up(t)) &= Uint32FromInt32(^(Int32FromInt32(IGNBRK) | Int32FromInt32(BRKINT) | Int32FromInt32(PARMRK) | Int32FromInt32(ISTRIP) | Int32FromInt32(INLCR) | Int32FromInt32(IGNCR) | Int32FromInt32(ICRNL) | Int32FromInt32(IXON))) + **(**Ttcflag_t)(__ccgo_up(t + 4)) &= Uint32FromInt32(^Int32FromInt32(OPOST)) + **(**Ttcflag_t)(__ccgo_up(t + 12)) &= Uint32FromInt32(^(Int32FromInt32(ECHO) | Int32FromInt32(ECHONL) | Int32FromInt32(ICANON) | Int32FromInt32(ISIG) | Int32FromInt32(IEXTEN))) + **(**Ttcflag_t)(__ccgo_up(t + 8)) &= Uint32FromInt32(^(Int32FromInt32(CSIZE) | Int32FromInt32(PARENB))) + **(**Ttcflag_t)(__ccgo_up(t + 8)) |= uint32(CS8) + **(**Tcc_t)(__ccgo_up(t + 17 + 6)) = uint8(1) + **(**Tcc_t)(__ccgo_up(t + 17 + 5)) = uint8(0) +} + +func Xcfsetospeed(tls *TLS, tio uintptr, speed Tspeed_t) (r int32) { + if __ccgo_strace { + trc("tls=%v tio=%v speed=%v, (%v:)", tls, tio, speed, origin(2)) + defer func() { trc("-> %v", r) }() + } + if speed&Uint32FromInt32(^Int32FromInt32(CBAUD)) != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + **(**Ttcflag_t)(__ccgo_up(tio + 8)) &= Uint32FromInt32(^Int32FromInt32(CBAUD)) + **(**Ttcflag_t)(__ccgo_up(tio + 8)) |= speed + return 0 +} + +func Xcfsetispeed(tls *TLS, tio uintptr, speed Tspeed_t) (r int32) { + if __ccgo_strace { + trc("tls=%v tio=%v speed=%v, (%v:)", tls, tio, speed, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 int32 + _ = v1 + if speed != 0 { + v1 = Xcfsetospeed(tls, tio, speed) + } else { + v1 = 0 + } + return v1 +} + +func Xcfsetspeed(tls *TLS, tio uintptr, speed Tspeed_t) (r int32) { + if __ccgo_strace { + trc("tls=%v tio=%v speed=%v, (%v:)", tls, tio, speed, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xcfsetospeed(tls, tio, speed) +} + +func Xtcdrain(tls *TLS, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_ioctl), int64(fd), int64(Int32FromInt32(TCSBRK)), int64(Int32FromInt32(1)), 0, 0, 0)))) +} + +func Xtcflow(tls *TLS, fd int32, action int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v action=%v, (%v:)", tls, fd, action, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + return Xioctl(tls, fd, int32(TCXONC), VaList(bp+8, action)) +} + +func Xtcflush(tls *TLS, fd int32, queue int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v queue=%v, (%v:)", tls, fd, queue, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + return Xioctl(tls, fd, int32(TCFLSH), VaList(bp+8, queue)) +} + +func Xtcgetattr(tls *TLS, fd int32, tio uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v tio=%v, (%v:)", tls, fd, tio, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + if Xioctl(tls, fd, int32(TCGETS), VaList(bp+8, tio)) != 0 { + return -int32(1) + } + return 0 +} + +func Xtcgetsid(tls *TLS, fd int32) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var _ /* sid at bp+0 */ int32 + if Xioctl(tls, fd, int32(TIOCGSID), VaList(bp+16, bp)) < 0 { + return -int32(1) + } + return **(**int32)(__ccgo_up(bp)) +} + +func Xtcgetwinsize(tls *TLS, fd int32, wsz uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v wsz=%v, (%v:)", tls, fd, wsz, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_ioctl), int64(fd), int64(Int32FromInt32(TIOCGWINSZ)), int64(wsz))))) +} + +func Xtcsendbreak(tls *TLS, fd int32, dur int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v dur=%v, (%v:)", tls, fd, dur, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + /* nonzero duration is implementation-defined, so ignore it */ + return Xioctl(tls, fd, int32(TCSBRK), VaList(bp+8, 0)) +} + +func Xtcsetattr(tls *TLS, fd int32, act int32, tio uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v act=%v tio=%v, (%v:)", tls, fd, act, tio, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + if act < 0 || act > int32(2) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return -int32(1) + } + return Xioctl(tls, fd, int32(TCSETS)+act, VaList(bp+8, tio)) +} + +func Xtcsetwinsize(tls *TLS, fd int32, wsz uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v wsz=%v, (%v:)", tls, fd, wsz, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_ioctl), int64(fd), int64(Int32FromInt32(TIOCSWINSZ)), int64(wsz))))) +} + +func X__map_file(tls *TLS, pathname uintptr, size uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v pathname=%v size=%v, (%v:)", tls, pathname, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(144) + defer tls.Free(144) + var fd int32 + var map1, v1 uintptr + var _ /* st at bp+0 */ Tstat + _, _, _ = fd, map1, v1 + map1 = uintptr(-Int32FromInt32(1)) + fd = int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_open), int64(pathname), int64(Int32FromInt32(O_RDONLY)|Int32FromInt32(O_CLOEXEC)|Int32FromInt32(O_NONBLOCK)|Int32FromInt32(O_LARGEFILE)))))) + if fd < 0 { + return uintptr(0) + } + if !(X__fstat(tls, fd, bp) != 0) { + map1 = ___mmap(tls, uintptr(0), Uint64FromInt64((**(**Tstat)(__ccgo_up(bp))).Fst_size), int32(PROT_READ), int32(MAP_SHARED), fd, 0) + **(**Tsize_t)(__ccgo_up(size)) = Uint64FromInt64((**(**Tstat)(__ccgo_up(bp))).Fst_size) + } + X__syscall1(tls, int64(SYS_close), int64(fd)) + if map1 == uintptr(-Int32FromInt32(1)) { + v1 = uintptr(0) + } else { + v1 = map1 + } + return v1 +} + +func X__month_to_secs(tls *TLS, month int32, is_leap int32) (r int32) { + if __ccgo_strace { + trc("tls=%v month=%v is_leap=%v, (%v:)", tls, month, is_leap, origin(2)) + defer func() { trc("-> %v", r) }() + } + var t int32 + _ = t + t = _secs_through_month[month] + if is_leap != 0 && month >= int32(2) { + t = t + int32(86400) + } + return t +} + +var _secs_through_month = [12]int32{ + 1: Int32FromInt32(31) * Int32FromInt32(86400), + 2: Int32FromInt32(59) * Int32FromInt32(86400), + 3: Int32FromInt32(90) * Int32FromInt32(86400), + 4: Int32FromInt32(120) * Int32FromInt32(86400), + 5: Int32FromInt32(151) * Int32FromInt32(86400), + 6: Int32FromInt32(181) * Int32FromInt32(86400), + 7: Int32FromInt32(212) * Int32FromInt32(86400), + 8: Int32FromInt32(243) * Int32FromInt32(86400), + 9: Int32FromInt32(273) * Int32FromInt32(86400), + 10: Int32FromInt32(304) * Int32FromInt32(86400), + 11: Int32FromInt32(334) * Int32FromInt32(86400), +} + +const DAYS_PER_100Y = 36524 +const DAYS_PER_400Y = 146097 +const DAYS_PER_4Y = 1461 +const LEAPOCH = 951868800 + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +/* 2000-03-01 (mod 400 year, immediately after feb29 */ + +func X__secs_to_tm(tls *TLS, t int64, tm uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v t=%v tm=%v, (%v:)", tls, t, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + var c_cycles, leap, months, q_cycles, qc_cycles, remdays, remsecs, remyears, wday, yday int32 + var days, secs, years int64 + _, _, _, _, _, _, _, _, _, _, _, _, _ = c_cycles, days, leap, months, q_cycles, qc_cycles, remdays, remsecs, remyears, secs, wday, yday, years + /* Reject time_t values whose year would overflow int */ + if t < int64(-Int32FromInt32(1)-Int32FromInt32(0x7fffffff))*Int64FromInt64(31622400) || t > Int64FromInt32(INT_MAX)*Int64FromInt64(31622400) { + return -int32(1) + } + secs = t - (Int64FromInt64(946684800) + int64(Int32FromInt32(86400)*(Int32FromInt32(31)+Int32FromInt32(29)))) + days = secs / int64(86400) + remsecs = int32(secs % int64(86400)) + if remsecs < 0 { + remsecs = remsecs + int32(86400) + days = days - 1 + } + wday = int32((int64(3) + days) % int64(7)) + if wday < 0 { + wday = wday + int32(7) + } + qc_cycles = int32(days / int64(Int32FromInt32(365)*Int32FromInt32(400)+Int32FromInt32(97))) + remdays = int32(days % int64(Int32FromInt32(365)*Int32FromInt32(400)+Int32FromInt32(97))) + if remdays < 0 { + remdays = remdays + (Int32FromInt32(365)*Int32FromInt32(400) + Int32FromInt32(97)) + qc_cycles = qc_cycles - 1 + } + c_cycles = remdays / (Int32FromInt32(365)*Int32FromInt32(100) + Int32FromInt32(24)) + if c_cycles == int32(4) { + c_cycles = c_cycles - 1 + } + remdays = remdays - c_cycles*(Int32FromInt32(365)*Int32FromInt32(100)+Int32FromInt32(24)) + q_cycles = remdays / (Int32FromInt32(365)*Int32FromInt32(4) + Int32FromInt32(1)) + if q_cycles == int32(25) { + q_cycles = q_cycles - 1 + } + remdays = remdays - q_cycles*(Int32FromInt32(365)*Int32FromInt32(4)+Int32FromInt32(1)) + remyears = remdays / int32(365) + if remyears == int32(4) { + remyears = remyears - 1 + } + remdays = remdays - remyears*int32(365) + leap = BoolInt32(!(remyears != 0) && (q_cycles != 0 || !(c_cycles != 0))) + yday = remdays + int32(31) + int32(28) + leap + if yday >= int32(365)+leap { + yday = yday - (int32(365) + leap) + } + years = int64(remyears+int32(4)*q_cycles+int32(100)*c_cycles) + int64(400)*int64(qc_cycles) + months = 0 + for { + if !(Int32FromUint8(_days_in_month[months]) <= remdays) { + break + } + remdays = remdays - Int32FromUint8(_days_in_month[months]) + goto _1 + _1: + ; + months = months + 1 + } + if months >= int32(10) { + months = months - int32(12) + years = years + 1 + } + if years+int64(100) > int64(INT_MAX) || years+int64(100) < int64(-Int32FromInt32(1)-Int32FromInt32(0x7fffffff)) { + return -int32(1) + } + (*Ttm)(unsafe.Pointer(tm)).Ftm_year = int32(years + int64(100)) + (*Ttm)(unsafe.Pointer(tm)).Ftm_mon = months + int32(2) + (*Ttm)(unsafe.Pointer(tm)).Ftm_mday = remdays + int32(1) + (*Ttm)(unsafe.Pointer(tm)).Ftm_wday = wday + (*Ttm)(unsafe.Pointer(tm)).Ftm_yday = yday + (*Ttm)(unsafe.Pointer(tm)).Ftm_hour = remsecs / int32(3600) + (*Ttm)(unsafe.Pointer(tm)).Ftm_min = remsecs / int32(60) % int32(60) + (*Ttm)(unsafe.Pointer(tm)).Ftm_sec = remsecs % int32(60) + return 0 +} + +var _days_in_month = [12]uint8{ + 0: uint8(31), + 1: uint8(30), + 2: uint8(31), + 3: uint8(30), + 4: uint8(31), + 5: uint8(31), + 6: uint8(30), + 7: uint8(31), + 8: uint8(30), + 9: uint8(31), + 10: uint8(31), + 11: uint8(29), +} + +func X__tm_to_secs(tls *TLS, tm uintptr) (r int64) { + if __ccgo_strace { + trc("tls=%v tm=%v, (%v:)", tls, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var adj, month int32 + var t, year int64 + var _ /* is_leap at bp+0 */ int32 + _, _, _, _ = adj, month, t, year + year = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_year) + month = (*Ttm)(unsafe.Pointer(tm)).Ftm_mon + if month >= int32(12) || month < 0 { + adj = month / int32(12) + month = month % int32(12) + if month < 0 { + adj = adj - 1 + month = month + int32(12) + } + year = year + int64(adj) + } + t = X__year_to_secs(tls, year, bp) + t = t + int64(X__month_to_secs(tls, month, **(**int32)(__ccgo_up(bp)))) + t = t + int64(86400)*int64((*Ttm)(unsafe.Pointer(tm)).Ftm_mday-Int32FromInt32(1)) + t = t + int64(3600)*int64((*Ttm)(unsafe.Pointer(tm)).Ftm_hour) + t = t + int64(60)*int64((*Ttm)(unsafe.Pointer(tm)).Ftm_min) + t = t + int64((*Ttm)(unsafe.Pointer(tm)).Ftm_sec) + return t +} + +var _std_name [7]uint8 +var _dst_name [7]uint8 + +var _dst_off int32 +var _r0 [5]int32 +var _r12 [5]int32 + +var _zi uintptr +var _trans uintptr +var _index uintptr +var _types uintptr +var _abbrevs uintptr +var _abbrevs_end uintptr +var _map_size Tsize_t + +var _old_tz_buf [32]uint8 +var _old_tz = uintptr(unsafe.Pointer(&_old_tz_buf)) +var _old_tz_size = uint64(32) + +var _lock4 [1]int32 + +func _getint2(tls *TLS, p uintptr) (r int32) { + var x uint32 + _ = x + x = uint32(0) + for { + if !(Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(p)))))-int32('0')) < uint32(10)) { + break + } + x = Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(p)))))-int32('0')) + uint32(10)*x + goto _1 + _1: + ; + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + } + return Int32FromUint32(x) +} + +func _getoff(tls *TLS, p uintptr) (r int32) { + var neg, off, v1 int32 + _, _, _ = neg, off, v1 + neg = 0 + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(p))))) == int32('-') { + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + neg = int32(1) + } else { + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(p))))) == int32('+') { + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + } + } + off = int32(3600) * _getint2(tls, p) + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(p))))) == int32(':') { + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + off = off + int32(60)*_getint2(tls, p) + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(p))))) == int32(':') { + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + off = off + _getint2(tls, p) + } + } + if neg != 0 { + v1 = -off + } else { + v1 = off + } + return v1 +} + +func _getrule(tls *TLS, p uintptr, rule uintptr) { + var r, v1 int32 + _, _ = r, v1 + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(p))))) + **(**int32)(__ccgo_up(rule)) = v1 + r = v1 + if r != int32('M') { + if r == int32('J') { + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + } else { + **(**int32)(__ccgo_up(rule)) = 0 + } + **(**int32)(__ccgo_up(rule + 1*4)) = _getint2(tls, p) + } else { + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + **(**int32)(__ccgo_up(rule + 1*4)) = _getint2(tls, p) + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + **(**int32)(__ccgo_up(rule + 2*4)) = _getint2(tls, p) + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + **(**int32)(__ccgo_up(rule + 3*4)) = _getint2(tls, p) + } + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(p))))) == int32('/') { + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + **(**int32)(__ccgo_up(rule + 4*4)) = _getoff(tls, p) + } else { + **(**int32)(__ccgo_up(rule + 4*4)) = int32(7200) + } +} + +func _getname(tls *TLS, d uintptr, p uintptr) { + var i, v3 int32 + _, _ = i, v3 + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(p))))) == int32('<') { + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + i = 0 + for { + if !(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(p)) + uintptr(i))) != 0 && Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(p)) + uintptr(i)))) != int32('>')) { + break + } + if i < int32(TZNAME_MAX) { + **(**uint8)(__ccgo_up(d + uintptr(i))) = **(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(p)) + uintptr(i))) + } + goto _1 + _1: + ; + i = i + 1 + } + if **(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(p)) + uintptr(i))) != 0 { + **(**uintptr)(__ccgo_up(p)) = **(**uintptr)(__ccgo_up(p)) + 1 + } + } else { + i = 0 + for { + if !(Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(p)) + uintptr(i))))|int32(32)-int32('a')) < uint32(26)) { + break + } + if i < int32(TZNAME_MAX) { + **(**uint8)(__ccgo_up(d + uintptr(i))) = **(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(p)) + uintptr(i))) + } + goto _2 + _2: + ; + i = i + 1 + } + } + **(**uintptr)(__ccgo_up(p)) += uintptr(i) + if i < int32(TZNAME_MAX) { + v3 = i + } else { + v3 = int32(TZNAME_MAX) + } + **(**uint8)(__ccgo_up(d + uintptr(v3))) = uint8(0) +} + +func _zi_read32(tls *TLS, z uintptr) (r Tuint32_t) { + return uint32(**(**uint8)(__ccgo_up(z)))< Uint64FromInt32(Int32FromInt32(PATH_MAX)+Int32FromInt32(1)) { + **(**uintptr)(__ccgo_up(bp + 288)) = uintptr(unsafe.Pointer(&X__utc)) + i = Uint64FromInt32(3) + } + if i >= _old_tz_size { + _old_tz_size = _old_tz_size * uint64(2) + if i >= _old_tz_size { + _old_tz_size = i + uint64(1) + } + if _old_tz_size > Uint64FromInt32(Int32FromInt32(PATH_MAX)+Int32FromInt32(2)) { + _old_tz_size = Uint64FromInt32(Int32FromInt32(PATH_MAX) + Int32FromInt32(2)) + } + _old_tz = Xmalloc(tls, _old_tz_size) + } + if _old_tz != 0 { + Xmemcpy(tls, _old_tz, **(**uintptr)(__ccgo_up(bp + 288)), i+uint64(1)) + } + posix_form = 0 + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 288))))) != int32(':') { + **(**uintptr)(__ccgo_up(bp + 296)) = **(**uintptr)(__ccgo_up(bp + 288)) + _getname(tls, bp+308, bp+296) + if **(**uintptr)(__ccgo_up(bp + 296)) != **(**uintptr)(__ccgo_up(bp + 288)) && (Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 296))))) == int32('+') || Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 296))))) == int32('-') || BoolInt32(uint32(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 296)))))-uint32('0') < uint32(10)) != 0 || !(Xstrcmp(tls, bp+308, __ccgo_ts+1785) != 0) || !(Xstrcmp(tls, bp+308, __ccgo_ts+1789) != 0)) { + posix_form = int32(1) + } + } + /* Non-suid can use an absolute tzfile pathname or a relative + * pathame beginning with "."; in secure mode, only the + * standard path will be searched. */ + if !(posix_form != 0) { + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 288))))) == int32(':') { + **(**uintptr)(__ccgo_up(bp + 288)) = **(**uintptr)(__ccgo_up(bp + 288)) + 1 + } + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 288))))) == int32('/') || Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 288))))) == int32('.') { + if !(X__libc.Fsecure != 0) || !(Xstrcmp(tls, **(**uintptr)(__ccgo_up(bp + 288)), __ccgo_ts+1770) != 0) { + map1 = X__map_file(tls, **(**uintptr)(__ccgo_up(bp + 288)), uintptr(unsafe.Pointer(&_map_size))) + } + } else { + l = _strlen(tls, **(**uintptr)(__ccgo_up(bp + 288))) + if l <= uint64(NAME_MAX) && !(Xstrchr(tls, **(**uintptr)(__ccgo_up(bp + 288)), int32('.')) != 0) { + Xmemcpy(tls, pathname, **(**uintptr)(__ccgo_up(bp + 288)), l+uint64(1)) + **(**uint8)(__ccgo_up(pathname + uintptr(l))) = uint8(0) + try = uintptr(unsafe.Pointer(&_search)) + for { + if !(!(map1 != 0) && **(**uint8)(__ccgo_up(try)) != 0) { + break + } + l = _strlen(tls, try) + Xmemcpy(tls, pathname-uintptr(l), try, l) + map1 = X__map_file(tls, pathname-uintptr(l), uintptr(unsafe.Pointer(&_map_size))) + goto _3 + _3: + ; + try = try + uintptr(l+uint64(1)) + } + } + } + if !(map1 != 0) { + **(**uintptr)(__ccgo_up(bp + 288)) = uintptr(unsafe.Pointer(&X__utc)) + } + } + if map1 != 0 && (_map_size < uint64(44) || Xmemcmp(tls, map1, __ccgo_ts+1793, uint64(4)) != 0) { + X__munmap(tls, map1, _map_size) + map1 = uintptr(0) + **(**uintptr)(__ccgo_up(bp + 288)) = uintptr(unsafe.Pointer(&X__utc)) + } + _zi = map1 + if map1 != 0 { + scale = int32(2) + if Int32FromUint8(**(**uint8)(__ccgo_up(map1 + 4))) != int32('1') { + *(*[6]uint8)(unsafe.Pointer(bp)) = [6]uint8{ + 0: uint8(1), + 1: uint8(1), + 2: uint8(8), + 3: uint8(5), + 4: uint8(6), + 5: uint8(1), + } + skip = _zi_dotprod(tls, _zi+uintptr(20), bp, uint64(6)) + _trans = _zi + uintptr(skip) + uintptr(44) + uintptr(44) + scale = scale + 1 + } else { + _trans = _zi + uintptr(44) + } + _index = _trans + uintptr(_zi_read32(tls, _trans-uintptr(12))<> scale) + if !(n != 0) { + if alt != 0 { + **(**Tsize_t)(__ccgo_up(alt)) = uint64(0) + } + return uint64(0) + } + /* Binary search for 'most-recent rule before t'. */ + for n > uint64(1) { + m = a + n/uint64(2) + x = uint64(_zi_read32(tls, _trans+uintptr(m<> scale) + if a == n-uint64(1) { + return Uint64FromInt32(-Int32FromInt32(1)) + } + if a == uint64(0) { + x = uint64(_zi_read32(tls, _trans)) + if scale == int32(3) { + x = x<>(m-int32(1))&int32(1) + } + return r +} + +/* Convert a POSIX DST rule plus year to seconds since epoch. */ + +func _rule_to_secs(tls *TLS, rule uintptr, year int32) (r int64) { + bp := tls.Alloc(16) + defer tls.Free(16) + var d, days, m, n, wday, x int32 + var t int64 + var _ /* is_leap at bp+0 */ int32 + _, _, _, _, _, _, _ = d, days, m, n, t, wday, x + t = X__year_to_secs(tls, int64(year), bp) + if **(**int32)(__ccgo_up(rule)) != int32('M') { + x = **(**int32)(__ccgo_up(rule + 1*4)) + if **(**int32)(__ccgo_up(rule)) == int32('J') && (x < int32(60) || !(**(**int32)(__ccgo_up(bp)) != 0)) { + x = x - 1 + } + t = t + int64(int32(86400)*x) + } else { + m = **(**int32)(__ccgo_up(rule + 1*4)) + n = **(**int32)(__ccgo_up(rule + 2*4)) + d = **(**int32)(__ccgo_up(rule + 3*4)) + t = t + int64(X__month_to_secs(tls, m-int32(1), **(**int32)(__ccgo_up(bp)))) + wday = int32((t+int64(Int32FromInt32(4)*Int32FromInt32(86400)))%int64(Int32FromInt32(7)*Int32FromInt32(86400))) / int32(86400) + days = d - wday + if days < 0 { + days = days + int32(7) + } + if n == int32(5) && days+int32(28) >= _days_in_month1(tls, m, **(**int32)(__ccgo_up(bp))) { + n = int32(4) + } + t = t + int64(int32(86400)*(days+int32(7)*(n-int32(1)))) + } + t = t + int64(**(**int32)(__ccgo_up(rule + 4*4))) + return t +} + +/* Determine the time zone in effect for a given time in seconds since the + * epoch. It can be given in local or universal time. The results will + * indicate whether DST is in effect at the queried time, and will give both + * the GMT offset for the active zone/DST rule and the opposite DST. This + * enables a caller to efficiently adjust for the case where an explicit + * DST specification mismatches what would be in effect at the time. */ + +func X__secs_to_zone(tls *TLS, t int64, local int32, isdst uintptr, offset uintptr, oppoff uintptr, zonename uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v local=%v isdst=%v offset=%v oppoff=%v zonename=%v, (%v:)", tls, t, local, isdst, offset, oppoff, zonename, origin(2)) + } + bp := tls.Alloc(16) + defer tls.Free(16) + var i Tsize_t + var t0, t1, y int64 + var _ /* alt at bp+0 */ Tsize_t + _, _, _, _ = i, t0, t1, y + ___lock(tls, uintptr(unsafe.Pointer(&_lock4))) + _do_tzset(tls) + if _zi != 0 { + i = _scan_trans(tls, t, local, bp) + if i != Uint64FromInt32(-Int32FromInt32(1)) { + **(**int32)(__ccgo_up(isdst)) = Int32FromUint8(**(**uint8)(__ccgo_up(_types + uintptr(uint64(6)*i+uint64(4))))) + **(**int64)(__ccgo_up(offset)) = int64(Int32FromUint32(_zi_read32(tls, _types+uintptr(uint64(6)*i)))) + **(**uintptr)(__ccgo_up(zonename)) = _abbrevs + uintptr(**(**uint8)(__ccgo_up(_types + uintptr(uint64(6)*i+uint64(5))))) + if oppoff != 0 { + **(**int64)(__ccgo_up(oppoff)) = int64(Int32FromUint32(_zi_read32(tls, _types+uintptr(uint64(6)***(**Tsize_t)(__ccgo_up(bp)))))) + } + ___unlock(tls, uintptr(unsafe.Pointer(&_lock4))) + return + } + } + if !(Xdaylight != 0) { + goto std + } + /* FIXME: may be broken if DST changes right at year boundary? + * Also, this could be more efficient.*/ + y = t/int64(31556952) + int64(70) + for X__year_to_secs(tls, y, uintptr(0)) > t { + y = y - 1 + } + for X__year_to_secs(tls, y+int64(1), uintptr(0)) < t { + y = y + 1 + } + t0 = _rule_to_secs(tls, uintptr(unsafe.Pointer(&_r0)), int32(y)) + t1 = _rule_to_secs(tls, uintptr(unsafe.Pointer(&_r12)), int32(y)) + if !(local != 0) { + t0 = t0 + Xtimezone + t1 = t1 + int64(_dst_off) + } + if t0 < t1 { + if t >= t0 && t < t1 { + goto dst + } + goto std + } else { + if t >= t1 && t < t0 { + goto std + } + goto dst + } + goto std +std: + ; + **(**int32)(__ccgo_up(isdst)) = 0 + **(**int64)(__ccgo_up(offset)) = -Xtimezone + if oppoff != 0 { + **(**int64)(__ccgo_up(oppoff)) = int64(-_dst_off) + } + **(**uintptr)(__ccgo_up(zonename)) = Xtzname[0] + ___unlock(tls, uintptr(unsafe.Pointer(&_lock4))) + return + goto dst +dst: + ; + **(**int32)(__ccgo_up(isdst)) = int32(1) + **(**int64)(__ccgo_up(offset)) = int64(-_dst_off) + if oppoff != 0 { + **(**int64)(__ccgo_up(oppoff)) = -Xtimezone + } + **(**uintptr)(__ccgo_up(zonename)) = Xtzname[int32(1)] + ___unlock(tls, uintptr(unsafe.Pointer(&_lock4))) +} + +func ___tzset(tls *TLS) { + ___lock(tls, uintptr(unsafe.Pointer(&_lock4))) + _do_tzset(tls) + ___unlock(tls, uintptr(unsafe.Pointer(&_lock4))) +} + +func X__tm_to_tzname(tls *TLS, tm uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v tm=%v, (%v:)", tls, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + var p uintptr + _ = p + p = (*Ttm)(unsafe.Pointer(tm)).F__tm_zone + ___lock(tls, uintptr(unsafe.Pointer(&_lock4))) + _do_tzset(tls) + if p != uintptr(unsafe.Pointer(&X__utc)) && p != Xtzname[0] && p != Xtzname[int32(1)] && (!(_zi != 0) || uint64(p)-uint64(_abbrevs) >= Uint64FromInt64(int64(_abbrevs_end)-int64(_abbrevs))) { + p = __ccgo_ts + } + ___unlock(tls, uintptr(unsafe.Pointer(&_lock4))) + return p +} + +func X__year_to_secs(tls *TLS, year int64, is_leap uintptr) (r int64) { + if __ccgo_strace { + trc("tls=%v year=%v is_leap=%v, (%v:)", tls, year, is_leap, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var centuries, cycles, leaps, leaps1, rem, y int32 + var _ /* dummy at bp+0 */ int32 + _, _, _, _, _, _ = centuries, cycles, leaps, leaps1, rem, y + if Uint64FromInt64(year)-uint64(2) <= uint64(136) { + y = int32(year) + leaps = (y - int32(68)) >> int32(2) + if !((y-Int32FromInt32(68))&Int32FromInt32(3) != 0) { + leaps = leaps - 1 + if is_leap != 0 { + **(**int32)(__ccgo_up(is_leap)) = int32(1) + } + } else { + if is_leap != 0 { + **(**int32)(__ccgo_up(is_leap)) = 0 + } + } + return int64(int32(31536000)*(y-int32(70)) + int32(86400)*leaps) + } + if !(is_leap != 0) { + is_leap = bp + } + cycles = int32((year - int64(100)) / int64(400)) + rem = int32((year - int64(100)) % int64(400)) + if rem < 0 { + cycles = cycles - 1 + rem = rem + int32(400) + } + if !(rem != 0) { + **(**int32)(__ccgo_up(is_leap)) = int32(1) + centuries = 0 + leaps1 = 0 + } else { + if rem >= int32(200) { + if rem >= int32(300) { + centuries = int32(3) + rem = rem - int32(300) + } else { + centuries = int32(2) + rem = rem - int32(200) + } + } else { + if rem >= int32(100) { + centuries = int32(1) + rem = rem - int32(100) + } else { + centuries = 0 + } + } + if !(rem != 0) { + **(**int32)(__ccgo_up(is_leap)) = 0 + leaps1 = 0 + } else { + leaps1 = Int32FromUint32(Uint32FromInt32(rem) / uint32(4)) + rem = Int32FromUint32(uint32(rem) % Uint32FromUint32(4)) + **(**int32)(__ccgo_up(is_leap)) = BoolInt32(!(rem != 0)) + } + } + leaps1 = leaps1 + (int32(97)*cycles + int32(24)*centuries - **(**int32)(__ccgo_up(is_leap))) + return (year-int64(100))*int64(31536000) + int64(leaps1)*int64(86400) + int64(946684800) + int64(86400) +} + +func Xasctime(tls *TLS, tm uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v tm=%v, (%v:)", tls, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__asctime_r(tls, tm, uintptr(unsafe.Pointer(&_buf9))) +} + +var _buf9 [26]uint8 + +func X__asctime_r(tls *TLS, tm uintptr, buf uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v tm=%v buf=%v, (%v:)", tls, tm, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + if Xsnprintf(tls, buf, uint64(26), __ccgo_ts+1798, VaList(bp+8, X__nl_langinfo_l(tls, int32(ABDAY_1)+(*Ttm)(unsafe.Pointer(tm)).Ftm_wday, uintptr(unsafe.Pointer(&X__c_locale))), X__nl_langinfo_l(tls, int32(ABMON_1)+(*Ttm)(unsafe.Pointer(tm)).Ftm_mon, uintptr(unsafe.Pointer(&X__c_locale))), (*Ttm)(unsafe.Pointer(tm)).Ftm_mday, (*Ttm)(unsafe.Pointer(tm)).Ftm_hour, (*Ttm)(unsafe.Pointer(tm)).Ftm_min, (*Ttm)(unsafe.Pointer(tm)).Ftm_sec, int32(1900)+(*Ttm)(unsafe.Pointer(tm)).Ftm_year)) >= int32(26) { + /* ISO C requires us to use the above format string, + * even if it will not fit in the buffer. Thus asctime_r + * is _supposed_ to crash if the fields in tm are too large. + * We follow this behavior and crash "gracefully" to warn + * application developers that they may not be so lucky + * on other implementations (e.g. stack smashing..). + */ + // __asm__ __volatile__ (".insn e,0"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 29, __ccgo_ts+1830) + } + return buf +} + +func Xasctime_r(tls *TLS, tm uintptr, buf uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v tm=%v buf=%v, (%v:)", tls, tm, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__asctime_r(tls, tm, buf) +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xclock(tls *TLS) (r Tclock_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* ts at bp+0 */ Ttimespec + if X__clock_gettime(tls, int32(CLOCK_PROCESS_CPUTIME_ID), bp) != 0 { + return int64(-int32(1)) + } + if (**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec > Int64FromInt64(0x7fffffffffffffff)/Int64FromInt32(1000000) || (**(**Ttimespec)(__ccgo_up(bp))).Ftv_nsec/int64(1000) > int64(0x7fffffffffffffff)-int64(1000000)*(**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec { + return int64(-int32(1)) + } + return (**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec*int64(1000000) + (**(**Ttimespec)(__ccgo_up(bp))).Ftv_nsec/int64(1000) +} + +func Xclock_getcpuclockid(tls *TLS, pid Tpid_t, clk uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v pid=%v clk=%v, (%v:)", tls, pid, clk, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var id Tclockid_t + var ret int32 + var _ /* ts at bp+0 */ Ttimespec + _, _ = id, ret + id = Int32FromUint32(Uint32FromInt32(-pid-Int32FromInt32(1))*uint32(8) + uint32(2)) + ret = int32(X__syscall2(tls, int64(SYS_clock_getres), int64(id), int64(bp))) + if ret == -int32(EINVAL) { + ret = -int32(ESRCH) + } + if ret != 0 { + return -ret + } + **(**Tclockid_t)(__ccgo_up(clk)) = id + return 0 +} + +func Xclock_getres(tls *TLS, clk Tclockid_t, ts uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v clk=%v ts=%v, (%v:)", tls, clk, ts, origin(2)) + defer func() { trc("-> %v", r) }() + } + /* If reaching this point, it's a 64-bit arch or time64-only + * 32-bit arch and we can get result directly into timespec. */ + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_clock_getres), int64(clk), int64(ts))))) +} + +func X__clock_gettime(tls *TLS, clk Tclockid_t, ts uintptr) (r1 int32) { + if __ccgo_strace { + trc("tls=%v clk=%v ts=%v, (%v:)", tls, clk, ts, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + r = int32(X__syscall2(tls, int64(SYS_clock_gettime), int64(clk), int64(ts))) + if r == -int32(ENOSYS) { + if clk == CLOCK_REALTIME { + X__syscall2(tls, int64(SYS_gettimeofday), int64(ts), int64(Int32FromInt32(0))) + (*Ttimespec)(unsafe.Pointer(ts)).Ftv_nsec = int64(int32((*Ttimespec)(unsafe.Pointer(ts)).Ftv_nsec) * int32(1000)) + return 0 + } + r = -int32(EINVAL) + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func Xclock_gettime(tls *TLS, clk Tclockid_t, ts uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v clk=%v ts=%v, (%v:)", tls, clk, ts, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__clock_gettime(tls, clk, ts) +} + +func X__clock_nanosleep(tls *TLS, clk Tclockid_t, flags int32, req uintptr, rem uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v clk=%v flags=%v req=%v rem=%v, (%v:)", tls, clk, flags, req, rem, origin(2)) + defer func() { trc("-> %v", r) }() + } + if clk == int32(CLOCK_THREAD_CPUTIME_ID) { + return int32(EINVAL) + } + if clk == CLOCK_REALTIME && !(flags != 0) { + return int32(-___syscall_cp(tls, int64(SYS_nanosleep), int64(req), int64(rem), 0, 0, 0, 0)) + } + return int32(-___syscall_cp(tls, int64(SYS_clock_nanosleep), int64(clk), int64(flags), int64(req), int64(rem), 0, 0)) +} + +func Xclock_nanosleep(tls *TLS, clk Tclockid_t, flags int32, req uintptr, rem uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v clk=%v flags=%v req=%v rem=%v, (%v:)", tls, clk, flags, req, rem, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__clock_nanosleep(tls, clk, flags, req, rem) +} + +func Xclock_settime(tls *TLS, clk Tclockid_t, ts uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v clk=%v ts=%v, (%v:)", tls, clk, ts, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_clock_settime), int64(clk), int64(ts))))) +} + +func Xctime(tls *TLS, t uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v, (%v:)", tls, t, origin(2)) + defer func() { trc("-> %v", r) }() + } + var tm uintptr + _ = tm + tm = Xlocaltime(tls, t) + if !(tm != 0) { + return uintptr(0) + } + return Xasctime(tls, tm) +} + +func Xctime_r(tls *TLS, t uintptr, buf uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v buf=%v, (%v:)", tls, t, buf, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var tm_p, v1 uintptr + var _ /* tm at bp+0 */ Ttm + _, _ = tm_p, v1 + tm_p = Xlocaltime_r(tls, t, bp) + if tm_p != 0 { + v1 = Xasctime_r(tls, tm_p, buf) + } else { + v1 = uintptr(0) + } + return v1 +} + +func Xdifftime(tls *TLS, t1 Ttime_t, t0 Ttime_t) (r float64) { + if __ccgo_strace { + trc("tls=%v t1=%v t0=%v, (%v:)", tls, t1, t0, origin(2)) + defer func() { trc("-> %v", r) }() + } + return float64(t1 - t0) +} + +type Ttimeb = struct { + Ftime Ttime_t + Fmillitm uint16 + Ftimezone int16 + Fdstflag int16 +} + +func Xftime(tls *TLS, tp uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v tp=%v, (%v:)", tls, tp, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1 int16 + var _ /* ts at bp+0 */ Ttimespec + _ = v1 + Xclock_gettime(tls, CLOCK_REALTIME, bp) + (*Ttimeb)(unsafe.Pointer(tp)).Ftime = (**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec + (*Ttimeb)(unsafe.Pointer(tp)).Fmillitm = Uint16FromInt64((**(**Ttimespec)(__ccgo_up(bp))).Ftv_nsec / int64(1000000)) + v1 = Int16FromInt32(0) + (*Ttimeb)(unsafe.Pointer(tp)).Fdstflag = v1 + (*Ttimeb)(unsafe.Pointer(tp)).Ftimezone = v1 + return 0 +} + +func Xgetdate(tls *TLS, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(112) + defer tls.Free(112) + var datemsk, f, p, ret uintptr + var _ /* cs at bp+100 */ int32 + var _ /* fmt at bp+0 */ [100]uint8 + _, _, _, _ = datemsk, f, p, ret + ret = uintptr(0) + datemsk = Xgetenv(tls, __ccgo_ts+1842) + f = uintptr(0) + _pthread_setcancelstate(tls, PTHREAD_CANCEL_DEFERRED, bp+100) + if !(datemsk != 0) { + Xgetdate_err = int32(1) + goto out + } + f = Xfopen(tls, datemsk, __ccgo_ts+404) + if !(f != 0) { + if **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(ENOMEM) { + Xgetdate_err = int32(6) + } else { + Xgetdate_err = int32(2) + } + goto out + } + for Xfgets(tls, bp, int32(100), f) != 0 { + p = Xstrptime(tls, s, bp, uintptr(unsafe.Pointer(&_tmbuf))) + if p != 0 && !(**(**uint8)(__ccgo_up(p)) != 0) { + ret = uintptr(unsafe.Pointer(&_tmbuf)) + goto out + } + } + if Xferror(tls, f) != 0 { + Xgetdate_err = int32(5) + } else { + Xgetdate_err = int32(7) + } + goto out +out: + ; + if f != 0 { + Xfclose(tls, f) + } + _pthread_setcancelstate(tls, **(**int32)(__ccgo_up(bp + 100)), uintptr(0)) + return ret +} + +var _tmbuf Ttm + +func Xgettimeofday(tls *TLS, tv uintptr, tz uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v tv=%v tz=%v, (%v:)", tls, tv, tz, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* ts at bp+0 */ Ttimespec + if !(tv != 0) { + return 0 + } + Xclock_gettime(tls, CLOCK_REALTIME, bp) + (*Ttimeval)(unsafe.Pointer(tv)).Ftv_sec = (**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec + (*Ttimeval)(unsafe.Pointer(tv)).Ftv_usec = int64(int32((**(**Ttimespec)(__ccgo_up(bp))).Ftv_nsec) / int32(1000)) + return 0 +} + +func Xgmtime(tls *TLS, t uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v, (%v:)", tls, t, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__gmtime_r(tls, t, uintptr(unsafe.Pointer(&_tm))) +} + +var _tm Ttm + +func X__gmtime_r(tls *TLS, t uintptr, tm uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v tm=%v, (%v:)", tls, t, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + if X__secs_to_tm(tls, int64(**(**Ttime_t)(__ccgo_up(t))), tm) < 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOVERFLOW) + return uintptr(0) + } + (*Ttm)(unsafe.Pointer(tm)).Ftm_isdst = 0 + (*Ttm)(unsafe.Pointer(tm)).F__tm_gmtoff = 0 + (*Ttm)(unsafe.Pointer(tm)).F__tm_zone = uintptr(unsafe.Pointer(&X__utc)) + return tm +} + +func Xgmtime_r(tls *TLS, t uintptr, tm uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v tm=%v, (%v:)", tls, t, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__gmtime_r(tls, t, tm) +} + +func Xlocaltime(tls *TLS, t uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v, (%v:)", tls, t, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__localtime_r(tls, t, uintptr(unsafe.Pointer(&_tm1))) +} + +var _tm1 Ttm + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func X__localtime_r(tls *TLS, t uintptr, tm uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v tm=%v, (%v:)", tls, t, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + /* Reject time_t values whose year would overflow int because + * __secs_to_zone cannot safely handle them. */ + if int64(**(**Ttime_t)(__ccgo_up(t))) < int64(-Int32FromInt32(1)-Int32FromInt32(0x7fffffff))*Int64FromInt64(31622400) || int64(**(**Ttime_t)(__ccgo_up(t))) > Int64FromInt32(INT_MAX)*Int64FromInt64(31622400) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOVERFLOW) + return uintptr(0) + } + X__secs_to_zone(tls, int64(**(**Ttime_t)(__ccgo_up(t))), 0, tm+32, tm+40, uintptr(0), tm+48) + if X__secs_to_tm(tls, int64(**(**Ttime_t)(__ccgo_up(t)))+(*Ttm)(unsafe.Pointer(tm)).F__tm_gmtoff, tm) < 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOVERFLOW) + return uintptr(0) + } + return tm +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xlocaltime_r(tls *TLS, t uintptr, tm uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v tm=%v, (%v:)", tls, t, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__localtime_r(tls, t, tm) +} + +func Xmktime(tls *TLS, tm uintptr) (r Ttime_t) { + if __ccgo_strace { + trc("tls=%v tm=%v, (%v:)", tls, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var t int64 + var _ /* new at bp+0 */ Ttm + var _ /* opp at bp+56 */ int64 + _ = t + t = X__tm_to_secs(tls, tm) + X__secs_to_zone(tls, t, int32(1), bp+32, bp+40, bp+56, bp+48) + if (*Ttm)(unsafe.Pointer(tm)).Ftm_isdst >= 0 && (**(**Ttm)(__ccgo_up(bp))).Ftm_isdst != (*Ttm)(unsafe.Pointer(tm)).Ftm_isdst { + t = t - int64(**(**int64)(__ccgo_up(bp + 56))-(**(**Ttm)(__ccgo_up(bp))).F__tm_gmtoff) + } + t = t - int64((**(**Ttm)(__ccgo_up(bp))).F__tm_gmtoff) + if t != t { + goto error + } + X__secs_to_zone(tls, t, 0, bp+32, bp+40, bp+56, bp+48) + if X__secs_to_tm(tls, t+int64((**(**Ttm)(__ccgo_up(bp))).F__tm_gmtoff), bp) < 0 { + goto error + } + **(**Ttm)(__ccgo_up(tm)) = **(**Ttm)(__ccgo_up(bp)) + return t + goto error +error: + ; + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOVERFLOW) + return int64(-int32(1)) +} + +func Xnanosleep(tls *TLS, req uintptr, rem uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v req=%v rem=%v, (%v:)", tls, req, rem, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt32(-X__clock_nanosleep(tls, CLOCK_REALTIME, 0, req, rem)))) +} + +func _is_leap(tls *TLS, y int32) (r int32) { + /* Avoid overflow */ + if y > Int32FromInt32(INT_MAX)-Int32FromInt32(1900) { + y = y - int32(2000) + } + y = y + int32(1900) + return BoolInt32(!(y%Int32FromInt32(4) != 0) && (y%int32(100) != 0 || !(y%Int32FromInt32(400) != 0))) +} + +func _week_num(tls *TLS, tm uintptr) (r int32) { + var dec31, jan1, val int32 + _, _, _ = dec31, jan1, val + val = Int32FromUint32((Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_yday) + uint32(7) - (Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_wday)+uint32(6))%uint32(7)) / uint32(7)) + /* If 1 Jan is just 1-3 days past Monday, + * the previous week is also in this year. */ + if (Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_wday)+uint32(371)-Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_yday)-uint32(2))%uint32(7) <= uint32(2) { + val = val + 1 + } + if !(val != 0) { + val = int32(52) + /* If 31 December of prev year a Thursday, + * or Friday of a leap year, then the + * prev year has 53 weeks. */ + dec31 = Int32FromUint32((Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_wday) + uint32(7) - Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_yday) - uint32(1)) % uint32(7)) + if dec31 == int32(4) || dec31 == int32(5) && _is_leap(tls, (*Ttm)(unsafe.Pointer(tm)).Ftm_year%int32(400)-int32(1)) != 0 { + val = val + 1 + } + } else { + if val == int32(53) { + /* If 1 January is not a Thursday, and not + * a Wednesday of a leap year, then this + * year has only 52 weeks. */ + jan1 = Int32FromUint32((Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_wday) + uint32(371) - Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_yday)) % uint32(7)) + if jan1 != int32(4) && (jan1 != int32(3) || !(_is_leap(tls, (*Ttm)(unsafe.Pointer(tm)).Ftm_year) != 0)) { + val = int32(1) + } + } + } + return val +} + +func X__strftime_fmt_1(tls *TLS, s uintptr, l uintptr, f int32, tm uintptr, loc Tlocale_t, pad int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v l=%v f=%v tm=%v loc=%v pad=%v, (%v:)", tls, s, l, f, tm, loc, pad, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var d, fmt, v4, v5 uintptr + var def_pad, width, v1 int32 + var item Tnl_item + var val int64 + _, _, _, _, _, _, _, _, _ = d, def_pad, fmt, item, val, width, v1, v4, v5 + fmt = __ccgo_ts + 1692 + width = int32(2) + def_pad = int32('0') + switch f { + case int32('a'): + if Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_wday) > uint32(6) { + goto string + } + item = int32(ABDAY_1) + (*Ttm)(unsafe.Pointer(tm)).Ftm_wday + goto nl_strcat + case int32('A'): + if Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_wday) > uint32(6) { + goto string + } + item = int32(DAY_1) + (*Ttm)(unsafe.Pointer(tm)).Ftm_wday + goto nl_strcat + case int32('h'): + fallthrough + case int32('b'): + if Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_mon) > uint32(11) { + goto string + } + item = int32(ABMON_1) + (*Ttm)(unsafe.Pointer(tm)).Ftm_mon + goto nl_strcat + case int32('B'): + if Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_mon) > uint32(11) { + goto string + } + item = int32(MON_1) + (*Ttm)(unsafe.Pointer(tm)).Ftm_mon + goto nl_strcat + case int32('c'): + item = int32(D_T_FMT) + goto nl_strftime + case int32('C'): + val = (int64(1900) + int64((*Ttm)(unsafe.Pointer(tm)).Ftm_year)) / int64(100) + goto number + case int32('e'): + def_pad = int32('_') + fallthrough + case int32('d'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_mday) + goto number + case int32('D'): + fmt = __ccgo_ts + 1850 + goto recu_strftime + case int32('F'): + fmt = __ccgo_ts + 1859 + goto recu_strftime + case int32('g'): + fallthrough + case int32('G'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_year) + int64(1900) + if (*Ttm)(unsafe.Pointer(tm)).Ftm_yday < int32(3) && _week_num(tls, tm) != int32(1) { + val = val - 1 + } else { + if (*Ttm)(unsafe.Pointer(tm)).Ftm_yday > int32(360) && _week_num(tls, tm) == int32(1) { + val = val + 1 + } + } + if f == int32('g') { + val = val % int64(100) + } else { + width = int32(4) + } + goto number + case int32('H'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_hour) + goto number + case int32('l'): + def_pad = int32('_') + fallthrough + case int32('I'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_hour) + if !(val != 0) { + val = int64(12) + } else { + if val > int64(12) { + val = val - int64(12) + } + } + goto number + case int32('j'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_yday + int32(1)) + width = int32(3) + goto number + case int32('k'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_hour) + def_pad = int32('_') + goto number + case int32('m'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_mon + int32(1)) + goto number + case int32('M'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_min) + goto number + case int32('n'): + **(**Tsize_t)(__ccgo_up(l)) = uint64(1) + return __ccgo_ts + 390 + case int32('p'): + if (*Ttm)(unsafe.Pointer(tm)).Ftm_hour >= int32(12) { + v1 = int32(PM_STR) + } else { + v1 = int32(AM_STR) + } + item = v1 + goto nl_strcat + case int32('P'): + if (*Ttm)(unsafe.Pointer(tm)).Ftm_hour >= int32(12) { + v1 = int32(PM_STR) + } else { + v1 = int32(AM_STR) + } + item = v1 + fmt = X__nl_langinfo_l(tls, item, loc) + d = s + **(**Tsize_t)(__ccgo_up(l)) = uint64(0) + for { + if !(**(**uint8)(__ccgo_up(fmt)) != 0) { + break + } + v4 = d + d = d + 1 + v5 = fmt + fmt = fmt + 1 + **(**uint8)(__ccgo_up(v4)) = Uint8FromInt32(Xtolower(tls, Int32FromUint8(**(**uint8)(__ccgo_up(v5))))) + goto _3 + _3: + ; + **(**Tsize_t)(__ccgo_up(l)) = **(**Tsize_t)(__ccgo_up(l)) + 1 + } + return s + case int32('r'): + item = int32(T_FMT_AMPM) + goto nl_strftime + case int32('R'): + fmt = __ccgo_ts + 1868 + goto recu_strftime + case int32('s'): + val = X__tm_to_secs(tls, tm) - (*Ttm)(unsafe.Pointer(tm)).F__tm_gmtoff + width = int32(1) + goto number + case int32('S'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_sec) + goto number + case int32('t'): + **(**Tsize_t)(__ccgo_up(l)) = uint64(1) + return __ccgo_ts + 1430 + case int32('T'): + fmt = __ccgo_ts + 1874 + goto recu_strftime + case int32('u'): + if (*Ttm)(unsafe.Pointer(tm)).Ftm_wday != 0 { + v1 = (*Ttm)(unsafe.Pointer(tm)).Ftm_wday + } else { + v1 = int32(7) + } + val = int64(v1) + width = int32(1) + goto number + case int32('U'): + val = Int64FromUint32((Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_yday) + uint32(7) - Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_wday)) / uint32(7)) + goto number + case int32('W'): + val = Int64FromUint32((Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_yday) + uint32(7) - (Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_wday)+uint32(6))%uint32(7)) / uint32(7)) + goto number + case int32('V'): + val = int64(_week_num(tls, tm)) + goto number + case int32('w'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_wday) + width = int32(1) + goto number + case int32('x'): + item = int32(D_FMT) + goto nl_strftime + case int32('X'): + item = int32(T_FMT) + goto nl_strftime + case int32('y'): + val = (int64((*Ttm)(unsafe.Pointer(tm)).Ftm_year) + int64(1900)) % int64(100) + if val < 0 { + val = -val + } + goto number + case int32('Y'): + val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_year) + int64(1900) + if val >= int64(10000) { + **(**Tsize_t)(__ccgo_up(l)) = Uint64FromInt32(Xsnprintf(tls, s, uint64(100), __ccgo_ts+1883, VaList(bp+8, val))) + return s + } + width = int32(4) + goto number + case int32('z'): + if (*Ttm)(unsafe.Pointer(tm)).Ftm_isdst < 0 { + **(**Tsize_t)(__ccgo_up(l)) = uint64(0) + return __ccgo_ts + } + **(**Tsize_t)(__ccgo_up(l)) = Uint64FromInt32(Xsnprintf(tls, s, uint64(100), __ccgo_ts+1889, VaList(bp+8, (*Ttm)(unsafe.Pointer(tm)).F__tm_gmtoff/int64(3600)*int64(100)+(*Ttm)(unsafe.Pointer(tm)).F__tm_gmtoff%int64(3600)/int64(60)))) + return s + case int32('Z'): + if (*Ttm)(unsafe.Pointer(tm)).Ftm_isdst < 0 { + **(**Tsize_t)(__ccgo_up(l)) = uint64(0) + return __ccgo_ts + } + fmt = X__tm_to_tzname(tls, tm) + goto string + case int32('%'): + **(**Tsize_t)(__ccgo_up(l)) = uint64(1) + return __ccgo_ts + 437 + default: + return uintptr(0) + } + goto number +number: + ; + if pad != 0 { + v1 = pad + } else { + v1 = def_pad + } + switch v1 { + case int32('-'): + **(**Tsize_t)(__ccgo_up(l)) = Uint64FromInt32(Xsnprintf(tls, s, uint64(100), __ccgo_ts+1896, VaList(bp+8, val))) + case int32('_'): + **(**Tsize_t)(__ccgo_up(l)) = Uint64FromInt32(Xsnprintf(tls, s, uint64(100), __ccgo_ts+1901, VaList(bp+8, width, val))) + case int32('0'): + fallthrough + default: + **(**Tsize_t)(__ccgo_up(l)) = Uint64FromInt32(Xsnprintf(tls, s, uint64(100), __ccgo_ts+1907, VaList(bp+8, width, val))) + break + } + return s + goto nl_strcat +nl_strcat: + ; + fmt = X__nl_langinfo_l(tls, item, loc) + goto string +string: + ; + **(**Tsize_t)(__ccgo_up(l)) = _strlen(tls, fmt) + return fmt + goto nl_strftime +nl_strftime: + ; + fmt = X__nl_langinfo_l(tls, item, loc) + goto recu_strftime +recu_strftime: + ; + **(**Tsize_t)(__ccgo_up(l)) = X__strftime_l(tls, s, uint64(100), fmt, tm, loc) + if !(**(**Tsize_t)(__ccgo_up(l)) != 0) { + return uintptr(0) + } + return s +} + +func X__strftime_l(tls *TLS, s uintptr, n Tsize_t, f uintptr, tm uintptr, loc Tlocale_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v f=%v tm=%v loc=%v, (%v:)", tls, s, n, f, tm, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(128) + defer tls.Free(128) + var d, l, v2 Tsize_t + var pad, plus, v4 int32 + var t, v3 uintptr + var width uint64 + var v9 bool + var _ /* buf at bp+8 */ [100]uint8 + var _ /* k at bp+0 */ Tsize_t + var _ /* p at bp+112 */ uintptr + _, _, _, _, _, _, _, _, _, _ = d, l, pad, plus, t, width, v2, v3, v4, v9 + l = uint64(0) + for { + if !(l < n) { + break + } + if !(**(**uint8)(__ccgo_up(f)) != 0) { + **(**uint8)(__ccgo_up(s + uintptr(l))) = uint8(0) + return l + } + if Int32FromUint8(**(**uint8)(__ccgo_up(f))) != int32('%') { + v2 = l + l = l + 1 + **(**uint8)(__ccgo_up(s + uintptr(v2))) = **(**uint8)(__ccgo_up(f)) + goto _1 + } + f = f + 1 + pad = 0 + if Int32FromUint8(**(**uint8)(__ccgo_up(f))) == int32('-') || Int32FromUint8(**(**uint8)(__ccgo_up(f))) == int32('_') || Int32FromUint8(**(**uint8)(__ccgo_up(f))) == int32('0') { + v3 = f + f = f + 1 + pad = Int32FromUint8(**(**uint8)(__ccgo_up(v3))) + } + v4 = BoolInt32(Int32FromUint8(**(**uint8)(__ccgo_up(f))) == Int32FromUint8('+')) + plus = v4 + if v4 != 0 { + f = f + 1 + } + if BoolInt32(uint32(**(**uint8)(__ccgo_up(f)))-uint32('0') < uint32(10)) != 0 { + width = Xstrtoul(tls, f, bp+112, int32(10)) + } else { + width = uint64(0) + **(**uintptr)(__ccgo_up(bp + 112)) = f + } + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 112))))) == int32('C') || Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 112))))) == int32('F') || Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 112))))) == int32('G') || Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 112))))) == int32('Y') { + if !(width != 0) && **(**uintptr)(__ccgo_up(bp + 112)) != f { + width = uint64(1) + } + } else { + width = uint64(0) + } + f = **(**uintptr)(__ccgo_up(bp + 112)) + if Int32FromUint8(**(**uint8)(__ccgo_up(f))) == int32('E') || Int32FromUint8(**(**uint8)(__ccgo_up(f))) == int32('O') { + f = f + 1 + } + t = X__strftime_fmt_1(tls, bp+8, bp, Int32FromUint8(**(**uint8)(__ccgo_up(f))), tm, loc, pad) + if !(t != 0) { + break + } + if width != 0 { + /* Trim off any sign and leading zeros, then + * count remaining digits to determine behavior + * for the + flag. */ + if Int32FromUint8(**(**uint8)(__ccgo_up(t))) == int32('+') || Int32FromUint8(**(**uint8)(__ccgo_up(t))) == int32('-') { + t = t + 1 + **(**Tsize_t)(__ccgo_up(bp)) = **(**Tsize_t)(__ccgo_up(bp)) - 1 + } + for { + if !(Int32FromUint8(**(**uint8)(__ccgo_up(t))) == int32('0') && Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(t + 1)))-int32('0')) < uint32(10)) { + break + } + goto _5 + _5: + ; + t = t + 1 + **(**Tsize_t)(__ccgo_up(bp)) = **(**Tsize_t)(__ccgo_up(bp)) - 1 + } + if width < **(**Tsize_t)(__ccgo_up(bp)) { + width = **(**Tsize_t)(__ccgo_up(bp)) + } + d = uint64(0) + for { + if !(Uint32FromInt32(Int32FromUint8(**(**uint8)(__ccgo_up(t + uintptr(d))))-int32('0')) < uint32(10)) { + break + } + goto _6 + _6: + ; + d = d + 1 + } + if (*Ttm)(unsafe.Pointer(tm)).Ftm_year < -int32(1900) { + v2 = l + l = l + 1 + **(**uint8)(__ccgo_up(s + uintptr(v2))) = uint8('-') + width = width - 1 + } else { + if v9 = plus != 0; v9 { + if Int32FromUint8(**(**uint8)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 112))))) == int32('C') { + v4 = int32(3) + } else { + v4 = int32(5) + } + } + if v9 && d+(width-**(**Tsize_t)(__ccgo_up(bp))) >= Uint64FromInt32(v4) { + v2 = l + l = l + 1 + **(**uint8)(__ccgo_up(s + uintptr(v2))) = uint8('+') + width = width - 1 + } + } + for { + if !(width > **(**Tsize_t)(__ccgo_up(bp)) && l < n) { + break + } + v2 = l + l = l + 1 + **(**uint8)(__ccgo_up(s + uintptr(v2))) = uint8('0') + goto _11 + _11: + ; + width = width - 1 + } + } + if **(**Tsize_t)(__ccgo_up(bp)) > n-l { + **(**Tsize_t)(__ccgo_up(bp)) = n - l + } + Xmemcpy(tls, s+uintptr(l), t, **(**Tsize_t)(__ccgo_up(bp))) + l = l + **(**Tsize_t)(__ccgo_up(bp)) + goto _1 + _1: + ; + f = f + 1 + } + if n != 0 { + if l == n { + l = n - uint64(1) + } + **(**uint8)(__ccgo_up(s + uintptr(l))) = uint8(0) + } + return uint64(0) +} + +func Xstrftime(tls *TLS, s uintptr, n Tsize_t, f uintptr, tm uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v f=%v tm=%v, (%v:)", tls, s, n, f, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__strftime_l(tls, s, n, f, tm, (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale) +} + +func Xstrftime_l(tls *TLS, s uintptr, n Tsize_t, f uintptr, tm uintptr, loc Tlocale_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v f=%v tm=%v loc=%v, (%v:)", tls, s, n, f, tm, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__strftime_l(tls, s, n, f, tm, loc) +} + +func Xstrptime(tls *TLS, s uintptr, f uintptr, tm uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v f=%v tm=%v, (%v:)", tls, s, f, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var adj, i, min, neg, range1, w, want_century, v1, v2, v5, v6 int32 + var dest, ex, v9 uintptr + var len1 Tsize_t + var v8 bool + var _ /* century at bp+4 */ int32 + var _ /* dummy at bp+0 */ int32 + var _ /* new_f at bp+16 */ uintptr + var _ /* relyear at bp+8 */ int32 + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = adj, dest, ex, i, len1, min, neg, range1, w, want_century, v1, v2, v5, v6, v8, v9 + want_century = 0 + **(**int32)(__ccgo_up(bp + 4)) = 0 + **(**int32)(__ccgo_up(bp + 8)) = 0 + for **(**uint8)(__ccgo_up(f)) != 0 { + if Int32FromUint8(**(**uint8)(__ccgo_up(f))) != int32('%') { + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(f))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _3 + _3: + if v2 != 0 { + for { + if v8 = **(**uint8)(__ccgo_up(s)) != 0; v8 { + v5 = Int32FromUint8(**(**uint8)(__ccgo_up(s))) + v6 = BoolInt32(v5 == int32(' ') || Uint32FromInt32(v5)-uint32('\t') < uint32(5)) + goto _7 + _7: + } + if !(v8 && v6 != 0) { + break + } + goto _4 + _4: + ; + s = s + 1 + } + } else { + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) != Int32FromUint8(**(**uint8)(__ccgo_up(f))) { + return uintptr(0) + } else { + s = s + 1 + } + } + f = f + 1 + continue + } + f = f + 1 + if Int32FromUint8(**(**uint8)(__ccgo_up(f))) == int32('+') { + f = f + 1 + } + if BoolInt32(uint32(**(**uint8)(__ccgo_up(f)))-uint32('0') < uint32(10)) != 0 { + w = Int32FromUint64(Xstrtoul(tls, f, bp+16, int32(10))) + f = **(**uintptr)(__ccgo_up(bp + 16)) + } else { + w = -int32(1) + } + adj = 0 + v9 = f + f = f + 1 + switch Int32FromUint8(**(**uint8)(__ccgo_up(v9))) { + case int32('A'): + goto _10 + case int32('a'): + goto _11 + case int32('h'): + goto _12 + case int32('B'): + goto _13 + case int32('b'): + goto _14 + case int32('c'): + goto _15 + case int32('C'): + goto _16 + case int32('e'): + goto _17 + case int32('d'): + goto _18 + case int32('D'): + goto _19 + case int32('H'): + goto _20 + case int32('I'): + goto _21 + case int32('j'): + goto _22 + case int32('m'): + goto _23 + case int32('M'): + goto _24 + case int32('t'): + goto _25 + case int32('n'): + goto _26 + case int32('p'): + goto _27 + case int32('r'): + goto _28 + case int32('R'): + goto _29 + case int32('S'): + goto _30 + case int32('T'): + goto _31 + case int32('W'): + goto _32 + case int32('U'): + goto _33 + case int32('w'): + goto _34 + case int32('x'): + goto _35 + case int32('X'): + goto _36 + case int32('y'): + goto _37 + case int32('Y'): + goto _38 + case int32('%'): + goto _39 + default: + goto _40 + } + goto _41 + _11: + ; + _10: + ; + dest = tm + 24 + min = int32(ABDAY_1) + range1 = int32(7) + goto symbolic_range + _14: + ; + _13: + ; + _12: + ; + dest = tm + 16 + min = int32(ABMON_1) + range1 = int32(12) + goto symbolic_range + _15: + ; + s = Xstrptime(tls, s, Xnl_langinfo(tls, int32(D_T_FMT)), tm) + if !(s != 0) { + return uintptr(0) + } + goto _41 + _16: + ; + dest = bp + 4 + if w < 0 { + w = int32(2) + } + want_century = want_century | int32(2) + goto numeric_digits + _18: + ; + _17: + ; + dest = tm + 12 + min = int32(1) + range1 = int32(31) + goto numeric_range + _19: + ; + s = Xstrptime(tls, s, __ccgo_ts+1850, tm) + if !(s != 0) { + return uintptr(0) + } + goto _41 + _20: + ; + dest = tm + 8 + min = 0 + range1 = int32(24) + goto numeric_range + _21: + ; + dest = tm + 8 + min = int32(1) + range1 = int32(12) + goto numeric_range + _22: + ; + dest = tm + 28 + min = int32(1) + range1 = int32(366) + adj = int32(1) + goto numeric_range + _23: + ; + dest = tm + 16 + min = int32(1) + range1 = int32(12) + adj = int32(1) + goto numeric_range + _24: + ; + dest = tm + 4 + min = 0 + range1 = int32(60) + goto numeric_range + _26: + ; + _25: + ; + _44: + ; + if v8 = **(**uint8)(__ccgo_up(s)) != 0; v8 { + v1 = Int32FromUint8(**(**uint8)(__ccgo_up(s))) + v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5)) + goto _47 + _47: + } + if !(v8 && v2 != 0) { + goto _42 + } + goto _43 + _43: + ; + s = s + 1 + goto _44 + goto _42 + _42: + ; + goto _41 + _27: + ; + ex = Xnl_langinfo(tls, int32(AM_STR)) + len1 = _strlen(tls, ex) + if !(Xstrncasecmp(tls, s, ex, len1) != 0) { + **(**int32)(__ccgo_up(tm + 8)) %= int32(12) + s = s + uintptr(len1) + goto _41 + } + ex = Xnl_langinfo(tls, int32(PM_STR)) + len1 = _strlen(tls, ex) + if !(Xstrncasecmp(tls, s, ex, len1) != 0) { + **(**int32)(__ccgo_up(tm + 8)) %= int32(12) + **(**int32)(__ccgo_up(tm + 8)) += int32(12) + s = s + uintptr(len1) + goto _41 + } + return uintptr(0) + _28: + ; + s = Xstrptime(tls, s, Xnl_langinfo(tls, int32(T_FMT_AMPM)), tm) + if !(s != 0) { + return uintptr(0) + } + goto _41 + _29: + ; + s = Xstrptime(tls, s, __ccgo_ts+1868, tm) + if !(s != 0) { + return uintptr(0) + } + goto _41 + _30: + ; + dest = tm + min = 0 + range1 = int32(61) + goto numeric_range + _31: + ; + s = Xstrptime(tls, s, __ccgo_ts+1874, tm) + if !(s != 0) { + return uintptr(0) + } + goto _41 + _33: + ; + _32: + ; + /* Throw away result, for now. (FIXME?) */ + dest = bp + min = 0 + range1 = int32(54) + goto numeric_range + _34: + ; + dest = tm + 24 + min = 0 + range1 = int32(7) + goto numeric_range + _35: + ; + s = Xstrptime(tls, s, Xnl_langinfo(tls, int32(D_FMT)), tm) + if !(s != 0) { + return uintptr(0) + } + goto _41 + _36: + ; + s = Xstrptime(tls, s, Xnl_langinfo(tls, int32(T_FMT)), tm) + if !(s != 0) { + return uintptr(0) + } + goto _41 + _37: + ; + dest = bp + 8 + w = int32(2) + want_century = want_century | int32(1) + goto numeric_digits + _38: + ; + dest = tm + 20 + if w < 0 { + w = int32(4) + } + adj = int32(1900) + want_century = 0 + goto numeric_digits + _39: + ; + v9 = s + s = s + 1 + if Int32FromUint8(**(**uint8)(__ccgo_up(v9))) != int32('%') { + return uintptr(0) + } + goto _41 + _40: + ; + return uintptr(0) + goto numeric_range + numeric_range: + ; + if !(BoolInt32(uint32(**(**uint8)(__ccgo_up(s)))-Uint32FromUint8('0') < Uint32FromInt32(10)) != 0) { + return uintptr(0) + } + **(**int32)(__ccgo_up(dest)) = 0 + i = int32(1) + for { + if !(i <= min+range1 && BoolInt32(uint32(**(**uint8)(__ccgo_up(s)))-uint32('0') < uint32(10)) != 0) { + break + } + v9 = s + s = s + 1 + **(**int32)(__ccgo_up(dest)) = **(**int32)(__ccgo_up(dest))*int32(10) + Int32FromUint8(**(**uint8)(__ccgo_up(v9))) - int32('0') + goto _50 + _50: + ; + i = i * int32(10) + } + if Uint32FromInt32(**(**int32)(__ccgo_up(dest))-min) >= Uint32FromInt32(range1) { + return uintptr(0) + } + **(**int32)(__ccgo_up(dest)) -= adj + switch int64(dest) - int64(tm) { + case Int64FromUint64(uint64(UintptrFromInt32(0) + 28)): + } + goto update + goto numeric_digits + numeric_digits: + ; + neg = 0 + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('+') { + s = s + 1 + } else { + if Int32FromUint8(**(**uint8)(__ccgo_up(s))) == int32('-') { + neg = int32(1) + s = s + 1 + } + } + if !(BoolInt32(uint32(**(**uint8)(__ccgo_up(s)))-Uint32FromUint8('0') < Uint32FromInt32(10)) != 0) { + return uintptr(0) + } + v1 = Int32FromInt32(0) + i = v1 + **(**int32)(__ccgo_up(dest)) = v1 + for { + if !(i < w && BoolInt32(uint32(**(**uint8)(__ccgo_up(s)))-uint32('0') < uint32(10)) != 0) { + break + } + v9 = s + s = s + 1 + **(**int32)(__ccgo_up(dest)) = **(**int32)(__ccgo_up(dest))*int32(10) + Int32FromUint8(**(**uint8)(__ccgo_up(v9))) - int32('0') + goto _52 + _52: + ; + i = i + 1 + } + if neg != 0 { + **(**int32)(__ccgo_up(dest)) = -**(**int32)(__ccgo_up(dest)) + } + **(**int32)(__ccgo_up(dest)) -= adj + goto update + goto symbolic_range + symbolic_range: + ; + i = int32(2)*range1 - int32(1) + for { + if !(i >= 0) { + break + } + ex = Xnl_langinfo(tls, min+i) + len1 = _strlen(tls, ex) + if Xstrncasecmp(tls, s, ex, len1) != 0 { + goto _55 + } + s = s + uintptr(len1) + **(**int32)(__ccgo_up(dest)) = i % range1 + break + goto _55 + _55: + ; + i = i - 1 + } + if i < 0 { + return uintptr(0) + } + goto update + goto update + update: + ; + //FIXME + _41: + } + if want_century != 0 { + (*Ttm)(unsafe.Pointer(tm)).Ftm_year = **(**int32)(__ccgo_up(bp + 8)) + if want_century&int32(2) != 0 { + **(**int32)(__ccgo_up(tm + 20)) += **(**int32)(__ccgo_up(bp + 4))*int32(100) - int32(1900) + } else { + if (*Ttm)(unsafe.Pointer(tm)).Ftm_year <= int32(68) { + **(**int32)(__ccgo_up(tm + 20)) += int32(100) + } + } + } + return s +} + +func Xtime(tls *TLS, t uintptr) (r Ttime_t) { + if __ccgo_strace { + trc("tls=%v t=%v, (%v:)", tls, t, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* ts at bp+0 */ Ttimespec + X__clock_gettime(tls, CLOCK_REALTIME, bp) + if t != 0 { + **(**Ttime_t)(__ccgo_up(t)) = (**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec + } + return (**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec +} + +func Xtimegm(tls *TLS, tm uintptr) (r Ttime_t) { + if __ccgo_strace { + trc("tls=%v tm=%v, (%v:)", tls, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var t int64 + var _ /* new at bp+0 */ Ttm1 + _ = t + t = X__tm_to_secs(tls, tm) + if X__secs_to_tm(tls, t, bp) < 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EOVERFLOW) + return int64(-int32(1)) + } + **(**Ttm1)(__ccgo_up(tm)) = **(**Ttm1)(__ccgo_up(bp)) + (*Ttm1)(unsafe.Pointer(tm)).Ftm_isdst = 0 + (*Ttm1)(unsafe.Pointer(tm)).Ftm_gmtoff = 0 + (*Ttm1)(unsafe.Pointer(tm)).Ftm_zone = uintptr(unsafe.Pointer(&X__utc)) + return t +} + +func Xtimer_delete(tls *TLS, t Ttimer_t) (r int32) { + if __ccgo_strace { + trc("tls=%v t=%v, (%v:)", tls, t, origin(2)) + defer func() { trc("-> %v", r) }() + } + var td Tpthread_t + _ = td + if int64(t) < 0 { + td = uintptr(uint64(t) << Int32FromInt32(1)) + // __asm__ __volatile__ ("bcr 15,0" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 23, __ccgo_ts+1914) + AtomicStorePInt32(td+164, AtomicLoadPInt32(td+164)|(-Int32FromInt32(1)-Int32FromInt32(0x7fffffff))) + // __asm__ __volatile__ ("bcr 15,0" : : : "memory"); + X__assert_fail(tls, __ccgo_ts+212, __ccgo_ts+247, 23, __ccgo_ts+1914) + X__syscall2(tls, int64(SYS_tkill), int64((*t__pthread)(unsafe.Pointer(td)).Ftid), int64(Int32FromInt32(SIGTIMER))) + return 0 + } + return int32(X__syscall1(tls, int64(SYS_timer_delete), int64(t))) +} + +func Xtimer_getoverrun(tls *TLS, t Ttimer_t) (r int32) { + if __ccgo_strace { + trc("tls=%v t=%v, (%v:)", tls, t, origin(2)) + defer func() { trc("-> %v", r) }() + } + var td Tpthread_t + _ = td + if int64(t) < 0 { + td = uintptr(uint64(t) << Int32FromInt32(1)) + t = uintptr(Uint64FromInt32(AtomicLoadPInt32(td+164) & Int32FromInt32(INT_MAX))) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_timer_getoverrun), int64(t))))) +} + +func Xtimer_gettime(tls *TLS, t Ttimer_t, val uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v t=%v val=%v, (%v:)", tls, t, val, origin(2)) + defer func() { trc("-> %v", r) }() + } + var td Tpthread_t + _ = td + if int64(t) < 0 { + td = uintptr(uint64(t) << Int32FromInt32(1)) + t = uintptr(Uint64FromInt32(AtomicLoadPInt32(td+164) & Int32FromInt32(INT_MAX))) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_timer_gettime), int64(t), int64(val))))) +} + +func Xtimer_settime(tls *TLS, t Ttimer_t, flags int32, val uintptr, old uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v t=%v flags=%v val=%v old=%v, (%v:)", tls, t, flags, val, old, origin(2)) + defer func() { trc("-> %v", r) }() + } + var td Tpthread_t + _ = td + if int64(t) < 0 { + td = uintptr(uint64(t) << Int32FromInt32(1)) + t = uintptr(Uint64FromInt32(AtomicLoadPInt32(td+164) & Int32FromInt32(INT_MAX))) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_timer_settime), int64(t), int64(flags), int64(val), int64(old))))) +} + +type Ttms = struct { + Ftms_utime Tclock_t + Ftms_stime Tclock_t + Ftms_cutime Tclock_t + Ftms_cstime Tclock_t +} + +func Xtimes(tls *TLS, tms uintptr) (r Tclock_t) { + if __ccgo_strace { + trc("tls=%v tms=%v, (%v:)", tls, tms, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall1(tls, int64(SYS_times), int64(tms)) +} + +// C documentation +// +// /* There is no other implemented value than TIME_UTC; all other values +// * are considered erroneous. */ +func Xtimespec_get(tls *TLS, ts uintptr, base int32) (r int32) { + if __ccgo_strace { + trc("tls=%v ts=%v base=%v, (%v:)", tls, ts, base, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret, v1 int32 + _, _ = ret, v1 + if base != int32(TIME_UTC) { + return 0 + } + ret = X__clock_gettime(tls, CLOCK_REALTIME, ts) + if ret < 0 { + v1 = 0 + } else { + v1 = base + } + return v1 +} + +type Tutimbuf = struct { + Factime Ttime_t + Fmodtime Ttime_t +} + +func Xutime(tls *TLS, path uintptr, times uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v times=%v, (%v:)", tls, path, times, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var v1 uintptr + _ = v1 + if times != 0 { + *(*[2]Ttimespec)(unsafe.Pointer(bp)) = [2]Ttimespec{ + 0: { + Ftv_sec: (*Tutimbuf)(unsafe.Pointer(times)).Factime, + }, + 1: { + Ftv_sec: (*Tutimbuf)(unsafe.Pointer(times)).Fmodtime, + }, + } + v1 = bp + } else { + v1 = uintptr(0) + } + return Xutimensat(tls, -int32(100), path, v1, 0) +} + +func X__wcsftime_l(tls *TLS, s uintptr, n Tsize_t, f uintptr, tm uintptr, loc Tlocale_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v f=%v tm=%v loc=%v, (%v:)", tls, s, n, f, tm, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(528) + defer tls.Free(528) + var l, v2 Tsize_t + var pad, plus, v4 int32 + var t, t_mb, v3 uintptr + var width uint64 + var _ /* buf at bp+8 */ [100]uint8 + var _ /* k at bp+0 */ Tsize_t + var _ /* p at bp+512 */ uintptr + var _ /* wbuf at bp+108 */ [100]Twchar_t + _, _, _, _, _, _, _, _, _ = l, pad, plus, t, t_mb, width, v2, v3, v4 + l = uint64(0) + for { + if !(l < n) { + break + } + if !(**(**Twchar_t)(__ccgo_up(f)) != 0) { + **(**Twchar_t)(__ccgo_up(s + uintptr(l)*4)) = 0 + return l + } + if **(**Twchar_t)(__ccgo_up(f)) != int32('%') { + v2 = l + l = l + 1 + **(**Twchar_t)(__ccgo_up(s + uintptr(v2)*4)) = **(**Twchar_t)(__ccgo_up(f)) + goto _1 + } + f += 4 + pad = 0 + if **(**Twchar_t)(__ccgo_up(f)) == int32('-') || **(**Twchar_t)(__ccgo_up(f)) == int32('_') || **(**Twchar_t)(__ccgo_up(f)) == int32('0') { + v3 = f + f += 4 + pad = **(**Twchar_t)(__ccgo_up(v3)) + } + v4 = BoolInt32(**(**Twchar_t)(__ccgo_up(f)) == Int32FromUint8('+')) + plus = v4 + if v4 != 0 { + f += 4 + } + width = Xwcstoul(tls, f, bp+512, int32(10)) + if **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 512)))) == int32('C') || **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 512)))) == int32('F') || **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 512)))) == int32('G') || **(**Twchar_t)(__ccgo_up(**(**uintptr)(__ccgo_up(bp + 512)))) == int32('Y') { + if !(width != 0) && **(**uintptr)(__ccgo_up(bp + 512)) != f { + width = uint64(1) + } + } else { + width = uint64(0) + } + f = **(**uintptr)(__ccgo_up(bp + 512)) + if **(**Twchar_t)(__ccgo_up(f)) == int32('E') || **(**Twchar_t)(__ccgo_up(f)) == int32('O') { + f += 4 + } + t_mb = X__strftime_fmt_1(tls, bp+8, bp, **(**Twchar_t)(__ccgo_up(f)), tm, loc, pad) + if !(t_mb != 0) { + break + } + **(**Tsize_t)(__ccgo_up(bp)) = Xmbstowcs(tls, bp+108, t_mb, Uint64FromInt64(400)/Uint64FromInt64(4)) + if **(**Tsize_t)(__ccgo_up(bp)) == Uint64FromInt32(-Int32FromInt32(1)) { + return uint64(0) + } + t = bp + 108 + if width != 0 { + for { + if !(**(**Twchar_t)(__ccgo_up(t)) == int32('+') || **(**Twchar_t)(__ccgo_up(t)) == int32('-') || **(**Twchar_t)(__ccgo_up(t)) == int32('0') && **(**Twchar_t)(__ccgo_up(t + 1*4)) != 0) { + break + } + goto _5 + _5: + ; + t += 4 + **(**Tsize_t)(__ccgo_up(bp)) = **(**Tsize_t)(__ccgo_up(bp)) - 1 + } + width = width - 1 + if plus != 0 && (*Ttm)(unsafe.Pointer(tm)).Ftm_year >= Int32FromInt32(10000)-Int32FromInt32(1900) { + v2 = l + l = l + 1 + **(**Twchar_t)(__ccgo_up(s + uintptr(v2)*4)) = int32('+') + } else { + if (*Ttm)(unsafe.Pointer(tm)).Ftm_year < -int32(1900) { + v2 = l + l = l + 1 + **(**Twchar_t)(__ccgo_up(s + uintptr(v2)*4)) = int32('-') + } else { + width = width + 1 + } + } + for { + if !(width > **(**Tsize_t)(__ccgo_up(bp)) && l < n) { + break + } + v2 = l + l = l + 1 + **(**Twchar_t)(__ccgo_up(s + uintptr(v2)*4)) = int32('0') + goto _8 + _8: + ; + width = width - 1 + } + } + if **(**Tsize_t)(__ccgo_up(bp)) >= n-l { + **(**Tsize_t)(__ccgo_up(bp)) = n - l + } + Xwmemcpy(tls, s+uintptr(l)*4, t, **(**Tsize_t)(__ccgo_up(bp))) + l = l + **(**Tsize_t)(__ccgo_up(bp)) + goto _1 + _1: + ; + f += 4 + } + if n != 0 { + if l == n { + l = n - uint64(1) + } + **(**Twchar_t)(__ccgo_up(s + uintptr(l)*4)) = 0 + } + return uint64(0) +} + +func Xwcsftime(tls *TLS, wcs uintptr, n Tsize_t, f uintptr, tm uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v wcs=%v n=%v f=%v tm=%v, (%v:)", tls, wcs, n, f, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__wcsftime_l(tls, wcs, n, f, tm, (*t__pthread)(unsafe.Pointer(uintptr(___get_tp(tls)))).Flocale) +} + +func Xwcsftime_l(tls *TLS, s uintptr, n Tsize_t, f uintptr, tm uintptr, loc Tlocale_t) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v f=%v tm=%v loc=%v, (%v:)", tls, s, n, f, tm, loc, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__wcsftime_l(tls, s, n, f, tm, loc) +} + +func X_exit(tls *TLS, status int32) { + if __ccgo_strace { + trc("tls=%v status=%v, (%v:)", tls, status, origin(2)) + } + X_Exit(tls, status) +} + +func Xaccess(tls *TLS, filename uintptr, amode int32) (r int32) { + if __ccgo_strace { + trc("tls=%v filename=%v amode=%v, (%v:)", tls, filename, amode, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_access), int64(filename), int64(amode))))) +} + +func Xacct(tls *TLS, filename uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v filename=%v, (%v:)", tls, filename, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_acct), int64(filename))))) +} + +func Xalarm(tls *TLS, seconds uint32) (r uint32) { + if __ccgo_strace { + trc("tls=%v seconds=%v, (%v:)", tls, seconds, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var _ /* it at bp+0 */ Titimerval + var _ /* old at bp+32 */ Titimerval + **(**Titimerval)(__ccgo_up(bp)) = Titimerval{ + Fit_value: Ttimeval{ + Ftv_sec: Int64FromUint32(seconds), + }, + } + **(**Titimerval)(__ccgo_up(bp + 32)) = Titimerval{} + Xsetitimer(tls, ITIMER_REAL, bp, bp+32) + return Uint32FromInt64((**(**Titimerval)(__ccgo_up(bp + 32))).Fit_value.Ftv_sec + BoolInt64(!!((**(**Titimerval)(__ccgo_up(bp + 32))).Fit_value.Ftv_usec != 0))) +} + +func Xchdir(tls *TLS, path uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v, (%v:)", tls, path, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_chdir), int64(path))))) +} + +func Xchown(tls *TLS, path uintptr, uid Tuid_t, gid Tgid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v uid=%v gid=%v, (%v:)", tls, path, uid, gid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_chown), int64(path), Int64FromUint32(uid), Int64FromUint32(gid))))) +} + +func _dummy12(tls *TLS, fd int32) (r int32) { + return fd +} + +func Xclose(tls *TLS, fd int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r int32 + _ = r + fd = _dummy12(tls, fd) + r = int32(___syscall_cp(tls, int64(SYS_close), int64(fd), 0, 0, 0, 0, 0)) + if r == -int32(EINTR) { + r = 0 + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func Xctermid(tls *TLS, s uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + var v1 uintptr + _ = v1 + if s != 0 { + v1 = Xstrcpy(tls, s, __ccgo_ts+381) + } else { + v1 = __ccgo_ts + 381 + } + return v1 +} + +func Xdup(tls *TLS, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_dup), int64(fd))))) +} + +func Xdup2(tls *TLS, old int32, new1 int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v old=%v new1=%v, (%v:)", tls, old, new1, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v1 int32 + _, _ = r, v1 + for { + v1 = int32(X__syscall2(tls, int64(SYS_dup2), int64(old), int64(new1))) + r = v1 + if !(v1 == -int32(EBUSY)) { + break + } + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func X__dup3(tls *TLS, old int32, new1 int32, flags int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v old=%v new1=%v flags=%v, (%v:)", tls, old, new1, flags, origin(2)) + defer func() { trc("-> %v", r1) }() + } + var r, v1 int32 + _, _ = r, v1 + if old == new1 { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL)))) + } + if flags != 0 { + for { + v1 = int32(X__syscall3(tls, int64(SYS_dup3), int64(old), int64(new1), int64(flags))) + r = v1 + if !(v1 == -int32(EBUSY)) { + break + } + } + if r != -int32(ENOSYS) { + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) + } + if flags & ^Int32FromInt32(O_CLOEXEC) != 0 { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL)))) + } + } + for { + v1 = int32(X__syscall2(tls, int64(SYS_dup2), int64(old), int64(new1))) + r = v1 + if !(v1 == -int32(EBUSY)) { + break + } + } + if r >= 0 && flags&int32(O_CLOEXEC) != 0 { + X__syscall3(tls, int64(SYS_fcntl), int64(new1), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + } + return int32(X__syscall_ret(tls, Uint64FromInt32(r))) +} + +func Xdup3(tls *TLS, old int32, new1 int32, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v old=%v new1=%v flags=%v, (%v:)", tls, old, new1, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__dup3(tls, old, new1, flags) +} + +type Tctx1 = struct { + Ffd int32 + Ffilename uintptr + Famode int32 + Fp int32 +} + +func _checker(tls *TLS, p uintptr) (r int32) { + bp := tls.Alloc(16) + defer tls.Free(16) + var c uintptr + var _ /* ret at bp+0 */ int32 + _ = c + c = p + if X__syscall2(tls, int64(SYS_setregid), X__syscall0(tls, int64(SYS_getegid)), int64(-Int32FromInt32(1))) != 0 || X__syscall2(tls, int64(SYS_setreuid), X__syscall0(tls, int64(SYS_geteuid)), int64(-Int32FromInt32(1))) != 0 { + X__syscall1(tls, int64(SYS_exit), int64(Int32FromInt32(1))) + } + **(**int32)(__ccgo_up(bp)) = int32(X__syscall4(tls, int64(SYS_faccessat), int64((*Tctx1)(unsafe.Pointer(c)).Ffd), int64((*Tctx1)(unsafe.Pointer(c)).Ffilename), int64((*Tctx1)(unsafe.Pointer(c)).Famode), int64(Int32FromInt32(0)))) + X__syscall3(tls, int64(SYS_write), int64((*Tctx1)(unsafe.Pointer(c)).Fp), int64(bp), Int64FromUint64(Uint64FromInt64(4))) + return 0 +} + +func Xfaccessat(tls *TLS, fd int32, filename uintptr, amode int32, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v filename=%v amode=%v flag=%v, (%v:)", tls, fd, filename, amode, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret int32 + _ = ret + if flag != 0 { + ret = int32(X__syscall4(tls, int64(SYS_faccessat2), int64(fd), int64(filename), int64(amode), int64(flag))) + if ret != -int32(ENOSYS) { + return int32(X__syscall_ret(tls, Uint64FromInt32(ret))) + } + } + if flag & ^Int32FromInt32(AT_EACCESS) != 0 { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL)))) + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_faccessat), int64(fd), int64(filename), int64(amode))))) +} + +func Xfchdir(tls *TLS, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var ret int32 + var _ /* buf at bp+0 */ [27]uint8 + _ = ret + ret = int32(X__syscall1(tls, int64(SYS_fchdir), int64(fd))) + if ret != -int32(EBADF) || X__syscall2(tls, int64(SYS_fcntl), int64(fd), int64(Int32FromInt32(F_GETFD))) < 0 { + return int32(X__syscall_ret(tls, Uint64FromInt32(ret))) + } + X__procfdname(tls, bp, Uint32FromInt32(fd)) + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_chdir), int64(bp))))) +} + +func Xfchown(tls *TLS, fd int32, uid Tuid_t, gid Tgid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v uid=%v gid=%v, (%v:)", tls, fd, uid, gid, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var ret int32 + var _ /* buf at bp+0 */ [27]uint8 + _ = ret + ret = int32(X__syscall3(tls, int64(SYS_fchown), int64(fd), Int64FromUint32(uid), Int64FromUint32(gid))) + if ret != -int32(EBADF) || X__syscall2(tls, int64(SYS_fcntl), int64(fd), int64(Int32FromInt32(F_GETFD))) < 0 { + return int32(X__syscall_ret(tls, Uint64FromInt32(ret))) + } + X__procfdname(tls, bp, Uint32FromInt32(fd)) + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_chown), int64(bp), Int64FromUint32(uid), Int64FromUint32(gid))))) +} + +func Xfchownat(tls *TLS, fd int32, path uintptr, uid Tuid_t, gid Tgid_t, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v path=%v uid=%v gid=%v flag=%v, (%v:)", tls, fd, path, uid, gid, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_fchownat), int64(fd), int64(path), Int64FromUint32(uid), Int64FromUint32(gid), int64(flag))))) +} + +func Xfdatasync(tls *TLS, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_fdatasync), int64(fd), 0, 0, 0, 0, 0)))) +} + +func Xfsync(tls *TLS, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_fsync), int64(fd), 0, 0, 0, 0, 0)))) +} + +func Xftruncate(tls *TLS, fd int32, length Toff_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v length=%v, (%v:)", tls, fd, length, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_ftruncate), int64(fd), length)))) +} + +func Xgetcwd(tls *TLS, buf uintptr, size Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v buf=%v size=%v, (%v:)", tls, buf, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret int64 + var tmp, v3 uintptr + var v1 t__predefined_size_t + var v2 int32 + _, _, _, _, _ = ret, tmp, v1, v2, v3 + defer func() { Xrealloc(tls, tmp, 0) }() + if buf != 0 { + v2 = int32(1) + } else { + v2 = int32(PATH_MAX) + } + v1 = Uint64FromInt32(v2) + tmp = Xrealloc(tls, tmp, v1) + if !(buf != 0) { + buf = tmp + size = v1 + } else { + if !(size != 0) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EINVAL) + return uintptr(0) + } + } + ret = X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_getcwd), int64(buf), Int64FromUint64(size)))) + if ret < 0 { + return uintptr(0) + } + if ret == 0 || Int32FromUint8(**(**uint8)(__ccgo_up(buf))) != int32('/') { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOENT) + return uintptr(0) + } + if buf == tmp { + v3 = Xstrdup(tls, buf) + } else { + v3 = buf + } + return v3 +} + +func Xgetegid(tls *TLS) (r Tgid_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Uint32FromInt64(X__syscall0(tls, int64(SYS_getegid))) +} + +func Xgeteuid(tls *TLS) (r Tuid_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Uint32FromInt64(X__syscall0(tls, int64(SYS_geteuid))) +} + +func Xgetgid(tls *TLS) (r Tgid_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Uint32FromInt64(X__syscall0(tls, int64(SYS_getgid))) +} + +func Xgetgroups(tls *TLS, count int32, list uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v count=%v list=%v, (%v:)", tls, count, list, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_getgroups), int64(count), int64(list))))) +} + +func Xgethostname(tls *TLS, name uintptr, len1 Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v len1=%v, (%v:)", tls, name, len1, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(400) + defer tls.Free(400) + var i Tsize_t + var v2 uint8 + var v3 bool + var _ /* uts at bp+0 */ Tutsname1 + _, _, _ = i, v2, v3 + if Xuname(tls, bp) != 0 { + return -int32(1) + } + if len1 > uint64(65) { + len1 = uint64(65) + } + i = uint64(0) + for { + if v3 = i < len1; v3 { + v2 = **(**uint8)(__ccgo_up(bp + 65 + uintptr(i))) + **(**uint8)(__ccgo_up(name + uintptr(i))) = v2 + } + if !(v3 && v2 != 0) { + break + } + goto _1 + _1: + ; + i = i + 1 + } + if i != 0 && i == len1 { + **(**uint8)(__ccgo_up(name + uintptr(i-uint64(1)))) = uint8(0) + } + return 0 +} + +func Xgetlogin(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgetenv(tls, __ccgo_ts+1927) +} + +func Xgetlogin_r(tls *TLS, name uintptr, size Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v name=%v size=%v, (%v:)", tls, name, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + var logname uintptr + _ = logname + logname = Xgetlogin(tls) + if !(logname != 0) { + return int32(ENXIO) + } /* or...? */ + if _strlen(tls, logname) >= size { + return int32(ERANGE) + } + Xstrcpy(tls, name, logname) + return 0 +} + +func Xgetpgid(tls *TLS, pid Tpid_t) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v pid=%v, (%v:)", tls, pid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_getpgid), int64(pid))))) +} + +func Xgetpgrp(tls *TLS) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall1(tls, int64(SYS_getpgid), int64(Int32FromInt32(0)))) +} + +func Xgetpid(tls *TLS) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall0(tls, int64(SYS_getpid))) +} + +func Xgetppid(tls *TLS) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall0(tls, int64(SYS_getppid))) +} + +func Xgetsid(tls *TLS, pid Tpid_t) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v pid=%v, (%v:)", tls, pid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_getsid), int64(pid))))) +} + +func Xgetuid(tls *TLS) (r Tuid_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Uint32FromInt64(X__syscall0(tls, int64(SYS_getuid))) +} + +func Xisatty(tls *TLS, fd int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var r uint64 + var _ /* wsz at bp+0 */ Twinsize + _ = r + r = Uint64FromInt64(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_ioctl), int64(fd), int64(Int32FromInt32(TIOCGWINSZ)), int64(bp))))) + if r == uint64(0) { + return int32(1) + } + if **(**int32)(__ccgo_up(X__errno_location(tls))) != int32(EBADF) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(ENOTTY) + } + return 0 +} + +func Xlchown(tls *TLS, path uintptr, uid Tuid_t, gid Tgid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v uid=%v gid=%v, (%v:)", tls, path, uid, gid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_lchown), int64(path), Int64FromUint32(uid), Int64FromUint32(gid))))) +} + +func Xlink(tls *TLS, existing uintptr, new1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v existing=%v new1=%v, (%v:)", tls, existing, new1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_link), int64(existing), int64(new1))))) +} + +func Xlinkat(tls *TLS, fd1 int32, existing uintptr, fd2 int32, new1 uintptr, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd1=%v existing=%v fd2=%v new1=%v flag=%v, (%v:)", tls, fd1, existing, fd2, new1, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_linkat), int64(fd1), int64(existing), int64(fd2), int64(new1), int64(flag))))) +} + +func X__lseek(tls *TLS, fd int32, offset Toff_t, whence int32) (r Toff_t) { + if __ccgo_strace { + trc("tls=%v fd=%v offset=%v whence=%v, (%v:)", tls, fd, offset, whence, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_lseek), int64(fd), offset, int64(whence)))) +} + +func Xlseek(tls *TLS, fd int32, offset Toff_t, whence int32) (r Toff_t) { + if __ccgo_strace { + trc("tls=%v fd=%v offset=%v whence=%v, (%v:)", tls, fd, offset, whence, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__lseek(tls, fd, offset, whence) +} + +func Xnice(tls *TLS, inc int32) (r int32) { + if __ccgo_strace { + trc("tls=%v inc=%v, (%v:)", tls, inc, origin(2)) + defer func() { trc("-> %v", r) }() + } + var prio int32 + _ = prio + prio = inc + // Only query old priority if it can affect the result. + // This also avoids issues with integer overflow. + if inc > -Int32FromInt32(2)*Int32FromInt32(NZERO) && inc < Int32FromInt32(2)*Int32FromInt32(NZERO) { + prio = prio + Xgetpriority(tls, PRIO_PROCESS, uint32(0)) + } + if prio > Int32FromInt32(NZERO)-Int32FromInt32(1) { + prio = Int32FromInt32(NZERO) - Int32FromInt32(1) + } + if prio < -int32(NZERO) { + prio = -int32(NZERO) + } + if Xsetpriority(tls, PRIO_PROCESS, uint32(0), prio) != 0 { + if **(**int32)(__ccgo_up(X__errno_location(tls))) == int32(EACCES) { + **(**int32)(__ccgo_up(X__errno_location(tls))) = int32(EPERM) + } + return -int32(1) + } else { + return prio + } + return r +} + +func Xpause(tls *TLS) (r int32) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_pause), 0, 0, 0, 0, 0, 0)))) +} + +func Xpipe(tls *TLS, fd uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_pipe), int64(fd))))) +} + +func Xpipe2(tls *TLS, fd uintptr, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v flag=%v, (%v:)", tls, fd, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + var ret int32 + _ = ret + if !(flag != 0) { + return Xpipe(tls, fd) + } + ret = int32(X__syscall2(tls, int64(SYS_pipe2), int64(fd), int64(flag))) + if ret != -int32(ENOSYS) { + return int32(X__syscall_ret(tls, Uint64FromInt32(ret))) + } + if flag & ^(Int32FromInt32(O_CLOEXEC)|Int32FromInt32(O_NONBLOCK)) != 0 { + return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL)))) + } + ret = Xpipe(tls, fd) + if ret != 0 { + return ret + } + if flag&int32(O_CLOEXEC) != 0 { + X__syscall3(tls, int64(SYS_fcntl), int64(**(**int32)(__ccgo_up(fd))), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + X__syscall3(tls, int64(SYS_fcntl), int64(**(**int32)(__ccgo_up(fd + 1*4))), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC))) + } + if flag&int32(O_NONBLOCK) != 0 { + X__syscall3(tls, int64(SYS_fcntl), int64(**(**int32)(__ccgo_up(fd))), int64(Int32FromInt32(F_SETFL)), int64(Int32FromInt32(O_NONBLOCK))) + X__syscall3(tls, int64(SYS_fcntl), int64(**(**int32)(__ccgo_up(fd + 1*4))), int64(Int32FromInt32(F_SETFL)), int64(Int32FromInt32(O_NONBLOCK))) + } + return 0 +} + +func Xposix_close(tls *TLS, fd int32, flags int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v flags=%v, (%v:)", tls, fd, flags, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xclose(tls, fd) +} + +func Xpread(tls *TLS, fd int32, buf uintptr, size Tsize_t, ofs Toff_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v size=%v ofs=%v, (%v:)", tls, fd, buf, size, ofs, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_pread64), int64(fd), int64(buf), Int64FromUint64(size), ofs, 0, 0))) +} + +func Xpreadv(tls *TLS, fd int32, iov uintptr, count int32, ofs Toff_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v iov=%v count=%v ofs=%v, (%v:)", tls, fd, iov, count, ofs, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_preadv), int64(fd), int64(iov), int64(count), ofs, ofs>>Int32FromInt32(32), 0))) +} + +func Xpwrite(tls *TLS, fd int32, buf uintptr, size Tsize_t, ofs Toff_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v size=%v ofs=%v, (%v:)", tls, fd, buf, size, ofs, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_pwrite64), int64(fd), int64(buf), Int64FromUint64(size), ofs, 0, 0))) +} + +func Xpwritev(tls *TLS, fd int32, iov uintptr, count int32, ofs Toff_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v iov=%v count=%v ofs=%v, (%v:)", tls, fd, iov, count, ofs, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_pwritev), int64(fd), int64(iov), int64(count), ofs, ofs>>Int32FromInt32(32), 0))) +} + +func Xread(tls *TLS, fd int32, buf uintptr, count Tsize_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v count=%v, (%v:)", tls, fd, buf, count, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_read), int64(fd), int64(buf), Int64FromUint64(count), 0, 0, 0))) +} + +func Xreadlink(tls *TLS, path uintptr, buf uintptr, bufsize Tsize_t) (r1 Tssize_t) { + if __ccgo_strace { + trc("tls=%v path=%v buf=%v bufsize=%v, (%v:)", tls, path, buf, bufsize, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var r int32 + var _ /* dummy at bp+0 */ [1]uint8 + _ = r + if !(bufsize != 0) { + buf = bp + bufsize = uint64(1) + } + r = int32(X__syscall3(tls, int64(SYS_readlink), int64(path), int64(buf), Int64FromUint64(bufsize))) + if buf == bp && r > 0 { + r = 0 + } + return X__syscall_ret(tls, Uint64FromInt32(r)) +} + +func Xreadlinkat(tls *TLS, fd int32, path uintptr, buf uintptr, bufsize Tsize_t) (r1 Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v path=%v buf=%v bufsize=%v, (%v:)", tls, fd, path, buf, bufsize, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var r int32 + var _ /* dummy at bp+0 */ [1]uint8 + _ = r + if !(bufsize != 0) { + buf = bp + bufsize = uint64(1) + } + r = int32(X__syscall4(tls, int64(SYS_readlinkat), int64(fd), int64(path), int64(buf), Int64FromUint64(bufsize))) + if buf == bp && r > 0 { + r = 0 + } + return X__syscall_ret(tls, Uint64FromInt32(r)) +} + +func Xreadv(tls *TLS, fd int32, iov uintptr, count int32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v iov=%v count=%v, (%v:)", tls, fd, iov, count, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_readv), int64(fd), int64(iov), int64(count), 0, 0, 0))) +} + +func Xrenameat(tls *TLS, oldfd int32, old uintptr, newfd int32, new1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v oldfd=%v old=%v newfd=%v new1=%v, (%v:)", tls, oldfd, old, newfd, new1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_renameat), int64(oldfd), int64(old), int64(newfd), int64(new1))))) +} + +func Xrmdir(tls *TLS, path uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v, (%v:)", tls, path, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_rmdir), int64(path))))) +} + +func Xsetgid(tls *TLS, gid Tgid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v gid=%v, (%v:)", tls, gid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__setxid(tls, int32(SYS_setgid), Int32FromUint32(gid), 0, 0) +} + +func Xsetpgid(tls *TLS, pid Tpid_t, pgid Tpid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v pid=%v pgid=%v, (%v:)", tls, pid, pgid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_setpgid), int64(pid), int64(pgid))))) +} + +func Xsetpgrp(tls *TLS) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xsetpgid(tls, 0, 0) +} + +func Xsetsid(tls *TLS) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall0(tls, int64(SYS_setsid))))) +} + +func Xsetuid(tls *TLS, uid Tuid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v uid=%v, (%v:)", tls, uid, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__setxid(tls, int32(SYS_setuid), Int32FromUint32(uid), 0, 0) +} + +type Tctx2 = struct { + Fid int32 + Feid int32 + Fsid int32 + Fnr int32 + Fret int32 +} + +func _do_setxid(tls *TLS, p uintptr) { + var c uintptr + var ret int32 + _, _ = c, ret + c = p + if (*Tctx2)(unsafe.Pointer(c)).Fret < 0 { + return + } + ret = int32(X__syscall3(tls, int64((*Tctx2)(unsafe.Pointer(c)).Fnr), int64((*Tctx2)(unsafe.Pointer(c)).Fid), int64((*Tctx2)(unsafe.Pointer(c)).Feid), int64((*Tctx2)(unsafe.Pointer(c)).Fsid))) + if ret != 0 && !((*Tctx2)(unsafe.Pointer(c)).Fret != 0) { + /* If one thread fails to set ids after another has already + * succeeded, forcibly killing the process is the only safe + * thing to do. State is inconsistent and dangerous. Use + * SIGKILL because it is uncatchable. */ + X__block_all_sigs(tls, uintptr(0)) + X__syscall2(tls, int64(SYS_kill), X__syscall0(tls, int64(SYS_getpid)), int64(Int32FromInt32(SIGKILL))) + } + (*Tctx2)(unsafe.Pointer(c)).Fret = ret +} + +func X__setxid(tls *TLS, nr int32, id int32, eid int32, sid int32) (r int32) { + if __ccgo_strace { + trc("tls=%v nr=%v id=%v eid=%v sid=%v, (%v:)", tls, nr, id, eid, sid, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var v1 int32 + var _ /* c at bp+0 */ Tctx2 + _ = v1 + /* ret is initially nonzero so that failure of the first thread does not + * trigger the safety kill above. */ + **(**Tctx2)(__ccgo_up(bp)) = Tctx2{ + Fid: id, + Feid: eid, + Fsid: sid, + Fnr: nr, + Fret: int32(1), + } + ___synccall(tls, __ccgo_fp(_do_setxid), bp) + if (**(**Tctx2)(__ccgo_up(bp))).Fret > 0 { + v1 = -int32(EAGAIN) + } else { + v1 = (**(**Tctx2)(__ccgo_up(bp))).Fret + } + return int32(X__syscall_ret(tls, Uint64FromInt32(v1))) +} + +func Xsleep(tls *TLS, seconds uint32) (r uint32) { + if __ccgo_strace { + trc("tls=%v seconds=%v, (%v:)", tls, seconds, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* tv at bp+0 */ Ttimespec + **(**Ttimespec)(__ccgo_up(bp)) = Ttimespec{ + Ftv_sec: Int64FromUint32(seconds), + } + if Xnanosleep(tls, bp, bp) != 0 { + return Uint32FromInt64((**(**Ttimespec)(__ccgo_up(bp))).Ftv_sec) + } + return uint32(0) +} + +func Xsymlink(tls *TLS, existing uintptr, new1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v existing=%v new1=%v, (%v:)", tls, existing, new1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_symlink), int64(existing), int64(new1))))) +} + +func Xsymlinkat(tls *TLS, existing uintptr, fd int32, new1 uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v existing=%v fd=%v new1=%v, (%v:)", tls, existing, fd, new1, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_symlinkat), int64(existing), int64(fd), int64(new1))))) +} + +func Xsync(tls *TLS) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } + X__syscall0(tls, int64(SYS_sync)) +} + +func Xtcgetpgrp(tls *TLS, fd int32) (r Tpid_t) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var _ /* pgrp at bp+0 */ int32 + if Xioctl(tls, fd, int32(TIOCGPGRP), VaList(bp+16, bp)) < 0 { + return -int32(1) + } + return **(**int32)(__ccgo_up(bp)) +} + +func Xtcsetpgrp(tls *TLS, fd int32, pgrp Tpid_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v pgrp=%v, (%v:)", tls, fd, pgrp, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(32) + defer tls.Free(32) + var _ /* pgrp_int at bp+0 */ int32 + **(**int32)(__ccgo_up(bp)) = pgrp + return Xioctl(tls, fd, int32(TIOCSPGRP), VaList(bp+16, bp)) +} + +func Xtruncate(tls *TLS, path uintptr, length Toff_t) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v length=%v, (%v:)", tls, path, length, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_truncate), int64(path), length)))) +} + +/* Support signed or unsigned plain-char */ + +/* Implementation choices... */ + +/* Arbitrary numbers... */ + +/* POSIX/SUS requirements follow. These numbers come directly + * from SUS and have nothing to do with the host system. */ + +func Xttyname(tls *TLS, fd int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + var result, v1 int32 + _, _ = result, v1 + v1 = Xttyname_r(tls, fd, uintptr(unsafe.Pointer(&_buf10)), uint64(32)) + result = v1 + if v1 != 0 { + **(**int32)(__ccgo_up(X__errno_location(tls))) = result + return UintptrFromInt32(0) + } + return uintptr(unsafe.Pointer(&_buf10)) +} + +var _buf10 [32]uint8 + +func Xttyname_r(tls *TLS, fd int32, name uintptr, size Tsize_t) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v name=%v size=%v, (%v:)", tls, fd, name, size, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(320) + defer tls.Free(320) + var l Tssize_t + var _ /* procname at bp+288 */ [29]uint8 + var _ /* st1 at bp+0 */ Tstat + var _ /* st2 at bp+144 */ Tstat + _ = l + if !(Xisatty(tls, fd) != 0) { + return **(**int32)(__ccgo_up(X__errno_location(tls))) + } + X__procfdname(tls, bp+288, Uint32FromInt32(fd)) + l = Xreadlink(tls, bp+288, name, size) + if l < 0 { + return **(**int32)(__ccgo_up(X__errno_location(tls))) + } else { + if Uint64FromInt64(l) == size { + return int32(ERANGE) + } + } + **(**uint8)(__ccgo_up(name + uintptr(l))) = uint8(0) + if Xstat(tls, name, bp) != 0 || Xfstat(tls, fd, bp+144) != 0 { + return **(**int32)(__ccgo_up(X__errno_location(tls))) + } + if (**(**Tstat)(__ccgo_up(bp))).Fst_dev != (**(**Tstat)(__ccgo_up(bp + 144))).Fst_dev || (**(**Tstat)(__ccgo_up(bp))).Fst_ino != (**(**Tstat)(__ccgo_up(bp + 144))).Fst_ino { + return int32(ENODEV) + } + return 0 +} + +func Xualarm(tls *TLS, value uint32, interval uint32) (r uint32) { + if __ccgo_strace { + trc("tls=%v value=%v interval=%v, (%v:)", tls, value, interval, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(64) + defer tls.Free(64) + var _ /* it at bp+0 */ Titimerval + var _ /* it_old at bp+32 */ Titimerval + **(**Titimerval)(__ccgo_up(bp)) = Titimerval{ + Fit_interval: Ttimeval{ + Ftv_usec: Int64FromUint32(interval), + }, + Fit_value: Ttimeval{ + Ftv_usec: Int64FromUint32(value), + }, + } + Xsetitimer(tls, ITIMER_REAL, bp, bp+32) + return Uint32FromInt64((**(**Titimerval)(__ccgo_up(bp + 32))).Fit_value.Ftv_sec*int64(1000000) + (**(**Titimerval)(__ccgo_up(bp + 32))).Fit_value.Ftv_usec) +} + +func Xunlink(tls *TLS, path uintptr) (r int32) { + if __ccgo_strace { + trc("tls=%v path=%v, (%v:)", tls, path, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_unlink), int64(path))))) +} + +func Xunlinkat(tls *TLS, fd int32, path uintptr, flag int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v path=%v flag=%v, (%v:)", tls, fd, path, flag, origin(2)) + defer func() { trc("-> %v", r) }() + } + return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_unlinkat), int64(fd), int64(path), int64(flag))))) +} + +func Xusleep(tls *TLS, useconds uint32) (r int32) { + if __ccgo_strace { + trc("tls=%v useconds=%v, (%v:)", tls, useconds, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var _ /* tv at bp+0 */ Ttimespec + **(**Ttimespec)(__ccgo_up(bp)) = Ttimespec{ + Ftv_sec: Int64FromUint32(useconds / uint32(1000000)), + Ftv_nsec: Int64FromUint32(useconds % uint32(1000000) * uint32(1000)), + } + return Xnanosleep(tls, bp, bp) +} + +func Xwrite(tls *TLS, fd int32, buf uintptr, count Tsize_t) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v buf=%v count=%v, (%v:)", tls, fd, buf, count, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_write), int64(fd), int64(buf), Int64FromUint64(count), 0, 0, 0))) +} + +func Xwritev(tls *TLS, fd int32, iov uintptr, count int32) (r Tssize_t) { + if __ccgo_strace { + trc("tls=%v fd=%v iov=%v count=%v, (%v:)", tls, fd, iov, count, origin(2)) + defer func() { trc("-> %v", r) }() + } + return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_writev), int64(fd), int64(iov), int64(count), 0, 0, 0))) +} + +func __ccgo_fp(f interface{}) uintptr { + type iface [2]uintptr + return (*iface)(unsafe.Pointer(&f))[1] +} + +func __ccgo_up(n uintptr) unsafe.Pointer { + return unsafe.Pointer(&n) +} + +var X__abort_lock [1]int32 + +var X__at_quick_exit_lockptr = uintptr(unsafe.Pointer(&_lock)) + +var X__c_dot_utf8 = t__locale_map{ + Fmap1: uintptr(unsafe.Pointer(&_empty_mo)), + Fmap_size: uint64(20), + Fname: [24]uint8{'C', '.', 'U', 'T', 'F', '-', '8'}, +} + +var X__c_dot_utf8_locale = t__locale_struct{ + Fcat: [6]uintptr{ + 0: uintptr(unsafe.Pointer(&X__c_dot_utf8)), + }, +} + +var X__c_locale = t__locale_struct{} + +var Xdaylight int32 + +var X__eintr_valid_flag int32 + +var Xenviron uintptr + +var X__exp2f_data = Texp2f_data{ + Ftab: [32]Tuint64_t{ + 0: uint64(0x3ff0000000000000), + 1: uint64(0x3fefd9b0d3158574), + 2: uint64(0x3fefb5586cf9890f), + 3: uint64(0x3fef9301d0125b51), + 4: uint64(0x3fef72b83c7d517b), + 5: uint64(0x3fef54873168b9aa), + 6: uint64(0x3fef387a6e756238), + 7: uint64(0x3fef1e9df51fdee1), + 8: uint64(0x3fef06fe0a31b715), + 9: uint64(0x3feef1a7373aa9cb), + 10: uint64(0x3feedea64c123422), + 11: uint64(0x3feece086061892d), + 12: uint64(0x3feebfdad5362a27), + 13: uint64(0x3feeb42b569d4f82), + 14: uint64(0x3feeab07dd485429), + 15: uint64(0x3feea47eb03a5585), + 16: uint64(0x3feea09e667f3bcd), + 17: uint64(0x3fee9f75e8ec5f74), + 18: uint64(0x3feea11473eb0187), + 19: uint64(0x3feea589994cce13), + 20: uint64(0x3feeace5422aa0db), + 21: uint64(0x3feeb737b0cdc5e5), + 22: uint64(0x3feec49182a3f090), + 23: uint64(0x3feed503b23e255d), + 24: uint64(0x3feee89f995ad3ad), + 25: uint64(0x3feeff76f2fb5e47), + 26: uint64(0x3fef199bdd85529c), + 27: uint64(0x3fef3720dcef9069), + 28: uint64(0x3fef5818dcfba487), + 29: uint64(0x3fef7c97337b9b5f), + 30: uint64(0x3fefa4afa2a490da), + 31: uint64(0x3fefd0765b6e4540), + }, + Fshift_scaled: Float64FromFloat64(6.755399441055744e+15) / float64(Int32FromInt32(1)<>Int32FromInt32(6) | Uint32FromInt32(0x0), + 31: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0x1), + 32: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0x2), + 33: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0x3), + 34: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0x4), + 35: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0x5), + 36: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0x6), + 37: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0x7), + 38: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0x8), + 39: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0x9), + 40: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0xa), + 41: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0xb), + 42: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0xc), + 43: (Uint32FromUint32(0x40)-Uint32FromInt32(0xa0))<>Int32FromInt32(6) | Uint32FromInt32(0xd), + 44: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0xe), + 45: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | Uint32FromInt32(0xf), + 46: (Uint32FromUint32(0)-Uint32FromInt32(0x90))<>Int32FromInt32(6) | (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(12) | Uint32FromInt32(0x0), + 47: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(12) | Uint32FromInt32(0x1), + 48: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(12) | Uint32FromInt32(0x2), + 49: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(6) | (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(12) | Uint32FromInt32(0x3), + 50: (Uint32FromUint32(0x40)-Uint32FromInt32(0x90))<>Int32FromInt32(6) | (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<>Int32FromInt32(12) | Uint32FromInt32(0x4), +} + +var X__gettext_lockptr = uintptr(unsafe.Pointer(&_lock1)) + +var X__hwcap Tsize_t + +var X__libc t__libc + +var X__libc_version = [6]uint8{'1', '.', '2', '.', '5'} + +var X__locale_lock [1]int32 + +var X__locale_lockptr = uintptr(unsafe.Pointer(&X__locale_lock)) + +var X__log2_data = Tlog2_data{ + Finvln2hi: float64(1.4426950407214463), + Finvln2lo: float64(1.6751713164886512e-10), + Fpoly: [6]float64{ + 0: -Float64FromFloat64(0.7213475204444882), + 1: float64(0.4808983469629985), + 2: -Float64FromFloat64(0.36067375954075914), + 3: float64(0.2885390073180969), + 4: -Float64FromFloat64(0.2404693555628422), + 5: float64(0.2061202382173603), + }, + Fpoly1: [10]float64{ + 0: -Float64FromFloat64(0.7213475204444817), + 1: float64(0.48089834696298744), + 2: -Float64FromFloat64(0.360673760222145), + 3: float64(0.2885390081805197), + 4: -Float64FromFloat64(0.24044917405728863), + 5: float64(0.2060992861022954), + 6: -Float64FromFloat64(0.18033596705327856), + 7: float64(0.1603032746063156), + 8: -Float64FromFloat64(0.14483316576701266), + 9: float64(0.13046826811283835), + }, + Ftab: [64]struct { + Finvc float64 + Flogc float64 + }{ + 0: { + Finvc: float64(1.4463276106642393), + Flogc: -Float64FromFloat64(0.5323943771486483), + }, + 1: { + Finvc: float64(1.4301675812282968), + Flogc: -Float64FromFloat64(0.516184206053822), + }, + 2: { + Finvc: float64(1.4143648676229383), + Flogc: -Float64FromFloat64(0.5001543441974263), + }, + 3: { + Finvc: float64(1.3989068970611538), + Flogc: -Float64FromFloat64(0.4842999484799293), + }, + 4: { + Finvc: float64(1.3837838957784339), + Flogc: -Float64FromFloat64(0.46861865624623533), + }, + 5: { + Finvc: float64(1.368983882697786), + Flogc: -Float64FromFloat64(0.4531054615783887), + }, + 6: { + Finvc: float64(1.3544972916324536), + Flogc: -Float64FromFloat64(0.43775750882059583), + }, + 7: { + Finvc: float64(1.3403139676437443), + Flogc: -Float64FromFloat64(0.4225709906127122), + }, + 8: { + Finvc: float64(1.3264249304188642), + Flogc: -Float64FromFloat64(0.40754302793970965), + }, + 9: { + Finvc: float64(1.3128203652112156), + Flogc: -Float64FromFloat64(0.3926695240384106), + }, + 10: { + Finvc: float64(1.299492412370217), + Flogc: -Float64FromFloat64(0.3779482100565019), + }, + 11: { + Finvc: float64(1.28643198385998), + Flogc: -Float64FromFloat64(0.36337518101890964), + }, + 12: { + Finvc: float64(1.2736319291846832), + Flogc: -Float64FromFloat64(0.3489484089425332), + }, + 13: { + Finvc: float64(1.2610838968062879), + Flogc: -Float64FromFloat64(0.33466425780738973), + }, + 14: { + Finvc: float64(1.248780314313572), + Flogc: -Float64FromFloat64(0.3205197000629596), + }, + 15: { + Finvc: float64(1.2367150450059063), + Flogc: -Float64FromFloat64(0.3065131231801388), + }, + 16: { + Finvc: float64(1.2248804968401878), + Flogc: -Float64FromFloat64(0.2926410022678283), + }, + 17: { + Finvc: float64(1.2132702353497795), + Flogc: -Float64FromFloat64(0.2789009220805383), + }, + 18: { + Finvc: float64(1.2018780785715362), + Flogc: -Float64FromFloat64(0.2652905529862437), + }, + 19: { + Finvc: float64(1.190697765061355), + Flogc: -Float64FromFloat64(0.2518072602367738), + }, + 20: { + Finvc: float64(1.1797235410550593), + Flogc: -Float64FromFloat64(0.23844881494437686), + }, + 21: { + Finvc: float64(1.1689498986205256), + Flogc: -Float64FromFloat64(0.22521309705462045), + }, + 22: { + Finvc: float64(1.158371137408455), + Flogc: -Float64FromFloat64(0.21209756102439314), + }, + 23: { + Finvc: float64(1.1479820146386086), + Flogc: -Float64FromFloat64(0.1991000395789797), + }, + 24: { + Finvc: float64(1.1377775576851088), + Flogc: -Float64FromFloat64(0.18621852970682085), + }, + 25: { + Finvc: float64(1.127753150630225), + Flogc: -Float64FromFloat64(0.17345131655361), + }, + 26: { + Finvc: float64(1.1179037012282074), + Flogc: -Float64FromFloat64(0.16079591649577196), + }, + 27: { + Finvc: float64(1.1082251967632821), + Flogc: -Float64FromFloat64(0.14825107384353942), + }, + 28: { + Finvc: float64(1.098712461056607), + Flogc: -Float64FromFloat64(0.13581387465410444), + }, + 29: { + Finvc: float64(1.0893619091634283), + Flogc: -Float64FromFloat64(0.12348332762257996), + }, + 30: { + Finvc: float64(1.0801689912316736), + Flogc: -Float64FromFloat64(0.11125703807351783), + }, + 31: { + Finvc: float64(1.071129489697672), + Flogc: -Float64FromFloat64(0.09913289918449664), + }, + 32: { + Finvc: float64(1.0622406576750423), + Flogc: -Float64FromFloat64(0.08711065531497297), + }, + 33: { + Finvc: float64(1.0534977607927976), + Flogc: -Float64FromFloat64(0.07518724771330199), + }, + 34: { + Finvc: float64(1.044897877982342), + Flogc: -Float64FromFloat64(0.06336194888240243), + }, + 35: { + Finvc: float64(1.0364370289499079), + Flogc: -Float64FromFloat64(0.0516324649456692), + }, + 36: { + Finvc: float64(1.0281122132034575), + Flogc: -Float64FromFloat64(0.039997735929773626), + }, + 37: { + Finvc: float64(1.0199202450036955), + Flogc: -Float64FromFloat64(0.028456341769015125), + }, + 38: { + Finvc: float64(1.0118577522306755), + Flogc: -Float64FromFloat64(0.017006489068080555), + }, + 39: { + Finvc: float64(1.003921649236766), + Flogc: -Float64FromFloat64(0.005646678981520381), + }, + 40: { + Finvc: float64(0.9922480467550775), + Flogc: float64(0.011227277611396858), + }, + 41: { + Finvc: float64(0.9770993366178549), + Flogc: float64(0.033422853921138085), + }, + 42: { + Finvc: float64(0.9624059787315814), + Flogc: float64(0.05528248992573026), + }, + 43: { + Finvc: float64(0.9481480598286369), + Flogc: float64(0.07681573143713649), + }, + 44: { + Finvc: float64(0.9343065931261065), + Flogc: float64(0.09803204623631245), + }, + 45: { + Finvc: float64(0.9208633936884979), + Flogc: float64(0.11894094059630334), + }, + 46: { + Finvc: float64(0.9078013641840602), + Flogc: float64(0.13955143862290242), + }, + 47: { + Finvc: float64(0.8951048181512927), + Flogc: float64(0.15987146080919956), + }, + 48: { + Finvc: float64(0.882758574260473), + Flogc: float64(0.17990916589428707), + }, + 49: { + Finvc: float64(0.8707481902241709), + Flogc: float64(0.19967252559081317), + }, + 50: { + Finvc: float64(0.8590602881746972), + Flogc: float64(0.2191687127685782), + }, + 51: { + Finvc: float64(0.8476822044336688), + Flogc: float64(0.23840459427242422), + }, + 52: { + Finvc: float64(0.8366013284053287), + Flogc: float64(0.25738780610663525), + }, + 53: { + Finvc: float64(0.8258064913621258), + Flogc: float64(0.27612433583180973), + }, + 54: { + Finvc: float64(0.8152865101579193), + Flogc: float64(0.2946209507022104), + }, + 55: { + Finvc: float64(0.8050314363208223), + Flogc: float64(0.31288297359969874), + }, + 56: { + Finvc: float64(0.7950310492640542), + Flogc: float64(0.33091689015759584), + }, + 57: { + Finvc: float64(0.7852760432487271), + Flogc: float64(0.3487282100279572), + }, + 58: { + Finvc: float64(0.7757575660314712), + Flogc: float64(0.36632223233368677), + }, + 59: { + Finvc: float64(0.7664670566588946), + Flogc: float64(0.383704309808536), + }, + 60: { + Finvc: float64(0.7573965608078645), + Flogc: float64(0.4008792246509074), + }, + 61: { + Finvc: float64(0.7485380168514022), + Flogc: float64(0.41785250494945103), + }, + 62: { + Finvc: float64(0.7398844213755009), + Flogc: float64(0.4346281724315304), + }, + 63: { + Finvc: float64(0.7314286113178112), + Flogc: float64(0.45121103315341315), + }, + }, +} + +var X__log2f_data = Tlog2f_data{ + Ftab: [16]struct { + Finvc float64 + Flogc float64 + }{ + 0: { + Finvc: float64(1.398907162146528), + Flogc: -Float64FromFloat64(0.48430022186289673), + }, + 1: { + Finvc: float64(1.3403141896637998), + Flogc: -Float64FromFloat64(0.42257122959194704), + }, + 2: { + Finvc: float64(1.286432210124115), + Flogc: -Float64FromFloat64(0.3633754347673556), + }, + 3: { + Finvc: float64(1.2367150214269895), + Flogc: -Float64FromFloat64(0.30651309567405577), + }, + 4: { + Finvc: float64(1.1906977166711752), + Flogc: -Float64FromFloat64(0.25180720160537634), + }, + 5: { + Finvc: float64(1.1479821020556429), + Flogc: -Float64FromFloat64(0.19910014943794563), + }, + 6: { + Finvc: float64(1.1082251448272158), + Flogc: -Float64FromFloat64(0.14825100623281615), + }, + 7: { + Finvc: float64(1.0711297413057381), + Flogc: -Float64FromFloat64(0.09913323807318392), + }, + 8: { + Finvc: float64(1.036437278977283), + Flogc: -Float64FromFloat64(0.051632812977629436), + }, + 9: { + Finvc: float64(1), + }, + 10: { + Finvc: float64(0.9492859795739057), + Flogc: float64(0.07508531937943004), + }, + 11: { + Finvc: float64(0.8951049428609004), + Flogc: float64(0.15987125980713107), + }, + 12: { + Finvc: float64(0.8476821620351103), + Flogc: float64(0.2384046664317681), + }, + 13: { + Finvc: float64(0.8050314851692001), + Flogc: float64(0.31288288605863257), + }, + 14: { + Finvc: float64(0.7664671008843108), + Flogc: float64(0.38370422656453185), + }, + 15: { + Finvc: float64(0.731428603316328), + Flogc: float64(0.451211048935815), + }, + }, + Fpoly: [4]float64{ + 0: -Float64FromFloat64(0.36051725506874704), + 1: float64(0.4811247078767291), + 2: -Float64FromFloat64(0.7213476299867769), + 3: float64(1.4426950186867042), + }, +} + +var X__log_data = Tlog_data{ + Fln2hi: float64(0.6931471805598903), + Fln2lo: float64(5.497923018708371e-14), + Fpoly: [5]float64{ + 0: -Float64FromFloat64(0.5000000000000001), + 1: float64(0.33333333331825593), + 2: -Float64FromFloat64(0.2499999999622955), + 3: float64(0.20000304511814496), + 4: -Float64FromFloat64(0.16667054827627667), + }, + Fpoly1: [11]float64{ + 0: -Float64FromFloat64(0.5), + 1: float64(0.3333333333333352), + 2: -Float64FromFloat64(0.24999999999998432), + 3: float64(0.19999999999320328), + 4: -Float64FromFloat64(0.16666666669929706), + 5: float64(0.14285715076560868), + 6: -Float64FromFloat64(0.12499997863982555), + 7: float64(0.11110712032936046), + 8: -Float64FromFloat64(0.10000486757818193), + 9: float64(0.09181994006195467), + 10: -Float64FromFloat64(0.08328363062289341), + }, + Ftab: [128]struct { + Finvc float64 + Flogc float64 + }{ + 0: { + Finvc: float64(1.4504249240398293), + Flogc: -Float64FromFloat64(0.3718565645633589), + }, + 1: { + Finvc: float64(1.442253508327276), + Flogc: -Float64FromFloat64(0.36620682668944937), + }, + 2: { + Finvc: float64(1.4341736174350004), + Flogc: -Float64FromFloat64(0.3605888069791945), + }, + 3: { + Finvc: float64(1.426183816329995), + Flogc: -Float64FromFloat64(0.3550022171419869), + }, + 4: { + Finvc: float64(1.4182825527052965), + Flogc: -Float64FromFloat64(0.34944666968829097), + }, + 5: { + Finvc: float64(1.4104682921759335), + Flogc: -Float64FromFloat64(0.3439217713603284), + }, + 6: { + Finvc: float64(1.4027396147468003), + Flogc: -Float64FromFloat64(0.3384271921261188), + }, + 7: { + Finvc: float64(1.3950954438932313), + Flogc: -Float64FromFloat64(0.332962831494342), + }, + 8: { + Finvc: float64(1.3875338232485754), + Flogc: -Float64FromFloat64(0.32752794345742586), + }, + 9: { + Finvc: float64(1.3800539211058593), + Flogc: -Float64FromFloat64(0.32212257167088865), + }, + 10: { + Finvc: float64(1.3726542695419708), + Flogc: -Float64FromFloat64(0.3167462884799761), + }, + 11: { + Finvc: float64(1.3653332798446802), + Flogc: -Float64FromFloat64(0.3113985598928366), + }, + 12: { + Finvc: float64(1.358090204587874), + Flogc: -Float64FromFloat64(0.3060794515165526), + }, + 13: { + Finvc: float64(1.3509234892132138), + Flogc: -Float64FromFloat64(0.300788424667644), + }, + 14: { + Finvc: float64(1.3438320840699889), + Flogc: -Float64FromFloat64(0.2955252968476998), + }, + 15: { + Finvc: float64(1.3368146974742003), + Flogc: -Float64FromFloat64(0.29028969275850613), + }, + 16: { + Finvc: float64(1.329870114677736), + Flogc: -Float64FromFloat64(0.2850812793277555), + }, + 17: { + Finvc: float64(1.322997339161106), + Flogc: -Float64FromFloat64(0.27989987391470095), + }, + 18: { + Finvc: float64(1.316195352741367), + Flogc: -Float64FromFloat64(0.27474526621870154), + }, + 19: { + Finvc: float64(1.3094628125672239), + Flogc: -Float64FromFloat64(0.2696169863701243), + }, + 20: { + Finvc: float64(1.3027990455471041), + Flogc: -Float64FromFloat64(0.26451506180308115), + }, + 21: { + Finvc: float64(1.2962024229438942), + Flogc: -Float64FromFloat64(0.2594387762767383), + }, + 22: { + Finvc: float64(1.2896726275815547), + Flogc: -Float64FromFloat64(0.2543884090981692), + }, + 23: { + Finvc: float64(1.2832080305745537), + Flogc: -Float64FromFloat64(0.24936321635129843), + }, + 24: { + Finvc: float64(1.276807885983376), + Flogc: -Float64FromFloat64(0.24436312405975968), + }, + 25: { + Finvc: float64(1.2704714060687552), + Flogc: -Float64FromFloat64(0.23938801747897287), + }, + 26: { + Finvc: float64(1.2641976054949482), + Flogc: -Float64FromFloat64(0.23443761696705678), + }, + 27: { + Finvc: float64(1.257985357514882), + Flogc: -Float64FromFloat64(0.22951151871518505), + }, + 28: { + Finvc: float64(1.2518337750655457), + Flogc: -Float64FromFloat64(0.2246094963439873), + }, + 29: { + Finvc: float64(1.2457421919097305), + Flogc: -Float64FromFloat64(0.21973149037705753), + }, + 30: { + Finvc: float64(1.2397094966625508), + Flogc: -Float64FromFloat64(0.2148770752847895), + }, + 31: { + Finvc: float64(1.2337348463589233), + Flogc: -Float64FromFloat64(0.210046029103637), + }, + 32: { + Finvc: float64(1.2278176973028803), + Flogc: -Float64FromFloat64(0.20523836373934046), + }, + 33: { + Finvc: float64(1.2219570190618474), + Flogc: -Float64FromFloat64(0.20045368751368642), + }, + 34: { + Finvc: float64(1.2161519732977757), + Flogc: -Float64FromFloat64(0.1956917537758045), + }, + 35: { + Finvc: float64(1.2104018095009725), + Flogc: -Float64FromFloat64(0.19095237845203883), + }, + 36: { + Finvc: float64(1.204705805718973), + Flogc: -Float64FromFloat64(0.18623539250290833), + }, + 37: { + Finvc: float64(1.1990631185441964), + Flogc: -Float64FromFloat64(0.18154051731551135), + }, + 38: { + Finvc: float64(1.1934733004462308), + Flogc: -Float64FromFloat64(0.1768677957431919), + }, + 39: { + Finvc: float64(1.1879350812847385), + Flogc: -Float64FromFloat64(0.17221657406412305), + }, + 40: { + Finvc: float64(1.1824481322833125), + Flogc: -Float64FromFloat64(0.16758697765942543), + }, + 41: { + Finvc: float64(1.1770114976921955), + Flogc: -Float64FromFloat64(0.16297859687290384), + }, + 42: { + Finvc: float64(1.1716248121809465), + Flogc: -Float64FromFloat64(0.15839151377804228), + }, + 43: { + Finvc: float64(1.1662869231674715), + Flogc: -Float64FromFloat64(0.15382513241456763), + }, + 44: { + Finvc: float64(1.1609977486762766), + Flogc: -Float64FromFloat64(0.14927976358922024), + }, + 45: { + Finvc: float64(1.1557563220795803), + Flogc: -Float64FromFloat64(0.14475495398119165), + }, + 46: { + Finvc: float64(1.1505619105480347), + Flogc: -Float64FromFloat64(0.14025044090817573), + }, + 47: { + Finvc: float64(1.1454138888505974), + Flogc: -Float64FromFloat64(0.1357660466685502), + }, + 48: { + Finvc: float64(1.140311877374656), + Flogc: -Float64FromFloat64(0.1313018016355727), + }, + 49: { + Finvc: float64(1.1352550225747513), + Flogc: -Float64FromFloat64(0.12685731518763532), + }, + 50: { + Finvc: float64(1.1302429094831266), + Flogc: -Float64FromFloat64(0.1224325737671279), + }, + 51: { + Finvc: float64(1.1252747693068048), + Flogc: -Float64FromFloat64(0.11802724521862729), + }, + 52: { + Finvc: float64(1.1203501571039876), + Flogc: -Float64FromFloat64(0.11364127671663482), + }, + 53: { + Finvc: float64(1.1154683327680124), + Flogc: -Float64FromFloat64(0.10927434611278386), + }, + 54: { + Finvc: float64(1.1106291463292157), + Flogc: -Float64FromFloat64(0.10492665324943573), + }, + 55: { + Finvc: float64(1.1058315813301596), + Flogc: -Float64FromFloat64(0.10059761422644442), + }, + 56: { + Finvc: float64(1.1010752177696026), + Flogc: -Float64FromFloat64(0.09628717309055901), + }, + 57: { + Finvc: float64(1.0963597137952512), + Flogc: -Float64FromFloat64(0.09199534069557558), + }, + 58: { + Finvc: float64(1.0916844827550398), + Flogc: -Float64FromFloat64(0.08772190036688698), + }, + 59: { + Finvc: float64(1.0870487291277784), + Flogc: -Float64FromFloat64(0.08346643613867855), + }, + 60: { + Finvc: float64(1.082452357388312), + Flogc: -Float64FromFloat64(0.07922916827544668), + }, + 61: { + Finvc: float64(1.0778948225025884), + Flogc: -Float64FromFloat64(0.0750099004750382), + }, + 62: { + Finvc: float64(1.0733751731601076), + Flogc: -Float64FromFloat64(0.07080805133352897), + }, + 63: { + Finvc: float64(1.068893585073351), + Flogc: -Float64FromFloat64(0.06662408085151128), + }, + 64: { + Finvc: float64(1.0644491706655506), + Flogc: -Float64FromFloat64(0.06245745471915143), + }, + 65: { + Finvc: float64(1.0600414846328305), + Flogc: -Float64FromFloat64(0.0583080438042316), + }, + 66: { + Finvc: float64(1.0556701316181605), + Flogc: -Float64FromFloat64(0.05417576112313327), + }, + 67: { + Finvc: float64(1.051334750556926), + Flogc: -Float64FromFloat64(0.050060547896805474), + }, + 68: { + Finvc: float64(1.0470347288442157), + Flogc: -Float64FromFloat64(0.045962101199052086), + }, + 69: { + Finvc: float64(1.0427699229652954), + Flogc: -Float64FromFloat64(0.04188056008865715), + }, + 70: { + Finvc: float64(1.0385395013738175), + Flogc: -Float64FromFloat64(0.03781540056183985), + }, + 71: { + Finvc: float64(1.034343418940345), + Flogc: -Float64FromFloat64(0.03376684757915882), + }, + 72: { + Finvc: float64(1.0301811073173315), + Flogc: -Float64FromFloat64(0.029734619131772888), + }, + 73: { + Finvc: float64(1.026052043621297), + Flogc: -Float64FromFloat64(0.025718470239212365), + }, + 74: { + Finvc: float64(1.0219561082336197), + Flogc: -Float64FromFloat64(0.021718543925430822), + }, + 75: { + Finvc: float64(1.0178926505784922), + Flogc: -Float64FromFloat64(0.01773446126981071), + }, + 76: { + Finvc: float64(1.0138614436244586), + Flogc: -Float64FromFloat64(0.013766252464051831), + }, + 77: { + Finvc: float64(1.0098620186501341), + Flogc: -Float64FromFloat64(0.009813706322574944), + }, + 78: { + Finvc: float64(1.0058938559734134), + Flogc: -Float64FromFloat64(0.005876555150052809), + }, + 79: { + Finvc: float64(1.00195696235014), + Flogc: -Float64FromFloat64(0.0019550499938532084), + }, + 80: { + Finvc: float64(0.9961089923088509), + Flogc: float64(0.0038985973556009412), + }, + 81: { + Finvc: float64(0.9884170338185201), + Flogc: float64(0.011650571286395461), + }, + 82: { + Finvc: float64(0.9808429191005297), + Flogc: float64(0.019342955478919066), + }, + 83: { + Finvc: float64(0.9733840169987446), + Flogc: float64(0.0269766014846482), + }, + 84: { + Finvc: float64(0.9660377568876556), + Flogc: float64(0.034552359728422744), + }, + 85: { + Finvc: float64(0.9588014945307369), + Flogc: float64(0.04207121767183253), + }, + 86: { + Finvc: float64(0.9516728569073111), + Flogc: float64(0.049533940950141186), + }, + 87: { + Finvc: float64(0.9446494635965822), + Flogc: float64(0.056941358295944156), + }, + 88: { + Finvc: float64(0.9377288993026223), + Flogc: float64(0.06429439168346107), + }, + 89: { + Finvc: float64(0.9309091073790681), + Flogc: float64(0.0715936354946507), + }, + 90: { + Finvc: float64(0.924187681612722), + Flogc: float64(0.07884010933776153), + }, + 91: { + Finvc: float64(0.9175626765599192), + Flogc: float64(0.08603438905970506), + }, + 92: { + Finvc: float64(0.9110320403624034), + Flogc: float64(0.09317721180013905), + }, + 93: { + Finvc: float64(0.9045935839762024), + Flogc: float64(0.10026951462748457), + }, + 94: { + Finvc: float64(0.8982456375922825), + Flogc: float64(0.10731170956330516), + }, + 95: { + Finvc: float64(0.8919860966782501), + Flogc: float64(0.11430473320717738), + }, + 96: { + Finvc: float64(0.8858131121185129), + Flogc: float64(0.12124928503033061), + }, + 97: { + Finvc: float64(0.879725075760676), + Flogc: float64(0.12814583422959913), + }, + 98: { + Finvc: float64(0.8737201372634685), + Flogc: float64(0.1349951636851756), + }, + 99: { + Finvc: float64(0.8677966405782273), + Flogc: float64(0.1417978768189414), + }, + 100: { + Finvc: float64(0.8619528050060739), + Flogc: float64(0.14855476039031146), + }, + 101: { + Finvc: float64(0.8561872354420692), + Flogc: float64(0.1552661937658968), + }, + 102: { + Finvc: float64(0.8504983927816893), + Flogc: float64(0.16193275688146969), + }, + 103: { + Finvc: float64(0.8448844572790304), + Flogc: float64(0.16855539792220497), + }, + 104: { + Finvc: float64(0.8393442741575965), + Flogc: float64(0.1751343179947753), + }, + 105: { + Finvc: float64(0.8338762249349438), + Flogc: float64(0.1816702989864325), + }, + 106: { + Finvc: float64(0.8284789320557778), + Flogc: float64(0.18816387146023317), + }, + 107: { + Finvc: float64(0.8231510800065832), + Flogc: float64(0.1946155228479256), + }, + 108: { + Finvc: float64(0.8178913903778707), + Flogc: float64(0.20102572579389744), + }, + 109: { + Finvc: float64(0.8126984007245374), + Flogc: float64(0.2073952090795501), + }, + 110: { + Finvc: float64(0.8075710029460227), + Flogc: float64(0.21372429840596396), + }, + 111: { + Finvc: float64(0.8025078881160415), + Flogc: float64(0.2200135945981856), + }, + 112: { + Finvc: float64(0.7975077379364331), + Flogc: float64(0.22626374162859975), + }, + 113: { + Finvc: float64(0.792569604966373), + Flogc: float64(0.23247494747693054), + }, + 114: { + Finvc: float64(0.7876923641254114), + Flogc: float64(0.23864766620658884), + }, + 115: { + Finvc: float64(0.7828746724940998), + Flogc: float64(0.24478265647405806), + }, + 116: { + Finvc: float64(0.7781155388790811), + Flogc: float64(0.25088025827324145), + }, + 117: { + Finvc: float64(0.7734139557869777), + Flogc: float64(0.2569408552510595), + }, + 118: { + Finvc: float64(0.7687687179914933), + Flogc: float64(0.26296511155101143), + }, + 119: { + Finvc: float64(0.7641790698041854), + Flogc: float64(0.2689531327189343), + }, + 120: { + Finvc: float64(0.7596438763692399), + Flogc: float64(0.27490553924610595), + }, + 121: { + Finvc: float64(0.7551621951078668), + Flogc: float64(0.2808227248478943), + }, + 122: { + Finvc: float64(0.7507331780216866), + Flogc: float64(0.286704979267256), + }, + 123: { + Finvc: float64(0.7463557196361751), + Flogc: float64(0.29255295645509705), + }, + 124: { + Finvc: float64(0.7420289364869653), + Flogc: float64(0.2983670386142876), + }, + 125: { + Finvc: float64(0.7377521537065876), + Flogc: float64(0.30414734587282055), + }, + 126: { + Finvc: float64(0.7335242966002608), + Flogc: float64(0.30989455774829366), + }, + 127: { + Finvc: float64(0.729344777457841), + Flogc: float64(0.31560871301871884), + }, + }, +} + +var X__logf_data = Tlogf_data{ + Ftab: [16]struct { + Finvc float64 + Flogc float64 + }{ + 0: { + Finvc: float64(1.398907162146528), + Flogc: -Float64FromFloat64(0.33569133332882284), + }, + 1: { + Finvc: float64(1.3403141896637998), + Flogc: -Float64FromFloat64(0.2929040563774074), + }, + 2: { + Finvc: float64(1.286432210124115), + Flogc: -Float64FromFloat64(0.2518726580937369), + }, + 3: { + Finvc: float64(1.2367150214269895), + Flogc: -Float64FromFloat64(0.21245868807117255), + }, + 4: { + Finvc: float64(1.1906977166711752), + Flogc: -Float64FromFloat64(0.17453945183745634), + }, + 5: { + Finvc: float64(1.1479821020556429), + Flogc: -Float64FromFloat64(0.1380057072319758), + }, + 6: { + Finvc: float64(1.1082251448272158), + Flogc: -Float64FromFloat64(0.10275976698545139), + }, + 7: { + Finvc: float64(1.0711297413057381), + Flogc: -Float64FromFloat64(0.06871392447020525), + }, + 8: { + Finvc: float64(1.036437278977283), + Flogc: -Float64FromFloat64(0.0357891387398228), + }, + 9: { + Finvc: float64(1), + }, + 10: { + Finvc: float64(0.9492859795739057), + Flogc: float64(0.05204517742929496), + }, + 11: { + Finvc: float64(0.8951049428609004), + Flogc: float64(0.11081431298787942), + }, + 12: { + Finvc: float64(0.8476821620351103), + Flogc: float64(0.1652495223695143), + }, + 13: { + Finvc: float64(0.8050314851692001), + Flogc: float64(0.21687389031699977), + }, + 14: { + Finvc: float64(0.7664671008843108), + Flogc: float64(0.2659635028121397), + }, + 15: { + Finvc: float64(0.731428603316328), + Flogc: float64(0.3127556664073557), + }, + }, + Fln2: float64(0.6931471805599453), + Fpoly: [3]float64{ + 0: -Float64FromFloat64(0.25089342214237154), + 1: float64(0.333456765744066), + 2: -Float64FromFloat64(0.4999997485802103), + }, +} + +var X__optpos int32 + +var Xoptreset int32 + +var X__pow_log_data = Tpow_log_data{ + Fln2hi: float64(0.6931471805598903), + Fln2lo: float64(5.497923018708371e-14), + Fpoly: [7]float64{ + 0: -Float64FromFloat64(0.5), + 1: float64(Float64FromFloat64(0.3333333333333339) * float64(-Int32FromInt32(2))), + 2: float64(-Float64FromFloat64(0.25000000000000033) * float64(-Int32FromInt32(2))), + 3: float64(Float64FromFloat64(0.1999999998830994) * Float64FromInt32(4)), + 4: float64(-Float64FromFloat64(0.16666666658719348) * Float64FromInt32(4)), + 5: float64(Float64FromFloat64(0.14286370355743763) * float64(-Int32FromInt32(8))), + 6: float64(-Float64FromFloat64(0.12500519079594427) * float64(-Int32FromInt32(8))), + }, + Ftab: [128]struct { + Finvc float64 + Fpad float64 + Flogc float64 + Flogctail float64 + }{ + 0: { + Finvc: float64(1.4140625), + Flogc: -Float64FromFloat64(0.3464667673462145), + Flogctail: float64(5.929407345889625e-15), + }, + 1: { + Finvc: float64(1.40625), + Flogc: -Float64FromFloat64(0.34092658697056777), + Flogctail: -Float64FromFloat64(2.544157440035963e-14), + }, + 2: { + Finvc: float64(1.3984375), + Flogc: -Float64FromFloat64(0.3353555419211034), + Flogctail: -Float64FromFloat64(3.443525940775045e-14), + }, + 3: { + Finvc: float64(1.390625), + Flogc: -Float64FromFloat64(0.3297532863724655), + Flogctail: -Float64FromFloat64(2.500123826022799e-15), + }, + 4: { + Finvc: float64(1.3828125), + Flogc: -Float64FromFloat64(0.32411946865420305), + Flogctail: -Float64FromFloat64(8.929337133850617e-15), + }, + 5: { + Finvc: float64(1.375), + Flogc: -Float64FromFloat64(0.31845373111855224), + Flogctail: float64(1.7625431312172662e-14), + }, + 6: { + Finvc: float64(1.3671875), + Flogc: -Float64FromFloat64(0.31275571000389846), + Flogctail: float64(1.5688303180062087e-15), + }, + 7: { + Finvc: float64(1.359375), + Flogc: -Float64FromFloat64(0.3070250352949415), + Flogctail: float64(2.9655274673691784e-14), + }, + 8: { + Finvc: float64(1.3515625), + Flogc: -Float64FromFloat64(0.3012613305781997), + Flogctail: float64(3.7923164802093147e-14), + }, + 9: { + Finvc: float64(1.34375), + Flogc: -Float64FromFloat64(0.2954642128938758), + Flogctail: float64(3.993416384387844e-14), + }, + 10: { + Finvc: float64(1.3359375), + Flogc: -Float64FromFloat64(0.28963329258306203), + Flogctail: float64(1.9352855826489123e-14), + }, + 11: { + Finvc: float64(1.3359375), + Flogc: -Float64FromFloat64(0.28963329258306203), + Flogctail: float64(1.9352855826489123e-14), + }, + 12: { + Finvc: float64(1.328125), + Flogc: -Float64FromFloat64(0.28376817313062475), + Flogctail: -Float64FromFloat64(1.9852665484979036e-14), + }, + 13: { + Finvc: float64(1.3203125), + Flogc: -Float64FromFloat64(0.27786845100342816), + Flogctail: -Float64FromFloat64(2.814323765595281e-14), + }, + 14: { + Finvc: float64(1.3125), + Flogc: -Float64FromFloat64(0.2719337154836694), + Flogctail: float64(2.7643769993528702e-14), + }, + 15: { + Finvc: float64(1.3046875), + Flogc: -Float64FromFloat64(0.2659635484970977), + Flogctail: -Float64FromFloat64(4.025092402293806e-14), + }, + 16: { + Finvc: float64(1.296875), + Flogc: -Float64FromFloat64(0.25995752443691345), + Flogctail: -Float64FromFloat64(1.2621729398885316e-14), + }, + 17: { + Finvc: float64(1.2890625), + Flogc: -Float64FromFloat64(0.25391520998095984), + Flogctail: -Float64FromFloat64(3.600176732637335e-15), + }, + 18: { + Finvc: float64(1.2890625), + Flogc: -Float64FromFloat64(0.25391520998095984), + Flogctail: -Float64FromFloat64(3.600176732637335e-15), + }, + 19: { + Finvc: float64(1.28125), + Flogc: -Float64FromFloat64(0.2478361639045943), + Flogctail: float64(1.3029797173308663e-14), + }, + 20: { + Finvc: float64(1.2734375), + Flogc: -Float64FromFloat64(0.2417199368871934), + Flogctail: float64(4.8230289429940886e-14), + }, + 21: { + Finvc: float64(1.265625), + Flogc: -Float64FromFloat64(0.23556607131274632), + Flogctail: -Float64FromFloat64(2.0592242769647135e-14), + }, + 22: { + Finvc: float64(1.2578125), + Flogc: -Float64FromFloat64(0.22937410106487732), + Flogctail: float64(3.149265065191484e-14), + }, + 23: { + Finvc: float64(1.25), + Flogc: -Float64FromFloat64(0.22314355131425145), + Flogctail: float64(4.169796584527195e-14), + }, + 24: { + Finvc: float64(1.25), + Flogc: -Float64FromFloat64(0.22314355131425145), + Flogctail: float64(4.169796584527195e-14), + }, + 25: { + Finvc: float64(1.2421875), + Flogc: -Float64FromFloat64(0.21687393830063684), + Flogctail: float64(2.2477465222466186e-14), + }, + 26: { + Finvc: float64(1.234375), + Flogc: -Float64FromFloat64(0.21056476910735), + Flogctail: float64(3.6507188831790577e-16), + }, + 27: { + Finvc: float64(1.2265625), + Flogc: -Float64FromFloat64(0.2042155414286526), + Flogctail: -Float64FromFloat64(3.827767260205414e-14), + }, + 28: { + Finvc: float64(1.2265625), + Flogc: -Float64FromFloat64(0.2042155414286526), + Flogctail: -Float64FromFloat64(3.827767260205414e-14), + }, + 29: { + Finvc: float64(1.21875), + Flogc: -Float64FromFloat64(0.19782574332987224), + Flogctail: -Float64FromFloat64(4.7641388950792196e-14), + }, + 30: { + Finvc: float64(1.2109375), + Flogc: -Float64FromFloat64(0.19139485299967873), + Flogctail: float64(4.9278276214647115e-14), + }, + 31: { + Finvc: float64(1.203125), + Flogc: -Float64FromFloat64(0.18492233849406148), + Flogctail: float64(4.9485167661250996e-14), + }, + 32: { + Finvc: float64(1.203125), + Flogc: -Float64FromFloat64(0.18492233849406148), + Flogctail: float64(4.9485167661250996e-14), + }, + 33: { + Finvc: float64(1.1953125), + Flogc: -Float64FromFloat64(0.1784076574728033), + Flogctail: -Float64FromFloat64(1.5003333854266542e-14), + }, + 34: { + Finvc: float64(1.1875), + Flogc: -Float64FromFloat64(0.17185025692663203), + Flogctail: -Float64FromFloat64(2.7194441649495324e-14), + }, + 35: { + Finvc: float64(1.1875), + Flogc: -Float64FromFloat64(0.17185025692663203), + Flogctail: -Float64FromFloat64(2.7194441649495324e-14), + }, + 36: { + Finvc: float64(1.1796875), + Flogc: -Float64FromFloat64(0.1652495728952772), + Flogctail: -Float64FromFloat64(2.99659267292569e-14), + }, + 37: { + Finvc: float64(1.171875), + Flogc: -Float64FromFloat64(0.15860503017665906), + Flogctail: float64(2.0472357800461955e-14), + }, + 38: { + Finvc: float64(1.171875), + Flogc: -Float64FromFloat64(0.15860503017665906), + Flogctail: float64(2.0472357800461955e-14), + }, + 39: { + Finvc: float64(1.1640625), + Flogc: -Float64FromFloat64(0.15191604202584585), + Flogctail: float64(3.879296723063646e-15), + }, + 40: { + Finvc: float64(1.15625), + Flogc: -Float64FromFloat64(0.1451820098444614), + Flogctail: -Float64FromFloat64(3.6506824353335045e-14), + }, + 41: { + Finvc: float64(1.1484375), + Flogc: -Float64FromFloat64(0.13840232285906495), + Flogctail: -Float64FromFloat64(5.4183331379008994e-14), + }, + 42: { + Finvc: float64(1.1484375), + Flogc: -Float64FromFloat64(0.13840232285906495), + Flogctail: -Float64FromFloat64(5.4183331379008994e-14), + }, + 43: { + Finvc: float64(1.140625), + Flogc: -Float64FromFloat64(0.131576357788731), + Flogctail: float64(1.1729485484531301e-14), + }, + 44: { + Finvc: float64(1.140625), + Flogc: -Float64FromFloat64(0.131576357788731), + Flogctail: float64(1.1729485484531301e-14), + }, + 45: { + Finvc: float64(1.1328125), + Flogc: -Float64FromFloat64(0.12470347850091912), + Flogctail: -Float64FromFloat64(3.811763084710266e-14), + }, + 46: { + Finvc: float64(1.125), + Flogc: -Float64FromFloat64(0.11778303565643), + Flogctail: float64(4.654729747598445e-14), + }, + 47: { + Finvc: float64(1.125), + Flogc: -Float64FromFloat64(0.11778303565643), + Flogctail: float64(4.654729747598445e-14), + }, + 48: { + Finvc: float64(1.1171875), + Flogc: -Float64FromFloat64(0.11081436634026431), + Flogctail: -Float64FromFloat64(2.5799991283069902e-14), + }, + 49: { + Finvc: float64(1.109375), + Flogc: -Float64FromFloat64(0.10379679368168127), + Flogctail: float64(3.7700471749674615e-14), + }, + 50: { + Finvc: float64(1.109375), + Flogc: -Float64FromFloat64(0.10379679368168127), + Flogctail: float64(3.7700471749674615e-14), + }, + 51: { + Finvc: float64(1.1015625), + Flogc: -Float64FromFloat64(0.09672962645856842), + Flogctail: float64(1.7306161136093256e-14), + }, + 52: { + Finvc: float64(1.1015625), + Flogc: -Float64FromFloat64(0.09672962645856842), + Flogctail: float64(1.7306161136093256e-14), + }, + 53: { + Finvc: float64(1.09375), + Flogc: -Float64FromFloat64(0.089612158689647), + Flogctail: -Float64FromFloat64(4.012913552726574e-14), + }, + 54: { + Finvc: float64(1.0859375), + Flogc: -Float64FromFloat64(0.08244366921110213), + Flogctail: float64(2.7541708360737882e-14), + }, + 55: { + Finvc: float64(1.0859375), + Flogc: -Float64FromFloat64(0.08244366921110213), + Flogctail: float64(2.7541708360737882e-14), + }, + 56: { + Finvc: float64(1.078125), + Flogc: -Float64FromFloat64(0.07522342123763792), + Flogctail: float64(5.0396178134370583e-14), + }, + 57: { + Finvc: float64(1.078125), + Flogc: -Float64FromFloat64(0.07522342123763792), + Flogctail: float64(5.0396178134370583e-14), + }, + 58: { + Finvc: float64(1.0703125), + Flogc: -Float64FromFloat64(0.06795066190852594), + Flogctail: float64(1.8195060030168815e-14), + }, + 59: { + Finvc: float64(1.0625), + Flogc: -Float64FromFloat64(0.06062462181648698), + Flogctail: float64(5.213620639136504e-14), + }, + 60: { + Finvc: float64(1.0625), + Flogc: -Float64FromFloat64(0.06062462181648698), + Flogctail: float64(5.213620639136504e-14), + }, + 61: { + Finvc: float64(1.0546875), + Flogc: -Float64FromFloat64(0.053244514518837605), + Flogctail: float64(2.532168943117445e-14), + }, + 62: { + Finvc: float64(1.0546875), + Flogc: -Float64FromFloat64(0.053244514518837605), + Flogctail: float64(2.532168943117445e-14), + }, + 63: { + Finvc: float64(1.046875), + Flogc: -Float64FromFloat64(0.045809536031242715), + Flogctail: -Float64FromFloat64(5.148849572685811e-14), + }, + 64: { + Finvc: float64(1.046875), + Flogc: -Float64FromFloat64(0.045809536031242715), + Flogctail: -Float64FromFloat64(5.148849572685811e-14), + }, + 65: { + Finvc: float64(1.0390625), + Flogc: -Float64FromFloat64(0.038318864302141264), + Flogctail: float64(4.6652946995830086e-15), + }, + 66: { + Finvc: float64(1.0390625), + Flogc: -Float64FromFloat64(0.038318864302141264), + Flogctail: float64(4.6652946995830086e-15), + }, + 67: { + Finvc: float64(1.03125), + Flogc: -Float64FromFloat64(0.03077165866670839), + Flogctail: -Float64FromFloat64(4.529814257790929e-14), + }, + 68: { + Finvc: float64(1.03125), + Flogc: -Float64FromFloat64(0.03077165866670839), + Flogctail: -Float64FromFloat64(4.529814257790929e-14), + }, + 69: { + Finvc: float64(1.0234375), + Flogc: -Float64FromFloat64(0.023167059281490765), + Flogctail: -Float64FromFloat64(4.361324067851568e-14), + }, + 70: { + Finvc: float64(1.015625), + Flogc: -Float64FromFloat64(0.015504186535963527), + Flogctail: -Float64FromFloat64(1.7274567499706107e-15), + }, + 71: { + Finvc: float64(1.015625), + Flogc: -Float64FromFloat64(0.015504186535963527), + Flogctail: -Float64FromFloat64(1.7274567499706107e-15), + }, + 72: { + Finvc: float64(1.0078125), + Flogc: -Float64FromFloat64(0.0077821404420319595), + Flogctail: -Float64FromFloat64(2.298941004620351e-14), + }, + 73: { + Finvc: float64(1.0078125), + Flogc: -Float64FromFloat64(0.0077821404420319595), + Flogctail: -Float64FromFloat64(2.298941004620351e-14), + }, + 74: { + Finvc: float64(1), + }, + 75: { + Finvc: float64(1), + }, + 76: { + Finvc: float64(0.9921875), + Flogc: float64(0.007843177461040796), + Flogctail: -Float64FromFloat64(1.4902732911301337e-14), + }, + 77: { + Finvc: float64(0.984375), + Flogc: float64(0.01574835696817445), + Flogctail: -Float64FromFloat64(3.527980389655325e-14), + }, + 78: { + Finvc: float64(0.9765625), + Flogc: float64(0.023716526617363343), + Flogctail: -Float64FromFloat64(4.730054772033249e-14), + }, + 79: { + Finvc: float64(0.96875), + Flogc: float64(0.03174869831457272), + Flogctail: float64(7.580310369375161e-15), + }, + 80: { + Finvc: float64(0.9609375), + Flogc: float64(0.039845908547249564), + Flogctail: -Float64FromFloat64(4.9893776716773285e-14), + }, + 81: { + Finvc: float64(0.953125), + Flogc: float64(0.048009219186383234), + Flogctail: -Float64FromFloat64(2.262629393030674e-14), + }, + 82: { + Finvc: float64(0.9453125), + Flogc: float64(0.056239718322899535), + Flogctail: -Float64FromFloat64(2.345674491018699e-14), + }, + 83: { + Finvc: float64(0.94140625), + Flogc: float64(0.06038051098892083), + Flogctail: -Float64FromFloat64(1.3352588834854848e-14), + }, + 84: { + Finvc: float64(0.93359375), + Flogc: float64(0.06871389254808946), + Flogctail: -Float64FromFloat64(3.765296820388875e-14), + }, + 85: { + Finvc: float64(0.92578125), + Flogc: float64(0.07711730334438016), + Flogctail: float64(5.1128335719851986e-14), + }, + 86: { + Finvc: float64(0.91796875), + Flogc: float64(0.08559193033545398), + Flogctail: -Float64FromFloat64(5.046674438470119e-14), + }, + 87: { + Finvc: float64(0.9140625), + Flogc: float64(0.08985632912185793), + Flogctail: float64(3.1218748807418837e-15), + }, + 88: { + Finvc: float64(0.90625), + Flogc: float64(0.09844007281321865), + Flogctail: float64(3.3871241029241416e-14), + }, + 89: { + Finvc: float64(0.8984375), + Flogc: float64(0.10709813555638448), + Flogctail: -Float64FromFloat64(1.7376727386423858e-14), + }, + 90: { + Finvc: float64(0.89453125), + Flogc: float64(0.11145544092528326), + Flogctail: float64(3.957125899799804e-14), + }, + 91: { + Finvc: float64(0.88671875), + Flogc: float64(0.12022742699821265), + Flogctail: -Float64FromFloat64(5.2849453521890294e-14), + }, + 92: { + Finvc: float64(0.8828125), + Flogc: float64(0.12464244520731427), + Flogctail: -Float64FromFloat64(3.767012502308738e-14), + }, + 93: { + Finvc: float64(0.875), + Flogc: float64(0.13353139262449076), + Flogctail: float64(3.1859736349078334e-14), + }, + 94: { + Finvc: float64(0.87109375), + Flogc: float64(0.13800567301939282), + Flogctail: float64(5.0900642926060466e-14), + }, + 95: { + Finvc: float64(0.86328125), + Flogc: float64(0.14701474296180095), + Flogctail: float64(8.710783796122478e-15), + }, + 96: { + Finvc: float64(0.859375), + Flogc: float64(0.15154989812720032), + Flogctail: float64(6.157896229122976e-16), + }, + 97: { + Finvc: float64(0.8515625), + Flogc: float64(0.16068238169043525), + Flogctail: float64(3.821577743916796e-14), + }, + 98: { + Finvc: float64(0.84765625), + Flogc: float64(0.16528009093906348), + Flogctail: float64(3.9440046718453496e-14), + }, + 99: { + Finvc: float64(0.83984375), + Flogc: float64(0.17453941635187675), + Flogctail: float64(2.2924522154618074e-14), + }, + 100: { + Finvc: float64(0.8359375), + Flogc: float64(0.17920142945774842), + Flogctail: -Float64FromFloat64(3.742530094732263e-14), + }, + 101: { + Finvc: float64(0.83203125), + Flogc: float64(0.18388527877016259), + Flogctail: -Float64FromFloat64(2.5223102140407338e-14), + }, + 102: { + Finvc: float64(0.82421875), + Flogc: float64(0.1933193110035063), + Flogctail: -Float64FromFloat64(1.0320443688698849e-14), + }, + 103: { + Finvc: float64(0.8203125), + Flogc: float64(0.19806991376208316), + Flogctail: float64(1.0634128304268335e-14), + }, + 104: { + Finvc: float64(0.8125), + Flogc: float64(0.20763936477828793), + Flogctail: -Float64FromFloat64(4.3425422595242564e-14), + }, + 105: { + Finvc: float64(0.80859375), + Flogc: float64(0.21245865121420593), + Flogctail: -Float64FromFloat64(1.2527395755711364e-14), + }, + 106: { + Finvc: float64(0.8046875), + Flogc: float64(0.21730127569003344), + Flogctail: -Float64FromFloat64(5.204008743405884e-14), + }, + 107: { + Finvc: float64(0.80078125), + Flogc: float64(0.22216746534115828), + Flogctail: -Float64FromFloat64(3.979844515951702e-15), + }, + 108: { + Finvc: float64(0.79296875), + Flogc: float64(0.2319714654378231), + Flogctail: -Float64FromFloat64(4.7955860343296286e-14), + }, + 109: { + Finvc: float64(0.7890625), + Flogc: float64(0.2369097470783572), + Flogctail: float64(5.015686013791602e-16), + }, + 110: { + Finvc: float64(0.78515625), + Flogc: float64(0.24187253642048745), + Flogctail: -Float64FromFloat64(7.252318953240293e-16), + }, + 111: { + Finvc: float64(0.78125), + Flogc: float64(0.2468600779315011), + Flogctail: float64(2.4688324156011588e-14), + }, + 112: { + Finvc: float64(0.7734375), + Flogc: float64(0.2569104137850218), + Flogctail: float64(5.465121253624792e-15), + }, + 113: { + Finvc: float64(0.76953125), + Flogc: float64(0.26197371574153294), + Flogctail: float64(4.102651071698446e-14), + }, + 114: { + Finvc: float64(0.765625), + Flogc: float64(0.2670627852490952), + Flogctail: -Float64FromFloat64(4.996736502345936e-14), + }, + 115: { + Finvc: float64(0.76171875), + Flogc: float64(0.27217788591576664), + Flogctail: float64(4.903580708156347e-14), + }, + 116: { + Finvc: float64(0.7578125), + Flogc: float64(0.27731928541618345), + Flogctail: float64(5.089628039500759e-14), + }, + 117: { + Finvc: float64(0.75390625), + Flogc: float64(0.28248725557466514), + Flogctail: float64(1.1782016386565151e-14), + }, + 118: { + Finvc: float64(0.74609375), + Flogc: float64(0.29290401643288533), + Flogctail: float64(4.727452940514406e-14), + }, + 119: { + Finvc: float64(0.7421875), + Flogc: float64(0.29815337231912054), + Flogctail: -Float64FromFloat64(4.4204083338755686e-14), + }, + 120: { + Finvc: float64(0.73828125), + Flogc: float64(0.3034304294199046), + Flogctail: float64(1.548345993498083e-14), + }, + 121: { + Finvc: float64(0.734375), + Flogc: float64(0.30873548164959175), + Flogctail: float64(2.1522127491642888e-14), + }, + 122: { + Finvc: float64(0.73046875), + Flogc: float64(0.3140688276249648), + Flogctail: float64(1.1054030169005386e-14), + }, + 123: { + Finvc: float64(0.7265625), + Flogc: float64(0.31943077076641657), + Flogctail: -Float64FromFloat64(5.534326352070679e-14), + }, + 124: { + Finvc: float64(0.72265625), + Flogc: float64(0.3248216194012912), + Flogctail: -Float64FromFloat64(5.351646604259541e-14), + }, + 125: { + Finvc: float64(0.71875), + Flogc: float64(0.33024168687052224), + Flogctail: float64(5.4612144489920215e-14), + }, + 126: { + Finvc: float64(0.71484375), + Flogc: float64(0.3356912916381134), + Flogctail: float64(2.8136969901227338e-14), + }, + 127: { + Finvc: float64(0.7109375), + Flogc: float64(0.3411707574027787), + Flogctail: -Float64FromFloat64(1.156568624616423e-14), + }, + }, +} + +var X__powf_log2_data = Tpowf_log2_data{ + Ftab: [16]struct { + Finvc float64 + Flogc float64 + }{ + 0: { + Finvc: float64(1.398907162146528), + Flogc: float64(-Float64FromFloat64(0.48430022186289673) * float64(Int32FromInt32(1)<:25:1: + X_LP64 = 1 // :286:1: + X_SYS_ERRNO_H = 0 // errno.h:41:1: + Sun = 1 // :172:1: + Unix = 1 // :175:1: +) + +type Ptrdiff_t = int64 /* :3:26 */ + +type Size_t = uint64 /* :9:23 */ + +type Wchar_t = int32 /* :15:24 */ + +type X__int128_t = struct { + Flo int64 + Fhi int64 +} /* :21:43 */ // must match modernc.org/mathutil.Int128 +type X__uint128_t = struct { + Flo uint64 + Fhi uint64 +} /* :22:44 */ // must match modernc.org/mathutil.Int128 + +type X__builtin_va_list = uintptr /* :46:14 */ +type X__float128 = float64 /* :47:21 */ +// ANSI C++ requires that errno be a macro + +var _ int8 /* gen.c:2:13: */ diff --git a/vendor/modernc.org/libc/errno/errno_linux_loong64.go b/vendor/modernc.org/libc/errno/errno_linux_loong64.go new file mode 100644 index 000000000..4410e8ee2 --- /dev/null +++ b/vendor/modernc.org/libc/errno/errno_linux_loong64.go @@ -0,0 +1,198 @@ +// Code generated by 'ccgo errno/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o errno/errno_linux_loong64.go -pkgname errno', DO NOT EDIT. + +package errno + +import ( + "math" + "reflect" + "sync/atomic" + "unsafe" +) + +var _ = math.Pi +var _ reflect.Kind +var _ atomic.Value +var _ unsafe.Pointer + +const ( + E2BIG = 7 // errno-base.h:11:1: + EACCES = 13 // errno-base.h:17:1: + EADDRINUSE = 98 // errno.h:81:1: + EADDRNOTAVAIL = 99 // errno.h:82:1: + EADV = 68 // errno.h:51:1: + EAFNOSUPPORT = 97 // errno.h:80:1: + EAGAIN = 11 // errno-base.h:15:1: + EALREADY = 114 // errno.h:97:1: + EBADE = 52 // errno.h:33:1: + EBADF = 9 // errno-base.h:13:1: + EBADFD = 77 // errno.h:60:1: + EBADMSG = 74 // errno.h:57:1: + EBADR = 53 // errno.h:34:1: + EBADRQC = 56 // errno.h:37:1: + EBADSLT = 57 // errno.h:38:1: + EBFONT = 59 // errno.h:42:1: + EBUSY = 16 // errno-base.h:20:1: + ECANCELED = 125 // errno.h:109:1: + ECHILD = 10 // errno-base.h:14:1: + ECHRNG = 44 // errno.h:25:1: + ECOMM = 70 // errno.h:53:1: + ECONNABORTED = 103 // errno.h:86:1: + ECONNREFUSED = 111 // errno.h:94:1: + ECONNRESET = 104 // errno.h:87:1: + EDEADLK = 35 // errno.h:7:1: + EDEADLOCK = 35 // errno.h:40:1: + EDESTADDRREQ = 89 // errno.h:72:1: + EDOM = 33 // errno-base.h:37:1: + EDOTDOT = 73 // errno.h:56:1: + EDQUOT = 122 // errno.h:105:1: + EEXIST = 17 // errno-base.h:21:1: + EFAULT = 14 // errno-base.h:18:1: + EFBIG = 27 // errno-base.h:31:1: + EHOSTDOWN = 112 // errno.h:95:1: + EHOSTUNREACH = 113 // errno.h:96:1: + EHWPOISON = 133 // errno.h:121:1: + EIDRM = 43 // errno.h:24:1: + EILSEQ = 84 // errno.h:67:1: + EINPROGRESS = 115 // errno.h:98:1: + EINTR = 4 // errno-base.h:8:1: + EINVAL = 22 // errno-base.h:26:1: + EIO = 5 // errno-base.h:9:1: + EISCONN = 106 // errno.h:89:1: + EISDIR = 21 // errno-base.h:25:1: + EISNAM = 120 // errno.h:103:1: + EKEYEXPIRED = 127 // errno.h:111:1: + EKEYREJECTED = 129 // errno.h:113:1: + EKEYREVOKED = 128 // errno.h:112:1: + EL2HLT = 51 // errno.h:32:1: + EL2NSYNC = 45 // errno.h:26:1: + EL3HLT = 46 // errno.h:27:1: + EL3RST = 47 // errno.h:28:1: + ELIBACC = 79 // errno.h:62:1: + ELIBBAD = 80 // errno.h:63:1: + ELIBEXEC = 83 // errno.h:66:1: + ELIBMAX = 82 // errno.h:65:1: + ELIBSCN = 81 // errno.h:64:1: + ELNRNG = 48 // errno.h:29:1: + ELOOP = 40 // errno.h:21:1: + EMEDIUMTYPE = 124 // errno.h:108:1: + EMFILE = 24 // errno-base.h:28:1: + EMLINK = 31 // errno-base.h:35:1: + EMSGSIZE = 90 // errno.h:73:1: + EMULTIHOP = 72 // errno.h:55:1: + ENAMETOOLONG = 36 // errno.h:8:1: + ENAVAIL = 119 // errno.h:102:1: + ENETDOWN = 100 // errno.h:83:1: + ENETRESET = 102 // errno.h:85:1: + ENETUNREACH = 101 // errno.h:84:1: + ENFILE = 23 // errno-base.h:27:1: + ENOANO = 55 // errno.h:36:1: + ENOBUFS = 105 // errno.h:88:1: + ENOCSI = 50 // errno.h:31:1: + ENODATA = 61 // errno.h:44:1: + ENODEV = 19 // errno-base.h:23:1: + ENOENT = 2 // errno-base.h:6:1: + ENOEXEC = 8 // errno-base.h:12:1: + ENOKEY = 126 // errno.h:110:1: + ENOLCK = 37 // errno.h:9:1: + ENOLINK = 67 // errno.h:50:1: + ENOMEDIUM = 123 // errno.h:107:1: + ENOMEM = 12 // errno-base.h:16:1: + ENOMSG = 42 // errno.h:23:1: + ENONET = 64 // errno.h:47:1: + ENOPKG = 65 // errno.h:48:1: + ENOPROTOOPT = 92 // errno.h:75:1: + ENOSPC = 28 // errno-base.h:32:1: + ENOSR = 63 // errno.h:46:1: + ENOSTR = 60 // errno.h:43:1: + ENOSYS = 38 // errno.h:18:1: + ENOTBLK = 15 // errno-base.h:19:1: + ENOTCONN = 107 // errno.h:90:1: + ENOTDIR = 20 // errno-base.h:24:1: + ENOTEMPTY = 39 // errno.h:20:1: + ENOTNAM = 118 // errno.h:101:1: + ENOTRECOVERABLE = 131 // errno.h:117:1: + ENOTSOCK = 88 // errno.h:71:1: + ENOTSUP = 95 // errno.h:30:1: + ENOTTY = 25 // errno-base.h:29:1: + ENOTUNIQ = 76 // errno.h:59:1: + ENXIO = 6 // errno-base.h:10:1: + EOPNOTSUPP = 95 // errno.h:78:1: + EOVERFLOW = 75 // errno.h:58:1: + EOWNERDEAD = 130 // errno.h:116:1: + EPERM = 1 // errno-base.h:5:1: + EPFNOSUPPORT = 96 // errno.h:79:1: + EPIPE = 32 // errno-base.h:36:1: + EPROTO = 71 // errno.h:54:1: + EPROTONOSUPPORT = 93 // errno.h:76:1: + EPROTOTYPE = 91 // errno.h:74:1: + ERANGE = 34 // errno-base.h:38:1: + EREMCHG = 78 // errno.h:61:1: + EREMOTE = 66 // errno.h:49:1: + EREMOTEIO = 121 // errno.h:104:1: + ERESTART = 85 // errno.h:68:1: + ERFKILL = 132 // errno.h:119:1: + EROFS = 30 // errno-base.h:34:1: + ESHUTDOWN = 108 // errno.h:91:1: + ESOCKTNOSUPPORT = 94 // errno.h:77:1: + ESPIPE = 29 // errno-base.h:33:1: + ESRCH = 3 // errno-base.h:7:1: + ESRMNT = 69 // errno.h:52:1: + ESTALE = 116 // errno.h:99:1: + ESTRPIPE = 86 // errno.h:69:1: + ETIME = 62 // errno.h:45:1: + ETIMEDOUT = 110 // errno.h:93:1: + ETOOMANYREFS = 109 // errno.h:92:1: + ETXTBSY = 26 // errno-base.h:30:1: + EUCLEAN = 117 // errno.h:100:1: + EUNATCH = 49 // errno.h:30:1: + EUSERS = 87 // errno.h:70:1: + EWOULDBLOCK = 11 // errno.h:22:1: + EXDEV = 18 // errno-base.h:22:1: + EXFULL = 54 // errno.h:35:1: + X_ABILP64 = 3 // :377:1: + X_ASM_GENERIC_ERRNO_BASE_H = 0 // errno-base.h:3:1: + X_ASM_GENERIC_ERRNO_H = 0 // errno.h:3:1: + X_ATFILE_SOURCE = 1 // features.h:353:1: + X_BITS_ERRNO_H = 1 // errno.h:20:1: + X_DEFAULT_SOURCE = 1 // features.h:238:1: + X_ERRNO_H = 1 // errno.h:23:1: + X_FEATURES_H = 1 // features.h:19:1: + X_FILE_OFFSET_BITS = 64 // :25:1: + X_LOONGARCH_ARCH = "loongarch64" // :214:1: + X_LOONGARCH_ARCH_LOONGARCH64 = 1 // :340:1: + X_LOONGARCH_FPSET = 32 // :265:1: + X_LOONGARCH_SIM = 3 // :233:1: + X_LOONGARCH_SPFPSET = 32 // :88:1: + X_LOONGARCH_SZINT = 32 // :230:1: + X_LOONGARCH_SZLONG = 64 // :388:1: + X_LOONGARCH_SZPTR = 64 // :200:1: + X_LOONGARCH_TUNE = "la464" // :245:1: + X_LOONGARCH_TUNE_LA464 = 1 // :63:1: + X_LP64 = 1 // :372:1: + X_POSIX_C_SOURCE = 200809 // features.h:292:1: + X_POSIX_SOURCE = 1 // features.h:290:1: + X_STDC_PREDEF_H = 1 // :223:1: + X_SYS_CDEFS_H = 1 // cdefs.h:20:1: + Linux = 1 // :308:1: + Unix = 1 // :247:1: +) + +type Ptrdiff_t = int64 /* :3:26 */ + +type Size_t = uint64 /* :9:23 */ + +type Wchar_t = int32 /* :15:24 */ + +type X__int128_t = struct { + Flo int64 + Fhi int64 +} /* :21:43 */ // must match modernc.org/mathutil.Int128 +type X__uint128_t = struct { + Flo uint64 + Fhi uint64 +} /* :22:44 */ // must match modernc.org/mathutil.Int128 + +type X__builtin_va_list = uintptr /* :46:14 */ +type X__float128 = float64 /* :47:21 */ + +var _ int8 /* gen.c:2:13: */ diff --git a/vendor/modernc.org/libc/errno/errno_linux_mips64le.go b/vendor/modernc.org/libc/errno/errno_linux_mips64le.go new file mode 100644 index 000000000..000cb720c --- /dev/null +++ b/vendor/modernc.org/libc/errno/errno_linux_mips64le.go @@ -0,0 +1,187 @@ +// Code generated by 'ccgo errno/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o errno/errno_linux_amd64.go -pkgname errno', DO NOT EDIT. + +package errno + +import ( + "math" + "reflect" + "sync/atomic" + "unsafe" +) + +var _ = math.Pi +var _ reflect.Kind +var _ atomic.Value +var _ unsafe.Pointer + +const ( + E2BIG = 7 // errno-base.h:11:1: + EACCES = 13 // errno-base.h:17:1: + EADDRINUSE = 98 // errno.h:81:1: + EADDRNOTAVAIL = 99 // errno.h:82:1: + EADV = 68 // errno.h:51:1: + EAFNOSUPPORT = 97 // errno.h:80:1: + EAGAIN = 11 // errno-base.h:15:1: + EALREADY = 114 // errno.h:97:1: + EBADE = 52 // errno.h:33:1: + EBADF = 9 // errno-base.h:13:1: + EBADFD = 77 // errno.h:60:1: + EBADMSG = 74 // errno.h:57:1: + EBADR = 53 // errno.h:34:1: + EBADRQC = 56 // errno.h:37:1: + EBADSLT = 57 // errno.h:38:1: + EBFONT = 59 // errno.h:42:1: + EBUSY = 16 // errno-base.h:20:1: + ECANCELED = 125 // errno.h:109:1: + ECHILD = 10 // errno-base.h:14:1: + ECHRNG = 44 // errno.h:25:1: + ECOMM = 70 // errno.h:53:1: + ECONNABORTED = 103 // errno.h:86:1: + ECONNREFUSED = 111 // errno.h:94:1: + ECONNRESET = 104 // errno.h:87:1: + EDEADLK = 35 // errno.h:7:1: + EDEADLOCK = 35 // errno.h:40:1: + EDESTADDRREQ = 89 // errno.h:72:1: + EDOM = 33 // errno-base.h:37:1: + EDOTDOT = 73 // errno.h:56:1: + EDQUOT = 122 // errno.h:105:1: + EEXIST = 17 // errno-base.h:21:1: + EFAULT = 14 // errno-base.h:18:1: + EFBIG = 27 // errno-base.h:31:1: + EHOSTDOWN = 112 // errno.h:95:1: + EHOSTUNREACH = 113 // errno.h:96:1: + EHWPOISON = 133 // errno.h:121:1: + EIDRM = 43 // errno.h:24:1: + EILSEQ = 84 // errno.h:67:1: + EINPROGRESS = 115 // errno.h:98:1: + EINTR = 4 // errno-base.h:8:1: + EINVAL = 22 // errno-base.h:26:1: + EIO = 5 // errno-base.h:9:1: + EISCONN = 106 // errno.h:89:1: + EISDIR = 21 // errno-base.h:25:1: + EISNAM = 120 // errno.h:103:1: + EKEYEXPIRED = 127 // errno.h:111:1: + EKEYREJECTED = 129 // errno.h:113:1: + EKEYREVOKED = 128 // errno.h:112:1: + EL2HLT = 51 // errno.h:32:1: + EL2NSYNC = 45 // errno.h:26:1: + EL3HLT = 46 // errno.h:27:1: + EL3RST = 47 // errno.h:28:1: + ELIBACC = 79 // errno.h:62:1: + ELIBBAD = 80 // errno.h:63:1: + ELIBEXEC = 83 // errno.h:66:1: + ELIBMAX = 82 // errno.h:65:1: + ELIBSCN = 81 // errno.h:64:1: + ELNRNG = 48 // errno.h:29:1: + ELOOP = 40 // errno.h:21:1: + EMEDIUMTYPE = 124 // errno.h:108:1: + EMFILE = 24 // errno-base.h:28:1: + EMLINK = 31 // errno-base.h:35:1: + EMSGSIZE = 90 // errno.h:73:1: + EMULTIHOP = 72 // errno.h:55:1: + ENAMETOOLONG = 36 // errno.h:8:1: + ENAVAIL = 119 // errno.h:102:1: + ENETDOWN = 100 // errno.h:83:1: + ENETRESET = 102 // errno.h:85:1: + ENETUNREACH = 101 // errno.h:84:1: + ENFILE = 23 // errno-base.h:27:1: + ENOANO = 55 // errno.h:36:1: + ENOBUFS = 105 // errno.h:88:1: + ENOCSI = 50 // errno.h:31:1: + ENODATA = 61 // errno.h:44:1: + ENODEV = 19 // errno-base.h:23:1: + ENOENT = 2 // errno-base.h:6:1: + ENOEXEC = 8 // errno-base.h:12:1: + ENOKEY = 126 // errno.h:110:1: + ENOLCK = 37 // errno.h:9:1: + ENOLINK = 67 // errno.h:50:1: + ENOMEDIUM = 123 // errno.h:107:1: + ENOMEM = 12 // errno-base.h:16:1: + ENOMSG = 42 // errno.h:23:1: + ENONET = 64 // errno.h:47:1: + ENOPKG = 65 // errno.h:48:1: + ENOPROTOOPT = 92 // errno.h:75:1: + ENOSPC = 28 // errno-base.h:32:1: + ENOSR = 63 // errno.h:46:1: + ENOSTR = 60 // errno.h:43:1: + ENOSYS = 38 // errno.h:18:1: + ENOTBLK = 15 // errno-base.h:19:1: + ENOTCONN = 107 // errno.h:90:1: + ENOTDIR = 20 // errno-base.h:24:1: + ENOTEMPTY = 39 // errno.h:20:1: + ENOTNAM = 118 // errno.h:101:1: + ENOTRECOVERABLE = 131 // errno.h:117:1: + ENOTSOCK = 88 // errno.h:71:1: + ENOTSUP = 95 // errno.h:30:1: + ENOTTY = 25 // errno-base.h:29:1: + ENOTUNIQ = 76 // errno.h:59:1: + ENXIO = 6 // errno-base.h:10:1: + EOPNOTSUPP = 95 // errno.h:78:1: + EOVERFLOW = 75 // errno.h:58:1: + EOWNERDEAD = 130 // errno.h:116:1: + EPERM = 1 // errno-base.h:5:1: + EPFNOSUPPORT = 96 // errno.h:79:1: + EPIPE = 32 // errno-base.h:36:1: + EPROTO = 71 // errno.h:54:1: + EPROTONOSUPPORT = 93 // errno.h:76:1: + EPROTOTYPE = 91 // errno.h:74:1: + ERANGE = 34 // errno-base.h:38:1: + EREMCHG = 78 // errno.h:61:1: + EREMOTE = 66 // errno.h:49:1: + EREMOTEIO = 121 // errno.h:104:1: + ERESTART = 85 // errno.h:68:1: + ERFKILL = 132 // errno.h:119:1: + EROFS = 30 // errno-base.h:34:1: + ESHUTDOWN = 108 // errno.h:91:1: + ESOCKTNOSUPPORT = 94 // errno.h:77:1: + ESPIPE = 29 // errno-base.h:33:1: + ESRCH = 3 // errno-base.h:7:1: + ESRMNT = 69 // errno.h:52:1: + ESTALE = 116 // errno.h:99:1: + ESTRPIPE = 86 // errno.h:69:1: + ETIME = 62 // errno.h:45:1: + ETIMEDOUT = 110 // errno.h:93:1: + ETOOMANYREFS = 109 // errno.h:92:1: + ETXTBSY = 26 // errno-base.h:30:1: + EUCLEAN = 117 // errno.h:100:1: + EUNATCH = 49 // errno.h:30:1: + EUSERS = 87 // errno.h:70:1: + EWOULDBLOCK = 11 // errno.h:22:1: + EXDEV = 18 // errno-base.h:22:1: + EXFULL = 54 // errno.h:35:1: + X_ASM_GENERIC_ERRNO_BASE_H = 0 // errno-base.h:3:1: + X_ASM_GENERIC_ERRNO_H = 0 // errno.h:3:1: + X_ATFILE_SOURCE = 1 // features.h:342:1: + X_BITS_ERRNO_H = 1 // errno.h:20:1: + X_DEFAULT_SOURCE = 1 // features.h:227:1: + X_ERRNO_H = 1 // errno.h:23:1: + X_FEATURES_H = 1 // features.h:19:1: + X_FILE_OFFSET_BITS = 64 // :25:1: + X_LP64 = 1 // :284:1: + X_POSIX_C_SOURCE = 200809 // features.h:281:1: + X_POSIX_SOURCE = 1 // features.h:279:1: + X_STDC_PREDEF_H = 1 // :162:1: + X_SYS_CDEFS_H = 1 // cdefs.h:19:1: + Linux = 1 // :231:1: + Unix = 1 // :177:1: +) + +type Ptrdiff_t = int64 /* :3:26 */ + +type Size_t = uint64 /* :9:23 */ + +type Wchar_t = int32 /* :15:24 */ + +type X__int128_t = struct { + Flo int64 + Fhi int64 +} /* :21:43 */ // must match modernc.org/mathutil.Int128 +type X__uint128_t = struct { + Flo uint64 + Fhi uint64 +} /* :22:44 */ // must match modernc.org/mathutil.Int128 + +type X__builtin_va_list = uintptr /* :46:14 */ +type X__float128 = float64 /* :47:21 */ + +var _ int8 /* gen.c:2:13: */ diff --git a/vendor/modernc.org/libc/etc.go b/vendor/modernc.org/libc/etc.go index ca1880726..dab9f156f 100644 --- a/vendor/modernc.org/libc/etc.go +++ b/vendor/modernc.org/libc/etc.go @@ -2,6 +2,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build !(linux && (amd64 || arm64 || loong64 || ppc64le || s390x || riscv64 || 386 || arm)) + package libc // import "modernc.org/libc" import ( @@ -9,14 +11,13 @@ import ( "io" "os" "path/filepath" + "reflect" "runtime" - "runtime/debug" "sort" "strconv" "strings" "sync" "sync/atomic" - "syscall" "time" "unsafe" @@ -97,7 +98,6 @@ func todo(s string, args ...interface{}) string { //TODO- dmesg("%s", r) } fmt.Fprintf(os.Stdout, "%s\n", r) - fmt.Fprintf(os.Stdout, "%s\n", debug.Stack()) //TODO- os.Stdout.Sync() os.Exit(1) panic("unrechable") @@ -149,26 +149,30 @@ func addObject(o interface{}) uintptr { func getObject(t uintptr) interface{} { objectMu.Lock() + defer objectMu.Unlock() o := objects[t] if o == nil { panic(todo("", t)) } - objectMu.Unlock() return o } func removeObject(t uintptr) { objectMu.Lock() + defer objectMu.Unlock() if _, ok := objects[t]; !ok { panic(todo("")) } delete(objects, t) - objectMu.Unlock() } func (t *TLS) setErrno(err interface{}) { + if t == nil { + panic("nil TLS") + } + if memgrind { if atomic.SwapInt32(&t.reentryGuard, 1) != 0 { panic(todo("concurrent use of TLS instance %p", t)) @@ -192,7 +196,7 @@ again: case *os.PathError: err = x.Err goto again - case syscall.Errno: + case syscallErrno: *(*int32)(unsafe.Pointer(t.errnop)) = int32(x) case *os.SyscallError: err = x.Err @@ -231,6 +235,7 @@ func (t *TLS) Close() { // t.Free(11) // t.Free(22) func (t *TLS) Alloc(n int) (r uintptr) { + t.sp++ if memgrind { if atomic.SwapInt32(&t.reentryGuard, 1) != 0 { panic(todo("concurrent use of TLS instance %p", t)) @@ -315,6 +320,7 @@ const stackFrameKeepalive = 2 // Free deallocates n bytes of thread-local storage. See TLS.Alloc for details // on correct usage. func (t *TLS) Free(n int) { + t.sp-- if memgrind { if atomic.SwapInt32(&t.reentryGuard, 1) != 0 { panic(todo("concurrent use of TLS instance %p", t)) @@ -436,7 +442,10 @@ func VaList(p uintptr, args ...interface{}) (r uintptr) { case uintptr: *(*uintptr)(unsafe.Pointer(p)) = x default: - panic(todo("invalid VaList argument type: %T", x)) + sz := reflect.TypeOf(v).Size() + copy(unsafe.Slice((*byte)(unsafe.Pointer(p)), sz), unsafe.Slice((*byte)(unsafe.Pointer((*[2]uintptr)(unsafe.Pointer(&v))[1])), sz)) + p += roundup(sz, 8) + continue } p += 8 } @@ -459,6 +468,18 @@ func NewVaList(args ...interface{}) (va_list uintptr) { return VaList(NewVaListN(len(args)), args...) } +func VaOther(app *uintptr, sz uint64) (r uintptr) { + ap := *(*uintptr)(unsafe.Pointer(app)) + if ap == 0 { + return 0 + } + + r = ap + ap = roundup(ap+uintptr(sz), 8) + *(*uintptr)(unsafe.Pointer(app)) = ap + return r +} + func VaInt32(app *uintptr) int32 { ap := *(*uintptr)(unsafe.Pointer(app)) if ap == 0 { @@ -550,40 +571,29 @@ func VaUintptr(app *uintptr) uintptr { return v } -func roundup(n, to uintptr) uintptr { - if r := n % to; r != 0 { - return n + to - r - } - - return n -} +func getVaList(va uintptr) []string { + r := []string{} -func GoString(s uintptr) string { - if s == 0 { - return "" - } - - var buf []byte - for { - b := *(*byte)(unsafe.Pointer(s)) - if b == 0 { - return string(buf) + for p := va; ; p += 8 { + st := *(*uintptr)(unsafe.Pointer(p)) + if st == 0 { + return r } - - buf = append(buf, b) - s++ + r = append(r, GoString(st)) } + return r } -// GoBytes returns a byte slice from a C char* having length len bytes. -func GoBytes(s uintptr, len int) []byte { - if len == 0 { - return nil +func roundup(n, to uintptr) uintptr { + if r := n % to; r != 0 { + return n + to - r } - return (*RawMem)(unsafe.Pointer(s))[:len:len] + return n } +func Bool(v bool) bool { return v } + func Bool32(b bool) int32 { if b { return 1 diff --git a/vendor/modernc.org/libc/etc_musl.go b/vendor/modernc.org/libc/etc_musl.go new file mode 100644 index 000000000..2f32a94f3 --- /dev/null +++ b/vendor/modernc.org/libc/etc_musl.go @@ -0,0 +1,69 @@ +// Copyright 2023 The Libc Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build linux && (amd64 || arm64 || loong64 || ppc64le || s390x || riscv64 || 386 || arm) + +package libc // import "modernc.org/libc" + +import ( + "fmt" + "os" + "path/filepath" + "runtime" + "strings" +) + +// origin returns caller's short position, skipping skip frames. +func origin(skip int) string { + pc, fn, fl, _ := runtime.Caller(skip) + f := runtime.FuncForPC(pc) + var fns string + if f != nil { + fns = f.Name() + if x := strings.LastIndex(fns, "."); x > 0 { + fns = fns[x+1:] + } + if strings.HasPrefix(fns, "func") { + num := true + for _, c := range fns[len("func"):] { + if c < '0' || c > '9' { + num = false + break + } + } + if num { + return origin(skip + 2) + } + } + } + return fmt.Sprintf("%s:%d:%s", filepath.Base(fn), fl, fns) +} + +// todo prints and return caller's position and an optional message tagged with TODO. Output goes to stderr. +func todo(s string, args ...interface{}) string { + switch { + case s == "": + s = fmt.Sprintf(strings.Repeat("%v ", len(args)), args...) + default: + s = fmt.Sprintf(s, args...) + } + r := fmt.Sprintf("%s\n\tTODO %s", origin(2), s) + // fmt.Fprintf(os.Stderr, "%s\n", r) + // os.Stdout.Sync() + return r +} + +// trc prints and return caller's position and an optional message tagged with TRC. Output goes to stderr. +func trc(s string, args ...interface{}) string { + switch { + case s == "": + s = fmt.Sprintf(strings.Repeat("%v ", len(args)), args...) + default: + s = fmt.Sprintf(s, args...) + } + r := fmt.Sprintf("%s: TRC %s", origin(2), s) + fmt.Fprintf(os.Stderr, "%s\n", r) + os.Stderr.Sync() + return r +} diff --git a/vendor/modernc.org/libc/fcntl/capi_illumos_amd64.go b/vendor/modernc.org/libc/fcntl/capi_illumos_amd64.go new file mode 100644 index 000000000..4e7d96df7 --- /dev/null +++ b/vendor/modernc.org/libc/fcntl/capi_illumos_amd64.go @@ -0,0 +1,5 @@ +// Code generated by 'ccgo fcntl/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o fcntl/fcntl_illumos_amd64.go -pkgname fcntl', DO NOT EDIT. + +package fcntl + +var CAPI = map[string]struct{}{} diff --git a/vendor/modernc.org/libc/fcntl/capi_linux_loong64.go b/vendor/modernc.org/libc/fcntl/capi_linux_loong64.go new file mode 100644 index 000000000..b62370d48 --- /dev/null +++ b/vendor/modernc.org/libc/fcntl/capi_linux_loong64.go @@ -0,0 +1,5 @@ +// Code generated by 'ccgo fcntl/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o fcntl/fcntl_linux_loong64.go -pkgname fcntl', DO NOT EDIT. + +package fcntl + +var CAPI = map[string]struct{}{} diff --git a/vendor/modernc.org/libc/fcntl/capi_linux_mips64le.go b/vendor/modernc.org/libc/fcntl/capi_linux_mips64le.go new file mode 100644 index 000000000..9db297f1a --- /dev/null +++ b/vendor/modernc.org/libc/fcntl/capi_linux_mips64le.go @@ -0,0 +1,5 @@ +// Code generated by 'ccgo fcntl/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o fcntl/fcntl_linux_amd64.go -pkgname fcntl', DO NOT EDIT. + +package fcntl + +var CAPI = map[string]struct{}{} diff --git a/vendor/modernc.org/libc/fcntl/fcntl_illumos_amd64.go b/vendor/modernc.org/libc/fcntl/fcntl_illumos_amd64.go new file mode 100644 index 000000000..3028e2a75 --- /dev/null +++ b/vendor/modernc.org/libc/fcntl/fcntl_illumos_amd64.go @@ -0,0 +1,3242 @@ +// Code generated by 'ccgo fcntl/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o fcntl/fcntl_illumos_amd64.go -pkgname fcntl', DO NOT EDIT. + +package fcntl + +import ( + "math" + "reflect" + "sync/atomic" + "unsafe" +) + +var _ = math.Pi +var _ reflect.Kind +var _ atomic.Value +var _ unsafe.Pointer + +const ( + AT_EACCESS = 0x4 // fcntl.h:395:1: + AT_FDCWD = 0xffd19553 // fcntl.h:390:1: + AT_REMOVEDIR = 0x1 // fcntl.h:393:1: + AT_SYMLINK_FOLLOW = 0x2000 // fcntl.h:392:1: + AT_SYMLINK_NOFOLLOW = 0x1000 // fcntl.h:391:1: + CLOCKS_PER_SEC = 1000000 // time_iso.h:78:1: + CLOCK_HIGHRES = 4 // time_impl.h:126:1: + CLOCK_MONOTONIC = 4 // time_impl.h:124:1: + CLOCK_PROCESS_CPUTIME_ID = 5 // time_impl.h:125:1: + CLOCK_PROF = 2 // time_impl.h:127:1: + CLOCK_REALTIME = 3 // time_impl.h:123:1: + CLOCK_THREAD_CPUTIME_ID = 2 // time_impl.h:122:1: + CLOCK_VIRTUAL = 1 // time_impl.h:121:1: + DIRECTIO_OFF = 0 // fcntl.h:351:1: + DIRECTIO_ON = 1 // fcntl.h:352:1: + DST_AUST = 2 // time.h:115:1: + DST_AUSTALT = 10 // time.h:123:1: + DST_CAN = 6 // time.h:119:1: + DST_EET = 5 // time.h:118:1: + DST_GB = 7 // time.h:120:1: + DST_MET = 4 // time.h:117:1: + DST_NONE = 0 // time.h:113:1: + DST_RUM = 8 // time.h:121:1: + DST_TUR = 9 // time.h:122:1: + DST_USA = 1 // time.h:114:1: + DST_WET = 3 // time.h:116:1: + FD_CLOEXEC = 1 // fcntl.h:345:1: + FD_SETSIZE = 65536 // select.h:88:1: + F_ALLOCSP = 10 // fcntl.h:162:1: + F_ALLOCSP64 = 10 // fcntl.h:215:1: + F_BADFD = 46 // fcntl.h:234:1: + F_BLKSIZE = 19 // fcntl.h:139:1: + F_BLOCKS = 18 // fcntl.h:138:1: + F_CHKFL = 8 // fcntl.h:128:1: + F_COMPAT = 0x8 // fcntl.h:380:1: + F_DUP2FD = 9 // fcntl.h:129:1: + F_DUP2FD_CLOEXEC = 36 // fcntl.h:130:1: + F_DUPFD = 0 // fcntl.h:101:1: + F_DUPFD_CLOEXEC = 37 // fcntl.h:132:1: + F_FLOCK = 53 // fcntl.h:170:1: + F_FLOCK64 = 53 // fcntl.h:223:1: + F_FLOCKW = 54 // fcntl.h:171:1: + F_FLOCKW64 = 54 // fcntl.h:224:1: + F_FREESP = 11 // fcntl.h:163:1: + F_FREESP64 = 11 // fcntl.h:216:1: + F_GETFD = 1 // fcntl.h:102:1: + F_GETFL = 3 // fcntl.h:104:1: + F_GETLK = 14 // fcntl.h:164:1: + F_GETLK64 = 14 // fcntl.h:217:1: + F_GETOWN = 23 // fcntl.h:143:1: + F_GETXFL = 45 // fcntl.h:105:1: + F_HASREMOTELOCKS = 26 // fcntl.h:147:1: + F_ISSTREAM = 13 // fcntl.h:134:1: + F_MANDDNY = 0x10 // fcntl.h:381:1: + F_MDACC = 0x20 // fcntl.h:370:1: + F_NODNY = 0x0 // fcntl.h:375:1: + F_NPRIV = 16 // fcntl.h:136:1: + F_OFD_GETLK = 47 // fcntl.h:167:1: + F_OFD_GETLK64 = 47 // fcntl.h:220:1: + F_OFD_SETLK = 48 // fcntl.h:168:1: + F_OFD_SETLK64 = 48 // fcntl.h:221:1: + F_OFD_SETLKW = 49 // fcntl.h:169:1: + F_OFD_SETLKW64 = 49 // fcntl.h:222:1: + F_PRIV = 15 // fcntl.h:135:1: + F_QUOTACTL = 17 // fcntl.h:137:1: + F_RDACC = 0x1 // fcntl.h:366:1: + F_RDDNY = 0x1 // fcntl.h:376:1: + F_RDLCK = 01 // fcntl.h:334:1: + F_REVOKE = 25 // fcntl.h:145:1: + F_RMACC = 0x4 // fcntl.h:369:1: + F_RMDNY = 0x4 // fcntl.h:379:1: + F_RWACC = 0x3 // fcntl.h:368:1: + F_RWDNY = 0x3 // fcntl.h:378:1: + F_SETFD = 2 // fcntl.h:103:1: + F_SETFL = 4 // fcntl.h:106:1: + F_SETLK = 6 // fcntl.h:160:1: + F_SETLK64 = 6 // fcntl.h:213:1: + F_SETLK64_NBMAND = 42 // fcntl.h:218:1: + F_SETLKW = 7 // fcntl.h:161:1: + F_SETLKW64 = 7 // fcntl.h:214:1: + F_SETLK_NBMAND = 42 // fcntl.h:165:1: + F_SETOWN = 24 // fcntl.h:144:1: + F_SHARE = 40 // fcntl.h:230:1: + F_SHARE_NBMAND = 43 // fcntl.h:232:1: + F_UNLCK = 03 // fcntl.h:336:1: + F_UNLKSYS = 04 // fcntl.h:337:1: + F_UNSHARE = 41 // fcntl.h:231:1: + F_WRACC = 0x2 // fcntl.h:367:1: + F_WRDNY = 0x2 // fcntl.h:377:1: + F_WRLCK = 02 // fcntl.h:335:1: + ITIMER_PROF = 2 // time.h:201:1: + ITIMER_REAL = 0 // time.h:199:1: + ITIMER_REALPROF = 3 // time.h:204:1: + ITIMER_VIRTUAL = 1 // time.h:200:1: + MICROSEC = 1000000 // time.h:246:1: + MILLISEC = 1000 // time.h:245:1: + NANOSEC = 1000000000 // time.h:247:1: + NBBY = 8 // select.h:103:1: + O_ACCMODE = 6291459 // fcntl.h:344:1: + O_APPEND = 0x08 // fcntl.h:65:1: + O_CLOEXEC = 0x800000 // fcntl.h:88:1: + O_CREAT = 0x100 // fcntl.h:81:1: + O_DIRECT = 0x2000000 // fcntl.h:93:1: + O_DIRECTORY = 0x1000000 // fcntl.h:90:1: + O_DSYNC = 0x40 // fcntl.h:69:1: + O_EXCL = 0x400 // fcntl.h:83:1: + O_EXEC = 0x400000 // fcntl.h:61:1: + O_LARGEFILE = 0x2000 // fcntl.h:75:1: + O_NDELAY = 0x04 // fcntl.h:63:1: + O_NOCTTY = 0x800 // fcntl.h:84:1: + O_NOFOLLOW = 0x20000 // fcntl.h:86:1: + O_NOLINKS = 0x40000 // fcntl.h:87:1: + O_NONBLOCK = 0x80 // fcntl.h:73:1: + O_RDONLY = 0 // fcntl.h:57:1: + O_RDWR = 2 // fcntl.h:59:1: + O_RSYNC = 0x8000 // fcntl.h:70:1: + O_SEARCH = 0x200000 // fcntl.h:60:1: + O_SYNC = 0x10 // fcntl.h:68:1: + O_TRUNC = 0x200 // fcntl.h:82:1: + O_WRONLY = 1 // fcntl.h:58:1: + O_XATTR = 0x4000 // fcntl.h:85:1: + POSIX_FADV_DONTNEED = 4 // fcntl.h:404:1: + POSIX_FADV_NOREUSE = 5 // fcntl.h:405:1: + POSIX_FADV_NORMAL = 0 // fcntl.h:400:1: + POSIX_FADV_RANDOM = 1 // fcntl.h:401:1: + POSIX_FADV_SEQUENTIAL = 2 // fcntl.h:402:1: + POSIX_FADV_WILLNEED = 3 // fcntl.h:403:1: + P_MYID = -1 // types.h:632:1: + REG_LABEL_BP = 2 // machtypes.h:44:1: + REG_LABEL_MAX = 8 // machtypes.h:51:1: + REG_LABEL_PC = 0 // machtypes.h:42:1: + REG_LABEL_R12 = 4 // machtypes.h:47:1: + REG_LABEL_R13 = 5 // machtypes.h:48:1: + REG_LABEL_R14 = 6 // machtypes.h:49:1: + REG_LABEL_R15 = 7 // machtypes.h:50:1: + REG_LABEL_RBX = 3 // machtypes.h:46:1: + REG_LABEL_SP = 1 // machtypes.h:43:1: + SEC = 1 // time.h:244:1: + SEEK_DATA = 3 // fcntl.h:65:1: + SEEK_HOLE = 4 // fcntl.h:69:1: + TIMER_ABSTIME = 0x1 // time_impl.h:134:1: + TIMER_RELTIME = 0x0 // time_impl.h:133:1: + TIME_UTC = 0x1 // time.h:306:1: + X_ALIGNMENT_REQUIRED = 1 // isa_defs.h:262:1: + X_AT_TRIGGER = 0x2 // fcntl.h:394:1: + X_BIT_FIELDS_LTOH = 0 // isa_defs.h:245:1: + X_BOOL_ALIGNMENT = 1 // isa_defs.h:248:1: + X_CHAR_ALIGNMENT = 1 // isa_defs.h:249:1: + X_CHAR_IS_SIGNED = 0 // isa_defs.h:247:1: + X_CLOCKID_T = 0 // types.h:568:1: + X_CLOCK_T = 0 // types.h:563:1: + X_COND_MAGIC = 0x4356 // types.h:426:1: + X_DMA_USES_PHYSADDR = 0 // isa_defs.h:281:1: + X_DONT_USE_1275_GENERIC_NAMES = 0 // isa_defs.h:287:1: + X_DOUBLE_ALIGNMENT = 8 // isa_defs.h:256:1: + X_DOUBLE_COMPLEX_ALIGNMENT = 8 // isa_defs.h:257:1: + X_DTRACE_VERSION = 1 // feature_tests.h:490:1: + X_FCNTL_H = 0 // fcntl.h:33:1: + X_FILE_OFFSET_BITS = 64 // :25:1: + X_FIRMWARE_NEEDS_FDISK = 0 // isa_defs.h:282:1: + X_FLOAT_ALIGNMENT = 4 // isa_defs.h:252:1: + X_FLOAT_COMPLEX_ALIGNMENT = 4 // isa_defs.h:253:1: + X_HAVE_CPUID_INSN = 0 // isa_defs.h:288:1: + X_IEEE_754 = 0 // isa_defs.h:246:1: + X_INT64_TYPE = 0 // int_types.h:82:1: + X_INT_ALIGNMENT = 4 // isa_defs.h:251:1: + X_ISO_CPP_14882_1998 = 0 // feature_tests.h:466:1: + X_ISO_C_9899_1999 = 0 // feature_tests.h:472:1: + X_ISO_C_9899_2011 = 0 // feature_tests.h:478:1: + X_ISO_TIME_ISO_H = 0 // time_iso.h:46:1: + X_LARGEFILE64_SOURCE = 1 // feature_tests.h:231:1: + X_LARGEFILE_SOURCE = 1 // feature_tests.h:235:1: + X_LITTLE_ENDIAN = 0 // isa_defs.h:242:1: + X_LOCALE_T = 0 // time.h:291:1: + X_LONGLONG_TYPE = 0 // feature_tests.h:412:1: + X_LONG_ALIGNMENT = 8 // isa_defs.h:254:1: + X_LONG_DOUBLE_ALIGNMENT = 16 // isa_defs.h:258:1: + X_LONG_DOUBLE_COMPLEX_ALIGNMENT = 16 // isa_defs.h:259:1: + X_LONG_LONG_ALIGNMENT = 8 // isa_defs.h:255:1: + X_LONG_LONG_ALIGNMENT_32 = 4 // isa_defs.h:268:1: + X_LONG_LONG_LTOH = 0 // isa_defs.h:244:1: + X_LP64 = 1 // :286:1: + X_MAX_ALIGNMENT = 16 // isa_defs.h:261:1: + X_MULTI_DATAMODEL = 0 // isa_defs.h:279:1: + X_MUTEX_MAGIC = 0x4d58 // types.h:424:1: + X_NBBY = 8 // select.h:100:1: + X_NORETURN_KYWD = 0 // feature_tests.h:448:1: + X_OFF_T = 0 // types.h:142:1: + X_POINTER_ALIGNMENT = 8 // isa_defs.h:260:1: + X_PSM_MODULES = 0 // isa_defs.h:284:1: + X_PTRDIFF_T = 0 // types.h:112:1: + X_RESTRICT_KYWD = 0 // feature_tests.h:435:1: + X_RTC_CONFIG = 0 // isa_defs.h:285:1: + X_RWL_MAGIC = 0x5257 // types.h:427:1: + X_SEMA_MAGIC = 0x534d // types.h:425:1: + X_SHORT_ALIGNMENT = 2 // isa_defs.h:250:1: + X_SIGEVENT = 0 // time.h:132:1: + X_SIGSET_T = 0 // select.h:73:1: + X_SIGVAL = 0 // time.h:124:1: + X_SIZE_T = 0 // types.h:540:1: + X_SOFT_HOSTID = 0 // isa_defs.h:286:1: + X_SSIZE_T = 0 // types.h:549:1: + X_STACK_GROWS_DOWNWARD = 0 // isa_defs.h:243:1: + X_STDC_C11 = 0 // feature_tests.h:165:1: + X_STDC_C99 = 0 // feature_tests.h:169:1: + X_SUNOS_VTOC_16 = 0 // isa_defs.h:280:1: + X_SUSECONDS_T = 0 // types.h:343:1: + X_SYS_CCOMPILE_H = 0 // ccompile.h:32:1: + X_SYS_FCNTL_H = 0 // fcntl.h:43:1: + X_SYS_FEATURE_TESTS_H = 0 // feature_tests.h:41:1: + X_SYS_INT_TYPES_H = 0 // int_types.h:30:1: + X_SYS_ISA_DEFS_H = 0 // isa_defs.h:30:1: + X_SYS_MACHTYPES_H = 0 // machtypes.h:27:1: + X_SYS_NULL_H = 0 // null.h:17:1: + X_SYS_SELECT_H = 0 // select.h:45:1: + X_SYS_TIME_H = 0 // time.h:27:1: + X_SYS_TIME_IMPL_H = 0 // time_impl.h:38:1: + X_SYS_TYPES_H = 0 // types.h:35:1: + X_TIMER_T = 0 // types.h:573:1: + X_TIME_H = 0 // time.h:37:1: + X_TIME_T = 0 // types.h:558:1: + X_UID_T = 0 // types.h:400:1: + X_XOPEN_VERSION = 3 // feature_tests.h:392:1: + Sun = 1 // :172:1: + Unix = 1 // :175:1: +) + +// used for block sizes + +// The boolean_t type has had a varied amount of exposure over the years in +// terms of how its enumeration constants have been exposed. In particular, it +// originally used the __XOPEN_OR_POSIX macro to determine whether to prefix the +// B_TRUE and B_FALSE with an underscore. This check never included the +// question of if we were in a strict ANSI C environment or whether extensions +// were defined. +// +// Compilers such as clang started defaulting to always including an +// XOPEN_SOURCE declaration on behalf of users, but also noted __EXTENSIONS__. +// This would lead most software that had used the non-underscore versions to +// need it. As such, we have adjusted the non-strict XOPEN environment to retain +// its old behavior so as to minimize namespace pollution; however, we instead +// include both variants of the definitions in the generally visible version +// allowing software written in either world to hopefully end up in a good +// place. +// +// This isn't perfect, but should hopefully minimize the pain for folks actually +// trying to build software. +const ( /* types.h:215:1: */ + B_FALSE = 0 + B_TRUE = 1 + X_B_FALSE = 0 + X_B_TRUE = 1 +) + +type Ptrdiff_t = int64 /* :3:26 */ + +type Size_t = uint64 /* :9:23 */ + +type Wchar_t = int32 /* :15:24 */ + +type X__int128_t = struct { + Flo int64 + Fhi int64 +} /* :21:43 */ // must match modernc.org/mathutil.Int128 +type X__uint128_t = struct { + Flo uint64 + Fhi uint64 +} /* :22:44 */ // must match modernc.org/mathutil.Int128 + +type X__builtin_va_list = uintptr /* :46:14 */ +type X__float128 = float64 /* :47:21 */ + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright (c) 1988 AT&T +// All Rights Reserved + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2015 EveryCity Ltd. All rights reserved. +// Copyright 2019 Joyent, Inc. + +// This file contains definitions designed to enable different compilers +// to be used harmoniously on Solaris systems. + +// Allow for version tests for compiler bugs and features. + +// analogous to lint's PRINTFLIKEn + +// Handle the kernel printf routines that can take '%b' too + +// This one's pretty obvious -- the function never returns + +// The function is 'extern inline' and expects GNU C89 behaviour, not C99 +// behaviour. +// +// Should only be used on 'extern inline' definitions for GCC. + +// The function has control flow such that it may return multiple times (in +// the manner of setjmp or vfork) + +// This is an appropriate label for functions that do not +// modify their arguments, e.g. strlen() + +// This is a stronger form of __pure__. Can be used for functions +// that do not modify their arguments and don't depend on global +// memory. + +// This attribute, attached to a variable, means that the variable is meant to +// be possibly unused. GCC will not produce a warning for this variable. + +// Shorthand versions for readability + +// In release build, disable warnings about variables +// which are used only for debugging. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2016 Joyent, Inc. + +// This header file serves to group a set of well known defines and to +// set these for each instruction set architecture. These defines may +// be divided into two groups; characteristics of the processor and +// implementation choices for Solaris on a processor. +// +// Processor Characteristics: +// +// _LITTLE_ENDIAN / _BIG_ENDIAN: +// The natural byte order of the processor. A pointer to an int points +// to the least/most significant byte of that int. +// +// _STACK_GROWS_UPWARD / _STACK_GROWS_DOWNWARD: +// The processor specific direction of stack growth. A push onto the +// stack increases/decreases the stack pointer, so it stores data at +// successively higher/lower addresses. (Stackless machines ignored +// without regrets). +// +// _LONG_LONG_HTOL / _LONG_LONG_LTOH: +// A pointer to a long long points to the most/least significant long +// within that long long. +// +// _BIT_FIELDS_HTOL / _BIT_FIELDS_LTOH: +// The C compiler assigns bit fields from the high/low to the low/high end +// of an int (most to least significant vs. least to most significant). +// +// _IEEE_754: +// The processor (or supported implementations of the processor) +// supports the ieee-754 floating point standard. No other floating +// point standards are supported (or significant). Any other supported +// floating point formats are expected to be cased on the ISA processor +// symbol. +// +// _CHAR_IS_UNSIGNED / _CHAR_IS_SIGNED: +// The C Compiler implements objects of type `char' as `unsigned' or +// `signed' respectively. This is really an implementation choice of +// the compiler writer, but it is specified in the ABI and tends to +// be uniform across compilers for an instruction set architecture. +// Hence, it has the properties of a processor characteristic. +// +// _CHAR_ALIGNMENT / _SHORT_ALIGNMENT / _INT_ALIGNMENT / _LONG_ALIGNMENT / +// _LONG_LONG_ALIGNMENT / _DOUBLE_ALIGNMENT / _LONG_DOUBLE_ALIGNMENT / +// _POINTER_ALIGNMENT / _FLOAT_ALIGNMENT: +// The ABI defines alignment requirements of each of the primitive +// object types. Some, if not all, may be hardware requirements as +// well. The values are expressed in "byte-alignment" units. +// +// _MAX_ALIGNMENT: +// The most stringent alignment requirement as specified by the ABI. +// Equal to the maximum of all the above _XXX_ALIGNMENT values. +// +// _MAX_ALIGNMENT_TYPE: +// The name of the C type that has the value descried in _MAX_ALIGNMENT. +// +// _ALIGNMENT_REQUIRED: +// True or false (1 or 0) whether or not the hardware requires the ABI +// alignment. +// +// _LONG_LONG_ALIGNMENT_32 +// The 32-bit ABI supported by a 64-bit kernel may have different +// alignment requirements for primitive object types. The value of this +// identifier is expressed in "byte-alignment" units. +// +// _HAVE_CPUID_INSN +// This indicates that the architecture supports the 'cpuid' +// instruction as defined by Intel. (Intel allows other vendors +// to extend the instruction for their own purposes.) +// +// +// Implementation Choices: +// +// _ILP32 / _LP64: +// This specifies the compiler data type implementation as specified in +// the relevant ABI. The choice between these is strongly influenced +// by the underlying hardware, but is not absolutely tied to it. +// Currently only two data type models are supported: +// +// _ILP32: +// Int/Long/Pointer are 32 bits. This is the historical UNIX +// and Solaris implementation. Due to its historical standing, +// this is the default case. +// +// _LP64: +// Long/Pointer are 64 bits, Int is 32 bits. This is the chosen +// implementation for 64-bit ABIs such as SPARC V9. +// +// _I32LPx: +// A compilation environment where 'int' is 32-bit, and +// longs and pointers are simply the same size. +// +// In all cases, Char is 8 bits and Short is 16 bits. +// +// _SUNOS_VTOC_8 / _SUNOS_VTOC_16 / _SVR4_VTOC_16: +// This specifies the form of the disk VTOC (or label): +// +// _SUNOS_VTOC_8: +// This is a VTOC form which is upwardly compatible with the +// SunOS 4.x disk label and allows 8 partitions per disk. +// +// _SUNOS_VTOC_16: +// In this format the incore vtoc image matches the ondisk +// version. It allows 16 slices per disk, and is not +// compatible with the SunOS 4.x disk label. +// +// Note that these are not the only two VTOC forms possible and +// additional forms may be added. One possible form would be the +// SVr4 VTOC form. The symbol for that is reserved now, although +// it is not implemented. +// +// _SVR4_VTOC_16: +// This VTOC form is compatible with the System V Release 4 +// VTOC (as implemented on the SVr4 Intel and 3b ports) with +// 16 partitions per disk. +// +// +// _DMA_USES_PHYSADDR / _DMA_USES_VIRTADDR +// This describes the type of addresses used by system DMA: +// +// _DMA_USES_PHYSADDR: +// This type of DMA, used in the x86 implementation, +// requires physical addresses for DMA buffers. The 24-bit +// addresses used by some legacy boards is the source of the +// "low-memory" (<16MB) requirement for some devices using DMA. +// +// _DMA_USES_VIRTADDR: +// This method of DMA allows the use of virtual addresses for +// DMA transfers. +// +// _FIRMWARE_NEEDS_FDISK / _NO_FDISK_PRESENT +// This indicates the presence/absence of an fdisk table. +// +// _FIRMWARE_NEEDS_FDISK +// The fdisk table is required by system firmware. If present, +// it allows a disk to be subdivided into multiple fdisk +// partitions, each of which is equivalent to a separate, +// virtual disk. This enables the co-existence of multiple +// operating systems on a shared hard disk. +// +// _NO_FDISK_PRESENT +// If the fdisk table is absent, it is assumed that the entire +// media is allocated for a single operating system. +// +// _HAVE_TEM_FIRMWARE +// Defined if this architecture has the (fallback) option of +// using prom_* calls for doing I/O if a suitable kernel driver +// is not available to do it. +// +// _DONT_USE_1275_GENERIC_NAMES +// Controls whether or not device tree node names should +// comply with the IEEE 1275 "Generic Names" Recommended +// Practice. With _DONT_USE_GENERIC_NAMES, device-specific +// names identifying the particular device will be used. +// +// __i386_COMPAT +// This indicates whether the i386 ABI is supported as a *non-native* +// mode for the platform. When this symbol is defined: +// - 32-bit xstat-style system calls are enabled +// - 32-bit xmknod-style system calls are enabled +// - 32-bit system calls use i386 sizes -and- alignments +// +// Note that this is NOT defined for the i386 native environment! +// +// __x86 +// This is ONLY a synonym for defined(__i386) || defined(__amd64) +// which is useful only insofar as these two architectures share +// common attributes. Analogous to __sparc. +// +// _PSM_MODULES +// This indicates whether or not the implementation uses PSM +// modules for processor support, reading /etc/mach from inside +// the kernel to extract a list. +// +// _RTC_CONFIG +// This indicates whether or not the implementation uses /etc/rtc_config +// to configure the real-time clock in the kernel. +// +// _UNIX_KRTLD +// This indicates that the implementation uses a dynamically +// linked unix + krtld to form the core kernel image at boot +// time, or (in the absence of this symbol) a prelinked kernel image. +// +// _OBP +// This indicates the firmware interface is OBP. +// +// _SOFT_HOSTID +// This indicates that the implementation obtains the hostid +// from the file /etc/hostid, rather than from hardware. + +// The following set of definitions characterize Solaris on AMD's +// 64-bit systems. + +// Define the appropriate "processor characteristics" + +// Different alignment constraints for the i386 ABI in compatibility mode + +// Define the appropriate "implementation choices". + +// The feature test macro __i386 is generic for all processors implementing +// the Intel 386 instruction set or a superset of it. Specifically, this +// includes all members of the 386, 486, and Pentium family of processors. + +// Values of _POSIX_C_SOURCE +// +// undefined not a POSIX compilation +// 1 POSIX.1-1990 compilation +// 2 POSIX.2-1992 compilation +// 199309L POSIX.1b-1993 compilation (Real Time) +// 199506L POSIX.1c-1995 compilation (POSIX Threads) +// 200112L POSIX.1-2001 compilation (Austin Group Revision) +// 200809L POSIX.1-2008 compilation + +// The feature test macros __XOPEN_OR_POSIX, _STRICT_STDC, _STRICT_SYMBOLS, +// and _STDC_C99 are Sun implementation specific macros created in order to +// compress common standards specified feature test macros for easier reading. +// These macros should not be used by the application developer as +// unexpected results may occur. Instead, the user should reference +// standards(7) for correct usage of the standards feature test macros. +// +// __XOPEN_OR_POSIX Used in cases where a symbol is defined by both +// X/Open or POSIX or in the negative, when neither +// X/Open or POSIX defines a symbol. +// +// _STRICT_STDC __STDC__ is specified by the C Standards and defined +// by the compiler. For Sun compilers the value of +// __STDC__ is either 1, 0, or not defined based on the +// compilation mode (see cc(1)). When the value of +// __STDC__ is 1 and in the absence of any other feature +// test macros, the namespace available to the application +// is limited to only those symbols defined by the C +// Standard. _STRICT_STDC provides a more readable means +// of identifying symbols defined by the standard, or in +// the negative, symbols that are extensions to the C +// Standard. See additional comments for GNU C differences. +// +// _STDC_C99 __STDC_VERSION__ is specified by the C standards and +// defined by the compiler and indicates the version of +// the C standard. A value of 199901L indicates a +// compiler that complies with ISO/IEC 9899:1999, other- +// wise known as the C99 standard. +// +// _STDC_C11 Like _STDC_C99 except that the value of __STDC_VERSION__ +// is 201112L indicating a compiler that compiles with +// ISO/IEC 9899:2011, otherwise known as the C11 standard. +// +// _STRICT_SYMBOLS Used in cases where symbol visibility is restricted +// by the standards, and the user has not explicitly +// relaxed the strictness via __EXTENSIONS__. + +// ISO/IEC 9899:1990 and it's revisions, ISO/IEC 9899:1999 and ISO/IEC +// 99899:2011 specify the following predefined macro name: +// +// __STDC__ The integer constant 1, intended to indicate a conforming +// implementation. +// +// Furthermore, a strictly conforming program shall use only those features +// of the language and library specified in these standards. A conforming +// implementation shall accept any strictly conforming program. +// +// Based on these requirements, Sun's C compiler defines __STDC__ to 1 for +// strictly conforming environments and __STDC__ to 0 for environments that +// use ANSI C semantics but allow extensions to the C standard. For non-ANSI +// C semantics, Sun's C compiler does not define __STDC__. +// +// The GNU C project interpretation is that __STDC__ should always be defined +// to 1 for compilation modes that accept ANSI C syntax regardless of whether +// or not extensions to the C standard are used. Violations of conforming +// behavior are conditionally flagged as warnings via the use of the +// -pedantic option. In addition to defining __STDC__ to 1, the GNU C +// compiler also defines __STRICT_ANSI__ as a means of specifying strictly +// conforming environments using the -ansi or -std= options. +// +// In the absence of any other compiler options, Sun and GNU set the value +// of __STDC__ as follows when using the following options: +// +// Value of __STDC__ __STRICT_ANSI__ +// +// cc -Xa (default) 0 undefined +// cc -Xt (transitional) 0 undefined +// cc -Xc (strictly conforming) 1 undefined +// cc -Xs (K&R C) undefined undefined +// +// gcc (default) 1 undefined +// gcc -ansi, -std={c89, c99,...) 1 defined +// gcc -traditional (K&R) undefined undefined +// +// The default compilation modes for Sun C compilers versus GNU C compilers +// results in a differing value for __STDC__ which results in a more +// restricted namespace when using Sun compilers. To allow both GNU and Sun +// interpretations to peacefully co-exist, we use the following Sun +// implementation _STRICT_STDC_ macro: + +// Compiler complies with ISO/IEC 9899:1999 or ISO/IEC 9989:2011 + +// Use strict symbol visibility. + +// This is a variant of _STRICT_SYMBOLS that is meant to cover headers that are +// governed by POSIX, but have not been governed by ISO C. One can go two ways +// on what should happen if an application actively includes (not transitively) +// a header that isn't part of the ISO C spec, we opt to say that if someone has +// gone out of there way then they're doing it for a reason and that is an act +// of non-compliance and therefore it's not up to us to hide away every symbol. +// +// In general, prefer using _STRICT_SYMBOLS, but this is here in particular for +// cases where in the past we have only used a POSIX related check and we don't +// wish to make something stricter. Often applications are relying on the +// ability to, or more realistically unwittingly, have _STRICT_STDC declared and +// still use these interfaces. + +// Large file interfaces: +// +// _LARGEFILE_SOURCE +// 1 large file-related additions to POSIX +// interfaces requested (fseeko, etc.) +// _LARGEFILE64_SOURCE +// 1 transitional large-file-related interfaces +// requested (seek64, stat64, etc.) +// +// The corresponding announcement macros are respectively: +// _LFS_LARGEFILE +// _LFS64_LARGEFILE +// (These are set in .) +// +// Requesting _LARGEFILE64_SOURCE implies requesting _LARGEFILE_SOURCE as +// well. +// +// The large file interfaces are made visible regardless of the initial values +// of the feature test macros under certain circumstances: +// - If no explicit standards-conforming environment is requested (neither +// of _POSIX_SOURCE nor _XOPEN_SOURCE is defined and the value of +// __STDC__ does not imply standards conformance). +// - Extended system interfaces are explicitly requested (__EXTENSIONS__ +// is defined). +// - Access to in-kernel interfaces is requested (_KERNEL or _KMEMUSER is +// defined). (Note that this dependency is an artifact of the current +// kernel implementation and may change in future releases.) + +// Large file compilation environment control: +// +// The setting of _FILE_OFFSET_BITS controls the size of various file-related +// types and governs the mapping between file-related source function symbol +// names and the corresponding binary entry points. +// +// In the 32-bit environment, the default value is 32; if not set, set it to +// the default here, to simplify tests in other headers. +// +// In the 64-bit compilation environment, the only value allowed is 64. + +// Use of _XOPEN_SOURCE +// +// The following X/Open specifications are supported: +// +// X/Open Portability Guide, Issue 3 (XPG3) +// X/Open CAE Specification, Issue 4 (XPG4) +// X/Open CAE Specification, Issue 4, Version 2 (XPG4v2) +// X/Open CAE Specification, Issue 5 (XPG5) +// Open Group Technical Standard, Issue 6 (XPG6), also referred to as +// IEEE Std. 1003.1-2001 and ISO/IEC 9945:2002. +// Open Group Technical Standard, Issue 7 (XPG7), also referred to as +// IEEE Std. 1003.1-2008 and ISO/IEC 9945:2009. +// +// XPG4v2 is also referred to as UNIX 95 (SUS or SUSv1). +// XPG5 is also referred to as UNIX 98 or the Single Unix Specification, +// Version 2 (SUSv2) +// XPG6 is the result of a merge of the X/Open and POSIX specifications +// and as such is also referred to as IEEE Std. 1003.1-2001 in +// addition to UNIX 03 and SUSv3. +// XPG7 is also referred to as UNIX 08 and SUSv4. +// +// When writing a conforming X/Open application, as per the specification +// requirements, the appropriate feature test macros must be defined at +// compile time. These are as follows. For more info, see standards(7). +// +// Feature Test Macro Specification +// ------------------------------------------------ ------------- +// _XOPEN_SOURCE XPG3 +// _XOPEN_SOURCE && _XOPEN_VERSION = 4 XPG4 +// _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED = 1 XPG4v2 +// _XOPEN_SOURCE = 500 XPG5 +// _XOPEN_SOURCE = 600 (or POSIX_C_SOURCE=200112L) XPG6 +// _XOPEN_SOURCE = 700 (or POSIX_C_SOURCE=200809L) XPG7 +// +// In order to simplify the guards within the headers, the following +// implementation private test macros have been created. Applications +// must NOT use these private test macros as unexpected results will +// occur. +// +// Note that in general, the use of these private macros is cumulative. +// For example, the use of _XPG3 with no other restrictions on the X/Open +// namespace will make the symbols visible for XPG3 through XPG6 +// compilation environments. The use of _XPG4_2 with no other X/Open +// namespace restrictions indicates that the symbols were introduced in +// XPG4v2 and are therefore visible for XPG4v2 through XPG6 compilation +// environments, but not for XPG3 or XPG4 compilation environments. +// +// _XPG3 X/Open Portability Guide, Issue 3 (XPG3) +// _XPG4 X/Open CAE Specification, Issue 4 (XPG4) +// _XPG4_2 X/Open CAE Specification, Issue 4, Version 2 (XPG4v2/UNIX 95/SUS) +// _XPG5 X/Open CAE Specification, Issue 5 (XPG5/UNIX 98/SUSv2) +// _XPG6 Open Group Technical Standard, Issue 6 (XPG6/UNIX 03/SUSv3) +// _XPG7 Open Group Technical Standard, Issue 7 (XPG7/UNIX 08/SUSv4) + +// X/Open Portability Guide, Issue 3 + +// _XOPEN_VERSION is defined by the X/Open specifications and is not +// normally defined by the application, except in the case of an XPG4 +// application. On the implementation side, _XOPEN_VERSION defined with +// the value of 3 indicates an XPG3 application. _XOPEN_VERSION defined +// with the value of 4 indicates an XPG4 or XPG4v2 (UNIX 95) application. +// _XOPEN_VERSION defined with a value of 500 indicates an XPG5 (UNIX 98) +// application and with a value of 600 indicates an XPG6 (UNIX 03) +// application and with a value of 700 indicates an XPG7 (UNIX 08). +// The appropriate version is determined by the use of the +// feature test macros described earlier. The value of _XOPEN_VERSION +// defaults to 3 otherwise indicating support for XPG3 applications. + +// ANSI C and ISO 9899:1990 say the type long long doesn't exist in strictly +// conforming environments. ISO 9899:1999 says it does. +// +// The presence of _LONGLONG_TYPE says "long long exists" which is therefore +// defined in all but strictly conforming environments that disallow it. + +// The following macro defines a value for the ISO C99 restrict +// keyword so that _RESTRICT_KYWD resolves to "restrict" if +// an ISO C99 compiler is used, "__restrict" for c++ and "" (null string) +// if any other compiler is used. This allows for the use of single +// prototype declarations regardless of compiler version. + +// The following macro defines a value for the ISO C11 _Noreturn +// keyword so that _NORETURN_KYWD resolves to "_Noreturn" if +// an ISO C11 compiler is used and "" (null string) if any other +// compiler is used. This allows for the use of single prototype +// declarations regardless of compiler version. + +// ISO/IEC 9899:2011 Annex K + +// The following macro indicates header support for the ANSI C++ +// standard. The ISO/IEC designation for this is ISO/IEC FDIS 14882. + +// The following macro indicates header support for the C99 standard, +// ISO/IEC 9899:1999, Programming Languages - C. + +// The following macro indicates header support for the C11 standard, +// ISO/IEC 9899:2011, Programming Languages - C. + +// The following macro indicates header support for the C11 standard, +// ISO/IEC 9899:2011 Annex K, Programming Languages - C. + +// The following macro indicates header support for DTrace. The value is an +// integer that corresponds to the major version number for DTrace. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2021 Oxide Computer Company + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2016 Joyent, Inc. + +// Machine dependent definitions moved to . +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2007 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Machine dependent types: +// +// intel ia32 Version + +type X_label_t = struct{ Fval [8]int64 } /* machtypes.h:59:9 */ + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright (c) 1988 AT&T +// All Rights Reserved + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2015 EveryCity Ltd. All rights reserved. +// Copyright 2019 Joyent, Inc. + +// This file contains definitions designed to enable different compilers +// to be used harmoniously on Solaris systems. + +// Allow for version tests for compiler bugs and features. + +// analogous to lint's PRINTFLIKEn + +// Handle the kernel printf routines that can take '%b' too + +// This one's pretty obvious -- the function never returns + +// The function is 'extern inline' and expects GNU C89 behaviour, not C99 +// behaviour. +// +// Should only be used on 'extern inline' definitions for GCC. + +// The function has control flow such that it may return multiple times (in +// the manner of setjmp or vfork) + +// This is an appropriate label for functions that do not +// modify their arguments, e.g. strlen() + +// This is a stronger form of __pure__. Can be used for functions +// that do not modify their arguments and don't depend on global +// memory. + +// This attribute, attached to a variable, means that the variable is meant to +// be possibly unused. GCC will not produce a warning for this variable. + +// Shorthand versions for readability + +// In release build, disable warnings about variables +// which are used only for debugging. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2016 Joyent, Inc. + +// This header file serves to group a set of well known defines and to +// set these for each instruction set architecture. These defines may +// be divided into two groups; characteristics of the processor and +// implementation choices for Solaris on a processor. +// +// Processor Characteristics: +// +// _LITTLE_ENDIAN / _BIG_ENDIAN: +// The natural byte order of the processor. A pointer to an int points +// to the least/most significant byte of that int. +// +// _STACK_GROWS_UPWARD / _STACK_GROWS_DOWNWARD: +// The processor specific direction of stack growth. A push onto the +// stack increases/decreases the stack pointer, so it stores data at +// successively higher/lower addresses. (Stackless machines ignored +// without regrets). +// +// _LONG_LONG_HTOL / _LONG_LONG_LTOH: +// A pointer to a long long points to the most/least significant long +// within that long long. +// +// _BIT_FIELDS_HTOL / _BIT_FIELDS_LTOH: +// The C compiler assigns bit fields from the high/low to the low/high end +// of an int (most to least significant vs. least to most significant). +// +// _IEEE_754: +// The processor (or supported implementations of the processor) +// supports the ieee-754 floating point standard. No other floating +// point standards are supported (or significant). Any other supported +// floating point formats are expected to be cased on the ISA processor +// symbol. +// +// _CHAR_IS_UNSIGNED / _CHAR_IS_SIGNED: +// The C Compiler implements objects of type `char' as `unsigned' or +// `signed' respectively. This is really an implementation choice of +// the compiler writer, but it is specified in the ABI and tends to +// be uniform across compilers for an instruction set architecture. +// Hence, it has the properties of a processor characteristic. +// +// _CHAR_ALIGNMENT / _SHORT_ALIGNMENT / _INT_ALIGNMENT / _LONG_ALIGNMENT / +// _LONG_LONG_ALIGNMENT / _DOUBLE_ALIGNMENT / _LONG_DOUBLE_ALIGNMENT / +// _POINTER_ALIGNMENT / _FLOAT_ALIGNMENT: +// The ABI defines alignment requirements of each of the primitive +// object types. Some, if not all, may be hardware requirements as +// well. The values are expressed in "byte-alignment" units. +// +// _MAX_ALIGNMENT: +// The most stringent alignment requirement as specified by the ABI. +// Equal to the maximum of all the above _XXX_ALIGNMENT values. +// +// _MAX_ALIGNMENT_TYPE: +// The name of the C type that has the value descried in _MAX_ALIGNMENT. +// +// _ALIGNMENT_REQUIRED: +// True or false (1 or 0) whether or not the hardware requires the ABI +// alignment. +// +// _LONG_LONG_ALIGNMENT_32 +// The 32-bit ABI supported by a 64-bit kernel may have different +// alignment requirements for primitive object types. The value of this +// identifier is expressed in "byte-alignment" units. +// +// _HAVE_CPUID_INSN +// This indicates that the architecture supports the 'cpuid' +// instruction as defined by Intel. (Intel allows other vendors +// to extend the instruction for their own purposes.) +// +// +// Implementation Choices: +// +// _ILP32 / _LP64: +// This specifies the compiler data type implementation as specified in +// the relevant ABI. The choice between these is strongly influenced +// by the underlying hardware, but is not absolutely tied to it. +// Currently only two data type models are supported: +// +// _ILP32: +// Int/Long/Pointer are 32 bits. This is the historical UNIX +// and Solaris implementation. Due to its historical standing, +// this is the default case. +// +// _LP64: +// Long/Pointer are 64 bits, Int is 32 bits. This is the chosen +// implementation for 64-bit ABIs such as SPARC V9. +// +// _I32LPx: +// A compilation environment where 'int' is 32-bit, and +// longs and pointers are simply the same size. +// +// In all cases, Char is 8 bits and Short is 16 bits. +// +// _SUNOS_VTOC_8 / _SUNOS_VTOC_16 / _SVR4_VTOC_16: +// This specifies the form of the disk VTOC (or label): +// +// _SUNOS_VTOC_8: +// This is a VTOC form which is upwardly compatible with the +// SunOS 4.x disk label and allows 8 partitions per disk. +// +// _SUNOS_VTOC_16: +// In this format the incore vtoc image matches the ondisk +// version. It allows 16 slices per disk, and is not +// compatible with the SunOS 4.x disk label. +// +// Note that these are not the only two VTOC forms possible and +// additional forms may be added. One possible form would be the +// SVr4 VTOC form. The symbol for that is reserved now, although +// it is not implemented. +// +// _SVR4_VTOC_16: +// This VTOC form is compatible with the System V Release 4 +// VTOC (as implemented on the SVr4 Intel and 3b ports) with +// 16 partitions per disk. +// +// +// _DMA_USES_PHYSADDR / _DMA_USES_VIRTADDR +// This describes the type of addresses used by system DMA: +// +// _DMA_USES_PHYSADDR: +// This type of DMA, used in the x86 implementation, +// requires physical addresses for DMA buffers. The 24-bit +// addresses used by some legacy boards is the source of the +// "low-memory" (<16MB) requirement for some devices using DMA. +// +// _DMA_USES_VIRTADDR: +// This method of DMA allows the use of virtual addresses for +// DMA transfers. +// +// _FIRMWARE_NEEDS_FDISK / _NO_FDISK_PRESENT +// This indicates the presence/absence of an fdisk table. +// +// _FIRMWARE_NEEDS_FDISK +// The fdisk table is required by system firmware. If present, +// it allows a disk to be subdivided into multiple fdisk +// partitions, each of which is equivalent to a separate, +// virtual disk. This enables the co-existence of multiple +// operating systems on a shared hard disk. +// +// _NO_FDISK_PRESENT +// If the fdisk table is absent, it is assumed that the entire +// media is allocated for a single operating system. +// +// _HAVE_TEM_FIRMWARE +// Defined if this architecture has the (fallback) option of +// using prom_* calls for doing I/O if a suitable kernel driver +// is not available to do it. +// +// _DONT_USE_1275_GENERIC_NAMES +// Controls whether or not device tree node names should +// comply with the IEEE 1275 "Generic Names" Recommended +// Practice. With _DONT_USE_GENERIC_NAMES, device-specific +// names identifying the particular device will be used. +// +// __i386_COMPAT +// This indicates whether the i386 ABI is supported as a *non-native* +// mode for the platform. When this symbol is defined: +// - 32-bit xstat-style system calls are enabled +// - 32-bit xmknod-style system calls are enabled +// - 32-bit system calls use i386 sizes -and- alignments +// +// Note that this is NOT defined for the i386 native environment! +// +// __x86 +// This is ONLY a synonym for defined(__i386) || defined(__amd64) +// which is useful only insofar as these two architectures share +// common attributes. Analogous to __sparc. +// +// _PSM_MODULES +// This indicates whether or not the implementation uses PSM +// modules for processor support, reading /etc/mach from inside +// the kernel to extract a list. +// +// _RTC_CONFIG +// This indicates whether or not the implementation uses /etc/rtc_config +// to configure the real-time clock in the kernel. +// +// _UNIX_KRTLD +// This indicates that the implementation uses a dynamically +// linked unix + krtld to form the core kernel image at boot +// time, or (in the absence of this symbol) a prelinked kernel image. +// +// _OBP +// This indicates the firmware interface is OBP. +// +// _SOFT_HOSTID +// This indicates that the implementation obtains the hostid +// from the file /etc/hostid, rather than from hardware. + +// The following set of definitions characterize Solaris on AMD's +// 64-bit systems. + +// Define the appropriate "processor characteristics" + +// Different alignment constraints for the i386 ABI in compatibility mode + +// Define the appropriate "implementation choices". + +// The feature test macro __i386 is generic for all processors implementing +// the Intel 386 instruction set or a superset of it. Specifically, this +// includes all members of the 386, 486, and Pentium family of processors. + +// Values of _POSIX_C_SOURCE +// +// undefined not a POSIX compilation +// 1 POSIX.1-1990 compilation +// 2 POSIX.2-1992 compilation +// 199309L POSIX.1b-1993 compilation (Real Time) +// 199506L POSIX.1c-1995 compilation (POSIX Threads) +// 200112L POSIX.1-2001 compilation (Austin Group Revision) +// 200809L POSIX.1-2008 compilation + +// The feature test macros __XOPEN_OR_POSIX, _STRICT_STDC, _STRICT_SYMBOLS, +// and _STDC_C99 are Sun implementation specific macros created in order to +// compress common standards specified feature test macros for easier reading. +// These macros should not be used by the application developer as +// unexpected results may occur. Instead, the user should reference +// standards(7) for correct usage of the standards feature test macros. +// +// __XOPEN_OR_POSIX Used in cases where a symbol is defined by both +// X/Open or POSIX or in the negative, when neither +// X/Open or POSIX defines a symbol. +// +// _STRICT_STDC __STDC__ is specified by the C Standards and defined +// by the compiler. For Sun compilers the value of +// __STDC__ is either 1, 0, or not defined based on the +// compilation mode (see cc(1)). When the value of +// __STDC__ is 1 and in the absence of any other feature +// test macros, the namespace available to the application +// is limited to only those symbols defined by the C +// Standard. _STRICT_STDC provides a more readable means +// of identifying symbols defined by the standard, or in +// the negative, symbols that are extensions to the C +// Standard. See additional comments for GNU C differences. +// +// _STDC_C99 __STDC_VERSION__ is specified by the C standards and +// defined by the compiler and indicates the version of +// the C standard. A value of 199901L indicates a +// compiler that complies with ISO/IEC 9899:1999, other- +// wise known as the C99 standard. +// +// _STDC_C11 Like _STDC_C99 except that the value of __STDC_VERSION__ +// is 201112L indicating a compiler that compiles with +// ISO/IEC 9899:2011, otherwise known as the C11 standard. +// +// _STRICT_SYMBOLS Used in cases where symbol visibility is restricted +// by the standards, and the user has not explicitly +// relaxed the strictness via __EXTENSIONS__. + +// ISO/IEC 9899:1990 and it's revisions, ISO/IEC 9899:1999 and ISO/IEC +// 99899:2011 specify the following predefined macro name: +// +// __STDC__ The integer constant 1, intended to indicate a conforming +// implementation. +// +// Furthermore, a strictly conforming program shall use only those features +// of the language and library specified in these standards. A conforming +// implementation shall accept any strictly conforming program. +// +// Based on these requirements, Sun's C compiler defines __STDC__ to 1 for +// strictly conforming environments and __STDC__ to 0 for environments that +// use ANSI C semantics but allow extensions to the C standard. For non-ANSI +// C semantics, Sun's C compiler does not define __STDC__. +// +// The GNU C project interpretation is that __STDC__ should always be defined +// to 1 for compilation modes that accept ANSI C syntax regardless of whether +// or not extensions to the C standard are used. Violations of conforming +// behavior are conditionally flagged as warnings via the use of the +// -pedantic option. In addition to defining __STDC__ to 1, the GNU C +// compiler also defines __STRICT_ANSI__ as a means of specifying strictly +// conforming environments using the -ansi or -std= options. +// +// In the absence of any other compiler options, Sun and GNU set the value +// of __STDC__ as follows when using the following options: +// +// Value of __STDC__ __STRICT_ANSI__ +// +// cc -Xa (default) 0 undefined +// cc -Xt (transitional) 0 undefined +// cc -Xc (strictly conforming) 1 undefined +// cc -Xs (K&R C) undefined undefined +// +// gcc (default) 1 undefined +// gcc -ansi, -std={c89, c99,...) 1 defined +// gcc -traditional (K&R) undefined undefined +// +// The default compilation modes for Sun C compilers versus GNU C compilers +// results in a differing value for __STDC__ which results in a more +// restricted namespace when using Sun compilers. To allow both GNU and Sun +// interpretations to peacefully co-exist, we use the following Sun +// implementation _STRICT_STDC_ macro: + +// Compiler complies with ISO/IEC 9899:1999 or ISO/IEC 9989:2011 + +// Use strict symbol visibility. + +// This is a variant of _STRICT_SYMBOLS that is meant to cover headers that are +// governed by POSIX, but have not been governed by ISO C. One can go two ways +// on what should happen if an application actively includes (not transitively) +// a header that isn't part of the ISO C spec, we opt to say that if someone has +// gone out of there way then they're doing it for a reason and that is an act +// of non-compliance and therefore it's not up to us to hide away every symbol. +// +// In general, prefer using _STRICT_SYMBOLS, but this is here in particular for +// cases where in the past we have only used a POSIX related check and we don't +// wish to make something stricter. Often applications are relying on the +// ability to, or more realistically unwittingly, have _STRICT_STDC declared and +// still use these interfaces. + +// Large file interfaces: +// +// _LARGEFILE_SOURCE +// 1 large file-related additions to POSIX +// interfaces requested (fseeko, etc.) +// _LARGEFILE64_SOURCE +// 1 transitional large-file-related interfaces +// requested (seek64, stat64, etc.) +// +// The corresponding announcement macros are respectively: +// _LFS_LARGEFILE +// _LFS64_LARGEFILE +// (These are set in .) +// +// Requesting _LARGEFILE64_SOURCE implies requesting _LARGEFILE_SOURCE as +// well. +// +// The large file interfaces are made visible regardless of the initial values +// of the feature test macros under certain circumstances: +// - If no explicit standards-conforming environment is requested (neither +// of _POSIX_SOURCE nor _XOPEN_SOURCE is defined and the value of +// __STDC__ does not imply standards conformance). +// - Extended system interfaces are explicitly requested (__EXTENSIONS__ +// is defined). +// - Access to in-kernel interfaces is requested (_KERNEL or _KMEMUSER is +// defined). (Note that this dependency is an artifact of the current +// kernel implementation and may change in future releases.) + +// Large file compilation environment control: +// +// The setting of _FILE_OFFSET_BITS controls the size of various file-related +// types and governs the mapping between file-related source function symbol +// names and the corresponding binary entry points. +// +// In the 32-bit environment, the default value is 32; if not set, set it to +// the default here, to simplify tests in other headers. +// +// In the 64-bit compilation environment, the only value allowed is 64. + +// Use of _XOPEN_SOURCE +// +// The following X/Open specifications are supported: +// +// X/Open Portability Guide, Issue 3 (XPG3) +// X/Open CAE Specification, Issue 4 (XPG4) +// X/Open CAE Specification, Issue 4, Version 2 (XPG4v2) +// X/Open CAE Specification, Issue 5 (XPG5) +// Open Group Technical Standard, Issue 6 (XPG6), also referred to as +// IEEE Std. 1003.1-2001 and ISO/IEC 9945:2002. +// Open Group Technical Standard, Issue 7 (XPG7), also referred to as +// IEEE Std. 1003.1-2008 and ISO/IEC 9945:2009. +// +// XPG4v2 is also referred to as UNIX 95 (SUS or SUSv1). +// XPG5 is also referred to as UNIX 98 or the Single Unix Specification, +// Version 2 (SUSv2) +// XPG6 is the result of a merge of the X/Open and POSIX specifications +// and as such is also referred to as IEEE Std. 1003.1-2001 in +// addition to UNIX 03 and SUSv3. +// XPG7 is also referred to as UNIX 08 and SUSv4. +// +// When writing a conforming X/Open application, as per the specification +// requirements, the appropriate feature test macros must be defined at +// compile time. These are as follows. For more info, see standards(7). +// +// Feature Test Macro Specification +// ------------------------------------------------ ------------- +// _XOPEN_SOURCE XPG3 +// _XOPEN_SOURCE && _XOPEN_VERSION = 4 XPG4 +// _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED = 1 XPG4v2 +// _XOPEN_SOURCE = 500 XPG5 +// _XOPEN_SOURCE = 600 (or POSIX_C_SOURCE=200112L) XPG6 +// _XOPEN_SOURCE = 700 (or POSIX_C_SOURCE=200809L) XPG7 +// +// In order to simplify the guards within the headers, the following +// implementation private test macros have been created. Applications +// must NOT use these private test macros as unexpected results will +// occur. +// +// Note that in general, the use of these private macros is cumulative. +// For example, the use of _XPG3 with no other restrictions on the X/Open +// namespace will make the symbols visible for XPG3 through XPG6 +// compilation environments. The use of _XPG4_2 with no other X/Open +// namespace restrictions indicates that the symbols were introduced in +// XPG4v2 and are therefore visible for XPG4v2 through XPG6 compilation +// environments, but not for XPG3 or XPG4 compilation environments. +// +// _XPG3 X/Open Portability Guide, Issue 3 (XPG3) +// _XPG4 X/Open CAE Specification, Issue 4 (XPG4) +// _XPG4_2 X/Open CAE Specification, Issue 4, Version 2 (XPG4v2/UNIX 95/SUS) +// _XPG5 X/Open CAE Specification, Issue 5 (XPG5/UNIX 98/SUSv2) +// _XPG6 Open Group Technical Standard, Issue 6 (XPG6/UNIX 03/SUSv3) +// _XPG7 Open Group Technical Standard, Issue 7 (XPG7/UNIX 08/SUSv4) + +// X/Open Portability Guide, Issue 3 + +// _XOPEN_VERSION is defined by the X/Open specifications and is not +// normally defined by the application, except in the case of an XPG4 +// application. On the implementation side, _XOPEN_VERSION defined with +// the value of 3 indicates an XPG3 application. _XOPEN_VERSION defined +// with the value of 4 indicates an XPG4 or XPG4v2 (UNIX 95) application. +// _XOPEN_VERSION defined with a value of 500 indicates an XPG5 (UNIX 98) +// application and with a value of 600 indicates an XPG6 (UNIX 03) +// application and with a value of 700 indicates an XPG7 (UNIX 08). +// The appropriate version is determined by the use of the +// feature test macros described earlier. The value of _XOPEN_VERSION +// defaults to 3 otherwise indicating support for XPG3 applications. + +// ANSI C and ISO 9899:1990 say the type long long doesn't exist in strictly +// conforming environments. ISO 9899:1999 says it does. +// +// The presence of _LONGLONG_TYPE says "long long exists" which is therefore +// defined in all but strictly conforming environments that disallow it. + +// The following macro defines a value for the ISO C99 restrict +// keyword so that _RESTRICT_KYWD resolves to "restrict" if +// an ISO C99 compiler is used, "__restrict" for c++ and "" (null string) +// if any other compiler is used. This allows for the use of single +// prototype declarations regardless of compiler version. + +// The following macro defines a value for the ISO C11 _Noreturn +// keyword so that _NORETURN_KYWD resolves to "_Noreturn" if +// an ISO C11 compiler is used and "" (null string) if any other +// compiler is used. This allows for the use of single prototype +// declarations regardless of compiler version. + +// ISO/IEC 9899:2011 Annex K + +// The following macro indicates header support for the ANSI C++ +// standard. The ISO/IEC designation for this is ISO/IEC FDIS 14882. + +// The following macro indicates header support for the C99 standard, +// ISO/IEC 9899:1999, Programming Languages - C. + +// The following macro indicates header support for the C11 standard, +// ISO/IEC 9899:2011, Programming Languages - C. + +// The following macro indicates header support for the C11 standard, +// ISO/IEC 9899:2011 Annex K, Programming Languages - C. + +// The following macro indicates header support for DTrace. The value is an +// integer that corresponds to the major version number for DTrace. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2021 Oxide Computer Company + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2016 Joyent, Inc. + +// Machine dependent definitions moved to . +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2007 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Machine dependent types: +// +// intel ia32 Version + +type Label_t = X_label_t /* machtypes.h:59:54 */ + +type Lock_t = uint8 /* machtypes.h:63:23 */ // lock work for busy wait + +// Include fixed width type declarations proposed by the ISO/JTC1/SC22/WG14 C +// committee's working draft for the revision of the current ISO C standard, +// ISO/IEC 9899:1990 Programming language - C. These are not currently +// required by any standard but constitute a useful, general purpose set +// of type definitions which is namespace clean with respect to all standards. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2014 Garrett D'Amore +// +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// This file, , is part of the Sun Microsystems implementation +// of defined in the ISO C standard, ISO/IEC 9899:1999 +// Programming language - C. +// +// Programs/Modules should not directly include this file. Access to the +// types defined in this file should be through the inclusion of one of the +// following files: +// +// Provides only the "_t" types defined in this +// file which is a subset of the contents of +// . (This can be appropriate for +// all programs/modules except those claiming +// ANSI-C conformance.) +// +// Provides the Kernel and Driver appropriate +// components of . +// +// For use by applications. +// +// See these files for more details. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Basic / Extended integer types +// +// The following defines the basic fixed-size integer types. +// +// Implementations are free to typedef them to Standard C integer types or +// extensions that they support. If an implementation does not support one +// of the particular integer data types below, then it should not define the +// typedefs and macros corresponding to that data type. Note that int8_t +// is not defined in -Xs mode on ISAs for which the ABI specifies "char" +// as an unsigned entity because there is no way to define an eight bit +// signed integral. +type Int8_t = int8 /* int_types.h:75:16 */ +type Int16_t = int16 /* int_types.h:79:17 */ +type Int32_t = int32 /* int_types.h:80:15 */ +type Int64_t = int64 /* int_types.h:83:16 */ + +type Uint8_t = uint8 /* int_types.h:91:24 */ +type Uint16_t = uint16 /* int_types.h:92:25 */ +type Uint32_t = uint32 /* int_types.h:93:23 */ +type Uint64_t = uint64 /* int_types.h:95:24 */ + +// intmax_t and uintmax_t are to be the longest (in number of bits) signed +// and unsigned integer types supported by the implementation. +type Intmax_t = int64 /* int_types.h:107:19 */ +type Uintmax_t = uint64 /* int_types.h:108:19 */ + +// intptr_t and uintptr_t are signed and unsigned integer types large enough +// to hold any data pointer; that is, data pointers can be assigned into or +// from these integer types without losing precision. +type Intptr_t = int64 /* int_types.h:120:16 */ +type Uintptr_t = uint64 /* int_types.h:121:24 */ + +// The following define the fastest integer types that can hold the +// specified number of bits. +type Int_fast8_t = int8 /* int_types.h:132:16 */ +type Int_fast16_t = int32 /* int_types.h:136:15 */ +type Int_fast32_t = int32 /* int_types.h:137:15 */ +type Int_fast64_t = int64 /* int_types.h:139:16 */ + +type Uint_fast8_t = uint8 /* int_types.h:146:24 */ +type Uint_fast16_t = uint32 /* int_types.h:147:23 */ +type Uint_fast32_t = uint32 /* int_types.h:148:23 */ +type Uint_fast64_t = uint64 /* int_types.h:150:24 */ + +// The following define the smallest integer types that can hold the +// specified number of bits. +type Int_least8_t = int8 /* int_types.h:162:16 */ +type Int_least16_t = int16 /* int_types.h:166:17 */ +type Int_least32_t = int32 /* int_types.h:167:15 */ +type Int_least64_t = int64 /* int_types.h:169:16 */ + +// If these are changed, please update char16_t and char32_t in head/uchar.h. +type Uint_least8_t = uint8 /* int_types.h:179:24 */ +type Uint_least16_t = uint16 /* int_types.h:180:25 */ +type Uint_least32_t = uint32 /* int_types.h:181:23 */ +type Uint_least64_t = uint64 /* int_types.h:183:24 */ + +// Strictly conforming ANSI C environments prior to the 1999 +// revision of the C Standard (ISO/IEC 9899:1999) do not have +// the long long data type. +type Longlong_t = int64 /* types.h:72:20 */ +type U_longlong_t = uint64 /* types.h:73:28 */ + +// These types (t_{u}scalar_t) exist because the XTI/TPI/DLPI standards had +// to use them instead of int32_t and uint32_t because DEC had +// shipped 64-bit wide. +type T_scalar_t = int32 /* types.h:92:18 */ +type T_uscalar_t = uint32 /* types.h:93:18 */ + +// POSIX Extensions +type Uchar_t = uint8 /* types.h:102:23 */ +type Ushort_t = uint16 /* types.h:103:24 */ +type Uint_t = uint32 /* types.h:104:22 */ +type Ulong_t = uint64 /* types.h:105:23 */ + +type Caddr_t = uintptr /* types.h:107:15 */ // ? type +type Daddr_t = int64 /* types.h:108:15 */ // type +type Cnt_t = int16 /* types.h:109:16 */ // pointer difference + +// VM-related types +type Pfn_t = uint64 /* types.h:123:18 */ // page frame number +type Pgcnt_t = uint64 /* types.h:124:18 */ // number of pages +type Spgcnt_t = int64 /* types.h:125:15 */ // signed number of pages + +type Use_t = uint8 /* types.h:127:18 */ // use count for swap. +type Sysid_t = int16 /* types.h:128:16 */ +type Index_t = int16 /* types.h:129:16 */ +type Timeout_id_t = uintptr /* types.h:130:15 */ // opaque handle from timeout(9F) +type Bufcall_id_t = uintptr /* types.h:131:15 */ // opaque handle from bufcall(9F) + +// The size of off_t and related types depends on the setting of +// _FILE_OFFSET_BITS. (Note that other system headers define other types +// related to those defined here.) +// +// If _LARGEFILE64_SOURCE is defined, variants of these types that are +// explicitly 64 bits wide become available. + +type Off_t = int64 /* types.h:145:15 */ // offsets within files + +type Off64_t = int64 /* types.h:152:16 */ // offsets within files + +type Ino_t = uint64 /* types.h:161:18 */ // expanded inode type +type Blkcnt_t = int64 /* types.h:162:15 */ // count of file blocks +type Fsblkcnt_t = uint64 /* types.h:163:18 */ // count of file system blocks +type Fsfilcnt_t = uint64 /* types.h:164:18 */ // count of files + +type Ino64_t = uint64 /* types.h:174:16 */ // expanded inode type +type Blkcnt64_t = int64 /* types.h:175:18 */ // count of file blocks +type Fsblkcnt64_t = uint64 /* types.h:176:20 */ // count of file system blocks +type Fsfilcnt64_t = uint64 /* types.h:177:20 */ // count of files + +type Blksize_t = int32 /* types.h:187:14 */ // used for block sizes + +// The boolean_t type has had a varied amount of exposure over the years in +// terms of how its enumeration constants have been exposed. In particular, it +// originally used the __XOPEN_OR_POSIX macro to determine whether to prefix the +// B_TRUE and B_FALSE with an underscore. This check never included the +// question of if we were in a strict ANSI C environment or whether extensions +// were defined. +// +// Compilers such as clang started defaulting to always including an +// XOPEN_SOURCE declaration on behalf of users, but also noted __EXTENSIONS__. +// This would lead most software that had used the non-underscore versions to +// need it. As such, we have adjusted the non-strict XOPEN environment to retain +// its old behavior so as to minimize namespace pollution; however, we instead +// include both variants of the definitions in the generally visible version +// allowing software written in either world to hopefully end up in a good +// place. +// +// This isn't perfect, but should hopefully minimize the pain for folks actually +// trying to build software. +type Boolean_t = uint32 /* types.h:215:69 */ + +// The {u,}pad64_t types can be used in structures such that those structures +// may be accessed by code produced by compilation environments which don't +// support a 64 bit integral datatype. The intention is not to allow +// use of these fields in such environments, but to maintain the alignment +// and offsets of the structure. +// +// Similar comments for {u,}pad128_t. +// +// Note that these types do NOT generate any stronger alignment constraints +// than those available in the underlying ABI. See +type Pad64_t = int64 /* types.h:240:18 */ +type Upad64_t = uint64 /* types.h:241:18 */ + +type Pad128_t = struct { + F_q float64 + F__ccgo_pad1 [8]byte +} /* types.h:257:3 */ + +type Upad128_t = struct { + F_q float64 + F__ccgo_pad1 [8]byte +} /* types.h:262:3 */ + +type Offset_t = int64 /* types.h:264:20 */ +type U_offset_t = uint64 /* types.h:265:22 */ +type Len_t = uint64 /* types.h:266:22 */ +type Diskaddr_t = uint64 /* types.h:267:22 */ + +// Definitions remaining from previous partial support for 64-bit file +// offsets. This partial support for devices greater than 2gb requires +// compiler support for long long. +type Lloff_t = struct{ F_f int64 } /* types.h:284:3 */ + +type Lldaddr_t = struct{ F_f int64 } /* types.h:304:3 */ + +type K_fltset_t = uint32 /* types.h:317:16 */ // kernel fault set type + +// The following type is for various kinds of identifiers. The +// actual type must be the same for all since some system calls +// (such as sigsend) take arguments that may be any of these +// types. The enumeration type idtype_t defined in sys/procset.h +// is used to indicate what type of id is being specified -- +// a process id, process group id, session id, scheduling class id, +// user id, group id, project id, task id or zone id. +type Id_t = int32 /* types.h:329:14 */ + +type Lgrp_id_t = int32 /* types.h:334:15 */ // lgroup ID + +// Type useconds_t is an unsigned integral type capable of storing +// values at least in the range of zero to 1,000,000. +type Useconds_t = uint32 /* types.h:340:17 */ // Time, in microseconds + +type Suseconds_t = int64 /* types.h:344:14 */ // signed # of microseconds + +// Typedefs for dev_t components. +type Major_t = uint32 /* types.h:351:16 */ // major part of device number +type Minor_t = uint32 /* types.h:352:16 */ // minor part of device number + +// The data type of a thread priority. +type Pri_t = int16 /* types.h:361:15 */ + +// The data type for a CPU flags field. (Can be extended to larger unsigned +// types, if needed, limited by ability to update atomically.) +type Cpu_flag_t = uint16 /* types.h:367:18 */ + +// For compatibility reasons the following typedefs (prefixed o_) +// can't grow regardless of the EFT definition. Although, +// applications should not explicitly use these typedefs +// they may be included via a system header definition. +// WARNING: These typedefs may be removed in a future +// release. +// +// ex. the definitions in s5inode.h (now obsoleted) +// remained small to preserve compatibility +// in the S5 file system type. +type O_mode_t = uint16 /* types.h:380:18 */ // old file attribute type +type O_dev_t = int16 /* types.h:381:15 */ // old device type +type O_uid_t = uint16 /* types.h:382:18 */ // old UID type +type O_gid_t = uint16 /* types.h:383:17 */ // old GID type +type O_nlink_t = int16 /* types.h:384:15 */ // old file link type +type O_pid_t = int16 /* types.h:385:15 */ // old process id type +type O_ino_t = uint16 /* types.h:386:18 */ // old inode type + +// POSIX and XOPEN Declarations +type Key_t = int32 /* types.h:392:13 */ // IPC key type +type Mode_t = uint32 /* types.h:394:16 */ // file attribute type + +type Uid_t = uint32 /* types.h:401:22 */ // UID type + +type Gid_t = uint32 /* types.h:404:15 */ // GID type + +type Datalink_id_t = uint32 /* types.h:406:18 */ +type Vrid_t = uint32 /* types.h:407:18 */ + +type Taskid_t = int32 /* types.h:409:17 */ +type Projid_t = int32 /* types.h:410:17 */ +type Poolid_t = int32 /* types.h:411:14 */ +type Zoneid_t = int32 /* types.h:412:14 */ +type Ctid_t = int32 /* types.h:413:14 */ + +// POSIX definitions are same as defined in thread.h and synch.h. +// Any changes made to here should be reflected in corresponding +// files as described in comments. +type Pthread_t = uint32 /* types.h:420:16 */ // = thread_t in thread.h +type Pthread_key_t = uint32 /* types.h:421:16 */ // = thread_key_t in thread.h + +// "Magic numbers" tagging synchronization object types + +type X_pthread_mutex = struct { + F__pthread_mutex_flags struct { + F__pthread_mutex_flag1 uint16 + F__pthread_mutex_flag2 uint8 + F__pthread_mutex_ceiling uint8 + F__pthread_mutex_type uint16 + F__pthread_mutex_magic uint16 + } + F__pthread_mutex_lock struct { + F__ccgo_pad1 [0]uint64 + F__pthread_mutex_lock64 struct{ F__pthread_mutex_pad [8]uint8 } + } + F__pthread_mutex_data uint64 +} /* types.h:429:9 */ + +// = thread_key_t in thread.h + +// "Magic numbers" tagging synchronization object types + +type Pthread_mutex_t = X_pthread_mutex /* types.h:448:3 */ + +type X_pthread_cond = struct { + F__pthread_cond_flags struct { + F__pthread_cond_flag [4]uint8 + F__pthread_cond_type uint16 + F__pthread_cond_magic uint16 + } + F__pthread_cond_data uint64 +} /* types.h:450:9 */ + +type Pthread_cond_t = X_pthread_cond /* types.h:457:3 */ + +// UNIX 98 Extension +type X_pthread_rwlock = struct { + F__pthread_rwlock_readers int32 + F__pthread_rwlock_type uint16 + F__pthread_rwlock_magic uint16 + F__pthread_rwlock_mutex Pthread_mutex_t + F__pthread_rwlock_readercv Pthread_cond_t + F__pthread_rwlock_writercv Pthread_cond_t +} /* types.h:462:9 */ + +// UNIX 98 Extension +type Pthread_rwlock_t = X_pthread_rwlock /* types.h:469:3 */ + +// SUSV3 +type Pthread_barrier_t = struct { + F__pthread_barrier_count uint32 + F__pthread_barrier_current uint32 + F__pthread_barrier_cycle uint64 + F__pthread_barrier_reserved uint64 + F__pthread_barrier_lock Pthread_mutex_t + F__pthread_barrier_cond Pthread_cond_t +} /* types.h:481:3 */ + +type Pthread_spinlock_t = Pthread_mutex_t /* types.h:483:25 */ + +// attributes for threads, dynamically allocated by library +type X_pthread_attr = struct{ F__pthread_attrp uintptr } /* types.h:488:9 */ + +// attributes for threads, dynamically allocated by library +type Pthread_attr_t = X_pthread_attr /* types.h:490:3 */ + +// attributes for mutex, dynamically allocated by library +type X_pthread_mutexattr = struct{ F__pthread_mutexattrp uintptr } /* types.h:495:9 */ + +// attributes for mutex, dynamically allocated by library +type Pthread_mutexattr_t = X_pthread_mutexattr /* types.h:497:3 */ + +// attributes for cond, dynamically allocated by library +type X_pthread_condattr = struct{ F__pthread_condattrp uintptr } /* types.h:502:9 */ + +// attributes for cond, dynamically allocated by library +type Pthread_condattr_t = X_pthread_condattr /* types.h:504:3 */ + +// pthread_once +type X_once = struct{ F__pthread_once_pad [4]uint64 } /* types.h:509:9 */ + +// pthread_once +type Pthread_once_t = X_once /* types.h:511:3 */ + +// UNIX 98 Extensions +// attributes for rwlock, dynamically allocated by library +type X_pthread_rwlockattr = struct{ F__pthread_rwlockattrp uintptr } /* types.h:517:9 */ + +// UNIX 98 Extensions +// attributes for rwlock, dynamically allocated by library +type Pthread_rwlockattr_t = X_pthread_rwlockattr /* types.h:519:3 */ + +// SUSV3 +// attributes for pthread_barrier_t, dynamically allocated by library +type Pthread_barrierattr_t = struct{ F__pthread_barrierattrp uintptr } /* types.h:527:3 */ + +type Dev_t = uint64 /* types.h:529:17 */ // expanded device type + +type Nlink_t = uint32 /* types.h:532:16 */ // file link type +type Pid_t = int32 /* types.h:533:13 */ // size of something in bytes + +type Ssize_t = int64 /* types.h:551:14 */ // size of something in bytes or -1 + +type Time_t = int64 /* types.h:559:15 */ // time of day in seconds + +type Clock_t = int64 /* types.h:564:15 */ // relative time in a specified resolution + +type Clockid_t = int32 /* types.h:569:13 */ // clock identifier type + +type Timer_t = int32 /* types.h:574:13 */ // timer identifier type + +// BEGIN CSTYLED +type Unchar = uint8 /* types.h:580:23 */ +type Ushort = uint16 /* types.h:581:24 */ +type Uint = uint32 /* types.h:582:22 */ +type Ulong = uint64 /* types.h:583:23 */ +// END CSTYLED + +// The following is the value of type id_t to use to indicate the +// caller's current id. See procset.h for the type idtype_t +// which defines which kind of id is being specified. + +// The following value of type pfn_t is used to indicate +// invalid page frame number. + +// BEGIN CSTYLED +type U_char = uint8 /* types.h:650:23 */ +type U_short = uint16 /* types.h:651:24 */ +type U_int = uint32 /* types.h:652:22 */ +type U_long = uint64 /* types.h:653:23 */ +type X_quad = struct{ Fval [2]int32 } /* types.h:654:9 */ + +type Quad_t = X_quad /* types.h:654:38 */ // used by UFS +type Quad = Quad_t /* types.h:655:17 */ // used by UFS +// END CSTYLED + +// Nested include for BSD/sockets source compatibility. +// (The select macros used to be defined here). +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// +// Copyright 2010 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// University Copyright- Copyright (c) 1982, 1986, 1988 +// The Regents of the University of California +// All Rights Reserved +// +// University Acknowledgment- Portions of this document are derived from +// software developed by the University of California, Berkeley, and its +// contributors. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2005 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Implementation-private. This header should not be included +// directly by an application. The application should instead +// include which includes this header conditionally +// depending on which feature test macros are defined. By default, +// this header is included by . X/Open and POSIX +// standards requirements result in this header being included +// by only under a restricted set of conditions. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Time expressed in seconds and nanoseconds + +type Timespec = struct { + Ftv_sec int64 + Ftv_nsec int64 +} /* time_impl.h:57:9 */ + +// used by UFS +// END CSTYLED + +// Nested include for BSD/sockets source compatibility. +// (The select macros used to be defined here). +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// +// Copyright 2010 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// University Copyright- Copyright (c) 1982, 1986, 1988 +// The Regents of the University of California +// All Rights Reserved +// +// University Acknowledgment- Portions of this document are derived from +// software developed by the University of California, Berkeley, and its +// contributors. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2005 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Implementation-private. This header should not be included +// directly by an application. The application should instead +// include which includes this header conditionally +// depending on which feature test macros are defined. By default, +// this header is included by . X/Open and POSIX +// standards requirements result in this header being included +// by only under a restricted set of conditions. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Time expressed in seconds and nanoseconds + +type Timespec_t = Timespec /* time_impl.h:60:3 */ + +type Timestruc_t = Timespec /* time_impl.h:81:25 */ // definition per SVr4 + +// The following has been left in for backward compatibility. Portable +// applications should not use the structure name timestruc. + +// Timer specification +type Itimerspec = struct { + Fit_interval struct { + Ftv_sec int64 + Ftv_nsec int64 + } + Fit_value struct { + Ftv_sec int64 + Ftv_nsec int64 + } +} /* time_impl.h:95:9 */ + +// definition per SVr4 + +// The following has been left in for backward compatibility. Portable +// applications should not use the structure name timestruc. + +// Timer specification +type Itimerspec_t = Itimerspec /* time_impl.h:98:3 */ + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright (c) 1982, 1986, 1993 Regents of the University of California. +// All rights reserved. The Berkeley software License Agreement +// specifies the terms and conditions for redistribution. + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2020 OmniOS Community Edition (OmniOSce) Association. + +// Copyright (c) 2013, 2016 by Delphix. All rights reserved. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Structure returned by gettimeofday(2) system call, +// and used in other calls. + +type Timeval = struct { + Ftv_sec int64 + Ftv_usec int64 +} /* time.h:54:1 */ + +type Timezone = struct { + Ftz_minuteswest int32 + Ftz_dsttime int32 +} /* time.h:86:1 */ + +// Needed for longlong_t type. Placement of this due to +// including which relies on the presense of the itimerval +// structure. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2021 Oxide Computer Company + +// Operations on timevals. + +// Names of the interval timers, and structure +// defining a timer setting. +// time and when system is running on +// behalf of the process. +// time profiling of multithreaded +// programs. + +type Itimerval = struct { + Fit_interval struct { + Ftv_sec int64 + Ftv_usec int64 + } + Fit_value struct { + Ftv_sec int64 + Ftv_usec int64 + } +} /* time.h:209:1 */ + +// Definitions for commonly used resolutions. + +// Time expressed as a 64-bit nanosecond counter. +type Hrtime_t = int64 /* time.h:265:20 */ + +// The inclusion of is historical and was added for +// backward compatibility in delta 1.2 when a number of definitions +// were moved out of . More recently, the timespec and +// itimerspec structure definitions, along with the _CLOCK_*, CLOCK_*, +// _TIMER_*, and TIMER_* symbols were moved to , +// which is now included by . This change was due to POSIX +// 1003.1b-1993 and X/Open UNIX 98 requirements. For non-POSIX and +// non-X/Open applications, including this header will still make +// visible these definitions. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1988 AT&T +// All Rights Reserved + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2007 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2010 Nexenta Systems, Inc. Al rights reserved. +// Copyright 2016 Joyent, Inc. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1988 AT&T +// All Rights Reserved + +// Copyright 2014 Garrett D'Amore +// Copyright 2014 PALO, Richard. +// +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// An application should not include this header directly. Instead it +// should be included only through the inclusion of other Sun headers. +// +// The contents of this header is limited to identifiers specified in the +// C Standard. Any new identifiers specified in future amendments to the +// C Standard must be placed in this header. If these new identifiers +// are required to also be in the C++ Standard "std" namespace, then for +// anything other than macro definitions, corresponding "using" directives +// must also be added to . + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// This file and its contents are supplied under the terms of the +// Common Development and Distribution License ("CDDL"), version 1.0. +// You may only use this file in accordance with the terms of version +// 1.0 of the CDDL. +// +// A full copy of the text of the CDDL should have accompanied this +// source. A copy of the CDDL is also available via the Internet at +// http://www.illumos.org/license/CDDL. + +// Copyright 2014-2016 PALO, Richard. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// POSIX.1-2008 requires that the NULL macro be cast to type void *. + +type Tm = struct { + Ftm_sec int32 + Ftm_min int32 + Ftm_hour int32 + Ftm_mday int32 + Ftm_mon int32 + Ftm_year int32 + Ftm_wday int32 + Ftm_yday int32 + Ftm_isdst int32 +} /* time_iso.h:80:1 */ + +// Neither X/Open nor POSIX allow the inclusion of for the +// definition of the sigevent structure. Both require the inclusion +// of and when using the timer_create() function. +// However, X/Open also specifies that the sigevent structure be defined +// in as described in the header . This prevents +// compiler warnings for applications that only include and not +// also . The sigval union and the sigevent structure is +// therefore defined both here and in which gets included +// via inclusion of . +type Sigval = struct { + F__ccgo_pad1 [0]uint64 + Fsival_int int32 + F__ccgo_pad2 [4]byte +} /* time.h:125:1 */ + +type Sigevent = struct { + Fsigev_notify int32 + Fsigev_signo int32 + Fsigev_value struct { + F__ccgo_pad1 [0]uint64 + Fsival_int int32 + F__ccgo_pad2 [4]byte + } + Fsigev_notify_function uintptr + Fsigev_notify_attributes uintptr + F__sigev_pad2 int32 + F__ccgo_pad1 [4]byte +} /* time.h:133:1 */ + +type Locale_t = uintptr /* time.h:292:24 */ + +// The inclusion of is needed for the FD_CLR, +// FD_ISSET, FD_SET, and FD_SETSIZE macros as well as the +// select() prototype defined in the XOpen specifications +// beginning with XSH4v2. Placement required after definition +// for itimerval. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// +// Copyright 2010 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// University Copyright- Copyright (c) 1982, 1986, 1988 +// The Regents of the University of California +// All Rights Reserved +// +// University Acknowledgment- Portions of this document are derived from +// software developed by the University of California, Berkeley, and its +// contributors. + +// The sigset_t type is defined in and duplicated +// in as a result of XPG4v2 requirements. XPG6 +// now allows the visibility of signal.h in this header, however +// an order of inclusion problem occurs as a result of inclusion +// of in under certain conditions. +// Rather than include here, we've duplicated +// the sigset_t type instead. This type is required for the XPG6 +// introduced pselect() function also declared in this header. +type Sigset_t = struct{ F__sigbits [4]uint32 } /* select.h:76:3 */ + +// Select uses bit masks of file descriptors in longs. +// These macros manipulate such bit fields. +// FD_SETSIZE may be defined by the user, but the default here +// should be >= RLIM_FD_MAX. + +type Fd_mask = int64 /* select.h:92:14 */ +type Fds_mask = int64 /* select.h:94:14 */ + +// The value of _NBBY needs to be consistant with the value +// of NBBY in . + +type Fd_set1 = struct{ Ffds_bits [1024]int64 } /* select.h:120:9 */ + +// The value of _NBBY needs to be consistant with the value +// of NBBY in . + +type Fd_set = Fd_set1 /* select.h:125:3 */ + +// _VOID was defined to be either void or char but this is not +// required because previous SunOS compilers have accepted the void +// type. However, because many system header and source files use the +// void keyword, the volatile keyword, and ANSI C function prototypes, +// non-ANSI compilers cannot compile the system anyway. The _VOID macro +// should therefore not be used and remains for source compatibility +// only. +// CSTYLED + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved. + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// University Copyright- Copyright (c) 1982, 1986, 1988 +// The Regents of the University of California +// All Rights Reserved +// +// University Acknowledgment- Portions of this document are derived from +// software developed by the University of California, Berkeley, and its +// contributors. + +// Copyright (c) 2013, OmniTI Computer Consulting, Inc. All rights reserved. +// Copyright 2020 Joyent, Inc. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2021 Oxide Computer Company + +// Flag values accessible to open(2) and fcntl(2) +// The first five can only be set (exclusively) by open(2). +// defines read/write file integrity + +// Flag values accessible only to open(2). + +// fcntl(2) requests +// +// N.B.: values are not necessarily assigned sequentially below. + +// Applications that read /dev/mem must be built like the kernel. A +// new symbol "_KMEMUSER" is defined for this purpose. + +// EINVAL is fildes matches arg1 + +// Numbers 20-22 have been removed and should not be reused. + +// manager + +// Commands that refer to flock structures. The argument types differ between +// the large and small file environments; therefore, the #defined values must +// as well. +// The NBMAND forms are private and should not be used. +// The FLOCK forms are also private and should not be used. + +// "Native" application compilation environment + +// File segment locking set data type - information passed to system by user. + +// regular version, for both small and large file compilation environment +type Flock = struct { + Fl_type int16 + Fl_whence int16 + F__ccgo_pad1 [4]byte + Fl_start int64 + Fl_len int64 + Fl_sysid int32 + Fl_pid int32 + Fl_pad [4]int64 +} /* fcntl.h:241:9 */ + +// _VOID was defined to be either void or char but this is not +// required because previous SunOS compilers have accepted the void +// type. However, because many system header and source files use the +// void keyword, the volatile keyword, and ANSI C function prototypes, +// non-ANSI compilers cannot compile the system anyway. The _VOID macro +// should therefore not be used and remains for source compatibility +// only. +// CSTYLED + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved. + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// University Copyright- Copyright (c) 1982, 1986, 1988 +// The Regents of the University of California +// All Rights Reserved +// +// University Acknowledgment- Portions of this document are derived from +// software developed by the University of California, Berkeley, and its +// contributors. + +// Copyright (c) 2013, OmniTI Computer Consulting, Inc. All rights reserved. +// Copyright 2020 Joyent, Inc. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2021 Oxide Computer Company + +// Flag values accessible to open(2) and fcntl(2) +// The first five can only be set (exclusively) by open(2). +// defines read/write file integrity + +// Flag values accessible only to open(2). + +// fcntl(2) requests +// +// N.B.: values are not necessarily assigned sequentially below. + +// Applications that read /dev/mem must be built like the kernel. A +// new symbol "_KMEMUSER" is defined for this purpose. + +// EINVAL is fildes matches arg1 + +// Numbers 20-22 have been removed and should not be reused. + +// manager + +// Commands that refer to flock structures. The argument types differ between +// the large and small file environments; therefore, the #defined values must +// as well. +// The NBMAND forms are private and should not be used. +// The FLOCK forms are also private and should not be used. + +// "Native" application compilation environment + +// File segment locking set data type - information passed to system by user. + +// regular version, for both small and large file compilation environment +type Flock_t = Flock /* fcntl.h:249:3 */ + +// transitional large file interface version + +type Flock64 = struct { + Fl_type int16 + Fl_whence int16 + F__ccgo_pad1 [4]byte + Fl_start int64 + Fl_len int64 + Fl_sysid int32 + Fl_pid int32 + Fl_pad [4]int64 +} /* fcntl.h:271:9 */ + +// transitional large file interface version + +type Flock64_t = Flock64 /* fcntl.h:279:3 */ + +// File segment locking types. + +// POSIX constants + +// Mask for file access modes + +// DIRECTIO + +// File share reservation type +type Fshare = struct { + Ff_access int16 + Ff_deny int16 + Ff_id int32 +} /* fcntl.h:357:9 */ + +// File segment locking types. + +// POSIX constants + +// Mask for file access modes + +// DIRECTIO + +// File share reservation type +type Fshare_t = Fshare /* fcntl.h:361:3 */ + +var _ int8 /* gen.c:2:13: */ diff --git a/vendor/modernc.org/libc/fcntl/fcntl_linux_loong64.go b/vendor/modernc.org/libc/fcntl/fcntl_linux_loong64.go new file mode 100644 index 000000000..9bf229d62 --- /dev/null +++ b/vendor/modernc.org/libc/fcntl/fcntl_linux_loong64.go @@ -0,0 +1,1332 @@ +// Code generated by 'ccgo fcntl/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o fcntl/fcntl_linux_loong64.go -pkgname fcntl', DO NOT EDIT. + +package fcntl + +import ( + "math" + "reflect" + "sync/atomic" + "unsafe" +) + +var _ = math.Pi +var _ reflect.Kind +var _ atomic.Value +var _ unsafe.Pointer + +const ( + AT_EACCESS = 0x200 // fcntl.h:166:1: + AT_FDCWD = -100 // fcntl.h:149:1: + AT_REMOVEDIR = 0x200 // fcntl.h:153:1: + AT_SYMLINK_FOLLOW = 0x400 // fcntl.h:155:1: + AT_SYMLINK_NOFOLLOW = 0x100 // fcntl.h:152:1: + FAPPEND = 1024 // fcntl-linux.h:306:1: + FASYNC = 8192 // fcntl-linux.h:308:1: + FD_CLOEXEC = 1 // fcntl-linux.h:219:1: + FFSYNC = 1052672 // fcntl-linux.h:307:1: + FNDELAY = 2048 // fcntl-linux.h:310:1: + FNONBLOCK = 2048 // fcntl-linux.h:309:1: + F_DUPFD = 0 // fcntl-linux.h:167:1: + F_DUPFD_CLOEXEC = 1030 // fcntl-linux.h:214:1: + F_EXLCK = 4 // fcntl-linux.h:231:1: + F_GETFD = 1 // fcntl-linux.h:168:1: + F_GETFL = 3 // fcntl-linux.h:170:1: + F_GETLK = 5 // fcntl-linux.h:109:1: + F_GETLK64 = 5 // fcntl.h:30:1: + F_GETOWN = 9 // fcntl-linux.h:180:1: + F_LOCK = 1 // fcntl.h:279:1: + F_OK = 0 // fcntl.h:131:1: + F_RDLCK = 0 // fcntl-linux.h:223:1: + F_SETFD = 2 // fcntl-linux.h:169:1: + F_SETFL = 4 // fcntl-linux.h:171:1: + F_SETLK = 6 // fcntl-linux.h:110:1: + F_SETLK64 = 6 // fcntl.h:31:1: + F_SETLKW = 7 // fcntl-linux.h:111:1: + F_SETLKW64 = 7 // fcntl.h:32:1: + F_SETOWN = 8 // fcntl-linux.h:179:1: + F_SHLCK = 8 // fcntl-linux.h:232:1: + F_TEST = 3 // fcntl.h:281:1: + F_TLOCK = 2 // fcntl.h:280:1: + F_ULOCK = 0 // fcntl.h:278:1: + F_UNLCK = 2 // fcntl-linux.h:225:1: + F_WRLCK = 1 // fcntl-linux.h:224:1: + LOCK_EX = 2 // fcntl-linux.h:238:1: + LOCK_NB = 4 // fcntl-linux.h:239:1: + LOCK_SH = 1 // fcntl-linux.h:237:1: + LOCK_UN = 8 // fcntl-linux.h:241:1: + O_ACCMODE = 0003 // fcntl-linux.h:42:1: + O_APPEND = 02000 // fcntl-linux.h:59:1: + O_ASYNC = 020000 // fcntl-linux.h:72:1: + O_CLOEXEC = 524288 // fcntl-linux.h:144:1: + O_CREAT = 0100 // fcntl-linux.h:47:1: + O_DIRECTORY = 65536 // fcntl-linux.h:142:1: + O_DSYNC = 4096 // fcntl-linux.h:158:1: + O_EXCL = 0200 // fcntl-linux.h:50:1: + O_FSYNC = 1052672 // fcntl-linux.h:70:1: + O_NDELAY = 2048 // fcntl-linux.h:65:1: + O_NOCTTY = 0400 // fcntl-linux.h:53:1: + O_NOFOLLOW = 131072 // fcntl-linux.h:143:1: + O_NONBLOCK = 04000 // fcntl-linux.h:62:1: + O_RDONLY = 00 // fcntl-linux.h:43:1: + O_RDWR = 02 // fcntl-linux.h:45:1: + O_RSYNC = 1052672 // fcntl-linux.h:162:1: + O_SYNC = 04010000 // fcntl-linux.h:68:1: + O_TRUNC = 01000 // fcntl-linux.h:56:1: + O_WRONLY = 01 // fcntl-linux.h:44:1: + POSIX_FADV_DONTNEED = 4 // fcntl-linux.h:323:1: + POSIX_FADV_NOREUSE = 5 // fcntl-linux.h:324:1: + POSIX_FADV_NORMAL = 0 // fcntl-linux.h:319:1: + POSIX_FADV_RANDOM = 1 // fcntl-linux.h:320:1: + POSIX_FADV_SEQUENTIAL = 2 // fcntl-linux.h:321:1: + POSIX_FADV_WILLNEED = 3 // fcntl-linux.h:322:1: + R_OK = 4 // fcntl.h:128:1: + SEEK_CUR = 1 // fcntl.h:138:1: + SEEK_END = 2 // fcntl.h:139:1: + SEEK_SET = 0 // fcntl.h:137:1: + S_IFBLK = 24576 // fcntl.h:83:1: + S_IFCHR = 8192 // fcntl.h:82:1: + S_IFDIR = 16384 // fcntl.h:81:1: + S_IFIFO = 4096 // fcntl.h:86:1: + S_IFLNK = 40960 // fcntl.h:89:1: + S_IFMT = 61440 // fcntl.h:80:1: + S_IFREG = 32768 // fcntl.h:84:1: + S_IFSOCK = 49152 // fcntl.h:92:1: + S_IRGRP = 32 // fcntl.h:111:1: + S_IROTH = 4 // fcntl.h:117:1: + S_IRUSR = 256 // fcntl.h:105:1: + S_IRWXG = 56 // fcntl.h:115:1: + S_IRWXO = 7 // fcntl.h:121:1: + S_IRWXU = 448 // fcntl.h:109:1: + S_ISGID = 1024 // fcntl.h:98:1: + S_ISUID = 2048 // fcntl.h:97:1: + S_ISVTX = 512 // fcntl.h:102:1: + S_IWGRP = 16 // fcntl.h:112:1: + S_IWOTH = 2 // fcntl.h:118:1: + S_IWUSR = 128 // fcntl.h:106:1: + S_IXGRP = 8 // fcntl.h:113:1: + S_IXOTH = 1 // fcntl.h:119:1: + S_IXUSR = 64 // fcntl.h:107:1: + UTIME_NOW = 1073741823 // stat.h:56:1: + UTIME_OMIT = 1073741822 // stat.h:57:1: + W_OK = 2 // fcntl.h:129:1: + X_OK = 1 // fcntl.h:130:1: + X_ABILP64 = 3 // :377:1: + X_ATFILE_SOURCE = 1 // features.h:353:1: + X_BITS_ENDIANNESS_H = 1 // endianness.h:2:1: + X_BITS_ENDIAN_H = 1 // endian.h:20:1: + X_BITS_STAT_H = 1 // stat.h:23:1: + X_BITS_STRUCT_STAT_H = 1 // struct_stat.h:24:1: + X_BITS_TIME64_H = 1 // time64.h:24:1: + X_BITS_TYPESIZES_H = 1 // typesizes.h:24:1: + X_BITS_TYPES_H = 1 // types.h:24:1: + X_DEFAULT_SOURCE = 1 // features.h:238:1: + X_FCNTL_H = 1 // fcntl.h:23:1: + X_FEATURES_H = 1 // features.h:19:1: + X_FILE_OFFSET_BITS = 64 // :25:1: + X_LOONGARCH_ARCH = "loongarch64" // :214:1: + X_LOONGARCH_ARCH_LOONGARCH64 = 1 // :340:1: + X_LOONGARCH_FPSET = 32 // :265:1: + X_LOONGARCH_SIM = 3 // :233:1: + X_LOONGARCH_SPFPSET = 32 // :88:1: + X_LOONGARCH_SZINT = 32 // :230:1: + X_LOONGARCH_SZLONG = 64 // :388:1: + X_LOONGARCH_SZPTR = 64 // :200:1: + X_LOONGARCH_TUNE = "la464" // :245:1: + X_LOONGARCH_TUNE_LA464 = 1 // :63:1: + X_LP64 = 1 // :372:1: + X_POSIX_C_SOURCE = 200809 // features.h:292:1: + X_POSIX_SOURCE = 1 // features.h:290:1: + X_STATBUF_ST_BLKSIZE = 0 // struct_stat.h:122:1: + X_STATBUF_ST_NSEC = 0 // struct_stat.h:125:1: + X_STATBUF_ST_RDEV = 0 // struct_stat.h:123:1: + X_STDC_PREDEF_H = 1 // :223:1: + X_STRUCT_TIMESPEC = 1 // struct_timespec.h:3:1: + X_SYS_CDEFS_H = 1 // cdefs.h:20:1: + Linux = 1 // :308:1: + Unix = 1 // :247:1: +) + +type Ptrdiff_t = int64 /* :3:26 */ + +type Size_t = uint64 /* :9:23 */ + +type Wchar_t = int32 /* :15:24 */ + +type X__int128_t = struct { + Flo int64 + Fhi int64 +} /* :21:43 */ // must match modernc.org/mathutil.Int128 +type X__uint128_t = struct { + Flo uint64 + Fhi uint64 +} /* :22:44 */ // must match modernc.org/mathutil.Int128 + +type X__builtin_va_list = uintptr /* :46:14 */ +type X__float128 = float64 /* :47:21 */ + +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// POSIX Standard: 6.5 File Control Operations + +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// These are defined by the user (or the compiler) +// to specify the desired environment: +// +// __STRICT_ANSI__ ISO Standard C. +// _ISOC99_SOURCE Extensions to ISO C89 from ISO C99. +// _ISOC11_SOURCE Extensions to ISO C99 from ISO C11. +// _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X. +// __STDC_WANT_LIB_EXT2__ +// Extensions to ISO C99 from TR 27431-2:2010. +// __STDC_WANT_IEC_60559_BFP_EXT__ +// Extensions to ISO C11 from TS 18661-1:2014. +// __STDC_WANT_IEC_60559_FUNCS_EXT__ +// Extensions to ISO C11 from TS 18661-4:2015. +// __STDC_WANT_IEC_60559_TYPES_EXT__ +// Extensions to ISO C11 from TS 18661-3:2015. +// __STDC_WANT_IEC_60559_EXT__ +// ISO C2X interfaces defined only in Annex F. +// +// _POSIX_SOURCE IEEE Std 1003.1. +// _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2; +// if >=199309L, add IEEE Std 1003.1b-1993; +// if >=199506L, add IEEE Std 1003.1c-1995; +// if >=200112L, all of IEEE 1003.1-2004 +// if >=200809L, all of IEEE 1003.1-2008 +// _XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if +// Single Unix conformance is wanted, to 600 for the +// sixth revision, to 700 for the seventh revision. +// _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions. +// _LARGEFILE_SOURCE Some more functions for correct standard I/O. +// _LARGEFILE64_SOURCE Additional functionality from LFS for large files. +// _FILE_OFFSET_BITS=N Select default filesystem interface. +// _ATFILE_SOURCE Additional *at interfaces. +// _DYNAMIC_STACK_SIZE_SOURCE Select correct (but non compile-time constant) +// MINSIGSTKSZ, SIGSTKSZ and PTHREAD_STACK_MIN. +// _GNU_SOURCE All of the above, plus GNU extensions. +// _DEFAULT_SOURCE The default set of features (taking precedence over +// __STRICT_ANSI__). +// +// _FORTIFY_SOURCE Add security hardening to many library functions. +// Set to 1, 2 or 3; 3 performs stricter checks than 2, which +// performs stricter checks than 1. +// +// _REENTRANT, _THREAD_SAFE +// Obsolete; equivalent to _POSIX_C_SOURCE=199506L. +// +// The `-ansi' switch to the GNU C compiler, and standards conformance +// options such as `-std=c99', define __STRICT_ANSI__. If none of +// these are defined, or if _DEFAULT_SOURCE is defined, the default is +// to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to +// 200809L, as well as enabling miscellaneous functions from BSD and +// SVID. If more than one of these are defined, they accumulate. For +// example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together +// give you ISO C, 1003.1, and 1003.2, but nothing else. +// +// These are defined by this file and are used by the +// header files to decide what to declare or define: +// +// __GLIBC_USE (F) Define things from feature set F. This is defined +// to 1 or 0; the subsequent macros are either defined +// or undefined, and those tests should be moved to +// __GLIBC_USE. +// __USE_ISOC11 Define ISO C11 things. +// __USE_ISOC99 Define ISO C99 things. +// __USE_ISOC95 Define ISO C90 AMD1 (C95) things. +// __USE_ISOCXX11 Define ISO C++11 things. +// __USE_POSIX Define IEEE Std 1003.1 things. +// __USE_POSIX2 Define IEEE Std 1003.2 things. +// __USE_POSIX199309 Define IEEE Std 1003.1, and .1b things. +// __USE_POSIX199506 Define IEEE Std 1003.1, .1b, .1c and .1i things. +// __USE_XOPEN Define XPG things. +// __USE_XOPEN_EXTENDED Define X/Open Unix things. +// __USE_UNIX98 Define Single Unix V2 things. +// __USE_XOPEN2K Define XPG6 things. +// __USE_XOPEN2KXSI Define XPG6 XSI things. +// __USE_XOPEN2K8 Define XPG7 things. +// __USE_XOPEN2K8XSI Define XPG7 XSI things. +// __USE_LARGEFILE Define correct standard I/O things. +// __USE_LARGEFILE64 Define LFS things with separate names. +// __USE_FILE_OFFSET64 Define 64bit interface as default. +// __USE_MISC Define things from 4.3BSD or System V Unix. +// __USE_ATFILE Define *at interfaces and AT_* constants for them. +// __USE_DYNAMIC_STACK_SIZE Define correct (but non compile-time constant) +// MINSIGSTKSZ, SIGSTKSZ and PTHREAD_STACK_MIN. +// __USE_GNU Define GNU extensions. +// __USE_FORTIFY_LEVEL Additional security measures used, according to level. +// +// The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are +// defined by this file unconditionally. `__GNU_LIBRARY__' is provided +// only for compatibility. All new code should use the other symbols +// to test for features. +// +// All macros listed above as possibly being defined by this file are +// explicitly undefined if they are not explicitly defined. +// Feature-test macros that are not defined by the user or compiler +// but are implied by the other feature-test macros defined (or by the +// lack of any definitions) are defined by the file. +// +// ISO C feature test macros depend on the definition of the macro +// when an affected header is included, not when the first system +// header is included, and so they are handled in +// , which does not have a multiple include +// guard. Feature test macros that can be handled from the first +// system header included are handled here. + +// Undefine everything, so we get a clean slate. + +// Suppress kernel-name space pollution unless user expressedly asks +// for it. + +// Convenience macro to test the version of gcc. +// Use like this: +// #if __GNUC_PREREQ (2,8) +// ... code requiring gcc 2.8 or later ... +// #endif +// Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was +// added in 2.0. + +// Similarly for clang. Features added to GCC after version 4.2 may +// or may not also be available in clang, and clang's definitions of +// __GNUC(_MINOR)__ are fixed at 4 and 2 respectively. Not all such +// features can be queried via __has_extension/__has_feature. + +// Whether to use feature set F. + +// _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for +// _DEFAULT_SOURCE. If _DEFAULT_SOURCE is present we do not +// issue a warning; the expectation is that the source is being +// transitioned to use the new macro. + +// If _GNU_SOURCE was defined by the user, turn on all the other features. + +// If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined, +// define _DEFAULT_SOURCE. + +// This is to enable the ISO C2X extension. + +// This is to enable the ISO C11 extension. + +// This is to enable the ISO C99 extension. + +// This is to enable the ISO C90 Amendment 1:1995 extension. + +// If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE +// is defined, use POSIX.1-2008 (or another version depending on +// _XOPEN_SOURCE). + +// Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be +// defined in all multithreaded code. GNU libc has not required this +// for many years. We now treat them as compatibility synonyms for +// _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with +// comprehensive support for multithreaded code. Using them never +// lowers the selected level of POSIX conformance, only raises it. + +// Features part to handle 64-bit time_t support. +// Copyright (C) 2021-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// We need to know the word size in order to check the time size. +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Bit size of the time_t type at glibc build time, general case. +// Copyright (C) 2018-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Size in bits of the 'time_t' type of the default ABI. + +// The function 'gets' existed in C89, but is impossible to use +// safely. It has been removed from ISO C11 and ISO C++14. Note: for +// compatibility with various implementations of , this test +// must consider only the value of __cplusplus when compiling C++. + +// GNU formerly extended the scanf functions with modified format +// specifiers %as, %aS, and %a[...] that allocate a buffer for the +// input using malloc. This extension conflicts with ISO C99, which +// defines %a as a standalone format specifier that reads a floating- +// point number; moreover, POSIX.1-2008 provides the same feature +// using the modifier letter 'm' instead (%ms, %mS, %m[...]). +// +// We now follow C99 unless GNU extensions are active and the compiler +// is specifically in C89 or C++98 mode (strict or not). For +// instance, with GCC, -std=gnu11 will have C99-compliant scanf with +// or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the +// old extension. + +// ISO C2X added support for a 0b or 0B prefix on binary constants as +// inputs to strtol-family functions (base 0 or 2). This macro is +// used to condition redirection in headers to allow that redirection +// to be disabled when building those functions, despite _GNU_SOURCE +// being defined. + +// Get definitions of __STDC_* predefined macros, if the compiler has +// not preincluded this header automatically. +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// This macro indicates that the installed library is the GNU C Library. +// For historic reasons the value now is 6 and this will stay from now +// on. The use of this variable is deprecated. Use __GLIBC__ and +// __GLIBC_MINOR__ now (see below) when you want to test for a specific +// GNU C library version and use the values in to get +// the sonames of the shared libraries. + +// Major and minor version number of the GNU C library package. Use +// these macros to test for features in specific releases. + +// This is here only because every header file already includes this one. +// Copyright (C) 1992-2023 Free Software Foundation, Inc. +// Copyright The GNU Toolchain Authors. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// We are almost always included from features.h. + +// The GNU libc does not support any K&R compilers or the traditional mode +// of ISO C compilers anymore. Check for some of the combinations not +// supported anymore. + +// Some user header file might have defined this before. + +// Compilers that lack __has_attribute may object to +// #if defined __has_attribute && __has_attribute (...) +// even though they do not need to evaluate the right-hand side of the &&. +// Similarly for __has_builtin, etc. + +// All functions, except those with callbacks or those that +// synchronize memory, are leaf functions. + +// GCC can always grok prototypes. For C++ programs we add throw() +// to help it optimize the function calls. But this only works with +// gcc 2.8.x and egcs. For gcc 3.4 and up we even mark C functions +// as non-throwing using a function attribute since programs can use +// the -fexceptions options for C code as well. + +// These two macros are not used in glibc anymore. They are kept here +// only because some other projects expect the macros to be defined. + +// For these things, GCC behaves the ANSI way normally, +// and the non-ANSI way under -traditional. + +// This is not a typedef so `const __ptr_t' does the right thing. + +// C++ needs to know that types and declarations are C, not C++. + +// Fortify support. + +// Use __builtin_dynamic_object_size at _FORTIFY_SOURCE=3 when available. + +// Support for flexible arrays. +// Headers that should use flexible arrays only if they're "real" +// (e.g. only if they won't affect sizeof()) should test +// #if __glibc_c99_flexarr_available. + +// __asm__ ("xyz") is used throughout the headers to rename functions +// at the assembly language level. This is wrapped by the __REDIRECT +// macro, in order to support compilers that can do this some other +// way. When compilers don't support asm-names at all, we have to do +// preprocessor tricks instead (which don't have exactly the right +// semantics, but it's the best we can do). +// +// Example: +// int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid); + +// +// #elif __SOME_OTHER_COMPILER__ +// +// # define __REDIRECT(name, proto, alias) name proto; _Pragma("let " #name " = " #alias) + +// GCC and clang have various useful declarations that can be made with +// the '__attribute__' syntax. All of the ways we use this do fine if +// they are omitted for compilers that don't understand it. + +// At some point during the gcc 2.96 development the `malloc' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// Tell the compiler which arguments to an allocation function +// indicate the size of the allocation. + +// Tell the compiler which argument to an allocation function +// indicates the alignment of the allocation. + +// At some point during the gcc 2.96 development the `pure' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// This declaration tells the compiler that the value is constant. + +// At some point during the gcc 3.1 development the `used' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// Since version 3.2, gcc allows marking deprecated functions. + +// Since version 4.5, gcc also allows one to specify the message printed +// when a deprecated function is used. clang claims to be gcc 4.2, but +// may also support this feature. + +// At some point during the gcc 2.8 development the `format_arg' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. +// If several `format_arg' attributes are given for the same function, in +// gcc-3.0 and older, all but the last one are ignored. In newer gccs, +// all designated arguments are considered. + +// At some point during the gcc 2.97 development the `strfmon' format +// attribute for functions was introduced. We don't want to use it +// unconditionally (although this would be possible) since it +// generates warnings. + +// The nonnull function attribute marks pointer parameters that +// must not be NULL. This has the name __nonnull in glibc, +// and __attribute_nonnull__ in files shared with Gnulib to avoid +// collision with a different __nonnull in DragonFlyBSD 5.9. + +// The returns_nonnull function attribute marks the return type of the function +// as always being non-null. + +// If fortification mode, we warn about unused results of certain +// function calls which can lead to problems. + +// Forces a function to be always inlined. +// The Linux kernel defines __always_inline in stddef.h (283d7573), and +// it conflicts with this definition. Therefore undefine it first to +// allow either header to be included first. + +// Associate error messages with the source location of the call site rather +// than with the source location inside the function. + +// GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99 +// inline semantics, unless -fgnu89-inline is used. Using __GNUC_STDC_INLINE__ +// or __GNUC_GNU_INLINE is not a good enough check for gcc because gcc versions +// older than 4.3 may define these macros and still not guarantee GNU inlining +// semantics. +// +// clang++ identifies itself as gcc-4.2, but has support for GNU inlining +// semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and +// __GNUC_GNU_INLINE__ macro definitions. + +// GCC 4.3 and above allow passing all anonymous arguments of an +// __extern_always_inline function to some other vararg function. + +// It is possible to compile containing GCC extensions even if GCC is +// run in pedantic mode if the uses are carefully marked using the +// `__extension__' keyword. But this is not generally available before +// version 2.8. + +// __restrict is known in EGCS 1.2 and above, and in clang. +// It works also in C++ mode (outside of arrays), but only when spelled +// as '__restrict', not 'restrict'. + +// ISO C99 also allows to declare arrays as non-overlapping. The syntax is +// array_name[restrict] +// GCC 3.1 and clang support this. +// This syntax is not usable in C++ mode. + +// Describes a char array whose address can safely be passed as the first +// argument to strncpy and strncat, as the char array is not necessarily +// a NUL-terminated string. + +// Undefine (also defined in libc-symbols.h). +// Copies attributes from the declaration or type referenced by +// the argument. + +// Gnulib avoids including these, as they don't work on non-glibc or +// older glibc platforms. +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Properties of long double type. ldbl-128 version. +// Copyright (C) 2016-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// long double is distinct from double, so there is nothing to +// define here. + +// __glibc_macro_warning (MESSAGE) issues warning MESSAGE. This is +// intended for use in preprocessor macros. +// +// Note: MESSAGE must be a _single_ string; concatenation of string +// literals is not supported. + +// Generic selection (ISO C11) is a C-only feature, available in GCC +// since version 4.9. Previous versions do not provide generic +// selection, even though they might set __STDC_VERSION__ to 201112L, +// when in -std=c11 mode. Thus, we must check for !defined __GNUC__ +// when testing __STDC_VERSION__ for generic selection support. +// On the other hand, Clang also defines __GNUC__, so a clang-specific +// check is required to enable the use of generic selection. + +// Designates a 1-based positional argument ref-index of pointer type +// that can be used to access size-index elements of the pointed-to +// array according to access mode, or at least one element when +// size-index is not provided: +// access (access-mode, [, ]) +// For _FORTIFY_SOURCE == 3 we use __builtin_dynamic_object_size, which may +// use the access attribute to get object sizes from function definition +// arguments, so we can't use them on functions we fortify. Drop the object +// size hints for such functions. + +// Designates dealloc as a function to call to deallocate objects +// allocated by the declared function. + +// Specify that a function such as setjmp or vfork may return +// twice. + +// If we don't have __REDIRECT, prototypes will be missing if +// __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64]. + +// Decide whether we can define 'extern inline' functions in headers. + +// This is here only because every header file already includes this one. +// Get the definitions of all the appropriate `__stub_FUNCTION' symbols. +// contains `#define __stub_FUNCTION' when FUNCTION is a stub +// that will always return failure (and set errno to ENOSYS). +// This file is automatically generated. +// This file selects the right generated file of `__stub_FUNCTION' macros +// based on the architecture being compiled for. + +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// This file is automatically generated. +// It defines a symbol `__stub_FUNCTION' for each function +// in the C library which is a stub, meaning it will fail +// every time called, usually setting errno to ENOSYS. + +// This must be early so can define types winningly. + +// Get __mode_t, __dev_t and __off_t . +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Bit size of the time_t type at glibc build time, general case. +// Copyright (C) 2018-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Size in bits of the 'time_t' type of the default ABI. + +// Convenience types. +type X__u_char = uint8 /* types.h:31:23 */ +type X__u_short = uint16 /* types.h:32:28 */ +type X__u_int = uint32 /* types.h:33:22 */ +type X__u_long = uint64 /* types.h:34:27 */ + +// Fixed-size types, underlying types depend on word size and compiler. +type X__int8_t = int8 /* types.h:37:21 */ +type X__uint8_t = uint8 /* types.h:38:23 */ +type X__int16_t = int16 /* types.h:39:26 */ +type X__uint16_t = uint16 /* types.h:40:28 */ +type X__int32_t = int32 /* types.h:41:20 */ +type X__uint32_t = uint32 /* types.h:42:22 */ +type X__int64_t = int64 /* types.h:44:25 */ +type X__uint64_t = uint64 /* types.h:45:27 */ + +// Smallest types with at least a given width. +type X__int_least8_t = int8 /* types.h:52:18 */ +type X__uint_least8_t = uint8 /* types.h:53:19 */ +type X__int_least16_t = int16 /* types.h:54:19 */ +type X__uint_least16_t = uint16 /* types.h:55:20 */ +type X__int_least32_t = int32 /* types.h:56:19 */ +type X__uint_least32_t = uint32 /* types.h:57:20 */ +type X__int_least64_t = int64 /* types.h:58:19 */ +type X__uint_least64_t = uint64 /* types.h:59:20 */ + +// quad_t is also 64 bits. +type X__quad_t = int64 /* types.h:63:18 */ +type X__u_quad_t = uint64 /* types.h:64:27 */ + +// Largest integral types. +type X__intmax_t = int64 /* types.h:72:18 */ +type X__uintmax_t = uint64 /* types.h:73:27 */ + +// The machine-dependent file defines __*_T_TYPE +// macros for each of the OS types we define below. The definitions +// of those macros must use the following macros for underlying types. +// We define __S_TYPE and __U_TYPE for the signed and unsigned +// variants of each of the following integer types on this machine. +// +// 16 -- "natural" 16-bit type (always short) +// 32 -- "natural" 32-bit type (always int) +// 64 -- "natural" 64-bit type (long or long long) +// LONG32 -- 32-bit type, traditionally long +// QUAD -- 64-bit type, traditionally long long +// WORD -- natural type of __WORDSIZE bits (int or long) +// LONGWORD -- type of __WORDSIZE bits, traditionally long +// +// We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the +// conventional uses of `long' or `long long' type modifiers match the +// types we define, even when a less-adorned type would be the same size. +// This matters for (somewhat) portably writing printf/scanf formats for +// these types, where using the appropriate l or ll format modifiers can +// make the typedefs and the formats match up across all GNU platforms. If +// we used `long' when it's 64 bits where `long long' is expected, then the +// compiler would warn about the formats not matching the argument types, +// and the programmer changing them to shut up the compiler would break the +// program's portability. +// +// Here we assume what is presently the case in all the GCC configurations +// we support: long long is always 64 bits, long is always word/address size, +// and int is always 32 bits. + +// No need to mark the typedef with __extension__. +// bits/typesizes.h -- underlying types for *_t. For the generic Linux ABI. +// Copyright (C) 2011-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library. If not, see +// . + +// See for the meaning of these macros. This file exists so +// that need not vary across different GNU platforms. + +// Tell the libc code that off_t and off64_t are actually the same type +// for all ABI purposes, even if possibly expressed as different base types +// for C type-checking purposes. + +// Same for ino_t and ino64_t. + +// And for __rlim_t and __rlim64_t. + +// And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t. + +// And for getitimer, setitimer and rusage + +// Number of descriptors that can fit in an `fd_set'. + +// bits/time64.h -- underlying types for __time64_t. Generic version. +// Copyright (C) 2018-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Define __TIME64_T_TYPE so that it is always a 64-bit type. + +// If we already have 64-bit time type then use it. + +type X__dev_t = uint64 /* types.h:145:25 */ // Type of device numbers. +type X__uid_t = uint32 /* types.h:146:25 */ // Type of user identifications. +type X__gid_t = uint32 /* types.h:147:25 */ // Type of group identifications. +type X__ino_t = uint64 /* types.h:148:25 */ // Type of file serial numbers. +type X__ino64_t = uint64 /* types.h:149:27 */ // Type of file serial numbers (LFS). +type X__mode_t = uint32 /* types.h:150:26 */ // Type of file attribute bitmasks. +type X__nlink_t = uint32 /* types.h:151:27 */ // Type of file link counts. +type X__off_t = int64 /* types.h:152:25 */ // Type of file sizes and offsets. +type X__off64_t = int64 /* types.h:153:27 */ // Type of file sizes and offsets (LFS). +type X__pid_t = int32 /* types.h:154:25 */ // Type of process identifications. +type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs. +type X__clock_t = int64 /* types.h:156:27 */ // Type of CPU usage counts. +type X__rlim_t = uint64 /* types.h:157:26 */ // Type for resource measurement. +type X__rlim64_t = uint64 /* types.h:158:28 */ // Type for resource measurement (LFS). +type X__id_t = uint32 /* types.h:159:24 */ // General type for IDs. +type X__time_t = int64 /* types.h:160:26 */ // Seconds since the Epoch. +type X__useconds_t = uint32 /* types.h:161:30 */ // Count of microseconds. +type X__suseconds_t = int64 /* types.h:162:31 */ // Signed count of microseconds. +type X__suseconds64_t = int64 /* types.h:163:33 */ + +type X__daddr_t = int32 /* types.h:165:27 */ // The type of a disk address. +type X__key_t = int32 /* types.h:166:25 */ // Type of an IPC key. + +// Clock ID used in clock and timer functions. +type X__clockid_t = int32 /* types.h:169:29 */ + +// Timer ID returned by `timer_create'. +type X__timer_t = uintptr /* types.h:172:12 */ + +// Type to represent block size. +type X__blksize_t = int32 /* types.h:175:29 */ + +// Types from the Large File Support interface. + +// Type to count number of disk blocks. +type X__blkcnt_t = int64 /* types.h:180:28 */ +type X__blkcnt64_t = int64 /* types.h:181:30 */ + +// Type to count file system blocks. +type X__fsblkcnt_t = uint64 /* types.h:184:30 */ +type X__fsblkcnt64_t = uint64 /* types.h:185:32 */ + +// Type to count file system nodes. +type X__fsfilcnt_t = uint64 /* types.h:188:30 */ +type X__fsfilcnt64_t = uint64 /* types.h:189:32 */ + +// Type of miscellaneous file system fields. +type X__fsword_t = int64 /* types.h:192:28 */ + +type X__ssize_t = int64 /* types.h:194:27 */ // Type of a byte count, or error. + +// Signed long type used in system calls. +type X__syscall_slong_t = int64 /* types.h:197:33 */ +// Unsigned long type used in system calls. +type X__syscall_ulong_t = uint64 /* types.h:199:33 */ + +// These few don't really vary by system, they always correspond +// +// to one of the other defined types. +type X__loff_t = int64 /* types.h:203:19 */ // Type of file sizes and offsets (LFS). +type X__caddr_t = uintptr /* types.h:204:14 */ + +// Duplicates info from stdint.h but this is used in unistd.h. +type X__intptr_t = int64 /* types.h:207:25 */ + +// Duplicate info from sys/socket.h. +type X__socklen_t = uint32 /* types.h:210:23 */ + +// C99: An integer type that can be accessed as an atomic entity, +// +// even in the presence of asynchronous interrupts. +// It is not currently necessary for this to be machine-specific. +type X__sig_atomic_t = int32 /* types.h:215:13 */ + +// Seconds since the Epoch, visible to user code when time_t is too +// narrow only for consistency with the old way of widening too-narrow +// types. User code should never use __time64_t. + +// Get the definitions of O_*, F_*, FD_*: all the +// numbers and flag bits for `open', `fcntl', et al. +// O_*, F_*, FD_* bit values for the generic Linux/LoongArch ABI. +// Copyright (C) 2022-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library. If not, see +// . + +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// In 64-bit ISA files are always with 64bit off_t and F_*LK64 are the same as +// non-64-bit versions. It will need to be revised for 128-bit. + +type Flock = struct { + Fl_type int16 + Fl_whence int16 + F__ccgo_pad1 [4]byte + Fl_start int64 + Fl_len int64 + Fl_pid int32 + F__ccgo_pad2 [4]byte +} /* fcntl.h:35:1 */ + +// Include generic Linux declarations. +// O_*, F_*, FD_* bit values for Linux. +// Copyright (C) 2001-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// This file contains shared definitions between Linux architectures +// and is included by to declare them. The various +// #ifndef cases allow the architecture specific file to define those +// values with different values. +// +// A minimal contains just: +// +// struct flock {...} +// #ifdef __USE_LARGEFILE64 +// struct flock64 {...} +// #endif +// #include + +// open/fcntl. + +// open file description locks. +// +// Usually record locks held by a process are released on *any* close and are +// not inherited across a fork. +// +// These cmd values will set locks that conflict with process-associated record +// locks, but are "owned" by the opened file description, not the process. +// This means that they are inherited across fork or clone with CLONE_FILES +// like BSD (flock) locks, and they are only released automatically when the +// last reference to the the file description against which they were acquired +// is put. + +// For now, Linux has no separate synchronicity options for read +// operations. We define O_RSYNC therefore as the same as O_SYNC +// since this is a superset. + +// Values for the second argument to `fcntl'. + +// For F_[GET|SET]FD. + +// For posix fcntl() and `l_type' field of a `struct flock' for lockf(). + +// For old implementation of BSD flock. + +// Operations for BSD flock, also used by the kernel implementation. + +// Define some more compatibility macros to be backward compatible with +// BSD systems which did not managed to hide these kernel macros. + +// Advise to `posix_fadvise'. + +// Detect if open needs mode as a third argument (or for openat as a fourth +// argument). + +// POSIX.1-2001 specifies that these types are defined by . +// +// Earlier POSIX standards permitted any type ending in `_t' to be defined +// by any POSIX header, so we don't conditionalize the definitions here. +type Mode_t = uint32 /* fcntl.h:50:18 */ + +type Off_t = int64 /* fcntl.h:58:19 */ + +type Pid_t = int32 /* fcntl.h:69:17 */ + +// For XPG all symbols from should also be available. +// NB: Include guard matches what uses. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Endian macros for string.h functions +// Copyright (C) 1992-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Definitions for byte order, according to significance of bytes, +// from low addresses to high addresses. The value is what you get by +// putting '4' in the most significant byte, '3' in the second most +// significant byte, '2' in the second least significant byte, and '1' +// in the least significant byte, and then writing down one digit for +// each byte, starting with the byte at the lowest address at the left, +// and proceeding to the byte with the highest address at the right. + +// This file defines `__BYTE_ORDER' for the particular machine. + +// LoongArch is little-endian. + +// Some machines may need to use a different endianness for floating point +// values. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Returned by `time'. +type Time_t = int64 /* time_t.h:10:18 */ + +// POSIX.1b structure for a time value. This is like a `struct timeval' but +// +// has nanoseconds instead of microseconds. +type Timespec = struct { + Ftv_sec int64 + Ftv_nsec int64 +} /* struct_timespec.h:11:1 */ + +// Copyright (C) 1992-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Definition for struct stat. +// Copyright (C) 2020-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library. If not, see +// . + +// Endian macros for string.h functions +// Copyright (C) 1992-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +type Stat = struct { + Fst_dev uint64 + Fst_ino uint64 + Fst_mode uint32 + Fst_nlink uint32 + Fst_uid uint32 + Fst_gid uint32 + Fst_rdev uint64 + F__pad1 uint64 + Fst_size int64 + Fst_blksize int32 + F__pad2 int32 + Fst_blocks int64 + Fst_atim struct { + Ftv_sec int64 + Ftv_nsec int64 + } + Fst_mtim struct { + Ftv_sec int64 + Ftv_nsec int64 + } + Fst_ctim struct { + Ftv_sec int64 + Ftv_nsec int64 + } + F__glibc_reserved [2]int32 +} /* struct_stat.h:44:1 */ + +// Define some inlines helping to catch common problems. + +var _ int8 /* gen.c:2:13: */ diff --git a/vendor/modernc.org/libc/fcntl/fcntl_linux_mips64le.go b/vendor/modernc.org/libc/fcntl/fcntl_linux_mips64le.go new file mode 100644 index 000000000..8de6ac32f --- /dev/null +++ b/vendor/modernc.org/libc/fcntl/fcntl_linux_mips64le.go @@ -0,0 +1,1087 @@ +// Code generated by 'ccgo fcntl/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o fcntl/fcntl_linux_amd64.go -pkgname fcntl', DO NOT EDIT. + +package fcntl + +import ( + "math" + "reflect" + "sync/atomic" + "unsafe" +) + +var _ = math.Pi +var _ reflect.Kind +var _ atomic.Value +var _ unsafe.Pointer + +const ( + AT_EACCESS = 0x200 // fcntl-linux.h:388:1: + AT_FDCWD = -100 // fcntl-linux.h:371:1: + AT_REMOVEDIR = 0x200 // fcntl-linux.h:375:1: + AT_SYMLINK_FOLLOW = 0x400 // fcntl-linux.h:377:1: + AT_SYMLINK_NOFOLLOW = 0x100 // fcntl-linux.h:374:1: + FAPPEND = 1024 // fcntl-linux.h:304:1: + FASYNC = 8192 // fcntl-linux.h:306:1: + FD_CLOEXEC = 1 // fcntl-linux.h:219:1: + FFSYNC = 1052672 // fcntl-linux.h:305:1: + FNDELAY = 2048 // fcntl-linux.h:308:1: + FNONBLOCK = 2048 // fcntl-linux.h:307:1: + F_DUPFD = 0 // fcntl-linux.h:167:1: + F_DUPFD_CLOEXEC = 1030 // fcntl-linux.h:214:1: + F_EXLCK = 4 // fcntl-linux.h:231:1: + F_GETFD = 1 // fcntl-linux.h:168:1: + F_GETFL = 3 // fcntl-linux.h:170:1: + F_GETLK = 5 // fcntl-linux.h:109:1: + F_GETLK64 = 5 // fcntl.h:29:1: + F_GETOWN = 9 // fcntl-linux.h:180:1: + F_LOCK = 1 // fcntl.h:238:1: + F_OK = 0 // fcntl.h:131:1: + F_RDLCK = 0 // fcntl-linux.h:223:1: + F_SETFD = 2 // fcntl-linux.h:169:1: + F_SETFL = 4 // fcntl-linux.h:171:1: + F_SETLK = 6 // fcntl-linux.h:110:1: + F_SETLK64 = 6 // fcntl.h:30:1: + F_SETLKW = 7 // fcntl-linux.h:111:1: + F_SETLKW64 = 7 // fcntl.h:31:1: + F_SETOWN = 8 // fcntl-linux.h:179:1: + F_SHLCK = 8 // fcntl-linux.h:232:1: + F_TEST = 3 // fcntl.h:240:1: + F_TLOCK = 2 // fcntl.h:239:1: + F_ULOCK = 0 // fcntl.h:237:1: + F_UNLCK = 2 // fcntl-linux.h:225:1: + F_WRLCK = 1 // fcntl-linux.h:224:1: + LOCK_EX = 2 // fcntl-linux.h:238:1: + LOCK_NB = 4 // fcntl-linux.h:239:1: + LOCK_SH = 1 // fcntl-linux.h:237:1: + LOCK_UN = 8 // fcntl-linux.h:241:1: + O_ACCMODE = 0003 // fcntl-linux.h:42:1: + O_APPEND = 02000 // fcntl-linux.h:59:1: + O_ASYNC = 020000 // fcntl-linux.h:72:1: + O_CLOEXEC = 524288 // fcntl-linux.h:144:1: + O_CREAT = 0100 // fcntl-linux.h:47:1: + O_DIRECTORY = 65536 // fcntl-linux.h:142:1: + O_DSYNC = 4096 // fcntl-linux.h:158:1: + O_EXCL = 0200 // fcntl-linux.h:50:1: + O_FSYNC = 1052672 // fcntl-linux.h:70:1: + O_NDELAY = 2048 // fcntl-linux.h:65:1: + O_NOCTTY = 0400 // fcntl-linux.h:53:1: + O_NOFOLLOW = 131072 // fcntl-linux.h:143:1: + O_NONBLOCK = 04000 // fcntl-linux.h:62:1: + O_RDONLY = 00 // fcntl-linux.h:43:1: + O_RDWR = 02 // fcntl-linux.h:45:1: + O_RSYNC = 1052672 // fcntl-linux.h:162:1: + O_SYNC = 04010000 // fcntl-linux.h:68:1: + O_TRUNC = 01000 // fcntl-linux.h:56:1: + O_WRONLY = 01 // fcntl-linux.h:44:1: + POSIX_FADV_DONTNEED = 4 // fcntl-linux.h:321:1: + POSIX_FADV_NOREUSE = 5 // fcntl-linux.h:322:1: + POSIX_FADV_NORMAL = 0 // fcntl-linux.h:317:1: + POSIX_FADV_RANDOM = 1 // fcntl-linux.h:318:1: + POSIX_FADV_SEQUENTIAL = 2 // fcntl-linux.h:319:1: + POSIX_FADV_WILLNEED = 3 // fcntl-linux.h:320:1: + R_OK = 4 // fcntl.h:128:1: + SEEK_CUR = 1 // fcntl.h:138:1: + SEEK_END = 2 // fcntl.h:139:1: + SEEK_SET = 0 // fcntl.h:137:1: + S_IFBLK = 24576 // fcntl.h:83:1: + S_IFCHR = 8192 // fcntl.h:82:1: + S_IFDIR = 16384 // fcntl.h:81:1: + S_IFIFO = 4096 // fcntl.h:86:1: + S_IFLNK = 40960 // fcntl.h:89:1: + S_IFMT = 61440 // fcntl.h:80:1: + S_IFREG = 32768 // fcntl.h:84:1: + S_IFSOCK = 49152 // fcntl.h:92:1: + S_IRGRP = 32 // fcntl.h:111:1: + S_IROTH = 4 // fcntl.h:117:1: + S_IRUSR = 256 // fcntl.h:105:1: + S_IRWXG = 56 // fcntl.h:115:1: + S_IRWXO = 7 // fcntl.h:121:1: + S_IRWXU = 448 // fcntl.h:109:1: + S_ISGID = 1024 // fcntl.h:98:1: + S_ISUID = 2048 // fcntl.h:97:1: + S_ISVTX = 512 // fcntl.h:102:1: + S_IWGRP = 16 // fcntl.h:112:1: + S_IWOTH = 2 // fcntl.h:118:1: + S_IWUSR = 128 // fcntl.h:106:1: + S_IXGRP = 8 // fcntl.h:113:1: + S_IXOTH = 1 // fcntl.h:119:1: + S_IXUSR = 64 // fcntl.h:107:1: + UTIME_NOW = 1073741823 // stat.h:206:1: + UTIME_OMIT = 1073741822 // stat.h:207:1: + W_OK = 2 // fcntl.h:129:1: + X_OK = 1 // fcntl.h:130:1: + X_ATFILE_SOURCE = 1 // features.h:342:1: + X_BITS_ENDIANNESS_H = 1 // endianness.h:2:1: + X_BITS_ENDIAN_H = 1 // endian.h:20:1: + X_BITS_STAT_H = 1 // stat.h:23:1: + X_BITS_TIME64_H = 1 // time64.h:24:1: + X_BITS_TYPESIZES_H = 1 // typesizes.h:24:1: + X_BITS_TYPES_H = 1 // types.h:24:1: + X_DEFAULT_SOURCE = 1 // features.h:227:1: + X_FCNTL_H = 1 // fcntl.h:23:1: + X_FEATURES_H = 1 // features.h:19:1: + X_FILE_OFFSET_BITS = 64 // :25:1: + X_LP64 = 1 // :284:1: + X_MKNOD_VER_LINUX = 0 // stat.h:41:1: + X_POSIX_C_SOURCE = 200809 // features.h:281:1: + X_POSIX_SOURCE = 1 // features.h:279:1: + X_STATBUF_ST_BLKSIZE = 0 // stat.h:172:1: + X_STATBUF_ST_NSEC = 0 // stat.h:175:1: + X_STATBUF_ST_RDEV = 0 // stat.h:173:1: + X_STAT_VER = 1 // stat.h:44:1: + X_STAT_VER_KERNEL = 0 // stat.h:37:1: + X_STAT_VER_LINUX = 1 // stat.h:38:1: + X_STDC_PREDEF_H = 1 // :162:1: + X_STRUCT_TIMESPEC = 1 // struct_timespec.h:3:1: + X_SYS_CDEFS_H = 1 // cdefs.h:19:1: + Linux = 1 // :231:1: + Unix = 1 // :177:1: +) + +type Ptrdiff_t = int64 /* :3:26 */ + +type Size_t = uint64 /* :9:23 */ + +type Wchar_t = int32 /* :15:24 */ + +type X__int128_t = struct { + Flo int64 + Fhi int64 +} /* :21:43 */ // must match modernc.org/mathutil.Int128 +type X__uint128_t = struct { + Flo uint64 + Fhi uint64 +} /* :22:44 */ // must match modernc.org/mathutil.Int128 + +type X__builtin_va_list = uintptr /* :46:14 */ +type X__float128 = float64 /* :47:21 */ + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// POSIX Standard: 6.5 File Control Operations + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// These are defined by the user (or the compiler) +// to specify the desired environment: +// +// __STRICT_ANSI__ ISO Standard C. +// _ISOC99_SOURCE Extensions to ISO C89 from ISO C99. +// _ISOC11_SOURCE Extensions to ISO C99 from ISO C11. +// _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X. +// __STDC_WANT_LIB_EXT2__ +// Extensions to ISO C99 from TR 27431-2:2010. +// __STDC_WANT_IEC_60559_BFP_EXT__ +// Extensions to ISO C11 from TS 18661-1:2014. +// __STDC_WANT_IEC_60559_FUNCS_EXT__ +// Extensions to ISO C11 from TS 18661-4:2015. +// __STDC_WANT_IEC_60559_TYPES_EXT__ +// Extensions to ISO C11 from TS 18661-3:2015. +// +// _POSIX_SOURCE IEEE Std 1003.1. +// _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2; +// if >=199309L, add IEEE Std 1003.1b-1993; +// if >=199506L, add IEEE Std 1003.1c-1995; +// if >=200112L, all of IEEE 1003.1-2004 +// if >=200809L, all of IEEE 1003.1-2008 +// _XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if +// Single Unix conformance is wanted, to 600 for the +// sixth revision, to 700 for the seventh revision. +// _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions. +// _LARGEFILE_SOURCE Some more functions for correct standard I/O. +// _LARGEFILE64_SOURCE Additional functionality from LFS for large files. +// _FILE_OFFSET_BITS=N Select default filesystem interface. +// _ATFILE_SOURCE Additional *at interfaces. +// _GNU_SOURCE All of the above, plus GNU extensions. +// _DEFAULT_SOURCE The default set of features (taking precedence over +// __STRICT_ANSI__). +// +// _FORTIFY_SOURCE Add security hardening to many library functions. +// Set to 1 or 2; 2 performs stricter checks than 1. +// +// _REENTRANT, _THREAD_SAFE +// Obsolete; equivalent to _POSIX_C_SOURCE=199506L. +// +// The `-ansi' switch to the GNU C compiler, and standards conformance +// options such as `-std=c99', define __STRICT_ANSI__. If none of +// these are defined, or if _DEFAULT_SOURCE is defined, the default is +// to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to +// 200809L, as well as enabling miscellaneous functions from BSD and +// SVID. If more than one of these are defined, they accumulate. For +// example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together +// give you ISO C, 1003.1, and 1003.2, but nothing else. +// +// These are defined by this file and are used by the +// header files to decide what to declare or define: +// +// __GLIBC_USE (F) Define things from feature set F. This is defined +// to 1 or 0; the subsequent macros are either defined +// or undefined, and those tests should be moved to +// __GLIBC_USE. +// __USE_ISOC11 Define ISO C11 things. +// __USE_ISOC99 Define ISO C99 things. +// __USE_ISOC95 Define ISO C90 AMD1 (C95) things. +// __USE_ISOCXX11 Define ISO C++11 things. +// __USE_POSIX Define IEEE Std 1003.1 things. +// __USE_POSIX2 Define IEEE Std 1003.2 things. +// __USE_POSIX199309 Define IEEE Std 1003.1, and .1b things. +// __USE_POSIX199506 Define IEEE Std 1003.1, .1b, .1c and .1i things. +// __USE_XOPEN Define XPG things. +// __USE_XOPEN_EXTENDED Define X/Open Unix things. +// __USE_UNIX98 Define Single Unix V2 things. +// __USE_XOPEN2K Define XPG6 things. +// __USE_XOPEN2KXSI Define XPG6 XSI things. +// __USE_XOPEN2K8 Define XPG7 things. +// __USE_XOPEN2K8XSI Define XPG7 XSI things. +// __USE_LARGEFILE Define correct standard I/O things. +// __USE_LARGEFILE64 Define LFS things with separate names. +// __USE_FILE_OFFSET64 Define 64bit interface as default. +// __USE_MISC Define things from 4.3BSD or System V Unix. +// __USE_ATFILE Define *at interfaces and AT_* constants for them. +// __USE_GNU Define GNU extensions. +// __USE_FORTIFY_LEVEL Additional security measures used, according to level. +// +// The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are +// defined by this file unconditionally. `__GNU_LIBRARY__' is provided +// only for compatibility. All new code should use the other symbols +// to test for features. +// +// All macros listed above as possibly being defined by this file are +// explicitly undefined if they are not explicitly defined. +// Feature-test macros that are not defined by the user or compiler +// but are implied by the other feature-test macros defined (or by the +// lack of any definitions) are defined by the file. +// +// ISO C feature test macros depend on the definition of the macro +// when an affected header is included, not when the first system +// header is included, and so they are handled in +// , which does not have a multiple include +// guard. Feature test macros that can be handled from the first +// system header included are handled here. + +// Undefine everything, so we get a clean slate. + +// Suppress kernel-name space pollution unless user expressedly asks +// for it. + +// Convenience macro to test the version of gcc. +// Use like this: +// #if __GNUC_PREREQ (2,8) +// ... code requiring gcc 2.8 or later ... +// #endif +// Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was +// added in 2.0. + +// Similarly for clang. Features added to GCC after version 4.2 may +// or may not also be available in clang, and clang's definitions of +// __GNUC(_MINOR)__ are fixed at 4 and 2 respectively. Not all such +// features can be queried via __has_extension/__has_feature. + +// Whether to use feature set F. + +// _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for +// _DEFAULT_SOURCE. If _DEFAULT_SOURCE is present we do not +// issue a warning; the expectation is that the source is being +// transitioned to use the new macro. + +// If _GNU_SOURCE was defined by the user, turn on all the other features. + +// If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined, +// define _DEFAULT_SOURCE. + +// This is to enable the ISO C2X extension. + +// This is to enable the ISO C11 extension. + +// This is to enable the ISO C99 extension. + +// This is to enable the ISO C90 Amendment 1:1995 extension. + +// If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE +// is defined, use POSIX.1-2008 (or another version depending on +// _XOPEN_SOURCE). + +// Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be +// defined in all multithreaded code. GNU libc has not required this +// for many years. We now treat them as compatibility synonyms for +// _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with +// comprehensive support for multithreaded code. Using them never +// lowers the selected level of POSIX conformance, only raises it. + +// The function 'gets' existed in C89, but is impossible to use +// safely. It has been removed from ISO C11 and ISO C++14. Note: for +// compatibility with various implementations of , this test +// must consider only the value of __cplusplus when compiling C++. + +// GNU formerly extended the scanf functions with modified format +// specifiers %as, %aS, and %a[...] that allocate a buffer for the +// input using malloc. This extension conflicts with ISO C99, which +// defines %a as a standalone format specifier that reads a floating- +// point number; moreover, POSIX.1-2008 provides the same feature +// using the modifier letter 'm' instead (%ms, %mS, %m[...]). +// +// We now follow C99 unless GNU extensions are active and the compiler +// is specifically in C89 or C++98 mode (strict or not). For +// instance, with GCC, -std=gnu11 will have C99-compliant scanf with +// or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the +// old extension. + +// Get definitions of __STDC_* predefined macros, if the compiler has +// not preincluded this header automatically. +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// This macro indicates that the installed library is the GNU C Library. +// For historic reasons the value now is 6 and this will stay from now +// on. The use of this variable is deprecated. Use __GLIBC__ and +// __GLIBC_MINOR__ now (see below) when you want to test for a specific +// GNU C library version and use the values in to get +// the sonames of the shared libraries. + +// Major and minor version number of the GNU C library package. Use +// these macros to test for features in specific releases. + +// This is here only because every header file already includes this one. +// Copyright (C) 1992-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// We are almost always included from features.h. + +// The GNU libc does not support any K&R compilers or the traditional mode +// of ISO C compilers anymore. Check for some of the combinations not +// anymore supported. + +// Some user header file might have defined this before. + +// All functions, except those with callbacks or those that +// synchronize memory, are leaf functions. + +// GCC can always grok prototypes. For C++ programs we add throw() +// to help it optimize the function calls. But this works only with +// gcc 2.8.x and egcs. For gcc 3.2 and up we even mark C functions +// as non-throwing using a function attribute since programs can use +// the -fexceptions options for C code as well. + +// Compilers that are not clang may object to +// #if defined __clang__ && __has_extension(...) +// even though they do not need to evaluate the right-hand side of the &&. + +// These two macros are not used in glibc anymore. They are kept here +// only because some other projects expect the macros to be defined. + +// For these things, GCC behaves the ANSI way normally, +// and the non-ANSI way under -traditional. + +// This is not a typedef so `const __ptr_t' does the right thing. + +// C++ needs to know that types and declarations are C, not C++. + +// Fortify support. + +// Support for flexible arrays. +// Headers that should use flexible arrays only if they're "real" +// (e.g. only if they won't affect sizeof()) should test +// #if __glibc_c99_flexarr_available. + +// __asm__ ("xyz") is used throughout the headers to rename functions +// at the assembly language level. This is wrapped by the __REDIRECT +// macro, in order to support compilers that can do this some other +// way. When compilers don't support asm-names at all, we have to do +// preprocessor tricks instead (which don't have exactly the right +// semantics, but it's the best we can do). +// +// Example: +// int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid); + +// +// #elif __SOME_OTHER_COMPILER__ +// +// # define __REDIRECT(name, proto, alias) name proto; _Pragma("let " #name " = " #alias) + +// GCC has various useful declarations that can be made with the +// `__attribute__' syntax. All of the ways we use this do fine if +// they are omitted for compilers that don't understand it. + +// At some point during the gcc 2.96 development the `malloc' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// Tell the compiler which arguments to an allocation function +// indicate the size of the allocation. + +// At some point during the gcc 2.96 development the `pure' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// This declaration tells the compiler that the value is constant. + +// At some point during the gcc 3.1 development the `used' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// Since version 3.2, gcc allows marking deprecated functions. + +// Since version 4.5, gcc also allows one to specify the message printed +// when a deprecated function is used. clang claims to be gcc 4.2, but +// may also support this feature. + +// At some point during the gcc 2.8 development the `format_arg' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. +// If several `format_arg' attributes are given for the same function, in +// gcc-3.0 and older, all but the last one are ignored. In newer gccs, +// all designated arguments are considered. + +// At some point during the gcc 2.97 development the `strfmon' format +// attribute for functions was introduced. We don't want to use it +// unconditionally (although this would be possible) since it +// generates warnings. + +// The nonull function attribute allows to mark pointer parameters which +// must not be NULL. + +// If fortification mode, we warn about unused results of certain +// function calls which can lead to problems. + +// Forces a function to be always inlined. +// The Linux kernel defines __always_inline in stddef.h (283d7573), and +// it conflicts with this definition. Therefore undefine it first to +// allow either header to be included first. + +// Associate error messages with the source location of the call site rather +// than with the source location inside the function. + +// GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99 +// inline semantics, unless -fgnu89-inline is used. Using __GNUC_STDC_INLINE__ +// or __GNUC_GNU_INLINE is not a good enough check for gcc because gcc versions +// older than 4.3 may define these macros and still not guarantee GNU inlining +// semantics. +// +// clang++ identifies itself as gcc-4.2, but has support for GNU inlining +// semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and +// __GNUC_GNU_INLINE__ macro definitions. + +// GCC 4.3 and above allow passing all anonymous arguments of an +// __extern_always_inline function to some other vararg function. + +// It is possible to compile containing GCC extensions even if GCC is +// run in pedantic mode if the uses are carefully marked using the +// `__extension__' keyword. But this is not generally available before +// version 2.8. + +// __restrict is known in EGCS 1.2 and above. + +// ISO C99 also allows to declare arrays as non-overlapping. The syntax is +// array_name[restrict] +// GCC 3.1 supports this. + +// Describes a char array whose address can safely be passed as the first +// argument to strncpy and strncat, as the char array is not necessarily +// a NUL-terminated string. + +// Undefine (also defined in libc-symbols.h). +// Copies attributes from the declaration or type referenced by +// the argument. + +// Determine the wordsize from the preprocessor defines. + +// Both x86-64 and x32 use the 64-bit system call interface. +// Properties of long double type. ldbl-96 version. +// Copyright (C) 2016-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// long double is distinct from double, so there is nothing to +// define here. + +// __glibc_macro_warning (MESSAGE) issues warning MESSAGE. This is +// intended for use in preprocessor macros. +// +// Note: MESSAGE must be a _single_ string; concatenation of string +// literals is not supported. + +// Generic selection (ISO C11) is a C-only feature, available in GCC +// since version 4.9. Previous versions do not provide generic +// selection, even though they might set __STDC_VERSION__ to 201112L, +// when in -std=c11 mode. Thus, we must check for !defined __GNUC__ +// when testing __STDC_VERSION__ for generic selection support. +// On the other hand, Clang also defines __GNUC__, so a clang-specific +// check is required to enable the use of generic selection. + +// If we don't have __REDIRECT, prototypes will be missing if +// __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64]. + +// Decide whether we can define 'extern inline' functions in headers. + +// This is here only because every header file already includes this one. +// Get the definitions of all the appropriate `__stub_FUNCTION' symbols. +// contains `#define __stub_FUNCTION' when FUNCTION is a stub +// that will always return failure (and set errno to ENOSYS). +// This file is automatically generated. +// This file selects the right generated file of `__stub_FUNCTION' macros +// based on the architecture being compiled for. + +// This file is automatically generated. +// It defines a symbol `__stub_FUNCTION' for each function +// in the C library which is a stub, meaning it will fail +// every time called, usually setting errno to ENOSYS. + +// This must be early so can define types winningly. + +// Get __mode_t, __dev_t and __off_t . +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Determine the wordsize from the preprocessor defines. + +// Both x86-64 and x32 use the 64-bit system call interface. +// Bit size of the time_t type at glibc build time, x86-64 and x32 case. +// Copyright (C) 2018-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// For others, time size is word size. + +// Convenience types. +type X__u_char = uint8 /* types.h:31:23 */ +type X__u_short = uint16 /* types.h:32:28 */ +type X__u_int = uint32 /* types.h:33:22 */ +type X__u_long = uint64 /* types.h:34:27 */ + +// Fixed-size types, underlying types depend on word size and compiler. +type X__int8_t = int8 /* types.h:37:21 */ +type X__uint8_t = uint8 /* types.h:38:23 */ +type X__int16_t = int16 /* types.h:39:26 */ +type X__uint16_t = uint16 /* types.h:40:28 */ +type X__int32_t = int32 /* types.h:41:20 */ +type X__uint32_t = uint32 /* types.h:42:22 */ +type X__int64_t = int64 /* types.h:44:25 */ +type X__uint64_t = uint64 /* types.h:45:27 */ + +// Smallest types with at least a given width. +type X__int_least8_t = X__int8_t /* types.h:52:18 */ +type X__uint_least8_t = X__uint8_t /* types.h:53:19 */ +type X__int_least16_t = X__int16_t /* types.h:54:19 */ +type X__uint_least16_t = X__uint16_t /* types.h:55:20 */ +type X__int_least32_t = X__int32_t /* types.h:56:19 */ +type X__uint_least32_t = X__uint32_t /* types.h:57:20 */ +type X__int_least64_t = X__int64_t /* types.h:58:19 */ +type X__uint_least64_t = X__uint64_t /* types.h:59:20 */ + +// quad_t is also 64 bits. +type X__quad_t = int64 /* types.h:63:18 */ +type X__u_quad_t = uint64 /* types.h:64:27 */ + +// Largest integral types. +type X__intmax_t = int64 /* types.h:72:18 */ +type X__uintmax_t = uint64 /* types.h:73:27 */ + +// The machine-dependent file defines __*_T_TYPE +// macros for each of the OS types we define below. The definitions +// of those macros must use the following macros for underlying types. +// We define __S_TYPE and __U_TYPE for the signed and unsigned +// variants of each of the following integer types on this machine. +// +// 16 -- "natural" 16-bit type (always short) +// 32 -- "natural" 32-bit type (always int) +// 64 -- "natural" 64-bit type (long or long long) +// LONG32 -- 32-bit type, traditionally long +// QUAD -- 64-bit type, traditionally long long +// WORD -- natural type of __WORDSIZE bits (int or long) +// LONGWORD -- type of __WORDSIZE bits, traditionally long +// +// We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the +// conventional uses of `long' or `long long' type modifiers match the +// types we define, even when a less-adorned type would be the same size. +// This matters for (somewhat) portably writing printf/scanf formats for +// these types, where using the appropriate l or ll format modifiers can +// make the typedefs and the formats match up across all GNU platforms. If +// we used `long' when it's 64 bits where `long long' is expected, then the +// compiler would warn about the formats not matching the argument types, +// and the programmer changing them to shut up the compiler would break the +// program's portability. +// +// Here we assume what is presently the case in all the GCC configurations +// we support: long long is always 64 bits, long is always word/address size, +// and int is always 32 bits. + +// No need to mark the typedef with __extension__. +// bits/typesizes.h -- underlying types for *_t. Linux/x86-64 version. +// Copyright (C) 2012-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// See for the meaning of these macros. This file exists so +// that need not vary across different GNU platforms. + +// X32 kernel interface is 64-bit. + +// Tell the libc code that off_t and off64_t are actually the same type +// for all ABI purposes, even if possibly expressed as different base types +// for C type-checking purposes. + +// Same for ino_t and ino64_t. + +// And for __rlim_t and __rlim64_t. + +// And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t. + +// Number of descriptors that can fit in an `fd_set'. + +// bits/time64.h -- underlying types for __time64_t. Generic version. +// Copyright (C) 2018-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Define __TIME64_T_TYPE so that it is always a 64-bit type. + +// If we already have 64-bit time type then use it. + +type X__dev_t = uint64 /* types.h:145:25 */ // Type of device numbers. +type X__uid_t = uint32 /* types.h:146:25 */ // Type of user identifications. +type X__gid_t = uint32 /* types.h:147:25 */ // Type of group identifications. +type X__ino_t = uint64 /* types.h:148:25 */ // Type of file serial numbers. +type X__ino64_t = uint64 /* types.h:149:27 */ // Type of file serial numbers (LFS). +type X__mode_t = uint32 /* types.h:150:26 */ // Type of file attribute bitmasks. +type X__nlink_t = uint64 /* types.h:151:27 */ // Type of file link counts. +type X__off_t = int64 /* types.h:152:25 */ // Type of file sizes and offsets. +type X__off64_t = int64 /* types.h:153:27 */ // Type of file sizes and offsets (LFS). +type X__pid_t = int32 /* types.h:154:25 */ // Type of process identifications. +type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs. +type X__clock_t = int64 /* types.h:156:27 */ // Type of CPU usage counts. +type X__rlim_t = uint64 /* types.h:157:26 */ // Type for resource measurement. +type X__rlim64_t = uint64 /* types.h:158:28 */ // Type for resource measurement (LFS). +type X__id_t = uint32 /* types.h:159:24 */ // General type for IDs. +type X__time_t = int64 /* types.h:160:26 */ // Seconds since the Epoch. +type X__useconds_t = uint32 /* types.h:161:30 */ // Count of microseconds. +type X__suseconds_t = int64 /* types.h:162:31 */ // Signed count of microseconds. + +type X__daddr_t = int32 /* types.h:164:27 */ // The type of a disk address. +type X__key_t = int32 /* types.h:165:25 */ // Type of an IPC key. + +// Clock ID used in clock and timer functions. +type X__clockid_t = int32 /* types.h:168:29 */ + +// Timer ID returned by `timer_create'. +type X__timer_t = uintptr /* types.h:171:12 */ + +// Type to represent block size. +type X__blksize_t = int64 /* types.h:174:29 */ + +// Types from the Large File Support interface. + +// Type to count number of disk blocks. +type X__blkcnt_t = int64 /* types.h:179:28 */ +type X__blkcnt64_t = int64 /* types.h:180:30 */ + +// Type to count file system blocks. +type X__fsblkcnt_t = uint64 /* types.h:183:30 */ +type X__fsblkcnt64_t = uint64 /* types.h:184:32 */ + +// Type to count file system nodes. +type X__fsfilcnt_t = uint64 /* types.h:187:30 */ +type X__fsfilcnt64_t = uint64 /* types.h:188:32 */ + +// Type of miscellaneous file system fields. +type X__fsword_t = int64 /* types.h:191:28 */ + +type X__ssize_t = int64 /* types.h:193:27 */ // Type of a byte count, or error. + +// Signed long type used in system calls. +type X__syscall_slong_t = int64 /* types.h:196:33 */ +// Unsigned long type used in system calls. +type X__syscall_ulong_t = uint64 /* types.h:198:33 */ + +// These few don't really vary by system, they always correspond +// +// to one of the other defined types. +type X__loff_t = X__off64_t /* types.h:202:19 */ // Type of file sizes and offsets (LFS). +type X__caddr_t = uintptr /* types.h:203:14 */ + +// Duplicates info from stdint.h but this is used in unistd.h. +type X__intptr_t = int64 /* types.h:206:25 */ + +// Duplicate info from sys/socket.h. +type X__socklen_t = uint32 /* types.h:209:23 */ + +// C99: An integer type that can be accessed as an atomic entity, +// +// even in the presence of asynchronous interrupts. +// It is not currently necessary for this to be machine-specific. +type X__sig_atomic_t = int32 /* types.h:214:13 */ + +// Seconds since the Epoch, visible to user code when time_t is too +// narrow only for consistency with the old way of widening too-narrow +// types. User code should never use __time64_t. + +// Get the definitions of O_*, F_*, FD_*: all the +// numbers and flag bits for `open', `fcntl', et al. +// O_*, F_*, FD_* bit values for Linux/x86. +// Copyright (C) 2001-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Not necessary, we always have 64-bit offsets. + +type Flock = struct { + Fl_type int16 + Fl_whence int16 + F__ccgo_pad1 [4]byte + Fl_start X__off64_t + Fl_len X__off64_t + Fl_pid X__pid_t + F__ccgo_pad2 [4]byte +} /* fcntl.h:35:1 */ + +// Include generic Linux declarations. +// O_*, F_*, FD_* bit values for Linux. +// Copyright (C) 2001-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// This file contains shared definitions between Linux architectures +// and is included by to declare them. The various +// #ifndef cases allow the architecture specific file to define those +// values with different values. +// +// A minimal contains just: +// +// struct flock {...} +// #ifdef __USE_LARGEFILE64 +// struct flock64 {...} +// #endif +// #include + +// open/fcntl. + +// open file description locks. +// +// Usually record locks held by a process are released on *any* close and are +// not inherited across a fork. +// +// These cmd values will set locks that conflict with process-associated record +// locks, but are "owned" by the opened file description, not the process. +// This means that they are inherited across fork or clone with CLONE_FILES +// like BSD (flock) locks, and they are only released automatically when the +// last reference to the the file description against which they were acquired +// is put. + +// For now, Linux has no separate synchronicity options for read +// operations. We define O_RSYNC therefore as the same as O_SYNC +// since this is a superset. + +// Values for the second argument to `fcntl'. + +// For F_[GET|SET]FD. + +// For posix fcntl() and `l_type' field of a `struct flock' for lockf(). + +// For old implementation of BSD flock. + +// Operations for BSD flock, also used by the kernel implementation. + +// Define some more compatibility macros to be backward compatible with +// BSD systems which did not managed to hide these kernel macros. + +// Advise to `posix_fadvise'. + +// Values for `*at' functions. + +// Detect if open needs mode as a third argument (or for openat as a fourth +// argument). + +// POSIX.1-2001 specifies that these types are defined by . +// +// Earlier POSIX standards permitted any type ending in `_t' to be defined +// by any POSIX header, so we don't conditionalize the definitions here. +type Mode_t = X__mode_t /* fcntl.h:50:18 */ + +type Off_t = X__off64_t /* fcntl.h:58:19 */ + +type Pid_t = X__pid_t /* fcntl.h:69:17 */ + +// For XPG all symbols from should also be available. +// NB: Include guard matches what uses. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Endian macros for string.h functions +// Copyright (C) 1992-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Definitions for byte order, according to significance of bytes, +// from low addresses to high addresses. The value is what you get by +// putting '4' in the most significant byte, '3' in the second most +// significant byte, '2' in the second least significant byte, and '1' +// in the least significant byte, and then writing down one digit for +// each byte, starting with the byte at the lowest address at the left, +// and proceeding to the byte with the highest address at the right. + +// This file defines `__BYTE_ORDER' for the particular machine. + +// i386/x86_64 are little-endian. + +// Some machines may need to use a different endianness for floating point +// values. + +// POSIX.1b structure for a time value. This is like a `struct timeval' but +// +// has nanoseconds instead of microseconds. +type Timespec = struct { + Ftv_sec X__time_t + Ftv_nsec X__syscall_slong_t +} /* struct_timespec.h:10:1 */ + +// Copyright (C) 1999-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Versions of the `struct stat' data structure. + +// x86-64 versions of the `xmknod' interface. + +type Stat = struct { + Fst_dev X__dev_t + Fst_ino X__ino_t + Fst_nlink X__nlink_t + Fst_mode X__mode_t + Fst_uid X__uid_t + Fst_gid X__gid_t + F__pad0 int32 + Fst_rdev X__dev_t + Fst_size X__off_t + Fst_blksize X__blksize_t + Fst_blocks X__blkcnt_t + Fst_atim struct { + Ftv_sec X__time_t + Ftv_nsec X__syscall_slong_t + } + Fst_mtim struct { + Ftv_sec X__time_t + Ftv_nsec X__syscall_slong_t + } + Fst_ctim struct { + Ftv_sec X__time_t + Ftv_nsec X__syscall_slong_t + } + F__glibc_reserved [3]X__syscall_slong_t +} /* stat.h:46:1 */ + +// Define some inlines helping to catch common problems. + +var _ int8 /* gen.c:2:13: */ diff --git a/vendor/modernc.org/libc/fts/capi_illumos_amd64.go b/vendor/modernc.org/libc/fts/capi_illumos_amd64.go new file mode 100644 index 000000000..d83fad159 --- /dev/null +++ b/vendor/modernc.org/libc/fts/capi_illumos_amd64.go @@ -0,0 +1,5 @@ +// Code generated by 'ccgo fts/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o fts/fts_illumos_amd64.go -pkgname fts', DO NOT EDIT. + +package fts + +var CAPI = map[string]struct{}{} diff --git a/vendor/modernc.org/libc/fts/capi_linux_loong64.go b/vendor/modernc.org/libc/fts/capi_linux_loong64.go new file mode 100644 index 000000000..d782e0c34 --- /dev/null +++ b/vendor/modernc.org/libc/fts/capi_linux_loong64.go @@ -0,0 +1,5 @@ +// Code generated by 'ccgo fts/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o fts/fts_linux_loong64.go -pkgname fts', DO NOT EDIT. + +package fts + +var CAPI = map[string]struct{}{} diff --git a/vendor/modernc.org/libc/fts/capi_linux_mips64le.go b/vendor/modernc.org/libc/fts/capi_linux_mips64le.go new file mode 100644 index 000000000..5dc389ba0 --- /dev/null +++ b/vendor/modernc.org/libc/fts/capi_linux_mips64le.go @@ -0,0 +1,5 @@ +// Code generated by 'ccgo fts/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o fts/fts_linux_amd64.go -pkgname fts', DO NOT EDIT. + +package fts + +var CAPI = map[string]struct{}{} diff --git a/vendor/modernc.org/libc/fts/fts_illumos_amd64.go b/vendor/modernc.org/libc/fts/fts_illumos_amd64.go new file mode 100644 index 000000000..a36cc52c3 --- /dev/null +++ b/vendor/modernc.org/libc/fts/fts_illumos_amd64.go @@ -0,0 +1,3038 @@ +// Code generated by 'ccgo fts/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o fts/fts_illumos_amd64.go -pkgname fts', DO NOT EDIT. + +package fts + +import ( + "math" + "reflect" + "sync/atomic" + "unsafe" +) + +var _ = math.Pi +var _ reflect.Kind +var _ atomic.Value +var _ unsafe.Pointer + +const ( + CLOCKS_PER_SEC = 1000000 // time_iso.h:78:1: + CLOCK_HIGHRES = 4 // time_impl.h:126:1: + CLOCK_MONOTONIC = 4 // time_impl.h:124:1: + CLOCK_PROCESS_CPUTIME_ID = 5 // time_impl.h:125:1: + CLOCK_PROF = 2 // time_impl.h:127:1: + CLOCK_REALTIME = 3 // time_impl.h:123:1: + CLOCK_THREAD_CPUTIME_ID = 2 // time_impl.h:122:1: + CLOCK_VIRTUAL = 1 // time_impl.h:121:1: + DST_AUST = 2 // time.h:115:1: + DST_AUSTALT = 10 // time.h:123:1: + DST_CAN = 6 // time.h:119:1: + DST_EET = 5 // time.h:118:1: + DST_GB = 7 // time.h:120:1: + DST_MET = 4 // time.h:117:1: + DST_NONE = 0 // time.h:113:1: + DST_RUM = 8 // time.h:121:1: + DST_TUR = 9 // time.h:122:1: + DST_USA = 1 // time.h:114:1: + DST_WET = 3 // time.h:116:1: + FD_SETSIZE = 65536 // select.h:88:1: + FTS_AGAIN = 1 // fts.h:103:1: + FTS_COMFOLLOW = 0x0001 // fts.h:48:1: + FTS_D = 1 // fts.h:84:1: + FTS_DC = 2 // fts.h:85:1: + FTS_DEFAULT = 3 // fts.h:86:1: + FTS_DNR = 4 // fts.h:87:1: + FTS_DONTCHDIR = 0x01 // fts.h:99:1: + FTS_DOT = 5 // fts.h:88:1: + FTS_DP = 6 // fts.h:89:1: + FTS_ERR = 7 // fts.h:90:1: + FTS_F = 8 // fts.h:91:1: + FTS_FOLLOW = 2 // fts.h:104:1: + FTS_INIT = 9 // fts.h:92:1: + FTS_LOGICAL = 0x0002 // fts.h:49:1: + FTS_MAXLEVEL = 0x7fffffff // fts.h:81:1: + FTS_NAMEONLY = 0x1000 // fts.h:57:1: + FTS_NOCHDIR = 0x0004 // fts.h:50:1: + FTS_NOINSTR = 3 // fts.h:105:1: + FTS_NOSTAT = 0x0008 // fts.h:51:1: + FTS_NS = 10 // fts.h:93:1: + FTS_NSOK = 11 // fts.h:94:1: + FTS_OPTIONMASK = 0x00ff // fts.h:55:1: + FTS_PHYSICAL = 0x0010 // fts.h:52:1: + FTS_ROOTLEVEL = 0 // fts.h:80:1: + FTS_ROOTPARENTLEVEL = -1 // fts.h:79:1: + FTS_SEEDOT = 0x0020 // fts.h:53:1: + FTS_SKIP = 4 // fts.h:106:1: + FTS_SL = 12 // fts.h:95:1: + FTS_SLNONE = 13 // fts.h:96:1: + FTS_STOP = 0x2000 // fts.h:58:1: + FTS_SYMFOLLOW = 0x02 // fts.h:100:1: + FTS_XDEV = 0x0040 // fts.h:54:1: + ITIMER_PROF = 2 // time.h:201:1: + ITIMER_REAL = 0 // time.h:199:1: + ITIMER_REALPROF = 3 // time.h:204:1: + ITIMER_VIRTUAL = 1 // time.h:200:1: + MICROSEC = 1000000 // time.h:246:1: + MILLISEC = 1000 // time.h:245:1: + NANOSEC = 1000000000 // time.h:247:1: + NBBY = 8 // select.h:103:1: + P_MYID = -1 // types.h:632:1: + REG_LABEL_BP = 2 // machtypes.h:44:1: + REG_LABEL_MAX = 8 // machtypes.h:51:1: + REG_LABEL_PC = 0 // machtypes.h:42:1: + REG_LABEL_R12 = 4 // machtypes.h:47:1: + REG_LABEL_R13 = 5 // machtypes.h:48:1: + REG_LABEL_R14 = 6 // machtypes.h:49:1: + REG_LABEL_R15 = 7 // machtypes.h:50:1: + REG_LABEL_RBX = 3 // machtypes.h:46:1: + REG_LABEL_SP = 1 // machtypes.h:43:1: + SEC = 1 // time.h:244:1: + S_ENFMT = 1024 // stat.h:426:1: + S_IAMB = 0x1FF // stat.h:406:1: + S_IEXEC = 00100 // stat.h:425:1: + S_IFBLK = 0x6000 // stat.h:414:1: + S_IFCHR = 0x2000 // stat.h:408:1: + S_IFDIR = 0x4000 // stat.h:409:1: + S_IFDOOR = 0xD000 // stat.h:418:1: + S_IFIFO = 0x1000 // stat.h:407:1: + S_IFLNK = 0xA000 // stat.h:416:1: + S_IFMT = 0xF000 // stat.h:405:1: + S_IFNAM = 0x5000 // stat.h:411:1: + S_IFPORT = 0xE000 // stat.h:419:1: + S_IFREG = 0x8000 // stat.h:415:1: + S_IFSOCK = 0xC000 // stat.h:417:1: + S_INSEM = 0x1 // stat.h:412:1: + S_INSHD = 0x2 // stat.h:413:1: + S_IREAD = 00400 // stat.h:423:1: + S_IRGRP = 00040 // stat.h:435:1: + S_IROTH = 00004 // stat.h:439:1: + S_IRUSR = 00400 // stat.h:431:1: + S_IRWXG = 00070 // stat.h:434:1: + S_IRWXO = 00007 // stat.h:438:1: + S_IRWXU = 00700 // stat.h:430:1: + S_ISGID = 0x400 // stat.h:421:1: + S_ISUID = 0x800 // stat.h:420:1: + S_ISVTX = 0x200 // stat.h:422:1: + S_IWGRP = 00020 // stat.h:436:1: + S_IWOTH = 00002 // stat.h:440:1: + S_IWRITE = 00200 // stat.h:424:1: + S_IWUSR = 00200 // stat.h:432:1: + S_IXGRP = 00010 // stat.h:437:1: + S_IXOTH = 00001 // stat.h:441:1: + S_IXUSR = 00100 // stat.h:433:1: + TIMER_ABSTIME = 0x1 // time_impl.h:134:1: + TIMER_RELTIME = 0x0 // time_impl.h:133:1: + TIME_UTC = 0x1 // time.h:306:1: + UTIME_NOW = -1 // stat.h:478:1: + UTIME_OMIT = -2 // stat.h:479:1: + X_ALIGNMENT_REQUIRED = 1 // isa_defs.h:262:1: + X_BIT_FIELDS_LTOH = 0 // isa_defs.h:245:1: + X_BOOL_ALIGNMENT = 1 // isa_defs.h:248:1: + X_CHAR_ALIGNMENT = 1 // isa_defs.h:249:1: + X_CHAR_IS_SIGNED = 0 // isa_defs.h:247:1: + X_CLOCKID_T = 0 // types.h:568:1: + X_CLOCK_T = 0 // types.h:563:1: + X_COND_MAGIC = 0x4356 // types.h:426:1: + X_DMA_USES_PHYSADDR = 0 // isa_defs.h:281:1: + X_DONT_USE_1275_GENERIC_NAMES = 0 // isa_defs.h:287:1: + X_DOUBLE_ALIGNMENT = 8 // isa_defs.h:256:1: + X_DOUBLE_COMPLEX_ALIGNMENT = 8 // isa_defs.h:257:1: + X_DTRACE_VERSION = 1 // feature_tests.h:490:1: + X_FILE_OFFSET_BITS = 64 // :25:1: + X_FIRMWARE_NEEDS_FDISK = 0 // isa_defs.h:282:1: + X_FLOAT_ALIGNMENT = 4 // isa_defs.h:252:1: + X_FLOAT_COMPLEX_ALIGNMENT = 4 // isa_defs.h:253:1: + X_FTS_H = 0 // fts.h:31:1: + X_HAVE_CPUID_INSN = 0 // isa_defs.h:288:1: + X_IEEE_754 = 0 // isa_defs.h:246:1: + X_INT64_TYPE = 0 // int_types.h:82:1: + X_INT_ALIGNMENT = 4 // isa_defs.h:251:1: + X_ISO_CPP_14882_1998 = 0 // feature_tests.h:466:1: + X_ISO_C_9899_1999 = 0 // feature_tests.h:472:1: + X_ISO_C_9899_2011 = 0 // feature_tests.h:478:1: + X_ISO_TIME_ISO_H = 0 // time_iso.h:46:1: + X_LARGEFILE64_SOURCE = 1 // feature_tests.h:231:1: + X_LARGEFILE_SOURCE = 1 // feature_tests.h:235:1: + X_LITTLE_ENDIAN = 0 // isa_defs.h:242:1: + X_LOCALE_T = 0 // time.h:291:1: + X_LONGLONG_TYPE = 0 // feature_tests.h:412:1: + X_LONG_ALIGNMENT = 8 // isa_defs.h:254:1: + X_LONG_DOUBLE_ALIGNMENT = 16 // isa_defs.h:258:1: + X_LONG_DOUBLE_COMPLEX_ALIGNMENT = 16 // isa_defs.h:259:1: + X_LONG_LONG_ALIGNMENT = 8 // isa_defs.h:255:1: + X_LONG_LONG_ALIGNMENT_32 = 4 // isa_defs.h:268:1: + X_LONG_LONG_LTOH = 0 // isa_defs.h:244:1: + X_LP64 = 1 // :286:1: + X_MAX_ALIGNMENT = 16 // isa_defs.h:261:1: + X_MULTI_DATAMODEL = 0 // isa_defs.h:279:1: + X_MUTEX_MAGIC = 0x4d58 // types.h:424:1: + X_NBBY = 8 // select.h:100:1: + X_NORETURN_KYWD = 0 // feature_tests.h:448:1: + X_OFF_T = 0 // types.h:142:1: + X_POINTER_ALIGNMENT = 8 // isa_defs.h:260:1: + X_PSM_MODULES = 0 // isa_defs.h:284:1: + X_PTRDIFF_T = 0 // types.h:112:1: + X_RESTRICT_KYWD = 0 // feature_tests.h:435:1: + X_RTC_CONFIG = 0 // isa_defs.h:285:1: + X_RWL_MAGIC = 0x5257 // types.h:427:1: + X_SEMA_MAGIC = 0x534d // types.h:425:1: + X_SHORT_ALIGNMENT = 2 // isa_defs.h:250:1: + X_SIGEVENT = 0 // time.h:132:1: + X_SIGSET_T = 0 // select.h:73:1: + X_SIGVAL = 0 // time.h:124:1: + X_SIZE_T = 0 // types.h:540:1: + X_SOFT_HOSTID = 0 // isa_defs.h:286:1: + X_SSIZE_T = 0 // types.h:549:1: + X_STACK_GROWS_DOWNWARD = 0 // isa_defs.h:243:1: + X_STDC_C11 = 0 // feature_tests.h:165:1: + X_STDC_C99 = 0 // feature_tests.h:169:1: + X_ST_FSTYPSZ = 16 // stat.h:60:1: + X_SUNOS_VTOC_16 = 0 // isa_defs.h:280:1: + X_SUSECONDS_T = 0 // types.h:343:1: + X_SYS_CCOMPILE_H = 0 // ccompile.h:32:1: + X_SYS_FEATURE_TESTS_H = 0 // feature_tests.h:41:1: + X_SYS_INT_TYPES_H = 0 // int_types.h:30:1: + X_SYS_ISA_DEFS_H = 0 // isa_defs.h:30:1: + X_SYS_MACHTYPES_H = 0 // machtypes.h:27:1: + X_SYS_NULL_H = 0 // null.h:17:1: + X_SYS_SELECT_H = 0 // select.h:45:1: + X_SYS_STAT_H = 0 // stat.h:32:1: + X_SYS_STAT_IMPL_H = 0 // stat_impl.h:28:1: + X_SYS_TIME_H = 0 // time.h:27:1: + X_SYS_TIME_IMPL_H = 0 // time_impl.h:38:1: + X_SYS_TYPES_H = 0 // types.h:35:1: + X_TIMER_T = 0 // types.h:573:1: + X_TIME_H = 0 // time.h:37:1: + X_TIME_T = 0 // types.h:558:1: + X_UID_T = 0 // types.h:400:1: + X_XOPEN_VERSION = 3 // feature_tests.h:392:1: + Sun = 1 // :172:1: + Unix = 1 // :175:1: +) + +// used for block sizes + +// The boolean_t type has had a varied amount of exposure over the years in +// terms of how its enumeration constants have been exposed. In particular, it +// originally used the __XOPEN_OR_POSIX macro to determine whether to prefix the +// B_TRUE and B_FALSE with an underscore. This check never included the +// question of if we were in a strict ANSI C environment or whether extensions +// were defined. +// +// Compilers such as clang started defaulting to always including an +// XOPEN_SOURCE declaration on behalf of users, but also noted __EXTENSIONS__. +// This would lead most software that had used the non-underscore versions to +// need it. As such, we have adjusted the non-strict XOPEN environment to retain +// its old behavior so as to minimize namespace pollution; however, we instead +// include both variants of the definitions in the generally visible version +// allowing software written in either world to hopefully end up in a good +// place. +// +// This isn't perfect, but should hopefully minimize the pain for folks actually +// trying to build software. +const ( /* types.h:215:1: */ + B_FALSE = 0 + B_TRUE = 1 + X_B_FALSE = 0 + X_B_TRUE = 1 +) + +type Ptrdiff_t = int64 /* :3:26 */ + +type Size_t = uint64 /* :9:23 */ + +type Wchar_t = int32 /* :15:24 */ + +type X__int128_t = struct { + Flo int64 + Fhi int64 +} /* :21:43 */ // must match modernc.org/mathutil.Int128 +type X__uint128_t = struct { + Flo uint64 + Fhi uint64 +} /* :22:44 */ // must match modernc.org/mathutil.Int128 + +type X__builtin_va_list = uintptr /* :46:14 */ +type X__float128 = float64 /* :47:21 */ + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2021 Oxide Computer Company + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2015 EveryCity Ltd. All rights reserved. +// Copyright 2019 Joyent, Inc. + +// This file contains definitions designed to enable different compilers +// to be used harmoniously on Solaris systems. + +// Allow for version tests for compiler bugs and features. + +// analogous to lint's PRINTFLIKEn + +// Handle the kernel printf routines that can take '%b' too + +// This one's pretty obvious -- the function never returns + +// The function is 'extern inline' and expects GNU C89 behaviour, not C99 +// behaviour. +// +// Should only be used on 'extern inline' definitions for GCC. + +// The function has control flow such that it may return multiple times (in +// the manner of setjmp or vfork) + +// This is an appropriate label for functions that do not +// modify their arguments, e.g. strlen() + +// This is a stronger form of __pure__. Can be used for functions +// that do not modify their arguments and don't depend on global +// memory. + +// This attribute, attached to a variable, means that the variable is meant to +// be possibly unused. GCC will not produce a warning for this variable. + +// Shorthand versions for readability + +// In release build, disable warnings about variables +// which are used only for debugging. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2016 Joyent, Inc. + +// This header file serves to group a set of well known defines and to +// set these for each instruction set architecture. These defines may +// be divided into two groups; characteristics of the processor and +// implementation choices for Solaris on a processor. +// +// Processor Characteristics: +// +// _LITTLE_ENDIAN / _BIG_ENDIAN: +// The natural byte order of the processor. A pointer to an int points +// to the least/most significant byte of that int. +// +// _STACK_GROWS_UPWARD / _STACK_GROWS_DOWNWARD: +// The processor specific direction of stack growth. A push onto the +// stack increases/decreases the stack pointer, so it stores data at +// successively higher/lower addresses. (Stackless machines ignored +// without regrets). +// +// _LONG_LONG_HTOL / _LONG_LONG_LTOH: +// A pointer to a long long points to the most/least significant long +// within that long long. +// +// _BIT_FIELDS_HTOL / _BIT_FIELDS_LTOH: +// The C compiler assigns bit fields from the high/low to the low/high end +// of an int (most to least significant vs. least to most significant). +// +// _IEEE_754: +// The processor (or supported implementations of the processor) +// supports the ieee-754 floating point standard. No other floating +// point standards are supported (or significant). Any other supported +// floating point formats are expected to be cased on the ISA processor +// symbol. +// +// _CHAR_IS_UNSIGNED / _CHAR_IS_SIGNED: +// The C Compiler implements objects of type `char' as `unsigned' or +// `signed' respectively. This is really an implementation choice of +// the compiler writer, but it is specified in the ABI and tends to +// be uniform across compilers for an instruction set architecture. +// Hence, it has the properties of a processor characteristic. +// +// _CHAR_ALIGNMENT / _SHORT_ALIGNMENT / _INT_ALIGNMENT / _LONG_ALIGNMENT / +// _LONG_LONG_ALIGNMENT / _DOUBLE_ALIGNMENT / _LONG_DOUBLE_ALIGNMENT / +// _POINTER_ALIGNMENT / _FLOAT_ALIGNMENT: +// The ABI defines alignment requirements of each of the primitive +// object types. Some, if not all, may be hardware requirements as +// well. The values are expressed in "byte-alignment" units. +// +// _MAX_ALIGNMENT: +// The most stringent alignment requirement as specified by the ABI. +// Equal to the maximum of all the above _XXX_ALIGNMENT values. +// +// _MAX_ALIGNMENT_TYPE: +// The name of the C type that has the value descried in _MAX_ALIGNMENT. +// +// _ALIGNMENT_REQUIRED: +// True or false (1 or 0) whether or not the hardware requires the ABI +// alignment. +// +// _LONG_LONG_ALIGNMENT_32 +// The 32-bit ABI supported by a 64-bit kernel may have different +// alignment requirements for primitive object types. The value of this +// identifier is expressed in "byte-alignment" units. +// +// _HAVE_CPUID_INSN +// This indicates that the architecture supports the 'cpuid' +// instruction as defined by Intel. (Intel allows other vendors +// to extend the instruction for their own purposes.) +// +// +// Implementation Choices: +// +// _ILP32 / _LP64: +// This specifies the compiler data type implementation as specified in +// the relevant ABI. The choice between these is strongly influenced +// by the underlying hardware, but is not absolutely tied to it. +// Currently only two data type models are supported: +// +// _ILP32: +// Int/Long/Pointer are 32 bits. This is the historical UNIX +// and Solaris implementation. Due to its historical standing, +// this is the default case. +// +// _LP64: +// Long/Pointer are 64 bits, Int is 32 bits. This is the chosen +// implementation for 64-bit ABIs such as SPARC V9. +// +// _I32LPx: +// A compilation environment where 'int' is 32-bit, and +// longs and pointers are simply the same size. +// +// In all cases, Char is 8 bits and Short is 16 bits. +// +// _SUNOS_VTOC_8 / _SUNOS_VTOC_16 / _SVR4_VTOC_16: +// This specifies the form of the disk VTOC (or label): +// +// _SUNOS_VTOC_8: +// This is a VTOC form which is upwardly compatible with the +// SunOS 4.x disk label and allows 8 partitions per disk. +// +// _SUNOS_VTOC_16: +// In this format the incore vtoc image matches the ondisk +// version. It allows 16 slices per disk, and is not +// compatible with the SunOS 4.x disk label. +// +// Note that these are not the only two VTOC forms possible and +// additional forms may be added. One possible form would be the +// SVr4 VTOC form. The symbol for that is reserved now, although +// it is not implemented. +// +// _SVR4_VTOC_16: +// This VTOC form is compatible with the System V Release 4 +// VTOC (as implemented on the SVr4 Intel and 3b ports) with +// 16 partitions per disk. +// +// +// _DMA_USES_PHYSADDR / _DMA_USES_VIRTADDR +// This describes the type of addresses used by system DMA: +// +// _DMA_USES_PHYSADDR: +// This type of DMA, used in the x86 implementation, +// requires physical addresses for DMA buffers. The 24-bit +// addresses used by some legacy boards is the source of the +// "low-memory" (<16MB) requirement for some devices using DMA. +// +// _DMA_USES_VIRTADDR: +// This method of DMA allows the use of virtual addresses for +// DMA transfers. +// +// _FIRMWARE_NEEDS_FDISK / _NO_FDISK_PRESENT +// This indicates the presence/absence of an fdisk table. +// +// _FIRMWARE_NEEDS_FDISK +// The fdisk table is required by system firmware. If present, +// it allows a disk to be subdivided into multiple fdisk +// partitions, each of which is equivalent to a separate, +// virtual disk. This enables the co-existence of multiple +// operating systems on a shared hard disk. +// +// _NO_FDISK_PRESENT +// If the fdisk table is absent, it is assumed that the entire +// media is allocated for a single operating system. +// +// _HAVE_TEM_FIRMWARE +// Defined if this architecture has the (fallback) option of +// using prom_* calls for doing I/O if a suitable kernel driver +// is not available to do it. +// +// _DONT_USE_1275_GENERIC_NAMES +// Controls whether or not device tree node names should +// comply with the IEEE 1275 "Generic Names" Recommended +// Practice. With _DONT_USE_GENERIC_NAMES, device-specific +// names identifying the particular device will be used. +// +// __i386_COMPAT +// This indicates whether the i386 ABI is supported as a *non-native* +// mode for the platform. When this symbol is defined: +// - 32-bit xstat-style system calls are enabled +// - 32-bit xmknod-style system calls are enabled +// - 32-bit system calls use i386 sizes -and- alignments +// +// Note that this is NOT defined for the i386 native environment! +// +// __x86 +// This is ONLY a synonym for defined(__i386) || defined(__amd64) +// which is useful only insofar as these two architectures share +// common attributes. Analogous to __sparc. +// +// _PSM_MODULES +// This indicates whether or not the implementation uses PSM +// modules for processor support, reading /etc/mach from inside +// the kernel to extract a list. +// +// _RTC_CONFIG +// This indicates whether or not the implementation uses /etc/rtc_config +// to configure the real-time clock in the kernel. +// +// _UNIX_KRTLD +// This indicates that the implementation uses a dynamically +// linked unix + krtld to form the core kernel image at boot +// time, or (in the absence of this symbol) a prelinked kernel image. +// +// _OBP +// This indicates the firmware interface is OBP. +// +// _SOFT_HOSTID +// This indicates that the implementation obtains the hostid +// from the file /etc/hostid, rather than from hardware. + +// The following set of definitions characterize Solaris on AMD's +// 64-bit systems. + +// Define the appropriate "processor characteristics" + +// Different alignment constraints for the i386 ABI in compatibility mode + +// Define the appropriate "implementation choices". + +// The feature test macro __i386 is generic for all processors implementing +// the Intel 386 instruction set or a superset of it. Specifically, this +// includes all members of the 386, 486, and Pentium family of processors. + +// Values of _POSIX_C_SOURCE +// +// undefined not a POSIX compilation +// 1 POSIX.1-1990 compilation +// 2 POSIX.2-1992 compilation +// 199309L POSIX.1b-1993 compilation (Real Time) +// 199506L POSIX.1c-1995 compilation (POSIX Threads) +// 200112L POSIX.1-2001 compilation (Austin Group Revision) +// 200809L POSIX.1-2008 compilation + +// The feature test macros __XOPEN_OR_POSIX, _STRICT_STDC, _STRICT_SYMBOLS, +// and _STDC_C99 are Sun implementation specific macros created in order to +// compress common standards specified feature test macros for easier reading. +// These macros should not be used by the application developer as +// unexpected results may occur. Instead, the user should reference +// standards(7) for correct usage of the standards feature test macros. +// +// __XOPEN_OR_POSIX Used in cases where a symbol is defined by both +// X/Open or POSIX or in the negative, when neither +// X/Open or POSIX defines a symbol. +// +// _STRICT_STDC __STDC__ is specified by the C Standards and defined +// by the compiler. For Sun compilers the value of +// __STDC__ is either 1, 0, or not defined based on the +// compilation mode (see cc(1)). When the value of +// __STDC__ is 1 and in the absence of any other feature +// test macros, the namespace available to the application +// is limited to only those symbols defined by the C +// Standard. _STRICT_STDC provides a more readable means +// of identifying symbols defined by the standard, or in +// the negative, symbols that are extensions to the C +// Standard. See additional comments for GNU C differences. +// +// _STDC_C99 __STDC_VERSION__ is specified by the C standards and +// defined by the compiler and indicates the version of +// the C standard. A value of 199901L indicates a +// compiler that complies with ISO/IEC 9899:1999, other- +// wise known as the C99 standard. +// +// _STDC_C11 Like _STDC_C99 except that the value of __STDC_VERSION__ +// is 201112L indicating a compiler that compiles with +// ISO/IEC 9899:2011, otherwise known as the C11 standard. +// +// _STRICT_SYMBOLS Used in cases where symbol visibility is restricted +// by the standards, and the user has not explicitly +// relaxed the strictness via __EXTENSIONS__. + +// ISO/IEC 9899:1990 and it's revisions, ISO/IEC 9899:1999 and ISO/IEC +// 99899:2011 specify the following predefined macro name: +// +// __STDC__ The integer constant 1, intended to indicate a conforming +// implementation. +// +// Furthermore, a strictly conforming program shall use only those features +// of the language and library specified in these standards. A conforming +// implementation shall accept any strictly conforming program. +// +// Based on these requirements, Sun's C compiler defines __STDC__ to 1 for +// strictly conforming environments and __STDC__ to 0 for environments that +// use ANSI C semantics but allow extensions to the C standard. For non-ANSI +// C semantics, Sun's C compiler does not define __STDC__. +// +// The GNU C project interpretation is that __STDC__ should always be defined +// to 1 for compilation modes that accept ANSI C syntax regardless of whether +// or not extensions to the C standard are used. Violations of conforming +// behavior are conditionally flagged as warnings via the use of the +// -pedantic option. In addition to defining __STDC__ to 1, the GNU C +// compiler also defines __STRICT_ANSI__ as a means of specifying strictly +// conforming environments using the -ansi or -std= options. +// +// In the absence of any other compiler options, Sun and GNU set the value +// of __STDC__ as follows when using the following options: +// +// Value of __STDC__ __STRICT_ANSI__ +// +// cc -Xa (default) 0 undefined +// cc -Xt (transitional) 0 undefined +// cc -Xc (strictly conforming) 1 undefined +// cc -Xs (K&R C) undefined undefined +// +// gcc (default) 1 undefined +// gcc -ansi, -std={c89, c99,...) 1 defined +// gcc -traditional (K&R) undefined undefined +// +// The default compilation modes for Sun C compilers versus GNU C compilers +// results in a differing value for __STDC__ which results in a more +// restricted namespace when using Sun compilers. To allow both GNU and Sun +// interpretations to peacefully co-exist, we use the following Sun +// implementation _STRICT_STDC_ macro: + +// Compiler complies with ISO/IEC 9899:1999 or ISO/IEC 9989:2011 + +// Use strict symbol visibility. + +// This is a variant of _STRICT_SYMBOLS that is meant to cover headers that are +// governed by POSIX, but have not been governed by ISO C. One can go two ways +// on what should happen if an application actively includes (not transitively) +// a header that isn't part of the ISO C spec, we opt to say that if someone has +// gone out of there way then they're doing it for a reason and that is an act +// of non-compliance and therefore it's not up to us to hide away every symbol. +// +// In general, prefer using _STRICT_SYMBOLS, but this is here in particular for +// cases where in the past we have only used a POSIX related check and we don't +// wish to make something stricter. Often applications are relying on the +// ability to, or more realistically unwittingly, have _STRICT_STDC declared and +// still use these interfaces. + +// Large file interfaces: +// +// _LARGEFILE_SOURCE +// 1 large file-related additions to POSIX +// interfaces requested (fseeko, etc.) +// _LARGEFILE64_SOURCE +// 1 transitional large-file-related interfaces +// requested (seek64, stat64, etc.) +// +// The corresponding announcement macros are respectively: +// _LFS_LARGEFILE +// _LFS64_LARGEFILE +// (These are set in .) +// +// Requesting _LARGEFILE64_SOURCE implies requesting _LARGEFILE_SOURCE as +// well. +// +// The large file interfaces are made visible regardless of the initial values +// of the feature test macros under certain circumstances: +// - If no explicit standards-conforming environment is requested (neither +// of _POSIX_SOURCE nor _XOPEN_SOURCE is defined and the value of +// __STDC__ does not imply standards conformance). +// - Extended system interfaces are explicitly requested (__EXTENSIONS__ +// is defined). +// - Access to in-kernel interfaces is requested (_KERNEL or _KMEMUSER is +// defined). (Note that this dependency is an artifact of the current +// kernel implementation and may change in future releases.) + +// Large file compilation environment control: +// +// The setting of _FILE_OFFSET_BITS controls the size of various file-related +// types and governs the mapping between file-related source function symbol +// names and the corresponding binary entry points. +// +// In the 32-bit environment, the default value is 32; if not set, set it to +// the default here, to simplify tests in other headers. +// +// In the 64-bit compilation environment, the only value allowed is 64. + +// Use of _XOPEN_SOURCE +// +// The following X/Open specifications are supported: +// +// X/Open Portability Guide, Issue 3 (XPG3) +// X/Open CAE Specification, Issue 4 (XPG4) +// X/Open CAE Specification, Issue 4, Version 2 (XPG4v2) +// X/Open CAE Specification, Issue 5 (XPG5) +// Open Group Technical Standard, Issue 6 (XPG6), also referred to as +// IEEE Std. 1003.1-2001 and ISO/IEC 9945:2002. +// Open Group Technical Standard, Issue 7 (XPG7), also referred to as +// IEEE Std. 1003.1-2008 and ISO/IEC 9945:2009. +// +// XPG4v2 is also referred to as UNIX 95 (SUS or SUSv1). +// XPG5 is also referred to as UNIX 98 or the Single Unix Specification, +// Version 2 (SUSv2) +// XPG6 is the result of a merge of the X/Open and POSIX specifications +// and as such is also referred to as IEEE Std. 1003.1-2001 in +// addition to UNIX 03 and SUSv3. +// XPG7 is also referred to as UNIX 08 and SUSv4. +// +// When writing a conforming X/Open application, as per the specification +// requirements, the appropriate feature test macros must be defined at +// compile time. These are as follows. For more info, see standards(7). +// +// Feature Test Macro Specification +// ------------------------------------------------ ------------- +// _XOPEN_SOURCE XPG3 +// _XOPEN_SOURCE && _XOPEN_VERSION = 4 XPG4 +// _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED = 1 XPG4v2 +// _XOPEN_SOURCE = 500 XPG5 +// _XOPEN_SOURCE = 600 (or POSIX_C_SOURCE=200112L) XPG6 +// _XOPEN_SOURCE = 700 (or POSIX_C_SOURCE=200809L) XPG7 +// +// In order to simplify the guards within the headers, the following +// implementation private test macros have been created. Applications +// must NOT use these private test macros as unexpected results will +// occur. +// +// Note that in general, the use of these private macros is cumulative. +// For example, the use of _XPG3 with no other restrictions on the X/Open +// namespace will make the symbols visible for XPG3 through XPG6 +// compilation environments. The use of _XPG4_2 with no other X/Open +// namespace restrictions indicates that the symbols were introduced in +// XPG4v2 and are therefore visible for XPG4v2 through XPG6 compilation +// environments, but not for XPG3 or XPG4 compilation environments. +// +// _XPG3 X/Open Portability Guide, Issue 3 (XPG3) +// _XPG4 X/Open CAE Specification, Issue 4 (XPG4) +// _XPG4_2 X/Open CAE Specification, Issue 4, Version 2 (XPG4v2/UNIX 95/SUS) +// _XPG5 X/Open CAE Specification, Issue 5 (XPG5/UNIX 98/SUSv2) +// _XPG6 Open Group Technical Standard, Issue 6 (XPG6/UNIX 03/SUSv3) +// _XPG7 Open Group Technical Standard, Issue 7 (XPG7/UNIX 08/SUSv4) + +// X/Open Portability Guide, Issue 3 + +// _XOPEN_VERSION is defined by the X/Open specifications and is not +// normally defined by the application, except in the case of an XPG4 +// application. On the implementation side, _XOPEN_VERSION defined with +// the value of 3 indicates an XPG3 application. _XOPEN_VERSION defined +// with the value of 4 indicates an XPG4 or XPG4v2 (UNIX 95) application. +// _XOPEN_VERSION defined with a value of 500 indicates an XPG5 (UNIX 98) +// application and with a value of 600 indicates an XPG6 (UNIX 03) +// application and with a value of 700 indicates an XPG7 (UNIX 08). +// The appropriate version is determined by the use of the +// feature test macros described earlier. The value of _XOPEN_VERSION +// defaults to 3 otherwise indicating support for XPG3 applications. + +// ANSI C and ISO 9899:1990 say the type long long doesn't exist in strictly +// conforming environments. ISO 9899:1999 says it does. +// +// The presence of _LONGLONG_TYPE says "long long exists" which is therefore +// defined in all but strictly conforming environments that disallow it. + +// The following macro defines a value for the ISO C99 restrict +// keyword so that _RESTRICT_KYWD resolves to "restrict" if +// an ISO C99 compiler is used, "__restrict" for c++ and "" (null string) +// if any other compiler is used. This allows for the use of single +// prototype declarations regardless of compiler version. + +// The following macro defines a value for the ISO C11 _Noreturn +// keyword so that _NORETURN_KYWD resolves to "_Noreturn" if +// an ISO C11 compiler is used and "" (null string) if any other +// compiler is used. This allows for the use of single prototype +// declarations regardless of compiler version. + +// ISO/IEC 9899:2011 Annex K + +// The following macro indicates header support for the ANSI C++ +// standard. The ISO/IEC designation for this is ISO/IEC FDIS 14882. + +// The following macro indicates header support for the C99 standard, +// ISO/IEC 9899:1999, Programming Languages - C. + +// The following macro indicates header support for the C11 standard, +// ISO/IEC 9899:2011, Programming Languages - C. + +// The following macro indicates header support for the C11 standard, +// ISO/IEC 9899:2011 Annex K, Programming Languages - C. + +// The following macro indicates header support for DTrace. The value is an +// integer that corresponds to the major version number for DTrace. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2016 Joyent, Inc. + +// Machine dependent definitions moved to . +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2007 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Machine dependent types: +// +// intel ia32 Version + +type X_label_t = struct{ Fval [8]int64 } /* machtypes.h:59:9 */ + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2021 Oxide Computer Company + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2015 EveryCity Ltd. All rights reserved. +// Copyright 2019 Joyent, Inc. + +// This file contains definitions designed to enable different compilers +// to be used harmoniously on Solaris systems. + +// Allow for version tests for compiler bugs and features. + +// analogous to lint's PRINTFLIKEn + +// Handle the kernel printf routines that can take '%b' too + +// This one's pretty obvious -- the function never returns + +// The function is 'extern inline' and expects GNU C89 behaviour, not C99 +// behaviour. +// +// Should only be used on 'extern inline' definitions for GCC. + +// The function has control flow such that it may return multiple times (in +// the manner of setjmp or vfork) + +// This is an appropriate label for functions that do not +// modify their arguments, e.g. strlen() + +// This is a stronger form of __pure__. Can be used for functions +// that do not modify their arguments and don't depend on global +// memory. + +// This attribute, attached to a variable, means that the variable is meant to +// be possibly unused. GCC will not produce a warning for this variable. + +// Shorthand versions for readability + +// In release build, disable warnings about variables +// which are used only for debugging. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2016 Joyent, Inc. + +// This header file serves to group a set of well known defines and to +// set these for each instruction set architecture. These defines may +// be divided into two groups; characteristics of the processor and +// implementation choices for Solaris on a processor. +// +// Processor Characteristics: +// +// _LITTLE_ENDIAN / _BIG_ENDIAN: +// The natural byte order of the processor. A pointer to an int points +// to the least/most significant byte of that int. +// +// _STACK_GROWS_UPWARD / _STACK_GROWS_DOWNWARD: +// The processor specific direction of stack growth. A push onto the +// stack increases/decreases the stack pointer, so it stores data at +// successively higher/lower addresses. (Stackless machines ignored +// without regrets). +// +// _LONG_LONG_HTOL / _LONG_LONG_LTOH: +// A pointer to a long long points to the most/least significant long +// within that long long. +// +// _BIT_FIELDS_HTOL / _BIT_FIELDS_LTOH: +// The C compiler assigns bit fields from the high/low to the low/high end +// of an int (most to least significant vs. least to most significant). +// +// _IEEE_754: +// The processor (or supported implementations of the processor) +// supports the ieee-754 floating point standard. No other floating +// point standards are supported (or significant). Any other supported +// floating point formats are expected to be cased on the ISA processor +// symbol. +// +// _CHAR_IS_UNSIGNED / _CHAR_IS_SIGNED: +// The C Compiler implements objects of type `char' as `unsigned' or +// `signed' respectively. This is really an implementation choice of +// the compiler writer, but it is specified in the ABI and tends to +// be uniform across compilers for an instruction set architecture. +// Hence, it has the properties of a processor characteristic. +// +// _CHAR_ALIGNMENT / _SHORT_ALIGNMENT / _INT_ALIGNMENT / _LONG_ALIGNMENT / +// _LONG_LONG_ALIGNMENT / _DOUBLE_ALIGNMENT / _LONG_DOUBLE_ALIGNMENT / +// _POINTER_ALIGNMENT / _FLOAT_ALIGNMENT: +// The ABI defines alignment requirements of each of the primitive +// object types. Some, if not all, may be hardware requirements as +// well. The values are expressed in "byte-alignment" units. +// +// _MAX_ALIGNMENT: +// The most stringent alignment requirement as specified by the ABI. +// Equal to the maximum of all the above _XXX_ALIGNMENT values. +// +// _MAX_ALIGNMENT_TYPE: +// The name of the C type that has the value descried in _MAX_ALIGNMENT. +// +// _ALIGNMENT_REQUIRED: +// True or false (1 or 0) whether or not the hardware requires the ABI +// alignment. +// +// _LONG_LONG_ALIGNMENT_32 +// The 32-bit ABI supported by a 64-bit kernel may have different +// alignment requirements for primitive object types. The value of this +// identifier is expressed in "byte-alignment" units. +// +// _HAVE_CPUID_INSN +// This indicates that the architecture supports the 'cpuid' +// instruction as defined by Intel. (Intel allows other vendors +// to extend the instruction for their own purposes.) +// +// +// Implementation Choices: +// +// _ILP32 / _LP64: +// This specifies the compiler data type implementation as specified in +// the relevant ABI. The choice between these is strongly influenced +// by the underlying hardware, but is not absolutely tied to it. +// Currently only two data type models are supported: +// +// _ILP32: +// Int/Long/Pointer are 32 bits. This is the historical UNIX +// and Solaris implementation. Due to its historical standing, +// this is the default case. +// +// _LP64: +// Long/Pointer are 64 bits, Int is 32 bits. This is the chosen +// implementation for 64-bit ABIs such as SPARC V9. +// +// _I32LPx: +// A compilation environment where 'int' is 32-bit, and +// longs and pointers are simply the same size. +// +// In all cases, Char is 8 bits and Short is 16 bits. +// +// _SUNOS_VTOC_8 / _SUNOS_VTOC_16 / _SVR4_VTOC_16: +// This specifies the form of the disk VTOC (or label): +// +// _SUNOS_VTOC_8: +// This is a VTOC form which is upwardly compatible with the +// SunOS 4.x disk label and allows 8 partitions per disk. +// +// _SUNOS_VTOC_16: +// In this format the incore vtoc image matches the ondisk +// version. It allows 16 slices per disk, and is not +// compatible with the SunOS 4.x disk label. +// +// Note that these are not the only two VTOC forms possible and +// additional forms may be added. One possible form would be the +// SVr4 VTOC form. The symbol for that is reserved now, although +// it is not implemented. +// +// _SVR4_VTOC_16: +// This VTOC form is compatible with the System V Release 4 +// VTOC (as implemented on the SVr4 Intel and 3b ports) with +// 16 partitions per disk. +// +// +// _DMA_USES_PHYSADDR / _DMA_USES_VIRTADDR +// This describes the type of addresses used by system DMA: +// +// _DMA_USES_PHYSADDR: +// This type of DMA, used in the x86 implementation, +// requires physical addresses for DMA buffers. The 24-bit +// addresses used by some legacy boards is the source of the +// "low-memory" (<16MB) requirement for some devices using DMA. +// +// _DMA_USES_VIRTADDR: +// This method of DMA allows the use of virtual addresses for +// DMA transfers. +// +// _FIRMWARE_NEEDS_FDISK / _NO_FDISK_PRESENT +// This indicates the presence/absence of an fdisk table. +// +// _FIRMWARE_NEEDS_FDISK +// The fdisk table is required by system firmware. If present, +// it allows a disk to be subdivided into multiple fdisk +// partitions, each of which is equivalent to a separate, +// virtual disk. This enables the co-existence of multiple +// operating systems on a shared hard disk. +// +// _NO_FDISK_PRESENT +// If the fdisk table is absent, it is assumed that the entire +// media is allocated for a single operating system. +// +// _HAVE_TEM_FIRMWARE +// Defined if this architecture has the (fallback) option of +// using prom_* calls for doing I/O if a suitable kernel driver +// is not available to do it. +// +// _DONT_USE_1275_GENERIC_NAMES +// Controls whether or not device tree node names should +// comply with the IEEE 1275 "Generic Names" Recommended +// Practice. With _DONT_USE_GENERIC_NAMES, device-specific +// names identifying the particular device will be used. +// +// __i386_COMPAT +// This indicates whether the i386 ABI is supported as a *non-native* +// mode for the platform. When this symbol is defined: +// - 32-bit xstat-style system calls are enabled +// - 32-bit xmknod-style system calls are enabled +// - 32-bit system calls use i386 sizes -and- alignments +// +// Note that this is NOT defined for the i386 native environment! +// +// __x86 +// This is ONLY a synonym for defined(__i386) || defined(__amd64) +// which is useful only insofar as these two architectures share +// common attributes. Analogous to __sparc. +// +// _PSM_MODULES +// This indicates whether or not the implementation uses PSM +// modules for processor support, reading /etc/mach from inside +// the kernel to extract a list. +// +// _RTC_CONFIG +// This indicates whether or not the implementation uses /etc/rtc_config +// to configure the real-time clock in the kernel. +// +// _UNIX_KRTLD +// This indicates that the implementation uses a dynamically +// linked unix + krtld to form the core kernel image at boot +// time, or (in the absence of this symbol) a prelinked kernel image. +// +// _OBP +// This indicates the firmware interface is OBP. +// +// _SOFT_HOSTID +// This indicates that the implementation obtains the hostid +// from the file /etc/hostid, rather than from hardware. + +// The following set of definitions characterize Solaris on AMD's +// 64-bit systems. + +// Define the appropriate "processor characteristics" + +// Different alignment constraints for the i386 ABI in compatibility mode + +// Define the appropriate "implementation choices". + +// The feature test macro __i386 is generic for all processors implementing +// the Intel 386 instruction set or a superset of it. Specifically, this +// includes all members of the 386, 486, and Pentium family of processors. + +// Values of _POSIX_C_SOURCE +// +// undefined not a POSIX compilation +// 1 POSIX.1-1990 compilation +// 2 POSIX.2-1992 compilation +// 199309L POSIX.1b-1993 compilation (Real Time) +// 199506L POSIX.1c-1995 compilation (POSIX Threads) +// 200112L POSIX.1-2001 compilation (Austin Group Revision) +// 200809L POSIX.1-2008 compilation + +// The feature test macros __XOPEN_OR_POSIX, _STRICT_STDC, _STRICT_SYMBOLS, +// and _STDC_C99 are Sun implementation specific macros created in order to +// compress common standards specified feature test macros for easier reading. +// These macros should not be used by the application developer as +// unexpected results may occur. Instead, the user should reference +// standards(7) for correct usage of the standards feature test macros. +// +// __XOPEN_OR_POSIX Used in cases where a symbol is defined by both +// X/Open or POSIX or in the negative, when neither +// X/Open or POSIX defines a symbol. +// +// _STRICT_STDC __STDC__ is specified by the C Standards and defined +// by the compiler. For Sun compilers the value of +// __STDC__ is either 1, 0, or not defined based on the +// compilation mode (see cc(1)). When the value of +// __STDC__ is 1 and in the absence of any other feature +// test macros, the namespace available to the application +// is limited to only those symbols defined by the C +// Standard. _STRICT_STDC provides a more readable means +// of identifying symbols defined by the standard, or in +// the negative, symbols that are extensions to the C +// Standard. See additional comments for GNU C differences. +// +// _STDC_C99 __STDC_VERSION__ is specified by the C standards and +// defined by the compiler and indicates the version of +// the C standard. A value of 199901L indicates a +// compiler that complies with ISO/IEC 9899:1999, other- +// wise known as the C99 standard. +// +// _STDC_C11 Like _STDC_C99 except that the value of __STDC_VERSION__ +// is 201112L indicating a compiler that compiles with +// ISO/IEC 9899:2011, otherwise known as the C11 standard. +// +// _STRICT_SYMBOLS Used in cases where symbol visibility is restricted +// by the standards, and the user has not explicitly +// relaxed the strictness via __EXTENSIONS__. + +// ISO/IEC 9899:1990 and it's revisions, ISO/IEC 9899:1999 and ISO/IEC +// 99899:2011 specify the following predefined macro name: +// +// __STDC__ The integer constant 1, intended to indicate a conforming +// implementation. +// +// Furthermore, a strictly conforming program shall use only those features +// of the language and library specified in these standards. A conforming +// implementation shall accept any strictly conforming program. +// +// Based on these requirements, Sun's C compiler defines __STDC__ to 1 for +// strictly conforming environments and __STDC__ to 0 for environments that +// use ANSI C semantics but allow extensions to the C standard. For non-ANSI +// C semantics, Sun's C compiler does not define __STDC__. +// +// The GNU C project interpretation is that __STDC__ should always be defined +// to 1 for compilation modes that accept ANSI C syntax regardless of whether +// or not extensions to the C standard are used. Violations of conforming +// behavior are conditionally flagged as warnings via the use of the +// -pedantic option. In addition to defining __STDC__ to 1, the GNU C +// compiler also defines __STRICT_ANSI__ as a means of specifying strictly +// conforming environments using the -ansi or -std= options. +// +// In the absence of any other compiler options, Sun and GNU set the value +// of __STDC__ as follows when using the following options: +// +// Value of __STDC__ __STRICT_ANSI__ +// +// cc -Xa (default) 0 undefined +// cc -Xt (transitional) 0 undefined +// cc -Xc (strictly conforming) 1 undefined +// cc -Xs (K&R C) undefined undefined +// +// gcc (default) 1 undefined +// gcc -ansi, -std={c89, c99,...) 1 defined +// gcc -traditional (K&R) undefined undefined +// +// The default compilation modes for Sun C compilers versus GNU C compilers +// results in a differing value for __STDC__ which results in a more +// restricted namespace when using Sun compilers. To allow both GNU and Sun +// interpretations to peacefully co-exist, we use the following Sun +// implementation _STRICT_STDC_ macro: + +// Compiler complies with ISO/IEC 9899:1999 or ISO/IEC 9989:2011 + +// Use strict symbol visibility. + +// This is a variant of _STRICT_SYMBOLS that is meant to cover headers that are +// governed by POSIX, but have not been governed by ISO C. One can go two ways +// on what should happen if an application actively includes (not transitively) +// a header that isn't part of the ISO C spec, we opt to say that if someone has +// gone out of there way then they're doing it for a reason and that is an act +// of non-compliance and therefore it's not up to us to hide away every symbol. +// +// In general, prefer using _STRICT_SYMBOLS, but this is here in particular for +// cases where in the past we have only used a POSIX related check and we don't +// wish to make something stricter. Often applications are relying on the +// ability to, or more realistically unwittingly, have _STRICT_STDC declared and +// still use these interfaces. + +// Large file interfaces: +// +// _LARGEFILE_SOURCE +// 1 large file-related additions to POSIX +// interfaces requested (fseeko, etc.) +// _LARGEFILE64_SOURCE +// 1 transitional large-file-related interfaces +// requested (seek64, stat64, etc.) +// +// The corresponding announcement macros are respectively: +// _LFS_LARGEFILE +// _LFS64_LARGEFILE +// (These are set in .) +// +// Requesting _LARGEFILE64_SOURCE implies requesting _LARGEFILE_SOURCE as +// well. +// +// The large file interfaces are made visible regardless of the initial values +// of the feature test macros under certain circumstances: +// - If no explicit standards-conforming environment is requested (neither +// of _POSIX_SOURCE nor _XOPEN_SOURCE is defined and the value of +// __STDC__ does not imply standards conformance). +// - Extended system interfaces are explicitly requested (__EXTENSIONS__ +// is defined). +// - Access to in-kernel interfaces is requested (_KERNEL or _KMEMUSER is +// defined). (Note that this dependency is an artifact of the current +// kernel implementation and may change in future releases.) + +// Large file compilation environment control: +// +// The setting of _FILE_OFFSET_BITS controls the size of various file-related +// types and governs the mapping between file-related source function symbol +// names and the corresponding binary entry points. +// +// In the 32-bit environment, the default value is 32; if not set, set it to +// the default here, to simplify tests in other headers. +// +// In the 64-bit compilation environment, the only value allowed is 64. + +// Use of _XOPEN_SOURCE +// +// The following X/Open specifications are supported: +// +// X/Open Portability Guide, Issue 3 (XPG3) +// X/Open CAE Specification, Issue 4 (XPG4) +// X/Open CAE Specification, Issue 4, Version 2 (XPG4v2) +// X/Open CAE Specification, Issue 5 (XPG5) +// Open Group Technical Standard, Issue 6 (XPG6), also referred to as +// IEEE Std. 1003.1-2001 and ISO/IEC 9945:2002. +// Open Group Technical Standard, Issue 7 (XPG7), also referred to as +// IEEE Std. 1003.1-2008 and ISO/IEC 9945:2009. +// +// XPG4v2 is also referred to as UNIX 95 (SUS or SUSv1). +// XPG5 is also referred to as UNIX 98 or the Single Unix Specification, +// Version 2 (SUSv2) +// XPG6 is the result of a merge of the X/Open and POSIX specifications +// and as such is also referred to as IEEE Std. 1003.1-2001 in +// addition to UNIX 03 and SUSv3. +// XPG7 is also referred to as UNIX 08 and SUSv4. +// +// When writing a conforming X/Open application, as per the specification +// requirements, the appropriate feature test macros must be defined at +// compile time. These are as follows. For more info, see standards(7). +// +// Feature Test Macro Specification +// ------------------------------------------------ ------------- +// _XOPEN_SOURCE XPG3 +// _XOPEN_SOURCE && _XOPEN_VERSION = 4 XPG4 +// _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED = 1 XPG4v2 +// _XOPEN_SOURCE = 500 XPG5 +// _XOPEN_SOURCE = 600 (or POSIX_C_SOURCE=200112L) XPG6 +// _XOPEN_SOURCE = 700 (or POSIX_C_SOURCE=200809L) XPG7 +// +// In order to simplify the guards within the headers, the following +// implementation private test macros have been created. Applications +// must NOT use these private test macros as unexpected results will +// occur. +// +// Note that in general, the use of these private macros is cumulative. +// For example, the use of _XPG3 with no other restrictions on the X/Open +// namespace will make the symbols visible for XPG3 through XPG6 +// compilation environments. The use of _XPG4_2 with no other X/Open +// namespace restrictions indicates that the symbols were introduced in +// XPG4v2 and are therefore visible for XPG4v2 through XPG6 compilation +// environments, but not for XPG3 or XPG4 compilation environments. +// +// _XPG3 X/Open Portability Guide, Issue 3 (XPG3) +// _XPG4 X/Open CAE Specification, Issue 4 (XPG4) +// _XPG4_2 X/Open CAE Specification, Issue 4, Version 2 (XPG4v2/UNIX 95/SUS) +// _XPG5 X/Open CAE Specification, Issue 5 (XPG5/UNIX 98/SUSv2) +// _XPG6 Open Group Technical Standard, Issue 6 (XPG6/UNIX 03/SUSv3) +// _XPG7 Open Group Technical Standard, Issue 7 (XPG7/UNIX 08/SUSv4) + +// X/Open Portability Guide, Issue 3 + +// _XOPEN_VERSION is defined by the X/Open specifications and is not +// normally defined by the application, except in the case of an XPG4 +// application. On the implementation side, _XOPEN_VERSION defined with +// the value of 3 indicates an XPG3 application. _XOPEN_VERSION defined +// with the value of 4 indicates an XPG4 or XPG4v2 (UNIX 95) application. +// _XOPEN_VERSION defined with a value of 500 indicates an XPG5 (UNIX 98) +// application and with a value of 600 indicates an XPG6 (UNIX 03) +// application and with a value of 700 indicates an XPG7 (UNIX 08). +// The appropriate version is determined by the use of the +// feature test macros described earlier. The value of _XOPEN_VERSION +// defaults to 3 otherwise indicating support for XPG3 applications. + +// ANSI C and ISO 9899:1990 say the type long long doesn't exist in strictly +// conforming environments. ISO 9899:1999 says it does. +// +// The presence of _LONGLONG_TYPE says "long long exists" which is therefore +// defined in all but strictly conforming environments that disallow it. + +// The following macro defines a value for the ISO C99 restrict +// keyword so that _RESTRICT_KYWD resolves to "restrict" if +// an ISO C99 compiler is used, "__restrict" for c++ and "" (null string) +// if any other compiler is used. This allows for the use of single +// prototype declarations regardless of compiler version. + +// The following macro defines a value for the ISO C11 _Noreturn +// keyword so that _NORETURN_KYWD resolves to "_Noreturn" if +// an ISO C11 compiler is used and "" (null string) if any other +// compiler is used. This allows for the use of single prototype +// declarations regardless of compiler version. + +// ISO/IEC 9899:2011 Annex K + +// The following macro indicates header support for the ANSI C++ +// standard. The ISO/IEC designation for this is ISO/IEC FDIS 14882. + +// The following macro indicates header support for the C99 standard, +// ISO/IEC 9899:1999, Programming Languages - C. + +// The following macro indicates header support for the C11 standard, +// ISO/IEC 9899:2011, Programming Languages - C. + +// The following macro indicates header support for the C11 standard, +// ISO/IEC 9899:2011 Annex K, Programming Languages - C. + +// The following macro indicates header support for DTrace. The value is an +// integer that corresponds to the major version number for DTrace. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2016 Joyent, Inc. + +// Machine dependent definitions moved to . +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2007 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Machine dependent types: +// +// intel ia32 Version + +type Label_t = X_label_t /* machtypes.h:59:54 */ + +type Lock_t = uint8 /* machtypes.h:63:23 */ // lock work for busy wait + +// Include fixed width type declarations proposed by the ISO/JTC1/SC22/WG14 C +// committee's working draft for the revision of the current ISO C standard, +// ISO/IEC 9899:1990 Programming language - C. These are not currently +// required by any standard but constitute a useful, general purpose set +// of type definitions which is namespace clean with respect to all standards. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2014 Garrett D'Amore +// +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// This file, , is part of the Sun Microsystems implementation +// of defined in the ISO C standard, ISO/IEC 9899:1999 +// Programming language - C. +// +// Programs/Modules should not directly include this file. Access to the +// types defined in this file should be through the inclusion of one of the +// following files: +// +// Provides only the "_t" types defined in this +// file which is a subset of the contents of +// . (This can be appropriate for +// all programs/modules except those claiming +// ANSI-C conformance.) +// +// Provides the Kernel and Driver appropriate +// components of . +// +// For use by applications. +// +// See these files for more details. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Basic / Extended integer types +// +// The following defines the basic fixed-size integer types. +// +// Implementations are free to typedef them to Standard C integer types or +// extensions that they support. If an implementation does not support one +// of the particular integer data types below, then it should not define the +// typedefs and macros corresponding to that data type. Note that int8_t +// is not defined in -Xs mode on ISAs for which the ABI specifies "char" +// as an unsigned entity because there is no way to define an eight bit +// signed integral. +type Int8_t = int8 /* int_types.h:75:16 */ +type Int16_t = int16 /* int_types.h:79:17 */ +type Int32_t = int32 /* int_types.h:80:15 */ +type Int64_t = int64 /* int_types.h:83:16 */ + +type Uint8_t = uint8 /* int_types.h:91:24 */ +type Uint16_t = uint16 /* int_types.h:92:25 */ +type Uint32_t = uint32 /* int_types.h:93:23 */ +type Uint64_t = uint64 /* int_types.h:95:24 */ + +// intmax_t and uintmax_t are to be the longest (in number of bits) signed +// and unsigned integer types supported by the implementation. +type Intmax_t = int64 /* int_types.h:107:19 */ +type Uintmax_t = uint64 /* int_types.h:108:19 */ + +// intptr_t and uintptr_t are signed and unsigned integer types large enough +// to hold any data pointer; that is, data pointers can be assigned into or +// from these integer types without losing precision. +type Intptr_t = int64 /* int_types.h:120:16 */ +type Uintptr_t = uint64 /* int_types.h:121:24 */ + +// The following define the fastest integer types that can hold the +// specified number of bits. +type Int_fast8_t = int8 /* int_types.h:132:16 */ +type Int_fast16_t = int32 /* int_types.h:136:15 */ +type Int_fast32_t = int32 /* int_types.h:137:15 */ +type Int_fast64_t = int64 /* int_types.h:139:16 */ + +type Uint_fast8_t = uint8 /* int_types.h:146:24 */ +type Uint_fast16_t = uint32 /* int_types.h:147:23 */ +type Uint_fast32_t = uint32 /* int_types.h:148:23 */ +type Uint_fast64_t = uint64 /* int_types.h:150:24 */ + +// The following define the smallest integer types that can hold the +// specified number of bits. +type Int_least8_t = int8 /* int_types.h:162:16 */ +type Int_least16_t = int16 /* int_types.h:166:17 */ +type Int_least32_t = int32 /* int_types.h:167:15 */ +type Int_least64_t = int64 /* int_types.h:169:16 */ + +// If these are changed, please update char16_t and char32_t in head/uchar.h. +type Uint_least8_t = uint8 /* int_types.h:179:24 */ +type Uint_least16_t = uint16 /* int_types.h:180:25 */ +type Uint_least32_t = uint32 /* int_types.h:181:23 */ +type Uint_least64_t = uint64 /* int_types.h:183:24 */ + +// Strictly conforming ANSI C environments prior to the 1999 +// revision of the C Standard (ISO/IEC 9899:1999) do not have +// the long long data type. +type Longlong_t = int64 /* types.h:72:20 */ +type U_longlong_t = uint64 /* types.h:73:28 */ + +// These types (t_{u}scalar_t) exist because the XTI/TPI/DLPI standards had +// to use them instead of int32_t and uint32_t because DEC had +// shipped 64-bit wide. +type T_scalar_t = int32 /* types.h:92:18 */ +type T_uscalar_t = uint32 /* types.h:93:18 */ + +// POSIX Extensions +type Uchar_t = uint8 /* types.h:102:23 */ +type Ushort_t = uint16 /* types.h:103:24 */ +type Uint_t = uint32 /* types.h:104:22 */ +type Ulong_t = uint64 /* types.h:105:23 */ + +type Caddr_t = uintptr /* types.h:107:15 */ // ? type +type Daddr_t = int64 /* types.h:108:15 */ // type +type Cnt_t = int16 /* types.h:109:16 */ // pointer difference + +// VM-related types +type Pfn_t = uint64 /* types.h:123:18 */ // page frame number +type Pgcnt_t = uint64 /* types.h:124:18 */ // number of pages +type Spgcnt_t = int64 /* types.h:125:15 */ // signed number of pages + +type Use_t = uint8 /* types.h:127:18 */ // use count for swap. +type Sysid_t = int16 /* types.h:128:16 */ +type Index_t = int16 /* types.h:129:16 */ +type Timeout_id_t = uintptr /* types.h:130:15 */ // opaque handle from timeout(9F) +type Bufcall_id_t = uintptr /* types.h:131:15 */ // opaque handle from bufcall(9F) + +// The size of off_t and related types depends on the setting of +// _FILE_OFFSET_BITS. (Note that other system headers define other types +// related to those defined here.) +// +// If _LARGEFILE64_SOURCE is defined, variants of these types that are +// explicitly 64 bits wide become available. + +type Off_t = int64 /* types.h:145:15 */ // offsets within files + +type Off64_t = int64 /* types.h:152:16 */ // offsets within files + +type Ino_t = uint64 /* types.h:161:18 */ // expanded inode type +type Blkcnt_t = int64 /* types.h:162:15 */ // count of file blocks +type Fsblkcnt_t = uint64 /* types.h:163:18 */ // count of file system blocks +type Fsfilcnt_t = uint64 /* types.h:164:18 */ // count of files + +type Ino64_t = uint64 /* types.h:174:16 */ // expanded inode type +type Blkcnt64_t = int64 /* types.h:175:18 */ // count of file blocks +type Fsblkcnt64_t = uint64 /* types.h:176:20 */ // count of file system blocks +type Fsfilcnt64_t = uint64 /* types.h:177:20 */ // count of files + +type Blksize_t = int32 /* types.h:187:14 */ // used for block sizes + +// The boolean_t type has had a varied amount of exposure over the years in +// terms of how its enumeration constants have been exposed. In particular, it +// originally used the __XOPEN_OR_POSIX macro to determine whether to prefix the +// B_TRUE and B_FALSE with an underscore. This check never included the +// question of if we were in a strict ANSI C environment or whether extensions +// were defined. +// +// Compilers such as clang started defaulting to always including an +// XOPEN_SOURCE declaration on behalf of users, but also noted __EXTENSIONS__. +// This would lead most software that had used the non-underscore versions to +// need it. As such, we have adjusted the non-strict XOPEN environment to retain +// its old behavior so as to minimize namespace pollution; however, we instead +// include both variants of the definitions in the generally visible version +// allowing software written in either world to hopefully end up in a good +// place. +// +// This isn't perfect, but should hopefully minimize the pain for folks actually +// trying to build software. +type Boolean_t = uint32 /* types.h:215:69 */ + +// The {u,}pad64_t types can be used in structures such that those structures +// may be accessed by code produced by compilation environments which don't +// support a 64 bit integral datatype. The intention is not to allow +// use of these fields in such environments, but to maintain the alignment +// and offsets of the structure. +// +// Similar comments for {u,}pad128_t. +// +// Note that these types do NOT generate any stronger alignment constraints +// than those available in the underlying ABI. See +type Pad64_t = int64 /* types.h:240:18 */ +type Upad64_t = uint64 /* types.h:241:18 */ + +type Pad128_t = struct { + F_q float64 + F__ccgo_pad1 [8]byte +} /* types.h:257:3 */ + +type Upad128_t = struct { + F_q float64 + F__ccgo_pad1 [8]byte +} /* types.h:262:3 */ + +type Offset_t = int64 /* types.h:264:20 */ +type U_offset_t = uint64 /* types.h:265:22 */ +type Len_t = uint64 /* types.h:266:22 */ +type Diskaddr_t = uint64 /* types.h:267:22 */ + +// Definitions remaining from previous partial support for 64-bit file +// offsets. This partial support for devices greater than 2gb requires +// compiler support for long long. +type Lloff_t = struct{ F_f int64 } /* types.h:284:3 */ + +type Lldaddr_t = struct{ F_f int64 } /* types.h:304:3 */ + +type K_fltset_t = uint32 /* types.h:317:16 */ // kernel fault set type + +// The following type is for various kinds of identifiers. The +// actual type must be the same for all since some system calls +// (such as sigsend) take arguments that may be any of these +// types. The enumeration type idtype_t defined in sys/procset.h +// is used to indicate what type of id is being specified -- +// a process id, process group id, session id, scheduling class id, +// user id, group id, project id, task id or zone id. +type Id_t = int32 /* types.h:329:14 */ + +type Lgrp_id_t = int32 /* types.h:334:15 */ // lgroup ID + +// Type useconds_t is an unsigned integral type capable of storing +// values at least in the range of zero to 1,000,000. +type Useconds_t = uint32 /* types.h:340:17 */ // Time, in microseconds + +type Suseconds_t = int64 /* types.h:344:14 */ // signed # of microseconds + +// Typedefs for dev_t components. +type Major_t = uint32 /* types.h:351:16 */ // major part of device number +type Minor_t = uint32 /* types.h:352:16 */ // minor part of device number + +// The data type of a thread priority. +type Pri_t = int16 /* types.h:361:15 */ + +// The data type for a CPU flags field. (Can be extended to larger unsigned +// types, if needed, limited by ability to update atomically.) +type Cpu_flag_t = uint16 /* types.h:367:18 */ + +// For compatibility reasons the following typedefs (prefixed o_) +// can't grow regardless of the EFT definition. Although, +// applications should not explicitly use these typedefs +// they may be included via a system header definition. +// WARNING: These typedefs may be removed in a future +// release. +// +// ex. the definitions in s5inode.h (now obsoleted) +// remained small to preserve compatibility +// in the S5 file system type. +type O_mode_t = uint16 /* types.h:380:18 */ // old file attribute type +type O_dev_t = int16 /* types.h:381:15 */ // old device type +type O_uid_t = uint16 /* types.h:382:18 */ // old UID type +type O_gid_t = uint16 /* types.h:383:17 */ // old GID type +type O_nlink_t = int16 /* types.h:384:15 */ // old file link type +type O_pid_t = int16 /* types.h:385:15 */ // old process id type +type O_ino_t = uint16 /* types.h:386:18 */ // old inode type + +// POSIX and XOPEN Declarations +type Key_t = int32 /* types.h:392:13 */ // IPC key type +type Mode_t = uint32 /* types.h:394:16 */ // file attribute type + +type Uid_t = uint32 /* types.h:401:22 */ // UID type + +type Gid_t = uint32 /* types.h:404:15 */ // GID type + +type Datalink_id_t = uint32 /* types.h:406:18 */ +type Vrid_t = uint32 /* types.h:407:18 */ + +type Taskid_t = int32 /* types.h:409:17 */ +type Projid_t = int32 /* types.h:410:17 */ +type Poolid_t = int32 /* types.h:411:14 */ +type Zoneid_t = int32 /* types.h:412:14 */ +type Ctid_t = int32 /* types.h:413:14 */ + +// POSIX definitions are same as defined in thread.h and synch.h. +// Any changes made to here should be reflected in corresponding +// files as described in comments. +type Pthread_t = uint32 /* types.h:420:16 */ // = thread_t in thread.h +type Pthread_key_t = uint32 /* types.h:421:16 */ // = thread_key_t in thread.h + +// "Magic numbers" tagging synchronization object types + +type X_pthread_mutex = struct { + F__pthread_mutex_flags struct { + F__pthread_mutex_flag1 uint16 + F__pthread_mutex_flag2 uint8 + F__pthread_mutex_ceiling uint8 + F__pthread_mutex_type uint16 + F__pthread_mutex_magic uint16 + } + F__pthread_mutex_lock struct { + F__ccgo_pad1 [0]uint64 + F__pthread_mutex_lock64 struct{ F__pthread_mutex_pad [8]uint8 } + } + F__pthread_mutex_data uint64 +} /* types.h:429:9 */ + +// = thread_key_t in thread.h + +// "Magic numbers" tagging synchronization object types + +type Pthread_mutex_t = X_pthread_mutex /* types.h:448:3 */ + +type X_pthread_cond = struct { + F__pthread_cond_flags struct { + F__pthread_cond_flag [4]uint8 + F__pthread_cond_type uint16 + F__pthread_cond_magic uint16 + } + F__pthread_cond_data uint64 +} /* types.h:450:9 */ + +type Pthread_cond_t = X_pthread_cond /* types.h:457:3 */ + +// UNIX 98 Extension +type X_pthread_rwlock = struct { + F__pthread_rwlock_readers int32 + F__pthread_rwlock_type uint16 + F__pthread_rwlock_magic uint16 + F__pthread_rwlock_mutex Pthread_mutex_t + F__pthread_rwlock_readercv Pthread_cond_t + F__pthread_rwlock_writercv Pthread_cond_t +} /* types.h:462:9 */ + +// UNIX 98 Extension +type Pthread_rwlock_t = X_pthread_rwlock /* types.h:469:3 */ + +// SUSV3 +type Pthread_barrier_t = struct { + F__pthread_barrier_count uint32 + F__pthread_barrier_current uint32 + F__pthread_barrier_cycle uint64 + F__pthread_barrier_reserved uint64 + F__pthread_barrier_lock Pthread_mutex_t + F__pthread_barrier_cond Pthread_cond_t +} /* types.h:481:3 */ + +type Pthread_spinlock_t = Pthread_mutex_t /* types.h:483:25 */ + +// attributes for threads, dynamically allocated by library +type X_pthread_attr = struct{ F__pthread_attrp uintptr } /* types.h:488:9 */ + +// attributes for threads, dynamically allocated by library +type Pthread_attr_t = X_pthread_attr /* types.h:490:3 */ + +// attributes for mutex, dynamically allocated by library +type X_pthread_mutexattr = struct{ F__pthread_mutexattrp uintptr } /* types.h:495:9 */ + +// attributes for mutex, dynamically allocated by library +type Pthread_mutexattr_t = X_pthread_mutexattr /* types.h:497:3 */ + +// attributes for cond, dynamically allocated by library +type X_pthread_condattr = struct{ F__pthread_condattrp uintptr } /* types.h:502:9 */ + +// attributes for cond, dynamically allocated by library +type Pthread_condattr_t = X_pthread_condattr /* types.h:504:3 */ + +// pthread_once +type X_once = struct{ F__pthread_once_pad [4]uint64 } /* types.h:509:9 */ + +// pthread_once +type Pthread_once_t = X_once /* types.h:511:3 */ + +// UNIX 98 Extensions +// attributes for rwlock, dynamically allocated by library +type X_pthread_rwlockattr = struct{ F__pthread_rwlockattrp uintptr } /* types.h:517:9 */ + +// UNIX 98 Extensions +// attributes for rwlock, dynamically allocated by library +type Pthread_rwlockattr_t = X_pthread_rwlockattr /* types.h:519:3 */ + +// SUSV3 +// attributes for pthread_barrier_t, dynamically allocated by library +type Pthread_barrierattr_t = struct{ F__pthread_barrierattrp uintptr } /* types.h:527:3 */ + +type Dev_t = uint64 /* types.h:529:17 */ // expanded device type + +type Nlink_t = uint32 /* types.h:532:16 */ // file link type +type Pid_t = int32 /* types.h:533:13 */ // size of something in bytes + +type Ssize_t = int64 /* types.h:551:14 */ // size of something in bytes or -1 + +type Time_t = int64 /* types.h:559:15 */ // time of day in seconds + +type Clock_t = int64 /* types.h:564:15 */ // relative time in a specified resolution + +type Clockid_t = int32 /* types.h:569:13 */ // clock identifier type + +type Timer_t = int32 /* types.h:574:13 */ // timer identifier type + +// BEGIN CSTYLED +type Unchar = uint8 /* types.h:580:23 */ +type Ushort = uint16 /* types.h:581:24 */ +type Uint = uint32 /* types.h:582:22 */ +type Ulong = uint64 /* types.h:583:23 */ +// END CSTYLED + +// The following is the value of type id_t to use to indicate the +// caller's current id. See procset.h for the type idtype_t +// which defines which kind of id is being specified. + +// The following value of type pfn_t is used to indicate +// invalid page frame number. + +// BEGIN CSTYLED +type U_char = uint8 /* types.h:650:23 */ +type U_short = uint16 /* types.h:651:24 */ +type U_int = uint32 /* types.h:652:22 */ +type U_long = uint64 /* types.h:653:23 */ +type X_quad = struct{ Fval [2]int32 } /* types.h:654:9 */ + +type Quad_t = X_quad /* types.h:654:38 */ // used by UFS +type Quad = Quad_t /* types.h:655:17 */ // used by UFS +// END CSTYLED + +// Nested include for BSD/sockets source compatibility. +// (The select macros used to be defined here). +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// +// Copyright 2010 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// University Copyright- Copyright (c) 1982, 1986, 1988 +// The Regents of the University of California +// All Rights Reserved +// +// University Acknowledgment- Portions of this document are derived from +// software developed by the University of California, Berkeley, and its +// contributors. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2005 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Implementation-private. This header should not be included +// directly by an application. The application should instead +// include which includes this header conditionally +// depending on which feature test macros are defined. By default, +// this header is included by . X/Open and POSIX +// standards requirements result in this header being included +// by only under a restricted set of conditions. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Time expressed in seconds and nanoseconds + +type Timespec = struct { + Ftv_sec int64 + Ftv_nsec int64 +} /* time_impl.h:57:9 */ + +// used by UFS +// END CSTYLED + +// Nested include for BSD/sockets source compatibility. +// (The select macros used to be defined here). +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// +// Copyright 2010 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// University Copyright- Copyright (c) 1982, 1986, 1988 +// The Regents of the University of California +// All Rights Reserved +// +// University Acknowledgment- Portions of this document are derived from +// software developed by the University of California, Berkeley, and its +// contributors. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2005 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Implementation-private. This header should not be included +// directly by an application. The application should instead +// include which includes this header conditionally +// depending on which feature test macros are defined. By default, +// this header is included by . X/Open and POSIX +// standards requirements result in this header being included +// by only under a restricted set of conditions. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Time expressed in seconds and nanoseconds + +type Timespec_t = Timespec /* time_impl.h:60:3 */ + +type Timestruc_t = Timespec /* time_impl.h:81:25 */ // definition per SVr4 + +// The following has been left in for backward compatibility. Portable +// applications should not use the structure name timestruc. + +// Timer specification +type Itimerspec = struct { + Fit_interval struct { + Ftv_sec int64 + Ftv_nsec int64 + } + Fit_value struct { + Ftv_sec int64 + Ftv_nsec int64 + } +} /* time_impl.h:95:9 */ + +// definition per SVr4 + +// The following has been left in for backward compatibility. Portable +// applications should not use the structure name timestruc. + +// Timer specification +type Itimerspec_t = Itimerspec /* time_impl.h:98:3 */ + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright (c) 1982, 1986, 1993 Regents of the University of California. +// All rights reserved. The Berkeley software License Agreement +// specifies the terms and conditions for redistribution. + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2020 OmniOS Community Edition (OmniOSce) Association. + +// Copyright (c) 2013, 2016 by Delphix. All rights reserved. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Structure returned by gettimeofday(2) system call, +// and used in other calls. + +type Timeval = struct { + Ftv_sec int64 + Ftv_usec int64 +} /* time.h:54:1 */ + +type Timezone = struct { + Ftz_minuteswest int32 + Ftz_dsttime int32 +} /* time.h:86:1 */ + +// Needed for longlong_t type. Placement of this due to +// including which relies on the presense of the itimerval +// structure. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2021 Oxide Computer Company + +// Operations on timevals. + +// Names of the interval timers, and structure +// defining a timer setting. +// time and when system is running on +// behalf of the process. +// time profiling of multithreaded +// programs. + +type Itimerval = struct { + Fit_interval struct { + Ftv_sec int64 + Ftv_usec int64 + } + Fit_value struct { + Ftv_sec int64 + Ftv_usec int64 + } +} /* time.h:209:1 */ + +// Definitions for commonly used resolutions. + +// Time expressed as a 64-bit nanosecond counter. +type Hrtime_t = int64 /* time.h:265:20 */ + +// The inclusion of is historical and was added for +// backward compatibility in delta 1.2 when a number of definitions +// were moved out of . More recently, the timespec and +// itimerspec structure definitions, along with the _CLOCK_*, CLOCK_*, +// _TIMER_*, and TIMER_* symbols were moved to , +// which is now included by . This change was due to POSIX +// 1003.1b-1993 and X/Open UNIX 98 requirements. For non-POSIX and +// non-X/Open applications, including this header will still make +// visible these definitions. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1988 AT&T +// All Rights Reserved + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2007 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2010 Nexenta Systems, Inc. Al rights reserved. +// Copyright 2016 Joyent, Inc. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1988 AT&T +// All Rights Reserved + +// Copyright 2014 Garrett D'Amore +// Copyright 2014 PALO, Richard. +// +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// An application should not include this header directly. Instead it +// should be included only through the inclusion of other Sun headers. +// +// The contents of this header is limited to identifiers specified in the +// C Standard. Any new identifiers specified in future amendments to the +// C Standard must be placed in this header. If these new identifiers +// are required to also be in the C++ Standard "std" namespace, then for +// anything other than macro definitions, corresponding "using" directives +// must also be added to . + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// This file and its contents are supplied under the terms of the +// Common Development and Distribution License ("CDDL"), version 1.0. +// You may only use this file in accordance with the terms of version +// 1.0 of the CDDL. +// +// A full copy of the text of the CDDL should have accompanied this +// source. A copy of the CDDL is also available via the Internet at +// http://www.illumos.org/license/CDDL. + +// Copyright 2014-2016 PALO, Richard. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// POSIX.1-2008 requires that the NULL macro be cast to type void *. + +type Tm = struct { + Ftm_sec int32 + Ftm_min int32 + Ftm_hour int32 + Ftm_mday int32 + Ftm_mon int32 + Ftm_year int32 + Ftm_wday int32 + Ftm_yday int32 + Ftm_isdst int32 +} /* time_iso.h:80:1 */ + +// Neither X/Open nor POSIX allow the inclusion of for the +// definition of the sigevent structure. Both require the inclusion +// of and when using the timer_create() function. +// However, X/Open also specifies that the sigevent structure be defined +// in as described in the header . This prevents +// compiler warnings for applications that only include and not +// also . The sigval union and the sigevent structure is +// therefore defined both here and in which gets included +// via inclusion of . +type Sigval = struct { + F__ccgo_pad1 [0]uint64 + Fsival_int int32 + F__ccgo_pad2 [4]byte +} /* time.h:125:1 */ + +type Sigevent = struct { + Fsigev_notify int32 + Fsigev_signo int32 + Fsigev_value struct { + F__ccgo_pad1 [0]uint64 + Fsival_int int32 + F__ccgo_pad2 [4]byte + } + Fsigev_notify_function uintptr + Fsigev_notify_attributes uintptr + F__sigev_pad2 int32 + F__ccgo_pad1 [4]byte +} /* time.h:133:1 */ + +type Locale_t = uintptr /* time.h:292:24 */ + +// The inclusion of is needed for the FD_CLR, +// FD_ISSET, FD_SET, and FD_SETSIZE macros as well as the +// select() prototype defined in the XOpen specifications +// beginning with XSH4v2. Placement required after definition +// for itimerval. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// +// Copyright 2010 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// University Copyright- Copyright (c) 1982, 1986, 1988 +// The Regents of the University of California +// All Rights Reserved +// +// University Acknowledgment- Portions of this document are derived from +// software developed by the University of California, Berkeley, and its +// contributors. + +// The sigset_t type is defined in and duplicated +// in as a result of XPG4v2 requirements. XPG6 +// now allows the visibility of signal.h in this header, however +// an order of inclusion problem occurs as a result of inclusion +// of in under certain conditions. +// Rather than include here, we've duplicated +// the sigset_t type instead. This type is required for the XPG6 +// introduced pselect() function also declared in this header. +type Sigset_t = struct{ F__sigbits [4]uint32 } /* select.h:76:3 */ + +// Select uses bit masks of file descriptors in longs. +// These macros manipulate such bit fields. +// FD_SETSIZE may be defined by the user, but the default here +// should be >= RLIM_FD_MAX. + +type Fd_mask = int64 /* select.h:92:14 */ +type Fds_mask = int64 /* select.h:94:14 */ + +// The value of _NBBY needs to be consistant with the value +// of NBBY in . + +type Fd_set1 = struct{ Ffds_bits [1024]int64 } /* select.h:120:9 */ + +// The value of _NBBY needs to be consistant with the value +// of NBBY in . + +type Fd_set = Fd_set1 /* select.h:125:3 */ + +// _VOID was defined to be either void or char but this is not +// required because previous SunOS compilers have accepted the void +// type. However, because many system header and source files use the +// void keyword, the volatile keyword, and ANSI C function prototypes, +// non-ANSI compilers cannot compile the system anyway. The _VOID macro +// should therefore not be used and remains for source compatibility +// only. +// CSTYLED + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2014 Garrett D'Amore +// Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved. + +// Copyright (c) 1990, 1991 UNIX System Laboratories, Inc. +// Copyright (c) 1984, 1986, 1987, 1988, 1989, 1990 AT&T +// All Rights Reserved + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2021 Oxide Computer Company + +// The implementation specific header includes a +// definition for timestruc_t needed by the stat structure. However, +// including either , which includes , or +// including directly will break both X/Open and +// POSIX namespace. Preceeding tag, structure, and structure member +// names with underscores eliminates the namespace breakage and at the +// same time, with unique type names, eliminates the possibility of +// timespec_t or timestruct_t naming conflicts that could otherwise +// result based on the order of inclusion of and +// . The header contains the +// standards namespace safe versions of these definitions. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2005 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Implementation-private. This header should not be included +// directly by an application. The application should instead +// include which includes this header conditionally +// depending on which feature test macros are defined. By default, +// this header is included by . X/Open and POSIX +// standards requirements result in this header being included +// by only under a restricted set of conditions. + +// stat structure, used by stat(2) and fstat(2) + +// large file compilation environment setup + +// In the LP64 compilation environment, map large file interfaces +// back to native versions where possible. + +// User level stat structure definitions. + +type Stat = struct { + Fst_dev uint64 + Fst_ino uint64 + Fst_mode uint32 + Fst_nlink uint32 + Fst_uid uint32 + Fst_gid uint32 + Fst_rdev uint64 + Fst_size int64 + Fst_atim Timestruc_t + Fst_mtim Timestruc_t + Fst_ctim Timestruc_t + Fst_blksize int32 + F__ccgo_pad1 [4]byte + Fst_blocks int64 + Fst_fstype [16]int8 +} /* stat.h:217:1 */ + +// transitional large file interface version + +type Stat64 = struct { + Fst_dev uint64 + Fst_ino uint64 + Fst_mode uint32 + Fst_nlink uint32 + Fst_uid uint32 + Fst_gid uint32 + Fst_rdev uint64 + Fst_size int64 + Fst_atim Timestruc_t + Fst_mtim Timestruc_t + Fst_ctim Timestruc_t + Fst_blksize int32 + F__ccgo_pad1 [4]byte + Fst_blocks int64 + Fst_fstype [16]int8 +} /* stat.h:278:1 */ + +// Copyright (c) 1989, 1993 +// The Regents of the University of California. All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// 1. Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// 2. Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer in the +// documentation and/or other materials provided with the distribution. +// 3. Neither the name of the University nor the names of its contributors +// may be used to endorse or promote products derived from this software +// without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +// SUCH DAMAGE. + +type X_ftsent = struct { + Ffts_cycle uintptr + Ffts_parent uintptr + Ffts_link uintptr + Ffts_number int64 + Ffts_pointer uintptr + Ffts_accpath uintptr + Ffts_path uintptr + Ffts_errno int32 + Ffts_symfd int32 + Ffts_pathlen uint64 + Ffts_namelen uint64 + Ffts_ino uint64 + Ffts_dev uint64 + Ffts_nlink uint32 + Ffts_level int32 + Ffts_info uint16 + Ffts_flags uint16 + Ffts_instr uint16 + Ffts_spare uint16 + Ffts_statp uintptr + Ffts_name [1]int8 + F__ccgo_pad1 [7]byte +} /* fts.h:38:2 */ + +// Copyright (c) 1989, 1993 +// The Regents of the University of California. All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// 1. Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// 2. Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer in the +// documentation and/or other materials provided with the distribution. +// 3. Neither the name of the University nor the names of its contributors +// may be used to endorse or promote products derived from this software +// without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +// SUCH DAMAGE. + +type FTS = struct { + Ffts_cur uintptr + Ffts_child uintptr + Ffts_array uintptr + Ffts_dev uint64 + Ffts_path uintptr + Ffts_rfd int32 + F__ccgo_pad1 [4]byte + Ffts_pathlen uint64 + Ffts_nitems int32 + F__ccgo_pad2 [4]byte + Ffts_compar uintptr + Ffts_options int32 + F__ccgo_pad3 [4]byte +} /* fts.h:60:3 */ + +type FTSENT = X_ftsent /* fts.h:113:3 */ + +var _ int8 /* gen.c:5:13: */ diff --git a/vendor/modernc.org/libc/fts/fts_linux_loong64.go b/vendor/modernc.org/libc/fts/fts_linux_loong64.go new file mode 100644 index 000000000..6e7ba205d --- /dev/null +++ b/vendor/modernc.org/libc/fts/fts_linux_loong64.go @@ -0,0 +1,2098 @@ +// Code generated by 'ccgo fts/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o fts/fts_linux_loong64.go -pkgname fts', DO NOT EDIT. + +package fts + +import ( + "math" + "reflect" + "sync/atomic" + "unsafe" +) + +var _ = math.Pi +var _ reflect.Kind +var _ atomic.Value +var _ unsafe.Pointer + +const ( + ACCESSPERMS = 511 // stat.h:195:1: + ALLPERMS = 4095 // stat.h:196:1: + BIG_ENDIAN = 4321 // endian.h:28:1: + BYTE_ORDER = 1234 // endian.h:30:1: + DEFFILEMODE = 438 // stat.h:197:1: + FD_SETSIZE = 1024 // select.h:73:1: + FTS_AGAIN = 1 // fts.h:139:1: + FTS_COMFOLLOW = 0x0001 // fts.h:68:1: + FTS_D = 1 // fts.h:119:1: + FTS_DC = 2 // fts.h:120:1: + FTS_DEFAULT = 3 // fts.h:121:1: + FTS_DNR = 4 // fts.h:122:1: + FTS_DONTCHDIR = 0x01 // fts.h:135:1: + FTS_DOT = 5 // fts.h:123:1: + FTS_DP = 6 // fts.h:124:1: + FTS_ERR = 7 // fts.h:125:1: + FTS_F = 8 // fts.h:126:1: + FTS_FOLLOW = 2 // fts.h:140:1: + FTS_INIT = 9 // fts.h:127:1: + FTS_LOGICAL = 0x0002 // fts.h:69:1: + FTS_NAMEONLY = 0x0100 // fts.h:78:1: + FTS_NOCHDIR = 0x0004 // fts.h:70:1: + FTS_NOINSTR = 3 // fts.h:141:1: + FTS_NOSTAT = 0x0008 // fts.h:71:1: + FTS_NS = 10 // fts.h:128:1: + FTS_NSOK = 11 // fts.h:129:1: + FTS_OPTIONMASK = 0x00ff // fts.h:76:1: + FTS_PHYSICAL = 0x0010 // fts.h:72:1: + FTS_ROOTLEVEL = 0 // fts.h:116:1: + FTS_ROOTPARENTLEVEL = -1 // fts.h:115:1: + FTS_SEEDOT = 0x0020 // fts.h:73:1: + FTS_SKIP = 4 // fts.h:142:1: + FTS_SL = 12 // fts.h:130:1: + FTS_SLNONE = 13 // fts.h:131:1: + FTS_STOP = 0x0200 // fts.h:79:1: + FTS_SYMFOLLOW = 0x02 // fts.h:136:1: + FTS_W = 14 // fts.h:132:1: + FTS_WHITEOUT = 0x0080 // fts.h:75:1: + FTS_XDEV = 0x0040 // fts.h:74:1: + LITTLE_ENDIAN = 1234 // endian.h:27:1: + PDP_ENDIAN = 3412 // endian.h:29:1: + S_BLKSIZE = 512 // stat.h:199:1: + S_IEXEC = 64 // stat.h:177:1: + S_IFBLK = 24576 // stat.h:107:1: + S_IFCHR = 8192 // stat.h:106:1: + S_IFDIR = 16384 // stat.h:105:1: + S_IFIFO = 4096 // stat.h:110:1: + S_IFLNK = 40960 // stat.h:113:1: + S_IFMT = 61440 // stat.h:104:1: + S_IFREG = 32768 // stat.h:108:1: + S_IFSOCK = 49152 // stat.h:117:1: + S_IREAD = 256 // stat.h:175:1: + S_IRGRP = 32 // stat.h:180:1: + S_IROTH = 4 // stat.h:186:1: + S_IRUSR = 256 // stat.h:168:1: + S_IRWXG = 56 // stat.h:184:1: + S_IRWXO = 7 // stat.h:190:1: + S_IRWXU = 448 // stat.h:172:1: + S_ISGID = 1024 // stat.h:161:1: + S_ISUID = 2048 // stat.h:160:1: + S_ISVTX = 512 // stat.h:165:1: + S_IWGRP = 16 // stat.h:181:1: + S_IWOTH = 2 // stat.h:187:1: + S_IWRITE = 128 // stat.h:176:1: + S_IWUSR = 128 // stat.h:169:1: + S_IXGRP = 8 // stat.h:182:1: + S_IXOTH = 1 // stat.h:188:1: + S_IXUSR = 64 // stat.h:170:1: + UTIME_NOW = 1073741823 // stat.h:56:1: + UTIME_OMIT = 1073741822 // stat.h:57:1: + X_ABILP64 = 3 // :377:1: + X_ATFILE_SOURCE = 1 // features.h:353:1: + X_BITS_ATOMIC_WIDE_COUNTER_H = 0 // atomic_wide_counter.h:20:1: + X_BITS_BYTESWAP_H = 1 // byteswap.h:24:1: + X_BITS_ENDIANNESS_H = 1 // endianness.h:2:1: + X_BITS_ENDIAN_H = 1 // endian.h:20:1: + X_BITS_PTHREADTYPES_ARCH_H = 1 // pthreadtypes-arch.h:21:1: + X_BITS_PTHREADTYPES_COMMON_H = 1 // pthreadtypes.h:20:1: + X_BITS_STAT_H = 1 // stat.h:23:1: + X_BITS_STDINT_INTN_H = 1 // stdint-intn.h:20:1: + X_BITS_STRUCT_STAT_H = 1 // struct_stat.h:24:1: + X_BITS_TIME64_H = 1 // time64.h:24:1: + X_BITS_TYPESIZES_H = 1 // typesizes.h:24:1: + X_BITS_TYPES_H = 1 // types.h:24:1: + X_BITS_UINTN_IDENTITY_H = 1 // uintn-identity.h:24:1: + X_BSD_SIZE_T_ = 0 // stddef.h:193:1: + X_BSD_SIZE_T_DEFINED_ = 0 // stddef.h:196:1: + X_DEFAULT_SOURCE = 1 // features.h:238:1: + X_ENDIAN_H = 1 // endian.h:19:1: + X_FEATURES_H = 1 // features.h:19:1: + X_FILE_OFFSET_BITS = 64 // :25:1: + X_FTS_H = 1 // fts.h:51:1: + X_GCC_SIZE_T = 0 // stddef.h:200:1: + X_LOONGARCH_ARCH = "loongarch64" // :214:1: + X_LOONGARCH_ARCH_LOONGARCH64 = 1 // :340:1: + X_LOONGARCH_FPSET = 32 // :265:1: + X_LOONGARCH_SIM = 3 // :233:1: + X_LOONGARCH_SPFPSET = 32 // :88:1: + X_LOONGARCH_SZINT = 32 // :230:1: + X_LOONGARCH_SZLONG = 64 // :388:1: + X_LOONGARCH_SZPTR = 64 // :200:1: + X_LOONGARCH_TUNE = "la464" // :245:1: + X_LOONGARCH_TUNE_LA464 = 1 // :63:1: + X_LP64 = 1 // :372:1: + X_POSIX_C_SOURCE = 200809 // features.h:292:1: + X_POSIX_SOURCE = 1 // features.h:290:1: + X_SIZET_ = 0 // stddef.h:201:1: + X_SIZE_T = 0 // stddef.h:187:1: + X_SIZE_T_ = 0 // stddef.h:192:1: + X_SIZE_T_DECLARED = 0 // stddef.h:197:1: + X_SIZE_T_DEFINED = 0 // stddef.h:195:1: + X_SIZE_T_DEFINED_ = 0 // stddef.h:194:1: + X_STATBUF_ST_BLKSIZE = 0 // struct_stat.h:122:1: + X_STATBUF_ST_NSEC = 0 // struct_stat.h:125:1: + X_STATBUF_ST_RDEV = 0 // struct_stat.h:123:1: + X_STDC_PREDEF_H = 1 // :223:1: + X_STRUCT_TIMESPEC = 1 // struct_timespec.h:3:1: + X_SYS_CDEFS_H = 1 // cdefs.h:20:1: + X_SYS_SELECT_H = 1 // select.h:22:1: + X_SYS_SIZE_T_H = 0 // stddef.h:188:1: + X_SYS_STAT_H = 1 // stat.h:23:1: + X_SYS_TYPES_H = 1 // types.h:23:1: + X_THREAD_MUTEX_INTERNAL_H = 1 // struct_mutex.h:20:1: + X_THREAD_SHARED_TYPES_H = 1 // thread-shared-types.h:20:1: + X_T_SIZE = 0 // stddef.h:190:1: + X_T_SIZE_ = 0 // stddef.h:189:1: + Linux = 1 // :308:1: + Unix = 1 // :247:1: +) + +type Ptrdiff_t = int64 /* :3:26 */ + +type Size_t = uint64 /* :9:23 */ + +type Wchar_t = int32 /* :15:24 */ + +type X__int128_t = struct { + Flo int64 + Fhi int64 +} /* :21:43 */ // must match modernc.org/mathutil.Int128 +type X__uint128_t = struct { + Flo uint64 + Fhi uint64 +} /* :22:44 */ // must match modernc.org/mathutil.Int128 + +type X__builtin_va_list = uintptr /* :46:14 */ +type X__float128 = float64 /* :47:21 */ + +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// POSIX Standard: 2.6 Primitive System Data Types + +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// These are defined by the user (or the compiler) +// to specify the desired environment: +// +// __STRICT_ANSI__ ISO Standard C. +// _ISOC99_SOURCE Extensions to ISO C89 from ISO C99. +// _ISOC11_SOURCE Extensions to ISO C99 from ISO C11. +// _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X. +// __STDC_WANT_LIB_EXT2__ +// Extensions to ISO C99 from TR 27431-2:2010. +// __STDC_WANT_IEC_60559_BFP_EXT__ +// Extensions to ISO C11 from TS 18661-1:2014. +// __STDC_WANT_IEC_60559_FUNCS_EXT__ +// Extensions to ISO C11 from TS 18661-4:2015. +// __STDC_WANT_IEC_60559_TYPES_EXT__ +// Extensions to ISO C11 from TS 18661-3:2015. +// __STDC_WANT_IEC_60559_EXT__ +// ISO C2X interfaces defined only in Annex F. +// +// _POSIX_SOURCE IEEE Std 1003.1. +// _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2; +// if >=199309L, add IEEE Std 1003.1b-1993; +// if >=199506L, add IEEE Std 1003.1c-1995; +// if >=200112L, all of IEEE 1003.1-2004 +// if >=200809L, all of IEEE 1003.1-2008 +// _XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if +// Single Unix conformance is wanted, to 600 for the +// sixth revision, to 700 for the seventh revision. +// _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions. +// _LARGEFILE_SOURCE Some more functions for correct standard I/O. +// _LARGEFILE64_SOURCE Additional functionality from LFS for large files. +// _FILE_OFFSET_BITS=N Select default filesystem interface. +// _ATFILE_SOURCE Additional *at interfaces. +// _DYNAMIC_STACK_SIZE_SOURCE Select correct (but non compile-time constant) +// MINSIGSTKSZ, SIGSTKSZ and PTHREAD_STACK_MIN. +// _GNU_SOURCE All of the above, plus GNU extensions. +// _DEFAULT_SOURCE The default set of features (taking precedence over +// __STRICT_ANSI__). +// +// _FORTIFY_SOURCE Add security hardening to many library functions. +// Set to 1, 2 or 3; 3 performs stricter checks than 2, which +// performs stricter checks than 1. +// +// _REENTRANT, _THREAD_SAFE +// Obsolete; equivalent to _POSIX_C_SOURCE=199506L. +// +// The `-ansi' switch to the GNU C compiler, and standards conformance +// options such as `-std=c99', define __STRICT_ANSI__. If none of +// these are defined, or if _DEFAULT_SOURCE is defined, the default is +// to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to +// 200809L, as well as enabling miscellaneous functions from BSD and +// SVID. If more than one of these are defined, they accumulate. For +// example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together +// give you ISO C, 1003.1, and 1003.2, but nothing else. +// +// These are defined by this file and are used by the +// header files to decide what to declare or define: +// +// __GLIBC_USE (F) Define things from feature set F. This is defined +// to 1 or 0; the subsequent macros are either defined +// or undefined, and those tests should be moved to +// __GLIBC_USE. +// __USE_ISOC11 Define ISO C11 things. +// __USE_ISOC99 Define ISO C99 things. +// __USE_ISOC95 Define ISO C90 AMD1 (C95) things. +// __USE_ISOCXX11 Define ISO C++11 things. +// __USE_POSIX Define IEEE Std 1003.1 things. +// __USE_POSIX2 Define IEEE Std 1003.2 things. +// __USE_POSIX199309 Define IEEE Std 1003.1, and .1b things. +// __USE_POSIX199506 Define IEEE Std 1003.1, .1b, .1c and .1i things. +// __USE_XOPEN Define XPG things. +// __USE_XOPEN_EXTENDED Define X/Open Unix things. +// __USE_UNIX98 Define Single Unix V2 things. +// __USE_XOPEN2K Define XPG6 things. +// __USE_XOPEN2KXSI Define XPG6 XSI things. +// __USE_XOPEN2K8 Define XPG7 things. +// __USE_XOPEN2K8XSI Define XPG7 XSI things. +// __USE_LARGEFILE Define correct standard I/O things. +// __USE_LARGEFILE64 Define LFS things with separate names. +// __USE_FILE_OFFSET64 Define 64bit interface as default. +// __USE_MISC Define things from 4.3BSD or System V Unix. +// __USE_ATFILE Define *at interfaces and AT_* constants for them. +// __USE_DYNAMIC_STACK_SIZE Define correct (but non compile-time constant) +// MINSIGSTKSZ, SIGSTKSZ and PTHREAD_STACK_MIN. +// __USE_GNU Define GNU extensions. +// __USE_FORTIFY_LEVEL Additional security measures used, according to level. +// +// The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are +// defined by this file unconditionally. `__GNU_LIBRARY__' is provided +// only for compatibility. All new code should use the other symbols +// to test for features. +// +// All macros listed above as possibly being defined by this file are +// explicitly undefined if they are not explicitly defined. +// Feature-test macros that are not defined by the user or compiler +// but are implied by the other feature-test macros defined (or by the +// lack of any definitions) are defined by the file. +// +// ISO C feature test macros depend on the definition of the macro +// when an affected header is included, not when the first system +// header is included, and so they are handled in +// , which does not have a multiple include +// guard. Feature test macros that can be handled from the first +// system header included are handled here. + +// Undefine everything, so we get a clean slate. + +// Suppress kernel-name space pollution unless user expressedly asks +// for it. + +// Convenience macro to test the version of gcc. +// Use like this: +// #if __GNUC_PREREQ (2,8) +// ... code requiring gcc 2.8 or later ... +// #endif +// Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was +// added in 2.0. + +// Similarly for clang. Features added to GCC after version 4.2 may +// or may not also be available in clang, and clang's definitions of +// __GNUC(_MINOR)__ are fixed at 4 and 2 respectively. Not all such +// features can be queried via __has_extension/__has_feature. + +// Whether to use feature set F. + +// _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for +// _DEFAULT_SOURCE. If _DEFAULT_SOURCE is present we do not +// issue a warning; the expectation is that the source is being +// transitioned to use the new macro. + +// If _GNU_SOURCE was defined by the user, turn on all the other features. + +// If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined, +// define _DEFAULT_SOURCE. + +// This is to enable the ISO C2X extension. + +// This is to enable the ISO C11 extension. + +// This is to enable the ISO C99 extension. + +// This is to enable the ISO C90 Amendment 1:1995 extension. + +// If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE +// is defined, use POSIX.1-2008 (or another version depending on +// _XOPEN_SOURCE). + +// Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be +// defined in all multithreaded code. GNU libc has not required this +// for many years. We now treat them as compatibility synonyms for +// _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with +// comprehensive support for multithreaded code. Using them never +// lowers the selected level of POSIX conformance, only raises it. + +// Features part to handle 64-bit time_t support. +// Copyright (C) 2021-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// We need to know the word size in order to check the time size. +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Bit size of the time_t type at glibc build time, general case. +// Copyright (C) 2018-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Size in bits of the 'time_t' type of the default ABI. + +// The function 'gets' existed in C89, but is impossible to use +// safely. It has been removed from ISO C11 and ISO C++14. Note: for +// compatibility with various implementations of , this test +// must consider only the value of __cplusplus when compiling C++. + +// GNU formerly extended the scanf functions with modified format +// specifiers %as, %aS, and %a[...] that allocate a buffer for the +// input using malloc. This extension conflicts with ISO C99, which +// defines %a as a standalone format specifier that reads a floating- +// point number; moreover, POSIX.1-2008 provides the same feature +// using the modifier letter 'm' instead (%ms, %mS, %m[...]). +// +// We now follow C99 unless GNU extensions are active and the compiler +// is specifically in C89 or C++98 mode (strict or not). For +// instance, with GCC, -std=gnu11 will have C99-compliant scanf with +// or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the +// old extension. + +// ISO C2X added support for a 0b or 0B prefix on binary constants as +// inputs to strtol-family functions (base 0 or 2). This macro is +// used to condition redirection in headers to allow that redirection +// to be disabled when building those functions, despite _GNU_SOURCE +// being defined. + +// Get definitions of __STDC_* predefined macros, if the compiler has +// not preincluded this header automatically. +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// This macro indicates that the installed library is the GNU C Library. +// For historic reasons the value now is 6 and this will stay from now +// on. The use of this variable is deprecated. Use __GLIBC__ and +// __GLIBC_MINOR__ now (see below) when you want to test for a specific +// GNU C library version and use the values in to get +// the sonames of the shared libraries. + +// Major and minor version number of the GNU C library package. Use +// these macros to test for features in specific releases. + +// This is here only because every header file already includes this one. +// Copyright (C) 1992-2023 Free Software Foundation, Inc. +// Copyright The GNU Toolchain Authors. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// We are almost always included from features.h. + +// The GNU libc does not support any K&R compilers or the traditional mode +// of ISO C compilers anymore. Check for some of the combinations not +// supported anymore. + +// Some user header file might have defined this before. + +// Compilers that lack __has_attribute may object to +// #if defined __has_attribute && __has_attribute (...) +// even though they do not need to evaluate the right-hand side of the &&. +// Similarly for __has_builtin, etc. + +// All functions, except those with callbacks or those that +// synchronize memory, are leaf functions. + +// GCC can always grok prototypes. For C++ programs we add throw() +// to help it optimize the function calls. But this only works with +// gcc 2.8.x and egcs. For gcc 3.4 and up we even mark C functions +// as non-throwing using a function attribute since programs can use +// the -fexceptions options for C code as well. + +// These two macros are not used in glibc anymore. They are kept here +// only because some other projects expect the macros to be defined. + +// For these things, GCC behaves the ANSI way normally, +// and the non-ANSI way under -traditional. + +// This is not a typedef so `const __ptr_t' does the right thing. + +// C++ needs to know that types and declarations are C, not C++. + +// Fortify support. + +// Use __builtin_dynamic_object_size at _FORTIFY_SOURCE=3 when available. + +// Support for flexible arrays. +// Headers that should use flexible arrays only if they're "real" +// (e.g. only if they won't affect sizeof()) should test +// #if __glibc_c99_flexarr_available. + +// __asm__ ("xyz") is used throughout the headers to rename functions +// at the assembly language level. This is wrapped by the __REDIRECT +// macro, in order to support compilers that can do this some other +// way. When compilers don't support asm-names at all, we have to do +// preprocessor tricks instead (which don't have exactly the right +// semantics, but it's the best we can do). +// +// Example: +// int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid); + +// +// #elif __SOME_OTHER_COMPILER__ +// +// # define __REDIRECT(name, proto, alias) name proto; _Pragma("let " #name " = " #alias) + +// GCC and clang have various useful declarations that can be made with +// the '__attribute__' syntax. All of the ways we use this do fine if +// they are omitted for compilers that don't understand it. + +// At some point during the gcc 2.96 development the `malloc' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// Tell the compiler which arguments to an allocation function +// indicate the size of the allocation. + +// Tell the compiler which argument to an allocation function +// indicates the alignment of the allocation. + +// At some point during the gcc 2.96 development the `pure' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// This declaration tells the compiler that the value is constant. + +// At some point during the gcc 3.1 development the `used' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// Since version 3.2, gcc allows marking deprecated functions. + +// Since version 4.5, gcc also allows one to specify the message printed +// when a deprecated function is used. clang claims to be gcc 4.2, but +// may also support this feature. + +// At some point during the gcc 2.8 development the `format_arg' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. +// If several `format_arg' attributes are given for the same function, in +// gcc-3.0 and older, all but the last one are ignored. In newer gccs, +// all designated arguments are considered. + +// At some point during the gcc 2.97 development the `strfmon' format +// attribute for functions was introduced. We don't want to use it +// unconditionally (although this would be possible) since it +// generates warnings. + +// The nonnull function attribute marks pointer parameters that +// must not be NULL. This has the name __nonnull in glibc, +// and __attribute_nonnull__ in files shared with Gnulib to avoid +// collision with a different __nonnull in DragonFlyBSD 5.9. + +// The returns_nonnull function attribute marks the return type of the function +// as always being non-null. + +// If fortification mode, we warn about unused results of certain +// function calls which can lead to problems. + +// Forces a function to be always inlined. +// The Linux kernel defines __always_inline in stddef.h (283d7573), and +// it conflicts with this definition. Therefore undefine it first to +// allow either header to be included first. + +// Associate error messages with the source location of the call site rather +// than with the source location inside the function. + +// GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99 +// inline semantics, unless -fgnu89-inline is used. Using __GNUC_STDC_INLINE__ +// or __GNUC_GNU_INLINE is not a good enough check for gcc because gcc versions +// older than 4.3 may define these macros and still not guarantee GNU inlining +// semantics. +// +// clang++ identifies itself as gcc-4.2, but has support for GNU inlining +// semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and +// __GNUC_GNU_INLINE__ macro definitions. + +// GCC 4.3 and above allow passing all anonymous arguments of an +// __extern_always_inline function to some other vararg function. + +// It is possible to compile containing GCC extensions even if GCC is +// run in pedantic mode if the uses are carefully marked using the +// `__extension__' keyword. But this is not generally available before +// version 2.8. + +// __restrict is known in EGCS 1.2 and above, and in clang. +// It works also in C++ mode (outside of arrays), but only when spelled +// as '__restrict', not 'restrict'. + +// ISO C99 also allows to declare arrays as non-overlapping. The syntax is +// array_name[restrict] +// GCC 3.1 and clang support this. +// This syntax is not usable in C++ mode. + +// Describes a char array whose address can safely be passed as the first +// argument to strncpy and strncat, as the char array is not necessarily +// a NUL-terminated string. + +// Undefine (also defined in libc-symbols.h). +// Copies attributes from the declaration or type referenced by +// the argument. + +// Gnulib avoids including these, as they don't work on non-glibc or +// older glibc platforms. +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Properties of long double type. ldbl-128 version. +// Copyright (C) 2016-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// long double is distinct from double, so there is nothing to +// define here. + +// __glibc_macro_warning (MESSAGE) issues warning MESSAGE. This is +// intended for use in preprocessor macros. +// +// Note: MESSAGE must be a _single_ string; concatenation of string +// literals is not supported. + +// Generic selection (ISO C11) is a C-only feature, available in GCC +// since version 4.9. Previous versions do not provide generic +// selection, even though they might set __STDC_VERSION__ to 201112L, +// when in -std=c11 mode. Thus, we must check for !defined __GNUC__ +// when testing __STDC_VERSION__ for generic selection support. +// On the other hand, Clang also defines __GNUC__, so a clang-specific +// check is required to enable the use of generic selection. + +// Designates a 1-based positional argument ref-index of pointer type +// that can be used to access size-index elements of the pointed-to +// array according to access mode, or at least one element when +// size-index is not provided: +// access (access-mode, [, ]) +// For _FORTIFY_SOURCE == 3 we use __builtin_dynamic_object_size, which may +// use the access attribute to get object sizes from function definition +// arguments, so we can't use them on functions we fortify. Drop the object +// size hints for such functions. + +// Designates dealloc as a function to call to deallocate objects +// allocated by the declared function. + +// Specify that a function such as setjmp or vfork may return +// twice. + +// If we don't have __REDIRECT, prototypes will be missing if +// __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64]. + +// Decide whether we can define 'extern inline' functions in headers. + +// This is here only because every header file already includes this one. +// Get the definitions of all the appropriate `__stub_FUNCTION' symbols. +// contains `#define __stub_FUNCTION' when FUNCTION is a stub +// that will always return failure (and set errno to ENOSYS). +// This file is automatically generated. +// This file selects the right generated file of `__stub_FUNCTION' macros +// based on the architecture being compiled for. + +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// This file is automatically generated. +// It defines a symbol `__stub_FUNCTION' for each function +// in the C library which is a stub, meaning it will fail +// every time called, usually setting errno to ENOSYS. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Bit size of the time_t type at glibc build time, general case. +// Copyright (C) 2018-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Size in bits of the 'time_t' type of the default ABI. + +// Convenience types. +type X__u_char = uint8 /* types.h:31:23 */ +type X__u_short = uint16 /* types.h:32:28 */ +type X__u_int = uint32 /* types.h:33:22 */ +type X__u_long = uint64 /* types.h:34:27 */ + +// Fixed-size types, underlying types depend on word size and compiler. +type X__int8_t = int8 /* types.h:37:21 */ +type X__uint8_t = uint8 /* types.h:38:23 */ +type X__int16_t = int16 /* types.h:39:26 */ +type X__uint16_t = uint16 /* types.h:40:28 */ +type X__int32_t = int32 /* types.h:41:20 */ +type X__uint32_t = uint32 /* types.h:42:22 */ +type X__int64_t = int64 /* types.h:44:25 */ +type X__uint64_t = uint64 /* types.h:45:27 */ + +// Smallest types with at least a given width. +type X__int_least8_t = int8 /* types.h:52:18 */ +type X__uint_least8_t = uint8 /* types.h:53:19 */ +type X__int_least16_t = int16 /* types.h:54:19 */ +type X__uint_least16_t = uint16 /* types.h:55:20 */ +type X__int_least32_t = int32 /* types.h:56:19 */ +type X__uint_least32_t = uint32 /* types.h:57:20 */ +type X__int_least64_t = int64 /* types.h:58:19 */ +type X__uint_least64_t = uint64 /* types.h:59:20 */ + +// quad_t is also 64 bits. +type X__quad_t = int64 /* types.h:63:18 */ +type X__u_quad_t = uint64 /* types.h:64:27 */ + +// Largest integral types. +type X__intmax_t = int64 /* types.h:72:18 */ +type X__uintmax_t = uint64 /* types.h:73:27 */ + +// The machine-dependent file defines __*_T_TYPE +// macros for each of the OS types we define below. The definitions +// of those macros must use the following macros for underlying types. +// We define __S_TYPE and __U_TYPE for the signed and unsigned +// variants of each of the following integer types on this machine. +// +// 16 -- "natural" 16-bit type (always short) +// 32 -- "natural" 32-bit type (always int) +// 64 -- "natural" 64-bit type (long or long long) +// LONG32 -- 32-bit type, traditionally long +// QUAD -- 64-bit type, traditionally long long +// WORD -- natural type of __WORDSIZE bits (int or long) +// LONGWORD -- type of __WORDSIZE bits, traditionally long +// +// We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the +// conventional uses of `long' or `long long' type modifiers match the +// types we define, even when a less-adorned type would be the same size. +// This matters for (somewhat) portably writing printf/scanf formats for +// these types, where using the appropriate l or ll format modifiers can +// make the typedefs and the formats match up across all GNU platforms. If +// we used `long' when it's 64 bits where `long long' is expected, then the +// compiler would warn about the formats not matching the argument types, +// and the programmer changing them to shut up the compiler would break the +// program's portability. +// +// Here we assume what is presently the case in all the GCC configurations +// we support: long long is always 64 bits, long is always word/address size, +// and int is always 32 bits. + +// No need to mark the typedef with __extension__. +// bits/typesizes.h -- underlying types for *_t. For the generic Linux ABI. +// Copyright (C) 2011-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library. If not, see +// . + +// See for the meaning of these macros. This file exists so +// that need not vary across different GNU platforms. + +// Tell the libc code that off_t and off64_t are actually the same type +// for all ABI purposes, even if possibly expressed as different base types +// for C type-checking purposes. + +// Same for ino_t and ino64_t. + +// And for __rlim_t and __rlim64_t. + +// And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t. + +// And for getitimer, setitimer and rusage + +// Number of descriptors that can fit in an `fd_set'. + +// bits/time64.h -- underlying types for __time64_t. Generic version. +// Copyright (C) 2018-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Define __TIME64_T_TYPE so that it is always a 64-bit type. + +// If we already have 64-bit time type then use it. + +type X__dev_t = uint64 /* types.h:145:25 */ // Type of device numbers. +type X__uid_t = uint32 /* types.h:146:25 */ // Type of user identifications. +type X__gid_t = uint32 /* types.h:147:25 */ // Type of group identifications. +type X__ino_t = uint64 /* types.h:148:25 */ // Type of file serial numbers. +type X__ino64_t = uint64 /* types.h:149:27 */ // Type of file serial numbers (LFS). +type X__mode_t = uint32 /* types.h:150:26 */ // Type of file attribute bitmasks. +type X__nlink_t = uint32 /* types.h:151:27 */ // Type of file link counts. +type X__off_t = int64 /* types.h:152:25 */ // Type of file sizes and offsets. +type X__off64_t = int64 /* types.h:153:27 */ // Type of file sizes and offsets (LFS). +type X__pid_t = int32 /* types.h:154:25 */ // Type of process identifications. +type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs. +type X__clock_t = int64 /* types.h:156:27 */ // Type of CPU usage counts. +type X__rlim_t = uint64 /* types.h:157:26 */ // Type for resource measurement. +type X__rlim64_t = uint64 /* types.h:158:28 */ // Type for resource measurement (LFS). +type X__id_t = uint32 /* types.h:159:24 */ // General type for IDs. +type X__time_t = int64 /* types.h:160:26 */ // Seconds since the Epoch. +type X__useconds_t = uint32 /* types.h:161:30 */ // Count of microseconds. +type X__suseconds_t = int64 /* types.h:162:31 */ // Signed count of microseconds. +type X__suseconds64_t = int64 /* types.h:163:33 */ + +type X__daddr_t = int32 /* types.h:165:27 */ // The type of a disk address. +type X__key_t = int32 /* types.h:166:25 */ // Type of an IPC key. + +// Clock ID used in clock and timer functions. +type X__clockid_t = int32 /* types.h:169:29 */ + +// Timer ID returned by `timer_create'. +type X__timer_t = uintptr /* types.h:172:12 */ + +// Type to represent block size. +type X__blksize_t = int32 /* types.h:175:29 */ + +// Types from the Large File Support interface. + +// Type to count number of disk blocks. +type X__blkcnt_t = int64 /* types.h:180:28 */ +type X__blkcnt64_t = int64 /* types.h:181:30 */ + +// Type to count file system blocks. +type X__fsblkcnt_t = uint64 /* types.h:184:30 */ +type X__fsblkcnt64_t = uint64 /* types.h:185:32 */ + +// Type to count file system nodes. +type X__fsfilcnt_t = uint64 /* types.h:188:30 */ +type X__fsfilcnt64_t = uint64 /* types.h:189:32 */ + +// Type of miscellaneous file system fields. +type X__fsword_t = int64 /* types.h:192:28 */ + +type X__ssize_t = int64 /* types.h:194:27 */ // Type of a byte count, or error. + +// Signed long type used in system calls. +type X__syscall_slong_t = int64 /* types.h:197:33 */ +// Unsigned long type used in system calls. +type X__syscall_ulong_t = uint64 /* types.h:199:33 */ + +// These few don't really vary by system, they always correspond +// +// to one of the other defined types. +type X__loff_t = int64 /* types.h:203:19 */ // Type of file sizes and offsets (LFS). +type X__caddr_t = uintptr /* types.h:204:14 */ + +// Duplicates info from stdint.h but this is used in unistd.h. +type X__intptr_t = int64 /* types.h:207:25 */ + +// Duplicate info from sys/socket.h. +type X__socklen_t = uint32 /* types.h:210:23 */ + +// C99: An integer type that can be accessed as an atomic entity, +// +// even in the presence of asynchronous interrupts. +// It is not currently necessary for this to be machine-specific. +type X__sig_atomic_t = int32 /* types.h:215:13 */ + +// Seconds since the Epoch, visible to user code when time_t is too +// narrow only for consistency with the old way of widening too-narrow +// types. User code should never use __time64_t. + +type U_char = uint8 /* types.h:33:18 */ +type U_short = uint16 /* types.h:34:19 */ +type U_int = uint32 /* types.h:35:17 */ +type U_long = uint64 /* types.h:36:18 */ +type Quad_t = int64 /* types.h:37:18 */ +type U_quad_t = uint64 /* types.h:38:20 */ +type Fsid_t = X__fsid_t /* types.h:39:18 */ +type Loff_t = int64 /* types.h:42:18 */ + +type Ino_t = uint64 /* types.h:49:19 */ + +type Dev_t = uint64 /* types.h:59:17 */ + +type Gid_t = uint32 /* types.h:64:17 */ + +type Mode_t = uint32 /* types.h:69:18 */ + +type Nlink_t = uint32 /* types.h:74:19 */ + +type Uid_t = uint32 /* types.h:79:17 */ + +type Off_t = int64 /* types.h:87:19 */ + +type Pid_t = int32 /* types.h:97:17 */ + +type Id_t = uint32 /* types.h:103:16 */ + +type Ssize_t = int64 /* types.h:108:19 */ + +type Daddr_t = int32 /* types.h:114:19 */ +type Caddr_t = uintptr /* types.h:115:19 */ + +type Key_t = int32 /* types.h:121:17 */ + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Returned by `clock'. +type Clock_t = int64 /* clock_t.h:7:19 */ + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Clock ID used in clock and timer functions. +type Clockid_t = int32 /* clockid_t.h:7:21 */ + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Returned by `time'. +type Time_t = int64 /* time_t.h:10:18 */ + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Timer ID returned by `timer_create'. +type Timer_t = uintptr /* timer_t.h:7:19 */ + +// Wide character type. +// Locale-writers should change this as necessary to +// be big enough to hold unique values not between 0 and 127, +// and not (wchar_t) -1, for each defined multibyte character. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// A null pointer constant. + +// Old compatibility names for C types. +type Ulong = uint64 /* types.h:148:27 */ +type Ushort = uint16 /* types.h:149:28 */ +type Uint = uint32 /* types.h:150:22 */ + +// These size-specific names are used by some of the inet code. + +// Define intN_t types. +// Copyright (C) 2017-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +type Int8_t = int8 /* stdint-intn.h:24:18 */ +type Int16_t = int16 /* stdint-intn.h:25:19 */ +type Int32_t = int32 /* stdint-intn.h:26:19 */ +type Int64_t = int64 /* stdint-intn.h:27:19 */ + +// These were defined by ISO C without the first `_'. +type U_int8_t = uint8 /* types.h:158:19 */ +type U_int16_t = uint16 /* types.h:159:20 */ +type U_int32_t = uint32 /* types.h:160:20 */ +type U_int64_t = uint64 /* types.h:161:20 */ + +type Register_t = int32 /* types.h:164:13 */ + +// It also defines `fd_set' and the FD_* macros for `select'. +// `fd_set' type and related macros, and `select'/`pselect' declarations. +// Copyright (C) 1996-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// POSIX 1003.1g: 6.2 Select from File Descriptor Sets + +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Get definition of needed basic types. +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Get __FD_* definitions. +// Copyright (C) 1997-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// We don't use `memset' because this would require a prototype and +// the array isn't too big. + +// Get sigset_t. + +type X__sigset_t = struct{ F__val [16]uint64 } /* __sigset_t.h:8:3 */ + +// A set of signals to be blocked, unblocked, or waited for. +type Sigset_t = X__sigset_t /* sigset_t.h:7:20 */ + +// Get definition of timer specification structures. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// A time value that is accurate to the nearest +// +// microsecond but also has a range of years. +type Timeval = struct { + Ftv_sec int64 + Ftv_usec int64 +} /* struct_timeval.h:8:1 */ + +// NB: Include guard matches what uses. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Endian macros for string.h functions +// Copyright (C) 1992-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// POSIX.1b structure for a time value. This is like a `struct timeval' but +// +// has nanoseconds instead of microseconds. +type Timespec = struct { + Ftv_sec int64 + Ftv_nsec int64 +} /* struct_timespec.h:11:1 */ + +type Suseconds_t = int64 /* select.h:43:23 */ + +// The fd_set member is required to be an array of longs. +type X__fd_mask = int64 /* select.h:49:18 */ + +// Some versions of define this macros. +// It's easier to assume 8-bit bytes than to get CHAR_BIT. + +// fd_set for select and pselect. +type Fd_set = struct{ F__fds_bits [16]int64 } /* select.h:70:5 */ + +// Maximum number of file descriptors in `fd_set'. + +// Sometimes the fd_set member is assumed to have this type. +type Fd_mask = int64 /* select.h:77:19 */ + +// Define some inlines helping to catch common problems. + +type Blksize_t = int32 /* types.h:185:21 */ + +// Types from the Large File Support interface. +type Blkcnt_t = int64 /* types.h:205:22 */ // Type to count number of disk blocks. +type Fsblkcnt_t = uint64 /* types.h:209:24 */ // Type to count file system blocks. +type Fsfilcnt_t = uint64 /* types.h:213:24 */ // Type to count file system inodes. + +// Now add the thread types. +// Declaration of common pthread types for all architectures. +// Copyright (C) 2017-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// For internal mutex and condition variable definitions. +// Common threading primitives definitions for both POSIX and C11. +// Copyright (C) 2017-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Arch-specific definitions. Each architecture must define the following +// macros to define the expected sizes of pthread data types: +// +// __SIZEOF_PTHREAD_ATTR_T - size of pthread_attr_t. +// __SIZEOF_PTHREAD_MUTEX_T - size of pthread_mutex_t. +// __SIZEOF_PTHREAD_MUTEXATTR_T - size of pthread_mutexattr_t. +// __SIZEOF_PTHREAD_COND_T - size of pthread_cond_t. +// __SIZEOF_PTHREAD_CONDATTR_T - size of pthread_condattr_t. +// __SIZEOF_PTHREAD_RWLOCK_T - size of pthread_rwlock_t. +// __SIZEOF_PTHREAD_RWLOCKATTR_T - size of pthread_rwlockattr_t. +// __SIZEOF_PTHREAD_BARRIER_T - size of pthread_barrier_t. +// __SIZEOF_PTHREAD_BARRIERATTR_T - size of pthread_barrierattr_t. +// +// The additional macro defines any constraint for the lock alignment +// inside the thread structures: +// +// __LOCK_ALIGNMENT - for internal lock/futex usage. +// +// Same idea but for the once locking primitive: +// +// __ONCE_ALIGNMENT - for pthread_once_t/once_flag definition. + +// Machine-specific pthread type layouts. Generic version. +// Copyright (C) 2019-2023 Free Software Foundation, Inc. +// +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Monotonically increasing wide counters (at least 62 bits). +// Copyright (C) 2016-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Counter that is monotonically increasing (by less than 2**31 per +// +// increment), with a single writer, and an arbitrary number of +// readers. +type X__atomic_wide_counter = struct{ F__value64 uint64 } /* atomic_wide_counter.h:33:3 */ + +// Common definition of pthread_mutex_t. + +type X__pthread_internal_list = struct { + F__prev uintptr + F__next uintptr +} /* thread-shared-types.h:51:9 */ + +// Common definition of pthread_mutex_t. + +type X__pthread_list_t = X__pthread_internal_list /* thread-shared-types.h:55:3 */ + +type X__pthread_internal_slist = struct{ F__next uintptr } /* thread-shared-types.h:57:9 */ + +type X__pthread_slist_t = X__pthread_internal_slist /* thread-shared-types.h:60:3 */ + +// Arch-specific mutex definitions. A generic implementation is provided +// by sysdeps/nptl/bits/struct_mutex.h. If required, an architecture +// can override it by defining: +// +// 1. struct __pthread_mutex_s (used on both pthread_mutex_t and mtx_t +// definition). It should contains at least the internal members +// defined in the generic version. +// +// 2. __LOCK_ALIGNMENT for any extra attribute for internal lock used with +// atomic operations. +// +// 3. The macro __PTHREAD_MUTEX_INITIALIZER used for static initialization. +// It should initialize the mutex internal flag. + +// Default mutex implementation struct definitions. +// Copyright (C) 2019-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Generic struct for both POSIX and C11 mutexes. New ports are expected +// to use the default layout, however architecture can redefine it to +// add arch-specific extension (such as lock-elision). The struct have +// a size of 32 bytes on LP32 and 40 bytes on LP64 architectures. + +type X__pthread_mutex_s = struct { + F__lock int32 + F__count uint32 + F__owner int32 + F__nusers uint32 + F__kind int32 + F__spins int32 + F__list X__pthread_list_t +} /* struct_mutex.h:27:1 */ + +// Arch-sepecific read-write lock definitions. A generic implementation is +// provided by struct_rwlock.h. If required, an architecture can override it +// by defining: +// +// 1. struct __pthread_rwlock_arch_t (used on pthread_rwlock_t definition). +// It should contain at least the internal members defined in the +// generic version. +// +// 2. The macro __PTHREAD_RWLOCK_INITIALIZER used for static initialization. +// It should initialize the rwlock internal type. + +// Default read-write lock implementation struct definitions. +// Copyright (C) 2019-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Endian macros for string.h functions +// Copyright (C) 1992-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Generic struct for both POSIX read-write lock. New ports are expected +// to use the default layout, however archictetures can redefine it to add +// arch-specific extensions (such as lock-elision). The struct have a size +// of 32 bytes on both LP32 and LP64 architectures. + +type X__pthread_rwlock_arch_t = struct { + F__readers uint32 + F__writers uint32 + F__wrphase_futex uint32 + F__writers_futex uint32 + F__pad3 uint32 + F__pad4 uint32 + F__flags uint8 + F__shared uint8 + F__pad1 uint8 + F__pad2 uint8 + F__cur_writer int32 +} /* struct_rwlock.h:29:1 */ + +// Common definition of pthread_cond_t. + +type X__pthread_cond_s = struct { + F__wseq X__atomic_wide_counter + F__g1_start X__atomic_wide_counter + F__g_refs [2]uint32 + F__g_size [2]uint32 + F__g1_orig_size uint32 + F__wrefs uint32 + F__g_signals [2]uint32 +} /* thread-shared-types.h:94:1 */ + +type X__tss_t = uint32 /* thread-shared-types.h:105:22 */ +type X__thrd_t = uint64 /* thread-shared-types.h:106:27 */ + +type X__once_flag = struct{ F__data int32 } /* thread-shared-types.h:111:3 */ + +// Thread identifiers. The structure of the attribute type is not +// +// exposed on purpose. +type Pthread_t = uint64 /* pthreadtypes.h:27:27 */ + +// Data structures for mutex handling. The structure of the attribute +// +// type is not exposed on purpose. +type Pthread_mutexattr_t = struct { + F__ccgo_pad1 [0]uint32 + F__size [4]int8 +} /* pthreadtypes.h:36:3 */ + +// Data structure for condition variable handling. The structure of +// +// the attribute type is not exposed on purpose. +type Pthread_condattr_t = struct { + F__ccgo_pad1 [0]uint32 + F__size [4]int8 +} /* pthreadtypes.h:45:3 */ + +// Keys for thread-specific data +type Pthread_key_t = uint32 /* pthreadtypes.h:49:22 */ + +// Once-only execution +type Pthread_once_t = int32 /* pthreadtypes.h:53:30 */ + +type Pthread_attr_t1 = struct { + F__ccgo_pad1 [0]uint64 + F__size [56]int8 +} /* pthreadtypes.h:56:1 */ + +type Pthread_attr_t = Pthread_attr_t1 /* pthreadtypes.h:62:30 */ + +type Pthread_mutex_t = struct{ F__data X__pthread_mutex_s } /* pthreadtypes.h:72:3 */ + +type Pthread_cond_t = struct{ F__data X__pthread_cond_s } /* pthreadtypes.h:80:3 */ + +// Data structure for reader-writer lock variable handling. The +// +// structure of the attribute type is deliberately not exposed. +type Pthread_rwlock_t = struct { + F__ccgo_pad1 [0]uint64 + F__data X__pthread_rwlock_arch_t + F__ccgo_pad2 [24]byte +} /* pthreadtypes.h:91:3 */ + +type Pthread_rwlockattr_t = struct { + F__ccgo_pad1 [0]uint64 + F__size [8]int8 +} /* pthreadtypes.h:97:3 */ + +// POSIX spinlock data type. +type Pthread_spinlock_t = int32 /* pthreadtypes.h:103:22 */ + +// POSIX barriers data type. The structure of the type is +// +// deliberately not exposed. +type Pthread_barrier_t = struct { + F__ccgo_pad1 [0]uint64 + F__size [32]int8 +} /* pthreadtypes.h:112:3 */ + +type Pthread_barrierattr_t = struct { + F__ccgo_pad1 [0]uint32 + F__size [4]int8 +} /* pthreadtypes.h:118:3 */ + +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// POSIX Standard: 5.6 File Characteristics + +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// NB: Include guard matches what uses. + +// The Single Unix specification says that some more types are +// available here. + +// Copyright (C) 1992-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Definition for struct stat. +// Copyright (C) 2020-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library. If not, see +// . + +// Endian macros for string.h functions +// Copyright (C) 1992-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +type Stat = struct { + Fst_dev uint64 + Fst_ino uint64 + Fst_mode uint32 + Fst_nlink uint32 + Fst_uid uint32 + Fst_gid uint32 + Fst_rdev uint64 + F__pad1 uint64 + Fst_size int64 + Fst_blksize int32 + F__pad2 int32 + Fst_blocks int64 + Fst_atim struct { + Ftv_sec int64 + Ftv_nsec int64 + } + Fst_mtim struct { + Ftv_sec int64 + Ftv_nsec int64 + } + Fst_ctim struct { + Ftv_sec int64 + Ftv_nsec int64 + } + F__glibc_reserved [2]int32 +} /* struct_stat.h:44:1 */ + +// File tree traversal functions declarations. +// Copyright (C) 1994-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Copyright (c) 1989, 1993 +// The Regents of the University of California. All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// 1. Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// 2. Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer in the +// documentation and/or other materials provided with the distribution. +// 4. Neither the name of the University nor the names of its contributors +// may be used to endorse or promote products derived from this software +// without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +// SUCH DAMAGE. +// +// @(#)fts.h 8.3 (Berkeley) 8/14/94 + +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// POSIX Standard: 2.6 Primitive System Data Types + +type X_ftsent = struct { + Ffts_cycle uintptr + Ffts_parent uintptr + Ffts_link uintptr + Ffts_number int64 + Ffts_pointer uintptr + Ffts_accpath uintptr + Ffts_path uintptr + Ffts_errno int32 + Ffts_symfd int32 + Ffts_pathlen uint16 + Ffts_namelen uint16 + F__ccgo_pad1 [4]byte + Ffts_ino uint64 + Ffts_dev uint64 + Ffts_nlink uint32 + Ffts_level int16 + Ffts_info uint16 + Ffts_flags uint16 + Ffts_instr uint16 + F__ccgo_pad2 [4]byte + Ffts_statp uintptr + Ffts_name [1]int8 + F__ccgo_pad3 [7]byte +} /* fts.h:58:2 */ + +// File tree traversal functions declarations. +// Copyright (C) 1994-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Copyright (c) 1989, 1993 +// The Regents of the University of California. All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// 1. Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// 2. Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer in the +// documentation and/or other materials provided with the distribution. +// 4. Neither the name of the University nor the names of its contributors +// may be used to endorse or promote products derived from this software +// without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +// SUCH DAMAGE. +// +// @(#)fts.h 8.3 (Berkeley) 8/14/94 + +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// POSIX Standard: 2.6 Primitive System Data Types + +type FTS = struct { + Ffts_cur uintptr + Ffts_child uintptr + Ffts_array uintptr + Ffts_dev uint64 + Ffts_path uintptr + Ffts_rfd int32 + Ffts_pathlen int32 + Ffts_nitems int32 + F__ccgo_pad1 [4]byte + Ffts_compar uintptr + Ffts_options int32 + F__ccgo_pad2 [4]byte +} /* fts.h:81:3 */ + +type FTSENT = X_ftsent /* fts.h:147:3 */ + +var _ int8 /* gen.c:5:13: */ diff --git a/vendor/modernc.org/libc/fts/fts_linux_mips64le.go b/vendor/modernc.org/libc/fts/fts_linux_mips64le.go new file mode 100644 index 000000000..e12eb02cb --- /dev/null +++ b/vendor/modernc.org/libc/fts/fts_linux_mips64le.go @@ -0,0 +1,1904 @@ +// Code generated by 'ccgo fts/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o fts/fts_linux_amd64.go -pkgname fts', DO NOT EDIT. + +package fts + +import ( + "math" + "reflect" + "sync/atomic" + "unsafe" +) + +var _ = math.Pi +var _ reflect.Kind +var _ atomic.Value +var _ unsafe.Pointer + +const ( + ACCESSPERMS = 511 // stat.h:195:1: + ALLPERMS = 4095 // stat.h:196:1: + BIG_ENDIAN = 4321 // endian.h:28:1: + BYTE_ORDER = 1234 // endian.h:30:1: + DEFFILEMODE = 438 // stat.h:197:1: + FD_SETSIZE = 1024 // select.h:73:1: + FTS_AGAIN = 1 // fts.h:139:1: + FTS_COMFOLLOW = 0x0001 // fts.h:68:1: + FTS_D = 1 // fts.h:119:1: + FTS_DC = 2 // fts.h:120:1: + FTS_DEFAULT = 3 // fts.h:121:1: + FTS_DNR = 4 // fts.h:122:1: + FTS_DONTCHDIR = 0x01 // fts.h:135:1: + FTS_DOT = 5 // fts.h:123:1: + FTS_DP = 6 // fts.h:124:1: + FTS_ERR = 7 // fts.h:125:1: + FTS_F = 8 // fts.h:126:1: + FTS_FOLLOW = 2 // fts.h:140:1: + FTS_INIT = 9 // fts.h:127:1: + FTS_LOGICAL = 0x0002 // fts.h:69:1: + FTS_NAMEONLY = 0x0100 // fts.h:78:1: + FTS_NOCHDIR = 0x0004 // fts.h:70:1: + FTS_NOINSTR = 3 // fts.h:141:1: + FTS_NOSTAT = 0x0008 // fts.h:71:1: + FTS_NS = 10 // fts.h:128:1: + FTS_NSOK = 11 // fts.h:129:1: + FTS_OPTIONMASK = 0x00ff // fts.h:76:1: + FTS_PHYSICAL = 0x0010 // fts.h:72:1: + FTS_ROOTLEVEL = 0 // fts.h:116:1: + FTS_ROOTPARENTLEVEL = -1 // fts.h:115:1: + FTS_SEEDOT = 0x0020 // fts.h:73:1: + FTS_SKIP = 4 // fts.h:142:1: + FTS_SL = 12 // fts.h:130:1: + FTS_SLNONE = 13 // fts.h:131:1: + FTS_STOP = 0x0200 // fts.h:79:1: + FTS_SYMFOLLOW = 0x02 // fts.h:136:1: + FTS_W = 14 // fts.h:132:1: + FTS_WHITEOUT = 0x0080 // fts.h:75:1: + FTS_XDEV = 0x0040 // fts.h:74:1: + LITTLE_ENDIAN = 1234 // endian.h:27:1: + PDP_ENDIAN = 3412 // endian.h:29:1: + S_BLKSIZE = 512 // stat.h:199:1: + S_IEXEC = 64 // stat.h:177:1: + S_IFBLK = 24576 // stat.h:107:1: + S_IFCHR = 8192 // stat.h:106:1: + S_IFDIR = 16384 // stat.h:105:1: + S_IFIFO = 4096 // stat.h:110:1: + S_IFLNK = 40960 // stat.h:113:1: + S_IFMT = 61440 // stat.h:104:1: + S_IFREG = 32768 // stat.h:108:1: + S_IFSOCK = 49152 // stat.h:117:1: + S_IREAD = 256 // stat.h:175:1: + S_IRGRP = 32 // stat.h:180:1: + S_IROTH = 4 // stat.h:186:1: + S_IRUSR = 256 // stat.h:168:1: + S_IRWXG = 56 // stat.h:184:1: + S_IRWXO = 7 // stat.h:190:1: + S_IRWXU = 448 // stat.h:172:1: + S_ISGID = 1024 // stat.h:161:1: + S_ISUID = 2048 // stat.h:160:1: + S_ISVTX = 512 // stat.h:165:1: + S_IWGRP = 16 // stat.h:181:1: + S_IWOTH = 2 // stat.h:187:1: + S_IWRITE = 128 // stat.h:176:1: + S_IWUSR = 128 // stat.h:169:1: + S_IXGRP = 8 // stat.h:182:1: + S_IXOTH = 1 // stat.h:188:1: + S_IXUSR = 64 // stat.h:170:1: + UTIME_NOW = 1073741823 // stat.h:206:1: + UTIME_OMIT = 1073741822 // stat.h:207:1: + X_ATFILE_SOURCE = 1 // features.h:342:1: + X_BITS_BYTESWAP_H = 1 // byteswap.h:24:1: + X_BITS_ENDIANNESS_H = 1 // endianness.h:2:1: + X_BITS_ENDIAN_H = 1 // endian.h:20:1: + X_BITS_PTHREADTYPES_ARCH_H = 1 // pthreadtypes-arch.h:19:1: + X_BITS_PTHREADTYPES_COMMON_H = 1 // pthreadtypes.h:20:1: + X_BITS_STAT_H = 1 // stat.h:23:1: + X_BITS_STDINT_INTN_H = 1 // stdint-intn.h:20:1: + X_BITS_TIME64_H = 1 // time64.h:24:1: + X_BITS_TYPESIZES_H = 1 // typesizes.h:24:1: + X_BITS_TYPES_H = 1 // types.h:24:1: + X_BITS_UINTN_IDENTITY_H = 1 // uintn-identity.h:24:1: + X_BSD_SIZE_T_ = 0 // stddef.h:189:1: + X_BSD_SIZE_T_DEFINED_ = 0 // stddef.h:192:1: + X_DEFAULT_SOURCE = 1 // features.h:227:1: + X_ENDIAN_H = 1 // endian.h:19:1: + X_FEATURES_H = 1 // features.h:19:1: + X_FILE_OFFSET_BITS = 64 // :25:1: + X_FTS_H = 1 // fts.h:51:1: + X_GCC_SIZE_T = 0 // stddef.h:195:1: + X_LP64 = 1 // :284:1: + X_MKNOD_VER = 0 // stat.h:390:1: + X_MKNOD_VER_LINUX = 0 // stat.h:41:1: + X_POSIX_C_SOURCE = 200809 // features.h:281:1: + X_POSIX_SOURCE = 1 // features.h:279:1: + X_RWLOCK_INTERNAL_H = 0 // struct_rwlock.h:21:1: + X_SIZET_ = 0 // stddef.h:196:1: + X_SIZE_T = 0 // stddef.h:183:1: + X_SIZE_T_ = 0 // stddef.h:188:1: + X_SIZE_T_DECLARED = 0 // stddef.h:193:1: + X_SIZE_T_DEFINED = 0 // stddef.h:191:1: + X_SIZE_T_DEFINED_ = 0 // stddef.h:190:1: + X_STATBUF_ST_BLKSIZE = 0 // stat.h:172:1: + X_STATBUF_ST_NSEC = 0 // stat.h:175:1: + X_STATBUF_ST_RDEV = 0 // stat.h:173:1: + X_STAT_VER = 1 // stat.h:44:1: + X_STAT_VER_KERNEL = 0 // stat.h:37:1: + X_STAT_VER_LINUX = 1 // stat.h:38:1: + X_STDC_PREDEF_H = 1 // :162:1: + X_STRUCT_TIMESPEC = 1 // struct_timespec.h:3:1: + X_SYS_CDEFS_H = 1 // cdefs.h:19:1: + X_SYS_SELECT_H = 1 // select.h:22:1: + X_SYS_SIZE_T_H = 0 // stddef.h:184:1: + X_SYS_STAT_H = 1 // stat.h:23:1: + X_SYS_TYPES_H = 1 // types.h:23:1: + X_THREAD_MUTEX_INTERNAL_H = 1 // struct_mutex.h:20:1: + X_THREAD_SHARED_TYPES_H = 1 // thread-shared-types.h:20:1: + X_T_SIZE = 0 // stddef.h:186:1: + X_T_SIZE_ = 0 // stddef.h:185:1: + Linux = 1 // :231:1: + Unix = 1 // :177:1: +) + +type Ptrdiff_t = int64 /* :3:26 */ + +type Size_t = uint64 /* :9:23 */ + +type Wchar_t = int32 /* :15:24 */ + +type X__int128_t = struct { + Flo int64 + Fhi int64 +} /* :21:43 */ // must match modernc.org/mathutil.Int128 +type X__uint128_t = struct { + Flo uint64 + Fhi uint64 +} /* :22:44 */ // must match modernc.org/mathutil.Int128 + +type X__builtin_va_list = uintptr /* :46:14 */ +type X__float128 = float64 /* :47:21 */ + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// POSIX Standard: 2.6 Primitive System Data Types + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// These are defined by the user (or the compiler) +// to specify the desired environment: +// +// __STRICT_ANSI__ ISO Standard C. +// _ISOC99_SOURCE Extensions to ISO C89 from ISO C99. +// _ISOC11_SOURCE Extensions to ISO C99 from ISO C11. +// _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X. +// __STDC_WANT_LIB_EXT2__ +// Extensions to ISO C99 from TR 27431-2:2010. +// __STDC_WANT_IEC_60559_BFP_EXT__ +// Extensions to ISO C11 from TS 18661-1:2014. +// __STDC_WANT_IEC_60559_FUNCS_EXT__ +// Extensions to ISO C11 from TS 18661-4:2015. +// __STDC_WANT_IEC_60559_TYPES_EXT__ +// Extensions to ISO C11 from TS 18661-3:2015. +// +// _POSIX_SOURCE IEEE Std 1003.1. +// _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2; +// if >=199309L, add IEEE Std 1003.1b-1993; +// if >=199506L, add IEEE Std 1003.1c-1995; +// if >=200112L, all of IEEE 1003.1-2004 +// if >=200809L, all of IEEE 1003.1-2008 +// _XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if +// Single Unix conformance is wanted, to 600 for the +// sixth revision, to 700 for the seventh revision. +// _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions. +// _LARGEFILE_SOURCE Some more functions for correct standard I/O. +// _LARGEFILE64_SOURCE Additional functionality from LFS for large files. +// _FILE_OFFSET_BITS=N Select default filesystem interface. +// _ATFILE_SOURCE Additional *at interfaces. +// _GNU_SOURCE All of the above, plus GNU extensions. +// _DEFAULT_SOURCE The default set of features (taking precedence over +// __STRICT_ANSI__). +// +// _FORTIFY_SOURCE Add security hardening to many library functions. +// Set to 1 or 2; 2 performs stricter checks than 1. +// +// _REENTRANT, _THREAD_SAFE +// Obsolete; equivalent to _POSIX_C_SOURCE=199506L. +// +// The `-ansi' switch to the GNU C compiler, and standards conformance +// options such as `-std=c99', define __STRICT_ANSI__. If none of +// these are defined, or if _DEFAULT_SOURCE is defined, the default is +// to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to +// 200809L, as well as enabling miscellaneous functions from BSD and +// SVID. If more than one of these are defined, they accumulate. For +// example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together +// give you ISO C, 1003.1, and 1003.2, but nothing else. +// +// These are defined by this file and are used by the +// header files to decide what to declare or define: +// +// __GLIBC_USE (F) Define things from feature set F. This is defined +// to 1 or 0; the subsequent macros are either defined +// or undefined, and those tests should be moved to +// __GLIBC_USE. +// __USE_ISOC11 Define ISO C11 things. +// __USE_ISOC99 Define ISO C99 things. +// __USE_ISOC95 Define ISO C90 AMD1 (C95) things. +// __USE_ISOCXX11 Define ISO C++11 things. +// __USE_POSIX Define IEEE Std 1003.1 things. +// __USE_POSIX2 Define IEEE Std 1003.2 things. +// __USE_POSIX199309 Define IEEE Std 1003.1, and .1b things. +// __USE_POSIX199506 Define IEEE Std 1003.1, .1b, .1c and .1i things. +// __USE_XOPEN Define XPG things. +// __USE_XOPEN_EXTENDED Define X/Open Unix things. +// __USE_UNIX98 Define Single Unix V2 things. +// __USE_XOPEN2K Define XPG6 things. +// __USE_XOPEN2KXSI Define XPG6 XSI things. +// __USE_XOPEN2K8 Define XPG7 things. +// __USE_XOPEN2K8XSI Define XPG7 XSI things. +// __USE_LARGEFILE Define correct standard I/O things. +// __USE_LARGEFILE64 Define LFS things with separate names. +// __USE_FILE_OFFSET64 Define 64bit interface as default. +// __USE_MISC Define things from 4.3BSD or System V Unix. +// __USE_ATFILE Define *at interfaces and AT_* constants for them. +// __USE_GNU Define GNU extensions. +// __USE_FORTIFY_LEVEL Additional security measures used, according to level. +// +// The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are +// defined by this file unconditionally. `__GNU_LIBRARY__' is provided +// only for compatibility. All new code should use the other symbols +// to test for features. +// +// All macros listed above as possibly being defined by this file are +// explicitly undefined if they are not explicitly defined. +// Feature-test macros that are not defined by the user or compiler +// but are implied by the other feature-test macros defined (or by the +// lack of any definitions) are defined by the file. +// +// ISO C feature test macros depend on the definition of the macro +// when an affected header is included, not when the first system +// header is included, and so they are handled in +// , which does not have a multiple include +// guard. Feature test macros that can be handled from the first +// system header included are handled here. + +// Undefine everything, so we get a clean slate. + +// Suppress kernel-name space pollution unless user expressedly asks +// for it. + +// Convenience macro to test the version of gcc. +// Use like this: +// #if __GNUC_PREREQ (2,8) +// ... code requiring gcc 2.8 or later ... +// #endif +// Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was +// added in 2.0. + +// Similarly for clang. Features added to GCC after version 4.2 may +// or may not also be available in clang, and clang's definitions of +// __GNUC(_MINOR)__ are fixed at 4 and 2 respectively. Not all such +// features can be queried via __has_extension/__has_feature. + +// Whether to use feature set F. + +// _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for +// _DEFAULT_SOURCE. If _DEFAULT_SOURCE is present we do not +// issue a warning; the expectation is that the source is being +// transitioned to use the new macro. + +// If _GNU_SOURCE was defined by the user, turn on all the other features. + +// If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined, +// define _DEFAULT_SOURCE. + +// This is to enable the ISO C2X extension. + +// This is to enable the ISO C11 extension. + +// This is to enable the ISO C99 extension. + +// This is to enable the ISO C90 Amendment 1:1995 extension. + +// If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE +// is defined, use POSIX.1-2008 (or another version depending on +// _XOPEN_SOURCE). + +// Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be +// defined in all multithreaded code. GNU libc has not required this +// for many years. We now treat them as compatibility synonyms for +// _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with +// comprehensive support for multithreaded code. Using them never +// lowers the selected level of POSIX conformance, only raises it. + +// The function 'gets' existed in C89, but is impossible to use +// safely. It has been removed from ISO C11 and ISO C++14. Note: for +// compatibility with various implementations of , this test +// must consider only the value of __cplusplus when compiling C++. + +// GNU formerly extended the scanf functions with modified format +// specifiers %as, %aS, and %a[...] that allocate a buffer for the +// input using malloc. This extension conflicts with ISO C99, which +// defines %a as a standalone format specifier that reads a floating- +// point number; moreover, POSIX.1-2008 provides the same feature +// using the modifier letter 'm' instead (%ms, %mS, %m[...]). +// +// We now follow C99 unless GNU extensions are active and the compiler +// is specifically in C89 or C++98 mode (strict or not). For +// instance, with GCC, -std=gnu11 will have C99-compliant scanf with +// or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the +// old extension. + +// Get definitions of __STDC_* predefined macros, if the compiler has +// not preincluded this header automatically. +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// This macro indicates that the installed library is the GNU C Library. +// For historic reasons the value now is 6 and this will stay from now +// on. The use of this variable is deprecated. Use __GLIBC__ and +// __GLIBC_MINOR__ now (see below) when you want to test for a specific +// GNU C library version and use the values in to get +// the sonames of the shared libraries. + +// Major and minor version number of the GNU C library package. Use +// these macros to test for features in specific releases. + +// This is here only because every header file already includes this one. +// Copyright (C) 1992-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// We are almost always included from features.h. + +// The GNU libc does not support any K&R compilers or the traditional mode +// of ISO C compilers anymore. Check for some of the combinations not +// anymore supported. + +// Some user header file might have defined this before. + +// All functions, except those with callbacks or those that +// synchronize memory, are leaf functions. + +// GCC can always grok prototypes. For C++ programs we add throw() +// to help it optimize the function calls. But this works only with +// gcc 2.8.x and egcs. For gcc 3.2 and up we even mark C functions +// as non-throwing using a function attribute since programs can use +// the -fexceptions options for C code as well. + +// Compilers that are not clang may object to +// #if defined __clang__ && __has_extension(...) +// even though they do not need to evaluate the right-hand side of the &&. + +// These two macros are not used in glibc anymore. They are kept here +// only because some other projects expect the macros to be defined. + +// For these things, GCC behaves the ANSI way normally, +// and the non-ANSI way under -traditional. + +// This is not a typedef so `const __ptr_t' does the right thing. + +// C++ needs to know that types and declarations are C, not C++. + +// Fortify support. + +// Support for flexible arrays. +// Headers that should use flexible arrays only if they're "real" +// (e.g. only if they won't affect sizeof()) should test +// #if __glibc_c99_flexarr_available. + +// __asm__ ("xyz") is used throughout the headers to rename functions +// at the assembly language level. This is wrapped by the __REDIRECT +// macro, in order to support compilers that can do this some other +// way. When compilers don't support asm-names at all, we have to do +// preprocessor tricks instead (which don't have exactly the right +// semantics, but it's the best we can do). +// +// Example: +// int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid); + +// +// #elif __SOME_OTHER_COMPILER__ +// +// # define __REDIRECT(name, proto, alias) name proto; _Pragma("let " #name " = " #alias) + +// GCC has various useful declarations that can be made with the +// `__attribute__' syntax. All of the ways we use this do fine if +// they are omitted for compilers that don't understand it. + +// At some point during the gcc 2.96 development the `malloc' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// Tell the compiler which arguments to an allocation function +// indicate the size of the allocation. + +// At some point during the gcc 2.96 development the `pure' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// This declaration tells the compiler that the value is constant. + +// At some point during the gcc 3.1 development the `used' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// Since version 3.2, gcc allows marking deprecated functions. + +// Since version 4.5, gcc also allows one to specify the message printed +// when a deprecated function is used. clang claims to be gcc 4.2, but +// may also support this feature. + +// At some point during the gcc 2.8 development the `format_arg' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. +// If several `format_arg' attributes are given for the same function, in +// gcc-3.0 and older, all but the last one are ignored. In newer gccs, +// all designated arguments are considered. + +// At some point during the gcc 2.97 development the `strfmon' format +// attribute for functions was introduced. We don't want to use it +// unconditionally (although this would be possible) since it +// generates warnings. + +// The nonull function attribute allows to mark pointer parameters which +// must not be NULL. + +// If fortification mode, we warn about unused results of certain +// function calls which can lead to problems. + +// Forces a function to be always inlined. +// The Linux kernel defines __always_inline in stddef.h (283d7573), and +// it conflicts with this definition. Therefore undefine it first to +// allow either header to be included first. + +// Associate error messages with the source location of the call site rather +// than with the source location inside the function. + +// GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99 +// inline semantics, unless -fgnu89-inline is used. Using __GNUC_STDC_INLINE__ +// or __GNUC_GNU_INLINE is not a good enough check for gcc because gcc versions +// older than 4.3 may define these macros and still not guarantee GNU inlining +// semantics. +// +// clang++ identifies itself as gcc-4.2, but has support for GNU inlining +// semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and +// __GNUC_GNU_INLINE__ macro definitions. + +// GCC 4.3 and above allow passing all anonymous arguments of an +// __extern_always_inline function to some other vararg function. + +// It is possible to compile containing GCC extensions even if GCC is +// run in pedantic mode if the uses are carefully marked using the +// `__extension__' keyword. But this is not generally available before +// version 2.8. + +// __restrict is known in EGCS 1.2 and above. + +// ISO C99 also allows to declare arrays as non-overlapping. The syntax is +// array_name[restrict] +// GCC 3.1 supports this. + +// Describes a char array whose address can safely be passed as the first +// argument to strncpy and strncat, as the char array is not necessarily +// a NUL-terminated string. + +// Undefine (also defined in libc-symbols.h). +// Copies attributes from the declaration or type referenced by +// the argument. + +// Determine the wordsize from the preprocessor defines. + +// Both x86-64 and x32 use the 64-bit system call interface. +// Properties of long double type. ldbl-96 version. +// Copyright (C) 2016-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// long double is distinct from double, so there is nothing to +// define here. + +// __glibc_macro_warning (MESSAGE) issues warning MESSAGE. This is +// intended for use in preprocessor macros. +// +// Note: MESSAGE must be a _single_ string; concatenation of string +// literals is not supported. + +// Generic selection (ISO C11) is a C-only feature, available in GCC +// since version 4.9. Previous versions do not provide generic +// selection, even though they might set __STDC_VERSION__ to 201112L, +// when in -std=c11 mode. Thus, we must check for !defined __GNUC__ +// when testing __STDC_VERSION__ for generic selection support. +// On the other hand, Clang also defines __GNUC__, so a clang-specific +// check is required to enable the use of generic selection. + +// If we don't have __REDIRECT, prototypes will be missing if +// __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64]. + +// Decide whether we can define 'extern inline' functions in headers. + +// This is here only because every header file already includes this one. +// Get the definitions of all the appropriate `__stub_FUNCTION' symbols. +// contains `#define __stub_FUNCTION' when FUNCTION is a stub +// that will always return failure (and set errno to ENOSYS). +// This file is automatically generated. +// This file selects the right generated file of `__stub_FUNCTION' macros +// based on the architecture being compiled for. + +// This file is automatically generated. +// It defines a symbol `__stub_FUNCTION' for each function +// in the C library which is a stub, meaning it will fail +// every time called, usually setting errno to ENOSYS. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Determine the wordsize from the preprocessor defines. + +// Both x86-64 and x32 use the 64-bit system call interface. +// Bit size of the time_t type at glibc build time, x86-64 and x32 case. +// Copyright (C) 2018-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// For others, time size is word size. + +// Convenience types. +type X__u_char = uint8 /* types.h:31:23 */ +type X__u_short = uint16 /* types.h:32:28 */ +type X__u_int = uint32 /* types.h:33:22 */ +type X__u_long = uint64 /* types.h:34:27 */ + +// Fixed-size types, underlying types depend on word size and compiler. +type X__int8_t = int8 /* types.h:37:21 */ +type X__uint8_t = uint8 /* types.h:38:23 */ +type X__int16_t = int16 /* types.h:39:26 */ +type X__uint16_t = uint16 /* types.h:40:28 */ +type X__int32_t = int32 /* types.h:41:20 */ +type X__uint32_t = uint32 /* types.h:42:22 */ +type X__int64_t = int64 /* types.h:44:25 */ +type X__uint64_t = uint64 /* types.h:45:27 */ + +// Smallest types with at least a given width. +type X__int_least8_t = X__int8_t /* types.h:52:18 */ +type X__uint_least8_t = X__uint8_t /* types.h:53:19 */ +type X__int_least16_t = X__int16_t /* types.h:54:19 */ +type X__uint_least16_t = X__uint16_t /* types.h:55:20 */ +type X__int_least32_t = X__int32_t /* types.h:56:19 */ +type X__uint_least32_t = X__uint32_t /* types.h:57:20 */ +type X__int_least64_t = X__int64_t /* types.h:58:19 */ +type X__uint_least64_t = X__uint64_t /* types.h:59:20 */ + +// quad_t is also 64 bits. +type X__quad_t = int64 /* types.h:63:18 */ +type X__u_quad_t = uint64 /* types.h:64:27 */ + +// Largest integral types. +type X__intmax_t = int64 /* types.h:72:18 */ +type X__uintmax_t = uint64 /* types.h:73:27 */ + +// The machine-dependent file defines __*_T_TYPE +// macros for each of the OS types we define below. The definitions +// of those macros must use the following macros for underlying types. +// We define __S_TYPE and __U_TYPE for the signed and unsigned +// variants of each of the following integer types on this machine. +// +// 16 -- "natural" 16-bit type (always short) +// 32 -- "natural" 32-bit type (always int) +// 64 -- "natural" 64-bit type (long or long long) +// LONG32 -- 32-bit type, traditionally long +// QUAD -- 64-bit type, traditionally long long +// WORD -- natural type of __WORDSIZE bits (int or long) +// LONGWORD -- type of __WORDSIZE bits, traditionally long +// +// We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the +// conventional uses of `long' or `long long' type modifiers match the +// types we define, even when a less-adorned type would be the same size. +// This matters for (somewhat) portably writing printf/scanf formats for +// these types, where using the appropriate l or ll format modifiers can +// make the typedefs and the formats match up across all GNU platforms. If +// we used `long' when it's 64 bits where `long long' is expected, then the +// compiler would warn about the formats not matching the argument types, +// and the programmer changing them to shut up the compiler would break the +// program's portability. +// +// Here we assume what is presently the case in all the GCC configurations +// we support: long long is always 64 bits, long is always word/address size, +// and int is always 32 bits. + +// No need to mark the typedef with __extension__. +// bits/typesizes.h -- underlying types for *_t. Linux/x86-64 version. +// Copyright (C) 2012-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// See for the meaning of these macros. This file exists so +// that need not vary across different GNU platforms. + +// X32 kernel interface is 64-bit. + +// Tell the libc code that off_t and off64_t are actually the same type +// for all ABI purposes, even if possibly expressed as different base types +// for C type-checking purposes. + +// Same for ino_t and ino64_t. + +// And for __rlim_t and __rlim64_t. + +// And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t. + +// Number of descriptors that can fit in an `fd_set'. + +// bits/time64.h -- underlying types for __time64_t. Generic version. +// Copyright (C) 2018-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Define __TIME64_T_TYPE so that it is always a 64-bit type. + +// If we already have 64-bit time type then use it. + +type X__dev_t = uint64 /* types.h:145:25 */ // Type of device numbers. +type X__uid_t = uint32 /* types.h:146:25 */ // Type of user identifications. +type X__gid_t = uint32 /* types.h:147:25 */ // Type of group identifications. +type X__ino_t = uint64 /* types.h:148:25 */ // Type of file serial numbers. +type X__ino64_t = uint64 /* types.h:149:27 */ // Type of file serial numbers (LFS). +type X__mode_t = uint32 /* types.h:150:26 */ // Type of file attribute bitmasks. +type X__nlink_t = uint64 /* types.h:151:27 */ // Type of file link counts. +type X__off_t = int64 /* types.h:152:25 */ // Type of file sizes and offsets. +type X__off64_t = int64 /* types.h:153:27 */ // Type of file sizes and offsets (LFS). +type X__pid_t = int32 /* types.h:154:25 */ // Type of process identifications. +type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs. +type X__clock_t = int64 /* types.h:156:27 */ // Type of CPU usage counts. +type X__rlim_t = uint64 /* types.h:157:26 */ // Type for resource measurement. +type X__rlim64_t = uint64 /* types.h:158:28 */ // Type for resource measurement (LFS). +type X__id_t = uint32 /* types.h:159:24 */ // General type for IDs. +type X__time_t = int64 /* types.h:160:26 */ // Seconds since the Epoch. +type X__useconds_t = uint32 /* types.h:161:30 */ // Count of microseconds. +type X__suseconds_t = int64 /* types.h:162:31 */ // Signed count of microseconds. + +type X__daddr_t = int32 /* types.h:164:27 */ // The type of a disk address. +type X__key_t = int32 /* types.h:165:25 */ // Type of an IPC key. + +// Clock ID used in clock and timer functions. +type X__clockid_t = int32 /* types.h:168:29 */ + +// Timer ID returned by `timer_create'. +type X__timer_t = uintptr /* types.h:171:12 */ + +// Type to represent block size. +type X__blksize_t = int64 /* types.h:174:29 */ + +// Types from the Large File Support interface. + +// Type to count number of disk blocks. +type X__blkcnt_t = int64 /* types.h:179:28 */ +type X__blkcnt64_t = int64 /* types.h:180:30 */ + +// Type to count file system blocks. +type X__fsblkcnt_t = uint64 /* types.h:183:30 */ +type X__fsblkcnt64_t = uint64 /* types.h:184:32 */ + +// Type to count file system nodes. +type X__fsfilcnt_t = uint64 /* types.h:187:30 */ +type X__fsfilcnt64_t = uint64 /* types.h:188:32 */ + +// Type of miscellaneous file system fields. +type X__fsword_t = int64 /* types.h:191:28 */ + +type X__ssize_t = int64 /* types.h:193:27 */ // Type of a byte count, or error. + +// Signed long type used in system calls. +type X__syscall_slong_t = int64 /* types.h:196:33 */ +// Unsigned long type used in system calls. +type X__syscall_ulong_t = uint64 /* types.h:198:33 */ + +// These few don't really vary by system, they always correspond +// +// to one of the other defined types. +type X__loff_t = X__off64_t /* types.h:202:19 */ // Type of file sizes and offsets (LFS). +type X__caddr_t = uintptr /* types.h:203:14 */ + +// Duplicates info from stdint.h but this is used in unistd.h. +type X__intptr_t = int64 /* types.h:206:25 */ + +// Duplicate info from sys/socket.h. +type X__socklen_t = uint32 /* types.h:209:23 */ + +// C99: An integer type that can be accessed as an atomic entity, +// +// even in the presence of asynchronous interrupts. +// It is not currently necessary for this to be machine-specific. +type X__sig_atomic_t = int32 /* types.h:214:13 */ + +// Seconds since the Epoch, visible to user code when time_t is too +// narrow only for consistency with the old way of widening too-narrow +// types. User code should never use __time64_t. + +type U_char = X__u_char /* types.h:33:18 */ +type U_short = X__u_short /* types.h:34:19 */ +type U_int = X__u_int /* types.h:35:17 */ +type U_long = X__u_long /* types.h:36:18 */ +type Quad_t = X__quad_t /* types.h:37:18 */ +type U_quad_t = X__u_quad_t /* types.h:38:20 */ +type Fsid_t = X__fsid_t /* types.h:39:18 */ +type Loff_t = X__loff_t /* types.h:42:18 */ + +type Ino_t = X__ino64_t /* types.h:49:19 */ + +type Dev_t = X__dev_t /* types.h:59:17 */ + +type Gid_t = X__gid_t /* types.h:64:17 */ + +type Mode_t = X__mode_t /* types.h:69:18 */ + +type Nlink_t = X__nlink_t /* types.h:74:19 */ + +type Uid_t = X__uid_t /* types.h:79:17 */ + +type Off_t = X__off64_t /* types.h:87:19 */ + +type Pid_t = X__pid_t /* types.h:97:17 */ + +type Id_t = X__id_t /* types.h:103:16 */ + +type Ssize_t = X__ssize_t /* types.h:108:19 */ + +type Daddr_t = X__daddr_t /* types.h:114:19 */ +type Caddr_t = X__caddr_t /* types.h:115:19 */ + +type Key_t = X__key_t /* types.h:121:17 */ + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Returned by `clock'. +type Clock_t = X__clock_t /* clock_t.h:7:19 */ + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Clock ID used in clock and timer functions. +type Clockid_t = X__clockid_t /* clockid_t.h:7:21 */ + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Returned by `time'. +type Time_t = X__time_t /* time_t.h:7:18 */ + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Timer ID returned by `timer_create'. +type Timer_t = X__timer_t /* timer_t.h:7:19 */ + +// Wide character type. +// Locale-writers should change this as necessary to +// be big enough to hold unique values not between 0 and 127, +// and not (wchar_t) -1, for each defined multibyte character. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// A null pointer constant. + +// Old compatibility names for C types. +type Ulong = uint64 /* types.h:148:27 */ +type Ushort = uint16 /* types.h:149:28 */ +type Uint = uint32 /* types.h:150:22 */ + +// These size-specific names are used by some of the inet code. + +// Define intN_t types. +// Copyright (C) 2017-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +type Int8_t = X__int8_t /* stdint-intn.h:24:18 */ +type Int16_t = X__int16_t /* stdint-intn.h:25:19 */ +type Int32_t = X__int32_t /* stdint-intn.h:26:19 */ +type Int64_t = X__int64_t /* stdint-intn.h:27:19 */ + +// These were defined by ISO C without the first `_'. +type U_int8_t = X__uint8_t /* types.h:158:19 */ +type U_int16_t = X__uint16_t /* types.h:159:20 */ +type U_int32_t = X__uint32_t /* types.h:160:20 */ +type U_int64_t = X__uint64_t /* types.h:161:20 */ + +type Register_t = int32 /* types.h:164:13 */ + +// It also defines `fd_set' and the FD_* macros for `select'. +// `fd_set' type and related macros, and `select'/`pselect' declarations. +// Copyright (C) 1996-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// POSIX 1003.1g: 6.2 Select from File Descriptor Sets + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Get definition of needed basic types. +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Get __FD_* definitions. +// Copyright (C) 1997-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Determine the wordsize from the preprocessor defines. + +// Both x86-64 and x32 use the 64-bit system call interface. + +// Get sigset_t. + +type X__sigset_t = struct{ F__val [16]uint64 } /* __sigset_t.h:8:3 */ + +// A set of signals to be blocked, unblocked, or waited for. +type Sigset_t = X__sigset_t /* sigset_t.h:7:20 */ + +// Get definition of timer specification structures. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// A time value that is accurate to the nearest +// +// microsecond but also has a range of years. +type Timeval = struct { + Ftv_sec X__time_t + Ftv_usec X__suseconds_t +} /* struct_timeval.h:8:1 */ + +// NB: Include guard matches what uses. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Endian macros for string.h functions +// Copyright (C) 1992-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// POSIX.1b structure for a time value. This is like a `struct timeval' but +// +// has nanoseconds instead of microseconds. +type Timespec = struct { + Ftv_sec X__time_t + Ftv_nsec X__syscall_slong_t +} /* struct_timespec.h:10:1 */ + +type Suseconds_t = X__suseconds_t /* select.h:43:23 */ + +// The fd_set member is required to be an array of longs. +type X__fd_mask = int64 /* select.h:49:18 */ + +// Some versions of define this macros. +// It's easier to assume 8-bit bytes than to get CHAR_BIT. + +// fd_set for select and pselect. +type Fd_set = struct{ F__fds_bits [16]X__fd_mask } /* select.h:70:5 */ + +// Maximum number of file descriptors in `fd_set'. + +// Sometimes the fd_set member is assumed to have this type. +type Fd_mask = X__fd_mask /* select.h:77:19 */ + +// Define some inlines helping to catch common problems. + +type Blksize_t = X__blksize_t /* types.h:185:21 */ + +// Types from the Large File Support interface. +type Blkcnt_t = X__blkcnt64_t /* types.h:205:22 */ // Type to count number of disk blocks. +type Fsblkcnt_t = X__fsblkcnt64_t /* types.h:209:24 */ // Type to count file system blocks. +type Fsfilcnt_t = X__fsfilcnt64_t /* types.h:213:24 */ // Type to count file system inodes. + +// Now add the thread types. +// Declaration of common pthread types for all architectures. +// Copyright (C) 2017-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// For internal mutex and condition variable definitions. +// Common threading primitives definitions for both POSIX and C11. +// Copyright (C) 2017-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Arch-specific definitions. Each architecture must define the following +// macros to define the expected sizes of pthread data types: +// +// __SIZEOF_PTHREAD_ATTR_T - size of pthread_attr_t. +// __SIZEOF_PTHREAD_MUTEX_T - size of pthread_mutex_t. +// __SIZEOF_PTHREAD_MUTEXATTR_T - size of pthread_mutexattr_t. +// __SIZEOF_PTHREAD_COND_T - size of pthread_cond_t. +// __SIZEOF_PTHREAD_CONDATTR_T - size of pthread_condattr_t. +// __SIZEOF_PTHREAD_RWLOCK_T - size of pthread_rwlock_t. +// __SIZEOF_PTHREAD_RWLOCKATTR_T - size of pthread_rwlockattr_t. +// __SIZEOF_PTHREAD_BARRIER_T - size of pthread_barrier_t. +// __SIZEOF_PTHREAD_BARRIERATTR_T - size of pthread_barrierattr_t. +// +// The additional macro defines any constraint for the lock alignment +// inside the thread structures: +// +// __LOCK_ALIGNMENT - for internal lock/futex usage. +// +// Same idea but for the once locking primitive: +// +// __ONCE_ALIGNMENT - for pthread_once_t/once_flag definition. + +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Determine the wordsize from the preprocessor defines. + +// Both x86-64 and x32 use the 64-bit system call interface. + +// Common definition of pthread_mutex_t. + +type X__pthread_internal_list = struct { + F__prev uintptr + F__next uintptr +} /* thread-shared-types.h:49:9 */ + +// Type to count file system inodes. + +// Now add the thread types. +// Declaration of common pthread types for all architectures. +// Copyright (C) 2017-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// For internal mutex and condition variable definitions. +// Common threading primitives definitions for both POSIX and C11. +// Copyright (C) 2017-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Arch-specific definitions. Each architecture must define the following +// macros to define the expected sizes of pthread data types: +// +// __SIZEOF_PTHREAD_ATTR_T - size of pthread_attr_t. +// __SIZEOF_PTHREAD_MUTEX_T - size of pthread_mutex_t. +// __SIZEOF_PTHREAD_MUTEXATTR_T - size of pthread_mutexattr_t. +// __SIZEOF_PTHREAD_COND_T - size of pthread_cond_t. +// __SIZEOF_PTHREAD_CONDATTR_T - size of pthread_condattr_t. +// __SIZEOF_PTHREAD_RWLOCK_T - size of pthread_rwlock_t. +// __SIZEOF_PTHREAD_RWLOCKATTR_T - size of pthread_rwlockattr_t. +// __SIZEOF_PTHREAD_BARRIER_T - size of pthread_barrier_t. +// __SIZEOF_PTHREAD_BARRIERATTR_T - size of pthread_barrierattr_t. +// +// The additional macro defines any constraint for the lock alignment +// inside the thread structures: +// +// __LOCK_ALIGNMENT - for internal lock/futex usage. +// +// Same idea but for the once locking primitive: +// +// __ONCE_ALIGNMENT - for pthread_once_t/once_flag definition. + +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Determine the wordsize from the preprocessor defines. + +// Both x86-64 and x32 use the 64-bit system call interface. + +// Common definition of pthread_mutex_t. + +type X__pthread_list_t = X__pthread_internal_list /* thread-shared-types.h:53:3 */ + +type X__pthread_internal_slist = struct{ F__next uintptr } /* thread-shared-types.h:55:9 */ + +type X__pthread_slist_t = X__pthread_internal_slist /* thread-shared-types.h:58:3 */ + +// Arch-specific mutex definitions. A generic implementation is provided +// by sysdeps/nptl/bits/struct_mutex.h. If required, an architecture +// can override it by defining: +// +// 1. struct __pthread_mutex_s (used on both pthread_mutex_t and mtx_t +// definition). It should contains at least the internal members +// defined in the generic version. +// +// 2. __LOCK_ALIGNMENT for any extra attribute for internal lock used with +// atomic operations. +// +// 3. The macro __PTHREAD_MUTEX_INITIALIZER used for static initialization. +// It should initialize the mutex internal flag. + +// x86 internal mutex struct definitions. +// Copyright (C) 2019-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +type X__pthread_mutex_s = struct { + F__lock int32 + F__count uint32 + F__owner int32 + F__nusers uint32 + F__kind int32 + F__spins int16 + F__elision int16 + F__list X__pthread_list_t +} /* struct_mutex.h:22:1 */ + +// Arch-sepecific read-write lock definitions. A generic implementation is +// provided by struct_rwlock.h. If required, an architecture can override it +// by defining: +// +// 1. struct __pthread_rwlock_arch_t (used on pthread_rwlock_t definition). +// It should contain at least the internal members defined in the +// generic version. +// +// 2. The macro __PTHREAD_RWLOCK_INITIALIZER used for static initialization. +// It should initialize the rwlock internal type. + +// x86 internal rwlock struct definitions. +// Copyright (C) 2019-2020 Free Software Foundation, Inc. +// +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +type X__pthread_rwlock_arch_t = struct { + F__readers uint32 + F__writers uint32 + F__wrphase_futex uint32 + F__writers_futex uint32 + F__pad3 uint32 + F__pad4 uint32 + F__cur_writer int32 + F__shared int32 + F__rwelision int8 + F__pad1 [7]uint8 + F__pad2 uint64 + F__flags uint32 + F__ccgo_pad1 [4]byte +} /* struct_rwlock.h:23:1 */ + +// Common definition of pthread_cond_t. + +type X__pthread_cond_s = struct { + F__0 struct{ F__wseq uint64 } + F__8 struct{ F__g1_start uint64 } + F__g_refs [2]uint32 + F__g_size [2]uint32 + F__g1_orig_size uint32 + F__wrefs uint32 + F__g_signals [2]uint32 +} /* thread-shared-types.h:92:1 */ + +// Thread identifiers. The structure of the attribute type is not +// +// exposed on purpose. +type Pthread_t = uint64 /* pthreadtypes.h:27:27 */ + +// Data structures for mutex handling. The structure of the attribute +// +// type is not exposed on purpose. +type Pthread_mutexattr_t = struct { + F__ccgo_pad1 [0]uint32 + F__size [4]int8 +} /* pthreadtypes.h:36:3 */ + +// Data structure for condition variable handling. The structure of +// +// the attribute type is not exposed on purpose. +type Pthread_condattr_t = struct { + F__ccgo_pad1 [0]uint32 + F__size [4]int8 +} /* pthreadtypes.h:45:3 */ + +// Keys for thread-specific data +type Pthread_key_t = uint32 /* pthreadtypes.h:49:22 */ + +// Once-only execution +type Pthread_once_t = int32 /* pthreadtypes.h:53:30 */ + +type Pthread_attr_t1 = struct { + F__ccgo_pad1 [0]uint64 + F__size [56]int8 +} /* pthreadtypes.h:56:1 */ + +type Pthread_attr_t = Pthread_attr_t1 /* pthreadtypes.h:62:30 */ + +type Pthread_mutex_t = struct{ F__data X__pthread_mutex_s } /* pthreadtypes.h:72:3 */ + +type Pthread_cond_t = struct{ F__data X__pthread_cond_s } /* pthreadtypes.h:80:3 */ + +// Data structure for reader-writer lock variable handling. The +// +// structure of the attribute type is deliberately not exposed. +type Pthread_rwlock_t = struct{ F__data X__pthread_rwlock_arch_t } /* pthreadtypes.h:91:3 */ + +type Pthread_rwlockattr_t = struct { + F__ccgo_pad1 [0]uint64 + F__size [8]int8 +} /* pthreadtypes.h:97:3 */ + +// POSIX spinlock data type. +type Pthread_spinlock_t = int32 /* pthreadtypes.h:103:22 */ + +// POSIX barriers data type. The structure of the type is +// +// deliberately not exposed. +type Pthread_barrier_t = struct { + F__ccgo_pad1 [0]uint64 + F__size [32]int8 +} /* pthreadtypes.h:112:3 */ + +type Pthread_barrierattr_t = struct { + F__ccgo_pad1 [0]uint32 + F__size [4]int8 +} /* pthreadtypes.h:118:3 */ + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// POSIX Standard: 5.6 File Characteristics + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// NB: Include guard matches what uses. + +// The Single Unix specification says that some more types are +// available here. + +// Copyright (C) 1999-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Versions of the `struct stat' data structure. + +// x86-64 versions of the `xmknod' interface. + +type Stat = struct { + Fst_dev X__dev_t + Fst_ino X__ino_t + Fst_nlink X__nlink_t + Fst_mode X__mode_t + Fst_uid X__uid_t + Fst_gid X__gid_t + F__pad0 int32 + Fst_rdev X__dev_t + Fst_size X__off_t + Fst_blksize X__blksize_t + Fst_blocks X__blkcnt_t + Fst_atim struct { + Ftv_sec X__time_t + Ftv_nsec X__syscall_slong_t + } + Fst_mtim struct { + Ftv_sec X__time_t + Ftv_nsec X__syscall_slong_t + } + Fst_ctim struct { + Ftv_sec X__time_t + Ftv_nsec X__syscall_slong_t + } + F__glibc_reserved [3]X__syscall_slong_t +} /* stat.h:46:1 */ + +// File tree traversal functions declarations. +// Copyright (C) 1994-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Copyright (c) 1989, 1993 +// The Regents of the University of California. All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// 1. Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// 2. Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer in the +// documentation and/or other materials provided with the distribution. +// 4. Neither the name of the University nor the names of its contributors +// may be used to endorse or promote products derived from this software +// without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +// SUCH DAMAGE. +// +// @(#)fts.h 8.3 (Berkeley) 8/14/94 + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// POSIX Standard: 2.6 Primitive System Data Types + +type X_ftsent = struct { + Ffts_cycle uintptr + Ffts_parent uintptr + Ffts_link uintptr + Ffts_number int64 + Ffts_pointer uintptr + Ffts_accpath uintptr + Ffts_path uintptr + Ffts_errno int32 + Ffts_symfd int32 + Ffts_pathlen uint16 + Ffts_namelen uint16 + F__ccgo_pad1 [4]byte + Ffts_ino Ino_t + Ffts_dev Dev_t + Ffts_nlink Nlink_t + Ffts_level int16 + Ffts_info uint16 + Ffts_flags uint16 + Ffts_instr uint16 + Ffts_statp uintptr + Ffts_name [1]int8 + F__ccgo_pad2 [7]byte +} /* fts.h:58:2 */ + +// File tree traversal functions declarations. +// Copyright (C) 1994-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Copyright (c) 1989, 1993 +// The Regents of the University of California. All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// 1. Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// 2. Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer in the +// documentation and/or other materials provided with the distribution. +// 4. Neither the name of the University nor the names of its contributors +// may be used to endorse or promote products derived from this software +// without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +// SUCH DAMAGE. +// +// @(#)fts.h 8.3 (Berkeley) 8/14/94 + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// POSIX Standard: 2.6 Primitive System Data Types + +type FTS = struct { + Ffts_cur uintptr + Ffts_child uintptr + Ffts_array uintptr + Ffts_dev Dev_t + Ffts_path uintptr + Ffts_rfd int32 + Ffts_pathlen int32 + Ffts_nitems int32 + F__ccgo_pad1 [4]byte + Ffts_compar uintptr + Ffts_options int32 + F__ccgo_pad2 [4]byte +} /* fts.h:81:3 */ + +type FTSENT = X_ftsent /* fts.h:147:3 */ + +var _ int8 /* gen.c:5:13: */ diff --git a/vendor/modernc.org/libc/grp/capi_illumos_amd64.go b/vendor/modernc.org/libc/grp/capi_illumos_amd64.go new file mode 100644 index 000000000..66a453286 --- /dev/null +++ b/vendor/modernc.org/libc/grp/capi_illumos_amd64.go @@ -0,0 +1,5 @@ +// Code generated by 'ccgo grp/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o grp/grp_illumos_amd64.go -pkgname grp', DO NOT EDIT. + +package grp + +var CAPI = map[string]struct{}{} diff --git a/vendor/modernc.org/libc/grp/capi_linux_loong64.go b/vendor/modernc.org/libc/grp/capi_linux_loong64.go new file mode 100644 index 000000000..980986159 --- /dev/null +++ b/vendor/modernc.org/libc/grp/capi_linux_loong64.go @@ -0,0 +1,5 @@ +// Code generated by 'ccgo grp/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o grp/grp_linux_loong64.go -pkgname grp', DO NOT EDIT. + +package grp + +var CAPI = map[string]struct{}{} diff --git a/vendor/modernc.org/libc/grp/capi_linux_mips64le.go b/vendor/modernc.org/libc/grp/capi_linux_mips64le.go new file mode 100644 index 000000000..39c1b899e --- /dev/null +++ b/vendor/modernc.org/libc/grp/capi_linux_mips64le.go @@ -0,0 +1,5 @@ +// Code generated by 'ccgo grp/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o grp/grp_linux_amd64.go -pkgname grp', DO NOT EDIT. + +package grp + +var CAPI = map[string]struct{}{} diff --git a/vendor/modernc.org/libc/grp/grp_illumos_amd64.go b/vendor/modernc.org/libc/grp/grp_illumos_amd64.go new file mode 100644 index 000000000..54fb89013 --- /dev/null +++ b/vendor/modernc.org/libc/grp/grp_illumos_amd64.go @@ -0,0 +1,3181 @@ +// Code generated by 'ccgo grp/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o grp/grp_illumos_amd64.go -pkgname grp', DO NOT EDIT. + +package grp + +import ( + "math" + "reflect" + "sync/atomic" + "unsafe" +) + +var _ = math.Pi +var _ reflect.Kind +var _ atomic.Value +var _ unsafe.Pointer + +const ( + BUFSIZ = 1024 // stdio_iso.h:124:1: + CLOCKS_PER_SEC = 1000000 // time_iso.h:78:1: + CLOCK_HIGHRES = 4 // time_impl.h:126:1: + CLOCK_MONOTONIC = 4 // time_impl.h:124:1: + CLOCK_PROCESS_CPUTIME_ID = 5 // time_impl.h:125:1: + CLOCK_PROF = 2 // time_impl.h:127:1: + CLOCK_REALTIME = 3 // time_impl.h:123:1: + CLOCK_THREAD_CPUTIME_ID = 2 // time_impl.h:122:1: + CLOCK_VIRTUAL = 1 // time_impl.h:121:1: + DST_AUST = 2 // time.h:115:1: + DST_AUSTALT = 10 // time.h:123:1: + DST_CAN = 6 // time.h:119:1: + DST_EET = 5 // time.h:118:1: + DST_GB = 7 // time.h:120:1: + DST_MET = 4 // time.h:117:1: + DST_NONE = 0 // time.h:113:1: + DST_RUM = 8 // time.h:121:1: + DST_TUR = 9 // time.h:122:1: + DST_USA = 1 // time.h:114:1: + DST_WET = 3 // time.h:116:1: + EOF = -1 // stdio_iso.h:152:1: + FD_SETSIZE = 65536 // select.h:88:1: + FILENAME_MAX = 1024 // stdio_iso.h:156:1: + FOPEN_MAX = 20 // stdio_iso.h:155:1: + ITIMER_PROF = 2 // time.h:201:1: + ITIMER_REAL = 0 // time.h:199:1: + ITIMER_REALPROF = 3 // time.h:204:1: + ITIMER_VIRTUAL = 1 // time.h:200:1: + L_ctermid = 9 // stdio.h:207:1: + L_cuserid = 9 // stdio.h:211:1: + L_tmpnam = 25 // stdio_iso.h:163:1: + MICROSEC = 1000000 // time.h:246:1: + MILLISEC = 1000 // time.h:245:1: + NANOSEC = 1000000000 // time.h:247:1: + NBBY = 8 // select.h:103:1: + P_MYID = -1 // types.h:632:1: + P_tmpdir = "/var/tmp/" // stdio.h:220:1: + REG_LABEL_BP = 2 // machtypes.h:44:1: + REG_LABEL_MAX = 8 // machtypes.h:51:1: + REG_LABEL_PC = 0 // machtypes.h:42:1: + REG_LABEL_R12 = 4 // machtypes.h:47:1: + REG_LABEL_R13 = 5 // machtypes.h:48:1: + REG_LABEL_R14 = 6 // machtypes.h:49:1: + REG_LABEL_R15 = 7 // machtypes.h:50:1: + REG_LABEL_RBX = 3 // machtypes.h:46:1: + REG_LABEL_SP = 1 // machtypes.h:43:1: + SEC = 1 // time.h:244:1: + SEEK_CUR = 1 // stdio_iso.h:159:1: + SEEK_END = 2 // stdio_iso.h:160:1: + SEEK_SET = 0 // stdio_iso.h:158:1: + TIMER_ABSTIME = 0x1 // time_impl.h:134:1: + TIMER_RELTIME = 0x0 // time_impl.h:133:1: + TIME_UTC = 0x1 // time.h:306:1: + TMP_MAX = 17576 // stdio_iso.h:161:1: + X_ALIGNMENT_REQUIRED = 1 // isa_defs.h:262:1: + X_BIT_FIELDS_LTOH = 0 // isa_defs.h:245:1: + X_BOOL_ALIGNMENT = 1 // isa_defs.h:248:1: + X_CHAR_ALIGNMENT = 1 // isa_defs.h:249:1: + X_CHAR_IS_SIGNED = 0 // isa_defs.h:247:1: + X_CLOCKID_T = 0 // types.h:568:1: + X_CLOCK_T = 0 // types.h:563:1: + X_COND_MAGIC = 0x4356 // types.h:426:1: + X_DMA_USES_PHYSADDR = 0 // isa_defs.h:281:1: + X_DONT_USE_1275_GENERIC_NAMES = 0 // isa_defs.h:287:1: + X_DOUBLE_ALIGNMENT = 8 // isa_defs.h:256:1: + X_DOUBLE_COMPLEX_ALIGNMENT = 8 // isa_defs.h:257:1: + X_DTRACE_VERSION = 1 // feature_tests.h:490:1: + X_FILEDEFED = 0 // stdio_iso.h:101:1: + X_FILE_OFFSET_BITS = 64 // :25:1: + X_FIRMWARE_NEEDS_FDISK = 0 // isa_defs.h:282:1: + X_FLOAT_ALIGNMENT = 4 // isa_defs.h:252:1: + X_FLOAT_COMPLEX_ALIGNMENT = 4 // isa_defs.h:253:1: + X_GRP_H = 0 // grp.h:36:1: + X_HAVE_CPUID_INSN = 0 // isa_defs.h:288:1: + X_IEEE_754 = 0 // isa_defs.h:246:1: + X_INT64_TYPE = 0 // int_types.h:82:1: + X_INT_ALIGNMENT = 4 // isa_defs.h:251:1: + X_IOEOF = 0020 // stdio_iso.h:143:1: + X_IOERR = 0040 // stdio_iso.h:144:1: + X_IOFBF = 0000 // stdio_iso.h:140:1: + X_IOLBF = 0100 // stdio_iso.h:141:1: + X_IOMYBUF = 0010 // stdio_iso.h:149:1: + X_IONBF = 0004 // stdio_iso.h:142:1: + X_IOREAD = 0001 // stdio_iso.h:146:1: + X_IORW = 0200 // stdio_iso.h:148:1: + X_IOWRT = 0002 // stdio_iso.h:147:1: + X_ISO_CPP_14882_1998 = 0 // feature_tests.h:466:1: + X_ISO_C_9899_1999 = 0 // feature_tests.h:472:1: + X_ISO_C_9899_2011 = 0 // feature_tests.h:478:1: + X_ISO_STDIO_C99_H = 0 // stdio_c99.h:41:1: + X_ISO_STDIO_ISO_H = 0 // stdio_iso.h:59:1: + X_ISO_TIME_ISO_H = 0 // time_iso.h:46:1: + X_LARGEFILE64_SOURCE = 1 // feature_tests.h:231:1: + X_LARGEFILE_SOURCE = 1 // feature_tests.h:235:1: + X_LITTLE_ENDIAN = 0 // isa_defs.h:242:1: + X_LOCALE_T = 0 // time.h:291:1: + X_LONGLONG_TYPE = 0 // feature_tests.h:412:1: + X_LONG_ALIGNMENT = 8 // isa_defs.h:254:1: + X_LONG_DOUBLE_ALIGNMENT = 16 // isa_defs.h:258:1: + X_LONG_DOUBLE_COMPLEX_ALIGNMENT = 16 // isa_defs.h:259:1: + X_LONG_LONG_ALIGNMENT = 8 // isa_defs.h:255:1: + X_LONG_LONG_ALIGNMENT_32 = 4 // isa_defs.h:268:1: + X_LONG_LONG_LTOH = 0 // isa_defs.h:244:1: + X_LP64 = 1 // :286:1: + X_MAX_ALIGNMENT = 16 // isa_defs.h:261:1: + X_MULTI_DATAMODEL = 0 // isa_defs.h:279:1: + X_MUTEX_MAGIC = 0x4d58 // types.h:424:1: + X_NBBY = 8 // select.h:100:1: + X_NFILE = 20 // stdio_iso.h:135:1: + X_NORETURN_KYWD = 0 // feature_tests.h:448:1: + X_OFF_T = 0 // types.h:142:1: + X_POINTER_ALIGNMENT = 8 // isa_defs.h:260:1: + X_PSM_MODULES = 0 // isa_defs.h:284:1: + X_PTRDIFF_T = 0 // types.h:112:1: + X_RESTRICT_KYWD = 0 // feature_tests.h:435:1: + X_RTC_CONFIG = 0 // isa_defs.h:285:1: + X_RWL_MAGIC = 0x5257 // types.h:427:1: + X_SBFSIZ = 8 // stdio_iso.h:138:1: + X_SEMA_MAGIC = 0x534d // types.h:425:1: + X_SHORT_ALIGNMENT = 2 // isa_defs.h:250:1: + X_SIGEVENT = 0 // time.h:132:1: + X_SIGSET_T = 0 // select.h:73:1: + X_SIGVAL = 0 // time.h:124:1: + X_SIZE_T = 0 // types.h:540:1: + X_SOFT_HOSTID = 0 // isa_defs.h:286:1: + X_SSIZE_T = 0 // types.h:549:1: + X_STACK_GROWS_DOWNWARD = 0 // isa_defs.h:243:1: + X_STDC_C11 = 0 // feature_tests.h:165:1: + X_STDC_C99 = 0 // feature_tests.h:169:1: + X_STDIO_H = 0 // stdio.h:44:1: + X_STDIO_IMPL_H = 0 // stdio_impl.h:28:1: + X_STDIO_TAG_H = 0 // stdio_tag.h:28:1: + X_SUNOS_VTOC_16 = 0 // isa_defs.h:280:1: + X_SUSECONDS_T = 0 // types.h:343:1: + X_SYS_CCOMPILE_H = 0 // ccompile.h:32:1: + X_SYS_FEATURE_TESTS_H = 0 // feature_tests.h:41:1: + X_SYS_INT_TYPES_H = 0 // int_types.h:30:1: + X_SYS_ISA_DEFS_H = 0 // isa_defs.h:30:1: + X_SYS_MACHTYPES_H = 0 // machtypes.h:27:1: + X_SYS_NULL_H = 0 // null.h:17:1: + X_SYS_SELECT_H = 0 // select.h:45:1: + X_SYS_TIME_H = 0 // time.h:27:1: + X_SYS_TIME_IMPL_H = 0 // time_impl.h:38:1: + X_SYS_TYPES_H = 0 // types.h:35:1: + X_SYS_VA_LIST_H = 0 // va_list.h:34:1: + X_TIMER_T = 0 // types.h:573:1: + X_TIME_H = 0 // time.h:37:1: + X_TIME_T = 0 // types.h:558:1: + X_UID_T = 0 // types.h:400:1: + X_XOPEN_VERSION = 3 // feature_tests.h:392:1: + Sun = 1 // :172:1: + Unix = 1 // :175:1: +) + +// used for block sizes + +// The boolean_t type has had a varied amount of exposure over the years in +// terms of how its enumeration constants have been exposed. In particular, it +// originally used the __XOPEN_OR_POSIX macro to determine whether to prefix the +// B_TRUE and B_FALSE with an underscore. This check never included the +// question of if we were in a strict ANSI C environment or whether extensions +// were defined. +// +// Compilers such as clang started defaulting to always including an +// XOPEN_SOURCE declaration on behalf of users, but also noted __EXTENSIONS__. +// This would lead most software that had used the non-underscore versions to +// need it. As such, we have adjusted the non-strict XOPEN environment to retain +// its old behavior so as to minimize namespace pollution; however, we instead +// include both variants of the definitions in the generally visible version +// allowing software written in either world to hopefully end up in a good +// place. +// +// This isn't perfect, but should hopefully minimize the pain for folks actually +// trying to build software. +const ( /* types.h:215:1: */ + B_FALSE = 0 + B_TRUE = 1 + X_B_FALSE = 0 + X_B_TRUE = 1 +) + +type Ptrdiff_t = int64 /* :3:26 */ + +type Size_t = uint64 /* :9:23 */ + +type Wchar_t = int32 /* :15:24 */ + +type X__int128_t = struct { + Flo int64 + Fhi int64 +} /* :21:43 */ // must match modernc.org/mathutil.Int128 +type X__uint128_t = struct { + Flo uint64 + Fhi uint64 +} /* :22:44 */ // must match modernc.org/mathutil.Int128 + +type X__builtin_va_list = uintptr /* :46:14 */ +type X__float128 = float64 /* :47:21 */ + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1988 AT&T +// All Rights Reserved + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2020 Joyent, Inc. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2015 EveryCity Ltd. All rights reserved. +// Copyright 2019 Joyent, Inc. + +// This file contains definitions designed to enable different compilers +// to be used harmoniously on Solaris systems. + +// Allow for version tests for compiler bugs and features. + +// analogous to lint's PRINTFLIKEn + +// Handle the kernel printf routines that can take '%b' too + +// This one's pretty obvious -- the function never returns + +// The function is 'extern inline' and expects GNU C89 behaviour, not C99 +// behaviour. +// +// Should only be used on 'extern inline' definitions for GCC. + +// The function has control flow such that it may return multiple times (in +// the manner of setjmp or vfork) + +// This is an appropriate label for functions that do not +// modify their arguments, e.g. strlen() + +// This is a stronger form of __pure__. Can be used for functions +// that do not modify their arguments and don't depend on global +// memory. + +// This attribute, attached to a variable, means that the variable is meant to +// be possibly unused. GCC will not produce a warning for this variable. + +// Shorthand versions for readability + +// In release build, disable warnings about variables +// which are used only for debugging. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2016 Joyent, Inc. + +// This header file serves to group a set of well known defines and to +// set these for each instruction set architecture. These defines may +// be divided into two groups; characteristics of the processor and +// implementation choices for Solaris on a processor. +// +// Processor Characteristics: +// +// _LITTLE_ENDIAN / _BIG_ENDIAN: +// The natural byte order of the processor. A pointer to an int points +// to the least/most significant byte of that int. +// +// _STACK_GROWS_UPWARD / _STACK_GROWS_DOWNWARD: +// The processor specific direction of stack growth. A push onto the +// stack increases/decreases the stack pointer, so it stores data at +// successively higher/lower addresses. (Stackless machines ignored +// without regrets). +// +// _LONG_LONG_HTOL / _LONG_LONG_LTOH: +// A pointer to a long long points to the most/least significant long +// within that long long. +// +// _BIT_FIELDS_HTOL / _BIT_FIELDS_LTOH: +// The C compiler assigns bit fields from the high/low to the low/high end +// of an int (most to least significant vs. least to most significant). +// +// _IEEE_754: +// The processor (or supported implementations of the processor) +// supports the ieee-754 floating point standard. No other floating +// point standards are supported (or significant). Any other supported +// floating point formats are expected to be cased on the ISA processor +// symbol. +// +// _CHAR_IS_UNSIGNED / _CHAR_IS_SIGNED: +// The C Compiler implements objects of type `char' as `unsigned' or +// `signed' respectively. This is really an implementation choice of +// the compiler writer, but it is specified in the ABI and tends to +// be uniform across compilers for an instruction set architecture. +// Hence, it has the properties of a processor characteristic. +// +// _CHAR_ALIGNMENT / _SHORT_ALIGNMENT / _INT_ALIGNMENT / _LONG_ALIGNMENT / +// _LONG_LONG_ALIGNMENT / _DOUBLE_ALIGNMENT / _LONG_DOUBLE_ALIGNMENT / +// _POINTER_ALIGNMENT / _FLOAT_ALIGNMENT: +// The ABI defines alignment requirements of each of the primitive +// object types. Some, if not all, may be hardware requirements as +// well. The values are expressed in "byte-alignment" units. +// +// _MAX_ALIGNMENT: +// The most stringent alignment requirement as specified by the ABI. +// Equal to the maximum of all the above _XXX_ALIGNMENT values. +// +// _MAX_ALIGNMENT_TYPE: +// The name of the C type that has the value descried in _MAX_ALIGNMENT. +// +// _ALIGNMENT_REQUIRED: +// True or false (1 or 0) whether or not the hardware requires the ABI +// alignment. +// +// _LONG_LONG_ALIGNMENT_32 +// The 32-bit ABI supported by a 64-bit kernel may have different +// alignment requirements for primitive object types. The value of this +// identifier is expressed in "byte-alignment" units. +// +// _HAVE_CPUID_INSN +// This indicates that the architecture supports the 'cpuid' +// instruction as defined by Intel. (Intel allows other vendors +// to extend the instruction for their own purposes.) +// +// +// Implementation Choices: +// +// _ILP32 / _LP64: +// This specifies the compiler data type implementation as specified in +// the relevant ABI. The choice between these is strongly influenced +// by the underlying hardware, but is not absolutely tied to it. +// Currently only two data type models are supported: +// +// _ILP32: +// Int/Long/Pointer are 32 bits. This is the historical UNIX +// and Solaris implementation. Due to its historical standing, +// this is the default case. +// +// _LP64: +// Long/Pointer are 64 bits, Int is 32 bits. This is the chosen +// implementation for 64-bit ABIs such as SPARC V9. +// +// _I32LPx: +// A compilation environment where 'int' is 32-bit, and +// longs and pointers are simply the same size. +// +// In all cases, Char is 8 bits and Short is 16 bits. +// +// _SUNOS_VTOC_8 / _SUNOS_VTOC_16 / _SVR4_VTOC_16: +// This specifies the form of the disk VTOC (or label): +// +// _SUNOS_VTOC_8: +// This is a VTOC form which is upwardly compatible with the +// SunOS 4.x disk label and allows 8 partitions per disk. +// +// _SUNOS_VTOC_16: +// In this format the incore vtoc image matches the ondisk +// version. It allows 16 slices per disk, and is not +// compatible with the SunOS 4.x disk label. +// +// Note that these are not the only two VTOC forms possible and +// additional forms may be added. One possible form would be the +// SVr4 VTOC form. The symbol for that is reserved now, although +// it is not implemented. +// +// _SVR4_VTOC_16: +// This VTOC form is compatible with the System V Release 4 +// VTOC (as implemented on the SVr4 Intel and 3b ports) with +// 16 partitions per disk. +// +// +// _DMA_USES_PHYSADDR / _DMA_USES_VIRTADDR +// This describes the type of addresses used by system DMA: +// +// _DMA_USES_PHYSADDR: +// This type of DMA, used in the x86 implementation, +// requires physical addresses for DMA buffers. The 24-bit +// addresses used by some legacy boards is the source of the +// "low-memory" (<16MB) requirement for some devices using DMA. +// +// _DMA_USES_VIRTADDR: +// This method of DMA allows the use of virtual addresses for +// DMA transfers. +// +// _FIRMWARE_NEEDS_FDISK / _NO_FDISK_PRESENT +// This indicates the presence/absence of an fdisk table. +// +// _FIRMWARE_NEEDS_FDISK +// The fdisk table is required by system firmware. If present, +// it allows a disk to be subdivided into multiple fdisk +// partitions, each of which is equivalent to a separate, +// virtual disk. This enables the co-existence of multiple +// operating systems on a shared hard disk. +// +// _NO_FDISK_PRESENT +// If the fdisk table is absent, it is assumed that the entire +// media is allocated for a single operating system. +// +// _HAVE_TEM_FIRMWARE +// Defined if this architecture has the (fallback) option of +// using prom_* calls for doing I/O if a suitable kernel driver +// is not available to do it. +// +// _DONT_USE_1275_GENERIC_NAMES +// Controls whether or not device tree node names should +// comply with the IEEE 1275 "Generic Names" Recommended +// Practice. With _DONT_USE_GENERIC_NAMES, device-specific +// names identifying the particular device will be used. +// +// __i386_COMPAT +// This indicates whether the i386 ABI is supported as a *non-native* +// mode for the platform. When this symbol is defined: +// - 32-bit xstat-style system calls are enabled +// - 32-bit xmknod-style system calls are enabled +// - 32-bit system calls use i386 sizes -and- alignments +// +// Note that this is NOT defined for the i386 native environment! +// +// __x86 +// This is ONLY a synonym for defined(__i386) || defined(__amd64) +// which is useful only insofar as these two architectures share +// common attributes. Analogous to __sparc. +// +// _PSM_MODULES +// This indicates whether or not the implementation uses PSM +// modules for processor support, reading /etc/mach from inside +// the kernel to extract a list. +// +// _RTC_CONFIG +// This indicates whether or not the implementation uses /etc/rtc_config +// to configure the real-time clock in the kernel. +// +// _UNIX_KRTLD +// This indicates that the implementation uses a dynamically +// linked unix + krtld to form the core kernel image at boot +// time, or (in the absence of this symbol) a prelinked kernel image. +// +// _OBP +// This indicates the firmware interface is OBP. +// +// _SOFT_HOSTID +// This indicates that the implementation obtains the hostid +// from the file /etc/hostid, rather than from hardware. + +// The following set of definitions characterize Solaris on AMD's +// 64-bit systems. + +// Define the appropriate "processor characteristics" + +// Different alignment constraints for the i386 ABI in compatibility mode + +// Define the appropriate "implementation choices". + +// The feature test macro __i386 is generic for all processors implementing +// the Intel 386 instruction set or a superset of it. Specifically, this +// includes all members of the 386, 486, and Pentium family of processors. + +// Values of _POSIX_C_SOURCE +// +// undefined not a POSIX compilation +// 1 POSIX.1-1990 compilation +// 2 POSIX.2-1992 compilation +// 199309L POSIX.1b-1993 compilation (Real Time) +// 199506L POSIX.1c-1995 compilation (POSIX Threads) +// 200112L POSIX.1-2001 compilation (Austin Group Revision) +// 200809L POSIX.1-2008 compilation + +// The feature test macros __XOPEN_OR_POSIX, _STRICT_STDC, _STRICT_SYMBOLS, +// and _STDC_C99 are Sun implementation specific macros created in order to +// compress common standards specified feature test macros for easier reading. +// These macros should not be used by the application developer as +// unexpected results may occur. Instead, the user should reference +// standards(7) for correct usage of the standards feature test macros. +// +// __XOPEN_OR_POSIX Used in cases where a symbol is defined by both +// X/Open or POSIX or in the negative, when neither +// X/Open or POSIX defines a symbol. +// +// _STRICT_STDC __STDC__ is specified by the C Standards and defined +// by the compiler. For Sun compilers the value of +// __STDC__ is either 1, 0, or not defined based on the +// compilation mode (see cc(1)). When the value of +// __STDC__ is 1 and in the absence of any other feature +// test macros, the namespace available to the application +// is limited to only those symbols defined by the C +// Standard. _STRICT_STDC provides a more readable means +// of identifying symbols defined by the standard, or in +// the negative, symbols that are extensions to the C +// Standard. See additional comments for GNU C differences. +// +// _STDC_C99 __STDC_VERSION__ is specified by the C standards and +// defined by the compiler and indicates the version of +// the C standard. A value of 199901L indicates a +// compiler that complies with ISO/IEC 9899:1999, other- +// wise known as the C99 standard. +// +// _STDC_C11 Like _STDC_C99 except that the value of __STDC_VERSION__ +// is 201112L indicating a compiler that compiles with +// ISO/IEC 9899:2011, otherwise known as the C11 standard. +// +// _STRICT_SYMBOLS Used in cases where symbol visibility is restricted +// by the standards, and the user has not explicitly +// relaxed the strictness via __EXTENSIONS__. + +// ISO/IEC 9899:1990 and it's revisions, ISO/IEC 9899:1999 and ISO/IEC +// 99899:2011 specify the following predefined macro name: +// +// __STDC__ The integer constant 1, intended to indicate a conforming +// implementation. +// +// Furthermore, a strictly conforming program shall use only those features +// of the language and library specified in these standards. A conforming +// implementation shall accept any strictly conforming program. +// +// Based on these requirements, Sun's C compiler defines __STDC__ to 1 for +// strictly conforming environments and __STDC__ to 0 for environments that +// use ANSI C semantics but allow extensions to the C standard. For non-ANSI +// C semantics, Sun's C compiler does not define __STDC__. +// +// The GNU C project interpretation is that __STDC__ should always be defined +// to 1 for compilation modes that accept ANSI C syntax regardless of whether +// or not extensions to the C standard are used. Violations of conforming +// behavior are conditionally flagged as warnings via the use of the +// -pedantic option. In addition to defining __STDC__ to 1, the GNU C +// compiler also defines __STRICT_ANSI__ as a means of specifying strictly +// conforming environments using the -ansi or -std= options. +// +// In the absence of any other compiler options, Sun and GNU set the value +// of __STDC__ as follows when using the following options: +// +// Value of __STDC__ __STRICT_ANSI__ +// +// cc -Xa (default) 0 undefined +// cc -Xt (transitional) 0 undefined +// cc -Xc (strictly conforming) 1 undefined +// cc -Xs (K&R C) undefined undefined +// +// gcc (default) 1 undefined +// gcc -ansi, -std={c89, c99,...) 1 defined +// gcc -traditional (K&R) undefined undefined +// +// The default compilation modes for Sun C compilers versus GNU C compilers +// results in a differing value for __STDC__ which results in a more +// restricted namespace when using Sun compilers. To allow both GNU and Sun +// interpretations to peacefully co-exist, we use the following Sun +// implementation _STRICT_STDC_ macro: + +// Compiler complies with ISO/IEC 9899:1999 or ISO/IEC 9989:2011 + +// Use strict symbol visibility. + +// This is a variant of _STRICT_SYMBOLS that is meant to cover headers that are +// governed by POSIX, but have not been governed by ISO C. One can go two ways +// on what should happen if an application actively includes (not transitively) +// a header that isn't part of the ISO C spec, we opt to say that if someone has +// gone out of there way then they're doing it for a reason and that is an act +// of non-compliance and therefore it's not up to us to hide away every symbol. +// +// In general, prefer using _STRICT_SYMBOLS, but this is here in particular for +// cases where in the past we have only used a POSIX related check and we don't +// wish to make something stricter. Often applications are relying on the +// ability to, or more realistically unwittingly, have _STRICT_STDC declared and +// still use these interfaces. + +// Large file interfaces: +// +// _LARGEFILE_SOURCE +// 1 large file-related additions to POSIX +// interfaces requested (fseeko, etc.) +// _LARGEFILE64_SOURCE +// 1 transitional large-file-related interfaces +// requested (seek64, stat64, etc.) +// +// The corresponding announcement macros are respectively: +// _LFS_LARGEFILE +// _LFS64_LARGEFILE +// (These are set in .) +// +// Requesting _LARGEFILE64_SOURCE implies requesting _LARGEFILE_SOURCE as +// well. +// +// The large file interfaces are made visible regardless of the initial values +// of the feature test macros under certain circumstances: +// - If no explicit standards-conforming environment is requested (neither +// of _POSIX_SOURCE nor _XOPEN_SOURCE is defined and the value of +// __STDC__ does not imply standards conformance). +// - Extended system interfaces are explicitly requested (__EXTENSIONS__ +// is defined). +// - Access to in-kernel interfaces is requested (_KERNEL or _KMEMUSER is +// defined). (Note that this dependency is an artifact of the current +// kernel implementation and may change in future releases.) + +// Large file compilation environment control: +// +// The setting of _FILE_OFFSET_BITS controls the size of various file-related +// types and governs the mapping between file-related source function symbol +// names and the corresponding binary entry points. +// +// In the 32-bit environment, the default value is 32; if not set, set it to +// the default here, to simplify tests in other headers. +// +// In the 64-bit compilation environment, the only value allowed is 64. + +// Use of _XOPEN_SOURCE +// +// The following X/Open specifications are supported: +// +// X/Open Portability Guide, Issue 3 (XPG3) +// X/Open CAE Specification, Issue 4 (XPG4) +// X/Open CAE Specification, Issue 4, Version 2 (XPG4v2) +// X/Open CAE Specification, Issue 5 (XPG5) +// Open Group Technical Standard, Issue 6 (XPG6), also referred to as +// IEEE Std. 1003.1-2001 and ISO/IEC 9945:2002. +// Open Group Technical Standard, Issue 7 (XPG7), also referred to as +// IEEE Std. 1003.1-2008 and ISO/IEC 9945:2009. +// +// XPG4v2 is also referred to as UNIX 95 (SUS or SUSv1). +// XPG5 is also referred to as UNIX 98 or the Single Unix Specification, +// Version 2 (SUSv2) +// XPG6 is the result of a merge of the X/Open and POSIX specifications +// and as such is also referred to as IEEE Std. 1003.1-2001 in +// addition to UNIX 03 and SUSv3. +// XPG7 is also referred to as UNIX 08 and SUSv4. +// +// When writing a conforming X/Open application, as per the specification +// requirements, the appropriate feature test macros must be defined at +// compile time. These are as follows. For more info, see standards(7). +// +// Feature Test Macro Specification +// ------------------------------------------------ ------------- +// _XOPEN_SOURCE XPG3 +// _XOPEN_SOURCE && _XOPEN_VERSION = 4 XPG4 +// _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED = 1 XPG4v2 +// _XOPEN_SOURCE = 500 XPG5 +// _XOPEN_SOURCE = 600 (or POSIX_C_SOURCE=200112L) XPG6 +// _XOPEN_SOURCE = 700 (or POSIX_C_SOURCE=200809L) XPG7 +// +// In order to simplify the guards within the headers, the following +// implementation private test macros have been created. Applications +// must NOT use these private test macros as unexpected results will +// occur. +// +// Note that in general, the use of these private macros is cumulative. +// For example, the use of _XPG3 with no other restrictions on the X/Open +// namespace will make the symbols visible for XPG3 through XPG6 +// compilation environments. The use of _XPG4_2 with no other X/Open +// namespace restrictions indicates that the symbols were introduced in +// XPG4v2 and are therefore visible for XPG4v2 through XPG6 compilation +// environments, but not for XPG3 or XPG4 compilation environments. +// +// _XPG3 X/Open Portability Guide, Issue 3 (XPG3) +// _XPG4 X/Open CAE Specification, Issue 4 (XPG4) +// _XPG4_2 X/Open CAE Specification, Issue 4, Version 2 (XPG4v2/UNIX 95/SUS) +// _XPG5 X/Open CAE Specification, Issue 5 (XPG5/UNIX 98/SUSv2) +// _XPG6 Open Group Technical Standard, Issue 6 (XPG6/UNIX 03/SUSv3) +// _XPG7 Open Group Technical Standard, Issue 7 (XPG7/UNIX 08/SUSv4) + +// X/Open Portability Guide, Issue 3 + +// _XOPEN_VERSION is defined by the X/Open specifications and is not +// normally defined by the application, except in the case of an XPG4 +// application. On the implementation side, _XOPEN_VERSION defined with +// the value of 3 indicates an XPG3 application. _XOPEN_VERSION defined +// with the value of 4 indicates an XPG4 or XPG4v2 (UNIX 95) application. +// _XOPEN_VERSION defined with a value of 500 indicates an XPG5 (UNIX 98) +// application and with a value of 600 indicates an XPG6 (UNIX 03) +// application and with a value of 700 indicates an XPG7 (UNIX 08). +// The appropriate version is determined by the use of the +// feature test macros described earlier. The value of _XOPEN_VERSION +// defaults to 3 otherwise indicating support for XPG3 applications. + +// ANSI C and ISO 9899:1990 say the type long long doesn't exist in strictly +// conforming environments. ISO 9899:1999 says it does. +// +// The presence of _LONGLONG_TYPE says "long long exists" which is therefore +// defined in all but strictly conforming environments that disallow it. + +// The following macro defines a value for the ISO C99 restrict +// keyword so that _RESTRICT_KYWD resolves to "restrict" if +// an ISO C99 compiler is used, "__restrict" for c++ and "" (null string) +// if any other compiler is used. This allows for the use of single +// prototype declarations regardless of compiler version. + +// The following macro defines a value for the ISO C11 _Noreturn +// keyword so that _NORETURN_KYWD resolves to "_Noreturn" if +// an ISO C11 compiler is used and "" (null string) if any other +// compiler is used. This allows for the use of single prototype +// declarations regardless of compiler version. + +// ISO/IEC 9899:2011 Annex K + +// The following macro indicates header support for the ANSI C++ +// standard. The ISO/IEC designation for this is ISO/IEC FDIS 14882. + +// The following macro indicates header support for the C99 standard, +// ISO/IEC 9899:1999, Programming Languages - C. + +// The following macro indicates header support for the C11 standard, +// ISO/IEC 9899:2011, Programming Languages - C. + +// The following macro indicates header support for the C11 standard, +// ISO/IEC 9899:2011 Annex K, Programming Languages - C. + +// The following macro indicates header support for DTrace. The value is an +// integer that corresponds to the major version number for DTrace. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2021 Oxide Computer Company + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2016 Joyent, Inc. + +// Machine dependent definitions moved to . +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2007 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Machine dependent types: +// +// intel ia32 Version + +type X_label_t = struct{ Fval [8]int64 } /* machtypes.h:59:9 */ + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1988 AT&T +// All Rights Reserved + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2020 Joyent, Inc. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2015 EveryCity Ltd. All rights reserved. +// Copyright 2019 Joyent, Inc. + +// This file contains definitions designed to enable different compilers +// to be used harmoniously on Solaris systems. + +// Allow for version tests for compiler bugs and features. + +// analogous to lint's PRINTFLIKEn + +// Handle the kernel printf routines that can take '%b' too + +// This one's pretty obvious -- the function never returns + +// The function is 'extern inline' and expects GNU C89 behaviour, not C99 +// behaviour. +// +// Should only be used on 'extern inline' definitions for GCC. + +// The function has control flow such that it may return multiple times (in +// the manner of setjmp or vfork) + +// This is an appropriate label for functions that do not +// modify their arguments, e.g. strlen() + +// This is a stronger form of __pure__. Can be used for functions +// that do not modify their arguments and don't depend on global +// memory. + +// This attribute, attached to a variable, means that the variable is meant to +// be possibly unused. GCC will not produce a warning for this variable. + +// Shorthand versions for readability + +// In release build, disable warnings about variables +// which are used only for debugging. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2016 Joyent, Inc. + +// This header file serves to group a set of well known defines and to +// set these for each instruction set architecture. These defines may +// be divided into two groups; characteristics of the processor and +// implementation choices for Solaris on a processor. +// +// Processor Characteristics: +// +// _LITTLE_ENDIAN / _BIG_ENDIAN: +// The natural byte order of the processor. A pointer to an int points +// to the least/most significant byte of that int. +// +// _STACK_GROWS_UPWARD / _STACK_GROWS_DOWNWARD: +// The processor specific direction of stack growth. A push onto the +// stack increases/decreases the stack pointer, so it stores data at +// successively higher/lower addresses. (Stackless machines ignored +// without regrets). +// +// _LONG_LONG_HTOL / _LONG_LONG_LTOH: +// A pointer to a long long points to the most/least significant long +// within that long long. +// +// _BIT_FIELDS_HTOL / _BIT_FIELDS_LTOH: +// The C compiler assigns bit fields from the high/low to the low/high end +// of an int (most to least significant vs. least to most significant). +// +// _IEEE_754: +// The processor (or supported implementations of the processor) +// supports the ieee-754 floating point standard. No other floating +// point standards are supported (or significant). Any other supported +// floating point formats are expected to be cased on the ISA processor +// symbol. +// +// _CHAR_IS_UNSIGNED / _CHAR_IS_SIGNED: +// The C Compiler implements objects of type `char' as `unsigned' or +// `signed' respectively. This is really an implementation choice of +// the compiler writer, but it is specified in the ABI and tends to +// be uniform across compilers for an instruction set architecture. +// Hence, it has the properties of a processor characteristic. +// +// _CHAR_ALIGNMENT / _SHORT_ALIGNMENT / _INT_ALIGNMENT / _LONG_ALIGNMENT / +// _LONG_LONG_ALIGNMENT / _DOUBLE_ALIGNMENT / _LONG_DOUBLE_ALIGNMENT / +// _POINTER_ALIGNMENT / _FLOAT_ALIGNMENT: +// The ABI defines alignment requirements of each of the primitive +// object types. Some, if not all, may be hardware requirements as +// well. The values are expressed in "byte-alignment" units. +// +// _MAX_ALIGNMENT: +// The most stringent alignment requirement as specified by the ABI. +// Equal to the maximum of all the above _XXX_ALIGNMENT values. +// +// _MAX_ALIGNMENT_TYPE: +// The name of the C type that has the value descried in _MAX_ALIGNMENT. +// +// _ALIGNMENT_REQUIRED: +// True or false (1 or 0) whether or not the hardware requires the ABI +// alignment. +// +// _LONG_LONG_ALIGNMENT_32 +// The 32-bit ABI supported by a 64-bit kernel may have different +// alignment requirements for primitive object types. The value of this +// identifier is expressed in "byte-alignment" units. +// +// _HAVE_CPUID_INSN +// This indicates that the architecture supports the 'cpuid' +// instruction as defined by Intel. (Intel allows other vendors +// to extend the instruction for their own purposes.) +// +// +// Implementation Choices: +// +// _ILP32 / _LP64: +// This specifies the compiler data type implementation as specified in +// the relevant ABI. The choice between these is strongly influenced +// by the underlying hardware, but is not absolutely tied to it. +// Currently only two data type models are supported: +// +// _ILP32: +// Int/Long/Pointer are 32 bits. This is the historical UNIX +// and Solaris implementation. Due to its historical standing, +// this is the default case. +// +// _LP64: +// Long/Pointer are 64 bits, Int is 32 bits. This is the chosen +// implementation for 64-bit ABIs such as SPARC V9. +// +// _I32LPx: +// A compilation environment where 'int' is 32-bit, and +// longs and pointers are simply the same size. +// +// In all cases, Char is 8 bits and Short is 16 bits. +// +// _SUNOS_VTOC_8 / _SUNOS_VTOC_16 / _SVR4_VTOC_16: +// This specifies the form of the disk VTOC (or label): +// +// _SUNOS_VTOC_8: +// This is a VTOC form which is upwardly compatible with the +// SunOS 4.x disk label and allows 8 partitions per disk. +// +// _SUNOS_VTOC_16: +// In this format the incore vtoc image matches the ondisk +// version. It allows 16 slices per disk, and is not +// compatible with the SunOS 4.x disk label. +// +// Note that these are not the only two VTOC forms possible and +// additional forms may be added. One possible form would be the +// SVr4 VTOC form. The symbol for that is reserved now, although +// it is not implemented. +// +// _SVR4_VTOC_16: +// This VTOC form is compatible with the System V Release 4 +// VTOC (as implemented on the SVr4 Intel and 3b ports) with +// 16 partitions per disk. +// +// +// _DMA_USES_PHYSADDR / _DMA_USES_VIRTADDR +// This describes the type of addresses used by system DMA: +// +// _DMA_USES_PHYSADDR: +// This type of DMA, used in the x86 implementation, +// requires physical addresses for DMA buffers. The 24-bit +// addresses used by some legacy boards is the source of the +// "low-memory" (<16MB) requirement for some devices using DMA. +// +// _DMA_USES_VIRTADDR: +// This method of DMA allows the use of virtual addresses for +// DMA transfers. +// +// _FIRMWARE_NEEDS_FDISK / _NO_FDISK_PRESENT +// This indicates the presence/absence of an fdisk table. +// +// _FIRMWARE_NEEDS_FDISK +// The fdisk table is required by system firmware. If present, +// it allows a disk to be subdivided into multiple fdisk +// partitions, each of which is equivalent to a separate, +// virtual disk. This enables the co-existence of multiple +// operating systems on a shared hard disk. +// +// _NO_FDISK_PRESENT +// If the fdisk table is absent, it is assumed that the entire +// media is allocated for a single operating system. +// +// _HAVE_TEM_FIRMWARE +// Defined if this architecture has the (fallback) option of +// using prom_* calls for doing I/O if a suitable kernel driver +// is not available to do it. +// +// _DONT_USE_1275_GENERIC_NAMES +// Controls whether or not device tree node names should +// comply with the IEEE 1275 "Generic Names" Recommended +// Practice. With _DONT_USE_GENERIC_NAMES, device-specific +// names identifying the particular device will be used. +// +// __i386_COMPAT +// This indicates whether the i386 ABI is supported as a *non-native* +// mode for the platform. When this symbol is defined: +// - 32-bit xstat-style system calls are enabled +// - 32-bit xmknod-style system calls are enabled +// - 32-bit system calls use i386 sizes -and- alignments +// +// Note that this is NOT defined for the i386 native environment! +// +// __x86 +// This is ONLY a synonym for defined(__i386) || defined(__amd64) +// which is useful only insofar as these two architectures share +// common attributes. Analogous to __sparc. +// +// _PSM_MODULES +// This indicates whether or not the implementation uses PSM +// modules for processor support, reading /etc/mach from inside +// the kernel to extract a list. +// +// _RTC_CONFIG +// This indicates whether or not the implementation uses /etc/rtc_config +// to configure the real-time clock in the kernel. +// +// _UNIX_KRTLD +// This indicates that the implementation uses a dynamically +// linked unix + krtld to form the core kernel image at boot +// time, or (in the absence of this symbol) a prelinked kernel image. +// +// _OBP +// This indicates the firmware interface is OBP. +// +// _SOFT_HOSTID +// This indicates that the implementation obtains the hostid +// from the file /etc/hostid, rather than from hardware. + +// The following set of definitions characterize Solaris on AMD's +// 64-bit systems. + +// Define the appropriate "processor characteristics" + +// Different alignment constraints for the i386 ABI in compatibility mode + +// Define the appropriate "implementation choices". + +// The feature test macro __i386 is generic for all processors implementing +// the Intel 386 instruction set or a superset of it. Specifically, this +// includes all members of the 386, 486, and Pentium family of processors. + +// Values of _POSIX_C_SOURCE +// +// undefined not a POSIX compilation +// 1 POSIX.1-1990 compilation +// 2 POSIX.2-1992 compilation +// 199309L POSIX.1b-1993 compilation (Real Time) +// 199506L POSIX.1c-1995 compilation (POSIX Threads) +// 200112L POSIX.1-2001 compilation (Austin Group Revision) +// 200809L POSIX.1-2008 compilation + +// The feature test macros __XOPEN_OR_POSIX, _STRICT_STDC, _STRICT_SYMBOLS, +// and _STDC_C99 are Sun implementation specific macros created in order to +// compress common standards specified feature test macros for easier reading. +// These macros should not be used by the application developer as +// unexpected results may occur. Instead, the user should reference +// standards(7) for correct usage of the standards feature test macros. +// +// __XOPEN_OR_POSIX Used in cases where a symbol is defined by both +// X/Open or POSIX or in the negative, when neither +// X/Open or POSIX defines a symbol. +// +// _STRICT_STDC __STDC__ is specified by the C Standards and defined +// by the compiler. For Sun compilers the value of +// __STDC__ is either 1, 0, or not defined based on the +// compilation mode (see cc(1)). When the value of +// __STDC__ is 1 and in the absence of any other feature +// test macros, the namespace available to the application +// is limited to only those symbols defined by the C +// Standard. _STRICT_STDC provides a more readable means +// of identifying symbols defined by the standard, or in +// the negative, symbols that are extensions to the C +// Standard. See additional comments for GNU C differences. +// +// _STDC_C99 __STDC_VERSION__ is specified by the C standards and +// defined by the compiler and indicates the version of +// the C standard. A value of 199901L indicates a +// compiler that complies with ISO/IEC 9899:1999, other- +// wise known as the C99 standard. +// +// _STDC_C11 Like _STDC_C99 except that the value of __STDC_VERSION__ +// is 201112L indicating a compiler that compiles with +// ISO/IEC 9899:2011, otherwise known as the C11 standard. +// +// _STRICT_SYMBOLS Used in cases where symbol visibility is restricted +// by the standards, and the user has not explicitly +// relaxed the strictness via __EXTENSIONS__. + +// ISO/IEC 9899:1990 and it's revisions, ISO/IEC 9899:1999 and ISO/IEC +// 99899:2011 specify the following predefined macro name: +// +// __STDC__ The integer constant 1, intended to indicate a conforming +// implementation. +// +// Furthermore, a strictly conforming program shall use only those features +// of the language and library specified in these standards. A conforming +// implementation shall accept any strictly conforming program. +// +// Based on these requirements, Sun's C compiler defines __STDC__ to 1 for +// strictly conforming environments and __STDC__ to 0 for environments that +// use ANSI C semantics but allow extensions to the C standard. For non-ANSI +// C semantics, Sun's C compiler does not define __STDC__. +// +// The GNU C project interpretation is that __STDC__ should always be defined +// to 1 for compilation modes that accept ANSI C syntax regardless of whether +// or not extensions to the C standard are used. Violations of conforming +// behavior are conditionally flagged as warnings via the use of the +// -pedantic option. In addition to defining __STDC__ to 1, the GNU C +// compiler also defines __STRICT_ANSI__ as a means of specifying strictly +// conforming environments using the -ansi or -std= options. +// +// In the absence of any other compiler options, Sun and GNU set the value +// of __STDC__ as follows when using the following options: +// +// Value of __STDC__ __STRICT_ANSI__ +// +// cc -Xa (default) 0 undefined +// cc -Xt (transitional) 0 undefined +// cc -Xc (strictly conforming) 1 undefined +// cc -Xs (K&R C) undefined undefined +// +// gcc (default) 1 undefined +// gcc -ansi, -std={c89, c99,...) 1 defined +// gcc -traditional (K&R) undefined undefined +// +// The default compilation modes for Sun C compilers versus GNU C compilers +// results in a differing value for __STDC__ which results in a more +// restricted namespace when using Sun compilers. To allow both GNU and Sun +// interpretations to peacefully co-exist, we use the following Sun +// implementation _STRICT_STDC_ macro: + +// Compiler complies with ISO/IEC 9899:1999 or ISO/IEC 9989:2011 + +// Use strict symbol visibility. + +// This is a variant of _STRICT_SYMBOLS that is meant to cover headers that are +// governed by POSIX, but have not been governed by ISO C. One can go two ways +// on what should happen if an application actively includes (not transitively) +// a header that isn't part of the ISO C spec, we opt to say that if someone has +// gone out of there way then they're doing it for a reason and that is an act +// of non-compliance and therefore it's not up to us to hide away every symbol. +// +// In general, prefer using _STRICT_SYMBOLS, but this is here in particular for +// cases where in the past we have only used a POSIX related check and we don't +// wish to make something stricter. Often applications are relying on the +// ability to, or more realistically unwittingly, have _STRICT_STDC declared and +// still use these interfaces. + +// Large file interfaces: +// +// _LARGEFILE_SOURCE +// 1 large file-related additions to POSIX +// interfaces requested (fseeko, etc.) +// _LARGEFILE64_SOURCE +// 1 transitional large-file-related interfaces +// requested (seek64, stat64, etc.) +// +// The corresponding announcement macros are respectively: +// _LFS_LARGEFILE +// _LFS64_LARGEFILE +// (These are set in .) +// +// Requesting _LARGEFILE64_SOURCE implies requesting _LARGEFILE_SOURCE as +// well. +// +// The large file interfaces are made visible regardless of the initial values +// of the feature test macros under certain circumstances: +// - If no explicit standards-conforming environment is requested (neither +// of _POSIX_SOURCE nor _XOPEN_SOURCE is defined and the value of +// __STDC__ does not imply standards conformance). +// - Extended system interfaces are explicitly requested (__EXTENSIONS__ +// is defined). +// - Access to in-kernel interfaces is requested (_KERNEL or _KMEMUSER is +// defined). (Note that this dependency is an artifact of the current +// kernel implementation and may change in future releases.) + +// Large file compilation environment control: +// +// The setting of _FILE_OFFSET_BITS controls the size of various file-related +// types and governs the mapping between file-related source function symbol +// names and the corresponding binary entry points. +// +// In the 32-bit environment, the default value is 32; if not set, set it to +// the default here, to simplify tests in other headers. +// +// In the 64-bit compilation environment, the only value allowed is 64. + +// Use of _XOPEN_SOURCE +// +// The following X/Open specifications are supported: +// +// X/Open Portability Guide, Issue 3 (XPG3) +// X/Open CAE Specification, Issue 4 (XPG4) +// X/Open CAE Specification, Issue 4, Version 2 (XPG4v2) +// X/Open CAE Specification, Issue 5 (XPG5) +// Open Group Technical Standard, Issue 6 (XPG6), also referred to as +// IEEE Std. 1003.1-2001 and ISO/IEC 9945:2002. +// Open Group Technical Standard, Issue 7 (XPG7), also referred to as +// IEEE Std. 1003.1-2008 and ISO/IEC 9945:2009. +// +// XPG4v2 is also referred to as UNIX 95 (SUS or SUSv1). +// XPG5 is also referred to as UNIX 98 or the Single Unix Specification, +// Version 2 (SUSv2) +// XPG6 is the result of a merge of the X/Open and POSIX specifications +// and as such is also referred to as IEEE Std. 1003.1-2001 in +// addition to UNIX 03 and SUSv3. +// XPG7 is also referred to as UNIX 08 and SUSv4. +// +// When writing a conforming X/Open application, as per the specification +// requirements, the appropriate feature test macros must be defined at +// compile time. These are as follows. For more info, see standards(7). +// +// Feature Test Macro Specification +// ------------------------------------------------ ------------- +// _XOPEN_SOURCE XPG3 +// _XOPEN_SOURCE && _XOPEN_VERSION = 4 XPG4 +// _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED = 1 XPG4v2 +// _XOPEN_SOURCE = 500 XPG5 +// _XOPEN_SOURCE = 600 (or POSIX_C_SOURCE=200112L) XPG6 +// _XOPEN_SOURCE = 700 (or POSIX_C_SOURCE=200809L) XPG7 +// +// In order to simplify the guards within the headers, the following +// implementation private test macros have been created. Applications +// must NOT use these private test macros as unexpected results will +// occur. +// +// Note that in general, the use of these private macros is cumulative. +// For example, the use of _XPG3 with no other restrictions on the X/Open +// namespace will make the symbols visible for XPG3 through XPG6 +// compilation environments. The use of _XPG4_2 with no other X/Open +// namespace restrictions indicates that the symbols were introduced in +// XPG4v2 and are therefore visible for XPG4v2 through XPG6 compilation +// environments, but not for XPG3 or XPG4 compilation environments. +// +// _XPG3 X/Open Portability Guide, Issue 3 (XPG3) +// _XPG4 X/Open CAE Specification, Issue 4 (XPG4) +// _XPG4_2 X/Open CAE Specification, Issue 4, Version 2 (XPG4v2/UNIX 95/SUS) +// _XPG5 X/Open CAE Specification, Issue 5 (XPG5/UNIX 98/SUSv2) +// _XPG6 Open Group Technical Standard, Issue 6 (XPG6/UNIX 03/SUSv3) +// _XPG7 Open Group Technical Standard, Issue 7 (XPG7/UNIX 08/SUSv4) + +// X/Open Portability Guide, Issue 3 + +// _XOPEN_VERSION is defined by the X/Open specifications and is not +// normally defined by the application, except in the case of an XPG4 +// application. On the implementation side, _XOPEN_VERSION defined with +// the value of 3 indicates an XPG3 application. _XOPEN_VERSION defined +// with the value of 4 indicates an XPG4 or XPG4v2 (UNIX 95) application. +// _XOPEN_VERSION defined with a value of 500 indicates an XPG5 (UNIX 98) +// application and with a value of 600 indicates an XPG6 (UNIX 03) +// application and with a value of 700 indicates an XPG7 (UNIX 08). +// The appropriate version is determined by the use of the +// feature test macros described earlier. The value of _XOPEN_VERSION +// defaults to 3 otherwise indicating support for XPG3 applications. + +// ANSI C and ISO 9899:1990 say the type long long doesn't exist in strictly +// conforming environments. ISO 9899:1999 says it does. +// +// The presence of _LONGLONG_TYPE says "long long exists" which is therefore +// defined in all but strictly conforming environments that disallow it. + +// The following macro defines a value for the ISO C99 restrict +// keyword so that _RESTRICT_KYWD resolves to "restrict" if +// an ISO C99 compiler is used, "__restrict" for c++ and "" (null string) +// if any other compiler is used. This allows for the use of single +// prototype declarations regardless of compiler version. + +// The following macro defines a value for the ISO C11 _Noreturn +// keyword so that _NORETURN_KYWD resolves to "_Noreturn" if +// an ISO C11 compiler is used and "" (null string) if any other +// compiler is used. This allows for the use of single prototype +// declarations regardless of compiler version. + +// ISO/IEC 9899:2011 Annex K + +// The following macro indicates header support for the ANSI C++ +// standard. The ISO/IEC designation for this is ISO/IEC FDIS 14882. + +// The following macro indicates header support for the C99 standard, +// ISO/IEC 9899:1999, Programming Languages - C. + +// The following macro indicates header support for the C11 standard, +// ISO/IEC 9899:2011, Programming Languages - C. + +// The following macro indicates header support for the C11 standard, +// ISO/IEC 9899:2011 Annex K, Programming Languages - C. + +// The following macro indicates header support for DTrace. The value is an +// integer that corresponds to the major version number for DTrace. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2021 Oxide Computer Company + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2016 Joyent, Inc. + +// Machine dependent definitions moved to . +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2007 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Machine dependent types: +// +// intel ia32 Version + +type Label_t = X_label_t /* machtypes.h:59:54 */ + +type Lock_t = uint8 /* machtypes.h:63:23 */ // lock work for busy wait + +// Include fixed width type declarations proposed by the ISO/JTC1/SC22/WG14 C +// committee's working draft for the revision of the current ISO C standard, +// ISO/IEC 9899:1990 Programming language - C. These are not currently +// required by any standard but constitute a useful, general purpose set +// of type definitions which is namespace clean with respect to all standards. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2014 Garrett D'Amore +// +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// This file, , is part of the Sun Microsystems implementation +// of defined in the ISO C standard, ISO/IEC 9899:1999 +// Programming language - C. +// +// Programs/Modules should not directly include this file. Access to the +// types defined in this file should be through the inclusion of one of the +// following files: +// +// Provides only the "_t" types defined in this +// file which is a subset of the contents of +// . (This can be appropriate for +// all programs/modules except those claiming +// ANSI-C conformance.) +// +// Provides the Kernel and Driver appropriate +// components of . +// +// For use by applications. +// +// See these files for more details. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Basic / Extended integer types +// +// The following defines the basic fixed-size integer types. +// +// Implementations are free to typedef them to Standard C integer types or +// extensions that they support. If an implementation does not support one +// of the particular integer data types below, then it should not define the +// typedefs and macros corresponding to that data type. Note that int8_t +// is not defined in -Xs mode on ISAs for which the ABI specifies "char" +// as an unsigned entity because there is no way to define an eight bit +// signed integral. +type Int8_t = int8 /* int_types.h:75:16 */ +type Int16_t = int16 /* int_types.h:79:17 */ +type Int32_t = int32 /* int_types.h:80:15 */ +type Int64_t = int64 /* int_types.h:83:16 */ + +type Uint8_t = uint8 /* int_types.h:91:24 */ +type Uint16_t = uint16 /* int_types.h:92:25 */ +type Uint32_t = uint32 /* int_types.h:93:23 */ +type Uint64_t = uint64 /* int_types.h:95:24 */ + +// intmax_t and uintmax_t are to be the longest (in number of bits) signed +// and unsigned integer types supported by the implementation. +type Intmax_t = int64 /* int_types.h:107:19 */ +type Uintmax_t = uint64 /* int_types.h:108:19 */ + +// intptr_t and uintptr_t are signed and unsigned integer types large enough +// to hold any data pointer; that is, data pointers can be assigned into or +// from these integer types without losing precision. +type Intptr_t = int64 /* int_types.h:120:16 */ +type Uintptr_t = uint64 /* int_types.h:121:24 */ + +// The following define the fastest integer types that can hold the +// specified number of bits. +type Int_fast8_t = int8 /* int_types.h:132:16 */ +type Int_fast16_t = int32 /* int_types.h:136:15 */ +type Int_fast32_t = int32 /* int_types.h:137:15 */ +type Int_fast64_t = int64 /* int_types.h:139:16 */ + +type Uint_fast8_t = uint8 /* int_types.h:146:24 */ +type Uint_fast16_t = uint32 /* int_types.h:147:23 */ +type Uint_fast32_t = uint32 /* int_types.h:148:23 */ +type Uint_fast64_t = uint64 /* int_types.h:150:24 */ + +// The following define the smallest integer types that can hold the +// specified number of bits. +type Int_least8_t = int8 /* int_types.h:162:16 */ +type Int_least16_t = int16 /* int_types.h:166:17 */ +type Int_least32_t = int32 /* int_types.h:167:15 */ +type Int_least64_t = int64 /* int_types.h:169:16 */ + +// If these are changed, please update char16_t and char32_t in head/uchar.h. +type Uint_least8_t = uint8 /* int_types.h:179:24 */ +type Uint_least16_t = uint16 /* int_types.h:180:25 */ +type Uint_least32_t = uint32 /* int_types.h:181:23 */ +type Uint_least64_t = uint64 /* int_types.h:183:24 */ + +// Strictly conforming ANSI C environments prior to the 1999 +// revision of the C Standard (ISO/IEC 9899:1999) do not have +// the long long data type. +type Longlong_t = int64 /* types.h:72:20 */ +type U_longlong_t = uint64 /* types.h:73:28 */ + +// These types (t_{u}scalar_t) exist because the XTI/TPI/DLPI standards had +// to use them instead of int32_t and uint32_t because DEC had +// shipped 64-bit wide. +type T_scalar_t = int32 /* types.h:92:18 */ +type T_uscalar_t = uint32 /* types.h:93:18 */ + +// POSIX Extensions +type Uchar_t = uint8 /* types.h:102:23 */ +type Ushort_t = uint16 /* types.h:103:24 */ +type Uint_t = uint32 /* types.h:104:22 */ +type Ulong_t = uint64 /* types.h:105:23 */ + +type Caddr_t = uintptr /* types.h:107:15 */ // ? type +type Daddr_t = int64 /* types.h:108:15 */ // type +type Cnt_t = int16 /* types.h:109:16 */ // pointer difference + +// VM-related types +type Pfn_t = uint64 /* types.h:123:18 */ // page frame number +type Pgcnt_t = uint64 /* types.h:124:18 */ // number of pages +type Spgcnt_t = int64 /* types.h:125:15 */ // signed number of pages + +type Use_t = uint8 /* types.h:127:18 */ // use count for swap. +type Sysid_t = int16 /* types.h:128:16 */ +type Index_t = int16 /* types.h:129:16 */ +type Timeout_id_t = uintptr /* types.h:130:15 */ // opaque handle from timeout(9F) +type Bufcall_id_t = uintptr /* types.h:131:15 */ // opaque handle from bufcall(9F) + +// The size of off_t and related types depends on the setting of +// _FILE_OFFSET_BITS. (Note that other system headers define other types +// related to those defined here.) +// +// If _LARGEFILE64_SOURCE is defined, variants of these types that are +// explicitly 64 bits wide become available. + +type Off_t = int64 /* types.h:145:15 */ // offsets within files + +type Off64_t = int64 /* types.h:152:16 */ // offsets within files + +type Ino_t = uint64 /* types.h:161:18 */ // expanded inode type +type Blkcnt_t = int64 /* types.h:162:15 */ // count of file blocks +type Fsblkcnt_t = uint64 /* types.h:163:18 */ // count of file system blocks +type Fsfilcnt_t = uint64 /* types.h:164:18 */ // count of files + +type Ino64_t = uint64 /* types.h:174:16 */ // expanded inode type +type Blkcnt64_t = int64 /* types.h:175:18 */ // count of file blocks +type Fsblkcnt64_t = uint64 /* types.h:176:20 */ // count of file system blocks +type Fsfilcnt64_t = uint64 /* types.h:177:20 */ // count of files + +type Blksize_t = int32 /* types.h:187:14 */ // used for block sizes + +// The boolean_t type has had a varied amount of exposure over the years in +// terms of how its enumeration constants have been exposed. In particular, it +// originally used the __XOPEN_OR_POSIX macro to determine whether to prefix the +// B_TRUE and B_FALSE with an underscore. This check never included the +// question of if we were in a strict ANSI C environment or whether extensions +// were defined. +// +// Compilers such as clang started defaulting to always including an +// XOPEN_SOURCE declaration on behalf of users, but also noted __EXTENSIONS__. +// This would lead most software that had used the non-underscore versions to +// need it. As such, we have adjusted the non-strict XOPEN environment to retain +// its old behavior so as to minimize namespace pollution; however, we instead +// include both variants of the definitions in the generally visible version +// allowing software written in either world to hopefully end up in a good +// place. +// +// This isn't perfect, but should hopefully minimize the pain for folks actually +// trying to build software. +type Boolean_t = uint32 /* types.h:215:69 */ + +// The {u,}pad64_t types can be used in structures such that those structures +// may be accessed by code produced by compilation environments which don't +// support a 64 bit integral datatype. The intention is not to allow +// use of these fields in such environments, but to maintain the alignment +// and offsets of the structure. +// +// Similar comments for {u,}pad128_t. +// +// Note that these types do NOT generate any stronger alignment constraints +// than those available in the underlying ABI. See +type Pad64_t = int64 /* types.h:240:18 */ +type Upad64_t = uint64 /* types.h:241:18 */ + +type Pad128_t = struct { + F_q float64 + F__ccgo_pad1 [8]byte +} /* types.h:257:3 */ + +type Upad128_t = struct { + F_q float64 + F__ccgo_pad1 [8]byte +} /* types.h:262:3 */ + +type Offset_t = int64 /* types.h:264:20 */ +type U_offset_t = uint64 /* types.h:265:22 */ +type Len_t = uint64 /* types.h:266:22 */ +type Diskaddr_t = uint64 /* types.h:267:22 */ + +// Definitions remaining from previous partial support for 64-bit file +// offsets. This partial support for devices greater than 2gb requires +// compiler support for long long. +type Lloff_t = struct{ F_f int64 } /* types.h:284:3 */ + +type Lldaddr_t = struct{ F_f int64 } /* types.h:304:3 */ + +type K_fltset_t = uint32 /* types.h:317:16 */ // kernel fault set type + +// The following type is for various kinds of identifiers. The +// actual type must be the same for all since some system calls +// (such as sigsend) take arguments that may be any of these +// types. The enumeration type idtype_t defined in sys/procset.h +// is used to indicate what type of id is being specified -- +// a process id, process group id, session id, scheduling class id, +// user id, group id, project id, task id or zone id. +type Id_t = int32 /* types.h:329:14 */ + +type Lgrp_id_t = int32 /* types.h:334:15 */ // lgroup ID + +// Type useconds_t is an unsigned integral type capable of storing +// values at least in the range of zero to 1,000,000. +type Useconds_t = uint32 /* types.h:340:17 */ // Time, in microseconds + +type Suseconds_t = int64 /* types.h:344:14 */ // signed # of microseconds + +// Typedefs for dev_t components. +type Major_t = uint32 /* types.h:351:16 */ // major part of device number +type Minor_t = uint32 /* types.h:352:16 */ // minor part of device number + +// The data type of a thread priority. +type Pri_t = int16 /* types.h:361:15 */ + +// The data type for a CPU flags field. (Can be extended to larger unsigned +// types, if needed, limited by ability to update atomically.) +type Cpu_flag_t = uint16 /* types.h:367:18 */ + +// For compatibility reasons the following typedefs (prefixed o_) +// can't grow regardless of the EFT definition. Although, +// applications should not explicitly use these typedefs +// they may be included via a system header definition. +// WARNING: These typedefs may be removed in a future +// release. +// +// ex. the definitions in s5inode.h (now obsoleted) +// remained small to preserve compatibility +// in the S5 file system type. +type O_mode_t = uint16 /* types.h:380:18 */ // old file attribute type +type O_dev_t = int16 /* types.h:381:15 */ // old device type +type O_uid_t = uint16 /* types.h:382:18 */ // old UID type +type O_gid_t = uint16 /* types.h:383:17 */ // old GID type +type O_nlink_t = int16 /* types.h:384:15 */ // old file link type +type O_pid_t = int16 /* types.h:385:15 */ // old process id type +type O_ino_t = uint16 /* types.h:386:18 */ // old inode type + +// POSIX and XOPEN Declarations +type Key_t = int32 /* types.h:392:13 */ // IPC key type +type Mode_t = uint32 /* types.h:394:16 */ // file attribute type + +type Uid_t = uint32 /* types.h:401:22 */ // UID type + +type Gid_t = uint32 /* types.h:404:15 */ // GID type + +type Datalink_id_t = uint32 /* types.h:406:18 */ +type Vrid_t = uint32 /* types.h:407:18 */ + +type Taskid_t = int32 /* types.h:409:17 */ +type Projid_t = int32 /* types.h:410:17 */ +type Poolid_t = int32 /* types.h:411:14 */ +type Zoneid_t = int32 /* types.h:412:14 */ +type Ctid_t = int32 /* types.h:413:14 */ + +// POSIX definitions are same as defined in thread.h and synch.h. +// Any changes made to here should be reflected in corresponding +// files as described in comments. +type Pthread_t = uint32 /* types.h:420:16 */ // = thread_t in thread.h +type Pthread_key_t = uint32 /* types.h:421:16 */ // = thread_key_t in thread.h + +// "Magic numbers" tagging synchronization object types + +type X_pthread_mutex = struct { + F__pthread_mutex_flags struct { + F__pthread_mutex_flag1 uint16 + F__pthread_mutex_flag2 uint8 + F__pthread_mutex_ceiling uint8 + F__pthread_mutex_type uint16 + F__pthread_mutex_magic uint16 + } + F__pthread_mutex_lock struct { + F__ccgo_pad1 [0]uint64 + F__pthread_mutex_lock64 struct{ F__pthread_mutex_pad [8]uint8 } + } + F__pthread_mutex_data uint64 +} /* types.h:429:9 */ + +// = thread_key_t in thread.h + +// "Magic numbers" tagging synchronization object types + +type Pthread_mutex_t = X_pthread_mutex /* types.h:448:3 */ + +type X_pthread_cond = struct { + F__pthread_cond_flags struct { + F__pthread_cond_flag [4]uint8 + F__pthread_cond_type uint16 + F__pthread_cond_magic uint16 + } + F__pthread_cond_data uint64 +} /* types.h:450:9 */ + +type Pthread_cond_t = X_pthread_cond /* types.h:457:3 */ + +// UNIX 98 Extension +type X_pthread_rwlock = struct { + F__pthread_rwlock_readers int32 + F__pthread_rwlock_type uint16 + F__pthread_rwlock_magic uint16 + F__pthread_rwlock_mutex Pthread_mutex_t + F__pthread_rwlock_readercv Pthread_cond_t + F__pthread_rwlock_writercv Pthread_cond_t +} /* types.h:462:9 */ + +// UNIX 98 Extension +type Pthread_rwlock_t = X_pthread_rwlock /* types.h:469:3 */ + +// SUSV3 +type Pthread_barrier_t = struct { + F__pthread_barrier_count uint32 + F__pthread_barrier_current uint32 + F__pthread_barrier_cycle uint64 + F__pthread_barrier_reserved uint64 + F__pthread_barrier_lock Pthread_mutex_t + F__pthread_barrier_cond Pthread_cond_t +} /* types.h:481:3 */ + +type Pthread_spinlock_t = Pthread_mutex_t /* types.h:483:25 */ + +// attributes for threads, dynamically allocated by library +type X_pthread_attr = struct{ F__pthread_attrp uintptr } /* types.h:488:9 */ + +// attributes for threads, dynamically allocated by library +type Pthread_attr_t = X_pthread_attr /* types.h:490:3 */ + +// attributes for mutex, dynamically allocated by library +type X_pthread_mutexattr = struct{ F__pthread_mutexattrp uintptr } /* types.h:495:9 */ + +// attributes for mutex, dynamically allocated by library +type Pthread_mutexattr_t = X_pthread_mutexattr /* types.h:497:3 */ + +// attributes for cond, dynamically allocated by library +type X_pthread_condattr = struct{ F__pthread_condattrp uintptr } /* types.h:502:9 */ + +// attributes for cond, dynamically allocated by library +type Pthread_condattr_t = X_pthread_condattr /* types.h:504:3 */ + +// pthread_once +type X_once = struct{ F__pthread_once_pad [4]uint64 } /* types.h:509:9 */ + +// pthread_once +type Pthread_once_t = X_once /* types.h:511:3 */ + +// UNIX 98 Extensions +// attributes for rwlock, dynamically allocated by library +type X_pthread_rwlockattr = struct{ F__pthread_rwlockattrp uintptr } /* types.h:517:9 */ + +// UNIX 98 Extensions +// attributes for rwlock, dynamically allocated by library +type Pthread_rwlockattr_t = X_pthread_rwlockattr /* types.h:519:3 */ + +// SUSV3 +// attributes for pthread_barrier_t, dynamically allocated by library +type Pthread_barrierattr_t = struct{ F__pthread_barrierattrp uintptr } /* types.h:527:3 */ + +type Dev_t = uint64 /* types.h:529:17 */ // expanded device type + +type Nlink_t = uint32 /* types.h:532:16 */ // file link type +type Pid_t = int32 /* types.h:533:13 */ // size of something in bytes + +type Ssize_t = int64 /* types.h:551:14 */ // size of something in bytes or -1 + +type Time_t = int64 /* types.h:559:15 */ // time of day in seconds + +type Clock_t = int64 /* types.h:564:15 */ // relative time in a specified resolution + +type Clockid_t = int32 /* types.h:569:13 */ // clock identifier type + +type Timer_t = int32 /* types.h:574:13 */ // timer identifier type + +// BEGIN CSTYLED +type Unchar = uint8 /* types.h:580:23 */ +type Ushort = uint16 /* types.h:581:24 */ +type Uint = uint32 /* types.h:582:22 */ +type Ulong = uint64 /* types.h:583:23 */ +// END CSTYLED + +// The following is the value of type id_t to use to indicate the +// caller's current id. See procset.h for the type idtype_t +// which defines which kind of id is being specified. + +// The following value of type pfn_t is used to indicate +// invalid page frame number. + +// BEGIN CSTYLED +type U_char = uint8 /* types.h:650:23 */ +type U_short = uint16 /* types.h:651:24 */ +type U_int = uint32 /* types.h:652:22 */ +type U_long = uint64 /* types.h:653:23 */ +type X_quad = struct{ Fval [2]int32 } /* types.h:654:9 */ + +type Quad_t = X_quad /* types.h:654:38 */ // used by UFS +type Quad = Quad_t /* types.h:655:17 */ // used by UFS +// END CSTYLED + +// Nested include for BSD/sockets source compatibility. +// (The select macros used to be defined here). +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// +// Copyright 2010 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// University Copyright- Copyright (c) 1982, 1986, 1988 +// The Regents of the University of California +// All Rights Reserved +// +// University Acknowledgment- Portions of this document are derived from +// software developed by the University of California, Berkeley, and its +// contributors. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2005 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Implementation-private. This header should not be included +// directly by an application. The application should instead +// include which includes this header conditionally +// depending on which feature test macros are defined. By default, +// this header is included by . X/Open and POSIX +// standards requirements result in this header being included +// by only under a restricted set of conditions. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Time expressed in seconds and nanoseconds + +type Timespec = struct { + Ftv_sec int64 + Ftv_nsec int64 +} /* time_impl.h:57:9 */ + +// used by UFS +// END CSTYLED + +// Nested include for BSD/sockets source compatibility. +// (The select macros used to be defined here). +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// +// Copyright 2010 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// University Copyright- Copyright (c) 1982, 1986, 1988 +// The Regents of the University of California +// All Rights Reserved +// +// University Acknowledgment- Portions of this document are derived from +// software developed by the University of California, Berkeley, and its +// contributors. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2005 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Implementation-private. This header should not be included +// directly by an application. The application should instead +// include which includes this header conditionally +// depending on which feature test macros are defined. By default, +// this header is included by . X/Open and POSIX +// standards requirements result in this header being included +// by only under a restricted set of conditions. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Time expressed in seconds and nanoseconds + +type Timespec_t = Timespec /* time_impl.h:60:3 */ + +type Timestruc_t = Timespec /* time_impl.h:81:25 */ // definition per SVr4 + +// The following has been left in for backward compatibility. Portable +// applications should not use the structure name timestruc. + +// Timer specification +type Itimerspec = struct { + Fit_interval struct { + Ftv_sec int64 + Ftv_nsec int64 + } + Fit_value struct { + Ftv_sec int64 + Ftv_nsec int64 + } +} /* time_impl.h:95:9 */ + +// definition per SVr4 + +// The following has been left in for backward compatibility. Portable +// applications should not use the structure name timestruc. + +// Timer specification +type Itimerspec_t = Itimerspec /* time_impl.h:98:3 */ + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright (c) 1982, 1986, 1993 Regents of the University of California. +// All rights reserved. The Berkeley software License Agreement +// specifies the terms and conditions for redistribution. + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2020 OmniOS Community Edition (OmniOSce) Association. + +// Copyright (c) 2013, 2016 by Delphix. All rights reserved. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Structure returned by gettimeofday(2) system call, +// and used in other calls. + +type Timeval = struct { + Ftv_sec int64 + Ftv_usec int64 +} /* time.h:54:1 */ + +type Timezone = struct { + Ftz_minuteswest int32 + Ftz_dsttime int32 +} /* time.h:86:1 */ + +// Needed for longlong_t type. Placement of this due to +// including which relies on the presense of the itimerval +// structure. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2021 Oxide Computer Company + +// Operations on timevals. + +// Names of the interval timers, and structure +// defining a timer setting. +// time and when system is running on +// behalf of the process. +// time profiling of multithreaded +// programs. + +type Itimerval = struct { + Fit_interval struct { + Ftv_sec int64 + Ftv_usec int64 + } + Fit_value struct { + Ftv_sec int64 + Ftv_usec int64 + } +} /* time.h:209:1 */ + +// Definitions for commonly used resolutions. + +// Time expressed as a 64-bit nanosecond counter. +type Hrtime_t = int64 /* time.h:265:20 */ + +// The inclusion of is historical and was added for +// backward compatibility in delta 1.2 when a number of definitions +// were moved out of . More recently, the timespec and +// itimerspec structure definitions, along with the _CLOCK_*, CLOCK_*, +// _TIMER_*, and TIMER_* symbols were moved to , +// which is now included by . This change was due to POSIX +// 1003.1b-1993 and X/Open UNIX 98 requirements. For non-POSIX and +// non-X/Open applications, including this header will still make +// visible these definitions. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1988 AT&T +// All Rights Reserved + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2007 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2010 Nexenta Systems, Inc. Al rights reserved. +// Copyright 2016 Joyent, Inc. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1988 AT&T +// All Rights Reserved + +// Copyright 2014 Garrett D'Amore +// Copyright 2014 PALO, Richard. +// +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// An application should not include this header directly. Instead it +// should be included only through the inclusion of other Sun headers. +// +// The contents of this header is limited to identifiers specified in the +// C Standard. Any new identifiers specified in future amendments to the +// C Standard must be placed in this header. If these new identifiers +// are required to also be in the C++ Standard "std" namespace, then for +// anything other than macro definitions, corresponding "using" directives +// must also be added to . + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// This file and its contents are supplied under the terms of the +// Common Development and Distribution License ("CDDL"), version 1.0. +// You may only use this file in accordance with the terms of version +// 1.0 of the CDDL. +// +// A full copy of the text of the CDDL should have accompanied this +// source. A copy of the CDDL is also available via the Internet at +// http://www.illumos.org/license/CDDL. + +// Copyright 2014-2016 PALO, Richard. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// POSIX.1-2008 requires that the NULL macro be cast to type void *. + +type Tm = struct { + Ftm_sec int32 + Ftm_min int32 + Ftm_hour int32 + Ftm_mday int32 + Ftm_mon int32 + Ftm_year int32 + Ftm_wday int32 + Ftm_yday int32 + Ftm_isdst int32 +} /* time_iso.h:80:1 */ + +// Neither X/Open nor POSIX allow the inclusion of for the +// definition of the sigevent structure. Both require the inclusion +// of and when using the timer_create() function. +// However, X/Open also specifies that the sigevent structure be defined +// in as described in the header . This prevents +// compiler warnings for applications that only include and not +// also . The sigval union and the sigevent structure is +// therefore defined both here and in which gets included +// via inclusion of . +type Sigval = struct { + F__ccgo_pad1 [0]uint64 + Fsival_int int32 + F__ccgo_pad2 [4]byte +} /* time.h:125:1 */ + +type Sigevent = struct { + Fsigev_notify int32 + Fsigev_signo int32 + Fsigev_value struct { + F__ccgo_pad1 [0]uint64 + Fsival_int int32 + F__ccgo_pad2 [4]byte + } + Fsigev_notify_function uintptr + Fsigev_notify_attributes uintptr + F__sigev_pad2 int32 + F__ccgo_pad1 [4]byte +} /* time.h:133:1 */ + +type Locale_t = uintptr /* time.h:292:24 */ + +// The inclusion of is needed for the FD_CLR, +// FD_ISSET, FD_SET, and FD_SETSIZE macros as well as the +// select() prototype defined in the XOpen specifications +// beginning with XSH4v2. Placement required after definition +// for itimerval. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// +// Copyright 2010 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// University Copyright- Copyright (c) 1982, 1986, 1988 +// The Regents of the University of California +// All Rights Reserved +// +// University Acknowledgment- Portions of this document are derived from +// software developed by the University of California, Berkeley, and its +// contributors. + +// The sigset_t type is defined in and duplicated +// in as a result of XPG4v2 requirements. XPG6 +// now allows the visibility of signal.h in this header, however +// an order of inclusion problem occurs as a result of inclusion +// of in under certain conditions. +// Rather than include here, we've duplicated +// the sigset_t type instead. This type is required for the XPG6 +// introduced pselect() function also declared in this header. +type Sigset_t = struct{ F__sigbits [4]uint32 } /* select.h:76:3 */ + +// Select uses bit masks of file descriptors in longs. +// These macros manipulate such bit fields. +// FD_SETSIZE may be defined by the user, but the default here +// should be >= RLIM_FD_MAX. + +type Fd_mask = int64 /* select.h:92:14 */ +type Fds_mask = int64 /* select.h:94:14 */ + +// The value of _NBBY needs to be consistant with the value +// of NBBY in . + +type Fd_set1 = struct{ Ffds_bits [1024]int64 } /* select.h:120:9 */ + +// The value of _NBBY needs to be consistant with the value +// of NBBY in . + +type Fd_set = Fd_set1 /* select.h:125:3 */ + +// _VOID was defined to be either void or char but this is not +// required because previous SunOS compilers have accepted the void +// type. However, because many system header and source files use the +// void keyword, the volatile keyword, and ANSI C function prototypes, +// non-ANSI compilers cannot compile the system anyway. The _VOID macro +// should therefore not be used and remains for source compatibility +// only. +// CSTYLED + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/stdio.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2014 Garrett D'Amore +// Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved. + +// Copyright (c) 1988 AT&T +// All Rights Reserved + +// User-visible pieces of the ANSI C standard I/O package. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Do all of our 'redefine_extname' processing before +// declarations of the associated functions are seen. +// This is necessary to keep gcc happy. + +// large file compilation environment setup + +// In the LP64 compilation environment, all APIs are already large file + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/iso/stdio_iso.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2014 Garrett D'Amore +// Copyright 2014 PALO, Richard. +// +// Copyright 2005 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright (c) 1988 AT&T +// All Rights Reserved + +// An application should not include this header directly. Instead it +// should be included only through the inclusion of other Sun headers. +// +// The contents of this header is limited to identifiers specified in the +// C Standard. Any new identifiers specified in future amendments to the +// C Standard must be placed in this header. If these new identifiers +// are required to also be in the C++ Standard "std" namespace, then for +// anything other than macro definitions, corresponding "using" directives +// must also be added to . + +// User-visible pieces of the ANSI C standard I/O package. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// This file and its contents are supplied under the terms of the +// Common Development and Distribution License ("CDDL"), version 1.0. +// You may only use this file in accordance with the terms of version +// 1.0 of the CDDL. +// +// A full copy of the text of the CDDL should have accompanied this +// source. A copy of the CDDL is also available via the Internet at +// http://www.illumos.org/license/CDDL. + +// Copyright 2014-2016 PALO, Richard. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// An application should not include this header directly. Instead it +// should be included only through the inclusion of other Sun headers. +// +// The purpose of this header is to provide the type definitions for +// the va_list argument used by a number of printf and printf like +// functions. The headers that define these various function prototypes +// #include this header directly. These include but are not necessarily +// limited to , , , and +// . The type definitions included in this header are for +// the benefit of consumers of va_list. +// +// Any application that accepts variable argument lists must as documented, +// include either or the preferred . Doing so will +// pull in the appropriate compiler protocols defined in +// which is in turn is included by and . See comments +// in for more detailed information regarding implementation +// and compiler specific protocols. + +// The common definitions exported by this header or compilers using +// this header are: +// +// the identifier __builtin_va_alist for the variable list pseudo parameter +// the type __va_alist_type for the variable list pseudo parameter +// the type __va_list defining the type of the variable list iterator +// +// The feature macros (e.g. __BUILTIN_VA_STRUCT) and compiler macros +// (__GNUC__) and processor macros (e.g. __amd64) are intended to be +// defined by the compilation system, not the user of the system. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2016 Joyent, Inc. + +type X__gnuc_va_list = uintptr /* va_list.h:108:27 */ +// XX64 This seems unnecessary .. but is needed because vcmn_err is +// +// defined with __va_list instead of plain old va_list. +// Perhaps that should be fixed! +type X__va_list = uintptr /* va_list.h:114:27 */ + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +type X__FILE1 = struct{ F__pad [16]int64 } /* stdio_tag.h:40:9 */ + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +type X__FILE = X__FILE1 /* stdio_tag.h:40:27 */ + +// If feature test macros are set that enable interfaces that use types +// defined in , get those types by doing the include. +// +// Note that in asking for the interfaces associated with this feature test +// macro one also asks for definitions of the POSIX types. + +type FILE = X__FILE /* stdio_iso.h:102:16 */ + +type Fpos_t = int64 /* stdio_iso.h:115:15 */ + +type Fpos64_t = int64 /* stdio.h:188:17 */ + +type Group = struct { + Fgr_name uintptr + Fgr_passwd uintptr + Fgr_gid uint32 + F__ccgo_pad1 [4]byte + Fgr_mem uintptr +} /* grp.h:50:1 */ + +var _ int8 /* gen.c:2:13: */ diff --git a/vendor/modernc.org/libc/grp/grp_linux_loong64.go b/vendor/modernc.org/libc/grp/grp_linux_loong64.go new file mode 100644 index 000000000..2f0c0b39a --- /dev/null +++ b/vendor/modernc.org/libc/grp/grp_linux_loong64.go @@ -0,0 +1,942 @@ +// Code generated by 'ccgo grp/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o grp/grp_linux_loong64.go -pkgname grp', DO NOT EDIT. + +package grp + +import ( + "math" + "reflect" + "sync/atomic" + "unsafe" +) + +var _ = math.Pi +var _ reflect.Kind +var _ atomic.Value +var _ unsafe.Pointer + +const ( + NSS_BUFLEN_GROUP = 1024 // grp.h:114:1: + X_ABILP64 = 3 // :377:1: + X_ATFILE_SOURCE = 1 // features.h:353:1: + X_BITS_TIME64_H = 1 // time64.h:24:1: + X_BITS_TYPESIZES_H = 1 // typesizes.h:24:1: + X_BITS_TYPES_H = 1 // types.h:24:1: + X_BSD_SIZE_T_ = 0 // stddef.h:193:1: + X_BSD_SIZE_T_DEFINED_ = 0 // stddef.h:196:1: + X_DEFAULT_SOURCE = 1 // features.h:238:1: + X_FEATURES_H = 1 // features.h:19:1: + X_FILE_OFFSET_BITS = 64 // :25:1: + X_GCC_SIZE_T = 0 // stddef.h:200:1: + X_GRP_H = 1 // grp.h:23:1: + X_LOONGARCH_ARCH = "loongarch64" // :214:1: + X_LOONGARCH_ARCH_LOONGARCH64 = 1 // :340:1: + X_LOONGARCH_FPSET = 32 // :265:1: + X_LOONGARCH_SIM = 3 // :233:1: + X_LOONGARCH_SPFPSET = 32 // :88:1: + X_LOONGARCH_SZINT = 32 // :230:1: + X_LOONGARCH_SZLONG = 64 // :388:1: + X_LOONGARCH_SZPTR = 64 // :200:1: + X_LOONGARCH_TUNE = "la464" // :245:1: + X_LOONGARCH_TUNE_LA464 = 1 // :63:1: + X_LP64 = 1 // :372:1: + X_POSIX_C_SOURCE = 200809 // features.h:292:1: + X_POSIX_SOURCE = 1 // features.h:290:1: + X_SIZET_ = 0 // stddef.h:201:1: + X_SIZE_T = 0 // stddef.h:187:1: + X_SIZE_T_ = 0 // stddef.h:192:1: + X_SIZE_T_DECLARED = 0 // stddef.h:197:1: + X_SIZE_T_DEFINED = 0 // stddef.h:195:1: + X_SIZE_T_DEFINED_ = 0 // stddef.h:194:1: + X_STDC_PREDEF_H = 1 // :223:1: + X_SYS_CDEFS_H = 1 // cdefs.h:20:1: + X_SYS_SIZE_T_H = 0 // stddef.h:188:1: + X_T_SIZE = 0 // stddef.h:190:1: + X_T_SIZE_ = 0 // stddef.h:189:1: + Linux = 1 // :308:1: + Unix = 1 // :247:1: +) + +type Ptrdiff_t = int64 /* :3:26 */ + +type Size_t = uint64 /* :9:23 */ + +type Wchar_t = int32 /* :15:24 */ + +type X__int128_t = struct { + Flo int64 + Fhi int64 +} /* :21:43 */ // must match modernc.org/mathutil.Int128 +type X__uint128_t = struct { + Flo uint64 + Fhi uint64 +} /* :22:44 */ // must match modernc.org/mathutil.Int128 + +type X__builtin_va_list = uintptr /* :46:14 */ +type X__float128 = float64 /* :47:21 */ + +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// POSIX Standard: 9.2.1 Group Database Access + +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// These are defined by the user (or the compiler) +// to specify the desired environment: +// +// __STRICT_ANSI__ ISO Standard C. +// _ISOC99_SOURCE Extensions to ISO C89 from ISO C99. +// _ISOC11_SOURCE Extensions to ISO C99 from ISO C11. +// _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X. +// __STDC_WANT_LIB_EXT2__ +// Extensions to ISO C99 from TR 27431-2:2010. +// __STDC_WANT_IEC_60559_BFP_EXT__ +// Extensions to ISO C11 from TS 18661-1:2014. +// __STDC_WANT_IEC_60559_FUNCS_EXT__ +// Extensions to ISO C11 from TS 18661-4:2015. +// __STDC_WANT_IEC_60559_TYPES_EXT__ +// Extensions to ISO C11 from TS 18661-3:2015. +// __STDC_WANT_IEC_60559_EXT__ +// ISO C2X interfaces defined only in Annex F. +// +// _POSIX_SOURCE IEEE Std 1003.1. +// _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2; +// if >=199309L, add IEEE Std 1003.1b-1993; +// if >=199506L, add IEEE Std 1003.1c-1995; +// if >=200112L, all of IEEE 1003.1-2004 +// if >=200809L, all of IEEE 1003.1-2008 +// _XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if +// Single Unix conformance is wanted, to 600 for the +// sixth revision, to 700 for the seventh revision. +// _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions. +// _LARGEFILE_SOURCE Some more functions for correct standard I/O. +// _LARGEFILE64_SOURCE Additional functionality from LFS for large files. +// _FILE_OFFSET_BITS=N Select default filesystem interface. +// _ATFILE_SOURCE Additional *at interfaces. +// _DYNAMIC_STACK_SIZE_SOURCE Select correct (but non compile-time constant) +// MINSIGSTKSZ, SIGSTKSZ and PTHREAD_STACK_MIN. +// _GNU_SOURCE All of the above, plus GNU extensions. +// _DEFAULT_SOURCE The default set of features (taking precedence over +// __STRICT_ANSI__). +// +// _FORTIFY_SOURCE Add security hardening to many library functions. +// Set to 1, 2 or 3; 3 performs stricter checks than 2, which +// performs stricter checks than 1. +// +// _REENTRANT, _THREAD_SAFE +// Obsolete; equivalent to _POSIX_C_SOURCE=199506L. +// +// The `-ansi' switch to the GNU C compiler, and standards conformance +// options such as `-std=c99', define __STRICT_ANSI__. If none of +// these are defined, or if _DEFAULT_SOURCE is defined, the default is +// to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to +// 200809L, as well as enabling miscellaneous functions from BSD and +// SVID. If more than one of these are defined, they accumulate. For +// example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together +// give you ISO C, 1003.1, and 1003.2, but nothing else. +// +// These are defined by this file and are used by the +// header files to decide what to declare or define: +// +// __GLIBC_USE (F) Define things from feature set F. This is defined +// to 1 or 0; the subsequent macros are either defined +// or undefined, and those tests should be moved to +// __GLIBC_USE. +// __USE_ISOC11 Define ISO C11 things. +// __USE_ISOC99 Define ISO C99 things. +// __USE_ISOC95 Define ISO C90 AMD1 (C95) things. +// __USE_ISOCXX11 Define ISO C++11 things. +// __USE_POSIX Define IEEE Std 1003.1 things. +// __USE_POSIX2 Define IEEE Std 1003.2 things. +// __USE_POSIX199309 Define IEEE Std 1003.1, and .1b things. +// __USE_POSIX199506 Define IEEE Std 1003.1, .1b, .1c and .1i things. +// __USE_XOPEN Define XPG things. +// __USE_XOPEN_EXTENDED Define X/Open Unix things. +// __USE_UNIX98 Define Single Unix V2 things. +// __USE_XOPEN2K Define XPG6 things. +// __USE_XOPEN2KXSI Define XPG6 XSI things. +// __USE_XOPEN2K8 Define XPG7 things. +// __USE_XOPEN2K8XSI Define XPG7 XSI things. +// __USE_LARGEFILE Define correct standard I/O things. +// __USE_LARGEFILE64 Define LFS things with separate names. +// __USE_FILE_OFFSET64 Define 64bit interface as default. +// __USE_MISC Define things from 4.3BSD or System V Unix. +// __USE_ATFILE Define *at interfaces and AT_* constants for them. +// __USE_DYNAMIC_STACK_SIZE Define correct (but non compile-time constant) +// MINSIGSTKSZ, SIGSTKSZ and PTHREAD_STACK_MIN. +// __USE_GNU Define GNU extensions. +// __USE_FORTIFY_LEVEL Additional security measures used, according to level. +// +// The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are +// defined by this file unconditionally. `__GNU_LIBRARY__' is provided +// only for compatibility. All new code should use the other symbols +// to test for features. +// +// All macros listed above as possibly being defined by this file are +// explicitly undefined if they are not explicitly defined. +// Feature-test macros that are not defined by the user or compiler +// but are implied by the other feature-test macros defined (or by the +// lack of any definitions) are defined by the file. +// +// ISO C feature test macros depend on the definition of the macro +// when an affected header is included, not when the first system +// header is included, and so they are handled in +// , which does not have a multiple include +// guard. Feature test macros that can be handled from the first +// system header included are handled here. + +// Undefine everything, so we get a clean slate. + +// Suppress kernel-name space pollution unless user expressedly asks +// for it. + +// Convenience macro to test the version of gcc. +// Use like this: +// #if __GNUC_PREREQ (2,8) +// ... code requiring gcc 2.8 or later ... +// #endif +// Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was +// added in 2.0. + +// Similarly for clang. Features added to GCC after version 4.2 may +// or may not also be available in clang, and clang's definitions of +// __GNUC(_MINOR)__ are fixed at 4 and 2 respectively. Not all such +// features can be queried via __has_extension/__has_feature. + +// Whether to use feature set F. + +// _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for +// _DEFAULT_SOURCE. If _DEFAULT_SOURCE is present we do not +// issue a warning; the expectation is that the source is being +// transitioned to use the new macro. + +// If _GNU_SOURCE was defined by the user, turn on all the other features. + +// If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined, +// define _DEFAULT_SOURCE. + +// This is to enable the ISO C2X extension. + +// This is to enable the ISO C11 extension. + +// This is to enable the ISO C99 extension. + +// This is to enable the ISO C90 Amendment 1:1995 extension. + +// If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE +// is defined, use POSIX.1-2008 (or another version depending on +// _XOPEN_SOURCE). + +// Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be +// defined in all multithreaded code. GNU libc has not required this +// for many years. We now treat them as compatibility synonyms for +// _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with +// comprehensive support for multithreaded code. Using them never +// lowers the selected level of POSIX conformance, only raises it. + +// Features part to handle 64-bit time_t support. +// Copyright (C) 2021-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// We need to know the word size in order to check the time size. +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Bit size of the time_t type at glibc build time, general case. +// Copyright (C) 2018-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Size in bits of the 'time_t' type of the default ABI. + +// The function 'gets' existed in C89, but is impossible to use +// safely. It has been removed from ISO C11 and ISO C++14. Note: for +// compatibility with various implementations of , this test +// must consider only the value of __cplusplus when compiling C++. + +// GNU formerly extended the scanf functions with modified format +// specifiers %as, %aS, and %a[...] that allocate a buffer for the +// input using malloc. This extension conflicts with ISO C99, which +// defines %a as a standalone format specifier that reads a floating- +// point number; moreover, POSIX.1-2008 provides the same feature +// using the modifier letter 'm' instead (%ms, %mS, %m[...]). +// +// We now follow C99 unless GNU extensions are active and the compiler +// is specifically in C89 or C++98 mode (strict or not). For +// instance, with GCC, -std=gnu11 will have C99-compliant scanf with +// or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the +// old extension. + +// ISO C2X added support for a 0b or 0B prefix on binary constants as +// inputs to strtol-family functions (base 0 or 2). This macro is +// used to condition redirection in headers to allow that redirection +// to be disabled when building those functions, despite _GNU_SOURCE +// being defined. + +// Get definitions of __STDC_* predefined macros, if the compiler has +// not preincluded this header automatically. +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// This macro indicates that the installed library is the GNU C Library. +// For historic reasons the value now is 6 and this will stay from now +// on. The use of this variable is deprecated. Use __GLIBC__ and +// __GLIBC_MINOR__ now (see below) when you want to test for a specific +// GNU C library version and use the values in to get +// the sonames of the shared libraries. + +// Major and minor version number of the GNU C library package. Use +// these macros to test for features in specific releases. + +// This is here only because every header file already includes this one. +// Copyright (C) 1992-2023 Free Software Foundation, Inc. +// Copyright The GNU Toolchain Authors. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// We are almost always included from features.h. + +// The GNU libc does not support any K&R compilers or the traditional mode +// of ISO C compilers anymore. Check for some of the combinations not +// supported anymore. + +// Some user header file might have defined this before. + +// Compilers that lack __has_attribute may object to +// #if defined __has_attribute && __has_attribute (...) +// even though they do not need to evaluate the right-hand side of the &&. +// Similarly for __has_builtin, etc. + +// All functions, except those with callbacks or those that +// synchronize memory, are leaf functions. + +// GCC can always grok prototypes. For C++ programs we add throw() +// to help it optimize the function calls. But this only works with +// gcc 2.8.x and egcs. For gcc 3.4 and up we even mark C functions +// as non-throwing using a function attribute since programs can use +// the -fexceptions options for C code as well. + +// These two macros are not used in glibc anymore. They are kept here +// only because some other projects expect the macros to be defined. + +// For these things, GCC behaves the ANSI way normally, +// and the non-ANSI way under -traditional. + +// This is not a typedef so `const __ptr_t' does the right thing. + +// C++ needs to know that types and declarations are C, not C++. + +// Fortify support. + +// Use __builtin_dynamic_object_size at _FORTIFY_SOURCE=3 when available. + +// Support for flexible arrays. +// Headers that should use flexible arrays only if they're "real" +// (e.g. only if they won't affect sizeof()) should test +// #if __glibc_c99_flexarr_available. + +// __asm__ ("xyz") is used throughout the headers to rename functions +// at the assembly language level. This is wrapped by the __REDIRECT +// macro, in order to support compilers that can do this some other +// way. When compilers don't support asm-names at all, we have to do +// preprocessor tricks instead (which don't have exactly the right +// semantics, but it's the best we can do). +// +// Example: +// int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid); + +// +// #elif __SOME_OTHER_COMPILER__ +// +// # define __REDIRECT(name, proto, alias) name proto; _Pragma("let " #name " = " #alias) + +// GCC and clang have various useful declarations that can be made with +// the '__attribute__' syntax. All of the ways we use this do fine if +// they are omitted for compilers that don't understand it. + +// At some point during the gcc 2.96 development the `malloc' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// Tell the compiler which arguments to an allocation function +// indicate the size of the allocation. + +// Tell the compiler which argument to an allocation function +// indicates the alignment of the allocation. + +// At some point during the gcc 2.96 development the `pure' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// This declaration tells the compiler that the value is constant. + +// At some point during the gcc 3.1 development the `used' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// Since version 3.2, gcc allows marking deprecated functions. + +// Since version 4.5, gcc also allows one to specify the message printed +// when a deprecated function is used. clang claims to be gcc 4.2, but +// may also support this feature. + +// At some point during the gcc 2.8 development the `format_arg' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. +// If several `format_arg' attributes are given for the same function, in +// gcc-3.0 and older, all but the last one are ignored. In newer gccs, +// all designated arguments are considered. + +// At some point during the gcc 2.97 development the `strfmon' format +// attribute for functions was introduced. We don't want to use it +// unconditionally (although this would be possible) since it +// generates warnings. + +// The nonnull function attribute marks pointer parameters that +// must not be NULL. This has the name __nonnull in glibc, +// and __attribute_nonnull__ in files shared with Gnulib to avoid +// collision with a different __nonnull in DragonFlyBSD 5.9. + +// The returns_nonnull function attribute marks the return type of the function +// as always being non-null. + +// If fortification mode, we warn about unused results of certain +// function calls which can lead to problems. + +// Forces a function to be always inlined. +// The Linux kernel defines __always_inline in stddef.h (283d7573), and +// it conflicts with this definition. Therefore undefine it first to +// allow either header to be included first. + +// Associate error messages with the source location of the call site rather +// than with the source location inside the function. + +// GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99 +// inline semantics, unless -fgnu89-inline is used. Using __GNUC_STDC_INLINE__ +// or __GNUC_GNU_INLINE is not a good enough check for gcc because gcc versions +// older than 4.3 may define these macros and still not guarantee GNU inlining +// semantics. +// +// clang++ identifies itself as gcc-4.2, but has support for GNU inlining +// semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and +// __GNUC_GNU_INLINE__ macro definitions. + +// GCC 4.3 and above allow passing all anonymous arguments of an +// __extern_always_inline function to some other vararg function. + +// It is possible to compile containing GCC extensions even if GCC is +// run in pedantic mode if the uses are carefully marked using the +// `__extension__' keyword. But this is not generally available before +// version 2.8. + +// __restrict is known in EGCS 1.2 and above, and in clang. +// It works also in C++ mode (outside of arrays), but only when spelled +// as '__restrict', not 'restrict'. + +// ISO C99 also allows to declare arrays as non-overlapping. The syntax is +// array_name[restrict] +// GCC 3.1 and clang support this. +// This syntax is not usable in C++ mode. + +// Describes a char array whose address can safely be passed as the first +// argument to strncpy and strncat, as the char array is not necessarily +// a NUL-terminated string. + +// Undefine (also defined in libc-symbols.h). +// Copies attributes from the declaration or type referenced by +// the argument. + +// Gnulib avoids including these, as they don't work on non-glibc or +// older glibc platforms. +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Properties of long double type. ldbl-128 version. +// Copyright (C) 2016-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// long double is distinct from double, so there is nothing to +// define here. + +// __glibc_macro_warning (MESSAGE) issues warning MESSAGE. This is +// intended for use in preprocessor macros. +// +// Note: MESSAGE must be a _single_ string; concatenation of string +// literals is not supported. + +// Generic selection (ISO C11) is a C-only feature, available in GCC +// since version 4.9. Previous versions do not provide generic +// selection, even though they might set __STDC_VERSION__ to 201112L, +// when in -std=c11 mode. Thus, we must check for !defined __GNUC__ +// when testing __STDC_VERSION__ for generic selection support. +// On the other hand, Clang also defines __GNUC__, so a clang-specific +// check is required to enable the use of generic selection. + +// Designates a 1-based positional argument ref-index of pointer type +// that can be used to access size-index elements of the pointed-to +// array according to access mode, or at least one element when +// size-index is not provided: +// access (access-mode, [, ]) +// For _FORTIFY_SOURCE == 3 we use __builtin_dynamic_object_size, which may +// use the access attribute to get object sizes from function definition +// arguments, so we can't use them on functions we fortify. Drop the object +// size hints for such functions. + +// Designates dealloc as a function to call to deallocate objects +// allocated by the declared function. + +// Specify that a function such as setjmp or vfork may return +// twice. + +// If we don't have __REDIRECT, prototypes will be missing if +// __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64]. + +// Decide whether we can define 'extern inline' functions in headers. + +// This is here only because every header file already includes this one. +// Get the definitions of all the appropriate `__stub_FUNCTION' symbols. +// contains `#define __stub_FUNCTION' when FUNCTION is a stub +// that will always return failure (and set errno to ENOSYS). +// This file is automatically generated. +// This file selects the right generated file of `__stub_FUNCTION' macros +// based on the architecture being compiled for. + +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// This file is automatically generated. +// It defines a symbol `__stub_FUNCTION' for each function +// in the C library which is a stub, meaning it will fail +// every time called, usually setting errno to ENOSYS. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Bit size of the time_t type at glibc build time, general case. +// Copyright (C) 2018-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Size in bits of the 'time_t' type of the default ABI. + +// Convenience types. +type X__u_char = uint8 /* types.h:31:23 */ +type X__u_short = uint16 /* types.h:32:28 */ +type X__u_int = uint32 /* types.h:33:22 */ +type X__u_long = uint64 /* types.h:34:27 */ + +// Fixed-size types, underlying types depend on word size and compiler. +type X__int8_t = int8 /* types.h:37:21 */ +type X__uint8_t = uint8 /* types.h:38:23 */ +type X__int16_t = int16 /* types.h:39:26 */ +type X__uint16_t = uint16 /* types.h:40:28 */ +type X__int32_t = int32 /* types.h:41:20 */ +type X__uint32_t = uint32 /* types.h:42:22 */ +type X__int64_t = int64 /* types.h:44:25 */ +type X__uint64_t = uint64 /* types.h:45:27 */ + +// Smallest types with at least a given width. +type X__int_least8_t = int8 /* types.h:52:18 */ +type X__uint_least8_t = uint8 /* types.h:53:19 */ +type X__int_least16_t = int16 /* types.h:54:19 */ +type X__uint_least16_t = uint16 /* types.h:55:20 */ +type X__int_least32_t = int32 /* types.h:56:19 */ +type X__uint_least32_t = uint32 /* types.h:57:20 */ +type X__int_least64_t = int64 /* types.h:58:19 */ +type X__uint_least64_t = uint64 /* types.h:59:20 */ + +// quad_t is also 64 bits. +type X__quad_t = int64 /* types.h:63:18 */ +type X__u_quad_t = uint64 /* types.h:64:27 */ + +// Largest integral types. +type X__intmax_t = int64 /* types.h:72:18 */ +type X__uintmax_t = uint64 /* types.h:73:27 */ + +// The machine-dependent file defines __*_T_TYPE +// macros for each of the OS types we define below. The definitions +// of those macros must use the following macros for underlying types. +// We define __S_TYPE and __U_TYPE for the signed and unsigned +// variants of each of the following integer types on this machine. +// +// 16 -- "natural" 16-bit type (always short) +// 32 -- "natural" 32-bit type (always int) +// 64 -- "natural" 64-bit type (long or long long) +// LONG32 -- 32-bit type, traditionally long +// QUAD -- 64-bit type, traditionally long long +// WORD -- natural type of __WORDSIZE bits (int or long) +// LONGWORD -- type of __WORDSIZE bits, traditionally long +// +// We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the +// conventional uses of `long' or `long long' type modifiers match the +// types we define, even when a less-adorned type would be the same size. +// This matters for (somewhat) portably writing printf/scanf formats for +// these types, where using the appropriate l or ll format modifiers can +// make the typedefs and the formats match up across all GNU platforms. If +// we used `long' when it's 64 bits where `long long' is expected, then the +// compiler would warn about the formats not matching the argument types, +// and the programmer changing them to shut up the compiler would break the +// program's portability. +// +// Here we assume what is presently the case in all the GCC configurations +// we support: long long is always 64 bits, long is always word/address size, +// and int is always 32 bits. + +// No need to mark the typedef with __extension__. +// bits/typesizes.h -- underlying types for *_t. For the generic Linux ABI. +// Copyright (C) 2011-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library. If not, see +// . + +// See for the meaning of these macros. This file exists so +// that need not vary across different GNU platforms. + +// Tell the libc code that off_t and off64_t are actually the same type +// for all ABI purposes, even if possibly expressed as different base types +// for C type-checking purposes. + +// Same for ino_t and ino64_t. + +// And for __rlim_t and __rlim64_t. + +// And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t. + +// And for getitimer, setitimer and rusage + +// Number of descriptors that can fit in an `fd_set'. + +// bits/time64.h -- underlying types for __time64_t. Generic version. +// Copyright (C) 2018-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Define __TIME64_T_TYPE so that it is always a 64-bit type. + +// If we already have 64-bit time type then use it. + +type X__dev_t = uint64 /* types.h:145:25 */ // Type of device numbers. +type X__uid_t = uint32 /* types.h:146:25 */ // Type of user identifications. +type X__gid_t = uint32 /* types.h:147:25 */ // Type of group identifications. +type X__ino_t = uint64 /* types.h:148:25 */ // Type of file serial numbers. +type X__ino64_t = uint64 /* types.h:149:27 */ // Type of file serial numbers (LFS). +type X__mode_t = uint32 /* types.h:150:26 */ // Type of file attribute bitmasks. +type X__nlink_t = uint32 /* types.h:151:27 */ // Type of file link counts. +type X__off_t = int64 /* types.h:152:25 */ // Type of file sizes and offsets. +type X__off64_t = int64 /* types.h:153:27 */ // Type of file sizes and offsets (LFS). +type X__pid_t = int32 /* types.h:154:25 */ // Type of process identifications. +type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs. +type X__clock_t = int64 /* types.h:156:27 */ // Type of CPU usage counts. +type X__rlim_t = uint64 /* types.h:157:26 */ // Type for resource measurement. +type X__rlim64_t = uint64 /* types.h:158:28 */ // Type for resource measurement (LFS). +type X__id_t = uint32 /* types.h:159:24 */ // General type for IDs. +type X__time_t = int64 /* types.h:160:26 */ // Seconds since the Epoch. +type X__useconds_t = uint32 /* types.h:161:30 */ // Count of microseconds. +type X__suseconds_t = int64 /* types.h:162:31 */ // Signed count of microseconds. +type X__suseconds64_t = int64 /* types.h:163:33 */ + +type X__daddr_t = int32 /* types.h:165:27 */ // The type of a disk address. +type X__key_t = int32 /* types.h:166:25 */ // Type of an IPC key. + +// Clock ID used in clock and timer functions. +type X__clockid_t = int32 /* types.h:169:29 */ + +// Timer ID returned by `timer_create'. +type X__timer_t = uintptr /* types.h:172:12 */ + +// Type to represent block size. +type X__blksize_t = int32 /* types.h:175:29 */ + +// Types from the Large File Support interface. + +// Type to count number of disk blocks. +type X__blkcnt_t = int64 /* types.h:180:28 */ +type X__blkcnt64_t = int64 /* types.h:181:30 */ + +// Type to count file system blocks. +type X__fsblkcnt_t = uint64 /* types.h:184:30 */ +type X__fsblkcnt64_t = uint64 /* types.h:185:32 */ + +// Type to count file system nodes. +type X__fsfilcnt_t = uint64 /* types.h:188:30 */ +type X__fsfilcnt64_t = uint64 /* types.h:189:32 */ + +// Type of miscellaneous file system fields. +type X__fsword_t = int64 /* types.h:192:28 */ + +type X__ssize_t = int64 /* types.h:194:27 */ // Type of a byte count, or error. + +// Signed long type used in system calls. +type X__syscall_slong_t = int64 /* types.h:197:33 */ +// Unsigned long type used in system calls. +type X__syscall_ulong_t = uint64 /* types.h:199:33 */ + +// These few don't really vary by system, they always correspond +// +// to one of the other defined types. +type X__loff_t = int64 /* types.h:203:19 */ // Type of file sizes and offsets (LFS). +type X__caddr_t = uintptr /* types.h:204:14 */ + +// Duplicates info from stdint.h but this is used in unistd.h. +type X__intptr_t = int64 /* types.h:207:25 */ + +// Duplicate info from sys/socket.h. +type X__socklen_t = uint32 /* types.h:210:23 */ + +// C99: An integer type that can be accessed as an atomic entity, +// +// even in the presence of asynchronous interrupts. +// It is not currently necessary for this to be machine-specific. +type X__sig_atomic_t = int32 /* types.h:215:13 */ + +// Wide character type. +// Locale-writers should change this as necessary to +// be big enough to hold unique values not between 0 and 127, +// and not (wchar_t) -1, for each defined multibyte character. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// A null pointer constant. + +// For the Single Unix specification we must define this type here. +type Gid_t = uint32 /* grp.h:37:17 */ + +// The group structure. +type Group = struct { + Fgr_name uintptr + Fgr_passwd uintptr + Fgr_gid uint32 + F__ccgo_pad1 [4]byte + Fgr_mem uintptr +} /* grp.h:42:1 */ + +var _ int8 /* gen.c:2:13: */ diff --git a/vendor/modernc.org/libc/grp/grp_linux_mips64le.go b/vendor/modernc.org/libc/grp/grp_linux_mips64le.go new file mode 100644 index 000000000..2a52cae7f --- /dev/null +++ b/vendor/modernc.org/libc/grp/grp_linux_mips64le.go @@ -0,0 +1,783 @@ +// Code generated by 'ccgo grp/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o grp/grp_linux_amd64.go -pkgname grp', DO NOT EDIT. + +package grp + +import ( + "math" + "reflect" + "sync/atomic" + "unsafe" +) + +var _ = math.Pi +var _ reflect.Kind +var _ atomic.Value +var _ unsafe.Pointer + +const ( + NSS_BUFLEN_GROUP = 1024 // grp.h:114:1: + X_ATFILE_SOURCE = 1 // features.h:342:1: + X_BITS_TIME64_H = 1 // time64.h:24:1: + X_BITS_TYPESIZES_H = 1 // typesizes.h:24:1: + X_BITS_TYPES_H = 1 // types.h:24:1: + X_BSD_SIZE_T_ = 0 // stddef.h:189:1: + X_BSD_SIZE_T_DEFINED_ = 0 // stddef.h:192:1: + X_DEFAULT_SOURCE = 1 // features.h:227:1: + X_FEATURES_H = 1 // features.h:19:1: + X_FILE_OFFSET_BITS = 64 // :25:1: + X_GCC_SIZE_T = 0 // stddef.h:195:1: + X_GRP_H = 1 // grp.h:23:1: + X_LP64 = 1 // :284:1: + X_POSIX_C_SOURCE = 200809 // features.h:281:1: + X_POSIX_SOURCE = 1 // features.h:279:1: + X_SIZET_ = 0 // stddef.h:196:1: + X_SIZE_T = 0 // stddef.h:183:1: + X_SIZE_T_ = 0 // stddef.h:188:1: + X_SIZE_T_DECLARED = 0 // stddef.h:193:1: + X_SIZE_T_DEFINED = 0 // stddef.h:191:1: + X_SIZE_T_DEFINED_ = 0 // stddef.h:190:1: + X_STDC_PREDEF_H = 1 // :162:1: + X_SYS_CDEFS_H = 1 // cdefs.h:19:1: + X_SYS_SIZE_T_H = 0 // stddef.h:184:1: + X_T_SIZE = 0 // stddef.h:186:1: + X_T_SIZE_ = 0 // stddef.h:185:1: + Linux = 1 // :231:1: + Unix = 1 // :177:1: +) + +type Ptrdiff_t = int64 /* :3:26 */ + +type Size_t = uint64 /* :9:23 */ + +type Wchar_t = int32 /* :15:24 */ + +type X__int128_t = struct { + Flo int64 + Fhi int64 +} /* :21:43 */ // must match modernc.org/mathutil.Int128 +type X__uint128_t = struct { + Flo uint64 + Fhi uint64 +} /* :22:44 */ // must match modernc.org/mathutil.Int128 + +type X__builtin_va_list = uintptr /* :46:14 */ +type X__float128 = float64 /* :47:21 */ + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// POSIX Standard: 9.2.1 Group Database Access + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// These are defined by the user (or the compiler) +// to specify the desired environment: +// +// __STRICT_ANSI__ ISO Standard C. +// _ISOC99_SOURCE Extensions to ISO C89 from ISO C99. +// _ISOC11_SOURCE Extensions to ISO C99 from ISO C11. +// _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X. +// __STDC_WANT_LIB_EXT2__ +// Extensions to ISO C99 from TR 27431-2:2010. +// __STDC_WANT_IEC_60559_BFP_EXT__ +// Extensions to ISO C11 from TS 18661-1:2014. +// __STDC_WANT_IEC_60559_FUNCS_EXT__ +// Extensions to ISO C11 from TS 18661-4:2015. +// __STDC_WANT_IEC_60559_TYPES_EXT__ +// Extensions to ISO C11 from TS 18661-3:2015. +// +// _POSIX_SOURCE IEEE Std 1003.1. +// _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2; +// if >=199309L, add IEEE Std 1003.1b-1993; +// if >=199506L, add IEEE Std 1003.1c-1995; +// if >=200112L, all of IEEE 1003.1-2004 +// if >=200809L, all of IEEE 1003.1-2008 +// _XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if +// Single Unix conformance is wanted, to 600 for the +// sixth revision, to 700 for the seventh revision. +// _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions. +// _LARGEFILE_SOURCE Some more functions for correct standard I/O. +// _LARGEFILE64_SOURCE Additional functionality from LFS for large files. +// _FILE_OFFSET_BITS=N Select default filesystem interface. +// _ATFILE_SOURCE Additional *at interfaces. +// _GNU_SOURCE All of the above, plus GNU extensions. +// _DEFAULT_SOURCE The default set of features (taking precedence over +// __STRICT_ANSI__). +// +// _FORTIFY_SOURCE Add security hardening to many library functions. +// Set to 1 or 2; 2 performs stricter checks than 1. +// +// _REENTRANT, _THREAD_SAFE +// Obsolete; equivalent to _POSIX_C_SOURCE=199506L. +// +// The `-ansi' switch to the GNU C compiler, and standards conformance +// options such as `-std=c99', define __STRICT_ANSI__. If none of +// these are defined, or if _DEFAULT_SOURCE is defined, the default is +// to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to +// 200809L, as well as enabling miscellaneous functions from BSD and +// SVID. If more than one of these are defined, they accumulate. For +// example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together +// give you ISO C, 1003.1, and 1003.2, but nothing else. +// +// These are defined by this file and are used by the +// header files to decide what to declare or define: +// +// __GLIBC_USE (F) Define things from feature set F. This is defined +// to 1 or 0; the subsequent macros are either defined +// or undefined, and those tests should be moved to +// __GLIBC_USE. +// __USE_ISOC11 Define ISO C11 things. +// __USE_ISOC99 Define ISO C99 things. +// __USE_ISOC95 Define ISO C90 AMD1 (C95) things. +// __USE_ISOCXX11 Define ISO C++11 things. +// __USE_POSIX Define IEEE Std 1003.1 things. +// __USE_POSIX2 Define IEEE Std 1003.2 things. +// __USE_POSIX199309 Define IEEE Std 1003.1, and .1b things. +// __USE_POSIX199506 Define IEEE Std 1003.1, .1b, .1c and .1i things. +// __USE_XOPEN Define XPG things. +// __USE_XOPEN_EXTENDED Define X/Open Unix things. +// __USE_UNIX98 Define Single Unix V2 things. +// __USE_XOPEN2K Define XPG6 things. +// __USE_XOPEN2KXSI Define XPG6 XSI things. +// __USE_XOPEN2K8 Define XPG7 things. +// __USE_XOPEN2K8XSI Define XPG7 XSI things. +// __USE_LARGEFILE Define correct standard I/O things. +// __USE_LARGEFILE64 Define LFS things with separate names. +// __USE_FILE_OFFSET64 Define 64bit interface as default. +// __USE_MISC Define things from 4.3BSD or System V Unix. +// __USE_ATFILE Define *at interfaces and AT_* constants for them. +// __USE_GNU Define GNU extensions. +// __USE_FORTIFY_LEVEL Additional security measures used, according to level. +// +// The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are +// defined by this file unconditionally. `__GNU_LIBRARY__' is provided +// only for compatibility. All new code should use the other symbols +// to test for features. +// +// All macros listed above as possibly being defined by this file are +// explicitly undefined if they are not explicitly defined. +// Feature-test macros that are not defined by the user or compiler +// but are implied by the other feature-test macros defined (or by the +// lack of any definitions) are defined by the file. +// +// ISO C feature test macros depend on the definition of the macro +// when an affected header is included, not when the first system +// header is included, and so they are handled in +// , which does not have a multiple include +// guard. Feature test macros that can be handled from the first +// system header included are handled here. + +// Undefine everything, so we get a clean slate. + +// Suppress kernel-name space pollution unless user expressedly asks +// for it. + +// Convenience macro to test the version of gcc. +// Use like this: +// #if __GNUC_PREREQ (2,8) +// ... code requiring gcc 2.8 or later ... +// #endif +// Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was +// added in 2.0. + +// Similarly for clang. Features added to GCC after version 4.2 may +// or may not also be available in clang, and clang's definitions of +// __GNUC(_MINOR)__ are fixed at 4 and 2 respectively. Not all such +// features can be queried via __has_extension/__has_feature. + +// Whether to use feature set F. + +// _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for +// _DEFAULT_SOURCE. If _DEFAULT_SOURCE is present we do not +// issue a warning; the expectation is that the source is being +// transitioned to use the new macro. + +// If _GNU_SOURCE was defined by the user, turn on all the other features. + +// If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined, +// define _DEFAULT_SOURCE. + +// This is to enable the ISO C2X extension. + +// This is to enable the ISO C11 extension. + +// This is to enable the ISO C99 extension. + +// This is to enable the ISO C90 Amendment 1:1995 extension. + +// If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE +// is defined, use POSIX.1-2008 (or another version depending on +// _XOPEN_SOURCE). + +// Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be +// defined in all multithreaded code. GNU libc has not required this +// for many years. We now treat them as compatibility synonyms for +// _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with +// comprehensive support for multithreaded code. Using them never +// lowers the selected level of POSIX conformance, only raises it. + +// The function 'gets' existed in C89, but is impossible to use +// safely. It has been removed from ISO C11 and ISO C++14. Note: for +// compatibility with various implementations of , this test +// must consider only the value of __cplusplus when compiling C++. + +// GNU formerly extended the scanf functions with modified format +// specifiers %as, %aS, and %a[...] that allocate a buffer for the +// input using malloc. This extension conflicts with ISO C99, which +// defines %a as a standalone format specifier that reads a floating- +// point number; moreover, POSIX.1-2008 provides the same feature +// using the modifier letter 'm' instead (%ms, %mS, %m[...]). +// +// We now follow C99 unless GNU extensions are active and the compiler +// is specifically in C89 or C++98 mode (strict or not). For +// instance, with GCC, -std=gnu11 will have C99-compliant scanf with +// or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the +// old extension. + +// Get definitions of __STDC_* predefined macros, if the compiler has +// not preincluded this header automatically. +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// This macro indicates that the installed library is the GNU C Library. +// For historic reasons the value now is 6 and this will stay from now +// on. The use of this variable is deprecated. Use __GLIBC__ and +// __GLIBC_MINOR__ now (see below) when you want to test for a specific +// GNU C library version and use the values in to get +// the sonames of the shared libraries. + +// Major and minor version number of the GNU C library package. Use +// these macros to test for features in specific releases. + +// This is here only because every header file already includes this one. +// Copyright (C) 1992-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// We are almost always included from features.h. + +// The GNU libc does not support any K&R compilers or the traditional mode +// of ISO C compilers anymore. Check for some of the combinations not +// anymore supported. + +// Some user header file might have defined this before. + +// All functions, except those with callbacks or those that +// synchronize memory, are leaf functions. + +// GCC can always grok prototypes. For C++ programs we add throw() +// to help it optimize the function calls. But this works only with +// gcc 2.8.x and egcs. For gcc 3.2 and up we even mark C functions +// as non-throwing using a function attribute since programs can use +// the -fexceptions options for C code as well. + +// Compilers that are not clang may object to +// #if defined __clang__ && __has_extension(...) +// even though they do not need to evaluate the right-hand side of the &&. + +// These two macros are not used in glibc anymore. They are kept here +// only because some other projects expect the macros to be defined. + +// For these things, GCC behaves the ANSI way normally, +// and the non-ANSI way under -traditional. + +// This is not a typedef so `const __ptr_t' does the right thing. + +// C++ needs to know that types and declarations are C, not C++. + +// Fortify support. + +// Support for flexible arrays. +// Headers that should use flexible arrays only if they're "real" +// (e.g. only if they won't affect sizeof()) should test +// #if __glibc_c99_flexarr_available. + +// __asm__ ("xyz") is used throughout the headers to rename functions +// at the assembly language level. This is wrapped by the __REDIRECT +// macro, in order to support compilers that can do this some other +// way. When compilers don't support asm-names at all, we have to do +// preprocessor tricks instead (which don't have exactly the right +// semantics, but it's the best we can do). +// +// Example: +// int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid); + +// +// #elif __SOME_OTHER_COMPILER__ +// +// # define __REDIRECT(name, proto, alias) name proto; _Pragma("let " #name " = " #alias) + +// GCC has various useful declarations that can be made with the +// `__attribute__' syntax. All of the ways we use this do fine if +// they are omitted for compilers that don't understand it. + +// At some point during the gcc 2.96 development the `malloc' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// Tell the compiler which arguments to an allocation function +// indicate the size of the allocation. + +// At some point during the gcc 2.96 development the `pure' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// This declaration tells the compiler that the value is constant. + +// At some point during the gcc 3.1 development the `used' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// Since version 3.2, gcc allows marking deprecated functions. + +// Since version 4.5, gcc also allows one to specify the message printed +// when a deprecated function is used. clang claims to be gcc 4.2, but +// may also support this feature. + +// At some point during the gcc 2.8 development the `format_arg' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. +// If several `format_arg' attributes are given for the same function, in +// gcc-3.0 and older, all but the last one are ignored. In newer gccs, +// all designated arguments are considered. + +// At some point during the gcc 2.97 development the `strfmon' format +// attribute for functions was introduced. We don't want to use it +// unconditionally (although this would be possible) since it +// generates warnings. + +// The nonull function attribute allows to mark pointer parameters which +// must not be NULL. + +// If fortification mode, we warn about unused results of certain +// function calls which can lead to problems. + +// Forces a function to be always inlined. +// The Linux kernel defines __always_inline in stddef.h (283d7573), and +// it conflicts with this definition. Therefore undefine it first to +// allow either header to be included first. + +// Associate error messages with the source location of the call site rather +// than with the source location inside the function. + +// GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99 +// inline semantics, unless -fgnu89-inline is used. Using __GNUC_STDC_INLINE__ +// or __GNUC_GNU_INLINE is not a good enough check for gcc because gcc versions +// older than 4.3 may define these macros and still not guarantee GNU inlining +// semantics. +// +// clang++ identifies itself as gcc-4.2, but has support for GNU inlining +// semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and +// __GNUC_GNU_INLINE__ macro definitions. + +// GCC 4.3 and above allow passing all anonymous arguments of an +// __extern_always_inline function to some other vararg function. + +// It is possible to compile containing GCC extensions even if GCC is +// run in pedantic mode if the uses are carefully marked using the +// `__extension__' keyword. But this is not generally available before +// version 2.8. + +// __restrict is known in EGCS 1.2 and above. + +// ISO C99 also allows to declare arrays as non-overlapping. The syntax is +// array_name[restrict] +// GCC 3.1 supports this. + +// Describes a char array whose address can safely be passed as the first +// argument to strncpy and strncat, as the char array is not necessarily +// a NUL-terminated string. + +// Undefine (also defined in libc-symbols.h). +// Copies attributes from the declaration or type referenced by +// the argument. + +// Determine the wordsize from the preprocessor defines. + +// Both x86-64 and x32 use the 64-bit system call interface. +// Properties of long double type. ldbl-96 version. +// Copyright (C) 2016-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// long double is distinct from double, so there is nothing to +// define here. + +// __glibc_macro_warning (MESSAGE) issues warning MESSAGE. This is +// intended for use in preprocessor macros. +// +// Note: MESSAGE must be a _single_ string; concatenation of string +// literals is not supported. + +// Generic selection (ISO C11) is a C-only feature, available in GCC +// since version 4.9. Previous versions do not provide generic +// selection, even though they might set __STDC_VERSION__ to 201112L, +// when in -std=c11 mode. Thus, we must check for !defined __GNUC__ +// when testing __STDC_VERSION__ for generic selection support. +// On the other hand, Clang also defines __GNUC__, so a clang-specific +// check is required to enable the use of generic selection. + +// If we don't have __REDIRECT, prototypes will be missing if +// __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64]. + +// Decide whether we can define 'extern inline' functions in headers. + +// This is here only because every header file already includes this one. +// Get the definitions of all the appropriate `__stub_FUNCTION' symbols. +// contains `#define __stub_FUNCTION' when FUNCTION is a stub +// that will always return failure (and set errno to ENOSYS). +// This file is automatically generated. +// This file selects the right generated file of `__stub_FUNCTION' macros +// based on the architecture being compiled for. + +// This file is automatically generated. +// It defines a symbol `__stub_FUNCTION' for each function +// in the C library which is a stub, meaning it will fail +// every time called, usually setting errno to ENOSYS. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Determine the wordsize from the preprocessor defines. + +// Both x86-64 and x32 use the 64-bit system call interface. +// Bit size of the time_t type at glibc build time, x86-64 and x32 case. +// Copyright (C) 2018-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// For others, time size is word size. + +// Convenience types. +type X__u_char = uint8 /* types.h:31:23 */ +type X__u_short = uint16 /* types.h:32:28 */ +type X__u_int = uint32 /* types.h:33:22 */ +type X__u_long = uint64 /* types.h:34:27 */ + +// Fixed-size types, underlying types depend on word size and compiler. +type X__int8_t = int8 /* types.h:37:21 */ +type X__uint8_t = uint8 /* types.h:38:23 */ +type X__int16_t = int16 /* types.h:39:26 */ +type X__uint16_t = uint16 /* types.h:40:28 */ +type X__int32_t = int32 /* types.h:41:20 */ +type X__uint32_t = uint32 /* types.h:42:22 */ +type X__int64_t = int64 /* types.h:44:25 */ +type X__uint64_t = uint64 /* types.h:45:27 */ + +// Smallest types with at least a given width. +type X__int_least8_t = X__int8_t /* types.h:52:18 */ +type X__uint_least8_t = X__uint8_t /* types.h:53:19 */ +type X__int_least16_t = X__int16_t /* types.h:54:19 */ +type X__uint_least16_t = X__uint16_t /* types.h:55:20 */ +type X__int_least32_t = X__int32_t /* types.h:56:19 */ +type X__uint_least32_t = X__uint32_t /* types.h:57:20 */ +type X__int_least64_t = X__int64_t /* types.h:58:19 */ +type X__uint_least64_t = X__uint64_t /* types.h:59:20 */ + +// quad_t is also 64 bits. +type X__quad_t = int64 /* types.h:63:18 */ +type X__u_quad_t = uint64 /* types.h:64:27 */ + +// Largest integral types. +type X__intmax_t = int64 /* types.h:72:18 */ +type X__uintmax_t = uint64 /* types.h:73:27 */ + +// The machine-dependent file defines __*_T_TYPE +// macros for each of the OS types we define below. The definitions +// of those macros must use the following macros for underlying types. +// We define __S_TYPE and __U_TYPE for the signed and unsigned +// variants of each of the following integer types on this machine. +// +// 16 -- "natural" 16-bit type (always short) +// 32 -- "natural" 32-bit type (always int) +// 64 -- "natural" 64-bit type (long or long long) +// LONG32 -- 32-bit type, traditionally long +// QUAD -- 64-bit type, traditionally long long +// WORD -- natural type of __WORDSIZE bits (int or long) +// LONGWORD -- type of __WORDSIZE bits, traditionally long +// +// We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the +// conventional uses of `long' or `long long' type modifiers match the +// types we define, even when a less-adorned type would be the same size. +// This matters for (somewhat) portably writing printf/scanf formats for +// these types, where using the appropriate l or ll format modifiers can +// make the typedefs and the formats match up across all GNU platforms. If +// we used `long' when it's 64 bits where `long long' is expected, then the +// compiler would warn about the formats not matching the argument types, +// and the programmer changing them to shut up the compiler would break the +// program's portability. +// +// Here we assume what is presently the case in all the GCC configurations +// we support: long long is always 64 bits, long is always word/address size, +// and int is always 32 bits. + +// No need to mark the typedef with __extension__. +// bits/typesizes.h -- underlying types for *_t. Linux/x86-64 version. +// Copyright (C) 2012-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// See for the meaning of these macros. This file exists so +// that need not vary across different GNU platforms. + +// X32 kernel interface is 64-bit. + +// Tell the libc code that off_t and off64_t are actually the same type +// for all ABI purposes, even if possibly expressed as different base types +// for C type-checking purposes. + +// Same for ino_t and ino64_t. + +// And for __rlim_t and __rlim64_t. + +// And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t. + +// Number of descriptors that can fit in an `fd_set'. + +// bits/time64.h -- underlying types for __time64_t. Generic version. +// Copyright (C) 2018-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Define __TIME64_T_TYPE so that it is always a 64-bit type. + +// If we already have 64-bit time type then use it. + +type X__dev_t = uint64 /* types.h:145:25 */ // Type of device numbers. +type X__uid_t = uint32 /* types.h:146:25 */ // Type of user identifications. +type X__gid_t = uint32 /* types.h:147:25 */ // Type of group identifications. +type X__ino_t = uint64 /* types.h:148:25 */ // Type of file serial numbers. +type X__ino64_t = uint64 /* types.h:149:27 */ // Type of file serial numbers (LFS). +type X__mode_t = uint32 /* types.h:150:26 */ // Type of file attribute bitmasks. +type X__nlink_t = uint64 /* types.h:151:27 */ // Type of file link counts. +type X__off_t = int64 /* types.h:152:25 */ // Type of file sizes and offsets. +type X__off64_t = int64 /* types.h:153:27 */ // Type of file sizes and offsets (LFS). +type X__pid_t = int32 /* types.h:154:25 */ // Type of process identifications. +type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs. +type X__clock_t = int64 /* types.h:156:27 */ // Type of CPU usage counts. +type X__rlim_t = uint64 /* types.h:157:26 */ // Type for resource measurement. +type X__rlim64_t = uint64 /* types.h:158:28 */ // Type for resource measurement (LFS). +type X__id_t = uint32 /* types.h:159:24 */ // General type for IDs. +type X__time_t = int64 /* types.h:160:26 */ // Seconds since the Epoch. +type X__useconds_t = uint32 /* types.h:161:30 */ // Count of microseconds. +type X__suseconds_t = int64 /* types.h:162:31 */ // Signed count of microseconds. + +type X__daddr_t = int32 /* types.h:164:27 */ // The type of a disk address. +type X__key_t = int32 /* types.h:165:25 */ // Type of an IPC key. + +// Clock ID used in clock and timer functions. +type X__clockid_t = int32 /* types.h:168:29 */ + +// Timer ID returned by `timer_create'. +type X__timer_t = uintptr /* types.h:171:12 */ + +// Type to represent block size. +type X__blksize_t = int64 /* types.h:174:29 */ + +// Types from the Large File Support interface. + +// Type to count number of disk blocks. +type X__blkcnt_t = int64 /* types.h:179:28 */ +type X__blkcnt64_t = int64 /* types.h:180:30 */ + +// Type to count file system blocks. +type X__fsblkcnt_t = uint64 /* types.h:183:30 */ +type X__fsblkcnt64_t = uint64 /* types.h:184:32 */ + +// Type to count file system nodes. +type X__fsfilcnt_t = uint64 /* types.h:187:30 */ +type X__fsfilcnt64_t = uint64 /* types.h:188:32 */ + +// Type of miscellaneous file system fields. +type X__fsword_t = int64 /* types.h:191:28 */ + +type X__ssize_t = int64 /* types.h:193:27 */ // Type of a byte count, or error. + +// Signed long type used in system calls. +type X__syscall_slong_t = int64 /* types.h:196:33 */ +// Unsigned long type used in system calls. +type X__syscall_ulong_t = uint64 /* types.h:198:33 */ + +// These few don't really vary by system, they always correspond +// +// to one of the other defined types. +type X__loff_t = X__off64_t /* types.h:202:19 */ // Type of file sizes and offsets (LFS). +type X__caddr_t = uintptr /* types.h:203:14 */ + +// Duplicates info from stdint.h but this is used in unistd.h. +type X__intptr_t = int64 /* types.h:206:25 */ + +// Duplicate info from sys/socket.h. +type X__socklen_t = uint32 /* types.h:209:23 */ + +// C99: An integer type that can be accessed as an atomic entity, +// +// even in the presence of asynchronous interrupts. +// It is not currently necessary for this to be machine-specific. +type X__sig_atomic_t = int32 /* types.h:214:13 */ + +// Wide character type. +// Locale-writers should change this as necessary to +// be big enough to hold unique values not between 0 and 127, +// and not (wchar_t) -1, for each defined multibyte character. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// A null pointer constant. + +// For the Single Unix specification we must define this type here. +type Gid_t = X__gid_t /* grp.h:37:17 */ + +// The group structure. +type Group = struct { + Fgr_name uintptr + Fgr_passwd uintptr + Fgr_gid X__gid_t + F__ccgo_pad1 [4]byte + Fgr_mem uintptr +} /* grp.h:42:1 */ + +var _ int8 /* gen.c:2:13: */ diff --git a/vendor/modernc.org/libc/honnef.co/go/netdb/LICENSE b/vendor/modernc.org/libc/honnef.co/go/netdb/LICENSE deleted file mode 100644 index ddd6ddd72..000000000 --- a/vendor/modernc.org/libc/honnef.co/go/netdb/LICENSE +++ /dev/null @@ -1,20 +0,0 @@ -Copyright (c) 2012 Dominik Honnef - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/vendor/modernc.org/libc/honnef.co/go/netdb/netdb.go b/vendor/modernc.org/libc/honnef.co/go/netdb/netdb.go index dae751721..a2bb84c53 100644 --- a/vendor/modernc.org/libc/honnef.co/go/netdb/netdb.go +++ b/vendor/modernc.org/libc/honnef.co/go/netdb/netdb.go @@ -696,7 +696,8 @@ func init() { // Load protocols data, err := ioutil.ReadFile("/etc/protocols") if err != nil { - if !os.IsNotExist(err) { + // See https://gitlab.com/cznic/libc/-/issues/48#note_2952938171 + if !os.IsNotExist(err) && !os.IsPermission(err) { panic(err) } @@ -732,7 +733,8 @@ func init() { // Load services data, err = ioutil.ReadFile("/etc/services") if err != nil { - if !os.IsNotExist(err) { + // See https://gitlab.com/cznic/libc/-/issues/48#note_2952938171 + if !os.IsNotExist(err) && !os.IsPermission(err) { panic(err) } diff --git a/vendor/modernc.org/libc/int128.go b/vendor/modernc.org/libc/int128.go index 7995f0849..59c0d771d 100644 --- a/vendor/modernc.org/libc/int128.go +++ b/vendor/modernc.org/libc/int128.go @@ -49,7 +49,7 @@ func Int128FromFloat32(n float32) Int128 { return Int128(mathutil.NewInt128FromF func Int128FromFloat64(n float64) Int128 { return Int128(mathutil.NewInt128FromFloat64(n)) } func Int128FromInt16(n int16) Int128 { return Int128(mathutil.NewInt128FromInt64(int64(n))) } func Int128FromInt32(n int32) Int128 { return Int128(mathutil.NewInt128FromInt64(int64(n))) } -func Int128FromInt64(n int64) Int128 { return Int128(mathutil.NewInt128FromInt64(int64(n))) } +func Int128FromInt64(n int64) Int128 { return Int128(mathutil.NewInt128FromInt64(n)) } func Int128FromInt8(n int8) Int128 { return Int128(mathutil.NewInt128FromInt64(int64(n))) } func Int128FromUint16(n uint16) Int128 { return Int128(mathutil.NewInt128FromInt64(int64(n))) } func Int128FromUint32(n uint32) Int128 { return Int128(mathutil.NewInt128FromInt64(int64(n))) } @@ -65,7 +65,7 @@ func (n Int128) And(v Int128) Int128 { return Int128{n.Lo & v.Lo, n.Hi & v.Hi} func (n Int128) Cmp(y Int128) int { return mathutil.Int128(n).Cmp(mathutil.Int128(y)) } func (n Int128) Int16() int16 { return int16(n.Lo) } func (n Int128) Int32() int32 { return int32(n.Lo) } -func (n Int128) Int64() int64 { return int64(n.Lo) } +func (n Int128) Int64() int64 { return n.Lo } func (n Int128) Int8() int8 { return int8(n.Lo) } func (n Int128) Or(v Int128) Int128 { return Int128{n.Lo | v.Lo, n.Hi | v.Hi} } func (n Int128) Uint128() (r Uint128) { return Uint128{uint64(n.Lo), uint64(n.Hi)} } @@ -316,16 +316,16 @@ func (n Uint128) add64(m uint64) Uint128 { func (n Uint128) Float32() float32 { if n.Hi == 0 { - return float32(uint64(n.Lo)) + return float32(n.Lo) } - return float32(n.Hi)*(1<<64) + float32(uint64(n.Lo)) + return float32(n.Hi)*(1<<64) + float32(n.Lo) } func (n Uint128) Float64() float64 { if n.Hi == 0 { - return float64(uint64(n.Lo)) + return float64(n.Lo) } - return float64(n.Hi)*(1<<64) + float64(uint64(n.Lo)) + return float64(n.Hi)*(1<<64) + float64(n.Lo) } diff --git a/vendor/modernc.org/libc/ioutil_illumos.go b/vendor/modernc.org/libc/ioutil_illumos.go new file mode 100644 index 000000000..fa1566427 --- /dev/null +++ b/vendor/modernc.org/libc/ioutil_illumos.go @@ -0,0 +1,70 @@ +// Copyright 2010 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE-GO file. + +// Modifications Copyright 2020 The Libc Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package libc // import "modernc.org/libc" + +import ( + "fmt" + "os" + "sync" + "time" + "unsafe" + // "golang.org/x/sys/unix" + // "modernc.org/libc/errno" + // "modernc.org/libc/fcntl" +) + +// Random number state. +// We generate random temporary file names so that there's a good +// chance the file doesn't exist yet - keeps the number of tries in +// TempFile to a minimum. +var randState uint32 +var randStateMu sync.Mutex + +func reseed() uint32 { + return uint32(time.Now().UnixNano() + int64(os.Getpid())) +} + +func nextRandom(x uintptr) { + randStateMu.Lock() + r := randState + if r == 0 { + r = reseed() + } + r = r*1664525 + 1013904223 // constants from Numerical Recipes + randState = r + randStateMu.Unlock() + copy((*RawMem)(unsafe.Pointer(x))[:6:6], fmt.Sprintf("%06d", int(1e9+r%1e9)%1e6)) +} + +func tempFile(s, x uintptr, flags int32) (fd int, err error) { + panic(todo("")) + // const maxTry = 10000 + // nconflict := 0 + // flags |= int32(os.O_RDWR | os.O_CREATE | os.O_EXCL | unix.O_LARGEFILE) + // for i := 0; i < maxTry; i++ { + // nextRandom(x) + // fdcwd := fcntl.AT_FDCWD + // n, _, err := unix.Syscall6(unix.SYS_OPENAT, uintptr(fdcwd), s, uintptr(flags), 0600, 0, 0) + // if err == 0 { + // return int(n), nil + // } + + // if err != errno.EEXIST { + // return -1, err + // } + + // if nconflict++; nconflict > 10 { + // randStateMu.Lock() + // randState = reseed() + // nconflict = 0 + // randStateMu.Unlock() + // } + // } + // return -1, unix.Errno(errno.EEXIST) +} diff --git a/vendor/modernc.org/libc/ioutil_linux.go b/vendor/modernc.org/libc/ioutil_linux.go index db90f5598..54942ed48 100644 --- a/vendor/modernc.org/libc/ioutil_linux.go +++ b/vendor/modernc.org/libc/ioutil_linux.go @@ -6,6 +6,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build !(linux && (amd64 || arm64 || loong64 || ppc64le || s390x || riscv64 || 386 || arm)) + package libc // import "modernc.org/libc" import ( diff --git a/vendor/modernc.org/libc/langinfo/capi_illumos_amd64.go b/vendor/modernc.org/libc/langinfo/capi_illumos_amd64.go new file mode 100644 index 000000000..177dc783e --- /dev/null +++ b/vendor/modernc.org/libc/langinfo/capi_illumos_amd64.go @@ -0,0 +1,5 @@ +// Code generated by 'ccgo langinfo/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o langinfo/langinfo_illumos_amd64.go -pkgname langinfo', DO NOT EDIT. + +package langinfo + +var CAPI = map[string]struct{}{} diff --git a/vendor/modernc.org/libc/langinfo/capi_linux_loong64.go b/vendor/modernc.org/libc/langinfo/capi_linux_loong64.go new file mode 100644 index 000000000..babac02a1 --- /dev/null +++ b/vendor/modernc.org/libc/langinfo/capi_linux_loong64.go @@ -0,0 +1,5 @@ +// Code generated by 'ccgo langinfo/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o langinfo/langinfo_linux_loong64.go -pkgname langinfo', DO NOT EDIT. + +package langinfo + +var CAPI = map[string]struct{}{} diff --git a/vendor/modernc.org/libc/langinfo/capi_linux_mips64le.go b/vendor/modernc.org/libc/langinfo/capi_linux_mips64le.go new file mode 100644 index 000000000..f9c787ba3 --- /dev/null +++ b/vendor/modernc.org/libc/langinfo/capi_linux_mips64le.go @@ -0,0 +1,5 @@ +// Code generated by 'ccgo langinfo/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o langinfo/langinfo_linux_amd64.go -pkgname langinfo', DO NOT EDIT. + +package langinfo + +var CAPI = map[string]struct{}{} diff --git a/vendor/modernc.org/libc/langinfo/langinfo_illumos_amd64.go b/vendor/modernc.org/libc/langinfo/langinfo_illumos_amd64.go new file mode 100644 index 000000000..ba20b8f2d --- /dev/null +++ b/vendor/modernc.org/libc/langinfo/langinfo_illumos_amd64.go @@ -0,0 +1,834 @@ +// Code generated by 'ccgo langinfo/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o langinfo/langinfo_illumos_amd64.go -pkgname langinfo', DO NOT EDIT. + +package langinfo + +import ( + "math" + "reflect" + "sync/atomic" + "unsafe" +) + +var _ = math.Pi +var _ reflect.Kind +var _ atomic.Value +var _ unsafe.Pointer + +const ( + ABDAY_1 = 8 // langinfo.h:59:1: + ABDAY_2 = 9 // langinfo.h:60:1: + ABDAY_3 = 10 // langinfo.h:61:1: + ABDAY_4 = 11 // langinfo.h:62:1: + ABDAY_5 = 12 // langinfo.h:63:1: + ABDAY_6 = 13 // langinfo.h:64:1: + ABDAY_7 = 14 // langinfo.h:65:1: + ABMON_1 = 27 // langinfo.h:88:1: + ABMON_10 = 36 // langinfo.h:97:1: + ABMON_11 = 37 // langinfo.h:98:1: + ABMON_12 = 38 // langinfo.h:99:1: + ABMON_2 = 28 // langinfo.h:89:1: + ABMON_3 = 29 // langinfo.h:90:1: + ABMON_4 = 30 // langinfo.h:91:1: + ABMON_5 = 31 // langinfo.h:92:1: + ABMON_6 = 32 // langinfo.h:93:1: + ABMON_7 = 33 // langinfo.h:94:1: + ABMON_8 = 34 // langinfo.h:95:1: + ABMON_9 = 35 // langinfo.h:96:1: + ALT_DIGITS = 55 // langinfo.h:135:1: + AM_STR = 47 // langinfo.h:122:1: + CODESET = 49 // langinfo.h:129:1: + CRNCYSTR = 43 // langinfo.h:112:1: + DAY_1 = 1 // langinfo.h:47:1: + DAY_2 = 2 // langinfo.h:48:1: + DAY_3 = 3 // langinfo.h:49:1: + DAY_4 = 4 // langinfo.h:50:1: + DAY_5 = 5 // langinfo.h:51:1: + DAY_6 = 6 // langinfo.h:52:1: + DAY_7 = 7 // langinfo.h:53:1: + D_FMT = 45 // langinfo.h:120:1: + D_T_FMT = 44 // langinfo.h:119:1: + ERA = 51 // langinfo.h:131:1: + ERA_D_FMT = 52 // langinfo.h:132:1: + ERA_D_T_FMT = 53 // langinfo.h:133:1: + ERA_T_FMT = 54 // langinfo.h:134:1: + MAXSTRMSG = 58 // langinfo.h:141:1: + MON_1 = 15 // langinfo.h:71:1: + MON_10 = 24 // langinfo.h:80:1: + MON_11 = 25 // langinfo.h:81:1: + MON_12 = 26 // langinfo.h:82:1: + MON_2 = 16 // langinfo.h:72:1: + MON_3 = 17 // langinfo.h:73:1: + MON_4 = 18 // langinfo.h:74:1: + MON_5 = 19 // langinfo.h:75:1: + MON_6 = 20 // langinfo.h:76:1: + MON_7 = 21 // langinfo.h:77:1: + MON_8 = 22 // langinfo.h:78:1: + MON_9 = 23 // langinfo.h:79:1: + NL_CAT_LOCALE = -1 // nl_types.h:44:1: + NL_SETD = 1 // nl_types.h:43:1: + NOEXPR = 57 // langinfo.h:137:1: + NOSTR = 42 // langinfo.h:110:1: + PM_STR = 48 // langinfo.h:123:1: + RADIXCHAR = 39 // langinfo.h:105:1: + THOUSEP = 40 // langinfo.h:106:1: + T_FMT = 46 // langinfo.h:121:1: + T_FMT_AMPM = 50 // langinfo.h:130:1: + YESEXPR = 56 // langinfo.h:136:1: + YESSTR = 41 // langinfo.h:109:1: + X_ALIGNMENT_REQUIRED = 1 // isa_defs.h:262:1: + X_BIT_FIELDS_LTOH = 0 // isa_defs.h:245:1: + X_BOOL_ALIGNMENT = 1 // isa_defs.h:248:1: + X_CAT_MAGIC = 0xFF88FF89 // nl_types.h:46:1: + X_CHAR_ALIGNMENT = 1 // isa_defs.h:249:1: + X_CHAR_IS_SIGNED = 0 // isa_defs.h:247:1: + X_DATE_FMT = 58 // langinfo.h:138:1: + X_DMA_USES_PHYSADDR = 0 // isa_defs.h:281:1: + X_DONT_USE_1275_GENERIC_NAMES = 0 // isa_defs.h:287:1: + X_DOUBLE_ALIGNMENT = 8 // isa_defs.h:256:1: + X_DOUBLE_COMPLEX_ALIGNMENT = 8 // isa_defs.h:257:1: + X_DTRACE_VERSION = 1 // feature_tests.h:490:1: + X_FILE_OFFSET_BITS = 64 // :25:1: + X_FIRMWARE_NEEDS_FDISK = 0 // isa_defs.h:282:1: + X_FLOAT_ALIGNMENT = 4 // isa_defs.h:252:1: + X_FLOAT_COMPLEX_ALIGNMENT = 4 // isa_defs.h:253:1: + X_HAVE_CPUID_INSN = 0 // isa_defs.h:288:1: + X_IEEE_754 = 0 // isa_defs.h:246:1: + X_INT_ALIGNMENT = 4 // isa_defs.h:251:1: + X_ISO_CPP_14882_1998 = 0 // feature_tests.h:466:1: + X_ISO_C_9899_1999 = 0 // feature_tests.h:472:1: + X_ISO_C_9899_2011 = 0 // feature_tests.h:478:1: + X_LANGINFO_H = 0 // langinfo.h:34:1: + X_LARGEFILE64_SOURCE = 1 // feature_tests.h:231:1: + X_LARGEFILE_SOURCE = 1 // feature_tests.h:235:1: + X_LITTLE_ENDIAN = 0 // isa_defs.h:242:1: + X_LOCALE_T = 0 // langinfo.h:151:1: + X_LONGLONG_TYPE = 0 // feature_tests.h:412:1: + X_LONG_ALIGNMENT = 8 // isa_defs.h:254:1: + X_LONG_DOUBLE_ALIGNMENT = 16 // isa_defs.h:258:1: + X_LONG_DOUBLE_COMPLEX_ALIGNMENT = 16 // isa_defs.h:259:1: + X_LONG_LONG_ALIGNMENT = 8 // isa_defs.h:255:1: + X_LONG_LONG_ALIGNMENT_32 = 4 // isa_defs.h:268:1: + X_LONG_LONG_LTOH = 0 // isa_defs.h:244:1: + X_LP64 = 1 // :286:1: + X_MAX_ALIGNMENT = 16 // isa_defs.h:261:1: + X_MULTI_DATAMODEL = 0 // isa_defs.h:279:1: + X_NL_TYPES_H = 0 // nl_types.h:35:1: + X_NORETURN_KYWD = 0 // feature_tests.h:448:1: + X_POINTER_ALIGNMENT = 8 // isa_defs.h:260:1: + X_PSM_MODULES = 0 // isa_defs.h:284:1: + X_RESTRICT_KYWD = 0 // feature_tests.h:435:1: + X_RTC_CONFIG = 0 // isa_defs.h:285:1: + X_SHORT_ALIGNMENT = 2 // isa_defs.h:250:1: + X_SOFT_HOSTID = 0 // isa_defs.h:286:1: + X_STACK_GROWS_DOWNWARD = 0 // isa_defs.h:243:1: + X_STDC_C11 = 0 // feature_tests.h:165:1: + X_STDC_C99 = 0 // feature_tests.h:169:1: + X_SUNOS_VTOC_16 = 0 // isa_defs.h:280:1: + X_SYS_CCOMPILE_H = 0 // ccompile.h:32:1: + X_SYS_FEATURE_TESTS_H = 0 // feature_tests.h:41:1: + X_SYS_ISA_DEFS_H = 0 // isa_defs.h:30:1: + X_XOPEN_VERSION = 3 // feature_tests.h:392:1: + Sun = 1 // :172:1: + Unix = 1 // :175:1: +) + +type Ptrdiff_t = int64 /* :3:26 */ + +type Size_t = uint64 /* :9:23 */ + +type Wchar_t = int32 /* :15:24 */ + +type X__int128_t = struct { + Flo int64 + Fhi int64 +} /* :21:43 */ // must match modernc.org/mathutil.Int128 +type X__uint128_t = struct { + Flo uint64 + Fhi uint64 +} /* :22:44 */ // must match modernc.org/mathutil.Int128 + +type X__builtin_va_list = uintptr /* :46:14 */ +type X__float128 = float64 /* :47:21 */ + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2014 Garrett D'Amore +// +// Copyright 2003 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright (c) 1988 AT&T +// All Rights Reserved + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2015 EveryCity Ltd. All rights reserved. +// Copyright 2019 Joyent, Inc. + +// This file contains definitions designed to enable different compilers +// to be used harmoniously on Solaris systems. + +// Allow for version tests for compiler bugs and features. + +// analogous to lint's PRINTFLIKEn + +// Handle the kernel printf routines that can take '%b' too + +// This one's pretty obvious -- the function never returns + +// The function is 'extern inline' and expects GNU C89 behaviour, not C99 +// behaviour. +// +// Should only be used on 'extern inline' definitions for GCC. + +// The function has control flow such that it may return multiple times (in +// the manner of setjmp or vfork) + +// This is an appropriate label for functions that do not +// modify their arguments, e.g. strlen() + +// This is a stronger form of __pure__. Can be used for functions +// that do not modify their arguments and don't depend on global +// memory. + +// This attribute, attached to a variable, means that the variable is meant to +// be possibly unused. GCC will not produce a warning for this variable. + +// Shorthand versions for readability + +// In release build, disable warnings about variables +// which are used only for debugging. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2016 Joyent, Inc. + +// This header file serves to group a set of well known defines and to +// set these for each instruction set architecture. These defines may +// be divided into two groups; characteristics of the processor and +// implementation choices for Solaris on a processor. +// +// Processor Characteristics: +// +// _LITTLE_ENDIAN / _BIG_ENDIAN: +// The natural byte order of the processor. A pointer to an int points +// to the least/most significant byte of that int. +// +// _STACK_GROWS_UPWARD / _STACK_GROWS_DOWNWARD: +// The processor specific direction of stack growth. A push onto the +// stack increases/decreases the stack pointer, so it stores data at +// successively higher/lower addresses. (Stackless machines ignored +// without regrets). +// +// _LONG_LONG_HTOL / _LONG_LONG_LTOH: +// A pointer to a long long points to the most/least significant long +// within that long long. +// +// _BIT_FIELDS_HTOL / _BIT_FIELDS_LTOH: +// The C compiler assigns bit fields from the high/low to the low/high end +// of an int (most to least significant vs. least to most significant). +// +// _IEEE_754: +// The processor (or supported implementations of the processor) +// supports the ieee-754 floating point standard. No other floating +// point standards are supported (or significant). Any other supported +// floating point formats are expected to be cased on the ISA processor +// symbol. +// +// _CHAR_IS_UNSIGNED / _CHAR_IS_SIGNED: +// The C Compiler implements objects of type `char' as `unsigned' or +// `signed' respectively. This is really an implementation choice of +// the compiler writer, but it is specified in the ABI and tends to +// be uniform across compilers for an instruction set architecture. +// Hence, it has the properties of a processor characteristic. +// +// _CHAR_ALIGNMENT / _SHORT_ALIGNMENT / _INT_ALIGNMENT / _LONG_ALIGNMENT / +// _LONG_LONG_ALIGNMENT / _DOUBLE_ALIGNMENT / _LONG_DOUBLE_ALIGNMENT / +// _POINTER_ALIGNMENT / _FLOAT_ALIGNMENT: +// The ABI defines alignment requirements of each of the primitive +// object types. Some, if not all, may be hardware requirements as +// well. The values are expressed in "byte-alignment" units. +// +// _MAX_ALIGNMENT: +// The most stringent alignment requirement as specified by the ABI. +// Equal to the maximum of all the above _XXX_ALIGNMENT values. +// +// _MAX_ALIGNMENT_TYPE: +// The name of the C type that has the value descried in _MAX_ALIGNMENT. +// +// _ALIGNMENT_REQUIRED: +// True or false (1 or 0) whether or not the hardware requires the ABI +// alignment. +// +// _LONG_LONG_ALIGNMENT_32 +// The 32-bit ABI supported by a 64-bit kernel may have different +// alignment requirements for primitive object types. The value of this +// identifier is expressed in "byte-alignment" units. +// +// _HAVE_CPUID_INSN +// This indicates that the architecture supports the 'cpuid' +// instruction as defined by Intel. (Intel allows other vendors +// to extend the instruction for their own purposes.) +// +// +// Implementation Choices: +// +// _ILP32 / _LP64: +// This specifies the compiler data type implementation as specified in +// the relevant ABI. The choice between these is strongly influenced +// by the underlying hardware, but is not absolutely tied to it. +// Currently only two data type models are supported: +// +// _ILP32: +// Int/Long/Pointer are 32 bits. This is the historical UNIX +// and Solaris implementation. Due to its historical standing, +// this is the default case. +// +// _LP64: +// Long/Pointer are 64 bits, Int is 32 bits. This is the chosen +// implementation for 64-bit ABIs such as SPARC V9. +// +// _I32LPx: +// A compilation environment where 'int' is 32-bit, and +// longs and pointers are simply the same size. +// +// In all cases, Char is 8 bits and Short is 16 bits. +// +// _SUNOS_VTOC_8 / _SUNOS_VTOC_16 / _SVR4_VTOC_16: +// This specifies the form of the disk VTOC (or label): +// +// _SUNOS_VTOC_8: +// This is a VTOC form which is upwardly compatible with the +// SunOS 4.x disk label and allows 8 partitions per disk. +// +// _SUNOS_VTOC_16: +// In this format the incore vtoc image matches the ondisk +// version. It allows 16 slices per disk, and is not +// compatible with the SunOS 4.x disk label. +// +// Note that these are not the only two VTOC forms possible and +// additional forms may be added. One possible form would be the +// SVr4 VTOC form. The symbol for that is reserved now, although +// it is not implemented. +// +// _SVR4_VTOC_16: +// This VTOC form is compatible with the System V Release 4 +// VTOC (as implemented on the SVr4 Intel and 3b ports) with +// 16 partitions per disk. +// +// +// _DMA_USES_PHYSADDR / _DMA_USES_VIRTADDR +// This describes the type of addresses used by system DMA: +// +// _DMA_USES_PHYSADDR: +// This type of DMA, used in the x86 implementation, +// requires physical addresses for DMA buffers. The 24-bit +// addresses used by some legacy boards is the source of the +// "low-memory" (<16MB) requirement for some devices using DMA. +// +// _DMA_USES_VIRTADDR: +// This method of DMA allows the use of virtual addresses for +// DMA transfers. +// +// _FIRMWARE_NEEDS_FDISK / _NO_FDISK_PRESENT +// This indicates the presence/absence of an fdisk table. +// +// _FIRMWARE_NEEDS_FDISK +// The fdisk table is required by system firmware. If present, +// it allows a disk to be subdivided into multiple fdisk +// partitions, each of which is equivalent to a separate, +// virtual disk. This enables the co-existence of multiple +// operating systems on a shared hard disk. +// +// _NO_FDISK_PRESENT +// If the fdisk table is absent, it is assumed that the entire +// media is allocated for a single operating system. +// +// _HAVE_TEM_FIRMWARE +// Defined if this architecture has the (fallback) option of +// using prom_* calls for doing I/O if a suitable kernel driver +// is not available to do it. +// +// _DONT_USE_1275_GENERIC_NAMES +// Controls whether or not device tree node names should +// comply with the IEEE 1275 "Generic Names" Recommended +// Practice. With _DONT_USE_GENERIC_NAMES, device-specific +// names identifying the particular device will be used. +// +// __i386_COMPAT +// This indicates whether the i386 ABI is supported as a *non-native* +// mode for the platform. When this symbol is defined: +// - 32-bit xstat-style system calls are enabled +// - 32-bit xmknod-style system calls are enabled +// - 32-bit system calls use i386 sizes -and- alignments +// +// Note that this is NOT defined for the i386 native environment! +// +// __x86 +// This is ONLY a synonym for defined(__i386) || defined(__amd64) +// which is useful only insofar as these two architectures share +// common attributes. Analogous to __sparc. +// +// _PSM_MODULES +// This indicates whether or not the implementation uses PSM +// modules for processor support, reading /etc/mach from inside +// the kernel to extract a list. +// +// _RTC_CONFIG +// This indicates whether or not the implementation uses /etc/rtc_config +// to configure the real-time clock in the kernel. +// +// _UNIX_KRTLD +// This indicates that the implementation uses a dynamically +// linked unix + krtld to form the core kernel image at boot +// time, or (in the absence of this symbol) a prelinked kernel image. +// +// _OBP +// This indicates the firmware interface is OBP. +// +// _SOFT_HOSTID +// This indicates that the implementation obtains the hostid +// from the file /etc/hostid, rather than from hardware. + +// The following set of definitions characterize Solaris on AMD's +// 64-bit systems. + +// Define the appropriate "processor characteristics" + +// Different alignment constraints for the i386 ABI in compatibility mode + +// Define the appropriate "implementation choices". + +// The feature test macro __i386 is generic for all processors implementing +// the Intel 386 instruction set or a superset of it. Specifically, this +// includes all members of the 386, 486, and Pentium family of processors. + +// Values of _POSIX_C_SOURCE +// +// undefined not a POSIX compilation +// 1 POSIX.1-1990 compilation +// 2 POSIX.2-1992 compilation +// 199309L POSIX.1b-1993 compilation (Real Time) +// 199506L POSIX.1c-1995 compilation (POSIX Threads) +// 200112L POSIX.1-2001 compilation (Austin Group Revision) +// 200809L POSIX.1-2008 compilation + +// The feature test macros __XOPEN_OR_POSIX, _STRICT_STDC, _STRICT_SYMBOLS, +// and _STDC_C99 are Sun implementation specific macros created in order to +// compress common standards specified feature test macros for easier reading. +// These macros should not be used by the application developer as +// unexpected results may occur. Instead, the user should reference +// standards(7) for correct usage of the standards feature test macros. +// +// __XOPEN_OR_POSIX Used in cases where a symbol is defined by both +// X/Open or POSIX or in the negative, when neither +// X/Open or POSIX defines a symbol. +// +// _STRICT_STDC __STDC__ is specified by the C Standards and defined +// by the compiler. For Sun compilers the value of +// __STDC__ is either 1, 0, or not defined based on the +// compilation mode (see cc(1)). When the value of +// __STDC__ is 1 and in the absence of any other feature +// test macros, the namespace available to the application +// is limited to only those symbols defined by the C +// Standard. _STRICT_STDC provides a more readable means +// of identifying symbols defined by the standard, or in +// the negative, symbols that are extensions to the C +// Standard. See additional comments for GNU C differences. +// +// _STDC_C99 __STDC_VERSION__ is specified by the C standards and +// defined by the compiler and indicates the version of +// the C standard. A value of 199901L indicates a +// compiler that complies with ISO/IEC 9899:1999, other- +// wise known as the C99 standard. +// +// _STDC_C11 Like _STDC_C99 except that the value of __STDC_VERSION__ +// is 201112L indicating a compiler that compiles with +// ISO/IEC 9899:2011, otherwise known as the C11 standard. +// +// _STRICT_SYMBOLS Used in cases where symbol visibility is restricted +// by the standards, and the user has not explicitly +// relaxed the strictness via __EXTENSIONS__. + +// ISO/IEC 9899:1990 and it's revisions, ISO/IEC 9899:1999 and ISO/IEC +// 99899:2011 specify the following predefined macro name: +// +// __STDC__ The integer constant 1, intended to indicate a conforming +// implementation. +// +// Furthermore, a strictly conforming program shall use only those features +// of the language and library specified in these standards. A conforming +// implementation shall accept any strictly conforming program. +// +// Based on these requirements, Sun's C compiler defines __STDC__ to 1 for +// strictly conforming environments and __STDC__ to 0 for environments that +// use ANSI C semantics but allow extensions to the C standard. For non-ANSI +// C semantics, Sun's C compiler does not define __STDC__. +// +// The GNU C project interpretation is that __STDC__ should always be defined +// to 1 for compilation modes that accept ANSI C syntax regardless of whether +// or not extensions to the C standard are used. Violations of conforming +// behavior are conditionally flagged as warnings via the use of the +// -pedantic option. In addition to defining __STDC__ to 1, the GNU C +// compiler also defines __STRICT_ANSI__ as a means of specifying strictly +// conforming environments using the -ansi or -std= options. +// +// In the absence of any other compiler options, Sun and GNU set the value +// of __STDC__ as follows when using the following options: +// +// Value of __STDC__ __STRICT_ANSI__ +// +// cc -Xa (default) 0 undefined +// cc -Xt (transitional) 0 undefined +// cc -Xc (strictly conforming) 1 undefined +// cc -Xs (K&R C) undefined undefined +// +// gcc (default) 1 undefined +// gcc -ansi, -std={c89, c99,...) 1 defined +// gcc -traditional (K&R) undefined undefined +// +// The default compilation modes for Sun C compilers versus GNU C compilers +// results in a differing value for __STDC__ which results in a more +// restricted namespace when using Sun compilers. To allow both GNU and Sun +// interpretations to peacefully co-exist, we use the following Sun +// implementation _STRICT_STDC_ macro: + +// Compiler complies with ISO/IEC 9899:1999 or ISO/IEC 9989:2011 + +// Use strict symbol visibility. + +// This is a variant of _STRICT_SYMBOLS that is meant to cover headers that are +// governed by POSIX, but have not been governed by ISO C. One can go two ways +// on what should happen if an application actively includes (not transitively) +// a header that isn't part of the ISO C spec, we opt to say that if someone has +// gone out of there way then they're doing it for a reason and that is an act +// of non-compliance and therefore it's not up to us to hide away every symbol. +// +// In general, prefer using _STRICT_SYMBOLS, but this is here in particular for +// cases where in the past we have only used a POSIX related check and we don't +// wish to make something stricter. Often applications are relying on the +// ability to, or more realistically unwittingly, have _STRICT_STDC declared and +// still use these interfaces. + +// Large file interfaces: +// +// _LARGEFILE_SOURCE +// 1 large file-related additions to POSIX +// interfaces requested (fseeko, etc.) +// _LARGEFILE64_SOURCE +// 1 transitional large-file-related interfaces +// requested (seek64, stat64, etc.) +// +// The corresponding announcement macros are respectively: +// _LFS_LARGEFILE +// _LFS64_LARGEFILE +// (These are set in .) +// +// Requesting _LARGEFILE64_SOURCE implies requesting _LARGEFILE_SOURCE as +// well. +// +// The large file interfaces are made visible regardless of the initial values +// of the feature test macros under certain circumstances: +// - If no explicit standards-conforming environment is requested (neither +// of _POSIX_SOURCE nor _XOPEN_SOURCE is defined and the value of +// __STDC__ does not imply standards conformance). +// - Extended system interfaces are explicitly requested (__EXTENSIONS__ +// is defined). +// - Access to in-kernel interfaces is requested (_KERNEL or _KMEMUSER is +// defined). (Note that this dependency is an artifact of the current +// kernel implementation and may change in future releases.) + +// Large file compilation environment control: +// +// The setting of _FILE_OFFSET_BITS controls the size of various file-related +// types and governs the mapping between file-related source function symbol +// names and the corresponding binary entry points. +// +// In the 32-bit environment, the default value is 32; if not set, set it to +// the default here, to simplify tests in other headers. +// +// In the 64-bit compilation environment, the only value allowed is 64. + +// Use of _XOPEN_SOURCE +// +// The following X/Open specifications are supported: +// +// X/Open Portability Guide, Issue 3 (XPG3) +// X/Open CAE Specification, Issue 4 (XPG4) +// X/Open CAE Specification, Issue 4, Version 2 (XPG4v2) +// X/Open CAE Specification, Issue 5 (XPG5) +// Open Group Technical Standard, Issue 6 (XPG6), also referred to as +// IEEE Std. 1003.1-2001 and ISO/IEC 9945:2002. +// Open Group Technical Standard, Issue 7 (XPG7), also referred to as +// IEEE Std. 1003.1-2008 and ISO/IEC 9945:2009. +// +// XPG4v2 is also referred to as UNIX 95 (SUS or SUSv1). +// XPG5 is also referred to as UNIX 98 or the Single Unix Specification, +// Version 2 (SUSv2) +// XPG6 is the result of a merge of the X/Open and POSIX specifications +// and as such is also referred to as IEEE Std. 1003.1-2001 in +// addition to UNIX 03 and SUSv3. +// XPG7 is also referred to as UNIX 08 and SUSv4. +// +// When writing a conforming X/Open application, as per the specification +// requirements, the appropriate feature test macros must be defined at +// compile time. These are as follows. For more info, see standards(7). +// +// Feature Test Macro Specification +// ------------------------------------------------ ------------- +// _XOPEN_SOURCE XPG3 +// _XOPEN_SOURCE && _XOPEN_VERSION = 4 XPG4 +// _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED = 1 XPG4v2 +// _XOPEN_SOURCE = 500 XPG5 +// _XOPEN_SOURCE = 600 (or POSIX_C_SOURCE=200112L) XPG6 +// _XOPEN_SOURCE = 700 (or POSIX_C_SOURCE=200809L) XPG7 +// +// In order to simplify the guards within the headers, the following +// implementation private test macros have been created. Applications +// must NOT use these private test macros as unexpected results will +// occur. +// +// Note that in general, the use of these private macros is cumulative. +// For example, the use of _XPG3 with no other restrictions on the X/Open +// namespace will make the symbols visible for XPG3 through XPG6 +// compilation environments. The use of _XPG4_2 with no other X/Open +// namespace restrictions indicates that the symbols were introduced in +// XPG4v2 and are therefore visible for XPG4v2 through XPG6 compilation +// environments, but not for XPG3 or XPG4 compilation environments. +// +// _XPG3 X/Open Portability Guide, Issue 3 (XPG3) +// _XPG4 X/Open CAE Specification, Issue 4 (XPG4) +// _XPG4_2 X/Open CAE Specification, Issue 4, Version 2 (XPG4v2/UNIX 95/SUS) +// _XPG5 X/Open CAE Specification, Issue 5 (XPG5/UNIX 98/SUSv2) +// _XPG6 Open Group Technical Standard, Issue 6 (XPG6/UNIX 03/SUSv3) +// _XPG7 Open Group Technical Standard, Issue 7 (XPG7/UNIX 08/SUSv4) + +// X/Open Portability Guide, Issue 3 + +// _XOPEN_VERSION is defined by the X/Open specifications and is not +// normally defined by the application, except in the case of an XPG4 +// application. On the implementation side, _XOPEN_VERSION defined with +// the value of 3 indicates an XPG3 application. _XOPEN_VERSION defined +// with the value of 4 indicates an XPG4 or XPG4v2 (UNIX 95) application. +// _XOPEN_VERSION defined with a value of 500 indicates an XPG5 (UNIX 98) +// application and with a value of 600 indicates an XPG6 (UNIX 03) +// application and with a value of 700 indicates an XPG7 (UNIX 08). +// The appropriate version is determined by the use of the +// feature test macros described earlier. The value of _XOPEN_VERSION +// defaults to 3 otherwise indicating support for XPG3 applications. + +// ANSI C and ISO 9899:1990 say the type long long doesn't exist in strictly +// conforming environments. ISO 9899:1999 says it does. +// +// The presence of _LONGLONG_TYPE says "long long exists" which is therefore +// defined in all but strictly conforming environments that disallow it. + +// The following macro defines a value for the ISO C99 restrict +// keyword so that _RESTRICT_KYWD resolves to "restrict" if +// an ISO C99 compiler is used, "__restrict" for c++ and "" (null string) +// if any other compiler is used. This allows for the use of single +// prototype declarations regardless of compiler version. + +// The following macro defines a value for the ISO C11 _Noreturn +// keyword so that _NORETURN_KYWD resolves to "_Noreturn" if +// an ISO C11 compiler is used and "" (null string) if any other +// compiler is used. This allows for the use of single prototype +// declarations regardless of compiler version. + +// ISO/IEC 9899:2011 Annex K + +// The following macro indicates header support for the ANSI C++ +// standard. The ISO/IEC designation for this is ISO/IEC FDIS 14882. + +// The following macro indicates header support for the C99 standard, +// ISO/IEC 9899:1999, Programming Languages - C. + +// The following macro indicates header support for the C11 standard, +// ISO/IEC 9899:2011, Programming Languages - C. + +// The following macro indicates header support for the C11 standard, +// ISO/IEC 9899:2011 Annex K, Programming Languages - C. + +// The following macro indicates header support for DTrace. The value is an +// integer that corresponds to the major version number for DTrace. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// nl_types.h +// +// Copyright 2014 Garrett D'Amore +// +// Copyright (c) 1991,1997,2000 by Sun Microsystems, Inc. +// All rights reserved. + +// Copyright (c) 1988 AT&T +// All Rights Reserved + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2016 Joyent, Inc. + +type X_cat_hdr = struct { + F__hdr_magic int32 + F__nsets int32 + F__mem int32 + F__msg_hdr_offset int32 + F__msg_text_offset int32 +} /* nl_types.h:51:1 */ + +type X_cat_set_hdr = struct { + F__set_no int32 + F__nmsgs int32 + F__first_msg_hdr int32 +} /* nl_types.h:72:1 */ + +type X_cat_msg_hdr = struct { + F__msg_no int32 + F__msg_len int32 + F__msg_offset int32 +} /* nl_types.h:82:1 */ + +type X_nl_catd_struct = struct { + F__content uintptr + F__size int32 + F__trust int32 +} /* nl_types.h:95:1 */ + +type Nl_catd = uintptr /* nl_types.h:101:32 */ +type Nl_item = int32 /* nl_types.h:102:13 */ // XPG3 Conformant for nl_langinfo(). + +// The following is just for the compatibility between OSF and Solaris +// Need to be removed later +type X__nl_item = int32 /* nl_types.h:106:17 */ // get a string from the database + +type Locale_t = uintptr /* langinfo.h:152:24 */ + +var _ int8 /* gen.c:2:13: */ diff --git a/vendor/modernc.org/libc/langinfo/langinfo_linux_loong64.go b/vendor/modernc.org/libc/langinfo/langinfo_linux_loong64.go new file mode 100644 index 000000000..35dd25261 --- /dev/null +++ b/vendor/modernc.org/libc/langinfo/langinfo_linux_loong64.go @@ -0,0 +1,1201 @@ +// Code generated by 'ccgo langinfo/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o langinfo/langinfo_linux_loong64.go -pkgname langinfo', DO NOT EDIT. + +package langinfo + +import ( + "math" + "reflect" + "sync/atomic" + "unsafe" +) + +var _ = math.Pi +var _ reflect.Kind +var _ atomic.Value +var _ unsafe.Pointer + +const ( + NL_CAT_LOCALE = 1 // nl_types.h:27:1: + NL_SETD = 1 // nl_types.h:24:1: + X_ABILP64 = 3 // :377:1: + X_ATFILE_SOURCE = 1 // features.h:353:1: + X_BITS_LOCALE_H = 1 // locale.h:24:1: + X_BITS_TYPES_LOCALE_T_H = 1 // locale_t.h:20:1: + X_BITS_TYPES___LOCALE_T_H = 1 // __locale_t.h:20:1: + X_DEFAULT_SOURCE = 1 // features.h:238:1: + X_FEATURES_H = 1 // features.h:19:1: + X_FILE_OFFSET_BITS = 64 // :25:1: + X_LANGINFO_H = 1 // langinfo.h:20:1: + X_LOONGARCH_ARCH = "loongarch64" // :214:1: + X_LOONGARCH_ARCH_LOONGARCH64 = 1 // :340:1: + X_LOONGARCH_FPSET = 32 // :265:1: + X_LOONGARCH_SIM = 3 // :233:1: + X_LOONGARCH_SPFPSET = 32 // :88:1: + X_LOONGARCH_SZINT = 32 // :230:1: + X_LOONGARCH_SZLONG = 64 // :388:1: + X_LOONGARCH_SZPTR = 64 // :200:1: + X_LOONGARCH_TUNE = "la464" // :245:1: + X_LOONGARCH_TUNE_LA464 = 1 // :63:1: + X_LP64 = 1 // :372:1: + X_NL_TYPES_H = 1 // nl_types.h:19:1: + X_POSIX_C_SOURCE = 200809 // features.h:292:1: + X_POSIX_SOURCE = 1 // features.h:290:1: + X_STDC_PREDEF_H = 1 // :223:1: + X_SYS_CDEFS_H = 1 // cdefs.h:20:1: + Linux = 1 // :308:1: + Unix = 1 // :247:1: +) + +// Definition of locale category symbol values. +// Copyright (C) 2001-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Construct an `nl_item' value for `nl_langinfo' from a locale category +// (LC_*) and an item index within the category. Some code may depend on +// the item values within a category increasing monotonically with the +// indices. + +// Extract the category and item index from a constructed `nl_item' value. + +// Enumeration of locale items that can be queried with `nl_langinfo'. +const ( /* langinfo.h:41:1: */ + // LC_TIME category: date and time formatting. + + // Abbreviated days of the week. + ABDAY_1 = 131072 // Sun + ABDAY_2 = 131073 + ABDAY_3 = 131074 + ABDAY_4 = 131075 + ABDAY_5 = 131076 + ABDAY_6 = 131077 + ABDAY_7 = 131078 + + // Long-named days of the week. + DAY_1 = 131079 // Sunday + DAY_2 = 131080 // Monday + DAY_3 = 131081 // Tuesday + DAY_4 = 131082 // Wednesday + DAY_5 = 131083 // Thursday + DAY_6 = 131084 // Friday + DAY_7 = 131085 // Saturday + + // Abbreviated month names, in the grammatical form used when the month + // is a part of a complete date. + ABMON_1 = 131086 // Jan + ABMON_2 = 131087 + ABMON_3 = 131088 + ABMON_4 = 131089 + ABMON_5 = 131090 + ABMON_6 = 131091 + ABMON_7 = 131092 + ABMON_8 = 131093 + ABMON_9 = 131094 + ABMON_10 = 131095 + ABMON_11 = 131096 + ABMON_12 = 131097 + + // Long month names, in the grammatical form used when the month + // is a part of a complete date. + MON_1 = 131098 // January + MON_2 = 131099 + MON_3 = 131100 + MON_4 = 131101 + MON_5 = 131102 + MON_6 = 131103 + MON_7 = 131104 + MON_8 = 131105 + MON_9 = 131106 + MON_10 = 131107 + MON_11 = 131108 + MON_12 = 131109 + + AM_STR = 131110 // Ante meridiem string. + PM_STR = 131111 // Post meridiem string. + + D_T_FMT = 131112 // Date and time format for strftime. + D_FMT = 131113 // Date format for strftime. + T_FMT = 131114 // Time format for strftime. + T_FMT_AMPM = 131115 // 12-hour time format for strftime. + + ERA = 131116 // Alternate era. + X__ERA_YEAR = 131117 // Year in alternate era format. + ERA_D_FMT = 131118 // Date in alternate era format. + ALT_DIGITS = 131119 // Alternate symbols for digits. + ERA_D_T_FMT = 131120 // Date and time in alternate era format. + ERA_T_FMT = 131121 // Time in alternate era format. + + X_NL_TIME_ERA_NUM_ENTRIES = 131122 // Number entries in the era arrays. + X_NL_TIME_ERA_ENTRIES = 131123 // Structure with era entries in usable form. + + X_NL_WABDAY_1 = 131124 // Sun + X_NL_WABDAY_2 = 131125 + X_NL_WABDAY_3 = 131126 + X_NL_WABDAY_4 = 131127 + X_NL_WABDAY_5 = 131128 + X_NL_WABDAY_6 = 131129 + X_NL_WABDAY_7 = 131130 + + // Long-named days of the week. + X_NL_WDAY_1 = 131131 // Sunday + X_NL_WDAY_2 = 131132 // Monday + X_NL_WDAY_3 = 131133 // Tuesday + X_NL_WDAY_4 = 131134 // Wednesday + X_NL_WDAY_5 = 131135 // Thursday + X_NL_WDAY_6 = 131136 // Friday + X_NL_WDAY_7 = 131137 // Saturday + + // Abbreviated month names, in the grammatical form used when the month + // is a part of a complete date. + X_NL_WABMON_1 = 131138 // Jan + X_NL_WABMON_2 = 131139 + X_NL_WABMON_3 = 131140 + X_NL_WABMON_4 = 131141 + X_NL_WABMON_5 = 131142 + X_NL_WABMON_6 = 131143 + X_NL_WABMON_7 = 131144 + X_NL_WABMON_8 = 131145 + X_NL_WABMON_9 = 131146 + X_NL_WABMON_10 = 131147 + X_NL_WABMON_11 = 131148 + X_NL_WABMON_12 = 131149 + + // Long month names, in the grammatical form used when the month + // is a part of a complete date. + X_NL_WMON_1 = 131150 // January + X_NL_WMON_2 = 131151 + X_NL_WMON_3 = 131152 + X_NL_WMON_4 = 131153 + X_NL_WMON_5 = 131154 + X_NL_WMON_6 = 131155 + X_NL_WMON_7 = 131156 + X_NL_WMON_8 = 131157 + X_NL_WMON_9 = 131158 + X_NL_WMON_10 = 131159 + X_NL_WMON_11 = 131160 + X_NL_WMON_12 = 131161 + + X_NL_WAM_STR = 131162 // Ante meridiem string. + X_NL_WPM_STR = 131163 // Post meridiem string. + + X_NL_WD_T_FMT = 131164 // Date and time format for strftime. + X_NL_WD_FMT = 131165 // Date format for strftime. + X_NL_WT_FMT = 131166 // Time format for strftime. + X_NL_WT_FMT_AMPM = 131167 // 12-hour time format for strftime. + + X_NL_WERA_YEAR = 131168 // Year in alternate era format. + X_NL_WERA_D_FMT = 131169 // Date in alternate era format. + X_NL_WALT_DIGITS = 131170 // Alternate symbols for digits. + X_NL_WERA_D_T_FMT = 131171 // Date and time in alternate era format. + X_NL_WERA_T_FMT = 131172 // Time in alternate era format. + + X_NL_TIME_WEEK_NDAYS = 131173 + X_NL_TIME_WEEK_1STDAY = 131174 + X_NL_TIME_WEEK_1STWEEK = 131175 + X_NL_TIME_FIRST_WEEKDAY = 131176 + X_NL_TIME_FIRST_WORKDAY = 131177 + X_NL_TIME_CAL_DIRECTION = 131178 + X_NL_TIME_TIMEZONE = 131179 + + X_DATE_FMT = 131180 // strftime format for date. + X_NL_W_DATE_FMT = 131181 + + X_NL_TIME_CODESET = 131182 + + // Long month names, in the grammatical form used when the month + // is named by itself. + X__ALTMON_1 = 131183 // January + X__ALTMON_2 = 131184 + X__ALTMON_3 = 131185 + X__ALTMON_4 = 131186 + X__ALTMON_5 = 131187 + X__ALTMON_6 = 131188 + X__ALTMON_7 = 131189 + X__ALTMON_8 = 131190 + X__ALTMON_9 = 131191 + X__ALTMON_10 = 131192 + X__ALTMON_11 = 131193 + X__ALTMON_12 = 131194 + + // Long month names, in the grammatical form used when the month + // is named by itself. + X_NL_WALTMON_1 = 131195 // January + X_NL_WALTMON_2 = 131196 + X_NL_WALTMON_3 = 131197 + X_NL_WALTMON_4 = 131198 + X_NL_WALTMON_5 = 131199 + X_NL_WALTMON_6 = 131200 + X_NL_WALTMON_7 = 131201 + X_NL_WALTMON_8 = 131202 + X_NL_WALTMON_9 = 131203 + X_NL_WALTMON_10 = 131204 + X_NL_WALTMON_11 = 131205 + X_NL_WALTMON_12 = 131206 + + // Abbreviated month names, in the grammatical form used when the month + // is named by itself. + X_NL_ABALTMON_1 = 131207 // Jan + X_NL_ABALTMON_2 = 131208 + X_NL_ABALTMON_3 = 131209 + X_NL_ABALTMON_4 = 131210 + X_NL_ABALTMON_5 = 131211 + X_NL_ABALTMON_6 = 131212 + X_NL_ABALTMON_7 = 131213 + X_NL_ABALTMON_8 = 131214 + X_NL_ABALTMON_9 = 131215 + X_NL_ABALTMON_10 = 131216 + X_NL_ABALTMON_11 = 131217 + X_NL_ABALTMON_12 = 131218 + + // Abbreviated month names, in the grammatical form used when the month + // is named by itself. + X_NL_WABALTMON_1 = 131219 // Jan + X_NL_WABALTMON_2 = 131220 + X_NL_WABALTMON_3 = 131221 + X_NL_WABALTMON_4 = 131222 + X_NL_WABALTMON_5 = 131223 + X_NL_WABALTMON_6 = 131224 + X_NL_WABALTMON_7 = 131225 + X_NL_WABALTMON_8 = 131226 + X_NL_WABALTMON_9 = 131227 + X_NL_WABALTMON_10 = 131228 + X_NL_WABALTMON_11 = 131229 + X_NL_WABALTMON_12 = 131230 + + X_NL_NUM_LC_TIME = 131231 // Number of indices in LC_TIME category. + + // LC_COLLATE category: text sorting. + // This information is accessed by the strcoll and strxfrm functions. + // These `nl_langinfo' names are used only internally. + X_NL_COLLATE_NRULES = 196608 + X_NL_COLLATE_RULESETS = 196609 + X_NL_COLLATE_TABLEMB = 196610 + X_NL_COLLATE_WEIGHTMB = 196611 + X_NL_COLLATE_EXTRAMB = 196612 + X_NL_COLLATE_INDIRECTMB = 196613 + X_NL_COLLATE_GAP1 = 196614 + X_NL_COLLATE_GAP2 = 196615 + X_NL_COLLATE_GAP3 = 196616 + X_NL_COLLATE_TABLEWC = 196617 + X_NL_COLLATE_WEIGHTWC = 196618 + X_NL_COLLATE_EXTRAWC = 196619 + X_NL_COLLATE_INDIRECTWC = 196620 + X_NL_COLLATE_SYMB_HASH_SIZEMB = 196621 + X_NL_COLLATE_SYMB_TABLEMB = 196622 + X_NL_COLLATE_SYMB_EXTRAMB = 196623 + X_NL_COLLATE_COLLSEQMB = 196624 + X_NL_COLLATE_COLLSEQWC = 196625 + X_NL_COLLATE_CODESET = 196626 + X_NL_NUM_LC_COLLATE = 196627 + + // LC_CTYPE category: character classification. + // This information is accessed by the functions in . + // These `nl_langinfo' names are used only internally. + X_NL_CTYPE_CLASS = 0 + X_NL_CTYPE_TOUPPER = 1 + X_NL_CTYPE_GAP1 = 2 + X_NL_CTYPE_TOLOWER = 3 + X_NL_CTYPE_GAP2 = 4 + X_NL_CTYPE_CLASS32 = 5 + X_NL_CTYPE_GAP3 = 6 + X_NL_CTYPE_GAP4 = 7 + X_NL_CTYPE_GAP5 = 8 + X_NL_CTYPE_GAP6 = 9 + X_NL_CTYPE_CLASS_NAMES = 10 + X_NL_CTYPE_MAP_NAMES = 11 + X_NL_CTYPE_WIDTH = 12 + X_NL_CTYPE_MB_CUR_MAX = 13 + X_NL_CTYPE_CODESET_NAME = 14 + CODESET = 14 + X_NL_CTYPE_TOUPPER32 = 15 + X_NL_CTYPE_TOLOWER32 = 16 + X_NL_CTYPE_CLASS_OFFSET = 17 + X_NL_CTYPE_MAP_OFFSET = 18 + X_NL_CTYPE_INDIGITS_MB_LEN = 19 + X_NL_CTYPE_INDIGITS0_MB = 20 + X_NL_CTYPE_INDIGITS1_MB = 21 + X_NL_CTYPE_INDIGITS2_MB = 22 + X_NL_CTYPE_INDIGITS3_MB = 23 + X_NL_CTYPE_INDIGITS4_MB = 24 + X_NL_CTYPE_INDIGITS5_MB = 25 + X_NL_CTYPE_INDIGITS6_MB = 26 + X_NL_CTYPE_INDIGITS7_MB = 27 + X_NL_CTYPE_INDIGITS8_MB = 28 + X_NL_CTYPE_INDIGITS9_MB = 29 + X_NL_CTYPE_INDIGITS_WC_LEN = 30 + X_NL_CTYPE_INDIGITS0_WC = 31 + X_NL_CTYPE_INDIGITS1_WC = 32 + X_NL_CTYPE_INDIGITS2_WC = 33 + X_NL_CTYPE_INDIGITS3_WC = 34 + X_NL_CTYPE_INDIGITS4_WC = 35 + X_NL_CTYPE_INDIGITS5_WC = 36 + X_NL_CTYPE_INDIGITS6_WC = 37 + X_NL_CTYPE_INDIGITS7_WC = 38 + X_NL_CTYPE_INDIGITS8_WC = 39 + X_NL_CTYPE_INDIGITS9_WC = 40 + X_NL_CTYPE_OUTDIGIT0_MB = 41 + X_NL_CTYPE_OUTDIGIT1_MB = 42 + X_NL_CTYPE_OUTDIGIT2_MB = 43 + X_NL_CTYPE_OUTDIGIT3_MB = 44 + X_NL_CTYPE_OUTDIGIT4_MB = 45 + X_NL_CTYPE_OUTDIGIT5_MB = 46 + X_NL_CTYPE_OUTDIGIT6_MB = 47 + X_NL_CTYPE_OUTDIGIT7_MB = 48 + X_NL_CTYPE_OUTDIGIT8_MB = 49 + X_NL_CTYPE_OUTDIGIT9_MB = 50 + X_NL_CTYPE_OUTDIGIT0_WC = 51 + X_NL_CTYPE_OUTDIGIT1_WC = 52 + X_NL_CTYPE_OUTDIGIT2_WC = 53 + X_NL_CTYPE_OUTDIGIT3_WC = 54 + X_NL_CTYPE_OUTDIGIT4_WC = 55 + X_NL_CTYPE_OUTDIGIT5_WC = 56 + X_NL_CTYPE_OUTDIGIT6_WC = 57 + X_NL_CTYPE_OUTDIGIT7_WC = 58 + X_NL_CTYPE_OUTDIGIT8_WC = 59 + X_NL_CTYPE_OUTDIGIT9_WC = 60 + X_NL_CTYPE_TRANSLIT_TAB_SIZE = 61 + X_NL_CTYPE_TRANSLIT_FROM_IDX = 62 + X_NL_CTYPE_TRANSLIT_FROM_TBL = 63 + X_NL_CTYPE_TRANSLIT_TO_IDX = 64 + X_NL_CTYPE_TRANSLIT_TO_TBL = 65 + X_NL_CTYPE_TRANSLIT_DEFAULT_MISSING_LEN = 66 + X_NL_CTYPE_TRANSLIT_DEFAULT_MISSING = 67 + X_NL_CTYPE_TRANSLIT_IGNORE_LEN = 68 + X_NL_CTYPE_TRANSLIT_IGNORE = 69 + X_NL_CTYPE_MAP_TO_NONASCII = 70 + X_NL_CTYPE_NONASCII_CASE = 71 + X_NL_CTYPE_EXTRA_MAP_1 = 72 + X_NL_CTYPE_EXTRA_MAP_2 = 73 + X_NL_CTYPE_EXTRA_MAP_3 = 74 + X_NL_CTYPE_EXTRA_MAP_4 = 75 + X_NL_CTYPE_EXTRA_MAP_5 = 76 + X_NL_CTYPE_EXTRA_MAP_6 = 77 + X_NL_CTYPE_EXTRA_MAP_7 = 78 + X_NL_CTYPE_EXTRA_MAP_8 = 79 + X_NL_CTYPE_EXTRA_MAP_9 = 80 + X_NL_CTYPE_EXTRA_MAP_10 = 81 + X_NL_CTYPE_EXTRA_MAP_11 = 82 + X_NL_CTYPE_EXTRA_MAP_12 = 83 + X_NL_CTYPE_EXTRA_MAP_13 = 84 + X_NL_CTYPE_EXTRA_MAP_14 = 85 + X_NL_NUM_LC_CTYPE = 86 + + // LC_MONETARY category: formatting of monetary quantities. + // These items each correspond to a member of `struct lconv', + // defined in . + X__INT_CURR_SYMBOL = 262144 + X__CURRENCY_SYMBOL = 262145 + X__MON_DECIMAL_POINT = 262146 + X__MON_THOUSANDS_SEP = 262147 + X__MON_GROUPING = 262148 + X__POSITIVE_SIGN = 262149 + X__NEGATIVE_SIGN = 262150 + X__INT_FRAC_DIGITS = 262151 + X__FRAC_DIGITS = 262152 + X__P_CS_PRECEDES = 262153 + X__P_SEP_BY_SPACE = 262154 + X__N_CS_PRECEDES = 262155 + X__N_SEP_BY_SPACE = 262156 + X__P_SIGN_POSN = 262157 + X__N_SIGN_POSN = 262158 + X_NL_MONETARY_CRNCYSTR = 262159 + X__INT_P_CS_PRECEDES = 262160 + X__INT_P_SEP_BY_SPACE = 262161 + X__INT_N_CS_PRECEDES = 262162 + X__INT_N_SEP_BY_SPACE = 262163 + X__INT_P_SIGN_POSN = 262164 + X__INT_N_SIGN_POSN = 262165 + X_NL_MONETARY_DUO_INT_CURR_SYMBOL = 262166 + X_NL_MONETARY_DUO_CURRENCY_SYMBOL = 262167 + X_NL_MONETARY_DUO_INT_FRAC_DIGITS = 262168 + X_NL_MONETARY_DUO_FRAC_DIGITS = 262169 + X_NL_MONETARY_DUO_P_CS_PRECEDES = 262170 + X_NL_MONETARY_DUO_P_SEP_BY_SPACE = 262171 + X_NL_MONETARY_DUO_N_CS_PRECEDES = 262172 + X_NL_MONETARY_DUO_N_SEP_BY_SPACE = 262173 + X_NL_MONETARY_DUO_INT_P_CS_PRECEDES = 262174 + X_NL_MONETARY_DUO_INT_P_SEP_BY_SPACE = 262175 + X_NL_MONETARY_DUO_INT_N_CS_PRECEDES = 262176 + X_NL_MONETARY_DUO_INT_N_SEP_BY_SPACE = 262177 + X_NL_MONETARY_DUO_P_SIGN_POSN = 262178 + X_NL_MONETARY_DUO_N_SIGN_POSN = 262179 + X_NL_MONETARY_DUO_INT_P_SIGN_POSN = 262180 + X_NL_MONETARY_DUO_INT_N_SIGN_POSN = 262181 + X_NL_MONETARY_UNO_VALID_FROM = 262182 + X_NL_MONETARY_UNO_VALID_TO = 262183 + X_NL_MONETARY_DUO_VALID_FROM = 262184 + X_NL_MONETARY_DUO_VALID_TO = 262185 + X_NL_MONETARY_CONVERSION_RATE = 262186 + X_NL_MONETARY_DECIMAL_POINT_WC = 262187 + X_NL_MONETARY_THOUSANDS_SEP_WC = 262188 + X_NL_MONETARY_CODESET = 262189 + X_NL_NUM_LC_MONETARY = 262190 + + // LC_NUMERIC category: formatting of numbers. + // These also correspond to members of `struct lconv'; see . + X__DECIMAL_POINT = 65536 + RADIXCHAR = 65536 + X__THOUSANDS_SEP = 65537 + THOUSEP = 65537 + X__GROUPING = 65538 + X_NL_NUMERIC_DECIMAL_POINT_WC = 65539 + X_NL_NUMERIC_THOUSANDS_SEP_WC = 65540 + X_NL_NUMERIC_CODESET = 65541 + X_NL_NUM_LC_NUMERIC = 65542 + + X__YESEXPR = 327680 // Regex matching ``yes'' input. + X__NOEXPR = 327681 // Regex matching ``no'' input. + X__YESSTR = 327682 // Output string for ``yes''. + X__NOSTR = 327683 // Output string for ``no''. + X_NL_MESSAGES_CODESET = 327684 + X_NL_NUM_LC_MESSAGES = 327685 + + X_NL_PAPER_HEIGHT = 458752 + X_NL_PAPER_WIDTH = 458753 + X_NL_PAPER_CODESET = 458754 + X_NL_NUM_LC_PAPER = 458755 + + X_NL_NAME_NAME_FMT = 524288 + X_NL_NAME_NAME_GEN = 524289 + X_NL_NAME_NAME_MR = 524290 + X_NL_NAME_NAME_MRS = 524291 + X_NL_NAME_NAME_MISS = 524292 + X_NL_NAME_NAME_MS = 524293 + X_NL_NAME_CODESET = 524294 + X_NL_NUM_LC_NAME = 524295 + + X_NL_ADDRESS_POSTAL_FMT = 589824 + X_NL_ADDRESS_COUNTRY_NAME = 589825 + X_NL_ADDRESS_COUNTRY_POST = 589826 + X_NL_ADDRESS_COUNTRY_AB2 = 589827 + X_NL_ADDRESS_COUNTRY_AB3 = 589828 + X_NL_ADDRESS_COUNTRY_CAR = 589829 + X_NL_ADDRESS_COUNTRY_NUM = 589830 + X_NL_ADDRESS_COUNTRY_ISBN = 589831 + X_NL_ADDRESS_LANG_NAME = 589832 + X_NL_ADDRESS_LANG_AB = 589833 + X_NL_ADDRESS_LANG_TERM = 589834 + X_NL_ADDRESS_LANG_LIB = 589835 + X_NL_ADDRESS_CODESET = 589836 + X_NL_NUM_LC_ADDRESS = 589837 + + X_NL_TELEPHONE_TEL_INT_FMT = 655360 + X_NL_TELEPHONE_TEL_DOM_FMT = 655361 + X_NL_TELEPHONE_INT_SELECT = 655362 + X_NL_TELEPHONE_INT_PREFIX = 655363 + X_NL_TELEPHONE_CODESET = 655364 + X_NL_NUM_LC_TELEPHONE = 655365 + + X_NL_MEASUREMENT_MEASUREMENT = 720896 + X_NL_MEASUREMENT_CODESET = 720897 + X_NL_NUM_LC_MEASUREMENT = 720898 + + X_NL_IDENTIFICATION_TITLE = 786432 + X_NL_IDENTIFICATION_SOURCE = 786433 + X_NL_IDENTIFICATION_ADDRESS = 786434 + X_NL_IDENTIFICATION_CONTACT = 786435 + X_NL_IDENTIFICATION_EMAIL = 786436 + X_NL_IDENTIFICATION_TEL = 786437 + X_NL_IDENTIFICATION_FAX = 786438 + X_NL_IDENTIFICATION_LANGUAGE = 786439 + X_NL_IDENTIFICATION_TERRITORY = 786440 + X_NL_IDENTIFICATION_AUDIENCE = 786441 + X_NL_IDENTIFICATION_APPLICATION = 786442 + X_NL_IDENTIFICATION_ABBREVIATION = 786443 + X_NL_IDENTIFICATION_REVISION = 786444 + X_NL_IDENTIFICATION_DATE = 786445 + X_NL_IDENTIFICATION_CATEGORY = 786446 + X_NL_IDENTIFICATION_CODESET = 786447 + X_NL_NUM_LC_IDENTIFICATION = 786448 + + // This marks the highest value used. + X_NL_NUM = 786449 +) + +type Ptrdiff_t = int64 /* :3:26 */ + +type Size_t = uint64 /* :9:23 */ + +type Wchar_t = int32 /* :15:24 */ + +type X__int128_t = struct { + Flo int64 + Fhi int64 +} /* :21:43 */ // must match modernc.org/mathutil.Int128 +type X__uint128_t = struct { + Flo uint64 + Fhi uint64 +} /* :22:44 */ // must match modernc.org/mathutil.Int128 + +type X__builtin_va_list = uintptr /* :46:14 */ +type X__float128 = float64 /* :47:21 */ + +// Access to locale-dependent parameters. +// Copyright (C) 1995-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Get the type definition. +// Copyright (C) 1996-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// These are defined by the user (or the compiler) +// to specify the desired environment: +// +// __STRICT_ANSI__ ISO Standard C. +// _ISOC99_SOURCE Extensions to ISO C89 from ISO C99. +// _ISOC11_SOURCE Extensions to ISO C99 from ISO C11. +// _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X. +// __STDC_WANT_LIB_EXT2__ +// Extensions to ISO C99 from TR 27431-2:2010. +// __STDC_WANT_IEC_60559_BFP_EXT__ +// Extensions to ISO C11 from TS 18661-1:2014. +// __STDC_WANT_IEC_60559_FUNCS_EXT__ +// Extensions to ISO C11 from TS 18661-4:2015. +// __STDC_WANT_IEC_60559_TYPES_EXT__ +// Extensions to ISO C11 from TS 18661-3:2015. +// __STDC_WANT_IEC_60559_EXT__ +// ISO C2X interfaces defined only in Annex F. +// +// _POSIX_SOURCE IEEE Std 1003.1. +// _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2; +// if >=199309L, add IEEE Std 1003.1b-1993; +// if >=199506L, add IEEE Std 1003.1c-1995; +// if >=200112L, all of IEEE 1003.1-2004 +// if >=200809L, all of IEEE 1003.1-2008 +// _XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if +// Single Unix conformance is wanted, to 600 for the +// sixth revision, to 700 for the seventh revision. +// _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions. +// _LARGEFILE_SOURCE Some more functions for correct standard I/O. +// _LARGEFILE64_SOURCE Additional functionality from LFS for large files. +// _FILE_OFFSET_BITS=N Select default filesystem interface. +// _ATFILE_SOURCE Additional *at interfaces. +// _DYNAMIC_STACK_SIZE_SOURCE Select correct (but non compile-time constant) +// MINSIGSTKSZ, SIGSTKSZ and PTHREAD_STACK_MIN. +// _GNU_SOURCE All of the above, plus GNU extensions. +// _DEFAULT_SOURCE The default set of features (taking precedence over +// __STRICT_ANSI__). +// +// _FORTIFY_SOURCE Add security hardening to many library functions. +// Set to 1, 2 or 3; 3 performs stricter checks than 2, which +// performs stricter checks than 1. +// +// _REENTRANT, _THREAD_SAFE +// Obsolete; equivalent to _POSIX_C_SOURCE=199506L. +// +// The `-ansi' switch to the GNU C compiler, and standards conformance +// options such as `-std=c99', define __STRICT_ANSI__. If none of +// these are defined, or if _DEFAULT_SOURCE is defined, the default is +// to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to +// 200809L, as well as enabling miscellaneous functions from BSD and +// SVID. If more than one of these are defined, they accumulate. For +// example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together +// give you ISO C, 1003.1, and 1003.2, but nothing else. +// +// These are defined by this file and are used by the +// header files to decide what to declare or define: +// +// __GLIBC_USE (F) Define things from feature set F. This is defined +// to 1 or 0; the subsequent macros are either defined +// or undefined, and those tests should be moved to +// __GLIBC_USE. +// __USE_ISOC11 Define ISO C11 things. +// __USE_ISOC99 Define ISO C99 things. +// __USE_ISOC95 Define ISO C90 AMD1 (C95) things. +// __USE_ISOCXX11 Define ISO C++11 things. +// __USE_POSIX Define IEEE Std 1003.1 things. +// __USE_POSIX2 Define IEEE Std 1003.2 things. +// __USE_POSIX199309 Define IEEE Std 1003.1, and .1b things. +// __USE_POSIX199506 Define IEEE Std 1003.1, .1b, .1c and .1i things. +// __USE_XOPEN Define XPG things. +// __USE_XOPEN_EXTENDED Define X/Open Unix things. +// __USE_UNIX98 Define Single Unix V2 things. +// __USE_XOPEN2K Define XPG6 things. +// __USE_XOPEN2KXSI Define XPG6 XSI things. +// __USE_XOPEN2K8 Define XPG7 things. +// __USE_XOPEN2K8XSI Define XPG7 XSI things. +// __USE_LARGEFILE Define correct standard I/O things. +// __USE_LARGEFILE64 Define LFS things with separate names. +// __USE_FILE_OFFSET64 Define 64bit interface as default. +// __USE_MISC Define things from 4.3BSD or System V Unix. +// __USE_ATFILE Define *at interfaces and AT_* constants for them. +// __USE_DYNAMIC_STACK_SIZE Define correct (but non compile-time constant) +// MINSIGSTKSZ, SIGSTKSZ and PTHREAD_STACK_MIN. +// __USE_GNU Define GNU extensions. +// __USE_FORTIFY_LEVEL Additional security measures used, according to level. +// +// The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are +// defined by this file unconditionally. `__GNU_LIBRARY__' is provided +// only for compatibility. All new code should use the other symbols +// to test for features. +// +// All macros listed above as possibly being defined by this file are +// explicitly undefined if they are not explicitly defined. +// Feature-test macros that are not defined by the user or compiler +// but are implied by the other feature-test macros defined (or by the +// lack of any definitions) are defined by the file. +// +// ISO C feature test macros depend on the definition of the macro +// when an affected header is included, not when the first system +// header is included, and so they are handled in +// , which does not have a multiple include +// guard. Feature test macros that can be handled from the first +// system header included are handled here. + +// Undefine everything, so we get a clean slate. + +// Suppress kernel-name space pollution unless user expressedly asks +// for it. + +// Convenience macro to test the version of gcc. +// Use like this: +// #if __GNUC_PREREQ (2,8) +// ... code requiring gcc 2.8 or later ... +// #endif +// Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was +// added in 2.0. + +// Similarly for clang. Features added to GCC after version 4.2 may +// or may not also be available in clang, and clang's definitions of +// __GNUC(_MINOR)__ are fixed at 4 and 2 respectively. Not all such +// features can be queried via __has_extension/__has_feature. + +// Whether to use feature set F. + +// _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for +// _DEFAULT_SOURCE. If _DEFAULT_SOURCE is present we do not +// issue a warning; the expectation is that the source is being +// transitioned to use the new macro. + +// If _GNU_SOURCE was defined by the user, turn on all the other features. + +// If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined, +// define _DEFAULT_SOURCE. + +// This is to enable the ISO C2X extension. + +// This is to enable the ISO C11 extension. + +// This is to enable the ISO C99 extension. + +// This is to enable the ISO C90 Amendment 1:1995 extension. + +// If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE +// is defined, use POSIX.1-2008 (or another version depending on +// _XOPEN_SOURCE). + +// Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be +// defined in all multithreaded code. GNU libc has not required this +// for many years. We now treat them as compatibility synonyms for +// _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with +// comprehensive support for multithreaded code. Using them never +// lowers the selected level of POSIX conformance, only raises it. + +// Features part to handle 64-bit time_t support. +// Copyright (C) 2021-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// We need to know the word size in order to check the time size. +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Bit size of the time_t type at glibc build time, general case. +// Copyright (C) 2018-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Size in bits of the 'time_t' type of the default ABI. + +// The function 'gets' existed in C89, but is impossible to use +// safely. It has been removed from ISO C11 and ISO C++14. Note: for +// compatibility with various implementations of , this test +// must consider only the value of __cplusplus when compiling C++. + +// GNU formerly extended the scanf functions with modified format +// specifiers %as, %aS, and %a[...] that allocate a buffer for the +// input using malloc. This extension conflicts with ISO C99, which +// defines %a as a standalone format specifier that reads a floating- +// point number; moreover, POSIX.1-2008 provides the same feature +// using the modifier letter 'm' instead (%ms, %mS, %m[...]). +// +// We now follow C99 unless GNU extensions are active and the compiler +// is specifically in C89 or C++98 mode (strict or not). For +// instance, with GCC, -std=gnu11 will have C99-compliant scanf with +// or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the +// old extension. + +// ISO C2X added support for a 0b or 0B prefix on binary constants as +// inputs to strtol-family functions (base 0 or 2). This macro is +// used to condition redirection in headers to allow that redirection +// to be disabled when building those functions, despite _GNU_SOURCE +// being defined. + +// Get definitions of __STDC_* predefined macros, if the compiler has +// not preincluded this header automatically. +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// This macro indicates that the installed library is the GNU C Library. +// For historic reasons the value now is 6 and this will stay from now +// on. The use of this variable is deprecated. Use __GLIBC__ and +// __GLIBC_MINOR__ now (see below) when you want to test for a specific +// GNU C library version and use the values in to get +// the sonames of the shared libraries. + +// Major and minor version number of the GNU C library package. Use +// these macros to test for features in specific releases. + +// This is here only because every header file already includes this one. +// Copyright (C) 1992-2023 Free Software Foundation, Inc. +// Copyright The GNU Toolchain Authors. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// We are almost always included from features.h. + +// The GNU libc does not support any K&R compilers or the traditional mode +// of ISO C compilers anymore. Check for some of the combinations not +// supported anymore. + +// Some user header file might have defined this before. + +// Compilers that lack __has_attribute may object to +// #if defined __has_attribute && __has_attribute (...) +// even though they do not need to evaluate the right-hand side of the &&. +// Similarly for __has_builtin, etc. + +// All functions, except those with callbacks or those that +// synchronize memory, are leaf functions. + +// GCC can always grok prototypes. For C++ programs we add throw() +// to help it optimize the function calls. But this only works with +// gcc 2.8.x and egcs. For gcc 3.4 and up we even mark C functions +// as non-throwing using a function attribute since programs can use +// the -fexceptions options for C code as well. + +// These two macros are not used in glibc anymore. They are kept here +// only because some other projects expect the macros to be defined. + +// For these things, GCC behaves the ANSI way normally, +// and the non-ANSI way under -traditional. + +// This is not a typedef so `const __ptr_t' does the right thing. + +// C++ needs to know that types and declarations are C, not C++. + +// Fortify support. + +// Use __builtin_dynamic_object_size at _FORTIFY_SOURCE=3 when available. + +// Support for flexible arrays. +// Headers that should use flexible arrays only if they're "real" +// (e.g. only if they won't affect sizeof()) should test +// #if __glibc_c99_flexarr_available. + +// __asm__ ("xyz") is used throughout the headers to rename functions +// at the assembly language level. This is wrapped by the __REDIRECT +// macro, in order to support compilers that can do this some other +// way. When compilers don't support asm-names at all, we have to do +// preprocessor tricks instead (which don't have exactly the right +// semantics, but it's the best we can do). +// +// Example: +// int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid); + +// +// #elif __SOME_OTHER_COMPILER__ +// +// # define __REDIRECT(name, proto, alias) name proto; _Pragma("let " #name " = " #alias) + +// GCC and clang have various useful declarations that can be made with +// the '__attribute__' syntax. All of the ways we use this do fine if +// they are omitted for compilers that don't understand it. + +// At some point during the gcc 2.96 development the `malloc' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// Tell the compiler which arguments to an allocation function +// indicate the size of the allocation. + +// Tell the compiler which argument to an allocation function +// indicates the alignment of the allocation. + +// At some point during the gcc 2.96 development the `pure' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// This declaration tells the compiler that the value is constant. + +// At some point during the gcc 3.1 development the `used' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// Since version 3.2, gcc allows marking deprecated functions. + +// Since version 4.5, gcc also allows one to specify the message printed +// when a deprecated function is used. clang claims to be gcc 4.2, but +// may also support this feature. + +// At some point during the gcc 2.8 development the `format_arg' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. +// If several `format_arg' attributes are given for the same function, in +// gcc-3.0 and older, all but the last one are ignored. In newer gccs, +// all designated arguments are considered. + +// At some point during the gcc 2.97 development the `strfmon' format +// attribute for functions was introduced. We don't want to use it +// unconditionally (although this would be possible) since it +// generates warnings. + +// The nonnull function attribute marks pointer parameters that +// must not be NULL. This has the name __nonnull in glibc, +// and __attribute_nonnull__ in files shared with Gnulib to avoid +// collision with a different __nonnull in DragonFlyBSD 5.9. + +// The returns_nonnull function attribute marks the return type of the function +// as always being non-null. + +// If fortification mode, we warn about unused results of certain +// function calls which can lead to problems. + +// Forces a function to be always inlined. +// The Linux kernel defines __always_inline in stddef.h (283d7573), and +// it conflicts with this definition. Therefore undefine it first to +// allow either header to be included first. + +// Associate error messages with the source location of the call site rather +// than with the source location inside the function. + +// GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99 +// inline semantics, unless -fgnu89-inline is used. Using __GNUC_STDC_INLINE__ +// or __GNUC_GNU_INLINE is not a good enough check for gcc because gcc versions +// older than 4.3 may define these macros and still not guarantee GNU inlining +// semantics. +// +// clang++ identifies itself as gcc-4.2, but has support for GNU inlining +// semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and +// __GNUC_GNU_INLINE__ macro definitions. + +// GCC 4.3 and above allow passing all anonymous arguments of an +// __extern_always_inline function to some other vararg function. + +// It is possible to compile containing GCC extensions even if GCC is +// run in pedantic mode if the uses are carefully marked using the +// `__extension__' keyword. But this is not generally available before +// version 2.8. + +// __restrict is known in EGCS 1.2 and above, and in clang. +// It works also in C++ mode (outside of arrays), but only when spelled +// as '__restrict', not 'restrict'. + +// ISO C99 also allows to declare arrays as non-overlapping. The syntax is +// array_name[restrict] +// GCC 3.1 and clang support this. +// This syntax is not usable in C++ mode. + +// Describes a char array whose address can safely be passed as the first +// argument to strncpy and strncat, as the char array is not necessarily +// a NUL-terminated string. + +// Undefine (also defined in libc-symbols.h). +// Copies attributes from the declaration or type referenced by +// the argument. + +// Gnulib avoids including these, as they don't work on non-glibc or +// older glibc platforms. +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Properties of long double type. ldbl-128 version. +// Copyright (C) 2016-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// long double is distinct from double, so there is nothing to +// define here. + +// __glibc_macro_warning (MESSAGE) issues warning MESSAGE. This is +// intended for use in preprocessor macros. +// +// Note: MESSAGE must be a _single_ string; concatenation of string +// literals is not supported. + +// Generic selection (ISO C11) is a C-only feature, available in GCC +// since version 4.9. Previous versions do not provide generic +// selection, even though they might set __STDC_VERSION__ to 201112L, +// when in -std=c11 mode. Thus, we must check for !defined __GNUC__ +// when testing __STDC_VERSION__ for generic selection support. +// On the other hand, Clang also defines __GNUC__, so a clang-specific +// check is required to enable the use of generic selection. + +// Designates a 1-based positional argument ref-index of pointer type +// that can be used to access size-index elements of the pointed-to +// array according to access mode, or at least one element when +// size-index is not provided: +// access (access-mode, [, ]) +// For _FORTIFY_SOURCE == 3 we use __builtin_dynamic_object_size, which may +// use the access attribute to get object sizes from function definition +// arguments, so we can't use them on functions we fortify. Drop the object +// size hints for such functions. + +// Designates dealloc as a function to call to deallocate objects +// allocated by the declared function. + +// Specify that a function such as setjmp or vfork may return +// twice. + +// If we don't have __REDIRECT, prototypes will be missing if +// __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64]. + +// Decide whether we can define 'extern inline' functions in headers. + +// This is here only because every header file already includes this one. +// Get the definitions of all the appropriate `__stub_FUNCTION' symbols. +// contains `#define __stub_FUNCTION' when FUNCTION is a stub +// that will always return failure (and set errno to ENOSYS). +// This file is automatically generated. +// This file selects the right generated file of `__stub_FUNCTION' macros +// based on the architecture being compiled for. + +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// This file is automatically generated. +// It defines a symbol `__stub_FUNCTION' for each function +// in the C library which is a stub, meaning it will fail +// every time called, usually setting errno to ENOSYS. + +// The default message set used by the gencat program. + +// Value for FLAG parameter of `catgets' to say we want XPG4 compliance. + +// Message catalog descriptor type. +type Nl_catd = uintptr /* nl_types.h:33:14 */ + +// Type used by `nl_langinfo'. +type Nl_item = int32 /* nl_types.h:36:13 */ + +// POSIX.1-2008 extended locale interface (see locale.h). +// Definition of locale_t. +// Copyright (C) 2017-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Definition of struct __locale_struct and __locale_t. +// Copyright (C) 1997-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// POSIX.1-2008: the locale_t type, representing a locale context +// (implementation-namespace version). This type should be treated +// as opaque by applications; some details are exposed for the sake of +// efficiency in e.g. ctype functions. + +type X__locale_struct = struct { + F__locales [13]uintptr + F__ctype_b uintptr + F__ctype_tolower uintptr + F__ctype_toupper uintptr + F__names [13]uintptr +} /* __locale_t.h:27:1 */ + +type X__locale_t = uintptr /* __locale_t.h:41:32 */ + +type Locale_t = uintptr /* locale_t.h:24:20 */ + +var _ int8 /* gen.c:2:13: */ diff --git a/vendor/modernc.org/libc/langinfo/langinfo_linux_mips64le.go b/vendor/modernc.org/libc/langinfo/langinfo_linux_mips64le.go new file mode 100644 index 000000000..dee83b910 --- /dev/null +++ b/vendor/modernc.org/libc/langinfo/langinfo_linux_mips64le.go @@ -0,0 +1,1058 @@ +// Code generated by 'ccgo langinfo/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o langinfo/langinfo_linux_amd64.go -pkgname langinfo', DO NOT EDIT. + +package langinfo + +import ( + "math" + "reflect" + "sync/atomic" + "unsafe" +) + +var _ = math.Pi +var _ reflect.Kind +var _ atomic.Value +var _ unsafe.Pointer + +const ( + NL_CAT_LOCALE = 1 // nl_types.h:27:1: + NL_SETD = 1 // nl_types.h:24:1: + X_ATFILE_SOURCE = 1 // features.h:342:1: + X_BITS_LOCALE_H = 1 // locale.h:24:1: + X_BITS_TYPES_LOCALE_T_H = 1 // locale_t.h:20:1: + X_BITS_TYPES___LOCALE_T_H = 1 // __locale_t.h:21:1: + X_DEFAULT_SOURCE = 1 // features.h:227:1: + X_FEATURES_H = 1 // features.h:19:1: + X_FILE_OFFSET_BITS = 64 // :25:1: + X_LANGINFO_H = 1 // langinfo.h:20:1: + X_LP64 = 1 // :284:1: + X_NL_TYPES_H = 1 // nl_types.h:19:1: + X_POSIX_C_SOURCE = 200809 // features.h:281:1: + X_POSIX_SOURCE = 1 // features.h:279:1: + X_STDC_PREDEF_H = 1 // :162:1: + X_SYS_CDEFS_H = 1 // cdefs.h:19:1: + Linux = 1 // :231:1: + Unix = 1 // :177:1: +) + +// Definition of locale category symbol values. +// Copyright (C) 2001-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Construct an `nl_item' value for `nl_langinfo' from a locale category +// (LC_*) and an item index within the category. Some code may depend on +// the item values within a category increasing monotonically with the +// indices. + +// Extract the category and item index from a constructed `nl_item' value. + +// Enumeration of locale items that can be queried with `nl_langinfo'. +const ( /* langinfo.h:41:1: */ + // LC_TIME category: date and time formatting. + + // Abbreviated days of the week. + ABDAY_1 = 131072 // Sun + ABDAY_2 = 131073 + ABDAY_3 = 131074 + ABDAY_4 = 131075 + ABDAY_5 = 131076 + ABDAY_6 = 131077 + ABDAY_7 = 131078 + + // Long-named days of the week. + DAY_1 = 131079 // Sunday + DAY_2 = 131080 // Monday + DAY_3 = 131081 // Tuesday + DAY_4 = 131082 // Wednesday + DAY_5 = 131083 // Thursday + DAY_6 = 131084 // Friday + DAY_7 = 131085 // Saturday + + // Abbreviated month names, in the grammatical form used when the month + // is a part of a complete date. + ABMON_1 = 131086 // Jan + ABMON_2 = 131087 + ABMON_3 = 131088 + ABMON_4 = 131089 + ABMON_5 = 131090 + ABMON_6 = 131091 + ABMON_7 = 131092 + ABMON_8 = 131093 + ABMON_9 = 131094 + ABMON_10 = 131095 + ABMON_11 = 131096 + ABMON_12 = 131097 + + // Long month names, in the grammatical form used when the month + // is a part of a complete date. + MON_1 = 131098 // January + MON_2 = 131099 + MON_3 = 131100 + MON_4 = 131101 + MON_5 = 131102 + MON_6 = 131103 + MON_7 = 131104 + MON_8 = 131105 + MON_9 = 131106 + MON_10 = 131107 + MON_11 = 131108 + MON_12 = 131109 + + AM_STR = 131110 // Ante meridiem string. + PM_STR = 131111 // Post meridiem string. + + D_T_FMT = 131112 // Date and time format for strftime. + D_FMT = 131113 // Date format for strftime. + T_FMT = 131114 // Time format for strftime. + T_FMT_AMPM = 131115 // 12-hour time format for strftime. + + ERA = 131116 // Alternate era. + X__ERA_YEAR = 131117 // Year in alternate era format. + ERA_D_FMT = 131118 // Date in alternate era format. + ALT_DIGITS = 131119 // Alternate symbols for digits. + ERA_D_T_FMT = 131120 // Date and time in alternate era format. + ERA_T_FMT = 131121 // Time in alternate era format. + + X_NL_TIME_ERA_NUM_ENTRIES = 131122 // Number entries in the era arrays. + X_NL_TIME_ERA_ENTRIES = 131123 // Structure with era entries in usable form. + + X_NL_WABDAY_1 = 131124 // Sun + X_NL_WABDAY_2 = 131125 + X_NL_WABDAY_3 = 131126 + X_NL_WABDAY_4 = 131127 + X_NL_WABDAY_5 = 131128 + X_NL_WABDAY_6 = 131129 + X_NL_WABDAY_7 = 131130 + + // Long-named days of the week. + X_NL_WDAY_1 = 131131 // Sunday + X_NL_WDAY_2 = 131132 // Monday + X_NL_WDAY_3 = 131133 // Tuesday + X_NL_WDAY_4 = 131134 // Wednesday + X_NL_WDAY_5 = 131135 // Thursday + X_NL_WDAY_6 = 131136 // Friday + X_NL_WDAY_7 = 131137 // Saturday + + // Abbreviated month names, in the grammatical form used when the month + // is a part of a complete date. + X_NL_WABMON_1 = 131138 // Jan + X_NL_WABMON_2 = 131139 + X_NL_WABMON_3 = 131140 + X_NL_WABMON_4 = 131141 + X_NL_WABMON_5 = 131142 + X_NL_WABMON_6 = 131143 + X_NL_WABMON_7 = 131144 + X_NL_WABMON_8 = 131145 + X_NL_WABMON_9 = 131146 + X_NL_WABMON_10 = 131147 + X_NL_WABMON_11 = 131148 + X_NL_WABMON_12 = 131149 + + // Long month names, in the grammatical form used when the month + // is a part of a complete date. + X_NL_WMON_1 = 131150 // January + X_NL_WMON_2 = 131151 + X_NL_WMON_3 = 131152 + X_NL_WMON_4 = 131153 + X_NL_WMON_5 = 131154 + X_NL_WMON_6 = 131155 + X_NL_WMON_7 = 131156 + X_NL_WMON_8 = 131157 + X_NL_WMON_9 = 131158 + X_NL_WMON_10 = 131159 + X_NL_WMON_11 = 131160 + X_NL_WMON_12 = 131161 + + X_NL_WAM_STR = 131162 // Ante meridiem string. + X_NL_WPM_STR = 131163 // Post meridiem string. + + X_NL_WD_T_FMT = 131164 // Date and time format for strftime. + X_NL_WD_FMT = 131165 // Date format for strftime. + X_NL_WT_FMT = 131166 // Time format for strftime. + X_NL_WT_FMT_AMPM = 131167 // 12-hour time format for strftime. + + X_NL_WERA_YEAR = 131168 // Year in alternate era format. + X_NL_WERA_D_FMT = 131169 // Date in alternate era format. + X_NL_WALT_DIGITS = 131170 // Alternate symbols for digits. + X_NL_WERA_D_T_FMT = 131171 // Date and time in alternate era format. + X_NL_WERA_T_FMT = 131172 // Time in alternate era format. + + X_NL_TIME_WEEK_NDAYS = 131173 + X_NL_TIME_WEEK_1STDAY = 131174 + X_NL_TIME_WEEK_1STWEEK = 131175 + X_NL_TIME_FIRST_WEEKDAY = 131176 + X_NL_TIME_FIRST_WORKDAY = 131177 + X_NL_TIME_CAL_DIRECTION = 131178 + X_NL_TIME_TIMEZONE = 131179 + + X_DATE_FMT = 131180 // strftime format for date. + X_NL_W_DATE_FMT = 131181 + + X_NL_TIME_CODESET = 131182 + + // Long month names, in the grammatical form used when the month + // is named by itself. + X__ALTMON_1 = 131183 // January + X__ALTMON_2 = 131184 + X__ALTMON_3 = 131185 + X__ALTMON_4 = 131186 + X__ALTMON_5 = 131187 + X__ALTMON_6 = 131188 + X__ALTMON_7 = 131189 + X__ALTMON_8 = 131190 + X__ALTMON_9 = 131191 + X__ALTMON_10 = 131192 + X__ALTMON_11 = 131193 + X__ALTMON_12 = 131194 + + // Long month names, in the grammatical form used when the month + // is named by itself. + X_NL_WALTMON_1 = 131195 // January + X_NL_WALTMON_2 = 131196 + X_NL_WALTMON_3 = 131197 + X_NL_WALTMON_4 = 131198 + X_NL_WALTMON_5 = 131199 + X_NL_WALTMON_6 = 131200 + X_NL_WALTMON_7 = 131201 + X_NL_WALTMON_8 = 131202 + X_NL_WALTMON_9 = 131203 + X_NL_WALTMON_10 = 131204 + X_NL_WALTMON_11 = 131205 + X_NL_WALTMON_12 = 131206 + + // Abbreviated month names, in the grammatical form used when the month + // is named by itself. + X_NL_ABALTMON_1 = 131207 // Jan + X_NL_ABALTMON_2 = 131208 + X_NL_ABALTMON_3 = 131209 + X_NL_ABALTMON_4 = 131210 + X_NL_ABALTMON_5 = 131211 + X_NL_ABALTMON_6 = 131212 + X_NL_ABALTMON_7 = 131213 + X_NL_ABALTMON_8 = 131214 + X_NL_ABALTMON_9 = 131215 + X_NL_ABALTMON_10 = 131216 + X_NL_ABALTMON_11 = 131217 + X_NL_ABALTMON_12 = 131218 + + // Abbreviated month names, in the grammatical form used when the month + // is named by itself. + X_NL_WABALTMON_1 = 131219 // Jan + X_NL_WABALTMON_2 = 131220 + X_NL_WABALTMON_3 = 131221 + X_NL_WABALTMON_4 = 131222 + X_NL_WABALTMON_5 = 131223 + X_NL_WABALTMON_6 = 131224 + X_NL_WABALTMON_7 = 131225 + X_NL_WABALTMON_8 = 131226 + X_NL_WABALTMON_9 = 131227 + X_NL_WABALTMON_10 = 131228 + X_NL_WABALTMON_11 = 131229 + X_NL_WABALTMON_12 = 131230 + + X_NL_NUM_LC_TIME = 131231 // Number of indices in LC_TIME category. + + // LC_COLLATE category: text sorting. + // This information is accessed by the strcoll and strxfrm functions. + // These `nl_langinfo' names are used only internally. + X_NL_COLLATE_NRULES = 196608 + X_NL_COLLATE_RULESETS = 196609 + X_NL_COLLATE_TABLEMB = 196610 + X_NL_COLLATE_WEIGHTMB = 196611 + X_NL_COLLATE_EXTRAMB = 196612 + X_NL_COLLATE_INDIRECTMB = 196613 + X_NL_COLLATE_GAP1 = 196614 + X_NL_COLLATE_GAP2 = 196615 + X_NL_COLLATE_GAP3 = 196616 + X_NL_COLLATE_TABLEWC = 196617 + X_NL_COLLATE_WEIGHTWC = 196618 + X_NL_COLLATE_EXTRAWC = 196619 + X_NL_COLLATE_INDIRECTWC = 196620 + X_NL_COLLATE_SYMB_HASH_SIZEMB = 196621 + X_NL_COLLATE_SYMB_TABLEMB = 196622 + X_NL_COLLATE_SYMB_EXTRAMB = 196623 + X_NL_COLLATE_COLLSEQMB = 196624 + X_NL_COLLATE_COLLSEQWC = 196625 + X_NL_COLLATE_CODESET = 196626 + X_NL_NUM_LC_COLLATE = 196627 + + // LC_CTYPE category: character classification. + // This information is accessed by the functions in . + // These `nl_langinfo' names are used only internally. + X_NL_CTYPE_CLASS = 0 + X_NL_CTYPE_TOUPPER = 1 + X_NL_CTYPE_GAP1 = 2 + X_NL_CTYPE_TOLOWER = 3 + X_NL_CTYPE_GAP2 = 4 + X_NL_CTYPE_CLASS32 = 5 + X_NL_CTYPE_GAP3 = 6 + X_NL_CTYPE_GAP4 = 7 + X_NL_CTYPE_GAP5 = 8 + X_NL_CTYPE_GAP6 = 9 + X_NL_CTYPE_CLASS_NAMES = 10 + X_NL_CTYPE_MAP_NAMES = 11 + X_NL_CTYPE_WIDTH = 12 + X_NL_CTYPE_MB_CUR_MAX = 13 + X_NL_CTYPE_CODESET_NAME = 14 + CODESET = 14 + X_NL_CTYPE_TOUPPER32 = 15 + X_NL_CTYPE_TOLOWER32 = 16 + X_NL_CTYPE_CLASS_OFFSET = 17 + X_NL_CTYPE_MAP_OFFSET = 18 + X_NL_CTYPE_INDIGITS_MB_LEN = 19 + X_NL_CTYPE_INDIGITS0_MB = 20 + X_NL_CTYPE_INDIGITS1_MB = 21 + X_NL_CTYPE_INDIGITS2_MB = 22 + X_NL_CTYPE_INDIGITS3_MB = 23 + X_NL_CTYPE_INDIGITS4_MB = 24 + X_NL_CTYPE_INDIGITS5_MB = 25 + X_NL_CTYPE_INDIGITS6_MB = 26 + X_NL_CTYPE_INDIGITS7_MB = 27 + X_NL_CTYPE_INDIGITS8_MB = 28 + X_NL_CTYPE_INDIGITS9_MB = 29 + X_NL_CTYPE_INDIGITS_WC_LEN = 30 + X_NL_CTYPE_INDIGITS0_WC = 31 + X_NL_CTYPE_INDIGITS1_WC = 32 + X_NL_CTYPE_INDIGITS2_WC = 33 + X_NL_CTYPE_INDIGITS3_WC = 34 + X_NL_CTYPE_INDIGITS4_WC = 35 + X_NL_CTYPE_INDIGITS5_WC = 36 + X_NL_CTYPE_INDIGITS6_WC = 37 + X_NL_CTYPE_INDIGITS7_WC = 38 + X_NL_CTYPE_INDIGITS8_WC = 39 + X_NL_CTYPE_INDIGITS9_WC = 40 + X_NL_CTYPE_OUTDIGIT0_MB = 41 + X_NL_CTYPE_OUTDIGIT1_MB = 42 + X_NL_CTYPE_OUTDIGIT2_MB = 43 + X_NL_CTYPE_OUTDIGIT3_MB = 44 + X_NL_CTYPE_OUTDIGIT4_MB = 45 + X_NL_CTYPE_OUTDIGIT5_MB = 46 + X_NL_CTYPE_OUTDIGIT6_MB = 47 + X_NL_CTYPE_OUTDIGIT7_MB = 48 + X_NL_CTYPE_OUTDIGIT8_MB = 49 + X_NL_CTYPE_OUTDIGIT9_MB = 50 + X_NL_CTYPE_OUTDIGIT0_WC = 51 + X_NL_CTYPE_OUTDIGIT1_WC = 52 + X_NL_CTYPE_OUTDIGIT2_WC = 53 + X_NL_CTYPE_OUTDIGIT3_WC = 54 + X_NL_CTYPE_OUTDIGIT4_WC = 55 + X_NL_CTYPE_OUTDIGIT5_WC = 56 + X_NL_CTYPE_OUTDIGIT6_WC = 57 + X_NL_CTYPE_OUTDIGIT7_WC = 58 + X_NL_CTYPE_OUTDIGIT8_WC = 59 + X_NL_CTYPE_OUTDIGIT9_WC = 60 + X_NL_CTYPE_TRANSLIT_TAB_SIZE = 61 + X_NL_CTYPE_TRANSLIT_FROM_IDX = 62 + X_NL_CTYPE_TRANSLIT_FROM_TBL = 63 + X_NL_CTYPE_TRANSLIT_TO_IDX = 64 + X_NL_CTYPE_TRANSLIT_TO_TBL = 65 + X_NL_CTYPE_TRANSLIT_DEFAULT_MISSING_LEN = 66 + X_NL_CTYPE_TRANSLIT_DEFAULT_MISSING = 67 + X_NL_CTYPE_TRANSLIT_IGNORE_LEN = 68 + X_NL_CTYPE_TRANSLIT_IGNORE = 69 + X_NL_CTYPE_MAP_TO_NONASCII = 70 + X_NL_CTYPE_NONASCII_CASE = 71 + X_NL_CTYPE_EXTRA_MAP_1 = 72 + X_NL_CTYPE_EXTRA_MAP_2 = 73 + X_NL_CTYPE_EXTRA_MAP_3 = 74 + X_NL_CTYPE_EXTRA_MAP_4 = 75 + X_NL_CTYPE_EXTRA_MAP_5 = 76 + X_NL_CTYPE_EXTRA_MAP_6 = 77 + X_NL_CTYPE_EXTRA_MAP_7 = 78 + X_NL_CTYPE_EXTRA_MAP_8 = 79 + X_NL_CTYPE_EXTRA_MAP_9 = 80 + X_NL_CTYPE_EXTRA_MAP_10 = 81 + X_NL_CTYPE_EXTRA_MAP_11 = 82 + X_NL_CTYPE_EXTRA_MAP_12 = 83 + X_NL_CTYPE_EXTRA_MAP_13 = 84 + X_NL_CTYPE_EXTRA_MAP_14 = 85 + X_NL_NUM_LC_CTYPE = 86 + + // LC_MONETARY category: formatting of monetary quantities. + // These items each correspond to a member of `struct lconv', + // defined in . + X__INT_CURR_SYMBOL = 262144 + X__CURRENCY_SYMBOL = 262145 + X__MON_DECIMAL_POINT = 262146 + X__MON_THOUSANDS_SEP = 262147 + X__MON_GROUPING = 262148 + X__POSITIVE_SIGN = 262149 + X__NEGATIVE_SIGN = 262150 + X__INT_FRAC_DIGITS = 262151 + X__FRAC_DIGITS = 262152 + X__P_CS_PRECEDES = 262153 + X__P_SEP_BY_SPACE = 262154 + X__N_CS_PRECEDES = 262155 + X__N_SEP_BY_SPACE = 262156 + X__P_SIGN_POSN = 262157 + X__N_SIGN_POSN = 262158 + X_NL_MONETARY_CRNCYSTR = 262159 + X__INT_P_CS_PRECEDES = 262160 + X__INT_P_SEP_BY_SPACE = 262161 + X__INT_N_CS_PRECEDES = 262162 + X__INT_N_SEP_BY_SPACE = 262163 + X__INT_P_SIGN_POSN = 262164 + X__INT_N_SIGN_POSN = 262165 + X_NL_MONETARY_DUO_INT_CURR_SYMBOL = 262166 + X_NL_MONETARY_DUO_CURRENCY_SYMBOL = 262167 + X_NL_MONETARY_DUO_INT_FRAC_DIGITS = 262168 + X_NL_MONETARY_DUO_FRAC_DIGITS = 262169 + X_NL_MONETARY_DUO_P_CS_PRECEDES = 262170 + X_NL_MONETARY_DUO_P_SEP_BY_SPACE = 262171 + X_NL_MONETARY_DUO_N_CS_PRECEDES = 262172 + X_NL_MONETARY_DUO_N_SEP_BY_SPACE = 262173 + X_NL_MONETARY_DUO_INT_P_CS_PRECEDES = 262174 + X_NL_MONETARY_DUO_INT_P_SEP_BY_SPACE = 262175 + X_NL_MONETARY_DUO_INT_N_CS_PRECEDES = 262176 + X_NL_MONETARY_DUO_INT_N_SEP_BY_SPACE = 262177 + X_NL_MONETARY_DUO_P_SIGN_POSN = 262178 + X_NL_MONETARY_DUO_N_SIGN_POSN = 262179 + X_NL_MONETARY_DUO_INT_P_SIGN_POSN = 262180 + X_NL_MONETARY_DUO_INT_N_SIGN_POSN = 262181 + X_NL_MONETARY_UNO_VALID_FROM = 262182 + X_NL_MONETARY_UNO_VALID_TO = 262183 + X_NL_MONETARY_DUO_VALID_FROM = 262184 + X_NL_MONETARY_DUO_VALID_TO = 262185 + X_NL_MONETARY_CONVERSION_RATE = 262186 + X_NL_MONETARY_DECIMAL_POINT_WC = 262187 + X_NL_MONETARY_THOUSANDS_SEP_WC = 262188 + X_NL_MONETARY_CODESET = 262189 + X_NL_NUM_LC_MONETARY = 262190 + + // LC_NUMERIC category: formatting of numbers. + // These also correspond to members of `struct lconv'; see . + X__DECIMAL_POINT = 65536 + RADIXCHAR = 65536 + X__THOUSANDS_SEP = 65537 + THOUSEP = 65537 + X__GROUPING = 65538 + X_NL_NUMERIC_DECIMAL_POINT_WC = 65539 + X_NL_NUMERIC_THOUSANDS_SEP_WC = 65540 + X_NL_NUMERIC_CODESET = 65541 + X_NL_NUM_LC_NUMERIC = 65542 + + X__YESEXPR = 327680 // Regex matching ``yes'' input. + X__NOEXPR = 327681 // Regex matching ``no'' input. + X__YESSTR = 327682 // Output string for ``yes''. + X__NOSTR = 327683 // Output string for ``no''. + X_NL_MESSAGES_CODESET = 327684 + X_NL_NUM_LC_MESSAGES = 327685 + + X_NL_PAPER_HEIGHT = 458752 + X_NL_PAPER_WIDTH = 458753 + X_NL_PAPER_CODESET = 458754 + X_NL_NUM_LC_PAPER = 458755 + + X_NL_NAME_NAME_FMT = 524288 + X_NL_NAME_NAME_GEN = 524289 + X_NL_NAME_NAME_MR = 524290 + X_NL_NAME_NAME_MRS = 524291 + X_NL_NAME_NAME_MISS = 524292 + X_NL_NAME_NAME_MS = 524293 + X_NL_NAME_CODESET = 524294 + X_NL_NUM_LC_NAME = 524295 + + X_NL_ADDRESS_POSTAL_FMT = 589824 + X_NL_ADDRESS_COUNTRY_NAME = 589825 + X_NL_ADDRESS_COUNTRY_POST = 589826 + X_NL_ADDRESS_COUNTRY_AB2 = 589827 + X_NL_ADDRESS_COUNTRY_AB3 = 589828 + X_NL_ADDRESS_COUNTRY_CAR = 589829 + X_NL_ADDRESS_COUNTRY_NUM = 589830 + X_NL_ADDRESS_COUNTRY_ISBN = 589831 + X_NL_ADDRESS_LANG_NAME = 589832 + X_NL_ADDRESS_LANG_AB = 589833 + X_NL_ADDRESS_LANG_TERM = 589834 + X_NL_ADDRESS_LANG_LIB = 589835 + X_NL_ADDRESS_CODESET = 589836 + X_NL_NUM_LC_ADDRESS = 589837 + + X_NL_TELEPHONE_TEL_INT_FMT = 655360 + X_NL_TELEPHONE_TEL_DOM_FMT = 655361 + X_NL_TELEPHONE_INT_SELECT = 655362 + X_NL_TELEPHONE_INT_PREFIX = 655363 + X_NL_TELEPHONE_CODESET = 655364 + X_NL_NUM_LC_TELEPHONE = 655365 + + X_NL_MEASUREMENT_MEASUREMENT = 720896 + X_NL_MEASUREMENT_CODESET = 720897 + X_NL_NUM_LC_MEASUREMENT = 720898 + + X_NL_IDENTIFICATION_TITLE = 786432 + X_NL_IDENTIFICATION_SOURCE = 786433 + X_NL_IDENTIFICATION_ADDRESS = 786434 + X_NL_IDENTIFICATION_CONTACT = 786435 + X_NL_IDENTIFICATION_EMAIL = 786436 + X_NL_IDENTIFICATION_TEL = 786437 + X_NL_IDENTIFICATION_FAX = 786438 + X_NL_IDENTIFICATION_LANGUAGE = 786439 + X_NL_IDENTIFICATION_TERRITORY = 786440 + X_NL_IDENTIFICATION_AUDIENCE = 786441 + X_NL_IDENTIFICATION_APPLICATION = 786442 + X_NL_IDENTIFICATION_ABBREVIATION = 786443 + X_NL_IDENTIFICATION_REVISION = 786444 + X_NL_IDENTIFICATION_DATE = 786445 + X_NL_IDENTIFICATION_CATEGORY = 786446 + X_NL_IDENTIFICATION_CODESET = 786447 + X_NL_NUM_LC_IDENTIFICATION = 786448 + + // This marks the highest value used. + X_NL_NUM = 786449 +) + +type Ptrdiff_t = int64 /* :3:26 */ + +type Size_t = uint64 /* :9:23 */ + +type Wchar_t = int32 /* :15:24 */ + +type X__int128_t = struct { + Flo int64 + Fhi int64 +} /* :21:43 */ // must match modernc.org/mathutil.Int128 +type X__uint128_t = struct { + Flo uint64 + Fhi uint64 +} /* :22:44 */ // must match modernc.org/mathutil.Int128 + +type X__builtin_va_list = uintptr /* :46:14 */ +type X__float128 = float64 /* :47:21 */ + +// Access to locale-dependent parameters. +// Copyright (C) 1995-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Get the type definition. +// Copyright (C) 1996-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// These are defined by the user (or the compiler) +// to specify the desired environment: +// +// __STRICT_ANSI__ ISO Standard C. +// _ISOC99_SOURCE Extensions to ISO C89 from ISO C99. +// _ISOC11_SOURCE Extensions to ISO C99 from ISO C11. +// _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X. +// __STDC_WANT_LIB_EXT2__ +// Extensions to ISO C99 from TR 27431-2:2010. +// __STDC_WANT_IEC_60559_BFP_EXT__ +// Extensions to ISO C11 from TS 18661-1:2014. +// __STDC_WANT_IEC_60559_FUNCS_EXT__ +// Extensions to ISO C11 from TS 18661-4:2015. +// __STDC_WANT_IEC_60559_TYPES_EXT__ +// Extensions to ISO C11 from TS 18661-3:2015. +// +// _POSIX_SOURCE IEEE Std 1003.1. +// _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2; +// if >=199309L, add IEEE Std 1003.1b-1993; +// if >=199506L, add IEEE Std 1003.1c-1995; +// if >=200112L, all of IEEE 1003.1-2004 +// if >=200809L, all of IEEE 1003.1-2008 +// _XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if +// Single Unix conformance is wanted, to 600 for the +// sixth revision, to 700 for the seventh revision. +// _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions. +// _LARGEFILE_SOURCE Some more functions for correct standard I/O. +// _LARGEFILE64_SOURCE Additional functionality from LFS for large files. +// _FILE_OFFSET_BITS=N Select default filesystem interface. +// _ATFILE_SOURCE Additional *at interfaces. +// _GNU_SOURCE All of the above, plus GNU extensions. +// _DEFAULT_SOURCE The default set of features (taking precedence over +// __STRICT_ANSI__). +// +// _FORTIFY_SOURCE Add security hardening to many library functions. +// Set to 1 or 2; 2 performs stricter checks than 1. +// +// _REENTRANT, _THREAD_SAFE +// Obsolete; equivalent to _POSIX_C_SOURCE=199506L. +// +// The `-ansi' switch to the GNU C compiler, and standards conformance +// options such as `-std=c99', define __STRICT_ANSI__. If none of +// these are defined, or if _DEFAULT_SOURCE is defined, the default is +// to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to +// 200809L, as well as enabling miscellaneous functions from BSD and +// SVID. If more than one of these are defined, they accumulate. For +// example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together +// give you ISO C, 1003.1, and 1003.2, but nothing else. +// +// These are defined by this file and are used by the +// header files to decide what to declare or define: +// +// __GLIBC_USE (F) Define things from feature set F. This is defined +// to 1 or 0; the subsequent macros are either defined +// or undefined, and those tests should be moved to +// __GLIBC_USE. +// __USE_ISOC11 Define ISO C11 things. +// __USE_ISOC99 Define ISO C99 things. +// __USE_ISOC95 Define ISO C90 AMD1 (C95) things. +// __USE_ISOCXX11 Define ISO C++11 things. +// __USE_POSIX Define IEEE Std 1003.1 things. +// __USE_POSIX2 Define IEEE Std 1003.2 things. +// __USE_POSIX199309 Define IEEE Std 1003.1, and .1b things. +// __USE_POSIX199506 Define IEEE Std 1003.1, .1b, .1c and .1i things. +// __USE_XOPEN Define XPG things. +// __USE_XOPEN_EXTENDED Define X/Open Unix things. +// __USE_UNIX98 Define Single Unix V2 things. +// __USE_XOPEN2K Define XPG6 things. +// __USE_XOPEN2KXSI Define XPG6 XSI things. +// __USE_XOPEN2K8 Define XPG7 things. +// __USE_XOPEN2K8XSI Define XPG7 XSI things. +// __USE_LARGEFILE Define correct standard I/O things. +// __USE_LARGEFILE64 Define LFS things with separate names. +// __USE_FILE_OFFSET64 Define 64bit interface as default. +// __USE_MISC Define things from 4.3BSD or System V Unix. +// __USE_ATFILE Define *at interfaces and AT_* constants for them. +// __USE_GNU Define GNU extensions. +// __USE_FORTIFY_LEVEL Additional security measures used, according to level. +// +// The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are +// defined by this file unconditionally. `__GNU_LIBRARY__' is provided +// only for compatibility. All new code should use the other symbols +// to test for features. +// +// All macros listed above as possibly being defined by this file are +// explicitly undefined if they are not explicitly defined. +// Feature-test macros that are not defined by the user or compiler +// but are implied by the other feature-test macros defined (or by the +// lack of any definitions) are defined by the file. +// +// ISO C feature test macros depend on the definition of the macro +// when an affected header is included, not when the first system +// header is included, and so they are handled in +// , which does not have a multiple include +// guard. Feature test macros that can be handled from the first +// system header included are handled here. + +// Undefine everything, so we get a clean slate. + +// Suppress kernel-name space pollution unless user expressedly asks +// for it. + +// Convenience macro to test the version of gcc. +// Use like this: +// #if __GNUC_PREREQ (2,8) +// ... code requiring gcc 2.8 or later ... +// #endif +// Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was +// added in 2.0. + +// Similarly for clang. Features added to GCC after version 4.2 may +// or may not also be available in clang, and clang's definitions of +// __GNUC(_MINOR)__ are fixed at 4 and 2 respectively. Not all such +// features can be queried via __has_extension/__has_feature. + +// Whether to use feature set F. + +// _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for +// _DEFAULT_SOURCE. If _DEFAULT_SOURCE is present we do not +// issue a warning; the expectation is that the source is being +// transitioned to use the new macro. + +// If _GNU_SOURCE was defined by the user, turn on all the other features. + +// If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined, +// define _DEFAULT_SOURCE. + +// This is to enable the ISO C2X extension. + +// This is to enable the ISO C11 extension. + +// This is to enable the ISO C99 extension. + +// This is to enable the ISO C90 Amendment 1:1995 extension. + +// If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE +// is defined, use POSIX.1-2008 (or another version depending on +// _XOPEN_SOURCE). + +// Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be +// defined in all multithreaded code. GNU libc has not required this +// for many years. We now treat them as compatibility synonyms for +// _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with +// comprehensive support for multithreaded code. Using them never +// lowers the selected level of POSIX conformance, only raises it. + +// The function 'gets' existed in C89, but is impossible to use +// safely. It has been removed from ISO C11 and ISO C++14. Note: for +// compatibility with various implementations of , this test +// must consider only the value of __cplusplus when compiling C++. + +// GNU formerly extended the scanf functions with modified format +// specifiers %as, %aS, and %a[...] that allocate a buffer for the +// input using malloc. This extension conflicts with ISO C99, which +// defines %a as a standalone format specifier that reads a floating- +// point number; moreover, POSIX.1-2008 provides the same feature +// using the modifier letter 'm' instead (%ms, %mS, %m[...]). +// +// We now follow C99 unless GNU extensions are active and the compiler +// is specifically in C89 or C++98 mode (strict or not). For +// instance, with GCC, -std=gnu11 will have C99-compliant scanf with +// or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the +// old extension. + +// Get definitions of __STDC_* predefined macros, if the compiler has +// not preincluded this header automatically. +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// This macro indicates that the installed library is the GNU C Library. +// For historic reasons the value now is 6 and this will stay from now +// on. The use of this variable is deprecated. Use __GLIBC__ and +// __GLIBC_MINOR__ now (see below) when you want to test for a specific +// GNU C library version and use the values in to get +// the sonames of the shared libraries. + +// Major and minor version number of the GNU C library package. Use +// these macros to test for features in specific releases. + +// This is here only because every header file already includes this one. +// Copyright (C) 1992-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// We are almost always included from features.h. + +// The GNU libc does not support any K&R compilers or the traditional mode +// of ISO C compilers anymore. Check for some of the combinations not +// anymore supported. + +// Some user header file might have defined this before. + +// All functions, except those with callbacks or those that +// synchronize memory, are leaf functions. + +// GCC can always grok prototypes. For C++ programs we add throw() +// to help it optimize the function calls. But this works only with +// gcc 2.8.x and egcs. For gcc 3.2 and up we even mark C functions +// as non-throwing using a function attribute since programs can use +// the -fexceptions options for C code as well. + +// Compilers that are not clang may object to +// #if defined __clang__ && __has_extension(...) +// even though they do not need to evaluate the right-hand side of the &&. + +// These two macros are not used in glibc anymore. They are kept here +// only because some other projects expect the macros to be defined. + +// For these things, GCC behaves the ANSI way normally, +// and the non-ANSI way under -traditional. + +// This is not a typedef so `const __ptr_t' does the right thing. + +// C++ needs to know that types and declarations are C, not C++. + +// Fortify support. + +// Support for flexible arrays. +// Headers that should use flexible arrays only if they're "real" +// (e.g. only if they won't affect sizeof()) should test +// #if __glibc_c99_flexarr_available. + +// __asm__ ("xyz") is used throughout the headers to rename functions +// at the assembly language level. This is wrapped by the __REDIRECT +// macro, in order to support compilers that can do this some other +// way. When compilers don't support asm-names at all, we have to do +// preprocessor tricks instead (which don't have exactly the right +// semantics, but it's the best we can do). +// +// Example: +// int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid); + +// +// #elif __SOME_OTHER_COMPILER__ +// +// # define __REDIRECT(name, proto, alias) name proto; _Pragma("let " #name " = " #alias) + +// GCC has various useful declarations that can be made with the +// `__attribute__' syntax. All of the ways we use this do fine if +// they are omitted for compilers that don't understand it. + +// At some point during the gcc 2.96 development the `malloc' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// Tell the compiler which arguments to an allocation function +// indicate the size of the allocation. + +// At some point during the gcc 2.96 development the `pure' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// This declaration tells the compiler that the value is constant. + +// At some point during the gcc 3.1 development the `used' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// Since version 3.2, gcc allows marking deprecated functions. + +// Since version 4.5, gcc also allows one to specify the message printed +// when a deprecated function is used. clang claims to be gcc 4.2, but +// may also support this feature. + +// At some point during the gcc 2.8 development the `format_arg' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. +// If several `format_arg' attributes are given for the same function, in +// gcc-3.0 and older, all but the last one are ignored. In newer gccs, +// all designated arguments are considered. + +// At some point during the gcc 2.97 development the `strfmon' format +// attribute for functions was introduced. We don't want to use it +// unconditionally (although this would be possible) since it +// generates warnings. + +// The nonull function attribute allows to mark pointer parameters which +// must not be NULL. + +// If fortification mode, we warn about unused results of certain +// function calls which can lead to problems. + +// Forces a function to be always inlined. +// The Linux kernel defines __always_inline in stddef.h (283d7573), and +// it conflicts with this definition. Therefore undefine it first to +// allow either header to be included first. + +// Associate error messages with the source location of the call site rather +// than with the source location inside the function. + +// GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99 +// inline semantics, unless -fgnu89-inline is used. Using __GNUC_STDC_INLINE__ +// or __GNUC_GNU_INLINE is not a good enough check for gcc because gcc versions +// older than 4.3 may define these macros and still not guarantee GNU inlining +// semantics. +// +// clang++ identifies itself as gcc-4.2, but has support for GNU inlining +// semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and +// __GNUC_GNU_INLINE__ macro definitions. + +// GCC 4.3 and above allow passing all anonymous arguments of an +// __extern_always_inline function to some other vararg function. + +// It is possible to compile containing GCC extensions even if GCC is +// run in pedantic mode if the uses are carefully marked using the +// `__extension__' keyword. But this is not generally available before +// version 2.8. + +// __restrict is known in EGCS 1.2 and above. + +// ISO C99 also allows to declare arrays as non-overlapping. The syntax is +// array_name[restrict] +// GCC 3.1 supports this. + +// Describes a char array whose address can safely be passed as the first +// argument to strncpy and strncat, as the char array is not necessarily +// a NUL-terminated string. + +// Undefine (also defined in libc-symbols.h). +// Copies attributes from the declaration or type referenced by +// the argument. + +// Determine the wordsize from the preprocessor defines. + +// Both x86-64 and x32 use the 64-bit system call interface. +// Properties of long double type. ldbl-96 version. +// Copyright (C) 2016-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// long double is distinct from double, so there is nothing to +// define here. + +// __glibc_macro_warning (MESSAGE) issues warning MESSAGE. This is +// intended for use in preprocessor macros. +// +// Note: MESSAGE must be a _single_ string; concatenation of string +// literals is not supported. + +// Generic selection (ISO C11) is a C-only feature, available in GCC +// since version 4.9. Previous versions do not provide generic +// selection, even though they might set __STDC_VERSION__ to 201112L, +// when in -std=c11 mode. Thus, we must check for !defined __GNUC__ +// when testing __STDC_VERSION__ for generic selection support. +// On the other hand, Clang also defines __GNUC__, so a clang-specific +// check is required to enable the use of generic selection. + +// If we don't have __REDIRECT, prototypes will be missing if +// __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64]. + +// Decide whether we can define 'extern inline' functions in headers. + +// This is here only because every header file already includes this one. +// Get the definitions of all the appropriate `__stub_FUNCTION' symbols. +// contains `#define __stub_FUNCTION' when FUNCTION is a stub +// that will always return failure (and set errno to ENOSYS). +// This file is automatically generated. +// This file selects the right generated file of `__stub_FUNCTION' macros +// based on the architecture being compiled for. + +// This file is automatically generated. +// It defines a symbol `__stub_FUNCTION' for each function +// in the C library which is a stub, meaning it will fail +// every time called, usually setting errno to ENOSYS. + +// The default message set used by the gencat program. + +// Value for FLAG parameter of `catgets' to say we want XPG4 compliance. + +// Message catalog descriptor type. +type Nl_catd = uintptr /* nl_types.h:33:14 */ + +// Type used by `nl_langinfo'. +type Nl_item = int32 /* nl_types.h:36:13 */ + +// POSIX.1-2008 extended locale interface (see locale.h). +// Definition of locale_t. +// Copyright (C) 2017-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Definition of struct __locale_struct and __locale_t. +// Copyright (C) 1997-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// Contributed by Ulrich Drepper , 1997. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// POSIX.1-2008: the locale_t type, representing a locale context +// (implementation-namespace version). This type should be treated +// as opaque by applications; some details are exposed for the sake of +// efficiency in e.g. ctype functions. + +type X__locale_struct = struct { + F__locales [13]uintptr + F__ctype_b uintptr + F__ctype_tolower uintptr + F__ctype_toupper uintptr + F__names [13]uintptr +} /* __locale_t.h:28:1 */ + +type X__locale_t = uintptr /* __locale_t.h:42:32 */ + +type Locale_t = X__locale_t /* locale_t.h:24:20 */ + +var _ int8 /* gen.c:2:13: */ diff --git a/vendor/modernc.org/libc/libc.go b/vendor/modernc.org/libc/libc.go index 1cd63db78..8f0acef7c 100644 --- a/vendor/modernc.org/libc/libc.go +++ b/vendor/modernc.org/libc/libc.go @@ -2,12 +2,11 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -//go.generate echo package libc > ccgo.go -//go:generate go run generate.go -//go:generate go fmt ./... +//go:build !linux || mips64le + +///go.generate echo package libc > ccgo.go +///go:generate go fmt -l -s -w ./... -// Package libc provides run time support for ccgo generated programs and -// implements selected parts of the C standard library. package libc // import "modernc.org/libc" //TODO use O_RDONLY etc. from fcntl header @@ -40,6 +39,10 @@ import ( "modernc.org/mathutil" ) +const ( + ENOENT = errno.ENOENT +) + type ( // RawMem64 represents the biggest uint64 array the runtime can handle. RawMem64 [unsafe.Sizeof(RawMem{}) / unsafe.Sizeof(uint64(0))]uint64 @@ -49,6 +52,8 @@ var ( allocMu sync.Mutex environInitialized bool isWindows bool + ungetcMu sync.Mutex + ungetc = map[uintptr]byte{} ) // Keep these outside of the var block otherwise go generate will miss them. @@ -76,11 +81,17 @@ func EnvironP() uintptr { } func X___errno_location(t *TLS) uintptr { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } return X__errno_location(t) } // int * __errno_location(void); func X__errno_location(t *TLS) uintptr { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } return t.errnop } @@ -126,7 +137,12 @@ func Start(main func(*TLS, int32, uintptr) int32) { exit(t, rc, audit) } -func Xexit(t *TLS, status int32) { exit(t, status, false) } +func Xexit(t *TLS, status int32) { + if __ccgo_strace { + trc("t=%v status=%v, (%v:)", t, status, origin(2)) + } + exit(t, status, false) +} func exit(t *TLS, status int32, audit bool) { if len(Covered) != 0 { @@ -139,8 +155,8 @@ func exit(t *TLS, status int32, audit bool) { CoverCReport(buf) buf.Flush() } - for _, v := range atExit { - v() + for i := len(atExit) - 1; i >= 0; i-- { + atExit[i]() } if audit { t.Close() @@ -186,16 +202,25 @@ func SetEnviron(t *TLS, env []string) { // void setbuf(FILE *stream, char *buf); func Xsetbuf(t *TLS, stream, buf uintptr) { + if __ccgo_strace { + trc("t=%v buf=%v, (%v:)", t, buf, origin(2)) + } //TODO panic(todo("")) } // size_t confstr(int name, char *buf, size_t len); func Xconfstr(t *TLS, name int32, buf uintptr, len types.Size_t) types.Size_t { + if __ccgo_strace { + trc("t=%v name=%v buf=%v len=%v, (%v:)", t, name, buf, len, origin(2)) + } panic(todo("")) } // int puts(const char *s); func Xputs(t *TLS, s uintptr) int32 { + if __ccgo_strace { + trc("t=%v s=%v, (%v:)", t, s, origin(2)) + } n, err := fmt.Printf("%s\n", GoString(s)) if err != nil { return stdio.EOF @@ -211,6 +236,9 @@ var ( // long int random(void); func Xrandom(t *TLS) long { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } randomMu.Lock() r := randomGen.Int63n(math.MaxInt32 + 1) randomMu.Unlock() @@ -228,73 +256,318 @@ func write(b []byte) (int, error) { return len(b), nil } -func X__builtin_bzero(t *TLS, s uintptr, n types.Size_t) { Xbzero(t, s, n) } -func X__builtin_abort(t *TLS) { Xabort(t) } -func X__builtin_abs(t *TLS, j int32) int32 { return Xabs(t, j) } -func X__builtin_clz(t *TLS, n uint32) int32 { return int32(mbits.LeadingZeros32(n)) } -func X__builtin_clzl(t *TLS, n ulong) int32 { return int32(mbits.LeadingZeros64(uint64(n))) } -func X__builtin_clzll(t *TLS, n uint64) int32 { return int32(mbits.LeadingZeros64(n)) } -func X__builtin_constant_p_impl() { panic(todo("internal error: should never be called")) } -func X__builtin_copysign(t *TLS, x, y float64) float64 { return Xcopysign(t, x, y) } -func X__builtin_copysignf(t *TLS, x, y float32) float32 { return Xcopysignf(t, x, y) } -func X__builtin_copysignl(t *TLS, x, y float64) float64 { return Xcopysign(t, x, y) } -func X__builtin_exit(t *TLS, status int32) { Xexit(t, status) } -func X__builtin_expect(t *TLS, exp, c long) long { return exp } -func X__builtin_fabs(t *TLS, x float64) float64 { return Xfabs(t, x) } -func X__builtin_fabsf(t *TLS, x float32) float32 { return Xfabsf(t, x) } -func X__builtin_fabsl(t *TLS, x float64) float64 { return Xfabsl(t, x) } -func X__builtin_free(t *TLS, ptr uintptr) { Xfree(t, ptr) } -func X__builtin_getentropy(t *TLS, buf uintptr, n types.Size_t) int32 { return Xgetentropy(t, buf, n) } -func X__builtin_huge_val(t *TLS) float64 { return math.Inf(1) } -func X__builtin_huge_valf(t *TLS) float32 { return float32(math.Inf(1)) } -func X__builtin_inf(t *TLS) float64 { return math.Inf(1) } -func X__builtin_inff(t *TLS) float32 { return float32(math.Inf(1)) } -func X__builtin_infl(t *TLS) float64 { return math.Inf(1) } -func X__builtin_malloc(t *TLS, size types.Size_t) uintptr { return Xmalloc(t, size) } -func X__builtin_memcmp(t *TLS, s1, s2 uintptr, n types.Size_t) int32 { return Xmemcmp(t, s1, s2, n) } -func X__builtin_nan(t *TLS, s uintptr) float64 { return math.NaN() } -func X__builtin_nanf(t *TLS, s uintptr) float32 { return float32(math.NaN()) } -func X__builtin_nanl(t *TLS, s uintptr) float64 { return math.NaN() } -func X__builtin_prefetch(t *TLS, addr, args uintptr) {} -func X__builtin_printf(t *TLS, s, args uintptr) int32 { return Xprintf(t, s, args) } -func X__builtin_strchr(t *TLS, s uintptr, c int32) uintptr { return Xstrchr(t, s, c) } -func X__builtin_strcmp(t *TLS, s1, s2 uintptr) int32 { return Xstrcmp(t, s1, s2) } -func X__builtin_strcpy(t *TLS, dest, src uintptr) uintptr { return Xstrcpy(t, dest, src) } -func X__builtin_strlen(t *TLS, s uintptr) types.Size_t { return Xstrlen(t, s) } -func X__builtin_trap(t *TLS) { Xabort(t) } -func X__isnan(t *TLS, arg float64) int32 { return X__builtin_isnan(t, arg) } -func X__isnanf(t *TLS, arg float32) int32 { return Xisnanf(t, arg) } -func X__isnanl(t *TLS, arg float64) int32 { return Xisnanl(t, arg) } - -func Xvfprintf(t *TLS, stream, format, ap uintptr) int32 { return Xfprintf(t, stream, format, ap) } +func X__builtin_bzero(t *TLS, s uintptr, n types.Size_t) { + if __ccgo_strace { + trc("t=%v s=%v n=%v, (%v:)", t, s, n, origin(2)) + } + Xbzero(t, s, n) +} + +func X__builtin_abort(t *TLS) { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } + Xabort(t) +} + +func X__builtin_abs(t *TLS, j int32) int32 { + if __ccgo_strace { + trc("t=%v j=%v, (%v:)", t, j, origin(2)) + } + return Xabs(t, j) +} + +func X__builtin_clz(t *TLS, n uint32) int32 { + if __ccgo_strace { + trc("t=%v n=%v, (%v:)", t, n, origin(2)) + } + return int32(mbits.LeadingZeros32(n)) +} + +func X__builtin_clzl(t *TLS, n ulong) int32 { + if __ccgo_strace { + trc("t=%v n=%v, (%v:)", t, n, origin(2)) + } + return int32(mbits.LeadingZeros64(uint64(n))) +} + +func X__builtin_clzll(t *TLS, n uint64) int32 { + if __ccgo_strace { + trc("t=%v n=%v, (%v:)", t, n, origin(2)) + } + return int32(mbits.LeadingZeros64(n)) +} +func X__builtin_constant_p_impl() { panic(todo("internal error: should never be called")) } + +func X__builtin_copysign(t *TLS, x, y float64) float64 { + if __ccgo_strace { + trc("t=%v y=%v, (%v:)", t, y, origin(2)) + } + return Xcopysign(t, x, y) +} + +func X__builtin_copysignf(t *TLS, x, y float32) float32 { + if __ccgo_strace { + trc("t=%v y=%v, (%v:)", t, y, origin(2)) + } + return Xcopysignf(t, x, y) +} + +func X__builtin_copysignl(t *TLS, x, y float64) float64 { + if __ccgo_strace { + trc("t=%v y=%v, (%v:)", t, y, origin(2)) + } + return Xcopysign(t, x, y) +} + +func X__builtin_exit(t *TLS, status int32) { + if __ccgo_strace { + trc("t=%v status=%v, (%v:)", t, status, origin(2)) + } + Xexit(t, status) +} + +func X__builtin_expect(t *TLS, exp, c long) long { + if __ccgo_strace { + trc("t=%v c=%v, (%v:)", t, c, origin(2)) + } + return exp +} + +func X__builtin_fabs(t *TLS, x float64) float64 { + if __ccgo_strace { + trc("t=%v x=%v, (%v:)", t, x, origin(2)) + } + return Xfabs(t, x) +} + +func X__builtin_fabsf(t *TLS, x float32) float32 { + if __ccgo_strace { + trc("t=%v x=%v, (%v:)", t, x, origin(2)) + } + return Xfabsf(t, x) +} + +func X__builtin_fabsl(t *TLS, x float64) float64 { + if __ccgo_strace { + trc("t=%v x=%v, (%v:)", t, x, origin(2)) + } + return Xfabsl(t, x) +} + +func X__builtin_free(t *TLS, ptr uintptr) { + if __ccgo_strace { + trc("t=%v ptr=%v, (%v:)", t, ptr, origin(2)) + } + Xfree(t, ptr) +} + +func X__builtin_getentropy(t *TLS, buf uintptr, n types.Size_t) int32 { + if __ccgo_strace { + trc("t=%v buf=%v n=%v, (%v:)", t, buf, n, origin(2)) + } + return Xgetentropy(t, buf, n) +} + +func X__builtin_huge_val(t *TLS) float64 { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } + return math.Inf(1) +} + +func X__builtin_huge_valf(t *TLS) float32 { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } + return float32(math.Inf(1)) +} + +func X__builtin_inf(t *TLS) float64 { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } + return math.Inf(1) +} + +func X__builtin_inff(t *TLS) float32 { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } + return float32(math.Inf(1)) +} + +func X__builtin_infl(t *TLS) float64 { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } + return math.Inf(1) +} + +func X__builtin_malloc(t *TLS, size types.Size_t) uintptr { + if __ccgo_strace { + trc("t=%v size=%v, (%v:)", t, size, origin(2)) + } + return Xmalloc(t, size) +} + +func X__builtin_memcmp(t *TLS, s1, s2 uintptr, n types.Size_t) int32 { + if __ccgo_strace { + trc("t=%v s2=%v n=%v, (%v:)", t, s2, n, origin(2)) + } + return Xmemcmp(t, s1, s2, n) +} + +func X__builtin_nan(t *TLS, s uintptr) float64 { + if __ccgo_strace { + trc("t=%v s=%v, (%v:)", t, s, origin(2)) + } + return math.NaN() +} + +func X__builtin_nanf(t *TLS, s uintptr) float32 { + if __ccgo_strace { + trc("t=%v s=%v, (%v:)", t, s, origin(2)) + } + return float32(math.NaN()) +} + +func X__builtin_nanl(t *TLS, s uintptr) float64 { + if __ccgo_strace { + trc("t=%v s=%v, (%v:)", t, s, origin(2)) + } + return math.NaN() +} + +func X__builtin_prefetch(t *TLS, addr, args uintptr) { + if __ccgo_strace { + trc("t=%v args=%v, (%v:)", t, args, origin(2)) + } +} + +func X__builtin_printf(t *TLS, s, args uintptr) int32 { + if __ccgo_strace { + trc("t=%v args=%v, (%v:)", t, args, origin(2)) + } + return Xprintf(t, s, args) +} + +func X__builtin_strchr(t *TLS, s uintptr, c int32) uintptr { + if __ccgo_strace { + trc("t=%v s=%v c=%v, (%v:)", t, s, c, origin(2)) + } + return Xstrchr(t, s, c) +} + +func X__builtin_strcmp(t *TLS, s1, s2 uintptr) int32 { + if __ccgo_strace { + trc("t=%v s2=%v, (%v:)", t, s2, origin(2)) + } + return Xstrcmp(t, s1, s2) +} + +func X__builtin_strcpy(t *TLS, dest, src uintptr) uintptr { + if __ccgo_strace { + trc("t=%v src=%v, (%v:)", t, src, origin(2)) + } + return Xstrcpy(t, dest, src) +} + +func X__builtin_strlen(t *TLS, s uintptr) types.Size_t { + if __ccgo_strace { + trc("t=%v s=%v, (%v:)", t, s, origin(2)) + } + return Xstrlen(t, s) +} + +func X__builtin_trap(t *TLS) { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } + Xabort(t) +} + +func X__isnan(t *TLS, arg float64) int32 { + if __ccgo_strace { + trc("t=%v arg=%v, (%v:)", t, arg, origin(2)) + } + return X__builtin_isnan(t, arg) +} + +func X__isnanf(t *TLS, arg float32) int32 { + if __ccgo_strace { + trc("t=%v arg=%v, (%v:)", t, arg, origin(2)) + } + return Xisnanf(t, arg) +} + +func X__isnanl(t *TLS, arg float64) int32 { + if __ccgo_strace { + trc("t=%v arg=%v, (%v:)", t, arg, origin(2)) + } + return Xisnanl(t, arg) +} + +func Xvfprintf(t *TLS, stream, format, ap uintptr) int32 { + if __ccgo_strace { + trc("t=%v ap=%v, (%v:)", t, ap, origin(2)) + } + return Xfprintf(t, stream, format, ap) +} // int __builtin_popcount (unsigned int x) func X__builtin_popcount(t *TLS, x uint32) int32 { + if __ccgo_strace { + trc("t=%v x=%v, (%v:)", t, x, origin(2)) + } return int32(mbits.OnesCount32(x)) } // int __builtin_popcountl (unsigned long x) func X__builtin_popcountl(t *TLS, x ulong) int32 { + if __ccgo_strace { + trc("t=%v x=%v, (%v:)", t, x, origin(2)) + } + return int32(mbits.OnesCount64(uint64(x))) +} + +// int __builtin_popcountll (unsigned long long) +func X__builtin_popcountll(t *TLS, x uint64) int32 { + if __ccgo_strace { + trc("t=%v x=%v, (%v:)", t, x, origin(2)) + } return int32(mbits.OnesCount64(uint64(x))) } // char * __builtin___strcpy_chk (char *dest, const char *src, size_t os); func X__builtin___strcpy_chk(t *TLS, dest, src uintptr, os types.Size_t) uintptr { + if __ccgo_strace { + trc("t=%v src=%v os=%v, (%v:)", t, src, os, origin(2)) + } return Xstrcpy(t, dest, src) } func X__builtin_mmap(t *TLS, addr uintptr, length types.Size_t, prot, flags, fd int32, offset types.Off_t) uintptr { + if __ccgo_strace { + trc("t=%v addr=%v length=%v fd=%v offset=%v, (%v:)", t, addr, length, fd, offset, origin(2)) + } return Xmmap(t, addr, length, prot, flags, fd, offset) } // uint16_t __builtin_bswap16 (uint32_t x) func X__builtin_bswap16(t *TLS, x uint16) uint16 { + if __ccgo_strace { + trc("t=%v x=%v, (%v:)", t, x, origin(2)) + } return x<<8 | x>>8 } // uint32_t __builtin_bswap32 (uint32_t x) func X__builtin_bswap32(t *TLS, x uint32) uint32 { + if __ccgo_strace { + trc("t=%v x=%v, (%v:)", t, x, origin(2)) + } return x<<24 | x&0xff00<<8 | x&0xff0000>>8 | @@ -303,6 +576,9 @@ func X__builtin_bswap32(t *TLS, x uint32) uint32 { // uint64_t __builtin_bswap64 (uint64_t x) func X__builtin_bswap64(t *TLS, x uint64) uint64 { + if __ccgo_strace { + trc("t=%v x=%v, (%v:)", t, x, origin(2)) + } return x<<56 | x&0xff00<<40 | x&0xff0000<<24 | @@ -315,6 +591,9 @@ func X__builtin_bswap64(t *TLS, x uint64) uint64 { // bool __builtin_add_overflow (type1 a, type2 b, type3 *res) func X__builtin_add_overflowInt64(t *TLS, a, b int64, res uintptr) int32 { + if __ccgo_strace { + trc("t=%v b=%v res=%v, (%v:)", t, b, res, origin(2)) + } r, ovf := mathutil.AddOverflowInt64(a, b) *(*int64)(unsafe.Pointer(res)) = r return Bool32(ovf) @@ -322,6 +601,9 @@ func X__builtin_add_overflowInt64(t *TLS, a, b int64, res uintptr) int32 { // bool __builtin_add_overflow (type1 a, type2 b, type3 *res) func X__builtin_add_overflowUint32(t *TLS, a, b uint32, res uintptr) int32 { + if __ccgo_strace { + trc("t=%v b=%v res=%v, (%v:)", t, b, res, origin(2)) + } r := a + b *(*uint32)(unsafe.Pointer(res)) = r return Bool32(r < a) @@ -329,6 +611,9 @@ func X__builtin_add_overflowUint32(t *TLS, a, b uint32, res uintptr) int32 { // bool __builtin_add_overflow (type1 a, type2 b, type3 *res) func X__builtin_add_overflowUint64(t *TLS, a, b uint64, res uintptr) int32 { + if __ccgo_strace { + trc("t=%v b=%v res=%v, (%v:)", t, b, res, origin(2)) + } r := a + b *(*uint64)(unsafe.Pointer(res)) = r return Bool32(r < a) @@ -336,6 +621,9 @@ func X__builtin_add_overflowUint64(t *TLS, a, b uint64, res uintptr) int32 { // bool __builtin_sub_overflow (type1 a, type2 b, type3 *res) func X__builtin_sub_overflowInt64(t *TLS, a, b int64, res uintptr) int32 { + if __ccgo_strace { + trc("t=%v b=%v res=%v, (%v:)", t, b, res, origin(2)) + } r, ovf := mathutil.SubOverflowInt64(a, b) *(*int64)(unsafe.Pointer(res)) = r return Bool32(ovf) @@ -343,6 +631,9 @@ func X__builtin_sub_overflowInt64(t *TLS, a, b int64, res uintptr) int32 { // bool __builtin_mul_overflow (type1 a, type2 b, type3 *res) func X__builtin_mul_overflowInt64(t *TLS, a, b int64, res uintptr) int32 { + if __ccgo_strace { + trc("t=%v b=%v res=%v, (%v:)", t, b, res, origin(2)) + } r, ovf := mathutil.MulOverflowInt64(a, b) *(*int64)(unsafe.Pointer(res)) = r return Bool32(ovf) @@ -350,6 +641,9 @@ func X__builtin_mul_overflowInt64(t *TLS, a, b int64, res uintptr) int32 { // bool __builtin_mul_overflow (type1 a, type2 b, type3 *res) func X__builtin_mul_overflowUint64(t *TLS, a, b uint64, res uintptr) int32 { + if __ccgo_strace { + trc("t=%v b=%v res=%v, (%v:)", t, b, res, origin(2)) + } hi, lo := mbits.Mul64(a, b) *(*uint64)(unsafe.Pointer(res)) = lo return Bool32(hi != 0) @@ -357,31 +651,52 @@ func X__builtin_mul_overflowUint64(t *TLS, a, b uint64, res uintptr) int32 { // bool __builtin_mul_overflow (type1 a, type2 b, type3 *res) func X__builtin_mul_overflowUint128(t *TLS, a, b Uint128, res uintptr) int32 { + if __ccgo_strace { + trc("t=%v b=%v res=%v, (%v:)", t, b, res, origin(2)) + } r, ovf := a.mulOvf(b) *(*Uint128)(unsafe.Pointer(res)) = r return Bool32(ovf) } func X__builtin_unreachable(t *TLS) { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } fmt.Fprintf(os.Stderr, "unrechable\n") os.Stderr.Sync() Xexit(t, 1) } func X__builtin_snprintf(t *TLS, str uintptr, size types.Size_t, format, args uintptr) int32 { + if __ccgo_strace { + trc("t=%v str=%v size=%v args=%v, (%v:)", t, str, size, args, origin(2)) + } return Xsnprintf(t, str, size, format, args) } func X__builtin_sprintf(t *TLS, str, format, args uintptr) (r int32) { + if __ccgo_strace { + trc("t=%v args=%v, (%v:)", t, args, origin(2)) + defer func() { trc("-> %v", r) }() + } return Xsprintf(t, str, format, args) } func X__builtin_memcpy(t *TLS, dest, src uintptr, n types.Size_t) (r uintptr) { + if __ccgo_strace { + trc("t=%v src=%v n=%v, (%v:)", t, src, n, origin(2)) + defer func() { trc("-> %v", r) }() + } return Xmemcpy(t, dest, src, n) } // void * __builtin___memcpy_chk (void *dest, const void *src, size_t n, size_t os); func X__builtin___memcpy_chk(t *TLS, dest, src uintptr, n, os types.Size_t) (r uintptr) { + if __ccgo_strace { + trc("t=%v src=%v os=%v, (%v:)", t, src, os, origin(2)) + defer func() { trc("-> %v", r) }() + } if os != ^types.Size_t(0) && n < os { Xabort(t) } @@ -390,11 +705,17 @@ func X__builtin___memcpy_chk(t *TLS, dest, src uintptr, n, os types.Size_t) (r u } func X__builtin_memset(t *TLS, s uintptr, c int32, n types.Size_t) uintptr { + if __ccgo_strace { + trc("t=%v s=%v c=%v n=%v, (%v:)", t, s, c, n, origin(2)) + } return Xmemset(t, s, c, n) } // void * __builtin___memset_chk (void *s, int c, size_t n, size_t os); func X__builtin___memset_chk(t *TLS, s uintptr, c int32, n, os types.Size_t) uintptr { + if __ccgo_strace { + trc("t=%v s=%v c=%v os=%v, (%v:)", t, s, c, os, origin(2)) + } if os < n { Xabort(t) } @@ -404,26 +725,33 @@ func X__builtin___memset_chk(t *TLS, s uintptr, c int32, n, os types.Size_t) uin // size_t __builtin_object_size (const void * ptr, int type) func X__builtin_object_size(t *TLS, p uintptr, typ int32) types.Size_t { - return ^types.Size_t(0) //TODO frontend magic + if __ccgo_strace { + trc("t=%v p=%v typ=%v, (%v:)", t, p, typ, origin(2)) + } + switch typ { + case 0, 1: + return ^types.Size_t(0) + default: + return 0 + } } var atomicLoadStore16 sync.Mutex -func AtomicLoadNUint16(ptr uintptr, memorder int32) uint16 { - atomicLoadStore16.Lock() - r := *(*uint16)(unsafe.Pointer(ptr)) - atomicLoadStore16.Unlock() - return r +func AtomicStoreNUint8(ptr uintptr, val uint8, memorder int32) { + a_store_8(ptr, val) } func AtomicStoreNUint16(ptr uintptr, val uint16, memorder int32) { - atomicLoadStore16.Lock() - *(*uint16)(unsafe.Pointer(ptr)) = val - atomicLoadStore16.Unlock() + a_store_16(ptr, val) } // int sprintf(char *str, const char *format, ...); func Xsprintf(t *TLS, str, format, args uintptr) (r int32) { + if __ccgo_strace { + trc("t=%v args=%v, (%v:)", t, args, origin(2)) + defer func() { trc("-> %v", r) }() + } b := printf(format, args) r = int32(len(b)) copy((*RawMem)(unsafe.Pointer(str))[:r:r], b) @@ -433,11 +761,18 @@ func Xsprintf(t *TLS, str, format, args uintptr) (r int32) { // int __builtin___sprintf_chk (char *s, int flag, size_t os, const char *fmt, ...); func X__builtin___sprintf_chk(t *TLS, s uintptr, flag int32, os types.Size_t, format, args uintptr) (r int32) { + if __ccgo_strace { + trc("t=%v s=%v flag=%v os=%v args=%v, (%v:)", t, s, flag, os, args, origin(2)) + defer func() { trc("-> %v", r) }() + } return Xsprintf(t, s, format, args) } // void qsort(void *base, size_t nmemb, size_t size, int (*compar)(const void *, const void *)); func Xqsort(t *TLS, base uintptr, nmemb, size types.Size_t, compar uintptr) { + if __ccgo_strace { + trc("t=%v base=%v size=%v compar=%v, (%v:)", t, base, size, compar, origin(2)) + } sort.Sort(&sorter{ len: int(nmemb), base: base, @@ -451,6 +786,9 @@ func Xqsort(t *TLS, base uintptr, nmemb, size types.Size_t, compar uintptr) { // void __assert_fail(const char * assertion, const char * file, unsigned int line, const char * function); func X__assert_fail(t *TLS, assertion, file uintptr, line uint32, function uintptr) { + if __ccgo_strace { + trc("t=%v file=%v line=%v function=%v, (%v:)", t, file, line, function, origin(2)) + } fmt.Fprintf(os.Stderr, "assertion failure: %s:%d.%s: %s\n", GoString(file), line, GoString(function), GoString(assertion)) if memgrind { fmt.Fprintf(os.Stderr, "%s\n", debug.Stack()) @@ -460,46 +798,84 @@ func X__assert_fail(t *TLS, assertion, file uintptr, line uint32, function uintp } // int vprintf(const char *format, va_list ap); -func Xvprintf(t *TLS, s, ap uintptr) int32 { return Xprintf(t, s, ap) } + +func Xvprintf(t *TLS, s, ap uintptr) int32 { + if __ccgo_strace { + trc("t=%v ap=%v, (%v:)", t, ap, origin(2)) + } + return Xprintf(t, s, ap) +} // int vsprintf(char *str, const char *format, va_list ap); func Xvsprintf(t *TLS, str, format, va uintptr) int32 { + if __ccgo_strace { + trc("t=%v va=%v, (%v:)", t, va, origin(2)) + } return Xsprintf(t, str, format, va) } // int vsnprintf(char *str, size_t size, const char *format, va_list ap); func Xvsnprintf(t *TLS, str uintptr, size types.Size_t, format, va uintptr) int32 { + if __ccgo_strace { + trc("t=%v str=%v size=%v va=%v, (%v:)", t, str, size, va, origin(2)) + } return Xsnprintf(t, str, size, format, va) } +func X__builtin_vsnprintf(t *TLS, str uintptr, size types.Size_t, format, va uintptr) int32 { + if __ccgo_strace { + trc("t=%v str=%v size=%v va=%v, (%v:)", t, str, size, va, origin(2)) + } + return Xvsnprintf(t, str, size, format, va) +} + // int obstack_vprintf (struct obstack *obstack, const char *template, va_list ap) func Xobstack_vprintf(t *TLS, obstack, template, va uintptr) int32 { + if __ccgo_strace { + trc("t=%v va=%v, (%v:)", t, va, origin(2)) + } panic(todo("")) } // extern void _obstack_newchunk(struct obstack *, int); func X_obstack_newchunk(t *TLS, obstack uintptr, length int32) int32 { + if __ccgo_strace { + trc("t=%v obstack=%v length=%v, (%v:)", t, obstack, length, origin(2)) + } panic(todo("")) } // int _obstack_begin (struct obstack *h, _OBSTACK_SIZE_T size, _OBSTACK_SIZE_T alignment, void *(*chunkfun) (size_t), void (*freefun) (void *)) func X_obstack_begin(t *TLS, obstack uintptr, size, alignment int32, chunkfun, freefun uintptr) int32 { + if __ccgo_strace { + trc("t=%v obstack=%v alignment=%v freefun=%v, (%v:)", t, obstack, alignment, freefun, origin(2)) + } panic(todo("")) } // void obstack_free (struct obstack *h, void *obj) func Xobstack_free(t *TLS, obstack, obj uintptr) { + if __ccgo_strace { + trc("t=%v obj=%v, (%v:)", t, obj, origin(2)) + } panic(todo("")) } // unsigned int sleep(unsigned int seconds); func Xsleep(t *TLS, seconds uint32) uint32 { + if __ccgo_strace { + trc("t=%v seconds=%v, (%v:)", t, seconds, origin(2)) + } gotime.Sleep(gotime.Second * gotime.Duration(seconds)) return 0 } // size_t strcspn(const char *s, const char *reject); func Xstrcspn(t *TLS, s, reject uintptr) (r types.Size_t) { + if __ccgo_strace { + trc("t=%v reject=%v, (%v:)", t, reject, origin(2)) + defer func() { trc("-> %v", r) }() + } bits := newBits(256) for { c := *(*byte)(unsafe.Pointer(reject)) @@ -523,12 +899,19 @@ func Xstrcspn(t *TLS, s, reject uintptr) (r types.Size_t) { // int printf(const char *format, ...); func Xprintf(t *TLS, format, args uintptr) int32 { + if __ccgo_strace { + trc("t=%v args=%v, (%v:)", t, args, origin(2)) + } n, _ := write(printf(format, args)) return int32(n) } // int snprintf(char *str, size_t size, const char *format, ...); func Xsnprintf(t *TLS, str uintptr, size types.Size_t, format, args uintptr) (r int32) { + if __ccgo_strace { + trc("t=%v str=%v size=%v args=%v, (%v:)", t, str, size, args, origin(2)) + defer func() { trc("-> %v", r) }() + } if format == 0 { return 0 } @@ -548,87 +931,510 @@ func Xsnprintf(t *TLS, str uintptr, size types.Size_t, format, args uintptr) (r return r } -// int __builtin___snprintf_chk(char * str, size_t maxlen, int flag, size_t os, const char * format, ...); -func X__builtin___snprintf_chk(t *TLS, str uintptr, maxlen types.Size_t, flag int32, os types.Size_t, format, args uintptr) (r int32) { - if os != ^types.Size_t(0) && maxlen > os { - Xabort(t) +// int __builtin___snprintf_chk(char * str, size_t maxlen, int flag, size_t os, const char * format, ...); +func X__builtin___snprintf_chk(t *TLS, str uintptr, maxlen types.Size_t, flag int32, os types.Size_t, format, args uintptr) (r int32) { + if __ccgo_strace { + trc("t=%v str=%v maxlen=%v flag=%v os=%v args=%v, (%v:)", t, str, maxlen, flag, os, args, origin(2)) + defer func() { trc("-> %v", r) }() + } + if os != ^types.Size_t(0) && maxlen > os { + Xabort(t) + } + + return Xsnprintf(t, str, maxlen, format, args) +} + +// int __builtin___vsnprintf_chk (char *s, size_t maxlen, int flag, size_t os, const char *fmt, va_list ap); +func X__builtin___vsnprintf_chk(t *TLS, str uintptr, maxlen types.Size_t, flag int32, os types.Size_t, format, args uintptr) (r int32) { + if __ccgo_strace { + trc("t=%v str=%v maxlen=%v flag=%v os=%v args=%v, (%v:)", t, str, maxlen, flag, os, args, origin(2)) + defer func() { trc("-> %v", r) }() + } + if os != ^types.Size_t(0) && maxlen > os { + Xabort(t) + } + + return Xsnprintf(t, str, maxlen, format, args) +} + +// int abs(int j); +func Xabs(t *TLS, j int32) int32 { + if __ccgo_strace { + trc("t=%v j=%v, (%v:)", t, j, origin(2)) + } + if j >= 0 { + return j + } + + return -j +} + +// long abs(long j); +func Xlabs(t *TLS, j long) long { + if __ccgo_strace { + trc("t=%v j=%v, (%v:)", t, j, origin(2)) + } + if j >= 0 { + return j + } + + return -j +} + +func Xllabs(tls *TLS, a int64) int64 { + if __ccgo_strace { + trc("tls=%v a=%v, (%v:)", tls, a, origin(2)) + } + if a >= int64(0) { + return a + } + + return -a +} + +func X__builtin_isnan(t *TLS, x float64) int32 { + if __ccgo_strace { + trc("t=%v x=%v, (%v:)", t, x, origin(2)) + } + return Bool32(math.IsNaN(x)) +} + +func X__builtin_llabs(tls *TLS, a int64) int64 { + if __ccgo_strace { + trc("tls=%v a=%v, (%v:)", tls, a, origin(2)) + } + return Xllabs(tls, a) +} + +func Xacos(t *TLS, x float64) float64 { + if __ccgo_strace { + trc("t=%v x=%v, (%v:)", t, x, origin(2)) + } + return math.Acos(x) +} + +func Xacosf(t *TLS, x float32) float32 { + if __ccgo_strace { + trc("t=%v x=%v, (%v:)", t, x, origin(2)) + } + return float32(math.Acos(float64(x))) +} + +func Xacosh(t *TLS, x float64) float64 { + if __ccgo_strace { + trc("t=%v x=%v, (%v:)", t, x, origin(2)) + } + return math.Acosh(x) +} + +func Xacoshf(t *TLS, x float32) float32 { + if __ccgo_strace { + trc("t=%v x=%v, (%v:)", t, x, origin(2)) + } + return float32(math.Acosh(float64(x))) +} + +func Xasin(t *TLS, x float64) float64 { + if __ccgo_strace { + trc("t=%v x=%v, (%v:)", t, x, origin(2)) + } + return math.Asin(x) +} + +func Xasinf(t *TLS, x float32) float32 { + if __ccgo_strace { + trc("t=%v x=%v, (%v:)", t, x, origin(2)) + } + return float32(math.Asin(float64(x))) +} + +func Xasinh(t *TLS, x float64) float64 { + if __ccgo_strace { + trc("t=%v x=%v, (%v:)", t, x, origin(2)) + } + return math.Asinh(x) +} + +func Xasinhf(t *TLS, x float32) float32 { + if __ccgo_strace { + trc("t=%v x=%v, (%v:)", t, x, origin(2)) + } + return float32(math.Asinh(float64(x))) +} + +func Xatan(t *TLS, x float64) float64 { + if __ccgo_strace { + trc("t=%v x=%v, (%v:)", t, x, origin(2)) + } + return math.Atan(x) +} + +func Xatanf(t *TLS, x float32) float32 { + if __ccgo_strace { + trc("t=%v x=%v, (%v:)", t, x, origin(2)) + } + return float32(math.Atan(float64(x))) +} + +func Xatan2(t *TLS, x, y float64) float64 { + if __ccgo_strace { + trc("t=%v y=%v, (%v:)", t, y, origin(2)) + } + return math.Atan2(x, y) +} + +func Xatan2f(t *TLS, x, y float32) float32 { + if __ccgo_strace { + trc("t=%v y=%v, (%v:)", t, y, origin(2)) + } + return float32(math.Atan2(float64(x), float64(y))) +} + +func Xatanh(t *TLS, x float64) float64 { + if __ccgo_strace { + trc("t=%v x=%v, (%v:)", t, x, origin(2)) + } + return math.Atanh(x) +} + +func Xatanhf(t *TLS, x float32) float32 { + if __ccgo_strace { + trc("t=%v x=%v, (%v:)", t, x, origin(2)) + } + return float32(math.Atanh(float64(x))) +} + +func Xceil(t *TLS, x float64) float64 { + if __ccgo_strace { + trc("t=%v x=%v, (%v:)", t, x, origin(2)) + } + return math.Ceil(x) +} + +func Xceilf(t *TLS, x float32) float32 { + if __ccgo_strace { + trc("t=%v x=%v, (%v:)", t, x, origin(2)) + } + return float32(math.Ceil(float64(x))) +} + +func Xcopysign(t *TLS, x, y float64) float64 { + if __ccgo_strace { + trc("t=%v y=%v, (%v:)", t, y, origin(2)) + } + return math.Copysign(x, y) +} + +func Xcopysignf(t *TLS, x, y float32) float32 { + if __ccgo_strace { + trc("t=%v y=%v, (%v:)", t, y, origin(2)) + } + return float32(math.Copysign(float64(x), float64(y))) +} + +func Xcos(t *TLS, x float64) float64 { + if __ccgo_strace { + trc("t=%v x=%v, (%v:)", t, x, origin(2)) + } + return math.Cos(x) +} + +func Xcosf(t *TLS, x float32) float32 { + if __ccgo_strace { + trc("t=%v x=%v, (%v:)", t, x, origin(2)) + } + return float32(math.Cos(float64(x))) +} + +func Xcosh(t *TLS, x float64) float64 { + if __ccgo_strace { + trc("t=%v x=%v, (%v:)", t, x, origin(2)) + } + return math.Cosh(x) +} + +func Xcoshf(t *TLS, x float32) float32 { + if __ccgo_strace { + trc("t=%v x=%v, (%v:)", t, x, origin(2)) + } + return float32(math.Cosh(float64(x))) +} + +func Xexp(t *TLS, x float64) float64 { + if __ccgo_strace { + trc("t=%v x=%v, (%v:)", t, x, origin(2)) + } + return math.Exp(x) +} + +func Xexpf(t *TLS, x float32) float32 { + if __ccgo_strace { + trc("t=%v x=%v, (%v:)", t, x, origin(2)) + } + return float32(math.Exp(float64(x))) +} + +func Xfabs(t *TLS, x float64) float64 { + if __ccgo_strace { + trc("t=%v x=%v, (%v:)", t, x, origin(2)) + } + return math.Abs(x) +} + +func Xfabsf(t *TLS, x float32) float32 { + if __ccgo_strace { + trc("t=%v x=%v, (%v:)", t, x, origin(2)) + } + return float32(math.Abs(float64(x))) +} + +func Xfloor(t *TLS, x float64) float64 { + if __ccgo_strace { + trc("t=%v x=%v, (%v:)", t, x, origin(2)) + } + return math.Floor(x) +} + +func Xfloorf(t *TLS, x float32) float32 { + if __ccgo_strace { + trc("t=%v x=%v, (%v:)", t, x, origin(2)) + } + return float32(math.Floor(float64(x))) +} + +func Xfmod(t *TLS, x, y float64) float64 { + if __ccgo_strace { + trc("t=%v y=%v, (%v:)", t, y, origin(2)) + } + return math.Mod(x, y) +} + +func Xfmodf(t *TLS, x, y float32) float32 { + if __ccgo_strace { + trc("t=%v y=%v, (%v:)", t, y, origin(2)) + } + return float32(math.Mod(float64(x), float64(y))) +} + +func X__builtin_hypot(t *TLS, x float64, y float64) (r float64) { + return Xhypot(t, x, y) +} + +func Xhypot(t *TLS, x, y float64) float64 { + if __ccgo_strace { + trc("t=%v y=%v, (%v:)", t, y, origin(2)) + } + return math.Hypot(x, y) +} + +func Xhypotf(t *TLS, x, y float32) float32 { + if __ccgo_strace { + trc("t=%v y=%v, (%v:)", t, y, origin(2)) + } + return float32(math.Hypot(float64(x), float64(y))) +} + +func Xisnan(t *TLS, x float64) int32 { + if __ccgo_strace { + trc("t=%v x=%v, (%v:)", t, x, origin(2)) + } + return X__builtin_isnan(t, x) +} + +func Xisnanf(t *TLS, x float32) int32 { + if __ccgo_strace { + trc("t=%v x=%v, (%v:)", t, x, origin(2)) + } + return Bool32(math.IsNaN(float64(x))) +} + +func Xisnanl(t *TLS, x float64) int32 { + if __ccgo_strace { + trc("t=%v x=%v, (%v:)", t, x, origin(2)) + } + return Bool32(math.IsNaN(x)) +} // ccgo has to handle long double as double as Go does not support long double. + +func Xldexp(t *TLS, x float64, exp int32) float64 { + if __ccgo_strace { + trc("t=%v x=%v exp=%v, (%v:)", t, x, exp, origin(2)) + } + return math.Ldexp(x, int(exp)) +} + +func Xlog(t *TLS, x float64) float64 { + if __ccgo_strace { + trc("t=%v x=%v, (%v:)", t, x, origin(2)) + } + return math.Log(x) +} + +func Xlogf(t *TLS, x float32) float32 { + if __ccgo_strace { + trc("t=%v x=%v, (%v:)", t, x, origin(2)) + } + return float32(math.Log(float64(x))) +} + +func Xlog10(t *TLS, x float64) float64 { + if __ccgo_strace { + trc("t=%v x=%v, (%v:)", t, x, origin(2)) + } + return math.Log10(x) +} + +func Xlog10f(t *TLS, x float32) float32 { + if __ccgo_strace { + trc("t=%v x=%v, (%v:)", t, x, origin(2)) + } + return float32(math.Log10(float64(x))) +} + +func X__builtin_log2(t *TLS, x float64) float64 { + return Xlog2(t, x) +} + +func Xlog2(t *TLS, x float64) float64 { + if __ccgo_strace { + trc("t=%v x=%v, (%v:)", t, x, origin(2)) + } + return math.Log2(x) +} + +func Xlog2f(t *TLS, x float32) float32 { + if __ccgo_strace { + trc("t=%v x=%v, (%v:)", t, x, origin(2)) + } + return float32(math.Log2(float64(x))) +} + +func Xround(t *TLS, x float64) float64 { + if __ccgo_strace { + trc("t=%v x=%v, (%v:)", t, x, origin(2)) + } + return math.Round(x) +} + +func Xroundf(t *TLS, x float32) float32 { + if __ccgo_strace { + trc("t=%v x=%v, (%v:)", t, x, origin(2)) + } + return float32(math.Round(float64(x))) +} + +func X__builtin_round(t *TLS, x float64) float64 { + if __ccgo_strace { + trc("t=%v x=%v, (%v:)", t, x, origin(2)) + } + return math.Round(x) +} + +func X__builtin_roundf(t *TLS, x float32) float32 { + if __ccgo_strace { + trc("t=%v x=%v, (%v:)", t, x, origin(2)) + } + return float32(math.Round(float64(x))) +} + +func Xsin(t *TLS, x float64) float64 { + if __ccgo_strace { + trc("t=%v x=%v, (%v:)", t, x, origin(2)) + } + return math.Sin(x) +} + +func Xsinf(t *TLS, x float32) float32 { + if __ccgo_strace { + trc("t=%v x=%v, (%v:)", t, x, origin(2)) + } + return float32(math.Sin(float64(x))) +} + +func Xsinh(t *TLS, x float64) float64 { + if __ccgo_strace { + trc("t=%v x=%v, (%v:)", t, x, origin(2)) } + return math.Sinh(x) +} - return Xsnprintf(t, str, maxlen, format, args) +func Xsinhf(t *TLS, x float32) float32 { + if __ccgo_strace { + trc("t=%v x=%v, (%v:)", t, x, origin(2)) + } + return float32(math.Sinh(float64(x))) } -// int __builtin___vsnprintf_chk (char *s, size_t maxlen, int flag, size_t os, const char *fmt, va_list ap); -func X__builtin___vsnprintf_chk(t *TLS, str uintptr, maxlen types.Size_t, flag int32, os types.Size_t, format, args uintptr) (r int32) { - if os != ^types.Size_t(0) && maxlen > os { - Xabort(t) +func Xsqrt(t *TLS, x float64) float64 { + if __ccgo_strace { + trc("t=%v x=%v, (%v:)", t, x, origin(2)) } + return math.Sqrt(x) +} - return Xsnprintf(t, str, maxlen, format, args) +func Xsqrtf(t *TLS, x float32) float32 { + if __ccgo_strace { + trc("t=%v x=%v, (%v:)", t, x, origin(2)) + } + return float32(math.Sqrt(float64(x))) } -// int abs(int j); -func Xabs(t *TLS, j int32) int32 { - if j >= 0 { - return j +func Xtan(t *TLS, x float64) float64 { + if __ccgo_strace { + trc("t=%v x=%v, (%v:)", t, x, origin(2)) } + return math.Tan(x) +} - return -j +func Xtanf(t *TLS, x float32) float32 { + if __ccgo_strace { + trc("t=%v x=%v, (%v:)", t, x, origin(2)) + } + return float32(math.Tan(float64(x))) } -func Xllabs(tls *TLS, a int64) int64 { - if a >= int64(0) { - return a +func Xtanh(t *TLS, x float64) float64 { + if __ccgo_strace { + trc("t=%v x=%v, (%v:)", t, x, origin(2)) } + return math.Tanh(x) +} - return -a +func Xtanhf(t *TLS, x float32) float32 { + if __ccgo_strace { + trc("t=%v x=%v, (%v:)", t, x, origin(2)) + } + return float32(math.Tanh(float64(x))) +} + +func Xtrunc(t *TLS, x float64) float64 { + if __ccgo_strace { + trc("t=%v x=%v, (%v:)", t, x, origin(2)) + } + return math.Trunc(x) } -func X__builtin_isnan(t *TLS, x float64) int32 { return Bool32(math.IsNaN(x)) } -func X__builtin_llabs(tls *TLS, a int64) int64 { return Xllabs(tls, a) } -func Xacos(t *TLS, x float64) float64 { return math.Acos(x) } -func Xacosh(t *TLS, x float64) float64 { return math.Acosh(x) } -func Xasin(t *TLS, x float64) float64 { return math.Asin(x) } -func Xasinh(t *TLS, x float64) float64 { return math.Asinh(x) } -func Xatan(t *TLS, x float64) float64 { return math.Atan(x) } -func Xatan2(t *TLS, x, y float64) float64 { return math.Atan2(x, y) } -func Xatanh(t *TLS, x float64) float64 { return math.Atanh(x) } -func Xceil(t *TLS, x float64) float64 { return math.Ceil(x) } -func Xceilf(t *TLS, x float32) float32 { return float32(math.Ceil(float64(x))) } -func Xcopysign(t *TLS, x, y float64) float64 { return math.Copysign(x, y) } -func Xcopysignf(t *TLS, x, y float32) float32 { return float32(math.Copysign(float64(x), float64(y))) } -func Xcos(t *TLS, x float64) float64 { return math.Cos(x) } -func Xcosf(t *TLS, x float32) float32 { return float32(math.Cos(float64(x))) } -func Xcosh(t *TLS, x float64) float64 { return math.Cosh(x) } -func Xexp(t *TLS, x float64) float64 { return math.Exp(x) } -func Xfabs(t *TLS, x float64) float64 { return math.Abs(x) } -func Xfabsf(t *TLS, x float32) float32 { return float32(math.Abs(float64(x))) } -func Xfloor(t *TLS, x float64) float64 { return math.Floor(x) } -func Xfmod(t *TLS, x, y float64) float64 { return math.Mod(x, y) } -func Xhypot(t *TLS, x, y float64) float64 { return math.Hypot(x, y) } -func Xisnan(t *TLS, x float64) int32 { return X__builtin_isnan(t, x) } -func Xisnanf(t *TLS, x float32) int32 { return Bool32(math.IsNaN(float64(x))) } -func Xisnanl(t *TLS, x float64) int32 { return Bool32(math.IsNaN(x)) } // ccgo has to handle long double as double as Go does not support long double. -func Xldexp(t *TLS, x float64, exp int32) float64 { return math.Ldexp(x, int(exp)) } -func Xlog(t *TLS, x float64) float64 { return math.Log(x) } -func Xlog10(t *TLS, x float64) float64 { return math.Log10(x) } -func Xround(t *TLS, x float64) float64 { return math.Round(x) } -func Xsin(t *TLS, x float64) float64 { return math.Sin(x) } -func Xsinf(t *TLS, x float32) float32 { return float32(math.Sin(float64(x))) } -func Xsinh(t *TLS, x float64) float64 { return math.Sinh(x) } -func Xsqrt(t *TLS, x float64) float64 { return math.Sqrt(x) } -func Xtan(t *TLS, x float64) float64 { return math.Tan(x) } -func Xtanh(t *TLS, x float64) float64 { return math.Tanh(x) } -func Xtrunc(t *TLS, x float64) float64 { return math.Trunc(x) } +func Xtruncf(t *TLS, x float32) float32 { + if __ccgo_strace { + trc("t=%v x=%v, (%v:)", t, x, origin(2)) + } + return float32(math.Trunc(float64(x))) +} var nextRand = uint64(1) // int rand(void); func Xrand(t *TLS) int32 { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } nextRand = nextRand*1103515245 + 12345 return int32(uint32(nextRand / (math.MaxUint32 + 1) % math.MaxInt32)) } func Xpow(t *TLS, x, y float64) float64 { + if __ccgo_strace { + trc("t=%v y=%v, (%v:)", t, y, origin(2)) + } r := math.Pow(x, y) if x > 0 && r == 1 && y >= -1.0000000000000000715e-18 && y < -1e-30 { r = 0.9999999999999999 @@ -636,20 +1442,55 @@ func Xpow(t *TLS, x, y float64) float64 { return r } +func Xpowf(t *TLS, x, y float32) float32 { + if __ccgo_strace { + trc("t=%v y=%v, (%v:)", t, y, origin(2)) + } + return float32(math.Pow(float64(x), float64(y))) +} + func Xfrexp(t *TLS, x float64, exp uintptr) float64 { + if __ccgo_strace { + trc("t=%v x=%v exp=%v, (%v:)", t, x, exp, origin(2)) + } f, e := math.Frexp(x) *(*int32)(unsafe.Pointer(exp)) = int32(e) return f } +func Xfrexpf(t *TLS, x float32, exp uintptr) float32 { + if __ccgo_strace { + trc("t=%v x=%v exp=%v, (%v:)", t, x, exp, origin(2)) + } + f, e := math.Frexp(float64(x)) + *(*int32)(unsafe.Pointer(exp)) = int32(e) + return float32(f) +} + func Xmodf(t *TLS, x float64, iptr uintptr) float64 { + if __ccgo_strace { + trc("t=%v x=%v iptr=%v, (%v:)", t, x, iptr, origin(2)) + } i, f := math.Modf(x) *(*float64)(unsafe.Pointer(iptr)) = i return f } +func Xmodff(t *TLS, x float32, iptr uintptr) float32 { + if __ccgo_strace { + trc("t=%v x=%v iptr=%v, (%v:)", t, x, iptr, origin(2)) + } + i, f := math.Modf(float64(x)) + *(*float32)(unsafe.Pointer(iptr)) = float32(i) + return float32(f) +} + // char *strncpy(char *dest, const char *src, size_t n) func Xstrncpy(t *TLS, dest, src uintptr, n types.Size_t) (r uintptr) { + if __ccgo_strace { + trc("t=%v src=%v n=%v, (%v:)", t, src, n, origin(2)) + defer func() { trc("-> %v", r) }() + } r = dest for c := *(*int8)(unsafe.Pointer(src)); c != 0 && n > 0; n-- { *(*int8)(unsafe.Pointer(dest)) = c @@ -666,6 +1507,10 @@ func Xstrncpy(t *TLS, dest, src uintptr, n types.Size_t) (r uintptr) { // char * __builtin___strncpy_chk (char *dest, const char *src, size_t n, size_t os); func X__builtin___strncpy_chk(t *TLS, dest, src uintptr, n, os types.Size_t) (r uintptr) { + if __ccgo_strace { + trc("t=%v src=%v os=%v, (%v:)", t, src, os, origin(2)) + defer func() { trc("-> %v", r) }() + } if n != ^types.Size_t(0) && os < n { Xabort(t) } @@ -675,6 +1520,9 @@ func X__builtin___strncpy_chk(t *TLS, dest, src uintptr, n, os types.Size_t) (r // int strcmp(const char *s1, const char *s2) func Xstrcmp(t *TLS, s1, s2 uintptr) int32 { + if __ccgo_strace { + trc("t=%v s2=%v, (%v:)", t, s2, origin(2)) + } for { ch1 := *(*byte)(unsafe.Pointer(s1)) s1++ @@ -686,20 +1534,12 @@ func Xstrcmp(t *TLS, s1, s2 uintptr) int32 { } } -// size_t strlen(const char *s) -func Xstrlen(t *TLS, s uintptr) (r types.Size_t) { - if s == 0 { - return 0 - } - - for ; *(*int8)(unsafe.Pointer(s)) != 0; s++ { - r++ - } - return r -} - // char *strcat(char *dest, const char *src) func Xstrcat(t *TLS, dest, src uintptr) (r uintptr) { + if __ccgo_strace { + trc("t=%v src=%v, (%v:)", t, src, origin(2)) + defer func() { trc("-> %v", r) }() + } r = dest for *(*int8)(unsafe.Pointer(dest)) != 0 { dest++ @@ -717,11 +1557,18 @@ func Xstrcat(t *TLS, dest, src uintptr) (r uintptr) { // char * __builtin___strcat_chk (char *dest, const char *src, size_t os); func X__builtin___strcat_chk(t *TLS, dest, src uintptr, os types.Size_t) (r uintptr) { + if __ccgo_strace { + trc("t=%v src=%v os=%v, (%v:)", t, src, os, origin(2)) + defer func() { trc("-> %v", r) }() + } return Xstrcat(t, dest, src) } // int strncmp(const char *s1, const char *s2, size_t n) func Xstrncmp(t *TLS, s1, s2 uintptr, n types.Size_t) int32 { + if __ccgo_strace { + trc("t=%v s2=%v n=%v, (%v:)", t, s2, n, origin(2)) + } var ch1, ch2 byte for ; n != 0; n-- { ch1 = *(*byte)(unsafe.Pointer(s1)) @@ -741,6 +1588,10 @@ func Xstrncmp(t *TLS, s1, s2 uintptr, n types.Size_t) int32 { // char *strcpy(char *dest, const char *src) func Xstrcpy(t *TLS, dest, src uintptr) (r uintptr) { + if __ccgo_strace { + trc("t=%v src=%v, (%v:)", t, src, origin(2)) + defer func() { trc("-> %v", r) }() + } r = dest // src0 := src for ; ; dest++ { @@ -755,6 +1606,9 @@ func Xstrcpy(t *TLS, dest, src uintptr) (r uintptr) { // char *strchr(const char *s, int c) func Xstrchr(t *TLS, s uintptr, c int32) uintptr { + if __ccgo_strace { + trc("t=%v s=%v c=%v, (%v:)", t, s, c, origin(2)) + } for { ch2 := *(*byte)(unsafe.Pointer(s)) if ch2 == byte(c) { @@ -771,6 +1625,10 @@ func Xstrchr(t *TLS, s uintptr, c int32) uintptr { // char *strrchr(const char *s, int c) func Xstrrchr(t *TLS, s uintptr, c int32) (r uintptr) { + if __ccgo_strace { + trc("t=%v s=%v c=%v, (%v:)", t, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } for { ch2 := *(*byte)(unsafe.Pointer(s)) if ch2 == 0 { @@ -785,40 +1643,99 @@ func Xstrrchr(t *TLS, s uintptr, c int32) (r uintptr) { } // void *memset(void *s, int c, size_t n) -func Xmemset(t *TLS, s uintptr, c int32, n types.Size_t) uintptr { - if n != 0 { - c := byte(c & 0xff) - - // This will make sure that on platforms where they are not equally aligned we - // clear out the first few bytes until allignment - bytesBeforeAllignment := s % unsafe.Alignof(uint64(0)) - if bytesBeforeAllignment > uintptr(n) { - bytesBeforeAllignment = uintptr(n) - } - b := (*RawMem)(unsafe.Pointer(s))[:bytesBeforeAllignment:bytesBeforeAllignment] - n -= types.Size_t(bytesBeforeAllignment) - for i := range b { - b[i] = c - } - if n >= 8 { - i64 := uint64(c) + uint64(c)<<8 + uint64(c)<<16 + uint64(c)<<24 + uint64(c)<<32 + uint64(c)<<40 + uint64(c)<<48 + uint64(c)<<56 - b8 := (*RawMem64)(unsafe.Pointer(s + bytesBeforeAllignment))[: n/8 : n/8] - for i := range b8 { - b8[i] = i64 - } - } - if n%8 != 0 { - b = (*RawMem)(unsafe.Pointer(s + bytesBeforeAllignment + uintptr(n-n%8)))[: n%8 : n%8] - for i := range b { - b[i] = c - } +func Xmemset(t *TLS, dest uintptr, c int32, n types.Size_t) uintptr { + if __ccgo_strace { + trc("t=%v s=%v c=%v n=%v, (%v:)", t, dest, c, n, origin(2)) + } + var c8 uint8 + var c32 uint32 + var c64 uint64 + var k types.Size_t + var s uintptr + + s = dest + /* Fill head and tail with minimal branching. Each + * conditional ensures that all the subsequently used + * offsets are well-defined and in the dest region. */ + if n == 0 { + return dest + } + c8 = uint8(c) + *(*uint8)(unsafe.Pointer(s)) = c8 + *(*uint8)(unsafe.Pointer(s + uintptr(n-1))) = c8 + if n <= types.Size_t(2) { + return dest + } + *(*uint8)(unsafe.Pointer(s + 1)) = c8 + *(*uint8)(unsafe.Pointer(s + 2)) = c8 + *(*uint8)(unsafe.Pointer(s + uintptr(n-2))) = c8 + *(*uint8)(unsafe.Pointer(s + uintptr(n-3))) = c8 + if n <= types.Size_t(6) { + return dest + } + *(*uint8)(unsafe.Pointer(s + 3)) = c8 + *(*uint8)(unsafe.Pointer(s + uintptr(n-4))) = c8 + if n <= types.Size_t(8) { + return dest + } + /* Advance pointer to align it at a 4-byte boundary, + * and truncate n to a multiple of 4. The previous code + * already took care of any head/tail that get cut off + * by the alignment. */ + k = -types.Size_t(s) & types.Size_t(3) + s += uintptr(k) + n -= k + n &= types.Size_t(-Int32FromInt32(4)) + c32 = uint32(0x01010101) * uint32(c8) + /* In preparation to copy 32 bytes at a time, aligned on + * an 8-byte bounary, fill head/tail up to 28 bytes each. + * As in the initial byte-based head/tail fill, each + * conditional below ensures that the subsequent offsets + * are valid (e.g. !(n<=24) implies n>=28). */ + *(*uint32)(unsafe.Pointer(s + uintptr(0))) = c32 + *(*uint32)(unsafe.Pointer(s + uintptr(n-4))) = c32 + if n <= types.Size_t(8) { + return dest + } + c64 = uint64(c32) | (uint64(c32) << 32) + *(*uint64)(unsafe.Pointer(s + uintptr(4))) = c64 + *(*uint64)(unsafe.Pointer(s + uintptr(n-12))) = c64 + if n <= types.Size_t(24) { + return dest + } + *(*uint64)(unsafe.Pointer(s + uintptr(12))) = c64 + *(*uint64)(unsafe.Pointer(s + uintptr(20))) = c64 + *(*uint64)(unsafe.Pointer(s + uintptr(n-28))) = c64 + *(*uint64)(unsafe.Pointer(s + uintptr(n-20))) = c64 + /* Align to a multiple of 8 so we can fill 64 bits at a time, + * and avoid writing the same bytes twice as much as is + * practical without introducing additional branching. */ + k = types.Size_t(24) + types.Size_t(s)&types.Size_t(4) + s += uintptr(k) + n -= k + /* If this loop is reached, 28 tail bytes have already been + * filled, so any remainder when n drops below 32 can be + * safely ignored. */ + for { + if !(n >= types.Size_t(32)) { + break } + *(*uint64)(unsafe.Pointer(s + uintptr(0))) = c64 + *(*uint64)(unsafe.Pointer(s + uintptr(8))) = c64 + *(*uint64)(unsafe.Pointer(s + uintptr(16))) = c64 + *(*uint64)(unsafe.Pointer(s + uintptr(24))) = c64 + n -= types.Size_t(32) + s += uintptr(32) } - return s + return dest } // void *memcpy(void *dest, const void *src, size_t n); func Xmemcpy(t *TLS, dest, src uintptr, n types.Size_t) (r uintptr) { + if __ccgo_strace { + trc("t=%v src=%v n=%v, (%v:)", t, src, n, origin(2)) + defer func() { trc("-> %v", r) }() + } if n != 0 { copy((*RawMem)(unsafe.Pointer(dest))[:n:n], (*RawMem)(unsafe.Pointer(src))[:n:n]) } @@ -827,6 +1744,9 @@ func Xmemcpy(t *TLS, dest, src uintptr, n types.Size_t) (r uintptr) { // int memcmp(const void *s1, const void *s2, size_t n); func Xmemcmp(t *TLS, s1, s2 uintptr, n types.Size_t) int32 { + if __ccgo_strace { + trc("t=%v s2=%v n=%v, (%v:)", t, s2, n, origin(2)) + } for ; n != 0; n-- { c1 := *(*byte)(unsafe.Pointer(s1)) s1++ @@ -845,6 +1765,9 @@ func Xmemcmp(t *TLS, s1, s2 uintptr, n types.Size_t) int32 { // void *memchr(const void *s, int c, size_t n); func Xmemchr(t *TLS, s uintptr, c int32, n types.Size_t) uintptr { + if __ccgo_strace { + trc("t=%v s=%v c=%v n=%v, (%v:)", t, s, c, n, origin(2)) + } for ; n != 0; n-- { if *(*byte)(unsafe.Pointer(s)) == byte(c) { return s @@ -857,6 +1780,9 @@ func Xmemchr(t *TLS, s uintptr, c int32, n types.Size_t) uintptr { // void *memmove(void *dest, const void *src, size_t n); func Xmemmove(t *TLS, dest, src uintptr, n types.Size_t) uintptr { + if __ccgo_strace { + trc("t=%v src=%v n=%v, (%v:)", t, src, n, origin(2)) + } if n == 0 { return dest } @@ -867,6 +1793,9 @@ func Xmemmove(t *TLS, dest, src uintptr, n types.Size_t) uintptr { // void * __builtin___memmove_chk (void *dest, const void *src, size_t n, size_t os); func X__builtin___memmove_chk(t *TLS, dest, src uintptr, n, os types.Size_t) uintptr { + if __ccgo_strace { + trc("t=%v src=%v os=%v, (%v:)", t, src, os, origin(2)) + } if os != ^types.Size_t(0) && os < n { Xabort(t) } @@ -876,6 +1805,9 @@ func X__builtin___memmove_chk(t *TLS, dest, src uintptr, n, os types.Size_t) uin // char *getenv(const char *name); func Xgetenv(t *TLS, name uintptr) uintptr { + if __ccgo_strace { + trc("t=%v name=%v, (%v:)", t, name, origin(2)) + } return getenv(Environ(), GoString(name)) } @@ -900,6 +1832,9 @@ func getenv(p uintptr, nm string) uintptr { // char *strstr(const char *haystack, const char *needle); func Xstrstr(t *TLS, haystack, needle uintptr) uintptr { + if __ccgo_strace { + trc("t=%v needle=%v, (%v:)", t, needle, origin(2)) + } hs := GoString(haystack) nd := GoString(needle) if i := strings.Index(hs, nd); i >= 0 { @@ -912,11 +1847,18 @@ func Xstrstr(t *TLS, haystack, needle uintptr) uintptr { // int putc(int c, FILE *stream); func Xputc(t *TLS, c int32, fp uintptr) int32 { + if __ccgo_strace { + trc("t=%v c=%v fp=%v, (%v:)", t, c, fp, origin(2)) + } return Xfputc(t, c, fp) } // int atoi(const char *nptr); func Xatoi(t *TLS, nptr uintptr) int32 { + if __ccgo_strace { + trc("t=%v nptr=%v, (%v:)", t, nptr, origin(2)) + } + _, neg, _, n, _ := strToUint64(t, nptr, 10) switch { case neg: @@ -928,6 +1870,9 @@ func Xatoi(t *TLS, nptr uintptr) int32 { // double atof(const char *nptr); func Xatof(t *TLS, nptr uintptr) float64 { + if __ccgo_strace { + trc("t=%v nptr=%v, (%v:)", t, nptr, origin(2)) + } n, _ := strToFloatt64(t, nptr, 64) // if dmesgs { // dmesg("%v: %q: %v", origin(1), GoString(nptr), n) @@ -937,6 +1882,9 @@ func Xatof(t *TLS, nptr uintptr) float64 { // int tolower(int c); func Xtolower(t *TLS, c int32) int32 { + if __ccgo_strace { + trc("t=%v c=%v, (%v:)", t, c, origin(2)) + } if c >= 'A' && c <= 'Z' { return c + ('a' - 'A') } @@ -946,6 +1894,9 @@ func Xtolower(t *TLS, c int32) int32 { // int toupper(int c); func Xtoupper(t *TLS, c int32) int32 { + if __ccgo_strace { + trc("t=%v c=%v, (%v:)", t, c, origin(2)) + } if c >= 'a' && c <= 'z' { return c - ('a' - 'A') } @@ -955,11 +1906,17 @@ func Xtoupper(t *TLS, c int32) int32 { // int isatty(int fd); func Xisatty(t *TLS, fd int32) int32 { + if __ccgo_strace { + trc("t=%v fd=%v, (%v:)", t, fd, origin(2)) + } return Bool32(isatty.IsTerminal(uintptr(fd))) } // long atol(const char *nptr); func Xatol(t *TLS, nptr uintptr) long { + if __ccgo_strace { + trc("t=%v nptr=%v, (%v:)", t, nptr, origin(2)) + } _, neg, _, n, _ := strToUint64(t, nptr, 10) switch { case neg: @@ -969,13 +1926,27 @@ func Xatol(t *TLS, nptr uintptr) long { } } -// time_t mktime(struct tm *tm); -func Xmktime(t *TLS, ptm uintptr) time.Time_t { - loc := gotime.Local +func getLocalLocation() (loc *gotime.Location) { + loc = gotime.Local if r := getenv(Environ(), "TZ"); r != 0 { - zone, off := parseZone(GoString(r)) - loc = gotime.FixedZone(zone, off) + zname := GoString(r) + zone, off := parseZone(zname) + loc = gotime.FixedZone(zone, -off) + loc2, _ := gotime.LoadLocation(zname) + if loc2 != nil { + loc = loc2 + } + } + return loc + +} + +// time_t mktime(struct tm *tm); +func Xmktime(t *TLS, ptm uintptr) (r time.Time_t) { + if __ccgo_strace { + trc("t=%v ptm=%v, (%v:)", t, ptm, origin(2)) } + loc := getLocalLocation() tt := gotime.Date( int((*time.Tm)(unsafe.Pointer(ptm)).Ftm_year+1900), gotime.Month((*time.Tm)(unsafe.Pointer(ptm)).Ftm_mon+1), @@ -988,11 +1959,15 @@ func Xmktime(t *TLS, ptm uintptr) time.Time_t { ) (*time.Tm)(unsafe.Pointer(ptm)).Ftm_wday = int32(tt.Weekday()) (*time.Tm)(unsafe.Pointer(ptm)).Ftm_yday = int32(tt.YearDay() - 1) - return time.Time_t(tt.Unix()) + r = time.Time_t(tt.Unix()) + return r } // char *strpbrk(const char *s, const char *accept); func Xstrpbrk(t *TLS, s, accept uintptr) uintptr { + if __ccgo_strace { + trc("t=%v accept=%v, (%v:)", t, accept, origin(2)) + } bits := newBits(256) for { b := *(*byte)(unsafe.Pointer(accept)) @@ -1019,6 +1994,9 @@ func Xstrpbrk(t *TLS, s, accept uintptr) uintptr { // int strcasecmp(const char *s1, const char *s2); func Xstrcasecmp(t *TLS, s1, s2 uintptr) int32 { + if __ccgo_strace { + trc("t=%v s2=%v, (%v:)", t, s2, origin(2)) + } for { ch1 := *(*byte)(unsafe.Pointer(s1)) if ch1 >= 'a' && ch1 <= 'z' { @@ -1038,11 +2016,17 @@ func Xstrcasecmp(t *TLS, s1, s2 uintptr) int32 { } func Xntohs(t *TLS, netshort uint16) uint16 { + if __ccgo_strace { + trc("t=%v netshort=%v, (%v:)", t, netshort, origin(2)) + } return uint16((*[2]byte)(unsafe.Pointer(&netshort))[0])<<8 | uint16((*[2]byte)(unsafe.Pointer(&netshort))[1]) } // uint16_t htons(uint16_t hostshort); func Xhtons(t *TLS, hostshort uint16) uint16 { + if __ccgo_strace { + trc("t=%v hostshort=%v, (%v:)", t, hostshort, origin(2)) + } var a [2]byte a[0] = byte(hostshort >> 8) a[1] = byte(hostshort) @@ -1051,6 +2035,9 @@ func Xhtons(t *TLS, hostshort uint16) uint16 { // uint32_t htonl(uint32_t hostlong); func Xhtonl(t *TLS, hostlong uint32) uint32 { + if __ccgo_strace { + trc("t=%v hostlong=%v, (%v:)", t, hostlong, origin(2)) + } var a [4]byte a[0] = byte(hostlong >> 24) a[1] = byte(hostlong >> 16) @@ -1061,6 +2048,9 @@ func Xhtonl(t *TLS, hostlong uint32) uint32 { // FILE *fopen(const char *pathname, const char *mode); func Xfopen(t *TLS, pathname, mode uintptr) uintptr { + if __ccgo_strace { + trc("t=%v mode=%v, (%v:)", t, mode, origin(2)) + } return Xfopen64(t, pathname, mode) //TODO 32 bit } @@ -1072,6 +2062,9 @@ func Dmesg(s string, args ...interface{}) { // void sqlite3_log(int iErrCode, const char *zFormat, ...); func X__ccgo_sqlite3_log(t *TLS, iErrCode int32, zFormat uintptr, args uintptr) { + if __ccgo_strace { + trc("t=%v iErrCode=%v zFormat=%v args=%v, (%v:)", t, iErrCode, zFormat, args, origin(2)) + } // if dmesgs { // dmesg("%v: iErrCode: %v, msg: %s\n%s", origin(1), iErrCode, printf(zFormat, args), debug.Stack()) // } @@ -1079,11 +2072,17 @@ func X__ccgo_sqlite3_log(t *TLS, iErrCode int32, zFormat uintptr, args uintptr) // int _IO_putc(int __c, _IO_FILE *__fp); func X_IO_putc(t *TLS, c int32, fp uintptr) int32 { + if __ccgo_strace { + trc("t=%v c=%v fp=%v, (%v:)", t, c, fp, origin(2)) + } return Xputc(t, c, fp) } // int atexit(void (*function)(void)); func Xatexit(t *TLS, function uintptr) int32 { + if __ccgo_strace { + trc("t=%v function=%v, (%v:)", t, function, origin(2)) + } AtExit(func() { (*struct{ f func(*TLS) })(unsafe.Pointer(&struct{ uintptr }{function})).f(t) }) @@ -1092,6 +2091,9 @@ func Xatexit(t *TLS, function uintptr) int32 { // int vasprintf(char **strp, const char *fmt, va_list ap); func Xvasprintf(t *TLS, strp, fmt, ap uintptr) int32 { + if __ccgo_strace { + trc("t=%v ap=%v, (%v:)", t, ap, origin(2)) + } panic(todo("")) } @@ -1203,31 +2205,49 @@ func AtomicAddFloat64(addr *float64, delta float64) (new float64) { // size_t mbstowcs(wchar_t *dest, const char *src, size_t n); func Xmbstowcs(t *TLS, dest, src uintptr, n types.Size_t) types.Size_t { + if __ccgo_strace { + trc("t=%v src=%v n=%v, (%v:)", t, src, n, origin(2)) + } panic(todo("")) } // int mbtowc(wchar_t *pwc, const char *s, size_t n); func Xmbtowc(t *TLS, pwc, s uintptr, n types.Size_t) int32 { + if __ccgo_strace { + trc("t=%v s=%v n=%v, (%v:)", t, s, n, origin(2)) + } panic(todo("")) } // size_t __ctype_get_mb_cur_max(void); func X__ctype_get_mb_cur_max(t *TLS) types.Size_t { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } panic(todo("")) } // int wctomb(char *s, wchar_t wc); func Xwctomb(t *TLS, s uintptr, wc wchar_t) int32 { + if __ccgo_strace { + trc("t=%v s=%v wc=%v, (%v:)", t, s, wc, origin(2)) + } panic(todo("")) } // int mblen(const char *s, size_t n); func Xmblen(t *TLS, s uintptr, n types.Size_t) int32 { + if __ccgo_strace { + trc("t=%v s=%v n=%v, (%v:)", t, s, n, origin(2)) + } panic(todo("")) } // ssize_t readv(int fd, const struct iovec *iov, int iovcnt); func Xreadv(t *TLS, fd int32, iov uintptr, iovcnt int32) types.Ssize_t { + if __ccgo_strace { + trc("t=%v fd=%v iov=%v iovcnt=%v, (%v:)", t, fd, iov, iovcnt, origin(2)) + } panic(todo("")) } @@ -1236,11 +2256,17 @@ func Xreadv(t *TLS, fd int32, iov uintptr, iovcnt int32) types.Ssize_t { // const struct termios *termp, // const struct winsize *winp); func Xopenpty(t *TLS, amaster, aslave, name, termp, winp uintptr) int32 { + if __ccgo_strace { + trc("t=%v winp=%v, (%v:)", t, winp, origin(2)) + } panic(todo("")) } // pid_t setsid(void); func Xsetsid(t *TLS) types.Pid_t { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } panic(todo("")) } @@ -1249,26 +2275,33 @@ func Xsetsid(t *TLS) types.Pid_t { // fd_set *exceptfds, const struct timespec *timeout, // const sigset_t *sigmask); func Xpselect(t *TLS, nfds int32, readfds, writefds, exceptfds, timeout, sigmask uintptr) int32 { + if __ccgo_strace { + trc("t=%v nfds=%v sigmask=%v, (%v:)", t, nfds, sigmask, origin(2)) + } panic(todo("")) } // int kill(pid_t pid, int sig); func Xkill(t *TLS, pid types.Pid_t, sig int32) int32 { + if __ccgo_strace { + trc("t=%v pid=%v sig=%v, (%v:)", t, pid, sig, origin(2)) + } panic(todo("")) } // int tcsendbreak(int fd, int duration); func Xtcsendbreak(t *TLS, fd, duration int32) int32 { + if __ccgo_strace { + trc("t=%v duration=%v, (%v:)", t, duration, origin(2)) + } panic(todo("")) } // int wcwidth(wchar_t c); func Xwcwidth(t *TLS, c wchar_t) int32 { - panic(todo("")) -} - -// int clock_gettime(clockid_t clk_id, struct timespec *tp); -func Xclock_gettime(t *TLS, clk_id int32, tp uintptr) int32 { + if __ccgo_strace { + trc("t=%v c=%v, (%v:)", t, c, origin(2)) + } panic(todo("")) } @@ -1282,6 +2315,9 @@ func AtExit(f func()) { } func X__ccgo_dmesg(t *TLS, fmt uintptr, va uintptr) { + if __ccgo_strace { + trc("t=%v fmt=%v va=%v, (%v:)", t, fmt, va, origin(2)) + } if dmesgs { dmesg("%s", printf(fmt, va)) } @@ -1293,6 +2329,9 @@ func X__ccgo_dmesg(t *TLS, fmt uintptr, va uintptr) { // to the buffer starting at the location pointed to by buffer. The maximum // permitted value for the length argument is 256. func Xgetentropy(t *TLS, buffer uintptr, length size_t) int32 { + if __ccgo_strace { + trc("t=%v buffer=%v length=%v, (%v:)", t, buffer, length, origin(2)) + } const max = 256 switch { case length == 0: @@ -1315,6 +2354,9 @@ func Xgetentropy(t *TLS, buffer uintptr, length size_t) int32 { // void * reallocarray(void *ptr, size_t nmemb, size_t size); func Xreallocarray(t *TLS, ptr uintptr, nmemb, size size_t) uintptr { + if __ccgo_strace { + trc("t=%v ptr=%v size=%v, (%v:)", t, ptr, size, origin(2)) + } hi, lo := mathutil.MulUint128_64(uint64(nmemb), uint64(size)) if hi != 0 || lo > uint64(unsafe.Sizeof(RawMem{})) { t.setErrno(errno.ENOMEM) @@ -1326,11 +2368,17 @@ func Xreallocarray(t *TLS, ptr uintptr, nmemb, size size_t) uintptr { // int setjmp(jmp_buf env); func Xsetjmp(t *TLS, env uintptr) int32 { + if __ccgo_strace { + trc("t=%v env=%v, (%v:)", t, env, origin(2)) + } return 0 //TODO } // void longjmp(jmp_buf env, int val); func Xlongjmp(t *TLS, env uintptr, val int32) { + if __ccgo_strace { + trc("t=%v env=%v val=%v, (%v:)", t, env, val, origin(2)) + } panic(todo("")) } @@ -1342,39 +2390,67 @@ func Xlongjmp(t *TLS, env uintptr, val int32) { // int _setjmp(jmp_buf env); func X_setjmp(t *TLS, env uintptr) int32 { + if __ccgo_strace { + trc("t=%v env=%v, (%v:)", t, env, origin(2)) + } return 0 //TODO } // void _longjmp(jmp_buf env, int val); func X_longjmp(t *TLS, env uintptr, val int32) { + if __ccgo_strace { + trc("t=%v env=%v val=%v, (%v:)", t, env, val, origin(2)) + } panic(todo("")) } // unsigned __sync_add_and_fetch_uint32(*unsigned, unsigned) func X__sync_add_and_fetch_uint32(t *TLS, p uintptr, v uint32) uint32 { + if __ccgo_strace { + trc("t=%v p=%v v=%v, (%v:)", t, p, v, origin(2)) + } return atomic.AddUint32((*uint32)(unsafe.Pointer(p)), v) } // unsigned __sync_sub_and_fetch_uint32(*unsigned, unsigned) func X__sync_sub_and_fetch_uint32(t *TLS, p uintptr, v uint32) uint32 { + if __ccgo_strace { + trc("t=%v p=%v v=%v, (%v:)", t, p, v, origin(2)) + } return atomic.AddUint32((*uint32)(unsafe.Pointer(p)), -v) } // int sched_yield(void); func Xsched_yield(t *TLS) { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } runtime.Gosched() } // int getc(FILE *stream); func Xgetc(t *TLS, stream uintptr) int32 { + if __ccgo_strace { + trc("t=%v stream=%v, (%v:)", t, stream, origin(2)) + } return Xfgetc(t, stream) } // char *fgets(char *s, int size, FILE *stream); func Xfgets(t *TLS, s uintptr, size int32, stream uintptr) uintptr { + if __ccgo_strace { + trc("t=%v s=%v size=%v stream=%v, (%v:)", t, s, size, stream, origin(2)) + } + if size < 1 { + return 0 + } + if size == 1 { + *(*byte)(unsafe.Pointer(s)) = 0 + return s + } var b []byte out: - for ; size > 0; size-- { + for ; size > 1; size-- { switch c := Xfgetc(t, stream); c { case '\n': b = append(b, byte(c)) @@ -1396,6 +2472,9 @@ out: // void bzero(void *s, size_t n); func Xbzero(t *TLS, s uintptr, n types.Size_t) { + if __ccgo_strace { + trc("t=%v s=%v n=%v, (%v:)", t, s, n, origin(2)) + } b := (*RawMem)(unsafe.Pointer(s))[:n] for i := range b { b[i] = 0 @@ -1404,6 +2483,9 @@ func Xbzero(t *TLS, s uintptr, n types.Size_t) { // char *rindex(const char *s, int c); func Xrindex(t *TLS, s uintptr, c int32) uintptr { + if __ccgo_strace { + trc("t=%v s=%v c=%v, (%v:)", t, s, c, origin(2)) + } if s == 0 { return 0 } @@ -1425,9 +2507,1066 @@ func Xrindex(t *TLS, s uintptr, c int32) uintptr { // int isascii(int c); func Xisascii(t *TLS, c int32) int32 { + if __ccgo_strace { + trc("t=%v c=%v, (%v:)", t, c, origin(2)) + } return Bool32(c >= 0 && c <= 0x7f) } func X__builtin_isunordered(t *TLS, a, b float64) int32 { + if __ccgo_strace { + trc("t=%v b=%v, (%v:)", t, b, origin(2)) + } return Bool32(math.IsNaN(a) || math.IsNaN(b)) } + +func AtomicLoadNUint16(ptr uintptr, memorder int32) uint16 { + atomicLoadStore16.Lock() + r := *(*uint16)(unsafe.Pointer(ptr)) + atomicLoadStore16.Unlock() + return r +} + +func PreIncAtomicInt32P(p uintptr, d int32) int32 { + return atomic.AddInt32((*int32)(unsafe.Pointer(p)), d) +} + +func PreIncAtomicInt64P(p uintptr, d int64) int64 { + return atomic.AddInt64((*int64)(unsafe.Pointer(p)), d) +} + +func PreIncAtomicUint32P(p uintptr, d uint32) uint32 { + return atomic.AddUint32((*uint32)(unsafe.Pointer(p)), d) +} + +func PreIncAtomicUint64P(p uintptr, d uint64) uint64 { + return atomic.AddUint64((*uint64)(unsafe.Pointer(p)), d) +} + +func PreInrAtomicUintptrP(p uintptr, d uintptr) uintptr { + return atomic.AddUintptr((*uintptr)(unsafe.Pointer(p)), d) +} + +func X__builtin_ffs(tls *TLS, i int32) (r int32) { + if __ccgo_strace { + trc("tls=%v i=%v, (%v:)", tls, i, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xffs(tls, i) +} + +func Xffs(tls *TLS, i int32) (r int32) { + if __ccgo_strace { + trc("tls=%v i=%v, (%v:)", tls, i, origin(2)) + defer func() { trc("-> %v", r) }() + } + if i == 0 { + return 0 + } + + return int32(mbits.TrailingZeros32(uint32(i))) + 1 +} + +var _toint5 = Float32FromInt32(1) / Float32FromFloat32(1.1920928955078125e-07) + +func X__builtin_rintf(tls *TLS, x float32) (r float32) { + return Xrintf(tls, x) +} + +func Xrintf(tls *TLS, x float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e, s int32 + var y float32 + var v1 float32 + var _ /* u at bp+0 */ struct { + Fi [0]uint32 + Ff float32 + } + _, _, _, _ = e, s, y, v1 + *(*struct { + Fi [0]uint32 + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]uint32 + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + e = int32(*(*uint32)(unsafe.Pointer(bp)) >> int32(23) & uint32(0xff)) + s = int32(*(*uint32)(unsafe.Pointer(bp)) >> int32(31)) + if e >= Int32FromInt32(0x7f)+Int32FromInt32(23) { + return x + } + if s != 0 { + y = x - _toint5 + _toint5 + } else { + y = x + _toint5 - _toint5 + } + if y == Float32FromInt32(0) { + if s != 0 { + v1 = -Float32FromFloat32(0) + } else { + v1 = Float32FromFloat32(0) + } + return v1 + } + return y +} + +func X__builtin_lrintf(tls *TLS, x float32) (r long) { + return Xlrintf(tls, x) +} + +func Xlrintf(tls *TLS, x float32) (r long) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return long(Xrintf(tls, x)) +} + +func X__builtin_lrint(tls *TLS, x float64) (r long) { + return Xlrint(tls, x) +} + +func Xlrint(tls *TLS, x float64) (r long) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return long(Xrint(tls, x)) +} + +func X__builtin_trunc(tls *TLS, x float64) (r float64) { + return Xtrunc(tls, x) +} + +func X__builtin_fmin(tls *TLS, x float64, y float64) (r float64) { + return Xfmin(tls, x, y) +} + +func Xfmin(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1, v10, v3, v5, v7 uint64 + var v12, v9 float64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _, _, _, _, _, _, _ = v1, v10, v12, v3, v5, v7, v9 + *(*float64)(unsafe.Pointer(bp)) = x + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + if BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(63)) != Int32FromUint64(v7>>Int32FromInt32(63)) { + *(*float64)(unsafe.Pointer(bp)) = x + v10 = *(*uint64)(unsafe.Pointer(bp)) + goto _11 + _11: + if Int32FromUint64(v10>>Int32FromInt32(63)) != 0 { + v9 = x + } else { + v9 = y + } + return v9 + } + if x < y { + v12 = x + } else { + v12 = y + } + return v12 +} + +func Xfminf(tls *TLS, x float32, y float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1, v10, v3, v5, v7 uint32 + var v12, v9 float32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _, _, _, _, _, _, _ = v1, v10, v12, v3, v5, v7, v9 + *(*float32)(unsafe.Pointer(bp)) = x + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + if BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return y + } + *(*float32)(unsafe.Pointer(bp)) = y + v3 = *(*uint32)(unsafe.Pointer(bp)) + goto _4 +_4: + if BoolInt32(v3&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return x + } + /* handle signed zeros, see C99 Annex F.9.9.2 */ + *(*float32)(unsafe.Pointer(bp)) = x + v5 = *(*uint32)(unsafe.Pointer(bp)) + goto _6 +_6: + *(*float32)(unsafe.Pointer(bp)) = y + v7 = *(*uint32)(unsafe.Pointer(bp)) + goto _8 +_8: + if Int32FromUint32(v5>>Int32FromInt32(31)) != Int32FromUint32(v7>>Int32FromInt32(31)) { + *(*float32)(unsafe.Pointer(bp)) = x + v10 = *(*uint32)(unsafe.Pointer(bp)) + goto _11 + _11: + if Int32FromUint32(v10>>Int32FromInt32(31)) != 0 { + v9 = x + } else { + v9 = y + } + return v9 + } + if x < y { + v12 = x + } else { + v12 = y + } + return v12 +} + +func Xfminl(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfmin(tls, x, y) +} + +func Xfmax(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1, v10, v3, v5, v7 uint64 + var v12, v9 float64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + _, _, _, _, _, _, _ = v1, v10, v12, v3, v5, v7, v9 + *(*float64)(unsafe.Pointer(bp)) = x + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 +_2: + if BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)<>Int32FromInt32(63)) != Int32FromUint64(v7>>Int32FromInt32(63)) { + *(*float64)(unsafe.Pointer(bp)) = x + v10 = *(*uint64)(unsafe.Pointer(bp)) + goto _11 + _11: + if Int32FromUint64(v10>>Int32FromInt32(63)) != 0 { + v9 = y + } else { + v9 = x + } + return v9 + } + if x < y { + v12 = y + } else { + v12 = x + } + return v12 +} + +func Xfmaxf(tls *TLS, x float32, y float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var v1, v10, v3, v5, v7 uint32 + var v12, v9 float32 + var _ /* __u at bp+0 */ struct { + F__i [0]uint32 + F__f float32 + } + _, _, _, _, _, _, _ = v1, v10, v12, v3, v5, v7, v9 + *(*float32)(unsafe.Pointer(bp)) = x + v1 = *(*uint32)(unsafe.Pointer(bp)) + goto _2 +_2: + if BoolInt32(v1&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return y + } + *(*float32)(unsafe.Pointer(bp)) = y + v3 = *(*uint32)(unsafe.Pointer(bp)) + goto _4 +_4: + if BoolInt32(v3&uint32(0x7fffffff) > uint32(0x7f800000)) != 0 { + return x + } + /* handle signed zeroes, see C99 Annex F.9.9.2 */ + *(*float32)(unsafe.Pointer(bp)) = x + v5 = *(*uint32)(unsafe.Pointer(bp)) + goto _6 +_6: + *(*float32)(unsafe.Pointer(bp)) = y + v7 = *(*uint32)(unsafe.Pointer(bp)) + goto _8 +_8: + if Int32FromUint32(v5>>Int32FromInt32(31)) != Int32FromUint32(v7>>Int32FromInt32(31)) { + *(*float32)(unsafe.Pointer(bp)) = x + v10 = *(*uint32)(unsafe.Pointer(bp)) + goto _11 + _11: + if Int32FromUint32(v10>>Int32FromInt32(31)) != 0 { + v9 = y + } else { + v9 = x + } + return v9 + } + if x < y { + v12 = y + } else { + v12 = x + } + return v12 +} + +func Xfmaxl(tls *TLS, x float64, y float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xfmax(tls, x, y) +} + +func X__builtin_fmax(tls *TLS, x float64, y float64) (r float64) { + return Xfmax(tls, x, y) +} + +func Xexpm1(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var c, e, hfx, hi, hxs, lo, r1, t, twopk, y3 Tdouble_t + var hx Tuint32_t + var k, sign int32 + var y float32 + var y1, y2, v3 float64 + var v1 uint64 + var _ /* __u at bp+0 */ struct { + F__i [0]uint64 + F__f float64 + } + var _ /* u at bp+8 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = c, e, hfx, hi, hx, hxs, k, lo, r1, sign, t, twopk, y, y1, y2, y3, v1, v3 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp + 8)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp + 8)) = x3 + hx = uint32(*(*Tuint64_t)(unsafe.Pointer(bp + 8)) >> int32(32) & uint64(0x7fffffff)) + sign = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp + 8)) >> int32(63)) + /* filter out huge and non-finite argument */ + if hx >= uint32(0x4043687A) { /* if |x|>=56*ln2 */ + *(*float64)(unsafe.Pointer(bp)) = x3 + v1 = *(*uint64)(unsafe.Pointer(bp)) + goto _2 + _2: + if BoolInt32(v1&(-Uint64FromUint64(1)>>Int32FromInt32(1)) > Uint64FromUint64(0x7ff)< _o_threshold { + x3 *= float64(8.98846567431158e+307) + return x3 + } + } + /* argument reduction */ + if hx > uint32(0x3fd62e42) { /* if |x| > 0.5 ln2 */ + if hx < uint32(0x3FF0A2B2) { /* and |x| < 1.5 ln2 */ + if !(sign != 0) { + hi = x3 - _ln2_hi + lo = _ln2_lo + k = int32(1) + } else { + hi = x3 + _ln2_hi + lo = -_ln2_lo + k = -int32(1) + } + } else { + if sign != 0 { + v3 = -Float64FromFloat64(0.5) + } else { + v3 = float64(0.5) + } + k = int32(float64(_invln2*x3) + v3) + t = float64(k) + hi = x3 - float64(t*_ln2_hi) /* t*ln2_hi is exact here */ + lo = Tdouble_t(t * _ln2_lo) + } + x3 = hi - lo + c = hi - x3 - lo + } else { + if hx < uint32(0x3c900000) { /* |x| < 2**-54, return x */ + if hx < uint32(0x00100000) { + if uint64(4) == uint64(4) { + y = float32(x3) + } else { + if uint64(4) == uint64(8) { + y1 = float64(float32(x3)) + } else { + y2 = float64(float32(x3)) + } + } + } + return x3 + } else { + k = 0 + } + } + /* x is now in primary range */ + hfx = Tdouble_t(float64(0.5) * x3) + hxs = Tdouble_t(x3 * hfx) + r1 = float64(1) + float64(hxs*(_Q1+float64(hxs*(_Q2+float64(hxs*(_Q3+float64(hxs*(_Q4+float64(hxs*_Q5))))))))) + t = float64(3) - float64(r1*hfx) + e = Tdouble_t(hxs * ((r1 - t) / (Float64FromFloat64(6) - float64(x3*t)))) + if k == 0 { /* c is 0 */ + return x3 - (float64(x3*e) - hxs) + } + e = float64(x3*(e-c)) - c + e -= hxs + /* exp(x) ~ 2^k (Xreduced - e + 1) */ + if k == -int32(1) { + return float64(float64(0.5)*(x3-e)) - float64(0.5) + } + if k == int32(1) { + if x3 < -Float64FromFloat64(0.25) { + return float64(-Float64FromFloat64(2) * (e - (x3 + Float64FromFloat64(0.5)))) + } + return float64(1) + float64(float64(2)*(x3-e)) + } + *(*Tuint64_t)(unsafe.Pointer(bp + 8)) = Uint64FromInt32(Int32FromInt32(0x3ff)+k) << int32(52) /* 2^k */ + twopk = *(*float64)(unsafe.Pointer(bp + 8)) + if k < 0 || k > int32(56) { /* suffice to return exp(x)-1 */ + y3 = x3 - e + float64(1) + if k == int32(1024) { + y3 = Tdouble_t(Tdouble_t(y3*float64(2)) * float64(8.98846567431158e+307)) + } else { + y3 = Tdouble_t(y3 * twopk) + } + return y3 - float64(1) + } + *(*Tuint64_t)(unsafe.Pointer(bp + 8)) = Uint64FromInt32(Int32FromInt32(0x3ff)-k) << int32(52) /* 2^-k */ + if k < int32(20) { + y3 = Tdouble_t((x3 - e + (Float64FromInt32(1) - *(*float64)(unsafe.Pointer(bp + 8)))) * twopk) + } else { + y3 = Tdouble_t((x3 - (e + *(*float64)(unsafe.Pointer(bp + 8))) + Float64FromInt32(1)) * twopk) + } + return y3 +} + +var _ln2_hi1 = float32(0.69313812256) /* 0x3f317180 */ +var _ln2_lo1 = float32(9.0580006145e-06) /* 0x3717f7d1 */ +var _invln21 = float32(1.4426950216) /* 0x3fb8aa3b */ +/* + * Domain [-0.34568, 0.34568], range ~[-6.694e-10, 6.696e-10]: + * |6 / x * (1 + 2 * (1 / (exp(x) - 1) - 1 / x)) - q(x)| < 2**-30.04 + * Scaled coefficients: Qn_here = 2**n * Qn_for_q (see s_expm1.c): + */ +var _Q11 = float32(-Float64FromFloat64(0.033333212137)) /* -0x888868.0p-28 */ +var _Q21 = float32(0.0015807170421) /* 0xcf3010.0p-33 */ + +func Xexpm1f(tls *TLS, x3 float32) (r float32) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var c, e, hfx, hi, hxs, lo, r1, t, twopk, y3 Tfloat_t + var hx Tuint32_t + var k, sign int32 + var y, v1 float32 + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = c, e, hfx, hi, hx, hxs, k, lo, r1, sign, t, twopk, y, y1, y2, y3, v1 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + hx = *(*Tuint32_t)(unsafe.Pointer(bp)) & uint32(0x7fffffff) + sign = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(31)) + /* filter out huge and non-finite argument */ + if hx >= uint32(0x4195b844) { /* if |x|>=27*ln2 */ + if hx > uint32(0x7f800000) { /* NaN */ + return x3 + } + if sign != 0 { + return float32(-Int32FromInt32(1)) + } + if hx > uint32(0x42b17217) { /* x > log(FLT_MAX) */ + x3 *= Float32FromFloat32(1.7014118346046923e+38) + return x3 + } + } + /* argument reduction */ + if hx > uint32(0x3eb17218) { /* if |x| > 0.5 ln2 */ + if hx < uint32(0x3F851592) { /* and |x| < 1.5 ln2 */ + if !(sign != 0) { + hi = x3 - _ln2_hi1 + lo = _ln2_lo1 + k = int32(1) + } else { + hi = x3 + _ln2_hi1 + lo = -_ln2_lo1 + k = -int32(1) + } + } else { + if sign != 0 { + v1 = -Float32FromFloat32(0.5) + } else { + v1 = Float32FromFloat32(0.5) + } + k = int32(float32(_invln21*x3) + v1) + t = float32(k) + hi = x3 - float32(t*_ln2_hi1) /* t*ln2_hi is exact here */ + lo = Tfloat_t(t * _ln2_lo1) + } + x3 = hi - lo + c = hi - x3 - lo + } else { + if hx < uint32(0x33000000) { /* when |x|<2**-25, return x */ + if hx < uint32(0x00800000) { + if uint64(4) == uint64(4) { + y = float32(x3 * x3) + } else { + if uint64(4) == uint64(8) { + y1 = float64(x3 * x3) + } else { + y2 = float64(x3 * x3) + } + } + } + return x3 + } else { + k = 0 + } + } + /* x is now in primary range */ + hfx = Tfloat_t(Float32FromFloat32(0.5) * x3) + hxs = Tfloat_t(x3 * hfx) + r1 = Float32FromFloat32(1) + float32(hxs*(_Q11+float32(hxs*_Q21))) + t = Float32FromFloat32(3) - float32(r1*hfx) + e = Tfloat_t(hxs * ((r1 - t) / (Float32FromFloat32(6) - float32(x3*t)))) + if k == 0 { /* c is 0 */ + return x3 - (float32(x3*e) - hxs) + } + e = float32(x3*(e-c)) - c + e -= hxs + /* exp(x) ~ 2^k (Xreduced - e + 1) */ + if k == -int32(1) { + return float32(Float32FromFloat32(0.5)*(x3-e)) - Float32FromFloat32(0.5) + } + if k == int32(1) { + if x3 < -Float32FromFloat32(0.25) { + return float32(-Float32FromFloat32(2) * (e - (x3 + Float32FromFloat32(0.5)))) + } + return Float32FromFloat32(1) + float32(Float32FromFloat32(2)*(x3-e)) + } + *(*Tuint32_t)(unsafe.Pointer(bp)) = Uint32FromInt32((int32(0x7f) + k) << int32(23)) /* 2^k */ + twopk = *(*float32)(unsafe.Pointer(bp)) + if k < 0 || k > int32(56) { /* suffice to return exp(x)-1 */ + y3 = x3 - e + Float32FromFloat32(1) + if k == int32(128) { + y3 = Tfloat_t(Tfloat_t(y3*Float32FromFloat32(2)) * Float32FromFloat32(1.7014118346046923e+38)) + } else { + y3 = Tfloat_t(y3 * twopk) + } + return y3 - Float32FromFloat32(1) + } + *(*Tuint32_t)(unsafe.Pointer(bp)) = Uint32FromInt32((int32(0x7f) - k) << int32(23)) /* 2^-k */ + if k < int32(23) { + y3 = Tfloat_t((x3 - e + (Float32FromInt32(1) - *(*float32)(unsafe.Pointer(bp)))) * twopk) + } else { + y3 = Tfloat_t((x3 - (e + *(*float32)(unsafe.Pointer(bp))) + Float32FromInt32(1)) * twopk) + } + return y3 +} + +func Xexpm1l(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xexpm1(tls, x) +} + +type Tdouble_t = float64 +type Tuint32_t = uint32 +type Tuint64_t = uint64 + +var _o_threshold = float64(709.782712893384) /* 0x40862E42, 0xFEFA39EF */ +var _ln2_hi = float64(0.6931471803691238) /* 0x3fe62e42, 0xfee00000 */ +var _ln2_lo = float64(1.9082149292705877e-10) /* 0x3dea39ef, 0x35793c76 */ +var _invln2 = float64(1.4426950408889634) /* 0x3ff71547, 0x652b82fe */ +/* Scaled Q's: Qn_here = 2**n * Qn_above, for R(2*z) where z = hxs = x*x/2: */ +var _Q1 = -Float64FromFloat64(0.03333333333333313) /* BFA11111 111110F4 */ +var _Q2 = float64(0.0015873015872548146) /* 3F5A01A0 19FE5585 */ +var _Q3 = -Float64FromFloat64(7.93650757867488e-05) /* BF14CE19 9EAADBB7 */ +var _Q4 = float64(4.008217827329362e-06) /* 3ED0CFCA 86E65239 */ +var _Q5 = -Float64FromFloat64(2.0109921818362437e-07) /* BE8AFDB7 6E09C32D */ + +var _ln2_hi2 = float64(0.6931471803691238) /* 3fe62e42 fee00000 */ +var _ln2_lo2 = float64(1.9082149292705877e-10) /* 3dea39ef 35793c76 */ +var _Lg12 = float64(0.6666666666666735) /* 3FE55555 55555593 */ +var _Lg22 = float64(0.3999999999940942) /* 3FD99999 9997FA04 */ +var _Lg32 = float64(0.2857142874366239) /* 3FD24924 94229359 */ +var _Lg42 = float64(0.22222198432149784) /* 3FCC71C5 1D8E78AF */ +var _Lg51 = float64(0.1818357216161805) /* 3FC74664 96CB03DE */ +var _Lg61 = float64(0.15313837699209373) /* 3FC39A09 D078C69F */ +var _Lg71 = float64(0.14798198605116586) /* 3FC2F112 DF3E5244 */ + +func Xlog1p(tls *TLS, x3 float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x3=%v, (%v:)", tls, x3, origin(2)) + defer func() { trc("-> %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var R, c, dk, f, hfsq, s, t1, t2, w, z Tdouble_t + var hu, hx Tuint32_t + var k int32 + var y float32 + var y1, y2, v1 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = R, c, dk, f, hfsq, hu, hx, k, s, t1, t2, w, y, y1, y2, z, v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x3 + hx = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32)) + k = int32(1) + if hx < uint32(0x3fda827a) || hx>>int32(31) != 0 { /* 1+x < sqrt(2)+ */ + if hx >= uint32(0xbff00000) { /* x <= -1.0 */ + if x3 == float64(-Int32FromInt32(1)) { + return x3 / float64(0) + } /* log1p(-1) = -inf */ + return (x3 - x3) / float64(0) /* log1p(x<-1) = NaN */ + } + if hx<= uint32(0x7ff00000) { + return x3 + } + } + if k != 0 { + *(*float64)(unsafe.Pointer(bp)) = Float64FromInt32(1) + x3 + hu = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32)) + hu += Uint32FromInt32(Int32FromInt32(0x3ff00000) - Int32FromInt32(0x3fe6a09e)) + k = Int32FromUint32(hu>>Int32FromInt32(20)) - int32(0x3ff) + /* correction term ~ log(1+x)-log(u), avoid underflow in c/u */ + if k < int32(54) { + if k >= int32(2) { + v1 = Float64FromInt32(1) - (*(*float64)(unsafe.Pointer(bp)) - x3) + } else { + v1 = x3 - (*(*float64)(unsafe.Pointer(bp)) - Float64FromInt32(1)) + } + c = v1 + c /= *(*float64)(unsafe.Pointer(bp)) + } else { + c = Float64FromInt32(0) + } + /* reduce u into [sqrt(2)/2, sqrt(2)] */ + hu = hu&uint32(0x000fffff) + uint32(0x3fe6a09e) + *(*Tuint64_t)(unsafe.Pointer(bp)) = uint64(hu)< %v", r) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var R, c, dk, f, hfsq, s, t1, t2, w, z Tfloat_t + var iu, ix Tuint32_t + var k int32 + var y, v1 float32 + var y1, y2 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = R, c, dk, f, hfsq, iu, ix, k, s, t1, t2, w, y, y1, y2, z, v1 + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x3 + ix = *(*Tuint32_t)(unsafe.Pointer(bp)) + k = int32(1) + if ix < uint32(0x3ed413d0) || ix>>int32(31) != 0 { /* 1+x < sqrt(2)+ */ + if ix >= uint32(0xbf800000) { /* x <= -1.0 */ + if x3 == float32(-Int32FromInt32(1)) { + return x3 / Float32FromFloat32(0) + } /* log1p(-1)=+inf */ + return (x3 - x3) / Float32FromFloat32(0) /* log1p(x<-1)=NaN */ + } + if ix<= uint32(0x7f800000) { + return x3 + } + } + if k != 0 { + *(*float32)(unsafe.Pointer(bp)) = Float32FromInt32(1) + x3 + iu = *(*Tuint32_t)(unsafe.Pointer(bp)) + iu += Uint32FromInt32(Int32FromInt32(0x3f800000) - Int32FromInt32(0x3f3504f3)) + k = Int32FromUint32(iu>>Int32FromInt32(23)) - int32(0x7f) + /* correction term ~ log(1+x)-log(u), avoid underflow in c/u */ + if k < int32(25) { + if k >= int32(2) { + v1 = Float32FromInt32(1) - (*(*float32)(unsafe.Pointer(bp)) - x3) + } else { + v1 = x3 - (*(*float32)(unsafe.Pointer(bp)) - Float32FromInt32(1)) + } + c = v1 + c /= *(*float32)(unsafe.Pointer(bp)) + } else { + c = Float32FromInt32(0) + } + /* reduce u into [sqrt(2)/2, sqrt(2)] */ + iu = iu&uint32(0x007fffff) + uint32(0x3f3504f3) + *(*Tuint32_t)(unsafe.Pointer(bp)) = iu + f = *(*float32)(unsafe.Pointer(bp)) - Float32FromInt32(1) + } + s = f / (Float32FromFloat32(2) + f) + z = Tfloat_t(s * s) + w = Tfloat_t(z * z) + t1 = Tfloat_t(w * (_Lg23 + float32(w*_Lg43))) + t2 = Tfloat_t(z * (_Lg13 + float32(w*_Lg33))) + R = t2 + t1 + hfsq = Tfloat_t(float32(Float32FromFloat32(0.5)*f) * f) + dk = float32(k) + return Tfloat_t(s*(hfsq+R)) + (Tfloat_t(dk*_ln2_lo3) + c) - hfsq + f + Tfloat_t(dk*_ln2_hi3) +} + +func Xlog1pl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xlog1p(tls, x) +} + +type Tfloat_t = float32 + +var _B1 = uint32(715094163) /* B1 = (1023-1023/3-0.03306235651)*2**20 */ +var _B2 = uint32(696219795) /* B2 = (1023-1023/3-54/3-0.03306235651)*2**20 */ + +// C documentation +// +// /* |1/cbrt(x) - p(x)| < 2**-23.5 (~[-7.93e-8, 7.929e-8]). */ + +var _P0 = float64(1.87595182427177) /* 0x3ffe03e6, 0x0f61e692 */ +var _P1 = -Float64FromFloat64(1.8849797954337717) /* 0xbffe28e0, 0x92f02420 */ +var _P2 = float64(1.6214297201053545) /* 0x3ff9f160, 0x4a49d6c2 */ +var _P3 = -Float64FromFloat64(0.758397934778766) /* 0xbfe844cb, 0xbee751d9 */ +var _P4 = float64(0.14599619288661245) /* 0x3fc2b000, 0xd4e4edd7 */ + +func Xcbrt(tls *TLS, x float64) (r1 float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var hx Tuint32_t + var r, s, t, w Tdouble_t + var p1 uintptr + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _, _, _ = hx, r, s, t, w, p1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + hx = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32) & uint64(0x7fffffff)) + if hx >= uint32(0x7ff00000) { /* cbrt(NaN,INF) is itself */ + return x + x + } + /* + * Rough cbrt to 5 bits: + * cbrt(2**e*(1+m) ~= 2**(e/3)*(1+(e%3+m)/3) + * where e is integral and >= 0, m is real and in [0, 1), and "/" and + * "%" are integer division and modulus with rounding towards minus + * infinity. The RHS is always >= the LHS and has a maximum relative + * error of about 1 in 16. Adding a bias of -0.03306235651 to the + * (e%3+m)/3 term reduces the error to about 1 in 32. With the IEEE + * floating point representation, for finite positive normal values, + * ordinary integer divison of the value in bits magically gives + * almost exactly the RHS of the above provided we first subtract the + * exponent bias (1023 for doubles) and later add it back. We do the + * subtraction virtually to keep e >= 0 so that ordinary integer + * division rounds towards minus infinity; this is also efficient. + */ + if hx < uint32(0x00100000) { /* zero or subnormal? */ + *(*float64)(unsafe.Pointer(bp)) = float64(x * float64(1.8014398509481984e+16)) + hx = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32) & uint64(0x7fffffff)) + if hx == uint32(0) { + return x + } /* cbrt(0) is itself */ + hx = hx/uint32(3) + _B2 + } else { + hx = hx/uint32(3) + _B1 + } + p1 = bp + *(*Tuint64_t)(unsafe.Pointer(p1)) = Tuint64_t(*(*Tuint64_t)(unsafe.Pointer(p1)) & (Uint64FromUint64(1) << Int32FromInt32(63))) + *(*Tuint64_t)(unsafe.Pointer(bp)) |= uint64(hx) << int32(32) + t = *(*float64)(unsafe.Pointer(bp)) + /* + * New cbrt to 23 bits: + * cbrt(x) = t*cbrt(x/t**3) ~= t*P(t**3/x) + * where P(r) is a polynomial of degree 4 that approximates 1/cbrt(r) + * to within 2**-23.5 when |r - 1| < 1/10. The rough approximation + * has produced t such than |t/cbrt(x) - 1| ~< 1/32, and cubing this + * gives us bounds for r = t**3/x. + * + * Try to optimize for parallel evaluation as in __tanf.c. + */ + r = Tdouble_t(Tdouble_t(t*t) * (t / x)) + t = Tdouble_t(t * (_P0 + float64(r*(_P1+float64(r*_P2))) + float64(Tdouble_t(Tdouble_t(r*r)*r)*(_P3+float64(r*_P4))))) + /* + * Round t away from zero to 23 bits (sloppily except for ensuring that + * the result is larger in magnitude than cbrt(x) but not much more than + * 2 23-bit ulps larger). With rounding towards zero, the error bound + * would be ~5/6 instead of ~4/6. With a maximum error of 2 23-bit ulps + * in the rounded t, the infinite-precision error in the Newton + * approximation barely affects third digit in the final error + * 0.667; the error in the rounded t can be up to about 3 23-bit ulps + * before the final error is larger than 0.667 ulps. + */ + *(*float64)(unsafe.Pointer(bp)) = t + *(*Tuint64_t)(unsafe.Pointer(bp)) = uint64(*(*Tuint64_t)(unsafe.Pointer(bp))+Uint64FromUint32(0x80000000)) & uint64(0xffffffffc0000000) + t = *(*float64)(unsafe.Pointer(bp)) + /* one step Newton iteration to 53 bits with error < 0.667 ulps */ + s = Tdouble_t(t * t) /* t*t is exact */ + r = x / s /* error <= 0.5 ulps; |r| < |t| */ + w = t + t /* t+t is exact */ + r = (r - t) / (w + r) /* r-t is exact; w+r ~= 3*t */ + t = t + Tdouble_t(t*r) /* error <= 0.5 + 0.5/3 + epsilon */ + return t +} + +var _B11 = uint32(709958130) /* B1 = (127-127.0/3-0.03306235651)*2**23 */ +var _B21 = uint32(642849266) /* B2 = (127-127.0/3-24/3-0.03306235651)*2**23 */ + +func Xcbrtf(tls *TLS, x float32) (r1 float32) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r1) }() + } + bp := tls.Alloc(16) + defer tls.Free(16) + var T, r Tdouble_t + var hx Tuint32_t + var _ /* u at bp+0 */ struct { + Fi [0]Tuint32_t + Ff float32 + } + _, _, _ = T, hx, r + *(*struct { + Fi [0]Tuint32_t + Ff float32 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint32_t + Ff float32 + }{} + *(*float32)(unsafe.Pointer(bp)) = x + hx = *(*Tuint32_t)(unsafe.Pointer(bp)) & uint32(0x7fffffff) + if hx >= uint32(0x7f800000) { /* cbrt(NaN,INF) is itself */ + return x + x + } + /* rough cbrt to 5 bits */ + if hx < uint32(0x00800000) { /* zero or subnormal? */ + if hx == uint32(0) { + return x + } /* cbrt(+-0) is itself */ + *(*float32)(unsafe.Pointer(bp)) = float32(x * Float32FromFloat32(1.6777216e+07)) + hx = *(*Tuint32_t)(unsafe.Pointer(bp)) & uint32(0x7fffffff) + hx = hx/uint32(3) + _B21 + } else { + hx = hx/uint32(3) + _B11 + } + *(*Tuint32_t)(unsafe.Pointer(bp)) &= uint32(0x80000000) + *(*Tuint32_t)(unsafe.Pointer(bp)) |= hx + /* + * First step Newton iteration (solving t*t-x/t == 0) to 16 bits. In + * double precision so that its terms can be arranged for efficiency + * without causing overflow or underflow. + */ + T = float64(*(*float32)(unsafe.Pointer(bp))) + r = Tdouble_t(Tdouble_t(T*T) * T) + T = Tdouble_t(T*(float64(x)+float64(x)+r)) / (float64(x) + r + r) + /* + * Second step Newton iteration to 47 bits. In double precision for + * efficiency and accuracy. + */ + r = Tdouble_t(Tdouble_t(T*T) * T) + T = Tdouble_t(T*(float64(x)+float64(x)+r)) / (float64(x) + r + r) + /* rounding to 24 bits is perfect in round-to-nearest mode */ + return float32(T) +} + +func Xcbrtl(tls *TLS, x float64) (r float64) { + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xcbrt(tls, x) +} diff --git a/vendor/modernc.org/libc/libc32.go b/vendor/modernc.org/libc/libc32.go index 060728489..b6346c058 100644 --- a/vendor/modernc.org/libc/libc32.go +++ b/vendor/modernc.org/libc/libc32.go @@ -2,11 +2,17 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -//go:build 386 || arm -// +build 386 arm +//go:build !linux && (arm || 386) package libc // import "modernc.org/libc" +import ( + "unsafe" + + "modernc.org/libc/limits" + "modernc.org/libc/sys/types" +) + const ( heapSize = 1 << 30 // Adjust for your debugging session requirements and system RAM size. ) @@ -23,8 +29,53 @@ type ( } ) -type bits []int +type bitz []int // was bits but that is now an import qaulifier in use by mem.go + +func newBits(n int) (r bitz) { return make(bitz, (n+31)>>5) } +func (b bitz) has(n int) bool { return b != nil && b[n>>5]&(1<>5] |= 1 << uint(n&31) } + +func Xstrchrnul(tls *TLS, s uintptr, c int32) (r uintptr) { + return x___strchrnul(tls, s, c) +} -func newBits(n int) (r bits) { return make(bits, (n+31)>>5) } -func (b bits) has(n int) bool { return b != nil && b[n>>5]&(1<>5] |= 1 << uint(n&31) } +func x___strchrnul(tls *TLS, s uintptr, c int32) (r uintptr) { + var k types.Size_t + var w uintptr + _, _ = k, w + c = int32(uint8(c)) + if !(c != 0) { + return s + uintptr(Xstrlen(tls, s)) + } + for { + if !(uint32(s)%Uint32FromInt64(4) != 0) { + break + } + if !(*(*int8)(unsafe.Pointer(s)) != 0) || int32(*(*uint8)(unsafe.Pointer(s))) == c { + return s + } + goto _1 + _1: + s++ + } + k = uint32(-Int32FromInt32(1)) / Uint32FromInt32(limits.UCHAR_MAX) * uint32(c) + w = s + for { + if !(!((*(*uint32)(unsafe.Pointer(w))-uint32(-Int32FromInt32(1))/Uint32FromInt32(limits.UCHAR_MAX)) & ^*(*uint32)(unsafe.Pointer(w)) & (uint32(-Int32FromInt32(1))/Uint32FromInt32(limits.UCHAR_MAX)*uint32(Int32FromInt32(limits.UCHAR_MAX)/Int32FromInt32(2)+Int32FromInt32(1))) != 0) && !((*(*uint32)(unsafe.Pointer(w))^k-uint32(-Int32FromInt32(1))/Uint32FromInt32(limits.UCHAR_MAX)) & ^(*(*uint32)(unsafe.Pointer(w))^k) & (uint32(-Int32FromInt32(1))/Uint32FromInt32(limits.UCHAR_MAX)*uint32(Int32FromInt32(limits.UCHAR_MAX)/Int32FromInt32(2)+Int32FromInt32(1))) != 0)) { + break + } + goto _2 + _2: + w += 4 + } + s = w + for { + if !(*(*int8)(unsafe.Pointer(s)) != 0 && int32(*(*uint8)(unsafe.Pointer(s))) != c) { + break + } + goto _3 + _3: + s++ + } + return s +} diff --git a/vendor/modernc.org/libc/libc64.go b/vendor/modernc.org/libc/libc64.go index 35d1443c3..8870bd272 100644 --- a/vendor/modernc.org/libc/libc64.go +++ b/vendor/modernc.org/libc/libc64.go @@ -2,11 +2,17 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -//go:build amd64 || arm64 || ppc64le || riscv64 || s390x -// +build amd64 arm64 ppc64le riscv64 s390x +//go:build (!linux && !(386 || arm)) || mips64le package libc // import "modernc.org/libc" +import ( + "unsafe" + + "modernc.org/libc/limits" + "modernc.org/libc/sys/types" +) + const ( heapSize = 2 << 30 // Adjust for your debugging session requirements and system RAM size. ) @@ -21,8 +27,53 @@ type ( } ) -type bits []int +type bitz []int // was bits but that is now an import qaulifier in use by mem.go -func newBits(n int) (r bits) { return make(bits, (n+63)>>6) } -func (b bits) has(n int) bool { return b != nil && b[n>>6]&(1<>6] |= 1 << uint(n&63) } +func newBits(n int) (r bitz) { return make(bitz, (n+63)>>6) } +func (b bitz) has(n int) bool { return b != nil && b[n>>6]&(1<>6] |= 1 << uint(n&63) } + +func Xstrchrnul(tls *TLS, s uintptr, c int32) (r uintptr) { + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + defer func() { trc("-> %v", r) }() + } + var k types.Size_t + var w uintptr + _, _ = k, w + c = int32(uint8(c)) + if !(c != 0) { + return s + uintptr(Xstrlen(tls, s)) + } + for { + if !(uint64(s)%Uint64FromInt64(8) != 0) { + break + } + if !(*(*int8)(unsafe.Pointer(s)) != 0) || int32(*(*uint8)(unsafe.Pointer(s))) == c { + return s + } + goto _1 + _1: + s++ + } + k = uint64(-Int32FromInt32(1)) / Uint64FromInt32(limits.UCHAR_MAX) * uint64(c) + w = s + for { + if !(!((*(*uint64)(unsafe.Pointer(w))-uint64(-Int32FromInt32(1))/Uint64FromInt32(limits.UCHAR_MAX)) & ^*(*uint64)(unsafe.Pointer(w)) & (uint64(-Int32FromInt32(1))/Uint64FromInt32(limits.UCHAR_MAX)*uint64(Int32FromInt32(limits.UCHAR_MAX)/Int32FromInt32(2)+Int32FromInt32(1))) != 0) && !((*(*uint64)(unsafe.Pointer(w))^k-uint64(-Int32FromInt32(1))/Uint64FromInt32(limits.UCHAR_MAX)) & ^(*(*uint64)(unsafe.Pointer(w))^k) & (uint64(-Int32FromInt32(1))/Uint64FromInt32(limits.UCHAR_MAX)*uint64(Int32FromInt32(limits.UCHAR_MAX)/Int32FromInt32(2)+Int32FromInt32(1))) != 0)) { + break + } + goto _2 + _2: + w += 8 + } + s = w + for { + if !(*(*int8)(unsafe.Pointer(s)) != 0 && int32(*(*uint8)(unsafe.Pointer(s))) != c) { + break + } + goto _3 + _3: + s++ + } + return s +} diff --git a/vendor/modernc.org/libc/libc_386.go b/vendor/modernc.org/libc/libc_386.go new file mode 100644 index 000000000..a0b386687 --- /dev/null +++ b/vendor/modernc.org/libc/libc_386.go @@ -0,0 +1,40 @@ +// Copyright 2023 The Libc Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build !linux + +package libc // import "modernc.org/libc" + +import ( + "fmt" + "unsafe" +) + +// Byte loads are atomic on this CPU. +func a_load_8(addr uintptr) uint32 { + return uint32(*(*byte)(unsafe.Pointer(addr))) +} + +// int16 loads are atomic on this CPU when properly aligned. +func a_load_16(addr uintptr) uint32 { + if addr&1 != 0 { + panic(fmt.Errorf("unaligned atomic 16 bit access at %#0x", addr)) + } + + return uint32(*(*uint16)(unsafe.Pointer(addr))) +} + +// Byte sores are atomic on this CPU. +func a_store_8(addr uintptr, b byte) { + *(*byte)(unsafe.Pointer(addr)) = b +} + +// int16 stores are atomic on this CPU when properly aligned. +func a_store_16(addr uintptr, n uint16) { + if addr&1 != 0 { + panic(fmt.Errorf("unaligned atomic 16 bit access at %#0x", addr)) + } + + *(*uint16)(unsafe.Pointer(addr)) = n +} diff --git a/vendor/modernc.org/libc/libc_all.go b/vendor/modernc.org/libc/libc_all.go new file mode 100644 index 000000000..dc7c95adb --- /dev/null +++ b/vendor/modernc.org/libc/libc_all.go @@ -0,0 +1,122 @@ +// Copyright 2024 The Libc Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package libc is a partial reimplementation of C libc in pure Go. +package libc // import "modernc.org/libc" + +import ( + "math" + "sync/atomic" + "unsafe" +) + +type integer interface { + ~int | ~int32 | ~int64 | ~uint | ~uint32 | ~uint64 | ~uintptr +} + +func X__sync_add_and_fetch[T integer](t *TLS, p uintptr, v T) T { + switch unsafe.Sizeof(v) { + case 4: + return T(atomic.AddInt32((*int32)(unsafe.Pointer(p)), int32(v))) + case 8: + return T(atomic.AddInt64((*int64)(unsafe.Pointer(p)), int64(v))) + default: + panic(todo("")) + } +} + +func X__sync_sub_and_fetch[T integer](t *TLS, p uintptr, v T) T { + switch unsafe.Sizeof(v) { + case 4: + return T(atomic.AddInt32((*int32)(unsafe.Pointer(p)), -int32(v))) + case 8: + return T(atomic.AddInt64((*int64)(unsafe.Pointer(p)), -int64(v))) + default: + panic(todo("")) + } +} + +// GoString returns the value of a C string at s. +func GoString(s uintptr) string { + if s == 0 { + return "" + } + + if n := strlen(s); n != 0 { + return string(unsafe.Slice((*byte)(unsafe.Pointer(s)), n)) + } + + return "" +} + +// GoBytes returns a byte slice from a C char* having length len bytes. +func GoBytes(s uintptr, len int) []byte { + return unsafe.Slice((*byte)(unsafe.Pointer(s)), len) +} + +func X__isfinitef(tls *TLS, f float32) int32 { + d := float64(f) + if !math.IsInf(d, 0) && !math.IsNaN(d) { + return 1 + } + + return 0 +} + +func X__isfinite(tls *TLS, d float64) int32 { + if !math.IsInf(d, 0) && !math.IsNaN(d) { + return 1 + } + + return 0 +} + +func X__isfinitel(tls *TLS, d float64) int32 { + if !math.IsInf(d, 0) && !math.IsNaN(d) { + return 1 + } + + return 0 +} + +func strlen(s uintptr) (r Tsize_t) { + if s == 0 { + return 0 + } + + for ; *(*int8)(unsafe.Pointer(s)) != 0; s++ { + r++ + } + + return r +} + +// size_t strlen(const char *s) +func Xstrlen(t *TLS, s uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("t=%v s=%v, (%v:)", t, s, origin(2)) + defer func() { trc("-> %v", r) }() + } + return strlen(s) + +} + +func _strlen(t *TLS, s uintptr) (r Tsize_t) { + return strlen(s) +} + +func X__builtin_ilogb(tls *TLS, x float64) int32 { + return int32(math.Ilogb(x)) +} + +func X__builtin_ilogbl(tls *TLS, x float64) int32 { + return int32(math.Ilogb(x)) +} + +func X__builtin_ilogbf(tls *TLS, x float32) int32 { + // Casting to float64 is safe and mathematically correct here. + // Subnormal float32 values become normal float64 values, + // which allows math.Ilogb to correctly return their negative exponent. + return int32(math.Ilogb(float64(x))) +} diff --git a/vendor/modernc.org/libc/libc_amd64.go b/vendor/modernc.org/libc/libc_amd64.go new file mode 100644 index 000000000..3f21041de --- /dev/null +++ b/vendor/modernc.org/libc/libc_amd64.go @@ -0,0 +1,40 @@ +// Copyright 2023 The Libc Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build !(linux && amd64) + +package libc // import "modernc.org/libc" + +import ( + "fmt" + "unsafe" +) + +// Byte loads are atomic on this CPU. +func a_load_8(addr uintptr) uint32 { + return uint32(*(*byte)(unsafe.Pointer(addr))) +} + +// int16 loads are atomic on this CPU when properly aligned. +func a_load_16(addr uintptr) uint32 { + if addr&1 != 0 { + panic(fmt.Errorf("unaligned atomic 16 bit access at %#0x", addr)) + } + + return uint32(*(*uint16)(unsafe.Pointer(addr))) +} + +// Byte sores are atomic on this CPU. +func a_store_8(addr uintptr, b byte) { + *(*byte)(unsafe.Pointer(addr)) = b +} + +// int16 stores are atomic on this CPU when properly aligned. +func a_store_16(addr uintptr, n uint16) { + if addr&1 != 0 { + panic(fmt.Errorf("unaligned atomic 16 bit access at %#0x", addr)) + } + + *(*uint16)(unsafe.Pointer(addr)) = n +} diff --git a/vendor/modernc.org/libc/libc_arm.go b/vendor/modernc.org/libc/libc_arm.go new file mode 100644 index 000000000..a0b386687 --- /dev/null +++ b/vendor/modernc.org/libc/libc_arm.go @@ -0,0 +1,40 @@ +// Copyright 2023 The Libc Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build !linux + +package libc // import "modernc.org/libc" + +import ( + "fmt" + "unsafe" +) + +// Byte loads are atomic on this CPU. +func a_load_8(addr uintptr) uint32 { + return uint32(*(*byte)(unsafe.Pointer(addr))) +} + +// int16 loads are atomic on this CPU when properly aligned. +func a_load_16(addr uintptr) uint32 { + if addr&1 != 0 { + panic(fmt.Errorf("unaligned atomic 16 bit access at %#0x", addr)) + } + + return uint32(*(*uint16)(unsafe.Pointer(addr))) +} + +// Byte sores are atomic on this CPU. +func a_store_8(addr uintptr, b byte) { + *(*byte)(unsafe.Pointer(addr)) = b +} + +// int16 stores are atomic on this CPU when properly aligned. +func a_store_16(addr uintptr, n uint16) { + if addr&1 != 0 { + panic(fmt.Errorf("unaligned atomic 16 bit access at %#0x", addr)) + } + + *(*uint16)(unsafe.Pointer(addr)) = n +} diff --git a/vendor/modernc.org/libc/libc_arm64.go b/vendor/modernc.org/libc/libc_arm64.go new file mode 100644 index 000000000..a430862bb --- /dev/null +++ b/vendor/modernc.org/libc/libc_arm64.go @@ -0,0 +1,40 @@ +// Copyright 2023 The Libc Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build !(linux && arm64) + +package libc // import "modernc.org/libc" + +import ( + "fmt" + "unsafe" +) + +// Byte loads are atomic on this CPU. +func a_load_8(addr uintptr) uint32 { + return uint32(*(*byte)(unsafe.Pointer(addr))) +} + +// int16 loads are atomic on this CPU when properly aligned. +func a_load_16(addr uintptr) uint32 { + if addr&1 != 0 { + panic(fmt.Errorf("unaligned atomic 16 bit access at %#0x", addr)) + } + + return uint32(*(*uint16)(unsafe.Pointer(addr))) +} + +// Byte sores are atomic on this CPU. +func a_store_8(addr uintptr, b byte) { + *(*byte)(unsafe.Pointer(addr)) = b +} + +// int16 stores are atomic on this CPU when properly aligned. +func a_store_16(addr uintptr, n uint16) { + if addr&1 != 0 { + panic(fmt.Errorf("unaligned atomic 16 bit access at %#0x", addr)) + } + + *(*uint16)(unsafe.Pointer(addr)) = n +} diff --git a/vendor/modernc.org/libc/libc_darwin.go b/vendor/modernc.org/libc/libc_darwin.go index 1dc5b9260..f41444409 100644 --- a/vendor/modernc.org/libc/libc_darwin.go +++ b/vendor/modernc.org/libc/libc_darwin.go @@ -7,15 +7,17 @@ package libc // import "modernc.org/libc" import ( crand "crypto/rand" "encoding/hex" + "errors" "fmt" "io" + "io/fs" + mbits "math/bits" "os" "os/exec" gosignal "os/signal" "path/filepath" "runtime" "strings" - "syscall" gotime "time" "unicode" "unsafe" @@ -40,6 +42,7 @@ import ( "modernc.org/libc/unistd" "modernc.org/libc/uuid/uuid" "modernc.org/libc/wctype" + "modernc.org/memory" ) const ( @@ -50,9 +53,12 @@ const ( // in6_addr_any in.In6_addr // ) +type Tsize_t = types.Size_t + type ( - long = types.User_long_t - ulong = types.User_ulong_t + syscallErrno = unix.Errno + long = types.User_long_t + ulong = types.User_ulong_t ) // // Keep these outside of the var block otherwise go generate will miss them. @@ -90,6 +96,18 @@ func (f file) setErr() { (*stdio.FILE)(unsafe.Pointer(f)).F_flags |= 1 } +func (f file) clearErr() { + (*stdio.FILE)(unsafe.Pointer(f)).F_flags &^= 3 +} + +func (f file) eof() bool { + return (*stdio.FILE)(unsafe.Pointer(f)).F_flags&2 != 0 +} + +func (f file) setEOF() { + (*stdio.FILE)(unsafe.Pointer(f)).F_flags |= 2 +} + func (f file) close(t *TLS) int32 { r := Xclose(t, f.fd()) Xfree(t, uintptr(f)) @@ -121,24 +139,63 @@ func fwrite(fd int32, b []byte) (int, error) { return unix.Write(int(fd), b) } -func X__inline_isnand(t *TLS, x float64) int32 { return Xisnan(t, x) } -func X__inline_isnanf(t *TLS, x float32) int32 { return Xisnanf(t, x) } -func X__inline_isnanl(t *TLS, x float64) int32 { return Xisnan(t, x) } +func Xclearerr(tls *TLS, f uintptr) { + file(f).clearErr() +} + +func Xfeof(t *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("t=%v f=%v, (%v:)", t, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + r = BoolInt32(file(f).eof()) + return r +} + +func X__inline_isnand(t *TLS, x float64) int32 { + if __ccgo_strace { + trc("t=%v x=%v, (%v:)", t, x, origin(2)) + } + return Xisnan(t, x) +} + +func X__inline_isnanf(t *TLS, x float32) int32 { + if __ccgo_strace { + trc("t=%v x=%v, (%v:)", t, x, origin(2)) + } + return Xisnanf(t, x) +} + +func X__inline_isnanl(t *TLS, x float64) int32 { + if __ccgo_strace { + trc("t=%v x=%v, (%v:)", t, x, origin(2)) + } + return Xisnan(t, x) +} // int fprintf(FILE *stream, const char *format, ...); func Xfprintf(t *TLS, stream, format, args uintptr) int32 { + if __ccgo_strace { + trc("t=%v args=%v, (%v:)", t, args, origin(2)) + } n, _ := fwrite(int32((*stdio.FILE)(unsafe.Pointer(stream)).F_file), printf(format, args)) return int32(n) } // int usleep(useconds_t usec); func Xusleep(t *TLS, usec types.Useconds_t) int32 { + if __ccgo_strace { + trc("t=%v usec=%v, (%v:)", t, usec, origin(2)) + } gotime.Sleep(gotime.Microsecond * gotime.Duration(usec)) return 0 } // int futimes(int fd, const struct timeval tv[2]); func Xfutimes(t *TLS, fd int32, tv uintptr) int32 { + if __ccgo_strace { + trc("t=%v fd=%v tv=%v, (%v:)", t, fd, tv, origin(2)) + } var a []unix.Timeval if tv != 0 { a = make([]unix.Timeval, 2) @@ -161,11 +218,17 @@ func Xfutimes(t *TLS, fd int32, tv uintptr) int32 { // void srandomdev(void); func Xsrandomdev(t *TLS) { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } panic(todo("")) } // int gethostuuid(uuid_t id, const struct timespec *wait); func Xgethostuuid(t *TLS, id uintptr, wait uintptr) int32 { + if __ccgo_strace { + trc("t=%v id=%v wait=%v, (%v:)", t, id, wait, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_GETHOSTUUID, id, wait, 0); err != 0 { // Cannot avoid the syscall here. if dmesgs { dmesg("%v: %v FAIL", origin(1), err) @@ -182,6 +245,9 @@ func Xgethostuuid(t *TLS, id uintptr, wait uintptr) int32 { // int flock(int fd, int operation); func Xflock(t *TLS, fd, operation int32) int32 { + if __ccgo_strace { + trc("t=%v operation=%v, (%v:)", t, operation, origin(2)) + } if err := unix.Flock(int(fd), int(operation)); err != nil { if dmesgs { dmesg("%v: %v FAIL", origin(1), err) @@ -198,6 +264,9 @@ func Xflock(t *TLS, fd, operation int32) int32 { // int fsctl(const char *,unsigned long,void*,unsigned int); func Xfsctl(t *TLS, path uintptr, request ulong, data uintptr, options uint32) int32 { + if __ccgo_strace { + trc("t=%v path=%v request=%v data=%v options=%v, (%v:)", t, path, request, data, options, origin(2)) + } panic(todo("")) // if _, _, err := unix.Syscall6(unix.SYS_FSCTL, path, uintptr(request), data, uintptr(options), 0, 0); err != 0 { // t.setErrno(err) @@ -209,16 +278,25 @@ func Xfsctl(t *TLS, path uintptr, request ulong, data uintptr, options uint32) i // int * __error(void); func X__error(t *TLS) uintptr { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } return t.errnop } // int isspace(int c); func Xisspace(t *TLS, c int32) int32 { + if __ccgo_strace { + trc("t=%v c=%v, (%v:)", t, c, origin(2)) + } return __isspace(t, c) } // void __assert_rtn(const char *, const char *, int, const char *) func X__assert_rtn(t *TLS, function, file uintptr, line int32, assertion uintptr) { + if __ccgo_strace { + trc("t=%v file=%v line=%v assertion=%v, (%v:)", t, file, line, assertion, origin(2)) + } panic(todo("")) // fmt.Fprintf(os.Stderr, "assertion failure: %s:%d.%s: %s\n", GoString(file), line, GoString(function), GoString(assertion)) // os.Stderr.Sync() @@ -227,6 +305,9 @@ func X__assert_rtn(t *TLS, function, file uintptr, line int32, assertion uintptr // int getrusage(int who, struct rusage *usage); func Xgetrusage(t *TLS, who int32, usage uintptr) int32 { + if __ccgo_strace { + trc("t=%v who=%v usage=%v, (%v:)", t, who, usage, origin(2)) + } panic(todo("")) // if _, _, err := unix.Syscall(unix.SYS_GETRUSAGE, uintptr(who), usage, 0); err != 0 { // t.setErrno(err) @@ -238,6 +319,9 @@ func Xgetrusage(t *TLS, who int32, usage uintptr) int32 { // int fgetc(FILE *stream); func Xfgetc(t *TLS, stream uintptr) int32 { + if __ccgo_strace { + trc("t=%v stream=%v, (%v:)", t, stream, origin(2)) + } fd := int((*stdio.FILE)(unsafe.Pointer(stream)).F_file) var buf [1]byte if n, _ := unix.Read(fd, buf[:]); n != 0 { @@ -249,16 +333,25 @@ func Xfgetc(t *TLS, stream uintptr) int32 { // int lstat(const char *pathname, struct stat *statbuf); func Xlstat(t *TLS, pathname, statbuf uintptr) int32 { + if __ccgo_strace { + trc("t=%v statbuf=%v, (%v:)", t, statbuf, origin(2)) + } return Xlstat64(t, pathname, statbuf) } // int stat(const char *pathname, struct stat *statbuf); func Xstat(t *TLS, pathname, statbuf uintptr) int32 { + if __ccgo_strace { + trc("t=%v statbuf=%v, (%v:)", t, statbuf, origin(2)) + } return Xstat64(t, pathname, statbuf) } // int chdir(const char *path); func Xchdir(t *TLS, path uintptr) int32 { + if __ccgo_strace { + trc("t=%v path=%v, (%v:)", t, path, origin(2)) + } if err := unix.Chdir(GoString(path)); err != nil { if dmesgs { dmesg("%v: %q: %v FAIL", origin(1), GoString(path), err) @@ -277,11 +370,7 @@ var localtime time.Tm // struct tm *localtime(const time_t *timep); func Xlocaltime(_ *TLS, timep uintptr) uintptr { - loc := gotime.Local - if r := getenv(Environ(), "TZ"); r != 0 { - zone, off := parseZone(GoString(r)) - loc = gotime.FixedZone(zone, -off) - } + loc := getLocalLocation() ut := *(*time.Time_t)(unsafe.Pointer(timep)) t := gotime.Unix(int64(ut), 0).In(loc) localtime.Ftm_sec = int32(t.Second()) @@ -293,16 +382,15 @@ func Xlocaltime(_ *TLS, timep uintptr) uintptr { localtime.Ftm_wday = int32(t.Weekday()) localtime.Ftm_yday = int32(t.YearDay()) localtime.Ftm_isdst = Bool32(isTimeDST(t)) + _, off := t.Zone() + localtime.Ftm_gmtoff = int64(off) + localtime.Ftm_zone = 0 return uintptr(unsafe.Pointer(&localtime)) } // struct tm *localtime_r(const time_t *timep, struct tm *result); func Xlocaltime_r(_ *TLS, timep, result uintptr) uintptr { - loc := gotime.Local - if r := getenv(Environ(), "TZ"); r != 0 { - zone, off := parseZone(GoString(r)) - loc = gotime.FixedZone(zone, -off) - } + loc := getLocalLocation() ut := *(*time_t)(unsafe.Pointer(timep)) t := gotime.Unix(int64(ut), 0).In(loc) (*time.Tm)(unsafe.Pointer(result)).Ftm_sec = int32(t.Second()) @@ -314,11 +402,17 @@ func Xlocaltime_r(_ *TLS, timep, result uintptr) uintptr { (*time.Tm)(unsafe.Pointer(result)).Ftm_wday = int32(t.Weekday()) (*time.Tm)(unsafe.Pointer(result)).Ftm_yday = int32(t.YearDay()) (*time.Tm)(unsafe.Pointer(result)).Ftm_isdst = Bool32(isTimeDST(t)) + _, off := t.Zone() + (*time.Tm)(unsafe.Pointer(result)).Ftm_gmtoff = int64(off) + (*time.Tm)(unsafe.Pointer(result)).Ftm_zone = 0 return result } // int open(const char *pathname, int flags, ...); func Xopen(t *TLS, pathname uintptr, flags int32, args uintptr) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v flags=%v args=%v, (%v:)", t, pathname, flags, args, origin(2)) + } var mode types.Mode_t if args != 0 { mode = (types.Mode_t)(VaUint32(&args)) @@ -340,6 +434,9 @@ func Xopen(t *TLS, pathname uintptr, flags int32, args uintptr) int32 { // off_t lseek(int fd, off_t offset, int whence); func Xlseek(t *TLS, fd int32, offset types.Off_t, whence int32) types.Off_t { + if __ccgo_strace { + trc("t=%v fd=%v offset=%v whence=%v, (%v:)", t, fd, offset, whence, origin(2)) + } return types.Off_t(Xlseek64(t, fd, offset, whence)) } @@ -360,6 +457,9 @@ var fsyncStatbuf stat.Stat // int fsync(int fd); func Xfsync(t *TLS, fd int32) int32 { + if __ccgo_strace { + trc("t=%v fd=%v, (%v:)", t, fd, origin(2)) + } if noFsync { // Simulate -DSQLITE_NO_SYNC for sqlite3 testfixture, see function full_sync in sqlite3.c return Xfstat(t, fd, uintptr(unsafe.Pointer(&fsyncStatbuf))) @@ -381,18 +481,26 @@ func Xfsync(t *TLS, fd int32) int32 { // long sysconf(int name); func Xsysconf(t *TLS, name int32) long { + if __ccgo_strace { + trc("t=%v name=%v, (%v:)", t, name, origin(2)) + } switch name { case unistd.X_SC_PAGESIZE: return long(unix.Getpagesize()) case unistd.X_SC_NPROCESSORS_ONLN: return long(runtime.NumCPU()) + case unistd.X_SC_GETPW_R_SIZE_MAX: + return 128 } - panic(todo("")) + panic(todo("", name)) } // int close(int fd); func Xclose(t *TLS, fd int32) int32 { + if __ccgo_strace { + trc("t=%v fd=%v, (%v:)", t, fd, origin(2)) + } if err := unix.Close(int(fd)); err != nil { if dmesgs { dmesg("%v: %v FAIL", origin(1), err) @@ -409,6 +517,9 @@ func Xclose(t *TLS, fd int32) int32 { // char *getcwd(char *buf, size_t size); func Xgetcwd(t *TLS, buf uintptr, size types.Size_t) uintptr { + if __ccgo_strace { + trc("t=%v buf=%v size=%v, (%v:)", t, buf, size, origin(2)) + } if _, err := unix.Getcwd((*RawMem)(unsafe.Pointer(buf))[:size:size]); err != nil { if dmesgs { dmesg("%v: %v FAIL", origin(1), err) @@ -425,11 +536,17 @@ func Xgetcwd(t *TLS, buf uintptr, size types.Size_t) uintptr { // int fstat(int fd, struct stat *statbuf); func Xfstat(t *TLS, fd int32, statbuf uintptr) int32 { + if __ccgo_strace { + trc("t=%v fd=%v statbuf=%v, (%v:)", t, fd, statbuf, origin(2)) + } return Xfstat64(t, fd, statbuf) } // int ftruncate(int fd, off_t length); func Xftruncate(t *TLS, fd int32, length types.Off_t) int32 { + if __ccgo_strace { + trc("t=%v fd=%v length=%v, (%v:)", t, fd, length, origin(2)) + } if err := unix.Ftruncate(int(fd), int64(length)); err != nil { if dmesgs { dmesg("%v: fd %d: %v FAIL", origin(1), fd, err) @@ -446,11 +563,17 @@ func Xftruncate(t *TLS, fd int32, length types.Off_t) int32 { // int fcntl(int fd, int cmd, ... /* arg */ ); func Xfcntl(t *TLS, fd, cmd int32, args uintptr) int32 { + if __ccgo_strace { + trc("t=%v cmd=%v args=%v, (%v:)", t, cmd, args, origin(2)) + } return Xfcntl64(t, fd, cmd, args) } // ssize_t read(int fd, void *buf, size_t count); func Xread(t *TLS, fd int32, buf uintptr, count types.Size_t) types.Ssize_t { + if __ccgo_strace { + trc("t=%v fd=%v buf=%v count=%v, (%v:)", t, fd, buf, count, origin(2)) + } var n int var err error switch { @@ -478,6 +601,9 @@ func Xread(t *TLS, fd int32, buf uintptr, count types.Size_t) types.Ssize_t { // ssize_t write(int fd, const void *buf, size_t count); func Xwrite(t *TLS, fd int32, buf uintptr, count types.Size_t) types.Ssize_t { + if __ccgo_strace { + trc("t=%v fd=%v buf=%v count=%v, (%v:)", t, fd, buf, count, origin(2)) + } var n int var err error switch { @@ -505,6 +631,9 @@ func Xwrite(t *TLS, fd int32, buf uintptr, count types.Size_t) types.Ssize_t { // int fchmod(int fd, mode_t mode); func Xfchmod(t *TLS, fd int32, mode types.Mode_t) int32 { + if __ccgo_strace { + trc("t=%v fd=%v mode=%v, (%v:)", t, fd, mode, origin(2)) + } if err := unix.Fchmod(int(fd), uint32(mode)); err != nil { if dmesgs { dmesg("%v: %d %#o: %v FAIL", origin(1), fd, mode, err) @@ -521,6 +650,9 @@ func Xfchmod(t *TLS, fd int32, mode types.Mode_t) int32 { // int fchown(int fd, uid_t owner, gid_t group); func Xfchown(t *TLS, fd int32, owner types.Uid_t, group types.Gid_t) int32 { + if __ccgo_strace { + trc("t=%v fd=%v owner=%v group=%v, (%v:)", t, fd, owner, group, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_FCHOWN, uintptr(fd), uintptr(owner), uintptr(group)); err != 0 { t.setErrno(err) return -1 @@ -531,6 +663,9 @@ func Xfchown(t *TLS, fd int32, owner types.Uid_t, group types.Gid_t) int32 { // uid_t geteuid(void); func Xgeteuid(t *TLS) types.Uid_t { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } r := types.Uid_t(unix.Geteuid()) if dmesgs { dmesg("%v: %v", origin(1), r) @@ -540,6 +675,9 @@ func Xgeteuid(t *TLS) types.Uid_t { // void *mmap(void *addr, size_t length, int prot, int flags, int fd, off_t offset); func Xmmap(t *TLS, addr uintptr, length types.Size_t, prot, flags, fd int32, offset types.Off_t) uintptr { + if __ccgo_strace { + trc("t=%v addr=%v length=%v fd=%v offset=%v, (%v:)", t, addr, length, fd, offset, origin(2)) + } // Cannot avoid the syscall here, addr sometimes matter. data, _, err := unix.Syscall6(unix.SYS_MMAP, addr, uintptr(length), uintptr(prot), uintptr(flags), uintptr(fd), uintptr(offset)) if err != 0 { @@ -558,6 +696,9 @@ func Xmmap(t *TLS, addr uintptr, length types.Size_t, prot, flags, fd int32, off // int munmap(void *addr, size_t length); func Xmunmap(t *TLS, addr uintptr, length types.Size_t) int32 { + if __ccgo_strace { + trc("t=%v addr=%v length=%v, (%v:)", t, addr, length, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_MUNMAP, addr, uintptr(length), 0); err != 0 { // Cannot avoid the syscall here, must pair with mmap. if dmesgs { dmesg("%v: %v FAIL", origin(1), err) @@ -571,6 +712,9 @@ func Xmunmap(t *TLS, addr uintptr, length types.Size_t) int32 { // int gettimeofday(struct timeval *tv, struct timezone *tz); func Xgettimeofday(t *TLS, tv, tz uintptr) int32 { + if __ccgo_strace { + trc("t=%v tz=%v, (%v:)", t, tz, origin(2)) + } if tz != 0 { panic(todo("")) } @@ -591,6 +735,9 @@ func Xgettimeofday(t *TLS, tv, tz uintptr) int32 { // int getsockopt(int sockfd, int level, int optname, void *optval, socklen_t *optlen); func Xgetsockopt(t *TLS, sockfd, level, optname int32, optval, optlen uintptr) int32 { + if __ccgo_strace { + trc("t=%v optname=%v optlen=%v, (%v:)", t, optname, optlen, origin(2)) + } if _, _, err := unix.Syscall6(unix.SYS_GETSOCKOPT, uintptr(sockfd), uintptr(level), uintptr(optname), optval, optlen, 0); err != 0 { t.setErrno(err) return -1 @@ -601,6 +748,9 @@ func Xgetsockopt(t *TLS, sockfd, level, optname int32, optval, optlen uintptr) i // int setsockopt(int sockfd, int level, int optname, const void *optval, socklen_t optlen); func Xsetsockopt(t *TLS, sockfd, level, optname int32, optval uintptr, optlen socket.Socklen_t) int32 { + if __ccgo_strace { + trc("t=%v optname=%v optval=%v optlen=%v, (%v:)", t, optname, optval, optlen, origin(2)) + } if _, _, err := unix.Syscall6(unix.SYS_SETSOCKOPT, uintptr(sockfd), uintptr(level), uintptr(optname), optval, uintptr(optlen), 0); err != 0 { t.setErrno(err) return -1 @@ -611,6 +761,9 @@ func Xsetsockopt(t *TLS, sockfd, level, optname int32, optval uintptr, optlen so // int ioctl(int fd, unsigned long request, ...); func Xioctl(t *TLS, fd int32, request ulong, va uintptr) int32 { + if __ccgo_strace { + trc("t=%v fd=%v request=%v va=%v, (%v:)", t, fd, request, va, origin(2)) + } var argp uintptr if va != 0 { argp = VaUintptr(&va) @@ -626,6 +779,9 @@ func Xioctl(t *TLS, fd int32, request ulong, va uintptr) int32 { // int getsockname(int sockfd, struct sockaddr *addr, socklen_t *addrlen); func Xgetsockname(t *TLS, sockfd int32, addr, addrlen uintptr) int32 { + if __ccgo_strace { + trc("t=%v sockfd=%v addrlen=%v, (%v:)", t, sockfd, addrlen, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_GETSOCKNAME, uintptr(sockfd), addr, addrlen); err != 0 { // Cannot avoid the syscall here. if dmesgs { dmesg("%v: fd %v: %v FAIL", origin(1), sockfd, err) @@ -642,6 +798,9 @@ func Xgetsockname(t *TLS, sockfd int32, addr, addrlen uintptr) int32 { // int select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout); func Xselect(t *TLS, nfds int32, readfds, writefds, exceptfds, timeout uintptr) int32 { + if __ccgo_strace { + trc("t=%v nfds=%v timeout=%v, (%v:)", t, nfds, timeout, origin(2)) + } n, err := unix.Select( int(nfds), (*unix.FdSet)(unsafe.Pointer(readfds)), @@ -665,6 +824,9 @@ func Xselect(t *TLS, nfds int32, readfds, writefds, exceptfds, timeout uintptr) // int mkfifo(const char *pathname, mode_t mode); func Xmkfifo(t *TLS, pathname uintptr, mode types.Mode_t) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v mode=%v, (%v:)", t, pathname, mode, origin(2)) + } if err := unix.Mkfifo(GoString(pathname), uint32(mode)); err != nil { t.setErrno(err) return -1 @@ -675,6 +837,9 @@ func Xmkfifo(t *TLS, pathname uintptr, mode types.Mode_t) int32 { // mode_t umask(mode_t mask); func Xumask(t *TLS, mask types.Mode_t) types.Mode_t { + if __ccgo_strace { + trc("t=%v mask=%v, (%v:)", t, mask, origin(2)) + } return types.Mode_t(unix.Umask(int(mask))) } @@ -690,6 +855,9 @@ func Xumask(t *TLS, mask types.Mode_t) types.Mode_t { // pid_t (pid_t pid, int *wstatus, int options); func Xwaitpid(t *TLS, pid types.Pid_t, wstatus uintptr, optname int32) types.Pid_t { + if __ccgo_strace { + trc("t=%v pid=%v wstatus=%v optname=%v, (%v:)", t, pid, wstatus, optname, origin(2)) + } n, err := unix.Wait4(int(pid), (*unix.WaitStatus)(unsafe.Pointer(wstatus)), int(optname), nil) if err != nil { if dmesgs { @@ -707,6 +875,9 @@ func Xwaitpid(t *TLS, pid types.Pid_t, wstatus uintptr, optname int32) types.Pid // int uname(struct utsname *buf); func Xuname(t *TLS, buf uintptr) int32 { + if __ccgo_strace { + trc("t=%v buf=%v, (%v:)", t, buf, origin(2)) + } if err := unix.Uname((*unix.Utsname)(unsafe.Pointer(buf))); err != nil { if dmesgs { dmesg("%v: %v FAIL", origin(1), err) @@ -723,6 +894,9 @@ func Xuname(t *TLS, buf uintptr) int32 { // ssize_t recv(int sockfd, void *buf, size_t len, int flags); func Xrecv(t *TLS, sockfd int32, buf uintptr, len types.Size_t, flags int32) types.Ssize_t { + if __ccgo_strace { + trc("t=%v sockfd=%v buf=%v len=%v flags=%v, (%v:)", t, sockfd, buf, len, flags, origin(2)) + } n, _, err := unix.Syscall6(unix.SYS_RECVFROM, uintptr(sockfd), buf, uintptr(len), uintptr(flags), 0, 0) if err != 0 { t.setErrno(err) @@ -734,6 +908,9 @@ func Xrecv(t *TLS, sockfd int32, buf uintptr, len types.Size_t, flags int32) typ // ssize_t send(int sockfd, const void *buf, size_t len, int flags); func Xsend(t *TLS, sockfd int32, buf uintptr, len types.Size_t, flags int32) types.Ssize_t { + if __ccgo_strace { + trc("t=%v sockfd=%v buf=%v len=%v flags=%v, (%v:)", t, sockfd, buf, len, flags, origin(2)) + } n, _, err := unix.Syscall6(unix.SYS_SENDTO, uintptr(sockfd), buf, uintptr(len), uintptr(flags), 0, 0) if err != 0 { t.setErrno(err) @@ -745,6 +922,9 @@ func Xsend(t *TLS, sockfd int32, buf uintptr, len types.Size_t, flags int32) typ // int shutdown(int sockfd, int how); func Xshutdown(t *TLS, sockfd, how int32) int32 { + if __ccgo_strace { + trc("t=%v how=%v, (%v:)", t, how, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_SHUTDOWN, uintptr(sockfd), uintptr(how), 0); err != 0 { t.setErrno(err) return -1 @@ -755,6 +935,9 @@ func Xshutdown(t *TLS, sockfd, how int32) int32 { // int getpeername(int sockfd, struct sockaddr *addr, socklen_t *addrlen); func Xgetpeername(t *TLS, sockfd int32, addr uintptr, addrlen uintptr) int32 { + if __ccgo_strace { + trc("t=%v sockfd=%v addr=%v addrlen=%v, (%v:)", t, sockfd, addr, addrlen, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_GETPEERNAME, uintptr(sockfd), addr, uintptr(addrlen)); err != 0 { t.setErrno(err) return -1 @@ -765,6 +948,9 @@ func Xgetpeername(t *TLS, sockfd int32, addr uintptr, addrlen uintptr) int32 { // int socket(int domain, int type, int protocol); func Xsocket(t *TLS, domain, type1, protocol int32) int32 { + if __ccgo_strace { + trc("t=%v protocol=%v, (%v:)", t, protocol, origin(2)) + } n, _, err := unix.Syscall(unix.SYS_SOCKET, uintptr(domain), uintptr(type1), uintptr(protocol)) if err != 0 { t.setErrno(err) @@ -776,6 +962,9 @@ func Xsocket(t *TLS, domain, type1, protocol int32) int32 { // int bind(int sockfd, const struct sockaddr *addr, socklen_t addrlen); func Xbind(t *TLS, sockfd int32, addr uintptr, addrlen uint32) int32 { + if __ccgo_strace { + trc("t=%v sockfd=%v addr=%v addrlen=%v, (%v:)", t, sockfd, addr, addrlen, origin(2)) + } n, _, err := unix.Syscall(unix.SYS_BIND, uintptr(sockfd), addr, uintptr(addrlen)) if err != 0 { t.setErrno(err) @@ -787,6 +976,9 @@ func Xbind(t *TLS, sockfd int32, addr uintptr, addrlen uint32) int32 { // int connect(int sockfd, const struct sockaddr *addr, socklen_t addrlen); func Xconnect(t *TLS, sockfd int32, addr uintptr, addrlen uint32) int32 { + if __ccgo_strace { + trc("t=%v sockfd=%v addr=%v addrlen=%v, (%v:)", t, sockfd, addr, addrlen, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_CONNECT, uintptr(sockfd), addr, uintptr(addrlen)); err != 0 { t.setErrno(err) return -1 @@ -797,6 +989,9 @@ func Xconnect(t *TLS, sockfd int32, addr uintptr, addrlen uint32) int32 { // int listen(int sockfd, int backlog); func Xlisten(t *TLS, sockfd, backlog int32) int32 { + if __ccgo_strace { + trc("t=%v backlog=%v, (%v:)", t, backlog, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_LISTEN, uintptr(sockfd), uintptr(backlog), 0); err != 0 { t.setErrno(err) return -1 @@ -807,6 +1002,9 @@ func Xlisten(t *TLS, sockfd, backlog int32) int32 { // int accept(int sockfd, struct sockaddr *addr, socklen_t *addrlen); func Xaccept(t *TLS, sockfd int32, addr uintptr, addrlen uintptr) int32 { + if __ccgo_strace { + trc("t=%v sockfd=%v addr=%v addrlen=%v, (%v:)", t, sockfd, addr, addrlen, origin(2)) + } panic(todo("")) // n, _, err := unix.Syscall6(unix.SYS_ACCEPT4, uintptr(sockfd), addr, uintptr(addrlen), 0, 0, 0) // if err != 0 { @@ -839,6 +1037,9 @@ func Xaccept(t *TLS, sockfd int32, addr uintptr, addrlen uintptr) int32 { // uid_t getuid(void); func Xgetuid(t *TLS) types.Uid_t { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } r := types.Uid_t(os.Getuid()) if dmesgs { dmesg("%v: %v", origin(1), r) @@ -848,6 +1049,9 @@ func Xgetuid(t *TLS) types.Uid_t { // pid_t getpid(void); func Xgetpid(t *TLS) int32 { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } r := int32(os.Getpid()) if dmesgs { dmesg("%v: %v", origin(1), r) @@ -857,6 +1061,9 @@ func Xgetpid(t *TLS) int32 { // int system(const char *command); func Xsystem(t *TLS, command uintptr) int32 { + if __ccgo_strace { + trc("t=%v command=%v, (%v:)", t, command, origin(2)) + } s := GoString(command) if command == 0 { panic(todo("")) @@ -876,11 +1083,17 @@ func Xsystem(t *TLS, command uintptr) int32 { // int setvbuf(FILE *stream, char *buf, int mode, size_t size); func Xsetvbuf(t *TLS, stream, buf uintptr, mode int32, size types.Size_t) int32 { + if __ccgo_strace { + trc("t=%v buf=%v mode=%v size=%v, (%v:)", t, buf, mode, size, origin(2)) + } return 0 //TODO } // int raise(int sig); func Xraise(t *TLS, sig int32) int32 { + if __ccgo_strace { + trc("t=%v sig=%v, (%v:)", t, sig, origin(2)) + } panic(todo("")) } @@ -896,6 +1109,9 @@ func Xraise(t *TLS, sig int32) int32 { // int fileno(FILE *stream); func Xfileno(t *TLS, stream uintptr) int32 { + if __ccgo_strace { + trc("t=%v stream=%v, (%v:)", t, stream, origin(2)) + } if stream == 0 { if dmesgs { dmesg("%v: FAIL", origin(1)) @@ -915,7 +1131,7 @@ func Xfileno(t *TLS, stream uintptr) int32 { return -1 } -func newFtsent(t *TLS, info int, path string, stat *unix.Stat_t, err syscall.Errno) (r *fts.FTSENT) { +func newFtsent(t *TLS, info int, path string, stat *unix.Stat_t, err syscallErrno) (r *fts.FTSENT) { var statp uintptr if stat != nil { statp = Xmalloc(t, types.Size_t(unsafe.Sizeof(unix.Stat_t{}))) @@ -939,7 +1155,7 @@ func newFtsent(t *TLS, info int, path string, stat *unix.Stat_t, err syscall.Err } } -func newCFtsent(t *TLS, info int, path string, stat *unix.Stat_t, err syscall.Errno) uintptr { +func newCFtsent(t *TLS, info int, path string, stat *unix.Stat_t, err syscallErrno) uintptr { p := Xcalloc(t, 1, types.Size_t(unsafe.Sizeof(fts.FTSENT{}))) if p == 0 { panic("OOM") @@ -969,6 +1185,9 @@ func (f *ftstream) close(t *TLS) { // FTS *fts_open(char * const *path_argv, int options, int (*compar)(const FTSENT **, const FTSENT **)); func Xfts_open(t *TLS, path_argv uintptr, options int32, compar uintptr) uintptr { + if __ccgo_strace { + trc("t=%v path_argv=%v options=%v compar=%v, (%v:)", t, path_argv, options, compar, origin(2)) + } f := &ftstream{} var walk func(string) @@ -1073,6 +1292,9 @@ func Xfts_open(t *TLS, path_argv uintptr, options int32, compar uintptr) uintptr // FTSENT *fts_read(FTS *ftsp); func Xfts_read(t *TLS, ftsp uintptr) uintptr { + if __ccgo_strace { + trc("t=%v ftsp=%v, (%v:)", t, ftsp, origin(2)) + } f := getObject(ftsp).(*ftstream) if f.x == len(f.s) { if dmesgs { @@ -1095,6 +1317,9 @@ func Xfts_read(t *TLS, ftsp uintptr) uintptr { // int fts_close(FTS *ftsp); func Xfts_close(t *TLS, ftsp uintptr) int32 { + if __ccgo_strace { + trc("t=%v ftsp=%v, (%v:)", t, ftsp, origin(2)) + } getObject(ftsp).(*ftstream).close(t) removeObject(ftsp) return 0 @@ -1102,41 +1327,75 @@ func Xfts_close(t *TLS, ftsp uintptr) int32 { // void tzset (void); func Xtzset(t *TLS) { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } //TODO } +var strerrorBuf [100]byte + // char *strerror(int errnum); func Xstrerror(t *TLS, errnum int32) uintptr { - panic(todo("")) + if __ccgo_strace { + trc("t=%v errnum=%v, (%v:)", t, errnum, origin(2)) + } + // if dmesgs { + // dmesg("%v: %v\n%s", origin(1), errnum, debug.Stack()) + // } + copy(strerrorBuf[:], fmt.Sprintf("strerror(%d)\x00", errnum)) + return uintptr(unsafe.Pointer(&strerrorBuf[0])) } // void *dlopen(const char *filename, int flags); func Xdlopen(t *TLS, filename uintptr, flags int32) uintptr { + if __ccgo_strace { + trc("t=%v filename=%v flags=%v, (%v:)", t, filename, flags, origin(2)) + } panic(todo("")) } // char *dlerror(void); func Xdlerror(t *TLS) uintptr { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } panic(todo("")) } // int dlclose(void *handle); func Xdlclose(t *TLS, handle uintptr) int32 { + if __ccgo_strace { + trc("t=%v handle=%v, (%v:)", t, handle, origin(2)) + } panic(todo("")) } // void *dlsym(void *handle, const char *symbol); func Xdlsym(t *TLS, handle, symbol uintptr) uintptr { + if __ccgo_strace { + trc("t=%v symbol=%v, (%v:)", t, symbol, origin(2)) + } panic(todo("")) } // void perror(const char *s); -func Xperror(t *TLS, s uintptr) { - panic(todo("")) +func Xperror(tls *TLS, msg uintptr) { + if __ccgo_strace { + trc("tls=%v msg=%v, (%v:)", tls, msg, origin(2)) + } + if msg != 0 && *(*int8)(unsafe.Pointer(msg)) != 0 { + fmt.Fprintf(os.Stderr, "%s: ", GoString(msg)) + } + errstr := Xstrerror(tls, *(*int32)(unsafe.Pointer(X__errno_location(tls)))) + fmt.Fprintf(os.Stderr, "%s\n", GoString(errstr)) } // int pclose(FILE *stream); func Xpclose(t *TLS, stream uintptr) int32 { + if __ccgo_strace { + trc("t=%v stream=%v, (%v:)", t, stream, origin(2)) + } panic(todo("")) } @@ -1144,6 +1403,9 @@ func Xpclose(t *TLS, stream uintptr) int32 { // const char *gai_strerror(int errcode); func Xgai_strerror(t *TLS, errcode int32) uintptr { + if __ccgo_strace { + trc("t=%v errcode=%v, (%v:)", t, errcode, origin(2)) + } panic(todo("")) // copy(gai_strerrorBuf[:], fmt.Sprintf("gai error %d\x00", errcode)) // return uintptr(unsafe.Pointer(&gai_strerrorBuf)) @@ -1151,16 +1413,25 @@ func Xgai_strerror(t *TLS, errcode int32) uintptr { // int tcgetattr(int fd, struct termios *termios_p); func Xtcgetattr(t *TLS, fd int32, termios_p uintptr) int32 { + if __ccgo_strace { + trc("t=%v fd=%v termios_p=%v, (%v:)", t, fd, termios_p, origin(2)) + } panic(todo("")) } // int tcsetattr(int fd, int optional_actions, const struct termios *termios_p); func Xtcsetattr(t *TLS, fd, optional_actions int32, termios_p uintptr) int32 { + if __ccgo_strace { + trc("t=%v optional_actions=%v termios_p=%v, (%v:)", t, optional_actions, termios_p, origin(2)) + } panic(todo("")) } // speed_t cfgetospeed(const struct termios *termios_p); func Xcfgetospeed(t *TLS, termios_p uintptr) termios.Speed_t { + if __ccgo_strace { + trc("t=%v termios_p=%v, (%v:)", t, termios_p, origin(2)) + } panic(todo("")) } @@ -1178,6 +1449,9 @@ func Xcfsetispeed(...interface{}) int32 { // pid_t fork(void); func Xfork(t *TLS) int32 { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } if dmesgs { dmesg("%v: FAIL", origin(1)) } @@ -1189,21 +1463,33 @@ var emptyStr = [1]byte{} // char *setlocale(int category, const char *locale); func Xsetlocale(t *TLS, category int32, locale uintptr) uintptr { + if __ccgo_strace { + trc("t=%v category=%v locale=%v, (%v:)", t, category, locale, origin(2)) + } return uintptr(unsafe.Pointer(&emptyStr)) //TODO } // char *nl_langinfo(nl_item item); func Xnl_langinfo(t *TLS, item langinfo.Nl_item) uintptr { + if __ccgo_strace { + trc("t=%v item=%v, (%v:)", t, item, origin(2)) + } return uintptr(unsafe.Pointer(&emptyStr)) //TODO } // FILE *popen(const char *command, const char *type); func Xpopen(t *TLS, command, type1 uintptr) uintptr { + if __ccgo_strace { + trc("t=%v type1=%v, (%v:)", t, type1, origin(2)) + } panic(todo("")) } // char *realpath(const char *path, char *resolved_path); func Xrealpath(t *TLS, path, resolved_path uintptr) uintptr { + if __ccgo_strace { + trc("t=%v resolved_path=%v, (%v:)", t, resolved_path, origin(2)) + } s, err := filepath.EvalSymlinks(GoString(path)) if err != nil { if os.IsNotExist(err) { @@ -1233,22 +1519,26 @@ func Xrealpath(t *TLS, path, resolved_path uintptr) uintptr { return resolved_path } -// struct tm *gmtime_r(const time_t *timep, struct tm *result); -func Xgmtime_r(t *TLS, timep, result uintptr) uintptr { - panic(todo("")) -} - // char *inet_ntoa(struct in_addr in); func Xinet_ntoa(t *TLS, in1 in.In_addr) uintptr { + if __ccgo_strace { + trc("t=%v in1=%v, (%v:)", t, in1, origin(2)) + } panic(todo("")) } func X__ccgo_in6addr_anyp(t *TLS) uintptr { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } panic(todo("")) // return uintptr(unsafe.Pointer(&in6_addr_any)) } func Xabort(t *TLS) { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } if dmesgs { dmesg("%v:", origin(1)) } @@ -1260,17 +1550,26 @@ func Xabort(t *TLS) { (*signal.Sigaction)(unsafe.Pointer(p)).F__sigaction_u.F__sa_handler = signal.SIG_DFL Xsigaction(t, signal.SIGABRT, p, 0) Xfree(t, p) - unix.Kill(unix.Getpid(), syscall.Signal(signal.SIGABRT)) + unix.Kill(unix.Getpid(), unix.Signal(signal.SIGABRT)) panic(todo("unrechable")) } // int fflush(FILE *stream); func Xfflush(t *TLS, stream uintptr) int32 { + if __ccgo_strace { + trc("t=%v stream=%v, (%v:)", t, stream, origin(2)) + } return 0 //TODO } // size_t fread(void *ptr, size_t size, size_t nmemb, FILE *stream); func Xfread(t *TLS, ptr uintptr, size, nmemb types.Size_t, stream uintptr) types.Size_t { + if __ccgo_strace { + trc("t=%v ptr=%v nmemb=%v stream=%v, (%v:)", t, ptr, nmemb, stream, origin(2)) + } + if size == 0 || nmemb == 0 { + return 0 + } fd := uintptr(file(stream).fd()) count := size * nmemb var n int @@ -1280,6 +1579,9 @@ func Xfread(t *TLS, ptr uintptr, size, nmemb types.Size_t, stream uintptr) types n, err = unix.Read(int(fd), nil) default: n, err = unix.Read(int(fd), (*RawMem)(unsafe.Pointer(ptr))[:count:count]) + if n == 0 { + file(stream).setEOF() + } if dmesgs && err == nil { dmesg("%v: fd %v, n %#x\n%s", origin(1), fd, n, hex.Dump((*RawMem)(unsafe.Pointer(ptr))[:n:n])) } @@ -1300,6 +1602,12 @@ func Xfread(t *TLS, ptr uintptr, size, nmemb types.Size_t, stream uintptr) types // size_t fwrite(const void *ptr, size_t size, size_t nmemb, FILE *stream); func Xfwrite(t *TLS, ptr uintptr, size, nmemb types.Size_t, stream uintptr) types.Size_t { + if __ccgo_strace { + trc("t=%v ptr=%v nmemb=%v stream=%v, (%v:)", t, ptr, nmemb, stream, origin(2)) + } + if size == 0 || nmemb == 0 { + return 0 + } fd := uintptr(file(stream).fd()) count := size * nmemb var n int @@ -1329,6 +1637,9 @@ func Xfwrite(t *TLS, ptr uintptr, size, nmemb types.Size_t, stream uintptr) type // int fclose(FILE *stream); func Xfclose(t *TLS, stream uintptr) int32 { + if __ccgo_strace { + trc("t=%v stream=%v, (%v:)", t, stream, origin(2)) + } r := file(stream).close(t) if r != 0 { if dmesgs { @@ -1346,6 +1657,9 @@ func Xfclose(t *TLS, stream uintptr) int32 { // int fputc(int c, FILE *stream); func Xfputc(t *TLS, c int32, stream uintptr) int32 { + if __ccgo_strace { + trc("t=%v c=%v stream=%v, (%v:)", t, c, stream, origin(2)) + } if _, err := fwrite(file(stream).fd(), []byte{byte(c)}); err != nil { return stdio.EOF } @@ -1355,6 +1669,9 @@ func Xfputc(t *TLS, c int32, stream uintptr) int32 { // int fseek(FILE *stream, long offset, int whence); func Xfseek(t *TLS, stream uintptr, offset long, whence int32) int32 { + if __ccgo_strace { + trc("t=%v stream=%v offset=%v whence=%v, (%v:)", t, stream, offset, whence, origin(2)) + } if n := Xlseek(t, int32(file(stream).fd()), types.Off_t(offset), whence); n < 0 { if dmesgs { dmesg("%v: fd %v, off %#x, whence %v: %v", origin(1), file(stream).fd(), offset, whenceStr(whence), n) @@ -1371,6 +1688,9 @@ func Xfseek(t *TLS, stream uintptr, offset long, whence int32) int32 { // long ftell(FILE *stream); func Xftell(t *TLS, stream uintptr) long { + if __ccgo_strace { + trc("t=%v stream=%v, (%v:)", t, stream, origin(2)) + } n := Xlseek(t, file(stream).fd(), 0, stdio.SEEK_CUR) if n < 0 { file(stream).setErr() @@ -1385,23 +1705,31 @@ func Xftell(t *TLS, stream uintptr) long { // int ferror(FILE *stream); func Xferror(t *TLS, stream uintptr) int32 { + if __ccgo_strace { + trc("t=%v stream=%v, (%v:)", t, stream, origin(2)) + } return Bool32(file(stream).err()) } // int fputs(const char *s, FILE *stream); func Xfputs(t *TLS, s, stream uintptr) int32 { - panic(todo("")) - // if _, _, err := unix.Syscall(unix.SYS_WRITE, uintptr(file(stream).fd()), s, uintptr(Xstrlen(t, s))); err != 0 { - // return -1 - // } + if __ccgo_strace { + trc("t=%v stream=%v, (%v:)", t, stream, origin(2)) + } + if _, _, err := unix.Syscall(unix.SYS_WRITE, uintptr(file(stream).fd()), s, uintptr(Xstrlen(t, s))); err != 0 { + return -1 + } - // return 0 + return 0 } var getservbynameStaticResult netdb.Servent // struct servent *getservbyname(const char *name, const char *proto); func Xgetservbyname(t *TLS, name, proto uintptr) uintptr { + if __ccgo_strace { + trc("t=%v proto=%v, (%v:)", t, proto, origin(2)) + } var protoent *gonetdb.Protoent if proto != 0 { protoent = gonetdb.GetProtoByName(GoString(proto)) @@ -1482,7 +1810,7 @@ func Xgetservbyname(t *TLS, name, proto uintptr) uintptr { // //TODO- return Xreaddir(t, dir) // //TODO- } // -// func __syscall(r, _ uintptr, errno syscall.Errno) long { +// func __syscall(r, _ uintptr, errno syscallErrno) long { // if errno != 0 { // return long(-errno) // } @@ -1534,35 +1862,11 @@ func fcntlCmdStr(cmd int32) string { // panic(todo("")) // } -// ssize_t pread(int fd, void *buf, size_t count, off_t offset); -func Xpread(t *TLS, fd int32, buf uintptr, count types.Size_t, offset types.Off_t) types.Ssize_t { - var n int - var err error - switch { - case count == 0: - n, err = unix.Pread(int(fd), nil, int64(offset)) - default: - n, err = unix.Pread(int(fd), (*RawMem)(unsafe.Pointer(buf))[:count:count], int64(offset)) - if dmesgs && err == nil { - dmesg("%v: fd %v, off %#x, count %#x, n %#x\n%s", origin(1), fd, offset, count, n, hex.Dump((*RawMem)(unsafe.Pointer(buf))[:n:n])) - } - } - if err != nil { - if dmesgs { - dmesg("%v: %v FAIL", origin(1), err) - } - t.setErrno(err) - return -1 - } - - if dmesgs { - dmesg("%v: ok", origin(1)) - } - return types.Ssize_t(n) -} - // ssize_t pwrite(int fd, const void *buf, size_t count, off_t offset); func Xpwrite(t *TLS, fd int32, buf uintptr, count types.Size_t, offset types.Off_t) types.Ssize_t { + if __ccgo_strace { + trc("t=%v fd=%v buf=%v count=%v offset=%v, (%v:)", t, fd, buf, count, offset, origin(2)) + } var n int var err error switch { @@ -1590,11 +1894,17 @@ func Xpwrite(t *TLS, fd int32, buf uintptr, count types.Size_t, offset types.Off // char***_NSGetEnviron() func X_NSGetEnviron(t *TLS) uintptr { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } return EnvironP() } // int chflags(const char *path, u_int flags); func Xchflags(t *TLS, path uintptr, flags uint32) int32 { + if __ccgo_strace { + trc("t=%v path=%v flags=%v, (%v:)", t, path, flags, origin(2)) + } if err := unix.Chflags(GoString(path), int(flags)); err != nil { if dmesgs { dmesg("%v: %v FAIL", origin(1), err) @@ -1611,6 +1921,9 @@ func Xchflags(t *TLS, path uintptr, flags uint32) int32 { // int rmdir(const char *pathname); func Xrmdir(t *TLS, pathname uintptr) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v, (%v:)", t, pathname, origin(2)) + } if err := unix.Rmdir(GoString(pathname)); err != nil { if dmesgs { dmesg("%v: %v FAIL", origin(1), err) @@ -1627,6 +1940,9 @@ func Xrmdir(t *TLS, pathname uintptr) int32 { // uint64_t mach_absolute_time(void); func Xmach_absolute_time(t *TLS) uint64 { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } return uint64(gotime.Now().UnixNano()) } @@ -1638,12 +1954,18 @@ type machTimebaseInfo = struct { // kern_return_t mach_timebase_info(mach_timebase_info_t info); func Xmach_timebase_info(t *TLS, info uintptr) int32 { + if __ccgo_strace { + trc("t=%v info=%v, (%v:)", t, info, origin(2)) + } *(*machTimebaseInfo)(unsafe.Pointer(info)) = machTimebaseInfo{Fnumer: 1, Fdenom: 1} return 0 } // int getattrlist(const char* path, struct attrlist * attrList, void * attrBuf, size_t attrBufSize, unsigned long options); func Xgetattrlist(t *TLS, path, attrList, attrBuf uintptr, attrBufSize types.Size_t, options uint32) int32 { + if __ccgo_strace { + trc("t=%v attrBuf=%v attrBufSize=%v options=%v, (%v:)", t, attrBuf, attrBufSize, options, origin(2)) + } if _, _, err := unix.Syscall6(unix.SYS_GETATTRLIST, path, attrList, attrBuf, uintptr(attrBufSize), uintptr(options), 0); err != 0 { // Cannot avoid the syscall here. if dmesgs { dmesg("%v: %v FAIL", origin(1), err) @@ -1660,6 +1982,9 @@ func Xgetattrlist(t *TLS, path, attrList, attrBuf uintptr, attrBufSize types.Siz // int setattrlist(const char* path, struct attrlist * attrList, void * attrBuf, size_t attrBufSize, unsigned long options); func Xsetattrlist(t *TLS, path, attrList, attrBuf uintptr, attrBufSize types.Size_t, options uint32) int32 { + if __ccgo_strace { + trc("t=%v attrBuf=%v attrBufSize=%v options=%v, (%v:)", t, attrBuf, attrBufSize, options, origin(2)) + } if _, _, err := unix.Syscall6(unix.SYS_SETATTRLIST, path, attrList, attrBuf, uintptr(attrBufSize), uintptr(options), 0); err != 0 { // Cannot avoid the syscall here. if dmesgs { dmesg("%v: %v FAIL", origin(1), err) @@ -1675,12 +2000,12 @@ func Xsetattrlist(t *TLS, path, attrList, attrBuf uintptr, attrBufSize types.Siz } // int copyfile(const char *from, const char *to, copyfile_state_t state, copyfile_flags_t flags); -func Xcopyfile(...interface{}) int32 { +func Xcopyfile(t *TLS, _ ...interface{}) int32 { panic(todo("")) } // int truncate(const char *path, off_t length); -func Xtruncate(...interface{}) int32 { +func Xtruncate(t *TLS, _ ...interface{}) int32 { panic(todo("")) } @@ -1695,6 +2020,9 @@ type darwinDir struct { // DIR *opendir(const char *name); func Xopendir(t *TLS, name uintptr) uintptr { + if __ccgo_strace { + trc("t=%v name=%v, (%v:)", t, name, origin(2)) + } p := Xmalloc(t, uint64(unsafe.Sizeof(darwinDir{}))) if p == 0 { panic("OOM") @@ -1723,6 +2051,9 @@ func Xopendir(t *TLS, name uintptr) uintptr { // struct dirent *readdir(DIR *dirp); func Xreaddir(t *TLS, dir uintptr) uintptr { + if __ccgo_strace { + trc("t=%v dir=%v, (%v:)", t, dir, origin(2)) + } if (*darwinDir)(unsafe.Pointer(dir)).eof { return 0 } @@ -1754,6 +2085,9 @@ func Xreaddir(t *TLS, dir uintptr) uintptr { } func Xclosedir(t *TLS, dir uintptr) int32 { + if __ccgo_strace { + trc("t=%v dir=%v, (%v:)", t, dir, origin(2)) + } // trc("---- closedir: %#x", dir) r := Xclose(t, int32((*darwinDir)(unsafe.Pointer(dir)).fd)) Xfree(t, dir) @@ -1762,8 +2096,11 @@ func Xclosedir(t *TLS, dir uintptr) int32 { // int pipe(int pipefd[2]); func Xpipe(t *TLS, pipefd uintptr) int32 { + if __ccgo_strace { + trc("t=%v pipefd=%v, (%v:)", t, pipefd, origin(2)) + } var a [2]int - if err := syscall.Pipe(a[:]); err != nil { + if err := unix.Pipe(a[:]); err != nil { if dmesgs { dmesg("%v: %v FAIL", origin(1), err) } @@ -1780,6 +2117,9 @@ func Xpipe(t *TLS, pipefd uintptr) int32 { // int __isoc99_sscanf(const char *str, const char *format, ...); func X__isoc99_sscanf(t *TLS, str, format, va uintptr) int32 { + if __ccgo_strace { + trc("t=%v va=%v, (%v:)", t, va, origin(2)) + } r := scanf(strings.NewReader(GoString(str)), format, va) // if dmesgs { // dmesg("%v: %q %q: %d", origin(1), GoString(str), GoString(format), r) @@ -1789,6 +2129,9 @@ func X__isoc99_sscanf(t *TLS, str, format, va uintptr) int32 { // int sscanf(const char *str, const char *format, ...); func Xsscanf(t *TLS, str, format, va uintptr) int32 { + if __ccgo_strace { + trc("t=%v va=%v, (%v:)", t, va, origin(2)) + } r := scanf(strings.NewReader(GoString(str)), format, va) // if dmesgs { // dmesg("%v: %q %q: %d", origin(1), GoString(str), GoString(format), r) @@ -1798,26 +2141,41 @@ func Xsscanf(t *TLS, str, format, va uintptr) int32 { // int posix_fadvise(int fd, off_t offset, off_t len, int advice); func Xposix_fadvise(t *TLS, fd int32, offset, len types.Off_t, advice int32) int32 { + if __ccgo_strace { + trc("t=%v fd=%v len=%v advice=%v, (%v:)", t, fd, len, advice, origin(2)) + } panic(todo("")) } // clock_t clock(void); func Xclock(t *TLS) time.Clock_t { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } return time.Clock_t(gotime.Since(startTime) * gotime.Duration(time.CLOCKS_PER_SEC) / gotime.Second) } // int iswspace(wint_t wc); func Xiswspace(t *TLS, wc wctype.Wint_t) int32 { + if __ccgo_strace { + trc("t=%v wc=%v, (%v:)", t, wc, origin(2)) + } return Bool32(unicode.IsSpace(rune(wc))) } // int iswalnum(wint_t wc); func Xiswalnum(t *TLS, wc wctype.Wint_t) int32 { + if __ccgo_strace { + trc("t=%v wc=%v, (%v:)", t, wc, origin(2)) + } return Bool32(unicode.IsLetter(rune(wc)) || unicode.IsNumber(rune(wc))) } // void arc4random_buf(void *buf, size_t nbytes); func Xarc4random_buf(t *TLS, buf uintptr, buflen size_t) { + if __ccgo_strace { + trc("t=%v buf=%v buflen=%v, (%v:)", t, buf, buflen, origin(2)) + } if _, err := crand.Read((*RawMem)(unsafe.Pointer(buf))[:buflen]); err != nil { panic(todo("")) } @@ -1834,35 +2192,61 @@ type darwin_mutex_t struct { } func X__ccgo_pthreadMutexattrGettype(tls *TLS, a uintptr) int32 { + if __ccgo_strace { + trc("tls=%v a=%v, (%v:)", tls, a, origin(2)) + } return (int32((*darwin_mutexattr_t)(unsafe.Pointer(a)).x[4] >> 2 & 3)) } func X__ccgo_getMutexType(tls *TLS, m uintptr) int32 { + if __ccgo_strace { + trc("tls=%v m=%v, (%v:)", tls, m, origin(2)) + } return (int32((*darwin_mutex_t)(unsafe.Pointer(m)).x[4] >> 2 & 3)) } func X__ccgo_pthreadAttrGetDetachState(tls *TLS, a uintptr) int32 { - panic(todo("")) + if __ccgo_strace { + trc("tls=%v a=%v, (%v:)", tls, a, origin(2)) + } + return (*pthreadAttr)(unsafe.Pointer(a)).detachState } func Xpthread_attr_getdetachstate(tls *TLS, a uintptr, state uintptr) int32 { + if __ccgo_strace { + trc("tls=%v a=%v state=%v, (%v:)", tls, a, state, origin(2)) + } panic(todo("")) } -func Xpthread_attr_setdetachstate(tls *TLS, a uintptr, state int32) int32 { - panic(todo("")) +func Xpthread_attr_setdetachstate(tls *TLS, a uintptr, state int32) (r int32) { + if uint32(state) > 1 { + return errno.EINVAL + } + + (*pthreadAttr)(unsafe.Pointer(a)).detachState = state + return 0 } func Xpthread_mutexattr_destroy(tls *TLS, a uintptr) int32 { + if __ccgo_strace { + trc("tls=%v a=%v, (%v:)", tls, a, origin(2)) + } return 0 } func Xpthread_mutexattr_init(tls *TLS, a uintptr) int32 { + if __ccgo_strace { + trc("tls=%v a=%v, (%v:)", tls, a, origin(2)) + } *(*darwin_mutexattr_t)(unsafe.Pointer(a)) = darwin_mutexattr_t{} return 0 } func Xpthread_mutexattr_settype(tls *TLS, a uintptr, type1 int32) int32 { + if __ccgo_strace { + trc("tls=%v a=%v type1=%v, (%v:)", tls, a, type1, origin(2)) + } if uint32(type1) > uint32(2) { return errno.EINVAL } @@ -1872,6 +2256,9 @@ func Xpthread_mutexattr_settype(tls *TLS, a uintptr, type1 int32) int32 { // ssize_t writev(int fd, const struct iovec *iov, int iovcnt); func Xwritev(t *TLS, fd int32, iov uintptr, iovcnt int32) types.Ssize_t { + if __ccgo_strace { + trc("t=%v fd=%v iov=%v iovcnt=%v, (%v:)", t, fd, iov, iovcnt, origin(2)) + } // if dmesgs { // dmesg("%v: fd %v iov %#x iovcnt %v", origin(1), fd, iov, iovcnt) // } @@ -1889,41 +2276,44 @@ func Xwritev(t *TLS, fd int32, iov uintptr, iovcnt int32) types.Ssize_t { // int pause(void); func Xpause(t *TLS) int32 { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } c := make(chan os.Signal) gosignal.Notify(c, - syscall.SIGABRT, - syscall.SIGALRM, - syscall.SIGBUS, - syscall.SIGCHLD, - syscall.SIGCONT, - syscall.SIGFPE, - syscall.SIGHUP, - syscall.SIGILL, - // syscall.SIGINT, - syscall.SIGIO, - syscall.SIGIOT, - syscall.SIGKILL, - syscall.SIGPIPE, - syscall.SIGPROF, - syscall.SIGQUIT, - syscall.SIGSEGV, - syscall.SIGSTOP, - syscall.SIGSYS, - syscall.SIGTERM, - syscall.SIGTRAP, - syscall.SIGTSTP, - syscall.SIGTTIN, - syscall.SIGTTOU, - syscall.SIGURG, - syscall.SIGUSR1, - syscall.SIGUSR2, - syscall.SIGVTALRM, - syscall.SIGWINCH, - syscall.SIGXCPU, - syscall.SIGXFSZ, + unix.SIGABRT, + unix.SIGALRM, + unix.SIGBUS, + unix.SIGCHLD, + unix.SIGCONT, + unix.SIGFPE, + unix.SIGHUP, + unix.SIGILL, + // unix.SIGINT, + unix.SIGIO, + unix.SIGIOT, + unix.SIGKILL, + unix.SIGPIPE, + unix.SIGPROF, + unix.SIGQUIT, + unix.SIGSEGV, + unix.SIGSTOP, + unix.SIGSYS, + unix.SIGTERM, + unix.SIGTRAP, + unix.SIGTSTP, + unix.SIGTTIN, + unix.SIGTTOU, + unix.SIGURG, + unix.SIGUSR1, + unix.SIGUSR2, + unix.SIGVTALRM, + unix.SIGWINCH, + unix.SIGXCPU, + unix.SIGXFSZ, ) switch <-c { - case syscall.SIGINT: + case unix.SIGINT: panic(todo("")) default: t.setErrno(errno.EINTR) @@ -1946,6 +2336,9 @@ func Xpause(t *TLS) int32 { // (_p->fds_bits[(unsigned long)_fd / __DARWIN_NFDBITS] |= ((__int32_t)(((unsigned long)1) << ((unsigned long)_fd % __DARWIN_NFDBITS)))); // } func X__darwin_fd_set(tls *TLS, _fd int32, _p uintptr) int32 { /* main.c:12:1: */ + if __ccgo_strace { + trc("tls=%v _fd=%v _p=%v, (%v:)", tls, _fd, _p, origin(2)) + } *(*int32)(unsafe.Pointer(_p + uintptr(uint64(_fd)/(uint64(unsafe.Sizeof(int32(0)))*uint64(8)))*4)) |= int32(uint64(uint64(1)) << (uint64(_fd) % (uint64(unsafe.Sizeof(int32(0))) * uint64(8)))) return int32(0) } @@ -1956,6 +2349,9 @@ func X__darwin_fd_set(tls *TLS, _fd int32, _p uintptr) int32 { /* main.c:12:1: * // return _p->fds_bits[(unsigned long)_fd / __DARWIN_NFDBITS] & ((__int32_t)(((unsigned long)1) << ((unsigned long)_fd % __DARWIN_NFDBITS))); // } func X__darwin_fd_isset(tls *TLS, _fd int32, _p uintptr) int32 { /* main.c:17:1: */ + if __ccgo_strace { + trc("tls=%v _fd=%v _p=%v, (%v:)", tls, _fd, _p, origin(2)) + } return *(*int32)(unsafe.Pointer(_p + uintptr(uint64(_fd)/(uint64(unsafe.Sizeof(int32(0)))*uint64(8)))*4)) & int32(uint64(uint64(1))<<(uint64(_fd)%(uint64(unsafe.Sizeof(int32(0)))*uint64(8)))) } @@ -1965,17 +2361,26 @@ func X__darwin_fd_isset(tls *TLS, _fd int32, _p uintptr) int32 { /* main.c:17:1: // (_p->fds_bits[(unsigned long)_fd / __DARWIN_NFDBITS] &= ~((__int32_t)(((unsigned long)1) << ((unsigned long)_fd % __DARWIN_NFDBITS)))); // } func X__darwin_fd_clr(tls *TLS, _fd int32, _p uintptr) int32 { /* main.c:22:1: */ + if __ccgo_strace { + trc("tls=%v _fd=%v _p=%v, (%v:)", tls, _fd, _p, origin(2)) + } *(*int32)(unsafe.Pointer(_p + uintptr(uint64(_fd)/(uint64(unsafe.Sizeof(int32(0)))*uint64(8)))*4)) &= ^int32(uint64(uint64(1)) << (uint64(_fd) % (uint64(unsafe.Sizeof(int32(0))) * uint64(8)))) return int32(0) } // int ungetc(int c, FILE *stream); func Xungetc(t *TLS, c int32, stream uintptr) int32 { + if __ccgo_strace { + trc("t=%v c=%v stream=%v, (%v:)", t, c, stream, origin(2)) + } panic(todo("")) } // int issetugid(void); func Xissetugid(t *TLS) int32 { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } panic(todo("")) } @@ -1983,6 +2388,9 @@ var progname uintptr // const char *getprogname(void); func Xgetprogname(t *TLS) uintptr { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } if progname != 0 { return progname } @@ -1999,11 +2407,17 @@ func Xgetprogname(t *TLS) uintptr { // void uuid_copy(uuid_t dst, uuid_t src); func Xuuid_copy(t *TLS, dst, src uintptr) { + if __ccgo_strace { + trc("t=%v src=%v, (%v:)", t, src, origin(2)) + } *(*uuid.Uuid_t)(unsafe.Pointer(dst)) = *(*uuid.Uuid_t)(unsafe.Pointer(src)) } // int uuid_parse( char *in, uuid_t uu); func Xuuid_parse(t *TLS, in uintptr, uu uintptr) int32 { + if __ccgo_strace { + trc("t=%v in=%v uu=%v, (%v:)", t, in, uu, origin(2)) + } r, err := guuid.Parse(GoString(in)) if err != nil { return -1 @@ -2039,15 +2453,351 @@ func X__sincospi_stret(t *TLS, f float64) struct{ F__sinval, F__cosval float64 } // int __srget(FILE *); func X__srget(t *TLS, f uintptr) int32 { + if __ccgo_strace { + trc("t=%v f=%v, (%v:)", t, f, origin(2)) + } panic(todo("")) } // int __svfscanf(FILE *, const char *, va_list) __scanflike(2, 0); func X__svfscanf(t *TLS, f uintptr, p, q uintptr) int32 { + if __ccgo_strace { + trc("t=%v f=%v q=%v, (%v:)", t, f, q, origin(2)) + } panic(todo("")) } // int __swbuf(int, FILE *); func X__swbuf(t *TLS, i int32, f uintptr) int32 { + if __ccgo_strace { + trc("t=%v i=%v f=%v, (%v:)", t, i, f, origin(2)) + } panic(todo("")) } + +// int nanosleep(const struct timespec *req, struct timespec *rem); +func Xnanosleep(t *TLS, req, rem uintptr) int32 { + if __ccgo_strace { + trc("t=%v rem=%v, (%v:)", t, rem, origin(2)) + } + v := *(*time.Timespec)(unsafe.Pointer(req)) + gotime.Sleep(gotime.Second*gotime.Duration(v.Ftv_sec) + gotime.Duration(v.Ftv_nsec)) + return 0 +} + +// // void malloc_set_zone_name(malloc_zone_t *zone, const char *name) +// func Xmalloc_set_zone_name(t *TLS, zone, name uintptr) { +// if __ccgo_strace { +// trc("t=%v zone=%v name=%v, (%v:)", t, zone, name, origin(2)) +// } +// // nop +// } + +// size_t malloc_size(const void *ptr); +func Xmalloc_size(t *TLS, p uintptr) (r types.Size_t) { + if __ccgo_strace { + trc("t=%v p=%v, (%v:)", t, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + if p == 0 { + return 0 + } + + allocMu.Lock() + + defer allocMu.Unlock() + + return types.Size_t(memory.UintptrUsableSize(p)) +} + +// int open(const char *pathname, int flags, ...); +func Xopen64(t *TLS, pathname uintptr, flags int32, args uintptr) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v flags=%v args=%v, (%v:)", t, pathname, flags, args, origin(2)) + } + var mode types.Mode_t + if args != 0 { + mode = (types.Mode_t)(VaUint32(&args)) + } + fdcwd := fcntl.AT_FDCWD + n, _, err := unix.Syscall6(unix.SYS_OPENAT, uintptr(fdcwd), pathname, uintptr(flags), uintptr(mode), 0, 0) + if err != 0 { + // if dmesgs { + // dmesg("%v: %q %#x: %v", origin(1), GoString(pathname), flags, err) + // } + t.setErrno(err) + return -1 + } + + // if dmesgs { + // dmesg("%v: %q flags %#x mode %#o: fd %v", origin(1), GoString(pathname), flags, mode, n) + // } + return int32(n) +} + +// int getrlimit(int resource, struct rlimit *rlim); +func Xgetrlimit(t *TLS, resource int32, rlim uintptr) int32 { + if __ccgo_strace { + trc("t=%v resource=%v rlim=%v, (%v:)", t, resource, rlim, origin(2)) + } + if _, _, err := unix.Syscall(unix.SYS_GETRLIMIT, uintptr(resource), uintptr(rlim), 0); err != 0 { + t.setErrno(err) + return -1 + } + + return 0 +} + +// int setrlimit(int resource, const struct rlimit *rlim); +func Xsetrlimit(t *TLS, resource int32, rlim uintptr) int32 { + if __ccgo_strace { + trc("t=%v resource=%v rlim=%v, (%v:)", t, resource, rlim, origin(2)) + } + if _, _, err := unix.Syscall(unix.SYS_SETRLIMIT, uintptr(resource), uintptr(rlim), 0); err != 0 { + t.setErrno(err) + return -1 + } + + return 0 +} + +func X__fpclassifyd(tls *TLS, x float64) (r int32) { + return X__fpclassify(tls, x) +} + +var Xin6addr_any = in6_addr{} + +func X__builtin_lround(tls *TLS, x float64) (r long) { + return Xlround(tls, x) +} + +func Xlround(tls *TLS, x float64) (r long) { + return long(Xround(tls, x)) +} + +// https://g.co/gemini/share/2c37d5b57994 + +// Constants mirroring C's ftw type flags +const ( + FTW_F = 0 // Regular file + FTW_D = 1 // Directory (visited pre-order) + FTW_DNR = 2 // Directory that cannot be read + FTW_NS = 4 // Stat failed (permissions, broken link, etc.) + FTW_SL = 4 // Symbolic link (lstat was used) + // Note: C's ftw might have other flags like FTW_DP (post-order dir) or FTW_SLN + // which are not directly supported by filepath.WalkDir's simple pre-order traversal. + // This emulation focuses on the most common flags associated with stat/lstat results. +) + +// ftwStopError is used internally to signal that the walk should stop +// because the user callback returned a non-zero value. +type ftwStopError struct { + stopValue int +} + +func (e *ftwStopError) Error() string { + return fmt.Sprintf("ftw walk stopped by callback with return value %d", e.stopValue) +} + +// goFtwFunc is the callback function type, mirroring the C ftw callback. +// It receives the path, file info (if available), and a type flag. +// Returning a non-zero value stops the walk and becomes the return value of Ftw. +// Returning 0 continues the walk. +type goFtwFunc func(path string, info os.FileInfo, typeflag int) int + +// Ftw emulates the C standard library function ftw(3). +// It walks the directory tree starting at 'dirpath' and calls the 'callback' +// function for each entry encountered. +// +// Parameters: +// - dirpath: The root directory path for the traversal. +// - callback: The goFtwFunc to call for each file system entry. +// - nopenfd: This parameter is part of the C ftw signature but is IGNORED +// in this Go implementation. Go's filepath.WalkDir manages concurrency +// and file descriptors internally. +// +// Returns: +// - 0 on successful completion of the walk. +// - The non-zero value returned by the callback, if the callback terminated the walk. +// - -1 if an error occurred during the walk that wasn't handled by calling +// the callback with FTW_DNR or FTW_NS (e.g., error accessing the initial dirpath). +func ftw(dirpath string, callback goFtwFunc, nopenfd int) int { + // nopenfd is ignored in this Go implementation. + + walkErr := filepath.WalkDir(dirpath, func(path string, d fs.DirEntry, err error) error { + var info os.FileInfo + var typeflag int + + // --- Handle errors passed by WalkDir --- + if err != nil { + // Check if the error is related to accessing a directory + if errors.Is(err, fs.ErrPermission) || errors.Is(err, unix.EACCES) { // Added syscall.EACCES check + // Try to determine if it's a directory we can't read + // We might not have 'd' if the error occurred trying to list 'path' contents + // Let's try a direct Lstat on the path itself if d is nil + lstatInfo, lstatErr := os.Lstat(path) + if lstatErr == nil && lstatInfo.IsDir() { + typeflag = FTW_DNR // Directory, but WalkDir errored (likely reading it) + info = lstatInfo // Provide the info we could get + } else { + // Can't confirm it's a directory, or Lstat itself failed + typeflag = FTW_NS // Treat as general stat failure + // info remains nil + } + } else { + // Other errors (e.g., broken symlink during traversal, I/O error) + typeflag = FTW_NS + // Attempt to get Lstat info even if WalkDir had an error, maybe it's available + lstatInfo, _ := os.Lstat(path) // Ignore error here, if it fails info stays nil + info = lstatInfo + } + // Even with errors, call the callback with the path and appropriate flag + stopVal := callback(path, info, typeflag) + if stopVal != 0 { + return &ftwStopError{stopValue: stopVal} + } + // If the error was on a directory, returning the error might stop WalkDir + // from descending. If it was fs.ErrPermission on a dir, WalkDir might + // pass filepath.SkipDir implicitly or continue depending on implementation. + // Let's return nil here to *try* to continue the walk for other siblings + // if the callback didn't stop it. The callback *was* notified. + // If the error prevents further progress WalkDir will stop anyway. + return nil // Allow walk to potentially continue elsewhere + } + + // --- No error from WalkDir, process the DirEntry --- + info, err = d.Info() // Get FileInfo (like C's stat/lstat result) + if err != nil { + // Error getting info for an entry WalkDir *could* list (rare, maybe permissions changed?) + typeflag = FTW_NS + // info remains nil + } else { + // Determine type flag based on file mode + mode := info.Mode() + if mode&fs.ModeSymlink != 0 { + typeflag = FTW_SL + } else if mode.IsDir() { + typeflag = FTW_D // Visited pre-order + } else if mode.IsRegular() { + typeflag = FTW_F + } else { + // Other types (device, socket, pipe, etc.) - C ftw usually lumps these under FTW_F + // or might have FTW_NS if stat fails. Let's treat non-dir, non-link, non-regular + // as FTW_F for simplicity, aligning with common C practice, or FTW_NS if stat failed above. + // Since we have info here, we know stat didn't fail. + // Let's be more specific, maybe treat others as FTW_NS? Or stick to FTW_F? + // C ftw man page isn't super specific about all types. FTW_F seems reasonable. + typeflag = FTW_F // Treat other valid types as 'files' for simplicity + } + } + + // --- Call the user callback --- + stopVal := callback(path, info, typeflag) + if stopVal != 0 { + // User wants to stop the walk + return &ftwStopError{stopValue: stopVal} + } + + return nil // Continue walk + }) + + // --- Handle WalkDir's final return value --- + if walkErr == nil { + return 0 // Success + } + + // Check if the error was our custom stop signal + var stopErr *ftwStopError + if errors.As(walkErr, &stopErr) { + return stopErr.stopValue // Return the value from the callback + } + + // Otherwise, it was an unhandled error during the walk + // (e.g., initial dirpath access error, or other error not mapped to FTW_NS/DNR) + return -1 // General error return +} + +func Xftw(tls *TLS, path uintptr, fn uintptr, fd_limit int32) (r int32) { + statp := tls.Alloc(int(unsafe.Sizeof(unix.Stat_t{}))) + + defer tls.Free(int(unsafe.Sizeof(unix.Stat_t{}))) + + return int32(ftw( + GoString(path), + func(path string, info os.FileInfo, typeflag int) int { + cs, _ := CString(path) + + defer Xfree(tls, cs) + + Xstat(tls, cs, statp) + return int((*(*func(*TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(&struct{ uintptr }{fn})))(tls, cs, statp, int32(typeflag))) + }, + int(fd_limit), + )) +} + +func Xexecve(tls *TLS, path uintptr, argv uintptr, envp uintptr) (r int32) { + goPath := GoString(path) + var goArgv, goEnvp []string + for p := *(*uintptr)(unsafe.Pointer(argv)); p != 0; p = *(*uintptr)(unsafe.Pointer(argv)) { + goArgv = append(goArgv, GoString(p)) + argv += unsafe.Sizeof(uintptr(0)) + } + for p := *(*uintptr)(unsafe.Pointer(envp)); p != 0; p = *(*uintptr)(unsafe.Pointer(envp)) { + goEnvp = append(goEnvp, GoString(p)) + envp += unsafe.Sizeof(uintptr(0)) + } + if err := unix.Exec(goPath, goArgv, goEnvp); err != nil { + tls.setErrno(err) + return -1 + } + panic("unreachable") +} + +func Xsetuid(tls *TLS, uid uint32) (r int32) { + if __ccgo_strace { + trc("tls=%v uid=%v, (%v:)", tls, uid, origin(2)) + defer func() { trc("-> %v", r) }() + } + if err := unix.Setuid(int(uid)); err != nil { + tls.setErrno(err) + return -1 + } + + return 0 +} + +func Xsetgid(tls *TLS, gid uint32) (r int32) { + if __ccgo_strace { + trc("tls=%v gid=%v, (%v:)", tls, gid, origin(2)) + defer func() { trc("-> %v", r) }() + } + if err := unix.Setgid(int(gid)); err != nil { + tls.setErrno(err) + return -1 + } + + return 0 +} + +func Xdup(tls *TLS, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + nfd, err := unix.Dup(int(fd)) + if err != nil { + tls.setErrno(err) + return -1 + } + + return int32(nfd) +} + +func X__builtin_ctz(t *TLS, n uint32) int32 { + return int32(mbits.TrailingZeros32(n)) +} + +func AtomicLoadNUint8(ptr uintptr, memorder int32) uint8 { + return byte(a_load_8(ptr)) +} diff --git a/vendor/modernc.org/libc/libc_darwin_amd64.go b/vendor/modernc.org/libc/libc_darwin_amd64.go index e8f46c49e..dd94ebab3 100644 --- a/vendor/modernc.org/libc/libc_darwin_amd64.go +++ b/vendor/modernc.org/libc/libc_darwin_amd64.go @@ -6,17 +6,27 @@ package libc // import "modernc.org/libc" import ( "strings" + "time" "unsafe" "golang.org/x/sys/unix" "modernc.org/libc/fcntl" "modernc.org/libc/signal" + "modernc.org/libc/stdio" "modernc.org/libc/sys/types" "modernc.org/libc/utime" ) +// #define FE_DOWNWARD 0x0400 +// #define FE_UPWARD 0x0800 +const FE_DOWNWARD = 0x0400 +const FE_UPWARD = 0x0800 + // int sigaction(int signum, const struct sigaction *act, struct sigaction *oldact); func Xsigaction(t *TLS, signum int32, act, oldact uintptr) int32 { + if __ccgo_strace { + trc("t=%v signum=%v oldact=%v, (%v:)", t, signum, oldact, origin(2)) + } var kact, koldact uintptr if act != 0 { sz := int(unsafe.Sizeof(signal.X__sigaction{})) @@ -44,6 +54,10 @@ func Xsigaction(t *TLS, signum int32, act, oldact uintptr) int32 { // int fcntl(int fd, int cmd, ... /* arg */ ); func Xfcntl64(t *TLS, fd, cmd int32, args uintptr) (r int32) { + if __ccgo_strace { + trc("t=%v cmd=%v args=%v, (%v:)", t, cmd, args, origin(2)) + defer func() { trc("-> %v", r) }() + } var err error var p uintptr var i int @@ -76,6 +90,9 @@ func Xfcntl64(t *TLS, fd, cmd int32, args uintptr) (r int32) { // int lstat(const char *pathname, struct stat *statbuf); func Xlstat64(t *TLS, pathname, statbuf uintptr) int32 { + if __ccgo_strace { + trc("t=%v statbuf=%v, (%v:)", t, statbuf, origin(2)) + } if err := unix.Lstat(GoString(pathname), (*unix.Stat_t)(unsafe.Pointer(statbuf))); err != nil { if dmesgs { dmesg("%v: %q: %v FAIL", origin(1), GoString(pathname), err) @@ -92,6 +109,9 @@ func Xlstat64(t *TLS, pathname, statbuf uintptr) int32 { // int stat(const char *pathname, struct stat *statbuf); func Xstat64(t *TLS, pathname, statbuf uintptr) int32 { + if __ccgo_strace { + trc("t=%v statbuf=%v, (%v:)", t, statbuf, origin(2)) + } if err := unix.Stat(GoString(pathname), (*unix.Stat_t)(unsafe.Pointer(statbuf))); err != nil { if dmesgs { dmesg("%v: %q: %v FAIL", origin(1), GoString(pathname), err) @@ -108,6 +128,9 @@ func Xstat64(t *TLS, pathname, statbuf uintptr) int32 { // int fstatfs(int fd, struct statfs *buf); func Xfstatfs(t *TLS, fd int32, buf uintptr) int32 { + if __ccgo_strace { + trc("t=%v fd=%v buf=%v, (%v:)", t, fd, buf, origin(2)) + } if err := unix.Fstatfs(int(fd), (*unix.Statfs_t)(unsafe.Pointer(buf))); err != nil { if dmesgs { dmesg("%v: %v: %v FAIL", origin(1), fd, err) @@ -124,6 +147,9 @@ func Xfstatfs(t *TLS, fd int32, buf uintptr) int32 { // int statfs(const char *path, struct statfs *buf); func Xstatfs(t *TLS, path uintptr, buf uintptr) int32 { + if __ccgo_strace { + trc("t=%v path=%v buf=%v, (%v:)", t, path, buf, origin(2)) + } if err := unix.Statfs(GoString(path), (*unix.Statfs_t)(unsafe.Pointer(buf))); err != nil { if dmesgs { dmesg("%v: %q: %v FAIL", origin(1), GoString(path), err) @@ -140,6 +166,9 @@ func Xstatfs(t *TLS, path uintptr, buf uintptr) int32 { // int fstat(int fd, struct stat *statbuf); func Xfstat64(t *TLS, fd int32, statbuf uintptr) int32 { + if __ccgo_strace { + trc("t=%v fd=%v statbuf=%v, (%v:)", t, fd, statbuf, origin(2)) + } if err := unix.Fstat(int(fd), (*unix.Stat_t)(unsafe.Pointer(statbuf))); err != nil { if dmesgs { dmesg("%v: fd %d: %v FAIL", origin(1), fd, err) @@ -156,6 +185,9 @@ func Xfstat64(t *TLS, fd int32, statbuf uintptr) int32 { // off64_t lseek64(int fd, off64_t offset, int whence); func Xlseek64(t *TLS, fd int32, offset types.Off_t, whence int32) types.Off_t { + if __ccgo_strace { + trc("t=%v fd=%v offset=%v whence=%v, (%v:)", t, fd, offset, whence, origin(2)) + } n, err := unix.Seek(int(fd), int64(offset), int(whence)) if err != nil { if dmesgs { @@ -173,6 +205,9 @@ func Xlseek64(t *TLS, fd int32, offset types.Off_t, whence int32) types.Off_t { // int utime(const char *filename, const struct utimbuf *times); func Xutime(t *TLS, filename, times uintptr) int32 { + if __ccgo_strace { + trc("t=%v times=%v, (%v:)", t, times, origin(2)) + } var a []unix.Timeval if times != 0 { a = make([]unix.Timeval, 2) @@ -195,6 +230,9 @@ func Xutime(t *TLS, filename, times uintptr) int32 { // unsigned int alarm(unsigned int seconds); func Xalarm(t *TLS, seconds uint32) uint32 { + if __ccgo_strace { + trc("t=%v seconds=%v, (%v:)", t, seconds, origin(2)) + } panic(todo("")) // n, _, err := unix.Syscall(unix.SYS_ALARM, uintptr(seconds), 0, 0) // if err != 0 { @@ -206,12 +244,14 @@ func Xalarm(t *TLS, seconds uint32) uint32 { // time_t time(time_t *tloc); func Xtime(t *TLS, tloc uintptr) types.Time_t { - panic(todo("")) - // n := time.Now().UTC().Unix() - // if tloc != 0 { - // *(*types.Time_t)(unsafe.Pointer(tloc)) = types.Time_t(n) - // } - // return types.Time_t(n) + if __ccgo_strace { + trc("t=%v tloc=%v, (%v:)", t, tloc, origin(2)) + } + n := time.Now().UTC().Unix() + if tloc != 0 { + *(*types.Time_t)(unsafe.Pointer(tloc)) = types.Time_t(n) + } + return types.Time_t(n) } // // int getrlimit(int resource, struct rlimit *rlim); @@ -226,6 +266,9 @@ func Xtime(t *TLS, tloc uintptr) types.Time_t { // int mkdir(const char *path, mode_t mode); func Xmkdir(t *TLS, path uintptr, mode types.Mode_t) int32 { + if __ccgo_strace { + trc("t=%v path=%v mode=%v, (%v:)", t, path, mode, origin(2)) + } if err := unix.Mkdir(GoString(path), uint32(mode)); err != nil { if dmesgs { dmesg("%v: %q: %v FAIL", origin(1), GoString(path), err) @@ -242,6 +285,9 @@ func Xmkdir(t *TLS, path uintptr, mode types.Mode_t) int32 { // int symlink(const char *target, const char *linkpath); func Xsymlink(t *TLS, target, linkpath uintptr) int32 { + if __ccgo_strace { + trc("t=%v linkpath=%v, (%v:)", t, linkpath, origin(2)) + } if err := unix.Symlink(GoString(target), GoString(linkpath)); err != nil { if dmesgs { dmesg("%v: %v FAIL", origin(1), err) @@ -258,6 +304,9 @@ func Xsymlink(t *TLS, target, linkpath uintptr) int32 { // int chmod(const char *pathname, mode_t mode) func Xchmod(t *TLS, pathname uintptr, mode types.Mode_t) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v mode=%v, (%v:)", t, pathname, mode, origin(2)) + } if err := unix.Chmod(GoString(pathname), uint32(mode)); err != nil { if dmesgs { dmesg("%v: %q %#o: %v FAIL", origin(1), GoString(pathname), mode, err) @@ -274,6 +323,9 @@ func Xchmod(t *TLS, pathname uintptr, mode types.Mode_t) int32 { // int utimes(const char *filename, const struct timeval times[2]); func Xutimes(t *TLS, filename, times uintptr) int32 { + if __ccgo_strace { + trc("t=%v times=%v, (%v:)", t, times, origin(2)) + } var a []unix.Timeval if times != 0 { a = make([]unix.Timeval, 2) @@ -296,6 +348,9 @@ func Xutimes(t *TLS, filename, times uintptr) int32 { // int unlink(const char *pathname); func Xunlink(t *TLS, pathname uintptr) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v, (%v:)", t, pathname, origin(2)) + } if err := unix.Unlink(GoString(pathname)); err != nil { if dmesgs { dmesg("%v: %q: %v", origin(1), GoString(pathname), err) @@ -312,6 +367,9 @@ func Xunlink(t *TLS, pathname uintptr) int32 { // int access(const char *pathname, int mode); func Xaccess(t *TLS, pathname uintptr, mode int32) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v mode=%v, (%v:)", t, pathname, mode, origin(2)) + } if err := unix.Access(GoString(pathname), uint32(mode)); err != nil { if dmesgs { dmesg("%v: %q %#o: %v FAIL", origin(1), GoString(pathname), mode, err) @@ -328,6 +386,9 @@ func Xaccess(t *TLS, pathname uintptr, mode int32) int32 { // int rename(const char *oldpath, const char *newpath); func Xrename(t *TLS, oldpath, newpath uintptr) int32 { + if __ccgo_strace { + trc("t=%v newpath=%v, (%v:)", t, newpath, origin(2)) + } if err := unix.Rename(GoString(oldpath), GoString(newpath)); err != nil { if dmesgs { dmesg("%v: %v FAIL", origin(1), err) @@ -344,6 +405,9 @@ func Xrename(t *TLS, oldpath, newpath uintptr) int32 { // int mknod(const char *pathname, mode_t mode, dev_t dev); func Xmknod(t *TLS, pathname uintptr, mode types.Mode_t, dev types.Dev_t) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v mode=%v dev=%v, (%v:)", t, pathname, mode, dev, origin(2)) + } panic(todo("")) // if _, _, err := unix.Syscall(unix.SYS_MKNOD, pathname, uintptr(mode), uintptr(dev)); err != 0 { // t.setErrno(err) @@ -355,6 +419,9 @@ func Xmknod(t *TLS, pathname uintptr, mode types.Mode_t, dev types.Dev_t) int32 // int chown(const char *pathname, uid_t owner, gid_t group); func Xchown(t *TLS, pathname uintptr, owner types.Uid_t, group types.Gid_t) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v owner=%v group=%v, (%v:)", t, pathname, owner, group, origin(2)) + } panic(todo("")) // if _, _, err := unix.Syscall(unix.SYS_CHOWN, pathname, uintptr(owner), uintptr(group)); err != 0 { // t.setErrno(err) @@ -366,6 +433,9 @@ func Xchown(t *TLS, pathname uintptr, owner types.Uid_t, group types.Gid_t) int3 // int link(const char *oldpath, const char *newpath); func Xlink(t *TLS, oldpath, newpath uintptr) int32 { + if __ccgo_strace { + trc("t=%v newpath=%v, (%v:)", t, newpath, origin(2)) + } panic(todo("")) // if _, _, err := unix.Syscall(unix.SYS_LINK, oldpath, newpath, 0); err != 0 { // t.setErrno(err) @@ -377,6 +447,9 @@ func Xlink(t *TLS, oldpath, newpath uintptr) int32 { // int dup2(int oldfd, int newfd); func Xdup2(t *TLS, oldfd, newfd int32) int32 { + if __ccgo_strace { + trc("t=%v newfd=%v, (%v:)", t, newfd, origin(2)) + } n, _, err := unix.Syscall(unix.SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0) if err != 0 { t.setErrno(err) @@ -388,6 +461,9 @@ func Xdup2(t *TLS, oldfd, newfd int32) int32 { // ssize_t readlink(const char *restrict path, char *restrict buf, size_t bufsize); func Xreadlink(t *TLS, path, buf uintptr, bufsize types.Size_t) types.Ssize_t { + if __ccgo_strace { + trc("t=%v buf=%v bufsize=%v, (%v:)", t, buf, bufsize, origin(2)) + } var n int var err error switch { @@ -412,6 +488,9 @@ func Xreadlink(t *TLS, path, buf uintptr, bufsize types.Size_t) types.Ssize_t { // FILE *fopen64(const char *pathname, const char *mode); func Xfopen64(t *TLS, pathname, mode uintptr) uintptr { + if __ccgo_strace { + trc("t=%v mode=%v, (%v:)", t, mode, origin(2)) + } m := strings.ReplaceAll(GoString(mode), "b", "") var flags int switch m { @@ -448,3 +527,10 @@ func Xfopen64(t *TLS, pathname, mode uintptr) uintptr { panic("OOM") } + +func Xrewinddir(tls *TLS, f uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } + Xfseek(tls, f, 0, stdio.SEEK_SET) +} diff --git a/vendor/modernc.org/libc/libc_darwin_arm64.go b/vendor/modernc.org/libc/libc_darwin_arm64.go index 3864d3117..9e85e8911 100644 --- a/vendor/modernc.org/libc/libc_darwin_arm64.go +++ b/vendor/modernc.org/libc/libc_darwin_arm64.go @@ -12,12 +12,21 @@ import ( "golang.org/x/sys/unix" "modernc.org/libc/fcntl" "modernc.org/libc/signal" + "modernc.org/libc/stdio" "modernc.org/libc/sys/types" "modernc.org/libc/utime" ) +// #define FE_UPWARD 0x00400000 +// #define FE_DOWNWARD 0x00800000 +const FE_UPWARD = 0x00400000 +const FE_DOWNWARD = 0x00800000 + // int sigaction(int signum, const struct sigaction *act, struct sigaction *oldact); func Xsigaction(t *TLS, signum int32, act, oldact uintptr) int32 { + if __ccgo_strace { + trc("t=%v signum=%v oldact=%v, (%v:)", t, signum, oldact, origin(2)) + } var kact, koldact uintptr if act != 0 { sz := int(unsafe.Sizeof(signal.X__sigaction{})) @@ -45,6 +54,10 @@ func Xsigaction(t *TLS, signum int32, act, oldact uintptr) int32 { // int fcntl(int fd, int cmd, ... /* arg */ ); func Xfcntl64(t *TLS, fd, cmd int32, args uintptr) (r int32) { + if __ccgo_strace { + trc("t=%v cmd=%v args=%v, (%v:)", t, cmd, args, origin(2)) + defer func() { trc("-> %v", r) }() + } var err error var p uintptr var i int @@ -77,6 +90,9 @@ func Xfcntl64(t *TLS, fd, cmd int32, args uintptr) (r int32) { // int lstat(const char *pathname, struct stat *statbuf); func Xlstat64(t *TLS, pathname, statbuf uintptr) int32 { + if __ccgo_strace { + trc("t=%v statbuf=%v, (%v:)", t, statbuf, origin(2)) + } if err := unix.Lstat(GoString(pathname), (*unix.Stat_t)(unsafe.Pointer(statbuf))); err != nil { if dmesgs { dmesg("%v: %q: %v FAIL", origin(1), GoString(pathname), err) @@ -93,6 +109,9 @@ func Xlstat64(t *TLS, pathname, statbuf uintptr) int32 { // int stat(const char *pathname, struct stat *statbuf); func Xstat64(t *TLS, pathname, statbuf uintptr) int32 { + if __ccgo_strace { + trc("t=%v statbuf=%v, (%v:)", t, statbuf, origin(2)) + } if err := unix.Stat(GoString(pathname), (*unix.Stat_t)(unsafe.Pointer(statbuf))); err != nil { if dmesgs { dmesg("%v: %q: %v FAIL", origin(1), GoString(pathname), err) @@ -109,6 +128,9 @@ func Xstat64(t *TLS, pathname, statbuf uintptr) int32 { // int fstatfs(int fd, struct statfs *buf); func Xfstatfs(t *TLS, fd int32, buf uintptr) int32 { + if __ccgo_strace { + trc("t=%v fd=%v buf=%v, (%v:)", t, fd, buf, origin(2)) + } if err := unix.Fstatfs(int(fd), (*unix.Statfs_t)(unsafe.Pointer(buf))); err != nil { if dmesgs { dmesg("%v: %v: %v FAIL", origin(1), fd, err) @@ -125,6 +147,9 @@ func Xfstatfs(t *TLS, fd int32, buf uintptr) int32 { // int statfs(const char *path, struct statfs *buf); func Xstatfs(t *TLS, path uintptr, buf uintptr) int32 { + if __ccgo_strace { + trc("t=%v path=%v buf=%v, (%v:)", t, path, buf, origin(2)) + } if err := unix.Statfs(GoString(path), (*unix.Statfs_t)(unsafe.Pointer(buf))); err != nil { if dmesgs { dmesg("%v: %q: %v FAIL", origin(1), GoString(path), err) @@ -141,6 +166,9 @@ func Xstatfs(t *TLS, path uintptr, buf uintptr) int32 { // int fstat(int fd, struct stat *statbuf); func Xfstat64(t *TLS, fd int32, statbuf uintptr) int32 { + if __ccgo_strace { + trc("t=%v fd=%v statbuf=%v, (%v:)", t, fd, statbuf, origin(2)) + } if err := unix.Fstat(int(fd), (*unix.Stat_t)(unsafe.Pointer(statbuf))); err != nil { if dmesgs { dmesg("%v: fd %d: %v FAIL", origin(1), fd, err) @@ -157,6 +185,9 @@ func Xfstat64(t *TLS, fd int32, statbuf uintptr) int32 { // off64_t lseek64(int fd, off64_t offset, int whence); func Xlseek64(t *TLS, fd int32, offset types.Off_t, whence int32) types.Off_t { + if __ccgo_strace { + trc("t=%v fd=%v offset=%v whence=%v, (%v:)", t, fd, offset, whence, origin(2)) + } n, err := unix.Seek(int(fd), int64(offset), int(whence)) if err != nil { if dmesgs { @@ -174,6 +205,9 @@ func Xlseek64(t *TLS, fd int32, offset types.Off_t, whence int32) types.Off_t { // int utime(const char *filename, const struct utimbuf *times); func Xutime(t *TLS, filename, times uintptr) int32 { + if __ccgo_strace { + trc("t=%v times=%v, (%v:)", t, times, origin(2)) + } var a []unix.Timeval if times != 0 { a = make([]unix.Timeval, 2) @@ -196,6 +230,9 @@ func Xutime(t *TLS, filename, times uintptr) int32 { // unsigned int alarm(unsigned int seconds); func Xalarm(t *TLS, seconds uint32) uint32 { + if __ccgo_strace { + trc("t=%v seconds=%v, (%v:)", t, seconds, origin(2)) + } panic(todo("")) // n, _, err := unix.Syscall(unix.SYS_ALARM, uintptr(seconds), 0, 0) // if err != 0 { @@ -207,6 +244,9 @@ func Xalarm(t *TLS, seconds uint32) uint32 { // time_t time(time_t *tloc); func Xtime(t *TLS, tloc uintptr) types.Time_t { + if __ccgo_strace { + trc("t=%v tloc=%v, (%v:)", t, tloc, origin(2)) + } n := time.Now().UTC().Unix() if tloc != 0 { *(*types.Time_t)(unsafe.Pointer(tloc)) = types.Time_t(n) @@ -226,6 +266,9 @@ func Xtime(t *TLS, tloc uintptr) types.Time_t { // int mkdir(const char *path, mode_t mode); func Xmkdir(t *TLS, path uintptr, mode types.Mode_t) int32 { + if __ccgo_strace { + trc("t=%v path=%v mode=%v, (%v:)", t, path, mode, origin(2)) + } if err := unix.Mkdir(GoString(path), uint32(mode)); err != nil { if dmesgs { dmesg("%v: %q: %v FAIL", origin(1), GoString(path), err) @@ -242,6 +285,9 @@ func Xmkdir(t *TLS, path uintptr, mode types.Mode_t) int32 { // int symlink(const char *target, const char *linkpath); func Xsymlink(t *TLS, target, linkpath uintptr) int32 { + if __ccgo_strace { + trc("t=%v linkpath=%v, (%v:)", t, linkpath, origin(2)) + } if err := unix.Symlink(GoString(target), GoString(linkpath)); err != nil { if dmesgs { dmesg("%v: %v FAIL", origin(1), err) @@ -258,6 +304,9 @@ func Xsymlink(t *TLS, target, linkpath uintptr) int32 { // int chmod(const char *pathname, mode_t mode) func Xchmod(t *TLS, pathname uintptr, mode types.Mode_t) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v mode=%v, (%v:)", t, pathname, mode, origin(2)) + } if err := unix.Chmod(GoString(pathname), uint32(mode)); err != nil { if dmesgs { dmesg("%v: %q %#o: %v FAIL", origin(1), GoString(pathname), mode, err) @@ -274,6 +323,9 @@ func Xchmod(t *TLS, pathname uintptr, mode types.Mode_t) int32 { // int utimes(const char *filename, const struct timeval times[2]); func Xutimes(t *TLS, filename, times uintptr) int32 { + if __ccgo_strace { + trc("t=%v times=%v, (%v:)", t, times, origin(2)) + } var a []unix.Timeval if times != 0 { a = make([]unix.Timeval, 2) @@ -296,6 +348,9 @@ func Xutimes(t *TLS, filename, times uintptr) int32 { // int unlink(const char *pathname); func Xunlink(t *TLS, pathname uintptr) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v, (%v:)", t, pathname, origin(2)) + } if err := unix.Unlink(GoString(pathname)); err != nil { if dmesgs { dmesg("%v: %q: %v", origin(1), GoString(pathname), err) @@ -312,6 +367,9 @@ func Xunlink(t *TLS, pathname uintptr) int32 { // int access(const char *pathname, int mode); func Xaccess(t *TLS, pathname uintptr, mode int32) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v mode=%v, (%v:)", t, pathname, mode, origin(2)) + } if err := unix.Access(GoString(pathname), uint32(mode)); err != nil { if dmesgs { dmesg("%v: %q %#o: %v FAIL", origin(1), GoString(pathname), mode, err) @@ -328,6 +386,9 @@ func Xaccess(t *TLS, pathname uintptr, mode int32) int32 { // int rename(const char *oldpath, const char *newpath); func Xrename(t *TLS, oldpath, newpath uintptr) int32 { + if __ccgo_strace { + trc("t=%v newpath=%v, (%v:)", t, newpath, origin(2)) + } if err := unix.Rename(GoString(oldpath), GoString(newpath)); err != nil { if dmesgs { dmesg("%v: %v FAIL", origin(1), err) @@ -344,6 +405,9 @@ func Xrename(t *TLS, oldpath, newpath uintptr) int32 { // int mknod(const char *pathname, mode_t mode, dev_t dev); func Xmknod(t *TLS, pathname uintptr, mode types.Mode_t, dev types.Dev_t) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v mode=%v dev=%v, (%v:)", t, pathname, mode, dev, origin(2)) + } panic(todo("")) // if _, _, err := unix.Syscall(unix.SYS_MKNOD, pathname, uintptr(mode), uintptr(dev)); err != 0 { // t.setErrno(err) @@ -355,6 +419,9 @@ func Xmknod(t *TLS, pathname uintptr, mode types.Mode_t, dev types.Dev_t) int32 // int chown(const char *pathname, uid_t owner, gid_t group); func Xchown(t *TLS, pathname uintptr, owner types.Uid_t, group types.Gid_t) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v owner=%v group=%v, (%v:)", t, pathname, owner, group, origin(2)) + } panic(todo("")) // if _, _, err := unix.Syscall(unix.SYS_CHOWN, pathname, uintptr(owner), uintptr(group)); err != 0 { // t.setErrno(err) @@ -366,6 +433,9 @@ func Xchown(t *TLS, pathname uintptr, owner types.Uid_t, group types.Gid_t) int3 // int link(const char *oldpath, const char *newpath); func Xlink(t *TLS, oldpath, newpath uintptr) int32 { + if __ccgo_strace { + trc("t=%v newpath=%v, (%v:)", t, newpath, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_LINK, oldpath, newpath, 0); err != 0 { t.setErrno(err) return -1 @@ -376,6 +446,9 @@ func Xlink(t *TLS, oldpath, newpath uintptr) int32 { // int dup2(int oldfd, int newfd); func Xdup2(t *TLS, oldfd, newfd int32) int32 { + if __ccgo_strace { + trc("t=%v newfd=%v, (%v:)", t, newfd, origin(2)) + } panic(todo("")) // n, _, err := unix.Syscall(unix.SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0) // if err != 0 { @@ -388,6 +461,9 @@ func Xdup2(t *TLS, oldfd, newfd int32) int32 { // ssize_t readlink(const char *restrict path, char *restrict buf, size_t bufsize); func Xreadlink(t *TLS, path, buf uintptr, bufsize types.Size_t) types.Ssize_t { + if __ccgo_strace { + trc("t=%v buf=%v bufsize=%v, (%v:)", t, buf, bufsize, origin(2)) + } var n int var err error switch { @@ -412,6 +488,9 @@ func Xreadlink(t *TLS, path, buf uintptr, bufsize types.Size_t) types.Ssize_t { // FILE *fopen64(const char *pathname, const char *mode); func Xfopen64(t *TLS, pathname, mode uintptr) uintptr { + if __ccgo_strace { + trc("t=%v mode=%v, (%v:)", t, mode, origin(2)) + } m := strings.ReplaceAll(GoString(mode), "b", "") var flags int switch m { @@ -448,3 +527,10 @@ func Xfopen64(t *TLS, pathname, mode uintptr) uintptr { panic("OOM") } + +func Xrewinddir(tls *TLS, f uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } + Xfseek(tls, f, 0, stdio.SEEK_SET) +} diff --git a/vendor/modernc.org/libc/libc_freebsd.go b/vendor/modernc.org/libc/libc_freebsd.go index 486f8ec45..4ba7d8bba 100644 --- a/vendor/modernc.org/libc/libc_freebsd.go +++ b/vendor/modernc.org/libc/libc_freebsd.go @@ -5,15 +5,18 @@ package libc // import "modernc.org/libc" import ( + "errors" "fmt" "io" + "io/fs" + "math" + mbits "math/bits" "os" "os/exec" "path/filepath" "runtime" "runtime/debug" "strings" - "syscall" gotime "time" "unicode" "unsafe" @@ -60,9 +63,22 @@ var X_ThreadRuneLocale uintptr //TODO initialize and implement _Thread_local sem // include/xlocale/_ctype.h:54:_RuneLocale *__runes_for_locale(locale_t, int*); func X__runes_for_locale(t *TLS, l locale_t, p uintptr) uintptr { + if __ccgo_strace { + trc("t=%v l=%v p=%v, (%v:)", t, l, p, origin(2)) + } panic(todo("")) } +type Tsize_t = types.Size_t + +// assignSizeT and postIncSizeT are the size_t-typed analogues of +// AssignUint64/PostIncUint64; the existing helpers can't be used on FreeBSD/386 +// where size_t is uint32, not uint64. +func assignSizeT(p *size_t, v size_t) size_t { *p = v; return v } +func postIncSizeT(p *size_t, d size_t) size_t { r := *p; *p += d; return r } + +type syscallErrno = unix.Errno + type file uintptr func (f file) fd() int32 { return int32((*stdio.FILE)(unsafe.Pointer(f)).F_file) } @@ -76,6 +92,18 @@ func (f file) setErr() { (*stdio.FILE)(unsafe.Pointer(f)).F_flags |= 1 } +func (f file) clearErr() { + (*stdio.FILE)(unsafe.Pointer(f)).F_flags &^= 3 +} + +func (f file) eof() bool { + return (*stdio.FILE)(unsafe.Pointer(f)).F_flags&2 != 0 +} + +func (f file) setEOF() { + (*stdio.FILE)(unsafe.Pointer(f)).F_flags |= 2 +} + func (f file) close(t *TLS) int32 { r := Xclose(t, f.fd()) Xfree(t, uintptr(f)) @@ -106,25 +134,50 @@ func fwrite(fd int32, b []byte) (int, error) { return unix.Write(int(fd), b) //TODO use Xwrite } +func Xclearerr(tls *TLS, f uintptr) { + file(f).clearErr() +} + +func Xfeof(t *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("t=%v f=%v, (%v:)", t, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + r = BoolInt32(file(f).eof()) + return r +} + // unsigned long ___runetype(__ct_rune_t) __pure; func X___runetype(t *TLS, x types.X__ct_rune_t) ulong { + if __ccgo_strace { + trc("t=%v x=%v, (%v:)", t, x, origin(2)) + } panic(todo("")) } // int fprintf(FILE *stream, const char *format, ...); func Xfprintf(t *TLS, stream, format, args uintptr) int32 { + if __ccgo_strace { + trc("t=%v args=%v, (%v:)", t, args, origin(2)) + } n, _ := fwrite(int32((*stdio.FILE)(unsafe.Pointer(stream)).F_file), printf(format, args)) return int32(n) } // int usleep(useconds_t usec); func Xusleep(t *TLS, usec types.X__useconds_t) int32 { + if __ccgo_strace { + trc("t=%v usec=%v, (%v:)", t, usec, origin(2)) + } gotime.Sleep(gotime.Microsecond * gotime.Duration(usec)) return 0 } // int getrusage(int who, struct rusage *usage); func Xgetrusage(t *TLS, who int32, usage uintptr) int32 { + if __ccgo_strace { + trc("t=%v who=%v usage=%v, (%v:)", t, who, usage, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_GETRUSAGE, uintptr(who), usage, 0); err != 0 { t.setErrno(err) return -1 @@ -135,6 +188,9 @@ func Xgetrusage(t *TLS, who int32, usage uintptr) int32 { // int fgetc(FILE *stream); func Xfgetc(t *TLS, stream uintptr) int32 { + if __ccgo_strace { + trc("t=%v stream=%v, (%v:)", t, stream, origin(2)) + } fd := int((*stdio.FILE)(unsafe.Pointer(stream)).F_file) var buf [1]byte if n, _ := unix.Read(fd, buf[:]); n != 0 { @@ -146,16 +202,25 @@ func Xfgetc(t *TLS, stream uintptr) int32 { // int lstat(const char *pathname, struct stat *statbuf); func Xlstat(t *TLS, pathname, statbuf uintptr) int32 { + if __ccgo_strace { + trc("t=%v statbuf=%v, (%v:)", t, statbuf, origin(2)) + } return Xlstat64(t, pathname, statbuf) } // int stat(const char *pathname, struct stat *statbuf); func Xstat(t *TLS, pathname, statbuf uintptr) int32 { + if __ccgo_strace { + trc("t=%v statbuf=%v, (%v:)", t, statbuf, origin(2)) + } return Xstat64(t, pathname, statbuf) } // int chdir(const char *path); func Xchdir(t *TLS, path uintptr) int32 { + if __ccgo_strace { + trc("t=%v path=%v, (%v:)", t, path, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_CHDIR, path, 0, 0); err != 0 { t.setErrno(err) return -1 @@ -171,11 +236,8 @@ var localtime time.Tm // struct tm *localtime(const time_t *timep); func Xlocaltime(_ *TLS, timep uintptr) uintptr { - loc := gotime.Local - if r := getenv(Environ(), "TZ"); r != 0 { - zone, off := parseZone(GoString(r)) - loc = gotime.FixedZone(zone, -off) - } + // trc("%T timep=%+v", time.Time_t(0), *(*time.Time_t)(unsafe.Pointer(timep))) + loc := getLocalLocation() ut := *(*time.Time_t)(unsafe.Pointer(timep)) t := gotime.Unix(int64(ut), 0).In(loc) localtime.Ftm_sec = int32(t.Second()) @@ -187,16 +249,17 @@ func Xlocaltime(_ *TLS, timep uintptr) uintptr { localtime.Ftm_wday = int32(t.Weekday()) localtime.Ftm_yday = int32(t.YearDay()) localtime.Ftm_isdst = Bool32(isTimeDST(t)) + _, off := t.Zone() + setTmGmtoff(&localtime, off) + localtime.Ftm_zone = 0 + // trc("%T localtime=%+v", localtime, localtime) return uintptr(unsafe.Pointer(&localtime)) } // struct tm *localtime_r(const time_t *timep, struct tm *result); func Xlocaltime_r(_ *TLS, timep, result uintptr) uintptr { - loc := gotime.Local - if r := getenv(Environ(), "TZ"); r != 0 { - zone, off := parseZone(GoString(r)) - loc = gotime.FixedZone(zone, -off) - } + // trc("%T timep=%+v", time.Time_t(0), *(*time.Time_t)(unsafe.Pointer(timep))) + loc := getLocalLocation() ut := *(*unix.Time_t)(unsafe.Pointer(timep)) t := gotime.Unix(int64(ut), 0).In(loc) (*time.Tm)(unsafe.Pointer(result)).Ftm_sec = int32(t.Second()) @@ -208,16 +271,26 @@ func Xlocaltime_r(_ *TLS, timep, result uintptr) uintptr { (*time.Tm)(unsafe.Pointer(result)).Ftm_wday = int32(t.Weekday()) (*time.Tm)(unsafe.Pointer(result)).Ftm_yday = int32(t.YearDay()) (*time.Tm)(unsafe.Pointer(result)).Ftm_isdst = Bool32(isTimeDST(t)) + _, off := t.Zone() + setTmGmtoff((*time.Tm)(unsafe.Pointer(result)), off) + (*time.Tm)(unsafe.Pointer(result)).Ftm_zone = 0 + // trc("%T localtime_r=%+v", localtime, (*time.Tm)(unsafe.Pointer(result))) return result } // int open(const char *pathname, int flags, ...); func Xopen(t *TLS, pathname uintptr, flags int32, args uintptr) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v flags=%v args=%v, (%v:)", t, pathname, flags, args, origin(2)) + } return Xopen64(t, pathname, flags, args) } // int open(const char *pathname, int flags, ...); func Xopen64(t *TLS, pathname uintptr, flags int32, args uintptr) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v flags=%v args=%v, (%v:)", t, pathname, flags, args, origin(2)) + } var mode types.Mode_t if args != 0 { mode = (types.Mode_t)(VaUint32(&args)) @@ -240,6 +313,9 @@ func Xopen64(t *TLS, pathname uintptr, flags int32, args uintptr) int32 { // off_t lseek(int fd, off_t offset, int whence); func Xlseek(t *TLS, fd int32, offset types.Off_t, whence int32) types.Off_t { + if __ccgo_strace { + trc("t=%v fd=%v offset=%v whence=%v, (%v:)", t, fd, offset, whence, origin(2)) + } return types.Off_t(Xlseek64(t, fd, offset, whence)) } @@ -251,6 +327,9 @@ var fsyncStatbuf stat.Stat // int fsync(int fd); func Xfsync(t *TLS, fd int32) int32 { + if __ccgo_strace { + trc("t=%v fd=%v, (%v:)", t, fd, origin(2)) + } if noFsync { // Simulate -DSQLITE_NO_SYNC for sqlite3 testfixture, see function full_sync in sqlite3.c return Xfstat(t, fd, uintptr(unsafe.Pointer(&fsyncStatbuf))) @@ -269,6 +348,9 @@ func Xfsync(t *TLS, fd int32) int32 { // long sysconf(int name); func Xsysconf(t *TLS, name int32) long { + if __ccgo_strace { + trc("t=%v name=%v, (%v:)", t, name, origin(2)) + } switch name { case unistd.X_SC_PAGESIZE: return long(unix.Getpagesize()) @@ -285,6 +367,9 @@ func Xsysconf(t *TLS, name int32) long { // int close(int fd); func Xclose(t *TLS, fd int32) int32 { + if __ccgo_strace { + trc("t=%v fd=%v, (%v:)", t, fd, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_CLOSE, uintptr(fd), 0, 0); err != 0 { t.setErrno(err) return -1 @@ -298,6 +383,9 @@ func Xclose(t *TLS, fd int32) int32 { // char *getcwd(char *buf, size_t size); func Xgetcwd(t *TLS, buf uintptr, size types.Size_t) uintptr { + if __ccgo_strace { + trc("t=%v buf=%v size=%v, (%v:)", t, buf, size, origin(2)) + } if _, err := unix.Getcwd((*RawMem)(unsafe.Pointer(buf))[:size:size]); err != nil { if dmesgs { dmesg("%v: %v FAIL", origin(1), err) @@ -314,11 +402,17 @@ func Xgetcwd(t *TLS, buf uintptr, size types.Size_t) uintptr { // int fstat(int fd, struct stat *statbuf); func Xfstat(t *TLS, fd int32, statbuf uintptr) int32 { + if __ccgo_strace { + trc("t=%v fd=%v statbuf=%v, (%v:)", t, fd, statbuf, origin(2)) + } return Xfstat64(t, fd, statbuf) } // int ftruncate(int fd, off_t length); func Xftruncate(t *TLS, fd int32, length types.Off_t) int32 { + if __ccgo_strace { + trc("t=%v fd=%v length=%v, (%v:)", t, fd, length, origin(2)) + } if err := unix.Ftruncate(int(fd), int64(length)); err != nil { if dmesgs { dmesg("%v: fd %d: %v FAIL", origin(1), fd, err) @@ -335,11 +429,17 @@ func Xftruncate(t *TLS, fd int32, length types.Off_t) int32 { // int fcntl(int fd, int cmd, ... /* arg */ ); func Xfcntl(t *TLS, fd, cmd int32, args uintptr) int32 { + if __ccgo_strace { + trc("t=%v cmd=%v args=%v, (%v:)", t, cmd, args, origin(2)) + } return Xfcntl64(t, fd, cmd, args) } // ssize_t read(int fd, void *buf, size_t count); func Xread(t *TLS, fd int32, buf uintptr, count types.Size_t) types.Ssize_t { + if __ccgo_strace { + trc("t=%v fd=%v buf=%v count=%v, (%v:)", t, fd, buf, count, origin(2)) + } n, _, err := unix.Syscall(unix.SYS_READ, uintptr(fd), buf, uintptr(count)) if err != 0 { t.setErrno(err) @@ -355,8 +455,11 @@ func Xread(t *TLS, fd int32, buf uintptr, count types.Size_t) types.Ssize_t { // ssize_t write(int fd, const void *buf, size_t count); func Xwrite(t *TLS, fd int32, buf uintptr, count types.Size_t) types.Ssize_t { + if __ccgo_strace { + trc("t=%v fd=%v buf=%v count=%v, (%v:)", t, fd, buf, count, origin(2)) + } const retry = 5 - var err syscall.Errno + var err syscallErrno for i := 0; i < retry; i++ { var n uintptr switch n, _, err = unix.Syscall(unix.SYS_WRITE, uintptr(fd), buf, uintptr(count)); err { @@ -380,6 +483,9 @@ func Xwrite(t *TLS, fd int32, buf uintptr, count types.Size_t) types.Ssize_t { // int fchmod(int fd, mode_t mode); func Xfchmod(t *TLS, fd int32, mode types.Mode_t) int32 { + if __ccgo_strace { + trc("t=%v fd=%v mode=%v, (%v:)", t, fd, mode, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_FCHMOD, uintptr(fd), uintptr(mode), 0); err != 0 { t.setErrno(err) return -1 @@ -393,6 +499,9 @@ func Xfchmod(t *TLS, fd int32, mode types.Mode_t) int32 { // int fchown(int fd, uid_t owner, gid_t group); func Xfchown(t *TLS, fd int32, owner types.Uid_t, group types.Gid_t) int32 { + if __ccgo_strace { + trc("t=%v fd=%v owner=%v group=%v, (%v:)", t, fd, owner, group, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_FCHOWN, uintptr(fd), uintptr(owner), uintptr(group)); err != 0 { t.setErrno(err) return -1 @@ -403,12 +512,18 @@ func Xfchown(t *TLS, fd int32, owner types.Uid_t, group types.Gid_t) int32 { // uid_t geteuid(void); func Xgeteuid(t *TLS) types.Uid_t { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } n, _, _ := unix.Syscall(unix.SYS_GETEUID, 0, 0, 0) return types.Uid_t(n) } // int munmap(void *addr, size_t length); func Xmunmap(t *TLS, addr uintptr, length types.Size_t) int32 { + if __ccgo_strace { + trc("t=%v addr=%v length=%v, (%v:)", t, addr, length, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_MUNMAP, addr, uintptr(length), 0); err != 0 { t.setErrno(err) return -1 @@ -419,6 +534,9 @@ func Xmunmap(t *TLS, addr uintptr, length types.Size_t) int32 { // int gettimeofday(struct timeval *tv, struct timezone *tz); func Xgettimeofday(t *TLS, tv, tz uintptr) int32 { + if __ccgo_strace { + trc("t=%v tz=%v, (%v:)", t, tz, origin(2)) + } if tz != 0 { panic(todo("")) } @@ -430,12 +548,16 @@ func Xgettimeofday(t *TLS, tv, tz uintptr) int32 { return -1 } + //trc("tvs=%+v", tvs) *(*unix.Timeval)(unsafe.Pointer(tv)) = tvs return 0 } // int getsockopt(int sockfd, int level, int optname, void *optval, socklen_t *optlen); func Xgetsockopt(t *TLS, sockfd, level, optname int32, optval, optlen uintptr) int32 { + if __ccgo_strace { + trc("t=%v optname=%v optlen=%v, (%v:)", t, optname, optlen, origin(2)) + } if _, _, err := unix.Syscall6(unix.SYS_GETSOCKOPT, uintptr(sockfd), uintptr(level), uintptr(optname), optval, optlen, 0); err != 0 { t.setErrno(err) return -1 @@ -446,6 +568,9 @@ func Xgetsockopt(t *TLS, sockfd, level, optname int32, optval, optlen uintptr) i // int setsockopt(int sockfd, int level, int optname, const void *optval, socklen_t optlen); func Xsetsockopt(t *TLS, sockfd, level, optname int32, optval uintptr, optlen socket.Socklen_t) int32 { + if __ccgo_strace { + trc("t=%v optname=%v optval=%v optlen=%v, (%v:)", t, optname, optval, optlen, origin(2)) + } if _, _, err := unix.Syscall6(unix.SYS_SETSOCKOPT, uintptr(sockfd), uintptr(level), uintptr(optname), optval, uintptr(optlen), 0); err != 0 { t.setErrno(err) return -1 @@ -456,6 +581,9 @@ func Xsetsockopt(t *TLS, sockfd, level, optname int32, optval uintptr, optlen so // int ioctl(int fd, unsigned long request, ...); func Xioctl(t *TLS, fd int32, request ulong, va uintptr) int32 { + if __ccgo_strace { + trc("t=%v fd=%v request=%v va=%v, (%v:)", t, fd, request, va, origin(2)) + } var argp uintptr if va != 0 { argp = VaUintptr(&va) @@ -471,6 +599,9 @@ func Xioctl(t *TLS, fd int32, request ulong, va uintptr) int32 { // int getsockname(int sockfd, struct sockaddr *addr, socklen_t *addrlen); func Xgetsockname(t *TLS, sockfd int32, addr, addrlen uintptr) int32 { + if __ccgo_strace { + trc("t=%v sockfd=%v addrlen=%v, (%v:)", t, sockfd, addrlen, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_GETSOCKNAME, uintptr(sockfd), addr, addrlen); err != 0 { // if dmesgs { // dmesg("%v: fd %v: %v", origin(1), sockfd, err) @@ -484,6 +615,9 @@ func Xgetsockname(t *TLS, sockfd int32, addr, addrlen uintptr) int32 { // int select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout); func Xselect(t *TLS, nfds int32, readfds, writefds, exceptfds, timeout uintptr) int32 { + if __ccgo_strace { + trc("t=%v nfds=%v timeout=%v, (%v:)", t, nfds, timeout, origin(2)) + } n, err := unix.Select( int(nfds), (*unix.FdSet)(unsafe.Pointer(readfds)), @@ -501,17 +635,31 @@ func Xselect(t *TLS, nfds int32, readfds, writefds, exceptfds, timeout uintptr) // int mkfifo(const char *pathname, mode_t mode); func Xmkfifo(t *TLS, pathname uintptr, mode types.Mode_t) int32 { - panic(todo("")) + if __ccgo_strace { + trc("t=%v pathname=%v mode=%v, (%v:)", t, pathname, mode, origin(2)) + } + if err := unix.Mkfifo(GoString(pathname), uint32(mode)); err != nil { + t.setErrno(err) + return -1 + } + + return 0 } // mode_t umask(mode_t mask); func Xumask(t *TLS, mask types.Mode_t) types.Mode_t { + if __ccgo_strace { + trc("t=%v mask=%v, (%v:)", t, mask, origin(2)) + } n, _, _ := unix.Syscall(unix.SYS_UMASK, uintptr(mask), 0, 0) return types.Mode_t(n) } // int execvp(const char *file, char *const argv[]); func Xexecvp(t *TLS, file, argv uintptr) int32 { + if __ccgo_strace { + trc("t=%v argv=%v, (%v:)", t, argv, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_EXECVE, file, argv, Environ()); err != 0 { t.setErrno(err) return -1 @@ -522,6 +670,9 @@ func Xexecvp(t *TLS, file, argv uintptr) int32 { // pid_t waitpid(pid_t pid, int *wstatus, int options); func Xwaitpid(t *TLS, pid types.Pid_t, wstatus uintptr, optname int32) types.Pid_t { + if __ccgo_strace { + trc("t=%v pid=%v wstatus=%v optname=%v, (%v:)", t, pid, wstatus, optname, origin(2)) + } n, _, err := unix.Syscall6(unix.SYS_WAIT4, uintptr(pid), wstatus, uintptr(optname), 0, 0, 0) if err != 0 { t.setErrno(err) @@ -533,6 +684,9 @@ func Xwaitpid(t *TLS, pid types.Pid_t, wstatus uintptr, optname int32) types.Pid // int uname(struct utsname *buf); func Xuname(t *TLS, buf uintptr) int32 { + if __ccgo_strace { + trc("t=%v buf=%v, (%v:)", t, buf, origin(2)) + } if err := unix.Uname((*unix.Utsname)(unsafe.Pointer(buf))); err != nil { if dmesgs { dmesg("%v: %v FAIL", origin(1), err) @@ -549,6 +703,9 @@ func Xuname(t *TLS, buf uintptr) int32 { // ssize_t recv(int sockfd, void *buf, size_t len, int flags); func Xrecv(t *TLS, sockfd int32, buf uintptr, len types.Size_t, flags int32) types.Ssize_t { + if __ccgo_strace { + trc("t=%v sockfd=%v buf=%v len=%v flags=%v, (%v:)", t, sockfd, buf, len, flags, origin(2)) + } n, _, err := unix.Syscall6(unix.SYS_RECVFROM, uintptr(sockfd), buf, uintptr(len), uintptr(flags), 0, 0) if err != 0 { t.setErrno(err) @@ -560,6 +717,9 @@ func Xrecv(t *TLS, sockfd int32, buf uintptr, len types.Size_t, flags int32) typ // ssize_t send(int sockfd, const void *buf, size_t len, int flags); func Xsend(t *TLS, sockfd int32, buf uintptr, len types.Size_t, flags int32) types.Ssize_t { + if __ccgo_strace { + trc("t=%v sockfd=%v buf=%v len=%v flags=%v, (%v:)", t, sockfd, buf, len, flags, origin(2)) + } n, _, err := unix.Syscall6(unix.SYS_SENDTO, uintptr(sockfd), buf, uintptr(len), uintptr(flags), 0, 0) if err != 0 { t.setErrno(err) @@ -571,6 +731,9 @@ func Xsend(t *TLS, sockfd int32, buf uintptr, len types.Size_t, flags int32) typ // int shutdown(int sockfd, int how); func Xshutdown(t *TLS, sockfd, how int32) int32 { + if __ccgo_strace { + trc("t=%v how=%v, (%v:)", t, how, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_SHUTDOWN, uintptr(sockfd), uintptr(how), 0); err != 0 { t.setErrno(err) return -1 @@ -581,6 +744,9 @@ func Xshutdown(t *TLS, sockfd, how int32) int32 { // int getpeername(int sockfd, struct sockaddr *addr, socklen_t *addrlen); func Xgetpeername(t *TLS, sockfd int32, addr uintptr, addrlen uintptr) int32 { + if __ccgo_strace { + trc("t=%v sockfd=%v addr=%v addrlen=%v, (%v:)", t, sockfd, addr, addrlen, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_GETPEERNAME, uintptr(sockfd), addr, uintptr(addrlen)); err != 0 { t.setErrno(err) return -1 @@ -591,6 +757,9 @@ func Xgetpeername(t *TLS, sockfd int32, addr uintptr, addrlen uintptr) int32 { // int socket(int domain, int type, int protocol); func Xsocket(t *TLS, domain, type1, protocol int32) int32 { + if __ccgo_strace { + trc("t=%v protocol=%v, (%v:)", t, protocol, origin(2)) + } n, _, err := unix.Syscall(unix.SYS_SOCKET, uintptr(domain), uintptr(type1), uintptr(protocol)) if err != 0 { t.setErrno(err) @@ -602,6 +771,9 @@ func Xsocket(t *TLS, domain, type1, protocol int32) int32 { // int bind(int sockfd, const struct sockaddr *addr, socklen_t addrlen); func Xbind(t *TLS, sockfd int32, addr uintptr, addrlen uint32) int32 { + if __ccgo_strace { + trc("t=%v sockfd=%v addr=%v addrlen=%v, (%v:)", t, sockfd, addr, addrlen, origin(2)) + } n, _, err := unix.Syscall(unix.SYS_BIND, uintptr(sockfd), addr, uintptr(addrlen)) if err != 0 { t.setErrno(err) @@ -613,6 +785,9 @@ func Xbind(t *TLS, sockfd int32, addr uintptr, addrlen uint32) int32 { // int connect(int sockfd, const struct sockaddr *addr, socklen_t addrlen); func Xconnect(t *TLS, sockfd int32, addr uintptr, addrlen uint32) int32 { + if __ccgo_strace { + trc("t=%v sockfd=%v addr=%v addrlen=%v, (%v:)", t, sockfd, addr, addrlen, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_CONNECT, uintptr(sockfd), addr, uintptr(addrlen)); err != 0 { t.setErrno(err) return -1 @@ -623,6 +798,9 @@ func Xconnect(t *TLS, sockfd int32, addr uintptr, addrlen uint32) int32 { // int listen(int sockfd, int backlog); func Xlisten(t *TLS, sockfd, backlog int32) int32 { + if __ccgo_strace { + trc("t=%v backlog=%v, (%v:)", t, backlog, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_LISTEN, uintptr(sockfd), uintptr(backlog), 0); err != 0 { t.setErrno(err) return -1 @@ -633,6 +811,9 @@ func Xlisten(t *TLS, sockfd, backlog int32) int32 { // int accept(int sockfd, struct sockaddr *addr, socklen_t *addrlen); func Xaccept(t *TLS, sockfd int32, addr uintptr, addrlen uintptr) int32 { + if __ccgo_strace { + trc("t=%v sockfd=%v addr=%v addrlen=%v, (%v:)", t, sockfd, addr, addrlen, origin(2)) + } n, _, err := unix.Syscall6(unix.SYS_ACCEPT4, uintptr(sockfd), addr, uintptr(addrlen), 0, 0, 0) if err != 0 { t.setErrno(err) @@ -644,16 +825,25 @@ func Xaccept(t *TLS, sockfd int32, addr uintptr, addrlen uintptr) int32 { // int getrlimit(int resource, struct rlimit *rlim); func Xgetrlimit(t *TLS, resource int32, rlim uintptr) int32 { + if __ccgo_strace { + trc("t=%v resource=%v rlim=%v, (%v:)", t, resource, rlim, origin(2)) + } return Xgetrlimit64(t, resource, rlim) } // int setrlimit(int resource, const struct rlimit *rlim); func Xsetrlimit(t *TLS, resource int32, rlim uintptr) int32 { + if __ccgo_strace { + trc("t=%v resource=%v rlim=%v, (%v:)", t, resource, rlim, origin(2)) + } return Xsetrlimit64(t, resource, rlim) } // int setrlimit(int resource, const struct rlimit *rlim); func Xsetrlimit64(t *TLS, resource int32, rlim uintptr) int32 { + if __ccgo_strace { + trc("t=%v resource=%v rlim=%v, (%v:)", t, resource, rlim, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_SETRLIMIT, uintptr(resource), uintptr(rlim), 0); err != 0 { t.setErrno(err) return -1 @@ -664,16 +854,25 @@ func Xsetrlimit64(t *TLS, resource int32, rlim uintptr) int32 { // uid_t getuid(void); func Xgetuid(t *TLS) types.Uid_t { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } return types.Uid_t(os.Getuid()) } // pid_t getpid(void); func Xgetpid(t *TLS) int32 { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } return int32(os.Getpid()) } // int system(const char *command); func Xsystem(t *TLS, command uintptr) int32 { + if __ccgo_strace { + trc("t=%v command=%v, (%v:)", t, command, origin(2)) + } s := GoString(command) if command == 0 { panic(todo("")) @@ -693,30 +892,61 @@ func Xsystem(t *TLS, command uintptr) int32 { // int setvbuf(FILE *stream, char *buf, int mode, size_t size); func Xsetvbuf(t *TLS, stream, buf uintptr, mode int32, size types.Size_t) int32 { + if __ccgo_strace { + trc("t=%v buf=%v mode=%v size=%v, (%v:)", t, buf, mode, size, origin(2)) + } return 0 //TODO } // int raise(int sig); func Xraise(t *TLS, sig int32) int32 { + if __ccgo_strace { + trc("t=%v sig=%v, (%v:)", t, sig, origin(2)) + } panic(todo("")) } // int backtrace(void **buffer, int size); func Xbacktrace(t *TLS, buf uintptr, size int32) int32 { + if __ccgo_strace { + trc("t=%v buf=%v size=%v, (%v:)", t, buf, size, origin(2)) + } panic(todo("")) } // void backtrace_symbols_fd(void *const *buffer, int size, int fd); func Xbacktrace_symbols_fd(t *TLS, buffer uintptr, size, fd int32) { + if __ccgo_strace { + trc("t=%v buffer=%v fd=%v, (%v:)", t, buffer, fd, origin(2)) + } panic(todo("")) } // int fileno(FILE *stream); func Xfileno(t *TLS, stream uintptr) int32 { - panic(todo("")) + if __ccgo_strace { + trc("t=%v stream=%v, (%v:)", t, stream, origin(2)) + } + if stream == 0 { + if dmesgs { + dmesg("%v: FAIL", origin(1)) + } + t.setErrno(errno.EBADF) + return -1 + } + + if fd := int32((*stdio.FILE)(unsafe.Pointer(stream)).F_file); fd >= 0 { + return fd + } + + if dmesgs { + dmesg("%v: FAIL", origin(1)) + } + t.setErrno(errno.EBADF) + return -1 } -func newCFtsent(t *TLS, info int, path string, stat *unix.Stat_t, err syscall.Errno) uintptr { +func newCFtsent(t *TLS, info int, path string, stat *unix.Stat_t, err syscallErrno) uintptr { p := Xcalloc(t, 1, types.Size_t(unsafe.Sizeof(fts.FTSENT{}))) if p == 0 { panic("OOM") @@ -746,11 +976,17 @@ func (f *ftstream) close(t *TLS) { // FTS *fts_open(char * const *path_argv, int options, int (*compar)(const FTSENT **, const FTSENT **)); func Xfts_open(t *TLS, path_argv uintptr, options int32, compar uintptr) uintptr { + if __ccgo_strace { + trc("t=%v path_argv=%v options=%v compar=%v, (%v:)", t, path_argv, options, compar, origin(2)) + } return Xfts64_open(t, path_argv, options, compar) } // FTS *fts_open(char * const *path_argv, int options, int (*compar)(const FTSENT **, const FTSENT **)); func Xfts64_open(t *TLS, path_argv uintptr, options int32, compar uintptr) uintptr { + if __ccgo_strace { + trc("t=%v path_argv=%v options=%v compar=%v, (%v:)", t, path_argv, options, compar, origin(2)) + } f := &ftstream{} var walk func(string) @@ -855,11 +1091,17 @@ func Xfts64_open(t *TLS, path_argv uintptr, options int32, compar uintptr) uintp // FTSENT *fts_read(FTS *ftsp); func Xfts_read(t *TLS, ftsp uintptr) uintptr { + if __ccgo_strace { + trc("t=%v ftsp=%v, (%v:)", t, ftsp, origin(2)) + } return Xfts64_read(t, ftsp) } // FTSENT *fts_read(FTS *ftsp); func Xfts64_read(t *TLS, ftsp uintptr) uintptr { + if __ccgo_strace { + trc("t=%v ftsp=%v, (%v:)", t, ftsp, origin(2)) + } f := getObject(ftsp).(*ftstream) if f.x == len(f.s) { t.setErrno(0) @@ -876,11 +1118,17 @@ func Xfts64_read(t *TLS, ftsp uintptr) uintptr { // int fts_close(FTS *ftsp); func Xfts_close(t *TLS, ftsp uintptr) int32 { + if __ccgo_strace { + trc("t=%v ftsp=%v, (%v:)", t, ftsp, origin(2)) + } return Xfts64_close(t, ftsp) } // int fts_close(FTS *ftsp); func Xfts64_close(t *TLS, ftsp uintptr) int32 { + if __ccgo_strace { + trc("t=%v ftsp=%v, (%v:)", t, ftsp, origin(2)) + } getObject(ftsp).(*ftstream).close(t) removeObject(ftsp) return 0 @@ -888,6 +1136,9 @@ func Xfts64_close(t *TLS, ftsp uintptr) int32 { // void tzset (void); func Xtzset(t *TLS) { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } //TODO } @@ -895,6 +1146,9 @@ var strerrorBuf [100]byte // char *strerror(int errnum); func Xstrerror(t *TLS, errnum int32) uintptr { + if __ccgo_strace { + trc("t=%v errnum=%v, (%v:)", t, errnum, origin(2)) + } if dmesgs { dmesg("%v: %v\n%s", origin(1), errnum, debug.Stack()) } @@ -904,31 +1158,53 @@ func Xstrerror(t *TLS, errnum int32) uintptr { // void *dlopen(const char *filename, int flags); func Xdlopen(t *TLS, filename uintptr, flags int32) uintptr { + if __ccgo_strace { + trc("t=%v filename=%v flags=%v, (%v:)", t, filename, flags, origin(2)) + } panic(todo("")) } // char *dlerror(void); func Xdlerror(t *TLS) uintptr { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } panic(todo("")) } // int dlclose(void *handle); func Xdlclose(t *TLS, handle uintptr) int32 { + if __ccgo_strace { + trc("t=%v handle=%v, (%v:)", t, handle, origin(2)) + } panic(todo("")) } // void *dlsym(void *handle, const char *symbol); func Xdlsym(t *TLS, handle, symbol uintptr) uintptr { + if __ccgo_strace { + trc("t=%v symbol=%v, (%v:)", t, symbol, origin(2)) + } panic(todo("")) } // void perror(const char *s); -func Xperror(t *TLS, s uintptr) { - panic(todo("")) +func Xperror(tls *TLS, msg uintptr) { + if __ccgo_strace { + trc("tls=%v msg=%v, (%v:)", tls, msg, origin(2)) + } + if msg != 0 && *(*int8)(unsafe.Pointer(msg)) != 0 { + fmt.Fprintf(os.Stderr, "%s: ", GoString(msg)) + } + errstr := Xstrerror(tls, *(*int32)(unsafe.Pointer(X__errno_location(tls)))) + fmt.Fprintf(os.Stderr, "%s\n", GoString(errstr)) } // int pclose(FILE *stream); func Xpclose(t *TLS, stream uintptr) int32 { + if __ccgo_strace { + trc("t=%v stream=%v, (%v:)", t, stream, origin(2)) + } panic(todo("")) } @@ -936,37 +1212,58 @@ var gai_strerrorBuf [100]byte // const char *gai_strerror(int errcode); func Xgai_strerror(t *TLS, errcode int32) uintptr { + if __ccgo_strace { + trc("t=%v errcode=%v, (%v:)", t, errcode, origin(2)) + } copy(gai_strerrorBuf[:], fmt.Sprintf("gai error %d\x00", errcode)) return uintptr(unsafe.Pointer(&gai_strerrorBuf)) } // int tcgetattr(int fd, struct termios *termios_p); func Xtcgetattr(t *TLS, fd int32, termios_p uintptr) int32 { + if __ccgo_strace { + trc("t=%v fd=%v termios_p=%v, (%v:)", t, fd, termios_p, origin(2)) + } panic(todo("")) } // int tcsetattr(int fd, int optional_actions, const struct termios *termios_p); func Xtcsetattr(t *TLS, fd, optional_actions int32, termios_p uintptr) int32 { + if __ccgo_strace { + trc("t=%v optional_actions=%v termios_p=%v, (%v:)", t, optional_actions, termios_p, origin(2)) + } panic(todo("")) } // speed_t cfgetospeed(const struct termios *termios_p); func Xcfgetospeed(t *TLS, termios_p uintptr) termios.Speed_t { + if __ccgo_strace { + trc("t=%v termios_p=%v, (%v:)", t, termios_p, origin(2)) + } panic(todo("")) } // int cfsetospeed(struct termios *termios_p, speed_t speed); func Xcfsetospeed(t *TLS, termios_p uintptr, speed uint32) int32 { + if __ccgo_strace { + trc("t=%v termios_p=%v speed=%v, (%v:)", t, termios_p, speed, origin(2)) + } panic(todo("")) } // int cfsetispeed(struct termios *termios_p, speed_t speed); func Xcfsetispeed(t *TLS, termios_p uintptr, speed uint32) int32 { + if __ccgo_strace { + trc("t=%v termios_p=%v speed=%v, (%v:)", t, termios_p, speed, origin(2)) + } panic(todo("")) } // pid_t fork(void); func Xfork(t *TLS) int32 { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } t.setErrno(errno.ENOSYS) return -1 } @@ -975,21 +1272,33 @@ var emptyStr = [1]byte{} // char *setlocale(int category, const char *locale); func Xsetlocale(t *TLS, category int32, locale uintptr) uintptr { + if __ccgo_strace { + trc("t=%v category=%v locale=%v, (%v:)", t, category, locale, origin(2)) + } return uintptr(unsafe.Pointer(&emptyStr)) //TODO } // char *nl_langinfo(nl_item item); func Xnl_langinfo(t *TLS, item langinfo.Nl_item) uintptr { + if __ccgo_strace { + trc("t=%v item=%v, (%v:)", t, item, origin(2)) + } return uintptr(unsafe.Pointer(&emptyStr)) //TODO } // FILE *popen(const char *command, const char *type); func Xpopen(t *TLS, command, type1 uintptr) uintptr { + if __ccgo_strace { + trc("t=%v type1=%v, (%v:)", t, type1, origin(2)) + } panic(todo("")) } // char *realpath(const char *path, char *resolved_path); func Xrealpath(t *TLS, path, resolved_path uintptr) uintptr { + if __ccgo_strace { + trc("t=%v resolved_path=%v, (%v:)", t, resolved_path, origin(2)) + } s, err := filepath.EvalSymlinks(GoString(path)) if err != nil { if os.IsNotExist(err) { @@ -1016,21 +1325,25 @@ func Xrealpath(t *TLS, path, resolved_path uintptr) uintptr { return resolved_path } -// struct tm *gmtime_r(const time_t *timep, struct tm *result); -func Xgmtime_r(t *TLS, timep, result uintptr) uintptr { - panic(todo("")) -} - // char *inet_ntoa(struct in_addr in); func Xinet_ntoa(t *TLS, in1 in.In_addr) uintptr { + if __ccgo_strace { + trc("t=%v in1=%v, (%v:)", t, in1, origin(2)) + } panic(todo("")) } func X__ccgo_in6addr_anyp(t *TLS) uintptr { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } return uintptr(unsafe.Pointer(&in6_addr_any)) } func Xabort(t *TLS) { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } if dmesgs { dmesg("%v:", origin(1)) } @@ -1042,17 +1355,26 @@ func Xabort(t *TLS) { (*signal.Sigaction)(unsafe.Pointer(p)).F__sigaction_u.F__sa_handler = signal.SIG_DFL Xsigaction(t, signal.SIGABRT, p, 0) Xfree(t, p) - unix.Kill(unix.Getpid(), syscall.Signal(signal.SIGABRT)) + unix.Kill(unix.Getpid(), unix.Signal(signal.SIGABRT)) panic(todo("unrechable")) } // int fflush(FILE *stream); func Xfflush(t *TLS, stream uintptr) int32 { + if __ccgo_strace { + trc("t=%v stream=%v, (%v:)", t, stream, origin(2)) + } return 0 //TODO } // size_t fread(void *ptr, size_t size, size_t nmemb, FILE *stream); func Xfread(t *TLS, ptr uintptr, size, nmemb types.Size_t, stream uintptr) types.Size_t { + if __ccgo_strace { + trc("t=%v ptr=%v nmemb=%v stream=%v, (%v:)", t, ptr, nmemb, stream, origin(2)) + } + if size == 0 || nmemb == 0 { + return 0 + } m, _, err := unix.Syscall(unix.SYS_READ, uintptr(file(stream).fd()), ptr, uintptr(size*nmemb)) if err != 0 { file(stream).setErr() @@ -1068,6 +1390,12 @@ func Xfread(t *TLS, ptr uintptr, size, nmemb types.Size_t, stream uintptr) types // size_t fwrite(const void *ptr, size_t size, size_t nmemb, FILE *stream); func Xfwrite(t *TLS, ptr uintptr, size, nmemb types.Size_t, stream uintptr) types.Size_t { + if __ccgo_strace { + trc("t=%v ptr=%v nmemb=%v stream=%v, (%v:)", t, ptr, nmemb, stream, origin(2)) + } + if size == 0 || nmemb == 0 { + return 0 + } m, _, err := unix.Syscall(unix.SYS_WRITE, uintptr(file(stream).fd()), ptr, uintptr(size*nmemb)) if err != 0 { file(stream).setErr() @@ -1083,11 +1411,17 @@ func Xfwrite(t *TLS, ptr uintptr, size, nmemb types.Size_t, stream uintptr) type // int fclose(FILE *stream); func Xfclose(t *TLS, stream uintptr) int32 { + if __ccgo_strace { + trc("t=%v stream=%v, (%v:)", t, stream, origin(2)) + } return file(stream).close(t) } // int fputc(int c, FILE *stream); func Xfputc(t *TLS, c int32, stream uintptr) int32 { + if __ccgo_strace { + trc("t=%v c=%v stream=%v, (%v:)", t, c, stream, origin(2)) + } if _, err := fwrite(file(stream).fd(), []byte{byte(c)}); err != nil { return stdio.EOF } @@ -1097,6 +1431,9 @@ func Xfputc(t *TLS, c int32, stream uintptr) int32 { // int fseek(FILE *stream, long offset, int whence); func Xfseek(t *TLS, stream uintptr, offset long, whence int32) int32 { + if __ccgo_strace { + trc("t=%v stream=%v offset=%v whence=%v, (%v:)", t, stream, offset, whence, origin(2)) + } if n := Xlseek(t, int32(file(stream).fd()), types.Off_t(offset), whence); n < 0 { // if dmesgs { // dmesg("%v: fd %v, off %#x, whence %v: %v", origin(1), file(stream).fd(), offset, whenceStr(whence), n) @@ -1113,6 +1450,9 @@ func Xfseek(t *TLS, stream uintptr, offset long, whence int32) int32 { // long ftell(FILE *stream); func Xftell(t *TLS, stream uintptr) long { + if __ccgo_strace { + trc("t=%v stream=%v, (%v:)", t, stream, origin(2)) + } n := Xlseek(t, file(stream).fd(), 0, stdio.SEEK_CUR) if n < 0 { file(stream).setErr() @@ -1127,21 +1467,33 @@ func Xftell(t *TLS, stream uintptr) long { // int ferror(FILE *stream); func Xferror(t *TLS, stream uintptr) int32 { + if __ccgo_strace { + trc("t=%v stream=%v, (%v:)", t, stream, origin(2)) + } return Bool32(file(stream).err()) } // int ungetc(int c, FILE *stream); func Xungetc(t *TLS, c int32, stream uintptr) int32 { + if __ccgo_strace { + trc("t=%v c=%v stream=%v, (%v:)", t, c, stream, origin(2)) + } panic(todo("")) } // int fscanf(FILE *stream, const char *format, ...); func Xfscanf(t *TLS, stream, format, va uintptr) int32 { + if __ccgo_strace { + trc("t=%v va=%v, (%v:)", t, va, origin(2)) + } panic(todo("")) } // int fputs(const char *s, FILE *stream); func Xfputs(t *TLS, s, stream uintptr) int32 { + if __ccgo_strace { + trc("t=%v stream=%v, (%v:)", t, stream, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_WRITE, uintptr(file(stream).fd()), s, uintptr(Xstrlen(t, s))); err != 0 { return -1 } @@ -1153,6 +1505,9 @@ var getservbynameStaticResult netdb.Servent // struct servent *getservbyname(const char *name, const char *proto); func Xgetservbyname(t *TLS, name, proto uintptr) uintptr { + if __ccgo_strace { + trc("t=%v proto=%v, (%v:)", t, proto, origin(2)) + } var protoent *gonetdb.Protoent if proto != 0 { protoent = gonetdb.GetProtoByName(GoString(proto)) @@ -1230,10 +1585,13 @@ func Xgetservbyname(t *TLS, name, proto uintptr) uintptr { } func Xreaddir64(t *TLS, dir uintptr) uintptr { + if __ccgo_strace { + trc("t=%v dir=%v, (%v:)", t, dir, origin(2)) + } return Xreaddir(t, dir) } -func __syscall(r, _ uintptr, errno syscall.Errno) long { +func __syscall(r, _ uintptr, errno syscallErrno) long { if errno != 0 { return long(-errno) } @@ -1242,14 +1600,23 @@ func __syscall(r, _ uintptr, errno syscall.Errno) long { } func X__syscall1(t *TLS, trap, p1 long) long { + if __ccgo_strace { + trc("t=%v p1=%v, (%v:)", t, p1, origin(2)) + } return __syscall(unix.Syscall(uintptr(trap), uintptr(p1), 0, 0)) } func X__syscall3(t *TLS, trap, p1, p2, p3 long) long { + if __ccgo_strace { + trc("t=%v p3=%v, (%v:)", t, p3, origin(2)) + } return __syscall(unix.Syscall(uintptr(trap), uintptr(p1), uintptr(p2), uintptr(p3))) } func X__syscall4(t *TLS, trap, p1, p2, p3, p4 long) long { + if __ccgo_strace { + trc("t=%v p4=%v, (%v:)", t, p4, origin(2)) + } return __syscall(unix.Syscall6(uintptr(trap), uintptr(p1), uintptr(p2), uintptr(p3), uintptr(p4), 0, 0)) } @@ -1270,28 +1637,210 @@ func fcntlCmdStr(cmd int32) string { } } +func X__strchrnul(tls *TLS, s uintptr, c int32) uintptr { /* strchrnul.c:10:6: */ + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + } + c = int32(uint8(c)) + if !(c != 0) { + return s + uintptr(Xstrlen(tls, s)) + } + var w uintptr + for ; uintptr_t(s)%uintptr_t(unsafe.Sizeof(size_t(0))) != 0; s++ { + if !(int32(*(*int8)(unsafe.Pointer(s))) != 0) || int32(*(*uint8)(unsafe.Pointer(s))) == c { + return s + } + } + var ones size_t = ^size_t(0) / size_t(255) + var himask size_t = ones * size_t(255/2+1) + var k size_t = ones * size_t(c) + wordsz := uintptr(unsafe.Sizeof(size_t(0))) + for w = s; !((*(*size_t)(unsafe.Pointer(w))-ones) & ^*(*size_t)(unsafe.Pointer(w)) & himask != 0) && !((*(*size_t)(unsafe.Pointer(w))^k-ones) & ^(*(*size_t)(unsafe.Pointer(w))^k) & himask != 0); w += wordsz { + } + s = w + for ; *(*int8)(unsafe.Pointer(s)) != 0 && int32(*(*uint8)(unsafe.Pointer(s))) != c; s++ { + } + return s +} + +var _soldenv uintptr /* putenv.c:22:14: */ + // int setenv(const char *name, const char *value, int overwrite); -func Xsetenv(t *TLS, name, value uintptr, overwrite int32) int32 { - panic(todo("")) +func Xsetenv(tls *TLS, var1 uintptr, value uintptr, overwrite int32) int32 { /* setenv.c:26:5: */ + if __ccgo_strace { + trc("tls=%v var1=%v value=%v overwrite=%v, (%v:)", tls, var1, value, overwrite, origin(2)) + } + var s uintptr + var l1 size_t + var l2 size_t + + if !(var1 != 0) || !(int32(assignSizeT(&l1, size_t((int64(X__strchrnul(tls, var1, '='))-int64(var1))/1))) != 0) || *(*int8)(unsafe.Pointer(var1 + uintptr(l1))) != 0 { + *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 22 + return -1 + } + if !(overwrite != 0) && Xgetenv(tls, var1) != 0 { + return 0 + } + + l2 = Xstrlen(tls, value) + s = Xmalloc(tls, l1+l2+size_t(2)) + if !(s != 0) { + return -1 + } + Xmemcpy(tls, s, var1, l1) + *(*int8)(unsafe.Pointer(s + uintptr(l1))) = int8('=') + Xmemcpy(tls, s+uintptr(l1)+uintptr(1), value, l2+size_t(1)) + return X__putenv(tls, s, l1, s) +} + +func X__putenv(tls *TLS, s uintptr, l size_t, r uintptr) int32 { /* putenv.c:8:5: */ + if __ccgo_strace { + trc("tls=%v s=%v l=%v r=%v, (%v:)", tls, s, l, r, origin(2)) + } + var i size_t + var newenv uintptr + var tmp uintptr + //TODO for (char **e = __environ; *e; e++, i++) + var e uintptr + i = size_t(0) + if !(Environ() != 0) { + goto __1 + } + //TODO for (char **e = __environ; *e; e++, i++) + e = Environ() +__2: + if !(*(*uintptr)(unsafe.Pointer(e)) != 0) { + goto __4 + } + if !!(Xstrncmp(tls, s, *(*uintptr)(unsafe.Pointer(e)), l+size_t(1)) != 0) { + goto __5 + } + tmp = *(*uintptr)(unsafe.Pointer(e)) + *(*uintptr)(unsafe.Pointer(e)) = s + X__env_rm_add(tls, tmp, r) + return 0 +__5: + ; + goto __3 +__3: + e += unsafe.Sizeof(uintptr(0)) + i++ + goto __2 + goto __4 +__4: + ; +__1: + ; + if !(Environ() == _soldenv) { + goto __6 + } + newenv = Xrealloc(tls, _soldenv, size_t(unsafe.Sizeof(uintptr(0)))*(i+size_t(2))) + if !!(newenv != 0) { + goto __8 + } + goto oom +__8: + ; + goto __7 +__6: + newenv = Xmalloc(tls, size_t(unsafe.Sizeof(uintptr(0)))*(i+size_t(2))) + if !!(newenv != 0) { + goto __9 + } + goto oom +__9: + ; + if !(i != 0) { + goto __10 + } + Xmemcpy(tls, newenv, Environ(), size_t(unsafe.Sizeof(uintptr(0)))*i) +__10: + ; + Xfree(tls, _soldenv) +__7: + ; + *(*uintptr)(unsafe.Pointer(newenv + uintptr(i)*unsafe.Sizeof(uintptr(0)))) = s + *(*uintptr)(unsafe.Pointer(newenv + uintptr(i+size_t(1))*unsafe.Sizeof(uintptr(0)))) = uintptr(0) + *(*uintptr)(unsafe.Pointer(EnvironP())) = AssignPtrUintptr(uintptr(unsafe.Pointer(&_soldenv)), newenv) + if !(r != 0) { + goto __11 + } + X__env_rm_add(tls, uintptr(0), r) +__11: + ; + return 0 +oom: + Xfree(tls, r) + return -1 +} + +var _senv_alloced uintptr /* setenv.c:7:14: */ +var _senv_alloced_n size_t /* setenv.c:8:16: */ + +func X__env_rm_add(tls *TLS, old uintptr, new uintptr) { /* setenv.c:5:6: */ + if __ccgo_strace { + trc("tls=%v old=%v new=%v, (%v:)", tls, old, new, origin(2)) + } + //TODO for (size_t i=0; i < env_alloced_n; i++) + var i size_t = size_t(0) + for ; i < _senv_alloced_n; i++ { + if *(*uintptr)(unsafe.Pointer(_senv_alloced + uintptr(i)*unsafe.Sizeof(uintptr(0)))) == old { + *(*uintptr)(unsafe.Pointer(_senv_alloced + uintptr(i)*unsafe.Sizeof(uintptr(0)))) = new + Xfree(tls, old) + return + } else if !(int32(*(*uintptr)(unsafe.Pointer(_senv_alloced + uintptr(i)*unsafe.Sizeof(uintptr(0))))) != 0) && new != 0 { + *(*uintptr)(unsafe.Pointer(_senv_alloced + uintptr(i)*unsafe.Sizeof(uintptr(0)))) = new + new = uintptr(0) + } + } + if !(new != 0) { + return + } + var t uintptr = Xrealloc(tls, _senv_alloced, size_t(unsafe.Sizeof(uintptr(0)))*(_senv_alloced_n+size_t(1))) + if !(t != 0) { + return + } + *(*uintptr)(unsafe.Pointer(AssignPtrUintptr(uintptr(unsafe.Pointer(&_senv_alloced)), t) + uintptr(postIncSizeT(&_senv_alloced_n, 1))*unsafe.Sizeof(uintptr(0)))) = new } // int unsetenv(const char *name); func Xunsetenv(t *TLS, name uintptr) int32 { + if __ccgo_strace { + trc("t=%v name=%v, (%v:)", t, name, origin(2)) + } panic(todo("")) } // int pause(void); func Xpause(t *TLS) int32 { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } panic(todo("")) } // ssize_t writev(int fd, const struct iovec *iov, int iovcnt); func Xwritev(t *TLS, fd int32, iov uintptr, iovcnt int32) types.Ssize_t { - panic(todo("")) + if __ccgo_strace { + trc("t=%v fd=%v iov=%v iovcnt=%v, (%v:)", t, fd, iov, iovcnt, origin(2)) + } + r, _, err := unix.Syscall(unix.SYS_WRITEV, uintptr(fd), iov, uintptr(iovcnt)) + if err != 0 { + if dmesgs { + dmesg("%v: %v FAIL", origin(1), err) + } + t.setErrno(err) + return -1 + } + + return types.Ssize_t(r) } // int __isoc99_sscanf(const char *str, const char *format, ...); func X__isoc99_sscanf(t *TLS, str, format, va uintptr) int32 { + if __ccgo_strace { + trc("t=%v va=%v, (%v:)", t, va, origin(2)) + } r := Xsscanf(t, str, format, va) // if dmesgs { // dmesg("%v: %q %q: %d", origin(1), GoString(str), GoString(format), r) @@ -1301,16 +1850,25 @@ func X__isoc99_sscanf(t *TLS, str, format, va uintptr) int32 { // void __assert(const char * func, const char * file, int line, const char *expr) __dead2; func X__assert(t *TLS, fn, file uintptr, line int32, expr uintptr) { + if __ccgo_strace { + trc("t=%v file=%v line=%v expr=%v, (%v:)", t, file, line, expr, origin(2)) + } X__assert_fail(t, expr, file, uint32(line), fn) } // include/stdio.h:456:int __swbuf(int, FILE *); func X__swbuf(t *TLS, n int32, file uintptr) int32 { + if __ccgo_strace { + trc("t=%v n=%v file=%v, (%v:)", t, n, file, origin(2)) + } return Xfputc(t, n, file) //TODO improve performance, use a real buffer. } // int rmdir(const char *pathname); func Xrmdir(t *TLS, pathname uintptr) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v, (%v:)", t, pathname, origin(2)) + } if err := unix.Rmdir(GoString(pathname)); err != nil { if dmesgs { dmesg("%v: %v FAIL", origin(1), err) @@ -1327,6 +1885,9 @@ func Xrmdir(t *TLS, pathname uintptr) int32 { // struct dirent *readdir(DIR *dirp); func Xreaddir(t *TLS, dir uintptr) uintptr { + if __ccgo_strace { + trc("t=%v dir=%v, (%v:)", t, dir, origin(2)) + } if (*darwinDir)(unsafe.Pointer(dir)).eof { return 0 } @@ -1365,6 +1926,9 @@ type darwinDir struct { // int sscanf(const char *str, const char *format, ...); func Xsscanf(t *TLS, str, format, va uintptr) int32 { + if __ccgo_strace { + trc("t=%v va=%v, (%v:)", t, va, origin(2)) + } r := scanf(strings.NewReader(GoString(str)), format, va) // if dmesgs { // dmesg("%v: %q %q: %d", origin(1), GoString(str), GoString(format), r) @@ -1374,10 +1938,16 @@ func Xsscanf(t *TLS, str, format, va uintptr) int32 { // int * __error(void); func X__error(t *TLS) uintptr { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } return t.errnop } func Xclosedir(t *TLS, dir uintptr) int32 { + if __ccgo_strace { + trc("t=%v dir=%v, (%v:)", t, dir, origin(2)) + } r := Xclose(t, int32((*darwinDir)(unsafe.Pointer(dir)).fd)) Xfree(t, dir) return r @@ -1385,13 +1955,19 @@ func Xclosedir(t *TLS, dir uintptr) int32 { // int __xuname(int namesize, void *namebuf) func X__xuname(t *TLS, namesize int32, namebuf uintptr) int32 { + if __ccgo_strace { + trc("t=%v namesize=%v namebuf=%v, (%v:)", t, namesize, namebuf, origin(2)) + } return Xuname(t, namebuf) } // int pipe(int pipefd[2]); func Xpipe(t *TLS, pipefd uintptr) int32 { + if __ccgo_strace { + trc("t=%v pipefd=%v, (%v:)", t, pipefd, origin(2)) + } var a [2]int - if err := syscall.Pipe(a[:]); err != nil { + if err := unix.Pipe(a[:]); err != nil { if dmesgs { dmesg("%v: %v FAIL", origin(1), err) } @@ -1408,10 +1984,16 @@ func Xpipe(t *TLS, pipefd uintptr) int32 { // char *inet_ntoa(struct in_addr in); func X__inet_ntoa(t *TLS, in1 in.In_addr) uintptr { + if __ccgo_strace { + trc("t=%v in1=%v, (%v:)", t, in1, origin(2)) + } panic(todo("")) } func Xmmap(t *TLS, addr uintptr, length types.Size_t, prot, flags, fd int32, offset types.Off_t) uintptr { + if __ccgo_strace { + trc("t=%v addr=%v length=%v fd=%v offset=%v, (%v:)", t, addr, length, fd, offset, origin(2)) + } // Cannot avoid the syscall here, addr sometimes matter. data, _, err := unix.Syscall6(unix.SYS_MMAP, addr, uintptr(length), uintptr(prot), uintptr(flags), uintptr(fd), uintptr(offset)) if err != 0 { @@ -1431,18 +2013,30 @@ func Xmmap(t *TLS, addr uintptr, length types.Size_t, prot, flags, fd int32, off const PTHREAD_MUTEX_DEFAULT = 0 func X__ccgo_pthreadMutexattrGettype(tls *TLS, a uintptr) int32 { /* pthread_attr_get.c:93:5: */ + if __ccgo_strace { + trc("tls=%v a=%v, (%v:)", tls, a, origin(2)) + } return (int32((*pthread_mutexattr_t)(unsafe.Pointer(a)).F__attr & uint32(3))) } func X__ccgo_getMutexType(tls *TLS, m uintptr) int32 { /* pthread_mutex_lock.c:3:5: */ + if __ccgo_strace { + trc("tls=%v m=%v, (%v:)", tls, m, origin(2)) + } return (*(*int32)(unsafe.Pointer((m /* &.__u */ /* &.__i */))) & 15) } func X__ccgo_pthreadAttrGetDetachState(tls *TLS, a uintptr) int32 { /* pthread_attr_get.c:3:5: */ + if __ccgo_strace { + trc("tls=%v a=%v, (%v:)", tls, a, origin(2)) + } return *(*int32)(unsafe.Pointer((a /* &.__u */ /* &.__i */) + 6*4)) } func Xpthread_attr_init(t *TLS, pAttr uintptr) int32 { + if __ccgo_strace { + trc("t=%v pAttr=%v, (%v:)", t, pAttr, origin(2)) + } *(*pthread.Pthread_attr_t)(unsafe.Pointer(pAttr)) = pthread.Pthread_attr_t(0) return 0 } @@ -1459,6 +2053,9 @@ func Xpthread_attr_init(t *TLS, pAttr uintptr) int32 { // // int pthread_mutex_init(pthread_mutex_t *restrict mutex, const pthread_mutexattr_t *restrict attr); func Xpthread_mutex_init(t *TLS, pMutex, pAttr uintptr) int32 { + if __ccgo_strace { + trc("t=%v pAttr=%v, (%v:)", t, pAttr, origin(2)) + } typ := PTHREAD_MUTEX_DEFAULT if pAttr != 0 { typ = int(X__ccgo_pthreadMutexattrGettype(t, pAttr)) @@ -1472,11 +2069,17 @@ func Xpthread_mutex_init(t *TLS, pMutex, pAttr uintptr) int32 { } func Xpthread_attr_getdetachstate(tls *TLS, a uintptr, state uintptr) int32 { /* pthread_attr_get.c:7:5: */ + if __ccgo_strace { + trc("tls=%v a=%v state=%v, (%v:)", tls, a, state, origin(2)) + } *(*int32)(unsafe.Pointer(state)) = *(*int32)(unsafe.Pointer((a /* &.__u */ /* &.__i */) + 6*4)) return 0 } func Xpthread_attr_setdetachstate(tls *TLS, a uintptr, state int32) int32 { /* pthread_attr_setdetachstate.c:3:5: */ + if __ccgo_strace { + trc("tls=%v a=%v state=%v, (%v:)", tls, a, state, origin(2)) + } if uint32(state) > 1 { return 22 } @@ -1485,15 +2088,24 @@ func Xpthread_attr_setdetachstate(tls *TLS, a uintptr, state int32) int32 { /* p } func Xpthread_mutexattr_destroy(tls *TLS, a uintptr) int32 { /* pthread_mutexattr_destroy.c:3:5: */ + if __ccgo_strace { + trc("tls=%v a=%v, (%v:)", tls, a, origin(2)) + } return 0 } func Xpthread_mutexattr_init(tls *TLS, a uintptr) int32 { /* pthread_mutexattr_init.c:3:5: */ + if __ccgo_strace { + trc("tls=%v a=%v, (%v:)", tls, a, origin(2)) + } *(*pthread_mutexattr_t)(unsafe.Pointer(a)) = pthread_mutexattr_t{} return 0 } func Xpthread_mutexattr_settype(tls *TLS, a uintptr, type1 int32) int32 { /* pthread_mutexattr_settype.c:3:5: */ + if __ccgo_strace { + trc("tls=%v a=%v type1=%v, (%v:)", tls, a, type1, origin(2)) + } if uint32(type1) > uint32(2) { return 22 } @@ -1503,6 +2115,9 @@ func Xpthread_mutexattr_settype(tls *TLS, a uintptr, type1 int32) int32 { /* pth // int uuid_parse( char *in, uuid_t uu); func Xuuid_parse(t *TLS, in uintptr, uu uintptr) int32 { + if __ccgo_strace { + trc("t=%v in=%v uu=%v, (%v:)", t, in, uu, origin(2)) + } r, err := guuid.Parse(GoString(in)) if err != nil { return -1 @@ -1512,27 +2127,396 @@ func Xuuid_parse(t *TLS, in uintptr, uu uintptr) int32 { return 0 } -func X__srget(t *TLS, stream uintptr) int32 { return Xgetc(t, stream) } +func X__srget(t *TLS, stream uintptr) int32 { + if __ccgo_strace { + trc("t=%v stream=%v, (%v:)", t, stream, origin(2)) + } + return Xgetc(t, stream) +} func X___tolower(t *TLS, r rune) rune { + if __ccgo_strace { + trc("t=%v r=%v, (%v:)", t, r, origin(2)) + } return unicode.ToLower(r) } func X___toupper(t *TLS, r rune) rune { + if __ccgo_strace { + trc("t=%v r=%v, (%v:)", t, r, origin(2)) + } return unicode.ToLower(r) } // uint16_t __builtin_bswap16 (uint32_t x) func Xbswap16(t *TLS, x uint16) uint16 { + if __ccgo_strace { + trc("t=%v x=%v, (%v:)", t, x, origin(2)) + } return X__builtin_bswap16(t, x) } // uint32_t __builtin_bswap32 (uint32_t x) func Xbswap32(t *TLS, x uint32) uint32 { + if __ccgo_strace { + trc("t=%v x=%v, (%v:)", t, x, origin(2)) + } return X__builtin_bswap32(t, x) } // uint64_t __builtin_bswap64 (uint64_t x) func Xbswap64(t *TLS, x uint64) uint64 { + if __ccgo_strace { + trc("t=%v x=%v, (%v:)", t, x, origin(2)) + } return X__builtin_bswap64(t, x) } + +// int nanosleep(const struct timespec *req, struct timespec *rem); +func Xnanosleep(t *TLS, req, rem uintptr) int32 { + if __ccgo_strace { + trc("t=%v rem=%v, (%v:)", t, rem, origin(2)) + } + v := *(*time.Timespec)(unsafe.Pointer(req)) + gotime.Sleep(gotime.Second*gotime.Duration(v.Ftv_sec) + gotime.Duration(v.Ftv_nsec)) + return 0 +} + +// ssize_t pwrite(int fd, const void *buf, size_t count, off_t offset); +func Xpwrite(t *TLS, fd int32, buf uintptr, count types.Size_t, offset types.Off_t) types.Ssize_t { + if __ccgo_strace { + trc("t=%v fd=%v buf=%v count=%v offset=%v, (%v:)", t, fd, buf, count, offset, origin(2)) + } + var n int + var err error + switch { + case count == 0: + n, err = unix.Pwrite(int(fd), nil, int64(offset)) + default: + n, err = unix.Pwrite(int(fd), (*RawMem)(unsafe.Pointer(buf))[:count:count], int64(offset)) + // if dmesgs { + // dmesg("%v: fd %v, off %#x, count %#x\n%s", origin(1), fd, offset, count, hex.Dump((*RawMem)(unsafe.Pointer(buf))[:count:count])) + // } + } + if err != nil { + // if dmesgs { + // dmesg("%v: %v FAIL", origin(1), err) + // } + t.setErrno(err) + return -1 + } + + // if dmesgs { + // dmesg("%v: ok", origin(1)) + // } + return types.Ssize_t(n) +} + +func Xexplicit_bzero(tls *TLS, d uintptr, n types.Size_t) { + Xmemset(tls, d, 0, n) +} + +// int issetugid(void); +func Xissetugid(t *TLS) int32 { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } + panic(todo("")) +} + +var progname uintptr + +// const char *getprogname(void); +func Xgetprogname(t *TLS) uintptr { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } + if progname != 0 { + return progname + } + + var err error + progname, err = CString(filepath.Base(os.Args[0])) + if err != nil { + t.setErrno(err) + return 0 + } + + return progname +} + +func Xstrncasecmp(tls *TLS, _l uintptr, _r uintptr, n types.Size_t) int32 { /* strncasecmp.c:4:5: */ + var l uintptr = _l + var r uintptr = _r + pre := n + n++ + if !(pre != 0) { + return 0 + } +__1: + if !(*(*uint8)(unsafe.Pointer(l)) != 0 && *(*uint8)(unsafe.Pointer(r)) != 0 && n != 0 && (int32(*(*uint8)(unsafe.Pointer(l))) == int32(*(*uint8)(unsafe.Pointer(r))) || Xtolower(tls, int32(*(*uint8)(unsafe.Pointer(l)))) == Xtolower(tls, int32(*(*uint8)(unsafe.Pointer(r)))))) { + goto __3 + } + goto __2 +__2: + l++ + r++ + n-- + goto __1 + goto __3 +__3: + ; + return Xtolower(tls, int32(*(*uint8)(unsafe.Pointer(l)))) - Xtolower(tls, int32(*(*uint8)(unsafe.Pointer(r)))) +} + +func X__signbit(tls *TLS, x float64) (r int32) { + return int32(math.Float64bits(x) >> 63) +} + +func X__builtin_ctz(t *TLS, n uint32) int32 { + return int32(mbits.TrailingZeros32(n)) +} + +// https://g.co/gemini/share/2c37d5b57994 + +// Constants mirroring C's ftw type flags +const ( + FTW_F = 0 // Regular file + FTW_D = 1 // Directory (visited pre-order) + FTW_DNR = 2 // Directory that cannot be read + FTW_NS = 4 // Stat failed (permissions, broken link, etc.) + FTW_SL = 4 // Symbolic link (lstat was used) + // Note: C's ftw might have other flags like FTW_DP (post-order dir) or FTW_SLN + // which are not directly supported by filepath.WalkDir's simple pre-order traversal. + // This emulation focuses on the most common flags associated with stat/lstat results. +) + +// ftwStopError is used internally to signal that the walk should stop +// because the user callback returned a non-zero value. +type ftwStopError struct { + stopValue int +} + +func (e *ftwStopError) Error() string { + return fmt.Sprintf("ftw walk stopped by callback with return value %d", e.stopValue) +} + +// goFtwFunc is the callback function type, mirroring the C ftw callback. +// It receives the path, file info (if available), and a type flag. +// Returning a non-zero value stops the walk and becomes the return value of Ftw. +// Returning 0 continues the walk. +type goFtwFunc func(path string, info os.FileInfo, typeflag int) int + +// Ftw emulates the C standard library function ftw(3). +// It walks the directory tree starting at 'dirpath' and calls the 'callback' +// function for each entry encountered. +// +// Parameters: +// - dirpath: The root directory path for the traversal. +// - callback: The goFtwFunc to call for each file system entry. +// - nopenfd: This parameter is part of the C ftw signature but is IGNORED +// in this Go implementation. Go's filepath.WalkDir manages concurrency +// and file descriptors internally. +// +// Returns: +// - 0 on successful completion of the walk. +// - The non-zero value returned by the callback, if the callback terminated the walk. +// - -1 if an error occurred during the walk that wasn't handled by calling +// the callback with FTW_DNR or FTW_NS (e.g., error accessing the initial dirpath). +func ftw(dirpath string, callback goFtwFunc, nopenfd int) int { + // nopenfd is ignored in this Go implementation. + + walkErr := filepath.WalkDir(dirpath, func(path string, d fs.DirEntry, err error) error { + var info os.FileInfo + var typeflag int + + // --- Handle errors passed by WalkDir --- + if err != nil { + // Check if the error is related to accessing a directory + if errors.Is(err, fs.ErrPermission) || errors.Is(err, unix.EACCES) { // Added syscall.EACCES check + // Try to determine if it's a directory we can't read + // We might not have 'd' if the error occurred trying to list 'path' contents + // Let's try a direct Lstat on the path itself if d is nil + lstatInfo, lstatErr := os.Lstat(path) + if lstatErr == nil && lstatInfo.IsDir() { + typeflag = FTW_DNR // Directory, but WalkDir errored (likely reading it) + info = lstatInfo // Provide the info we could get + } else { + // Can't confirm it's a directory, or Lstat itself failed + typeflag = FTW_NS // Treat as general stat failure + // info remains nil + } + } else { + // Other errors (e.g., broken symlink during traversal, I/O error) + typeflag = FTW_NS + // Attempt to get Lstat info even if WalkDir had an error, maybe it's available + lstatInfo, _ := os.Lstat(path) // Ignore error here, if it fails info stays nil + info = lstatInfo + } + // Even with errors, call the callback with the path and appropriate flag + stopVal := callback(path, info, typeflag) + if stopVal != 0 { + return &ftwStopError{stopValue: stopVal} + } + // If the error was on a directory, returning the error might stop WalkDir + // from descending. If it was fs.ErrPermission on a dir, WalkDir might + // pass filepath.SkipDir implicitly or continue depending on implementation. + // Let's return nil here to *try* to continue the walk for other siblings + // if the callback didn't stop it. The callback *was* notified. + // If the error prevents further progress WalkDir will stop anyway. + return nil // Allow walk to potentially continue elsewhere + } + + // --- No error from WalkDir, process the DirEntry --- + info, err = d.Info() // Get FileInfo (like C's stat/lstat result) + if err != nil { + // Error getting info for an entry WalkDir *could* list (rare, maybe permissions changed?) + typeflag = FTW_NS + // info remains nil + } else { + // Determine type flag based on file mode + mode := info.Mode() + if mode&fs.ModeSymlink != 0 { + typeflag = FTW_SL + } else if mode.IsDir() { + typeflag = FTW_D // Visited pre-order + } else if mode.IsRegular() { + typeflag = FTW_F + } else { + // Other types (device, socket, pipe, etc.) - C ftw usually lumps these under FTW_F + // or might have FTW_NS if stat fails. Let's treat non-dir, non-link, non-regular + // as FTW_F for simplicity, aligning with common C practice, or FTW_NS if stat failed above. + // Since we have info here, we know stat didn't fail. + // Let's be more specific, maybe treat others as FTW_NS? Or stick to FTW_F? + // C ftw man page isn't super specific about all types. FTW_F seems reasonable. + typeflag = FTW_F // Treat other valid types as 'files' for simplicity + } + } + + // --- Call the user callback --- + stopVal := callback(path, info, typeflag) + if stopVal != 0 { + // User wants to stop the walk + return &ftwStopError{stopValue: stopVal} + } + + return nil // Continue walk + }) + + // --- Handle WalkDir's final return value --- + if walkErr == nil { + return 0 // Success + } + + // Check if the error was our custom stop signal + var stopErr *ftwStopError + if errors.As(walkErr, &stopErr) { + return stopErr.stopValue // Return the value from the callback + } + + // Otherwise, it was an unhandled error during the walk + // (e.g., initial dirpath access error, or other error not mapped to FTW_NS/DNR) + return -1 // General error return +} + +func Xftw(tls *TLS, path uintptr, fn uintptr, fd_limit int32) (r int32) { + statp := tls.Alloc(int(unsafe.Sizeof(unix.Stat_t{}))) + + defer tls.Free(int(unsafe.Sizeof(unix.Stat_t{}))) + + return int32(ftw( + GoString(path), + func(path string, info os.FileInfo, typeflag int) int { + cs, _ := CString(path) + + defer Xfree(tls, cs) + + Xstat(tls, cs, statp) + return int((*(*func(*TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(&struct{ uintptr }{fn})))(tls, cs, statp, int32(typeflag))) + }, + int(fd_limit), + )) +} + +func Xexecve(tls *TLS, path uintptr, argv uintptr, envp uintptr) (r int32) { + goPath := GoString(path) + var goArgv, goEnvp []string + for p := *(*uintptr)(unsafe.Pointer(argv)); p != 0; p = *(*uintptr)(unsafe.Pointer(argv)) { + goArgv = append(goArgv, GoString(p)) + argv += unsafe.Sizeof(uintptr(0)) + } + for p := *(*uintptr)(unsafe.Pointer(envp)); p != 0; p = *(*uintptr)(unsafe.Pointer(envp)) { + goEnvp = append(goEnvp, GoString(p)) + envp += unsafe.Sizeof(uintptr(0)) + } + if err := unix.Exec(goPath, goArgv, goEnvp); err != nil { + tls.setErrno(err) + return -1 + } + panic("unreachable") +} + +func Xsetuid(tls *TLS, uid uint32) (r int32) { + if __ccgo_strace { + trc("tls=%v uid=%v, (%v:)", tls, uid, origin(2)) + defer func() { trc("-> %v", r) }() + } + if err := unix.Setuid(int(uid)); err != nil { + tls.setErrno(err) + return -1 + } + + return 0 +} + +func Xsetgid(tls *TLS, gid uint32) (r int32) { + if __ccgo_strace { + trc("tls=%v gid=%v, (%v:)", tls, gid, origin(2)) + defer func() { trc("-> %v", r) }() + } + if err := unix.Setgid(int(gid)); err != nil { + tls.setErrno(err) + return -1 + } + + return 0 +} + +func Xdup(tls *TLS, fd int32) (r int32) { + if __ccgo_strace { + trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2)) + defer func() { trc("-> %v", r) }() + } + nfd, err := unix.Dup(int(fd)) + if err != nil { + tls.setErrno(err) + return -1 + } + + return int32(nfd) +} + +func X__inline_isnand(t *TLS, x float64) int32 { + if __ccgo_strace { + trc("t=%v x=%v, (%v:)", t, x, origin(2)) + } + return Xisnan(t, x) +} + +func X__inline_isnanf(t *TLS, x float32) int32 { + if __ccgo_strace { + trc("t=%v x=%v, (%v:)", t, x, origin(2)) + } + return Xisnanf(t, x) +} + +func X__inline_isnanl(t *TLS, x float64) int32 { + if __ccgo_strace { + trc("t=%v x=%v, (%v:)", t, x, origin(2)) + } + return Xisnan(t, x) +} + +func AtomicLoadNUint8(ptr uintptr, memorder int32) uint8 { + return byte(a_load_8(ptr)) +} diff --git a/vendor/modernc.org/libc/libc_freebsd_386.go b/vendor/modernc.org/libc/libc_freebsd_386.go index 294448774..314bc42ae 100644 --- a/vendor/modernc.org/libc/libc_freebsd_386.go +++ b/vendor/modernc.org/libc/libc_freebsd_386.go @@ -6,7 +6,6 @@ package libc // import "modernc.org/libc" import ( "strings" - "syscall" "unsafe" "golang.org/x/sys/unix" @@ -24,6 +23,9 @@ type ( // int sigaction(int signum, const struct sigaction *act, struct sigaction *oldact); func Xsigaction(t *TLS, signum int32, act, oldact uintptr) int32 { + if __ccgo_strace { + trc("t=%v signum=%v oldact=%v, (%v:)", t, signum, oldact, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_SIGACTION, uintptr(signum), act, oldact); err != 0 { t.setErrno(err) return -1 @@ -34,6 +36,9 @@ func Xsigaction(t *TLS, signum int32, act, oldact uintptr) int32 { // FILE *fopen64(const char *pathname, const char *mode); func Xfopen64(t *TLS, pathname, mode uintptr) uintptr { + if __ccgo_strace { + trc("t=%v mode=%v, (%v:)", t, mode, origin(2)) + } m := strings.ReplaceAll(GoString(mode), "b", "") var flags int switch m { @@ -73,6 +78,9 @@ func Xfopen64(t *TLS, pathname, mode uintptr) uintptr { // int lstat(const char *pathname, struct stat *statbuf); func Xlstat64(t *TLS, pathname, statbuf uintptr) int32 { + if __ccgo_strace { + trc("t=%v statbuf=%v, (%v:)", t, statbuf, origin(2)) + } if err := unix.Lstat(GoString(pathname), (*unix.Stat_t)(unsafe.Pointer(statbuf))); err != nil { if dmesgs { dmesg("%v: %q: %v FAIL", origin(1), GoString(pathname), err) @@ -89,6 +97,9 @@ func Xlstat64(t *TLS, pathname, statbuf uintptr) int32 { // int stat(const char *pathname, struct stat *statbuf); func Xstat64(t *TLS, pathname, statbuf uintptr) int32 { + if __ccgo_strace { + trc("t=%v statbuf=%v, (%v:)", t, statbuf, origin(2)) + } if err := unix.Stat(GoString(pathname), (*unix.Stat_t)(unsafe.Pointer(statbuf))); err != nil { if dmesgs { dmesg("%v: %q: %v FAIL", origin(1), GoString(pathname), err) @@ -105,6 +116,9 @@ func Xstat64(t *TLS, pathname, statbuf uintptr) int32 { // int mkdir(const char *path, mode_t mode); func Xmkdir(t *TLS, path uintptr, mode types.Mode_t) int32 { + if __ccgo_strace { + trc("t=%v path=%v mode=%v, (%v:)", t, path, mode, origin(2)) + } if err := unix.Mkdir(GoString(path), uint32(mode)); err != nil { if dmesgs { dmesg("%v: %q: %v FAIL", origin(1), GoString(path), err) @@ -121,6 +135,9 @@ func Xmkdir(t *TLS, path uintptr, mode types.Mode_t) int32 { // int access(const char *pathname, int mode); func Xaccess(t *TLS, pathname uintptr, mode int32) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v mode=%v, (%v:)", t, pathname, mode, origin(2)) + } if err := unix.Access(GoString(pathname), uint32(mode)); err != nil { if dmesgs { dmesg("%v: %q %#o: %v FAIL", origin(1), GoString(pathname), mode, err) @@ -137,6 +154,9 @@ func Xaccess(t *TLS, pathname uintptr, mode int32) int32 { // int unlink(const char *pathname); func Xunlink(t *TLS, pathname uintptr) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v, (%v:)", t, pathname, origin(2)) + } if err := unix.Unlink(GoString(pathname)); err != nil { if dmesgs { dmesg("%v: %q: %v", origin(1), GoString(pathname), err) @@ -153,6 +173,9 @@ func Xunlink(t *TLS, pathname uintptr) int32 { // ssize_t readlink(const char *restrict path, char *restrict buf, size_t bufsize); func Xreadlink(t *TLS, path, buf uintptr, bufsize types.Size_t) types.Ssize_t { + if __ccgo_strace { + trc("t=%v buf=%v bufsize=%v, (%v:)", t, buf, bufsize, origin(2)) + } var n int var err error switch { @@ -177,6 +200,9 @@ func Xreadlink(t *TLS, path, buf uintptr, bufsize types.Size_t) types.Ssize_t { // int symlink(const char *target, const char *linkpath); func Xsymlink(t *TLS, target, linkpath uintptr) int32 { + if __ccgo_strace { + trc("t=%v linkpath=%v, (%v:)", t, linkpath, origin(2)) + } if err := unix.Symlink(GoString(target), GoString(linkpath)); err != nil { if dmesgs { dmesg("%v: %v FAIL", origin(1), err) @@ -193,6 +219,9 @@ func Xsymlink(t *TLS, target, linkpath uintptr) int32 { // int chmod(const char *pathname, mode_t mode) func Xchmod(t *TLS, pathname uintptr, mode types.Mode_t) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v mode=%v, (%v:)", t, pathname, mode, origin(2)) + } if err := unix.Chmod(GoString(pathname), uint32(mode)); err != nil { if dmesgs { dmesg("%v: %q %#o: %v FAIL", origin(1), GoString(pathname), mode, err) @@ -209,6 +238,9 @@ func Xchmod(t *TLS, pathname uintptr, mode types.Mode_t) int32 { // time_t time(time_t *tloc); func Xtime(t *TLS, tloc uintptr) time.Time_t { + if __ccgo_strace { + trc("t=%v tloc=%v, (%v:)", t, tloc, origin(2)) + } panic(todo("")) // n := time.Now().UTC().Unix() // if tloc != 0 { @@ -219,6 +251,9 @@ func Xtime(t *TLS, tloc uintptr) time.Time_t { // int utimes(const char *filename, const struct timeval times[2]); func Xutimes(t *TLS, filename, times uintptr) int32 { + if __ccgo_strace { + trc("t=%v times=%v, (%v:)", t, times, origin(2)) + } var a []unix.Timeval if times != 0 { a = make([]unix.Timeval, 2) @@ -241,6 +276,9 @@ func Xutimes(t *TLS, filename, times uintptr) int32 { // int fstat(int fd, struct stat *statbuf); func Xfstat64(t *TLS, fd int32, statbuf uintptr) int32 { + if __ccgo_strace { + trc("t=%v fd=%v statbuf=%v, (%v:)", t, fd, statbuf, origin(2)) + } if err := unix.Fstat(int(fd), (*unix.Stat_t)(unsafe.Pointer(statbuf))); err != nil { if dmesgs { dmesg("%v: fd %d: %v FAIL", origin(1), fd, err) @@ -257,6 +295,9 @@ func Xfstat64(t *TLS, fd int32, statbuf uintptr) int32 { // off64_t lseek64(int fd, off64_t offset, int whence); func Xlseek64(t *TLS, fd int32, offset types.Off_t, whence int32) types.Off_t { + if __ccgo_strace { + trc("t=%v fd=%v offset=%v whence=%v, (%v:)", t, fd, offset, whence, origin(2)) + } n, err := unix.Seek(int(fd), int64(offset), int(whence)) if err != nil { if dmesgs { @@ -273,6 +314,9 @@ func Xlseek64(t *TLS, fd int32, offset types.Off_t, whence int32) types.Off_t { } func Xfcntl64(t *TLS, fd, cmd int32, args uintptr) int32 { + if __ccgo_strace { + trc("t=%v cmd=%v args=%v, (%v:)", t, cmd, args, origin(2)) + } var arg uintptr if args != 0 { arg = *(*uintptr)(unsafe.Pointer(args)) @@ -294,6 +338,9 @@ func Xfcntl64(t *TLS, fd, cmd int32, args uintptr) int32 { // int rename(const char *oldpath, const char *newpath); func Xrename(t *TLS, oldpath, newpath uintptr) int32 { + if __ccgo_strace { + trc("t=%v newpath=%v, (%v:)", t, newpath, origin(2)) + } if err := unix.Rename(GoString(oldpath), GoString(newpath)); err != nil { if dmesgs { dmesg("%v: %v FAIL", origin(1), err) @@ -310,6 +357,9 @@ func Xrename(t *TLS, oldpath, newpath uintptr) int32 { // int mknod(const char *pathname, mode_t mode, dev_t dev); func Xmknod(t *TLS, pathname uintptr, mode types.Mode_t, dev types.Dev_t) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v mode=%v dev=%v, (%v:)", t, pathname, mode, dev, origin(2)) + } panic(todo("")) // if _, _, err := unix.Syscall(unix.SYS_MKNOD, pathname, uintptr(mode), uintptr(dev)); err != 0 { // t.setErrno(err) @@ -321,6 +371,9 @@ func Xmknod(t *TLS, pathname uintptr, mode types.Mode_t, dev types.Dev_t) int32 // int utime(const char *filename, const struct utimbuf *times); func Xutime(t *TLS, filename, times uintptr) int32 { + if __ccgo_strace { + trc("t=%v times=%v, (%v:)", t, times, origin(2)) + } var a []unix.Timeval if times != 0 { a = make([]unix.Timeval, 2) @@ -343,6 +396,9 @@ func Xutime(t *TLS, filename, times uintptr) int32 { // int chown(const char *pathname, uid_t owner, gid_t group); func Xchown(t *TLS, pathname uintptr, owner types.Uid_t, group types.Gid_t) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v owner=%v group=%v, (%v:)", t, pathname, owner, group, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_CHOWN, pathname, uintptr(owner), uintptr(group)); err != 0 { t.setErrno(err) return -1 @@ -353,6 +409,9 @@ func Xchown(t *TLS, pathname uintptr, owner types.Uid_t, group types.Gid_t) int3 // int link(const char *oldpath, const char *newpath); func Xlink(t *TLS, oldpath, newpath uintptr) int32 { + if __ccgo_strace { + trc("t=%v newpath=%v, (%v:)", t, newpath, origin(2)) + } panic(todo("")) // if _, _, err := unix.Syscall(unix.SYS_LINK, oldpath, newpath, 0); err != 0 { // t.setErrno(err) @@ -364,6 +423,9 @@ func Xlink(t *TLS, oldpath, newpath uintptr) int32 { // int dup2(int oldfd, int newfd); func Xdup2(t *TLS, oldfd, newfd int32) int32 { + if __ccgo_strace { + trc("t=%v newfd=%v, (%v:)", t, newfd, origin(2)) + } panic(todo("")) // n, _, err := unix.Syscall(unix.SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0) // if err != 0 { @@ -376,6 +438,9 @@ func Xdup2(t *TLS, oldfd, newfd int32) int32 { // unsigned int alarm(unsigned int seconds); func Xalarm(t *TLS, seconds uint32) uint32 { + if __ccgo_strace { + trc("t=%v seconds=%v, (%v:)", t, seconds, origin(2)) + } panic(todo("")) // n, _, err := unix.Syscall(unix.SYS_ALARM, uintptr(seconds), 0, 0) // if err != 0 { @@ -386,6 +451,9 @@ func Xalarm(t *TLS, seconds uint32) uint32 { } func Xgetnameinfo(tls *TLS, sa1 uintptr, sl socklen_t, node uintptr, nodelen size_t, serv uintptr, servlen size_t, flags int32) int32 { /* getnameinfo.c:125:5: */ + if __ccgo_strace { + trc("tls=%v sa1=%v sl=%v node=%v nodelen=%v serv=%v servlen=%v flags=%v, (%v:)", tls, sa1, sl, node, nodelen, serv, servlen, flags, origin(2)) + } panic(todo("")) //TODO bp := tls.Alloc(347) //TODO defer tls.Free(347) @@ -485,6 +553,9 @@ func Xgetnameinfo(tls *TLS, sa1 uintptr, sl socklen_t, node uintptr, nodelen siz } func Xgethostbyaddr_r(tls *TLS, a uintptr, l socklen_t, af int32, h uintptr, buf uintptr, buflen size_t, res uintptr, err uintptr) int32 { /* gethostbyaddr_r.c:10:5: */ + if __ccgo_strace { + trc("tls=%v a=%v l=%v af=%v h=%v buf=%v buflen=%v res=%v err=%v, (%v:)", tls, a, l, af, h, buf, buflen, res, err, origin(2)) + } panic(todo("")) //TODO bp := tls.Alloc(28) //TODO defer tls.Free(28) @@ -572,6 +643,9 @@ func Xgethostbyaddr_r(tls *TLS, a uintptr, l socklen_t, af int32, h uintptr, buf // int getrlimit(int resource, struct rlimit *rlim); func Xgetrlimit64(t *TLS, resource int32, rlim uintptr) int32 { + if __ccgo_strace { + trc("t=%v resource=%v rlim=%v, (%v:)", t, resource, rlim, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_GETRLIMIT, uintptr(resource), uintptr(rlim), 0); err != 0 { t.setErrno(err) return -1 @@ -580,7 +654,7 @@ func Xgetrlimit64(t *TLS, resource int32, rlim uintptr) int32 { return 0 } -func newFtsent(t *TLS, info int, path string, stat *unix.Stat_t, err syscall.Errno) (r *fts.FTSENT) { +func newFtsent(t *TLS, info int, path string, stat *unix.Stat_t, err syscallErrno) (r *fts.FTSENT) { var statp uintptr if stat != nil { statp = Xmalloc(t, types.Size_t(unsafe.Sizeof(unix.Stat_t{}))) @@ -606,6 +680,9 @@ func newFtsent(t *TLS, info int, path string, stat *unix.Stat_t, err syscall.Err // DIR *opendir(const char *name); func Xopendir(t *TLS, name uintptr) uintptr { + if __ccgo_strace { + trc("t=%v name=%v, (%v:)", t, name, origin(2)) + } p := Xmalloc(t, uint32(unsafe.Sizeof(darwinDir{}))) if p == 0 { panic("OOM") @@ -632,6 +709,9 @@ func Xopendir(t *TLS, name uintptr) uintptr { // int chflags(const char *path, u_int flags); func Xchflags(t *TLS, path uintptr, flags uint32) int32 { + if __ccgo_strace { + trc("t=%v path=%v flags=%v, (%v:)", t, path, flags, origin(2)) + } if err := unix.Chflags(GoString(path), int(flags)); err != nil { if dmesgs { dmesg("%v: %v FAIL", origin(1), err) @@ -645,3 +725,6 @@ func Xchflags(t *TLS, path uintptr, flags uint32) int32 { } return 0 } + +// setTmGmtoff stores off into tm.Ftm_gmtoff at the platform-native width. +func setTmGmtoff(tm *time.Tm, off int) { tm.Ftm_gmtoff = int32(off) } diff --git a/vendor/modernc.org/libc/libc_freebsd_amd64.go b/vendor/modernc.org/libc/libc_freebsd_amd64.go index 48f7fd786..8851f35e2 100644 --- a/vendor/modernc.org/libc/libc_freebsd_amd64.go +++ b/vendor/modernc.org/libc/libc_freebsd_amd64.go @@ -6,12 +6,13 @@ package libc // import "modernc.org/libc" import ( "strings" - "syscall" + gotime "time" "unsafe" "golang.org/x/sys/unix" "modernc.org/libc/fcntl" "modernc.org/libc/fts" + "modernc.org/libc/stdio" "modernc.org/libc/sys/types" "modernc.org/libc/time" "modernc.org/libc/utime" @@ -22,8 +23,15 @@ type ( ulong = uint64 ) +var ( + startTime = gotime.Now() // For clock(3) +) + // int sigaction(int signum, const struct sigaction *act, struct sigaction *oldact); func Xsigaction(t *TLS, signum int32, act, oldact uintptr) int32 { + if __ccgo_strace { + trc("t=%v signum=%v oldact=%v, (%v:)", t, signum, oldact, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_SIGACTION, uintptr(signum), act, oldact); err != 0 { t.setErrno(err) return -1 @@ -34,6 +42,9 @@ func Xsigaction(t *TLS, signum int32, act, oldact uintptr) int32 { // FILE *fopen64(const char *pathname, const char *mode); func Xfopen64(t *TLS, pathname, mode uintptr) uintptr { + if __ccgo_strace { + trc("t=%v mode=%v, (%v:)", t, mode, origin(2)) + } m := strings.ReplaceAll(GoString(mode), "b", "") var flags int switch m { @@ -73,6 +84,9 @@ func Xfopen64(t *TLS, pathname, mode uintptr) uintptr { // int lstat(const char *pathname, struct stat *statbuf); func Xlstat64(t *TLS, pathname, statbuf uintptr) int32 { + if __ccgo_strace { + trc("t=%v statbuf=%v, (%v:)", t, statbuf, origin(2)) + } if err := unix.Lstat(GoString(pathname), (*unix.Stat_t)(unsafe.Pointer(statbuf))); err != nil { if dmesgs { dmesg("%v: %q: %v FAIL", origin(1), GoString(pathname), err) @@ -89,6 +103,9 @@ func Xlstat64(t *TLS, pathname, statbuf uintptr) int32 { // int stat(const char *pathname, struct stat *statbuf); func Xstat64(t *TLS, pathname, statbuf uintptr) int32 { + if __ccgo_strace { + trc("t=%v statbuf=%v, (%v:)", t, statbuf, origin(2)) + } if err := unix.Stat(GoString(pathname), (*unix.Stat_t)(unsafe.Pointer(statbuf))); err != nil { if dmesgs { dmesg("%v: %q: %v FAIL", origin(1), GoString(pathname), err) @@ -105,6 +122,9 @@ func Xstat64(t *TLS, pathname, statbuf uintptr) int32 { // int mkdir(const char *path, mode_t mode); func Xmkdir(t *TLS, path uintptr, mode types.Mode_t) int32 { + if __ccgo_strace { + trc("t=%v path=%v mode=%v, (%v:)", t, path, mode, origin(2)) + } if err := unix.Mkdir(GoString(path), uint32(mode)); err != nil { if dmesgs { dmesg("%v: %q: %v FAIL", origin(1), GoString(path), err) @@ -121,6 +141,9 @@ func Xmkdir(t *TLS, path uintptr, mode types.Mode_t) int32 { // int access(const char *pathname, int mode); func Xaccess(t *TLS, pathname uintptr, mode int32) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v mode=%v, (%v:)", t, pathname, mode, origin(2)) + } if err := unix.Access(GoString(pathname), uint32(mode)); err != nil { if dmesgs { dmesg("%v: %q %#o: %v FAIL", origin(1), GoString(pathname), mode, err) @@ -137,6 +160,9 @@ func Xaccess(t *TLS, pathname uintptr, mode int32) int32 { // int unlink(const char *pathname); func Xunlink(t *TLS, pathname uintptr) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v, (%v:)", t, pathname, origin(2)) + } if err := unix.Unlink(GoString(pathname)); err != nil { if dmesgs { dmesg("%v: %q: %v", origin(1), GoString(pathname), err) @@ -153,6 +179,9 @@ func Xunlink(t *TLS, pathname uintptr) int32 { // ssize_t readlink(const char *restrict path, char *restrict buf, size_t bufsize); func Xreadlink(t *TLS, path, buf uintptr, bufsize types.Size_t) types.Ssize_t { + if __ccgo_strace { + trc("t=%v buf=%v bufsize=%v, (%v:)", t, buf, bufsize, origin(2)) + } var n int var err error switch { @@ -177,6 +206,9 @@ func Xreadlink(t *TLS, path, buf uintptr, bufsize types.Size_t) types.Ssize_t { // int symlink(const char *target, const char *linkpath); func Xsymlink(t *TLS, target, linkpath uintptr) int32 { + if __ccgo_strace { + trc("t=%v linkpath=%v, (%v:)", t, linkpath, origin(2)) + } if err := unix.Symlink(GoString(target), GoString(linkpath)); err != nil { if dmesgs { dmesg("%v: %v FAIL", origin(1), err) @@ -193,6 +225,9 @@ func Xsymlink(t *TLS, target, linkpath uintptr) int32 { // int chmod(const char *pathname, mode_t mode) func Xchmod(t *TLS, pathname uintptr, mode types.Mode_t) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v mode=%v, (%v:)", t, pathname, mode, origin(2)) + } if err := unix.Chmod(GoString(pathname), uint32(mode)); err != nil { if dmesgs { dmesg("%v: %q %#o: %v FAIL", origin(1), GoString(pathname), mode, err) @@ -209,6 +244,9 @@ func Xchmod(t *TLS, pathname uintptr, mode types.Mode_t) int32 { // time_t time(time_t *tloc); func Xtime(t *TLS, tloc uintptr) time.Time_t { + if __ccgo_strace { + trc("t=%v tloc=%v, (%v:)", t, tloc, origin(2)) + } panic(todo("")) // n := time.Now().UTC().Unix() // if tloc != 0 { @@ -219,6 +257,9 @@ func Xtime(t *TLS, tloc uintptr) time.Time_t { // int utimes(const char *filename, const struct timeval times[2]); func Xutimes(t *TLS, filename, times uintptr) int32 { + if __ccgo_strace { + trc("t=%v times=%v, (%v:)", t, times, origin(2)) + } var a []unix.Timeval if times != 0 { a = make([]unix.Timeval, 2) @@ -241,6 +282,9 @@ func Xutimes(t *TLS, filename, times uintptr) int32 { // int fstat(int fd, struct stat *statbuf); func Xfstat64(t *TLS, fd int32, statbuf uintptr) int32 { + if __ccgo_strace { + trc("t=%v fd=%v statbuf=%v, (%v:)", t, fd, statbuf, origin(2)) + } if err := unix.Fstat(int(fd), (*unix.Stat_t)(unsafe.Pointer(statbuf))); err != nil { if dmesgs { dmesg("%v: fd %d: %v FAIL", origin(1), fd, err) @@ -257,6 +301,9 @@ func Xfstat64(t *TLS, fd int32, statbuf uintptr) int32 { // off64_t lseek64(int fd, off64_t offset, int whence); func Xlseek64(t *TLS, fd int32, offset types.Off_t, whence int32) types.Off_t { + if __ccgo_strace { + trc("t=%v fd=%v offset=%v whence=%v, (%v:)", t, fd, offset, whence, origin(2)) + } n, err := unix.Seek(int(fd), int64(offset), int(whence)) if err != nil { if dmesgs { @@ -273,6 +320,9 @@ func Xlseek64(t *TLS, fd int32, offset types.Off_t, whence int32) types.Off_t { } func Xfcntl64(t *TLS, fd, cmd int32, args uintptr) int32 { + if __ccgo_strace { + trc("t=%v cmd=%v args=%v, (%v:)", t, cmd, args, origin(2)) + } var arg uintptr if args != 0 { arg = *(*uintptr)(unsafe.Pointer(args)) @@ -294,6 +344,9 @@ func Xfcntl64(t *TLS, fd, cmd int32, args uintptr) int32 { // int rename(const char *oldpath, const char *newpath); func Xrename(t *TLS, oldpath, newpath uintptr) int32 { + if __ccgo_strace { + trc("t=%v newpath=%v, (%v:)", t, newpath, origin(2)) + } if err := unix.Rename(GoString(oldpath), GoString(newpath)); err != nil { if dmesgs { dmesg("%v: %v FAIL", origin(1), err) @@ -310,6 +363,9 @@ func Xrename(t *TLS, oldpath, newpath uintptr) int32 { // int mknod(const char *pathname, mode_t mode, dev_t dev); func Xmknod(t *TLS, pathname uintptr, mode types.Mode_t, dev types.Dev_t) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v mode=%v dev=%v, (%v:)", t, pathname, mode, dev, origin(2)) + } panic(todo("")) // if _, _, err := unix.Syscall(unix.SYS_MKNOD, pathname, uintptr(mode), uintptr(dev)); err != 0 { // t.setErrno(err) @@ -321,6 +377,9 @@ func Xmknod(t *TLS, pathname uintptr, mode types.Mode_t, dev types.Dev_t) int32 // int utime(const char *filename, const struct utimbuf *times); func Xutime(t *TLS, filename, times uintptr) int32 { + if __ccgo_strace { + trc("t=%v times=%v, (%v:)", t, times, origin(2)) + } var a []unix.Timeval if times != 0 { a = make([]unix.Timeval, 2) @@ -343,6 +402,9 @@ func Xutime(t *TLS, filename, times uintptr) int32 { // int chown(const char *pathname, uid_t owner, gid_t group); func Xchown(t *TLS, pathname uintptr, owner types.Uid_t, group types.Gid_t) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v owner=%v group=%v, (%v:)", t, pathname, owner, group, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_CHOWN, pathname, uintptr(owner), uintptr(group)); err != 0 { t.setErrno(err) return -1 @@ -353,6 +415,9 @@ func Xchown(t *TLS, pathname uintptr, owner types.Uid_t, group types.Gid_t) int3 // int link(const char *oldpath, const char *newpath); func Xlink(t *TLS, oldpath, newpath uintptr) int32 { + if __ccgo_strace { + trc("t=%v newpath=%v, (%v:)", t, newpath, origin(2)) + } panic(todo("")) // if _, _, err := unix.Syscall(unix.SYS_LINK, oldpath, newpath, 0); err != 0 { // t.setErrno(err) @@ -364,6 +429,9 @@ func Xlink(t *TLS, oldpath, newpath uintptr) int32 { // int dup2(int oldfd, int newfd); func Xdup2(t *TLS, oldfd, newfd int32) int32 { + if __ccgo_strace { + trc("t=%v newfd=%v, (%v:)", t, newfd, origin(2)) + } panic(todo("")) // n, _, err := unix.Syscall(unix.SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0) // if err != 0 { @@ -376,6 +444,9 @@ func Xdup2(t *TLS, oldfd, newfd int32) int32 { // unsigned int alarm(unsigned int seconds); func Xalarm(t *TLS, seconds uint32) uint32 { + if __ccgo_strace { + trc("t=%v seconds=%v, (%v:)", t, seconds, origin(2)) + } panic(todo("")) // n, _, err := unix.Syscall(unix.SYS_ALARM, uintptr(seconds), 0, 0) // if err != 0 { @@ -386,6 +457,9 @@ func Xalarm(t *TLS, seconds uint32) uint32 { } func Xgetnameinfo(tls *TLS, sa1 uintptr, sl socklen_t, node uintptr, nodelen size_t, serv uintptr, servlen size_t, flags int32) int32 { /* getnameinfo.c:125:5: */ + if __ccgo_strace { + trc("tls=%v sa1=%v sl=%v node=%v nodelen=%v serv=%v servlen=%v flags=%v, (%v:)", tls, sa1, sl, node, nodelen, serv, servlen, flags, origin(2)) + } panic(todo("")) //TODO bp := tls.Alloc(347) //TODO defer tls.Free(347) @@ -485,6 +559,9 @@ func Xgetnameinfo(tls *TLS, sa1 uintptr, sl socklen_t, node uintptr, nodelen siz } func Xgethostbyaddr_r(tls *TLS, a uintptr, l socklen_t, af int32, h uintptr, buf uintptr, buflen size_t, res uintptr, err uintptr) int32 { /* gethostbyaddr_r.c:10:5: */ + if __ccgo_strace { + trc("tls=%v a=%v l=%v af=%v h=%v buf=%v buflen=%v res=%v err=%v, (%v:)", tls, a, l, af, h, buf, buflen, res, err, origin(2)) + } panic(todo("")) //TODO bp := tls.Alloc(28) //TODO defer tls.Free(28) @@ -572,6 +649,9 @@ func Xgethostbyaddr_r(tls *TLS, a uintptr, l socklen_t, af int32, h uintptr, buf // int getrlimit(int resource, struct rlimit *rlim); func Xgetrlimit64(t *TLS, resource int32, rlim uintptr) int32 { + if __ccgo_strace { + trc("t=%v resource=%v rlim=%v, (%v:)", t, resource, rlim, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_GETRLIMIT, uintptr(resource), uintptr(rlim), 0); err != 0 { t.setErrno(err) return -1 @@ -580,7 +660,7 @@ func Xgetrlimit64(t *TLS, resource int32, rlim uintptr) int32 { return 0 } -func newFtsent(t *TLS, info int, path string, stat *unix.Stat_t, err syscall.Errno) (r *fts.FTSENT) { +func newFtsent(t *TLS, info int, path string, stat *unix.Stat_t, err syscallErrno) (r *fts.FTSENT) { var statp uintptr if stat != nil { statp = Xmalloc(t, types.Size_t(unsafe.Sizeof(unix.Stat_t{}))) @@ -606,6 +686,9 @@ func newFtsent(t *TLS, info int, path string, stat *unix.Stat_t, err syscall.Err // DIR *opendir(const char *name); func Xopendir(t *TLS, name uintptr) uintptr { + if __ccgo_strace { + trc("t=%v name=%v, (%v:)", t, name, origin(2)) + } p := Xmalloc(t, uint64(unsafe.Sizeof(darwinDir{}))) if p == 0 { panic("OOM") @@ -632,6 +715,9 @@ func Xopendir(t *TLS, name uintptr) uintptr { // int chflags(const char *path, u_int flags); func Xchflags(t *TLS, path uintptr, flags uint64) int32 { + if __ccgo_strace { + trc("t=%v path=%v flags=%v, (%v:)", t, path, flags, origin(2)) + } if err := unix.Chflags(GoString(path), int(flags)); err != nil { if dmesgs { dmesg("%v: %v FAIL", origin(1), err) @@ -645,3 +731,229 @@ func Xchflags(t *TLS, path uintptr, flags uint64) int32 { } return 0 } + +var _table1 = [384]int32{ + 129: int32(1), + 130: int32(2), + 131: int32(3), + 132: int32(4), + 133: int32(5), + 134: int32(6), + 135: int32(7), + 136: int32(8), + 137: int32(9), + 138: int32(10), + 139: int32(11), + 140: int32(12), + 141: int32(13), + 142: int32(14), + 143: int32(15), + 144: int32(16), + 145: int32(17), + 146: int32(18), + 147: int32(19), + 148: int32(20), + 149: int32(21), + 150: int32(22), + 151: int32(23), + 152: int32(24), + 153: int32(25), + 154: int32(26), + 155: int32(27), + 156: int32(28), + 157: int32(29), + 158: int32(30), + 159: int32(31), + 160: int32(32), + 161: int32(33), + 162: int32(34), + 163: int32(35), + 164: int32(36), + 165: int32(37), + 166: int32(38), + 167: int32(39), + 168: int32(40), + 169: int32(41), + 170: int32(42), + 171: int32(43), + 172: int32(44), + 173: int32(45), + 174: int32(46), + 175: int32(47), + 176: int32(48), + 177: int32(49), + 178: int32(50), + 179: int32(51), + 180: int32(52), + 181: int32(53), + 182: int32(54), + 183: int32(55), + 184: int32(56), + 185: int32(57), + 186: int32(58), + 187: int32(59), + 188: int32(60), + 189: int32(61), + 190: int32(62), + 191: int32(63), + 192: int32(64), + 193: int32('a'), + 194: int32('b'), + 195: int32('c'), + 196: int32('d'), + 197: int32('e'), + 198: int32('f'), + 199: int32('g'), + 200: int32('h'), + 201: int32('i'), + 202: int32('j'), + 203: int32('k'), + 204: int32('l'), + 205: int32('m'), + 206: int32('n'), + 207: int32('o'), + 208: int32('p'), + 209: int32('q'), + 210: int32('r'), + 211: int32('s'), + 212: int32('t'), + 213: int32('u'), + 214: int32('v'), + 215: int32('w'), + 216: int32('x'), + 217: int32('y'), + 218: int32('z'), + 219: int32(91), + 220: int32(92), + 221: int32(93), + 222: int32(94), + 223: int32(95), + 224: int32(96), + 225: int32('a'), + 226: int32('b'), + 227: int32('c'), + 228: int32('d'), + 229: int32('e'), + 230: int32('f'), + 231: int32('g'), + 232: int32('h'), + 233: int32('i'), + 234: int32('j'), + 235: int32('k'), + 236: int32('l'), + 237: int32('m'), + 238: int32('n'), + 239: int32('o'), + 240: int32('p'), + 241: int32('q'), + 242: int32('r'), + 243: int32('s'), + 244: int32('t'), + 245: int32('u'), + 246: int32('v'), + 247: int32('w'), + 248: int32('x'), + 249: int32('y'), + 250: int32('z'), + 251: int32(123), + 252: int32(124), + 253: int32(125), + 254: int32(126), + 255: int32(127), +} + +var _ptable1 = uintptr(unsafe.Pointer(&_table1)) + uintptr(128)*4 + +func X__ctype_tolower_loc(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(unsafe.Pointer(&_ptable1)) +} + +type Tin6_addr = struct { + F__in6_union struct { + F__s6_addr16 [0][8]uint16 + F__s6_addr32 [0][4]uint32 + F__s6_addr [16]uint8 + } +} + +var Xin6addr_any = Tin6_addr{} + +func Xrewinddir(tls *TLS, f uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } + Xfseek(tls, f, 0, stdio.SEEK_SET) +} + +// clock_t clock(void); +func Xclock(t *TLS) time.Clock_t { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } + return time.Clock_t(gotime.Since(startTime) * gotime.Duration(time.CLOCKS_PER_SEC) / gotime.Second) +} + +func X__maskrune(tls *TLS, _c int32, _f uint64) int32 { + return int32(uint32(int32(*(*uint32)(unsafe.Pointer(uintptr(unsafe.Pointer(&X_DefaultRuneLocale)) + 60 + uintptr(_c&0xff)*4)))) & uint32(_f)) +} + +// int fstatfs(int fd, struct statfs *buf); +func Xfstatfs(t *TLS, fd int32, buf uintptr) int32 { + if err := unix.Fstatfs(int(fd), (*unix.Statfs_t)(unsafe.Pointer(buf))); err != nil { + if dmesgs { + dmesg("%v: %v: %v FAIL", origin(1), fd, err) + } + t.setErrno(err) + return -1 + } + + if dmesgs { + dmesg("%v: %v: ok", origin(1), fd) + } + return 0 +} + +type lconv = struct { + Fdecimal_point uintptr + Fthousands_sep uintptr + Fgrouping uintptr + Fint_curr_symbol uintptr + Fcurrency_symbol uintptr + Fmon_decimal_point uintptr + Fmon_thousands_sep uintptr + Fmon_grouping uintptr + Fpositive_sign uintptr + Fnegative_sign uintptr + Fint_frac_digits int8 + Ffrac_digits int8 + Fp_cs_precedes int8 + Fp_sep_by_space int8 + Fn_cs_precedes int8 + Fn_sep_by_space int8 + Fp_sign_posn int8 + Fn_sign_posn int8 + Fint_p_cs_precedes int8 + Fint_p_sep_by_space int8 + Fint_n_cs_precedes int8 + Fint_n_sep_by_space int8 + Fint_p_sign_posn int8 + Fint_n_sign_posn int8 + F__ccgo_pad1 [2]byte +} + +var posix_lconv = lconv{Fdecimal_point: ts + 23, Fthousands_sep: ts + 13, Fgrouping: ts + 13, Fint_curr_symbol: ts + 13, Fcurrency_symbol: ts + 13, Fmon_decimal_point: ts + 13, Fmon_thousands_sep: ts + 13, Fmon_grouping: ts + 13, Fpositive_sign: ts + 13, Fnegative_sign: ts + 13, Fint_frac_digits: Int8FromInt32(255), Ffrac_digits: Int8FromInt32(255), Fp_cs_precedes: Int8FromInt32(255), Fp_sep_by_space: Int8FromInt32(255), Fn_cs_precedes: Int8FromInt32(255), Fn_sep_by_space: Int8FromInt32(255), Fp_sign_posn: Int8FromInt32(255), Fn_sign_posn: Int8FromInt32(255), Fint_p_cs_precedes: Int8FromInt32(255), Fint_p_sep_by_space: Int8FromInt32(255), Fint_n_cs_precedes: Int8FromInt32(255), Fint_n_sep_by_space: Int8FromInt32(255), Fint_p_sign_posn: Int8FromInt32(255), Fint_n_sign_posn: Int8FromInt32(255)} /* localeconv.c:4:27 */ + +func Xlocaleconv(tls *TLS) uintptr { /* localeconv.c:31:14: */ + return uintptr(unsafe.Pointer(&posix_lconv)) +} + +func X__tolower(tls *TLS, c int32) int32 { /* table.c:1878:20: */ + return Xtolower(tls, c) +} + +// setTmGmtoff stores off into tm.Ftm_gmtoff at the platform-native width. +func setTmGmtoff(tm *time.Tm, off int) { tm.Ftm_gmtoff = int64(off) } diff --git a/vendor/modernc.org/libc/libc_freebsd_arm.go b/vendor/modernc.org/libc/libc_freebsd_arm.go index 294448774..314bc42ae 100644 --- a/vendor/modernc.org/libc/libc_freebsd_arm.go +++ b/vendor/modernc.org/libc/libc_freebsd_arm.go @@ -6,7 +6,6 @@ package libc // import "modernc.org/libc" import ( "strings" - "syscall" "unsafe" "golang.org/x/sys/unix" @@ -24,6 +23,9 @@ type ( // int sigaction(int signum, const struct sigaction *act, struct sigaction *oldact); func Xsigaction(t *TLS, signum int32, act, oldact uintptr) int32 { + if __ccgo_strace { + trc("t=%v signum=%v oldact=%v, (%v:)", t, signum, oldact, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_SIGACTION, uintptr(signum), act, oldact); err != 0 { t.setErrno(err) return -1 @@ -34,6 +36,9 @@ func Xsigaction(t *TLS, signum int32, act, oldact uintptr) int32 { // FILE *fopen64(const char *pathname, const char *mode); func Xfopen64(t *TLS, pathname, mode uintptr) uintptr { + if __ccgo_strace { + trc("t=%v mode=%v, (%v:)", t, mode, origin(2)) + } m := strings.ReplaceAll(GoString(mode), "b", "") var flags int switch m { @@ -73,6 +78,9 @@ func Xfopen64(t *TLS, pathname, mode uintptr) uintptr { // int lstat(const char *pathname, struct stat *statbuf); func Xlstat64(t *TLS, pathname, statbuf uintptr) int32 { + if __ccgo_strace { + trc("t=%v statbuf=%v, (%v:)", t, statbuf, origin(2)) + } if err := unix.Lstat(GoString(pathname), (*unix.Stat_t)(unsafe.Pointer(statbuf))); err != nil { if dmesgs { dmesg("%v: %q: %v FAIL", origin(1), GoString(pathname), err) @@ -89,6 +97,9 @@ func Xlstat64(t *TLS, pathname, statbuf uintptr) int32 { // int stat(const char *pathname, struct stat *statbuf); func Xstat64(t *TLS, pathname, statbuf uintptr) int32 { + if __ccgo_strace { + trc("t=%v statbuf=%v, (%v:)", t, statbuf, origin(2)) + } if err := unix.Stat(GoString(pathname), (*unix.Stat_t)(unsafe.Pointer(statbuf))); err != nil { if dmesgs { dmesg("%v: %q: %v FAIL", origin(1), GoString(pathname), err) @@ -105,6 +116,9 @@ func Xstat64(t *TLS, pathname, statbuf uintptr) int32 { // int mkdir(const char *path, mode_t mode); func Xmkdir(t *TLS, path uintptr, mode types.Mode_t) int32 { + if __ccgo_strace { + trc("t=%v path=%v mode=%v, (%v:)", t, path, mode, origin(2)) + } if err := unix.Mkdir(GoString(path), uint32(mode)); err != nil { if dmesgs { dmesg("%v: %q: %v FAIL", origin(1), GoString(path), err) @@ -121,6 +135,9 @@ func Xmkdir(t *TLS, path uintptr, mode types.Mode_t) int32 { // int access(const char *pathname, int mode); func Xaccess(t *TLS, pathname uintptr, mode int32) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v mode=%v, (%v:)", t, pathname, mode, origin(2)) + } if err := unix.Access(GoString(pathname), uint32(mode)); err != nil { if dmesgs { dmesg("%v: %q %#o: %v FAIL", origin(1), GoString(pathname), mode, err) @@ -137,6 +154,9 @@ func Xaccess(t *TLS, pathname uintptr, mode int32) int32 { // int unlink(const char *pathname); func Xunlink(t *TLS, pathname uintptr) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v, (%v:)", t, pathname, origin(2)) + } if err := unix.Unlink(GoString(pathname)); err != nil { if dmesgs { dmesg("%v: %q: %v", origin(1), GoString(pathname), err) @@ -153,6 +173,9 @@ func Xunlink(t *TLS, pathname uintptr) int32 { // ssize_t readlink(const char *restrict path, char *restrict buf, size_t bufsize); func Xreadlink(t *TLS, path, buf uintptr, bufsize types.Size_t) types.Ssize_t { + if __ccgo_strace { + trc("t=%v buf=%v bufsize=%v, (%v:)", t, buf, bufsize, origin(2)) + } var n int var err error switch { @@ -177,6 +200,9 @@ func Xreadlink(t *TLS, path, buf uintptr, bufsize types.Size_t) types.Ssize_t { // int symlink(const char *target, const char *linkpath); func Xsymlink(t *TLS, target, linkpath uintptr) int32 { + if __ccgo_strace { + trc("t=%v linkpath=%v, (%v:)", t, linkpath, origin(2)) + } if err := unix.Symlink(GoString(target), GoString(linkpath)); err != nil { if dmesgs { dmesg("%v: %v FAIL", origin(1), err) @@ -193,6 +219,9 @@ func Xsymlink(t *TLS, target, linkpath uintptr) int32 { // int chmod(const char *pathname, mode_t mode) func Xchmod(t *TLS, pathname uintptr, mode types.Mode_t) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v mode=%v, (%v:)", t, pathname, mode, origin(2)) + } if err := unix.Chmod(GoString(pathname), uint32(mode)); err != nil { if dmesgs { dmesg("%v: %q %#o: %v FAIL", origin(1), GoString(pathname), mode, err) @@ -209,6 +238,9 @@ func Xchmod(t *TLS, pathname uintptr, mode types.Mode_t) int32 { // time_t time(time_t *tloc); func Xtime(t *TLS, tloc uintptr) time.Time_t { + if __ccgo_strace { + trc("t=%v tloc=%v, (%v:)", t, tloc, origin(2)) + } panic(todo("")) // n := time.Now().UTC().Unix() // if tloc != 0 { @@ -219,6 +251,9 @@ func Xtime(t *TLS, tloc uintptr) time.Time_t { // int utimes(const char *filename, const struct timeval times[2]); func Xutimes(t *TLS, filename, times uintptr) int32 { + if __ccgo_strace { + trc("t=%v times=%v, (%v:)", t, times, origin(2)) + } var a []unix.Timeval if times != 0 { a = make([]unix.Timeval, 2) @@ -241,6 +276,9 @@ func Xutimes(t *TLS, filename, times uintptr) int32 { // int fstat(int fd, struct stat *statbuf); func Xfstat64(t *TLS, fd int32, statbuf uintptr) int32 { + if __ccgo_strace { + trc("t=%v fd=%v statbuf=%v, (%v:)", t, fd, statbuf, origin(2)) + } if err := unix.Fstat(int(fd), (*unix.Stat_t)(unsafe.Pointer(statbuf))); err != nil { if dmesgs { dmesg("%v: fd %d: %v FAIL", origin(1), fd, err) @@ -257,6 +295,9 @@ func Xfstat64(t *TLS, fd int32, statbuf uintptr) int32 { // off64_t lseek64(int fd, off64_t offset, int whence); func Xlseek64(t *TLS, fd int32, offset types.Off_t, whence int32) types.Off_t { + if __ccgo_strace { + trc("t=%v fd=%v offset=%v whence=%v, (%v:)", t, fd, offset, whence, origin(2)) + } n, err := unix.Seek(int(fd), int64(offset), int(whence)) if err != nil { if dmesgs { @@ -273,6 +314,9 @@ func Xlseek64(t *TLS, fd int32, offset types.Off_t, whence int32) types.Off_t { } func Xfcntl64(t *TLS, fd, cmd int32, args uintptr) int32 { + if __ccgo_strace { + trc("t=%v cmd=%v args=%v, (%v:)", t, cmd, args, origin(2)) + } var arg uintptr if args != 0 { arg = *(*uintptr)(unsafe.Pointer(args)) @@ -294,6 +338,9 @@ func Xfcntl64(t *TLS, fd, cmd int32, args uintptr) int32 { // int rename(const char *oldpath, const char *newpath); func Xrename(t *TLS, oldpath, newpath uintptr) int32 { + if __ccgo_strace { + trc("t=%v newpath=%v, (%v:)", t, newpath, origin(2)) + } if err := unix.Rename(GoString(oldpath), GoString(newpath)); err != nil { if dmesgs { dmesg("%v: %v FAIL", origin(1), err) @@ -310,6 +357,9 @@ func Xrename(t *TLS, oldpath, newpath uintptr) int32 { // int mknod(const char *pathname, mode_t mode, dev_t dev); func Xmknod(t *TLS, pathname uintptr, mode types.Mode_t, dev types.Dev_t) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v mode=%v dev=%v, (%v:)", t, pathname, mode, dev, origin(2)) + } panic(todo("")) // if _, _, err := unix.Syscall(unix.SYS_MKNOD, pathname, uintptr(mode), uintptr(dev)); err != 0 { // t.setErrno(err) @@ -321,6 +371,9 @@ func Xmknod(t *TLS, pathname uintptr, mode types.Mode_t, dev types.Dev_t) int32 // int utime(const char *filename, const struct utimbuf *times); func Xutime(t *TLS, filename, times uintptr) int32 { + if __ccgo_strace { + trc("t=%v times=%v, (%v:)", t, times, origin(2)) + } var a []unix.Timeval if times != 0 { a = make([]unix.Timeval, 2) @@ -343,6 +396,9 @@ func Xutime(t *TLS, filename, times uintptr) int32 { // int chown(const char *pathname, uid_t owner, gid_t group); func Xchown(t *TLS, pathname uintptr, owner types.Uid_t, group types.Gid_t) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v owner=%v group=%v, (%v:)", t, pathname, owner, group, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_CHOWN, pathname, uintptr(owner), uintptr(group)); err != 0 { t.setErrno(err) return -1 @@ -353,6 +409,9 @@ func Xchown(t *TLS, pathname uintptr, owner types.Uid_t, group types.Gid_t) int3 // int link(const char *oldpath, const char *newpath); func Xlink(t *TLS, oldpath, newpath uintptr) int32 { + if __ccgo_strace { + trc("t=%v newpath=%v, (%v:)", t, newpath, origin(2)) + } panic(todo("")) // if _, _, err := unix.Syscall(unix.SYS_LINK, oldpath, newpath, 0); err != 0 { // t.setErrno(err) @@ -364,6 +423,9 @@ func Xlink(t *TLS, oldpath, newpath uintptr) int32 { // int dup2(int oldfd, int newfd); func Xdup2(t *TLS, oldfd, newfd int32) int32 { + if __ccgo_strace { + trc("t=%v newfd=%v, (%v:)", t, newfd, origin(2)) + } panic(todo("")) // n, _, err := unix.Syscall(unix.SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0) // if err != 0 { @@ -376,6 +438,9 @@ func Xdup2(t *TLS, oldfd, newfd int32) int32 { // unsigned int alarm(unsigned int seconds); func Xalarm(t *TLS, seconds uint32) uint32 { + if __ccgo_strace { + trc("t=%v seconds=%v, (%v:)", t, seconds, origin(2)) + } panic(todo("")) // n, _, err := unix.Syscall(unix.SYS_ALARM, uintptr(seconds), 0, 0) // if err != 0 { @@ -386,6 +451,9 @@ func Xalarm(t *TLS, seconds uint32) uint32 { } func Xgetnameinfo(tls *TLS, sa1 uintptr, sl socklen_t, node uintptr, nodelen size_t, serv uintptr, servlen size_t, flags int32) int32 { /* getnameinfo.c:125:5: */ + if __ccgo_strace { + trc("tls=%v sa1=%v sl=%v node=%v nodelen=%v serv=%v servlen=%v flags=%v, (%v:)", tls, sa1, sl, node, nodelen, serv, servlen, flags, origin(2)) + } panic(todo("")) //TODO bp := tls.Alloc(347) //TODO defer tls.Free(347) @@ -485,6 +553,9 @@ func Xgetnameinfo(tls *TLS, sa1 uintptr, sl socklen_t, node uintptr, nodelen siz } func Xgethostbyaddr_r(tls *TLS, a uintptr, l socklen_t, af int32, h uintptr, buf uintptr, buflen size_t, res uintptr, err uintptr) int32 { /* gethostbyaddr_r.c:10:5: */ + if __ccgo_strace { + trc("tls=%v a=%v l=%v af=%v h=%v buf=%v buflen=%v res=%v err=%v, (%v:)", tls, a, l, af, h, buf, buflen, res, err, origin(2)) + } panic(todo("")) //TODO bp := tls.Alloc(28) //TODO defer tls.Free(28) @@ -572,6 +643,9 @@ func Xgethostbyaddr_r(tls *TLS, a uintptr, l socklen_t, af int32, h uintptr, buf // int getrlimit(int resource, struct rlimit *rlim); func Xgetrlimit64(t *TLS, resource int32, rlim uintptr) int32 { + if __ccgo_strace { + trc("t=%v resource=%v rlim=%v, (%v:)", t, resource, rlim, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_GETRLIMIT, uintptr(resource), uintptr(rlim), 0); err != 0 { t.setErrno(err) return -1 @@ -580,7 +654,7 @@ func Xgetrlimit64(t *TLS, resource int32, rlim uintptr) int32 { return 0 } -func newFtsent(t *TLS, info int, path string, stat *unix.Stat_t, err syscall.Errno) (r *fts.FTSENT) { +func newFtsent(t *TLS, info int, path string, stat *unix.Stat_t, err syscallErrno) (r *fts.FTSENT) { var statp uintptr if stat != nil { statp = Xmalloc(t, types.Size_t(unsafe.Sizeof(unix.Stat_t{}))) @@ -606,6 +680,9 @@ func newFtsent(t *TLS, info int, path string, stat *unix.Stat_t, err syscall.Err // DIR *opendir(const char *name); func Xopendir(t *TLS, name uintptr) uintptr { + if __ccgo_strace { + trc("t=%v name=%v, (%v:)", t, name, origin(2)) + } p := Xmalloc(t, uint32(unsafe.Sizeof(darwinDir{}))) if p == 0 { panic("OOM") @@ -632,6 +709,9 @@ func Xopendir(t *TLS, name uintptr) uintptr { // int chflags(const char *path, u_int flags); func Xchflags(t *TLS, path uintptr, flags uint32) int32 { + if __ccgo_strace { + trc("t=%v path=%v flags=%v, (%v:)", t, path, flags, origin(2)) + } if err := unix.Chflags(GoString(path), int(flags)); err != nil { if dmesgs { dmesg("%v: %v FAIL", origin(1), err) @@ -645,3 +725,6 @@ func Xchflags(t *TLS, path uintptr, flags uint32) int32 { } return 0 } + +// setTmGmtoff stores off into tm.Ftm_gmtoff at the platform-native width. +func setTmGmtoff(tm *time.Tm, off int) { tm.Ftm_gmtoff = int32(off) } diff --git a/vendor/modernc.org/libc/libc_freebsd_arm64.go b/vendor/modernc.org/libc/libc_freebsd_arm64.go index 48f7fd786..59e2cd90d 100644 --- a/vendor/modernc.org/libc/libc_freebsd_arm64.go +++ b/vendor/modernc.org/libc/libc_freebsd_arm64.go @@ -6,12 +6,13 @@ package libc // import "modernc.org/libc" import ( "strings" - "syscall" + gotime "time" "unsafe" "golang.org/x/sys/unix" "modernc.org/libc/fcntl" "modernc.org/libc/fts" + "modernc.org/libc/stdio" "modernc.org/libc/sys/types" "modernc.org/libc/time" "modernc.org/libc/utime" @@ -22,8 +23,15 @@ type ( ulong = uint64 ) +var ( + startTime = gotime.Now() // For clock(3) +) + // int sigaction(int signum, const struct sigaction *act, struct sigaction *oldact); func Xsigaction(t *TLS, signum int32, act, oldact uintptr) int32 { + if __ccgo_strace { + trc("t=%v signum=%v oldact=%v, (%v:)", t, signum, oldact, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_SIGACTION, uintptr(signum), act, oldact); err != 0 { t.setErrno(err) return -1 @@ -34,6 +42,9 @@ func Xsigaction(t *TLS, signum int32, act, oldact uintptr) int32 { // FILE *fopen64(const char *pathname, const char *mode); func Xfopen64(t *TLS, pathname, mode uintptr) uintptr { + if __ccgo_strace { + trc("t=%v mode=%v, (%v:)", t, mode, origin(2)) + } m := strings.ReplaceAll(GoString(mode), "b", "") var flags int switch m { @@ -73,6 +84,9 @@ func Xfopen64(t *TLS, pathname, mode uintptr) uintptr { // int lstat(const char *pathname, struct stat *statbuf); func Xlstat64(t *TLS, pathname, statbuf uintptr) int32 { + if __ccgo_strace { + trc("t=%v statbuf=%v, (%v:)", t, statbuf, origin(2)) + } if err := unix.Lstat(GoString(pathname), (*unix.Stat_t)(unsafe.Pointer(statbuf))); err != nil { if dmesgs { dmesg("%v: %q: %v FAIL", origin(1), GoString(pathname), err) @@ -89,6 +103,9 @@ func Xlstat64(t *TLS, pathname, statbuf uintptr) int32 { // int stat(const char *pathname, struct stat *statbuf); func Xstat64(t *TLS, pathname, statbuf uintptr) int32 { + if __ccgo_strace { + trc("t=%v statbuf=%v, (%v:)", t, statbuf, origin(2)) + } if err := unix.Stat(GoString(pathname), (*unix.Stat_t)(unsafe.Pointer(statbuf))); err != nil { if dmesgs { dmesg("%v: %q: %v FAIL", origin(1), GoString(pathname), err) @@ -105,6 +122,9 @@ func Xstat64(t *TLS, pathname, statbuf uintptr) int32 { // int mkdir(const char *path, mode_t mode); func Xmkdir(t *TLS, path uintptr, mode types.Mode_t) int32 { + if __ccgo_strace { + trc("t=%v path=%v mode=%v, (%v:)", t, path, mode, origin(2)) + } if err := unix.Mkdir(GoString(path), uint32(mode)); err != nil { if dmesgs { dmesg("%v: %q: %v FAIL", origin(1), GoString(path), err) @@ -121,6 +141,9 @@ func Xmkdir(t *TLS, path uintptr, mode types.Mode_t) int32 { // int access(const char *pathname, int mode); func Xaccess(t *TLS, pathname uintptr, mode int32) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v mode=%v, (%v:)", t, pathname, mode, origin(2)) + } if err := unix.Access(GoString(pathname), uint32(mode)); err != nil { if dmesgs { dmesg("%v: %q %#o: %v FAIL", origin(1), GoString(pathname), mode, err) @@ -137,6 +160,9 @@ func Xaccess(t *TLS, pathname uintptr, mode int32) int32 { // int unlink(const char *pathname); func Xunlink(t *TLS, pathname uintptr) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v, (%v:)", t, pathname, origin(2)) + } if err := unix.Unlink(GoString(pathname)); err != nil { if dmesgs { dmesg("%v: %q: %v", origin(1), GoString(pathname), err) @@ -153,6 +179,9 @@ func Xunlink(t *TLS, pathname uintptr) int32 { // ssize_t readlink(const char *restrict path, char *restrict buf, size_t bufsize); func Xreadlink(t *TLS, path, buf uintptr, bufsize types.Size_t) types.Ssize_t { + if __ccgo_strace { + trc("t=%v buf=%v bufsize=%v, (%v:)", t, buf, bufsize, origin(2)) + } var n int var err error switch { @@ -177,6 +206,9 @@ func Xreadlink(t *TLS, path, buf uintptr, bufsize types.Size_t) types.Ssize_t { // int symlink(const char *target, const char *linkpath); func Xsymlink(t *TLS, target, linkpath uintptr) int32 { + if __ccgo_strace { + trc("t=%v linkpath=%v, (%v:)", t, linkpath, origin(2)) + } if err := unix.Symlink(GoString(target), GoString(linkpath)); err != nil { if dmesgs { dmesg("%v: %v FAIL", origin(1), err) @@ -193,6 +225,9 @@ func Xsymlink(t *TLS, target, linkpath uintptr) int32 { // int chmod(const char *pathname, mode_t mode) func Xchmod(t *TLS, pathname uintptr, mode types.Mode_t) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v mode=%v, (%v:)", t, pathname, mode, origin(2)) + } if err := unix.Chmod(GoString(pathname), uint32(mode)); err != nil { if dmesgs { dmesg("%v: %q %#o: %v FAIL", origin(1), GoString(pathname), mode, err) @@ -209,6 +244,9 @@ func Xchmod(t *TLS, pathname uintptr, mode types.Mode_t) int32 { // time_t time(time_t *tloc); func Xtime(t *TLS, tloc uintptr) time.Time_t { + if __ccgo_strace { + trc("t=%v tloc=%v, (%v:)", t, tloc, origin(2)) + } panic(todo("")) // n := time.Now().UTC().Unix() // if tloc != 0 { @@ -219,6 +257,9 @@ func Xtime(t *TLS, tloc uintptr) time.Time_t { // int utimes(const char *filename, const struct timeval times[2]); func Xutimes(t *TLS, filename, times uintptr) int32 { + if __ccgo_strace { + trc("t=%v times=%v, (%v:)", t, times, origin(2)) + } var a []unix.Timeval if times != 0 { a = make([]unix.Timeval, 2) @@ -241,6 +282,9 @@ func Xutimes(t *TLS, filename, times uintptr) int32 { // int fstat(int fd, struct stat *statbuf); func Xfstat64(t *TLS, fd int32, statbuf uintptr) int32 { + if __ccgo_strace { + trc("t=%v fd=%v statbuf=%v, (%v:)", t, fd, statbuf, origin(2)) + } if err := unix.Fstat(int(fd), (*unix.Stat_t)(unsafe.Pointer(statbuf))); err != nil { if dmesgs { dmesg("%v: fd %d: %v FAIL", origin(1), fd, err) @@ -257,6 +301,9 @@ func Xfstat64(t *TLS, fd int32, statbuf uintptr) int32 { // off64_t lseek64(int fd, off64_t offset, int whence); func Xlseek64(t *TLS, fd int32, offset types.Off_t, whence int32) types.Off_t { + if __ccgo_strace { + trc("t=%v fd=%v offset=%v whence=%v, (%v:)", t, fd, offset, whence, origin(2)) + } n, err := unix.Seek(int(fd), int64(offset), int(whence)) if err != nil { if dmesgs { @@ -273,6 +320,9 @@ func Xlseek64(t *TLS, fd int32, offset types.Off_t, whence int32) types.Off_t { } func Xfcntl64(t *TLS, fd, cmd int32, args uintptr) int32 { + if __ccgo_strace { + trc("t=%v cmd=%v args=%v, (%v:)", t, cmd, args, origin(2)) + } var arg uintptr if args != 0 { arg = *(*uintptr)(unsafe.Pointer(args)) @@ -294,6 +344,9 @@ func Xfcntl64(t *TLS, fd, cmd int32, args uintptr) int32 { // int rename(const char *oldpath, const char *newpath); func Xrename(t *TLS, oldpath, newpath uintptr) int32 { + if __ccgo_strace { + trc("t=%v newpath=%v, (%v:)", t, newpath, origin(2)) + } if err := unix.Rename(GoString(oldpath), GoString(newpath)); err != nil { if dmesgs { dmesg("%v: %v FAIL", origin(1), err) @@ -310,6 +363,9 @@ func Xrename(t *TLS, oldpath, newpath uintptr) int32 { // int mknod(const char *pathname, mode_t mode, dev_t dev); func Xmknod(t *TLS, pathname uintptr, mode types.Mode_t, dev types.Dev_t) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v mode=%v dev=%v, (%v:)", t, pathname, mode, dev, origin(2)) + } panic(todo("")) // if _, _, err := unix.Syscall(unix.SYS_MKNOD, pathname, uintptr(mode), uintptr(dev)); err != 0 { // t.setErrno(err) @@ -321,6 +377,9 @@ func Xmknod(t *TLS, pathname uintptr, mode types.Mode_t, dev types.Dev_t) int32 // int utime(const char *filename, const struct utimbuf *times); func Xutime(t *TLS, filename, times uintptr) int32 { + if __ccgo_strace { + trc("t=%v times=%v, (%v:)", t, times, origin(2)) + } var a []unix.Timeval if times != 0 { a = make([]unix.Timeval, 2) @@ -343,6 +402,9 @@ func Xutime(t *TLS, filename, times uintptr) int32 { // int chown(const char *pathname, uid_t owner, gid_t group); func Xchown(t *TLS, pathname uintptr, owner types.Uid_t, group types.Gid_t) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v owner=%v group=%v, (%v:)", t, pathname, owner, group, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_CHOWN, pathname, uintptr(owner), uintptr(group)); err != 0 { t.setErrno(err) return -1 @@ -353,6 +415,9 @@ func Xchown(t *TLS, pathname uintptr, owner types.Uid_t, group types.Gid_t) int3 // int link(const char *oldpath, const char *newpath); func Xlink(t *TLS, oldpath, newpath uintptr) int32 { + if __ccgo_strace { + trc("t=%v newpath=%v, (%v:)", t, newpath, origin(2)) + } panic(todo("")) // if _, _, err := unix.Syscall(unix.SYS_LINK, oldpath, newpath, 0); err != 0 { // t.setErrno(err) @@ -364,6 +429,9 @@ func Xlink(t *TLS, oldpath, newpath uintptr) int32 { // int dup2(int oldfd, int newfd); func Xdup2(t *TLS, oldfd, newfd int32) int32 { + if __ccgo_strace { + trc("t=%v newfd=%v, (%v:)", t, newfd, origin(2)) + } panic(todo("")) // n, _, err := unix.Syscall(unix.SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0) // if err != 0 { @@ -376,6 +444,9 @@ func Xdup2(t *TLS, oldfd, newfd int32) int32 { // unsigned int alarm(unsigned int seconds); func Xalarm(t *TLS, seconds uint32) uint32 { + if __ccgo_strace { + trc("t=%v seconds=%v, (%v:)", t, seconds, origin(2)) + } panic(todo("")) // n, _, err := unix.Syscall(unix.SYS_ALARM, uintptr(seconds), 0, 0) // if err != 0 { @@ -386,6 +457,9 @@ func Xalarm(t *TLS, seconds uint32) uint32 { } func Xgetnameinfo(tls *TLS, sa1 uintptr, sl socklen_t, node uintptr, nodelen size_t, serv uintptr, servlen size_t, flags int32) int32 { /* getnameinfo.c:125:5: */ + if __ccgo_strace { + trc("tls=%v sa1=%v sl=%v node=%v nodelen=%v serv=%v servlen=%v flags=%v, (%v:)", tls, sa1, sl, node, nodelen, serv, servlen, flags, origin(2)) + } panic(todo("")) //TODO bp := tls.Alloc(347) //TODO defer tls.Free(347) @@ -485,6 +559,9 @@ func Xgetnameinfo(tls *TLS, sa1 uintptr, sl socklen_t, node uintptr, nodelen siz } func Xgethostbyaddr_r(tls *TLS, a uintptr, l socklen_t, af int32, h uintptr, buf uintptr, buflen size_t, res uintptr, err uintptr) int32 { /* gethostbyaddr_r.c:10:5: */ + if __ccgo_strace { + trc("tls=%v a=%v l=%v af=%v h=%v buf=%v buflen=%v res=%v err=%v, (%v:)", tls, a, l, af, h, buf, buflen, res, err, origin(2)) + } panic(todo("")) //TODO bp := tls.Alloc(28) //TODO defer tls.Free(28) @@ -572,6 +649,9 @@ func Xgethostbyaddr_r(tls *TLS, a uintptr, l socklen_t, af int32, h uintptr, buf // int getrlimit(int resource, struct rlimit *rlim); func Xgetrlimit64(t *TLS, resource int32, rlim uintptr) int32 { + if __ccgo_strace { + trc("t=%v resource=%v rlim=%v, (%v:)", t, resource, rlim, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_GETRLIMIT, uintptr(resource), uintptr(rlim), 0); err != 0 { t.setErrno(err) return -1 @@ -580,7 +660,7 @@ func Xgetrlimit64(t *TLS, resource int32, rlim uintptr) int32 { return 0 } -func newFtsent(t *TLS, info int, path string, stat *unix.Stat_t, err syscall.Errno) (r *fts.FTSENT) { +func newFtsent(t *TLS, info int, path string, stat *unix.Stat_t, err syscallErrno) (r *fts.FTSENT) { var statp uintptr if stat != nil { statp = Xmalloc(t, types.Size_t(unsafe.Sizeof(unix.Stat_t{}))) @@ -606,6 +686,9 @@ func newFtsent(t *TLS, info int, path string, stat *unix.Stat_t, err syscall.Err // DIR *opendir(const char *name); func Xopendir(t *TLS, name uintptr) uintptr { + if __ccgo_strace { + trc("t=%v name=%v, (%v:)", t, name, origin(2)) + } p := Xmalloc(t, uint64(unsafe.Sizeof(darwinDir{}))) if p == 0 { panic("OOM") @@ -632,6 +715,9 @@ func Xopendir(t *TLS, name uintptr) uintptr { // int chflags(const char *path, u_int flags); func Xchflags(t *TLS, path uintptr, flags uint64) int32 { + if __ccgo_strace { + trc("t=%v path=%v flags=%v, (%v:)", t, path, flags, origin(2)) + } if err := unix.Chflags(GoString(path), int(flags)); err != nil { if dmesgs { dmesg("%v: %v FAIL", origin(1), err) @@ -645,3 +731,171 @@ func Xchflags(t *TLS, path uintptr, flags uint64) int32 { } return 0 } + +var _table1 = [384]int32{ + 129: int32(1), + 130: int32(2), + 131: int32(3), + 132: int32(4), + 133: int32(5), + 134: int32(6), + 135: int32(7), + 136: int32(8), + 137: int32(9), + 138: int32(10), + 139: int32(11), + 140: int32(12), + 141: int32(13), + 142: int32(14), + 143: int32(15), + 144: int32(16), + 145: int32(17), + 146: int32(18), + 147: int32(19), + 148: int32(20), + 149: int32(21), + 150: int32(22), + 151: int32(23), + 152: int32(24), + 153: int32(25), + 154: int32(26), + 155: int32(27), + 156: int32(28), + 157: int32(29), + 158: int32(30), + 159: int32(31), + 160: int32(32), + 161: int32(33), + 162: int32(34), + 163: int32(35), + 164: int32(36), + 165: int32(37), + 166: int32(38), + 167: int32(39), + 168: int32(40), + 169: int32(41), + 170: int32(42), + 171: int32(43), + 172: int32(44), + 173: int32(45), + 174: int32(46), + 175: int32(47), + 176: int32(48), + 177: int32(49), + 178: int32(50), + 179: int32(51), + 180: int32(52), + 181: int32(53), + 182: int32(54), + 183: int32(55), + 184: int32(56), + 185: int32(57), + 186: int32(58), + 187: int32(59), + 188: int32(60), + 189: int32(61), + 190: int32(62), + 191: int32(63), + 192: int32(64), + 193: int32('a'), + 194: int32('b'), + 195: int32('c'), + 196: int32('d'), + 197: int32('e'), + 198: int32('f'), + 199: int32('g'), + 200: int32('h'), + 201: int32('i'), + 202: int32('j'), + 203: int32('k'), + 204: int32('l'), + 205: int32('m'), + 206: int32('n'), + 207: int32('o'), + 208: int32('p'), + 209: int32('q'), + 210: int32('r'), + 211: int32('s'), + 212: int32('t'), + 213: int32('u'), + 214: int32('v'), + 215: int32('w'), + 216: int32('x'), + 217: int32('y'), + 218: int32('z'), + 219: int32(91), + 220: int32(92), + 221: int32(93), + 222: int32(94), + 223: int32(95), + 224: int32(96), + 225: int32('a'), + 226: int32('b'), + 227: int32('c'), + 228: int32('d'), + 229: int32('e'), + 230: int32('f'), + 231: int32('g'), + 232: int32('h'), + 233: int32('i'), + 234: int32('j'), + 235: int32('k'), + 236: int32('l'), + 237: int32('m'), + 238: int32('n'), + 239: int32('o'), + 240: int32('p'), + 241: int32('q'), + 242: int32('r'), + 243: int32('s'), + 244: int32('t'), + 245: int32('u'), + 246: int32('v'), + 247: int32('w'), + 248: int32('x'), + 249: int32('y'), + 250: int32('z'), + 251: int32(123), + 252: int32(124), + 253: int32(125), + 254: int32(126), + 255: int32(127), +} + +var _ptable1 = uintptr(unsafe.Pointer(&_table1)) + uintptr(128)*4 + +func X__ctype_tolower_loc(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(unsafe.Pointer(&_ptable1)) +} + +type Tin6_addr = struct { + F__in6_union struct { + F__s6_addr16 [0][8]uint16 + F__s6_addr32 [0][4]uint32 + F__s6_addr [16]uint8 + } +} + +var Xin6addr_any = Tin6_addr{} + +func Xrewinddir(tls *TLS, f uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } + Xfseek(tls, f, 0, stdio.SEEK_SET) +} + +// clock_t clock(void); +func Xclock(t *TLS) time.Clock_t { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } + return time.Clock_t(gotime.Since(startTime) * gotime.Duration(time.CLOCKS_PER_SEC) / gotime.Second) +} + +// setTmGmtoff stores off into tm.Ftm_gmtoff at the platform-native width. +func setTmGmtoff(tm *time.Tm, off int) { tm.Ftm_gmtoff = int64(off) } diff --git a/vendor/modernc.org/libc/libc_illumos.go b/vendor/modernc.org/libc/libc_illumos.go new file mode 100644 index 000000000..ac7f72f6f --- /dev/null +++ b/vendor/modernc.org/libc/libc_illumos.go @@ -0,0 +1,2119 @@ +// Copyright 2020 The Libc Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package libc // import "modernc.org/libc" + +import ( + // "encoding/hex" + "fmt" + "io" + "os" + "os/exec" + "path/filepath" + "runtime" + + // "runtime/debug" + "time" + "unsafe" + + guuid "github.com/google/uuid" + "golang.org/x/sys/unix" + "modernc.org/libc/errno" + "modernc.org/libc/fcntl" + "modernc.org/libc/fts" + gonetdb "modernc.org/libc/honnef.co/go/netdb" + "modernc.org/libc/langinfo" + "modernc.org/libc/limits" + "modernc.org/libc/netdb" + "modernc.org/libc/netinet/in" + + // "modernc.org/libc/signal" + "modernc.org/libc/stdio" + "modernc.org/libc/sys/socket" + "modernc.org/libc/sys/stat" + "modernc.org/libc/sys/types" + "modernc.org/libc/termios" + ctime "modernc.org/libc/time" + "modernc.org/libc/unistd" + "modernc.org/libc/uuid/uuid" +) + +const ( + // musl/src/internal/stdio_impl.h:16:#define F_EOF 16 + m_F_EOF = 16 +) + +var ( + in6_addr_any in.In6_addr + _ = X__ctype_b_loc +) + +type ( + syscallErrno = unix.Errno + long = int + ulong = uint +) + +type file uintptr + +type Tsize_t = types.Size_t + +func (f file) fd() int32 { + panic(todo("")) + // return (*stdio.FILE)(unsafe.Pointer(f)).F_fileno +} +func (f file) setFd(fd int32) { + panic(todo("")) + // (*stdio.FILE)(unsafe.Pointer(f)).F_fileno = fd +} +func (f file) err() bool { + panic(todo("")) + // return (*stdio.FILE)(unsafe.Pointer(f)).F_flags2&stdio.X_IO_ERR_SEEN != 0 +} +func (f file) setErr() { + panic(todo("")) + // (*stdio.FILE)(unsafe.Pointer(f)).F_flags2 |= stdio.X_IO_ERR_SEEN +} +func (f file) flags() int32 { + panic(todo("")) + // return (*stdio.FILE)(unsafe.Pointer(f)).F_flags +} +func (f file) orFlags(n int32) { + panic(todo("")) + // (*stdio.FILE)(unsafe.Pointer(f)).F_flags |= n +} +func (f file) xorFlags(n int32) { + panic(todo("")) + // (*stdio.FILE)(unsafe.Pointer(f)).F_flags ^= n +} + +func (f file) close(t *TLS) int32 { + r := Xclose(t, f.fd()) + Xfree(t, uintptr(f)) + if r < 0 { + return stdio.EOF + } + return 0 +} + +func newFile(t *TLS, fd int32) uintptr { + p := Xcalloc(t, 1, types.Size_t(unsafe.Sizeof(stdio.FILE{}))) + if p == 0 { + return 0 + } + + file(p).setFd(fd) + return p +} + +func fwrite(fd int32, b []byte) (int, error) { + if fd == unistd.STDOUT_FILENO { + return write(b) + } + + // if dmesgs { + // dmesg("%v: fd %v: %s", origin(1), fd, b) + // } + return unix.Write(int(fd), b) //TODO use Xwrite +} + +// int fprintf(FILE *stream, const char *format, ...); +func Xfprintf(t *TLS, stream, format, args uintptr) int32 { + if __ccgo_strace { + trc("t=%v args=%v, (%v:)", t, args, origin(2)) + } + panic(todo("")) + // n, _ := fwrite((*stdio.FILE)(unsafe.Pointer(stream)).F_fileno, printf(format, args)) + // return int32(n) +} + +// int usleep(useconds_t usec); +func Xusleep(t *TLS, usec uint) int32 { + if __ccgo_strace { + trc("t=%v usec=%v, (%v:)", t, usec, origin(2)) + } + panic(todo("")) + // time.Sleep(time.Microsecond * time.Duration(usec)) + // return 0 +} + +// int getrusage(int who, struct rusage *usage); +func Xgetrusage(t *TLS, who int32, usage uintptr) int32 { + if __ccgo_strace { + trc("t=%v who=%v usage=%v, (%v:)", t, who, usage, origin(2)) + } + panic(todo("")) + // if _, _, err := unix.Syscall(unix.SYS_GETRUSAGE, uintptr(who), usage, 0); err != 0 { + // t.setErrno(err) + // return -1 + // } + + // return 0 +} + +// int lstat(const char *pathname, struct stat *statbuf); +func Xlstat(t *TLS, pathname, statbuf uintptr) int32 { + if __ccgo_strace { + trc("t=%v statbuf=%v, (%v:)", t, statbuf, origin(2)) + } + return Xlstat64(t, pathname, statbuf) +} + +// int stat(const char *pathname, struct stat *statbuf); +func Xstat(t *TLS, pathname, statbuf uintptr) int32 { + if __ccgo_strace { + trc("t=%v statbuf=%v, (%v:)", t, statbuf, origin(2)) + } + return Xstat64(t, pathname, statbuf) +} + +// int chdir(const char *path); +func Xchdir(t *TLS, path uintptr) int32 { + if __ccgo_strace { + trc("t=%v path=%v, (%v:)", t, path, origin(2)) + } + panic(todo("")) + // if _, _, err := unix.Syscall(unix.SYS_CHDIR, path, 0, 0); err != 0 { + // t.setErrno(err) + // return -1 + // } + + // // if dmesgs { + // // dmesg("%v: %q: ok", origin(1), GoString(path)) + // // } + // return 0 +} + +var localtime ctime.Tm + +// struct tm *localtime(const time_t *timep); +func Xlocaltime(_ *TLS, timep uintptr) uintptr { + panic(todo("")) + // loc := getLocalLocation() + // ut := *(*unix.Time_t)(unsafe.Pointer(timep)) + // t := time.Unix(int64(ut), 0).In(loc) + // localtime.Ftm_sec = int32(t.Second()) + // localtime.Ftm_min = int32(t.Minute()) + // localtime.Ftm_hour = int32(t.Hour()) + // localtime.Ftm_mday = int32(t.Day()) + // localtime.Ftm_mon = int32(t.Month() - 1) + // localtime.Ftm_year = int32(t.Year() - 1900) + // localtime.Ftm_wday = int32(t.Weekday()) + // localtime.Ftm_yday = int32(t.YearDay()) + // localtime.Ftm_isdst = Bool32(isTimeDST(t)) + // return uintptr(unsafe.Pointer(&localtime)) +} + +// struct tm *localtime_r(const time_t *timep, struct tm *result); +func Xlocaltime_r(_ *TLS, timep, result uintptr) uintptr { + panic(todo("")) + // loc := getLocalLocation() + // ut := *(*unix.Time_t)(unsafe.Pointer(timep)) + // t := time.Unix(int64(ut), 0).In(loc) + // (*ctime.Tm)(unsafe.Pointer(result)).Ftm_sec = int32(t.Second()) + // (*ctime.Tm)(unsafe.Pointer(result)).Ftm_min = int32(t.Minute()) + // (*ctime.Tm)(unsafe.Pointer(result)).Ftm_hour = int32(t.Hour()) + // (*ctime.Tm)(unsafe.Pointer(result)).Ftm_mday = int32(t.Day()) + // (*ctime.Tm)(unsafe.Pointer(result)).Ftm_mon = int32(t.Month() - 1) + // (*ctime.Tm)(unsafe.Pointer(result)).Ftm_year = int32(t.Year() - 1900) + // (*ctime.Tm)(unsafe.Pointer(result)).Ftm_wday = int32(t.Weekday()) + // (*ctime.Tm)(unsafe.Pointer(result)).Ftm_yday = int32(t.YearDay()) + // (*ctime.Tm)(unsafe.Pointer(result)).Ftm_isdst = Bool32(isTimeDST(t)) + // return result +} + +// int open(const char *pathname, int flags, ...); +func Xopen(t *TLS, pathname uintptr, flags int32, args uintptr) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v flags=%v args=%v, (%v:)", t, pathname, flags, args, origin(2)) + } + return Xopen64(t, pathname, flags, args) +} + +// int open(const char *pathname, int flags, ...); +func Xopen64(t *TLS, pathname uintptr, flags int32, args uintptr) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v flags=%v args=%v, (%v:)", t, pathname, flags, args, origin(2)) + } + panic(todo("")) + // //TODO- flags |= fcntl.O_LARGEFILE + // var mode types.Mode_t + // if args != 0 { + // mode = (types.Mode_t)(VaUint32(&args)) + // } + // fdcwd := fcntl.AT_FDCWD + // n, _, err := unix.Syscall6(unix.SYS_OPENAT, uintptr(fdcwd), pathname, uintptr(flags|unix.O_LARGEFILE), uintptr(mode), 0, 0) + // if err != 0 { + // // if dmesgs { + // // dmesg("%v: %q %#x: %v", origin(1), GoString(pathname), flags, err) + // // } + // t.setErrno(err) + // return -1 + // } + + // // if dmesgs { + // // dmesg("%v: %q flags %#x mode %#o: fd %v", origin(1), GoString(pathname), flags, mode, n) + // // } + // return int32(n) +} + +// int openat(int dirfd, const char *pathname, int flags, mode_t mode); +func Xopenat(t *TLS, dirfd int32, pathname uintptr, flags int32, mode types.Mode_t) int32 { + if __ccgo_strace { + trc("t=%v dirfd=%v pathname=%v flags=%v mode=%v, (%v:)", t, dirfd, pathname, flags, mode, origin(2)) + } + panic(todo("")) + // // From golang.org/x/sys/unix/zsyscall_linux.go + // fd, _, err := unix.Syscall6(unix.SYS_OPENAT, uintptr(dirfd), pathname, uintptr(flags), uintptr(mode), 0, 0) + // if err != 0 { + // t.setErrno(err) + // return -1 + // } + + // return int32(fd) +} + +// off_t lseek(int fd, off_t offset, int whence); +func Xlseek(t *TLS, fd int32, offset types.Off_t, whence int32) types.Off_t { + if __ccgo_strace { + trc("t=%v fd=%v offset=%v whence=%v, (%v:)", t, fd, offset, whence, origin(2)) + } + return types.Off_t(Xlseek64(t, fd, offset, whence)) +} + +func whenceStr(whence int32) string { + panic(todo("")) + // switch whence { + // case fcntl.SEEK_CUR: + // + // return "SEEK_CUR" + // + // case fcntl.SEEK_END: + // + // return "SEEK_END" + // + // case fcntl.SEEK_SET: + // + // return "SEEK_SET" + // + // default: + // + // return fmt.Sprintf("whence(%d)", whence) + // } +} + +var fsyncStatbuf stat.Stat + +// int fsync(int fd); +func Xfsync(t *TLS, fd int32) int32 { + if __ccgo_strace { + trc("t=%v fd=%v, (%v:)", t, fd, origin(2)) + } + if noFsync { + // Simulate -DSQLITE_NO_SYNC for sqlite3 testfixture, see function full_sync in sqlite3.c + return Xfstat(t, fd, uintptr(unsafe.Pointer(&fsyncStatbuf))) + } + + panic(todo("")) + // if _, _, err := unix.Syscall(unix.SYS_FSYNC, uintptr(fd), 0, 0); err != 0 { + // t.setErrno(err) + // return -1 + // } + + // // if dmesgs { + // // dmesg("%v: %d: ok", origin(1), fd) + // // } + // return 0 +} + +// long sysconf(int name); +func Xsysconf(t *TLS, name int32) long { + if __ccgo_strace { + trc("t=%v name=%v, (%v:)", t, name, origin(2)) + } + switch name { + case unistd.X_SC_PAGESIZE: + return long(unix.Getpagesize()) + case unistd.X_SC_GETPW_R_SIZE_MAX: + return -1 + case unistd.X_SC_GETGR_R_SIZE_MAX: + return -1 + case unistd.X_SC_NPROCESSORS_ONLN: + return long(runtime.NumCPU()) + } + + panic(todo("", name)) +} + +// int close(int fd); +func Xclose(t *TLS, fd int32) int32 { + if __ccgo_strace { + trc("t=%v fd=%v, (%v:)", t, fd, origin(2)) + } + panic(todo("")) + // if _, _, err := unix.Syscall(unix.SYS_CLOSE, uintptr(fd), 0, 0); err != 0 { + // t.setErrno(err) + // return -1 + // } + + // // if dmesgs { + // // dmesg("%v: %d: ok", origin(1), fd) + // // } + // return 0 +} + +// char *getcwd(char *buf, size_t size); +func Xgetcwd(t *TLS, buf uintptr, size types.Size_t) uintptr { + if __ccgo_strace { + trc("t=%v buf=%v size=%v, (%v:)", t, buf, size, origin(2)) + } + panic(todo("")) + // n, _, err := unix.Syscall(unix.SYS_GETCWD, buf, uintptr(size), 0) + // if err != 0 { + // t.setErrno(err) + // return 0 + // } + + // // if dmesgs { + // // dmesg("%v: %q: ok", origin(1), GoString(buf)) + // // } + // return n +} + +// int fstat(int fd, struct stat *statbuf); +func Xfstat(t *TLS, fd int32, statbuf uintptr) int32 { + if __ccgo_strace { + trc("t=%v fd=%v statbuf=%v, (%v:)", t, fd, statbuf, origin(2)) + } + return Xfstat64(t, fd, statbuf) +} + +// int ftruncate(int fd, off_t length); +func Xftruncate(t *TLS, fd int32, length types.Off_t) int32 { + if __ccgo_strace { + trc("t=%v fd=%v length=%v, (%v:)", t, fd, length, origin(2)) + } + return Xftruncate64(t, fd, length) +} + +// int fcntl(int fd, int cmd, ... /* arg */ ); +func Xfcntl(t *TLS, fd, cmd int32, args uintptr) int32 { + if __ccgo_strace { + trc("t=%v cmd=%v args=%v, (%v:)", t, cmd, args, origin(2)) + } + return Xfcntl64(t, fd, cmd, args) +} + +// ssize_t read(int fd, void *buf, size_t count); +func Xread(t *TLS, fd int32, buf uintptr, count types.Size_t) types.Ssize_t { + if __ccgo_strace { + trc("t=%v fd=%v buf=%v count=%v, (%v:)", t, fd, buf, count, origin(2)) + } + panic(todo("")) + // n, _, err := unix.Syscall(unix.SYS_READ, uintptr(fd), buf, uintptr(count)) + // if err != 0 { + // t.setErrno(err) + // return -1 + // } + + // // if dmesgs { + // // // dmesg("%v: %d %#x: %#x\n%s", origin(1), fd, count, n, hex.Dump(GoBytes(buf, int(n)))) + // // dmesg("%v: %d %#x: %#x", origin(1), fd, count, n) + // // } + // return types.Ssize_t(n) +} + +// ssize_t write(int fd, const void *buf, size_t count); +func Xwrite(t *TLS, fd int32, buf uintptr, count types.Size_t) types.Ssize_t { + if __ccgo_strace { + trc("t=%v fd=%v buf=%v count=%v, (%v:)", t, fd, buf, count, origin(2)) + } + panic(todo("")) + // const retry = 5 + // var err syscallErrno + // for i := 0; i < retry; i++ { + // var n uintptr + // switch n, _, err = unix.Syscall(unix.SYS_WRITE, uintptr(fd), buf, uintptr(count)); err { + // case 0: + // // if dmesgs { + // // // dmesg("%v: %d %#x: %#x\n%s", origin(1), fd, count, n, hex.Dump(GoBytes(buf, int(n)))) + // // dmesg("%v: %d %#x: %#x", origin(1), fd, count, n) + // // } + // return types.Ssize_t(n) + // case errno.EAGAIN: + // // nop + // } + // } + + // // if dmesgs { + // // dmesg("%v: fd %v, count %#x: %v", origin(1), fd, count, err) + // // } + // t.setErrno(err) + // return -1 +} + +// int fchmod(int fd, mode_t mode); +func Xfchmod(t *TLS, fd int32, mode types.Mode_t) int32 { + if __ccgo_strace { + trc("t=%v fd=%v mode=%v, (%v:)", t, fd, mode, origin(2)) + } + panic(todo("")) + // if _, _, err := unix.Syscall(unix.SYS_FCHMOD, uintptr(fd), uintptr(mode), 0); err != 0 { + // t.setErrno(err) + // return -1 + // } + + // // if dmesgs { + // // dmesg("%v: %d %#o: ok", origin(1), fd, mode) + // // } + // return 0 +} + +// int fchmodat(int dirfd, const char *pathname, mode_t mode, int flags); +func Xfchmodat(t *TLS, dirfd int32, pathname uintptr, mode types.Mode_t, flags int32) int32 { + if __ccgo_strace { + trc("t=%v dirfd=%v pathname=%v mode=%v flags=%v, (%v:)", t, dirfd, pathname, mode, flags, origin(2)) + } + panic(todo("")) + // // From golang.org/x/sys/unix/syscall_linux.go + // // Linux fchmodat doesn't support the flags parameter. Mimick glibc's behavior + // // and check the flags. Otherwise the mode would be applied to the symlink + // // destination which is not what the user expects. + // if flags&^unix.AT_SYMLINK_NOFOLLOW != 0 { + // t.setErrno(unix.EINVAL) + // return -1 + // } else if flags&unix.AT_SYMLINK_NOFOLLOW != 0 { + // t.setErrno(unix.EOPNOTSUPP) + // return -1 + // } + + // // From golang.org/x/sys/unix/zsyscall_linux.go + // if _, _, err := unix.Syscall(unix.SYS_FCHMODAT, uintptr(dirfd), pathname, uintptr(mode)); err != 0 { + // t.setErrno(err) + // return -1 + // } + + // return 0 +} + +// int fchown(int fd, uid_t owner, gid_t group); +func Xfchown(t *TLS, fd int32, owner types.Uid_t, group types.Gid_t) int32 { + if __ccgo_strace { + trc("t=%v fd=%v owner=%v group=%v, (%v:)", t, fd, owner, group, origin(2)) + } + panic(todo("")) + // if _, _, err := unix.Syscall(unix.SYS_FCHOWN, uintptr(fd), uintptr(owner), uintptr(group)); err != 0 { + // t.setErrno(err) + // return -1 + // } + + // return 0 +} + +// uid_t geteuid(void); +func Xgeteuid(t *TLS) types.Uid_t { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } + panic(todo("")) + // n, _, _ := unix.Syscall(unix.SYS_GETEUID, 0, 0, 0) + // return types.Uid_t(n) +} + +// int munmap(void *addr, size_t length); +func Xmunmap(t *TLS, addr uintptr, length types.Size_t) int32 { + if __ccgo_strace { + trc("t=%v addr=%v length=%v, (%v:)", t, addr, length, origin(2)) + } + panic(todo("")) + // if _, _, err := unix.Syscall(unix.SYS_MUNMAP, addr, uintptr(length), 0); err != 0 { + // t.setErrno(err) + // return -1 + // } + + // return 0 +} + +// int gettimeofday(struct timeval *tv, struct timezone *tz); +func Xgettimeofday(t *TLS, tv, tz uintptr) int32 { + if __ccgo_strace { + trc("t=%v tz=%v, (%v:)", t, tz, origin(2)) + } + if tz != 0 { + panic(todo("")) + } + + var tvs unix.Timeval + err := unix.Gettimeofday(&tvs) + if err != nil { + t.setErrno(err) + return -1 + } + + *(*unix.Timeval)(unsafe.Pointer(tv)) = tvs + return 0 +} + +// int getsockopt(int sockfd, int level, int optname, void *optval, socklen_t *optlen); +func Xgetsockopt(t *TLS, sockfd, level, optname int32, optval, optlen uintptr) int32 { + if __ccgo_strace { + trc("t=%v optname=%v optlen=%v, (%v:)", t, optname, optlen, origin(2)) + } + panic(todo("")) + // if _, _, err := unix.Syscall6(unix.SYS_GETSOCKOPT, uintptr(sockfd), uintptr(level), uintptr(optname), optval, optlen, 0); err != 0 { + // t.setErrno(err) + // return -1 + // } + + // return 0 +} + +// int setsockopt(int sockfd, int level, int optname, const void *optval, socklen_t optlen); +func Xsetsockopt(t *TLS, sockfd, level, optname int32, optval uintptr, optlen socket.Socklen_t) int32 { + if __ccgo_strace { + trc("t=%v optname=%v optval=%v optlen=%v, (%v:)", t, optname, optval, optlen, origin(2)) + } + panic(todo("")) + // if _, _, err := unix.Syscall6(unix.SYS_SETSOCKOPT, uintptr(sockfd), uintptr(level), uintptr(optname), optval, uintptr(optlen), 0); err != 0 { + // t.setErrno(err) + // return -1 + // } + + // return 0 +} + +// int ioctl(int fd, unsigned long request, ...); +func Xioctl(t *TLS, fd int32, request ulong, va uintptr) int32 { + if __ccgo_strace { + trc("t=%v fd=%v request=%v va=%v, (%v:)", t, fd, request, va, origin(2)) + } + panic(todo("")) + // var argp uintptr + // if va != 0 { + // argp = VaUintptr(&va) + // } + // n, _, err := unix.Syscall(unix.SYS_IOCTL, uintptr(fd), uintptr(request), argp) + // if err != 0 { + // t.setErrno(err) + // return -1 + // } + + // return int32(n) +} + +// int getsockname(int sockfd, struct sockaddr *addr, socklen_t *addrlen); +func Xgetsockname(t *TLS, sockfd int32, addr, addrlen uintptr) int32 { + if __ccgo_strace { + trc("t=%v sockfd=%v addrlen=%v, (%v:)", t, sockfd, addrlen, origin(2)) + } + panic(todo("")) + // if _, _, err := unix.Syscall(unix.SYS_GETSOCKNAME, uintptr(sockfd), addr, addrlen); err != 0 { + // // if dmesgs { + // // dmesg("%v: fd %v: %v", origin(1), sockfd, err) + // // } + // t.setErrno(err) + // return -1 + // } + + // return 0 +} + +// int select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout); +func Xselect(t *TLS, nfds int32, readfds, writefds, exceptfds, timeout uintptr) int32 { + if __ccgo_strace { + trc("t=%v nfds=%v timeout=%v, (%v:)", t, nfds, timeout, origin(2)) + } + n, err := unix.Select( + int(nfds), + (*unix.FdSet)(unsafe.Pointer(readfds)), + (*unix.FdSet)(unsafe.Pointer(writefds)), + (*unix.FdSet)(unsafe.Pointer(exceptfds)), + (*unix.Timeval)(unsafe.Pointer(timeout)), + ) + if err != nil { + t.setErrno(err) + return -1 + } + + return int32(n) +} + +// int mkfifo(const char *pathname, mode_t mode); +func Xmkfifo(t *TLS, pathname uintptr, mode types.Mode_t) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v mode=%v, (%v:)", t, pathname, mode, origin(2)) + } + if err := unix.Mkfifo(GoString(pathname), mode); err != nil { + t.setErrno(err) + return -1 + } + + return 0 +} + +// mode_t umask(mode_t mask); +func Xumask(t *TLS, mask types.Mode_t) types.Mode_t { + if __ccgo_strace { + trc("t=%v mask=%v, (%v:)", t, mask, origin(2)) + } + panic(todo("")) + // n, _, _ := unix.Syscall(unix.SYS_UMASK, uintptr(mask), 0, 0) + // return types.Mode_t(n) +} + +// int execvp(const char *file, char *const argv[]); +func Xexecvp(t *TLS, file, argv uintptr) int32 { + if __ccgo_strace { + trc("t=%v argv=%v, (%v:)", t, argv, origin(2)) + } + panic(todo("")) + // if _, _, err := unix.Syscall(unix.SYS_EXECVE, file, argv, Environ()); err != 0 { + // t.setErrno(err) + // return -1 + // } + + // return 0 +} + +// pid_t waitpid(pid_t pid, int *wstatus, int options); +func Xwaitpid(t *TLS, pid types.Pid_t, wstatus uintptr, optname int32) types.Pid_t { + if __ccgo_strace { + trc("t=%v pid=%v wstatus=%v optname=%v, (%v:)", t, pid, wstatus, optname, origin(2)) + } + panic(todo("")) + // n, _, err := unix.Syscall6(unix.SYS_WAIT4, uintptr(pid), wstatus, uintptr(optname), 0, 0, 0) + // if err != 0 { + // t.setErrno(err) + // return -1 + // } + + // return types.Pid_t(n) +} + +// int uname(struct utsname *buf); +func Xuname(t *TLS, buf uintptr) int32 { + if __ccgo_strace { + trc("t=%v buf=%v, (%v:)", t, buf, origin(2)) + } + panic(todo("")) + // if _, _, err := unix.Syscall(unix.SYS_UNAME, buf, 0, 0); err != 0 { + // t.setErrno(err) + // return -1 + // } + + // return 0 +} + +// ssize_t recv(int sockfd, void *buf, size_t len, int flags); +func Xrecv(t *TLS, sockfd int32, buf uintptr, len types.Size_t, flags int32) types.Ssize_t { + if __ccgo_strace { + trc("t=%v sockfd=%v buf=%v len=%v flags=%v, (%v:)", t, sockfd, buf, len, flags, origin(2)) + } + panic(todo("")) + // n, _, err := unix.Syscall6(unix.SYS_RECVFROM, uintptr(sockfd), buf, uintptr(len), uintptr(flags), 0, 0) + // if err != 0 { + // t.setErrno(err) + // return -1 + // } + + // return types.Ssize_t(n) +} + +// ssize_t send(int sockfd, const void *buf, size_t len, int flags); +func Xsend(t *TLS, sockfd int32, buf uintptr, len types.Size_t, flags int32) types.Ssize_t { + if __ccgo_strace { + trc("t=%v sockfd=%v buf=%v len=%v flags=%v, (%v:)", t, sockfd, buf, len, flags, origin(2)) + } + panic(todo("")) + // n, _, err := unix.Syscall6(unix.SYS_SENDTO, uintptr(sockfd), buf, uintptr(len), uintptr(flags), 0, 0) + // if err != 0 { + // t.setErrno(err) + // return -1 + // } + + // return types.Ssize_t(n) +} + +// int shutdown(int sockfd, int how); +func Xshutdown(t *TLS, sockfd, how int32) int32 { + if __ccgo_strace { + trc("t=%v how=%v, (%v:)", t, how, origin(2)) + } + panic(todo("")) + // if _, _, err := unix.Syscall(unix.SYS_SHUTDOWN, uintptr(sockfd), uintptr(how), 0); err != 0 { + // t.setErrno(err) + // return -1 + // } + + // return 0 +} + +// int getpeername(int sockfd, struct sockaddr *addr, socklen_t *addrlen); +func Xgetpeername(t *TLS, sockfd int32, addr uintptr, addrlen uintptr) int32 { + if __ccgo_strace { + trc("t=%v sockfd=%v addr=%v addrlen=%v, (%v:)", t, sockfd, addr, addrlen, origin(2)) + } + panic(todo("")) + // if _, _, err := unix.Syscall(unix.SYS_GETPEERNAME, uintptr(sockfd), addr, uintptr(addrlen)); err != 0 { + // t.setErrno(err) + // return -1 + // } + + // return 0 +} + +// int socket(int domain, int type, int protocol); +func Xsocket(t *TLS, domain, type1, protocol int32) int32 { + if __ccgo_strace { + trc("t=%v protocol=%v, (%v:)", t, protocol, origin(2)) + } + panic(todo("")) + // n, _, err := unix.Syscall(unix.SYS_SOCKET, uintptr(domain), uintptr(type1), uintptr(protocol)) + // if err != 0 { + // t.setErrno(err) + // return -1 + // } + + // return int32(n) +} + +// int bind(int sockfd, const struct sockaddr *addr, socklen_t addrlen); +func Xbind(t *TLS, sockfd int32, addr uintptr, addrlen uint32) int32 { + if __ccgo_strace { + trc("t=%v sockfd=%v addr=%v addrlen=%v, (%v:)", t, sockfd, addr, addrlen, origin(2)) + } + panic(todo("")) + // n, _, err := unix.Syscall(unix.SYS_BIND, uintptr(sockfd), addr, uintptr(addrlen)) + // if err != 0 { + // t.setErrno(err) + // return -1 + // } + + // return int32(n) +} + +// int connect(int sockfd, const struct sockaddr *addr, socklen_t addrlen); +func Xconnect(t *TLS, sockfd int32, addr uintptr, addrlen uint32) int32 { + if __ccgo_strace { + trc("t=%v sockfd=%v addr=%v addrlen=%v, (%v:)", t, sockfd, addr, addrlen, origin(2)) + } + panic(todo("")) + // if _, _, err := unix.Syscall(unix.SYS_CONNECT, uintptr(sockfd), addr, uintptr(addrlen)); err != 0 { + // t.setErrno(err) + // return -1 + // } + + // return 0 +} + +// int listen(int sockfd, int backlog); +func Xlisten(t *TLS, sockfd, backlog int32) int32 { + if __ccgo_strace { + trc("t=%v backlog=%v, (%v:)", t, backlog, origin(2)) + } + panic(todo("")) + // if _, _, err := unix.Syscall(unix.SYS_LISTEN, uintptr(sockfd), uintptr(backlog), 0); err != 0 { + // t.setErrno(err) + // return -1 + // } + + // return 0 +} + +// int accept(int sockfd, struct sockaddr *addr, socklen_t *addrlen); +func Xaccept(t *TLS, sockfd int32, addr uintptr, addrlen uintptr) int32 { + if __ccgo_strace { + trc("t=%v sockfd=%v addr=%v addrlen=%v, (%v:)", t, sockfd, addr, addrlen, origin(2)) + } + panic(todo("")) + // n, _, err := unix.Syscall6(unix.SYS_ACCEPT4, uintptr(sockfd), addr, uintptr(addrlen), 0, 0, 0) + // if err != 0 { + // t.setErrno(err) + // return -1 + // } + + // return int32(n) +} + +// int getrlimit(int resource, struct rlimit *rlim); +func Xgetrlimit(t *TLS, resource int32, rlim uintptr) int32 { + if __ccgo_strace { + trc("t=%v resource=%v rlim=%v, (%v:)", t, resource, rlim, origin(2)) + } + return Xgetrlimit64(t, resource, rlim) +} + +// int setrlimit(int resource, const struct rlimit *rlim); +func Xsetrlimit(t *TLS, resource int32, rlim uintptr) int32 { + if __ccgo_strace { + trc("t=%v resource=%v rlim=%v, (%v:)", t, resource, rlim, origin(2)) + } + return Xsetrlimit64(t, resource, rlim) +} + +// uid_t getuid(void); +func Xgetuid(t *TLS) types.Uid_t { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } + return types.Uid_t(os.Getuid()) +} + +// pid_t getpid(void); +func Xgetpid(t *TLS) int32 { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } + return int32(os.Getpid()) +} + +// int system(const char *command); +func Xsystem(t *TLS, command uintptr) int32 { + if __ccgo_strace { + trc("t=%v command=%v, (%v:)", t, command, origin(2)) + } + s := GoString(command) + if command == 0 { + panic(todo("")) + } + + cmd := exec.Command("sh", "-c", s) + cmd.Stdout = os.Stdout + cmd.Stderr = os.Stderr + err := cmd.Run() + if err != nil { + ps := err.(*exec.ExitError) + return int32(ps.ExitCode()) + } + + return 0 +} + +// int setvbuf(FILE *stream, char *buf, int mode, size_t size); +func Xsetvbuf(t *TLS, stream, buf uintptr, mode int32, size types.Size_t) int32 { + if __ccgo_strace { + trc("t=%v buf=%v mode=%v size=%v, (%v:)", t, buf, mode, size, origin(2)) + } + return 0 //TODO +} + +// int raise(int sig); +func Xraise(t *TLS, sig int32) int32 { + if __ccgo_strace { + trc("t=%v sig=%v, (%v:)", t, sig, origin(2)) + } + panic(todo("")) +} + +// int backtrace(void **buffer, int size); +func Xbacktrace(t *TLS, buf uintptr, size int32) int32 { + if __ccgo_strace { + trc("t=%v buf=%v size=%v, (%v:)", t, buf, size, origin(2)) + } + panic(todo("")) +} + +// void backtrace_symbols_fd(void *const *buffer, int size, int fd); +func Xbacktrace_symbols_fd(t *TLS, buffer uintptr, size, fd int32) { + if __ccgo_strace { + trc("t=%v buffer=%v fd=%v, (%v:)", t, buffer, fd, origin(2)) + } + panic(todo("")) +} + +// int fileno(FILE *stream); +func Xfileno(t *TLS, stream uintptr) int32 { + if __ccgo_strace { + trc("t=%v stream=%v, (%v:)", t, stream, origin(2)) + } + panic(todo("")) + // if stream == 0 { + // t.setErrno(errno.EBADF) + // return -1 + // } + // + // if fd := (*stdio.FILE)(unsafe.Pointer(stream)).F_fileno; fd >= 0 { + // return fd + // } + // + // t.setErrno(errno.EBADF) + // return -1 +} + +func newFtsent(t *TLS, info int, path string, stat *unix.Stat_t, err syscallErrno) (r *fts.FTSENT) { + panic(todo("")) + // var statp uintptr + // if stat != nil { + // statp = Xmalloc(t, types.Size_t(unsafe.Sizeof(unix.Stat_t{}))) + // if statp == 0 { + // panic("OOM") + // } + // + // *(*unix.Stat_t)(unsafe.Pointer(statp)) = *stat + // } + // csp, errx := CString(path) + // if errx != nil { + // panic("OOM") + // } + // + // return &fts.FTSENT{ + // Ffts_info: uint16(info), + // Ffts_path: csp, + // Ffts_pathlen: uint16(len(path)), + // Ffts_statp: statp, + // Ffts_errno: int32(err), + // } +} + +func newCFtsent(t *TLS, info int, path string, stat *unix.Stat_t, err syscallErrno) uintptr { + p := Xcalloc(t, 1, types.Size_t(unsafe.Sizeof(fts.FTSENT{}))) + if p == 0 { + panic("OOM") + } + + *(*fts.FTSENT)(unsafe.Pointer(p)) = *newFtsent(t, info, path, stat, err) + return p +} + +func ftsentClose(t *TLS, p uintptr) { + Xfree(t, (*fts.FTSENT)(unsafe.Pointer(p)).Ffts_path) + Xfree(t, (*fts.FTSENT)(unsafe.Pointer(p)).Ffts_statp) +} + +type ftstream struct { + s []uintptr + x int +} + +func (f *ftstream) close(t *TLS) { + for _, p := range f.s { + ftsentClose(t, p) + Xfree(t, p) + } + *f = ftstream{} +} + +// FTS *fts_open(char * const *path_argv, int options, int (*compar)(const FTSENT **, const FTSENT **)); +func Xfts_open(t *TLS, path_argv uintptr, options int32, compar uintptr) uintptr { + if __ccgo_strace { + trc("t=%v path_argv=%v options=%v compar=%v, (%v:)", t, path_argv, options, compar, origin(2)) + } + return Xfts64_open(t, path_argv, options, compar) +} + +// FTS *fts_open(char * const *path_argv, int options, int (*compar)(const FTSENT **, const FTSENT **)); +func Xfts64_open(t *TLS, path_argv uintptr, options int32, compar uintptr) uintptr { + if __ccgo_strace { + trc("t=%v path_argv=%v options=%v compar=%v, (%v:)", t, path_argv, options, compar, origin(2)) + } + f := &ftstream{} + + var walk func(string) + walk = func(path string) { + var fi os.FileInfo + var err error + switch { + case options&fts.FTS_LOGICAL != 0: + fi, err = os.Stat(path) + case options&fts.FTS_PHYSICAL != 0: + fi, err = os.Lstat(path) + default: + panic(todo("")) + } + + if err != nil { + return + } + + var statp *unix.Stat_t + if options&fts.FTS_NOSTAT == 0 { + var stat unix.Stat_t + switch { + case options&fts.FTS_LOGICAL != 0: + if err := unix.Stat(path, &stat); err != nil { + panic(todo("")) + } + case options&fts.FTS_PHYSICAL != 0: + if err := unix.Lstat(path, &stat); err != nil { + panic(todo("")) + } + default: + panic(todo("")) + } + + statp = &stat + } + + out: + switch { + case fi.IsDir(): + f.s = append(f.s, newCFtsent(t, fts.FTS_D, path, statp, 0)) + g, err := os.Open(path) + switch x := err.(type) { + case nil: + // ok + case *os.PathError: + f.s = append(f.s, newCFtsent(t, fts.FTS_DNR, path, statp, errno.EACCES)) + break out + default: + panic(todo("%q: %v %T", path, x, x)) + } + + names, err := g.Readdirnames(-1) + g.Close() + if err != nil { + panic(todo("")) + } + + for _, name := range names { + walk(path + "/" + name) + if f == nil { + break out + } + } + + f.s = append(f.s, newCFtsent(t, fts.FTS_DP, path, statp, 0)) + default: + info := fts.FTS_F + if fi.Mode()&os.ModeSymlink != 0 { + info = fts.FTS_SL + } + switch { + case statp != nil: + f.s = append(f.s, newCFtsent(t, info, path, statp, 0)) + case options&fts.FTS_NOSTAT != 0: + f.s = append(f.s, newCFtsent(t, fts.FTS_NSOK, path, nil, 0)) + default: + panic(todo("")) + } + } + } + + for { + p := *(*uintptr)(unsafe.Pointer(path_argv)) + if p == 0 { + if f == nil { + return 0 + } + + if compar != 0 { + panic(todo("")) + } + + return addObject(f) + } + + walk(GoString(p)) + path_argv += unsafe.Sizeof(uintptr(0)) + } +} + +// FTSENT *fts_read(FTS *ftsp); +func Xfts_read(t *TLS, ftsp uintptr) uintptr { + if __ccgo_strace { + trc("t=%v ftsp=%v, (%v:)", t, ftsp, origin(2)) + } + return Xfts64_read(t, ftsp) +} + +// FTSENT *fts_read(FTS *ftsp); +func Xfts64_read(t *TLS, ftsp uintptr) uintptr { + if __ccgo_strace { + trc("t=%v ftsp=%v, (%v:)", t, ftsp, origin(2)) + } + f := getObject(ftsp).(*ftstream) + if f.x == len(f.s) { + t.setErrno(0) + return 0 + } + + r := f.s[f.x] + if e := (*fts.FTSENT)(unsafe.Pointer(r)).Ffts_errno; e != 0 { + t.setErrno(e) + } + f.x++ + return r +} + +// int fts_close(FTS *ftsp); +func Xfts_close(t *TLS, ftsp uintptr) int32 { + if __ccgo_strace { + trc("t=%v ftsp=%v, (%v:)", t, ftsp, origin(2)) + } + return Xfts64_close(t, ftsp) +} + +// int fts_close(FTS *ftsp); +func Xfts64_close(t *TLS, ftsp uintptr) int32 { + if __ccgo_strace { + trc("t=%v ftsp=%v, (%v:)", t, ftsp, origin(2)) + } + getObject(ftsp).(*ftstream).close(t) + removeObject(ftsp) + return 0 +} + +// void tzset (void); +func Xtzset(t *TLS) { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } + //TODO +} + +var strerrorBuf [100]byte + +// char *strerror(int errnum); +func Xstrerror(t *TLS, errnum int32) uintptr { + if __ccgo_strace { + trc("t=%v errnum=%v, (%v:)", t, errnum, origin(2)) + } + // if dmesgs { + // dmesg("%v: %v\n%s", origin(1), errnum, debug.Stack()) + // } + copy(strerrorBuf[:], fmt.Sprintf("strerror(%d)\x00", errnum)) + return uintptr(unsafe.Pointer(&strerrorBuf[0])) +} + +// void *dlopen(const char *filename, int flags); +func Xdlopen(t *TLS, filename uintptr, flags int32) uintptr { + if __ccgo_strace { + trc("t=%v filename=%v flags=%v, (%v:)", t, filename, flags, origin(2)) + } + panic(todo("%q", GoString(filename))) +} + +// char *dlerror(void); +func Xdlerror(t *TLS) uintptr { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } + panic(todo("")) +} + +// int dlclose(void *handle); +func Xdlclose(t *TLS, handle uintptr) int32 { + if __ccgo_strace { + trc("t=%v handle=%v, (%v:)", t, handle, origin(2)) + } + panic(todo("")) +} + +// void *dlsym(void *handle, const char *symbol); +func Xdlsym(t *TLS, handle, symbol uintptr) uintptr { + if __ccgo_strace { + trc("t=%v symbol=%v, (%v:)", t, symbol, origin(2)) + } + panic(todo("")) +} + +// void perror(const char *s); +func Xperror(tls *TLS, msg uintptr) { + if __ccgo_strace { + trc("tls=%v msg=%v, (%v:)", tls, msg, origin(2)) + } + if msg != 0 && *(*int8)(unsafe.Pointer(msg)) != 0 { + fmt.Fprintf(os.Stderr, "%s: ", GoString(msg)) + } + errstr := Xstrerror(tls, *(*int32)(unsafe.Pointer(X__errno_location(tls)))) + fmt.Fprintf(os.Stderr, "%s\n", GoString(errstr)) +} + +// int pclose(FILE *stream); +func Xpclose(t *TLS, stream uintptr) int32 { + if __ccgo_strace { + trc("t=%v stream=%v, (%v:)", t, stream, origin(2)) + } + panic(todo("")) +} + +var gai_strerrorBuf [100]byte + +// const char *gai_strerror(int errcode); +func Xgai_strerror(t *TLS, errcode int32) uintptr { + if __ccgo_strace { + trc("t=%v errcode=%v, (%v:)", t, errcode, origin(2)) + } + copy(gai_strerrorBuf[:], fmt.Sprintf("gai error %d\x00", errcode)) + return uintptr(unsafe.Pointer(&gai_strerrorBuf)) +} + +// int tcgetattr(int fd, struct termios *termios_p); +func Xtcgetattr(t *TLS, fd int32, termios_p uintptr) int32 { + if __ccgo_strace { + trc("t=%v fd=%v termios_p=%v, (%v:)", t, fd, termios_p, origin(2)) + } + panic(todo("")) +} + +// int tcsetattr(int fd, int optional_actions, const struct termios *termios_p); +func Xtcsetattr(t *TLS, fd, optional_actions int32, termios_p uintptr) int32 { + if __ccgo_strace { + trc("t=%v optional_actions=%v termios_p=%v, (%v:)", t, optional_actions, termios_p, origin(2)) + } + panic(todo("")) +} + +// speed_t cfgetospeed(const struct termios *termios_p); +func Xcfgetospeed(t *TLS, termios_p uintptr) termios.Speed_t { + if __ccgo_strace { + trc("t=%v termios_p=%v, (%v:)", t, termios_p, origin(2)) + } + panic(todo("")) +} + +// int cfsetospeed(struct termios *termios_p, speed_t speed); +func Xcfsetospeed(t *TLS, termios_p uintptr, speed uint32) int32 { + if __ccgo_strace { + trc("t=%v termios_p=%v speed=%v, (%v:)", t, termios_p, speed, origin(2)) + } + panic(todo("")) +} + +// int cfsetispeed(struct termios *termios_p, speed_t speed); +func Xcfsetispeed(t *TLS, termios_p uintptr, speed uint32) int32 { + if __ccgo_strace { + trc("t=%v termios_p=%v speed=%v, (%v:)", t, termios_p, speed, origin(2)) + } + panic(todo("")) +} + +// pid_t fork(void); +func Xfork(t *TLS) int32 { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } + t.setErrno(errno.ENOSYS) + return -1 +} + +var emptyStr = [1]byte{} + +// char *setlocale(int category, const char *locale); +func Xsetlocale(t *TLS, category int32, locale uintptr) uintptr { + if __ccgo_strace { + trc("t=%v category=%v locale=%v, (%v:)", t, category, locale, origin(2)) + } + return uintptr(unsafe.Pointer(&emptyStr)) //TODO +} + +// char *nl_langinfo(nl_item item); +func Xnl_langinfo(t *TLS, item langinfo.Nl_item) uintptr { + if __ccgo_strace { + trc("t=%v item=%v, (%v:)", t, item, origin(2)) + } + return uintptr(unsafe.Pointer(&emptyStr)) //TODO +} + +// FILE *popen(const char *command, const char *type); +func Xpopen(t *TLS, command, type1 uintptr) uintptr { + if __ccgo_strace { + trc("t=%v type1=%v, (%v:)", t, type1, origin(2)) + } + panic(todo("")) +} + +// char *realpath(const char *path, char *resolved_path); +func Xrealpath(t *TLS, path, resolved_path uintptr) uintptr { + if __ccgo_strace { + trc("t=%v resolved_path=%v, (%v:)", t, resolved_path, origin(2)) + } + s, err := filepath.EvalSymlinks(GoString(path)) + if err != nil { + if os.IsNotExist(err) { + // if dmesgs { + // dmesg("%v: %q: %v", origin(1), GoString(path), err) + // } + t.setErrno(errno.ENOENT) + return 0 + } + + panic(todo("", err)) + } + + if resolved_path == 0 { + panic(todo("")) + } + + if len(s) >= limits.PATH_MAX { + s = s[:limits.PATH_MAX-1] + } + + copy((*RawMem)(unsafe.Pointer(resolved_path))[:len(s):len(s)], s) + (*RawMem)(unsafe.Pointer(resolved_path))[len(s)] = 0 + return resolved_path +} + +// char *inet_ntoa(struct in_addr in); +func Xinet_ntoa(t *TLS, in1 in.In_addr) uintptr { + if __ccgo_strace { + trc("t=%v in1=%v, (%v:)", t, in1, origin(2)) + } + panic(todo("")) +} + +func X__ccgo_in6addr_anyp(t *TLS) uintptr { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } + return uintptr(unsafe.Pointer(&in6_addr_any)) +} + +func Xabort(t *TLS) { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } + panic(todo("")) + // // if dmesgs { + // // dmesg("%v:\n%s", origin(1), debug.Stack()) + // // } + // p := Xmalloc(t, types.Size_t(unsafe.Sizeof(signal.Sigaction{}))) + // if p == 0 { + // panic("OOM") + // } + // + // *(*signal.Sigaction)(unsafe.Pointer(p)) = signal.Sigaction{ + // F__sigaction_handler: struct{ Fsa_handler signal.X__sighandler_t }{Fsa_handler: signal.SIG_DFL}, + // } + // Xsigaction(t, signal.SIGABRT, p, 0) + // Xfree(t, p) + // unix.Kill(unix.Getpid(), unix.Signal(signal.SIGABRT)) + // panic(todo("unrechable")) +} + +// int fflush(FILE *stream); +func Xfflush(t *TLS, stream uintptr) int32 { + if __ccgo_strace { + trc("t=%v stream=%v, (%v:)", t, stream, origin(2)) + } + return 0 //TODO +} + +// size_t fread(void *ptr, size_t size, size_t nmemb, FILE *stream); +func Xfread(t *TLS, ptr uintptr, size, nmemb types.Size_t, stream uintptr) types.Size_t { + if __ccgo_strace { + trc("t=%v ptr=%v nmemb=%v stream=%v, (%v:)", t, ptr, nmemb, stream, origin(2)) + } + panic(todo("")) + // m, _, err := unix.Syscall(unix.SYS_READ, uintptr(file(stream).fd()), ptr, uintptr(size*nmemb)) + // if m == 0 { + // file(stream).orFlags(m_F_EOF) + // } + // if err != 0 { + // file(stream).setErr() + // return 0 + // } + + // // if dmesgs { + // // // dmesg("%v: %d %#x x %#x: %#x\n%s", origin(1), file(stream).fd(), size, nmemb, types.Size_t(m)/size, hex.Dump(GoBytes(ptr, int(m)))) + // // dmesg("%v: %d %#x x %#x: %#x", origin(1), file(stream).fd(), size, nmemb, types.Size_t(m)/size) + // // } + // return types.Size_t(m) / size +} + +// size_t fwrite(const void *ptr, size_t size, size_t nmemb, FILE *stream); +func Xfwrite(t *TLS, ptr uintptr, size, nmemb types.Size_t, stream uintptr) types.Size_t { + if __ccgo_strace { + trc("t=%v ptr=%v nmemb=%v stream=%v, (%v:)", t, ptr, nmemb, stream, origin(2)) + } + panic(todo("")) + // m, _, err := unix.Syscall(unix.SYS_WRITE, uintptr(file(stream).fd()), ptr, uintptr(size*nmemb)) + // if err != 0 { + // file(stream).setErr() + // return 0 + // } + + // // if dmesgs { + // // // dmesg("%v: %d %#x x %#x: %#x\n%s", origin(1), file(stream).fd(), size, nmemb, types.Size_t(m)/size, hex.Dump(GoBytes(ptr, int(m)))) + // // dmesg("%v: %d %#x x %#x: %#x", origin(1), file(stream).fd(), size, nmemb, types.Size_t(m)/size) + // // } + // return types.Size_t(m) / size +} + +// int fclose(FILE *stream); +func Xfclose(t *TLS, stream uintptr) int32 { + if __ccgo_strace { + trc("t=%v stream=%v, (%v:)", t, stream, origin(2)) + } + return file(stream).close(t) +} + +// int fputc(int c, FILE *stream); +func Xfputc(t *TLS, c int32, stream uintptr) int32 { + if __ccgo_strace { + trc("t=%v c=%v stream=%v, (%v:)", t, c, stream, origin(2)) + } + if _, err := fwrite(file(stream).fd(), []byte{byte(c)}); err != nil { + return stdio.EOF + } + + return int32(byte(c)) +} + +// int fseek(FILE *stream, long offset, int whence); +func Xfseek(t *TLS, stream uintptr, offset long, whence int32) int32 { + if __ccgo_strace { + trc("t=%v stream=%v offset=%v whence=%v, (%v:)", t, stream, offset, whence, origin(2)) + } + if n := Xlseek(t, int32(file(stream).fd()), types.Off_t(offset), whence); n < 0 { + // if dmesgs { + // dmesg("%v: fd %v, off %#x, whence %v: %v", origin(1), file(stream).fd(), offset, whenceStr(whence), n) + // } + file(stream).setErr() + return -1 + } + + // if dmesgs { + // dmesg("%v: fd %v, off %#x, whence %v: ok", origin(1), file(stream).fd(), offset, whenceStr(whence)) + // } + file(stream).xorFlags(m_F_EOF) + return 0 +} + +// long ftell(FILE *stream); +func Xftell(t *TLS, stream uintptr) long { + if __ccgo_strace { + trc("t=%v stream=%v, (%v:)", t, stream, origin(2)) + } + n := Xlseek(t, file(stream).fd(), 0, stdio.SEEK_CUR) + if n < 0 { + file(stream).setErr() + return -1 + } + + // if dmesgs { + // dmesg("%v: fd %v, n %#x: ok %#x", origin(1), file(stream).fd(), n, long(n)) + // } + return long(n) +} + +// int ferror(FILE *stream); +func Xferror(t *TLS, stream uintptr) int32 { + if __ccgo_strace { + trc("t=%v stream=%v, (%v:)", t, stream, origin(2)) + } + return Bool32(file(stream).err()) +} + +// int ungetc(int c, FILE *stream); +func Xungetc(t *TLS, c int32, stream uintptr) int32 { + if __ccgo_strace { + trc("t=%v c=%v stream=%v, (%v:)", t, c, stream, origin(2)) + } + if c == stdio.EOF { + return c + } + + ungetcMu.Lock() + ungetc[stream] = byte(c) + ungetcMu.Unlock() + return int32(byte(c)) +} + +// int fscanf(FILE *stream, const char *format, ...); +func Xfscanf(t *TLS, stream, format, va uintptr) int32 { + if __ccgo_strace { + trc("t=%v va=%v, (%v:)", t, va, origin(2)) + } + return scanf(&byteScanner{t: t, stream: stream}, format, va) +} + +// int fputs(const char *s, FILE *stream); +func Xfputs(t *TLS, s, stream uintptr) int32 { + if __ccgo_strace { + trc("t=%v stream=%v, (%v:)", t, stream, origin(2)) + } + panic(todo("")) + // if _, _, err := unix.Syscall(unix.SYS_WRITE, uintptr(file(stream).fd()), s, uintptr(Xstrlen(t, s))); err != 0 { + // return -1 + // } + + // return 0 +} + +var getservbynameStaticResult netdb.Servent + +// struct servent *getservbyname(const char *name, const char *proto); +func Xgetservbyname(t *TLS, name, proto uintptr) uintptr { + if __ccgo_strace { + trc("t=%v proto=%v, (%v:)", t, proto, origin(2)) + } + var protoent *gonetdb.Protoent + if proto != 0 { + protoent = gonetdb.GetProtoByName(GoString(proto)) + } + servent := gonetdb.GetServByName(GoString(name), protoent) + if servent == nil { + // if dmesgs { + // dmesg("%q %q: nil (protoent %+v)", GoString(name), GoString(proto), protoent) + // } + return 0 + } + + Xfree(t, (*netdb.Servent)(unsafe.Pointer(&getservbynameStaticResult)).Fs_name) + if v := (*netdb.Servent)(unsafe.Pointer(&getservbynameStaticResult)).Fs_aliases; v != 0 { + for { + p := *(*uintptr)(unsafe.Pointer(v)) + if p == 0 { + break + } + + Xfree(t, p) + v += unsafe.Sizeof(uintptr(0)) + } + Xfree(t, v) + } + Xfree(t, (*netdb.Servent)(unsafe.Pointer(&getservbynameStaticResult)).Fs_proto) + cname, err := CString(servent.Name) + if err != nil { + getservbynameStaticResult = netdb.Servent{} + return 0 + } + + var protoname uintptr + if protoent != nil { + if protoname, err = CString(protoent.Name); err != nil { + Xfree(t, cname) + getservbynameStaticResult = netdb.Servent{} + return 0 + } + } + var a []uintptr + for _, v := range servent.Aliases { + cs, err := CString(v) + if err != nil { + for _, v := range a { + Xfree(t, v) + } + return 0 + } + + a = append(a, cs) + } + v := Xcalloc(t, types.Size_t(len(a)+1), types.Size_t(unsafe.Sizeof(uintptr(0)))) + if v == 0 { + Xfree(t, cname) + Xfree(t, protoname) + for _, v := range a { + Xfree(t, v) + } + getservbynameStaticResult = netdb.Servent{} + return 0 + } + for _, p := range a { + *(*uintptr)(unsafe.Pointer(v)) = p + v += unsafe.Sizeof(uintptr(0)) + } + + getservbynameStaticResult = netdb.Servent{ + Fs_name: cname, + Fs_aliases: v, + Fs_port: int32(servent.Port), + Fs_proto: protoname, + } + return uintptr(unsafe.Pointer(&getservbynameStaticResult)) +} + +func Xreaddir64(t *TLS, dir uintptr) uintptr { + if __ccgo_strace { + trc("t=%v dir=%v, (%v:)", t, dir, origin(2)) + } + return Xreaddir(t, dir) +} + +func __syscall(r, _ uintptr, errno syscallErrno) long { + if errno != 0 { + return long(-errno) + } + + return long(r) +} + +func X__syscall1(t *TLS, trap, p1 long) long { + if __ccgo_strace { + trc("t=%v p1=%v, (%v:)", t, p1, origin(2)) + } + return __syscall(unix.Syscall(uintptr(trap), uintptr(p1), 0, 0)) +} + +func X__syscall3(t *TLS, trap, p1, p2, p3 long) long { + if __ccgo_strace { + trc("t=%v p3=%v, (%v:)", t, p3, origin(2)) + } + return __syscall(unix.Syscall(uintptr(trap), uintptr(p1), uintptr(p2), uintptr(p3))) +} + +func X__syscall4(t *TLS, trap, p1, p2, p3, p4 long) long { + if __ccgo_strace { + trc("t=%v p4=%v, (%v:)", t, p4, origin(2)) + } + return __syscall(unix.Syscall6(uintptr(trap), uintptr(p1), uintptr(p2), uintptr(p3), uintptr(p4), 0, 0)) +} + +func fcntlCmdStr(cmd int32) string { + switch cmd { + case fcntl.F_GETOWN: + return "F_GETOWN" + case fcntl.F_SETLK: + return "F_SETLK" + case fcntl.F_GETLK: + return "F_GETLK" + case fcntl.F_SETFD: + return "F_SETFD" + case fcntl.F_GETFD: + return "F_GETFD" + default: + return fmt.Sprintf("cmd(%d)", cmd) + } +} + +// int setenv(const char *name, const char *value, int overwrite); +func Xsetenv(t *TLS, name, value uintptr, overwrite int32) int32 { + if __ccgo_strace { + trc("t=%v value=%v overwrite=%v, (%v:)", t, value, overwrite, origin(2)) + } + panic(todo("")) +} + +// int unsetenv(const char *name); +func Xunsetenv(t *TLS, name uintptr) int32 { + if __ccgo_strace { + trc("t=%v name=%v, (%v:)", t, name, origin(2)) + } + panic(todo("")) +} + +// int pause(void); +func Xpause(t *TLS) int32 { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } + err := unix.Pause() + if err != nil { + t.setErrno(err) + } + + return -1 +} + +// ssize_t writev(int fd, const struct iovec *iov, int iovcnt); +func Xwritev(t *TLS, fd int32, iov uintptr, iovcnt int32) types.Ssize_t { + if __ccgo_strace { + trc("t=%v fd=%v iov=%v iovcnt=%v, (%v:)", t, fd, iov, iovcnt, origin(2)) + } + // if dmesgs { + // dmesg("%v: fd %v iov %#x iovcnt %v", origin(1), fd, iov, iovcnt) + // } + if iovcnt == 0 { + panic(todo("")) + } + + iovs := make([][]byte, iovcnt) + for ; iovcnt != 0; iovcnt-- { + base := (*unix.Iovec)(unsafe.Pointer(iov)).Base + len := (*unix.Iovec)(unsafe.Pointer(iov)).Len + // if dmesgs { + // dmesg("%v: base %#x len %v", origin(1), base, len) + // } + if base != nil && len != 0 { + iovs = append(iovs, (*RawMem)(unsafe.Pointer(base))[:len:len]) + iov += unsafe.Sizeof(unix.Iovec{}) + } + } + n, err := unix.Writev(int(fd), iovs) + if err != nil { + // if dmesgs { + // dmesg("%v: %v", origin(1), err) + // } + panic(todo("")) + } + + return types.Ssize_t(n) +} + +// int __isoc99_sscanf(const char *str, const char *format, ...); +func X__isoc99_sscanf(t *TLS, str, format, va uintptr) int32 { + if __ccgo_strace { + trc("t=%v va=%v, (%v:)", t, va, origin(2)) + } + r := Xsscanf(t, str, format, va) + // if dmesgs { + // dmesg("%v: %q %q: %d", origin(1), GoString(str), GoString(format), r) + // } + return r +} + +// var ctimeStaticBuf [32]byte +// +// // char *ctime(const time_t *timep); +// func Xctime(t *TLS, timep uintptr) uintptr { +// return Xctime_r(t, timep, uintptr(unsafe.Pointer(&ctimeStaticBuf[0]))) +// } +// +// // char *ctime_r(const time_t *timep, char *buf); +// func Xctime_r(t *TLS, timep, buf uintptr) uintptr { +// ut := *(*unix.Time_t)(unsafe.Pointer(timep)) +// tm := time.Unix(int64(ut), 0).Local() +// s := tm.Format(time.ANSIC) + "\n\x00" +// copy((*RawMem)(unsafe.Pointer(buf))[:26:26], s) +// return buf +// } + +// ssize_t pwrite(int fd, const void *buf, size_t count, off_t offset); +func Xpwrite(t *TLS, fd int32, buf uintptr, count types.Size_t, offset types.Off_t) types.Ssize_t { + if __ccgo_strace { + trc("t=%v fd=%v buf=%v count=%v offset=%v, (%v:)", t, fd, buf, count, offset, origin(2)) + } + var n int + var err error + switch { + case count == 0: + n, err = unix.Pwrite(int(fd), nil, int64(offset)) + default: + n, err = unix.Pwrite(int(fd), (*RawMem)(unsafe.Pointer(buf))[:count:count], int64(offset)) + // if dmesgs { + // dmesg("%v: fd %v, off %#x, count %#x\n%s", origin(1), fd, offset, count, hex.Dump((*RawMem)(unsafe.Pointer(buf))[:count:count])) + // } + } + if err != nil { + // if dmesgs { + // dmesg("%v: %v FAIL", origin(1), err) + // } + t.setErrno(err) + return -1 + } + + // if dmesgs { + // dmesg("%v: ok", origin(1)) + // } + return types.Ssize_t(n) +} + +// int fstatfs(int fd, struct statfs *buf); +func Xfstatfs(t *TLS, fd int32, buf uintptr) int32 { + if __ccgo_strace { + trc("t=%v fd=%v buf=%v, (%v:)", t, fd, buf, origin(2)) + } + panic(todo("")) + // if err := unix.Fstatfs(int(fd), (*unix.Statfs_t)(unsafe.Pointer(buf))); err != nil { + // t.setErrno(err) + // return -1 + // } + + // return 0 +} + +// ssize_t getrandom(void *buf, size_t buflen, unsigned int flags); +func Xgetrandom(t *TLS, buf uintptr, buflen size_t, flags uint32) ssize_t { + if __ccgo_strace { + trc("t=%v buf=%v buflen=%v flags=%v, (%v:)", t, buf, buflen, flags, origin(2)) + } + panic(todo("")) + // n, err := unix.Getrandom((*RawMem)(unsafe.Pointer(buf))[:buflen], int(flags)) + // if err != nil { + // t.setErrno(err) + // return -1 + // } + + // return ssize_t(n) +} + +// int posix_fadvise(int fd, off_t offset, off_t len, int advice); +func Xposix_fadvise(t *TLS, fd int32, offset, len types.Off_t, advice int32) int32 { + if __ccgo_strace { + trc("t=%v fd=%v len=%v advice=%v, (%v:)", t, fd, len, advice, origin(2)) + } + panic(todo("")) + // if err := unix.Fadvise(int(fd), int64(offset), int64(len), int(advice)); err != nil { + // return int32(err.(unix.Errno)) + // } + + // return 0 +} + +// int fgetc(FILE *stream); +func Xfgetc(t *TLS, stream uintptr) int32 { + if __ccgo_strace { + trc("t=%v stream=%v, (%v:)", t, stream, origin(2)) + } + panic(todo("")) + // ungetcMu.Lock() + // c, ok := ungetc[stream] + // delete(ungetc, stream) + // ungetcMu.Unlock() + // if ok { + // return int32(c) + // } + // + // fd := int((*stdio.FILE)(unsafe.Pointer(stream)).F_fileno) + // var buf [1]byte + // if n, _ := unix.Read(fd, buf[:]); n != 0 { + // return int32(buf[0]) + // } + // + // file(stream).orFlags(m_F_EOF) + // return stdio.EOF +} + +// void uuid_copy(uuid_t dst, uuid_t src); +func Xuuid_copy(t *TLS, dst, src uintptr) { + if __ccgo_strace { + trc("t=%v src=%v, (%v:)", t, src, origin(2)) + } + *(*uuid.Uuid_t)(unsafe.Pointer(dst)) = *(*uuid.Uuid_t)(unsafe.Pointer(src)) +} + +// int uuid_parse( char *in, uuid_t uu); +func Xuuid_parse(t *TLS, in uintptr, uu uintptr) int32 { + if __ccgo_strace { + trc("t=%v in=%v uu=%v, (%v:)", t, in, uu, origin(2)) + } + r, err := guuid.Parse(GoString(in)) + if err != nil { + return -1 + } + + copy((*RawMem)(unsafe.Pointer(uu))[:unsafe.Sizeof(uuid.Uuid_t{})], r[:]) + return 0 +} + +// int mkdirat(int dirfd, const char *pathname, mode_t mode); +func Xmkdirat(t *TLS, dirfd int32, pathname uintptr, mode types.Mode_t) int32 { + if __ccgo_strace { + trc("t=%v dirfd=%v pathname=%v mode=%v, (%v:)", t, dirfd, pathname, mode, origin(2)) + } + // From golang.org/x/sys/unix/zsyscall_linux.go + panic(todo("")) + // if _, _, err := unix.Syscall(unix.SYS_MKDIRAT, uintptr(dirfd), pathname, uintptr(mode)); err != 0 { + // t.setErrno(err) + // return -1 + // } + + // return 0 +} + +// int symlinkat(const char *target, int newdirfd, const char *linkpath); +func Xsymlinkat(t *TLS, target uintptr, newdirfd int32, linkpath uintptr) int32 { + if __ccgo_strace { + trc("t=%v target=%v newdirfd=%v linkpath=%v, (%v:)", t, target, newdirfd, linkpath, origin(2)) + } + panic(todo("")) + // // From golang.org/x/sys/unix/zsyscall_linux.go + // if _, _, err := unix.Syscall(unix.SYS_SYMLINKAT, target, uintptr(newdirfd), linkpath); err != 0 { + // t.setErrno(err) + // return -1 + // } + + // return 0 +} + +// int utimensat(int dirfd, const char *pathname, const struct timespec times[2], int flags); +func Xutimensat(t *TLS, dirfd int32, pathname, times uintptr, flags int32) int32 { + if __ccgo_strace { + trc("t=%v dirfd=%v times=%v flags=%v, (%v:)", t, dirfd, times, flags, origin(2)) + } + panic(todo("")) + // // From golang.org/x/sys/unix/zsyscall_linux.go + // if _, _, err := unix.Syscall6(unix.SYS_UTIMENSAT, uintptr(dirfd), pathname, times, uintptr(flags), 0, 0); err != 0 { + // t.setErrno(err) + // return -1 + // } + + // return 0 +} + +// int unlinkat(int dirfd, const char *pathname, int flags); +func Xunlinkat(t *TLS, dirfd int32, pathname uintptr, flags int32) int32 { + if __ccgo_strace { + trc("t=%v dirfd=%v pathname=%v flags=%v, (%v:)", t, dirfd, pathname, flags, origin(2)) + } + panic(todo("")) + // // From golang.org/x/sys/unix/zsyscall_linux.go + // if _, _, err := unix.Syscall(unix.SYS_UNLINKAT, uintptr(dirfd), pathname, uintptr(flags)); err != 0 { + // t.setErrno(err) + // return -1 + // } + + // return 0 +} + +// int faccessat(int dirfd, const char *pathname, int mode, int flags); +func Xfaccessat(t *TLS, dirfd int32, pathname uintptr, mode, flags int32) int32 { + if __ccgo_strace { + trc("t=%v dirfd=%v pathname=%v flags=%v, (%v:)", t, dirfd, pathname, flags, origin(2)) + } + panic(todo("")) + // // From golang.org/x/sys/unix/zsyscall_linux.go + // if _, _, err := unix.Syscall(unix.SYS_FACCESSAT, uintptr(dirfd), pathname, uintptr(mode)); err != 0 { + // t.setErrno(err) + // return -1 + // } + + // return 0 +} + +// int renameat2(int olddirfd, const char *oldpath, int newdirfd, const char *newpath, unsigned int flags); +func Xrenameat2(t *TLS, olddirfd int32, oldpath uintptr, newdirfd int32, newpath uintptr, flags int32) int32 { + if __ccgo_strace { + trc("t=%v olddirfd=%v oldpath=%v newdirfd=%v newpath=%v flags=%v, (%v:)", t, olddirfd, oldpath, newdirfd, newpath, flags, origin(2)) + } + panic(todo("")) + // // From golang.org/x/sys/unix/zsyscall_linux.go + // if _, _, err := unix.Syscall6(unix.SYS_RENAMEAT2, uintptr(olddirfd), oldpath, uintptr(newdirfd), newpath, uintptr(flags), 0); err != 0 { + // t.setErrno(err) + // return -1 + // } + + // return 0 +} + +// int mknodat(int dirfd, const char *pathname, mode_t mode, dev_t dev); +func Xmknodat(t *TLS, dirfd int32, pathname uintptr, mode types.Mode_t, dev types.Dev_t) int32 { + if __ccgo_strace { + trc("t=%v dirfd=%v pathname=%v mode=%v dev=%v, (%v:)", t, dirfd, pathname, mode, dev, origin(2)) + } + panic(todo("")) + // // From golang.org/x/sys/unix/zsyscall_linux.go + // if _, _, err := unix.Syscall6(unix.SYS_MKNODAT, uintptr(dirfd), pathname, uintptr(mode), uintptr(dev), 0, 0); err != 0 { + // t.setErrno(err) + // return -1 + // } + + // return 0 +} + +// int fchownat(int dirfd, const char *pathname, uid_t owner, gid_t group, int flags); +func Xfchownat(t *TLS, dirfd int32, pathname uintptr, uid types.Uid_t, gid types.Gid_t, flags int32) int32 { + if __ccgo_strace { + trc("t=%v dirfd=%v pathname=%v uid=%v gid=%v flags=%v, (%v:)", t, dirfd, pathname, uid, gid, flags, origin(2)) + } + panic(todo("")) + // // From golang.org/x/sys/unix/zsyscall_linux.go + // if _, _, err := unix.Syscall6(unix.SYS_FCHOWNAT, uintptr(dirfd), pathname, uintptr(uid), uintptr(gid), uintptr(flags), 0); err != 0 { + // t.setErrno(err) + // return -1 + // } + + // return 0 +} + +// int linkat(int olddirfd, const char *oldpath, int newdirfd, const char *newpath, int flags); +func Xlinkat(t *TLS, olddirfd int32, oldpath uintptr, newdirfd int32, newpath uintptr, flags int32) int32 { + if __ccgo_strace { + trc("t=%v olddirfd=%v oldpath=%v newdirfd=%v newpath=%v flags=%v, (%v:)", t, olddirfd, oldpath, newdirfd, newpath, flags, origin(2)) + } + panic(todo("")) + // // From golang.org/x/sys/unix/zsyscall_linux.go + // if _, _, err := unix.Syscall6(unix.SYS_LINKAT, uintptr(olddirfd), oldpath, uintptr(newdirfd), newpath, uintptr(flags), 0); err != 0 { + // t.setErrno(err) + // return -1 + // } + + // return 0 +} + +// int pipe2(int pipefd[2], int flags); +func Xpipe2(t *TLS, pipefd uintptr, flags int32) int32 { + if __ccgo_strace { + trc("t=%v pipefd=%v flags=%v, (%v:)", t, pipefd, flags, origin(2)) + } + // From golang.org/x/sys/unix/zsyscall_linux.go + panic(todo("")) + // if _, _, err := unix.Syscall(unix.SYS_PIPE2, pipefd, uintptr(flags), 0); err != 0 { + // t.setErrno(t) + // return -1 + // } + + // return 0 +} + +// int dup3(int oldfd, int newfd, int flags); +func Xdup3(t *TLS, oldfd int32, newfd int32, flags int32) int32 { + if __ccgo_strace { + trc("t=%v oldfd=%v newfd=%v flags=%v, (%v:)", t, oldfd, newfd, flags, origin(2)) + } + // From golang.org/x/sys/unix/zsyscall_linux.go + panic(todo("")) + // if _, _, err := unix.Syscall(unix.SYS_DUP3, uintptr(oldfd), uintptr(newfd), uintptr(flags)); err != 0 { + // t.setErrno(err) + // return -1 + // } + + // return 0 +} + +// ssize_t readlinkat(int dirfd, const char *pathname, char *buf, size_t bufsiz); +func Xreadlinkat(t *TLS, dirfd int32, pathname, buf uintptr, bufsiz types.Size_t) types.Ssize_t { + if __ccgo_strace { + trc("t=%v dirfd=%v buf=%v bufsiz=%v, (%v:)", t, dirfd, buf, bufsiz, origin(2)) + } + // From golang.org/x/sys/unix/zsyscall_linux.go + panic(todo("")) + // n, _, err := unix.Syscall6(unix.SYS_READLINKAT, uintptr(dirfd), pathname, buf, uintptr(bufsiz), 0, 0) + // if err != 0 { + // t.setErrno(err) + // return -1 + // } + + // return types.Ssize_t(n) +} + +// int nanosleep(const struct timespec *req, struct timespec *rem); +func Xnanosleep(t *TLS, req, rem uintptr) int32 { + if __ccgo_strace { + trc("t=%v rem=%v, (%v:)", t, rem, origin(2)) + } + v := *(*ctime.Timespec)(unsafe.Pointer(req)) + time.Sleep(time.Second*time.Duration(v.Ftv_sec) + time.Duration(v.Ftv_nsec)) + return 0 +} + +func Xfeof(t *TLS, f uintptr) (r int32) { + if __ccgo_strace { + trc("t=%v f=%v, (%v:)", t, f, origin(2)) + defer func() { trc("-> %v", r) }() + } + panic(todo("")) + // X__lockfile(t, f) + // r = BoolInt32(!!((*stdio.FILE)(unsafe.Pointer(f)).F_flags&Int32FromInt32(m_F_EOF) != 0)) + // X__unlockfile(t, f) + // return r +} + +type byteScanner struct { + t *TLS + stream uintptr + + last byte +} + +func (s *byteScanner) ReadByte() (byte, error) { + c := Xfgetc(s.t, s.stream) + if c < 0 { + return 0, io.EOF + } + + s.last = byte(c) + return byte(c), nil +} + +func (s *byteScanner) UnreadByte() error { + Xungetc(s.t, int32(s.last), s.stream) + return nil +} + +// int clock_gettime(clockid_t clk_id, struct timespec *tp); +func Xclock_gettime(t *TLS, clk_id int32, tp uintptr) int32 { + if __ccgo_strace { + trc("t=%v clk_id=%v tp=%v, (%v:)", t, clk_id, tp, origin(2)) + } + panic(todo("")) +} + +func Xgmtime_r(tls *TLS, t uintptr, tm uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v tm=%v, (%v:)", tls, t, tm, origin(2)) + } + panic(todo("")) +} diff --git a/vendor/modernc.org/libc/libc_illumos_amd64.go b/vendor/modernc.org/libc/libc_illumos_amd64.go new file mode 100644 index 000000000..ae67a9342 --- /dev/null +++ b/vendor/modernc.org/libc/libc_illumos_amd64.go @@ -0,0 +1,794 @@ +// Copyright 2020 The Libc Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package libc // import "modernc.org/libc" + +import ( + // "os" + // "strings" + gotime "time" + "unicode" + "unsafe" + + "golang.org/x/sys/unix" + // "modernc.org/libc/errno" + "modernc.org/libc/fcntl" + // "modernc.org/libc/signal" + "modernc.org/libc/stdio" + "modernc.org/libc/sys/types" + "modernc.org/libc/time" + "modernc.org/libc/wctype" +) + +var ( + startTime = gotime.Now() // For clock(3) +) + +// int sigaction(int signum, const struct sigaction *act, struct sigaction *oldact); +func Xsigaction(t *TLS, signum int32, act, oldact uintptr) int32 { + if __ccgo_strace { + trc("t=%v signum=%v oldact=%v, (%v:)", t, signum, oldact, origin(2)) + } + panic(todo("")) + // // musl/arch/x86_64/ksigaction.h + // // + // // struct k_sigaction { + // // void (*handler)(int); + // // unsigned long flags; + // // void (*restorer)(void); + // // unsigned mask[2]; + // // }; + // type k_sigaction struct { + // handler uintptr + // flags ulong + // restorer uintptr + // mask [2]uint32 + // } + // + // var kact, koldact uintptr + // if act != 0 { + // sz := int(unsafe.Sizeof(k_sigaction{})) + // kact = t.Alloc(sz) + // defer t.Free(sz) + // *(*k_sigaction)(unsafe.Pointer(kact)) = k_sigaction{ + // handler: (*signal.Sigaction)(unsafe.Pointer(act)).F__sigaction_handler.Fsa_handler, + // flags: ulong((*signal.Sigaction)(unsafe.Pointer(act)).Fsa_flags), + // restorer: (*signal.Sigaction)(unsafe.Pointer(act)).Fsa_restorer, + // } + // Xmemcpy(t, kact+unsafe.Offsetof(k_sigaction{}.mask), act+unsafe.Offsetof(signal.Sigaction{}.Fsa_mask), types.Size_t(unsafe.Sizeof(k_sigaction{}.mask))) + // } + // if oldact != 0 { + // panic(todo("")) + // } + // + // if _, _, err := unix.Syscall6(unix.SYS_RT_SIGACTION, uintptr(signum), kact, koldact, unsafe.Sizeof(k_sigaction{}.mask), 0, 0); err != 0 { + // t.setErrno(err) + // return -1 + // } + // + // if oldact != 0 { + // panic(todo("")) + // } + // + // return 0 +} + +// int fcntl(int fd, int cmd, ... /* arg */ ); +func Xfcntl64(t *TLS, fd, cmd int32, args uintptr) int32 { + if __ccgo_strace { + trc("t=%v cmd=%v args=%v, (%v:)", t, cmd, args, origin(2)) + } + var arg uintptr + if args != 0 { + arg = *(*uintptr)(unsafe.Pointer(args)) + } + if cmd == fcntl.F_SETFL { + arg |= unix.O_LARGEFILE + } + panic(todo("")) + // n, _, err := unix.Syscall(unix.SYS_FCNTL, uintptr(fd), uintptr(cmd), arg) + // if err != 0 { + // // if dmesgs { + // // dmesg("%v: fd %v cmd %v", origin(1), fcntlCmdStr(fd), cmd) + // // } + // t.setErrno(err) + // return -1 + // } + // + // // if dmesgs { + // // dmesg("%v: %d %s %#x: %d", origin(1), fd, fcntlCmdStr(cmd), arg, n) + // // } + // return int32(n) +} + +// int lstat(const char *pathname, struct stat *statbuf); +func Xlstat64(t *TLS, pathname, statbuf uintptr) int32 { + if __ccgo_strace { + trc("t=%v statbuf=%v, (%v:)", t, statbuf, origin(2)) + } + panic(todo("")) + // if _, _, err := unix.Syscall(unix.SYS_LSTAT, pathname, statbuf, 0); err != 0 { + // // if dmesgs { + // // dmesg("%v: %q: %v", origin(1), GoString(pathname), err) + // // } + // t.setErrno(err) + // return -1 + // } + // + // // if dmesgs { + // // dmesg("%v: %q: ok", origin(1), GoString(pathname)) + // // } + // return 0 +} + +// int stat(const char *pathname, struct stat *statbuf); +func Xstat64(t *TLS, pathname, statbuf uintptr) int32 { + if __ccgo_strace { + trc("t=%v statbuf=%v, (%v:)", t, statbuf, origin(2)) + } + panic(todo("")) + // if _, _, err := unix.Syscall(unix.SYS_STAT, pathname, statbuf, 0); err != 0 { + // // if dmesgs { + // // dmesg("%v: %q: %v", origin(1), GoString(pathname), err) + // // } + // t.setErrno(err) + // return -1 + // } + // + // // if dmesgs { + // // dmesg("%v: %q: ok", origin(1), GoString(pathname)) + // // } + // return 0 +} + +// int fstat(int fd, struct stat *statbuf); +func Xfstat64(t *TLS, fd int32, statbuf uintptr) int32 { + if __ccgo_strace { + trc("t=%v fd=%v statbuf=%v, (%v:)", t, fd, statbuf, origin(2)) + } + panic(todo("")) + // if _, _, err := unix.Syscall(unix.SYS_FSTAT, uintptr(fd), statbuf, 0); err != 0 { + // // if dmesgs { + // // dmesg("%v: fd %d: %v", origin(1), fd, err) + // // } + // t.setErrno(err) + // return -1 + // } + // + // // if dmesgs { + // // dmesg("%v: %d size %#x: ok\n%+v", origin(1), fd, (*stat.Stat)(unsafe.Pointer(statbuf)).Fst_size, (*stat.Stat)(unsafe.Pointer(statbuf))) + // // } + // return 0 +} + +func Xmmap(t *TLS, addr uintptr, length types.Size_t, prot, flags, fd int32, offset types.Off_t) uintptr { + if __ccgo_strace { + trc("t=%v addr=%v length=%v fd=%v offset=%v, (%v:)", t, addr, length, fd, offset, origin(2)) + } + return Xmmap64(t, addr, length, prot, flags, fd, offset) +} + +// void *mmap(void *addr, size_t length, int prot, int flags, int fd, off_t offset); +func Xmmap64(t *TLS, addr uintptr, length types.Size_t, prot, flags, fd int32, offset types.Off_t) uintptr { + if __ccgo_strace { + trc("t=%v addr=%v length=%v fd=%v offset=%v, (%v:)", t, addr, length, fd, offset, origin(2)) + } + panic(todo("")) + // data, _, err := unix.Syscall6(unix.SYS_MMAP, addr, uintptr(length), uintptr(prot), uintptr(flags), uintptr(fd), uintptr(offset)) + // if err != 0 { + // // if dmesgs { + // // dmesg("%v: %v", origin(1), err) + // // } + // t.setErrno(err) + // return ^uintptr(0) // (void*)-1 + // } + // + // // if dmesgs { + // // dmesg("%v: %#x", origin(1), data) + // // } + // return data +} + +// void *mremap(void *old_address, size_t old_size, size_t new_size, int flags, ... /* void *new_address */); +func Xmremap(t *TLS, old_address uintptr, old_size, new_size types.Size_t, flags int32, args uintptr) uintptr { + if __ccgo_strace { + trc("t=%v old_address=%v new_size=%v flags=%v args=%v, (%v:)", t, old_address, new_size, flags, args, origin(2)) + } + panic(todo("")) + // var arg uintptr + // if args != 0 { + // arg = *(*uintptr)(unsafe.Pointer(args)) + // } + // data, _, err := unix.Syscall6(unix.SYS_MREMAP, old_address, uintptr(old_size), uintptr(new_size), uintptr(flags), arg, 0) + // if err != 0 { + // // if dmesgs { + // // dmesg("%v: %v", origin(1), err) + // // } + // t.setErrno(err) + // return ^uintptr(0) // (void*)-1 + // } + // + // // if dmesgs { + // // dmesg("%v: %#x", origin(1), data) + // // } + // return data +} + +// int ftruncate(int fd, off_t length); +func Xftruncate64(t *TLS, fd int32, length types.Off_t) int32 { + if __ccgo_strace { + trc("t=%v fd=%v length=%v, (%v:)", t, fd, length, origin(2)) + } + panic(todo("")) + // if _, _, err := unix.Syscall(unix.SYS_FTRUNCATE, uintptr(fd), uintptr(length), 0); err != 0 { + // // if dmesgs { + // // dmesg("%v: fd %d: %v", origin(1), fd, err) + // // } + // t.setErrno(err) + // return -1 + // } + // + // // if dmesgs { + // // dmesg("%v: %d %#x: ok", origin(1), fd, length) + // // } + // return 0 +} + +// off64_t lseek64(int fd, off64_t offset, int whence); +func Xlseek64(t *TLS, fd int32, offset types.Off_t, whence int32) types.Off_t { + if __ccgo_strace { + trc("t=%v fd=%v offset=%v whence=%v, (%v:)", t, fd, offset, whence, origin(2)) + } + panic(todo("")) + // n, _, err := unix.Syscall(unix.SYS_LSEEK, uintptr(fd), uintptr(offset), uintptr(whence)) + // if err != 0 { + // // if dmesgs { + // // dmesg("%v: fd %v, off %#x, whence %v: %v", origin(1), fd, offset, whenceStr(whence), err) + // // } + // t.setErrno(err) + // return -1 + // } + + // // if dmesgs { + // // dmesg("%v: fd %v, off %#x, whence %v: %#x", origin(1), fd, offset, whenceStr(whence), n) + // // } + // return types.Off_t(n) +} + +// int utime(const char *filename, const struct utimbuf *times); +func Xutime(t *TLS, filename, times uintptr) int32 { + if __ccgo_strace { + trc("t=%v times=%v, (%v:)", t, times, origin(2)) + } + panic(todo("")) + // if _, _, err := unix.Syscall(unix.SYS_UTIME, filename, times, 0); err != 0 { + // t.setErrno(err) + // return -1 + // } + + // return 0 +} + +// unsigned int alarm(unsigned int seconds); +func Xalarm(t *TLS, seconds uint32) uint32 { + if __ccgo_strace { + trc("t=%v seconds=%v, (%v:)", t, seconds, origin(2)) + } + panic(todo("")) + // n, _, err := unix.Syscall(unix.SYS_ALARM, uintptr(seconds), 0, 0) + // if err != 0 { + // panic(todo("")) + // } + // + // return uint32(n) +} + +// time_t time(time_t *tloc); +func Xtime(t *TLS, tloc uintptr) types.Time_t { + if __ccgo_strace { + trc("t=%v tloc=%v, (%v:)", t, tloc, origin(2)) + } + panic(todo("")) + // n, _, err := unix.Syscall(unix.SYS_TIME, tloc, 0, 0) + // if err != 0 { + // t.setErrno(err) + // return types.Time_t(-1) + // } + // + // if tloc != 0 { + // *(*types.Time_t)(unsafe.Pointer(tloc)) = types.Time_t(n) + // } + // return types.Time_t(n) +} + +// int getrlimit(int resource, struct rlimit *rlim); +func Xgetrlimit64(t *TLS, resource int32, rlim uintptr) int32 { + if __ccgo_strace { + trc("t=%v resource=%v rlim=%v, (%v:)", t, resource, rlim, origin(2)) + } + panic(todo("")) + // if _, _, err := unix.Syscall(unix.SYS_GETRLIMIT, uintptr(resource), uintptr(rlim), 0); err != 0 { + // t.setErrno(err) + // return -1 + // } + // + // return 0 +} + +// int mkdir(const char *path, mode_t mode); +func Xmkdir(t *TLS, path uintptr, mode types.Mode_t) int32 { + if __ccgo_strace { + trc("t=%v path=%v mode=%v, (%v:)", t, path, mode, origin(2)) + } + panic(todo("")) + // if _, _, err := unix.Syscall(unix.SYS_MKDIR, path, uintptr(mode), 0); err != 0 { + // t.setErrno(err) + // return -1 + // } + // + // // if dmesgs { + // // dmesg("%v: %q: ok", origin(1), GoString(path)) + // // } + // return 0 +} + +// int symlink(const char *target, const char *linkpath); +func Xsymlink(t *TLS, target, linkpath uintptr) int32 { + if __ccgo_strace { + trc("t=%v linkpath=%v, (%v:)", t, linkpath, origin(2)) + } + panic(todo("")) + // if _, _, err := unix.Syscall(unix.SYS_SYMLINK, target, linkpath, 0); err != 0 { + // t.setErrno(err) + // return -1 + // } + // + // // if dmesgs { + // // dmesg("%v: %q %q: ok", origin(1), GoString(target), GoString(linkpath)) + // // } + // return 0 +} + +// int chmod(const char *pathname, mode_t mode) +func Xchmod(t *TLS, pathname uintptr, mode types.Mode_t) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v mode=%v, (%v:)", t, pathname, mode, origin(2)) + } + panic(todo("")) + // if _, _, err := unix.Syscall(unix.SYS_CHMOD, pathname, uintptr(mode), 0); err != 0 { + // t.setErrno(err) + // return -1 + // } + // + // // if dmesgs { + // // dmesg("%v: %q %#o: ok", origin(1), GoString(pathname), mode) + // // } + // return 0 +} + +// int utimes(const char *filename, const struct timeval times[2]); +func Xutimes(t *TLS, filename, times uintptr) int32 { + if __ccgo_strace { + trc("t=%v times=%v, (%v:)", t, times, origin(2)) + } + panic(todo("")) + // if _, _, err := unix.Syscall(unix.SYS_UTIMES, filename, times, 0); err != 0 { + // t.setErrno(err) + // return -1 + // } + // + // // if dmesgs { + // // dmesg("%v: %q: ok", origin(1), GoString(filename)) + // // } + // return 0 +} + +// int unlink(const char *pathname); +func Xunlink(t *TLS, pathname uintptr) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v, (%v:)", t, pathname, origin(2)) + } + panic(todo("")) + // if _, _, err := unix.Syscall(unix.SYS_UNLINK, pathname, 0, 0); err != 0 { + // t.setErrno(err) + // return -1 + // } + // + // // if dmesgs { + // // dmesg("%v: %q: ok", origin(1), GoString(pathname)) + // // } + // return 0 +} + +// int access(const char *pathname, int mode); +func Xaccess(t *TLS, pathname uintptr, mode int32) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v mode=%v, (%v:)", t, pathname, mode, origin(2)) + } + panic(todo("")) + // if _, _, err := unix.Syscall(unix.SYS_ACCESS, pathname, uintptr(mode), 0); err != 0 { + // // if dmesgs { + // // dmesg("%v: %q: %v", origin(1), GoString(pathname), err) + // // } + // t.setErrno(err) + // return -1 + // } + // + // // if dmesgs { + // // dmesg("%v: %q %#o: ok", origin(1), GoString(pathname), mode) + // // } + // return 0 +} + +// int rmdir(const char *pathname); +func Xrmdir(t *TLS, pathname uintptr) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v, (%v:)", t, pathname, origin(2)) + } + panic(todo("")) + // if _, _, err := unix.Syscall(unix.SYS_RMDIR, pathname, 0, 0); err != 0 { + // t.setErrno(err) + // return -1 + // } + // + // // if dmesgs { + // // dmesg("%v: %q: ok", origin(1), GoString(pathname)) + // // } + // return 0 +} + +// int rename(const char *oldpath, const char *newpath); +func Xrename(t *TLS, oldpath, newpath uintptr) int32 { + if __ccgo_strace { + trc("t=%v newpath=%v, (%v:)", t, newpath, origin(2)) + } + panic(todo("")) + // if _, _, err := unix.Syscall(unix.SYS_RENAME, oldpath, newpath, 0); err != 0 { + // t.setErrno(err) + // return -1 + // } + // + // return 0 +} + +// int mknod(const char *pathname, mode_t mode, dev_t dev); +func Xmknod(t *TLS, pathname uintptr, mode types.Mode_t, dev types.Dev_t) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v mode=%v dev=%v, (%v:)", t, pathname, mode, dev, origin(2)) + } + panic(todo("")) + // if _, _, err := unix.Syscall(unix.SYS_MKNOD, pathname, uintptr(mode), uintptr(dev)); err != 0 { + // t.setErrno(err) + // return -1 + // } + // + // return 0 +} + +// int chown(const char *pathname, uid_t owner, gid_t group); +func Xchown(t *TLS, pathname uintptr, owner types.Uid_t, group types.Gid_t) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v owner=%v group=%v, (%v:)", t, pathname, owner, group, origin(2)) + } + panic(todo("")) + // if _, _, err := unix.Syscall(unix.SYS_CHOWN, pathname, uintptr(owner), uintptr(group)); err != 0 { + // t.setErrno(err) + // return -1 + // } + // + // return 0 +} + +// int link(const char *oldpath, const char *newpath); +func Xlink(t *TLS, oldpath, newpath uintptr) int32 { + if __ccgo_strace { + trc("t=%v newpath=%v, (%v:)", t, newpath, origin(2)) + } + panic(todo("")) + // if _, _, err := unix.Syscall(unix.SYS_LINK, oldpath, newpath, 0); err != 0 { + // t.setErrno(err) + // return -1 + // } + // + // return 0 +} + +// int pipe(int pipefd[2]); +func Xpipe(t *TLS, pipefd uintptr) int32 { + if __ccgo_strace { + trc("t=%v pipefd=%v, (%v:)", t, pipefd, origin(2)) + } + panic(todo("")) + // if _, _, err := unix.Syscall(unix.SYS_PIPE, pipefd, 0, 0); err != 0 { + // t.setErrno(err) + // return -1 + // } + // + // return 0 +} + +// int dup2(int oldfd, int newfd); +func Xdup2(t *TLS, oldfd, newfd int32) int32 { + if __ccgo_strace { + trc("t=%v newfd=%v, (%v:)", t, newfd, origin(2)) + } + panic(todo("")) + // n, _, err := unix.Syscall(unix.SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0) + // if err != 0 { + // t.setErrno(err) + // return -1 + // } + // + // return int32(n) +} + +// ssize_t readlink(const char *restrict path, char *restrict buf, size_t bufsize); +func Xreadlink(t *TLS, path, buf uintptr, bufsize types.Size_t) types.Ssize_t { + if __ccgo_strace { + trc("t=%v buf=%v bufsize=%v, (%v:)", t, buf, bufsize, origin(2)) + } + panic(todo("")) + // n, _, err := unix.Syscall(unix.SYS_READLINK, path, buf, uintptr(bufsize)) + // if err != 0 { + // t.setErrno(err) + // return -1 + // } + // + // return types.Ssize_t(n) +} + +// FILE *fopen64(const char *pathname, const char *mode); +func Xfopen64(t *TLS, pathname, mode uintptr) uintptr { + if __ccgo_strace { + trc("t=%v mode=%v, (%v:)", t, mode, origin(2)) + } + panic(todo("")) + // m := strings.ReplaceAll(GoString(mode), "b", "") + // var flags int + // switch m { + // case "r": + // flags = os.O_RDONLY + // case "r+": + // flags = os.O_RDWR + // case "w": + // flags = os.O_WRONLY | os.O_CREATE | os.O_TRUNC + // case "w+": + // flags = os.O_RDWR | os.O_CREATE | os.O_TRUNC + // case "a": + // flags = os.O_WRONLY | os.O_CREATE | os.O_APPEND + // case "a+": + // flags = os.O_RDWR | os.O_CREATE | os.O_APPEND + // default: + // panic(m) + // } + // //TODO- flags |= fcntl.O_LARGEFILE + // fd, _, err := unix.Syscall(unix.SYS_OPEN, pathname, uintptr(flags|unix.O_LARGEFILE), 0666) + // if err != 0 { + // t.setErrno(err) + // return 0 + // } + // + // if p := newFile(t, int32(fd)); p != 0 { + // return p + // } + // + // Xclose(t, int32(fd)) + // t.setErrno(errno.ENOMEM) + // return 0 +} + +// int iswspace(wint_t wc); +func Xiswspace(t *TLS, wc wctype.Wint_t) int32 { + if __ccgo_strace { + trc("t=%v wc=%v, (%v:)", t, wc, origin(2)) + } + return Bool32(unicode.IsSpace(rune(wc))) +} + +// int iswalnum(wint_t wc); +func Xiswalnum(t *TLS, wc wctype.Wint_t) int32 { + if __ccgo_strace { + trc("t=%v wc=%v, (%v:)", t, wc, origin(2)) + } + return Bool32(unicode.IsLetter(rune(wc)) || unicode.IsNumber(rune(wc))) +} + +// int setrlimit(int resource, const struct rlimit *rlim); +func Xsetrlimit64(t *TLS, resource int32, rlim uintptr) int32 { + if __ccgo_strace { + trc("t=%v resource=%v rlim=%v, (%v:)", t, resource, rlim, origin(2)) + } + panic(todo("")) + // if _, _, err := unix.Syscall(unix.SYS_SETRLIMIT, uintptr(resource), uintptr(rlim), 0); err != 0 { + // t.setErrno(err) + // return -1 + // } + // + // return 0 +} + +func AtomicLoadPInt8(addr uintptr) (val int8) { + return int8(a_load_8(addr)) +} + +func AtomicLoadPInt16(addr uintptr) (val int16) { + return int16(a_load_16(addr)) +} + +func AtomicLoadPUint8(addr uintptr) byte { + return byte(a_load_8(addr)) +} + +func AtomicLoadPUint16(addr uintptr) uint16 { + return uint16(a_load_16(addr)) +} + +func AtomicLoadNUint8(ptr uintptr, memorder int32) uint8 { + return byte(a_load_8(ptr)) +} + +var _table1 = [384]int32{ + 129: int32(1), + 130: int32(2), + 131: int32(3), + 132: int32(4), + 133: int32(5), + 134: int32(6), + 135: int32(7), + 136: int32(8), + 137: int32(9), + 138: int32(10), + 139: int32(11), + 140: int32(12), + 141: int32(13), + 142: int32(14), + 143: int32(15), + 144: int32(16), + 145: int32(17), + 146: int32(18), + 147: int32(19), + 148: int32(20), + 149: int32(21), + 150: int32(22), + 151: int32(23), + 152: int32(24), + 153: int32(25), + 154: int32(26), + 155: int32(27), + 156: int32(28), + 157: int32(29), + 158: int32(30), + 159: int32(31), + 160: int32(32), + 161: int32(33), + 162: int32(34), + 163: int32(35), + 164: int32(36), + 165: int32(37), + 166: int32(38), + 167: int32(39), + 168: int32(40), + 169: int32(41), + 170: int32(42), + 171: int32(43), + 172: int32(44), + 173: int32(45), + 174: int32(46), + 175: int32(47), + 176: int32(48), + 177: int32(49), + 178: int32(50), + 179: int32(51), + 180: int32(52), + 181: int32(53), + 182: int32(54), + 183: int32(55), + 184: int32(56), + 185: int32(57), + 186: int32(58), + 187: int32(59), + 188: int32(60), + 189: int32(61), + 190: int32(62), + 191: int32(63), + 192: int32(64), + 193: int32('a'), + 194: int32('b'), + 195: int32('c'), + 196: int32('d'), + 197: int32('e'), + 198: int32('f'), + 199: int32('g'), + 200: int32('h'), + 201: int32('i'), + 202: int32('j'), + 203: int32('k'), + 204: int32('l'), + 205: int32('m'), + 206: int32('n'), + 207: int32('o'), + 208: int32('p'), + 209: int32('q'), + 210: int32('r'), + 211: int32('s'), + 212: int32('t'), + 213: int32('u'), + 214: int32('v'), + 215: int32('w'), + 216: int32('x'), + 217: int32('y'), + 218: int32('z'), + 219: int32(91), + 220: int32(92), + 221: int32(93), + 222: int32(94), + 223: int32(95), + 224: int32(96), + 225: int32('a'), + 226: int32('b'), + 227: int32('c'), + 228: int32('d'), + 229: int32('e'), + 230: int32('f'), + 231: int32('g'), + 232: int32('h'), + 233: int32('i'), + 234: int32('j'), + 235: int32('k'), + 236: int32('l'), + 237: int32('m'), + 238: int32('n'), + 239: int32('o'), + 240: int32('p'), + 241: int32('q'), + 242: int32('r'), + 243: int32('s'), + 244: int32('t'), + 245: int32('u'), + 246: int32('v'), + 247: int32('w'), + 248: int32('x'), + 249: int32('y'), + 250: int32('z'), + 251: int32(123), + 252: int32(124), + 253: int32(125), + 254: int32(126), + 255: int32(127), +} + +var _ptable1 = uintptr(unsafe.Pointer(&_table1)) + uintptr(128)*4 + +func X__ctype_tolower_loc(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(unsafe.Pointer(&_ptable1)) +} + +type Tin6_addr = struct { + F__in6_union struct { + F__s6_addr16 [0][8]uint16 + F__s6_addr32 [0][4]uint32 + F__s6_addr [16]uint8 + } +} + +var Xin6addr_any = Tin6_addr{} + +func Xrewinddir(tls *TLS, f uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } + Xfseek(tls, f, 0, stdio.SEEK_SET) +} + +// clock_t clock(void); +func Xclock(t *TLS) time.Clock_t { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } + return time.Clock_t(gotime.Since(startTime) * gotime.Duration(time.CLOCKS_PER_SEC) / gotime.Second) +} diff --git a/vendor/modernc.org/libc/libc_linux.go b/vendor/modernc.org/libc/libc_linux.go index b2910d9e1..ef8b3842d 100644 --- a/vendor/modernc.org/libc/libc_linux.go +++ b/vendor/modernc.org/libc/libc_linux.go @@ -3,1592 +3,3 @@ // license that can be found in the LICENSE file. package libc // import "modernc.org/libc" - -import ( - "encoding/hex" - "fmt" - "os" - "os/exec" - "path/filepath" - "runtime" - "runtime/debug" - "syscall" - "time" - "unsafe" - - guuid "github.com/google/uuid" - "golang.org/x/sys/unix" - "modernc.org/libc/errno" - "modernc.org/libc/fcntl" - "modernc.org/libc/fts" - gonetdb "modernc.org/libc/honnef.co/go/netdb" - "modernc.org/libc/langinfo" - "modernc.org/libc/limits" - "modernc.org/libc/netdb" - "modernc.org/libc/netinet/in" - "modernc.org/libc/signal" - "modernc.org/libc/stdio" - "modernc.org/libc/sys/socket" - "modernc.org/libc/sys/stat" - "modernc.org/libc/sys/types" - "modernc.org/libc/termios" - ctime "modernc.org/libc/time" - "modernc.org/libc/unistd" - "modernc.org/libc/uuid/uuid" -) - -var ( - in6_addr_any in.In6_addr - _ = X__ctype_b_loc -) - -type ( - long = types.X__syscall_slong_t - ulong = types.X__syscall_ulong_t -) - -type file uintptr - -func (f file) fd() int32 { return (*stdio.FILE)(unsafe.Pointer(f)).F_fileno } -func (f file) setFd(fd int32) { (*stdio.FILE)(unsafe.Pointer(f)).F_fileno = fd } -func (f file) err() bool { return (*stdio.FILE)(unsafe.Pointer(f)).F_flags2&stdio.X_IO_ERR_SEEN != 0 } -func (f file) setErr() { (*stdio.FILE)(unsafe.Pointer(f)).F_flags2 |= stdio.X_IO_ERR_SEEN } - -func (f file) close(t *TLS) int32 { - r := Xclose(t, f.fd()) - Xfree(t, uintptr(f)) - if r < 0 { - return stdio.EOF - } - return 0 -} - -func newFile(t *TLS, fd int32) uintptr { - p := Xcalloc(t, 1, types.Size_t(unsafe.Sizeof(stdio.FILE{}))) - if p == 0 { - return 0 - } - - file(p).setFd(fd) - return p -} - -func fwrite(fd int32, b []byte) (int, error) { - if fd == unistd.STDOUT_FILENO { - return write(b) - } - - // if dmesgs { - // dmesg("%v: fd %v: %s", origin(1), fd, b) - // } - return unix.Write(int(fd), b) //TODO use Xwrite -} - -// int fprintf(FILE *stream, const char *format, ...); -func Xfprintf(t *TLS, stream, format, args uintptr) int32 { - n, _ := fwrite((*stdio.FILE)(unsafe.Pointer(stream)).F_fileno, printf(format, args)) - return int32(n) -} - -// int usleep(useconds_t usec); -func Xusleep(t *TLS, usec types.X__useconds_t) int32 { - time.Sleep(time.Microsecond * time.Duration(usec)) - return 0 -} - -// int getrusage(int who, struct rusage *usage); -func Xgetrusage(t *TLS, who int32, usage uintptr) int32 { - if _, _, err := unix.Syscall(unix.SYS_GETRUSAGE, uintptr(who), usage, 0); err != 0 { - t.setErrno(err) - return -1 - } - - return 0 -} - -// int lstat(const char *pathname, struct stat *statbuf); -func Xlstat(t *TLS, pathname, statbuf uintptr) int32 { - return Xlstat64(t, pathname, statbuf) -} - -// int stat(const char *pathname, struct stat *statbuf); -func Xstat(t *TLS, pathname, statbuf uintptr) int32 { - return Xstat64(t, pathname, statbuf) -} - -// int chdir(const char *path); -func Xchdir(t *TLS, path uintptr) int32 { - if _, _, err := unix.Syscall(unix.SYS_CHDIR, path, 0, 0); err != 0 { - t.setErrno(err) - return -1 - } - - // if dmesgs { - // dmesg("%v: %q: ok", origin(1), GoString(path)) - // } - return 0 -} - -var localtime ctime.Tm - -// struct tm *localtime(const time_t *timep); -func Xlocaltime(_ *TLS, timep uintptr) uintptr { - loc := time.Local - if r := getenv(Environ(), "TZ"); r != 0 { - zone, off := parseZone(GoString(r)) - loc = time.FixedZone(zone, -off) - } - ut := *(*unix.Time_t)(unsafe.Pointer(timep)) - t := time.Unix(int64(ut), 0).In(loc) - localtime.Ftm_sec = int32(t.Second()) - localtime.Ftm_min = int32(t.Minute()) - localtime.Ftm_hour = int32(t.Hour()) - localtime.Ftm_mday = int32(t.Day()) - localtime.Ftm_mon = int32(t.Month() - 1) - localtime.Ftm_year = int32(t.Year() - 1900) - localtime.Ftm_wday = int32(t.Weekday()) - localtime.Ftm_yday = int32(t.YearDay()) - localtime.Ftm_isdst = Bool32(isTimeDST(t)) - return uintptr(unsafe.Pointer(&localtime)) -} - -// struct tm *localtime_r(const time_t *timep, struct tm *result); -func Xlocaltime_r(_ *TLS, timep, result uintptr) uintptr { - loc := time.Local - if r := getenv(Environ(), "TZ"); r != 0 { - zone, off := parseZone(GoString(r)) - loc = time.FixedZone(zone, -off) - } - ut := *(*unix.Time_t)(unsafe.Pointer(timep)) - t := time.Unix(int64(ut), 0).In(loc) - (*ctime.Tm)(unsafe.Pointer(result)).Ftm_sec = int32(t.Second()) - (*ctime.Tm)(unsafe.Pointer(result)).Ftm_min = int32(t.Minute()) - (*ctime.Tm)(unsafe.Pointer(result)).Ftm_hour = int32(t.Hour()) - (*ctime.Tm)(unsafe.Pointer(result)).Ftm_mday = int32(t.Day()) - (*ctime.Tm)(unsafe.Pointer(result)).Ftm_mon = int32(t.Month() - 1) - (*ctime.Tm)(unsafe.Pointer(result)).Ftm_year = int32(t.Year() - 1900) - (*ctime.Tm)(unsafe.Pointer(result)).Ftm_wday = int32(t.Weekday()) - (*ctime.Tm)(unsafe.Pointer(result)).Ftm_yday = int32(t.YearDay()) - (*ctime.Tm)(unsafe.Pointer(result)).Ftm_isdst = Bool32(isTimeDST(t)) - return result -} - -// int open(const char *pathname, int flags, ...); -func Xopen(t *TLS, pathname uintptr, flags int32, args uintptr) int32 { - return Xopen64(t, pathname, flags, args) -} - -// int open(const char *pathname, int flags, ...); -func Xopen64(t *TLS, pathname uintptr, flags int32, args uintptr) int32 { - //TODO- flags |= fcntl.O_LARGEFILE - var mode types.Mode_t - if args != 0 { - mode = (types.Mode_t)(VaUint32(&args)) - } - fdcwd := fcntl.AT_FDCWD - n, _, err := unix.Syscall6(unix.SYS_OPENAT, uintptr(fdcwd), pathname, uintptr(flags|unix.O_LARGEFILE), uintptr(mode), 0, 0) - if err != 0 { - // if dmesgs { - // dmesg("%v: %q %#x: %v", origin(1), GoString(pathname), flags, err) - // } - t.setErrno(err) - return -1 - } - - // if dmesgs { - // dmesg("%v: %q flags %#x mode %#o: fd %v", origin(1), GoString(pathname), flags, mode, n) - // } - return int32(n) -} - -// int openat(int dirfd, const char *pathname, int flags, mode_t mode); -func Xopenat(t *TLS, dirfd int32, pathname uintptr, flags int32, mode types.Mode_t) int32 { - // From golang.org/x/sys/unix/zsyscall_linux.go - fd, _, err := unix.Syscall6(unix.SYS_OPENAT, uintptr(dirfd), pathname, uintptr(flags), uintptr(mode), 0, 0) - if err != 0 { - t.setErrno(err) - return -1 - } - - return int32(fd) -} - -// off_t lseek(int fd, off_t offset, int whence); -func Xlseek(t *TLS, fd int32, offset types.Off_t, whence int32) types.Off_t { - return types.Off_t(Xlseek64(t, fd, offset, whence)) -} - -func whenceStr(whence int32) string { - switch whence { - case fcntl.SEEK_CUR: - return "SEEK_CUR" - case fcntl.SEEK_END: - return "SEEK_END" - case fcntl.SEEK_SET: - return "SEEK_SET" - default: - return fmt.Sprintf("whence(%d)", whence) - } -} - -var fsyncStatbuf stat.Stat - -// int fsync(int fd); -func Xfsync(t *TLS, fd int32) int32 { - if noFsync { - // Simulate -DSQLITE_NO_SYNC for sqlite3 testfixture, see function full_sync in sqlite3.c - return Xfstat(t, fd, uintptr(unsafe.Pointer(&fsyncStatbuf))) - } - - if _, _, err := unix.Syscall(unix.SYS_FSYNC, uintptr(fd), 0, 0); err != 0 { - t.setErrno(err) - return -1 - } - - // if dmesgs { - // dmesg("%v: %d: ok", origin(1), fd) - // } - return 0 -} - -// long sysconf(int name); -func Xsysconf(t *TLS, name int32) long { - switch name { - case unistd.X_SC_PAGESIZE: - return long(unix.Getpagesize()) - case unistd.X_SC_GETPW_R_SIZE_MAX: - return -1 - case unistd.X_SC_GETGR_R_SIZE_MAX: - return -1 - case unistd.X_SC_NPROCESSORS_ONLN: - return long(runtime.NumCPU()) - } - - panic(todo("", name)) -} - -// int close(int fd); -func Xclose(t *TLS, fd int32) int32 { - if _, _, err := unix.Syscall(unix.SYS_CLOSE, uintptr(fd), 0, 0); err != 0 { - t.setErrno(err) - return -1 - } - - // if dmesgs { - // dmesg("%v: %d: ok", origin(1), fd) - // } - return 0 -} - -// char *getcwd(char *buf, size_t size); -func Xgetcwd(t *TLS, buf uintptr, size types.Size_t) uintptr { - n, _, err := unix.Syscall(unix.SYS_GETCWD, buf, uintptr(size), 0) - if err != 0 { - t.setErrno(err) - return 0 - } - - // if dmesgs { - // dmesg("%v: %q: ok", origin(1), GoString(buf)) - // } - return n -} - -// int fstat(int fd, struct stat *statbuf); -func Xfstat(t *TLS, fd int32, statbuf uintptr) int32 { - return Xfstat64(t, fd, statbuf) -} - -// int ftruncate(int fd, off_t length); -func Xftruncate(t *TLS, fd int32, length types.Off_t) int32 { - return Xftruncate64(t, fd, length) -} - -// int fcntl(int fd, int cmd, ... /* arg */ ); -func Xfcntl(t *TLS, fd, cmd int32, args uintptr) int32 { - return Xfcntl64(t, fd, cmd, args) -} - -// ssize_t read(int fd, void *buf, size_t count); -func Xread(t *TLS, fd int32, buf uintptr, count types.Size_t) types.Ssize_t { - n, _, err := unix.Syscall(unix.SYS_READ, uintptr(fd), buf, uintptr(count)) - if err != 0 { - t.setErrno(err) - return -1 - } - - // if dmesgs { - // // dmesg("%v: %d %#x: %#x\n%s", origin(1), fd, count, n, hex.Dump(GoBytes(buf, int(n)))) - // dmesg("%v: %d %#x: %#x", origin(1), fd, count, n) - // } - return types.Ssize_t(n) -} - -// ssize_t write(int fd, const void *buf, size_t count); -func Xwrite(t *TLS, fd int32, buf uintptr, count types.Size_t) types.Ssize_t { - const retry = 5 - var err syscall.Errno - for i := 0; i < retry; i++ { - var n uintptr - switch n, _, err = unix.Syscall(unix.SYS_WRITE, uintptr(fd), buf, uintptr(count)); err { - case 0: - // if dmesgs { - // // dmesg("%v: %d %#x: %#x\n%s", origin(1), fd, count, n, hex.Dump(GoBytes(buf, int(n)))) - // dmesg("%v: %d %#x: %#x", origin(1), fd, count, n) - // } - return types.Ssize_t(n) - case errno.EAGAIN: - // nop - } - } - - // if dmesgs { - // dmesg("%v: fd %v, count %#x: %v", origin(1), fd, count, err) - // } - t.setErrno(err) - return -1 -} - -// int fchmod(int fd, mode_t mode); -func Xfchmod(t *TLS, fd int32, mode types.Mode_t) int32 { - if _, _, err := unix.Syscall(unix.SYS_FCHMOD, uintptr(fd), uintptr(mode), 0); err != 0 { - t.setErrno(err) - return -1 - } - - // if dmesgs { - // dmesg("%v: %d %#o: ok", origin(1), fd, mode) - // } - return 0 -} - -// int fchmodat(int dirfd, const char *pathname, mode_t mode, int flags); -func Xfchmodat(t *TLS, dirfd int32, pathname uintptr, mode types.Mode_t, flags int32) int32 { - // From golang.org/x/sys/unix/syscall_linux.go - // Linux fchmodat doesn't support the flags parameter. Mimick glibc's behavior - // and check the flags. Otherwise the mode would be applied to the symlink - // destination which is not what the user expects. - if flags&^unix.AT_SYMLINK_NOFOLLOW != 0 { - t.setErrno(unix.EINVAL) - return -1 - } else if flags&unix.AT_SYMLINK_NOFOLLOW != 0 { - t.setErrno(unix.EOPNOTSUPP) - return -1 - } - - // From golang.org/x/sys/unix/zsyscall_linux.go - if _, _, err := unix.Syscall(unix.SYS_FCHMODAT, uintptr(dirfd), pathname, uintptr(mode)); err != 0 { - t.setErrno(err) - return -1 - } - - return 0 -} - -// int fchown(int fd, uid_t owner, gid_t group); -func Xfchown(t *TLS, fd int32, owner types.Uid_t, group types.Gid_t) int32 { - if _, _, err := unix.Syscall(unix.SYS_FCHOWN, uintptr(fd), uintptr(owner), uintptr(group)); err != 0 { - t.setErrno(err) - return -1 - } - - return 0 -} - -// uid_t geteuid(void); -func Xgeteuid(t *TLS) types.Uid_t { - n, _, _ := unix.Syscall(unix.SYS_GETEUID, 0, 0, 0) - return types.Uid_t(n) -} - -// int munmap(void *addr, size_t length); -func Xmunmap(t *TLS, addr uintptr, length types.Size_t) int32 { - if _, _, err := unix.Syscall(unix.SYS_MUNMAP, addr, uintptr(length), 0); err != 0 { - t.setErrno(err) - return -1 - } - - return 0 -} - -// int gettimeofday(struct timeval *tv, struct timezone *tz); -func Xgettimeofday(t *TLS, tv, tz uintptr) int32 { - if tz != 0 { - panic(todo("")) - } - - var tvs unix.Timeval - err := unix.Gettimeofday(&tvs) - if err != nil { - t.setErrno(err) - return -1 - } - - *(*unix.Timeval)(unsafe.Pointer(tv)) = tvs - return 0 -} - -// int getsockopt(int sockfd, int level, int optname, void *optval, socklen_t *optlen); -func Xgetsockopt(t *TLS, sockfd, level, optname int32, optval, optlen uintptr) int32 { - if _, _, err := unix.Syscall6(unix.SYS_GETSOCKOPT, uintptr(sockfd), uintptr(level), uintptr(optname), optval, optlen, 0); err != 0 { - t.setErrno(err) - return -1 - } - - return 0 -} - -// int setsockopt(int sockfd, int level, int optname, const void *optval, socklen_t optlen); -func Xsetsockopt(t *TLS, sockfd, level, optname int32, optval uintptr, optlen socket.Socklen_t) int32 { - if _, _, err := unix.Syscall6(unix.SYS_SETSOCKOPT, uintptr(sockfd), uintptr(level), uintptr(optname), optval, uintptr(optlen), 0); err != 0 { - t.setErrno(err) - return -1 - } - - return 0 -} - -// int ioctl(int fd, unsigned long request, ...); -func Xioctl(t *TLS, fd int32, request ulong, va uintptr) int32 { - var argp uintptr - if va != 0 { - argp = VaUintptr(&va) - } - n, _, err := unix.Syscall(unix.SYS_IOCTL, uintptr(fd), uintptr(request), argp) - if err != 0 { - t.setErrno(err) - return -1 - } - - return int32(n) -} - -// int getsockname(int sockfd, struct sockaddr *addr, socklen_t *addrlen); -func Xgetsockname(t *TLS, sockfd int32, addr, addrlen uintptr) int32 { - if _, _, err := unix.Syscall(unix.SYS_GETSOCKNAME, uintptr(sockfd), addr, addrlen); err != 0 { - // if dmesgs { - // dmesg("%v: fd %v: %v", origin(1), sockfd, err) - // } - t.setErrno(err) - return -1 - } - - return 0 -} - -// int select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout); -func Xselect(t *TLS, nfds int32, readfds, writefds, exceptfds, timeout uintptr) int32 { - n, err := unix.Select( - int(nfds), - (*unix.FdSet)(unsafe.Pointer(readfds)), - (*unix.FdSet)(unsafe.Pointer(writefds)), - (*unix.FdSet)(unsafe.Pointer(exceptfds)), - (*unix.Timeval)(unsafe.Pointer(timeout)), - ) - if err != nil { - t.setErrno(err) - return -1 - } - - return int32(n) -} - -// int mkfifo(const char *pathname, mode_t mode); -func Xmkfifo(t *TLS, pathname uintptr, mode types.Mode_t) int32 { - if err := unix.Mkfifo(GoString(pathname), mode); err != nil { - t.setErrno(err) - return -1 - } - - return 0 -} - -// mode_t umask(mode_t mask); -func Xumask(t *TLS, mask types.Mode_t) types.Mode_t { - n, _, _ := unix.Syscall(unix.SYS_UMASK, uintptr(mask), 0, 0) - return types.Mode_t(n) -} - -// int execvp(const char *file, char *const argv[]); -func Xexecvp(t *TLS, file, argv uintptr) int32 { - if _, _, err := unix.Syscall(unix.SYS_EXECVE, file, argv, Environ()); err != 0 { - t.setErrno(err) - return -1 - } - - return 0 -} - -// pid_t waitpid(pid_t pid, int *wstatus, int options); -func Xwaitpid(t *TLS, pid types.Pid_t, wstatus uintptr, optname int32) types.Pid_t { - n, _, err := unix.Syscall6(unix.SYS_WAIT4, uintptr(pid), wstatus, uintptr(optname), 0, 0, 0) - if err != 0 { - t.setErrno(err) - return -1 - } - - return types.Pid_t(n) -} - -// int uname(struct utsname *buf); -func Xuname(t *TLS, buf uintptr) int32 { - if _, _, err := unix.Syscall(unix.SYS_UNAME, buf, 0, 0); err != 0 { - t.setErrno(err) - return -1 - } - - return 0 -} - -// ssize_t recv(int sockfd, void *buf, size_t len, int flags); -func Xrecv(t *TLS, sockfd int32, buf uintptr, len types.Size_t, flags int32) types.Ssize_t { - n, _, err := unix.Syscall6(unix.SYS_RECVFROM, uintptr(sockfd), buf, uintptr(len), uintptr(flags), 0, 0) - if err != 0 { - t.setErrno(err) - return -1 - } - - return types.Ssize_t(n) -} - -// ssize_t send(int sockfd, const void *buf, size_t len, int flags); -func Xsend(t *TLS, sockfd int32, buf uintptr, len types.Size_t, flags int32) types.Ssize_t { - n, _, err := unix.Syscall6(unix.SYS_SENDTO, uintptr(sockfd), buf, uintptr(len), uintptr(flags), 0, 0) - if err != 0 { - t.setErrno(err) - return -1 - } - - return types.Ssize_t(n) -} - -// int shutdown(int sockfd, int how); -func Xshutdown(t *TLS, sockfd, how int32) int32 { - if _, _, err := unix.Syscall(unix.SYS_SHUTDOWN, uintptr(sockfd), uintptr(how), 0); err != 0 { - t.setErrno(err) - return -1 - } - - return 0 -} - -// int getpeername(int sockfd, struct sockaddr *addr, socklen_t *addrlen); -func Xgetpeername(t *TLS, sockfd int32, addr uintptr, addrlen uintptr) int32 { - if _, _, err := unix.Syscall(unix.SYS_GETPEERNAME, uintptr(sockfd), addr, uintptr(addrlen)); err != 0 { - t.setErrno(err) - return -1 - } - - return 0 -} - -// int socket(int domain, int type, int protocol); -func Xsocket(t *TLS, domain, type1, protocol int32) int32 { - n, _, err := unix.Syscall(unix.SYS_SOCKET, uintptr(domain), uintptr(type1), uintptr(protocol)) - if err != 0 { - t.setErrno(err) - return -1 - } - - return int32(n) -} - -// int bind(int sockfd, const struct sockaddr *addr, socklen_t addrlen); -func Xbind(t *TLS, sockfd int32, addr uintptr, addrlen uint32) int32 { - n, _, err := unix.Syscall(unix.SYS_BIND, uintptr(sockfd), addr, uintptr(addrlen)) - if err != 0 { - t.setErrno(err) - return -1 - } - - return int32(n) -} - -// int connect(int sockfd, const struct sockaddr *addr, socklen_t addrlen); -func Xconnect(t *TLS, sockfd int32, addr uintptr, addrlen uint32) int32 { - if _, _, err := unix.Syscall(unix.SYS_CONNECT, uintptr(sockfd), addr, uintptr(addrlen)); err != 0 { - t.setErrno(err) - return -1 - } - - return 0 -} - -// int listen(int sockfd, int backlog); -func Xlisten(t *TLS, sockfd, backlog int32) int32 { - if _, _, err := unix.Syscall(unix.SYS_LISTEN, uintptr(sockfd), uintptr(backlog), 0); err != 0 { - t.setErrno(err) - return -1 - } - - return 0 -} - -// int accept(int sockfd, struct sockaddr *addr, socklen_t *addrlen); -func Xaccept(t *TLS, sockfd int32, addr uintptr, addrlen uintptr) int32 { - n, _, err := unix.Syscall6(unix.SYS_ACCEPT4, uintptr(sockfd), addr, uintptr(addrlen), 0, 0, 0) - if err != 0 { - t.setErrno(err) - return -1 - } - - return int32(n) -} - -// int getrlimit(int resource, struct rlimit *rlim); -func Xgetrlimit(t *TLS, resource int32, rlim uintptr) int32 { - return Xgetrlimit64(t, resource, rlim) -} - -// int setrlimit(int resource, const struct rlimit *rlim); -func Xsetrlimit(t *TLS, resource int32, rlim uintptr) int32 { - return Xsetrlimit64(t, resource, rlim) -} - -// int setrlimit(int resource, const struct rlimit *rlim); -func Xsetrlimit64(t *TLS, resource int32, rlim uintptr) int32 { - if _, _, err := unix.Syscall(unix.SYS_SETRLIMIT, uintptr(resource), uintptr(rlim), 0); err != 0 { - t.setErrno(err) - return -1 - } - - return 0 -} - -// uid_t getuid(void); -func Xgetuid(t *TLS) types.Uid_t { - return types.Uid_t(os.Getuid()) -} - -// pid_t getpid(void); -func Xgetpid(t *TLS) int32 { - return int32(os.Getpid()) -} - -// int system(const char *command); -func Xsystem(t *TLS, command uintptr) int32 { - s := GoString(command) - if command == 0 { - panic(todo("")) - } - - cmd := exec.Command("sh", "-c", s) - cmd.Stdout = os.Stdout - cmd.Stderr = os.Stderr - err := cmd.Run() - if err != nil { - ps := err.(*exec.ExitError) - return int32(ps.ExitCode()) - } - - return 0 -} - -// int setvbuf(FILE *stream, char *buf, int mode, size_t size); -func Xsetvbuf(t *TLS, stream, buf uintptr, mode int32, size types.Size_t) int32 { - return 0 //TODO -} - -// int raise(int sig); -func Xraise(t *TLS, sig int32) int32 { - panic(todo("")) -} - -// int backtrace(void **buffer, int size); -func Xbacktrace(t *TLS, buf uintptr, size int32) int32 { - panic(todo("")) -} - -// void backtrace_symbols_fd(void *const *buffer, int size, int fd); -func Xbacktrace_symbols_fd(t *TLS, buffer uintptr, size, fd int32) { - panic(todo("")) -} - -// int fileno(FILE *stream); -func Xfileno(t *TLS, stream uintptr) int32 { - if stream == 0 { - t.setErrno(errno.EBADF) - return -1 - } - - if fd := (*stdio.FILE)(unsafe.Pointer(stream)).F_fileno; fd >= 0 { - return fd - } - - t.setErrno(errno.EBADF) - return -1 -} - -func newFtsent(t *TLS, info int, path string, stat *unix.Stat_t, err syscall.Errno) (r *fts.FTSENT) { - var statp uintptr - if stat != nil { - statp = Xmalloc(t, types.Size_t(unsafe.Sizeof(unix.Stat_t{}))) - if statp == 0 { - panic("OOM") - } - - *(*unix.Stat_t)(unsafe.Pointer(statp)) = *stat - } - csp, errx := CString(path) - if errx != nil { - panic("OOM") - } - - return &fts.FTSENT{ - Ffts_info: uint16(info), - Ffts_path: csp, - Ffts_pathlen: uint16(len(path)), - Ffts_statp: statp, - Ffts_errno: int32(err), - } -} - -func newCFtsent(t *TLS, info int, path string, stat *unix.Stat_t, err syscall.Errno) uintptr { - p := Xcalloc(t, 1, types.Size_t(unsafe.Sizeof(fts.FTSENT{}))) - if p == 0 { - panic("OOM") - } - - *(*fts.FTSENT)(unsafe.Pointer(p)) = *newFtsent(t, info, path, stat, err) - return p -} - -func ftsentClose(t *TLS, p uintptr) { - Xfree(t, (*fts.FTSENT)(unsafe.Pointer(p)).Ffts_path) - Xfree(t, (*fts.FTSENT)(unsafe.Pointer(p)).Ffts_statp) -} - -type ftstream struct { - s []uintptr - x int -} - -func (f *ftstream) close(t *TLS) { - for _, p := range f.s { - ftsentClose(t, p) - Xfree(t, p) - } - *f = ftstream{} -} - -// FTS *fts_open(char * const *path_argv, int options, int (*compar)(const FTSENT **, const FTSENT **)); -func Xfts_open(t *TLS, path_argv uintptr, options int32, compar uintptr) uintptr { - return Xfts64_open(t, path_argv, options, compar) -} - -// FTS *fts_open(char * const *path_argv, int options, int (*compar)(const FTSENT **, const FTSENT **)); -func Xfts64_open(t *TLS, path_argv uintptr, options int32, compar uintptr) uintptr { - f := &ftstream{} - - var walk func(string) - walk = func(path string) { - var fi os.FileInfo - var err error - switch { - case options&fts.FTS_LOGICAL != 0: - fi, err = os.Stat(path) - case options&fts.FTS_PHYSICAL != 0: - fi, err = os.Lstat(path) - default: - panic(todo("")) - } - - if err != nil { - return - } - - var statp *unix.Stat_t - if options&fts.FTS_NOSTAT == 0 { - var stat unix.Stat_t - switch { - case options&fts.FTS_LOGICAL != 0: - if err := unix.Stat(path, &stat); err != nil { - panic(todo("")) - } - case options&fts.FTS_PHYSICAL != 0: - if err := unix.Lstat(path, &stat); err != nil { - panic(todo("")) - } - default: - panic(todo("")) - } - - statp = &stat - } - - out: - switch { - case fi.IsDir(): - f.s = append(f.s, newCFtsent(t, fts.FTS_D, path, statp, 0)) - g, err := os.Open(path) - switch x := err.(type) { - case nil: - // ok - case *os.PathError: - f.s = append(f.s, newCFtsent(t, fts.FTS_DNR, path, statp, errno.EACCES)) - break out - default: - panic(todo("%q: %v %T", path, x, x)) - } - - names, err := g.Readdirnames(-1) - g.Close() - if err != nil { - panic(todo("")) - } - - for _, name := range names { - walk(path + "/" + name) - if f == nil { - break out - } - } - - f.s = append(f.s, newCFtsent(t, fts.FTS_DP, path, statp, 0)) - default: - info := fts.FTS_F - if fi.Mode()&os.ModeSymlink != 0 { - info = fts.FTS_SL - } - switch { - case statp != nil: - f.s = append(f.s, newCFtsent(t, info, path, statp, 0)) - case options&fts.FTS_NOSTAT != 0: - f.s = append(f.s, newCFtsent(t, fts.FTS_NSOK, path, nil, 0)) - default: - panic(todo("")) - } - } - } - - for { - p := *(*uintptr)(unsafe.Pointer(path_argv)) - if p == 0 { - if f == nil { - return 0 - } - - if compar != 0 { - panic(todo("")) - } - - return addObject(f) - } - - walk(GoString(p)) - path_argv += unsafe.Sizeof(uintptr(0)) - } -} - -// FTSENT *fts_read(FTS *ftsp); -func Xfts_read(t *TLS, ftsp uintptr) uintptr { - return Xfts64_read(t, ftsp) -} - -// FTSENT *fts_read(FTS *ftsp); -func Xfts64_read(t *TLS, ftsp uintptr) uintptr { - f := getObject(ftsp).(*ftstream) - if f.x == len(f.s) { - t.setErrno(0) - return 0 - } - - r := f.s[f.x] - if e := (*fts.FTSENT)(unsafe.Pointer(r)).Ffts_errno; e != 0 { - t.setErrno(e) - } - f.x++ - return r -} - -// int fts_close(FTS *ftsp); -func Xfts_close(t *TLS, ftsp uintptr) int32 { - return Xfts64_close(t, ftsp) -} - -// int fts_close(FTS *ftsp); -func Xfts64_close(t *TLS, ftsp uintptr) int32 { - getObject(ftsp).(*ftstream).close(t) - removeObject(ftsp) - return 0 -} - -// void tzset (void); -func Xtzset(t *TLS) { - //TODO -} - -var strerrorBuf [100]byte - -// char *strerror(int errnum); -func Xstrerror(t *TLS, errnum int32) uintptr { - if dmesgs { - dmesg("%v: %v\n%s", origin(1), errnum, debug.Stack()) - } - copy(strerrorBuf[:], fmt.Sprintf("strerror(%d)\x00", errnum)) - return uintptr(unsafe.Pointer(&strerrorBuf[0])) -} - -// void *dlopen(const char *filename, int flags); -func Xdlopen(t *TLS, filename uintptr, flags int32) uintptr { - panic(todo("%q", GoString(filename))) -} - -// char *dlerror(void); -func Xdlerror(t *TLS) uintptr { - panic(todo("")) -} - -// int dlclose(void *handle); -func Xdlclose(t *TLS, handle uintptr) int32 { - panic(todo("")) -} - -// void *dlsym(void *handle, const char *symbol); -func Xdlsym(t *TLS, handle, symbol uintptr) uintptr { - panic(todo("")) -} - -// void perror(const char *s); -func Xperror(t *TLS, s uintptr) { - panic(todo("")) -} - -// int pclose(FILE *stream); -func Xpclose(t *TLS, stream uintptr) int32 { - panic(todo("")) -} - -var gai_strerrorBuf [100]byte - -// const char *gai_strerror(int errcode); -func Xgai_strerror(t *TLS, errcode int32) uintptr { - copy(gai_strerrorBuf[:], fmt.Sprintf("gai error %d\x00", errcode)) - return uintptr(unsafe.Pointer(&gai_strerrorBuf)) -} - -// int tcgetattr(int fd, struct termios *termios_p); -func Xtcgetattr(t *TLS, fd int32, termios_p uintptr) int32 { - panic(todo("")) -} - -// int tcsetattr(int fd, int optional_actions, const struct termios *termios_p); -func Xtcsetattr(t *TLS, fd, optional_actions int32, termios_p uintptr) int32 { - panic(todo("")) -} - -// speed_t cfgetospeed(const struct termios *termios_p); -func Xcfgetospeed(t *TLS, termios_p uintptr) termios.Speed_t { - panic(todo("")) -} - -// int cfsetospeed(struct termios *termios_p, speed_t speed); -func Xcfsetospeed(t *TLS, termios_p uintptr, speed uint32) int32 { - panic(todo("")) -} - -// int cfsetispeed(struct termios *termios_p, speed_t speed); -func Xcfsetispeed(t *TLS, termios_p uintptr, speed uint32) int32 { - panic(todo("")) -} - -// pid_t fork(void); -func Xfork(t *TLS) int32 { - t.setErrno(errno.ENOSYS) - return -1 -} - -var emptyStr = [1]byte{} - -// char *setlocale(int category, const char *locale); -func Xsetlocale(t *TLS, category int32, locale uintptr) uintptr { - return uintptr(unsafe.Pointer(&emptyStr)) //TODO -} - -// char *nl_langinfo(nl_item item); -func Xnl_langinfo(t *TLS, item langinfo.Nl_item) uintptr { - return uintptr(unsafe.Pointer(&emptyStr)) //TODO -} - -// FILE *popen(const char *command, const char *type); -func Xpopen(t *TLS, command, type1 uintptr) uintptr { - panic(todo("")) -} - -// char *realpath(const char *path, char *resolved_path); -func Xrealpath(t *TLS, path, resolved_path uintptr) uintptr { - s, err := filepath.EvalSymlinks(GoString(path)) - if err != nil { - if os.IsNotExist(err) { - // if dmesgs { - // dmesg("%v: %q: %v", origin(1), GoString(path), err) - // } - t.setErrno(errno.ENOENT) - return 0 - } - - panic(todo("", err)) - } - - if resolved_path == 0 { - panic(todo("")) - } - - if len(s) >= limits.PATH_MAX { - s = s[:limits.PATH_MAX-1] - } - - copy((*RawMem)(unsafe.Pointer(resolved_path))[:len(s):len(s)], s) - (*RawMem)(unsafe.Pointer(resolved_path))[len(s)] = 0 - return resolved_path -} - -// struct tm *gmtime_r(const time_t *timep, struct tm *result); -func Xgmtime_r(t *TLS, timep, result uintptr) uintptr { - panic(todo("")) -} - -// char *inet_ntoa(struct in_addr in); -func Xinet_ntoa(t *TLS, in1 in.In_addr) uintptr { - panic(todo("")) -} - -func X__ccgo_in6addr_anyp(t *TLS) uintptr { - return uintptr(unsafe.Pointer(&in6_addr_any)) -} - -func Xabort(t *TLS) { - // if dmesgs { - // dmesg("%v:\n%s", origin(1), debug.Stack()) - // } - p := Xmalloc(t, types.Size_t(unsafe.Sizeof(signal.Sigaction{}))) - if p == 0 { - panic("OOM") - } - - *(*signal.Sigaction)(unsafe.Pointer(p)) = signal.Sigaction{ - F__sigaction_handler: struct{ Fsa_handler signal.X__sighandler_t }{Fsa_handler: signal.SIG_DFL}, - } - Xsigaction(t, signal.SIGABRT, p, 0) - Xfree(t, p) - unix.Kill(unix.Getpid(), syscall.Signal(signal.SIGABRT)) - panic(todo("unrechable")) -} - -// int fflush(FILE *stream); -func Xfflush(t *TLS, stream uintptr) int32 { - return 0 //TODO -} - -// size_t fread(void *ptr, size_t size, size_t nmemb, FILE *stream); -func Xfread(t *TLS, ptr uintptr, size, nmemb types.Size_t, stream uintptr) types.Size_t { - m, _, err := unix.Syscall(unix.SYS_READ, uintptr(file(stream).fd()), ptr, uintptr(size*nmemb)) - if err != 0 { - file(stream).setErr() - return 0 - } - - // if dmesgs { - // // dmesg("%v: %d %#x x %#x: %#x\n%s", origin(1), file(stream).fd(), size, nmemb, types.Size_t(m)/size, hex.Dump(GoBytes(ptr, int(m)))) - // dmesg("%v: %d %#x x %#x: %#x", origin(1), file(stream).fd(), size, nmemb, types.Size_t(m)/size) - // } - return types.Size_t(m) / size -} - -// size_t fwrite(const void *ptr, size_t size, size_t nmemb, FILE *stream); -func Xfwrite(t *TLS, ptr uintptr, size, nmemb types.Size_t, stream uintptr) types.Size_t { - m, _, err := unix.Syscall(unix.SYS_WRITE, uintptr(file(stream).fd()), ptr, uintptr(size*nmemb)) - if err != 0 { - file(stream).setErr() - return 0 - } - - // if dmesgs { - // // dmesg("%v: %d %#x x %#x: %#x\n%s", origin(1), file(stream).fd(), size, nmemb, types.Size_t(m)/size, hex.Dump(GoBytes(ptr, int(m)))) - // dmesg("%v: %d %#x x %#x: %#x", origin(1), file(stream).fd(), size, nmemb, types.Size_t(m)/size) - // } - return types.Size_t(m) / size -} - -// int fclose(FILE *stream); -func Xfclose(t *TLS, stream uintptr) int32 { - return file(stream).close(t) -} - -// int fputc(int c, FILE *stream); -func Xfputc(t *TLS, c int32, stream uintptr) int32 { - if _, err := fwrite(file(stream).fd(), []byte{byte(c)}); err != nil { - return stdio.EOF - } - - return int32(byte(c)) -} - -// int fseek(FILE *stream, long offset, int whence); -func Xfseek(t *TLS, stream uintptr, offset long, whence int32) int32 { - if n := Xlseek(t, int32(file(stream).fd()), types.Off_t(offset), whence); n < 0 { - // if dmesgs { - // dmesg("%v: fd %v, off %#x, whence %v: %v", origin(1), file(stream).fd(), offset, whenceStr(whence), n) - // } - file(stream).setErr() - return -1 - } - - // if dmesgs { - // dmesg("%v: fd %v, off %#x, whence %v: ok", origin(1), file(stream).fd(), offset, whenceStr(whence)) - // } - return 0 -} - -// long ftell(FILE *stream); -func Xftell(t *TLS, stream uintptr) long { - n := Xlseek(t, file(stream).fd(), 0, stdio.SEEK_CUR) - if n < 0 { - file(stream).setErr() - return -1 - } - - // if dmesgs { - // dmesg("%v: fd %v, n %#x: ok %#x", origin(1), file(stream).fd(), n, long(n)) - // } - return long(n) -} - -// int ferror(FILE *stream); -func Xferror(t *TLS, stream uintptr) int32 { - return Bool32(file(stream).err()) -} - -// int ungetc(int c, FILE *stream); -func Xungetc(t *TLS, c int32, stream uintptr) int32 { - panic(todo("")) -} - -// int fscanf(FILE *stream, const char *format, ...); -func Xfscanf(t *TLS, stream, format, va uintptr) int32 { - panic(todo("")) -} - -// int fputs(const char *s, FILE *stream); -func Xfputs(t *TLS, s, stream uintptr) int32 { - if _, _, err := unix.Syscall(unix.SYS_WRITE, uintptr(file(stream).fd()), s, uintptr(Xstrlen(t, s))); err != 0 { - return -1 - } - - return 0 -} - -var getservbynameStaticResult netdb.Servent - -// struct servent *getservbyname(const char *name, const char *proto); -func Xgetservbyname(t *TLS, name, proto uintptr) uintptr { - var protoent *gonetdb.Protoent - if proto != 0 { - protoent = gonetdb.GetProtoByName(GoString(proto)) - } - servent := gonetdb.GetServByName(GoString(name), protoent) - if servent == nil { - // if dmesgs { - // dmesg("%q %q: nil (protoent %+v)", GoString(name), GoString(proto), protoent) - // } - return 0 - } - - Xfree(t, (*netdb.Servent)(unsafe.Pointer(&getservbynameStaticResult)).Fs_name) - if v := (*netdb.Servent)(unsafe.Pointer(&getservbynameStaticResult)).Fs_aliases; v != 0 { - for { - p := *(*uintptr)(unsafe.Pointer(v)) - if p == 0 { - break - } - - Xfree(t, p) - v += unsafe.Sizeof(uintptr(0)) - } - Xfree(t, v) - } - Xfree(t, (*netdb.Servent)(unsafe.Pointer(&getservbynameStaticResult)).Fs_proto) - cname, err := CString(servent.Name) - if err != nil { - getservbynameStaticResult = netdb.Servent{} - return 0 - } - - var protoname uintptr - if protoent != nil { - if protoname, err = CString(protoent.Name); err != nil { - Xfree(t, cname) - getservbynameStaticResult = netdb.Servent{} - return 0 - } - } - var a []uintptr - for _, v := range servent.Aliases { - cs, err := CString(v) - if err != nil { - for _, v := range a { - Xfree(t, v) - } - return 0 - } - - a = append(a, cs) - } - v := Xcalloc(t, types.Size_t(len(a)+1), types.Size_t(unsafe.Sizeof(uintptr(0)))) - if v == 0 { - Xfree(t, cname) - Xfree(t, protoname) - for _, v := range a { - Xfree(t, v) - } - getservbynameStaticResult = netdb.Servent{} - return 0 - } - for _, p := range a { - *(*uintptr)(unsafe.Pointer(v)) = p - v += unsafe.Sizeof(uintptr(0)) - } - - getservbynameStaticResult = netdb.Servent{ - Fs_name: cname, - Fs_aliases: v, - Fs_port: int32(servent.Port), - Fs_proto: protoname, - } - return uintptr(unsafe.Pointer(&getservbynameStaticResult)) -} - -func Xreaddir64(t *TLS, dir uintptr) uintptr { - return Xreaddir(t, dir) -} - -func __syscall(r, _ uintptr, errno syscall.Errno) long { - if errno != 0 { - return long(-errno) - } - - return long(r) -} - -func X__syscall1(t *TLS, trap, p1 long) long { - return __syscall(unix.Syscall(uintptr(trap), uintptr(p1), 0, 0)) -} - -func X__syscall3(t *TLS, trap, p1, p2, p3 long) long { - return __syscall(unix.Syscall(uintptr(trap), uintptr(p1), uintptr(p2), uintptr(p3))) -} - -func X__syscall4(t *TLS, trap, p1, p2, p3, p4 long) long { - return __syscall(unix.Syscall6(uintptr(trap), uintptr(p1), uintptr(p2), uintptr(p3), uintptr(p4), 0, 0)) -} - -func fcntlCmdStr(cmd int32) string { - switch cmd { - case fcntl.F_GETOWN: - return "F_GETOWN" - case fcntl.F_SETLK: - return "F_SETLK" - case fcntl.F_GETLK: - return "F_GETLK" - case fcntl.F_SETFD: - return "F_SETFD" - case fcntl.F_GETFD: - return "F_GETFD" - default: - return fmt.Sprintf("cmd(%d)", cmd) - } -} - -// int setenv(const char *name, const char *value, int overwrite); -func Xsetenv(t *TLS, name, value uintptr, overwrite int32) int32 { - panic(todo("")) -} - -// int unsetenv(const char *name); -func Xunsetenv(t *TLS, name uintptr) int32 { - panic(todo("")) -} - -// int pause(void); -func Xpause(t *TLS) int32 { - err := unix.Pause() - if err != nil { - t.setErrno(err) - } - - return -1 -} - -// ssize_t writev(int fd, const struct iovec *iov, int iovcnt); -func Xwritev(t *TLS, fd int32, iov uintptr, iovcnt int32) types.Ssize_t { - // if dmesgs { - // dmesg("%v: fd %v iov %#x iovcnt %v", origin(1), fd, iov, iovcnt) - // } - if iovcnt == 0 { - panic(todo("")) - } - - iovs := make([][]byte, iovcnt) - for ; iovcnt != 0; iovcnt-- { - base := (*unix.Iovec)(unsafe.Pointer(iov)).Base - len := (*unix.Iovec)(unsafe.Pointer(iov)).Len - // if dmesgs { - // dmesg("%v: base %#x len %v", origin(1), base, len) - // } - if base != nil && len != 0 { - iovs = append(iovs, (*RawMem)(unsafe.Pointer(base))[:len:len]) - iov += unsafe.Sizeof(unix.Iovec{}) - } - } - n, err := unix.Writev(int(fd), iovs) - if err != nil { - // if dmesgs { - // dmesg("%v: %v", origin(1), err) - // } - panic(todo("")) - } - - return types.Ssize_t(n) -} - -// int __isoc99_sscanf(const char *str, const char *format, ...); -func X__isoc99_sscanf(t *TLS, str, format, va uintptr) int32 { - r := Xsscanf(t, str, format, va) - // if dmesgs { - // dmesg("%v: %q %q: %d", origin(1), GoString(str), GoString(format), r) - // } - return r -} - -// var ctimeStaticBuf [32]byte -// -// // char *ctime(const time_t *timep); -// func Xctime(t *TLS, timep uintptr) uintptr { -// return Xctime_r(t, timep, uintptr(unsafe.Pointer(&ctimeStaticBuf[0]))) -// } -// -// // char *ctime_r(const time_t *timep, char *buf); -// func Xctime_r(t *TLS, timep, buf uintptr) uintptr { -// ut := *(*unix.Time_t)(unsafe.Pointer(timep)) -// tm := time.Unix(int64(ut), 0).Local() -// s := tm.Format(time.ANSIC) + "\n\x00" -// copy((*RawMem)(unsafe.Pointer(buf))[:26:26], s) -// return buf -// } - -// ssize_t pwrite(int fd, const void *buf, size_t count, off_t offset); -func Xpwrite(t *TLS, fd int32, buf uintptr, count types.Size_t, offset types.Off_t) types.Ssize_t { - var n int - var err error - switch { - case count == 0: - n, err = unix.Pwrite(int(fd), nil, int64(offset)) - default: - n, err = unix.Pwrite(int(fd), (*RawMem)(unsafe.Pointer(buf))[:count:count], int64(offset)) - if dmesgs { - dmesg("%v: fd %v, off %#x, count %#x\n%s", origin(1), fd, offset, count, hex.Dump((*RawMem)(unsafe.Pointer(buf))[:count:count])) - } - } - if err != nil { - if dmesgs { - dmesg("%v: %v FAIL", origin(1), err) - } - t.setErrno(err) - return -1 - } - - if dmesgs { - dmesg("%v: ok", origin(1)) - } - return types.Ssize_t(n) -} - -// int fstatfs(int fd, struct statfs *buf); -func Xfstatfs(t *TLS, fd int32, buf uintptr) int32 { - if err := unix.Fstatfs(int(fd), (*unix.Statfs_t)(unsafe.Pointer(buf))); err != nil { - t.setErrno(err) - return -1 - } - - return 0 -} - -// ssize_t getrandom(void *buf, size_t buflen, unsigned int flags); -func Xgetrandom(t *TLS, buf uintptr, buflen size_t, flags uint32) ssize_t { - n, err := unix.Getrandom((*RawMem)(unsafe.Pointer(buf))[:buflen], int(flags)) - if err != nil { - t.setErrno(err) - return -1 - } - - return ssize_t(n) -} - -// int posix_fadvise(int fd, off_t offset, off_t len, int advice); -func Xposix_fadvise(t *TLS, fd int32, offset, len types.Off_t, advice int32) int32 { - if err := unix.Fadvise(int(fd), int64(offset), int64(len), int(advice)); err != nil { - return int32(err.(unix.Errno)) - } - - return 0 -} - -// int fgetc(FILE *stream); -func Xfgetc(t *TLS, stream uintptr) int32 { - fd := int((*stdio.FILE)(unsafe.Pointer(stream)).F_fileno) - var buf [1]byte - if n, _ := unix.Read(fd, buf[:]); n != 0 { - return int32(buf[0]) - } - - return stdio.EOF -} - -// void uuid_copy(uuid_t dst, uuid_t src); -func Xuuid_copy(t *TLS, dst, src uintptr) { - *(*uuid.Uuid_t)(unsafe.Pointer(dst)) = *(*uuid.Uuid_t)(unsafe.Pointer(src)) -} - -// int uuid_parse( char *in, uuid_t uu); -func Xuuid_parse(t *TLS, in uintptr, uu uintptr) int32 { - r, err := guuid.Parse(GoString(in)) - if err != nil { - return -1 - } - - copy((*RawMem)(unsafe.Pointer(uu))[:unsafe.Sizeof(uuid.Uuid_t{})], r[:]) - return 0 -} - -// int mkdirat(int dirfd, const char *pathname, mode_t mode); -func Xmkdirat(t *TLS, dirfd int32, pathname uintptr, mode types.Mode_t) int32 { - // From golang.org/x/sys/unix/zsyscall_linux.go - if _, _, err := unix.Syscall(unix.SYS_MKDIRAT, uintptr(dirfd), pathname, uintptr(mode)); err != 0 { - t.setErrno(err) - return -1 - } - - return 0 -} - -// int symlinkat(const char *target, int newdirfd, const char *linkpath); -func Xsymlinkat(t *TLS, target uintptr, newdirfd int32, linkpath uintptr) int32 { - // From golang.org/x/sys/unix/zsyscall_linux.go - if _, _, err := unix.Syscall(unix.SYS_SYMLINKAT, target, uintptr(newdirfd), linkpath); err != 0 { - t.setErrno(err) - return -1 - } - - return 0 -} - -// int utimensat(int dirfd, const char *pathname, const struct timespec times[2], int flags); -func Xutimensat(t *TLS, dirfd int32, pathname, times uintptr, flags int32) int32 { - // From golang.org/x/sys/unix/zsyscall_linux.go - if _, _, err := unix.Syscall6(unix.SYS_UTIMENSAT, uintptr(dirfd), pathname, times, uintptr(flags), 0, 0); err != 0 { - t.setErrno(err) - return -1 - } - - return 0 -} - -// int unlinkat(int dirfd, const char *pathname, int flags); -func Xunlinkat(t *TLS, dirfd int32, pathname uintptr, flags int32) int32 { - // From golang.org/x/sys/unix/zsyscall_linux.go - if _, _, err := unix.Syscall(unix.SYS_UNLINKAT, uintptr(dirfd), pathname, uintptr(flags)); err != 0 { - t.setErrno(err) - return -1 - } - - return 0 -} - -// int faccessat(int dirfd, const char *pathname, int mode, int flags); -func Xfaccessat(t *TLS, dirfd int32, pathname uintptr, mode, flags int32) int32 { - // From golang.org/x/sys/unix/zsyscall_linux.go - if _, _, err := unix.Syscall(unix.SYS_FACCESSAT, uintptr(dirfd), pathname, uintptr(mode)); err != 0 { - t.setErrno(err) - return -1 - } - - return 0 -} - -// int renameat2(int olddirfd, const char *oldpath, int newdirfd, const char *newpath, unsigned int flags); -func Xrenameat2(t *TLS, olddirfd int32, oldpath uintptr, newdirfd int32, newpath uintptr, flags int32) int32 { - // From golang.org/x/sys/unix/zsyscall_linux.go - if _, _, err := unix.Syscall6(unix.SYS_RENAMEAT2, uintptr(olddirfd), oldpath, uintptr(newdirfd), newpath, uintptr(flags), 0); err != 0 { - t.setErrno(err) - return -1 - } - - return 0 -} - -// int mknodat(int dirfd, const char *pathname, mode_t mode, dev_t dev); -func Xmknodat(t *TLS, dirfd int32, pathname uintptr, mode types.Mode_t, dev types.Dev_t) int32 { - // From golang.org/x/sys/unix/zsyscall_linux.go - if _, _, err := unix.Syscall6(unix.SYS_MKNODAT, uintptr(dirfd), pathname, uintptr(mode), uintptr(dev), 0, 0); err != 0 { - t.setErrno(err) - return -1 - } - - return 0 -} - -// int fchownat(int dirfd, const char *pathname, uid_t owner, gid_t group, int flags); -func Xfchownat(t *TLS, dirfd int32, pathname uintptr, uid types.Uid_t, gid types.Gid_t, flags int32) int32 { - // From golang.org/x/sys/unix/zsyscall_linux.go - if _, _, err := unix.Syscall6(unix.SYS_FCHOWNAT, uintptr(dirfd), pathname, uintptr(uid), uintptr(gid), uintptr(flags), 0); err != 0 { - t.setErrno(err) - return -1 - } - - return 0 -} - -// int linkat(int olddirfd, const char *oldpath, int newdirfd, const char *newpath, int flags); -func Xlinkat(t *TLS, olddirfd int32, oldpath uintptr, newdirfd int32, newpath uintptr, flags int32) int32 { - // From golang.org/x/sys/unix/zsyscall_linux.go - if _, _, err := unix.Syscall6(unix.SYS_LINKAT, uintptr(olddirfd), oldpath, uintptr(newdirfd), newpath, uintptr(flags), 0); err != 0 { - t.setErrno(err) - return -1 - } - - return 0 -} - -// int pipe2(int pipefd[2], int flags); -func Xpipe2(t *TLS, pipefd uintptr, flags int32) int32 { - // From golang.org/x/sys/unix/zsyscall_linux.go - if _, _, err := unix.Syscall(unix.SYS_PIPE2, pipefd, uintptr(flags), 0); err != 0 { - t.setErrno(t) - return -1 - } - - return 0 -} - -// int dup3(int oldfd, int newfd, int flags); -func Xdup3(t *TLS, oldfd int32, newfd int32, flags int32) int32 { - // From golang.org/x/sys/unix/zsyscall_linux.go - if _, _, err := unix.Syscall(unix.SYS_DUP3, uintptr(oldfd), uintptr(newfd), uintptr(flags)); err != 0 { - t.setErrno(err) - return -1 - } - - return 0 -} - -// ssize_t readlinkat(int dirfd, const char *pathname, char *buf, size_t bufsiz); -func Xreadlinkat(t *TLS, dirfd int32, pathname, buf uintptr, bufsiz types.Size_t) types.Ssize_t { - // From golang.org/x/sys/unix/zsyscall_linux.go - n, _, err := unix.Syscall6(unix.SYS_READLINKAT, uintptr(dirfd), pathname, buf, uintptr(bufsiz), 0, 0) - if err != 0 { - t.setErrno(err) - return -1 - } - - return types.Ssize_t(n) -} diff --git a/vendor/modernc.org/libc/libc_linux_386.go b/vendor/modernc.org/libc/libc_linux_386.go deleted file mode 100644 index a8e5c526d..000000000 --- a/vendor/modernc.org/libc/libc_linux_386.go +++ /dev/null @@ -1,457 +0,0 @@ -// Copyright 2020 The Libc Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package libc // import "modernc.org/libc" - -import ( - "os" - "strings" - "unsafe" - - "golang.org/x/sys/unix" - "modernc.org/libc/errno" - "modernc.org/libc/fcntl" - "modernc.org/libc/signal" - "modernc.org/libc/sys/stat" - "modernc.org/libc/sys/types" -) - -// int sigaction(int signum, const struct sigaction *act, struct sigaction *oldact); -func Xsigaction(t *TLS, signum int32, act, oldact uintptr) int32 { - // musl/arch/x32/ksigaction.h - // - // struct k_sigaction { - // void (*handler)(int); - // unsigned long flags; - // void (*restorer)(void); - // unsigned mask[2]; - // }; - type k_sigaction struct { - handler uintptr - flags ulong - restorer uintptr - mask [2]uint32 - } - - var kact, koldact uintptr - if act != 0 { - sz := int(unsafe.Sizeof(k_sigaction{})) - kact = t.Alloc(sz) - defer t.Free(sz) - *(*k_sigaction)(unsafe.Pointer(kact)) = k_sigaction{ - handler: (*signal.Sigaction)(unsafe.Pointer(act)).F__sigaction_handler.Fsa_handler, - flags: ulong((*signal.Sigaction)(unsafe.Pointer(act)).Fsa_flags), - restorer: (*signal.Sigaction)(unsafe.Pointer(act)).Fsa_restorer, - } - Xmemcpy(t, kact+unsafe.Offsetof(k_sigaction{}.mask), act+unsafe.Offsetof(signal.Sigaction{}.Fsa_mask), types.Size_t(unsafe.Sizeof(k_sigaction{}.mask))) - } - if oldact != 0 { - panic(todo("")) - } - - if _, _, err := unix.Syscall6(unix.SYS_RT_SIGACTION, uintptr(signum), kact, koldact, unsafe.Sizeof(k_sigaction{}.mask), 0, 0); err != 0 { - t.setErrno(err) - return -1 - } - - if oldact != 0 { - panic(todo("")) - } - - return 0 -} - -// int fcntl(int fd, int cmd, ... /* arg */ ); -func Xfcntl64(t *TLS, fd, cmd int32, args uintptr) int32 { - var arg uintptr - if args != 0 { - arg = *(*uintptr)(unsafe.Pointer(args)) - } - if cmd == fcntl.F_SETFL { - arg |= unix.O_LARGEFILE - } - n, _, err := unix.Syscall(unix.SYS_FCNTL64, uintptr(fd), uintptr(cmd), arg) - if err != 0 { - if dmesgs { - dmesg("%v: fd %v cmd %v", origin(1), fcntlCmdStr(fd), cmd) - } - t.setErrno(err) - return -1 - } - - if dmesgs { - dmesg("%v: %d %s %#x: %d", origin(1), fd, fcntlCmdStr(cmd), arg, n) - } - return int32(n) -} - -// int lstat(const char *pathname, struct stat *statbuf); -func Xlstat64(t *TLS, pathname, statbuf uintptr) int32 { - if _, _, err := unix.Syscall(unix.SYS_LSTAT64, pathname, statbuf, 0); err != 0 { - if dmesgs { - dmesg("%v: %q: %v", origin(1), GoString(pathname), err) - } - t.setErrno(err) - return -1 - } - - if dmesgs { - dmesg("%v: %q: ok", origin(1), GoString(pathname)) - } - return 0 -} - -// int stat(const char *pathname, struct stat *statbuf); -func Xstat64(t *TLS, pathname, statbuf uintptr) int32 { - if _, _, err := unix.Syscall(unix.SYS_STAT64, pathname, statbuf, 0); err != 0 { - if dmesgs { - dmesg("%v: %q: %v", origin(1), GoString(pathname), err) - } - t.setErrno(err) - return -1 - } - - if dmesgs { - dmesg("%v: %q: ok", origin(1), GoString(pathname)) - } - return 0 -} - -// int fstat(int fd, struct stat *statbuf); -func Xfstat64(t *TLS, fd int32, statbuf uintptr) int32 { - if _, _, err := unix.Syscall(unix.SYS_FSTAT64, uintptr(fd), statbuf, 0); err != 0 { - if dmesgs { - dmesg("%v: fd %d: %v", origin(1), fd, err) - } - t.setErrno(err) - return -1 - } - - if dmesgs { - dmesg("%v: %d, size %#x: ok\n%+v", origin(1), fd, (*stat.Stat)(unsafe.Pointer(statbuf)).Fst_size, (*stat.Stat)(unsafe.Pointer(statbuf))) - } - return 0 -} - -// void *mremap(void *old_address, size_t old_size, size_t new_size, int flags, ... /* void *new_address */); -func Xmremap(t *TLS, old_address uintptr, old_size, new_size types.Size_t, flags int32, args uintptr) uintptr { - var arg uintptr - if args != 0 { - arg = *(*uintptr)(unsafe.Pointer(args)) - } - data, _, err := unix.Syscall6(unix.SYS_MREMAP, old_address, uintptr(old_size), uintptr(new_size), uintptr(flags), arg, 0) - if err != 0 { - if dmesgs { - dmesg("%v: %v", origin(1), err) - } - t.setErrno(err) - return ^uintptr(0) // (void*)-1 - } - - if dmesgs { - dmesg("%v: %#x", origin(1), data) - } - return data -} - -func Xmmap(t *TLS, addr uintptr, length types.Size_t, prot, flags, fd int32, offset types.Off_t) uintptr { - return Xmmap64(t, addr, length, prot, flags, fd, offset) -} - -// void *mmap(void *addr, size_t length, int prot, int flags, int fd, off_t offset); -func Xmmap64(t *TLS, addr uintptr, length types.Size_t, prot, flags, fd int32, offset types.Off_t) uintptr { - data, _, err := unix.Syscall6(unix.SYS_MMAP2, addr, uintptr(length), uintptr(prot), uintptr(flags), uintptr(fd), uintptr(offset>>12)) - if err != 0 { - if dmesgs { - dmesg("%v: %v", origin(1), err) - } - t.setErrno(err) - return ^uintptr(0) // (void*)-1 - } - - if dmesgs { - dmesg("%v: %#x", origin(1), data) - } - return data -} - -// int ftruncate(int fd, off_t length); -func Xftruncate64(t *TLS, fd int32, length types.Off_t) int32 { - if _, _, err := unix.Syscall(unix.SYS_FTRUNCATE64, uintptr(fd), uintptr(length), uintptr(length>>32)); err != 0 { - if dmesgs { - dmesg("%v: fd %d: %v", origin(1), fd, err) - } - t.setErrno(err) - return -1 - } - - if dmesgs { - dmesg("%v: %d %#x: ok", origin(1), fd, length) - } - return 0 -} - -// off64_t lseek64(int fd, off64_t offset, int whence); -func Xlseek64(t *TLS, fd int32, offset types.Off_t, whence int32) types.Off_t { - bp := t.Alloc(int(unsafe.Sizeof(types.X__loff_t(0)))) - defer t.Free(int(unsafe.Sizeof(types.X__loff_t(0)))) - if _, _, err := unix.Syscall6(unix.SYS__LLSEEK, uintptr(fd), uintptr(offset>>32), uintptr(offset), bp, uintptr(whence), 0); err != 0 { - if dmesgs { - dmesg("%v: fd %v, off %#x, whence %v: %v", origin(1), fd, offset, whenceStr(whence), err) - } - t.setErrno(err) - return -1 - } - - if dmesgs { - dmesg("%v: fd %v, off %#x, whence %v: %#x", origin(1), fd, offset, whenceStr(whence), *(*types.Off_t)(unsafe.Pointer(bp))) - } - return *(*types.Off_t)(unsafe.Pointer(bp)) -} - -// int utime(const char *filename, const struct utimbuf *times); -func Xutime(t *TLS, filename, times uintptr) int32 { - if _, _, err := unix.Syscall(unix.SYS_UTIME, filename, times, 0); err != 0 { - t.setErrno(err) - return -1 - } - - return 0 -} - -// unsigned int alarm(unsigned int seconds); -func Xalarm(t *TLS, seconds uint32) uint32 { - n, _, err := unix.Syscall(unix.SYS_ALARM, uintptr(seconds), 0, 0) - if err != 0 { - panic(todo("")) - } - - return uint32(n) -} - -// int getrlimit(int resource, struct rlimit *rlim); -func Xgetrlimit64(t *TLS, resource int32, rlim uintptr) int32 { - if _, _, err := unix.Syscall(unix.SYS_GETRLIMIT, uintptr(resource), uintptr(rlim), 0); err != 0 { - t.setErrno(err) - return -1 - } - - return 0 -} - -// time_t time(time_t *tloc); -func Xtime(t *TLS, tloc uintptr) types.Time_t { - n, _, err := unix.Syscall(unix.SYS_TIME, tloc, 0, 0) - if err != 0 { - t.setErrno(err) - return types.Time_t(-1) - } - - if tloc != 0 { - *(*types.Time_t)(unsafe.Pointer(tloc)) = types.Time_t(n) - } - return types.Time_t(n) -} - -// int mkdir(const char *path, mode_t mode); -func Xmkdir(t *TLS, path uintptr, mode types.Mode_t) int32 { - if _, _, err := unix.Syscall(unix.SYS_MKDIR, path, uintptr(mode), 0); err != 0 { - t.setErrno(err) - return -1 - } - - if dmesgs { - dmesg("%v: %q: ok", origin(1), GoString(path)) - } - return 0 -} - -// int symlink(const char *target, const char *linkpath); -func Xsymlink(t *TLS, target, linkpath uintptr) int32 { - if _, _, err := unix.Syscall(unix.SYS_SYMLINK, target, linkpath, 0); err != 0 { - t.setErrno(err) - return -1 - } - - if dmesgs { - dmesg("%v: %q %q: ok", origin(1), GoString(target), GoString(linkpath)) - } - return 0 -} - -// int chmod(const char *pathname, mode_t mode) -func Xchmod(t *TLS, pathname uintptr, mode types.Mode_t) int32 { - if _, _, err := unix.Syscall(unix.SYS_CHMOD, pathname, uintptr(mode), 0); err != 0 { - t.setErrno(err) - return -1 - } - - if dmesgs { - dmesg("%v: %q %#o: ok", origin(1), GoString(pathname), mode) - } - return 0 -} - -// int utimes(const char *filename, const struct timeval times[2]); -func Xutimes(t *TLS, filename, times uintptr) int32 { - if _, _, err := unix.Syscall(unix.SYS_UTIMES, filename, times, 0); err != 0 { - t.setErrno(err) - return -1 - } - - if dmesgs { - dmesg("%v: %q: ok", origin(1), GoString(filename)) - } - return 0 -} - -// int unlink(const char *pathname); -func Xunlink(t *TLS, pathname uintptr) int32 { - if _, _, err := unix.Syscall(unix.SYS_UNLINK, pathname, 0, 0); err != 0 { - t.setErrno(err) - return -1 - } - - if dmesgs { - dmesg("%v: %q: ok", origin(1), GoString(pathname)) - } - return 0 -} - -// int access(const char *pathname, int mode); -func Xaccess(t *TLS, pathname uintptr, mode int32) int32 { - if _, _, err := unix.Syscall(unix.SYS_ACCESS, pathname, uintptr(mode), 0); err != 0 { - if dmesgs { - dmesg("%v: %q: %v", origin(1), GoString(pathname), err) - } - t.setErrno(err) - return -1 - } - - if dmesgs { - dmesg("%v: %q %#o: ok", origin(1), GoString(pathname), mode) - } - return 0 -} - -// int rmdir(const char *pathname); -func Xrmdir(t *TLS, pathname uintptr) int32 { - if _, _, err := unix.Syscall(unix.SYS_RMDIR, pathname, 0, 0); err != 0 { - t.setErrno(err) - return -1 - } - - if dmesgs { - dmesg("%v: %q: ok", origin(1), GoString(pathname)) - } - return 0 -} - -// int rename(const char *oldpath, const char *newpath); -func Xrename(t *TLS, oldpath, newpath uintptr) int32 { - if _, _, err := unix.Syscall(unix.SYS_RENAME, oldpath, newpath, 0); err != 0 { - t.setErrno(err) - return -1 - } - - return 0 -} - -// int mknod(const char *pathname, mode_t mode, dev_t dev); -func Xmknod(t *TLS, pathname uintptr, mode types.Mode_t, dev types.Dev_t) int32 { - if _, _, err := unix.Syscall(unix.SYS_MKNOD, pathname, uintptr(mode), uintptr(dev)); err != 0 { - t.setErrno(err) - return -1 - } - - return 0 -} - -// int chown(const char *pathname, uid_t owner, gid_t group); -func Xchown(t *TLS, pathname uintptr, owner types.Uid_t, group types.Gid_t) int32 { - if _, _, err := unix.Syscall(unix.SYS_CHOWN, pathname, uintptr(owner), uintptr(group)); err != 0 { - t.setErrno(err) - return -1 - } - - return 0 -} - -// int link(const char *oldpath, const char *newpath); -func Xlink(t *TLS, oldpath, newpath uintptr) int32 { - if _, _, err := unix.Syscall(unix.SYS_LINK, oldpath, newpath, 0); err != 0 { - t.setErrno(err) - return -1 - } - - return 0 -} - -// int pipe(int pipefd[2]); -func Xpipe(t *TLS, pipefd uintptr) int32 { - if _, _, err := unix.Syscall(unix.SYS_PIPE, pipefd, 0, 0); err != 0 { - t.setErrno(err) - return -1 - } - - return 0 -} - -// int dup2(int oldfd, int newfd); -func Xdup2(t *TLS, oldfd, newfd int32) int32 { - n, _, err := unix.Syscall(unix.SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0) - if err != 0 { - t.setErrno(err) - return -1 - } - - return int32(n) -} - -// ssize_t readlink(const char *restrict path, char *restrict buf, size_t bufsize); -func Xreadlink(t *TLS, path, buf uintptr, bufsize types.Size_t) types.Ssize_t { - n, _, err := unix.Syscall(unix.SYS_READLINK, path, buf, uintptr(bufsize)) - if err != 0 { - t.setErrno(err) - return -1 - } - - return types.Ssize_t(n) -} - -// FILE *fopen64(const char *pathname, const char *mode); -func Xfopen64(t *TLS, pathname, mode uintptr) uintptr { - m := strings.ReplaceAll(GoString(mode), "b", "") - var flags int - switch m { - case "r": - flags = os.O_RDONLY - case "r+": - flags = os.O_RDWR - case "w": - flags = os.O_WRONLY | os.O_CREATE | os.O_TRUNC - case "w+": - flags = os.O_RDWR | os.O_CREATE | os.O_TRUNC - case "a": - flags = os.O_WRONLY | os.O_CREATE | os.O_APPEND - case "a+": - flags = os.O_RDWR | os.O_CREATE | os.O_APPEND - default: - panic(m) - } - //TODO- flags |= fcntl.O_LARGEFILE - fd, _, err := unix.Syscall(unix.SYS_OPEN, pathname, uintptr(flags|unix.O_LARGEFILE), 0666) - if err != 0 { - t.setErrno(err) - return 0 - } - - if p := newFile(t, int32(fd)); p != 0 { - return p - } - - Xclose(t, int32(fd)) - t.setErrno(errno.ENOMEM) - return 0 -} diff --git a/vendor/modernc.org/libc/libc_linux_amd64.go b/vendor/modernc.org/libc/libc_linux_amd64.go index 23e4f853b..3c89f227e 100644 --- a/vendor/modernc.org/libc/libc_linux_amd64.go +++ b/vendor/modernc.org/libc/libc_linux_amd64.go @@ -2,11 +2,14 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build !(linux && amd64) + package libc // import "modernc.org/libc" import ( "os" "strings" + gotime "time" "unicode" "unsafe" @@ -14,12 +17,21 @@ import ( "modernc.org/libc/errno" "modernc.org/libc/fcntl" "modernc.org/libc/signal" + "modernc.org/libc/stdio" "modernc.org/libc/sys/types" + "modernc.org/libc/time" "modernc.org/libc/wctype" ) +var ( + startTime = gotime.Now() // For clock(3) +) + // int sigaction(int signum, const struct sigaction *act, struct sigaction *oldact); func Xsigaction(t *TLS, signum int32, act, oldact uintptr) int32 { + if __ccgo_strace { + trc("t=%v signum=%v oldact=%v, (%v:)", t, signum, oldact, origin(2)) + } // musl/arch/x86_64/ksigaction.h // // struct k_sigaction { @@ -65,6 +77,9 @@ func Xsigaction(t *TLS, signum int32, act, oldact uintptr) int32 { // int fcntl(int fd, int cmd, ... /* arg */ ); func Xfcntl64(t *TLS, fd, cmd int32, args uintptr) int32 { + if __ccgo_strace { + trc("t=%v cmd=%v args=%v, (%v:)", t, cmd, args, origin(2)) + } var arg uintptr if args != 0 { arg = *(*uintptr)(unsafe.Pointer(args)) @@ -89,6 +104,9 @@ func Xfcntl64(t *TLS, fd, cmd int32, args uintptr) int32 { // int lstat(const char *pathname, struct stat *statbuf); func Xlstat64(t *TLS, pathname, statbuf uintptr) int32 { + if __ccgo_strace { + trc("t=%v statbuf=%v, (%v:)", t, statbuf, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_LSTAT, pathname, statbuf, 0); err != 0 { // if dmesgs { // dmesg("%v: %q: %v", origin(1), GoString(pathname), err) @@ -105,6 +123,9 @@ func Xlstat64(t *TLS, pathname, statbuf uintptr) int32 { // int stat(const char *pathname, struct stat *statbuf); func Xstat64(t *TLS, pathname, statbuf uintptr) int32 { + if __ccgo_strace { + trc("t=%v statbuf=%v, (%v:)", t, statbuf, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_STAT, pathname, statbuf, 0); err != 0 { // if dmesgs { // dmesg("%v: %q: %v", origin(1), GoString(pathname), err) @@ -121,6 +142,9 @@ func Xstat64(t *TLS, pathname, statbuf uintptr) int32 { // int fstat(int fd, struct stat *statbuf); func Xfstat64(t *TLS, fd int32, statbuf uintptr) int32 { + if __ccgo_strace { + trc("t=%v fd=%v statbuf=%v, (%v:)", t, fd, statbuf, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_FSTAT, uintptr(fd), statbuf, 0); err != 0 { // if dmesgs { // dmesg("%v: fd %d: %v", origin(1), fd, err) @@ -136,11 +160,17 @@ func Xfstat64(t *TLS, fd int32, statbuf uintptr) int32 { } func Xmmap(t *TLS, addr uintptr, length types.Size_t, prot, flags, fd int32, offset types.Off_t) uintptr { + if __ccgo_strace { + trc("t=%v addr=%v length=%v fd=%v offset=%v, (%v:)", t, addr, length, fd, offset, origin(2)) + } return Xmmap64(t, addr, length, prot, flags, fd, offset) } // void *mmap(void *addr, size_t length, int prot, int flags, int fd, off_t offset); func Xmmap64(t *TLS, addr uintptr, length types.Size_t, prot, flags, fd int32, offset types.Off_t) uintptr { + if __ccgo_strace { + trc("t=%v addr=%v length=%v fd=%v offset=%v, (%v:)", t, addr, length, fd, offset, origin(2)) + } data, _, err := unix.Syscall6(unix.SYS_MMAP, addr, uintptr(length), uintptr(prot), uintptr(flags), uintptr(fd), uintptr(offset)) if err != 0 { // if dmesgs { @@ -158,6 +188,9 @@ func Xmmap64(t *TLS, addr uintptr, length types.Size_t, prot, flags, fd int32, o // void *mremap(void *old_address, size_t old_size, size_t new_size, int flags, ... /* void *new_address */); func Xmremap(t *TLS, old_address uintptr, old_size, new_size types.Size_t, flags int32, args uintptr) uintptr { + if __ccgo_strace { + trc("t=%v old_address=%v new_size=%v flags=%v args=%v, (%v:)", t, old_address, new_size, flags, args, origin(2)) + } var arg uintptr if args != 0 { arg = *(*uintptr)(unsafe.Pointer(args)) @@ -179,6 +212,9 @@ func Xmremap(t *TLS, old_address uintptr, old_size, new_size types.Size_t, flags // int ftruncate(int fd, off_t length); func Xftruncate64(t *TLS, fd int32, length types.Off_t) int32 { + if __ccgo_strace { + trc("t=%v fd=%v length=%v, (%v:)", t, fd, length, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_FTRUNCATE, uintptr(fd), uintptr(length), 0); err != 0 { // if dmesgs { // dmesg("%v: fd %d: %v", origin(1), fd, err) @@ -195,6 +231,9 @@ func Xftruncate64(t *TLS, fd int32, length types.Off_t) int32 { // off64_t lseek64(int fd, off64_t offset, int whence); func Xlseek64(t *TLS, fd int32, offset types.Off_t, whence int32) types.Off_t { + if __ccgo_strace { + trc("t=%v fd=%v offset=%v whence=%v, (%v:)", t, fd, offset, whence, origin(2)) + } n, _, err := unix.Syscall(unix.SYS_LSEEK, uintptr(fd), uintptr(offset), uintptr(whence)) if err != 0 { // if dmesgs { @@ -212,6 +251,9 @@ func Xlseek64(t *TLS, fd int32, offset types.Off_t, whence int32) types.Off_t { // int utime(const char *filename, const struct utimbuf *times); func Xutime(t *TLS, filename, times uintptr) int32 { + if __ccgo_strace { + trc("t=%v times=%v, (%v:)", t, times, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_UTIME, filename, times, 0); err != 0 { t.setErrno(err) return -1 @@ -222,6 +264,9 @@ func Xutime(t *TLS, filename, times uintptr) int32 { // unsigned int alarm(unsigned int seconds); func Xalarm(t *TLS, seconds uint32) uint32 { + if __ccgo_strace { + trc("t=%v seconds=%v, (%v:)", t, seconds, origin(2)) + } n, _, err := unix.Syscall(unix.SYS_ALARM, uintptr(seconds), 0, 0) if err != 0 { panic(todo("")) @@ -232,6 +277,9 @@ func Xalarm(t *TLS, seconds uint32) uint32 { // time_t time(time_t *tloc); func Xtime(t *TLS, tloc uintptr) types.Time_t { + if __ccgo_strace { + trc("t=%v tloc=%v, (%v:)", t, tloc, origin(2)) + } n, _, err := unix.Syscall(unix.SYS_TIME, tloc, 0, 0) if err != 0 { t.setErrno(err) @@ -246,6 +294,9 @@ func Xtime(t *TLS, tloc uintptr) types.Time_t { // int getrlimit(int resource, struct rlimit *rlim); func Xgetrlimit64(t *TLS, resource int32, rlim uintptr) int32 { + if __ccgo_strace { + trc("t=%v resource=%v rlim=%v, (%v:)", t, resource, rlim, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_GETRLIMIT, uintptr(resource), uintptr(rlim), 0); err != 0 { t.setErrno(err) return -1 @@ -256,6 +307,9 @@ func Xgetrlimit64(t *TLS, resource int32, rlim uintptr) int32 { // int mkdir(const char *path, mode_t mode); func Xmkdir(t *TLS, path uintptr, mode types.Mode_t) int32 { + if __ccgo_strace { + trc("t=%v path=%v mode=%v, (%v:)", t, path, mode, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_MKDIR, path, uintptr(mode), 0); err != 0 { t.setErrno(err) return -1 @@ -269,6 +323,9 @@ func Xmkdir(t *TLS, path uintptr, mode types.Mode_t) int32 { // int symlink(const char *target, const char *linkpath); func Xsymlink(t *TLS, target, linkpath uintptr) int32 { + if __ccgo_strace { + trc("t=%v linkpath=%v, (%v:)", t, linkpath, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_SYMLINK, target, linkpath, 0); err != 0 { t.setErrno(err) return -1 @@ -282,6 +339,9 @@ func Xsymlink(t *TLS, target, linkpath uintptr) int32 { // int chmod(const char *pathname, mode_t mode) func Xchmod(t *TLS, pathname uintptr, mode types.Mode_t) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v mode=%v, (%v:)", t, pathname, mode, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_CHMOD, pathname, uintptr(mode), 0); err != 0 { t.setErrno(err) return -1 @@ -295,6 +355,9 @@ func Xchmod(t *TLS, pathname uintptr, mode types.Mode_t) int32 { // int utimes(const char *filename, const struct timeval times[2]); func Xutimes(t *TLS, filename, times uintptr) int32 { + if __ccgo_strace { + trc("t=%v times=%v, (%v:)", t, times, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_UTIMES, filename, times, 0); err != 0 { t.setErrno(err) return -1 @@ -308,6 +371,9 @@ func Xutimes(t *TLS, filename, times uintptr) int32 { // int unlink(const char *pathname); func Xunlink(t *TLS, pathname uintptr) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v, (%v:)", t, pathname, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_UNLINK, pathname, 0, 0); err != 0 { t.setErrno(err) return -1 @@ -321,6 +387,9 @@ func Xunlink(t *TLS, pathname uintptr) int32 { // int access(const char *pathname, int mode); func Xaccess(t *TLS, pathname uintptr, mode int32) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v mode=%v, (%v:)", t, pathname, mode, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_ACCESS, pathname, uintptr(mode), 0); err != 0 { // if dmesgs { // dmesg("%v: %q: %v", origin(1), GoString(pathname), err) @@ -337,6 +406,9 @@ func Xaccess(t *TLS, pathname uintptr, mode int32) int32 { // int rmdir(const char *pathname); func Xrmdir(t *TLS, pathname uintptr) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v, (%v:)", t, pathname, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_RMDIR, pathname, 0, 0); err != 0 { t.setErrno(err) return -1 @@ -350,6 +422,9 @@ func Xrmdir(t *TLS, pathname uintptr) int32 { // int rename(const char *oldpath, const char *newpath); func Xrename(t *TLS, oldpath, newpath uintptr) int32 { + if __ccgo_strace { + trc("t=%v newpath=%v, (%v:)", t, newpath, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_RENAME, oldpath, newpath, 0); err != 0 { t.setErrno(err) return -1 @@ -360,6 +435,9 @@ func Xrename(t *TLS, oldpath, newpath uintptr) int32 { // int mknod(const char *pathname, mode_t mode, dev_t dev); func Xmknod(t *TLS, pathname uintptr, mode types.Mode_t, dev types.Dev_t) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v mode=%v dev=%v, (%v:)", t, pathname, mode, dev, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_MKNOD, pathname, uintptr(mode), uintptr(dev)); err != 0 { t.setErrno(err) return -1 @@ -370,6 +448,9 @@ func Xmknod(t *TLS, pathname uintptr, mode types.Mode_t, dev types.Dev_t) int32 // int chown(const char *pathname, uid_t owner, gid_t group); func Xchown(t *TLS, pathname uintptr, owner types.Uid_t, group types.Gid_t) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v owner=%v group=%v, (%v:)", t, pathname, owner, group, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_CHOWN, pathname, uintptr(owner), uintptr(group)); err != 0 { t.setErrno(err) return -1 @@ -380,6 +461,9 @@ func Xchown(t *TLS, pathname uintptr, owner types.Uid_t, group types.Gid_t) int3 // int link(const char *oldpath, const char *newpath); func Xlink(t *TLS, oldpath, newpath uintptr) int32 { + if __ccgo_strace { + trc("t=%v newpath=%v, (%v:)", t, newpath, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_LINK, oldpath, newpath, 0); err != 0 { t.setErrno(err) return -1 @@ -390,6 +474,9 @@ func Xlink(t *TLS, oldpath, newpath uintptr) int32 { // int pipe(int pipefd[2]); func Xpipe(t *TLS, pipefd uintptr) int32 { + if __ccgo_strace { + trc("t=%v pipefd=%v, (%v:)", t, pipefd, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_PIPE, pipefd, 0, 0); err != 0 { t.setErrno(err) return -1 @@ -400,6 +487,9 @@ func Xpipe(t *TLS, pipefd uintptr) int32 { // int dup2(int oldfd, int newfd); func Xdup2(t *TLS, oldfd, newfd int32) int32 { + if __ccgo_strace { + trc("t=%v newfd=%v, (%v:)", t, newfd, origin(2)) + } n, _, err := unix.Syscall(unix.SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0) if err != 0 { t.setErrno(err) @@ -411,6 +501,9 @@ func Xdup2(t *TLS, oldfd, newfd int32) int32 { // ssize_t readlink(const char *restrict path, char *restrict buf, size_t bufsize); func Xreadlink(t *TLS, path, buf uintptr, bufsize types.Size_t) types.Ssize_t { + if __ccgo_strace { + trc("t=%v buf=%v bufsize=%v, (%v:)", t, buf, bufsize, origin(2)) + } n, _, err := unix.Syscall(unix.SYS_READLINK, path, buf, uintptr(bufsize)) if err != 0 { t.setErrno(err) @@ -422,6 +515,9 @@ func Xreadlink(t *TLS, path, buf uintptr, bufsize types.Size_t) types.Ssize_t { // FILE *fopen64(const char *pathname, const char *mode); func Xfopen64(t *TLS, pathname, mode uintptr) uintptr { + if __ccgo_strace { + trc("t=%v mode=%v, (%v:)", t, mode, origin(2)) + } m := strings.ReplaceAll(GoString(mode), "b", "") var flags int switch m { @@ -458,10 +554,214 @@ func Xfopen64(t *TLS, pathname, mode uintptr) uintptr { // int iswspace(wint_t wc); func Xiswspace(t *TLS, wc wctype.Wint_t) int32 { + if __ccgo_strace { + trc("t=%v wc=%v, (%v:)", t, wc, origin(2)) + } return Bool32(unicode.IsSpace(rune(wc))) } // int iswalnum(wint_t wc); func Xiswalnum(t *TLS, wc wctype.Wint_t) int32 { + if __ccgo_strace { + trc("t=%v wc=%v, (%v:)", t, wc, origin(2)) + } return Bool32(unicode.IsLetter(rune(wc)) || unicode.IsNumber(rune(wc))) } + +// int setrlimit(int resource, const struct rlimit *rlim); +func Xsetrlimit64(t *TLS, resource int32, rlim uintptr) int32 { + if __ccgo_strace { + trc("t=%v resource=%v rlim=%v, (%v:)", t, resource, rlim, origin(2)) + } + if _, _, err := unix.Syscall(unix.SYS_SETRLIMIT, uintptr(resource), uintptr(rlim), 0); err != 0 { + t.setErrno(err) + return -1 + } + + return 0 +} + +func AtomicLoadPInt8(addr uintptr) (val int8) { + return int8(a_load_8(addr)) +} + +func AtomicLoadPInt16(addr uintptr) (val int16) { + return int16(a_load_16(addr)) +} + +func AtomicLoadPUint8(addr uintptr) byte { + return byte(a_load_8(addr)) +} + +func AtomicLoadPUint16(addr uintptr) uint16 { + return uint16(a_load_16(addr)) +} + +func AtomicLoadNUint8(ptr uintptr, memorder int32) uint8 { + return byte(a_load_8(ptr)) +} + +var _table1 = [384]int32{ + 129: int32(1), + 130: int32(2), + 131: int32(3), + 132: int32(4), + 133: int32(5), + 134: int32(6), + 135: int32(7), + 136: int32(8), + 137: int32(9), + 138: int32(10), + 139: int32(11), + 140: int32(12), + 141: int32(13), + 142: int32(14), + 143: int32(15), + 144: int32(16), + 145: int32(17), + 146: int32(18), + 147: int32(19), + 148: int32(20), + 149: int32(21), + 150: int32(22), + 151: int32(23), + 152: int32(24), + 153: int32(25), + 154: int32(26), + 155: int32(27), + 156: int32(28), + 157: int32(29), + 158: int32(30), + 159: int32(31), + 160: int32(32), + 161: int32(33), + 162: int32(34), + 163: int32(35), + 164: int32(36), + 165: int32(37), + 166: int32(38), + 167: int32(39), + 168: int32(40), + 169: int32(41), + 170: int32(42), + 171: int32(43), + 172: int32(44), + 173: int32(45), + 174: int32(46), + 175: int32(47), + 176: int32(48), + 177: int32(49), + 178: int32(50), + 179: int32(51), + 180: int32(52), + 181: int32(53), + 182: int32(54), + 183: int32(55), + 184: int32(56), + 185: int32(57), + 186: int32(58), + 187: int32(59), + 188: int32(60), + 189: int32(61), + 190: int32(62), + 191: int32(63), + 192: int32(64), + 193: int32('a'), + 194: int32('b'), + 195: int32('c'), + 196: int32('d'), + 197: int32('e'), + 198: int32('f'), + 199: int32('g'), + 200: int32('h'), + 201: int32('i'), + 202: int32('j'), + 203: int32('k'), + 204: int32('l'), + 205: int32('m'), + 206: int32('n'), + 207: int32('o'), + 208: int32('p'), + 209: int32('q'), + 210: int32('r'), + 211: int32('s'), + 212: int32('t'), + 213: int32('u'), + 214: int32('v'), + 215: int32('w'), + 216: int32('x'), + 217: int32('y'), + 218: int32('z'), + 219: int32(91), + 220: int32(92), + 221: int32(93), + 222: int32(94), + 223: int32(95), + 224: int32(96), + 225: int32('a'), + 226: int32('b'), + 227: int32('c'), + 228: int32('d'), + 229: int32('e'), + 230: int32('f'), + 231: int32('g'), + 232: int32('h'), + 233: int32('i'), + 234: int32('j'), + 235: int32('k'), + 236: int32('l'), + 237: int32('m'), + 238: int32('n'), + 239: int32('o'), + 240: int32('p'), + 241: int32('q'), + 242: int32('r'), + 243: int32('s'), + 244: int32('t'), + 245: int32('u'), + 246: int32('v'), + 247: int32('w'), + 248: int32('x'), + 249: int32('y'), + 250: int32('z'), + 251: int32(123), + 252: int32(124), + 253: int32(125), + 254: int32(126), + 255: int32(127), +} + +var _ptable1 = uintptr(unsafe.Pointer(&_table1)) + uintptr(128)*4 + +func X__ctype_tolower_loc(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(unsafe.Pointer(&_ptable1)) +} + +type Tin6_addr = struct { + F__in6_union struct { + F__s6_addr16 [0][8]uint16 + F__s6_addr32 [0][4]uint32 + F__s6_addr [16]uint8 + } +} + +var Xin6addr_any = Tin6_addr{} + +func Xrewinddir(tls *TLS, f uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } + Xfseek(tls, f, 0, stdio.SEEK_SET) +} + +// clock_t clock(void); +func Xclock(t *TLS) time.Clock_t { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } + return time.Clock_t(gotime.Since(startTime) * gotime.Duration(time.CLOCKS_PER_SEC) / gotime.Second) +} diff --git a/vendor/modernc.org/libc/libc_linux_arm.go b/vendor/modernc.org/libc/libc_linux_arm.go deleted file mode 100644 index cfabe77f9..000000000 --- a/vendor/modernc.org/libc/libc_linux_arm.go +++ /dev/null @@ -1,449 +0,0 @@ -// Copyright 2020 The Libc Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package libc // import "modernc.org/libc" - -import ( - "os" - "strings" - "time" - "unsafe" - - "golang.org/x/sys/unix" - "modernc.org/libc/errno" - "modernc.org/libc/fcntl" - "modernc.org/libc/signal" - "modernc.org/libc/sys/stat" - "modernc.org/libc/sys/types" -) - -// int sigaction(int signum, const struct sigaction *act, struct sigaction *oldact); -func Xsigaction(t *TLS, signum int32, act, oldact uintptr) int32 { - // musl/arch/x32/ksigaction.h - // - // struct k_sigaction { - // void (*handler)(int); - // unsigned long flags; - // void (*restorer)(void); - // unsigned mask[2]; - // }; - type k_sigaction struct { - handler uintptr - flags ulong - restorer uintptr - mask [2]uint32 - } - - var kact, koldact uintptr - if act != 0 { - sz := int(unsafe.Sizeof(k_sigaction{})) - kact = t.Alloc(sz) - defer t.Free(sz) - *(*k_sigaction)(unsafe.Pointer(kact)) = k_sigaction{ - handler: (*signal.Sigaction)(unsafe.Pointer(act)).F__sigaction_handler.Fsa_handler, - flags: ulong((*signal.Sigaction)(unsafe.Pointer(act)).Fsa_flags), - restorer: (*signal.Sigaction)(unsafe.Pointer(act)).Fsa_restorer, - } - Xmemcpy(t, kact+unsafe.Offsetof(k_sigaction{}.mask), act+unsafe.Offsetof(signal.Sigaction{}.Fsa_mask), types.Size_t(unsafe.Sizeof(k_sigaction{}.mask))) - } - if oldact != 0 { - panic(todo("")) - } - - if _, _, err := unix.Syscall6(unix.SYS_RT_SIGACTION, uintptr(signum), kact, koldact, unsafe.Sizeof(k_sigaction{}.mask), 0, 0); err != 0 { - t.setErrno(err) - return -1 - } - - if oldact != 0 { - panic(todo("")) - } - - return 0 -} - -// int fcntl(int fd, int cmd, ... /* arg */ ); -func Xfcntl64(t *TLS, fd, cmd int32, args uintptr) int32 { - var arg uintptr - if args != 0 { - arg = *(*uintptr)(unsafe.Pointer(args)) - } - if cmd == fcntl.F_SETFL { - arg |= unix.O_LARGEFILE - } - n, _, err := unix.Syscall(unix.SYS_FCNTL64, uintptr(fd), uintptr(cmd), arg) - if err != 0 { - if dmesgs { - dmesg("%v: fd %v cmd %v", origin(1), fcntlCmdStr(fd), cmd) - } - t.setErrno(err) - return -1 - } - - if dmesgs { - dmesg("%v: %d %s %#x: %d", origin(1), fd, fcntlCmdStr(cmd), arg, n) - } - return int32(n) -} - -// int lstat(const char *pathname, struct stat *statbuf); -func Xlstat64(t *TLS, pathname, statbuf uintptr) int32 { - if err := unix.Lstat(GoString(pathname), (*unix.Stat_t)(unsafe.Pointer(statbuf))); err != nil { - if dmesgs { - dmesg("%v: %q: %v", origin(1), GoString(pathname), err) - } - t.setErrno(err) - return -1 - } - - if dmesgs { - dmesg("%v: %q: ok", origin(1), GoString(pathname)) - } - return 0 -} - -// int stat(const char *pathname, struct stat *statbuf); -func Xstat64(t *TLS, pathname, statbuf uintptr) int32 { - if _, _, err := unix.Syscall(unix.SYS_STAT64, pathname, statbuf, 0); err != 0 { - if dmesgs { - dmesg("%v: %q: %v", origin(1), GoString(pathname), err) - } - t.setErrno(err) - return -1 - } - - if dmesgs { - dmesg("%v: %q: ok", origin(1), GoString(pathname)) - } - return 0 -} - -// int fstat(int fd, struct stat *statbuf); -func Xfstat64(t *TLS, fd int32, statbuf uintptr) int32 { - if _, _, err := unix.Syscall(unix.SYS_FSTAT64, uintptr(fd), statbuf, 0); err != 0 { - if dmesgs { - dmesg("%v: fd %d: %v", origin(1), fd, err) - } - t.setErrno(err) - return -1 - } - - if dmesgs { - dmesg("%v: %d, size %#x: ok\n%+v", origin(1), fd, (*stat.Stat)(unsafe.Pointer(statbuf)).Fst_size, (*stat.Stat)(unsafe.Pointer(statbuf))) - } - return 0 -} - -// void *mremap(void *old_address, size_t old_size, size_t new_size, int flags, ... /* void *new_address */); -func Xmremap(t *TLS, old_address uintptr, old_size, new_size types.Size_t, flags int32, args uintptr) uintptr { - var arg uintptr - if args != 0 { - arg = *(*uintptr)(unsafe.Pointer(args)) - } - data, _, err := unix.Syscall6(unix.SYS_MREMAP, old_address, uintptr(old_size), uintptr(new_size), uintptr(flags), arg, 0) - if err != 0 { - if dmesgs { - dmesg("%v: %v", origin(1), err) - } - t.setErrno(err) - return ^uintptr(0) // (void*)-1 - } - - if dmesgs { - dmesg("%v: %#x", origin(1), data) - } - return data -} - -// void *mmap(void *addr, size_t length, int prot, int flags, int fd, off_t offset); -func Xmmap(t *TLS, addr uintptr, length types.Size_t, prot, flags, fd int32, offset types.Off_t) uintptr { - return Xmmap64(t, addr, length, prot, flags, fd, offset) -} - -// void *mmap(void *addr, size_t length, int prot, int flags, int fd, off_t offset); -func Xmmap64(t *TLS, addr uintptr, length types.Size_t, prot, flags, fd int32, offset types.Off_t) uintptr { - data, _, err := unix.Syscall6(unix.SYS_MMAP2, addr, uintptr(length), uintptr(prot), uintptr(flags), uintptr(fd), uintptr(offset>>12)) - if err != 0 { - if dmesgs { - dmesg("%v: %v", origin(1), err) - } - t.setErrno(err) - return ^uintptr(0) // (void*)-1 - } - - if dmesgs { - dmesg("%v: %#x", origin(1), data) - } - return data -} - -// int symlink(const char *target, const char *linkpath); -func Xsymlink(t *TLS, target, linkpath uintptr) int32 { - if err := unix.Symlink(GoString(target), GoString(linkpath)); err != nil { - t.setErrno(err) - return -1 - } - - if dmesgs { - dmesg("%v: %q %q: ok", origin(1), GoString(target), GoString(linkpath)) - } - return 0 -} - -// int chmod(const char *pathname, mode_t mode) -func Xchmod(t *TLS, pathname uintptr, mode types.Mode_t) int32 { - if err := unix.Chmod(GoString(pathname), uint32(mode)); err != nil { - t.setErrno(err) - return -1 - } - - if dmesgs { - dmesg("%v: %q %#o: ok", origin(1), GoString(pathname), mode) - } - return 0 -} - -// int ftruncate(int fd, off_t length); -func Xftruncate64(t *TLS, fd int32, length types.Off_t) int32 { - if _, _, err := unix.Syscall6(unix.SYS_FTRUNCATE64, uintptr(fd), 0, uintptr(length), uintptr(length>>32), 0, 0); err != 0 { - if dmesgs { - dmesg("%v: fd %d: %v", origin(1), fd, err) - } - t.setErrno(err) - return -1 - } - - if dmesgs { - dmesg("%v: %d %#x: ok", origin(1), fd, length) - } - return 0 -} - -// off64_t lseek64(int fd, off64_t offset, int whence); -func Xlseek64(t *TLS, fd int32, offset types.Off_t, whence int32) types.Off_t { - n, err := unix.Seek(int(fd), int64(offset), int(whence)) - if err != nil { - if dmesgs { - dmesg("%v: fd %v, off %#x, whence %v: %v", origin(1), fd, offset, whenceStr(whence), err) - } - t.setErrno(err) - return -1 - } - - if dmesgs { - dmesg("%v: fd %v, off %#x, whence %v: %#x", origin(1), fd, offset, whenceStr(whence), n) - } - return types.Off_t(n) -} - -// int utime(const char *filename, const struct utimbuf *times); -func Xutime(t *TLS, filename, times uintptr) int32 { - if err := unix.Utime(GoString(filename), (*unix.Utimbuf)(unsafe.Pointer(times))); err != nil { - t.setErrno(err) - return -1 - } - - return 0 -} - -// unsigned int alarm(unsigned int seconds); -func Xalarm(t *TLS, seconds uint32) uint32 { - panic(todo("")) -} - -// int getrlimit(int resource, struct rlimit *rlim); -func Xgetrlimit64(t *TLS, resource int32, rlim uintptr) int32 { - if err := unix.Getrlimit(int(resource), (*unix.Rlimit)(unsafe.Pointer(rlim))); err != nil { - t.setErrno(err) - return -1 - } - - return 0 -} - -// time_t time(time_t *tloc); -func Xtime(t *TLS, tloc uintptr) types.Time_t { - n := time.Now().UTC().Unix() - if tloc != 0 { - *(*types.Time_t)(unsafe.Pointer(tloc)) = types.Time_t(n) - } - return types.Time_t(n) -} - -// int utimes(const char *filename, const struct timeval times[2]); -func Xutimes(t *TLS, filename, times uintptr) int32 { - var tv []unix.Timeval - if times != 0 { - tv = make([]unix.Timeval, 2) - *(*[2]unix.Timeval)(unsafe.Pointer(&tv[0])) = *(*[2]unix.Timeval)(unsafe.Pointer(times)) - } - if err := unix.Utimes(GoString(filename), tv); err != nil { - t.setErrno(err) - return -1 - } - - if times != 0 { - *(*[2]unix.Timeval)(unsafe.Pointer(times)) = *(*[2]unix.Timeval)(unsafe.Pointer(&tv[0])) - } - if dmesgs { - dmesg("%v: %q: ok", origin(1), GoString(filename)) - } - return 0 -} - -// int unlink(const char *pathname); -func Xunlink(t *TLS, pathname uintptr) int32 { - if err := unix.Unlinkat(unix.AT_FDCWD, GoString(pathname), 0); err != nil { - t.setErrno(err) - return -1 - } - - if dmesgs { - dmesg("%v: %q: ok", origin(1), GoString(pathname)) - } - return 0 -} - -// int access(const char *pathname, int mode); -func Xaccess(t *TLS, pathname uintptr, mode int32) int32 { - if err := unix.Faccessat(unix.AT_FDCWD, GoString(pathname), uint32(mode), 0); err != nil { - if dmesgs { - dmesg("%v: %q: %v", origin(1), GoString(pathname), err) - } - t.setErrno(err) - return -1 - } - - if dmesgs { - dmesg("%v: %q %#o: ok", origin(1), GoString(pathname), mode) - } - return 0 -} - -// int rmdir(const char *pathname); -func Xrmdir(t *TLS, pathname uintptr) int32 { - if err := unix.Rmdir(GoString(pathname)); err != nil { - t.setErrno(err) - return -1 - } - - if dmesgs { - dmesg("%v: %q: ok", origin(1), GoString(pathname)) - } - return 0 -} - -// int rename(const char *oldpath, const char *newpath); -func Xrename(t *TLS, oldpath, newpath uintptr) int32 { - if err := unix.Rename(GoString(oldpath), GoString(newpath)); err != nil { - t.setErrno(err) - return -1 - } - - return 0 -} - -// int mknod(const char *pathname, mode_t mode, dev_t dev); -func Xmknod(t *TLS, pathname uintptr, mode types.Mode_t, dev types.Dev_t) int32 { - panic(todo("")) -} - -// int chown(const char *pathname, uid_t owner, gid_t group); -func Xchown(t *TLS, pathname uintptr, owner types.Uid_t, group types.Gid_t) int32 { - if err := unix.Chown(GoString(pathname), int(owner), int(group)); err != nil { - t.setErrno(err) - return -1 - } - - return 0 -} - -// int link(const char *oldpath, const char *newpath); -func Xlink(t *TLS, oldpath, newpath uintptr) int32 { - panic(todo("")) -} - -// int pipe(int pipefd[2]); -func Xpipe(t *TLS, pipefd uintptr) int32 { - if _, _, err := unix.Syscall(unix.SYS_PIPE2, pipefd, 0, 0); err != 0 { - t.setErrno(err) - return -1 - } - - return 0 -} - -// int dup2(int oldfd, int newfd); -func Xdup2(t *TLS, oldfd, newfd int32) int32 { - panic(todo("")) -} - -// ssize_t readlink(const char *restrict path, char *restrict buf, size_t bufsize); -func Xreadlink(t *TLS, path, buf uintptr, bufsize types.Size_t) types.Ssize_t { - n, err := unix.Readlink(GoString(path), GoBytes(buf, int(bufsize))) - if err != nil { - t.setErrno(err) - return -1 - } - - return types.Ssize_t(n) -} - -// FILE *fopen64(const char *pathname, const char *mode); -func Xfopen64(t *TLS, pathname, mode uintptr) uintptr { - m := strings.ReplaceAll(GoString(mode), "b", "") - var flags int - switch m { - case "r": - flags = os.O_RDONLY - case "r+": - flags = os.O_RDWR - case "w": - flags = os.O_WRONLY | os.O_CREATE | os.O_TRUNC - case "w+": - flags = os.O_RDWR | os.O_CREATE | os.O_TRUNC - case "a": - flags = os.O_WRONLY | os.O_CREATE | os.O_APPEND - case "a+": - flags = os.O_RDWR | os.O_CREATE | os.O_APPEND - default: - panic(m) - } - //TODO- flags |= fcntl.O_LARGEFILE - fd, _, err := unix.Syscall(unix.SYS_OPEN, pathname, uintptr(flags|unix.O_LARGEFILE), 0666) - if err != 0 { - t.setErrno(err) - return 0 - } - - if p := newFile(t, int32(fd)); p != 0 { - return p - } - - Xclose(t, int32(fd)) - t.setErrno(errno.ENOMEM) - return 0 -} - -// int mkdir(const char *path, mode_t mode); -func Xmkdir(t *TLS, path uintptr, mode types.Mode_t) int32 { - if err := unix.Mkdir(GoString(path), uint32(mode)); err != nil { - t.setErrno(err) - return -1 - } - - if dmesgs { - dmesg("%v: %q: ok", origin(1), GoString(path)) - } - return 0 -} - -//TODO- // int sscanf(const char *str, const char *format, ...); -//TODO- func Xsscanf(t *TLS, str, format, va uintptr) int32 { -//TODO- r := scanf(strings.NewReader(GoString(str)), format, va) -//TODO- // if dmesgs { -//TODO- // dmesg("%v: %q %q: %d", origin(1), GoString(str), GoString(format), r) -//TODO- // } -//TODO- return r -//TODO- } diff --git a/vendor/modernc.org/libc/libc_linux_arm64.go b/vendor/modernc.org/libc/libc_linux_arm64.go deleted file mode 100644 index b8607c9c2..000000000 --- a/vendor/modernc.org/libc/libc_linux_arm64.go +++ /dev/null @@ -1,439 +0,0 @@ -// Copyright 2020 The Libc Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package libc // import "modernc.org/libc" - -import ( - "os" - "strings" - "time" - "unsafe" - - "golang.org/x/sys/unix" - "modernc.org/libc/errno" - "modernc.org/libc/fcntl" - "modernc.org/libc/signal" - "modernc.org/libc/sys/stat" - "modernc.org/libc/sys/types" -) - -// int sigaction(int signum, const struct sigaction *act, struct sigaction *oldact); -func Xsigaction(t *TLS, signum int32, act, oldact uintptr) int32 { - // musl/src/internal/ksigaction.h - // - // struct k_sigaction { - // void (*handler)(int); - // unsigned long flags; - // void (*restorer)(void); - // unsigned mask[2]; - // }; - type k_sigaction struct { - handler uintptr - flags ulong - restorer uintptr - mask [2]uint32 - } - - var kact, koldact uintptr - if act != 0 { - sz := int(unsafe.Sizeof(k_sigaction{})) - kact = t.Alloc(sz) - defer t.Free(sz) - *(*k_sigaction)(unsafe.Pointer(kact)) = k_sigaction{ - handler: (*signal.Sigaction)(unsafe.Pointer(act)).F__sigaction_handler.Fsa_handler, - flags: ulong((*signal.Sigaction)(unsafe.Pointer(act)).Fsa_flags), - restorer: (*signal.Sigaction)(unsafe.Pointer(act)).Fsa_restorer, - } - Xmemcpy(t, kact+unsafe.Offsetof(k_sigaction{}.mask), act+unsafe.Offsetof(signal.Sigaction{}.Fsa_mask), types.Size_t(unsafe.Sizeof(k_sigaction{}.mask))) - } - if oldact != 0 { - panic(todo("")) - } - - if _, _, err := unix.Syscall6(unix.SYS_RT_SIGACTION, uintptr(signum), kact, koldact, unsafe.Sizeof(k_sigaction{}.mask), 0, 0); err != 0 { - t.setErrno(err) - return -1 - } - - if oldact != 0 { - panic(todo("")) - } - - return 0 -} - -// int lstat(const char *pathname, struct stat *statbuf); -func Xlstat64(t *TLS, pathname, statbuf uintptr) int32 { - if err := unix.Lstat(GoString(pathname), (*unix.Stat_t)(unsafe.Pointer(statbuf))); err != nil { - if dmesgs { - dmesg("%v: %q: %v", origin(1), GoString(pathname), err) - } - t.setErrno(err) - return -1 - } - - if dmesgs { - dmesg("%v: %q: ok", origin(1), GoString(pathname)) - } - return 0 -} - -// int stat(const char *pathname, struct stat *statbuf); -func Xstat64(t *TLS, pathname, statbuf uintptr) int32 { - if err := unix.Fstatat(unix.AT_FDCWD, GoString(pathname), (*unix.Stat_t)(unsafe.Pointer(statbuf)), 0); err != nil { - if dmesgs { - dmesg("%v: %q: %v", origin(1), GoString(pathname), err) - } - t.setErrno(err) - return -1 - } - - if dmesgs { - dmesg("%v: %q: ok", origin(1), GoString(pathname)) - } - return 0 -} - -// int unlink(const char *pathname); -func Xunlink(t *TLS, pathname uintptr) int32 { - if err := unix.Unlinkat(unix.AT_FDCWD, GoString(pathname), 0); err != nil { - t.setErrno(err) - return -1 - } - - if dmesgs { - dmesg("%v: %q: ok", origin(1), GoString(pathname)) - } - return 0 -} - -// int access(const char *pathname, int mode); -func Xaccess(t *TLS, pathname uintptr, mode int32) int32 { - if err := unix.Faccessat(unix.AT_FDCWD, GoString(pathname), uint32(mode), 0); err != nil { - if dmesgs { - dmesg("%v: %q: %v", origin(1), GoString(pathname), err) - } - t.setErrno(err) - return -1 - } - - if dmesgs { - dmesg("%v: %q %#o: ok", origin(1), GoString(pathname), mode) - } - return 0 -} - -// off64_t lseek64(int fd, off64_t offset, int whence); -func Xlseek64(t *TLS, fd int32, offset types.Off_t, whence int32) types.Off_t { - n, _, err := unix.Syscall(unix.SYS_LSEEK, uintptr(fd), uintptr(offset), uintptr(whence)) - if err != 0 { - if dmesgs { - dmesg("%v: fd %v, off %#x, whence %v: %v", origin(1), fd, offset, whenceStr(whence), err) - } - t.setErrno(err) - return -1 - } - - if dmesgs { - dmesg("%v: fd %v, off %#x, whence %v: %#x", origin(1), fd, offset, whenceStr(whence), n) - } - return types.Off_t(n) -} - -// int fstat(int fd, struct stat *statbuf); -func Xfstat64(t *TLS, fd int32, statbuf uintptr) int32 { - if _, _, err := unix.Syscall(unix.SYS_FSTAT, uintptr(fd), statbuf, 0); err != 0 { - if dmesgs { - dmesg("%v: fd %d: %v", origin(1), fd, err) - } - t.setErrno(err) - return -1 - } - - if dmesgs { - dmesg("%v: %d size %#x: ok\n%+v", origin(1), fd, (*stat.Stat)(unsafe.Pointer(statbuf)).Fst_size, (*stat.Stat)(unsafe.Pointer(statbuf))) - } - return 0 -} - -// int ftruncate(int fd, off_t length); -func Xftruncate64(t *TLS, fd int32, length types.Off_t) int32 { - if _, _, err := unix.Syscall(unix.SYS_FTRUNCATE, uintptr(fd), uintptr(length), 0); err != 0 { - if dmesgs { - dmesg("%v: fd %d: %v", origin(1), fd, err) - } - t.setErrno(err) - return -1 - } - - if dmesgs { - dmesg("%v: %d %#x: ok", origin(1), fd, length) - } - return 0 -} - -// int fcntl(int fd, int cmd, ... /* arg */ ); -func Xfcntl64(t *TLS, fd, cmd int32, args uintptr) int32 { - var arg uintptr - if args != 0 { - arg = *(*uintptr)(unsafe.Pointer(args)) - } - if cmd == fcntl.F_SETFL { - arg |= unix.O_LARGEFILE - } - n, _, err := unix.Syscall(unix.SYS_FCNTL, uintptr(fd), uintptr(cmd), arg) - if err != 0 { - if dmesgs { - dmesg("%v: fd %v cmd %v", origin(1), fcntlCmdStr(fd), cmd) - } - t.setErrno(err) - return -1 - } - - if dmesgs { - dmesg("%v: %d %s %#x: %d", origin(1), fd, fcntlCmdStr(cmd), arg, n) - } - return int32(n) -} - -// int rmdir(const char *pathname); -func Xrmdir(t *TLS, pathname uintptr) int32 { - if err := unix.Rmdir(GoString(pathname)); err != nil { - t.setErrno(err) - return -1 - } - - if dmesgs { - dmesg("%v: %q: ok", origin(1), GoString(pathname)) - } - return 0 -} - -// int rename(const char *oldpath, const char *newpath); -func Xrename(t *TLS, oldpath, newpath uintptr) int32 { - if err := unix.Rename(GoString(oldpath), GoString(newpath)); err != nil { - t.setErrno(err) - return -1 - } - - return 0 -} - -// int mknod(const char *pathname, mode_t mode, dev_t dev); -func Xmknod(t *TLS, pathname uintptr, mode types.Mode_t, dev types.Dev_t) int32 { - panic(todo("")) -} - -// int chown(const char *pathname, uid_t owner, gid_t group); -func Xchown(t *TLS, pathname uintptr, owner types.Uid_t, group types.Gid_t) int32 { - if err := unix.Chown(GoString(pathname), int(owner), int(group)); err != nil { - t.setErrno(err) - return -1 - } - - return 0 -} - -// int link(const char *oldpath, const char *newpath); -func Xlink(t *TLS, oldpath, newpath uintptr) int32 { - panic(todo("")) -} - -// int pipe(int pipefd[2]); -func Xpipe(t *TLS, pipefd uintptr) int32 { - if _, _, err := unix.Syscall(unix.SYS_PIPE2, pipefd, 0, 0); err != 0 { - t.setErrno(err) - return -1 - } - - return 0 -} - -// int dup2(int oldfd, int newfd); -func Xdup2(t *TLS, oldfd, newfd int32) int32 { - panic(todo("")) -} - -// int getrlimit(int resource, struct rlimit *rlim); -func Xgetrlimit64(t *TLS, resource int32, rlim uintptr) int32 { - if _, _, err := unix.Syscall(unix.SYS_GETRLIMIT, uintptr(resource), uintptr(rlim), 0); err != 0 { - t.setErrno(err) - return -1 - } - - return 0 -} - -// ssize_t readlink(const char *restrict path, char *restrict buf, size_t bufsize); -func Xreadlink(t *TLS, path, buf uintptr, bufsize types.Size_t) types.Ssize_t { - n, err := unix.Readlink(GoString(path), GoBytes(buf, int(bufsize))) - if err != nil { - t.setErrno(err) - return -1 - } - - return types.Ssize_t(n) -} - -// FILE *fopen64(const char *pathname, const char *mode); -func Xfopen64(t *TLS, pathname, mode uintptr) uintptr { - m := strings.ReplaceAll(GoString(mode), "b", "") - var flags int - switch m { - case "r": - flags = os.O_RDONLY - case "r+": - flags = os.O_RDWR - case "w": - flags = os.O_WRONLY | os.O_CREATE | os.O_TRUNC - case "w+": - flags = os.O_RDWR | os.O_CREATE | os.O_TRUNC - case "a": - flags = os.O_WRONLY | os.O_CREATE | os.O_APPEND - case "a+": - flags = os.O_RDWR | os.O_CREATE | os.O_APPEND - default: - panic(m) - } - //TODO- flags |= fcntl.O_LARGEFILE - fd, err := unix.Openat(unix.AT_FDCWD, GoString(pathname), flags, 0666) - if err != nil { - t.setErrno(err) - return 0 - } - - if p := newFile(t, int32(fd)); p != 0 { - return p - } - - Xclose(t, int32(fd)) - t.setErrno(errno.ENOMEM) - return 0 -} - -// int mkdir(const char *path, mode_t mode); -func Xmkdir(t *TLS, path uintptr, mode types.Mode_t) int32 { - if err := unix.Mkdir(GoString(path), uint32(mode)); err != nil { - t.setErrno(err) - return -1 - } - - if dmesgs { - dmesg("%v: %q: ok", origin(1), GoString(path)) - } - return 0 -} - -// void *mremap(void *old_address, size_t old_size, size_t new_size, int flags, ... /* void *new_address */); -func Xmremap(t *TLS, old_address uintptr, old_size, new_size types.Size_t, flags int32, args uintptr) uintptr { - var arg uintptr - if args != 0 { - arg = *(*uintptr)(unsafe.Pointer(args)) - } - data, _, err := unix.Syscall6(unix.SYS_MREMAP, old_address, uintptr(old_size), uintptr(new_size), uintptr(flags), arg, 0) - if err != 0 { - if dmesgs { - dmesg("%v: %v", origin(1), err) - } - t.setErrno(err) - return ^uintptr(0) // (void*)-1 - } - - if dmesgs { - dmesg("%v: %#x", origin(1), data) - } - return data -} - -func Xmmap(t *TLS, addr uintptr, length types.Size_t, prot, flags, fd int32, offset types.Off_t) uintptr { - return Xmmap64(t, addr, length, prot, flags, fd, offset) -} - -// void *mmap(void *addr, size_t length, int prot, int flags, int fd, off_t offset); -func Xmmap64(t *TLS, addr uintptr, length types.Size_t, prot, flags, fd int32, offset types.Off_t) uintptr { - data, _, err := unix.Syscall6(unix.SYS_MMAP, addr, uintptr(length), uintptr(prot), uintptr(flags), uintptr(fd), uintptr(offset)) - if err != 0 { - if dmesgs { - dmesg("%v: %v", origin(1), err) - } - t.setErrno(err) - return ^uintptr(0) // (void*)-1 - } - - if dmesgs { - dmesg("%v: %#x", origin(1), data) - } - return data -} - -// int symlink(const char *target, const char *linkpath); -func Xsymlink(t *TLS, target, linkpath uintptr) int32 { - if err := unix.Symlink(GoString(target), GoString(linkpath)); err != nil { - t.setErrno(err) - return -1 - } - - if dmesgs { - dmesg("%v: %q %q: ok", origin(1), GoString(target), GoString(linkpath)) - } - return 0 -} - -// int chmod(const char *pathname, mode_t mode) -func Xchmod(t *TLS, pathname uintptr, mode types.Mode_t) int32 { - if err := unix.Chmod(GoString(pathname), uint32(mode)); err != nil { - t.setErrno(err) - return -1 - } - - if dmesgs { - dmesg("%v: %q %#o: ok", origin(1), GoString(pathname), mode) - } - return 0 -} - -// time_t time(time_t *tloc); -func Xtime(t *TLS, tloc uintptr) types.Time_t { - n := time.Now().UTC().Unix() - if tloc != 0 { - *(*types.Time_t)(unsafe.Pointer(tloc)) = types.Time_t(n) - } - return types.Time_t(n) -} - -// int utimes(const char *filename, const struct timeval times[2]); -func Xutimes(t *TLS, filename, times uintptr) int32 { - var tv []unix.Timeval - if times != 0 { - tv = make([]unix.Timeval, 2) - *(*[2]unix.Timeval)(unsafe.Pointer(&tv[0])) = *(*[2]unix.Timeval)(unsafe.Pointer(times)) - } - if err := unix.Utimes(GoString(filename), tv); err != nil { - t.setErrno(err) - return -1 - } - - if times != 0 { - *(*[2]unix.Timeval)(unsafe.Pointer(times)) = *(*[2]unix.Timeval)(unsafe.Pointer(&tv[0])) - } - if dmesgs { - dmesg("%v: %q: ok", origin(1), GoString(filename)) - } - return 0 -} - -// int utime(const char *filename, const struct utimbuf *times); -func Xutime(t *TLS, filename, times uintptr) int32 { - if err := unix.Utime(GoString(filename), (*unix.Utimbuf)(unsafe.Pointer(times))); err != nil { - t.setErrno(err) - return -1 - } - - return 0 -} - -// unsigned int alarm(unsigned int seconds); -func Xalarm(t *TLS, seconds uint32) uint32 { - panic(todo("")) -} diff --git a/vendor/modernc.org/libc/libc_linux_ppc64le.go b/vendor/modernc.org/libc/libc_linux_mips64le.go similarity index 64% rename from vendor/modernc.org/libc/libc_linux_ppc64le.go rename to vendor/modernc.org/libc/libc_linux_mips64le.go index f04d13765..16631d5c9 100644 --- a/vendor/modernc.org/libc/libc_linux_ppc64le.go +++ b/vendor/modernc.org/libc/libc_linux_mips64le.go @@ -7,6 +7,7 @@ package libc // import "modernc.org/libc" import ( "os" "strings" + gotime "time" "unicode" "unsafe" @@ -14,12 +15,21 @@ import ( "modernc.org/libc/errno" "modernc.org/libc/fcntl" "modernc.org/libc/signal" + "modernc.org/libc/stdio" "modernc.org/libc/sys/types" + "modernc.org/libc/time" "modernc.org/libc/wctype" ) +var ( + startTime = gotime.Now() // For clock(3) +) + // int sigaction(int signum, const struct sigaction *act, struct sigaction *oldact); func Xsigaction(t *TLS, signum int32, act, oldact uintptr) int32 { + if __ccgo_strace { + trc("t=%v signum=%v oldact=%v, (%v:)", t, signum, oldact, origin(2)) + } // musl/arch/x86_64/ksigaction.h // // struct k_sigaction { @@ -65,18 +75,13 @@ func Xsigaction(t *TLS, signum int32, act, oldact uintptr) int32 { // int fcntl(int fd, int cmd, ... /* arg */ ); func Xfcntl64(t *TLS, fd, cmd int32, args uintptr) int32 { + if __ccgo_strace { + trc("t=%v cmd=%v args=%v, (%v:)", t, cmd, args, origin(2)) + } var arg uintptr if args != 0 { arg = *(*uintptr)(unsafe.Pointer(args)) } - switch cmd { - case unix.F_GETLK64: // 0xc - cmd = unix.F_GETLK // 0x5 - case unix.F_SETLK64: // 0xd - cmd = unix.F_SETLK // 0x6 - case unix.F_SETLKW64: // 0xe - cmd = unix.F_SETLKW // 0x7 - } if cmd == fcntl.F_SETFL { arg |= unix.O_LARGEFILE } @@ -97,6 +102,9 @@ func Xfcntl64(t *TLS, fd, cmd int32, args uintptr) int32 { // int lstat(const char *pathname, struct stat *statbuf); func Xlstat64(t *TLS, pathname, statbuf uintptr) int32 { + if __ccgo_strace { + trc("t=%v statbuf=%v, (%v:)", t, statbuf, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_LSTAT, pathname, statbuf, 0); err != 0 { // if dmesgs { // dmesg("%v: %q: %v", origin(1), GoString(pathname), err) @@ -113,6 +121,9 @@ func Xlstat64(t *TLS, pathname, statbuf uintptr) int32 { // int stat(const char *pathname, struct stat *statbuf); func Xstat64(t *TLS, pathname, statbuf uintptr) int32 { + if __ccgo_strace { + trc("t=%v statbuf=%v, (%v:)", t, statbuf, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_STAT, pathname, statbuf, 0); err != 0 { // if dmesgs { // dmesg("%v: %q: %v", origin(1), GoString(pathname), err) @@ -129,6 +140,9 @@ func Xstat64(t *TLS, pathname, statbuf uintptr) int32 { // int fstat(int fd, struct stat *statbuf); func Xfstat64(t *TLS, fd int32, statbuf uintptr) int32 { + if __ccgo_strace { + trc("t=%v fd=%v statbuf=%v, (%v:)", t, fd, statbuf, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_FSTAT, uintptr(fd), statbuf, 0); err != 0 { // if dmesgs { // dmesg("%v: fd %d: %v", origin(1), fd, err) @@ -144,11 +158,17 @@ func Xfstat64(t *TLS, fd int32, statbuf uintptr) int32 { } func Xmmap(t *TLS, addr uintptr, length types.Size_t, prot, flags, fd int32, offset types.Off_t) uintptr { + if __ccgo_strace { + trc("t=%v addr=%v length=%v fd=%v offset=%v, (%v:)", t, addr, length, fd, offset, origin(2)) + } return Xmmap64(t, addr, length, prot, flags, fd, offset) } // void *mmap(void *addr, size_t length, int prot, int flags, int fd, off_t offset); func Xmmap64(t *TLS, addr uintptr, length types.Size_t, prot, flags, fd int32, offset types.Off_t) uintptr { + if __ccgo_strace { + trc("t=%v addr=%v length=%v fd=%v offset=%v, (%v:)", t, addr, length, fd, offset, origin(2)) + } data, _, err := unix.Syscall6(unix.SYS_MMAP, addr, uintptr(length), uintptr(prot), uintptr(flags), uintptr(fd), uintptr(offset)) if err != 0 { // if dmesgs { @@ -166,6 +186,9 @@ func Xmmap64(t *TLS, addr uintptr, length types.Size_t, prot, flags, fd int32, o // void *mremap(void *old_address, size_t old_size, size_t new_size, int flags, ... /* void *new_address */); func Xmremap(t *TLS, old_address uintptr, old_size, new_size types.Size_t, flags int32, args uintptr) uintptr { + if __ccgo_strace { + trc("t=%v old_address=%v new_size=%v flags=%v args=%v, (%v:)", t, old_address, new_size, flags, args, origin(2)) + } var arg uintptr if args != 0 { arg = *(*uintptr)(unsafe.Pointer(args)) @@ -187,6 +210,9 @@ func Xmremap(t *TLS, old_address uintptr, old_size, new_size types.Size_t, flags // int ftruncate(int fd, off_t length); func Xftruncate64(t *TLS, fd int32, length types.Off_t) int32 { + if __ccgo_strace { + trc("t=%v fd=%v length=%v, (%v:)", t, fd, length, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_FTRUNCATE, uintptr(fd), uintptr(length), 0); err != 0 { // if dmesgs { // dmesg("%v: fd %d: %v", origin(1), fd, err) @@ -203,6 +229,9 @@ func Xftruncate64(t *TLS, fd int32, length types.Off_t) int32 { // off64_t lseek64(int fd, off64_t offset, int whence); func Xlseek64(t *TLS, fd int32, offset types.Off_t, whence int32) types.Off_t { + if __ccgo_strace { + trc("t=%v fd=%v offset=%v whence=%v, (%v:)", t, fd, offset, whence, origin(2)) + } n, _, err := unix.Syscall(unix.SYS_LSEEK, uintptr(fd), uintptr(offset), uintptr(whence)) if err != 0 { // if dmesgs { @@ -220,6 +249,9 @@ func Xlseek64(t *TLS, fd int32, offset types.Off_t, whence int32) types.Off_t { // int utime(const char *filename, const struct utimbuf *times); func Xutime(t *TLS, filename, times uintptr) int32 { + if __ccgo_strace { + trc("t=%v times=%v, (%v:)", t, times, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_UTIME, filename, times, 0); err != 0 { t.setErrno(err) return -1 @@ -230,6 +262,9 @@ func Xutime(t *TLS, filename, times uintptr) int32 { // unsigned int alarm(unsigned int seconds); func Xalarm(t *TLS, seconds uint32) uint32 { + if __ccgo_strace { + trc("t=%v seconds=%v, (%v:)", t, seconds, origin(2)) + } n, _, err := unix.Syscall(unix.SYS_ALARM, uintptr(seconds), 0, 0) if err != 0 { panic(todo("")) @@ -240,12 +275,10 @@ func Xalarm(t *TLS, seconds uint32) uint32 { // time_t time(time_t *tloc); func Xtime(t *TLS, tloc uintptr) types.Time_t { - n, _, err := unix.Syscall(unix.SYS_TIME, tloc, 0, 0) - if err != 0 { - t.setErrno(err) - return types.Time_t(-1) + if __ccgo_strace { + trc("t=%v tloc=%v, (%v:)", t, tloc, origin(2)) } - + n := gotime.Now().UTC().Unix() if tloc != 0 { *(*types.Time_t)(unsafe.Pointer(tloc)) = types.Time_t(n) } @@ -254,6 +287,9 @@ func Xtime(t *TLS, tloc uintptr) types.Time_t { // int getrlimit(int resource, struct rlimit *rlim); func Xgetrlimit64(t *TLS, resource int32, rlim uintptr) int32 { + if __ccgo_strace { + trc("t=%v resource=%v rlim=%v, (%v:)", t, resource, rlim, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_GETRLIMIT, uintptr(resource), uintptr(rlim), 0); err != 0 { t.setErrno(err) return -1 @@ -264,6 +300,9 @@ func Xgetrlimit64(t *TLS, resource int32, rlim uintptr) int32 { // int mkdir(const char *path, mode_t mode); func Xmkdir(t *TLS, path uintptr, mode types.Mode_t) int32 { + if __ccgo_strace { + trc("t=%v path=%v mode=%v, (%v:)", t, path, mode, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_MKDIR, path, uintptr(mode), 0); err != 0 { t.setErrno(err) return -1 @@ -277,6 +316,9 @@ func Xmkdir(t *TLS, path uintptr, mode types.Mode_t) int32 { // int symlink(const char *target, const char *linkpath); func Xsymlink(t *TLS, target, linkpath uintptr) int32 { + if __ccgo_strace { + trc("t=%v linkpath=%v, (%v:)", t, linkpath, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_SYMLINK, target, linkpath, 0); err != 0 { t.setErrno(err) return -1 @@ -290,6 +332,9 @@ func Xsymlink(t *TLS, target, linkpath uintptr) int32 { // int chmod(const char *pathname, mode_t mode) func Xchmod(t *TLS, pathname uintptr, mode types.Mode_t) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v mode=%v, (%v:)", t, pathname, mode, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_CHMOD, pathname, uintptr(mode), 0); err != 0 { t.setErrno(err) return -1 @@ -303,6 +348,9 @@ func Xchmod(t *TLS, pathname uintptr, mode types.Mode_t) int32 { // int utimes(const char *filename, const struct timeval times[2]); func Xutimes(t *TLS, filename, times uintptr) int32 { + if __ccgo_strace { + trc("t=%v times=%v, (%v:)", t, times, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_UTIMES, filename, times, 0); err != 0 { t.setErrno(err) return -1 @@ -316,6 +364,9 @@ func Xutimes(t *TLS, filename, times uintptr) int32 { // int unlink(const char *pathname); func Xunlink(t *TLS, pathname uintptr) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v, (%v:)", t, pathname, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_UNLINK, pathname, 0, 0); err != 0 { t.setErrno(err) return -1 @@ -329,6 +380,9 @@ func Xunlink(t *TLS, pathname uintptr) int32 { // int access(const char *pathname, int mode); func Xaccess(t *TLS, pathname uintptr, mode int32) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v mode=%v, (%v:)", t, pathname, mode, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_ACCESS, pathname, uintptr(mode), 0); err != 0 { // if dmesgs { // dmesg("%v: %q: %v", origin(1), GoString(pathname), err) @@ -345,6 +399,9 @@ func Xaccess(t *TLS, pathname uintptr, mode int32) int32 { // int rmdir(const char *pathname); func Xrmdir(t *TLS, pathname uintptr) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v, (%v:)", t, pathname, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_RMDIR, pathname, 0, 0); err != 0 { t.setErrno(err) return -1 @@ -358,6 +415,9 @@ func Xrmdir(t *TLS, pathname uintptr) int32 { // int rename(const char *oldpath, const char *newpath); func Xrename(t *TLS, oldpath, newpath uintptr) int32 { + if __ccgo_strace { + trc("t=%v newpath=%v, (%v:)", t, newpath, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_RENAME, oldpath, newpath, 0); err != 0 { t.setErrno(err) return -1 @@ -368,6 +428,9 @@ func Xrename(t *TLS, oldpath, newpath uintptr) int32 { // int mknod(const char *pathname, mode_t mode, dev_t dev); func Xmknod(t *TLS, pathname uintptr, mode types.Mode_t, dev types.Dev_t) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v mode=%v dev=%v, (%v:)", t, pathname, mode, dev, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_MKNOD, pathname, uintptr(mode), uintptr(dev)); err != 0 { t.setErrno(err) return -1 @@ -378,6 +441,9 @@ func Xmknod(t *TLS, pathname uintptr, mode types.Mode_t, dev types.Dev_t) int32 // int chown(const char *pathname, uid_t owner, gid_t group); func Xchown(t *TLS, pathname uintptr, owner types.Uid_t, group types.Gid_t) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v owner=%v group=%v, (%v:)", t, pathname, owner, group, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_CHOWN, pathname, uintptr(owner), uintptr(group)); err != 0 { t.setErrno(err) return -1 @@ -388,6 +454,9 @@ func Xchown(t *TLS, pathname uintptr, owner types.Uid_t, group types.Gid_t) int3 // int link(const char *oldpath, const char *newpath); func Xlink(t *TLS, oldpath, newpath uintptr) int32 { + if __ccgo_strace { + trc("t=%v newpath=%v, (%v:)", t, newpath, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_LINK, oldpath, newpath, 0); err != 0 { t.setErrno(err) return -1 @@ -398,6 +467,9 @@ func Xlink(t *TLS, oldpath, newpath uintptr) int32 { // int pipe(int pipefd[2]); func Xpipe(t *TLS, pipefd uintptr) int32 { + if __ccgo_strace { + trc("t=%v pipefd=%v, (%v:)", t, pipefd, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_PIPE, pipefd, 0, 0); err != 0 { t.setErrno(err) return -1 @@ -408,6 +480,9 @@ func Xpipe(t *TLS, pipefd uintptr) int32 { // int dup2(int oldfd, int newfd); func Xdup2(t *TLS, oldfd, newfd int32) int32 { + if __ccgo_strace { + trc("t=%v newfd=%v, (%v:)", t, newfd, origin(2)) + } n, _, err := unix.Syscall(unix.SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0) if err != 0 { t.setErrno(err) @@ -419,6 +494,9 @@ func Xdup2(t *TLS, oldfd, newfd int32) int32 { // ssize_t readlink(const char *restrict path, char *restrict buf, size_t bufsize); func Xreadlink(t *TLS, path, buf uintptr, bufsize types.Size_t) types.Ssize_t { + if __ccgo_strace { + trc("t=%v buf=%v bufsize=%v, (%v:)", t, buf, bufsize, origin(2)) + } n, _, err := unix.Syscall(unix.SYS_READLINK, path, buf, uintptr(bufsize)) if err != 0 { t.setErrno(err) @@ -430,6 +508,9 @@ func Xreadlink(t *TLS, path, buf uintptr, bufsize types.Size_t) types.Ssize_t { // FILE *fopen64(const char *pathname, const char *mode); func Xfopen64(t *TLS, pathname, mode uintptr) uintptr { + if __ccgo_strace { + trc("t=%v mode=%v, (%v:)", t, mode, origin(2)) + } m := strings.ReplaceAll(GoString(mode), "b", "") var flags int switch m { @@ -466,22 +547,214 @@ func Xfopen64(t *TLS, pathname, mode uintptr) uintptr { // int iswspace(wint_t wc); func Xiswspace(t *TLS, wc wctype.Wint_t) int32 { + if __ccgo_strace { + trc("t=%v wc=%v, (%v:)", t, wc, origin(2)) + } return Bool32(unicode.IsSpace(rune(wc))) } // int iswalnum(wint_t wc); func Xiswalnum(t *TLS, wc wctype.Wint_t) int32 { + if __ccgo_strace { + trc("t=%v wc=%v, (%v:)", t, wc, origin(2)) + } return Bool32(unicode.IsLetter(rune(wc)) || unicode.IsNumber(rune(wc))) } -func __syscall1(t *TLS, trap, p1 long) long { - return __syscall(unix.Syscall(uintptr(trap), uintptr(p1), 0, 0)) -} +// int setrlimit(int resource, const struct rlimit *rlim); +func Xsetrlimit64(t *TLS, resource int32, rlim uintptr) int32 { + if __ccgo_strace { + trc("t=%v resource=%v rlim=%v, (%v:)", t, resource, rlim, origin(2)) + } + if _, _, err := unix.Syscall(unix.SYS_SETRLIMIT, uintptr(resource), uintptr(rlim), 0); err != 0 { + t.setErrno(err) + return -1 + } -func __syscall3(t *TLS, trap, p1, p2, p3 long) long { - return __syscall(unix.Syscall(uintptr(trap), uintptr(p1), uintptr(p2), uintptr(p3))) + return 0 } -func __syscall4(t *TLS, trap, p1, p2, p3, p4 long) long { - return __syscall(unix.Syscall6(uintptr(trap), uintptr(p1), uintptr(p2), uintptr(p3), uintptr(p4), 0, 0)) +func AtomicLoadPInt8(addr uintptr) (val int8) { + return int8(a_load_8(addr)) +} + +func AtomicLoadPInt16(addr uintptr) (val int16) { + return int16(a_load_16(addr)) +} + +func AtomicLoadPUint8(addr uintptr) byte { + return byte(a_load_8(addr)) +} + +func AtomicLoadPUint16(addr uintptr) uint16 { + return uint16(a_load_16(addr)) +} + +func AtomicLoadNUint8(ptr uintptr, memorder int32) uint8 { + return byte(a_load_8(ptr)) +} + +var _table1 = [384]int32{ + 129: int32(1), + 130: int32(2), + 131: int32(3), + 132: int32(4), + 133: int32(5), + 134: int32(6), + 135: int32(7), + 136: int32(8), + 137: int32(9), + 138: int32(10), + 139: int32(11), + 140: int32(12), + 141: int32(13), + 142: int32(14), + 143: int32(15), + 144: int32(16), + 145: int32(17), + 146: int32(18), + 147: int32(19), + 148: int32(20), + 149: int32(21), + 150: int32(22), + 151: int32(23), + 152: int32(24), + 153: int32(25), + 154: int32(26), + 155: int32(27), + 156: int32(28), + 157: int32(29), + 158: int32(30), + 159: int32(31), + 160: int32(32), + 161: int32(33), + 162: int32(34), + 163: int32(35), + 164: int32(36), + 165: int32(37), + 166: int32(38), + 167: int32(39), + 168: int32(40), + 169: int32(41), + 170: int32(42), + 171: int32(43), + 172: int32(44), + 173: int32(45), + 174: int32(46), + 175: int32(47), + 176: int32(48), + 177: int32(49), + 178: int32(50), + 179: int32(51), + 180: int32(52), + 181: int32(53), + 182: int32(54), + 183: int32(55), + 184: int32(56), + 185: int32(57), + 186: int32(58), + 187: int32(59), + 188: int32(60), + 189: int32(61), + 190: int32(62), + 191: int32(63), + 192: int32(64), + 193: int32('a'), + 194: int32('b'), + 195: int32('c'), + 196: int32('d'), + 197: int32('e'), + 198: int32('f'), + 199: int32('g'), + 200: int32('h'), + 201: int32('i'), + 202: int32('j'), + 203: int32('k'), + 204: int32('l'), + 205: int32('m'), + 206: int32('n'), + 207: int32('o'), + 208: int32('p'), + 209: int32('q'), + 210: int32('r'), + 211: int32('s'), + 212: int32('t'), + 213: int32('u'), + 214: int32('v'), + 215: int32('w'), + 216: int32('x'), + 217: int32('y'), + 218: int32('z'), + 219: int32(91), + 220: int32(92), + 221: int32(93), + 222: int32(94), + 223: int32(95), + 224: int32(96), + 225: int32('a'), + 226: int32('b'), + 227: int32('c'), + 228: int32('d'), + 229: int32('e'), + 230: int32('f'), + 231: int32('g'), + 232: int32('h'), + 233: int32('i'), + 234: int32('j'), + 235: int32('k'), + 236: int32('l'), + 237: int32('m'), + 238: int32('n'), + 239: int32('o'), + 240: int32('p'), + 241: int32('q'), + 242: int32('r'), + 243: int32('s'), + 244: int32('t'), + 245: int32('u'), + 246: int32('v'), + 247: int32('w'), + 248: int32('x'), + 249: int32('y'), + 250: int32('z'), + 251: int32(123), + 252: int32(124), + 253: int32(125), + 254: int32(126), + 255: int32(127), +} + +var _ptable1 = uintptr(unsafe.Pointer(&_table1)) + uintptr(128)*4 + +func X__ctype_tolower_loc(tls *TLS) (r uintptr) { + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + defer func() { trc("-> %v", r) }() + } + return uintptr(unsafe.Pointer(&_ptable1)) +} + +type Tin6_addr = struct { + F__in6_union struct { + F__s6_addr16 [0][8]uint16 + F__s6_addr32 [0][4]uint32 + F__s6_addr [16]uint8 + } +} + +var Xin6addr_any = Tin6_addr{} + +func Xrewinddir(tls *TLS, f uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } + Xfseek(tls, f, 0, stdio.SEEK_SET) +} + +// clock_t clock(void); +func Xclock(t *TLS) time.Clock_t { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } + return time.Clock_t(gotime.Since(startTime) * gotime.Duration(time.CLOCKS_PER_SEC) / gotime.Second) } diff --git a/vendor/modernc.org/libc/libc_linux_riscv64.go b/vendor/modernc.org/libc/libc_linux_riscv64.go deleted file mode 100644 index 0efb296a7..000000000 --- a/vendor/modernc.org/libc/libc_linux_riscv64.go +++ /dev/null @@ -1,413 +0,0 @@ -// Copyright 2020 The Libc Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package libc // import "modernc.org/libc" - -import ( - "os" - "strings" - "unicode" - "unsafe" - - "golang.org/x/sys/unix" - "modernc.org/libc/errno" - "modernc.org/libc/fcntl" - "modernc.org/libc/signal" - "modernc.org/libc/sys/types" - "modernc.org/libc/utime" - "modernc.org/libc/wctype" -) - -// int sigaction(int signum, const struct sigaction *act, struct sigaction *oldact); -func Xsigaction(t *TLS, signum int32, act, oldact uintptr) int32 { - // musl/arch/x86_64/ksigaction.h - // - // struct k_sigaction { - // void (*handler)(int); - // unsigned long flags; - // void (*restorer)(void); - // unsigned mask[2]; - // }; - type k_sigaction struct { - handler uintptr - flags ulong - restorer uintptr - mask [2]uint32 - } - - var kact, koldact uintptr - if act != 0 { - sz := int(unsafe.Sizeof(k_sigaction{})) - kact = t.Alloc(sz) - defer t.Free(sz) - *(*k_sigaction)(unsafe.Pointer(kact)) = k_sigaction{ - handler: (*signal.Sigaction)(unsafe.Pointer(act)).F__sigaction_handler.Fsa_handler, - flags: ulong((*signal.Sigaction)(unsafe.Pointer(act)).Fsa_flags), - restorer: (*signal.Sigaction)(unsafe.Pointer(act)).Fsa_restorer, - } - Xmemcpy(t, kact+unsafe.Offsetof(k_sigaction{}.mask), act+unsafe.Offsetof(signal.Sigaction{}.Fsa_mask), types.Size_t(unsafe.Sizeof(k_sigaction{}.mask))) - } - if oldact != 0 { - panic(todo("")) - } - - if _, _, err := unix.Syscall6(unix.SYS_RT_SIGACTION, uintptr(signum), kact, koldact, unsafe.Sizeof(k_sigaction{}.mask), 0, 0); err != 0 { - t.setErrno(err) - return -1 - } - - if oldact != 0 { - panic(todo("")) - } - - return 0 -} - -// int fcntl(int fd, int cmd, ... /* arg */ ); -func Xfcntl64(t *TLS, fd, cmd int32, args uintptr) int32 { - var arg uintptr - if args != 0 { - arg = *(*uintptr)(unsafe.Pointer(args)) - } - if cmd == fcntl.F_SETFL { - arg |= unix.O_LARGEFILE - } - n, _, err := unix.Syscall(unix.SYS_FCNTL, uintptr(fd), uintptr(cmd), arg) - if err != 0 { - // if dmesgs { - // dmesg("%v: fd %v cmd %v", origin(1), fcntlCmdStr(fd), cmd) - // } - t.setErrno(err) - return -1 - } - - // if dmesgs { - // dmesg("%v: %d %s %#x: %d", origin(1), fd, fcntlCmdStr(cmd), arg, n) - // } - return int32(n) -} - -// int fstatat(int dirfd, const char *pathname, struct stat *statbuf, int flags); -func Xfstatat(t *TLS, dirfd int32, pathname, statbuf uintptr, flags int32) int32 { - // From golang.org/x/sys/unix/zsyscall_linux_riscv64.go - if _, _, err := unix.Syscall6(unix.SYS_FSTATAT, uintptr(dirfd), pathname, statbuf, uintptr(flags), 0, 0); err != 0 { - t.setErrno(err) - return -1 - } - - return 0 -} - -// int lstat(const char *pathname, struct stat *statbuf); -func Xlstat64(t *TLS, pathname, statbuf uintptr) int32 { - // From golang.org/x/sys/unix/syscall_linux_riscv64.go - return Xfstatat(t, unix.AT_FDCWD, pathname, statbuf, unix.AT_SYMLINK_NOFOLLOW) -} - -// int stat(const char *pathname, struct stat *statbuf); -func Xstat64(t *TLS, pathname, statbuf uintptr) int32 { - // From golang.org/x/sys/unix/syscall_linux_riscv64.go - return Xfstatat(t, unix.AT_FDCWD, pathname, statbuf, 0) -} - -// int fstat(int fd, struct stat *statbuf); -func Xfstat64(t *TLS, fd int32, statbuf uintptr) int32 { - if _, _, err := unix.Syscall(unix.SYS_FSTAT, uintptr(fd), statbuf, 0); err != 0 { - // if dmesgs { - // dmesg("%v: fd %d: %v", origin(1), fd, err) - // } - t.setErrno(err) - return -1 - } - - // if dmesgs { - // dmesg("%v: %d size %#x: ok\n%+v", origin(1), fd, (*stat.Stat)(unsafe.Pointer(statbuf)).Fst_size, (*stat.Stat)(unsafe.Pointer(statbuf))) - // } - return 0 -} - -func Xmmap(t *TLS, addr uintptr, length types.Size_t, prot, flags, fd int32, offset types.Off_t) uintptr { - return Xmmap64(t, addr, length, prot, flags, fd, offset) -} - -// void *mmap(void *addr, size_t length, int prot, int flags, int fd, off_t offset); -func Xmmap64(t *TLS, addr uintptr, length types.Size_t, prot, flags, fd int32, offset types.Off_t) uintptr { - data, _, err := unix.Syscall6(unix.SYS_MMAP, addr, uintptr(length), uintptr(prot), uintptr(flags), uintptr(fd), uintptr(offset)) - if err != 0 { - // if dmesgs { - // dmesg("%v: %v", origin(1), err) - // } - t.setErrno(err) - return ^uintptr(0) // (void*)-1 - } - - // if dmesgs { - // dmesg("%v: %#x", origin(1), data) - // } - return data -} - -// void *mremap(void *old_address, size_t old_size, size_t new_size, int flags, ... /* void *new_address */); -func Xmremap(t *TLS, old_address uintptr, old_size, new_size types.Size_t, flags int32, args uintptr) uintptr { - var arg uintptr - if args != 0 { - arg = *(*uintptr)(unsafe.Pointer(args)) - } - data, _, err := unix.Syscall6(unix.SYS_MREMAP, old_address, uintptr(old_size), uintptr(new_size), uintptr(flags), arg, 0) - if err != 0 { - // if dmesgs { - // dmesg("%v: %v", origin(1), err) - // } - t.setErrno(err) - return ^uintptr(0) // (void*)-1 - } - - // if dmesgs { - // dmesg("%v: %#x", origin(1), data) - // } - return data -} - -// int ftruncate(int fd, off_t length); -func Xftruncate64(t *TLS, fd int32, length types.Off_t) int32 { - if _, _, err := unix.Syscall(unix.SYS_FTRUNCATE, uintptr(fd), uintptr(length), 0); err != 0 { - // if dmesgs { - // dmesg("%v: fd %d: %v", origin(1), fd, err) - // } - t.setErrno(err) - return -1 - } - - // if dmesgs { - // dmesg("%v: %d %#x: ok", origin(1), fd, length) - // } - return 0 -} - -// off64_t lseek64(int fd, off64_t offset, int whence); -func Xlseek64(t *TLS, fd int32, offset types.Off_t, whence int32) types.Off_t { - n, _, err := unix.Syscall(unix.SYS_LSEEK, uintptr(fd), uintptr(offset), uintptr(whence)) - if err != 0 { - // if dmesgs { - // dmesg("%v: fd %v, off %#x, whence %v: %v", origin(1), fd, offset, whenceStr(whence), err) - // } - t.setErrno(err) - return -1 - } - - // if dmesgs { - // dmesg("%v: fd %v, off %#x, whence %v: %#x", origin(1), fd, offset, whenceStr(whence), n) - // } - return types.Off_t(n) -} - -// From man utime executed on linux/riscv64: -// -// The utimbuf structure is: -// -// struct utimbuf { -// time_t actime; /* access time */ -// time_t modtime; /* modification time */ -// }; - -type utimbuf struct { - actime utime.Time_t - modtime utime.Time_t -} - -// int utime(const char *filename, const struct utimbuf *times); -func Xutime(t *TLS, filename, times uintptr) int32 { - if times == 0 { - return Xutimes(t, filename, 0) - } - - n := int(unsafe.Sizeof([2]types.Timeval{})) - p := t.Alloc(n) - defer t.Free(n) - *(*[2]types.Timeval)(unsafe.Pointer(p)) = [2]types.Timeval{ - {Ftv_sec: (*utimbuf)(unsafe.Pointer(times)).actime}, - {Ftv_sec: (*utimbuf)(unsafe.Pointer(times)).modtime}, - } - return Xutimes(t, filename, p) -} - -// unsigned int alarm(unsigned int seconds); -func Xalarm(t *TLS, seconds uint32) uint32 { - panic(todo("")) - // No alarm syscall on linux/riscv64. And cannot implement with setitimer as in musl, - // because of missing defination to constant ITIMER_REAL in types_linux_riscv64.go. -} - -// time_t time(time_t *tloc); -func Xtime(t *TLS, tloc uintptr) types.Time_t { - // From golang.org/x/sys/unix/syscall_linux_riscv64.go - var tv types.Timeval - if err := Xgettimeofday(t, uintptr(unsafe.Pointer(&tv)), 0); err != 0 { - t.setErrno(err) - return -1 - } - - if tloc != 0 { - *(*types.Time_t)(unsafe.Pointer(tloc)) = tv.Ftv_sec - } - return tv.Ftv_sec -} - -// int getrlimit(int resource, struct rlimit *rlim); -func Xgetrlimit64(t *TLS, resource int32, rlim uintptr) int32 { - if _, _, err := unix.Syscall(unix.SYS_GETRLIMIT, uintptr(resource), uintptr(rlim), 0); err != 0 { - t.setErrno(err) - return -1 - } - - return 0 -} - -// int mkdir(const char *path, mode_t mode); -func Xmkdir(t *TLS, path uintptr, mode types.Mode_t) int32 { - // From golang.org/x/sys/unix/syscall_linux.go - return Xmkdirat(t, unix.AT_FDCWD, path, mode) -} - -// int symlink(const char *target, const char *linkpath); -func Xsymlink(t *TLS, target, linkpath uintptr) int32 { - // From golang.org/x/sys/unix/syscall_linux.go - return Xsymlinkat(t, target, unix.AT_FDCWD, linkpath) -} - -// int chmod(const char *pathname, mode_t mode) -func Xchmod(t *TLS, pathname uintptr, mode types.Mode_t) int32 { - // From golang.org/x/sys/unix/syscall_linux.go - return Xfchmodat(t, unix.AT_FDCWD, pathname, mode, 0) -} - -// int utimes(const char *filename, const struct timeval times[2]); -func Xutimes(t *TLS, filename, times uintptr) int32 { - return Xutimensat(t, unix.AT_FDCWD, filename, times, 0) -} - -// int unlink(const char *pathname); -func Xunlink(t *TLS, pathname uintptr) int32 { - // From golang.org/x/sys/unix/syscall_linux.go - return Xunlinkat(t, unix.AT_FDCWD, pathname, 0) -} - -// int access(const char *pathname, int mode); -func Xaccess(t *TLS, pathname uintptr, mode int32) int32 { - // From golang.org/x/sys/unix/syscall_linux.go - return Xfaccessat(t, unix.AT_FDCWD, pathname, mode, 0) -} - -// int rmdir(const char *pathname); -func Xrmdir(t *TLS, pathname uintptr) int32 { - // From golang.org/x/sys/unix/syscall_linux.go - return Xunlinkat(t, unix.AT_FDCWD, pathname, unix.AT_REMOVEDIR) -} - -// int rename(const char *oldpath, const char *newpath); -func Xrename(t *TLS, oldpath, newpath uintptr) int32 { - // From golang.org/x/sys/unix/syscall_linux.go - return Xrenameat(t, unix.AT_FDCWD, oldpath, unix.AT_FDCWD, newpath) -} - -// int renameat(int olddirfd, const char *oldpath, int newdirfd, const char *newpath); -func Xrenameat(t *TLS, olddirfd int32, oldpath uintptr, newdirfd int32, newpath uintptr) int32 { - // From golang.org/x/sys/unix/syscall_linux_riscv64.go - return Xrenameat2(t, olddirfd, oldpath, newdirfd, newpath, 0) -} - -// int mknod(const char *pathname, mode_t mode, dev_t dev); -func Xmknod(t *TLS, pathname uintptr, mode types.Mode_t, dev types.Dev_t) int32 { - // From golang.org/x/sys/unix/syscall_linux.go - return Xmknodat(t, unix.AT_FDCWD, pathname, mode, dev) -} - -// int chown(const char *pathname, uid_t owner, gid_t group); -func Xchown(t *TLS, pathname uintptr, owner types.Uid_t, group types.Gid_t) int32 { - // From golang.org/x/sys/unix/syscall_linux.go - return Xfchownat(t, unix.AT_FDCWD, pathname, owner, group, 0) -} - -// int link(const char *oldpath, const char *newpath); -func Xlink(t *TLS, oldpath, newpath uintptr) int32 { - // From golang.org/x/sys/unix/syscall_linux.go - return Xlinkat(t, unix.AT_FDCWD, oldpath, unix.AT_FDCWD, newpath, 0) -} - -// int pipe(int pipefd[2]); -func Xpipe(t *TLS, pipefd uintptr) int32 { - // From golang.org/x/sys/unix/syscall_linux.go - return Xpipe2(t, pipefd, 0) -} - -// int dup2(int oldfd, int newfd); -func Xdup2(t *TLS, oldfd, newfd int32) int32 { - // From golang.org/x/sys/unix/syscall_linux.go - return Xdup3(t, oldfd, newfd, 0) -} - -// ssize_t readlink(const char *restrict path, char *restrict buf, size_t bufsize); -func Xreadlink(t *TLS, path, buf uintptr, bufsize types.Size_t) types.Ssize_t { - // From golang.org/x/sys/unix/syscall_linux.go - return Xreadlinkat(t, unix.AT_FDCWD, path, buf, bufsize) -} - -// FILE *fopen64(const char *pathname, const char *mode); -func Xfopen64(t *TLS, pathname, mode uintptr) uintptr { - m := strings.ReplaceAll(GoString(mode), "b", "") - var flags int - switch m { - case "r": - flags = os.O_RDONLY - case "r+": - flags = os.O_RDWR - case "w": - flags = os.O_WRONLY | os.O_CREATE | os.O_TRUNC - case "w+": - flags = os.O_RDWR | os.O_CREATE | os.O_TRUNC - case "a": - flags = os.O_WRONLY | os.O_CREATE | os.O_APPEND - case "a+": - flags = os.O_RDWR | os.O_CREATE | os.O_APPEND - default: - panic(m) - } - //TODO- flags |= fcntl.O_LARGEFILE - - // From golang.org/x/sys/unix/syscall_linux.go - fd := Xopenat(t, unix.AT_FDCWD, pathname, int32(flags|unix.O_LARGEFILE), 0666) - if fd == -1 { - return 0 - } - - if p := newFile(t, fd); p != 0 { - return p - } - - Xclose(t, fd) - t.setErrno(errno.ENOMEM) - return 0 -} - -// int iswspace(wint_t wc); -func Xiswspace(t *TLS, wc wctype.Wint_t) int32 { - return Bool32(unicode.IsSpace(rune(wc))) -} - -// int iswalnum(wint_t wc); -func Xiswalnum(t *TLS, wc wctype.Wint_t) int32 { - return Bool32(unicode.IsLetter(rune(wc)) || unicode.IsNumber(rune(wc))) -} - -func __syscall1(t *TLS, trap, p1 long) long { - return __syscall(unix.Syscall(uintptr(trap), uintptr(p1), 0, 0)) -} - -func __syscall3(t *TLS, trap, p1, p2, p3 long) long { - return __syscall(unix.Syscall(uintptr(trap), uintptr(p1), uintptr(p2), uintptr(p3))) -} - -func __syscall4(t *TLS, trap, p1, p2, p3, p4 long) long { - return __syscall(unix.Syscall6(uintptr(trap), uintptr(p1), uintptr(p2), uintptr(p3), uintptr(p4), 0, 0)) -} diff --git a/vendor/modernc.org/libc/libc_linux_s390x.go b/vendor/modernc.org/libc/libc_linux_s390x.go deleted file mode 100644 index a877924cc..000000000 --- a/vendor/modernc.org/libc/libc_linux_s390x.go +++ /dev/null @@ -1,466 +0,0 @@ -// Copyright 2021 The Libc Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package libc // import "modernc.org/libc" - -import ( - "os" - "strings" - "unsafe" - - "golang.org/x/sys/unix" - "modernc.org/libc/errno" - "modernc.org/libc/fcntl" - "modernc.org/libc/signal" - "modernc.org/libc/sys/types" -) - -// int sigaction(int signum, const struct sigaction *act, struct sigaction *oldact); -func Xsigaction(t *TLS, signum int32, act, oldact uintptr) int32 { - // musl/src/internal/ksigaction.h - // struct k_sigaction { - // void (*handler)(int); - // unsigned long flags; - // void (*restorer)(void); - // unsigned mask[2]; - // }; - type k_sigaction struct { - handler uintptr - flags ulong - restorer uintptr - mask [2]uint32 - } - - var kact, koldact uintptr - if act != 0 { - sz := int(unsafe.Sizeof(k_sigaction{})) - kact = t.Alloc(sz) - defer t.Free(sz) - *(*k_sigaction)(unsafe.Pointer(kact)) = k_sigaction{ - handler: (*signal.Sigaction)(unsafe.Pointer(act)).F__sigaction_handler.Fsa_handler, - flags: ulong((*signal.Sigaction)(unsafe.Pointer(act)).Fsa_flags), - restorer: (*signal.Sigaction)(unsafe.Pointer(act)).Fsa_restorer, - } - Xmemcpy(t, kact+unsafe.Offsetof(k_sigaction{}.mask), act+unsafe.Offsetof(signal.Sigaction{}.Fsa_mask), types.Size_t(unsafe.Sizeof(k_sigaction{}.mask))) - } - if oldact != 0 { - panic(todo("")) - } - - if _, _, err := unix.Syscall6(unix.SYS_RT_SIGACTION, uintptr(signum), kact, koldact, unsafe.Sizeof(k_sigaction{}.mask), 0, 0); err != 0 { - t.setErrno(err) - return -1 - } - - if oldact != 0 { - panic(todo("")) - } - - return 0 -} - -// int fcntl(int fd, int cmd, ... /* arg */ ); -func Xfcntl64(t *TLS, fd, cmd int32, args uintptr) int32 { - var arg uintptr - if args != 0 { - arg = *(*uintptr)(unsafe.Pointer(args)) - } - if cmd == fcntl.F_SETFL { - arg |= unix.O_LARGEFILE - } - n, _, err := unix.Syscall(unix.SYS_FCNTL, uintptr(fd), uintptr(cmd), arg) - if err != 0 { - // if dmesgs { - // dmesg("%v: fd %v cmd %v", origin(1), fcntlCmdStr(fd), cmd) - // } - t.setErrno(err) - return -1 - } - - // if dmesgs { - // dmesg("%v: %d %s %#x: %d", origin(1), fd, fcntlCmdStr(cmd), arg, n) - // } - return int32(n) -} - -// int lstat(const char *pathname, struct stat *statbuf); -func Xlstat64(t *TLS, pathname, statbuf uintptr) int32 { - if _, _, err := unix.Syscall(unix.SYS_LSTAT, pathname, statbuf, 0); err != 0 { - // if dmesgs { - // dmesg("%v: %q: %v", origin(1), GoString(pathname), err) - // } - t.setErrno(err) - return -1 - } - - // if dmesgs { - // dmesg("%v: %q: ok", origin(1), GoString(pathname)) - // } - return 0 -} - -// int stat(const char *pathname, struct stat *statbuf); -func Xstat64(t *TLS, pathname, statbuf uintptr) int32 { - if _, _, err := unix.Syscall(unix.SYS_STAT, pathname, statbuf, 0); err != 0 { - // if dmesgs { - // dmesg("%v: %q: %v", origin(1), GoString(pathname), err) - // } - t.setErrno(err) - return -1 - } - - // if dmesgs { - // dmesg("%v: %q: ok", origin(1), GoString(pathname)) - // } - return 0 -} - -// int fstat(int fd, struct stat *statbuf); -func Xfstat64(t *TLS, fd int32, statbuf uintptr) int32 { - if _, _, err := unix.Syscall(unix.SYS_FSTAT, uintptr(fd), statbuf, 0); err != 0 { - // if dmesgs { - // dmesg("%v: fd %d: %v", origin(1), fd, err) - // } - t.setErrno(err) - return -1 - } - - // if dmesgs { - // dmesg("%v: %d size %#x: ok\n%+v", origin(1), fd, (*stat.Stat)(unsafe.Pointer(statbuf)).Fst_size, (*stat.Stat)(unsafe.Pointer(statbuf))) - // } - return 0 -} - -func Xmmap(t *TLS, addr uintptr, length types.Size_t, prot, flags, fd int32, offset types.Off_t) uintptr { - return Xmmap64(t, addr, length, prot, flags, fd, offset) -} - -// void *mmap(void *addr, size_t length, int prot, int flags, int fd, off_t offset); -func Xmmap64(t *TLS, addr uintptr, length types.Size_t, prot, flags, fd int32, offset types.Off_t) uintptr { - // https://github.com/golang/go/blob/7d822af4500831d131562f17dcf53374469d823e/src/syscall/syscall_linux_s390x.go#L77 - args := [6]uintptr{addr, uintptr(length), uintptr(prot), uintptr(flags), uintptr(fd), uintptr(offset)} - data, _, err := unix.Syscall(unix.SYS_MMAP, uintptr(unsafe.Pointer(&args[0])), 0, 0) - if err != 0 { - // if dmesgs { - // dmesg("%v: addr %#x, length %#x, prot %#x, flags %#x, fd %v, offset %#x: %v", origin(1), addr, length, prot, flags, fd, offset, err) - // } - t.setErrno(err) - return ^uintptr(0) // (void*)-1 - } - - // if dmesgs { - // dmesg("%v: addr %#x, length %#x, prot %#x, flags %#x, fd %v, offset %#x: ok", origin(1), addr, length, prot, flags, fd, offset) - // } - return data -} - -// void *mremap(void *old_address, size_t old_size, size_t new_size, int flags, ... /* void *new_address */); -func Xmremap(t *TLS, old_address uintptr, old_size, new_size types.Size_t, flags int32, args uintptr) uintptr { - var arg uintptr - if args != 0 { - arg = *(*uintptr)(unsafe.Pointer(args)) - } - data, _, err := unix.Syscall6(unix.SYS_MREMAP, old_address, uintptr(old_size), uintptr(new_size), uintptr(flags), arg, 0) - if err != 0 { - // if dmesgs { - // dmesg("%v: %v", origin(1), err) - // } - t.setErrno(err) - return ^uintptr(0) // (void*)-1 - } - - // if dmesgs { - // dmesg("%v: %#x", origin(1), data) - // } - return data -} - -// int ftruncate(int fd, off_t length); -func Xftruncate64(t *TLS, fd int32, length types.Off_t) int32 { - if _, _, err := unix.Syscall(unix.SYS_FTRUNCATE, uintptr(fd), uintptr(length), 0); err != 0 { - // if dmesgs { - // dmesg("%v: fd %d: %v", origin(1), fd, err) - // } - t.setErrno(err) - return -1 - } - - // if dmesgs { - // dmesg("%v: %d %#x: ok", origin(1), fd, length) - // } - return 0 -} - -// off64_t lseek64(int fd, off64_t offset, int whence); -func Xlseek64(t *TLS, fd int32, offset types.Off_t, whence int32) types.Off_t { - n, _, err := unix.Syscall(unix.SYS_LSEEK, uintptr(fd), uintptr(offset), uintptr(whence)) - if err != 0 { - // if dmesgs { - // dmesg("%v: fd %v, off %#x, whence %v: %v", origin(1), fd, offset, whenceStr(whence), err) - // } - t.setErrno(err) - return -1 - } - - // if dmesgs { - // dmesg("%v: fd %v, off %#x, whence %v: %#x", origin(1), fd, offset, whenceStr(whence), n) - // } - return types.Off_t(n) -} - -// int utime(const char *filename, const struct utimbuf *times); -func Xutime(t *TLS, filename, times uintptr) int32 { - if _, _, err := unix.Syscall(unix.SYS_UTIME, filename, times, 0); err != 0 { - t.setErrno(err) - return -1 - } - - return 0 -} - -// unsigned int alarm(unsigned int seconds); -func Xalarm(t *TLS, seconds uint32) uint32 { - n, _, err := unix.Syscall(unix.SYS_ALARM, uintptr(seconds), 0, 0) - if err != 0 { - panic(todo("")) - } - - return uint32(n) -} - -// time_t time(time_t *tloc); -func Xtime(t *TLS, tloc uintptr) types.Time_t { - n, err := unix.Time((*unix.Time_t)(unsafe.Pointer(tloc))) - if err != nil { - t.setErrno(err) - return types.Time_t(-1) - } - - return types.Time_t(n) -} - -// int getrlimit(int resource, struct rlimit *rlim); -func Xgetrlimit64(t *TLS, resource int32, rlim uintptr) int32 { - if _, _, err := unix.Syscall(unix.SYS_GETRLIMIT, uintptr(resource), uintptr(rlim), 0); err != 0 { - t.setErrno(err) - return -1 - } - - return 0 -} - -// int mkdir(const char *path, mode_t mode); -func Xmkdir(t *TLS, path uintptr, mode types.Mode_t) int32 { - if _, _, err := unix.Syscall(unix.SYS_MKDIR, path, uintptr(mode), 0); err != 0 { - t.setErrno(err) - return -1 - } - - // if dmesgs { - // dmesg("%v: %q: ok", origin(1), GoString(path)) - // } - return 0 -} - -// int symlink(const char *target, const char *linkpath); -func Xsymlink(t *TLS, target, linkpath uintptr) int32 { - if _, _, err := unix.Syscall(unix.SYS_SYMLINK, target, linkpath, 0); err != 0 { - t.setErrno(err) - return -1 - } - - // if dmesgs { - // dmesg("%v: %q %q: ok", origin(1), GoString(target), GoString(linkpath)) - // } - return 0 -} - -// int chmod(const char *pathname, mode_t mode) -func Xchmod(t *TLS, pathname uintptr, mode types.Mode_t) int32 { - if _, _, err := unix.Syscall(unix.SYS_CHMOD, pathname, uintptr(mode), 0); err != 0 { - t.setErrno(err) - return -1 - } - - // if dmesgs { - // dmesg("%v: %q %#o: ok", origin(1), GoString(pathname), mode) - // } - return 0 -} - -// int utimes(const char *filename, const struct timeval times[2]); -func Xutimes(t *TLS, filename, times uintptr) int32 { - if _, _, err := unix.Syscall(unix.SYS_UTIMES, filename, times, 0); err != 0 { - t.setErrno(err) - return -1 - } - - // if dmesgs { - // dmesg("%v: %q: ok", origin(1), GoString(filename)) - // } - return 0 -} - -// int unlink(const char *pathname); -func Xunlink(t *TLS, pathname uintptr) int32 { - if _, _, err := unix.Syscall(unix.SYS_UNLINK, pathname, 0, 0); err != 0 { - t.setErrno(err) - return -1 - } - - // if dmesgs { - // dmesg("%v: %q: ok", origin(1), GoString(pathname)) - // } - return 0 -} - -// int access(const char *pathname, int mode); -func Xaccess(t *TLS, pathname uintptr, mode int32) int32 { - if _, _, err := unix.Syscall(unix.SYS_ACCESS, pathname, uintptr(mode), 0); err != 0 { - // if dmesgs { - // dmesg("%v: %q: %v", origin(1), GoString(pathname), err) - // } - t.setErrno(err) - return -1 - } - - // if dmesgs { - // dmesg("%v: %q %#o: ok", origin(1), GoString(pathname), mode) - // } - return 0 -} - -// int rmdir(const char *pathname); -func Xrmdir(t *TLS, pathname uintptr) int32 { - if _, _, err := unix.Syscall(unix.SYS_RMDIR, pathname, 0, 0); err != 0 { - t.setErrno(err) - return -1 - } - - // if dmesgs { - // dmesg("%v: %q: ok", origin(1), GoString(pathname)) - // } - return 0 -} - -// int rename(const char *oldpath, const char *newpath); -func Xrename(t *TLS, oldpath, newpath uintptr) int32 { - if _, _, err := unix.Syscall(unix.SYS_RENAME, oldpath, newpath, 0); err != 0 { - t.setErrno(err) - return -1 - } - - return 0 -} - -// int mknod(const char *pathname, mode_t mode, dev_t dev); -func Xmknod(t *TLS, pathname uintptr, mode types.Mode_t, dev types.Dev_t) int32 { - if _, _, err := unix.Syscall(unix.SYS_MKNOD, pathname, uintptr(mode), uintptr(dev)); err != 0 { - t.setErrno(err) - return -1 - } - - return 0 -} - -// int chown(const char *pathname, uid_t owner, gid_t group); -func Xchown(t *TLS, pathname uintptr, owner types.Uid_t, group types.Gid_t) int32 { - if _, _, err := unix.Syscall(unix.SYS_CHOWN, pathname, uintptr(owner), uintptr(group)); err != 0 { - t.setErrno(err) - return -1 - } - - return 0 -} - -// int link(const char *oldpath, const char *newpath); -func Xlink(t *TLS, oldpath, newpath uintptr) int32 { - if _, _, err := unix.Syscall(unix.SYS_LINK, oldpath, newpath, 0); err != 0 { - t.setErrno(err) - return -1 - } - - return 0 -} - -// int pipe(int pipefd[2]); -func Xpipe(t *TLS, pipefd uintptr) int32 { - if _, _, err := unix.Syscall(unix.SYS_PIPE, pipefd, 0, 0); err != 0 { - t.setErrno(err) - return -1 - } - - return 0 -} - -// int dup2(int oldfd, int newfd); -func Xdup2(t *TLS, oldfd, newfd int32) int32 { - n, _, err := unix.Syscall(unix.SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0) - if err != 0 { - t.setErrno(err) - return -1 - } - - return int32(n) -} - -// ssize_t readlink(const char *restrict path, char *restrict buf, size_t bufsize); -func Xreadlink(t *TLS, path, buf uintptr, bufsize types.Size_t) types.Ssize_t { - n, _, err := unix.Syscall(unix.SYS_READLINK, path, buf, uintptr(bufsize)) - if err != 0 { - t.setErrno(err) - return -1 - } - - return types.Ssize_t(n) -} - -// FILE *fopen64(const char *pathname, const char *mode); -func Xfopen64(t *TLS, pathname, mode uintptr) uintptr { - m := strings.ReplaceAll(GoString(mode), "b", "") - var flags int - switch m { - case "r": - flags = os.O_RDONLY - case "r+": - flags = os.O_RDWR - case "w": - flags = os.O_WRONLY | os.O_CREATE | os.O_TRUNC - case "w+": - flags = os.O_RDWR | os.O_CREATE | os.O_TRUNC - case "a": - flags = os.O_WRONLY | os.O_CREATE | os.O_APPEND - case "a+": - flags = os.O_RDWR | os.O_CREATE | os.O_APPEND - default: - panic(m) - } - //TODO- flags |= fcntl.O_LARGEFILE - fd, _, err := unix.Syscall(unix.SYS_OPEN, pathname, uintptr(flags|unix.O_LARGEFILE), 0666) - if err != 0 { - t.setErrno(err) - return 0 - } - - if p := newFile(t, int32(fd)); p != 0 { - return p - } - - Xclose(t, int32(fd)) - t.setErrno(errno.ENOMEM) - return 0 -} - -// TODO- -func __syscall1(t *TLS, trap, p1 long) long { - return __syscall(unix.Syscall(uintptr(trap), uintptr(p1), 0, 0)) -} - -func __syscall3(t *TLS, trap, p1, p2, p3 long) long { - return __syscall(unix.Syscall(uintptr(trap), uintptr(p1), uintptr(p2), uintptr(p3))) -} - -func __syscall4(t *TLS, trap, p1, p2, p3, p4 long) long { - return __syscall(unix.Syscall6(uintptr(trap), uintptr(p1), uintptr(p2), uintptr(p3), uintptr(p4), 0, 0)) -} diff --git a/vendor/modernc.org/libc/libc_linux_statfs.go b/vendor/modernc.org/libc/libc_linux_statfs.go new file mode 100644 index 000000000..b070a1cad --- /dev/null +++ b/vendor/modernc.org/libc/libc_linux_statfs.go @@ -0,0 +1,13 @@ +// Copyright 2024 The Libc Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build linux && (amd64 || arm64 || loong64 || ppc64le || s390x || riscv64 || 386 || arm || mips64le) + +package libc // import "modernc.org/libc" + +// int statfs(const char *path, struct statfs *buf); +// Wrapper for ___statfs from ccgo-transpiled musl. +func Xstatfs(tls *TLS, path uintptr, buf uintptr) int32 { + return ___statfs(tls, path, buf) +} diff --git a/vendor/modernc.org/libc/libc_mips64le.go b/vendor/modernc.org/libc/libc_mips64le.go new file mode 100644 index 000000000..de3e34974 --- /dev/null +++ b/vendor/modernc.org/libc/libc_mips64le.go @@ -0,0 +1,38 @@ +// Copyright 2023 The Libc Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package libc // import "modernc.org/libc" + +import ( + "fmt" + "unsafe" +) + +// Byte loads are atomic on this CPU. +func a_load_8(addr uintptr) uint32 { + return uint32(*(*byte)(unsafe.Pointer(addr))) +} + +// int16 loads are atomic on this CPU when properly aligned. +func a_load_16(addr uintptr) uint32 { + if addr&1 != 0 { + panic(fmt.Errorf("unaligned atomic 16 bit access at %#0x", addr)) + } + + return uint32(*(*uint16)(unsafe.Pointer(addr))) +} + +// Byte sores are atomic on this CPU. +func a_store_8(addr uintptr, b byte) { + *(*byte)(unsafe.Pointer(addr)) = b +} + +// int16 stores are atomic on this CPU when properly aligned. +func a_store_16(addr uintptr, n uint16) { + if addr&1 != 0 { + panic(fmt.Errorf("unaligned atomic 16 bit access at %#0x", addr)) + } + + *(*uint16)(unsafe.Pointer(addr)) = n +} diff --git a/vendor/modernc.org/libc/libc_musl.go b/vendor/modernc.org/libc/libc_musl.go new file mode 100644 index 000000000..69cfff5c1 --- /dev/null +++ b/vendor/modernc.org/libc/libc_musl.go @@ -0,0 +1,1119 @@ +// Copyright 2023 The Libc Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build linux && (amd64 || arm64 || loong64 || ppc64le || s390x || riscv64 || 386 || arm) + +//go:generate go run generator.go + +// Package libc is the runtime for programs generated by ccgo/v4 or later. +// +// # Version compatibility +// +// The API of this package, in particular the bits that directly support the +// ccgo compiler, may change in a way that is not backward compatible. If you +// have generated some Go code from C you should stick to the version of this +// package that you used at that time and was tested with your payload. The +// correct way to upgrade to a newer version of this package is to first +// recompile (C to Go) your code with a newer version of ccgo that depends on +// the new libc version. +// +// If you use C to Go translated code provided by others, stick to the version +// of libc that translated code shows in its go.mod file and do not upgrade the +// dependency just because a newer libc is tagged.Vgq +// +// This is if course unfortunate. However, it's somewhat similar to C code +// linked with a specific version of, say GNU libc. When such code asking for +// glibc5 is run on a system with glibc6, or vice versa, it will fail. +// +// As a particular example, if your project imports modernc.org/sqlite you +// should use the same libc version as seen in the go.mod file of the sqlite +// package. +// +// tl;dr: It is not always possible to fix ccgo bugs and/or improve performance +// of the ccgo transpiled code without occasionally making incompatible changes +// to this package. +// +// # Thread Local Storage +// +// A TLS instance represents a main thread or a thread created by +// Xpthread_create. A TLS instance is not safe for concurrent use by multiple +// goroutines. +// +// If a program starts the C main function, a TLS instance is created +// automatically and the goroutine entering main() is locked to the OS thread. +// The translated C code then may create other pthreads by calling +// Xpthread_create. +// +// If the translated C code is part of a library package, new TLS instances +// must be created manually in user/client code. The first TLS instance created +// will be the "main" libc thread, but it will be not locked to OS thread +// automatically. Any subsequently manually created TLS instances will call +// Xpthread_create, but without spawning a new goroutine. +// +// A manual call to Xpthread_create will create a new TLS instance automatically +// and spawn a new goroutine executing the thread function. + +// Package libc provides run time support for programs generated by the +// [ccgo] C to Go transpiler, version 4 or later. +// +// # Concurrency +// +// Many C libc functions are not thread safe. Such functions are not safe +// for concurrent use by multiple goroutines in the Go translation as well. +// +// # Thread Local Storage +// +// C threads are modeled as Go goroutines. Every such C thread, ie. a Go +// goroutine, must use its own Thread Local Storage instance implemented by the +// [TLS] type. +// +// # Signals +// +// Signal handling in translated C code is not coordinated with the Go runtime. +// This is probably the same as when running C code via CGo. +// +// # Environmental variables +// +// This package synchronizes its environ with the current Go environ lazily and +// only once. +// +// # libc API documentation copyright +// +// From [Linux man-pages Copyleft] +// +// Permission is granted to make and distribute verbatim copies of this +// manual provided the copyright notice and this permission notice are +// preserved on all copies. +// +// Permission is granted to copy and distribute modified versions of this +// manual under the conditions for verbatim copying, provided that the +// entire resulting derived work is distributed under the terms of a +// permission notice identical to this one. +// +// Since the Linux kernel and libraries are constantly changing, this +// manual page may be incorrect or out-of-date. The author(s) assume no +// responsibility for errors or omissions, or for damages resulting from +// the use of the information contained herein. The author(s) may not have +// taken the same level of care in the production of this manual, which is +// licensed free of charge, as they might when working professionally. +// +// Formatted or processed versions of this manual, if unaccompanied by the +// source, must acknowledge the copyright and authors of this work. +// +// [Linux man-pages Copyleft]: https://spdx.org/licenses/Linux-man-pages-copyleft.html +// [ccgo]: http://modernc.org/ccgo/v4 +package libc // import "modernc.org/libc" + +import ( + "fmt" + "io" + "math" + "math/rand" + "os" + "os/exec" + gosignal "os/signal" + "path/filepath" + "runtime" + "sort" + "strings" + "sync" + "sync/atomic" + "time" + "unsafe" + + guuid "github.com/google/uuid" + "golang.org/x/sys/unix" + "modernc.org/libc/uuid/uuid" + "modernc.org/memory" +) + +const ( + heapAlign = 16 + heapGuard = 16 +) + +var ( + _ error = (*MemAuditError)(nil) + + allocator memory.Allocator + allocatorMu sync.Mutex + + atExitMu sync.Mutex + atExit []func() + + tid atomic.Int32 // TLS Go ID + + Covered = map[uintptr]struct{}{} + CoveredC = map[string]struct{}{} + coverPCs [1]uintptr //TODO not concurrent safe +) + +func init() { + nm, err := os.Executable() + if err != nil { + return + } + + Xprogram_invocation_name = mustCString(nm) + Xprogram_invocation_short_name = mustCString(filepath.Base(nm)) + X__libc.Fpage_size = Tsize_t(os.Getpagesize()) +} + +// RawMem64 represents the biggest uint64 array the runtime can handle. +type RawMem64 [unsafe.Sizeof(RawMem{}) / unsafe.Sizeof(uint64(0))]uint64 + +type MemAuditError struct { + Caller string + Message string +} + +func (e *MemAuditError) Error() string { + return fmt.Sprintf("%s: %s", e.Caller, e.Message) +} + +// Start executes C's main. +func Start(main func(*TLS, int32, uintptr) int32) { + runtime.LockOSThread() + if isMemBrk { + defer func() { + trc("==== PANIC") + for _, v := range MemAudit() { + trc("", v.Error()) + } + }() + } + + tls := NewTLS() + Xexit(tls, main(tls, int32(len(os.Args)), mustAllocStrings(os.Args))) +} + +func mustAllocStrings(a []string) (r uintptr) { + nPtrs := len(a) + 1 + pPtrs := mustCalloc(Tsize_t(uintptr(nPtrs) * unsafe.Sizeof(uintptr(0)))) + ptrs := unsafe.Slice((*uintptr)(unsafe.Pointer(pPtrs)), nPtrs) + nBytes := 0 + for _, v := range a { + nBytes += len(v) + 1 + } + pBytes := mustCalloc(Tsize_t(nBytes)) + b := unsafe.Slice((*byte)(unsafe.Pointer(pBytes)), nBytes) + for i, v := range a { + copy(b, v) + b = b[len(v)+1:] + ptrs[i] = pBytes + pBytes += uintptr(len(v)) + 1 + } + return pPtrs +} + +func mustCString(s string) (r uintptr) { + n := len(s) + r = mustMalloc(Tsize_t(n + 1)) + copy(unsafe.Slice((*byte)(unsafe.Pointer(r)), n), s) + *(*byte)(unsafe.Pointer(r + uintptr(n))) = 0 + return r +} + +// CString returns a pointer to a zero-terminated version of s. The caller is +// responsible for freeing the allocated memory using Xfree. +func CString(s string) (uintptr, error) { + n := len(s) + p := Xmalloc(nil, Tsize_t(n)+1) + if p == 0 { + return 0, fmt.Errorf("CString: cannot allocate %d bytes", n+1) + } + + copy(unsafe.Slice((*byte)(unsafe.Pointer(p)), n), s) + *(*byte)(unsafe.Pointer(p + uintptr(n))) = 0 + return p, nil +} + +func mustMalloc(sz Tsize_t) (r uintptr) { + if r = Xmalloc(nil, sz); r != 0 || sz == 0 { + return r + } + + panic(todo("OOM")) +} + +func mustCalloc(sz Tsize_t) (r uintptr) { + if r := Xcalloc(nil, 1, sz); r != 0 || sz == 0 { + return r + } + + panic(todo("OOM")) +} + +type tlsStackSlot struct { + p uintptr + sz Tsize_t +} + +// TLS emulates thread local storage. TLS is not safe for concurrent use by +// multiple goroutines. +type TLS struct { + allocaStack []int + allocas []uintptr + jumpBuffers []uintptr + pendingSignals chan os.Signal + pthread uintptr // *t__pthread + pthreadCleanupItems []pthreadCleanupItem + pthreadKeyValues map[Tpthread_key_t]uintptr + sigHandlers map[int32]uintptr + sp int + stack []tlsStackSlot + + ID int32 + + checkSignals bool + ownsPthread bool +} + +var __ccgo_environOnce sync.Once + +// NewTLS returns a newly created TLS that must be eventually closed to prevent +// resource leaks. +func NewTLS() (r *TLS) { + id := tid.Add(1) + if id == 0 { + id = tid.Add(1) + } + __ccgo_environOnce.Do(func() { + Xenviron = mustAllocStrings(os.Environ()) + }) + pthread := mustMalloc(Tsize_t(unsafe.Sizeof(t__pthread{}))) + *(*t__pthread)(unsafe.Pointer(pthread)) = t__pthread{ + Flocale: uintptr(unsafe.Pointer(&X__libc.Fglobal_locale)), + Fself: pthread, + Ftid: id, + } + return &TLS{ + ID: id, + ownsPthread: true, + pthread: pthread, + sigHandlers: map[int32]uintptr{}, + } +} + +// StackSlots reports the number of tls stack slots currently in use. +func (tls *TLS) StackSlots() int { + return tls.sp +} + +// int *__errno_location(void) +func X__errno_location(tls *TLS) (r uintptr) { + return tls.pthread + unsafe.Offsetof(t__pthread{}.Ferrno_val) +} + +// int *__errno_location(void) +func X___errno_location(tls *TLS) (r uintptr) { + return X__errno_location(tls) +} + +func (tls *TLS) setErrno(n int32) { + if tls == nil { + return + } + + *(*int32)(unsafe.Pointer(X__errno_location(tls))) = n +} + +func (tls *TLS) String() string { + return fmt.Sprintf("TLS#%v pthread=%x", tls.ID, tls.pthread) +} + +// Alloc allocates n bytes in tls's local storage. Calls to Alloc() must be +// strictly paired with calls to TLS.Free on function exit. That also means any +// memory from Alloc must not be used after a function returns. +// +// The order matters. This is ok: +// +// p := tls.Alloc(11) +// q := tls.Alloc(22) +// tls.Free(22) +// // q is no more usable here. +// tls.Free(11) +// // p is no more usable here. +// +// This is not correct: +// +// tls.Alloc(11) +// tls.Alloc(22) +// tls.Free(11) +// tls.Free(22) +func (tls *TLS) Alloc(n0 int) (r uintptr) { + // shrink stats speedtest1 + // ----------------------------------------------------------------------------------------------- + // 0 total 2,544, nallocs 107,553,070, nmallocs 25, nreallocs 107,553,045 10.984s + // 1 total 2,544, nallocs 107,553,070, nmallocs 25, nreallocs 38,905,980 9.597s + // 2 total 2,616, nallocs 107,553,070, nmallocs 25, nreallocs 18,201,284 9.206s + // 3 total 2,624, nallocs 107,553,070, nmallocs 25, nreallocs 16,716,302 9.155s + // 4 total 2,624, nallocs 107,553,070, nmallocs 25, nreallocs 16,156,102 9.398s + // 8 total 3,408, nallocs 107,553,070, nmallocs 25, nreallocs 14,364,274 9.198s + // 16 total 3,976, nallocs 107,553,070, nmallocs 25, nreallocs 6,219,602 8.910s + // --------------------------------------------------------------------------------------------- + // 32 total 5,120, nallocs 107,553,070, nmallocs 25, nreallocs 1,089,037 8.836s + // --------------------------------------------------------------------------------------------- + // 64 total 6,520, nallocs 107,553,070, nmallocs 25, nreallocs 1,788 8.420s + // 128 total 8,848, nallocs 107,553,070, nmallocs 25, nreallocs 1,098 8.833s + // 256 total 8,848, nallocs 107,553,070, nmallocs 25, nreallocs 1,049 9.508s + // 512 total 33,336, nallocs 107,553,070, nmallocs 25, nreallocs 88 8.667s + // none total 33,336, nallocs 107,553,070, nmallocs 25, nreallocs 88 8.408s + const shrinkSegment = 32 + n := Tsize_t(n0) + if tls.sp < len(tls.stack) { + p := tls.stack[tls.sp].p + sz := tls.stack[tls.sp].sz + if sz >= n /* && sz <= shrinkSegment*n */ { + // Segment shrinking is nice to have but Tcl does some dirty hacks in coroutine + // handling that require stability of stack addresses, out of the C execution + // model. Disabled. + tls.sp++ + return p + } + + Xfree(tls, p) + r = mustMalloc(n) + tls.stack[tls.sp] = tlsStackSlot{p: r, sz: Xmalloc_usable_size(tls, r)} + tls.sp++ + return r + + } + + r = mustMalloc(n) + tls.stack = append(tls.stack, tlsStackSlot{p: r, sz: Xmalloc_usable_size(tls, r)}) + tls.sp++ + return r +} + +// Free manages memory of the preceding TLS.Alloc() +func (tls *TLS) Free(n int) { + //TODO shrink stacks if possible. Tcl is currently against. + tls.sp-- + if !tls.checkSignals { + return + } + + select { + case sig := <-tls.pendingSignals: + signum := int32(sig.(unix.Signal)) + h, ok := tls.sigHandlers[signum] + if !ok { + break + } + + switch h { + case SIG_DFL: + // nop + case SIG_IGN: + // nop + default: + (*(*func(*TLS, int32))(unsafe.Pointer(&struct{ uintptr }{h})))(tls, signum) + } + default: + // nop + } +} + +func (tls *TLS) alloca(n Tsize_t) (r uintptr) { + r = mustMalloc(n) + tls.allocas = append(tls.allocas, r) + return r +} + +// AllocaEntry must be called early on function entry when the function calls +// or may call alloca(3). +func (tls *TLS) AllocaEntry() { + tls.allocaStack = append(tls.allocaStack, len(tls.allocas)) +} + +// AllocaExit must be defer-called on function exit when the function calls or +// may call alloca(3). +func (tls *TLS) AllocaExit() { + n := len(tls.allocaStack) + x := tls.allocaStack[n-1] + tls.allocaStack = tls.allocaStack[:n-1] + for _, v := range tls.allocas[x:] { + Xfree(tls, v) + } + tls.allocas = tls.allocas[:x] +} + +func (tls *TLS) Close() { + defer func() { *tls = TLS{} }() + + for _, v := range tls.allocas { + Xfree(tls, v) + } + for _, v := range tls.stack /* shrink diabled[:tls.sp] */ { + Xfree(tls, v.p) + } + if tls.ownsPthread { + Xfree(tls, tls.pthread) + } +} + +func (tls *TLS) PushJumpBuffer(jb uintptr) { + tls.jumpBuffers = append(tls.jumpBuffers, jb) +} + +type LongjmpRetval int32 + +func (tls *TLS) PopJumpBuffer(jb uintptr) { + n := len(tls.jumpBuffers) + if n == 0 || tls.jumpBuffers[n-1] != jb { + panic(todo("unsupported setjmp/longjmp usage")) + } + + tls.jumpBuffers = tls.jumpBuffers[:n-1] +} + +func (tls *TLS) Longjmp(jb uintptr, val int32) { + tls.PopJumpBuffer(jb) + if val == 0 { + val = 1 + } + panic(LongjmpRetval(val)) +} + +// ============================================================================ + +func Xexit(tls *TLS, code int32) { + //TODO atexit finalizers + X__stdio_exit(tls) + for i := len(atExit) - 1; i >= 0; i-- { + atExit[i]() + } + atExitHandlersMu.Lock() + for i := len(atExitHandlers) - 1; i >= 0; i-- { + v := atExitHandlers[i] + (*(*func(*TLS))(unsafe.Pointer(&struct{ uintptr }{v})))(tls) + } + os.Exit(int(code)) +} + +func _exit(tls *TLS, code int32) { + Xexit(tls, code) +} + +var abort Tsigaction + +func Xabort(tls *TLS) { + X__libc_sigaction(tls, SIGABRT, uintptr(unsafe.Pointer(&abort)), 0) + unix.Kill(unix.Getpid(), unix.Signal(SIGABRT)) + panic(todo("unrechable")) +} + +type lock struct { + sync.Mutex + waiters int +} + +var ( + locksMu sync.Mutex + locks = map[uintptr]*lock{} +) + +/* + + T1 T2 + + lock(&foo) // foo: 0 -> 1 + + lock(&foo) // foo: 1 -> 2 + + unlock(&foo) // foo: 2 -> 1, non zero means waiter(s) active + + unlock(&foo) // foo: 1 -> 0 + +*/ + +func ___lock(tls *TLS, p uintptr) { + if atomic.AddInt32((*int32)(unsafe.Pointer(p)), 1) == 1 { + return + } + + // foo was already acquired by some other C thread. + locksMu.Lock() + l := locks[p] + if l == nil { + l = &lock{} + locks[p] = l + l.Lock() + } + l.waiters++ + locksMu.Unlock() + l.Lock() // Wait for T1 to release foo. (X below) +} + +func ___unlock(tls *TLS, p uintptr) { + if atomic.AddInt32((*int32)(unsafe.Pointer(p)), -1) == 0 { + return + } + + // Some other C thread is waiting for foo. + locksMu.Lock() + l := locks[p] + if l == nil { + // We are T1 and we got the locksMu locked before T2. + l = &lock{waiters: 1} + l.Lock() + } + l.Unlock() // Release foo, T2 may now lock it. (X above) + l.waiters-- + if l.waiters == 0 { // we are T2 + delete(locks, p) + } + locksMu.Unlock() +} + +type lockedFile struct { + ch chan struct{} + waiters int +} + +var ( + lockedFilesMu sync.Mutex + lockedFiles = map[uintptr]*lockedFile{} +) + +func X__lockfile(tls *TLS, file uintptr) int32 { + return ___lockfile(tls, file) +} + +// int __lockfile(FILE *f) +func ___lockfile(tls *TLS, file uintptr) int32 { + panic(todo("")) + // lockedFilesMu.Lock() + + // defer lockedFilesMu.Unlock() + + // l := lockedFiles[file] + // if l == nil { + // l = &lockedFile{ch: make(chan struct{}, 1)} + // lockedFiles[file] = l + // } + + // l.waiters++ + // l.ch <- struct{}{} +} + +func X__unlockfile(tls *TLS, file uintptr) { + ___unlockfile(tls, file) +} + +// void __unlockfile(FILE *f) +func ___unlockfile(tls *TLS, file uintptr) { + panic(todo("")) + lockedFilesMu.Lock() + + defer lockedFilesMu.Unlock() + + l := lockedFiles[file] + l.waiters-- + if l.waiters == 0 { + delete(lockedFiles, file) + } + <-l.ch +} + +// void __synccall(void (*func)(void *), void *ctx) +func ___synccall(tls *TLS, fn, ctx uintptr) { + (*(*func(*TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{fn})))(tls, ctx) +} + +// func ___randname(tls *TLS, template uintptr) (r1 uintptr) { +// bp := tls.Alloc(16) +// defer tls.Free(16) +// var i int32 +// var r uint64 +// var _ /* ts at bp+0 */ Ttimespec +// X__clock_gettime(tls, CLOCK_REALTIME, bp) +// goto _2 +// _2: +// r = uint64((*(*Ttimespec)(unsafe.Pointer(bp))).Ftv_sec+(*(*Ttimespec)(unsafe.Pointer(bp))).Ftv_nsec) + uint64(tls.ID)*uint64(65537) +// i = 0 +// for { +// if !(i < int32(6)) { +// break +// } +// *(*int8)(unsafe.Pointer(template + uintptr(i))) = int8(uint64('A') + r&uint64(15) + r&uint64(16)*uint64(2)) +// goto _3 +// _3: +// i++ +// r >>= uint64(5) +// } +// return template +// } + +// #include +// #include +// #include "pthread_impl.h" +// +// /* This assumes that a check for the +// +// template size has already been made */ +// +// char *__randname(char *template) +// +// { +// int i; +// struct timespec ts; +// unsigned long r; +// +// __clock_gettime(CLOCK_REALTIME, &ts); +// r = ts.tv_sec + ts.tv_nsec + __pthread_self()->tid * 65537UL; +// for (i=0; i<6; i++, r>>=5) +// template[i] = 'A'+(r&15)+(r&16)*2; +// +// return template; +// } +func ___randname(tls *TLS, template uintptr) (r1 uintptr) { + var i int32 + ts := time.Now().UnixNano() + r := uint64(ts) + uint64(tls.ID)*65537 + i = 0 + for { + if !(i < int32(6)) { + break + } + *(*int8)(unsafe.Pointer(template + uintptr(i))) = int8(uint64('A') + r&uint64(15) + r&uint64(16)*uint64(2)) + goto _3 + _3: + i++ + r >>= uint64(5) + } + return template +} + +func ___get_tp(tls *TLS) uintptr { + return tls.pthread +} + +func Xfork(t *TLS) int32 { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } + t.setErrno(ENOSYS) + return -1 +} + +const SIG_DFL = 0 +const SIG_IGN = 1 + +func Xsignal(tls *TLS, signum int32, handler uintptr) (r uintptr) { + r, tls.sigHandlers[signum] = tls.sigHandlers[signum], handler + switch handler { + case SIG_DFL: + gosignal.Reset(unix.Signal(signum)) + case SIG_IGN: + gosignal.Ignore(unix.Signal(signum)) + default: + if tls.pendingSignals == nil { + tls.pendingSignals = make(chan os.Signal, 3) + tls.checkSignals = true + } + gosignal.Notify(tls.pendingSignals, unix.Signal(signum)) + } + return r +} + +var ( + atExitHandlersMu sync.Mutex + atExitHandlers []uintptr +) + +func Xatexit(tls *TLS, func_ uintptr) (r int32) { + atExitHandlersMu.Lock() + atExitHandlers = append(atExitHandlers, func_) + atExitHandlersMu.Unlock() + return 0 +} + +var __sync_synchronize_dummy int32 + +// __sync_synchronize(); +func X__sync_synchronize(t *TLS) { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } + // Attempt to implement a full memory barrier without assembler. + atomic.StoreInt32(&__sync_synchronize_dummy, atomic.LoadInt32(&__sync_synchronize_dummy)+1) +} + +func Xdlopen(t *TLS, filename uintptr, flags int32) uintptr { + if __ccgo_strace { + trc("t=%v filename=%v flags=%v, (%v:)", t, filename, flags, origin(2)) + } + return 0 +} + +func Xdlsym(t *TLS, handle, symbol uintptr) uintptr { + if __ccgo_strace { + trc("t=%v symbol=%v, (%v:)", t, symbol, origin(2)) + } + return 0 +} + +var dlErrorMsg = []byte("not supported\x00") + +func Xdlerror(t *TLS) uintptr { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } + return uintptr(unsafe.Pointer(&dlErrorMsg[0])) +} + +func Xdlclose(t *TLS, handle uintptr) int32 { + if __ccgo_strace { + trc("t=%v handle=%v, (%v:)", t, handle, origin(2)) + } + panic(todo("")) +} + +func Xsystem(t *TLS, command uintptr) int32 { + if __ccgo_strace { + trc("t=%v command=%v, (%v:)", t, command, origin(2)) + } + s := GoString(command) + if command == 0 { + panic(todo("")) + } + + cmd := exec.Command("sh", "-c", s) + cmd.Stdout = os.Stdout + cmd.Stderr = os.Stderr + err := cmd.Run() + if err != nil { + ps := err.(*exec.ExitError) + return int32(ps.ExitCode()) + } + + return 0 +} + +func Xsched_yield(tls *TLS) int32 { + runtime.Gosched() + return 0 +} + +// AtExit will attempt to run f at process exit. The execution cannot be +// guaranteed, neither its ordering with respect to any other handlers +// registered by AtExit. +func AtExit(f func()) { + atExitMu.Lock() + atExit = append(atExit, f) + atExitMu.Unlock() +} + +func Bool64(b bool) int64 { + if b { + return 1 + } + + return 0 +} + +func Environ() uintptr { + __ccgo_environOnce.Do(func() { + Xenviron = mustAllocStrings(os.Environ()) + }) + return Xenviron +} + +func EnvironP() uintptr { + __ccgo_environOnce.Do(func() { + Xenviron = mustAllocStrings(os.Environ()) + }) + return uintptr(unsafe.Pointer(&Xenviron)) +} + +// NewVaList is like VaList but automatically allocates the correct amount of +// memory for all of the items in args. +// +// The va_list return value is used to pass the constructed var args to var +// args accepting functions. The caller of NewVaList is responsible for freeing +// the va_list. +func NewVaList(args ...interface{}) (va_list uintptr) { + return VaList(NewVaListN(len(args)), args...) +} + +// NewVaListN returns a newly allocated va_list for n items. The caller of +// NewVaListN is responsible for freeing the va_list. +func NewVaListN(n int) (va_list uintptr) { + return Xmalloc(nil, Tsize_t(8*n)) +} + +func SetEnviron(t *TLS, env []string) { + __ccgo_environOnce.Do(func() { + Xenviron = mustAllocStrings(env) + }) +} + +func Dmesg(s string, args ...interface{}) { + // nop +} + +func Xalloca(tls *TLS, size Tsize_t) uintptr { + return tls.alloca(size) +} + +// struct cmsghdr *CMSG_NXTHDR(struct msghdr *msgh, struct cmsghdr *cmsg); +func X__cmsg_nxthdr(t *TLS, msgh, cmsg uintptr) uintptr { + panic(todo("")) +} + +func Cover() { + runtime.Callers(2, coverPCs[:]) + Covered[coverPCs[0]] = struct{}{} +} + +func CoverReport(w io.Writer) error { + var a []string + pcs := make([]uintptr, 1) + for pc := range Covered { + pcs[0] = pc + frame, _ := runtime.CallersFrames(pcs).Next() + a = append(a, fmt.Sprintf("%s:%07d:%s", filepath.Base(frame.File), frame.Line, frame.Func.Name())) + } + sort.Strings(a) + _, err := fmt.Fprintf(w, "%s\n", strings.Join(a, "\n")) + return err +} + +func CoverC(s string) { + CoveredC[s] = struct{}{} +} + +func CoverCReport(w io.Writer) error { + var a []string + for k := range CoveredC { + a = append(a, k) + } + sort.Strings(a) + _, err := fmt.Fprintf(w, "%s\n", strings.Join(a, "\n")) + return err +} + +func X__ccgo_dmesg(t *TLS, fmt uintptr, va uintptr) { + panic(todo("")) +} + +func X__ccgo_getMutexType(tls *TLS, m uintptr) int32 { /* pthread_mutex_lock.c:3:5: */ + panic(todo("")) +} + +func X__ccgo_in6addr_anyp(t *TLS) uintptr { + panic(todo("")) +} + +func X__ccgo_pthreadAttrGetDetachState(tls *TLS, a uintptr) int32 { /* pthread_attr_get.c:3:5: */ + panic(todo("")) +} + +func X__ccgo_pthreadMutexattrGettype(tls *TLS, a uintptr) int32 { /* pthread_attr_get.c:93:5: */ + panic(todo("")) +} + +// void sqlite3_log(int iErrCode, const char *zFormat, ...); +func X__ccgo_sqlite3_log(t *TLS, iErrCode int32, zFormat uintptr, args uintptr) { + // nop +} + +// unsigned __sync_add_and_fetch_uint32(*unsigned, unsigned) +func X__sync_add_and_fetch_uint32(t *TLS, p uintptr, v uint32) uint32 { + return atomic.AddUint32((*uint32)(unsafe.Pointer(p)), v) +} + +// unsigned __sync_sub_and_fetch_uint32(*unsigned, unsigned) +func X__sync_sub_and_fetch_uint32(t *TLS, p uintptr, v uint32) uint32 { + return atomic.AddUint32((*uint32)(unsafe.Pointer(p)), -v) +} + +var ( + randomData = map[uintptr]*rand.Rand{} + randomDataMu sync.Mutex +) + +// The initstate_r() function is like initstate(3) except that it initializes +// the state in the object pointed to by buf, rather than initializing the +// global state variable. Before calling this function, the buf.state field +// must be initialized to NULL. The initstate_r() function records a pointer +// to the statebuf argument inside the structure pointed to by buf. Thus, +// state‐ buf should not be deallocated so long as buf is still in use. (So, +// statebuf should typically be allocated as a static variable, or allocated on +// the heap using malloc(3) or similar.) +// +// char *initstate_r(unsigned int seed, char *statebuf, size_t statelen, struct random_data *buf); +func Xinitstate_r(t *TLS, seed uint32, statebuf uintptr, statelen Tsize_t, buf uintptr) int32 { + if buf == 0 { + panic(todo("")) + } + + randomDataMu.Lock() + + defer randomDataMu.Unlock() + + randomData[buf] = rand.New(rand.NewSource(int64(seed))) + return 0 +} + +// int random_r(struct random_data *buf, int32_t *result); +func Xrandom_r(t *TLS, buf, result uintptr) int32 { + randomDataMu.Lock() + + defer randomDataMu.Unlock() + + mr := randomData[buf] + if RAND_MAX != math.MaxInt32 { + panic(todo("")) + } + *(*int32)(unsafe.Pointer(result)) = mr.Int31() + return 0 +} + +// void longjmp(jmp_buf env, int val); +func Xlongjmp(t *TLS, env uintptr, val int32) { + panic(todo("")) +} + +// void _longjmp(jmp_buf env, int val); +func X_longjmp(t *TLS, env uintptr, val int32) { + panic(todo("")) +} + +// int _obstack_begin (struct obstack *h, _OBSTACK_SIZE_T size, _OBSTACK_SIZE_T alignment, void *(*chunkfun) (size_t), void (*freefun) (void *)) +func X_obstack_begin(t *TLS, obstack uintptr, size, alignment int32, chunkfun, freefun uintptr) int32 { + panic(todo("")) +} + +// extern void _obstack_newchunk(struct obstack *, int); +func X_obstack_newchunk(t *TLS, obstack uintptr, length int32) int32 { + panic(todo("")) +} + +// void obstack_free (struct obstack *h, void *obj) +func Xobstack_free(t *TLS, obstack, obj uintptr) { + panic(todo("")) +} + +// int obstack_vprintf (struct obstack *obstack, const char *template, va_list ap) +func Xobstack_vprintf(t *TLS, obstack, template, va uintptr) int32 { + panic(todo("")) +} + +// int _setjmp(jmp_buf env); +func X_setjmp(t *TLS, env uintptr) int32 { + return 0 //TODO +} + +// int setjmp(jmp_buf env); +func Xsetjmp(t *TLS, env uintptr) int32 { + panic(todo("")) +} + +// int backtrace(void **buffer, int size); +func Xbacktrace(t *TLS, buf uintptr, size int32) int32 { + panic(todo("")) +} + +// void backtrace_symbols_fd(void *const *buffer, int size, int fd); +func Xbacktrace_symbols_fd(t *TLS, buffer uintptr, size, fd int32) { + panic(todo("")) +} + +// int fts_close(FTS *ftsp); +func Xfts_close(t *TLS, ftsp uintptr) int32 { + panic(todo("")) +} + +// FTS *fts_open(char * const *path_argv, int options, int (*compar)(const FTSENT **, const FTSENT **)); +func Xfts_open(t *TLS, path_argv uintptr, options int32, compar uintptr) uintptr { + panic(todo("")) +} + +// FTSENT *fts_read(FTS *ftsp); +func Xfts64_read(t *TLS, ftsp uintptr) uintptr { + panic(todo("")) +} + +// int fts_close(FTS *ftsp); +func Xfts64_close(t *TLS, ftsp uintptr) int32 { + panic(todo("")) +} + +// FTS *fts_open(char * const *path_argv, int options, int (*compar)(const FTSENT **, const FTSENT **)); +func Xfts64_open(t *TLS, path_argv uintptr, options int32, compar uintptr) uintptr { + panic(todo("")) +} + +// FTSENT *fts_read(FTS *ftsp); +func Xfts_read(t *TLS, ftsp uintptr) uintptr { + panic(todo("")) +} + +// FILE *popen(const char *command, const char *type); +func Xpopen(t *TLS, command, type1 uintptr) uintptr { + panic(todo("")) +} + +// int sysctlbyname(const char *name, void *oldp, size_t *oldlenp, void *newp, size_t newlen); +func Xsysctlbyname(t *TLS, name, oldp, oldlenp, newp uintptr, newlen Tsize_t) int32 { + oldlen := *(*Tsize_t)(unsafe.Pointer(oldlenp)) + switch GoString(name) { + case "hw.ncpu": + if oldlen != 4 { + panic(todo("")) + } + + *(*int32)(unsafe.Pointer(oldp)) = int32(runtime.GOMAXPROCS(-1)) + return 0 + default: + t.setErrno(ENOENT) + return -1 + } +} + +// void uuid_copy(uuid_t dst, uuid_t src); +func Xuuid_copy(t *TLS, dst, src uintptr) { + if __ccgo_strace { + trc("t=%v src=%v, (%v:)", t, src, origin(2)) + } + *(*uuid.Uuid_t)(unsafe.Pointer(dst)) = *(*uuid.Uuid_t)(unsafe.Pointer(src)) +} + +// int uuid_parse( char *in, uuid_t uu); +func Xuuid_parse(t *TLS, in uintptr, uu uintptr) int32 { + if __ccgo_strace { + trc("t=%v in=%v uu=%v, (%v:)", t, in, uu, origin(2)) + } + r, err := guuid.Parse(GoString(in)) + if err != nil { + return -1 + } + + copy((*RawMem)(unsafe.Pointer(uu))[:unsafe.Sizeof(uuid.Uuid_t{})], r[:]) + return 0 +} + +// void uuid_generate_random(uuid_t out); +func Xuuid_generate_random(t *TLS, out uintptr) { + if __ccgo_strace { + trc("t=%v out=%v, (%v:)", t, out, origin(2)) + } + x := guuid.New() + copy((*RawMem)(unsafe.Pointer(out))[:], x[:]) +} + +// void uuid_unparse(uuid_t uu, char *out); +func Xuuid_unparse(t *TLS, uu, out uintptr) { + if __ccgo_strace { + trc("t=%v out=%v, (%v:)", t, out, origin(2)) + } + s := (*guuid.UUID)(unsafe.Pointer(uu)).String() + copy((*RawMem)(unsafe.Pointer(out))[:], s) + *(*byte)(unsafe.Pointer(out + uintptr(len(s)))) = 0 +} + +var Xzero_struct_address Taddress diff --git a/vendor/modernc.org/libc/libc_musl_linux_386.go b/vendor/modernc.org/libc/libc_musl_linux_386.go new file mode 100644 index 000000000..6bc843102 --- /dev/null +++ b/vendor/modernc.org/libc/libc_musl_linux_386.go @@ -0,0 +1,52 @@ +// Copyright 2023 The Libc Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package libc // import "modernc.org/libc" + +import ( + "math/bits" + "sync/atomic" + "unsafe" +) + +type long = int32 + +type ulong = uint32 + +// RawMem represents the biggest byte array the runtime can handle +type RawMem [1<<31 - 1]byte + +func a_crash() + +func _a_crash(tls *TLS) { + a_crash() +} + +func a_cas(p uintptr, t, s int32) int32 + +func _a_cas(tls *TLS, p uintptr, test, s int32) int32 { + return a_cas(p, test, s) +} + +func _a_store(tls *TLS, p uintptr, v int32) { + atomic.StoreInt32((*int32)(unsafe.Pointer(p)), v) +} + +func _a_clz_32(tls *TLS, x uint32) int32 { + return int32(bits.LeadingZeros32(x)) +} + +func _a_ctz_32(tls *TLS, x uint32) int32 { + return X__builtin_ctz(tls, x) +} + +func a_or(p uintptr, v int32) + +func _a_or(tls *TLS, p uintptr, v int32) { + a_or(p, v) +} + +func _a_swap(tls *TLS, p uintptr, v int32) int32 { + return atomic.SwapInt32((*int32)(unsafe.Pointer(p)), v) +} diff --git a/vendor/modernc.org/libc/libc_musl_linux_amd64.go b/vendor/modernc.org/libc/libc_musl_linux_amd64.go new file mode 100644 index 000000000..784595d7b --- /dev/null +++ b/vendor/modernc.org/libc/libc_musl_linux_amd64.go @@ -0,0 +1,29 @@ +// Copyright 2023 The Libc Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package libc // import "modernc.org/libc" + +import ( + "golang.org/x/sys/unix" +) + +type long = int64 + +type ulong = uint64 + +// RawMem represents the biggest byte array the runtime can handle +type RawMem [1<<50 - 1]byte + +// int renameat2(int olddirfd, const char *oldpath, int newdirfd, const char *newpath, unsigned int flags); +func Xrenameat2(t *TLS, olddirfd int32, oldpath uintptr, newdirfd int32, newpath uintptr, flags int32) int32 { + if __ccgo_strace { + trc("t=%v olddirfd=%v oldpath=%v newdirfd=%v newpath=%v flags=%v, (%v:)", t, olddirfd, oldpath, newdirfd, newpath, flags, origin(2)) + } + if _, _, err := unix.Syscall6(unix.SYS_RENAMEAT2, uintptr(olddirfd), oldpath, uintptr(newdirfd), newpath, uintptr(flags), 0); err != 0 { + t.setErrno(int32(err)) + return -1 + } + + return 0 +} diff --git a/vendor/modernc.org/libc/libc_musl_linux_arm.go b/vendor/modernc.org/libc/libc_musl_linux_arm.go new file mode 100644 index 000000000..2fe28c708 --- /dev/null +++ b/vendor/modernc.org/libc/libc_musl_linux_arm.go @@ -0,0 +1,70 @@ +// Copyright 2023 The Libc Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package libc // import "modernc.org/libc" + +import ( + "math/bits" + "sync/atomic" + "unsafe" +) + +type long = int32 + +type ulong = uint32 + +var ( + ___a_barrier_ptr ulong +) + +// RawMem represents the biggest byte array the runtime can handle +type RawMem [1<<31 - 1]byte + +// void *memcpy(void *dest, const void *src, size_t n); +func Xmemcpy(t *TLS, dest, src uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("t=%v src=%v n=%v, (%v:)", t, src, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + return _memcpy(t, dest, src, n) +} + +func _memcpy(t *TLS, dest, src uintptr, n Tsize_t) (r uintptr) { + if n != 0 { + copy((*RawMem)(unsafe.Pointer(dest))[:n:n], (*RawMem)(unsafe.Pointer(src))[:n:n]) + } + return dest +} + +func _fetestexcept(t *TLS, _ int32) int32 { + return 0 +} + +func _feclearexcept(t *TLS, _ int32) int32 { + return 0 +} + +func _a_crash(tls *TLS) { + panic("crash") +} + +var atomicBarrier atomic.Int32 + +func _a_barrier(tls *TLS) { + atomicBarrier.Add(1) +} + +// static inline int a_sc(volatile int *p, int v) +func _a_sc(*TLS, uintptr, int32) int32 { + panic(todo("")) +} + +// static inline int a_ll(volatile int *p) +func _a_ll(tls *TLS, p uintptr) int32 { + return atomic.LoadInt32((*int32)(unsafe.Pointer(p))) +} + +func _a_clz_32(tls *TLS, x uint32) int32 { + return int32(bits.LeadingZeros32(x)) +} diff --git a/vendor/modernc.org/libc/libc_musl_linux_arm64.go b/vendor/modernc.org/libc/libc_musl_linux_arm64.go new file mode 100644 index 000000000..784595d7b --- /dev/null +++ b/vendor/modernc.org/libc/libc_musl_linux_arm64.go @@ -0,0 +1,29 @@ +// Copyright 2023 The Libc Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package libc // import "modernc.org/libc" + +import ( + "golang.org/x/sys/unix" +) + +type long = int64 + +type ulong = uint64 + +// RawMem represents the biggest byte array the runtime can handle +type RawMem [1<<50 - 1]byte + +// int renameat2(int olddirfd, const char *oldpath, int newdirfd, const char *newpath, unsigned int flags); +func Xrenameat2(t *TLS, olddirfd int32, oldpath uintptr, newdirfd int32, newpath uintptr, flags int32) int32 { + if __ccgo_strace { + trc("t=%v olddirfd=%v oldpath=%v newdirfd=%v newpath=%v flags=%v, (%v:)", t, olddirfd, oldpath, newdirfd, newpath, flags, origin(2)) + } + if _, _, err := unix.Syscall6(unix.SYS_RENAMEAT2, uintptr(olddirfd), oldpath, uintptr(newdirfd), newpath, uintptr(flags), 0); err != 0 { + t.setErrno(int32(err)) + return -1 + } + + return 0 +} diff --git a/vendor/modernc.org/libc/libc_musl_linux_loong64.go b/vendor/modernc.org/libc/libc_musl_linux_loong64.go new file mode 100644 index 000000000..784595d7b --- /dev/null +++ b/vendor/modernc.org/libc/libc_musl_linux_loong64.go @@ -0,0 +1,29 @@ +// Copyright 2023 The Libc Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package libc // import "modernc.org/libc" + +import ( + "golang.org/x/sys/unix" +) + +type long = int64 + +type ulong = uint64 + +// RawMem represents the biggest byte array the runtime can handle +type RawMem [1<<50 - 1]byte + +// int renameat2(int olddirfd, const char *oldpath, int newdirfd, const char *newpath, unsigned int flags); +func Xrenameat2(t *TLS, olddirfd int32, oldpath uintptr, newdirfd int32, newpath uintptr, flags int32) int32 { + if __ccgo_strace { + trc("t=%v olddirfd=%v oldpath=%v newdirfd=%v newpath=%v flags=%v, (%v:)", t, olddirfd, oldpath, newdirfd, newpath, flags, origin(2)) + } + if _, _, err := unix.Syscall6(unix.SYS_RENAMEAT2, uintptr(olddirfd), oldpath, uintptr(newdirfd), newpath, uintptr(flags), 0); err != 0 { + t.setErrno(int32(err)) + return -1 + } + + return 0 +} diff --git a/vendor/modernc.org/libc/libc_musl_linux_ppc64le.go b/vendor/modernc.org/libc/libc_musl_linux_ppc64le.go new file mode 100644 index 000000000..3fbf0e7fe --- /dev/null +++ b/vendor/modernc.org/libc/libc_musl_linux_ppc64le.go @@ -0,0 +1,12 @@ +// Copyright 2023 The Libc Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package libc // import "modernc.org/libc" + +type long = int64 + +type ulong = uint64 + +// RawMem represents the biggest byte array the runtime can handle +type RawMem [1<<50 - 1]byte diff --git a/vendor/modernc.org/libc/libc_musl_linux_riscv64.go b/vendor/modernc.org/libc/libc_musl_linux_riscv64.go new file mode 100644 index 000000000..3fbf0e7fe --- /dev/null +++ b/vendor/modernc.org/libc/libc_musl_linux_riscv64.go @@ -0,0 +1,12 @@ +// Copyright 2023 The Libc Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package libc // import "modernc.org/libc" + +type long = int64 + +type ulong = uint64 + +// RawMem represents the biggest byte array the runtime can handle +type RawMem [1<<50 - 1]byte diff --git a/vendor/modernc.org/libc/libc_musl_linux_s390x.go b/vendor/modernc.org/libc/libc_musl_linux_s390x.go new file mode 100644 index 000000000..596296e7d --- /dev/null +++ b/vendor/modernc.org/libc/libc_musl_linux_s390x.go @@ -0,0 +1,50 @@ +// Copyright 2023 The Libc Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package libc // import "modernc.org/libc" + +import ( + "unsafe" + + "golang.org/x/sys/unix" +) + +type long = int64 + +type ulong = uint64 + +// RawMem represents the biggest byte array the runtime can handle +type RawMem [1<<50 - 1]byte + +func Xfesetround(tls *TLS, r int32) (r1 int32) { + if __ccgo_strace { + trc("tls=%v r=%v, (%v:)", tls, r, origin(2)) + defer func() { trc("-> %v", r1) }() + } + return X__fesetround(tls, r) +} + +func Xmmap(tls *TLS, start uintptr, len1 Tsize_t, prot int32, flags int32, fd int32, off Toff_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v start=%v len1=%v prot=%v flags=%v fd=%v off=%v, (%v:)", tls, start, len1, prot, flags, fd, off, origin(2)) + defer func() { trc("-> %v", r) }() + } + return ___mmap(tls, start, len1, prot, flags, fd, off) +} + +func ___mmap(tls *TLS, start uintptr, len1 Tsize_t, prot int32, flags int32, fd int32, off Toff_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v start=%v len1=%v prot=%v flags=%v fd=%v off=%v, (%v:)", tls, start, len1, prot, flags, fd, off, origin(2)) + defer func() { trc("-> %v", r) }() + } + // https://github.com/golang/go/blob/7d822af4500831d131562f17dcf53374469d823e/src/syscall/syscall_linux_s390x.go#L77 + args := [6]uintptr{start, uintptr(len1), uintptr(prot), uintptr(flags), uintptr(fd), uintptr(off)} + data, _, err := unix.Syscall(unix.SYS_MMAP, uintptr(unsafe.Pointer(&args[0])), 0, 0) + if err != 0 { + tls.setErrno(int32(err)) + return ^uintptr(0) // (void*)-1 + } + + return data +} diff --git a/vendor/modernc.org/libc/libc_netbsd.go b/vendor/modernc.org/libc/libc_netbsd.go index 77a28cb5d..9e9da10c9 100644 --- a/vendor/modernc.org/libc/libc_netbsd.go +++ b/vendor/modernc.org/libc/libc_netbsd.go @@ -13,7 +13,6 @@ import ( "runtime" "runtime/debug" "strings" - "syscall" gotime "time" "unsafe" @@ -41,6 +40,8 @@ var ( in6_addr_any in.In6_addr ) +type syscallErrno = unix.Errno + // // Keep these outside of the var block otherwise go generate will miss them. var X__stderrp = Xstdout var X__stdinp = Xstdin @@ -79,9 +80,14 @@ var X_ThreadRuneLocale uintptr //TODO initialize and implement _Thread_local sem // include/xlocale/_ctype.h:54:_RuneLocale *__runes_for_locale(locale_t, int*); func X__runes_for_locale(t *TLS, l locale_t, p uintptr) uintptr { + if __ccgo_strace { + trc("t=%v l=%v p=%v, (%v:)", t, l, p, origin(2)) + } panic(todo("")) } +type Tsize_t = types.Size_t + type file uintptr func (f file) fd() int32 { return int32((*stdio.FILE)(unsafe.Pointer(f)).F_file) } @@ -142,23 +148,35 @@ func fwrite(fd int32, b []byte) (int, error) { // unsigned long ___runetype(__ct_rune_t) __pure; func X___runetype(t *TLS, x int32) ulong { + if __ccgo_strace { + trc("t=%v x=%v, (%v:)", t, x, origin(2)) + } panic(todo("")) } // int fprintf(FILE *stream, const char *format, ...); func Xfprintf(t *TLS, stream, format, args uintptr) int32 { + if __ccgo_strace { + trc("t=%v args=%v, (%v:)", t, args, origin(2)) + } n, _ := fwrite(int32((*stdio.FILE)(unsafe.Pointer(stream)).F_file), printf(format, args)) return int32(n) } // int usleep(useconds_t usec); func Xusleep(t *TLS, usec uint32) int32 { + if __ccgo_strace { + trc("t=%v usec=%v, (%v:)", t, usec, origin(2)) + } gotime.Sleep(gotime.Microsecond * gotime.Duration(usec)) return 0 } // int getrusage(int who, struct rusage *usage); func Xgetrusage(t *TLS, who int32, usage uintptr) int32 { + if __ccgo_strace { + trc("t=%v who=%v usage=%v, (%v:)", t, who, usage, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_GETRUSAGE, uintptr(who), usage, 0); err != 0 { t.setErrno(err) return -1 @@ -169,6 +187,9 @@ func Xgetrusage(t *TLS, who int32, usage uintptr) int32 { // int fgetc(FILE *stream); func Xfgetc(t *TLS, stream uintptr) int32 { + if __ccgo_strace { + trc("t=%v stream=%v, (%v:)", t, stream, origin(2)) + } fd := int((*stdio.FILE)(unsafe.Pointer(stream)).F_file) var buf [1]byte if n, _ := unix.Read(fd, buf[:]); n != 0 { @@ -180,16 +201,25 @@ func Xfgetc(t *TLS, stream uintptr) int32 { // int lstat(const char *pathname, struct stat *statbuf); func Xlstat(t *TLS, pathname, statbuf uintptr) int32 { + if __ccgo_strace { + trc("t=%v statbuf=%v, (%v:)", t, statbuf, origin(2)) + } return Xlstat64(t, pathname, statbuf) } // int stat(const char *pathname, struct stat *statbuf); func Xstat(t *TLS, pathname, statbuf uintptr) int32 { + if __ccgo_strace { + trc("t=%v statbuf=%v, (%v:)", t, statbuf, origin(2)) + } return Xstat64(t, pathname, statbuf) } // int chdir(const char *path); func Xchdir(t *TLS, path uintptr) int32 { + if __ccgo_strace { + trc("t=%v path=%v, (%v:)", t, path, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_CHDIR, path, 0, 0); err != 0 { t.setErrno(err) return -1 @@ -205,11 +235,7 @@ var localtime time.Tm // struct tm *localtime(const time_t *timep); func Xlocaltime(_ *TLS, timep uintptr) uintptr { - loc := gotime.Local - if r := getenv(Environ(), "TZ"); r != 0 { - zone, off := parseZone(GoString(r)) - loc = gotime.FixedZone(zone, -off) - } + loc := getLocalLocation() ut := *(*time.Time_t)(unsafe.Pointer(timep)) t := gotime.Unix(int64(ut), 0).In(loc) localtime.Ftm_sec = int32(t.Second()) @@ -226,11 +252,7 @@ func Xlocaltime(_ *TLS, timep uintptr) uintptr { // struct tm *localtime_r(const time_t *timep, struct tm *result); func Xlocaltime_r(_ *TLS, timep, result uintptr) uintptr { - loc := gotime.Local - if r := getenv(Environ(), "TZ"); r != 0 { - zone, off := parseZone(GoString(r)) - loc = gotime.FixedZone(zone, -off) - } + loc := getLocalLocation() ut := *(*time.Time_t)(unsafe.Pointer(timep)) t := gotime.Unix(int64(ut), 0).In(loc) (*time.Tm)(unsafe.Pointer(result)).Ftm_sec = int32(t.Second()) @@ -247,11 +269,17 @@ func Xlocaltime_r(_ *TLS, timep, result uintptr) uintptr { // int open(const char *pathname, int flags, ...); func Xopen(t *TLS, pathname uintptr, flags int32, args uintptr) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v flags=%v args=%v, (%v:)", t, pathname, flags, args, origin(2)) + } return Xopen64(t, pathname, flags, args) } // int open(const char *pathname, int flags, ...); func Xopen64(t *TLS, pathname uintptr, flags int32, args uintptr) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v flags=%v args=%v, (%v:)", t, pathname, flags, args, origin(2)) + } var mode types.Mode_t if args != 0 { mode = (types.Mode_t)(VaUint32(&args)) @@ -274,6 +302,9 @@ func Xopen64(t *TLS, pathname uintptr, flags int32, args uintptr) int32 { // off_t lseek(int fd, off_t offset, int whence); func Xlseek(t *TLS, fd int32, offset types.Off_t, whence int32) types.Off_t { + if __ccgo_strace { + trc("t=%v fd=%v offset=%v whence=%v, (%v:)", t, fd, offset, whence, origin(2)) + } return types.Off_t(Xlseek64(t, fd, offset, whence)) } @@ -285,6 +316,9 @@ var fsyncStatbuf stat.Stat // int fsync(int fd); func Xfsync(t *TLS, fd int32) int32 { + if __ccgo_strace { + trc("t=%v fd=%v, (%v:)", t, fd, origin(2)) + } if noFsync { // Simulate -DSQLITE_NO_SYNC for sqlite3 testfixture, see function full_sync in sqlite3.c return Xfstat(t, fd, uintptr(unsafe.Pointer(&fsyncStatbuf))) @@ -303,6 +337,9 @@ func Xfsync(t *TLS, fd int32) int32 { // long sysconf(int name); func Xsysconf(t *TLS, name int32) long { + if __ccgo_strace { + trc("t=%v name=%v, (%v:)", t, name, origin(2)) + } switch name { case unistd.X_SC_PAGESIZE: return long(unix.Getpagesize()) @@ -319,6 +356,9 @@ func Xsysconf(t *TLS, name int32) long { // int close(int fd); func Xclose(t *TLS, fd int32) int32 { + if __ccgo_strace { + trc("t=%v fd=%v, (%v:)", t, fd, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_CLOSE, uintptr(fd), 0, 0); err != 0 { t.setErrno(err) return -1 @@ -332,6 +372,9 @@ func Xclose(t *TLS, fd int32) int32 { // char *getcwd(char *buf, size_t size); func Xgetcwd(t *TLS, buf uintptr, size types.Size_t) uintptr { + if __ccgo_strace { + trc("t=%v buf=%v size=%v, (%v:)", t, buf, size, origin(2)) + } if _, err := unix.Getcwd((*RawMem)(unsafe.Pointer(buf))[:size:size]); err != nil { if dmesgs { dmesg("%v: %v FAIL", origin(1), err) @@ -348,11 +391,17 @@ func Xgetcwd(t *TLS, buf uintptr, size types.Size_t) uintptr { // int fstat(int fd, struct stat *statbuf); func Xfstat(t *TLS, fd int32, statbuf uintptr) int32 { + if __ccgo_strace { + trc("t=%v fd=%v statbuf=%v, (%v:)", t, fd, statbuf, origin(2)) + } return Xfstat64(t, fd, statbuf) } // int ftruncate(int fd, off_t length); func Xftruncate(t *TLS, fd int32, length types.Off_t) int32 { + if __ccgo_strace { + trc("t=%v fd=%v length=%v, (%v:)", t, fd, length, origin(2)) + } if err := unix.Ftruncate(int(fd), int64(length)); err != nil { if dmesgs { dmesg("%v: fd %d: %v FAIL", origin(1), fd, err) @@ -369,11 +418,17 @@ func Xftruncate(t *TLS, fd int32, length types.Off_t) int32 { // int fcntl(int fd, int cmd, ... /* arg */ ); func Xfcntl(t *TLS, fd, cmd int32, args uintptr) int32 { + if __ccgo_strace { + trc("t=%v cmd=%v args=%v, (%v:)", t, cmd, args, origin(2)) + } return Xfcntl64(t, fd, cmd, args) } // ssize_t read(int fd, void *buf, size_t count); func Xread(t *TLS, fd int32, buf uintptr, count types.Size_t) types.Ssize_t { + if __ccgo_strace { + trc("t=%v fd=%v buf=%v count=%v, (%v:)", t, fd, buf, count, origin(2)) + } n, _, err := unix.Syscall(unix.SYS_READ, uintptr(fd), buf, uintptr(count)) if err != 0 { t.setErrno(err) @@ -389,8 +444,11 @@ func Xread(t *TLS, fd int32, buf uintptr, count types.Size_t) types.Ssize_t { // ssize_t write(int fd, const void *buf, size_t count); func Xwrite(t *TLS, fd int32, buf uintptr, count types.Size_t) types.Ssize_t { + if __ccgo_strace { + trc("t=%v fd=%v buf=%v count=%v, (%v:)", t, fd, buf, count, origin(2)) + } const retry = 5 - var err syscall.Errno + var err syscallErrno for i := 0; i < retry; i++ { var n uintptr switch n, _, err = unix.Syscall(unix.SYS_WRITE, uintptr(fd), buf, uintptr(count)); err { @@ -414,6 +472,9 @@ func Xwrite(t *TLS, fd int32, buf uintptr, count types.Size_t) types.Ssize_t { // int fchmod(int fd, mode_t mode); func Xfchmod(t *TLS, fd int32, mode types.Mode_t) int32 { + if __ccgo_strace { + trc("t=%v fd=%v mode=%v, (%v:)", t, fd, mode, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_FCHMOD, uintptr(fd), uintptr(mode), 0); err != 0 { t.setErrno(err) return -1 @@ -427,6 +488,9 @@ func Xfchmod(t *TLS, fd int32, mode types.Mode_t) int32 { // int fchown(int fd, uid_t owner, gid_t group); func Xfchown(t *TLS, fd int32, owner types.Uid_t, group types.Gid_t) int32 { + if __ccgo_strace { + trc("t=%v fd=%v owner=%v group=%v, (%v:)", t, fd, owner, group, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_FCHOWN, uintptr(fd), uintptr(owner), uintptr(group)); err != 0 { t.setErrno(err) return -1 @@ -437,12 +501,18 @@ func Xfchown(t *TLS, fd int32, owner types.Uid_t, group types.Gid_t) int32 { // uid_t geteuid(void); func Xgeteuid(t *TLS) types.Uid_t { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } n, _, _ := unix.Syscall(unix.SYS_GETEUID, 0, 0, 0) return types.Uid_t(n) } // int munmap(void *addr, size_t length); func Xmunmap(t *TLS, addr uintptr, length types.Size_t) int32 { + if __ccgo_strace { + trc("t=%v addr=%v length=%v, (%v:)", t, addr, length, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_MUNMAP, addr, uintptr(length), 0); err != 0 { t.setErrno(err) return -1 @@ -453,6 +523,9 @@ func Xmunmap(t *TLS, addr uintptr, length types.Size_t) int32 { // int gettimeofday(struct timeval *tv, struct timezone *tz); func Xgettimeofday(t *TLS, tv, tz uintptr) int32 { + if __ccgo_strace { + trc("t=%v tz=%v, (%v:)", t, tz, origin(2)) + } if tz != 0 { panic(todo("")) } @@ -470,6 +543,9 @@ func Xgettimeofday(t *TLS, tv, tz uintptr) int32 { // int getsockopt(int sockfd, int level, int optname, void *optval, socklen_t *optlen); func Xgetsockopt(t *TLS, sockfd, level, optname int32, optval, optlen uintptr) int32 { + if __ccgo_strace { + trc("t=%v optname=%v optlen=%v, (%v:)", t, optname, optlen, origin(2)) + } if _, _, err := unix.Syscall6(unix.SYS_GETSOCKOPT, uintptr(sockfd), uintptr(level), uintptr(optname), optval, optlen, 0); err != 0 { t.setErrno(err) return -1 @@ -480,6 +556,9 @@ func Xgetsockopt(t *TLS, sockfd, level, optname int32, optval, optlen uintptr) i // int setsockopt(int sockfd, int level, int optname, const void *optval, socklen_t optlen); func Xsetsockopt(t *TLS, sockfd, level, optname int32, optval uintptr, optlen socket.Socklen_t) int32 { + if __ccgo_strace { + trc("t=%v optname=%v optval=%v optlen=%v, (%v:)", t, optname, optval, optlen, origin(2)) + } if _, _, err := unix.Syscall6(unix.SYS_SETSOCKOPT, uintptr(sockfd), uintptr(level), uintptr(optname), optval, uintptr(optlen), 0); err != 0 { t.setErrno(err) return -1 @@ -490,6 +569,9 @@ func Xsetsockopt(t *TLS, sockfd, level, optname int32, optval uintptr, optlen so // int ioctl(int fd, unsigned long request, ...); func Xioctl(t *TLS, fd int32, request ulong, va uintptr) int32 { + if __ccgo_strace { + trc("t=%v fd=%v request=%v va=%v, (%v:)", t, fd, request, va, origin(2)) + } var argp uintptr if va != 0 { argp = VaUintptr(&va) @@ -505,6 +587,9 @@ func Xioctl(t *TLS, fd int32, request ulong, va uintptr) int32 { // int getsockname(int sockfd, struct sockaddr *addr, socklen_t *addrlen); func Xgetsockname(t *TLS, sockfd int32, addr, addrlen uintptr) int32 { + if __ccgo_strace { + trc("t=%v sockfd=%v addrlen=%v, (%v:)", t, sockfd, addrlen, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_GETSOCKNAME, uintptr(sockfd), addr, addrlen); err != 0 { // if dmesgs { // dmesg("%v: fd %v: %v", origin(1), sockfd, err) @@ -518,6 +603,9 @@ func Xgetsockname(t *TLS, sockfd int32, addr, addrlen uintptr) int32 { // int select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout); func Xselect(t *TLS, nfds int32, readfds, writefds, exceptfds, timeout uintptr) int32 { + if __ccgo_strace { + trc("t=%v nfds=%v timeout=%v, (%v:)", t, nfds, timeout, origin(2)) + } n, err := unix.Select( int(nfds), (*unix.FdSet)(unsafe.Pointer(readfds)), @@ -535,17 +623,31 @@ func Xselect(t *TLS, nfds int32, readfds, writefds, exceptfds, timeout uintptr) // int mkfifo(const char *pathname, mode_t mode); func Xmkfifo(t *TLS, pathname uintptr, mode types.Mode_t) int32 { - panic(todo("")) + if __ccgo_strace { + trc("t=%v pathname=%v mode=%v, (%v:)", t, pathname, mode, origin(2)) + } + if err := unix.Mkfifo(GoString(pathname), uint32(mode)); err != nil { + t.setErrno(err) + return -1 + } + + return 0 } // mode_t umask(mode_t mask); func Xumask(t *TLS, mask types.Mode_t) types.Mode_t { + if __ccgo_strace { + trc("t=%v mask=%v, (%v:)", t, mask, origin(2)) + } n, _, _ := unix.Syscall(unix.SYS_UMASK, uintptr(mask), 0, 0) return types.Mode_t(n) } // int execvp(const char *file, char *const argv[]); func Xexecvp(t *TLS, file, argv uintptr) int32 { + if __ccgo_strace { + trc("t=%v argv=%v, (%v:)", t, argv, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_EXECVE, file, argv, Environ()); err != 0 { t.setErrno(err) return -1 @@ -556,6 +658,9 @@ func Xexecvp(t *TLS, file, argv uintptr) int32 { // pid_t waitpid(pid_t pid, int *wstatus, int options); func Xwaitpid(t *TLS, pid types.Pid_t, wstatus uintptr, optname int32) types.Pid_t { + if __ccgo_strace { + trc("t=%v pid=%v wstatus=%v optname=%v, (%v:)", t, pid, wstatus, optname, origin(2)) + } n, _, err := unix.Syscall6(unix.SYS_WAIT4, uintptr(pid), wstatus, uintptr(optname), 0, 0, 0) if err != 0 { t.setErrno(err) @@ -567,6 +672,9 @@ func Xwaitpid(t *TLS, pid types.Pid_t, wstatus uintptr, optname int32) types.Pid // int uname(struct utsname *buf); func Xuname(t *TLS, buf uintptr) int32 { + if __ccgo_strace { + trc("t=%v buf=%v, (%v:)", t, buf, origin(2)) + } if err := unix.Uname((*unix.Utsname)(unsafe.Pointer(buf))); err != nil { if dmesgs { dmesg("%v: %v FAIL", origin(1), err) @@ -583,6 +691,9 @@ func Xuname(t *TLS, buf uintptr) int32 { // ssize_t recv(int sockfd, void *buf, size_t len, int flags); func Xrecv(t *TLS, sockfd int32, buf uintptr, len types.Size_t, flags int32) types.Ssize_t { + if __ccgo_strace { + trc("t=%v sockfd=%v buf=%v len=%v flags=%v, (%v:)", t, sockfd, buf, len, flags, origin(2)) + } n, _, err := unix.Syscall6(unix.SYS_RECVFROM, uintptr(sockfd), buf, uintptr(len), uintptr(flags), 0, 0) if err != 0 { t.setErrno(err) @@ -594,6 +705,9 @@ func Xrecv(t *TLS, sockfd int32, buf uintptr, len types.Size_t, flags int32) typ // ssize_t send(int sockfd, const void *buf, size_t len, int flags); func Xsend(t *TLS, sockfd int32, buf uintptr, len types.Size_t, flags int32) types.Ssize_t { + if __ccgo_strace { + trc("t=%v sockfd=%v buf=%v len=%v flags=%v, (%v:)", t, sockfd, buf, len, flags, origin(2)) + } n, _, err := unix.Syscall6(unix.SYS_SENDTO, uintptr(sockfd), buf, uintptr(len), uintptr(flags), 0, 0) if err != 0 { t.setErrno(err) @@ -605,6 +719,9 @@ func Xsend(t *TLS, sockfd int32, buf uintptr, len types.Size_t, flags int32) typ // int shutdown(int sockfd, int how); func Xshutdown(t *TLS, sockfd, how int32) int32 { + if __ccgo_strace { + trc("t=%v how=%v, (%v:)", t, how, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_SHUTDOWN, uintptr(sockfd), uintptr(how), 0); err != 0 { t.setErrno(err) return -1 @@ -615,6 +732,9 @@ func Xshutdown(t *TLS, sockfd, how int32) int32 { // int getpeername(int sockfd, struct sockaddr *addr, socklen_t *addrlen); func Xgetpeername(t *TLS, sockfd int32, addr uintptr, addrlen uintptr) int32 { + if __ccgo_strace { + trc("t=%v sockfd=%v addr=%v addrlen=%v, (%v:)", t, sockfd, addr, addrlen, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_GETPEERNAME, uintptr(sockfd), addr, uintptr(addrlen)); err != 0 { t.setErrno(err) return -1 @@ -625,6 +745,9 @@ func Xgetpeername(t *TLS, sockfd int32, addr uintptr, addrlen uintptr) int32 { // int socket(int domain, int type, int protocol); func Xsocket(t *TLS, domain, type1, protocol int32) int32 { + if __ccgo_strace { + trc("t=%v protocol=%v, (%v:)", t, protocol, origin(2)) + } n, _, err := unix.Syscall(unix.SYS_SOCKET, uintptr(domain), uintptr(type1), uintptr(protocol)) if err != 0 { t.setErrno(err) @@ -636,6 +759,9 @@ func Xsocket(t *TLS, domain, type1, protocol int32) int32 { // int bind(int sockfd, const struct sockaddr *addr, socklen_t addrlen); func Xbind(t *TLS, sockfd int32, addr uintptr, addrlen uint32) int32 { + if __ccgo_strace { + trc("t=%v sockfd=%v addr=%v addrlen=%v, (%v:)", t, sockfd, addr, addrlen, origin(2)) + } n, _, err := unix.Syscall(unix.SYS_BIND, uintptr(sockfd), addr, uintptr(addrlen)) if err != 0 { t.setErrno(err) @@ -647,6 +773,9 @@ func Xbind(t *TLS, sockfd int32, addr uintptr, addrlen uint32) int32 { // int connect(int sockfd, const struct sockaddr *addr, socklen_t addrlen); func Xconnect(t *TLS, sockfd int32, addr uintptr, addrlen uint32) int32 { + if __ccgo_strace { + trc("t=%v sockfd=%v addr=%v addrlen=%v, (%v:)", t, sockfd, addr, addrlen, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_CONNECT, uintptr(sockfd), addr, uintptr(addrlen)); err != 0 { t.setErrno(err) return -1 @@ -657,6 +786,9 @@ func Xconnect(t *TLS, sockfd int32, addr uintptr, addrlen uint32) int32 { // int listen(int sockfd, int backlog); func Xlisten(t *TLS, sockfd, backlog int32) int32 { + if __ccgo_strace { + trc("t=%v backlog=%v, (%v:)", t, backlog, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_LISTEN, uintptr(sockfd), uintptr(backlog), 0); err != 0 { t.setErrno(err) return -1 @@ -667,6 +799,9 @@ func Xlisten(t *TLS, sockfd, backlog int32) int32 { // int accept(int sockfd, struct sockaddr *addr, socklen_t *addrlen); func Xaccept(t *TLS, sockfd int32, addr uintptr, addrlen uintptr) int32 { + if __ccgo_strace { + trc("t=%v sockfd=%v addr=%v addrlen=%v, (%v:)", t, sockfd, addr, addrlen, origin(2)) + } panic(todo("")) // n, _, err := unix.Syscall6(unix.SYS_ACCEPT4, uintptr(sockfd), addr, uintptr(addrlen), 0, 0, 0) // if err != 0 { @@ -679,16 +814,25 @@ func Xaccept(t *TLS, sockfd int32, addr uintptr, addrlen uintptr) int32 { // int getrlimit(int resource, struct rlimit *rlim); func Xgetrlimit(t *TLS, resource int32, rlim uintptr) int32 { + if __ccgo_strace { + trc("t=%v resource=%v rlim=%v, (%v:)", t, resource, rlim, origin(2)) + } return Xgetrlimit64(t, resource, rlim) } // int setrlimit(int resource, const struct rlimit *rlim); func Xsetrlimit(t *TLS, resource int32, rlim uintptr) int32 { + if __ccgo_strace { + trc("t=%v resource=%v rlim=%v, (%v:)", t, resource, rlim, origin(2)) + } return Xsetrlimit64(t, resource, rlim) } // int setrlimit(int resource, const struct rlimit *rlim); func Xsetrlimit64(t *TLS, resource int32, rlim uintptr) int32 { + if __ccgo_strace { + trc("t=%v resource=%v rlim=%v, (%v:)", t, resource, rlim, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_SETRLIMIT, uintptr(resource), uintptr(rlim), 0); err != 0 { t.setErrno(err) return -1 @@ -699,16 +843,25 @@ func Xsetrlimit64(t *TLS, resource int32, rlim uintptr) int32 { // uid_t getuid(void); func Xgetuid(t *TLS) types.Uid_t { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } return types.Uid_t(os.Getuid()) } // pid_t getpid(void); func Xgetpid(t *TLS) int32 { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } return int32(os.Getpid()) } // int system(const char *command); func Xsystem(t *TLS, command uintptr) int32 { + if __ccgo_strace { + trc("t=%v command=%v, (%v:)", t, command, origin(2)) + } s := GoString(command) if command == 0 { panic(todo("")) @@ -728,30 +881,61 @@ func Xsystem(t *TLS, command uintptr) int32 { // int setvbuf(FILE *stream, char *buf, int mode, size_t size); func Xsetvbuf(t *TLS, stream, buf uintptr, mode int32, size types.Size_t) int32 { + if __ccgo_strace { + trc("t=%v buf=%v mode=%v size=%v, (%v:)", t, buf, mode, size, origin(2)) + } return 0 //TODO } // int raise(int sig); func Xraise(t *TLS, sig int32) int32 { + if __ccgo_strace { + trc("t=%v sig=%v, (%v:)", t, sig, origin(2)) + } panic(todo("")) } // int backtrace(void **buffer, int size); func Xbacktrace(t *TLS, buf uintptr, size int32) int32 { + if __ccgo_strace { + trc("t=%v buf=%v size=%v, (%v:)", t, buf, size, origin(2)) + } panic(todo("")) } // void backtrace_symbols_fd(void *const *buffer, int size, int fd); func Xbacktrace_symbols_fd(t *TLS, buffer uintptr, size, fd int32) { + if __ccgo_strace { + trc("t=%v buffer=%v fd=%v, (%v:)", t, buffer, fd, origin(2)) + } panic(todo("")) } // int fileno(FILE *stream); func Xfileno(t *TLS, stream uintptr) int32 { - panic(todo("")) + if __ccgo_strace { + trc("t=%v stream=%v, (%v:)", t, stream, origin(2)) + } + if stream == 0 { + if dmesgs { + dmesg("%v: FAIL", origin(1)) + } + t.setErrno(errno.EBADF) + return -1 + } + + if fd := int32((*stdio.FILE)(unsafe.Pointer(stream)).F_file); fd >= 0 { + return fd + } + + if dmesgs { + dmesg("%v: FAIL", origin(1)) + } + t.setErrno(errno.EBADF) + return -1 } -func newCFtsent(t *TLS, info int, path string, stat *unix.Stat_t, err syscall.Errno) uintptr { +func newCFtsent(t *TLS, info int, path string, stat *unix.Stat_t, err syscallErrno) uintptr { p := Xcalloc(t, 1, types.Size_t(unsafe.Sizeof(fts.FTSENT{}))) if p == 0 { panic("OOM") @@ -781,11 +965,17 @@ func (f *ftstream) close(t *TLS) { // FTS *fts_open(char * const *path_argv, int options, int (*compar)(const FTSENT **, const FTSENT **)); func Xfts_open(t *TLS, path_argv uintptr, options int32, compar uintptr) uintptr { + if __ccgo_strace { + trc("t=%v path_argv=%v options=%v compar=%v, (%v:)", t, path_argv, options, compar, origin(2)) + } return Xfts64_open(t, path_argv, options, compar) } // FTS *fts_open(char * const *path_argv, int options, int (*compar)(const FTSENT **, const FTSENT **)); func Xfts64_open(t *TLS, path_argv uintptr, options int32, compar uintptr) uintptr { + if __ccgo_strace { + trc("t=%v path_argv=%v options=%v compar=%v, (%v:)", t, path_argv, options, compar, origin(2)) + } f := &ftstream{} var walk func(string) @@ -890,11 +1080,17 @@ func Xfts64_open(t *TLS, path_argv uintptr, options int32, compar uintptr) uintp // FTSENT *fts_read(FTS *ftsp); func Xfts_read(t *TLS, ftsp uintptr) uintptr { + if __ccgo_strace { + trc("t=%v ftsp=%v, (%v:)", t, ftsp, origin(2)) + } return Xfts64_read(t, ftsp) } // FTSENT *fts_read(FTS *ftsp); func Xfts64_read(t *TLS, ftsp uintptr) uintptr { + if __ccgo_strace { + trc("t=%v ftsp=%v, (%v:)", t, ftsp, origin(2)) + } f := getObject(ftsp).(*ftstream) if f.x == len(f.s) { t.setErrno(0) @@ -911,11 +1107,17 @@ func Xfts64_read(t *TLS, ftsp uintptr) uintptr { // int fts_close(FTS *ftsp); func Xfts_close(t *TLS, ftsp uintptr) int32 { + if __ccgo_strace { + trc("t=%v ftsp=%v, (%v:)", t, ftsp, origin(2)) + } return Xfts64_close(t, ftsp) } // int fts_close(FTS *ftsp); func Xfts64_close(t *TLS, ftsp uintptr) int32 { + if __ccgo_strace { + trc("t=%v ftsp=%v, (%v:)", t, ftsp, origin(2)) + } getObject(ftsp).(*ftstream).close(t) removeObject(ftsp) return 0 @@ -923,6 +1125,9 @@ func Xfts64_close(t *TLS, ftsp uintptr) int32 { // void tzset (void); func Xtzset(t *TLS) { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } //TODO } @@ -930,6 +1135,9 @@ var strerrorBuf [100]byte // char *strerror(int errnum); func Xstrerror(t *TLS, errnum int32) uintptr { + if __ccgo_strace { + trc("t=%v errnum=%v, (%v:)", t, errnum, origin(2)) + } if dmesgs { dmesg("%v: %v\n%s", origin(1), errnum, debug.Stack()) } @@ -939,31 +1147,53 @@ func Xstrerror(t *TLS, errnum int32) uintptr { // void *dlopen(const char *filename, int flags); func Xdlopen(t *TLS, filename uintptr, flags int32) uintptr { + if __ccgo_strace { + trc("t=%v filename=%v flags=%v, (%v:)", t, filename, flags, origin(2)) + } panic(todo("")) } // char *dlerror(void); func Xdlerror(t *TLS) uintptr { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } panic(todo("")) } // int dlclose(void *handle); func Xdlclose(t *TLS, handle uintptr) int32 { + if __ccgo_strace { + trc("t=%v handle=%v, (%v:)", t, handle, origin(2)) + } panic(todo("")) } // void *dlsym(void *handle, const char *symbol); func Xdlsym(t *TLS, handle, symbol uintptr) uintptr { + if __ccgo_strace { + trc("t=%v symbol=%v, (%v:)", t, symbol, origin(2)) + } panic(todo("")) } // void perror(const char *s); -func Xperror(t *TLS, s uintptr) { - panic(todo("")) +func Xperror(tls *TLS, msg uintptr) { + if __ccgo_strace { + trc("tls=%v msg=%v, (%v:)", tls, msg, origin(2)) + } + if msg != 0 && *(*int8)(unsafe.Pointer(msg)) != 0 { + fmt.Fprintf(os.Stderr, "%s: ", GoString(msg)) + } + errstr := Xstrerror(tls, *(*int32)(unsafe.Pointer(X__errno_location(tls)))) + fmt.Fprintf(os.Stderr, "%s\n", GoString(errstr)) } // int pclose(FILE *stream); func Xpclose(t *TLS, stream uintptr) int32 { + if __ccgo_strace { + trc("t=%v stream=%v, (%v:)", t, stream, origin(2)) + } panic(todo("")) } @@ -971,37 +1201,58 @@ var gai_strerrorBuf [100]byte // const char *gai_strerror(int errcode); func Xgai_strerror(t *TLS, errcode int32) uintptr { + if __ccgo_strace { + trc("t=%v errcode=%v, (%v:)", t, errcode, origin(2)) + } copy(gai_strerrorBuf[:], fmt.Sprintf("gai error %d\x00", errcode)) return uintptr(unsafe.Pointer(&gai_strerrorBuf)) } // int tcgetattr(int fd, struct termios *termios_p); func Xtcgetattr(t *TLS, fd int32, termios_p uintptr) int32 { + if __ccgo_strace { + trc("t=%v fd=%v termios_p=%v, (%v:)", t, fd, termios_p, origin(2)) + } panic(todo("")) } // int tcsetattr(int fd, int optional_actions, const struct termios *termios_p); func Xtcsetattr(t *TLS, fd, optional_actions int32, termios_p uintptr) int32 { + if __ccgo_strace { + trc("t=%v optional_actions=%v termios_p=%v, (%v:)", t, optional_actions, termios_p, origin(2)) + } panic(todo("")) } // speed_t cfgetospeed(const struct termios *termios_p); func Xcfgetospeed(t *TLS, termios_p uintptr) termios.Speed_t { + if __ccgo_strace { + trc("t=%v termios_p=%v, (%v:)", t, termios_p, origin(2)) + } panic(todo("")) } // int cfsetospeed(struct termios *termios_p, speed_t speed); func Xcfsetospeed(t *TLS, termios_p uintptr, speed uint32) int32 { + if __ccgo_strace { + trc("t=%v termios_p=%v speed=%v, (%v:)", t, termios_p, speed, origin(2)) + } panic(todo("")) } // int cfsetispeed(struct termios *termios_p, speed_t speed); func Xcfsetispeed(t *TLS, termios_p uintptr, speed uint32) int32 { + if __ccgo_strace { + trc("t=%v termios_p=%v speed=%v, (%v:)", t, termios_p, speed, origin(2)) + } panic(todo("")) } // pid_t fork(void); func Xfork(t *TLS) int32 { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } t.setErrno(errno.ENOSYS) return -1 } @@ -1010,21 +1261,33 @@ var emptyStr = [1]byte{} // char *setlocale(int category, const char *locale); func Xsetlocale(t *TLS, category int32, locale uintptr) uintptr { + if __ccgo_strace { + trc("t=%v category=%v locale=%v, (%v:)", t, category, locale, origin(2)) + } return uintptr(unsafe.Pointer(&emptyStr)) //TODO } // char *nl_langinfo(nl_item item); func Xnl_langinfo(t *TLS, item langinfo.Nl_item) uintptr { + if __ccgo_strace { + trc("t=%v item=%v, (%v:)", t, item, origin(2)) + } return uintptr(unsafe.Pointer(&emptyStr)) //TODO } // FILE *popen(const char *command, const char *type); func Xpopen(t *TLS, command, type1 uintptr) uintptr { + if __ccgo_strace { + trc("t=%v type1=%v, (%v:)", t, type1, origin(2)) + } panic(todo("")) } // char *realpath(const char *path, char *resolved_path); func Xrealpath(t *TLS, path, resolved_path uintptr) uintptr { + if __ccgo_strace { + trc("t=%v resolved_path=%v, (%v:)", t, resolved_path, origin(2)) + } s, err := filepath.EvalSymlinks(GoString(path)) if err != nil { if os.IsNotExist(err) { @@ -1051,21 +1314,25 @@ func Xrealpath(t *TLS, path, resolved_path uintptr) uintptr { return resolved_path } -// struct tm *gmtime_r(const time_t *timep, struct tm *result); -func Xgmtime_r(t *TLS, timep, result uintptr) uintptr { - panic(todo("")) -} - // char *inet_ntoa(struct in_addr in); func Xinet_ntoa(t *TLS, in1 in.In_addr) uintptr { + if __ccgo_strace { + trc("t=%v in1=%v, (%v:)", t, in1, origin(2)) + } panic(todo("")) } func X__ccgo_in6addr_anyp(t *TLS) uintptr { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } return uintptr(unsafe.Pointer(&in6_addr_any)) } func Xabort(t *TLS) { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } panic(todo("")) //TODO // if dmesgs { // dmesg("%v:", origin(1)) @@ -1078,17 +1345,26 @@ func Xabort(t *TLS) { // (*signal.Sigaction)(unsafe.Pointer(p)).F__sigaction_u.F__sa_handler = signal.SIG_DFL // Xsigaction(t, signal.SIGABRT, p, 0) // Xfree(t, p) - // unix.Kill(unix.Getpid(), syscall.Signal(signal.SIGABRT)) + // unix.Kill(unix.Getpid(), unix.Signal(signal.SIGABRT)) // panic(todo("unrechable")) } // int fflush(FILE *stream); func Xfflush(t *TLS, stream uintptr) int32 { + if __ccgo_strace { + trc("t=%v stream=%v, (%v:)", t, stream, origin(2)) + } return 0 //TODO } // size_t fread(void *ptr, size_t size, size_t nmemb, FILE *stream); func Xfread(t *TLS, ptr uintptr, size, nmemb types.Size_t, stream uintptr) types.Size_t { + if __ccgo_strace { + trc("t=%v ptr=%v nmemb=%v stream=%v, (%v:)", t, ptr, nmemb, stream, origin(2)) + } + if size == 0 || nmemb == 0 { + return 0 + } m, _, err := unix.Syscall(unix.SYS_READ, uintptr(file(stream).fd()), ptr, uintptr(size*nmemb)) if err != 0 { file(stream).setErr() @@ -1104,6 +1380,12 @@ func Xfread(t *TLS, ptr uintptr, size, nmemb types.Size_t, stream uintptr) types // size_t fwrite(const void *ptr, size_t size, size_t nmemb, FILE *stream); func Xfwrite(t *TLS, ptr uintptr, size, nmemb types.Size_t, stream uintptr) types.Size_t { + if __ccgo_strace { + trc("t=%v ptr=%v nmemb=%v stream=%v, (%v:)", t, ptr, nmemb, stream, origin(2)) + } + if size == 0 || nmemb == 0 { + return 0 + } m, _, err := unix.Syscall(unix.SYS_WRITE, uintptr(file(stream).fd()), ptr, uintptr(size*nmemb)) if err != 0 { file(stream).setErr() @@ -1119,11 +1401,17 @@ func Xfwrite(t *TLS, ptr uintptr, size, nmemb types.Size_t, stream uintptr) type // int fclose(FILE *stream); func Xfclose(t *TLS, stream uintptr) int32 { + if __ccgo_strace { + trc("t=%v stream=%v, (%v:)", t, stream, origin(2)) + } return file(stream).close(t) } // int fputc(int c, FILE *stream); func Xfputc(t *TLS, c int32, stream uintptr) int32 { + if __ccgo_strace { + trc("t=%v c=%v stream=%v, (%v:)", t, c, stream, origin(2)) + } if _, err := fwrite(file(stream).fd(), []byte{byte(c)}); err != nil { return stdio.EOF } @@ -1133,6 +1421,9 @@ func Xfputc(t *TLS, c int32, stream uintptr) int32 { // int fseek(FILE *stream, long offset, int whence); func Xfseek(t *TLS, stream uintptr, offset long, whence int32) int32 { + if __ccgo_strace { + trc("t=%v stream=%v offset=%v whence=%v, (%v:)", t, stream, offset, whence, origin(2)) + } if n := Xlseek(t, int32(file(stream).fd()), types.Off_t(offset), whence); n < 0 { // if dmesgs { // dmesg("%v: fd %v, off %#x, whence %v: %v", origin(1), file(stream).fd(), offset, whenceStr(whence), n) @@ -1149,6 +1440,9 @@ func Xfseek(t *TLS, stream uintptr, offset long, whence int32) int32 { // long ftell(FILE *stream); func Xftell(t *TLS, stream uintptr) long { + if __ccgo_strace { + trc("t=%v stream=%v, (%v:)", t, stream, origin(2)) + } n := Xlseek(t, file(stream).fd(), 0, stdio.SEEK_CUR) if n < 0 { file(stream).setErr() @@ -1163,21 +1457,33 @@ func Xftell(t *TLS, stream uintptr) long { // int ferror(FILE *stream); func Xferror(t *TLS, stream uintptr) int32 { + if __ccgo_strace { + trc("t=%v stream=%v, (%v:)", t, stream, origin(2)) + } return Bool32(file(stream).err()) } // int ungetc(int c, FILE *stream); func Xungetc(t *TLS, c int32, stream uintptr) int32 { + if __ccgo_strace { + trc("t=%v c=%v stream=%v, (%v:)", t, c, stream, origin(2)) + } panic(todo("")) } // int fscanf(FILE *stream, const char *format, ...); func Xfscanf(t *TLS, stream, format, va uintptr) int32 { + if __ccgo_strace { + trc("t=%v va=%v, (%v:)", t, va, origin(2)) + } panic(todo("")) } // int fputs(const char *s, FILE *stream); func Xfputs(t *TLS, s, stream uintptr) int32 { + if __ccgo_strace { + trc("t=%v stream=%v, (%v:)", t, stream, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_WRITE, uintptr(file(stream).fd()), s, uintptr(Xstrlen(t, s))); err != 0 { return -1 } @@ -1189,6 +1495,9 @@ var getservbynameStaticResult netdb.Servent // struct servent *getservbyname(const char *name, const char *proto); func Xgetservbyname(t *TLS, name, proto uintptr) uintptr { + if __ccgo_strace { + trc("t=%v proto=%v, (%v:)", t, proto, origin(2)) + } var protoent *gonetdb.Protoent if proto != 0 { protoent = gonetdb.GetProtoByName(GoString(proto)) @@ -1266,10 +1575,13 @@ func Xgetservbyname(t *TLS, name, proto uintptr) uintptr { } func Xreaddir64(t *TLS, dir uintptr) uintptr { + if __ccgo_strace { + trc("t=%v dir=%v, (%v:)", t, dir, origin(2)) + } return Xreaddir(t, dir) } -func __syscall(r, _ uintptr, errno syscall.Errno) long { +func __syscall(r, _ uintptr, errno syscallErrno) long { if errno != 0 { return long(-errno) } @@ -1278,14 +1590,23 @@ func __syscall(r, _ uintptr, errno syscall.Errno) long { } func X__syscall1(t *TLS, trap, p1 long) long { + if __ccgo_strace { + trc("t=%v p1=%v, (%v:)", t, p1, origin(2)) + } return __syscall(unix.Syscall(uintptr(trap), uintptr(p1), 0, 0)) } func X__syscall3(t *TLS, trap, p1, p2, p3 long) long { + if __ccgo_strace { + trc("t=%v p3=%v, (%v:)", t, p3, origin(2)) + } return __syscall(unix.Syscall(uintptr(trap), uintptr(p1), uintptr(p2), uintptr(p3))) } func X__syscall4(t *TLS, trap, p1, p2, p3, p4 long) long { + if __ccgo_strace { + trc("t=%v p4=%v, (%v:)", t, p4, origin(2)) + } return __syscall(unix.Syscall6(uintptr(trap), uintptr(p1), uintptr(p2), uintptr(p3), uintptr(p4), 0, 0)) } @@ -1308,26 +1629,41 @@ func fcntlCmdStr(cmd int32) string { // int setenv(const char *name, const char *value, int overwrite); func Xsetenv(t *TLS, name, value uintptr, overwrite int32) int32 { + if __ccgo_strace { + trc("t=%v value=%v overwrite=%v, (%v:)", t, value, overwrite, origin(2)) + } panic(todo("")) } // int unsetenv(const char *name); func Xunsetenv(t *TLS, name uintptr) int32 { + if __ccgo_strace { + trc("t=%v name=%v, (%v:)", t, name, origin(2)) + } panic(todo("")) } // int pause(void); func Xpause(t *TLS) int32 { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } panic(todo("")) } // ssize_t writev(int fd, const struct iovec *iov, int iovcnt); func Xwritev(t *TLS, fd int32, iov uintptr, iovcnt int32) types.Ssize_t { + if __ccgo_strace { + trc("t=%v fd=%v iov=%v iovcnt=%v, (%v:)", t, fd, iov, iovcnt, origin(2)) + } panic(todo("")) } // int __isoc99_sscanf(const char *str, const char *format, ...); func X__isoc99_sscanf(t *TLS, str, format, va uintptr) int32 { + if __ccgo_strace { + trc("t=%v va=%v, (%v:)", t, va, origin(2)) + } r := Xsscanf(t, str, format, va) // if dmesgs { // dmesg("%v: %q %q: %d", origin(1), GoString(str), GoString(format), r) @@ -1337,20 +1673,32 @@ func X__isoc99_sscanf(t *TLS, str, format, va uintptr) int32 { // void __assert(const char * func, const char * file, int line, const char *expr) __dead2; func X__assert(t *TLS, fn, file uintptr, line int32, expr uintptr) { + if __ccgo_strace { + trc("t=%v file=%v line=%v expr=%v, (%v:)", t, file, line, expr, origin(2)) + } X__assert_fail(t, expr, file, uint32(line), fn) } func X__assert13(t *TLS, file uintptr, line int32, fn, msg uintptr) { + if __ccgo_strace { + trc("t=%v file=%v line=%v msg=%v, (%v:)", t, file, line, msg, origin(2)) + } X__assert_fail(t, msg, file, uint32(line), fn) } // include/stdio.h:456:int __swbuf(int, FILE *); func X__swbuf(t *TLS, n int32, file uintptr) int32 { + if __ccgo_strace { + trc("t=%v n=%v file=%v, (%v:)", t, n, file, origin(2)) + } return Xfputc(t, n, file) //TODO improve performance, use a real buffer. } // int rmdir(const char *pathname); func Xrmdir(t *TLS, pathname uintptr) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v, (%v:)", t, pathname, origin(2)) + } if err := unix.Rmdir(GoString(pathname)); err != nil { if dmesgs { dmesg("%v: %v FAIL", origin(1), err) @@ -1367,6 +1715,9 @@ func Xrmdir(t *TLS, pathname uintptr) int32 { // struct dirent *readdir(DIR *dirp); func Xreaddir(t *TLS, dir uintptr) uintptr { + if __ccgo_strace { + trc("t=%v dir=%v, (%v:)", t, dir, origin(2)) + } if (*darwinDir)(unsafe.Pointer(dir)).eof { return 0 } @@ -1405,6 +1756,9 @@ type darwinDir struct { // int sscanf(const char *str, const char *format, ...); func Xsscanf(t *TLS, str, format, va uintptr) int32 { + if __ccgo_strace { + trc("t=%v va=%v, (%v:)", t, va, origin(2)) + } r := scanf(strings.NewReader(GoString(str)), format, va) // if dmesgs { // dmesg("%v: %q %q: %d", origin(1), GoString(str), GoString(format), r) @@ -1414,10 +1768,16 @@ func Xsscanf(t *TLS, str, format, va uintptr) int32 { // int * __error(void); func X__error(t *TLS) uintptr { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } return t.errnop } func Xclosedir(t *TLS, dir uintptr) int32 { + if __ccgo_strace { + trc("t=%v dir=%v, (%v:)", t, dir, origin(2)) + } r := Xclose(t, int32((*darwinDir)(unsafe.Pointer(dir)).fd)) Xfree(t, dir) return r @@ -1425,11 +1785,17 @@ func Xclosedir(t *TLS, dir uintptr) int32 { // int __xuname(int namesize, void *namebuf) func X__xuname(t *TLS, namesize int32, namebuf uintptr) int32 { + if __ccgo_strace { + trc("t=%v namesize=%v namebuf=%v, (%v:)", t, namesize, namebuf, origin(2)) + } return Xuname(t, namebuf) } // int chflags(const char *path, u_int flags); func Xchflags(t *TLS, path uintptr, flags uint64) int32 { + if __ccgo_strace { + trc("t=%v path=%v flags=%v, (%v:)", t, path, flags, origin(2)) + } if err := unix.Chflags(GoString(path), int(flags)); err != nil { if dmesgs { dmesg("%v: %v FAIL", origin(1), err) @@ -1446,8 +1812,11 @@ func Xchflags(t *TLS, path uintptr, flags uint64) int32 { // int pipe(int pipefd[2]); func Xpipe(t *TLS, pipefd uintptr) int32 { + if __ccgo_strace { + trc("t=%v pipefd=%v, (%v:)", t, pipefd, origin(2)) + } var a [2]int - if err := syscall.Pipe(a[:]); err != nil { + if err := unix.Pipe(a[:]); err != nil { if dmesgs { dmesg("%v: %v FAIL", origin(1), err) } @@ -1464,12 +1833,28 @@ func Xpipe(t *TLS, pipefd uintptr) int32 { // char *inet_ntoa(struct in_addr in); func X__inet_ntoa(t *TLS, in1 in.In_addr) uintptr { + if __ccgo_strace { + trc("t=%v in1=%v, (%v:)", t, in1, origin(2)) + } panic(todo("")) } func Xmmap(t *TLS, addr uintptr, length types.Size_t, prot, flags, fd int32, offset types.Off_t) uintptr { - // Cannot avoid the syscall here, addr sometimes matter. - data, _, err := unix.Syscall6(unix.SYS_MMAP, addr, uintptr(length), uintptr(prot), uintptr(flags), uintptr(fd), uintptr(offset)) + if __ccgo_strace { + trc("t=%v addr=%v length=%v fd=%v offset=%v, (%v:)", t, addr, length, fd, offset, origin(2)) + } + // NetBSD mmap(2) is + // + // mmap(void *addr, size_t len, int prot, int flags, int fd, long PAD, off_t pos) + // + // i.e. there is a `long PAD` argument before `off_t pos`. The offset must + // therefore be passed as the 7th syscall argument (Syscall9), not the 6th + // (Syscall6): with Syscall6 the offset lands in the PAD slot and `pos` is + // left as stack garbage, so the kernel maps at a garbage file offset and + // returns an unaligned/unbacked pointer that faults on first access (e.g. + // the SQLite WAL-index shm). Matches golang.org/x/sys/unix's own netbsd + // mmap (zsyscall_netbsd_amd64.go). + data, _, err := unix.Syscall9(unix.SYS_MMAP, addr, uintptr(length), uintptr(prot), uintptr(flags), uintptr(fd), 0, uintptr(offset), 0, 0) if err != 0 { if dmesgs { dmesg("%v: %v FAIL", origin(1), err) @@ -1485,27 +1870,45 @@ func Xmmap(t *TLS, addr uintptr, length types.Size_t, prot, flags, fd int32, off } func X__errno(t *TLS) uintptr { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } return X__errno_location(t) } func X__ccgo_pthreadMutexattrGettype(tls *TLS, a uintptr) int32 { /* pthread_attr_get.c:93:5: */ + if __ccgo_strace { + trc("tls=%v a=%v, (%v:)", tls, a, origin(2)) + } return (int32((*pthread_mutexattr_t)(unsafe.Pointer(a)).F__attr & uint32(3))) } func X__ccgo_getMutexType(tls *TLS, m uintptr) int32 { /* pthread_mutex_lock.c:3:5: */ + if __ccgo_strace { + trc("tls=%v m=%v, (%v:)", tls, m, origin(2)) + } return (*(*int32)(unsafe.Pointer((m /* &.__u */ /* &.__i */))) & 15) } func X__ccgo_pthreadAttrGetDetachState(tls *TLS, a uintptr) int32 { /* pthread_attr_get.c:3:5: */ + if __ccgo_strace { + trc("tls=%v a=%v, (%v:)", tls, a, origin(2)) + } return *(*int32)(unsafe.Pointer((a /* &.__u */ /* &.__i */) + 6*4)) } func Xpthread_attr_getdetachstate(tls *TLS, a uintptr, state uintptr) int32 { /* pthread_attr_get.c:7:5: */ + if __ccgo_strace { + trc("tls=%v a=%v state=%v, (%v:)", tls, a, state, origin(2)) + } *(*int32)(unsafe.Pointer(state)) = *(*int32)(unsafe.Pointer((a /* &.__u */ /* &.__i */) + 6*4)) return 0 } func Xpthread_attr_setdetachstate(tls *TLS, a uintptr, state int32) int32 { /* pthread_attr_setdetachstate.c:3:5: */ + if __ccgo_strace { + trc("tls=%v a=%v state=%v, (%v:)", tls, a, state, origin(2)) + } if uint32(state) > 1 { return 22 } @@ -1514,15 +1917,24 @@ func Xpthread_attr_setdetachstate(tls *TLS, a uintptr, state int32) int32 { /* p } func Xpthread_mutexattr_destroy(tls *TLS, a uintptr) int32 { /* pthread_mutexattr_destroy.c:3:5: */ + if __ccgo_strace { + trc("tls=%v a=%v, (%v:)", tls, a, origin(2)) + } return 0 } func Xpthread_mutexattr_init(tls *TLS, a uintptr) int32 { /* pthread_mutexattr_init.c:3:5: */ + if __ccgo_strace { + trc("tls=%v a=%v, (%v:)", tls, a, origin(2)) + } *(*pthread_mutexattr_t)(unsafe.Pointer(a)) = pthread_mutexattr_t{} return 0 } func Xpthread_mutexattr_settype(tls *TLS, a uintptr, type1 int32) int32 { /* pthread_mutexattr_settype.c:3:5: */ + if __ccgo_strace { + trc("tls=%v a=%v type1=%v, (%v:)", tls, a, type1, origin(2)) + } if uint32(type1) > uint32(2) { return 22 } @@ -1532,6 +1944,9 @@ func Xpthread_mutexattr_settype(tls *TLS, a uintptr, type1 int32) int32 { /* pth // int uuid_parse( char *in, uuid_t uu); func Xuuid_parse(t *TLS, in uintptr, uu uintptr) int32 { + if __ccgo_strace { + trc("t=%v in=%v uu=%v, (%v:)", t, in, uu, origin(2)) + } r, err := guuid.Parse(GoString(in)) if err != nil { return -1 @@ -1541,19 +1956,80 @@ func Xuuid_parse(t *TLS, in uintptr, uu uintptr) int32 { return 0 } -func X__srget(t *TLS, stream uintptr) int32 { return Xgetc(t, stream) } +func X__srget(t *TLS, stream uintptr) int32 { + if __ccgo_strace { + trc("t=%v stream=%v, (%v:)", t, stream, origin(2)) + } + return Xgetc(t, stream) +} // uint16_t __builtin_bswap16 (uint32_t x) func Xbswap16(t *TLS, x uint16) uint16 { + if __ccgo_strace { + trc("t=%v x=%v, (%v:)", t, x, origin(2)) + } return X__builtin_bswap16(t, x) } // uint32_t __builtin_bswap32 (uint32_t x) func Xbswap32(t *TLS, x uint32) uint32 { + if __ccgo_strace { + trc("t=%v x=%v, (%v:)", t, x, origin(2)) + } return X__builtin_bswap32(t, x) } // uint64_t __builtin_bswap64 (uint64_t x) func Xbswap64(t *TLS, x uint64) uint64 { + if __ccgo_strace { + trc("t=%v x=%v, (%v:)", t, x, origin(2)) + } return X__builtin_bswap64(t, x) } + +// int nanosleep(const struct timespec *req, struct timespec *rem); +func Xnanosleep(t *TLS, req, rem uintptr) int32 { + if __ccgo_strace { + trc("t=%v rem=%v, (%v:)", t, rem, origin(2)) + } + v := *(*time.Timespec)(unsafe.Pointer(req)) + gotime.Sleep(gotime.Second*gotime.Duration(v.Ftv_sec) + gotime.Duration(v.Ftv_nsec)) + return 0 +} + +// ssize_t pwrite(int fd, const void *buf, size_t count, off_t offset); +func Xpwrite(t *TLS, fd int32, buf uintptr, count types.Size_t, offset types.Off_t) types.Ssize_t { + if __ccgo_strace { + trc("t=%v fd=%v buf=%v count=%v offset=%v, (%v:)", t, fd, buf, count, offset, origin(2)) + } + var n int + var err error + switch { + case count == 0: + n, err = unix.Pwrite(int(fd), nil, int64(offset)) + default: + n, err = unix.Pwrite(int(fd), (*RawMem)(unsafe.Pointer(buf))[:count:count], int64(offset)) + // if dmesgs { + // dmesg("%v: fd %v, off %#x, count %#x\n%s", origin(1), fd, offset, count, hex.Dump((*RawMem)(unsafe.Pointer(buf))[:count:count])) + // } + } + if err != nil { + // if dmesgs { + // dmesg("%v: %v FAIL", origin(1), err) + // } + t.setErrno(err) + return -1 + } + + // if dmesgs { + // dmesg("%v: ok", origin(1)) + // } + return types.Ssize_t(n) +} + +func Xrewinddir(tls *TLS, f uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } + Xfseek(tls, f, 0, stdio.SEEK_SET) +} diff --git a/vendor/modernc.org/libc/libc_netbsd_amd64.go b/vendor/modernc.org/libc/libc_netbsd_amd64.go index c418ad4fd..98d50330b 100644 --- a/vendor/modernc.org/libc/libc_netbsd_amd64.go +++ b/vendor/modernc.org/libc/libc_netbsd_amd64.go @@ -6,7 +6,6 @@ package libc // import "modernc.org/libc" import ( "strings" - "syscall" "unsafe" "golang.org/x/sys/unix" @@ -24,6 +23,9 @@ type ( // int sigaction(int signum, const struct sigaction *act, struct sigaction *oldact); func Xsigaction(t *TLS, signum int32, act, oldact uintptr) int32 { + if __ccgo_strace { + trc("t=%v signum=%v oldact=%v, (%v:)", t, signum, oldact, origin(2)) + } panic(todo("")) // if _, _, err := unix.Syscall(unix.SYS_SIGACTION, uintptr(signum), act, oldact); err != 0 { // t.setErrno(err) @@ -35,6 +37,9 @@ func Xsigaction(t *TLS, signum int32, act, oldact uintptr) int32 { // FILE *fopen64(const char *pathname, const char *mode); func Xfopen64(t *TLS, pathname, mode uintptr) uintptr { + if __ccgo_strace { + trc("t=%v mode=%v, (%v:)", t, mode, origin(2)) + } m := strings.ReplaceAll(GoString(mode), "b", "") var flags int switch m { @@ -74,6 +79,9 @@ func Xfopen64(t *TLS, pathname, mode uintptr) uintptr { // int lstat(const char *pathname, struct stat *statbuf); func Xlstat64(t *TLS, pathname, statbuf uintptr) int32 { + if __ccgo_strace { + trc("t=%v statbuf=%v, (%v:)", t, statbuf, origin(2)) + } if err := unix.Lstat(GoString(pathname), (*unix.Stat_t)(unsafe.Pointer(statbuf))); err != nil { if dmesgs { dmesg("%v: %q: %v FAIL", origin(1), GoString(pathname), err) @@ -90,6 +98,9 @@ func Xlstat64(t *TLS, pathname, statbuf uintptr) int32 { // int stat(const char *pathname, struct stat *statbuf); func Xstat64(t *TLS, pathname, statbuf uintptr) int32 { + if __ccgo_strace { + trc("t=%v statbuf=%v, (%v:)", t, statbuf, origin(2)) + } if err := unix.Stat(GoString(pathname), (*unix.Stat_t)(unsafe.Pointer(statbuf))); err != nil { if dmesgs { dmesg("%v: %q: %v FAIL", origin(1), GoString(pathname), err) @@ -106,6 +117,9 @@ func Xstat64(t *TLS, pathname, statbuf uintptr) int32 { // int mkdir(const char *path, mode_t mode); func Xmkdir(t *TLS, path uintptr, mode types.Mode_t) int32 { + if __ccgo_strace { + trc("t=%v path=%v mode=%v, (%v:)", t, path, mode, origin(2)) + } if err := unix.Mkdir(GoString(path), uint32(mode)); err != nil { if dmesgs { dmesg("%v: %q: %v FAIL", origin(1), GoString(path), err) @@ -122,6 +136,9 @@ func Xmkdir(t *TLS, path uintptr, mode types.Mode_t) int32 { // int access(const char *pathname, int mode); func Xaccess(t *TLS, pathname uintptr, mode int32) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v mode=%v, (%v:)", t, pathname, mode, origin(2)) + } if err := unix.Access(GoString(pathname), uint32(mode)); err != nil { if dmesgs { dmesg("%v: %q %#o: %v FAIL", origin(1), GoString(pathname), mode, err) @@ -138,6 +155,9 @@ func Xaccess(t *TLS, pathname uintptr, mode int32) int32 { // int unlink(const char *pathname); func Xunlink(t *TLS, pathname uintptr) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v, (%v:)", t, pathname, origin(2)) + } if err := unix.Unlink(GoString(pathname)); err != nil { if dmesgs { dmesg("%v: %q: %v", origin(1), GoString(pathname), err) @@ -154,6 +174,9 @@ func Xunlink(t *TLS, pathname uintptr) int32 { // ssize_t readlink(const char *restrict path, char *restrict buf, size_t bufsize); func Xreadlink(t *TLS, path, buf uintptr, bufsize types.Size_t) types.Ssize_t { + if __ccgo_strace { + trc("t=%v buf=%v bufsize=%v, (%v:)", t, buf, bufsize, origin(2)) + } var n int var err error switch { @@ -178,6 +201,9 @@ func Xreadlink(t *TLS, path, buf uintptr, bufsize types.Size_t) types.Ssize_t { // int symlink(const char *target, const char *linkpath); func Xsymlink(t *TLS, target, linkpath uintptr) int32 { + if __ccgo_strace { + trc("t=%v linkpath=%v, (%v:)", t, linkpath, origin(2)) + } if err := unix.Symlink(GoString(target), GoString(linkpath)); err != nil { if dmesgs { dmesg("%v: %v FAIL", origin(1), err) @@ -194,6 +220,9 @@ func Xsymlink(t *TLS, target, linkpath uintptr) int32 { // int chmod(const char *pathname, mode_t mode) func Xchmod(t *TLS, pathname uintptr, mode types.Mode_t) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v mode=%v, (%v:)", t, pathname, mode, origin(2)) + } if err := unix.Chmod(GoString(pathname), uint32(mode)); err != nil { if dmesgs { dmesg("%v: %q %#o: %v FAIL", origin(1), GoString(pathname), mode, err) @@ -210,6 +239,9 @@ func Xchmod(t *TLS, pathname uintptr, mode types.Mode_t) int32 { // time_t time(time_t *tloc); func Xtime(t *TLS, tloc uintptr) time.Time_t { + if __ccgo_strace { + trc("t=%v tloc=%v, (%v:)", t, tloc, origin(2)) + } panic(todo("")) // n := time.Now().UTC().Unix() // if tloc != 0 { @@ -220,6 +252,9 @@ func Xtime(t *TLS, tloc uintptr) time.Time_t { // int utimes(const char *filename, const struct timeval times[2]); func Xutimes(t *TLS, filename, times uintptr) int32 { + if __ccgo_strace { + trc("t=%v times=%v, (%v:)", t, times, origin(2)) + } var a []unix.Timeval if times != 0 { a = make([]unix.Timeval, 2) @@ -242,6 +277,9 @@ func Xutimes(t *TLS, filename, times uintptr) int32 { // int fstat(int fd, struct stat *statbuf); func Xfstat64(t *TLS, fd int32, statbuf uintptr) int32 { + if __ccgo_strace { + trc("t=%v fd=%v statbuf=%v, (%v:)", t, fd, statbuf, origin(2)) + } if err := unix.Fstat(int(fd), (*unix.Stat_t)(unsafe.Pointer(statbuf))); err != nil { if dmesgs { dmesg("%v: fd %d: %v FAIL", origin(1), fd, err) @@ -258,6 +296,9 @@ func Xfstat64(t *TLS, fd int32, statbuf uintptr) int32 { // off64_t lseek64(int fd, off64_t offset, int whence); func Xlseek64(t *TLS, fd int32, offset types.Off_t, whence int32) types.Off_t { + if __ccgo_strace { + trc("t=%v fd=%v offset=%v whence=%v, (%v:)", t, fd, offset, whence, origin(2)) + } n, err := unix.Seek(int(fd), int64(offset), int(whence)) if err != nil { if dmesgs { @@ -274,6 +315,9 @@ func Xlseek64(t *TLS, fd int32, offset types.Off_t, whence int32) types.Off_t { } func Xfcntl64(t *TLS, fd, cmd int32, args uintptr) int32 { + if __ccgo_strace { + trc("t=%v cmd=%v args=%v, (%v:)", t, cmd, args, origin(2)) + } var arg uintptr if args != 0 { arg = *(*uintptr)(unsafe.Pointer(args)) @@ -295,6 +339,9 @@ func Xfcntl64(t *TLS, fd, cmd int32, args uintptr) int32 { // int rename(const char *oldpath, const char *newpath); func Xrename(t *TLS, oldpath, newpath uintptr) int32 { + if __ccgo_strace { + trc("t=%v newpath=%v, (%v:)", t, newpath, origin(2)) + } if err := unix.Rename(GoString(oldpath), GoString(newpath)); err != nil { if dmesgs { dmesg("%v: %v FAIL", origin(1), err) @@ -311,6 +358,9 @@ func Xrename(t *TLS, oldpath, newpath uintptr) int32 { // int mknod(const char *pathname, mode_t mode, dev_t dev); func Xmknod(t *TLS, pathname uintptr, mode types.Mode_t, dev types.Dev_t) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v mode=%v dev=%v, (%v:)", t, pathname, mode, dev, origin(2)) + } panic(todo("")) // if _, _, err := unix.Syscall(unix.SYS_MKNOD, pathname, uintptr(mode), uintptr(dev)); err != 0 { // t.setErrno(err) @@ -322,6 +372,9 @@ func Xmknod(t *TLS, pathname uintptr, mode types.Mode_t, dev types.Dev_t) int32 // int utime(const char *filename, const struct utimbuf *times); func Xutime(t *TLS, filename, times uintptr) int32 { + if __ccgo_strace { + trc("t=%v times=%v, (%v:)", t, times, origin(2)) + } var a []unix.Timeval if times != 0 { a = make([]unix.Timeval, 2) @@ -344,6 +397,9 @@ func Xutime(t *TLS, filename, times uintptr) int32 { // int chown(const char *pathname, uid_t owner, gid_t group); func Xchown(t *TLS, pathname uintptr, owner types.Uid_t, group types.Gid_t) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v owner=%v group=%v, (%v:)", t, pathname, owner, group, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_CHOWN, pathname, uintptr(owner), uintptr(group)); err != 0 { t.setErrno(err) return -1 @@ -354,6 +410,9 @@ func Xchown(t *TLS, pathname uintptr, owner types.Uid_t, group types.Gid_t) int3 // int link(const char *oldpath, const char *newpath); func Xlink(t *TLS, oldpath, newpath uintptr) int32 { + if __ccgo_strace { + trc("t=%v newpath=%v, (%v:)", t, newpath, origin(2)) + } panic(todo("")) // if _, _, err := unix.Syscall(unix.SYS_LINK, oldpath, newpath, 0); err != 0 { // t.setErrno(err) @@ -365,6 +424,9 @@ func Xlink(t *TLS, oldpath, newpath uintptr) int32 { // int dup2(int oldfd, int newfd); func Xdup2(t *TLS, oldfd, newfd int32) int32 { + if __ccgo_strace { + trc("t=%v newfd=%v, (%v:)", t, newfd, origin(2)) + } panic(todo("")) // n, _, err := unix.Syscall(unix.SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0) // if err != 0 { @@ -377,6 +439,9 @@ func Xdup2(t *TLS, oldfd, newfd int32) int32 { // unsigned int alarm(unsigned int seconds); func Xalarm(t *TLS, seconds uint32) uint32 { + if __ccgo_strace { + trc("t=%v seconds=%v, (%v:)", t, seconds, origin(2)) + } panic(todo("")) // n, _, err := unix.Syscall(unix.SYS_ALARM, uintptr(seconds), 0, 0) // if err != 0 { @@ -388,6 +453,9 @@ func Xalarm(t *TLS, seconds uint32) uint32 { // int getnameinfo(const struct sockaddr * restrict sa, socklen_t salen, char * restrict host, socklen_t hostlen, char * restrict serv, socklen_t servlen, int flags); func Xgetnameinfo(tls *TLS, sa1 uintptr, sl socklen_t, node uintptr, nodelen socklen_t, serv uintptr, servlen socklen_t, flags int32) int32 { /* getnameinfo.c:125:5: */ + if __ccgo_strace { + trc("tls=%v sa1=%v sl=%v node=%v nodelen=%v serv=%v servlen=%v flags=%v, (%v:)", tls, sa1, sl, node, nodelen, serv, servlen, flags, origin(2)) + } panic(todo("")) //TODO bp := tls.Alloc(347) //TODO defer tls.Free(347) @@ -487,6 +555,9 @@ func Xgetnameinfo(tls *TLS, sa1 uintptr, sl socklen_t, node uintptr, nodelen soc } func Xgethostbyaddr_r(tls *TLS, a uintptr, l socklen_t, af int32, h uintptr, buf uintptr, buflen size_t, res uintptr, err uintptr) int32 { /* gethostbyaddr_r.c:10:5: */ + if __ccgo_strace { + trc("tls=%v a=%v l=%v af=%v h=%v buf=%v buflen=%v res=%v err=%v, (%v:)", tls, a, l, af, h, buf, buflen, res, err, origin(2)) + } panic(todo("")) //TODO bp := tls.Alloc(28) //TODO defer tls.Free(28) @@ -574,6 +645,9 @@ func Xgethostbyaddr_r(tls *TLS, a uintptr, l socklen_t, af int32, h uintptr, buf // int getrlimit(int resource, struct rlimit *rlim); func Xgetrlimit64(t *TLS, resource int32, rlim uintptr) int32 { + if __ccgo_strace { + trc("t=%v resource=%v rlim=%v, (%v:)", t, resource, rlim, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_GETRLIMIT, uintptr(resource), uintptr(rlim), 0); err != 0 { t.setErrno(err) return -1 @@ -582,7 +656,7 @@ func Xgetrlimit64(t *TLS, resource int32, rlim uintptr) int32 { return 0 } -func newFtsent(t *TLS, info int, path string, stat *unix.Stat_t, err syscall.Errno) (r *fts.FTSENT) { +func newFtsent(t *TLS, info int, path string, stat *unix.Stat_t, err syscallErrno) (r *fts.FTSENT) { var statp uintptr if stat != nil { statp = Xmalloc(t, types.Size_t(unsafe.Sizeof(unix.Stat_t{}))) @@ -608,6 +682,9 @@ func newFtsent(t *TLS, info int, path string, stat *unix.Stat_t, err syscall.Err // DIR *opendir(const char *name); func Xopendir(t *TLS, name uintptr) uintptr { + if __ccgo_strace { + trc("t=%v name=%v, (%v:)", t, name, origin(2)) + } p := Xmalloc(t, uint64(unsafe.Sizeof(darwinDir{}))) if p == 0 { panic("OOM") @@ -631,3 +708,23 @@ func Xopendir(t *TLS, name uintptr) uintptr { (*darwinDir)(unsafe.Pointer(p)).eof = false return p } + +func AtomicLoadPInt8(addr uintptr) (val int8) { + return int8(a_load_8(addr)) +} + +func AtomicLoadPInt16(addr uintptr) (val int16) { + return int16(a_load_16(addr)) +} + +func AtomicLoadPUint8(addr uintptr) byte { + return byte(a_load_8(addr)) +} + +func AtomicLoadPUint16(addr uintptr) uint16 { + return uint16(a_load_16(addr)) +} + +func AtomicLoadNUint8(ptr uintptr, memorder int32) uint8 { + return byte(a_load_8(ptr)) +} diff --git a/vendor/modernc.org/libc/libc_netbsd_arm.go b/vendor/modernc.org/libc/libc_netbsd_arm.go index 7f10ac9c4..1aed1775d 100644 --- a/vendor/modernc.org/libc/libc_netbsd_arm.go +++ b/vendor/modernc.org/libc/libc_netbsd_arm.go @@ -6,7 +6,6 @@ package libc // import "modernc.org/libc" import ( "strings" - "syscall" "unsafe" "golang.org/x/sys/unix" @@ -24,6 +23,9 @@ type ( // int sigaction(int signum, const struct sigaction *act, struct sigaction *oldact); func Xsigaction(t *TLS, signum int32, act, oldact uintptr) int32 { + if __ccgo_strace { + trc("t=%v signum=%v oldact=%v, (%v:)", t, signum, oldact, origin(2)) + } panic(todo("")) // if _, _, err := unix.Syscall(unix.SYS_SIGACTION, uintptr(signum), act, oldact); err != 0 { // t.setErrno(err) @@ -35,6 +37,9 @@ func Xsigaction(t *TLS, signum int32, act, oldact uintptr) int32 { // FILE *fopen64(const char *pathname, const char *mode); func Xfopen64(t *TLS, pathname, mode uintptr) uintptr { + if __ccgo_strace { + trc("t=%v mode=%v, (%v:)", t, mode, origin(2)) + } m := strings.ReplaceAll(GoString(mode), "b", "") var flags int switch m { @@ -74,6 +79,9 @@ func Xfopen64(t *TLS, pathname, mode uintptr) uintptr { // int lstat(const char *pathname, struct stat *statbuf); func Xlstat64(t *TLS, pathname, statbuf uintptr) int32 { + if __ccgo_strace { + trc("t=%v statbuf=%v, (%v:)", t, statbuf, origin(2)) + } if err := unix.Lstat(GoString(pathname), (*unix.Stat_t)(unsafe.Pointer(statbuf))); err != nil { if dmesgs { dmesg("%v: %q: %v FAIL", origin(1), GoString(pathname), err) @@ -90,6 +98,9 @@ func Xlstat64(t *TLS, pathname, statbuf uintptr) int32 { // int stat(const char *pathname, struct stat *statbuf); func Xstat64(t *TLS, pathname, statbuf uintptr) int32 { + if __ccgo_strace { + trc("t=%v statbuf=%v, (%v:)", t, statbuf, origin(2)) + } if err := unix.Stat(GoString(pathname), (*unix.Stat_t)(unsafe.Pointer(statbuf))); err != nil { if dmesgs { dmesg("%v: %q: %v FAIL", origin(1), GoString(pathname), err) @@ -106,6 +117,9 @@ func Xstat64(t *TLS, pathname, statbuf uintptr) int32 { // int mkdir(const char *path, mode_t mode); func Xmkdir(t *TLS, path uintptr, mode types.Mode_t) int32 { + if __ccgo_strace { + trc("t=%v path=%v mode=%v, (%v:)", t, path, mode, origin(2)) + } if err := unix.Mkdir(GoString(path), uint32(mode)); err != nil { if dmesgs { dmesg("%v: %q: %v FAIL", origin(1), GoString(path), err) @@ -122,6 +136,9 @@ func Xmkdir(t *TLS, path uintptr, mode types.Mode_t) int32 { // int access(const char *pathname, int mode); func Xaccess(t *TLS, pathname uintptr, mode int32) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v mode=%v, (%v:)", t, pathname, mode, origin(2)) + } if err := unix.Access(GoString(pathname), uint32(mode)); err != nil { if dmesgs { dmesg("%v: %q %#o: %v FAIL", origin(1), GoString(pathname), mode, err) @@ -138,6 +155,9 @@ func Xaccess(t *TLS, pathname uintptr, mode int32) int32 { // int unlink(const char *pathname); func Xunlink(t *TLS, pathname uintptr) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v, (%v:)", t, pathname, origin(2)) + } if err := unix.Unlink(GoString(pathname)); err != nil { if dmesgs { dmesg("%v: %q: %v", origin(1), GoString(pathname), err) @@ -154,6 +174,9 @@ func Xunlink(t *TLS, pathname uintptr) int32 { // ssize_t readlink(const char *restrict path, char *restrict buf, size_t bufsize); func Xreadlink(t *TLS, path, buf uintptr, bufsize types.Size_t) types.Ssize_t { + if __ccgo_strace { + trc("t=%v buf=%v bufsize=%v, (%v:)", t, buf, bufsize, origin(2)) + } var n int var err error switch { @@ -178,6 +201,9 @@ func Xreadlink(t *TLS, path, buf uintptr, bufsize types.Size_t) types.Ssize_t { // int symlink(const char *target, const char *linkpath); func Xsymlink(t *TLS, target, linkpath uintptr) int32 { + if __ccgo_strace { + trc("t=%v linkpath=%v, (%v:)", t, linkpath, origin(2)) + } if err := unix.Symlink(GoString(target), GoString(linkpath)); err != nil { if dmesgs { dmesg("%v: %v FAIL", origin(1), err) @@ -194,6 +220,9 @@ func Xsymlink(t *TLS, target, linkpath uintptr) int32 { // int chmod(const char *pathname, mode_t mode) func Xchmod(t *TLS, pathname uintptr, mode types.Mode_t) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v mode=%v, (%v:)", t, pathname, mode, origin(2)) + } if err := unix.Chmod(GoString(pathname), uint32(mode)); err != nil { if dmesgs { dmesg("%v: %q %#o: %v FAIL", origin(1), GoString(pathname), mode, err) @@ -210,6 +239,9 @@ func Xchmod(t *TLS, pathname uintptr, mode types.Mode_t) int32 { // time_t time(time_t *tloc); func Xtime(t *TLS, tloc uintptr) time.Time_t { + if __ccgo_strace { + trc("t=%v tloc=%v, (%v:)", t, tloc, origin(2)) + } panic(todo("")) // n := time.Now().UTC().Unix() // if tloc != 0 { @@ -220,6 +252,9 @@ func Xtime(t *TLS, tloc uintptr) time.Time_t { // int utimes(const char *filename, const struct timeval times[2]); func Xutimes(t *TLS, filename, times uintptr) int32 { + if __ccgo_strace { + trc("t=%v times=%v, (%v:)", t, times, origin(2)) + } var a []unix.Timeval if times != 0 { a = make([]unix.Timeval, 2) @@ -242,6 +277,9 @@ func Xutimes(t *TLS, filename, times uintptr) int32 { // int fstat(int fd, struct stat *statbuf); func Xfstat64(t *TLS, fd int32, statbuf uintptr) int32 { + if __ccgo_strace { + trc("t=%v fd=%v statbuf=%v, (%v:)", t, fd, statbuf, origin(2)) + } if err := unix.Fstat(int(fd), (*unix.Stat_t)(unsafe.Pointer(statbuf))); err != nil { if dmesgs { dmesg("%v: fd %d: %v FAIL", origin(1), fd, err) @@ -258,6 +296,9 @@ func Xfstat64(t *TLS, fd int32, statbuf uintptr) int32 { // off64_t lseek64(int fd, off64_t offset, int whence); func Xlseek64(t *TLS, fd int32, offset types.Off_t, whence int32) types.Off_t { + if __ccgo_strace { + trc("t=%v fd=%v offset=%v whence=%v, (%v:)", t, fd, offset, whence, origin(2)) + } n, err := unix.Seek(int(fd), int64(offset), int(whence)) if err != nil { if dmesgs { @@ -274,6 +315,9 @@ func Xlseek64(t *TLS, fd int32, offset types.Off_t, whence int32) types.Off_t { } func Xfcntl64(t *TLS, fd, cmd int32, args uintptr) int32 { + if __ccgo_strace { + trc("t=%v cmd=%v args=%v, (%v:)", t, cmd, args, origin(2)) + } var arg uintptr if args != 0 { arg = *(*uintptr)(unsafe.Pointer(args)) @@ -295,6 +339,9 @@ func Xfcntl64(t *TLS, fd, cmd int32, args uintptr) int32 { // int rename(const char *oldpath, const char *newpath); func Xrename(t *TLS, oldpath, newpath uintptr) int32 { + if __ccgo_strace { + trc("t=%v newpath=%v, (%v:)", t, newpath, origin(2)) + } if err := unix.Rename(GoString(oldpath), GoString(newpath)); err != nil { if dmesgs { dmesg("%v: %v FAIL", origin(1), err) @@ -311,6 +358,9 @@ func Xrename(t *TLS, oldpath, newpath uintptr) int32 { // int mknod(const char *pathname, mode_t mode, dev_t dev); func Xmknod(t *TLS, pathname uintptr, mode types.Mode_t, dev types.Dev_t) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v mode=%v dev=%v, (%v:)", t, pathname, mode, dev, origin(2)) + } panic(todo("")) // if _, _, err := unix.Syscall(unix.SYS_MKNOD, pathname, uintptr(mode), uintptr(dev)); err != 0 { // t.setErrno(err) @@ -322,6 +372,9 @@ func Xmknod(t *TLS, pathname uintptr, mode types.Mode_t, dev types.Dev_t) int32 // int utime(const char *filename, const struct utimbuf *times); func Xutime(t *TLS, filename, times uintptr) int32 { + if __ccgo_strace { + trc("t=%v times=%v, (%v:)", t, times, origin(2)) + } var a []unix.Timeval if times != 0 { a = make([]unix.Timeval, 2) @@ -344,6 +397,9 @@ func Xutime(t *TLS, filename, times uintptr) int32 { // int chown(const char *pathname, uid_t owner, gid_t group); func Xchown(t *TLS, pathname uintptr, owner types.Uid_t, group types.Gid_t) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v owner=%v group=%v, (%v:)", t, pathname, owner, group, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_CHOWN, pathname, uintptr(owner), uintptr(group)); err != 0 { t.setErrno(err) return -1 @@ -354,6 +410,9 @@ func Xchown(t *TLS, pathname uintptr, owner types.Uid_t, group types.Gid_t) int3 // int link(const char *oldpath, const char *newpath); func Xlink(t *TLS, oldpath, newpath uintptr) int32 { + if __ccgo_strace { + trc("t=%v newpath=%v, (%v:)", t, newpath, origin(2)) + } panic(todo("")) // if _, _, err := unix.Syscall(unix.SYS_LINK, oldpath, newpath, 0); err != 0 { // t.setErrno(err) @@ -365,6 +424,9 @@ func Xlink(t *TLS, oldpath, newpath uintptr) int32 { // int dup2(int oldfd, int newfd); func Xdup2(t *TLS, oldfd, newfd int32) int32 { + if __ccgo_strace { + trc("t=%v newfd=%v, (%v:)", t, newfd, origin(2)) + } panic(todo("")) // n, _, err := unix.Syscall(unix.SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0) // if err != 0 { @@ -377,6 +439,9 @@ func Xdup2(t *TLS, oldfd, newfd int32) int32 { // unsigned int alarm(unsigned int seconds); func Xalarm(t *TLS, seconds uint32) uint32 { + if __ccgo_strace { + trc("t=%v seconds=%v, (%v:)", t, seconds, origin(2)) + } panic(todo("")) // n, _, err := unix.Syscall(unix.SYS_ALARM, uintptr(seconds), 0, 0) // if err != 0 { @@ -387,6 +452,9 @@ func Xalarm(t *TLS, seconds uint32) uint32 { } func Xgetnameinfo(tls *TLS, sa1 uintptr, sl socklen_t, node uintptr, nodelen size_t, serv uintptr, servlen size_t, flags int32) int32 { /* getnameinfo.c:125:5: */ + if __ccgo_strace { + trc("tls=%v sa1=%v sl=%v node=%v nodelen=%v serv=%v servlen=%v flags=%v, (%v:)", tls, sa1, sl, node, nodelen, serv, servlen, flags, origin(2)) + } panic(todo("")) //TODO bp := tls.Alloc(347) //TODO defer tls.Free(347) @@ -486,6 +554,9 @@ func Xgetnameinfo(tls *TLS, sa1 uintptr, sl socklen_t, node uintptr, nodelen siz } func Xgethostbyaddr_r(tls *TLS, a uintptr, l socklen_t, af int32, h uintptr, buf uintptr, buflen size_t, res uintptr, err uintptr) int32 { /* gethostbyaddr_r.c:10:5: */ + if __ccgo_strace { + trc("tls=%v a=%v l=%v af=%v h=%v buf=%v buflen=%v res=%v err=%v, (%v:)", tls, a, l, af, h, buf, buflen, res, err, origin(2)) + } panic(todo("")) //TODO bp := tls.Alloc(28) //TODO defer tls.Free(28) @@ -573,6 +644,9 @@ func Xgethostbyaddr_r(tls *TLS, a uintptr, l socklen_t, af int32, h uintptr, buf // int getrlimit(int resource, struct rlimit *rlim); func Xgetrlimit64(t *TLS, resource int32, rlim uintptr) int32 { + if __ccgo_strace { + trc("t=%v resource=%v rlim=%v, (%v:)", t, resource, rlim, origin(2)) + } if _, _, err := unix.Syscall(unix.SYS_GETRLIMIT, uintptr(resource), uintptr(rlim), 0); err != 0 { t.setErrno(err) return -1 @@ -581,7 +655,7 @@ func Xgetrlimit64(t *TLS, resource int32, rlim uintptr) int32 { return 0 } -func newFtsent(t *TLS, info int, path string, stat *unix.Stat_t, err syscall.Errno) (r *fts.FTSENT) { +func newFtsent(t *TLS, info int, path string, stat *unix.Stat_t, err syscallErrno) (r *fts.FTSENT) { var statp uintptr if stat != nil { statp = Xmalloc(t, types.Size_t(unsafe.Sizeof(unix.Stat_t{}))) @@ -607,6 +681,9 @@ func newFtsent(t *TLS, info int, path string, stat *unix.Stat_t, err syscall.Err // DIR *opendir(const char *name); func Xopendir(t *TLS, name uintptr) uintptr { + if __ccgo_strace { + trc("t=%v name=%v, (%v:)", t, name, origin(2)) + } p := Xmalloc(t, uint32(unsafe.Sizeof(darwinDir{}))) if p == 0 { panic("OOM") diff --git a/vendor/modernc.org/libc/libc_openbsd.go b/vendor/modernc.org/libc/libc_openbsd.go index 62a820cd1..d26eb9fa4 100644 --- a/vendor/modernc.org/libc/libc_openbsd.go +++ b/vendor/modernc.org/libc/libc_openbsd.go @@ -5,6 +5,7 @@ package libc // import "modernc.org/libc" import ( + "encoding/hex" "fmt" "io" "os" @@ -13,7 +14,6 @@ import ( "runtime" "runtime/debug" "strings" - "syscall" gotime "time" "unsafe" @@ -34,22 +34,40 @@ import ( "modernc.org/libc/termios" "modernc.org/libc/time" "modernc.org/libc/unistd" + "modernc.org/libc/utime" "modernc.org/libc/uuid" ) var ( + startTime = gotime.Now() // For clock(3) in6_addr_any in.In6_addr ) +type Tsize_t = types.Size_t + +type syscallErrno = unix.Errno + // // Keep these outside of the var block otherwise go generate will miss them. var X__stderrp = Xstdout var X__stdinp = Xstdin var X__stdoutp = Xstdout var X__sF [3]stdio.FILE -var X_tolower_tab_ = Xmalloc(nil, 2*65537) -var X_toupper_tab_ = Xmalloc(nil, 2*65537) +var X_tolower_tab_ uintptr +var X_toupper_tab_ uintptr func init() { + // fake a TLS since this comes before NewTLS() or Start() + t := &TLS{errnop: uintptr(unsafe.Pointer(&errno0))} + X_tolower_tab_ = Xmalloc(t, 2*65537) + if X_tolower_tab_ == 0 { + panic("unable to allocate tolower table") + } + + X_toupper_tab_ = Xmalloc(t, 2*65537) + if X_tolower_tab_ == 0 { + panic("unable to allocate toupper table") + } + for c := rune(0); c < 0xffff; c++ { y := c s := strings.ToLower(string(c)) @@ -79,6 +97,9 @@ var X_ThreadRuneLocale uintptr //TODO initialize and implement _Thread_local sem // include/xlocale/_ctype.h:54:_RuneLocale *__runes_for_locale(locale_t, int*); func X__runes_for_locale(t *TLS, l locale_t, p uintptr) uintptr { + if __ccgo_strace { + trc("t=%v l=%v p=%v, (%v:)", t, l, p, origin(2)) + } panic(todo("")) } @@ -142,33 +163,49 @@ func fwrite(fd int32, b []byte) (int, error) { // unsigned long ___runetype(__ct_rune_t) __pure; func X___runetype(t *TLS, x int32) ulong { + if __ccgo_strace { + trc("t=%v x=%v, (%v:)", t, x, origin(2)) + } panic(todo("")) } // int fprintf(FILE *stream, const char *format, ...); func Xfprintf(t *TLS, stream, format, args uintptr) int32 { + if __ccgo_strace { + trc("t=%v args=%v, (%v:)", t, args, origin(2)) + } n, _ := fwrite(int32((*stdio.FILE)(unsafe.Pointer(stream)).F_file), printf(format, args)) return int32(n) } // int usleep(useconds_t usec); func Xusleep(t *TLS, usec uint32) int32 { + if __ccgo_strace { + trc("t=%v usec=%v, (%v:)", t, usec, origin(2)) + } gotime.Sleep(gotime.Microsecond * gotime.Duration(usec)) return 0 } // int getrusage(int who, struct rusage *usage); func Xgetrusage(t *TLS, who int32, usage uintptr) int32 { - if _, _, err := unix.Syscall(unix.SYS_GETRUSAGE, uintptr(who), usage, 0); err != 0 { + if __ccgo_strace { + trc("t=%v who=%v usage=%v, (%v:)", t, who, usage, origin(2)) + } + ru := unix.Rusage{} + if err := unix.Getrusage(int(who), &ru); err != nil { t.setErrno(err) return -1 } - + *(*unix.Rusage)(unsafe.Pointer(usage)) = ru return 0 } // int fgetc(FILE *stream); func Xfgetc(t *TLS, stream uintptr) int32 { + if __ccgo_strace { + trc("t=%v stream=%v, (%v:)", t, stream, origin(2)) + } fd := int((*stdio.FILE)(unsafe.Pointer(stream)).F_file) var buf [1]byte if n, _ := unix.Read(fd, buf[:]); n != 0 { @@ -180,24 +217,33 @@ func Xfgetc(t *TLS, stream uintptr) int32 { // int lstat(const char *pathname, struct stat *statbuf); func Xlstat(t *TLS, pathname, statbuf uintptr) int32 { + if __ccgo_strace { + trc("t=%v statbuf=%v, (%v:)", t, statbuf, origin(2)) + } return Xlstat64(t, pathname, statbuf) } // int stat(const char *pathname, struct stat *statbuf); func Xstat(t *TLS, pathname, statbuf uintptr) int32 { + if __ccgo_strace { + trc("t=%v statbuf=%v, (%v:)", t, statbuf, origin(2)) + } return Xstat64(t, pathname, statbuf) } // int chdir(const char *path); func Xchdir(t *TLS, path uintptr) int32 { - if _, _, err := unix.Syscall(unix.SYS_CHDIR, path, 0, 0); err != 0 { + if __ccgo_strace { + trc("t=%v path=%v, (%v:)", t, path, origin(2)) + } + if err := unix.Chdir(GoString(path)); err != nil { t.setErrno(err) return -1 } - // if dmesgs { - // dmesg("%v: %q: ok", origin(1), GoString(path)) - // } + if dmesgs { + dmesg("%v: %q: ok", origin(1), GoString(path)) + } return 0 } @@ -205,11 +251,7 @@ var localtime time.Tm // struct tm *localtime(const time_t *timep); func Xlocaltime(_ *TLS, timep uintptr) uintptr { - loc := gotime.Local - if r := getenv(Environ(), "TZ"); r != 0 { - zone, off := parseZone(GoString(r)) - loc = gotime.FixedZone(zone, -off) - } + loc := getLocalLocation() ut := *(*time.Time_t)(unsafe.Pointer(timep)) t := gotime.Unix(int64(ut), 0).In(loc) localtime.Ftm_sec = int32(t.Second()) @@ -226,11 +268,7 @@ func Xlocaltime(_ *TLS, timep uintptr) uintptr { // struct tm *localtime_r(const time_t *timep, struct tm *result); func Xlocaltime_r(_ *TLS, timep, result uintptr) uintptr { - loc := gotime.Local - if r := getenv(Environ(), "TZ"); r != 0 { - zone, off := parseZone(GoString(r)) - loc = gotime.FixedZone(zone, -off) - } + loc := getLocalLocation() ut := *(*time.Time_t)(unsafe.Pointer(timep)) t := gotime.Unix(int64(ut), 0).In(loc) (*time.Tm)(unsafe.Pointer(result)).Ftm_sec = int32(t.Second()) @@ -247,50 +285,63 @@ func Xlocaltime_r(_ *TLS, timep, result uintptr) uintptr { // int open(const char *pathname, int flags, ...); func Xopen(t *TLS, pathname uintptr, flags int32, args uintptr) int32 { + if __ccgo_strace { + trc("t=%v pathname=%s flags=%v args=%v, (%v:)", t, GoString(pathname), flags, args, origin(2)) + } return Xopen64(t, pathname, flags, args) } // int open(const char *pathname, int flags, ...); func Xopen64(t *TLS, pathname uintptr, flags int32, args uintptr) int32 { + if __ccgo_strace { + trc("t=%v pathname=%s flags=%v args=%v, (%v:)", t, GoString(pathname), flags, args, origin(2)) + } var mode types.Mode_t if args != 0 { mode = (types.Mode_t)(VaUint32(&args)) } - fdcwd := fcntl.AT_FDCWD - n, _, err := unix.Syscall6(unix.SYS_OPENAT, uintptr(fdcwd), pathname, uintptr(flags), uintptr(mode), 0, 0) - if err != 0 { - // if dmesgs { - // dmesg("%v: %q %#x: %v", origin(1), GoString(pathname), flags, err) - // } + fd, err := unix.Open(GoString(pathname), int(flags), mode) + if err != nil { + if __ccgo_strace { + trc("%s: %s", err.Error(), GoString(pathname)) + } + if dmesgs { + dmesg("%v: %q %#x: %v", origin(1), GoString(pathname), flags, err) + } t.setErrno(err) return -1 } - // if dmesgs { - // dmesg("%v: %q flags %#x mode %#o: fd %v", origin(1), GoString(pathname), flags, mode, n) - // } - return int32(n) + if dmesgs { + dmesg("%v: %q flags %#x mode %#o: fd %v", origin(1), GoString(pathname), flags, mode, fd) + } + if __ccgo_strace { + trc("%s fd=%d", GoString(pathname), fd) + } + return int32(fd) } // off_t lseek(int fd, off_t offset, int whence); func Xlseek(t *TLS, fd int32, offset types.Off_t, whence int32) types.Off_t { + if __ccgo_strace { + trc("t=%v fd=%v offset=%v whence=%v, (%v:)", t, fd, offset, whence, origin(2)) + } return types.Off_t(Xlseek64(t, fd, offset, whence)) } -func whenceStr(whence int32) string { - panic(todo("")) -} - var fsyncStatbuf stat.Stat // int fsync(int fd); func Xfsync(t *TLS, fd int32) int32 { + if __ccgo_strace { + trc("t=%v fd=%v, (%v:)", t, fd, origin(2)) + } if noFsync { // Simulate -DSQLITE_NO_SYNC for sqlite3 testfixture, see function full_sync in sqlite3.c return Xfstat(t, fd, uintptr(unsafe.Pointer(&fsyncStatbuf))) } - if _, _, err := unix.Syscall(unix.SYS_FSYNC, uintptr(fd), 0, 0); err != 0 { + if err := unix.Fsync(int(fd)); err != nil { t.setErrno(err) return -1 } @@ -303,6 +354,9 @@ func Xfsync(t *TLS, fd int32) int32 { // long sysconf(int name); func Xsysconf(t *TLS, name int32) long { + if __ccgo_strace { + trc("t=%v name=%v, (%v:)", t, name, origin(2)) + } switch name { case unistd.X_SC_PAGESIZE: return long(unix.Getpagesize()) @@ -319,7 +373,10 @@ func Xsysconf(t *TLS, name int32) long { // int close(int fd); func Xclose(t *TLS, fd int32) int32 { - if _, _, err := unix.Syscall(unix.SYS_CLOSE, uintptr(fd), 0, 0); err != 0 { + if __ccgo_strace { + trc("t=%v fd=%v, (%v:)", t, fd, origin(2)) + } + if err := unix.Close(int(fd)); err != nil { t.setErrno(err) return -1 } @@ -332,6 +389,9 @@ func Xclose(t *TLS, fd int32) int32 { // char *getcwd(char *buf, size_t size); func Xgetcwd(t *TLS, buf uintptr, size types.Size_t) uintptr { + if __ccgo_strace { + trc("t=%v buf=%v size=%v, (%v:)", t, buf, size, origin(2)) + } if _, err := unix.Getcwd((*RawMem)(unsafe.Pointer(buf))[:size:size]); err != nil { if dmesgs { dmesg("%v: %v FAIL", origin(1), err) @@ -348,11 +408,17 @@ func Xgetcwd(t *TLS, buf uintptr, size types.Size_t) uintptr { // int fstat(int fd, struct stat *statbuf); func Xfstat(t *TLS, fd int32, statbuf uintptr) int32 { + if __ccgo_strace { + trc("t=%v fd=%v statbuf=%v, (%v:)", t, fd, statbuf, origin(2)) + } return Xfstat64(t, fd, statbuf) } // int ftruncate(int fd, off_t length); func Xftruncate(t *TLS, fd int32, length types.Off_t) int32 { + if __ccgo_strace { + trc("t=%v fd=%v length=%v, (%v:)", t, fd, length, origin(2)) + } if err := unix.Ftruncate(int(fd), int64(length)); err != nil { if dmesgs { dmesg("%v: fd %d: %v FAIL", origin(1), fd, err) @@ -362,59 +428,84 @@ func Xftruncate(t *TLS, fd int32, length types.Off_t) int32 { } if dmesgs { - dmesg("%v: %d %#x: ok", origin(1), fd, length) + dmesg("%v: fd %d length %#0x: ok", origin(1), fd, length) } return 0 } // int fcntl(int fd, int cmd, ... /* arg */ ); func Xfcntl(t *TLS, fd, cmd int32, args uintptr) int32 { + if __ccgo_strace { + trc("t=%v cmd=%v args=%v, (%v:)", t, cmd, args, origin(2)) + } return Xfcntl64(t, fd, cmd, args) } // ssize_t read(int fd, void *buf, size_t count); func Xread(t *TLS, fd int32, buf uintptr, count types.Size_t) types.Ssize_t { - n, _, err := unix.Syscall(unix.SYS_READ, uintptr(fd), buf, uintptr(count)) - if err != 0 { + if __ccgo_strace { + trc("t=%v fd=%v buf=%v count=%v, (%v:)", t, fd, buf, count, origin(2)) + } + var n int + var err error + switch { + case count == 0: + n, err = unix.Read(int(fd), nil) + default: + n, err = unix.Read(int(fd), (*RawMem)(unsafe.Pointer(buf))[:count:count]) + if dmesgs && err == nil { + dmesg("%v: fd %v, count %#x, n %#x\n%s", origin(1), fd, count, n, hex.Dump((*RawMem)(unsafe.Pointer(buf))[:n:n])) + } + } + if err != nil { + if dmesgs { + dmesg("%v: fd %v, %v FAIL", origin(1), fd, err) + } t.setErrno(err) return -1 } - - // if dmesgs { - // // dmesg("%v: %d %#x: %#x\n%s", origin(1), fd, count, n, hex.Dump(GoBytes(buf, int(n)))) - // dmesg("%v: %d %#x: %#x", origin(1), fd, count, n) - // } + if dmesgs { + dmesg("%v: ok", origin(1)) + } return types.Ssize_t(n) } // ssize_t write(int fd, const void *buf, size_t count); func Xwrite(t *TLS, fd int32, buf uintptr, count types.Size_t) types.Ssize_t { - const retry = 5 - var err syscall.Errno - for i := 0; i < retry; i++ { - var n uintptr - switch n, _, err = unix.Syscall(unix.SYS_WRITE, uintptr(fd), buf, uintptr(count)); err { - case 0: - // if dmesgs { - // // dmesg("%v: %d %#x: %#x\n%s", origin(1), fd, count, n, hex.Dump(GoBytes(buf, int(n)))) - // dmesg("%v: %d %#x: %#x", origin(1), fd, count, n) - // } - return types.Ssize_t(n) - case errno.EAGAIN: - // nop + if __ccgo_strace { + trc("t=%v fd=%v buf=%v count=%v, (%v:)", t, fd, buf, count, origin(2)) + } + var n int + var err error + switch { + case count == 0: + n, err = unix.Write(int(fd), nil) + default: + n, err = unix.Write(int(fd), (*RawMem)(unsafe.Pointer(buf))[:count:count]) + if dmesgs { + dmesg("%v: fd %v, count %#x\n%s", origin(1), fd, count, hex.Dump((*RawMem)(unsafe.Pointer(buf))[:count:count])) + } + } + if err != nil { + if dmesgs { + dmesg("%v: %v FAIL", origin(1), err) } + t.setErrno(err) + return -1 } - // if dmesgs { - // dmesg("%v: fd %v, count %#x: %v", origin(1), fd, count, err) - // } - t.setErrno(err) - return -1 + if dmesgs { + dmesg("%v: ok", origin(1)) + } + return types.Ssize_t(n) } // int fchmod(int fd, mode_t mode); func Xfchmod(t *TLS, fd int32, mode types.Mode_t) int32 { - if _, _, err := unix.Syscall(unix.SYS_FCHMOD, uintptr(fd), uintptr(mode), 0); err != 0 { + if __ccgo_strace { + trc("t=%v fd=%v mode=%v, (%v:)", t, fd, mode, origin(2)) + } + if err := unix.Fchmod(int(fd), uint32(mode)); err != nil { t.setErrno(err) return -1 } @@ -427,7 +518,10 @@ func Xfchmod(t *TLS, fd int32, mode types.Mode_t) int32 { // int fchown(int fd, uid_t owner, gid_t group); func Xfchown(t *TLS, fd int32, owner types.Uid_t, group types.Gid_t) int32 { - if _, _, err := unix.Syscall(unix.SYS_FCHOWN, uintptr(fd), uintptr(owner), uintptr(group)); err != 0 { + if __ccgo_strace { + trc("t=%v fd=%v owner=%v group=%v, (%v:)", t, fd, owner, group, origin(2)) + } + if err := unix.Fchown(int(fd), int(owner), int(group)); err != nil { t.setErrno(err) return -1 } @@ -437,13 +531,20 @@ func Xfchown(t *TLS, fd int32, owner types.Uid_t, group types.Gid_t) int32 { // uid_t geteuid(void); func Xgeteuid(t *TLS) types.Uid_t { - n, _, _ := unix.Syscall(unix.SYS_GETEUID, 0, 0, 0) + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } + n := unix.Geteuid() return types.Uid_t(n) } // int munmap(void *addr, size_t length); func Xmunmap(t *TLS, addr uintptr, length types.Size_t) int32 { - if _, _, err := unix.Syscall(unix.SYS_MUNMAP, addr, uintptr(length), 0); err != 0 { + if __ccgo_strace { + trc("t=%v addr=%v length=%v, (%v:)", t, addr, length, origin(2)) + } + b := unsafe.Slice((*byte)(unsafe.Pointer(addr)), length) + if err := unix.Munmap(b); err != nil { t.setErrno(err) return -1 } @@ -453,6 +554,9 @@ func Xmunmap(t *TLS, addr uintptr, length types.Size_t) int32 { // int gettimeofday(struct timeval *tv, struct timezone *tz); func Xgettimeofday(t *TLS, tv, tz uintptr) int32 { + if __ccgo_strace { + trc("t=%v tz=%v, (%v:)", t, tz, origin(2)) + } if tz != 0 { panic(todo("")) } @@ -470,7 +574,11 @@ func Xgettimeofday(t *TLS, tv, tz uintptr) int32 { // int getsockopt(int sockfd, int level, int optname, void *optval, socklen_t *optlen); func Xgetsockopt(t *TLS, sockfd, level, optname int32, optval, optlen uintptr) int32 { + if __ccgo_strace { + trc("t=%v optname=%v optlen=%v, (%v:)", t, optname, optlen, origin(2)) + } if _, _, err := unix.Syscall6(unix.SYS_GETSOCKOPT, uintptr(sockfd), uintptr(level), uintptr(optname), optval, optlen, 0); err != 0 { + panic(todo("", "will fail on OpenBSD 7.5")) t.setErrno(err) return -1 } @@ -480,8 +588,12 @@ func Xgetsockopt(t *TLS, sockfd, level, optname int32, optval, optlen uintptr) i // int setsockopt(int sockfd, int level, int optname, const void *optval, socklen_t optlen); func Xsetsockopt(t *TLS, sockfd, level, optname int32, optval uintptr, optlen socket.Socklen_t) int32 { + if __ccgo_strace { + trc("t=%v optname=%v optval=%v optlen=%v, (%v:)", t, optname, optval, optlen, origin(2)) + } if _, _, err := unix.Syscall6(unix.SYS_SETSOCKOPT, uintptr(sockfd), uintptr(level), uintptr(optname), optval, uintptr(optlen), 0); err != 0 { t.setErrno(err) + panic(todo("", "will fail on OpenBSD 7.5")) return -1 } @@ -490,6 +602,10 @@ func Xsetsockopt(t *TLS, sockfd, level, optname int32, optval uintptr, optlen so // int ioctl(int fd, unsigned long request, ...); func Xioctl(t *TLS, fd int32, request ulong, va uintptr) int32 { + if __ccgo_strace { + trc("t=%v fd=%v request=%v va=%v, (%v:)", t, fd, request, va, origin(2)) + } + var argp uintptr if va != 0 { argp = VaUintptr(&va) @@ -497,6 +613,7 @@ func Xioctl(t *TLS, fd int32, request ulong, va uintptr) int32 { n, _, err := unix.Syscall(unix.SYS_IOCTL, uintptr(fd), uintptr(request), argp) if err != 0 { t.setErrno(err) + panic(todo("", "will fail on OpenBSD 7.5")) return -1 } @@ -505,19 +622,26 @@ func Xioctl(t *TLS, fd int32, request ulong, va uintptr) int32 { // int getsockname(int sockfd, struct sockaddr *addr, socklen_t *addrlen); func Xgetsockname(t *TLS, sockfd int32, addr, addrlen uintptr) int32 { - if _, _, err := unix.Syscall(unix.SYS_GETSOCKNAME, uintptr(sockfd), addr, addrlen); err != 0 { - // if dmesgs { - // dmesg("%v: fd %v: %v", origin(1), sockfd, err) - // } + if __ccgo_strace { + trc("t=%v sockfd=%v addrlen=%v, (%v:)", t, sockfd, addrlen, origin(2)) + } + sn, err := unix.Getsockname(int(sockfd)) + if err != nil { + if dmesgs { + dmesg("%v: fd %v: %v", origin(1), sockfd, err) + } t.setErrno(err) return -1 } - + *(*unix.Sockaddr)(unsafe.Pointer(addr)) = sn return 0 } // int select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout); func Xselect(t *TLS, nfds int32, readfds, writefds, exceptfds, timeout uintptr) int32 { + if __ccgo_strace { + trc("t=%v nfds=%v timeout=%v, (%v:)", t, nfds, timeout, origin(2)) + } n, err := unix.Select( int(nfds), (*unix.FdSet)(unsafe.Pointer(readfds)), @@ -535,18 +659,31 @@ func Xselect(t *TLS, nfds int32, readfds, writefds, exceptfds, timeout uintptr) // int mkfifo(const char *pathname, mode_t mode); func Xmkfifo(t *TLS, pathname uintptr, mode types.Mode_t) int32 { - panic(todo("")) + if __ccgo_strace { + trc("t=%v pathname=%v mode=%v, (%v:)", t, pathname, mode, origin(2)) + } + if err := unix.Mkfifo(GoString(pathname), uint32(mode)); err != nil { + t.setErrno(err) + return -1 + } + + return 0 } // mode_t umask(mode_t mask); func Xumask(t *TLS, mask types.Mode_t) types.Mode_t { - n, _, _ := unix.Syscall(unix.SYS_UMASK, uintptr(mask), 0, 0) - return types.Mode_t(n) + if __ccgo_strace { + trc("t=%v mask=%v, (%v:)", t, mask, origin(2)) + } + return types.Mode_t(unix.Umask(int(mask))) } // int execvp(const char *file, char *const argv[]); func Xexecvp(t *TLS, file, argv uintptr) int32 { - if _, _, err := unix.Syscall(unix.SYS_EXECVE, file, argv, Environ()); err != 0 { + if __ccgo_strace { + trc("t=%v argv=%v, (%v:)", t, argv, origin(2)) + } + if err := unix.Exec(GoString(file), getVaList(argv), GetEnviron()); err != nil { t.setErrno(err) return -1 } @@ -556,17 +693,29 @@ func Xexecvp(t *TLS, file, argv uintptr) int32 { // pid_t waitpid(pid_t pid, int *wstatus, int options); func Xwaitpid(t *TLS, pid types.Pid_t, wstatus uintptr, optname int32) types.Pid_t { - n, _, err := unix.Syscall6(unix.SYS_WAIT4, uintptr(pid), wstatus, uintptr(optname), 0, 0, 0) - if err != 0 { + if __ccgo_strace { + trc("t=%v pid=%v wstatus=%v optname=%v, (%v:)", t, pid, wstatus, optname, origin(2)) + } + n, err := unix.Wait4(int(pid), (*unix.WaitStatus)(unsafe.Pointer(wstatus)), int(optname), nil) + if err != nil { + if dmesgs { + dmesg("%v: %v FAIL", origin(1), err) + } t.setErrno(err) return -1 } + if dmesgs { + dmesg("%v: ok", origin(1)) + } return types.Pid_t(n) } // int uname(struct utsname *buf); func Xuname(t *TLS, buf uintptr) int32 { + if __ccgo_strace { + trc("t=%v buf=%v, (%v:)", t, buf, origin(2)) + } if err := unix.Uname((*unix.Utsname)(unsafe.Pointer(buf))); err != nil { if dmesgs { dmesg("%v: %v FAIL", origin(1), err) @@ -583,29 +732,40 @@ func Xuname(t *TLS, buf uintptr) int32 { // ssize_t recv(int sockfd, void *buf, size_t len, int flags); func Xrecv(t *TLS, sockfd int32, buf uintptr, len types.Size_t, flags int32) types.Ssize_t { - n, _, err := unix.Syscall6(unix.SYS_RECVFROM, uintptr(sockfd), buf, uintptr(len), uintptr(flags), 0, 0) - if err != 0 { + if __ccgo_strace { + trc("t=%v sockfd=%v buf=%v len=%v flags=%v, (%v:)", t, sockfd, buf, len, flags, origin(2)) + } + p := make([]byte, len) + n, _, err := unix.Recvfrom(int(sockfd), p, int(flags)) + if err != nil { t.setErrno(err) return -1 } - + copy((*RawMem)(unsafe.Pointer(buf))[:n:n], p[:]) return types.Ssize_t(n) } // ssize_t send(int sockfd, const void *buf, size_t len, int flags); func Xsend(t *TLS, sockfd int32, buf uintptr, len types.Size_t, flags int32) types.Ssize_t { - n, _, err := unix.Syscall6(unix.SYS_SENDTO, uintptr(sockfd), buf, uintptr(len), uintptr(flags), 0, 0) - if err != 0 { + if __ccgo_strace { + trc("t=%v sockfd=%v buf=%v len=%v flags=%v, (%v:)", t, sockfd, buf, len, flags, origin(2)) + } + + p := unsafe.Slice((*byte)(unsafe.Pointer(buf)), len) + if err := unix.Send(int(sockfd), p, int(flags)); err != nil { t.setErrno(err) return -1 } - return types.Ssize_t(n) + return types.Ssize_t(len) } // int shutdown(int sockfd, int how); func Xshutdown(t *TLS, sockfd, how int32) int32 { - if _, _, err := unix.Syscall(unix.SYS_SHUTDOWN, uintptr(sockfd), uintptr(how), 0); err != 0 { + if __ccgo_strace { + trc("t=%v how=%v, (%v:)", t, how, origin(2)) + } + if err := unix.Shutdown(int(sockfd), int(how)); err != nil { t.setErrno(err) return -1 } @@ -615,39 +775,58 @@ func Xshutdown(t *TLS, sockfd, how int32) int32 { // int getpeername(int sockfd, struct sockaddr *addr, socklen_t *addrlen); func Xgetpeername(t *TLS, sockfd int32, addr uintptr, addrlen uintptr) int32 { - if _, _, err := unix.Syscall(unix.SYS_GETPEERNAME, uintptr(sockfd), addr, uintptr(addrlen)); err != 0 { + if __ccgo_strace { + trc("t=%v sockfd=%v addr=%v addrlen=%v, (%v:)", t, sockfd, addr, addrlen, origin(2)) + } + sa, err := unix.Getpeername(int(sockfd)) + if err != nil { t.setErrno(err) return -1 } + if __ccgo_strace { + trc("sa=%v", sa) + } + + panic(todo("")) + // populate addr & addrlen from sa + // , addr, uintptr(addrlen)) return 0 } // int socket(int domain, int type, int protocol); func Xsocket(t *TLS, domain, type1, protocol int32) int32 { - n, _, err := unix.Syscall(unix.SYS_SOCKET, uintptr(domain), uintptr(type1), uintptr(protocol)) - if err != 0 { + if __ccgo_strace { + trc("t=%v protocol=%v, (%v:)", t, protocol, origin(2)) + } + fd, err := unix.Socket(int(domain), int(type1), int(protocol)) + if err != nil { t.setErrno(err) return -1 } - return int32(n) + return int32(fd) } // int bind(int sockfd, const struct sockaddr *addr, socklen_t addrlen); func Xbind(t *TLS, sockfd int32, addr uintptr, addrlen uint32) int32 { - n, _, err := unix.Syscall(unix.SYS_BIND, uintptr(sockfd), addr, uintptr(addrlen)) - if err != 0 { + if __ccgo_strace { + trc("t=%v sockfd=%v addr=%v addrlen=%v, (%v:)", t, sockfd, addr, addrlen, origin(2)) + } + if err := unix.Bind(int(sockfd), *(*unix.Sockaddr)(unsafe.Pointer(addr))); err != nil { t.setErrno(err) return -1 } - return int32(n) + return 0 } // int connect(int sockfd, const struct sockaddr *addr, socklen_t addrlen); func Xconnect(t *TLS, sockfd int32, addr uintptr, addrlen uint32) int32 { - if _, _, err := unix.Syscall(unix.SYS_CONNECT, uintptr(sockfd), addr, uintptr(addrlen)); err != 0 { + if __ccgo_strace { + trc("t=%v sockfd=%v addr=%v addrlen=%v, (%v:)", t, sockfd, addr, addrlen, origin(2)) + } + if err := unix.Connect(int(sockfd), *(*unix.Sockaddr)(unsafe.Pointer(addr))); err != nil { t.setErrno(err) return -1 } @@ -657,7 +836,10 @@ func Xconnect(t *TLS, sockfd int32, addr uintptr, addrlen uint32) int32 { // int listen(int sockfd, int backlog); func Xlisten(t *TLS, sockfd, backlog int32) int32 { - if _, _, err := unix.Syscall(unix.SYS_LISTEN, uintptr(sockfd), uintptr(backlog), 0); err != 0 { + if __ccgo_strace { + trc("t=%v backlog=%v, (%v:)", t, backlog, origin(2)) + } + if err := unix.Listen(int(sockfd), int(backlog)); err != nil { t.setErrno(err) return -1 } @@ -667,29 +849,46 @@ func Xlisten(t *TLS, sockfd, backlog int32) int32 { // int accept(int sockfd, struct sockaddr *addr, socklen_t *addrlen); func Xaccept(t *TLS, sockfd int32, addr uintptr, addrlen uintptr) int32 { - panic(todo("")) - // n, _, err := unix.Syscall6(unix.SYS_ACCEPT4, uintptr(sockfd), addr, uintptr(addrlen), 0, 0, 0) - // if err != 0 { - // t.setErrno(err) - // return -1 - // } + if __ccgo_strace { + trc("t=%v sockfd=%v addr=%v addrlen=%v, (%v:)", t, sockfd, addr, addrlen, origin(2)) + } + + nfd, sa, err := unix.Accept(int(sockfd)) + if err != nil { + t.setErrno(err) + return -1 + } + if __ccgo_strace { + trc("sa=%v", sa) + } - // return int32(n) + panic(todo("")) + // populate addr, addrlen from sa + return int32(nfd) } // int getrlimit(int resource, struct rlimit *rlim); func Xgetrlimit(t *TLS, resource int32, rlim uintptr) int32 { + if __ccgo_strace { + trc("t=%v resource=%v rlim=%v, (%v:)", t, resource, rlim, origin(2)) + } return Xgetrlimit64(t, resource, rlim) } // int setrlimit(int resource, const struct rlimit *rlim); func Xsetrlimit(t *TLS, resource int32, rlim uintptr) int32 { + if __ccgo_strace { + trc("t=%v resource=%v rlim=%v, (%v:)", t, resource, rlim, origin(2)) + } return Xsetrlimit64(t, resource, rlim) } // int setrlimit(int resource, const struct rlimit *rlim); func Xsetrlimit64(t *TLS, resource int32, rlim uintptr) int32 { - if _, _, err := unix.Syscall(unix.SYS_SETRLIMIT, uintptr(resource), uintptr(rlim), 0); err != 0 { + if __ccgo_strace { + trc("t=%v resource=%v rlim=%v, (%v:)", t, resource, rlim, origin(2)) + } + if err := unix.Setrlimit(int(resource), (*unix.Rlimit)(unsafe.Pointer(rlim))); err != nil { t.setErrno(err) return -1 } @@ -699,16 +898,25 @@ func Xsetrlimit64(t *TLS, resource int32, rlim uintptr) int32 { // uid_t getuid(void); func Xgetuid(t *TLS) types.Uid_t { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } return types.Uid_t(os.Getuid()) } // pid_t getpid(void); func Xgetpid(t *TLS) int32 { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } return int32(os.Getpid()) } // int system(const char *command); func Xsystem(t *TLS, command uintptr) int32 { + if __ccgo_strace { + trc("t=%v command=%v, (%v:)", t, command, origin(2)) + } s := GoString(command) if command == 0 { panic(todo("")) @@ -728,30 +936,61 @@ func Xsystem(t *TLS, command uintptr) int32 { // int setvbuf(FILE *stream, char *buf, int mode, size_t size); func Xsetvbuf(t *TLS, stream, buf uintptr, mode int32, size types.Size_t) int32 { + if __ccgo_strace { + trc("t=%v buf=%v mode=%v size=%v, (%v:)", t, buf, mode, size, origin(2)) + } return 0 //TODO } // int raise(int sig); func Xraise(t *TLS, sig int32) int32 { + if __ccgo_strace { + trc("t=%v sig=%v, (%v:)", t, sig, origin(2)) + } panic(todo("")) } // int backtrace(void **buffer, int size); func Xbacktrace(t *TLS, buf uintptr, size int32) int32 { + if __ccgo_strace { + trc("t=%v buf=%v size=%v, (%v:)", t, buf, size, origin(2)) + } panic(todo("")) } // void backtrace_symbols_fd(void *const *buffer, int size, int fd); func Xbacktrace_symbols_fd(t *TLS, buffer uintptr, size, fd int32) { + if __ccgo_strace { + trc("t=%v buffer=%v fd=%v, (%v:)", t, buffer, fd, origin(2)) + } panic(todo("")) } // int fileno(FILE *stream); func Xfileno(t *TLS, stream uintptr) int32 { - panic(todo("")) + if __ccgo_strace { + trc("t=%v stream=%v, (%v:)", t, stream, origin(2)) + } + if stream == 0 { + if dmesgs { + dmesg("%v: FAIL", origin(1)) + } + t.setErrno(errno.EBADF) + return -1 + } + + if fd := int32((*stdio.FILE)(unsafe.Pointer(stream)).F_file); fd >= 0 { + return fd + } + + if dmesgs { + dmesg("%v: FAIL", origin(1)) + } + t.setErrno(errno.EBADF) + return -1 } -func newCFtsent(t *TLS, info int, path string, stat *unix.Stat_t, err syscall.Errno) uintptr { +func newCFtsent(t *TLS, info int, path string, stat *unix.Stat_t, err syscallErrno) uintptr { p := Xcalloc(t, 1, types.Size_t(unsafe.Sizeof(fts.FTSENT{}))) if p == 0 { panic("OOM") @@ -781,11 +1020,17 @@ func (f *ftstream) close(t *TLS) { // FTS *fts_open(char * const *path_argv, int options, int (*compar)(const FTSENT **, const FTSENT **)); func Xfts_open(t *TLS, path_argv uintptr, options int32, compar uintptr) uintptr { + if __ccgo_strace { + trc("t=%v path_argv=%v options=%v compar=%v, (%v:)", t, path_argv, options, compar, origin(2)) + } return Xfts64_open(t, path_argv, options, compar) } // FTS *fts_open(char * const *path_argv, int options, int (*compar)(const FTSENT **, const FTSENT **)); func Xfts64_open(t *TLS, path_argv uintptr, options int32, compar uintptr) uintptr { + if __ccgo_strace { + trc("t=%v path_argv=%v options=%v compar=%v, (%v:)", t, path_argv, options, compar, origin(2)) + } f := &ftstream{} var walk func(string) @@ -890,11 +1135,17 @@ func Xfts64_open(t *TLS, path_argv uintptr, options int32, compar uintptr) uintp // FTSENT *fts_read(FTS *ftsp); func Xfts_read(t *TLS, ftsp uintptr) uintptr { + if __ccgo_strace { + trc("t=%v ftsp=%v, (%v:)", t, ftsp, origin(2)) + } return Xfts64_read(t, ftsp) } // FTSENT *fts_read(FTS *ftsp); func Xfts64_read(t *TLS, ftsp uintptr) uintptr { + if __ccgo_strace { + trc("t=%v ftsp=%v, (%v:)", t, ftsp, origin(2)) + } f := getObject(ftsp).(*ftstream) if f.x == len(f.s) { t.setErrno(0) @@ -911,11 +1162,17 @@ func Xfts64_read(t *TLS, ftsp uintptr) uintptr { // int fts_close(FTS *ftsp); func Xfts_close(t *TLS, ftsp uintptr) int32 { + if __ccgo_strace { + trc("t=%v ftsp=%v, (%v:)", t, ftsp, origin(2)) + } return Xfts64_close(t, ftsp) } // int fts_close(FTS *ftsp); func Xfts64_close(t *TLS, ftsp uintptr) int32 { + if __ccgo_strace { + trc("t=%v ftsp=%v, (%v:)", t, ftsp, origin(2)) + } getObject(ftsp).(*ftstream).close(t) removeObject(ftsp) return 0 @@ -923,6 +1180,9 @@ func Xfts64_close(t *TLS, ftsp uintptr) int32 { // void tzset (void); func Xtzset(t *TLS) { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } //TODO } @@ -930,6 +1190,9 @@ var strerrorBuf [100]byte // char *strerror(int errnum); func Xstrerror(t *TLS, errnum int32) uintptr { + if __ccgo_strace { + trc("t=%v errnum=%v, (%v:)", t, errnum, origin(2)) + } if dmesgs { dmesg("%v: %v\n%s", origin(1), errnum, debug.Stack()) } @@ -939,31 +1202,53 @@ func Xstrerror(t *TLS, errnum int32) uintptr { // void *dlopen(const char *filename, int flags); func Xdlopen(t *TLS, filename uintptr, flags int32) uintptr { + if __ccgo_strace { + trc("t=%v filename=%v flags=%v, (%v:)", t, filename, flags, origin(2)) + } panic(todo("")) } // char *dlerror(void); func Xdlerror(t *TLS) uintptr { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } panic(todo("")) } // int dlclose(void *handle); func Xdlclose(t *TLS, handle uintptr) int32 { + if __ccgo_strace { + trc("t=%v handle=%v, (%v:)", t, handle, origin(2)) + } panic(todo("")) } // void *dlsym(void *handle, const char *symbol); func Xdlsym(t *TLS, handle, symbol uintptr) uintptr { + if __ccgo_strace { + trc("t=%v symbol=%v, (%v:)", t, symbol, origin(2)) + } panic(todo("")) } // void perror(const char *s); -func Xperror(t *TLS, s uintptr) { - panic(todo("")) +func Xperror(tls *TLS, msg uintptr) { + if __ccgo_strace { + trc("tls=%v msg=%v, (%v:)", tls, msg, origin(2)) + } + if msg != 0 && *(*int8)(unsafe.Pointer(msg)) != 0 { + fmt.Fprintf(os.Stderr, "%s: ", GoString(msg)) + } + errstr := Xstrerror(tls, *(*int32)(unsafe.Pointer(X__errno_location(tls)))) + fmt.Fprintf(os.Stderr, "%s\n", GoString(errstr)) } // int pclose(FILE *stream); func Xpclose(t *TLS, stream uintptr) int32 { + if __ccgo_strace { + trc("t=%v stream=%v, (%v:)", t, stream, origin(2)) + } panic(todo("")) } @@ -971,37 +1256,58 @@ var gai_strerrorBuf [100]byte // const char *gai_strerror(int errcode); func Xgai_strerror(t *TLS, errcode int32) uintptr { + if __ccgo_strace { + trc("t=%v errcode=%v, (%v:)", t, errcode, origin(2)) + } copy(gai_strerrorBuf[:], fmt.Sprintf("gai error %d\x00", errcode)) return uintptr(unsafe.Pointer(&gai_strerrorBuf)) } // int tcgetattr(int fd, struct termios *termios_p); func Xtcgetattr(t *TLS, fd int32, termios_p uintptr) int32 { + if __ccgo_strace { + trc("t=%v fd=%v termios_p=%v, (%v:)", t, fd, termios_p, origin(2)) + } panic(todo("")) } // int tcsetattr(int fd, int optional_actions, const struct termios *termios_p); func Xtcsetattr(t *TLS, fd, optional_actions int32, termios_p uintptr) int32 { + if __ccgo_strace { + trc("t=%v optional_actions=%v termios_p=%v, (%v:)", t, optional_actions, termios_p, origin(2)) + } panic(todo("")) } // speed_t cfgetospeed(const struct termios *termios_p); func Xcfgetospeed(t *TLS, termios_p uintptr) termios.Speed_t { + if __ccgo_strace { + trc("t=%v termios_p=%v, (%v:)", t, termios_p, origin(2)) + } panic(todo("")) } // int cfsetospeed(struct termios *termios_p, speed_t speed); func Xcfsetospeed(t *TLS, termios_p uintptr, speed uint32) int32 { + if __ccgo_strace { + trc("t=%v termios_p=%v speed=%v, (%v:)", t, termios_p, speed, origin(2)) + } panic(todo("")) } // int cfsetispeed(struct termios *termios_p, speed_t speed); func Xcfsetispeed(t *TLS, termios_p uintptr, speed uint32) int32 { + if __ccgo_strace { + trc("t=%v termios_p=%v speed=%v, (%v:)", t, termios_p, speed, origin(2)) + } panic(todo("")) } // pid_t fork(void); func Xfork(t *TLS) int32 { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } t.setErrno(errno.ENOSYS) return -1 } @@ -1010,21 +1316,33 @@ var emptyStr = [1]byte{} // char *setlocale(int category, const char *locale); func Xsetlocale(t *TLS, category int32, locale uintptr) uintptr { + if __ccgo_strace { + trc("t=%v category=%v locale=%v, (%v:)", t, category, locale, origin(2)) + } return uintptr(unsafe.Pointer(&emptyStr)) //TODO } // char *nl_langinfo(nl_item item); func Xnl_langinfo(t *TLS, item langinfo.Nl_item) uintptr { + if __ccgo_strace { + trc("t=%v item=%v, (%v:)", t, item, origin(2)) + } return uintptr(unsafe.Pointer(&emptyStr)) //TODO } // FILE *popen(const char *command, const char *type); func Xpopen(t *TLS, command, type1 uintptr) uintptr { + if __ccgo_strace { + trc("t=%v type1=%v, (%v:)", t, type1, origin(2)) + } panic(todo("")) } // char *realpath(const char *path, char *resolved_path); func Xrealpath(t *TLS, path, resolved_path uintptr) uintptr { + if __ccgo_strace { + trc("t=%v resolved_path=%v, (%v:)", t, resolved_path, origin(2)) + } s, err := filepath.EvalSymlinks(GoString(path)) if err != nil { if os.IsNotExist(err) { @@ -1051,21 +1369,25 @@ func Xrealpath(t *TLS, path, resolved_path uintptr) uintptr { return resolved_path } -// struct tm *gmtime_r(const time_t *timep, struct tm *result); -func Xgmtime_r(t *TLS, timep, result uintptr) uintptr { - panic(todo("")) -} - // char *inet_ntoa(struct in_addr in); func Xinet_ntoa(t *TLS, in1 in.In_addr) uintptr { + if __ccgo_strace { + trc("t=%v in1=%v, (%v:)", t, in1, origin(2)) + } panic(todo("")) } func X__ccgo_in6addr_anyp(t *TLS) uintptr { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } return uintptr(unsafe.Pointer(&in6_addr_any)) } func Xabort(t *TLS) { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } panic(todo("")) //TODO // if dmesgs { // dmesg("%v:", origin(1)) @@ -1078,34 +1400,51 @@ func Xabort(t *TLS) { // (*signal.Sigaction)(unsafe.Pointer(p)).F__sigaction_u.F__sa_handler = signal.SIG_DFL // Xsigaction(t, signal.SIGABRT, p, 0) // Xfree(t, p) - // unix.Kill(unix.Getpid(), syscall.Signal(signal.SIGABRT)) + // unix.Kill(unix.Getpid(), unix.Signal(signal.SIGABRT)) // panic(todo("unrechable")) } // int fflush(FILE *stream); func Xfflush(t *TLS, stream uintptr) int32 { + if __ccgo_strace { + trc("t=%v stream=%v, (%v:)", t, stream, origin(2)) + } return 0 //TODO } // size_t fread(void *ptr, size_t size, size_t nmemb, FILE *stream); func Xfread(t *TLS, ptr uintptr, size, nmemb types.Size_t, stream uintptr) types.Size_t { - m, _, err := unix.Syscall(unix.SYS_READ, uintptr(file(stream).fd()), ptr, uintptr(size*nmemb)) - if err != 0 { + if __ccgo_strace { + trc("t=%v ptr=%v size=%v nmemb=%v stream=%v, (%v:)", t, ptr, size, nmemb, stream, origin(2)) + } + if size == 0 || nmemb == 0 { + return 0 + } + buf := unsafe.Slice((*byte)(unsafe.Pointer(ptr)), nmemb*size) + m, err := unix.Read(int(file(stream).fd()), buf) + if err != nil { file(stream).setErr() return 0 } - // if dmesgs { - // // dmesg("%v: %d %#x x %#x: %#x\n%s", origin(1), file(stream).fd(), size, nmemb, types.Size_t(m)/size, hex.Dump(GoBytes(ptr, int(m)))) - // dmesg("%v: %d %#x x %#x: %#x", origin(1), file(stream).fd(), size, nmemb, types.Size_t(m)/size) - // } + if dmesgs { + // // dmesg("%v: %d %#x x %#x: %#x\n%s", origin(1), file(stream).fd(), size, nmemb, types.Size_t(m)/size, hex.Dump(GoBytes(ptr, int(m)))) + dmesg("%v: %d %#x x %#x: %#x", origin(1), file(stream).fd(), size, nmemb, types.Size_t(m)/size) + } return types.Size_t(m) / size } // size_t fwrite(const void *ptr, size_t size, size_t nmemb, FILE *stream); func Xfwrite(t *TLS, ptr uintptr, size, nmemb types.Size_t, stream uintptr) types.Size_t { - m, _, err := unix.Syscall(unix.SYS_WRITE, uintptr(file(stream).fd()), ptr, uintptr(size*nmemb)) - if err != 0 { + if __ccgo_strace { + trc("t=%v ptr=%v nmemb=%v stream=%v, (%v:)", t, ptr, nmemb, stream, origin(2)) + } + if size == 0 || nmemb == 0 { + return 0 + } + buf := unsafe.Slice((*byte)(unsafe.Pointer(ptr)), nmemb*size) + m, err := unix.Write(int(file(stream).fd()), buf) + if err != nil { file(stream).setErr() return 0 } @@ -1119,11 +1458,17 @@ func Xfwrite(t *TLS, ptr uintptr, size, nmemb types.Size_t, stream uintptr) type // int fclose(FILE *stream); func Xfclose(t *TLS, stream uintptr) int32 { + if __ccgo_strace { + trc("t=%v stream=%v, (%v:)", t, stream, origin(2)) + } return file(stream).close(t) } // int fputc(int c, FILE *stream); func Xfputc(t *TLS, c int32, stream uintptr) int32 { + if __ccgo_strace { + trc("t=%v c=%v stream=%v, (%v:)", t, c, stream, origin(2)) + } if _, err := fwrite(file(stream).fd(), []byte{byte(c)}); err != nil { return stdio.EOF } @@ -1133,6 +1478,9 @@ func Xfputc(t *TLS, c int32, stream uintptr) int32 { // int fseek(FILE *stream, long offset, int whence); func Xfseek(t *TLS, stream uintptr, offset long, whence int32) int32 { + if __ccgo_strace { + trc("t=%v stream=%v offset=%v whence=%v, (%v:)", t, stream, offset, whence, origin(2)) + } if n := Xlseek(t, int32(file(stream).fd()), types.Off_t(offset), whence); n < 0 { // if dmesgs { // dmesg("%v: fd %v, off %#x, whence %v: %v", origin(1), file(stream).fd(), offset, whenceStr(whence), n) @@ -1149,6 +1497,9 @@ func Xfseek(t *TLS, stream uintptr, offset long, whence int32) int32 { // long ftell(FILE *stream); func Xftell(t *TLS, stream uintptr) long { + if __ccgo_strace { + trc("t=%v stream=%v, (%v:)", t, stream, origin(2)) + } n := Xlseek(t, file(stream).fd(), 0, stdio.SEEK_CUR) if n < 0 { file(stream).setErr() @@ -1163,22 +1514,35 @@ func Xftell(t *TLS, stream uintptr) long { // int ferror(FILE *stream); func Xferror(t *TLS, stream uintptr) int32 { + if __ccgo_strace { + trc("t=%v stream=%v, (%v:)", t, stream, origin(2)) + } return Bool32(file(stream).err()) } // int ungetc(int c, FILE *stream); func Xungetc(t *TLS, c int32, stream uintptr) int32 { + if __ccgo_strace { + trc("t=%v c=%v stream=%v, (%v:)", t, c, stream, origin(2)) + } panic(todo("")) } // int fscanf(FILE *stream, const char *format, ...); func Xfscanf(t *TLS, stream, format, va uintptr) int32 { + if __ccgo_strace { + trc("t=%v va=%v, (%v:)", t, va, origin(2)) + } panic(todo("")) } // int fputs(const char *s, FILE *stream); func Xfputs(t *TLS, s, stream uintptr) int32 { - if _, _, err := unix.Syscall(unix.SYS_WRITE, uintptr(file(stream).fd()), s, uintptr(Xstrlen(t, s))); err != 0 { + if __ccgo_strace { + trc("t=%v stream=%v, (%v:)", t, stream, origin(2)) + } + buf := unsafe.Slice((*byte)(unsafe.Pointer(s)), uintptr(Xstrlen(t, s))) + if _, err := unix.Write(int(file(stream).fd()), buf); err != nil { return -1 } @@ -1189,6 +1553,9 @@ var getservbynameStaticResult netdb.Servent // struct servent *getservbyname(const char *name, const char *proto); func Xgetservbyname(t *TLS, name, proto uintptr) uintptr { + if __ccgo_strace { + trc("t=%v proto=%v, (%v:)", t, proto, origin(2)) + } var protoent *gonetdb.Protoent if proto != 0 { protoent = gonetdb.GetProtoByName(GoString(proto)) @@ -1266,10 +1633,13 @@ func Xgetservbyname(t *TLS, name, proto uintptr) uintptr { } func Xreaddir64(t *TLS, dir uintptr) uintptr { + if __ccgo_strace { + trc("t=%v dir=%v, (%v:)", t, dir, origin(2)) + } return Xreaddir(t, dir) } -func __syscall(r, _ uintptr, errno syscall.Errno) long { +func __syscall(r, _ uintptr, errno syscallErrno) long { if errno != 0 { return long(-errno) } @@ -1278,14 +1648,23 @@ func __syscall(r, _ uintptr, errno syscall.Errno) long { } func X__syscall1(t *TLS, trap, p1 long) long { + if __ccgo_strace { + trc("t=%v p1=%v, (%v:)", t, p1, origin(2)) + } return __syscall(unix.Syscall(uintptr(trap), uintptr(p1), 0, 0)) } func X__syscall3(t *TLS, trap, p1, p2, p3 long) long { + if __ccgo_strace { + trc("t=%v p3=%v, (%v:)", t, p3, origin(2)) + } return __syscall(unix.Syscall(uintptr(trap), uintptr(p1), uintptr(p2), uintptr(p3))) } func X__syscall4(t *TLS, trap, p1, p2, p3, p4 long) long { + if __ccgo_strace { + trc("t=%v p4=%v, (%v:)", t, p4, origin(2)) + } return __syscall(unix.Syscall6(uintptr(trap), uintptr(p1), uintptr(p2), uintptr(p3), uintptr(p4), 0, 0)) } @@ -1308,26 +1687,41 @@ func fcntlCmdStr(cmd int32) string { // int setenv(const char *name, const char *value, int overwrite); func Xsetenv(t *TLS, name, value uintptr, overwrite int32) int32 { + if __ccgo_strace { + trc("t=%v value=%v overwrite=%v, (%v:)", t, value, overwrite, origin(2)) + } panic(todo("")) } // int unsetenv(const char *name); func Xunsetenv(t *TLS, name uintptr) int32 { + if __ccgo_strace { + trc("t=%v name=%v, (%v:)", t, name, origin(2)) + } panic(todo("")) } // int pause(void); func Xpause(t *TLS) int32 { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } panic(todo("")) } // ssize_t writev(int fd, const struct iovec *iov, int iovcnt); func Xwritev(t *TLS, fd int32, iov uintptr, iovcnt int32) types.Ssize_t { + if __ccgo_strace { + trc("t=%v fd=%v iov=%v iovcnt=%v, (%v:)", t, fd, iov, iovcnt, origin(2)) + } panic(todo("")) } // int __isoc99_sscanf(const char *str, const char *format, ...); func X__isoc99_sscanf(t *TLS, str, format, va uintptr) int32 { + if __ccgo_strace { + trc("t=%v va=%v, (%v:)", t, va, origin(2)) + } r := Xsscanf(t, str, format, va) // if dmesgs { // dmesg("%v: %q %q: %d", origin(1), GoString(str), GoString(format), r) @@ -1337,20 +1731,32 @@ func X__isoc99_sscanf(t *TLS, str, format, va uintptr) int32 { // void __assert(const char * func, const char * file, int line, const char *expr) __dead2; func X__assert(t *TLS, fn, file uintptr, line int32, expr uintptr) { + if __ccgo_strace { + trc("t=%v file=%v line=%v expr=%v, (%v:)", t, file, line, expr, origin(2)) + } X__assert_fail(t, expr, file, uint32(line), fn) } func X__assert13(t *TLS, file uintptr, line int32, fn, msg uintptr) { + if __ccgo_strace { + trc("t=%v file=%v line=%v msg=%v, (%v:)", t, file, line, msg, origin(2)) + } X__assert_fail(t, msg, file, uint32(line), fn) } // include/stdio.h:456:int __swbuf(int, FILE *); func X__swbuf(t *TLS, n int32, file uintptr) int32 { + if __ccgo_strace { + trc("t=%v n=%v file=%v, (%v:)", t, n, file, origin(2)) + } return Xfputc(t, n, file) //TODO improve performance, use a real buffer. } // int rmdir(const char *pathname); func Xrmdir(t *TLS, pathname uintptr) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v, (%v:)", t, pathname, origin(2)) + } if err := unix.Rmdir(GoString(pathname)); err != nil { if dmesgs { dmesg("%v: %v FAIL", origin(1), err) @@ -1367,6 +1773,9 @@ func Xrmdir(t *TLS, pathname uintptr) int32 { // struct dirent *readdir(DIR *dirp); func Xreaddir(t *TLS, dir uintptr) uintptr { + if __ccgo_strace { + trc("t=%v dir=%v, (%v:)", t, dir, origin(2)) + } if (*darwinDir)(unsafe.Pointer(dir)).eof { return 0 } @@ -1405,6 +1814,9 @@ type darwinDir struct { // int sscanf(const char *str, const char *format, ...); func Xsscanf(t *TLS, str, format, va uintptr) int32 { + if __ccgo_strace { + trc("t=%v va=%v, (%v:)", t, va, origin(2)) + } r := scanf(strings.NewReader(GoString(str)), format, va) // if dmesgs { // dmesg("%v: %q %q: %d", origin(1), GoString(str), GoString(format), r) @@ -1414,10 +1826,16 @@ func Xsscanf(t *TLS, str, format, va uintptr) int32 { // int * __error(void); func X__error(t *TLS) uintptr { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } return t.errnop } func Xclosedir(t *TLS, dir uintptr) int32 { + if __ccgo_strace { + trc("t=%v dir=%v, (%v:)", t, dir, origin(2)) + } r := Xclose(t, int32((*darwinDir)(unsafe.Pointer(dir)).fd)) Xfree(t, dir) return r @@ -1425,11 +1843,17 @@ func Xclosedir(t *TLS, dir uintptr) int32 { // int __xuname(int namesize, void *namebuf) func X__xuname(t *TLS, namesize int32, namebuf uintptr) int32 { + if __ccgo_strace { + trc("t=%v namesize=%v namebuf=%v, (%v:)", t, namesize, namebuf, origin(2)) + } return Xuname(t, namebuf) } // int chflags(const char *path, u_int flags); func Xchflags(t *TLS, path uintptr, flags uint32) int32 { + if __ccgo_strace { + trc("t=%v path=%v flags=%v, (%v:)", t, path, flags, origin(2)) + } if err := unix.Chflags(GoString(path), int(flags)); err != nil { if dmesgs { dmesg("%v: %v FAIL", origin(1), err) @@ -1446,8 +1870,11 @@ func Xchflags(t *TLS, path uintptr, flags uint32) int32 { // int pipe(int pipefd[2]); func Xpipe(t *TLS, pipefd uintptr) int32 { + if __ccgo_strace { + trc("t=%v pipefd=%v, (%v:)", t, pipefd, origin(2)) + } var a [2]int - if err := syscall.Pipe(a[:]); err != nil { + if err := unix.Pipe(a[:]); err != nil { if dmesgs { dmesg("%v: %v FAIL", origin(1), err) } @@ -1464,48 +1891,98 @@ func Xpipe(t *TLS, pipefd uintptr) int32 { // char *inet_ntoa(struct in_addr in); func X__inet_ntoa(t *TLS, in1 in.In_addr) uintptr { + if __ccgo_strace { + trc("t=%v in1=%v, (%v:)", t, in1, origin(2)) + } panic(todo("")) } func Xmmap(t *TLS, addr uintptr, length types.Size_t, prot, flags, fd int32, offset types.Off_t) uintptr { - // Cannot avoid the syscall here, addr sometimes matter. - data, _, err := unix.Syscall6(unix.SYS_MMAP, addr, uintptr(length), uintptr(prot), uintptr(flags), uintptr(fd), uintptr(offset)) - if err != 0 { - if dmesgs { - dmesg("%v: %v FAIL", origin(1), err) - } + if __ccgo_strace { + trc("t=%v addr=%v length=%v fd=%v offset=%v, (%v:)", t, addr, length, fd, offset, origin(2)) + } + + if addr == 0 { + data, err := unix.Mmap(int(fd), int64(offset), int(length), int(prot), int(flags)) + if err != nil { + t.setErrno(err) + return ^uintptr(0) + } + if __ccgo_strace { + trc("Xmmap returning %v", uintptr(unsafe.Pointer(&data))) + } + return uintptr(unsafe.Pointer(&data[0])) + } + + // On 2021-12-23, a new syscall for mmap was introduced: + // + // 49 STD NOLOCK { void *sys_mmap(void *addr, size_t len, int prot, \ + // int flags, int fd, off_t pos); } + // src: https://github.com/golang/go/issues/59661 + if __ccgo_strace { + trc("Xmmap with addr %d (%v:)", addr, origin(2)) + } + + panic(todo("")) + + const unix_SYS_MMAP = 49 + + // Cannot avoid the syscall here, addr sometimes matter. + data, _, err := unix.RawSyscall6(unix_SYS_MMAP, addr, uintptr(length), uintptr(prot), uintptr(flags), uintptr(fd), uintptr(offset)) + if err != 0 { + //if dmesgs { + dmesg("%v: %v FAIL", origin(1), err) + //} t.setErrno(err) return ^uintptr(0) // (void*)-1 } if dmesgs { - dmesg("%v: %#x", origin(1), data) + dmesg("%v: addr %#0x, length %#x0, prot %#0x, flags %#0x, fd %d, offset %#0x returns %#0x", origin(1), addr, length, prot, flags, fd, offset, data) } return data } func X__errno(t *TLS) uintptr { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } return X__errno_location(t) } func X__ccgo_pthreadMutexattrGettype(tls *TLS, a uintptr) int32 { /* pthread_attr_get.c:93:5: */ + if __ccgo_strace { + trc("tls=%v a=%v, (%v:)", tls, a, origin(2)) + } return (int32((*pthread_mutexattr_t)(unsafe.Pointer(a)).F__attr & uint32(3))) } func X__ccgo_getMutexType(tls *TLS, m uintptr) int32 { /* pthread_mutex_lock.c:3:5: */ + if __ccgo_strace { + trc("tls=%v m=%v, (%v:)", tls, m, origin(2)) + } return (*(*int32)(unsafe.Pointer((m /* &.__u */ /* &.__i */))) & 15) } func X__ccgo_pthreadAttrGetDetachState(tls *TLS, a uintptr) int32 { /* pthread_attr_get.c:3:5: */ + if __ccgo_strace { + trc("tls=%v a=%v, (%v:)", tls, a, origin(2)) + } return *(*int32)(unsafe.Pointer((a /* &.__u */ /* &.__i */) + 6*4)) } func Xpthread_attr_getdetachstate(tls *TLS, a uintptr, state uintptr) int32 { /* pthread_attr_get.c:7:5: */ + if __ccgo_strace { + trc("tls=%v a=%v state=%v, (%v:)", tls, a, state, origin(2)) + } *(*int32)(unsafe.Pointer(state)) = *(*int32)(unsafe.Pointer((a /* &.__u */ /* &.__i */) + 6*4)) return 0 } func Xpthread_attr_setdetachstate(tls *TLS, a uintptr, state int32) int32 { /* pthread_attr_setdetachstate.c:3:5: */ + if __ccgo_strace { + trc("tls=%v a=%v state=%v, (%v:)", tls, a, state, origin(2)) + } if uint32(state) > 1 { return 22 } @@ -1514,15 +1991,24 @@ func Xpthread_attr_setdetachstate(tls *TLS, a uintptr, state int32) int32 { /* p } func Xpthread_mutexattr_destroy(tls *TLS, a uintptr) int32 { /* pthread_mutexattr_destroy.c:3:5: */ + if __ccgo_strace { + trc("tls=%v a=%v, (%v:)", tls, a, origin(2)) + } return 0 } func Xpthread_mutexattr_init(tls *TLS, a uintptr) int32 { /* pthread_mutexattr_init.c:3:5: */ + if __ccgo_strace { + trc("tls=%v a=%v, (%v:)", tls, a, origin(2)) + } *(*pthread_mutexattr_t)(unsafe.Pointer(a)) = pthread_mutexattr_t{} return 0 } func Xpthread_mutexattr_settype(tls *TLS, a uintptr, type1 int32) int32 { /* pthread_mutexattr_settype.c:3:5: */ + if __ccgo_strace { + trc("tls=%v a=%v type1=%v, (%v:)", tls, a, type1, origin(2)) + } if uint32(type1) > uint32(2) { return 22 } @@ -1532,6 +2018,9 @@ func Xpthread_mutexattr_settype(tls *TLS, a uintptr, type1 int32) int32 { /* pth // int uuid_parse( char *in, uuid_t uu); func Xuuid_parse(t *TLS, in uintptr, uu uintptr) int32 { + if __ccgo_strace { + trc("t=%v in=%v uu=%v, (%v:)", t, in, uu, origin(2)) + } r, err := guuid.Parse(GoString(in)) if err != nil { return -1 @@ -1541,16 +2030,27 @@ func Xuuid_parse(t *TLS, in uintptr, uu uintptr) int32 { return 0 } -func X__srget(t *TLS, stream uintptr) int32 { return Xgetc(t, stream) } +func X__srget(t *TLS, stream uintptr) int32 { + if __ccgo_strace { + trc("t=%v stream=%v, (%v:)", t, stream, origin(2)) + } + return Xgetc(t, stream) +} // void __assert2(const char *, int, const char *, const char *); // __assert2(__FILE__, __LINE__, __func__, #e)) func X__assert2(t *TLS, file uintptr, line int32, fn, expr uintptr) { + if __ccgo_strace { + trc("t=%v file=%v line=%v expr=%v, (%v:)", t, file, line, expr, origin(2)) + } X__assert_fail(t, expr, file, uint32(line), fn) } // int getpagesize(void); func Xgetpagesize(t *TLS) int32 { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } return int32(unix.Getpagesize()) } @@ -1568,6 +2068,9 @@ const PTHREAD_MUTEX_DEFAULT = 0 // // int pthread_mutex_init(pthread_mutex_t *restrict mutex, const pthread_mutexattr_t *restrict attr); func Xpthread_mutex_init(t *TLS, pMutex, pAttr uintptr) int32 { + if __ccgo_strace { + trc("t=%v pAttr=%v, (%v:)", t, pAttr, origin(2)) + } typ := PTHREAD_MUTEX_DEFAULT if pAttr != 0 { typ = int(X__ccgo_pthreadMutexattrGettype(t, pAttr)) @@ -1582,17 +2085,814 @@ func Xpthread_mutex_init(t *TLS, pMutex, pAttr uintptr) int32 { // uint16_t __builtin_bswap16 (uint32_t x) func Xbswap16(t *TLS, x uint16) uint16 { + if __ccgo_strace { + trc("t=%v x=%v, (%v:)", t, x, origin(2)) + } + return X__builtin_bswap16(t, x) +} + +func X__swap16md(t *TLS, x uint16) uint16 { + if __ccgo_strace { + trc("t=%v x=%v, (%v:)", t, x, origin(2)) + } return X__builtin_bswap16(t, x) } // uint32_t __builtin_bswap32 (uint32_t x) func Xbswap32(t *TLS, x uint32) uint32 { + if __ccgo_strace { + trc("t=%v x=%v, (%v:)", t, x, origin(2)) + } return X__builtin_bswap32(t, x) } // uint64_t __builtin_bswap64 (uint64_t x) func Xbswap64(t *TLS, x uint64) uint64 { + if __ccgo_strace { + trc("t=%v x=%v, (%v:)", t, x, origin(2)) + } return X__builtin_bswap64(t, x) } -func X__builtin_isblank(t *TLS, _c int32) int32 { return Xisblank(t, _c) } +func X__builtin_isblank(t *TLS, _c int32) int32 { + if __ccgo_strace { + trc("t=%v _c=%v, (%v:)", t, _c, origin(2)) + } + return Xisblank(t, _c) +} + +// int nanosleep(const struct timespec *req, struct timespec *rem); +func Xnanosleep(t *TLS, req, rem uintptr) int32 { + if __ccgo_strace { + trc("t=%v rem=%v, (%v:)", t, rem, origin(2)) + } + v := *(*time.Timespec)(unsafe.Pointer(req)) + gotime.Sleep(gotime.Second*gotime.Duration(v.Ftv_sec) + gotime.Duration(v.Ftv_nsec)) + return 0 +} + +// ssize_t pwrite(int fd, const void *buf, size_t count, off_t offset); +func Xpwrite(t *TLS, fd int32, buf uintptr, count types.Size_t, offset types.Off_t) types.Ssize_t { + if __ccgo_strace { + trc("t=%v fd=%v buf=%v count=%v offset=%v, (%v:)", t, fd, buf, count, offset, origin(2)) + } + var n int + var err error + switch { + case count == 0: + n, err = unix.Pwrite(int(fd), nil, int64(offset)) + default: + n, err = unix.Pwrite(int(fd), (*RawMem)(unsafe.Pointer(buf))[:count:count], int64(offset)) + // if dmesgs { + // dmesg("%v: fd %v, off %#x, count %#x\n%s", origin(1), fd, offset, count, hex.Dump((*RawMem)(unsafe.Pointer(buf))[:count:count])) + // } + } + if err != nil { + // if dmesgs { + // dmesg("%v: %v FAIL", origin(1), err) + // } + t.setErrno(err) + return -1 + } + + // if dmesgs { + // dmesg("%v: ok", origin(1)) + // } + return types.Ssize_t(n) +} + +// int sigaction(int signum, const struct sigaction *act, struct sigaction *oldact); +func Xsigaction(t *TLS, signum int32, act, oldact uintptr) int32 { + if __ccgo_strace { + trc("t=%v signum=%v oldact=%v, (%v:)", t, signum, oldact, origin(2)) + } + panic(todo("SYS_SIGACTION not supported")) +} + +// FILE *fopen64(const char *pathname, const char *mode); +func Xfopen64(t *TLS, pathname, mode uintptr) uintptr { + if __ccgo_strace { + trc("t=%v mode=%v, (%v:)", t, mode, origin(2)) + } + m := strings.ReplaceAll(GoString(mode), "b", "") + var flags int + switch m { + case "r": + flags = fcntl.O_RDONLY + case "r+": + flags = fcntl.O_RDWR + case "w": + flags = fcntl.O_WRONLY | fcntl.O_CREAT | fcntl.O_TRUNC + case "w+": + flags = fcntl.O_RDWR | fcntl.O_CREAT | fcntl.O_TRUNC + case "a": + flags = fcntl.O_WRONLY | fcntl.O_CREAT | fcntl.O_APPEND + case "a+": + flags = fcntl.O_RDWR | fcntl.O_CREAT | fcntl.O_APPEND + default: + panic(m) + } + fd, err := unix.Open(GoString(pathname), int(flags), 0666) + if err != nil { + if dmesgs { + dmesg("%v: %q %q: %v FAIL", origin(1), GoString(pathname), GoString(mode), err) + } + t.setErrno(err) + return 0 + } + + if dmesgs { + dmesg("%v: %q %q: fd %v", origin(1), GoString(pathname), GoString(mode), fd) + } + if p := newFile(t, int32(fd)); p != 0 { + return p + } + + panic("OOM") +} + +// int lstat(const char *pathname, struct stat *statbuf); +func Xlstat64(t *TLS, pathname, statbuf uintptr) int32 { + if __ccgo_strace { + trc("t=%v pathname=%s statbuf=%v, (%v:)", t, GoString(pathname), statbuf, origin(2)) + } + if err := unix.Lstat(GoString(pathname), (*unix.Stat_t)(unsafe.Pointer(statbuf))); err != nil { + if dmesgs { + dmesg("%v: %q: %v FAIL", origin(1), GoString(pathname), err) + } + t.setErrno(err) + return -1 + } + + if dmesgs { + dmesg("%v: %q: ok", origin(1), GoString(pathname)) + } + return 0 +} + +// int stat(const char *pathname, struct stat *statbuf); +func Xstat64(t *TLS, pathname, statbuf uintptr) int32 { + if __ccgo_strace { + trc("t=%v pathname=%s statbuf=%v, (%v:)", t, GoString(pathname), statbuf, origin(2)) + } + if err := unix.Stat(GoString(pathname), (*unix.Stat_t)(unsafe.Pointer(statbuf))); err != nil { + if dmesgs { + dmesg("%v: %q: %v FAIL", origin(1), GoString(pathname), err) + } + t.setErrno(err) + return -1 + } + + if dmesgs { + dmesg("%v: %q: ok", origin(1), GoString(pathname)) + } + return 0 +} + +// int mkdir(const char *path, mode_t mode); +func Xmkdir(t *TLS, path uintptr, mode types.Mode_t) int32 { + if __ccgo_strace { + trc("t=%v path=%v mode=%v, (%v:)", t, GoString(path), mode, origin(2)) + } + if err := unix.Mkdir(GoString(path), uint32(mode)); err != nil { + if dmesgs { + dmesg("%v: %q: %v FAIL", origin(1), GoString(path), err) + } + t.setErrno(err) + return -1 + } + + if dmesgs { + dmesg("%v: %q: ok", origin(1), GoString(path)) + } + return 0 +} + +// int access(const char *pathname, int mode); +func Xaccess(t *TLS, pathname uintptr, mode int32) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v mode=%v, (%v:)", t, GoString(pathname), mode, origin(2)) + } + if err := unix.Access(GoString(pathname), uint32(mode)); err != nil { + if dmesgs { + dmesg("%v: %q %#o: %v FAIL", origin(1), GoString(pathname), mode, err) + } + t.setErrno(err) + return -1 + } + + if dmesgs { + dmesg("%v: %q %#o: ok", origin(1), GoString(pathname), mode) + } + return 0 +} + +// int unlink(const char *pathname); +func Xunlink(t *TLS, pathname uintptr) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v, (%v:)", t, GoString(pathname), origin(2)) + } + if err := unix.Unlink(GoString(pathname)); err != nil { + if dmesgs { + dmesg("%v: %q: %v", origin(1), GoString(pathname), err) + } + t.setErrno(err) + return -1 + } + + if dmesgs { + dmesg("%v: ok", origin(1)) + } + return 0 +} + +// ssize_t readlink(const char *restrict path, char *restrict buf, size_t bufsize); +func Xreadlink(t *TLS, path, buf uintptr, bufsize types.Size_t) types.Ssize_t { + if __ccgo_strace { + trc("t=%v buf=%v bufsize=%v, (%v:)", t, buf, bufsize, origin(2)) + } + var n int + var err error + switch { + case buf == 0 || bufsize == 0: + n, err = unix.Readlink(GoString(path), nil) + default: + n, err = unix.Readlink(GoString(path), (*RawMem)(unsafe.Pointer(buf))[:bufsize:bufsize]) + } + if err != nil { + if dmesgs { + dmesg("%v: %v FAIL", err) + } + t.setErrno(err) + return -1 + } + + if dmesgs { + dmesg("%v: ok") + } + return types.Ssize_t(n) +} + +// int symlink(const char *target, const char *linkpath); +func Xsymlink(t *TLS, target, linkpath uintptr) int32 { + if __ccgo_strace { + trc("t=%v linkpath=%v, (%v:)", t, GoString(linkpath), origin(2)) + } + if err := unix.Symlink(GoString(target), GoString(linkpath)); err != nil { + if dmesgs { + dmesg("%v: %v FAIL", origin(1), err) + } + t.setErrno(err) + return -1 + } + + if dmesgs { + dmesg("%v: ok", origin(1)) + } + return 0 +} + +// int chmod(const char *pathname, mode_t mode) +func Xchmod(t *TLS, pathname uintptr, mode types.Mode_t) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v mode=%v, (%v:)", t, GoString(pathname), mode, origin(2)) + } + if err := unix.Chmod(GoString(pathname), uint32(mode)); err != nil { + if dmesgs { + dmesg("%v: %q %#o: %v FAIL", origin(1), GoString(pathname), mode, err) + } + t.setErrno(err) + return -1 + } + + if dmesgs { + dmesg("%v: %q %#o: ok", origin(1), GoString(pathname), mode) + } + return 0 +} + +// time_t time(time_t *tloc); +func Xtime(t *TLS, tloc uintptr) time.Time_t { + if __ccgo_strace { + trc("t=%v tloc=%v, (%v:)", t, tloc, origin(2)) + } + + var tvs unix.Timeval + err := unix.Gettimeofday(&tvs) + if err != nil { + t.setErrno(err) + return types.Time_t(-1) + } + + if tloc != 0 { + *(*types.Time_t)(unsafe.Pointer(tloc)) = types.Time_t(tvs.Sec) + } + return types.Time_t(tvs.Sec) +} + +// int utimes(const char *filename, const struct timeval times[2]); +func Xutimes(t *TLS, filename, times uintptr) int32 { + if __ccgo_strace { + trc("t=%v filename=%v, times=%v, (%v:)", t, GoString(filename), times, origin(2)) + } + var a []unix.Timeval + if times != 0 { + a = make([]unix.Timeval, 2) + a[0] = *(*unix.Timeval)(unsafe.Pointer(times)) + a[1] = *(*unix.Timeval)(unsafe.Pointer(times + unsafe.Sizeof(unix.Timeval{}))) + } + if err := unix.Utimes(GoString(filename), a); err != nil { + if dmesgs { + dmesg("%v: %v FAIL", origin(1), err) + } + t.setErrno(err) + return -1 + } + + if dmesgs { + dmesg("%v: ok", origin(1)) + } + return 0 +} + +// int fstat(int fd, struct stat *statbuf); +func Xfstat64(t *TLS, fd int32, statbuf uintptr) int32 { + if __ccgo_strace { + trc("t=%v fd=%v statbuf=%v, (%v:)", t, fd, *(*unix.Stat_t)(unsafe.Pointer(statbuf)), origin(2)) + } + if err := unix.Fstat(int(fd), (*unix.Stat_t)(unsafe.Pointer(statbuf))); err != nil { + if dmesgs { + dmesg("%v: fd %d: %v FAIL", origin(1), fd, err) + } + t.setErrno(err) + return -1 + } + + if dmesgs { + dmesg("%v: fd %d: ok", origin(1), fd) + } + return 0 +} + +// off64_t lseek64(int fd, off64_t offset, int whence); +func Xlseek64(t *TLS, fd int32, offset types.Off_t, whence int32) types.Off_t { + if __ccgo_strace { + trc("t=%v fd=%v offset=%v whence=%v, (%v:)", t, fd, offset, whence, origin(2)) + } + n, err := unix.Seek(int(fd), int64(offset), int(whence)) + if err != nil { + if dmesgs { + dmesg("%v: %v FAIL", origin(1), err) + } + t.setErrno(err) + return -1 + } + + if dmesgs { + dmesg("%v: fd %d, offset %#0x, whence %d, ok", origin(1), fd, offset, whence) + } + return types.Off_t(n) +} + +// int fcntl(int fd, int cmd, ... /* arg */ ); +func Xfcntl64(t *TLS, fd, cmd int32, args uintptr) (r int32) { + if __ccgo_strace { + trc("t=%v cmd=%v args=%v, (%v:)", t, cmd, args, origin(2)) + defer func() { trc("-> %v", r) }() + } + var err error + var p uintptr + var i int + switch cmd { + case fcntl.F_GETLK, fcntl.F_SETLK: + p = *(*uintptr)(unsafe.Pointer(args)) + err = unix.FcntlFlock(uintptr(fd), int(cmd), (*unix.Flock_t)(unsafe.Pointer(p))) + case fcntl.F_GETFL: + i, err = unix.FcntlInt(uintptr(fd), int(cmd), 0) + r = int32(i) + case fcntl.F_SETFD, fcntl.F_SETFL: + arg := *(*int32)(unsafe.Pointer(args)) + _, err = unix.FcntlInt(uintptr(fd), int(cmd), int(arg)) + default: + panic(todo("%v: %v %v", origin(1), fd, cmd)) + } + if err != nil { + if dmesgs { + dmesg("%v: fd %v cmd %v p %#x: %v FAIL", origin(1), fcntlCmdStr(fd), cmd, p, err) + } + t.setErrno(err) + return -1 + } + + if dmesgs { + dmesg("%v: %d %s %#x: ok", origin(1), fd, fcntlCmdStr(cmd), p) + } + return r +} + +// int rename(const char *oldpath, const char *newpath); +func Xrename(t *TLS, oldpath, newpath uintptr) int32 { + if __ccgo_strace { + trc("t=%v newpath=%v, (%v:)", t, newpath, origin(2)) + } + if err := unix.Rename(GoString(oldpath), GoString(newpath)); err != nil { + if dmesgs { + dmesg("%v: %v FAIL", origin(1), err) + } + t.setErrno(err) + return -1 + } + + if dmesgs { + dmesg("%v: ok", origin(1)) + } + return 0 +} + +// int mknod(const char *pathname, mode_t mode, dev_t dev); +func Xmknod(t *TLS, pathname uintptr, mode types.Mode_t, dev types.Dev_t) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v mode=%v dev=%v, (%v:)", t, pathname, mode, dev, origin(2)) + } + if err := unix.Mknod(GoString(pathname), uint32(mode), int(dev)); err != nil { + t.setErrno(err) + return -1 + } + + return 0 +} + +// int utime(const char *filename, const struct utimbuf *times); +func Xutime(t *TLS, filename, times uintptr) int32 { + if __ccgo_strace { + trc("t=%v times=%v, (%v:)", t, times, origin(2)) + } + var a []unix.Timeval + if times != 0 { + a = make([]unix.Timeval, 2) + a[0].Sec = (*utime.Utimbuf)(unsafe.Pointer(times)).Factime + a[1].Sec = (*utime.Utimbuf)(unsafe.Pointer(times)).Fmodtime + } + if err := unix.Utimes(GoString(filename), a); err != nil { + if dmesgs { + dmesg("%v: %v FAIL", origin(1), err) + } + t.setErrno(err) + return -1 + } + + if dmesgs { + dmesg("%v: ok", origin(1)) + } + return 0 +} + +// int chown(const char *pathname, uid_t owner, gid_t group); +func Xchown(t *TLS, pathname uintptr, owner types.Uid_t, group types.Gid_t) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v owner=%v group=%v, (%v:)", t, pathname, owner, group, origin(2)) + } + if err := unix.Chown(GoString(pathname), int(owner), int(group)); err != nil { + t.setErrno(err) + return -1 + } + + return 0 +} + +// int link(const char *oldpath, const char *newpath); +func Xlink(t *TLS, oldpath, newpath uintptr) int32 { + if __ccgo_strace { + trc("t=%v newpath=%v, (%v:)", t, newpath, origin(2)) + } + if err := unix.Link(GoString(oldpath), GoString(newpath)); err != nil { + t.setErrno(err) + return -1 + } + return 0 +} + +// int dup2(int oldfd, int newfd); +func Xdup2(t *TLS, oldfd, newfd int32) int32 { + if __ccgo_strace { + trc("t=%v newfd=%v, (%v:)", t, newfd, origin(2)) + } + if err := unix.Dup2(int(oldfd), int(newfd)); err != nil { + t.setErrno(err) + return -1 + } + + return 0 +} + +// unsigned int alarm(unsigned int seconds); +func Xalarm(t *TLS, seconds uint32) uint32 { + if __ccgo_strace { + trc("t=%v seconds=%v, (%v:)", t, seconds, origin(2)) + } + panic("SYS_ALARM not supported") + + /* n, err := unix.Alarm(uint(seconds)) + if err != nil { + t.setErrno(err) + return 0 + } + + return uint32(n) + */ +} + +// int getnameinfo(const struct sockaddr * restrict sa, socklen_t salen, char * restrict host, socklen_t hostlen, char * restrict serv, socklen_t servlen, int flags); +func Xgetnameinfo(tls *TLS, sa1 uintptr, sl socklen_t, node uintptr, nodelen size_t, serv uintptr, servlen size_t, flags int32) int32 { /* getnameinfo.c:125:5: */ + if __ccgo_strace { + trc("tls=%v sa1=%v sl=%v node=%v nodelen=%v serv=%v servlen=%v flags=%v, (%v:)", tls, sa1, sl, node, nodelen, serv, servlen, flags, origin(2)) + } + panic(todo("")) + //TODO bp := tls.Alloc(347) + //TODO defer tls.Free(347) + + //TODO // var ptr [78]int8 at bp, 78 + + //TODO // var buf [256]int8 at bp+78, 256 + + //TODO // var num [13]int8 at bp+334, 13 + + //TODO var af int32 = int32((*sockaddr)(unsafe.Pointer(sa1)).sa_family) + //TODO var a uintptr + //TODO var scopeid uint32 + + //TODO switch af { + //TODO case 2: + //TODO a = (sa1 + 4 /* &.sin_addr */) + //TODO if (uint64(sl) < uint64(unsafe.Sizeof(sockaddr_in{}))) { + //TODO return -6 + //TODO } + //TODO mkptr4(tls, bp /* &ptr[0] */, a) + //TODO scopeid = uint32(0) + //TODO break + //TODO case 10: + //TODO a = (sa1 + 8 /* &.sin6_addr */) + //TODO if (uint64(sl) < uint64(unsafe.Sizeof(sockaddr_in6{}))) { + //TODO return -6 + //TODO } + //TODO if Xmemcmp(tls, a, ts+88 /* "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\xff" */, uint64(12)) != 0 { + //TODO mkptr6(tls, bp /* &ptr[0] */, a) + //TODO } else { + //TODO mkptr4(tls, bp /* &ptr[0] */, (a + uintptr(12))) + //TODO } + //TODO scopeid = (*sockaddr_in6)(unsafe.Pointer(sa1)).sin6_scope_id + //TODO break + //TODO default: + //TODO return -6 + //TODO } + + //TODO if (node != 0) && (nodelen != 0) { + //TODO *(*int8)(unsafe.Pointer(bp + 78 /* &buf[0] */)) = int8(0) + //TODO if !((flags & 0x01) != 0) { + //TODO reverse_hosts(tls, bp+78 /* &buf[0] */, a, scopeid, af) + //TODO } + //TODO if !(int32(*(*int8)(unsafe.Pointer(bp + 78 /* buf */))) != 0) && !((flags & 0x01) != 0) { + //TODO Xabort(tls) //TODO- + //TODO // unsigned char query[18+PTR_MAX], reply[512]; + //TODO // int qlen = __res_mkquery(0, ptr, 1, RR_PTR, + //TODO // 0, 0, 0, query, sizeof query); + //TODO // query[3] = 0; /* don't need AD flag */ + //TODO // int rlen = __res_send(query, qlen, reply, sizeof reply); + //TODO // buf[0] = 0; + //TODO // if (rlen > 0) + //TODO // __dns_parse(reply, rlen, dns_parse_callback, buf); + //TODO } + //TODO if !(int32(*(*int8)(unsafe.Pointer(bp + 78 /* buf */))) != 0) { + //TODO if (flags & 0x08) != 0 { + //TODO return -2 + //TODO } + //TODO Xinet_ntop(tls, af, a, bp+78 /* &buf[0] */, uint32(unsafe.Sizeof([256]int8{}))) + //TODO if scopeid != 0 { + //TODO Xabort(tls) //TODO- + //TODO // char *p = 0, tmp[IF_NAMESIZE+1]; + //TODO // if (!(flags & NI_NUMERICSCOPE) && + //TODO // (IN6_IS_ADDR_LINKLOCAL(a) || + //TODO // IN6_IS_ADDR_MC_LINKLOCAL(a))) + //TODO // p = if_indextoname(scopeid, tmp+1); + //TODO // if (!p) + //TODO // p = itoa(num, scopeid); + //TODO // *--p = '%'; + //TODO // strcat(buf, p); + //TODO } + //TODO } + //TODO if Xstrlen(tls, bp+78 /* &buf[0] */) >= size_t(nodelen) { + //TODO return -12 + //TODO } + //TODO Xstrcpy(tls, node, bp+78 /* &buf[0] */) + //TODO } + + //TODO if (serv != 0) && (servlen != 0) { + //TODO var p uintptr = bp + 78 /* buf */ + //TODO var port int32 = int32(Xntohs(tls, (*sockaddr_in)(unsafe.Pointer(sa1)).sin_port)) + //TODO *(*int8)(unsafe.Pointer(bp + 78 /* &buf[0] */)) = int8(0) + //TODO if !((flags & 0x02) != 0) { + //TODO reverse_services(tls, bp+78 /* &buf[0] */, port, (flags & 0x10)) + //TODO } + //TODO if !(int32(*(*int8)(unsafe.Pointer(p))) != 0) { + //TODO p = itoa(tls, bp+334 /* &num[0] */, uint32(port)) + //TODO } + //TODO if Xstrlen(tls, p) >= size_t(servlen) { + //TODO return -12 + //TODO } + //TODO Xstrcpy(tls, serv, p) + //TODO } + + //TODO return 0 +} + +func Xgethostbyaddr_r(tls *TLS, a uintptr, l socklen_t, af int32, h uintptr, buf uintptr, buflen size_t, res uintptr, err uintptr) int32 { /* gethostbyaddr_r.c:10:5: */ + if __ccgo_strace { + trc("tls=%v a=%v l=%v af=%v h=%v buf=%v buflen=%v res=%v err=%v, (%v:)", tls, a, l, af, h, buf, buflen, res, err, origin(2)) + } + panic(todo("")) + //TODO bp := tls.Alloc(28) + //TODO defer tls.Free(28) + + //TODO //TODO union { + //TODO //TODO struct sockaddr_in sin; + //TODO //TODO struct sockaddr_in6 sin6; + //TODO //TODO } sa = { .sin.sin_family = af }; + //TODO *(*struct { + //TODO sin sockaddr_in + //TODO _ [12]byte + //TODO })(unsafe.Pointer(bp /* sa1 */)) = struct { + //TODO sin sockaddr_in + //TODO _ [12]byte + //TODO }{} //TODO- + //TODO (*sockaddr_in)(unsafe.Pointer(bp /* &sa1 */)).sin_family = sa_family_t(af) //TODO- + //TODO var sl socklen_t + //TODO if af == 10 { + //TODO sl = uint32(unsafe.Sizeof(sockaddr_in6{})) + //TODO } else { + //TODO sl = uint32(unsafe.Sizeof(sockaddr_in{})) + //TODO } + //TODO var i int32 + + //TODO *(*uintptr)(unsafe.Pointer(res)) = uintptr(0) + + //TODO // Load address argument into sockaddr structure + //TODO if (af == 10) && (l == socklen_t(16)) { + //TODO Xmemcpy(tls, (bp /* &sa1 */ /* &.sin6 */ + 8 /* &.sin6_addr */), a, uint64(16)) + //TODO } else if (af == 2) && (l == socklen_t(4)) { + //TODO Xmemcpy(tls, (bp /* &sa1 */ /* &.sin */ + 4 /* &.sin_addr */), a, uint64(4)) + //TODO } else { + //TODO *(*int32)(unsafe.Pointer(err)) = 3 + //TODO return 22 + //TODO } + + //TODO // Align buffer and check for space for pointers and ip address + //TODO i = (int32(uintptr_t(buf) & (uint64(unsafe.Sizeof(uintptr(0))) - uint64(1)))) + //TODO if !(i != 0) { + //TODO i = int32(unsafe.Sizeof(uintptr(0))) + //TODO } + //TODO if buflen <= (((uint64(5) * uint64(unsafe.Sizeof(uintptr(0)))) - uint64(i)) + uint64(l)) { + //TODO return 34 + //TODO } + //TODO buf += (uintptr(uint64(unsafe.Sizeof(uintptr(0))) - uint64(i))) + //TODO buflen = buflen - (((uint64(5) * uint64(unsafe.Sizeof(uintptr(0)))) - uint64(i)) + uint64(l)) + + //TODO (*hostent)(unsafe.Pointer(h)).h_addr_list = buf + //TODO buf += (uintptr(uint64(2) * uint64(unsafe.Sizeof(uintptr(0))))) + //TODO (*hostent)(unsafe.Pointer(h)).h_aliases = buf + //TODO buf += (uintptr(uint64(2) * uint64(unsafe.Sizeof(uintptr(0))))) + + //TODO *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_addr_list)) = buf + //TODO Xmemcpy(tls, *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_addr_list)), a, uint64(l)) + //TODO buf += uintptr(l) + //TODO *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_addr_list + 1*8)) = uintptr(0) + //TODO *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_aliases)) = buf + //TODO *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_aliases + 1*8)) = uintptr(0) + + //TODO switch Xgetnameinfo(tls, bp /* &sa1 */, sl, buf, uint32(buflen), uintptr(0), uint32(0), 0) { + //TODO case -3: + //TODO *(*int32)(unsafe.Pointer(err)) = 2 + //TODO return 11 + //TODO case -12: + //TODO return 34 + //TODO default: + //TODO fallthrough + //TODO case -10: + //TODO fallthrough + //TODO case -11: + //TODO fallthrough + //TODO case -4: + //TODO *(*int32)(unsafe.Pointer(err)) = 3 + //TODO return *(*int32)(unsafe.Pointer(X___errno_location(tls))) + //TODO case 0: + //TODO break + //TODO } + + //TODO (*hostent)(unsafe.Pointer(h)).h_addrtype = af + //TODO (*hostent)(unsafe.Pointer(h)).h_length = int32(l) + //TODO (*hostent)(unsafe.Pointer(h)).h_name = *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_aliases)) + //TODO *(*uintptr)(unsafe.Pointer(res)) = h + //TODO return 0 +} + +// int getrlimit(int resource, struct rlimit *rlim); +func Xgetrlimit64(t *TLS, resource int32, rlim uintptr) int32 { + if __ccgo_strace { + trc("t=%v resource=%v rlim=%v, (%v:)", t, resource, rlim, origin(2)) + } + if err := unix.Getrlimit(int(resource), (*unix.Rlimit)(unsafe.Pointer(rlim))); err != nil { + t.setErrno(err) + return -1 + } + + return 0 +} + +func newFtsent(t *TLS, info int, path string, stat *unix.Stat_t, err syscallErrno) (r *fts.FTSENT) { + var statp uintptr + if stat != nil { + statp = Xmalloc(t, types.Size_t(unsafe.Sizeof(unix.Stat_t{}))) + if statp == 0 { + panic("OOM") + } + + *(*unix.Stat_t)(unsafe.Pointer(statp)) = *stat + } + csp, errx := CString(path) + if errx != nil { + panic("OOM") + } + + return &fts.FTSENT{ + Ffts_info: uint16(info), + Ffts_path: csp, + Ffts_pathlen: types.Size_t(len(path)), + Ffts_statp: statp, + Ffts_errno: int32(err), + } +} + +// DIR *opendir(const char *name); +func Xopendir(t *TLS, name uintptr) uintptr { + if __ccgo_strace { + trc("t=%v name=%v, (%v:)", t, name, origin(2)) + } + p := Xmalloc(t, types.Size_t(unsafe.Sizeof(darwinDir{}))) + if p == 0 { + panic("OOM") + } + + fd := int(Xopen(t, name, fcntl.O_RDONLY|fcntl.O_DIRECTORY|fcntl.O_CLOEXEC, 0)) + if fd < 0 { + if dmesgs { + dmesg("%v: FAIL %v", origin(1), (*darwinDir)(unsafe.Pointer(p)).fd) + } + Xfree(t, p) + return 0 + } + + if dmesgs { + dmesg("%v: ok", origin(1)) + } + (*darwinDir)(unsafe.Pointer(p)).fd = fd + (*darwinDir)(unsafe.Pointer(p)).h = 0 + (*darwinDir)(unsafe.Pointer(p)).l = 0 + (*darwinDir)(unsafe.Pointer(p)).eof = false + return p +} + +func Xrewinddir(tls *TLS, f uintptr) { + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } + Xfseek(tls, f, 0, stdio.SEEK_SET) +} + +// clock_t clock(void); +func Xclock(t *TLS) time.Clock_t { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } + return time.Clock_t(gotime.Since(startTime) * gotime.Duration(time.CLOCKS_PER_SEC) / gotime.Second) +} + +// ssize_t recvmsg(int sockfd, struct msghdr *msg, int flags); +func Xrecvmsg(t *TLS, sockfd int32, msg uintptr, flags int32) types.Ssize_t { + if __ccgo_strace { + trc("t=%v sockfd=%v msg=%v flags=%v, (%v:)", t, sockfd, msg, flags, origin(2)) + } + oob := []byte{} + buf := []byte{} + + n, _, _, _, err := unix.Recvmsg(int(sockfd), buf, oob, int(flags)) + if err != nil { + t.setErrno(err) + return -1 + } + copy((*RawMem)(unsafe.Pointer(msg))[:n:n], buf[:]) + + return types.Ssize_t(n) +} + +func AtomicLoadNUint8(ptr uintptr, memorder int32) uint8 { + return byte(a_load_8(ptr)) +} diff --git a/vendor/modernc.org/libc/libc_openbsd_386.go b/vendor/modernc.org/libc/libc_openbsd_386.go index 8c30e7b5a..13cc9df5a 100644 --- a/vendor/modernc.org/libc/libc_openbsd_386.go +++ b/vendor/modernc.org/libc/libc_openbsd_386.go @@ -4,628 +4,7 @@ package libc // import "modernc.org/libc" -import ( - "strings" - "syscall" - "unsafe" - - "golang.org/x/sys/unix" - "modernc.org/libc/fcntl" - "modernc.org/libc/fts" - "modernc.org/libc/sys/types" - "modernc.org/libc/time" - "modernc.org/libc/utime" -) - type ( long = int32 ulong = uint32 ) - -// int sigaction(int signum, const struct sigaction *act, struct sigaction *oldact); -func Xsigaction(t *TLS, signum int32, act, oldact uintptr) int32 { - if _, _, err := unix.Syscall(unix.SYS_SIGACTION, uintptr(signum), act, oldact); err != 0 { - t.setErrno(err) - return -1 - } - - return 0 -} - -// FILE *fopen64(const char *pathname, const char *mode); -func Xfopen64(t *TLS, pathname, mode uintptr) uintptr { - m := strings.ReplaceAll(GoString(mode), "b", "") - var flags int - switch m { - case "r": - flags = fcntl.O_RDONLY - case "r+": - flags = fcntl.O_RDWR - case "w": - flags = fcntl.O_WRONLY | fcntl.O_CREAT | fcntl.O_TRUNC - case "w+": - flags = fcntl.O_RDWR | fcntl.O_CREAT | fcntl.O_TRUNC - case "a": - flags = fcntl.O_WRONLY | fcntl.O_CREAT | fcntl.O_APPEND - case "a+": - flags = fcntl.O_RDWR | fcntl.O_CREAT | fcntl.O_APPEND - default: - panic(m) - } - fd, err := unix.Open(GoString(pathname), int(flags), 0666) - if err != nil { - if dmesgs { - dmesg("%v: %q %q: %v FAIL", origin(1), GoString(pathname), GoString(mode), err) - } - t.setErrno(err) - return 0 - } - - if dmesgs { - dmesg("%v: %q %q: fd %v", origin(1), GoString(pathname), GoString(mode), fd) - } - if p := newFile(t, int32(fd)); p != 0 { - return p - } - - panic("OOM") -} - -// int lstat(const char *pathname, struct stat *statbuf); -func Xlstat64(t *TLS, pathname, statbuf uintptr) int32 { - if err := unix.Lstat(GoString(pathname), (*unix.Stat_t)(unsafe.Pointer(statbuf))); err != nil { - if dmesgs { - dmesg("%v: %q: %v FAIL", origin(1), GoString(pathname), err) - } - t.setErrno(err) - return -1 - } - - if dmesgs { - dmesg("%v: %q: ok", origin(1), GoString(pathname)) - } - return 0 -} - -// int stat(const char *pathname, struct stat *statbuf); -func Xstat64(t *TLS, pathname, statbuf uintptr) int32 { - if err := unix.Stat(GoString(pathname), (*unix.Stat_t)(unsafe.Pointer(statbuf))); err != nil { - if dmesgs { - dmesg("%v: %q: %v FAIL", origin(1), GoString(pathname), err) - } - t.setErrno(err) - return -1 - } - - if dmesgs { - dmesg("%v: %q: ok", origin(1), GoString(pathname)) - } - return 0 -} - -// int mkdir(const char *path, mode_t mode); -func Xmkdir(t *TLS, path uintptr, mode types.Mode_t) int32 { - if err := unix.Mkdir(GoString(path), uint32(mode)); err != nil { - if dmesgs { - dmesg("%v: %q: %v FAIL", origin(1), GoString(path), err) - } - t.setErrno(err) - return -1 - } - - if dmesgs { - dmesg("%v: %q: ok", origin(1), GoString(path)) - } - return 0 -} - -// int access(const char *pathname, int mode); -func Xaccess(t *TLS, pathname uintptr, mode int32) int32 { - if err := unix.Access(GoString(pathname), uint32(mode)); err != nil { - if dmesgs { - dmesg("%v: %q %#o: %v FAIL", origin(1), GoString(pathname), mode, err) - } - t.setErrno(err) - return -1 - } - - if dmesgs { - dmesg("%v: %q %#o: ok", origin(1), GoString(pathname), mode) - } - return 0 -} - -// int unlink(const char *pathname); -func Xunlink(t *TLS, pathname uintptr) int32 { - if err := unix.Unlink(GoString(pathname)); err != nil { - if dmesgs { - dmesg("%v: %q: %v", origin(1), GoString(pathname), err) - } - t.setErrno(err) - return -1 - } - - if dmesgs { - dmesg("%v: ok", origin(1)) - } - return 0 -} - -// ssize_t readlink(const char *restrict path, char *restrict buf, size_t bufsize); -func Xreadlink(t *TLS, path, buf uintptr, bufsize types.Size_t) types.Ssize_t { - var n int - var err error - switch { - case buf == 0 || bufsize == 0: - n, err = unix.Readlink(GoString(path), nil) - default: - n, err = unix.Readlink(GoString(path), (*RawMem)(unsafe.Pointer(buf))[:bufsize:bufsize]) - } - if err != nil { - if dmesgs { - dmesg("%v: %v FAIL", err) - } - t.setErrno(err) - return -1 - } - - if dmesgs { - dmesg("%v: ok") - } - return types.Ssize_t(n) -} - -// int symlink(const char *target, const char *linkpath); -func Xsymlink(t *TLS, target, linkpath uintptr) int32 { - if err := unix.Symlink(GoString(target), GoString(linkpath)); err != nil { - if dmesgs { - dmesg("%v: %v FAIL", origin(1), err) - } - t.setErrno(err) - return -1 - } - - if dmesgs { - dmesg("%v: ok", origin(1)) - } - return 0 -} - -// int chmod(const char *pathname, mode_t mode) -func Xchmod(t *TLS, pathname uintptr, mode types.Mode_t) int32 { - if err := unix.Chmod(GoString(pathname), uint32(mode)); err != nil { - if dmesgs { - dmesg("%v: %q %#o: %v FAIL", origin(1), GoString(pathname), mode, err) - } - t.setErrno(err) - return -1 - } - - if dmesgs { - dmesg("%v: %q %#o: ok", origin(1), GoString(pathname), mode) - } - return 0 -} - -// time_t time(time_t *tloc); -func Xtime(t *TLS, tloc uintptr) time.Time_t { - panic(todo("")) - // n := time.Now().UTC().Unix() - // if tloc != 0 { - // *(*types.Time_t)(unsafe.Pointer(tloc)) = types.Time_t(n) - // } - // return types.Time_t(n) -} - -// int utimes(const char *filename, const struct timeval times[2]); -func Xutimes(t *TLS, filename, times uintptr) int32 { - var a []unix.Timeval - if times != 0 { - a = make([]unix.Timeval, 2) - a[0] = *(*unix.Timeval)(unsafe.Pointer(times)) - a[1] = *(*unix.Timeval)(unsafe.Pointer(times + unsafe.Sizeof(unix.Timeval{}))) - } - if err := unix.Utimes(GoString(filename), a); err != nil { - if dmesgs { - dmesg("%v: %v FAIL", origin(1), err) - } - t.setErrno(err) - return -1 - } - - if dmesgs { - dmesg("%v: ok", origin(1)) - } - return 0 -} - -// int fstat(int fd, struct stat *statbuf); -func Xfstat64(t *TLS, fd int32, statbuf uintptr) int32 { - if err := unix.Fstat(int(fd), (*unix.Stat_t)(unsafe.Pointer(statbuf))); err != nil { - if dmesgs { - dmesg("%v: fd %d: %v FAIL", origin(1), fd, err) - } - t.setErrno(err) - return -1 - } - - if dmesgs { - dmesg("%v: fd %d: ok", origin(1), fd) - } - return 0 -} - -// off64_t lseek64(int fd, off64_t offset, int whence); -func Xlseek64(t *TLS, fd int32, offset types.Off_t, whence int32) types.Off_t { - n, err := unix.Seek(int(fd), int64(offset), int(whence)) - if err != nil { - if dmesgs { - dmesg("%v: %v FAIL", origin(1), err) - } - t.setErrno(err) - return -1 - } - - if dmesgs { - dmesg("%v: ok", origin(1)) - } - return types.Off_t(n) -} - -func Xfcntl64(t *TLS, fd, cmd int32, args uintptr) int32 { - var arg uintptr - if args != 0 { - arg = *(*uintptr)(unsafe.Pointer(args)) - } - n, _, err := unix.Syscall(unix.SYS_FCNTL, uintptr(fd), uintptr(cmd), arg) - if err != 0 { - if dmesgs { - dmesg("%v: fd %v cmd %v", origin(1), fcntlCmdStr(fd), cmd) - } - t.setErrno(err) - return -1 - } - - if dmesgs { - dmesg("%v: %d %s %#x: %d", origin(1), fd, fcntlCmdStr(cmd), arg, n) - } - return int32(n) -} - -// int rename(const char *oldpath, const char *newpath); -func Xrename(t *TLS, oldpath, newpath uintptr) int32 { - if err := unix.Rename(GoString(oldpath), GoString(newpath)); err != nil { - if dmesgs { - dmesg("%v: %v FAIL", origin(1), err) - } - t.setErrno(err) - return -1 - } - - if dmesgs { - dmesg("%v: ok", origin(1)) - } - return 0 -} - -// int mknod(const char *pathname, mode_t mode, dev_t dev); -func Xmknod(t *TLS, pathname uintptr, mode types.Mode_t, dev types.Dev_t) int32 { - panic(todo("")) - // if _, _, err := unix.Syscall(unix.SYS_MKNOD, pathname, uintptr(mode), uintptr(dev)); err != 0 { - // t.setErrno(err) - // return -1 - // } - - // return 0 -} - -// int utime(const char *filename, const struct utimbuf *times); -func Xutime(t *TLS, filename, times uintptr) int32 { - var a []unix.Timeval - if times != 0 { - a = make([]unix.Timeval, 2) - a[0].Sec = int64((*utime.Utimbuf)(unsafe.Pointer(times)).Factime) - a[1].Sec = int64((*utime.Utimbuf)(unsafe.Pointer(times)).Fmodtime) - } - if err := unix.Utimes(GoString(filename), a); err != nil { - if dmesgs { - dmesg("%v: %v FAIL", origin(1), err) - } - t.setErrno(err) - return -1 - } - - if dmesgs { - dmesg("%v: ok", origin(1)) - } - return 0 -} - -// int chown(const char *pathname, uid_t owner, gid_t group); -func Xchown(t *TLS, pathname uintptr, owner types.Uid_t, group types.Gid_t) int32 { - if _, _, err := unix.Syscall(unix.SYS_CHOWN, pathname, uintptr(owner), uintptr(group)); err != 0 { - t.setErrno(err) - return -1 - } - - return 0 -} - -// int link(const char *oldpath, const char *newpath); -func Xlink(t *TLS, oldpath, newpath uintptr) int32 { - panic(todo("")) - // if _, _, err := unix.Syscall(unix.SYS_LINK, oldpath, newpath, 0); err != 0 { - // t.setErrno(err) - // return -1 - // } - - // return 0 -} - -// int dup2(int oldfd, int newfd); -func Xdup2(t *TLS, oldfd, newfd int32) int32 { - panic(todo("")) - // n, _, err := unix.Syscall(unix.SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0) - // if err != 0 { - // t.setErrno(err) - // return -1 - // } - - // return int32(n) -} - -// unsigned int alarm(unsigned int seconds); -func Xalarm(t *TLS, seconds uint32) uint32 { - panic(todo("")) - // n, _, err := unix.Syscall(unix.SYS_ALARM, uintptr(seconds), 0, 0) - // if err != 0 { - // panic(todo("")) - // } - - // return uint32(n) -} - -func Xgetnameinfo(tls *TLS, sa1 uintptr, sl socklen_t, node uintptr, nodelen size_t, serv uintptr, servlen size_t, flags int32) int32 { /* getnameinfo.c:125:5: */ - panic(todo("")) - //TODO bp := tls.Alloc(347) - //TODO defer tls.Free(347) - - //TODO // var ptr [78]int8 at bp, 78 - - //TODO // var buf [256]int8 at bp+78, 256 - - //TODO // var num [13]int8 at bp+334, 13 - - //TODO var af int32 = int32((*sockaddr)(unsafe.Pointer(sa1)).sa_family) - //TODO var a uintptr - //TODO var scopeid uint32 - - //TODO switch af { - //TODO case 2: - //TODO a = (sa1 + 4 /* &.sin_addr */) - //TODO if (uint64(sl) < uint64(unsafe.Sizeof(sockaddr_in{}))) { - //TODO return -6 - //TODO } - //TODO mkptr4(tls, bp /* &ptr[0] */, a) - //TODO scopeid = uint32(0) - //TODO break - //TODO case 10: - //TODO a = (sa1 + 8 /* &.sin6_addr */) - //TODO if (uint64(sl) < uint64(unsafe.Sizeof(sockaddr_in6{}))) { - //TODO return -6 - //TODO } - //TODO if Xmemcmp(tls, a, ts+88 /* "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\xff" */, uint64(12)) != 0 { - //TODO mkptr6(tls, bp /* &ptr[0] */, a) - //TODO } else { - //TODO mkptr4(tls, bp /* &ptr[0] */, (a + uintptr(12))) - //TODO } - //TODO scopeid = (*sockaddr_in6)(unsafe.Pointer(sa1)).sin6_scope_id - //TODO break - //TODO default: - //TODO return -6 - //TODO } - - //TODO if (node != 0) && (nodelen != 0) { - //TODO *(*int8)(unsafe.Pointer(bp + 78 /* &buf[0] */)) = int8(0) - //TODO if !((flags & 0x01) != 0) { - //TODO reverse_hosts(tls, bp+78 /* &buf[0] */, a, scopeid, af) - //TODO } - //TODO if !(int32(*(*int8)(unsafe.Pointer(bp + 78 /* buf */))) != 0) && !((flags & 0x01) != 0) { - //TODO Xabort(tls) //TODO- - //TODO // unsigned char query[18+PTR_MAX], reply[512]; - //TODO // int qlen = __res_mkquery(0, ptr, 1, RR_PTR, - //TODO // 0, 0, 0, query, sizeof query); - //TODO // query[3] = 0; /* don't need AD flag */ - //TODO // int rlen = __res_send(query, qlen, reply, sizeof reply); - //TODO // buf[0] = 0; - //TODO // if (rlen > 0) - //TODO // __dns_parse(reply, rlen, dns_parse_callback, buf); - //TODO } - //TODO if !(int32(*(*int8)(unsafe.Pointer(bp + 78 /* buf */))) != 0) { - //TODO if (flags & 0x08) != 0 { - //TODO return -2 - //TODO } - //TODO Xinet_ntop(tls, af, a, bp+78 /* &buf[0] */, uint32(unsafe.Sizeof([256]int8{}))) - //TODO if scopeid != 0 { - //TODO Xabort(tls) //TODO- - //TODO // char *p = 0, tmp[IF_NAMESIZE+1]; - //TODO // if (!(flags & NI_NUMERICSCOPE) && - //TODO // (IN6_IS_ADDR_LINKLOCAL(a) || - //TODO // IN6_IS_ADDR_MC_LINKLOCAL(a))) - //TODO // p = if_indextoname(scopeid, tmp+1); - //TODO // if (!p) - //TODO // p = itoa(num, scopeid); - //TODO // *--p = '%'; - //TODO // strcat(buf, p); - //TODO } - //TODO } - //TODO if Xstrlen(tls, bp+78 /* &buf[0] */) >= size_t(nodelen) { - //TODO return -12 - //TODO } - //TODO Xstrcpy(tls, node, bp+78 /* &buf[0] */) - //TODO } - - //TODO if (serv != 0) && (servlen != 0) { - //TODO var p uintptr = bp + 78 /* buf */ - //TODO var port int32 = int32(Xntohs(tls, (*sockaddr_in)(unsafe.Pointer(sa1)).sin_port)) - //TODO *(*int8)(unsafe.Pointer(bp + 78 /* &buf[0] */)) = int8(0) - //TODO if !((flags & 0x02) != 0) { - //TODO reverse_services(tls, bp+78 /* &buf[0] */, port, (flags & 0x10)) - //TODO } - //TODO if !(int32(*(*int8)(unsafe.Pointer(p))) != 0) { - //TODO p = itoa(tls, bp+334 /* &num[0] */, uint32(port)) - //TODO } - //TODO if Xstrlen(tls, p) >= size_t(servlen) { - //TODO return -12 - //TODO } - //TODO Xstrcpy(tls, serv, p) - //TODO } - - //TODO return 0 -} - -func Xgethostbyaddr_r(tls *TLS, a uintptr, l socklen_t, af int32, h uintptr, buf uintptr, buflen size_t, res uintptr, err uintptr) int32 { /* gethostbyaddr_r.c:10:5: */ - panic(todo("")) - //TODO bp := tls.Alloc(28) - //TODO defer tls.Free(28) - - //TODO //TODO union { - //TODO //TODO struct sockaddr_in sin; - //TODO //TODO struct sockaddr_in6 sin6; - //TODO //TODO } sa = { .sin.sin_family = af }; - //TODO *(*struct { - //TODO sin sockaddr_in - //TODO _ [12]byte - //TODO })(unsafe.Pointer(bp /* sa1 */)) = struct { - //TODO sin sockaddr_in - //TODO _ [12]byte - //TODO }{} //TODO- - //TODO (*sockaddr_in)(unsafe.Pointer(bp /* &sa1 */)).sin_family = sa_family_t(af) //TODO- - //TODO var sl socklen_t - //TODO if af == 10 { - //TODO sl = uint32(unsafe.Sizeof(sockaddr_in6{})) - //TODO } else { - //TODO sl = uint32(unsafe.Sizeof(sockaddr_in{})) - //TODO } - //TODO var i int32 - - //TODO *(*uintptr)(unsafe.Pointer(res)) = uintptr(0) - - //TODO // Load address argument into sockaddr structure - //TODO if (af == 10) && (l == socklen_t(16)) { - //TODO Xmemcpy(tls, (bp /* &sa1 */ /* &.sin6 */ + 8 /* &.sin6_addr */), a, uint64(16)) - //TODO } else if (af == 2) && (l == socklen_t(4)) { - //TODO Xmemcpy(tls, (bp /* &sa1 */ /* &.sin */ + 4 /* &.sin_addr */), a, uint64(4)) - //TODO } else { - //TODO *(*int32)(unsafe.Pointer(err)) = 3 - //TODO return 22 - //TODO } - - //TODO // Align buffer and check for space for pointers and ip address - //TODO i = (int32(uintptr_t(buf) & (uint64(unsafe.Sizeof(uintptr(0))) - uint64(1)))) - //TODO if !(i != 0) { - //TODO i = int32(unsafe.Sizeof(uintptr(0))) - //TODO } - //TODO if buflen <= (((uint64(5) * uint64(unsafe.Sizeof(uintptr(0)))) - uint64(i)) + uint64(l)) { - //TODO return 34 - //TODO } - //TODO buf += (uintptr(uint64(unsafe.Sizeof(uintptr(0))) - uint64(i))) - //TODO buflen = buflen - (((uint64(5) * uint64(unsafe.Sizeof(uintptr(0)))) - uint64(i)) + uint64(l)) - - //TODO (*hostent)(unsafe.Pointer(h)).h_addr_list = buf - //TODO buf += (uintptr(uint64(2) * uint64(unsafe.Sizeof(uintptr(0))))) - //TODO (*hostent)(unsafe.Pointer(h)).h_aliases = buf - //TODO buf += (uintptr(uint64(2) * uint64(unsafe.Sizeof(uintptr(0))))) - - //TODO *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_addr_list)) = buf - //TODO Xmemcpy(tls, *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_addr_list)), a, uint64(l)) - //TODO buf += uintptr(l) - //TODO *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_addr_list + 1*8)) = uintptr(0) - //TODO *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_aliases)) = buf - //TODO *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_aliases + 1*8)) = uintptr(0) - - //TODO switch Xgetnameinfo(tls, bp /* &sa1 */, sl, buf, uint32(buflen), uintptr(0), uint32(0), 0) { - //TODO case -3: - //TODO *(*int32)(unsafe.Pointer(err)) = 2 - //TODO return 11 - //TODO case -12: - //TODO return 34 - //TODO default: - //TODO fallthrough - //TODO case -10: - //TODO fallthrough - //TODO case -11: - //TODO fallthrough - //TODO case -4: - //TODO *(*int32)(unsafe.Pointer(err)) = 3 - //TODO return *(*int32)(unsafe.Pointer(X___errno_location(tls))) - //TODO case 0: - //TODO break - //TODO } - - //TODO (*hostent)(unsafe.Pointer(h)).h_addrtype = af - //TODO (*hostent)(unsafe.Pointer(h)).h_length = int32(l) - //TODO (*hostent)(unsafe.Pointer(h)).h_name = *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_aliases)) - //TODO *(*uintptr)(unsafe.Pointer(res)) = h - //TODO return 0 -} - -// int getrlimit(int resource, struct rlimit *rlim); -func Xgetrlimit64(t *TLS, resource int32, rlim uintptr) int32 { - if _, _, err := unix.Syscall(unix.SYS_GETRLIMIT, uintptr(resource), uintptr(rlim), 0); err != 0 { - t.setErrno(err) - return -1 - } - - return 0 -} - -func newFtsent(t *TLS, info int, path string, stat *unix.Stat_t, err syscall.Errno) (r *fts.FTSENT) { - var statp uintptr - if stat != nil { - statp = Xmalloc(t, types.Size_t(unsafe.Sizeof(unix.Stat_t{}))) - if statp == 0 { - panic("OOM") - } - - *(*unix.Stat_t)(unsafe.Pointer(statp)) = *stat - } - csp, errx := CString(path) - if errx != nil { - panic("OOM") - } - - return &fts.FTSENT{ - Ffts_info: uint16(info), - Ffts_path: csp, - Ffts_pathlen: uint32(len(path)), - Ffts_statp: statp, - Ffts_errno: int32(err), - } -} - -// DIR *opendir(const char *name); -func Xopendir(t *TLS, name uintptr) uintptr { - p := Xmalloc(t, uint32(unsafe.Sizeof(darwinDir{}))) - if p == 0 { - panic("OOM") - } - - fd := int(Xopen(t, name, fcntl.O_RDONLY|fcntl.O_DIRECTORY|fcntl.O_CLOEXEC, 0)) - if fd < 0 { - if dmesgs { - dmesg("%v: FAIL %v", origin(1), (*darwinDir)(unsafe.Pointer(p)).fd) - } - Xfree(t, p) - return 0 - } - - if dmesgs { - dmesg("%v: ok", origin(1)) - } - (*darwinDir)(unsafe.Pointer(p)).fd = fd - (*darwinDir)(unsafe.Pointer(p)).h = 0 - (*darwinDir)(unsafe.Pointer(p)).l = 0 - (*darwinDir)(unsafe.Pointer(p)).eof = false - return p -} diff --git a/vendor/modernc.org/libc/libc_openbsd_amd64.go b/vendor/modernc.org/libc/libc_openbsd_amd64.go index 8843f989b..5fdfcb101 100644 --- a/vendor/modernc.org/libc/libc_openbsd_amd64.go +++ b/vendor/modernc.org/libc/libc_openbsd_amd64.go @@ -4,630 +4,7 @@ package libc // import "modernc.org/libc" -import ( - "strings" - "syscall" - "unsafe" - - "golang.org/x/sys/unix" - "modernc.org/libc/fcntl" - "modernc.org/libc/fts" - "modernc.org/libc/sys/types" - "modernc.org/libc/time" - "modernc.org/libc/utime" -) - type ( long = int64 ulong = uint64 ) - -// int sigaction(int signum, const struct sigaction *act, struct sigaction *oldact); -func Xsigaction(t *TLS, signum int32, act, oldact uintptr) int32 { - panic(todo("")) - // if _, _, err := unix.Syscall(unix.SYS_SIGACTION, uintptr(signum), act, oldact); err != 0 { - // t.setErrno(err) - // return -1 - // } - - // return 0 -} - -// FILE *fopen64(const char *pathname, const char *mode); -func Xfopen64(t *TLS, pathname, mode uintptr) uintptr { - m := strings.ReplaceAll(GoString(mode), "b", "") - var flags int - switch m { - case "r": - flags = fcntl.O_RDONLY - case "r+": - flags = fcntl.O_RDWR - case "w": - flags = fcntl.O_WRONLY | fcntl.O_CREAT | fcntl.O_TRUNC - case "w+": - flags = fcntl.O_RDWR | fcntl.O_CREAT | fcntl.O_TRUNC - case "a": - flags = fcntl.O_WRONLY | fcntl.O_CREAT | fcntl.O_APPEND - case "a+": - flags = fcntl.O_RDWR | fcntl.O_CREAT | fcntl.O_APPEND - default: - panic(m) - } - fd, err := unix.Open(GoString(pathname), int(flags), 0666) - if err != nil { - if dmesgs { - dmesg("%v: %q %q: %v FAIL", origin(1), GoString(pathname), GoString(mode), err) - } - t.setErrno(err) - return 0 - } - - if dmesgs { - dmesg("%v: %q %q: fd %v", origin(1), GoString(pathname), GoString(mode), fd) - } - if p := newFile(t, int32(fd)); p != 0 { - return p - } - - panic("OOM") -} - -// int lstat(const char *pathname, struct stat *statbuf); -func Xlstat64(t *TLS, pathname, statbuf uintptr) int32 { - if err := unix.Lstat(GoString(pathname), (*unix.Stat_t)(unsafe.Pointer(statbuf))); err != nil { - if dmesgs { - dmesg("%v: %q: %v FAIL", origin(1), GoString(pathname), err) - } - t.setErrno(err) - return -1 - } - - if dmesgs { - dmesg("%v: %q: ok", origin(1), GoString(pathname)) - } - return 0 -} - -// int stat(const char *pathname, struct stat *statbuf); -func Xstat64(t *TLS, pathname, statbuf uintptr) int32 { - if err := unix.Stat(GoString(pathname), (*unix.Stat_t)(unsafe.Pointer(statbuf))); err != nil { - if dmesgs { - dmesg("%v: %q: %v FAIL", origin(1), GoString(pathname), err) - } - t.setErrno(err) - return -1 - } - - if dmesgs { - dmesg("%v: %q: ok", origin(1), GoString(pathname)) - } - return 0 -} - -// int mkdir(const char *path, mode_t mode); -func Xmkdir(t *TLS, path uintptr, mode types.Mode_t) int32 { - if err := unix.Mkdir(GoString(path), uint32(mode)); err != nil { - if dmesgs { - dmesg("%v: %q: %v FAIL", origin(1), GoString(path), err) - } - t.setErrno(err) - return -1 - } - - if dmesgs { - dmesg("%v: %q: ok", origin(1), GoString(path)) - } - return 0 -} - -// int access(const char *pathname, int mode); -func Xaccess(t *TLS, pathname uintptr, mode int32) int32 { - if err := unix.Access(GoString(pathname), uint32(mode)); err != nil { - if dmesgs { - dmesg("%v: %q %#o: %v FAIL", origin(1), GoString(pathname), mode, err) - } - t.setErrno(err) - return -1 - } - - if dmesgs { - dmesg("%v: %q %#o: ok", origin(1), GoString(pathname), mode) - } - return 0 -} - -// int unlink(const char *pathname); -func Xunlink(t *TLS, pathname uintptr) int32 { - if err := unix.Unlink(GoString(pathname)); err != nil { - if dmesgs { - dmesg("%v: %q: %v", origin(1), GoString(pathname), err) - } - t.setErrno(err) - return -1 - } - - if dmesgs { - dmesg("%v: ok", origin(1)) - } - return 0 -} - -// ssize_t readlink(const char *restrict path, char *restrict buf, size_t bufsize); -func Xreadlink(t *TLS, path, buf uintptr, bufsize types.Size_t) types.Ssize_t { - var n int - var err error - switch { - case buf == 0 || bufsize == 0: - n, err = unix.Readlink(GoString(path), nil) - default: - n, err = unix.Readlink(GoString(path), (*RawMem)(unsafe.Pointer(buf))[:bufsize:bufsize]) - } - if err != nil { - if dmesgs { - dmesg("%v: %v FAIL", err) - } - t.setErrno(err) - return -1 - } - - if dmesgs { - dmesg("%v: ok") - } - return types.Ssize_t(n) -} - -// int symlink(const char *target, const char *linkpath); -func Xsymlink(t *TLS, target, linkpath uintptr) int32 { - if err := unix.Symlink(GoString(target), GoString(linkpath)); err != nil { - if dmesgs { - dmesg("%v: %v FAIL", origin(1), err) - } - t.setErrno(err) - return -1 - } - - if dmesgs { - dmesg("%v: ok", origin(1)) - } - return 0 -} - -// int chmod(const char *pathname, mode_t mode) -func Xchmod(t *TLS, pathname uintptr, mode types.Mode_t) int32 { - if err := unix.Chmod(GoString(pathname), uint32(mode)); err != nil { - if dmesgs { - dmesg("%v: %q %#o: %v FAIL", origin(1), GoString(pathname), mode, err) - } - t.setErrno(err) - return -1 - } - - if dmesgs { - dmesg("%v: %q %#o: ok", origin(1), GoString(pathname), mode) - } - return 0 -} - -// time_t time(time_t *tloc); -func Xtime(t *TLS, tloc uintptr) time.Time_t { - panic(todo("")) - // n := time.Now().UTC().Unix() - // if tloc != 0 { - // *(*types.Time_t)(unsafe.Pointer(tloc)) = types.Time_t(n) - // } - // return types.Time_t(n) -} - -// int utimes(const char *filename, const struct timeval times[2]); -func Xutimes(t *TLS, filename, times uintptr) int32 { - var a []unix.Timeval - if times != 0 { - a = make([]unix.Timeval, 2) - a[0] = *(*unix.Timeval)(unsafe.Pointer(times)) - a[1] = *(*unix.Timeval)(unsafe.Pointer(times + unsafe.Sizeof(unix.Timeval{}))) - } - if err := unix.Utimes(GoString(filename), a); err != nil { - if dmesgs { - dmesg("%v: %v FAIL", origin(1), err) - } - t.setErrno(err) - return -1 - } - - if dmesgs { - dmesg("%v: ok", origin(1)) - } - return 0 -} - -// int fstat(int fd, struct stat *statbuf); -func Xfstat64(t *TLS, fd int32, statbuf uintptr) int32 { - if err := unix.Fstat(int(fd), (*unix.Stat_t)(unsafe.Pointer(statbuf))); err != nil { - if dmesgs { - dmesg("%v: fd %d: %v FAIL", origin(1), fd, err) - } - t.setErrno(err) - return -1 - } - - if dmesgs { - dmesg("%v: fd %d: ok", origin(1), fd) - } - return 0 -} - -// off64_t lseek64(int fd, off64_t offset, int whence); -func Xlseek64(t *TLS, fd int32, offset types.Off_t, whence int32) types.Off_t { - n, err := unix.Seek(int(fd), int64(offset), int(whence)) - if err != nil { - if dmesgs { - dmesg("%v: %v FAIL", origin(1), err) - } - t.setErrno(err) - return -1 - } - - if dmesgs { - dmesg("%v: ok", origin(1)) - } - return types.Off_t(n) -} - -func Xfcntl64(t *TLS, fd, cmd int32, args uintptr) int32 { - var arg uintptr - if args != 0 { - arg = *(*uintptr)(unsafe.Pointer(args)) - } - n, _, err := unix.Syscall(unix.SYS_FCNTL, uintptr(fd), uintptr(cmd), arg) - if err != 0 { - if dmesgs { - dmesg("%v: fd %v cmd %v", origin(1), fcntlCmdStr(fd), cmd) - } - t.setErrno(err) - return -1 - } - - if dmesgs { - dmesg("%v: %d %s %#x: %d", origin(1), fd, fcntlCmdStr(cmd), arg, n) - } - return int32(n) -} - -// int rename(const char *oldpath, const char *newpath); -func Xrename(t *TLS, oldpath, newpath uintptr) int32 { - if err := unix.Rename(GoString(oldpath), GoString(newpath)); err != nil { - if dmesgs { - dmesg("%v: %v FAIL", origin(1), err) - } - t.setErrno(err) - return -1 - } - - if dmesgs { - dmesg("%v: ok", origin(1)) - } - return 0 -} - -// int mknod(const char *pathname, mode_t mode, dev_t dev); -func Xmknod(t *TLS, pathname uintptr, mode types.Mode_t, dev types.Dev_t) int32 { - panic(todo("")) - // if _, _, err := unix.Syscall(unix.SYS_MKNOD, pathname, uintptr(mode), uintptr(dev)); err != 0 { - // t.setErrno(err) - // return -1 - // } - - // return 0 -} - -// int utime(const char *filename, const struct utimbuf *times); -func Xutime(t *TLS, filename, times uintptr) int32 { - var a []unix.Timeval - if times != 0 { - a = make([]unix.Timeval, 2) - a[0].Sec = (*utime.Utimbuf)(unsafe.Pointer(times)).Factime - a[1].Sec = (*utime.Utimbuf)(unsafe.Pointer(times)).Fmodtime - } - if err := unix.Utimes(GoString(filename), a); err != nil { - if dmesgs { - dmesg("%v: %v FAIL", origin(1), err) - } - t.setErrno(err) - return -1 - } - - if dmesgs { - dmesg("%v: ok", origin(1)) - } - return 0 -} - -// int chown(const char *pathname, uid_t owner, gid_t group); -func Xchown(t *TLS, pathname uintptr, owner types.Uid_t, group types.Gid_t) int32 { - if _, _, err := unix.Syscall(unix.SYS_CHOWN, pathname, uintptr(owner), uintptr(group)); err != 0 { - t.setErrno(err) - return -1 - } - - return 0 -} - -// int link(const char *oldpath, const char *newpath); -func Xlink(t *TLS, oldpath, newpath uintptr) int32 { - panic(todo("")) - // if _, _, err := unix.Syscall(unix.SYS_LINK, oldpath, newpath, 0); err != 0 { - // t.setErrno(err) - // return -1 - // } - - // return 0 -} - -// int dup2(int oldfd, int newfd); -func Xdup2(t *TLS, oldfd, newfd int32) int32 { - panic(todo("")) - // n, _, err := unix.Syscall(unix.SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0) - // if err != 0 { - // t.setErrno(err) - // return -1 - // } - - // return int32(n) -} - -// unsigned int alarm(unsigned int seconds); -func Xalarm(t *TLS, seconds uint32) uint32 { - panic(todo("")) - // n, _, err := unix.Syscall(unix.SYS_ALARM, uintptr(seconds), 0, 0) - // if err != 0 { - // panic(todo("")) - // } - - // return uint32(n) -} - -// int getnameinfo(const struct sockaddr * restrict sa, socklen_t salen, char * restrict host, socklen_t hostlen, char * restrict serv, socklen_t servlen, int flags); -func Xgetnameinfo(tls *TLS, sa1 uintptr, sl socklen_t, node uintptr, nodelen size_t, serv uintptr, servlen size_t, flags int32) int32 { /* getnameinfo.c:125:5: */ - panic(todo("")) - //TODO bp := tls.Alloc(347) - //TODO defer tls.Free(347) - - //TODO // var ptr [78]int8 at bp, 78 - - //TODO // var buf [256]int8 at bp+78, 256 - - //TODO // var num [13]int8 at bp+334, 13 - - //TODO var af int32 = int32((*sockaddr)(unsafe.Pointer(sa1)).sa_family) - //TODO var a uintptr - //TODO var scopeid uint32 - - //TODO switch af { - //TODO case 2: - //TODO a = (sa1 + 4 /* &.sin_addr */) - //TODO if (uint64(sl) < uint64(unsafe.Sizeof(sockaddr_in{}))) { - //TODO return -6 - //TODO } - //TODO mkptr4(tls, bp /* &ptr[0] */, a) - //TODO scopeid = uint32(0) - //TODO break - //TODO case 10: - //TODO a = (sa1 + 8 /* &.sin6_addr */) - //TODO if (uint64(sl) < uint64(unsafe.Sizeof(sockaddr_in6{}))) { - //TODO return -6 - //TODO } - //TODO if Xmemcmp(tls, a, ts+88 /* "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\xff" */, uint64(12)) != 0 { - //TODO mkptr6(tls, bp /* &ptr[0] */, a) - //TODO } else { - //TODO mkptr4(tls, bp /* &ptr[0] */, (a + uintptr(12))) - //TODO } - //TODO scopeid = (*sockaddr_in6)(unsafe.Pointer(sa1)).sin6_scope_id - //TODO break - //TODO default: - //TODO return -6 - //TODO } - - //TODO if (node != 0) && (nodelen != 0) { - //TODO *(*int8)(unsafe.Pointer(bp + 78 /* &buf[0] */)) = int8(0) - //TODO if !((flags & 0x01) != 0) { - //TODO reverse_hosts(tls, bp+78 /* &buf[0] */, a, scopeid, af) - //TODO } - //TODO if !(int32(*(*int8)(unsafe.Pointer(bp + 78 /* buf */))) != 0) && !((flags & 0x01) != 0) { - //TODO Xabort(tls) //TODO- - //TODO // unsigned char query[18+PTR_MAX], reply[512]; - //TODO // int qlen = __res_mkquery(0, ptr, 1, RR_PTR, - //TODO // 0, 0, 0, query, sizeof query); - //TODO // query[3] = 0; /* don't need AD flag */ - //TODO // int rlen = __res_send(query, qlen, reply, sizeof reply); - //TODO // buf[0] = 0; - //TODO // if (rlen > 0) - //TODO // __dns_parse(reply, rlen, dns_parse_callback, buf); - //TODO } - //TODO if !(int32(*(*int8)(unsafe.Pointer(bp + 78 /* buf */))) != 0) { - //TODO if (flags & 0x08) != 0 { - //TODO return -2 - //TODO } - //TODO Xinet_ntop(tls, af, a, bp+78 /* &buf[0] */, uint32(unsafe.Sizeof([256]int8{}))) - //TODO if scopeid != 0 { - //TODO Xabort(tls) //TODO- - //TODO // char *p = 0, tmp[IF_NAMESIZE+1]; - //TODO // if (!(flags & NI_NUMERICSCOPE) && - //TODO // (IN6_IS_ADDR_LINKLOCAL(a) || - //TODO // IN6_IS_ADDR_MC_LINKLOCAL(a))) - //TODO // p = if_indextoname(scopeid, tmp+1); - //TODO // if (!p) - //TODO // p = itoa(num, scopeid); - //TODO // *--p = '%'; - //TODO // strcat(buf, p); - //TODO } - //TODO } - //TODO if Xstrlen(tls, bp+78 /* &buf[0] */) >= size_t(nodelen) { - //TODO return -12 - //TODO } - //TODO Xstrcpy(tls, node, bp+78 /* &buf[0] */) - //TODO } - - //TODO if (serv != 0) && (servlen != 0) { - //TODO var p uintptr = bp + 78 /* buf */ - //TODO var port int32 = int32(Xntohs(tls, (*sockaddr_in)(unsafe.Pointer(sa1)).sin_port)) - //TODO *(*int8)(unsafe.Pointer(bp + 78 /* &buf[0] */)) = int8(0) - //TODO if !((flags & 0x02) != 0) { - //TODO reverse_services(tls, bp+78 /* &buf[0] */, port, (flags & 0x10)) - //TODO } - //TODO if !(int32(*(*int8)(unsafe.Pointer(p))) != 0) { - //TODO p = itoa(tls, bp+334 /* &num[0] */, uint32(port)) - //TODO } - //TODO if Xstrlen(tls, p) >= size_t(servlen) { - //TODO return -12 - //TODO } - //TODO Xstrcpy(tls, serv, p) - //TODO } - - //TODO return 0 -} - -func Xgethostbyaddr_r(tls *TLS, a uintptr, l socklen_t, af int32, h uintptr, buf uintptr, buflen size_t, res uintptr, err uintptr) int32 { /* gethostbyaddr_r.c:10:5: */ - panic(todo("")) - //TODO bp := tls.Alloc(28) - //TODO defer tls.Free(28) - - //TODO //TODO union { - //TODO //TODO struct sockaddr_in sin; - //TODO //TODO struct sockaddr_in6 sin6; - //TODO //TODO } sa = { .sin.sin_family = af }; - //TODO *(*struct { - //TODO sin sockaddr_in - //TODO _ [12]byte - //TODO })(unsafe.Pointer(bp /* sa1 */)) = struct { - //TODO sin sockaddr_in - //TODO _ [12]byte - //TODO }{} //TODO- - //TODO (*sockaddr_in)(unsafe.Pointer(bp /* &sa1 */)).sin_family = sa_family_t(af) //TODO- - //TODO var sl socklen_t - //TODO if af == 10 { - //TODO sl = uint32(unsafe.Sizeof(sockaddr_in6{})) - //TODO } else { - //TODO sl = uint32(unsafe.Sizeof(sockaddr_in{})) - //TODO } - //TODO var i int32 - - //TODO *(*uintptr)(unsafe.Pointer(res)) = uintptr(0) - - //TODO // Load address argument into sockaddr structure - //TODO if (af == 10) && (l == socklen_t(16)) { - //TODO Xmemcpy(tls, (bp /* &sa1 */ /* &.sin6 */ + 8 /* &.sin6_addr */), a, uint64(16)) - //TODO } else if (af == 2) && (l == socklen_t(4)) { - //TODO Xmemcpy(tls, (bp /* &sa1 */ /* &.sin */ + 4 /* &.sin_addr */), a, uint64(4)) - //TODO } else { - //TODO *(*int32)(unsafe.Pointer(err)) = 3 - //TODO return 22 - //TODO } - - //TODO // Align buffer and check for space for pointers and ip address - //TODO i = (int32(uintptr_t(buf) & (uint64(unsafe.Sizeof(uintptr(0))) - uint64(1)))) - //TODO if !(i != 0) { - //TODO i = int32(unsafe.Sizeof(uintptr(0))) - //TODO } - //TODO if buflen <= (((uint64(5) * uint64(unsafe.Sizeof(uintptr(0)))) - uint64(i)) + uint64(l)) { - //TODO return 34 - //TODO } - //TODO buf += (uintptr(uint64(unsafe.Sizeof(uintptr(0))) - uint64(i))) - //TODO buflen = buflen - (((uint64(5) * uint64(unsafe.Sizeof(uintptr(0)))) - uint64(i)) + uint64(l)) - - //TODO (*hostent)(unsafe.Pointer(h)).h_addr_list = buf - //TODO buf += (uintptr(uint64(2) * uint64(unsafe.Sizeof(uintptr(0))))) - //TODO (*hostent)(unsafe.Pointer(h)).h_aliases = buf - //TODO buf += (uintptr(uint64(2) * uint64(unsafe.Sizeof(uintptr(0))))) - - //TODO *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_addr_list)) = buf - //TODO Xmemcpy(tls, *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_addr_list)), a, uint64(l)) - //TODO buf += uintptr(l) - //TODO *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_addr_list + 1*8)) = uintptr(0) - //TODO *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_aliases)) = buf - //TODO *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_aliases + 1*8)) = uintptr(0) - - //TODO switch Xgetnameinfo(tls, bp /* &sa1 */, sl, buf, uint32(buflen), uintptr(0), uint32(0), 0) { - //TODO case -3: - //TODO *(*int32)(unsafe.Pointer(err)) = 2 - //TODO return 11 - //TODO case -12: - //TODO return 34 - //TODO default: - //TODO fallthrough - //TODO case -10: - //TODO fallthrough - //TODO case -11: - //TODO fallthrough - //TODO case -4: - //TODO *(*int32)(unsafe.Pointer(err)) = 3 - //TODO return *(*int32)(unsafe.Pointer(X___errno_location(tls))) - //TODO case 0: - //TODO break - //TODO } - - //TODO (*hostent)(unsafe.Pointer(h)).h_addrtype = af - //TODO (*hostent)(unsafe.Pointer(h)).h_length = int32(l) - //TODO (*hostent)(unsafe.Pointer(h)).h_name = *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_aliases)) - //TODO *(*uintptr)(unsafe.Pointer(res)) = h - //TODO return 0 -} - -// int getrlimit(int resource, struct rlimit *rlim); -func Xgetrlimit64(t *TLS, resource int32, rlim uintptr) int32 { - if _, _, err := unix.Syscall(unix.SYS_GETRLIMIT, uintptr(resource), uintptr(rlim), 0); err != 0 { - t.setErrno(err) - return -1 - } - - return 0 -} - -func newFtsent(t *TLS, info int, path string, stat *unix.Stat_t, err syscall.Errno) (r *fts.FTSENT) { - var statp uintptr - if stat != nil { - statp = Xmalloc(t, types.Size_t(unsafe.Sizeof(unix.Stat_t{}))) - if statp == 0 { - panic("OOM") - } - - *(*unix.Stat_t)(unsafe.Pointer(statp)) = *stat - } - csp, errx := CString(path) - if errx != nil { - panic("OOM") - } - - return &fts.FTSENT{ - Ffts_info: uint16(info), - Ffts_path: csp, - Ffts_pathlen: uint64(len(path)), - Ffts_statp: statp, - Ffts_errno: int32(err), - } -} - -// DIR *opendir(const char *name); -func Xopendir(t *TLS, name uintptr) uintptr { - p := Xmalloc(t, uint64(unsafe.Sizeof(darwinDir{}))) - if p == 0 { - panic("OOM") - } - - fd := int(Xopen(t, name, fcntl.O_RDONLY|fcntl.O_DIRECTORY|fcntl.O_CLOEXEC, 0)) - if fd < 0 { - if dmesgs { - dmesg("%v: FAIL %v", origin(1), (*darwinDir)(unsafe.Pointer(p)).fd) - } - Xfree(t, p) - return 0 - } - - if dmesgs { - dmesg("%v: ok", origin(1)) - } - (*darwinDir)(unsafe.Pointer(p)).fd = fd - (*darwinDir)(unsafe.Pointer(p)).h = 0 - (*darwinDir)(unsafe.Pointer(p)).l = 0 - (*darwinDir)(unsafe.Pointer(p)).eof = false - return p -} diff --git a/vendor/modernc.org/libc/libc_openbsd_arm64.go b/vendor/modernc.org/libc/libc_openbsd_arm64.go index 8843f989b..5fdfcb101 100644 --- a/vendor/modernc.org/libc/libc_openbsd_arm64.go +++ b/vendor/modernc.org/libc/libc_openbsd_arm64.go @@ -4,630 +4,7 @@ package libc // import "modernc.org/libc" -import ( - "strings" - "syscall" - "unsafe" - - "golang.org/x/sys/unix" - "modernc.org/libc/fcntl" - "modernc.org/libc/fts" - "modernc.org/libc/sys/types" - "modernc.org/libc/time" - "modernc.org/libc/utime" -) - type ( long = int64 ulong = uint64 ) - -// int sigaction(int signum, const struct sigaction *act, struct sigaction *oldact); -func Xsigaction(t *TLS, signum int32, act, oldact uintptr) int32 { - panic(todo("")) - // if _, _, err := unix.Syscall(unix.SYS_SIGACTION, uintptr(signum), act, oldact); err != 0 { - // t.setErrno(err) - // return -1 - // } - - // return 0 -} - -// FILE *fopen64(const char *pathname, const char *mode); -func Xfopen64(t *TLS, pathname, mode uintptr) uintptr { - m := strings.ReplaceAll(GoString(mode), "b", "") - var flags int - switch m { - case "r": - flags = fcntl.O_RDONLY - case "r+": - flags = fcntl.O_RDWR - case "w": - flags = fcntl.O_WRONLY | fcntl.O_CREAT | fcntl.O_TRUNC - case "w+": - flags = fcntl.O_RDWR | fcntl.O_CREAT | fcntl.O_TRUNC - case "a": - flags = fcntl.O_WRONLY | fcntl.O_CREAT | fcntl.O_APPEND - case "a+": - flags = fcntl.O_RDWR | fcntl.O_CREAT | fcntl.O_APPEND - default: - panic(m) - } - fd, err := unix.Open(GoString(pathname), int(flags), 0666) - if err != nil { - if dmesgs { - dmesg("%v: %q %q: %v FAIL", origin(1), GoString(pathname), GoString(mode), err) - } - t.setErrno(err) - return 0 - } - - if dmesgs { - dmesg("%v: %q %q: fd %v", origin(1), GoString(pathname), GoString(mode), fd) - } - if p := newFile(t, int32(fd)); p != 0 { - return p - } - - panic("OOM") -} - -// int lstat(const char *pathname, struct stat *statbuf); -func Xlstat64(t *TLS, pathname, statbuf uintptr) int32 { - if err := unix.Lstat(GoString(pathname), (*unix.Stat_t)(unsafe.Pointer(statbuf))); err != nil { - if dmesgs { - dmesg("%v: %q: %v FAIL", origin(1), GoString(pathname), err) - } - t.setErrno(err) - return -1 - } - - if dmesgs { - dmesg("%v: %q: ok", origin(1), GoString(pathname)) - } - return 0 -} - -// int stat(const char *pathname, struct stat *statbuf); -func Xstat64(t *TLS, pathname, statbuf uintptr) int32 { - if err := unix.Stat(GoString(pathname), (*unix.Stat_t)(unsafe.Pointer(statbuf))); err != nil { - if dmesgs { - dmesg("%v: %q: %v FAIL", origin(1), GoString(pathname), err) - } - t.setErrno(err) - return -1 - } - - if dmesgs { - dmesg("%v: %q: ok", origin(1), GoString(pathname)) - } - return 0 -} - -// int mkdir(const char *path, mode_t mode); -func Xmkdir(t *TLS, path uintptr, mode types.Mode_t) int32 { - if err := unix.Mkdir(GoString(path), uint32(mode)); err != nil { - if dmesgs { - dmesg("%v: %q: %v FAIL", origin(1), GoString(path), err) - } - t.setErrno(err) - return -1 - } - - if dmesgs { - dmesg("%v: %q: ok", origin(1), GoString(path)) - } - return 0 -} - -// int access(const char *pathname, int mode); -func Xaccess(t *TLS, pathname uintptr, mode int32) int32 { - if err := unix.Access(GoString(pathname), uint32(mode)); err != nil { - if dmesgs { - dmesg("%v: %q %#o: %v FAIL", origin(1), GoString(pathname), mode, err) - } - t.setErrno(err) - return -1 - } - - if dmesgs { - dmesg("%v: %q %#o: ok", origin(1), GoString(pathname), mode) - } - return 0 -} - -// int unlink(const char *pathname); -func Xunlink(t *TLS, pathname uintptr) int32 { - if err := unix.Unlink(GoString(pathname)); err != nil { - if dmesgs { - dmesg("%v: %q: %v", origin(1), GoString(pathname), err) - } - t.setErrno(err) - return -1 - } - - if dmesgs { - dmesg("%v: ok", origin(1)) - } - return 0 -} - -// ssize_t readlink(const char *restrict path, char *restrict buf, size_t bufsize); -func Xreadlink(t *TLS, path, buf uintptr, bufsize types.Size_t) types.Ssize_t { - var n int - var err error - switch { - case buf == 0 || bufsize == 0: - n, err = unix.Readlink(GoString(path), nil) - default: - n, err = unix.Readlink(GoString(path), (*RawMem)(unsafe.Pointer(buf))[:bufsize:bufsize]) - } - if err != nil { - if dmesgs { - dmesg("%v: %v FAIL", err) - } - t.setErrno(err) - return -1 - } - - if dmesgs { - dmesg("%v: ok") - } - return types.Ssize_t(n) -} - -// int symlink(const char *target, const char *linkpath); -func Xsymlink(t *TLS, target, linkpath uintptr) int32 { - if err := unix.Symlink(GoString(target), GoString(linkpath)); err != nil { - if dmesgs { - dmesg("%v: %v FAIL", origin(1), err) - } - t.setErrno(err) - return -1 - } - - if dmesgs { - dmesg("%v: ok", origin(1)) - } - return 0 -} - -// int chmod(const char *pathname, mode_t mode) -func Xchmod(t *TLS, pathname uintptr, mode types.Mode_t) int32 { - if err := unix.Chmod(GoString(pathname), uint32(mode)); err != nil { - if dmesgs { - dmesg("%v: %q %#o: %v FAIL", origin(1), GoString(pathname), mode, err) - } - t.setErrno(err) - return -1 - } - - if dmesgs { - dmesg("%v: %q %#o: ok", origin(1), GoString(pathname), mode) - } - return 0 -} - -// time_t time(time_t *tloc); -func Xtime(t *TLS, tloc uintptr) time.Time_t { - panic(todo("")) - // n := time.Now().UTC().Unix() - // if tloc != 0 { - // *(*types.Time_t)(unsafe.Pointer(tloc)) = types.Time_t(n) - // } - // return types.Time_t(n) -} - -// int utimes(const char *filename, const struct timeval times[2]); -func Xutimes(t *TLS, filename, times uintptr) int32 { - var a []unix.Timeval - if times != 0 { - a = make([]unix.Timeval, 2) - a[0] = *(*unix.Timeval)(unsafe.Pointer(times)) - a[1] = *(*unix.Timeval)(unsafe.Pointer(times + unsafe.Sizeof(unix.Timeval{}))) - } - if err := unix.Utimes(GoString(filename), a); err != nil { - if dmesgs { - dmesg("%v: %v FAIL", origin(1), err) - } - t.setErrno(err) - return -1 - } - - if dmesgs { - dmesg("%v: ok", origin(1)) - } - return 0 -} - -// int fstat(int fd, struct stat *statbuf); -func Xfstat64(t *TLS, fd int32, statbuf uintptr) int32 { - if err := unix.Fstat(int(fd), (*unix.Stat_t)(unsafe.Pointer(statbuf))); err != nil { - if dmesgs { - dmesg("%v: fd %d: %v FAIL", origin(1), fd, err) - } - t.setErrno(err) - return -1 - } - - if dmesgs { - dmesg("%v: fd %d: ok", origin(1), fd) - } - return 0 -} - -// off64_t lseek64(int fd, off64_t offset, int whence); -func Xlseek64(t *TLS, fd int32, offset types.Off_t, whence int32) types.Off_t { - n, err := unix.Seek(int(fd), int64(offset), int(whence)) - if err != nil { - if dmesgs { - dmesg("%v: %v FAIL", origin(1), err) - } - t.setErrno(err) - return -1 - } - - if dmesgs { - dmesg("%v: ok", origin(1)) - } - return types.Off_t(n) -} - -func Xfcntl64(t *TLS, fd, cmd int32, args uintptr) int32 { - var arg uintptr - if args != 0 { - arg = *(*uintptr)(unsafe.Pointer(args)) - } - n, _, err := unix.Syscall(unix.SYS_FCNTL, uintptr(fd), uintptr(cmd), arg) - if err != 0 { - if dmesgs { - dmesg("%v: fd %v cmd %v", origin(1), fcntlCmdStr(fd), cmd) - } - t.setErrno(err) - return -1 - } - - if dmesgs { - dmesg("%v: %d %s %#x: %d", origin(1), fd, fcntlCmdStr(cmd), arg, n) - } - return int32(n) -} - -// int rename(const char *oldpath, const char *newpath); -func Xrename(t *TLS, oldpath, newpath uintptr) int32 { - if err := unix.Rename(GoString(oldpath), GoString(newpath)); err != nil { - if dmesgs { - dmesg("%v: %v FAIL", origin(1), err) - } - t.setErrno(err) - return -1 - } - - if dmesgs { - dmesg("%v: ok", origin(1)) - } - return 0 -} - -// int mknod(const char *pathname, mode_t mode, dev_t dev); -func Xmknod(t *TLS, pathname uintptr, mode types.Mode_t, dev types.Dev_t) int32 { - panic(todo("")) - // if _, _, err := unix.Syscall(unix.SYS_MKNOD, pathname, uintptr(mode), uintptr(dev)); err != 0 { - // t.setErrno(err) - // return -1 - // } - - // return 0 -} - -// int utime(const char *filename, const struct utimbuf *times); -func Xutime(t *TLS, filename, times uintptr) int32 { - var a []unix.Timeval - if times != 0 { - a = make([]unix.Timeval, 2) - a[0].Sec = (*utime.Utimbuf)(unsafe.Pointer(times)).Factime - a[1].Sec = (*utime.Utimbuf)(unsafe.Pointer(times)).Fmodtime - } - if err := unix.Utimes(GoString(filename), a); err != nil { - if dmesgs { - dmesg("%v: %v FAIL", origin(1), err) - } - t.setErrno(err) - return -1 - } - - if dmesgs { - dmesg("%v: ok", origin(1)) - } - return 0 -} - -// int chown(const char *pathname, uid_t owner, gid_t group); -func Xchown(t *TLS, pathname uintptr, owner types.Uid_t, group types.Gid_t) int32 { - if _, _, err := unix.Syscall(unix.SYS_CHOWN, pathname, uintptr(owner), uintptr(group)); err != 0 { - t.setErrno(err) - return -1 - } - - return 0 -} - -// int link(const char *oldpath, const char *newpath); -func Xlink(t *TLS, oldpath, newpath uintptr) int32 { - panic(todo("")) - // if _, _, err := unix.Syscall(unix.SYS_LINK, oldpath, newpath, 0); err != 0 { - // t.setErrno(err) - // return -1 - // } - - // return 0 -} - -// int dup2(int oldfd, int newfd); -func Xdup2(t *TLS, oldfd, newfd int32) int32 { - panic(todo("")) - // n, _, err := unix.Syscall(unix.SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0) - // if err != 0 { - // t.setErrno(err) - // return -1 - // } - - // return int32(n) -} - -// unsigned int alarm(unsigned int seconds); -func Xalarm(t *TLS, seconds uint32) uint32 { - panic(todo("")) - // n, _, err := unix.Syscall(unix.SYS_ALARM, uintptr(seconds), 0, 0) - // if err != 0 { - // panic(todo("")) - // } - - // return uint32(n) -} - -// int getnameinfo(const struct sockaddr * restrict sa, socklen_t salen, char * restrict host, socklen_t hostlen, char * restrict serv, socklen_t servlen, int flags); -func Xgetnameinfo(tls *TLS, sa1 uintptr, sl socklen_t, node uintptr, nodelen size_t, serv uintptr, servlen size_t, flags int32) int32 { /* getnameinfo.c:125:5: */ - panic(todo("")) - //TODO bp := tls.Alloc(347) - //TODO defer tls.Free(347) - - //TODO // var ptr [78]int8 at bp, 78 - - //TODO // var buf [256]int8 at bp+78, 256 - - //TODO // var num [13]int8 at bp+334, 13 - - //TODO var af int32 = int32((*sockaddr)(unsafe.Pointer(sa1)).sa_family) - //TODO var a uintptr - //TODO var scopeid uint32 - - //TODO switch af { - //TODO case 2: - //TODO a = (sa1 + 4 /* &.sin_addr */) - //TODO if (uint64(sl) < uint64(unsafe.Sizeof(sockaddr_in{}))) { - //TODO return -6 - //TODO } - //TODO mkptr4(tls, bp /* &ptr[0] */, a) - //TODO scopeid = uint32(0) - //TODO break - //TODO case 10: - //TODO a = (sa1 + 8 /* &.sin6_addr */) - //TODO if (uint64(sl) < uint64(unsafe.Sizeof(sockaddr_in6{}))) { - //TODO return -6 - //TODO } - //TODO if Xmemcmp(tls, a, ts+88 /* "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\xff" */, uint64(12)) != 0 { - //TODO mkptr6(tls, bp /* &ptr[0] */, a) - //TODO } else { - //TODO mkptr4(tls, bp /* &ptr[0] */, (a + uintptr(12))) - //TODO } - //TODO scopeid = (*sockaddr_in6)(unsafe.Pointer(sa1)).sin6_scope_id - //TODO break - //TODO default: - //TODO return -6 - //TODO } - - //TODO if (node != 0) && (nodelen != 0) { - //TODO *(*int8)(unsafe.Pointer(bp + 78 /* &buf[0] */)) = int8(0) - //TODO if !((flags & 0x01) != 0) { - //TODO reverse_hosts(tls, bp+78 /* &buf[0] */, a, scopeid, af) - //TODO } - //TODO if !(int32(*(*int8)(unsafe.Pointer(bp + 78 /* buf */))) != 0) && !((flags & 0x01) != 0) { - //TODO Xabort(tls) //TODO- - //TODO // unsigned char query[18+PTR_MAX], reply[512]; - //TODO // int qlen = __res_mkquery(0, ptr, 1, RR_PTR, - //TODO // 0, 0, 0, query, sizeof query); - //TODO // query[3] = 0; /* don't need AD flag */ - //TODO // int rlen = __res_send(query, qlen, reply, sizeof reply); - //TODO // buf[0] = 0; - //TODO // if (rlen > 0) - //TODO // __dns_parse(reply, rlen, dns_parse_callback, buf); - //TODO } - //TODO if !(int32(*(*int8)(unsafe.Pointer(bp + 78 /* buf */))) != 0) { - //TODO if (flags & 0x08) != 0 { - //TODO return -2 - //TODO } - //TODO Xinet_ntop(tls, af, a, bp+78 /* &buf[0] */, uint32(unsafe.Sizeof([256]int8{}))) - //TODO if scopeid != 0 { - //TODO Xabort(tls) //TODO- - //TODO // char *p = 0, tmp[IF_NAMESIZE+1]; - //TODO // if (!(flags & NI_NUMERICSCOPE) && - //TODO // (IN6_IS_ADDR_LINKLOCAL(a) || - //TODO // IN6_IS_ADDR_MC_LINKLOCAL(a))) - //TODO // p = if_indextoname(scopeid, tmp+1); - //TODO // if (!p) - //TODO // p = itoa(num, scopeid); - //TODO // *--p = '%'; - //TODO // strcat(buf, p); - //TODO } - //TODO } - //TODO if Xstrlen(tls, bp+78 /* &buf[0] */) >= size_t(nodelen) { - //TODO return -12 - //TODO } - //TODO Xstrcpy(tls, node, bp+78 /* &buf[0] */) - //TODO } - - //TODO if (serv != 0) && (servlen != 0) { - //TODO var p uintptr = bp + 78 /* buf */ - //TODO var port int32 = int32(Xntohs(tls, (*sockaddr_in)(unsafe.Pointer(sa1)).sin_port)) - //TODO *(*int8)(unsafe.Pointer(bp + 78 /* &buf[0] */)) = int8(0) - //TODO if !((flags & 0x02) != 0) { - //TODO reverse_services(tls, bp+78 /* &buf[0] */, port, (flags & 0x10)) - //TODO } - //TODO if !(int32(*(*int8)(unsafe.Pointer(p))) != 0) { - //TODO p = itoa(tls, bp+334 /* &num[0] */, uint32(port)) - //TODO } - //TODO if Xstrlen(tls, p) >= size_t(servlen) { - //TODO return -12 - //TODO } - //TODO Xstrcpy(tls, serv, p) - //TODO } - - //TODO return 0 -} - -func Xgethostbyaddr_r(tls *TLS, a uintptr, l socklen_t, af int32, h uintptr, buf uintptr, buflen size_t, res uintptr, err uintptr) int32 { /* gethostbyaddr_r.c:10:5: */ - panic(todo("")) - //TODO bp := tls.Alloc(28) - //TODO defer tls.Free(28) - - //TODO //TODO union { - //TODO //TODO struct sockaddr_in sin; - //TODO //TODO struct sockaddr_in6 sin6; - //TODO //TODO } sa = { .sin.sin_family = af }; - //TODO *(*struct { - //TODO sin sockaddr_in - //TODO _ [12]byte - //TODO })(unsafe.Pointer(bp /* sa1 */)) = struct { - //TODO sin sockaddr_in - //TODO _ [12]byte - //TODO }{} //TODO- - //TODO (*sockaddr_in)(unsafe.Pointer(bp /* &sa1 */)).sin_family = sa_family_t(af) //TODO- - //TODO var sl socklen_t - //TODO if af == 10 { - //TODO sl = uint32(unsafe.Sizeof(sockaddr_in6{})) - //TODO } else { - //TODO sl = uint32(unsafe.Sizeof(sockaddr_in{})) - //TODO } - //TODO var i int32 - - //TODO *(*uintptr)(unsafe.Pointer(res)) = uintptr(0) - - //TODO // Load address argument into sockaddr structure - //TODO if (af == 10) && (l == socklen_t(16)) { - //TODO Xmemcpy(tls, (bp /* &sa1 */ /* &.sin6 */ + 8 /* &.sin6_addr */), a, uint64(16)) - //TODO } else if (af == 2) && (l == socklen_t(4)) { - //TODO Xmemcpy(tls, (bp /* &sa1 */ /* &.sin */ + 4 /* &.sin_addr */), a, uint64(4)) - //TODO } else { - //TODO *(*int32)(unsafe.Pointer(err)) = 3 - //TODO return 22 - //TODO } - - //TODO // Align buffer and check for space for pointers and ip address - //TODO i = (int32(uintptr_t(buf) & (uint64(unsafe.Sizeof(uintptr(0))) - uint64(1)))) - //TODO if !(i != 0) { - //TODO i = int32(unsafe.Sizeof(uintptr(0))) - //TODO } - //TODO if buflen <= (((uint64(5) * uint64(unsafe.Sizeof(uintptr(0)))) - uint64(i)) + uint64(l)) { - //TODO return 34 - //TODO } - //TODO buf += (uintptr(uint64(unsafe.Sizeof(uintptr(0))) - uint64(i))) - //TODO buflen = buflen - (((uint64(5) * uint64(unsafe.Sizeof(uintptr(0)))) - uint64(i)) + uint64(l)) - - //TODO (*hostent)(unsafe.Pointer(h)).h_addr_list = buf - //TODO buf += (uintptr(uint64(2) * uint64(unsafe.Sizeof(uintptr(0))))) - //TODO (*hostent)(unsafe.Pointer(h)).h_aliases = buf - //TODO buf += (uintptr(uint64(2) * uint64(unsafe.Sizeof(uintptr(0))))) - - //TODO *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_addr_list)) = buf - //TODO Xmemcpy(tls, *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_addr_list)), a, uint64(l)) - //TODO buf += uintptr(l) - //TODO *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_addr_list + 1*8)) = uintptr(0) - //TODO *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_aliases)) = buf - //TODO *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_aliases + 1*8)) = uintptr(0) - - //TODO switch Xgetnameinfo(tls, bp /* &sa1 */, sl, buf, uint32(buflen), uintptr(0), uint32(0), 0) { - //TODO case -3: - //TODO *(*int32)(unsafe.Pointer(err)) = 2 - //TODO return 11 - //TODO case -12: - //TODO return 34 - //TODO default: - //TODO fallthrough - //TODO case -10: - //TODO fallthrough - //TODO case -11: - //TODO fallthrough - //TODO case -4: - //TODO *(*int32)(unsafe.Pointer(err)) = 3 - //TODO return *(*int32)(unsafe.Pointer(X___errno_location(tls))) - //TODO case 0: - //TODO break - //TODO } - - //TODO (*hostent)(unsafe.Pointer(h)).h_addrtype = af - //TODO (*hostent)(unsafe.Pointer(h)).h_length = int32(l) - //TODO (*hostent)(unsafe.Pointer(h)).h_name = *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_aliases)) - //TODO *(*uintptr)(unsafe.Pointer(res)) = h - //TODO return 0 -} - -// int getrlimit(int resource, struct rlimit *rlim); -func Xgetrlimit64(t *TLS, resource int32, rlim uintptr) int32 { - if _, _, err := unix.Syscall(unix.SYS_GETRLIMIT, uintptr(resource), uintptr(rlim), 0); err != 0 { - t.setErrno(err) - return -1 - } - - return 0 -} - -func newFtsent(t *TLS, info int, path string, stat *unix.Stat_t, err syscall.Errno) (r *fts.FTSENT) { - var statp uintptr - if stat != nil { - statp = Xmalloc(t, types.Size_t(unsafe.Sizeof(unix.Stat_t{}))) - if statp == 0 { - panic("OOM") - } - - *(*unix.Stat_t)(unsafe.Pointer(statp)) = *stat - } - csp, errx := CString(path) - if errx != nil { - panic("OOM") - } - - return &fts.FTSENT{ - Ffts_info: uint16(info), - Ffts_path: csp, - Ffts_pathlen: uint64(len(path)), - Ffts_statp: statp, - Ffts_errno: int32(err), - } -} - -// DIR *opendir(const char *name); -func Xopendir(t *TLS, name uintptr) uintptr { - p := Xmalloc(t, uint64(unsafe.Sizeof(darwinDir{}))) - if p == 0 { - panic("OOM") - } - - fd := int(Xopen(t, name, fcntl.O_RDONLY|fcntl.O_DIRECTORY|fcntl.O_CLOEXEC, 0)) - if fd < 0 { - if dmesgs { - dmesg("%v: FAIL %v", origin(1), (*darwinDir)(unsafe.Pointer(p)).fd) - } - Xfree(t, p) - return 0 - } - - if dmesgs { - dmesg("%v: ok", origin(1)) - } - (*darwinDir)(unsafe.Pointer(p)).fd = fd - (*darwinDir)(unsafe.Pointer(p)).h = 0 - (*darwinDir)(unsafe.Pointer(p)).l = 0 - (*darwinDir)(unsafe.Pointer(p)).eof = false - return p -} diff --git a/vendor/modernc.org/libc/libc_unix.go b/vendor/modernc.org/libc/libc_unix.go index eb31f1d33..f7ec66530 100644 --- a/vendor/modernc.org/libc/libc_unix.go +++ b/vendor/modernc.org/libc/libc_unix.go @@ -2,30 +2,31 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -//go:build linux || darwin || freebsd || netbsd || openbsd -// +build linux darwin freebsd netbsd openbsd +//go:build unix && !(linux && (amd64 || arm64 || loong64 || ppc64le || s390x || riscv64 || 386 || arm)) package libc // import "modernc.org/libc" import ( "bufio" - "io/ioutil" + // "encoding/hex" "math" "math/rand" "os" gosignal "os/signal" "reflect" + "runtime" "strconv" "strings" "sync" - "syscall" "time" "unsafe" guuid "github.com/google/uuid" + "github.com/ncruces/go-strftime" "golang.org/x/sys/unix" "modernc.org/libc/errno" "modernc.org/libc/grp" + "modernc.org/libc/limits" "modernc.org/libc/poll" "modernc.org/libc/pwd" "modernc.org/libc/signal" @@ -41,57 +42,68 @@ func init() { atExit = append(atExit, func() { closePasswd(&staticGetpwnam) }) } +var ( + signalCh chan os.Signal + signalTls *TLS + signalInit sync.Once +) + +func startSignalHandler() { + signalCh = make(chan os.Signal, 10) + signalTls = NewTLS() + go func() { + for sig := range signalCh { + if s, ok := sig.(unix.Signal); ok { + signum := int32(s) + signalsMu.Lock() + handler := signals[signum] + signalsMu.Unlock() + if handler != 0 && handler != signal.SIG_DFL && handler != signal.SIG_IGN { + var f func(*TLS, int32) + *(*uintptr)(unsafe.Pointer(&f)) = handler + f(signalTls, signum) + } + } + } + }() +} + // sighandler_t signal(int signum, sighandler_t handler); func Xsignal(t *TLS, signum int32, handler uintptr) uintptr { //TODO use sigaction? - signalsMu.Lock() + if __ccgo_strace { + trc("t=%v signum=%v handler=%v, (%v:)", t, signum, handler, origin(2)) + } + signalInit.Do(startSignalHandler) + signalsMu.Lock() defer signalsMu.Unlock() r := signals[signum] signals[signum] = handler switch handler { case signal.SIG_DFL: - panic(todo("%v %#x", syscall.Signal(signum), handler)) + gosignal.Reset(unix.Signal(signum)) case signal.SIG_IGN: - switch r { - case signal.SIG_DFL: - gosignal.Ignore(syscall.Signal(signum)) //TODO - case signal.SIG_IGN: - gosignal.Ignore(syscall.Signal(signum)) - default: - panic(todo("%v %#x", syscall.Signal(signum), handler)) - } + gosignal.Ignore(unix.Signal(signum)) default: - switch r { - case signal.SIG_DFL: - c := make(chan os.Signal, 1) - gosignal.Notify(c, syscall.Signal(signum)) - go func() { //TODO mechanism to stop/cancel - for { - <-c - var f func(*TLS, int32) - *(*uintptr)(unsafe.Pointer(&f)) = handler - tls := NewTLS() - f(tls, signum) - tls.Close() - } - }() - case signal.SIG_IGN: - panic(todo("%v %#x", syscall.Signal(signum), handler)) - default: - panic(todo("%v %#x", syscall.Signal(signum), handler)) - } + gosignal.Notify(signalCh, unix.Signal(signum)) } return r } // void rewind(FILE *stream); func Xrewind(t *TLS, stream uintptr) { + if __ccgo_strace { + trc("t=%v stream=%v, (%v:)", t, stream, origin(2)) + } Xfseek(t, stream, 0, stdio.SEEK_SET) } // int putchar(int c); func Xputchar(t *TLS, c int32) int32 { + if __ccgo_strace { + trc("t=%v c=%v, (%v:)", t, c, origin(2)) + } if _, err := write([]byte{byte(c)}); err != nil { return stdio.EOF } @@ -101,9 +113,8 @@ func Xputchar(t *TLS, c int32) int32 { // int gethostname(char *name, size_t len); func Xgethostname(t *TLS, name uintptr, slen types.Size_t) int32 { - if slen < 0 { - t.setErrno(errno.EINVAL) - return -1 + if __ccgo_strace { + trc("t=%v name=%v slen=%v, (%v:)", t, name, slen, origin(2)) } if slen == 0 { @@ -127,41 +138,69 @@ func Xgethostname(t *TLS, name uintptr, slen types.Size_t) int32 { // int remove(const char *pathname); func Xremove(t *TLS, pathname uintptr) int32 { - panic(todo("")) + if __ccgo_strace { + trc("t=%v pathname=%v, (%v:)", t, pathname, origin(2)) + } + if err := os.Remove(GoString(pathname)); err != nil { + t.setErrno(err) + return -1 + } + return 0 } // long pathconf(const char *path, int name); func Xpathconf(t *TLS, path uintptr, name int32) long { + if __ccgo_strace { + trc("t=%v path=%v name=%v, (%v:)", t, path, name, origin(2)) + } panic(todo("")) } // ssize_t recvfrom(int sockfd, void *buf, size_t len, int flags, struct sockaddr *src_addr, socklen_t *addrlen); func Xrecvfrom(t *TLS, sockfd int32, buf uintptr, len types.Size_t, flags int32, src_addr, addrlen uintptr) types.Ssize_t { + if __ccgo_strace { + trc("t=%v sockfd=%v buf=%v len=%v flags=%v addrlen=%v, (%v:)", t, sockfd, buf, len, flags, addrlen, origin(2)) + } panic(todo("")) } // ssize_t sendto(int sockfd, const void *buf, size_t len, int flags, const struct sockaddr *dest_addr, socklen_t addrlen); func Xsendto(t *TLS, sockfd int32, buf uintptr, len types.Size_t, flags int32, src_addr uintptr, addrlen socklen_t) types.Ssize_t { + if __ccgo_strace { + trc("t=%v sockfd=%v buf=%v len=%v flags=%v src_addr=%v addrlen=%v, (%v:)", t, sockfd, buf, len, flags, src_addr, addrlen, origin(2)) + } panic(todo("")) } // void srand48(long int seedval); func Xsrand48(t *TLS, seedval long) { + if __ccgo_strace { + trc("t=%v seedval=%v, (%v:)", t, seedval, origin(2)) + } panic(todo("")) } // long int lrand48(void); func Xlrand48(t *TLS) long { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } panic(todo("")) } // ssize_t sendmsg(int sockfd, const struct msghdr *msg, int flags); func Xsendmsg(t *TLS, sockfd int32, msg uintptr, flags int32) types.Ssize_t { + if __ccgo_strace { + trc("t=%v sockfd=%v msg=%v flags=%v, (%v:)", t, sockfd, msg, flags, origin(2)) + } panic(todo("")) } // int poll(struct pollfd *fds, nfds_t nfds, int timeout); func Xpoll(t *TLS, fds uintptr, nfds poll.Nfds_t, timeout int32) int32 { + if __ccgo_strace { + trc("t=%v fds=%v nfds=%v timeout=%v, (%v:)", t, fds, nfds, timeout, origin(2)) + } if nfds == 0 { panic(todo("")) } @@ -181,65 +220,84 @@ func Xpoll(t *TLS, fds uintptr, nfds poll.Nfds_t, timeout int32) int32 { return int32(n) } -// ssize_t recvmsg(int sockfd, struct msghdr *msg, int flags); -func Xrecvmsg(t *TLS, sockfd int32, msg uintptr, flags int32) types.Ssize_t { - n, _, err := unix.Syscall(unix.SYS_RECVMSG, uintptr(sockfd), msg, uintptr(flags)) - if err != 0 { - t.setErrno(err) - return -1 - } - - return types.Ssize_t(n) -} - // struct cmsghdr *CMSG_NXTHDR(struct msghdr *msgh, struct cmsghdr *cmsg); func X__cmsg_nxthdr(t *TLS, msgh, cmsg uintptr) uintptr { + if __ccgo_strace { + trc("t=%v cmsg=%v, (%v:)", t, cmsg, origin(2)) + } panic(todo("")) } // wchar_t *wcschr(const wchar_t *wcs, wchar_t wc); func Xwcschr(t *TLS, wcs uintptr, wc wchar_t) wchar_t { + if __ccgo_strace { + trc("t=%v wcs=%v wc=%v, (%v:)", t, wcs, wc, origin(2)) + } panic(todo("")) } // gid_t getegid(void); func Xgetegid(t *TLS) types.Gid_t { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } panic(todo("")) } // gid_t getgid(void); func Xgetgid(t *TLS) types.Gid_t { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } panic(todo("")) } // void *shmat(int shmid, const void *shmaddr, int shmflg); func Xshmat(t *TLS, shmid int32, shmaddr uintptr, shmflg int32) uintptr { + if __ccgo_strace { + trc("t=%v shmid=%v shmaddr=%v shmflg=%v, (%v:)", t, shmid, shmaddr, shmflg, origin(2)) + } panic(todo("")) } // int shmctl(int shmid, int cmd, struct shmid_ds *buf); func Xshmctl(t *TLS, shmid, cmd int32, buf uintptr) int32 { + if __ccgo_strace { + trc("t=%v cmd=%v buf=%v, (%v:)", t, cmd, buf, origin(2)) + } panic(todo("")) } // int shmdt(const void *shmaddr); func Xshmdt(t *TLS, shmaddr uintptr) int32 { + if __ccgo_strace { + trc("t=%v shmaddr=%v, (%v:)", t, shmaddr, origin(2)) + } panic(todo("")) } // int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid); func Xgetresuid(t *TLS, ruid, euid, suid uintptr) int32 { + if __ccgo_strace { + trc("t=%v suid=%v, (%v:)", t, suid, origin(2)) + } panic(todo("")) } // int getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid); func Xgetresgid(t *TLS, rgid, egid, sgid uintptr) int32 { + if __ccgo_strace { + trc("t=%v sgid=%v, (%v:)", t, sgid, origin(2)) + } panic(todo("")) } // FILE *tmpfile(void); func Xtmpfile(t *TLS) uintptr { - f, err := ioutil.TempFile("", "tmpfile-") + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } + f, err := os.CreateTemp("", "tmpfile-") if err != nil { t.setErrno(err) return 0 @@ -257,6 +315,9 @@ func Xtmpfile(t *TLS) uintptr { // FILE *fdopen(int fd, const char *mode); func Xfdopen(t *TLS, fd int32, mode uintptr) uintptr { + if __ccgo_strace { + trc("t=%v fd=%v mode=%v, (%v:)", t, fd, GoString(mode), origin(2)) + } m := strings.ReplaceAll(GoString(mode), "b", "") switch m { case @@ -271,16 +332,19 @@ func Xfdopen(t *TLS, fd int32, mode uintptr) uintptr { return 0 } - if p := newFile(t, fd); p != 0 { - return p + p := newFile(t, fd) + if p == 0 { + t.setErrno(errno.EINVAL) + return 0 } - - t.setErrno(errno.EINVAL) - return 0 + return p } // struct passwd *getpwnam(const char *name); func Xgetpwnam(t *TLS, name uintptr) uintptr { + if __ccgo_strace { + trc("t=%v name=%v, (%v:)", t, name, origin(2)) + } f, err := os.Open("/etc/passwd") if err != nil { panic(todo("", err)) @@ -333,6 +397,9 @@ func Xgetpwnam(t *TLS, name uintptr) uintptr { // int getpwnam_r(char *name, struct passwd *pwd, char *buf, size_t buflen, struct passwd **result); func Xgetpwnam_r(t *TLS, name, cpwd, buf uintptr, buflen types.Size_t, result uintptr) int32 { + if __ccgo_strace { + trc("t=%v buf=%v buflen=%v result=%v, (%v:)", t, buf, buflen, result, origin(2)) + } f, err := os.Open("/etc/passwd") if err != nil { panic(todo("", err)) @@ -398,6 +465,9 @@ var staticGetgrgid grp.Group // struct group *getgrgid(gid_t gid); func Xgetgrgid(t *TLS, gid uint32) uintptr { + if __ccgo_strace { + trc("t=%v gid=%v, (%v:)", t, gid, origin(2)) + } f, err := os.Open("/etc/group") if err != nil { panic(todo("")) @@ -439,6 +509,9 @@ func Xgetgrgid(t *TLS, gid uint32) uintptr { // int getgrgid_r(gid_t gid, struct group *grp, char *buf, size_t buflen, struct group **result); func Xgetgrgid_r(t *TLS, gid uint32, pGrp, buf uintptr, buflen types.Size_t, result uintptr) int32 { + if __ccgo_strace { + trc("t=%v gid=%v buf=%v buflen=%v result=%v, (%v:)", t, gid, buf, buflen, result, origin(2)) + } f, err := os.Open("/etc/group") if err != nil { panic(todo("")) @@ -513,11 +586,7 @@ func initPasswd2(t *TLS, buf uintptr, buflen types.Size_t, p *pwd.Passwd, name, } p.Fpw_shell, buf, buflen = bufString(buf, buflen, shell) - if buf == 0 { - return false - } - - return true + return buf != 0 } func bufString(buf uintptr, buflen types.Size_t, s string) (uintptr, uintptr, types.Size_t) { @@ -625,6 +694,9 @@ func init() { // struct passwd *getpwuid(uid_t uid); func Xgetpwuid(t *TLS, uid uint32) uintptr { + if __ccgo_strace { + trc("t=%v uid=%v, (%v:)", t, uid, origin(2)) + } f, err := os.Open("/etc/passwd") if err != nil { panic(todo("", err)) @@ -687,6 +759,9 @@ func initPasswd(t *TLS, p *pwd.Passwd, name, pwd string, uid, gid uint32, gecos, // struct group *getgrnam(const char *name); func Xgetgrnam(t *TLS, name uintptr) uintptr { + if __ccgo_strace { + trc("t=%v name=%v, (%v:)", t, name, origin(2)) + } f, err := os.Open("/etc/group") if err != nil { panic(todo("")) @@ -733,6 +808,9 @@ func Xgetgrnam(t *TLS, name uintptr) uintptr { // int getgrnam_r(const char *name, struct group *grp, char *buf, size_t buflen, struct group **result); func Xgetgrnam_r(t *TLS, name, pGrp, buf uintptr, buflen types.Size_t, result uintptr) int32 { + if __ccgo_strace { + trc("t=%v buf=%v buflen=%v result=%v, (%v:)", t, buf, buflen, result, origin(2)) + } f, err := os.Open("/etc/group") if err != nil { panic(todo("")) @@ -786,6 +864,9 @@ func Xgetgrnam_r(t *TLS, name, pGrp, buf uintptr, buflen types.Size_t, result ui // int getpwuid_r(uid_t uid, struct passwd *pwd, char *buf, size_t buflen, struct passwd **result); func Xgetpwuid_r(t *TLS, uid types.Uid_t, cpwd, buf uintptr, buflen types.Size_t, result uintptr) int32 { + if __ccgo_strace { + trc("t=%v uid=%v buf=%v buflen=%v result=%v, (%v:)", t, uid, buf, buflen, result, origin(2)) + } f, err := os.Open("/etc/passwd") if err != nil { panic(todo("", err)) @@ -845,6 +926,9 @@ func Xgetpwuid_r(t *TLS, uid types.Uid_t, cpwd, buf uintptr, buflen types.Size_t // int mkostemp(char *template, int flags); func Xmkostemp(t *TLS, template uintptr, flags int32) int32 { + if __ccgo_strace { + trc("t=%v template=%v flags=%v, (%v:)", t, template, flags, origin(2)) + } len := uintptr(Xstrlen(t, template)) x := template + uintptr(len-6) for i := uintptr(0); i < 6; i++ { @@ -865,27 +949,41 @@ func Xmkostemp(t *TLS, template uintptr, flags int32) int32 { // void uuid_generate_random(uuid_t out); func Xuuid_generate_random(t *TLS, out uintptr) { + if __ccgo_strace { + trc("t=%v out=%v, (%v:)", t, out, origin(2)) + } x := guuid.New() copy((*RawMem)(unsafe.Pointer(out))[:], x[:]) } // void uuid_unparse(uuid_t uu, char *out); func Xuuid_unparse(t *TLS, uu, out uintptr) { + if __ccgo_strace { + trc("t=%v out=%v, (%v:)", t, out, origin(2)) + } s := (*guuid.UUID)(unsafe.Pointer(uu)).String() copy((*RawMem)(unsafe.Pointer(out))[:], s) *(*byte)(unsafe.Pointer(out + uintptr(len(s)))) = 0 } -var staticRandomData = &rand.Rand{} +// no longer used? +// var staticRandomData = &rand.Rand{} // char *initstate(unsigned seed, char *state, size_t size); func Xinitstate(t *TLS, seed uint32, statebuf uintptr, statelen types.Size_t) uintptr { - staticRandomData = rand.New(rand.NewSource(int64(seed))) + if __ccgo_strace { + trc("t=%v seed=%v statebuf=%v statelen=%v, (%v:)", t, seed, statebuf, statelen, origin(2)) + } + // staticRandomData = rand.New(rand.NewSource(int64(seed))) + _ = rand.New(rand.NewSource(int64(seed))) return 0 } // char *setstate(const char *state); func Xsetstate(t *TLS, state uintptr) uintptr { + if __ccgo_strace { + trc("t=%v state=%v, (%v:)", t, state, origin(2)) + } t.setErrno(errno.EINVAL) //TODO return 0 } @@ -901,6 +999,9 @@ func Xsetstate(t *TLS, state uintptr) uintptr { // // char *initstate_r(unsigned int seed, char *statebuf, size_t statelen, struct random_data *buf); func Xinitstate_r(t *TLS, seed uint32, statebuf uintptr, statelen types.Size_t, buf uintptr) int32 { + if __ccgo_strace { + trc("t=%v seed=%v statebuf=%v statelen=%v buf=%v, (%v:)", t, seed, statebuf, statelen, buf, origin(2)) + } if buf == 0 { panic(todo("")) } @@ -920,11 +1021,17 @@ var ( // int mkstemps(char *template, int suffixlen); func Xmkstemps(t *TLS, template uintptr, suffixlen int32) int32 { + if __ccgo_strace { + trc("t=%v template=%v suffixlen=%v, (%v:)", t, template, suffixlen, origin(2)) + } return Xmkstemps64(t, template, suffixlen) } // int mkstemps(char *template, int suffixlen); func Xmkstemps64(t *TLS, template uintptr, suffixlen int32) int32 { + if __ccgo_strace { + trc("t=%v template=%v suffixlen=%v, (%v:)", t, template, suffixlen, origin(2)) + } len := uintptr(Xstrlen(t, template)) x := template + uintptr(len-6) - uintptr(suffixlen) for i := uintptr(0); i < 6; i++ { @@ -945,16 +1052,25 @@ func Xmkstemps64(t *TLS, template uintptr, suffixlen int32) int32 { // int mkstemp(char *template); func Xmkstemp(t *TLS, template uintptr) int32 { + if __ccgo_strace { + trc("t=%v template=%v, (%v:)", t, template, origin(2)) + } return Xmkstemp64(t, template) } // int mkstemp(char *template); func Xmkstemp64(t *TLS, template uintptr) int32 { + if __ccgo_strace { + trc("t=%v template=%v, (%v:)", t, template, origin(2)) + } return Xmkstemps64(t, template, 0) } // int random_r(struct random_data *buf, int32_t *result); func Xrandom_r(t *TLS, buf, result uintptr) int32 { + if __ccgo_strace { + trc("t=%v result=%v, (%v:)", t, result, origin(2)) + } randomDataMu.Lock() defer randomDataMu.Unlock() @@ -969,11 +1085,17 @@ func Xrandom_r(t *TLS, buf, result uintptr) int32 { // int strerror_r(int errnum, char *buf, size_t buflen); func Xstrerror_r(t *TLS, errnum int32, buf uintptr, buflen size_t) int32 { + if __ccgo_strace { + trc("t=%v errnum=%v buf=%v buflen=%v, (%v:)", t, errnum, buf, buflen, origin(2)) + } panic(todo("")) } // void endpwent(void); func Xendpwent(t *TLS) { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } // nop } @@ -981,14 +1103,273 @@ var ctimeStaticBuf [32]byte // char *ctime(const time_t *timep); func Xctime(t *TLS, timep uintptr) uintptr { + if __ccgo_strace { + trc("t=%v timep=%v, (%v:)", t, timep, origin(2)) + } return Xctime_r(t, timep, uintptr(unsafe.Pointer(&ctimeStaticBuf[0]))) } // char *ctime_r(const time_t *timep, char *buf); func Xctime_r(t *TLS, timep, buf uintptr) uintptr { + if __ccgo_strace { + trc("t=%v buf=%v, (%v:)", t, buf, origin(2)) + } ut := *(*ctime.Time_t)(unsafe.Pointer(timep)) tm := time.Unix(int64(ut), 0).Local() s := tm.Format(time.ANSIC) + "\n\x00" copy((*RawMem)(unsafe.Pointer(buf))[:26:26], s) return buf } + +// ssize_t pread(int fd, void *buf, size_t count, off_t offset); +func Xpread(t *TLS, fd int32, buf uintptr, count types.Size_t, offset types.Off_t) types.Ssize_t { + if __ccgo_strace { + trc("t=%v fd=%v buf=%v count=%v offset=%v, (%v:)", t, fd, buf, count, offset, origin(2)) + } + var n int + var err error + switch { + case count == 0: + n, err = unix.Pread(int(fd), nil, int64(offset)) + default: + n, err = unix.Pread(int(fd), (*RawMem)(unsafe.Pointer(buf))[:count:count], int64(offset)) + // if dmesgs && err == nil { + // dmesg("%v: fd %v, off %#x, count %#x, n %#x\n%s", origin(1), fd, offset, count, n, hex.Dump((*RawMem)(unsafe.Pointer(buf))[:n:n])) + // } + } + if err != nil { + // if dmesgs { + // dmesg("%v: %v FAIL", origin(1), err) + // } + t.setErrno(err) + return -1 + } + + // if dmesgs { + // dmesg("%v: ok", origin(1)) + // } + return types.Ssize_t(n) +} + +// // malloc_zone_t * malloc_create_zone(vm_size_t start_size, unsigned flags); +// func Xmalloc_create_zone(t *TLS, start_size types.Size_t, flags uint32) uintptr { +// if __ccgo_strace { +// trc("t=%v start_size=%v flags=%v, (%v:)", t, start_size, flags, origin(2)) +// } +// panic(todo("")) +// } +// +// // void * malloc_zone_malloc(malloc_zone_t *zone, size_t size); +// func Xmalloc_zone_malloc(t *TLS, zone uintptr, size types.Size_t) uintptr { +// if __ccgo_strace { +// trc("t=%v zone=%v size=%v, (%v:)", t, zone, size, origin(2)) +// } +// if zone == defaultZone { +// return Xmalloc(t, size) +// } +// +// panic(todo("")) +// } +// +// // malloc_zone_t * malloc_default_zone(void); +// func Xmalloc_default_zone(t *TLS) uintptr { +// if __ccgo_strace { +// trc("t=%v (%v:)", t, origin(2)) +// } +// return defaultZone +// } +// +// // void malloc_zone_free(malloc_zone_t *zone, void *ptr); +// func Xmalloc_zone_free(t *TLS, zone, ptr uintptr) { +// if __ccgo_strace { +// trc("t=%v zone=%v ptr=%v, (%v:)", t, zone, ptr, origin(2)) +// } +// +// if zone == defaultZone { +// Xfree(t, ptr) +// return +// } +// +// panic(todo("")) +// } +// +// // void * malloc_zone_realloc(malloc_zone_t *zone, void *ptr, size_t size); +// func Xmalloc_zone_realloc(t *TLS, zone, ptr uintptr, size types.Size_t) uintptr { +// if __ccgo_strace { +// trc("t=%v zone=%v ptr=%v size=%v, (%v:)", t, zone, ptr, size, origin(2)) +// } +// panic(todo("")) +// } + +// int sysctlbyname(const char *name, void *oldp, size_t *oldlenp, void *newp, size_t newlen); +func Xsysctlbyname(t *TLS, name, oldp, oldlenp, newp uintptr, newlen types.Size_t) int32 { + if __ccgo_strace { + trc("t=%v name=%q oldp=%#0x oldlenp=%v newp=%v newlen=%v, (%v:)", t, GoString(name), oldp, *(*types.Size_t)(unsafe.Pointer(oldlenp)), newp, newlen, origin(2)) + } + oldlen := *(*types.Size_t)(unsafe.Pointer(oldlenp)) + switch GoString(name) { + case "hw.ncpu": + if oldlen != 4 { + panic(todo("")) + } + + *(*int32)(unsafe.Pointer(oldp)) = int32(runtime.GOMAXPROCS(-1)) + return 0 + default: + t.setErrno(errno.ENOENT) + return -1 + } +} + +// type mallocZone struct { +// a memory.Allocator +// mu sync.Mutex +// +// isDefault bool +// } +// +// func newMallocZone(isDefault bool) *mallocZone { +// return &mallocZone{isDefault: isDefault} +// } +// +// var ( +// defaultZone uintptr +// ) +// +// func init() { +// defaultZone = addObject(newMallocZone(true)) +// } + +// /tmp/libc/musl-master/src/time/gmtime.c:6:19: +var _tm ctime.Tm + +// /tmp/libc/musl-master/src/time/gmtime.c:4:11: +func Xgmtime(tls *TLS, t uintptr) (r uintptr) { // /tmp/libc/musl-master/src/time/gmtime.c:7:2: + if __ccgo_strace { + trc("tls=%v t=%v, (%v:)", tls, t, origin(2)) + defer func() { trc("-> %v", r) }() + } + return Xgmtime_r(tls, t, uintptr(unsafe.Pointer(&_tm))) +} + +var _days_in_month = [12]int8{ + 0: int8(31), + 1: int8(30), + 2: int8(31), + 3: int8(30), + 4: int8(31), + 5: int8(31), + 6: int8(30), + 7: int8(31), + 8: int8(30), + 9: int8(31), + 10: int8(31), + 11: int8(29), +} + +var x___utc = [4]int8{'U', 'T', 'C'} + +func Xstrftime(tls *TLS, s uintptr, n size_t, f uintptr, tm uintptr) (r size_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v f=%v tm=%v, (%v:)", tls, s, n, f, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + tt := time.Date( + int((*ctime.Tm)(unsafe.Pointer(tm)).Ftm_year+1900), + time.Month((*ctime.Tm)(unsafe.Pointer(tm)).Ftm_mon+1), + int((*ctime.Tm)(unsafe.Pointer(tm)).Ftm_mday), + int((*ctime.Tm)(unsafe.Pointer(tm)).Ftm_hour), + int((*ctime.Tm)(unsafe.Pointer(tm)).Ftm_min), + int((*ctime.Tm)(unsafe.Pointer(tm)).Ftm_sec), + 0, + time.UTC, + ) + fmt := GoString(f) + var result string + if fmt != "" { + result = strftime.Format(fmt, tt) + } + switch r = size_t(len(result)); { + case r > n: + r = 0 + default: + copy((*RawMem)(unsafe.Pointer(s))[:r:r], result) + *(*byte)(unsafe.Pointer(s + uintptr(r))) = 0 + } + return r + +} + +func x___secs_to_tm(tls *TLS, t int64, tm uintptr) (r int32) { + var c_cycles, leap, months, q_cycles, qc_cycles, remdays, remsecs, remyears, wday, yday int32 + var days, secs, years int64 + _, _, _, _, _, _, _, _, _, _, _, _, _ = c_cycles, days, leap, months, q_cycles, qc_cycles, remdays, remsecs, remyears, secs, wday, yday, years + /* Reject time_t values whose year would overflow int */ + if t < int64(-Int32FromInt32(1)-Int32FromInt32(0x7fffffff))*Int64FromInt64(31622400) || t > Int64FromInt32(limits.INT_MAX)*Int64FromInt64(31622400) { + return -int32(1) + } + secs = t - (Int64FromInt64(946684800) + int64(Int32FromInt32(86400)*(Int32FromInt32(31)+Int32FromInt32(29)))) + days = secs / int64(86400) + remsecs = int32(secs % int64(86400)) + if remsecs < 0 { + remsecs += int32(86400) + days-- + } + wday = int32((int64(3) + days) % int64(7)) + if wday < 0 { + wday += int32(7) + } + qc_cycles = int32(days / int64(Int32FromInt32(365)*Int32FromInt32(400)+Int32FromInt32(97))) + remdays = int32(days % int64(Int32FromInt32(365)*Int32FromInt32(400)+Int32FromInt32(97))) + if remdays < 0 { + remdays += Int32FromInt32(365)*Int32FromInt32(400) + Int32FromInt32(97) + qc_cycles-- + } + c_cycles = remdays / (Int32FromInt32(365)*Int32FromInt32(100) + Int32FromInt32(24)) + if c_cycles == int32(4) { + c_cycles-- + } + remdays -= c_cycles * (Int32FromInt32(365)*Int32FromInt32(100) + Int32FromInt32(24)) + q_cycles = remdays / (Int32FromInt32(365)*Int32FromInt32(4) + Int32FromInt32(1)) + if q_cycles == int32(25) { + q_cycles-- + } + remdays -= q_cycles * (Int32FromInt32(365)*Int32FromInt32(4) + Int32FromInt32(1)) + remyears = remdays / int32(365) + if remyears == int32(4) { + remyears-- + } + remdays -= remyears * int32(365) + leap = BoolInt32(!(remyears != 0) && (q_cycles != 0 || !(c_cycles != 0))) + yday = remdays + int32(31) + int32(28) + leap + if yday >= int32(365)+leap { + yday -= int32(365) + leap + } + years = int64(remyears+int32(4)*q_cycles+int32(100)*c_cycles) + int64(400)*int64(int64(qc_cycles)) + months = 0 + for { + if !(int32(_days_in_month[months]) <= remdays) { + break + } + remdays -= int32(_days_in_month[months]) + goto _1 + _1: + months++ + } + if months >= int32(10) { + months -= int32(12) + years++ + } + if years+int64(100) > int64(limits.INT_MAX) || years+int64(100) < int64(-Int32FromInt32(1)-Int32FromInt32(0x7fffffff)) { + return -int32(1) + } + (*ctime.Tm)(unsafe.Pointer(tm)).Ftm_year = int32(years + int64(100)) + (*ctime.Tm)(unsafe.Pointer(tm)).Ftm_mon = months + int32(2) + (*ctime.Tm)(unsafe.Pointer(tm)).Ftm_mday = remdays + int32(1) + (*ctime.Tm)(unsafe.Pointer(tm)).Ftm_wday = wday + (*ctime.Tm)(unsafe.Pointer(tm)).Ftm_yday = yday + (*ctime.Tm)(unsafe.Pointer(tm)).Ftm_hour = remsecs / int32(3600) + (*ctime.Tm)(unsafe.Pointer(tm)).Ftm_min = remsecs / int32(60) % int32(60) + (*ctime.Tm)(unsafe.Pointer(tm)).Ftm_sec = remsecs % int32(60) + return 0 +} diff --git a/vendor/modernc.org/libc/libc_unix1.go b/vendor/modernc.org/libc/libc_unix1.go new file mode 100644 index 000000000..f4e5f7aef --- /dev/null +++ b/vendor/modernc.org/libc/libc_unix1.go @@ -0,0 +1,27 @@ +// Copyright 2024 The Libc Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build unix && !illumos && !(linux && (amd64 || arm64 || loong64 || ppc64le || s390x || riscv64 || 386 || arm)) && !openbsd + +package libc // import "modernc.org/libc" + +import ( + "golang.org/x/sys/unix" + + "modernc.org/libc/sys/types" +) + +// ssize_t recvmsg(int sockfd, struct msghdr *msg, int flags); +func Xrecvmsg(t *TLS, sockfd int32, msg uintptr, flags int32) types.Ssize_t { + if __ccgo_strace { + trc("t=%v sockfd=%v msg=%v flags=%v, (%v:)", t, sockfd, msg, flags, origin(2)) + } + n, _, err := unix.Syscall(unix.SYS_RECVMSG, uintptr(sockfd), msg, uintptr(flags)) + if err != 0 { + t.setErrno(err) + return -1 + } + + return types.Ssize_t(n) +} diff --git a/vendor/modernc.org/libc/libc_unix2.go b/vendor/modernc.org/libc/libc_unix2.go new file mode 100644 index 000000000..4150bf58a --- /dev/null +++ b/vendor/modernc.org/libc/libc_unix2.go @@ -0,0 +1,26 @@ +// Copyright 2024 The Libc Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build illumos + +package libc // import "modernc.org/libc" + +import ( + "modernc.org/libc/sys/types" +) + +// ssize_t recvmsg(int sockfd, struct msghdr *msg, int flags); +func Xrecvmsg(t *TLS, sockfd int32, msg uintptr, flags int32) types.Ssize_t { + if __ccgo_strace { + trc("t=%v sockfd=%v msg=%v flags=%v, (%v:)", t, sockfd, msg, flags, origin(2)) + } + panic(todo("")) + // n, _, err := unix.Syscall(unix.SYS_RECVMSG, uintptr(sockfd), msg, uintptr(flags)) + // if err != 0 { + // t.setErrno(err) + // return -1 + // } + // + // return types.Ssize_t(n) +} diff --git a/vendor/modernc.org/libc/libc_unix3.go b/vendor/modernc.org/libc/libc_unix3.go new file mode 100644 index 000000000..a284d5dfc --- /dev/null +++ b/vendor/modernc.org/libc/libc_unix3.go @@ -0,0 +1,46 @@ +// Copyright 2024 The Libc Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build unix && !illumos && !(linux && (amd64 || arm64 || loong64 || ppc64le || s390x || riscv64 || 386 || arm)) + +package libc // import "modernc.org/libc" + +import ( + "unsafe" + + "golang.org/x/sys/unix" + "modernc.org/libc/errno" + ctime "modernc.org/libc/time" +) + +// int clock_gettime(clockid_t clk_id, struct timespec *tp); +func Xclock_gettime(t *TLS, clk_id int32, tp uintptr) int32 { + if __ccgo_strace { + trc("t=%v clk_id=%v tp=%v, (%v:)", t, clk_id, tp, origin(2)) + } + var ts unix.Timespec + if err := unix.ClockGettime(clk_id, &ts); err != nil { + t.setErrno(err) + trc("FAIL: %v", err) + return -1 + } + + *(*unix.Timespec)(unsafe.Pointer(tp)) = ts + return 0 +} + +func Xgmtime_r(tls *TLS, t uintptr, tm uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v tm=%v, (%v:)", tls, t, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + if x___secs_to_tm(tls, int64(*(*time_t)(unsafe.Pointer(t))), tm) < 0 { + *(*int32)(unsafe.Pointer(X__errno_location(tls))) = int32(errno.EOVERFLOW) + return uintptr(0) + } + (*ctime.Tm)(unsafe.Pointer(tm)).Ftm_isdst = 0 + (*ctime.Tm)(unsafe.Pointer(tm)).Ftm_gmtoff = 0 + (*ctime.Tm)(unsafe.Pointer(tm)).Ftm_zone = uintptr(unsafe.Pointer(&x___utc)) + return tm +} diff --git a/vendor/modernc.org/libc/libc_windows.go b/vendor/modernc.org/libc/libc_windows.go index dc947a553..bc3366ca9 100644 --- a/vendor/modernc.org/libc/libc_windows.go +++ b/vendor/modernc.org/libc/libc_windows.go @@ -8,19 +8,22 @@ import ( "errors" "fmt" "math" + mbits "math/bits" "os" "os/exec" "os/user" "path/filepath" + "runtime/debug" "strings" "sync" "sync/atomic" - "syscall" gotime "time" "unicode" "unicode/utf16" "unsafe" + "github.com/ncruces/go-strftime" + "golang.org/x/sys/windows" "modernc.org/libc/errno" "modernc.org/libc/fcntl" "modernc.org/libc/limits" @@ -35,10 +38,13 @@ import ( var X__imp__environ = EnvironP() var X__imp__wenviron = uintptr(unsafe.Pointer(&wenviron)) var X_imp___environ = EnvironP() +var X_imp___wenviron = uintptr(unsafe.Pointer(&wenviron)) var X_iob [stdio.X_IOB_ENTRIES]stdio.FILE - +var Xin6addr_any [16]byte var Xtimezone long // extern long timezone; +type Tsize_t = types.Size_t + var ( iobMap = map[uintptr]int32{} // &_iob[fd] -> fd wenvValid bool @@ -52,6 +58,13 @@ func init() { } } +func X__p__wenviron(t *TLS) uintptr { + if !wenvValid { + bootWinEnviron(t) + } + return uintptr(unsafe.Pointer(&wenviron)) +} + func winGetObject(stream uintptr) interface{} { if fd, ok := iobMap[stream]; ok { f, _ := fdToFile(fd) @@ -62,12 +75,13 @@ func winGetObject(stream uintptr) interface{} { } type ( - long = int32 - ulong = uint32 + syscallErrno = windows.Errno + long = int32 + ulong = uint32 ) var ( - modkernel32 = syscall.NewLazyDLL("kernel32.dll") + modkernel32 = windows.NewLazySystemDLL("kernel32.dll") //-- procAreFileApisANSI = modkernel32.NewProc("AreFileApisANSI") procCopyFileW = modkernel32.NewProc("CopyFileW") @@ -114,6 +128,7 @@ var ( procGetModuleFileNameW = modkernel32.NewProc("GetModuleFileNameW") procGetModuleHandleA = modkernel32.NewProc("GetModuleHandleA") procGetModuleHandleW = modkernel32.NewProc("GetModuleHandleW") + procGetNativeSystemInfo = modkernel32.NewProc("GetNativeSystemInfo") procGetPrivateProfileStringA = modkernel32.NewProc("GetPrivateProfileStringA") procGetProcAddress = modkernel32.NewProc("GetProcAddress") procGetProcessHeap = modkernel32.NewProc("GetProcessHeap") @@ -137,6 +152,7 @@ var ( procMoveFileW = modkernel32.NewProc("MoveFileW") procMultiByteToWideChar = modkernel32.NewProc("MultiByteToWideChar") procOpenEventA = modkernel32.NewProc("OpenEventA") + procOpenProcessToken = modkernel32.NewProc("OpenProcessToken") procPeekConsoleInputW = modkernel32.NewProc("PeekConsoleInputW") procPeekNamedPipe = modkernel32.NewProc("PeekNamedPipe") procQueryPerformanceCounter = modkernel32.NewProc("QueryPerformanceCounter") @@ -150,9 +166,11 @@ var ( procSetConsoleTextAttribute = modkernel32.NewProc("SetConsoleTextAttribute") procSetEvent = modkernel32.NewProc("SetEvent") procSetFilePointer = modkernel32.NewProc("SetFilePointer") + procSetFileTime = modkernel32.NewProc("SetFileTime") procSleepEx = modkernel32.NewProc("SleepEx") procSystemTimeToFileTime = modkernel32.NewProc("SystemTimeToFileTime") procTerminateThread = modkernel32.NewProc("TerminateThread") + procTryEnterCriticalSection = modkernel32.NewProc("TryEnterCriticalSection") procUnlockFile = modkernel32.NewProc("UnlockFile") procUnlockFileEx = modkernel32.NewProc("UnlockFileEx") procWaitForSingleObjectEx = modkernel32.NewProc("WaitForSingleObjectEx") @@ -165,30 +183,38 @@ var ( // procSetThreadPriority = modkernel32.NewProc("SetThreadPriority") //-- - modadvapi = syscall.NewLazyDLL("advapi32.dll") + modadvapi = windows.NewLazySystemDLL("advapi32.dll") //-- procAccessCheck = modadvapi.NewProc("AccessCheck") + procAddAce = modadvapi.NewProc("AddAce") + procEqualSid = modadvapi.NewProc("EqualSid") + procGetAce = modadvapi.NewProc("GetAce") procGetAclInformation = modadvapi.NewProc("GetAclInformation") procGetFileSecurityA = modadvapi.NewProc("GetFileSecurityA") procGetFileSecurityW = modadvapi.NewProc("GetFileSecurityW") + procGetLengthSid = modadvapi.NewProc("GetLengthSid") + procGetNamedSecurityInfoW = modadvapi.NewProc("GetNamedSecurityInfoW") procGetSecurityDescriptorDacl = modadvapi.NewProc("GetSecurityDescriptorDacl") procGetSecurityDescriptorOwner = modadvapi.NewProc("GetSecurityDescriptorOwner") procGetSidIdentifierAuthority = modadvapi.NewProc("GetSidIdentifierAuthority") procGetSidLengthRequired = modadvapi.NewProc("GetSidLengthRequired") procGetSidSubAuthority = modadvapi.NewProc("GetSidSubAuthority") + procGetTokenInformation = modadvapi.NewProc("GetTokenInformation") procImpersonateSelf = modadvapi.NewProc("ImpersonateSelf") + procInitializeAcl = modadvapi.NewProc("InitializeAcl") procInitializeSid = modadvapi.NewProc("InitializeSid") procOpenThreadToken = modadvapi.NewProc("OpenThreadToken") procRevertToSelf = modadvapi.NewProc("RevertToSelf") //-- - modws2_32 = syscall.NewLazyDLL("ws2_32.dll") + modws2_32 = windows.NewLazySystemDLL("ws2_32.dll") //-- procWSAStartup = modws2_32.NewProc("WSAStartup") //-- - moduser32 = syscall.NewLazyDLL("user32.dll") + moduser32 = windows.NewLazySystemDLL("user32.dll") //-- + procCharLowerW = moduser32.NewProc("CharLowerW") procCreateWindowExW = moduser32.NewProc("CreateWindowExW") procMsgWaitForMultipleObjectsEx = moduser32.NewProc("MsgWaitForMultipleObjectsEx") procPeekMessageW = moduser32.NewProc("PeekMessageW") @@ -197,12 +223,41 @@ var ( procWaitForInputIdle = moduser32.NewProc("WaitForInputIdle") //-- - netapi = syscall.NewLazyDLL("netapi32.dll") + netapi = windows.NewLazySystemDLL("netapi32.dll") procNetGetDCName = netapi.NewProc("NetGetDCName") procNetUserGetInfo = netapi.NewProc("NetUserGetInfo") - userenvapi = syscall.NewLazyDLL("userenv.dll") + userenvapi = windows.NewLazySystemDLL("userenv.dll") procGetProfilesDirectoryW = userenvapi.NewProc("GetProfilesDirectoryW") + + modcrt = windows.NewLazySystemDLL("msvcrt.dll") + procAccess = modcrt.NewProc("_access") + procChmod = modcrt.NewProc("_chmod") + procCtime64 = modcrt.NewProc("ctime64") + procGmtime = modcrt.NewProc("gmtime") + procGmtime32 = modcrt.NewProc("_gmtime32") + procGmtime64 = modcrt.NewProc("_gmtime64") + procStati64 = modcrt.NewProc("_stati64") + procStrftime = modcrt.NewProc("strftime") + procStrnicmp = modcrt.NewProc("_strnicmp") + procStrtod = modcrt.NewProc("strtod") + procTime64 = modcrt.NewProc("time64") + procWcsncpy = modcrt.NewProc("wcsncpy") + procWcsrchr = modcrt.NewProc("wcsrchr") + + moducrt = windows.NewLazySystemDLL("ucrtbase.dll") + procFindfirst32 = moducrt.NewProc("_findfirst32") + procFindnext32 = moducrt.NewProc("_findnext32") + procStat64i32 = moducrt.NewProc("_stat64i32") + procWchmod = moducrt.NewProc("_wchmod") + procWfindfirst32 = moducrt.NewProc("_wfindfirst32") + procWfindfirst64i32 = moducrt.NewProc("_wfindfirst64i32") + procWfindnext32 = moducrt.NewProc("_wfindnext32") + procWfindnext64i32 = moducrt.NewProc("_wfindnext64i32") + procWfullpath = moducrt.NewProc("_wfullpath") + procWmkdir = moducrt.NewProc("_wmkdir") + procWstat32 = moducrt.NewProc("_wstat32") + procWstat64i32 = moducrt.NewProc("_wstat64i32") ) var ( @@ -211,7 +266,7 @@ var ( func init() { isWindows = true - threadCallback = syscall.NewCallback(ThreadProc) + threadCallback = windows.NewCallback(ThreadProc) } // --------------------------------- @@ -219,7 +274,7 @@ func init() { // so the lib-c interface contract looks // like normal fds being passed around // but we're mapping them back and forth to -// native windows file handles (syscall.Handle) +// native windows file handles (windows.Handle) // var EBADF = errors.New("EBADF") @@ -232,10 +287,10 @@ type file struct { _fd int32 hadErr bool t uintptr - syscall.Handle + windows.Handle } -func addFile(hdl syscall.Handle, fd int32) uintptr { +func addFile(hdl windows.Handle, fd int32) uintptr { var f = file{_fd: fd, Handle: hdl} w_fdLock.Lock() defer w_fdLock.Unlock() @@ -259,7 +314,7 @@ func fdToFile(fd int32) (*file, bool) { } // Wrap the windows handle up tied to a unique fd -func wrapFdHandle(hdl syscall.Handle) (uintptr, int32) { +func wrapFdHandle(hdl windows.Handle) (uintptr, int32) { newFd := atomic.AddInt32(&w_nextFd, 1) return addFile(hdl, newFd), newFd } @@ -272,6 +327,22 @@ func (f *file) setErr() { f.hadErr = true } +func (tls *TLS) SetLastError(_dwErrCode uint32) { + if tls != nil { + tls.lastError = _dwErrCode + } +} + +// https://github.com/golang/go/issues/41220 + +func (tls *TLS) GetLastError() (r uint32) { + if tls == nil { + return 0 + } + + return tls.lastError +} + // ----------------------------------- // On windows we have to fetch these // @@ -288,21 +359,21 @@ func (f *file) setErr() { func newFile(t *TLS, fd int32) uintptr { if fd == unistd.STDIN_FILENO { - h, err := syscall.GetStdHandle(syscall.STD_INPUT_HANDLE) + h, err := windows.GetStdHandle(windows.STD_INPUT_HANDLE) if err != nil { panic("no console") } return addFile(h, fd) } if fd == unistd.STDOUT_FILENO { - h, err := syscall.GetStdHandle(syscall.STD_OUTPUT_HANDLE) + h, err := windows.GetStdHandle(windows.STD_OUTPUT_HANDLE) if err != nil { panic("no console") } return addFile(h, fd) } if fd == unistd.STDERR_FILENO { - h, err := syscall.GetStdHandle(syscall.STD_ERROR_HANDLE) + h, err := windows.GetStdHandle(windows.STD_ERROR_HANDLE) if err != nil { panic("no console") } @@ -319,7 +390,7 @@ func newFile(t *TLS, fd int32) uintptr { func (f *file) close(t *TLS) int32 { remFile(f) - err := syscall.Close(f.Handle) + err := windows.Close(f.Handle) if err != nil { return (-1) // EOF } @@ -339,11 +410,14 @@ func fwrite(fd int32, b []byte) (int, error) { if dmesgs { dmesg("%v: fd %v: %s", origin(1), fd, b) } - return syscall.Write(f.Handle, b) + return windows.Write(f.Handle, b) } // int fprintf(FILE *stream, const char *format, ...); func Xfprintf(t *TLS, stream, format, args uintptr) int32 { + if __ccgo_strace { + trc("t=%v args=%v, (%v:)", t, args, origin(2)) + } f, ok := winGetObject(stream).(*file) if !ok { t.setErrno(errno.EBADF) @@ -356,12 +430,18 @@ func Xfprintf(t *TLS, stream, format, args uintptr) int32 { // int usleep(useconds_t usec); func Xusleep(t *TLS, usec types.Useconds_t) int32 { + if __ccgo_strace { + trc("t=%v usec=%v, (%v:)", t, usec, origin(2)) + } gotime.Sleep(gotime.Microsecond * gotime.Duration(usec)) return 0 } // int getrusage(int who, struct rusage *usage); func Xgetrusage(t *TLS, who int32, usage uintptr) int32 { + if __ccgo_strace { + trc("t=%v who=%v usage=%v, (%v:)", t, who, usage, origin(2)) + } panic(todo("")) // if _, _, err := unix.Syscall(unix.SYS_GETRUSAGE, uintptr(who), usage, 0); err != 0 { // t.setErrno(err) @@ -373,17 +453,26 @@ func Xgetrusage(t *TLS, who int32, usage uintptr) int32 { // int lstat(const char *pathname, struct stat *statbuf); func Xlstat(t *TLS, pathname, statbuf uintptr) int32 { + if __ccgo_strace { + trc("t=%v statbuf=%v, (%v:)", t, statbuf, origin(2)) + } return Xlstat64(t, pathname, statbuf) } // int stat(const char *pathname, struct stat *statbuf); func Xstat(t *TLS, pathname, statbuf uintptr) int32 { + if __ccgo_strace { + trc("t=%v statbuf=%v, (%v:)", t, statbuf, origin(2)) + } return Xstat64(t, pathname, statbuf) } // int chdir(const char *path); func Xchdir(t *TLS, path uintptr) int32 { - err := syscall.Chdir(GoString(path)) + if __ccgo_strace { + trc("t=%v path=%v, (%v:)", t, path, origin(2)) + } + err := windows.Chdir(GoString(path)) if err != nil { t.setErrno(err) return -1 @@ -399,11 +488,7 @@ var localtime time.Tm // struct tm *localtime(const time_t *timep); func Xlocaltime(_ *TLS, timep uintptr) uintptr { - loc := gotime.Local - if r := getenv(Environ(), "TZ"); r != 0 { - zone, off := parseZone(GoString(r)) - loc = gotime.FixedZone(zone, -off) - } + loc := getLocalLocation() ut := *(*time.Time_t)(unsafe.Pointer(timep)) t := gotime.Unix(int64(ut), 0).In(loc) localtime.Ftm_sec = int32(t.Second()) @@ -426,11 +511,7 @@ func X_localtime64(_ *TLS, timep uintptr) uintptr { // struct tm *localtime_r(const time_t *timep, struct tm *result); func Xlocaltime_r(_ *TLS, timep, result uintptr) uintptr { panic(todo("")) - // loc := gotime.Local - // if r := getenv(Environ(), "TZ"); r != 0 { - // zone, off := parseZone(GoString(r)) - // loc = gotime.FixedZone(zone, -off) - // } + // loc := getLocalLocation() // ut := *(*unix.Time_t)(unsafe.Pointer(timep)) // t := gotime.Unix(int64(ut), 0).In(loc) // (*time.Tm)(unsafe.Pointer(result)).Ftm_sec = int32(t.Second()) @@ -453,12 +534,15 @@ func Xlocaltime_r(_ *TLS, timep, result uintptr) uintptr { // // ); func X_wopen(t *TLS, pathname uintptr, flags int32, args uintptr) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v flags=%v args=%v, (%v:)", t, pathname, flags, args, origin(2)) + } var mode types.Mode_t if args != 0 { mode = *(*types.Mode_t)(unsafe.Pointer(args)) } s := goWideString(pathname) - h, err := syscall.Open(GoString(pathname), int(flags), uint32(mode)) + h, err := windows.Open(GoString(pathname), int(flags), uint32(mode)) if err != nil { if dmesgs { dmesg("%v: %q %#x: %v", origin(1), s, flags, err) @@ -477,18 +561,24 @@ func X_wopen(t *TLS, pathname uintptr, flags int32, args uintptr) int32 { // int open(const char *pathname, int flags, ...); func Xopen(t *TLS, pathname uintptr, flags int32, args uintptr) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v flags=%v args=%v, (%v:)", t, pathname, flags, args, origin(2)) + } return Xopen64(t, pathname, flags, args) } // int open(const char *pathname, int flags, ...); func Xopen64(t *TLS, pathname uintptr, flags int32, cmode uintptr) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v flags=%v cmode=%v, (%v:)", t, pathname, flags, cmode, origin(2)) + } var mode types.Mode_t if cmode != 0 { mode = (types.Mode_t)(VaUint32(&cmode)) } // fdcwd := fcntl.AT_FDCWD - h, err := syscall.Open(GoString(pathname), int(flags), uint32(mode)) + h, err := windows.Open(GoString(pathname), int(flags), uint32(mode)) if err != nil { if dmesgs { @@ -508,16 +598,19 @@ func Xopen64(t *TLS, pathname uintptr, flags int32, cmode uintptr) int32 { // off_t lseek(int fd, off_t offset, int whence); func Xlseek(t *TLS, fd int32, offset types.Off_t, whence int32) types.Off_t { + if __ccgo_strace { + trc("t=%v fd=%v offset=%v whence=%v, (%v:)", t, fd, offset, whence, origin(2)) + } return types.Off_t(Xlseek64(t, fd, offset, whence)) } func whenceStr(whence int32) string { switch whence { - case syscall.FILE_CURRENT: + case windows.FILE_CURRENT: return "SEEK_CUR" - case syscall.FILE_END: + case windows.FILE_END: return "SEEK_END" - case syscall.FILE_BEGIN: + case windows.FILE_BEGIN: return "SEEK_SET" default: return fmt.Sprintf("whence(%d)", whence) @@ -528,13 +621,16 @@ var fsyncStatbuf stat.Stat // int fsync(int fd); func Xfsync(t *TLS, fd int32) int32 { + if __ccgo_strace { + trc("t=%v fd=%v, (%v:)", t, fd, origin(2)) + } f, ok := fdToFile(fd) if !ok { t.setErrno(errno.EBADF) return -1 } - err := syscall.FlushFileBuffers(f.Handle) + err := windows.FlushFileBuffers(f.Handle) if err != nil { t.setErrno(err) return -1 @@ -548,6 +644,9 @@ func Xfsync(t *TLS, fd int32) int32 { // long sysconf(int name); func Xsysconf(t *TLS, name int32) long { + if __ccgo_strace { + trc("t=%v name=%v, (%v:)", t, name, origin(2)) + } panic(todo("")) // switch name { // case unistd.X_SC_PAGESIZE: @@ -559,6 +658,9 @@ func Xsysconf(t *TLS, name int32) long { // int close(int fd); func Xclose(t *TLS, fd int32) int32 { + if __ccgo_strace { + trc("t=%v fd=%v, (%v:)", t, fd, origin(2)) + } f, ok := fdToFile(fd) if !ok { @@ -566,7 +668,7 @@ func Xclose(t *TLS, fd int32) int32 { return -1 } - err := syscall.Close(f.Handle) + err := windows.Close(f.Handle) if err != nil { t.setErrno(err) return -1 @@ -580,9 +682,12 @@ func Xclose(t *TLS, fd int32) int32 { // char *getcwd(char *buf, size_t size); func Xgetcwd(t *TLS, buf uintptr, size types.Size_t) uintptr { + if __ccgo_strace { + trc("t=%v buf=%v size=%v, (%v:)", t, buf, size, origin(2)) + } b := make([]uint16, size) - n, err := syscall.GetCurrentDirectory(uint32(len(b)), &b[0]) + n, err := windows.GetCurrentDirectory(uint32(len(b)), &b[0]) if err != nil { t.setErrno(err) return 0 @@ -605,16 +710,25 @@ func Xgetcwd(t *TLS, buf uintptr, size types.Size_t) uintptr { // int fstat(int fd, struct stat *statbuf); func Xfstat(t *TLS, fd int32, statbuf uintptr) int32 { + if __ccgo_strace { + trc("t=%v fd=%v statbuf=%v, (%v:)", t, fd, statbuf, origin(2)) + } return Xfstat64(t, fd, statbuf) } // int ftruncate(int fd, off_t length); func Xftruncate(t *TLS, fd int32, length types.Off_t) int32 { + if __ccgo_strace { + trc("t=%v fd=%v length=%v, (%v:)", t, fd, length, origin(2)) + } return Xftruncate64(t, fd, length) } // int fcntl(int fd, int cmd, ... /* arg */ ); func Xfcntl(t *TLS, fd, cmd int32, args uintptr) int32 { + if __ccgo_strace { + trc("t=%v cmd=%v args=%v, (%v:)", t, cmd, args, origin(2)) + } return Xfcntl64(t, fd, cmd, args) } @@ -626,6 +740,9 @@ func Xfcntl(t *TLS, fd, cmd int32, args uintptr) int32 { // // ); func Xread(t *TLS, fd int32, buf uintptr, count uint32) int32 { + if __ccgo_strace { + trc("t=%v fd=%v buf=%v count=%v, (%v:)", t, fd, buf, count, origin(2)) + } f, ok := fdToFile(fd) if !ok { t.setErrno(errno.EBADF) @@ -633,7 +750,7 @@ func Xread(t *TLS, fd int32, buf uintptr, count uint32) int32 { } var obuf = ((*RawMem)(unsafe.Pointer(buf)))[:count] - n, err := syscall.Read(f.Handle, obuf) + n, err := windows.Read(f.Handle, obuf) if err != nil { t.setErrno(err) return -1 @@ -646,6 +763,13 @@ func Xread(t *TLS, fd int32, buf uintptr, count uint32) int32 { return int32(n) } +func X_read(t *TLS, fd int32, buf uintptr, count uint32) int32 { + if __ccgo_strace { + trc("t=%v fd=%v buf=%v count=%v, (%v:)", t, fd, buf, count, origin(2)) + } + return Xread(t, fd, buf, count) +} + // int _write( // https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/write?view=msvc-160 // // int fd, @@ -654,6 +778,9 @@ func Xread(t *TLS, fd int32, buf uintptr, count uint32) int32 { // // ); func Xwrite(t *TLS, fd int32, buf uintptr, count uint32) int32 { + if __ccgo_strace { + trc("t=%v fd=%v buf=%v count=%v, (%v:)", t, fd, buf, count, origin(2)) + } f, ok := fdToFile(fd) if !ok { t.setErrno(errno.EBADF) @@ -661,7 +788,7 @@ func Xwrite(t *TLS, fd int32, buf uintptr, count uint32) int32 { } var obuf = ((*RawMem)(unsafe.Pointer(buf)))[:count] - n, err := syscall.Write(f.Handle, obuf) + n, err := windows.Write(f.Handle, obuf) if err != nil { if dmesgs { dmesg("%v: fd %v, count %#x: %v", origin(1), fd, count, err) @@ -677,8 +804,18 @@ func Xwrite(t *TLS, fd int32, buf uintptr, count uint32) int32 { return int32(n) } +func X_write(t *TLS, fd int32, buf uintptr, count uint32) int32 { + if __ccgo_strace { + trc("t=%v fd=%v buf=%v count=%v, (%v:)", t, fd, buf, count, origin(2)) + } + return Xwrite(t, fd, buf, count) +} + // int fchmod(int fd, mode_t mode); func Xfchmod(t *TLS, fd int32, mode types.Mode_t) int32 { + if __ccgo_strace { + trc("t=%v fd=%v mode=%v, (%v:)", t, fd, mode, origin(2)) + } panic(todo("")) // if _, _, err := unix.Syscall(unix.SYS_FCHMOD, uintptr(fd), uintptr(mode), 0); err != 0 { // t.setErrno(err) @@ -709,6 +846,9 @@ func Xfchmod(t *TLS, fd int32, mode types.Mode_t) int32 { // int munmap(void *addr, size_t length); func Xmunmap(t *TLS, addr uintptr, length types.Size_t) int32 { + if __ccgo_strace { + trc("t=%v addr=%v length=%v, (%v:)", t, addr, length, origin(2)) + } panic(todo("")) // if _, _, err := unix.Syscall(unix.SYS_MUNMAP, addr, uintptr(length), 0); err != 0 { // t.setErrno(err) @@ -718,22 +858,49 @@ func Xmunmap(t *TLS, addr uintptr, length types.Size_t) int32 { // return 0 } +type Timeval = struct { + Ftv_sec int32 + Ftv_usec int32 +} + // int gettimeofday(struct timeval *tv, struct timezone *tz); func Xgettimeofday(t *TLS, tv, tz uintptr) int32 { - panic(todo("")) - // if tz != 0 { - // panic(todo("")) - // } - - // var tvs unix.Timeval - // err := unix.Gettimeofday(&tvs) - // if err != nil { - // t.setErrno(err) - // return -1 - // } + if __ccgo_strace { + trc("t=%v tz=%v, (%v:)", t, tz, origin(2)) + } + if tv == 0 { + return 0 + } - // *(*unix.Timeval)(unsafe.Pointer(tv)) = tvs + // This seems to work as well + // var u64 uint64 + // procGetSystemTimeAsFileTime.Call(uintptr(unsafe.Pointer(&u64)), 0, 0) + // u64 /= 10 + // u64 -= 11644473600000000 + // (*Timeval)(unsafe.Pointer(tv)).Ftv_sec = int32(u64/1e6) + // (*Timeval)(unsafe.Pointer(tv)).Ftv_usec = int32(u64%1e6) // return 0 + + // But let's use the golang.org/x/sys version + windows.Gettimeofday((*windows.Timeval)(unsafe.Pointer(tv))) + return 0 +} + +type Timespec = struct { + Ftv_sec time.Time_t + Ftv_nsec int32 +} + +// int clock_gettime(clockid_t clk_id, struct timespec *tp); +func Xclock_gettime(t *TLS, clk_id int32, tp uintptr) int32 { + if __ccgo_strace { + trc("t=%v clk_id=%v tp=%v, (%v:)", t, clk_id, tp, origin(2)) + } + var u64 uint64 // [100ns] + procGetSystemTimeAsFileTime.Call(uintptr(unsafe.Pointer(&u64)), 0, 0) + (*Timespec)(unsafe.Pointer(tp)).Ftv_sec = time.Time_t((u64/10 - 11644473600000000) / 1e6) + (*Timespec)(unsafe.Pointer(tp)).Ftv_nsec = int32((u64 * 100) % 1e9) + return 0 } // int getsockopt(int sockfd, int level, int optname, void *optval, socklen_t *optlen); @@ -754,6 +921,9 @@ func Xsetsockopt(t *TLS, _ ...interface{}) int32 { // int ioctl(int fd, unsigned long request, ...); func Xioctl(t *TLS, fd int32, request ulong, va uintptr) int32 { + if __ccgo_strace { + trc("t=%v fd=%v request=%v va=%v, (%v:)", t, fd, request, va, origin(2)) + } panic(todo("")) // var argp uintptr // if va != 0 { @@ -770,6 +940,9 @@ func Xioctl(t *TLS, fd int32, request ulong, va uintptr) int32 { // int select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout); func Xselect(t *TLS, nfds int32, readfds, writefds, exceptfds, timeout uintptr) int32 { + if __ccgo_strace { + trc("t=%v nfds=%v timeout=%v, (%v:)", t, nfds, timeout, origin(2)) + } panic(todo("")) // n, err := unix.Select( // int(nfds), @@ -788,6 +961,9 @@ func Xselect(t *TLS, nfds int32, readfds, writefds, exceptfds, timeout uintptr) // int mkfifo(const char *pathname, mode_t mode); func Xmkfifo(t *TLS, pathname uintptr, mode types.Mode_t) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v mode=%v, (%v:)", t, pathname, mode, origin(2)) + } panic(todo("")) // if err := unix.Mkfifo(GoString(pathname), mode); err != nil { // t.setErrno(err) @@ -799,6 +975,9 @@ func Xmkfifo(t *TLS, pathname uintptr, mode types.Mode_t) int32 { // mode_t umask(mode_t mask); func Xumask(t *TLS, mask types.Mode_t) types.Mode_t { + if __ccgo_strace { + trc("t=%v mask=%v, (%v:)", t, mask, origin(2)) + } panic(todo("")) // n, _, _ := unix.Syscall(unix.SYS_UMASK, uintptr(mask), 0, 0) // return types.Mode_t(n) @@ -806,6 +985,9 @@ func Xumask(t *TLS, mask types.Mode_t) types.Mode_t { // int execvp(const char *file, char *const argv[]); func Xexecvp(t *TLS, file, argv uintptr) int32 { + if __ccgo_strace { + trc("t=%v argv=%v, (%v:)", t, argv, origin(2)) + } panic(todo("")) // if _, _, err := unix.Syscall(unix.SYS_EXECVE, file, argv, Environ()); err != 0 { // t.setErrno(err) @@ -817,6 +999,9 @@ func Xexecvp(t *TLS, file, argv uintptr) int32 { // pid_t waitpid(pid_t pid, int *wstatus, int options); func Xwaitpid(t *TLS, pid types.Pid_t, wstatus uintptr, optname int32) types.Pid_t { + if __ccgo_strace { + trc("t=%v pid=%v wstatus=%v optname=%v, (%v:)", t, pid, wstatus, optname, origin(2)) + } panic(todo("")) // n, _, err := unix.Syscall6(unix.SYS_WAIT4, uintptr(pid), wstatus, uintptr(optname), 0, 0, 0) // if err != 0 { @@ -829,6 +1014,9 @@ func Xwaitpid(t *TLS, pid types.Pid_t, wstatus uintptr, optname int32) types.Pid // int uname(struct utsname *buf); func Xuname(t *TLS, buf uintptr) int32 { + if __ccgo_strace { + trc("t=%v buf=%v, (%v:)", t, buf, origin(2)) + } panic(todo("")) // if _, _, err := unix.Syscall(unix.SYS_UNAME, buf, 0, 0); err != 0 { // t.setErrno(err) @@ -840,16 +1028,25 @@ func Xuname(t *TLS, buf uintptr) int32 { // int getrlimit(int resource, struct rlimit *rlim); func Xgetrlimit(t *TLS, resource int32, rlim uintptr) int32 { + if __ccgo_strace { + trc("t=%v resource=%v rlim=%v, (%v:)", t, resource, rlim, origin(2)) + } return Xgetrlimit64(t, resource, rlim) } // int setrlimit(int resource, const struct rlimit *rlim); func Xsetrlimit(t *TLS, resource int32, rlim uintptr) int32 { + if __ccgo_strace { + trc("t=%v resource=%v rlim=%v, (%v:)", t, resource, rlim, origin(2)) + } return Xsetrlimit64(t, resource, rlim) } // int setrlimit(int resource, const struct rlimit *rlim); func Xsetrlimit64(t *TLS, resource int32, rlim uintptr) int32 { + if __ccgo_strace { + trc("t=%v resource=%v rlim=%v, (%v:)", t, resource, rlim, origin(2)) + } panic(todo("")) // if _, _, err := unix.Syscall(unix.SYS_SETRLIMIT, uintptr(resource), uintptr(rlim), 0); err != 0 { // t.setErrno(err) @@ -866,11 +1063,17 @@ func Xsetrlimit64(t *TLS, resource int32, rlim uintptr) int32 { // pid_t getpid(void); func Xgetpid(t *TLS) int32 { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } return int32(os.Getpid()) } // int system(const char *command); func Xsystem(t *TLS, command uintptr) int32 { + if __ccgo_strace { + trc("t=%v command=%v, (%v:)", t, command, origin(2)) + } s := GoString(command) if command == 0 { panic(todo("")) @@ -905,6 +1108,9 @@ func Xsystem(t *TLS, command uintptr) int32 { // struct passwd *getpwuid(uid_t uid); func Xgetpwuid(t *TLS, uid uint32) uintptr { + if __ccgo_strace { + trc("t=%v uid=%v, (%v:)", t, uid, origin(2)) + } panic(todo("")) // f, err := os.Open("/etc/passwd") // if err != nil { @@ -963,26 +1169,41 @@ func Xgetpwuid(t *TLS, uid uint32) uintptr { // int setvbuf(FILE *stream, char *buf, int mode, size_t size); func Xsetvbuf(t *TLS, stream, buf uintptr, mode int32, size types.Size_t) int32 { + if __ccgo_strace { + trc("t=%v buf=%v mode=%v size=%v, (%v:)", t, buf, mode, size, origin(2)) + } return 0 //TODO } // int raise(int sig); func Xraise(t *TLS, sig int32) int32 { + if __ccgo_strace { + trc("t=%v sig=%v, (%v:)", t, sig, origin(2)) + } panic(todo("")) } // int backtrace(void **buffer, int size); func Xbacktrace(t *TLS, buf uintptr, size int32) int32 { + if __ccgo_strace { + trc("t=%v buf=%v size=%v, (%v:)", t, buf, size, origin(2)) + } panic(todo("")) } // void backtrace_symbols_fd(void *const *buffer, int size, int fd); func Xbacktrace_symbols_fd(t *TLS, buffer uintptr, size, fd int32) { + if __ccgo_strace { + trc("t=%v buffer=%v fd=%v, (%v:)", t, buffer, fd, origin(2)) + } panic(todo("")) } // int fileno(FILE *stream); func Xfileno(t *TLS, stream uintptr) int32 { + if __ccgo_strace { + trc("t=%v stream=%v, (%v:)", t, stream, origin(2)) + } if stream == 0 { t.setErrno(errno.EBADF) return -1 @@ -1160,11 +1381,17 @@ func Xfileno(t *TLS, stream uintptr) int32 { // int mkstemps(char *template, int suffixlen); func Xmkstemps(t *TLS, template uintptr, suffixlen int32) int32 { + if __ccgo_strace { + trc("t=%v template=%v suffixlen=%v, (%v:)", t, template, suffixlen, origin(2)) + } return Xmkstemps64(t, template, suffixlen) } // int mkstemps(char *template, int suffixlen); func Xmkstemps64(t *TLS, template uintptr, suffixlen int32) int32 { + if __ccgo_strace { + trc("t=%v template=%v suffixlen=%v, (%v:)", t, template, suffixlen, origin(2)) + } panic(todo("")) // len := uintptr(Xstrlen(t, template)) // x := template + uintptr(len-6) - uintptr(suffixlen) @@ -1186,10 +1413,13 @@ func Xmkstemps64(t *TLS, template uintptr, suffixlen int32) int32 { // int mkstemp(char *template); func Xmkstemp64(t *TLS, template uintptr) int32 { + if __ccgo_strace { + trc("t=%v template=%v, (%v:)", t, template, origin(2)) + } return Xmkstemps64(t, template, 0) } -// func newFtsent(t *TLS, info int, path string, stat *unix.Stat_t, err syscall.Errno) (r *fts.FTSENT) { +// func newFtsent(t *TLS, info int, path string, stat *unix.Stat_t, err windows.Errno) (r *fts.FTSENT) { // var statp uintptr // if stat != nil { // statp = Xmalloc(t, types.Size_t(unsafe.Sizeof(unix.Stat_t{}))) @@ -1213,7 +1443,7 @@ func Xmkstemp64(t *TLS, template uintptr) int32 { // } // } // -// func newCFtsent(t *TLS, info int, path string, stat *unix.Stat_t, err syscall.Errno) uintptr { +// func newCFtsent(t *TLS, info int, path string, stat *unix.Stat_t, err windows.Errno) uintptr { // p := Xcalloc(t, types.Size_t(unsafe.Sizeof(fts.FTSENT{}))) // if p == 0 { // panic("OOM") @@ -1248,6 +1478,9 @@ type ftstream struct { // FTS *fts_open(char * const *path_argv, int options, int (*compar)(const FTSENT **, const FTSENT **)); func Xfts64_open(t *TLS, path_argv uintptr, options int32, compar uintptr) uintptr { + if __ccgo_strace { + trc("t=%v path_argv=%v options=%v compar=%v, (%v:)", t, path_argv, options, compar, origin(2)) + } panic(todo("")) // f := &ftstream{} // @@ -1353,11 +1586,17 @@ func Xfts64_open(t *TLS, path_argv uintptr, options int32, compar uintptr) uintp // FTSENT *fts_read(FTS *ftsp); func Xfts_read(t *TLS, ftsp uintptr) uintptr { + if __ccgo_strace { + trc("t=%v ftsp=%v, (%v:)", t, ftsp, origin(2)) + } return Xfts64_read(t, ftsp) } // FTSENT *fts_read(FTS *ftsp); func Xfts64_read(t *TLS, ftsp uintptr) uintptr { + if __ccgo_strace { + trc("t=%v ftsp=%v, (%v:)", t, ftsp, origin(2)) + } panic(todo("")) // f := winGetObject(ftsp).(*ftstream) // if f.x == len(f.s) { @@ -1375,11 +1614,17 @@ func Xfts64_read(t *TLS, ftsp uintptr) uintptr { // int fts_close(FTS *ftsp); func Xfts_close(t *TLS, ftsp uintptr) int32 { + if __ccgo_strace { + trc("t=%v ftsp=%v, (%v:)", t, ftsp, origin(2)) + } return Xfts64_close(t, ftsp) } // int fts_close(FTS *ftsp); func Xfts64_close(t *TLS, ftsp uintptr) int32 { + if __ccgo_strace { + trc("t=%v ftsp=%v, (%v:)", t, ftsp, origin(2)) + } panic(todo("")) // winGetObject(ftsp).(*ftstream).close(t) // removeObject(ftsp) @@ -1388,6 +1633,9 @@ func Xfts64_close(t *TLS, ftsp uintptr) int32 { // void tzset (void); func Xtzset(t *TLS) { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } //TODO } @@ -1395,37 +1643,62 @@ var strerrorBuf [256]byte // char *strerror(int errnum); func Xstrerror(t *TLS, errnum int32) uintptr { + if __ccgo_strace { + trc("t=%v errnum=%v, (%v:)", t, errnum, origin(2)) + } copy((*RawMem)(unsafe.Pointer(&strerrorBuf[0]))[:len(strerrorBuf):len(strerrorBuf)], fmt.Sprintf("errno %d\x00", errnum)) return uintptr(unsafe.Pointer(&strerrorBuf[0])) } // void *dlopen(const char *filename, int flags); func Xdlopen(t *TLS, filename uintptr, flags int32) uintptr { + if __ccgo_strace { + trc("t=%v filename=%v flags=%v, (%v:)", t, filename, flags, origin(2)) + } panic(todo("")) } // char *dlerror(void); func Xdlerror(t *TLS) uintptr { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } panic(todo("")) } // int dlclose(void *handle); func Xdlclose(t *TLS, handle uintptr) int32 { + if __ccgo_strace { + trc("t=%v handle=%v, (%v:)", t, handle, origin(2)) + } panic(todo("")) } // void *dlsym(void *handle, const char *symbol); func Xdlsym(t *TLS, handle, symbol uintptr) uintptr { + if __ccgo_strace { + trc("t=%v symbol=%v, (%v:)", t, symbol, origin(2)) + } panic(todo("")) } // void perror(const char *s); -func Xperror(t *TLS, s uintptr) { - panic(todo("")) +func Xperror(tls *TLS, msg uintptr) { + if __ccgo_strace { + trc("tls=%v msg=%v, (%v:)", tls, msg, origin(2)) + } + if msg != 0 && *(*int8)(unsafe.Pointer(msg)) != 0 { + fmt.Fprintf(os.Stderr, "%s: ", GoString(msg)) + } + errstr := Xstrerror(tls, *(*int32)(unsafe.Pointer(X__errno_location(tls)))) + fmt.Fprintf(os.Stderr, "%s\n", GoString(errstr)) } // int pclose(FILE *stream); func Xpclose(t *TLS, stream uintptr) int32 { + if __ccgo_strace { + trc("t=%v stream=%v, (%v:)", t, stream, origin(2)) + } panic(todo("")) } @@ -1433,17 +1706,26 @@ var gai_strerrorBuf [100]byte // const char *gai_strerror(int errcode); func Xgai_strerror(t *TLS, errcode int32) uintptr { + if __ccgo_strace { + trc("t=%v errcode=%v, (%v:)", t, errcode, origin(2)) + } copy(gai_strerrorBuf[:], fmt.Sprintf("gai error %d\x00", errcode)) return uintptr(unsafe.Pointer(&gai_strerrorBuf)) } // int tcgetattr(int fd, struct termios *termios_p); func Xtcgetattr(t *TLS, fd int32, termios_p uintptr) int32 { + if __ccgo_strace { + trc("t=%v fd=%v termios_p=%v, (%v:)", t, fd, termios_p, origin(2)) + } panic(todo("")) } // int tcsetattr(int fd, int optional_actions, const struct termios *termios_p); func Xtcsetattr(t *TLS, fd, optional_actions int32, termios_p uintptr) int32 { + if __ccgo_strace { + trc("t=%v optional_actions=%v termios_p=%v, (%v:)", t, optional_actions, termios_p, origin(2)) + } panic(todo("")) } @@ -1454,22 +1736,34 @@ func Xtcsetattr(t *TLS, fd, optional_actions int32, termios_p uintptr) int32 { // int cfsetospeed(struct termios *termios_p, speed_t speed); func Xcfsetospeed(t *TLS, termios_p uintptr, speed uint32) int32 { + if __ccgo_strace { + trc("t=%v termios_p=%v speed=%v, (%v:)", t, termios_p, speed, origin(2)) + } panic(todo("")) } // int cfsetispeed(struct termios *termios_p, speed_t speed); func Xcfsetispeed(t *TLS, termios_p uintptr, speed uint32) int32 { + if __ccgo_strace { + trc("t=%v termios_p=%v speed=%v, (%v:)", t, termios_p, speed, origin(2)) + } panic(todo("")) } // pid_t fork(void); func Xfork(t *TLS) int32 { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } t.setErrno(errno.ENOSYS) return -1 } // char *setlocale(int category, const char *locale); func Xsetlocale(t *TLS, category int32, locale uintptr) uintptr { + if __ccgo_strace { + trc("t=%v category=%v locale=%v, (%v:)", t, category, locale, origin(2)) + } return 0 //TODO } @@ -1480,11 +1774,17 @@ func Xsetlocale(t *TLS, category int32, locale uintptr) uintptr { // FILE *popen(const char *command, const char *type); func Xpopen(t *TLS, command, type1 uintptr) uintptr { + if __ccgo_strace { + trc("t=%v type1=%v, (%v:)", t, type1, origin(2)) + } panic(todo("")) } // char *realpath(const char *path, char *resolved_path); func Xrealpath(t *TLS, path, resolved_path uintptr) uintptr { + if __ccgo_strace { + trc("t=%v resolved_path=%v, (%v:)", t, resolved_path, origin(2)) + } s, err := filepath.EvalSymlinks(GoString(path)) if err != nil { if os.IsNotExist(err) { @@ -1511,11 +1811,6 @@ func Xrealpath(t *TLS, path, resolved_path uintptr) uintptr { return resolved_path } -// struct tm *gmtime_r(const time_t *timep, struct tm *result); -func Xgmtime_r(t *TLS, timep, result uintptr) uintptr { - panic(todo("")) -} - // // char *inet_ntoa(struct in_addr in); // func Xinet_ntoa(t *TLS, in1 in.In_addr) uintptr { // panic(todo("")) @@ -1526,6 +1821,9 @@ func Xgmtime_r(t *TLS, timep, result uintptr) uintptr { // } func Xabort(t *TLS) { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } panic(todo("")) // if dmesgs { // dmesg("%v:\n%s", origin(1), debug.Stack()) @@ -1540,18 +1838,21 @@ func Xabort(t *TLS) { // } // Xsigaction(t, signal.SIGABRT, p, 0) // Xfree(t, p) - // unix.Kill(unix.Getpid(), syscall.Signal(signal.SIGABRT)) + // unix.Kill(unix.Getpid(), windows.Signal(signal.SIGABRT)) // panic(todo("unrechable")) } // int fflush(FILE *stream); func Xfflush(t *TLS, stream uintptr) int32 { + if __ccgo_strace { + trc("t=%v stream=%v, (%v:)", t, stream, origin(2)) + } f, ok := winGetObject(stream).(*file) if !ok { t.setErrno(errno.EBADF) return -1 } - err := syscall.FlushFileBuffers(f.Handle) + err := windows.FlushFileBuffers(f.Handle) if err != nil { t.setErrno(err) return -1 @@ -1561,6 +1862,12 @@ func Xfflush(t *TLS, stream uintptr) int32 { // size_t fread(void *ptr, size_t size, size_t nmemb, FILE *stream); func Xfread(t *TLS, ptr uintptr, size, nmemb types.Size_t, stream uintptr) types.Size_t { + if __ccgo_strace { + trc("t=%v ptr=%v nmemb=%v stream=%v, (%v:)", t, ptr, nmemb, stream, origin(2)) + } + if size == 0 || nmemb == 0 { + return 0 + } f, ok := winGetObject(stream).(*file) if !ok { t.setErrno(errno.EBADF) @@ -1569,7 +1876,7 @@ func Xfread(t *TLS, ptr uintptr, size, nmemb types.Size_t, stream uintptr) types var sz = size * nmemb var obuf = ((*RawMem)(unsafe.Pointer(ptr)))[:sz] - n, err := syscall.Read(f.Handle, obuf) + n, err := windows.Read(f.Handle, obuf) if err != nil { f.setErr() return 0 @@ -1577,7 +1884,7 @@ func Xfread(t *TLS, ptr uintptr, size, nmemb types.Size_t, stream uintptr) types if dmesgs { // dmesg("%v: %d %#x x %#x: %#x\n%s", origin(1), file(stream).fd(), size, nmemb, types.Size_t(m)/size, hex.Dump(GoBytes(ptr, int(m)))) - dmesg("%v: %d %#x x %#x: %#x\n%s", origin(1), f._fd, size, nmemb, types.Size_t(n)/size) + dmesg("%v: %d %#x x %#x: %#x", origin(1), f._fd, size, nmemb, types.Size_t(n)/size) } return types.Size_t(n) / size @@ -1586,7 +1893,10 @@ func Xfread(t *TLS, ptr uintptr, size, nmemb types.Size_t, stream uintptr) types // size_t fwrite(const void *ptr, size_t size, size_t nmemb, FILE *stream); func Xfwrite(t *TLS, ptr uintptr, size, nmemb types.Size_t, stream uintptr) types.Size_t { - if ptr == 0 || size == 0 { + if __ccgo_strace { + trc("t=%v ptr=%v nmemb=%v stream=%v, (%v:)", t, ptr, nmemb, stream, origin(2)) + } + if ptr == 0 || size == 0 || nmemb == 0 { return 0 } @@ -1598,7 +1908,7 @@ func Xfwrite(t *TLS, ptr uintptr, size, nmemb types.Size_t, stream uintptr) type var sz = size * nmemb var obuf = ((*RawMem)(unsafe.Pointer(ptr)))[:sz] - n, err := syscall.Write(f.Handle, obuf) + n, err := windows.Write(f.Handle, obuf) if err != nil { f.setErr() return 0 @@ -1606,13 +1916,16 @@ func Xfwrite(t *TLS, ptr uintptr, size, nmemb types.Size_t, stream uintptr) type if dmesgs { // // dmesg("%v: %d %#x x %#x: %#x\n%s", origin(1), file(stream).fd(), size, nmemb, types.Size_t(m)/size, hex.Dump(GoBytes(ptr, int(m)))) - dmesg("%v: %d %#x x %#x: %#x\n%s", origin(1), f._fd, size, nmemb, types.Size_t(n)/size) + dmesg("%v: %d %#x x %#x: %#x", origin(1), f._fd, size, nmemb, types.Size_t(n)/size) } return types.Size_t(n) / size } // int fclose(FILE *stream); func Xfclose(t *TLS, stream uintptr) int32 { + if __ccgo_strace { + trc("t=%v stream=%v, (%v:)", t, stream, origin(2)) + } f, ok := winGetObject(stream).(*file) if !ok { t.setErrno(errno.EBADF) @@ -1623,6 +1936,9 @@ func Xfclose(t *TLS, stream uintptr) int32 { // int fputc(int c, FILE *stream); func Xfputc(t *TLS, c int32, stream uintptr) int32 { + if __ccgo_strace { + trc("t=%v c=%v stream=%v, (%v:)", t, c, stream, origin(2)) + } f, ok := winGetObject(stream).(*file) if !ok { t.setErrno(errno.EBADF) @@ -1636,6 +1952,9 @@ func Xfputc(t *TLS, c int32, stream uintptr) int32 { // int fseek(FILE *stream, long offset, int whence); func Xfseek(t *TLS, stream uintptr, offset long, whence int32) int32 { + if __ccgo_strace { + trc("t=%v stream=%v offset=%v whence=%v, (%v:)", t, stream, offset, whence, origin(2)) + } f, ok := winGetObject(stream).(*file) if !ok { t.setErrno(errno.EBADF) @@ -1657,13 +1976,16 @@ func Xfseek(t *TLS, stream uintptr, offset long, whence int32) int32 { // long ftell(FILE *stream); func Xftell(t *TLS, stream uintptr) long { + if __ccgo_strace { + trc("t=%v stream=%v, (%v:)", t, stream, origin(2)) + } f, ok := winGetObject(stream).(*file) if !ok { t.setErrno(errno.EBADF) return -1 } - n := Xlseek(t, f._fd, 0, syscall.FILE_CURRENT) + n := Xlseek(t, f._fd, 0, windows.FILE_CURRENT) if n < 0 { f.setErr() return -1 @@ -1677,6 +1999,9 @@ func Xftell(t *TLS, stream uintptr) long { // int ferror(FILE *stream); func Xferror(t *TLS, stream uintptr) int32 { + if __ccgo_strace { + trc("t=%v stream=%v, (%v:)", t, stream, origin(2)) + } f, ok := winGetObject(stream).(*file) if !ok { t.setErrno(errno.EBADF) @@ -1688,6 +2013,9 @@ func Xferror(t *TLS, stream uintptr) int32 { // int getc(FILE *stream); func Xfgetc(t *TLS, stream uintptr) int32 { + if __ccgo_strace { + trc("t=%v stream=%v, (%v:)", t, stream, origin(2)) + } f, ok := winGetObject(stream).(*file) if !ok { t.setErrno(errno.EBADF) @@ -1695,7 +2023,7 @@ func Xfgetc(t *TLS, stream uintptr) int32 { } var buf [1]byte - if n, _ := syscall.Read(f.Handle, buf[:]); n != 0 { + if n, _ := windows.Read(f.Handle, buf[:]); n != 0 { return int32(buf[0]) } @@ -1704,16 +2032,25 @@ func Xfgetc(t *TLS, stream uintptr) int32 { // int ungetc(int c, FILE *stream); func Xungetc(t *TLS, c int32, stream uintptr) int32 { + if __ccgo_strace { + trc("t=%v c=%v stream=%v, (%v:)", t, c, stream, origin(2)) + } panic(todo("")) } // int fscanf(FILE *stream, const char *format, ...); func Xfscanf(t *TLS, stream, format, va uintptr) int32 { + if __ccgo_strace { + trc("t=%v va=%v, (%v:)", t, va, origin(2)) + } panic(todo("")) } // int fputs(const char *s, FILE *stream); func Xfputs(t *TLS, s, stream uintptr) int32 { + if __ccgo_strace { + trc("t=%v stream=%v, (%v:)", t, stream, origin(2)) + } f, ok := winGetObject(stream).(*file) if !ok { t.setErrno(errno.EBADF) @@ -1829,51 +2166,81 @@ func Xfputs(t *TLS, s, stream uintptr) int32 { // _CRTIMP extern int *__cdecl _errno(void); // /usr/share/mingw-w64/include/errno.h:17: func X_errno(t *TLS) uintptr { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } return t.errnop } // int vfscanf(FILE * restrict stream, const char * restrict format, va_list arg); func X__ms_vfscanf(t *TLS, stream, format, ap uintptr) int32 { + if __ccgo_strace { + trc("t=%v ap=%v, (%v:)", t, ap, origin(2)) + } panic(todo("")) } // int vsscanf(const char *str, const char *format, va_list ap); func X__ms_vsscanf(t *TLS, str, format, ap uintptr) int32 { + if __ccgo_strace { + trc("t=%v ap=%v, (%v:)", t, ap, origin(2)) + } panic(todo("")) } // int vscanf(const char *format, va_list ap); func X__ms_vscanf(t *TLS, format, ap uintptr) int32 { + if __ccgo_strace { + trc("t=%v ap=%v, (%v:)", t, ap, origin(2)) + } panic(todo("")) } // int vsnprintf(char *str, size_t size, const char *format, va_list ap); func X__ms_vsnprintf(t *TLS, str uintptr, size types.Size_t, format, ap uintptr) int32 { + if __ccgo_strace { + trc("t=%v str=%v size=%v ap=%v, (%v:)", t, str, size, ap, origin(2)) + } return Xvsnprintf(t, str, size, format, ap) } // int vfwscanf(FILE *stream, const wchar_t *format, va_list argptr;); func X__ms_vfwscanf(t *TLS, stream uintptr, format, ap uintptr) int32 { + if __ccgo_strace { + trc("t=%v stream=%v ap=%v, (%v:)", t, stream, ap, origin(2)) + } panic(todo("")) } // int vwscanf(const wchar_t * restrict format, va_list arg); func X__ms_vwscanf(t *TLS, format, ap uintptr) int32 { + if __ccgo_strace { + trc("t=%v ap=%v, (%v:)", t, ap, origin(2)) + } panic(todo("")) } // int _vsnwprintf(wchar_t *buffer, size_t count, const wchar_t *format, va_list argptr); func X_vsnwprintf(t *TLS, buffer uintptr, count types.Size_t, format, ap uintptr) int32 { + if __ccgo_strace { + trc("t=%v buffer=%v count=%v ap=%v, (%v:)", t, buffer, count, ap, origin(2)) + } panic(todo("")) } // int vswscanf(const wchar_t *buffer, const wchar_t *format, va_list arglist); func X__ms_vswscanf(t *TLS, stream uintptr, format, ap uintptr) int32 { + if __ccgo_strace { + trc("t=%v stream=%v ap=%v, (%v:)", t, stream, ap, origin(2)) + } panic(todo("")) } // __acrt_iob_func func X__acrt_iob_func(t *TLS, fd uint32) uintptr { + if __ccgo_strace { + trc("t=%v fd=%v, (%v:)", t, fd, origin(2)) + } f, ok := fdToFile(int32(fd)) if !ok { @@ -1889,7 +2256,10 @@ func X__acrt_iob_func(t *TLS, fd uint32) uintptr { // // ); func XSetEvent(t *TLS, hEvent uintptr) int32 { - r0, _, err := syscall.Syscall(procSetEvent.Addr(), 1, hEvent, 0, 0) + if __ccgo_strace { + trc("t=%v hEvent=%v, (%v:)", t, hEvent, origin(2)) + } + r0, _, err := procSetEvent.Call(hEvent, 0, 0) if r0 == 0 { t.setErrno(err) } @@ -1903,6 +2273,9 @@ func XSetEvent(t *TLS, hEvent uintptr) int32 { // // ); func X_stricmp(t *TLS, string1, string2 uintptr) int32 { + if __ccgo_strace { + trc("t=%v string2=%v, (%v:)", t, string2, origin(2)) + } var s1 = strings.ToLower(GoString(string1)) var s2 = strings.ToLower(GoString(string2)) return int32(strings.Compare(s1, s2)) @@ -1916,8 +2289,11 @@ func X_stricmp(t *TLS, string1, string2 uintptr) int32 { // // ); func XHeapFree(t *TLS, hHeap uintptr, dwFlags uint32, lpMem uintptr) int32 { - r0, _, err := syscall.Syscall(procHeapFree.Addr(), 3, hHeap, uintptr(dwFlags), lpMem) - if err != 0 { + if __ccgo_strace { + trc("t=%v hHeap=%v dwFlags=%v lpMem=%v, (%v:)", t, hHeap, dwFlags, lpMem, origin(2)) + } + r0, _, err := procHeapFree.Call(hHeap, uintptr(dwFlags), lpMem) + if err != windows.NOERROR { t.setErrno(err) } return int32(r0) @@ -1925,7 +2301,10 @@ func XHeapFree(t *TLS, hHeap uintptr, dwFlags uint32, lpMem uintptr) int32 { // HANDLE GetProcessHeap(); func XGetProcessHeap(t *TLS) uintptr { - r0, _, err := syscall.Syscall(procGetProcessHeap.Addr(), 0, 0, 0, 0) + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } + r0, _, err := procGetProcessHeap.Call(0, 0, 0) if r0 == 0 { t.setErrno(err) } @@ -1940,7 +2319,10 @@ func XGetProcessHeap(t *TLS) uintptr { // // ); func XHeapAlloc(t *TLS, hHeap uintptr, dwFlags uint32, dwBytes types.Size_t) uintptr { - r0, _, err := syscall.Syscall(procHeapAlloc.Addr(), 3, hHeap, uintptr(dwFlags), uintptr(dwBytes)) + if __ccgo_strace { + trc("t=%v hHeap=%v dwFlags=%v dwBytes=%v, (%v:)", t, hHeap, dwFlags, dwBytes, origin(2)) + } + r0, _, err := procHeapAlloc.Call(hHeap, uintptr(dwFlags), uintptr(dwBytes)) if r0 == 0 { t.setErrno(err) } @@ -1985,6 +2367,9 @@ func XWspiapiGetAddrInfo(t *TLS, _ ...interface{}) int32 { // // ); func Xwcscmp(t *TLS, string1, string2 uintptr) int32 { + if __ccgo_strace { + trc("t=%v string2=%v, (%v:)", t, string2, origin(2)) + } var s1 = goWideString(string1) var s2 = goWideString(string2) return int32(strings.Compare(s1, s2)) @@ -1992,7 +2377,10 @@ func Xwcscmp(t *TLS, string1, string2 uintptr) int32 { // BOOL IsDebuggerPresent(); func XIsDebuggerPresent(t *TLS) int32 { - panic(todo("")) + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } + return 0 } func XExitProcess(t *TLS, _ ...interface{}) int32 { @@ -2005,7 +2393,10 @@ func XExitProcess(t *TLS, _ ...interface{}) int32 { // // ); func XGetVersionExW(t *TLS, lpVersionInformation uintptr) int32 { - r0, _, err := syscall.Syscall(procGetVersionExW.Addr(), 1, lpVersionInformation, 0, 0) + if __ccgo_strace { + trc("t=%v lpVersionInformation=%v, (%v:)", t, lpVersionInformation, origin(2)) + } + r0, _, err := procGetVersionExW.Call(lpVersionInformation, 0, 0) if r0 == 0 { t.setErrno(err) } @@ -2029,7 +2420,10 @@ func XGetVolumeNameForVolumeMountPointW(t *TLS, _ ...interface{}) int32 { // // ); func Xwcslen(t *TLS, str uintptr) types.Size_t { - r0, _, _ := syscall.Syscall(procLstrlenW.Addr(), 1, str, 0, 0) + if __ccgo_strace { + trc("t=%v str=%v, (%v:)", t, str, origin(2)) + } + r0, _, _ := procLstrlenW.Call(str, 0, 0) return types.Size_t(r0) } @@ -2039,7 +2433,10 @@ func Xwcslen(t *TLS, str uintptr) types.Size_t { // // ); func XGetStdHandle(t *TLS, nStdHandle uint32) uintptr { - h, err := syscall.GetStdHandle(int(nStdHandle)) + if __ccgo_strace { + trc("t=%v nStdHandle=%v, (%v:)", t, nStdHandle, origin(2)) + } + h, err := windows.GetStdHandle(nStdHandle) if err != nil { panic("no console") } @@ -2052,7 +2449,10 @@ func XGetStdHandle(t *TLS, nStdHandle uint32) uintptr { // // ); func XCloseHandle(t *TLS, hObject uintptr) int32 { - r := syscall.CloseHandle(syscall.Handle(hObject)) + if __ccgo_strace { + trc("t=%v hObject=%v, (%v:)", t, hObject, origin(2)) + } + r := windows.CloseHandle(windows.Handle(hObject)) if r != nil { return errno.EINVAL } @@ -2061,10 +2461,13 @@ func XCloseHandle(t *TLS, hObject uintptr) int32 { // DWORD GetLastError(); func XGetLastError(t *TLS) uint32 { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } var rv = *(*int32)(unsafe.Pointer(t.errnop)) return uint32(rv) - //r1, _, _ := syscall.Syscall(procGetLastError.Addr(), 0, 0, 0, 0) + //r1, _, _ := procGetLastError.Call(0, 0, 0) //return uint32(r1) } @@ -2077,10 +2480,13 @@ func XGetLastError(t *TLS) uint32 { // // ); func XSetFilePointer(t *TLS, hFile uintptr, lDistanceToMove long, lpDistanceToMoveHigh uintptr, dwMoveMethod uint32) uint32 { - r0, _, e1 := syscall.Syscall6(procSetFilePointer.Addr(), 4, hFile, uintptr(lDistanceToMove), lpDistanceToMoveHigh, uintptr(dwMoveMethod), 0, 0) + if __ccgo_strace { + trc("t=%v hFile=%v lDistanceToMove=%v lpDistanceToMoveHigh=%v dwMoveMethod=%v, (%v:)", t, hFile, lDistanceToMove, lpDistanceToMoveHigh, dwMoveMethod, origin(2)) + } + r0, _, e1 := procSetFilePointer.Call(hFile, uintptr(lDistanceToMove), lpDistanceToMoveHigh, uintptr(dwMoveMethod), 0, 0) var uOff = uint32(r0) if uOff == 0xffffffff { - if e1 != 0 { + if e1 != windows.NOERROR { t.setErrno(e1) } else { t.setErrno(errno.EINVAL) @@ -2095,7 +2501,10 @@ func XSetFilePointer(t *TLS, hFile uintptr, lDistanceToMove long, lpDistanceToMo // // ); func XSetEndOfFile(t *TLS, hFile uintptr) int32 { - err := syscall.SetEndOfFile(syscall.Handle(hFile)) + if __ccgo_strace { + trc("t=%v hFile=%v, (%v:)", t, hFile, origin(2)) + } + err := windows.SetEndOfFile(windows.Handle(hFile)) if err != nil { t.setErrno(err) return 0 @@ -2113,10 +2522,12 @@ func XSetEndOfFile(t *TLS, hFile uintptr) int32 { // // ); func XReadFile(t *TLS, hFile, lpBuffer uintptr, nNumberOfBytesToRead uint32, lpNumberOfBytesRead, lpOverlapped uintptr) int32 { - r1, _, e1 := syscall.Syscall6(procReadFile.Addr(), 5, - hFile, lpBuffer, uintptr(nNumberOfBytesToRead), uintptr(lpNumberOfBytesRead), uintptr(lpOverlapped), 0) + if __ccgo_strace { + trc("t=%v lpBuffer=%v nNumberOfBytesToRead=%v lpOverlapped=%v, (%v:)", t, lpBuffer, nNumberOfBytesToRead, lpOverlapped, origin(2)) + } + r1, _, e1 := procReadFile.Call(hFile, lpBuffer, uintptr(nNumberOfBytesToRead), uintptr(lpNumberOfBytesRead), uintptr(lpOverlapped), 0) if r1 == 0 { - if e1 != 0 { + if e1 != windows.NOERROR { t.setErrno(e1) } else { t.setErrno(errno.EINVAL) @@ -2136,10 +2547,12 @@ func XReadFile(t *TLS, hFile, lpBuffer uintptr, nNumberOfBytesToRead uint32, lpN // // ); func XWriteFile(t *TLS, hFile, lpBuffer uintptr, nNumberOfBytesToWrite uint32, lpNumberOfBytesWritten, lpOverlapped uintptr) int32 { - r1, _, e1 := syscall.Syscall6(procWriteFile.Addr(), 5, - hFile, lpBuffer, uintptr(nNumberOfBytesToWrite), lpNumberOfBytesWritten, lpOverlapped, 0) + if __ccgo_strace { + trc("t=%v lpBuffer=%v nNumberOfBytesToWrite=%v lpOverlapped=%v, (%v:)", t, lpBuffer, nNumberOfBytesToWrite, lpOverlapped, origin(2)) + } + r1, _, e1 := procWriteFile.Call(hFile, lpBuffer, uintptr(nNumberOfBytesToWrite), lpNumberOfBytesWritten, lpOverlapped, 0) if r1 == 0 { - if e1 != 0 { + if e1 != windows.NOERROR { t.setErrno(e1) } else { t.setErrno(errno.EINVAL) @@ -2155,8 +2568,11 @@ func XWriteFile(t *TLS, hFile, lpBuffer uintptr, nNumberOfBytesToWrite uint32, l // // ); func XGetFileAttributesW(t *TLS, lpFileName uintptr) uint32 { - attrs, err := syscall.GetFileAttributes((*uint16)(unsafe.Pointer(lpFileName))) - if attrs == syscall.INVALID_FILE_ATTRIBUTES { + if __ccgo_strace { + trc("t=%v lpFileName=%v, (%v:)", t, lpFileName, origin(2)) + } + attrs, err := windows.GetFileAttributes((*uint16)(unsafe.Pointer(lpFileName))) + if attrs == windows.INVALID_FILE_ATTRIBUTES { if err != nil { t.setErrno(err) } else { @@ -2178,12 +2594,15 @@ func XGetFileAttributesW(t *TLS, lpFileName uintptr) uint32 { // // ); func XCreateFileW(t *TLS, lpFileName uintptr, dwDesiredAccess, dwShareMode uint32, lpSecurityAttributes uintptr, dwCreationDisposition, dwFlagsAndAttributes uint32, hTemplateFile uintptr) uintptr { + if __ccgo_strace { + trc("t=%v lpFileName=%v dwShareMode=%v lpSecurityAttributes=%v dwFlagsAndAttributes=%v hTemplateFile=%v, (%v:)", t, lpFileName, dwShareMode, lpSecurityAttributes, dwFlagsAndAttributes, hTemplateFile, origin(2)) + } - r0, _, e1 := syscall.Syscall9(procCreateFileW.Addr(), 7, lpFileName, uintptr(dwDesiredAccess), uintptr(dwShareMode), lpSecurityAttributes, + r0, _, e1 := procCreateFileW.Call(lpFileName, uintptr(dwDesiredAccess), uintptr(dwShareMode), lpSecurityAttributes, uintptr(dwCreationDisposition), uintptr(dwFlagsAndAttributes), hTemplateFile, 0, 0) - h := syscall.Handle(r0) - if h == syscall.InvalidHandle { - if e1 != 0 { + h := windows.Handle(r0) + if h == windows.InvalidHandle { + if e1 != windows.NOERROR { t.setErrno(e1) } else { t.setErrno(errno.EINVAL) @@ -2205,7 +2624,10 @@ func XCreateFileW(t *TLS, lpFileName uintptr, dwDesiredAccess, dwShareMode uint3 // // ); func XDuplicateHandle(t *TLS, hSourceProcessHandle, hSourceHandle, hTargetProcessHandle, lpTargetHandle uintptr, dwDesiredAccess uint32, bInheritHandle int32, dwOptions uint32) int32 { - r0, _, err := syscall.Syscall9(procDuplicateHandle.Addr(), 7, hSourceProcessHandle, hSourceHandle, hTargetProcessHandle, + if __ccgo_strace { + trc("t=%v lpTargetHandle=%v dwDesiredAccess=%v bInheritHandle=%v dwOptions=%v, (%v:)", t, lpTargetHandle, dwDesiredAccess, bInheritHandle, dwOptions, origin(2)) + } + r0, _, err := procDuplicateHandle.Call(hSourceProcessHandle, hSourceHandle, hTargetProcessHandle, lpTargetHandle, uintptr(dwDesiredAccess), uintptr(bInheritHandle), uintptr(dwOptions), 0, 0) if r0 == 0 { t.setErrno(err) @@ -2215,9 +2637,12 @@ func XDuplicateHandle(t *TLS, hSourceProcessHandle, hSourceHandle, hTargetProces // HANDLE GetCurrentProcess(); func XGetCurrentProcess(t *TLS) uintptr { - r0, _, e1 := syscall.Syscall(procGetCurrentProcess.Addr(), 0, 0, 0, 0) + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } + r0, _, e1 := procGetCurrentProcess.Call(0, 0, 0) if r0 == 0 { - if e1 != 0 { + if e1 != windows.NOERROR { t.setErrno(e1) } else { t.setErrno(errno.EINVAL) @@ -2232,7 +2657,10 @@ func XGetCurrentProcess(t *TLS) uintptr { // // ); func XFlushFileBuffers(t *TLS, hFile uintptr) int32 { - err := syscall.FlushFileBuffers(syscall.Handle(hFile)) + if __ccgo_strace { + trc("t=%v hFile=%v, (%v:)", t, hFile, origin(2)) + } + err := windows.FlushFileBuffers(windows.Handle(hFile)) if err != nil { t.setErrno(err) return -1 @@ -2247,7 +2675,10 @@ func XFlushFileBuffers(t *TLS, hFile uintptr) int32 { // // ); func XGetFileType(t *TLS, hFile uintptr) uint32 { - n, err := syscall.GetFileType(syscall.Handle(hFile)) + if __ccgo_strace { + trc("t=%v hFile=%v, (%v:)", t, hFile, origin(2)) + } + n, err := windows.GetFileType(windows.Handle(hFile)) if err != nil { t.setErrno(err) } @@ -2261,7 +2692,10 @@ func XGetFileType(t *TLS, hFile uintptr) uint32 { // // ); func XGetConsoleMode(t *TLS, hConsoleHandle, lpMode uintptr) int32 { - err := syscall.GetConsoleMode(syscall.Handle(hConsoleHandle), (*uint32)(unsafe.Pointer(lpMode))) + if __ccgo_strace { + trc("t=%v lpMode=%v, (%v:)", t, lpMode, origin(2)) + } + err := windows.GetConsoleMode(windows.Handle(hConsoleHandle), (*uint32)(unsafe.Pointer(lpMode))) if err != nil { t.setErrno(err) return 0 @@ -2276,7 +2710,10 @@ func XGetConsoleMode(t *TLS, hConsoleHandle, lpMode uintptr) int32 { // // ); func XGetCommState(t *TLS, hFile, lpDCB uintptr) int32 { - r1, _, err := syscall.Syscall(procGetCommState.Addr(), 2, hFile, lpDCB, 0) + if __ccgo_strace { + trc("t=%v lpDCB=%v, (%v:)", t, lpDCB, origin(2)) + } + r1, _, err := procGetCommState.Call(hFile, lpDCB, 0) if r1 == 0 { t.setErrno(err) return 0 @@ -2292,6 +2729,9 @@ func XGetCommState(t *TLS, hFile, lpDCB uintptr) int32 { // // ); func X_wcsnicmp(t *TLS, string1, string2 uintptr, count types.Size_t) int32 { + if __ccgo_strace { + trc("t=%v string2=%v count=%v, (%v:)", t, string2, count, origin(2)) + } var s1 = strings.ToLower(goWideString(string1)) var l1 = len(s1) @@ -2324,8 +2764,11 @@ func X_wcsnicmp(t *TLS, string1, string2 uintptr, count types.Size_t) int32 { // // ); func XReadConsoleW(t *TLS, hConsoleInput, lpBuffer uintptr, nNumberOfCharsToRead uint32, lpNumberOfCharsRead, pInputControl uintptr) int32 { + if __ccgo_strace { + trc("t=%v lpBuffer=%v nNumberOfCharsToRead=%v pInputControl=%v, (%v:)", t, lpBuffer, nNumberOfCharsToRead, pInputControl, origin(2)) + } - rv, _, err := syscall.Syscall6(procReadConsoleW.Addr(), 5, hConsoleInput, + rv, _, err := procReadConsoleW.Call(hConsoleInput, lpBuffer, uintptr(nNumberOfCharsToRead), lpNumberOfCharsRead, pInputControl, 0) if rv == 0 { t.setErrno(err) @@ -2344,7 +2787,10 @@ func XReadConsoleW(t *TLS, hConsoleInput, lpBuffer uintptr, nNumberOfCharsToRead // // ); func XWriteConsoleW(t *TLS, hConsoleOutput, lpBuffer uintptr, nNumberOfCharsToWrite uint32, lpNumberOfCharsWritten, lpReserved uintptr) int32 { - rv, _, err := syscall.Syscall6(procWriteConsoleW.Addr(), 5, hConsoleOutput, + if __ccgo_strace { + trc("t=%v lpBuffer=%v nNumberOfCharsToWrite=%v lpReserved=%v, (%v:)", t, lpBuffer, nNumberOfCharsToWrite, lpReserved, origin(2)) + } + rv, _, err := procWriteConsoleW.Call(hConsoleOutput, lpBuffer, uintptr(nNumberOfCharsToWrite), lpNumberOfCharsWritten, lpReserved, 0) if rv == 0 { t.setErrno(err) @@ -2359,7 +2805,10 @@ func XWriteConsoleW(t *TLS, hConsoleOutput, lpBuffer uintptr, nNumberOfCharsToWr // // ); func XWaitForSingleObject(t *TLS, hHandle uintptr, dwMilliseconds uint32) uint32 { - rv, err := syscall.WaitForSingleObject(syscall.Handle(hHandle), dwMilliseconds) + if __ccgo_strace { + trc("t=%v hHandle=%v dwMilliseconds=%v, (%v:)", t, hHandle, dwMilliseconds, origin(2)) + } + rv, err := windows.WaitForSingleObject(windows.Handle(hHandle), dwMilliseconds) if err != nil { t.setErrno(err) } @@ -2372,7 +2821,10 @@ func XWaitForSingleObject(t *TLS, hHandle uintptr, dwMilliseconds uint32) uint32 // // ); func XResetEvent(t *TLS, hEvent uintptr) int32 { - rv, _, err := syscall.Syscall(procResetEvent.Addr(), 1, hEvent, 0, 0) + if __ccgo_strace { + trc("t=%v hEvent=%v, (%v:)", t, hEvent, origin(2)) + } + rv, _, err := procResetEvent.Call(hEvent, 0, 0) if rv == 0 { t.setErrno(err) } @@ -2388,7 +2840,10 @@ func XResetEvent(t *TLS, hEvent uintptr) int32 { // // ); func XPeekConsoleInputW(t *TLS, hConsoleInput, lpBuffer uintptr, nLength uint32, lpNumberOfEventsRead uintptr) int32 { - r0, _, err := syscall.Syscall6(procPeekConsoleInputW.Addr(), 4, hConsoleInput, lpBuffer, uintptr(nLength), lpNumberOfEventsRead, 0, 0) + if __ccgo_strace { + trc("t=%v lpBuffer=%v nLength=%v lpNumberOfEventsRead=%v, (%v:)", t, lpBuffer, nLength, lpNumberOfEventsRead, origin(2)) + } + r0, _, err := procPeekConsoleInputW.Call(hConsoleInput, lpBuffer, uintptr(nLength), lpNumberOfEventsRead, 0, 0) if r0 == 0 { t.setErrno(err) } @@ -2403,12 +2858,18 @@ func XPeekConsoleInputW(t *TLS, hConsoleInput, lpBuffer uintptr, nLength uint32, // // ); func XwsprintfA(t *TLS, buf, format, args uintptr) int32 { + if __ccgo_strace { + trc("t=%v args=%v, (%v:)", t, args, origin(2)) + } return Xsprintf(t, buf, format, args) } // UINT WINAPI GetConsoleCP(void); func XGetConsoleCP(t *TLS) uint32 { - r0, _, err := syscall.Syscall(procGetConsoleCP.Addr(), 0, 0, 0, 0) + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } + r0, _, err := procGetConsoleCP.Call(0, 0, 0) if r0 == 0 { t.setErrno(err) } @@ -2418,7 +2879,7 @@ func XGetConsoleCP(t *TLS) uint32 { // UINT WINAPI SetConsoleCP(UNIT); //func setConsoleCP(cp uint32) uint32 { // -// r0, _, _ := syscall.Syscall(procSetConsoleCP.Addr(), 1, uintptr(cp), 0, 0) +// r0, _, _ := procSetConsoleCP.Call(uintptr(cp), 0, 0) // if r0 == 0 { // panic("setcp failed") // } @@ -2434,7 +2895,10 @@ func XGetConsoleCP(t *TLS) uint32 { // // ); func XCreateEventW(t *TLS, lpEventAttributes uintptr, bManualReset, bInitialState int32, lpName uintptr) uintptr { - r0, _, err := syscall.Syscall6(procCreateEventW.Addr(), 4, lpEventAttributes, uintptr(bManualReset), + if __ccgo_strace { + trc("t=%v lpEventAttributes=%v bInitialState=%v lpName=%v, (%v:)", t, lpEventAttributes, bInitialState, lpName, origin(2)) + } + r0, _, err := procCreateEventW.Call(lpEventAttributes, uintptr(bManualReset), uintptr(bInitialState), lpName, 0, 0) if r0 == 0 { t.setErrno(err) @@ -2475,11 +2939,14 @@ func ThreadProc(p uintptr) uintptr { // // ); func XCreateThread(t *TLS, lpThreadAttributes uintptr, dwStackSize types.Size_t, lpStartAddress, lpParameter uintptr, dwCreationFlags uint32, lpThreadId uintptr) uintptr { + if __ccgo_strace { + trc("t=%v lpThreadAttributes=%v dwStackSize=%v lpParameter=%v dwCreationFlags=%v lpThreadId=%v, (%v:)", t, lpThreadAttributes, dwStackSize, lpParameter, dwCreationFlags, lpThreadId, origin(2)) + } f := (*struct{ f func(*TLS, uintptr) uint32 })(unsafe.Pointer(&struct{ uintptr }{lpStartAddress})).f var tAdp = ThreadAdapter{threadFunc: f, tls: NewTLS(), param: lpParameter} tAdp.token = addObject(&tAdp) - r0, _, err := syscall.Syscall6(procCreateThread.Addr(), 6, lpThreadAttributes, uintptr(dwStackSize), + r0, _, err := procCreateThread.Call(lpThreadAttributes, uintptr(dwStackSize), threadCallback, tAdp.token, uintptr(dwCreationFlags), lpThreadId) if r0 == 0 { t.setErrno(err) @@ -2494,8 +2961,11 @@ func XCreateThread(t *TLS, lpThreadAttributes uintptr, dwStackSize types.Size_t, // // ); func XSetThreadPriority(t *TLS, hThread uintptr, nPriority int32) int32 { + if __ccgo_strace { + trc("t=%v hThread=%v nPriority=%v, (%v:)", t, hThread, nPriority, origin(2)) + } - //r0, _, err := syscall.Syscall(procSetThreadPriority.Addr(), 2, hThread, uintptr(nPriority), 0) + //r0, _, err := procSetThreadPriority.Call(hThread, uintptr(nPriority), 0) //if r0 == 0 { // t.setErrno(err) //} @@ -2510,7 +2980,10 @@ func XSetThreadPriority(t *TLS, hThread uintptr, nPriority int32) int32 { // // ); func XSetConsoleMode(t *TLS, hConsoleHandle uintptr, dwMode uint32) int32 { - rv, _, err := syscall.Syscall(procSetConsoleMode.Addr(), 2, hConsoleHandle, uintptr(dwMode), 0) + if __ccgo_strace { + trc("t=%v hConsoleHandle=%v dwMode=%v, (%v:)", t, hConsoleHandle, dwMode, origin(2)) + } + rv, _, err := procSetConsoleMode.Call(hConsoleHandle, uintptr(dwMode), 0) if rv == 0 { t.setErrno(err) } @@ -2531,7 +3004,10 @@ func XClearCommError(t *TLS, _ ...interface{}) int32 { // // ); func XDeleteCriticalSection(t *TLS, lpCriticalSection uintptr) { - syscall.Syscall(procDeleteCriticalSection.Addr(), 1, lpCriticalSection, 0, 0) + if __ccgo_strace { + trc("t=%v lpCriticalSection=%v, (%v:)", t, lpCriticalSection, origin(2)) + } + procDeleteCriticalSection.Call(lpCriticalSection, 0, 0) } // void EnterCriticalSection( @@ -2540,7 +3016,26 @@ func XDeleteCriticalSection(t *TLS, lpCriticalSection uintptr) { // // ); func XEnterCriticalSection(t *TLS, lpCriticalSection uintptr) { - syscall.Syscall(procEnterCriticalSection.Addr(), 1, lpCriticalSection, 0, 0) + if __ccgo_strace { + trc("t=%v lpCriticalSection=%v, (%v:)", t, lpCriticalSection, origin(2)) + } + procEnterCriticalSection.Call(lpCriticalSection, 0, 0) +} + +// BOOL TryEnterCriticalSection( +// +// LPCRITICAL_SECTION lpCriticalSection +// +// ); +func XTryEnterCriticalSection(t *TLS, lpCriticalSection uintptr) (r int32) { + if __ccgo_strace { + trc("t=%v lpCriticalSection=%v, (%v:)", t, lpCriticalSection, origin(2)) + } + r0, _, err := procTryEnterCriticalSection.Call(lpCriticalSection) + if err != windows.NOERROR { + t.setErrno(err) + } + return int32(r0) } // void LeaveCriticalSection( @@ -2549,7 +3044,10 @@ func XEnterCriticalSection(t *TLS, lpCriticalSection uintptr) { // // ); func XLeaveCriticalSection(t *TLS, lpCriticalSection uintptr) { - syscall.Syscall(procLeaveCriticalSection.Addr(), 1, lpCriticalSection, 0, 0) + if __ccgo_strace { + trc("t=%v lpCriticalSection=%v, (%v:)", t, lpCriticalSection, origin(2)) + } + procLeaveCriticalSection.Call(lpCriticalSection, 0, 0) } func XGetOverlappedResult(t *TLS, _ ...interface{}) int32 { @@ -2570,8 +3068,11 @@ func XSetCommTimeouts(t *TLS, _ ...interface{}) int32 { // // ); func XInitializeCriticalSection(t *TLS, lpCriticalSection uintptr) { + if __ccgo_strace { + trc("t=%v lpCriticalSection=%v, (%v:)", t, lpCriticalSection, origin(2)) + } // InitializeCriticalSection always succeeds, even in low memory situations. - syscall.Syscall(procInitializeCriticalSection.Addr(), 1, lpCriticalSection, 0, 0) + procInitializeCriticalSection.Call(lpCriticalSection, 0, 0) } func XBuildCommDCBW(t *TLS, _ ...interface{}) int32 { @@ -2582,10 +3083,6 @@ func XSetCommState(t *TLS, _ ...interface{}) int32 { panic(todo("")) } -func X_strnicmp(t *TLS, _ ...interface{}) int32 { - panic(todo("")) -} - func XEscapeCommFunction(t *TLS, _ ...interface{}) int32 { panic(todo("")) } @@ -2601,8 +3098,11 @@ func XGetCommModemStatus(t *TLS, _ ...interface{}) int32 { // // ); func XMoveFileW(t *TLS, lpExistingFileName, lpNewFileName uintptr) int32 { - r0, _, err := syscall.Syscall(procMoveFileW.Addr(), 2, lpExistingFileName, lpNewFileName, 0) - if err != 0 { + if __ccgo_strace { + trc("t=%v lpNewFileName=%v, (%v:)", t, lpNewFileName, origin(2)) + } + r0, _, err := procMoveFileW.Call(lpExistingFileName, lpNewFileName, 0) + if err != windows.NOERROR { t.setErrno(err) } return int32(r0) @@ -2617,10 +3117,13 @@ func XMoveFileW(t *TLS, lpExistingFileName, lpNewFileName uintptr) int32 { // // ); func XGetFullPathNameW(t *TLS, lpFileName uintptr, nBufferLength uint32, lpBuffer, lpFilePart uintptr) uint32 { - r0, _, e1 := syscall.Syscall6(procGetFullPathNameW.Addr(), 4, lpFileName, uintptr(nBufferLength), uintptr(lpBuffer), uintptr(lpFilePart), 0, 0) + if __ccgo_strace { + trc("t=%v lpFileName=%v nBufferLength=%v lpFilePart=%v, (%v:)", t, lpFileName, nBufferLength, lpFilePart, origin(2)) + } + r0, _, e1 := procGetFullPathNameW.Call(lpFileName, uintptr(nBufferLength), uintptr(lpBuffer), uintptr(lpFilePart), 0, 0) n := uint32(r0) if n == 0 { - if e1 != 0 { + if e1 != windows.NOERROR { t.setErrno(e1) } else { t.setErrno(errno.EINVAL) @@ -2629,13 +3132,20 @@ func XGetFullPathNameW(t *TLS, lpFileName uintptr, nBufferLength uint32, lpBuffe return n } -// LPWSTR CharLowerW( -// -// LPWSTR lpsz -// -// ); -func XCharLowerW(t *TLS, lpsz uintptr) uintptr { - panic(todo("")) +// __attribute__((dllimport)) LPWSTR CharLowerW(LPWSTR lpsz); +func XCharLowerW(tls *TLS, _lpsz uintptr) (r uintptr) { + if __ccgo_strace { + trc("lpsz=%+v", _lpsz) + defer func() { trc(`XCharLowerW->%+v`, r) }() + } + r0, r1, err := procCharLowerW.Call(_lpsz) + if err != windows.NOERROR { + if __ccgo_strace { + trc(`r0=%v r1=%v err=%v`, r0, r1, err) + } + tls.SetLastError(uint32(err.(windows.Errno))) + } + return r0 } // BOOL CreateDirectoryW( @@ -2645,8 +3155,11 @@ func XCharLowerW(t *TLS, lpsz uintptr) uintptr { // // ); func XCreateDirectoryW(t *TLS, lpPathName, lpSecurityAttributes uintptr) int32 { - err := syscall.CreateDirectory((*uint16)(unsafe.Pointer(lpPathName)), - (*syscall.SecurityAttributes)(unsafe.Pointer(lpSecurityAttributes))) + if __ccgo_strace { + trc("t=%v lpSecurityAttributes=%v, (%v:)", t, lpSecurityAttributes, origin(2)) + } + err := windows.CreateDirectory((*uint16)(unsafe.Pointer(lpPathName)), + (*windows.SecurityAttributes)(unsafe.Pointer(lpSecurityAttributes))) if err != nil { t.setErrno(err) return 0 @@ -2661,7 +3174,10 @@ func XCreateDirectoryW(t *TLS, lpPathName, lpSecurityAttributes uintptr) int32 { // // ); func XSetFileAttributesW(t *TLS, lpFileName uintptr, dwFileAttributes uint32) int32 { - err := syscall.SetFileAttributes((*uint16)(unsafe.Pointer(lpFileName)), dwFileAttributes) + if __ccgo_strace { + trc("t=%v lpFileName=%v dwFileAttributes=%v, (%v:)", t, lpFileName, dwFileAttributes, origin(2)) + } + err := windows.SetFileAttributes((*uint16)(unsafe.Pointer(lpFileName)), dwFileAttributes) if err != nil { t.setErrno(err) return 0 @@ -2678,7 +3194,10 @@ func XSetFileAttributesW(t *TLS, lpFileName uintptr, dwFileAttributes uint32) in // // ); func XGetTempFileNameW(t *TLS, lpPathName, lpPrefixString uintptr, uUnique uint32, lpTempFileName uintptr) uint32 { - r0, _, e1 := syscall.Syscall6(procGetTempFileNameW.Addr(), 4, lpPathName, lpPrefixString, uintptr(uUnique), lpTempFileName, 0, 0) + if __ccgo_strace { + trc("t=%v lpPrefixString=%v uUnique=%v lpTempFileName=%v, (%v:)", t, lpPrefixString, uUnique, lpTempFileName, origin(2)) + } + r0, _, e1 := procGetTempFileNameW.Call(lpPathName, lpPrefixString, uintptr(uUnique), lpTempFileName, 0, 0) if r0 == 0 { t.setErrno(e1) } @@ -2693,7 +3212,10 @@ func XGetTempFileNameW(t *TLS, lpPathName, lpPrefixString uintptr, uUnique uint3 // // ); func XCopyFileW(t *TLS, lpExistingFileName, lpNewFileName uintptr, bFailIfExists int32) int32 { - r0, _, e1 := syscall.Syscall(procCopyFileW.Addr(), 3, lpExistingFileName, lpNewFileName, uintptr(bFailIfExists)) + if __ccgo_strace { + trc("t=%v lpNewFileName=%v bFailIfExists=%v, (%v:)", t, lpNewFileName, bFailIfExists, origin(2)) + } + r0, _, e1 := procCopyFileW.Call(lpExistingFileName, lpNewFileName, uintptr(bFailIfExists)) if r0 == 0 { t.setErrno(e1) } @@ -2706,7 +3228,10 @@ func XCopyFileW(t *TLS, lpExistingFileName, lpNewFileName uintptr, bFailIfExists // // ); func XDeleteFileW(t *TLS, lpFileName uintptr) int32 { - err := syscall.DeleteFile((*uint16)(unsafe.Pointer(lpFileName))) + if __ccgo_strace { + trc("t=%v lpFileName=%v, (%v:)", t, lpFileName, origin(2)) + } + err := windows.DeleteFile((*uint16)(unsafe.Pointer(lpFileName))) if err != nil { t.setErrno(err) return 0 @@ -2720,7 +3245,10 @@ func XDeleteFileW(t *TLS, lpFileName uintptr) int32 { // // ); func XRemoveDirectoryW(t *TLS, lpPathName uintptr) int32 { - err := syscall.RemoveDirectory((*uint16)(unsafe.Pointer(lpPathName))) + if __ccgo_strace { + trc("t=%v lpPathName=%v, (%v:)", t, lpPathName, origin(2)) + } + err := windows.RemoveDirectory((*uint16)(unsafe.Pointer(lpPathName))) if err != nil { t.setErrno(err) return 0 @@ -2730,10 +3258,13 @@ func XRemoveDirectoryW(t *TLS, lpPathName uintptr) int32 { // HANDLE FindFirstFileW(LPCWSTR lpFileName, LPWIN32_FIND_DATAW lpFindFileData); func XFindFirstFileW(t *TLS, lpFileName, lpFindFileData uintptr) uintptr { - r0, _, e1 := syscall.Syscall(procFindFirstFileW.Addr(), 2, lpFileName, lpFindFileData, 0) - handle := syscall.Handle(r0) - if handle == syscall.InvalidHandle { - if e1 != 0 { + if __ccgo_strace { + trc("t=%v lpFindFileData=%v, (%v:)", t, lpFindFileData, origin(2)) + } + r0, _, e1 := procFindFirstFileW.Call(lpFileName, lpFindFileData, 0) + handle := windows.Handle(r0) + if handle == windows.InvalidHandle { + if e1 != windows.NOERROR { t.setErrno(e1) } else { t.setErrno(errno.EINVAL) @@ -2753,10 +3284,13 @@ func XFindFirstFileW(t *TLS, lpFileName, lpFindFileData uintptr) uintptr { // // ); func XFindFirstFileExW(t *TLS, lpFileName uintptr, fInfoLevelId int32, lpFindFileData uintptr, fSearchOp int32, lpSearchFilter uintptr, dwAdditionalFlags uint32) uintptr { - r0, _, e1 := syscall.Syscall6(procFindFirstFileExW.Addr(), 6, lpFileName, uintptr(fInfoLevelId), lpFindFileData, uintptr(fSearchOp), lpSearchFilter, uintptr(dwAdditionalFlags)) - handle := syscall.Handle(r0) - if handle == syscall.InvalidHandle { - if e1 != 0 { + if __ccgo_strace { + trc("t=%v lpFileName=%v fInfoLevelId=%v lpFindFileData=%v fSearchOp=%v lpSearchFilter=%v dwAdditionalFlags=%v, (%v:)", t, lpFileName, fInfoLevelId, lpFindFileData, fSearchOp, lpSearchFilter, dwAdditionalFlags, origin(2)) + } + r0, _, e1 := procFindFirstFileExW.Call(lpFileName, uintptr(fInfoLevelId), lpFindFileData, uintptr(fSearchOp), lpSearchFilter, uintptr(dwAdditionalFlags)) + handle := windows.Handle(r0) + if handle == windows.InvalidHandle { + if e1 != windows.NOERROR { t.setErrno(e1) } else { t.setErrno(errno.EINVAL) @@ -2767,9 +3301,12 @@ func XFindFirstFileExW(t *TLS, lpFileName uintptr, fInfoLevelId int32, lpFindFil // BOOL FindClose(HANDLE hFindFile); func XFindClose(t *TLS, hFindFile uintptr) int32 { - r0, _, e1 := syscall.Syscall(procFindClose.Addr(), 1, hFindFile, 0, 0) + if __ccgo_strace { + trc("t=%v hFindFile=%v, (%v:)", t, hFindFile, origin(2)) + } + r0, _, e1 := procFindClose.Call(hFindFile, 0, 0) if r0 == 0 { - if e1 != 0 { + if e1 != windows.NOERROR { t.setErrno(e1) } else { t.setErrno(errno.EINVAL) @@ -2785,9 +3322,12 @@ func XFindClose(t *TLS, hFindFile uintptr) int32 { // // ); func XFindNextFileW(t *TLS, hFindFile, lpFindFileData uintptr) int32 { - r0, _, e1 := syscall.Syscall(procFindNextFileW.Addr(), 2, hFindFile, lpFindFileData, 0) + if __ccgo_strace { + trc("t=%v lpFindFileData=%v, (%v:)", t, lpFindFileData, origin(2)) + } + r0, _, e1 := procFindNextFileW.Call(hFindFile, lpFindFileData, 0) if r0 == 0 { - if e1 != 0 { + if e1 != windows.NOERROR { t.setErrno(e1) } else { t.setErrno(errno.EINVAL) @@ -2803,8 +3343,11 @@ func XFindNextFileW(t *TLS, hFindFile, lpFindFileData uintptr) int32 { // // ); func XGetLogicalDriveStringsA(t *TLS, nBufferLength uint32, lpBuffer uintptr) uint32 { - r0, _, err := syscall.Syscall(procGetLogicalDriveStringsA.Addr(), 2, uintptr(nBufferLength), lpBuffer, 0) - if err != 0 { + if __ccgo_strace { + trc("t=%v nBufferLength=%v lpBuffer=%v, (%v:)", t, nBufferLength, lpBuffer, origin(2)) + } + r0, _, err := procGetLogicalDriveStringsA.Call(uintptr(nBufferLength), lpBuffer, 0) + if err != windows.NOERROR { t.setErrno(err) } return uint32(r0) @@ -2823,8 +3366,10 @@ func XGetLogicalDriveStringsA(t *TLS, nBufferLength uint32, lpBuffer uintptr) ui // // ); func XGetVolumeInformationA(t *TLS, lpRootPathName, lpVolumeNameBuffer uintptr, nVolumeNameSize uint32, lpVolumeSerialNumber, lpMaximumComponentLength, lpFileSystemFlags, lpFileSystemNameBuffer uintptr, nFileSystemNameSize uint32) int32 { - r0, _, err := syscall.Syscall9(procGetVolumeInformationA.Addr(), 8, - lpRootPathName, + if __ccgo_strace { + trc("t=%v lpVolumeNameBuffer=%v nVolumeNameSize=%v lpFileSystemNameBuffer=%v nFileSystemNameSize=%v, (%v:)", t, lpVolumeNameBuffer, nVolumeNameSize, lpFileSystemNameBuffer, nFileSystemNameSize, origin(2)) + } + r0, _, err := procGetVolumeInformationA.Call(lpRootPathName, lpVolumeNameBuffer, uintptr(nVolumeNameSize), lpVolumeSerialNumber, @@ -2834,7 +3379,7 @@ func XGetVolumeInformationA(t *TLS, lpRootPathName, lpVolumeNameBuffer uintptr, uintptr(nFileSystemNameSize), 0, ) - if err != 0 { + if err != windows.NOERROR { t.setErrno(err) } return int32(r0) @@ -2848,8 +3393,11 @@ func XGetVolumeInformationA(t *TLS, lpRootPathName, lpVolumeNameBuffer uintptr, // // ); func XCreateHardLinkW(t *TLS, lpFileName, lpExistingFileName, lpSecurityAttributes uintptr) int32 { - r0, _, err := syscall.Syscall(procCreateHardLinkW.Addr(), 1, lpFileName, lpExistingFileName, lpSecurityAttributes) - if err != 0 { + if __ccgo_strace { + trc("t=%v lpSecurityAttributes=%v, (%v:)", t, lpSecurityAttributes, origin(2)) + } + r0, _, err := procCreateHardLinkW.Call(lpFileName, lpExistingFileName, lpSecurityAttributes) + if err != windows.NOERROR { t.setErrno(err) } return int32(r0) @@ -2868,7 +3416,10 @@ func XCreateHardLinkW(t *TLS, lpFileName, lpExistingFileName, lpSecurityAttribut // // ); func XDeviceIoControl(t *TLS, hDevice uintptr, dwIoControlCode uint32, lpInBuffer uintptr, nInBufferSize uint32, lpOutBuffer uintptr, nOutBufferSize uint32, lpBytesReturned, lpOverlapped uintptr) int32 { - r0, _, err := syscall.Syscall9(procDeviceIoControl.Addr(), 8, hDevice, uintptr(dwIoControlCode), lpInBuffer, + if __ccgo_strace { + trc("t=%v hDevice=%v dwIoControlCode=%v lpInBuffer=%v nInBufferSize=%v lpOutBuffer=%v nOutBufferSize=%v lpOverlapped=%v, (%v:)", t, hDevice, dwIoControlCode, lpInBuffer, nInBufferSize, lpOutBuffer, nOutBufferSize, lpOverlapped, origin(2)) + } + r0, _, err := procDeviceIoControl.Call(hDevice, uintptr(dwIoControlCode), lpInBuffer, uintptr(nInBufferSize), lpOutBuffer, uintptr(nOutBufferSize), lpBytesReturned, lpOverlapped, 0) if r0 == 0 { t.setErrno(err) @@ -2884,6 +3435,9 @@ func XDeviceIoControl(t *TLS, hDevice uintptr, dwIoControlCode uint32, lpInBuffe // // ); func Xwcsncmp(t *TLS, string1, string2 uintptr, count types.Size_t) int32 { + if __ccgo_strace { + trc("t=%v string2=%v count=%v, (%v:)", t, string2, count, origin(2)) + } var s1 = goWideString(string1) var l1 = len(s1) var s2 = goWideString(string2) @@ -2916,8 +3470,10 @@ func Xwcsncmp(t *TLS, string1, string2 uintptr, count types.Size_t) int32 { // // ); func XMultiByteToWideChar(t *TLS, CodePage uint32, dwFlags uint32, lpMultiByteStr uintptr, cbMultiByte int32, lpWideCharStr uintptr, cchWideChar int32) int32 { - r1, _, _ := syscall.Syscall6(procMultiByteToWideChar.Addr(), 6, - uintptr(CodePage), uintptr(dwFlags), uintptr(lpMultiByteStr), + if __ccgo_strace { + trc("t=%v CodePage=%v dwFlags=%v lpMultiByteStr=%v cbMultiByte=%v lpWideCharStr=%v cchWideChar=%v, (%v:)", t, CodePage, dwFlags, lpMultiByteStr, cbMultiByte, lpWideCharStr, cchWideChar, origin(2)) + } + r1, _, _ := procMultiByteToWideChar.Call(uintptr(CodePage), uintptr(dwFlags), uintptr(lpMultiByteStr), uintptr(cbMultiByte), uintptr(lpWideCharStr), uintptr(cchWideChar)) return (int32(r1)) } @@ -2928,6 +3484,9 @@ func XMultiByteToWideChar(t *TLS, CodePage uint32, dwFlags uint32, lpMultiByteSt // // ); func XOutputDebugStringW(t *TLS, lpOutputString uintptr) { + if __ccgo_strace { + trc("t=%v lpOutputString=%v, (%v:)", t, lpOutputString, origin(2)) + } panic(todo("")) } @@ -2945,6 +3504,9 @@ func XMessageBeep(t *TLS, _ ...interface{}) int32 { // // ); func X_InterlockedCompareExchange(t *TLS, Destination uintptr, Exchange, Comparand long) long { + if __ccgo_strace { + trc("t=%v Destination=%v Comparand=%v, (%v:)", t, Destination, Comparand, origin(2)) + } // The function returns the initial value of the Destination parameter. var v = *(*int32)(unsafe.Pointer(Destination)) @@ -2954,13 +3516,19 @@ func X_InterlockedCompareExchange(t *TLS, Destination uintptr, Exchange, Compara // int rename(const char *oldpath, const char *newpath); func Xrename(t *TLS, oldpath, newpath uintptr) int32 { + if __ccgo_strace { + trc("t=%v newpath=%v, (%v:)", t, newpath, origin(2)) + } panic(todo("")) } // BOOL AreFileApisANSI(); func XAreFileApisANSI(t *TLS) int32 { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } - r0, _, _ := syscall.Syscall(procAreFileApisANSI.Addr(), 0, 0, 0, 0) + r0, _, _ := procAreFileApisANSI.Call(0, 0, 0) return int32(r0) } @@ -2978,11 +3546,11 @@ func XAreFileApisANSI(t *TLS) int32 { func XCreateFileA(t *TLS, lpFileName uintptr, dwDesiredAccess, dwShareMode uint32, lpSecurityAttributes uintptr, dwCreationDisposition, dwFlagsAndAttributes uint32, hTemplateFile uintptr) uintptr { - r0, _, e1 := syscall.Syscall9(procCreateFileA.Addr(), 7, lpFileName, uintptr(dwDesiredAccess), uintptr(dwShareMode), lpSecurityAttributes, + r0, _, e1 := procCreateFileA.Call(lpFileName, uintptr(dwDesiredAccess), uintptr(dwShareMode), lpSecurityAttributes, uintptr(dwCreationDisposition), uintptr(dwFlagsAndAttributes), hTemplateFile, 0, 0) - h := syscall.Handle(r0) - if h == syscall.InvalidHandle { - if e1 != 0 { + h := windows.Handle(r0) + if h == windows.InvalidHandle { + if e1 != windows.NOERROR { t.setErrno(e1) } else { t.setErrno(errno.EINVAL) @@ -3004,6 +3572,9 @@ func XCreateFileA(t *TLS, lpFileName uintptr, dwDesiredAccess, dwShareMode uint3 // // ); func XCreateFileMappingA(t *TLS, hFile, lpFileMappingAttributes uintptr, flProtect, dwMaximumSizeHigh, dwMaximumSizeLow uint32, lpName uintptr) uintptr { + if __ccgo_strace { + trc("t=%v lpFileMappingAttributes=%v dwMaximumSizeLow=%v lpName=%v, (%v:)", t, lpFileMappingAttributes, dwMaximumSizeLow, lpName, origin(2)) + } panic(todo("")) } @@ -3018,10 +3589,13 @@ func XCreateFileMappingA(t *TLS, hFile, lpFileMappingAttributes uintptr, flProte // // ); func XCreateFileMappingW(t *TLS, hFile, lpFileMappingAttributes uintptr, flProtect, dwMaximumSizeHigh, dwMaximumSizeLow uint32, lpName uintptr) uintptr { - h, _, e1 := syscall.Syscall6(procCreateFileMappingW.Addr(), 6, hFile, lpFileMappingAttributes, uintptr(flProtect), + if __ccgo_strace { + trc("t=%v lpFileMappingAttributes=%v dwMaximumSizeLow=%v lpName=%v, (%v:)", t, lpFileMappingAttributes, dwMaximumSizeLow, lpName, origin(2)) + } + h, _, e1 := procCreateFileMappingW.Call(hFile, lpFileMappingAttributes, uintptr(flProtect), uintptr(dwMaximumSizeHigh), uintptr(dwMaximumSizeLow), lpName) if h == 0 { - if e1 != 0 { + if e1 != windows.NOERROR { t.setErrno(e1) } else { t.setErrno(errno.EINVAL) @@ -3038,6 +3612,9 @@ func XCreateFileMappingW(t *TLS, hFile, lpFileMappingAttributes uintptr, flProte // // ); func XCreateMutexW(t *TLS, lpMutexAttributes uintptr, bInitialOwner int32, lpName uintptr) uintptr { + if __ccgo_strace { + trc("t=%v lpMutexAttributes=%v bInitialOwner=%v lpName=%v, (%v:)", t, lpMutexAttributes, bInitialOwner, lpName, origin(2)) + } panic(todo("")) } @@ -3047,6 +3624,9 @@ func XCreateMutexW(t *TLS, lpMutexAttributes uintptr, bInitialOwner int32, lpNam // // ); func XDeleteFileA(t *TLS, lpFileName uintptr) int32 { + if __ccgo_strace { + trc("t=%v lpFileName=%v, (%v:)", t, lpFileName, origin(2)) + } panic(todo("")) } @@ -3062,6 +3642,9 @@ func XDeleteFileA(t *TLS, lpFileName uintptr) int32 { // // ); func XFormatMessageA(t *TLS, dwFlagsAndAttributes uint32, lpSource uintptr, dwMessageId, dwLanguageId uint32, lpBuffer uintptr, nSize uint32, Arguments uintptr) uint32 { + if __ccgo_strace { + trc("t=%v dwFlagsAndAttributes=%v lpSource=%v dwLanguageId=%v lpBuffer=%v nSize=%v Arguments=%v, (%v:)", t, dwFlagsAndAttributes, lpSource, dwLanguageId, lpBuffer, nSize, Arguments, origin(2)) + } panic(todo("")) } @@ -3077,12 +3660,14 @@ func XFormatMessageA(t *TLS, dwFlagsAndAttributes uint32, lpSource uintptr, dwMe // // ); func XFormatMessageW(t *TLS, dwFlags uint32, lpSource uintptr, dwMessageId, dwLanguageId uint32, lpBuffer uintptr, nSize uint32, Arguments uintptr) uint32 { - r0, _, e1 := syscall.Syscall9(procFormatMessageW.Addr(), 7, - uintptr(dwFlags), lpSource, uintptr(dwMessageId), uintptr(dwLanguageId), + if __ccgo_strace { + trc("t=%v dwFlags=%v lpSource=%v dwLanguageId=%v lpBuffer=%v nSize=%v Arguments=%v, (%v:)", t, dwFlags, lpSource, dwLanguageId, lpBuffer, nSize, Arguments, origin(2)) + } + r0, _, e1 := procFormatMessageW.Call(uintptr(dwFlags), lpSource, uintptr(dwMessageId), uintptr(dwLanguageId), lpBuffer, uintptr(nSize), Arguments, 0, 0) n := uint32(r0) if n == 0 { - if e1 != 0 { + if e1 != windows.NOERROR { t.setErrno(e1) } else { t.setErrno(errno.EINVAL) @@ -3093,12 +3678,18 @@ func XFormatMessageW(t *TLS, dwFlags uint32, lpSource uintptr, dwMessageId, dwLa // BOOL FreeLibrary(HMODULE hLibModule); func XFreeLibrary(t *TLS, hLibModule uintptr) int32 { + if __ccgo_strace { + trc("t=%v hLibModule=%v, (%v:)", t, hLibModule, origin(2)) + } panic(todo("")) } // DWORD GetCurrentProcessId(); func XGetCurrentProcessId(t *TLS) uint32 { - r0, _, _ := syscall.Syscall(procGetCurrentProcessId.Addr(), 0, 0, 0, 0) + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } + r0, _, _ := procGetCurrentProcessId.Call(0, 0, 0) pid := uint32(r0) return pid } @@ -3113,6 +3704,9 @@ func XGetCurrentProcessId(t *TLS) uint32 { // // ); func XGetDiskFreeSpaceA(t *TLS, lpRootPathName, lpSectorsPerCluster, lpBytesPerSector, lpNumberOfFreeClusters, lpTotalNumberOfClusters uintptr) int32 { + if __ccgo_strace { + trc("t=%v lpTotalNumberOfClusters=%v, (%v:)", t, lpTotalNumberOfClusters, origin(2)) + } panic(todo("")) } @@ -3126,6 +3720,9 @@ func XGetDiskFreeSpaceA(t *TLS, lpRootPathName, lpSectorsPerCluster, lpBytesPerS // // ); func XGetDiskFreeSpaceW(t *TLS, lpRootPathName, lpSectorsPerCluster, lpBytesPerSector, lpNumberOfFreeClusters, lpTotalNumberOfClusters uintptr) int32 { + if __ccgo_strace { + trc("t=%v lpTotalNumberOfClusters=%v, (%v:)", t, lpTotalNumberOfClusters, origin(2)) + } panic(todo("")) } @@ -3135,8 +3732,11 @@ func XGetDiskFreeSpaceW(t *TLS, lpRootPathName, lpSectorsPerCluster, lpBytesPerS // // ); func XGetFileAttributesA(t *TLS, lpFileName uintptr) uint32 { - r0, _, err := syscall.Syscall(procGetFileAttributesA.Addr(), 1, lpFileName, 0, 0) - if err != 0 { + if __ccgo_strace { + trc("t=%v lpFileName=%v, (%v:)", t, lpFileName, origin(2)) + } + r0, _, err := procGetFileAttributesA.Call(lpFileName, 0, 0) + if err != windows.NOERROR { t.setErrno(err) } return uint32(r0) @@ -3149,10 +3749,13 @@ func XGetFileAttributesA(t *TLS, lpFileName uintptr) uint32 { // LPVOID lpFileInformation // // ); -func XGetFileAttributesExW(t *TLS, lpFileName uintptr, fInfoLevelId uint32, lpFileInformation uintptr) int32 { - r1, _, e1 := syscall.Syscall(procGetFileAttributesExW.Addr(), 3, lpFileName, uintptr(fInfoLevelId), lpFileInformation) +func XGetFileAttributesExW(t *TLS, lpFileName uintptr, fInfoLevelId int32, lpFileInformation uintptr) int32 { + if __ccgo_strace { + trc("t=%v lpFileName=%v fInfoLevelId=%v lpFileInformation=%v, (%v:)", t, lpFileName, fInfoLevelId, lpFileInformation, origin(2)) + } + r1, _, e1 := procGetFileAttributesExW.Call(lpFileName, uintptr(fInfoLevelId), lpFileInformation) if r1 == 0 { - if e1 != 0 { + if e1 != windows.NOERROR { t.setErrno(e1) } else { t.setErrno(errno.EINVAL) @@ -3169,7 +3772,10 @@ func XGetFileAttributesExW(t *TLS, lpFileName uintptr, fInfoLevelId uint32, lpFi // // ); func XGetFileSize(t *TLS, hFile, lpFileSizeHigh uintptr) uint32 { - r1, _, e1 := syscall.Syscall(procGetFileSize.Addr(), 2, hFile, lpFileSizeHigh, 0) + if __ccgo_strace { + trc("t=%v lpFileSizeHigh=%v, (%v:)", t, lpFileSizeHigh, origin(2)) + } + r1, _, e1 := procGetFileSize.Call(hFile, lpFileSizeHigh, 0) if r1 == math.MaxUint32 { if lpFileSizeHigh == 0 { // If the function fails and lpFileSizeHigh is NULL, the return value is INVALID_FILE_SIZE. @@ -3196,17 +3802,23 @@ func XGetFileSize(t *TLS, hFile, lpFileSizeHigh uintptr) uint32 { // // ); func XGetFullPathNameA(t *TLS, lpFileName uintptr, nBufferLength uint32, lpBuffer, lpFilePart uintptr) uint32 { + if __ccgo_strace { + trc("t=%v lpFileName=%v nBufferLength=%v lpFilePart=%v, (%v:)", t, lpFileName, nBufferLength, lpFilePart, origin(2)) + } panic(todo("")) } // FARPROC GetProcAddress(HMODULE hModule, LPCSTR lpProcName); func XGetProcAddress(t *TLS, hModule, lpProcName uintptr) uintptr { + if __ccgo_strace { + trc("t=%v lpProcName=%v, (%v:)", t, lpProcName, origin(2)) + } return 0 //panic(todo(GoString(lpProcName))) // - //r0, _, err := syscall.Syscall(procGetProcAddress.Addr(), 2, hModule, lpProcName, 0) + //r0, _, err := procGetProcAddress.Call(hModule, lpProcName, 0) //if r0 == 0 { // t.setErrno(err) //} @@ -3219,21 +3831,42 @@ func XGetProcAddress(t *TLS, hModule, lpProcName uintptr) uintptr { // // ); func XRtlGetVersion(t *TLS, lpVersionInformation uintptr) uintptr { + if __ccgo_strace { + trc("t=%v lpVersionInformation=%v, (%v:)", t, lpVersionInformation, origin(2)) + } panic(todo("")) } +// void GetNativeSystemInfo( +// +// LPSYSTEM_INFO lpSystemInfo +// +// ); +func XGetNativeSystemInfo(t *TLS, lpSystemInfo uintptr) { + if __ccgo_strace { + trc("t=%v lpSystemInfo=%v, (%v:)", t, lpSystemInfo, origin(2)) + } + procGetNativeSystemInfo.Call(lpSystemInfo, 0, 0) +} + // void GetSystemInfo( // // LPSYSTEM_INFO lpSystemInfo // // ); func XGetSystemInfo(t *TLS, lpSystemInfo uintptr) { - syscall.Syscall(procGetSystemInfo.Addr(), 1, lpSystemInfo, 0, 0) + if __ccgo_strace { + trc("t=%v lpSystemInfo=%v, (%v:)", t, lpSystemInfo, origin(2)) + } + procGetSystemInfo.Call(lpSystemInfo, 0, 0) } // void GetSystemTime(LPSYSTEMTIME lpSystemTime); func XGetSystemTime(t *TLS, lpSystemTime uintptr) { - syscall.Syscall(procGetSystemTime.Addr(), 1, lpSystemTime, 0, 0) + if __ccgo_strace { + trc("t=%v lpSystemTime=%v, (%v:)", t, lpSystemTime, origin(2)) + } + procGetSystemTime.Call(lpSystemTime, 0, 0) } // void GetSystemTimeAsFileTime( @@ -3242,7 +3875,10 @@ func XGetSystemTime(t *TLS, lpSystemTime uintptr) { // // ); func XGetSystemTimeAsFileTime(t *TLS, lpSystemTimeAsFileTime uintptr) { - syscall.Syscall(procGetSystemTimeAsFileTime.Addr(), 1, lpSystemTimeAsFileTime, 0, 0) + if __ccgo_strace { + trc("t=%v lpSystemTimeAsFileTime=%v, (%v:)", t, lpSystemTimeAsFileTime, origin(2)) + } + procGetSystemTimeAsFileTime.Call(lpSystemTimeAsFileTime, 0, 0) } // DWORD GetTempPathA( @@ -3252,6 +3888,9 @@ func XGetSystemTimeAsFileTime(t *TLS, lpSystemTimeAsFileTime uintptr) { // // ); func XGetTempPathA(t *TLS, nBufferLength uint32, lpBuffer uintptr) uint32 { + if __ccgo_strace { + trc("t=%v nBufferLength=%v lpBuffer=%v, (%v:)", t, nBufferLength, lpBuffer, origin(2)) + } panic(todo("")) } @@ -3262,7 +3901,10 @@ func XGetTempPathA(t *TLS, nBufferLength uint32, lpBuffer uintptr) uint32 { // // ); func XGetTempPathW(t *TLS, nBufferLength uint32, lpBuffer uintptr) uint32 { - rv, err := syscall.GetTempPath(nBufferLength, (*uint16)(unsafe.Pointer(lpBuffer))) + if __ccgo_strace { + trc("t=%v nBufferLength=%v lpBuffer=%v, (%v:)", t, nBufferLength, lpBuffer, origin(2)) + } + rv, err := windows.GetTempPath(nBufferLength, (*uint16)(unsafe.Pointer(lpBuffer))) if err != nil { t.setErrno(err) } @@ -3271,7 +3913,10 @@ func XGetTempPathW(t *TLS, nBufferLength uint32, lpBuffer uintptr) uint32 { // DWORD GetTickCount(); func XGetTickCount(t *TLS) uint32 { - r0, _, _ := syscall.Syscall(procGetTickCount.Addr(), 0, 0, 0, 0) + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } + r0, _, _ := procGetTickCount.Call(0, 0, 0) return uint32(r0) } @@ -3281,7 +3926,10 @@ func XGetTickCount(t *TLS) uint32 { // // ); func XGetVersionExA(t *TLS, lpVersionInformation uintptr) int32 { - r0, _, err := syscall.Syscall(procGetVersionExA.Addr(), 1, lpVersionInformation, 0, 0) + if __ccgo_strace { + trc("t=%v lpVersionInformation=%v, (%v:)", t, lpVersionInformation, origin(2)) + } + r0, _, err := procGetVersionExA.Call(lpVersionInformation, 0, 0) if r0 == 0 { t.setErrno(err) } @@ -3296,6 +3944,9 @@ func XGetVersionExA(t *TLS, lpVersionInformation uintptr) int32 { // // ); func XHeapCreate(t *TLS, flOptions uint32, dwInitialSize, dwMaximumSize types.Size_t) uintptr { + if __ccgo_strace { + trc("t=%v flOptions=%v dwMaximumSize=%v, (%v:)", t, flOptions, dwMaximumSize, origin(2)) + } panic(todo("")) } @@ -3305,6 +3956,9 @@ func XHeapCreate(t *TLS, flOptions uint32, dwInitialSize, dwMaximumSize types.Si // // ); func XHeapDestroy(t *TLS, hHeap uintptr) int32 { + if __ccgo_strace { + trc("t=%v hHeap=%v, (%v:)", t, hHeap, origin(2)) + } panic(todo("")) } @@ -3317,6 +3971,9 @@ func XHeapDestroy(t *TLS, hHeap uintptr) int32 { // // ); func XHeapReAlloc(t *TLS, hHeap uintptr, dwFlags uint32, lpMem uintptr, dwBytes types.Size_t) uintptr { + if __ccgo_strace { + trc("t=%v hHeap=%v dwFlags=%v lpMem=%v dwBytes=%v, (%v:)", t, hHeap, dwFlags, lpMem, dwBytes, origin(2)) + } panic(todo("")) } @@ -3328,6 +3985,9 @@ func XHeapReAlloc(t *TLS, hHeap uintptr, dwFlags uint32, lpMem uintptr, dwBytes // // ); func XHeapSize(t *TLS, hHeap uintptr, dwFlags uint32, lpMem uintptr) types.Size_t { + if __ccgo_strace { + trc("t=%v hHeap=%v dwFlags=%v lpMem=%v, (%v:)", t, hHeap, dwFlags, lpMem, origin(2)) + } panic(todo("")) } @@ -3339,6 +3999,9 @@ func XHeapSize(t *TLS, hHeap uintptr, dwFlags uint32, lpMem uintptr) types.Size_ // // ); func XHeapValidate(t *TLS, hHeap uintptr, dwFlags uint32, lpMem uintptr) int32 { + if __ccgo_strace { + trc("t=%v hHeap=%v dwFlags=%v lpMem=%v, (%v:)", t, hHeap, dwFlags, lpMem, origin(2)) + } panic(todo("")) } @@ -3349,11 +4012,17 @@ func XHeapValidate(t *TLS, hHeap uintptr, dwFlags uint32, lpMem uintptr) int32 { // // ); func XHeapCompact(t *TLS, hHeap uintptr, dwFlags uint32) types.Size_t { + if __ccgo_strace { + trc("t=%v hHeap=%v dwFlags=%v, (%v:)", t, hHeap, dwFlags, origin(2)) + } panic(todo("")) } // HMODULE LoadLibraryA(LPCSTR lpLibFileName); func XLoadLibraryA(t *TLS, lpLibFileName uintptr) uintptr { + if __ccgo_strace { + trc("t=%v lpLibFileName=%v, (%v:)", t, lpLibFileName, origin(2)) + } panic(todo("")) } @@ -3363,6 +4032,9 @@ func XLoadLibraryA(t *TLS, lpLibFileName uintptr) uintptr { // // ); func XLoadLibraryW(t *TLS, lpLibFileName uintptr) uintptr { + if __ccgo_strace { + trc("t=%v lpLibFileName=%v, (%v:)", t, lpLibFileName, origin(2)) + } panic(todo("")) } @@ -3372,7 +4044,10 @@ func XLoadLibraryW(t *TLS, lpLibFileName uintptr) uintptr { // // ); func XLocalFree(t *TLS, hMem uintptr) uintptr { - h, err := syscall.LocalFree(syscall.Handle(hMem)) + if __ccgo_strace { + trc("t=%v hMem=%v, (%v:)", t, hMem, origin(2)) + } + h, err := windows.LocalFree(windows.Handle(hMem)) if h != 0 { if err != nil { t.setErrno(err) @@ -3394,11 +4069,13 @@ func XLocalFree(t *TLS, hMem uintptr) uintptr { // // ); func XLockFile(t *TLS, hFile uintptr, dwFileOffsetLow, dwFileOffsetHigh, nNumberOfBytesToLockLow, nNumberOfBytesToLockHigh uint32) int32 { + if __ccgo_strace { + trc("t=%v hFile=%v nNumberOfBytesToLockHigh=%v, (%v:)", t, hFile, nNumberOfBytesToLockHigh, origin(2)) + } - r1, _, e1 := syscall.Syscall6(procLockFile.Addr(), 5, - hFile, uintptr(dwFileOffsetLow), uintptr(dwFileOffsetHigh), uintptr(nNumberOfBytesToLockLow), uintptr(nNumberOfBytesToLockHigh), 0) + r1, _, e1 := procLockFile.Call(hFile, uintptr(dwFileOffsetLow), uintptr(dwFileOffsetHigh), uintptr(nNumberOfBytesToLockLow), uintptr(nNumberOfBytesToLockHigh), 0) if r1 == 0 { - if e1 != 0 { + if e1 != windows.NOERROR { t.setErrno(e1) } else { t.setErrno(errno.EINVAL) @@ -3420,10 +4097,12 @@ func XLockFile(t *TLS, hFile uintptr, dwFileOffsetLow, dwFileOffsetHigh, nNumber // // ); func XLockFileEx(t *TLS, hFile uintptr, dwFlags, dwReserved, nNumberOfBytesToLockLow, nNumberOfBytesToLockHigh uint32, lpOverlapped uintptr) int32 { - r1, _, e1 := syscall.Syscall6(procLockFileEx.Addr(), 6, - hFile, uintptr(dwFlags), uintptr(dwReserved), uintptr(nNumberOfBytesToLockLow), uintptr(nNumberOfBytesToLockHigh), lpOverlapped) + if __ccgo_strace { + trc("t=%v hFile=%v nNumberOfBytesToLockHigh=%v lpOverlapped=%v, (%v:)", t, hFile, nNumberOfBytesToLockHigh, lpOverlapped, origin(2)) + } + r1, _, e1 := procLockFileEx.Call(hFile, uintptr(dwFlags), uintptr(dwReserved), uintptr(nNumberOfBytesToLockLow), uintptr(nNumberOfBytesToLockHigh), lpOverlapped) if r1 == 0 { - if e1 != 0 { + if e1 != windows.NOERROR { t.setErrno(e1) } else { t.setErrno(errno.EINVAL) @@ -3443,10 +4122,13 @@ func XLockFileEx(t *TLS, hFile uintptr, dwFlags, dwReserved, nNumberOfBytesToLoc // // ); func XMapViewOfFile(t *TLS, hFileMappingObject uintptr, dwDesiredAccess, dwFileOffsetHigh, dwFileOffsetLow uint32, dwNumberOfBytesToMap types.Size_t) uintptr { - h, _, e1 := syscall.Syscall6(procMapViewOfFile.Addr(), 5, hFileMappingObject, uintptr(dwDesiredAccess), + if __ccgo_strace { + trc("t=%v hFileMappingObject=%v dwFileOffsetLow=%v dwNumberOfBytesToMap=%v, (%v:)", t, hFileMappingObject, dwFileOffsetLow, dwNumberOfBytesToMap, origin(2)) + } + h, _, e1 := procMapViewOfFile.Call(hFileMappingObject, uintptr(dwDesiredAccess), uintptr(dwFileOffsetHigh), uintptr(dwFileOffsetLow), uintptr(dwNumberOfBytesToMap), 0) if h == 0 { - if e1 != 0 { + if e1 != windows.NOERROR { t.setErrno(e1) } else { t.setErrno(errno.EINVAL) @@ -3461,7 +4143,10 @@ func XMapViewOfFile(t *TLS, hFileMappingObject uintptr, dwDesiredAccess, dwFileO // // ); func XQueryPerformanceCounter(t *TLS, lpPerformanceCount uintptr) int32 { - r0, _, _ := syscall.Syscall(procQueryPerformanceCounter.Addr(), 1, lpPerformanceCount, 0, 0) + if __ccgo_strace { + trc("t=%v lpPerformanceCount=%v, (%v:)", t, lpPerformanceCount, origin(2)) + } + r0, _, _ := procQueryPerformanceCounter.Call(lpPerformanceCount, 0, 0) return int32(r0) } @@ -3471,12 +4156,18 @@ func XQueryPerformanceCounter(t *TLS, lpPerformanceCount uintptr) int32 { // // ); func XSleep(t *TLS, dwMilliseconds uint32) { + if __ccgo_strace { + trc("t=%v dwMilliseconds=%v, (%v:)", t, dwMilliseconds, origin(2)) + } gotime.Sleep(gotime.Duration(dwMilliseconds) * gotime.Millisecond) } // BOOL SystemTimeToFileTime(const SYSTEMTIME *lpSystemTime, LPFILETIME lpFileTime); func XSystemTimeToFileTime(t *TLS, lpSystemTime, lpFileTime uintptr) int32 { - r0, _, _ := syscall.Syscall(procSystemTimeToFileTime.Addr(), 2, lpSystemTime, lpFileTime, 0) + if __ccgo_strace { + trc("t=%v lpFileTime=%v, (%v:)", t, lpFileTime, origin(2)) + } + r0, _, _ := procSystemTimeToFileTime.Call(lpSystemTime, lpFileTime, 0) return int32(r0) } @@ -3490,10 +4181,12 @@ func XSystemTimeToFileTime(t *TLS, lpSystemTime, lpFileTime uintptr) int32 { // // ); func XUnlockFile(t *TLS, hFile uintptr, dwFileOffsetLow, dwFileOffsetHigh, nNumberOfBytesToUnlockLow, nNumberOfBytesToUnlockHigh uint32) int32 { - r1, _, e1 := syscall.Syscall6(procUnlockFile.Addr(), 5, - hFile, uintptr(dwFileOffsetLow), uintptr(dwFileOffsetHigh), uintptr(nNumberOfBytesToUnlockLow), uintptr(nNumberOfBytesToUnlockHigh), 0) + if __ccgo_strace { + trc("t=%v hFile=%v nNumberOfBytesToUnlockHigh=%v, (%v:)", t, hFile, nNumberOfBytesToUnlockHigh, origin(2)) + } + r1, _, e1 := procUnlockFile.Call(hFile, uintptr(dwFileOffsetLow), uintptr(dwFileOffsetHigh), uintptr(nNumberOfBytesToUnlockLow), uintptr(nNumberOfBytesToUnlockHigh), 0) if r1 == 0 { - if e1 != 0 { + if e1 != windows.NOERROR { t.setErrno(e1) } else { t.setErrno(errno.EINVAL) @@ -3513,10 +4206,12 @@ func XUnlockFile(t *TLS, hFile uintptr, dwFileOffsetLow, dwFileOffsetHigh, nNumb // // ); func XUnlockFileEx(t *TLS, hFile uintptr, dwReserved, nNumberOfBytesToUnlockLow, nNumberOfBytesToUnlockHigh uint32, lpOverlapped uintptr) int32 { - r1, _, e1 := syscall.Syscall6(procUnlockFileEx.Addr(), 5, - hFile, uintptr(dwReserved), uintptr(nNumberOfBytesToUnlockLow), uintptr(nNumberOfBytesToUnlockHigh), lpOverlapped, 0) + if __ccgo_strace { + trc("t=%v hFile=%v nNumberOfBytesToUnlockHigh=%v lpOverlapped=%v, (%v:)", t, hFile, nNumberOfBytesToUnlockHigh, lpOverlapped, origin(2)) + } + r1, _, e1 := procUnlockFileEx.Call(hFile, uintptr(dwReserved), uintptr(nNumberOfBytesToUnlockLow), uintptr(nNumberOfBytesToUnlockHigh), lpOverlapped, 0) if r1 == 0 { - if e1 != 0 { + if e1 != windows.NOERROR { t.setErrno(e1) } else { t.setErrno(errno.EINVAL) @@ -3532,7 +4227,10 @@ func XUnlockFileEx(t *TLS, hFile uintptr, dwReserved, nNumberOfBytesToUnlockLow, // // ); func XUnmapViewOfFile(t *TLS, lpBaseAddress uintptr) int32 { - err := syscall.UnmapViewOfFile(lpBaseAddress) + if __ccgo_strace { + trc("t=%v lpBaseAddress=%v, (%v:)", t, lpBaseAddress, origin(2)) + } + err := windows.UnmapViewOfFile(lpBaseAddress) if err != nil { t.setErrno(err) return 0 @@ -3553,8 +4251,10 @@ func XUnmapViewOfFile(t *TLS, lpBaseAddress uintptr) int32 { // // ); func XWideCharToMultiByte(t *TLS, CodePage uint32, dwFlags uint32, lpWideCharStr uintptr, cchWideChar int32, lpMultiByteStr uintptr, cbMultiByte int32, lpDefaultChar, lpUsedDefaultChar uintptr) int32 { - r1, _, _ := syscall.Syscall9(procWideCharToMultiByte.Addr(), 8, - uintptr(CodePage), uintptr(dwFlags), lpWideCharStr, + if __ccgo_strace { + trc("t=%v CodePage=%v dwFlags=%v lpWideCharStr=%v cchWideChar=%v lpMultiByteStr=%v cbMultiByte=%v lpUsedDefaultChar=%v, (%v:)", t, CodePage, dwFlags, lpWideCharStr, cchWideChar, lpMultiByteStr, cbMultiByte, lpUsedDefaultChar, origin(2)) + } + r1, _, _ := procWideCharToMultiByte.Call(uintptr(CodePage), uintptr(dwFlags), lpWideCharStr, uintptr(cchWideChar), lpMultiByteStr, uintptr(cbMultiByte), lpDefaultChar, lpUsedDefaultChar, 0) return (int32(r1)) @@ -3566,6 +4266,9 @@ func XWideCharToMultiByte(t *TLS, CodePage uint32, dwFlags uint32, lpWideCharStr // // ) func XOutputDebugStringA(t *TLS, lpOutputString uintptr) { + if __ccgo_strace { + trc("t=%v lpOutputString=%v, (%v:)", t, lpOutputString, origin(2)) + } panic(todo("")) } @@ -3576,7 +4279,10 @@ func XOutputDebugStringA(t *TLS, lpOutputString uintptr) { // // ); func XFlushViewOfFile(t *TLS, lpBaseAddress uintptr, dwNumberOfBytesToFlush types.Size_t) int32 { - err := syscall.FlushViewOfFile(lpBaseAddress, uintptr(dwNumberOfBytesToFlush)) + if __ccgo_strace { + trc("t=%v lpBaseAddress=%v dwNumberOfBytesToFlush=%v, (%v:)", t, lpBaseAddress, dwNumberOfBytesToFlush, origin(2)) + } + err := windows.FlushViewOfFile(lpBaseAddress, uintptr(dwNumberOfBytesToFlush)) if err != nil { t.setErrno(err) return 0 @@ -3613,11 +4319,14 @@ func WindowsTickToUnixSeconds(windowsTicks int64) int64 { // int _stat64(const char *path, struct __stat64 *buffer); func X_stat64(t *TLS, path, buffer uintptr) int32 { + if __ccgo_strace { + trc("t=%v buffer=%v, (%v:)", t, buffer, origin(2)) + } - var fa syscall.Win32FileAttributeData - r1, _, e1 := syscall.Syscall(procGetFileAttributesExA.Addr(), 3, path, syscall.GetFileExInfoStandard, (uintptr)(unsafe.Pointer(&fa))) + var fa windows.Win32FileAttributeData + r1, _, e1 := procGetFileAttributesExA.Call(path, windows.GetFileExInfoStandard, (uintptr)(unsafe.Pointer(&fa))) if r1 == 0 { - if e1 != 0 { + if e1 != windows.NOERROR { t.setErrno(e1) } else { t.setErrno(errno.EINVAL) @@ -3642,16 +4351,16 @@ func X_stat64(t *TLS, path, buffer uintptr) int32 { func WindowsAttrbiutesToStat(fa uint32) uint16 { var src_mode = fa & 0xff var st_mode uint16 - if (src_mode & syscall.FILE_ATTRIBUTE_DIRECTORY) != 0 { - st_mode = syscall.S_IFDIR + if (src_mode & windows.FILE_ATTRIBUTE_DIRECTORY) != 0 { + st_mode = windows.S_IFDIR } else { - st_mode = syscall.S_IFREG + st_mode = windows.S_IFREG } - if src_mode&syscall.FILE_ATTRIBUTE_READONLY != 0 { - st_mode = st_mode | syscall.S_IRUSR + if src_mode&windows.FILE_ATTRIBUTE_READONLY != 0 { + st_mode = st_mode | windows.S_IRUSR } else { - st_mode = st_mode | syscall.S_IRUSR | syscall.S_IWUSR + st_mode = st_mode | windows.S_IRUSR | windows.S_IWUSR } // fill group fields st_mode = st_mode | (st_mode&0x700)>>3 @@ -3666,6 +4375,9 @@ func WindowsAttrbiutesToStat(fa uint32) uint16 { // // ); func X_chsize(t *TLS, fd int32, size long) int32 { + if __ccgo_strace { + trc("t=%v fd=%v size=%v, (%v:)", t, fd, size, origin(2)) + } f, ok := fdToFile(fd) if !ok { @@ -3673,7 +4385,7 @@ func X_chsize(t *TLS, fd int32, size long) int32 { return -1 } - err := syscall.Ftruncate(f.Handle, int64(size)) + err := windows.Ftruncate(f.Handle, int64(size)) if err != nil { t.setErrno(err) return -1 @@ -3684,12 +4396,15 @@ func X_chsize(t *TLS, fd int32, size long) int32 { // int _snprintf(char *str, size_t size, const char *format, ...); func X_snprintf(t *TLS, str uintptr, size types.Size_t, format, args uintptr) int32 { + if __ccgo_strace { + trc("t=%v str=%v size=%v args=%v, (%v:)", t, str, size, args, origin(2)) + } return Xsnprintf(t, str, size, format, args) } const wErr_ERROR_INSUFFICIENT_BUFFER = 122 -func win32FindDataToFileInfo(t *TLS, fdata *stat.X_finddata64i32_t, wfd *syscall.Win32finddata) int32 { +func win32FindDataToFileInfo(t *TLS, fdata *stat.X_finddata64i32_t, wfd *windows.Win32finddata) int32 { // t64 = 64-bit time value var accessTime = int64(wfd.LastAccessTime.HighDateTime)<<32 + int64(wfd.LastAccessTime.LowDateTime) fdata.Ftime_access = WindowsTickToUnixSeconds(accessTime) @@ -3719,20 +4434,23 @@ func win32FindDataToFileInfo(t *TLS, fdata *stat.X_finddata64i32_t, wfd *syscall // // ); func X_findfirst64i32(t *TLS, filespec, fileinfo uintptr) types.Intptr_t { + if __ccgo_strace { + trc("t=%v fileinfo=%v, (%v:)", t, fileinfo, origin(2)) + } // Note: this is the 'narrow' character findfirst -- expects output // as mbcs -- conversion below -- via ToFileInfo var gsFileSpec = GoString(filespec) - namep, err := syscall.UTF16PtrFromString(gsFileSpec) + namep, err := windows.UTF16PtrFromString(gsFileSpec) if err != nil { t.setErrno(err) return types.Intptr_t(-1) } var fdata = (*stat.X_finddata64i32_t)(unsafe.Pointer(fileinfo)) - var wfd syscall.Win32finddata - h, err := syscall.FindFirstFile((*uint16)(unsafe.Pointer(namep)), &wfd) + var wfd windows.Win32finddata + h, err := windows.FindFirstFile((*uint16)(unsafe.Pointer(namep)), &wfd) if err != nil { t.setErrno(err) return types.Intptr_t(-1) @@ -3740,7 +4458,7 @@ func X_findfirst64i32(t *TLS, filespec, fileinfo uintptr) types.Intptr_t { rv := win32FindDataToFileInfo(t, fdata, &wfd) if rv != 0 { if h != 0 { - syscall.FindClose(h) + windows.FindClose(h) } return types.Intptr_t(-1) } @@ -3754,11 +4472,14 @@ func X_findfirst64i32(t *TLS, filespec, fileinfo uintptr) types.Intptr_t { // // ); func X_findnext64i32(t *TLS, handle types.Intptr_t, fileinfo uintptr) int32 { + if __ccgo_strace { + trc("t=%v handle=%v fileinfo=%v, (%v:)", t, handle, fileinfo, origin(2)) + } var fdata = (*stat.X_finddata64i32_t)(unsafe.Pointer(fileinfo)) - var wfd syscall.Win32finddata + var wfd windows.Win32finddata - err := syscall.FindNextFile(syscall.Handle(handle), &wfd) + err := windows.FindNextFile(windows.Handle(handle), &wfd) if err != nil { t.setErrno(err) return -1 @@ -3777,8 +4498,11 @@ func X_findnext64i32(t *TLS, handle types.Intptr_t, fileinfo uintptr) int32 { // // ); func X_findclose(t *TLS, handle types.Intptr_t) int32 { + if __ccgo_strace { + trc("t=%v handle=%v, (%v:)", t, handle, origin(2)) + } - err := syscall.FindClose(syscall.Handle(handle)) + err := windows.FindClose(windows.Handle(handle)) if err != nil { t.setErrno(err) return -1 @@ -3794,10 +4518,13 @@ func X_findclose(t *TLS, handle types.Intptr_t) int32 { // // ); func XGetEnvironmentVariableA(t *TLS, lpName, lpBuffer uintptr, nSize uint32) uint32 { - r0, _, e1 := syscall.Syscall(procGetEnvironmentVariableA.Addr(), 3, lpName, lpBuffer, uintptr(nSize)) + if __ccgo_strace { + trc("t=%v lpBuffer=%v nSize=%v, (%v:)", t, lpBuffer, nSize, origin(2)) + } + r0, _, e1 := procGetEnvironmentVariableA.Call(lpName, lpBuffer, uintptr(nSize)) n := uint32(r0) if n == 0 { - if e1 != 0 { + if e1 != windows.NOERROR { t.setErrno(e1) } else { t.setErrno(errno.EINVAL) @@ -3813,6 +4540,9 @@ func XGetEnvironmentVariableA(t *TLS, lpName, lpBuffer uintptr, nSize uint32) ui // // ); func X_fstat64(t *TLS, fd int32, buffer uintptr) int32 { + if __ccgo_strace { + trc("t=%v fd=%v buffer=%v, (%v:)", t, fd, buffer, origin(2)) + } f, ok := fdToFile(fd) if !ok { @@ -3820,8 +4550,8 @@ func X_fstat64(t *TLS, fd int32, buffer uintptr) int32 { return -1 } - var d syscall.ByHandleFileInformation - err := syscall.GetFileInformationByHandle(f.Handle, &d) + var d windows.ByHandleFileInformation + err := windows.GetFileInformationByHandle(f.Handle, &d) if err != nil { t.setErrno(EBADF) return -1 @@ -3850,7 +4580,10 @@ func X_fstat64(t *TLS, fd int32, buffer uintptr) int32 { // // ); func XCreateEventA(t *TLS, lpEventAttributes uintptr, bManualReset, bInitialState int32, lpName uintptr) uintptr { - r0, _, err := syscall.Syscall6(procCreateEventA.Addr(), 4, lpEventAttributes, uintptr(bManualReset), + if __ccgo_strace { + trc("t=%v lpEventAttributes=%v bInitialState=%v lpName=%v, (%v:)", t, lpEventAttributes, bInitialState, lpName, origin(2)) + } + r0, _, err := procCreateEventA.Call(lpEventAttributes, uintptr(bManualReset), uintptr(bInitialState), lpName, 0, 0) if r0 == 0 { t.setErrno(err) @@ -3864,6 +4597,9 @@ func XCreateEventA(t *TLS, lpEventAttributes uintptr, bManualReset, bInitialStat // // ); func XCancelSynchronousIo(t *TLS, hThread uintptr) int32 { + if __ccgo_strace { + trc("t=%v hThread=%v, (%v:)", t, hThread, origin(2)) + } panic(todo("")) } @@ -3876,11 +4612,14 @@ func X_endthreadex(t *TLS, _ ...interface{}) { // and gets that via the go callback. This is safe because the thread is calling into go // not a cdecl function which would expect the stack setup of cdecl. func X_beginthread(t *TLS, procAddr uintptr, stack_sz uint32, args uintptr) int32 { + if __ccgo_strace { + trc("t=%v procAddr=%v stack_sz=%v args=%v, (%v:)", t, procAddr, stack_sz, args, origin(2)) + } f := (*struct{ f func(*TLS, uintptr) uint32 })(unsafe.Pointer(&struct{ uintptr }{procAddr})).f var tAdp = ThreadAdapter{threadFunc: f, tls: NewTLS(), param: args} tAdp.token = addObject(&tAdp) - r0, _, err := syscall.Syscall6(procCreateThread.Addr(), 6, 0, uintptr(stack_sz), + r0, _, err := procCreateThread.Call(0, uintptr(stack_sz), threadCallback, tAdp.token, 0, 0) if r0 == 0 { t.setErrno(err) @@ -3903,7 +4642,7 @@ func X_beginthreadex(t *TLS, _ uintptr, stack_sz uint32, procAddr uintptr, args var tAdp = ThreadAdapter{threadFunc: f, tls: NewTLS(), param: args} tAdp.token = addObject(&tAdp) - r0, _, err := syscall.Syscall6(procCreateThread.Addr(), 6, 0, uintptr(stack_sz), + r0, _, err := procCreateThread.Call(0, uintptr(stack_sz), threadCallback, tAdp.token, uintptr(initf), thAddr) if r0 == 0 { t.setErrno(err) @@ -3913,7 +4652,10 @@ func X_beginthreadex(t *TLS, _ uintptr, stack_sz uint32, procAddr uintptr, args // DWORD GetCurrentThreadId(); func XGetCurrentThreadId(t *TLS) uint32 { - r0, _, _ := syscall.Syscall(procGetCurrentThreadId.Addr(), 0, 0, 0, 0) + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } + r0, _, _ := procGetCurrentThreadId.Call(0, 0, 0) return uint32(r0) //return uint32(t.ID) } @@ -3925,7 +4667,10 @@ func XGetCurrentThreadId(t *TLS) uint32 { // // ); func XGetExitCodeThread(t *TLS, hThread, lpExitCode uintptr) int32 { - r0, _, _ := syscall.Syscall(procGetExitCodeThread.Addr(), 2, hThread, lpExitCode, 0) + if __ccgo_strace { + trc("t=%v lpExitCode=%v, (%v:)", t, lpExitCode, origin(2)) + } + r0, _, _ := procGetExitCodeThread.Call(hThread, lpExitCode, 0) return int32(r0) } @@ -3937,7 +4682,10 @@ func XGetExitCodeThread(t *TLS, hThread, lpExitCode uintptr) int32 { // // ); func XWaitForSingleObjectEx(t *TLS, hHandle uintptr, dwMilliseconds uint32, bAlertable int32) uint32 { - rv, _, _ := syscall.Syscall(procWaitForSingleObjectEx.Addr(), 3, hHandle, uintptr(dwMilliseconds), uintptr(bAlertable)) + if __ccgo_strace { + trc("t=%v hHandle=%v dwMilliseconds=%v bAlertable=%v, (%v:)", t, hHandle, dwMilliseconds, bAlertable, origin(2)) + } + rv, _, _ := procWaitForSingleObjectEx.Call(hHandle, uintptr(dwMilliseconds), uintptr(bAlertable)) return uint32(rv) } @@ -3951,15 +4699,17 @@ func XWaitForSingleObjectEx(t *TLS, hHandle uintptr, dwMilliseconds uint32, bAle // // ); func XMsgWaitForMultipleObjectsEx(t *TLS, nCount uint32, pHandles uintptr, dwMilliseconds, dwWakeMask, dwFlags uint32) uint32 { - r0, _, err := syscall.Syscall6(procMsgWaitForMultipleObjectsEx.Addr(), 5, - uintptr(nCount), + if __ccgo_strace { + trc("t=%v nCount=%v pHandles=%v dwFlags=%v, (%v:)", t, nCount, pHandles, dwFlags, origin(2)) + } + r0, _, err := procMsgWaitForMultipleObjectsEx.Call(uintptr(nCount), pHandles, uintptr(dwMilliseconds), uintptr(dwWakeMask), uintptr(dwFlags), 0, ) - if err != 0 { + if err != windows.NOERROR { t.setErrno(err) } return uint32(r0) @@ -3977,7 +4727,10 @@ func XMessageBoxW(t *TLS, _ ...interface{}) int32 { // // ); func XGetModuleFileNameW(t *TLS, hModule, lpFileName uintptr, nSize uint32) uint32 { - r0, _, err := syscall.Syscall(procGetModuleFileNameW.Addr(), 3, hModule, lpFileName, uintptr(nSize)) + if __ccgo_strace { + trc("t=%v lpFileName=%v nSize=%v, (%v:)", t, lpFileName, nSize, origin(2)) + } + r0, _, err := procGetModuleFileNameW.Call(hModule, lpFileName, uintptr(nSize)) if r0 == 0 { t.setErrno(err) } @@ -3992,8 +4745,11 @@ func XGetModuleFileNameW(t *TLS, hModule, lpFileName uintptr, nSize uint32) uint // // ); func XNetGetDCName(t *TLS, ServerName, DomainName, Buffer uintptr) int32 { - r0, _, err := syscall.Syscall(procNetGetDCName.Addr(), 3, ServerName, DomainName, Buffer) - if err != 0 { + if __ccgo_strace { + trc("t=%v Buffer=%v, (%v:)", t, Buffer, origin(2)) + } + r0, _, err := procNetGetDCName.Call(ServerName, DomainName, Buffer) + if err != windows.NOERROR { t.setErrno(err) } return int32(r0) @@ -4008,15 +4764,17 @@ func XNetGetDCName(t *TLS, ServerName, DomainName, Buffer uintptr) int32 { // // ); func XNetUserGetInfo(t *TLS, servername, username uintptr, level uint32, bufptr uintptr) uint32 { - r0, _, err := syscall.Syscall6(procNetUserGetInfo.Addr(), 4, - servername, + if __ccgo_strace { + trc("t=%v username=%v level=%v bufptr=%v, (%v:)", t, username, level, bufptr, origin(2)) + } + r0, _, err := procNetUserGetInfo.Call(servername, username, uintptr(level), bufptr, 0, 0, ) - if err != 0 { + if err != windows.NOERROR { t.setErrno(err) } return uint32(r0) @@ -4033,8 +4791,11 @@ func XlstrlenW(t *TLS, _ ...interface{}) int32 { // // ); func XGetProfilesDirectoryW(t *TLS, lpProfileDir, lpcchSize uintptr) int32 { - r0, _, err := syscall.Syscall(procGetProfilesDirectoryW.Addr(), 2, lpProfileDir, lpcchSize, 0) - if err != 0 { + if __ccgo_strace { + trc("t=%v lpcchSize=%v, (%v:)", t, lpcchSize, origin(2)) + } + r0, _, err := procGetProfilesDirectoryW.Call(lpProfileDir, lpcchSize, 0) + if err != windows.NOERROR { t.setErrno(err) } return int32(r0) @@ -4055,15 +4816,17 @@ func XNetApiBufferFree(t *TLS, _ ...interface{}) int32 { // // ); func XGetPrivateProfileStringA(t *TLS, lpAppName, lpKeyName, lpDefault, lpReturnedString uintptr, nSize uint32, lpFileName uintptr) uint32 { - r0, _, err := syscall.Syscall6(procGetPrivateProfileStringA.Addr(), 4, - lpAppName, + if __ccgo_strace { + trc("t=%v lpReturnedString=%v nSize=%v lpFileName=%v, (%v:)", t, lpReturnedString, nSize, lpFileName, origin(2)) + } + r0, _, err := procGetPrivateProfileStringA.Call(lpAppName, lpKeyName, lpDefault, lpReturnedString, uintptr(nSize), lpFileName, ) - if err != 0 { + if err != windows.NOERROR { t.setErrno(0x02) } return uint32(r0) @@ -4083,8 +4846,11 @@ func XGetWindowsDirectoryA(t *TLS, _ ...interface{}) int32 { // // ); func XGetFileSecurityW(t *TLS, lpFileName uintptr, RequestedInformation uint32, pSecurityDescriptor uintptr, nLength uint32, lpnLengthNeeded uintptr) int32 { - r0, _, err := syscall.Syscall6(procGetFileSecurityW.Addr(), 5, lpFileName, uintptr(RequestedInformation), pSecurityDescriptor, uintptr(nLength), lpnLengthNeeded, 0) - if err != 0 { + if __ccgo_strace { + trc("t=%v lpFileName=%v RequestedInformation=%v pSecurityDescriptor=%v nLength=%v lpnLengthNeeded=%v, (%v:)", t, lpFileName, RequestedInformation, pSecurityDescriptor, nLength, lpnLengthNeeded, origin(2)) + } + r0, _, err := procGetFileSecurityW.Call(lpFileName, uintptr(RequestedInformation), pSecurityDescriptor, uintptr(nLength), lpnLengthNeeded, 0) + if err != windows.NOERROR { t.setErrno(err) } return int32(r0) @@ -4098,8 +4864,11 @@ func XGetFileSecurityW(t *TLS, lpFileName uintptr, RequestedInformation uint32, // // ); func XGetSecurityDescriptorOwner(t *TLS, pSecurityDescriptor, pOwner, lpbOwnerDefaulted uintptr) int32 { - r0, _, err := syscall.Syscall(procGetSecurityDescriptorOwner.Addr(), 3, pSecurityDescriptor, pOwner, lpbOwnerDefaulted) - if err != 0 { + if __ccgo_strace { + trc("t=%v lpbOwnerDefaulted=%v, (%v:)", t, lpbOwnerDefaulted, origin(2)) + } + r0, _, err := procGetSecurityDescriptorOwner.Call(pSecurityDescriptor, pOwner, lpbOwnerDefaulted) + if err != windows.NOERROR { t.setErrno(err) } return int32(r0) @@ -4112,8 +4881,11 @@ func XGetSecurityDescriptorOwner(t *TLS, pSecurityDescriptor, pOwner, lpbOwnerDe // // ); func XGetSidIdentifierAuthority(t *TLS, pSid uintptr) uintptr { - r0, _, err := syscall.Syscall(procGetSidIdentifierAuthority.Addr(), 1, pSid, 0, 0) - if err != 0 { + if __ccgo_strace { + trc("t=%v pSid=%v, (%v:)", t, pSid, origin(2)) + } + r0, _, err := procGetSidIdentifierAuthority.Call(pSid, 0, 0) + if err != windows.NOERROR { t.setErrno(err) } return r0 @@ -4125,8 +4897,11 @@ func XGetSidIdentifierAuthority(t *TLS, pSid uintptr) uintptr { // // ); func XImpersonateSelf(t *TLS, ImpersonationLevel int32) int32 { - r0, _, err := syscall.Syscall(procImpersonateSelf.Addr(), 1, uintptr(ImpersonationLevel), 0, 0) - if err != 0 { + if __ccgo_strace { + trc("t=%v ImpersonationLevel=%v, (%v:)", t, ImpersonationLevel, origin(2)) + } + r0, _, err := procImpersonateSelf.Call(uintptr(ImpersonationLevel), 0, 0) + if err != windows.NOERROR { t.setErrno(err) } return int32(r0) @@ -4141,8 +4916,11 @@ func XImpersonateSelf(t *TLS, ImpersonationLevel int32) int32 { // // ); func XOpenThreadToken(t *TLS, ThreadHandle uintptr, DesiredAccess uint32, OpenAsSelf int32, TokenHandle uintptr) int32 { - r0, _, err := syscall.Syscall6(procOpenThreadToken.Addr(), 4, ThreadHandle, uintptr(DesiredAccess), uintptr(OpenAsSelf), TokenHandle, 0, 0) - if err != 0 { + if __ccgo_strace { + trc("t=%v ThreadHandle=%v DesiredAccess=%v OpenAsSelf=%v TokenHandle=%v, (%v:)", t, ThreadHandle, DesiredAccess, OpenAsSelf, TokenHandle, origin(2)) + } + r0, _, err := procOpenThreadToken.Call(ThreadHandle, uintptr(DesiredAccess), uintptr(OpenAsSelf), TokenHandle, 0, 0) + if err != windows.NOERROR { t.setErrno(err) } return int32(r0) @@ -4150,8 +4928,11 @@ func XOpenThreadToken(t *TLS, ThreadHandle uintptr, DesiredAccess uint32, OpenAs // HANDLE GetCurrentThread(); func XGetCurrentThread(t *TLS) uintptr { - r0, _, err := syscall.Syscall(procGetCurrentThread.Addr(), 0, 0, 0, 0) - if err != 0 { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } + r0, _, err := procGetCurrentThread.Call(0, 0, 0) + if err != windows.NOERROR { t.setErrno(err) } return r0 @@ -4159,8 +4940,11 @@ func XGetCurrentThread(t *TLS) uintptr { // BOOL RevertToSelf(); func XRevertToSelf(t *TLS) int32 { - r0, _, err := syscall.Syscall(procRevertToSelf.Addr(), 0, 0, 0, 0) - if err != 0 { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } + r0, _, err := procRevertToSelf.Call(0, 0, 0) + if err != windows.NOERROR { t.setErrno(err) } return int32(r0) @@ -4179,8 +4963,10 @@ func XRevertToSelf(t *TLS) int32 { // // ); func XAccessCheck(t *TLS, pSecurityDescriptor, ClientToken uintptr, DesiredAccess uint32, GenericMapping, PrivilegeSet, PrivilegeSetLength, GrantedAccess, AccessStatus uintptr) int32 { - r0, _, err := syscall.Syscall9(procAccessCheck.Addr(), 8, - pSecurityDescriptor, + if __ccgo_strace { + trc("t=%v ClientToken=%v DesiredAccess=%v AccessStatus=%v, (%v:)", t, ClientToken, DesiredAccess, AccessStatus, origin(2)) + } + r0, _, err := procAccessCheck.Call(pSecurityDescriptor, ClientToken, uintptr(DesiredAccess), GenericMapping, @@ -4190,7 +4976,7 @@ func XAccessCheck(t *TLS, pSecurityDescriptor, ClientToken uintptr, DesiredAcces AccessStatus, 0, ) - if err != 0 { + if err != windows.NOERROR { t.setErrno(err) } return int32(r0) @@ -4203,6 +4989,9 @@ func XAccessCheck(t *TLS, pSecurityDescriptor, ClientToken uintptr, DesiredAcces // // ); func Xwcsicmp(t *TLS, string1, string2 uintptr) int32 { + if __ccgo_strace { + trc("t=%v string2=%v, (%v:)", t, string2, origin(2)) + } var s1 = strings.ToLower(goWideString(string1)) var s2 = strings.ToLower(goWideString(string2)) return int32(strings.Compare(s1, s2)) @@ -4214,7 +5003,10 @@ func Xwcsicmp(t *TLS, string1, string2 uintptr) int32 { // // ); func XSetCurrentDirectoryW(t *TLS, lpPathName uintptr) int32 { - err := syscall.SetCurrentDirectory((*uint16)(unsafe.Pointer(lpPathName))) + if __ccgo_strace { + trc("t=%v lpPathName=%v, (%v:)", t, lpPathName, origin(2)) + } + err := windows.SetCurrentDirectory((*uint16)(unsafe.Pointer(lpPathName))) if err != nil { t.setErrno(err) return 0 @@ -4229,7 +5021,10 @@ func XSetCurrentDirectoryW(t *TLS, lpPathName uintptr) int32 { // // ); func XGetCurrentDirectoryW(t *TLS, nBufferLength uint32, lpBuffer uintptr) uint32 { - n, err := syscall.GetCurrentDirectory(nBufferLength, (*uint16)(unsafe.Pointer(lpBuffer))) + if __ccgo_strace { + trc("t=%v nBufferLength=%v lpBuffer=%v, (%v:)", t, nBufferLength, lpBuffer, origin(2)) + } + n, err := windows.GetCurrentDirectory(nBufferLength, (*uint16)(unsafe.Pointer(lpBuffer))) if err != nil { t.setErrno(err) } @@ -4243,9 +5038,12 @@ func XGetCurrentDirectoryW(t *TLS, nBufferLength uint32, lpBuffer uintptr) uint3 // // ); func XGetFileInformationByHandle(t *TLS, hFile, lpFileInformation uintptr) int32 { - r1, _, e1 := syscall.Syscall(procGetFileInformationByHandle.Addr(), 2, hFile, lpFileInformation, 0) + if __ccgo_strace { + trc("t=%v lpFileInformation=%v, (%v:)", t, lpFileInformation, origin(2)) + } + r1, _, e1 := procGetFileInformationByHandle.Call(hFile, lpFileInformation, 0) if r1 == 0 { - if e1 != 0 { + if e1 != windows.NOERROR { t.setErrno(e1) } else { t.setErrno(errno.EINVAL) @@ -4267,8 +5065,10 @@ func XGetFileInformationByHandle(t *TLS, hFile, lpFileInformation uintptr) int32 // // ); func XGetVolumeInformationW(t *TLS, lpRootPathName, lpVolumeNameBuffer uintptr, nVolumeNameSize uint32, lpVolumeSerialNumber, lpMaximumComponentLength, lpFileSystemFlags, lpFileSystemNameBuffer uintptr, nFileSystemNameSize uint32) int32 { - r0, _, err := syscall.Syscall9(procGetVolumeInformationW.Addr(), 8, - lpRootPathName, + if __ccgo_strace { + trc("t=%v lpVolumeNameBuffer=%v nVolumeNameSize=%v lpFileSystemNameBuffer=%v nFileSystemNameSize=%v, (%v:)", t, lpVolumeNameBuffer, nVolumeNameSize, lpFileSystemNameBuffer, nFileSystemNameSize, origin(2)) + } + r0, _, err := procGetVolumeInformationW.Call(lpRootPathName, lpVolumeNameBuffer, uintptr(nVolumeNameSize), lpVolumeSerialNumber, @@ -4278,7 +5078,7 @@ func XGetVolumeInformationW(t *TLS, lpRootPathName, lpVolumeNameBuffer uintptr, uintptr(nFileSystemNameSize), 0, ) - if err != 0 { + if err != windows.NOERROR { t.setErrno(err) } return int32(r0) @@ -4291,6 +5091,9 @@ func XGetVolumeInformationW(t *TLS, lpRootPathName, lpVolumeNameBuffer uintptr, // // ); func Xwcschr(t *TLS, str uintptr, c wchar_t) uintptr { + if __ccgo_strace { + trc("t=%v str=%v c=%v, (%v:)", t, str, c, origin(2)) + } var source = str for { var buf = *(*uint16)(unsafe.Pointer(source)) @@ -4314,58 +5117,83 @@ func Xwcschr(t *TLS, str uintptr, c wchar_t) uintptr { // const FILETIME *lpLastWriteTime // // ); -func XSetFileTime(t *TLS, hFile uintptr, lpCreationTime, lpLastAccessTime, lpLastWriteTime uintptr) int32 { - panic(todo("")) +func XSetFileTime(t *TLS, _hFile uintptr, _lpCreationTime, _lpLastAccessTime, _lpLastWriteTime uintptr) (r int32) { + if __ccgo_strace { + trc("hFile=%+v lpCreationTime=%+v lpLastAccessTime=%+v lpLastWriteTime=%+v", _hFile, _lpCreationTime, _lpLastAccessTime, _lpLastWriteTime) + defer func() { trc(`XSetFileTime->%+v`, r) }() + } + r0, r1, err := procSetFileTime.Call(_hFile, _lpCreationTime, _lpLastAccessTime, _lpLastWriteTime) + if err != windows.NOERROR { + if __ccgo_strace { + trc(`r0=%v r1=%v err=%v`, r0, r1, err) + } + t.SetLastError(uint32(err.(windows.Errno))) + } + return int32(r0) } -// DWORD GetNamedSecurityInfoW( -// -// LPCWSTR pObjectName, -// SE_OBJECT_TYPE ObjectType, -// SECURITY_INFORMATION SecurityInfo, -// PSID *ppsidOwner, -// PSID *ppsidGroup, -// PACL *ppDacl, -// PACL *ppSacl, -// PSECURITY_DESCRIPTOR *ppSecurityDescriptor -// -// ); -func XGetNamedSecurityInfoW(t *TLS, pObjectName uintptr, ObjectType, SecurityInfo uint32, ppsidOwner, ppsidGroup, ppDacl, ppSacl, ppSecurityDescriptor uintptr) uint32 { - panic(todo("")) +// __attribute__((dllimport)) DWORD GetNamedSecurityInfoW (LPCWSTR pObjectName, SE_OBJECT_TYPE ObjectType, SECURITY_INFORMATION SecurityInfo, PSID *ppsidOwner, PSID *ppsidGroup, PACL *ppDacl, PACL *ppSacl, PSECURITY_DESCRIPTOR *ppSecurityDescriptor); +func XGetNamedSecurityInfoW(tls *TLS, _pObjectName uintptr, _ObjectType int32, _SecurityInfo uint32, _ppsidOwner uintptr, _ppsidGroup uintptr, _ppDacl uintptr, _ppSacl uintptr, _ppSecurityDescriptor uintptr) (r uint32) { + if __ccgo_strace { + trc("pObjectName=%+v ObjectType=%+v SecurityInfo=%+v ppsidOwner=%+v ppsidGroup=%+v ppDacl=%+v ppSacl=%+v ppSecurityDescriptor=%+v", _pObjectName, _ObjectType, _SecurityInfo, _ppsidOwner, _ppsidGroup, _ppDacl, _ppSacl, _ppSecurityDescriptor) + defer func() { trc(`XGetNamedSecurityInfoW->%+v`, r) }() + } + r0, r1, err := procGetNamedSecurityInfoW.Call(_pObjectName, uintptr(_ObjectType), uintptr(_SecurityInfo), _ppsidOwner, _ppsidGroup, _ppDacl, _ppSacl, _ppSecurityDescriptor) + if err != windows.NOERROR { + if __ccgo_strace { + trc(`r0=%v r1=%v err=%v`, r0, r1, err) + } + tls.SetLastError(uint32(err.(windows.Errno))) + } + return uint32(r0) } -// BOOL OpenProcessToken( -// -// HANDLE ProcessHandle, -// DWORD DesiredAccess, -// PHANDLE TokenHandle -// -// ); -func XOpenProcessToken(t *TLS, ProcessHandle uintptr, DesiredAccess uint32, TokenHandle uintptr) int32 { - panic(todo("")) +// __attribute__((dllimport)) WINBOOL OpenProcessToken (HANDLE ProcessHandle, DWORD DesiredAccess, PHANDLE TokenHandle); +func XOpenProcessToken(tls *TLS, _ProcessHandle uintptr, _DesiredAccess uint32, _TokenHandle uintptr) (r int32) { + if __ccgo_strace { + trc("ProcessHandle=%+v DesiredAccess=%+v TokenHandle=%+v", _ProcessHandle, _DesiredAccess, _TokenHandle) + defer func() { trc(`XOpenProcessToken->%+v`, r) }() + } + r0, r1, err := procOpenProcessToken.Call(_ProcessHandle, uintptr(_DesiredAccess), _TokenHandle) + if err != windows.NOERROR { + if __ccgo_strace { + trc(`r0=%v r1=%v err=%v`, r0, r1, err) + } + tls.SetLastError(uint32(err.(windows.Errno))) + } + return int32(r0) } -// BOOL GetTokenInformation( -// -// HANDLE TokenHandle, -// TOKEN_INFORMATION_CLASS TokenInformationClass, -// LPVOID TokenInformation, -// DWORD TokenInformationLength, -// PDWORD ReturnLength -// -// ); -func XGetTokenInformation(t *TLS, TokenHandle uintptr, TokenInformationClass uint32, TokenInformation uintptr, TokenInformationLength uint32, ReturnLength uintptr) int32 { - panic(todo("")) +// __attribute__((dllimport)) WINBOOL GetTokenInformation (HANDLE TokenHandle, TOKEN_INFORMATION_CLASS TokenInformationClass, LPVOID TokenInformation, DWORD TokenInformationLength, PDWORD ReturnLength); +func XGetTokenInformation(tls *TLS, _TokenHandle uintptr, _TokenInformationClass int32, _TokenInformation uintptr, _TokenInformationLength uint32, _ReturnLength uintptr) (r int32) { + if __ccgo_strace { + trc("TokenHandle=%+v TokenInformationClass=%+v TokenInformation=%+v TokenInformationLength=%+v ReturnLength=%+v", _TokenHandle, _TokenInformationClass, _TokenInformation, _TokenInformationLength, _ReturnLength) + defer func() { trc(`XGetTokenInformation->%+v`, r) }() + } + r0, r1, err := procGetTokenInformation.Call(_TokenHandle, uintptr(_TokenInformationClass), _TokenInformation, uintptr(_TokenInformationLength), _ReturnLength) + if err != windows.NOERROR { + if __ccgo_strace { + trc(`r0=%v r1=%v err=%v`, r0, r1, err) + } + tls.SetLastError(uint32(err.(windows.Errno))) + } + return int32(r0) } -// BOOL EqualSid( -// -// PSID pSid1, -// PSID pSid2 -// -// ); -func XEqualSid(t *TLS, pSid1, pSid2 uintptr) int32 { - panic(todo("")) +// __attribute__((dllimport)) WINBOOL EqualSid (PSID pSid1, PSID pSid2); +func XEqualSid(tls *TLS, _pSid1 uintptr, _pSid2 uintptr) (r int32) { + if __ccgo_strace { + trc("pSid1=%+v pSid2=%+v", _pSid1, _pSid2) + defer func() { trc(`XEqualSid->%+v`, r) }() + } + r0, r1, err := procEqualSid.Call(_pSid1, _pSid2) + if err != windows.NOERROR { + if __ccgo_strace { + trc(`r0=%v r1=%v err=%v`, r0, r1, err) + } + tls.SetLastError(uint32(err.(windows.Errno))) + } + return int32(r0) } // int WSAStartup( @@ -4375,7 +5203,10 @@ func XEqualSid(t *TLS, pSid1, pSid2 uintptr) int32 { // // ); func XWSAStartup(t *TLS, wVersionRequired uint16, lpWSAData uintptr) int32 { - r0, _, _ := syscall.Syscall(procWSAStartup.Addr(), 2, uintptr(wVersionRequired), lpWSAData, 0) + if __ccgo_strace { + trc("t=%v wVersionRequired=%v lpWSAData=%v, (%v:)", t, wVersionRequired, lpWSAData, origin(2)) + } + r0, _, _ := procWSAStartup.Call(uintptr(wVersionRequired), lpWSAData, 0) if r0 != 0 { t.setErrno(r0) } @@ -4384,7 +5215,10 @@ func XWSAStartup(t *TLS, wVersionRequired uint16, lpWSAData uintptr) int32 { // HMODULE GetModuleHandleA(LPCSTR lpModuleName); func XGetModuleHandleA(t *TLS, lpModuleName uintptr) uintptr { - r0, _, err := syscall.Syscall(procGetModuleHandleA.Addr(), 1, lpModuleName, 0, 0) + if __ccgo_strace { + trc("t=%v lpModuleName=%v, (%v:)", t, lpModuleName, origin(2)) + } + r0, _, err := procGetModuleHandleA.Call(lpModuleName, 0, 0) if r0 == 0 { t.setErrno(err) } @@ -4397,7 +5231,10 @@ func XGetModuleHandleA(t *TLS, lpModuleName uintptr) uintptr { // // ); func XGetModuleHandleW(t *TLS, lpModuleName uintptr) uintptr { - r0, _, err := syscall.Syscall(procGetModuleHandleW.Addr(), 1, lpModuleName, 0, 0) + if __ccgo_strace { + trc("t=%v lpModuleName=%v, (%v:)", t, lpModuleName, origin(2)) + } + r0, _, err := procGetModuleHandleW.Call(lpModuleName, 0, 0) if r0 == 0 { t.setErrno(err) } @@ -4412,10 +5249,13 @@ func XGetModuleHandleW(t *TLS, lpModuleName uintptr) uintptr { // // ); func XGetEnvironmentVariableW(t *TLS, lpName, lpBuffer uintptr, nSize uint32) uint32 { - r0, _, e1 := syscall.Syscall(procGetEnvironmentVariableW.Addr(), 3, lpName, lpBuffer, uintptr(nSize)) + if __ccgo_strace { + trc("t=%v lpBuffer=%v nSize=%v, (%v:)", t, lpBuffer, nSize, origin(2)) + } + r0, _, e1 := procGetEnvironmentVariableW.Call(lpName, lpBuffer, uintptr(nSize)) n := uint32(r0) if n == 0 { - if e1 != 0 { + if e1 != windows.NOERROR { t.setErrno(e1) } else { t.setErrno(errno.EINVAL) @@ -4431,6 +5271,9 @@ func XGetEnvironmentVariableW(t *TLS, lpName, lpBuffer uintptr, nSize uint32) ui // // ); func XlstrcmpiA(t *TLS, lpString1, lpString2 uintptr) int32 { + if __ccgo_strace { + trc("t=%v lpString2=%v, (%v:)", t, lpString2, origin(2)) + } var s1 = strings.ToLower(GoString(lpString1)) var s2 = strings.ToLower(GoString(lpString2)) return int32(strings.Compare(s1, s2)) @@ -4442,7 +5285,10 @@ func XGetModuleFileNameA(t *TLS, _ ...interface{}) int32 { // UINT GetACP(); func XGetACP(t *TLS) uint32 { - r0, _, _ := syscall.Syscall(procGetACP.Addr(), 0, 0, 0, 0) + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } + r0, _, _ := procGetACP.Call(0, 0, 0) return uint32(r0) } @@ -4453,6 +5299,9 @@ func XGetACP(t *TLS) uint32 { // // ); func XGetUserNameW(t *TLS, lpBuffer, pcbBuffer uintptr) int32 { + if __ccgo_strace { + trc("t=%v pcbBuffer=%v, (%v:)", t, pcbBuffer, origin(2)) + } u, err := user.Current() if err != nil { panic(todo("")) @@ -4481,6 +5330,9 @@ func XGetUserNameW(t *TLS, lpBuffer, pcbBuffer uintptr) int32 { // // ); func XLoadLibraryExW(t *TLS, lpLibFileName, hFile uintptr, dwFlags uint32) uintptr { + if __ccgo_strace { + trc("t=%v hFile=%v dwFlags=%v, (%v:)", t, hFile, dwFlags, origin(2)) + } return 0 // If the function fails, the return value is NULL. } @@ -4491,6 +5343,9 @@ func XLoadLibraryExW(t *TLS, lpLibFileName, hFile uintptr, dwFlags uint32) uintp // // ); func Xwcscpy(t *TLS, strDestination, strSource uintptr) uintptr { + if __ccgo_strace { + trc("t=%v strSource=%v, (%v:)", t, strSource, origin(2)) + } if strSource == 0 { return 0 } @@ -4517,7 +5372,10 @@ func XwsprintfW(t *TLS, _ ...interface{}) int32 { // // ); func XRegisterClassW(t *TLS, lpWndClass uintptr) int32 { - r0, _, err := syscall.Syscall(procRegisterClassW.Addr(), 1, lpWndClass, 0, 0) + if __ccgo_strace { + trc("t=%v lpWndClass=%v, (%v:)", t, lpWndClass, origin(2)) + } + r0, _, err := procRegisterClassW.Call(lpWndClass, 0, 0) if r0 == 0 { t.setErrno(err) } @@ -4539,7 +5397,10 @@ func XDestroyWindow(t *TLS, _ ...interface{}) int32 { // // ); func XUnregisterClassW(t *TLS, lpClassName, hInstance uintptr) int32 { - r0, _, err := syscall.Syscall(procUnregisterClassW.Addr(), 2, lpClassName, hInstance, 0) + if __ccgo_strace { + trc("t=%v hInstance=%v, (%v:)", t, hInstance, origin(2)) + } + r0, _, err := procUnregisterClassW.Call(lpClassName, hInstance, 0) if r0 == 0 { t.setErrno(err) } @@ -4571,7 +5432,10 @@ func XSetTimer(t *TLS, _ ...interface{}) int32 { // // ); func XCreateWindowExW(t *TLS, dwExStyle uint32, lpClassName, lpWindowName uintptr, dwStyle uint32, x, y, nWidth, nHeight int32, hWndParent, hMenu, hInstance, lpParam uintptr) uintptr { - r0, _, err := syscall.Syscall12(procCreateWindowExW.Addr(), 12, + if __ccgo_strace { + trc("t=%v dwExStyle=%v lpWindowName=%v dwStyle=%v nHeight=%v lpParam=%v, (%v:)", t, dwExStyle, lpWindowName, dwStyle, nHeight, lpParam, origin(2)) + } + r0, _, err := procCreateWindowExW.Call( uintptr(dwExStyle), lpClassName, lpWindowName, @@ -4585,7 +5449,7 @@ func XCreateWindowExW(t *TLS, dwExStyle uint32, lpClassName, lpWindowName uintpt hInstance, lpParam, ) - if err != 0 { + if err != windows.NOERROR { t.setErrno(err) } return r0 @@ -4601,15 +5465,17 @@ func XCreateWindowExW(t *TLS, dwExStyle uint32, lpClassName, lpWindowName uintpt // // ); func XPeekMessageW(t *TLS, lpMsg, hWnd uintptr, wMsgFilterMin, wMsgFilterMax, wRemoveMsg uint32) int32 { - r0, _, err := syscall.Syscall6(procPeekMessageW.Addr(), 5, - lpMsg, + if __ccgo_strace { + trc("t=%v hWnd=%v wRemoveMsg=%v, (%v:)", t, hWnd, wRemoveMsg, origin(2)) + } + r0, _, err := procPeekMessageW.Call(lpMsg, hWnd, uintptr(wMsgFilterMin), uintptr(wMsgFilterMax), uintptr(wRemoveMsg), 0, ) - if err != 0 { + if err != windows.NOERROR { t.setErrno(err) } return int32(r0) @@ -4638,7 +5504,10 @@ func XDispatchMessageW(t *TLS, _ ...interface{}) int32 { // // ); func XSleepEx(t *TLS, dwMilliseconds uint32, bAlertable int32) uint32 { - r0, _, _ := syscall.Syscall(procSleepEx.Addr(), 2, uintptr(dwMilliseconds), uintptr(bAlertable), 0) + if __ccgo_strace { + trc("t=%v dwMilliseconds=%v bAlertable=%v, (%v:)", t, dwMilliseconds, bAlertable, origin(2)) + } + r0, _, _ := procSleepEx.Call(uintptr(dwMilliseconds), uintptr(bAlertable), 0) return uint32(r0) } @@ -4651,7 +5520,10 @@ func XSleepEx(t *TLS, dwMilliseconds uint32, bAlertable int32) uint32 { // // ); func XCreatePipe(t *TLS, hReadPipe, hWritePipe, lpPipeAttributes uintptr, nSize uint32) int32 { - r0, _, err := syscall.Syscall6(procCreatePipe.Addr(), 4, hReadPipe, hWritePipe, lpPipeAttributes, uintptr(nSize), 0, 0) + if __ccgo_strace { + trc("t=%v lpPipeAttributes=%v nSize=%v, (%v:)", t, lpPipeAttributes, nSize, origin(2)) + } + r0, _, err := procCreatePipe.Call(hReadPipe, hWritePipe, lpPipeAttributes, uintptr(nSize), 0, 0) if r0 == 0 { t.setErrno(err) } @@ -4675,10 +5547,10 @@ func XCreatePipe(t *TLS, hReadPipe, hWritePipe, lpPipeAttributes uintptr, nSize func XCreateProcessW(t *TLS, lpApplicationName, lpCommandLine, lpProcessAttributes, lpThreadAttributes uintptr, bInheritHandles int32, dwCreationFlags uint32, lpEnvironment, lpCurrentDirectory, lpStartupInfo, lpProcessInformation uintptr) int32 { - r1, _, e1 := syscall.Syscall12(procCreateProcessW.Addr(), 10, lpApplicationName, lpCommandLine, lpProcessAttributes, lpThreadAttributes, + r1, _, e1 := procCreateProcessW.Call(lpApplicationName, lpCommandLine, lpProcessAttributes, lpThreadAttributes, uintptr(bInheritHandles), uintptr(dwCreationFlags), lpEnvironment, lpCurrentDirectory, lpStartupInfo, lpProcessInformation, 0, 0) if r1 == 0 { - if e1 != 0 { + if e1 != windows.NOERROR { t.setErrno(e1) } else { t.setErrno(errno.EINVAL) @@ -4695,7 +5567,10 @@ func XCreateProcessW(t *TLS, lpApplicationName, lpCommandLine, lpProcessAttribut // // ); func XWaitForInputIdle(t *TLS, hProcess uintptr, dwMilliseconds uint32) int32 { - r0, _, _ := syscall.Syscall(procWaitForInputIdle.Addr(), 2, hProcess, uintptr(dwMilliseconds), 0) + if __ccgo_strace { + trc("t=%v hProcess=%v dwMilliseconds=%v, (%v:)", t, hProcess, dwMilliseconds, origin(2)) + } + r0, _, _ := procWaitForInputIdle.Call(hProcess, uintptr(dwMilliseconds), 0) return int32(r0) } @@ -4710,7 +5585,10 @@ func XWaitForInputIdle(t *TLS, hProcess uintptr, dwMilliseconds uint32) int32 { // // ); func XSearchPathW(t *TLS, lpPath, lpFileName, lpExtension uintptr, nBufferLength uint32, lpBuffer, lpFilePart uintptr) int32 { - r0, _, err := syscall.Syscall6(procSearchPathW.Addr(), 6, lpPath, lpFileName, lpExtension, uintptr(nBufferLength), lpBuffer, lpFilePart) + if __ccgo_strace { + trc("t=%v lpExtension=%v nBufferLength=%v lpFilePart=%v, (%v:)", t, lpExtension, nBufferLength, lpFilePart, origin(2)) + } + r0, _, err := procSearchPathW.Call(lpPath, lpFileName, lpExtension, uintptr(nBufferLength), lpBuffer, lpFilePart) if r0 == 0 { t.setErrno(err) } @@ -4728,7 +5606,10 @@ func XGetShortPathNameW(t *TLS, _ ...interface{}) int32 { // // ); func XGetExitCodeProcess(t *TLS, hProcess, lpExitCode uintptr) int32 { - r0, _, err := syscall.Syscall(procGetExitCodeProcess.Addr(), 2, hProcess, lpExitCode, 0) + if __ccgo_strace { + trc("t=%v lpExitCode=%v, (%v:)", t, lpExitCode, origin(2)) + } + r0, _, err := procGetExitCodeProcess.Call(hProcess, lpExitCode, 0) if r0 == 0 { t.setErrno(err) } @@ -4746,7 +5627,10 @@ func XGetExitCodeProcess(t *TLS, hProcess, lpExitCode uintptr) int32 { // // ); func XPeekNamedPipe(t *TLS, hNamedPipe, lpBuffer uintptr, nBufferSize uint32, lpBytesRead, lpTotalBytesAvail, lpBytesLeftThisMessage uintptr) int32 { - r0, _, err := syscall.Syscall6(procPeekNamedPipe.Addr(), 6, hNamedPipe, lpBuffer, uintptr(nBufferSize), lpBytesRead, lpTotalBytesAvail, lpBytesLeftThisMessage) + if __ccgo_strace { + trc("t=%v lpBuffer=%v nBufferSize=%v lpBytesLeftThisMessage=%v, (%v:)", t, lpBuffer, nBufferSize, lpBytesLeftThisMessage, origin(2)) + } + r0, _, err := procPeekNamedPipe.Call(hNamedPipe, lpBuffer, uintptr(nBufferSize), lpBytesRead, lpTotalBytesAvail, lpBytesLeftThisMessage) if r0 == 0 { t.setErrno(err) } @@ -4760,6 +5644,9 @@ func XPeekNamedPipe(t *TLS, hNamedPipe, lpBuffer uintptr, nBufferSize uint32, lp // // ); func X_InterlockedExchange(t *TLS, Target uintptr, Value long) long { + if __ccgo_strace { + trc("t=%v Target=%v Value=%v, (%v:)", t, Target, Value, origin(2)) + } old := atomic.SwapInt32((*int32)(unsafe.Pointer(Target)), Value) return old } @@ -4771,8 +5658,11 @@ func X_InterlockedExchange(t *TLS, Target uintptr, Value long) long { // // ); func XTerminateThread(t *TLS, hThread uintptr, dwExitCode uint32) int32 { - r0, _, err := syscall.Syscall(procTerminateThread.Addr(), 2, hThread, uintptr(dwExitCode), 0) - if err != 0 { + if __ccgo_strace { + trc("t=%v hThread=%v dwExitCode=%v, (%v:)", t, hThread, dwExitCode, origin(2)) + } + r0, _, err := procTerminateThread.Call(hThread, uintptr(dwExitCode), 0) + if err != windows.NOERROR { t.setErrno(err) } return int32(r0) @@ -4785,6 +5675,9 @@ func XTerminateThread(t *TLS, hThread uintptr, dwExitCode uint32) int32 { // // ); func XGetComputerNameW(t *TLS, lpBuffer, nSize uintptr) int32 { + if __ccgo_strace { + trc("t=%v nSize=%v, (%v:)", t, nSize, origin(2)) + } panic(todo("")) } @@ -4858,8 +5751,11 @@ func X_controlfp(t *TLS, _ ...interface{}) uint32 { // // ); func XQueryPerformanceFrequency(t *TLS, lpFrequency uintptr) int32 { + if __ccgo_strace { + trc("t=%v lpFrequency=%v, (%v:)", t, lpFrequency, origin(2)) + } - r1, _, err := syscall.Syscall(procQueryPerformanceFrequency.Addr(), 1, lpFrequency, 0, 0) + r1, _, err := procQueryPerformanceFrequency.Call(lpFrequency, 0, 0) if r1 == 0 { t.setErrno(err) return 0 @@ -4879,6 +5775,9 @@ func inDST(t gotime.Time) bool { // void _ftime( struct _timeb *timeptr ); func X_ftime(t *TLS, timeptr uintptr) { + if __ccgo_strace { + trc("t=%v timeptr=%v, (%v:)", t, timeptr, origin(2)) + } var tm = gotime.Now() var tPtr = (*time.X__timeb64)(unsafe.Pointer(timeptr)) tPtr.Ftime = tm.Unix() @@ -4890,10 +5789,6 @@ func X_ftime(t *TLS, timeptr uintptr) { tPtr.Ftimezone = int16(offset) } -func Xgmtime(t *TLS, _ ...interface{}) uintptr { - panic(todo("")) -} - func XDdeInitializeW(t *TLS, _ ...interface{}) uint32 { panic(todo("")) } @@ -4921,6 +5816,9 @@ func XDdeQueryStringW(t *TLS, _ ...interface{}) int32 { // // ); func X_wcsicmp(t *TLS, string1, string2 uintptr) int32 { + if __ccgo_strace { + trc("t=%v string2=%v, (%v:)", t, string2, origin(2)) + } return Xwcsicmp(t, string1, string2) } @@ -4989,6 +5887,9 @@ func XDdeGetLastError(t *TLS, _ ...interface{}) uint32 { // // ); func XDdeClientTransaction(t *TLS, pData uintptr, cbData uint32, hConv uintptr, hszItem uintptr, wFmt, wType, dwTimeout uint32, pdwResult uintptr) uintptr { + if __ccgo_strace { + trc("t=%v pData=%v cbData=%v hConv=%v hszItem=%v dwTimeout=%v pdwResult=%v, (%v:)", t, pData, cbData, hConv, hszItem, dwTimeout, pdwResult, origin(2)) + } panic(todo("")) } @@ -5057,39 +5958,66 @@ func XRegSetValueExW(t *TLS, _ ...interface{}) int32 { // // ); func X__mingw_vsnwprintf(t *TLS, buffer uintptr, count types.Size_t, format, va uintptr) int32 { + if __ccgo_strace { + trc("t=%v buffer=%v count=%v va=%v, (%v:)", t, buffer, count, va, origin(2)) + } panic(todo("")) } // int vprintf(const char *format, va_list ap); -func X__mingw_vprintf(t *TLS, s, ap uintptr) int32 { return Xvprintf(t, s, ap) } + +func X__mingw_vprintf(t *TLS, s, ap uintptr) int32 { + if __ccgo_strace { + trc("t=%v ap=%v, (%v:)", t, ap, origin(2)) + } + return Xvprintf(t, s, ap) +} // int vfscanf(FILE * restrict stream, const char * restrict format, va_list arg); func X__mingw_vfscanf(t *TLS, stream, format, ap uintptr) int32 { + if __ccgo_strace { + trc("t=%v ap=%v, (%v:)", t, ap, origin(2)) + } panic(todo("")) } // int vsscanf(const char *str, const char *format, va_list ap); func X__mingw_vsscanf(t *TLS, str, format, ap uintptr) int32 { + if __ccgo_strace { + trc("t=%v ap=%v, (%v:)", t, ap, origin(2)) + } return Xsscanf(t, str, format, ap) } // int vfprintf(FILE * restrict stream, const char * restrict format, va_list arg); func X__mingw_vfprintf(t *TLS, f uintptr, format, va uintptr) int32 { + if __ccgo_strace { + trc("t=%v f=%v va=%v, (%v:)", t, f, va, origin(2)) + } return Xvfprintf(t, f, format, va) } // int vsprintf(char * restrict s, const char * restrict format, va_list arg); func X__mingw_vsprintf(t *TLS, s, format, ap uintptr) int32 { + if __ccgo_strace { + trc("t=%v ap=%v, (%v:)", t, ap, origin(2)) + } return Xvsprintf(t, s, format, ap) } // int vsnprintf(char *str, size_t size, const char *format, va_list ap); func X__mingw_vsnprintf(t *TLS, str uintptr, size types.Size_t, format, ap uintptr) int32 { - panic(todo("")) + if __ccgo_strace { + trc("t=%v str=%v size=%v ap=%v, (%v:)", t, str, size, ap, origin(2)) + } + return Xvsnprintf(t, str, size, format, ap) } // int putchar(int char) func X_putchar(t *TLS, c int32) int32 { + if __ccgo_strace { + trc("t=%v c=%v, (%v:)", t, c, origin(2)) + } if _, err := fwrite(unistd.STDOUT_FILENO, []byte{byte(c)}); err != nil { return -1 } @@ -5098,22 +6026,37 @@ func X_putchar(t *TLS, c int32) int32 { // int vfwscanf(FILE *stream, const wchar_t *format, va_list argptr;); func X__mingw_vfwscanf(t *TLS, stream uintptr, format, ap uintptr) int32 { + if __ccgo_strace { + trc("t=%v stream=%v ap=%v, (%v:)", t, stream, ap, origin(2)) + } panic(todo("")) } // int vswscanf(const wchar_t *buffer, const wchar_t *format, va_list arglist); func X__mingw_vswscanf(t *TLS, stream uintptr, format, ap uintptr) int32 { + if __ccgo_strace { + trc("t=%v stream=%v ap=%v, (%v:)", t, stream, ap, origin(2)) + } panic(todo("")) } // int vfwprintf(FILE * restrict stream, const wchar_t * restrict format, va_list arg); func X__mingw_vfwprintf(t *TLS, stream, format, ap uintptr) int32 { + if __ccgo_strace { + trc("t=%v ap=%v, (%v:)", t, ap, origin(2)) + } panic(todo("")) } // int putchar(int c); func Xputchar(t *TLS, c int32) int32 { - panic(todo("")) + if __ccgo_strace { + trc("t=%v c=%v, (%v:)", t, c, origin(2)) + } + if _, err := fwrite(unistd.STDOUT_FILENO, []byte{byte(c)}); err != nil { + return -1 + } + return int32(byte(c)) } // void _assert( @@ -5124,11 +6067,17 @@ func Xputchar(t *TLS, c int32) int32 { // // ); func X_assert(t *TLS, message, filename uintptr, line uint32) { + if __ccgo_strace { + trc("t=%v filename=%v line=%v, (%v:)", t, filename, line, origin(2)) + } panic(todo("")) } // char *strdup(const char *s); func X_strdup(t *TLS, s uintptr) uintptr { + if __ccgo_strace { + trc("t=%v s=%v, (%v:)", t, s, origin(2)) + } panic(todo("")) } @@ -5139,6 +6088,9 @@ func X_strdup(t *TLS, s uintptr) uintptr { // // ); func X_access(t *TLS, pathname uintptr, mode int32) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v mode=%v, (%v:)", t, pathname, mode, origin(2)) + } var path = GoString(pathname) @@ -5185,6 +6137,9 @@ func X_access(t *TLS, pathname uintptr, mode int32) int32 { // // ); func XSetConsoleCtrlHandler(t *TLS, HandlerRoutine uintptr, Add int32) int32 { + if __ccgo_strace { + trc("t=%v HandlerRoutine=%v Add=%v, (%v:)", t, HandlerRoutine, Add, origin(2)) + } //var fcc = &struct { // f func(*TLS, uint32) int32 @@ -5193,7 +6148,7 @@ func XSetConsoleCtrlHandler(t *TLS, HandlerRoutine uintptr, Add int32) int32 { //var hdlr = fcc.f // //_, _, err := procSetConsoleCtrlHandler.Call( - //syscall.NewCallback(func(controlType uint) uint { + //windows.NewCallback(func(controlType uint) uint { // return uint( hdlr(t, uint32(controlType)) ) // }), 1) // @@ -5206,11 +6161,17 @@ func XSetConsoleCtrlHandler(t *TLS, HandlerRoutine uintptr, Add int32) int32 { // DebugBreak func XDebugBreak(t *TLS) { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } panic(todo("")) } // int _isatty( int fd ); func X_isatty(t *TLS, fd int32) int32 { + if __ccgo_strace { + trc("t=%v fd=%v, (%v:)", t, fd, origin(2)) + } f, ok := fdToFile(fd) if !ok { @@ -5222,7 +6183,7 @@ func X_isatty(t *TLS, fd int32) int32 { fd == unistd.STDIN_FILENO || fd == unistd.STDERR_FILENO { var mode uint32 - err := syscall.GetConsoleMode(f.Handle, &mode) + err := windows.GetConsoleMode(f.Handle, &mode) if err != nil { t.setErrno(errno.EINVAL) return 0 @@ -5241,7 +6202,10 @@ func X_isatty(t *TLS, fd int32) int32 { // // ); func XSetConsoleTextAttribute(t *TLS, hConsoleOutput uintptr, wAttributes uint16) int32 { - r1, _, _ := syscall.Syscall(procSetConsoleTextAttribute.Addr(), 2, hConsoleOutput, uintptr(wAttributes), 0) + if __ccgo_strace { + trc("t=%v hConsoleOutput=%v wAttributes=%v, (%v:)", t, hConsoleOutput, wAttributes, origin(2)) + } + r1, _, _ := procSetConsoleTextAttribute.Call(hConsoleOutput, uintptr(wAttributes), 0) return int32(r1) } @@ -5252,7 +6216,10 @@ func XSetConsoleTextAttribute(t *TLS, hConsoleOutput uintptr, wAttributes uint16 // // ); func XGetConsoleScreenBufferInfo(t *TLS, hConsoleOutput, lpConsoleScreenBufferInfo uintptr) int32 { - r1, _, _ := syscall.Syscall(procGetConsoleScreenBufferInfo.Addr(), 2, hConsoleOutput, lpConsoleScreenBufferInfo, 0) + if __ccgo_strace { + trc("t=%v lpConsoleScreenBufferInfo=%v, (%v:)", t, lpConsoleScreenBufferInfo, origin(2)) + } + r1, _, _ := procGetConsoleScreenBufferInfo.Call(hConsoleOutput, lpConsoleScreenBufferInfo, 0) return int32(r1) } @@ -5263,6 +6230,9 @@ func XGetConsoleScreenBufferInfo(t *TLS, hConsoleOutput, lpConsoleScreenBufferIn // // ); func X_popen(t *TLS, command, mode uintptr) uintptr { + if __ccgo_strace { + trc("t=%v mode=%v, (%v:)", t, mode, origin(2)) + } panic(todo("")) } @@ -5272,18 +6242,30 @@ func X_popen(t *TLS, command, mode uintptr) uintptr { // // ); func X_wunlink(t *TLS, filename uintptr) int32 { + if __ccgo_strace { + trc("t=%v filename=%v, (%v:)", t, filename, origin(2)) + } panic(todo("")) } func Xclosedir(tls *TLS, dir uintptr) int32 { + if __ccgo_strace { + trc("tls=%v dir=%v, (%v:)", tls, dir, origin(2)) + } panic(todo("")) } func Xopendir(tls *TLS, name uintptr) uintptr { + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + } panic(todo("")) } func Xreaddir(tls *TLS, dir uintptr) uintptr { + if __ccgo_strace { + trc("tls=%v dir=%v, (%v:)", tls, dir, origin(2)) + } panic(todo("")) } @@ -5293,21 +6275,33 @@ func Xreaddir(tls *TLS, dir uintptr) uintptr { // // ); func X_unlink(t *TLS, filename uintptr) int32 { + if __ccgo_strace { + trc("t=%v filename=%v, (%v:)", t, filename, origin(2)) + } panic(todo("")) } // int pclose(FILE *stream); func X_pclose(t *TLS, stream uintptr) int32 { + if __ccgo_strace { + trc("t=%v stream=%v, (%v:)", t, stream, origin(2)) + } panic(todo("")) } // int setmode (int fd, int mode); func Xsetmode(t *TLS, fd, mode int32) int32 { + if __ccgo_strace { + trc("t=%v mode=%v, (%v:)", t, mode, origin(2)) + } return X_setmode(t, fd, mode) } // int _setmode (int fd, int mode); func X_setmode(t *TLS, fd, mode int32) int32 { + if __ccgo_strace { + trc("t=%v mode=%v, (%v:)", t, mode, origin(2)) + } _, ok := fdToFile(fd) if !ok { @@ -5328,16 +6322,25 @@ func X_setmode(t *TLS, fd, mode int32) int32 { // int _mkdir(const char *dirname); func X_mkdir(t *TLS, dirname uintptr) int32 { + if __ccgo_strace { + trc("t=%v dirname=%v, (%v:)", t, dirname, origin(2)) + } panic(todo("")) } // int _chmod( const char *filename, int pmode ); func X_chmod(t *TLS, filename uintptr, pmode int32) int32 { + if __ccgo_strace { + trc("t=%v filename=%v pmode=%v, (%v:)", t, filename, pmode, origin(2)) + } panic(todo("")) } // int _fileno(FILE *stream); func X_fileno(t *TLS, stream uintptr) int32 { + if __ccgo_strace { + trc("t=%v stream=%v, (%v:)", t, stream, origin(2)) + } f, ok := winGetObject(stream).(*file) if !ok { t.setErrno(errno.EBADF) @@ -5348,11 +6351,17 @@ func X_fileno(t *TLS, stream uintptr) int32 { // void rewind(FILE *stream); func Xrewind(t *TLS, stream uintptr) { + if __ccgo_strace { + trc("t=%v stream=%v, (%v:)", t, stream, origin(2)) + } Xfseek(t, stream, 0, unistd.SEEK_SET) } // __atomic_load_n func X__atomic_load_n(t *TLS) { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } panic(todo("")) } @@ -5363,16 +6372,25 @@ func X__atomic_store_n(t *TLS, _ ...interface{}) int32 { // __builtin_add_overflow func X__builtin_add_overflow(t *TLS) { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } panic(todo("")) } // __builtin_mul_overflow func X__builtin_mul_overflow(t *TLS) { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } panic(todo("")) } // __builtin_sub_overflow func X__builtin_sub_overflow(t *TLS) { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } panic(todo("")) } @@ -5434,7 +6452,10 @@ func goWideStringNZ(p uintptr) string { // LPWSTR GetCommandLineW(); func XGetCommandLineW(t *TLS) uintptr { - return uintptr(unsafe.Pointer(syscall.GetCommandLine())) + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } + return uintptr(unsafe.Pointer(windows.GetCommandLine())) } // BOOL AddAccessDeniedAce( @@ -5446,31 +6467,42 @@ func XGetCommandLineW(t *TLS) uintptr { // // ); func XAddAccessDeniedAce(t *TLS, pAcl uintptr, dwAceRevision, AccessMask uint32, pSid uintptr) int32 { + if __ccgo_strace { + trc("t=%v pAcl=%v AccessMask=%v pSid=%v, (%v:)", t, pAcl, AccessMask, pSid, origin(2)) + } panic(todo("")) } -// BOOL AddAce( -// -// PACL pAcl, -// DWORD dwAceRevision, -// DWORD dwStartingAceIndex, -// LPVOID pAceList, -// DWORD nAceListLength -// -// ); -func XAddAce(t *TLS, pAcl uintptr, dwAceRevision, dwStartingAceIndex uint32, pAceList uintptr, nAceListLength uint32) int32 { - panic(todo("")) +// __attribute__((dllimport)) WINBOOL AddAce (PACL pAcl, DWORD dwAceRevision, DWORD dwStartingAceIndex, LPVOID pAceList, DWORD nAceListLength); +func XAddAce(tls *TLS, _pAcl uintptr, _dwAceRevision uint32, _dwStartingAceIndex uint32, _pAceList uintptr, _nAceListLength uint32) (r uint32) { + if __ccgo_strace { + trc("pAcl=%+v dwAceRevision=%+v dwStartingAceIndex=%+v pAceList=%+v nAceListLength=%+v", _pAcl, _dwAceRevision, _dwStartingAceIndex, _pAceList, _nAceListLength) + defer func() { trc(`XAddAce->%+v`, r) }() + } + r0, r1, err := procAddAce.Call(_pAcl, uintptr(_dwAceRevision), uintptr(_dwStartingAceIndex), _pAceList, uintptr(_nAceListLength)) + if err != windows.NOERROR { + if __ccgo_strace { + trc(`r0=%v r1=%v err=%v`, r0, r1, err) + } + tls.SetLastError(uint32(err.(windows.Errno))) + } + return uint32(r0) } -// BOOL GetAce( -// -// PACL pAcl, -// DWORD dwAceIndex, -// LPVOID *pAce -// -// ); -func XGetAce(t *TLS, pAcl uintptr, dwAceIndex uint32, pAce uintptr) int32 { - panic(todo("")) +// __attribute__((dllimport)) WINBOOL GetAce (PACL pAcl, DWORD dwAceIndex, LPVOID *pAce); +func XGetAce(tls *TLS, _pAcl uintptr, _dwAceIndex uint32, _pAce uintptr) (r int32) { + if __ccgo_strace { + trc("pAcl=%+v dwAceIndex=%+v pAce=%+v", _pAcl, _dwAceIndex, _pAce) + defer func() { trc(`XGetAce->%+v`, r) }() + } + r0, r1, err := procGetAce.Call(_pAcl, uintptr(_dwAceIndex), _pAce) + if err != windows.NOERROR { + if __ccgo_strace { + trc(`r0=%v r1=%v err=%v`, r0, r1, err) + } + tls.SetLastError(uint32(err.(windows.Errno))) + } + return int32(r0) } // BOOL GetAclInformation( @@ -5481,16 +6513,18 @@ func XGetAce(t *TLS, pAcl uintptr, dwAceIndex uint32, pAce uintptr) int32 { // ACL_INFORMATION_CLASS dwAclInformationClass // // ); -func XGetAclInformation(t *TLS, pAcl, pAclInformation uintptr, nAclInformationLength, dwAclInformationClass uint32) int32 { - r0, _, err := syscall.Syscall6(procGetAclInformation.Addr(), 4, - pAclInformation, +func XGetAclInformation(t *TLS, pAcl, pAclInformation uintptr, nAclInformationLength uint32, dwAclInformationClass int32) int32 { + if __ccgo_strace { + trc("t=%v pAclInformation=%v dwAclInformationClass=%v, (%v:)", t, pAclInformation, dwAclInformationClass, origin(2)) + } + r0, _, err := procGetAclInformation.Call(pAclInformation, pAclInformation, uintptr(nAclInformationLength), uintptr(dwAclInformationClass), 0, 0, ) - if err != 0 { + if err != windows.NOERROR { t.setErrno(err) } return int32(r0) @@ -5506,27 +6540,36 @@ func XGetAclInformation(t *TLS, pAcl, pAclInformation uintptr, nAclInformationLe // // ); func XGetFileSecurityA(t *TLS, lpFileName uintptr, RequestedInformation uint32, pSecurityDescriptor uintptr, nLength uint32, lpnLengthNeeded uintptr) int32 { - r0, _, err := syscall.Syscall6(procGetFileSecurityA.Addr(), 5, - lpFileName, + if __ccgo_strace { + trc("t=%v lpFileName=%v RequestedInformation=%v pSecurityDescriptor=%v nLength=%v lpnLengthNeeded=%v, (%v:)", t, lpFileName, RequestedInformation, pSecurityDescriptor, nLength, lpnLengthNeeded, origin(2)) + } + r0, _, err := procGetFileSecurityA.Call(lpFileName, uintptr(RequestedInformation), pSecurityDescriptor, uintptr(nLength), lpnLengthNeeded, 0, ) - if err != 0 { + if err != windows.NOERROR { t.setErrno(err) } return int32(r0) } -// DWORD GetLengthSid( -// -// PSID pSid -// -// ); -func XGetLengthSid(t *TLS, pSid uintptr) uint32 { - panic(todo("")) +// __attribute__((dllimport)) DWORD GetLengthSid (PSID pSid); +func XGetLengthSid(tls *TLS, _pSid uintptr) (r uint32) { + if __ccgo_strace { + trc("pSid=%+v", _pSid) + defer func() { trc(`XGetLengthSid->%+v`, r) }() + } + r0, r1, err := procGetLengthSid.Call(_pSid) + if err != windows.NOERROR { + if __ccgo_strace { + trc(`r0=%v r1=%v err=%v`, r0, r1, err) + } + tls.SetLastError(uint32(err.(windows.Errno))) + } + return uint32(r0) } // BOOL GetSecurityDescriptorDacl( @@ -5538,15 +6581,17 @@ func XGetLengthSid(t *TLS, pSid uintptr) uint32 { // // ); func XGetSecurityDescriptorDacl(t *TLS, pSecurityDescriptor, lpbDaclPresent, pDacl, lpbDaclDefaulted uintptr) int32 { - r0, _, err := syscall.Syscall6(procGetSecurityDescriptorDacl.Addr(), 4, - pSecurityDescriptor, + if __ccgo_strace { + trc("t=%v lpbDaclDefaulted=%v, (%v:)", t, lpbDaclDefaulted, origin(2)) + } + r0, _, err := procGetSecurityDescriptorDacl.Call(pSecurityDescriptor, lpbDaclPresent, pDacl, lpbDaclDefaulted, 0, 0, ) - if err != 0 { + if err != windows.NOERROR { t.setErrno(err) } return int32(r0) @@ -5558,8 +6603,11 @@ func XGetSecurityDescriptorDacl(t *TLS, pSecurityDescriptor, lpbDaclPresent, pDa // // ); func XGetSidLengthRequired(t *TLS, nSubAuthorityCount uint8) int32 { - r0, _, err := syscall.Syscall(procGetSidLengthRequired.Addr(), 1, uintptr(nSubAuthorityCount), 0, 0) - if err != 0 { + if __ccgo_strace { + trc("t=%v nSubAuthorityCount=%v, (%v:)", t, nSubAuthorityCount, origin(2)) + } + r0, _, err := procGetSidLengthRequired.Call(uintptr(nSubAuthorityCount), 0, 0) + if err != windows.NOERROR { t.setErrno(err) } return int32(r0) @@ -5572,22 +6620,30 @@ func XGetSidLengthRequired(t *TLS, nSubAuthorityCount uint8) int32 { // // ); func XGetSidSubAuthority(t *TLS, pSid uintptr, nSubAuthority uint32) uintptr { - r0, _, err := syscall.Syscall(procGetSidSubAuthority.Addr(), 2, pSid, uintptr(nSubAuthority), 0) - if err != 0 { + if __ccgo_strace { + trc("t=%v pSid=%v nSubAuthority=%v, (%v:)", t, pSid, nSubAuthority, origin(2)) + } + r0, _, err := procGetSidSubAuthority.Call(pSid, uintptr(nSubAuthority), 0) + if err != windows.NOERROR { t.setErrno(err) } return r0 } -// BOOL InitializeAcl( -// -// PACL pAcl, -// DWORD nAclLength, -// DWORD dwAclRevision -// -// ); -func XInitializeAcl(t *TLS, pAcl uintptr, nAclLength, dwAclRevision uint32) int32 { - panic(todo("")) +// __attribute__((dllimport)) WINBOOL InitializeAcl (PACL pAcl, DWORD nAclLength, DWORD dwAclRevision); +func XInitializeAcl(tls *TLS, _pAcl uintptr, _nAclLength uint32, _dwAclRevision uint32) (r int32) { + if __ccgo_strace { + trc("pAcl=%+v nAclLength=%+v dwAclRevision=%+v", _pAcl, _nAclLength, _dwAclRevision) + defer func() { trc(`XInitializeAcl->%+v`, r) }() + } + r0, r1, err := procInitializeAcl.Call(_pAcl, uintptr(_nAclLength), uintptr(_dwAclRevision)) + if err != windows.NOERROR { + if __ccgo_strace { + trc(`r0=%v r1=%v err=%v`, r0, r1, err) + } + tls.SetLastError(uint32(err.(windows.Errno))) + } + return int32(r0) } // BOOL InitializeSid( @@ -5598,8 +6654,11 @@ func XInitializeAcl(t *TLS, pAcl uintptr, nAclLength, dwAclRevision uint32) int3 // // ); func XInitializeSid(t *TLS, Sid, pIdentifierAuthority uintptr, nSubAuthorityCount uint8) int32 { - r0, _, err := syscall.Syscall(procInitializeSid.Addr(), 3, Sid, pIdentifierAuthority, uintptr(nSubAuthorityCount)) - if err != 0 { + if __ccgo_strace { + trc("t=%v pIdentifierAuthority=%v nSubAuthorityCount=%v, (%v:)", t, pIdentifierAuthority, nSubAuthorityCount, origin(2)) + } + r0, _, err := procInitializeSid.Call(Sid, pIdentifierAuthority, uintptr(nSubAuthorityCount)) + if err != windows.NOERROR { t.setErrno(err) } return int32(r0) @@ -5614,6 +6673,9 @@ func XInitializeSid(t *TLS, Sid, pIdentifierAuthority uintptr, nSubAuthorityCoun // // ); func XRaiseException(t *TLS, dwExceptionCode, dwExceptionFlags, nNumberOfArguments uint32, lpArguments uintptr) { + if __ccgo_strace { + trc("t=%v nNumberOfArguments=%v lpArguments=%v, (%v:)", t, nNumberOfArguments, lpArguments, origin(2)) + } panic(todo("")) } @@ -5623,6 +6685,9 @@ func XRaiseException(t *TLS, dwExceptionCode, dwExceptionFlags, nNumberOfArgumen // // ); func XSetErrorMode(t *TLS, uMode uint32) int32 { + if __ccgo_strace { + trc("t=%v uMode=%v, (%v:)", t, uMode, origin(2)) + } panic(todo("")) } @@ -5637,7 +6702,10 @@ func XSetErrorMode(t *TLS, uMode uint32) int32 { // PACL pSacl // // ); -func XSetNamedSecurityInfoA(t *TLS, pObjectName uintptr, ObjectType, SecurityInfo uint32, psidOwner, psidGroup, pDacl, pSacl uintptr) uint32 { +func XSetNamedSecurityInfoA(t *TLS, pObjectName uintptr, ObjectType int32, SecurityInfo uint32, psidOwner, psidGroup, pDacl, pSacl uintptr) uint32 { + if __ccgo_strace { + trc("t=%v pObjectName=%v SecurityInfo=%v pSacl=%v, (%v:)", t, pObjectName, SecurityInfo, pSacl, origin(2)) + } panic(todo("")) } @@ -5657,10 +6725,10 @@ func XSetNamedSecurityInfoA(t *TLS, pObjectName uintptr, ObjectType, SecurityInf // ); func XCreateProcessA(t *TLS, lpApplicationName, lpCommandLine, lpProcessAttributes, lpThreadAttributes uintptr, bInheritHandles int32, dwCreationFlags uint32, lpEnvironment, lpCurrentDirectory, lpStartupInfo, lpProcessInformation uintptr) int32 { - r1, _, err := syscall.Syscall12(procCreateProcessA.Addr(), 10, lpApplicationName, lpCommandLine, lpProcessAttributes, lpThreadAttributes, + r1, _, err := procCreateProcessA.Call(lpApplicationName, lpCommandLine, lpProcessAttributes, lpThreadAttributes, uintptr(bInheritHandles), uintptr(dwCreationFlags), lpEnvironment, lpCurrentDirectory, lpStartupInfo, lpProcessInformation, 0, 0) if r1 == 0 { - if err != 0 { + if err != windows.NOERROR { t.setErrno(err) } else { t.setErrno(errno.EINVAL) @@ -5687,7 +6755,10 @@ func X_set_abort_behavior(t *TLS, _ ...interface{}) uint32 { // // ); func XOpenEventA(t *TLS, dwDesiredAccess uint32, bInheritHandle uint32, lpName uintptr) uintptr { - r0, _, err := syscall.Syscall(procOpenEventA.Addr(), 3, uintptr(dwDesiredAccess), uintptr(bInheritHandle), lpName) + if __ccgo_strace { + trc("t=%v dwDesiredAccess=%v bInheritHandle=%v lpName=%v, (%v:)", t, dwDesiredAccess, bInheritHandle, lpName, origin(2)) + } + r0, _, err := procOpenEventA.Call(uintptr(dwDesiredAccess), uintptr(bInheritHandle), lpName) if r0 == 0 { t.setErrno(err) } @@ -5700,16 +6771,25 @@ func XOpenEventA(t *TLS, dwDesiredAccess uint32, bInheritHandle uint32, lpName u // // ); func X_msize(t *TLS, memblock uintptr) types.Size_t { + if __ccgo_strace { + trc("t=%v memblock=%v, (%v:)", t, memblock, origin(2)) + } return types.Size_t(UsableSize(memblock)) } // unsigned long _byteswap_ulong ( unsigned long val ); func X_byteswap_ulong(t *TLS, val ulong) ulong { + if __ccgo_strace { + trc("t=%v val=%v, (%v:)", t, val, origin(2)) + } return X__builtin_bswap32(t, val) } // unsigned __int64 _byteswap_uint64 ( unsigned __int64 val ); func X_byteswap_uint64(t *TLS, val uint64) uint64 { + if __ccgo_strace { + trc("t=%v val=%v, (%v:)", t, val, origin(2)) + } return X__builtin_bswap64(t, val) } @@ -5719,6 +6799,9 @@ func X_byteswap_uint64(t *TLS, val uint64) uint64 { // // ); func X_commit(t *TLS, fd int32) int32 { + if __ccgo_strace { + trc("t=%v fd=%v, (%v:)", t, fd, origin(2)) + } return Xfsync(t, fd) } @@ -5729,17 +6812,19 @@ func X_commit(t *TLS, fd int32) int32 { // // ); func X_stati64(t *TLS, path, buffer uintptr) int32 { - panic(todo("")) + if __ccgo_strace { + trc("t=%v path=%v buffer=%v, (%v:)", t, path, buffer, origin(2)) + } + r0, _, err := procStati64.Call(uintptr(path), uintptr(buffer)) + if err != windows.NOERROR { + t.setErrno(err) + } + return int32(r0) } -// int _fstati64( -// -// int fd, -// struct _stati64 *buffer -// -// ); +// int _fstati64(int fd, struct _stati64 *buffer); func X_fstati64(t *TLS, fd int32, buffer uintptr) int32 { - panic(todo("")) + return X_fstat64(t, fd, buffer) } // int _findnext32( @@ -5749,7 +6834,14 @@ func X_fstati64(t *TLS, fd int32, buffer uintptr) int32 { // // ); func X_findnext32(t *TLS, handle types.Intptr_t, buffer uintptr) int32 { - panic(todo("")) + if __ccgo_strace { + trc("t=%v handle=%v buffer=%v, (%v:)", t, handle, buffer, origin(2)) + } + r0, _, err := procFindnext32.Call(uintptr(handle), buffer) + if err != windows.NOERROR { + t.setErrno(err) + } + return int32(r0) } // intptr_t _findfirst32( @@ -5759,7 +6851,14 @@ func X_findnext32(t *TLS, handle types.Intptr_t, buffer uintptr) int32 { // // ); func X_findfirst32(t *TLS, filespec, fileinfo uintptr) types.Intptr_t { - panic(todo("")) + if __ccgo_strace { + trc("t=%v fileinfo=%v, (%v:)", t, fileinfo, origin(2)) + } + r0, _, err := procFindfirst32.Call(filespec, fileinfo) + if err != windows.NOERROR { + t.setErrno(err) + } + return types.Intptr_t(r0) } /*- @@ -5793,6 +6892,9 @@ func X_findfirst32(t *TLS, filespec, fileinfo uintptr) types.Intptr_t { // long strtol(const char *nptr, char **endptr, int base); func Xstrtol(t *TLS, nptr, endptr uintptr, base int32) long { + if __ccgo_strace { + trc("t=%v endptr=%v base=%v, (%v:)", t, endptr, base, origin(2)) + } var s uintptr = nptr var acc ulong @@ -5927,6 +7029,9 @@ func Xstrtol(t *TLS, nptr, endptr uintptr, base int32) long { // unsigned long int strtoul(const char *nptr, char **endptr, int base); func Xstrtoul(t *TLS, nptr, endptr uintptr, base int32) ulong { + if __ccgo_strace { + trc("t=%v endptr=%v base=%v, (%v:)", t, endptr, base, origin(2)) + } var s uintptr = nptr var acc ulong var c byte @@ -6032,6 +7137,9 @@ func Xstrtoul(t *TLS, nptr, endptr uintptr, base int32) ulong { // int __isoc99_sscanf(const char *str, const char *format, ...); func X__isoc99_sscanf(t *TLS, str, format, va uintptr) int32 { + if __ccgo_strace { + trc("t=%v va=%v, (%v:)", t, va, origin(2)) + } r := scanf(strings.NewReader(GoString(str)), format, va) // if dmesgs { // dmesg("%v: %q %q: %d", origin(1), GoString(str), GoString(format), r) @@ -6041,6 +7149,9 @@ func X__isoc99_sscanf(t *TLS, str, format, va uintptr) int32 { // int sscanf(const char *str, const char *format, ...); func Xsscanf(t *TLS, str, format, va uintptr) int32 { + if __ccgo_strace { + trc("t=%v va=%v, (%v:)", t, va, origin(2)) + } r := scanf(strings.NewReader(GoString(str)), format, va) // if dmesgs { // dmesg("%v: %q %q: %d", origin(1), GoString(str), GoString(format), r) @@ -6048,42 +7159,84 @@ func Xsscanf(t *TLS, str, format, va uintptr) int32 { return r } -func Xstrtod(tls *TLS, s uintptr, p uintptr) float64 { /* strtod.c:22:8: */ - panic(todo("")) -} +var _toint4 = Float64FromInt32(1) / Float64FromFloat64(2.220446049250313e-16) func Xrint(tls *TLS, x float64) float64 { - switch { - case x == 0: // also +0 and -0 - return 0 - case math.IsInf(x, 0), math.IsNaN(x): + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + } + bp := tls.Alloc(16) + defer tls.Free(16) + var e, s int32 + var y Tdouble_t + var v1 float64 + var _ /* u at bp+0 */ struct { + Fi [0]Tuint64_t + Ff float64 + } + _, _, _, _ = e, s, y, v1 + *(*struct { + Fi [0]Tuint64_t + Ff float64 + })(unsafe.Pointer(bp)) = struct { + Fi [0]Tuint64_t + Ff float64 + }{} + *(*float64)(unsafe.Pointer(bp)) = x + e = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff)) + s = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(63)) + if e >= Int32FromInt32(0x3ff)+Int32FromInt32(52) { return x - case x >= math.MinInt64 && x <= math.MaxInt64 && float64(int64(x)) == x: - return x - case x >= 0: - return math.Floor(x + 0.5) - default: - return math.Ceil(x - 0.5) } + if s != 0 { + y = x - _toint4 + _toint4 + } else { + y = x + _toint4 - _toint4 + } + if y == Float64FromInt32(0) { + if s != 0 { + v1 = -Float64FromFloat64(0) + } else { + v1 = Float64FromInt32(0) + } + return v1 + } + return y } // FILE *fdopen(int fd, const char *mode); func Xfdopen(t *TLS, fd int32, mode uintptr) uintptr { + if __ccgo_strace { + trc("t=%v fd=%v mode=%v, (%v:)", t, fd, mode, origin(2)) + } panic(todo("")) } // struct tm *_gmtime64( const __time64_t *sourceTime ); func X_gmtime64(t *TLS, sourceTime uintptr) uintptr { - panic(todo("")) + if __ccgo_strace { + trc("t=%v sourceTime=%v, (%v:)", t, sourceTime, origin(2)) + } + r0, _, err := procGmtime64.Call(uintptr(sourceTime)) + if err != windows.NOERROR { + t.setErrno(err) + } + return uintptr(r0) } // __time64_t _mktime64(struct tm *timeptr); func X_mktime64(t *TLS, timeptr uintptr) time.X__time64_t { + if __ccgo_strace { + trc("t=%v timeptr=%v, (%v:)", t, timeptr, origin(2)) + } return time.X__time64_t(Xmktime(t, timeptr)) } // char * gai_strerrorA(int ecode); func Xgai_strerrorA(t *TLS, ecode int32) uintptr { + if __ccgo_strace { + trc("t=%v ecode=%v, (%v:)", t, ecode, origin(2)) + } panic(todo("")) } @@ -6105,6 +7258,9 @@ type __timeb64 struct { // void _ftime64( struct __timeb64 *timeptr ); func X_ftime64(t *TLS, timeptr uintptr) { + if __ccgo_strace { + trc("t=%v timeptr=%v, (%v:)", t, timeptr, origin(2)) + } tm := gotime.Now() (*__timeb64)(unsafe.Pointer(timeptr)).time = types.X__time64_t(tm.Unix()) @@ -6115,19 +7271,32 @@ func X_ftime64(t *TLS, timeptr uintptr) { } func X__ccgo_getMutexType(tls *TLS, m uintptr) int32 { /* pthread_mutex_lock.c:3:5: */ + if __ccgo_strace { + trc("tls=%v m=%v, (%v:)", tls, m, origin(2)) + } return *(*int32)(unsafe.Pointer(m)) & 15 } func X__ccgo_pthreadAttrGetDetachState(tls *TLS, a uintptr) int32 { /* pthread_attr_get.c:3:5: */ + if __ccgo_strace { + trc("tls=%v a=%v, (%v:)", tls, a, origin(2)) + } return *(*int32)(unsafe.Pointer(a)) } func X__ccgo_pthreadMutexattrGettype(tls *TLS, a uintptr) int32 { /* pthread_attr_get.c:93:5: */ + if __ccgo_strace { + trc("tls=%v a=%v, (%v:)", tls, a, origin(2)) + } return *(*int32)(unsafe.Pointer(a)) & int32(3) } func Xchmod(t *TLS, pathname uintptr, mode int32) int32 { - panic(todo("%q %#o", GoString(pathname), mode)) + r0, _, err := procChmod.Call(pathname, uintptr(mode)) + if err != windows.NOERROR { + t.setErrno(err) + } + return int32(r0) } // typedef enum _COMPUTER_NAME_FORMAT { @@ -6150,8 +7319,11 @@ func Xchmod(t *TLS, pathname uintptr, mode int32) int32 { // // ); func XGetComputerNameExW(t *TLS, nameType int32, lpBuffer, nSize uintptr) int32 { - r0, _, err := syscall.Syscall(procGetComputerNameExW.Addr(), 3, uintptr(nameType), lpBuffer, nSize) - if err != 0 { + if __ccgo_strace { + trc("t=%v nameType=%v nSize=%v, (%v:)", t, nameType, nSize, origin(2)) + } + r0, _, err := procGetComputerNameExW.Call(uintptr(nameType), lpBuffer, nSize) + if err != windows.NOERROR { t.setErrno(err) } return int32(r0) @@ -6163,7 +7335,13 @@ func XGetComputerNameExW(t *TLS, nameType int32, lpBuffer, nSize uintptr) int32 // double y // // ); -func X_copysign(t *TLS, x, y float64) float64 { return Xcopysign(t, x, y) } + +func X_copysign(t *TLS, x, y float64) float64 { + if __ccgo_strace { + trc("t=%v y=%v, (%v:)", t, y, origin(2)) + } + return Xcopysign(t, x, y) +} // int _wtoi( // @@ -6171,6 +7349,9 @@ func X_copysign(t *TLS, x, y float64) float64 { return Xcopysign(t, x, y) } // // ); func X_wtoi(t *TLS, str uintptr) int32 { + if __ccgo_strace { + trc("t=%v str=%v, (%v:)", t, str, origin(2)) + } panic(todo("")) } @@ -6195,6 +7376,9 @@ func allocW(t *TLS, v string) (r uintptr) { // // ); func X_wgetenv(t *TLS, varname uintptr) uintptr { + if __ccgo_strace { + trc("t=%v varname=%v, (%v:)", t, varname, origin(2)) + } if !wenvValid { bootWinEnviron(t) } @@ -6218,6 +7402,9 @@ func X_wgetenv(t *TLS, varname uintptr) uintptr { // // ); func X_wputenv(t *TLS, envstring uintptr) int32 { + if __ccgo_strace { + trc("t=%v envstring=%v, (%v:)", t, envstring, origin(2)) + } if !wenvValid { bootWinEnviron(t) } @@ -6261,7 +7448,12 @@ func bootWinEnviron(t *TLS) { wenvValid = true } -func Xfabsl(t *TLS, x float64) float64 { return math.Abs(x) } +func Xfabsl(t *TLS, x float64) float64 { + if __ccgo_strace { + trc("t=%v x=%v, (%v:)", t, x, origin(2)) + } + return math.Abs(x) +} func X__stdio_common_vfprintf(t *TLS, args ...interface{}) int32 { panic("TODO") } func X__stdio_common_vfprintf_p(t *TLS, args ...interface{}) int32 { panic("TODO") } @@ -6278,3 +7470,439 @@ func X__stdio_common_vsscanf(t *TLS, args ...interface{}) int32 { panic("TO func X__stdio_common_vswprintf(t *TLS, args ...interface{}) int32 { panic("TODO") } func X__stdio_common_vswprintf_s(t *TLS, args ...interface{}) int32 { panic("TODO") } func X__stdio_common_vswscanf(t *TLS, args ...interface{}) int32 { panic("TODO") } + +func X_lseeki64(t *TLS, fd int32, offset int64, whence int32) int64 { + if __ccgo_strace { + trc("t=%v fd=%v offset=%v whence=%v, (%v:)", t, fd, offset, whence, origin(2)) + } + + f, ok := fdToFile(fd) + if !ok { + t.setErrno(errno.EBADF) + return -1 + } + + n, err := windows.Seek(f.Handle, offset, int(whence)) + if err != nil { + if dmesgs { + dmesg("%v: fd %v, off %#x, whence %v: %v", origin(1), f._fd, offset, whenceStr(whence), n) + } + t.setErrno(err) + return -1 + } + + if dmesgs { + dmesg("%v: fd %v, off %#x, whence %v: ok", origin(1), f._fd, offset, whenceStr(whence)) + } + return n +} + +func Xislower(tls *TLS, c int32) int32 { /* islower.c:4:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } + return Bool32(uint32(c)-uint32('a') < uint32(26)) +} + +func Xisupper(tls *TLS, c int32) int32 { /* isupper.c:4:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } + return Bool32(uint32(c)-uint32('A') < uint32(26)) +} + +// int access(const char *pathname, int mode); +func Xaccess(t *TLS, pathname uintptr, mode int32) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v mode=%v, (%v:)", t, pathname, mode, origin(2)) + } + r0, _, err := procAccess.Call(uintptr(pathname), uintptr(mode)) + if err != windows.NOERROR { + t.setErrno(err) + } + return int32(r0) +} + +// int _vscprintf(const char *format, va_list argptr); +func X_vscprintf(t *TLS, format uintptr, argptr uintptr) int32 { + if __ccgo_strace { + trc("t=%v format=%v argptr=%v, (%v:)", t, format, argptr, origin(2)) + } + + return int32(len(printf(format, argptr))) +} + +// int _stat32i64(const char *path, struct _stat32i64 *buffer); +func X_stat64i32(t *TLS, path uintptr, buffer uintptr) int32 { + if __ccgo_strace { + trc("t=%v path=%v buffer=%v, (%v:)", t, path, buffer, origin(2)) + } + r0, _, err := procStat64i32.Call(uintptr(path), uintptr(buffer)) + if err != windows.NOERROR { + t.setErrno(err) + } + return int32(r0) +} + +func AtomicLoadNUint8(ptr uintptr, memorder int32) uint8 { + return byte(a_load_8(ptr)) +} + +// struct tm *gmtime( const time_t *sourceTime ); +// func Xgmtime(t *TLS, sourceTime uintptr) uintptr { +// if __ccgo_strace { +// trc("t=%v sourceTime=%v, (%v:)", t, sourceTime, origin(2)) +// } +// r0, _, err := procGmtime.Call(uintptr(sourceTime)) +// if err != windows.NOERROR { +// t.setErrno(err) +// } +// return uintptr(r0) +// } + +var _tm time.Tm + +// /tmp/libc/musl-master/src/time/gmtime.c:4:11: +func Xgmtime(tls *TLS, t uintptr) (r uintptr) { // /tmp/libc/musl-master/src/time/gmtime.c:7:2: + if __ccgo_strace { + trc("tls=%v t=%v, (%v:)", tls, t, origin(2)) + defer func() { trc("-> %v", r) }() + } + r = Xgmtime_r(tls, t, uintptr(unsafe.Pointer(&_tm))) + return r +} + +var _days_in_month = [12]int8{ + 0: int8(31), + 1: int8(30), + 2: int8(31), + 3: int8(30), + 4: int8(31), + 5: int8(31), + 6: int8(30), + 7: int8(31), + 8: int8(30), + 9: int8(31), + 10: int8(31), + 11: int8(29), +} + +var x___utc = [4]int8{'U', 'T', 'C'} + +func Xgmtime_r(tls *TLS, t uintptr, tm uintptr) (r uintptr) { + if __ccgo_strace { + trc("tls=%v t=%v tm=%v, (%v:)", tls, t, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + if x___secs_to_tm(tls, int64(*(*time.Time_t)(unsafe.Pointer(t))), tm) < 0 { + *(*int32)(unsafe.Pointer(X__errno_location(tls))) = int32(errno.EOVERFLOW) + return uintptr(0) + } + (*time.Tm)(unsafe.Pointer(tm)).Ftm_isdst = 0 + return tm +} + +func x___secs_to_tm(tls *TLS, t int64, tm uintptr) (r int32) { + var c_cycles, leap, months, q_cycles, qc_cycles, remdays, remsecs, remyears, wday, yday int32 + var days, secs, years int64 + _, _, _, _, _, _, _, _, _, _, _, _, _ = c_cycles, days, leap, months, q_cycles, qc_cycles, remdays, remsecs, remyears, secs, wday, yday, years + /* Reject time_t values whose year would overflow int */ + if t < int64(-Int32FromInt32(1)-Int32FromInt32(0x7fffffff))*Int64FromInt64(31622400) || t > Int64FromInt32(limits.INT_MAX)*Int64FromInt64(31622400) { + return -int32(1) + } + secs = t - (Int64FromInt64(946684800) + int64(Int32FromInt32(86400)*(Int32FromInt32(31)+Int32FromInt32(29)))) + days = secs / int64(86400) + remsecs = int32(secs % int64(86400)) + if remsecs < 0 { + remsecs += int32(86400) + days-- + } + wday = int32((int64(3) + days) % int64(7)) + if wday < 0 { + wday += int32(7) + } + qc_cycles = int32(days / int64(Int32FromInt32(365)*Int32FromInt32(400)+Int32FromInt32(97))) + remdays = int32(days % int64(Int32FromInt32(365)*Int32FromInt32(400)+Int32FromInt32(97))) + if remdays < 0 { + remdays += Int32FromInt32(365)*Int32FromInt32(400) + Int32FromInt32(97) + qc_cycles-- + } + c_cycles = remdays / (Int32FromInt32(365)*Int32FromInt32(100) + Int32FromInt32(24)) + if c_cycles == int32(4) { + c_cycles-- + } + remdays -= c_cycles * (Int32FromInt32(365)*Int32FromInt32(100) + Int32FromInt32(24)) + q_cycles = remdays / (Int32FromInt32(365)*Int32FromInt32(4) + Int32FromInt32(1)) + if q_cycles == int32(25) { + q_cycles-- + } + remdays -= q_cycles * (Int32FromInt32(365)*Int32FromInt32(4) + Int32FromInt32(1)) + remyears = remdays / int32(365) + if remyears == int32(4) { + remyears-- + } + remdays -= remyears * int32(365) + leap = BoolInt32(!(remyears != 0) && (q_cycles != 0 || !(c_cycles != 0))) + yday = remdays + int32(31) + int32(28) + leap + if yday >= int32(365)+leap { + yday -= int32(365) + leap + } + years = int64(remyears+int32(4)*q_cycles+int32(100)*c_cycles) + int64(400)*int64(int64(qc_cycles)) + months = 0 + for { + if !(int32(_days_in_month[months]) <= remdays) { + break + } + remdays -= int32(_days_in_month[months]) + goto _1 + _1: + months++ + } + if months >= int32(10) { + months -= int32(12) + years++ + } + if years+int64(100) > int64(limits.INT_MAX) || years+int64(100) < int64(-Int32FromInt32(1)-Int32FromInt32(0x7fffffff)) { + return -int32(1) + } + (*time.Tm)(unsafe.Pointer(tm)).Ftm_year = int32(years + int64(100)) + (*time.Tm)(unsafe.Pointer(tm)).Ftm_mon = months + int32(2) + (*time.Tm)(unsafe.Pointer(tm)).Ftm_mday = remdays + int32(1) + (*time.Tm)(unsafe.Pointer(tm)).Ftm_wday = wday + (*time.Tm)(unsafe.Pointer(tm)).Ftm_yday = yday + (*time.Tm)(unsafe.Pointer(tm)).Ftm_hour = remsecs / int32(3600) + (*time.Tm)(unsafe.Pointer(tm)).Ftm_min = remsecs / int32(60) % int32(60) + (*time.Tm)(unsafe.Pointer(tm)).Ftm_sec = remsecs % int32(60) + return 0 +} + +// size_t strftime( +// +// char *strDest, +// size_t maxsize, +// const char *format, +// const struct tm *timeptr +// +// ); +func Xstrftime(tls *TLS, s uintptr, n size_t, f uintptr, tm uintptr) (r size_t) { + if __ccgo_strace { + trc("tls=%v s=%v n=%v f=%v tm=%v, (%v:)", tls, s, n, f, tm, origin(2)) + defer func() { trc("-> %v", r) }() + } + tt := gotime.Date( + int((*time.Tm)(unsafe.Pointer(tm)).Ftm_year+1900), + gotime.Month((*time.Tm)(unsafe.Pointer(tm)).Ftm_mon+1), + int((*time.Tm)(unsafe.Pointer(tm)).Ftm_mday), + int((*time.Tm)(unsafe.Pointer(tm)).Ftm_hour), + int((*time.Tm)(unsafe.Pointer(tm)).Ftm_min), + int((*time.Tm)(unsafe.Pointer(tm)).Ftm_sec), + 0, + gotime.UTC, + ) + fmt := GoString(f) + var result string + if fmt != "" { + result = strftime.Format(fmt, tt) + } + switch r = size_t(len(result)); { + case r > n: + r = 0 + default: + copy((*RawMem)(unsafe.Pointer(s))[:r:r], result) + *(*byte)(unsafe.Pointer(s + uintptr(r))) = 0 + } + return r + +} + +func X__mingw_strtod(t *TLS, s uintptr, p uintptr) float64 { + return Xstrtod(t, s, p) +} + +// int vsnprintf(char *str, size_t size, const char *format, va_list ap); +func X_vsnprintf(t *TLS, str uintptr, size types.Size_t, format, ap uintptr) int32 { + if __ccgo_strace { + trc("t=%v str=%v size=%v ap=%v, (%v:)", t, str, size, ap, origin(2)) + } + return Xvsnprintf(t, str, size, format, ap) +} + +func X__ccgo_SyscallFP() { + s := fmt.Sprintf("%s\nTODO syscall: function pointer", debug.Stack()) + panic(s) +} + +func CreateThread(t *TLS, lpThreadAttributes uintptr, dwStackSize types.Size_t, lpStartAddress, lpParameter uintptr, dwCreationFlags uint32, lpThreadId uintptr) uintptr { + return XCreateThread(t, lpThreadAttributes, dwStackSize, lpStartAddress, lpParameter, dwCreationFlags, lpThreadId) +} + +// wchar_t *wcsncpy(wchar_t *strDest, const wchar_t *strSource, size_t count); +func Xwcsncpy(t *TLS, strDest, strSource uintptr, count types.Size_t) uintptr { + r0, _, err := procWcsncpy.Call(strDest, strSource, uintptr(count)) + if err != windows.NOERROR { + t.setErrno(err) + } + return r0 +} + +// wchar_t *wcsrchr(const wchar_t *str, wchar_t c); +func Xwcsrchr(t *TLS, str uintptr, c types.Wchar_t) uintptr { + r0, _, err := procWcsrchr.Call(str, uintptr(c)) + if err != windows.NOERROR { + t.setErrno(err) + } + return r0 +} + +// __attribute__ ((__dllimport__)) char * __attribute__((__cdecl__)) _ctime64(const __time64_t *_Time); +func X_ctime64(tls *TLS, __Time uintptr) (r uintptr) { + if __ccgo_strace { + trc("_Time=%+v", __Time) + defer func() { trc(`X_ctime64->%+v`, r) }() + } + r0, _, err := procCtime64.Call(__Time) + if err != windows.NOERROR { + tls.setErrno(int32(err.(windows.Errno))) + } + return uintptr(r0) +} + +// __attribute__ ((__dllimport__)) __time64_t __attribute__((__cdecl__)) _time64(__time64_t *_Time); +func X_time64(tls *TLS, __Time uintptr) (r int64) { + if __ccgo_strace { + trc("_Time=%+v", __Time) + defer func() { trc(`X_time64->%+v`, r) }() + } + r0, _, err := procTime64.Call(__Time) + if err != windows.NOERROR { + tls.setErrno(int32(err.(windows.Errno))) + } + return int64(r0) +} + +// __attribute__ ((__dllimport__)) int __attribute__((__cdecl__)) _strnicmp(const char *_Str1,const char *_Str2,size_t _MaxCount); +func X_strnicmp(tls *TLS, __Str1 uintptr, __Str2 uintptr, __MaxCount types.Size_t) (r int32) { + if __ccgo_strace { + trc("_Str1=%+v _Str2=%+v _MaxCount=%+v", __Str1, __Str2, __MaxCount) + defer func() { trc(`X_strnicmp->%+v`, r) }() + } + r0, _, err := procStrnicmp.Call(__Str1, __Str2, uintptr(__MaxCount)) + if err != windows.NOERROR { + tls.setErrno(int32(err.(windows.Errno))) + } + return int32(r0) +} + +func X__builtin_ctz(t *TLS, n uint32) int32 { + return int32(mbits.TrailingZeros32(n)) +} + +// intptr_t _wfindfirst64i32(const wchar_t *filespec, struct _wfinddata64i32_t *fileinfo); +func X_wfindfirst64i32(tls *TLS, filespec, fileinfo uintptr) (r types.Intptr_t) { + r0, _, err := procWfindfirst64i32.Call(filespec, fileinfo) + if err != windows.NOERROR { + tls.setErrno(int32(err.(windows.Errno))) + } + return types.Intptr_t(r0) +} + +// int _wfindnext64i32(intptr_t handle, struct _wfinddata64i32_t *fileinfo); +func X_wfindnext64i32(tls *TLS, handle types.Intptr_t, fileinfo uintptr) (r int32) { + r0, _, err := procWfindnext64i32.Call(uintptr(handle), fileinfo) + if err != windows.NOERROR { + tls.setErrno(int32(err.(windows.Errno))) + } + return int32(r0) +} + +// wchar_t *_wfullpath( +// +// wchar_t *absPath, +// const wchar_t *relPath, +// size_t maxLength +// +// ); +func X_wfullpath(tls *TLS, absPath, relPath uintptr, maxLength Tsize_t) (r uintptr) { + r0, _, err := procWfullpath.Call(absPath, relPath, uintptr(maxLength)) + if err != windows.NOERROR { + tls.setErrno(int32(err.(windows.Errno))) + } + return r0 +} + +// int _wchmod( const wchar_t *filename, int pmode ); +func X_wchmod(tls *TLS, filename uintptr, pmode int32) (r int32) { + r0, _, err := procWchmod.Call(filename, uintptr(pmode)) + if err != windows.NOERROR { + tls.setErrno(int32(err.(windows.Errno))) + } + return int32(r0) +} + +// int _wmkdir(const wchar_t *dirname); +func X_wmkdir(tls *TLS, dirname uintptr) (r int32) { + r0, _, err := procWmkdir.Call(dirname) + if err != windows.NOERROR { + tls.setErrno(int32(err.(windows.Errno))) + } + return int32(r0) +} + +// int _wstat64i32(const wchar_t *path, struct _stat64i32 *buffer); +func X_wstat64i32(tls *TLS, path, buffer uintptr) (r int32) { + r0, _, err := procWstat64i32.Call(path, buffer) + if err != windows.NOERROR { + tls.setErrno(int32(err.(windows.Errno))) + } + return int32(r0) +} + +// intptr_t _wfindfirst32(const wchar_t *filespec, struct _wfinddata32_t *fileinfo); +func X_wfindfirst32(tls *TLS, filespec, fileinfo uintptr) (r types.Intptr_t) { + r0, _, err := procWfindfirst32.Call(filespec, fileinfo) + if err != windows.NOERROR { + tls.setErrno(int32(err.(windows.Errno))) + } + return types.Intptr_t(r0) +} + +// int _wfindnext32(intptr_t handle, struct _wfinddata32_t *fileinfo); +func X_wfindnext32(tls *TLS, handle types.Intptr_t, fileinfo uintptr) (r int32) { + r0, _, err := procWfindnext32.Call(uintptr(handle), fileinfo) + if err != windows.NOERROR { + tls.setErrno(int32(err.(windows.Errno))) + } + return int32(r0) +} + +// int _wstat32(const wchar_t *path, struct __stat32 *buffer); +func X_wstat32(tls *TLS, path, buffer uintptr) (r int32) { + r0, _, err := procWstat32.Call(path, buffer) + if err != windows.NOERROR { + tls.setErrno(int32(err.(windows.Errno))) + } + return int32(r0) +} + +func Xbsearch(tls *TLS, key uintptr, base uintptr, nel Tsize_t, width Tsize_t, cmp uintptr) uintptr { + if __ccgo_strace { + trc("tls=%v key=%v base=%v nel=%v width=%v cmp=%v, (%v:)", tls, key, base, nel, width, cmp, origin(2)) + } + var try uintptr + var sign int32 + for nel > 0 { + try = base + uintptr(width*(nel/2)) + sign = (*struct { + f func(*TLS, uintptr, uintptr) int32 + })(unsafe.Pointer(&struct{ uintptr }{cmp})).f(tls, key, try) + if sign < 0 { + nel /= 2 + } else if sign > 0 { + base = try + uintptr(width) + nel -= nel/2 + 1 + } else { + return try + } + } + return 0 +} diff --git a/vendor/modernc.org/libc/libc_windows_386.go b/vendor/modernc.org/libc/libc_windows_386.go index d48e6f65c..05f26ae6e 100644 --- a/vendor/modernc.org/libc/libc_windows_386.go +++ b/vendor/modernc.org/libc/libc_windows_386.go @@ -5,18 +5,23 @@ package libc // import "modernc.org/libc" import ( + "golang.org/x/sys/windows" "os" "strings" - "syscall" + gotime "time" "unsafe" "modernc.org/libc/errno" "modernc.org/libc/sys/stat" "modernc.org/libc/sys/types" + "modernc.org/libc/time" ) // int sigaction(int signum, const struct sigaction *act, struct sigaction *oldact); func Xsigaction(t *TLS, signum int32, act, oldact uintptr) int32 { + if __ccgo_strace { + trc("t=%v signum=%v oldact=%v, (%v:)", t, signum, oldact, origin(2)) + } panic(todo("")) // // musl/arch/x32/ksigaction.h // // @@ -62,6 +67,9 @@ func Xsigaction(t *TLS, signum int32, act, oldact uintptr) int32 { // int fcntl(int fd, int cmd, ... /* arg */ ); func Xfcntl64(t *TLS, fd, cmd int32, args uintptr) int32 { + if __ccgo_strace { + trc("t=%v cmd=%v args=%v, (%v:)", t, cmd, args, origin(2)) + } panic(todo("")) // var arg uintptr // if args != 0 { @@ -84,6 +92,9 @@ func Xfcntl64(t *TLS, fd, cmd int32, args uintptr) int32 { // int lstat(const char *pathname, struct stat *statbuf); func Xlstat64(t *TLS, pathname, statbuf uintptr) int32 { + if __ccgo_strace { + trc("t=%v statbuf=%v, (%v:)", t, statbuf, origin(2)) + } panic(todo("")) // if _, _, err := unix.Syscall(unix.SYS_LSTAT64, pathname, statbuf, 0); err != 0 { // if dmesgs { @@ -101,6 +112,9 @@ func Xlstat64(t *TLS, pathname, statbuf uintptr) int32 { // int stat(const char *pathname, struct stat *statbuf); func Xstat64(t *TLS, pathname, statbuf uintptr) int32 { + if __ccgo_strace { + trc("t=%v statbuf=%v, (%v:)", t, statbuf, origin(2)) + } panic(todo("")) // if _, _, err := unix.Syscall(unix.SYS_STAT64, pathname, statbuf, 0); err != 0 { // if dmesgs { @@ -118,6 +132,9 @@ func Xstat64(t *TLS, pathname, statbuf uintptr) int32 { // int fstat(int fd, struct stat *statbuf); func Xfstat64(t *TLS, fd int32, statbuf uintptr) int32 { + if __ccgo_strace { + trc("t=%v fd=%v statbuf=%v, (%v:)", t, fd, statbuf, origin(2)) + } panic(todo("")) // if _, _, err := unix.Syscall(unix.SYS_FSTAT64, uintptr(fd), statbuf, 0); err != 0 { // if dmesgs { @@ -135,6 +152,9 @@ func Xfstat64(t *TLS, fd int32, statbuf uintptr) int32 { // void *mremap(void *old_address, size_t old_size, size_t new_size, int flags, ... /* void *new_address */); func Xmremap(t *TLS, old_address uintptr, old_size, new_size types.Size_t, flags int32, args uintptr) uintptr { + if __ccgo_strace { + trc("t=%v old_address=%v new_size=%v flags=%v args=%v, (%v:)", t, old_address, new_size, flags, args, origin(2)) + } panic(todo("")) // var arg uintptr // if args != 0 { @@ -156,11 +176,17 @@ func Xmremap(t *TLS, old_address uintptr, old_size, new_size types.Size_t, flags } func Xmmap(t *TLS, addr uintptr, length types.Size_t, prot, flags, fd int32, offset types.Off_t) uintptr { + if __ccgo_strace { + trc("t=%v addr=%v length=%v fd=%v offset=%v, (%v:)", t, addr, length, fd, offset, origin(2)) + } return Xmmap64(t, addr, length, prot, flags, fd, offset) } // void *mmap(void *addr, size_t length, int prot, int flags, int fd, off_t offset); func Xmmap64(t *TLS, addr uintptr, length types.Size_t, prot, flags, fd int32, offset types.Off_t) uintptr { + if __ccgo_strace { + trc("t=%v addr=%v length=%v fd=%v offset=%v, (%v:)", t, addr, length, fd, offset, origin(2)) + } panic(todo("")) // data, _, err := unix.Syscall6(unix.SYS_MMAP2, addr, uintptr(length), uintptr(prot), uintptr(flags), uintptr(fd), uintptr(offset>>12)) // if err != 0 { @@ -179,6 +205,9 @@ func Xmmap64(t *TLS, addr uintptr, length types.Size_t, prot, flags, fd int32, o // int ftruncate(int fd, off_t length); func Xftruncate64(t *TLS, fd int32, length types.Off_t) int32 { + if __ccgo_strace { + trc("t=%v fd=%v length=%v, (%v:)", t, fd, length, origin(2)) + } panic(todo("")) // if _, _, err := unix.Syscall(unix.SYS_FTRUNCATE64, uintptr(fd), uintptr(length), uintptr(length>>32)); err != 0 { // if dmesgs { @@ -196,25 +225,36 @@ func Xftruncate64(t *TLS, fd int32, length types.Off_t) int32 { // off64_t lseek64(int fd, off64_t offset, int whence); func Xlseek64(t *TLS, fd int32, offset types.Off_t, whence int32) types.Off_t { - panic(todo("")) - // bp := t.Alloc(int(unsafe.Sizeof(types.X__loff_t(0)))) - // defer t.Free(int(unsafe.Sizeof(types.X__loff_t(0)))) - // if _, _, err := unix.Syscall6(unix.SYS__LLSEEK, uintptr(fd), uintptr(offset>>32), uintptr(offset), bp, uintptr(whence), 0); err != 0 { - // if dmesgs { - // dmesg("%v: fd %v, off %#x, whence %v: %v", origin(1), fd, offset, whenceStr(whence), err) - // } - // t.setErrno(err) - // return -1 - // } - // - // if dmesgs { - // dmesg("%v: fd %v, off %#x, whence %v: %#x", origin(1), fd, offset, whenceStr(whence), *(*types.Off_t)(unsafe.Pointer(bp))) - // } - // return *(*types.Off_t)(unsafe.Pointer(bp)) + if __ccgo_strace { + trc("t=%v fd=%v offset=%v whence=%v, (%v:)", t, fd, offset, whence, origin(2)) + } + + f, ok := fdToFile(fd) + if !ok { + t.setErrno(errno.EBADF) + return -1 + } + + n, err := windows.Seek(f.Handle, offset, int(whence)) + if err != nil { + if dmesgs { + dmesg("%v: fd %v, off %#x, whence %v: %v", origin(1), f._fd, offset, whenceStr(whence), n) + } + t.setErrno(err) + return -1 + } + + if dmesgs { + dmesg("%v: fd %v, off %#x, whence %v: ok", origin(1), f._fd, offset, whenceStr(whence)) + } + return n } // int utime(const char *filename, const struct utimbuf *times); func Xutime(t *TLS, filename, times uintptr) int32 { + if __ccgo_strace { + trc("t=%v times=%v, (%v:)", t, times, origin(2)) + } panic(todo("")) // if _, _, err := unix.Syscall(unix.SYS_UTIME, filename, times, 0); err != 0 { // t.setErrno(err) @@ -226,6 +266,9 @@ func Xutime(t *TLS, filename, times uintptr) int32 { // unsigned int alarm(unsigned int seconds); func Xalarm(t *TLS, seconds uint32) uint32 { + if __ccgo_strace { + trc("t=%v seconds=%v, (%v:)", t, seconds, origin(2)) + } panic(todo("")) // n, _, err := unix.Syscall(unix.SYS_ALARM, uintptr(seconds), 0, 0) // if err != 0 { @@ -237,6 +280,9 @@ func Xalarm(t *TLS, seconds uint32) uint32 { // int getrlimit(int resource, struct rlimit *rlim); func Xgetrlimit64(t *TLS, resource int32, rlim uintptr) int32 { + if __ccgo_strace { + trc("t=%v resource=%v rlim=%v, (%v:)", t, resource, rlim, origin(2)) + } panic(todo("")) // if _, _, err := unix.Syscall(unix.SYS_GETRLIMIT, uintptr(resource), uintptr(rlim), 0); err != 0 { // t.setErrno(err) @@ -248,6 +294,9 @@ func Xgetrlimit64(t *TLS, resource int32, rlim uintptr) int32 { // time_t time(time_t *tloc); func Xtime(t *TLS, tloc uintptr) types.Time_t { + if __ccgo_strace { + trc("t=%v tloc=%v, (%v:)", t, tloc, origin(2)) + } panic(todo("")) // n, _, err := unix.Syscall(unix.SYS_TIME, tloc, 0, 0) // if err != 0 { @@ -263,6 +312,9 @@ func Xtime(t *TLS, tloc uintptr) types.Time_t { // int mkdir(const char *path, mode_t mode); func Xmkdir(t *TLS, path uintptr, mode types.Mode_t) int32 { + if __ccgo_strace { + trc("t=%v path=%v mode=%v, (%v:)", t, path, mode, origin(2)) + } panic(todo("")) // if _, _, err := unix.Syscall(unix.SYS_MKDIR, path, uintptr(mode), 0); err != 0 { // t.setErrno(err) @@ -277,6 +329,9 @@ func Xmkdir(t *TLS, path uintptr, mode types.Mode_t) int32 { // int symlink(const char *target, const char *linkpath); func Xsymlink(t *TLS, target, linkpath uintptr) int32 { + if __ccgo_strace { + trc("t=%v linkpath=%v, (%v:)", t, linkpath, origin(2)) + } panic(todo("")) // if _, _, err := unix.Syscall(unix.SYS_SYMLINK, target, linkpath, 0); err != 0 { // t.setErrno(err) @@ -291,6 +346,9 @@ func Xsymlink(t *TLS, target, linkpath uintptr) int32 { // int utimes(const char *filename, const struct timeval times[2]); func Xutimes(t *TLS, filename, times uintptr) int32 { + if __ccgo_strace { + trc("t=%v times=%v, (%v:)", t, times, origin(2)) + } panic(todo("")) // if _, _, err := unix.Syscall(unix.SYS_UTIMES, filename, times, 0); err != 0 { // t.setErrno(err) @@ -305,7 +363,10 @@ func Xutimes(t *TLS, filename, times uintptr) int32 { // int unlink(const char *pathname); func Xunlink(t *TLS, pathname uintptr) int32 { - err := syscall.DeleteFile((*uint16)(unsafe.Pointer(pathname))) + if __ccgo_strace { + trc("t=%v pathname=%v, (%v:)", t, pathname, origin(2)) + } + err := windows.DeleteFile((*uint16)(unsafe.Pointer(pathname))) if err != nil { t.setErrno(err) return -1 @@ -319,25 +380,11 @@ func Xunlink(t *TLS, pathname uintptr) int32 { } -// int access(const char *pathname, int mode); -func Xaccess(t *TLS, pathname uintptr, mode int32) int32 { - panic(todo("")) - // if _, _, err := unix.Syscall(unix.SYS_ACCESS, pathname, uintptr(mode), 0); err != 0 { - // if dmesgs { - // dmesg("%v: %q: %v", origin(1), GoString(pathname), err) - // } - // t.setErrno(err) - // return -1 - // } - // - // if dmesgs { - // dmesg("%v: %q %#o: ok", origin(1), GoString(pathname), mode) - // } - // return 0 -} - // int rmdir(const char *pathname); func Xrmdir(t *TLS, pathname uintptr) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v, (%v:)", t, pathname, origin(2)) + } panic(todo("")) // if _, _, err := unix.Syscall(unix.SYS_RMDIR, pathname, 0, 0); err != 0 { // t.setErrno(err) @@ -352,6 +399,9 @@ func Xrmdir(t *TLS, pathname uintptr) int32 { // int mknod(const char *pathname, mode_t mode, dev_t dev); func Xmknod(t *TLS, pathname uintptr, mode types.Mode_t, dev types.Dev_t) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v mode=%v dev=%v, (%v:)", t, pathname, mode, dev, origin(2)) + } panic(todo("")) // if _, _, err := unix.Syscall(unix.SYS_MKNOD, pathname, uintptr(mode), uintptr(dev)); err != 0 { // t.setErrno(err) @@ -374,6 +424,9 @@ func Xmknod(t *TLS, pathname uintptr, mode types.Mode_t, dev types.Dev_t) int32 // int link(const char *oldpath, const char *newpath); func Xlink(t *TLS, oldpath, newpath uintptr) int32 { + if __ccgo_strace { + trc("t=%v newpath=%v, (%v:)", t, newpath, origin(2)) + } panic(todo("")) // if _, _, err := unix.Syscall(unix.SYS_LINK, oldpath, newpath, 0); err != 0 { // t.setErrno(err) @@ -385,6 +438,9 @@ func Xlink(t *TLS, oldpath, newpath uintptr) int32 { // int pipe(int pipefd[2]); func Xpipe(t *TLS, pipefd uintptr) int32 { + if __ccgo_strace { + trc("t=%v pipefd=%v, (%v:)", t, pipefd, origin(2)) + } panic(todo("")) // if _, _, err := unix.Syscall(unix.SYS_PIPE, pipefd, 0, 0); err != 0 { // t.setErrno(err) @@ -396,6 +452,9 @@ func Xpipe(t *TLS, pipefd uintptr) int32 { // int dup2(int oldfd, int newfd); func Xdup2(t *TLS, oldfd, newfd int32) int32 { + if __ccgo_strace { + trc("t=%v newfd=%v, (%v:)", t, newfd, origin(2)) + } panic(todo("")) // n, _, err := unix.Syscall(unix.SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0) // if err != 0 { @@ -408,6 +467,9 @@ func Xdup2(t *TLS, oldfd, newfd int32) int32 { // ssize_t readlink(const char *restrict path, char *restrict buf, size_t bufsize); func Xreadlink(t *TLS, path, buf uintptr, bufsize types.Size_t) types.Ssize_t { + if __ccgo_strace { + trc("t=%v buf=%v bufsize=%v, (%v:)", t, buf, bufsize, origin(2)) + } panic(todo("")) // n, _, err := unix.Syscall(unix.SYS_READLINK, path, buf, uintptr(bufsize)) // if err != 0 { @@ -420,6 +482,9 @@ func Xreadlink(t *TLS, path, buf uintptr, bufsize types.Size_t) types.Ssize_t { // FILE *fopen64(const char *pathname, const char *mode); func Xfopen64(t *TLS, pathname, mode uintptr) uintptr { + if __ccgo_strace { + trc("t=%v mode=%v, (%v:)", t, mode, origin(2)) + } m := strings.ReplaceAll(GoString(mode), "b", "") var flags int @@ -440,7 +505,7 @@ func Xfopen64(t *TLS, pathname, mode uintptr) uintptr { panic(m) } //TODO- flags |= fcntl.O_LARGEFILE - h, err := syscall.Open(GoString(pathname), int(flags), uint32(0666)) + h, err := windows.Open(GoString(pathname), int(flags), uint32(0666)) if err != nil { t.setErrno(err) return 0 @@ -450,20 +515,29 @@ func Xfopen64(t *TLS, pathname, mode uintptr) uintptr { if p != 0 { return p } - _ = syscall.Close(h) + _ = windows.Close(h) t.setErrno(errno.ENOMEM) return 0 } func Xrecv(t *TLS, sockfd uint32, buf uintptr, len, flags int32) int32 { + if __ccgo_strace { + trc("t=%v sockfd=%v buf=%v flags=%v, (%v:)", t, sockfd, buf, flags, origin(2)) + } panic(todo("")) } func Xsend(t *TLS, sockfd uint32, buf uintptr, len, flags int32) int32 { + if __ccgo_strace { + trc("t=%v sockfd=%v buf=%v flags=%v, (%v:)", t, sockfd, buf, flags, origin(2)) + } panic(todo("")) } func Xshutdown(t *TLS, sockfd uint32, how int32) int32 { + if __ccgo_strace { + trc("t=%v sockfd=%v how=%v, (%v:)", t, sockfd, how, origin(2)) + } panic(todo("")) // if _, _, err := unix.Syscall(unix.SYS_SHUTDOWN, uintptr(sockfd), uintptr(how), 0); err != 0 { // t.setErrno(err) @@ -474,41 +548,78 @@ func Xshutdown(t *TLS, sockfd uint32, how int32) int32 { } func Xgetpeername(t *TLS, sockfd uint32, addr uintptr, addrlen uintptr) int32 { + if __ccgo_strace { + trc("t=%v sockfd=%v addr=%v addrlen=%v, (%v:)", t, sockfd, addr, addrlen, origin(2)) + } panic(todo("")) } func Xgetsockname(t *TLS, sockfd uint32, addr, addrlen uintptr) int32 { + if __ccgo_strace { + trc("t=%v sockfd=%v addrlen=%v, (%v:)", t, sockfd, addrlen, origin(2)) + } panic(todo("")) } func Xsocket(t *TLS, domain, type1, protocol int32) uint32 { + if __ccgo_strace { + trc("t=%v protocol=%v, (%v:)", t, protocol, origin(2)) + } panic(todo("")) } func Xbind(t *TLS, sockfd uint32, addr uintptr, addrlen int32) int32 { + if __ccgo_strace { + trc("t=%v sockfd=%v addr=%v addrlen=%v, (%v:)", t, sockfd, addr, addrlen, origin(2)) + } panic(todo("")) } func Xconnect(t *TLS, sockfd uint32, addr uintptr, addrlen int32) int32 { + if __ccgo_strace { + trc("t=%v sockfd=%v addr=%v addrlen=%v, (%v:)", t, sockfd, addr, addrlen, origin(2)) + } panic(todo("")) } func Xlisten(t *TLS, sockfd uint32, backlog int32) int32 { + if __ccgo_strace { + trc("t=%v sockfd=%v backlog=%v, (%v:)", t, sockfd, backlog, origin(2)) + } panic(todo("")) } func Xaccept(t *TLS, sockfd uint32, addr uintptr, addrlen uintptr) uint32 { + if __ccgo_strace { + trc("t=%v sockfd=%v addr=%v addrlen=%v, (%v:)", t, sockfd, addr, addrlen, origin(2)) + } panic(todo("")) } // struct tm *_localtime32( const __time32_t *sourceTime ); -func X_localtime32(t *TLS, sourceTime uintptr) uintptr { - panic(todo("")) +func X_localtime32(_ *TLS, sourceTime uintptr) uintptr { + loc := getLocalLocation() + ut := *(*time.Time_t)(unsafe.Pointer(sourceTime)) + t := gotime.Unix(int64(ut), 0).In(loc) + localtime.Ftm_sec = int32(t.Second()) + localtime.Ftm_min = int32(t.Minute()) + localtime.Ftm_hour = int32(t.Hour()) + localtime.Ftm_mday = int32(t.Day()) + localtime.Ftm_mon = int32(t.Month() - 1) + localtime.Ftm_year = int32(t.Year() - 1900) + localtime.Ftm_wday = int32(t.Weekday()) + localtime.Ftm_yday = int32(t.YearDay()) + localtime.Ftm_isdst = Bool32(isTimeDST(t)) + return uintptr(unsafe.Pointer(&localtime)) } // struct tm *_gmtime32( const __time32_t *sourceTime ); func X_gmtime32(t *TLS, sourceTime uintptr) uintptr { - panic(todo("")) + r0, _, err := procGmtime32.Call(uintptr(sourceTime)) + if err != windows.NOERROR { + t.setErrno(err) + } + return uintptr(r0) } // LONG SetWindowLongW( @@ -519,6 +630,9 @@ func X_gmtime32(t *TLS, sourceTime uintptr) uintptr { // // ); func XSetWindowLongW(t *TLS, hwnd uintptr, nIndex int32, dwNewLong long) long { + if __ccgo_strace { + trc("t=%v hwnd=%v nIndex=%v dwNewLong=%v, (%v:)", t, hwnd, nIndex, dwNewLong, origin(2)) + } panic(todo("")) } @@ -529,6 +643,9 @@ func XSetWindowLongW(t *TLS, hwnd uintptr, nIndex int32, dwNewLong long) long { // // ); func XGetWindowLongW(t *TLS, hwnd uintptr, nIndex int32) long { + if __ccgo_strace { + trc("t=%v hwnd=%v nIndex=%v, (%v:)", t, hwnd, nIndex, origin(2)) + } panic(todo("")) } @@ -555,14 +672,17 @@ func XSendMessageTimeoutW(t *TLS, _ ...interface{}) int32 { // // ); func X_fstat(t *TLS, fd int32, buffer uintptr) int32 { + if __ccgo_strace { + trc("t=%v fd=%v buffer=%v, (%v:)", t, fd, buffer, origin(2)) + } f, ok := fdToFile(fd) if !ok { t.setErrno(EBADF) return -1 } - var d syscall.ByHandleFileInformation - err := syscall.GetFileInformationByHandle(f.Handle, &d) + var d windows.ByHandleFileInformation + err := windows.GetFileInformationByHandle(f.Handle, &d) if err != nil { t.setErrno(EBADF) return -1 @@ -581,3 +701,41 @@ func X_fstat(t *TLS, fd int32, buffer uintptr) int32 { return 0 } + +func Xstrspn(tls *TLS, s uintptr, c uintptr) size_t { /* strspn.c:6:8: */ + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + } + bp := tls.Alloc(32) + defer tls.Free(32) + + var a uintptr = s + *(*[8]size_t)(unsafe.Pointer(bp /* byteset */)) = [8]size_t{0: size_t(0)} + + if !(int32(*(*int8)(unsafe.Pointer(c))) != 0) { + return size_t(0) + } + if !(int32(*(*int8)(unsafe.Pointer(c + 1))) != 0) { + for ; int32(*(*int8)(unsafe.Pointer(s))) == int32(*(*int8)(unsafe.Pointer(c))); s++ { + } + return size_t((int32(s) - int32(a)) / 1) + } + + for ; *(*int8)(unsafe.Pointer(c)) != 0 && AssignOrPtrUint32(bp+uintptr(size_t(*(*uint8)(unsafe.Pointer(c)))/(uint32(8)*uint32(unsafe.Sizeof(size_t(0)))))*4, size_t(size_t(1))<<(size_t(*(*uint8)(unsafe.Pointer(c)))%(uint32(8)*uint32(unsafe.Sizeof(size_t(0)))))) != 0; c++ { + } + for ; *(*int8)(unsafe.Pointer(s)) != 0 && *(*size_t)(unsafe.Pointer(bp + uintptr(size_t(*(*uint8)(unsafe.Pointer(s)))/(uint32(8)*uint32(unsafe.Sizeof(size_t(0)))))*4))&(size_t(size_t(1))<<(size_t(*(*uint8)(unsafe.Pointer(s)))%(uint32(8)*uint32(unsafe.Sizeof(size_t(0)))))) != 0; s++ { + } + return size_t((int32(s) - int32(a)) / 1) +} + +// Defined in libc_windows_386.s +func callStrtod(fn uintptr, s uintptr, p uintptr) float64 + +func Xstrtod(t *TLS, s uintptr, p uintptr) float64 { + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", t, s, p, origin(2)) + } + // We use the assembly bridge to call the function pointer directly. + // This ensures we capture the float return value from ST(0). + return callStrtod(procStrtod.Addr(), s, p) +} diff --git a/vendor/modernc.org/libc/libc_windows_386.s b/vendor/modernc.org/libc/libc_windows_386.s new file mode 100644 index 000000000..3ace6f913 --- /dev/null +++ b/vendor/modernc.org/libc/libc_windows_386.s @@ -0,0 +1,29 @@ +#include "textflag.h" + +// func callStrtod(fn uintptr, s uintptr, p uintptr) float64 +TEXT ·callStrtod(SB), NOSPLIT, $0 + // 1. Initialize FPU + // This ensures the x87 stack is empty (Tag Word = FFFF). + // Without this, garbage on the stack causes the result push to overflow -> NaN. + FINIT + + // 2. Load arguments from Go stack + MOVL fn+0(FP), AX // Function pointer + MOVL s+4(FP), CX // String pointer + MOVL p+8(FP), DX // Endptr pointer + + // 3. Setup C stack for __cdecl + SUBL $8, SP + MOVL DX, 4(SP) // Push endptr + MOVL CX, 0(SP) // Push str + + // 4. Call the C function + CALL AX + + // 5. Clean up stack + ADDL $8, SP + + // 6. Store FPU result (ST0) into Go return slot + FMOVD F0, ret+12(FP) + + RET diff --git a/vendor/modernc.org/libc/libc_windows_amd64.go b/vendor/modernc.org/libc/libc_windows_amd64.go index 2b73ab4cc..932c09b98 100644 --- a/vendor/modernc.org/libc/libc_windows_amd64.go +++ b/vendor/modernc.org/libc/libc_windows_amd64.go @@ -5,16 +5,21 @@ package libc // import "modernc.org/libc" import ( - "modernc.org/libc/errno" - "modernc.org/libc/sys/types" + "golang.org/x/sys/windows" + "math" "os" "strings" - "syscall" "unsafe" + + "modernc.org/libc/errno" + "modernc.org/libc/sys/types" ) // int sigaction(int signum, const struct sigaction *act, struct sigaction *oldact); func Xsigaction(t *TLS, signum int32, act, oldact uintptr) int32 { + if __ccgo_strace { + trc("t=%v signum=%v oldact=%v, (%v:)", t, signum, oldact, origin(2)) + } panic(todo("")) // musl/arch/x86_64/ksigaction.h // @@ -60,6 +65,9 @@ func Xsigaction(t *TLS, signum int32, act, oldact uintptr) int32 { // int fcntl(int fd, int cmd, ... /* arg */ ); func Xfcntl64(t *TLS, fd, cmd int32, args uintptr) int32 { + if __ccgo_strace { + trc("t=%v cmd=%v args=%v, (%v:)", t, cmd, args, origin(2)) + } panic(todo("")) // var arg uintptr // if args != 0 { @@ -82,6 +90,9 @@ func Xfcntl64(t *TLS, fd, cmd int32, args uintptr) int32 { // int lstat(const char *pathname, struct stat *statbuf); func Xlstat64(t *TLS, pathname, statbuf uintptr) int32 { + if __ccgo_strace { + trc("t=%v statbuf=%v, (%v:)", t, statbuf, origin(2)) + } panic(todo("")) // if _, _, err := unix.Syscall(unix.SYS_LSTAT, pathname, statbuf, 0); err != 0 { // if dmesgs { @@ -99,6 +110,9 @@ func Xlstat64(t *TLS, pathname, statbuf uintptr) int32 { // int stat(const char *pathname, struct stat *statbuf); func Xstat64(t *TLS, pathname, statbuf uintptr) int32 { + if __ccgo_strace { + trc("t=%v statbuf=%v, (%v:)", t, statbuf, origin(2)) + } panic(todo("")) // if _, _, err := unix.Syscall(unix.SYS_STAT, pathname, statbuf, 0); err != 0 { // if dmesgs { @@ -116,6 +130,9 @@ func Xstat64(t *TLS, pathname, statbuf uintptr) int32 { // int fstat(int fd, struct stat *statbuf); func Xfstat64(t *TLS, fd int32, statbuf uintptr) int32 { + if __ccgo_strace { + trc("t=%v fd=%v statbuf=%v, (%v:)", t, fd, statbuf, origin(2)) + } panic(todo("")) // if _, _, err := unix.Syscall(unix.SYS_FSTAT, uintptr(fd), statbuf, 0); err != 0 { // if dmesgs { @@ -132,11 +149,17 @@ func Xfstat64(t *TLS, fd int32, statbuf uintptr) int32 { } func Xmmap(t *TLS, addr uintptr, length types.Size_t, prot, flags, fd int32, offset types.Off_t) uintptr { + if __ccgo_strace { + trc("t=%v addr=%v length=%v fd=%v offset=%v, (%v:)", t, addr, length, fd, offset, origin(2)) + } return Xmmap64(t, addr, length, prot, flags, fd, offset) } // void *mmap(void *addr, size_t length, int prot, int flags, int fd, off_t offset); func Xmmap64(t *TLS, addr uintptr, length types.Size_t, prot, flags, fd int32, offset types.Off_t) uintptr { + if __ccgo_strace { + trc("t=%v addr=%v length=%v fd=%v offset=%v, (%v:)", t, addr, length, fd, offset, origin(2)) + } panic(todo("")) // data, _, err := unix.Syscall6(unix.SYS_MMAP, addr, uintptr(length), uintptr(prot), uintptr(flags), uintptr(fd), uintptr(offset)) // if err != 0 { @@ -155,6 +178,9 @@ func Xmmap64(t *TLS, addr uintptr, length types.Size_t, prot, flags, fd int32, o // void *mremap(void *old_address, size_t old_size, size_t new_size, int flags, ... /* void *new_address */); func Xmremap(t *TLS, old_address uintptr, old_size, new_size types.Size_t, flags int32, args uintptr) uintptr { + if __ccgo_strace { + trc("t=%v old_address=%v new_size=%v flags=%v args=%v, (%v:)", t, old_address, new_size, flags, args, origin(2)) + } panic(todo("")) // var arg uintptr // if args != 0 { @@ -177,6 +203,9 @@ func Xmremap(t *TLS, old_address uintptr, old_size, new_size types.Size_t, flags // int ftruncate(int fd, off_t length); func Xftruncate64(t *TLS, fd int32, length types.Off_t) int32 { + if __ccgo_strace { + trc("t=%v fd=%v length=%v, (%v:)", t, fd, length, origin(2)) + } panic(todo("")) // if _, _, err := unix.Syscall(unix.SYS_FTRUNCATE, uintptr(fd), uintptr(length), 0); err != 0 { // if dmesgs { @@ -194,6 +223,9 @@ func Xftruncate64(t *TLS, fd int32, length types.Off_t) int32 { // off64_t lseek64(int fd, off64_t offset, int whence); func Xlseek64(t *TLS, fd int32, offset types.Off_t, whence int32) types.Off_t { + if __ccgo_strace { + trc("t=%v fd=%v offset=%v whence=%v, (%v:)", t, fd, offset, whence, origin(2)) + } f, ok := fdToFile(fd) if !ok { @@ -201,7 +233,7 @@ func Xlseek64(t *TLS, fd int32, offset types.Off_t, whence int32) types.Off_t { return -1 } - n, err := syscall.Seek(f.Handle, offset, int(whence)) + n, err := windows.Seek(f.Handle, offset, int(whence)) if err != nil { if dmesgs { dmesg("%v: fd %v, off %#x, whence %v: %v", origin(1), f._fd, offset, whenceStr(whence), n) @@ -218,6 +250,9 @@ func Xlseek64(t *TLS, fd int32, offset types.Off_t, whence int32) types.Off_t { // int utime(const char *filename, const struct utimbuf *times); func Xutime(t *TLS, filename, times uintptr) int32 { + if __ccgo_strace { + trc("t=%v times=%v, (%v:)", t, times, origin(2)) + } panic(todo("")) // if _, _, err := unix.Syscall(unix.SYS_UTIME, filename, times, 0); err != 0 { // t.setErrno(err) @@ -229,6 +264,9 @@ func Xutime(t *TLS, filename, times uintptr) int32 { // unsigned int alarm(unsigned int seconds); func Xalarm(t *TLS, seconds uint32) uint32 { + if __ccgo_strace { + trc("t=%v seconds=%v, (%v:)", t, seconds, origin(2)) + } panic(todo("")) // n, _, err := unix.Syscall(unix.SYS_ALARM, uintptr(seconds), 0, 0) // if err != 0 { @@ -240,6 +278,9 @@ func Xalarm(t *TLS, seconds uint32) uint32 { // time_t time(time_t *tloc); func Xtime(t *TLS, tloc uintptr) types.Time_t { + if __ccgo_strace { + trc("t=%v tloc=%v, (%v:)", t, tloc, origin(2)) + } panic(todo("")) // n, _, err := unix.Syscall(unix.SYS_TIME, tloc, 0, 0) // if err != 0 { @@ -255,6 +296,9 @@ func Xtime(t *TLS, tloc uintptr) types.Time_t { // int getrlimit(int resource, struct rlimit *rlim); func Xgetrlimit64(t *TLS, resource int32, rlim uintptr) int32 { + if __ccgo_strace { + trc("t=%v resource=%v rlim=%v, (%v:)", t, resource, rlim, origin(2)) + } panic(todo("")) // if _, _, err := unix.Syscall(unix.SYS_GETRLIMIT, uintptr(resource), uintptr(rlim), 0); err != 0 { // t.setErrno(err) @@ -266,6 +310,9 @@ func Xgetrlimit64(t *TLS, resource int32, rlim uintptr) int32 { // int mkdir(const char *path, mode_t mode); func Xmkdir(t *TLS, path uintptr, mode types.Mode_t) int32 { + if __ccgo_strace { + trc("t=%v path=%v mode=%v, (%v:)", t, path, mode, origin(2)) + } panic(todo("")) // if _, _, err := unix.Syscall(unix.SYS_MKDIR, path, uintptr(mode), 0); err != 0 { // t.setErrno(err) @@ -280,6 +327,9 @@ func Xmkdir(t *TLS, path uintptr, mode types.Mode_t) int32 { // int symlink(const char *target, const char *linkpath); func Xsymlink(t *TLS, target, linkpath uintptr) int32 { + if __ccgo_strace { + trc("t=%v linkpath=%v, (%v:)", t, linkpath, origin(2)) + } panic(todo("")) // if _, _, err := unix.Syscall(unix.SYS_SYMLINK, target, linkpath, 0); err != 0 { // t.setErrno(err) @@ -294,6 +344,9 @@ func Xsymlink(t *TLS, target, linkpath uintptr) int32 { // int utimes(const char *filename, const struct timeval times[2]); func Xutimes(t *TLS, filename, times uintptr) int32 { + if __ccgo_strace { + trc("t=%v times=%v, (%v:)", t, times, origin(2)) + } panic(todo("")) // if _, _, err := unix.Syscall(unix.SYS_UTIMES, filename, times, 0); err != 0 { // t.setErrno(err) @@ -308,8 +361,11 @@ func Xutimes(t *TLS, filename, times uintptr) int32 { // int unlink(const char *pathname); func Xunlink(t *TLS, pathname uintptr) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v, (%v:)", t, pathname, origin(2)) + } - err := syscall.DeleteFile((*uint16)(unsafe.Pointer(pathname))) + err := windows.DeleteFile((*uint16)(unsafe.Pointer(pathname))) if err != nil { t.setErrno(err) return -1 @@ -322,25 +378,11 @@ func Xunlink(t *TLS, pathname uintptr) int32 { return 0 } -// int access(const char *pathname, int mode); -func Xaccess(t *TLS, pathname uintptr, mode int32) int32 { - panic(todo("")) - // if _, _, err := unix.Syscall(unix.SYS_ACCESS, pathname, uintptr(mode), 0); err != 0 { - // if dmesgs { - // dmesg("%v: %q: %v", origin(1), GoString(pathname), err) - // } - // t.setErrno(err) - // return -1 - // } - - // if dmesgs { - // dmesg("%v: %q %#o: ok", origin(1), GoString(pathname), mode) - // } - // return 0 -} - // int rmdir(const char *pathname); func Xrmdir(t *TLS, pathname uintptr) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v, (%v:)", t, pathname, origin(2)) + } panic(todo("")) // if _, _, err := unix.Syscall(unix.SYS_RMDIR, pathname, 0, 0); err != 0 { // t.setErrno(err) @@ -355,6 +397,9 @@ func Xrmdir(t *TLS, pathname uintptr) int32 { // int mknod(const char *pathname, mode_t mode, dev_t dev); func Xmknod(t *TLS, pathname uintptr, mode types.Mode_t, dev types.Dev_t) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v mode=%v dev=%v, (%v:)", t, pathname, mode, dev, origin(2)) + } panic(todo("")) // if _, _, err := unix.Syscall(unix.SYS_MKNOD, pathname, uintptr(mode), uintptr(dev)); err != 0 { // t.setErrno(err) @@ -377,6 +422,9 @@ func Xmknod(t *TLS, pathname uintptr, mode types.Mode_t, dev types.Dev_t) int32 // int link(const char *oldpath, const char *newpath); func Xlink(t *TLS, oldpath, newpath uintptr) int32 { + if __ccgo_strace { + trc("t=%v newpath=%v, (%v:)", t, newpath, origin(2)) + } panic(todo("")) // if _, _, err := unix.Syscall(unix.SYS_LINK, oldpath, newpath, 0); err != 0 { // t.setErrno(err) @@ -388,6 +436,9 @@ func Xlink(t *TLS, oldpath, newpath uintptr) int32 { // int pipe(int pipefd[2]); func Xpipe(t *TLS, pipefd uintptr) int32 { + if __ccgo_strace { + trc("t=%v pipefd=%v, (%v:)", t, pipefd, origin(2)) + } panic(todo("")) // if _, _, err := unix.Syscall(unix.SYS_PIPE, pipefd, 0, 0); err != 0 { // t.setErrno(err) @@ -399,6 +450,9 @@ func Xpipe(t *TLS, pipefd uintptr) int32 { // int dup2(int oldfd, int newfd); func Xdup2(t *TLS, oldfd, newfd int32) int32 { + if __ccgo_strace { + trc("t=%v newfd=%v, (%v:)", t, newfd, origin(2)) + } panic(todo("")) // n, _, err := unix.Syscall(unix.SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0) // if err != 0 { @@ -411,6 +465,9 @@ func Xdup2(t *TLS, oldfd, newfd int32) int32 { // ssize_t readlink(const char *restrict path, char *restrict buf, size_t bufsize); func Xreadlink(t *TLS, path, buf uintptr, bufsize types.Size_t) types.Ssize_t { + if __ccgo_strace { + trc("t=%v buf=%v bufsize=%v, (%v:)", t, buf, bufsize, origin(2)) + } panic(todo("")) // n, _, err := unix.Syscall(unix.SYS_READLINK, path, buf, uintptr(bufsize)) // if err != 0 { @@ -423,6 +480,9 @@ func Xreadlink(t *TLS, path, buf uintptr, bufsize types.Size_t) types.Ssize_t { // FILE *fopen64(const char *pathname, const char *mode); func Xfopen64(t *TLS, pathname, mode uintptr) uintptr { + if __ccgo_strace { + trc("t=%v mode=%v, (%v:)", t, mode, origin(2)) + } m := strings.ReplaceAll(GoString(mode), "b", "") var flags int @@ -443,7 +503,7 @@ func Xfopen64(t *TLS, pathname, mode uintptr) uintptr { panic(m) } //TODO- flags |= fcntl.O_LARGEFILE - h, err := syscall.Open(GoString(pathname), int(flags), uint32(0666)) + h, err := windows.Open(GoString(pathname), int(flags), uint32(0666)) if err != nil { t.setErrno(err) return 0 @@ -453,48 +513,78 @@ func Xfopen64(t *TLS, pathname, mode uintptr) uintptr { if p != 0 { return p } - _ = syscall.Close(h) + _ = windows.Close(h) t.setErrno(errno.ENOMEM) return 0 } func Xrecv(t *TLS, sockfd uint64, buf uintptr, len, flags int32) int32 { + if __ccgo_strace { + trc("t=%v sockfd=%v buf=%v flags=%v, (%v:)", t, sockfd, buf, flags, origin(2)) + } panic(todo("")) } func Xsend(t *TLS, sockfd uint64, buf uintptr, len, flags int32) int32 { + if __ccgo_strace { + trc("t=%v sockfd=%v buf=%v flags=%v, (%v:)", t, sockfd, buf, flags, origin(2)) + } panic(todo("")) } func Xshutdown(t *TLS, sockfd uint64, how int32) int32 { + if __ccgo_strace { + trc("t=%v sockfd=%v how=%v, (%v:)", t, sockfd, how, origin(2)) + } panic(todo("")) } func Xgetpeername(t *TLS, sockfd uint64, addr uintptr, addrlen uintptr) int32 { + if __ccgo_strace { + trc("t=%v sockfd=%v addr=%v addrlen=%v, (%v:)", t, sockfd, addr, addrlen, origin(2)) + } panic(todo("")) } func Xgetsockname(t *TLS, sockfd uint64, addr, addrlen uintptr) int32 { + if __ccgo_strace { + trc("t=%v sockfd=%v addrlen=%v, (%v:)", t, sockfd, addrlen, origin(2)) + } panic(todo("")) } func Xsocket(t *TLS, domain, type1, protocol int32) uint64 { + if __ccgo_strace { + trc("t=%v protocol=%v, (%v:)", t, protocol, origin(2)) + } panic(todo("")) } func Xbind(t *TLS, sockfd uint64, addr uintptr, addrlen int32) int32 { + if __ccgo_strace { + trc("t=%v sockfd=%v addr=%v addrlen=%v, (%v:)", t, sockfd, addr, addrlen, origin(2)) + } panic(todo("")) } func Xconnect(t *TLS, sockfd uint64, addr uintptr, addrlen int32) int32 { + if __ccgo_strace { + trc("t=%v sockfd=%v addr=%v addrlen=%v, (%v:)", t, sockfd, addr, addrlen, origin(2)) + } panic(todo("")) } func Xlisten(t *TLS, sockfd uint64, backlog int32) int32 { + if __ccgo_strace { + trc("t=%v sockfd=%v backlog=%v, (%v:)", t, sockfd, backlog, origin(2)) + } panic(todo("")) } func Xaccept(t *TLS, sockfd uint64, addr uintptr, addrlen uintptr) uint64 { + if __ccgo_strace { + trc("t=%v sockfd=%v addr=%v addrlen=%v, (%v:)", t, sockfd, addr, addrlen, origin(2)) + } panic(todo("")) } @@ -513,3 +603,40 @@ func XDefWindowProcW(t *TLS, _ ...interface{}) int64 { func XSendMessageTimeoutW(t *TLS, _ ...interface{}) int64 { panic(todo("")) } + +func Xstrspn(tls *TLS, s uintptr, c uintptr) size_t { /* strspn.c:6:8: */ + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + } + bp := tls.Alloc(32) + defer tls.Free(32) + + var a uintptr = s + *(*[4]size_t)(unsafe.Pointer(bp /* byteset */)) = [4]size_t{0: uint64(0)} + + if !(int32(*(*int8)(unsafe.Pointer(c))) != 0) { + return uint64(0) + } + if !(int32(*(*int8)(unsafe.Pointer(c + 1))) != 0) { + for ; int32(*(*int8)(unsafe.Pointer(s))) == int32(*(*int8)(unsafe.Pointer(c))); s++ { + } + return size_t((int64(s) - int64(a)) / 1) + } + + for ; *(*int8)(unsafe.Pointer(c)) != 0 && AssignOrPtrUint64(bp+uintptr(size_t(*(*uint8)(unsafe.Pointer(c)))/(uint64(8)*uint64(unsafe.Sizeof(size_t(0)))))*8, size_t(uint64(1))<<(size_t(*(*uint8)(unsafe.Pointer(c)))%(uint64(8)*uint64(unsafe.Sizeof(size_t(0)))))) != 0; c++ { + } + for ; *(*int8)(unsafe.Pointer(s)) != 0 && *(*size_t)(unsafe.Pointer(bp + uintptr(size_t(*(*uint8)(unsafe.Pointer(s)))/(uint64(8)*uint64(unsafe.Sizeof(size_t(0)))))*8))&(size_t(uint64(1))<<(size_t(*(*uint8)(unsafe.Pointer(s)))%(uint64(8)*uint64(unsafe.Sizeof(size_t(0)))))) != 0; s++ { + } + return size_t((int64(s) - int64(a)) / 1) +} + +func Xstrtod(t *TLS, s uintptr, p uintptr) float64 { + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", t, s, p, origin(2)) + } + _, r2, err := procStrtod.Call(uintptr(s), uintptr(p)) + if err != windows.NOERROR { + t.setErrno(err) + } + return math.Float64frombits(uint64(r2)) +} diff --git a/vendor/modernc.org/libc/libc_windows_arm64.go b/vendor/modernc.org/libc/libc_windows_arm64.go index 2b73ab4cc..d5c2c115e 100644 --- a/vendor/modernc.org/libc/libc_windows_arm64.go +++ b/vendor/modernc.org/libc/libc_windows_arm64.go @@ -5,16 +5,19 @@ package libc // import "modernc.org/libc" import ( + "golang.org/x/sys/windows" "modernc.org/libc/errno" "modernc.org/libc/sys/types" "os" "strings" - "syscall" "unsafe" ) // int sigaction(int signum, const struct sigaction *act, struct sigaction *oldact); func Xsigaction(t *TLS, signum int32, act, oldact uintptr) int32 { + if __ccgo_strace { + trc("t=%v signum=%v oldact=%v, (%v:)", t, signum, oldact, origin(2)) + } panic(todo("")) // musl/arch/x86_64/ksigaction.h // @@ -60,6 +63,9 @@ func Xsigaction(t *TLS, signum int32, act, oldact uintptr) int32 { // int fcntl(int fd, int cmd, ... /* arg */ ); func Xfcntl64(t *TLS, fd, cmd int32, args uintptr) int32 { + if __ccgo_strace { + trc("t=%v cmd=%v args=%v, (%v:)", t, cmd, args, origin(2)) + } panic(todo("")) // var arg uintptr // if args != 0 { @@ -82,6 +88,9 @@ func Xfcntl64(t *TLS, fd, cmd int32, args uintptr) int32 { // int lstat(const char *pathname, struct stat *statbuf); func Xlstat64(t *TLS, pathname, statbuf uintptr) int32 { + if __ccgo_strace { + trc("t=%v statbuf=%v, (%v:)", t, statbuf, origin(2)) + } panic(todo("")) // if _, _, err := unix.Syscall(unix.SYS_LSTAT, pathname, statbuf, 0); err != 0 { // if dmesgs { @@ -99,6 +108,9 @@ func Xlstat64(t *TLS, pathname, statbuf uintptr) int32 { // int stat(const char *pathname, struct stat *statbuf); func Xstat64(t *TLS, pathname, statbuf uintptr) int32 { + if __ccgo_strace { + trc("t=%v statbuf=%v, (%v:)", t, statbuf, origin(2)) + } panic(todo("")) // if _, _, err := unix.Syscall(unix.SYS_STAT, pathname, statbuf, 0); err != 0 { // if dmesgs { @@ -116,6 +128,9 @@ func Xstat64(t *TLS, pathname, statbuf uintptr) int32 { // int fstat(int fd, struct stat *statbuf); func Xfstat64(t *TLS, fd int32, statbuf uintptr) int32 { + if __ccgo_strace { + trc("t=%v fd=%v statbuf=%v, (%v:)", t, fd, statbuf, origin(2)) + } panic(todo("")) // if _, _, err := unix.Syscall(unix.SYS_FSTAT, uintptr(fd), statbuf, 0); err != 0 { // if dmesgs { @@ -132,11 +147,17 @@ func Xfstat64(t *TLS, fd int32, statbuf uintptr) int32 { } func Xmmap(t *TLS, addr uintptr, length types.Size_t, prot, flags, fd int32, offset types.Off_t) uintptr { + if __ccgo_strace { + trc("t=%v addr=%v length=%v fd=%v offset=%v, (%v:)", t, addr, length, fd, offset, origin(2)) + } return Xmmap64(t, addr, length, prot, flags, fd, offset) } // void *mmap(void *addr, size_t length, int prot, int flags, int fd, off_t offset); func Xmmap64(t *TLS, addr uintptr, length types.Size_t, prot, flags, fd int32, offset types.Off_t) uintptr { + if __ccgo_strace { + trc("t=%v addr=%v length=%v fd=%v offset=%v, (%v:)", t, addr, length, fd, offset, origin(2)) + } panic(todo("")) // data, _, err := unix.Syscall6(unix.SYS_MMAP, addr, uintptr(length), uintptr(prot), uintptr(flags), uintptr(fd), uintptr(offset)) // if err != 0 { @@ -155,6 +176,9 @@ func Xmmap64(t *TLS, addr uintptr, length types.Size_t, prot, flags, fd int32, o // void *mremap(void *old_address, size_t old_size, size_t new_size, int flags, ... /* void *new_address */); func Xmremap(t *TLS, old_address uintptr, old_size, new_size types.Size_t, flags int32, args uintptr) uintptr { + if __ccgo_strace { + trc("t=%v old_address=%v new_size=%v flags=%v args=%v, (%v:)", t, old_address, new_size, flags, args, origin(2)) + } panic(todo("")) // var arg uintptr // if args != 0 { @@ -177,6 +201,9 @@ func Xmremap(t *TLS, old_address uintptr, old_size, new_size types.Size_t, flags // int ftruncate(int fd, off_t length); func Xftruncate64(t *TLS, fd int32, length types.Off_t) int32 { + if __ccgo_strace { + trc("t=%v fd=%v length=%v, (%v:)", t, fd, length, origin(2)) + } panic(todo("")) // if _, _, err := unix.Syscall(unix.SYS_FTRUNCATE, uintptr(fd), uintptr(length), 0); err != 0 { // if dmesgs { @@ -194,6 +221,9 @@ func Xftruncate64(t *TLS, fd int32, length types.Off_t) int32 { // off64_t lseek64(int fd, off64_t offset, int whence); func Xlseek64(t *TLS, fd int32, offset types.Off_t, whence int32) types.Off_t { + if __ccgo_strace { + trc("t=%v fd=%v offset=%v whence=%v, (%v:)", t, fd, offset, whence, origin(2)) + } f, ok := fdToFile(fd) if !ok { @@ -201,7 +231,7 @@ func Xlseek64(t *TLS, fd int32, offset types.Off_t, whence int32) types.Off_t { return -1 } - n, err := syscall.Seek(f.Handle, offset, int(whence)) + n, err := windows.Seek(f.Handle, offset, int(whence)) if err != nil { if dmesgs { dmesg("%v: fd %v, off %#x, whence %v: %v", origin(1), f._fd, offset, whenceStr(whence), n) @@ -218,6 +248,9 @@ func Xlseek64(t *TLS, fd int32, offset types.Off_t, whence int32) types.Off_t { // int utime(const char *filename, const struct utimbuf *times); func Xutime(t *TLS, filename, times uintptr) int32 { + if __ccgo_strace { + trc("t=%v times=%v, (%v:)", t, times, origin(2)) + } panic(todo("")) // if _, _, err := unix.Syscall(unix.SYS_UTIME, filename, times, 0); err != 0 { // t.setErrno(err) @@ -229,6 +262,9 @@ func Xutime(t *TLS, filename, times uintptr) int32 { // unsigned int alarm(unsigned int seconds); func Xalarm(t *TLS, seconds uint32) uint32 { + if __ccgo_strace { + trc("t=%v seconds=%v, (%v:)", t, seconds, origin(2)) + } panic(todo("")) // n, _, err := unix.Syscall(unix.SYS_ALARM, uintptr(seconds), 0, 0) // if err != 0 { @@ -240,6 +276,9 @@ func Xalarm(t *TLS, seconds uint32) uint32 { // time_t time(time_t *tloc); func Xtime(t *TLS, tloc uintptr) types.Time_t { + if __ccgo_strace { + trc("t=%v tloc=%v, (%v:)", t, tloc, origin(2)) + } panic(todo("")) // n, _, err := unix.Syscall(unix.SYS_TIME, tloc, 0, 0) // if err != 0 { @@ -255,6 +294,9 @@ func Xtime(t *TLS, tloc uintptr) types.Time_t { // int getrlimit(int resource, struct rlimit *rlim); func Xgetrlimit64(t *TLS, resource int32, rlim uintptr) int32 { + if __ccgo_strace { + trc("t=%v resource=%v rlim=%v, (%v:)", t, resource, rlim, origin(2)) + } panic(todo("")) // if _, _, err := unix.Syscall(unix.SYS_GETRLIMIT, uintptr(resource), uintptr(rlim), 0); err != 0 { // t.setErrno(err) @@ -266,6 +308,9 @@ func Xgetrlimit64(t *TLS, resource int32, rlim uintptr) int32 { // int mkdir(const char *path, mode_t mode); func Xmkdir(t *TLS, path uintptr, mode types.Mode_t) int32 { + if __ccgo_strace { + trc("t=%v path=%v mode=%v, (%v:)", t, path, mode, origin(2)) + } panic(todo("")) // if _, _, err := unix.Syscall(unix.SYS_MKDIR, path, uintptr(mode), 0); err != 0 { // t.setErrno(err) @@ -280,6 +325,9 @@ func Xmkdir(t *TLS, path uintptr, mode types.Mode_t) int32 { // int symlink(const char *target, const char *linkpath); func Xsymlink(t *TLS, target, linkpath uintptr) int32 { + if __ccgo_strace { + trc("t=%v linkpath=%v, (%v:)", t, linkpath, origin(2)) + } panic(todo("")) // if _, _, err := unix.Syscall(unix.SYS_SYMLINK, target, linkpath, 0); err != 0 { // t.setErrno(err) @@ -294,6 +342,9 @@ func Xsymlink(t *TLS, target, linkpath uintptr) int32 { // int utimes(const char *filename, const struct timeval times[2]); func Xutimes(t *TLS, filename, times uintptr) int32 { + if __ccgo_strace { + trc("t=%v times=%v, (%v:)", t, times, origin(2)) + } panic(todo("")) // if _, _, err := unix.Syscall(unix.SYS_UTIMES, filename, times, 0); err != 0 { // t.setErrno(err) @@ -308,8 +359,11 @@ func Xutimes(t *TLS, filename, times uintptr) int32 { // int unlink(const char *pathname); func Xunlink(t *TLS, pathname uintptr) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v, (%v:)", t, pathname, origin(2)) + } - err := syscall.DeleteFile((*uint16)(unsafe.Pointer(pathname))) + err := windows.DeleteFile((*uint16)(unsafe.Pointer(pathname))) if err != nil { t.setErrno(err) return -1 @@ -322,25 +376,11 @@ func Xunlink(t *TLS, pathname uintptr) int32 { return 0 } -// int access(const char *pathname, int mode); -func Xaccess(t *TLS, pathname uintptr, mode int32) int32 { - panic(todo("")) - // if _, _, err := unix.Syscall(unix.SYS_ACCESS, pathname, uintptr(mode), 0); err != 0 { - // if dmesgs { - // dmesg("%v: %q: %v", origin(1), GoString(pathname), err) - // } - // t.setErrno(err) - // return -1 - // } - - // if dmesgs { - // dmesg("%v: %q %#o: ok", origin(1), GoString(pathname), mode) - // } - // return 0 -} - // int rmdir(const char *pathname); func Xrmdir(t *TLS, pathname uintptr) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v, (%v:)", t, pathname, origin(2)) + } panic(todo("")) // if _, _, err := unix.Syscall(unix.SYS_RMDIR, pathname, 0, 0); err != 0 { // t.setErrno(err) @@ -355,6 +395,9 @@ func Xrmdir(t *TLS, pathname uintptr) int32 { // int mknod(const char *pathname, mode_t mode, dev_t dev); func Xmknod(t *TLS, pathname uintptr, mode types.Mode_t, dev types.Dev_t) int32 { + if __ccgo_strace { + trc("t=%v pathname=%v mode=%v dev=%v, (%v:)", t, pathname, mode, dev, origin(2)) + } panic(todo("")) // if _, _, err := unix.Syscall(unix.SYS_MKNOD, pathname, uintptr(mode), uintptr(dev)); err != 0 { // t.setErrno(err) @@ -377,6 +420,9 @@ func Xmknod(t *TLS, pathname uintptr, mode types.Mode_t, dev types.Dev_t) int32 // int link(const char *oldpath, const char *newpath); func Xlink(t *TLS, oldpath, newpath uintptr) int32 { + if __ccgo_strace { + trc("t=%v newpath=%v, (%v:)", t, newpath, origin(2)) + } panic(todo("")) // if _, _, err := unix.Syscall(unix.SYS_LINK, oldpath, newpath, 0); err != 0 { // t.setErrno(err) @@ -388,6 +434,9 @@ func Xlink(t *TLS, oldpath, newpath uintptr) int32 { // int pipe(int pipefd[2]); func Xpipe(t *TLS, pipefd uintptr) int32 { + if __ccgo_strace { + trc("t=%v pipefd=%v, (%v:)", t, pipefd, origin(2)) + } panic(todo("")) // if _, _, err := unix.Syscall(unix.SYS_PIPE, pipefd, 0, 0); err != 0 { // t.setErrno(err) @@ -399,6 +448,9 @@ func Xpipe(t *TLS, pipefd uintptr) int32 { // int dup2(int oldfd, int newfd); func Xdup2(t *TLS, oldfd, newfd int32) int32 { + if __ccgo_strace { + trc("t=%v newfd=%v, (%v:)", t, newfd, origin(2)) + } panic(todo("")) // n, _, err := unix.Syscall(unix.SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0) // if err != 0 { @@ -411,6 +463,9 @@ func Xdup2(t *TLS, oldfd, newfd int32) int32 { // ssize_t readlink(const char *restrict path, char *restrict buf, size_t bufsize); func Xreadlink(t *TLS, path, buf uintptr, bufsize types.Size_t) types.Ssize_t { + if __ccgo_strace { + trc("t=%v buf=%v bufsize=%v, (%v:)", t, buf, bufsize, origin(2)) + } panic(todo("")) // n, _, err := unix.Syscall(unix.SYS_READLINK, path, buf, uintptr(bufsize)) // if err != 0 { @@ -423,6 +478,9 @@ func Xreadlink(t *TLS, path, buf uintptr, bufsize types.Size_t) types.Ssize_t { // FILE *fopen64(const char *pathname, const char *mode); func Xfopen64(t *TLS, pathname, mode uintptr) uintptr { + if __ccgo_strace { + trc("t=%v mode=%v, (%v:)", t, mode, origin(2)) + } m := strings.ReplaceAll(GoString(mode), "b", "") var flags int @@ -443,7 +501,7 @@ func Xfopen64(t *TLS, pathname, mode uintptr) uintptr { panic(m) } //TODO- flags |= fcntl.O_LARGEFILE - h, err := syscall.Open(GoString(pathname), int(flags), uint32(0666)) + h, err := windows.Open(GoString(pathname), int(flags), uint32(0666)) if err != nil { t.setErrno(err) return 0 @@ -453,48 +511,78 @@ func Xfopen64(t *TLS, pathname, mode uintptr) uintptr { if p != 0 { return p } - _ = syscall.Close(h) + _ = windows.Close(h) t.setErrno(errno.ENOMEM) return 0 } func Xrecv(t *TLS, sockfd uint64, buf uintptr, len, flags int32) int32 { + if __ccgo_strace { + trc("t=%v sockfd=%v buf=%v flags=%v, (%v:)", t, sockfd, buf, flags, origin(2)) + } panic(todo("")) } func Xsend(t *TLS, sockfd uint64, buf uintptr, len, flags int32) int32 { + if __ccgo_strace { + trc("t=%v sockfd=%v buf=%v flags=%v, (%v:)", t, sockfd, buf, flags, origin(2)) + } panic(todo("")) } func Xshutdown(t *TLS, sockfd uint64, how int32) int32 { + if __ccgo_strace { + trc("t=%v sockfd=%v how=%v, (%v:)", t, sockfd, how, origin(2)) + } panic(todo("")) } func Xgetpeername(t *TLS, sockfd uint64, addr uintptr, addrlen uintptr) int32 { + if __ccgo_strace { + trc("t=%v sockfd=%v addr=%v addrlen=%v, (%v:)", t, sockfd, addr, addrlen, origin(2)) + } panic(todo("")) } func Xgetsockname(t *TLS, sockfd uint64, addr, addrlen uintptr) int32 { + if __ccgo_strace { + trc("t=%v sockfd=%v addrlen=%v, (%v:)", t, sockfd, addrlen, origin(2)) + } panic(todo("")) } func Xsocket(t *TLS, domain, type1, protocol int32) uint64 { + if __ccgo_strace { + trc("t=%v protocol=%v, (%v:)", t, protocol, origin(2)) + } panic(todo("")) } func Xbind(t *TLS, sockfd uint64, addr uintptr, addrlen int32) int32 { + if __ccgo_strace { + trc("t=%v sockfd=%v addr=%v addrlen=%v, (%v:)", t, sockfd, addr, addrlen, origin(2)) + } panic(todo("")) } func Xconnect(t *TLS, sockfd uint64, addr uintptr, addrlen int32) int32 { + if __ccgo_strace { + trc("t=%v sockfd=%v addr=%v addrlen=%v, (%v:)", t, sockfd, addr, addrlen, origin(2)) + } panic(todo("")) } func Xlisten(t *TLS, sockfd uint64, backlog int32) int32 { + if __ccgo_strace { + trc("t=%v sockfd=%v backlog=%v, (%v:)", t, sockfd, backlog, origin(2)) + } panic(todo("")) } func Xaccept(t *TLS, sockfd uint64, addr uintptr, addrlen uintptr) uint64 { + if __ccgo_strace { + trc("t=%v sockfd=%v addr=%v addrlen=%v, (%v:)", t, sockfd, addr, addrlen, origin(2)) + } panic(todo("")) } @@ -513,3 +601,39 @@ func XDefWindowProcW(t *TLS, _ ...interface{}) int64 { func XSendMessageTimeoutW(t *TLS, _ ...interface{}) int64 { panic(todo("")) } + +func Xstrspn(tls *TLS, s uintptr, c uintptr) size_t { /* strspn.c:6:8: */ + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + } + bp := tls.Alloc(32) + defer tls.Free(32) + + var a uintptr = s + *(*[4]size_t)(unsafe.Pointer(bp /* byteset */)) = [4]size_t{0: uint64(0)} + + if !(int32(*(*int8)(unsafe.Pointer(c))) != 0) { + return uint64(0) + } + if !(int32(*(*int8)(unsafe.Pointer(c + 1))) != 0) { + for ; int32(*(*int8)(unsafe.Pointer(s))) == int32(*(*int8)(unsafe.Pointer(c))); s++ { + } + return size_t((int64(s) - int64(a)) / 1) + } + + for ; *(*int8)(unsafe.Pointer(c)) != 0 && AssignOrPtrUint64(bp+uintptr(size_t(*(*uint8)(unsafe.Pointer(c)))/(uint64(8)*uint64(unsafe.Sizeof(size_t(0)))))*8, size_t(uint64(1))<<(size_t(*(*uint8)(unsafe.Pointer(c)))%(uint64(8)*uint64(unsafe.Sizeof(size_t(0)))))) != 0; c++ { + } + for ; *(*int8)(unsafe.Pointer(s)) != 0 && *(*size_t)(unsafe.Pointer(bp + uintptr(size_t(*(*uint8)(unsafe.Pointer(s)))/(uint64(8)*uint64(unsafe.Sizeof(size_t(0)))))*8))&(size_t(uint64(1))<<(size_t(*(*uint8)(unsafe.Pointer(s)))%(uint64(8)*uint64(unsafe.Sizeof(size_t(0)))))) != 0; s++ { + } + return size_t((int64(s) - int64(a)) / 1) +} + +// Defined in libc_windows_arm64.s +func callStrtod(fn uintptr, s uintptr, p uintptr) float64 + +func Xstrtod(t *TLS, s uintptr, p uintptr) float64 { + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", t, s, p, origin(2)) + } + return callStrtod(procStrtod.Addr(), s, p) +} diff --git a/vendor/modernc.org/libc/libc_windows_arm64.s b/vendor/modernc.org/libc/libc_windows_arm64.s new file mode 100644 index 000000000..0ded6f498 --- /dev/null +++ b/vendor/modernc.org/libc/libc_windows_arm64.s @@ -0,0 +1,20 @@ +#include "textflag.h" + +// func callStrtod(fn uintptr, s uintptr, p uintptr) float64 +TEXT ·callStrtod(SB), NOSPLIT, $0 + // 1. Load arguments from Go stack + // Go passes args on stack for ABI0 (assembly functions). + MOVD fn+0(FP), R2 // Function address (use R2 as temp) + MOVD s+8(FP), R0 // Arg 1: str -> x0 (R0 in Go ASM) + MOVD p+16(FP), R1 // Arg 2: endptr -> x1 (R1 in Go ASM) + + // 2. Call the C function + // BL (Branch with Link) to the address in R2 + CALL R2 + + // 3. Handle Return Value + // C returns double in d0 (F0 in Go ASM). + // Go expects return value at ret+24(FP). + FMOVD F0, ret+24(FP) + + RET diff --git a/vendor/modernc.org/libc/limits/capi_illumos_amd64.go b/vendor/modernc.org/libc/limits/capi_illumos_amd64.go new file mode 100644 index 000000000..b82ba4653 --- /dev/null +++ b/vendor/modernc.org/libc/limits/capi_illumos_amd64.go @@ -0,0 +1,5 @@ +// Code generated by 'ccgo limits/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o limits/limits_illumos_amd64.go -pkgname limits', DO NOT EDIT. + +package limits + +var CAPI = map[string]struct{}{} diff --git a/vendor/modernc.org/libc/limits/capi_linux_loong64.go b/vendor/modernc.org/libc/limits/capi_linux_loong64.go new file mode 100644 index 000000000..820acc5fd --- /dev/null +++ b/vendor/modernc.org/libc/limits/capi_linux_loong64.go @@ -0,0 +1,5 @@ +// Code generated by 'ccgo limits/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o limits/limits_linux_loong64.go -pkgname limits', DO NOT EDIT. + +package limits + +var CAPI = map[string]struct{}{} diff --git a/vendor/modernc.org/libc/limits/capi_linux_mips64le.go b/vendor/modernc.org/libc/limits/capi_linux_mips64le.go new file mode 100644 index 000000000..dbe66d824 --- /dev/null +++ b/vendor/modernc.org/libc/limits/capi_linux_mips64le.go @@ -0,0 +1,5 @@ +// Code generated by 'ccgo limits/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o limits/limits_linux_amd64.go -pkgname limits', DO NOT EDIT. + +package limits + +var CAPI = map[string]struct{}{} diff --git a/vendor/modernc.org/libc/limits/limits_illumos_amd64.go b/vendor/modernc.org/libc/limits/limits_illumos_amd64.go new file mode 100644 index 000000000..6d83302fa --- /dev/null +++ b/vendor/modernc.org/libc/limits/limits_illumos_amd64.go @@ -0,0 +1,1234 @@ +// Code generated by 'ccgo limits/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o limits/limits_illumos_amd64.go -pkgname limits', DO NOT EDIT. + +package limits + +import ( + "math" + "reflect" + "sync/atomic" + "unsafe" +) + +var _ = math.Pi +var _ reflect.Kind +var _ atomic.Value +var _ unsafe.Pointer + +const ( + ARG_MAX = 2096640 // limits.h:73:1: + BC_BASE_MAX = 99 // limits.h:175:1: + BC_DIM_MAX = 2048 // limits.h:176:1: + BC_SCALE_MAX = 99 // limits.h:177:1: + BC_STRING_MAX = 1000 // limits.h:178:1: + CHARCLASS_NAME_MAX = 14 // limits.h:206:1: + CHAR_BIT = 8 // limits.h:64:1: + CHAR_MAX = 127 // limits.h:99:1: + CHAR_MIN = -128 // limits.h:97:1: + CHILD_MAX = 25 // limits.h:272:1: + COLL_WEIGHTS_MAX = 10 // limits.h:179:1: + DBL_DIG = 15 // limits.h:226:1: + DBL_MAX = 1.7976931348623157081452e+308 // limits.h:227:1: + DBL_MIN = 2.2250738585072013830903e-308 // limits.h:236:1: + EXPR_NEST_MAX = 32 // limits.h:180:1: + FCHR_MAX = 1048576 // limits.h:251:1: + FLT_DIG = 6 // limits.h:229:1: + FLT_MAX = 3.4028234663852885981170e+38 // limits.h:230:1: + FLT_MIN = 1.1754943508222875079688e-38 // limits.h:238:1: + INT16_MAX = 32767 // int_limits.h:93:1: + INT16_MIN = -32768 // int_limits.h:211:1: + INT32_MAX = 2147483647 // int_limits.h:94:1: + INT32_MIN = -2147483648 // int_limits.h:212:1: + INT64_MAX = 9223372036854775807 // int_limits.h:96:1: + INT64_MIN = -9223372036854775808 // int_limits.h:214:1: + INT8_MAX = 127 // int_limits.h:92:1: + INT8_MIN = -128 // int_limits.h:210:1: + INTMAX_MAX = 9223372036854775807 // int_limits.h:111:1: + INTMAX_MIN = -9223372036854775808 // int_limits.h:220:1: + INTPTR_MAX = 9223372036854775807 // int_limits.h:157:1: + INTPTR_MIN = -9223372036854775808 // int_limits.h:241:1: + INT_FAST16_MAX = 2147483647 // int_limits.h:137:1: + INT_FAST16_MIN = -2147483648 // int_limits.h:233:1: + INT_FAST32_MAX = 2147483647 // int_limits.h:138:1: + INT_FAST32_MIN = -2147483648 // int_limits.h:234:1: + INT_FAST64_MAX = 9223372036854775807 // int_limits.h:140:1: + INT_FAST64_MIN = -9223372036854775808 // int_limits.h:236:1: + INT_FAST8_MAX = 127 // int_limits.h:136:1: + INT_FAST8_MIN = -128 // int_limits.h:232:1: + INT_LEAST16_MAX = 32767 // int_limits.h:123:1: + INT_LEAST16_MIN = -32768 // int_limits.h:226:1: + INT_LEAST32_MAX = 2147483647 // int_limits.h:124:1: + INT_LEAST32_MIN = -2147483648 // int_limits.h:227:1: + INT_LEAST64_MAX = 9223372036854775807 // int_limits.h:126:1: + INT_LEAST64_MIN = -9223372036854775808 // int_limits.h:229:1: + INT_LEAST8_MAX = 127 // int_limits.h:122:1: + INT_LEAST8_MIN = -128 // int_limits.h:225:1: + INT_MAX = 2147483647 // limits.h:120:1: + INT_MIN = -2147483648 // limits.h:118:1: + IOV_MAX = 1024 // limits.h:22:1: + LINE_MAX = 2048 // limits.h:181:1: + LLONG_MAX = 9223372036854775807 // limits.h:142:1: + LLONG_MIN = -9223372036854775808 // limits.h:140:1: + LOGIN_NAME_MAX = 33 // limits.h:306:1: + LOGIN_NAME_MAX_TRAD = 9 // limits.h:308:1: + LOGNAME_MAX = 32 // limits.h:303:1: + LOGNAME_MAX_TRAD = 8 // limits.h:307:1: + LONG_BIT = 64 // limits.h:219:1: + LONG_LONG_MAX = 9223372036854775807 // limits.h:154:1: + LONG_LONG_MIN = -9223372036854775808 // limits.h:152:1: + LONG_MAX = 9223372036854775807 // limits.h:131:1: + LONG_MIN = -9223372036854775808 // limits.h:129:1: + MAX_CANON = 256 // limits.h:84:1: + MAX_INPUT = 512 // limits.h:88:1: + MB_LEN_MAX = 5 // limits_iso.h:58:1: + NAME_MAX = 255 // limits.h:270:1: + NGROUPS_MAX = 16 // limits.h:91:1: + NL_ARGMAX = 9 // limits.h:208:1: + NL_LANGMAX = 14 // limits.h:210:1: + NL_MSGMAX = 32767 // limits.h:211:1: + NL_NMAX = 1 // limits.h:212:1: + NL_SETMAX = 255 // limits.h:213:1: + NL_TEXTMAX = 2048 // limits.h:214:1: + NZERO = 20 // limits.h:215:1: + OPEN_MAX = 256 // limits.h:274:1: + PASS_MAX = 256 // limits.h:203:1: + PATH_MAX = 1024 // limits.h:94:1: + PID_MAX = 999999 // limits.h:252:1: + PIPE_BUF = 5120 // limits.h:99:1: + PIPE_MAX = 5120 // limits.h:277:1: + PTRDIFF_MAX = 9223372036854775807 // int_limits.h:166:1: + PTRDIFF_MIN = -9223372036854775808 // int_limits.h:248:1: + RE_DUP_MAX = 255 // limits.h:183:1: + SCHAR_MAX = 127 // limits.h:75:1: + SCHAR_MIN = -128 // limits.h:73:1: + SHRT_MAX = 32767 // limits.h:106:1: + SHRT_MIN = -32768 // limits.h:104:1: + SIG_ATOMIC_MAX = 2147483647 // int_limits.h:186:1: + SIG_ATOMIC_MIN = -2147483648 // int_limits.h:255:1: + SIZE_MAX = 18446744073709551615 // int_limits.h:179:1: + SSIZE_MAX = 9223372036854775807 // limits.h:63:1: + STD_BLK = 1024 // limits.h:279:1: + SYMLINK_MAX = 1024 // limits.h:97:1: + SYSPID_MAX = 1 // limits.h:282:1: + SYS_NMLN = 257 // limits.h:285:1: + TMP_MAX = 17576 // limits.h:102:1: + TTYNAME_MAX = 128 // limits.h:310:1: + UCHAR_MAX = 255 // limits.h:82:1: + UID_MAX = 2147483647 // limits.h:280:1: + UINT16_MAX = 65535 // int_limits.h:102:1: + UINT32_MAX = 4294967295 // int_limits.h:103:1: + UINT64_MAX = 18446744073709551615 // int_limits.h:105:1: + UINT8_MAX = 255 // int_limits.h:101:1: + UINTMAX_MAX = 18446744073709551615 // int_limits.h:117:1: + UINTPTR_MAX = 18446744073709551615 // int_limits.h:158:1: + UINT_FAST16_MAX = 4294967295 // int_limits.h:144:1: + UINT_FAST32_MAX = 4294967295 // int_limits.h:145:1: + UINT_FAST64_MAX = 18446744073709551615 // int_limits.h:147:1: + UINT_FAST8_MAX = 255 // int_limits.h:143:1: + UINT_LEAST16_MAX = 65535 // int_limits.h:130:1: + UINT_LEAST32_MAX = 4294967295 // int_limits.h:131:1: + UINT_LEAST64_MAX = 18446744073709551615 // int_limits.h:133:1: + UINT_LEAST8_MAX = 255 // int_limits.h:129:1: + UINT_MAX = 4294967295 // limits.h:124:1: + ULLONG_MAX = 18446744073709551615 // limits.h:146:1: + ULONG_LONG_MAX = 18446744073709551615 // limits.h:158:1: + ULONG_MAX = 18446744073709551615 // limits.h:135:1: + USHRT_MAX = 65535 // limits.h:113:1: + USI_MAX = 4294967295 // limits.h:281:1: + WCHAR_MAX = 2147483647 // int_limits.h:195:1: + WCHAR_MIN = -2147483648 // int_limits.h:264:1: + WINT_MAX = 2147483647 // int_limits.h:200:1: + WINT_MIN = -2147483648 // int_limits.h:269:1: + WORD_BIT = 32 // limits.h:217:1: + X_ALIGNMENT_REQUIRED = 1 // isa_defs.h:262:1: + X_ARG_MAX32 = 1048320 // limits.h:70:1: + X_ARG_MAX64 = 2096640 // limits.h:71:1: + X_BIT_FIELDS_LTOH = 0 // isa_defs.h:245:1: + X_BOOL_ALIGNMENT = 1 // isa_defs.h:248:1: + X_CHAR_ALIGNMENT = 1 // isa_defs.h:249:1: + X_CHAR_IS_SIGNED = 0 // isa_defs.h:247:1: + X_CLOCK_T = 0 // limits.h:291:1: + X_DMA_USES_PHYSADDR = 0 // isa_defs.h:281:1: + X_DONT_USE_1275_GENERIC_NAMES = 0 // isa_defs.h:287:1: + X_DOUBLE_ALIGNMENT = 8 // isa_defs.h:256:1: + X_DOUBLE_COMPLEX_ALIGNMENT = 8 // isa_defs.h:257:1: + X_DTRACE_VERSION = 1 // feature_tests.h:490:1: + X_FILE_OFFSET_BITS = 64 // :25:1: + X_FIRMWARE_NEEDS_FDISK = 0 // isa_defs.h:282:1: + X_FLOAT_ALIGNMENT = 4 // isa_defs.h:252:1: + X_FLOAT_COMPLEX_ALIGNMENT = 4 // isa_defs.h:253:1: + X_GCC_LIMITS_H_ = 0 // limits.h:30:1: + X_HAVE_CPUID_INSN = 0 // isa_defs.h:288:1: + X_IEEE_754 = 0 // isa_defs.h:246:1: + X_INT_ALIGNMENT = 4 // isa_defs.h:251:1: + X_ISO_CPP_14882_1998 = 0 // feature_tests.h:466:1: + X_ISO_C_9899_1999 = 0 // feature_tests.h:472:1: + X_ISO_C_9899_2011 = 0 // feature_tests.h:478:1: + X_ISO_LIMITS_ISO_H = 0 // limits_iso.h:44:1: + X_LARGEFILE64_SOURCE = 1 // feature_tests.h:231:1: + X_LARGEFILE_SOURCE = 1 // feature_tests.h:235:1: + X_LIMITS_H = 0 // limits.h:36:1: + X_LIMITS_H___ = 0 // limits.h:60:1: + X_LITTLE_ENDIAN = 0 // isa_defs.h:242:1: + X_LONGLONG_TYPE = 0 // feature_tests.h:412:1: + X_LONG_ALIGNMENT = 8 // isa_defs.h:254:1: + X_LONG_DOUBLE_ALIGNMENT = 16 // isa_defs.h:258:1: + X_LONG_DOUBLE_COMPLEX_ALIGNMENT = 16 // isa_defs.h:259:1: + X_LONG_LONG_ALIGNMENT = 8 // isa_defs.h:255:1: + X_LONG_LONG_ALIGNMENT_32 = 4 // isa_defs.h:268:1: + X_LONG_LONG_LTOH = 0 // isa_defs.h:244:1: + X_LP64 = 1 // :286:1: + X_MAX_ALIGNMENT = 16 // isa_defs.h:261:1: + X_MULTI_DATAMODEL = 0 // isa_defs.h:279:1: + X_NORETURN_KYWD = 0 // feature_tests.h:448:1: + X_PASS_MAX = 256 // limits.h:198:1: + X_PASS_MAX_XPG = 8 // limits.h:197:1: + X_POINTER_ALIGNMENT = 8 // isa_defs.h:260:1: + X_POSIX2_BC_BASE_MAX = 99 // limits.h:164:1: + X_POSIX2_BC_DIM_MAX = 2048 // limits.h:165:1: + X_POSIX2_BC_SCALE_MAX = 99 // limits.h:166:1: + X_POSIX2_BC_STRING_MAX = 1000 // limits.h:167:1: + X_POSIX2_CHARCLASS_NAME_MAX = 14 // limits.h:173:1: + X_POSIX2_COLL_WEIGHTS_MAX = 2 // limits.h:168:1: + X_POSIX2_EXPR_NEST_MAX = 32 // limits.h:169:1: + X_POSIX2_LINE_MAX = 2048 // limits.h:170:1: + X_POSIX2_RE_DUP_MAX = 255 // limits.h:171:1: + X_POSIX_AIO_LISTIO_MAX = 2 // limits.h:110:1: + X_POSIX_AIO_MAX = 1 // limits.h:111:1: + X_POSIX_ARG_MAX = 4096 // limits.h:112:1: + X_POSIX_CHILD_MAX = 6 // limits.h:116:1: + X_POSIX_CLOCKRES_MIN = 20000000 // limits.h:118:1: + X_POSIX_DELAYTIMER_MAX = 32 // limits.h:119:1: + X_POSIX_HOST_NAME_MAX = 255 // limits.h:155:1: + X_POSIX_LINK_MAX = 8 // limits.h:120:1: + X_POSIX_LOGIN_NAME_MAX = 9 // limits.h:149:1: + X_POSIX_MAX_CANON = 255 // limits.h:121:1: + X_POSIX_MAX_INPUT = 255 // limits.h:122:1: + X_POSIX_MQ_OPEN_MAX = 8 // limits.h:123:1: + X_POSIX_MQ_PRIO_MAX = 32 // limits.h:124:1: + X_POSIX_NAME_MAX = 14 // limits.h:125:1: + X_POSIX_NGROUPS_MAX = 0 // limits.h:131:1: + X_POSIX_OPEN_MAX = 16 // limits.h:132:1: + X_POSIX_PATH_MAX = 255 // limits.h:133:1: + X_POSIX_PIPE_BUF = 512 // limits.h:135:1: + X_POSIX_RE_DUP_MAX = 255 // limits.h:156:1: + X_POSIX_RTSIG_MAX = 8 // limits.h:136:1: + X_POSIX_SEM_NSEMS_MAX = 256 // limits.h:137:1: + X_POSIX_SEM_VALUE_MAX = 32767 // limits.h:138:1: + X_POSIX_SIGQUEUE_MAX = 32 // limits.h:139:1: + X_POSIX_SSIZE_MAX = 32767 // limits.h:140:1: + X_POSIX_STREAM_MAX = 8 // limits.h:141:1: + X_POSIX_SYMLINK_MAX = 255 // limits.h:157:1: + X_POSIX_SYMLOOP_MAX = 8 // limits.h:158:1: + X_POSIX_THREAD_DESTRUCTOR_ITERATIONS = 4 // limits.h:150:1: + X_POSIX_THREAD_KEYS_MAX = 128 // limits.h:151:1: + X_POSIX_THREAD_THREADS_MAX = 64 // limits.h:152:1: + X_POSIX_TIMER_MAX = 32 // limits.h:142:1: + X_POSIX_TTY_NAME_MAX = 9 // limits.h:153:1: + X_POSIX_TZNAME_MAX = 3 // limits.h:146:1: + X_PSM_MODULES = 0 // isa_defs.h:284:1: + X_RESTRICT_KYWD = 0 // feature_tests.h:435:1: + X_RTC_CONFIG = 0 // isa_defs.h:285:1: + X_SHORT_ALIGNMENT = 2 // isa_defs.h:250:1: + X_SOFT_HOSTID = 0 // isa_defs.h:286:1: + X_STACK_GROWS_DOWNWARD = 0 // isa_defs.h:243:1: + X_STDC_C11 = 0 // feature_tests.h:165:1: + X_STDC_C99 = 0 // feature_tests.h:169:1: + X_SUNOS_VTOC_16 = 0 // isa_defs.h:280:1: + X_SYS_CCOMPILE_H = 0 // ccompile.h:32:1: + X_SYS_FEATURE_TESTS_H = 0 // feature_tests.h:41:1: + X_SYS_INT_LIMITS_H = 0 // int_limits.h:39:1: + X_SYS_ISA_DEFS_H = 0 // isa_defs.h:30:1: + X_SYS_LIMITS_H = 0 // limits.h:16:1: + X_XOPEN_IOV_MAX = 16 // limits.h:244:1: + X_XOPEN_NAME_MAX = 255 // limits.h:245:1: + X_XOPEN_PATH_MAX = 1024 // limits.h:246:1: + X_XOPEN_VERSION = 3 // feature_tests.h:392:1: + Sun = 1 // :172:1: + Unix = 1 // :175:1: +) + +type Ptrdiff_t = int64 /* :3:26 */ + +type Size_t = uint64 /* :9:23 */ + +type Wchar_t = int32 /* :15:24 */ + +type X__int128_t = struct { + Flo int64 + Fhi int64 +} /* :21:43 */ // must match modernc.org/mathutil.Int128 +type X__uint128_t = struct { + Flo uint64 + Fhi uint64 +} /* :22:44 */ // must match modernc.org/mathutil.Int128 + +type X__builtin_va_list = uintptr /* :46:14 */ +type X__float128 = float64 /* :47:21 */ + +// Copyright (C) 1992-2022 Free Software Foundation, Inc. +// +// This file is part of GCC. +// +// GCC is free software; you can redistribute it and/or modify it under +// the terms of the GNU General Public License as published by the Free +// Software Foundation; either version 3, or (at your option) any later +// version. +// +// GCC is distributed in the hope that it will be useful, but WITHOUT ANY +// WARRANTY; without even the implied warranty of MERCHANTABILITY or +// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +// for more details. +// +// Under Section 7 of GPL version 3, you are granted additional +// permissions described in the GCC Runtime Library Exception, version +// 3.1, as published by the Free Software Foundation. +// +// You should have received a copy of the GNU General Public License and +// a copy of the GCC Runtime Library Exception along with this program; +// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see +// . + +// This administrivia gets added to the beginning of limits.h +// if the system has its own version of limits.h. + +// We use _GCC_LIMITS_H_ because we want this not to match +// any macros that the system's limits.h uses for its own purposes. + +// Use "..." so that we find syslimits.h only in this same directory. +// syslimits.h stands for the system's own limits.h file. +// If we can use it ok unmodified, then we install this text. +// If fixincludes fixes it, then the fixed version is installed +// instead of this text. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright (c) 2013 Gary Mills +// Copyright 2017 RackTop Systems. +// +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2015 Joyent, Inc. All rights reserved. + +// Copyright (c) 1988 AT&T +// All Rights Reserved + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2015 EveryCity Ltd. All rights reserved. +// Copyright 2019 Joyent, Inc. + +// This file contains definitions designed to enable different compilers +// to be used harmoniously on Solaris systems. + +// Allow for version tests for compiler bugs and features. + +// analogous to lint's PRINTFLIKEn + +// Handle the kernel printf routines that can take '%b' too + +// This one's pretty obvious -- the function never returns + +// The function is 'extern inline' and expects GNU C89 behaviour, not C99 +// behaviour. +// +// Should only be used on 'extern inline' definitions for GCC. + +// The function has control flow such that it may return multiple times (in +// the manner of setjmp or vfork) + +// This is an appropriate label for functions that do not +// modify their arguments, e.g. strlen() + +// This is a stronger form of __pure__. Can be used for functions +// that do not modify their arguments and don't depend on global +// memory. + +// This attribute, attached to a variable, means that the variable is meant to +// be possibly unused. GCC will not produce a warning for this variable. + +// Shorthand versions for readability + +// In release build, disable warnings about variables +// which are used only for debugging. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2016 Joyent, Inc. + +// This header file serves to group a set of well known defines and to +// set these for each instruction set architecture. These defines may +// be divided into two groups; characteristics of the processor and +// implementation choices for Solaris on a processor. +// +// Processor Characteristics: +// +// _LITTLE_ENDIAN / _BIG_ENDIAN: +// The natural byte order of the processor. A pointer to an int points +// to the least/most significant byte of that int. +// +// _STACK_GROWS_UPWARD / _STACK_GROWS_DOWNWARD: +// The processor specific direction of stack growth. A push onto the +// stack increases/decreases the stack pointer, so it stores data at +// successively higher/lower addresses. (Stackless machines ignored +// without regrets). +// +// _LONG_LONG_HTOL / _LONG_LONG_LTOH: +// A pointer to a long long points to the most/least significant long +// within that long long. +// +// _BIT_FIELDS_HTOL / _BIT_FIELDS_LTOH: +// The C compiler assigns bit fields from the high/low to the low/high end +// of an int (most to least significant vs. least to most significant). +// +// _IEEE_754: +// The processor (or supported implementations of the processor) +// supports the ieee-754 floating point standard. No other floating +// point standards are supported (or significant). Any other supported +// floating point formats are expected to be cased on the ISA processor +// symbol. +// +// _CHAR_IS_UNSIGNED / _CHAR_IS_SIGNED: +// The C Compiler implements objects of type `char' as `unsigned' or +// `signed' respectively. This is really an implementation choice of +// the compiler writer, but it is specified in the ABI and tends to +// be uniform across compilers for an instruction set architecture. +// Hence, it has the properties of a processor characteristic. +// +// _CHAR_ALIGNMENT / _SHORT_ALIGNMENT / _INT_ALIGNMENT / _LONG_ALIGNMENT / +// _LONG_LONG_ALIGNMENT / _DOUBLE_ALIGNMENT / _LONG_DOUBLE_ALIGNMENT / +// _POINTER_ALIGNMENT / _FLOAT_ALIGNMENT: +// The ABI defines alignment requirements of each of the primitive +// object types. Some, if not all, may be hardware requirements as +// well. The values are expressed in "byte-alignment" units. +// +// _MAX_ALIGNMENT: +// The most stringent alignment requirement as specified by the ABI. +// Equal to the maximum of all the above _XXX_ALIGNMENT values. +// +// _MAX_ALIGNMENT_TYPE: +// The name of the C type that has the value descried in _MAX_ALIGNMENT. +// +// _ALIGNMENT_REQUIRED: +// True or false (1 or 0) whether or not the hardware requires the ABI +// alignment. +// +// _LONG_LONG_ALIGNMENT_32 +// The 32-bit ABI supported by a 64-bit kernel may have different +// alignment requirements for primitive object types. The value of this +// identifier is expressed in "byte-alignment" units. +// +// _HAVE_CPUID_INSN +// This indicates that the architecture supports the 'cpuid' +// instruction as defined by Intel. (Intel allows other vendors +// to extend the instruction for their own purposes.) +// +// +// Implementation Choices: +// +// _ILP32 / _LP64: +// This specifies the compiler data type implementation as specified in +// the relevant ABI. The choice between these is strongly influenced +// by the underlying hardware, but is not absolutely tied to it. +// Currently only two data type models are supported: +// +// _ILP32: +// Int/Long/Pointer are 32 bits. This is the historical UNIX +// and Solaris implementation. Due to its historical standing, +// this is the default case. +// +// _LP64: +// Long/Pointer are 64 bits, Int is 32 bits. This is the chosen +// implementation for 64-bit ABIs such as SPARC V9. +// +// _I32LPx: +// A compilation environment where 'int' is 32-bit, and +// longs and pointers are simply the same size. +// +// In all cases, Char is 8 bits and Short is 16 bits. +// +// _SUNOS_VTOC_8 / _SUNOS_VTOC_16 / _SVR4_VTOC_16: +// This specifies the form of the disk VTOC (or label): +// +// _SUNOS_VTOC_8: +// This is a VTOC form which is upwardly compatible with the +// SunOS 4.x disk label and allows 8 partitions per disk. +// +// _SUNOS_VTOC_16: +// In this format the incore vtoc image matches the ondisk +// version. It allows 16 slices per disk, and is not +// compatible with the SunOS 4.x disk label. +// +// Note that these are not the only two VTOC forms possible and +// additional forms may be added. One possible form would be the +// SVr4 VTOC form. The symbol for that is reserved now, although +// it is not implemented. +// +// _SVR4_VTOC_16: +// This VTOC form is compatible with the System V Release 4 +// VTOC (as implemented on the SVr4 Intel and 3b ports) with +// 16 partitions per disk. +// +// +// _DMA_USES_PHYSADDR / _DMA_USES_VIRTADDR +// This describes the type of addresses used by system DMA: +// +// _DMA_USES_PHYSADDR: +// This type of DMA, used in the x86 implementation, +// requires physical addresses for DMA buffers. The 24-bit +// addresses used by some legacy boards is the source of the +// "low-memory" (<16MB) requirement for some devices using DMA. +// +// _DMA_USES_VIRTADDR: +// This method of DMA allows the use of virtual addresses for +// DMA transfers. +// +// _FIRMWARE_NEEDS_FDISK / _NO_FDISK_PRESENT +// This indicates the presence/absence of an fdisk table. +// +// _FIRMWARE_NEEDS_FDISK +// The fdisk table is required by system firmware. If present, +// it allows a disk to be subdivided into multiple fdisk +// partitions, each of which is equivalent to a separate, +// virtual disk. This enables the co-existence of multiple +// operating systems on a shared hard disk. +// +// _NO_FDISK_PRESENT +// If the fdisk table is absent, it is assumed that the entire +// media is allocated for a single operating system. +// +// _HAVE_TEM_FIRMWARE +// Defined if this architecture has the (fallback) option of +// using prom_* calls for doing I/O if a suitable kernel driver +// is not available to do it. +// +// _DONT_USE_1275_GENERIC_NAMES +// Controls whether or not device tree node names should +// comply with the IEEE 1275 "Generic Names" Recommended +// Practice. With _DONT_USE_GENERIC_NAMES, device-specific +// names identifying the particular device will be used. +// +// __i386_COMPAT +// This indicates whether the i386 ABI is supported as a *non-native* +// mode for the platform. When this symbol is defined: +// - 32-bit xstat-style system calls are enabled +// - 32-bit xmknod-style system calls are enabled +// - 32-bit system calls use i386 sizes -and- alignments +// +// Note that this is NOT defined for the i386 native environment! +// +// __x86 +// This is ONLY a synonym for defined(__i386) || defined(__amd64) +// which is useful only insofar as these two architectures share +// common attributes. Analogous to __sparc. +// +// _PSM_MODULES +// This indicates whether or not the implementation uses PSM +// modules for processor support, reading /etc/mach from inside +// the kernel to extract a list. +// +// _RTC_CONFIG +// This indicates whether or not the implementation uses /etc/rtc_config +// to configure the real-time clock in the kernel. +// +// _UNIX_KRTLD +// This indicates that the implementation uses a dynamically +// linked unix + krtld to form the core kernel image at boot +// time, or (in the absence of this symbol) a prelinked kernel image. +// +// _OBP +// This indicates the firmware interface is OBP. +// +// _SOFT_HOSTID +// This indicates that the implementation obtains the hostid +// from the file /etc/hostid, rather than from hardware. + +// The following set of definitions characterize Solaris on AMD's +// 64-bit systems. + +// Define the appropriate "processor characteristics" + +// Different alignment constraints for the i386 ABI in compatibility mode + +// Define the appropriate "implementation choices". + +// The feature test macro __i386 is generic for all processors implementing +// the Intel 386 instruction set or a superset of it. Specifically, this +// includes all members of the 386, 486, and Pentium family of processors. + +// Values of _POSIX_C_SOURCE +// +// undefined not a POSIX compilation +// 1 POSIX.1-1990 compilation +// 2 POSIX.2-1992 compilation +// 199309L POSIX.1b-1993 compilation (Real Time) +// 199506L POSIX.1c-1995 compilation (POSIX Threads) +// 200112L POSIX.1-2001 compilation (Austin Group Revision) +// 200809L POSIX.1-2008 compilation + +// The feature test macros __XOPEN_OR_POSIX, _STRICT_STDC, _STRICT_SYMBOLS, +// and _STDC_C99 are Sun implementation specific macros created in order to +// compress common standards specified feature test macros for easier reading. +// These macros should not be used by the application developer as +// unexpected results may occur. Instead, the user should reference +// standards(7) for correct usage of the standards feature test macros. +// +// __XOPEN_OR_POSIX Used in cases where a symbol is defined by both +// X/Open or POSIX or in the negative, when neither +// X/Open or POSIX defines a symbol. +// +// _STRICT_STDC __STDC__ is specified by the C Standards and defined +// by the compiler. For Sun compilers the value of +// __STDC__ is either 1, 0, or not defined based on the +// compilation mode (see cc(1)). When the value of +// __STDC__ is 1 and in the absence of any other feature +// test macros, the namespace available to the application +// is limited to only those symbols defined by the C +// Standard. _STRICT_STDC provides a more readable means +// of identifying symbols defined by the standard, or in +// the negative, symbols that are extensions to the C +// Standard. See additional comments for GNU C differences. +// +// _STDC_C99 __STDC_VERSION__ is specified by the C standards and +// defined by the compiler and indicates the version of +// the C standard. A value of 199901L indicates a +// compiler that complies with ISO/IEC 9899:1999, other- +// wise known as the C99 standard. +// +// _STDC_C11 Like _STDC_C99 except that the value of __STDC_VERSION__ +// is 201112L indicating a compiler that compiles with +// ISO/IEC 9899:2011, otherwise known as the C11 standard. +// +// _STRICT_SYMBOLS Used in cases where symbol visibility is restricted +// by the standards, and the user has not explicitly +// relaxed the strictness via __EXTENSIONS__. + +// ISO/IEC 9899:1990 and it's revisions, ISO/IEC 9899:1999 and ISO/IEC +// 99899:2011 specify the following predefined macro name: +// +// __STDC__ The integer constant 1, intended to indicate a conforming +// implementation. +// +// Furthermore, a strictly conforming program shall use only those features +// of the language and library specified in these standards. A conforming +// implementation shall accept any strictly conforming program. +// +// Based on these requirements, Sun's C compiler defines __STDC__ to 1 for +// strictly conforming environments and __STDC__ to 0 for environments that +// use ANSI C semantics but allow extensions to the C standard. For non-ANSI +// C semantics, Sun's C compiler does not define __STDC__. +// +// The GNU C project interpretation is that __STDC__ should always be defined +// to 1 for compilation modes that accept ANSI C syntax regardless of whether +// or not extensions to the C standard are used. Violations of conforming +// behavior are conditionally flagged as warnings via the use of the +// -pedantic option. In addition to defining __STDC__ to 1, the GNU C +// compiler also defines __STRICT_ANSI__ as a means of specifying strictly +// conforming environments using the -ansi or -std= options. +// +// In the absence of any other compiler options, Sun and GNU set the value +// of __STDC__ as follows when using the following options: +// +// Value of __STDC__ __STRICT_ANSI__ +// +// cc -Xa (default) 0 undefined +// cc -Xt (transitional) 0 undefined +// cc -Xc (strictly conforming) 1 undefined +// cc -Xs (K&R C) undefined undefined +// +// gcc (default) 1 undefined +// gcc -ansi, -std={c89, c99,...) 1 defined +// gcc -traditional (K&R) undefined undefined +// +// The default compilation modes for Sun C compilers versus GNU C compilers +// results in a differing value for __STDC__ which results in a more +// restricted namespace when using Sun compilers. To allow both GNU and Sun +// interpretations to peacefully co-exist, we use the following Sun +// implementation _STRICT_STDC_ macro: + +// Compiler complies with ISO/IEC 9899:1999 or ISO/IEC 9989:2011 + +// Use strict symbol visibility. + +// This is a variant of _STRICT_SYMBOLS that is meant to cover headers that are +// governed by POSIX, but have not been governed by ISO C. One can go two ways +// on what should happen if an application actively includes (not transitively) +// a header that isn't part of the ISO C spec, we opt to say that if someone has +// gone out of there way then they're doing it for a reason and that is an act +// of non-compliance and therefore it's not up to us to hide away every symbol. +// +// In general, prefer using _STRICT_SYMBOLS, but this is here in particular for +// cases where in the past we have only used a POSIX related check and we don't +// wish to make something stricter. Often applications are relying on the +// ability to, or more realistically unwittingly, have _STRICT_STDC declared and +// still use these interfaces. + +// Large file interfaces: +// +// _LARGEFILE_SOURCE +// 1 large file-related additions to POSIX +// interfaces requested (fseeko, etc.) +// _LARGEFILE64_SOURCE +// 1 transitional large-file-related interfaces +// requested (seek64, stat64, etc.) +// +// The corresponding announcement macros are respectively: +// _LFS_LARGEFILE +// _LFS64_LARGEFILE +// (These are set in .) +// +// Requesting _LARGEFILE64_SOURCE implies requesting _LARGEFILE_SOURCE as +// well. +// +// The large file interfaces are made visible regardless of the initial values +// of the feature test macros under certain circumstances: +// - If no explicit standards-conforming environment is requested (neither +// of _POSIX_SOURCE nor _XOPEN_SOURCE is defined and the value of +// __STDC__ does not imply standards conformance). +// - Extended system interfaces are explicitly requested (__EXTENSIONS__ +// is defined). +// - Access to in-kernel interfaces is requested (_KERNEL or _KMEMUSER is +// defined). (Note that this dependency is an artifact of the current +// kernel implementation and may change in future releases.) + +// Large file compilation environment control: +// +// The setting of _FILE_OFFSET_BITS controls the size of various file-related +// types and governs the mapping between file-related source function symbol +// names and the corresponding binary entry points. +// +// In the 32-bit environment, the default value is 32; if not set, set it to +// the default here, to simplify tests in other headers. +// +// In the 64-bit compilation environment, the only value allowed is 64. + +// Use of _XOPEN_SOURCE +// +// The following X/Open specifications are supported: +// +// X/Open Portability Guide, Issue 3 (XPG3) +// X/Open CAE Specification, Issue 4 (XPG4) +// X/Open CAE Specification, Issue 4, Version 2 (XPG4v2) +// X/Open CAE Specification, Issue 5 (XPG5) +// Open Group Technical Standard, Issue 6 (XPG6), also referred to as +// IEEE Std. 1003.1-2001 and ISO/IEC 9945:2002. +// Open Group Technical Standard, Issue 7 (XPG7), also referred to as +// IEEE Std. 1003.1-2008 and ISO/IEC 9945:2009. +// +// XPG4v2 is also referred to as UNIX 95 (SUS or SUSv1). +// XPG5 is also referred to as UNIX 98 or the Single Unix Specification, +// Version 2 (SUSv2) +// XPG6 is the result of a merge of the X/Open and POSIX specifications +// and as such is also referred to as IEEE Std. 1003.1-2001 in +// addition to UNIX 03 and SUSv3. +// XPG7 is also referred to as UNIX 08 and SUSv4. +// +// When writing a conforming X/Open application, as per the specification +// requirements, the appropriate feature test macros must be defined at +// compile time. These are as follows. For more info, see standards(7). +// +// Feature Test Macro Specification +// ------------------------------------------------ ------------- +// _XOPEN_SOURCE XPG3 +// _XOPEN_SOURCE && _XOPEN_VERSION = 4 XPG4 +// _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED = 1 XPG4v2 +// _XOPEN_SOURCE = 500 XPG5 +// _XOPEN_SOURCE = 600 (or POSIX_C_SOURCE=200112L) XPG6 +// _XOPEN_SOURCE = 700 (or POSIX_C_SOURCE=200809L) XPG7 +// +// In order to simplify the guards within the headers, the following +// implementation private test macros have been created. Applications +// must NOT use these private test macros as unexpected results will +// occur. +// +// Note that in general, the use of these private macros is cumulative. +// For example, the use of _XPG3 with no other restrictions on the X/Open +// namespace will make the symbols visible for XPG3 through XPG6 +// compilation environments. The use of _XPG4_2 with no other X/Open +// namespace restrictions indicates that the symbols were introduced in +// XPG4v2 and are therefore visible for XPG4v2 through XPG6 compilation +// environments, but not for XPG3 or XPG4 compilation environments. +// +// _XPG3 X/Open Portability Guide, Issue 3 (XPG3) +// _XPG4 X/Open CAE Specification, Issue 4 (XPG4) +// _XPG4_2 X/Open CAE Specification, Issue 4, Version 2 (XPG4v2/UNIX 95/SUS) +// _XPG5 X/Open CAE Specification, Issue 5 (XPG5/UNIX 98/SUSv2) +// _XPG6 Open Group Technical Standard, Issue 6 (XPG6/UNIX 03/SUSv3) +// _XPG7 Open Group Technical Standard, Issue 7 (XPG7/UNIX 08/SUSv4) + +// X/Open Portability Guide, Issue 3 + +// _XOPEN_VERSION is defined by the X/Open specifications and is not +// normally defined by the application, except in the case of an XPG4 +// application. On the implementation side, _XOPEN_VERSION defined with +// the value of 3 indicates an XPG3 application. _XOPEN_VERSION defined +// with the value of 4 indicates an XPG4 or XPG4v2 (UNIX 95) application. +// _XOPEN_VERSION defined with a value of 500 indicates an XPG5 (UNIX 98) +// application and with a value of 600 indicates an XPG6 (UNIX 03) +// application and with a value of 700 indicates an XPG7 (UNIX 08). +// The appropriate version is determined by the use of the +// feature test macros described earlier. The value of _XOPEN_VERSION +// defaults to 3 otherwise indicating support for XPG3 applications. + +// ANSI C and ISO 9899:1990 say the type long long doesn't exist in strictly +// conforming environments. ISO 9899:1999 says it does. +// +// The presence of _LONGLONG_TYPE says "long long exists" which is therefore +// defined in all but strictly conforming environments that disallow it. + +// The following macro defines a value for the ISO C99 restrict +// keyword so that _RESTRICT_KYWD resolves to "restrict" if +// an ISO C99 compiler is used, "__restrict" for c++ and "" (null string) +// if any other compiler is used. This allows for the use of single +// prototype declarations regardless of compiler version. + +// The following macro defines a value for the ISO C11 _Noreturn +// keyword so that _NORETURN_KYWD resolves to "_Noreturn" if +// an ISO C11 compiler is used and "" (null string) if any other +// compiler is used. This allows for the use of single prototype +// declarations regardless of compiler version. + +// ISO/IEC 9899:2011 Annex K + +// The following macro indicates header support for the ANSI C++ +// standard. The ISO/IEC designation for this is ISO/IEC FDIS 14882. + +// The following macro indicates header support for the C99 standard, +// ISO/IEC 9899:1999, Programming Languages - C. + +// The following macro indicates header support for the C11 standard, +// ISO/IEC 9899:2011, Programming Languages - C. + +// The following macro indicates header support for the C11 standard, +// ISO/IEC 9899:2011 Annex K, Programming Languages - C. + +// The following macro indicates header support for DTrace. The value is an +// integer that corresponds to the major version number for DTrace. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2016 Joyent, Inc. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2003 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright (c) 1988 AT&T +// All Rights Reserved + +// An application should not include this header directly. Instead it +// should be included only through the inclusion of other Sun headers. +// +// The contents of this header is limited to identifiers specified in the +// C Standard. Any new identifiers specified in future amendments to the +// C Standard must be placed in this header. If these new identifiers +// are required to also be in the C++ Standard "std" namespace, then for +// anything other than macro definitions, corresponding "using" directives +// must also be added to . + +// Sizes of integral types + +// min value of a "long int" +// max value of a "long int" +// max value of "unsigned long int" +// min value of a long long +// max value of a long long +// max value of "unsigned long long + +// This file and its contents are supplied under the terms of the +// Common Development and Distribution License ("CDDL"), version 1.0. +// You may only use this file in accordance with the terms of version +// 1.0 of the CDDL. +// +// A full copy of the text of the CDDL should have accompanied this +// source. A copy of the CDDL is also available via the Internet at +// http://www.illumos.org/license/CDDL. +// Copyright 2015 Joyent, Inc. All rights reserved. + +// Include fixed width type limits as proposed by the ISO/JTC1/SC22/WG14 C +// committee's working draft for the revision of the current ISO C standard, +// ISO/IEC 9899:1990 Programming language - C. These are not currently +// required by any standard but constitute a useful, general purpose set +// of type definitions and limits which is namespace clean with respect to +// all standards. +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/int_limits.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2014 Garrett D'Amore +// +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// This file, , is part of the Sun Microsystems implementation +// of as defined in the ISO C standard, ISO/IEC 9899:1999 +// Programming language - C. +// +// Programs/Modules should not directly include this file. Access to the +// types defined in this file should be through the inclusion of one of the +// following files: +// +// This nested inclusion is disabled for strictly +// ANSI-C conforming compilations. The *_MIN +// definitions are not visible to POSIX or XPG +// conforming applications (due to what may be +// a bug in the specification - this is under +// investigation) +// +// Provides the Kernel and Driver appropriate +// components of . +// +// For use by applications. +// +// See these files for more details. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Limits +// +// The following define the limits for the types defined in . +// +// INTMAX_MIN (minimum value of the largest supported signed integer type), +// INTMAX_MAX (maximum value of the largest supported signed integer type), +// and UINTMAX_MAX (maximum value of the largest supported unsigned integer +// type) can be set to implementation defined limits. +// +// NOTE : A programmer can test to see whether an implementation supports +// a particular size of integer by testing if the macro that gives the +// maximum for that datatype is defined. For example, if #ifdef UINT64_MAX +// tests false, the implementation does not support unsigned 64 bit integers. +// +// The type of these macros is intentionally unspecified. +// +// The types int8_t, int_least8_t, and int_fast8_t are not defined for ISAs +// where the ABI specifies "char" as unsigned when the translation mode is +// not ANSI-C. + +// The following 2 macros are provided for testing whether the types +// intptr_t and uintptr_t (integers large enough to hold a void *) are +// defined in this header. They are needed in case the architecture can't +// represent a pointer in any standard integral type. + +// Maximum limits of ptrdiff_t defined in + +// Maximum value of a "size_t". SIZE_MAX was previously defined +// in , however, the standards specify it be defined +// in . The headers includes this header as +// does . The value of SIZE_MAX should not deviate +// from the value of ULONG_MAX defined . + +// Maximum limit of sig_atomic_t defined in + +// Maximum limit of wchar_t. The WCHAR_* macros are also +// defined in , but inclusion of that header +// will break ISO/IEC C namespace. + +// Maximum limit of wint_t + +// It is probably a bug in the POSIX specification (IEEE-1003.1-1990) that +// when including that the suffix _MAX is reserved but not the +// suffix _MIN. However, until that issue is resolved.... + +// Minimum value of a pointer-holding signed integer type + +// Minimum limits of ptrdiff_t defined in + +// Minimum limit of sig_atomic_t defined in + +// Minimum limit of wchar_t. The WCHAR_* macros are also +// defined in , but inclusion of that header +// will break ISO/IEC C namespace. + +// Minimum limit of wint_t + +// ARG_MAX is calculated as follows: +// NCARGS - space for other stuff on initial stack +// like aux vectors, saved registers, etc.. + +// These two symbols have their historical values, the actual buffer is +// larger. + +// POSIX conformant definitions - An implementation may define +// other symbols which reflect the actual implementation. Alternate +// definitions may not be as restrictive as the POSIX definitions. +// POSIX.1c conformant +// UNIX 03 conformant + +// POSIX.2 and XPG4-XSH4 conformant definitions + +// UNIX 03 conformant + +// For dual definitions for PASS_MAX and sysconf.c + +// NLS printf() and scanf() + +// Marked as LEGACY in SUSv2 and removed in UNIX 03 +// of a double +// of a "float" + +// Marked as LEGACY in SUSv1 and removed in SUSv2 +// of a double +// of a float + +// POSIX 1003.1a, section 2.9.5, table 2-5 contains [NAME_MAX] and the +// related text states: +// +// A definition of one of the values from Table 2-5 shall be omitted from the +// on specific implementations where the corresponding value is +// equal to or greater than the stated minimum, but where the value can vary +// depending on the file to which it is applied. The actual value supported for +// a specific pathname shall be provided by the pathconf() (5.7.1) function. +// +// This is clear that any machine supporting multiple file system types +// and/or a network should not include this define, regardless of protection +// by the _POSIX_SOURCE and _POSIX_C_SOURCE flags. We chose to ignore that +// and provide it anyway for compatibility with other platforms that don't +// follow the spec as precisely as they should. Its usage is discouraged. + +type Clock_t = int64 /* limits.h:292:14 */ // System Private interface to sysconf() + +// Increased for illumos + +// Copyright (C) 1991-2022 Free Software Foundation, Inc. +// +// This file is part of GCC. +// +// GCC is free software; you can redistribute it and/or modify it under +// the terms of the GNU General Public License as published by the Free +// Software Foundation; either version 3, or (at your option) any later +// version. +// +// GCC is distributed in the hope that it will be useful, but WITHOUT ANY +// WARRANTY; without even the implied warranty of MERCHANTABILITY or +// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +// for more details. +// +// Under Section 7 of GPL version 3, you are granted additional +// permissions described in the GCC Runtime Library Exception, version +// 3.1, as published by the Free Software Foundation. +// +// You should have received a copy of the GNU General Public License and +// a copy of the GCC Runtime Library Exception along with this program; +// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see +// . + +// Number of bits in a `char'. + +// Maximum length of a multibyte character. + +// Minimum and maximum values a `signed char' can hold. + +// Maximum value an `unsigned char' can hold. (Minimum is 0). + +// Minimum and maximum values a `char' can hold. + +// Minimum and maximum values a `signed short int' can hold. + +// Maximum value an `unsigned short int' can hold. (Minimum is 0). + +// Minimum and maximum values a `signed int' can hold. + +// Maximum value an `unsigned int' can hold. (Minimum is 0). + +// Minimum and maximum values a `signed long int' can hold. +// (Same as `int'). + +// Maximum value an `unsigned long int' can hold. (Minimum is 0). + +// Minimum and maximum values a `signed long long int' can hold. + +// Maximum value an `unsigned long long int' can hold. (Minimum is 0). + +// Minimum and maximum values a `signed long long int' can hold. + +// Maximum value an `unsigned long long int' can hold. (Minimum is 0). + +// This administrivia gets added to the end of limits.h +// if the system has its own version of limits.h. + +var _ int8 /* gen.c:2:13: */ diff --git a/vendor/modernc.org/libc/limits/limits_linux_loong64.go b/vendor/modernc.org/libc/limits/limits_linux_loong64.go new file mode 100644 index 000000000..a5e9f1442 --- /dev/null +++ b/vendor/modernc.org/libc/limits/limits_linux_loong64.go @@ -0,0 +1,1159 @@ +// Code generated by 'ccgo limits/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o limits/limits_linux_loong64.go -pkgname limits', DO NOT EDIT. + +package limits + +import ( + "math" + "reflect" + "sync/atomic" + "unsafe" +) + +var _ = math.Pi +var _ reflect.Kind +var _ atomic.Value +var _ unsafe.Pointer + +const ( + AIO_PRIO_DELTA_MAX = 20 // local_lim.h:78:1: + BC_BASE_MAX = 99 // posix2_lim.h:63:1: + BC_DIM_MAX = 2048 // posix2_lim.h:66:1: + BC_SCALE_MAX = 99 // posix2_lim.h:69:1: + BC_STRING_MAX = 1000 // posix2_lim.h:72:1: + CHARCLASS_NAME_MAX = 2048 // posix2_lim.h:84:1: + CHAR_BIT = 8 // limits.h:64:1: + CHAR_MAX = 127 // limits.h:99:1: + CHAR_MIN = -128 // limits.h:97:1: + COLL_WEIGHTS_MAX = 255 // posix2_lim.h:75:1: + DELAYTIMER_MAX = 2147483647 // local_lim.h:84:1: + EXPR_NEST_MAX = 32 // posix2_lim.h:78:1: + HOST_NAME_MAX = 64 // local_lim.h:93:1: + INT_MAX = 2147483647 // limits.h:120:1: + INT_MIN = -2147483648 // limits.h:118:1: + LINE_MAX = 2048 // posix2_lim.h:81:1: + LLONG_MAX = 9223372036854775807 // limits.h:142:1: + LLONG_MIN = -9223372036854775808 // limits.h:140:1: + LOGIN_NAME_MAX = 256 // local_lim.h:90:1: + LONG_MAX = 9223372036854775807 // limits.h:131:1: + LONG_MIN = -9223372036854775808 // limits.h:129:1: + MAX_CANON = 255 // limits.h:10:1: + MAX_INPUT = 255 // limits.h:11:1: + MB_LEN_MAX = 16 // limits.h:32:1: + MQ_PRIO_MAX = 32768 // local_lim.h:96:1: + NAME_MAX = 255 // limits.h:12:1: + NGROUPS_MAX = 65536 // limits.h:7:1: + PATH_MAX = 4096 // limits.h:13:1: + PIPE_BUF = 4096 // limits.h:14:1: + PTHREAD_DESTRUCTOR_ITERATIONS = 4 // local_lim.h:69:1: + PTHREAD_KEYS_MAX = 1024 // local_lim.h:64:1: + PTHREAD_STACK_MIN = 131072 // pthread_stack_min.h:20:1: + RE_DUP_MAX = 32767 // posix2_lim.h:88:1: + RTSIG_MAX = 32 // limits.h:19:1: + SCHAR_MAX = 127 // limits.h:75:1: + SCHAR_MIN = -128 // limits.h:73:1: + SEM_VALUE_MAX = 2147483647 // local_lim.h:99:1: + SHRT_MAX = 32767 // limits.h:106:1: + SHRT_MIN = -32768 // limits.h:104:1: + SSIZE_MAX = 9223372036854775807 // posix1_lim.h:169:1: + TTY_NAME_MAX = 32 // local_lim.h:87:1: + UCHAR_MAX = 255 // limits.h:82:1: + UINT_MAX = 4294967295 // limits.h:124:1: + ULLONG_MAX = 18446744073709551615 // limits.h:146:1: + ULONG_MAX = 18446744073709551615 // limits.h:135:1: + USHRT_MAX = 65535 // limits.h:113:1: + XATTR_LIST_MAX = 65536 // limits.h:17:1: + XATTR_NAME_MAX = 255 // limits.h:15:1: + XATTR_SIZE_MAX = 65536 // limits.h:16:1: + X_ABILP64 = 3 // :377:1: + X_ATFILE_SOURCE = 1 // features.h:353:1: + X_BITS_POSIX1_LIM_H = 1 // posix1_lim.h:25:1: + X_BITS_POSIX2_LIM_H = 1 // posix2_lim.h:23:1: + X_DEFAULT_SOURCE = 1 // features.h:238:1: + X_FEATURES_H = 1 // features.h:19:1: + X_FILE_OFFSET_BITS = 64 // :25:1: + X_GCC_LIMITS_H_ = 0 // limits.h:30:1: + X_LIBC_LIMITS_H_ = 1 // limits.h:23:1: + X_LIMITS_H___ = 0 // limits.h:60:1: + X_LINUX_LIMITS_H = 0 // limits.h:3:1: + X_LOONGARCH_ARCH = "loongarch64" // :214:1: + X_LOONGARCH_ARCH_LOONGARCH64 = 1 // :340:1: + X_LOONGARCH_FPSET = 32 // :265:1: + X_LOONGARCH_SIM = 3 // :233:1: + X_LOONGARCH_SPFPSET = 32 // :88:1: + X_LOONGARCH_SZINT = 32 // :230:1: + X_LOONGARCH_SZLONG = 64 // :388:1: + X_LOONGARCH_SZPTR = 64 // :200:1: + X_LOONGARCH_TUNE = "la464" // :245:1: + X_LOONGARCH_TUNE_LA464 = 1 // :63:1: + X_LP64 = 1 // :372:1: + X_POSIX2_BC_BASE_MAX = 99 // posix2_lim.h:27:1: + X_POSIX2_BC_DIM_MAX = 2048 // posix2_lim.h:30:1: + X_POSIX2_BC_SCALE_MAX = 99 // posix2_lim.h:33:1: + X_POSIX2_BC_STRING_MAX = 1000 // posix2_lim.h:36:1: + X_POSIX2_CHARCLASS_NAME_MAX = 14 // posix2_lim.h:55:1: + X_POSIX2_COLL_WEIGHTS_MAX = 2 // posix2_lim.h:40:1: + X_POSIX2_EXPR_NEST_MAX = 32 // posix2_lim.h:44:1: + X_POSIX2_LINE_MAX = 2048 // posix2_lim.h:47:1: + X_POSIX2_RE_DUP_MAX = 255 // posix2_lim.h:51:1: + X_POSIX_AIO_LISTIO_MAX = 2 // posix1_lim.h:32:1: + X_POSIX_AIO_MAX = 1 // posix1_lim.h:35:1: + X_POSIX_ARG_MAX = 4096 // posix1_lim.h:38:1: + X_POSIX_CHILD_MAX = 25 // posix1_lim.h:42:1: + X_POSIX_CLOCKRES_MIN = 20000000 // posix1_lim.h:157:1: + X_POSIX_C_SOURCE = 200809 // features.h:292:1: + X_POSIX_DELAYTIMER_MAX = 32 // posix1_lim.h:48:1: + X_POSIX_HOST_NAME_MAX = 255 // posix1_lim.h:52:1: + X_POSIX_LINK_MAX = 8 // posix1_lim.h:55:1: + X_POSIX_LOGIN_NAME_MAX = 9 // posix1_lim.h:58:1: + X_POSIX_MAX_CANON = 255 // posix1_lim.h:61:1: + X_POSIX_MAX_INPUT = 255 // posix1_lim.h:65:1: + X_POSIX_MQ_OPEN_MAX = 8 // posix1_lim.h:68:1: + X_POSIX_MQ_PRIO_MAX = 32 // posix1_lim.h:71:1: + X_POSIX_NAME_MAX = 14 // posix1_lim.h:74:1: + X_POSIX_NGROUPS_MAX = 8 // posix1_lim.h:78:1: + X_POSIX_OPEN_MAX = 20 // posix1_lim.h:85:1: + X_POSIX_PATH_MAX = 256 // posix1_lim.h:97:1: + X_POSIX_PIPE_BUF = 512 // posix1_lim.h:100:1: + X_POSIX_RE_DUP_MAX = 255 // posix1_lim.h:104:1: + X_POSIX_RTSIG_MAX = 8 // posix1_lim.h:107:1: + X_POSIX_SEM_NSEMS_MAX = 256 // posix1_lim.h:110:1: + X_POSIX_SEM_VALUE_MAX = 32767 // posix1_lim.h:113:1: + X_POSIX_SIGQUEUE_MAX = 32 // posix1_lim.h:116:1: + X_POSIX_SOURCE = 1 // features.h:290:1: + X_POSIX_SSIZE_MAX = 32767 // posix1_lim.h:119:1: + X_POSIX_STREAM_MAX = 8 // posix1_lim.h:122:1: + X_POSIX_SYMLINK_MAX = 255 // posix1_lim.h:125:1: + X_POSIX_SYMLOOP_MAX = 8 // posix1_lim.h:129:1: + X_POSIX_THREAD_DESTRUCTOR_ITERATIONS = 4 // local_lim.h:67:1: + X_POSIX_THREAD_KEYS_MAX = 128 // local_lim.h:62:1: + X_POSIX_THREAD_THREADS_MAX = 64 // local_lim.h:72:1: + X_POSIX_TIMER_MAX = 32 // posix1_lim.h:132:1: + X_POSIX_TTY_NAME_MAX = 9 // posix1_lim.h:135:1: + X_POSIX_TZNAME_MAX = 6 // posix1_lim.h:139:1: + X_STDC_PREDEF_H = 1 // :223:1: + X_SYS_CDEFS_H = 1 // cdefs.h:20:1: + Linux = 1 // :308:1: + Unix = 1 // :247:1: +) + +type Ptrdiff_t = int64 /* :3:26 */ + +type Size_t = uint64 /* :9:23 */ + +type Wchar_t = int32 /* :15:24 */ + +type X__int128_t = struct { + Flo int64 + Fhi int64 +} /* :21:43 */ // must match modernc.org/mathutil.Int128 +type X__uint128_t = struct { + Flo uint64 + Fhi uint64 +} /* :22:44 */ // must match modernc.org/mathutil.Int128 + +type X__builtin_va_list = uintptr /* :46:14 */ +type X__float128 = float64 /* :47:21 */ + +// Copyright (C) 1992-2023 Free Software Foundation, Inc. +// +// This file is part of GCC. +// +// GCC is free software; you can redistribute it and/or modify it under +// the terms of the GNU General Public License as published by the Free +// Software Foundation; either version 3, or (at your option) any later +// version. +// +// GCC is distributed in the hope that it will be useful, but WITHOUT ANY +// WARRANTY; without even the implied warranty of MERCHANTABILITY or +// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +// for more details. +// +// Under Section 7 of GPL version 3, you are granted additional +// permissions described in the GCC Runtime Library Exception, version +// 3.1, as published by the Free Software Foundation. +// +// You should have received a copy of the GNU General Public License and +// a copy of the GCC Runtime Library Exception along with this program; +// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see +// . + +// This administrivia gets added to the beginning of limits.h +// if the system has its own version of limits.h. + +// We use _GCC_LIMITS_H_ because we want this not to match +// any macros that the system's limits.h uses for its own purposes. + +// Use "..." so that we find syslimits.h only in this same directory. +// syslimits.h stands for the system's own limits.h file. +// If we can use it ok unmodified, then we install this text. +// If fixincludes fixes it, then the fixed version is installed +// instead of this text. + +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// ISO C99 Standard: 7.10/5.2.4.2.1 Sizes of integer types + +// Handle feature test macros at the start of a header. +// Copyright (C) 2016-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// This header is internal to glibc and should not be included outside +// of glibc headers. Headers including it must define +// __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION first. This header +// cannot have multiple include guards because ISO C feature test +// macros depend on the definition of the macro when an affected +// header is included, not when the first system header is +// included. + +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// These are defined by the user (or the compiler) +// to specify the desired environment: +// +// __STRICT_ANSI__ ISO Standard C. +// _ISOC99_SOURCE Extensions to ISO C89 from ISO C99. +// _ISOC11_SOURCE Extensions to ISO C99 from ISO C11. +// _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X. +// __STDC_WANT_LIB_EXT2__ +// Extensions to ISO C99 from TR 27431-2:2010. +// __STDC_WANT_IEC_60559_BFP_EXT__ +// Extensions to ISO C11 from TS 18661-1:2014. +// __STDC_WANT_IEC_60559_FUNCS_EXT__ +// Extensions to ISO C11 from TS 18661-4:2015. +// __STDC_WANT_IEC_60559_TYPES_EXT__ +// Extensions to ISO C11 from TS 18661-3:2015. +// __STDC_WANT_IEC_60559_EXT__ +// ISO C2X interfaces defined only in Annex F. +// +// _POSIX_SOURCE IEEE Std 1003.1. +// _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2; +// if >=199309L, add IEEE Std 1003.1b-1993; +// if >=199506L, add IEEE Std 1003.1c-1995; +// if >=200112L, all of IEEE 1003.1-2004 +// if >=200809L, all of IEEE 1003.1-2008 +// _XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if +// Single Unix conformance is wanted, to 600 for the +// sixth revision, to 700 for the seventh revision. +// _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions. +// _LARGEFILE_SOURCE Some more functions for correct standard I/O. +// _LARGEFILE64_SOURCE Additional functionality from LFS for large files. +// _FILE_OFFSET_BITS=N Select default filesystem interface. +// _ATFILE_SOURCE Additional *at interfaces. +// _DYNAMIC_STACK_SIZE_SOURCE Select correct (but non compile-time constant) +// MINSIGSTKSZ, SIGSTKSZ and PTHREAD_STACK_MIN. +// _GNU_SOURCE All of the above, plus GNU extensions. +// _DEFAULT_SOURCE The default set of features (taking precedence over +// __STRICT_ANSI__). +// +// _FORTIFY_SOURCE Add security hardening to many library functions. +// Set to 1, 2 or 3; 3 performs stricter checks than 2, which +// performs stricter checks than 1. +// +// _REENTRANT, _THREAD_SAFE +// Obsolete; equivalent to _POSIX_C_SOURCE=199506L. +// +// The `-ansi' switch to the GNU C compiler, and standards conformance +// options such as `-std=c99', define __STRICT_ANSI__. If none of +// these are defined, or if _DEFAULT_SOURCE is defined, the default is +// to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to +// 200809L, as well as enabling miscellaneous functions from BSD and +// SVID. If more than one of these are defined, they accumulate. For +// example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together +// give you ISO C, 1003.1, and 1003.2, but nothing else. +// +// These are defined by this file and are used by the +// header files to decide what to declare or define: +// +// __GLIBC_USE (F) Define things from feature set F. This is defined +// to 1 or 0; the subsequent macros are either defined +// or undefined, and those tests should be moved to +// __GLIBC_USE. +// __USE_ISOC11 Define ISO C11 things. +// __USE_ISOC99 Define ISO C99 things. +// __USE_ISOC95 Define ISO C90 AMD1 (C95) things. +// __USE_ISOCXX11 Define ISO C++11 things. +// __USE_POSIX Define IEEE Std 1003.1 things. +// __USE_POSIX2 Define IEEE Std 1003.2 things. +// __USE_POSIX199309 Define IEEE Std 1003.1, and .1b things. +// __USE_POSIX199506 Define IEEE Std 1003.1, .1b, .1c and .1i things. +// __USE_XOPEN Define XPG things. +// __USE_XOPEN_EXTENDED Define X/Open Unix things. +// __USE_UNIX98 Define Single Unix V2 things. +// __USE_XOPEN2K Define XPG6 things. +// __USE_XOPEN2KXSI Define XPG6 XSI things. +// __USE_XOPEN2K8 Define XPG7 things. +// __USE_XOPEN2K8XSI Define XPG7 XSI things. +// __USE_LARGEFILE Define correct standard I/O things. +// __USE_LARGEFILE64 Define LFS things with separate names. +// __USE_FILE_OFFSET64 Define 64bit interface as default. +// __USE_MISC Define things from 4.3BSD or System V Unix. +// __USE_ATFILE Define *at interfaces and AT_* constants for them. +// __USE_DYNAMIC_STACK_SIZE Define correct (but non compile-time constant) +// MINSIGSTKSZ, SIGSTKSZ and PTHREAD_STACK_MIN. +// __USE_GNU Define GNU extensions. +// __USE_FORTIFY_LEVEL Additional security measures used, according to level. +// +// The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are +// defined by this file unconditionally. `__GNU_LIBRARY__' is provided +// only for compatibility. All new code should use the other symbols +// to test for features. +// +// All macros listed above as possibly being defined by this file are +// explicitly undefined if they are not explicitly defined. +// Feature-test macros that are not defined by the user or compiler +// but are implied by the other feature-test macros defined (or by the +// lack of any definitions) are defined by the file. +// +// ISO C feature test macros depend on the definition of the macro +// when an affected header is included, not when the first system +// header is included, and so they are handled in +// , which does not have a multiple include +// guard. Feature test macros that can be handled from the first +// system header included are handled here. + +// Undefine everything, so we get a clean slate. + +// Suppress kernel-name space pollution unless user expressedly asks +// for it. + +// Convenience macro to test the version of gcc. +// Use like this: +// #if __GNUC_PREREQ (2,8) +// ... code requiring gcc 2.8 or later ... +// #endif +// Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was +// added in 2.0. + +// Similarly for clang. Features added to GCC after version 4.2 may +// or may not also be available in clang, and clang's definitions of +// __GNUC(_MINOR)__ are fixed at 4 and 2 respectively. Not all such +// features can be queried via __has_extension/__has_feature. + +// Whether to use feature set F. + +// _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for +// _DEFAULT_SOURCE. If _DEFAULT_SOURCE is present we do not +// issue a warning; the expectation is that the source is being +// transitioned to use the new macro. + +// If _GNU_SOURCE was defined by the user, turn on all the other features. + +// If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined, +// define _DEFAULT_SOURCE. + +// This is to enable the ISO C2X extension. + +// This is to enable the ISO C11 extension. + +// This is to enable the ISO C99 extension. + +// This is to enable the ISO C90 Amendment 1:1995 extension. + +// If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE +// is defined, use POSIX.1-2008 (or another version depending on +// _XOPEN_SOURCE). + +// Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be +// defined in all multithreaded code. GNU libc has not required this +// for many years. We now treat them as compatibility synonyms for +// _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with +// comprehensive support for multithreaded code. Using them never +// lowers the selected level of POSIX conformance, only raises it. + +// Features part to handle 64-bit time_t support. +// Copyright (C) 2021-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// We need to know the word size in order to check the time size. +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Bit size of the time_t type at glibc build time, general case. +// Copyright (C) 2018-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Size in bits of the 'time_t' type of the default ABI. + +// The function 'gets' existed in C89, but is impossible to use +// safely. It has been removed from ISO C11 and ISO C++14. Note: for +// compatibility with various implementations of , this test +// must consider only the value of __cplusplus when compiling C++. + +// GNU formerly extended the scanf functions with modified format +// specifiers %as, %aS, and %a[...] that allocate a buffer for the +// input using malloc. This extension conflicts with ISO C99, which +// defines %a as a standalone format specifier that reads a floating- +// point number; moreover, POSIX.1-2008 provides the same feature +// using the modifier letter 'm' instead (%ms, %mS, %m[...]). +// +// We now follow C99 unless GNU extensions are active and the compiler +// is specifically in C89 or C++98 mode (strict or not). For +// instance, with GCC, -std=gnu11 will have C99-compliant scanf with +// or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the +// old extension. + +// ISO C2X added support for a 0b or 0B prefix on binary constants as +// inputs to strtol-family functions (base 0 or 2). This macro is +// used to condition redirection in headers to allow that redirection +// to be disabled when building those functions, despite _GNU_SOURCE +// being defined. + +// Get definitions of __STDC_* predefined macros, if the compiler has +// not preincluded this header automatically. +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// This macro indicates that the installed library is the GNU C Library. +// For historic reasons the value now is 6 and this will stay from now +// on. The use of this variable is deprecated. Use __GLIBC__ and +// __GLIBC_MINOR__ now (see below) when you want to test for a specific +// GNU C library version and use the values in to get +// the sonames of the shared libraries. + +// Major and minor version number of the GNU C library package. Use +// these macros to test for features in specific releases. + +// This is here only because every header file already includes this one. +// Copyright (C) 1992-2023 Free Software Foundation, Inc. +// Copyright The GNU Toolchain Authors. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// We are almost always included from features.h. + +// The GNU libc does not support any K&R compilers or the traditional mode +// of ISO C compilers anymore. Check for some of the combinations not +// supported anymore. + +// Some user header file might have defined this before. + +// Compilers that lack __has_attribute may object to +// #if defined __has_attribute && __has_attribute (...) +// even though they do not need to evaluate the right-hand side of the &&. +// Similarly for __has_builtin, etc. + +// All functions, except those with callbacks or those that +// synchronize memory, are leaf functions. + +// GCC can always grok prototypes. For C++ programs we add throw() +// to help it optimize the function calls. But this only works with +// gcc 2.8.x and egcs. For gcc 3.4 and up we even mark C functions +// as non-throwing using a function attribute since programs can use +// the -fexceptions options for C code as well. + +// These two macros are not used in glibc anymore. They are kept here +// only because some other projects expect the macros to be defined. + +// For these things, GCC behaves the ANSI way normally, +// and the non-ANSI way under -traditional. + +// This is not a typedef so `const __ptr_t' does the right thing. + +// C++ needs to know that types and declarations are C, not C++. + +// Fortify support. + +// Use __builtin_dynamic_object_size at _FORTIFY_SOURCE=3 when available. + +// Support for flexible arrays. +// Headers that should use flexible arrays only if they're "real" +// (e.g. only if they won't affect sizeof()) should test +// #if __glibc_c99_flexarr_available. + +// __asm__ ("xyz") is used throughout the headers to rename functions +// at the assembly language level. This is wrapped by the __REDIRECT +// macro, in order to support compilers that can do this some other +// way. When compilers don't support asm-names at all, we have to do +// preprocessor tricks instead (which don't have exactly the right +// semantics, but it's the best we can do). +// +// Example: +// int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid); + +// +// #elif __SOME_OTHER_COMPILER__ +// +// # define __REDIRECT(name, proto, alias) name proto; _Pragma("let " #name " = " #alias) + +// GCC and clang have various useful declarations that can be made with +// the '__attribute__' syntax. All of the ways we use this do fine if +// they are omitted for compilers that don't understand it. + +// At some point during the gcc 2.96 development the `malloc' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// Tell the compiler which arguments to an allocation function +// indicate the size of the allocation. + +// Tell the compiler which argument to an allocation function +// indicates the alignment of the allocation. + +// At some point during the gcc 2.96 development the `pure' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// This declaration tells the compiler that the value is constant. + +// At some point during the gcc 3.1 development the `used' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// Since version 3.2, gcc allows marking deprecated functions. + +// Since version 4.5, gcc also allows one to specify the message printed +// when a deprecated function is used. clang claims to be gcc 4.2, but +// may also support this feature. + +// At some point during the gcc 2.8 development the `format_arg' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. +// If several `format_arg' attributes are given for the same function, in +// gcc-3.0 and older, all but the last one are ignored. In newer gccs, +// all designated arguments are considered. + +// At some point during the gcc 2.97 development the `strfmon' format +// attribute for functions was introduced. We don't want to use it +// unconditionally (although this would be possible) since it +// generates warnings. + +// The nonnull function attribute marks pointer parameters that +// must not be NULL. This has the name __nonnull in glibc, +// and __attribute_nonnull__ in files shared with Gnulib to avoid +// collision with a different __nonnull in DragonFlyBSD 5.9. + +// The returns_nonnull function attribute marks the return type of the function +// as always being non-null. + +// If fortification mode, we warn about unused results of certain +// function calls which can lead to problems. + +// Forces a function to be always inlined. +// The Linux kernel defines __always_inline in stddef.h (283d7573), and +// it conflicts with this definition. Therefore undefine it first to +// allow either header to be included first. + +// Associate error messages with the source location of the call site rather +// than with the source location inside the function. + +// GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99 +// inline semantics, unless -fgnu89-inline is used. Using __GNUC_STDC_INLINE__ +// or __GNUC_GNU_INLINE is not a good enough check for gcc because gcc versions +// older than 4.3 may define these macros and still not guarantee GNU inlining +// semantics. +// +// clang++ identifies itself as gcc-4.2, but has support for GNU inlining +// semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and +// __GNUC_GNU_INLINE__ macro definitions. + +// GCC 4.3 and above allow passing all anonymous arguments of an +// __extern_always_inline function to some other vararg function. + +// It is possible to compile containing GCC extensions even if GCC is +// run in pedantic mode if the uses are carefully marked using the +// `__extension__' keyword. But this is not generally available before +// version 2.8. + +// __restrict is known in EGCS 1.2 and above, and in clang. +// It works also in C++ mode (outside of arrays), but only when spelled +// as '__restrict', not 'restrict'. + +// ISO C99 also allows to declare arrays as non-overlapping. The syntax is +// array_name[restrict] +// GCC 3.1 and clang support this. +// This syntax is not usable in C++ mode. + +// Describes a char array whose address can safely be passed as the first +// argument to strncpy and strncat, as the char array is not necessarily +// a NUL-terminated string. + +// Undefine (also defined in libc-symbols.h). +// Copies attributes from the declaration or type referenced by +// the argument. + +// Gnulib avoids including these, as they don't work on non-glibc or +// older glibc platforms. +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Properties of long double type. ldbl-128 version. +// Copyright (C) 2016-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// long double is distinct from double, so there is nothing to +// define here. + +// __glibc_macro_warning (MESSAGE) issues warning MESSAGE. This is +// intended for use in preprocessor macros. +// +// Note: MESSAGE must be a _single_ string; concatenation of string +// literals is not supported. + +// Generic selection (ISO C11) is a C-only feature, available in GCC +// since version 4.9. Previous versions do not provide generic +// selection, even though they might set __STDC_VERSION__ to 201112L, +// when in -std=c11 mode. Thus, we must check for !defined __GNUC__ +// when testing __STDC_VERSION__ for generic selection support. +// On the other hand, Clang also defines __GNUC__, so a clang-specific +// check is required to enable the use of generic selection. + +// Designates a 1-based positional argument ref-index of pointer type +// that can be used to access size-index elements of the pointed-to +// array according to access mode, or at least one element when +// size-index is not provided: +// access (access-mode, [, ]) +// For _FORTIFY_SOURCE == 3 we use __builtin_dynamic_object_size, which may +// use the access attribute to get object sizes from function definition +// arguments, so we can't use them on functions we fortify. Drop the object +// size hints for such functions. + +// Designates dealloc as a function to call to deallocate objects +// allocated by the declared function. + +// Specify that a function such as setjmp or vfork may return +// twice. + +// If we don't have __REDIRECT, prototypes will be missing if +// __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64]. + +// Decide whether we can define 'extern inline' functions in headers. + +// This is here only because every header file already includes this one. +// Get the definitions of all the appropriate `__stub_FUNCTION' symbols. +// contains `#define __stub_FUNCTION' when FUNCTION is a stub +// that will always return failure (and set errno to ENOSYS). +// This file is automatically generated. +// This file selects the right generated file of `__stub_FUNCTION' macros +// based on the architecture being compiled for. + +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// This file is automatically generated. +// It defines a symbol `__stub_FUNCTION' for each function +// in the C library which is a stub, meaning it will fail +// every time called, usually setting errno to ENOSYS. + +// ISO/IEC TR 24731-2:2010 defines the __STDC_WANT_LIB_EXT2__ +// macro. + +// ISO/IEC TS 18661-1:2014 defines the __STDC_WANT_IEC_60559_BFP_EXT__ +// macro. Most but not all symbols enabled by that macro in TS +// 18661-1 are enabled unconditionally in C2X. In C2X, the symbols in +// Annex F still require a new feature test macro +// __STDC_WANT_IEC_60559_EXT__ instead (C2X does not define +// __STDC_WANT_IEC_60559_BFP_EXT__), while a few features from TS +// 18661-1 are not included in C2X (and thus should depend on +// __STDC_WANT_IEC_60559_BFP_EXT__ even when C2X features are +// enabled). +// +// __GLIBC_USE (IEC_60559_BFP_EXT) controls those features from TS +// 18661-1 not included in C2X. +// +// __GLIBC_USE (IEC_60559_BFP_EXT_C2X) controls those features from TS +// 18661-1 that are also included in C2X (with no feature test macro +// required in C2X). +// +// __GLIBC_USE (IEC_60559_EXT) controls those features from TS 18661-1 +// that are included in C2X but conditional on +// __STDC_WANT_IEC_60559_EXT__. (There are currently no features +// conditional on __STDC_WANT_IEC_60559_EXT__ that are not in TS +// 18661-1.) + +// ISO/IEC TS 18661-4:2015 defines the +// __STDC_WANT_IEC_60559_FUNCS_EXT__ macro. Other than the reduction +// functions, the symbols from this TS are enabled unconditionally in +// C2X. + +// ISO/IEC TS 18661-3:2015 defines the +// __STDC_WANT_IEC_60559_TYPES_EXT__ macro. + +// Maximum length of any multibyte character in any locale. +// We define this value here since the gcc header does not define +// the correct value. + +// If we are not using GNU CC we have to define all the symbols ourself. +// Otherwise use gcc's definitions (see below). + +// Get the compiler's limits.h, which defines almost all the ISO constants. +// +// We put this #include_next outside the double inclusion check because +// it should be possible to include this file more than once and still get +// the definitions from gcc's header. + +// The files in some gcc versions don't define LLONG_MIN, +// LLONG_MAX, and ULLONG_MAX. Instead only the values gcc defined for +// ages are available. + +// The integer width macros are not defined by GCC's before +// GCC 7, or if _GNU_SOURCE rather than +// __STDC_WANT_IEC_60559_BFP_EXT__ is used to enable this feature. + +// The macros for _Bool are not defined by GCC's before GCC +// 11, or if _GNU_SOURCE is defined rather than enabling C2x support +// with -std. + +// POSIX adds things to . +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// POSIX Standard: 2.9.2 Minimum Values Added to +// +// Never include this file directly; use instead. + +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// These are the standard-mandated minimum values. + +// Minimum number of operations in one list I/O call. + +// Minimal number of outstanding asynchronous I/O operations. + +// Maximum length of arguments to `execve', including environment. + +// Maximum simultaneous processes per real user ID. + +// Minimal number of timer expiration overruns. + +// Maximum length of a host name (not including the terminating null) +// as returned from the GETHOSTNAME function. + +// Maximum link count of a file. + +// Maximum length of login name. + +// Number of bytes in a terminal canonical input queue. + +// Number of bytes for which space will be +// available in a terminal input queue. + +// Maximum number of message queues open for a process. + +// Maximum number of supported message priorities. + +// Number of bytes in a filename. + +// Number of simultaneous supplementary group IDs per process. + +// Number of files one process can have open at once. + +// Number of bytes in a pathname. + +// Number of bytes than can be written atomically to a pipe. + +// The number of repeated occurrences of a BRE permitted by the +// REGEXEC and REGCOMP functions when using the interval notation. + +// Minimal number of realtime signals reserved for the application. + +// Number of semaphores a process can have. + +// Maximal value of a semaphore. + +// Number of pending realtime signals. + +// Largest value of a `ssize_t'. + +// Number of streams a process can have open at once. + +// The number of bytes in a symbolic link. + +// The number of symbolic links that can be traversed in the +// resolution of a pathname in the absence of a loop. + +// Number of timer for a process. + +// Maximum number of characters in a tty name. + +// Maximum length of a time zone abbreviation (element of 'tzname'). + +// Maximum clock resolution in nanoseconds. + +// Get the implementation-specific values for the above. +// Minimum guaranteed maximum values for system limits. Linux version. +// Copyright (C) 1993-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public License as +// published by the Free Software Foundation; either version 2.1 of the +// License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; see the file COPYING.LIB. If +// not, see . + +// The kernel header pollutes the namespace with the NR_OPEN symbol +// and defines LINK_MAX although filesystems have different maxima. A +// similar thing is true for OPEN_MAX: the limit can be changed at +// runtime and therefore the macro must not be defined. Remove this +// after including the header if necessary. + +// The kernel sources contain a file with all the needed information. +// SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note + +// Have to remove NR_OPEN? +// Have to remove LINK_MAX? +// Have to remove OPEN_MAX? +// Have to remove ARG_MAX? + +// The number of data keys per process. +// This is the value this implementation supports. + +// Controlling the iterations of destructors for thread-specific data. +// Number of iterations this implementation does. + +// The number of threads per process. +// We have no predefined limit on the number of threads. + +// Maximum amount by which a process can decrease its asynchronous I/O +// priority level. + +// Arrange for the definition of PTHREAD_STACK_MIN. +// Definition of PTHREAD_STACK_MIN, possibly dynamic. +// Copyright (C) 2021-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Definition of PTHREAD_STACK_MIN. LoongArch Linux version. +// Copyright (C) 2022-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public License as +// published by the Free Software Foundation; either version 2.1 of the +// License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library. If not, see +// . + +// Minimum size for a thread. At least two pages with 64k pages. + +// Maximum number of timer expiration overruns. + +// Maximum tty name length. + +// Maximum login name length. This is arbitrary. + +// Maximum host name length. + +// Maximum message queue priority level. + +// Maximum value the semaphore can have. + +// ssize_t is not formally required to be the signed type +// corresponding to size_t, but it is for all configurations supported +// by glibc. + +// This value is a guaranteed minimum maximum. +// The current maximum can be got from `sysconf'. + +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; include instead. + +// The maximum `ibase' and `obase' values allowed by the `bc' utility. + +// The maximum number of elements allowed in an array by the `bc' utility. + +// The maximum `scale' value allowed by the `bc' utility. + +// The maximum length of a string constant accepted by the `bc' utility. + +// The maximum number of weights that can be assigned to an entry of +// the LC_COLLATE `order' keyword in the locale definition file. + +// The maximum number of expressions that can be nested +// within parentheses by the `expr' utility. + +// The maximum length, in bytes, of an input line. + +// The maximum number of repeated occurrences of a regular expression +// permitted when using the interval notation `\{M,N\}'. + +// The maximum number of bytes in a character class name. We have no +// fixed limit, 2048 is a high number. + +// These values are implementation-specific, +// and may vary within the implementation. +// Their precise values can be obtained from sysconf. + +// This value is defined like this in regex.h. + +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// +// This file is part of GCC. +// +// GCC is free software; you can redistribute it and/or modify it under +// the terms of the GNU General Public License as published by the Free +// Software Foundation; either version 3, or (at your option) any later +// version. +// +// GCC is distributed in the hope that it will be useful, but WITHOUT ANY +// WARRANTY; without even the implied warranty of MERCHANTABILITY or +// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +// for more details. +// +// Under Section 7 of GPL version 3, you are granted additional +// permissions described in the GCC Runtime Library Exception, version +// 3.1, as published by the Free Software Foundation. +// +// You should have received a copy of the GNU General Public License and +// a copy of the GCC Runtime Library Exception along with this program; +// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see +// . + +// Number of bits in a `char'. + +// Maximum length of a multibyte character. + +// Minimum and maximum values a `signed char' can hold. + +// Maximum value an `unsigned char' can hold. (Minimum is 0). + +// Minimum and maximum values a `char' can hold. + +// Minimum and maximum values a `signed short int' can hold. + +// Maximum value an `unsigned short int' can hold. (Minimum is 0). + +// Minimum and maximum values a `signed int' can hold. + +// Maximum value an `unsigned int' can hold. (Minimum is 0). + +// Minimum and maximum values a `signed long int' can hold. +// (Same as `int'). + +// Maximum value an `unsigned long int' can hold. (Minimum is 0). + +// Minimum and maximum values a `signed long long int' can hold. + +// Maximum value an `unsigned long long int' can hold. (Minimum is 0). + +// This administrivia gets added to the end of limits.h +// if the system has its own version of limits.h. + +var _ int8 /* gen.c:2:13: */ diff --git a/vendor/modernc.org/libc/limits/limits_linux_mips64le.go b/vendor/modernc.org/libc/limits/limits_linux_mips64le.go new file mode 100644 index 000000000..a9e1bafde --- /dev/null +++ b/vendor/modernc.org/libc/limits/limits_linux_mips64le.go @@ -0,0 +1,943 @@ +// Code generated by 'ccgo limits/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o limits/limits_linux_amd64.go -pkgname limits', DO NOT EDIT. + +package limits + +import ( + "math" + "reflect" + "sync/atomic" + "unsafe" +) + +var _ = math.Pi +var _ reflect.Kind +var _ atomic.Value +var _ unsafe.Pointer + +const ( + AIO_PRIO_DELTA_MAX = 20 // local_lim.h:78:1: + BC_BASE_MAX = 99 // posix2_lim.h:63:1: + BC_DIM_MAX = 2048 // posix2_lim.h:66:1: + BC_SCALE_MAX = 99 // posix2_lim.h:69:1: + BC_STRING_MAX = 1000 // posix2_lim.h:72:1: + CHARCLASS_NAME_MAX = 2048 // posix2_lim.h:84:1: + CHAR_BIT = 8 // limits.h:64:1: + CHAR_MAX = 127 // limits.h:99:1: + CHAR_MIN = -128 // limits.h:97:1: + COLL_WEIGHTS_MAX = 255 // posix2_lim.h:75:1: + DELAYTIMER_MAX = 2147483647 // local_lim.h:84:1: + EXPR_NEST_MAX = 32 // posix2_lim.h:78:1: + HOST_NAME_MAX = 64 // local_lim.h:93:1: + INT_MAX = 2147483647 // limits.h:120:1: + INT_MIN = -2147483648 // limits.h:118:1: + LINE_MAX = 2048 // posix2_lim.h:81:1: + LLONG_MAX = 9223372036854775807 // limits.h:142:1: + LLONG_MIN = -9223372036854775808 // limits.h:140:1: + LOGIN_NAME_MAX = 256 // local_lim.h:90:1: + LONG_MAX = 9223372036854775807 // limits.h:131:1: + LONG_MIN = -9223372036854775808 // limits.h:129:1: + MAX_CANON = 255 // limits.h:10:1: + MAX_INPUT = 255 // limits.h:11:1: + MB_LEN_MAX = 16 // limits.h:32:1: + MQ_PRIO_MAX = 32768 // local_lim.h:96:1: + NAME_MAX = 255 // limits.h:12:1: + NGROUPS_MAX = 65536 // limits.h:7:1: + PATH_MAX = 4096 // limits.h:13:1: + PIPE_BUF = 4096 // limits.h:14:1: + PTHREAD_DESTRUCTOR_ITERATIONS = 4 // local_lim.h:69:1: + PTHREAD_KEYS_MAX = 1024 // local_lim.h:64:1: + PTHREAD_STACK_MIN = 16384 // local_lim.h:81:1: + RE_DUP_MAX = 32767 // posix2_lim.h:88:1: + RTSIG_MAX = 32 // limits.h:19:1: + SCHAR_MAX = 127 // limits.h:75:1: + SCHAR_MIN = -128 // limits.h:73:1: + SEM_VALUE_MAX = 2147483647 // local_lim.h:99:1: + SHRT_MAX = 32767 // limits.h:106:1: + SHRT_MIN = -32768 // limits.h:104:1: + SSIZE_MAX = 9223372036854775807 // posix1_lim.h:169:1: + TTY_NAME_MAX = 32 // local_lim.h:87:1: + UCHAR_MAX = 255 // limits.h:82:1: + UINT_MAX = 4294967295 // limits.h:124:1: + ULLONG_MAX = 18446744073709551615 // limits.h:146:1: + ULONG_MAX = 18446744073709551615 // limits.h:135:1: + USHRT_MAX = 65535 // limits.h:113:1: + XATTR_LIST_MAX = 65536 // limits.h:17:1: + XATTR_NAME_MAX = 255 // limits.h:15:1: + XATTR_SIZE_MAX = 65536 // limits.h:16:1: + X_ATFILE_SOURCE = 1 // features.h:342:1: + X_BITS_POSIX1_LIM_H = 1 // posix1_lim.h:25:1: + X_BITS_POSIX2_LIM_H = 1 // posix2_lim.h:23:1: + X_DEFAULT_SOURCE = 1 // features.h:227:1: + X_FEATURES_H = 1 // features.h:19:1: + X_FILE_OFFSET_BITS = 64 // :25:1: + X_GCC_LIMITS_H_ = 0 // limits.h:30:1: + X_LIBC_LIMITS_H_ = 1 // limits.h:23:1: + X_LIMITS_H___ = 0 // limits.h:60:1: + X_LINUX_LIMITS_H = 0 // limits.h:3:1: + X_LP64 = 1 // :284:1: + X_POSIX2_BC_BASE_MAX = 99 // posix2_lim.h:27:1: + X_POSIX2_BC_DIM_MAX = 2048 // posix2_lim.h:30:1: + X_POSIX2_BC_SCALE_MAX = 99 // posix2_lim.h:33:1: + X_POSIX2_BC_STRING_MAX = 1000 // posix2_lim.h:36:1: + X_POSIX2_CHARCLASS_NAME_MAX = 14 // posix2_lim.h:55:1: + X_POSIX2_COLL_WEIGHTS_MAX = 2 // posix2_lim.h:40:1: + X_POSIX2_EXPR_NEST_MAX = 32 // posix2_lim.h:44:1: + X_POSIX2_LINE_MAX = 2048 // posix2_lim.h:47:1: + X_POSIX2_RE_DUP_MAX = 255 // posix2_lim.h:51:1: + X_POSIX_AIO_LISTIO_MAX = 2 // posix1_lim.h:32:1: + X_POSIX_AIO_MAX = 1 // posix1_lim.h:35:1: + X_POSIX_ARG_MAX = 4096 // posix1_lim.h:38:1: + X_POSIX_CHILD_MAX = 25 // posix1_lim.h:42:1: + X_POSIX_CLOCKRES_MIN = 20000000 // posix1_lim.h:157:1: + X_POSIX_C_SOURCE = 200809 // features.h:281:1: + X_POSIX_DELAYTIMER_MAX = 32 // posix1_lim.h:48:1: + X_POSIX_HOST_NAME_MAX = 255 // posix1_lim.h:52:1: + X_POSIX_LINK_MAX = 8 // posix1_lim.h:55:1: + X_POSIX_LOGIN_NAME_MAX = 9 // posix1_lim.h:58:1: + X_POSIX_MAX_CANON = 255 // posix1_lim.h:61:1: + X_POSIX_MAX_INPUT = 255 // posix1_lim.h:65:1: + X_POSIX_MQ_OPEN_MAX = 8 // posix1_lim.h:68:1: + X_POSIX_MQ_PRIO_MAX = 32 // posix1_lim.h:71:1: + X_POSIX_NAME_MAX = 14 // posix1_lim.h:74:1: + X_POSIX_NGROUPS_MAX = 8 // posix1_lim.h:78:1: + X_POSIX_OPEN_MAX = 20 // posix1_lim.h:85:1: + X_POSIX_PATH_MAX = 256 // posix1_lim.h:97:1: + X_POSIX_PIPE_BUF = 512 // posix1_lim.h:100:1: + X_POSIX_RE_DUP_MAX = 255 // posix1_lim.h:104:1: + X_POSIX_RTSIG_MAX = 8 // posix1_lim.h:107:1: + X_POSIX_SEM_NSEMS_MAX = 256 // posix1_lim.h:110:1: + X_POSIX_SEM_VALUE_MAX = 32767 // posix1_lim.h:113:1: + X_POSIX_SIGQUEUE_MAX = 32 // posix1_lim.h:116:1: + X_POSIX_SOURCE = 1 // features.h:279:1: + X_POSIX_SSIZE_MAX = 32767 // posix1_lim.h:119:1: + X_POSIX_STREAM_MAX = 8 // posix1_lim.h:122:1: + X_POSIX_SYMLINK_MAX = 255 // posix1_lim.h:125:1: + X_POSIX_SYMLOOP_MAX = 8 // posix1_lim.h:129:1: + X_POSIX_THREAD_DESTRUCTOR_ITERATIONS = 4 // local_lim.h:67:1: + X_POSIX_THREAD_KEYS_MAX = 128 // local_lim.h:62:1: + X_POSIX_THREAD_THREADS_MAX = 64 // local_lim.h:72:1: + X_POSIX_TIMER_MAX = 32 // posix1_lim.h:132:1: + X_POSIX_TTY_NAME_MAX = 9 // posix1_lim.h:135:1: + X_POSIX_TZNAME_MAX = 6 // posix1_lim.h:139:1: + X_STDC_PREDEF_H = 1 // :162:1: + X_SYS_CDEFS_H = 1 // cdefs.h:19:1: + Linux = 1 // :231:1: + Unix = 1 // :177:1: +) + +type Ptrdiff_t = int64 /* :3:26 */ + +type Size_t = uint64 /* :9:23 */ + +type Wchar_t = int32 /* :15:24 */ + +type X__int128_t = struct { + Flo int64 + Fhi int64 +} /* :21:43 */ // must match modernc.org/mathutil.Int128 +type X__uint128_t = struct { + Flo uint64 + Fhi uint64 +} /* :22:44 */ // must match modernc.org/mathutil.Int128 + +type X__builtin_va_list = uintptr /* :46:14 */ +type X__float128 = float64 /* :47:21 */ + +// Copyright (C) 1992-2020 Free Software Foundation, Inc. +// +// This file is part of GCC. +// +// GCC is free software; you can redistribute it and/or modify it under +// the terms of the GNU General Public License as published by the Free +// Software Foundation; either version 3, or (at your option) any later +// version. +// +// GCC is distributed in the hope that it will be useful, but WITHOUT ANY +// WARRANTY; without even the implied warranty of MERCHANTABILITY or +// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +// for more details. +// +// Under Section 7 of GPL version 3, you are granted additional +// permissions described in the GCC Runtime Library Exception, version +// 3.1, as published by the Free Software Foundation. +// +// You should have received a copy of the GNU General Public License and +// a copy of the GCC Runtime Library Exception along with this program; +// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see +// . + +// This administrivia gets added to the beginning of limits.h +// if the system has its own version of limits.h. + +// We use _GCC_LIMITS_H_ because we want this not to match +// any macros that the system's limits.h uses for its own purposes. + +// Use "..." so that we find syslimits.h only in this same directory. +// syslimits.h stands for the system's own limits.h file. +// If we can use it ok unmodified, then we install this text. +// If fixincludes fixes it, then the fixed version is installed +// instead of this text. + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// ISO C99 Standard: 7.10/5.2.4.2.1 Sizes of integer types + +// Handle feature test macros at the start of a header. +// Copyright (C) 2016-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// This header is internal to glibc and should not be included outside +// of glibc headers. Headers including it must define +// __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION first. This header +// cannot have multiple include guards because ISO C feature test +// macros depend on the definition of the macro when an affected +// header is included, not when the first system header is +// included. + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// These are defined by the user (or the compiler) +// to specify the desired environment: +// +// __STRICT_ANSI__ ISO Standard C. +// _ISOC99_SOURCE Extensions to ISO C89 from ISO C99. +// _ISOC11_SOURCE Extensions to ISO C99 from ISO C11. +// _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X. +// __STDC_WANT_LIB_EXT2__ +// Extensions to ISO C99 from TR 27431-2:2010. +// __STDC_WANT_IEC_60559_BFP_EXT__ +// Extensions to ISO C11 from TS 18661-1:2014. +// __STDC_WANT_IEC_60559_FUNCS_EXT__ +// Extensions to ISO C11 from TS 18661-4:2015. +// __STDC_WANT_IEC_60559_TYPES_EXT__ +// Extensions to ISO C11 from TS 18661-3:2015. +// +// _POSIX_SOURCE IEEE Std 1003.1. +// _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2; +// if >=199309L, add IEEE Std 1003.1b-1993; +// if >=199506L, add IEEE Std 1003.1c-1995; +// if >=200112L, all of IEEE 1003.1-2004 +// if >=200809L, all of IEEE 1003.1-2008 +// _XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if +// Single Unix conformance is wanted, to 600 for the +// sixth revision, to 700 for the seventh revision. +// _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions. +// _LARGEFILE_SOURCE Some more functions for correct standard I/O. +// _LARGEFILE64_SOURCE Additional functionality from LFS for large files. +// _FILE_OFFSET_BITS=N Select default filesystem interface. +// _ATFILE_SOURCE Additional *at interfaces. +// _GNU_SOURCE All of the above, plus GNU extensions. +// _DEFAULT_SOURCE The default set of features (taking precedence over +// __STRICT_ANSI__). +// +// _FORTIFY_SOURCE Add security hardening to many library functions. +// Set to 1 or 2; 2 performs stricter checks than 1. +// +// _REENTRANT, _THREAD_SAFE +// Obsolete; equivalent to _POSIX_C_SOURCE=199506L. +// +// The `-ansi' switch to the GNU C compiler, and standards conformance +// options such as `-std=c99', define __STRICT_ANSI__. If none of +// these are defined, or if _DEFAULT_SOURCE is defined, the default is +// to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to +// 200809L, as well as enabling miscellaneous functions from BSD and +// SVID. If more than one of these are defined, they accumulate. For +// example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together +// give you ISO C, 1003.1, and 1003.2, but nothing else. +// +// These are defined by this file and are used by the +// header files to decide what to declare or define: +// +// __GLIBC_USE (F) Define things from feature set F. This is defined +// to 1 or 0; the subsequent macros are either defined +// or undefined, and those tests should be moved to +// __GLIBC_USE. +// __USE_ISOC11 Define ISO C11 things. +// __USE_ISOC99 Define ISO C99 things. +// __USE_ISOC95 Define ISO C90 AMD1 (C95) things. +// __USE_ISOCXX11 Define ISO C++11 things. +// __USE_POSIX Define IEEE Std 1003.1 things. +// __USE_POSIX2 Define IEEE Std 1003.2 things. +// __USE_POSIX199309 Define IEEE Std 1003.1, and .1b things. +// __USE_POSIX199506 Define IEEE Std 1003.1, .1b, .1c and .1i things. +// __USE_XOPEN Define XPG things. +// __USE_XOPEN_EXTENDED Define X/Open Unix things. +// __USE_UNIX98 Define Single Unix V2 things. +// __USE_XOPEN2K Define XPG6 things. +// __USE_XOPEN2KXSI Define XPG6 XSI things. +// __USE_XOPEN2K8 Define XPG7 things. +// __USE_XOPEN2K8XSI Define XPG7 XSI things. +// __USE_LARGEFILE Define correct standard I/O things. +// __USE_LARGEFILE64 Define LFS things with separate names. +// __USE_FILE_OFFSET64 Define 64bit interface as default. +// __USE_MISC Define things from 4.3BSD or System V Unix. +// __USE_ATFILE Define *at interfaces and AT_* constants for them. +// __USE_GNU Define GNU extensions. +// __USE_FORTIFY_LEVEL Additional security measures used, according to level. +// +// The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are +// defined by this file unconditionally. `__GNU_LIBRARY__' is provided +// only for compatibility. All new code should use the other symbols +// to test for features. +// +// All macros listed above as possibly being defined by this file are +// explicitly undefined if they are not explicitly defined. +// Feature-test macros that are not defined by the user or compiler +// but are implied by the other feature-test macros defined (or by the +// lack of any definitions) are defined by the file. +// +// ISO C feature test macros depend on the definition of the macro +// when an affected header is included, not when the first system +// header is included, and so they are handled in +// , which does not have a multiple include +// guard. Feature test macros that can be handled from the first +// system header included are handled here. + +// Undefine everything, so we get a clean slate. + +// Suppress kernel-name space pollution unless user expressedly asks +// for it. + +// Convenience macro to test the version of gcc. +// Use like this: +// #if __GNUC_PREREQ (2,8) +// ... code requiring gcc 2.8 or later ... +// #endif +// Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was +// added in 2.0. + +// Similarly for clang. Features added to GCC after version 4.2 may +// or may not also be available in clang, and clang's definitions of +// __GNUC(_MINOR)__ are fixed at 4 and 2 respectively. Not all such +// features can be queried via __has_extension/__has_feature. + +// Whether to use feature set F. + +// _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for +// _DEFAULT_SOURCE. If _DEFAULT_SOURCE is present we do not +// issue a warning; the expectation is that the source is being +// transitioned to use the new macro. + +// If _GNU_SOURCE was defined by the user, turn on all the other features. + +// If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined, +// define _DEFAULT_SOURCE. + +// This is to enable the ISO C2X extension. + +// This is to enable the ISO C11 extension. + +// This is to enable the ISO C99 extension. + +// This is to enable the ISO C90 Amendment 1:1995 extension. + +// If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE +// is defined, use POSIX.1-2008 (or another version depending on +// _XOPEN_SOURCE). + +// Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be +// defined in all multithreaded code. GNU libc has not required this +// for many years. We now treat them as compatibility synonyms for +// _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with +// comprehensive support for multithreaded code. Using them never +// lowers the selected level of POSIX conformance, only raises it. + +// The function 'gets' existed in C89, but is impossible to use +// safely. It has been removed from ISO C11 and ISO C++14. Note: for +// compatibility with various implementations of , this test +// must consider only the value of __cplusplus when compiling C++. + +// GNU formerly extended the scanf functions with modified format +// specifiers %as, %aS, and %a[...] that allocate a buffer for the +// input using malloc. This extension conflicts with ISO C99, which +// defines %a as a standalone format specifier that reads a floating- +// point number; moreover, POSIX.1-2008 provides the same feature +// using the modifier letter 'm' instead (%ms, %mS, %m[...]). +// +// We now follow C99 unless GNU extensions are active and the compiler +// is specifically in C89 or C++98 mode (strict or not). For +// instance, with GCC, -std=gnu11 will have C99-compliant scanf with +// or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the +// old extension. + +// Get definitions of __STDC_* predefined macros, if the compiler has +// not preincluded this header automatically. +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// This macro indicates that the installed library is the GNU C Library. +// For historic reasons the value now is 6 and this will stay from now +// on. The use of this variable is deprecated. Use __GLIBC__ and +// __GLIBC_MINOR__ now (see below) when you want to test for a specific +// GNU C library version and use the values in to get +// the sonames of the shared libraries. + +// Major and minor version number of the GNU C library package. Use +// these macros to test for features in specific releases. + +// This is here only because every header file already includes this one. +// Copyright (C) 1992-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// We are almost always included from features.h. + +// The GNU libc does not support any K&R compilers or the traditional mode +// of ISO C compilers anymore. Check for some of the combinations not +// anymore supported. + +// Some user header file might have defined this before. + +// All functions, except those with callbacks or those that +// synchronize memory, are leaf functions. + +// GCC can always grok prototypes. For C++ programs we add throw() +// to help it optimize the function calls. But this works only with +// gcc 2.8.x and egcs. For gcc 3.2 and up we even mark C functions +// as non-throwing using a function attribute since programs can use +// the -fexceptions options for C code as well. + +// Compilers that are not clang may object to +// #if defined __clang__ && __has_extension(...) +// even though they do not need to evaluate the right-hand side of the &&. + +// These two macros are not used in glibc anymore. They are kept here +// only because some other projects expect the macros to be defined. + +// For these things, GCC behaves the ANSI way normally, +// and the non-ANSI way under -traditional. + +// This is not a typedef so `const __ptr_t' does the right thing. + +// C++ needs to know that types and declarations are C, not C++. + +// Fortify support. + +// Support for flexible arrays. +// Headers that should use flexible arrays only if they're "real" +// (e.g. only if they won't affect sizeof()) should test +// #if __glibc_c99_flexarr_available. + +// __asm__ ("xyz") is used throughout the headers to rename functions +// at the assembly language level. This is wrapped by the __REDIRECT +// macro, in order to support compilers that can do this some other +// way. When compilers don't support asm-names at all, we have to do +// preprocessor tricks instead (which don't have exactly the right +// semantics, but it's the best we can do). +// +// Example: +// int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid); + +// +// #elif __SOME_OTHER_COMPILER__ +// +// # define __REDIRECT(name, proto, alias) name proto; _Pragma("let " #name " = " #alias) + +// GCC has various useful declarations that can be made with the +// `__attribute__' syntax. All of the ways we use this do fine if +// they are omitted for compilers that don't understand it. + +// At some point during the gcc 2.96 development the `malloc' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// Tell the compiler which arguments to an allocation function +// indicate the size of the allocation. + +// At some point during the gcc 2.96 development the `pure' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// This declaration tells the compiler that the value is constant. + +// At some point during the gcc 3.1 development the `used' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// Since version 3.2, gcc allows marking deprecated functions. + +// Since version 4.5, gcc also allows one to specify the message printed +// when a deprecated function is used. clang claims to be gcc 4.2, but +// may also support this feature. + +// At some point during the gcc 2.8 development the `format_arg' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. +// If several `format_arg' attributes are given for the same function, in +// gcc-3.0 and older, all but the last one are ignored. In newer gccs, +// all designated arguments are considered. + +// At some point during the gcc 2.97 development the `strfmon' format +// attribute for functions was introduced. We don't want to use it +// unconditionally (although this would be possible) since it +// generates warnings. + +// The nonull function attribute allows to mark pointer parameters which +// must not be NULL. + +// If fortification mode, we warn about unused results of certain +// function calls which can lead to problems. + +// Forces a function to be always inlined. +// The Linux kernel defines __always_inline in stddef.h (283d7573), and +// it conflicts with this definition. Therefore undefine it first to +// allow either header to be included first. + +// Associate error messages with the source location of the call site rather +// than with the source location inside the function. + +// GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99 +// inline semantics, unless -fgnu89-inline is used. Using __GNUC_STDC_INLINE__ +// or __GNUC_GNU_INLINE is not a good enough check for gcc because gcc versions +// older than 4.3 may define these macros and still not guarantee GNU inlining +// semantics. +// +// clang++ identifies itself as gcc-4.2, but has support for GNU inlining +// semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and +// __GNUC_GNU_INLINE__ macro definitions. + +// GCC 4.3 and above allow passing all anonymous arguments of an +// __extern_always_inline function to some other vararg function. + +// It is possible to compile containing GCC extensions even if GCC is +// run in pedantic mode if the uses are carefully marked using the +// `__extension__' keyword. But this is not generally available before +// version 2.8. + +// __restrict is known in EGCS 1.2 and above. + +// ISO C99 also allows to declare arrays as non-overlapping. The syntax is +// array_name[restrict] +// GCC 3.1 supports this. + +// Describes a char array whose address can safely be passed as the first +// argument to strncpy and strncat, as the char array is not necessarily +// a NUL-terminated string. + +// Undefine (also defined in libc-symbols.h). +// Copies attributes from the declaration or type referenced by +// the argument. + +// Determine the wordsize from the preprocessor defines. + +// Both x86-64 and x32 use the 64-bit system call interface. +// Properties of long double type. ldbl-96 version. +// Copyright (C) 2016-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// long double is distinct from double, so there is nothing to +// define here. + +// __glibc_macro_warning (MESSAGE) issues warning MESSAGE. This is +// intended for use in preprocessor macros. +// +// Note: MESSAGE must be a _single_ string; concatenation of string +// literals is not supported. + +// Generic selection (ISO C11) is a C-only feature, available in GCC +// since version 4.9. Previous versions do not provide generic +// selection, even though they might set __STDC_VERSION__ to 201112L, +// when in -std=c11 mode. Thus, we must check for !defined __GNUC__ +// when testing __STDC_VERSION__ for generic selection support. +// On the other hand, Clang also defines __GNUC__, so a clang-specific +// check is required to enable the use of generic selection. + +// If we don't have __REDIRECT, prototypes will be missing if +// __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64]. + +// Decide whether we can define 'extern inline' functions in headers. + +// This is here only because every header file already includes this one. +// Get the definitions of all the appropriate `__stub_FUNCTION' symbols. +// contains `#define __stub_FUNCTION' when FUNCTION is a stub +// that will always return failure (and set errno to ENOSYS). +// This file is automatically generated. +// This file selects the right generated file of `__stub_FUNCTION' macros +// based on the architecture being compiled for. + +// This file is automatically generated. +// It defines a symbol `__stub_FUNCTION' for each function +// in the C library which is a stub, meaning it will fail +// every time called, usually setting errno to ENOSYS. + +// ISO/IEC TR 24731-2:2010 defines the __STDC_WANT_LIB_EXT2__ +// macro. + +// ISO/IEC TS 18661-1:2014 defines the __STDC_WANT_IEC_60559_BFP_EXT__ +// macro. Most but not all symbols enabled by that macro in TS +// 18661-1 are enabled unconditionally in C2X; the symbols in Annex F +// still require that macro in C2X. + +// ISO/IEC TS 18661-4:2015 defines the +// __STDC_WANT_IEC_60559_FUNCS_EXT__ macro. Other than the reduction +// functions, the symbols from this TS are enabled unconditionally in +// C2X. + +// ISO/IEC TS 18661-3:2015 defines the +// __STDC_WANT_IEC_60559_TYPES_EXT__ macro. + +// Maximum length of any multibyte character in any locale. +// We define this value here since the gcc header does not define +// the correct value. + +// If we are not using GNU CC we have to define all the symbols ourself. +// Otherwise use gcc's definitions (see below). + +// Get the compiler's limits.h, which defines almost all the ISO constants. +// +// We put this #include_next outside the double inclusion check because +// it should be possible to include this file more than once and still get +// the definitions from gcc's header. + +// The files in some gcc versions don't define LLONG_MIN, +// LLONG_MAX, and ULLONG_MAX. Instead only the values gcc defined for +// ages are available. + +// The integer width macros are not defined by GCC's before +// GCC 7, or if _GNU_SOURCE rather than +// __STDC_WANT_IEC_60559_BFP_EXT__ is used to enable this feature. + +// POSIX adds things to . +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// POSIX Standard: 2.9.2 Minimum Values Added to +// +// Never include this file directly; use instead. + +// Determine the wordsize from the preprocessor defines. + +// Both x86-64 and x32 use the 64-bit system call interface. + +// These are the standard-mandated minimum values. + +// Minimum number of operations in one list I/O call. + +// Minimal number of outstanding asynchronous I/O operations. + +// Maximum length of arguments to `execve', including environment. + +// Maximum simultaneous processes per real user ID. + +// Minimal number of timer expiration overruns. + +// Maximum length of a host name (not including the terminating null) +// as returned from the GETHOSTNAME function. + +// Maximum link count of a file. + +// Maximum length of login name. + +// Number of bytes in a terminal canonical input queue. + +// Number of bytes for which space will be +// available in a terminal input queue. + +// Maximum number of message queues open for a process. + +// Maximum number of supported message priorities. + +// Number of bytes in a filename. + +// Number of simultaneous supplementary group IDs per process. + +// Number of files one process can have open at once. + +// Number of bytes in a pathname. + +// Number of bytes than can be written atomically to a pipe. + +// The number of repeated occurrences of a BRE permitted by the +// REGEXEC and REGCOMP functions when using the interval notation. + +// Minimal number of realtime signals reserved for the application. + +// Number of semaphores a process can have. + +// Maximal value of a semaphore. + +// Number of pending realtime signals. + +// Largest value of a `ssize_t'. + +// Number of streams a process can have open at once. + +// The number of bytes in a symbolic link. + +// The number of symbolic links that can be traversed in the +// resolution of a pathname in the absence of a loop. + +// Number of timer for a process. + +// Maximum number of characters in a tty name. + +// Maximum length of a timezone name (element of `tzname'). + +// Maximum clock resolution in nanoseconds. + +// Get the implementation-specific values for the above. +// Minimum guaranteed maximum values for system limits. Linux version. +// Copyright (C) 1993-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public License as +// published by the Free Software Foundation; either version 2.1 of the +// License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; see the file COPYING.LIB. If +// not, see . + +// The kernel header pollutes the namespace with the NR_OPEN symbol +// and defines LINK_MAX although filesystems have different maxima. A +// similar thing is true for OPEN_MAX: the limit can be changed at +// runtime and therefore the macro must not be defined. Remove this +// after including the header if necessary. + +// The kernel sources contain a file with all the needed information. +// SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note + +// Have to remove NR_OPEN? +// Have to remove LINK_MAX? +// Have to remove OPEN_MAX? +// Have to remove ARG_MAX? + +// The number of data keys per process. +// This is the value this implementation supports. + +// Controlling the iterations of destructors for thread-specific data. +// Number of iterations this implementation does. + +// The number of threads per process. +// We have no predefined limit on the number of threads. + +// Maximum amount by which a process can descrease its asynchronous I/O +// priority level. + +// Minimum size for a thread. We are free to choose a reasonable value. + +// Maximum number of timer expiration overruns. + +// Maximum tty name length. + +// Maximum login name length. This is arbitrary. + +// Maximum host name length. + +// Maximum message queue priority level. + +// Maximum value the semaphore can have. + +// ssize_t is not formally required to be the signed type +// corresponding to size_t, but it is for all configurations supported +// by glibc. + +// This value is a guaranteed minimum maximum. +// The current maximum can be got from `sysconf'. + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; include instead. + +// The maximum `ibase' and `obase' values allowed by the `bc' utility. + +// The maximum number of elements allowed in an array by the `bc' utility. + +// The maximum `scale' value allowed by the `bc' utility. + +// The maximum length of a string constant accepted by the `bc' utility. + +// The maximum number of weights that can be assigned to an entry of +// the LC_COLLATE `order' keyword in the locale definition file. + +// The maximum number of expressions that can be nested +// within parentheses by the `expr' utility. + +// The maximum length, in bytes, of an input line. + +// The maximum number of repeated occurrences of a regular expression +// permitted when using the interval notation `\{M,N\}'. + +// The maximum number of bytes in a character class name. We have no +// fixed limit, 2048 is a high number. + +// These values are implementation-specific, +// and may vary within the implementation. +// Their precise values can be obtained from sysconf. + +// This value is defined like this in regex.h. + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// +// This file is part of GCC. +// +// GCC is free software; you can redistribute it and/or modify it under +// the terms of the GNU General Public License as published by the Free +// Software Foundation; either version 3, or (at your option) any later +// version. +// +// GCC is distributed in the hope that it will be useful, but WITHOUT ANY +// WARRANTY; without even the implied warranty of MERCHANTABILITY or +// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +// for more details. +// +// Under Section 7 of GPL version 3, you are granted additional +// permissions described in the GCC Runtime Library Exception, version +// 3.1, as published by the Free Software Foundation. +// +// You should have received a copy of the GNU General Public License and +// a copy of the GCC Runtime Library Exception along with this program; +// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see +// . + +// Number of bits in a `char'. + +// Maximum length of a multibyte character. + +// Minimum and maximum values a `signed char' can hold. + +// Maximum value an `unsigned char' can hold. (Minimum is 0). + +// Minimum and maximum values a `char' can hold. + +// Minimum and maximum values a `signed short int' can hold. + +// Maximum value an `unsigned short int' can hold. (Minimum is 0). + +// Minimum and maximum values a `signed int' can hold. + +// Maximum value an `unsigned int' can hold. (Minimum is 0). + +// Minimum and maximum values a `signed long int' can hold. +// (Same as `int'). + +// Maximum value an `unsigned long int' can hold. (Minimum is 0). + +// Minimum and maximum values a `signed long long int' can hold. + +// Maximum value an `unsigned long long int' can hold. (Minimum is 0). + +// This administrivia gets added to the end of limits.h +// if the system has its own version of limits.h. + +var _ int8 /* gen.c:2:13: */ diff --git a/vendor/modernc.org/libc/mem.go b/vendor/modernc.org/libc/mem.go index 50056c75c..9c642d0f9 100644 --- a/vendor/modernc.org/libc/mem.go +++ b/vendor/modernc.org/libc/mem.go @@ -2,12 +2,14 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -//go:build !libc.membrk && !libc.memgrind -// +build !libc.membrk,!libc.memgrind +//go:build !libc.membrk && !libc.memgrind && !(linux && (amd64 || arm64 || loong64 || ppc64le || s390x || riscv64 || 386 || arm)) package libc // import "modernc.org/libc" import ( + "math" + "math/bits" + "modernc.org/libc/errno" "modernc.org/libc/sys/types" "modernc.org/memory" @@ -21,8 +23,13 @@ var ( // void *malloc(size_t size); func Xmalloc(t *TLS, n types.Size_t) uintptr { + if __ccgo_strace { + trc("t=%v n=%v, (%v:)", t, n, origin(2)) + } if n == 0 { - return 0 + // malloc(0) should return unique pointers + // (often expected and gnulib replaces malloc if malloc(0) returns 0) + n = 1 } allocMu.Lock() @@ -40,16 +47,24 @@ func Xmalloc(t *TLS, n types.Size_t) uintptr { // void *calloc(size_t nmemb, size_t size); func Xcalloc(t *TLS, n, size types.Size_t) uintptr { - rq := int(n * size) - if rq == 0 { + if __ccgo_strace { + trc("t=%v n=%v size=%v, (%v:)", t, n, size, origin(2)) + } + hi, rq0 := bits.Mul(uint(n), uint(size)) + if hi != 0 || rq0 > math.MaxInt { + t.setErrno(errno.ENOMEM) return 0 } + rq := int(rq0) + if rq == 0 { + rq = 1 + } allocMu.Lock() defer allocMu.Unlock() - p, err := allocator.UintptrCalloc(int(n * size)) + p, err := allocator.UintptrCalloc(rq) if err != nil { t.setErrno(errno.ENOMEM) return 0 @@ -60,6 +75,9 @@ func Xcalloc(t *TLS, n, size types.Size_t) uintptr { // void *realloc(void *ptr, size_t size); func Xrealloc(t *TLS, ptr uintptr, size types.Size_t) uintptr { + if __ccgo_strace { + trc("t=%v ptr=%v size=%v, (%v:)", t, ptr, size, origin(2)) + } allocMu.Lock() defer allocMu.Unlock() @@ -75,6 +93,9 @@ func Xrealloc(t *TLS, ptr uintptr, size types.Size_t) uintptr { // void free(void *ptr); func Xfree(t *TLS, p uintptr) { + if __ccgo_strace { + trc("t=%v p=%v, (%v:)", t, p, origin(2)) + } if p == 0 { return } @@ -86,6 +107,22 @@ func Xfree(t *TLS, p uintptr) { allocator.UintptrFree(p) } +func Xmalloc_usable_size(tls *TLS, p uintptr) (r types.Size_t) { + if __ccgo_strace { + trc("tls=%v p=%v, (%v:)", tls, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + if p == 0 { + return 0 + } + + allocMu.Lock() + + defer allocMu.Unlock() + + return types.Size_t(memory.UintptrUsableSize(p)) +} + func UsableSize(p uintptr) types.Size_t { allocMu.Lock() @@ -94,6 +131,25 @@ func UsableSize(p uintptr) types.Size_t { return types.Size_t(memory.UintptrUsableSize(p)) } +type MemAllocatorStat struct { + Allocs int + Bytes int + Mmaps int +} + +// MemStat returns the global memory allocator statistics. +// should be compiled with the memory.counters build tag for the data to be available. +func MemStat() MemAllocatorStat { + allocMu.Lock() + defer allocMu.Unlock() + + return MemAllocatorStat{ + Allocs: allocator.Allocs, + Bytes: allocator.Bytes, + Mmaps: allocator.Mmaps, + } +} + // MemAuditStart locks the memory allocator, initializes and enables memory // auditing. Finaly it unlocks the memory allocator. // diff --git a/vendor/modernc.org/libc/mem_brk.go b/vendor/modernc.org/libc/mem_brk.go index 00f350435..4da833976 100644 --- a/vendor/modernc.org/libc/mem_brk.go +++ b/vendor/modernc.org/libc/mem_brk.go @@ -2,8 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -//go:build libc.membrk && !libc.memgrind -// +build libc.membrk,!libc.memgrind +//go:build libc.membrk && !libc.memgrind && !(linux && (amd64 || arm64 || loong64 || ppc64le || s390x || riscv64 || 386 || arm)) // This is a debug-only version of the memory handling functions. When a // program is built with -tags=libc.membrk a simple but safe version of malloc @@ -13,6 +12,8 @@ package libc // import "modernc.org/libc" import ( + "math" + "math/bits" "unsafe" "modernc.org/libc/errno" @@ -32,8 +33,13 @@ var ( // void *malloc(size_t size); func Xmalloc(t *TLS, n types.Size_t) uintptr { + if __ccgo_strace { + trc("t=%v n=%v, (%v:)", t, n, origin(2)) + } if n == 0 { - return 0 + // malloc(0) should return unique pointers + // (often expected and gnulib replaces malloc if malloc(0) returns 0) + n = 1 } allocMu.Lock() @@ -54,11 +60,22 @@ func Xmalloc(t *TLS, n types.Size_t) uintptr { // void *calloc(size_t nmemb, size_t size); func Xcalloc(t *TLS, n, size types.Size_t) uintptr { - return Xmalloc(t, n*size) + if __ccgo_strace { + trc("t=%v n=%v size=%v, (%v:)", t, n, size, origin(2)) + } + hi, rq := bits.Mul(uint(n), uint(size)) + if hi != 0 || rq > math.MaxInt { + t.setErrno(errno.ENOMEM) + return 0 + } + return Xmalloc(t, types.Size_t(rq)) } // void *realloc(void *ptr, size_t size); func Xrealloc(t *TLS, ptr uintptr, size types.Size_t) uintptr { + if __ccgo_strace { + trc("t=%v ptr=%v size=%v, (%v:)", t, ptr, size, origin(2)) + } switch { case ptr != 0 && size != 0: p := Xmalloc(t, size) @@ -74,12 +91,31 @@ func Xrealloc(t *TLS, ptr uintptr, size types.Size_t) uintptr { } // void free(void *ptr); -func Xfree(t *TLS, p uintptr) {} + +func Xfree(t *TLS, p uintptr) { + if __ccgo_strace { + trc("t=%v p=%v, (%v:)", t, p, origin(2)) + } +} func UsableSize(p uintptr) types.Size_t { + if p == 0 { + return 0 + } return types.Size_t(*(*uintptr)(unsafe.Pointer(p - uintptrSize))) } +type MemAllocatorStat struct { + Allocs int + Bytes int + Mmaps int +} + +// MemStat no-op for this build tag +func MemStat() MemAllocatorStat { + return MemAllocatorStat{} +} + // MemAuditStart locks the memory allocator, initializes and enables memory // auditing. Finaly it unlocks the memory allocator. // diff --git a/vendor/modernc.org/libc/mem_brk_musl.go b/vendor/modernc.org/libc/mem_brk_musl.go new file mode 100644 index 000000000..22bb19f8a --- /dev/null +++ b/vendor/modernc.org/libc/mem_brk_musl.go @@ -0,0 +1,319 @@ +// Copyright 2023 The Libc Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build libc.membrk && !libc.memgrind && linux && (amd64 || arm64 || loong64 || ppc64le || s390x || riscv64 || 386 || arm) + +// This is a debug-only version of the memory handling functions. When a +// program is built with -tags=libc.membrk a simple but safe version of malloc +// and friends is used that works like sbrk(2). Additionally free becomes a +// nop. + +// The fixed heap is initially filled with random bytes from a full cycle PRNG, +// program startup time is substantially prolonged. + +package libc // import "modernc.org/libc" + +import ( + "fmt" + "math" + "math/bits" + "runtime" + "strings" + "time" + "unsafe" + + "modernc.org/mathutil" +) + +const ( + isMemBrk = true + + heapSize = 1 << 30 +) + +var ( + brkIndex uintptr + heap [heapSize]byte + heapP uintptr + heap0 uintptr + heapRecords []heapRecord + heapUsable = map[uintptr]Tsize_t{} + heapFree = map[uintptr]struct{}{} + rng *mathutil.FC32 +) + +type heapRecord struct { + p uintptr + pc uintptr +} + +func (r *heapRecord) String() string { + return fmt.Sprintf("[p=%#0x usable=%v pc=%s]", r.p, Xmalloc_usable_size(nil, r.p), pc2origin(r.pc)) +} + +func init() { + if roundup(heapGuard, heapAlign) != heapGuard { + panic("internal error") + } + + heap0 = uintptr(unsafe.Pointer(&heap[0])) + heapP = roundup(heap0, heapAlign) + var err error + if rng, err = mathutil.NewFC32(math.MinInt32, math.MaxInt32, true); err != nil { + panic(err) + } + + rng.Seed(time.Now().UnixNano()) + for i := range heap { + heap[i] = byte(rng.Next()) + } +} + +func pc2origin(pc uintptr) string { + f := runtime.FuncForPC(pc) + var fn, fns string + var fl int + if f != nil { + fn, fl = f.FileLine(pc) + fns = f.Name() + if x := strings.LastIndex(fns, "."); x > 0 { + fns = fns[x+1:] + } + } + return fmt.Sprintf("%s:%d:%s", fn, fl, fns) +} + +func malloc0(tls *TLS, pc uintptr, n0 Tsize_t, zero bool) (r uintptr) { + usable := roundup(uintptr(n0), heapAlign) + rq := usable + 2*heapGuard + if brkIndex+rq > uintptr(len(heap)) { + tls.setErrno(ENOMEM) + return 0 + } + + r, brkIndex = heapP+brkIndex, brkIndex+rq + heapRecords = append(heapRecords, heapRecord{p: r, pc: pc}) + r += heapGuard + heapUsable[r] = Tsize_t(usable) + if zero { + n := uintptr(n0) + for i := uintptr(0); i < n; i++ { + *(*byte)(unsafe.Pointer(r + i)) = 0 + } + } + return r +} + +func Xmalloc(tls *TLS, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v n=%v, (%v:)", tls, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + + if n > math.MaxInt { + tls.setErrno(ENOMEM) + return 0 + } + + if n == 0 { + // malloc(0) should return unique pointers + // (often expected and gnulib replaces malloc if malloc(0) returns 0) + n = 1 + } + + allocatorMu.Lock() + + defer allocatorMu.Unlock() + + pc, _, _, _ := runtime.Caller(1) + return malloc0(tls, pc, n, false) +} + +func Xcalloc(tls *TLS, m Tsize_t, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v m=%v n=%v, (%v:)", tls, m, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + + hi, rq := bits.Mul(uint(m), uint(n)) + if hi != 0 || rq > math.MaxInt { + tls.setErrno(ENOMEM) + return 0 + } + + if rq == 0 { + rq = 1 + } + + allocatorMu.Lock() + + defer allocatorMu.Unlock() + + pc, _, _, _ := runtime.Caller(1) + return malloc0(tls, pc, Tsize_t(rq), true) +} + +func Xrealloc(tls *TLS, p uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v p=%v n=%v, (%v:)", tls, p, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + + if n == 0 { + Xfree(tls, p) + return 0 + } + + allocatorMu.Lock() + + defer allocatorMu.Unlock() + + pc, _, _, _ := runtime.Caller(1) + if p == 0 { + return malloc0(tls, pc, n, false) + } + + usable := heapUsable[p] + if usable == 0 { + panic(todo("realloc of unallocated memory: %#0x", p)) + } + + if usable >= n { // in place + return p + } + + // malloc + r = malloc0(tls, pc, n, false) + if r == 0 { + return 0 + } + copy(unsafe.Slice((*byte)(unsafe.Pointer(r)), usable), unsafe.Slice((*byte)(unsafe.Pointer(p)), usable)) + Xfree(tls, p) + return r +} + +func Xfree(tls *TLS, p uintptr) { + if __ccgo_strace { + trc("tls=%v p=%v, (%v:)", tls, p, origin(2)) + } + + allocatorMu.Lock() + + defer allocatorMu.Unlock() + + if p == 0 { + return + } + + if _, ok := heapUsable[p]; !ok { + panic(todo("free of unallocated memory: %#0x", p)) + } + + if _, ok := heapFree[p]; ok { + panic(todo("double free: %#0x", p)) + } + + heapFree[p] = struct{}{} +} + +func Xmalloc_usable_size(tls *TLS, p uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v p=%v, (%v:)", tls, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + if p == 0 { + return 0 + } + + allocatorMu.Lock() + + defer allocatorMu.Unlock() + + return heapUsable[p] +} + +func MemAudit() (r []*MemAuditError) { + allocatorMu.Lock() + + defer allocatorMu.Unlock() + + a := heapRecords + auditP := heap0 + rng.Seek(0) + for _, v := range a { + heapP := v.p + mallocP := heapP + heapGuard + usable := heapUsable[mallocP] + for ; auditP < mallocP; auditP++ { + if g, e := *(*byte)(unsafe.Pointer(auditP)), byte(rng.Next()); g != e { + r = append(r, &MemAuditError{Caller: pc2origin(v.pc), Message: fmt.Sprintf("guard area before %#0x, %v is corrupted at %#0x, got %#02x, expected %#02x", mallocP, usable, auditP, g, e)}) + } + } + for i := 0; Tsize_t(i) < usable; i++ { + rng.Next() + } + auditP = mallocP + uintptr(usable) + z := roundup(auditP, heapAlign) + z += heapGuard + for ; auditP < z; auditP++ { + if g, e := *(*byte)(unsafe.Pointer(auditP)), byte(rng.Next()); g != e { + r = append(r, &MemAuditError{Caller: pc2origin(v.pc), Message: fmt.Sprintf("guard area after %#0x, %v is corrupted at %#0x, got %#02x, expected %#02x", mallocP, usable, auditP, g, e)}) + } + } + } + z := heap0 + uintptr(len(heap)) + for ; auditP < z; auditP++ { + if g, e := *(*byte)(unsafe.Pointer(auditP)), byte(rng.Next()); g != e { + r = append(r, &MemAuditError{Caller: "-", Message: fmt.Sprintf("guard area after used heap is corrupted at %#0x, got %#02x, expected %#02x", auditP, g, e)}) + return r // Report only the first fail + } + } + return r +} + +func UsableSize(p uintptr) Tsize_t { + if p == 0 { + return 0 + } + + allocatorMu.Lock() + + defer allocatorMu.Unlock() + + return heapUsable[p] +} + +type MemAllocatorStat struct { + Allocs int + Bytes int + Mmaps int +} + +// MemStat no-op for this build tag +func MemStat() MemAllocatorStat { + return MemAllocatorStat{} +} + +// MemAuditStart locks the memory allocator, initializes and enables memory +// auditing. Finaly it unlocks the memory allocator. +// +// Some memory handling errors, like double free or freeing of unallocated +// memory, will panic when memory auditing is enabled. +// +// This memory auditing functionality has to be enabled using the libc.memgrind +// build tag. +// +// It is intended only for debug/test builds. It slows down memory allocation +// routines and it has additional memory costs. +func MemAuditStart() {} + +// MemAuditReport locks the memory allocator, reports memory leaks, if any. +// Finally it disables memory auditing and unlocks the memory allocator. +// +// This memory auditing functionality has to be enabled using the libc.memgrind +// build tag. +// +// It is intended only for debug/test builds. It slows down memory allocation +// routines and it has additional memory costs. +func MemAuditReport() error { return nil } diff --git a/vendor/modernc.org/libc/mem_expvar.go b/vendor/modernc.org/libc/mem_expvar.go new file mode 100644 index 000000000..e2c5aae7a --- /dev/null +++ b/vendor/modernc.org/libc/mem_expvar.go @@ -0,0 +1,12 @@ +//go:build libc.memexpvar + +package libc + +import "expvar" + +func init() { + // make sure to build with -tags=memory.counters to have the actual data accumulated in memory allocator + expvar.Publish("memory.allocator", expvar.Func(func() interface{} { + return MemStat() + })) +} diff --git a/vendor/modernc.org/libc/mem_musl.go b/vendor/modernc.org/libc/mem_musl.go new file mode 100644 index 000000000..20f6c18b9 --- /dev/null +++ b/vendor/modernc.org/libc/mem_musl.go @@ -0,0 +1,170 @@ +// Copyright 2023 The Libc Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build !libc.membrk && !libc.memgrind && linux && (amd64 || arm64 || loong64 || ppc64le || s390x || riscv64 || 386 || arm) + +package libc // import "modernc.org/libc" + +import ( + "math" + mbits "math/bits" + + "modernc.org/memory" +) + +const ( + isMemBrk = false +) + +func Xmalloc(tls *TLS, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v n=%v, (%v:)", tls, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + if n > math.MaxInt { + tls.setErrno(ENOMEM) + return 0 + } + + allocatorMu.Lock() + + defer allocatorMu.Unlock() + + if n == 0 { + // malloc(0) should return unique pointers + // (often expected and gnulib replaces malloc if malloc(0) returns 0) + n = 1 + } + var err error + if r, err = allocator.UintptrMalloc(int(n)); err != nil { + r = 0 + tls.setErrno(ENOMEM) + } + return r +} + +func Xcalloc(tls *TLS, m Tsize_t, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v m=%v n=%v, (%v:)", tls, m, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + hi, rq := mbits.Mul(uint(m), uint(n)) + if hi != 0 || rq > math.MaxInt { + tls.setErrno(ENOMEM) + return 0 + } + + allocatorMu.Lock() + + defer allocatorMu.Unlock() + + if rq == 0 { + rq = 1 + } + + var err error + if r, err = allocator.UintptrCalloc(int(rq)); err != nil { + r = 0 + tls.setErrno(ENOMEM) + } + return r +} + +func Xrealloc(tls *TLS, p uintptr, n Tsize_t) (r uintptr) { + if __ccgo_strace { + trc("tls=%v p=%v n=%v, (%v:)", tls, p, n, origin(2)) + defer func() { trc("-> %v", r) }() + } + allocatorMu.Lock() + + defer allocatorMu.Unlock() + + var err error + if r, err = allocator.UintptrRealloc(p, int(n)); err != nil { + r = 0 + tls.setErrno(ENOMEM) + } + return r +} + +func Xfree(tls *TLS, p uintptr) { + if __ccgo_strace { + trc("tls=%v p=%v, (%v:)", tls, p, origin(2)) + } + allocatorMu.Lock() + + defer allocatorMu.Unlock() + + allocator.UintptrFree(p) +} + +func Xmalloc_usable_size(tls *TLS, p uintptr) (r Tsize_t) { + if __ccgo_strace { + trc("tls=%v p=%v, (%v:)", tls, p, origin(2)) + defer func() { trc("-> %v", r) }() + } + if p == 0 { + return 0 + } + + allocatorMu.Lock() + + defer allocatorMu.Unlock() + + return Tsize_t(memory.UintptrUsableSize(p)) +} + +func MemAudit() (r []*MemAuditError) { + return nil +} + +func UsableSize(p uintptr) Tsize_t { + allocatorMu.Lock() + + defer allocatorMu.Unlock() + + return Tsize_t(memory.UintptrUsableSize(p)) +} + +type MemAllocatorStat struct { + Allocs int + Bytes int + Mmaps int +} + +// MemStat returns the global memory allocator statistics. +// should be compiled with the memory.counters build tag for the data to be available. +func MemStat() MemAllocatorStat { + allocatorMu.Lock() + defer allocatorMu.Unlock() + + return MemAllocatorStat{ + Allocs: allocator.Allocs, + Bytes: allocator.Bytes, + Mmaps: allocator.Mmaps, + } +} + +// MemAuditStart locks the memory allocator, initializes and enables memory +// auditing. Finaly it unlocks the memory allocator. +// +// Some memory handling errors, like double free or freeing of unallocated +// memory, will panic when memory auditing is enabled. +// +// This memory auditing functionality has to be enabled using the libc.memgrind +// build tag. +// +// It is intended only for debug/test builds. It slows down memory allocation +// routines and it has additional memory costs. +func MemAuditStart() {} + +// MemAuditReport locks the memory allocator, reports memory leaks, if any. +// Finally it disables memory auditing and unlocks the memory allocator. +// +// This memory auditing functionality has to be enabled using the libc.memgrind +// build tag. +// +// It is intended only for debug/test builds. It slows down memory allocation +// routines and it has additional memory costs. +func MemAuditReport() error { return nil } diff --git a/vendor/modernc.org/libc/memgrind.go b/vendor/modernc.org/libc/memgrind.go index 70044c070..0b6beeffd 100644 --- a/vendor/modernc.org/libc/memgrind.go +++ b/vendor/modernc.org/libc/memgrind.go @@ -2,8 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -//go:build !libc.membrk && libc.memgrind -// +build !libc.membrk,libc.memgrind +//go:build !libc.membrk && libc.memgrind && !(linux && (amd64 || arm64 || loong64 || ppc64le || s390x || riscv64 || 386 || arm)) // This is a debug-only version of the memory handling functions. When a // program is built with -tags=libc.memgrind the functions MemAuditStart and @@ -13,6 +12,8 @@ package libc // import "modernc.org/libc" import ( "fmt" + "math" + "math/bits" "runtime" "sort" "strings" @@ -74,8 +75,13 @@ func pc2origin(pc uintptr) string { // void *malloc(size_t size); func Xmalloc(t *TLS, size types.Size_t) uintptr { + if __ccgo_strace { + trc("t=%v size=%v, (%v:)", t, size, origin(2)) + } if size == 0 { - return 0 + // malloc(0) should return unique pointers + // (often expected and gnulib replaces malloc if malloc(0) returns 0) + size = 1 } allocMu.Lock() @@ -83,9 +89,9 @@ func Xmalloc(t *TLS, size types.Size_t) uintptr { defer allocMu.Unlock() p, err := allocator.UintptrCalloc(int(size)) - if dmesgs { - dmesg("%v: %v -> %#x, %v", origin(1), size, p, err) - } + // if dmesgs { + // dmesg("%v: %v -> %#x, %v", origin(1), size, p, err) + // } if err != nil { t.setErrno(errno.ENOMEM) return 0 @@ -110,19 +116,27 @@ func Xmalloc(t *TLS, size types.Size_t) uintptr { // void *calloc(size_t nmemb, size_t size); func Xcalloc(t *TLS, n, size types.Size_t) uintptr { - rq := int(n * size) - if rq == 0 { + if __ccgo_strace { + trc("t=%v n=%v size=%v, (%v:)", t, n, size, origin(2)) + } + hi, rq0 := bits.Mul(uint(n), uint(size)) + if hi != 0 || rq0 > math.MaxInt { + t.setErrno(errno.ENOMEM) return 0 } + rq := int(rq0) + if rq == 0 { + rq = 1 + } allocMu.Lock() defer allocMu.Unlock() - p, err := allocator.UintptrCalloc(int(n * size)) - if dmesgs { - dmesg("%v: %v -> %#x, %v", origin(1), n*size, p, err) - } + p, err := allocator.UintptrCalloc(rq) + // if dmesgs { + // dmesg("%v: %v -> %#x, %v", origin(1), n*size, p, err) + // } if err != nil { t.setErrno(errno.ENOMEM) return 0 @@ -147,6 +161,9 @@ func Xcalloc(t *TLS, n, size types.Size_t) uintptr { // void *realloc(void *ptr, size_t size); func Xrealloc(t *TLS, ptr uintptr, size types.Size_t) uintptr { + if __ccgo_strace { + trc("t=%v ptr=%v size=%v, (%v:)", t, ptr, size, origin(2)) + } allocMu.Lock() defer allocMu.Unlock() @@ -169,42 +186,49 @@ func Xrealloc(t *TLS, ptr uintptr, size types.Size_t) uintptr { panic(fmt.Errorf("%v: realloc, free of unallocated memory: %#x", pc2origin(pc), ptr)) } - delete(allocs, ptr) - delete(allocsMore, ptr) - frees[ptr] = pc } } p, err := allocator.UintptrRealloc(ptr, int(size)) - if dmesgs { - dmesg("%v: %#x, %v -> %#x, %v", origin(1), ptr, size, p, err) - } + // if dmesgs { + // dmesg("%v: %#x, %v -> %#x, %v", origin(1), ptr, size, p, err) + // } if err != nil { t.setErrno(errno.ENOMEM) return 0 } - if memAuditEnabled && p != 0 { - delete(frees, p) - if pc0, ok := allocs[p]; ok { - dmesg("%v: realloc returns same address twice, previous call at %v:", pc2origin(pc), pc2origin(pc0)) - panic(fmt.Errorf("%v: realloc returns same address twice, previous call at %v:", pc2origin(pc), pc2origin(pc0))) + if memAuditEnabled { + if ptr != 0 { + delete(allocs, ptr) + delete(allocsMore, ptr) + frees[ptr] = pc } + if p != 0 { + delete(frees, p) + if pc0, ok := allocs[p]; ok { + dmesg("%v: realloc returns same address twice, previous call at %v:", pc2origin(pc), pc2origin(pc0)) + panic(fmt.Errorf("%v: realloc returns same address twice, previous call at %v:", pc2origin(pc), pc2origin(pc0))) + } - allocs[p] = pc + allocs[p] = pc + } } return p } // void free(void *ptr); func Xfree(t *TLS, p uintptr) { + if __ccgo_strace { + trc("t=%v p=%v, (%v:)", t, p, origin(2)) + } if p == 0 { return } - if dmesgs { - dmesg("%v: %#x", origin(1), p) - } + // if dmesgs { + // dmesg("%v: %#x", origin(1), p) + // } allocMu.Lock() @@ -258,6 +282,21 @@ func UsableSize(p uintptr) types.Size_t { return types.Size_t(memory.UintptrUsableSize(p)) } +func Xmalloc_usable_size(tls *TLS, p uintptr) (r Tsize_t) { + return UsableSize(p) +} + +type MemAllocatorStat struct { + Allocs int + Bytes int + Mmaps int +} + +// MemStat no-op for this build tag +func MemStat() MemAllocatorStat { + return MemAllocatorStat{} +} + // MemAuditStart locks the memory allocator, initializes and enables memory // auditing. Finally it unlocks the memory allocator. // diff --git a/vendor/modernc.org/libc/memgrind_musl.go b/vendor/modernc.org/libc/memgrind_musl.go new file mode 100644 index 000000000..883be2fde --- /dev/null +++ b/vendor/modernc.org/libc/memgrind_musl.go @@ -0,0 +1,363 @@ +// Copyright 2021 The Libc Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build !libc.membrk && libc.memgrind && linux && (amd64 || arm64 || loong64 || ppc64le || s390x || riscv64 || 386 || arm) + +// This is a debug-only version of the memory handling functions. When a +// program is built with -tags=libc.memgrind the functions MemAuditStart and +// MemAuditReport can be used to check for memory leaks. + +package libc // import "modernc.org/libc" + +import ( + "fmt" + "math" + "math/bits" + "runtime" + "sort" + "strings" + "unsafe" + + "modernc.org/memory" +) + +const ( + isMemBrk = false + memgrind = true +) + +type memReportItem struct { + p, pc uintptr + s string +} + +func (it *memReportItem) String() string { + more := it.s + if more != "" { + a := strings.Split(more, "\n") + more = "\n\t\t" + strings.Join(a, "\n\t\t") + } + return fmt.Sprintf("\t%s: %#x%s", pc2origin(it.pc), it.p, more) +} + +type memReport []memReportItem + +func (r memReport) Error() string { + a := []string{"memory leaks"} + for _, v := range r { + a = append(a, v.String()) + } + return strings.Join(a, "\n") +} + +var ( + allocs map[uintptr]uintptr // addr: caller + allocsMore map[uintptr]string + frees map[uintptr]uintptr // addr: caller + memAudit memReport + memAuditEnabled bool +) + +func pc2origin(pc uintptr) string { + f := runtime.FuncForPC(pc) + var fn, fns string + var fl int + if f != nil { + fn, fl = f.FileLine(pc) + fns = f.Name() + if x := strings.LastIndex(fns, "."); x > 0 { + fns = fns[x+1:] + } + } + return fmt.Sprintf("%s:%d:%s", fn, fl, fns) +} + +// void *malloc(size_t size); +func Xmalloc(t *TLS, size Tsize_t) uintptr { + if __ccgo_strace { + trc("t=%v size=%v, (%v:)", t, size, origin(2)) + } + if size == 0 { + // malloc(0) should return unique pointers + // (often expected and gnulib replaces malloc if malloc(0) returns 0) + size = 1 + } + + allocatorMu.Lock() + + defer allocatorMu.Unlock() + + p, err := allocator.UintptrCalloc(int(size)) + // if dmesgs { + // dmesg("%v: %v -> %#x, %v", origin(1), size, p, err) + // } + if err != nil { + t.setErrno(ENOMEM) + return 0 + } + + if memAuditEnabled { + pc, _, _, ok := runtime.Caller(1) + if !ok { + panic("cannot obtain caller's PC") + } + + delete(frees, p) + if pc0, ok := allocs[p]; ok { + dmesg("%v: malloc returns same address twice, previous call at %v:", pc2origin(pc), pc2origin(pc0)) + panic(fmt.Errorf("%v: malloc returns same address twice, previous call at %v:", pc2origin(pc), pc2origin(pc0))) + } + + allocs[p] = pc + } + return p +} + +// void *calloc(size_t nmemb, size_t size); +func Xcalloc(t *TLS, n, size Tsize_t) uintptr { + if __ccgo_strace { + trc("t=%v n=%v size=%v, (%v:)", t, n, size, origin(2)) + } + hi, rq0 := bits.Mul(uint(n), uint(size)) + if hi != 0 || rq0 > math.MaxInt { + t.setErrno(ENOMEM) + return 0 + } + rq := int(rq0) + if rq == 0 { + rq = 1 + } + + allocatorMu.Lock() + + defer allocatorMu.Unlock() + + p, err := allocator.UintptrCalloc(rq) + // if dmesgs { + // dmesg("%v: %v -> %#x, %v", origin(1), n*size, p, err) + // } + if err != nil { + t.setErrno(ENOMEM) + return 0 + } + + if memAuditEnabled { + pc, _, _, ok := runtime.Caller(1) + if !ok { + panic("cannot obtain caller's PC") + } + + delete(frees, p) + if pc0, ok := allocs[p]; ok { + dmesg("%v: calloc returns same address twice, previous call at %v:", pc2origin(pc), pc2origin(pc0)) + panic(fmt.Errorf("%v: calloc returns same address twice, previous call at %v:", pc2origin(pc), pc2origin(pc0))) + } + + allocs[p] = pc + } + return p +} + +// void *realloc(void *ptr, size_t size); +func Xrealloc(t *TLS, ptr uintptr, size Tsize_t) uintptr { + if __ccgo_strace { + trc("t=%v ptr=%v size=%v, (%v:)", t, ptr, size, origin(2)) + } + allocatorMu.Lock() + + defer allocatorMu.Unlock() + + var pc uintptr + if memAuditEnabled { + var ok bool + if pc, _, _, ok = runtime.Caller(1); !ok { + panic("cannot obtain caller's PC") + } + + if ptr != 0 { + if pc0, ok := frees[ptr]; ok { + dmesg("%v: realloc: double free of %#x, previous call at %v:", pc2origin(pc), ptr, pc2origin(pc0)) + panic(fmt.Errorf("%v: realloc: double free of %#x, previous call at %v:", pc2origin(pc), ptr, pc2origin(pc0))) + } + + if _, ok := allocs[ptr]; !ok { + dmesg("%v: %v: realloc, free of unallocated memory: %#x", origin(1), pc2origin(pc), ptr) + panic(fmt.Errorf("%v: realloc, free of unallocated memory: %#x", pc2origin(pc), ptr)) + } + + } + } + + p, err := allocator.UintptrRealloc(ptr, int(size)) + // if dmesgs { + // dmesg("%v: %#x, %v -> %#x, %v", origin(1), ptr, size, p, err) + // } + if err != nil { + t.setErrno(ENOMEM) + return 0 + } + + if memAuditEnabled { + if ptr != 0 { + delete(allocs, ptr) + delete(allocsMore, ptr) + frees[ptr] = pc + } + if p != 0 { + delete(frees, p) + if pc0, ok := allocs[p]; ok { + dmesg("%v: realloc returns same address twice, previous call at %v:", pc2origin(pc), pc2origin(pc0)) + panic(fmt.Errorf("%v: realloc returns same address twice, previous call at %v:", pc2origin(pc), pc2origin(pc0))) + } + + allocs[p] = pc + } + } + return p +} + +// void free(void *ptr); +func Xfree(t *TLS, p uintptr) { + if __ccgo_strace { + trc("t=%v p=%v, (%v:)", t, p, origin(2)) + } + if p == 0 { + return + } + + // if dmesgs { + // dmesg("%v: %#x", origin(1), p) + // } + + allocatorMu.Lock() + + defer allocatorMu.Unlock() + + sz := memory.UintptrUsableSize(p) + if memAuditEnabled { + pc, _, _, ok := runtime.Caller(1) + if !ok { + panic("cannot obtain caller's PC") + } + + if pc0, ok := frees[p]; ok { + dmesg("%v: double free of %#x, previous call at %v:", pc2origin(pc), p, pc2origin(pc0)) + panic(fmt.Errorf("%v: double free of %#x, previous call at %v:", pc2origin(pc), p, pc2origin(pc0))) + } + + if _, ok := allocs[p]; !ok { + dmesg("%v: free of unallocated memory: %#x", pc2origin(pc), p) + panic(fmt.Errorf("%v: free of unallocated memory: %#x", pc2origin(pc), p)) + } + + delete(allocs, p) + delete(allocsMore, p) + frees[p] = pc + } + + for i := uintptr(0); i < uintptr(sz); i++ { + *(*byte)(unsafe.Pointer(p + i)) = 0 + } + allocator.UintptrFree(p) +} + +func UsableSize(p uintptr) Tsize_t { + allocatorMu.Lock() + + defer allocatorMu.Unlock() + + if memAuditEnabled { + pc, _, _, ok := runtime.Caller(1) + if !ok { + panic("cannot obtain caller's PC") + } + + if _, ok := allocs[p]; !ok { + dmesg("%v: usable size of unallocated memory: %#x", pc2origin(pc), p) + panic(fmt.Errorf("%v: usable size of unallocated memory: %#x", pc2origin(pc), p)) + } + } + + return Tsize_t(memory.UintptrUsableSize(p)) +} + +type MemAllocatorStat struct { + Allocs int + Bytes int + Mmaps int +} + +// MemStat no-op for this build tag +func MemStat() MemAllocatorStat { + return MemAllocatorStat{} +} + +func Xmalloc_usable_size(tls *TLS, p uintptr) (r Tsize_t) { + return UsableSize(p) +} + +// MemAuditStart locks the memory allocator, initializes and enables memory +// auditing. Finally it unlocks the memory allocator. +// +// Some memory handling errors, like double free or freeing of unallocated +// memory, will panic when memory auditing is enabled. +// +// This memory auditing functionality has to be enabled using the libc.memgrind +// build tag. +// +// It is intended only for debug/test builds. It slows down memory allocation +// routines and it has additional memory costs. +func MemAuditStart() { + allocatorMu.Lock() + + defer allocatorMu.Unlock() + + allocs = map[uintptr]uintptr{} // addr: caller + allocsMore = map[uintptr]string{} + frees = map[uintptr]uintptr{} // addr: caller + memAuditEnabled = true +} + +// MemAuditReport locks the memory allocator, reports memory leaks, if any. +// Finally it disables memory auditing and unlocks the memory allocator. +// +// This memory auditing functionality has to be enabled using the libc.memgrind +// build tag. +// +// It is intended only for debug/test builds. It slows down memory allocation +// routines and it has additional memory costs. +func MemAuditReport() (r error) { + allocatorMu.Lock() + + defer func() { + allocs = nil + allocsMore = nil + frees = nil + memAuditEnabled = false + memAudit = nil + allocatorMu.Unlock() + }() + + if len(allocs) != 0 { + for p, pc := range allocs { + memAudit = append(memAudit, memReportItem{p, pc, allocsMore[p]}) + } + sort.Slice(memAudit, func(i, j int) bool { + return memAudit[i].String() < memAudit[j].String() + }) + return memAudit + } + + return nil +} + +func MemAuditAnnotate(pc uintptr, s string) { + allocatorMu.Lock() + allocsMore[pc] = s + allocatorMu.Unlock() +} + +func MemAudit() (r []*MemAuditError) { + return nil +} diff --git a/vendor/modernc.org/libc/musl_darwin_amd64.go b/vendor/modernc.org/libc/musl_darwin_amd64.go index 350e8defd..29081e450 100644 --- a/vendor/modernc.org/libc/musl_darwin_amd64.go +++ b/vendor/modernc.org/libc/musl_darwin_amd64.go @@ -357,7 +357,11 @@ type size_t = uint64 /* :9:23 */ type wchar_t = int32 /* :15:24 */ -var X__darwin_check_fd_set_overflow uintptr /* :146:5: */ +// /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types/_fd_def.h:54 +// int __darwin_check_fd_set_overflow(int, const void *, int) __API_AVAILABLE(macosx(11.0), ios(14.0), tvos(14.0), watchos(7.0)); +func X__darwin_check_fd_set_overflow(tls *TLS, _ int32, _ uintptr, _ int32) int32 { + return 1 +} // pthread opaque structures @@ -459,6 +463,9 @@ type _RuneLocale = struct { } /* table.c:1616:3 */ func X__istype(tls *TLS, _c int32, _f uint64) int32 { /* table.c:1670:1: */ + if __ccgo_strace { + trc("tls=%v _c=%v _f=%v, (%v:)", tls, _c, _f, origin(2)) + } return func() int32 { if Xisascii(tls, _c) != 0 { @@ -470,6 +477,9 @@ func X__istype(tls *TLS, _c int32, _f uint64) int32 { /* table.c:1670:1: */ } func X__isctype(tls *TLS, _c int32, _f uint64) int32 { /* table.c:1681:1: */ + if __ccgo_strace { + trc("tls=%v _c=%v _f=%v, (%v:)", tls, _c, _f, origin(2)) + } if _c < 0 || _c >= int32(1)<<8 { return 0 @@ -479,6 +489,9 @@ func X__isctype(tls *TLS, _c int32, _f uint64) int32 { /* table.c:1681:1: */ } func X__wcwidth(tls *TLS, _c int32) int32 { /* table.c:1700:1: */ + if __ccgo_strace { + trc("tls=%v _c=%v, (%v:)", tls, _c, origin(2)) + } var _x uint32 if _c == 0 { @@ -497,90 +510,156 @@ func X__wcwidth(tls *TLS, _c int32) int32 { /* table.c:1700:1: */ } func Xisalnum(tls *TLS, _c int32) int32 { /* table.c:1718:1: */ + if __ccgo_strace { + trc("tls=%v _c=%v, (%v:)", tls, _c, origin(2)) + } return X__istype(tls, _c, uint64(0x00000100|0x00000400)) } func Xisalpha(tls *TLS, _c int32) int32 { /* table.c:1724:1: */ + if __ccgo_strace { + trc("tls=%v _c=%v, (%v:)", tls, _c, origin(2)) + } return X__istype(tls, _c, uint64(0x00000100)) } func Xisblank(tls *TLS, _c int32) int32 { /* table.c:1730:1: */ + if __ccgo_strace { + trc("tls=%v _c=%v, (%v:)", tls, _c, origin(2)) + } return X__istype(tls, _c, uint64(0x00020000)) } func Xiscntrl(tls *TLS, _c int32) int32 { /* table.c:1736:1: */ + if __ccgo_strace { + trc("tls=%v _c=%v, (%v:)", tls, _c, origin(2)) + } return X__istype(tls, _c, uint64(0x00000200)) } func Xisdigit(tls *TLS, _c int32) int32 { /* table.c:1743:1: */ + if __ccgo_strace { + trc("tls=%v _c=%v, (%v:)", tls, _c, origin(2)) + } return X__isctype(tls, _c, uint64(0x00000400)) } func Xisgraph(tls *TLS, _c int32) int32 { /* table.c:1749:1: */ + if __ccgo_strace { + trc("tls=%v _c=%v, (%v:)", tls, _c, origin(2)) + } return X__istype(tls, _c, uint64(0x00000800)) } func Xislower(tls *TLS, _c int32) int32 { /* table.c:1755:1: */ + if __ccgo_strace { + trc("tls=%v _c=%v, (%v:)", tls, _c, origin(2)) + } return X__istype(tls, _c, uint64(0x00001000)) } func Xisprint(tls *TLS, _c int32) int32 { /* table.c:1761:1: */ + if __ccgo_strace { + trc("tls=%v _c=%v, (%v:)", tls, _c, origin(2)) + } return X__istype(tls, _c, uint64(0x00040000)) } func Xispunct(tls *TLS, _c int32) int32 { /* table.c:1767:1: */ + if __ccgo_strace { + trc("tls=%v _c=%v, (%v:)", tls, _c, origin(2)) + } return X__istype(tls, _c, uint64(0x00002000)) } func Xisupper(tls *TLS, _c int32) int32 { /* table.c:1779:1: */ + if __ccgo_strace { + trc("tls=%v _c=%v, (%v:)", tls, _c, origin(2)) + } return X__istype(tls, _c, uint64(0x00008000)) } func Xisxdigit(tls *TLS, _c int32) int32 { /* table.c:1786:1: */ + if __ccgo_strace { + trc("tls=%v _c=%v, (%v:)", tls, _c, origin(2)) + } return X__isctype(tls, _c, uint64(0x00010000)) } func Xtoascii(tls *TLS, _c int32) int32 { /* table.c:1792:1: */ + if __ccgo_strace { + trc("tls=%v _c=%v, (%v:)", tls, _c, origin(2)) + } return _c & 0x7F } func Xdigittoint(tls *TLS, _c int32) int32 { /* table.c:1811:1: */ + if __ccgo_strace { + trc("tls=%v _c=%v, (%v:)", tls, _c, origin(2)) + } return X__maskrune(tls, _c, uint64(0x0F)) } func Xishexnumber(tls *TLS, _c int32) int32 { /* table.c:1817:1: */ + if __ccgo_strace { + trc("tls=%v _c=%v, (%v:)", tls, _c, origin(2)) + } return X__istype(tls, _c, uint64(0x00010000)) } func Xisideogram(tls *TLS, _c int32) int32 { /* table.c:1823:1: */ + if __ccgo_strace { + trc("tls=%v _c=%v, (%v:)", tls, _c, origin(2)) + } return X__istype(tls, _c, uint64(0x00080000)) } func Xisnumber(tls *TLS, _c int32) int32 { /* table.c:1829:1: */ + if __ccgo_strace { + trc("tls=%v _c=%v, (%v:)", tls, _c, origin(2)) + } return X__istype(tls, _c, uint64(0x00000400)) } func Xisphonogram(tls *TLS, _c int32) int32 { /* table.c:1835:1: */ + if __ccgo_strace { + trc("tls=%v _c=%v, (%v:)", tls, _c, origin(2)) + } return X__istype(tls, _c, uint64(0x00200000)) } func Xisrune(tls *TLS, _c int32) int32 { /* table.c:1841:1: */ + if __ccgo_strace { + trc("tls=%v _c=%v, (%v:)", tls, _c, origin(2)) + } return X__istype(tls, _c, uint64(0xFFFFFFF0)) } func Xisspecial(tls *TLS, _c int32) int32 { /* table.c:1847:1: */ + if __ccgo_strace { + trc("tls=%v _c=%v, (%v:)", tls, _c, origin(2)) + } return X__istype(tls, _c, uint64(0x00100000)) } func X__maskrune(tls *TLS, _c int32, _f uint64) int32 { /* table.c:1871:2: */ + if __ccgo_strace { + trc("tls=%v _c=%v _f=%v, (%v:)", tls, _c, _f, origin(2)) + } return int32(uint32(int32(*(*uint32)(unsafe.Pointer(uintptr(unsafe.Pointer(&X_DefaultRuneLocale)) + 60 + uintptr(_c&0xff)*4)))) & uint32(_f)) } func X__toupper(tls *TLS, c int32) int32 { /* table.c:1876:20: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Xtoupper(tls, c) } func X__tolower(tls *TLS, c int32) int32 { /* table.c:1878:20: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Xtolower(tls, c) } @@ -670,6 +749,9 @@ type gid_t = uint32 /* alltypes.h:250:18 */ type useconds_t = uint32 /* alltypes.h:260:18 */ func X__putenv(tls *TLS, s uintptr, l size_t, r uintptr) int32 { /* putenv.c:8:5: */ + if __ccgo_strace { + trc("tls=%v s=%v l=%v r=%v, (%v:)", tls, s, l, r, origin(2)) + } var i size_t var newenv uintptr var tmp uintptr @@ -750,6 +832,9 @@ oom: var _soldenv uintptr /* putenv.c:22:14: */ func Xputenv(tls *TLS, s uintptr) int32 { /* putenv.c:43:5: */ + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + } var l size_t = size_t((int64(X__strchrnul(tls, s, '=')) - int64(s)) / 1) if !(l != 0) || !(int32(*(*int8)(unsafe.Pointer(s + uintptr(l)))) != 0) { return Xunsetenv(tls, s) @@ -758,6 +843,9 @@ func Xputenv(tls *TLS, s uintptr) int32 { /* putenv.c:43:5: */ } func X__env_rm_add(tls *TLS, old uintptr, new uintptr) { /* setenv.c:5:6: */ + if __ccgo_strace { + trc("tls=%v old=%v new=%v, (%v:)", tls, old, new, origin(2)) + } //TODO for (size_t i=0; i < env_alloced_n; i++) var i size_t = uint64(0) for ; i < _senv_alloced_n; i++ { @@ -784,6 +872,9 @@ var _senv_alloced uintptr /* setenv.c:7:14: */ var _senv_alloced_n size_t /* setenv.c:8:16: */ func Xsetenv(tls *TLS, var1 uintptr, value uintptr, overwrite int32) int32 { /* setenv.c:26:5: */ + if __ccgo_strace { + trc("tls=%v var1=%v value=%v overwrite=%v, (%v:)", tls, var1, value, overwrite, origin(2)) + } var s uintptr var l1 size_t var l2 size_t @@ -808,6 +899,9 @@ func Xsetenv(tls *TLS, var1 uintptr, value uintptr, overwrite int32) int32 { /* } func Xunsetenv(tls *TLS, name uintptr) int32 { /* unsetenv.c:9:5: */ + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + } var l size_t = size_t((int64(X__strchrnul(tls, name, '=')) - int64(name)) / 1) if !(l != 0) || *(*int8)(unsafe.Pointer(name + uintptr(l))) != 0 { *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 22 @@ -1549,6 +1643,9 @@ func hexfloat(tls *TLS, f uintptr, bits int32, emin int32, sign int32, pok int32 } func X__floatscan(tls *TLS, f uintptr, prec int32, pok int32) float64 { /* floatscan.c:427:13: */ + if __ccgo_strace { + trc("tls=%v f=%v prec=%v pok=%v, (%v:)", tls, f, prec, pok, origin(2)) + } var sign int32 = 1 var i size_t var bits int32 @@ -1726,6 +1823,9 @@ var table = [257]uint8{Uint8FromInt32(-1), } /* intscan.c:7:28 */ func X__intscan(tls *TLS, f uintptr, base uint32, pok int32, lim uint64) uint64 { /* intscan.c:26:20: */ + if __ccgo_strace { + trc("tls=%v f=%v base=%v pok=%v lim=%v, (%v:)", tls, f, base, pok, lim, origin(2)) + } var val uintptr var c int32 var neg int32 @@ -2031,6 +2131,9 @@ __43: // the actual count. func X__shlim(tls *TLS, f uintptr, lim off_t) { /* shgetc.c:8:6: */ + if __ccgo_strace { + trc("tls=%v f=%v lim=%v, (%v:)", tls, f, lim, origin(2)) + } (*FILE)(unsafe.Pointer(f)).Fshlim = lim (*FILE)(unsafe.Pointer(f)).Fshcnt = (int64((*FILE)(unsafe.Pointer(f)).Fbuf) - int64((*FILE)(unsafe.Pointer(f)).Frpos)) / 1 // If lim is nonzero, rend must be a valid pointer. @@ -2042,6 +2145,9 @@ func X__shlim(tls *TLS, f uintptr, lim off_t) { /* shgetc.c:8:6: */ } func X__shgetc(tls *TLS, f uintptr) int32 { /* shgetc.c:19:5: */ + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } var c int32 var cnt off_t = (*FILE)(unsafe.Pointer(f)).Fshcnt + (int64((*FILE)(unsafe.Pointer(f)).Frpos)-int64((*FILE)(unsafe.Pointer(f)).Fbuf))/1 if (*FILE)(unsafe.Pointer(f)).Fshlim != 0 && cnt >= (*FILE)(unsafe.Pointer(f)).Fshlim || AssignInt32(&c, X__uflow(tls, f)) < 0 { @@ -2103,10 +2209,16 @@ type lconv = struct { var posix_lconv = lconv{Fdecimal_point: ts + 23, Fthousands_sep: ts + 13, Fgrouping: ts + 13, Fint_curr_symbol: ts + 13, Fcurrency_symbol: ts + 13, Fmon_decimal_point: ts + 13, Fmon_thousands_sep: ts + 13, Fmon_grouping: ts + 13, Fpositive_sign: ts + 13, Fnegative_sign: ts + 13, Fint_frac_digits: Int8FromInt32(255), Ffrac_digits: Int8FromInt32(255), Fp_cs_precedes: Int8FromInt32(255), Fp_sep_by_space: Int8FromInt32(255), Fn_cs_precedes: Int8FromInt32(255), Fn_sep_by_space: Int8FromInt32(255), Fp_sign_posn: Int8FromInt32(255), Fn_sign_posn: Int8FromInt32(255), Fint_p_cs_precedes: Int8FromInt32(255), Fint_p_sep_by_space: Int8FromInt32(255), Fint_n_cs_precedes: Int8FromInt32(255), Fint_n_sep_by_space: Int8FromInt32(255), Fint_p_sign_posn: Int8FromInt32(255), Fint_n_sign_posn: Int8FromInt32(255)} /* localeconv.c:4:27 */ func Xlocaleconv(tls *TLS) uintptr { /* localeconv.c:31:14: */ + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } return uintptr(unsafe.Pointer(&posix_lconv)) } func X__fpclassify(tls *TLS, x float64) int32 { /* __fpclassify.c:4:5: */ + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + } bp := tls.Alloc(8) defer tls.Free(8) @@ -2131,6 +2243,9 @@ func X__fpclassify(tls *TLS, x float64) int32 { /* __fpclassify.c:4:5: */ } func X__fpclassifyf(tls *TLS, x float32) int32 { /* __fpclassifyf.c:4:5: */ + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + } bp := tls.Alloc(4) defer tls.Free(4) @@ -2159,28 +2274,46 @@ func __bswap32(tls *TLS, __x uint32_t) uint32_t { /* endian.h:24:26: */ } func X__fpclassifyl(tls *TLS, x float64) int32 { /* __fpclassifyl.c:4:5: */ + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + } return X__fpclassify(tls, x) } func Xcopysignl(tls *TLS, x float64, y float64) float64 { /* copysignl.c:4:13: */ + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + } return Xcopysign(tls, x, y) } func Xfabsl(tls *TLS, x float64) float64 { /* fabsl.c:3:13: */ + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + } return Xfabs(tls, x) } func Xfmodl(tls *TLS, x float64, y float64) float64 { /* fmodl.c:4:13: */ + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + } return Xfmod(tls, x, y) } func Xnanf(tls *TLS, s uintptr) float32 { /* nanf.c:3:7: */ + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + } return X__builtin_nanf(tls, ts+13) } var toint double_t = float64(float64(1)) / 2.22044604925031308085e-16 /* rint.c:10:23 */ func Xrint(tls *TLS, x float64) float64 { /* rint.c:12:8: */ + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + } bp := tls.Alloc(8) defer tls.Free(8) @@ -2210,6 +2343,9 @@ func Xrint(tls *TLS, x float64) float64 { /* rint.c:12:8: */ } func Xscalbn(tls *TLS, x float64, n int32) float64 { /* scalbn.c:4:8: */ + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + } bp := tls.Alloc(8) defer tls.Free(8) @@ -2246,6 +2382,9 @@ func Xscalbn(tls *TLS, x float64, n int32) float64 { /* scalbn.c:4:8: */ } func Xscalbnl(tls *TLS, x float64, n int32) float64 { /* scalbnl.c:4:13: */ + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + } return Xscalbn(tls, x, n) } @@ -2558,6 +2697,9 @@ type resolvconf = struct { } /* lookup.h:34:1 */ func Xfreeaddrinfo(tls *TLS, p uintptr) { /* freeaddrinfo.c:7:6: */ + if __ccgo_strace { + trc("tls=%v p=%v, (%v:)", tls, p, origin(2)) + } var cnt size_t cnt = uint64(1) __1: @@ -2693,6 +2835,9 @@ type __ptcb = struct { } /* pthread.h:206:1 */ func Xgetaddrinfo(tls *TLS, host uintptr, serv uintptr, hint uintptr, res uintptr) int32 { /* getaddrinfo.c:12:5: */ + if __ccgo_strace { + trc("tls=%v host=%v serv=%v hint=%v res=%v, (%v:)", tls, host, serv, hint, res, origin(2)) + } bp := tls.Alloc(1608) defer tls.Free(1608) @@ -2897,6 +3042,9 @@ type mmsghdr = struct { } /* socket.h:63:1 */ func Xgethostbyaddr(tls *TLS, a uintptr, l socklen_t, af int32) uintptr { /* gethostbyaddr.c:7:16: */ + if __ccgo_strace { + trc("tls=%v a=%v l=%v af=%v, (%v:)", tls, a, l, af, origin(2)) + } bp := tls.Alloc(8) defer tls.Free(8) @@ -2923,6 +3071,9 @@ func Xgethostbyaddr(tls *TLS, a uintptr, l socklen_t, af int32) uintptr { /* get var _sh uintptr /* gethostbyaddr.c:9:24: */ func Xgethostbyaddr_r(tls *TLS, a uintptr, l socklen_t, af int32, h uintptr, buf uintptr, buflen size_t, res uintptr, err uintptr) int32 { /* gethostbyaddr_r.c:10:5: */ + if __ccgo_strace { + trc("tls=%v a=%v l=%v af=%v h=%v buf=%v buflen=%v res=%v err=%v, (%v:)", tls, a, l, af, h, buf, buflen, res, err, origin(2)) + } bp := tls.Alloc(28) defer tls.Free(28) @@ -3008,10 +3159,16 @@ func Xgethostbyaddr_r(tls *TLS, a uintptr, l socklen_t, af int32, h uintptr, buf } func Xgethostbyname(tls *TLS, name uintptr) uintptr { /* gethostbyname.c:8:16: */ + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + } return Xgethostbyname2(tls, name, 2) } func Xgethostbyname2(tls *TLS, name uintptr, af int32) uintptr { /* gethostbyname2.c:8:16: */ + if __ccgo_strace { + trc("tls=%v name=%v af=%v, (%v:)", tls, name, af, origin(2)) + } bp := tls.Alloc(8) defer tls.Free(8) @@ -3038,6 +3195,9 @@ func Xgethostbyname2(tls *TLS, name uintptr, af int32) uintptr { /* gethostbynam var _sh1 uintptr /* gethostbyname2.c:10:24: */ func Xgethostbyname2_r(tls *TLS, name uintptr, af int32, h uintptr, buf uintptr, buflen size_t, res uintptr, err uintptr) int32 { /* gethostbyname2_r.c:11:5: */ + if __ccgo_strace { + trc("tls=%v name=%v af=%v h=%v buf=%v buflen=%v res=%v err=%v, (%v:)", tls, name, af, h, buf, buflen, res, err, origin(2)) + } bp := tls.Alloc(1600) defer tls.Free(1600) @@ -3424,6 +3584,9 @@ func reverse_services(tls *TLS, buf uintptr, port int32, dgram int32) { /* getna } func Xgetnameinfo(tls *TLS, sa1 uintptr, sl socklen_t, node uintptr, nodelen socklen_t, serv uintptr, servlen socklen_t, flags int32) int32 { /* getnameinfo.c:125:5: */ + if __ccgo_strace { + trc("tls=%v sa1=%v sl=%v node=%v nodelen=%v serv=%v servlen=%v flags=%v, (%v:)", tls, sa1, sl, node, nodelen, serv, servlen, flags, origin(2)) + } bp := tls.Alloc(347) defer tls.Free(347) @@ -3524,10 +3687,16 @@ func Xgetnameinfo(tls *TLS, sa1 uintptr, sl socklen_t, node uintptr, nodelen soc var Xh_errno int32 /* h_errno.c:4:5: */ func X__h_errno_location(tls *TLS) uintptr { /* h_errno.c:6:5: */ + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } return uintptr(unsafe.Pointer(&Xh_errno)) } func X__inet_aton(tls *TLS, s0 uintptr, dest uintptr) int32 { /* inet_aton.c:7:5: */ + if __ccgo_strace { + trc("tls=%v s0=%v dest=%v, (%v:)", tls, s0, dest, origin(2)) + } bp := tls.Alloc(40) defer tls.Free(40) @@ -3579,6 +3748,9 @@ func X__inet_aton(tls *TLS, s0 uintptr, dest uintptr) int32 { /* inet_aton.c:7:5 } func Xinet_ntop(tls *TLS, af int32, a0 uintptr, s uintptr, l socklen_t) uintptr { /* inet_ntop.c:7:12: */ + if __ccgo_strace { + trc("tls=%v af=%v a0=%v s=%v l=%v, (%v:)", tls, af, a0, s, l, origin(2)) + } bp := tls.Alloc(276) defer tls.Free(276) @@ -3653,6 +3825,9 @@ func hexval(tls *TLS, c uint32) int32 { /* inet_pton.c:7:12: */ } func Xinet_pton(tls *TLS, af int32, s uintptr, a0 uintptr) int32 { /* inet_pton.c:15:5: */ + if __ccgo_strace { + trc("tls=%v af=%v s=%v a0=%v, (%v:)", tls, af, s, a0, origin(2)) + } bp := tls.Alloc(16) defer tls.Free(16) @@ -3750,6 +3925,9 @@ func Xinet_pton(tls *TLS, af int32, s uintptr, a0 uintptr) int32 { /* inet_pton. } func X__lookup_ipliteral(tls *TLS, buf uintptr, name uintptr, family int32) int32 { /* lookup_ipliteral.c:12:5: */ + if __ccgo_strace { + trc("tls=%v buf=%v name=%v family=%v, (%v:)", tls, buf, name, family, origin(2)) + } bp := tls.Alloc(96) defer tls.Free(96) @@ -4072,6 +4250,9 @@ func addrcmp(tls *TLS, _a uintptr, _b uintptr) int32 { /* lookup_name.c:305:12: } func X__lookup_name(tls *TLS, buf uintptr, canon uintptr, name uintptr, family int32, flags int32) int32 { /* lookup_name.c:311:5: */ + if __ccgo_strace { + trc("tls=%v buf=%v canon=%v name=%v family=%v flags=%v, (%v:)", tls, buf, canon, name, family, flags, origin(2)) + } bp := tls.Alloc(92) defer tls.Free(92) @@ -4238,6 +4419,9 @@ func X__lookup_name(tls *TLS, buf uintptr, canon uintptr, name uintptr, family i } func X__lookup_serv(tls *TLS, buf uintptr, name uintptr, proto int32, socktype int32, flags int32) int32 { /* lookup_serv.c:12:5: */ + if __ccgo_strace { + trc("tls=%v buf=%v name=%v proto=%v socktype=%v flags=%v, (%v:)", tls, buf, name, proto, socktype, flags, origin(2)) + } bp := tls.Alloc(8) defer tls.Free(8) @@ -4371,10 +4555,16 @@ func temper(tls *TLS, x uint32) uint32 { /* rand_r.c:3:17: */ } func Xrand_r(tls *TLS, seed uintptr) int32 { /* rand_r.c:12:5: */ + if __ccgo_strace { + trc("tls=%v seed=%v, (%v:)", tls, seed, origin(2)) + } return int32(temper(tls, AssignPtrUint32(seed, *(*uint32)(unsafe.Pointer(seed))*uint32(1103515245)+uint32(12345))) / uint32(2)) } func X__toread(tls *TLS, f uintptr) int32 { /* __toread.c:3:5: */ + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } *(*int32)(unsafe.Pointer(f + 136)) |= (*FILE)(unsafe.Pointer(f)).Fmode - 1 if (*FILE)(unsafe.Pointer(f)).Fwpos != (*FILE)(unsafe.Pointer(f)).Fwbase { (*struct { @@ -4394,6 +4584,9 @@ func X__toread(tls *TLS, f uintptr) int32 { /* __toread.c:3:5: */ } func X__toread_needs_stdio_exit(tls *TLS) { /* __toread.c:16:13: */ + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } X__builtin_abort(tls) //TODO- // __stdio_exit_needed(); } @@ -4402,6 +4595,9 @@ func X__toread_needs_stdio_exit(tls *TLS) { /* __toread.c:16:13: */ // data buffered for reading. func X__uflow(tls *TLS, f uintptr) int32 { /* __uflow.c:6:5: */ + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } bp := tls.Alloc(1) defer tls.Free(1) @@ -4416,6 +4612,9 @@ func X__uflow(tls *TLS, f uintptr) int32 { /* __uflow.c:6:5: */ } func Xbsearch(tls *TLS, key uintptr, base uintptr, nel size_t, width size_t, cmp uintptr) uintptr { /* bsearch.c:3:6: */ + if __ccgo_strace { + trc("tls=%v key=%v base=%v nel=%v width=%v cmp=%v, (%v:)", tls, key, base, nel, width, cmp, origin(2)) + } var try uintptr var sign int32 for nel > uint64(0) { @@ -4458,14 +4657,23 @@ func strtox(tls *TLS, s uintptr, p uintptr, prec int32) float64 { /* strtod.c:6: } func Xstrtof(tls *TLS, s uintptr, p uintptr) float32 { /* strtod.c:17:7: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + } return float32(strtox(tls, s, p, 0)) } func Xstrtod(tls *TLS, s uintptr, p uintptr) float64 { /* strtod.c:22:8: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + } return strtox(tls, s, p, 1) } func Xstrtold(tls *TLS, s uintptr, p uintptr) float64 { /* strtod.c:27:13: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + } return strtox(tls, s, p, 2) } @@ -4487,26 +4695,44 @@ func strtox1(tls *TLS, s uintptr, p uintptr, base int32, lim uint64) uint64 { /* } func Xstrtoull(tls *TLS, s uintptr, p uintptr, base int32) uint64 { /* strtol.c:21:20: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + } return strtox1(tls, s, p, base, 2*uint64(0x7fffffffffffffff)+uint64(1)) } func Xstrtoll(tls *TLS, s uintptr, p uintptr, base int32) int64 { /* strtol.c:26:11: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + } return int64(strtox1(tls, s, p, base, Uint64FromInt64(-0x7fffffffffffffff-int64(1)))) } func Xstrtoul(tls *TLS, s uintptr, p uintptr, base int32) uint64 { /* strtol.c:31:15: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + } return uint64(strtox1(tls, s, p, base, 2*uint64(0x7fffffffffffffff)+uint64(1))) } func Xstrtol(tls *TLS, s uintptr, p uintptr, base int32) int64 { /* strtol.c:36:6: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + } return int64(strtox1(tls, s, p, base, 0+Uint64FromInt64(Int64(-Int64(0x7fffffffffffffff))-Int64FromInt32(1)))) } func Xstrtoimax(tls *TLS, s uintptr, p uintptr, base int32) intmax_t { /* strtol.c:41:10: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + } return intmax_t(Xstrtoll(tls, s, p, base)) } func Xstrtoumax(tls *TLS, s uintptr, p uintptr, base int32) uintmax_t { /* strtol.c:46:11: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + } return uintmax_t(Xstrtoull(tls, s, p, base)) } @@ -4520,6 +4746,9 @@ func Xstrtoumax(tls *TLS, s uintptr, p uintptr, base int32) uintmax_t { /* strto // from SUS and have nothing to do with the host system. func X__strchrnul(tls *TLS, s uintptr, c int32) uintptr { /* strchrnul.c:10:6: */ + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + } c = int32(uint8(c)) if !(c != 0) { return s + uintptr(Xstrlen(tls, s)) @@ -4540,6 +4769,9 @@ func X__strchrnul(tls *TLS, s uintptr, c int32) uintptr { /* strchrnul.c:10:6: * } func Xstrdup(tls *TLS, s uintptr) uintptr { /* strdup.c:4:6: */ + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + } var l size_t = Xstrlen(tls, s) var d uintptr = Xmalloc(tls, l+uint64(1)) if !(d != 0) { @@ -4549,6 +4781,9 @@ func Xstrdup(tls *TLS, s uintptr) uintptr { /* strdup.c:4:6: */ } func Xstrlcat(tls *TLS, d uintptr, s uintptr, n size_t) size_t { /* strlcat.c:4:8: */ + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + } var l size_t = Xstrnlen(tls, d, n) if l == n { return l + Xstrlen(tls, s) @@ -4566,6 +4801,9 @@ func Xstrlcat(tls *TLS, d uintptr, s uintptr, n size_t) size_t { /* strlcat.c:4: // from SUS and have nothing to do with the host system. func Xstrlcpy(tls *TLS, d uintptr, s uintptr, n size_t) size_t { /* strlcpy.c:11:8: */ + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + } var d0 uintptr var wd uintptr var ws uintptr @@ -4637,6 +4875,9 @@ finish: } func Xstrncasecmp(tls *TLS, _l uintptr, _r uintptr, n size_t) int32 { /* strncasecmp.c:4:5: */ + if __ccgo_strace { + trc("tls=%v _l=%v _r=%v n=%v, (%v:)", tls, _l, _r, n, origin(2)) + } var l uintptr = _l var r uintptr = _r if !(int32(PostDecUint64(&n, 1)) != 0) { @@ -4659,10 +4900,16 @@ __3: } func X__strncasecmp_l(tls *TLS, l uintptr, r uintptr, n size_t, loc locale_t) int32 { /* strncasecmp.c:12:5: */ + if __ccgo_strace { + trc("tls=%v l=%v r=%v n=%v loc=%v, (%v:)", tls, l, r, n, loc, origin(2)) + } return Xstrncasecmp(tls, l, r, n) } func Xstrncat(tls *TLS, d uintptr, s uintptr, n size_t) uintptr { /* strncat.c:3:6: */ + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + } var a uintptr = d d += uintptr(Xstrlen(tls, d)) for n != 0 && *(*int8)(unsafe.Pointer(s)) != 0 { @@ -4674,6 +4921,9 @@ func Xstrncat(tls *TLS, d uintptr, s uintptr, n size_t) uintptr { /* strncat.c:3 } func Xstrnlen(tls *TLS, s uintptr, n size_t) size_t { /* strnlen.c:3:8: */ + if __ccgo_strace { + trc("tls=%v s=%v n=%v, (%v:)", tls, s, n, origin(2)) + } var p uintptr = Xmemchr(tls, s, 0, n) if p != 0 { return uint64((int64(p) - int64(s)) / 1) @@ -4682,6 +4932,9 @@ func Xstrnlen(tls *TLS, s uintptr, n size_t) size_t { /* strnlen.c:3:8: */ } func Xstrspn(tls *TLS, s uintptr, c uintptr) size_t { /* strspn.c:6:8: */ + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + } bp := tls.Alloc(32) defer tls.Free(32) @@ -4705,6 +4958,9 @@ func Xstrspn(tls *TLS, s uintptr, c uintptr) size_t { /* strspn.c:6:8: */ } func Xstrtok(tls *TLS, s uintptr, sep uintptr) uintptr { /* strtok.c:3:6: */ + if __ccgo_strace { + trc("tls=%v s=%v sep=%v, (%v:)", tls, s, sep, origin(2)) + } if !(s != 0) && !(int32(AssignUintptr(&s, _sp)) != 0) { return uintptr(0) } diff --git a/vendor/modernc.org/libc/musl_darwin_arm64.go b/vendor/modernc.org/libc/musl_darwin_arm64.go index e6fc642a8..65b8c5363 100644 --- a/vendor/modernc.org/libc/musl_darwin_arm64.go +++ b/vendor/modernc.org/libc/musl_darwin_arm64.go @@ -459,6 +459,9 @@ type _RuneLocale = struct { } /* table.c:1616:3 */ func X__istype(tls *TLS, _c int32, _f uint64) int32 { /* table.c:1670:1: */ + if __ccgo_strace { + trc("tls=%v _c=%v _f=%v, (%v:)", tls, _c, _f, origin(2)) + } return func() int32 { if Xisascii(tls, _c) != 0 { @@ -470,6 +473,9 @@ func X__istype(tls *TLS, _c int32, _f uint64) int32 { /* table.c:1670:1: */ } func X__isctype(tls *TLS, _c int32, _f uint64) int32 { /* table.c:1681:1: */ + if __ccgo_strace { + trc("tls=%v _c=%v _f=%v, (%v:)", tls, _c, _f, origin(2)) + } if _c < 0 || _c >= int32(1)<<8 { return 0 @@ -479,6 +485,9 @@ func X__isctype(tls *TLS, _c int32, _f uint64) int32 { /* table.c:1681:1: */ } func X__wcwidth(tls *TLS, _c int32) int32 { /* table.c:1700:1: */ + if __ccgo_strace { + trc("tls=%v _c=%v, (%v:)", tls, _c, origin(2)) + } var _x uint32 if _c == 0 { @@ -497,90 +506,156 @@ func X__wcwidth(tls *TLS, _c int32) int32 { /* table.c:1700:1: */ } func Xisalnum(tls *TLS, _c int32) int32 { /* table.c:1718:1: */ + if __ccgo_strace { + trc("tls=%v _c=%v, (%v:)", tls, _c, origin(2)) + } return X__istype(tls, _c, uint64(0x00000100|0x00000400)) } func Xisalpha(tls *TLS, _c int32) int32 { /* table.c:1724:1: */ + if __ccgo_strace { + trc("tls=%v _c=%v, (%v:)", tls, _c, origin(2)) + } return X__istype(tls, _c, uint64(0x00000100)) } func Xisblank(tls *TLS, _c int32) int32 { /* table.c:1730:1: */ + if __ccgo_strace { + trc("tls=%v _c=%v, (%v:)", tls, _c, origin(2)) + } return X__istype(tls, _c, uint64(0x00020000)) } func Xiscntrl(tls *TLS, _c int32) int32 { /* table.c:1736:1: */ + if __ccgo_strace { + trc("tls=%v _c=%v, (%v:)", tls, _c, origin(2)) + } return X__istype(tls, _c, uint64(0x00000200)) } func Xisdigit(tls *TLS, _c int32) int32 { /* table.c:1743:1: */ + if __ccgo_strace { + trc("tls=%v _c=%v, (%v:)", tls, _c, origin(2)) + } return X__isctype(tls, _c, uint64(0x00000400)) } func Xisgraph(tls *TLS, _c int32) int32 { /* table.c:1749:1: */ + if __ccgo_strace { + trc("tls=%v _c=%v, (%v:)", tls, _c, origin(2)) + } return X__istype(tls, _c, uint64(0x00000800)) } func Xislower(tls *TLS, _c int32) int32 { /* table.c:1755:1: */ + if __ccgo_strace { + trc("tls=%v _c=%v, (%v:)", tls, _c, origin(2)) + } return X__istype(tls, _c, uint64(0x00001000)) } func Xisprint(tls *TLS, _c int32) int32 { /* table.c:1761:1: */ + if __ccgo_strace { + trc("tls=%v _c=%v, (%v:)", tls, _c, origin(2)) + } return X__istype(tls, _c, uint64(0x00040000)) } func Xispunct(tls *TLS, _c int32) int32 { /* table.c:1767:1: */ + if __ccgo_strace { + trc("tls=%v _c=%v, (%v:)", tls, _c, origin(2)) + } return X__istype(tls, _c, uint64(0x00002000)) } func Xisupper(tls *TLS, _c int32) int32 { /* table.c:1779:1: */ + if __ccgo_strace { + trc("tls=%v _c=%v, (%v:)", tls, _c, origin(2)) + } return X__istype(tls, _c, uint64(0x00008000)) } func Xisxdigit(tls *TLS, _c int32) int32 { /* table.c:1786:1: */ + if __ccgo_strace { + trc("tls=%v _c=%v, (%v:)", tls, _c, origin(2)) + } return X__isctype(tls, _c, uint64(0x00010000)) } func Xtoascii(tls *TLS, _c int32) int32 { /* table.c:1792:1: */ + if __ccgo_strace { + trc("tls=%v _c=%v, (%v:)", tls, _c, origin(2)) + } return _c & 0x7F } func Xdigittoint(tls *TLS, _c int32) int32 { /* table.c:1811:1: */ + if __ccgo_strace { + trc("tls=%v _c=%v, (%v:)", tls, _c, origin(2)) + } return X__maskrune(tls, _c, uint64(0x0F)) } func Xishexnumber(tls *TLS, _c int32) int32 { /* table.c:1817:1: */ + if __ccgo_strace { + trc("tls=%v _c=%v, (%v:)", tls, _c, origin(2)) + } return X__istype(tls, _c, uint64(0x00010000)) } func Xisideogram(tls *TLS, _c int32) int32 { /* table.c:1823:1: */ + if __ccgo_strace { + trc("tls=%v _c=%v, (%v:)", tls, _c, origin(2)) + } return X__istype(tls, _c, uint64(0x00080000)) } func Xisnumber(tls *TLS, _c int32) int32 { /* table.c:1829:1: */ + if __ccgo_strace { + trc("tls=%v _c=%v, (%v:)", tls, _c, origin(2)) + } return X__istype(tls, _c, uint64(0x00000400)) } func Xisphonogram(tls *TLS, _c int32) int32 { /* table.c:1835:1: */ + if __ccgo_strace { + trc("tls=%v _c=%v, (%v:)", tls, _c, origin(2)) + } return X__istype(tls, _c, uint64(0x00200000)) } func Xisrune(tls *TLS, _c int32) int32 { /* table.c:1841:1: */ + if __ccgo_strace { + trc("tls=%v _c=%v, (%v:)", tls, _c, origin(2)) + } return X__istype(tls, _c, uint64(0xFFFFFFF0)) } func Xisspecial(tls *TLS, _c int32) int32 { /* table.c:1847:1: */ + if __ccgo_strace { + trc("tls=%v _c=%v, (%v:)", tls, _c, origin(2)) + } return X__istype(tls, _c, uint64(0x00100000)) } func X__maskrune(tls *TLS, _c int32, _f uint64) int32 { /* table.c:1871:2: */ + if __ccgo_strace { + trc("tls=%v _c=%v _f=%v, (%v:)", tls, _c, _f, origin(2)) + } return int32(uint32(int32(*(*uint32)(unsafe.Pointer(uintptr(unsafe.Pointer(&X_DefaultRuneLocale)) + 60 + uintptr(_c&0xff)*4)))) & uint32(_f)) } func X__toupper(tls *TLS, c int32) int32 { /* table.c:1876:20: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Xtoupper(tls, c) } func X__tolower(tls *TLS, c int32) int32 { /* table.c:1878:20: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Xtolower(tls, c) } @@ -670,6 +745,9 @@ type gid_t = uint32 /* alltypes.h:258:18 */ type useconds_t = uint32 /* alltypes.h:268:18 */ func X__putenv(tls *TLS, s uintptr, l size_t, r uintptr) int32 { /* putenv.c:8:5: */ + if __ccgo_strace { + trc("tls=%v s=%v l=%v r=%v, (%v:)", tls, s, l, r, origin(2)) + } var i size_t var newenv uintptr var tmp uintptr @@ -750,6 +828,9 @@ oom: var _soldenv uintptr /* putenv.c:22:14: */ func Xputenv(tls *TLS, s uintptr) int32 { /* putenv.c:43:5: */ + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + } var l size_t = size_t((int64(X__strchrnul(tls, s, '=')) - int64(s)) / 1) if !(l != 0) || !(int32(*(*int8)(unsafe.Pointer(s + uintptr(l)))) != 0) { return Xunsetenv(tls, s) @@ -758,6 +839,9 @@ func Xputenv(tls *TLS, s uintptr) int32 { /* putenv.c:43:5: */ } func X__env_rm_add(tls *TLS, old uintptr, new uintptr) { /* setenv.c:5:6: */ + if __ccgo_strace { + trc("tls=%v old=%v new=%v, (%v:)", tls, old, new, origin(2)) + } //TODO for (size_t i=0; i < env_alloced_n; i++) var i size_t = uint64(0) for ; i < _senv_alloced_n; i++ { @@ -784,6 +868,9 @@ var _senv_alloced uintptr /* setenv.c:7:14: */ var _senv_alloced_n size_t /* setenv.c:8:16: */ func Xsetenv(tls *TLS, var1 uintptr, value uintptr, overwrite int32) int32 { /* setenv.c:26:5: */ + if __ccgo_strace { + trc("tls=%v var1=%v value=%v overwrite=%v, (%v:)", tls, var1, value, overwrite, origin(2)) + } var s uintptr var l1 size_t var l2 size_t @@ -808,6 +895,9 @@ func Xsetenv(tls *TLS, var1 uintptr, value uintptr, overwrite int32) int32 { /* } func Xunsetenv(tls *TLS, name uintptr) int32 { /* unsetenv.c:9:5: */ + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + } var l size_t = size_t((int64(X__strchrnul(tls, name, '=')) - int64(name)) / 1) if !(l != 0) || *(*int8)(unsafe.Pointer(name + uintptr(l))) != 0 { *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 22 @@ -1549,6 +1639,9 @@ func hexfloat(tls *TLS, f uintptr, bits int32, emin int32, sign int32, pok int32 } func X__floatscan(tls *TLS, f uintptr, prec int32, pok int32) float64 { /* floatscan.c:427:13: */ + if __ccgo_strace { + trc("tls=%v f=%v prec=%v pok=%v, (%v:)", tls, f, prec, pok, origin(2)) + } var sign int32 = 1 var i size_t var bits int32 @@ -1726,6 +1819,9 @@ var table = [257]uint8{Uint8FromInt32(-1), } /* intscan.c:7:28 */ func X__intscan(tls *TLS, f uintptr, base uint32, pok int32, lim uint64) uint64 { /* intscan.c:26:20: */ + if __ccgo_strace { + trc("tls=%v f=%v base=%v pok=%v lim=%v, (%v:)", tls, f, base, pok, lim, origin(2)) + } var val uintptr var c int32 var neg int32 @@ -2031,6 +2127,9 @@ __43: // the actual count. func X__shlim(tls *TLS, f uintptr, lim off_t) { /* shgetc.c:8:6: */ + if __ccgo_strace { + trc("tls=%v f=%v lim=%v, (%v:)", tls, f, lim, origin(2)) + } (*FILE)(unsafe.Pointer(f)).Fshlim = lim (*FILE)(unsafe.Pointer(f)).Fshcnt = (int64((*FILE)(unsafe.Pointer(f)).Fbuf) - int64((*FILE)(unsafe.Pointer(f)).Frpos)) / 1 // If lim is nonzero, rend must be a valid pointer. @@ -2042,6 +2141,9 @@ func X__shlim(tls *TLS, f uintptr, lim off_t) { /* shgetc.c:8:6: */ } func X__shgetc(tls *TLS, f uintptr) int32 { /* shgetc.c:19:5: */ + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } var c int32 var cnt off_t = (*FILE)(unsafe.Pointer(f)).Fshcnt + (int64((*FILE)(unsafe.Pointer(f)).Frpos)-int64((*FILE)(unsafe.Pointer(f)).Fbuf))/1 if (*FILE)(unsafe.Pointer(f)).Fshlim != 0 && cnt >= (*FILE)(unsafe.Pointer(f)).Fshlim || AssignInt32(&c, X__uflow(tls, f)) < 0 { @@ -2103,10 +2205,16 @@ type lconv = struct { var posix_lconv = lconv{Fdecimal_point: ts + 23, Fthousands_sep: ts + 13, Fgrouping: ts + 13, Fint_curr_symbol: ts + 13, Fcurrency_symbol: ts + 13, Fmon_decimal_point: ts + 13, Fmon_thousands_sep: ts + 13, Fmon_grouping: ts + 13, Fpositive_sign: ts + 13, Fnegative_sign: ts + 13, Fint_frac_digits: Int8FromInt32(255), Ffrac_digits: Int8FromInt32(255), Fp_cs_precedes: Int8FromInt32(255), Fp_sep_by_space: Int8FromInt32(255), Fn_cs_precedes: Int8FromInt32(255), Fn_sep_by_space: Int8FromInt32(255), Fp_sign_posn: Int8FromInt32(255), Fn_sign_posn: Int8FromInt32(255), Fint_p_cs_precedes: Int8FromInt32(255), Fint_p_sep_by_space: Int8FromInt32(255), Fint_n_cs_precedes: Int8FromInt32(255), Fint_n_sep_by_space: Int8FromInt32(255), Fint_p_sign_posn: Int8FromInt32(255), Fint_n_sign_posn: Int8FromInt32(255)} /* localeconv.c:4:27 */ func Xlocaleconv(tls *TLS) uintptr { /* localeconv.c:31:14: */ + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } return uintptr(unsafe.Pointer(&posix_lconv)) } func X__fpclassify(tls *TLS, x float64) int32 { /* __fpclassify.c:4:5: */ + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + } bp := tls.Alloc(8) defer tls.Free(8) @@ -2131,6 +2239,9 @@ func X__fpclassify(tls *TLS, x float64) int32 { /* __fpclassify.c:4:5: */ } func X__fpclassifyf(tls *TLS, x float32) int32 { /* __fpclassifyf.c:4:5: */ + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + } bp := tls.Alloc(4) defer tls.Free(4) @@ -2159,28 +2270,46 @@ func __bswap32(tls *TLS, __x uint32_t) uint32_t { /* endian.h:24:26: */ } func X__fpclassifyl(tls *TLS, x float64) int32 { /* __fpclassifyl.c:4:5: */ + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + } return X__fpclassify(tls, x) } func Xcopysignl(tls *TLS, x float64, y float64) float64 { /* copysignl.c:4:13: */ + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + } return Xcopysign(tls, x, y) } func Xfabsl(tls *TLS, x float64) float64 { /* fabsl.c:3:13: */ + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + } return Xfabs(tls, x) } func Xfmodl(tls *TLS, x float64, y float64) float64 { /* fmodl.c:4:13: */ + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + } return Xfmod(tls, x, y) } func Xnanf(tls *TLS, s uintptr) float32 { /* nanf.c:3:7: */ + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + } return X__builtin_nanf(tls, ts+13) } var toint double_t = float64(float64(1)) / 2.22044604925031308085e-16 /* rint.c:10:23 */ func Xrint(tls *TLS, x float64) float64 { /* rint.c:12:8: */ + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + } bp := tls.Alloc(8) defer tls.Free(8) @@ -2210,6 +2339,9 @@ func Xrint(tls *TLS, x float64) float64 { /* rint.c:12:8: */ } func Xscalbn(tls *TLS, x float64, n int32) float64 { /* scalbn.c:4:8: */ + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + } bp := tls.Alloc(8) defer tls.Free(8) @@ -2246,6 +2378,9 @@ func Xscalbn(tls *TLS, x float64, n int32) float64 { /* scalbn.c:4:8: */ } func Xscalbnl(tls *TLS, x float64, n int32) float64 { /* scalbnl.c:4:13: */ + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + } return Xscalbn(tls, x, n) } @@ -2558,6 +2693,9 @@ type resolvconf = struct { } /* lookup.h:34:1 */ func Xfreeaddrinfo(tls *TLS, p uintptr) { /* freeaddrinfo.c:7:6: */ + if __ccgo_strace { + trc("tls=%v p=%v, (%v:)", tls, p, origin(2)) + } var cnt size_t cnt = uint64(1) __1: @@ -2693,6 +2831,9 @@ type __ptcb = struct { } /* pthread.h:206:1 */ func Xgetaddrinfo(tls *TLS, host uintptr, serv uintptr, hint uintptr, res uintptr) int32 { /* getaddrinfo.c:12:5: */ + if __ccgo_strace { + trc("tls=%v host=%v serv=%v hint=%v res=%v, (%v:)", tls, host, serv, hint, res, origin(2)) + } bp := tls.Alloc(1608) defer tls.Free(1608) @@ -2897,6 +3038,9 @@ type mmsghdr = struct { } /* socket.h:63:1 */ func Xgethostbyaddr(tls *TLS, a uintptr, l socklen_t, af int32) uintptr { /* gethostbyaddr.c:7:16: */ + if __ccgo_strace { + trc("tls=%v a=%v l=%v af=%v, (%v:)", tls, a, l, af, origin(2)) + } bp := tls.Alloc(8) defer tls.Free(8) @@ -2923,6 +3067,9 @@ func Xgethostbyaddr(tls *TLS, a uintptr, l socklen_t, af int32) uintptr { /* get var _sh uintptr /* gethostbyaddr.c:9:24: */ func Xgethostbyaddr_r(tls *TLS, a uintptr, l socklen_t, af int32, h uintptr, buf uintptr, buflen size_t, res uintptr, err uintptr) int32 { /* gethostbyaddr_r.c:10:5: */ + if __ccgo_strace { + trc("tls=%v a=%v l=%v af=%v h=%v buf=%v buflen=%v res=%v err=%v, (%v:)", tls, a, l, af, h, buf, buflen, res, err, origin(2)) + } bp := tls.Alloc(28) defer tls.Free(28) @@ -3008,10 +3155,16 @@ func Xgethostbyaddr_r(tls *TLS, a uintptr, l socklen_t, af int32, h uintptr, buf } func Xgethostbyname(tls *TLS, name uintptr) uintptr { /* gethostbyname.c:8:16: */ + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + } return Xgethostbyname2(tls, name, 2) } func Xgethostbyname2(tls *TLS, name uintptr, af int32) uintptr { /* gethostbyname2.c:8:16: */ + if __ccgo_strace { + trc("tls=%v name=%v af=%v, (%v:)", tls, name, af, origin(2)) + } bp := tls.Alloc(8) defer tls.Free(8) @@ -3038,6 +3191,9 @@ func Xgethostbyname2(tls *TLS, name uintptr, af int32) uintptr { /* gethostbynam var _sh1 uintptr /* gethostbyname2.c:10:24: */ func Xgethostbyname2_r(tls *TLS, name uintptr, af int32, h uintptr, buf uintptr, buflen size_t, res uintptr, err uintptr) int32 { /* gethostbyname2_r.c:11:5: */ + if __ccgo_strace { + trc("tls=%v name=%v af=%v h=%v buf=%v buflen=%v res=%v err=%v, (%v:)", tls, name, af, h, buf, buflen, res, err, origin(2)) + } bp := tls.Alloc(1600) defer tls.Free(1600) @@ -3424,6 +3580,9 @@ func reverse_services(tls *TLS, buf uintptr, port int32, dgram int32) { /* getna } func Xgetnameinfo(tls *TLS, sa1 uintptr, sl socklen_t, node uintptr, nodelen socklen_t, serv uintptr, servlen socklen_t, flags int32) int32 { /* getnameinfo.c:125:5: */ + if __ccgo_strace { + trc("tls=%v sa1=%v sl=%v node=%v nodelen=%v serv=%v servlen=%v flags=%v, (%v:)", tls, sa1, sl, node, nodelen, serv, servlen, flags, origin(2)) + } bp := tls.Alloc(347) defer tls.Free(347) @@ -3524,10 +3683,16 @@ func Xgetnameinfo(tls *TLS, sa1 uintptr, sl socklen_t, node uintptr, nodelen soc var Xh_errno int32 /* h_errno.c:4:5: */ func X__h_errno_location(tls *TLS) uintptr { /* h_errno.c:6:5: */ + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } return uintptr(unsafe.Pointer(&Xh_errno)) } func X__inet_aton(tls *TLS, s0 uintptr, dest uintptr) int32 { /* inet_aton.c:7:5: */ + if __ccgo_strace { + trc("tls=%v s0=%v dest=%v, (%v:)", tls, s0, dest, origin(2)) + } bp := tls.Alloc(40) defer tls.Free(40) @@ -3579,6 +3744,9 @@ func X__inet_aton(tls *TLS, s0 uintptr, dest uintptr) int32 { /* inet_aton.c:7:5 } func Xinet_ntop(tls *TLS, af int32, a0 uintptr, s uintptr, l socklen_t) uintptr { /* inet_ntop.c:7:12: */ + if __ccgo_strace { + trc("tls=%v af=%v a0=%v s=%v l=%v, (%v:)", tls, af, a0, s, l, origin(2)) + } bp := tls.Alloc(276) defer tls.Free(276) @@ -3653,6 +3821,9 @@ func hexval(tls *TLS, c uint32) int32 { /* inet_pton.c:7:12: */ } func Xinet_pton(tls *TLS, af int32, s uintptr, a0 uintptr) int32 { /* inet_pton.c:15:5: */ + if __ccgo_strace { + trc("tls=%v af=%v s=%v a0=%v, (%v:)", tls, af, s, a0, origin(2)) + } bp := tls.Alloc(16) defer tls.Free(16) @@ -3750,6 +3921,9 @@ func Xinet_pton(tls *TLS, af int32, s uintptr, a0 uintptr) int32 { /* inet_pton. } func X__lookup_ipliteral(tls *TLS, buf uintptr, name uintptr, family int32) int32 { /* lookup_ipliteral.c:12:5: */ + if __ccgo_strace { + trc("tls=%v buf=%v name=%v family=%v, (%v:)", tls, buf, name, family, origin(2)) + } bp := tls.Alloc(96) defer tls.Free(96) @@ -4072,6 +4246,9 @@ func addrcmp(tls *TLS, _a uintptr, _b uintptr) int32 { /* lookup_name.c:305:12: } func X__lookup_name(tls *TLS, buf uintptr, canon uintptr, name uintptr, family int32, flags int32) int32 { /* lookup_name.c:311:5: */ + if __ccgo_strace { + trc("tls=%v buf=%v canon=%v name=%v family=%v flags=%v, (%v:)", tls, buf, canon, name, family, flags, origin(2)) + } bp := tls.Alloc(92) defer tls.Free(92) @@ -4238,6 +4415,9 @@ func X__lookup_name(tls *TLS, buf uintptr, canon uintptr, name uintptr, family i } func X__lookup_serv(tls *TLS, buf uintptr, name uintptr, proto int32, socktype int32, flags int32) int32 { /* lookup_serv.c:12:5: */ + if __ccgo_strace { + trc("tls=%v buf=%v name=%v proto=%v socktype=%v flags=%v, (%v:)", tls, buf, name, proto, socktype, flags, origin(2)) + } bp := tls.Alloc(8) defer tls.Free(8) @@ -4371,10 +4551,16 @@ func temper(tls *TLS, x uint32) uint32 { /* rand_r.c:3:17: */ } func Xrand_r(tls *TLS, seed uintptr) int32 { /* rand_r.c:12:5: */ + if __ccgo_strace { + trc("tls=%v seed=%v, (%v:)", tls, seed, origin(2)) + } return int32(temper(tls, AssignPtrUint32(seed, *(*uint32)(unsafe.Pointer(seed))*uint32(1103515245)+uint32(12345))) / uint32(2)) } func X__toread(tls *TLS, f uintptr) int32 { /* __toread.c:3:5: */ + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } *(*int32)(unsafe.Pointer(f + 136)) |= (*FILE)(unsafe.Pointer(f)).Fmode - 1 if (*FILE)(unsafe.Pointer(f)).Fwpos != (*FILE)(unsafe.Pointer(f)).Fwbase { (*struct { @@ -4394,6 +4580,9 @@ func X__toread(tls *TLS, f uintptr) int32 { /* __toread.c:3:5: */ } func X__toread_needs_stdio_exit(tls *TLS) { /* __toread.c:16:13: */ + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } X__builtin_abort(tls) //TODO- // __stdio_exit_needed(); } @@ -4402,6 +4591,9 @@ func X__toread_needs_stdio_exit(tls *TLS) { /* __toread.c:16:13: */ // data buffered for reading. func X__uflow(tls *TLS, f uintptr) int32 { /* __uflow.c:6:5: */ + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } bp := tls.Alloc(1) defer tls.Free(1) @@ -4416,6 +4608,9 @@ func X__uflow(tls *TLS, f uintptr) int32 { /* __uflow.c:6:5: */ } func Xbsearch(tls *TLS, key uintptr, base uintptr, nel size_t, width size_t, cmp uintptr) uintptr { /* bsearch.c:3:6: */ + if __ccgo_strace { + trc("tls=%v key=%v base=%v nel=%v width=%v cmp=%v, (%v:)", tls, key, base, nel, width, cmp, origin(2)) + } var try uintptr var sign int32 for nel > uint64(0) { @@ -4458,14 +4653,23 @@ func strtox(tls *TLS, s uintptr, p uintptr, prec int32) float64 { /* strtod.c:6: } func Xstrtof(tls *TLS, s uintptr, p uintptr) float32 { /* strtod.c:17:7: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + } return float32(strtox(tls, s, p, 0)) } func Xstrtod(tls *TLS, s uintptr, p uintptr) float64 { /* strtod.c:22:8: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + } return strtox(tls, s, p, 1) } func Xstrtold(tls *TLS, s uintptr, p uintptr) float64 { /* strtod.c:27:13: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + } return strtox(tls, s, p, 2) } @@ -4487,26 +4691,44 @@ func strtox1(tls *TLS, s uintptr, p uintptr, base int32, lim uint64) uint64 { /* } func Xstrtoull(tls *TLS, s uintptr, p uintptr, base int32) uint64 { /* strtol.c:21:20: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + } return strtox1(tls, s, p, base, 2*uint64(0x7fffffffffffffff)+uint64(1)) } func Xstrtoll(tls *TLS, s uintptr, p uintptr, base int32) int64 { /* strtol.c:26:11: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + } return int64(strtox1(tls, s, p, base, Uint64FromInt64(-0x7fffffffffffffff-int64(1)))) } func Xstrtoul(tls *TLS, s uintptr, p uintptr, base int32) uint64 { /* strtol.c:31:15: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + } return uint64(strtox1(tls, s, p, base, 2*uint64(0x7fffffffffffffff)+uint64(1))) } func Xstrtol(tls *TLS, s uintptr, p uintptr, base int32) int64 { /* strtol.c:36:6: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + } return int64(strtox1(tls, s, p, base, 0+Uint64FromInt64(Int64(-Int64(0x7fffffffffffffff))-Int64FromInt32(1)))) } func Xstrtoimax(tls *TLS, s uintptr, p uintptr, base int32) intmax_t { /* strtol.c:41:10: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + } return intmax_t(Xstrtoll(tls, s, p, base)) } func Xstrtoumax(tls *TLS, s uintptr, p uintptr, base int32) uintmax_t { /* strtol.c:46:11: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + } return uintmax_t(Xstrtoull(tls, s, p, base)) } @@ -4520,6 +4742,9 @@ func Xstrtoumax(tls *TLS, s uintptr, p uintptr, base int32) uintmax_t { /* strto // from SUS and have nothing to do with the host system. func X__strchrnul(tls *TLS, s uintptr, c int32) uintptr { /* strchrnul.c:10:6: */ + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + } c = int32(uint8(c)) if !(c != 0) { return s + uintptr(Xstrlen(tls, s)) @@ -4540,6 +4765,9 @@ func X__strchrnul(tls *TLS, s uintptr, c int32) uintptr { /* strchrnul.c:10:6: * } func Xstrdup(tls *TLS, s uintptr) uintptr { /* strdup.c:4:6: */ + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + } var l size_t = Xstrlen(tls, s) var d uintptr = Xmalloc(tls, l+uint64(1)) if !(d != 0) { @@ -4549,6 +4777,9 @@ func Xstrdup(tls *TLS, s uintptr) uintptr { /* strdup.c:4:6: */ } func Xstrlcat(tls *TLS, d uintptr, s uintptr, n size_t) size_t { /* strlcat.c:4:8: */ + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + } var l size_t = Xstrnlen(tls, d, n) if l == n { return l + Xstrlen(tls, s) @@ -4566,6 +4797,9 @@ func Xstrlcat(tls *TLS, d uintptr, s uintptr, n size_t) size_t { /* strlcat.c:4: // from SUS and have nothing to do with the host system. func Xstrlcpy(tls *TLS, d uintptr, s uintptr, n size_t) size_t { /* strlcpy.c:11:8: */ + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + } var d0 uintptr var wd uintptr var ws uintptr @@ -4637,6 +4871,9 @@ finish: } func Xstrncasecmp(tls *TLS, _l uintptr, _r uintptr, n size_t) int32 { /* strncasecmp.c:4:5: */ + if __ccgo_strace { + trc("tls=%v _l=%v _r=%v n=%v, (%v:)", tls, _l, _r, n, origin(2)) + } var l uintptr = _l var r uintptr = _r if !(int32(PostDecUint64(&n, 1)) != 0) { @@ -4659,10 +4896,16 @@ __3: } func X__strncasecmp_l(tls *TLS, l uintptr, r uintptr, n size_t, loc locale_t) int32 { /* strncasecmp.c:12:5: */ + if __ccgo_strace { + trc("tls=%v l=%v r=%v n=%v loc=%v, (%v:)", tls, l, r, n, loc, origin(2)) + } return Xstrncasecmp(tls, l, r, n) } func Xstrncat(tls *TLS, d uintptr, s uintptr, n size_t) uintptr { /* strncat.c:3:6: */ + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + } var a uintptr = d d += uintptr(Xstrlen(tls, d)) for n != 0 && *(*int8)(unsafe.Pointer(s)) != 0 { @@ -4674,6 +4917,9 @@ func Xstrncat(tls *TLS, d uintptr, s uintptr, n size_t) uintptr { /* strncat.c:3 } func Xstrnlen(tls *TLS, s uintptr, n size_t) size_t { /* strnlen.c:3:8: */ + if __ccgo_strace { + trc("tls=%v s=%v n=%v, (%v:)", tls, s, n, origin(2)) + } var p uintptr = Xmemchr(tls, s, 0, n) if p != 0 { return uint64((int64(p) - int64(s)) / 1) @@ -4682,6 +4928,9 @@ func Xstrnlen(tls *TLS, s uintptr, n size_t) size_t { /* strnlen.c:3:8: */ } func Xstrspn(tls *TLS, s uintptr, c uintptr) size_t { /* strspn.c:6:8: */ + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + } bp := tls.Alloc(32) defer tls.Free(32) @@ -4705,6 +4954,9 @@ func Xstrspn(tls *TLS, s uintptr, c uintptr) size_t { /* strspn.c:6:8: */ } func Xstrtok(tls *TLS, s uintptr, sep uintptr) uintptr { /* strtok.c:3:6: */ + if __ccgo_strace { + trc("tls=%v s=%v sep=%v, (%v:)", tls, s, sep, origin(2)) + } if !(s != 0) && !(int32(AssignUintptr(&s, _sp)) != 0) { return uintptr(0) } diff --git a/vendor/modernc.org/libc/musl_freebsd_386.go b/vendor/modernc.org/libc/musl_freebsd_386.go index a7fc31808..8bd94c063 100644 --- a/vendor/modernc.org/libc/musl_freebsd_386.go +++ b/vendor/modernc.org/libc/musl_freebsd_386.go @@ -3319,6 +3319,9 @@ func __isspace(tls *TLS, _c int32) int32 { /* ctype.h:26:21: */ type locale_t = uintptr /* alltypes.h:366:32 */ func Xisalnum(tls *TLS, c int32) int32 { /* isalnum.c:3:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(func() int32 { if 0 != 0 { return Xisalpha(tls, c) @@ -3333,58 +3336,100 @@ func Xisalnum(tls *TLS, c int32) int32 { /* isalnum.c:3:5: */ } func X__isalnum_l(tls *TLS, c int32, l locale_t) int32 { /* isalnum.c:8:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisalnum(tls, c) } func Xisalpha(tls *TLS, c int32) int32 { /* isalpha.c:4:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(uint32(c)|uint32(32)-uint32('a') < uint32(26)) } func X__isalpha_l(tls *TLS, c int32, l locale_t) int32 { /* isalpha.c:9:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisalpha(tls, c) } func Xisdigit(tls *TLS, c int32) int32 { /* isdigit.c:4:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(uint32(c)-uint32('0') < uint32(10)) } func X__isdigit_l(tls *TLS, c int32, l locale_t) int32 { /* isdigit.c:9:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisdigit(tls, c) } func Xislower(tls *TLS, c int32) int32 { /* islower.c:4:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(uint32(c)-uint32('a') < uint32(26)) } func X__islower_l(tls *TLS, c int32, l locale_t) int32 { /* islower.c:9:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xislower(tls, c) } func Xisprint(tls *TLS, c int32) int32 { /* isprint.c:4:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(uint32(c)-uint32(0x20) < uint32(0x5f)) } func X__isprint_l(tls *TLS, c int32, l locale_t) int32 { /* isprint.c:9:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisprint(tls, c) } func Xisspace(tls *TLS, c int32) int32 { /* isspace.c:4:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(c == ' ' || uint32(c)-uint32('\t') < uint32(5)) } func X__isspace_l(tls *TLS, c int32, l locale_t) int32 { /* isspace.c:9:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisspace(tls, c) } func Xisupper(tls *TLS, c int32) int32 { /* isupper.c:4:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(uint32(c)-uint32('A') < uint32(26)) } func X__isupper_l(tls *TLS, c int32, l locale_t) int32 { /* isupper.c:9:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisupper(tls, c) } func Xisxdigit(tls *TLS, c int32) int32 { /* isxdigit.c:3:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(func() int32 { if 0 != 0 { return Xisdigit(tls, c) @@ -3394,6 +3439,9 @@ func Xisxdigit(tls *TLS, c int32) int32 { /* isxdigit.c:3:5: */ } func X__isxdigit_l(tls *TLS, c int32, l locale_t) int32 { /* isxdigit.c:8:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisxdigit(tls, c) } @@ -4113,6 +4161,9 @@ func hexfloat(tls *TLS, f uintptr, bits int32, emin int32, sign int32, pok int32 } func X__floatscan(tls *TLS, f uintptr, prec int32, pok int32) float64 { /* floatscan.c:427:13: */ + if __ccgo_strace { + trc("tls=%v f=%v prec=%v pok=%v, (%v:)", tls, f, prec, pok, origin(2)) + } var sign int32 = 1 var i size_t var bits int32 @@ -4290,6 +4341,9 @@ var table = [257]uint8{Uint8FromInt32(-1), } /* intscan.c:7:28 */ func X__intscan(tls *TLS, f uintptr, base uint32, pok int32, lim uint64) uint64 { /* intscan.c:26:20: */ + if __ccgo_strace { + trc("tls=%v f=%v base=%v pok=%v lim=%v, (%v:)", tls, f, base, pok, lim, origin(2)) + } var val uintptr var c int32 var neg int32 @@ -4595,6 +4649,9 @@ __43: // the actual count. func X__shlim(tls *TLS, f uintptr, lim off_t) { /* shgetc.c:8:6: */ + if __ccgo_strace { + trc("tls=%v f=%v lim=%v, (%v:)", tls, f, lim, origin(2)) + } (*FILE)(unsafe.Pointer(f)).Fshlim = lim (*FILE)(unsafe.Pointer(f)).Fshcnt = off_t((int32((*FILE)(unsafe.Pointer(f)).Fbuf) - int32((*FILE)(unsafe.Pointer(f)).Frpos)) / 1) // If lim is nonzero, rend must be a valid pointer. @@ -4606,6 +4663,9 @@ func X__shlim(tls *TLS, f uintptr, lim off_t) { /* shgetc.c:8:6: */ } func X__shgetc(tls *TLS, f uintptr) int32 { /* shgetc.c:19:5: */ + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } var c int32 var cnt off_t = (*FILE)(unsafe.Pointer(f)).Fshcnt + off_t((int32((*FILE)(unsafe.Pointer(f)).Frpos)-int32((*FILE)(unsafe.Pointer(f)).Fbuf))/1) if (*FILE)(unsafe.Pointer(f)).Fshlim != 0 && cnt >= (*FILE)(unsafe.Pointer(f)).Fshlim || AssignInt32(&c, X__uflow(tls, f)) < 0 { @@ -4632,20 +4692,32 @@ func __bswap32(tls *TLS, __x uint32_t) uint32_t { /* endian.h:24:26: */ } func Xcopysignl(tls *TLS, x float64, y float64) float64 { /* copysignl.c:4:13: */ + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + } return Xcopysign(tls, x, y) } func Xfabsl(tls *TLS, x float64) float64 { /* fabsl.c:3:13: */ + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + } return Xfabs(tls, x) } func Xfmodl(tls *TLS, x float64, y float64) float64 { /* fmodl.c:4:13: */ + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + } return Xfmod(tls, x, y) } var toint double_t = float64(float64(1)) / 2.22044604925031308085e-16 /* rint.c:10:23 */ func Xrint(tls *TLS, x float64) float64 { /* rint.c:12:8: */ + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + } bp := tls.Alloc(8) defer tls.Free(8) @@ -4675,6 +4747,9 @@ func Xrint(tls *TLS, x float64) float64 { /* rint.c:12:8: */ } func Xscalbn(tls *TLS, x float64, n int32) float64 { /* scalbn.c:4:8: */ + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + } bp := tls.Alloc(8) defer tls.Free(8) @@ -4711,6 +4786,9 @@ func Xscalbn(tls *TLS, x float64, n int32) float64 { /* scalbn.c:4:8: */ } func Xscalbnl(tls *TLS, x float64, n int32) float64 { /* scalbnl.c:4:13: */ + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + } return Xscalbn(tls, x, n) } @@ -5029,6 +5107,9 @@ type resolvconf = struct { } /* lookup.h:34:1 */ func Xfreeaddrinfo(tls *TLS, p uintptr) { /* freeaddrinfo.c:7:6: */ + if __ccgo_strace { + trc("tls=%v p=%v, (%v:)", tls, p, origin(2)) + } var cnt size_t cnt = size_t(1) __1: @@ -5052,7 +5133,7 @@ __3: //TODO else UNLOCK(b->lock); } -type time_t = int64 /* alltypes.h:108:16 */ +type time_t = int32 /* alltypes.h:108:16 */ type clockid_t = int32 /* alltypes.h:237:13 */ @@ -5139,6 +5220,9 @@ type __ptcb = struct { type useconds_t = uint32 /* alltypes.h:283:18 */ func Xgetaddrinfo(tls *TLS, host uintptr, serv uintptr, hint uintptr, res uintptr) int32 { /* getaddrinfo.c:12:5: */ + if __ccgo_strace { + trc("tls=%v host=%v serv=%v hint=%v res=%v, (%v:)", tls, host, serv, hint, res, origin(2)) + } bp := tls.Alloc(1608) defer tls.Free(1608) @@ -5338,6 +5422,9 @@ type mmsghdr = struct { } /* socket.h:63:1 */ func Xgethostbyaddr(tls *TLS, a uintptr, l socklen_t, af int32) uintptr { /* gethostbyaddr.c:7:16: */ + if __ccgo_strace { + trc("tls=%v a=%v l=%v af=%v, (%v:)", tls, a, l, af, origin(2)) + } bp := tls.Alloc(4) defer tls.Free(4) @@ -5364,10 +5451,16 @@ func Xgethostbyaddr(tls *TLS, a uintptr, l socklen_t, af int32) uintptr { /* get var _sh uintptr /* gethostbyaddr.c:9:24: */ func Xgethostbyname(tls *TLS, name uintptr) uintptr { /* gethostbyname.c:8:16: */ + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + } return Xgethostbyname2(tls, name, 2) } func Xgethostbyname2(tls *TLS, name uintptr, af int32) uintptr { /* gethostbyname2.c:8:16: */ + if __ccgo_strace { + trc("tls=%v name=%v af=%v, (%v:)", tls, name, af, origin(2)) + } bp := tls.Alloc(4) defer tls.Free(4) @@ -5394,6 +5487,9 @@ func Xgethostbyname2(tls *TLS, name uintptr, af int32) uintptr { /* gethostbynam var _sh1 uintptr /* gethostbyname2.c:10:24: */ func Xgethostbyname2_r(tls *TLS, name uintptr, af int32, h uintptr, buf uintptr, buflen size_t, res uintptr, err uintptr) int32 { /* gethostbyname2_r.c:11:5: */ + if __ccgo_strace { + trc("tls=%v name=%v af=%v h=%v buf=%v buflen=%v res=%v err=%v, (%v:)", tls, name, af, h, buf, buflen, res, err, origin(2)) + } bp := tls.Alloc(1600) defer tls.Free(1600) @@ -5772,10 +5868,16 @@ func reverse_services(tls *TLS, buf uintptr, port int32, dgram int32) { /* getna var Xh_errno int32 /* h_errno.c:4:5: */ func X__h_errno_location(tls *TLS) uintptr { /* h_errno.c:6:5: */ + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } return uintptr(unsafe.Pointer(&Xh_errno)) } func X__inet_aton(tls *TLS, s0 uintptr, dest uintptr) int32 { /* inet_aton.c:7:5: */ + if __ccgo_strace { + trc("tls=%v s0=%v dest=%v, (%v:)", tls, s0, dest, origin(2)) + } bp := tls.Alloc(20) defer tls.Free(20) @@ -5827,6 +5929,9 @@ func X__inet_aton(tls *TLS, s0 uintptr, dest uintptr) int32 { /* inet_aton.c:7:5 } func Xinet_ntop(tls *TLS, af int32, a0 uintptr, s uintptr, l socklen_t) uintptr { /* inet_ntop.c:7:12: */ + if __ccgo_strace { + trc("tls=%v af=%v a0=%v s=%v l=%v, (%v:)", tls, af, a0, s, l, origin(2)) + } bp := tls.Alloc(276) defer tls.Free(276) @@ -5901,6 +6006,9 @@ func hexval(tls *TLS, c uint32) int32 { /* inet_pton.c:7:12: */ } func Xinet_pton(tls *TLS, af int32, s uintptr, a0 uintptr) int32 { /* inet_pton.c:15:5: */ + if __ccgo_strace { + trc("tls=%v af=%v s=%v a0=%v, (%v:)", tls, af, s, a0, origin(2)) + } bp := tls.Alloc(16) defer tls.Free(16) @@ -5998,6 +6106,9 @@ func Xinet_pton(tls *TLS, af int32, s uintptr, a0 uintptr) int32 { /* inet_pton. } func X__lookup_ipliteral(tls *TLS, buf uintptr, name uintptr, family int32) int32 { /* lookup_ipliteral.c:12:5: */ + if __ccgo_strace { + trc("tls=%v buf=%v name=%v family=%v, (%v:)", tls, buf, name, family, origin(2)) + } bp := tls.Alloc(88) defer tls.Free(88) @@ -6317,6 +6428,9 @@ func addrcmp(tls *TLS, _a uintptr, _b uintptr) int32 { /* lookup_name.c:305:12: } func X__lookup_name(tls *TLS, buf uintptr, canon uintptr, name uintptr, family int32, flags int32) int32 { /* lookup_name.c:311:5: */ + if __ccgo_strace { + trc("tls=%v buf=%v canon=%v name=%v family=%v flags=%v, (%v:)", tls, buf, canon, name, family, flags, origin(2)) + } bp := tls.Alloc(92) defer tls.Free(92) @@ -6483,6 +6597,9 @@ func X__lookup_name(tls *TLS, buf uintptr, canon uintptr, name uintptr, family i } func X__lookup_serv(tls *TLS, buf uintptr, name uintptr, proto int32, socktype int32, flags int32) int32 { /* lookup_serv.c:12:5: */ + if __ccgo_strace { + trc("tls=%v buf=%v name=%v proto=%v socktype=%v flags=%v, (%v:)", tls, buf, name, proto, socktype, flags, origin(2)) + } bp := tls.Alloc(4) defer tls.Free(4) @@ -6608,6 +6725,9 @@ func X__lookup_serv(tls *TLS, buf uintptr, name uintptr, proto int32, socktype i } func X__toread(tls *TLS, f uintptr) int32 { /* __toread.c:3:5: */ + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } *(*int32)(unsafe.Pointer(f + 72)) |= (*FILE)(unsafe.Pointer(f)).Fmode - 1 if (*FILE)(unsafe.Pointer(f)).Fwpos != (*FILE)(unsafe.Pointer(f)).Fwbase { (*struct { @@ -6627,6 +6747,9 @@ func X__toread(tls *TLS, f uintptr) int32 { /* __toread.c:3:5: */ } func X__toread_needs_stdio_exit(tls *TLS) { /* __toread.c:16:13: */ + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } X__builtin_abort(tls) //TODO- // __stdio_exit_needed(); } @@ -6635,6 +6758,9 @@ func X__toread_needs_stdio_exit(tls *TLS) { /* __toread.c:16:13: */ // data buffered for reading. func X__uflow(tls *TLS, f uintptr) int32 { /* __uflow.c:6:5: */ + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } bp := tls.Alloc(1) defer tls.Free(1) @@ -6649,6 +6775,9 @@ func X__uflow(tls *TLS, f uintptr) int32 { /* __uflow.c:6:5: */ } func Xbsearch(tls *TLS, key uintptr, base uintptr, nel size_t, width size_t, cmp uintptr) uintptr { /* bsearch.c:3:6: */ + if __ccgo_strace { + trc("tls=%v key=%v base=%v nel=%v width=%v cmp=%v, (%v:)", tls, key, base, nel, width, cmp, origin(2)) + } var try uintptr var sign int32 for nel > size_t(0) { @@ -6691,14 +6820,23 @@ func strtox(tls *TLS, s uintptr, p uintptr, prec int32) float64 { /* strtod.c:6: } func Xstrtof(tls *TLS, s uintptr, p uintptr) float32 { /* strtod.c:17:7: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + } return float32(strtox(tls, s, p, 0)) } func Xstrtod(tls *TLS, s uintptr, p uintptr) float64 { /* strtod.c:22:8: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + } return strtox(tls, s, p, 1) } func Xstrtold(tls *TLS, s uintptr, p uintptr) float64 { /* strtod.c:27:13: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + } return strtox(tls, s, p, 2) } @@ -6720,30 +6858,51 @@ func strtox1(tls *TLS, s uintptr, p uintptr, base int32, lim uint64) uint64 { /* } func Xstrtoull(tls *TLS, s uintptr, p uintptr, base int32) uint64 { /* strtol.c:21:20: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + } return strtox1(tls, s, p, base, 2*uint64(0x7fffffffffffffff)+uint64(1)) } func Xstrtoll(tls *TLS, s uintptr, p uintptr, base int32) int64 { /* strtol.c:26:11: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + } return int64(strtox1(tls, s, p, base, Uint64FromInt64(-0x7fffffffffffffff-int64(1)))) } func Xstrtoul(tls *TLS, s uintptr, p uintptr, base int32) uint32 { /* strtol.c:31:15: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + } return uint32(strtox1(tls, s, p, base, uint64(2*uint32(0x7fffffff)+uint32(1)))) } func Xstrtol(tls *TLS, s uintptr, p uintptr, base int32) int32 { /* strtol.c:36:6: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + } return int32(strtox1(tls, s, p, base, uint64(0+Uint32FromInt32(Int32(-Int32(0x7fffffff))-Int32FromInt32(1))))) } func Xstrtoimax(tls *TLS, s uintptr, p uintptr, base int32) intmax_t { /* strtol.c:41:10: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + } return Xstrtoll(tls, s, p, base) } func Xstrtoumax(tls *TLS, s uintptr, p uintptr, base int32) uintmax_t { /* strtol.c:46:11: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + } return Xstrtoull(tls, s, p, base) } func Xstrdup(tls *TLS, s uintptr) uintptr { /* strdup.c:4:6: */ + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + } var l size_t = Xstrlen(tls, s) var d uintptr = Xmalloc(tls, l+size_t(1)) if !(d != 0) { @@ -6753,6 +6912,9 @@ func Xstrdup(tls *TLS, s uintptr) uintptr { /* strdup.c:4:6: */ } func Xstrnlen(tls *TLS, s uintptr, n size_t) size_t { /* strnlen.c:3:8: */ + if __ccgo_strace { + trc("tls=%v s=%v n=%v, (%v:)", tls, s, n, origin(2)) + } var p uintptr = Xmemchr(tls, s, 0, n) if p != 0 { return uint32((int32(p) - int32(s)) / 1) @@ -6761,6 +6923,9 @@ func Xstrnlen(tls *TLS, s uintptr, n size_t) size_t { /* strnlen.c:3:8: */ } func Xstrspn(tls *TLS, s uintptr, c uintptr) size_t { /* strspn.c:6:8: */ + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + } bp := tls.Alloc(32) defer tls.Free(32) diff --git a/vendor/modernc.org/libc/musl_freebsd_amd64.go b/vendor/modernc.org/libc/musl_freebsd_amd64.go index ae1a70aff..a301e3a36 100644 --- a/vendor/modernc.org/libc/musl_freebsd_amd64.go +++ b/vendor/modernc.org/libc/musl_freebsd_amd64.go @@ -3323,6 +3323,9 @@ func __isspace(tls *TLS, _c int32) int32 { /* ctype.h:26:21: */ type locale_t = uintptr /* alltypes.h:343:32 */ func Xisalnum(tls *TLS, c int32) int32 { /* isalnum.c:3:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(func() int32 { if 0 != 0 { return Xisalpha(tls, c) @@ -3337,58 +3340,100 @@ func Xisalnum(tls *TLS, c int32) int32 { /* isalnum.c:3:5: */ } func X__isalnum_l(tls *TLS, c int32, l locale_t) int32 { /* isalnum.c:8:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisalnum(tls, c) } func Xisalpha(tls *TLS, c int32) int32 { /* isalpha.c:4:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(uint32(c)|uint32(32)-uint32('a') < uint32(26)) } func X__isalpha_l(tls *TLS, c int32, l locale_t) int32 { /* isalpha.c:9:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisalpha(tls, c) } func Xisdigit(tls *TLS, c int32) int32 { /* isdigit.c:4:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(uint32(c)-uint32('0') < uint32(10)) } func X__isdigit_l(tls *TLS, c int32, l locale_t) int32 { /* isdigit.c:9:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisdigit(tls, c) } func Xislower(tls *TLS, c int32) int32 { /* islower.c:4:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(uint32(c)-uint32('a') < uint32(26)) } func X__islower_l(tls *TLS, c int32, l locale_t) int32 { /* islower.c:9:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xislower(tls, c) } func Xisprint(tls *TLS, c int32) int32 { /* isprint.c:4:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(uint32(c)-uint32(0x20) < uint32(0x5f)) } func X__isprint_l(tls *TLS, c int32, l locale_t) int32 { /* isprint.c:9:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisprint(tls, c) } func Xisspace(tls *TLS, c int32) int32 { /* isspace.c:4:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(c == ' ' || uint32(c)-uint32('\t') < uint32(5)) } func X__isspace_l(tls *TLS, c int32, l locale_t) int32 { /* isspace.c:9:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisspace(tls, c) } func Xisupper(tls *TLS, c int32) int32 { /* isupper.c:4:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(uint32(c)-uint32('A') < uint32(26)) } func X__isupper_l(tls *TLS, c int32, l locale_t) int32 { /* isupper.c:9:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisupper(tls, c) } func Xisxdigit(tls *TLS, c int32) int32 { /* isxdigit.c:3:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(func() int32 { if 0 != 0 { return Xisdigit(tls, c) @@ -3398,6 +3443,9 @@ func Xisxdigit(tls *TLS, c int32) int32 { /* isxdigit.c:3:5: */ } func X__isxdigit_l(tls *TLS, c int32, l locale_t) int32 { /* isxdigit.c:8:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisxdigit(tls, c) } @@ -4119,6 +4167,9 @@ func hexfloat(tls *TLS, f uintptr, bits int32, emin int32, sign int32, pok int32 } func X__floatscan(tls *TLS, f uintptr, prec int32, pok int32) float64 { /* floatscan.c:427:13: */ + if __ccgo_strace { + trc("tls=%v f=%v prec=%v pok=%v, (%v:)", tls, f, prec, pok, origin(2)) + } var sign int32 = 1 var i size_t var bits int32 @@ -4296,6 +4347,9 @@ var table = [257]uint8{Uint8FromInt32(-1), } /* intscan.c:7:28 */ func X__intscan(tls *TLS, f uintptr, base uint32, pok int32, lim uint64) uint64 { /* intscan.c:26:20: */ + if __ccgo_strace { + trc("tls=%v f=%v base=%v pok=%v lim=%v, (%v:)", tls, f, base, pok, lim, origin(2)) + } var val uintptr var c int32 var neg int32 @@ -4601,6 +4655,9 @@ __43: // the actual count. func X__shlim(tls *TLS, f uintptr, lim off_t) { /* shgetc.c:8:6: */ + if __ccgo_strace { + trc("tls=%v f=%v lim=%v, (%v:)", tls, f, lim, origin(2)) + } (*FILE)(unsafe.Pointer(f)).Fshlim = lim (*FILE)(unsafe.Pointer(f)).Fshcnt = (int64((*FILE)(unsafe.Pointer(f)).Fbuf) - int64((*FILE)(unsafe.Pointer(f)).Frpos)) / 1 // If lim is nonzero, rend must be a valid pointer. @@ -4612,6 +4669,9 @@ func X__shlim(tls *TLS, f uintptr, lim off_t) { /* shgetc.c:8:6: */ } func X__shgetc(tls *TLS, f uintptr) int32 { /* shgetc.c:19:5: */ + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } var c int32 var cnt off_t = (*FILE)(unsafe.Pointer(f)).Fshcnt + (int64((*FILE)(unsafe.Pointer(f)).Frpos)-int64((*FILE)(unsafe.Pointer(f)).Fbuf))/1 if (*FILE)(unsafe.Pointer(f)).Fshlim != 0 && cnt >= (*FILE)(unsafe.Pointer(f)).Fshlim || AssignInt32(&c, X__uflow(tls, f)) < 0 { @@ -4638,20 +4698,32 @@ func __bswap32(tls *TLS, __x uint32_t) uint32_t { /* endian.h:24:26: */ } func Xcopysignl(tls *TLS, x float64, y float64) float64 { /* copysignl.c:4:13: */ + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + } return Xcopysign(tls, x, y) } func Xfabsl(tls *TLS, x float64) float64 { /* fabsl.c:3:13: */ + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + } return Xfabs(tls, x) } func Xfmodl(tls *TLS, x float64, y float64) float64 { /* fmodl.c:4:13: */ + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + } return Xfmod(tls, x, y) } var toint double_t = float64(float64(1)) / 2.22044604925031308085e-16 /* rint.c:10:23 */ func Xrint(tls *TLS, x float64) float64 { /* rint.c:12:8: */ + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + } bp := tls.Alloc(8) defer tls.Free(8) @@ -4681,6 +4753,9 @@ func Xrint(tls *TLS, x float64) float64 { /* rint.c:12:8: */ } func Xscalbn(tls *TLS, x float64, n int32) float64 { /* scalbn.c:4:8: */ + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + } bp := tls.Alloc(8) defer tls.Free(8) @@ -4717,6 +4792,9 @@ func Xscalbn(tls *TLS, x float64, n int32) float64 { /* scalbn.c:4:8: */ } func Xscalbnl(tls *TLS, x float64, n int32) float64 { /* scalbnl.c:4:13: */ + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + } return Xscalbn(tls, x, n) } @@ -5048,6 +5126,9 @@ type resolvconf = struct { } /* lookup.h:34:1 */ func Xfreeaddrinfo(tls *TLS, p uintptr) { /* freeaddrinfo.c:7:6: */ + if __ccgo_strace { + trc("tls=%v p=%v, (%v:)", tls, p, origin(2)) + } var cnt size_t cnt = uint64(1) __1: @@ -5185,6 +5266,9 @@ type __ptcb = struct { type useconds_t = uint32 /* alltypes.h:260:18 */ func Xgetaddrinfo(tls *TLS, host uintptr, serv uintptr, hint uintptr, res uintptr) int32 { /* getaddrinfo.c:12:5: */ + if __ccgo_strace { + trc("tls=%v host=%v serv=%v hint=%v res=%v, (%v:)", tls, host, serv, hint, res, origin(2)) + } bp := tls.Alloc(1608) defer tls.Free(1608) @@ -5389,6 +5473,9 @@ type mmsghdr = struct { } /* socket.h:63:1 */ func Xgethostbyaddr(tls *TLS, a uintptr, l socklen_t, af int32) uintptr { /* gethostbyaddr.c:7:16: */ + if __ccgo_strace { + trc("tls=%v a=%v l=%v af=%v, (%v:)", tls, a, l, af, origin(2)) + } bp := tls.Alloc(8) defer tls.Free(8) @@ -5415,10 +5502,16 @@ func Xgethostbyaddr(tls *TLS, a uintptr, l socklen_t, af int32) uintptr { /* get var _sh uintptr /* gethostbyaddr.c:9:24: */ func Xgethostbyname(tls *TLS, name uintptr) uintptr { /* gethostbyname.c:8:16: */ + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + } return Xgethostbyname2(tls, name, 2) } func Xgethostbyname2(tls *TLS, name uintptr, af int32) uintptr { /* gethostbyname2.c:8:16: */ + if __ccgo_strace { + trc("tls=%v name=%v af=%v, (%v:)", tls, name, af, origin(2)) + } bp := tls.Alloc(8) defer tls.Free(8) @@ -5445,6 +5538,9 @@ func Xgethostbyname2(tls *TLS, name uintptr, af int32) uintptr { /* gethostbynam var _sh1 uintptr /* gethostbyname2.c:10:24: */ func Xgethostbyname2_r(tls *TLS, name uintptr, af int32, h uintptr, buf uintptr, buflen size_t, res uintptr, err uintptr) int32 { /* gethostbyname2_r.c:11:5: */ + if __ccgo_strace { + trc("tls=%v name=%v af=%v h=%v buf=%v buflen=%v res=%v err=%v, (%v:)", tls, name, af, h, buf, buflen, res, err, origin(2)) + } bp := tls.Alloc(1600) defer tls.Free(1600) @@ -5833,10 +5929,16 @@ func reverse_services(tls *TLS, buf uintptr, port int32, dgram int32) { /* getna var Xh_errno int32 /* h_errno.c:4:5: */ func X__h_errno_location(tls *TLS) uintptr { /* h_errno.c:6:5: */ + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } return uintptr(unsafe.Pointer(&Xh_errno)) } func X__inet_aton(tls *TLS, s0 uintptr, dest uintptr) int32 { /* inet_aton.c:7:5: */ + if __ccgo_strace { + trc("tls=%v s0=%v dest=%v, (%v:)", tls, s0, dest, origin(2)) + } bp := tls.Alloc(40) defer tls.Free(40) @@ -5888,6 +5990,9 @@ func X__inet_aton(tls *TLS, s0 uintptr, dest uintptr) int32 { /* inet_aton.c:7:5 } func Xinet_ntop(tls *TLS, af int32, a0 uintptr, s uintptr, l socklen_t) uintptr { /* inet_ntop.c:7:12: */ + if __ccgo_strace { + trc("tls=%v af=%v a0=%v s=%v l=%v, (%v:)", tls, af, a0, s, l, origin(2)) + } bp := tls.Alloc(276) defer tls.Free(276) @@ -5962,6 +6067,9 @@ func hexval(tls *TLS, c uint32) int32 { /* inet_pton.c:7:12: */ } func Xinet_pton(tls *TLS, af int32, s uintptr, a0 uintptr) int32 { /* inet_pton.c:15:5: */ + if __ccgo_strace { + trc("tls=%v af=%v s=%v a0=%v, (%v:)", tls, af, s, a0, origin(2)) + } bp := tls.Alloc(16) defer tls.Free(16) @@ -6059,6 +6167,9 @@ func Xinet_pton(tls *TLS, af int32, s uintptr, a0 uintptr) int32 { /* inet_pton. } func X__lookup_ipliteral(tls *TLS, buf uintptr, name uintptr, family int32) int32 { /* lookup_ipliteral.c:12:5: */ + if __ccgo_strace { + trc("tls=%v buf=%v name=%v family=%v, (%v:)", tls, buf, name, family, origin(2)) + } bp := tls.Alloc(96) defer tls.Free(96) @@ -6381,6 +6492,9 @@ func addrcmp(tls *TLS, _a uintptr, _b uintptr) int32 { /* lookup_name.c:305:12: } func X__lookup_name(tls *TLS, buf uintptr, canon uintptr, name uintptr, family int32, flags int32) int32 { /* lookup_name.c:311:5: */ + if __ccgo_strace { + trc("tls=%v buf=%v canon=%v name=%v family=%v flags=%v, (%v:)", tls, buf, canon, name, family, flags, origin(2)) + } bp := tls.Alloc(92) defer tls.Free(92) @@ -6547,6 +6661,9 @@ func X__lookup_name(tls *TLS, buf uintptr, canon uintptr, name uintptr, family i } func X__lookup_serv(tls *TLS, buf uintptr, name uintptr, proto int32, socktype int32, flags int32) int32 { /* lookup_serv.c:12:5: */ + if __ccgo_strace { + trc("tls=%v buf=%v name=%v proto=%v socktype=%v flags=%v, (%v:)", tls, buf, name, proto, socktype, flags, origin(2)) + } bp := tls.Alloc(8) defer tls.Free(8) @@ -6672,6 +6789,9 @@ func X__lookup_serv(tls *TLS, buf uintptr, name uintptr, proto int32, socktype i } func X__toread(tls *TLS, f uintptr) int32 { /* __toread.c:3:5: */ + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } *(*int32)(unsafe.Pointer(f + 136)) |= (*FILE)(unsafe.Pointer(f)).Fmode - 1 if (*FILE)(unsafe.Pointer(f)).Fwpos != (*FILE)(unsafe.Pointer(f)).Fwbase { (*struct { @@ -6691,6 +6811,9 @@ func X__toread(tls *TLS, f uintptr) int32 { /* __toread.c:3:5: */ } func X__toread_needs_stdio_exit(tls *TLS) { /* __toread.c:16:13: */ + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } X__builtin_abort(tls) //TODO- // __stdio_exit_needed(); } @@ -6699,6 +6822,9 @@ func X__toread_needs_stdio_exit(tls *TLS) { /* __toread.c:16:13: */ // data buffered for reading. func X__uflow(tls *TLS, f uintptr) int32 { /* __uflow.c:6:5: */ + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } bp := tls.Alloc(1) defer tls.Free(1) @@ -6713,6 +6839,9 @@ func X__uflow(tls *TLS, f uintptr) int32 { /* __uflow.c:6:5: */ } func Xbsearch(tls *TLS, key uintptr, base uintptr, nel size_t, width size_t, cmp uintptr) uintptr { /* bsearch.c:3:6: */ + if __ccgo_strace { + trc("tls=%v key=%v base=%v nel=%v width=%v cmp=%v, (%v:)", tls, key, base, nel, width, cmp, origin(2)) + } var try uintptr var sign int32 for nel > uint64(0) { @@ -6755,14 +6884,23 @@ func strtox(tls *TLS, s uintptr, p uintptr, prec int32) float64 { /* strtod.c:6: } func Xstrtof(tls *TLS, s uintptr, p uintptr) float32 { /* strtod.c:17:7: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + } return float32(strtox(tls, s, p, 0)) } func Xstrtod(tls *TLS, s uintptr, p uintptr) float64 { /* strtod.c:22:8: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + } return strtox(tls, s, p, 1) } func Xstrtold(tls *TLS, s uintptr, p uintptr) float64 { /* strtod.c:27:13: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + } return strtox(tls, s, p, 2) } @@ -6784,30 +6922,51 @@ func strtox1(tls *TLS, s uintptr, p uintptr, base int32, lim uint64) uint64 { /* } func Xstrtoull(tls *TLS, s uintptr, p uintptr, base int32) uint64 { /* strtol.c:21:20: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + } return strtox1(tls, s, p, base, 2*uint64(0x7fffffffffffffff)+uint64(1)) } func Xstrtoll(tls *TLS, s uintptr, p uintptr, base int32) int64 { /* strtol.c:26:11: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + } return int64(strtox1(tls, s, p, base, Uint64FromInt64(-0x7fffffffffffffff-int64(1)))) } func Xstrtoul(tls *TLS, s uintptr, p uintptr, base int32) uint64 { /* strtol.c:31:15: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + } return uint64(strtox1(tls, s, p, base, 2*uint64(0x7fffffffffffffff)+uint64(1))) } func Xstrtol(tls *TLS, s uintptr, p uintptr, base int32) int64 { /* strtol.c:36:6: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + } return int64(strtox1(tls, s, p, base, 0+Uint64FromInt64(Int64(-Int64(0x7fffffffffffffff))-Int64FromInt32(1)))) } func Xstrtoimax(tls *TLS, s uintptr, p uintptr, base int32) intmax_t { /* strtol.c:41:10: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + } return intmax_t(Xstrtoll(tls, s, p, base)) } func Xstrtoumax(tls *TLS, s uintptr, p uintptr, base int32) uintmax_t { /* strtol.c:46:11: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + } return uintmax_t(Xstrtoull(tls, s, p, base)) } func Xstrdup(tls *TLS, s uintptr) uintptr { /* strdup.c:4:6: */ + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + } var l size_t = Xstrlen(tls, s) var d uintptr = Xmalloc(tls, l+uint64(1)) if !(d != 0) { @@ -6817,6 +6976,9 @@ func Xstrdup(tls *TLS, s uintptr) uintptr { /* strdup.c:4:6: */ } func Xstrnlen(tls *TLS, s uintptr, n size_t) size_t { /* strnlen.c:3:8: */ + if __ccgo_strace { + trc("tls=%v s=%v n=%v, (%v:)", tls, s, n, origin(2)) + } var p uintptr = Xmemchr(tls, s, 0, n) if p != 0 { return uint64((int64(p) - int64(s)) / 1) @@ -6825,6 +6987,9 @@ func Xstrnlen(tls *TLS, s uintptr, n size_t) size_t { /* strnlen.c:3:8: */ } func Xstrspn(tls *TLS, s uintptr, c uintptr) size_t { /* strspn.c:6:8: */ + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + } bp := tls.Alloc(32) defer tls.Free(32) diff --git a/vendor/modernc.org/libc/musl_freebsd_arm.go b/vendor/modernc.org/libc/musl_freebsd_arm.go index d444461da..cb4f02d9a 100644 --- a/vendor/modernc.org/libc/musl_freebsd_arm.go +++ b/vendor/modernc.org/libc/musl_freebsd_arm.go @@ -3319,6 +3319,9 @@ func __isspace(tls *TLS, _c int32) int32 { /* ctype.h:26:21: */ type locale_t = uintptr /* alltypes.h:336:32 */ func Xisalnum(tls *TLS, c int32) int32 { /* isalnum.c:3:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(func() int32 { if 0 != 0 { return Xisalpha(tls, c) @@ -3333,58 +3336,100 @@ func Xisalnum(tls *TLS, c int32) int32 { /* isalnum.c:3:5: */ } func X__isalnum_l(tls *TLS, c int32, l locale_t) int32 { /* isalnum.c:8:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisalnum(tls, c) } func Xisalpha(tls *TLS, c int32) int32 { /* isalpha.c:4:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(uint32(c)|uint32(32)-uint32('a') < uint32(26)) } func X__isalpha_l(tls *TLS, c int32, l locale_t) int32 { /* isalpha.c:9:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisalpha(tls, c) } func Xisdigit(tls *TLS, c int32) int32 { /* isdigit.c:4:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(uint32(c)-uint32('0') < uint32(10)) } func X__isdigit_l(tls *TLS, c int32, l locale_t) int32 { /* isdigit.c:9:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisdigit(tls, c) } func Xislower(tls *TLS, c int32) int32 { /* islower.c:4:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(uint32(c)-uint32('a') < uint32(26)) } func X__islower_l(tls *TLS, c int32, l locale_t) int32 { /* islower.c:9:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xislower(tls, c) } func Xisprint(tls *TLS, c int32) int32 { /* isprint.c:4:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(uint32(c)-uint32(0x20) < uint32(0x5f)) } func X__isprint_l(tls *TLS, c int32, l locale_t) int32 { /* isprint.c:9:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisprint(tls, c) } func Xisspace(tls *TLS, c int32) int32 { /* isspace.c:4:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(c == ' ' || uint32(c)-uint32('\t') < uint32(5)) } func X__isspace_l(tls *TLS, c int32, l locale_t) int32 { /* isspace.c:9:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisspace(tls, c) } func Xisupper(tls *TLS, c int32) int32 { /* isupper.c:4:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(uint32(c)-uint32('A') < uint32(26)) } func X__isupper_l(tls *TLS, c int32, l locale_t) int32 { /* isupper.c:9:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisupper(tls, c) } func Xisxdigit(tls *TLS, c int32) int32 { /* isxdigit.c:3:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(func() int32 { if 0 != 0 { return Xisdigit(tls, c) @@ -3394,6 +3439,9 @@ func Xisxdigit(tls *TLS, c int32) int32 { /* isxdigit.c:3:5: */ } func X__isxdigit_l(tls *TLS, c int32, l locale_t) int32 { /* isxdigit.c:8:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisxdigit(tls, c) } @@ -4115,6 +4163,9 @@ func hexfloat(tls *TLS, f uintptr, bits int32, emin int32, sign int32, pok int32 } func X__floatscan(tls *TLS, f uintptr, prec int32, pok int32) float64 { /* floatscan.c:427:13: */ + if __ccgo_strace { + trc("tls=%v f=%v prec=%v pok=%v, (%v:)", tls, f, prec, pok, origin(2)) + } var sign int32 = 1 var i size_t var bits int32 @@ -4292,6 +4343,9 @@ var table = [257]uint8{Uint8FromInt32(-1), } /* intscan.c:7:28 */ func X__intscan(tls *TLS, f uintptr, base uint32, pok int32, lim uint64) uint64 { /* intscan.c:26:20: */ + if __ccgo_strace { + trc("tls=%v f=%v base=%v pok=%v lim=%v, (%v:)", tls, f, base, pok, lim, origin(2)) + } var val uintptr var c int32 var neg int32 @@ -4597,6 +4651,9 @@ __43: // the actual count. func X__shlim(tls *TLS, f uintptr, lim off_t) { /* shgetc.c:8:6: */ + if __ccgo_strace { + trc("tls=%v f=%v lim=%v, (%v:)", tls, f, lim, origin(2)) + } (*FILE)(unsafe.Pointer(f)).Fshlim = lim (*FILE)(unsafe.Pointer(f)).Fshcnt = off_t((int32((*FILE)(unsafe.Pointer(f)).Fbuf) - int32((*FILE)(unsafe.Pointer(f)).Frpos)) / 1) // If lim is nonzero, rend must be a valid pointer. @@ -4608,6 +4665,9 @@ func X__shlim(tls *TLS, f uintptr, lim off_t) { /* shgetc.c:8:6: */ } func X__shgetc(tls *TLS, f uintptr) int32 { /* shgetc.c:19:5: */ + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } var c int32 var cnt off_t = (*FILE)(unsafe.Pointer(f)).Fshcnt + off_t((int32((*FILE)(unsafe.Pointer(f)).Frpos)-int32((*FILE)(unsafe.Pointer(f)).Fbuf))/1) if (*FILE)(unsafe.Pointer(f)).Fshlim != 0 && cnt >= (*FILE)(unsafe.Pointer(f)).Fshlim || AssignInt32(&c, X__uflow(tls, f)) < 0 { @@ -4634,20 +4694,32 @@ func __bswap32(tls *TLS, __x uint32_t) uint32_t { /* endian.h:24:26: */ } func Xcopysignl(tls *TLS, x float64, y float64) float64 { /* copysignl.c:4:13: */ + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + } return Xcopysign(tls, x, y) } func Xfabsl(tls *TLS, x float64) float64 { /* fabsl.c:3:13: */ + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + } return Xfabs(tls, x) } func Xfmodl(tls *TLS, x float64, y float64) float64 { /* fmodl.c:4:13: */ + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + } return Xfmod(tls, x, y) } var toint double_t = float64(float64(1)) / 2.22044604925031308085e-16 /* rint.c:10:23 */ func Xrint(tls *TLS, x float64) float64 { /* rint.c:12:8: */ + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + } bp := tls.Alloc(8) defer tls.Free(8) @@ -4677,6 +4749,9 @@ func Xrint(tls *TLS, x float64) float64 { /* rint.c:12:8: */ } func Xscalbn(tls *TLS, x float64, n int32) float64 { /* scalbn.c:4:8: */ + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + } bp := tls.Alloc(8) defer tls.Free(8) @@ -4713,6 +4788,9 @@ func Xscalbn(tls *TLS, x float64, n int32) float64 { /* scalbn.c:4:8: */ } func Xscalbnl(tls *TLS, x float64, n int32) float64 { /* scalbnl.c:4:13: */ + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + } return Xscalbn(tls, x, n) } @@ -5031,6 +5109,9 @@ type resolvconf = struct { } /* lookup.h:34:1 */ func Xfreeaddrinfo(tls *TLS, p uintptr) { /* freeaddrinfo.c:7:6: */ + if __ccgo_strace { + trc("tls=%v p=%v, (%v:)", tls, p, origin(2)) + } var cnt size_t cnt = size_t(1) __1: @@ -5141,6 +5222,9 @@ type __ptcb = struct { type useconds_t = uint32 /* alltypes.h:253:18 */ func Xgetaddrinfo(tls *TLS, host uintptr, serv uintptr, hint uintptr, res uintptr) int32 { /* getaddrinfo.c:12:5: */ + if __ccgo_strace { + trc("tls=%v host=%v serv=%v hint=%v res=%v, (%v:)", tls, host, serv, hint, res, origin(2)) + } bp := tls.Alloc(1608) defer tls.Free(1608) @@ -5340,6 +5424,9 @@ type mmsghdr = struct { } /* socket.h:63:1 */ func Xgethostbyaddr(tls *TLS, a uintptr, l socklen_t, af int32) uintptr { /* gethostbyaddr.c:7:16: */ + if __ccgo_strace { + trc("tls=%v a=%v l=%v af=%v, (%v:)", tls, a, l, af, origin(2)) + } bp := tls.Alloc(4) defer tls.Free(4) @@ -5366,10 +5453,16 @@ func Xgethostbyaddr(tls *TLS, a uintptr, l socklen_t, af int32) uintptr { /* get var _sh uintptr /* gethostbyaddr.c:9:24: */ func Xgethostbyname(tls *TLS, name uintptr) uintptr { /* gethostbyname.c:8:16: */ + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + } return Xgethostbyname2(tls, name, 2) } func Xgethostbyname2(tls *TLS, name uintptr, af int32) uintptr { /* gethostbyname2.c:8:16: */ + if __ccgo_strace { + trc("tls=%v name=%v af=%v, (%v:)", tls, name, af, origin(2)) + } bp := tls.Alloc(4) defer tls.Free(4) @@ -5396,6 +5489,9 @@ func Xgethostbyname2(tls *TLS, name uintptr, af int32) uintptr { /* gethostbynam var _sh1 uintptr /* gethostbyname2.c:10:24: */ func Xgethostbyname2_r(tls *TLS, name uintptr, af int32, h uintptr, buf uintptr, buflen size_t, res uintptr, err uintptr) int32 { /* gethostbyname2_r.c:11:5: */ + if __ccgo_strace { + trc("tls=%v name=%v af=%v h=%v buf=%v buflen=%v res=%v err=%v, (%v:)", tls, name, af, h, buf, buflen, res, err, origin(2)) + } bp := tls.Alloc(1600) defer tls.Free(1600) @@ -5774,10 +5870,16 @@ func reverse_services(tls *TLS, buf uintptr, port int32, dgram int32) { /* getna var Xh_errno int32 /* h_errno.c:4:5: */ func X__h_errno_location(tls *TLS) uintptr { /* h_errno.c:6:5: */ + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } return uintptr(unsafe.Pointer(&Xh_errno)) } func X__inet_aton(tls *TLS, s0 uintptr, dest uintptr) int32 { /* inet_aton.c:7:5: */ + if __ccgo_strace { + trc("tls=%v s0=%v dest=%v, (%v:)", tls, s0, dest, origin(2)) + } bp := tls.Alloc(20) defer tls.Free(20) @@ -5829,6 +5931,9 @@ func X__inet_aton(tls *TLS, s0 uintptr, dest uintptr) int32 { /* inet_aton.c:7:5 } func Xinet_ntop(tls *TLS, af int32, a0 uintptr, s uintptr, l socklen_t) uintptr { /* inet_ntop.c:7:12: */ + if __ccgo_strace { + trc("tls=%v af=%v a0=%v s=%v l=%v, (%v:)", tls, af, a0, s, l, origin(2)) + } bp := tls.Alloc(276) defer tls.Free(276) @@ -5903,6 +6008,9 @@ func hexval(tls *TLS, c uint32) int32 { /* inet_pton.c:7:12: */ } func Xinet_pton(tls *TLS, af int32, s uintptr, a0 uintptr) int32 { /* inet_pton.c:15:5: */ + if __ccgo_strace { + trc("tls=%v af=%v s=%v a0=%v, (%v:)", tls, af, s, a0, origin(2)) + } bp := tls.Alloc(16) defer tls.Free(16) @@ -6000,6 +6108,9 @@ func Xinet_pton(tls *TLS, af int32, s uintptr, a0 uintptr) int32 { /* inet_pton. } func X__lookup_ipliteral(tls *TLS, buf uintptr, name uintptr, family int32) int32 { /* lookup_ipliteral.c:12:5: */ + if __ccgo_strace { + trc("tls=%v buf=%v name=%v family=%v, (%v:)", tls, buf, name, family, origin(2)) + } bp := tls.Alloc(88) defer tls.Free(88) @@ -6321,6 +6432,9 @@ func addrcmp(tls *TLS, _a uintptr, _b uintptr) int32 { /* lookup_name.c:305:12: } func X__lookup_name(tls *TLS, buf uintptr, canon uintptr, name uintptr, family int32, flags int32) int32 { /* lookup_name.c:311:5: */ + if __ccgo_strace { + trc("tls=%v buf=%v canon=%v name=%v family=%v flags=%v, (%v:)", tls, buf, canon, name, family, flags, origin(2)) + } bp := tls.Alloc(92) defer tls.Free(92) @@ -6487,6 +6601,9 @@ func X__lookup_name(tls *TLS, buf uintptr, canon uintptr, name uintptr, family i } func X__lookup_serv(tls *TLS, buf uintptr, name uintptr, proto int32, socktype int32, flags int32) int32 { /* lookup_serv.c:12:5: */ + if __ccgo_strace { + trc("tls=%v buf=%v name=%v proto=%v socktype=%v flags=%v, (%v:)", tls, buf, name, proto, socktype, flags, origin(2)) + } bp := tls.Alloc(4) defer tls.Free(4) @@ -6612,6 +6729,9 @@ func X__lookup_serv(tls *TLS, buf uintptr, name uintptr, proto int32, socktype i } func X__toread(tls *TLS, f uintptr) int32 { /* __toread.c:3:5: */ + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } *(*int32)(unsafe.Pointer(f + 72)) |= (*FILE)(unsafe.Pointer(f)).Fmode - 1 if (*FILE)(unsafe.Pointer(f)).Fwpos != (*FILE)(unsafe.Pointer(f)).Fwbase { (*struct { @@ -6631,6 +6751,9 @@ func X__toread(tls *TLS, f uintptr) int32 { /* __toread.c:3:5: */ } func X__toread_needs_stdio_exit(tls *TLS) { /* __toread.c:16:13: */ + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } X__builtin_abort(tls) //TODO- // __stdio_exit_needed(); } @@ -6639,6 +6762,9 @@ func X__toread_needs_stdio_exit(tls *TLS) { /* __toread.c:16:13: */ // data buffered for reading. func X__uflow(tls *TLS, f uintptr) int32 { /* __uflow.c:6:5: */ + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } bp := tls.Alloc(1) defer tls.Free(1) @@ -6653,6 +6779,9 @@ func X__uflow(tls *TLS, f uintptr) int32 { /* __uflow.c:6:5: */ } func Xbsearch(tls *TLS, key uintptr, base uintptr, nel size_t, width size_t, cmp uintptr) uintptr { /* bsearch.c:3:6: */ + if __ccgo_strace { + trc("tls=%v key=%v base=%v nel=%v width=%v cmp=%v, (%v:)", tls, key, base, nel, width, cmp, origin(2)) + } var try uintptr var sign int32 for nel > size_t(0) { @@ -6695,14 +6824,23 @@ func strtox(tls *TLS, s uintptr, p uintptr, prec int32) float64 { /* strtod.c:6: } func Xstrtof(tls *TLS, s uintptr, p uintptr) float32 { /* strtod.c:17:7: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + } return float32(strtox(tls, s, p, 0)) } func Xstrtod(tls *TLS, s uintptr, p uintptr) float64 { /* strtod.c:22:8: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + } return strtox(tls, s, p, 1) } func Xstrtold(tls *TLS, s uintptr, p uintptr) float64 { /* strtod.c:27:13: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + } return strtox(tls, s, p, 2) } @@ -6724,30 +6862,51 @@ func strtox1(tls *TLS, s uintptr, p uintptr, base int32, lim uint64) uint64 { /* } func Xstrtoull(tls *TLS, s uintptr, p uintptr, base int32) uint64 { /* strtol.c:21:20: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + } return strtox1(tls, s, p, base, 2*uint64(0x7fffffffffffffff)+uint64(1)) } func Xstrtoll(tls *TLS, s uintptr, p uintptr, base int32) int64 { /* strtol.c:26:11: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + } return int64(strtox1(tls, s, p, base, Uint64FromInt64(-0x7fffffffffffffff-int64(1)))) } func Xstrtoul(tls *TLS, s uintptr, p uintptr, base int32) uint32 { /* strtol.c:31:15: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + } return uint32(strtox1(tls, s, p, base, uint64(2*uint32(0x7fffffff)+uint32(1)))) } func Xstrtol(tls *TLS, s uintptr, p uintptr, base int32) int32 { /* strtol.c:36:6: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + } return int32(strtox1(tls, s, p, base, uint64(0+Uint32FromInt32(Int32(-Int32(0x7fffffff))-Int32FromInt32(1))))) } func Xstrtoimax(tls *TLS, s uintptr, p uintptr, base int32) intmax_t { /* strtol.c:41:10: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + } return Xstrtoll(tls, s, p, base) } func Xstrtoumax(tls *TLS, s uintptr, p uintptr, base int32) uintmax_t { /* strtol.c:46:11: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + } return Xstrtoull(tls, s, p, base) } func Xstrdup(tls *TLS, s uintptr) uintptr { /* strdup.c:4:6: */ + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + } var l size_t = Xstrlen(tls, s) var d uintptr = Xmalloc(tls, l+size_t(1)) if !(d != 0) { @@ -6757,6 +6916,9 @@ func Xstrdup(tls *TLS, s uintptr) uintptr { /* strdup.c:4:6: */ } func Xstrnlen(tls *TLS, s uintptr, n size_t) size_t { /* strnlen.c:3:8: */ + if __ccgo_strace { + trc("tls=%v s=%v n=%v, (%v:)", tls, s, n, origin(2)) + } var p uintptr = Xmemchr(tls, s, 0, n) if p != 0 { return uint32((int32(p) - int32(s)) / 1) @@ -6765,6 +6927,9 @@ func Xstrnlen(tls *TLS, s uintptr, n size_t) size_t { /* strnlen.c:3:8: */ } func Xstrspn(tls *TLS, s uintptr, c uintptr) size_t { /* strspn.c:6:8: */ + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + } bp := tls.Alloc(32) defer tls.Free(32) diff --git a/vendor/modernc.org/libc/musl_freebsd_arm64.go b/vendor/modernc.org/libc/musl_freebsd_arm64.go index ae1a70aff..a301e3a36 100644 --- a/vendor/modernc.org/libc/musl_freebsd_arm64.go +++ b/vendor/modernc.org/libc/musl_freebsd_arm64.go @@ -3323,6 +3323,9 @@ func __isspace(tls *TLS, _c int32) int32 { /* ctype.h:26:21: */ type locale_t = uintptr /* alltypes.h:343:32 */ func Xisalnum(tls *TLS, c int32) int32 { /* isalnum.c:3:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(func() int32 { if 0 != 0 { return Xisalpha(tls, c) @@ -3337,58 +3340,100 @@ func Xisalnum(tls *TLS, c int32) int32 { /* isalnum.c:3:5: */ } func X__isalnum_l(tls *TLS, c int32, l locale_t) int32 { /* isalnum.c:8:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisalnum(tls, c) } func Xisalpha(tls *TLS, c int32) int32 { /* isalpha.c:4:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(uint32(c)|uint32(32)-uint32('a') < uint32(26)) } func X__isalpha_l(tls *TLS, c int32, l locale_t) int32 { /* isalpha.c:9:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisalpha(tls, c) } func Xisdigit(tls *TLS, c int32) int32 { /* isdigit.c:4:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(uint32(c)-uint32('0') < uint32(10)) } func X__isdigit_l(tls *TLS, c int32, l locale_t) int32 { /* isdigit.c:9:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisdigit(tls, c) } func Xislower(tls *TLS, c int32) int32 { /* islower.c:4:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(uint32(c)-uint32('a') < uint32(26)) } func X__islower_l(tls *TLS, c int32, l locale_t) int32 { /* islower.c:9:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xislower(tls, c) } func Xisprint(tls *TLS, c int32) int32 { /* isprint.c:4:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(uint32(c)-uint32(0x20) < uint32(0x5f)) } func X__isprint_l(tls *TLS, c int32, l locale_t) int32 { /* isprint.c:9:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisprint(tls, c) } func Xisspace(tls *TLS, c int32) int32 { /* isspace.c:4:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(c == ' ' || uint32(c)-uint32('\t') < uint32(5)) } func X__isspace_l(tls *TLS, c int32, l locale_t) int32 { /* isspace.c:9:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisspace(tls, c) } func Xisupper(tls *TLS, c int32) int32 { /* isupper.c:4:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(uint32(c)-uint32('A') < uint32(26)) } func X__isupper_l(tls *TLS, c int32, l locale_t) int32 { /* isupper.c:9:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisupper(tls, c) } func Xisxdigit(tls *TLS, c int32) int32 { /* isxdigit.c:3:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(func() int32 { if 0 != 0 { return Xisdigit(tls, c) @@ -3398,6 +3443,9 @@ func Xisxdigit(tls *TLS, c int32) int32 { /* isxdigit.c:3:5: */ } func X__isxdigit_l(tls *TLS, c int32, l locale_t) int32 { /* isxdigit.c:8:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisxdigit(tls, c) } @@ -4119,6 +4167,9 @@ func hexfloat(tls *TLS, f uintptr, bits int32, emin int32, sign int32, pok int32 } func X__floatscan(tls *TLS, f uintptr, prec int32, pok int32) float64 { /* floatscan.c:427:13: */ + if __ccgo_strace { + trc("tls=%v f=%v prec=%v pok=%v, (%v:)", tls, f, prec, pok, origin(2)) + } var sign int32 = 1 var i size_t var bits int32 @@ -4296,6 +4347,9 @@ var table = [257]uint8{Uint8FromInt32(-1), } /* intscan.c:7:28 */ func X__intscan(tls *TLS, f uintptr, base uint32, pok int32, lim uint64) uint64 { /* intscan.c:26:20: */ + if __ccgo_strace { + trc("tls=%v f=%v base=%v pok=%v lim=%v, (%v:)", tls, f, base, pok, lim, origin(2)) + } var val uintptr var c int32 var neg int32 @@ -4601,6 +4655,9 @@ __43: // the actual count. func X__shlim(tls *TLS, f uintptr, lim off_t) { /* shgetc.c:8:6: */ + if __ccgo_strace { + trc("tls=%v f=%v lim=%v, (%v:)", tls, f, lim, origin(2)) + } (*FILE)(unsafe.Pointer(f)).Fshlim = lim (*FILE)(unsafe.Pointer(f)).Fshcnt = (int64((*FILE)(unsafe.Pointer(f)).Fbuf) - int64((*FILE)(unsafe.Pointer(f)).Frpos)) / 1 // If lim is nonzero, rend must be a valid pointer. @@ -4612,6 +4669,9 @@ func X__shlim(tls *TLS, f uintptr, lim off_t) { /* shgetc.c:8:6: */ } func X__shgetc(tls *TLS, f uintptr) int32 { /* shgetc.c:19:5: */ + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } var c int32 var cnt off_t = (*FILE)(unsafe.Pointer(f)).Fshcnt + (int64((*FILE)(unsafe.Pointer(f)).Frpos)-int64((*FILE)(unsafe.Pointer(f)).Fbuf))/1 if (*FILE)(unsafe.Pointer(f)).Fshlim != 0 && cnt >= (*FILE)(unsafe.Pointer(f)).Fshlim || AssignInt32(&c, X__uflow(tls, f)) < 0 { @@ -4638,20 +4698,32 @@ func __bswap32(tls *TLS, __x uint32_t) uint32_t { /* endian.h:24:26: */ } func Xcopysignl(tls *TLS, x float64, y float64) float64 { /* copysignl.c:4:13: */ + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + } return Xcopysign(tls, x, y) } func Xfabsl(tls *TLS, x float64) float64 { /* fabsl.c:3:13: */ + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + } return Xfabs(tls, x) } func Xfmodl(tls *TLS, x float64, y float64) float64 { /* fmodl.c:4:13: */ + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + } return Xfmod(tls, x, y) } var toint double_t = float64(float64(1)) / 2.22044604925031308085e-16 /* rint.c:10:23 */ func Xrint(tls *TLS, x float64) float64 { /* rint.c:12:8: */ + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + } bp := tls.Alloc(8) defer tls.Free(8) @@ -4681,6 +4753,9 @@ func Xrint(tls *TLS, x float64) float64 { /* rint.c:12:8: */ } func Xscalbn(tls *TLS, x float64, n int32) float64 { /* scalbn.c:4:8: */ + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + } bp := tls.Alloc(8) defer tls.Free(8) @@ -4717,6 +4792,9 @@ func Xscalbn(tls *TLS, x float64, n int32) float64 { /* scalbn.c:4:8: */ } func Xscalbnl(tls *TLS, x float64, n int32) float64 { /* scalbnl.c:4:13: */ + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + } return Xscalbn(tls, x, n) } @@ -5048,6 +5126,9 @@ type resolvconf = struct { } /* lookup.h:34:1 */ func Xfreeaddrinfo(tls *TLS, p uintptr) { /* freeaddrinfo.c:7:6: */ + if __ccgo_strace { + trc("tls=%v p=%v, (%v:)", tls, p, origin(2)) + } var cnt size_t cnt = uint64(1) __1: @@ -5185,6 +5266,9 @@ type __ptcb = struct { type useconds_t = uint32 /* alltypes.h:260:18 */ func Xgetaddrinfo(tls *TLS, host uintptr, serv uintptr, hint uintptr, res uintptr) int32 { /* getaddrinfo.c:12:5: */ + if __ccgo_strace { + trc("tls=%v host=%v serv=%v hint=%v res=%v, (%v:)", tls, host, serv, hint, res, origin(2)) + } bp := tls.Alloc(1608) defer tls.Free(1608) @@ -5389,6 +5473,9 @@ type mmsghdr = struct { } /* socket.h:63:1 */ func Xgethostbyaddr(tls *TLS, a uintptr, l socklen_t, af int32) uintptr { /* gethostbyaddr.c:7:16: */ + if __ccgo_strace { + trc("tls=%v a=%v l=%v af=%v, (%v:)", tls, a, l, af, origin(2)) + } bp := tls.Alloc(8) defer tls.Free(8) @@ -5415,10 +5502,16 @@ func Xgethostbyaddr(tls *TLS, a uintptr, l socklen_t, af int32) uintptr { /* get var _sh uintptr /* gethostbyaddr.c:9:24: */ func Xgethostbyname(tls *TLS, name uintptr) uintptr { /* gethostbyname.c:8:16: */ + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + } return Xgethostbyname2(tls, name, 2) } func Xgethostbyname2(tls *TLS, name uintptr, af int32) uintptr { /* gethostbyname2.c:8:16: */ + if __ccgo_strace { + trc("tls=%v name=%v af=%v, (%v:)", tls, name, af, origin(2)) + } bp := tls.Alloc(8) defer tls.Free(8) @@ -5445,6 +5538,9 @@ func Xgethostbyname2(tls *TLS, name uintptr, af int32) uintptr { /* gethostbynam var _sh1 uintptr /* gethostbyname2.c:10:24: */ func Xgethostbyname2_r(tls *TLS, name uintptr, af int32, h uintptr, buf uintptr, buflen size_t, res uintptr, err uintptr) int32 { /* gethostbyname2_r.c:11:5: */ + if __ccgo_strace { + trc("tls=%v name=%v af=%v h=%v buf=%v buflen=%v res=%v err=%v, (%v:)", tls, name, af, h, buf, buflen, res, err, origin(2)) + } bp := tls.Alloc(1600) defer tls.Free(1600) @@ -5833,10 +5929,16 @@ func reverse_services(tls *TLS, buf uintptr, port int32, dgram int32) { /* getna var Xh_errno int32 /* h_errno.c:4:5: */ func X__h_errno_location(tls *TLS) uintptr { /* h_errno.c:6:5: */ + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } return uintptr(unsafe.Pointer(&Xh_errno)) } func X__inet_aton(tls *TLS, s0 uintptr, dest uintptr) int32 { /* inet_aton.c:7:5: */ + if __ccgo_strace { + trc("tls=%v s0=%v dest=%v, (%v:)", tls, s0, dest, origin(2)) + } bp := tls.Alloc(40) defer tls.Free(40) @@ -5888,6 +5990,9 @@ func X__inet_aton(tls *TLS, s0 uintptr, dest uintptr) int32 { /* inet_aton.c:7:5 } func Xinet_ntop(tls *TLS, af int32, a0 uintptr, s uintptr, l socklen_t) uintptr { /* inet_ntop.c:7:12: */ + if __ccgo_strace { + trc("tls=%v af=%v a0=%v s=%v l=%v, (%v:)", tls, af, a0, s, l, origin(2)) + } bp := tls.Alloc(276) defer tls.Free(276) @@ -5962,6 +6067,9 @@ func hexval(tls *TLS, c uint32) int32 { /* inet_pton.c:7:12: */ } func Xinet_pton(tls *TLS, af int32, s uintptr, a0 uintptr) int32 { /* inet_pton.c:15:5: */ + if __ccgo_strace { + trc("tls=%v af=%v s=%v a0=%v, (%v:)", tls, af, s, a0, origin(2)) + } bp := tls.Alloc(16) defer tls.Free(16) @@ -6059,6 +6167,9 @@ func Xinet_pton(tls *TLS, af int32, s uintptr, a0 uintptr) int32 { /* inet_pton. } func X__lookup_ipliteral(tls *TLS, buf uintptr, name uintptr, family int32) int32 { /* lookup_ipliteral.c:12:5: */ + if __ccgo_strace { + trc("tls=%v buf=%v name=%v family=%v, (%v:)", tls, buf, name, family, origin(2)) + } bp := tls.Alloc(96) defer tls.Free(96) @@ -6381,6 +6492,9 @@ func addrcmp(tls *TLS, _a uintptr, _b uintptr) int32 { /* lookup_name.c:305:12: } func X__lookup_name(tls *TLS, buf uintptr, canon uintptr, name uintptr, family int32, flags int32) int32 { /* lookup_name.c:311:5: */ + if __ccgo_strace { + trc("tls=%v buf=%v canon=%v name=%v family=%v flags=%v, (%v:)", tls, buf, canon, name, family, flags, origin(2)) + } bp := tls.Alloc(92) defer tls.Free(92) @@ -6547,6 +6661,9 @@ func X__lookup_name(tls *TLS, buf uintptr, canon uintptr, name uintptr, family i } func X__lookup_serv(tls *TLS, buf uintptr, name uintptr, proto int32, socktype int32, flags int32) int32 { /* lookup_serv.c:12:5: */ + if __ccgo_strace { + trc("tls=%v buf=%v name=%v proto=%v socktype=%v flags=%v, (%v:)", tls, buf, name, proto, socktype, flags, origin(2)) + } bp := tls.Alloc(8) defer tls.Free(8) @@ -6672,6 +6789,9 @@ func X__lookup_serv(tls *TLS, buf uintptr, name uintptr, proto int32, socktype i } func X__toread(tls *TLS, f uintptr) int32 { /* __toread.c:3:5: */ + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } *(*int32)(unsafe.Pointer(f + 136)) |= (*FILE)(unsafe.Pointer(f)).Fmode - 1 if (*FILE)(unsafe.Pointer(f)).Fwpos != (*FILE)(unsafe.Pointer(f)).Fwbase { (*struct { @@ -6691,6 +6811,9 @@ func X__toread(tls *TLS, f uintptr) int32 { /* __toread.c:3:5: */ } func X__toread_needs_stdio_exit(tls *TLS) { /* __toread.c:16:13: */ + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } X__builtin_abort(tls) //TODO- // __stdio_exit_needed(); } @@ -6699,6 +6822,9 @@ func X__toread_needs_stdio_exit(tls *TLS) { /* __toread.c:16:13: */ // data buffered for reading. func X__uflow(tls *TLS, f uintptr) int32 { /* __uflow.c:6:5: */ + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } bp := tls.Alloc(1) defer tls.Free(1) @@ -6713,6 +6839,9 @@ func X__uflow(tls *TLS, f uintptr) int32 { /* __uflow.c:6:5: */ } func Xbsearch(tls *TLS, key uintptr, base uintptr, nel size_t, width size_t, cmp uintptr) uintptr { /* bsearch.c:3:6: */ + if __ccgo_strace { + trc("tls=%v key=%v base=%v nel=%v width=%v cmp=%v, (%v:)", tls, key, base, nel, width, cmp, origin(2)) + } var try uintptr var sign int32 for nel > uint64(0) { @@ -6755,14 +6884,23 @@ func strtox(tls *TLS, s uintptr, p uintptr, prec int32) float64 { /* strtod.c:6: } func Xstrtof(tls *TLS, s uintptr, p uintptr) float32 { /* strtod.c:17:7: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + } return float32(strtox(tls, s, p, 0)) } func Xstrtod(tls *TLS, s uintptr, p uintptr) float64 { /* strtod.c:22:8: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + } return strtox(tls, s, p, 1) } func Xstrtold(tls *TLS, s uintptr, p uintptr) float64 { /* strtod.c:27:13: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + } return strtox(tls, s, p, 2) } @@ -6784,30 +6922,51 @@ func strtox1(tls *TLS, s uintptr, p uintptr, base int32, lim uint64) uint64 { /* } func Xstrtoull(tls *TLS, s uintptr, p uintptr, base int32) uint64 { /* strtol.c:21:20: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + } return strtox1(tls, s, p, base, 2*uint64(0x7fffffffffffffff)+uint64(1)) } func Xstrtoll(tls *TLS, s uintptr, p uintptr, base int32) int64 { /* strtol.c:26:11: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + } return int64(strtox1(tls, s, p, base, Uint64FromInt64(-0x7fffffffffffffff-int64(1)))) } func Xstrtoul(tls *TLS, s uintptr, p uintptr, base int32) uint64 { /* strtol.c:31:15: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + } return uint64(strtox1(tls, s, p, base, 2*uint64(0x7fffffffffffffff)+uint64(1))) } func Xstrtol(tls *TLS, s uintptr, p uintptr, base int32) int64 { /* strtol.c:36:6: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + } return int64(strtox1(tls, s, p, base, 0+Uint64FromInt64(Int64(-Int64(0x7fffffffffffffff))-Int64FromInt32(1)))) } func Xstrtoimax(tls *TLS, s uintptr, p uintptr, base int32) intmax_t { /* strtol.c:41:10: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + } return intmax_t(Xstrtoll(tls, s, p, base)) } func Xstrtoumax(tls *TLS, s uintptr, p uintptr, base int32) uintmax_t { /* strtol.c:46:11: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + } return uintmax_t(Xstrtoull(tls, s, p, base)) } func Xstrdup(tls *TLS, s uintptr) uintptr { /* strdup.c:4:6: */ + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + } var l size_t = Xstrlen(tls, s) var d uintptr = Xmalloc(tls, l+uint64(1)) if !(d != 0) { @@ -6817,6 +6976,9 @@ func Xstrdup(tls *TLS, s uintptr) uintptr { /* strdup.c:4:6: */ } func Xstrnlen(tls *TLS, s uintptr, n size_t) size_t { /* strnlen.c:3:8: */ + if __ccgo_strace { + trc("tls=%v s=%v n=%v, (%v:)", tls, s, n, origin(2)) + } var p uintptr = Xmemchr(tls, s, 0, n) if p != 0 { return uint64((int64(p) - int64(s)) / 1) @@ -6825,6 +6987,9 @@ func Xstrnlen(tls *TLS, s uintptr, n size_t) size_t { /* strnlen.c:3:8: */ } func Xstrspn(tls *TLS, s uintptr, c uintptr) size_t { /* strspn.c:6:8: */ + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + } bp := tls.Alloc(32) defer tls.Free(32) diff --git a/vendor/modernc.org/libc/musl_linux_riscv64.go b/vendor/modernc.org/libc/musl_illumos_amd64.go similarity index 87% rename from vendor/modernc.org/libc/musl_linux_riscv64.go rename to vendor/modernc.org/libc/musl_illumos_amd64.go index 57470023b..6a70aeb30 100644 --- a/vendor/modernc.org/libc/musl_linux_riscv64.go +++ b/vendor/modernc.org/libc/musl_illumos_amd64.go @@ -1,4 +1,4 @@ -// Code generated by 'ccgo -export-externs X -hide __syscall0,__syscall1,__syscall2,__syscall3,__syscall4,__syscall5,__syscall6 -nostdinc -nostdlib -o ../musl_linux_riscv64.go -pkgname libc -static-locals-prefix _s -Iarch/riscv64 -Iarch/generic -Iobj/src/internal -Isrc/include -Isrc/internal -Iobj/include -Iinclude copyright.c src/ctype/__ctype_b_loc.c src/ctype/isalnum.c src/ctype/isalpha.c src/ctype/isdigit.c src/ctype/islower.c src/ctype/isprint.c src/ctype/isupper.c src/ctype/isxdigit.c src/dirent/closedir.c src/dirent/opendir.c src/dirent/readdir.c src/internal/floatscan.c src/internal/intscan.c src/internal/shgetc.c src/locale/localeconv.c src/math/__fpclassify.c src/math/__fpclassifyf.c src/math/__fpclassifyl.c src/math/copysignl.c src/math/fabsl.c src/math/fmodl.c src/math/nanf.c src/math/rint.c src/math/scalbn.c src/math/scalbnl.c src/multibyte/internal.c src/multibyte/mbrtowc.c src/multibyte/mbsinit.c src/network/freeaddrinfo.c src/network/getaddrinfo.c src/network/gethostbyaddr.c src/network/gethostbyaddr_r.c src/network/gethostbyname.c src/network/gethostbyname2.c src/network/gethostbyname2_r.c src/network/gethostbyname_r.c src/network/getnameinfo.c src/network/h_errno.c src/network/inet_aton.c src/network/inet_ntop.c src/network/inet_pton.c src/network/lookup_ipliteral.c src/network/lookup_name.c src/network/lookup_serv.c src/prng/rand_r.c src/stdio/__lockfile.c src/stdio/__toread.c src/stdio/__uflow.c src/stdio/sscanf.c src/stdio/vfscanf.c src/stdio/vsscanf.c src/stdlib/bsearch.c src/stdlib/strtod.c src/stdlib/strtol.c src/string/strdup.c src/string/strlcat.c src/string/strlcpy.c src/string/strncasecmp.c src/string/strncat.c src/string/strnlen.c src/string/strspn.c src/string/strtok.c src/thread/pthread_attr_get.c src/thread/pthread_attr_setdetachstate.c src/thread/pthread_mutex_lock.c src/thread/pthread_mutexattr_destroy.c src/thread/pthread_mutexattr_init.c src/thread/pthread_mutexattr_settype.c', DO NOT EDIT. +// Code generated by 'ccgo -export-externs X -hide __syscall0,__syscall1,__syscall2,__syscall3,__syscall4,__syscall5,__syscall6 -nostdinc -nostdlib -o ../musl_linux_amd64.go -pkgname libc -static-locals-prefix _s -Iarch/x86_64 -Iarch/generic -Iobj/src/internal -Isrc/include -Isrc/internal -Iobj/include -Iinclude copyright.c src/ctype/__ctype_b_loc.c src/ctype/isalnum.c src/ctype/isalpha.c src/ctype/isdigit.c src/ctype/islower.c src/ctype/isprint.c src/ctype/isupper.c src/ctype/isxdigit.c src/dirent/closedir.c src/dirent/opendir.c src/dirent/readdir.c src/internal/floatscan.c src/internal/intscan.c src/internal/shgetc.c src/locale/localeconv.c src/math/__fpclassify.c src/math/__fpclassifyf.c src/math/__fpclassifyl.c src/math/copysignl.c src/math/fabsl.c src/math/fmodl.c src/math/nanf.c src/math/rint.c src/math/scalbn.c src/math/scalbnl.c src/multibyte/internal.c src/multibyte/mbrtowc.c src/multibyte/mbsinit.c src/network/freeaddrinfo.c src/network/getaddrinfo.c src/network/gethostbyaddr.c src/network/gethostbyaddr_r.c src/network/gethostbyname.c src/network/gethostbyname2.c src/network/gethostbyname2_r.c src/network/gethostbyname_r.c src/network/getnameinfo.c src/network/h_errno.c src/network/inet_aton.c src/network/inet_ntop.c src/network/inet_pton.c src/network/lookup_ipliteral.c src/network/lookup_name.c src/network/lookup_serv.c src/prng/rand_r.c src/stdio/__lockfile.c src/stdio/__toread.c src/stdio/__uflow.c src/stdio/sscanf.c src/stdio/vfscanf.c src/stdio/vsscanf.c src/stdlib/bsearch.c src/stdlib/strtod.c src/stdlib/strtol.c src/string/strdup.c src/string/strlcat.c src/string/strlcpy.c src/string/strncasecmp.c src/string/strncat.c src/string/strnlen.c src/string/strspn.c src/string/strtok.c src/thread/pthread_attr_get.c src/thread/pthread_attr_setdetachstate.c src/thread/pthread_mutex_lock.c src/thread/pthread_mutexattr_destroy.c src/thread/pthread_mutexattr_init.c src/thread/pthread_mutexattr_settype.c', DO NOT EDIT. package libc @@ -363,11 +363,11 @@ type size_t = uint64 /* :9:23 */ type wchar_t = int32 /* :15:24 */ -type uint16_t = uint16 /* alltypes.h:124:25 */ +type uint16_t = uint16 /* alltypes.h:126:25 */ -type uint32_t = uint32 /* alltypes.h:129:25 */ +type uint32_t = uint32 /* alltypes.h:131:25 */ -type uint64_t = uint64 /* alltypes.h:134:25 */ +type uint64_t = uint64 /* alltypes.h:136:25 */ func __bswap32(tls *TLS, __x uint32_t) uint32_t { /* endian.h:24:26: */ return __x>>24 | __x>>8&uint32_t(0xff00) | __x<<8&uint32_t(0xff0000) | __x<<24 @@ -403,6 +403,9 @@ var table = [384]uint16{ var ptable uintptr = 0 /* __ctype_b_loc.c:36:29 */ func X__ctype_b_loc(tls *TLS) uintptr { /* __ctype_b_loc.c:38:22: */ + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } return uintptr(unsafe.Pointer(&ptable)) } @@ -410,11 +413,14 @@ func __isspace(tls *TLS, _c int32) int32 { /* ctype.h:26:21: */ return Bool32(_c == ' ' || uint32(_c)-uint32('\t') < uint32(5)) } -type __locale_struct = struct{ cat [6]uintptr } /* alltypes.h:341:9 */ +type __locale_struct = struct{ cat [6]uintptr } /* alltypes.h:343:9 */ -type locale_t = uintptr /* alltypes.h:341:32 */ +type locale_t = uintptr /* alltypes.h:343:32 */ func Xisalnum(tls *TLS, c int32) int32 { /* isalnum.c:3:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(func() int32 { if 0 != 0 { return Xisalpha(tls, c) @@ -429,50 +435,93 @@ func Xisalnum(tls *TLS, c int32) int32 { /* isalnum.c:3:5: */ } func X__isalnum_l(tls *TLS, c int32, l locale_t) int32 { /* isalnum.c:8:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisalnum(tls, c) } func Xisalpha(tls *TLS, c int32) int32 { /* isalpha.c:4:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(uint32(c)|uint32(32)-uint32('a') < uint32(26)) } func X__isalpha_l(tls *TLS, c int32, l locale_t) int32 { /* isalpha.c:9:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisalpha(tls, c) } func Xisdigit(tls *TLS, c int32) int32 { /* isdigit.c:4:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(uint32(c)-uint32('0') < uint32(10)) } func X__isdigit_l(tls *TLS, c int32, l locale_t) int32 { /* isdigit.c:9:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisdigit(tls, c) } func Xislower(tls *TLS, c int32) int32 { /* islower.c:4:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(uint32(c)-uint32('a') < uint32(26)) } func X__islower_l(tls *TLS, c int32, l locale_t) int32 { /* islower.c:9:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xislower(tls, c) } func Xisprint(tls *TLS, c int32) int32 { /* isprint.c:4:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } + return Bool32(uint32(c)-uint32(0x20) < uint32(0x5f)) +} + +func X__builtin_isprint(tls *TLS, c int32) int32 { /* isprint.c:4:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(uint32(c)-uint32(0x20) < uint32(0x5f)) } func X__isprint_l(tls *TLS, c int32, l locale_t) int32 { /* isprint.c:9:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisprint(tls, c) } func Xisupper(tls *TLS, c int32) int32 { /* isupper.c:4:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(uint32(c)-uint32('A') < uint32(26)) } func X__isupper_l(tls *TLS, c int32, l locale_t) int32 { /* isupper.c:9:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisupper(tls, c) } func Xisxdigit(tls *TLS, c int32) int32 { /* isxdigit.c:3:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(func() int32 { if 0 != 0 { return Xisdigit(tls, c) @@ -482,19 +531,22 @@ func Xisxdigit(tls *TLS, c int32) int32 { /* isxdigit.c:3:5: */ } func X__isxdigit_l(tls *TLS, c int32, l locale_t) int32 { /* isxdigit.c:8:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisxdigit(tls, c) } -type off_t = int64 /* alltypes.h:160:16 */ +type off_t = int64 /* alltypes.h:162:16 */ -type ino_t = uint64 /* alltypes.h:165:25 */ +type ino_t = uint64 /* alltypes.h:167:25 */ type dirent = struct { d_ino ino_t d_off off_t d_reclen uint16 d_type uint8 - d_name [256]uint8 + d_name [256]int8 _ [5]byte } /* dirent.h:5:1 */ @@ -504,22 +556,22 @@ type __dirstream = struct { buf_pos int32 buf_end int32 lock [1]int32 - buf [2048]uint8 + buf [2048]int8 } /* dirent.h:20:9 */ type DIR = __dirstream /* dirent.h:20:28 */ -type ssize_t = int64 /* alltypes.h:63:15 */ +type ssize_t = int64 /* alltypes.h:65:15 */ -type intptr_t = int64 /* alltypes.h:68:15 */ +type intptr_t = int64 /* alltypes.h:70:15 */ -type pid_t = int32 /* alltypes.h:233:13 */ +type pid_t = int32 /* alltypes.h:235:13 */ -type uid_t = uint32 /* alltypes.h:243:18 */ +type uid_t = uint32 /* alltypes.h:245:18 */ -type gid_t = uint32 /* alltypes.h:248:18 */ +type gid_t = uint32 /* alltypes.h:250:18 */ -type useconds_t = uint32 /* alltypes.h:258:18 */ +type useconds_t = uint32 /* alltypes.h:260:18 */ type div_t = struct { quot int32 @@ -535,17 +587,20 @@ type lldiv_t = struct { } /* stdlib.h:64:41 */ func Xclosedir(tls *TLS, dir uintptr) int32 { /* closedir.c:6:5: */ + if __ccgo_strace { + trc("tls=%v dir=%v, (%v:)", tls, dir, origin(2)) + } var ret int32 = Xclose(tls, (*DIR)(unsafe.Pointer(dir)).fd) Xfree(tls, dir) return ret } -type mode_t = uint32 /* alltypes.h:150:18 */ +type mode_t = uint32 /* alltypes.h:152:18 */ type iovec = struct { iov_base uintptr iov_len size_t -} /* alltypes.h:353:1 */ +} /* alltypes.h:355:1 */ type flock = struct { l_type int16 @@ -568,69 +623,73 @@ type f_owner_ex = struct { pid pid_t } /* fcntl.h:172:1 */ -// We don't have a clock_gettime function. -// #define VDSO_CGT_SYM "__vdso_clock_gettime" -// #define VDSO_CGT_VER "LINUX_2.6" - type syscall_arg_t = int64 /* syscall.h:22:14 */ func Xopendir(tls *TLS, name uintptr) uintptr { /* opendir.c:8:5: */ - var fd int32 - var dir uintptr - - if AssignInt32(&fd, Xopen(tls, name, 00|0200000|02000000, 0)) < 0 { - return uintptr(0) - } - if !(int32(AssignUintptr(&dir, Xcalloc(tls, uint64(1), uint64(unsafe.Sizeof(DIR{}))))) != 0) { - __syscall1(tls, int64(57), int64(fd)) - return uintptr(0) - } - (*DIR)(unsafe.Pointer(dir)).fd = fd - return dir + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + } + panic(todo("")) + // var fd int32 + // var dir uintptr + // + // if AssignInt32(&fd, Xopen(tls, name, 00|0200000|02000000, 0)) < 0 { + // return uintptr(0) + // } + // if !(int32(AssignUintptr(&dir, Xcalloc(tls, uint64(1), uint64(unsafe.Sizeof(DIR{}))))) != 0) { + // X__syscall1(tls, int64(3), int64(fd)) + // return uintptr(0) + // } + // (*DIR)(unsafe.Pointer(dir)).fd = fd + // return dir } type max_align_t = struct { __ll int64 __ld float64 -} /* alltypes.h:39:54 */ +} /* alltypes.h:41:54 */ -type dirstream_buf_alignment_check = [1]uint8 /* readdir.c:7:14 */ +type dirstream_buf_alignment_check = [1]int8 /* readdir.c:7:14 */ func Xreaddir(tls *TLS, dir uintptr) uintptr { /* readdir.c:10:15: */ - var de uintptr - - if (*DIR)(unsafe.Pointer(dir)).buf_pos >= (*DIR)(unsafe.Pointer(dir)).buf_end { - var len int32 = int32(__syscall3(tls, int64(61), int64((*DIR)(unsafe.Pointer(dir)).fd), int64(dir+24), int64(unsafe.Sizeof([2048]uint8{})))) - if len <= 0 { - if len < 0 && len != -2 { - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = -len - } - return uintptr(0) - } - (*DIR)(unsafe.Pointer(dir)).buf_end = len - (*DIR)(unsafe.Pointer(dir)).buf_pos = 0 + if __ccgo_strace { + trc("tls=%v dir=%v, (%v:)", tls, dir, origin(2)) } - de = dir + 24 + uintptr((*DIR)(unsafe.Pointer(dir)).buf_pos) - *(*int32)(unsafe.Pointer(dir + 12)) += int32((*dirent)(unsafe.Pointer(de)).d_reclen) - (*DIR)(unsafe.Pointer(dir)).tell = (*dirent)(unsafe.Pointer(de)).d_off - return de + panic(todo("")) + // var de uintptr + // + // if (*DIR)(unsafe.Pointer(dir)).buf_pos >= (*DIR)(unsafe.Pointer(dir)).buf_end { + // var len int32 = int32(X__syscall3(tls, int64(217), int64((*DIR)(unsafe.Pointer(dir)).fd), int64(dir+24), int64(unsafe.Sizeof([2048]int8{})))) + // if len <= 0 { + // if len < 0 && len != -2 { + // *(*int32)(unsafe.Pointer(X___errno_location(tls))) = -len + // } + // return uintptr(0) + // } + // (*DIR)(unsafe.Pointer(dir)).buf_end = len + // (*DIR)(unsafe.Pointer(dir)).buf_pos = 0 + // } + // de = dir + 24 + uintptr((*DIR)(unsafe.Pointer(dir)).buf_pos) + // *(*int32)(unsafe.Pointer(dir + 12)) += int32((*dirent)(unsafe.Pointer(de)).d_reclen) + // (*DIR)(unsafe.Pointer(dir)).tell = (*dirent)(unsafe.Pointer(de)).d_off + // return de } -type uintptr_t = uint64 /* alltypes.h:53:24 */ +type uintptr_t = uint64 /* alltypes.h:55:24 */ -type int8_t = int8 /* alltypes.h:94:25 */ +type int8_t = int8 /* alltypes.h:96:25 */ -type int16_t = int16 /* alltypes.h:99:25 */ +type int16_t = int16 /* alltypes.h:101:25 */ -type int32_t = int32 /* alltypes.h:104:25 */ +type int32_t = int32 /* alltypes.h:106:25 */ -type int64_t = int64 /* alltypes.h:109:25 */ +type int64_t = int64 /* alltypes.h:111:25 */ -type intmax_t = int64 /* alltypes.h:114:25 */ +type intmax_t = int64 /* alltypes.h:116:25 */ -type uint8_t = uint8 /* alltypes.h:119:25 */ +type uint8_t = uint8 /* alltypes.h:121:25 */ -type uintmax_t = uint64 /* alltypes.h:144:25 */ +type uintmax_t = uint64 /* alltypes.h:146:25 */ type int_fast8_t = int8_t /* stdint.h:22:16 */ type int_fast64_t = int64_t /* stdint.h:23:17 */ @@ -687,22 +746,22 @@ type _IO_FILE = struct { prev_locked uintptr next_locked uintptr locale uintptr -} /* alltypes.h:318:9 */ +} /* alltypes.h:320:9 */ -type FILE = _IO_FILE /* alltypes.h:318:25 */ +type FILE = _IO_FILE /* alltypes.h:320:25 */ -type va_list = uintptr /* alltypes.h:324:27 */ +type va_list = uintptr /* alltypes.h:326:27 */ type _G_fpos64_t = struct { _ [0]uint64 - __opaque [16]uint8 + __opaque [16]int8 } /* stdio.h:54:9 */ type fpos_t = _G_fpos64_t /* stdio.h:58:3 */ -type float_t = float32 /* alltypes.h:28:15 */ +type float_t = float32 /* alltypes.h:29:15 */ -type double_t = float64 /* alltypes.h:33:16 */ +type double_t = float64 /* alltypes.h:34:16 */ func __FLOAT_BITS(tls *TLS, __f float32) uint32 { /* math.h:55:26: */ bp := tls.Alloc(4) @@ -762,7 +821,7 @@ type __pthread = struct { stdio_locks uintptr canary_at_end uintptr_t dtv_copy uintptr -} /* alltypes.h:271:9 */ +} /* alltypes.h:273:9 */ func scanexp(tls *TLS, f uintptr, pok int32) int64 { /* floatscan.c:37:18: */ var c int32 @@ -1360,6 +1419,9 @@ func hexfloat(tls *TLS, f uintptr, bits int32, emin int32, sign int32, pok int32 } func X__floatscan(tls *TLS, f uintptr, prec int32, pok int32) float64 { /* floatscan.c:427:13: */ + if __ccgo_strace { + trc("tls=%v f=%v prec=%v pok=%v, (%v:)", tls, f, prec, pok, origin(2)) + } var sign int32 = 1 var i size_t var bits int32 @@ -1401,7 +1463,7 @@ func X__floatscan(tls *TLS, f uintptr, prec int32, pok int32) float64 { /* float }() } - for i = uint64(0); i < uint64(8) && c|32 == int32(*(*uint8)(unsafe.Pointer(ts /* "infinity" */ + uintptr(i)))); i++ { + for i = uint64(0); i < uint64(8) && c|32 == int32(*(*int8)(unsafe.Pointer(ts /* "infinity" */ + uintptr(i)))); i++ { if i < uint64(7) { c = func() int32 { if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { @@ -1429,7 +1491,7 @@ func X__floatscan(tls *TLS, f uintptr, prec int32, pok int32) float64 { /* float return float64(float32(sign) * X__builtin_inff(tls)) } if !(i != 0) { - for i = uint64(0); i < uint64(3) && c|32 == int32(*(*uint8)(unsafe.Pointer(ts + 9 /* "nan" */ + uintptr(i)))); i++ { + for i = uint64(0); i < uint64(3) && c|32 == int32(*(*int8)(unsafe.Pointer(ts + 9 /* "nan" */ + uintptr(i)))); i++ { if i < uint64(2) { c = func() int32 { if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { @@ -1537,6 +1599,9 @@ var table1 = [257]uint8{Uint8FromInt32(-1), } /* intscan.c:7:28 */ func X__intscan(tls *TLS, f uintptr, base uint32, pok int32, lim uint64) uint64 { /* intscan.c:26:20: */ + if __ccgo_strace { + trc("tls=%v f=%v base=%v pok=%v lim=%v, (%v:)", tls, f, base, pok, lim, origin(2)) + } var val uintptr var c int32 var neg int32 @@ -1699,7 +1764,7 @@ __15: if !!(base&(base-uint32(1)) != 0) { goto __24 } - bs = int32(*(*uint8)(unsafe.Pointer(ts + 14 + uintptr(uint32(0x17)*base>>5&uint32(7))))) + bs = int32(*(*int8)(unsafe.Pointer(ts + 14 + uintptr(uint32(0x17)*base>>5&uint32(7))))) x = uint32(0) __26: if !(uint32(*(*uint8)(unsafe.Pointer(val + uintptr(c)))) < base && x <= 0xffffffff/uint32(32)) { @@ -1842,6 +1907,9 @@ __43: // the actual count. func X__shlim(tls *TLS, f uintptr, lim off_t) { /* shgetc.c:8:6: */ + if __ccgo_strace { + trc("tls=%v f=%v lim=%v, (%v:)", tls, f, lim, origin(2)) + } (*FILE)(unsafe.Pointer(f)).shlim = lim (*FILE)(unsafe.Pointer(f)).shcnt = (int64((*FILE)(unsafe.Pointer(f)).buf) - int64((*FILE)(unsafe.Pointer(f)).rpos)) / 1 // If lim is nonzero, rend must be a valid pointer. @@ -1853,6 +1921,9 @@ func X__shlim(tls *TLS, f uintptr, lim off_t) { /* shgetc.c:8:6: */ } func X__shgetc(tls *TLS, f uintptr) int32 { /* shgetc.c:19:5: */ + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } var c int32 var cnt off_t = (*FILE)(unsafe.Pointer(f)).shcnt + (int64((*FILE)(unsafe.Pointer(f)).rpos)-int64((*FILE)(unsafe.Pointer(f)).buf))/1 if (*FILE)(unsafe.Pointer(f)).shlim != 0 && cnt >= (*FILE)(unsafe.Pointer(f)).shlim || AssignInt32(&c, X__uflow(tls, f)) < 0 { @@ -1885,20 +1956,20 @@ type lconv = struct { mon_grouping uintptr positive_sign uintptr negative_sign uintptr - int_frac_digits uint8 - frac_digits uint8 - p_cs_precedes uint8 - p_sep_by_space uint8 - n_cs_precedes uint8 - n_sep_by_space uint8 - p_sign_posn uint8 - n_sign_posn uint8 - int_p_cs_precedes uint8 - int_p_sep_by_space uint8 - int_n_cs_precedes uint8 - int_n_sep_by_space uint8 - int_p_sign_posn uint8 - int_n_sign_posn uint8 + int_frac_digits int8 + frac_digits int8 + p_cs_precedes int8 + p_sep_by_space int8 + n_cs_precedes int8 + n_sep_by_space int8 + p_sign_posn int8 + n_sign_posn int8 + int_p_cs_precedes int8 + int_p_sep_by_space int8 + int_n_cs_precedes int8 + int_n_sep_by_space int8 + int_p_sign_posn int8 + int_n_sign_posn int8 _ [2]byte } /* locale.h:24:1 */ @@ -1911,13 +1982,19 @@ type lconv = struct { // POSIX/SUS requirements follow. These numbers come directly // from SUS and have nothing to do with the host system. -var posix_lconv = lconv{decimal_point: ts + 23, thousands_sep: ts + 13, grouping: ts + 13, int_curr_symbol: ts + 13, currency_symbol: ts + 13, mon_decimal_point: ts + 13, mon_thousands_sep: ts + 13, mon_grouping: ts + 13, positive_sign: ts + 13, negative_sign: ts + 13, int_frac_digits: uint8(255), frac_digits: uint8(255), p_cs_precedes: uint8(255), p_sep_by_space: uint8(255), n_cs_precedes: uint8(255), n_sep_by_space: uint8(255), p_sign_posn: uint8(255), n_sign_posn: uint8(255), int_p_cs_precedes: uint8(255), int_p_sep_by_space: uint8(255), int_n_cs_precedes: uint8(255), int_n_sep_by_space: uint8(255), int_p_sign_posn: uint8(255), int_n_sign_posn: uint8(255)} /* localeconv.c:4:27 */ +var posix_lconv = lconv{decimal_point: ts + 23, thousands_sep: ts + 13, grouping: ts + 13, int_curr_symbol: ts + 13, currency_symbol: ts + 13, mon_decimal_point: ts + 13, mon_thousands_sep: ts + 13, mon_grouping: ts + 13, positive_sign: ts + 13, negative_sign: ts + 13, int_frac_digits: Int8FromInt32(255), frac_digits: Int8FromInt32(255), p_cs_precedes: Int8FromInt32(255), p_sep_by_space: Int8FromInt32(255), n_cs_precedes: Int8FromInt32(255), n_sep_by_space: Int8FromInt32(255), p_sign_posn: Int8FromInt32(255), n_sign_posn: Int8FromInt32(255), int_p_cs_precedes: Int8FromInt32(255), int_p_sep_by_space: Int8FromInt32(255), int_n_cs_precedes: Int8FromInt32(255), int_n_sep_by_space: Int8FromInt32(255), int_p_sign_posn: Int8FromInt32(255), int_n_sign_posn: Int8FromInt32(255)} /* localeconv.c:4:27 */ func Xlocaleconv(tls *TLS) uintptr { /* localeconv.c:31:14: */ + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } return uintptr(unsafe.Pointer(&posix_lconv)) } func X__fpclassify(tls *TLS, x float64) int32 { /* __fpclassify.c:4:5: */ + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + } bp := tls.Alloc(8) defer tls.Free(8) @@ -1942,6 +2019,9 @@ func X__fpclassify(tls *TLS, x float64) int32 { /* __fpclassify.c:4:5: */ } func X__fpclassifyf(tls *TLS, x float32) int32 { /* __fpclassifyf.c:4:5: */ + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + } bp := tls.Alloc(4) defer tls.Free(4) @@ -1966,28 +2046,46 @@ func X__fpclassifyf(tls *TLS, x float32) int32 { /* __fpclassifyf.c:4:5: */ } func X__fpclassifyl(tls *TLS, x float64) int32 { /* __fpclassifyl.c:4:5: */ + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + } return X__fpclassify(tls, x) } func Xcopysignl(tls *TLS, x float64, y float64) float64 { /* copysignl.c:4:13: */ + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + } return Xcopysign(tls, x, y) } func Xfabsl(tls *TLS, x float64) float64 { /* fabsl.c:3:13: */ + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + } return Xfabs(tls, x) } func Xfmodl(tls *TLS, x float64, y float64) float64 { /* fmodl.c:4:13: */ + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + } return Xfmod(tls, x, y) } func Xnanf(tls *TLS, s uintptr) float32 { /* nanf.c:3:7: */ + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + } return X__builtin_nanf(tls, ts+13) } var toint double_t = float64(float64(1)) / 2.22044604925031308085e-16 /* rint.c:10:23 */ func Xrint(tls *TLS, x float64) float64 { /* rint.c:12:8: */ + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + } bp := tls.Alloc(8) defer tls.Free(8) @@ -2017,6 +2115,9 @@ func Xrint(tls *TLS, x float64) float64 { /* rint.c:12:8: */ } func Xscalbn(tls *TLS, x float64, n int32) float64 { /* scalbn.c:4:8: */ + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + } bp := tls.Alloc(8) defer tls.Free(8) @@ -2053,6 +2154,9 @@ func Xscalbn(tls *TLS, x float64, n int32) float64 { /* scalbn.c:4:8: */ } func Xscalbnl(tls *TLS, x float64, n int32) float64 { /* scalbnl.c:4:13: */ + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + } return Xscalbn(tls, x, n) } @@ -2068,9 +2172,9 @@ func Xscalbnl(tls *TLS, x float64, n int32) float64 { /* scalbnl.c:4:13: */ type __locale_map = struct { __map uintptr map_size size_t - name [24]uint8 + name [24]int8 next uintptr -} /* alltypes.h:341:9 */ +} /* alltypes.h:343:9 */ type tls_module = struct { next uintptr @@ -2082,9 +2186,9 @@ type tls_module = struct { } /* libc.h:14:1 */ type __libc = struct { - can_do_threads uint8 - threaded uint8 - secure uint8 + can_do_threads int8 + threaded int8 + secure int8 need_locks int8 threads_minus_1 int32 auxv uintptr @@ -2096,69 +2200,69 @@ type __libc = struct { global_locale struct{ cat [6]uintptr } } /* libc.h:20:1 */ -type time_t = int64 /* alltypes.h:83:16 */ +type time_t = int64 /* alltypes.h:85:16 */ -type clockid_t = int32 /* alltypes.h:212:13 */ +type clockid_t = int32 /* alltypes.h:214:13 */ type timespec = struct { tv_sec time_t tv_nsec int64 -} /* alltypes.h:227:1 */ +} /* alltypes.h:229:1 */ -type pthread_t = uintptr /* alltypes.h:271:26 */ +type pthread_t = uintptr /* alltypes.h:273:26 */ -type pthread_once_t = int32 /* alltypes.h:277:13 */ +type pthread_once_t = int32 /* alltypes.h:279:13 */ -type pthread_key_t = uint32 /* alltypes.h:282:18 */ +type pthread_key_t = uint32 /* alltypes.h:284:18 */ -type pthread_spinlock_t = int32 /* alltypes.h:287:13 */ +type pthread_spinlock_t = int32 /* alltypes.h:289:13 */ -type pthread_mutexattr_t = struct{ __attr uint32 } /* alltypes.h:292:37 */ +type pthread_mutexattr_t = struct{ __attr uint32 } /* alltypes.h:294:37 */ -type pthread_condattr_t = struct{ __attr uint32 } /* alltypes.h:297:37 */ +type pthread_condattr_t = struct{ __attr uint32 } /* alltypes.h:299:37 */ -type pthread_barrierattr_t = struct{ __attr uint32 } /* alltypes.h:302:37 */ +type pthread_barrierattr_t = struct{ __attr uint32 } /* alltypes.h:304:37 */ -type pthread_rwlockattr_t = struct{ __attr [2]uint32 } /* alltypes.h:307:40 */ +type pthread_rwlockattr_t = struct{ __attr [2]uint32 } /* alltypes.h:309:40 */ -type __sigset_t = struct{ __bits [16]uint64 } /* alltypes.h:347:9 */ +type __sigset_t = struct{ __bits [16]uint64 } /* alltypes.h:349:9 */ -type sigset_t = __sigset_t /* alltypes.h:347:71 */ +type sigset_t = __sigset_t /* alltypes.h:349:71 */ type pthread_attr_t = struct { __u struct { _ [0]uint64 __i [14]int32 } -} /* alltypes.h:370:147 */ +} /* alltypes.h:372:147 */ type pthread_mutex_t = struct { __u struct { _ [0]uint64 __i [10]int32 } -} /* alltypes.h:375:157 */ +} /* alltypes.h:377:157 */ type pthread_cond_t = struct { __u struct { _ [0]uint64 __i [12]int32 } -} /* alltypes.h:385:112 */ +} /* alltypes.h:387:112 */ type pthread_rwlock_t = struct { __u struct { _ [0]uint64 __i [14]int32 } -} /* alltypes.h:395:139 */ +} /* alltypes.h:397:139 */ type pthread_barrier_t = struct { __u struct { _ [0]uint64 __i [8]int32 } -} /* alltypes.h:400:137 */ +} /* alltypes.h:402:137 */ type sched_param = struct { sched_priority int32 @@ -2171,9 +2275,9 @@ type sched_param = struct { _ [4]byte } /* sched.h:19:1 */ -type timer_t = uintptr /* alltypes.h:207:14 */ +type timer_t = uintptr /* alltypes.h:209:14 */ -type clock_t = int64 /* alltypes.h:217:14 */ +type clock_t = int64 /* alltypes.h:219:14 */ type tm = struct { tm_sec int32 @@ -2211,14 +2315,14 @@ type sigevent = struct { sigev_notify int32 sigev_notify_function uintptr sigev_notify_attributes uintptr - __pad [32]uint8 + __pad [32]int8 } /* time.h:107:1 */ type __ptcb = struct { __f uintptr __x uintptr __next uintptr -} /* alltypes.h:271:9 */ +} /* alltypes.h:273:9 */ type sigaltstack = struct { ss_sp uintptr @@ -2229,63 +2333,74 @@ type sigaltstack = struct { type stack_t = sigaltstack /* signal.h:44:28 */ -type __riscv_mc_f_ext_state = struct { - __f [32]uint32 - __fcsr uint32 -} /* signal.h:11:1 */ - -type __riscv_mc_d_ext_state = struct { - __f [32]uint64 - __fcsr uint32 - _ [4]byte -} /* signal.h:16:1 */ - -type __riscv_mc_q_ext_state = struct { - __f [64]uint64 - __fcsr uint32 - __reserved [3]uint32 -} /* signal.h:21:1 */ - -type __riscv_mc_fp_state = struct { - _ [0]uint64 - __f struct { - __f [32]uint32 - __fcsr uint32 - } - _ [396]byte -} /* signal.h:27:1 */ - -type mcontext_t1 = struct { - __gregs [32]uint64 - __fpregs struct { - _ [0]uint64 - __f struct { - __f [32]uint32 - __fcsr uint32 - } - _ [396]byte - } -} /* signal.h:33:9 */ - -type mcontext_t = mcontext_t1 /* signal.h:36:3 */ - -type greg_t = uint64 /* signal.h:48:23 */ -type gregset_t = [32]uint64 /* signal.h:49:23 */ -type fpregset_t = __riscv_mc_fp_state /* signal.h:50:35 */ +type greg_t = int64 /* signal.h:59:19 */ +type gregset_t = [23]int64 /* signal.h:59:27 */ +type _fpstate = struct { + cwd uint16 + swd uint16 + ftw uint16 + fop uint16 + rip uint64 + rdp uint64 + mxcsr uint32 + mxcr_mask uint32 + _st [8]struct { + significand [4]uint16 + exponent uint16 + padding [3]uint16 + } + _xmm [16]struct{ element [4]uint32 } + padding [24]uint32 +} /* signal.h:60:9 */ + +type fpregset_t = uintptr /* signal.h:71:3 */ type sigcontext = struct { - gregs gregset_t - fpregs fpregset_t -} /* signal.h:51:1 */ - -type ucontext_t1 = struct { - uc_flags uint64 - uc_link uintptr - uc_stack stack_t - uc_sigmask sigset_t - uc_mcontext mcontext_t -} /* signal.h:63:9 */ - -type ucontext_t = ucontext_t1 /* signal.h:70:3 */ + r8 uint64 + r9 uint64 + r10 uint64 + r11 uint64 + r12 uint64 + r13 uint64 + r14 uint64 + r15 uint64 + rdi uint64 + rsi uint64 + rbp uint64 + rbx uint64 + rdx uint64 + rax uint64 + rcx uint64 + rsp uint64 + rip uint64 + eflags uint64 + cs uint16 + gs uint16 + fs uint16 + __pad0 uint16 + err uint64 + trapno uint64 + oldmask uint64 + cr2 uint64 + fpstate uintptr + __reserved1 [8]uint64 +} /* signal.h:72:1 */ + +type mcontext_t = struct { + gregs gregset_t + fpregs fpregset_t + __reserved1 [8]uint64 +} /* signal.h:84:3 */ + +type __ucontext = struct { + uc_flags uint64 + uc_link uintptr + uc_stack stack_t + uc_mcontext mcontext_t + uc_sigmask sigset_t + __fpregs_mem [64]uint64 +} /* signal.h:97:9 */ + +type ucontext_t = __ucontext /* signal.h:104:3 */ type sigval = struct { _ [0]uint64 @@ -2300,7 +2415,7 @@ type siginfo_t = struct { _ [4]byte __si_fields struct { _ [0]uint64 - __pad [112]uint8 + __pad [112]int8 } } /* signal.h:145:3 */ @@ -2316,102 +2431,38 @@ type sig_t = uintptr /* signal.h:251:14 */ type sig_atomic_t = int32 /* signal.h:269:13 */ -func a_barrier(tls *TLS) { /* atomic_arch.h:2:20: */ - panic(`arch/riscv64/atomic_arch.h:4:2: assembler statements not supported`) +func a_cas(tls *TLS, p uintptr, t int32, s int32) int32 { /* atomic_arch.h:2:19: */ + panic(`arch/x86_64/atomic_arch.h:4:2: assembler statements not supported`) + return t } -func a_cas(tls *TLS, p uintptr, t int32, s int32) int32 { /* atomic_arch.h:8:19: */ - var old int32 - var tmp int32 - _ = tmp - panic(`arch/riscv64/atomic_arch.h:11:2: assembler statements not supported`) - return old +func a_swap(tls *TLS, p uintptr, v int32) int32 { /* atomic_arch.h:20:19: */ + panic(`arch/x86_64/atomic_arch.h:22:2: assembler statements not supported`) + return v } -func a_swap(tls *TLS, p uintptr, v int32) int32 { /* atomic.h:108:19: */ - var old int32 - for __ccgo := true; __ccgo; __ccgo = a_cas(tls, p, old, v) != old { - old = *(*int32)(unsafe.Pointer(p)) - } - return old +func a_or(tls *TLS, p uintptr, v int32) { /* atomic_arch.h:46:20: */ + panic(`arch/x86_64/atomic_arch.h:48:2: assembler statements not supported`) } -func a_fetch_add(tls *TLS, p uintptr, v int32) int32 { /* atomic.h:119:19: */ - var old int32 - for __ccgo := true; __ccgo; __ccgo = a_cas(tls, p, old, int32(uint32(old)+uint32(v))) != old { - old = *(*int32)(unsafe.Pointer(p)) - } - return old +func a_or_64(tls *TLS, p uintptr, v uint64_t) { /* atomic_arch.h:62:20: */ + panic(`arch/x86_64/atomic_arch.h:64:2: assembler statements not supported`) } -func a_fetch_and(tls *TLS, p uintptr, v int32) int32 { /* atomic.h:130:19: */ - var old int32 - for __ccgo := true; __ccgo; __ccgo = a_cas(tls, p, old, old&v) != old { - old = *(*int32)(unsafe.Pointer(p)) - } - return old -} - -func a_fetch_or(tls *TLS, p uintptr, v int32) int32 { /* atomic.h:140:19: */ - var old int32 - for __ccgo := true; __ccgo; __ccgo = a_cas(tls, p, old, old|v) != old { - old = *(*int32)(unsafe.Pointer(p)) - } - return old -} - -func a_and(tls *TLS, p uintptr, v int32) { /* atomic.h:151:20: */ - a_fetch_and(tls, p, v) -} - -func a_or(tls *TLS, p uintptr, v int32) { /* atomic.h:159:20: */ - a_fetch_or(tls, p, v) -} - -func a_or_64(tls *TLS, p uintptr, v uint64_t) { /* atomic.h:220:20: */ - bp := tls.Alloc(8) - defer tls.Free(8) - - *(*struct{ v uint64_t })(unsafe.Pointer(bp)) = func() (r struct{ v uint64_t }) { - *(*uint64_t)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = v - return r - }() - if *(*uint32_t)(unsafe.Pointer(bp)) != 0 { - a_or(tls, p, int32(*(*uint32_t)(unsafe.Pointer(bp)))) - } - if *(*uint32_t)(unsafe.Pointer(bp + 1*4)) != 0 { - a_or(tls, p+uintptr(1)*4, int32(*(*uint32_t)(unsafe.Pointer(bp + 1*4)))) - } +func a_ctz_64(tls *TLS, x uint64_t) int32 { /* atomic_arch.h:112:19: */ + panic(`arch/x86_64/atomic_arch.h:114:2: assembler statements not supported`) + return int32(x) } func a_ctz_32(tls *TLS, x uint32_t) int32 { /* atomic.h:256:19: */ return int32(_sdebruijn328[x&-x*uint32_t(0x076be629)>>27]) } -var _sdebruijn328 = [32]uint8{ - uint8(0), uint8(1), uint8(23), uint8(2), uint8(29), uint8(24), uint8(19), uint8(3), uint8(30), uint8(27), uint8(25), uint8(11), uint8(20), uint8(8), uint8(4), uint8(13), - uint8(31), uint8(22), uint8(28), uint8(18), uint8(26), uint8(10), uint8(7), uint8(12), uint8(21), uint8(17), uint8(9), uint8(6), uint8(16), uint8(5), uint8(15), uint8(14), +var _sdebruijn328 = [32]int8{ + int8(0), int8(1), int8(23), int8(2), int8(29), int8(24), int8(19), int8(3), int8(30), int8(27), int8(25), int8(11), int8(20), int8(8), int8(4), int8(13), + int8(31), int8(22), int8(28), int8(18), int8(26), int8(10), int8(7), int8(12), int8(21), int8(17), int8(9), int8(6), int8(16), int8(5), int8(15), int8(14), } /* atomic.h:261:20 */ -func a_ctz_64(tls *TLS, x uint64_t) int32 { /* atomic.h:272:19: */ - if uint64(unsafe.Sizeof(int64(0))) < uint64(8) { - var y uint32_t = uint32_t(x) - if !(y != 0) { - y = uint32_t(x >> 32) - return 32 + a_ctz_32(tls, y) - } - return a_ctz_32(tls, y) - } - return int32(_sdebruijn648[uint64(x&-x)*0x022fdd63cc95386d>>58]) -} - -var _sdebruijn648 = [64]uint8{ - uint8(0), uint8(1), uint8(2), uint8(53), uint8(3), uint8(7), uint8(54), uint8(27), uint8(4), uint8(38), uint8(41), uint8(8), uint8(34), uint8(55), uint8(48), uint8(28), - uint8(62), uint8(5), uint8(39), uint8(46), uint8(44), uint8(42), uint8(22), uint8(9), uint8(24), uint8(35), uint8(59), uint8(56), uint8(49), uint8(18), uint8(29), uint8(11), - uint8(63), uint8(52), uint8(6), uint8(26), uint8(37), uint8(40), uint8(33), uint8(47), uint8(61), uint8(45), uint8(43), uint8(21), uint8(23), uint8(58), uint8(17), uint8(10), - uint8(51), uint8(25), uint8(36), uint8(32), uint8(60), uint8(20), uint8(57), uint8(16), uint8(50), uint8(31), uint8(19), uint8(15), uint8(30), uint8(14), uint8(13), uint8(12), -} /* atomic.h:274:20 */ - type __timer = struct { timerid int32 _ [4]byte @@ -2419,26 +2470,31 @@ type __timer = struct { } /* pthread_impl.h:64:1 */ func __pthread_self(tls *TLS) uintptr { /* pthread_arch.h:1:30: */ - var tp uintptr - panic(`arch/riscv64/pthread_arch.h:4:2: assembler statements not supported`) - return tp - uintptr(uint64(unsafe.Sizeof(__pthread{}))) + var self uintptr + panic(`arch/x86_64/pthread_arch.h:4:2: assembler statements not supported`) + return self } func __wake(tls *TLS, addr uintptr, cnt int32, priv int32) { /* pthread_impl.h:155:20: */ - if priv != 0 { - priv = 128 - } - if cnt < 0 { - cnt = 0x7fffffff - } - _ = Bool32(__syscall3(tls, int64(98), int64(addr), int64(1|priv), int64(cnt)) != int64(-38) || __syscall3(tls, int64(98), int64(addr), int64(1), int64(cnt)) != 0) + panic(todo("")) + // if priv != 0 { + // priv = 128 + // } + // + // if cnt < 0 { + // cnt = 0x7fffffff + // } + // + // _ = Bool32(X__syscall3(tls, int64(202), int64(addr), int64(1|priv), int64(cnt)) != int64(-38) || X__syscall3(tls, int64(202), int64(addr), int64(1), int64(cnt)) != 0) } func __futexwait(tls *TLS, addr uintptr, val int32, priv int32) { /* pthread_impl.h:162:20: */ - if priv != 0 { - priv = 128 - } - _ = Bool32(__syscall4(tls, int64(98), int64(addr), int64(0|priv), int64(val), int64(0)) != int64(-38) || __syscall4(tls, int64(98), int64(addr), int64(0), int64(val), int64(0)) != 0) + panic(todo("")) + // if priv != 0 { + // priv = 128 + // } + // + // _ = Bool32(X__syscall4(tls, int64(202), int64(addr), int64(0|priv), int64(val), int64(0)) != int64(-38) || X__syscall4(tls, int64(202), int64(addr), int64(0), int64(val), int64(0)) != 0) } var X__fsmu8 = [51]uint32_t{ @@ -3431,18 +3487,21 @@ var X__fsmu8 = [51]uint32_t{ }()<<23)>>12 | uint32_t(0x4), } /* internal.c:18:16 */ -type wint_t = uint32 /* alltypes.h:196:18 */ +type wint_t = uint32 /* alltypes.h:198:18 */ -type wctype_t = uint64 /* alltypes.h:201:23 */ +type wctype_t = uint64 /* alltypes.h:203:23 */ type __mbstate_t = struct { __opaque1 uint32 __opaque2 uint32 -} /* alltypes.h:335:9 */ +} /* alltypes.h:337:9 */ -type mbstate_t = __mbstate_t /* alltypes.h:335:63 */ +type mbstate_t = __mbstate_t /* alltypes.h:337:63 */ func Xmbrtowc(tls *TLS, wc uintptr, src uintptr, n size_t, st uintptr) size_t { /* mbrtowc.c:6:8: */ + if __ccgo_strace { + trc("tls=%v wc=%v src=%v n=%v st=%v, (%v:)", tls, wc, src, n, st, origin(2)) + } bp := tls.Alloc(4) defer tls.Free(4) @@ -3566,6 +3625,9 @@ ilseq: var _sinternal_state uint32 /* mbrtowc.c:8:18: */ func Xmbsinit(tls *TLS, st uintptr) int32 { /* mbsinit.c:3:5: */ + if __ccgo_strace { + trc("tls=%v st=%v, (%v:)", tls, st, origin(2)) + } return Bool32(!(st != 0) || !(int32(*(*uint32)(unsafe.Pointer(st))) != 0)) } @@ -3574,9 +3636,9 @@ type imaxdiv_t = struct { rem intmax_t } /* inttypes.h:14:40 */ -type socklen_t = uint32 /* alltypes.h:359:18 */ +type socklen_t = uint32 /* alltypes.h:361:18 */ -type sa_family_t = uint16 /* alltypes.h:364:24 */ +type sa_family_t = uint16 /* alltypes.h:366:24 */ type msghdr = struct { msg_name uintptr @@ -3606,12 +3668,12 @@ type linger = struct { type sockaddr = struct { sa_family sa_family_t - sa_data [14]uint8 + sa_data [14]int8 } /* socket.h:367:1 */ type sockaddr_storage = struct { ss_family sa_family_t - __ss_padding [118]uint8 + __ss_padding [118]int8 __ss_align uint64 } /* socket.h:372:1 */ @@ -3658,7 +3720,7 @@ type ipv6_mreq = struct { type ip_opts = struct { ip_dst struct{ s_addr in_addr_t } - ip_opts [40]uint8 + ip_opts [40]int8 } /* in.h:229:1 */ type ip_mreq = struct { @@ -3691,7 +3753,7 @@ type group_req = struct { _ [4]byte gr_group struct { ss_family sa_family_t - __ss_padding [118]uint8 + __ss_padding [118]int8 __ss_align uint64 } } /* in.h:275:1 */ @@ -3701,12 +3763,12 @@ type group_source_req = struct { _ [4]byte gsr_group struct { ss_family sa_family_t - __ss_padding [118]uint8 + __ss_padding [118]int8 __ss_align uint64 } gsr_source struct { ss_family sa_family_t - __ss_padding [118]uint8 + __ss_padding [118]int8 __ss_align uint64 } } /* in.h:280:1 */ @@ -3716,14 +3778,14 @@ type group_filter = struct { _ [4]byte gf_group struct { ss_family sa_family_t - __ss_padding [118]uint8 + __ss_padding [118]int8 __ss_align uint64 } gf_fmode uint32_t gf_numsrc uint32_t gf_slist [1]struct { ss_family sa_family_t - __ss_padding [118]uint8 + __ss_padding [118]int8 __ss_align uint64 } } /* in.h:286:1 */ @@ -3868,6 +3930,9 @@ type resolvconf = struct { } /* lookup.h:34:1 */ func Xfreeaddrinfo(tls *TLS, p uintptr) { /* freeaddrinfo.c:7:6: */ + if __ccgo_strace { + trc("tls=%v p=%v, (%v:)", tls, p, origin(2)) + } var cnt size_t cnt = uint64(1) __1: @@ -3892,6 +3957,9 @@ __3: } func Xgetaddrinfo(tls *TLS, host uintptr, serv uintptr, hint uintptr, res uintptr) int32 { /* getaddrinfo.c:12:5: */ + if __ccgo_strace { + trc("tls=%v host=%v serv=%v hint=%v res=%v, (%v:)", tls, host, serv, hint, res, origin(2)) + } bp := tls.Alloc(1608) defer tls.Free(1608) @@ -3899,7 +3967,7 @@ func Xgetaddrinfo(tls *TLS, host uintptr, serv uintptr, hint uintptr, res uintpt // var addrs [48]address at bp+8, 1344 - // var canon [256]uint8 at bp+1352, 256 + // var canon [256]int8 at bp+1352, 256 var outcanon uintptr var nservs int32 @@ -4096,6 +4164,9 @@ type mmsghdr = struct { } /* socket.h:63:1 */ func Xgethostbyaddr(tls *TLS, a uintptr, l socklen_t, af int32) uintptr { /* gethostbyaddr.c:7:16: */ + if __ccgo_strace { + trc("tls=%v a=%v l=%v af=%v, (%v:)", tls, a, l, af, origin(2)) + } bp := tls.Alloc(8) defer tls.Free(8) @@ -4122,6 +4193,9 @@ func Xgethostbyaddr(tls *TLS, a uintptr, l socklen_t, af int32) uintptr { /* get var _sh uintptr /* gethostbyaddr.c:9:24: */ func Xgethostbyaddr_r(tls *TLS, a uintptr, l socklen_t, af int32, h uintptr, buf uintptr, buflen size_t, res uintptr, err uintptr) int32 { /* gethostbyaddr_r.c:10:5: */ + if __ccgo_strace { + trc("tls=%v a=%v l=%v af=%v h=%v buf=%v buflen=%v res=%v err=%v, (%v:)", tls, a, l, af, h, buf, buflen, res, err, origin(2)) + } bp := tls.Alloc(28) defer tls.Free(28) @@ -4207,10 +4281,16 @@ func Xgethostbyaddr_r(tls *TLS, a uintptr, l socklen_t, af int32, h uintptr, buf } func Xgethostbyname(tls *TLS, name uintptr) uintptr { /* gethostbyname.c:8:16: */ + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + } return Xgethostbyname2(tls, name, 2) } func Xgethostbyname2(tls *TLS, name uintptr, af int32) uintptr { /* gethostbyname2.c:8:16: */ + if __ccgo_strace { + trc("tls=%v name=%v af=%v, (%v:)", tls, name, af, origin(2)) + } bp := tls.Alloc(8) defer tls.Free(8) @@ -4237,12 +4317,15 @@ func Xgethostbyname2(tls *TLS, name uintptr, af int32) uintptr { /* gethostbynam var _sh1 uintptr /* gethostbyname2.c:10:24: */ func Xgethostbyname2_r(tls *TLS, name uintptr, af int32, h uintptr, buf uintptr, buflen size_t, res uintptr, err uintptr) int32 { /* gethostbyname2_r.c:11:5: */ + if __ccgo_strace { + trc("tls=%v name=%v af=%v h=%v buf=%v buflen=%v res=%v err=%v, (%v:)", tls, name, af, h, buf, buflen, res, err, origin(2)) + } bp := tls.Alloc(1600) defer tls.Free(1600) // var addrs [48]address at bp, 1344 - // var canon [256]uint8 at bp+1344, 256 + // var canon [256]int8 at bp+1344, 256 var i int32 var cnt int32 @@ -4328,6 +4411,9 @@ func Xgethostbyname2_r(tls *TLS, name uintptr, af int32, h uintptr, buf uintptr, } func Xgethostbyname_r(tls *TLS, name uintptr, h uintptr, buf uintptr, buflen size_t, res uintptr, err uintptr) int32 { /* gethostbyname_r.c:6:5: */ + if __ccgo_strace { + trc("tls=%v name=%v h=%v buf=%v buflen=%v res=%v err=%v, (%v:)", tls, name, h, buf, buflen, res, err, origin(2)) + } return Xgethostbyname2_r(tls, name, 2, h, buf, buflen, res, err) } @@ -4340,12 +4426,12 @@ type if_nameindex = struct { type ifaddr = struct { ifa_addr struct { sa_family sa_family_t - sa_data [14]uint8 + sa_data [14]int8 } ifa_ifu struct { ifu_broadaddr struct { sa_family sa_family_t - sa_data [14]uint8 + sa_data [14]int8 } } ifa_ifp uintptr @@ -4363,12 +4449,12 @@ type ifmap = struct { } /* if.h:64:1 */ type ifreq = struct { - ifr_ifrn struct{ ifrn_name [16]uint8 } + ifr_ifrn struct{ ifrn_name [16]int8 } ifr_ifru struct { _ [0]uint64 ifru_addr struct { sa_family sa_family_t - sa_data [14]uint8 + sa_data [14]int8 } _ [8]byte } @@ -4403,7 +4489,7 @@ type _ns_flagdata = struct { } /* nameser.h:48:1 */ type __ns_rr = struct { - name [1025]uint8 + name [1025]int8 _ [1]byte __type uint16_t rr_class uint16_t @@ -4425,8 +4511,8 @@ type ns_rcode = uint32 /* nameser.h:115:3 */ type ns_update_operation = uint32 /* nameser.h:121:3 */ type ns_tsig_key1 = struct { - name [1025]uint8 - alg [1025]uint8 + name [1025]int8 + alg [1025]int8 _ [6]byte data uintptr len int32 @@ -4477,7 +4563,7 @@ type __res_state = struct { id uint16 _ [2]byte dnsrch [7]uintptr - defdname [256]uint8 + defdname [256]int8 pfcode uint64 ndots uint32 /* unsigned ndots: 4, unsigned nsort: 4, unsigned ipv6_unavail: 1, unsigned unused: 23 */ _ [4]byte @@ -4493,7 +4579,7 @@ type __res_state = struct { _ [4]byte _u struct { _ [0]uint64 - pad [52]uint8 + pad [52]int8 _ [4]byte } } /* resolv.h:26:9 */ @@ -4510,9 +4596,9 @@ type res_sym = struct { func itoa(tls *TLS, p uintptr, x uint32) uintptr { /* getnameinfo.c:18:13: */ p += uintptr(uint64(3) * uint64(unsafe.Sizeof(int32(0)))) - *(*uint8)(unsafe.Pointer(PreDecUintptr(&p, 1))) = uint8(0) + *(*int8)(unsafe.Pointer(PreDecUintptr(&p, 1))) = int8(0) for __ccgo := true; __ccgo; __ccgo = x != 0 { - *(*uint8)(unsafe.Pointer(PreDecUintptr(&p, 1))) = uint8(uint32('0') + x%uint32(10)) + *(*int8)(unsafe.Pointer(PreDecUintptr(&p, 1))) = int8(uint32('0') + x%uint32(10)) x = x / uint32(10) } return p @@ -4529,21 +4615,21 @@ func mkptr4(tls *TLS, s uintptr, ip uintptr) { /* getnameinfo.c:28:13: */ func mkptr6(tls *TLS, s uintptr, ip uintptr) { /* getnameinfo.c:34:13: */ var i int32 for i = 15; i >= 0; i-- { - *(*uint8)(unsafe.Pointer(PostIncUintptr(&s, 1))) = _sxdigits[int32(*(*uint8)(unsafe.Pointer(ip + uintptr(i))))&15] - *(*uint8)(unsafe.Pointer(PostIncUintptr(&s, 1))) = uint8('.') - *(*uint8)(unsafe.Pointer(PostIncUintptr(&s, 1))) = _sxdigits[int32(*(*uint8)(unsafe.Pointer(ip + uintptr(i))))>>4] - *(*uint8)(unsafe.Pointer(PostIncUintptr(&s, 1))) = uint8('.') + *(*int8)(unsafe.Pointer(PostIncUintptr(&s, 1))) = _sxdigits[int32(*(*uint8)(unsafe.Pointer(ip + uintptr(i))))&15] + *(*int8)(unsafe.Pointer(PostIncUintptr(&s, 1))) = int8('.') + *(*int8)(unsafe.Pointer(PostIncUintptr(&s, 1))) = _sxdigits[int32(*(*uint8)(unsafe.Pointer(ip + uintptr(i))))>>4] + *(*int8)(unsafe.Pointer(PostIncUintptr(&s, 1))) = int8('.') } Xstrcpy(tls, s, ts+50) } -var _sxdigits = *(*[17]uint8)(unsafe.Pointer(ts + 59)) /* getnameinfo.c:36:20 */ +var _sxdigits = *(*[17]int8)(unsafe.Pointer(ts + 59)) /* getnameinfo.c:36:20 */ func reverse_hosts(tls *TLS, buf uintptr, a uintptr, scopeid uint32, family int32) { /* getnameinfo.c:45:13: */ bp := tls.Alloc(556) defer tls.Free(556) - // var line [512]uint8 at bp+16, 512 + // var line [512]int8 at bp+16, 512 var p uintptr var z uintptr @@ -4563,15 +4649,15 @@ func reverse_hosts(tls *TLS, buf uintptr, a uintptr, scopeid uint32, family int3 Xmemcpy(tls, bp, ts+90, uint64(12)) a = bp /* &atmp[0] */ } - for Xfgets(tls, bp+16, int32(unsafe.Sizeof([512]uint8{})), f) != 0 { + for Xfgets(tls, bp+16, int32(unsafe.Sizeof([512]int8{})), f) != 0 { if AssignUintptr(&p, Xstrchr(tls, bp+16, '#')) != 0 { - *(*uint8)(unsafe.Pointer(PostIncUintptr(&p, 1))) = uint8('\n') - *(*uint8)(unsafe.Pointer(p)) = uint8(0) + *(*int8)(unsafe.Pointer(PostIncUintptr(&p, 1))) = int8('\n') + *(*int8)(unsafe.Pointer(p)) = int8(0) } - for p = bp + 16; /* &line[0] */ *(*uint8)(unsafe.Pointer(p)) != 0 && !(__isspace(tls, int32(*(*uint8)(unsafe.Pointer(p)))) != 0); p++ { + for p = bp + 16; /* &line[0] */ *(*int8)(unsafe.Pointer(p)) != 0 && !(__isspace(tls, int32(*(*int8)(unsafe.Pointer(p)))) != 0); p++ { } - *(*uint8)(unsafe.Pointer(PostIncUintptr(&p, 1))) = uint8(0) + *(*int8)(unsafe.Pointer(PostIncUintptr(&p, 1))) = int8(0) if X__lookup_ipliteral(tls, bp+528, bp+16, 0) <= 0 { continue } @@ -4586,11 +4672,11 @@ func reverse_hosts(tls *TLS, buf uintptr, a uintptr, scopeid uint32, family int3 continue } - for ; *(*uint8)(unsafe.Pointer(p)) != 0 && __isspace(tls, int32(*(*uint8)(unsafe.Pointer(p)))) != 0; p++ { + for ; *(*int8)(unsafe.Pointer(p)) != 0 && __isspace(tls, int32(*(*int8)(unsafe.Pointer(p)))) != 0; p++ { } - for z = p; *(*uint8)(unsafe.Pointer(z)) != 0 && !(__isspace(tls, int32(*(*uint8)(unsafe.Pointer(z)))) != 0); z++ { + for z = p; *(*int8)(unsafe.Pointer(z)) != 0 && !(__isspace(tls, int32(*(*int8)(unsafe.Pointer(z)))) != 0); z++ { } - *(*uint8)(unsafe.Pointer(z)) = uint8(0) + *(*int8)(unsafe.Pointer(z)) = int8(0) if (int64(z)-int64(p))/1 < int64(256) { Xmemcpy(tls, buf, p, uint64((int64(z)-int64(p))/1+int64(1))) break @@ -4627,14 +4713,17 @@ func reverse_services(tls *TLS, buf uintptr, port int32, dgram int32) { /* getna } func Xgetnameinfo(tls *TLS, sa1 uintptr, sl socklen_t, node uintptr, nodelen socklen_t, serv uintptr, servlen socklen_t, flags int32) int32 { /* getnameinfo.c:125:5: */ + if __ccgo_strace { + trc("tls=%v sa1=%v sl=%v node=%v nodelen=%v serv=%v servlen=%v flags=%v, (%v:)", tls, sa1, sl, node, nodelen, serv, servlen, flags, origin(2)) + } bp := tls.Alloc(347) defer tls.Free(347) - // var ptr [78]uint8 at bp, 78 + // var ptr [78]int8 at bp, 78 - // var buf [256]uint8 at bp+78, 256 + // var buf [256]int8 at bp+78, 256 - // var num [13]uint8 at bp+334, 13 + // var num [13]int8 at bp+334, 13 var af int32 = int32((*sockaddr)(unsafe.Pointer(sa1)).sa_family) var a uintptr @@ -4666,11 +4755,11 @@ func Xgetnameinfo(tls *TLS, sa1 uintptr, sl socklen_t, node uintptr, nodelen soc } if node != 0 && nodelen != 0 { - *(*uint8)(unsafe.Pointer(bp + 78)) = uint8(0) + *(*int8)(unsafe.Pointer(bp + 78)) = int8(0) if !(flags&0x01 != 0) { reverse_hosts(tls, bp+78, a, scopeid, af) } - if !(int32(*(*uint8)(unsafe.Pointer(bp + 78))) != 0) && !(flags&0x01 != 0) { + if !(int32(*(*int8)(unsafe.Pointer(bp + 78))) != 0) && !(flags&0x01 != 0) { Xabort(tls) //TODO- // unsigned char query[18+PTR_MAX], reply[512]; // int qlen = __res_mkquery(0, ptr, 1, RR_PTR, @@ -4681,11 +4770,11 @@ func Xgetnameinfo(tls *TLS, sa1 uintptr, sl socklen_t, node uintptr, nodelen soc // if (rlen > 0) // __dns_parse(reply, rlen, dns_parse_callback, buf); } - if !(int32(*(*uint8)(unsafe.Pointer(bp + 78))) != 0) { + if !(int32(*(*int8)(unsafe.Pointer(bp + 78))) != 0) { if flags&0x08 != 0 { return -2 } - Xinet_ntop(tls, af, a, bp+78, uint32(unsafe.Sizeof([256]uint8{}))) + Xinet_ntop(tls, af, a, bp+78, uint32(unsafe.Sizeof([256]int8{}))) if scopeid != 0 { Xabort(tls) //TODO- // char *p = 0, tmp[IF_NAMESIZE+1]; @@ -4708,11 +4797,11 @@ func Xgetnameinfo(tls *TLS, sa1 uintptr, sl socklen_t, node uintptr, nodelen soc if serv != 0 && servlen != 0 { var p uintptr = bp + 78 /* buf */ var port int32 = int32(Xntohs(tls, (*sockaddr_in)(unsafe.Pointer(sa1)).sin_port)) - *(*uint8)(unsafe.Pointer(bp + 78)) = uint8(0) + *(*int8)(unsafe.Pointer(bp + 78)) = int8(0) if !(flags&0x02 != 0) { reverse_services(tls, bp+78, port, flags&0x10) } - if !(int32(*(*uint8)(unsafe.Pointer(p))) != 0) { + if !(int32(*(*int8)(unsafe.Pointer(p))) != 0) { p = itoa(tls, bp+334, uint32(port)) } if Xstrlen(tls, p) >= size_t(servlen) { @@ -4727,10 +4816,16 @@ func Xgetnameinfo(tls *TLS, sa1 uintptr, sl socklen_t, node uintptr, nodelen soc var Xh_errno int32 /* h_errno.c:4:5: */ func X__h_errno_location(tls *TLS) uintptr { /* h_errno.c:6:5: */ + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } return uintptr(unsafe.Pointer(&Xh_errno)) } func X__inet_aton(tls *TLS, s0 uintptr, dest uintptr) int32 { /* inet_aton.c:7:5: */ + if __ccgo_strace { + trc("tls=%v s0=%v dest=%v, (%v:)", tls, s0, dest, origin(2)) + } bp := tls.Alloc(40) defer tls.Free(40) @@ -4743,15 +4838,15 @@ func X__inet_aton(tls *TLS, s0 uintptr, dest uintptr) int32 { /* inet_aton.c:7:5 for i = 0; i < 4; i++ { *(*uint64)(unsafe.Pointer(bp + uintptr(i)*8)) = Xstrtoul(tls, s, bp+32, 0) - if *(*uintptr)(unsafe.Pointer(bp + 32)) == s || *(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 32)))) != 0 && int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 32))))) != '.' || !(func() int32 { + if *(*uintptr)(unsafe.Pointer(bp + 32)) == s || *(*int8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 32)))) != 0 && int32(*(*int8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 32))))) != '.' || !(func() int32 { if 0 != 0 { - return Xisdigit(tls, int32(*(*uint8)(unsafe.Pointer(s)))) + return Xisdigit(tls, int32(*(*int8)(unsafe.Pointer(s)))) } - return Bool32(uint32(*(*uint8)(unsafe.Pointer(s)))-uint32('0') < uint32(10)) + return Bool32(uint32(*(*int8)(unsafe.Pointer(s)))-uint32('0') < uint32(10)) }() != 0) { return 0 } - if !(int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 32))))) != 0) { + if !(int32(*(*int8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 32))))) != 0) { break } s = *(*uintptr)(unsafe.Pointer(bp + 32)) + uintptr(1) @@ -4782,6 +4877,9 @@ func X__inet_aton(tls *TLS, s0 uintptr, dest uintptr) int32 { /* inet_aton.c:7:5 } func Xinet_ntop(tls *TLS, af int32, a0 uintptr, s uintptr, l socklen_t) uintptr { /* inet_ntop.c:7:12: */ + if __ccgo_strace { + trc("tls=%v af=%v a0=%v s=%v l=%v, (%v:)", tls, af, a0, s, l, origin(2)) + } bp := tls.Alloc(276) defer tls.Free(276) @@ -4790,7 +4888,7 @@ func Xinet_ntop(tls *TLS, af int32, a0 uintptr, s uintptr, l socklen_t) uintptr var j int32 var max int32 var best int32 - // var buf [100]uint8 at bp+176, 100 + // var buf [100]int8 at bp+176, 100 switch af { case 2: @@ -4800,14 +4898,14 @@ func Xinet_ntop(tls *TLS, af int32, a0 uintptr, s uintptr, l socklen_t) uintptr break case 10: if Xmemcmp(tls, a, ts+90, uint64(12)) != 0 { - Xsnprintf(tls, bp+176, uint64(unsafe.Sizeof([100]uint8{})), + Xsnprintf(tls, bp+176, uint64(unsafe.Sizeof([100]int8{})), ts+115, VaList(bp+32, 256*int32(*(*uint8)(unsafe.Pointer(a)))+int32(*(*uint8)(unsafe.Pointer(a + 1))), 256*int32(*(*uint8)(unsafe.Pointer(a + 2)))+int32(*(*uint8)(unsafe.Pointer(a + 3))), 256*int32(*(*uint8)(unsafe.Pointer(a + 4)))+int32(*(*uint8)(unsafe.Pointer(a + 5))), 256*int32(*(*uint8)(unsafe.Pointer(a + 6)))+int32(*(*uint8)(unsafe.Pointer(a + 7))), 256*int32(*(*uint8)(unsafe.Pointer(a + 8)))+int32(*(*uint8)(unsafe.Pointer(a + 9))), 256*int32(*(*uint8)(unsafe.Pointer(a + 10)))+int32(*(*uint8)(unsafe.Pointer(a + 11))), 256*int32(*(*uint8)(unsafe.Pointer(a + 12)))+int32(*(*uint8)(unsafe.Pointer(a + 13))), 256*int32(*(*uint8)(unsafe.Pointer(a + 14)))+int32(*(*uint8)(unsafe.Pointer(a + 15))))) } else { - Xsnprintf(tls, bp+176, uint64(unsafe.Sizeof([100]uint8{})), + Xsnprintf(tls, bp+176, uint64(unsafe.Sizeof([100]int8{})), ts+139, VaList(bp+96, 256*int32(*(*uint8)(unsafe.Pointer(a)))+int32(*(*uint8)(unsafe.Pointer(a + 1))), 256*int32(*(*uint8)(unsafe.Pointer(a + 2)))+int32(*(*uint8)(unsafe.Pointer(a + 3))), 256*int32(*(*uint8)(unsafe.Pointer(a + 4)))+int32(*(*uint8)(unsafe.Pointer(a + 5))), 256*int32(*(*uint8)(unsafe.Pointer(a + 6)))+int32(*(*uint8)(unsafe.Pointer(a + 7))), @@ -4817,8 +4915,8 @@ func Xinet_ntop(tls *TLS, af int32, a0 uintptr, s uintptr, l socklen_t) uintptr // Replace longest /(^0|:)[:0]{2,}/ with "::" i = AssignInt32(&best, 0) max = 2 - for ; *(*uint8)(unsafe.Pointer(bp + 176 + uintptr(i))) != 0; i++ { - if i != 0 && int32(*(*uint8)(unsafe.Pointer(bp + 176 + uintptr(i)))) != ':' { + for ; *(*int8)(unsafe.Pointer(bp + 176 + uintptr(i))) != 0; i++ { + if i != 0 && int32(*(*int8)(unsafe.Pointer(bp + 176 + uintptr(i)))) != ':' { continue } j = int32(Xstrspn(tls, bp+176+uintptr(i), ts+169)) @@ -4828,7 +4926,7 @@ func Xinet_ntop(tls *TLS, af int32, a0 uintptr, s uintptr, l socklen_t) uintptr } } if max > 3 { - *(*uint8)(unsafe.Pointer(bp + 176 + uintptr(best))) = AssignPtrUint8(bp+176+uintptr(best+1), uint8(':')) + *(*int8)(unsafe.Pointer(bp + 176 + uintptr(best))) = AssignPtrInt8(bp+176+uintptr(best+1), int8(':')) Xmemmove(tls, bp+176+uintptr(best)+uintptr(2), bp+176+uintptr(best)+uintptr(max), uint64(i-best-max+1)) } if Xstrlen(tls, bp+176) < size_t(l) { @@ -4856,6 +4954,9 @@ func hexval(tls *TLS, c uint32) int32 { /* inet_pton.c:7:12: */ } func Xinet_pton(tls *TLS, af int32, s uintptr, a0 uintptr) int32 { /* inet_pton.c:15:5: */ + if __ccgo_strace { + trc("tls=%v af=%v s=%v a0=%v, (%v:)", tls, af, s, a0, origin(2)) + } bp := tls.Alloc(16) defer tls.Free(16) @@ -4873,20 +4974,20 @@ func Xinet_pton(tls *TLS, af int32, s uintptr, a0 uintptr) int32 { /* inet_pton. for i = 0; i < 4; i++ { for v = AssignInt32(&j, 0); j < 3 && func() int32 { if 0 != 0 { - return Xisdigit(tls, int32(*(*uint8)(unsafe.Pointer(s + uintptr(j))))) + return Xisdigit(tls, int32(*(*int8)(unsafe.Pointer(s + uintptr(j))))) } - return Bool32(uint32(*(*uint8)(unsafe.Pointer(s + uintptr(j))))-uint32('0') < uint32(10)) + return Bool32(uint32(*(*int8)(unsafe.Pointer(s + uintptr(j))))-uint32('0') < uint32(10)) }() != 0; j++ { - v = 10*v + int32(*(*uint8)(unsafe.Pointer(s + uintptr(j)))) - '0' + v = 10*v + int32(*(*int8)(unsafe.Pointer(s + uintptr(j)))) - '0' } - if j == 0 || j > 1 && int32(*(*uint8)(unsafe.Pointer(s))) == '0' || v > 255 { + if j == 0 || j > 1 && int32(*(*int8)(unsafe.Pointer(s))) == '0' || v > 255 { return 0 } *(*uint8)(unsafe.Pointer(a + uintptr(i))) = uint8(v) - if int32(*(*uint8)(unsafe.Pointer(s + uintptr(j)))) == 0 && i == 3 { + if int32(*(*int8)(unsafe.Pointer(s + uintptr(j)))) == 0 && i == 3 { return 1 } - if int32(*(*uint8)(unsafe.Pointer(s + uintptr(j)))) != '.' { + if int32(*(*int8)(unsafe.Pointer(s + uintptr(j)))) != '.' { return 0 } s += uintptr(j + 1) @@ -4897,15 +4998,15 @@ func Xinet_pton(tls *TLS, af int32, s uintptr, a0 uintptr) int32 { /* inet_pton. return -1 } - if int32(*(*uint8)(unsafe.Pointer(s))) == ':' && int32(*(*uint8)(unsafe.Pointer(PreIncUintptr(&s, 1)))) != ':' { + if int32(*(*int8)(unsafe.Pointer(s))) == ':' && int32(*(*int8)(unsafe.Pointer(PreIncUintptr(&s, 1)))) != ':' { return 0 } for i = 0; ; i++ { - if int32(*(*uint8)(unsafe.Pointer(s))) == ':' && brk < 0 { + if int32(*(*int8)(unsafe.Pointer(s))) == ':' && brk < 0 { brk = i *(*uint16_t)(unsafe.Pointer(bp + uintptr(i&7)*2)) = uint16_t(0) - if !(int32(*(*uint8)(unsafe.Pointer(PreIncUintptr(&s, 1)))) != 0) { + if !(int32(*(*int8)(unsafe.Pointer(PreIncUintptr(&s, 1)))) != 0) { break } if i == 7 { @@ -4913,21 +5014,21 @@ func Xinet_pton(tls *TLS, af int32, s uintptr, a0 uintptr) int32 { /* inet_pton. } continue } - for v = AssignInt32(&j, 0); j < 4 && AssignInt32(&d, hexval(tls, uint32(*(*uint8)(unsafe.Pointer(s + uintptr(j)))))) >= 0; j++ { + for v = AssignInt32(&j, 0); j < 4 && AssignInt32(&d, hexval(tls, uint32(*(*int8)(unsafe.Pointer(s + uintptr(j)))))) >= 0; j++ { v = 16*v + d } if j == 0 { return 0 } *(*uint16_t)(unsafe.Pointer(bp + uintptr(i&7)*2)) = uint16_t(v) - if !(int32(*(*uint8)(unsafe.Pointer(s + uintptr(j)))) != 0) && (brk >= 0 || i == 7) { + if !(int32(*(*int8)(unsafe.Pointer(s + uintptr(j)))) != 0) && (brk >= 0 || i == 7) { break } if i == 7 { return 0 } - if int32(*(*uint8)(unsafe.Pointer(s + uintptr(j)))) != ':' { - if int32(*(*uint8)(unsafe.Pointer(s + uintptr(j)))) != '.' || i < 6 && brk < 0 { + if int32(*(*int8)(unsafe.Pointer(s + uintptr(j)))) != ':' { + if int32(*(*int8)(unsafe.Pointer(s + uintptr(j)))) != '.' || i < 6 && brk < 0 { return 0 } need_v4 = 1 @@ -4953,6 +5054,9 @@ func Xinet_pton(tls *TLS, af int32, s uintptr, a0 uintptr) int32 { /* inet_pton. } func X__lookup_ipliteral(tls *TLS, buf uintptr, name uintptr, family int32) int32 { /* lookup_ipliteral.c:12:5: */ + if __ccgo_strace { + trc("tls=%v buf=%v name=%v family=%v, (%v:)", tls, buf, name, family, origin(2)) + } bp := tls.Alloc(96) defer tls.Free(96) @@ -4969,7 +5073,7 @@ func X__lookup_ipliteral(tls *TLS, buf uintptr, name uintptr, family int32) int3 (*address)(unsafe.Pointer(buf)).scopeid = uint32(0) return 1 } - // var tmp [64]uint8 at bp+4, 64 + // var tmp [64]int8 at bp+4, 64 var p uintptr = Xstrchr(tls, name, '%') // var z uintptr at bp+88, 8 @@ -4977,7 +5081,7 @@ func X__lookup_ipliteral(tls *TLS, buf uintptr, name uintptr, family int32) int3 var scopeid uint64 = uint64(0) if p != 0 && (int64(p)-int64(name))/1 < int64(64) { Xmemcpy(tls, bp+4, name, uint64((int64(p)-int64(name))/1)) - *(*uint8)(unsafe.Pointer(bp + 4 + uintptr((int64(p)-int64(name))/1))) = uint8(0) + *(*int8)(unsafe.Pointer(bp + 4 + uintptr((int64(p)-int64(name))/1))) = int8(0) name = bp + 4 /* &tmp[0] */ } @@ -4993,15 +5097,15 @@ func X__lookup_ipliteral(tls *TLS, buf uintptr, name uintptr, family int32) int3 if p != 0 { if func() int32 { if 0 != 0 { - return Xisdigit(tls, int32(*(*uint8)(unsafe.Pointer(PreIncUintptr(&p, 1))))) + return Xisdigit(tls, int32(*(*int8)(unsafe.Pointer(PreIncUintptr(&p, 1))))) } - return Bool32(uint32(*(*uint8)(unsafe.Pointer(PreIncUintptr(&p, 1))))-uint32('0') < uint32(10)) + return Bool32(uint32(*(*int8)(unsafe.Pointer(PreIncUintptr(&p, 1))))-uint32('0') < uint32(10)) }() != 0 { scopeid = Xstrtoull(tls, p, bp+88, 10) } else { *(*uintptr)(unsafe.Pointer(bp + 88 /* z */)) = p - uintptr(1) } - if *(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 88)))) != 0 { + if *(*int8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 88)))) != 0 { Xabort(tls) //TODO- // if (!IN6_IS_ADDR_LINKLOCAL(&a6) && // !IN6_IS_ADDR_MC_LINKLOCAL(&a6)) @@ -5068,7 +5172,7 @@ func name_from_hosts(tls *TLS, buf uintptr, canon uintptr, name uintptr, family bp := tls.Alloc(512) defer tls.Free(512) - // var line [512]uint8 at bp, 512 + // var line [512]int8 at bp, 512 var l size_t = Xstrlen(tls, name) var cnt int32 = 0 @@ -5092,24 +5196,24 @@ func name_from_hosts(tls *TLS, buf uintptr, canon uintptr, name uintptr, family return -11 } } - for Xfgets(tls, bp, int32(unsafe.Sizeof([512]uint8{})), f) != 0 && cnt < 48 { + for Xfgets(tls, bp, int32(unsafe.Sizeof([512]int8{})), f) != 0 && cnt < 48 { var p uintptr var z uintptr if AssignUintptr(&p, Xstrchr(tls, bp, '#')) != 0 { - *(*uint8)(unsafe.Pointer(PostIncUintptr(&p, 1))) = uint8('\n') - *(*uint8)(unsafe.Pointer(p)) = uint8(0) + *(*int8)(unsafe.Pointer(PostIncUintptr(&p, 1))) = int8('\n') + *(*int8)(unsafe.Pointer(p)) = int8(0) } - for p = bp + uintptr(1); AssignUintptr(&p, Xstrstr(tls, p, name)) != 0 && (!(__isspace(tls, int32(*(*uint8)(unsafe.Pointer(p + UintptrFromInt32(-1))))) != 0) || !(__isspace(tls, int32(*(*uint8)(unsafe.Pointer(p + uintptr(l))))) != 0)); p++ { + for p = bp + uintptr(1); AssignUintptr(&p, Xstrstr(tls, p, name)) != 0 && (!(__isspace(tls, int32(*(*int8)(unsafe.Pointer(p + UintptrFromInt32(-1))))) != 0) || !(__isspace(tls, int32(*(*int8)(unsafe.Pointer(p + uintptr(l))))) != 0)); p++ { } if !(p != 0) { continue } // Isolate IP address to parse - for p = bp; /* &line[0] */ *(*uint8)(unsafe.Pointer(p)) != 0 && !(__isspace(tls, int32(*(*uint8)(unsafe.Pointer(p)))) != 0); p++ { + for p = bp; /* &line[0] */ *(*int8)(unsafe.Pointer(p)) != 0 && !(__isspace(tls, int32(*(*int8)(unsafe.Pointer(p)))) != 0); p++ { } - *(*uint8)(unsafe.Pointer(PostIncUintptr(&p, 1))) = uint8(0) + *(*int8)(unsafe.Pointer(PostIncUintptr(&p, 1))) = int8(0) switch name_from_numeric(tls, buf+uintptr(cnt)*28, bp, family) { case 1: cnt++ @@ -5122,11 +5226,11 @@ func name_from_hosts(tls *TLS, buf uintptr, canon uintptr, name uintptr, family } // Extract first name as canonical name - for ; *(*uint8)(unsafe.Pointer(p)) != 0 && __isspace(tls, int32(*(*uint8)(unsafe.Pointer(p)))) != 0; p++ { + for ; *(*int8)(unsafe.Pointer(p)) != 0 && __isspace(tls, int32(*(*int8)(unsafe.Pointer(p)))) != 0; p++ { } - for z = p; *(*uint8)(unsafe.Pointer(z)) != 0 && !(__isspace(tls, int32(*(*uint8)(unsafe.Pointer(z)))) != 0); z++ { + for z = p; *(*int8)(unsafe.Pointer(z)) != 0 && !(__isspace(tls, int32(*(*int8)(unsafe.Pointer(z)))) != 0); z++ { } - *(*uint8)(unsafe.Pointer(z)) = uint8(0) + *(*int8)(unsafe.Pointer(z)) = int8(0) if is_valid_hostname(tls, p) != 0 { Xmemcpy(tls, canon, p, uint64((int64(z)-int64(p))/1+int64(1))) } @@ -5263,6 +5367,9 @@ func addrcmp(tls *TLS, _a uintptr, _b uintptr) int32 { /* lookup_name.c:305:12: } func X__lookup_name(tls *TLS, buf uintptr, canon uintptr, name uintptr, family int32, flags int32) int32 { /* lookup_name.c:311:5: */ + if __ccgo_strace { + trc("tls=%v buf=%v canon=%v name=%v family=%v flags=%v, (%v:)", tls, buf, canon, name, family, flags, origin(2)) + } bp := tls.Alloc(92) defer tls.Free(92) @@ -5271,7 +5378,7 @@ func X__lookup_name(tls *TLS, buf uintptr, canon uintptr, name uintptr, family i var j int32 _ = j - *(*uint8)(unsafe.Pointer(canon)) = uint8(0) + *(*int8)(unsafe.Pointer(canon)) = int8(0) if name != 0 { // reject empty name and check len so it fits into temp bufs var l size_t = Xstrnlen(tls, name, uint64(255)) @@ -5429,10 +5536,13 @@ func X__lookup_name(tls *TLS, buf uintptr, canon uintptr, name uintptr, family i } func X__lookup_serv(tls *TLS, buf uintptr, name uintptr, proto int32, socktype int32, flags int32) int32 { /* lookup_serv.c:12:5: */ + if __ccgo_strace { + trc("tls=%v buf=%v name=%v proto=%v socktype=%v flags=%v, (%v:)", tls, buf, name, proto, socktype, flags, origin(2)) + } bp := tls.Alloc(8) defer tls.Free(8) - var line [128]uint8 + var line [128]int8 _ = line var cnt int32 = 0 var p uintptr @@ -5476,12 +5586,12 @@ func X__lookup_serv(tls *TLS, buf uintptr, name uintptr, proto int32, socktype i } if name != 0 { - if !(int32(*(*uint8)(unsafe.Pointer(name))) != 0) { + if !(int32(*(*int8)(unsafe.Pointer(name))) != 0) { return -8 } port = Xstrtoul(tls, name, bp, 10) } - if !(int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp))))) != 0) { + if !(int32(*(*int8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp))))) != 0) { if port > uint64(65535) { return -8 } @@ -5562,10 +5672,16 @@ func temper(tls *TLS, x uint32) uint32 { /* rand_r.c:3:17: */ } func Xrand_r(tls *TLS, seed uintptr) int32 { /* rand_r.c:12:5: */ + if __ccgo_strace { + trc("tls=%v seed=%v, (%v:)", tls, seed, origin(2)) + } return int32(temper(tls, AssignPtrUint32(seed, *(*uint32)(unsafe.Pointer(seed))*uint32(1103515245)+uint32(12345))) / uint32(2)) } func X__lockfile(tls *TLS, f uintptr) int32 { /* __lockfile.c:4:5: */ + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } var owner int32 = (*FILE)(unsafe.Pointer(f)).lock var tid int32 = (*__pthread)(unsafe.Pointer(__pthread_self(tls))).tid if owner&CplInt32(0x40000000) == tid { @@ -5584,12 +5700,18 @@ func X__lockfile(tls *TLS, f uintptr) int32 { /* __lockfile.c:4:5: */ } func X__unlockfile(tls *TLS, f uintptr) { /* __lockfile.c:19:6: */ + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } if a_swap(tls, f+140, 0)&0x40000000 != 0 { __wake(tls, f+140, 1, 1) } } func X__toread(tls *TLS, f uintptr) int32 { /* __toread.c:3:5: */ + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } *(*int32)(unsafe.Pointer(f + 136)) |= (*FILE)(unsafe.Pointer(f)).mode - 1 if (*FILE)(unsafe.Pointer(f)).wpos != (*FILE)(unsafe.Pointer(f)).wbase { (*struct { @@ -5609,6 +5731,9 @@ func X__toread(tls *TLS, f uintptr) int32 { /* __toread.c:3:5: */ } func X__toread_needs_stdio_exit(tls *TLS) { /* __toread.c:16:13: */ + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } X__builtin_abort(tls) //TODO- // __stdio_exit_needed(); } @@ -5617,6 +5742,9 @@ func X__toread_needs_stdio_exit(tls *TLS) { /* __toread.c:16:13: */ // data buffered for reading. func X__uflow(tls *TLS, f uintptr) int32 { /* __uflow.c:6:5: */ + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } bp := tls.Alloc(1) defer tls.Free(1) @@ -5631,6 +5759,9 @@ func X__uflow(tls *TLS, f uintptr) int32 { /* __uflow.c:6:5: */ } func Xsscanf(tls *TLS, s uintptr, fmt uintptr, va uintptr) int32 { /* sscanf.c:4:5: */ + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v va=%v, (%v:)", tls, s, fmt, va, origin(2)) + } var ret int32 var ap va_list _ = ap @@ -5648,7 +5779,7 @@ func store_int(tls *TLS, dest uintptr, size int32, i uint64) { /* vfscanf.c:22:1 } switch size { case -2: - *(*uint8)(unsafe.Pointer(dest)) = uint8(i) + *(*int8)(unsafe.Pointer(dest)) = int8(i) break case -1: *(*int16)(unsafe.Pointer(dest)) = int16(i) @@ -5680,6 +5811,9 @@ func arg_n(tls *TLS, ap va_list, n uint32) uintptr { /* vfscanf.c:44:13: */ } func Xvfscanf(tls *TLS, f uintptr, fmt uintptr, ap va_list) int32 { /* vfscanf.c:56:5: */ + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v ap=%v, (%v:)", tls, f, fmt, ap, origin(2)) + } bp := tls.Alloc(276) defer tls.Free(276) @@ -5713,12 +5847,7 @@ func Xvfscanf(tls *TLS, f uintptr, fmt uintptr, ap va_list) int32 { /* vfscanf.c dest = uintptr(0) matches = 0 pos = int64(0) - __need_unlock = func() int32 { - if (*FILE)(unsafe.Pointer(f)).lock >= 0 { - return X__lockfile(tls, f) - } - return 0 - }() + __need_unlock = 0 if !!(int32((*FILE)(unsafe.Pointer(f)).rpos) != 0) { goto __1 @@ -6240,7 +6369,7 @@ __110: }())+1))) != 0) { goto __111 } - switch Xmbrtowc(tls, bp+260, func() uintptr { *(*uint8)(unsafe.Pointer(bp + 264)) = uint8(c); return bp + 264 }(), uint64(1), bp+268 /* &st */) { + switch Xmbrtowc(tls, bp+260, func() uintptr { *(*int8)(unsafe.Pointer(bp + 264)) = int8(c); return bp + 264 }(), uint64(1), bp+268 /* &st */) { case Uint64FromInt32(-1): goto __113 case Uint64FromInt32(-2): @@ -6303,7 +6432,7 @@ __122: }())+1))) != 0) { goto __123 } - *(*uint8)(unsafe.Pointer(s + uintptr(PostIncUint64(&i, 1)))) = uint8(c) + *(*int8)(unsafe.Pointer(s + uintptr(PostIncUint64(&i, 1)))) = int8(c) if !(i == k) { goto __124 } @@ -6335,7 +6464,7 @@ __128: }())+1))) != 0) { goto __129 } - *(*uint8)(unsafe.Pointer(s + uintptr(PostIncUint64(&i, 1)))) = uint8(c) + *(*int8)(unsafe.Pointer(s + uintptr(PostIncUint64(&i, 1)))) = int8(c) goto __128 __129: ; @@ -6401,7 +6530,7 @@ __138: if !(s != 0) { goto __139 } - *(*uint8)(unsafe.Pointer(s + uintptr(i))) = uint8(0) + *(*int8)(unsafe.Pointer(s + uintptr(i))) = int8(0) __139: ; __137: @@ -6555,6 +6684,9 @@ func string_read(tls *TLS, f uintptr, buf uintptr, len size_t) size_t { /* vssca } func Xvsscanf(tls *TLS, s uintptr, fmt uintptr, ap va_list) int32 { /* vsscanf.c:18:5: */ + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v ap=%v, (%v:)", tls, s, fmt, ap, origin(2)) + } bp := tls.Alloc(232) defer tls.Free(232) @@ -6565,6 +6697,9 @@ func Xvsscanf(tls *TLS, s uintptr, fmt uintptr, ap va_list) int32 { /* vsscanf.c } func Xbsearch(tls *TLS, key uintptr, base uintptr, nel size_t, width size_t, cmp uintptr) uintptr { /* bsearch.c:3:6: */ + if __ccgo_strace { + trc("tls=%v key=%v base=%v nel=%v width=%v cmp=%v, (%v:)", tls, key, base, nel, width, cmp, origin(2)) + } var try uintptr var sign int32 for nel > uint64(0) { @@ -6607,14 +6742,23 @@ func strtox(tls *TLS, s uintptr, p uintptr, prec int32) float64 { /* strtod.c:6: } func Xstrtof(tls *TLS, s uintptr, p uintptr) float32 { /* strtod.c:17:7: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + } return float32(strtox(tls, s, p, 0)) } func Xstrtod(tls *TLS, s uintptr, p uintptr) float64 { /* strtod.c:22:8: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + } return strtox(tls, s, p, 1) } func Xstrtold(tls *TLS, s uintptr, p uintptr) float64 { /* strtod.c:27:13: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + } return strtox(tls, s, p, 2) } @@ -6636,30 +6780,51 @@ func strtox1(tls *TLS, s uintptr, p uintptr, base int32, lim uint64) uint64 { /* } func Xstrtoull(tls *TLS, s uintptr, p uintptr, base int32) uint64 { /* strtol.c:21:20: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + } return strtox1(tls, s, p, base, 2*uint64(0x7fffffffffffffff)+uint64(1)) } func Xstrtoll(tls *TLS, s uintptr, p uintptr, base int32) int64 { /* strtol.c:26:11: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + } return int64(strtox1(tls, s, p, base, Uint64FromInt64(-0x7fffffffffffffff-int64(1)))) } func Xstrtoul(tls *TLS, s uintptr, p uintptr, base int32) uint64 { /* strtol.c:31:15: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + } return uint64(strtox1(tls, s, p, base, 2*uint64(0x7fffffffffffffff)+uint64(1))) } func Xstrtol(tls *TLS, s uintptr, p uintptr, base int32) int64 { /* strtol.c:36:6: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + } return int64(strtox1(tls, s, p, base, 0+Uint64FromInt64(Int64(-Int64(0x7fffffffffffffff))-Int64FromInt32(1)))) } func Xstrtoimax(tls *TLS, s uintptr, p uintptr, base int32) intmax_t { /* strtol.c:41:10: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + } return intmax_t(Xstrtoll(tls, s, p, base)) } func Xstrtoumax(tls *TLS, s uintptr, p uintptr, base int32) uintmax_t { /* strtol.c:46:11: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + } return uintmax_t(Xstrtoull(tls, s, p, base)) } func Xstrdup(tls *TLS, s uintptr) uintptr { /* strdup.c:4:6: */ + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + } var l size_t = Xstrlen(tls, s) var d uintptr = Xmalloc(tls, l+uint64(1)) if !(d != 0) { @@ -6669,6 +6834,9 @@ func Xstrdup(tls *TLS, s uintptr) uintptr { /* strdup.c:4:6: */ } func Xstrlcat(tls *TLS, d uintptr, s uintptr, n size_t) size_t { /* strlcat.c:4:8: */ + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + } var l size_t = Xstrnlen(tls, d, n) if l == n { return l + Xstrlen(tls, s) @@ -6686,6 +6854,9 @@ func Xstrlcat(tls *TLS, d uintptr, s uintptr, n size_t) size_t { /* strlcat.c:4: // from SUS and have nothing to do with the host system. func Xstrlcpy(tls *TLS, d uintptr, s uintptr, n size_t) size_t { /* strlcpy.c:11:8: */ + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + } var d0 uintptr var wd uintptr var ws uintptr @@ -6701,7 +6872,7 @@ __1: goto __2 } __3: - if !(uintptr_t(s)&(uint64(unsafe.Sizeof(size_t(0)))-uint64(1)) != 0 && n != 0 && AssignPtrUint8(d, *(*uint8)(unsafe.Pointer(s))) != 0) { + if !(uintptr_t(s)&(uint64(unsafe.Sizeof(size_t(0)))-uint64(1)) != 0 && n != 0 && AssignPtrInt8(d, *(*int8)(unsafe.Pointer(s))) != 0) { goto __5 } goto __4 @@ -6713,7 +6884,7 @@ __4: goto __5 __5: ; - if !(n != 0 && *(*uint8)(unsafe.Pointer(s)) != 0) { + if !(n != 0 && *(*int8)(unsafe.Pointer(s)) != 0) { goto __6 } wd = d @@ -6739,7 +6910,7 @@ __6: __2: ; __10: - if !(n != 0 && AssignPtrUint8(d, *(*uint8)(unsafe.Pointer(s))) != 0) { + if !(n != 0 && AssignPtrInt8(d, *(*int8)(unsafe.Pointer(s))) != 0) { goto __12 } goto __11 @@ -6751,12 +6922,15 @@ __11: goto __12 __12: ; - *(*uint8)(unsafe.Pointer(d)) = uint8(0) + *(*int8)(unsafe.Pointer(d)) = int8(0) finish: return size_t((int64(d)-int64(d0))/1) + Xstrlen(tls, s) } func Xstrncasecmp(tls *TLS, _l uintptr, _r uintptr, n size_t) int32 { /* strncasecmp.c:4:5: */ + if __ccgo_strace { + trc("tls=%v _l=%v _r=%v n=%v, (%v:)", tls, _l, _r, n, origin(2)) + } var l uintptr = _l var r uintptr = _r if !(int32(PostDecUint64(&n, 1)) != 0) { @@ -6779,21 +6953,30 @@ __3: } func X__strncasecmp_l(tls *TLS, l uintptr, r uintptr, n size_t, loc locale_t) int32 { /* strncasecmp.c:12:5: */ + if __ccgo_strace { + trc("tls=%v l=%v r=%v n=%v loc=%v, (%v:)", tls, l, r, n, loc, origin(2)) + } return Xstrncasecmp(tls, l, r, n) } func Xstrncat(tls *TLS, d uintptr, s uintptr, n size_t) uintptr { /* strncat.c:3:6: */ + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + } var a uintptr = d d += uintptr(Xstrlen(tls, d)) - for n != 0 && *(*uint8)(unsafe.Pointer(s)) != 0 { + for n != 0 && *(*int8)(unsafe.Pointer(s)) != 0 { n-- - *(*uint8)(unsafe.Pointer(PostIncUintptr(&d, 1))) = *(*uint8)(unsafe.Pointer(PostIncUintptr(&s, 1))) + *(*int8)(unsafe.Pointer(PostIncUintptr(&d, 1))) = *(*int8)(unsafe.Pointer(PostIncUintptr(&s, 1))) } - *(*uint8)(unsafe.Pointer(PostIncUintptr(&d, 1))) = uint8(0) + *(*int8)(unsafe.Pointer(PostIncUintptr(&d, 1))) = int8(0) return a } func Xstrnlen(tls *TLS, s uintptr, n size_t) size_t { /* strnlen.c:3:8: */ + if __ccgo_strace { + trc("tls=%v s=%v n=%v, (%v:)", tls, s, n, origin(2)) + } var p uintptr = Xmemchr(tls, s, 0, n) if p != 0 { return uint64((int64(p) - int64(s)) / 1) @@ -6802,39 +6985,45 @@ func Xstrnlen(tls *TLS, s uintptr, n size_t) size_t { /* strnlen.c:3:8: */ } func Xstrspn(tls *TLS, s uintptr, c uintptr) size_t { /* strspn.c:6:8: */ + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + } bp := tls.Alloc(32) defer tls.Free(32) var a uintptr = s *(*[4]size_t)(unsafe.Pointer(bp /* byteset */)) = [4]size_t{0: uint64(0)} - if !(int32(*(*uint8)(unsafe.Pointer(c))) != 0) { + if !(int32(*(*int8)(unsafe.Pointer(c))) != 0) { return uint64(0) } - if !(int32(*(*uint8)(unsafe.Pointer(c + 1))) != 0) { - for ; int32(*(*uint8)(unsafe.Pointer(s))) == int32(*(*uint8)(unsafe.Pointer(c))); s++ { + if !(int32(*(*int8)(unsafe.Pointer(c + 1))) != 0) { + for ; int32(*(*int8)(unsafe.Pointer(s))) == int32(*(*int8)(unsafe.Pointer(c))); s++ { } return size_t((int64(s) - int64(a)) / 1) } - for ; *(*uint8)(unsafe.Pointer(c)) != 0 && AssignOrPtrUint64(bp+uintptr(size_t(*(*uint8)(unsafe.Pointer(c)))/(uint64(8)*uint64(unsafe.Sizeof(size_t(0)))))*8, size_t(uint64(1))<<(size_t(*(*uint8)(unsafe.Pointer(c)))%(uint64(8)*uint64(unsafe.Sizeof(size_t(0)))))) != 0; c++ { + for ; *(*int8)(unsafe.Pointer(c)) != 0 && AssignOrPtrUint64(bp+uintptr(size_t(*(*uint8)(unsafe.Pointer(c)))/(uint64(8)*uint64(unsafe.Sizeof(size_t(0)))))*8, size_t(uint64(1))<<(size_t(*(*uint8)(unsafe.Pointer(c)))%(uint64(8)*uint64(unsafe.Sizeof(size_t(0)))))) != 0; c++ { } - for ; *(*uint8)(unsafe.Pointer(s)) != 0 && *(*size_t)(unsafe.Pointer(bp + uintptr(size_t(*(*uint8)(unsafe.Pointer(s)))/(uint64(8)*uint64(unsafe.Sizeof(size_t(0)))))*8))&(size_t(uint64(1))<<(size_t(*(*uint8)(unsafe.Pointer(s)))%(uint64(8)*uint64(unsafe.Sizeof(size_t(0)))))) != 0; s++ { + for ; *(*int8)(unsafe.Pointer(s)) != 0 && *(*size_t)(unsafe.Pointer(bp + uintptr(size_t(*(*uint8)(unsafe.Pointer(s)))/(uint64(8)*uint64(unsafe.Sizeof(size_t(0)))))*8))&(size_t(uint64(1))<<(size_t(*(*uint8)(unsafe.Pointer(s)))%(uint64(8)*uint64(unsafe.Sizeof(size_t(0)))))) != 0; s++ { } return size_t((int64(s) - int64(a)) / 1) } func Xstrtok(tls *TLS, s uintptr, sep uintptr) uintptr { /* strtok.c:3:6: */ + if __ccgo_strace { + trc("tls=%v s=%v sep=%v, (%v:)", tls, s, sep, origin(2)) + } if !(s != 0) && !(int32(AssignUintptr(&s, _sp)) != 0) { return uintptr(0) } s += uintptr(Xstrspn(tls, s, sep)) - if !(int32(*(*uint8)(unsafe.Pointer(s))) != 0) { + if !(int32(*(*int8)(unsafe.Pointer(s))) != 0) { return AssignPtrUintptr(uintptr(unsafe.Pointer(&_sp)), uintptr(0)) } _sp = s + uintptr(Xstrcspn(tls, s, sep)) - if *(*uint8)(unsafe.Pointer(_sp)) != 0 { - *(*uint8)(unsafe.Pointer(PostIncUintptr(&_sp, 1))) = uint8(0) + if *(*int8)(unsafe.Pointer(_sp)) != 0 { + *(*int8)(unsafe.Pointer(PostIncUintptr(&_sp, 1))) = int8(0) } else { _sp = uintptr(0) } @@ -6844,10 +7033,16 @@ func Xstrtok(tls *TLS, s uintptr, sep uintptr) uintptr { /* strtok.c:3:6: */ var _sp uintptr /* strtok.c:5:14: */ func X__ccgo_pthreadAttrGetDetachState(tls *TLS, a uintptr) int32 { /* pthread_attr_get.c:3:5: */ + if __ccgo_strace { + trc("tls=%v a=%v, (%v:)", tls, a, origin(2)) + } return *(*int32)(unsafe.Pointer(a + 6*4)) } func Xpthread_attr_getdetachstate(tls *TLS, a uintptr, state uintptr) int32 { /* pthread_attr_get.c:7:5: */ + if __ccgo_strace { + trc("tls=%v a=%v state=%v, (%v:)", tls, a, state, origin(2)) + } *(*int32)(unsafe.Pointer(state)) = *(*int32)(unsafe.Pointer(a + 6*4)) return 0 } @@ -6934,6 +7129,9 @@ func Xpthread_attr_getdetachstate(tls *TLS, a uintptr, state uintptr) int32 { /* // } func X__ccgo_pthreadMutexattrGettype(tls *TLS, a uintptr) int32 { /* pthread_attr_get.c:93:5: */ + if __ccgo_strace { + trc("tls=%v a=%v, (%v:)", tls, a, origin(2)) + } return int32((*pthread_mutexattr_t)(unsafe.Pointer(a)).__attr & uint32(3)) } @@ -6950,6 +7148,9 @@ func X__ccgo_pthreadMutexattrGettype(tls *TLS, a uintptr) int32 { /* pthread_att // } func Xpthread_attr_setdetachstate(tls *TLS, a uintptr, state int32) int32 { /* pthread_attr_setdetachstate.c:3:5: */ + if __ccgo_strace { + trc("tls=%v a=%v state=%v, (%v:)", tls, a, state, origin(2)) + } if uint32(state) > 1 { return 22 } @@ -6958,6 +7159,9 @@ func Xpthread_attr_setdetachstate(tls *TLS, a uintptr, state int32) int32 { /* p } func X__ccgo_getMutexType(tls *TLS, m uintptr) int32 { /* pthread_mutex_lock.c:3:5: */ + if __ccgo_strace { + trc("tls=%v m=%v, (%v:)", tls, m, origin(2)) + } return *(*int32)(unsafe.Pointer(m)) & 15 } @@ -6973,15 +7177,24 @@ func X__ccgo_getMutexType(tls *TLS, m uintptr) int32 { /* pthread_mutex_lock.c:3 // weak_alias(__pthread_mutex_lock, pthread_mutex_lock); func Xpthread_mutexattr_destroy(tls *TLS, a uintptr) int32 { /* pthread_mutexattr_destroy.c:3:5: */ + if __ccgo_strace { + trc("tls=%v a=%v, (%v:)", tls, a, origin(2)) + } return 0 } func Xpthread_mutexattr_init(tls *TLS, a uintptr) int32 { /* pthread_mutexattr_init.c:3:5: */ + if __ccgo_strace { + trc("tls=%v a=%v, (%v:)", tls, a, origin(2)) + } *(*pthread_mutexattr_t)(unsafe.Pointer(a)) = pthread_mutexattr_t{} return 0 } func Xpthread_mutexattr_settype(tls *TLS, a uintptr, type1 int32) int32 { /* pthread_mutexattr_settype.c:3:5: */ + if __ccgo_strace { + trc("tls=%v a=%v type1=%v, (%v:)", tls, a, type1, origin(2)) + } if uint32(type1) > uint32(2) { return 22 } diff --git a/vendor/modernc.org/libc/musl_linux_386.go b/vendor/modernc.org/libc/musl_linux_386.go deleted file mode 100644 index 3b730c21c..000000000 --- a/vendor/modernc.org/libc/musl_linux_386.go +++ /dev/null @@ -1,6885 +0,0 @@ -// Code generated by 'ccgo -export-externs X -hide __syscall0,__syscall1,__syscall2,__syscall3,__syscall4,__syscall5,__syscall6 -nostdinc -nostdlib -o ../musl_linux_386.go -pkgname libc -static-locals-prefix _s -Iarch/i386 -Iarch/generic -Iobj/src/internal -Isrc/include -Isrc/internal -Iobj/include -Iinclude copyright.c src/ctype/__ctype_b_loc.c src/ctype/isalnum.c src/ctype/isalpha.c src/ctype/isdigit.c src/ctype/islower.c src/ctype/isprint.c src/ctype/isupper.c src/ctype/isxdigit.c src/dirent/closedir.c src/dirent/opendir.c src/dirent/readdir.c src/internal/floatscan.c src/internal/intscan.c src/internal/shgetc.c src/locale/localeconv.c src/math/__fpclassify.c src/math/__fpclassifyf.c src/math/__fpclassifyl.c src/math/copysignl.c src/math/fabsl.c src/math/fmodl.c src/math/nanf.c src/math/rint.c src/math/scalbn.c src/math/scalbnl.c src/multibyte/internal.c src/multibyte/mbrtowc.c src/multibyte/mbsinit.c src/network/freeaddrinfo.c src/network/getaddrinfo.c src/network/gethostbyaddr.c src/network/gethostbyaddr_r.c src/network/gethostbyname.c src/network/gethostbyname2.c src/network/gethostbyname2_r.c src/network/gethostbyname_r.c src/network/getnameinfo.c src/network/h_errno.c src/network/inet_aton.c src/network/inet_ntop.c src/network/inet_pton.c src/network/lookup_ipliteral.c src/network/lookup_name.c src/network/lookup_serv.c src/prng/rand_r.c src/stdio/__lockfile.c src/stdio/__toread.c src/stdio/__uflow.c src/stdio/sscanf.c src/stdio/vfscanf.c src/stdio/vsscanf.c src/stdlib/bsearch.c src/stdlib/strtod.c src/stdlib/strtol.c src/string/strdup.c src/string/strlcat.c src/string/strlcpy.c src/string/strncasecmp.c src/string/strncat.c src/string/strnlen.c src/string/strspn.c src/string/strtok.c src/thread/pthread_attr_get.c src/thread/pthread_attr_setdetachstate.c src/thread/pthread_mutex_lock.c src/thread/pthread_mutexattr_destroy.c src/thread/pthread_mutexattr_init.c src/thread/pthread_mutexattr_settype.c', DO NOT EDIT. - -package libc - -import ( - "math" - "reflect" - "sync/atomic" - "unsafe" -) - -var _ = math.Pi -var _ reflect.Kind -var _ atomic.Value -var _ unsafe.Pointer - -// musl as a whole is licensed under the following standard MIT license: -// -// ---------------------------------------------------------------------- -// Copyright © 2005-2020 Rich Felker, et al. -// -// Permission is hereby granted, free of charge, to any person obtaining -// a copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to -// permit persons to whom the Software is furnished to do so, subject to -// the following conditions: -// -// The above copyright notice and this permission notice shall be -// included in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -// SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -// ---------------------------------------------------------------------- -// -// Authors/contributors include: -// -// A. Wilcox -// Ada Worcester -// Alex Dowad -// Alex Suykov -// Alexander Monakov -// Andre McCurdy -// Andrew Kelley -// Anthony G. Basile -// Aric Belsito -// Arvid Picciani -// Bartosz Brachaczek -// Benjamin Peterson -// Bobby Bingham -// Boris Brezillon -// Brent Cook -// Chris Spiegel -// Clément Vasseur -// Daniel Micay -// Daniel Sabogal -// Daurnimator -// David Carlier -// David Edelsohn -// Denys Vlasenko -// Dmitry Ivanov -// Dmitry V. Levin -// Drew DeVault -// Emil Renner Berthing -// Fangrui Song -// Felix Fietkau -// Felix Janda -// Gianluca Anzolin -// Hauke Mehrtens -// He X -// Hiltjo Posthuma -// Isaac Dunham -// Jaydeep Patil -// Jens Gustedt -// Jeremy Huntwork -// Jo-Philipp Wich -// Joakim Sindholt -// John Spencer -// Julien Ramseier -// Justin Cormack -// Kaarle Ritvanen -// Khem Raj -// Kylie McClain -// Leah Neukirchen -// Luca Barbato -// Luka Perkov -// M Farkas-Dyck (Strake) -// Mahesh Bodapati -// Markus Wichmann -// Masanori Ogino -// Michael Clark -// Michael Forney -// Mikhail Kremnyov -// Natanael Copa -// Nicholas J. Kain -// orc -// Pascal Cuoq -// Patrick Oppenlander -// Petr Hosek -// Petr Skocik -// Pierre Carrier -// Reini Urban -// Rich Felker -// Richard Pennington -// Ryan Fairfax -// Samuel Holland -// Segev Finer -// Shiz -// sin -// Solar Designer -// Stefan Kristiansson -// Stefan O'Rear -// Szabolcs Nagy -// Timo Teräs -// Trutz Behn -// Valentin Ochs -// Will Dietz -// William Haddon -// William Pitcock -// -// Portions of this software are derived from third-party works licensed -// under terms compatible with the above MIT license: -// -// The TRE regular expression implementation (src/regex/reg* and -// src/regex/tre*) is Copyright © 2001-2008 Ville Laurikari and licensed -// under a 2-clause BSD license (license text in the source files). The -// included version has been heavily modified by Rich Felker in 2012, in -// the interests of size, simplicity, and namespace cleanliness. -// -// Much of the math library code (src/math/* and src/complex/*) is -// Copyright © 1993,2004 Sun Microsystems or -// Copyright © 2003-2011 David Schultz or -// Copyright © 2003-2009 Steven G. Kargl or -// Copyright © 2003-2009 Bruce D. Evans or -// Copyright © 2008 Stephen L. Moshier or -// Copyright © 2017-2018 Arm Limited -// and labelled as such in comments in the individual source files. All -// have been licensed under extremely permissive terms. -// -// The ARM memcpy code (src/string/arm/memcpy.S) is Copyright © 2008 -// The Android Open Source Project and is licensed under a two-clause BSD -// license. It was taken from Bionic libc, used on Android. -// -// The AArch64 memcpy and memset code (src/string/aarch64/*) are -// Copyright © 1999-2019, Arm Limited. -// -// The implementation of DES for crypt (src/crypt/crypt_des.c) is -// Copyright © 1994 David Burren. It is licensed under a BSD license. -// -// The implementation of blowfish crypt (src/crypt/crypt_blowfish.c) was -// originally written by Solar Designer and placed into the public -// domain. The code also comes with a fallback permissive license for use -// in jurisdictions that may not recognize the public domain. -// -// The smoothsort implementation (src/stdlib/qsort.c) is Copyright © 2011 -// Valentin Ochs and is licensed under an MIT-style license. -// -// The x86_64 port was written by Nicholas J. Kain and is licensed under -// the standard MIT terms. -// -// The mips and microblaze ports were originally written by Richard -// Pennington for use in the ellcc project. The original code was adapted -// by Rich Felker for build system and code conventions during upstream -// integration. It is licensed under the standard MIT terms. -// -// The mips64 port was contributed by Imagination Technologies and is -// licensed under the standard MIT terms. -// -// The powerpc port was also originally written by Richard Pennington, -// and later supplemented and integrated by John Spencer. It is licensed -// under the standard MIT terms. -// -// All other files which have no copyright comments are original works -// produced specifically for use as part of this library, written either -// by Rich Felker, the main author of the library, or by one or more -// contibutors listed above. Details on authorship of individual files -// can be found in the git version control history of the project. The -// omission of copyright and license comments in each file is in the -// interest of source tree size. -// -// In addition, permission is hereby granted for all public header files -// (include/* and arch/*/bits/*) and crt files intended to be linked into -// applications (crt/*, ldso/dlstart.c, and arch/*/crt_arch.h) to omit -// the copyright notice and permission notice otherwise required by the -// license, and to use these files without any requirement of -// attribution. These files include substantial contributions from: -// -// Bobby Bingham -// John Spencer -// Nicholas J. Kain -// Rich Felker -// Richard Pennington -// Stefan Kristiansson -// Szabolcs Nagy -// -// all of whom have explicitly granted such permission. -// -// This file previously contained text expressing a belief that most of -// the files covered by the above exception were sufficiently trivial not -// to be subject to copyright, resulting in confusion over whether it -// negated the permissions granted in the license. In the spirit of -// permissive licensing, and of not having licensing issues being an -// obstacle to adoption, that text has been removed. -const ( /* copyright.c:194:1: */ - __musl__copyright__ = 0 -) - -const ( /* nameser.h:117:1: */ - ns_uop_delete = 0 - ns_uop_add = 1 - ns_uop_max = 2 -) - -const ( /* nameser.h:147:1: */ - ns_t_invalid = 0 - ns_t_a = 1 - ns_t_ns = 2 - ns_t_md = 3 - ns_t_mf = 4 - ns_t_cname = 5 - ns_t_soa = 6 - ns_t_mb = 7 - ns_t_mg = 8 - ns_t_mr = 9 - ns_t_null = 10 - ns_t_wks = 11 - ns_t_ptr = 12 - ns_t_hinfo = 13 - ns_t_minfo = 14 - ns_t_mx = 15 - ns_t_txt = 16 - ns_t_rp = 17 - ns_t_afsdb = 18 - ns_t_x25 = 19 - ns_t_isdn = 20 - ns_t_rt = 21 - ns_t_nsap = 22 - ns_t_nsap_ptr = 23 - ns_t_sig = 24 - ns_t_key = 25 - ns_t_px = 26 - ns_t_gpos = 27 - ns_t_aaaa = 28 - ns_t_loc = 29 - ns_t_nxt = 30 - ns_t_eid = 31 - ns_t_nimloc = 32 - ns_t_srv = 33 - ns_t_atma = 34 - ns_t_naptr = 35 - ns_t_kx = 36 - ns_t_cert = 37 - ns_t_a6 = 38 - ns_t_dname = 39 - ns_t_sink = 40 - ns_t_opt = 41 - ns_t_apl = 42 - ns_t_tkey = 249 - ns_t_tsig = 250 - ns_t_ixfr = 251 - ns_t_axfr = 252 - ns_t_mailb = 253 - ns_t_maila = 254 - ns_t_any = 255 - ns_t_zxfr = 256 - ns_t_max = 65536 -) - -const ( /* nameser.h:210:1: */ - ns_c_invalid = 0 - ns_c_in = 1 - ns_c_2 = 2 - ns_c_chaos = 3 - ns_c_hs = 4 - ns_c_none = 254 - ns_c_any = 255 - ns_c_max = 65536 -) - -const ( /* nameser.h:221:1: */ - ns_kt_rsa = 1 - ns_kt_dh = 2 - ns_kt_dsa = 3 - ns_kt_private = 254 -) - -const ( /* nameser.h:228:1: */ - cert_t_pkix = 1 - cert_t_spki = 2 - cert_t_pgp = 3 - cert_t_url = 253 - cert_t_oid = 254 -) - -const ( /* nameser.h:28:1: */ - ns_s_qd = 0 - ns_s_zn = 0 - ns_s_an = 1 - ns_s_pr = 1 - ns_s_ns = 2 - ns_s_ud = 2 - ns_s_ar = 3 - ns_s_max = 4 -) - -const ( /* nameser.h:75:1: */ - ns_f_qr = 0 - ns_f_opcode = 1 - ns_f_aa = 2 - ns_f_tc = 3 - ns_f_rd = 4 - ns_f_ra = 5 - ns_f_z = 6 - ns_f_ad = 7 - ns_f_cd = 8 - ns_f_rcode = 9 - ns_f_max = 10 -) - -const ( /* nameser.h:89:1: */ - ns_o_query = 0 - ns_o_iquery = 1 - ns_o_status = 2 - ns_o_notify = 4 - ns_o_update = 5 - ns_o_max = 6 -) - -const ( /* nameser.h:98:1: */ - ns_r_noerror = 0 - ns_r_formerr = 1 - ns_r_servfail = 2 - ns_r_nxdomain = 3 - ns_r_notimpl = 4 - ns_r_refused = 5 - ns_r_yxdomain = 6 - ns_r_yxrrset = 7 - ns_r_nxrrset = 8 - ns_r_notauth = 9 - ns_r_notzone = 10 - ns_r_max = 11 - ns_r_badvers = 16 - ns_r_badsig = 16 - ns_r_badkey = 17 - ns_r_badtime = 18 -) - -const ( /* pthread_impl.h:58:1: */ - DT_EXITING = 0 - DT_JOINABLE = 1 - DT_DETACHED = 2 -) - -type ptrdiff_t = int32 /* :3:26 */ - -type size_t = uint32 /* :9:23 */ - -type wchar_t = int32 /* :15:24 */ - -type uint16_t = uint16 /* alltypes.h:149:25 */ - -type uint32_t = uint32 /* alltypes.h:154:25 */ - -type uint64_t = uint64 /* alltypes.h:159:25 */ - -func __bswap32(tls *TLS, __x uint32_t) uint32_t { /* endian.h:24:26: */ - return __x>>24 | __x>>8&uint32_t(0xff00) | __x<<8&uint32_t(0xff0000) | __x<<24 -} - -var table = [384]uint16{ - uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), - uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), - uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), - uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), - uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), - uint16((0x200/256 | 0x200*256) % 65536), uint16((0x320/256 | 0x320*256) % 65536), uint16((0x220/256 | 0x220*256) % 65536), uint16((0x220/256 | 0x220*256) % 65536), uint16((0x220/256 | 0x220*256) % 65536), uint16((0x220/256 | 0x220*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), - uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), - uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), - uint16((0x160/256 | 0x160*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), - uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), - uint16((0x8d8/256 | 0x8d8*256) % 65536), uint16((0x8d8/256 | 0x8d8*256) % 65536), uint16((0x8d8/256 | 0x8d8*256) % 65536), uint16((0x8d8/256 | 0x8d8*256) % 65536), uint16((0x8d8/256 | 0x8d8*256) % 65536), uint16((0x8d8/256 | 0x8d8*256) % 65536), uint16((0x8d8/256 | 0x8d8*256) % 65536), uint16((0x8d8/256 | 0x8d8*256) % 65536), - uint16((0x8d8/256 | 0x8d8*256) % 65536), uint16((0x8d8/256 | 0x8d8*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), - uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x8d5/256 | 0x8d5*256) % 65536), uint16((0x8d5/256 | 0x8d5*256) % 65536), uint16((0x8d5/256 | 0x8d5*256) % 65536), uint16((0x8d5/256 | 0x8d5*256) % 65536), uint16((0x8d5/256 | 0x8d5*256) % 65536), uint16((0x8d5/256 | 0x8d5*256) % 65536), uint16((0x8c5/256 | 0x8c5*256) % 65536), - uint16((0x8c5/256 | 0x8c5*256) % 65536), uint16((0x8c5/256 | 0x8c5*256) % 65536), uint16((0x8c5/256 | 0x8c5*256) % 65536), uint16((0x8c5/256 | 0x8c5*256) % 65536), uint16((0x8c5/256 | 0x8c5*256) % 65536), uint16((0x8c5/256 | 0x8c5*256) % 65536), uint16((0x8c5/256 | 0x8c5*256) % 65536), uint16((0x8c5/256 | 0x8c5*256) % 65536), - uint16((0x8c5/256 | 0x8c5*256) % 65536), uint16((0x8c5/256 | 0x8c5*256) % 65536), uint16((0x8c5/256 | 0x8c5*256) % 65536), uint16((0x8c5/256 | 0x8c5*256) % 65536), uint16((0x8c5/256 | 0x8c5*256) % 65536), uint16((0x8c5/256 | 0x8c5*256) % 65536), uint16((0x8c5/256 | 0x8c5*256) % 65536), uint16((0x8c5/256 | 0x8c5*256) % 65536), - uint16((0x8c5/256 | 0x8c5*256) % 65536), uint16((0x8c5/256 | 0x8c5*256) % 65536), uint16((0x8c5/256 | 0x8c5*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), - uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x8d6/256 | 0x8d6*256) % 65536), uint16((0x8d6/256 | 0x8d6*256) % 65536), uint16((0x8d6/256 | 0x8d6*256) % 65536), uint16((0x8d6/256 | 0x8d6*256) % 65536), uint16((0x8d6/256 | 0x8d6*256) % 65536), uint16((0x8d6/256 | 0x8d6*256) % 65536), uint16((0x8c6/256 | 0x8c6*256) % 65536), - uint16((0x8c6/256 | 0x8c6*256) % 65536), uint16((0x8c6/256 | 0x8c6*256) % 65536), uint16((0x8c6/256 | 0x8c6*256) % 65536), uint16((0x8c6/256 | 0x8c6*256) % 65536), uint16((0x8c6/256 | 0x8c6*256) % 65536), uint16((0x8c6/256 | 0x8c6*256) % 65536), uint16((0x8c6/256 | 0x8c6*256) % 65536), uint16((0x8c6/256 | 0x8c6*256) % 65536), - uint16((0x8c6/256 | 0x8c6*256) % 65536), uint16((0x8c6/256 | 0x8c6*256) % 65536), uint16((0x8c6/256 | 0x8c6*256) % 65536), uint16((0x8c6/256 | 0x8c6*256) % 65536), uint16((0x8c6/256 | 0x8c6*256) % 65536), uint16((0x8c6/256 | 0x8c6*256) % 65536), uint16((0x8c6/256 | 0x8c6*256) % 65536), uint16((0x8c6/256 | 0x8c6*256) % 65536), - uint16((0x8c6/256 | 0x8c6*256) % 65536), uint16((0x8c6/256 | 0x8c6*256) % 65536), uint16((0x8c6/256 | 0x8c6*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), - uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), - uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), - uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), - uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), -} /* __ctype_b_loc.c:9:29 */ - -var ptable uintptr = 0 /* __ctype_b_loc.c:36:29 */ - -func X__ctype_b_loc(tls *TLS) uintptr { /* __ctype_b_loc.c:38:22: */ - return uintptr(unsafe.Pointer(&ptable)) -} - -func __isspace(tls *TLS, _c int32) int32 { /* ctype.h:26:21: */ - return Bool32(_c == ' ' || uint32(_c)-uint32('\t') < uint32(5)) -} - -type __locale_struct = struct{ cat [6]uintptr } /* alltypes.h:366:9 */ - -type locale_t = uintptr /* alltypes.h:366:32 */ - -func Xisalnum(tls *TLS, c int32) int32 { /* isalnum.c:3:5: */ - return Bool32(func() int32 { - if 0 != 0 { - return Xisalpha(tls, c) - } - return Bool32(uint32(c)|uint32(32)-uint32('a') < uint32(26)) - }() != 0 || func() int32 { - if 0 != 0 { - return Xisdigit(tls, c) - } - return Bool32(uint32(c)-uint32('0') < uint32(10)) - }() != 0) -} - -func X__isalnum_l(tls *TLS, c int32, l locale_t) int32 { /* isalnum.c:8:5: */ - return Xisalnum(tls, c) -} - -func Xisalpha(tls *TLS, c int32) int32 { /* isalpha.c:4:5: */ - return Bool32(uint32(c)|uint32(32)-uint32('a') < uint32(26)) -} - -func X__isalpha_l(tls *TLS, c int32, l locale_t) int32 { /* isalpha.c:9:5: */ - return Xisalpha(tls, c) -} - -func Xisdigit(tls *TLS, c int32) int32 { /* isdigit.c:4:5: */ - return Bool32(uint32(c)-uint32('0') < uint32(10)) -} - -func X__isdigit_l(tls *TLS, c int32, l locale_t) int32 { /* isdigit.c:9:5: */ - return Xisdigit(tls, c) -} - -func Xislower(tls *TLS, c int32) int32 { /* islower.c:4:5: */ - return Bool32(uint32(c)-uint32('a') < uint32(26)) -} - -func X__islower_l(tls *TLS, c int32, l locale_t) int32 { /* islower.c:9:5: */ - return Xislower(tls, c) -} - -func Xisprint(tls *TLS, c int32) int32 { /* isprint.c:4:5: */ - return Bool32(uint32(c)-uint32(0x20) < uint32(0x5f)) -} - -func X__isprint_l(tls *TLS, c int32, l locale_t) int32 { /* isprint.c:9:5: */ - return Xisprint(tls, c) -} - -func Xisupper(tls *TLS, c int32) int32 { /* isupper.c:4:5: */ - return Bool32(uint32(c)-uint32('A') < uint32(26)) -} - -func X__isupper_l(tls *TLS, c int32, l locale_t) int32 { /* isupper.c:9:5: */ - return Xisupper(tls, c) -} - -func Xisxdigit(tls *TLS, c int32) int32 { /* isxdigit.c:3:5: */ - return Bool32(func() int32 { - if 0 != 0 { - return Xisdigit(tls, c) - } - return Bool32(uint32(c)-uint32('0') < uint32(10)) - }() != 0 || uint32(c)|uint32(32)-uint32('a') < uint32(6)) -} - -func X__isxdigit_l(tls *TLS, c int32, l locale_t) int32 { /* isxdigit.c:8:5: */ - return Xisxdigit(tls, c) -} - -type off_t = int64 /* alltypes.h:185:16 */ - -type ino_t = uint64 /* alltypes.h:190:25 */ - -type dirent = struct { - d_ino ino_t - d_off off_t - d_reclen uint16 - d_type uint8 - d_name [256]int8 - _ [1]byte -} /* dirent.h:5:1 */ - -type __dirstream = struct { - tell off_t - fd int32 - buf_pos int32 - buf_end int32 - lock [1]int32 - buf [2048]int8 -} /* dirent.h:20:9 */ - -type DIR = __dirstream /* dirent.h:20:28 */ - -type ssize_t = int32 /* alltypes.h:88:15 */ - -type intptr_t = int32 /* alltypes.h:93:15 */ - -type pid_t = int32 /* alltypes.h:258:13 */ - -type uid_t = uint32 /* alltypes.h:268:18 */ - -type gid_t = uint32 /* alltypes.h:273:18 */ - -type useconds_t = uint32 /* alltypes.h:283:18 */ - -type div_t = struct { - quot int32 - rem int32 -} /* stdlib.h:62:35 */ -type ldiv_t = struct { - quot int32 - rem int32 -} /* stdlib.h:63:36 */ -type lldiv_t = struct { - quot int64 - rem int64 -} /* stdlib.h:64:41 */ - -func Xclosedir(tls *TLS, dir uintptr) int32 { /* closedir.c:6:5: */ - var ret int32 = Xclose(tls, (*DIR)(unsafe.Pointer(dir)).fd) - Xfree(tls, dir) - return ret -} - -type mode_t = uint32 /* alltypes.h:175:18 */ - -type iovec = struct { - iov_base uintptr - iov_len size_t -} /* alltypes.h:378:1 */ - -type flock = struct { - l_type int16 - l_whence int16 - l_start off_t - l_len off_t - l_pid pid_t -} /* fcntl.h:24:1 */ - -type file_handle = struct { - _ [0]uint32 - handle_bytes uint32 - handle_type int32 -} /* fcntl.h:167:1 */ - -type f_owner_ex = struct { - __type int32 - pid pid_t -} /* fcntl.h:172:1 */ - -type syscall_arg_t = int32 /* syscall.h:22:14 */ - -func Xopendir(tls *TLS, name uintptr) uintptr { /* opendir.c:8:5: */ - var fd int32 - var dir uintptr - - if AssignInt32(&fd, Xopen(tls, name, 00|0200000|02000000, 0)) < 0 { - return uintptr(0) - } - if !(int32(AssignUintptr(&dir, Xcalloc(tls, uint32(1), uint32(unsafe.Sizeof(DIR{}))))) != 0) { - X__syscall1(tls, 6, int32(fd)) - return uintptr(0) - } - (*DIR)(unsafe.Pointer(dir)).fd = fd - return dir -} - -type max_align_t = struct { - __ll int64 - __ld float64 -} /* alltypes.h:51:66 */ - -type dirstream_buf_alignment_check = [1]int8 /* readdir.c:7:14 */ - -func Xreaddir(tls *TLS, dir uintptr) uintptr { /* readdir.c:10:15: */ - var de uintptr - - if (*DIR)(unsafe.Pointer(dir)).buf_pos >= (*DIR)(unsafe.Pointer(dir)).buf_end { - var len int32 = int32(X__syscall3(tls, 220, int32((*DIR)(unsafe.Pointer(dir)).fd), int32(dir+24), int32(unsafe.Sizeof([2048]int8{})))) - if len <= 0 { - if len < 0 && len != -2 { - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = -len - } - return uintptr(0) - } - (*DIR)(unsafe.Pointer(dir)).buf_end = len - (*DIR)(unsafe.Pointer(dir)).buf_pos = 0 - } - de = dir + 24 + uintptr((*DIR)(unsafe.Pointer(dir)).buf_pos) - *(*int32)(unsafe.Pointer(dir + 12)) += int32((*dirent)(unsafe.Pointer(de)).d_reclen) - (*DIR)(unsafe.Pointer(dir)).tell = (*dirent)(unsafe.Pointer(de)).d_off - return de -} - -type uintptr_t = uint32 /* alltypes.h:78:24 */ - -type int8_t = int8 /* alltypes.h:119:25 */ - -type int16_t = int16 /* alltypes.h:124:25 */ - -type int32_t = int32 /* alltypes.h:129:25 */ - -type int64_t = int64 /* alltypes.h:134:25 */ - -type intmax_t = int64 /* alltypes.h:139:25 */ - -type uint8_t = uint8 /* alltypes.h:144:25 */ - -type uintmax_t = uint64 /* alltypes.h:169:25 */ - -type int_fast8_t = int8_t /* stdint.h:22:16 */ -type int_fast64_t = int64_t /* stdint.h:23:17 */ - -type int_least8_t = int8_t /* stdint.h:25:17 */ -type int_least16_t = int16_t /* stdint.h:26:17 */ -type int_least32_t = int32_t /* stdint.h:27:17 */ -type int_least64_t = int64_t /* stdint.h:28:17 */ - -type uint_fast8_t = uint8_t /* stdint.h:30:17 */ -type uint_fast64_t = uint64_t /* stdint.h:31:18 */ - -type uint_least8_t = uint8_t /* stdint.h:33:18 */ -type uint_least16_t = uint16_t /* stdint.h:34:18 */ -type uint_least32_t = uint32_t /* stdint.h:35:18 */ -type uint_least64_t = uint64_t /* stdint.h:36:18 */ - -type int_fast16_t = int32_t /* stdint.h:1:17 */ -type int_fast32_t = int32_t /* stdint.h:2:17 */ -type uint_fast16_t = uint32_t /* stdint.h:3:18 */ -type uint_fast32_t = uint32_t /* stdint.h:4:18 */ - -type _IO_FILE = struct { - flags uint32 - rpos uintptr - rend uintptr - close uintptr - wend uintptr - wpos uintptr - mustbezero_1 uintptr - wbase uintptr - read uintptr - write uintptr - seek uintptr - buf uintptr - buf_size size_t - prev uintptr - next uintptr - fd int32 - pipe_pid int32 - lockcount int32 - mode int32 - lock int32 - lbf int32 - cookie uintptr - off off_t - getln_buf uintptr - mustbezero_2 uintptr - shend uintptr - shlim off_t - shcnt off_t - prev_locked uintptr - next_locked uintptr - locale uintptr -} /* alltypes.h:343:9 */ - -type FILE = _IO_FILE /* alltypes.h:343:25 */ - -type va_list = uintptr /* alltypes.h:349:27 */ - -type _G_fpos64_t = struct { - _ [0]uint32 - __opaque [16]int8 -} /* stdio.h:54:9 */ - -type fpos_t = _G_fpos64_t /* stdio.h:58:3 */ - -type float_t = float64 /* alltypes.h:38:21 */ - -type double_t = float64 /* alltypes.h:43:21 */ - -func __FLOAT_BITS(tls *TLS, __f float32) uint32 { /* math.h:55:26: */ - bp := tls.Alloc(4) - defer tls.Free(4) - - // var __u struct {__f float32;} at bp, 4 - - *(*float32)(unsafe.Pointer(bp)) = __f - return *(*uint32)(unsafe.Pointer(bp)) -} - -func __DOUBLE_BITS(tls *TLS, __f float64) uint64 { /* math.h:61:36: */ - bp := tls.Alloc(8) - defer tls.Free(8) - - // var __u struct {__f float64;} at bp, 8 - - *(*float64)(unsafe.Pointer(bp)) = __f - return *(*uint64)(unsafe.Pointer(bp)) -} - -type __pthread = struct { - self uintptr - dtv uintptr - prev uintptr - next uintptr - sysinfo uintptr_t - canary uintptr_t - canary2 uintptr_t - tid int32 - errno_val int32 - detach_state int32 - cancel int32 - canceldisable uint8 - cancelasync uint8 - tsd_used uint8 /* unsigned char tsd_used: 1, unsigned char dlerror_flag: 1 */ - _ [1]byte - map_base uintptr - map_size size_t - stack uintptr - stack_size size_t - guard_size size_t - result uintptr - cancelbuf uintptr - tsd uintptr - robust_list struct { - head uintptr - off int32 - pending uintptr - } - timer_id int32 - locale locale_t - killlock [1]int32 - dlerror_buf uintptr - stdio_locks uintptr - canary_at_end uintptr_t - dtv_copy uintptr -} /* alltypes.h:296:9 */ - -func scanexp(tls *TLS, f uintptr, pok int32) int64 { /* floatscan.c:37:18: */ - var c int32 - var x int32 - var y int64 - var neg int32 = 0 - - c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() - if c == '+' || c == '-' { - neg = Bool32(c == '-') - c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() - if uint32(c-'0') >= 10 && pok != 0 { - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - } - } - if uint32(c-'0') >= 10 { - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - return -0x7fffffffffffffff - int64(1) - } - for x = 0; uint32(c-'0') < 10 && x < 0x7fffffff/10; c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() { - x = 10*x + c - '0' - } - for y = int64(x); uint32(c-'0') < 10 && y < 0x7fffffffffffffff/int64(100); c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() { - y = int64(10)*y + int64(c) - int64('0') - } - for ; uint32(c-'0') < 10; c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() { - } - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - if neg != 0 { - return -y - } - return y -} - -func decfloat(tls *TLS, f uintptr, c int32, bits int32, emin int32, sign int32, pok int32) float64 { /* floatscan.c:64:20: */ - bp := tls.Alloc(512) - defer tls.Free(512) - - // var x [128]uint32_t at bp, 512 - - var i int32 - var j int32 - var k int32 - var a int32 - var z int32 - var lrp int64 = int64(0) - var dc int64 = int64(0) - var e10 int64 = int64(0) - var lnz int32 = 0 - var gotdig int32 = 0 - var gotrad int32 = 0 - var rp int32 - var e2 int32 - var emax int32 = -emin - bits + 3 - var denormal int32 = 0 - var y float64 - var frac float64 = float64(0) - var bias float64 = float64(0) - - j = 0 - k = 0 - - // Don't let leading zeros consume buffer space - for ; c == '0'; c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() { - gotdig = 1 - } - if c == '.' { - gotrad = 1 - for c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }(); c == '0'; c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() { - gotdig = 1 - lrp-- - } - } - - *(*uint32_t)(unsafe.Pointer(bp)) = uint32_t(0) - for ; uint32(c-'0') < 10 || c == '.'; c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() { - if c == '.' { - if gotrad != 0 { - break - } - gotrad = 1 - lrp = dc - } else if k < 128-3 { - dc++ - if c != '0' { - lnz = int32(dc) - } - if j != 0 { - *(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4)) = *(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4))*uint32_t(10) + uint32_t(c) - uint32_t('0') - } else { - *(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4)) = uint32_t(c - '0') - } - if PreIncInt32(&j, 1) == 9 { - k++ - j = 0 - } - gotdig = 1 - } else { - dc++ - if c != '0' { - lnz = (128 - 4) * 9 - *(*uint32_t)(unsafe.Pointer(bp + 124*4)) |= uint32_t(1) - } - } - } - if !(gotrad != 0) { - lrp = dc - } - - if gotdig != 0 && c|32 == 'e' { - e10 = scanexp(tls, f, pok) - if e10 == -0x7fffffffffffffff-int64(1) { - if pok != 0 { - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - } else { - X__shlim(tls, f, int64(0)) - return float64(0) - } - e10 = int64(0) - } - lrp = lrp + e10 - } else if c >= 0 { - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - } - if !(gotdig != 0) { - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 22 - X__shlim(tls, f, int64(0)) - return float64(0) - } - - // Handle zero specially to avoid nasty special cases later - if !(int32(*(*uint32_t)(unsafe.Pointer(bp))) != 0) { - return float64(sign) * 0.0 - } - - // Optimize small integers (w/no exponent) and over/under-flow - if lrp == dc && dc < int64(10) && (bits > 30 || *(*uint32_t)(unsafe.Pointer(bp))>>bits == uint32_t(0)) { - return float64(sign) * float64(*(*uint32_t)(unsafe.Pointer(bp))) - } - if lrp > int64(-emin/2) { - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 34 - return float64(sign) * 1.79769313486231570815e+308 * 1.79769313486231570815e+308 - } - if lrp < int64(emin-2*53) { - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 34 - return float64(sign) * 2.22507385850720138309e-308 * 2.22507385850720138309e-308 - } - - // Align incomplete final B1B digit - if j != 0 { - for ; j < 9; j++ { - *(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4)) *= uint32_t(10) - } - k++ - j = 0 - } - - a = 0 - z = k - e2 = 0 - rp = int32(lrp) - - // Optimize small to mid-size integers (even in exp. notation) - if lnz < 9 && lnz <= rp && rp < 18 { - if rp == 9 { - return float64(sign) * float64(*(*uint32_t)(unsafe.Pointer(bp))) - } - if rp < 9 { - return float64(sign) * float64(*(*uint32_t)(unsafe.Pointer(bp))) / float64(_sp10s[8-rp]) - } - var bitlim int32 = bits - 3*(rp-9) - if bitlim > 30 || *(*uint32_t)(unsafe.Pointer(bp))>>bitlim == uint32_t(0) { - return float64(sign) * float64(*(*uint32_t)(unsafe.Pointer(bp))) * float64(_sp10s[rp-10]) - } - } - - // Drop trailing zeros - for ; !(int32(*(*uint32_t)(unsafe.Pointer(bp + uintptr(z-1)*4))) != 0); z-- { - } - - // Align radix point to B1B digit boundary - if rp%9 != 0 { - var rpm9 int32 - if rp >= 0 { - rpm9 = rp % 9 - } else { - rpm9 = rp%9 + 9 - } - var p10 int32 = _sp10s[8-rpm9] - var carry uint32_t = uint32_t(0) - for k = a; k != z; k++ { - var tmp uint32_t = *(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4)) % uint32_t(p10) - *(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4)) = *(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4))/uint32_t(p10) + carry - carry = uint32_t(1000000000/p10) * tmp - if k == a && !(int32(*(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4))) != 0) { - a = (a + 1) & (128 - 1) - rp = rp - 9 - } - } - if carry != 0 { - *(*uint32_t)(unsafe.Pointer(bp + uintptr(PostIncInt32(&z, 1))*4)) = carry - } - rp = rp + (9 - rpm9) - } - - // Upscale until desired number of bits are left of radix point - for rp < 9*2 || rp == 9*2 && *(*uint32_t)(unsafe.Pointer(bp + uintptr(a)*4)) < _sth[0] { - var carry uint32_t = uint32_t(0) - e2 = e2 - 29 - for k = (z - 1) & (128 - 1); ; k = (k - 1) & (128 - 1) { - var tmp uint64_t = uint64_t(*(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4)))<<29 + uint64_t(carry) - if tmp > uint64(1000000000) { - carry = uint32_t(tmp / uint64(1000000000)) - *(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4)) = uint32_t(tmp % uint64(1000000000)) - } else { - carry = uint32_t(0) - *(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4)) = uint32_t(tmp) - } - if k == (z-1)&(128-1) && k != a && !(int32(*(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4))) != 0) { - z = k - } - if k == a { - break - } - } - if carry != 0 { - rp = rp + 9 - a = (a - 1) & (128 - 1) - if a == z { - z = (z - 1) & (128 - 1) - *(*uint32_t)(unsafe.Pointer(bp + uintptr((z-1)&(128-1))*4)) |= *(*uint32_t)(unsafe.Pointer(bp + uintptr(z)*4)) - } - *(*uint32_t)(unsafe.Pointer(bp + uintptr(a)*4)) = carry - } - } - - // Downscale until exactly number of bits are left of radix point - for { - var carry uint32_t = uint32_t(0) - var sh int32 = 1 - for i = 0; i < 2; i++ { - k = (a + i) & (128 - 1) - if k == z || *(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4)) < _sth[i] { - i = 2 - break - } - if *(*uint32_t)(unsafe.Pointer(bp + uintptr((a+i)&(128-1))*4)) > _sth[i] { - break - } - } - if i == 2 && rp == 9*2 { - break - } - // FIXME: find a way to compute optimal sh - if rp > 9+9*2 { - sh = 9 - } - e2 = e2 + sh - for k = a; k != z; k = (k + 1) & (128 - 1) { - var tmp uint32_t = *(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4)) & uint32_t(int32(1)<>sh + carry - carry = uint32_t(int32(1000000000)>>sh) * tmp - if k == a && !(int32(*(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4))) != 0) { - a = (a + 1) & (128 - 1) - i-- - rp = rp - 9 - } - } - if carry != 0 { - if (z+1)&(128-1) != a { - *(*uint32_t)(unsafe.Pointer(bp + uintptr(z)*4)) = carry - z = (z + 1) & (128 - 1) - } else { - *(*uint32_t)(unsafe.Pointer(bp + uintptr((z-1)&(128-1))*4)) |= uint32_t(1) - } - } - } - - // Assemble desired bits into floating point variable - for y = float64(AssignInt32(&i, 0)); i < 2; i++ { - if (a+i)&(128-1) == z { - *(*uint32_t)(unsafe.Pointer(bp + uintptr(AssignInt32(&z, (z+1)&(128-1))-1)*4)) = uint32_t(0) - } - y = 1000000000.0*y + float64(*(*uint32_t)(unsafe.Pointer(bp + uintptr((a+i)&(128-1))*4))) - } - - y = y * float64(sign) - - // Limit precision for denormal results - if bits > 53+e2-emin { - bits = 53 + e2 - emin - if bits < 0 { - bits = 0 - } - denormal = 1 - } - - // Calculate bias term to force rounding, move out lower bits - if bits < 53 { - bias = Xcopysignl(tls, Xscalbn(tls, float64(1), 2*53-bits-1), y) - frac = Xfmodl(tls, y, Xscalbn(tls, float64(1), 53-bits)) - y = y - frac - y = y + bias - } - - // Process tail of decimal input so it can affect rounding - if (a+i)&(128-1) != z { - var t uint32_t = *(*uint32_t)(unsafe.Pointer(bp + uintptr((a+i)&(128-1))*4)) - if t < uint32_t(500000000) && (t != 0 || (a+i+1)&(128-1) != z) { - frac = frac + 0.25*float64(sign) - } else if t > uint32_t(500000000) { - frac = frac + 0.75*float64(sign) - } else if t == uint32_t(500000000) { - if (a+i+1)&(128-1) == z { - frac = frac + 0.5*float64(sign) - } else { - frac = frac + 0.75*float64(sign) - } - } - if 53-bits >= 2 && !(Xfmodl(tls, frac, float64(1)) != 0) { - frac += 1 - } - } - - y = y + frac - y = y - bias - - if (e2+53)&0x7fffffff > emax-5 { - if Xfabsl(tls, y) >= float64(float64(2))/2.22044604925031308085e-16 { - if denormal != 0 && bits == 53+e2-emin { - denormal = 0 - } - y = y * 0.5 - e2++ - } - if e2+53 > emax || denormal != 0 && frac != 0 { - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 34 - } - } - - return Xscalbnl(tls, y, e2) -} - -var _sth = [2]uint32_t{uint32_t(9007199), uint32_t(254740991)} /* floatscan.c:67:24 */ -var _sp10s = [8]int32{10, 100, 1000, 10000, - 100000, 1000000, 10000000, 100000000} /* floatscan.c:80:19 */ - -func hexfloat(tls *TLS, f uintptr, bits int32, emin int32, sign int32, pok int32) float64 { /* floatscan.c:315:20: */ - var x uint32_t = uint32_t(0) - var y float64 = float64(0) - var scale float64 = float64(1) - var bias float64 = float64(0) - var gottail int32 = 0 - var gotrad int32 = 0 - var gotdig int32 = 0 - var rp int64 = int64(0) - var dc int64 = int64(0) - var e2 int64 = int64(0) - var d int32 - var c int32 - - c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() - - // Skip leading zeros - for ; c == '0'; c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() { - gotdig = 1 - } - - if c == '.' { - gotrad = 1 - c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() - // Count zeros after the radix point before significand - rp = int64(0) - __1: - if !(c == '0') { - goto __3 - } - gotdig = 1 - goto __2 - __2: - c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() - rp-- - goto __1 - goto __3 - __3: - } - - for ; uint32(c-'0') < 10 || uint32(c|32-'a') < 6 || c == '.'; c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() { - if c == '.' { - if gotrad != 0 { - break - } - rp = dc - gotrad = 1 - } else { - gotdig = 1 - if c > '9' { - d = c | 32 + 10 - 'a' - } else { - d = c - '0' - } - if dc < int64(8) { - x = x*uint32_t(16) + uint32_t(d) - } else if dc < int64(53/4+1) { - y = y + float64(d)*AssignDivFloat64(&scale, float64(16)) - } else if d != 0 && !(gottail != 0) { - y = y + 0.5*scale - gottail = 1 - } - dc++ - } - } - if !(gotdig != 0) { - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - if pok != 0 { - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - if gotrad != 0 { - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - } - } else { - X__shlim(tls, f, int64(0)) - } - return float64(sign) * 0.0 - } - if !(gotrad != 0) { - rp = dc - } - for dc < int64(8) { - x = x * uint32_t(16) - dc++ - } - if c|32 == 'p' { - e2 = scanexp(tls, f, pok) - if e2 == -0x7fffffffffffffff-int64(1) { - if pok != 0 { - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - } else { - X__shlim(tls, f, int64(0)) - return float64(0) - } - e2 = int64(0) - } - } else { - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - } - e2 = e2 + (int64(4)*rp - int64(32)) - - if !(x != 0) { - return float64(sign) * 0.0 - } - if e2 > int64(-emin) { - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 34 - return float64(sign) * 1.79769313486231570815e+308 * 1.79769313486231570815e+308 - } - if e2 < int64(emin-2*53) { - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 34 - return float64(sign) * 2.22507385850720138309e-308 * 2.22507385850720138309e-308 - } - - for x < 0x80000000 { - if y >= 0.5 { - x = x + (x + uint32_t(1)) - y = y + (y - float64(1)) - } else { - x = x + x - y = y + y - } - e2-- - } - - if int64(bits) > int64(32)+e2-int64(emin) { - bits = int32(int64(32) + e2 - int64(emin)) - if bits < 0 { - bits = 0 - } - } - - if bits < 53 { - bias = Xcopysignl(tls, Xscalbn(tls, float64(1), 32+53-bits-1), float64(sign)) - } - - if bits < 32 && y != 0 && !(x&uint32_t(1) != 0) { - x++ - y = float64(0) - } - - y = bias + float64(sign)*float64(x) + float64(sign)*y - y = y - bias - - if !(y != 0) { - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 34 - } - - return Xscalbnl(tls, y, int32(e2)) -} - -func X__floatscan(tls *TLS, f uintptr, prec int32, pok int32) float64 { /* floatscan.c:427:13: */ - var sign int32 = 1 - var i size_t - var bits int32 - var emin int32 - var c int32 - - switch prec { - case 0: - bits = 24 - emin = -125 - bits - break - case 1: - bits = 53 - emin = -1021 - bits - break - case 2: - bits = 53 - emin = -1021 - bits - break - default: - return float64(0) - } - - for __isspace(tls, AssignInt32(&c, func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }())) != 0 { - } - - if c == '+' || c == '-' { - sign = sign - 2*Bool32(c == '-') - c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() - } - - for i = size_t(0); i < size_t(8) && c|32 == int32(*(*int8)(unsafe.Pointer(ts /* "infinity" */ + uintptr(i)))); i++ { - if i < size_t(7) { - c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() - } - } - if i == size_t(3) || i == size_t(8) || i > size_t(3) && pok != 0 { - if i != size_t(8) { - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - if pok != 0 { - for ; i > size_t(3); i-- { - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - } - } - } - return float64(float32(sign) * X__builtin_inff(tls)) - } - if !(i != 0) { - for i = size_t(0); i < size_t(3) && c|32 == int32(*(*int8)(unsafe.Pointer(ts + 9 /* "nan" */ + uintptr(i)))); i++ { - if i < size_t(2) { - c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() - } - } - } - if i == size_t(3) { - if func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() != '(' { - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - return float64(X__builtin_nanf(tls, ts+13)) - } - for i = size_t(1); ; i++ { - c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() - if uint32(c-'0') < 10 || uint32(c-'A') < 26 || uint32(c-'a') < 26 || c == '_' { - continue - } - if c == ')' { - return float64(X__builtin_nanf(tls, ts+13)) - } - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - if !(pok != 0) { - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 22 - X__shlim(tls, f, int64(0)) - return float64(0) - } - for PostDecUint32(&i, 1) != 0 { - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - } - return float64(X__builtin_nanf(tls, ts+13)) - } - return float64(X__builtin_nanf(tls, ts+13)) - } - - if i != 0 { - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 22 - X__shlim(tls, f, int64(0)) - return float64(0) - } - - if c == '0' { - c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() - if c|32 == 'x' { - return hexfloat(tls, f, bits, emin, sign, pok) - } - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - c = '0' - } - - return decfloat(tls, f, c, bits, emin, sign, pok) -} - -// Lookup table for digit values. -1==255>=36 -> invalid -var table1 = [257]uint8{Uint8FromInt32(-1), - Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), - Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), - Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), - uint8(0), uint8(1), uint8(2), uint8(3), uint8(4), uint8(5), uint8(6), uint8(7), uint8(8), uint8(9), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), - Uint8FromInt32(-1), uint8(10), uint8(11), uint8(12), uint8(13), uint8(14), uint8(15), uint8(16), uint8(17), uint8(18), uint8(19), uint8(20), uint8(21), uint8(22), uint8(23), uint8(24), - uint8(25), uint8(26), uint8(27), uint8(28), uint8(29), uint8(30), uint8(31), uint8(32), uint8(33), uint8(34), uint8(35), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), - Uint8FromInt32(-1), uint8(10), uint8(11), uint8(12), uint8(13), uint8(14), uint8(15), uint8(16), uint8(17), uint8(18), uint8(19), uint8(20), uint8(21), uint8(22), uint8(23), uint8(24), - uint8(25), uint8(26), uint8(27), uint8(28), uint8(29), uint8(30), uint8(31), uint8(32), uint8(33), uint8(34), uint8(35), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), - Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), - Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), - Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), - Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), - Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), - Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), - Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), - Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), -} /* intscan.c:7:28 */ - -func X__intscan(tls *TLS, f uintptr, base uint32, pok int32, lim uint64) uint64 { /* intscan.c:26:20: */ - var val uintptr - var c int32 - var neg int32 - var x uint32 - var y uint64 - var bs int32 - val = uintptr(unsafe.Pointer(&table1)) + uintptr(1) - neg = 0 - if !(base > uint32(36) || base == uint32(1)) { - goto __1 - } - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 22 - return uint64(0) -__1: - ; -__2: - if !(__isspace(tls, AssignInt32(&c, func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }())) != 0) { - goto __3 - } - goto __2 -__3: - ; - if !(c == '+' || c == '-') { - goto __4 - } - neg = -Bool32(c == '-') - c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() -__4: - ; - if !((base == uint32(0) || base == uint32(16)) && c == '0') { - goto __5 - } - c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() - if !(c|32 == 'x') { - goto __7 - } - c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() - if !(int32(*(*uint8)(unsafe.Pointer(val + uintptr(c)))) >= 16) { - goto __9 - } - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - if !(pok != 0) { - goto __10 - } - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - goto __11 -__10: - X__shlim(tls, f, int64(0)) -__11: - ; - return uint64(0) -__9: - ; - base = uint32(16) - goto __8 -__7: - if !(base == uint32(0)) { - goto __12 - } - base = uint32(8) -__12: - ; -__8: - ; - goto __6 -__5: - if !(base == uint32(0)) { - goto __13 - } - base = uint32(10) -__13: - ; - if !(uint32(*(*uint8)(unsafe.Pointer(val + uintptr(c)))) >= base) { - goto __14 - } - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - X__shlim(tls, f, int64(0)) - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 22 - return uint64(0) -__14: - ; -__6: - ; - if !(base == uint32(10)) { - goto __15 - } - x = uint32(0) -__17: - if !(uint32(c-'0') < 10 && x <= 0xffffffff/uint32(10)-uint32(1)) { - goto __19 - } - x = x*uint32(10) + uint32(c-'0') - goto __18 -__18: - c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() - goto __17 - goto __19 -__19: - ; - y = uint64(x) -__20: - if !(uint32(c-'0') < 10 && y <= (2*uint64(0x7fffffffffffffff)+uint64(1))/uint64(10) && uint64(10)*y <= 2*uint64(0x7fffffffffffffff)+uint64(1)-uint64(c-'0')) { - goto __22 - } - y = y*uint64(10) + uint64(c-'0') - goto __21 -__21: - c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() - goto __20 - goto __22 -__22: - ; - if !(uint32(c-'0') >= 10) { - goto __23 - } - goto done -__23: - ; - goto __16 -__15: - if !!(base&(base-uint32(1)) != 0) { - goto __24 - } - bs = int32(*(*int8)(unsafe.Pointer(ts + 14 + uintptr(uint32(0x17)*base>>5&uint32(7))))) - x = uint32(0) -__26: - if !(uint32(*(*uint8)(unsafe.Pointer(val + uintptr(c)))) < base && x <= 0xffffffff/uint32(32)) { - goto __28 - } - x = x<>bs) { - goto __31 - } - y = y<= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - if !(y >= lim) { - goto __43 - } - if !(!(lim&uint64(1) != 0) && !(neg != 0)) { - goto __44 - } - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 34 - return lim - uint64(1) - goto __45 -__44: - if !(y > lim) { - goto __46 - } - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 34 - return lim -__46: - ; -__45: - ; -__43: - ; - return y ^ uint64(neg) - uint64(neg) -} - -// The shcnt field stores the number of bytes read so far, offset by -// the value of buf-rpos at the last function call (__shlim or __shgetc), -// so that between calls the inline shcnt macro can add rpos-buf to get -// the actual count. - -func X__shlim(tls *TLS, f uintptr, lim off_t) { /* shgetc.c:8:6: */ - (*FILE)(unsafe.Pointer(f)).shlim = lim - (*FILE)(unsafe.Pointer(f)).shcnt = off_t((int32((*FILE)(unsafe.Pointer(f)).buf) - int32((*FILE)(unsafe.Pointer(f)).rpos)) / 1) - // If lim is nonzero, rend must be a valid pointer. - if lim != 0 && off_t((int32((*FILE)(unsafe.Pointer(f)).rend)-int32((*FILE)(unsafe.Pointer(f)).rpos))/1) > lim { - (*FILE)(unsafe.Pointer(f)).shend = (*FILE)(unsafe.Pointer(f)).rpos + uintptr(lim) - } else { - (*FILE)(unsafe.Pointer(f)).shend = (*FILE)(unsafe.Pointer(f)).rend - } -} - -func X__shgetc(tls *TLS, f uintptr) int32 { /* shgetc.c:19:5: */ - var c int32 - var cnt off_t = (*FILE)(unsafe.Pointer(f)).shcnt + off_t((int32((*FILE)(unsafe.Pointer(f)).rpos)-int32((*FILE)(unsafe.Pointer(f)).buf))/1) - if (*FILE)(unsafe.Pointer(f)).shlim != 0 && cnt >= (*FILE)(unsafe.Pointer(f)).shlim || AssignInt32(&c, X__uflow(tls, f)) < 0 { - (*FILE)(unsafe.Pointer(f)).shcnt = off_t((int32((*FILE)(unsafe.Pointer(f)).buf)-int32((*FILE)(unsafe.Pointer(f)).rpos))/1) + cnt - (*FILE)(unsafe.Pointer(f)).shend = (*FILE)(unsafe.Pointer(f)).rpos - (*FILE)(unsafe.Pointer(f)).shlim = int64(-1) - return -1 - } - cnt++ - if (*FILE)(unsafe.Pointer(f)).shlim != 0 && off_t((int32((*FILE)(unsafe.Pointer(f)).rend)-int32((*FILE)(unsafe.Pointer(f)).rpos))/1) > (*FILE)(unsafe.Pointer(f)).shlim-cnt { - (*FILE)(unsafe.Pointer(f)).shend = (*FILE)(unsafe.Pointer(f)).rpos + uintptr((*FILE)(unsafe.Pointer(f)).shlim-cnt) - } else { - (*FILE)(unsafe.Pointer(f)).shend = (*FILE)(unsafe.Pointer(f)).rend - } - (*FILE)(unsafe.Pointer(f)).shcnt = off_t((int32((*FILE)(unsafe.Pointer(f)).buf)-int32((*FILE)(unsafe.Pointer(f)).rpos))/1) + cnt - if (*FILE)(unsafe.Pointer(f)).rpos <= (*FILE)(unsafe.Pointer(f)).buf { - *(*uint8)(unsafe.Pointer((*FILE)(unsafe.Pointer(f)).rpos + UintptrFromInt32(-1))) = uint8(c) - } - return c -} - -type lconv = struct { - decimal_point uintptr - thousands_sep uintptr - grouping uintptr - int_curr_symbol uintptr - currency_symbol uintptr - mon_decimal_point uintptr - mon_thousands_sep uintptr - mon_grouping uintptr - positive_sign uintptr - negative_sign uintptr - int_frac_digits int8 - frac_digits int8 - p_cs_precedes int8 - p_sep_by_space int8 - n_cs_precedes int8 - n_sep_by_space int8 - p_sign_posn int8 - n_sign_posn int8 - int_p_cs_precedes int8 - int_p_sep_by_space int8 - int_n_cs_precedes int8 - int_n_sep_by_space int8 - int_p_sign_posn int8 - int_n_sign_posn int8 - _ [2]byte -} /* locale.h:24:1 */ - -// Support signed or unsigned plain-char - -// Implementation choices... - -// Arbitrary numbers... - -// POSIX/SUS requirements follow. These numbers come directly -// from SUS and have nothing to do with the host system. - -var posix_lconv = lconv{decimal_point: ts + 23, thousands_sep: ts + 13, grouping: ts + 13, int_curr_symbol: ts + 13, currency_symbol: ts + 13, mon_decimal_point: ts + 13, mon_thousands_sep: ts + 13, mon_grouping: ts + 13, positive_sign: ts + 13, negative_sign: ts + 13, int_frac_digits: Int8FromInt32(255), frac_digits: Int8FromInt32(255), p_cs_precedes: Int8FromInt32(255), p_sep_by_space: Int8FromInt32(255), n_cs_precedes: Int8FromInt32(255), n_sep_by_space: Int8FromInt32(255), p_sign_posn: Int8FromInt32(255), n_sign_posn: Int8FromInt32(255), int_p_cs_precedes: Int8FromInt32(255), int_p_sep_by_space: Int8FromInt32(255), int_n_cs_precedes: Int8FromInt32(255), int_n_sep_by_space: Int8FromInt32(255), int_p_sign_posn: Int8FromInt32(255), int_n_sign_posn: Int8FromInt32(255)} /* localeconv.c:4:27 */ - -func Xlocaleconv(tls *TLS) uintptr { /* localeconv.c:31:14: */ - return uintptr(unsafe.Pointer(&posix_lconv)) -} - -func X__fpclassify(tls *TLS, x float64) int32 { /* __fpclassify.c:4:5: */ - bp := tls.Alloc(8) - defer tls.Free(8) - - *(*struct{ f float64 })(unsafe.Pointer(bp)) = func() (r struct{ f float64 }) { - *(*float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = x - return r - }() - var e int32 = int32(*(*uint64_t)(unsafe.Pointer(bp)) >> 52 & uint64(0x7ff)) - if !(e != 0) { - if *(*uint64_t)(unsafe.Pointer(bp))<<1 != 0 { - return 3 - } - return 2 - } - if e == 0x7ff { - if *(*uint64_t)(unsafe.Pointer(bp))<<12 != 0 { - return 0 - } - return 1 - } - return 4 -} - -func X__fpclassifyf(tls *TLS, x float32) int32 { /* __fpclassifyf.c:4:5: */ - bp := tls.Alloc(4) - defer tls.Free(4) - - *(*struct{ f float32 })(unsafe.Pointer(bp)) = func() (r struct{ f float32 }) { - *(*float32)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = x - return r - }() - var e int32 = int32(*(*uint32_t)(unsafe.Pointer(bp)) >> 23 & uint32_t(0xff)) - if !(e != 0) { - if *(*uint32_t)(unsafe.Pointer(bp))<<1 != 0 { - return 3 - } - return 2 - } - if e == 0xff { - if *(*uint32_t)(unsafe.Pointer(bp))<<9 != 0 { - return 0 - } - return 1 - } - return 4 -} - -func X__fpclassifyl(tls *TLS, x float64) int32 { /* __fpclassifyl.c:4:5: */ - return X__fpclassify(tls, x) -} - -func Xcopysignl(tls *TLS, x float64, y float64) float64 { /* copysignl.c:4:13: */ - return Xcopysign(tls, x, y) -} - -func Xfabsl(tls *TLS, x float64) float64 { /* fabsl.c:3:13: */ - return Xfabs(tls, x) -} - -func Xfmodl(tls *TLS, x float64, y float64) float64 { /* fmodl.c:4:13: */ - return Xfmod(tls, x, y) -} - -func Xnanf(tls *TLS, s uintptr) float32 { /* nanf.c:3:7: */ - return X__builtin_nanf(tls, ts+13) -} - -var toint double_t = float64(float64(1)) / 2.22044604925031308085e-16 /* rint.c:10:23 */ - -func Xrint(tls *TLS, x float64) float64 { /* rint.c:12:8: */ - bp := tls.Alloc(8) - defer tls.Free(8) - - *(*struct{ f float64 })(unsafe.Pointer(bp)) = func() (r struct{ f float64 }) { - *(*float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = x - return r - }() - var e int32 = int32(*(*uint64_t)(unsafe.Pointer(bp)) >> 52 & uint64(0x7ff)) - var s int32 = int32(*(*uint64_t)(unsafe.Pointer(bp)) >> 63) - var y double_t - - if e >= 0x3ff+52 { - return x - } - if s != 0 { - y = x - toint + toint - } else { - y = x + toint - toint - } - if y == float64(0) { - if s != 0 { - return -Float64FromFloat64(0.0) - } - return float64(0) - } - return y -} - -func Xscalbn(tls *TLS, x float64, n int32) float64 { /* scalbn.c:4:8: */ - bp := tls.Alloc(8) - defer tls.Free(8) - - // var u struct {f float64;} at bp, 8 - - var y double_t = x - - if n > 1023 { - y = y * 0x1p1023 - n = n - 1023 - if n > 1023 { - y = y * 0x1p1023 - n = n - 1023 - if n > 1023 { - n = 1023 - } - } - } else if n < -1022 { - // make sure final n < -53 to avoid double - // rounding in the subnormal range - y = y * (float64(0x1p-1022) * 0x1p53) - n = n + (1022 - 53) - if n < -1022 { - y = y * (float64(0x1p-1022) * 0x1p53) - n = n + (1022 - 53) - if n < -1022 { - n = -1022 - } - } - } - *(*uint64_t)(unsafe.Pointer(bp)) = uint64_t(0x3ff+n) << 52 - x = y * *(*float64)(unsafe.Pointer(bp)) - return x -} - -func Xscalbnl(tls *TLS, x float64, n int32) float64 { /* scalbnl.c:4:13: */ - return Xscalbn(tls, x, n) -} - -// Support signed or unsigned plain-char - -// Implementation choices... - -// Arbitrary numbers... - -// POSIX/SUS requirements follow. These numbers come directly -// from SUS and have nothing to do with the host system. - -type __locale_map = struct { - __map uintptr - map_size size_t - name [24]int8 - next uintptr -} /* alltypes.h:366:9 */ - -type tls_module = struct { - next uintptr - image uintptr - len size_t - size size_t - align size_t - offset size_t -} /* libc.h:14:1 */ - -type __libc = struct { - can_do_threads int8 - threaded int8 - secure int8 - need_locks int8 - threads_minus_1 int32 - auxv uintptr - tls_head uintptr - tls_size size_t - tls_align size_t - tls_cnt size_t - page_size size_t - global_locale struct{ cat [6]uintptr } -} /* libc.h:20:1 */ - -type time_t = int64 /* alltypes.h:108:16 */ - -type clockid_t = int32 /* alltypes.h:237:13 */ - -type timespec = struct { - tv_sec time_t - tv_nsec int32 - __12 uint32 /* int : 32 */ -} /* alltypes.h:252:1 */ - -type pthread_t = uintptr /* alltypes.h:296:26 */ - -type pthread_once_t = int32 /* alltypes.h:302:13 */ - -type pthread_key_t = uint32 /* alltypes.h:307:18 */ - -type pthread_spinlock_t = int32 /* alltypes.h:312:13 */ - -type pthread_mutexattr_t = struct{ __attr uint32 } /* alltypes.h:317:37 */ - -type pthread_condattr_t = struct{ __attr uint32 } /* alltypes.h:322:37 */ - -type pthread_barrierattr_t = struct{ __attr uint32 } /* alltypes.h:327:37 */ - -type pthread_rwlockattr_t = struct{ __attr [2]uint32 } /* alltypes.h:332:40 */ - -type __sigset_t = struct{ __bits [32]uint32 } /* alltypes.h:372:9 */ - -type sigset_t = __sigset_t /* alltypes.h:372:71 */ - -type pthread_attr_t = struct{ __u struct{ __i [9]int32 } } /* alltypes.h:395:147 */ - -type pthread_mutex_t = struct{ __u struct{ __i [6]int32 } } /* alltypes.h:400:157 */ - -type pthread_cond_t = struct{ __u struct{ __i [12]int32 } } /* alltypes.h:410:112 */ - -type pthread_rwlock_t = struct{ __u struct{ __i [8]int32 } } /* alltypes.h:420:139 */ - -type pthread_barrier_t = struct{ __u struct{ __i [5]int32 } } /* alltypes.h:425:137 */ - -type sched_param = struct { - sched_priority int32 - __reserved1 int32 - __reserved2 [4]int32 - __reserved3 int32 -} /* sched.h:19:1 */ - -type timer_t = uintptr /* alltypes.h:232:14 */ - -type clock_t = int32 /* alltypes.h:242:14 */ - -type tm = struct { - tm_sec int32 - tm_min int32 - tm_hour int32 - tm_mday int32 - tm_mon int32 - tm_year int32 - tm_wday int32 - tm_yday int32 - tm_isdst int32 - tm_gmtoff int32 - tm_zone uintptr -} /* time.h:38:1 */ - -type itimerspec = struct { - it_interval struct { - tv_sec time_t - tv_nsec int32 - __12 uint32 /* int : 32 */ - } - it_value struct { - tv_sec time_t - tv_nsec int32 - __12 uint32 /* int : 32 */ - } -} /* time.h:80:1 */ - -type sigevent = struct { - sigev_value struct{ sival_int int32 } - sigev_signo int32 - sigev_notify int32 - sigev_notify_function uintptr - sigev_notify_attributes uintptr - __pad [44]int8 -} /* time.h:107:1 */ - -type __ptcb = struct { - __f uintptr - __x uintptr - __next uintptr -} /* alltypes.h:296:9 */ - -type sigaltstack = struct { - ss_sp uintptr - ss_flags int32 - ss_size size_t -} /* signal.h:44:9 */ - -type stack_t = sigaltstack /* signal.h:44:28 */ - -type greg_t = int32 /* signal.h:51:13 */ -type gregset_t = [19]int32 /* signal.h:51:21 */ -type _fpstate = struct { - cw uint32 - sw uint32 - tag uint32 - ipoff uint32 - cssel uint32 - dataoff uint32 - datasel uint32 - _st [8]struct { - significand [4]uint16 - exponent uint16 - } - status uint32 -} /* signal.h:52:9 */ - -type fpregset_t = uintptr /* signal.h:58:3 */ -type sigcontext = struct { - gs uint16 - __gsh uint16 - fs uint16 - __fsh uint16 - es uint16 - __esh uint16 - ds uint16 - __dsh uint16 - edi uint32 - esi uint32 - ebp uint32 - esp uint32 - ebx uint32 - edx uint32 - ecx uint32 - eax uint32 - trapno uint32 - err uint32 - eip uint32 - cs uint16 - __csh uint16 - eflags uint32 - esp_at_signal uint32 - ss uint16 - __ssh uint16 - fpstate uintptr - oldmask uint32 - cr2 uint32 -} /* signal.h:59:1 */ - -type mcontext_t = struct { - gregs gregset_t - fpregs fpregset_t - oldmask uint32 - cr2 uint32 -} /* signal.h:73:3 */ - -type __ucontext = struct { - uc_flags uint32 - uc_link uintptr - uc_stack stack_t - uc_mcontext mcontext_t - uc_sigmask sigset_t - __fpregs_mem [28]uint32 -} /* signal.h:86:9 */ - -type ucontext_t = __ucontext /* signal.h:93:3 */ - -type sigval = struct{ sival_int int32 } /* time.h:107:1 */ - -type siginfo_t = struct { - si_signo int32 - si_errno int32 - si_code int32 - __si_fields struct { - _ [0]uint32 - __pad [116]int8 - } -} /* signal.h:145:3 */ - -type sigaction = struct { - __sa_handler struct{ sa_handler uintptr } - sa_mask sigset_t - sa_flags int32 - sa_restorer uintptr -} /* signal.h:167:1 */ - -type sig_t = uintptr /* signal.h:251:14 */ - -type sig_atomic_t = int32 /* signal.h:269:13 */ - -func a_cas(tls *TLS, p uintptr, t int32, s int32) int32 { /* atomic_arch.h:2:19: */ - panic(`arch/i386/atomic_arch.h:4:2: assembler statements not supported`) - return t -} - -func a_swap(tls *TLS, p uintptr, v int32) int32 { /* atomic_arch.h:11:19: */ - panic(`arch/i386/atomic_arch.h:13:2: assembler statements not supported`) - return v -} - -func a_and(tls *TLS, p uintptr, v int32) { /* atomic_arch.h:29:20: */ - panic(`arch/i386/atomic_arch.h:31:2: assembler statements not supported`) -} - -func a_or(tls *TLS, p uintptr, v int32) { /* atomic_arch.h:37:20: */ - panic(`arch/i386/atomic_arch.h:39:2: assembler statements not supported`) -} - -func a_ctz_64(tls *TLS, x uint64_t) int32 { /* atomic_arch.h:87:19: */ - var r int32 - panic(`arch/i386/atomic_arch.h:90:2: assembler statements not supported`) - return r -} - -func a_ctz_32(tls *TLS, x uint32_t) int32 { /* atomic_arch.h:96:19: */ - var r int32 - panic(`arch/i386/atomic_arch.h:99:2: assembler statements not supported`) - return r -} - -func a_clz_32(tls *TLS, x uint32_t) int32 { /* atomic_arch.h:104:19: */ - panic(`arch/i386/atomic_arch.h:106:2: assembler statements not supported`) - return int32(x) -} - -func a_or_64(tls *TLS, p uintptr, v uint64_t) { /* atomic.h:220:20: */ - bp := tls.Alloc(8) - defer tls.Free(8) - - *(*struct{ v uint64_t })(unsafe.Pointer(bp)) = func() (r struct{ v uint64_t }) { - *(*uint64_t)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = v - return r - }() - if *(*uint32_t)(unsafe.Pointer(bp)) != 0 { - a_or(tls, p, int32(*(*uint32_t)(unsafe.Pointer(bp)))) - } - if *(*uint32_t)(unsafe.Pointer(bp + 1*4)) != 0 { - a_or(tls, p+uintptr(1)*4, int32(*(*uint32_t)(unsafe.Pointer(bp + 1*4)))) - } -} - -type a_cas_p_undefined_but_pointer_not_32bit = [1]int8 /* atomic.h:229:14 */ - -type __timer = struct { - timerid int32 - thread pthread_t -} /* pthread_impl.h:64:1 */ - -func __pthread_self(tls *TLS) uintptr { /* pthread_arch.h:1:30: */ - var self uintptr - panic(`arch/i386/pthread_arch.h:4:2: assembler statements not supported`) - return self -} - -func __wake(tls *TLS, addr uintptr, cnt int32, priv int32) { /* pthread_impl.h:155:20: */ - if priv != 0 { - priv = 128 - } - if cnt < 0 { - cnt = 0x7fffffff - } - _ = Bool32(X__syscall3(tls, 240, int32(addr), int32(1|priv), int32(cnt)) != -38 || X__syscall3(tls, 240, int32(addr), 1, int32(cnt)) != 0) -} - -func __futexwait(tls *TLS, addr uintptr, val int32, priv int32) { /* pthread_impl.h:162:20: */ - if priv != 0 { - priv = 128 - } - _ = Bool32(X__syscall4(tls, 240, int32(addr), int32(0|priv), int32(val), 0) != -38 || X__syscall4(tls, 240, int32(addr), 0, int32(val), 0) != 0) -} - -var X__fsmu8 = [51]uint32_t{ - func() uint32 { - if 0x2 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x2) - }(), func() uint32 { - if 0x3 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x3) - }(), func() uint32 { - if 0x4 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x4) - }(), func() uint32 { - if 0x5 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x5) - }(), func() uint32 { - if 0x6 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x6) - }(), func() uint32 { - if 0x7 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x7) - }(), - func() uint32 { - if 0x8 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x8) - }(), func() uint32 { - if 0x9 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x9) - }(), func() uint32 { - if 0xa < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0xa) - }(), func() uint32 { - if 0xb < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0xb) - }(), func() uint32 { - if 0xc < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0xc) - }(), func() uint32 { - if 0xd < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0xd) - }(), func() uint32 { - if 0xe < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0xe) - }(), func() uint32 { - if 0xf < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0xf) - }(), - func() uint32 { - if 0x0+16 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x0+16) - }(), func() uint32 { - if 0x1+16 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x1+16) - }(), func() uint32 { - if 0x2+16 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x2+16) - }(), func() uint32 { - if 0x3+16 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x3+16) - }(), func() uint32 { - if 0x4+16 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x4+16) - }(), func() uint32 { - if 0x5+16 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x5+16) - }(), func() uint32 { - if 0x6+16 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x6+16) - }(), func() uint32 { - if 0x7+16 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x7+16) - }(), - func() uint32 { - if 0x8+16 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x8+16) - }(), func() uint32 { - if 0x9+16 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x9+16) - }(), func() uint32 { - if 0xa+16 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0xa+16) - }(), func() uint32 { - if 0xb+16 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0xb+16) - }(), func() uint32 { - if 0xc+16 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0xc+16) - }(), func() uint32 { - if 0xd+16 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0xd+16) - }(), func() uint32 { - if 0xe+16 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0xe+16) - }(), func() uint32 { - if 0xf+16 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0xf+16) - }(), - func() uint32 { - if 0x0 == 0 { - return func() uint32 { - if Int32(0xa0) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0xa0)) - }() << 23 - } - return func() uint32 { - if 0x0 == 0xd { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xa0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(0x0), func() uint32 { - if 0x1 == 0 { - return func() uint32 { - if Int32(0xa0) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0xa0)) - }() << 23 - } - return func() uint32 { - if 0x1 == 0xd { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xa0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(0x1), func() uint32 { - if 0x2 == 0 { - return func() uint32 { - if Int32(0xa0) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0xa0)) - }() << 23 - } - return func() uint32 { - if 0x2 == 0xd { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xa0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(0x2), func() uint32 { - if 0x3 == 0 { - return func() uint32 { - if Int32(0xa0) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0xa0)) - }() << 23 - } - return func() uint32 { - if 0x3 == 0xd { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xa0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(0x3), func() uint32 { - if 0x4 == 0 { - return func() uint32 { - if Int32(0xa0) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0xa0)) - }() << 23 - } - return func() uint32 { - if 0x4 == 0xd { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xa0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(0x4), func() uint32 { - if 0x5 == 0 { - return func() uint32 { - if Int32(0xa0) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0xa0)) - }() << 23 - } - return func() uint32 { - if 0x5 == 0xd { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xa0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(0x5), func() uint32 { - if 0x6 == 0 { - return func() uint32 { - if Int32(0xa0) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0xa0)) - }() << 23 - } - return func() uint32 { - if 0x6 == 0xd { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xa0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(0x6), func() uint32 { - if 0x7 == 0 { - return func() uint32 { - if Int32(0xa0) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0xa0)) - }() << 23 - } - return func() uint32 { - if 0x7 == 0xd { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xa0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(0x7), - func() uint32 { - if 0x8 == 0 { - return func() uint32 { - if Int32(0xa0) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0xa0)) - }() << 23 - } - return func() uint32 { - if 0x8 == 0xd { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xa0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(0x8), func() uint32 { - if 0x9 == 0 { - return func() uint32 { - if Int32(0xa0) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0xa0)) - }() << 23 - } - return func() uint32 { - if 0x9 == 0xd { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xa0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(0x9), func() uint32 { - if 0xa == 0 { - return func() uint32 { - if Int32(0xa0) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0xa0)) - }() << 23 - } - return func() uint32 { - if 0xa == 0xd { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xa0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(0xa), func() uint32 { - if 0xb == 0 { - return func() uint32 { - if Int32(0xa0) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0xa0)) - }() << 23 - } - return func() uint32 { - if 0xb == 0xd { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xa0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(0xb), func() uint32 { - if 0xc == 0 { - return func() uint32 { - if Int32(0xa0) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0xa0)) - }() << 23 - } - return func() uint32 { - if 0xc == 0xd { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xa0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(0xc), func() uint32 { - if 0xd == 0 { - return func() uint32 { - if Int32(0xa0) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0xa0)) - }() << 23 - } - return func() uint32 { - if 0xd == 0xd { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xa0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(0xd), func() uint32 { - if 0xe == 0 { - return func() uint32 { - if Int32(0xa0) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0xa0)) - }() << 23 - } - return func() uint32 { - if 0xe == 0xd { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xa0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(0xe), func() uint32 { - if 0xf == 0 { - return func() uint32 { - if Int32(0xa0) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0xa0)) - }() << 23 - } - return func() uint32 { - if 0xf == 0xd { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xa0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(0xf), - func() uint32 { - if 0x0 >= 5 { - return uint32(0) - } - return func() uint32 { - if 0x0 == 0 { - return func() uint32 { - if Int32(0x90) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x90)) - }() << 23 - } - return func() uint32 { - if 0x0 == 4 { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0x90)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>12 | uint32_t(0x0), func() uint32 { - if 0x1 >= 5 { - return uint32(0) - } - return func() uint32 { - if 0x1 == 0 { - return func() uint32 { - if Int32(0x90) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x90)) - }() << 23 - } - return func() uint32 { - if 0x1 == 4 { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0x90)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>12 | uint32_t(0x1), func() uint32 { - if 0x2 >= 5 { - return uint32(0) - } - return func() uint32 { - if 0x2 == 0 { - return func() uint32 { - if Int32(0x90) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x90)) - }() << 23 - } - return func() uint32 { - if 0x2 == 4 { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0x90)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>12 | uint32_t(0x2), func() uint32 { - if 0x3 >= 5 { - return uint32(0) - } - return func() uint32 { - if 0x3 == 0 { - return func() uint32 { - if Int32(0x90) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x90)) - }() << 23 - } - return func() uint32 { - if 0x3 == 4 { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0x90)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>12 | uint32_t(0x3), func() uint32 { - if 0x4 >= 5 { - return uint32(0) - } - return func() uint32 { - if 0x4 == 0 { - return func() uint32 { - if Int32(0x90) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x90)) - }() << 23 - } - return func() uint32 { - if 0x4 == 4 { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0x90)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>12 | uint32_t(0x4), -} /* internal.c:18:16 */ - -type wint_t = uint32 /* alltypes.h:221:18 */ - -type wctype_t = uint32 /* alltypes.h:226:23 */ - -type __mbstate_t = struct { - __opaque1 uint32 - __opaque2 uint32 -} /* alltypes.h:360:9 */ - -type mbstate_t = __mbstate_t /* alltypes.h:360:63 */ - -func Xmbrtowc(tls *TLS, wc uintptr, src uintptr, n size_t, st uintptr) size_t { /* mbrtowc.c:6:8: */ - bp := tls.Alloc(4) - defer tls.Free(4) - - var c uint32 - var s uintptr - var N uint32 - // var dummy wchar_t at bp, 4 - s = src - N = n - - if !!(st != 0) { - goto __1 - } - st = uintptr(unsafe.Pointer(&_sinternal_state)) -__1: - ; - c = *(*uint32)(unsafe.Pointer(st)) - - if !!(s != 0) { - goto __2 - } - if !(c != 0) { - goto __4 - } - goto ilseq -__4: - ; - return size_t(0) - goto __3 -__2: - if !!(wc != 0) { - goto __5 - } - wc = bp /* &dummy */ -__5: - ; -__3: - ; - - if !!(n != 0) { - goto __6 - } - return Uint32FromInt32(-2) -__6: - ; - if !!(c != 0) { - goto __7 - } - if !(int32(*(*uint8)(unsafe.Pointer(s))) < 0x80) { - goto __8 - } - return BoolUint32(!!(int32(AssignPtrInt32(wc, wchar_t(*(*uint8)(unsafe.Pointer(s))))) != 0)) -__8: - ; - if !(func() int32 { - if !!(int32(*(*uintptr)(unsafe.Pointer((*__pthread)(unsafe.Pointer(__pthread_self(tls))).locale))) != 0) { - return 4 - } - return 1 - }() == 1) { - goto __9 - } - *(*wchar_t)(unsafe.Pointer(wc)) = wchar_t(0xdfff & int32(int8(*(*uint8)(unsafe.Pointer(s))))) - return 1 -__9: - ; - if !(uint32(*(*uint8)(unsafe.Pointer(s)))-0xc2 > 0xf4-0xc2) { - goto __10 - } - goto ilseq -__10: - ; - c = X__fsmu8[uint32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&s, 1))))-0xc2] - n-- -__7: - ; - - if !(n != 0) { - goto __11 - } - if !((int32(*(*uint8)(unsafe.Pointer(s)))>>3-0x10|(int32(*(*uint8)(unsafe.Pointer(s)))>>3+int32_t(c)>>26))&CplInt32(7) != 0) { - goto __12 - } - goto ilseq -__12: - ; -loop: - c = c<<6 | uint32(int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&s, 1))))-0x80) - n-- - if !!(c&(uint32(1)<<31) != 0) { - goto __13 - } - *(*uint32)(unsafe.Pointer(st)) = uint32(0) - *(*wchar_t)(unsafe.Pointer(wc)) = wchar_t(c) - return N - n -__13: - ; - if !(n != 0) { - goto __14 - } - if !(uint32(*(*uint8)(unsafe.Pointer(s)))-0x80 >= uint32(0x40)) { - goto __15 - } - goto ilseq -__15: - ; - goto loop -__14: - ; -__11: - ; - - *(*uint32)(unsafe.Pointer(st)) = c - return Uint32FromInt32(-2) -ilseq: - *(*uint32)(unsafe.Pointer(st)) = uint32(0) - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 84 - return Uint32FromInt32(-1) -} - -var _sinternal_state uint32 /* mbrtowc.c:8:18: */ - -func Xmbsinit(tls *TLS, st uintptr) int32 { /* mbsinit.c:3:5: */ - return Bool32(!(st != 0) || !(int32(*(*uint32)(unsafe.Pointer(st))) != 0)) -} - -type imaxdiv_t = struct { - quot intmax_t - rem intmax_t -} /* inttypes.h:14:40 */ - -type socklen_t = uint32 /* alltypes.h:384:18 */ - -type sa_family_t = uint16 /* alltypes.h:389:24 */ - -type msghdr = struct { - msg_name uintptr - msg_namelen socklen_t - msg_iov uintptr - msg_iovlen int32 - msg_control uintptr - msg_controllen socklen_t - msg_flags int32 -} /* socket.h:22:1 */ - -type cmsghdr = struct { - cmsg_len socklen_t - cmsg_level int32 - cmsg_type int32 -} /* socket.h:44:1 */ - -type linger = struct { - l_onoff int32 - l_linger int32 -} /* socket.h:74:1 */ - -type sockaddr = struct { - sa_family sa_family_t - sa_data [14]int8 -} /* socket.h:367:1 */ - -type sockaddr_storage = struct { - ss_family sa_family_t - __ss_padding [122]int8 - __ss_align uint32 -} /* socket.h:372:1 */ - -type in_port_t = uint16_t /* in.h:12:18 */ -type in_addr_t = uint32_t /* in.h:13:18 */ -type in_addr = struct{ s_addr in_addr_t } /* in.h:14:1 */ - -type sockaddr_in = struct { - sin_family sa_family_t - sin_port in_port_t - sin_addr struct{ s_addr in_addr_t } - sin_zero [8]uint8_t -} /* in.h:16:1 */ - -type in6_addr = struct { - __in6_union struct { - _ [0]uint32 - __s6_addr [16]uint8_t - } -} /* in.h:23:1 */ - -type sockaddr_in6 = struct { - sin6_family sa_family_t - sin6_port in_port_t - sin6_flowinfo uint32_t - sin6_addr struct { - __in6_union struct { - _ [0]uint32 - __s6_addr [16]uint8_t - } - } - sin6_scope_id uint32_t -} /* in.h:34:1 */ - -type ipv6_mreq = struct { - ipv6mr_multiaddr struct { - __in6_union struct { - _ [0]uint32 - __s6_addr [16]uint8_t - } - } - ipv6mr_interface uint32 -} /* in.h:42:1 */ - -type ip_opts = struct { - ip_dst struct{ s_addr in_addr_t } - ip_opts [40]int8 -} /* in.h:229:1 */ - -type ip_mreq = struct { - imr_multiaddr struct{ s_addr in_addr_t } - imr_interface struct{ s_addr in_addr_t } -} /* in.h:247:1 */ - -type ip_mreqn = struct { - imr_multiaddr struct{ s_addr in_addr_t } - imr_address struct{ s_addr in_addr_t } - imr_ifindex int32 -} /* in.h:252:1 */ - -type ip_mreq_source = struct { - imr_multiaddr struct{ s_addr in_addr_t } - imr_interface struct{ s_addr in_addr_t } - imr_sourceaddr struct{ s_addr in_addr_t } -} /* in.h:258:1 */ - -type ip_msfilter = struct { - imsf_multiaddr struct{ s_addr in_addr_t } - imsf_interface struct{ s_addr in_addr_t } - imsf_fmode uint32_t - imsf_numsrc uint32_t - imsf_slist [1]struct{ s_addr in_addr_t } -} /* in.h:264:1 */ - -type group_req = struct { - gr_interface uint32_t - gr_group struct { - ss_family sa_family_t - __ss_padding [122]int8 - __ss_align uint32 - } -} /* in.h:275:1 */ - -type group_source_req = struct { - gsr_interface uint32_t - gsr_group struct { - ss_family sa_family_t - __ss_padding [122]int8 - __ss_align uint32 - } - gsr_source struct { - ss_family sa_family_t - __ss_padding [122]int8 - __ss_align uint32 - } -} /* in.h:280:1 */ - -type group_filter = struct { - gf_interface uint32_t - gf_group struct { - ss_family sa_family_t - __ss_padding [122]int8 - __ss_align uint32 - } - gf_fmode uint32_t - gf_numsrc uint32_t - gf_slist [1]struct { - ss_family sa_family_t - __ss_padding [122]int8 - __ss_align uint32 - } -} /* in.h:286:1 */ - -type in_pktinfo = struct { - ipi_ifindex int32 - ipi_spec_dst struct{ s_addr in_addr_t } - ipi_addr struct{ s_addr in_addr_t } -} /* in.h:297:1 */ - -type in6_pktinfo = struct { - ipi6_addr struct { - __in6_union struct { - _ [0]uint32 - __s6_addr [16]uint8_t - } - } - ipi6_ifindex uint32 -} /* in.h:303:1 */ - -type ip6_mtuinfo = struct { - ip6m_addr struct { - sin6_family sa_family_t - sin6_port in_port_t - sin6_flowinfo uint32_t - sin6_addr struct { - __in6_union struct { - _ [0]uint32 - __s6_addr [16]uint8_t - } - } - sin6_scope_id uint32_t - } - ip6m_mtu uint32_t -} /* in.h:308:1 */ - -type addrinfo = struct { - ai_flags int32 - ai_family int32 - ai_socktype int32 - ai_protocol int32 - ai_addrlen socklen_t - ai_addr uintptr - ai_canonname uintptr - ai_next uintptr -} /* netdb.h:16:1 */ - -// Legacy functions follow (marked OBsolete in SUS) - -type netent = struct { - n_name uintptr - n_aliases uintptr - n_addrtype int32 - n_net uint32_t -} /* netdb.h:62:1 */ - -type hostent = struct { - h_name uintptr - h_aliases uintptr - h_addrtype int32 - h_length int32 - h_addr_list uintptr -} /* netdb.h:69:1 */ - -type servent = struct { - s_name uintptr - s_aliases uintptr - s_port int32 - s_proto uintptr -} /* netdb.h:78:1 */ - -type protoent = struct { - p_name uintptr - p_aliases uintptr - p_proto int32 -} /* netdb.h:85:1 */ - -type aibuf = struct { - ai struct { - ai_flags int32 - ai_family int32 - ai_socktype int32 - ai_protocol int32 - ai_addrlen socklen_t - ai_addr uintptr - ai_canonname uintptr - ai_next uintptr - } - sa struct { - sin struct { - sin_family sa_family_t - sin_port in_port_t - sin_addr struct{ s_addr in_addr_t } - sin_zero [8]uint8_t - } - _ [12]byte - } - lock [1]int32 - slot int16 - ref int16 -} /* lookup.h:10:1 */ - -type sa = struct { - sin struct { - sin_family sa_family_t - sin_port in_port_t - sin_addr struct{ s_addr in_addr_t } - sin_zero [8]uint8_t - } - _ [12]byte -} /* lookup.h:10:1 */ - -type address = struct { - family int32 - scopeid uint32 - addr [16]uint8_t - sortkey int32 -} /* lookup.h:20:1 */ - -type service = struct { - port uint16_t - proto uint8 - socktype uint8 -} /* lookup.h:27:1 */ - -type resolvconf = struct { - ns [3]struct { - family int32 - scopeid uint32 - addr [16]uint8_t - sortkey int32 - } - nns uint32 - attempts uint32 - ndots uint32 - timeout uint32 -} /* lookup.h:34:1 */ - -func Xfreeaddrinfo(tls *TLS, p uintptr) { /* freeaddrinfo.c:7:6: */ - var cnt size_t - cnt = size_t(1) -__1: - if !((*addrinfo)(unsafe.Pointer(p)).ai_next != 0) { - goto __3 - } - goto __2 -__2: - cnt++ - p = (*addrinfo)(unsafe.Pointer(p)).ai_next - goto __1 - goto __3 -__3: - ; - var b uintptr = p - uintptr(uint32(uintptr(0))) - b -= 68 * uintptr((*aibuf)(unsafe.Pointer(b)).slot) - //TODO LOCK(b->lock); - if !(int32(AssignSubPtrInt16(b+66, int16(cnt))) != 0) { - Xfree(tls, b) - } - //TODO else UNLOCK(b->lock); -} - -func Xgetaddrinfo(tls *TLS, host uintptr, serv uintptr, hint uintptr, res uintptr) int32 { /* getaddrinfo.c:12:5: */ - bp := tls.Alloc(1608) - defer tls.Free(1608) - - // var ports [2]service at bp, 8 - - // var addrs [48]address at bp+8, 1344 - - // var canon [256]int8 at bp+1352, 256 - - var outcanon uintptr - var nservs int32 - var naddrs int32 - var nais int32 - var canon_len int32 - var i int32 - var j int32 - var k int32 - var family int32 = 0 - var flags int32 = 0 - var proto int32 = 0 - var socktype int32 = 0 - var out uintptr - - if !(host != 0) && !(serv != 0) { - return -2 - } - - if hint != 0 { - family = (*addrinfo)(unsafe.Pointer(hint)).ai_family - flags = (*addrinfo)(unsafe.Pointer(hint)).ai_flags - proto = (*addrinfo)(unsafe.Pointer(hint)).ai_protocol - socktype = (*addrinfo)(unsafe.Pointer(hint)).ai_socktype - - var mask int32 = 0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x400 - if flags&mask != flags { - return -1 - } - - switch family { - case 2: - fallthrough - case 10: - fallthrough - case 0: - break - fallthrough - default: - return -6 - } - } - - if flags&0x20 != 0 { - Xabort(tls) //TODO- - // /* Define the "an address is configured" condition for address - // * families via ability to create a socket for the family plus - // * routability of the loopback address for the family. */ - // static const struct sockaddr_in lo4 = { - // .sin_family = AF_INET, .sin_port = 65535, - // .sin_addr.s_addr = __BYTE_ORDER == __BIG_ENDIAN - // ? 0x7f000001 : 0x0100007f - // }; - // static const struct sockaddr_in6 lo6 = { - // .sin6_family = AF_INET6, .sin6_port = 65535, - // .sin6_addr = IN6ADDR_LOOPBACK_INIT - // }; - // int tf[2] = { AF_INET, AF_INET6 }; - // const void *ta[2] = { &lo4, &lo6 }; - // socklen_t tl[2] = { sizeof lo4, sizeof lo6 }; - // for (i=0; i<2; i++) { - // if (family==tf[1-i]) continue; - // int s = socket(tf[i], SOCK_CLOEXEC|SOCK_DGRAM, - // IPPROTO_UDP); - // if (s>=0) { - // int cs; - // pthread_setcancelstate( - // PTHREAD_CANCEL_DISABLE, &cs); - // int r = connect(s, ta[i], tl[i]); - // pthread_setcancelstate(cs, 0); - // close(s); - // if (!r) continue; - // } - // switch (errno) { - // case EADDRNOTAVAIL: - // case EAFNOSUPPORT: - // case EHOSTUNREACH: - // case ENETDOWN: - // case ENETUNREACH: - // break; - // default: - // return EAI_SYSTEM; - // } - // if (family == tf[i]) return EAI_NONAME; - // family = tf[1-i]; - // } - } - - nservs = X__lookup_serv(tls, bp, serv, proto, socktype, flags) - if nservs < 0 { - return nservs - } - - naddrs = X__lookup_name(tls, bp+8, bp+1352, host, family, flags) - if naddrs < 0 { - return naddrs - } - - nais = nservs * naddrs - canon_len = int32(Xstrlen(tls, bp+1352)) - out = Xcalloc(tls, uint32(1), uint32(nais)*uint32(unsafe.Sizeof(aibuf{}))+uint32(canon_len)+uint32(1)) - if !(out != 0) { - return -10 - } - - if canon_len != 0 { - outcanon = out + uintptr(nais)*68 - Xmemcpy(tls, outcanon, bp+1352, uint32(canon_len+1)) - } else { - outcanon = uintptr(0) - } - - for k = AssignInt32(&i, 0); i < naddrs; i++ { - j = 0 - __1: - if !(j < nservs) { - goto __3 - } - { - (*aibuf)(unsafe.Pointer(out + uintptr(k)*68)).slot = int16(k) - //TODO out[k].ai = (struct addrinfo){ - //TODO .ai_family = addrs[i].family, - //TODO .ai_socktype = ports[j].socktype, - //TODO .ai_protocol = ports[j].proto, - //TODO .ai_addrlen = addrs[i].family == AF_INET - //TODO ? sizeof(struct sockaddr_in) - //TODO : sizeof(struct sockaddr_in6), - //TODO .ai_addr = (void *)&out[k].sa, - //TODO .ai_canonname = outcanon }; - (*aibuf)(unsafe.Pointer(out + uintptr(k)*68)).ai.ai_family = (*address)(unsafe.Pointer(bp + 8 + uintptr(i)*28)).family - (*aibuf)(unsafe.Pointer(out + uintptr(k)*68)).ai.ai_socktype = int32((*service)(unsafe.Pointer(bp + uintptr(j)*4)).socktype) - (*aibuf)(unsafe.Pointer(out + uintptr(k)*68)).ai.ai_protocol = int32((*service)(unsafe.Pointer(bp + uintptr(j)*4)).proto) - (*aibuf)(unsafe.Pointer(out + uintptr(k)*68)).ai.ai_addrlen = func() uint32 { - if (*address)(unsafe.Pointer(bp+8+uintptr(i)*28)).family == 2 { - return uint32(unsafe.Sizeof(sockaddr_in{})) - } - return uint32(unsafe.Sizeof(sockaddr_in6{})) - }() - (*aibuf)(unsafe.Pointer(out + uintptr(k)*68)).ai.ai_addr = out + uintptr(k)*68 + 32 - (*aibuf)(unsafe.Pointer(out + uintptr(k)*68)).ai.ai_canonname = outcanon - if k != 0 { - (*aibuf)(unsafe.Pointer(out + uintptr(k-1)*68)).ai.ai_next = out + uintptr(k)*68 - } - switch (*address)(unsafe.Pointer(bp + 8 + uintptr(i)*28)).family { - case 2: - (*sockaddr_in)(unsafe.Pointer(out + uintptr(k)*68 + 32)).sin_family = sa_family_t(2) - (*sockaddr_in)(unsafe.Pointer(out + uintptr(k)*68 + 32)).sin_port = Xhtons(tls, (*service)(unsafe.Pointer(bp+uintptr(j)*4)).port) - Xmemcpy(tls, out+uintptr(k)*68+32+4, bp+8+uintptr(i)*28+8, uint32(4)) - break - case 10: - (*sockaddr_in6)(unsafe.Pointer(out + uintptr(k)*68 + 32)).sin6_family = sa_family_t(10) - (*sockaddr_in6)(unsafe.Pointer(out + uintptr(k)*68 + 32)).sin6_port = Xhtons(tls, (*service)(unsafe.Pointer(bp+uintptr(j)*4)).port) - (*sockaddr_in6)(unsafe.Pointer(out + uintptr(k)*68 + 32)).sin6_scope_id = (*address)(unsafe.Pointer(bp + 8 + uintptr(i)*28)).scopeid - Xmemcpy(tls, out+uintptr(k)*68+32+8, bp+8+uintptr(i)*28+8, uint32(16)) - break - } - - } - goto __2 - __2: - j++ - k++ - goto __1 - goto __3 - __3: - } - (*aibuf)(unsafe.Pointer(out)).ref = int16(nais) - *(*uintptr)(unsafe.Pointer(res)) = out - return 0 -} - -type ucred = struct { - pid pid_t - uid uid_t - gid gid_t -} /* socket.h:57:1 */ - -type mmsghdr = struct { - msg_hdr struct { - msg_name uintptr - msg_namelen socklen_t - msg_iov uintptr - msg_iovlen int32 - msg_control uintptr - msg_controllen socklen_t - msg_flags int32 - } - msg_len uint32 -} /* socket.h:63:1 */ - -func Xgethostbyaddr(tls *TLS, a uintptr, l socklen_t, af int32) uintptr { /* gethostbyaddr.c:7:16: */ - bp := tls.Alloc(4) - defer tls.Free(4) - - var size size_t = size_t(63) - // var res uintptr at bp, 4 - - var err int32 - for ok := true; ok; ok = err == 34 { - Xfree(tls, _sh) - _sh = Xmalloc(tls, AssignAddUint32(&size, size+size_t(1))) - if !(_sh != 0) { - *(*int32)(unsafe.Pointer(X__h_errno_location(tls))) = 3 - return uintptr(0) - } - err = Xgethostbyaddr_r(tls, a, l, af, _sh, - _sh+uintptr(1)*20, size-size_t(unsafe.Sizeof(hostent{})), bp, X__h_errno_location(tls)) - } - if err != 0 { - return uintptr(0) - } - return _sh -} - -var _sh uintptr /* gethostbyaddr.c:9:24: */ - -func Xgethostbyaddr_r(tls *TLS, a uintptr, l socklen_t, af int32, h uintptr, buf uintptr, buflen size_t, res uintptr, err uintptr) int32 { /* gethostbyaddr_r.c:10:5: */ - bp := tls.Alloc(28) - defer tls.Free(28) - - //TODO union { - //TODO struct sockaddr_in sin; - //TODO struct sockaddr_in6 sin6; - //TODO } sa = { .sin.sin_family = af }; - *(*struct { - sin sockaddr_in - _ [12]byte - })(unsafe.Pointer(bp)) = struct { - sin sockaddr_in - _ [12]byte - }{} //TODO- - (*sockaddr_in)(unsafe.Pointer(bp)).sin_family = sa_family_t(af) //TODO- - var sl socklen_t - if af == 10 { - sl = uint32(unsafe.Sizeof(sockaddr_in6{})) - } else { - sl = uint32(unsafe.Sizeof(sockaddr_in{})) - } - var i int32 - - *(*uintptr)(unsafe.Pointer(res)) = uintptr(0) - - // Load address argument into sockaddr structure - if af == 10 && l == socklen_t(16) { - Xmemcpy(tls, bp+8, a, uint32(16)) - } else if af == 2 && l == socklen_t(4) { - Xmemcpy(tls, bp+4, a, uint32(4)) - } else { - *(*int32)(unsafe.Pointer(err)) = 3 - return 22 - } - - // Align buffer and check for space for pointers and ip address - i = int32(uintptr_t(buf) & (uint32(unsafe.Sizeof(uintptr(0))) - uint32(1))) - if !(i != 0) { - i = int32(unsafe.Sizeof(uintptr(0))) - } - if buflen <= uint32(5)*uint32(unsafe.Sizeof(uintptr(0)))-uint32(i)+l { - return 34 - } - buf += uintptr(uint32(unsafe.Sizeof(uintptr(0))) - uint32(i)) - buflen = buflen - (uint32(5)*uint32(unsafe.Sizeof(uintptr(0))) - uint32(i) + l) - - (*hostent)(unsafe.Pointer(h)).h_addr_list = buf - buf += uintptr(uint32(2) * uint32(unsafe.Sizeof(uintptr(0)))) - (*hostent)(unsafe.Pointer(h)).h_aliases = buf - buf += uintptr(uint32(2) * uint32(unsafe.Sizeof(uintptr(0)))) - - *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_addr_list)) = buf - Xmemcpy(tls, *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_addr_list)), a, l) - buf += uintptr(l) - *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_addr_list + 1*4)) = uintptr(0) - *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_aliases)) = buf - *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_aliases + 1*4)) = uintptr(0) - - switch Xgetnameinfo(tls, bp, sl, buf, buflen, uintptr(0), uint32(0), 0) { - case -3: - *(*int32)(unsafe.Pointer(err)) = 2 - return 11 - case -12: - return 34 - default: - fallthrough - case -10: - fallthrough - case -11: - fallthrough - case -4: - *(*int32)(unsafe.Pointer(err)) = 3 - return *(*int32)(unsafe.Pointer(X___errno_location(tls))) - case 0: - break - } - - (*hostent)(unsafe.Pointer(h)).h_addrtype = af - (*hostent)(unsafe.Pointer(h)).h_length = int32(l) - (*hostent)(unsafe.Pointer(h)).h_name = *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_aliases)) - *(*uintptr)(unsafe.Pointer(res)) = h - return 0 -} - -func Xgethostbyname(tls *TLS, name uintptr) uintptr { /* gethostbyname.c:8:16: */ - return Xgethostbyname2(tls, name, 2) -} - -func Xgethostbyname2(tls *TLS, name uintptr, af int32) uintptr { /* gethostbyname2.c:8:16: */ - bp := tls.Alloc(4) - defer tls.Free(4) - - var size size_t = size_t(63) - // var res uintptr at bp, 4 - - var err int32 - for ok := true; ok; ok = err == 34 { - Xfree(tls, _sh1) - _sh1 = Xmalloc(tls, AssignAddUint32(&size, size+size_t(1))) - if !(_sh1 != 0) { - *(*int32)(unsafe.Pointer(X__h_errno_location(tls))) = 3 - return uintptr(0) - } - err = Xgethostbyname2_r(tls, name, af, _sh1, - _sh1+uintptr(1)*20, size-size_t(unsafe.Sizeof(hostent{})), bp, X__h_errno_location(tls)) - } - if err != 0 { - return uintptr(0) - } - return _sh1 -} - -var _sh1 uintptr /* gethostbyname2.c:10:24: */ - -func Xgethostbyname2_r(tls *TLS, name uintptr, af int32, h uintptr, buf uintptr, buflen size_t, res uintptr, err uintptr) int32 { /* gethostbyname2_r.c:11:5: */ - bp := tls.Alloc(1600) - defer tls.Free(1600) - - // var addrs [48]address at bp, 1344 - - // var canon [256]int8 at bp+1344, 256 - - var i int32 - var cnt int32 - var align size_t - var need size_t - - *(*uintptr)(unsafe.Pointer(res)) = uintptr(0) - cnt = X__lookup_name(tls, bp, bp+1344, name, af, 0x02) - if cnt < 0 { - switch cnt { - case -2: - *(*int32)(unsafe.Pointer(err)) = 1 - return 2 - fallthrough - case -3: - *(*int32)(unsafe.Pointer(err)) = 2 - return 11 - fallthrough - default: - fallthrough - case -4: - *(*int32)(unsafe.Pointer(err)) = 3 - return 74 - fallthrough - case -10: - fallthrough - case -11: - *(*int32)(unsafe.Pointer(err)) = 3 - return *(*int32)(unsafe.Pointer(X___errno_location(tls))) - } - } - - (*hostent)(unsafe.Pointer(h)).h_addrtype = af - (*hostent)(unsafe.Pointer(h)).h_length = func() int32 { - if af == 10 { - return 16 - } - return 4 - }() - - // Align buffer - align = -uintptr_t(buf) & (uint32(unsafe.Sizeof(uintptr(0))) - uint32(1)) - - need = uint32(4) * uint32(unsafe.Sizeof(uintptr(0))) - need = need + uint32(cnt+1)*(uint32(unsafe.Sizeof(uintptr(0)))+uint32((*hostent)(unsafe.Pointer(h)).h_length)) - need = need + (Xstrlen(tls, name) + size_t(1)) - need = need + (Xstrlen(tls, bp+1344) + size_t(1)) - need = need + align - - if need > buflen { - return 34 - } - - buf += uintptr(align) - (*hostent)(unsafe.Pointer(h)).h_aliases = buf - buf += uintptr(uint32(3) * uint32(unsafe.Sizeof(uintptr(0)))) - (*hostent)(unsafe.Pointer(h)).h_addr_list = buf - buf += uintptr(uint32(cnt+1) * uint32(unsafe.Sizeof(uintptr(0)))) - - for i = 0; i < cnt; i++ { - *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_addr_list + uintptr(i)*4)) = buf - buf += uintptr((*hostent)(unsafe.Pointer(h)).h_length) - Xmemcpy(tls, *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_addr_list + uintptr(i)*4)), bp+uintptr(i)*28+8, uint32((*hostent)(unsafe.Pointer(h)).h_length)) - } - *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_addr_list + uintptr(i)*4)) = uintptr(0) - - (*hostent)(unsafe.Pointer(h)).h_name = AssignPtrUintptr((*hostent)(unsafe.Pointer(h)).h_aliases, buf) - Xstrcpy(tls, (*hostent)(unsafe.Pointer(h)).h_name, bp+1344) - buf += uintptr(Xstrlen(tls, (*hostent)(unsafe.Pointer(h)).h_name) + size_t(1)) - - if Xstrcmp(tls, (*hostent)(unsafe.Pointer(h)).h_name, name) != 0 { - *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_aliases + 1*4)) = buf - Xstrcpy(tls, *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_aliases + 1*4)), name) - buf += uintptr(Xstrlen(tls, *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_aliases + 1*4))) + size_t(1)) - } else { - *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_aliases + 1*4)) = uintptr(0) - } - - *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_aliases + 2*4)) = uintptr(0) - - *(*uintptr)(unsafe.Pointer(res)) = h - return 0 -} - -func Xgethostbyname_r(tls *TLS, name uintptr, h uintptr, buf uintptr, buflen size_t, res uintptr, err uintptr) int32 { /* gethostbyname_r.c:6:5: */ - return Xgethostbyname2_r(tls, name, 2, h, buf, buflen, res, err) -} - -type if_nameindex = struct { - if_index uint32 - if_name uintptr -} /* if.h:12:1 */ - -type ifaddr = struct { - ifa_addr struct { - sa_family sa_family_t - sa_data [14]int8 - } - ifa_ifu struct { - ifu_broadaddr struct { - sa_family sa_family_t - sa_data [14]int8 - } - } - ifa_ifp uintptr - ifa_next uintptr -} /* if.h:51:1 */ - -type ifmap = struct { - mem_start uint32 - mem_end uint32 - base_addr uint16 - irq uint8 - dma uint8 - port uint8 - _ [3]byte -} /* if.h:64:1 */ - -type ifreq = struct { - ifr_ifrn struct{ ifrn_name [16]int8 } - ifr_ifru struct { - _ [0]uint32 - ifru_addr struct { - sa_family sa_family_t - sa_data [14]int8 - } - } -} /* if.h:76:1 */ - -type ifconf = struct { - ifc_len int32 - ifc_ifcu struct{ ifcu_buf uintptr } -} /* if.h:116:1 */ - -type ns_sect = uint32 /* nameser.h:37:3 */ - -type __ns_msg = struct { - _msg uintptr - _eom uintptr - _id uint16_t - _flags uint16_t - _counts [4]uint16_t - _sections [4]uintptr - _sect ns_sect - _rrnum int32 - _msg_ptr uintptr -} /* nameser.h:39:9 */ - -type ns_msg = __ns_msg /* nameser.h:46:3 */ - -type _ns_flagdata = struct { - mask int32 - shift int32 -} /* nameser.h:48:1 */ - -type __ns_rr = struct { - name [1025]int8 - _ [1]byte - __type uint16_t - rr_class uint16_t - _ [2]byte - ttl uint32_t - rdlength uint16_t - _ [2]byte - rdata uintptr -} /* nameser.h:59:9 */ - -type ns_rr = __ns_rr /* nameser.h:66:3 */ - -type ns_flag = uint32 /* nameser.h:87:3 */ - -type ns_opcode = uint32 /* nameser.h:96:3 */ - -type ns_rcode = uint32 /* nameser.h:115:3 */ - -type ns_update_operation = uint32 /* nameser.h:121:3 */ - -type ns_tsig_key1 = struct { - name [1025]int8 - alg [1025]int8 - _ [2]byte - data uintptr - len int32 -} /* nameser.h:123:1 */ - -type ns_tsig_key = ns_tsig_key1 /* nameser.h:128:28 */ - -type ns_tcp_tsig_state1 = struct { - counter int32 - key uintptr - ctx uintptr - sig [512]uint8 - siglen int32 -} /* nameser.h:130:1 */ - -type ns_tcp_tsig_state = ns_tcp_tsig_state1 /* nameser.h:137:34 */ - -type ns_type = uint32 /* nameser.h:200:3 */ - -type ns_class = uint32 /* nameser.h:219:3 */ - -type ns_key_types = uint32 /* nameser.h:226:3 */ - -type ns_cert_types = uint32 /* nameser.h:234:3 */ - -type HEADER = struct { - _ [0]uint32 - id uint32 /* unsigned id: 16, unsigned rd: 1, unsigned tc: 1, unsigned aa: 1, unsigned opcode: 4, unsigned qr: 1, unsigned rcode: 4, unsigned cd: 1, unsigned ad: 1, unsigned unused: 1, unsigned ra: 1 */ - qdcount uint32 /* unsigned qdcount: 16, unsigned ancount: 16 */ - nscount uint32 /* unsigned nscount: 16, unsigned arcount: 16 */ -} /* nameser.h:353:3 */ - -// unused; purely for broken apps -type __res_state = struct { - retrans int32 - retry int32 - options uint32 - nscount int32 - nsaddr_list [3]struct { - sin_family sa_family_t - sin_port in_port_t - sin_addr struct{ s_addr in_addr_t } - sin_zero [8]uint8_t - } - id uint16 - _ [2]byte - dnsrch [7]uintptr - defdname [256]int8 - pfcode uint32 - ndots uint32 /* unsigned ndots: 4, unsigned nsort: 4, unsigned ipv6_unavail: 1, unsigned unused: 23 */ - _ [4]byte - sort_list [10]struct { - addr struct{ s_addr in_addr_t } - mask uint32_t - } - qhook uintptr - rhook uintptr - res_h_errno int32 - _vcsock int32 - _flags uint32 - _u struct { - _ [0]uint32 - pad [52]int8 - } -} /* resolv.h:26:9 */ - -// unused; purely for broken apps -type res_state = uintptr /* resolv.h:62:3 */ - -type res_sym = struct { - number int32 - name uintptr - humanname uintptr -} /* resolv.h:70:1 */ - -func itoa(tls *TLS, p uintptr, x uint32) uintptr { /* getnameinfo.c:18:13: */ - p += uintptr(uint32(3) * uint32(unsafe.Sizeof(int32(0)))) - *(*int8)(unsafe.Pointer(PreDecUintptr(&p, 1))) = int8(0) - for ok := true; ok; ok = x != 0 { - *(*int8)(unsafe.Pointer(PreDecUintptr(&p, 1))) = int8(uint32('0') + x%uint32(10)) - x = x / uint32(10) - } - return p -} - -func mkptr4(tls *TLS, s uintptr, ip uintptr) { /* getnameinfo.c:28:13: */ - bp := tls.Alloc(32) - defer tls.Free(32) - - Xsprintf(tls, s, ts+25, - VaList(bp, int32(*(*uint8)(unsafe.Pointer(ip + 3))), int32(*(*uint8)(unsafe.Pointer(ip + 2))), int32(*(*uint8)(unsafe.Pointer(ip + 1))), int32(*(*uint8)(unsafe.Pointer(ip))))) -} - -func mkptr6(tls *TLS, s uintptr, ip uintptr) { /* getnameinfo.c:34:13: */ - var i int32 - for i = 15; i >= 0; i-- { - *(*int8)(unsafe.Pointer(PostIncUintptr(&s, 1))) = _sxdigits[int32(*(*uint8)(unsafe.Pointer(ip + uintptr(i))))&15] - *(*int8)(unsafe.Pointer(PostIncUintptr(&s, 1))) = int8('.') - *(*int8)(unsafe.Pointer(PostIncUintptr(&s, 1))) = _sxdigits[int32(*(*uint8)(unsafe.Pointer(ip + uintptr(i))))>>4] - *(*int8)(unsafe.Pointer(PostIncUintptr(&s, 1))) = int8('.') - } - Xstrcpy(tls, s, ts+50) -} - -var _sxdigits = *(*[17]int8)(unsafe.Pointer(ts + 59)) /* getnameinfo.c:36:20 */ - -func reverse_hosts(tls *TLS, buf uintptr, a uintptr, scopeid uint32, family int32) { /* getnameinfo.c:45:13: */ - bp := tls.Alloc(556) - defer tls.Free(556) - - // var line [512]int8 at bp+16, 512 - - var p uintptr - var z uintptr - var _buf [1032]uint8 - _ = _buf - // var atmp [16]uint8 at bp, 16 - - // var iplit address at bp+528, 28 - - //TODO FILE _f, *f = __fopen_rb_ca("/etc/hosts", &_f, _buf, sizeof _buf); - var f uintptr = Xfopen(tls, ts+76, ts+87) - if !(f != 0) { - return - } - if family == 2 { - Xmemcpy(tls, bp+uintptr(12), a, uint32(4)) - Xmemcpy(tls, bp, ts+90, uint32(12)) - a = bp /* &atmp[0] */ - } - for Xfgets(tls, bp+16, int32(unsafe.Sizeof([512]int8{})), f) != 0 { - if AssignUintptr(&p, Xstrchr(tls, bp+16, '#')) != 0 { - *(*int8)(unsafe.Pointer(PostIncUintptr(&p, 1))) = int8('\n') - *(*int8)(unsafe.Pointer(p)) = int8(0) - } - - for p = bp + 16; /* &line[0] */ *(*int8)(unsafe.Pointer(p)) != 0 && !(__isspace(tls, int32(*(*int8)(unsafe.Pointer(p)))) != 0); p++ { - } - *(*int8)(unsafe.Pointer(PostIncUintptr(&p, 1))) = int8(0) - if X__lookup_ipliteral(tls, bp+528, bp+16, 0) <= 0 { - continue - } - - if (*address)(unsafe.Pointer(bp+528)).family == 2 { - Xmemcpy(tls, bp+528+8+uintptr(12), bp+528+8, uint32(4)) - Xmemcpy(tls, bp+528+8, ts+90, uint32(12)) - (*address)(unsafe.Pointer(bp + 528 /* &iplit */)).scopeid = uint32(0) - } - - if Xmemcmp(tls, a, bp+528+8, uint32(16)) != 0 || (*address)(unsafe.Pointer(bp+528)).scopeid != scopeid { - continue - } - - for ; *(*int8)(unsafe.Pointer(p)) != 0 && __isspace(tls, int32(*(*int8)(unsafe.Pointer(p)))) != 0; p++ { - } - for z = p; *(*int8)(unsafe.Pointer(z)) != 0 && !(__isspace(tls, int32(*(*int8)(unsafe.Pointer(z)))) != 0); z++ { - } - *(*int8)(unsafe.Pointer(z)) = int8(0) - if (int32(z)-int32(p))/1 < 256 { - Xmemcpy(tls, buf, p, uint32((int32(z)-int32(p))/1+1)) - break - } - } - //TODO __fclose_ca(f); - Xfclose(tls, f) -} - -func reverse_services(tls *TLS, buf uintptr, port int32, dgram int32) { /* getnameinfo.c:87:13: */ - Xabort(tls) //TODO- - // unsigned long svport; - // char line[128], *p, *z; - // unsigned char _buf[1032]; - // FILE _f, *f = __fopen_rb_ca("/etc/services", &_f, _buf, sizeof _buf); - // if (!f) return; - // while (fgets(line, sizeof line, f)) { - // if ((p=strchr(line, '#'))) *p++='\n', *p=0; - - // for (p=line; *p && !isspace(*p); p++); - // if (!*p) continue; - // *p++ = 0; - // svport = strtoul(p, &z, 10); - - // if (svport != port || z==p) continue; - // if (dgram && strncmp(z, "/udp", 4)) continue; - // if (!dgram && strncmp(z, "/tcp", 4)) continue; - // if (p-line > 32) continue; - - // memcpy(buf, line, p-line); - // break; - // } - // __fclose_ca(f); -} - -func Xgetnameinfo(tls *TLS, sa1 uintptr, sl socklen_t, node uintptr, nodelen socklen_t, serv uintptr, servlen socklen_t, flags int32) int32 { /* getnameinfo.c:125:5: */ - bp := tls.Alloc(347) - defer tls.Free(347) - - // var ptr [78]int8 at bp, 78 - - // var buf [256]int8 at bp+78, 256 - - // var num [13]int8 at bp+334, 13 - - var af int32 = int32((*sockaddr)(unsafe.Pointer(sa1)).sa_family) - var a uintptr - var scopeid uint32 - - switch af { - case 2: - a = sa1 + 4 - if sl < socklen_t(unsafe.Sizeof(sockaddr_in{})) { - return -6 - } - mkptr4(tls, bp, a) - scopeid = uint32(0) - break - case 10: - a = sa1 + 8 - if sl < socklen_t(unsafe.Sizeof(sockaddr_in6{})) { - return -6 - } - if Xmemcmp(tls, a, ts+90, uint32(12)) != 0 { - mkptr6(tls, bp, a) - } else { - mkptr4(tls, bp, a+uintptr(12)) - } - scopeid = (*sockaddr_in6)(unsafe.Pointer(sa1)).sin6_scope_id - break - default: - return -6 - } - - if node != 0 && nodelen != 0 { - *(*int8)(unsafe.Pointer(bp + 78)) = int8(0) - if !(flags&0x01 != 0) { - reverse_hosts(tls, bp+78, a, scopeid, af) - } - if !(int32(*(*int8)(unsafe.Pointer(bp + 78))) != 0) && !(flags&0x01 != 0) { - Xabort(tls) //TODO- - // unsigned char query[18+PTR_MAX], reply[512]; - // int qlen = __res_mkquery(0, ptr, 1, RR_PTR, - // 0, 0, 0, query, sizeof query); - // query[3] = 0; /* don't need AD flag */ - // int rlen = __res_send(query, qlen, reply, sizeof reply); - // buf[0] = 0; - // if (rlen > 0) - // __dns_parse(reply, rlen, dns_parse_callback, buf); - } - if !(int32(*(*int8)(unsafe.Pointer(bp + 78))) != 0) { - if flags&0x08 != 0 { - return -2 - } - Xinet_ntop(tls, af, a, bp+78, uint32(unsafe.Sizeof([256]int8{}))) - if scopeid != 0 { - Xabort(tls) //TODO- - // char *p = 0, tmp[IF_NAMESIZE+1]; - // if (!(flags & NI_NUMERICSCOPE) && - // (IN6_IS_ADDR_LINKLOCAL(a) || - // IN6_IS_ADDR_MC_LINKLOCAL(a))) - // p = if_indextoname(scopeid, tmp+1); - // if (!p) - // p = itoa(num, scopeid); - // *--p = '%'; - // strcat(buf, p); - } - } - if Xstrlen(tls, bp+78) >= nodelen { - return -12 - } - Xstrcpy(tls, node, bp+78) - } - - if serv != 0 && servlen != 0 { - var p uintptr = bp + 78 /* buf */ - var port int32 = int32(Xntohs(tls, (*sockaddr_in)(unsafe.Pointer(sa1)).sin_port)) - *(*int8)(unsafe.Pointer(bp + 78)) = int8(0) - if !(flags&0x02 != 0) { - reverse_services(tls, bp+78, port, flags&0x10) - } - if !(int32(*(*int8)(unsafe.Pointer(p))) != 0) { - p = itoa(tls, bp+334, uint32(port)) - } - if Xstrlen(tls, p) >= servlen { - return -12 - } - Xstrcpy(tls, serv, p) - } - - return 0 -} - -var Xh_errno int32 /* h_errno.c:4:5: */ - -func X__h_errno_location(tls *TLS) uintptr { /* h_errno.c:6:5: */ - return uintptr(unsafe.Pointer(&Xh_errno)) -} - -func X__inet_aton(tls *TLS, s0 uintptr, dest uintptr) int32 { /* inet_aton.c:7:5: */ - bp := tls.Alloc(20) - defer tls.Free(20) - - var s uintptr = s0 - var d uintptr = dest - *(*[4]uint32)(unsafe.Pointer(bp /* a */)) = [4]uint32{0: uint32(0)} - // var z uintptr at bp+16, 4 - - var i int32 - - for i = 0; i < 4; i++ { - *(*uint32)(unsafe.Pointer(bp + uintptr(i)*4)) = Xstrtoul(tls, s, bp+16, 0) - if *(*uintptr)(unsafe.Pointer(bp + 16)) == s || *(*int8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 16)))) != 0 && int32(*(*int8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 16))))) != '.' || !(func() int32 { - if 0 != 0 { - return Xisdigit(tls, int32(*(*int8)(unsafe.Pointer(s)))) - } - return Bool32(uint32(*(*int8)(unsafe.Pointer(s)))-uint32('0') < uint32(10)) - }() != 0) { - return 0 - } - if !(int32(*(*int8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 16))))) != 0) { - break - } - s = *(*uintptr)(unsafe.Pointer(bp + 16)) + uintptr(1) - } - if i == 4 { - return 0 - } - switch i { - case 0: - *(*uint32)(unsafe.Pointer(bp + 1*4)) = *(*uint32)(unsafe.Pointer(bp)) & uint32(0xffffff) - AssignShrPtrUint32(bp, int(24)) - fallthrough - case 1: - *(*uint32)(unsafe.Pointer(bp + 2*4)) = *(*uint32)(unsafe.Pointer(bp + 1*4)) & uint32(0xffff) - AssignShrPtrUint32(bp+1*4, int(16)) - fallthrough - case 2: - *(*uint32)(unsafe.Pointer(bp + 3*4)) = *(*uint32)(unsafe.Pointer(bp + 2*4)) & uint32(0xff) - AssignShrPtrUint32(bp+2*4, int(8)) - } - for i = 0; i < 4; i++ { - if *(*uint32)(unsafe.Pointer(bp + uintptr(i)*4)) > uint32(255) { - return 0 - } - *(*uint8)(unsafe.Pointer(d + uintptr(i))) = uint8(*(*uint32)(unsafe.Pointer(bp + uintptr(i)*4))) - } - return 1 -} - -func Xinet_ntop(tls *TLS, af int32, a0 uintptr, s uintptr, l socklen_t) uintptr { /* inet_ntop.c:7:12: */ - bp := tls.Alloc(276) - defer tls.Free(276) - - var a uintptr = a0 - var i int32 - var j int32 - var max int32 - var best int32 - // var buf [100]int8 at bp+176, 100 - - switch af { - case 2: - if socklen_t(Xsnprintf(tls, s, l, ts+103, VaList(bp, int32(*(*uint8)(unsafe.Pointer(a))), int32(*(*uint8)(unsafe.Pointer(a + 1))), int32(*(*uint8)(unsafe.Pointer(a + 2))), int32(*(*uint8)(unsafe.Pointer(a + 3)))))) < l { - return s - } - break - case 10: - if Xmemcmp(tls, a, ts+90, uint32(12)) != 0 { - Xsnprintf(tls, bp+176, uint32(unsafe.Sizeof([100]int8{})), - ts+115, - VaList(bp+32, 256*int32(*(*uint8)(unsafe.Pointer(a)))+int32(*(*uint8)(unsafe.Pointer(a + 1))), 256*int32(*(*uint8)(unsafe.Pointer(a + 2)))+int32(*(*uint8)(unsafe.Pointer(a + 3))), - 256*int32(*(*uint8)(unsafe.Pointer(a + 4)))+int32(*(*uint8)(unsafe.Pointer(a + 5))), 256*int32(*(*uint8)(unsafe.Pointer(a + 6)))+int32(*(*uint8)(unsafe.Pointer(a + 7))), - 256*int32(*(*uint8)(unsafe.Pointer(a + 8)))+int32(*(*uint8)(unsafe.Pointer(a + 9))), 256*int32(*(*uint8)(unsafe.Pointer(a + 10)))+int32(*(*uint8)(unsafe.Pointer(a + 11))), - 256*int32(*(*uint8)(unsafe.Pointer(a + 12)))+int32(*(*uint8)(unsafe.Pointer(a + 13))), 256*int32(*(*uint8)(unsafe.Pointer(a + 14)))+int32(*(*uint8)(unsafe.Pointer(a + 15))))) - } else { - Xsnprintf(tls, bp+176, uint32(unsafe.Sizeof([100]int8{})), - ts+139, - VaList(bp+96, 256*int32(*(*uint8)(unsafe.Pointer(a)))+int32(*(*uint8)(unsafe.Pointer(a + 1))), 256*int32(*(*uint8)(unsafe.Pointer(a + 2)))+int32(*(*uint8)(unsafe.Pointer(a + 3))), - 256*int32(*(*uint8)(unsafe.Pointer(a + 4)))+int32(*(*uint8)(unsafe.Pointer(a + 5))), 256*int32(*(*uint8)(unsafe.Pointer(a + 6)))+int32(*(*uint8)(unsafe.Pointer(a + 7))), - 256*int32(*(*uint8)(unsafe.Pointer(a + 8)))+int32(*(*uint8)(unsafe.Pointer(a + 9))), 256*int32(*(*uint8)(unsafe.Pointer(a + 10)))+int32(*(*uint8)(unsafe.Pointer(a + 11))), - int32(*(*uint8)(unsafe.Pointer(a + 12))), int32(*(*uint8)(unsafe.Pointer(a + 13))), int32(*(*uint8)(unsafe.Pointer(a + 14))), int32(*(*uint8)(unsafe.Pointer(a + 15))))) - } - // Replace longest /(^0|:)[:0]{2,}/ with "::" - i = AssignInt32(&best, 0) - max = 2 - for ; *(*int8)(unsafe.Pointer(bp + 176 + uintptr(i))) != 0; i++ { - if i != 0 && int32(*(*int8)(unsafe.Pointer(bp + 176 + uintptr(i)))) != ':' { - continue - } - j = int32(Xstrspn(tls, bp+176+uintptr(i), ts+169)) - if j > max { - best = i - max = j - } - } - if max > 3 { - *(*int8)(unsafe.Pointer(bp + 176 + uintptr(best))) = AssignPtrInt8(bp+176+uintptr(best+1), int8(':')) - Xmemmove(tls, bp+176+uintptr(best)+uintptr(2), bp+176+uintptr(best)+uintptr(max), uint32(i-best-max+1)) - } - if Xstrlen(tls, bp+176) < l { - Xstrcpy(tls, s, bp+176) - return s - } - break - default: - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 97 - return uintptr(0) - } - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 28 - return uintptr(0) -} - -func hexval(tls *TLS, c uint32) int32 { /* inet_pton.c:7:12: */ - if c-uint32('0') < uint32(10) { - return int32(c - uint32('0')) - } - c = c | uint32(32) - if c-uint32('a') < uint32(6) { - return int32(c - uint32('a') + uint32(10)) - } - return -1 -} - -func Xinet_pton(tls *TLS, af int32, s uintptr, a0 uintptr) int32 { /* inet_pton.c:15:5: */ - bp := tls.Alloc(16) - defer tls.Free(16) - - // var ip [8]uint16_t at bp, 16 - - var a uintptr = a0 - var i int32 - var j int32 - var v int32 - var d int32 - var brk int32 = -1 - var need_v4 int32 = 0 - - if af == 2 { - for i = 0; i < 4; i++ { - for v = AssignInt32(&j, 0); j < 3 && func() int32 { - if 0 != 0 { - return Xisdigit(tls, int32(*(*int8)(unsafe.Pointer(s + uintptr(j))))) - } - return Bool32(uint32(*(*int8)(unsafe.Pointer(s + uintptr(j))))-uint32('0') < uint32(10)) - }() != 0; j++ { - v = 10*v + int32(*(*int8)(unsafe.Pointer(s + uintptr(j)))) - '0' - } - if j == 0 || j > 1 && int32(*(*int8)(unsafe.Pointer(s))) == '0' || v > 255 { - return 0 - } - *(*uint8)(unsafe.Pointer(a + uintptr(i))) = uint8(v) - if int32(*(*int8)(unsafe.Pointer(s + uintptr(j)))) == 0 && i == 3 { - return 1 - } - if int32(*(*int8)(unsafe.Pointer(s + uintptr(j)))) != '.' { - return 0 - } - s += uintptr(j + 1) - } - return 0 - } else if af != 10 { - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 97 - return -1 - } - - if int32(*(*int8)(unsafe.Pointer(s))) == ':' && int32(*(*int8)(unsafe.Pointer(PreIncUintptr(&s, 1)))) != ':' { - return 0 - } - - for i = 0; ; i++ { - if int32(*(*int8)(unsafe.Pointer(s))) == ':' && brk < 0 { - brk = i - *(*uint16_t)(unsafe.Pointer(bp + uintptr(i&7)*2)) = uint16_t(0) - if !(int32(*(*int8)(unsafe.Pointer(PreIncUintptr(&s, 1)))) != 0) { - break - } - if i == 7 { - return 0 - } - continue - } - for v = AssignInt32(&j, 0); j < 4 && AssignInt32(&d, hexval(tls, uint32(*(*int8)(unsafe.Pointer(s + uintptr(j)))))) >= 0; j++ { - v = 16*v + d - } - if j == 0 { - return 0 - } - *(*uint16_t)(unsafe.Pointer(bp + uintptr(i&7)*2)) = uint16_t(v) - if !(int32(*(*int8)(unsafe.Pointer(s + uintptr(j)))) != 0) && (brk >= 0 || i == 7) { - break - } - if i == 7 { - return 0 - } - if int32(*(*int8)(unsafe.Pointer(s + uintptr(j)))) != ':' { - if int32(*(*int8)(unsafe.Pointer(s + uintptr(j)))) != '.' || i < 6 && brk < 0 { - return 0 - } - need_v4 = 1 - i++ - break - } - s += uintptr(j + 1) - } - if brk >= 0 { - Xmemmove(tls, bp+uintptr(brk)*2+uintptr(7)*2-uintptr(i)*2, bp+uintptr(brk)*2, uint32(2*(i+1-brk))) - for j = 0; j < 7-i; j++ { - *(*uint16_t)(unsafe.Pointer(bp + uintptr(brk+j)*2)) = uint16_t(0) - } - } - for j = 0; j < 8; j++ { - *(*uint8)(unsafe.Pointer(PostIncUintptr(&a, 1))) = uint8(int32(*(*uint16_t)(unsafe.Pointer(bp + uintptr(j)*2))) >> 8) - *(*uint8)(unsafe.Pointer(PostIncUintptr(&a, 1))) = uint8(*(*uint16_t)(unsafe.Pointer(bp + uintptr(j)*2))) - } - if need_v4 != 0 && Xinet_pton(tls, 2, s, a-uintptr(4)) <= 0 { - return 0 - } - return 1 -} - -func X__lookup_ipliteral(tls *TLS, buf uintptr, name uintptr, family int32) int32 { /* lookup_ipliteral.c:12:5: */ - bp := tls.Alloc(88) - defer tls.Free(88) - - // var a4 in_addr at bp, 4 - - // var a6 in6_addr at bp+68, 16 - - if X__inet_aton(tls, name, bp) > 0 { - if family == 10 { // wrong family - return -2 - } - Xmemcpy(tls, buf+8, bp, uint32(unsafe.Sizeof(in_addr{}))) - (*address)(unsafe.Pointer(buf)).family = 2 - (*address)(unsafe.Pointer(buf)).scopeid = uint32(0) - return 1 - } - // var tmp [64]int8 at bp+4, 64 - - var p uintptr = Xstrchr(tls, name, '%') - // var z uintptr at bp+84, 4 - - var scopeid uint64 = uint64(0) - if p != 0 && (int32(p)-int32(name))/1 < 64 { - Xmemcpy(tls, bp+4, name, uint32((int32(p)-int32(name))/1)) - *(*int8)(unsafe.Pointer(bp + 4 + uintptr((int32(p)-int32(name))/1))) = int8(0) - name = bp + 4 /* &tmp[0] */ - } - - if Xinet_pton(tls, 10, name, bp+68) <= 0 { - return 0 - } - if family == 2 { // wrong family - return -2 - } - - Xmemcpy(tls, buf+8, bp+68, uint32(unsafe.Sizeof(in6_addr{}))) - (*address)(unsafe.Pointer(buf)).family = 10 - if p != 0 { - if func() int32 { - if 0 != 0 { - return Xisdigit(tls, int32(*(*int8)(unsafe.Pointer(PreIncUintptr(&p, 1))))) - } - return Bool32(uint32(*(*int8)(unsafe.Pointer(PreIncUintptr(&p, 1))))-uint32('0') < uint32(10)) - }() != 0 { - scopeid = Xstrtoull(tls, p, bp+84, 10) - } else { - *(*uintptr)(unsafe.Pointer(bp + 84 /* z */)) = p - uintptr(1) - } - if *(*int8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 84)))) != 0 { - Xabort(tls) //TODO- - // if (!IN6_IS_ADDR_LINKLOCAL(&a6) && - // !IN6_IS_ADDR_MC_LINKLOCAL(&a6)) - // return EAI_NONAME; - // scopeid = if_nametoindex(p); - // if (!scopeid) return EAI_NONAME; - } - if scopeid > uint64(0xffffffff) { - return -2 - } - } - (*address)(unsafe.Pointer(buf)).scopeid = uint32(scopeid) - return 1 -} - -func is_valid_hostname(tls *TLS, host uintptr) int32 { /* lookup_name.c:18:12: */ - var s uintptr - //TODO if (strnlen(host, 255)-1 >= 254 || mbstowcs(0, host, 0) == -1) return 0; - if Xstrnlen(tls, host, uint32(255))-size_t(1) >= size_t(254) { - return 0 - } - for s = host; int32(*(*uint8)(unsafe.Pointer(s))) >= 0x80 || int32(*(*uint8)(unsafe.Pointer(s))) == '.' || int32(*(*uint8)(unsafe.Pointer(s))) == '-' || Xisalnum(tls, int32(*(*uint8)(unsafe.Pointer(s)))) != 0; s++ { - } - return BoolInt32(!(*(*uint8)(unsafe.Pointer(s)) != 0)) -} - -var Xzero_struct_address address /* lookup_name.c:27:16: */ - -func name_from_null(tls *TLS, buf uintptr, name uintptr, family int32, flags int32) int32 { /* lookup_name.c:29:12: */ - var cnt int32 = 0 - if name != 0 { - return 0 - } - if flags&0x01 != 0 { - //TODO if (family != AF_INET6) - //TODO buf[cnt++] = (struct address){ .family = AF_INET }; - if family != 10 { - var x = Xzero_struct_address - x.family = 2 - *(*address)(unsafe.Pointer(buf + uintptr(PostIncInt32(&cnt, 1))*28)) = x - } - //TODO if (family != AF_INET) - //TODO buf[cnt++] = (struct address){ .family = AF_INET6 }; - if family != 2 { - var x = Xzero_struct_address - x.family = 10 - *(*address)(unsafe.Pointer(buf + uintptr(PostIncInt32(&cnt, 1))*28)) = x - } - } else { - Xabort(tls) //TODO- - // if (family != AF_INET6) - // buf[cnt++] = (struct address){ .family = AF_INET, .addr = { 127,0,0,1 } }; - // if (family != AF_INET) - // buf[cnt++] = (struct address){ .family = AF_INET6, .addr = { [15] = 1 } }; - } - return cnt -} - -func name_from_numeric(tls *TLS, buf uintptr, name uintptr, family int32) int32 { /* lookup_name.c:58:12: */ - return X__lookup_ipliteral(tls, buf, name, family) -} - -func name_from_hosts(tls *TLS, buf uintptr, canon uintptr, name uintptr, family int32) int32 { /* lookup_name.c:63:12: */ - bp := tls.Alloc(512) - defer tls.Free(512) - - // var line [512]int8 at bp, 512 - - var l size_t = Xstrlen(tls, name) - var cnt int32 = 0 - var badfam int32 = 0 - var _buf [1032]uint8 - _ = _buf - //TODO FILE _f, *f = __fopen_rb_ca("/etc/hosts", &_f, _buf, sizeof _buf); - var _f FILE - _ = _f - var f uintptr = Xfopen(tls, ts+76, ts+87) - if !(f != 0) { - switch *(*int32)(unsafe.Pointer(X___errno_location(tls))) { - case 2: - fallthrough - case 20: - fallthrough - case 13: - return 0 - fallthrough - default: - return -11 - } - } - for Xfgets(tls, bp, int32(unsafe.Sizeof([512]int8{})), f) != 0 && cnt < 48 { - var p uintptr - var z uintptr - - if AssignUintptr(&p, Xstrchr(tls, bp, '#')) != 0 { - *(*int8)(unsafe.Pointer(PostIncUintptr(&p, 1))) = int8('\n') - *(*int8)(unsafe.Pointer(p)) = int8(0) - } - for p = bp + uintptr(1); AssignUintptr(&p, Xstrstr(tls, p, name)) != 0 && (!(__isspace(tls, int32(*(*int8)(unsafe.Pointer(p + UintptrFromInt32(-1))))) != 0) || !(__isspace(tls, int32(*(*int8)(unsafe.Pointer(p + uintptr(l))))) != 0)); p++ { - } - if !(p != 0) { - continue - } - - // Isolate IP address to parse - for p = bp; /* &line[0] */ *(*int8)(unsafe.Pointer(p)) != 0 && !(__isspace(tls, int32(*(*int8)(unsafe.Pointer(p)))) != 0); p++ { - } - *(*int8)(unsafe.Pointer(PostIncUintptr(&p, 1))) = int8(0) - switch name_from_numeric(tls, buf+uintptr(cnt)*28, bp, family) { - case 1: - cnt++ - break - case 0: - continue - default: - badfam = -2 - continue - } - - // Extract first name as canonical name - for ; *(*int8)(unsafe.Pointer(p)) != 0 && __isspace(tls, int32(*(*int8)(unsafe.Pointer(p)))) != 0; p++ { - } - for z = p; *(*int8)(unsafe.Pointer(z)) != 0 && !(__isspace(tls, int32(*(*int8)(unsafe.Pointer(z)))) != 0); z++ { - } - *(*int8)(unsafe.Pointer(z)) = int8(0) - if is_valid_hostname(tls, p) != 0 { - Xmemcpy(tls, canon, p, uint32((int32(z)-int32(p))/1+1)) - } - } - //TODO __fclose_ca(f); - Xfclose(tls, f) - if cnt != 0 { - return cnt - } - return badfam -} - -type dpc_ctx = struct { - addrs uintptr - canon uintptr - cnt int32 -} /* lookup_name.c:112:1 */ - -func name_from_dns_search(tls *TLS, buf uintptr, canon uintptr, name uintptr, family int32) int32 { /* lookup_name.c:191:12: */ - return -1 //TODO- - Xabort(tls) - return int32(0) //TODO- - // char search[256]; - // struct resolvconf conf; - // size_t l, dots; - // char *p, *z; - - // if (__get_resolv_conf(&conf, search, sizeof search) < 0) return -1; - - // /* Count dots, suppress search when >=ndots or name ends in - // * a dot, which is an explicit request for global scope. */ - // for (dots=l=0; name[l]; l++) if (name[l]=='.') dots++; - // if (dots >= conf.ndots || name[l-1]=='.') *search = 0; - - // /* Strip final dot for canon, fail if multiple trailing dots. */ - // if (name[l-1]=='.') l--; - // if (!l || name[l-1]=='.') return EAI_NONAME; - - // /* This can never happen; the caller already checked length. */ - // if (l >= 256) return EAI_NONAME; - - // /* Name with search domain appended is setup in canon[]. This both - // * provides the desired default canonical name (if the requested - // * name is not a CNAME record) and serves as a buffer for passing - // * the full requested name to name_from_dns. */ - // memcpy(canon, name, l); - // canon[l] = '.'; - - // for (p=search; *p; p=z) { - // for (; isspace(*p); p++); - // for (z=p; *z && !isspace(*z); z++); - // if (z==p) break; - // if (z-p < 256 - l - 1) { - // memcpy(canon+l+1, p, z-p); - // canon[z-p+1+l] = 0; - // int cnt = name_from_dns(buf, canon, canon, family, &conf); - // if (cnt) return cnt; - // } - // } - - // canon[l] = 0; - // return name_from_dns(buf, canon, name, family, &conf); -} - -type policy = struct { - addr [16]uint8 - len uint8 - mask uint8 - prec uint8 - label uint8 -} /* lookup_name.c:237:14 */ - -var defpolicy = [6]policy{ - {addr: *(*[16]uint8)(unsafe.Pointer(ts + 172)), len: uint8(15), mask: uint8(0xff), prec: uint8(50)}, - {addr: *(*[16]uint8)(unsafe.Pointer(ts + 189)), len: uint8(11), mask: uint8(0xff), prec: uint8(35), label: uint8(4)}, - {addr: *(*[16]uint8)(unsafe.Pointer(ts + 205)), len: uint8(1), mask: uint8(0xff), prec: uint8(30), label: uint8(2)}, - {addr: *(*[16]uint8)(unsafe.Pointer(ts + 221)), len: uint8(3), mask: uint8(0xff), prec: uint8(5), label: uint8(5)}, - {addr: *(*[16]uint8)(unsafe.Pointer(ts + 237)), mask: uint8(0xfe), prec: uint8(3), label: uint8(13)}, - // Last rule must match all addresses to stop loop. - {addr: *(*[16]uint8)(unsafe.Pointer(ts + 253)), prec: uint8(40), label: uint8(1)}, -} /* lookup_name.c:241:3 */ - -func policyof(tls *TLS, a uintptr) uintptr { /* lookup_name.c:259:28: */ - var i int32 - for i = 0; ; i++ { - if Xmemcmp(tls, a, uintptr(unsafe.Pointer(&defpolicy))+uintptr(i)*20, uint32(defpolicy[i].len)) != 0 { - continue - } - if int32(*(*uint8_t)(unsafe.Pointer(a + uintptr(defpolicy[i].len))))&int32(defpolicy[i].mask) != - int32(*(*uint8)(unsafe.Pointer(uintptr(unsafe.Pointer(&defpolicy)) + uintptr(i)*20 + uintptr(defpolicy[i].len)))) { - continue - } - return uintptr(unsafe.Pointer(&defpolicy)) + uintptr(i)*20 - } - return uintptr(0) -} - -func labelof(tls *TLS, a uintptr) int32 { /* lookup_name.c:272:12: */ - return int32((*policy)(unsafe.Pointer(policyof(tls, a))).label) -} - -func scopeof(tls *TLS, a uintptr) int32 { /* lookup_name.c:277:12: */ - if int32(*(*uint8_t)(unsafe.Pointer(a))) == 0xff { - return int32(*(*uint8_t)(unsafe.Pointer(a + 1))) & 15 - } - if int32(*(*uint8_t)(unsafe.Pointer(a))) == 0xfe && int32(*(*uint8_t)(unsafe.Pointer(a + 1)))&0xc0 == 0x80 { - return 2 - } - if *(*uint32_t)(unsafe.Pointer(a)) == uint32_t(0) && *(*uint32_t)(unsafe.Pointer(a + 1*4)) == uint32_t(0) && *(*uint32_t)(unsafe.Pointer(a + 2*4)) == uint32_t(0) && int32(*(*uint8_t)(unsafe.Pointer(a + 12))) == 0 && int32(*(*uint8_t)(unsafe.Pointer(a + 13))) == 0 && int32(*(*uint8_t)(unsafe.Pointer(a + 14))) == 0 && int32(*(*uint8_t)(unsafe.Pointer(a + 15))) == 1 { - return 2 - } - if int32(*(*uint8_t)(unsafe.Pointer(a))) == 0xfe && int32(*(*uint8_t)(unsafe.Pointer(a + 1)))&0xc0 == 0xc0 { - return 5 - } - return 14 -} - -func prefixmatch(tls *TLS, s uintptr, d uintptr) int32 { /* lookup_name.c:286:12: */ - // FIXME: The common prefix length should be limited to no greater - // than the nominal length of the prefix portion of the source - // address. However the definition of the source prefix length is - // not clear and thus this limiting is not yet implemented. - var i uint32 - for i = uint32(0); i < uint32(128) && !((int32(*(*uint8_t)(unsafe.Pointer(s /* &.__in6_union */ /* &.__s6_addr */ + uintptr(i/uint32(8)))))^int32(*(*uint8_t)(unsafe.Pointer(d /* &.__in6_union */ /* &.__s6_addr */ + uintptr(i/uint32(8))))))&(int32(128)>>(i%uint32(8))) != 0); i++ { - } - return int32(i) -} - -func addrcmp(tls *TLS, _a uintptr, _b uintptr) int32 { /* lookup_name.c:305:12: */ - var a uintptr = _a - var b uintptr = _b - return (*address)(unsafe.Pointer(b)).sortkey - (*address)(unsafe.Pointer(a)).sortkey -} - -func X__lookup_name(tls *TLS, buf uintptr, canon uintptr, name uintptr, family int32, flags int32) int32 { /* lookup_name.c:311:5: */ - bp := tls.Alloc(92) - defer tls.Free(92) - - var cnt int32 = 0 - var i int32 - var j int32 - _ = j - - *(*int8)(unsafe.Pointer(canon)) = int8(0) - if name != 0 { - // reject empty name and check len so it fits into temp bufs - var l size_t = Xstrnlen(tls, name, uint32(255)) - if l-size_t(1) >= size_t(254) { - return -2 - } - Xmemcpy(tls, canon, name, l+size_t(1)) - } - - // Procedurally, a request for v6 addresses with the v4-mapped - // flag set is like a request for unspecified family, followed - // by filtering of the results. - if flags&0x08 != 0 { - if family == 10 { - family = 0 - } else { - flags = flags - 0x08 - } - } - - // Try each backend until there's at least one result. - cnt = name_from_null(tls, buf, name, family, flags) - if !(cnt != 0) { - cnt = name_from_numeric(tls, buf, name, family) - } - if !(cnt != 0) && !(flags&0x04 != 0) { - cnt = name_from_hosts(tls, buf, canon, name, family) - if !(cnt != 0) { - cnt = name_from_dns_search(tls, buf, canon, name, family) - } - } - if cnt <= 0 { - if cnt != 0 { - return cnt - } - return -2 - } - - // Filter/transform results for v4-mapped lookup, if requested. - if flags&0x08 != 0 { - Xabort(tls) //TODO- - // if (!(flags & AI_ALL)) { - // /* If any v6 results exist, remove v4 results. */ - // for (i=0; i= 0 { - if !(Xconnect(tls, fd, da, dalen) != 0) { - key = key | 0x40000000 - if !(Xgetsockname(tls, fd, sa1, bp+88) != 0) { - if family == 2 { - Xmemcpy(tls, - bp+28+8+uintptr(12), - bp+72+4, uint32(4)) - } - if dscope == scopeof(tls, bp+28+8) { - key = key | 0x20000000 - } - if dlabel == labelof(tls, bp+28+8) { - key = key | 0x10000000 - } - prefixlen = prefixmatch(tls, bp+28+8, - bp+8) - } - } - Xclose(tls, fd) - } - key = key | dprec<<20 - key = key | (15-dscope)<<16 - key = key | prefixlen<<8 - key = key | (48-i)<<0 - (*address)(unsafe.Pointer(buf + uintptr(i)*28)).sortkey = key - } - Xqsort(tls, buf, uint32(cnt), uint32(unsafe.Sizeof(address{})), *(*uintptr)(unsafe.Pointer(&struct { - f func(*TLS, uintptr, uintptr) int32 - }{addrcmp}))) - - //TODO pthread_setcancelstate(cs, 0); - - return cnt -} - -func X__lookup_serv(tls *TLS, buf uintptr, name uintptr, proto int32, socktype int32, flags int32) int32 { /* lookup_serv.c:12:5: */ - bp := tls.Alloc(4) - defer tls.Free(4) - - var line [128]int8 - _ = line - var cnt int32 = 0 - var p uintptr - _ = p - *(*uintptr)(unsafe.Pointer(bp /* z */)) = ts + 13 /* "" */ - var port uint32 = uint32(0) - - switch socktype { - case 1: - switch proto { - case 0: - proto = 6 - fallthrough - case 6: - break - default: - return -8 - } - break - case 2: - switch proto { - case 0: - proto = 17 - fallthrough - case 17: - break - default: - return -8 - } - fallthrough - case 0: - break - default: - if name != 0 { - return -8 - } - (*service)(unsafe.Pointer(buf)).port = uint16_t(0) - (*service)(unsafe.Pointer(buf)).proto = uint8(proto) - (*service)(unsafe.Pointer(buf)).socktype = uint8(socktype) - return 1 - } - - if name != 0 { - if !(int32(*(*int8)(unsafe.Pointer(name))) != 0) { - return -8 - } - port = Xstrtoul(tls, name, bp, 10) - } - if !(int32(*(*int8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp))))) != 0) { - if port > uint32(65535) { - return -8 - } - if proto != 17 { - (*service)(unsafe.Pointer(buf + uintptr(cnt)*4)).port = uint16_t(port) - (*service)(unsafe.Pointer(buf + uintptr(cnt)*4)).socktype = uint8(1) - (*service)(unsafe.Pointer(buf + uintptr(PostIncInt32(&cnt, 1))*4)).proto = uint8(6) - } - if proto != 6 { - (*service)(unsafe.Pointer(buf + uintptr(cnt)*4)).port = uint16_t(port) - (*service)(unsafe.Pointer(buf + uintptr(cnt)*4)).socktype = uint8(2) - (*service)(unsafe.Pointer(buf + uintptr(PostIncInt32(&cnt, 1))*4)).proto = uint8(17) - } - return cnt - } - - if flags&0x400 != 0 { - return -2 - } - - var l size_t = Xstrlen(tls, name) - _ = l - - Xabort(tls) //TODO- - // unsigned char _buf[1032]; - // FILE _f, *f = __fopen_rb_ca("/etc/services", &_f, _buf, sizeof _buf); - // if (!f) switch (errno) { - // case ENOENT: - // case ENOTDIR: - // case EACCES: - // return EAI_SERVICE; - // default: - // return EAI_SYSTEM; - // } - - Xabort(tls) //TODO- - // while (fgets(line, sizeof line, f) && cnt < MAXSERVS) { - // if ((p=strchr(line, '#'))) *p++='\n', *p=0; - - // /* Find service name */ - // for(p=line; (p=strstr(p, name)); p++) { - // if (p>line && !isspace(p[-1])) continue; - // if (p[l] && !isspace(p[l])) continue; - // break; - // } - // if (!p) continue; - - // /* Skip past canonical name at beginning of line */ - // for (p=line; *p && !isspace(*p); p++); - - // port = strtoul(p, &z, 10); - // if (port > 65535 || z==p) continue; - // if (!strncmp(z, "/udp", 4)) { - // if (proto == IPPROTO_TCP) continue; - // buf[cnt].port = port; - // buf[cnt].socktype = SOCK_DGRAM; - // buf[cnt++].proto = IPPROTO_UDP; - // } - // if (!strncmp(z, "/tcp", 4)) { - // if (proto == IPPROTO_UDP) continue; - // buf[cnt].port = port; - // buf[cnt].socktype = SOCK_STREAM; - // buf[cnt++].proto = IPPROTO_TCP; - // } - // } - // __fclose_ca(f); - // return cnt > 0 ? cnt : EAI_SERVICE; - Xabort(tls) - return int32(0) //TODO- -} - -func temper(tls *TLS, x uint32) uint32 { /* rand_r.c:3:17: */ - x = x ^ x>>11 - x = x ^ x<<7&0x9D2C5680 - x = x ^ x<<15&0xEFC60000 - x = x ^ x>>18 - return x -} - -func Xrand_r(tls *TLS, seed uintptr) int32 { /* rand_r.c:12:5: */ - return int32(temper(tls, AssignPtrUint32(seed, *(*uint32)(unsafe.Pointer(seed))*uint32(1103515245)+uint32(12345))) / uint32(2)) -} - -func X__lockfile(tls *TLS, f uintptr) int32 { /* __lockfile.c:4:5: */ - var owner int32 = (*FILE)(unsafe.Pointer(f)).lock - var tid int32 = (*__pthread)(unsafe.Pointer(__pthread_self(tls))).tid - if owner&CplInt32(0x40000000) == tid { - return 0 - } - owner = a_cas(tls, f+76, 0, tid) - if !(owner != 0) { - return 1 - } - for AssignInt32(&owner, a_cas(tls, f+76, 0, tid|0x40000000)) != 0 { - if owner&0x40000000 != 0 || a_cas(tls, f+76, owner, owner|0x40000000) == owner { - __futexwait(tls, f+76, owner|0x40000000, 1) - } - } - return 1 -} - -func X__unlockfile(tls *TLS, f uintptr) { /* __lockfile.c:19:6: */ - if a_swap(tls, f+76, 0)&0x40000000 != 0 { - __wake(tls, f+76, 1, 1) - } -} - -func X__toread(tls *TLS, f uintptr) int32 { /* __toread.c:3:5: */ - *(*int32)(unsafe.Pointer(f + 72)) |= (*FILE)(unsafe.Pointer(f)).mode - 1 - if (*FILE)(unsafe.Pointer(f)).wpos != (*FILE)(unsafe.Pointer(f)).wbase { - (*struct { - f func(*TLS, uintptr, uintptr, size_t) size_t - })(unsafe.Pointer(&struct{ uintptr }{(*FILE)(unsafe.Pointer(f)).write})).f(tls, f, uintptr(0), uint32(0)) - } - (*FILE)(unsafe.Pointer(f)).wpos = AssignPtrUintptr(f+28, AssignPtrUintptr(f+16, uintptr(0))) - if (*FILE)(unsafe.Pointer(f)).flags&uint32(4) != 0 { - *(*uint32)(unsafe.Pointer(f)) |= uint32(32) - return -1 - } - (*FILE)(unsafe.Pointer(f)).rpos = AssignPtrUintptr(f+8, (*FILE)(unsafe.Pointer(f)).buf+uintptr((*FILE)(unsafe.Pointer(f)).buf_size)) - if (*FILE)(unsafe.Pointer(f)).flags&uint32(16) != 0 { - return -1 - } - return 0 -} - -func X__toread_needs_stdio_exit(tls *TLS) { /* __toread.c:16:13: */ - X__builtin_abort(tls) //TODO- - // __stdio_exit_needed(); -} - -// This function assumes it will never be called if there is already -// data buffered for reading. - -func X__uflow(tls *TLS, f uintptr) int32 { /* __uflow.c:6:5: */ - bp := tls.Alloc(1) - defer tls.Free(1) - - // var c uint8 at bp, 1 - - if !(X__toread(tls, f) != 0) && (*struct { - f func(*TLS, uintptr, uintptr, size_t) size_t - })(unsafe.Pointer(&struct{ uintptr }{(*FILE)(unsafe.Pointer(f)).read})).f(tls, f, bp, uint32(1)) == size_t(1) { - return int32(*(*uint8)(unsafe.Pointer(bp))) - } - return -1 -} - -func Xsscanf(tls *TLS, s uintptr, fmt uintptr, va uintptr) int32 { /* sscanf.c:4:5: */ - var ret int32 - var ap va_list - _ = ap - ap = va - ret = Xvsscanf(tls, s, fmt, ap) - _ = ap - return ret -} - -type wctrans_t = uintptr /* wctype.h:20:19 */ - -func store_int(tls *TLS, dest uintptr, size int32, i uint64) { /* vfscanf.c:22:13: */ - if !(dest != 0) { - return - } - switch size { - case -2: - *(*int8)(unsafe.Pointer(dest)) = int8(i) - break - case -1: - *(*int16)(unsafe.Pointer(dest)) = int16(i) - break - case 0: - *(*int32)(unsafe.Pointer(dest)) = int32(i) - break - case 1: - *(*int32)(unsafe.Pointer(dest)) = int32(i) - break - case 3: - *(*int64)(unsafe.Pointer(dest)) = int64(i) - break - } -} - -func arg_n(tls *TLS, ap va_list, n uint32) uintptr { /* vfscanf.c:44:13: */ - var p uintptr - var i uint32 - var ap2 va_list - _ = ap2 - ap2 = ap - for i = n; i > uint32(1); i-- { - VaUintptr(&ap2) - } - p = VaUintptr(&ap2) - _ = ap2 - return p -} - -func Xvfscanf(tls *TLS, f uintptr, fmt uintptr, ap va_list) int32 { /* vfscanf.c:56:5: */ - bp := tls.Alloc(276) - defer tls.Free(276) - - var width int32 - var size int32 - var alloc int32 - var base int32 - var p uintptr - var c int32 - var t int32 - var s uintptr - var wcs uintptr - // var st mbstate_t at bp+268, 8 - - var dest uintptr - var invert int32 - var matches int32 - var x uint64 - var y float64 - var pos off_t - // var scanset [257]uint8 at bp, 257 - - var i size_t - var k size_t - // var wc wchar_t at bp+260, 4 - - var __need_unlock int32 - var tmp uintptr - var tmp1 uintptr - alloc = 0 - dest = uintptr(0) - matches = 0 - pos = int64(0) - __need_unlock = func() int32 { - if (*FILE)(unsafe.Pointer(f)).lock >= 0 { - return X__lockfile(tls, f) - } - return 0 - }() - - if !!(int32((*FILE)(unsafe.Pointer(f)).rpos) != 0) { - goto __1 - } - X__toread(tls, f) -__1: - ; - if !!(int32((*FILE)(unsafe.Pointer(f)).rpos) != 0) { - goto __2 - } - goto input_fail -__2: - ; - - p = fmt -__3: - if !(*(*uint8)(unsafe.Pointer(p)) != 0) { - goto __5 - } - - alloc = 0 - - if !(__isspace(tls, int32(*(*uint8)(unsafe.Pointer(p)))) != 0) { - goto __6 - } -__7: - if !(__isspace(tls, int32(*(*uint8)(unsafe.Pointer(p + 1)))) != 0) { - goto __8 - } - p++ - goto __7 -__8: - ; - X__shlim(tls, f, int64(0)) -__9: - if !(__isspace(tls, func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }()) != 0) { - goto __10 - } - goto __9 -__10: - ; - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - pos = pos + ((*FILE)(unsafe.Pointer(f)).shcnt + off_t((int32((*FILE)(unsafe.Pointer(f)).rpos)-int32((*FILE)(unsafe.Pointer(f)).buf))/1)) - goto __4 -__6: - ; - if !(int32(*(*uint8)(unsafe.Pointer(p))) != '%' || int32(*(*uint8)(unsafe.Pointer(p + 1))) == '%') { - goto __11 - } - X__shlim(tls, f, int64(0)) - if !(int32(*(*uint8)(unsafe.Pointer(p))) == '%') { - goto __12 - } - p++ -__14: - if !(__isspace(tls, AssignInt32(&c, func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }())) != 0) { - goto __15 - } - goto __14 -__15: - ; - goto __13 -__12: - c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() -__13: - ; - if !(c != int32(*(*uint8)(unsafe.Pointer(p)))) { - goto __16 - } - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - if !(c < 0) { - goto __17 - } - goto input_fail -__17: - ; - goto match_fail -__16: - ; - pos = pos + ((*FILE)(unsafe.Pointer(f)).shcnt + off_t((int32((*FILE)(unsafe.Pointer(f)).rpos)-int32((*FILE)(unsafe.Pointer(f)).buf))/1)) - goto __4 -__11: - ; - - p++ - if !(int32(*(*uint8)(unsafe.Pointer(p))) == '*') { - goto __18 - } - dest = uintptr(0) - p++ - goto __19 -__18: - if !(func() int32 { - if 0 != 0 { - return Xisdigit(tls, int32(*(*uint8)(unsafe.Pointer(p)))) - } - return Bool32(uint32(*(*uint8)(unsafe.Pointer(p)))-uint32('0') < uint32(10)) - }() != 0 && int32(*(*uint8)(unsafe.Pointer(p + 1))) == '$') { - goto __20 - } - dest = arg_n(tls, ap, uint32(int32(*(*uint8)(unsafe.Pointer(p)))-'0')) - p += uintptr(2) - goto __21 -__20: - dest = VaUintptr(&ap) -__21: - ; -__19: - ; - - width = 0 -__22: - if !(func() int32 { - if 0 != 0 { - return Xisdigit(tls, int32(*(*uint8)(unsafe.Pointer(p)))) - } - return Bool32(uint32(*(*uint8)(unsafe.Pointer(p)))-uint32('0') < uint32(10)) - }() != 0) { - goto __24 - } - width = 10*width + int32(*(*uint8)(unsafe.Pointer(p))) - '0' - goto __23 -__23: - p++ - goto __22 - goto __24 -__24: - ; - - if !(int32(*(*uint8)(unsafe.Pointer(p))) == 'm') { - goto __25 - } - wcs = uintptr(0) - s = uintptr(0) - alloc = BoolInt32(!!(dest != 0)) - p++ - goto __26 -__25: - alloc = 0 -__26: - ; - - size = 0 - switch int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&p, 1)))) { - case 'h': - goto __28 - case 'l': - goto __29 - case 'j': - goto __30 - case 'z': - goto __31 - case 't': - goto __32 - case 'L': - goto __33 - case 'd': - goto __34 - case 'i': - goto __35 - case 'o': - goto __36 - case 'u': - goto __37 - case 'x': - goto __38 - case 'a': - goto __39 - case 'e': - goto __40 - case 'f': - goto __41 - case 'g': - goto __42 - case 'A': - goto __43 - case 'E': - goto __44 - case 'F': - goto __45 - case 'G': - goto __46 - case 'X': - goto __47 - case 's': - goto __48 - case 'c': - goto __49 - case '[': - goto __50 - case 'S': - goto __51 - case 'C': - goto __52 - case 'p': - goto __53 - case 'n': - goto __54 - default: - goto __55 - } - goto __27 -__28: - if !(int32(*(*uint8)(unsafe.Pointer(p))) == 'h') { - goto __56 - } - p++ - size = -2 - goto __57 -__56: - size = -1 -__57: - ; - goto __27 -__29: - if !(int32(*(*uint8)(unsafe.Pointer(p))) == 'l') { - goto __58 - } - p++ - size = 3 - goto __59 -__58: - size = 1 -__59: - ; - goto __27 -__30: - size = 3 - goto __27 -__31: -__32: - size = 1 - goto __27 -__33: - size = 2 - goto __27 -__34: -__35: -__36: -__37: -__38: -__39: -__40: -__41: -__42: -__43: -__44: -__45: -__46: -__47: -__48: -__49: -__50: -__51: -__52: -__53: -__54: - p-- - goto __27 -__55: - goto fmt_fail -__27: - ; - - t = int32(*(*uint8)(unsafe.Pointer(p))) - - // C or S - if !(t&0x2f == 3) { - goto __60 - } - t = t | 32 - size = 1 -__60: - ; - - switch t { - case 'c': - goto __62 - case '[': - goto __63 - case 'n': - goto __64 - default: - goto __65 - } - goto __61 -__62: - if !(width < 1) { - goto __66 - } - width = 1 -__66: - ; -__63: - goto __61 -__64: - store_int(tls, dest, size, uint64(pos)) - // do not increment match count, etc! - goto __4 -__65: - X__shlim(tls, f, int64(0)) -__67: - if !(__isspace(tls, func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }()) != 0) { - goto __68 - } - goto __67 -__68: - ; - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - pos = pos + ((*FILE)(unsafe.Pointer(f)).shcnt + off_t((int32((*FILE)(unsafe.Pointer(f)).rpos)-int32((*FILE)(unsafe.Pointer(f)).buf))/1)) -__61: - ; - - X__shlim(tls, f, int64(width)) - if !(func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() < 0) { - goto __69 - } - goto input_fail -__69: - ; - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - - switch t { - case 's': - goto __71 - case 'c': - goto __72 - case '[': - goto __73 - case 'p': - goto __74 - case 'X': - goto __75 - case 'x': - goto __76 - case 'o': - goto __77 - case 'd': - goto __78 - case 'u': - goto __79 - case 'i': - goto __80 - case 'a': - goto __81 - case 'A': - goto __82 - case 'e': - goto __83 - case 'E': - goto __84 - case 'f': - goto __85 - case 'F': - goto __86 - case 'g': - goto __87 - case 'G': - goto __88 - } - goto __70 -__71: -__72: -__73: - if !(t == 'c' || t == 's') { - goto __89 - } - Xmemset(tls, bp, -1, uint32(unsafe.Sizeof([257]uint8{}))) - *(*uint8)(unsafe.Pointer(bp)) = uint8(0) - if !(t == 's') { - goto __91 - } - *(*uint8)(unsafe.Pointer(bp + 10)) = uint8(0) - *(*uint8)(unsafe.Pointer(bp + 11)) = uint8(0) - *(*uint8)(unsafe.Pointer(bp + 12)) = uint8(0) - *(*uint8)(unsafe.Pointer(bp + 13)) = uint8(0) - *(*uint8)(unsafe.Pointer(bp + 14)) = uint8(0) - *(*uint8)(unsafe.Pointer(bp + 33)) = uint8(0) -__91: - ; - goto __90 -__89: - if !(int32(*(*uint8)(unsafe.Pointer(PreIncUintptr(&p, 1)))) == '^') { - goto __92 - } - p++ - invert = 1 - goto __93 -__92: - invert = 0 -__93: - ; - Xmemset(tls, bp, invert, uint32(unsafe.Sizeof([257]uint8{}))) - *(*uint8)(unsafe.Pointer(bp)) = uint8(0) - if !(int32(*(*uint8)(unsafe.Pointer(p))) == '-') { - goto __94 - } - p++ - *(*uint8)(unsafe.Pointer(bp + 46)) = uint8(1 - invert) - goto __95 -__94: - if !(int32(*(*uint8)(unsafe.Pointer(p))) == ']') { - goto __96 - } - p++ - *(*uint8)(unsafe.Pointer(bp + 94)) = uint8(1 - invert) -__96: - ; -__95: - ; -__97: - if !(int32(*(*uint8)(unsafe.Pointer(p))) != ']') { - goto __99 - } - if !!(int32(*(*uint8)(unsafe.Pointer(p))) != 0) { - goto __100 - } - goto fmt_fail -__100: - ; - if !(int32(*(*uint8)(unsafe.Pointer(p))) == '-' && *(*uint8)(unsafe.Pointer(p + 1)) != 0 && int32(*(*uint8)(unsafe.Pointer(p + 1))) != ']') { - goto __101 - } - c = int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&p, 1) + UintptrFromInt32(-1)))) -__102: - if !(c < int32(*(*uint8)(unsafe.Pointer(p)))) { - goto __104 - } - *(*uint8)(unsafe.Pointer(bp + uintptr(1+c))) = uint8(1 - invert) - goto __103 -__103: - c++ - goto __102 - goto __104 -__104: - ; -__101: - ; - *(*uint8)(unsafe.Pointer(bp + uintptr(1+int32(*(*uint8)(unsafe.Pointer(p)))))) = uint8(1 - invert) - goto __98 -__98: - p++ - goto __97 - goto __99 -__99: - ; -__90: - ; - wcs = uintptr(0) - s = uintptr(0) - i = size_t(0) - if t == 'c' { - k = uint32(width) + 1 - } else { - k = uint32(31) - } - if !(size == 1) { - goto __105 - } - if !(alloc != 0) { - goto __107 - } - wcs = Xmalloc(tls, k*size_t(unsafe.Sizeof(wchar_t(0)))) - if !!(wcs != 0) { - goto __109 - } - goto alloc_fail -__109: - ; - goto __108 -__107: - wcs = dest -__108: - ; - *(*mbstate_t)(unsafe.Pointer(bp + 268 /* st */)) = mbstate_t{} -__110: - if !(*(*uint8)(unsafe.Pointer(bp + uintptr(AssignInt32(&c, func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }())+1))) != 0) { - goto __111 - } - switch Xmbrtowc(tls, bp+260, func() uintptr { *(*int8)(unsafe.Pointer(bp + 264)) = int8(c); return bp + 264 }(), uint32(1), bp+268 /* &st */) { - case Uint32FromInt32(-1): - goto __113 - case Uint32FromInt32(-2): - goto __114 - } - goto __112 -__113: - goto input_fail -__114: - goto __110 -__112: - ; - if !(wcs != 0) { - goto __115 - } - *(*wchar_t)(unsafe.Pointer(wcs + uintptr(PostIncUint32(&i, 1))*4)) = *(*wchar_t)(unsafe.Pointer(bp + 260 /* wc */)) -__115: - ; - if !(alloc != 0 && i == k) { - goto __116 - } - k = k + (k + size_t(1)) - tmp = Xrealloc(tls, wcs, k*size_t(unsafe.Sizeof(wchar_t(0)))) - if !!(tmp != 0) { - goto __117 - } - goto alloc_fail -__117: - ; - wcs = tmp -__116: - ; - goto __110 -__111: - ; - if !!(Xmbsinit(tls, bp+268) != 0) { - goto __118 - } - goto input_fail -__118: - ; - goto __106 -__105: - if !(alloc != 0) { - goto __119 - } - s = Xmalloc(tls, k) - if !!(s != 0) { - goto __121 - } - goto alloc_fail -__121: - ; -__122: - if !(*(*uint8)(unsafe.Pointer(bp + uintptr(AssignInt32(&c, func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }())+1))) != 0) { - goto __123 - } - *(*int8)(unsafe.Pointer(s + uintptr(PostIncUint32(&i, 1)))) = int8(c) - if !(i == k) { - goto __124 - } - k = k + (k + size_t(1)) - tmp1 = Xrealloc(tls, s, k) - if !!(tmp1 != 0) { - goto __125 - } - goto alloc_fail -__125: - ; - s = tmp1 -__124: - ; - goto __122 -__123: - ; - goto __120 -__119: - if !(AssignUintptr(&s, dest) != 0) { - goto __126 - } -__128: - if !(*(*uint8)(unsafe.Pointer(bp + uintptr(AssignInt32(&c, func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }())+1))) != 0) { - goto __129 - } - *(*int8)(unsafe.Pointer(s + uintptr(PostIncUint32(&i, 1)))) = int8(c) - goto __128 -__129: - ; - goto __127 -__126: -__130: - if !(*(*uint8)(unsafe.Pointer(bp + uintptr(AssignInt32(&c, func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }())+1))) != 0) { - goto __131 - } - goto __130 -__131: - ; -__127: - ; -__120: - ; -__106: - ; - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - if !!((*FILE)(unsafe.Pointer(f)).shcnt+off_t((int32((*FILE)(unsafe.Pointer(f)).rpos)-int32((*FILE)(unsafe.Pointer(f)).buf))/1) != 0) { - goto __132 - } - goto match_fail -__132: - ; - if !(t == 'c' && (*FILE)(unsafe.Pointer(f)).shcnt+off_t((int32((*FILE)(unsafe.Pointer(f)).rpos)-int32((*FILE)(unsafe.Pointer(f)).buf))/1) != off_t(width)) { - goto __133 - } - goto match_fail -__133: - ; - if !(alloc != 0) { - goto __134 - } - if !(size == 1) { - goto __135 - } - *(*uintptr)(unsafe.Pointer(dest)) = wcs - goto __136 -__135: - *(*uintptr)(unsafe.Pointer(dest)) = s -__136: - ; -__134: - ; - if !(t != 'c') { - goto __137 - } - if !(wcs != 0) { - goto __138 - } - *(*wchar_t)(unsafe.Pointer(wcs + uintptr(i)*4)) = 0 -__138: - ; - if !(s != 0) { - goto __139 - } - *(*int8)(unsafe.Pointer(s + uintptr(i))) = int8(0) -__139: - ; -__137: - ; - goto __70 -__74: -__75: -__76: - base = 16 - goto int_common -__77: - base = 8 - goto int_common -__78: -__79: - base = 10 - goto int_common -__80: - base = 0 -int_common: - x = X__intscan(tls, f, uint32(base), 0, 2*uint64(0x7fffffffffffffff)+uint64(1)) - if !!((*FILE)(unsafe.Pointer(f)).shcnt+off_t((int32((*FILE)(unsafe.Pointer(f)).rpos)-int32((*FILE)(unsafe.Pointer(f)).buf))/1) != 0) { - goto __140 - } - goto match_fail -__140: - ; - if !(t == 'p' && dest != 0) { - goto __141 - } - *(*uintptr)(unsafe.Pointer(dest)) = uintptr(uintptr_t(x)) - goto __142 -__141: - store_int(tls, dest, size, x) -__142: - ; - goto __70 -__81: -__82: -__83: -__84: -__85: -__86: -__87: -__88: - y = X__floatscan(tls, f, size, 0) - if !!((*FILE)(unsafe.Pointer(f)).shcnt+off_t((int32((*FILE)(unsafe.Pointer(f)).rpos)-int32((*FILE)(unsafe.Pointer(f)).buf))/1) != 0) { - goto __143 - } - goto match_fail -__143: - ; - if !(dest != 0) { - goto __144 - } - switch size { - case 0: - goto __146 - case 1: - goto __147 - case 2: - goto __148 - } - goto __145 -__146: - *(*float32)(unsafe.Pointer(dest)) = float32(y) - goto __145 -__147: - *(*float64)(unsafe.Pointer(dest)) = y - goto __145 -__148: - *(*float64)(unsafe.Pointer(dest)) = y - goto __145 -__145: - ; -__144: - ; - goto __70 -__70: - ; - - pos = pos + ((*FILE)(unsafe.Pointer(f)).shcnt + off_t((int32((*FILE)(unsafe.Pointer(f)).rpos)-int32((*FILE)(unsafe.Pointer(f)).buf))/1)) - if !(dest != 0) { - goto __149 - } - matches++ -__149: - ; - goto __4 -__4: - p++ - goto __3 - goto __5 -__5: - ; - if !(0 != 0) { - goto __150 - } -fmt_fail: -alloc_fail: -input_fail: - if !!(matches != 0) { - goto __151 - } - matches-- -__151: - ; -match_fail: - if !(alloc != 0) { - goto __152 - } - Xfree(tls, s) - Xfree(tls, wcs) -__152: - ; -__150: - ; -__153: - if !(__need_unlock != 0) { - goto __156 - } - X__unlockfile(tls, f) -__156: - ; - goto __154 -__154: - if 0 != 0 { - goto __153 - } - goto __155 -__155: - ; - return matches -} - -func string_read(tls *TLS, f uintptr, buf uintptr, len size_t) size_t { /* vsscanf.c:4:15: */ - var src uintptr = (*FILE)(unsafe.Pointer(f)).cookie - var k size_t = len + size_t(256) - var end uintptr = Xmemchr(tls, src, 0, k) - if end != 0 { - k = size_t((int32(end) - int32(src)) / 1) - } - if k < len { - len = k - } - Xmemcpy(tls, buf, src, len) - (*FILE)(unsafe.Pointer(f)).rpos = src + uintptr(len) - (*FILE)(unsafe.Pointer(f)).rend = src + uintptr(k) - (*FILE)(unsafe.Pointer(f)).cookie = src + uintptr(k) - return len -} - -func Xvsscanf(tls *TLS, s uintptr, fmt uintptr, ap va_list) int32 { /* vsscanf.c:18:5: */ - bp := tls.Alloc(136) - defer tls.Free(136) - - *(*FILE)(unsafe.Pointer(bp /* f */)) = FILE{read: *(*uintptr)(unsafe.Pointer(&struct { - f func(*TLS, uintptr, uintptr, size_t) size_t - }{string_read})), buf: s, lock: -1, cookie: s} - return Xvfscanf(tls, bp, fmt, ap) -} - -func Xbsearch(tls *TLS, key uintptr, base uintptr, nel size_t, width size_t, cmp uintptr) uintptr { /* bsearch.c:3:6: */ - var try uintptr - var sign int32 - for nel > size_t(0) { - try = base + uintptr(width*(nel/size_t(2))) - sign = (*struct { - f func(*TLS, uintptr, uintptr) int32 - })(unsafe.Pointer(&struct{ uintptr }{cmp})).f(tls, key, try) - if sign < 0 { - nel = nel / size_t(2) - } else if sign > 0 { - base = try + uintptr(width) - nel = nel - (nel/size_t(2) + size_t(1)) - } else { - return try - } - } - return uintptr(0) -} - -func strtox(tls *TLS, s uintptr, p uintptr, prec int32) float64 { /* strtod.c:6:20: */ - bp := tls.Alloc(136) - defer tls.Free(136) - - // var f FILE at bp, 136 - - (*FILE)(unsafe.Pointer(bp)).buf = AssignPtrUintptr(bp+4, s) - (*FILE)(unsafe.Pointer(bp)).rend = UintptrFromInt32(-1) - X__shlim(tls, bp, int64(0)) - var y float64 = X__floatscan(tls, bp, prec, 1) - var cnt off_t = (*FILE)(unsafe.Pointer(bp)).shcnt + off_t((int32((*FILE)(unsafe.Pointer(bp)).rpos)-int32((*FILE)(unsafe.Pointer(bp)).buf))/1) - if p != 0 { - *(*uintptr)(unsafe.Pointer(p)) = func() uintptr { - if cnt != 0 { - return s + uintptr(cnt) - } - return s - }() - } - return y -} - -func Xstrtof(tls *TLS, s uintptr, p uintptr) float32 { /* strtod.c:17:7: */ - return float32(strtox(tls, s, p, 0)) -} - -func Xstrtod(tls *TLS, s uintptr, p uintptr) float64 { /* strtod.c:22:8: */ - return strtox(tls, s, p, 1) -} - -func Xstrtold(tls *TLS, s uintptr, p uintptr) float64 { /* strtod.c:27:13: */ - return strtox(tls, s, p, 2) -} - -func strtox1(tls *TLS, s uintptr, p uintptr, base int32, lim uint64) uint64 { /* strtol.c:8:27: */ - bp := tls.Alloc(136) - defer tls.Free(136) - - // var f FILE at bp, 136 - - (*FILE)(unsafe.Pointer(bp)).buf = AssignPtrUintptr(bp+4, s) - (*FILE)(unsafe.Pointer(bp)).rend = UintptrFromInt32(-1) - X__shlim(tls, bp, int64(0)) - var y uint64 = X__intscan(tls, bp, uint32(base), 1, lim) - if p != 0 { - var cnt size_t = size_t((*FILE)(unsafe.Pointer(bp)).shcnt + off_t((int32((*FILE)(unsafe.Pointer(bp)).rpos)-int32((*FILE)(unsafe.Pointer(bp)).buf))/1)) - *(*uintptr)(unsafe.Pointer(p)) = s + uintptr(cnt) - } - return y -} - -func Xstrtoull(tls *TLS, s uintptr, p uintptr, base int32) uint64 { /* strtol.c:21:20: */ - return strtox1(tls, s, p, base, 2*uint64(0x7fffffffffffffff)+uint64(1)) -} - -func Xstrtoll(tls *TLS, s uintptr, p uintptr, base int32) int64 { /* strtol.c:26:11: */ - return int64(strtox1(tls, s, p, base, Uint64FromInt64(-0x7fffffffffffffff-int64(1)))) -} - -func Xstrtoul(tls *TLS, s uintptr, p uintptr, base int32) uint32 { /* strtol.c:31:15: */ - return uint32(strtox1(tls, s, p, base, uint64(2*uint32(0x7fffffff)+uint32(1)))) -} - -func Xstrtol(tls *TLS, s uintptr, p uintptr, base int32) int32 { /* strtol.c:36:6: */ - return int32(strtox1(tls, s, p, base, uint64(0+Uint32FromInt32(Int32(-Int32(0x7fffffff))-Int32FromInt32(1))))) -} - -func Xstrtoimax(tls *TLS, s uintptr, p uintptr, base int32) intmax_t { /* strtol.c:41:10: */ - return Xstrtoll(tls, s, p, base) -} - -func Xstrtoumax(tls *TLS, s uintptr, p uintptr, base int32) uintmax_t { /* strtol.c:46:11: */ - return Xstrtoull(tls, s, p, base) -} - -func Xstrdup(tls *TLS, s uintptr) uintptr { /* strdup.c:4:6: */ - var l size_t = Xstrlen(tls, s) - var d uintptr = Xmalloc(tls, l+size_t(1)) - if !(d != 0) { - return uintptr(0) - } - return Xmemcpy(tls, d, s, l+size_t(1)) -} - -func Xstrlcat(tls *TLS, d uintptr, s uintptr, n size_t) size_t { /* strlcat.c:4:8: */ - var l size_t = Xstrnlen(tls, d, n) - if l == n { - return l + Xstrlen(tls, s) - } - return l + Xstrlcpy(tls, d+uintptr(l), s, n-l) -} - -// Support signed or unsigned plain-char - -// Implementation choices... - -// Arbitrary numbers... - -// POSIX/SUS requirements follow. These numbers come directly -// from SUS and have nothing to do with the host system. - -func Xstrlcpy(tls *TLS, d uintptr, s uintptr, n size_t) size_t { /* strlcpy.c:11:8: */ - var d0 uintptr - var wd uintptr - var ws uintptr - d0 = d - - if !!(int32(PostDecUint32(&n, 1)) != 0) { - goto __1 - } - goto finish -__1: - ; - if !(uintptr_t(s)&(uint32(unsafe.Sizeof(size_t(0)))-uint32(1)) == uintptr_t(d)&(uint32(unsafe.Sizeof(size_t(0)))-uint32(1))) { - goto __2 - } -__3: - if !(uintptr_t(s)&(uint32(unsafe.Sizeof(size_t(0)))-uint32(1)) != 0 && n != 0 && AssignPtrInt8(d, *(*int8)(unsafe.Pointer(s))) != 0) { - goto __5 - } - goto __4 -__4: - n-- - s++ - d++ - goto __3 - goto __5 -__5: - ; - if !(n != 0 && *(*int8)(unsafe.Pointer(s)) != 0) { - goto __6 - } - wd = d - ws = s -__7: - if !(n >= size_t(unsafe.Sizeof(size_t(0))) && !((*(*uint32)(unsafe.Pointer(ws))-Uint32(Uint32FromInt32(-1))/size_t(255)) & ^*(*uint32)(unsafe.Pointer(ws)) & (Uint32(Uint32FromInt32(-1))/size_t(255)*size_t(255/2+1)) != 0)) { - goto __9 - } - *(*size_t)(unsafe.Pointer(wd)) = *(*uint32)(unsafe.Pointer(ws)) - goto __8 -__8: - n = n - size_t(unsafe.Sizeof(size_t(0))) - ws += 4 - wd += 4 - goto __7 - goto __9 -__9: - ; - d = wd - s = ws -__6: - ; -__2: - ; -__10: - if !(n != 0 && AssignPtrInt8(d, *(*int8)(unsafe.Pointer(s))) != 0) { - goto __12 - } - goto __11 -__11: - n-- - s++ - d++ - goto __10 - goto __12 -__12: - ; - *(*int8)(unsafe.Pointer(d)) = int8(0) -finish: - return size_t((int32(d)-int32(d0))/1) + Xstrlen(tls, s) -} - -func Xstrncasecmp(tls *TLS, _l uintptr, _r uintptr, n size_t) int32 { /* strncasecmp.c:4:5: */ - var l uintptr = _l - var r uintptr = _r - if !(int32(PostDecUint32(&n, 1)) != 0) { - return 0 - } -__1: - if !(*(*uint8)(unsafe.Pointer(l)) != 0 && *(*uint8)(unsafe.Pointer(r)) != 0 && n != 0 && (int32(*(*uint8)(unsafe.Pointer(l))) == int32(*(*uint8)(unsafe.Pointer(r))) || Xtolower(tls, int32(*(*uint8)(unsafe.Pointer(l)))) == Xtolower(tls, int32(*(*uint8)(unsafe.Pointer(r)))))) { - goto __3 - } - goto __2 -__2: - l++ - r++ - n-- - goto __1 - goto __3 -__3: - ; - return Xtolower(tls, int32(*(*uint8)(unsafe.Pointer(l)))) - Xtolower(tls, int32(*(*uint8)(unsafe.Pointer(r)))) -} - -func X__strncasecmp_l(tls *TLS, l uintptr, r uintptr, n size_t, loc locale_t) int32 { /* strncasecmp.c:12:5: */ - return Xstrncasecmp(tls, l, r, n) -} - -func Xstrncat(tls *TLS, d uintptr, s uintptr, n size_t) uintptr { /* strncat.c:3:6: */ - var a uintptr = d - d += uintptr(Xstrlen(tls, d)) - for n != 0 && *(*int8)(unsafe.Pointer(s)) != 0 { - n-- - *(*int8)(unsafe.Pointer(PostIncUintptr(&d, 1))) = *(*int8)(unsafe.Pointer(PostIncUintptr(&s, 1))) - } - *(*int8)(unsafe.Pointer(PostIncUintptr(&d, 1))) = int8(0) - return a -} - -func Xstrnlen(tls *TLS, s uintptr, n size_t) size_t { /* strnlen.c:3:8: */ - var p uintptr = Xmemchr(tls, s, 0, n) - if p != 0 { - return uint32((int32(p) - int32(s)) / 1) - } - return n -} - -func Xstrspn(tls *TLS, s uintptr, c uintptr) size_t { /* strspn.c:6:8: */ - bp := tls.Alloc(32) - defer tls.Free(32) - - var a uintptr = s - *(*[8]size_t)(unsafe.Pointer(bp /* byteset */)) = [8]size_t{0: size_t(0)} - - if !(int32(*(*int8)(unsafe.Pointer(c))) != 0) { - return size_t(0) - } - if !(int32(*(*int8)(unsafe.Pointer(c + 1))) != 0) { - for ; int32(*(*int8)(unsafe.Pointer(s))) == int32(*(*int8)(unsafe.Pointer(c))); s++ { - } - return size_t((int32(s) - int32(a)) / 1) - } - - for ; *(*int8)(unsafe.Pointer(c)) != 0 && AssignOrPtrUint32(bp+uintptr(size_t(*(*uint8)(unsafe.Pointer(c)))/(uint32(8)*uint32(unsafe.Sizeof(size_t(0)))))*4, size_t(size_t(1))<<(size_t(*(*uint8)(unsafe.Pointer(c)))%(uint32(8)*uint32(unsafe.Sizeof(size_t(0)))))) != 0; c++ { - } - for ; *(*int8)(unsafe.Pointer(s)) != 0 && *(*size_t)(unsafe.Pointer(bp + uintptr(size_t(*(*uint8)(unsafe.Pointer(s)))/(uint32(8)*uint32(unsafe.Sizeof(size_t(0)))))*4))&(size_t(size_t(1))<<(size_t(*(*uint8)(unsafe.Pointer(s)))%(uint32(8)*uint32(unsafe.Sizeof(size_t(0)))))) != 0; s++ { - } - return size_t((int32(s) - int32(a)) / 1) -} - -func Xstrtok(tls *TLS, s uintptr, sep uintptr) uintptr { /* strtok.c:3:6: */ - if !(s != 0) && !(int32(AssignUintptr(&s, _sp)) != 0) { - return uintptr(0) - } - s += uintptr(Xstrspn(tls, s, sep)) - if !(int32(*(*int8)(unsafe.Pointer(s))) != 0) { - return AssignPtrUintptr(uintptr(unsafe.Pointer(&_sp)), uintptr(0)) - } - _sp = s + uintptr(Xstrcspn(tls, s, sep)) - if *(*int8)(unsafe.Pointer(_sp)) != 0 { - *(*int8)(unsafe.Pointer(PostIncUintptr(&_sp, 1))) = int8(0) - } else { - _sp = uintptr(0) - } - return s -} - -var _sp uintptr /* strtok.c:5:14: */ - -func X__ccgo_pthreadAttrGetDetachState(tls *TLS, a uintptr) int32 { /* pthread_attr_get.c:3:5: */ - return *(*int32)(unsafe.Pointer(a + 3*4)) -} - -func Xpthread_attr_getdetachstate(tls *TLS, a uintptr, state uintptr) int32 { /* pthread_attr_get.c:7:5: */ - *(*int32)(unsafe.Pointer(state)) = *(*int32)(unsafe.Pointer(a + 3*4)) - return 0 -} - -// -// int pthread_attr_getguardsize(const pthread_attr_t *restrict a, size_t *restrict size) -// { -// *size = a->_a_guardsize; -// return 0; -// } -// -// int pthread_attr_getinheritsched(const pthread_attr_t *restrict a, int *restrict inherit) -// { -// *inherit = a->_a_sched; -// return 0; -// } -// -// int pthread_attr_getschedparam(const pthread_attr_t *restrict a, struct sched_param *restrict param) -// { -// param->sched_priority = a->_a_prio; -// return 0; -// } -// -// int pthread_attr_getschedpolicy(const pthread_attr_t *restrict a, int *restrict policy) -// { -// *policy = a->_a_policy; -// return 0; -// } -// -// int pthread_attr_getscope(const pthread_attr_t *restrict a, int *restrict scope) -// { -// *scope = PTHREAD_SCOPE_SYSTEM; -// return 0; -// } -// -// int pthread_attr_getstack(const pthread_attr_t *restrict a, void **restrict addr, size_t *restrict size) -// { -// if (!a->_a_stackaddr) -// return EINVAL; -// *size = a->_a_stacksize; -// *addr = (void *)(a->_a_stackaddr - *size); -// return 0; -// } -// -// int pthread_attr_getstacksize(const pthread_attr_t *restrict a, size_t *restrict size) -// { -// *size = a->_a_stacksize; -// return 0; -// } -// -// int pthread_barrierattr_getpshared(const pthread_barrierattr_t *restrict a, int *restrict pshared) -// { -// *pshared = !!a->__attr; -// return 0; -// } -// -// int pthread_condattr_getclock(const pthread_condattr_t *restrict a, clockid_t *restrict clk) -// { -// *clk = a->__attr & 0x7fffffff; -// return 0; -// } -// -// int pthread_condattr_getpshared(const pthread_condattr_t *restrict a, int *restrict pshared) -// { -// *pshared = a->__attr>>31; -// return 0; -// } -// -// int pthread_mutexattr_getprotocol(const pthread_mutexattr_t *restrict a, int *restrict protocol) -// { -// *protocol = PTHREAD_PRIO_NONE; -// return 0; -// } -// int pthread_mutexattr_getpshared(const pthread_mutexattr_t *restrict a, int *restrict pshared) -// { -// *pshared = a->__attr / 128U % 2; -// return 0; -// } -// -// int pthread_mutexattr_getrobust(const pthread_mutexattr_t *restrict a, int *restrict robust) -// { -// *robust = a->__attr / 4U % 2; -// return 0; -// } - -func X__ccgo_pthreadMutexattrGettype(tls *TLS, a uintptr) int32 { /* pthread_attr_get.c:93:5: */ - return int32((*pthread_mutexattr_t)(unsafe.Pointer(a)).__attr & uint32(3)) -} - -// int pthread_mutexattr_gettype(const pthread_mutexattr_t *restrict a, int *restrict type) -// { -// *type = a->__attr & 3; -// return 0; -// } -// -// int pthread_rwlockattr_getpshared(const pthread_rwlockattr_t *restrict a, int *restrict pshared) -// { -// *pshared = a->__attr[0]; -// return 0; -// } - -func Xpthread_attr_setdetachstate(tls *TLS, a uintptr, state int32) int32 { /* pthread_attr_setdetachstate.c:3:5: */ - if uint32(state) > 1 { - return 22 - } - *(*int32)(unsafe.Pointer(a + 3*4)) = state - return 0 -} - -func X__ccgo_getMutexType(tls *TLS, m uintptr) int32 { /* pthread_mutex_lock.c:3:5: */ - return *(*int32)(unsafe.Pointer(m)) & 15 -} - -// int __pthread_mutex_lock(pthread_mutex_t *m) -// { -// if ((m->_m_type&15) == PTHREAD_MUTEX_NORMAL -// && !a_cas(&m->_m_lock, 0, EBUSY)) -// return 0; -// -// return __pthread_mutex_timedlock(m, 0); -// } -// -// weak_alias(__pthread_mutex_lock, pthread_mutex_lock); - -func Xpthread_mutexattr_destroy(tls *TLS, a uintptr) int32 { /* pthread_mutexattr_destroy.c:3:5: */ - return 0 -} - -func Xpthread_mutexattr_init(tls *TLS, a uintptr) int32 { /* pthread_mutexattr_init.c:3:5: */ - *(*pthread_mutexattr_t)(unsafe.Pointer(a)) = pthread_mutexattr_t{} - return 0 -} - -func Xpthread_mutexattr_settype(tls *TLS, a uintptr, type1 int32) int32 { /* pthread_mutexattr_settype.c:3:5: */ - if uint32(type1) > uint32(2) { - return 22 - } - (*pthread_mutexattr_t)(unsafe.Pointer(a)).__attr = (*pthread_mutexattr_t)(unsafe.Pointer(a)).__attr&Uint32FromInt32(CplInt32(3)) | uint32(type1) - return 0 -} - -func init() { - *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&ptable)) + 0)) = uintptr(unsafe.Pointer(&table)) + uintptr(128)*2 // __ctype_b_loc.c:36:45: -} - -var ts1 = "infinity\x00nan\x00\x00\x00\x01\x02\x04\a\x03\x06\x05\x00.\x00%d.%d.%d.%d.in-addr.arpa\x00ip6.arpa\x000123456789abcdef\x00/etc/hosts\x00rb\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\xff\x00%d.%d.%d.%d\x00%x:%x:%x:%x:%x:%x:%x:%x\x00%x:%x:%x:%x:%x:%x:%d.%d.%d.%d\x00:0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\xff\x00\x00\x00\x00 \x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00 \x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xfc\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" -var ts = (*reflect.StringHeader)(unsafe.Pointer(&ts1)).Data diff --git a/vendor/modernc.org/libc/musl_linux_arm.go b/vendor/modernc.org/libc/musl_linux_arm.go deleted file mode 100644 index 8d4208843..000000000 --- a/vendor/modernc.org/libc/musl_linux_arm.go +++ /dev/null @@ -1,6918 +0,0 @@ -// Code generated by 'ccgo -export-externs X -hide __syscall0,__syscall1,__syscall2,__syscall3,__syscall4,__syscall5,__syscall6 -nostdinc -nostdlib -o ../musl_linux_arm.go -pkgname libc -static-locals-prefix _s -Iarch/arm -Iarch/generic -Iobj/src/internal -Isrc/include -Isrc/internal -Iobj/include -Iinclude copyright.c src/ctype/__ctype_b_loc.c src/ctype/isalnum.c src/ctype/isalpha.c src/ctype/isdigit.c src/ctype/islower.c src/ctype/isprint.c src/ctype/isupper.c src/ctype/isxdigit.c src/dirent/closedir.c src/dirent/opendir.c src/dirent/readdir.c src/internal/floatscan.c src/internal/intscan.c src/internal/shgetc.c src/locale/localeconv.c src/math/__fpclassify.c src/math/__fpclassifyf.c src/math/__fpclassifyl.c src/math/copysignl.c src/math/fabsl.c src/math/fmodl.c src/math/nanf.c src/math/rint.c src/math/scalbn.c src/math/scalbnl.c src/multibyte/internal.c src/multibyte/mbrtowc.c src/multibyte/mbsinit.c src/network/freeaddrinfo.c src/network/getaddrinfo.c src/network/gethostbyaddr.c src/network/gethostbyaddr_r.c src/network/gethostbyname.c src/network/gethostbyname2.c src/network/gethostbyname2_r.c src/network/gethostbyname_r.c src/network/getnameinfo.c src/network/h_errno.c src/network/inet_aton.c src/network/inet_ntop.c src/network/inet_pton.c src/network/lookup_ipliteral.c src/network/lookup_name.c src/network/lookup_serv.c src/prng/rand_r.c src/stdio/__lockfile.c src/stdio/__toread.c src/stdio/__uflow.c src/stdio/sscanf.c src/stdio/vfscanf.c src/stdio/vsscanf.c src/stdlib/bsearch.c src/stdlib/strtod.c src/stdlib/strtol.c src/string/strdup.c src/string/strlcat.c src/string/strlcpy.c src/string/strncasecmp.c src/string/strncat.c src/string/strnlen.c src/string/strspn.c src/string/strtok.c src/thread/pthread_attr_get.c src/thread/pthread_attr_setdetachstate.c src/thread/pthread_mutex_lock.c src/thread/pthread_mutexattr_destroy.c src/thread/pthread_mutexattr_init.c src/thread/pthread_mutexattr_settype.c', DO NOT EDIT. - -package libc - -import ( - "math" - "reflect" - "sync/atomic" - "unsafe" -) - -var _ = math.Pi -var _ reflect.Kind -var _ atomic.Value -var _ unsafe.Pointer - -// musl as a whole is licensed under the following standard MIT license: -// -// ---------------------------------------------------------------------- -// Copyright © 2005-2020 Rich Felker, et al. -// -// Permission is hereby granted, free of charge, to any person obtaining -// a copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to -// permit persons to whom the Software is furnished to do so, subject to -// the following conditions: -// -// The above copyright notice and this permission notice shall be -// included in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -// SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -// ---------------------------------------------------------------------- -// -// Authors/contributors include: -// -// A. Wilcox -// Ada Worcester -// Alex Dowad -// Alex Suykov -// Alexander Monakov -// Andre McCurdy -// Andrew Kelley -// Anthony G. Basile -// Aric Belsito -// Arvid Picciani -// Bartosz Brachaczek -// Benjamin Peterson -// Bobby Bingham -// Boris Brezillon -// Brent Cook -// Chris Spiegel -// Clément Vasseur -// Daniel Micay -// Daniel Sabogal -// Daurnimator -// David Carlier -// David Edelsohn -// Denys Vlasenko -// Dmitry Ivanov -// Dmitry V. Levin -// Drew DeVault -// Emil Renner Berthing -// Fangrui Song -// Felix Fietkau -// Felix Janda -// Gianluca Anzolin -// Hauke Mehrtens -// He X -// Hiltjo Posthuma -// Isaac Dunham -// Jaydeep Patil -// Jens Gustedt -// Jeremy Huntwork -// Jo-Philipp Wich -// Joakim Sindholt -// John Spencer -// Julien Ramseier -// Justin Cormack -// Kaarle Ritvanen -// Khem Raj -// Kylie McClain -// Leah Neukirchen -// Luca Barbato -// Luka Perkov -// M Farkas-Dyck (Strake) -// Mahesh Bodapati -// Markus Wichmann -// Masanori Ogino -// Michael Clark -// Michael Forney -// Mikhail Kremnyov -// Natanael Copa -// Nicholas J. Kain -// orc -// Pascal Cuoq -// Patrick Oppenlander -// Petr Hosek -// Petr Skocik -// Pierre Carrier -// Reini Urban -// Rich Felker -// Richard Pennington -// Ryan Fairfax -// Samuel Holland -// Segev Finer -// Shiz -// sin -// Solar Designer -// Stefan Kristiansson -// Stefan O'Rear -// Szabolcs Nagy -// Timo Teräs -// Trutz Behn -// Valentin Ochs -// Will Dietz -// William Haddon -// William Pitcock -// -// Portions of this software are derived from third-party works licensed -// under terms compatible with the above MIT license: -// -// The TRE regular expression implementation (src/regex/reg* and -// src/regex/tre*) is Copyright © 2001-2008 Ville Laurikari and licensed -// under a 2-clause BSD license (license text in the source files). The -// included version has been heavily modified by Rich Felker in 2012, in -// the interests of size, simplicity, and namespace cleanliness. -// -// Much of the math library code (src/math/* and src/complex/*) is -// Copyright © 1993,2004 Sun Microsystems or -// Copyright © 2003-2011 David Schultz or -// Copyright © 2003-2009 Steven G. Kargl or -// Copyright © 2003-2009 Bruce D. Evans or -// Copyright © 2008 Stephen L. Moshier or -// Copyright © 2017-2018 Arm Limited -// and labelled as such in comments in the individual source files. All -// have been licensed under extremely permissive terms. -// -// The ARM memcpy code (src/string/arm/memcpy.S) is Copyright © 2008 -// The Android Open Source Project and is licensed under a two-clause BSD -// license. It was taken from Bionic libc, used on Android. -// -// The AArch64 memcpy and memset code (src/string/aarch64/*) are -// Copyright © 1999-2019, Arm Limited. -// -// The implementation of DES for crypt (src/crypt/crypt_des.c) is -// Copyright © 1994 David Burren. It is licensed under a BSD license. -// -// The implementation of blowfish crypt (src/crypt/crypt_blowfish.c) was -// originally written by Solar Designer and placed into the public -// domain. The code also comes with a fallback permissive license for use -// in jurisdictions that may not recognize the public domain. -// -// The smoothsort implementation (src/stdlib/qsort.c) is Copyright © 2011 -// Valentin Ochs and is licensed under an MIT-style license. -// -// The x86_64 port was written by Nicholas J. Kain and is licensed under -// the standard MIT terms. -// -// The mips and microblaze ports were originally written by Richard -// Pennington for use in the ellcc project. The original code was adapted -// by Rich Felker for build system and code conventions during upstream -// integration. It is licensed under the standard MIT terms. -// -// The mips64 port was contributed by Imagination Technologies and is -// licensed under the standard MIT terms. -// -// The powerpc port was also originally written by Richard Pennington, -// and later supplemented and integrated by John Spencer. It is licensed -// under the standard MIT terms. -// -// All other files which have no copyright comments are original works -// produced specifically for use as part of this library, written either -// by Rich Felker, the main author of the library, or by one or more -// contibutors listed above. Details on authorship of individual files -// can be found in the git version control history of the project. The -// omission of copyright and license comments in each file is in the -// interest of source tree size. -// -// In addition, permission is hereby granted for all public header files -// (include/* and arch/*/bits/*) and crt files intended to be linked into -// applications (crt/*, ldso/dlstart.c, and arch/*/crt_arch.h) to omit -// the copyright notice and permission notice otherwise required by the -// license, and to use these files without any requirement of -// attribution. These files include substantial contributions from: -// -// Bobby Bingham -// John Spencer -// Nicholas J. Kain -// Rich Felker -// Richard Pennington -// Stefan Kristiansson -// Szabolcs Nagy -// -// all of whom have explicitly granted such permission. -// -// This file previously contained text expressing a belief that most of -// the files covered by the above exception were sufficiently trivial not -// to be subject to copyright, resulting in confusion over whether it -// negated the permissions granted in the license. In the spirit of -// permissive licensing, and of not having licensing issues being an -// obstacle to adoption, that text has been removed. -const ( /* copyright.c:194:1: */ - __musl__copyright__ = 0 -) - -const ( /* nameser.h:117:1: */ - ns_uop_delete = 0 - ns_uop_add = 1 - ns_uop_max = 2 -) - -const ( /* nameser.h:147:1: */ - ns_t_invalid = 0 - ns_t_a = 1 - ns_t_ns = 2 - ns_t_md = 3 - ns_t_mf = 4 - ns_t_cname = 5 - ns_t_soa = 6 - ns_t_mb = 7 - ns_t_mg = 8 - ns_t_mr = 9 - ns_t_null = 10 - ns_t_wks = 11 - ns_t_ptr = 12 - ns_t_hinfo = 13 - ns_t_minfo = 14 - ns_t_mx = 15 - ns_t_txt = 16 - ns_t_rp = 17 - ns_t_afsdb = 18 - ns_t_x25 = 19 - ns_t_isdn = 20 - ns_t_rt = 21 - ns_t_nsap = 22 - ns_t_nsap_ptr = 23 - ns_t_sig = 24 - ns_t_key = 25 - ns_t_px = 26 - ns_t_gpos = 27 - ns_t_aaaa = 28 - ns_t_loc = 29 - ns_t_nxt = 30 - ns_t_eid = 31 - ns_t_nimloc = 32 - ns_t_srv = 33 - ns_t_atma = 34 - ns_t_naptr = 35 - ns_t_kx = 36 - ns_t_cert = 37 - ns_t_a6 = 38 - ns_t_dname = 39 - ns_t_sink = 40 - ns_t_opt = 41 - ns_t_apl = 42 - ns_t_tkey = 249 - ns_t_tsig = 250 - ns_t_ixfr = 251 - ns_t_axfr = 252 - ns_t_mailb = 253 - ns_t_maila = 254 - ns_t_any = 255 - ns_t_zxfr = 256 - ns_t_max = 65536 -) - -const ( /* nameser.h:210:1: */ - ns_c_invalid = 0 - ns_c_in = 1 - ns_c_2 = 2 - ns_c_chaos = 3 - ns_c_hs = 4 - ns_c_none = 254 - ns_c_any = 255 - ns_c_max = 65536 -) - -const ( /* nameser.h:221:1: */ - ns_kt_rsa = 1 - ns_kt_dh = 2 - ns_kt_dsa = 3 - ns_kt_private = 254 -) - -const ( /* nameser.h:228:1: */ - cert_t_pkix = 1 - cert_t_spki = 2 - cert_t_pgp = 3 - cert_t_url = 253 - cert_t_oid = 254 -) - -const ( /* nameser.h:28:1: */ - ns_s_qd = 0 - ns_s_zn = 0 - ns_s_an = 1 - ns_s_pr = 1 - ns_s_ns = 2 - ns_s_ud = 2 - ns_s_ar = 3 - ns_s_max = 4 -) - -const ( /* nameser.h:75:1: */ - ns_f_qr = 0 - ns_f_opcode = 1 - ns_f_aa = 2 - ns_f_tc = 3 - ns_f_rd = 4 - ns_f_ra = 5 - ns_f_z = 6 - ns_f_ad = 7 - ns_f_cd = 8 - ns_f_rcode = 9 - ns_f_max = 10 -) - -const ( /* nameser.h:89:1: */ - ns_o_query = 0 - ns_o_iquery = 1 - ns_o_status = 2 - ns_o_notify = 4 - ns_o_update = 5 - ns_o_max = 6 -) - -const ( /* nameser.h:98:1: */ - ns_r_noerror = 0 - ns_r_formerr = 1 - ns_r_servfail = 2 - ns_r_nxdomain = 3 - ns_r_notimpl = 4 - ns_r_refused = 5 - ns_r_yxdomain = 6 - ns_r_yxrrset = 7 - ns_r_nxrrset = 8 - ns_r_notauth = 9 - ns_r_notzone = 10 - ns_r_max = 11 - ns_r_badvers = 16 - ns_r_badsig = 16 - ns_r_badkey = 17 - ns_r_badtime = 18 -) - -const ( /* pthread_impl.h:58:1: */ - DT_EXITING = 0 - DT_JOINABLE = 1 - DT_DETACHED = 2 -) - -type ptrdiff_t = int32 /* :3:26 */ - -type size_t = uint32 /* :9:23 */ - -type wchar_t = uint32 /* :15:24 */ - -type uint16_t = uint16 /* alltypes.h:119:25 */ - -type uint32_t = uint32 /* alltypes.h:124:25 */ - -type uint64_t = uint64 /* alltypes.h:129:25 */ - -func __bswap32(tls *TLS, __x uint32_t) uint32_t { /* endian.h:24:26: */ - return __x>>24 | __x>>8&uint32_t(0xff00) | __x<<8&uint32_t(0xff0000) | __x<<24 -} - -var table = [384]uint16{ - uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), - uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), - uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), - uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), - uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), - uint16((0x200/256 | 0x200*256) % 65536), uint16((0x320/256 | 0x320*256) % 65536), uint16((0x220/256 | 0x220*256) % 65536), uint16((0x220/256 | 0x220*256) % 65536), uint16((0x220/256 | 0x220*256) % 65536), uint16((0x220/256 | 0x220*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), - uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), - uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), - uint16((0x160/256 | 0x160*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), - uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), - uint16((0x8d8/256 | 0x8d8*256) % 65536), uint16((0x8d8/256 | 0x8d8*256) % 65536), uint16((0x8d8/256 | 0x8d8*256) % 65536), uint16((0x8d8/256 | 0x8d8*256) % 65536), uint16((0x8d8/256 | 0x8d8*256) % 65536), uint16((0x8d8/256 | 0x8d8*256) % 65536), uint16((0x8d8/256 | 0x8d8*256) % 65536), uint16((0x8d8/256 | 0x8d8*256) % 65536), - uint16((0x8d8/256 | 0x8d8*256) % 65536), uint16((0x8d8/256 | 0x8d8*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), - uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x8d5/256 | 0x8d5*256) % 65536), uint16((0x8d5/256 | 0x8d5*256) % 65536), uint16((0x8d5/256 | 0x8d5*256) % 65536), uint16((0x8d5/256 | 0x8d5*256) % 65536), uint16((0x8d5/256 | 0x8d5*256) % 65536), uint16((0x8d5/256 | 0x8d5*256) % 65536), uint16((0x8c5/256 | 0x8c5*256) % 65536), - uint16((0x8c5/256 | 0x8c5*256) % 65536), uint16((0x8c5/256 | 0x8c5*256) % 65536), uint16((0x8c5/256 | 0x8c5*256) % 65536), uint16((0x8c5/256 | 0x8c5*256) % 65536), uint16((0x8c5/256 | 0x8c5*256) % 65536), uint16((0x8c5/256 | 0x8c5*256) % 65536), uint16((0x8c5/256 | 0x8c5*256) % 65536), uint16((0x8c5/256 | 0x8c5*256) % 65536), - uint16((0x8c5/256 | 0x8c5*256) % 65536), uint16((0x8c5/256 | 0x8c5*256) % 65536), uint16((0x8c5/256 | 0x8c5*256) % 65536), uint16((0x8c5/256 | 0x8c5*256) % 65536), uint16((0x8c5/256 | 0x8c5*256) % 65536), uint16((0x8c5/256 | 0x8c5*256) % 65536), uint16((0x8c5/256 | 0x8c5*256) % 65536), uint16((0x8c5/256 | 0x8c5*256) % 65536), - uint16((0x8c5/256 | 0x8c5*256) % 65536), uint16((0x8c5/256 | 0x8c5*256) % 65536), uint16((0x8c5/256 | 0x8c5*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), - uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x8d6/256 | 0x8d6*256) % 65536), uint16((0x8d6/256 | 0x8d6*256) % 65536), uint16((0x8d6/256 | 0x8d6*256) % 65536), uint16((0x8d6/256 | 0x8d6*256) % 65536), uint16((0x8d6/256 | 0x8d6*256) % 65536), uint16((0x8d6/256 | 0x8d6*256) % 65536), uint16((0x8c6/256 | 0x8c6*256) % 65536), - uint16((0x8c6/256 | 0x8c6*256) % 65536), uint16((0x8c6/256 | 0x8c6*256) % 65536), uint16((0x8c6/256 | 0x8c6*256) % 65536), uint16((0x8c6/256 | 0x8c6*256) % 65536), uint16((0x8c6/256 | 0x8c6*256) % 65536), uint16((0x8c6/256 | 0x8c6*256) % 65536), uint16((0x8c6/256 | 0x8c6*256) % 65536), uint16((0x8c6/256 | 0x8c6*256) % 65536), - uint16((0x8c6/256 | 0x8c6*256) % 65536), uint16((0x8c6/256 | 0x8c6*256) % 65536), uint16((0x8c6/256 | 0x8c6*256) % 65536), uint16((0x8c6/256 | 0x8c6*256) % 65536), uint16((0x8c6/256 | 0x8c6*256) % 65536), uint16((0x8c6/256 | 0x8c6*256) % 65536), uint16((0x8c6/256 | 0x8c6*256) % 65536), uint16((0x8c6/256 | 0x8c6*256) % 65536), - uint16((0x8c6/256 | 0x8c6*256) % 65536), uint16((0x8c6/256 | 0x8c6*256) % 65536), uint16((0x8c6/256 | 0x8c6*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), - uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), - uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), - uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), - uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), -} /* __ctype_b_loc.c:9:29 */ - -var ptable uintptr = 0 /* __ctype_b_loc.c:36:29 */ - -func X__ctype_b_loc(tls *TLS) uintptr { /* __ctype_b_loc.c:38:22: */ - return uintptr(unsafe.Pointer(&ptable)) -} - -func __isspace(tls *TLS, _c int32) int32 { /* ctype.h:26:21: */ - return Bool32(_c == ' ' || uint32(_c)-uint32('\t') < uint32(5)) -} - -type __locale_struct = struct{ cat [6]uintptr } /* alltypes.h:336:9 */ - -type locale_t = uintptr /* alltypes.h:336:32 */ - -func Xisalnum(tls *TLS, c int32) int32 { /* isalnum.c:3:5: */ - return Bool32(func() int32 { - if 0 != 0 { - return Xisalpha(tls, c) - } - return Bool32(uint32(c)|uint32(32)-uint32('a') < uint32(26)) - }() != 0 || func() int32 { - if 0 != 0 { - return Xisdigit(tls, c) - } - return Bool32(uint32(c)-uint32('0') < uint32(10)) - }() != 0) -} - -func X__isalnum_l(tls *TLS, c int32, l locale_t) int32 { /* isalnum.c:8:5: */ - return Xisalnum(tls, c) -} - -func Xisalpha(tls *TLS, c int32) int32 { /* isalpha.c:4:5: */ - return Bool32(uint32(c)|uint32(32)-uint32('a') < uint32(26)) -} - -func X__isalpha_l(tls *TLS, c int32, l locale_t) int32 { /* isalpha.c:9:5: */ - return Xisalpha(tls, c) -} - -func Xisdigit(tls *TLS, c int32) int32 { /* isdigit.c:4:5: */ - return Bool32(uint32(c)-uint32('0') < uint32(10)) -} - -func X__isdigit_l(tls *TLS, c int32, l locale_t) int32 { /* isdigit.c:9:5: */ - return Xisdigit(tls, c) -} - -func Xislower(tls *TLS, c int32) int32 { /* islower.c:4:5: */ - return Bool32(uint32(c)-uint32('a') < uint32(26)) -} - -func X__islower_l(tls *TLS, c int32, l locale_t) int32 { /* islower.c:9:5: */ - return Xislower(tls, c) -} - -func Xisprint(tls *TLS, c int32) int32 { /* isprint.c:4:5: */ - return Bool32(uint32(c)-uint32(0x20) < uint32(0x5f)) -} - -func X__isprint_l(tls *TLS, c int32, l locale_t) int32 { /* isprint.c:9:5: */ - return Xisprint(tls, c) -} - -func Xisupper(tls *TLS, c int32) int32 { /* isupper.c:4:5: */ - return Bool32(uint32(c)-uint32('A') < uint32(26)) -} - -func X__isupper_l(tls *TLS, c int32, l locale_t) int32 { /* isupper.c:9:5: */ - return Xisupper(tls, c) -} - -func Xisxdigit(tls *TLS, c int32) int32 { /* isxdigit.c:3:5: */ - return Bool32(func() int32 { - if 0 != 0 { - return Xisdigit(tls, c) - } - return Bool32(uint32(c)-uint32('0') < uint32(10)) - }() != 0 || uint32(c)|uint32(32)-uint32('a') < uint32(6)) -} - -func X__isxdigit_l(tls *TLS, c int32, l locale_t) int32 { /* isxdigit.c:8:5: */ - return Xisxdigit(tls, c) -} - -type off_t = int64 /* alltypes.h:155:16 */ - -type ino_t = uint64 /* alltypes.h:160:25 */ - -type dirent = struct { - d_ino ino_t - d_off off_t - d_reclen uint16 - d_type uint8 - d_name [256]uint8 - _ [5]byte -} /* dirent.h:5:1 */ - -type __dirstream = struct { - tell off_t - fd int32 - buf_pos int32 - buf_end int32 - lock [1]int32 - buf [2048]uint8 -} /* dirent.h:20:9 */ - -type DIR = __dirstream /* dirent.h:20:28 */ - -type ssize_t = int32 /* alltypes.h:58:15 */ - -type intptr_t = int32 /* alltypes.h:63:15 */ - -type pid_t = int32 /* alltypes.h:228:13 */ - -type uid_t = uint32 /* alltypes.h:238:18 */ - -type gid_t = uint32 /* alltypes.h:243:18 */ - -type useconds_t = uint32 /* alltypes.h:253:18 */ - -type div_t = struct { - quot int32 - rem int32 -} /* stdlib.h:62:35 */ -type ldiv_t = struct { - quot int32 - rem int32 -} /* stdlib.h:63:36 */ -type lldiv_t = struct { - quot int64 - rem int64 -} /* stdlib.h:64:41 */ - -func Xclosedir(tls *TLS, dir uintptr) int32 { /* closedir.c:6:5: */ - var ret int32 = Xclose(tls, (*DIR)(unsafe.Pointer(dir)).fd) - Xfree(tls, dir) - return ret -} - -type mode_t = uint32 /* alltypes.h:145:18 */ - -type iovec = struct { - iov_base uintptr - iov_len size_t -} /* alltypes.h:348:1 */ - -type flock = struct { - l_type int16 - l_whence int16 - _ [4]byte - l_start off_t - l_len off_t - l_pid pid_t - _ [4]byte -} /* fcntl.h:24:1 */ - -type file_handle = struct { - _ [0]uint32 - handle_bytes uint32 - handle_type int32 -} /* fcntl.h:167:1 */ - -type f_owner_ex = struct { - __type int32 - pid pid_t -} /* fcntl.h:172:1 */ - -type syscall_arg_t = int32 /* syscall.h:22:14 */ - -func Xopendir(tls *TLS, name uintptr) uintptr { /* opendir.c:8:5: */ - var fd int32 - var dir uintptr - - if AssignInt32(&fd, Xopen(tls, name, 00|040000|02000000, 0)) < 0 { - return uintptr(0) - } - if !(int32(AssignUintptr(&dir, Xcalloc(tls, uint32(1), uint32(unsafe.Sizeof(DIR{}))))) != 0) { - X__syscall1(tls, 6, int32(fd)) - return uintptr(0) - } - (*DIR)(unsafe.Pointer(dir)).fd = fd - return dir -} - -type max_align_t = struct { - __ll int64 - __ld float64 -} /* alltypes.h:34:54 */ - -type dirstream_buf_alignment_check = [1]uint8 /* readdir.c:7:14 */ - -func Xreaddir(tls *TLS, dir uintptr) uintptr { /* readdir.c:10:15: */ - var de uintptr - - if (*DIR)(unsafe.Pointer(dir)).buf_pos >= (*DIR)(unsafe.Pointer(dir)).buf_end { - var len int32 = int32(X__syscall3(tls, 217, int32((*DIR)(unsafe.Pointer(dir)).fd), int32(dir+24), int32(unsafe.Sizeof([2048]uint8{})))) - if len <= 0 { - if len < 0 && len != -2 { - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = -len - } - return uintptr(0) - } - (*DIR)(unsafe.Pointer(dir)).buf_end = len - (*DIR)(unsafe.Pointer(dir)).buf_pos = 0 - } - de = dir + 24 + uintptr((*DIR)(unsafe.Pointer(dir)).buf_pos) - *(*int32)(unsafe.Pointer(dir + 12)) += int32((*dirent)(unsafe.Pointer(de)).d_reclen) - (*DIR)(unsafe.Pointer(dir)).tell = (*dirent)(unsafe.Pointer(de)).d_off - return de -} - -type uintptr_t = uint32 /* alltypes.h:48:24 */ - -type int8_t = int8 /* alltypes.h:89:25 */ - -type int16_t = int16 /* alltypes.h:94:25 */ - -type int32_t = int32 /* alltypes.h:99:25 */ - -type int64_t = int64 /* alltypes.h:104:25 */ - -type intmax_t = int64 /* alltypes.h:109:25 */ - -type uint8_t = uint8 /* alltypes.h:114:25 */ - -type uintmax_t = uint64 /* alltypes.h:139:25 */ - -type int_fast8_t = int8_t /* stdint.h:22:16 */ -type int_fast64_t = int64_t /* stdint.h:23:17 */ - -type int_least8_t = int8_t /* stdint.h:25:17 */ -type int_least16_t = int16_t /* stdint.h:26:17 */ -type int_least32_t = int32_t /* stdint.h:27:17 */ -type int_least64_t = int64_t /* stdint.h:28:17 */ - -type uint_fast8_t = uint8_t /* stdint.h:30:17 */ -type uint_fast64_t = uint64_t /* stdint.h:31:18 */ - -type uint_least8_t = uint8_t /* stdint.h:33:18 */ -type uint_least16_t = uint16_t /* stdint.h:34:18 */ -type uint_least32_t = uint32_t /* stdint.h:35:18 */ -type uint_least64_t = uint64_t /* stdint.h:36:18 */ - -type int_fast16_t = int32_t /* stdint.h:1:17 */ -type int_fast32_t = int32_t /* stdint.h:2:17 */ -type uint_fast16_t = uint32_t /* stdint.h:3:18 */ -type uint_fast32_t = uint32_t /* stdint.h:4:18 */ - -type _IO_FILE = struct { - flags uint32 - rpos uintptr - rend uintptr - close uintptr - wend uintptr - wpos uintptr - mustbezero_1 uintptr - wbase uintptr - read uintptr - write uintptr - seek uintptr - buf uintptr - buf_size size_t - prev uintptr - next uintptr - fd int32 - pipe_pid int32 - lockcount int32 - mode int32 - lock int32 - lbf int32 - cookie uintptr - off off_t - getln_buf uintptr - mustbezero_2 uintptr - shend uintptr - _ [4]byte - shlim off_t - shcnt off_t - prev_locked uintptr - next_locked uintptr - locale uintptr - _ [4]byte -} /* alltypes.h:313:9 */ - -type FILE = _IO_FILE /* alltypes.h:313:25 */ - -type va_list = uintptr /* alltypes.h:319:27 */ - -type _G_fpos64_t = struct { - _ [0]uint64 - __opaque [16]uint8 -} /* stdio.h:54:9 */ - -type fpos_t = _G_fpos64_t /* stdio.h:58:3 */ - -type float_t = float32 /* alltypes.h:23:15 */ - -type double_t = float64 /* alltypes.h:28:16 */ - -func __FLOAT_BITS(tls *TLS, __f float32) uint32 { /* math.h:55:26: */ - bp := tls.Alloc(4) - defer tls.Free(4) - - // var __u struct {__f float32;} at bp, 4 - - *(*float32)(unsafe.Pointer(bp)) = __f - return *(*uint32)(unsafe.Pointer(bp)) -} - -func __DOUBLE_BITS(tls *TLS, __f float64) uint64 { /* math.h:61:36: */ - bp := tls.Alloc(8) - defer tls.Free(8) - - // var __u struct {__f float64;} at bp, 8 - - *(*float64)(unsafe.Pointer(bp)) = __f - return *(*uint64)(unsafe.Pointer(bp)) -} - -type __pthread = struct { - self uintptr - dtv uintptr - prev uintptr - next uintptr - sysinfo uintptr_t - canary uintptr_t - canary2 uintptr_t - tid int32 - errno_val int32 - detach_state int32 - cancel int32 - canceldisable uint8 - cancelasync uint8 - tsd_used uint8 /* unsigned char tsd_used: 1, unsigned char dlerror_flag: 1 */ - _ [1]byte - map_base uintptr - map_size size_t - stack uintptr - stack_size size_t - guard_size size_t - result uintptr - cancelbuf uintptr - tsd uintptr - robust_list struct { - head uintptr - off int32 - pending uintptr - } - timer_id int32 - locale locale_t - killlock [1]int32 - dlerror_buf uintptr - stdio_locks uintptr - canary_at_end uintptr_t - dtv_copy uintptr -} /* alltypes.h:266:9 */ - -func scanexp(tls *TLS, f uintptr, pok int32) int64 { /* floatscan.c:37:18: */ - var c int32 - var x int32 - var y int64 - var neg int32 = 0 - - c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() - if c == '+' || c == '-' { - neg = Bool32(c == '-') - c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() - if uint32(c-'0') >= 10 && pok != 0 { - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - } - } - if uint32(c-'0') >= 10 { - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - return -0x7fffffffffffffff - int64(1) - } - for x = 0; uint32(c-'0') < 10 && x < 0x7fffffff/10; c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() { - x = 10*x + c - '0' - } - for y = int64(x); uint32(c-'0') < 10 && y < 0x7fffffffffffffff/int64(100); c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() { - y = int64(10)*y + int64(c) - int64('0') - } - for ; uint32(c-'0') < 10; c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() { - } - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - if neg != 0 { - return -y - } - return y -} - -func decfloat(tls *TLS, f uintptr, c int32, bits int32, emin int32, sign int32, pok int32) float64 { /* floatscan.c:64:20: */ - bp := tls.Alloc(512) - defer tls.Free(512) - - // var x [128]uint32_t at bp, 512 - - var i int32 - var j int32 - var k int32 - var a int32 - var z int32 - var lrp int64 = int64(0) - var dc int64 = int64(0) - var e10 int64 = int64(0) - var lnz int32 = 0 - var gotdig int32 = 0 - var gotrad int32 = 0 - var rp int32 - var e2 int32 - var emax int32 = -emin - bits + 3 - var denormal int32 = 0 - var y float64 - var frac float64 = float64(0) - var bias float64 = float64(0) - - j = 0 - k = 0 - - // Don't let leading zeros consume buffer space - for ; c == '0'; c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() { - gotdig = 1 - } - if c == '.' { - gotrad = 1 - for c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }(); c == '0'; c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() { - gotdig = 1 - lrp-- - } - } - - *(*uint32_t)(unsafe.Pointer(bp)) = uint32_t(0) - for ; uint32(c-'0') < 10 || c == '.'; c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() { - if c == '.' { - if gotrad != 0 { - break - } - gotrad = 1 - lrp = dc - } else if k < 128-3 { - dc++ - if c != '0' { - lnz = int32(dc) - } - if j != 0 { - *(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4)) = *(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4))*uint32_t(10) + uint32_t(c) - uint32_t('0') - } else { - *(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4)) = uint32_t(c - '0') - } - if PreIncInt32(&j, 1) == 9 { - k++ - j = 0 - } - gotdig = 1 - } else { - dc++ - if c != '0' { - lnz = (128 - 4) * 9 - *(*uint32_t)(unsafe.Pointer(bp + 124*4)) |= uint32_t(1) - } - } - } - if !(gotrad != 0) { - lrp = dc - } - - if gotdig != 0 && c|32 == 'e' { - e10 = scanexp(tls, f, pok) - if e10 == -0x7fffffffffffffff-int64(1) { - if pok != 0 { - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - } else { - X__shlim(tls, f, int64(0)) - return float64(0) - } - e10 = int64(0) - } - lrp = lrp + e10 - } else if c >= 0 { - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - } - if !(gotdig != 0) { - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 22 - X__shlim(tls, f, int64(0)) - return float64(0) - } - - // Handle zero specially to avoid nasty special cases later - if !(int32(*(*uint32_t)(unsafe.Pointer(bp))) != 0) { - return float64(sign) * 0.0 - } - - // Optimize small integers (w/no exponent) and over/under-flow - if lrp == dc && dc < int64(10) && (bits > 30 || *(*uint32_t)(unsafe.Pointer(bp))>>bits == uint32_t(0)) { - return float64(sign) * float64(*(*uint32_t)(unsafe.Pointer(bp))) - } - if lrp > int64(-emin/2) { - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 34 - return float64(sign) * 1.79769313486231570815e+308 * 1.79769313486231570815e+308 - } - if lrp < int64(emin-2*53) { - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 34 - return float64(sign) * 2.22507385850720138309e-308 * 2.22507385850720138309e-308 - } - - // Align incomplete final B1B digit - if j != 0 { - for ; j < 9; j++ { - *(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4)) *= uint32_t(10) - } - k++ - j = 0 - } - - a = 0 - z = k - e2 = 0 - rp = int32(lrp) - - // Optimize small to mid-size integers (even in exp. notation) - if lnz < 9 && lnz <= rp && rp < 18 { - if rp == 9 { - return float64(sign) * float64(*(*uint32_t)(unsafe.Pointer(bp))) - } - if rp < 9 { - return float64(sign) * float64(*(*uint32_t)(unsafe.Pointer(bp))) / float64(_sp10s[8-rp]) - } - var bitlim int32 = bits - 3*(rp-9) - if bitlim > 30 || *(*uint32_t)(unsafe.Pointer(bp))>>bitlim == uint32_t(0) { - return float64(sign) * float64(*(*uint32_t)(unsafe.Pointer(bp))) * float64(_sp10s[rp-10]) - } - } - - // Drop trailing zeros - for ; !(int32(*(*uint32_t)(unsafe.Pointer(bp + uintptr(z-1)*4))) != 0); z-- { - } - - // Align radix point to B1B digit boundary - if rp%9 != 0 { - var rpm9 int32 - if rp >= 0 { - rpm9 = rp % 9 - } else { - rpm9 = rp%9 + 9 - } - var p10 int32 = _sp10s[8-rpm9] - var carry uint32_t = uint32_t(0) - for k = a; k != z; k++ { - var tmp uint32_t = *(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4)) % uint32_t(p10) - *(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4)) = *(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4))/uint32_t(p10) + carry - carry = uint32_t(1000000000/p10) * tmp - if k == a && !(int32(*(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4))) != 0) { - a = (a + 1) & (128 - 1) - rp = rp - 9 - } - } - if carry != 0 { - *(*uint32_t)(unsafe.Pointer(bp + uintptr(PostIncInt32(&z, 1))*4)) = carry - } - rp = rp + (9 - rpm9) - } - - // Upscale until desired number of bits are left of radix point - for rp < 9*2 || rp == 9*2 && *(*uint32_t)(unsafe.Pointer(bp + uintptr(a)*4)) < _sth[0] { - var carry uint32_t = uint32_t(0) - e2 = e2 - 29 - for k = (z - 1) & (128 - 1); ; k = (k - 1) & (128 - 1) { - var tmp uint64_t = uint64_t(*(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4)))<<29 + uint64_t(carry) - if tmp > uint64(1000000000) { - carry = uint32_t(tmp / uint64(1000000000)) - *(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4)) = uint32_t(tmp % uint64(1000000000)) - } else { - carry = uint32_t(0) - *(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4)) = uint32_t(tmp) - } - if k == (z-1)&(128-1) && k != a && !(int32(*(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4))) != 0) { - z = k - } - if k == a { - break - } - } - if carry != 0 { - rp = rp + 9 - a = (a - 1) & (128 - 1) - if a == z { - z = (z - 1) & (128 - 1) - *(*uint32_t)(unsafe.Pointer(bp + uintptr((z-1)&(128-1))*4)) |= *(*uint32_t)(unsafe.Pointer(bp + uintptr(z)*4)) - } - *(*uint32_t)(unsafe.Pointer(bp + uintptr(a)*4)) = carry - } - } - - // Downscale until exactly number of bits are left of radix point - for { - var carry uint32_t = uint32_t(0) - var sh int32 = 1 - for i = 0; i < 2; i++ { - k = (a + i) & (128 - 1) - if k == z || *(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4)) < _sth[i] { - i = 2 - break - } - if *(*uint32_t)(unsafe.Pointer(bp + uintptr((a+i)&(128-1))*4)) > _sth[i] { - break - } - } - if i == 2 && rp == 9*2 { - break - } - // FIXME: find a way to compute optimal sh - if rp > 9+9*2 { - sh = 9 - } - e2 = e2 + sh - for k = a; k != z; k = (k + 1) & (128 - 1) { - var tmp uint32_t = *(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4)) & uint32_t(int32(1)<>sh + carry - carry = uint32_t(int32(1000000000)>>sh) * tmp - if k == a && !(int32(*(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4))) != 0) { - a = (a + 1) & (128 - 1) - i-- - rp = rp - 9 - } - } - if carry != 0 { - if (z+1)&(128-1) != a { - *(*uint32_t)(unsafe.Pointer(bp + uintptr(z)*4)) = carry - z = (z + 1) & (128 - 1) - } else { - *(*uint32_t)(unsafe.Pointer(bp + uintptr((z-1)&(128-1))*4)) |= uint32_t(1) - } - } - } - - // Assemble desired bits into floating point variable - for y = float64(AssignInt32(&i, 0)); i < 2; i++ { - if (a+i)&(128-1) == z { - *(*uint32_t)(unsafe.Pointer(bp + uintptr(AssignInt32(&z, (z+1)&(128-1))-1)*4)) = uint32_t(0) - } - y = 1000000000.0*y + float64(*(*uint32_t)(unsafe.Pointer(bp + uintptr((a+i)&(128-1))*4))) - } - - y = y * float64(sign) - - // Limit precision for denormal results - if bits > 53+e2-emin { - bits = 53 + e2 - emin - if bits < 0 { - bits = 0 - } - denormal = 1 - } - - // Calculate bias term to force rounding, move out lower bits - if bits < 53 { - bias = Xcopysignl(tls, Xscalbn(tls, float64(1), 2*53-bits-1), y) - frac = Xfmodl(tls, y, Xscalbn(tls, float64(1), 53-bits)) - y = y - frac - y = y + bias - } - - // Process tail of decimal input so it can affect rounding - if (a+i)&(128-1) != z { - var t uint32_t = *(*uint32_t)(unsafe.Pointer(bp + uintptr((a+i)&(128-1))*4)) - if t < uint32_t(500000000) && (t != 0 || (a+i+1)&(128-1) != z) { - frac = frac + 0.25*float64(sign) - } else if t > uint32_t(500000000) { - frac = frac + 0.75*float64(sign) - } else if t == uint32_t(500000000) { - if (a+i+1)&(128-1) == z { - frac = frac + 0.5*float64(sign) - } else { - frac = frac + 0.75*float64(sign) - } - } - if 53-bits >= 2 && !(Xfmodl(tls, frac, float64(1)) != 0) { - frac += 1 - } - } - - y = y + frac - y = y - bias - - if (e2+53)&0x7fffffff > emax-5 { - if Xfabsl(tls, y) >= float64(float64(2))/2.22044604925031308085e-16 { - if denormal != 0 && bits == 53+e2-emin { - denormal = 0 - } - y = y * 0.5 - e2++ - } - if e2+53 > emax || denormal != 0 && frac != 0 { - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 34 - } - } - - return Xscalbnl(tls, y, e2) -} - -var _sth = [2]uint32_t{uint32_t(9007199), uint32_t(254740991)} /* floatscan.c:67:24 */ -var _sp10s = [8]int32{10, 100, 1000, 10000, - 100000, 1000000, 10000000, 100000000} /* floatscan.c:80:19 */ - -func hexfloat(tls *TLS, f uintptr, bits int32, emin int32, sign int32, pok int32) float64 { /* floatscan.c:315:20: */ - var x uint32_t = uint32_t(0) - var y float64 = float64(0) - var scale float64 = float64(1) - var bias float64 = float64(0) - var gottail int32 = 0 - var gotrad int32 = 0 - var gotdig int32 = 0 - var rp int64 = int64(0) - var dc int64 = int64(0) - var e2 int64 = int64(0) - var d int32 - var c int32 - - c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() - - // Skip leading zeros - for ; c == '0'; c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() { - gotdig = 1 - } - - if c == '.' { - gotrad = 1 - c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() - // Count zeros after the radix point before significand - rp = int64(0) - __1: - if !(c == '0') { - goto __3 - } - gotdig = 1 - goto __2 - __2: - c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() - rp-- - goto __1 - goto __3 - __3: - } - - for ; uint32(c-'0') < 10 || uint32(c|32-'a') < 6 || c == '.'; c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() { - if c == '.' { - if gotrad != 0 { - break - } - rp = dc - gotrad = 1 - } else { - gotdig = 1 - if c > '9' { - d = c | 32 + 10 - 'a' - } else { - d = c - '0' - } - if dc < int64(8) { - x = x*uint32_t(16) + uint32_t(d) - } else if dc < int64(53/4+1) { - y = y + float64(d)*AssignDivFloat64(&scale, float64(16)) - } else if d != 0 && !(gottail != 0) { - y = y + 0.5*scale - gottail = 1 - } - dc++ - } - } - if !(gotdig != 0) { - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - if pok != 0 { - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - if gotrad != 0 { - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - } - } else { - X__shlim(tls, f, int64(0)) - } - return float64(sign) * 0.0 - } - if !(gotrad != 0) { - rp = dc - } - for dc < int64(8) { - x = x * uint32_t(16) - dc++ - } - if c|32 == 'p' { - e2 = scanexp(tls, f, pok) - if e2 == -0x7fffffffffffffff-int64(1) { - if pok != 0 { - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - } else { - X__shlim(tls, f, int64(0)) - return float64(0) - } - e2 = int64(0) - } - } else { - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - } - e2 = e2 + (int64(4)*rp - int64(32)) - - if !(x != 0) { - return float64(sign) * 0.0 - } - if e2 > int64(-emin) { - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 34 - return float64(sign) * 1.79769313486231570815e+308 * 1.79769313486231570815e+308 - } - if e2 < int64(emin-2*53) { - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 34 - return float64(sign) * 2.22507385850720138309e-308 * 2.22507385850720138309e-308 - } - - for x < 0x80000000 { - if y >= 0.5 { - x = x + (x + uint32_t(1)) - y = y + (y - float64(1)) - } else { - x = x + x - y = y + y - } - e2-- - } - - if int64(bits) > int64(32)+e2-int64(emin) { - bits = int32(int64(32) + e2 - int64(emin)) - if bits < 0 { - bits = 0 - } - } - - if bits < 53 { - bias = Xcopysignl(tls, Xscalbn(tls, float64(1), 32+53-bits-1), float64(sign)) - } - - if bits < 32 && y != 0 && !(x&uint32_t(1) != 0) { - x++ - y = float64(0) - } - - y = bias + float64(sign)*float64(x) + float64(sign)*y - y = y - bias - - if !(y != 0) { - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 34 - } - - return Xscalbnl(tls, y, int32(e2)) -} - -func X__floatscan(tls *TLS, f uintptr, prec int32, pok int32) float64 { /* floatscan.c:427:13: */ - var sign int32 = 1 - var i size_t - var bits int32 - var emin int32 - var c int32 - - switch prec { - case 0: - bits = 24 - emin = -125 - bits - break - case 1: - bits = 53 - emin = -1021 - bits - break - case 2: - bits = 53 - emin = -1021 - bits - break - default: - return float64(0) - } - - for __isspace(tls, AssignInt32(&c, func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }())) != 0 { - } - - if c == '+' || c == '-' { - sign = sign - 2*Bool32(c == '-') - c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() - } - - for i = size_t(0); i < size_t(8) && c|32 == int32(*(*uint8)(unsafe.Pointer(ts /* "infinity" */ + uintptr(i)))); i++ { - if i < size_t(7) { - c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() - } - } - if i == size_t(3) || i == size_t(8) || i > size_t(3) && pok != 0 { - if i != size_t(8) { - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - if pok != 0 { - for ; i > size_t(3); i-- { - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - } - } - } - return float64(float32(sign) * X__builtin_inff(tls)) - } - if !(i != 0) { - for i = size_t(0); i < size_t(3) && c|32 == int32(*(*uint8)(unsafe.Pointer(ts + 9 /* "nan" */ + uintptr(i)))); i++ { - if i < size_t(2) { - c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() - } - } - } - if i == size_t(3) { - if func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() != '(' { - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - return float64(X__builtin_nanf(tls, ts+13)) - } - for i = size_t(1); ; i++ { - c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() - if uint32(c-'0') < 10 || uint32(c-'A') < 26 || uint32(c-'a') < 26 || c == '_' { - continue - } - if c == ')' { - return float64(X__builtin_nanf(tls, ts+13)) - } - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - if !(pok != 0) { - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 22 - X__shlim(tls, f, int64(0)) - return float64(0) - } - for PostDecUint32(&i, 1) != 0 { - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - } - return float64(X__builtin_nanf(tls, ts+13)) - } - return float64(X__builtin_nanf(tls, ts+13)) - } - - if i != 0 { - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 22 - X__shlim(tls, f, int64(0)) - return float64(0) - } - - if c == '0' { - c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() - if c|32 == 'x' { - return hexfloat(tls, f, bits, emin, sign, pok) - } - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - c = '0' - } - - return decfloat(tls, f, c, bits, emin, sign, pok) -} - -// Lookup table for digit values. -1==255>=36 -> invalid -var table1 = [257]uint8{Uint8FromInt32(-1), - Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), - Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), - Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), - uint8(0), uint8(1), uint8(2), uint8(3), uint8(4), uint8(5), uint8(6), uint8(7), uint8(8), uint8(9), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), - Uint8FromInt32(-1), uint8(10), uint8(11), uint8(12), uint8(13), uint8(14), uint8(15), uint8(16), uint8(17), uint8(18), uint8(19), uint8(20), uint8(21), uint8(22), uint8(23), uint8(24), - uint8(25), uint8(26), uint8(27), uint8(28), uint8(29), uint8(30), uint8(31), uint8(32), uint8(33), uint8(34), uint8(35), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), - Uint8FromInt32(-1), uint8(10), uint8(11), uint8(12), uint8(13), uint8(14), uint8(15), uint8(16), uint8(17), uint8(18), uint8(19), uint8(20), uint8(21), uint8(22), uint8(23), uint8(24), - uint8(25), uint8(26), uint8(27), uint8(28), uint8(29), uint8(30), uint8(31), uint8(32), uint8(33), uint8(34), uint8(35), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), - Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), - Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), - Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), - Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), - Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), - Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), - Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), - Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), -} /* intscan.c:7:28 */ - -func X__intscan(tls *TLS, f uintptr, base uint32, pok int32, lim uint64) uint64 { /* intscan.c:26:20: */ - var val uintptr - var c int32 - var neg int32 - var x uint32 - var y uint64 - var bs int32 - val = uintptr(unsafe.Pointer(&table1)) + uintptr(1) - neg = 0 - if !(base > uint32(36) || base == uint32(1)) { - goto __1 - } - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 22 - return uint64(0) -__1: - ; -__2: - if !(__isspace(tls, AssignInt32(&c, func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }())) != 0) { - goto __3 - } - goto __2 -__3: - ; - if !(c == '+' || c == '-') { - goto __4 - } - neg = -Bool32(c == '-') - c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() -__4: - ; - if !((base == uint32(0) || base == uint32(16)) && c == '0') { - goto __5 - } - c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() - if !(c|32 == 'x') { - goto __7 - } - c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() - if !(int32(*(*uint8)(unsafe.Pointer(val + uintptr(c)))) >= 16) { - goto __9 - } - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - if !(pok != 0) { - goto __10 - } - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - goto __11 -__10: - X__shlim(tls, f, int64(0)) -__11: - ; - return uint64(0) -__9: - ; - base = uint32(16) - goto __8 -__7: - if !(base == uint32(0)) { - goto __12 - } - base = uint32(8) -__12: - ; -__8: - ; - goto __6 -__5: - if !(base == uint32(0)) { - goto __13 - } - base = uint32(10) -__13: - ; - if !(uint32(*(*uint8)(unsafe.Pointer(val + uintptr(c)))) >= base) { - goto __14 - } - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - X__shlim(tls, f, int64(0)) - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 22 - return uint64(0) -__14: - ; -__6: - ; - if !(base == uint32(10)) { - goto __15 - } - x = uint32(0) -__17: - if !(uint32(c-'0') < 10 && x <= 0xffffffff/uint32(10)-uint32(1)) { - goto __19 - } - x = x*uint32(10) + uint32(c-'0') - goto __18 -__18: - c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() - goto __17 - goto __19 -__19: - ; - y = uint64(x) -__20: - if !(uint32(c-'0') < 10 && y <= (2*uint64(0x7fffffffffffffff)+uint64(1))/uint64(10) && uint64(10)*y <= 2*uint64(0x7fffffffffffffff)+uint64(1)-uint64(c-'0')) { - goto __22 - } - y = y*uint64(10) + uint64(c-'0') - goto __21 -__21: - c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() - goto __20 - goto __22 -__22: - ; - if !(uint32(c-'0') >= 10) { - goto __23 - } - goto done -__23: - ; - goto __16 -__15: - if !!(base&(base-uint32(1)) != 0) { - goto __24 - } - bs = int32(*(*uint8)(unsafe.Pointer(ts + 14 + uintptr(uint32(0x17)*base>>5&uint32(7))))) - x = uint32(0) -__26: - if !(uint32(*(*uint8)(unsafe.Pointer(val + uintptr(c)))) < base && x <= 0xffffffff/uint32(32)) { - goto __28 - } - x = x<>bs) { - goto __31 - } - y = y<= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - if !(y >= lim) { - goto __43 - } - if !(!(lim&uint64(1) != 0) && !(neg != 0)) { - goto __44 - } - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 34 - return lim - uint64(1) - goto __45 -__44: - if !(y > lim) { - goto __46 - } - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 34 - return lim -__46: - ; -__45: - ; -__43: - ; - return y ^ uint64(neg) - uint64(neg) -} - -// The shcnt field stores the number of bytes read so far, offset by -// the value of buf-rpos at the last function call (__shlim or __shgetc), -// so that between calls the inline shcnt macro can add rpos-buf to get -// the actual count. - -func X__shlim(tls *TLS, f uintptr, lim off_t) { /* shgetc.c:8:6: */ - (*FILE)(unsafe.Pointer(f)).shlim = lim - (*FILE)(unsafe.Pointer(f)).shcnt = off_t((int32((*FILE)(unsafe.Pointer(f)).buf) - int32((*FILE)(unsafe.Pointer(f)).rpos)) / 1) - // If lim is nonzero, rend must be a valid pointer. - if lim != 0 && off_t((int32((*FILE)(unsafe.Pointer(f)).rend)-int32((*FILE)(unsafe.Pointer(f)).rpos))/1) > lim { - (*FILE)(unsafe.Pointer(f)).shend = (*FILE)(unsafe.Pointer(f)).rpos + uintptr(lim) - } else { - (*FILE)(unsafe.Pointer(f)).shend = (*FILE)(unsafe.Pointer(f)).rend - } -} - -func X__shgetc(tls *TLS, f uintptr) int32 { /* shgetc.c:19:5: */ - var c int32 - var cnt off_t = (*FILE)(unsafe.Pointer(f)).shcnt + off_t((int32((*FILE)(unsafe.Pointer(f)).rpos)-int32((*FILE)(unsafe.Pointer(f)).buf))/1) - if (*FILE)(unsafe.Pointer(f)).shlim != 0 && cnt >= (*FILE)(unsafe.Pointer(f)).shlim || AssignInt32(&c, X__uflow(tls, f)) < 0 { - (*FILE)(unsafe.Pointer(f)).shcnt = off_t((int32((*FILE)(unsafe.Pointer(f)).buf)-int32((*FILE)(unsafe.Pointer(f)).rpos))/1) + cnt - (*FILE)(unsafe.Pointer(f)).shend = (*FILE)(unsafe.Pointer(f)).rpos - (*FILE)(unsafe.Pointer(f)).shlim = int64(-1) - return -1 - } - cnt++ - if (*FILE)(unsafe.Pointer(f)).shlim != 0 && off_t((int32((*FILE)(unsafe.Pointer(f)).rend)-int32((*FILE)(unsafe.Pointer(f)).rpos))/1) > (*FILE)(unsafe.Pointer(f)).shlim-cnt { - (*FILE)(unsafe.Pointer(f)).shend = (*FILE)(unsafe.Pointer(f)).rpos + uintptr((*FILE)(unsafe.Pointer(f)).shlim-cnt) - } else { - (*FILE)(unsafe.Pointer(f)).shend = (*FILE)(unsafe.Pointer(f)).rend - } - (*FILE)(unsafe.Pointer(f)).shcnt = off_t((int32((*FILE)(unsafe.Pointer(f)).buf)-int32((*FILE)(unsafe.Pointer(f)).rpos))/1) + cnt - if (*FILE)(unsafe.Pointer(f)).rpos <= (*FILE)(unsafe.Pointer(f)).buf { - *(*uint8)(unsafe.Pointer((*FILE)(unsafe.Pointer(f)).rpos + UintptrFromInt32(-1))) = uint8(c) - } - return c -} - -type lconv = struct { - decimal_point uintptr - thousands_sep uintptr - grouping uintptr - int_curr_symbol uintptr - currency_symbol uintptr - mon_decimal_point uintptr - mon_thousands_sep uintptr - mon_grouping uintptr - positive_sign uintptr - negative_sign uintptr - int_frac_digits uint8 - frac_digits uint8 - p_cs_precedes uint8 - p_sep_by_space uint8 - n_cs_precedes uint8 - n_sep_by_space uint8 - p_sign_posn uint8 - n_sign_posn uint8 - int_p_cs_precedes uint8 - int_p_sep_by_space uint8 - int_n_cs_precedes uint8 - int_n_sep_by_space uint8 - int_p_sign_posn uint8 - int_n_sign_posn uint8 - _ [2]byte -} /* locale.h:24:1 */ - -// Support signed or unsigned plain-char - -// Implementation choices... - -// Arbitrary numbers... - -// POSIX/SUS requirements follow. These numbers come directly -// from SUS and have nothing to do with the host system. - -var posix_lconv = lconv{decimal_point: ts + 23, thousands_sep: ts + 13, grouping: ts + 13, int_curr_symbol: ts + 13, currency_symbol: ts + 13, mon_decimal_point: ts + 13, mon_thousands_sep: ts + 13, mon_grouping: ts + 13, positive_sign: ts + 13, negative_sign: ts + 13, int_frac_digits: uint8(255), frac_digits: uint8(255), p_cs_precedes: uint8(255), p_sep_by_space: uint8(255), n_cs_precedes: uint8(255), n_sep_by_space: uint8(255), p_sign_posn: uint8(255), n_sign_posn: uint8(255), int_p_cs_precedes: uint8(255), int_p_sep_by_space: uint8(255), int_n_cs_precedes: uint8(255), int_n_sep_by_space: uint8(255), int_p_sign_posn: uint8(255), int_n_sign_posn: uint8(255)} /* localeconv.c:4:27 */ - -func Xlocaleconv(tls *TLS) uintptr { /* localeconv.c:31:14: */ - return uintptr(unsafe.Pointer(&posix_lconv)) -} - -func X__fpclassify(tls *TLS, x float64) int32 { /* __fpclassify.c:4:5: */ - bp := tls.Alloc(8) - defer tls.Free(8) - - *(*struct{ f float64 })(unsafe.Pointer(bp)) = func() (r struct{ f float64 }) { - *(*float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = x - return r - }() - var e int32 = int32(*(*uint64_t)(unsafe.Pointer(bp)) >> 52 & uint64(0x7ff)) - if !(e != 0) { - if *(*uint64_t)(unsafe.Pointer(bp))<<1 != 0 { - return 3 - } - return 2 - } - if e == 0x7ff { - if *(*uint64_t)(unsafe.Pointer(bp))<<12 != 0 { - return 0 - } - return 1 - } - return 4 -} - -func X__fpclassifyf(tls *TLS, x float32) int32 { /* __fpclassifyf.c:4:5: */ - bp := tls.Alloc(4) - defer tls.Free(4) - - *(*struct{ f float32 })(unsafe.Pointer(bp)) = func() (r struct{ f float32 }) { - *(*float32)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = x - return r - }() - var e int32 = int32(*(*uint32_t)(unsafe.Pointer(bp)) >> 23 & uint32_t(0xff)) - if !(e != 0) { - if *(*uint32_t)(unsafe.Pointer(bp))<<1 != 0 { - return 3 - } - return 2 - } - if e == 0xff { - if *(*uint32_t)(unsafe.Pointer(bp))<<9 != 0 { - return 0 - } - return 1 - } - return 4 -} - -func X__fpclassifyl(tls *TLS, x float64) int32 { /* __fpclassifyl.c:4:5: */ - return X__fpclassify(tls, x) -} - -func Xcopysignl(tls *TLS, x float64, y float64) float64 { /* copysignl.c:4:13: */ - return Xcopysign(tls, x, y) -} - -func Xfabsl(tls *TLS, x float64) float64 { /* fabsl.c:3:13: */ - return Xfabs(tls, x) -} - -func Xfmodl(tls *TLS, x float64, y float64) float64 { /* fmodl.c:4:13: */ - return Xfmod(tls, x, y) -} - -func Xnanf(tls *TLS, s uintptr) float32 { /* nanf.c:3:7: */ - return X__builtin_nanf(tls, ts+13) -} - -var toint double_t = float64(float64(1)) / 2.22044604925031308085e-16 /* rint.c:10:23 */ - -func Xrint(tls *TLS, x float64) float64 { /* rint.c:12:8: */ - bp := tls.Alloc(8) - defer tls.Free(8) - - *(*struct{ f float64 })(unsafe.Pointer(bp)) = func() (r struct{ f float64 }) { - *(*float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = x - return r - }() - var e int32 = int32(*(*uint64_t)(unsafe.Pointer(bp)) >> 52 & uint64(0x7ff)) - var s int32 = int32(*(*uint64_t)(unsafe.Pointer(bp)) >> 63) - var y double_t - - if e >= 0x3ff+52 { - return x - } - if s != 0 { - y = x - toint + toint - } else { - y = x + toint - toint - } - if y == float64(0) { - if s != 0 { - return -Float64FromFloat64(0.0) - } - return float64(0) - } - return y -} - -func Xscalbn(tls *TLS, x float64, n int32) float64 { /* scalbn.c:4:8: */ - bp := tls.Alloc(8) - defer tls.Free(8) - - // var u struct {f float64;} at bp, 8 - - var y double_t = x - - if n > 1023 { - y = y * 0x1p1023 - n = n - 1023 - if n > 1023 { - y = y * 0x1p1023 - n = n - 1023 - if n > 1023 { - n = 1023 - } - } - } else if n < -1022 { - // make sure final n < -53 to avoid double - // rounding in the subnormal range - y = y * (float64(0x1p-1022) * 0x1p53) - n = n + (1022 - 53) - if n < -1022 { - y = y * (float64(0x1p-1022) * 0x1p53) - n = n + (1022 - 53) - if n < -1022 { - n = -1022 - } - } - } - *(*uint64_t)(unsafe.Pointer(bp)) = uint64_t(0x3ff+n) << 52 - x = y * *(*float64)(unsafe.Pointer(bp)) - return x -} - -func Xscalbnl(tls *TLS, x float64, n int32) float64 { /* scalbnl.c:4:13: */ - return Xscalbn(tls, x, n) -} - -// Support signed or unsigned plain-char - -// Implementation choices... - -// Arbitrary numbers... - -// POSIX/SUS requirements follow. These numbers come directly -// from SUS and have nothing to do with the host system. - -type __locale_map = struct { - __map uintptr - map_size size_t - name [24]uint8 - next uintptr -} /* alltypes.h:336:9 */ - -type tls_module = struct { - next uintptr - image uintptr - len size_t - size size_t - align size_t - offset size_t -} /* libc.h:14:1 */ - -type __libc = struct { - can_do_threads uint8 - threaded uint8 - secure uint8 - need_locks int8 - threads_minus_1 int32 - auxv uintptr - tls_head uintptr - tls_size size_t - tls_align size_t - tls_cnt size_t - page_size size_t - global_locale struct{ cat [6]uintptr } -} /* libc.h:20:1 */ - -type time_t = int64 /* alltypes.h:78:16 */ - -type clockid_t = int32 /* alltypes.h:207:13 */ - -type timespec = struct { - tv_sec time_t - tv_nsec int32 - __12 uint32 /* int : 32 */ -} /* alltypes.h:222:1 */ - -type pthread_t = uintptr /* alltypes.h:266:26 */ - -type pthread_once_t = int32 /* alltypes.h:272:13 */ - -type pthread_key_t = uint32 /* alltypes.h:277:18 */ - -type pthread_spinlock_t = int32 /* alltypes.h:282:13 */ - -type pthread_mutexattr_t = struct{ __attr uint32 } /* alltypes.h:287:37 */ - -type pthread_condattr_t = struct{ __attr uint32 } /* alltypes.h:292:37 */ - -type pthread_barrierattr_t = struct{ __attr uint32 } /* alltypes.h:297:37 */ - -type pthread_rwlockattr_t = struct{ __attr [2]uint32 } /* alltypes.h:302:40 */ - -type __sigset_t = struct{ __bits [32]uint32 } /* alltypes.h:342:9 */ - -type sigset_t = __sigset_t /* alltypes.h:342:71 */ - -type pthread_attr_t = struct{ __u struct{ __i [9]int32 } } /* alltypes.h:365:147 */ - -type pthread_mutex_t = struct{ __u struct{ __i [6]int32 } } /* alltypes.h:370:157 */ - -type pthread_cond_t = struct{ __u struct{ __i [12]int32 } } /* alltypes.h:380:112 */ - -type pthread_rwlock_t = struct{ __u struct{ __i [8]int32 } } /* alltypes.h:390:139 */ - -type pthread_barrier_t = struct{ __u struct{ __i [5]int32 } } /* alltypes.h:395:137 */ - -type sched_param = struct { - sched_priority int32 - __reserved1 int32 - __reserved2 [4]int32 - __reserved3 int32 -} /* sched.h:19:1 */ - -type timer_t = uintptr /* alltypes.h:202:14 */ - -type clock_t = int32 /* alltypes.h:212:14 */ - -type tm = struct { - tm_sec int32 - tm_min int32 - tm_hour int32 - tm_mday int32 - tm_mon int32 - tm_year int32 - tm_wday int32 - tm_yday int32 - tm_isdst int32 - tm_gmtoff int32 - tm_zone uintptr -} /* time.h:38:1 */ - -type itimerspec = struct { - it_interval struct { - tv_sec time_t - tv_nsec int32 - __12 uint32 /* int : 32 */ - } - it_value struct { - tv_sec time_t - tv_nsec int32 - __12 uint32 /* int : 32 */ - } -} /* time.h:80:1 */ - -type sigevent = struct { - sigev_value struct{ sival_int int32 } - sigev_signo int32 - sigev_notify int32 - sigev_notify_function uintptr - sigev_notify_attributes uintptr - __pad [44]uint8 -} /* time.h:107:1 */ - -type __ptcb = struct { - __f uintptr - __x uintptr - __next uintptr -} /* alltypes.h:266:9 */ - -type sigaltstack = struct { - ss_sp uintptr - ss_flags int32 - ss_size size_t -} /* signal.h:44:9 */ - -type stack_t = sigaltstack /* signal.h:44:28 */ - -type greg_t = int32 /* signal.h:10:13 */ -type gregset_t = [18]int32 /* signal.h:10:21 */ -type sigcontext = struct { - trap_no uint32 - error_code uint32 - oldmask uint32 - arm_r0 uint32 - arm_r1 uint32 - arm_r2 uint32 - arm_r3 uint32 - arm_r4 uint32 - arm_r5 uint32 - arm_r6 uint32 - arm_r7 uint32 - arm_r8 uint32 - arm_r9 uint32 - arm_r10 uint32 - arm_fp uint32 - arm_ip uint32 - arm_sp uint32 - arm_lr uint32 - arm_pc uint32 - arm_cpsr uint32 - fault_address uint32 -} /* signal.h:11:9 */ - -type mcontext_t = sigcontext /* signal.h:18:3 */ - -type __ucontext = struct { - uc_flags uint32 - uc_link uintptr - uc_stack stack_t - uc_mcontext mcontext_t - uc_sigmask sigset_t - uc_regspace [64]uint64 -} /* signal.h:31:9 */ - -type ucontext_t = __ucontext /* signal.h:38:3 */ - -type sigval = struct{ sival_int int32 } /* time.h:107:1 */ - -type siginfo_t = struct { - si_signo int32 - si_errno int32 - si_code int32 - __si_fields struct { - _ [0]uint32 - __pad [116]uint8 - } -} /* signal.h:145:3 */ - -type sigaction = struct { - __sa_handler struct{ sa_handler uintptr } - sa_mask sigset_t - sa_flags int32 - sa_restorer uintptr -} /* signal.h:167:1 */ - -type sig_t = uintptr /* signal.h:251:14 */ - -type sig_atomic_t = int32 /* signal.h:269:13 */ - -func a_cas(tls *TLS, p uintptr, t int32, s int32) int32 { /* atomic_arch.h:46:19: */ - panic(`arch/arm/atomic_arch.h:48:2: assembler statements not supported`) - return int32(0) - //TODO for (;;) { - //TODO register int r0 __asm__("r0") = t; - //TODO register int r1 __asm__("r1") = s; - //TODO register volatile int *r2 __asm__("r2") = p; - //TODO register uintptr_t r3 __asm__("r3") = __a_cas_ptr; - //TODO int old; - //TODO __asm__ __volatile__ ( - //TODO BLX " r3" - //TODO : "+r"(r0), "+r"(r3) : "r"(r1), "r"(r2) - //TODO : "memory", "lr", "ip", "cc" ); - //TODO if (!r0) return t; - //TODO if ((old=*p)!=t) return old; - //TODO } -} - -func a_barrier(tls *TLS) { /* atomic_arch.h:68:20: */ - panic(`arch/arm/atomic_arch.h:70:2: assembler statements not supported`) - //TODO register uintptr_t ip __asm__("ip") = __a_barrier_ptr; - //TODO __asm__ __volatile__( BLX " ip" : "+r"(ip) : : "memory", "cc", "lr" ); -} - -func a_clz_32(tls *TLS, x uint32_t) int32 { /* atomic_arch.h:91:19: */ - panic(`arch/arm/atomic_arch.h:93:2: assembler statements not supported`) - return int32(x) -} - -func a_swap(tls *TLS, p uintptr, v int32) int32 { /* atomic.h:108:19: */ - var old int32 - for ok := true; ok; ok = a_cas(tls, p, old, v) != old { - old = *(*int32)(unsafe.Pointer(p)) - } - return old -} - -func a_fetch_add(tls *TLS, p uintptr, v int32) int32 { /* atomic.h:119:19: */ - var old int32 - for ok := true; ok; ok = a_cas(tls, p, old, int32(uint32(old)+uint32(v))) != old { - old = *(*int32)(unsafe.Pointer(p)) - } - return old -} - -func a_fetch_and(tls *TLS, p uintptr, v int32) int32 { /* atomic.h:130:19: */ - var old int32 - for ok := true; ok; ok = a_cas(tls, p, old, old&v) != old { - old = *(*int32)(unsafe.Pointer(p)) - } - return old -} - -func a_fetch_or(tls *TLS, p uintptr, v int32) int32 { /* atomic.h:140:19: */ - var old int32 - for ok := true; ok; ok = a_cas(tls, p, old, old|v) != old { - old = *(*int32)(unsafe.Pointer(p)) - } - return old -} - -func a_and(tls *TLS, p uintptr, v int32) { /* atomic.h:151:20: */ - a_fetch_and(tls, p, v) -} - -func a_or(tls *TLS, p uintptr, v int32) { /* atomic.h:159:20: */ - a_fetch_or(tls, p, v) -} - -func a_or_64(tls *TLS, p uintptr, v uint64_t) { /* atomic.h:220:20: */ - bp := tls.Alloc(8) - defer tls.Free(8) - - *(*struct{ v uint64_t })(unsafe.Pointer(bp)) = func() (r struct{ v uint64_t }) { - *(*uint64_t)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = v - return r - }() - if *(*uint32_t)(unsafe.Pointer(bp)) != 0 { - a_or(tls, p, int32(*(*uint32_t)(unsafe.Pointer(bp)))) - } - if *(*uint32_t)(unsafe.Pointer(bp + 1*4)) != 0 { - a_or(tls, p+uintptr(1)*4, int32(*(*uint32_t)(unsafe.Pointer(bp + 1*4)))) - } -} - -type a_cas_p_undefined_but_pointer_not_32bit = [1]uint8 /* atomic.h:229:14 */ - -func a_ctz_32(tls *TLS, x uint32_t) int32 { /* atomic.h:256:19: */ - return 31 - a_clz_32(tls, x&-x) -} - -func a_ctz_64(tls *TLS, x uint64_t) int32 { /* atomic.h:272:19: */ - if uint32(unsafe.Sizeof(int32(0))) < uint32(8) { - var y uint32_t = uint32_t(x) - if !(y != 0) { - y = uint32_t(x >> 32) - return 32 + a_ctz_32(tls, y) - } - return a_ctz_32(tls, y) - } - return int32(_sdebruijn648[x&-x*0x022fdd63cc95386d>>58]) -} - -var _sdebruijn648 = [64]uint8{ - uint8(0), uint8(1), uint8(2), uint8(53), uint8(3), uint8(7), uint8(54), uint8(27), uint8(4), uint8(38), uint8(41), uint8(8), uint8(34), uint8(55), uint8(48), uint8(28), - uint8(62), uint8(5), uint8(39), uint8(46), uint8(44), uint8(42), uint8(22), uint8(9), uint8(24), uint8(35), uint8(59), uint8(56), uint8(49), uint8(18), uint8(29), uint8(11), - uint8(63), uint8(52), uint8(6), uint8(26), uint8(37), uint8(40), uint8(33), uint8(47), uint8(61), uint8(45), uint8(43), uint8(21), uint8(23), uint8(58), uint8(17), uint8(10), - uint8(51), uint8(25), uint8(36), uint8(32), uint8(60), uint8(20), uint8(57), uint8(16), uint8(50), uint8(31), uint8(19), uint8(15), uint8(30), uint8(14), uint8(13), uint8(12), -} /* atomic.h:274:20 */ - -type __timer = struct { - timerid int32 - thread pthread_t -} /* pthread_impl.h:64:1 */ - -func __pthread_self(tls *TLS) pthread_t { /* pthread_arch.h:19:25: */ - var p uintptr_t - panic(`arch/arm/pthread_arch.h:23:2: assembler statements not supported`) - return uintptr(p - uintptr_t(unsafe.Sizeof(__pthread{}))) -} - -func __wake(tls *TLS, addr uintptr, cnt int32, priv int32) { /* pthread_impl.h:155:20: */ - if priv != 0 { - priv = 128 - } - if cnt < 0 { - cnt = 0x7fffffff - } - _ = Bool32(X__syscall3(tls, 240, int32(addr), int32(1|priv), int32(cnt)) != -38 || X__syscall3(tls, 240, int32(addr), 1, int32(cnt)) != 0) -} - -func __futexwait(tls *TLS, addr uintptr, val int32, priv int32) { /* pthread_impl.h:162:20: */ - if priv != 0 { - priv = 128 - } - _ = Bool32(X__syscall4(tls, 240, int32(addr), int32(0|priv), int32(val), 0) != -38 || X__syscall4(tls, 240, int32(addr), 0, int32(val), 0) != 0) -} - -var X__fsmu8 = [51]uint32_t{ - func() uint32 { - if 0x2 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x2) - }(), func() uint32 { - if 0x3 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x3) - }(), func() uint32 { - if 0x4 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x4) - }(), func() uint32 { - if 0x5 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x5) - }(), func() uint32 { - if 0x6 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x6) - }(), func() uint32 { - if 0x7 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x7) - }(), - func() uint32 { - if 0x8 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x8) - }(), func() uint32 { - if 0x9 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x9) - }(), func() uint32 { - if 0xa < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0xa) - }(), func() uint32 { - if 0xb < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0xb) - }(), func() uint32 { - if 0xc < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0xc) - }(), func() uint32 { - if 0xd < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0xd) - }(), func() uint32 { - if 0xe < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0xe) - }(), func() uint32 { - if 0xf < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0xf) - }(), - func() uint32 { - if 0x0+16 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x0+16) - }(), func() uint32 { - if 0x1+16 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x1+16) - }(), func() uint32 { - if 0x2+16 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x2+16) - }(), func() uint32 { - if 0x3+16 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x3+16) - }(), func() uint32 { - if 0x4+16 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x4+16) - }(), func() uint32 { - if 0x5+16 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x5+16) - }(), func() uint32 { - if 0x6+16 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x6+16) - }(), func() uint32 { - if 0x7+16 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x7+16) - }(), - func() uint32 { - if 0x8+16 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x8+16) - }(), func() uint32 { - if 0x9+16 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x9+16) - }(), func() uint32 { - if 0xa+16 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0xa+16) - }(), func() uint32 { - if 0xb+16 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0xb+16) - }(), func() uint32 { - if 0xc+16 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0xc+16) - }(), func() uint32 { - if 0xd+16 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0xd+16) - }(), func() uint32 { - if 0xe+16 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0xe+16) - }(), func() uint32 { - if 0xf+16 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0xf+16) - }(), - func() uint32 { - if 0x0 == 0 { - return func() uint32 { - if Int32(0xa0) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0xa0)) - }() << 23 - } - return func() uint32 { - if 0x0 == 0xd { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xa0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(0x0), func() uint32 { - if 0x1 == 0 { - return func() uint32 { - if Int32(0xa0) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0xa0)) - }() << 23 - } - return func() uint32 { - if 0x1 == 0xd { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xa0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(0x1), func() uint32 { - if 0x2 == 0 { - return func() uint32 { - if Int32(0xa0) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0xa0)) - }() << 23 - } - return func() uint32 { - if 0x2 == 0xd { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xa0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(0x2), func() uint32 { - if 0x3 == 0 { - return func() uint32 { - if Int32(0xa0) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0xa0)) - }() << 23 - } - return func() uint32 { - if 0x3 == 0xd { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xa0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(0x3), func() uint32 { - if 0x4 == 0 { - return func() uint32 { - if Int32(0xa0) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0xa0)) - }() << 23 - } - return func() uint32 { - if 0x4 == 0xd { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xa0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(0x4), func() uint32 { - if 0x5 == 0 { - return func() uint32 { - if Int32(0xa0) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0xa0)) - }() << 23 - } - return func() uint32 { - if 0x5 == 0xd { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xa0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(0x5), func() uint32 { - if 0x6 == 0 { - return func() uint32 { - if Int32(0xa0) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0xa0)) - }() << 23 - } - return func() uint32 { - if 0x6 == 0xd { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xa0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(0x6), func() uint32 { - if 0x7 == 0 { - return func() uint32 { - if Int32(0xa0) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0xa0)) - }() << 23 - } - return func() uint32 { - if 0x7 == 0xd { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xa0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(0x7), - func() uint32 { - if 0x8 == 0 { - return func() uint32 { - if Int32(0xa0) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0xa0)) - }() << 23 - } - return func() uint32 { - if 0x8 == 0xd { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xa0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(0x8), func() uint32 { - if 0x9 == 0 { - return func() uint32 { - if Int32(0xa0) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0xa0)) - }() << 23 - } - return func() uint32 { - if 0x9 == 0xd { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xa0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(0x9), func() uint32 { - if 0xa == 0 { - return func() uint32 { - if Int32(0xa0) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0xa0)) - }() << 23 - } - return func() uint32 { - if 0xa == 0xd { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xa0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(0xa), func() uint32 { - if 0xb == 0 { - return func() uint32 { - if Int32(0xa0) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0xa0)) - }() << 23 - } - return func() uint32 { - if 0xb == 0xd { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xa0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(0xb), func() uint32 { - if 0xc == 0 { - return func() uint32 { - if Int32(0xa0) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0xa0)) - }() << 23 - } - return func() uint32 { - if 0xc == 0xd { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xa0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(0xc), func() uint32 { - if 0xd == 0 { - return func() uint32 { - if Int32(0xa0) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0xa0)) - }() << 23 - } - return func() uint32 { - if 0xd == 0xd { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xa0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(0xd), func() uint32 { - if 0xe == 0 { - return func() uint32 { - if Int32(0xa0) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0xa0)) - }() << 23 - } - return func() uint32 { - if 0xe == 0xd { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xa0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(0xe), func() uint32 { - if 0xf == 0 { - return func() uint32 { - if Int32(0xa0) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0xa0)) - }() << 23 - } - return func() uint32 { - if 0xf == 0xd { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xa0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(0xf), - func() uint32 { - if 0x0 >= 5 { - return uint32(0) - } - return func() uint32 { - if 0x0 == 0 { - return func() uint32 { - if Int32(0x90) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x90)) - }() << 23 - } - return func() uint32 { - if 0x0 == 4 { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0x90)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>12 | uint32_t(0x0), func() uint32 { - if 0x1 >= 5 { - return uint32(0) - } - return func() uint32 { - if 0x1 == 0 { - return func() uint32 { - if Int32(0x90) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x90)) - }() << 23 - } - return func() uint32 { - if 0x1 == 4 { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0x90)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>12 | uint32_t(0x1), func() uint32 { - if 0x2 >= 5 { - return uint32(0) - } - return func() uint32 { - if 0x2 == 0 { - return func() uint32 { - if Int32(0x90) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x90)) - }() << 23 - } - return func() uint32 { - if 0x2 == 4 { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0x90)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>12 | uint32_t(0x2), func() uint32 { - if 0x3 >= 5 { - return uint32(0) - } - return func() uint32 { - if 0x3 == 0 { - return func() uint32 { - if Int32(0x90) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x90)) - }() << 23 - } - return func() uint32 { - if 0x3 == 4 { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0x90)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>12 | uint32_t(0x3), func() uint32 { - if 0x4 >= 5 { - return uint32(0) - } - return func() uint32 { - if 0x4 == 0 { - return func() uint32 { - if Int32(0x90) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x90)) - }() << 23 - } - return func() uint32 { - if 0x4 == 4 { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0x90)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>12 | uint32_t(0x4), -} /* internal.c:18:16 */ - -type wint_t = uint32 /* alltypes.h:191:18 */ - -type wctype_t = uint32 /* alltypes.h:196:23 */ - -type __mbstate_t = struct { - __opaque1 uint32 - __opaque2 uint32 -} /* alltypes.h:330:9 */ - -type mbstate_t = __mbstate_t /* alltypes.h:330:63 */ - -func Xmbrtowc(tls *TLS, wc uintptr, src uintptr, n size_t, st uintptr) size_t { /* mbrtowc.c:6:8: */ - bp := tls.Alloc(4) - defer tls.Free(4) - - var c uint32 - var s uintptr - var N uint32 - // var dummy wchar_t at bp, 4 - s = src - N = n - - if !!(st != 0) { - goto __1 - } - st = uintptr(unsafe.Pointer(&_sinternal_state)) -__1: - ; - c = *(*uint32)(unsafe.Pointer(st)) - - if !!(s != 0) { - goto __2 - } - if !(c != 0) { - goto __4 - } - goto ilseq -__4: - ; - return size_t(0) - goto __3 -__2: - if !!(wc != 0) { - goto __5 - } - wc = bp /* &dummy */ -__5: - ; -__3: - ; - - if !!(n != 0) { - goto __6 - } - return Uint32FromInt32(-2) -__6: - ; - if !!(c != 0) { - goto __7 - } - if !(int32(*(*uint8)(unsafe.Pointer(s))) < 0x80) { - goto __8 - } - return BoolUint32(!!(int32(AssignPtrUint32(wc, wchar_t(*(*uint8)(unsafe.Pointer(s))))) != 0)) -__8: - ; - if !(func() int32 { - if !!(int32(*(*uintptr)(unsafe.Pointer((*__pthread)(unsafe.Pointer(__pthread_self(tls))).locale))) != 0) { - return 4 - } - return 1 - }() == 1) { - goto __9 - } - *(*wchar_t)(unsafe.Pointer(wc)) = wchar_t(0xdfff & int32(int8(*(*uint8)(unsafe.Pointer(s))))) - return 1 -__9: - ; - if !(uint32(*(*uint8)(unsafe.Pointer(s)))-0xc2 > 0xf4-0xc2) { - goto __10 - } - goto ilseq -__10: - ; - c = X__fsmu8[uint32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&s, 1))))-0xc2] - n-- -__7: - ; - - if !(n != 0) { - goto __11 - } - if !((int32(*(*uint8)(unsafe.Pointer(s)))>>3-0x10|(int32(*(*uint8)(unsafe.Pointer(s)))>>3+int32_t(c)>>26))&CplInt32(7) != 0) { - goto __12 - } - goto ilseq -__12: - ; -loop: - c = c<<6 | uint32(int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&s, 1))))-0x80) - n-- - if !!(c&(uint32(1)<<31) != 0) { - goto __13 - } - *(*uint32)(unsafe.Pointer(st)) = uint32(0) - *(*wchar_t)(unsafe.Pointer(wc)) = c - return N - n -__13: - ; - if !(n != 0) { - goto __14 - } - if !(uint32(*(*uint8)(unsafe.Pointer(s)))-0x80 >= uint32(0x40)) { - goto __15 - } - goto ilseq -__15: - ; - goto loop -__14: - ; -__11: - ; - - *(*uint32)(unsafe.Pointer(st)) = c - return Uint32FromInt32(-2) -ilseq: - *(*uint32)(unsafe.Pointer(st)) = uint32(0) - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 84 - return Uint32FromInt32(-1) -} - -var _sinternal_state uint32 /* mbrtowc.c:8:18: */ - -func Xmbsinit(tls *TLS, st uintptr) int32 { /* mbsinit.c:3:5: */ - return Bool32(!(st != 0) || !(int32(*(*uint32)(unsafe.Pointer(st))) != 0)) -} - -type imaxdiv_t = struct { - quot intmax_t - rem intmax_t -} /* inttypes.h:14:40 */ - -type socklen_t = uint32 /* alltypes.h:354:18 */ - -type sa_family_t = uint16 /* alltypes.h:359:24 */ - -type msghdr = struct { - msg_name uintptr - msg_namelen socklen_t - msg_iov uintptr - msg_iovlen int32 - msg_control uintptr - msg_controllen socklen_t - msg_flags int32 -} /* socket.h:22:1 */ - -type cmsghdr = struct { - cmsg_len socklen_t - cmsg_level int32 - cmsg_type int32 -} /* socket.h:44:1 */ - -type linger = struct { - l_onoff int32 - l_linger int32 -} /* socket.h:74:1 */ - -type sockaddr = struct { - sa_family sa_family_t - sa_data [14]uint8 -} /* socket.h:367:1 */ - -type sockaddr_storage = struct { - ss_family sa_family_t - __ss_padding [122]uint8 - __ss_align uint32 -} /* socket.h:372:1 */ - -type in_port_t = uint16_t /* in.h:12:18 */ -type in_addr_t = uint32_t /* in.h:13:18 */ -type in_addr = struct{ s_addr in_addr_t } /* in.h:14:1 */ - -type sockaddr_in = struct { - sin_family sa_family_t - sin_port in_port_t - sin_addr struct{ s_addr in_addr_t } - sin_zero [8]uint8_t -} /* in.h:16:1 */ - -type in6_addr = struct { - __in6_union struct { - _ [0]uint32 - __s6_addr [16]uint8_t - } -} /* in.h:23:1 */ - -type sockaddr_in6 = struct { - sin6_family sa_family_t - sin6_port in_port_t - sin6_flowinfo uint32_t - sin6_addr struct { - __in6_union struct { - _ [0]uint32 - __s6_addr [16]uint8_t - } - } - sin6_scope_id uint32_t -} /* in.h:34:1 */ - -type ipv6_mreq = struct { - ipv6mr_multiaddr struct { - __in6_union struct { - _ [0]uint32 - __s6_addr [16]uint8_t - } - } - ipv6mr_interface uint32 -} /* in.h:42:1 */ - -type ip_opts = struct { - ip_dst struct{ s_addr in_addr_t } - ip_opts [40]uint8 -} /* in.h:229:1 */ - -type ip_mreq = struct { - imr_multiaddr struct{ s_addr in_addr_t } - imr_interface struct{ s_addr in_addr_t } -} /* in.h:247:1 */ - -type ip_mreqn = struct { - imr_multiaddr struct{ s_addr in_addr_t } - imr_address struct{ s_addr in_addr_t } - imr_ifindex int32 -} /* in.h:252:1 */ - -type ip_mreq_source = struct { - imr_multiaddr struct{ s_addr in_addr_t } - imr_interface struct{ s_addr in_addr_t } - imr_sourceaddr struct{ s_addr in_addr_t } -} /* in.h:258:1 */ - -type ip_msfilter = struct { - imsf_multiaddr struct{ s_addr in_addr_t } - imsf_interface struct{ s_addr in_addr_t } - imsf_fmode uint32_t - imsf_numsrc uint32_t - imsf_slist [1]struct{ s_addr in_addr_t } -} /* in.h:264:1 */ - -type group_req = struct { - gr_interface uint32_t - gr_group struct { - ss_family sa_family_t - __ss_padding [122]uint8 - __ss_align uint32 - } -} /* in.h:275:1 */ - -type group_source_req = struct { - gsr_interface uint32_t - gsr_group struct { - ss_family sa_family_t - __ss_padding [122]uint8 - __ss_align uint32 - } - gsr_source struct { - ss_family sa_family_t - __ss_padding [122]uint8 - __ss_align uint32 - } -} /* in.h:280:1 */ - -type group_filter = struct { - gf_interface uint32_t - gf_group struct { - ss_family sa_family_t - __ss_padding [122]uint8 - __ss_align uint32 - } - gf_fmode uint32_t - gf_numsrc uint32_t - gf_slist [1]struct { - ss_family sa_family_t - __ss_padding [122]uint8 - __ss_align uint32 - } -} /* in.h:286:1 */ - -type in_pktinfo = struct { - ipi_ifindex int32 - ipi_spec_dst struct{ s_addr in_addr_t } - ipi_addr struct{ s_addr in_addr_t } -} /* in.h:297:1 */ - -type in6_pktinfo = struct { - ipi6_addr struct { - __in6_union struct { - _ [0]uint32 - __s6_addr [16]uint8_t - } - } - ipi6_ifindex uint32 -} /* in.h:303:1 */ - -type ip6_mtuinfo = struct { - ip6m_addr struct { - sin6_family sa_family_t - sin6_port in_port_t - sin6_flowinfo uint32_t - sin6_addr struct { - __in6_union struct { - _ [0]uint32 - __s6_addr [16]uint8_t - } - } - sin6_scope_id uint32_t - } - ip6m_mtu uint32_t -} /* in.h:308:1 */ - -type addrinfo = struct { - ai_flags int32 - ai_family int32 - ai_socktype int32 - ai_protocol int32 - ai_addrlen socklen_t - ai_addr uintptr - ai_canonname uintptr - ai_next uintptr -} /* netdb.h:16:1 */ - -// Legacy functions follow (marked OBsolete in SUS) - -type netent = struct { - n_name uintptr - n_aliases uintptr - n_addrtype int32 - n_net uint32_t -} /* netdb.h:62:1 */ - -type hostent = struct { - h_name uintptr - h_aliases uintptr - h_addrtype int32 - h_length int32 - h_addr_list uintptr -} /* netdb.h:69:1 */ - -type servent = struct { - s_name uintptr - s_aliases uintptr - s_port int32 - s_proto uintptr -} /* netdb.h:78:1 */ - -type protoent = struct { - p_name uintptr - p_aliases uintptr - p_proto int32 -} /* netdb.h:85:1 */ - -type aibuf = struct { - ai struct { - ai_flags int32 - ai_family int32 - ai_socktype int32 - ai_protocol int32 - ai_addrlen socklen_t - ai_addr uintptr - ai_canonname uintptr - ai_next uintptr - } - sa struct { - sin struct { - sin_family sa_family_t - sin_port in_port_t - sin_addr struct{ s_addr in_addr_t } - sin_zero [8]uint8_t - } - _ [12]byte - } - lock [1]int32 - slot int16 - ref int16 -} /* lookup.h:10:1 */ - -type sa = struct { - sin struct { - sin_family sa_family_t - sin_port in_port_t - sin_addr struct{ s_addr in_addr_t } - sin_zero [8]uint8_t - } - _ [12]byte -} /* lookup.h:10:1 */ - -type address = struct { - family int32 - scopeid uint32 - addr [16]uint8_t - sortkey int32 -} /* lookup.h:20:1 */ - -type service = struct { - port uint16_t - proto uint8 - socktype uint8 -} /* lookup.h:27:1 */ - -type resolvconf = struct { - ns [3]struct { - family int32 - scopeid uint32 - addr [16]uint8_t - sortkey int32 - } - nns uint32 - attempts uint32 - ndots uint32 - timeout uint32 -} /* lookup.h:34:1 */ - -func Xfreeaddrinfo(tls *TLS, p uintptr) { /* freeaddrinfo.c:7:6: */ - var cnt size_t - cnt = size_t(1) -__1: - if !((*addrinfo)(unsafe.Pointer(p)).ai_next != 0) { - goto __3 - } - goto __2 -__2: - cnt++ - p = (*addrinfo)(unsafe.Pointer(p)).ai_next - goto __1 - goto __3 -__3: - ; - var b uintptr = p - uintptr(uint32(uintptr(0))) - b -= 68 * uintptr((*aibuf)(unsafe.Pointer(b)).slot) - //TODO LOCK(b->lock); - if !(int32(AssignSubPtrInt16(b+66, int16(cnt))) != 0) { - Xfree(tls, b) - } - //TODO else UNLOCK(b->lock); -} - -func Xgetaddrinfo(tls *TLS, host uintptr, serv uintptr, hint uintptr, res uintptr) int32 { /* getaddrinfo.c:12:5: */ - bp := tls.Alloc(1608) - defer tls.Free(1608) - - // var ports [2]service at bp, 8 - - // var addrs [48]address at bp+8, 1344 - - // var canon [256]uint8 at bp+1352, 256 - - var outcanon uintptr - var nservs int32 - var naddrs int32 - var nais int32 - var canon_len int32 - var i int32 - var j int32 - var k int32 - var family int32 = 0 - var flags int32 = 0 - var proto int32 = 0 - var socktype int32 = 0 - var out uintptr - - if !(host != 0) && !(serv != 0) { - return -2 - } - - if hint != 0 { - family = (*addrinfo)(unsafe.Pointer(hint)).ai_family - flags = (*addrinfo)(unsafe.Pointer(hint)).ai_flags - proto = (*addrinfo)(unsafe.Pointer(hint)).ai_protocol - socktype = (*addrinfo)(unsafe.Pointer(hint)).ai_socktype - - var mask int32 = 0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x400 - if flags&mask != flags { - return -1 - } - - switch family { - case 2: - fallthrough - case 10: - fallthrough - case 0: - break - fallthrough - default: - return -6 - } - } - - if flags&0x20 != 0 { - Xabort(tls) //TODO- - // /* Define the "an address is configured" condition for address - // * families via ability to create a socket for the family plus - // * routability of the loopback address for the family. */ - // static const struct sockaddr_in lo4 = { - // .sin_family = AF_INET, .sin_port = 65535, - // .sin_addr.s_addr = __BYTE_ORDER == __BIG_ENDIAN - // ? 0x7f000001 : 0x0100007f - // }; - // static const struct sockaddr_in6 lo6 = { - // .sin6_family = AF_INET6, .sin6_port = 65535, - // .sin6_addr = IN6ADDR_LOOPBACK_INIT - // }; - // int tf[2] = { AF_INET, AF_INET6 }; - // const void *ta[2] = { &lo4, &lo6 }; - // socklen_t tl[2] = { sizeof lo4, sizeof lo6 }; - // for (i=0; i<2; i++) { - // if (family==tf[1-i]) continue; - // int s = socket(tf[i], SOCK_CLOEXEC|SOCK_DGRAM, - // IPPROTO_UDP); - // if (s>=0) { - // int cs; - // pthread_setcancelstate( - // PTHREAD_CANCEL_DISABLE, &cs); - // int r = connect(s, ta[i], tl[i]); - // pthread_setcancelstate(cs, 0); - // close(s); - // if (!r) continue; - // } - // switch (errno) { - // case EADDRNOTAVAIL: - // case EAFNOSUPPORT: - // case EHOSTUNREACH: - // case ENETDOWN: - // case ENETUNREACH: - // break; - // default: - // return EAI_SYSTEM; - // } - // if (family == tf[i]) return EAI_NONAME; - // family = tf[1-i]; - // } - } - - nservs = X__lookup_serv(tls, bp, serv, proto, socktype, flags) - if nservs < 0 { - return nservs - } - - naddrs = X__lookup_name(tls, bp+8, bp+1352, host, family, flags) - if naddrs < 0 { - return naddrs - } - - nais = nservs * naddrs - canon_len = int32(Xstrlen(tls, bp+1352)) - out = Xcalloc(tls, uint32(1), uint32(nais)*uint32(unsafe.Sizeof(aibuf{}))+uint32(canon_len)+uint32(1)) - if !(out != 0) { - return -10 - } - - if canon_len != 0 { - outcanon = out + uintptr(nais)*68 - Xmemcpy(tls, outcanon, bp+1352, uint32(canon_len+1)) - } else { - outcanon = uintptr(0) - } - - for k = AssignInt32(&i, 0); i < naddrs; i++ { - j = 0 - __1: - if !(j < nservs) { - goto __3 - } - { - (*aibuf)(unsafe.Pointer(out + uintptr(k)*68)).slot = int16(k) - //TODO out[k].ai = (struct addrinfo){ - //TODO .ai_family = addrs[i].family, - //TODO .ai_socktype = ports[j].socktype, - //TODO .ai_protocol = ports[j].proto, - //TODO .ai_addrlen = addrs[i].family == AF_INET - //TODO ? sizeof(struct sockaddr_in) - //TODO : sizeof(struct sockaddr_in6), - //TODO .ai_addr = (void *)&out[k].sa, - //TODO .ai_canonname = outcanon }; - (*aibuf)(unsafe.Pointer(out + uintptr(k)*68)).ai.ai_family = (*address)(unsafe.Pointer(bp + 8 + uintptr(i)*28)).family - (*aibuf)(unsafe.Pointer(out + uintptr(k)*68)).ai.ai_socktype = int32((*service)(unsafe.Pointer(bp + uintptr(j)*4)).socktype) - (*aibuf)(unsafe.Pointer(out + uintptr(k)*68)).ai.ai_protocol = int32((*service)(unsafe.Pointer(bp + uintptr(j)*4)).proto) - (*aibuf)(unsafe.Pointer(out + uintptr(k)*68)).ai.ai_addrlen = func() uint32 { - if (*address)(unsafe.Pointer(bp+8+uintptr(i)*28)).family == 2 { - return uint32(unsafe.Sizeof(sockaddr_in{})) - } - return uint32(unsafe.Sizeof(sockaddr_in6{})) - }() - (*aibuf)(unsafe.Pointer(out + uintptr(k)*68)).ai.ai_addr = out + uintptr(k)*68 + 32 - (*aibuf)(unsafe.Pointer(out + uintptr(k)*68)).ai.ai_canonname = outcanon - if k != 0 { - (*aibuf)(unsafe.Pointer(out + uintptr(k-1)*68)).ai.ai_next = out + uintptr(k)*68 - } - switch (*address)(unsafe.Pointer(bp + 8 + uintptr(i)*28)).family { - case 2: - (*sockaddr_in)(unsafe.Pointer(out + uintptr(k)*68 + 32)).sin_family = sa_family_t(2) - (*sockaddr_in)(unsafe.Pointer(out + uintptr(k)*68 + 32)).sin_port = Xhtons(tls, (*service)(unsafe.Pointer(bp+uintptr(j)*4)).port) - Xmemcpy(tls, out+uintptr(k)*68+32+4, bp+8+uintptr(i)*28+8, uint32(4)) - break - case 10: - (*sockaddr_in6)(unsafe.Pointer(out + uintptr(k)*68 + 32)).sin6_family = sa_family_t(10) - (*sockaddr_in6)(unsafe.Pointer(out + uintptr(k)*68 + 32)).sin6_port = Xhtons(tls, (*service)(unsafe.Pointer(bp+uintptr(j)*4)).port) - (*sockaddr_in6)(unsafe.Pointer(out + uintptr(k)*68 + 32)).sin6_scope_id = (*address)(unsafe.Pointer(bp + 8 + uintptr(i)*28)).scopeid - Xmemcpy(tls, out+uintptr(k)*68+32+8, bp+8+uintptr(i)*28+8, uint32(16)) - break - } - - } - goto __2 - __2: - j++ - k++ - goto __1 - goto __3 - __3: - } - (*aibuf)(unsafe.Pointer(out)).ref = int16(nais) - *(*uintptr)(unsafe.Pointer(res)) = out - return 0 -} - -type ucred = struct { - pid pid_t - uid uid_t - gid gid_t -} /* socket.h:57:1 */ - -type mmsghdr = struct { - msg_hdr struct { - msg_name uintptr - msg_namelen socklen_t - msg_iov uintptr - msg_iovlen int32 - msg_control uintptr - msg_controllen socklen_t - msg_flags int32 - } - msg_len uint32 -} /* socket.h:63:1 */ - -func Xgethostbyaddr(tls *TLS, a uintptr, l socklen_t, af int32) uintptr { /* gethostbyaddr.c:7:16: */ - bp := tls.Alloc(4) - defer tls.Free(4) - - var size size_t = size_t(63) - // var res uintptr at bp, 4 - - var err int32 - for ok := true; ok; ok = err == 34 { - Xfree(tls, _sh) - _sh = Xmalloc(tls, AssignAddUint32(&size, size+size_t(1))) - if !(_sh != 0) { - *(*int32)(unsafe.Pointer(X__h_errno_location(tls))) = 3 - return uintptr(0) - } - err = Xgethostbyaddr_r(tls, a, l, af, _sh, - _sh+uintptr(1)*20, size-size_t(unsafe.Sizeof(hostent{})), bp, X__h_errno_location(tls)) - } - if err != 0 { - return uintptr(0) - } - return _sh -} - -var _sh uintptr /* gethostbyaddr.c:9:24: */ - -func Xgethostbyaddr_r(tls *TLS, a uintptr, l socklen_t, af int32, h uintptr, buf uintptr, buflen size_t, res uintptr, err uintptr) int32 { /* gethostbyaddr_r.c:10:5: */ - bp := tls.Alloc(28) - defer tls.Free(28) - - //TODO union { - //TODO struct sockaddr_in sin; - //TODO struct sockaddr_in6 sin6; - //TODO } sa = { .sin.sin_family = af }; - *(*struct { - sin sockaddr_in - _ [12]byte - })(unsafe.Pointer(bp)) = struct { - sin sockaddr_in - _ [12]byte - }{} //TODO- - (*sockaddr_in)(unsafe.Pointer(bp)).sin_family = sa_family_t(af) //TODO- - var sl socklen_t - if af == 10 { - sl = uint32(unsafe.Sizeof(sockaddr_in6{})) - } else { - sl = uint32(unsafe.Sizeof(sockaddr_in{})) - } - var i int32 - - *(*uintptr)(unsafe.Pointer(res)) = uintptr(0) - - // Load address argument into sockaddr structure - if af == 10 && l == socklen_t(16) { - Xmemcpy(tls, bp+8, a, uint32(16)) - } else if af == 2 && l == socklen_t(4) { - Xmemcpy(tls, bp+4, a, uint32(4)) - } else { - *(*int32)(unsafe.Pointer(err)) = 3 - return 22 - } - - // Align buffer and check for space for pointers and ip address - i = int32(uintptr_t(buf) & (uint32(unsafe.Sizeof(uintptr(0))) - uint32(1))) - if !(i != 0) { - i = int32(unsafe.Sizeof(uintptr(0))) - } - if buflen <= uint32(5)*uint32(unsafe.Sizeof(uintptr(0)))-uint32(i)+l { - return 34 - } - buf += uintptr(uint32(unsafe.Sizeof(uintptr(0))) - uint32(i)) - buflen = buflen - (uint32(5)*uint32(unsafe.Sizeof(uintptr(0))) - uint32(i) + l) - - (*hostent)(unsafe.Pointer(h)).h_addr_list = buf - buf += uintptr(uint32(2) * uint32(unsafe.Sizeof(uintptr(0)))) - (*hostent)(unsafe.Pointer(h)).h_aliases = buf - buf += uintptr(uint32(2) * uint32(unsafe.Sizeof(uintptr(0)))) - - *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_addr_list)) = buf - Xmemcpy(tls, *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_addr_list)), a, l) - buf += uintptr(l) - *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_addr_list + 1*4)) = uintptr(0) - *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_aliases)) = buf - *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_aliases + 1*4)) = uintptr(0) - - switch Xgetnameinfo(tls, bp, sl, buf, buflen, uintptr(0), uint32(0), 0) { - case -3: - *(*int32)(unsafe.Pointer(err)) = 2 - return 11 - case -12: - return 34 - default: - fallthrough - case -10: - fallthrough - case -11: - fallthrough - case -4: - *(*int32)(unsafe.Pointer(err)) = 3 - return *(*int32)(unsafe.Pointer(X___errno_location(tls))) - case 0: - break - } - - (*hostent)(unsafe.Pointer(h)).h_addrtype = af - (*hostent)(unsafe.Pointer(h)).h_length = int32(l) - (*hostent)(unsafe.Pointer(h)).h_name = *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_aliases)) - *(*uintptr)(unsafe.Pointer(res)) = h - return 0 -} - -func Xgethostbyname(tls *TLS, name uintptr) uintptr { /* gethostbyname.c:8:16: */ - return Xgethostbyname2(tls, name, 2) -} - -func Xgethostbyname2(tls *TLS, name uintptr, af int32) uintptr { /* gethostbyname2.c:8:16: */ - bp := tls.Alloc(4) - defer tls.Free(4) - - var size size_t = size_t(63) - // var res uintptr at bp, 4 - - var err int32 - for ok := true; ok; ok = err == 34 { - Xfree(tls, _sh1) - _sh1 = Xmalloc(tls, AssignAddUint32(&size, size+size_t(1))) - if !(_sh1 != 0) { - *(*int32)(unsafe.Pointer(X__h_errno_location(tls))) = 3 - return uintptr(0) - } - err = Xgethostbyname2_r(tls, name, af, _sh1, - _sh1+uintptr(1)*20, size-size_t(unsafe.Sizeof(hostent{})), bp, X__h_errno_location(tls)) - } - if err != 0 { - return uintptr(0) - } - return _sh1 -} - -var _sh1 uintptr /* gethostbyname2.c:10:24: */ - -func Xgethostbyname2_r(tls *TLS, name uintptr, af int32, h uintptr, buf uintptr, buflen size_t, res uintptr, err uintptr) int32 { /* gethostbyname2_r.c:11:5: */ - bp := tls.Alloc(1600) - defer tls.Free(1600) - - // var addrs [48]address at bp, 1344 - - // var canon [256]uint8 at bp+1344, 256 - - var i int32 - var cnt int32 - var align size_t - var need size_t - - *(*uintptr)(unsafe.Pointer(res)) = uintptr(0) - cnt = X__lookup_name(tls, bp, bp+1344, name, af, 0x02) - if cnt < 0 { - switch cnt { - case -2: - *(*int32)(unsafe.Pointer(err)) = 1 - return 2 - fallthrough - case -3: - *(*int32)(unsafe.Pointer(err)) = 2 - return 11 - fallthrough - default: - fallthrough - case -4: - *(*int32)(unsafe.Pointer(err)) = 3 - return 74 - fallthrough - case -10: - fallthrough - case -11: - *(*int32)(unsafe.Pointer(err)) = 3 - return *(*int32)(unsafe.Pointer(X___errno_location(tls))) - } - } - - (*hostent)(unsafe.Pointer(h)).h_addrtype = af - (*hostent)(unsafe.Pointer(h)).h_length = func() int32 { - if af == 10 { - return 16 - } - return 4 - }() - - // Align buffer - align = -uintptr_t(buf) & (uint32(unsafe.Sizeof(uintptr(0))) - uint32(1)) - - need = uint32(4) * uint32(unsafe.Sizeof(uintptr(0))) - need = need + uint32(cnt+1)*(uint32(unsafe.Sizeof(uintptr(0)))+uint32((*hostent)(unsafe.Pointer(h)).h_length)) - need = need + (Xstrlen(tls, name) + size_t(1)) - need = need + (Xstrlen(tls, bp+1344) + size_t(1)) - need = need + align - - if need > buflen { - return 34 - } - - buf += uintptr(align) - (*hostent)(unsafe.Pointer(h)).h_aliases = buf - buf += uintptr(uint32(3) * uint32(unsafe.Sizeof(uintptr(0)))) - (*hostent)(unsafe.Pointer(h)).h_addr_list = buf - buf += uintptr(uint32(cnt+1) * uint32(unsafe.Sizeof(uintptr(0)))) - - for i = 0; i < cnt; i++ { - *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_addr_list + uintptr(i)*4)) = buf - buf += uintptr((*hostent)(unsafe.Pointer(h)).h_length) - Xmemcpy(tls, *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_addr_list + uintptr(i)*4)), bp+uintptr(i)*28+8, uint32((*hostent)(unsafe.Pointer(h)).h_length)) - } - *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_addr_list + uintptr(i)*4)) = uintptr(0) - - (*hostent)(unsafe.Pointer(h)).h_name = AssignPtrUintptr((*hostent)(unsafe.Pointer(h)).h_aliases, buf) - Xstrcpy(tls, (*hostent)(unsafe.Pointer(h)).h_name, bp+1344) - buf += uintptr(Xstrlen(tls, (*hostent)(unsafe.Pointer(h)).h_name) + size_t(1)) - - if Xstrcmp(tls, (*hostent)(unsafe.Pointer(h)).h_name, name) != 0 { - *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_aliases + 1*4)) = buf - Xstrcpy(tls, *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_aliases + 1*4)), name) - buf += uintptr(Xstrlen(tls, *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_aliases + 1*4))) + size_t(1)) - } else { - *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_aliases + 1*4)) = uintptr(0) - } - - *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_aliases + 2*4)) = uintptr(0) - - *(*uintptr)(unsafe.Pointer(res)) = h - return 0 -} - -func Xgethostbyname_r(tls *TLS, name uintptr, h uintptr, buf uintptr, buflen size_t, res uintptr, err uintptr) int32 { /* gethostbyname_r.c:6:5: */ - return Xgethostbyname2_r(tls, name, 2, h, buf, buflen, res, err) -} - -type if_nameindex = struct { - if_index uint32 - if_name uintptr -} /* if.h:12:1 */ - -type ifaddr = struct { - ifa_addr struct { - sa_family sa_family_t - sa_data [14]uint8 - } - ifa_ifu struct { - ifu_broadaddr struct { - sa_family sa_family_t - sa_data [14]uint8 - } - } - ifa_ifp uintptr - ifa_next uintptr -} /* if.h:51:1 */ - -type ifmap = struct { - mem_start uint32 - mem_end uint32 - base_addr uint16 - irq uint8 - dma uint8 - port uint8 - _ [3]byte -} /* if.h:64:1 */ - -type ifreq = struct { - ifr_ifrn struct{ ifrn_name [16]uint8 } - ifr_ifru struct { - _ [0]uint32 - ifru_addr struct { - sa_family sa_family_t - sa_data [14]uint8 - } - } -} /* if.h:76:1 */ - -type ifconf = struct { - ifc_len int32 - ifc_ifcu struct{ ifcu_buf uintptr } -} /* if.h:116:1 */ - -type ns_sect = uint32 /* nameser.h:37:3 */ - -type __ns_msg = struct { - _msg uintptr - _eom uintptr - _id uint16_t - _flags uint16_t - _counts [4]uint16_t - _sections [4]uintptr - _sect ns_sect - _rrnum int32 - _msg_ptr uintptr -} /* nameser.h:39:9 */ - -type ns_msg = __ns_msg /* nameser.h:46:3 */ - -type _ns_flagdata = struct { - mask int32 - shift int32 -} /* nameser.h:48:1 */ - -type __ns_rr = struct { - name [1025]uint8 - _ [1]byte - __type uint16_t - rr_class uint16_t - _ [2]byte - ttl uint32_t - rdlength uint16_t - _ [2]byte - rdata uintptr -} /* nameser.h:59:9 */ - -type ns_rr = __ns_rr /* nameser.h:66:3 */ - -type ns_flag = uint32 /* nameser.h:87:3 */ - -type ns_opcode = uint32 /* nameser.h:96:3 */ - -type ns_rcode = uint32 /* nameser.h:115:3 */ - -type ns_update_operation = uint32 /* nameser.h:121:3 */ - -type ns_tsig_key1 = struct { - name [1025]uint8 - alg [1025]uint8 - _ [2]byte - data uintptr - len int32 -} /* nameser.h:123:1 */ - -type ns_tsig_key = ns_tsig_key1 /* nameser.h:128:28 */ - -type ns_tcp_tsig_state1 = struct { - counter int32 - key uintptr - ctx uintptr - sig [512]uint8 - siglen int32 -} /* nameser.h:130:1 */ - -type ns_tcp_tsig_state = ns_tcp_tsig_state1 /* nameser.h:137:34 */ - -type ns_type = uint32 /* nameser.h:200:3 */ - -type ns_class = uint32 /* nameser.h:219:3 */ - -type ns_key_types = uint32 /* nameser.h:226:3 */ - -type ns_cert_types = uint32 /* nameser.h:234:3 */ - -type HEADER = struct { - _ [0]uint32 - id uint32 /* unsigned id: 16, unsigned rd: 1, unsigned tc: 1, unsigned aa: 1, unsigned opcode: 4, unsigned qr: 1, unsigned rcode: 4, unsigned cd: 1, unsigned ad: 1, unsigned unused: 1, unsigned ra: 1 */ - qdcount uint32 /* unsigned qdcount: 16, unsigned ancount: 16 */ - nscount uint32 /* unsigned nscount: 16, unsigned arcount: 16 */ -} /* nameser.h:353:3 */ - -// unused; purely for broken apps -type __res_state = struct { - retrans int32 - retry int32 - options uint32 - nscount int32 - nsaddr_list [3]struct { - sin_family sa_family_t - sin_port in_port_t - sin_addr struct{ s_addr in_addr_t } - sin_zero [8]uint8_t - } - id uint16 - _ [2]byte - dnsrch [7]uintptr - defdname [256]uint8 - pfcode uint32 - ndots uint32 /* unsigned ndots: 4, unsigned nsort: 4, unsigned ipv6_unavail: 1, unsigned unused: 23 */ - _ [4]byte - sort_list [10]struct { - addr struct{ s_addr in_addr_t } - mask uint32_t - } - qhook uintptr - rhook uintptr - res_h_errno int32 - _vcsock int32 - _flags uint32 - _u struct { - _ [0]uint32 - pad [52]uint8 - } -} /* resolv.h:26:9 */ - -// unused; purely for broken apps -type res_state = uintptr /* resolv.h:62:3 */ - -type res_sym = struct { - number int32 - name uintptr - humanname uintptr -} /* resolv.h:70:1 */ - -func itoa(tls *TLS, p uintptr, x uint32) uintptr { /* getnameinfo.c:18:13: */ - p += uintptr(uint32(3) * uint32(unsafe.Sizeof(int32(0)))) - *(*uint8)(unsafe.Pointer(PreDecUintptr(&p, 1))) = uint8(0) - for ok := true; ok; ok = x != 0 { - *(*uint8)(unsafe.Pointer(PreDecUintptr(&p, 1))) = uint8(uint32('0') + x%uint32(10)) - x = x / uint32(10) - } - return p -} - -func mkptr4(tls *TLS, s uintptr, ip uintptr) { /* getnameinfo.c:28:13: */ - bp := tls.Alloc(32) - defer tls.Free(32) - - Xsprintf(tls, s, ts+25, - VaList(bp, int32(*(*uint8)(unsafe.Pointer(ip + 3))), int32(*(*uint8)(unsafe.Pointer(ip + 2))), int32(*(*uint8)(unsafe.Pointer(ip + 1))), int32(*(*uint8)(unsafe.Pointer(ip))))) -} - -func mkptr6(tls *TLS, s uintptr, ip uintptr) { /* getnameinfo.c:34:13: */ - var i int32 - for i = 15; i >= 0; i-- { - *(*uint8)(unsafe.Pointer(PostIncUintptr(&s, 1))) = _sxdigits[int32(*(*uint8)(unsafe.Pointer(ip + uintptr(i))))&15] - *(*uint8)(unsafe.Pointer(PostIncUintptr(&s, 1))) = uint8('.') - *(*uint8)(unsafe.Pointer(PostIncUintptr(&s, 1))) = _sxdigits[int32(*(*uint8)(unsafe.Pointer(ip + uintptr(i))))>>4] - *(*uint8)(unsafe.Pointer(PostIncUintptr(&s, 1))) = uint8('.') - } - Xstrcpy(tls, s, ts+50) -} - -var _sxdigits = *(*[17]uint8)(unsafe.Pointer(ts + 59)) /* getnameinfo.c:36:20 */ - -func reverse_hosts(tls *TLS, buf uintptr, a uintptr, scopeid uint32, family int32) { /* getnameinfo.c:45:13: */ - bp := tls.Alloc(556) - defer tls.Free(556) - - // var line [512]uint8 at bp+16, 512 - - var p uintptr - var z uintptr - var _buf [1032]uint8 - _ = _buf - // var atmp [16]uint8 at bp, 16 - - // var iplit address at bp+528, 28 - - //TODO FILE _f, *f = __fopen_rb_ca("/etc/hosts", &_f, _buf, sizeof _buf); - var f uintptr = Xfopen(tls, ts+76, ts+87) - if !(f != 0) { - return - } - if family == 2 { - Xmemcpy(tls, bp+uintptr(12), a, uint32(4)) - Xmemcpy(tls, bp, ts+90, uint32(12)) - a = bp /* &atmp[0] */ - } - for Xfgets(tls, bp+16, int32(unsafe.Sizeof([512]uint8{})), f) != 0 { - if AssignUintptr(&p, Xstrchr(tls, bp+16, '#')) != 0 { - *(*uint8)(unsafe.Pointer(PostIncUintptr(&p, 1))) = uint8('\n') - *(*uint8)(unsafe.Pointer(p)) = uint8(0) - } - - for p = bp + 16; /* &line[0] */ *(*uint8)(unsafe.Pointer(p)) != 0 && !(__isspace(tls, int32(*(*uint8)(unsafe.Pointer(p)))) != 0); p++ { - } - *(*uint8)(unsafe.Pointer(PostIncUintptr(&p, 1))) = uint8(0) - if X__lookup_ipliteral(tls, bp+528, bp+16, 0) <= 0 { - continue - } - - if (*address)(unsafe.Pointer(bp+528)).family == 2 { - Xmemcpy(tls, bp+528+8+uintptr(12), bp+528+8, uint32(4)) - Xmemcpy(tls, bp+528+8, ts+90, uint32(12)) - (*address)(unsafe.Pointer(bp + 528 /* &iplit */)).scopeid = uint32(0) - } - - if Xmemcmp(tls, a, bp+528+8, uint32(16)) != 0 || (*address)(unsafe.Pointer(bp+528)).scopeid != scopeid { - continue - } - - for ; *(*uint8)(unsafe.Pointer(p)) != 0 && __isspace(tls, int32(*(*uint8)(unsafe.Pointer(p)))) != 0; p++ { - } - for z = p; *(*uint8)(unsafe.Pointer(z)) != 0 && !(__isspace(tls, int32(*(*uint8)(unsafe.Pointer(z)))) != 0); z++ { - } - *(*uint8)(unsafe.Pointer(z)) = uint8(0) - if (int32(z)-int32(p))/1 < 256 { - Xmemcpy(tls, buf, p, uint32((int32(z)-int32(p))/1+1)) - break - } - } - //TODO __fclose_ca(f); - Xfclose(tls, f) -} - -func reverse_services(tls *TLS, buf uintptr, port int32, dgram int32) { /* getnameinfo.c:87:13: */ - Xabort(tls) //TODO- - // unsigned long svport; - // char line[128], *p, *z; - // unsigned char _buf[1032]; - // FILE _f, *f = __fopen_rb_ca("/etc/services", &_f, _buf, sizeof _buf); - // if (!f) return; - // while (fgets(line, sizeof line, f)) { - // if ((p=strchr(line, '#'))) *p++='\n', *p=0; - - // for (p=line; *p && !isspace(*p); p++); - // if (!*p) continue; - // *p++ = 0; - // svport = strtoul(p, &z, 10); - - // if (svport != port || z==p) continue; - // if (dgram && strncmp(z, "/udp", 4)) continue; - // if (!dgram && strncmp(z, "/tcp", 4)) continue; - // if (p-line > 32) continue; - - // memcpy(buf, line, p-line); - // break; - // } - // __fclose_ca(f); -} - -func Xgetnameinfo(tls *TLS, sa1 uintptr, sl socklen_t, node uintptr, nodelen socklen_t, serv uintptr, servlen socklen_t, flags int32) int32 { /* getnameinfo.c:125:5: */ - bp := tls.Alloc(347) - defer tls.Free(347) - - // var ptr [78]uint8 at bp, 78 - - // var buf [256]uint8 at bp+78, 256 - - // var num [13]uint8 at bp+334, 13 - - var af int32 = int32((*sockaddr)(unsafe.Pointer(sa1)).sa_family) - var a uintptr - var scopeid uint32 - - switch af { - case 2: - a = sa1 + 4 - if sl < socklen_t(unsafe.Sizeof(sockaddr_in{})) { - return -6 - } - mkptr4(tls, bp, a) - scopeid = uint32(0) - break - case 10: - a = sa1 + 8 - if sl < socklen_t(unsafe.Sizeof(sockaddr_in6{})) { - return -6 - } - if Xmemcmp(tls, a, ts+90, uint32(12)) != 0 { - mkptr6(tls, bp, a) - } else { - mkptr4(tls, bp, a+uintptr(12)) - } - scopeid = (*sockaddr_in6)(unsafe.Pointer(sa1)).sin6_scope_id - break - default: - return -6 - } - - if node != 0 && nodelen != 0 { - *(*uint8)(unsafe.Pointer(bp + 78)) = uint8(0) - if !(flags&0x01 != 0) { - reverse_hosts(tls, bp+78, a, scopeid, af) - } - if !(int32(*(*uint8)(unsafe.Pointer(bp + 78))) != 0) && !(flags&0x01 != 0) { - Xabort(tls) //TODO- - // unsigned char query[18+PTR_MAX], reply[512]; - // int qlen = __res_mkquery(0, ptr, 1, RR_PTR, - // 0, 0, 0, query, sizeof query); - // query[3] = 0; /* don't need AD flag */ - // int rlen = __res_send(query, qlen, reply, sizeof reply); - // buf[0] = 0; - // if (rlen > 0) - // __dns_parse(reply, rlen, dns_parse_callback, buf); - } - if !(int32(*(*uint8)(unsafe.Pointer(bp + 78))) != 0) { - if flags&0x08 != 0 { - return -2 - } - Xinet_ntop(tls, af, a, bp+78, uint32(unsafe.Sizeof([256]uint8{}))) - if scopeid != 0 { - Xabort(tls) //TODO- - // char *p = 0, tmp[IF_NAMESIZE+1]; - // if (!(flags & NI_NUMERICSCOPE) && - // (IN6_IS_ADDR_LINKLOCAL(a) || - // IN6_IS_ADDR_MC_LINKLOCAL(a))) - // p = if_indextoname(scopeid, tmp+1); - // if (!p) - // p = itoa(num, scopeid); - // *--p = '%'; - // strcat(buf, p); - } - } - if Xstrlen(tls, bp+78) >= nodelen { - return -12 - } - Xstrcpy(tls, node, bp+78) - } - - if serv != 0 && servlen != 0 { - var p uintptr = bp + 78 /* buf */ - var port int32 = int32(Xntohs(tls, (*sockaddr_in)(unsafe.Pointer(sa1)).sin_port)) - *(*uint8)(unsafe.Pointer(bp + 78)) = uint8(0) - if !(flags&0x02 != 0) { - reverse_services(tls, bp+78, port, flags&0x10) - } - if !(int32(*(*uint8)(unsafe.Pointer(p))) != 0) { - p = itoa(tls, bp+334, uint32(port)) - } - if Xstrlen(tls, p) >= servlen { - return -12 - } - Xstrcpy(tls, serv, p) - } - - return 0 -} - -var Xh_errno int32 /* h_errno.c:4:5: */ - -func X__h_errno_location(tls *TLS) uintptr { /* h_errno.c:6:5: */ - return uintptr(unsafe.Pointer(&Xh_errno)) -} - -func X__inet_aton(tls *TLS, s0 uintptr, dest uintptr) int32 { /* inet_aton.c:7:5: */ - bp := tls.Alloc(20) - defer tls.Free(20) - - var s uintptr = s0 - var d uintptr = dest - *(*[4]uint32)(unsafe.Pointer(bp /* a */)) = [4]uint32{0: uint32(0)} - // var z uintptr at bp+16, 4 - - var i int32 - - for i = 0; i < 4; i++ { - *(*uint32)(unsafe.Pointer(bp + uintptr(i)*4)) = Xstrtoul(tls, s, bp+16, 0) - if *(*uintptr)(unsafe.Pointer(bp + 16)) == s || *(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 16)))) != 0 && int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 16))))) != '.' || !(func() int32 { - if 0 != 0 { - return Xisdigit(tls, int32(*(*uint8)(unsafe.Pointer(s)))) - } - return Bool32(uint32(*(*uint8)(unsafe.Pointer(s)))-uint32('0') < uint32(10)) - }() != 0) { - return 0 - } - if !(int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 16))))) != 0) { - break - } - s = *(*uintptr)(unsafe.Pointer(bp + 16)) + uintptr(1) - } - if i == 4 { - return 0 - } - switch i { - case 0: - *(*uint32)(unsafe.Pointer(bp + 1*4)) = *(*uint32)(unsafe.Pointer(bp)) & uint32(0xffffff) - AssignShrPtrUint32(bp, int(24)) - fallthrough - case 1: - *(*uint32)(unsafe.Pointer(bp + 2*4)) = *(*uint32)(unsafe.Pointer(bp + 1*4)) & uint32(0xffff) - AssignShrPtrUint32(bp+1*4, int(16)) - fallthrough - case 2: - *(*uint32)(unsafe.Pointer(bp + 3*4)) = *(*uint32)(unsafe.Pointer(bp + 2*4)) & uint32(0xff) - AssignShrPtrUint32(bp+2*4, int(8)) - } - for i = 0; i < 4; i++ { - if *(*uint32)(unsafe.Pointer(bp + uintptr(i)*4)) > uint32(255) { - return 0 - } - *(*uint8)(unsafe.Pointer(d + uintptr(i))) = uint8(*(*uint32)(unsafe.Pointer(bp + uintptr(i)*4))) - } - return 1 -} - -func Xinet_ntop(tls *TLS, af int32, a0 uintptr, s uintptr, l socklen_t) uintptr { /* inet_ntop.c:7:12: */ - bp := tls.Alloc(276) - defer tls.Free(276) - - var a uintptr = a0 - var i int32 - var j int32 - var max int32 - var best int32 - // var buf [100]uint8 at bp+176, 100 - - switch af { - case 2: - if socklen_t(Xsnprintf(tls, s, l, ts+103, VaList(bp, int32(*(*uint8)(unsafe.Pointer(a))), int32(*(*uint8)(unsafe.Pointer(a + 1))), int32(*(*uint8)(unsafe.Pointer(a + 2))), int32(*(*uint8)(unsafe.Pointer(a + 3)))))) < l { - return s - } - break - case 10: - if Xmemcmp(tls, a, ts+90, uint32(12)) != 0 { - Xsnprintf(tls, bp+176, uint32(unsafe.Sizeof([100]uint8{})), - ts+115, - VaList(bp+32, 256*int32(*(*uint8)(unsafe.Pointer(a)))+int32(*(*uint8)(unsafe.Pointer(a + 1))), 256*int32(*(*uint8)(unsafe.Pointer(a + 2)))+int32(*(*uint8)(unsafe.Pointer(a + 3))), - 256*int32(*(*uint8)(unsafe.Pointer(a + 4)))+int32(*(*uint8)(unsafe.Pointer(a + 5))), 256*int32(*(*uint8)(unsafe.Pointer(a + 6)))+int32(*(*uint8)(unsafe.Pointer(a + 7))), - 256*int32(*(*uint8)(unsafe.Pointer(a + 8)))+int32(*(*uint8)(unsafe.Pointer(a + 9))), 256*int32(*(*uint8)(unsafe.Pointer(a + 10)))+int32(*(*uint8)(unsafe.Pointer(a + 11))), - 256*int32(*(*uint8)(unsafe.Pointer(a + 12)))+int32(*(*uint8)(unsafe.Pointer(a + 13))), 256*int32(*(*uint8)(unsafe.Pointer(a + 14)))+int32(*(*uint8)(unsafe.Pointer(a + 15))))) - } else { - Xsnprintf(tls, bp+176, uint32(unsafe.Sizeof([100]uint8{})), - ts+139, - VaList(bp+96, 256*int32(*(*uint8)(unsafe.Pointer(a)))+int32(*(*uint8)(unsafe.Pointer(a + 1))), 256*int32(*(*uint8)(unsafe.Pointer(a + 2)))+int32(*(*uint8)(unsafe.Pointer(a + 3))), - 256*int32(*(*uint8)(unsafe.Pointer(a + 4)))+int32(*(*uint8)(unsafe.Pointer(a + 5))), 256*int32(*(*uint8)(unsafe.Pointer(a + 6)))+int32(*(*uint8)(unsafe.Pointer(a + 7))), - 256*int32(*(*uint8)(unsafe.Pointer(a + 8)))+int32(*(*uint8)(unsafe.Pointer(a + 9))), 256*int32(*(*uint8)(unsafe.Pointer(a + 10)))+int32(*(*uint8)(unsafe.Pointer(a + 11))), - int32(*(*uint8)(unsafe.Pointer(a + 12))), int32(*(*uint8)(unsafe.Pointer(a + 13))), int32(*(*uint8)(unsafe.Pointer(a + 14))), int32(*(*uint8)(unsafe.Pointer(a + 15))))) - } - // Replace longest /(^0|:)[:0]{2,}/ with "::" - i = AssignInt32(&best, 0) - max = 2 - for ; *(*uint8)(unsafe.Pointer(bp + 176 + uintptr(i))) != 0; i++ { - if i != 0 && int32(*(*uint8)(unsafe.Pointer(bp + 176 + uintptr(i)))) != ':' { - continue - } - j = int32(Xstrspn(tls, bp+176+uintptr(i), ts+169)) - if j > max { - best = i - max = j - } - } - if max > 3 { - *(*uint8)(unsafe.Pointer(bp + 176 + uintptr(best))) = AssignPtrUint8(bp+176+uintptr(best+1), uint8(':')) - Xmemmove(tls, bp+176+uintptr(best)+uintptr(2), bp+176+uintptr(best)+uintptr(max), uint32(i-best-max+1)) - } - if Xstrlen(tls, bp+176) < l { - Xstrcpy(tls, s, bp+176) - return s - } - break - default: - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 97 - return uintptr(0) - } - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 28 - return uintptr(0) -} - -func hexval(tls *TLS, c uint32) int32 { /* inet_pton.c:7:12: */ - if c-uint32('0') < uint32(10) { - return int32(c - uint32('0')) - } - c = c | uint32(32) - if c-uint32('a') < uint32(6) { - return int32(c - uint32('a') + uint32(10)) - } - return -1 -} - -func Xinet_pton(tls *TLS, af int32, s uintptr, a0 uintptr) int32 { /* inet_pton.c:15:5: */ - bp := tls.Alloc(16) - defer tls.Free(16) - - // var ip [8]uint16_t at bp, 16 - - var a uintptr = a0 - var i int32 - var j int32 - var v int32 - var d int32 - var brk int32 = -1 - var need_v4 int32 = 0 - - if af == 2 { - for i = 0; i < 4; i++ { - for v = AssignInt32(&j, 0); j < 3 && func() int32 { - if 0 != 0 { - return Xisdigit(tls, int32(*(*uint8)(unsafe.Pointer(s + uintptr(j))))) - } - return Bool32(uint32(*(*uint8)(unsafe.Pointer(s + uintptr(j))))-uint32('0') < uint32(10)) - }() != 0; j++ { - v = 10*v + int32(*(*uint8)(unsafe.Pointer(s + uintptr(j)))) - '0' - } - if j == 0 || j > 1 && int32(*(*uint8)(unsafe.Pointer(s))) == '0' || v > 255 { - return 0 - } - *(*uint8)(unsafe.Pointer(a + uintptr(i))) = uint8(v) - if int32(*(*uint8)(unsafe.Pointer(s + uintptr(j)))) == 0 && i == 3 { - return 1 - } - if int32(*(*uint8)(unsafe.Pointer(s + uintptr(j)))) != '.' { - return 0 - } - s += uintptr(j + 1) - } - return 0 - } else if af != 10 { - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 97 - return -1 - } - - if int32(*(*uint8)(unsafe.Pointer(s))) == ':' && int32(*(*uint8)(unsafe.Pointer(PreIncUintptr(&s, 1)))) != ':' { - return 0 - } - - for i = 0; ; i++ { - if int32(*(*uint8)(unsafe.Pointer(s))) == ':' && brk < 0 { - brk = i - *(*uint16_t)(unsafe.Pointer(bp + uintptr(i&7)*2)) = uint16_t(0) - if !(int32(*(*uint8)(unsafe.Pointer(PreIncUintptr(&s, 1)))) != 0) { - break - } - if i == 7 { - return 0 - } - continue - } - for v = AssignInt32(&j, 0); j < 4 && AssignInt32(&d, hexval(tls, uint32(*(*uint8)(unsafe.Pointer(s + uintptr(j)))))) >= 0; j++ { - v = 16*v + d - } - if j == 0 { - return 0 - } - *(*uint16_t)(unsafe.Pointer(bp + uintptr(i&7)*2)) = uint16_t(v) - if !(int32(*(*uint8)(unsafe.Pointer(s + uintptr(j)))) != 0) && (brk >= 0 || i == 7) { - break - } - if i == 7 { - return 0 - } - if int32(*(*uint8)(unsafe.Pointer(s + uintptr(j)))) != ':' { - if int32(*(*uint8)(unsafe.Pointer(s + uintptr(j)))) != '.' || i < 6 && brk < 0 { - return 0 - } - need_v4 = 1 - i++ - break - } - s += uintptr(j + 1) - } - if brk >= 0 { - Xmemmove(tls, bp+uintptr(brk)*2+uintptr(7)*2-uintptr(i)*2, bp+uintptr(brk)*2, uint32(2*(i+1-brk))) - for j = 0; j < 7-i; j++ { - *(*uint16_t)(unsafe.Pointer(bp + uintptr(brk+j)*2)) = uint16_t(0) - } - } - for j = 0; j < 8; j++ { - *(*uint8)(unsafe.Pointer(PostIncUintptr(&a, 1))) = uint8(int32(*(*uint16_t)(unsafe.Pointer(bp + uintptr(j)*2))) >> 8) - *(*uint8)(unsafe.Pointer(PostIncUintptr(&a, 1))) = uint8(*(*uint16_t)(unsafe.Pointer(bp + uintptr(j)*2))) - } - if need_v4 != 0 && Xinet_pton(tls, 2, s, a-uintptr(4)) <= 0 { - return 0 - } - return 1 -} - -func X__lookup_ipliteral(tls *TLS, buf uintptr, name uintptr, family int32) int32 { /* lookup_ipliteral.c:12:5: */ - bp := tls.Alloc(88) - defer tls.Free(88) - - // var a4 in_addr at bp, 4 - - // var a6 in6_addr at bp+68, 16 - - if X__inet_aton(tls, name, bp) > 0 { - if family == 10 { // wrong family - return -2 - } - Xmemcpy(tls, buf+8, bp, uint32(unsafe.Sizeof(in_addr{}))) - (*address)(unsafe.Pointer(buf)).family = 2 - (*address)(unsafe.Pointer(buf)).scopeid = uint32(0) - return 1 - } - // var tmp [64]uint8 at bp+4, 64 - - var p uintptr = Xstrchr(tls, name, '%') - // var z uintptr at bp+84, 4 - - var scopeid uint64 = uint64(0) - if p != 0 && (int32(p)-int32(name))/1 < 64 { - Xmemcpy(tls, bp+4, name, uint32((int32(p)-int32(name))/1)) - *(*uint8)(unsafe.Pointer(bp + 4 + uintptr((int32(p)-int32(name))/1))) = uint8(0) - name = bp + 4 /* &tmp[0] */ - } - - if Xinet_pton(tls, 10, name, bp+68) <= 0 { - return 0 - } - if family == 2 { // wrong family - return -2 - } - - Xmemcpy(tls, buf+8, bp+68, uint32(unsafe.Sizeof(in6_addr{}))) - (*address)(unsafe.Pointer(buf)).family = 10 - if p != 0 { - if func() int32 { - if 0 != 0 { - return Xisdigit(tls, int32(*(*uint8)(unsafe.Pointer(PreIncUintptr(&p, 1))))) - } - return Bool32(uint32(*(*uint8)(unsafe.Pointer(PreIncUintptr(&p, 1))))-uint32('0') < uint32(10)) - }() != 0 { - scopeid = Xstrtoull(tls, p, bp+84, 10) - } else { - *(*uintptr)(unsafe.Pointer(bp + 84 /* z */)) = p - uintptr(1) - } - if *(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 84)))) != 0 { - Xabort(tls) //TODO- - // if (!IN6_IS_ADDR_LINKLOCAL(&a6) && - // !IN6_IS_ADDR_MC_LINKLOCAL(&a6)) - // return EAI_NONAME; - // scopeid = if_nametoindex(p); - // if (!scopeid) return EAI_NONAME; - } - if scopeid > uint64(0xffffffff) { - return -2 - } - } - (*address)(unsafe.Pointer(buf)).scopeid = uint32(scopeid) - return 1 -} - -func is_valid_hostname(tls *TLS, host uintptr) int32 { /* lookup_name.c:18:12: */ - var s uintptr - //TODO if (strnlen(host, 255)-1 >= 254 || mbstowcs(0, host, 0) == -1) return 0; - if Xstrnlen(tls, host, uint32(255))-size_t(1) >= size_t(254) { - return 0 - } - for s = host; int32(*(*uint8)(unsafe.Pointer(s))) >= 0x80 || int32(*(*uint8)(unsafe.Pointer(s))) == '.' || int32(*(*uint8)(unsafe.Pointer(s))) == '-' || Xisalnum(tls, int32(*(*uint8)(unsafe.Pointer(s)))) != 0; s++ { - } - return BoolInt32(!(*(*uint8)(unsafe.Pointer(s)) != 0)) -} - -var Xzero_struct_address address /* lookup_name.c:27:16: */ - -func name_from_null(tls *TLS, buf uintptr, name uintptr, family int32, flags int32) int32 { /* lookup_name.c:29:12: */ - var cnt int32 = 0 - if name != 0 { - return 0 - } - if flags&0x01 != 0 { - //TODO if (family != AF_INET6) - //TODO buf[cnt++] = (struct address){ .family = AF_INET }; - if family != 10 { - var x = Xzero_struct_address - x.family = 2 - *(*address)(unsafe.Pointer(buf + uintptr(PostIncInt32(&cnt, 1))*28)) = x - } - //TODO if (family != AF_INET) - //TODO buf[cnt++] = (struct address){ .family = AF_INET6 }; - if family != 2 { - var x = Xzero_struct_address - x.family = 10 - *(*address)(unsafe.Pointer(buf + uintptr(PostIncInt32(&cnt, 1))*28)) = x - } - } else { - Xabort(tls) //TODO- - // if (family != AF_INET6) - // buf[cnt++] = (struct address){ .family = AF_INET, .addr = { 127,0,0,1 } }; - // if (family != AF_INET) - // buf[cnt++] = (struct address){ .family = AF_INET6, .addr = { [15] = 1 } }; - } - return cnt -} - -func name_from_numeric(tls *TLS, buf uintptr, name uintptr, family int32) int32 { /* lookup_name.c:58:12: */ - return X__lookup_ipliteral(tls, buf, name, family) -} - -func name_from_hosts(tls *TLS, buf uintptr, canon uintptr, name uintptr, family int32) int32 { /* lookup_name.c:63:12: */ - bp := tls.Alloc(512) - defer tls.Free(512) - - // var line [512]uint8 at bp, 512 - - var l size_t = Xstrlen(tls, name) - var cnt int32 = 0 - var badfam int32 = 0 - var _buf [1032]uint8 - _ = _buf - //TODO FILE _f, *f = __fopen_rb_ca("/etc/hosts", &_f, _buf, sizeof _buf); - var _f FILE - _ = _f - var f uintptr = Xfopen(tls, ts+76, ts+87) - if !(f != 0) { - switch *(*int32)(unsafe.Pointer(X___errno_location(tls))) { - case 2: - fallthrough - case 20: - fallthrough - case 13: - return 0 - fallthrough - default: - return -11 - } - } - for Xfgets(tls, bp, int32(unsafe.Sizeof([512]uint8{})), f) != 0 && cnt < 48 { - var p uintptr - var z uintptr - - if AssignUintptr(&p, Xstrchr(tls, bp, '#')) != 0 { - *(*uint8)(unsafe.Pointer(PostIncUintptr(&p, 1))) = uint8('\n') - *(*uint8)(unsafe.Pointer(p)) = uint8(0) - } - for p = bp + uintptr(1); AssignUintptr(&p, Xstrstr(tls, p, name)) != 0 && (!(__isspace(tls, int32(*(*uint8)(unsafe.Pointer(p + UintptrFromInt32(-1))))) != 0) || !(__isspace(tls, int32(*(*uint8)(unsafe.Pointer(p + uintptr(l))))) != 0)); p++ { - } - if !(p != 0) { - continue - } - - // Isolate IP address to parse - for p = bp; /* &line[0] */ *(*uint8)(unsafe.Pointer(p)) != 0 && !(__isspace(tls, int32(*(*uint8)(unsafe.Pointer(p)))) != 0); p++ { - } - *(*uint8)(unsafe.Pointer(PostIncUintptr(&p, 1))) = uint8(0) - switch name_from_numeric(tls, buf+uintptr(cnt)*28, bp, family) { - case 1: - cnt++ - break - case 0: - continue - default: - badfam = -2 - continue - } - - // Extract first name as canonical name - for ; *(*uint8)(unsafe.Pointer(p)) != 0 && __isspace(tls, int32(*(*uint8)(unsafe.Pointer(p)))) != 0; p++ { - } - for z = p; *(*uint8)(unsafe.Pointer(z)) != 0 && !(__isspace(tls, int32(*(*uint8)(unsafe.Pointer(z)))) != 0); z++ { - } - *(*uint8)(unsafe.Pointer(z)) = uint8(0) - if is_valid_hostname(tls, p) != 0 { - Xmemcpy(tls, canon, p, uint32((int32(z)-int32(p))/1+1)) - } - } - //TODO __fclose_ca(f); - Xfclose(tls, f) - if cnt != 0 { - return cnt - } - return badfam -} - -type dpc_ctx = struct { - addrs uintptr - canon uintptr - cnt int32 -} /* lookup_name.c:112:1 */ - -func name_from_dns_search(tls *TLS, buf uintptr, canon uintptr, name uintptr, family int32) int32 { /* lookup_name.c:191:12: */ - return -1 //TODO- - Xabort(tls) - return int32(0) //TODO- - // char search[256]; - // struct resolvconf conf; - // size_t l, dots; - // char *p, *z; - - // if (__get_resolv_conf(&conf, search, sizeof search) < 0) return -1; - - // /* Count dots, suppress search when >=ndots or name ends in - // * a dot, which is an explicit request for global scope. */ - // for (dots=l=0; name[l]; l++) if (name[l]=='.') dots++; - // if (dots >= conf.ndots || name[l-1]=='.') *search = 0; - - // /* Strip final dot for canon, fail if multiple trailing dots. */ - // if (name[l-1]=='.') l--; - // if (!l || name[l-1]=='.') return EAI_NONAME; - - // /* This can never happen; the caller already checked length. */ - // if (l >= 256) return EAI_NONAME; - - // /* Name with search domain appended is setup in canon[]. This both - // * provides the desired default canonical name (if the requested - // * name is not a CNAME record) and serves as a buffer for passing - // * the full requested name to name_from_dns. */ - // memcpy(canon, name, l); - // canon[l] = '.'; - - // for (p=search; *p; p=z) { - // for (; isspace(*p); p++); - // for (z=p; *z && !isspace(*z); z++); - // if (z==p) break; - // if (z-p < 256 - l - 1) { - // memcpy(canon+l+1, p, z-p); - // canon[z-p+1+l] = 0; - // int cnt = name_from_dns(buf, canon, canon, family, &conf); - // if (cnt) return cnt; - // } - // } - - // canon[l] = 0; - // return name_from_dns(buf, canon, name, family, &conf); -} - -type policy = struct { - addr [16]uint8 - len uint8 - mask uint8 - prec uint8 - label uint8 -} /* lookup_name.c:237:14 */ - -var defpolicy = [6]policy{ - {addr: *(*[16]uint8)(unsafe.Pointer(ts + 172)), len: uint8(15), mask: uint8(0xff), prec: uint8(50)}, - {addr: *(*[16]uint8)(unsafe.Pointer(ts + 189)), len: uint8(11), mask: uint8(0xff), prec: uint8(35), label: uint8(4)}, - {addr: *(*[16]uint8)(unsafe.Pointer(ts + 205)), len: uint8(1), mask: uint8(0xff), prec: uint8(30), label: uint8(2)}, - {addr: *(*[16]uint8)(unsafe.Pointer(ts + 221)), len: uint8(3), mask: uint8(0xff), prec: uint8(5), label: uint8(5)}, - {addr: *(*[16]uint8)(unsafe.Pointer(ts + 237)), mask: uint8(0xfe), prec: uint8(3), label: uint8(13)}, - // Last rule must match all addresses to stop loop. - {addr: *(*[16]uint8)(unsafe.Pointer(ts + 253)), prec: uint8(40), label: uint8(1)}, -} /* lookup_name.c:241:3 */ - -func policyof(tls *TLS, a uintptr) uintptr { /* lookup_name.c:259:28: */ - var i int32 - for i = 0; ; i++ { - if Xmemcmp(tls, a, uintptr(unsafe.Pointer(&defpolicy))+uintptr(i)*20, uint32(defpolicy[i].len)) != 0 { - continue - } - if int32(*(*uint8_t)(unsafe.Pointer(a + uintptr(defpolicy[i].len))))&int32(defpolicy[i].mask) != - int32(*(*uint8)(unsafe.Pointer(uintptr(unsafe.Pointer(&defpolicy)) + uintptr(i)*20 + uintptr(defpolicy[i].len)))) { - continue - } - return uintptr(unsafe.Pointer(&defpolicy)) + uintptr(i)*20 - } - return uintptr(0) -} - -func labelof(tls *TLS, a uintptr) int32 { /* lookup_name.c:272:12: */ - return int32((*policy)(unsafe.Pointer(policyof(tls, a))).label) -} - -func scopeof(tls *TLS, a uintptr) int32 { /* lookup_name.c:277:12: */ - if int32(*(*uint8_t)(unsafe.Pointer(a))) == 0xff { - return int32(*(*uint8_t)(unsafe.Pointer(a + 1))) & 15 - } - if int32(*(*uint8_t)(unsafe.Pointer(a))) == 0xfe && int32(*(*uint8_t)(unsafe.Pointer(a + 1)))&0xc0 == 0x80 { - return 2 - } - if *(*uint32_t)(unsafe.Pointer(a)) == uint32_t(0) && *(*uint32_t)(unsafe.Pointer(a + 1*4)) == uint32_t(0) && *(*uint32_t)(unsafe.Pointer(a + 2*4)) == uint32_t(0) && int32(*(*uint8_t)(unsafe.Pointer(a + 12))) == 0 && int32(*(*uint8_t)(unsafe.Pointer(a + 13))) == 0 && int32(*(*uint8_t)(unsafe.Pointer(a + 14))) == 0 && int32(*(*uint8_t)(unsafe.Pointer(a + 15))) == 1 { - return 2 - } - if int32(*(*uint8_t)(unsafe.Pointer(a))) == 0xfe && int32(*(*uint8_t)(unsafe.Pointer(a + 1)))&0xc0 == 0xc0 { - return 5 - } - return 14 -} - -func prefixmatch(tls *TLS, s uintptr, d uintptr) int32 { /* lookup_name.c:286:12: */ - // FIXME: The common prefix length should be limited to no greater - // than the nominal length of the prefix portion of the source - // address. However the definition of the source prefix length is - // not clear and thus this limiting is not yet implemented. - var i uint32 - for i = uint32(0); i < uint32(128) && !((int32(*(*uint8_t)(unsafe.Pointer(s /* &.__in6_union */ /* &.__s6_addr */ + uintptr(i/uint32(8)))))^int32(*(*uint8_t)(unsafe.Pointer(d /* &.__in6_union */ /* &.__s6_addr */ + uintptr(i/uint32(8))))))&(int32(128)>>(i%uint32(8))) != 0); i++ { - } - return int32(i) -} - -func addrcmp(tls *TLS, _a uintptr, _b uintptr) int32 { /* lookup_name.c:305:12: */ - var a uintptr = _a - var b uintptr = _b - return (*address)(unsafe.Pointer(b)).sortkey - (*address)(unsafe.Pointer(a)).sortkey -} - -func X__lookup_name(tls *TLS, buf uintptr, canon uintptr, name uintptr, family int32, flags int32) int32 { /* lookup_name.c:311:5: */ - bp := tls.Alloc(92) - defer tls.Free(92) - - var cnt int32 = 0 - var i int32 - var j int32 - _ = j - - *(*uint8)(unsafe.Pointer(canon)) = uint8(0) - if name != 0 { - // reject empty name and check len so it fits into temp bufs - var l size_t = Xstrnlen(tls, name, uint32(255)) - if l-size_t(1) >= size_t(254) { - return -2 - } - Xmemcpy(tls, canon, name, l+size_t(1)) - } - - // Procedurally, a request for v6 addresses with the v4-mapped - // flag set is like a request for unspecified family, followed - // by filtering of the results. - if flags&0x08 != 0 { - if family == 10 { - family = 0 - } else { - flags = flags - 0x08 - } - } - - // Try each backend until there's at least one result. - cnt = name_from_null(tls, buf, name, family, flags) - if !(cnt != 0) { - cnt = name_from_numeric(tls, buf, name, family) - } - if !(cnt != 0) && !(flags&0x04 != 0) { - cnt = name_from_hosts(tls, buf, canon, name, family) - if !(cnt != 0) { - cnt = name_from_dns_search(tls, buf, canon, name, family) - } - } - if cnt <= 0 { - if cnt != 0 { - return cnt - } - return -2 - } - - // Filter/transform results for v4-mapped lookup, if requested. - if flags&0x08 != 0 { - Xabort(tls) //TODO- - // if (!(flags & AI_ALL)) { - // /* If any v6 results exist, remove v4 results. */ - // for (i=0; i= 0 { - if !(Xconnect(tls, fd, da, dalen) != 0) { - key = key | 0x40000000 - if !(Xgetsockname(tls, fd, sa1, bp+88) != 0) { - if family == 2 { - Xmemcpy(tls, - bp+28+8+uintptr(12), - bp+72+4, uint32(4)) - } - if dscope == scopeof(tls, bp+28+8) { - key = key | 0x20000000 - } - if dlabel == labelof(tls, bp+28+8) { - key = key | 0x10000000 - } - prefixlen = prefixmatch(tls, bp+28+8, - bp+8) - } - } - Xclose(tls, fd) - } - key = key | dprec<<20 - key = key | (15-dscope)<<16 - key = key | prefixlen<<8 - key = key | (48-i)<<0 - (*address)(unsafe.Pointer(buf + uintptr(i)*28)).sortkey = key - } - Xqsort(tls, buf, uint32(cnt), uint32(unsafe.Sizeof(address{})), *(*uintptr)(unsafe.Pointer(&struct { - f func(*TLS, uintptr, uintptr) int32 - }{addrcmp}))) - - //TODO pthread_setcancelstate(cs, 0); - - return cnt -} - -func X__lookup_serv(tls *TLS, buf uintptr, name uintptr, proto int32, socktype int32, flags int32) int32 { /* lookup_serv.c:12:5: */ - bp := tls.Alloc(4) - defer tls.Free(4) - - var line [128]uint8 - _ = line - var cnt int32 = 0 - var p uintptr - _ = p - *(*uintptr)(unsafe.Pointer(bp /* z */)) = ts + 13 /* "" */ - var port uint32 = uint32(0) - - switch socktype { - case 1: - switch proto { - case 0: - proto = 6 - fallthrough - case 6: - break - default: - return -8 - } - break - case 2: - switch proto { - case 0: - proto = 17 - fallthrough - case 17: - break - default: - return -8 - } - fallthrough - case 0: - break - default: - if name != 0 { - return -8 - } - (*service)(unsafe.Pointer(buf)).port = uint16_t(0) - (*service)(unsafe.Pointer(buf)).proto = uint8(proto) - (*service)(unsafe.Pointer(buf)).socktype = uint8(socktype) - return 1 - } - - if name != 0 { - if !(int32(*(*uint8)(unsafe.Pointer(name))) != 0) { - return -8 - } - port = Xstrtoul(tls, name, bp, 10) - } - if !(int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp))))) != 0) { - if port > uint32(65535) { - return -8 - } - if proto != 17 { - (*service)(unsafe.Pointer(buf + uintptr(cnt)*4)).port = uint16_t(port) - (*service)(unsafe.Pointer(buf + uintptr(cnt)*4)).socktype = uint8(1) - (*service)(unsafe.Pointer(buf + uintptr(PostIncInt32(&cnt, 1))*4)).proto = uint8(6) - } - if proto != 6 { - (*service)(unsafe.Pointer(buf + uintptr(cnt)*4)).port = uint16_t(port) - (*service)(unsafe.Pointer(buf + uintptr(cnt)*4)).socktype = uint8(2) - (*service)(unsafe.Pointer(buf + uintptr(PostIncInt32(&cnt, 1))*4)).proto = uint8(17) - } - return cnt - } - - if flags&0x400 != 0 { - return -2 - } - - var l size_t = Xstrlen(tls, name) - _ = l - - Xabort(tls) //TODO- - // unsigned char _buf[1032]; - // FILE _f, *f = __fopen_rb_ca("/etc/services", &_f, _buf, sizeof _buf); - // if (!f) switch (errno) { - // case ENOENT: - // case ENOTDIR: - // case EACCES: - // return EAI_SERVICE; - // default: - // return EAI_SYSTEM; - // } - - Xabort(tls) //TODO- - // while (fgets(line, sizeof line, f) && cnt < MAXSERVS) { - // if ((p=strchr(line, '#'))) *p++='\n', *p=0; - - // /* Find service name */ - // for(p=line; (p=strstr(p, name)); p++) { - // if (p>line && !isspace(p[-1])) continue; - // if (p[l] && !isspace(p[l])) continue; - // break; - // } - // if (!p) continue; - - // /* Skip past canonical name at beginning of line */ - // for (p=line; *p && !isspace(*p); p++); - - // port = strtoul(p, &z, 10); - // if (port > 65535 || z==p) continue; - // if (!strncmp(z, "/udp", 4)) { - // if (proto == IPPROTO_TCP) continue; - // buf[cnt].port = port; - // buf[cnt].socktype = SOCK_DGRAM; - // buf[cnt++].proto = IPPROTO_UDP; - // } - // if (!strncmp(z, "/tcp", 4)) { - // if (proto == IPPROTO_UDP) continue; - // buf[cnt].port = port; - // buf[cnt].socktype = SOCK_STREAM; - // buf[cnt++].proto = IPPROTO_TCP; - // } - // } - // __fclose_ca(f); - // return cnt > 0 ? cnt : EAI_SERVICE; - Xabort(tls) - return int32(0) //TODO- -} - -func temper(tls *TLS, x uint32) uint32 { /* rand_r.c:3:17: */ - x = x ^ x>>11 - x = x ^ x<<7&0x9D2C5680 - x = x ^ x<<15&0xEFC60000 - x = x ^ x>>18 - return x -} - -func Xrand_r(tls *TLS, seed uintptr) int32 { /* rand_r.c:12:5: */ - return int32(temper(tls, AssignPtrUint32(seed, *(*uint32)(unsafe.Pointer(seed))*uint32(1103515245)+uint32(12345))) / uint32(2)) -} - -func X__lockfile(tls *TLS, f uintptr) int32 { /* __lockfile.c:4:5: */ - var owner int32 = (*FILE)(unsafe.Pointer(f)).lock - var tid int32 = (*__pthread)(unsafe.Pointer(__pthread_self(tls))).tid - if owner&CplInt32(0x40000000) == tid { - return 0 - } - owner = a_cas(tls, f+76, 0, tid) - if !(owner != 0) { - return 1 - } - for AssignInt32(&owner, a_cas(tls, f+76, 0, tid|0x40000000)) != 0 { - if owner&0x40000000 != 0 || a_cas(tls, f+76, owner, owner|0x40000000) == owner { - __futexwait(tls, f+76, owner|0x40000000, 1) - } - } - return 1 -} - -func X__unlockfile(tls *TLS, f uintptr) { /* __lockfile.c:19:6: */ - if a_swap(tls, f+76, 0)&0x40000000 != 0 { - __wake(tls, f+76, 1, 1) - } -} - -func X__toread(tls *TLS, f uintptr) int32 { /* __toread.c:3:5: */ - *(*int32)(unsafe.Pointer(f + 72)) |= (*FILE)(unsafe.Pointer(f)).mode - 1 - if (*FILE)(unsafe.Pointer(f)).wpos != (*FILE)(unsafe.Pointer(f)).wbase { - (*struct { - f func(*TLS, uintptr, uintptr, size_t) size_t - })(unsafe.Pointer(&struct{ uintptr }{(*FILE)(unsafe.Pointer(f)).write})).f(tls, f, uintptr(0), uint32(0)) - } - (*FILE)(unsafe.Pointer(f)).wpos = AssignPtrUintptr(f+28, AssignPtrUintptr(f+16, uintptr(0))) - if (*FILE)(unsafe.Pointer(f)).flags&uint32(4) != 0 { - *(*uint32)(unsafe.Pointer(f)) |= uint32(32) - return -1 - } - (*FILE)(unsafe.Pointer(f)).rpos = AssignPtrUintptr(f+8, (*FILE)(unsafe.Pointer(f)).buf+uintptr((*FILE)(unsafe.Pointer(f)).buf_size)) - if (*FILE)(unsafe.Pointer(f)).flags&uint32(16) != 0 { - return -1 - } - return 0 -} - -func X__toread_needs_stdio_exit(tls *TLS) { /* __toread.c:16:13: */ - X__builtin_abort(tls) //TODO- - // __stdio_exit_needed(); -} - -// This function assumes it will never be called if there is already -// data buffered for reading. - -func X__uflow(tls *TLS, f uintptr) int32 { /* __uflow.c:6:5: */ - bp := tls.Alloc(1) - defer tls.Free(1) - - // var c uint8 at bp, 1 - - if !(X__toread(tls, f) != 0) && (*struct { - f func(*TLS, uintptr, uintptr, size_t) size_t - })(unsafe.Pointer(&struct{ uintptr }{(*FILE)(unsafe.Pointer(f)).read})).f(tls, f, bp, uint32(1)) == size_t(1) { - return int32(*(*uint8)(unsafe.Pointer(bp))) - } - return -1 -} - -func Xsscanf(tls *TLS, s uintptr, fmt uintptr, va uintptr) int32 { /* sscanf.c:4:5: */ - var ret int32 - var ap va_list - _ = ap - ap = va - ret = Xvsscanf(tls, s, fmt, ap) - _ = ap - return ret -} - -type wctrans_t = uintptr /* wctype.h:20:19 */ - -func store_int(tls *TLS, dest uintptr, size int32, i uint64) { /* vfscanf.c:22:13: */ - if !(dest != 0) { - return - } - switch size { - case -2: - *(*uint8)(unsafe.Pointer(dest)) = uint8(i) - break - case -1: - *(*int16)(unsafe.Pointer(dest)) = int16(i) - break - case 0: - *(*int32)(unsafe.Pointer(dest)) = int32(i) - break - case 1: - *(*int32)(unsafe.Pointer(dest)) = int32(i) - break - case 3: - *(*int64)(unsafe.Pointer(dest)) = int64(i) - break - } -} - -func arg_n(tls *TLS, ap va_list, n uint32) uintptr { /* vfscanf.c:44:13: */ - var p uintptr - var i uint32 - var ap2 va_list - _ = ap2 - ap2 = ap - for i = n; i > uint32(1); i-- { - VaUintptr(&ap2) - } - p = VaUintptr(&ap2) - _ = ap2 - return p -} - -func Xvfscanf(tls *TLS, f uintptr, fmt uintptr, ap va_list) int32 { /* vfscanf.c:56:5: */ - bp := tls.Alloc(276) - defer tls.Free(276) - - var width int32 - var size int32 - var alloc int32 - var base int32 - var p uintptr - var c int32 - var t int32 - var s uintptr - var wcs uintptr - // var st mbstate_t at bp+268, 8 - - var dest uintptr - var invert int32 - var matches int32 - var x uint64 - var y float64 - var pos off_t - // var scanset [257]uint8 at bp, 257 - - var i size_t - var k size_t - // var wc wchar_t at bp+260, 4 - - var __need_unlock int32 - var tmp uintptr - var tmp1 uintptr - alloc = 0 - dest = uintptr(0) - matches = 0 - pos = int64(0) - __need_unlock = func() int32 { - if (*FILE)(unsafe.Pointer(f)).lock >= 0 { - return X__lockfile(tls, f) - } - return 0 - }() - - if !!(int32((*FILE)(unsafe.Pointer(f)).rpos) != 0) { - goto __1 - } - X__toread(tls, f) -__1: - ; - if !!(int32((*FILE)(unsafe.Pointer(f)).rpos) != 0) { - goto __2 - } - goto input_fail -__2: - ; - - p = fmt -__3: - if !(*(*uint8)(unsafe.Pointer(p)) != 0) { - goto __5 - } - - alloc = 0 - - if !(__isspace(tls, int32(*(*uint8)(unsafe.Pointer(p)))) != 0) { - goto __6 - } -__7: - if !(__isspace(tls, int32(*(*uint8)(unsafe.Pointer(p + 1)))) != 0) { - goto __8 - } - p++ - goto __7 -__8: - ; - X__shlim(tls, f, int64(0)) -__9: - if !(__isspace(tls, func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }()) != 0) { - goto __10 - } - goto __9 -__10: - ; - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - pos = pos + ((*FILE)(unsafe.Pointer(f)).shcnt + off_t((int32((*FILE)(unsafe.Pointer(f)).rpos)-int32((*FILE)(unsafe.Pointer(f)).buf))/1)) - goto __4 -__6: - ; - if !(int32(*(*uint8)(unsafe.Pointer(p))) != '%' || int32(*(*uint8)(unsafe.Pointer(p + 1))) == '%') { - goto __11 - } - X__shlim(tls, f, int64(0)) - if !(int32(*(*uint8)(unsafe.Pointer(p))) == '%') { - goto __12 - } - p++ -__14: - if !(__isspace(tls, AssignInt32(&c, func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }())) != 0) { - goto __15 - } - goto __14 -__15: - ; - goto __13 -__12: - c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() -__13: - ; - if !(c != int32(*(*uint8)(unsafe.Pointer(p)))) { - goto __16 - } - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - if !(c < 0) { - goto __17 - } - goto input_fail -__17: - ; - goto match_fail -__16: - ; - pos = pos + ((*FILE)(unsafe.Pointer(f)).shcnt + off_t((int32((*FILE)(unsafe.Pointer(f)).rpos)-int32((*FILE)(unsafe.Pointer(f)).buf))/1)) - goto __4 -__11: - ; - - p++ - if !(int32(*(*uint8)(unsafe.Pointer(p))) == '*') { - goto __18 - } - dest = uintptr(0) - p++ - goto __19 -__18: - if !(func() int32 { - if 0 != 0 { - return Xisdigit(tls, int32(*(*uint8)(unsafe.Pointer(p)))) - } - return Bool32(uint32(*(*uint8)(unsafe.Pointer(p)))-uint32('0') < uint32(10)) - }() != 0 && int32(*(*uint8)(unsafe.Pointer(p + 1))) == '$') { - goto __20 - } - dest = arg_n(tls, ap, uint32(int32(*(*uint8)(unsafe.Pointer(p)))-'0')) - p += uintptr(2) - goto __21 -__20: - dest = VaUintptr(&ap) -__21: - ; -__19: - ; - - width = 0 -__22: - if !(func() int32 { - if 0 != 0 { - return Xisdigit(tls, int32(*(*uint8)(unsafe.Pointer(p)))) - } - return Bool32(uint32(*(*uint8)(unsafe.Pointer(p)))-uint32('0') < uint32(10)) - }() != 0) { - goto __24 - } - width = 10*width + int32(*(*uint8)(unsafe.Pointer(p))) - '0' - goto __23 -__23: - p++ - goto __22 - goto __24 -__24: - ; - - if !(int32(*(*uint8)(unsafe.Pointer(p))) == 'm') { - goto __25 - } - wcs = uintptr(0) - s = uintptr(0) - alloc = BoolInt32(!!(dest != 0)) - p++ - goto __26 -__25: - alloc = 0 -__26: - ; - - size = 0 - switch int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&p, 1)))) { - case 'h': - goto __28 - case 'l': - goto __29 - case 'j': - goto __30 - case 'z': - goto __31 - case 't': - goto __32 - case 'L': - goto __33 - case 'd': - goto __34 - case 'i': - goto __35 - case 'o': - goto __36 - case 'u': - goto __37 - case 'x': - goto __38 - case 'a': - goto __39 - case 'e': - goto __40 - case 'f': - goto __41 - case 'g': - goto __42 - case 'A': - goto __43 - case 'E': - goto __44 - case 'F': - goto __45 - case 'G': - goto __46 - case 'X': - goto __47 - case 's': - goto __48 - case 'c': - goto __49 - case '[': - goto __50 - case 'S': - goto __51 - case 'C': - goto __52 - case 'p': - goto __53 - case 'n': - goto __54 - default: - goto __55 - } - goto __27 -__28: - if !(int32(*(*uint8)(unsafe.Pointer(p))) == 'h') { - goto __56 - } - p++ - size = -2 - goto __57 -__56: - size = -1 -__57: - ; - goto __27 -__29: - if !(int32(*(*uint8)(unsafe.Pointer(p))) == 'l') { - goto __58 - } - p++ - size = 3 - goto __59 -__58: - size = 1 -__59: - ; - goto __27 -__30: - size = 3 - goto __27 -__31: -__32: - size = 1 - goto __27 -__33: - size = 2 - goto __27 -__34: -__35: -__36: -__37: -__38: -__39: -__40: -__41: -__42: -__43: -__44: -__45: -__46: -__47: -__48: -__49: -__50: -__51: -__52: -__53: -__54: - p-- - goto __27 -__55: - goto fmt_fail -__27: - ; - - t = int32(*(*uint8)(unsafe.Pointer(p))) - - // C or S - if !(t&0x2f == 3) { - goto __60 - } - t = t | 32 - size = 1 -__60: - ; - - switch t { - case 'c': - goto __62 - case '[': - goto __63 - case 'n': - goto __64 - default: - goto __65 - } - goto __61 -__62: - if !(width < 1) { - goto __66 - } - width = 1 -__66: - ; -__63: - goto __61 -__64: - store_int(tls, dest, size, uint64(pos)) - // do not increment match count, etc! - goto __4 -__65: - X__shlim(tls, f, int64(0)) -__67: - if !(__isspace(tls, func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }()) != 0) { - goto __68 - } - goto __67 -__68: - ; - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - pos = pos + ((*FILE)(unsafe.Pointer(f)).shcnt + off_t((int32((*FILE)(unsafe.Pointer(f)).rpos)-int32((*FILE)(unsafe.Pointer(f)).buf))/1)) -__61: - ; - - X__shlim(tls, f, int64(width)) - if !(func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() < 0) { - goto __69 - } - goto input_fail -__69: - ; - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - - switch t { - case 's': - goto __71 - case 'c': - goto __72 - case '[': - goto __73 - case 'p': - goto __74 - case 'X': - goto __75 - case 'x': - goto __76 - case 'o': - goto __77 - case 'd': - goto __78 - case 'u': - goto __79 - case 'i': - goto __80 - case 'a': - goto __81 - case 'A': - goto __82 - case 'e': - goto __83 - case 'E': - goto __84 - case 'f': - goto __85 - case 'F': - goto __86 - case 'g': - goto __87 - case 'G': - goto __88 - } - goto __70 -__71: -__72: -__73: - if !(t == 'c' || t == 's') { - goto __89 - } - Xmemset(tls, bp, -1, uint32(unsafe.Sizeof([257]uint8{}))) - *(*uint8)(unsafe.Pointer(bp)) = uint8(0) - if !(t == 's') { - goto __91 - } - *(*uint8)(unsafe.Pointer(bp + 10)) = uint8(0) - *(*uint8)(unsafe.Pointer(bp + 11)) = uint8(0) - *(*uint8)(unsafe.Pointer(bp + 12)) = uint8(0) - *(*uint8)(unsafe.Pointer(bp + 13)) = uint8(0) - *(*uint8)(unsafe.Pointer(bp + 14)) = uint8(0) - *(*uint8)(unsafe.Pointer(bp + 33)) = uint8(0) -__91: - ; - goto __90 -__89: - if !(int32(*(*uint8)(unsafe.Pointer(PreIncUintptr(&p, 1)))) == '^') { - goto __92 - } - p++ - invert = 1 - goto __93 -__92: - invert = 0 -__93: - ; - Xmemset(tls, bp, invert, uint32(unsafe.Sizeof([257]uint8{}))) - *(*uint8)(unsafe.Pointer(bp)) = uint8(0) - if !(int32(*(*uint8)(unsafe.Pointer(p))) == '-') { - goto __94 - } - p++ - *(*uint8)(unsafe.Pointer(bp + 46)) = uint8(1 - invert) - goto __95 -__94: - if !(int32(*(*uint8)(unsafe.Pointer(p))) == ']') { - goto __96 - } - p++ - *(*uint8)(unsafe.Pointer(bp + 94)) = uint8(1 - invert) -__96: - ; -__95: - ; -__97: - if !(int32(*(*uint8)(unsafe.Pointer(p))) != ']') { - goto __99 - } - if !!(int32(*(*uint8)(unsafe.Pointer(p))) != 0) { - goto __100 - } - goto fmt_fail -__100: - ; - if !(int32(*(*uint8)(unsafe.Pointer(p))) == '-' && *(*uint8)(unsafe.Pointer(p + 1)) != 0 && int32(*(*uint8)(unsafe.Pointer(p + 1))) != ']') { - goto __101 - } - c = int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&p, 1) + UintptrFromInt32(-1)))) -__102: - if !(c < int32(*(*uint8)(unsafe.Pointer(p)))) { - goto __104 - } - *(*uint8)(unsafe.Pointer(bp + uintptr(1+c))) = uint8(1 - invert) - goto __103 -__103: - c++ - goto __102 - goto __104 -__104: - ; -__101: - ; - *(*uint8)(unsafe.Pointer(bp + uintptr(1+int32(*(*uint8)(unsafe.Pointer(p)))))) = uint8(1 - invert) - goto __98 -__98: - p++ - goto __97 - goto __99 -__99: - ; -__90: - ; - wcs = uintptr(0) - s = uintptr(0) - i = size_t(0) - if t == 'c' { - k = uint32(width) + 1 - } else { - k = uint32(31) - } - if !(size == 1) { - goto __105 - } - if !(alloc != 0) { - goto __107 - } - wcs = Xmalloc(tls, k*size_t(unsafe.Sizeof(wchar_t(0)))) - if !!(wcs != 0) { - goto __109 - } - goto alloc_fail -__109: - ; - goto __108 -__107: - wcs = dest -__108: - ; - *(*mbstate_t)(unsafe.Pointer(bp + 268 /* st */)) = mbstate_t{} -__110: - if !(*(*uint8)(unsafe.Pointer(bp + uintptr(AssignInt32(&c, func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }())+1))) != 0) { - goto __111 - } - switch Xmbrtowc(tls, bp+260, func() uintptr { *(*uint8)(unsafe.Pointer(bp + 264)) = uint8(c); return bp + 264 }(), uint32(1), bp+268 /* &st */) { - case Uint32FromInt32(-1): - goto __113 - case Uint32FromInt32(-2): - goto __114 - } - goto __112 -__113: - goto input_fail -__114: - goto __110 -__112: - ; - if !(wcs != 0) { - goto __115 - } - *(*wchar_t)(unsafe.Pointer(wcs + uintptr(PostIncUint32(&i, 1))*4)) = *(*wchar_t)(unsafe.Pointer(bp + 260 /* wc */)) -__115: - ; - if !(alloc != 0 && i == k) { - goto __116 - } - k = k + (k + size_t(1)) - tmp = Xrealloc(tls, wcs, k*size_t(unsafe.Sizeof(wchar_t(0)))) - if !!(tmp != 0) { - goto __117 - } - goto alloc_fail -__117: - ; - wcs = tmp -__116: - ; - goto __110 -__111: - ; - if !!(Xmbsinit(tls, bp+268) != 0) { - goto __118 - } - goto input_fail -__118: - ; - goto __106 -__105: - if !(alloc != 0) { - goto __119 - } - s = Xmalloc(tls, k) - if !!(s != 0) { - goto __121 - } - goto alloc_fail -__121: - ; -__122: - if !(*(*uint8)(unsafe.Pointer(bp + uintptr(AssignInt32(&c, func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }())+1))) != 0) { - goto __123 - } - *(*uint8)(unsafe.Pointer(s + uintptr(PostIncUint32(&i, 1)))) = uint8(c) - if !(i == k) { - goto __124 - } - k = k + (k + size_t(1)) - tmp1 = Xrealloc(tls, s, k) - if !!(tmp1 != 0) { - goto __125 - } - goto alloc_fail -__125: - ; - s = tmp1 -__124: - ; - goto __122 -__123: - ; - goto __120 -__119: - if !(AssignUintptr(&s, dest) != 0) { - goto __126 - } -__128: - if !(*(*uint8)(unsafe.Pointer(bp + uintptr(AssignInt32(&c, func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }())+1))) != 0) { - goto __129 - } - *(*uint8)(unsafe.Pointer(s + uintptr(PostIncUint32(&i, 1)))) = uint8(c) - goto __128 -__129: - ; - goto __127 -__126: -__130: - if !(*(*uint8)(unsafe.Pointer(bp + uintptr(AssignInt32(&c, func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }())+1))) != 0) { - goto __131 - } - goto __130 -__131: - ; -__127: - ; -__120: - ; -__106: - ; - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - if !!((*FILE)(unsafe.Pointer(f)).shcnt+off_t((int32((*FILE)(unsafe.Pointer(f)).rpos)-int32((*FILE)(unsafe.Pointer(f)).buf))/1) != 0) { - goto __132 - } - goto match_fail -__132: - ; - if !(t == 'c' && (*FILE)(unsafe.Pointer(f)).shcnt+off_t((int32((*FILE)(unsafe.Pointer(f)).rpos)-int32((*FILE)(unsafe.Pointer(f)).buf))/1) != off_t(width)) { - goto __133 - } - goto match_fail -__133: - ; - if !(alloc != 0) { - goto __134 - } - if !(size == 1) { - goto __135 - } - *(*uintptr)(unsafe.Pointer(dest)) = wcs - goto __136 -__135: - *(*uintptr)(unsafe.Pointer(dest)) = s -__136: - ; -__134: - ; - if !(t != 'c') { - goto __137 - } - if !(wcs != 0) { - goto __138 - } - *(*wchar_t)(unsafe.Pointer(wcs + uintptr(i)*4)) = wchar_t(0) -__138: - ; - if !(s != 0) { - goto __139 - } - *(*uint8)(unsafe.Pointer(s + uintptr(i))) = uint8(0) -__139: - ; -__137: - ; - goto __70 -__74: -__75: -__76: - base = 16 - goto int_common -__77: - base = 8 - goto int_common -__78: -__79: - base = 10 - goto int_common -__80: - base = 0 -int_common: - x = X__intscan(tls, f, uint32(base), 0, 2*uint64(0x7fffffffffffffff)+uint64(1)) - if !!((*FILE)(unsafe.Pointer(f)).shcnt+off_t((int32((*FILE)(unsafe.Pointer(f)).rpos)-int32((*FILE)(unsafe.Pointer(f)).buf))/1) != 0) { - goto __140 - } - goto match_fail -__140: - ; - if !(t == 'p' && dest != 0) { - goto __141 - } - *(*uintptr)(unsafe.Pointer(dest)) = uintptr(uintptr_t(x)) - goto __142 -__141: - store_int(tls, dest, size, x) -__142: - ; - goto __70 -__81: -__82: -__83: -__84: -__85: -__86: -__87: -__88: - y = X__floatscan(tls, f, size, 0) - if !!((*FILE)(unsafe.Pointer(f)).shcnt+off_t((int32((*FILE)(unsafe.Pointer(f)).rpos)-int32((*FILE)(unsafe.Pointer(f)).buf))/1) != 0) { - goto __143 - } - goto match_fail -__143: - ; - if !(dest != 0) { - goto __144 - } - switch size { - case 0: - goto __146 - case 1: - goto __147 - case 2: - goto __148 - } - goto __145 -__146: - *(*float32)(unsafe.Pointer(dest)) = float32(y) - goto __145 -__147: - *(*float64)(unsafe.Pointer(dest)) = y - goto __145 -__148: - *(*float64)(unsafe.Pointer(dest)) = y - goto __145 -__145: - ; -__144: - ; - goto __70 -__70: - ; - - pos = pos + ((*FILE)(unsafe.Pointer(f)).shcnt + off_t((int32((*FILE)(unsafe.Pointer(f)).rpos)-int32((*FILE)(unsafe.Pointer(f)).buf))/1)) - if !(dest != 0) { - goto __149 - } - matches++ -__149: - ; - goto __4 -__4: - p++ - goto __3 - goto __5 -__5: - ; - if !(0 != 0) { - goto __150 - } -fmt_fail: -alloc_fail: -input_fail: - if !!(matches != 0) { - goto __151 - } - matches-- -__151: - ; -match_fail: - if !(alloc != 0) { - goto __152 - } - Xfree(tls, s) - Xfree(tls, wcs) -__152: - ; -__150: - ; -__153: - if !(__need_unlock != 0) { - goto __156 - } - X__unlockfile(tls, f) -__156: - ; - goto __154 -__154: - if 0 != 0 { - goto __153 - } - goto __155 -__155: - ; - return matches -} - -func string_read(tls *TLS, f uintptr, buf uintptr, len size_t) size_t { /* vsscanf.c:4:15: */ - var src uintptr = (*FILE)(unsafe.Pointer(f)).cookie - var k size_t = len + size_t(256) - var end uintptr = Xmemchr(tls, src, 0, k) - if end != 0 { - k = size_t((int32(end) - int32(src)) / 1) - } - if k < len { - len = k - } - Xmemcpy(tls, buf, src, len) - (*FILE)(unsafe.Pointer(f)).rpos = src + uintptr(len) - (*FILE)(unsafe.Pointer(f)).rend = src + uintptr(k) - (*FILE)(unsafe.Pointer(f)).cookie = src + uintptr(k) - return len -} - -func Xvsscanf(tls *TLS, s uintptr, fmt uintptr, ap va_list) int32 { /* vsscanf.c:18:5: */ - bp := tls.Alloc(144) - defer tls.Free(144) - - *(*FILE)(unsafe.Pointer(bp /* f */)) = FILE{read: *(*uintptr)(unsafe.Pointer(&struct { - f func(*TLS, uintptr, uintptr, size_t) size_t - }{string_read})), buf: s, lock: -1, cookie: s} - return Xvfscanf(tls, bp, fmt, ap) -} - -func Xbsearch(tls *TLS, key uintptr, base uintptr, nel size_t, width size_t, cmp uintptr) uintptr { /* bsearch.c:3:6: */ - var try uintptr - var sign int32 - for nel > size_t(0) { - try = base + uintptr(width*(nel/size_t(2))) - sign = (*struct { - f func(*TLS, uintptr, uintptr) int32 - })(unsafe.Pointer(&struct{ uintptr }{cmp})).f(tls, key, try) - if sign < 0 { - nel = nel / size_t(2) - } else if sign > 0 { - base = try + uintptr(width) - nel = nel - (nel/size_t(2) + size_t(1)) - } else { - return try - } - } - return uintptr(0) -} - -func strtox(tls *TLS, s uintptr, p uintptr, prec int32) float64 { /* strtod.c:6:20: */ - bp := tls.Alloc(144) - defer tls.Free(144) - - // var f FILE at bp, 144 - - (*FILE)(unsafe.Pointer(bp)).buf = AssignPtrUintptr(bp+4, s) - (*FILE)(unsafe.Pointer(bp)).rend = UintptrFromInt32(-1) - X__shlim(tls, bp, int64(0)) - var y float64 = X__floatscan(tls, bp, prec, 1) - var cnt off_t = (*FILE)(unsafe.Pointer(bp)).shcnt + off_t((int32((*FILE)(unsafe.Pointer(bp)).rpos)-int32((*FILE)(unsafe.Pointer(bp)).buf))/1) - if p != 0 { - *(*uintptr)(unsafe.Pointer(p)) = func() uintptr { - if cnt != 0 { - return s + uintptr(cnt) - } - return s - }() - } - return y -} - -func Xstrtof(tls *TLS, s uintptr, p uintptr) float32 { /* strtod.c:17:7: */ - return float32(strtox(tls, s, p, 0)) -} - -func Xstrtod(tls *TLS, s uintptr, p uintptr) float64 { /* strtod.c:22:8: */ - return strtox(tls, s, p, 1) -} - -func Xstrtold(tls *TLS, s uintptr, p uintptr) float64 { /* strtod.c:27:13: */ - return strtox(tls, s, p, 2) -} - -func strtox1(tls *TLS, s uintptr, p uintptr, base int32, lim uint64) uint64 { /* strtol.c:8:27: */ - bp := tls.Alloc(144) - defer tls.Free(144) - - // var f FILE at bp, 144 - - (*FILE)(unsafe.Pointer(bp)).buf = AssignPtrUintptr(bp+4, s) - (*FILE)(unsafe.Pointer(bp)).rend = UintptrFromInt32(-1) - X__shlim(tls, bp, int64(0)) - var y uint64 = X__intscan(tls, bp, uint32(base), 1, lim) - if p != 0 { - var cnt size_t = size_t((*FILE)(unsafe.Pointer(bp)).shcnt + off_t((int32((*FILE)(unsafe.Pointer(bp)).rpos)-int32((*FILE)(unsafe.Pointer(bp)).buf))/1)) - *(*uintptr)(unsafe.Pointer(p)) = s + uintptr(cnt) - } - return y -} - -func Xstrtoull(tls *TLS, s uintptr, p uintptr, base int32) uint64 { /* strtol.c:21:20: */ - return strtox1(tls, s, p, base, 2*uint64(0x7fffffffffffffff)+uint64(1)) -} - -func Xstrtoll(tls *TLS, s uintptr, p uintptr, base int32) int64 { /* strtol.c:26:11: */ - return int64(strtox1(tls, s, p, base, Uint64FromInt64(-0x7fffffffffffffff-int64(1)))) -} - -func Xstrtoul(tls *TLS, s uintptr, p uintptr, base int32) uint32 { /* strtol.c:31:15: */ - return uint32(strtox1(tls, s, p, base, uint64(2*uint32(0x7fffffff)+uint32(1)))) -} - -func Xstrtol(tls *TLS, s uintptr, p uintptr, base int32) int32 { /* strtol.c:36:6: */ - return int32(strtox1(tls, s, p, base, uint64(0+Uint32FromInt32(Int32(-Int32(0x7fffffff))-Int32FromInt32(1))))) -} - -func Xstrtoimax(tls *TLS, s uintptr, p uintptr, base int32) intmax_t { /* strtol.c:41:10: */ - return Xstrtoll(tls, s, p, base) -} - -func Xstrtoumax(tls *TLS, s uintptr, p uintptr, base int32) uintmax_t { /* strtol.c:46:11: */ - return Xstrtoull(tls, s, p, base) -} - -func Xstrdup(tls *TLS, s uintptr) uintptr { /* strdup.c:4:6: */ - var l size_t = Xstrlen(tls, s) - var d uintptr = Xmalloc(tls, l+size_t(1)) - if !(d != 0) { - return uintptr(0) - } - return Xmemcpy(tls, d, s, l+size_t(1)) -} - -func Xstrlcat(tls *TLS, d uintptr, s uintptr, n size_t) size_t { /* strlcat.c:4:8: */ - var l size_t = Xstrnlen(tls, d, n) - if l == n { - return l + Xstrlen(tls, s) - } - return l + Xstrlcpy(tls, d+uintptr(l), s, n-l) -} - -// Support signed or unsigned plain-char - -// Implementation choices... - -// Arbitrary numbers... - -// POSIX/SUS requirements follow. These numbers come directly -// from SUS and have nothing to do with the host system. - -func Xstrlcpy(tls *TLS, d uintptr, s uintptr, n size_t) size_t { /* strlcpy.c:11:8: */ - var d0 uintptr - var wd uintptr - var ws uintptr - d0 = d - - if !!(int32(PostDecUint32(&n, 1)) != 0) { - goto __1 - } - goto finish -__1: - ; - if !(uintptr_t(s)&(uint32(unsafe.Sizeof(size_t(0)))-uint32(1)) == uintptr_t(d)&(uint32(unsafe.Sizeof(size_t(0)))-uint32(1))) { - goto __2 - } -__3: - if !(uintptr_t(s)&(uint32(unsafe.Sizeof(size_t(0)))-uint32(1)) != 0 && n != 0 && AssignPtrUint8(d, *(*uint8)(unsafe.Pointer(s))) != 0) { - goto __5 - } - goto __4 -__4: - n-- - s++ - d++ - goto __3 - goto __5 -__5: - ; - if !(n != 0 && *(*uint8)(unsafe.Pointer(s)) != 0) { - goto __6 - } - wd = d - ws = s -__7: - if !(n >= size_t(unsafe.Sizeof(size_t(0))) && !((*(*uint32)(unsafe.Pointer(ws))-Uint32(Uint32FromInt32(-1))/size_t(255)) & ^*(*uint32)(unsafe.Pointer(ws)) & (Uint32(Uint32FromInt32(-1))/size_t(255)*size_t(255/2+1)) != 0)) { - goto __9 - } - *(*size_t)(unsafe.Pointer(wd)) = *(*uint32)(unsafe.Pointer(ws)) - goto __8 -__8: - n = n - size_t(unsafe.Sizeof(size_t(0))) - ws += 4 - wd += 4 - goto __7 - goto __9 -__9: - ; - d = wd - s = ws -__6: - ; -__2: - ; -__10: - if !(n != 0 && AssignPtrUint8(d, *(*uint8)(unsafe.Pointer(s))) != 0) { - goto __12 - } - goto __11 -__11: - n-- - s++ - d++ - goto __10 - goto __12 -__12: - ; - *(*uint8)(unsafe.Pointer(d)) = uint8(0) -finish: - return size_t((int32(d)-int32(d0))/1) + Xstrlen(tls, s) -} - -func Xstrncasecmp(tls *TLS, _l uintptr, _r uintptr, n size_t) int32 { /* strncasecmp.c:4:5: */ - var l uintptr = _l - var r uintptr = _r - if !(int32(PostDecUint32(&n, 1)) != 0) { - return 0 - } -__1: - if !(*(*uint8)(unsafe.Pointer(l)) != 0 && *(*uint8)(unsafe.Pointer(r)) != 0 && n != 0 && (int32(*(*uint8)(unsafe.Pointer(l))) == int32(*(*uint8)(unsafe.Pointer(r))) || Xtolower(tls, int32(*(*uint8)(unsafe.Pointer(l)))) == Xtolower(tls, int32(*(*uint8)(unsafe.Pointer(r)))))) { - goto __3 - } - goto __2 -__2: - l++ - r++ - n-- - goto __1 - goto __3 -__3: - ; - return Xtolower(tls, int32(*(*uint8)(unsafe.Pointer(l)))) - Xtolower(tls, int32(*(*uint8)(unsafe.Pointer(r)))) -} - -func X__strncasecmp_l(tls *TLS, l uintptr, r uintptr, n size_t, loc locale_t) int32 { /* strncasecmp.c:12:5: */ - return Xstrncasecmp(tls, l, r, n) -} - -func Xstrncat(tls *TLS, d uintptr, s uintptr, n size_t) uintptr { /* strncat.c:3:6: */ - var a uintptr = d - d += uintptr(Xstrlen(tls, d)) - for n != 0 && *(*uint8)(unsafe.Pointer(s)) != 0 { - n-- - *(*uint8)(unsafe.Pointer(PostIncUintptr(&d, 1))) = *(*uint8)(unsafe.Pointer(PostIncUintptr(&s, 1))) - } - *(*uint8)(unsafe.Pointer(PostIncUintptr(&d, 1))) = uint8(0) - return a -} - -func Xstrnlen(tls *TLS, s uintptr, n size_t) size_t { /* strnlen.c:3:8: */ - var p uintptr = Xmemchr(tls, s, 0, n) - if p != 0 { - return uint32((int32(p) - int32(s)) / 1) - } - return n -} - -func Xstrspn(tls *TLS, s uintptr, c uintptr) size_t { /* strspn.c:6:8: */ - bp := tls.Alloc(32) - defer tls.Free(32) - - var a uintptr = s - *(*[8]size_t)(unsafe.Pointer(bp /* byteset */)) = [8]size_t{0: size_t(0)} - - if !(int32(*(*uint8)(unsafe.Pointer(c))) != 0) { - return size_t(0) - } - if !(int32(*(*uint8)(unsafe.Pointer(c + 1))) != 0) { - for ; int32(*(*uint8)(unsafe.Pointer(s))) == int32(*(*uint8)(unsafe.Pointer(c))); s++ { - } - return size_t((int32(s) - int32(a)) / 1) - } - - for ; *(*uint8)(unsafe.Pointer(c)) != 0 && AssignOrPtrUint32(bp+uintptr(size_t(*(*uint8)(unsafe.Pointer(c)))/(uint32(8)*uint32(unsafe.Sizeof(size_t(0)))))*4, size_t(size_t(1))<<(size_t(*(*uint8)(unsafe.Pointer(c)))%(uint32(8)*uint32(unsafe.Sizeof(size_t(0)))))) != 0; c++ { - } - for ; *(*uint8)(unsafe.Pointer(s)) != 0 && *(*size_t)(unsafe.Pointer(bp + uintptr(size_t(*(*uint8)(unsafe.Pointer(s)))/(uint32(8)*uint32(unsafe.Sizeof(size_t(0)))))*4))&(size_t(size_t(1))<<(size_t(*(*uint8)(unsafe.Pointer(s)))%(uint32(8)*uint32(unsafe.Sizeof(size_t(0)))))) != 0; s++ { - } - return size_t((int32(s) - int32(a)) / 1) -} - -func Xstrtok(tls *TLS, s uintptr, sep uintptr) uintptr { /* strtok.c:3:6: */ - if !(s != 0) && !(int32(AssignUintptr(&s, _sp)) != 0) { - return uintptr(0) - } - s += uintptr(Xstrspn(tls, s, sep)) - if !(int32(*(*uint8)(unsafe.Pointer(s))) != 0) { - return AssignPtrUintptr(uintptr(unsafe.Pointer(&_sp)), uintptr(0)) - } - _sp = s + uintptr(Xstrcspn(tls, s, sep)) - if *(*uint8)(unsafe.Pointer(_sp)) != 0 { - *(*uint8)(unsafe.Pointer(PostIncUintptr(&_sp, 1))) = uint8(0) - } else { - _sp = uintptr(0) - } - return s -} - -var _sp uintptr /* strtok.c:5:14: */ - -func X__ccgo_pthreadAttrGetDetachState(tls *TLS, a uintptr) int32 { /* pthread_attr_get.c:3:5: */ - return *(*int32)(unsafe.Pointer(a + 3*4)) -} - -func Xpthread_attr_getdetachstate(tls *TLS, a uintptr, state uintptr) int32 { /* pthread_attr_get.c:7:5: */ - *(*int32)(unsafe.Pointer(state)) = *(*int32)(unsafe.Pointer(a + 3*4)) - return 0 -} - -// -// int pthread_attr_getguardsize(const pthread_attr_t *restrict a, size_t *restrict size) -// { -// *size = a->_a_guardsize; -// return 0; -// } -// -// int pthread_attr_getinheritsched(const pthread_attr_t *restrict a, int *restrict inherit) -// { -// *inherit = a->_a_sched; -// return 0; -// } -// -// int pthread_attr_getschedparam(const pthread_attr_t *restrict a, struct sched_param *restrict param) -// { -// param->sched_priority = a->_a_prio; -// return 0; -// } -// -// int pthread_attr_getschedpolicy(const pthread_attr_t *restrict a, int *restrict policy) -// { -// *policy = a->_a_policy; -// return 0; -// } -// -// int pthread_attr_getscope(const pthread_attr_t *restrict a, int *restrict scope) -// { -// *scope = PTHREAD_SCOPE_SYSTEM; -// return 0; -// } -// -// int pthread_attr_getstack(const pthread_attr_t *restrict a, void **restrict addr, size_t *restrict size) -// { -// if (!a->_a_stackaddr) -// return EINVAL; -// *size = a->_a_stacksize; -// *addr = (void *)(a->_a_stackaddr - *size); -// return 0; -// } -// -// int pthread_attr_getstacksize(const pthread_attr_t *restrict a, size_t *restrict size) -// { -// *size = a->_a_stacksize; -// return 0; -// } -// -// int pthread_barrierattr_getpshared(const pthread_barrierattr_t *restrict a, int *restrict pshared) -// { -// *pshared = !!a->__attr; -// return 0; -// } -// -// int pthread_condattr_getclock(const pthread_condattr_t *restrict a, clockid_t *restrict clk) -// { -// *clk = a->__attr & 0x7fffffff; -// return 0; -// } -// -// int pthread_condattr_getpshared(const pthread_condattr_t *restrict a, int *restrict pshared) -// { -// *pshared = a->__attr>>31; -// return 0; -// } -// -// int pthread_mutexattr_getprotocol(const pthread_mutexattr_t *restrict a, int *restrict protocol) -// { -// *protocol = PTHREAD_PRIO_NONE; -// return 0; -// } -// int pthread_mutexattr_getpshared(const pthread_mutexattr_t *restrict a, int *restrict pshared) -// { -// *pshared = a->__attr / 128U % 2; -// return 0; -// } -// -// int pthread_mutexattr_getrobust(const pthread_mutexattr_t *restrict a, int *restrict robust) -// { -// *robust = a->__attr / 4U % 2; -// return 0; -// } - -func X__ccgo_pthreadMutexattrGettype(tls *TLS, a uintptr) int32 { /* pthread_attr_get.c:93:5: */ - return int32((*pthread_mutexattr_t)(unsafe.Pointer(a)).__attr & uint32(3)) -} - -// int pthread_mutexattr_gettype(const pthread_mutexattr_t *restrict a, int *restrict type) -// { -// *type = a->__attr & 3; -// return 0; -// } -// -// int pthread_rwlockattr_getpshared(const pthread_rwlockattr_t *restrict a, int *restrict pshared) -// { -// *pshared = a->__attr[0]; -// return 0; -// } - -func Xpthread_attr_setdetachstate(tls *TLS, a uintptr, state int32) int32 { /* pthread_attr_setdetachstate.c:3:5: */ - if uint32(state) > 1 { - return 22 - } - *(*int32)(unsafe.Pointer(a + 3*4)) = state - return 0 -} - -func X__ccgo_getMutexType(tls *TLS, m uintptr) int32 { /* pthread_mutex_lock.c:3:5: */ - return *(*int32)(unsafe.Pointer(m)) & 15 -} - -// int __pthread_mutex_lock(pthread_mutex_t *m) -// { -// if ((m->_m_type&15) == PTHREAD_MUTEX_NORMAL -// && !a_cas(&m->_m_lock, 0, EBUSY)) -// return 0; -// -// return __pthread_mutex_timedlock(m, 0); -// } -// -// weak_alias(__pthread_mutex_lock, pthread_mutex_lock); - -func Xpthread_mutexattr_destroy(tls *TLS, a uintptr) int32 { /* pthread_mutexattr_destroy.c:3:5: */ - return 0 -} - -func Xpthread_mutexattr_init(tls *TLS, a uintptr) int32 { /* pthread_mutexattr_init.c:3:5: */ - *(*pthread_mutexattr_t)(unsafe.Pointer(a)) = pthread_mutexattr_t{} - return 0 -} - -func Xpthread_mutexattr_settype(tls *TLS, a uintptr, type1 int32) int32 { /* pthread_mutexattr_settype.c:3:5: */ - if uint32(type1) > uint32(2) { - return 22 - } - (*pthread_mutexattr_t)(unsafe.Pointer(a)).__attr = (*pthread_mutexattr_t)(unsafe.Pointer(a)).__attr&Uint32FromInt32(CplInt32(3)) | uint32(type1) - return 0 -} - -func init() { - *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&ptable)) + 0)) = uintptr(unsafe.Pointer(&table)) + uintptr(128)*2 // __ctype_b_loc.c:36:45: -} - -var ts1 = "infinity\x00nan\x00\x00\x00\x01\x02\x04\a\x03\x06\x05\x00.\x00%d.%d.%d.%d.in-addr.arpa\x00ip6.arpa\x000123456789abcdef\x00/etc/hosts\x00rb\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\xff\x00%d.%d.%d.%d\x00%x:%x:%x:%x:%x:%x:%x:%x\x00%x:%x:%x:%x:%x:%x:%d.%d.%d.%d\x00:0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\xff\x00\x00\x00\x00 \x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00 \x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xfc\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" -var ts = (*reflect.StringHeader)(unsafe.Pointer(&ts1)).Data diff --git a/vendor/modernc.org/libc/musl_linux_arm64.go b/vendor/modernc.org/libc/musl_linux_arm64.go deleted file mode 100644 index 0e3b64c11..000000000 --- a/vendor/modernc.org/libc/musl_linux_arm64.go +++ /dev/null @@ -1,7028 +0,0 @@ -// Code generated by 'ccgo -export-externs X -hide __syscall0,__syscall1,__syscall2,__syscall3,__syscall4,__syscall5,__syscall6 -nostdinc -nostdlib -o ../musl_linux_arm64.go -pkgname libc -static-locals-prefix _s -Iarch/aarch64 -Iarch/generic -Iobj/src/internal -Isrc/include -Isrc/internal -Iobj/include -Iinclude copyright.c src/ctype/__ctype_b_loc.c src/ctype/isalnum.c src/ctype/isalpha.c src/ctype/isdigit.c src/ctype/islower.c src/ctype/isprint.c src/ctype/isupper.c src/ctype/isxdigit.c src/dirent/closedir.c src/dirent/opendir.c src/dirent/readdir.c src/internal/floatscan.c src/internal/intscan.c src/internal/shgetc.c src/locale/localeconv.c src/math/__fpclassify.c src/math/__fpclassifyf.c src/math/__fpclassifyl.c src/math/copysignl.c src/math/fabsl.c src/math/fmodl.c src/math/nanf.c src/math/rint.c src/math/scalbn.c src/math/scalbnl.c src/multibyte/internal.c src/multibyte/mbrtowc.c src/multibyte/mbsinit.c src/network/freeaddrinfo.c src/network/getaddrinfo.c src/network/gethostbyaddr.c src/network/gethostbyaddr_r.c src/network/gethostbyname.c src/network/gethostbyname2.c src/network/gethostbyname2_r.c src/network/gethostbyname_r.c src/network/getnameinfo.c src/network/h_errno.c src/network/inet_aton.c src/network/inet_ntop.c src/network/inet_pton.c src/network/lookup_ipliteral.c src/network/lookup_name.c src/network/lookup_serv.c src/prng/rand_r.c src/stdio/__lockfile.c src/stdio/__toread.c src/stdio/__uflow.c src/stdio/sscanf.c src/stdio/vfscanf.c src/stdio/vsscanf.c src/stdlib/bsearch.c src/stdlib/strtod.c src/stdlib/strtol.c src/string/strdup.c src/string/strlcat.c src/string/strlcpy.c src/string/strncasecmp.c src/string/strncat.c src/string/strnlen.c src/string/strspn.c src/string/strtok.c src/thread/pthread_attr_get.c src/thread/pthread_attr_setdetachstate.c src/thread/pthread_mutex_lock.c src/thread/pthread_mutexattr_destroy.c src/thread/pthread_mutexattr_init.c src/thread/pthread_mutexattr_settype.c', DO NOT EDIT. - -package libc - -import ( - "math" - "reflect" - "sync/atomic" - "unsafe" -) - -var _ = math.Pi -var _ reflect.Kind -var _ atomic.Value -var _ unsafe.Pointer - -// musl as a whole is licensed under the following standard MIT license: -// -// ---------------------------------------------------------------------- -// Copyright © 2005-2020 Rich Felker, et al. -// -// Permission is hereby granted, free of charge, to any person obtaining -// a copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to -// permit persons to whom the Software is furnished to do so, subject to -// the following conditions: -// -// The above copyright notice and this permission notice shall be -// included in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -// SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -// ---------------------------------------------------------------------- -// -// Authors/contributors include: -// -// A. Wilcox -// Ada Worcester -// Alex Dowad -// Alex Suykov -// Alexander Monakov -// Andre McCurdy -// Andrew Kelley -// Anthony G. Basile -// Aric Belsito -// Arvid Picciani -// Bartosz Brachaczek -// Benjamin Peterson -// Bobby Bingham -// Boris Brezillon -// Brent Cook -// Chris Spiegel -// Clément Vasseur -// Daniel Micay -// Daniel Sabogal -// Daurnimator -// David Carlier -// David Edelsohn -// Denys Vlasenko -// Dmitry Ivanov -// Dmitry V. Levin -// Drew DeVault -// Emil Renner Berthing -// Fangrui Song -// Felix Fietkau -// Felix Janda -// Gianluca Anzolin -// Hauke Mehrtens -// He X -// Hiltjo Posthuma -// Isaac Dunham -// Jaydeep Patil -// Jens Gustedt -// Jeremy Huntwork -// Jo-Philipp Wich -// Joakim Sindholt -// John Spencer -// Julien Ramseier -// Justin Cormack -// Kaarle Ritvanen -// Khem Raj -// Kylie McClain -// Leah Neukirchen -// Luca Barbato -// Luka Perkov -// M Farkas-Dyck (Strake) -// Mahesh Bodapati -// Markus Wichmann -// Masanori Ogino -// Michael Clark -// Michael Forney -// Mikhail Kremnyov -// Natanael Copa -// Nicholas J. Kain -// orc -// Pascal Cuoq -// Patrick Oppenlander -// Petr Hosek -// Petr Skocik -// Pierre Carrier -// Reini Urban -// Rich Felker -// Richard Pennington -// Ryan Fairfax -// Samuel Holland -// Segev Finer -// Shiz -// sin -// Solar Designer -// Stefan Kristiansson -// Stefan O'Rear -// Szabolcs Nagy -// Timo Teräs -// Trutz Behn -// Valentin Ochs -// Will Dietz -// William Haddon -// William Pitcock -// -// Portions of this software are derived from third-party works licensed -// under terms compatible with the above MIT license: -// -// The TRE regular expression implementation (src/regex/reg* and -// src/regex/tre*) is Copyright © 2001-2008 Ville Laurikari and licensed -// under a 2-clause BSD license (license text in the source files). The -// included version has been heavily modified by Rich Felker in 2012, in -// the interests of size, simplicity, and namespace cleanliness. -// -// Much of the math library code (src/math/* and src/complex/*) is -// Copyright © 1993,2004 Sun Microsystems or -// Copyright © 2003-2011 David Schultz or -// Copyright © 2003-2009 Steven G. Kargl or -// Copyright © 2003-2009 Bruce D. Evans or -// Copyright © 2008 Stephen L. Moshier or -// Copyright © 2017-2018 Arm Limited -// and labelled as such in comments in the individual source files. All -// have been licensed under extremely permissive terms. -// -// The ARM memcpy code (src/string/arm/memcpy.S) is Copyright © 2008 -// The Android Open Source Project and is licensed under a two-clause BSD -// license. It was taken from Bionic libc, used on Android. -// -// The AArch64 memcpy and memset code (src/string/aarch64/*) are -// Copyright © 1999-2019, Arm Limited. -// -// The implementation of DES for crypt (src/crypt/crypt_des.c) is -// Copyright © 1994 David Burren. It is licensed under a BSD license. -// -// The implementation of blowfish crypt (src/crypt/crypt_blowfish.c) was -// originally written by Solar Designer and placed into the public -// domain. The code also comes with a fallback permissive license for use -// in jurisdictions that may not recognize the public domain. -// -// The smoothsort implementation (src/stdlib/qsort.c) is Copyright © 2011 -// Valentin Ochs and is licensed under an MIT-style license. -// -// The x86_64 port was written by Nicholas J. Kain and is licensed under -// the standard MIT terms. -// -// The mips and microblaze ports were originally written by Richard -// Pennington for use in the ellcc project. The original code was adapted -// by Rich Felker for build system and code conventions during upstream -// integration. It is licensed under the standard MIT terms. -// -// The mips64 port was contributed by Imagination Technologies and is -// licensed under the standard MIT terms. -// -// The powerpc port was also originally written by Richard Pennington, -// and later supplemented and integrated by John Spencer. It is licensed -// under the standard MIT terms. -// -// All other files which have no copyright comments are original works -// produced specifically for use as part of this library, written either -// by Rich Felker, the main author of the library, or by one or more -// contibutors listed above. Details on authorship of individual files -// can be found in the git version control history of the project. The -// omission of copyright and license comments in each file is in the -// interest of source tree size. -// -// In addition, permission is hereby granted for all public header files -// (include/* and arch/*/bits/*) and crt files intended to be linked into -// applications (crt/*, ldso/dlstart.c, and arch/*/crt_arch.h) to omit -// the copyright notice and permission notice otherwise required by the -// license, and to use these files without any requirement of -// attribution. These files include substantial contributions from: -// -// Bobby Bingham -// John Spencer -// Nicholas J. Kain -// Rich Felker -// Richard Pennington -// Stefan Kristiansson -// Szabolcs Nagy -// -// all of whom have explicitly granted such permission. -// -// This file previously contained text expressing a belief that most of -// the files covered by the above exception were sufficiently trivial not -// to be subject to copyright, resulting in confusion over whether it -// negated the permissions granted in the license. In the spirit of -// permissive licensing, and of not having licensing issues being an -// obstacle to adoption, that text has been removed. -const ( /* copyright.c:194:1: */ - __musl__copyright__ = 0 -) - -const ( /* nameser.h:117:1: */ - ns_uop_delete = 0 - ns_uop_add = 1 - ns_uop_max = 2 -) - -const ( /* nameser.h:147:1: */ - ns_t_invalid = 0 - ns_t_a = 1 - ns_t_ns = 2 - ns_t_md = 3 - ns_t_mf = 4 - ns_t_cname = 5 - ns_t_soa = 6 - ns_t_mb = 7 - ns_t_mg = 8 - ns_t_mr = 9 - ns_t_null = 10 - ns_t_wks = 11 - ns_t_ptr = 12 - ns_t_hinfo = 13 - ns_t_minfo = 14 - ns_t_mx = 15 - ns_t_txt = 16 - ns_t_rp = 17 - ns_t_afsdb = 18 - ns_t_x25 = 19 - ns_t_isdn = 20 - ns_t_rt = 21 - ns_t_nsap = 22 - ns_t_nsap_ptr = 23 - ns_t_sig = 24 - ns_t_key = 25 - ns_t_px = 26 - ns_t_gpos = 27 - ns_t_aaaa = 28 - ns_t_loc = 29 - ns_t_nxt = 30 - ns_t_eid = 31 - ns_t_nimloc = 32 - ns_t_srv = 33 - ns_t_atma = 34 - ns_t_naptr = 35 - ns_t_kx = 36 - ns_t_cert = 37 - ns_t_a6 = 38 - ns_t_dname = 39 - ns_t_sink = 40 - ns_t_opt = 41 - ns_t_apl = 42 - ns_t_tkey = 249 - ns_t_tsig = 250 - ns_t_ixfr = 251 - ns_t_axfr = 252 - ns_t_mailb = 253 - ns_t_maila = 254 - ns_t_any = 255 - ns_t_zxfr = 256 - ns_t_max = 65536 -) - -const ( /* nameser.h:210:1: */ - ns_c_invalid = 0 - ns_c_in = 1 - ns_c_2 = 2 - ns_c_chaos = 3 - ns_c_hs = 4 - ns_c_none = 254 - ns_c_any = 255 - ns_c_max = 65536 -) - -const ( /* nameser.h:221:1: */ - ns_kt_rsa = 1 - ns_kt_dh = 2 - ns_kt_dsa = 3 - ns_kt_private = 254 -) - -const ( /* nameser.h:228:1: */ - cert_t_pkix = 1 - cert_t_spki = 2 - cert_t_pgp = 3 - cert_t_url = 253 - cert_t_oid = 254 -) - -const ( /* nameser.h:28:1: */ - ns_s_qd = 0 - ns_s_zn = 0 - ns_s_an = 1 - ns_s_pr = 1 - ns_s_ns = 2 - ns_s_ud = 2 - ns_s_ar = 3 - ns_s_max = 4 -) - -const ( /* nameser.h:75:1: */ - ns_f_qr = 0 - ns_f_opcode = 1 - ns_f_aa = 2 - ns_f_tc = 3 - ns_f_rd = 4 - ns_f_ra = 5 - ns_f_z = 6 - ns_f_ad = 7 - ns_f_cd = 8 - ns_f_rcode = 9 - ns_f_max = 10 -) - -const ( /* nameser.h:89:1: */ - ns_o_query = 0 - ns_o_iquery = 1 - ns_o_status = 2 - ns_o_notify = 4 - ns_o_update = 5 - ns_o_max = 6 -) - -const ( /* nameser.h:98:1: */ - ns_r_noerror = 0 - ns_r_formerr = 1 - ns_r_servfail = 2 - ns_r_nxdomain = 3 - ns_r_notimpl = 4 - ns_r_refused = 5 - ns_r_yxdomain = 6 - ns_r_yxrrset = 7 - ns_r_nxrrset = 8 - ns_r_notauth = 9 - ns_r_notzone = 10 - ns_r_max = 11 - ns_r_badvers = 16 - ns_r_badsig = 16 - ns_r_badkey = 17 - ns_r_badtime = 18 -) - -const ( /* pthread_impl.h:58:1: */ - DT_EXITING = 0 - DT_JOINABLE = 1 - DT_DETACHED = 2 -) - -type ptrdiff_t = int64 /* :3:26 */ - -type size_t = uint64 /* :9:23 */ - -type wchar_t = uint32 /* :15:24 */ - -type uint16_t = uint16 /* alltypes.h:134:25 */ - -type uint32_t = uint32 /* alltypes.h:139:25 */ - -type uint64_t = uint64 /* alltypes.h:144:25 */ - -func __bswap32(tls *TLS, __x uint32_t) uint32_t { /* endian.h:24:26: */ - return __x>>24 | __x>>8&uint32_t(0xff00) | __x<<8&uint32_t(0xff0000) | __x<<24 -} - -var table = [384]uint16{ - uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), - uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), - uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), - uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), - uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), - uint16((0x200/256 | 0x200*256) % 65536), uint16((0x320/256 | 0x320*256) % 65536), uint16((0x220/256 | 0x220*256) % 65536), uint16((0x220/256 | 0x220*256) % 65536), uint16((0x220/256 | 0x220*256) % 65536), uint16((0x220/256 | 0x220*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), - uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), - uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), - uint16((0x160/256 | 0x160*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), - uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), - uint16((0x8d8/256 | 0x8d8*256) % 65536), uint16((0x8d8/256 | 0x8d8*256) % 65536), uint16((0x8d8/256 | 0x8d8*256) % 65536), uint16((0x8d8/256 | 0x8d8*256) % 65536), uint16((0x8d8/256 | 0x8d8*256) % 65536), uint16((0x8d8/256 | 0x8d8*256) % 65536), uint16((0x8d8/256 | 0x8d8*256) % 65536), uint16((0x8d8/256 | 0x8d8*256) % 65536), - uint16((0x8d8/256 | 0x8d8*256) % 65536), uint16((0x8d8/256 | 0x8d8*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), - uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x8d5/256 | 0x8d5*256) % 65536), uint16((0x8d5/256 | 0x8d5*256) % 65536), uint16((0x8d5/256 | 0x8d5*256) % 65536), uint16((0x8d5/256 | 0x8d5*256) % 65536), uint16((0x8d5/256 | 0x8d5*256) % 65536), uint16((0x8d5/256 | 0x8d5*256) % 65536), uint16((0x8c5/256 | 0x8c5*256) % 65536), - uint16((0x8c5/256 | 0x8c5*256) % 65536), uint16((0x8c5/256 | 0x8c5*256) % 65536), uint16((0x8c5/256 | 0x8c5*256) % 65536), uint16((0x8c5/256 | 0x8c5*256) % 65536), uint16((0x8c5/256 | 0x8c5*256) % 65536), uint16((0x8c5/256 | 0x8c5*256) % 65536), uint16((0x8c5/256 | 0x8c5*256) % 65536), uint16((0x8c5/256 | 0x8c5*256) % 65536), - uint16((0x8c5/256 | 0x8c5*256) % 65536), uint16((0x8c5/256 | 0x8c5*256) % 65536), uint16((0x8c5/256 | 0x8c5*256) % 65536), uint16((0x8c5/256 | 0x8c5*256) % 65536), uint16((0x8c5/256 | 0x8c5*256) % 65536), uint16((0x8c5/256 | 0x8c5*256) % 65536), uint16((0x8c5/256 | 0x8c5*256) % 65536), uint16((0x8c5/256 | 0x8c5*256) % 65536), - uint16((0x8c5/256 | 0x8c5*256) % 65536), uint16((0x8c5/256 | 0x8c5*256) % 65536), uint16((0x8c5/256 | 0x8c5*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), - uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x8d6/256 | 0x8d6*256) % 65536), uint16((0x8d6/256 | 0x8d6*256) % 65536), uint16((0x8d6/256 | 0x8d6*256) % 65536), uint16((0x8d6/256 | 0x8d6*256) % 65536), uint16((0x8d6/256 | 0x8d6*256) % 65536), uint16((0x8d6/256 | 0x8d6*256) % 65536), uint16((0x8c6/256 | 0x8c6*256) % 65536), - uint16((0x8c6/256 | 0x8c6*256) % 65536), uint16((0x8c6/256 | 0x8c6*256) % 65536), uint16((0x8c6/256 | 0x8c6*256) % 65536), uint16((0x8c6/256 | 0x8c6*256) % 65536), uint16((0x8c6/256 | 0x8c6*256) % 65536), uint16((0x8c6/256 | 0x8c6*256) % 65536), uint16((0x8c6/256 | 0x8c6*256) % 65536), uint16((0x8c6/256 | 0x8c6*256) % 65536), - uint16((0x8c6/256 | 0x8c6*256) % 65536), uint16((0x8c6/256 | 0x8c6*256) % 65536), uint16((0x8c6/256 | 0x8c6*256) % 65536), uint16((0x8c6/256 | 0x8c6*256) % 65536), uint16((0x8c6/256 | 0x8c6*256) % 65536), uint16((0x8c6/256 | 0x8c6*256) % 65536), uint16((0x8c6/256 | 0x8c6*256) % 65536), uint16((0x8c6/256 | 0x8c6*256) % 65536), - uint16((0x8c6/256 | 0x8c6*256) % 65536), uint16((0x8c6/256 | 0x8c6*256) % 65536), uint16((0x8c6/256 | 0x8c6*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), - uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), - uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), - uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), - uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), -} /* __ctype_b_loc.c:9:29 */ - -var ptable uintptr = 0 /* __ctype_b_loc.c:36:29 */ - -func X__ctype_b_loc(tls *TLS) uintptr { /* __ctype_b_loc.c:38:22: */ - return uintptr(unsafe.Pointer(&ptable)) -} - -func __isspace(tls *TLS, _c int32) int32 { /* ctype.h:26:21: */ - return Bool32(_c == ' ' || uint32(_c)-uint32('\t') < uint32(5)) -} - -type __locale_struct = struct{ cat [6]uintptr } /* alltypes.h:351:9 */ - -type locale_t = uintptr /* alltypes.h:351:32 */ - -func Xisalnum(tls *TLS, c int32) int32 { /* isalnum.c:3:5: */ - return Bool32(func() int32 { - if 0 != 0 { - return Xisalpha(tls, c) - } - return Bool32(uint32(c)|uint32(32)-uint32('a') < uint32(26)) - }() != 0 || func() int32 { - if 0 != 0 { - return Xisdigit(tls, c) - } - return Bool32(uint32(c)-uint32('0') < uint32(10)) - }() != 0) -} - -func X__isalnum_l(tls *TLS, c int32, l locale_t) int32 { /* isalnum.c:8:5: */ - return Xisalnum(tls, c) -} - -func Xisalpha(tls *TLS, c int32) int32 { /* isalpha.c:4:5: */ - return Bool32(uint32(c)|uint32(32)-uint32('a') < uint32(26)) -} - -func X__isalpha_l(tls *TLS, c int32, l locale_t) int32 { /* isalpha.c:9:5: */ - return Xisalpha(tls, c) -} - -func Xisdigit(tls *TLS, c int32) int32 { /* isdigit.c:4:5: */ - return Bool32(uint32(c)-uint32('0') < uint32(10)) -} - -func X__isdigit_l(tls *TLS, c int32, l locale_t) int32 { /* isdigit.c:9:5: */ - return Xisdigit(tls, c) -} - -func Xislower(tls *TLS, c int32) int32 { /* islower.c:4:5: */ - return Bool32(uint32(c)-uint32('a') < uint32(26)) -} - -func X__islower_l(tls *TLS, c int32, l locale_t) int32 { /* islower.c:9:5: */ - return Xislower(tls, c) -} - -func Xisprint(tls *TLS, c int32) int32 { /* isprint.c:4:5: */ - return Bool32(uint32(c)-uint32(0x20) < uint32(0x5f)) -} - -func X__isprint_l(tls *TLS, c int32, l locale_t) int32 { /* isprint.c:9:5: */ - return Xisprint(tls, c) -} - -func Xisupper(tls *TLS, c int32) int32 { /* isupper.c:4:5: */ - return Bool32(uint32(c)-uint32('A') < uint32(26)) -} - -func X__isupper_l(tls *TLS, c int32, l locale_t) int32 { /* isupper.c:9:5: */ - return Xisupper(tls, c) -} - -func Xisxdigit(tls *TLS, c int32) int32 { /* isxdigit.c:3:5: */ - return Bool32(func() int32 { - if 0 != 0 { - return Xisdigit(tls, c) - } - return Bool32(uint32(c)-uint32('0') < uint32(10)) - }() != 0 || uint32(c)|uint32(32)-uint32('a') < uint32(6)) -} - -func X__isxdigit_l(tls *TLS, c int32, l locale_t) int32 { /* isxdigit.c:8:5: */ - return Xisxdigit(tls, c) -} - -type off_t = int64 /* alltypes.h:170:16 */ - -type ino_t = uint64 /* alltypes.h:175:25 */ - -type dirent = struct { - d_ino ino_t - d_off off_t - d_reclen uint16 - d_type uint8 - d_name [256]uint8 - _ [5]byte -} /* dirent.h:5:1 */ - -type __dirstream = struct { - tell off_t - fd int32 - buf_pos int32 - buf_end int32 - lock [1]int32 - buf [2048]uint8 -} /* dirent.h:20:9 */ - -type DIR = __dirstream /* dirent.h:20:28 */ - -type ssize_t = int64 /* alltypes.h:73:15 */ - -type intptr_t = int64 /* alltypes.h:78:15 */ - -type pid_t = int32 /* alltypes.h:243:13 */ - -type uid_t = uint32 /* alltypes.h:253:18 */ - -type gid_t = uint32 /* alltypes.h:258:18 */ - -type useconds_t = uint32 /* alltypes.h:268:18 */ - -type div_t = struct { - quot int32 - rem int32 -} /* stdlib.h:62:35 */ -type ldiv_t = struct { - quot int64 - rem int64 -} /* stdlib.h:63:36 */ -type lldiv_t = struct { - quot int64 - rem int64 -} /* stdlib.h:64:41 */ - -func Xclosedir(tls *TLS, dir uintptr) int32 { /* closedir.c:6:5: */ - var ret int32 = Xclose(tls, (*DIR)(unsafe.Pointer(dir)).fd) - Xfree(tls, dir) - return ret -} - -type mode_t = uint32 /* alltypes.h:160:18 */ - -type iovec = struct { - iov_base uintptr - iov_len size_t -} /* alltypes.h:363:1 */ - -type flock = struct { - l_type int16 - l_whence int16 - _ [4]byte - l_start off_t - l_len off_t - l_pid pid_t - _ [4]byte -} /* fcntl.h:24:1 */ - -type file_handle = struct { - _ [0]uint32 - handle_bytes uint32 - handle_type int32 -} /* fcntl.h:167:1 */ - -type f_owner_ex = struct { - __type int32 - pid pid_t -} /* fcntl.h:172:1 */ - -type syscall_arg_t = int64 /* syscall.h:22:14 */ - -func Xopendir(tls *TLS, name uintptr) uintptr { /* opendir.c:8:5: */ - var fd int32 - var dir uintptr - - if AssignInt32(&fd, Xopen(tls, name, 00|040000|02000000, 0)) < 0 { - return uintptr(0) - } - if !(int32(AssignUintptr(&dir, Xcalloc(tls, uint64(1), uint64(unsafe.Sizeof(DIR{}))))) != 0) { - X__syscall1(tls, int64(57), int64(fd)) - return uintptr(0) - } - (*DIR)(unsafe.Pointer(dir)).fd = fd - return dir -} - -type max_align_t = struct { - __ll int64 - __ld float64 -} /* alltypes.h:49:54 */ - -type dirstream_buf_alignment_check = [1]uint8 /* readdir.c:7:14 */ - -func Xreaddir(tls *TLS, dir uintptr) uintptr { /* readdir.c:10:15: */ - var de uintptr - - if (*DIR)(unsafe.Pointer(dir)).buf_pos >= (*DIR)(unsafe.Pointer(dir)).buf_end { - var len int32 = int32(X__syscall3(tls, int64(61), int64((*DIR)(unsafe.Pointer(dir)).fd), int64(dir+24), int64(unsafe.Sizeof([2048]uint8{})))) - if len <= 0 { - if len < 0 && len != -2 { - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = -len - } - return uintptr(0) - } - (*DIR)(unsafe.Pointer(dir)).buf_end = len - (*DIR)(unsafe.Pointer(dir)).buf_pos = 0 - } - de = dir + 24 + uintptr((*DIR)(unsafe.Pointer(dir)).buf_pos) - *(*int32)(unsafe.Pointer(dir + 12)) += int32((*dirent)(unsafe.Pointer(de)).d_reclen) - (*DIR)(unsafe.Pointer(dir)).tell = (*dirent)(unsafe.Pointer(de)).d_off - return de -} - -type uintptr_t = uint64 /* alltypes.h:63:24 */ - -type int8_t = int8 /* alltypes.h:104:25 */ - -type int16_t = int16 /* alltypes.h:109:25 */ - -type int32_t = int32 /* alltypes.h:114:25 */ - -type int64_t = int64 /* alltypes.h:119:25 */ - -type intmax_t = int64 /* alltypes.h:124:25 */ - -type uint8_t = uint8 /* alltypes.h:129:25 */ - -type uintmax_t = uint64 /* alltypes.h:154:25 */ - -type int_fast8_t = int8_t /* stdint.h:22:16 */ -type int_fast64_t = int64_t /* stdint.h:23:17 */ - -type int_least8_t = int8_t /* stdint.h:25:17 */ -type int_least16_t = int16_t /* stdint.h:26:17 */ -type int_least32_t = int32_t /* stdint.h:27:17 */ -type int_least64_t = int64_t /* stdint.h:28:17 */ - -type uint_fast8_t = uint8_t /* stdint.h:30:17 */ -type uint_fast64_t = uint64_t /* stdint.h:31:18 */ - -type uint_least8_t = uint8_t /* stdint.h:33:18 */ -type uint_least16_t = uint16_t /* stdint.h:34:18 */ -type uint_least32_t = uint32_t /* stdint.h:35:18 */ -type uint_least64_t = uint64_t /* stdint.h:36:18 */ - -type int_fast16_t = int32_t /* stdint.h:1:17 */ -type int_fast32_t = int32_t /* stdint.h:2:17 */ -type uint_fast16_t = uint32_t /* stdint.h:3:18 */ -type uint_fast32_t = uint32_t /* stdint.h:4:18 */ - -type _IO_FILE = struct { - flags uint32 - _ [4]byte - rpos uintptr - rend uintptr - close uintptr - wend uintptr - wpos uintptr - mustbezero_1 uintptr - wbase uintptr - read uintptr - write uintptr - seek uintptr - buf uintptr - buf_size size_t - prev uintptr - next uintptr - fd int32 - pipe_pid int32 - lockcount int64 - mode int32 - lock int32 - lbf int32 - _ [4]byte - cookie uintptr - off off_t - getln_buf uintptr - mustbezero_2 uintptr - shend uintptr - shlim off_t - shcnt off_t - prev_locked uintptr - next_locked uintptr - locale uintptr -} /* alltypes.h:328:9 */ - -type FILE = _IO_FILE /* alltypes.h:328:25 */ - -type va_list = uintptr /* alltypes.h:334:27 */ - -type _G_fpos64_t = struct { - _ [0]uint64 - __opaque [16]uint8 -} /* stdio.h:54:9 */ - -type fpos_t = _G_fpos64_t /* stdio.h:58:3 */ - -type float_t = float32 /* alltypes.h:38:15 */ - -type double_t = float64 /* alltypes.h:43:16 */ - -func __FLOAT_BITS(tls *TLS, __f float32) uint32 { /* math.h:55:26: */ - bp := tls.Alloc(4) - defer tls.Free(4) - - // var __u struct {__f float32;} at bp, 4 - - *(*float32)(unsafe.Pointer(bp)) = __f - return *(*uint32)(unsafe.Pointer(bp)) -} - -func __DOUBLE_BITS(tls *TLS, __f float64) uint64 { /* math.h:61:36: */ - bp := tls.Alloc(8) - defer tls.Free(8) - - // var __u struct {__f float64;} at bp, 8 - - *(*float64)(unsafe.Pointer(bp)) = __f - return *(*uint64)(unsafe.Pointer(bp)) -} - -type __pthread = struct { - self uintptr - dtv uintptr - prev uintptr - next uintptr - sysinfo uintptr_t - canary uintptr_t - canary2 uintptr_t - tid int32 - errno_val int32 - detach_state int32 - cancel int32 - canceldisable uint8 - cancelasync uint8 - tsd_used uint8 /* unsigned char tsd_used: 1, unsigned char dlerror_flag: 1 */ - _ [5]byte - map_base uintptr - map_size size_t - stack uintptr - stack_size size_t - guard_size size_t - result uintptr - cancelbuf uintptr - tsd uintptr - robust_list struct { - head uintptr - off int64 - pending uintptr - } - timer_id int32 - _ [4]byte - locale locale_t - killlock [1]int32 - _ [4]byte - dlerror_buf uintptr - stdio_locks uintptr - canary_at_end uintptr_t - dtv_copy uintptr -} /* alltypes.h:281:9 */ - -func scanexp(tls *TLS, f uintptr, pok int32) int64 { /* floatscan.c:37:18: */ - var c int32 - var x int32 - var y int64 - var neg int32 = 0 - - c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() - if c == '+' || c == '-' { - neg = Bool32(c == '-') - c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() - if uint32(c-'0') >= 10 && pok != 0 { - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - } - } - if uint32(c-'0') >= 10 { - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - return -0x7fffffffffffffff - int64(1) - } - for x = 0; uint32(c-'0') < 10 && x < 0x7fffffff/10; c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() { - x = 10*x + c - '0' - } - for y = int64(x); uint32(c-'0') < 10 && y < 0x7fffffffffffffff/int64(100); c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() { - y = int64(10)*y + int64(c) - int64('0') - } - for ; uint32(c-'0') < 10; c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() { - } - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - if neg != 0 { - return -y - } - return y -} - -func decfloat(tls *TLS, f uintptr, c int32, bits int32, emin int32, sign int32, pok int32) float64 { /* floatscan.c:64:20: */ - bp := tls.Alloc(512) - defer tls.Free(512) - - // var x [128]uint32_t at bp, 512 - - var i int32 - var j int32 - var k int32 - var a int32 - var z int32 - var lrp int64 = int64(0) - var dc int64 = int64(0) - var e10 int64 = int64(0) - var lnz int32 = 0 - var gotdig int32 = 0 - var gotrad int32 = 0 - var rp int32 - var e2 int32 - var emax int32 = -emin - bits + 3 - var denormal int32 = 0 - var y float64 - var frac float64 = float64(0) - var bias float64 = float64(0) - - j = 0 - k = 0 - - // Don't let leading zeros consume buffer space - for ; c == '0'; c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() { - gotdig = 1 - } - if c == '.' { - gotrad = 1 - for c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }(); c == '0'; c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() { - gotdig = 1 - lrp-- - } - } - - *(*uint32_t)(unsafe.Pointer(bp)) = uint32_t(0) - for ; uint32(c-'0') < 10 || c == '.'; c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() { - if c == '.' { - if gotrad != 0 { - break - } - gotrad = 1 - lrp = dc - } else if k < 128-3 { - dc++ - if c != '0' { - lnz = int32(dc) - } - if j != 0 { - *(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4)) = *(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4))*uint32_t(10) + uint32_t(c) - uint32_t('0') - } else { - *(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4)) = uint32_t(c - '0') - } - if PreIncInt32(&j, 1) == 9 { - k++ - j = 0 - } - gotdig = 1 - } else { - dc++ - if c != '0' { - lnz = (128 - 4) * 9 - *(*uint32_t)(unsafe.Pointer(bp + 124*4)) |= uint32_t(1) - } - } - } - if !(gotrad != 0) { - lrp = dc - } - - if gotdig != 0 && c|32 == 'e' { - e10 = scanexp(tls, f, pok) - if e10 == -0x7fffffffffffffff-int64(1) { - if pok != 0 { - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - } else { - X__shlim(tls, f, int64(0)) - return float64(0) - } - e10 = int64(0) - } - lrp = lrp + e10 - } else if c >= 0 { - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - } - if !(gotdig != 0) { - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 22 - X__shlim(tls, f, int64(0)) - return float64(0) - } - - // Handle zero specially to avoid nasty special cases later - if !(int32(*(*uint32_t)(unsafe.Pointer(bp))) != 0) { - return float64(sign) * 0.0 - } - - // Optimize small integers (w/no exponent) and over/under-flow - if lrp == dc && dc < int64(10) && (bits > 30 || *(*uint32_t)(unsafe.Pointer(bp))>>bits == uint32_t(0)) { - return float64(sign) * float64(*(*uint32_t)(unsafe.Pointer(bp))) - } - if lrp > int64(-emin/2) { - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 34 - return float64(sign) * 1.79769313486231570815e+308 * 1.79769313486231570815e+308 - } - if lrp < int64(emin-2*53) { - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 34 - return float64(sign) * 2.22507385850720138309e-308 * 2.22507385850720138309e-308 - } - - // Align incomplete final B1B digit - if j != 0 { - for ; j < 9; j++ { - *(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4)) *= uint32_t(10) - } - k++ - j = 0 - } - - a = 0 - z = k - e2 = 0 - rp = int32(lrp) - - // Optimize small to mid-size integers (even in exp. notation) - if lnz < 9 && lnz <= rp && rp < 18 { - if rp == 9 { - return float64(sign) * float64(*(*uint32_t)(unsafe.Pointer(bp))) - } - if rp < 9 { - return float64(sign) * float64(*(*uint32_t)(unsafe.Pointer(bp))) / float64(_sp10s[8-rp]) - } - var bitlim int32 = bits - 3*(rp-9) - if bitlim > 30 || *(*uint32_t)(unsafe.Pointer(bp))>>bitlim == uint32_t(0) { - return float64(sign) * float64(*(*uint32_t)(unsafe.Pointer(bp))) * float64(_sp10s[rp-10]) - } - } - - // Drop trailing zeros - for ; !(int32(*(*uint32_t)(unsafe.Pointer(bp + uintptr(z-1)*4))) != 0); z-- { - } - - // Align radix point to B1B digit boundary - if rp%9 != 0 { - var rpm9 int32 - if rp >= 0 { - rpm9 = rp % 9 - } else { - rpm9 = rp%9 + 9 - } - var p10 int32 = _sp10s[8-rpm9] - var carry uint32_t = uint32_t(0) - for k = a; k != z; k++ { - var tmp uint32_t = *(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4)) % uint32_t(p10) - *(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4)) = *(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4))/uint32_t(p10) + carry - carry = uint32_t(1000000000/p10) * tmp - if k == a && !(int32(*(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4))) != 0) { - a = (a + 1) & (128 - 1) - rp = rp - 9 - } - } - if carry != 0 { - *(*uint32_t)(unsafe.Pointer(bp + uintptr(PostIncInt32(&z, 1))*4)) = carry - } - rp = rp + (9 - rpm9) - } - - // Upscale until desired number of bits are left of radix point - for rp < 9*2 || rp == 9*2 && *(*uint32_t)(unsafe.Pointer(bp + uintptr(a)*4)) < _sth[0] { - var carry uint32_t = uint32_t(0) - e2 = e2 - 29 - for k = (z - 1) & (128 - 1); ; k = (k - 1) & (128 - 1) { - var tmp uint64_t = uint64_t(*(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4)))<<29 + uint64_t(carry) - if tmp > uint64(1000000000) { - carry = uint32_t(tmp / uint64(1000000000)) - *(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4)) = uint32_t(tmp % uint64(1000000000)) - } else { - carry = uint32_t(0) - *(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4)) = uint32_t(tmp) - } - if k == (z-1)&(128-1) && k != a && !(int32(*(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4))) != 0) { - z = k - } - if k == a { - break - } - } - if carry != 0 { - rp = rp + 9 - a = (a - 1) & (128 - 1) - if a == z { - z = (z - 1) & (128 - 1) - *(*uint32_t)(unsafe.Pointer(bp + uintptr((z-1)&(128-1))*4)) |= *(*uint32_t)(unsafe.Pointer(bp + uintptr(z)*4)) - } - *(*uint32_t)(unsafe.Pointer(bp + uintptr(a)*4)) = carry - } - } - - // Downscale until exactly number of bits are left of radix point - for { - var carry uint32_t = uint32_t(0) - var sh int32 = 1 - for i = 0; i < 2; i++ { - k = (a + i) & (128 - 1) - if k == z || *(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4)) < _sth[i] { - i = 2 - break - } - if *(*uint32_t)(unsafe.Pointer(bp + uintptr((a+i)&(128-1))*4)) > _sth[i] { - break - } - } - if i == 2 && rp == 9*2 { - break - } - // FIXME: find a way to compute optimal sh - if rp > 9+9*2 { - sh = 9 - } - e2 = e2 + sh - for k = a; k != z; k = (k + 1) & (128 - 1) { - var tmp uint32_t = *(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4)) & uint32_t(int32(1)<>sh + carry - carry = uint32_t(int32(1000000000)>>sh) * tmp - if k == a && !(int32(*(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4))) != 0) { - a = (a + 1) & (128 - 1) - i-- - rp = rp - 9 - } - } - if carry != 0 { - if (z+1)&(128-1) != a { - *(*uint32_t)(unsafe.Pointer(bp + uintptr(z)*4)) = carry - z = (z + 1) & (128 - 1) - } else { - *(*uint32_t)(unsafe.Pointer(bp + uintptr((z-1)&(128-1))*4)) |= uint32_t(1) - } - } - } - - // Assemble desired bits into floating point variable - for y = float64(AssignInt32(&i, 0)); i < 2; i++ { - if (a+i)&(128-1) == z { - *(*uint32_t)(unsafe.Pointer(bp + uintptr(AssignInt32(&z, (z+1)&(128-1))-1)*4)) = uint32_t(0) - } - y = 1000000000.0*y + float64(*(*uint32_t)(unsafe.Pointer(bp + uintptr((a+i)&(128-1))*4))) - } - - y = y * float64(sign) - - // Limit precision for denormal results - if bits > 53+e2-emin { - bits = 53 + e2 - emin - if bits < 0 { - bits = 0 - } - denormal = 1 - } - - // Calculate bias term to force rounding, move out lower bits - if bits < 53 { - bias = Xcopysignl(tls, Xscalbn(tls, float64(1), 2*53-bits-1), y) - frac = Xfmodl(tls, y, Xscalbn(tls, float64(1), 53-bits)) - y = y - frac - y = y + bias - } - - // Process tail of decimal input so it can affect rounding - if (a+i)&(128-1) != z { - var t uint32_t = *(*uint32_t)(unsafe.Pointer(bp + uintptr((a+i)&(128-1))*4)) - if t < uint32_t(500000000) && (t != 0 || (a+i+1)&(128-1) != z) { - frac = frac + 0.25*float64(sign) - } else if t > uint32_t(500000000) { - frac = frac + 0.75*float64(sign) - } else if t == uint32_t(500000000) { - if (a+i+1)&(128-1) == z { - frac = frac + 0.5*float64(sign) - } else { - frac = frac + 0.75*float64(sign) - } - } - if 53-bits >= 2 && !(Xfmodl(tls, frac, float64(1)) != 0) { - frac += 1 - } - } - - y = y + frac - y = y - bias - - if (e2+53)&0x7fffffff > emax-5 { - if Xfabsl(tls, y) >= float64(float64(2))/2.22044604925031308085e-16 { - if denormal != 0 && bits == 53+e2-emin { - denormal = 0 - } - y = y * 0.5 - e2++ - } - if e2+53 > emax || denormal != 0 && frac != 0 { - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 34 - } - } - - return Xscalbnl(tls, y, e2) -} - -var _sth = [2]uint32_t{uint32_t(9007199), uint32_t(254740991)} /* floatscan.c:67:24 */ -var _sp10s = [8]int32{10, 100, 1000, 10000, - 100000, 1000000, 10000000, 100000000} /* floatscan.c:80:19 */ - -func hexfloat(tls *TLS, f uintptr, bits int32, emin int32, sign int32, pok int32) float64 { /* floatscan.c:315:20: */ - var x uint32_t = uint32_t(0) - var y float64 = float64(0) - var scale float64 = float64(1) - var bias float64 = float64(0) - var gottail int32 = 0 - var gotrad int32 = 0 - var gotdig int32 = 0 - var rp int64 = int64(0) - var dc int64 = int64(0) - var e2 int64 = int64(0) - var d int32 - var c int32 - - c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() - - // Skip leading zeros - for ; c == '0'; c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() { - gotdig = 1 - } - - if c == '.' { - gotrad = 1 - c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() - // Count zeros after the radix point before significand - rp = int64(0) - __1: - if !(c == '0') { - goto __3 - } - gotdig = 1 - goto __2 - __2: - c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() - rp-- - goto __1 - goto __3 - __3: - } - - for ; uint32(c-'0') < 10 || uint32(c|32-'a') < 6 || c == '.'; c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() { - if c == '.' { - if gotrad != 0 { - break - } - rp = dc - gotrad = 1 - } else { - gotdig = 1 - if c > '9' { - d = c | 32 + 10 - 'a' - } else { - d = c - '0' - } - if dc < int64(8) { - x = x*uint32_t(16) + uint32_t(d) - } else if dc < int64(53/4+1) { - y = y + float64(d)*AssignDivFloat64(&scale, float64(16)) - } else if d != 0 && !(gottail != 0) { - y = y + 0.5*scale - gottail = 1 - } - dc++ - } - } - if !(gotdig != 0) { - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - if pok != 0 { - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - if gotrad != 0 { - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - } - } else { - X__shlim(tls, f, int64(0)) - } - return float64(sign) * 0.0 - } - if !(gotrad != 0) { - rp = dc - } - for dc < int64(8) { - x = x * uint32_t(16) - dc++ - } - if c|32 == 'p' { - e2 = scanexp(tls, f, pok) - if e2 == -0x7fffffffffffffff-int64(1) { - if pok != 0 { - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - } else { - X__shlim(tls, f, int64(0)) - return float64(0) - } - e2 = int64(0) - } - } else { - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - } - e2 = e2 + (int64(4)*rp - int64(32)) - - if !(x != 0) { - return float64(sign) * 0.0 - } - if e2 > int64(-emin) { - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 34 - return float64(sign) * 1.79769313486231570815e+308 * 1.79769313486231570815e+308 - } - if e2 < int64(emin-2*53) { - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 34 - return float64(sign) * 2.22507385850720138309e-308 * 2.22507385850720138309e-308 - } - - for x < 0x80000000 { - if y >= 0.5 { - x = x + (x + uint32_t(1)) - y = y + (y - float64(1)) - } else { - x = x + x - y = y + y - } - e2-- - } - - if int64(bits) > int64(32)+e2-int64(emin) { - bits = int32(int64(32) + e2 - int64(emin)) - if bits < 0 { - bits = 0 - } - } - - if bits < 53 { - bias = Xcopysignl(tls, Xscalbn(tls, float64(1), 32+53-bits-1), float64(sign)) - } - - if bits < 32 && y != 0 && !(x&uint32_t(1) != 0) { - x++ - y = float64(0) - } - - y = bias + float64(sign)*float64(x) + float64(sign)*y - y = y - bias - - if !(y != 0) { - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 34 - } - - return Xscalbnl(tls, y, int32(e2)) -} - -func X__floatscan(tls *TLS, f uintptr, prec int32, pok int32) float64 { /* floatscan.c:427:13: */ - var sign int32 = 1 - var i size_t - var bits int32 - var emin int32 - var c int32 - - switch prec { - case 0: - bits = 24 - emin = -125 - bits - break - case 1: - bits = 53 - emin = -1021 - bits - break - case 2: - bits = 53 - emin = -1021 - bits - break - default: - return float64(0) - } - - for __isspace(tls, AssignInt32(&c, func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }())) != 0 { - } - - if c == '+' || c == '-' { - sign = sign - 2*Bool32(c == '-') - c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() - } - - for i = uint64(0); i < uint64(8) && c|32 == int32(*(*uint8)(unsafe.Pointer(ts /* "infinity" */ + uintptr(i)))); i++ { - if i < uint64(7) { - c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() - } - } - if i == uint64(3) || i == uint64(8) || i > uint64(3) && pok != 0 { - if i != uint64(8) { - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - if pok != 0 { - for ; i > uint64(3); i-- { - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - } - } - } - return float64(float32(sign) * X__builtin_inff(tls)) - } - if !(i != 0) { - for i = uint64(0); i < uint64(3) && c|32 == int32(*(*uint8)(unsafe.Pointer(ts + 9 /* "nan" */ + uintptr(i)))); i++ { - if i < uint64(2) { - c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() - } - } - } - if i == uint64(3) { - if func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() != '(' { - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - return float64(X__builtin_nanf(tls, ts+13)) - } - for i = uint64(1); ; i++ { - c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() - if uint32(c-'0') < 10 || uint32(c-'A') < 26 || uint32(c-'a') < 26 || c == '_' { - continue - } - if c == ')' { - return float64(X__builtin_nanf(tls, ts+13)) - } - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - if !(pok != 0) { - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 22 - X__shlim(tls, f, int64(0)) - return float64(0) - } - for PostDecUint64(&i, 1) != 0 { - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - } - return float64(X__builtin_nanf(tls, ts+13)) - } - return float64(X__builtin_nanf(tls, ts+13)) - } - - if i != 0 { - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 22 - X__shlim(tls, f, int64(0)) - return float64(0) - } - - if c == '0' { - c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() - if c|32 == 'x' { - return hexfloat(tls, f, bits, emin, sign, pok) - } - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - c = '0' - } - - return decfloat(tls, f, c, bits, emin, sign, pok) -} - -// Lookup table for digit values. -1==255>=36 -> invalid -var table1 = [257]uint8{Uint8FromInt32(-1), - Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), - Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), - Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), - uint8(0), uint8(1), uint8(2), uint8(3), uint8(4), uint8(5), uint8(6), uint8(7), uint8(8), uint8(9), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), - Uint8FromInt32(-1), uint8(10), uint8(11), uint8(12), uint8(13), uint8(14), uint8(15), uint8(16), uint8(17), uint8(18), uint8(19), uint8(20), uint8(21), uint8(22), uint8(23), uint8(24), - uint8(25), uint8(26), uint8(27), uint8(28), uint8(29), uint8(30), uint8(31), uint8(32), uint8(33), uint8(34), uint8(35), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), - Uint8FromInt32(-1), uint8(10), uint8(11), uint8(12), uint8(13), uint8(14), uint8(15), uint8(16), uint8(17), uint8(18), uint8(19), uint8(20), uint8(21), uint8(22), uint8(23), uint8(24), - uint8(25), uint8(26), uint8(27), uint8(28), uint8(29), uint8(30), uint8(31), uint8(32), uint8(33), uint8(34), uint8(35), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), - Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), - Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), - Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), - Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), - Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), - Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), - Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), - Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), -} /* intscan.c:7:28 */ - -func X__intscan(tls *TLS, f uintptr, base uint32, pok int32, lim uint64) uint64 { /* intscan.c:26:20: */ - var val uintptr - var c int32 - var neg int32 - var x uint32 - var y uint64 - var bs int32 - val = uintptr(unsafe.Pointer(&table1)) + uintptr(1) - neg = 0 - if !(base > uint32(36) || base == uint32(1)) { - goto __1 - } - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 22 - return uint64(0) -__1: - ; -__2: - if !(__isspace(tls, AssignInt32(&c, func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }())) != 0) { - goto __3 - } - goto __2 -__3: - ; - if !(c == '+' || c == '-') { - goto __4 - } - neg = -Bool32(c == '-') - c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() -__4: - ; - if !((base == uint32(0) || base == uint32(16)) && c == '0') { - goto __5 - } - c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() - if !(c|32 == 'x') { - goto __7 - } - c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() - if !(int32(*(*uint8)(unsafe.Pointer(val + uintptr(c)))) >= 16) { - goto __9 - } - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - if !(pok != 0) { - goto __10 - } - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - goto __11 -__10: - X__shlim(tls, f, int64(0)) -__11: - ; - return uint64(0) -__9: - ; - base = uint32(16) - goto __8 -__7: - if !(base == uint32(0)) { - goto __12 - } - base = uint32(8) -__12: - ; -__8: - ; - goto __6 -__5: - if !(base == uint32(0)) { - goto __13 - } - base = uint32(10) -__13: - ; - if !(uint32(*(*uint8)(unsafe.Pointer(val + uintptr(c)))) >= base) { - goto __14 - } - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - X__shlim(tls, f, int64(0)) - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 22 - return uint64(0) -__14: - ; -__6: - ; - if !(base == uint32(10)) { - goto __15 - } - x = uint32(0) -__17: - if !(uint32(c-'0') < 10 && x <= 0xffffffff/uint32(10)-uint32(1)) { - goto __19 - } - x = x*uint32(10) + uint32(c-'0') - goto __18 -__18: - c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() - goto __17 - goto __19 -__19: - ; - y = uint64(x) -__20: - if !(uint32(c-'0') < 10 && y <= (2*uint64(0x7fffffffffffffff)+uint64(1))/uint64(10) && uint64(10)*y <= 2*uint64(0x7fffffffffffffff)+uint64(1)-uint64(c-'0')) { - goto __22 - } - y = y*uint64(10) + uint64(c-'0') - goto __21 -__21: - c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() - goto __20 - goto __22 -__22: - ; - if !(uint32(c-'0') >= 10) { - goto __23 - } - goto done -__23: - ; - goto __16 -__15: - if !!(base&(base-uint32(1)) != 0) { - goto __24 - } - bs = int32(*(*uint8)(unsafe.Pointer(ts + 14 + uintptr(uint32(0x17)*base>>5&uint32(7))))) - x = uint32(0) -__26: - if !(uint32(*(*uint8)(unsafe.Pointer(val + uintptr(c)))) < base && x <= 0xffffffff/uint32(32)) { - goto __28 - } - x = x<>bs) { - goto __31 - } - y = y<= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - if !(y >= lim) { - goto __43 - } - if !(!(lim&uint64(1) != 0) && !(neg != 0)) { - goto __44 - } - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 34 - return lim - uint64(1) - goto __45 -__44: - if !(y > lim) { - goto __46 - } - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 34 - return lim -__46: - ; -__45: - ; -__43: - ; - return y ^ uint64(neg) - uint64(neg) -} - -// The shcnt field stores the number of bytes read so far, offset by -// the value of buf-rpos at the last function call (__shlim or __shgetc), -// so that between calls the inline shcnt macro can add rpos-buf to get -// the actual count. - -func X__shlim(tls *TLS, f uintptr, lim off_t) { /* shgetc.c:8:6: */ - (*FILE)(unsafe.Pointer(f)).shlim = lim - (*FILE)(unsafe.Pointer(f)).shcnt = (int64((*FILE)(unsafe.Pointer(f)).buf) - int64((*FILE)(unsafe.Pointer(f)).rpos)) / 1 - // If lim is nonzero, rend must be a valid pointer. - if lim != 0 && (int64((*FILE)(unsafe.Pointer(f)).rend)-int64((*FILE)(unsafe.Pointer(f)).rpos))/1 > lim { - (*FILE)(unsafe.Pointer(f)).shend = (*FILE)(unsafe.Pointer(f)).rpos + uintptr(lim) - } else { - (*FILE)(unsafe.Pointer(f)).shend = (*FILE)(unsafe.Pointer(f)).rend - } -} - -func X__shgetc(tls *TLS, f uintptr) int32 { /* shgetc.c:19:5: */ - var c int32 - var cnt off_t = (*FILE)(unsafe.Pointer(f)).shcnt + (int64((*FILE)(unsafe.Pointer(f)).rpos)-int64((*FILE)(unsafe.Pointer(f)).buf))/1 - if (*FILE)(unsafe.Pointer(f)).shlim != 0 && cnt >= (*FILE)(unsafe.Pointer(f)).shlim || AssignInt32(&c, X__uflow(tls, f)) < 0 { - (*FILE)(unsafe.Pointer(f)).shcnt = (int64((*FILE)(unsafe.Pointer(f)).buf)-int64((*FILE)(unsafe.Pointer(f)).rpos))/1 + cnt - (*FILE)(unsafe.Pointer(f)).shend = (*FILE)(unsafe.Pointer(f)).rpos - (*FILE)(unsafe.Pointer(f)).shlim = int64(-1) - return -1 - } - cnt++ - if (*FILE)(unsafe.Pointer(f)).shlim != 0 && (int64((*FILE)(unsafe.Pointer(f)).rend)-int64((*FILE)(unsafe.Pointer(f)).rpos))/1 > (*FILE)(unsafe.Pointer(f)).shlim-cnt { - (*FILE)(unsafe.Pointer(f)).shend = (*FILE)(unsafe.Pointer(f)).rpos + uintptr((*FILE)(unsafe.Pointer(f)).shlim-cnt) - } else { - (*FILE)(unsafe.Pointer(f)).shend = (*FILE)(unsafe.Pointer(f)).rend - } - (*FILE)(unsafe.Pointer(f)).shcnt = (int64((*FILE)(unsafe.Pointer(f)).buf)-int64((*FILE)(unsafe.Pointer(f)).rpos))/1 + cnt - if (*FILE)(unsafe.Pointer(f)).rpos <= (*FILE)(unsafe.Pointer(f)).buf { - *(*uint8)(unsafe.Pointer((*FILE)(unsafe.Pointer(f)).rpos + UintptrFromInt32(-1))) = uint8(c) - } - return c -} - -type lconv = struct { - decimal_point uintptr - thousands_sep uintptr - grouping uintptr - int_curr_symbol uintptr - currency_symbol uintptr - mon_decimal_point uintptr - mon_thousands_sep uintptr - mon_grouping uintptr - positive_sign uintptr - negative_sign uintptr - int_frac_digits uint8 - frac_digits uint8 - p_cs_precedes uint8 - p_sep_by_space uint8 - n_cs_precedes uint8 - n_sep_by_space uint8 - p_sign_posn uint8 - n_sign_posn uint8 - int_p_cs_precedes uint8 - int_p_sep_by_space uint8 - int_n_cs_precedes uint8 - int_n_sep_by_space uint8 - int_p_sign_posn uint8 - int_n_sign_posn uint8 - _ [2]byte -} /* locale.h:24:1 */ - -// Support signed or unsigned plain-char - -// Implementation choices... - -// Arbitrary numbers... - -// POSIX/SUS requirements follow. These numbers come directly -// from SUS and have nothing to do with the host system. - -var posix_lconv = lconv{decimal_point: ts + 23, thousands_sep: ts + 13, grouping: ts + 13, int_curr_symbol: ts + 13, currency_symbol: ts + 13, mon_decimal_point: ts + 13, mon_thousands_sep: ts + 13, mon_grouping: ts + 13, positive_sign: ts + 13, negative_sign: ts + 13, int_frac_digits: uint8(255), frac_digits: uint8(255), p_cs_precedes: uint8(255), p_sep_by_space: uint8(255), n_cs_precedes: uint8(255), n_sep_by_space: uint8(255), p_sign_posn: uint8(255), n_sign_posn: uint8(255), int_p_cs_precedes: uint8(255), int_p_sep_by_space: uint8(255), int_n_cs_precedes: uint8(255), int_n_sep_by_space: uint8(255), int_p_sign_posn: uint8(255), int_n_sign_posn: uint8(255)} /* localeconv.c:4:27 */ - -func Xlocaleconv(tls *TLS) uintptr { /* localeconv.c:31:14: */ - return uintptr(unsafe.Pointer(&posix_lconv)) -} - -func X__fpclassify(tls *TLS, x float64) int32 { /* __fpclassify.c:4:5: */ - bp := tls.Alloc(8) - defer tls.Free(8) - - *(*struct{ f float64 })(unsafe.Pointer(bp)) = func() (r struct{ f float64 }) { - *(*float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = x - return r - }() - var e int32 = int32(*(*uint64_t)(unsafe.Pointer(bp)) >> 52 & uint64(0x7ff)) - if !(e != 0) { - if *(*uint64_t)(unsafe.Pointer(bp))<<1 != 0 { - return 3 - } - return 2 - } - if e == 0x7ff { - if *(*uint64_t)(unsafe.Pointer(bp))<<12 != 0 { - return 0 - } - return 1 - } - return 4 -} - -func X__fpclassifyf(tls *TLS, x float32) int32 { /* __fpclassifyf.c:4:5: */ - bp := tls.Alloc(4) - defer tls.Free(4) - - *(*struct{ f float32 })(unsafe.Pointer(bp)) = func() (r struct{ f float32 }) { - *(*float32)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = x - return r - }() - var e int32 = int32(*(*uint32_t)(unsafe.Pointer(bp)) >> 23 & uint32_t(0xff)) - if !(e != 0) { - if *(*uint32_t)(unsafe.Pointer(bp))<<1 != 0 { - return 3 - } - return 2 - } - if e == 0xff { - if *(*uint32_t)(unsafe.Pointer(bp))<<9 != 0 { - return 0 - } - return 1 - } - return 4 -} - -func X__fpclassifyl(tls *TLS, x float64) int32 { /* __fpclassifyl.c:4:5: */ - return X__fpclassify(tls, x) -} - -func Xcopysignl(tls *TLS, x float64, y float64) float64 { /* copysignl.c:4:13: */ - return Xcopysign(tls, x, y) -} - -func Xfabsl(tls *TLS, x float64) float64 { /* fabsl.c:3:13: */ - return Xfabs(tls, x) -} - -func Xfmodl(tls *TLS, x float64, y float64) float64 { /* fmodl.c:4:13: */ - return Xfmod(tls, x, y) -} - -func Xnanf(tls *TLS, s uintptr) float32 { /* nanf.c:3:7: */ - return X__builtin_nanf(tls, ts+13) -} - -var toint double_t = float64(float64(1)) / 2.22044604925031308085e-16 /* rint.c:10:23 */ - -func Xrint(tls *TLS, x float64) float64 { /* rint.c:12:8: */ - bp := tls.Alloc(8) - defer tls.Free(8) - - *(*struct{ f float64 })(unsafe.Pointer(bp)) = func() (r struct{ f float64 }) { - *(*float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = x - return r - }() - var e int32 = int32(*(*uint64_t)(unsafe.Pointer(bp)) >> 52 & uint64(0x7ff)) - var s int32 = int32(*(*uint64_t)(unsafe.Pointer(bp)) >> 63) - var y double_t - - if e >= 0x3ff+52 { - return x - } - if s != 0 { - y = x - toint + toint - } else { - y = x + toint - toint - } - if y == float64(0) { - if s != 0 { - return -Float64FromFloat64(0.0) - } - return float64(0) - } - return y -} - -func Xscalbn(tls *TLS, x float64, n int32) float64 { /* scalbn.c:4:8: */ - bp := tls.Alloc(8) - defer tls.Free(8) - - // var u struct {f float64;} at bp, 8 - - var y double_t = x - - if n > 1023 { - y = y * 0x1p1023 - n = n - 1023 - if n > 1023 { - y = y * 0x1p1023 - n = n - 1023 - if n > 1023 { - n = 1023 - } - } - } else if n < -1022 { - // make sure final n < -53 to avoid double - // rounding in the subnormal range - y = y * (float64(0x1p-1022) * 0x1p53) - n = n + (1022 - 53) - if n < -1022 { - y = y * (float64(0x1p-1022) * 0x1p53) - n = n + (1022 - 53) - if n < -1022 { - n = -1022 - } - } - } - *(*uint64_t)(unsafe.Pointer(bp)) = uint64_t(0x3ff+n) << 52 - x = y * *(*float64)(unsafe.Pointer(bp)) - return x -} - -func Xscalbnl(tls *TLS, x float64, n int32) float64 { /* scalbnl.c:4:13: */ - return Xscalbn(tls, x, n) -} - -// Support signed or unsigned plain-char - -// Implementation choices... - -// Arbitrary numbers... - -// POSIX/SUS requirements follow. These numbers come directly -// from SUS and have nothing to do with the host system. - -type __locale_map = struct { - __map uintptr - map_size size_t - name [24]uint8 - next uintptr -} /* alltypes.h:351:9 */ - -type tls_module = struct { - next uintptr - image uintptr - len size_t - size size_t - align size_t - offset size_t -} /* libc.h:14:1 */ - -type __libc = struct { - can_do_threads uint8 - threaded uint8 - secure uint8 - need_locks int8 - threads_minus_1 int32 - auxv uintptr - tls_head uintptr - tls_size size_t - tls_align size_t - tls_cnt size_t - page_size size_t - global_locale struct{ cat [6]uintptr } -} /* libc.h:20:1 */ - -type time_t = int64 /* alltypes.h:93:16 */ - -type clockid_t = int32 /* alltypes.h:222:13 */ - -type timespec = struct { - tv_sec time_t - tv_nsec int64 -} /* alltypes.h:237:1 */ - -type pthread_t = uintptr /* alltypes.h:281:26 */ - -type pthread_once_t = int32 /* alltypes.h:287:13 */ - -type pthread_key_t = uint32 /* alltypes.h:292:18 */ - -type pthread_spinlock_t = int32 /* alltypes.h:297:13 */ - -type pthread_mutexattr_t = struct{ __attr uint32 } /* alltypes.h:302:37 */ - -type pthread_condattr_t = struct{ __attr uint32 } /* alltypes.h:307:37 */ - -type pthread_barrierattr_t = struct{ __attr uint32 } /* alltypes.h:312:37 */ - -type pthread_rwlockattr_t = struct{ __attr [2]uint32 } /* alltypes.h:317:40 */ - -type __sigset_t = struct{ __bits [16]uint64 } /* alltypes.h:357:9 */ - -type sigset_t = __sigset_t /* alltypes.h:357:71 */ - -type pthread_attr_t = struct { - __u struct { - _ [0]uint64 - __i [14]int32 - } -} /* alltypes.h:380:147 */ - -type pthread_mutex_t = struct { - __u struct { - _ [0]uint64 - __i [10]int32 - } -} /* alltypes.h:385:157 */ - -type pthread_cond_t = struct { - __u struct { - _ [0]uint64 - __i [12]int32 - } -} /* alltypes.h:395:112 */ - -type pthread_rwlock_t = struct { - __u struct { - _ [0]uint64 - __i [14]int32 - } -} /* alltypes.h:405:139 */ - -type pthread_barrier_t = struct { - __u struct { - _ [0]uint64 - __i [8]int32 - } -} /* alltypes.h:410:137 */ - -type sched_param = struct { - sched_priority int32 - __reserved1 int32 - __reserved2 [2]struct { - __reserved1 time_t - __reserved2 int64 - } - __reserved3 int32 - _ [4]byte -} /* sched.h:19:1 */ - -type timer_t = uintptr /* alltypes.h:217:14 */ - -type clock_t = int64 /* alltypes.h:227:14 */ - -type tm = struct { - tm_sec int32 - tm_min int32 - tm_hour int32 - tm_mday int32 - tm_mon int32 - tm_year int32 - tm_wday int32 - tm_yday int32 - tm_isdst int32 - _ [4]byte - tm_gmtoff int64 - tm_zone uintptr -} /* time.h:38:1 */ - -type itimerspec = struct { - it_interval struct { - tv_sec time_t - tv_nsec int64 - } - it_value struct { - tv_sec time_t - tv_nsec int64 - } -} /* time.h:80:1 */ - -type sigevent = struct { - sigev_value struct { - _ [0]uint64 - sival_int int32 - _ [4]byte - } - sigev_signo int32 - sigev_notify int32 - sigev_notify_function uintptr - sigev_notify_attributes uintptr - __pad [32]uint8 -} /* time.h:107:1 */ - -type __ptcb = struct { - __f uintptr - __x uintptr - __next uintptr -} /* alltypes.h:281:9 */ - -type sigaltstack = struct { - ss_sp uintptr - ss_flags int32 - _ [4]byte - ss_size size_t -} /* signal.h:44:9 */ - -type stack_t = sigaltstack /* signal.h:44:28 */ - -type greg_t = uint64 /* signal.h:10:23 */ -type gregset_t = [34]uint64 /* signal.h:11:23 */ - -type fpregset_t = struct { - vregs [32]float64 - fpsr uint32 - fpcr uint32 -} /* signal.h:17:3 */ -type sigcontext = struct { - fault_address uint64 - regs [31]uint64 - sp uint64 - pc uint64 - pstate uint64 - __reserved [256]float64 -} /* signal.h:18:9 */ - -type mcontext_t = sigcontext /* signal.h:23:3 */ - -type _aarch64_ctx = struct { - magic uint32 - size uint32 -} /* signal.h:29:1 */ - -type fpsimd_context = struct { - head struct { - magic uint32 - size uint32 - } - fpsr uint32 - fpcr uint32 - vregs [32]float64 -} /* signal.h:33:1 */ - -type esr_context = struct { - head struct { - magic uint32 - size uint32 - } - esr uint64 -} /* signal.h:39:1 */ - -type extra_context = struct { - head struct { - magic uint32 - size uint32 - } - datap uint64 - size uint32 - __reserved [3]uint32 -} /* signal.h:43:1 */ - -type sve_context = struct { - head struct { - magic uint32 - size uint32 - } - vl uint16 - __reserved [3]uint16 -} /* signal.h:49:1 */ - -type __ucontext = struct { - uc_flags uint64 - uc_link uintptr - uc_stack stack_t - uc_sigmask sigset_t - uc_mcontext mcontext_t -} /* signal.h:99:9 */ - -type ucontext_t = __ucontext /* signal.h:105:3 */ - -type sigval = struct { - _ [0]uint64 - sival_int int32 - _ [4]byte -} /* time.h:107:1 */ - -type siginfo_t = struct { - si_signo int32 - si_errno int32 - si_code int32 - _ [4]byte - __si_fields struct { - _ [0]uint64 - __pad [112]uint8 - } -} /* signal.h:145:3 */ - -type sigaction = struct { - __sa_handler struct{ sa_handler uintptr } - sa_mask sigset_t - sa_flags int32 - _ [4]byte - sa_restorer uintptr -} /* signal.h:167:1 */ - -type sig_t = uintptr /* signal.h:251:14 */ - -type sig_atomic_t = int32 /* signal.h:269:13 */ - -func a_ll(tls *TLS, p uintptr) int32 { /* atomic_arch.h:2:19: */ - var v int32 - panic(`arch/aarch64/atomic_arch.h:5:2: assembler statements not supported`) - return v -} - -func a_sc(tls *TLS, p uintptr, v int32) int32 { /* atomic_arch.h:10:19: */ - var r int32 - panic(`arch/aarch64/atomic_arch.h:13:2: assembler statements not supported`) - return BoolInt32(!(r != 0)) -} - -func a_barrier(tls *TLS) { /* atomic_arch.h:18:20: */ - panic(`arch/aarch64/atomic_arch.h:20:2: assembler statements not supported`) -} - -func a_cas(tls *TLS, p uintptr, t int32, s int32) int32 { /* atomic_arch.h:24:19: */ - var old int32 - for ok := true; ok; ok = !(a_sc(tls, p, s) != 0) { - old = a_ll(tls, p) - if old != t { - a_barrier(tls) - break - } - } - return old -} - -func a_ll_p(tls *TLS, p uintptr) uintptr { /* atomic_arch.h:38:20: */ - var v uintptr - panic(`arch/aarch64/atomic_arch.h:41:2: assembler statements not supported`) - return v -} - -func a_sc_p(tls *TLS, p uintptr, v uintptr) int32 { /* atomic_arch.h:46:19: */ - var r int32 - panic(`arch/aarch64/atomic_arch.h:49:2: assembler statements not supported`) - return BoolInt32(!(r != 0)) -} - -func a_ctz_64(tls *TLS, x uint64_t) int32 { /* atomic_arch.h:68:19: */ - panic(`arch/aarch64/atomic_arch.h:70:2: assembler statements not supported`) - return int32(x) -} - -func a_swap(tls *TLS, p uintptr, v int32) int32 { /* atomic.h:33:19: */ - var old int32 - - for ok := true; ok; ok = !(a_sc(tls, p, v) != 0) { - old = a_ll(tls, p) - } - - return old -} - -func a_fetch_add(tls *TLS, p uintptr, v int32) int32 { /* atomic.h:46:19: */ - var old int32 - - for ok := true; ok; ok = !(a_sc(tls, p, int32(uint32(old)+uint32(v))) != 0) { - old = a_ll(tls, p) - } - - return old -} - -func a_fetch_and(tls *TLS, p uintptr, v int32) int32 { /* atomic.h:59:19: */ - var old int32 - - for ok := true; ok; ok = !(a_sc(tls, p, old&v) != 0) { - old = a_ll(tls, p) - } - - return old -} - -func a_fetch_or(tls *TLS, p uintptr, v int32) int32 { /* atomic.h:72:19: */ - var old int32 - - for ok := true; ok; ok = !(a_sc(tls, p, old|v) != 0) { - old = a_ll(tls, p) - } - - return old -} - -func a_and(tls *TLS, p uintptr, v int32) { /* atomic.h:151:20: */ - a_fetch_and(tls, p, v) -} - -func a_or(tls *TLS, p uintptr, v int32) { /* atomic.h:159:20: */ - a_fetch_or(tls, p, v) -} - -func a_or_64(tls *TLS, p uintptr, v uint64_t) { /* atomic.h:220:20: */ - bp := tls.Alloc(8) - defer tls.Free(8) - - *(*struct{ v uint64_t })(unsafe.Pointer(bp)) = func() (r struct{ v uint64_t }) { - *(*uint64_t)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = v - return r - }() - if *(*uint32_t)(unsafe.Pointer(bp)) != 0 { - a_or(tls, p, int32(*(*uint32_t)(unsafe.Pointer(bp)))) - } - if *(*uint32_t)(unsafe.Pointer(bp + 1*4)) != 0 { - a_or(tls, p+uintptr(1)*4, int32(*(*uint32_t)(unsafe.Pointer(bp + 1*4)))) - } -} - -func a_ctz_32(tls *TLS, x uint32_t) int32 { /* atomic.h:256:19: */ - return int32(_sdebruijn328[x&-x*uint32_t(0x076be629)>>27]) -} - -var _sdebruijn328 = [32]uint8{ - uint8(0), uint8(1), uint8(23), uint8(2), uint8(29), uint8(24), uint8(19), uint8(3), uint8(30), uint8(27), uint8(25), uint8(11), uint8(20), uint8(8), uint8(4), uint8(13), - uint8(31), uint8(22), uint8(28), uint8(18), uint8(26), uint8(10), uint8(7), uint8(12), uint8(21), uint8(17), uint8(9), uint8(6), uint8(16), uint8(5), uint8(15), uint8(14), -} /* atomic.h:261:20 */ - -type __timer = struct { - timerid int32 - _ [4]byte - thread pthread_t -} /* pthread_impl.h:64:1 */ - -func __pthread_self(tls *TLS) uintptr { /* pthread_arch.h:1:30: */ - var self uintptr - panic(`arch/aarch64/pthread_arch.h:4:2: assembler statements not supported`) - return self - uintptr(uint64(unsafe.Sizeof(__pthread{}))) -} - -func __wake(tls *TLS, addr uintptr, cnt int32, priv int32) { /* pthread_impl.h:155:20: */ - if priv != 0 { - priv = 128 - } - if cnt < 0 { - cnt = 0x7fffffff - } - _ = Bool32(X__syscall3(tls, int64(98), int64(addr), int64(1|priv), int64(cnt)) != int64(-38) || X__syscall3(tls, int64(98), int64(addr), int64(1), int64(cnt)) != 0) -} - -func __futexwait(tls *TLS, addr uintptr, val int32, priv int32) { /* pthread_impl.h:162:20: */ - if priv != 0 { - priv = 128 - } - _ = Bool32(X__syscall4(tls, int64(98), int64(addr), int64(0|priv), int64(val), int64(0)) != int64(-38) || X__syscall4(tls, int64(98), int64(addr), int64(0), int64(val), int64(0)) != 0) -} - -var X__fsmu8 = [51]uint32_t{ - func() uint32 { - if 0x2 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x2) - }(), func() uint32 { - if 0x3 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x3) - }(), func() uint32 { - if 0x4 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x4) - }(), func() uint32 { - if 0x5 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x5) - }(), func() uint32 { - if 0x6 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x6) - }(), func() uint32 { - if 0x7 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x7) - }(), - func() uint32 { - if 0x8 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x8) - }(), func() uint32 { - if 0x9 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x9) - }(), func() uint32 { - if 0xa < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0xa) - }(), func() uint32 { - if 0xb < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0xb) - }(), func() uint32 { - if 0xc < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0xc) - }(), func() uint32 { - if 0xd < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0xd) - }(), func() uint32 { - if 0xe < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0xe) - }(), func() uint32 { - if 0xf < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0xf) - }(), - func() uint32 { - if 0x0+16 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x0+16) - }(), func() uint32 { - if 0x1+16 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x1+16) - }(), func() uint32 { - if 0x2+16 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x2+16) - }(), func() uint32 { - if 0x3+16 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x3+16) - }(), func() uint32 { - if 0x4+16 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x4+16) - }(), func() uint32 { - if 0x5+16 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x5+16) - }(), func() uint32 { - if 0x6+16 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x6+16) - }(), func() uint32 { - if 0x7+16 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x7+16) - }(), - func() uint32 { - if 0x8+16 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x8+16) - }(), func() uint32 { - if 0x9+16 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x9+16) - }(), func() uint32 { - if 0xa+16 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0xa+16) - }(), func() uint32 { - if 0xb+16 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0xb+16) - }(), func() uint32 { - if 0xc+16 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0xc+16) - }(), func() uint32 { - if 0xd+16 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0xd+16) - }(), func() uint32 { - if 0xe+16 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0xe+16) - }(), func() uint32 { - if 0xf+16 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0xf+16) - }(), - func() uint32 { - if 0x0 == 0 { - return func() uint32 { - if Int32(0xa0) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0xa0)) - }() << 23 - } - return func() uint32 { - if 0x0 == 0xd { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xa0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(0x0), func() uint32 { - if 0x1 == 0 { - return func() uint32 { - if Int32(0xa0) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0xa0)) - }() << 23 - } - return func() uint32 { - if 0x1 == 0xd { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xa0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(0x1), func() uint32 { - if 0x2 == 0 { - return func() uint32 { - if Int32(0xa0) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0xa0)) - }() << 23 - } - return func() uint32 { - if 0x2 == 0xd { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xa0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(0x2), func() uint32 { - if 0x3 == 0 { - return func() uint32 { - if Int32(0xa0) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0xa0)) - }() << 23 - } - return func() uint32 { - if 0x3 == 0xd { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xa0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(0x3), func() uint32 { - if 0x4 == 0 { - return func() uint32 { - if Int32(0xa0) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0xa0)) - }() << 23 - } - return func() uint32 { - if 0x4 == 0xd { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xa0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(0x4), func() uint32 { - if 0x5 == 0 { - return func() uint32 { - if Int32(0xa0) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0xa0)) - }() << 23 - } - return func() uint32 { - if 0x5 == 0xd { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xa0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(0x5), func() uint32 { - if 0x6 == 0 { - return func() uint32 { - if Int32(0xa0) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0xa0)) - }() << 23 - } - return func() uint32 { - if 0x6 == 0xd { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xa0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(0x6), func() uint32 { - if 0x7 == 0 { - return func() uint32 { - if Int32(0xa0) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0xa0)) - }() << 23 - } - return func() uint32 { - if 0x7 == 0xd { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xa0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(0x7), - func() uint32 { - if 0x8 == 0 { - return func() uint32 { - if Int32(0xa0) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0xa0)) - }() << 23 - } - return func() uint32 { - if 0x8 == 0xd { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xa0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(0x8), func() uint32 { - if 0x9 == 0 { - return func() uint32 { - if Int32(0xa0) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0xa0)) - }() << 23 - } - return func() uint32 { - if 0x9 == 0xd { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xa0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(0x9), func() uint32 { - if 0xa == 0 { - return func() uint32 { - if Int32(0xa0) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0xa0)) - }() << 23 - } - return func() uint32 { - if 0xa == 0xd { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xa0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(0xa), func() uint32 { - if 0xb == 0 { - return func() uint32 { - if Int32(0xa0) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0xa0)) - }() << 23 - } - return func() uint32 { - if 0xb == 0xd { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xa0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(0xb), func() uint32 { - if 0xc == 0 { - return func() uint32 { - if Int32(0xa0) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0xa0)) - }() << 23 - } - return func() uint32 { - if 0xc == 0xd { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xa0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(0xc), func() uint32 { - if 0xd == 0 { - return func() uint32 { - if Int32(0xa0) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0xa0)) - }() << 23 - } - return func() uint32 { - if 0xd == 0xd { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xa0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(0xd), func() uint32 { - if 0xe == 0 { - return func() uint32 { - if Int32(0xa0) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0xa0)) - }() << 23 - } - return func() uint32 { - if 0xe == 0xd { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xa0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(0xe), func() uint32 { - if 0xf == 0 { - return func() uint32 { - if Int32(0xa0) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0xa0)) - }() << 23 - } - return func() uint32 { - if 0xf == 0xd { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xa0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(0xf), - func() uint32 { - if 0x0 >= 5 { - return uint32(0) - } - return func() uint32 { - if 0x0 == 0 { - return func() uint32 { - if Int32(0x90) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x90)) - }() << 23 - } - return func() uint32 { - if 0x0 == 4 { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0x90)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>12 | uint32_t(0x0), func() uint32 { - if 0x1 >= 5 { - return uint32(0) - } - return func() uint32 { - if 0x1 == 0 { - return func() uint32 { - if Int32(0x90) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x90)) - }() << 23 - } - return func() uint32 { - if 0x1 == 4 { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0x90)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>12 | uint32_t(0x1), func() uint32 { - if 0x2 >= 5 { - return uint32(0) - } - return func() uint32 { - if 0x2 == 0 { - return func() uint32 { - if Int32(0x90) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x90)) - }() << 23 - } - return func() uint32 { - if 0x2 == 4 { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0x90)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>12 | uint32_t(0x2), func() uint32 { - if 0x3 >= 5 { - return uint32(0) - } - return func() uint32 { - if 0x3 == 0 { - return func() uint32 { - if Int32(0x90) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x90)) - }() << 23 - } - return func() uint32 { - if 0x3 == 4 { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0x90)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>12 | uint32_t(0x3), func() uint32 { - if 0x4 >= 5 { - return uint32(0) - } - return func() uint32 { - if 0x4 == 0 { - return func() uint32 { - if Int32(0x90) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x90)) - }() << 23 - } - return func() uint32 { - if 0x4 == 4 { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0x90)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>12 | uint32_t(0x4), -} /* internal.c:18:16 */ - -type wint_t = uint32 /* alltypes.h:21:18 */ - -type wctype_t = uint64 /* alltypes.h:211:23 */ - -type __mbstate_t = struct { - __opaque1 uint32 - __opaque2 uint32 -} /* alltypes.h:345:9 */ - -type mbstate_t = __mbstate_t /* alltypes.h:345:63 */ - -func Xmbrtowc(tls *TLS, wc uintptr, src uintptr, n size_t, st uintptr) size_t { /* mbrtowc.c:6:8: */ - bp := tls.Alloc(4) - defer tls.Free(4) - - var c uint32 - var s uintptr - var N uint32 - // var dummy wchar_t at bp, 4 - s = src - N = uint32(n) - - if !!(st != 0) { - goto __1 - } - st = uintptr(unsafe.Pointer(&_sinternal_state)) -__1: - ; - c = *(*uint32)(unsafe.Pointer(st)) - - if !!(s != 0) { - goto __2 - } - if !(c != 0) { - goto __4 - } - goto ilseq -__4: - ; - return uint64(0) - goto __3 -__2: - if !!(wc != 0) { - goto __5 - } - wc = bp /* &dummy */ -__5: - ; -__3: - ; - - if !!(n != 0) { - goto __6 - } - return Uint64FromInt32(-2) -__6: - ; - if !!(c != 0) { - goto __7 - } - if !(int32(*(*uint8)(unsafe.Pointer(s))) < 0x80) { - goto __8 - } - return BoolUint64(!!(int32(AssignPtrUint32(wc, wchar_t(*(*uint8)(unsafe.Pointer(s))))) != 0)) -__8: - ; - if !(func() int32 { - if !!(int32(*(*uintptr)(unsafe.Pointer((*__pthread)(unsafe.Pointer(__pthread_self(tls))).locale))) != 0) { - return 4 - } - return 1 - }() == 1) { - goto __9 - } - *(*wchar_t)(unsafe.Pointer(wc)) = wchar_t(0xdfff & int32(int8(*(*uint8)(unsafe.Pointer(s))))) - return 1 -__9: - ; - if !(uint32(*(*uint8)(unsafe.Pointer(s)))-0xc2 > 0xf4-0xc2) { - goto __10 - } - goto ilseq -__10: - ; - c = X__fsmu8[uint32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&s, 1))))-0xc2] - n-- -__7: - ; - - if !(n != 0) { - goto __11 - } - if !((int32(*(*uint8)(unsafe.Pointer(s)))>>3-0x10|(int32(*(*uint8)(unsafe.Pointer(s)))>>3+int32_t(c)>>26))&CplInt32(7) != 0) { - goto __12 - } - goto ilseq -__12: - ; -loop: - c = c<<6 | uint32(int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&s, 1))))-0x80) - n-- - if !!(c&(uint32(1)<<31) != 0) { - goto __13 - } - *(*uint32)(unsafe.Pointer(st)) = uint32(0) - *(*wchar_t)(unsafe.Pointer(wc)) = c - return size_t(N) - n -__13: - ; - if !(n != 0) { - goto __14 - } - if !(uint32(*(*uint8)(unsafe.Pointer(s)))-0x80 >= uint32(0x40)) { - goto __15 - } - goto ilseq -__15: - ; - goto loop -__14: - ; -__11: - ; - - *(*uint32)(unsafe.Pointer(st)) = c - return Uint64FromInt32(-2) -ilseq: - *(*uint32)(unsafe.Pointer(st)) = uint32(0) - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 84 - return Uint64FromInt32(-1) -} - -var _sinternal_state uint32 /* mbrtowc.c:8:18: */ - -func Xmbsinit(tls *TLS, st uintptr) int32 { /* mbsinit.c:3:5: */ - return Bool32(!(st != 0) || !(int32(*(*uint32)(unsafe.Pointer(st))) != 0)) -} - -type imaxdiv_t = struct { - quot intmax_t - rem intmax_t -} /* inttypes.h:14:40 */ - -type socklen_t = uint32 /* alltypes.h:369:18 */ - -type sa_family_t = uint16 /* alltypes.h:374:24 */ - -type msghdr = struct { - msg_name uintptr - msg_namelen socklen_t - _ [4]byte - msg_iov uintptr - msg_iovlen int32 - __pad1 int32 - msg_control uintptr - msg_controllen socklen_t - __pad2 int32 - msg_flags int32 - _ [4]byte -} /* socket.h:22:1 */ - -type cmsghdr = struct { - cmsg_len socklen_t - __pad1 int32 - cmsg_level int32 - cmsg_type int32 -} /* socket.h:44:1 */ - -type linger = struct { - l_onoff int32 - l_linger int32 -} /* socket.h:74:1 */ - -type sockaddr = struct { - sa_family sa_family_t - sa_data [14]uint8 -} /* socket.h:367:1 */ - -type sockaddr_storage = struct { - ss_family sa_family_t - __ss_padding [118]uint8 - __ss_align uint64 -} /* socket.h:372:1 */ - -type in_port_t = uint16_t /* in.h:12:18 */ -type in_addr_t = uint32_t /* in.h:13:18 */ -type in_addr = struct{ s_addr in_addr_t } /* in.h:14:1 */ - -type sockaddr_in = struct { - sin_family sa_family_t - sin_port in_port_t - sin_addr struct{ s_addr in_addr_t } - sin_zero [8]uint8_t -} /* in.h:16:1 */ - -type in6_addr = struct { - __in6_union struct { - _ [0]uint32 - __s6_addr [16]uint8_t - } -} /* in.h:23:1 */ - -type sockaddr_in6 = struct { - sin6_family sa_family_t - sin6_port in_port_t - sin6_flowinfo uint32_t - sin6_addr struct { - __in6_union struct { - _ [0]uint32 - __s6_addr [16]uint8_t - } - } - sin6_scope_id uint32_t -} /* in.h:34:1 */ - -type ipv6_mreq = struct { - ipv6mr_multiaddr struct { - __in6_union struct { - _ [0]uint32 - __s6_addr [16]uint8_t - } - } - ipv6mr_interface uint32 -} /* in.h:42:1 */ - -type ip_opts = struct { - ip_dst struct{ s_addr in_addr_t } - ip_opts [40]uint8 -} /* in.h:229:1 */ - -type ip_mreq = struct { - imr_multiaddr struct{ s_addr in_addr_t } - imr_interface struct{ s_addr in_addr_t } -} /* in.h:247:1 */ - -type ip_mreqn = struct { - imr_multiaddr struct{ s_addr in_addr_t } - imr_address struct{ s_addr in_addr_t } - imr_ifindex int32 -} /* in.h:252:1 */ - -type ip_mreq_source = struct { - imr_multiaddr struct{ s_addr in_addr_t } - imr_interface struct{ s_addr in_addr_t } - imr_sourceaddr struct{ s_addr in_addr_t } -} /* in.h:258:1 */ - -type ip_msfilter = struct { - imsf_multiaddr struct{ s_addr in_addr_t } - imsf_interface struct{ s_addr in_addr_t } - imsf_fmode uint32_t - imsf_numsrc uint32_t - imsf_slist [1]struct{ s_addr in_addr_t } -} /* in.h:264:1 */ - -type group_req = struct { - gr_interface uint32_t - _ [4]byte - gr_group struct { - ss_family sa_family_t - __ss_padding [118]uint8 - __ss_align uint64 - } -} /* in.h:275:1 */ - -type group_source_req = struct { - gsr_interface uint32_t - _ [4]byte - gsr_group struct { - ss_family sa_family_t - __ss_padding [118]uint8 - __ss_align uint64 - } - gsr_source struct { - ss_family sa_family_t - __ss_padding [118]uint8 - __ss_align uint64 - } -} /* in.h:280:1 */ - -type group_filter = struct { - gf_interface uint32_t - _ [4]byte - gf_group struct { - ss_family sa_family_t - __ss_padding [118]uint8 - __ss_align uint64 - } - gf_fmode uint32_t - gf_numsrc uint32_t - gf_slist [1]struct { - ss_family sa_family_t - __ss_padding [118]uint8 - __ss_align uint64 - } -} /* in.h:286:1 */ - -type in_pktinfo = struct { - ipi_ifindex int32 - ipi_spec_dst struct{ s_addr in_addr_t } - ipi_addr struct{ s_addr in_addr_t } -} /* in.h:297:1 */ - -type in6_pktinfo = struct { - ipi6_addr struct { - __in6_union struct { - _ [0]uint32 - __s6_addr [16]uint8_t - } - } - ipi6_ifindex uint32 -} /* in.h:303:1 */ - -type ip6_mtuinfo = struct { - ip6m_addr struct { - sin6_family sa_family_t - sin6_port in_port_t - sin6_flowinfo uint32_t - sin6_addr struct { - __in6_union struct { - _ [0]uint32 - __s6_addr [16]uint8_t - } - } - sin6_scope_id uint32_t - } - ip6m_mtu uint32_t -} /* in.h:308:1 */ - -type addrinfo = struct { - ai_flags int32 - ai_family int32 - ai_socktype int32 - ai_protocol int32 - ai_addrlen socklen_t - _ [4]byte - ai_addr uintptr - ai_canonname uintptr - ai_next uintptr -} /* netdb.h:16:1 */ - -// Legacy functions follow (marked OBsolete in SUS) - -type netent = struct { - n_name uintptr - n_aliases uintptr - n_addrtype int32 - n_net uint32_t -} /* netdb.h:62:1 */ - -type hostent = struct { - h_name uintptr - h_aliases uintptr - h_addrtype int32 - h_length int32 - h_addr_list uintptr -} /* netdb.h:69:1 */ - -type servent = struct { - s_name uintptr - s_aliases uintptr - s_port int32 - _ [4]byte - s_proto uintptr -} /* netdb.h:78:1 */ - -type protoent = struct { - p_name uintptr - p_aliases uintptr - p_proto int32 - _ [4]byte -} /* netdb.h:85:1 */ - -type aibuf = struct { - ai struct { - ai_flags int32 - ai_family int32 - ai_socktype int32 - ai_protocol int32 - ai_addrlen socklen_t - _ [4]byte - ai_addr uintptr - ai_canonname uintptr - ai_next uintptr - } - sa struct { - sin struct { - sin_family sa_family_t - sin_port in_port_t - sin_addr struct{ s_addr in_addr_t } - sin_zero [8]uint8_t - } - _ [12]byte - } - lock [1]int32 - slot int16 - ref int16 - _ [4]byte -} /* lookup.h:10:1 */ - -type sa = struct { - sin struct { - sin_family sa_family_t - sin_port in_port_t - sin_addr struct{ s_addr in_addr_t } - sin_zero [8]uint8_t - } - _ [12]byte -} /* lookup.h:10:1 */ - -type address = struct { - family int32 - scopeid uint32 - addr [16]uint8_t - sortkey int32 -} /* lookup.h:20:1 */ - -type service = struct { - port uint16_t - proto uint8 - socktype uint8 -} /* lookup.h:27:1 */ - -type resolvconf = struct { - ns [3]struct { - family int32 - scopeid uint32 - addr [16]uint8_t - sortkey int32 - } - nns uint32 - attempts uint32 - ndots uint32 - timeout uint32 -} /* lookup.h:34:1 */ - -func Xfreeaddrinfo(tls *TLS, p uintptr) { /* freeaddrinfo.c:7:6: */ - var cnt size_t - cnt = uint64(1) -__1: - if !((*addrinfo)(unsafe.Pointer(p)).ai_next != 0) { - goto __3 - } - goto __2 -__2: - cnt++ - p = (*addrinfo)(unsafe.Pointer(p)).ai_next - goto __1 - goto __3 -__3: - ; - var b uintptr = p - uintptr(uint64(uintptr(0))) - b -= 88 * uintptr((*aibuf)(unsafe.Pointer(b)).slot) - //TODO LOCK(b->lock); - if !(int32(AssignSubPtrInt16(b+82, int16(cnt))) != 0) { - Xfree(tls, b) - } - //TODO else UNLOCK(b->lock); -} - -func Xgetaddrinfo(tls *TLS, host uintptr, serv uintptr, hint uintptr, res uintptr) int32 { /* getaddrinfo.c:12:5: */ - bp := tls.Alloc(1608) - defer tls.Free(1608) - - // var ports [2]service at bp, 8 - - // var addrs [48]address at bp+8, 1344 - - // var canon [256]uint8 at bp+1352, 256 - - var outcanon uintptr - var nservs int32 - var naddrs int32 - var nais int32 - var canon_len int32 - var i int32 - var j int32 - var k int32 - var family int32 = 0 - var flags int32 = 0 - var proto int32 = 0 - var socktype int32 = 0 - var out uintptr - - if !(host != 0) && !(serv != 0) { - return -2 - } - - if hint != 0 { - family = (*addrinfo)(unsafe.Pointer(hint)).ai_family - flags = (*addrinfo)(unsafe.Pointer(hint)).ai_flags - proto = (*addrinfo)(unsafe.Pointer(hint)).ai_protocol - socktype = (*addrinfo)(unsafe.Pointer(hint)).ai_socktype - - var mask int32 = 0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x400 - if flags&mask != flags { - return -1 - } - - switch family { - case 2: - fallthrough - case 10: - fallthrough - case 0: - break - fallthrough - default: - return -6 - } - } - - if flags&0x20 != 0 { - Xabort(tls) //TODO- - // /* Define the "an address is configured" condition for address - // * families via ability to create a socket for the family plus - // * routability of the loopback address for the family. */ - // static const struct sockaddr_in lo4 = { - // .sin_family = AF_INET, .sin_port = 65535, - // .sin_addr.s_addr = __BYTE_ORDER == __BIG_ENDIAN - // ? 0x7f000001 : 0x0100007f - // }; - // static const struct sockaddr_in6 lo6 = { - // .sin6_family = AF_INET6, .sin6_port = 65535, - // .sin6_addr = IN6ADDR_LOOPBACK_INIT - // }; - // int tf[2] = { AF_INET, AF_INET6 }; - // const void *ta[2] = { &lo4, &lo6 }; - // socklen_t tl[2] = { sizeof lo4, sizeof lo6 }; - // for (i=0; i<2; i++) { - // if (family==tf[1-i]) continue; - // int s = socket(tf[i], SOCK_CLOEXEC|SOCK_DGRAM, - // IPPROTO_UDP); - // if (s>=0) { - // int cs; - // pthread_setcancelstate( - // PTHREAD_CANCEL_DISABLE, &cs); - // int r = connect(s, ta[i], tl[i]); - // pthread_setcancelstate(cs, 0); - // close(s); - // if (!r) continue; - // } - // switch (errno) { - // case EADDRNOTAVAIL: - // case EAFNOSUPPORT: - // case EHOSTUNREACH: - // case ENETDOWN: - // case ENETUNREACH: - // break; - // default: - // return EAI_SYSTEM; - // } - // if (family == tf[i]) return EAI_NONAME; - // family = tf[1-i]; - // } - } - - nservs = X__lookup_serv(tls, bp, serv, proto, socktype, flags) - if nservs < 0 { - return nservs - } - - naddrs = X__lookup_name(tls, bp+8, bp+1352, host, family, flags) - if naddrs < 0 { - return naddrs - } - - nais = nservs * naddrs - canon_len = int32(Xstrlen(tls, bp+1352)) - out = Xcalloc(tls, uint64(1), uint64(nais)*uint64(unsafe.Sizeof(aibuf{}))+uint64(canon_len)+uint64(1)) - if !(out != 0) { - return -10 - } - - if canon_len != 0 { - outcanon = out + uintptr(nais)*88 - Xmemcpy(tls, outcanon, bp+1352, uint64(canon_len+1)) - } else { - outcanon = uintptr(0) - } - - for k = AssignInt32(&i, 0); i < naddrs; i++ { - j = 0 - __1: - if !(j < nservs) { - goto __3 - } - { - (*aibuf)(unsafe.Pointer(out + uintptr(k)*88)).slot = int16(k) - //TODO out[k].ai = (struct addrinfo){ - //TODO .ai_family = addrs[i].family, - //TODO .ai_socktype = ports[j].socktype, - //TODO .ai_protocol = ports[j].proto, - //TODO .ai_addrlen = addrs[i].family == AF_INET - //TODO ? sizeof(struct sockaddr_in) - //TODO : sizeof(struct sockaddr_in6), - //TODO .ai_addr = (void *)&out[k].sa, - //TODO .ai_canonname = outcanon }; - (*aibuf)(unsafe.Pointer(out + uintptr(k)*88)).ai.ai_family = (*address)(unsafe.Pointer(bp + 8 + uintptr(i)*28)).family - (*aibuf)(unsafe.Pointer(out + uintptr(k)*88)).ai.ai_socktype = int32((*service)(unsafe.Pointer(bp + uintptr(j)*4)).socktype) - (*aibuf)(unsafe.Pointer(out + uintptr(k)*88)).ai.ai_protocol = int32((*service)(unsafe.Pointer(bp + uintptr(j)*4)).proto) - (*aibuf)(unsafe.Pointer(out + uintptr(k)*88)).ai.ai_addrlen = func() uint32 { - if (*address)(unsafe.Pointer(bp+8+uintptr(i)*28)).family == 2 { - return uint32(unsafe.Sizeof(sockaddr_in{})) - } - return uint32(unsafe.Sizeof(sockaddr_in6{})) - }() - (*aibuf)(unsafe.Pointer(out + uintptr(k)*88)).ai.ai_addr = out + uintptr(k)*88 + 48 - (*aibuf)(unsafe.Pointer(out + uintptr(k)*88)).ai.ai_canonname = outcanon - if k != 0 { - (*aibuf)(unsafe.Pointer(out + uintptr(k-1)*88)).ai.ai_next = out + uintptr(k)*88 - } - switch (*address)(unsafe.Pointer(bp + 8 + uintptr(i)*28)).family { - case 2: - (*sockaddr_in)(unsafe.Pointer(out + uintptr(k)*88 + 48)).sin_family = sa_family_t(2) - (*sockaddr_in)(unsafe.Pointer(out + uintptr(k)*88 + 48)).sin_port = Xhtons(tls, (*service)(unsafe.Pointer(bp+uintptr(j)*4)).port) - Xmemcpy(tls, out+uintptr(k)*88+48+4, bp+8+uintptr(i)*28+8, uint64(4)) - break - case 10: - (*sockaddr_in6)(unsafe.Pointer(out + uintptr(k)*88 + 48)).sin6_family = sa_family_t(10) - (*sockaddr_in6)(unsafe.Pointer(out + uintptr(k)*88 + 48)).sin6_port = Xhtons(tls, (*service)(unsafe.Pointer(bp+uintptr(j)*4)).port) - (*sockaddr_in6)(unsafe.Pointer(out + uintptr(k)*88 + 48)).sin6_scope_id = (*address)(unsafe.Pointer(bp + 8 + uintptr(i)*28)).scopeid - Xmemcpy(tls, out+uintptr(k)*88+48+8, bp+8+uintptr(i)*28+8, uint64(16)) - break - } - - } - goto __2 - __2: - j++ - k++ - goto __1 - goto __3 - __3: - } - (*aibuf)(unsafe.Pointer(out)).ref = int16(nais) - *(*uintptr)(unsafe.Pointer(res)) = out - return 0 -} - -type ucred = struct { - pid pid_t - uid uid_t - gid gid_t -} /* socket.h:57:1 */ - -type mmsghdr = struct { - msg_hdr struct { - msg_name uintptr - msg_namelen socklen_t - _ [4]byte - msg_iov uintptr - msg_iovlen int32 - __pad1 int32 - msg_control uintptr - msg_controllen socklen_t - __pad2 int32 - msg_flags int32 - _ [4]byte - } - msg_len uint32 - _ [4]byte -} /* socket.h:63:1 */ - -func Xgethostbyaddr(tls *TLS, a uintptr, l socklen_t, af int32) uintptr { /* gethostbyaddr.c:7:16: */ - bp := tls.Alloc(8) - defer tls.Free(8) - - var size size_t = uint64(63) - // var res uintptr at bp, 8 - - var err int32 - for ok := true; ok; ok = err == 34 { - Xfree(tls, _sh) - _sh = Xmalloc(tls, AssignAddUint64(&size, size+uint64(1))) - if !(_sh != 0) { - *(*int32)(unsafe.Pointer(X__h_errno_location(tls))) = 3 - return uintptr(0) - } - err = Xgethostbyaddr_r(tls, a, l, af, _sh, - _sh+uintptr(1)*32, size-size_t(unsafe.Sizeof(hostent{})), bp, X__h_errno_location(tls)) - } - if err != 0 { - return uintptr(0) - } - return _sh -} - -var _sh uintptr /* gethostbyaddr.c:9:24: */ - -func Xgethostbyaddr_r(tls *TLS, a uintptr, l socklen_t, af int32, h uintptr, buf uintptr, buflen size_t, res uintptr, err uintptr) int32 { /* gethostbyaddr_r.c:10:5: */ - bp := tls.Alloc(28) - defer tls.Free(28) - - //TODO union { - //TODO struct sockaddr_in sin; - //TODO struct sockaddr_in6 sin6; - //TODO } sa = { .sin.sin_family = af }; - *(*struct { - sin sockaddr_in - _ [12]byte - })(unsafe.Pointer(bp)) = struct { - sin sockaddr_in - _ [12]byte - }{} //TODO- - (*sockaddr_in)(unsafe.Pointer(bp)).sin_family = sa_family_t(af) //TODO- - var sl socklen_t - if af == 10 { - sl = uint32(unsafe.Sizeof(sockaddr_in6{})) - } else { - sl = uint32(unsafe.Sizeof(sockaddr_in{})) - } - var i int32 - - *(*uintptr)(unsafe.Pointer(res)) = uintptr(0) - - // Load address argument into sockaddr structure - if af == 10 && l == socklen_t(16) { - Xmemcpy(tls, bp+8, a, uint64(16)) - } else if af == 2 && l == socklen_t(4) { - Xmemcpy(tls, bp+4, a, uint64(4)) - } else { - *(*int32)(unsafe.Pointer(err)) = 3 - return 22 - } - - // Align buffer and check for space for pointers and ip address - i = int32(uintptr_t(buf) & (uint64(unsafe.Sizeof(uintptr(0))) - uint64(1))) - if !(i != 0) { - i = int32(unsafe.Sizeof(uintptr(0))) - } - if buflen <= uint64(5)*uint64(unsafe.Sizeof(uintptr(0)))-uint64(i)+uint64(l) { - return 34 - } - buf += uintptr(uint64(unsafe.Sizeof(uintptr(0))) - uint64(i)) - buflen = buflen - (uint64(5)*uint64(unsafe.Sizeof(uintptr(0))) - uint64(i) + uint64(l)) - - (*hostent)(unsafe.Pointer(h)).h_addr_list = buf - buf += uintptr(uint64(2) * uint64(unsafe.Sizeof(uintptr(0)))) - (*hostent)(unsafe.Pointer(h)).h_aliases = buf - buf += uintptr(uint64(2) * uint64(unsafe.Sizeof(uintptr(0)))) - - *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_addr_list)) = buf - Xmemcpy(tls, *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_addr_list)), a, uint64(l)) - buf += uintptr(l) - *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_addr_list + 1*8)) = uintptr(0) - *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_aliases)) = buf - *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_aliases + 1*8)) = uintptr(0) - - switch Xgetnameinfo(tls, bp, sl, buf, uint32(buflen), uintptr(0), uint32(0), 0) { - case -3: - *(*int32)(unsafe.Pointer(err)) = 2 - return 11 - case -12: - return 34 - default: - fallthrough - case -10: - fallthrough - case -11: - fallthrough - case -4: - *(*int32)(unsafe.Pointer(err)) = 3 - return *(*int32)(unsafe.Pointer(X___errno_location(tls))) - case 0: - break - } - - (*hostent)(unsafe.Pointer(h)).h_addrtype = af - (*hostent)(unsafe.Pointer(h)).h_length = int32(l) - (*hostent)(unsafe.Pointer(h)).h_name = *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_aliases)) - *(*uintptr)(unsafe.Pointer(res)) = h - return 0 -} - -func Xgethostbyname(tls *TLS, name uintptr) uintptr { /* gethostbyname.c:8:16: */ - return Xgethostbyname2(tls, name, 2) -} - -func Xgethostbyname2(tls *TLS, name uintptr, af int32) uintptr { /* gethostbyname2.c:8:16: */ - bp := tls.Alloc(8) - defer tls.Free(8) - - var size size_t = uint64(63) - // var res uintptr at bp, 8 - - var err int32 - for ok := true; ok; ok = err == 34 { - Xfree(tls, _sh1) - _sh1 = Xmalloc(tls, AssignAddUint64(&size, size+uint64(1))) - if !(_sh1 != 0) { - *(*int32)(unsafe.Pointer(X__h_errno_location(tls))) = 3 - return uintptr(0) - } - err = Xgethostbyname2_r(tls, name, af, _sh1, - _sh1+uintptr(1)*32, size-size_t(unsafe.Sizeof(hostent{})), bp, X__h_errno_location(tls)) - } - if err != 0 { - return uintptr(0) - } - return _sh1 -} - -var _sh1 uintptr /* gethostbyname2.c:10:24: */ - -func Xgethostbyname2_r(tls *TLS, name uintptr, af int32, h uintptr, buf uintptr, buflen size_t, res uintptr, err uintptr) int32 { /* gethostbyname2_r.c:11:5: */ - bp := tls.Alloc(1600) - defer tls.Free(1600) - - // var addrs [48]address at bp, 1344 - - // var canon [256]uint8 at bp+1344, 256 - - var i int32 - var cnt int32 - var align size_t - var need size_t - - *(*uintptr)(unsafe.Pointer(res)) = uintptr(0) - cnt = X__lookup_name(tls, bp, bp+1344, name, af, 0x02) - if cnt < 0 { - switch cnt { - case -2: - *(*int32)(unsafe.Pointer(err)) = 1 - return 2 - fallthrough - case -3: - *(*int32)(unsafe.Pointer(err)) = 2 - return 11 - fallthrough - default: - fallthrough - case -4: - *(*int32)(unsafe.Pointer(err)) = 3 - return 74 - fallthrough - case -10: - fallthrough - case -11: - *(*int32)(unsafe.Pointer(err)) = 3 - return *(*int32)(unsafe.Pointer(X___errno_location(tls))) - } - } - - (*hostent)(unsafe.Pointer(h)).h_addrtype = af - (*hostent)(unsafe.Pointer(h)).h_length = func() int32 { - if af == 10 { - return 16 - } - return 4 - }() - - // Align buffer - align = -uintptr_t(buf) & (uint64(unsafe.Sizeof(uintptr(0))) - uint64(1)) - - need = uint64(4) * uint64(unsafe.Sizeof(uintptr(0))) - need = need + uint64(cnt+1)*(uint64(unsafe.Sizeof(uintptr(0)))+uint64((*hostent)(unsafe.Pointer(h)).h_length)) - need = need + (Xstrlen(tls, name) + uint64(1)) - need = need + (Xstrlen(tls, bp+1344) + uint64(1)) - need = need + align - - if need > buflen { - return 34 - } - - buf += uintptr(align) - (*hostent)(unsafe.Pointer(h)).h_aliases = buf - buf += uintptr(uint64(3) * uint64(unsafe.Sizeof(uintptr(0)))) - (*hostent)(unsafe.Pointer(h)).h_addr_list = buf - buf += uintptr(uint64(cnt+1) * uint64(unsafe.Sizeof(uintptr(0)))) - - for i = 0; i < cnt; i++ { - *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_addr_list + uintptr(i)*8)) = buf - buf += uintptr((*hostent)(unsafe.Pointer(h)).h_length) - Xmemcpy(tls, *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_addr_list + uintptr(i)*8)), bp+uintptr(i)*28+8, uint64((*hostent)(unsafe.Pointer(h)).h_length)) - } - *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_addr_list + uintptr(i)*8)) = uintptr(0) - - (*hostent)(unsafe.Pointer(h)).h_name = AssignPtrUintptr((*hostent)(unsafe.Pointer(h)).h_aliases, buf) - Xstrcpy(tls, (*hostent)(unsafe.Pointer(h)).h_name, bp+1344) - buf += uintptr(Xstrlen(tls, (*hostent)(unsafe.Pointer(h)).h_name) + uint64(1)) - - if Xstrcmp(tls, (*hostent)(unsafe.Pointer(h)).h_name, name) != 0 { - *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_aliases + 1*8)) = buf - Xstrcpy(tls, *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_aliases + 1*8)), name) - buf += uintptr(Xstrlen(tls, *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_aliases + 1*8))) + uint64(1)) - } else { - *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_aliases + 1*8)) = uintptr(0) - } - - *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_aliases + 2*8)) = uintptr(0) - - *(*uintptr)(unsafe.Pointer(res)) = h - return 0 -} - -func Xgethostbyname_r(tls *TLS, name uintptr, h uintptr, buf uintptr, buflen size_t, res uintptr, err uintptr) int32 { /* gethostbyname_r.c:6:5: */ - return Xgethostbyname2_r(tls, name, 2, h, buf, buflen, res, err) -} - -type if_nameindex = struct { - if_index uint32 - _ [4]byte - if_name uintptr -} /* if.h:12:1 */ - -type ifaddr = struct { - ifa_addr struct { - sa_family sa_family_t - sa_data [14]uint8 - } - ifa_ifu struct { - ifu_broadaddr struct { - sa_family sa_family_t - sa_data [14]uint8 - } - } - ifa_ifp uintptr - ifa_next uintptr -} /* if.h:51:1 */ - -type ifmap = struct { - mem_start uint64 - mem_end uint64 - base_addr uint16 - irq uint8 - dma uint8 - port uint8 - _ [3]byte -} /* if.h:64:1 */ - -type ifreq = struct { - ifr_ifrn struct{ ifrn_name [16]uint8 } - ifr_ifru struct { - _ [0]uint64 - ifru_addr struct { - sa_family sa_family_t - sa_data [14]uint8 - } - _ [8]byte - } -} /* if.h:76:1 */ - -type ifconf = struct { - ifc_len int32 - _ [4]byte - ifc_ifcu struct{ ifcu_buf uintptr } -} /* if.h:116:1 */ - -type ns_sect = uint32 /* nameser.h:37:3 */ - -type __ns_msg = struct { - _msg uintptr - _eom uintptr - _id uint16_t - _flags uint16_t - _counts [4]uint16_t - _ [4]byte - _sections [4]uintptr - _sect ns_sect - _rrnum int32 - _msg_ptr uintptr -} /* nameser.h:39:9 */ - -type ns_msg = __ns_msg /* nameser.h:46:3 */ - -type _ns_flagdata = struct { - mask int32 - shift int32 -} /* nameser.h:48:1 */ - -type __ns_rr = struct { - name [1025]uint8 - _ [1]byte - __type uint16_t - rr_class uint16_t - _ [2]byte - ttl uint32_t - rdlength uint16_t - _ [2]byte - rdata uintptr -} /* nameser.h:59:9 */ - -type ns_rr = __ns_rr /* nameser.h:66:3 */ - -type ns_flag = uint32 /* nameser.h:87:3 */ - -type ns_opcode = uint32 /* nameser.h:96:3 */ - -type ns_rcode = uint32 /* nameser.h:115:3 */ - -type ns_update_operation = uint32 /* nameser.h:121:3 */ - -type ns_tsig_key1 = struct { - name [1025]uint8 - alg [1025]uint8 - _ [6]byte - data uintptr - len int32 - _ [4]byte -} /* nameser.h:123:1 */ - -type ns_tsig_key = ns_tsig_key1 /* nameser.h:128:28 */ - -type ns_tcp_tsig_state1 = struct { - counter int32 - _ [4]byte - key uintptr - ctx uintptr - sig [512]uint8 - siglen int32 - _ [4]byte -} /* nameser.h:130:1 */ - -type ns_tcp_tsig_state = ns_tcp_tsig_state1 /* nameser.h:137:34 */ - -type ns_type = uint32 /* nameser.h:200:3 */ - -type ns_class = uint32 /* nameser.h:219:3 */ - -type ns_key_types = uint32 /* nameser.h:226:3 */ - -type ns_cert_types = uint32 /* nameser.h:234:3 */ - -type HEADER = struct { - _ [0]uint32 - id uint32 /* unsigned id: 16, unsigned rd: 1, unsigned tc: 1, unsigned aa: 1, unsigned opcode: 4, unsigned qr: 1, unsigned rcode: 4, unsigned cd: 1, unsigned ad: 1, unsigned unused: 1, unsigned ra: 1 */ - qdcount uint32 /* unsigned qdcount: 16, unsigned ancount: 16 */ - nscount uint32 /* unsigned nscount: 16, unsigned arcount: 16 */ -} /* nameser.h:353:3 */ - -// unused; purely for broken apps -type __res_state = struct { - retrans int32 - retry int32 - options uint64 - nscount int32 - nsaddr_list [3]struct { - sin_family sa_family_t - sin_port in_port_t - sin_addr struct{ s_addr in_addr_t } - sin_zero [8]uint8_t - } - id uint16 - _ [2]byte - dnsrch [7]uintptr - defdname [256]uint8 - pfcode uint64 - ndots uint32 /* unsigned ndots: 4, unsigned nsort: 4, unsigned ipv6_unavail: 1, unsigned unused: 23 */ - _ [4]byte - sort_list [10]struct { - addr struct{ s_addr in_addr_t } - mask uint32_t - } - qhook uintptr - rhook uintptr - res_h_errno int32 - _vcsock int32 - _flags uint32 - _ [4]byte - _u struct { - _ [0]uint64 - pad [52]uint8 - _ [4]byte - } -} /* resolv.h:26:9 */ - -// unused; purely for broken apps -type res_state = uintptr /* resolv.h:62:3 */ - -type res_sym = struct { - number int32 - _ [4]byte - name uintptr - humanname uintptr -} /* resolv.h:70:1 */ - -func itoa(tls *TLS, p uintptr, x uint32) uintptr { /* getnameinfo.c:18:13: */ - p += uintptr(uint64(3) * uint64(unsafe.Sizeof(int32(0)))) - *(*uint8)(unsafe.Pointer(PreDecUintptr(&p, 1))) = uint8(0) - for ok := true; ok; ok = x != 0 { - *(*uint8)(unsafe.Pointer(PreDecUintptr(&p, 1))) = uint8(uint32('0') + x%uint32(10)) - x = x / uint32(10) - } - return p -} - -func mkptr4(tls *TLS, s uintptr, ip uintptr) { /* getnameinfo.c:28:13: */ - bp := tls.Alloc(32) - defer tls.Free(32) - - Xsprintf(tls, s, ts+25, - VaList(bp, int32(*(*uint8)(unsafe.Pointer(ip + 3))), int32(*(*uint8)(unsafe.Pointer(ip + 2))), int32(*(*uint8)(unsafe.Pointer(ip + 1))), int32(*(*uint8)(unsafe.Pointer(ip))))) -} - -func mkptr6(tls *TLS, s uintptr, ip uintptr) { /* getnameinfo.c:34:13: */ - var i int32 - for i = 15; i >= 0; i-- { - *(*uint8)(unsafe.Pointer(PostIncUintptr(&s, 1))) = _sxdigits[int32(*(*uint8)(unsafe.Pointer(ip + uintptr(i))))&15] - *(*uint8)(unsafe.Pointer(PostIncUintptr(&s, 1))) = uint8('.') - *(*uint8)(unsafe.Pointer(PostIncUintptr(&s, 1))) = _sxdigits[int32(*(*uint8)(unsafe.Pointer(ip + uintptr(i))))>>4] - *(*uint8)(unsafe.Pointer(PostIncUintptr(&s, 1))) = uint8('.') - } - Xstrcpy(tls, s, ts+50) -} - -var _sxdigits = *(*[17]uint8)(unsafe.Pointer(ts + 59)) /* getnameinfo.c:36:20 */ - -func reverse_hosts(tls *TLS, buf uintptr, a uintptr, scopeid uint32, family int32) { /* getnameinfo.c:45:13: */ - bp := tls.Alloc(556) - defer tls.Free(556) - - // var line [512]uint8 at bp+16, 512 - - var p uintptr - var z uintptr - var _buf [1032]uint8 - _ = _buf - // var atmp [16]uint8 at bp, 16 - - // var iplit address at bp+528, 28 - - //TODO FILE _f, *f = __fopen_rb_ca("/etc/hosts", &_f, _buf, sizeof _buf); - var f uintptr = Xfopen(tls, ts+76, ts+87) - if !(f != 0) { - return - } - if family == 2 { - Xmemcpy(tls, bp+uintptr(12), a, uint64(4)) - Xmemcpy(tls, bp, ts+90, uint64(12)) - a = bp /* &atmp[0] */ - } - for Xfgets(tls, bp+16, int32(unsafe.Sizeof([512]uint8{})), f) != 0 { - if AssignUintptr(&p, Xstrchr(tls, bp+16, '#')) != 0 { - *(*uint8)(unsafe.Pointer(PostIncUintptr(&p, 1))) = uint8('\n') - *(*uint8)(unsafe.Pointer(p)) = uint8(0) - } - - for p = bp + 16; /* &line[0] */ *(*uint8)(unsafe.Pointer(p)) != 0 && !(__isspace(tls, int32(*(*uint8)(unsafe.Pointer(p)))) != 0); p++ { - } - *(*uint8)(unsafe.Pointer(PostIncUintptr(&p, 1))) = uint8(0) - if X__lookup_ipliteral(tls, bp+528, bp+16, 0) <= 0 { - continue - } - - if (*address)(unsafe.Pointer(bp+528)).family == 2 { - Xmemcpy(tls, bp+528+8+uintptr(12), bp+528+8, uint64(4)) - Xmemcpy(tls, bp+528+8, ts+90, uint64(12)) - (*address)(unsafe.Pointer(bp + 528 /* &iplit */)).scopeid = uint32(0) - } - - if Xmemcmp(tls, a, bp+528+8, uint64(16)) != 0 || (*address)(unsafe.Pointer(bp+528)).scopeid != scopeid { - continue - } - - for ; *(*uint8)(unsafe.Pointer(p)) != 0 && __isspace(tls, int32(*(*uint8)(unsafe.Pointer(p)))) != 0; p++ { - } - for z = p; *(*uint8)(unsafe.Pointer(z)) != 0 && !(__isspace(tls, int32(*(*uint8)(unsafe.Pointer(z)))) != 0); z++ { - } - *(*uint8)(unsafe.Pointer(z)) = uint8(0) - if (int64(z)-int64(p))/1 < int64(256) { - Xmemcpy(tls, buf, p, uint64((int64(z)-int64(p))/1+int64(1))) - break - } - } - //TODO __fclose_ca(f); - Xfclose(tls, f) -} - -func reverse_services(tls *TLS, buf uintptr, port int32, dgram int32) { /* getnameinfo.c:87:13: */ - Xabort(tls) //TODO- - // unsigned long svport; - // char line[128], *p, *z; - // unsigned char _buf[1032]; - // FILE _f, *f = __fopen_rb_ca("/etc/services", &_f, _buf, sizeof _buf); - // if (!f) return; - // while (fgets(line, sizeof line, f)) { - // if ((p=strchr(line, '#'))) *p++='\n', *p=0; - - // for (p=line; *p && !isspace(*p); p++); - // if (!*p) continue; - // *p++ = 0; - // svport = strtoul(p, &z, 10); - - // if (svport != port || z==p) continue; - // if (dgram && strncmp(z, "/udp", 4)) continue; - // if (!dgram && strncmp(z, "/tcp", 4)) continue; - // if (p-line > 32) continue; - - // memcpy(buf, line, p-line); - // break; - // } - // __fclose_ca(f); -} - -func Xgetnameinfo(tls *TLS, sa1 uintptr, sl socklen_t, node uintptr, nodelen socklen_t, serv uintptr, servlen socklen_t, flags int32) int32 { /* getnameinfo.c:125:5: */ - bp := tls.Alloc(347) - defer tls.Free(347) - - // var ptr [78]uint8 at bp, 78 - - // var buf [256]uint8 at bp+78, 256 - - // var num [13]uint8 at bp+334, 13 - - var af int32 = int32((*sockaddr)(unsafe.Pointer(sa1)).sa_family) - var a uintptr - var scopeid uint32 - - switch af { - case 2: - a = sa1 + 4 - if uint64(sl) < uint64(unsafe.Sizeof(sockaddr_in{})) { - return -6 - } - mkptr4(tls, bp, a) - scopeid = uint32(0) - break - case 10: - a = sa1 + 8 - if uint64(sl) < uint64(unsafe.Sizeof(sockaddr_in6{})) { - return -6 - } - if Xmemcmp(tls, a, ts+90, uint64(12)) != 0 { - mkptr6(tls, bp, a) - } else { - mkptr4(tls, bp, a+uintptr(12)) - } - scopeid = (*sockaddr_in6)(unsafe.Pointer(sa1)).sin6_scope_id - break - default: - return -6 - } - - if node != 0 && nodelen != 0 { - *(*uint8)(unsafe.Pointer(bp + 78)) = uint8(0) - if !(flags&0x01 != 0) { - reverse_hosts(tls, bp+78, a, scopeid, af) - } - if !(int32(*(*uint8)(unsafe.Pointer(bp + 78))) != 0) && !(flags&0x01 != 0) { - Xabort(tls) //TODO- - // unsigned char query[18+PTR_MAX], reply[512]; - // int qlen = __res_mkquery(0, ptr, 1, RR_PTR, - // 0, 0, 0, query, sizeof query); - // query[3] = 0; /* don't need AD flag */ - // int rlen = __res_send(query, qlen, reply, sizeof reply); - // buf[0] = 0; - // if (rlen > 0) - // __dns_parse(reply, rlen, dns_parse_callback, buf); - } - if !(int32(*(*uint8)(unsafe.Pointer(bp + 78))) != 0) { - if flags&0x08 != 0 { - return -2 - } - Xinet_ntop(tls, af, a, bp+78, uint32(unsafe.Sizeof([256]uint8{}))) - if scopeid != 0 { - Xabort(tls) //TODO- - // char *p = 0, tmp[IF_NAMESIZE+1]; - // if (!(flags & NI_NUMERICSCOPE) && - // (IN6_IS_ADDR_LINKLOCAL(a) || - // IN6_IS_ADDR_MC_LINKLOCAL(a))) - // p = if_indextoname(scopeid, tmp+1); - // if (!p) - // p = itoa(num, scopeid); - // *--p = '%'; - // strcat(buf, p); - } - } - if Xstrlen(tls, bp+78) >= size_t(nodelen) { - return -12 - } - Xstrcpy(tls, node, bp+78) - } - - if serv != 0 && servlen != 0 { - var p uintptr = bp + 78 /* buf */ - var port int32 = int32(Xntohs(tls, (*sockaddr_in)(unsafe.Pointer(sa1)).sin_port)) - *(*uint8)(unsafe.Pointer(bp + 78)) = uint8(0) - if !(flags&0x02 != 0) { - reverse_services(tls, bp+78, port, flags&0x10) - } - if !(int32(*(*uint8)(unsafe.Pointer(p))) != 0) { - p = itoa(tls, bp+334, uint32(port)) - } - if Xstrlen(tls, p) >= size_t(servlen) { - return -12 - } - Xstrcpy(tls, serv, p) - } - - return 0 -} - -var Xh_errno int32 /* h_errno.c:4:5: */ - -func X__h_errno_location(tls *TLS) uintptr { /* h_errno.c:6:5: */ - return uintptr(unsafe.Pointer(&Xh_errno)) -} - -func X__inet_aton(tls *TLS, s0 uintptr, dest uintptr) int32 { /* inet_aton.c:7:5: */ - bp := tls.Alloc(40) - defer tls.Free(40) - - var s uintptr = s0 - var d uintptr = dest - *(*[4]uint64)(unsafe.Pointer(bp /* a */)) = [4]uint64{0: uint64(0)} - // var z uintptr at bp+32, 8 - - var i int32 - - for i = 0; i < 4; i++ { - *(*uint64)(unsafe.Pointer(bp + uintptr(i)*8)) = Xstrtoul(tls, s, bp+32, 0) - if *(*uintptr)(unsafe.Pointer(bp + 32)) == s || *(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 32)))) != 0 && int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 32))))) != '.' || !(func() int32 { - if 0 != 0 { - return Xisdigit(tls, int32(*(*uint8)(unsafe.Pointer(s)))) - } - return Bool32(uint32(*(*uint8)(unsafe.Pointer(s)))-uint32('0') < uint32(10)) - }() != 0) { - return 0 - } - if !(int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 32))))) != 0) { - break - } - s = *(*uintptr)(unsafe.Pointer(bp + 32)) + uintptr(1) - } - if i == 4 { - return 0 - } - switch i { - case 0: - *(*uint64)(unsafe.Pointer(bp + 1*8)) = *(*uint64)(unsafe.Pointer(bp)) & uint64(0xffffff) - AssignShrPtrUint64(bp, int(24)) - fallthrough - case 1: - *(*uint64)(unsafe.Pointer(bp + 2*8)) = *(*uint64)(unsafe.Pointer(bp + 1*8)) & uint64(0xffff) - AssignShrPtrUint64(bp+1*8, int(16)) - fallthrough - case 2: - *(*uint64)(unsafe.Pointer(bp + 3*8)) = *(*uint64)(unsafe.Pointer(bp + 2*8)) & uint64(0xff) - AssignShrPtrUint64(bp+2*8, int(8)) - } - for i = 0; i < 4; i++ { - if *(*uint64)(unsafe.Pointer(bp + uintptr(i)*8)) > uint64(255) { - return 0 - } - *(*uint8)(unsafe.Pointer(d + uintptr(i))) = uint8(*(*uint64)(unsafe.Pointer(bp + uintptr(i)*8))) - } - return 1 -} - -func Xinet_ntop(tls *TLS, af int32, a0 uintptr, s uintptr, l socklen_t) uintptr { /* inet_ntop.c:7:12: */ - bp := tls.Alloc(276) - defer tls.Free(276) - - var a uintptr = a0 - var i int32 - var j int32 - var max int32 - var best int32 - // var buf [100]uint8 at bp+176, 100 - - switch af { - case 2: - if socklen_t(Xsnprintf(tls, s, uint64(l), ts+103, VaList(bp, int32(*(*uint8)(unsafe.Pointer(a))), int32(*(*uint8)(unsafe.Pointer(a + 1))), int32(*(*uint8)(unsafe.Pointer(a + 2))), int32(*(*uint8)(unsafe.Pointer(a + 3)))))) < l { - return s - } - break - case 10: - if Xmemcmp(tls, a, ts+90, uint64(12)) != 0 { - Xsnprintf(tls, bp+176, uint64(unsafe.Sizeof([100]uint8{})), - ts+115, - VaList(bp+32, 256*int32(*(*uint8)(unsafe.Pointer(a)))+int32(*(*uint8)(unsafe.Pointer(a + 1))), 256*int32(*(*uint8)(unsafe.Pointer(a + 2)))+int32(*(*uint8)(unsafe.Pointer(a + 3))), - 256*int32(*(*uint8)(unsafe.Pointer(a + 4)))+int32(*(*uint8)(unsafe.Pointer(a + 5))), 256*int32(*(*uint8)(unsafe.Pointer(a + 6)))+int32(*(*uint8)(unsafe.Pointer(a + 7))), - 256*int32(*(*uint8)(unsafe.Pointer(a + 8)))+int32(*(*uint8)(unsafe.Pointer(a + 9))), 256*int32(*(*uint8)(unsafe.Pointer(a + 10)))+int32(*(*uint8)(unsafe.Pointer(a + 11))), - 256*int32(*(*uint8)(unsafe.Pointer(a + 12)))+int32(*(*uint8)(unsafe.Pointer(a + 13))), 256*int32(*(*uint8)(unsafe.Pointer(a + 14)))+int32(*(*uint8)(unsafe.Pointer(a + 15))))) - } else { - Xsnprintf(tls, bp+176, uint64(unsafe.Sizeof([100]uint8{})), - ts+139, - VaList(bp+96, 256*int32(*(*uint8)(unsafe.Pointer(a)))+int32(*(*uint8)(unsafe.Pointer(a + 1))), 256*int32(*(*uint8)(unsafe.Pointer(a + 2)))+int32(*(*uint8)(unsafe.Pointer(a + 3))), - 256*int32(*(*uint8)(unsafe.Pointer(a + 4)))+int32(*(*uint8)(unsafe.Pointer(a + 5))), 256*int32(*(*uint8)(unsafe.Pointer(a + 6)))+int32(*(*uint8)(unsafe.Pointer(a + 7))), - 256*int32(*(*uint8)(unsafe.Pointer(a + 8)))+int32(*(*uint8)(unsafe.Pointer(a + 9))), 256*int32(*(*uint8)(unsafe.Pointer(a + 10)))+int32(*(*uint8)(unsafe.Pointer(a + 11))), - int32(*(*uint8)(unsafe.Pointer(a + 12))), int32(*(*uint8)(unsafe.Pointer(a + 13))), int32(*(*uint8)(unsafe.Pointer(a + 14))), int32(*(*uint8)(unsafe.Pointer(a + 15))))) - } - // Replace longest /(^0|:)[:0]{2,}/ with "::" - i = AssignInt32(&best, 0) - max = 2 - for ; *(*uint8)(unsafe.Pointer(bp + 176 + uintptr(i))) != 0; i++ { - if i != 0 && int32(*(*uint8)(unsafe.Pointer(bp + 176 + uintptr(i)))) != ':' { - continue - } - j = int32(Xstrspn(tls, bp+176+uintptr(i), ts+169)) - if j > max { - best = i - max = j - } - } - if max > 3 { - *(*uint8)(unsafe.Pointer(bp + 176 + uintptr(best))) = AssignPtrUint8(bp+176+uintptr(best+1), uint8(':')) - Xmemmove(tls, bp+176+uintptr(best)+uintptr(2), bp+176+uintptr(best)+uintptr(max), uint64(i-best-max+1)) - } - if Xstrlen(tls, bp+176) < size_t(l) { - Xstrcpy(tls, s, bp+176) - return s - } - break - default: - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 97 - return uintptr(0) - } - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 28 - return uintptr(0) -} - -func hexval(tls *TLS, c uint32) int32 { /* inet_pton.c:7:12: */ - if c-uint32('0') < uint32(10) { - return int32(c - uint32('0')) - } - c = c | uint32(32) - if c-uint32('a') < uint32(6) { - return int32(c - uint32('a') + uint32(10)) - } - return -1 -} - -func Xinet_pton(tls *TLS, af int32, s uintptr, a0 uintptr) int32 { /* inet_pton.c:15:5: */ - bp := tls.Alloc(16) - defer tls.Free(16) - - // var ip [8]uint16_t at bp, 16 - - var a uintptr = a0 - var i int32 - var j int32 - var v int32 - var d int32 - var brk int32 = -1 - var need_v4 int32 = 0 - - if af == 2 { - for i = 0; i < 4; i++ { - for v = AssignInt32(&j, 0); j < 3 && func() int32 { - if 0 != 0 { - return Xisdigit(tls, int32(*(*uint8)(unsafe.Pointer(s + uintptr(j))))) - } - return Bool32(uint32(*(*uint8)(unsafe.Pointer(s + uintptr(j))))-uint32('0') < uint32(10)) - }() != 0; j++ { - v = 10*v + int32(*(*uint8)(unsafe.Pointer(s + uintptr(j)))) - '0' - } - if j == 0 || j > 1 && int32(*(*uint8)(unsafe.Pointer(s))) == '0' || v > 255 { - return 0 - } - *(*uint8)(unsafe.Pointer(a + uintptr(i))) = uint8(v) - if int32(*(*uint8)(unsafe.Pointer(s + uintptr(j)))) == 0 && i == 3 { - return 1 - } - if int32(*(*uint8)(unsafe.Pointer(s + uintptr(j)))) != '.' { - return 0 - } - s += uintptr(j + 1) - } - return 0 - } else if af != 10 { - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 97 - return -1 - } - - if int32(*(*uint8)(unsafe.Pointer(s))) == ':' && int32(*(*uint8)(unsafe.Pointer(PreIncUintptr(&s, 1)))) != ':' { - return 0 - } - - for i = 0; ; i++ { - if int32(*(*uint8)(unsafe.Pointer(s))) == ':' && brk < 0 { - brk = i - *(*uint16_t)(unsafe.Pointer(bp + uintptr(i&7)*2)) = uint16_t(0) - if !(int32(*(*uint8)(unsafe.Pointer(PreIncUintptr(&s, 1)))) != 0) { - break - } - if i == 7 { - return 0 - } - continue - } - for v = AssignInt32(&j, 0); j < 4 && AssignInt32(&d, hexval(tls, uint32(*(*uint8)(unsafe.Pointer(s + uintptr(j)))))) >= 0; j++ { - v = 16*v + d - } - if j == 0 { - return 0 - } - *(*uint16_t)(unsafe.Pointer(bp + uintptr(i&7)*2)) = uint16_t(v) - if !(int32(*(*uint8)(unsafe.Pointer(s + uintptr(j)))) != 0) && (brk >= 0 || i == 7) { - break - } - if i == 7 { - return 0 - } - if int32(*(*uint8)(unsafe.Pointer(s + uintptr(j)))) != ':' { - if int32(*(*uint8)(unsafe.Pointer(s + uintptr(j)))) != '.' || i < 6 && brk < 0 { - return 0 - } - need_v4 = 1 - i++ - break - } - s += uintptr(j + 1) - } - if brk >= 0 { - Xmemmove(tls, bp+uintptr(brk)*2+uintptr(7)*2-uintptr(i)*2, bp+uintptr(brk)*2, uint64(2*(i+1-brk))) - for j = 0; j < 7-i; j++ { - *(*uint16_t)(unsafe.Pointer(bp + uintptr(brk+j)*2)) = uint16_t(0) - } - } - for j = 0; j < 8; j++ { - *(*uint8)(unsafe.Pointer(PostIncUintptr(&a, 1))) = uint8(int32(*(*uint16_t)(unsafe.Pointer(bp + uintptr(j)*2))) >> 8) - *(*uint8)(unsafe.Pointer(PostIncUintptr(&a, 1))) = uint8(*(*uint16_t)(unsafe.Pointer(bp + uintptr(j)*2))) - } - if need_v4 != 0 && Xinet_pton(tls, 2, s, a-uintptr(4)) <= 0 { - return 0 - } - return 1 -} - -func X__lookup_ipliteral(tls *TLS, buf uintptr, name uintptr, family int32) int32 { /* lookup_ipliteral.c:12:5: */ - bp := tls.Alloc(96) - defer tls.Free(96) - - // var a4 in_addr at bp, 4 - - // var a6 in6_addr at bp+68, 16 - - if X__inet_aton(tls, name, bp) > 0 { - if family == 10 { // wrong family - return -2 - } - Xmemcpy(tls, buf+8, bp, uint64(unsafe.Sizeof(in_addr{}))) - (*address)(unsafe.Pointer(buf)).family = 2 - (*address)(unsafe.Pointer(buf)).scopeid = uint32(0) - return 1 - } - // var tmp [64]uint8 at bp+4, 64 - - var p uintptr = Xstrchr(tls, name, '%') - // var z uintptr at bp+88, 8 - - var scopeid uint64 = uint64(0) - if p != 0 && (int64(p)-int64(name))/1 < int64(64) { - Xmemcpy(tls, bp+4, name, uint64((int64(p)-int64(name))/1)) - *(*uint8)(unsafe.Pointer(bp + 4 + uintptr((int64(p)-int64(name))/1))) = uint8(0) - name = bp + 4 /* &tmp[0] */ - } - - if Xinet_pton(tls, 10, name, bp+68) <= 0 { - return 0 - } - if family == 2 { // wrong family - return -2 - } - - Xmemcpy(tls, buf+8, bp+68, uint64(unsafe.Sizeof(in6_addr{}))) - (*address)(unsafe.Pointer(buf)).family = 10 - if p != 0 { - if func() int32 { - if 0 != 0 { - return Xisdigit(tls, int32(*(*uint8)(unsafe.Pointer(PreIncUintptr(&p, 1))))) - } - return Bool32(uint32(*(*uint8)(unsafe.Pointer(PreIncUintptr(&p, 1))))-uint32('0') < uint32(10)) - }() != 0 { - scopeid = Xstrtoull(tls, p, bp+88, 10) - } else { - *(*uintptr)(unsafe.Pointer(bp + 88 /* z */)) = p - uintptr(1) - } - if *(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 88)))) != 0 { - Xabort(tls) //TODO- - // if (!IN6_IS_ADDR_LINKLOCAL(&a6) && - // !IN6_IS_ADDR_MC_LINKLOCAL(&a6)) - // return EAI_NONAME; - // scopeid = if_nametoindex(p); - // if (!scopeid) return EAI_NONAME; - } - if scopeid > uint64(0xffffffff) { - return -2 - } - } - (*address)(unsafe.Pointer(buf)).scopeid = uint32(scopeid) - return 1 -} - -func is_valid_hostname(tls *TLS, host uintptr) int32 { /* lookup_name.c:18:12: */ - var s uintptr - //TODO if (strnlen(host, 255)-1 >= 254 || mbstowcs(0, host, 0) == -1) return 0; - if Xstrnlen(tls, host, uint64(255))-uint64(1) >= uint64(254) { - return 0 - } - for s = host; int32(*(*uint8)(unsafe.Pointer(s))) >= 0x80 || int32(*(*uint8)(unsafe.Pointer(s))) == '.' || int32(*(*uint8)(unsafe.Pointer(s))) == '-' || Xisalnum(tls, int32(*(*uint8)(unsafe.Pointer(s)))) != 0; s++ { - } - return BoolInt32(!(*(*uint8)(unsafe.Pointer(s)) != 0)) -} - -var Xzero_struct_address address /* lookup_name.c:27:16: */ - -func name_from_null(tls *TLS, buf uintptr, name uintptr, family int32, flags int32) int32 { /* lookup_name.c:29:12: */ - var cnt int32 = 0 - if name != 0 { - return 0 - } - if flags&0x01 != 0 { - //TODO if (family != AF_INET6) - //TODO buf[cnt++] = (struct address){ .family = AF_INET }; - if family != 10 { - var x = Xzero_struct_address - x.family = 2 - *(*address)(unsafe.Pointer(buf + uintptr(PostIncInt32(&cnt, 1))*28)) = x - } - //TODO if (family != AF_INET) - //TODO buf[cnt++] = (struct address){ .family = AF_INET6 }; - if family != 2 { - var x = Xzero_struct_address - x.family = 10 - *(*address)(unsafe.Pointer(buf + uintptr(PostIncInt32(&cnt, 1))*28)) = x - } - } else { - Xabort(tls) //TODO- - // if (family != AF_INET6) - // buf[cnt++] = (struct address){ .family = AF_INET, .addr = { 127,0,0,1 } }; - // if (family != AF_INET) - // buf[cnt++] = (struct address){ .family = AF_INET6, .addr = { [15] = 1 } }; - } - return cnt -} - -func name_from_numeric(tls *TLS, buf uintptr, name uintptr, family int32) int32 { /* lookup_name.c:58:12: */ - return X__lookup_ipliteral(tls, buf, name, family) -} - -func name_from_hosts(tls *TLS, buf uintptr, canon uintptr, name uintptr, family int32) int32 { /* lookup_name.c:63:12: */ - bp := tls.Alloc(512) - defer tls.Free(512) - - // var line [512]uint8 at bp, 512 - - var l size_t = Xstrlen(tls, name) - var cnt int32 = 0 - var badfam int32 = 0 - var _buf [1032]uint8 - _ = _buf - //TODO FILE _f, *f = __fopen_rb_ca("/etc/hosts", &_f, _buf, sizeof _buf); - var _f FILE - _ = _f - var f uintptr = Xfopen(tls, ts+76, ts+87) - if !(f != 0) { - switch *(*int32)(unsafe.Pointer(X___errno_location(tls))) { - case 2: - fallthrough - case 20: - fallthrough - case 13: - return 0 - fallthrough - default: - return -11 - } - } - for Xfgets(tls, bp, int32(unsafe.Sizeof([512]uint8{})), f) != 0 && cnt < 48 { - var p uintptr - var z uintptr - - if AssignUintptr(&p, Xstrchr(tls, bp, '#')) != 0 { - *(*uint8)(unsafe.Pointer(PostIncUintptr(&p, 1))) = uint8('\n') - *(*uint8)(unsafe.Pointer(p)) = uint8(0) - } - for p = bp + uintptr(1); AssignUintptr(&p, Xstrstr(tls, p, name)) != 0 && (!(__isspace(tls, int32(*(*uint8)(unsafe.Pointer(p + UintptrFromInt32(-1))))) != 0) || !(__isspace(tls, int32(*(*uint8)(unsafe.Pointer(p + uintptr(l))))) != 0)); p++ { - } - if !(p != 0) { - continue - } - - // Isolate IP address to parse - for p = bp; /* &line[0] */ *(*uint8)(unsafe.Pointer(p)) != 0 && !(__isspace(tls, int32(*(*uint8)(unsafe.Pointer(p)))) != 0); p++ { - } - *(*uint8)(unsafe.Pointer(PostIncUintptr(&p, 1))) = uint8(0) - switch name_from_numeric(tls, buf+uintptr(cnt)*28, bp, family) { - case 1: - cnt++ - break - case 0: - continue - default: - badfam = -2 - continue - } - - // Extract first name as canonical name - for ; *(*uint8)(unsafe.Pointer(p)) != 0 && __isspace(tls, int32(*(*uint8)(unsafe.Pointer(p)))) != 0; p++ { - } - for z = p; *(*uint8)(unsafe.Pointer(z)) != 0 && !(__isspace(tls, int32(*(*uint8)(unsafe.Pointer(z)))) != 0); z++ { - } - *(*uint8)(unsafe.Pointer(z)) = uint8(0) - if is_valid_hostname(tls, p) != 0 { - Xmemcpy(tls, canon, p, uint64((int64(z)-int64(p))/1+int64(1))) - } - } - //TODO __fclose_ca(f); - Xfclose(tls, f) - if cnt != 0 { - return cnt - } - return badfam -} - -type dpc_ctx = struct { - addrs uintptr - canon uintptr - cnt int32 - _ [4]byte -} /* lookup_name.c:112:1 */ - -func name_from_dns_search(tls *TLS, buf uintptr, canon uintptr, name uintptr, family int32) int32 { /* lookup_name.c:191:12: */ - return -1 //TODO- - Xabort(tls) - return int32(0) //TODO- - // char search[256]; - // struct resolvconf conf; - // size_t l, dots; - // char *p, *z; - - // if (__get_resolv_conf(&conf, search, sizeof search) < 0) return -1; - - // /* Count dots, suppress search when >=ndots or name ends in - // * a dot, which is an explicit request for global scope. */ - // for (dots=l=0; name[l]; l++) if (name[l]=='.') dots++; - // if (dots >= conf.ndots || name[l-1]=='.') *search = 0; - - // /* Strip final dot for canon, fail if multiple trailing dots. */ - // if (name[l-1]=='.') l--; - // if (!l || name[l-1]=='.') return EAI_NONAME; - - // /* This can never happen; the caller already checked length. */ - // if (l >= 256) return EAI_NONAME; - - // /* Name with search domain appended is setup in canon[]. This both - // * provides the desired default canonical name (if the requested - // * name is not a CNAME record) and serves as a buffer for passing - // * the full requested name to name_from_dns. */ - // memcpy(canon, name, l); - // canon[l] = '.'; - - // for (p=search; *p; p=z) { - // for (; isspace(*p); p++); - // for (z=p; *z && !isspace(*z); z++); - // if (z==p) break; - // if (z-p < 256 - l - 1) { - // memcpy(canon+l+1, p, z-p); - // canon[z-p+1+l] = 0; - // int cnt = name_from_dns(buf, canon, canon, family, &conf); - // if (cnt) return cnt; - // } - // } - - // canon[l] = 0; - // return name_from_dns(buf, canon, name, family, &conf); -} - -type policy = struct { - addr [16]uint8 - len uint8 - mask uint8 - prec uint8 - label uint8 -} /* lookup_name.c:237:14 */ - -var defpolicy = [6]policy{ - {addr: *(*[16]uint8)(unsafe.Pointer(ts + 172)), len: uint8(15), mask: uint8(0xff), prec: uint8(50)}, - {addr: *(*[16]uint8)(unsafe.Pointer(ts + 189)), len: uint8(11), mask: uint8(0xff), prec: uint8(35), label: uint8(4)}, - {addr: *(*[16]uint8)(unsafe.Pointer(ts + 205)), len: uint8(1), mask: uint8(0xff), prec: uint8(30), label: uint8(2)}, - {addr: *(*[16]uint8)(unsafe.Pointer(ts + 221)), len: uint8(3), mask: uint8(0xff), prec: uint8(5), label: uint8(5)}, - {addr: *(*[16]uint8)(unsafe.Pointer(ts + 237)), mask: uint8(0xfe), prec: uint8(3), label: uint8(13)}, - // Last rule must match all addresses to stop loop. - {addr: *(*[16]uint8)(unsafe.Pointer(ts + 253)), prec: uint8(40), label: uint8(1)}, -} /* lookup_name.c:241:3 */ - -func policyof(tls *TLS, a uintptr) uintptr { /* lookup_name.c:259:28: */ - var i int32 - for i = 0; ; i++ { - if Xmemcmp(tls, a, uintptr(unsafe.Pointer(&defpolicy))+uintptr(i)*20, uint64(defpolicy[i].len)) != 0 { - continue - } - if int32(*(*uint8_t)(unsafe.Pointer(a + uintptr(defpolicy[i].len))))&int32(defpolicy[i].mask) != - int32(*(*uint8)(unsafe.Pointer(uintptr(unsafe.Pointer(&defpolicy)) + uintptr(i)*20 + uintptr(defpolicy[i].len)))) { - continue - } - return uintptr(unsafe.Pointer(&defpolicy)) + uintptr(i)*20 - } - return uintptr(0) -} - -func labelof(tls *TLS, a uintptr) int32 { /* lookup_name.c:272:12: */ - return int32((*policy)(unsafe.Pointer(policyof(tls, a))).label) -} - -func scopeof(tls *TLS, a uintptr) int32 { /* lookup_name.c:277:12: */ - if int32(*(*uint8_t)(unsafe.Pointer(a))) == 0xff { - return int32(*(*uint8_t)(unsafe.Pointer(a + 1))) & 15 - } - if int32(*(*uint8_t)(unsafe.Pointer(a))) == 0xfe && int32(*(*uint8_t)(unsafe.Pointer(a + 1)))&0xc0 == 0x80 { - return 2 - } - if *(*uint32_t)(unsafe.Pointer(a)) == uint32_t(0) && *(*uint32_t)(unsafe.Pointer(a + 1*4)) == uint32_t(0) && *(*uint32_t)(unsafe.Pointer(a + 2*4)) == uint32_t(0) && int32(*(*uint8_t)(unsafe.Pointer(a + 12))) == 0 && int32(*(*uint8_t)(unsafe.Pointer(a + 13))) == 0 && int32(*(*uint8_t)(unsafe.Pointer(a + 14))) == 0 && int32(*(*uint8_t)(unsafe.Pointer(a + 15))) == 1 { - return 2 - } - if int32(*(*uint8_t)(unsafe.Pointer(a))) == 0xfe && int32(*(*uint8_t)(unsafe.Pointer(a + 1)))&0xc0 == 0xc0 { - return 5 - } - return 14 -} - -func prefixmatch(tls *TLS, s uintptr, d uintptr) int32 { /* lookup_name.c:286:12: */ - // FIXME: The common prefix length should be limited to no greater - // than the nominal length of the prefix portion of the source - // address. However the definition of the source prefix length is - // not clear and thus this limiting is not yet implemented. - var i uint32 - for i = uint32(0); i < uint32(128) && !((int32(*(*uint8_t)(unsafe.Pointer(s /* &.__in6_union */ /* &.__s6_addr */ + uintptr(i/uint32(8)))))^int32(*(*uint8_t)(unsafe.Pointer(d /* &.__in6_union */ /* &.__s6_addr */ + uintptr(i/uint32(8))))))&(int32(128)>>(i%uint32(8))) != 0); i++ { - } - return int32(i) -} - -func addrcmp(tls *TLS, _a uintptr, _b uintptr) int32 { /* lookup_name.c:305:12: */ - var a uintptr = _a - var b uintptr = _b - return (*address)(unsafe.Pointer(b)).sortkey - (*address)(unsafe.Pointer(a)).sortkey -} - -func X__lookup_name(tls *TLS, buf uintptr, canon uintptr, name uintptr, family int32, flags int32) int32 { /* lookup_name.c:311:5: */ - bp := tls.Alloc(92) - defer tls.Free(92) - - var cnt int32 = 0 - var i int32 - var j int32 - _ = j - - *(*uint8)(unsafe.Pointer(canon)) = uint8(0) - if name != 0 { - // reject empty name and check len so it fits into temp bufs - var l size_t = Xstrnlen(tls, name, uint64(255)) - if l-uint64(1) >= uint64(254) { - return -2 - } - Xmemcpy(tls, canon, name, l+uint64(1)) - } - - // Procedurally, a request for v6 addresses with the v4-mapped - // flag set is like a request for unspecified family, followed - // by filtering of the results. - if flags&0x08 != 0 { - if family == 10 { - family = 0 - } else { - flags = flags - 0x08 - } - } - - // Try each backend until there's at least one result. - cnt = name_from_null(tls, buf, name, family, flags) - if !(cnt != 0) { - cnt = name_from_numeric(tls, buf, name, family) - } - if !(cnt != 0) && !(flags&0x04 != 0) { - cnt = name_from_hosts(tls, buf, canon, name, family) - if !(cnt != 0) { - cnt = name_from_dns_search(tls, buf, canon, name, family) - } - } - if cnt <= 0 { - if cnt != 0 { - return cnt - } - return -2 - } - - // Filter/transform results for v4-mapped lookup, if requested. - if flags&0x08 != 0 { - Xabort(tls) //TODO- - // if (!(flags & AI_ALL)) { - // /* If any v6 results exist, remove v4 results. */ - // for (i=0; i= 0 { - if !(Xconnect(tls, fd, da, dalen) != 0) { - key = key | 0x40000000 - if !(Xgetsockname(tls, fd, sa1, bp+88) != 0) { - if family == 2 { - Xmemcpy(tls, - bp+28+8+uintptr(12), - bp+72+4, uint64(4)) - } - if dscope == scopeof(tls, bp+28+8) { - key = key | 0x20000000 - } - if dlabel == labelof(tls, bp+28+8) { - key = key | 0x10000000 - } - prefixlen = prefixmatch(tls, bp+28+8, - bp+8) - } - } - Xclose(tls, fd) - } - key = key | dprec<<20 - key = key | (15-dscope)<<16 - key = key | prefixlen<<8 - key = key | (48-i)<<0 - (*address)(unsafe.Pointer(buf + uintptr(i)*28)).sortkey = key - } - Xqsort(tls, buf, uint64(cnt), uint64(unsafe.Sizeof(address{})), *(*uintptr)(unsafe.Pointer(&struct { - f func(*TLS, uintptr, uintptr) int32 - }{addrcmp}))) - - //TODO pthread_setcancelstate(cs, 0); - - return cnt -} - -func X__lookup_serv(tls *TLS, buf uintptr, name uintptr, proto int32, socktype int32, flags int32) int32 { /* lookup_serv.c:12:5: */ - bp := tls.Alloc(8) - defer tls.Free(8) - - var line [128]uint8 - _ = line - var cnt int32 = 0 - var p uintptr - _ = p - *(*uintptr)(unsafe.Pointer(bp /* z */)) = ts + 13 /* "" */ - var port uint64 = uint64(0) - - switch socktype { - case 1: - switch proto { - case 0: - proto = 6 - fallthrough - case 6: - break - default: - return -8 - } - break - case 2: - switch proto { - case 0: - proto = 17 - fallthrough - case 17: - break - default: - return -8 - } - fallthrough - case 0: - break - default: - if name != 0 { - return -8 - } - (*service)(unsafe.Pointer(buf)).port = uint16_t(0) - (*service)(unsafe.Pointer(buf)).proto = uint8(proto) - (*service)(unsafe.Pointer(buf)).socktype = uint8(socktype) - return 1 - } - - if name != 0 { - if !(int32(*(*uint8)(unsafe.Pointer(name))) != 0) { - return -8 - } - port = Xstrtoul(tls, name, bp, 10) - } - if !(int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp))))) != 0) { - if port > uint64(65535) { - return -8 - } - if proto != 17 { - (*service)(unsafe.Pointer(buf + uintptr(cnt)*4)).port = uint16_t(port) - (*service)(unsafe.Pointer(buf + uintptr(cnt)*4)).socktype = uint8(1) - (*service)(unsafe.Pointer(buf + uintptr(PostIncInt32(&cnt, 1))*4)).proto = uint8(6) - } - if proto != 6 { - (*service)(unsafe.Pointer(buf + uintptr(cnt)*4)).port = uint16_t(port) - (*service)(unsafe.Pointer(buf + uintptr(cnt)*4)).socktype = uint8(2) - (*service)(unsafe.Pointer(buf + uintptr(PostIncInt32(&cnt, 1))*4)).proto = uint8(17) - } - return cnt - } - - if flags&0x400 != 0 { - return -2 - } - - var l size_t = Xstrlen(tls, name) - _ = l - - Xabort(tls) //TODO- - // unsigned char _buf[1032]; - // FILE _f, *f = __fopen_rb_ca("/etc/services", &_f, _buf, sizeof _buf); - // if (!f) switch (errno) { - // case ENOENT: - // case ENOTDIR: - // case EACCES: - // return EAI_SERVICE; - // default: - // return EAI_SYSTEM; - // } - - Xabort(tls) //TODO- - // while (fgets(line, sizeof line, f) && cnt < MAXSERVS) { - // if ((p=strchr(line, '#'))) *p++='\n', *p=0; - - // /* Find service name */ - // for(p=line; (p=strstr(p, name)); p++) { - // if (p>line && !isspace(p[-1])) continue; - // if (p[l] && !isspace(p[l])) continue; - // break; - // } - // if (!p) continue; - - // /* Skip past canonical name at beginning of line */ - // for (p=line; *p && !isspace(*p); p++); - - // port = strtoul(p, &z, 10); - // if (port > 65535 || z==p) continue; - // if (!strncmp(z, "/udp", 4)) { - // if (proto == IPPROTO_TCP) continue; - // buf[cnt].port = port; - // buf[cnt].socktype = SOCK_DGRAM; - // buf[cnt++].proto = IPPROTO_UDP; - // } - // if (!strncmp(z, "/tcp", 4)) { - // if (proto == IPPROTO_UDP) continue; - // buf[cnt].port = port; - // buf[cnt].socktype = SOCK_STREAM; - // buf[cnt++].proto = IPPROTO_TCP; - // } - // } - // __fclose_ca(f); - // return cnt > 0 ? cnt : EAI_SERVICE; - Xabort(tls) - return int32(0) //TODO- -} - -func temper(tls *TLS, x uint32) uint32 { /* rand_r.c:3:17: */ - x = x ^ x>>11 - x = x ^ x<<7&0x9D2C5680 - x = x ^ x<<15&0xEFC60000 - x = x ^ x>>18 - return x -} - -func Xrand_r(tls *TLS, seed uintptr) int32 { /* rand_r.c:12:5: */ - return int32(temper(tls, AssignPtrUint32(seed, *(*uint32)(unsafe.Pointer(seed))*uint32(1103515245)+uint32(12345))) / uint32(2)) -} - -func X__lockfile(tls *TLS, f uintptr) int32 { /* __lockfile.c:4:5: */ - var owner int32 = (*FILE)(unsafe.Pointer(f)).lock - var tid int32 = (*__pthread)(unsafe.Pointer(__pthread_self(tls))).tid - if owner&CplInt32(0x40000000) == tid { - return 0 - } - owner = a_cas(tls, f+140, 0, tid) - if !(owner != 0) { - return 1 - } - for AssignInt32(&owner, a_cas(tls, f+140, 0, tid|0x40000000)) != 0 { - if owner&0x40000000 != 0 || a_cas(tls, f+140, owner, owner|0x40000000) == owner { - __futexwait(tls, f+140, owner|0x40000000, 1) - } - } - return 1 -} - -func X__unlockfile(tls *TLS, f uintptr) { /* __lockfile.c:19:6: */ - if a_swap(tls, f+140, 0)&0x40000000 != 0 { - __wake(tls, f+140, 1, 1) - } -} - -func X__toread(tls *TLS, f uintptr) int32 { /* __toread.c:3:5: */ - *(*int32)(unsafe.Pointer(f + 136)) |= (*FILE)(unsafe.Pointer(f)).mode - 1 - if (*FILE)(unsafe.Pointer(f)).wpos != (*FILE)(unsafe.Pointer(f)).wbase { - (*struct { - f func(*TLS, uintptr, uintptr, size_t) size_t - })(unsafe.Pointer(&struct{ uintptr }{(*FILE)(unsafe.Pointer(f)).write})).f(tls, f, uintptr(0), uint64(0)) - } - (*FILE)(unsafe.Pointer(f)).wpos = AssignPtrUintptr(f+56, AssignPtrUintptr(f+32, uintptr(0))) - if (*FILE)(unsafe.Pointer(f)).flags&uint32(4) != 0 { - *(*uint32)(unsafe.Pointer(f)) |= uint32(32) - return -1 - } - (*FILE)(unsafe.Pointer(f)).rpos = AssignPtrUintptr(f+16, (*FILE)(unsafe.Pointer(f)).buf+uintptr((*FILE)(unsafe.Pointer(f)).buf_size)) - if (*FILE)(unsafe.Pointer(f)).flags&uint32(16) != 0 { - return -1 - } - return 0 -} - -func X__toread_needs_stdio_exit(tls *TLS) { /* __toread.c:16:13: */ - X__builtin_abort(tls) //TODO- - // __stdio_exit_needed(); -} - -// This function assumes it will never be called if there is already -// data buffered for reading. - -func X__uflow(tls *TLS, f uintptr) int32 { /* __uflow.c:6:5: */ - bp := tls.Alloc(1) - defer tls.Free(1) - - // var c uint8 at bp, 1 - - if !(X__toread(tls, f) != 0) && (*struct { - f func(*TLS, uintptr, uintptr, size_t) size_t - })(unsafe.Pointer(&struct{ uintptr }{(*FILE)(unsafe.Pointer(f)).read})).f(tls, f, bp, uint64(1)) == uint64(1) { - return int32(*(*uint8)(unsafe.Pointer(bp))) - } - return -1 -} - -func Xsscanf(tls *TLS, s uintptr, fmt uintptr, va uintptr) int32 { /* sscanf.c:4:5: */ - var ret int32 - var ap va_list - _ = ap - ap = va - ret = Xvsscanf(tls, s, fmt, ap) - _ = ap - return ret -} - -type wctrans_t = uintptr /* wctype.h:20:19 */ - -func store_int(tls *TLS, dest uintptr, size int32, i uint64) { /* vfscanf.c:22:13: */ - if !(dest != 0) { - return - } - switch size { - case -2: - *(*uint8)(unsafe.Pointer(dest)) = uint8(i) - break - case -1: - *(*int16)(unsafe.Pointer(dest)) = int16(i) - break - case 0: - *(*int32)(unsafe.Pointer(dest)) = int32(i) - break - case 1: - *(*int64)(unsafe.Pointer(dest)) = int64(i) - break - case 3: - *(*int64)(unsafe.Pointer(dest)) = int64(i) - break - } -} - -func arg_n(tls *TLS, ap va_list, n uint32) uintptr { /* vfscanf.c:44:13: */ - var p uintptr - var i uint32 - var ap2 va_list - _ = ap2 - ap2 = ap - for i = n; i > uint32(1); i-- { - VaUintptr(&ap2) - } - p = VaUintptr(&ap2) - _ = ap2 - return p -} - -func Xvfscanf(tls *TLS, f uintptr, fmt uintptr, ap va_list) int32 { /* vfscanf.c:56:5: */ - bp := tls.Alloc(276) - defer tls.Free(276) - - var width int32 - var size int32 - var alloc int32 - var base int32 - var p uintptr - var c int32 - var t int32 - var s uintptr - var wcs uintptr - // var st mbstate_t at bp+268, 8 - - var dest uintptr - var invert int32 - var matches int32 - var x uint64 - var y float64 - var pos off_t - // var scanset [257]uint8 at bp, 257 - - var i size_t - var k size_t - // var wc wchar_t at bp+260, 4 - - var __need_unlock int32 - var tmp uintptr - var tmp1 uintptr - alloc = 0 - dest = uintptr(0) - matches = 0 - pos = int64(0) - __need_unlock = func() int32 { - if (*FILE)(unsafe.Pointer(f)).lock >= 0 { - return X__lockfile(tls, f) - } - return 0 - }() - - if !!(int32((*FILE)(unsafe.Pointer(f)).rpos) != 0) { - goto __1 - } - X__toread(tls, f) -__1: - ; - if !!(int32((*FILE)(unsafe.Pointer(f)).rpos) != 0) { - goto __2 - } - goto input_fail -__2: - ; - - p = fmt -__3: - if !(*(*uint8)(unsafe.Pointer(p)) != 0) { - goto __5 - } - - alloc = 0 - - if !(__isspace(tls, int32(*(*uint8)(unsafe.Pointer(p)))) != 0) { - goto __6 - } -__7: - if !(__isspace(tls, int32(*(*uint8)(unsafe.Pointer(p + 1)))) != 0) { - goto __8 - } - p++ - goto __7 -__8: - ; - X__shlim(tls, f, int64(0)) -__9: - if !(__isspace(tls, func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }()) != 0) { - goto __10 - } - goto __9 -__10: - ; - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - pos = pos + ((*FILE)(unsafe.Pointer(f)).shcnt + (int64((*FILE)(unsafe.Pointer(f)).rpos)-int64((*FILE)(unsafe.Pointer(f)).buf))/1) - goto __4 -__6: - ; - if !(int32(*(*uint8)(unsafe.Pointer(p))) != '%' || int32(*(*uint8)(unsafe.Pointer(p + 1))) == '%') { - goto __11 - } - X__shlim(tls, f, int64(0)) - if !(int32(*(*uint8)(unsafe.Pointer(p))) == '%') { - goto __12 - } - p++ -__14: - if !(__isspace(tls, AssignInt32(&c, func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }())) != 0) { - goto __15 - } - goto __14 -__15: - ; - goto __13 -__12: - c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() -__13: - ; - if !(c != int32(*(*uint8)(unsafe.Pointer(p)))) { - goto __16 - } - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - if !(c < 0) { - goto __17 - } - goto input_fail -__17: - ; - goto match_fail -__16: - ; - pos = pos + ((*FILE)(unsafe.Pointer(f)).shcnt + (int64((*FILE)(unsafe.Pointer(f)).rpos)-int64((*FILE)(unsafe.Pointer(f)).buf))/1) - goto __4 -__11: - ; - - p++ - if !(int32(*(*uint8)(unsafe.Pointer(p))) == '*') { - goto __18 - } - dest = uintptr(0) - p++ - goto __19 -__18: - if !(func() int32 { - if 0 != 0 { - return Xisdigit(tls, int32(*(*uint8)(unsafe.Pointer(p)))) - } - return Bool32(uint32(*(*uint8)(unsafe.Pointer(p)))-uint32('0') < uint32(10)) - }() != 0 && int32(*(*uint8)(unsafe.Pointer(p + 1))) == '$') { - goto __20 - } - dest = arg_n(tls, ap, uint32(int32(*(*uint8)(unsafe.Pointer(p)))-'0')) - p += uintptr(2) - goto __21 -__20: - dest = VaUintptr(&ap) -__21: - ; -__19: - ; - - width = 0 -__22: - if !(func() int32 { - if 0 != 0 { - return Xisdigit(tls, int32(*(*uint8)(unsafe.Pointer(p)))) - } - return Bool32(uint32(*(*uint8)(unsafe.Pointer(p)))-uint32('0') < uint32(10)) - }() != 0) { - goto __24 - } - width = 10*width + int32(*(*uint8)(unsafe.Pointer(p))) - '0' - goto __23 -__23: - p++ - goto __22 - goto __24 -__24: - ; - - if !(int32(*(*uint8)(unsafe.Pointer(p))) == 'm') { - goto __25 - } - wcs = uintptr(0) - s = uintptr(0) - alloc = BoolInt32(!!(dest != 0)) - p++ - goto __26 -__25: - alloc = 0 -__26: - ; - - size = 0 - switch int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&p, 1)))) { - case 'h': - goto __28 - case 'l': - goto __29 - case 'j': - goto __30 - case 'z': - goto __31 - case 't': - goto __32 - case 'L': - goto __33 - case 'd': - goto __34 - case 'i': - goto __35 - case 'o': - goto __36 - case 'u': - goto __37 - case 'x': - goto __38 - case 'a': - goto __39 - case 'e': - goto __40 - case 'f': - goto __41 - case 'g': - goto __42 - case 'A': - goto __43 - case 'E': - goto __44 - case 'F': - goto __45 - case 'G': - goto __46 - case 'X': - goto __47 - case 's': - goto __48 - case 'c': - goto __49 - case '[': - goto __50 - case 'S': - goto __51 - case 'C': - goto __52 - case 'p': - goto __53 - case 'n': - goto __54 - default: - goto __55 - } - goto __27 -__28: - if !(int32(*(*uint8)(unsafe.Pointer(p))) == 'h') { - goto __56 - } - p++ - size = -2 - goto __57 -__56: - size = -1 -__57: - ; - goto __27 -__29: - if !(int32(*(*uint8)(unsafe.Pointer(p))) == 'l') { - goto __58 - } - p++ - size = 3 - goto __59 -__58: - size = 1 -__59: - ; - goto __27 -__30: - size = 3 - goto __27 -__31: -__32: - size = 1 - goto __27 -__33: - size = 2 - goto __27 -__34: -__35: -__36: -__37: -__38: -__39: -__40: -__41: -__42: -__43: -__44: -__45: -__46: -__47: -__48: -__49: -__50: -__51: -__52: -__53: -__54: - p-- - goto __27 -__55: - goto fmt_fail -__27: - ; - - t = int32(*(*uint8)(unsafe.Pointer(p))) - - // C or S - if !(t&0x2f == 3) { - goto __60 - } - t = t | 32 - size = 1 -__60: - ; - - switch t { - case 'c': - goto __62 - case '[': - goto __63 - case 'n': - goto __64 - default: - goto __65 - } - goto __61 -__62: - if !(width < 1) { - goto __66 - } - width = 1 -__66: - ; -__63: - goto __61 -__64: - store_int(tls, dest, size, uint64(pos)) - // do not increment match count, etc! - goto __4 -__65: - X__shlim(tls, f, int64(0)) -__67: - if !(__isspace(tls, func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }()) != 0) { - goto __68 - } - goto __67 -__68: - ; - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - pos = pos + ((*FILE)(unsafe.Pointer(f)).shcnt + (int64((*FILE)(unsafe.Pointer(f)).rpos)-int64((*FILE)(unsafe.Pointer(f)).buf))/1) -__61: - ; - - X__shlim(tls, f, int64(width)) - if !(func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() < 0) { - goto __69 - } - goto input_fail -__69: - ; - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - - switch t { - case 's': - goto __71 - case 'c': - goto __72 - case '[': - goto __73 - case 'p': - goto __74 - case 'X': - goto __75 - case 'x': - goto __76 - case 'o': - goto __77 - case 'd': - goto __78 - case 'u': - goto __79 - case 'i': - goto __80 - case 'a': - goto __81 - case 'A': - goto __82 - case 'e': - goto __83 - case 'E': - goto __84 - case 'f': - goto __85 - case 'F': - goto __86 - case 'g': - goto __87 - case 'G': - goto __88 - } - goto __70 -__71: -__72: -__73: - if !(t == 'c' || t == 's') { - goto __89 - } - Xmemset(tls, bp, -1, uint64(unsafe.Sizeof([257]uint8{}))) - *(*uint8)(unsafe.Pointer(bp)) = uint8(0) - if !(t == 's') { - goto __91 - } - *(*uint8)(unsafe.Pointer(bp + 10)) = uint8(0) - *(*uint8)(unsafe.Pointer(bp + 11)) = uint8(0) - *(*uint8)(unsafe.Pointer(bp + 12)) = uint8(0) - *(*uint8)(unsafe.Pointer(bp + 13)) = uint8(0) - *(*uint8)(unsafe.Pointer(bp + 14)) = uint8(0) - *(*uint8)(unsafe.Pointer(bp + 33)) = uint8(0) -__91: - ; - goto __90 -__89: - if !(int32(*(*uint8)(unsafe.Pointer(PreIncUintptr(&p, 1)))) == '^') { - goto __92 - } - p++ - invert = 1 - goto __93 -__92: - invert = 0 -__93: - ; - Xmemset(tls, bp, invert, uint64(unsafe.Sizeof([257]uint8{}))) - *(*uint8)(unsafe.Pointer(bp)) = uint8(0) - if !(int32(*(*uint8)(unsafe.Pointer(p))) == '-') { - goto __94 - } - p++ - *(*uint8)(unsafe.Pointer(bp + 46)) = uint8(1 - invert) - goto __95 -__94: - if !(int32(*(*uint8)(unsafe.Pointer(p))) == ']') { - goto __96 - } - p++ - *(*uint8)(unsafe.Pointer(bp + 94)) = uint8(1 - invert) -__96: - ; -__95: - ; -__97: - if !(int32(*(*uint8)(unsafe.Pointer(p))) != ']') { - goto __99 - } - if !!(int32(*(*uint8)(unsafe.Pointer(p))) != 0) { - goto __100 - } - goto fmt_fail -__100: - ; - if !(int32(*(*uint8)(unsafe.Pointer(p))) == '-' && *(*uint8)(unsafe.Pointer(p + 1)) != 0 && int32(*(*uint8)(unsafe.Pointer(p + 1))) != ']') { - goto __101 - } - c = int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&p, 1) + UintptrFromInt32(-1)))) -__102: - if !(c < int32(*(*uint8)(unsafe.Pointer(p)))) { - goto __104 - } - *(*uint8)(unsafe.Pointer(bp + uintptr(1+c))) = uint8(1 - invert) - goto __103 -__103: - c++ - goto __102 - goto __104 -__104: - ; -__101: - ; - *(*uint8)(unsafe.Pointer(bp + uintptr(1+int32(*(*uint8)(unsafe.Pointer(p)))))) = uint8(1 - invert) - goto __98 -__98: - p++ - goto __97 - goto __99 -__99: - ; -__90: - ; - wcs = uintptr(0) - s = uintptr(0) - i = uint64(0) - if t == 'c' { - k = uint64(uint32(width) + 1) - } else { - k = uint64(31) - } - if !(size == 1) { - goto __105 - } - if !(alloc != 0) { - goto __107 - } - wcs = Xmalloc(tls, k*size_t(unsafe.Sizeof(wchar_t(0)))) - if !!(wcs != 0) { - goto __109 - } - goto alloc_fail -__109: - ; - goto __108 -__107: - wcs = dest -__108: - ; - *(*mbstate_t)(unsafe.Pointer(bp + 268 /* st */)) = mbstate_t{} -__110: - if !(*(*uint8)(unsafe.Pointer(bp + uintptr(AssignInt32(&c, func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }())+1))) != 0) { - goto __111 - } - switch Xmbrtowc(tls, bp+260, func() uintptr { *(*uint8)(unsafe.Pointer(bp + 264)) = uint8(c); return bp + 264 }(), uint64(1), bp+268 /* &st */) { - case Uint64FromInt32(-1): - goto __113 - case Uint64FromInt32(-2): - goto __114 - } - goto __112 -__113: - goto input_fail -__114: - goto __110 -__112: - ; - if !(wcs != 0) { - goto __115 - } - *(*wchar_t)(unsafe.Pointer(wcs + uintptr(PostIncUint64(&i, 1))*4)) = *(*wchar_t)(unsafe.Pointer(bp + 260 /* wc */)) -__115: - ; - if !(alloc != 0 && i == k) { - goto __116 - } - k = k + (k + uint64(1)) - tmp = Xrealloc(tls, wcs, k*size_t(unsafe.Sizeof(wchar_t(0)))) - if !!(tmp != 0) { - goto __117 - } - goto alloc_fail -__117: - ; - wcs = tmp -__116: - ; - goto __110 -__111: - ; - if !!(Xmbsinit(tls, bp+268) != 0) { - goto __118 - } - goto input_fail -__118: - ; - goto __106 -__105: - if !(alloc != 0) { - goto __119 - } - s = Xmalloc(tls, k) - if !!(s != 0) { - goto __121 - } - goto alloc_fail -__121: - ; -__122: - if !(*(*uint8)(unsafe.Pointer(bp + uintptr(AssignInt32(&c, func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }())+1))) != 0) { - goto __123 - } - *(*uint8)(unsafe.Pointer(s + uintptr(PostIncUint64(&i, 1)))) = uint8(c) - if !(i == k) { - goto __124 - } - k = k + (k + uint64(1)) - tmp1 = Xrealloc(tls, s, k) - if !!(tmp1 != 0) { - goto __125 - } - goto alloc_fail -__125: - ; - s = tmp1 -__124: - ; - goto __122 -__123: - ; - goto __120 -__119: - if !(AssignUintptr(&s, dest) != 0) { - goto __126 - } -__128: - if !(*(*uint8)(unsafe.Pointer(bp + uintptr(AssignInt32(&c, func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }())+1))) != 0) { - goto __129 - } - *(*uint8)(unsafe.Pointer(s + uintptr(PostIncUint64(&i, 1)))) = uint8(c) - goto __128 -__129: - ; - goto __127 -__126: -__130: - if !(*(*uint8)(unsafe.Pointer(bp + uintptr(AssignInt32(&c, func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }())+1))) != 0) { - goto __131 - } - goto __130 -__131: - ; -__127: - ; -__120: - ; -__106: - ; - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - if !!((*FILE)(unsafe.Pointer(f)).shcnt+(int64((*FILE)(unsafe.Pointer(f)).rpos)-int64((*FILE)(unsafe.Pointer(f)).buf))/1 != 0) { - goto __132 - } - goto match_fail -__132: - ; - if !(t == 'c' && (*FILE)(unsafe.Pointer(f)).shcnt+(int64((*FILE)(unsafe.Pointer(f)).rpos)-int64((*FILE)(unsafe.Pointer(f)).buf))/1 != off_t(width)) { - goto __133 - } - goto match_fail -__133: - ; - if !(alloc != 0) { - goto __134 - } - if !(size == 1) { - goto __135 - } - *(*uintptr)(unsafe.Pointer(dest)) = wcs - goto __136 -__135: - *(*uintptr)(unsafe.Pointer(dest)) = s -__136: - ; -__134: - ; - if !(t != 'c') { - goto __137 - } - if !(wcs != 0) { - goto __138 - } - *(*wchar_t)(unsafe.Pointer(wcs + uintptr(i)*4)) = wchar_t(0) -__138: - ; - if !(s != 0) { - goto __139 - } - *(*uint8)(unsafe.Pointer(s + uintptr(i))) = uint8(0) -__139: - ; -__137: - ; - goto __70 -__74: -__75: -__76: - base = 16 - goto int_common -__77: - base = 8 - goto int_common -__78: -__79: - base = 10 - goto int_common -__80: - base = 0 -int_common: - x = X__intscan(tls, f, uint32(base), 0, 2*uint64(0x7fffffffffffffff)+uint64(1)) - if !!((*FILE)(unsafe.Pointer(f)).shcnt+(int64((*FILE)(unsafe.Pointer(f)).rpos)-int64((*FILE)(unsafe.Pointer(f)).buf))/1 != 0) { - goto __140 - } - goto match_fail -__140: - ; - if !(t == 'p' && dest != 0) { - goto __141 - } - *(*uintptr)(unsafe.Pointer(dest)) = uintptr(uintptr_t(x)) - goto __142 -__141: - store_int(tls, dest, size, x) -__142: - ; - goto __70 -__81: -__82: -__83: -__84: -__85: -__86: -__87: -__88: - y = X__floatscan(tls, f, size, 0) - if !!((*FILE)(unsafe.Pointer(f)).shcnt+(int64((*FILE)(unsafe.Pointer(f)).rpos)-int64((*FILE)(unsafe.Pointer(f)).buf))/1 != 0) { - goto __143 - } - goto match_fail -__143: - ; - if !(dest != 0) { - goto __144 - } - switch size { - case 0: - goto __146 - case 1: - goto __147 - case 2: - goto __148 - } - goto __145 -__146: - *(*float32)(unsafe.Pointer(dest)) = float32(y) - goto __145 -__147: - *(*float64)(unsafe.Pointer(dest)) = y - goto __145 -__148: - *(*float64)(unsafe.Pointer(dest)) = y - goto __145 -__145: - ; -__144: - ; - goto __70 -__70: - ; - - pos = pos + ((*FILE)(unsafe.Pointer(f)).shcnt + (int64((*FILE)(unsafe.Pointer(f)).rpos)-int64((*FILE)(unsafe.Pointer(f)).buf))/1) - if !(dest != 0) { - goto __149 - } - matches++ -__149: - ; - goto __4 -__4: - p++ - goto __3 - goto __5 -__5: - ; - if !(0 != 0) { - goto __150 - } -fmt_fail: -alloc_fail: -input_fail: - if !!(matches != 0) { - goto __151 - } - matches-- -__151: - ; -match_fail: - if !(alloc != 0) { - goto __152 - } - Xfree(tls, s) - Xfree(tls, wcs) -__152: - ; -__150: - ; -__153: - if !(__need_unlock != 0) { - goto __156 - } - X__unlockfile(tls, f) -__156: - ; - goto __154 -__154: - if 0 != 0 { - goto __153 - } - goto __155 -__155: - ; - return matches -} - -func string_read(tls *TLS, f uintptr, buf uintptr, len size_t) size_t { /* vsscanf.c:4:15: */ - var src uintptr = (*FILE)(unsafe.Pointer(f)).cookie - var k size_t = len + uint64(256) - var end uintptr = Xmemchr(tls, src, 0, k) - if end != 0 { - k = size_t((int64(end) - int64(src)) / 1) - } - if k < len { - len = k - } - Xmemcpy(tls, buf, src, len) - (*FILE)(unsafe.Pointer(f)).rpos = src + uintptr(len) - (*FILE)(unsafe.Pointer(f)).rend = src + uintptr(k) - (*FILE)(unsafe.Pointer(f)).cookie = src + uintptr(k) - return len -} - -func Xvsscanf(tls *TLS, s uintptr, fmt uintptr, ap va_list) int32 { /* vsscanf.c:18:5: */ - bp := tls.Alloc(232) - defer tls.Free(232) - - *(*FILE)(unsafe.Pointer(bp /* f */)) = FILE{read: *(*uintptr)(unsafe.Pointer(&struct { - f func(*TLS, uintptr, uintptr, size_t) size_t - }{string_read})), buf: s, lock: -1, cookie: s} - return Xvfscanf(tls, bp, fmt, ap) -} - -func Xbsearch(tls *TLS, key uintptr, base uintptr, nel size_t, width size_t, cmp uintptr) uintptr { /* bsearch.c:3:6: */ - var try uintptr - var sign int32 - for nel > uint64(0) { - try = base + uintptr(width*(nel/uint64(2))) - sign = (*struct { - f func(*TLS, uintptr, uintptr) int32 - })(unsafe.Pointer(&struct{ uintptr }{cmp})).f(tls, key, try) - if sign < 0 { - nel = nel / uint64(2) - } else if sign > 0 { - base = try + uintptr(width) - nel = nel - (nel/uint64(2) + uint64(1)) - } else { - return try - } - } - return uintptr(0) -} - -func strtox(tls *TLS, s uintptr, p uintptr, prec int32) float64 { /* strtod.c:6:20: */ - bp := tls.Alloc(232) - defer tls.Free(232) - - // var f FILE at bp, 232 - - (*FILE)(unsafe.Pointer(bp)).buf = AssignPtrUintptr(bp+8, s) - (*FILE)(unsafe.Pointer(bp)).rend = UintptrFromInt32(-1) - X__shlim(tls, bp, int64(0)) - var y float64 = X__floatscan(tls, bp, prec, 1) - var cnt off_t = (*FILE)(unsafe.Pointer(bp)).shcnt + (int64((*FILE)(unsafe.Pointer(bp)).rpos)-int64((*FILE)(unsafe.Pointer(bp)).buf))/1 - if p != 0 { - *(*uintptr)(unsafe.Pointer(p)) = func() uintptr { - if cnt != 0 { - return s + uintptr(cnt) - } - return s - }() - } - return y -} - -func Xstrtof(tls *TLS, s uintptr, p uintptr) float32 { /* strtod.c:17:7: */ - return float32(strtox(tls, s, p, 0)) -} - -func Xstrtod(tls *TLS, s uintptr, p uintptr) float64 { /* strtod.c:22:8: */ - return strtox(tls, s, p, 1) -} - -func Xstrtold(tls *TLS, s uintptr, p uintptr) float64 { /* strtod.c:27:13: */ - return strtox(tls, s, p, 2) -} - -func strtox1(tls *TLS, s uintptr, p uintptr, base int32, lim uint64) uint64 { /* strtol.c:8:27: */ - bp := tls.Alloc(232) - defer tls.Free(232) - - // var f FILE at bp, 232 - - (*FILE)(unsafe.Pointer(bp)).buf = AssignPtrUintptr(bp+8, s) - (*FILE)(unsafe.Pointer(bp)).rend = UintptrFromInt32(-1) - X__shlim(tls, bp, int64(0)) - var y uint64 = X__intscan(tls, bp, uint32(base), 1, lim) - if p != 0 { - var cnt size_t = size_t((*FILE)(unsafe.Pointer(bp)).shcnt + (int64((*FILE)(unsafe.Pointer(bp)).rpos)-int64((*FILE)(unsafe.Pointer(bp)).buf))/1) - *(*uintptr)(unsafe.Pointer(p)) = s + uintptr(cnt) - } - return y -} - -func Xstrtoull(tls *TLS, s uintptr, p uintptr, base int32) uint64 { /* strtol.c:21:20: */ - return strtox1(tls, s, p, base, 2*uint64(0x7fffffffffffffff)+uint64(1)) -} - -func Xstrtoll(tls *TLS, s uintptr, p uintptr, base int32) int64 { /* strtol.c:26:11: */ - return int64(strtox1(tls, s, p, base, Uint64FromInt64(-0x7fffffffffffffff-int64(1)))) -} - -func Xstrtoul(tls *TLS, s uintptr, p uintptr, base int32) uint64 { /* strtol.c:31:15: */ - return uint64(strtox1(tls, s, p, base, 2*uint64(0x7fffffffffffffff)+uint64(1))) -} - -func Xstrtol(tls *TLS, s uintptr, p uintptr, base int32) int64 { /* strtol.c:36:6: */ - return int64(strtox1(tls, s, p, base, 0+Uint64FromInt64(Int64(-Int64(0x7fffffffffffffff))-Int64FromInt32(1)))) -} - -func Xstrtoimax(tls *TLS, s uintptr, p uintptr, base int32) intmax_t { /* strtol.c:41:10: */ - return intmax_t(Xstrtoll(tls, s, p, base)) -} - -func Xstrtoumax(tls *TLS, s uintptr, p uintptr, base int32) uintmax_t { /* strtol.c:46:11: */ - return uintmax_t(Xstrtoull(tls, s, p, base)) -} - -func Xstrdup(tls *TLS, s uintptr) uintptr { /* strdup.c:4:6: */ - var l size_t = Xstrlen(tls, s) - var d uintptr = Xmalloc(tls, l+uint64(1)) - if !(d != 0) { - return uintptr(0) - } - return Xmemcpy(tls, d, s, l+uint64(1)) -} - -func Xstrlcat(tls *TLS, d uintptr, s uintptr, n size_t) size_t { /* strlcat.c:4:8: */ - var l size_t = Xstrnlen(tls, d, n) - if l == n { - return l + Xstrlen(tls, s) - } - return l + Xstrlcpy(tls, d+uintptr(l), s, n-l) -} - -// Support signed or unsigned plain-char - -// Implementation choices... - -// Arbitrary numbers... - -// POSIX/SUS requirements follow. These numbers come directly -// from SUS and have nothing to do with the host system. - -func Xstrlcpy(tls *TLS, d uintptr, s uintptr, n size_t) size_t { /* strlcpy.c:11:8: */ - var d0 uintptr - var wd uintptr - var ws uintptr - d0 = d - - if !!(int32(PostDecUint64(&n, 1)) != 0) { - goto __1 - } - goto finish -__1: - ; - if !(uintptr_t(s)&(uint64(unsafe.Sizeof(size_t(0)))-uint64(1)) == uintptr_t(d)&(uint64(unsafe.Sizeof(size_t(0)))-uint64(1))) { - goto __2 - } -__3: - if !(uintptr_t(s)&(uint64(unsafe.Sizeof(size_t(0)))-uint64(1)) != 0 && n != 0 && AssignPtrUint8(d, *(*uint8)(unsafe.Pointer(s))) != 0) { - goto __5 - } - goto __4 -__4: - n-- - s++ - d++ - goto __3 - goto __5 -__5: - ; - if !(n != 0 && *(*uint8)(unsafe.Pointer(s)) != 0) { - goto __6 - } - wd = d - ws = s -__7: - if !(n >= size_t(unsafe.Sizeof(size_t(0))) && !((*(*uint64)(unsafe.Pointer(ws))-Uint64(Uint64FromInt32(-1))/uint64(255)) & ^*(*uint64)(unsafe.Pointer(ws)) & (Uint64(Uint64FromInt32(-1))/uint64(255)*uint64(255/2+1)) != 0)) { - goto __9 - } - *(*size_t)(unsafe.Pointer(wd)) = *(*uint64)(unsafe.Pointer(ws)) - goto __8 -__8: - n = n - size_t(unsafe.Sizeof(size_t(0))) - ws += 8 - wd += 8 - goto __7 - goto __9 -__9: - ; - d = wd - s = ws -__6: - ; -__2: - ; -__10: - if !(n != 0 && AssignPtrUint8(d, *(*uint8)(unsafe.Pointer(s))) != 0) { - goto __12 - } - goto __11 -__11: - n-- - s++ - d++ - goto __10 - goto __12 -__12: - ; - *(*uint8)(unsafe.Pointer(d)) = uint8(0) -finish: - return size_t((int64(d)-int64(d0))/1) + Xstrlen(tls, s) -} - -func Xstrncasecmp(tls *TLS, _l uintptr, _r uintptr, n size_t) int32 { /* strncasecmp.c:4:5: */ - var l uintptr = _l - var r uintptr = _r - if !(int32(PostDecUint64(&n, 1)) != 0) { - return 0 - } -__1: - if !(*(*uint8)(unsafe.Pointer(l)) != 0 && *(*uint8)(unsafe.Pointer(r)) != 0 && n != 0 && (int32(*(*uint8)(unsafe.Pointer(l))) == int32(*(*uint8)(unsafe.Pointer(r))) || Xtolower(tls, int32(*(*uint8)(unsafe.Pointer(l)))) == Xtolower(tls, int32(*(*uint8)(unsafe.Pointer(r)))))) { - goto __3 - } - goto __2 -__2: - l++ - r++ - n-- - goto __1 - goto __3 -__3: - ; - return Xtolower(tls, int32(*(*uint8)(unsafe.Pointer(l)))) - Xtolower(tls, int32(*(*uint8)(unsafe.Pointer(r)))) -} - -func X__strncasecmp_l(tls *TLS, l uintptr, r uintptr, n size_t, loc locale_t) int32 { /* strncasecmp.c:12:5: */ - return Xstrncasecmp(tls, l, r, n) -} - -func Xstrncat(tls *TLS, d uintptr, s uintptr, n size_t) uintptr { /* strncat.c:3:6: */ - var a uintptr = d - d += uintptr(Xstrlen(tls, d)) - for n != 0 && *(*uint8)(unsafe.Pointer(s)) != 0 { - n-- - *(*uint8)(unsafe.Pointer(PostIncUintptr(&d, 1))) = *(*uint8)(unsafe.Pointer(PostIncUintptr(&s, 1))) - } - *(*uint8)(unsafe.Pointer(PostIncUintptr(&d, 1))) = uint8(0) - return a -} - -func Xstrnlen(tls *TLS, s uintptr, n size_t) size_t { /* strnlen.c:3:8: */ - var p uintptr = Xmemchr(tls, s, 0, n) - if p != 0 { - return uint64((int64(p) - int64(s)) / 1) - } - return n -} - -func Xstrspn(tls *TLS, s uintptr, c uintptr) size_t { /* strspn.c:6:8: */ - bp := tls.Alloc(32) - defer tls.Free(32) - - var a uintptr = s - *(*[4]size_t)(unsafe.Pointer(bp /* byteset */)) = [4]size_t{0: uint64(0)} - - if !(int32(*(*uint8)(unsafe.Pointer(c))) != 0) { - return uint64(0) - } - if !(int32(*(*uint8)(unsafe.Pointer(c + 1))) != 0) { - for ; int32(*(*uint8)(unsafe.Pointer(s))) == int32(*(*uint8)(unsafe.Pointer(c))); s++ { - } - return size_t((int64(s) - int64(a)) / 1) - } - - for ; *(*uint8)(unsafe.Pointer(c)) != 0 && AssignOrPtrUint64(bp+uintptr(size_t(*(*uint8)(unsafe.Pointer(c)))/(uint64(8)*uint64(unsafe.Sizeof(size_t(0)))))*8, size_t(uint64(1))<<(size_t(*(*uint8)(unsafe.Pointer(c)))%(uint64(8)*uint64(unsafe.Sizeof(size_t(0)))))) != 0; c++ { - } - for ; *(*uint8)(unsafe.Pointer(s)) != 0 && *(*size_t)(unsafe.Pointer(bp + uintptr(size_t(*(*uint8)(unsafe.Pointer(s)))/(uint64(8)*uint64(unsafe.Sizeof(size_t(0)))))*8))&(size_t(uint64(1))<<(size_t(*(*uint8)(unsafe.Pointer(s)))%(uint64(8)*uint64(unsafe.Sizeof(size_t(0)))))) != 0; s++ { - } - return size_t((int64(s) - int64(a)) / 1) -} - -func Xstrtok(tls *TLS, s uintptr, sep uintptr) uintptr { /* strtok.c:3:6: */ - if !(s != 0) && !(int32(AssignUintptr(&s, _sp)) != 0) { - return uintptr(0) - } - s += uintptr(Xstrspn(tls, s, sep)) - if !(int32(*(*uint8)(unsafe.Pointer(s))) != 0) { - return AssignPtrUintptr(uintptr(unsafe.Pointer(&_sp)), uintptr(0)) - } - _sp = s + uintptr(Xstrcspn(tls, s, sep)) - if *(*uint8)(unsafe.Pointer(_sp)) != 0 { - *(*uint8)(unsafe.Pointer(PostIncUintptr(&_sp, 1))) = uint8(0) - } else { - _sp = uintptr(0) - } - return s -} - -var _sp uintptr /* strtok.c:5:14: */ - -func X__ccgo_pthreadAttrGetDetachState(tls *TLS, a uintptr) int32 { /* pthread_attr_get.c:3:5: */ - return *(*int32)(unsafe.Pointer(a + 6*4)) -} - -func Xpthread_attr_getdetachstate(tls *TLS, a uintptr, state uintptr) int32 { /* pthread_attr_get.c:7:5: */ - *(*int32)(unsafe.Pointer(state)) = *(*int32)(unsafe.Pointer(a + 6*4)) - return 0 -} - -// -// int pthread_attr_getguardsize(const pthread_attr_t *restrict a, size_t *restrict size) -// { -// *size = a->_a_guardsize; -// return 0; -// } -// -// int pthread_attr_getinheritsched(const pthread_attr_t *restrict a, int *restrict inherit) -// { -// *inherit = a->_a_sched; -// return 0; -// } -// -// int pthread_attr_getschedparam(const pthread_attr_t *restrict a, struct sched_param *restrict param) -// { -// param->sched_priority = a->_a_prio; -// return 0; -// } -// -// int pthread_attr_getschedpolicy(const pthread_attr_t *restrict a, int *restrict policy) -// { -// *policy = a->_a_policy; -// return 0; -// } -// -// int pthread_attr_getscope(const pthread_attr_t *restrict a, int *restrict scope) -// { -// *scope = PTHREAD_SCOPE_SYSTEM; -// return 0; -// } -// -// int pthread_attr_getstack(const pthread_attr_t *restrict a, void **restrict addr, size_t *restrict size) -// { -// if (!a->_a_stackaddr) -// return EINVAL; -// *size = a->_a_stacksize; -// *addr = (void *)(a->_a_stackaddr - *size); -// return 0; -// } -// -// int pthread_attr_getstacksize(const pthread_attr_t *restrict a, size_t *restrict size) -// { -// *size = a->_a_stacksize; -// return 0; -// } -// -// int pthread_barrierattr_getpshared(const pthread_barrierattr_t *restrict a, int *restrict pshared) -// { -// *pshared = !!a->__attr; -// return 0; -// } -// -// int pthread_condattr_getclock(const pthread_condattr_t *restrict a, clockid_t *restrict clk) -// { -// *clk = a->__attr & 0x7fffffff; -// return 0; -// } -// -// int pthread_condattr_getpshared(const pthread_condattr_t *restrict a, int *restrict pshared) -// { -// *pshared = a->__attr>>31; -// return 0; -// } -// -// int pthread_mutexattr_getprotocol(const pthread_mutexattr_t *restrict a, int *restrict protocol) -// { -// *protocol = PTHREAD_PRIO_NONE; -// return 0; -// } -// int pthread_mutexattr_getpshared(const pthread_mutexattr_t *restrict a, int *restrict pshared) -// { -// *pshared = a->__attr / 128U % 2; -// return 0; -// } -// -// int pthread_mutexattr_getrobust(const pthread_mutexattr_t *restrict a, int *restrict robust) -// { -// *robust = a->__attr / 4U % 2; -// return 0; -// } - -func X__ccgo_pthreadMutexattrGettype(tls *TLS, a uintptr) int32 { /* pthread_attr_get.c:93:5: */ - return int32((*pthread_mutexattr_t)(unsafe.Pointer(a)).__attr & uint32(3)) -} - -// int pthread_mutexattr_gettype(const pthread_mutexattr_t *restrict a, int *restrict type) -// { -// *type = a->__attr & 3; -// return 0; -// } -// -// int pthread_rwlockattr_getpshared(const pthread_rwlockattr_t *restrict a, int *restrict pshared) -// { -// *pshared = a->__attr[0]; -// return 0; -// } - -func Xpthread_attr_setdetachstate(tls *TLS, a uintptr, state int32) int32 { /* pthread_attr_setdetachstate.c:3:5: */ - if uint32(state) > 1 { - return 22 - } - *(*int32)(unsafe.Pointer(a + 6*4)) = state - return 0 -} - -func X__ccgo_getMutexType(tls *TLS, m uintptr) int32 { /* pthread_mutex_lock.c:3:5: */ - return *(*int32)(unsafe.Pointer(m)) & 15 -} - -// int __pthread_mutex_lock(pthread_mutex_t *m) -// { -// if ((m->_m_type&15) == PTHREAD_MUTEX_NORMAL -// && !a_cas(&m->_m_lock, 0, EBUSY)) -// return 0; -// -// return __pthread_mutex_timedlock(m, 0); -// } -// -// weak_alias(__pthread_mutex_lock, pthread_mutex_lock); - -func Xpthread_mutexattr_destroy(tls *TLS, a uintptr) int32 { /* pthread_mutexattr_destroy.c:3:5: */ - return 0 -} - -func Xpthread_mutexattr_init(tls *TLS, a uintptr) int32 { /* pthread_mutexattr_init.c:3:5: */ - *(*pthread_mutexattr_t)(unsafe.Pointer(a)) = pthread_mutexattr_t{} - return 0 -} - -func Xpthread_mutexattr_settype(tls *TLS, a uintptr, type1 int32) int32 { /* pthread_mutexattr_settype.c:3:5: */ - if uint32(type1) > uint32(2) { - return 22 - } - (*pthread_mutexattr_t)(unsafe.Pointer(a)).__attr = (*pthread_mutexattr_t)(unsafe.Pointer(a)).__attr&Uint32FromInt32(CplInt32(3)) | uint32(type1) - return 0 -} - -func init() { - *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&ptable)) + 0)) = uintptr(unsafe.Pointer(&table)) + uintptr(128)*2 // __ctype_b_loc.c:36:45: -} - -var ts1 = "infinity\x00nan\x00\x00\x00\x01\x02\x04\a\x03\x06\x05\x00.\x00%d.%d.%d.%d.in-addr.arpa\x00ip6.arpa\x000123456789abcdef\x00/etc/hosts\x00rb\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\xff\x00%d.%d.%d.%d\x00%x:%x:%x:%x:%x:%x:%x:%x\x00%x:%x:%x:%x:%x:%x:%d.%d.%d.%d\x00:0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\xff\x00\x00\x00\x00 \x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00 \x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xfc\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" -var ts = (*reflect.StringHeader)(unsafe.Pointer(&ts1)).Data diff --git a/vendor/modernc.org/libc/musl_linux_amd64.go b/vendor/modernc.org/libc/musl_linux_mips64le.go similarity index 96% rename from vendor/modernc.org/libc/musl_linux_amd64.go rename to vendor/modernc.org/libc/musl_linux_mips64le.go index 7921d9927..ab2f2ff29 100644 --- a/vendor/modernc.org/libc/musl_linux_amd64.go +++ b/vendor/modernc.org/libc/musl_linux_mips64le.go @@ -403,6 +403,9 @@ var table = [384]uint16{ var ptable uintptr = 0 /* __ctype_b_loc.c:36:29 */ func X__ctype_b_loc(tls *TLS) uintptr { /* __ctype_b_loc.c:38:22: */ + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } return uintptr(unsafe.Pointer(&ptable)) } @@ -415,6 +418,9 @@ type __locale_struct = struct{ cat [6]uintptr } /* alltypes.h:343:9 */ type locale_t = uintptr /* alltypes.h:343:32 */ func Xisalnum(tls *TLS, c int32) int32 { /* isalnum.c:3:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(func() int32 { if 0 != 0 { return Xisalpha(tls, c) @@ -429,50 +435,93 @@ func Xisalnum(tls *TLS, c int32) int32 { /* isalnum.c:3:5: */ } func X__isalnum_l(tls *TLS, c int32, l locale_t) int32 { /* isalnum.c:8:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisalnum(tls, c) } func Xisalpha(tls *TLS, c int32) int32 { /* isalpha.c:4:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(uint32(c)|uint32(32)-uint32('a') < uint32(26)) } func X__isalpha_l(tls *TLS, c int32, l locale_t) int32 { /* isalpha.c:9:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisalpha(tls, c) } func Xisdigit(tls *TLS, c int32) int32 { /* isdigit.c:4:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(uint32(c)-uint32('0') < uint32(10)) } func X__isdigit_l(tls *TLS, c int32, l locale_t) int32 { /* isdigit.c:9:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisdigit(tls, c) } func Xislower(tls *TLS, c int32) int32 { /* islower.c:4:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(uint32(c)-uint32('a') < uint32(26)) } func X__islower_l(tls *TLS, c int32, l locale_t) int32 { /* islower.c:9:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xislower(tls, c) } func Xisprint(tls *TLS, c int32) int32 { /* isprint.c:4:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } + return Bool32(uint32(c)-uint32(0x20) < uint32(0x5f)) +} + +func X__builtin_isprint(tls *TLS, c int32) int32 { /* isprint.c:4:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(uint32(c)-uint32(0x20) < uint32(0x5f)) } func X__isprint_l(tls *TLS, c int32, l locale_t) int32 { /* isprint.c:9:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisprint(tls, c) } func Xisupper(tls *TLS, c int32) int32 { /* isupper.c:4:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(uint32(c)-uint32('A') < uint32(26)) } func X__isupper_l(tls *TLS, c int32, l locale_t) int32 { /* isupper.c:9:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisupper(tls, c) } func Xisxdigit(tls *TLS, c int32) int32 { /* isxdigit.c:3:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(func() int32 { if 0 != 0 { return Xisdigit(tls, c) @@ -482,6 +531,9 @@ func Xisxdigit(tls *TLS, c int32) int32 { /* isxdigit.c:3:5: */ } func X__isxdigit_l(tls *TLS, c int32, l locale_t) int32 { /* isxdigit.c:8:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisxdigit(tls, c) } @@ -535,6 +587,9 @@ type lldiv_t = struct { } /* stdlib.h:64:41 */ func Xclosedir(tls *TLS, dir uintptr) int32 { /* closedir.c:6:5: */ + if __ccgo_strace { + trc("tls=%v dir=%v, (%v:)", tls, dir, origin(2)) + } var ret int32 = Xclose(tls, (*DIR)(unsafe.Pointer(dir)).fd) Xfree(tls, dir) return ret @@ -571,6 +626,9 @@ type f_owner_ex = struct { type syscall_arg_t = int64 /* syscall.h:22:14 */ func Xopendir(tls *TLS, name uintptr) uintptr { /* opendir.c:8:5: */ + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + } var fd int32 var dir uintptr @@ -593,6 +651,9 @@ type max_align_t = struct { type dirstream_buf_alignment_check = [1]int8 /* readdir.c:7:14 */ func Xreaddir(tls *TLS, dir uintptr) uintptr { /* readdir.c:10:15: */ + if __ccgo_strace { + trc("tls=%v dir=%v, (%v:)", tls, dir, origin(2)) + } var de uintptr if (*DIR)(unsafe.Pointer(dir)).buf_pos >= (*DIR)(unsafe.Pointer(dir)).buf_end { @@ -1356,6 +1417,9 @@ func hexfloat(tls *TLS, f uintptr, bits int32, emin int32, sign int32, pok int32 } func X__floatscan(tls *TLS, f uintptr, prec int32, pok int32) float64 { /* floatscan.c:427:13: */ + if __ccgo_strace { + trc("tls=%v f=%v prec=%v pok=%v, (%v:)", tls, f, prec, pok, origin(2)) + } var sign int32 = 1 var i size_t var bits int32 @@ -1533,6 +1597,9 @@ var table1 = [257]uint8{Uint8FromInt32(-1), } /* intscan.c:7:28 */ func X__intscan(tls *TLS, f uintptr, base uint32, pok int32, lim uint64) uint64 { /* intscan.c:26:20: */ + if __ccgo_strace { + trc("tls=%v f=%v base=%v pok=%v lim=%v, (%v:)", tls, f, base, pok, lim, origin(2)) + } var val uintptr var c int32 var neg int32 @@ -1838,6 +1905,9 @@ __43: // the actual count. func X__shlim(tls *TLS, f uintptr, lim off_t) { /* shgetc.c:8:6: */ + if __ccgo_strace { + trc("tls=%v f=%v lim=%v, (%v:)", tls, f, lim, origin(2)) + } (*FILE)(unsafe.Pointer(f)).shlim = lim (*FILE)(unsafe.Pointer(f)).shcnt = (int64((*FILE)(unsafe.Pointer(f)).buf) - int64((*FILE)(unsafe.Pointer(f)).rpos)) / 1 // If lim is nonzero, rend must be a valid pointer. @@ -1849,6 +1919,9 @@ func X__shlim(tls *TLS, f uintptr, lim off_t) { /* shgetc.c:8:6: */ } func X__shgetc(tls *TLS, f uintptr) int32 { /* shgetc.c:19:5: */ + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } var c int32 var cnt off_t = (*FILE)(unsafe.Pointer(f)).shcnt + (int64((*FILE)(unsafe.Pointer(f)).rpos)-int64((*FILE)(unsafe.Pointer(f)).buf))/1 if (*FILE)(unsafe.Pointer(f)).shlim != 0 && cnt >= (*FILE)(unsafe.Pointer(f)).shlim || AssignInt32(&c, X__uflow(tls, f)) < 0 { @@ -1910,10 +1983,16 @@ type lconv = struct { var posix_lconv = lconv{decimal_point: ts + 23, thousands_sep: ts + 13, grouping: ts + 13, int_curr_symbol: ts + 13, currency_symbol: ts + 13, mon_decimal_point: ts + 13, mon_thousands_sep: ts + 13, mon_grouping: ts + 13, positive_sign: ts + 13, negative_sign: ts + 13, int_frac_digits: Int8FromInt32(255), frac_digits: Int8FromInt32(255), p_cs_precedes: Int8FromInt32(255), p_sep_by_space: Int8FromInt32(255), n_cs_precedes: Int8FromInt32(255), n_sep_by_space: Int8FromInt32(255), p_sign_posn: Int8FromInt32(255), n_sign_posn: Int8FromInt32(255), int_p_cs_precedes: Int8FromInt32(255), int_p_sep_by_space: Int8FromInt32(255), int_n_cs_precedes: Int8FromInt32(255), int_n_sep_by_space: Int8FromInt32(255), int_p_sign_posn: Int8FromInt32(255), int_n_sign_posn: Int8FromInt32(255)} /* localeconv.c:4:27 */ func Xlocaleconv(tls *TLS) uintptr { /* localeconv.c:31:14: */ + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } return uintptr(unsafe.Pointer(&posix_lconv)) } func X__fpclassify(tls *TLS, x float64) int32 { /* __fpclassify.c:4:5: */ + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + } bp := tls.Alloc(8) defer tls.Free(8) @@ -1938,6 +2017,9 @@ func X__fpclassify(tls *TLS, x float64) int32 { /* __fpclassify.c:4:5: */ } func X__fpclassifyf(tls *TLS, x float32) int32 { /* __fpclassifyf.c:4:5: */ + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + } bp := tls.Alloc(4) defer tls.Free(4) @@ -1962,28 +2044,46 @@ func X__fpclassifyf(tls *TLS, x float32) int32 { /* __fpclassifyf.c:4:5: */ } func X__fpclassifyl(tls *TLS, x float64) int32 { /* __fpclassifyl.c:4:5: */ + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + } return X__fpclassify(tls, x) } func Xcopysignl(tls *TLS, x float64, y float64) float64 { /* copysignl.c:4:13: */ + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + } return Xcopysign(tls, x, y) } func Xfabsl(tls *TLS, x float64) float64 { /* fabsl.c:3:13: */ + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + } return Xfabs(tls, x) } func Xfmodl(tls *TLS, x float64, y float64) float64 { /* fmodl.c:4:13: */ + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + } return Xfmod(tls, x, y) } func Xnanf(tls *TLS, s uintptr) float32 { /* nanf.c:3:7: */ + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + } return X__builtin_nanf(tls, ts+13) } var toint double_t = float64(float64(1)) / 2.22044604925031308085e-16 /* rint.c:10:23 */ func Xrint(tls *TLS, x float64) float64 { /* rint.c:12:8: */ + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + } bp := tls.Alloc(8) defer tls.Free(8) @@ -2013,6 +2113,9 @@ func Xrint(tls *TLS, x float64) float64 { /* rint.c:12:8: */ } func Xscalbn(tls *TLS, x float64, n int32) float64 { /* scalbn.c:4:8: */ + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + } bp := tls.Alloc(8) defer tls.Free(8) @@ -2049,6 +2152,9 @@ func Xscalbn(tls *TLS, x float64, n int32) float64 { /* scalbn.c:4:8: */ } func Xscalbnl(tls *TLS, x float64, n int32) float64 { /* scalbnl.c:4:13: */ + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + } return Xscalbn(tls, x, n) } @@ -3386,6 +3492,9 @@ type __mbstate_t = struct { type mbstate_t = __mbstate_t /* alltypes.h:337:63 */ func Xmbrtowc(tls *TLS, wc uintptr, src uintptr, n size_t, st uintptr) size_t { /* mbrtowc.c:6:8: */ + if __ccgo_strace { + trc("tls=%v wc=%v src=%v n=%v st=%v, (%v:)", tls, wc, src, n, st, origin(2)) + } bp := tls.Alloc(4) defer tls.Free(4) @@ -3509,6 +3618,9 @@ ilseq: var _sinternal_state uint32 /* mbrtowc.c:8:18: */ func Xmbsinit(tls *TLS, st uintptr) int32 { /* mbsinit.c:3:5: */ + if __ccgo_strace { + trc("tls=%v st=%v, (%v:)", tls, st, origin(2)) + } return Bool32(!(st != 0) || !(int32(*(*uint32)(unsafe.Pointer(st))) != 0)) } @@ -3811,6 +3923,9 @@ type resolvconf = struct { } /* lookup.h:34:1 */ func Xfreeaddrinfo(tls *TLS, p uintptr) { /* freeaddrinfo.c:7:6: */ + if __ccgo_strace { + trc("tls=%v p=%v, (%v:)", tls, p, origin(2)) + } var cnt size_t cnt = uint64(1) __1: @@ -3835,6 +3950,9 @@ __3: } func Xgetaddrinfo(tls *TLS, host uintptr, serv uintptr, hint uintptr, res uintptr) int32 { /* getaddrinfo.c:12:5: */ + if __ccgo_strace { + trc("tls=%v host=%v serv=%v hint=%v res=%v, (%v:)", tls, host, serv, hint, res, origin(2)) + } bp := tls.Alloc(1608) defer tls.Free(1608) @@ -4039,6 +4157,9 @@ type mmsghdr = struct { } /* socket.h:63:1 */ func Xgethostbyaddr(tls *TLS, a uintptr, l socklen_t, af int32) uintptr { /* gethostbyaddr.c:7:16: */ + if __ccgo_strace { + trc("tls=%v a=%v l=%v af=%v, (%v:)", tls, a, l, af, origin(2)) + } bp := tls.Alloc(8) defer tls.Free(8) @@ -4065,6 +4186,9 @@ func Xgethostbyaddr(tls *TLS, a uintptr, l socklen_t, af int32) uintptr { /* get var _sh uintptr /* gethostbyaddr.c:9:24: */ func Xgethostbyaddr_r(tls *TLS, a uintptr, l socklen_t, af int32, h uintptr, buf uintptr, buflen size_t, res uintptr, err uintptr) int32 { /* gethostbyaddr_r.c:10:5: */ + if __ccgo_strace { + trc("tls=%v a=%v l=%v af=%v h=%v buf=%v buflen=%v res=%v err=%v, (%v:)", tls, a, l, af, h, buf, buflen, res, err, origin(2)) + } bp := tls.Alloc(28) defer tls.Free(28) @@ -4150,10 +4274,16 @@ func Xgethostbyaddr_r(tls *TLS, a uintptr, l socklen_t, af int32, h uintptr, buf } func Xgethostbyname(tls *TLS, name uintptr) uintptr { /* gethostbyname.c:8:16: */ + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + } return Xgethostbyname2(tls, name, 2) } func Xgethostbyname2(tls *TLS, name uintptr, af int32) uintptr { /* gethostbyname2.c:8:16: */ + if __ccgo_strace { + trc("tls=%v name=%v af=%v, (%v:)", tls, name, af, origin(2)) + } bp := tls.Alloc(8) defer tls.Free(8) @@ -4180,6 +4310,9 @@ func Xgethostbyname2(tls *TLS, name uintptr, af int32) uintptr { /* gethostbynam var _sh1 uintptr /* gethostbyname2.c:10:24: */ func Xgethostbyname2_r(tls *TLS, name uintptr, af int32, h uintptr, buf uintptr, buflen size_t, res uintptr, err uintptr) int32 { /* gethostbyname2_r.c:11:5: */ + if __ccgo_strace { + trc("tls=%v name=%v af=%v h=%v buf=%v buflen=%v res=%v err=%v, (%v:)", tls, name, af, h, buf, buflen, res, err, origin(2)) + } bp := tls.Alloc(1600) defer tls.Free(1600) @@ -4271,6 +4404,9 @@ func Xgethostbyname2_r(tls *TLS, name uintptr, af int32, h uintptr, buf uintptr, } func Xgethostbyname_r(tls *TLS, name uintptr, h uintptr, buf uintptr, buflen size_t, res uintptr, err uintptr) int32 { /* gethostbyname_r.c:6:5: */ + if __ccgo_strace { + trc("tls=%v name=%v h=%v buf=%v buflen=%v res=%v err=%v, (%v:)", tls, name, h, buf, buflen, res, err, origin(2)) + } return Xgethostbyname2_r(tls, name, 2, h, buf, buflen, res, err) } @@ -4570,6 +4706,9 @@ func reverse_services(tls *TLS, buf uintptr, port int32, dgram int32) { /* getna } func Xgetnameinfo(tls *TLS, sa1 uintptr, sl socklen_t, node uintptr, nodelen socklen_t, serv uintptr, servlen socklen_t, flags int32) int32 { /* getnameinfo.c:125:5: */ + if __ccgo_strace { + trc("tls=%v sa1=%v sl=%v node=%v nodelen=%v serv=%v servlen=%v flags=%v, (%v:)", tls, sa1, sl, node, nodelen, serv, servlen, flags, origin(2)) + } bp := tls.Alloc(347) defer tls.Free(347) @@ -4670,10 +4809,16 @@ func Xgetnameinfo(tls *TLS, sa1 uintptr, sl socklen_t, node uintptr, nodelen soc var Xh_errno int32 /* h_errno.c:4:5: */ func X__h_errno_location(tls *TLS) uintptr { /* h_errno.c:6:5: */ + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } return uintptr(unsafe.Pointer(&Xh_errno)) } func X__inet_aton(tls *TLS, s0 uintptr, dest uintptr) int32 { /* inet_aton.c:7:5: */ + if __ccgo_strace { + trc("tls=%v s0=%v dest=%v, (%v:)", tls, s0, dest, origin(2)) + } bp := tls.Alloc(40) defer tls.Free(40) @@ -4725,6 +4870,9 @@ func X__inet_aton(tls *TLS, s0 uintptr, dest uintptr) int32 { /* inet_aton.c:7:5 } func Xinet_ntop(tls *TLS, af int32, a0 uintptr, s uintptr, l socklen_t) uintptr { /* inet_ntop.c:7:12: */ + if __ccgo_strace { + trc("tls=%v af=%v a0=%v s=%v l=%v, (%v:)", tls, af, a0, s, l, origin(2)) + } bp := tls.Alloc(276) defer tls.Free(276) @@ -4799,6 +4947,9 @@ func hexval(tls *TLS, c uint32) int32 { /* inet_pton.c:7:12: */ } func Xinet_pton(tls *TLS, af int32, s uintptr, a0 uintptr) int32 { /* inet_pton.c:15:5: */ + if __ccgo_strace { + trc("tls=%v af=%v s=%v a0=%v, (%v:)", tls, af, s, a0, origin(2)) + } bp := tls.Alloc(16) defer tls.Free(16) @@ -4896,6 +5047,9 @@ func Xinet_pton(tls *TLS, af int32, s uintptr, a0 uintptr) int32 { /* inet_pton. } func X__lookup_ipliteral(tls *TLS, buf uintptr, name uintptr, family int32) int32 { /* lookup_ipliteral.c:12:5: */ + if __ccgo_strace { + trc("tls=%v buf=%v name=%v family=%v, (%v:)", tls, buf, name, family, origin(2)) + } bp := tls.Alloc(96) defer tls.Free(96) @@ -5206,6 +5360,9 @@ func addrcmp(tls *TLS, _a uintptr, _b uintptr) int32 { /* lookup_name.c:305:12: } func X__lookup_name(tls *TLS, buf uintptr, canon uintptr, name uintptr, family int32, flags int32) int32 { /* lookup_name.c:311:5: */ + if __ccgo_strace { + trc("tls=%v buf=%v canon=%v name=%v family=%v flags=%v, (%v:)", tls, buf, canon, name, family, flags, origin(2)) + } bp := tls.Alloc(92) defer tls.Free(92) @@ -5372,6 +5529,9 @@ func X__lookup_name(tls *TLS, buf uintptr, canon uintptr, name uintptr, family i } func X__lookup_serv(tls *TLS, buf uintptr, name uintptr, proto int32, socktype int32, flags int32) int32 { /* lookup_serv.c:12:5: */ + if __ccgo_strace { + trc("tls=%v buf=%v name=%v proto=%v socktype=%v flags=%v, (%v:)", tls, buf, name, proto, socktype, flags, origin(2)) + } bp := tls.Alloc(8) defer tls.Free(8) @@ -5505,10 +5665,16 @@ func temper(tls *TLS, x uint32) uint32 { /* rand_r.c:3:17: */ } func Xrand_r(tls *TLS, seed uintptr) int32 { /* rand_r.c:12:5: */ + if __ccgo_strace { + trc("tls=%v seed=%v, (%v:)", tls, seed, origin(2)) + } return int32(temper(tls, AssignPtrUint32(seed, *(*uint32)(unsafe.Pointer(seed))*uint32(1103515245)+uint32(12345))) / uint32(2)) } func X__lockfile(tls *TLS, f uintptr) int32 { /* __lockfile.c:4:5: */ + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } var owner int32 = (*FILE)(unsafe.Pointer(f)).lock var tid int32 = (*__pthread)(unsafe.Pointer(__pthread_self(tls))).tid if owner&CplInt32(0x40000000) == tid { @@ -5527,12 +5693,18 @@ func X__lockfile(tls *TLS, f uintptr) int32 { /* __lockfile.c:4:5: */ } func X__unlockfile(tls *TLS, f uintptr) { /* __lockfile.c:19:6: */ + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } if a_swap(tls, f+140, 0)&0x40000000 != 0 { __wake(tls, f+140, 1, 1) } } func X__toread(tls *TLS, f uintptr) int32 { /* __toread.c:3:5: */ + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } *(*int32)(unsafe.Pointer(f + 136)) |= (*FILE)(unsafe.Pointer(f)).mode - 1 if (*FILE)(unsafe.Pointer(f)).wpos != (*FILE)(unsafe.Pointer(f)).wbase { (*struct { @@ -5552,6 +5724,9 @@ func X__toread(tls *TLS, f uintptr) int32 { /* __toread.c:3:5: */ } func X__toread_needs_stdio_exit(tls *TLS) { /* __toread.c:16:13: */ + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } X__builtin_abort(tls) //TODO- // __stdio_exit_needed(); } @@ -5560,6 +5735,9 @@ func X__toread_needs_stdio_exit(tls *TLS) { /* __toread.c:16:13: */ // data buffered for reading. func X__uflow(tls *TLS, f uintptr) int32 { /* __uflow.c:6:5: */ + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } bp := tls.Alloc(1) defer tls.Free(1) @@ -5574,6 +5752,9 @@ func X__uflow(tls *TLS, f uintptr) int32 { /* __uflow.c:6:5: */ } func Xsscanf(tls *TLS, s uintptr, fmt uintptr, va uintptr) int32 { /* sscanf.c:4:5: */ + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v va=%v, (%v:)", tls, s, fmt, va, origin(2)) + } var ret int32 var ap va_list _ = ap @@ -5623,6 +5804,9 @@ func arg_n(tls *TLS, ap va_list, n uint32) uintptr { /* vfscanf.c:44:13: */ } func Xvfscanf(tls *TLS, f uintptr, fmt uintptr, ap va_list) int32 { /* vfscanf.c:56:5: */ + if __ccgo_strace { + trc("tls=%v f=%v fmt=%v ap=%v, (%v:)", tls, f, fmt, ap, origin(2)) + } bp := tls.Alloc(276) defer tls.Free(276) @@ -5656,12 +5840,7 @@ func Xvfscanf(tls *TLS, f uintptr, fmt uintptr, ap va_list) int32 { /* vfscanf.c dest = uintptr(0) matches = 0 pos = int64(0) - __need_unlock = func() int32 { - if (*FILE)(unsafe.Pointer(f)).lock >= 0 { - return X__lockfile(tls, f) - } - return 0 - }() + __need_unlock = 0 if !!(int32((*FILE)(unsafe.Pointer(f)).rpos) != 0) { goto __1 @@ -6498,6 +6677,9 @@ func string_read(tls *TLS, f uintptr, buf uintptr, len size_t) size_t { /* vssca } func Xvsscanf(tls *TLS, s uintptr, fmt uintptr, ap va_list) int32 { /* vsscanf.c:18:5: */ + if __ccgo_strace { + trc("tls=%v s=%v fmt=%v ap=%v, (%v:)", tls, s, fmt, ap, origin(2)) + } bp := tls.Alloc(232) defer tls.Free(232) @@ -6508,6 +6690,9 @@ func Xvsscanf(tls *TLS, s uintptr, fmt uintptr, ap va_list) int32 { /* vsscanf.c } func Xbsearch(tls *TLS, key uintptr, base uintptr, nel size_t, width size_t, cmp uintptr) uintptr { /* bsearch.c:3:6: */ + if __ccgo_strace { + trc("tls=%v key=%v base=%v nel=%v width=%v cmp=%v, (%v:)", tls, key, base, nel, width, cmp, origin(2)) + } var try uintptr var sign int32 for nel > uint64(0) { @@ -6550,14 +6735,23 @@ func strtox(tls *TLS, s uintptr, p uintptr, prec int32) float64 { /* strtod.c:6: } func Xstrtof(tls *TLS, s uintptr, p uintptr) float32 { /* strtod.c:17:7: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + } return float32(strtox(tls, s, p, 0)) } func Xstrtod(tls *TLS, s uintptr, p uintptr) float64 { /* strtod.c:22:8: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + } return strtox(tls, s, p, 1) } func Xstrtold(tls *TLS, s uintptr, p uintptr) float64 { /* strtod.c:27:13: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + } return strtox(tls, s, p, 2) } @@ -6579,30 +6773,51 @@ func strtox1(tls *TLS, s uintptr, p uintptr, base int32, lim uint64) uint64 { /* } func Xstrtoull(tls *TLS, s uintptr, p uintptr, base int32) uint64 { /* strtol.c:21:20: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + } return strtox1(tls, s, p, base, 2*uint64(0x7fffffffffffffff)+uint64(1)) } func Xstrtoll(tls *TLS, s uintptr, p uintptr, base int32) int64 { /* strtol.c:26:11: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + } return int64(strtox1(tls, s, p, base, Uint64FromInt64(-0x7fffffffffffffff-int64(1)))) } func Xstrtoul(tls *TLS, s uintptr, p uintptr, base int32) uint64 { /* strtol.c:31:15: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + } return uint64(strtox1(tls, s, p, base, 2*uint64(0x7fffffffffffffff)+uint64(1))) } func Xstrtol(tls *TLS, s uintptr, p uintptr, base int32) int64 { /* strtol.c:36:6: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + } return int64(strtox1(tls, s, p, base, 0+Uint64FromInt64(Int64(-Int64(0x7fffffffffffffff))-Int64FromInt32(1)))) } func Xstrtoimax(tls *TLS, s uintptr, p uintptr, base int32) intmax_t { /* strtol.c:41:10: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + } return intmax_t(Xstrtoll(tls, s, p, base)) } func Xstrtoumax(tls *TLS, s uintptr, p uintptr, base int32) uintmax_t { /* strtol.c:46:11: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + } return uintmax_t(Xstrtoull(tls, s, p, base)) } func Xstrdup(tls *TLS, s uintptr) uintptr { /* strdup.c:4:6: */ + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + } var l size_t = Xstrlen(tls, s) var d uintptr = Xmalloc(tls, l+uint64(1)) if !(d != 0) { @@ -6612,6 +6827,9 @@ func Xstrdup(tls *TLS, s uintptr) uintptr { /* strdup.c:4:6: */ } func Xstrlcat(tls *TLS, d uintptr, s uintptr, n size_t) size_t { /* strlcat.c:4:8: */ + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + } var l size_t = Xstrnlen(tls, d, n) if l == n { return l + Xstrlen(tls, s) @@ -6629,6 +6847,9 @@ func Xstrlcat(tls *TLS, d uintptr, s uintptr, n size_t) size_t { /* strlcat.c:4: // from SUS and have nothing to do with the host system. func Xstrlcpy(tls *TLS, d uintptr, s uintptr, n size_t) size_t { /* strlcpy.c:11:8: */ + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + } var d0 uintptr var wd uintptr var ws uintptr @@ -6700,6 +6921,9 @@ finish: } func Xstrncasecmp(tls *TLS, _l uintptr, _r uintptr, n size_t) int32 { /* strncasecmp.c:4:5: */ + if __ccgo_strace { + trc("tls=%v _l=%v _r=%v n=%v, (%v:)", tls, _l, _r, n, origin(2)) + } var l uintptr = _l var r uintptr = _r if !(int32(PostDecUint64(&n, 1)) != 0) { @@ -6722,10 +6946,16 @@ __3: } func X__strncasecmp_l(tls *TLS, l uintptr, r uintptr, n size_t, loc locale_t) int32 { /* strncasecmp.c:12:5: */ + if __ccgo_strace { + trc("tls=%v l=%v r=%v n=%v loc=%v, (%v:)", tls, l, r, n, loc, origin(2)) + } return Xstrncasecmp(tls, l, r, n) } func Xstrncat(tls *TLS, d uintptr, s uintptr, n size_t) uintptr { /* strncat.c:3:6: */ + if __ccgo_strace { + trc("tls=%v d=%v s=%v n=%v, (%v:)", tls, d, s, n, origin(2)) + } var a uintptr = d d += uintptr(Xstrlen(tls, d)) for n != 0 && *(*int8)(unsafe.Pointer(s)) != 0 { @@ -6737,6 +6967,9 @@ func Xstrncat(tls *TLS, d uintptr, s uintptr, n size_t) uintptr { /* strncat.c:3 } func Xstrnlen(tls *TLS, s uintptr, n size_t) size_t { /* strnlen.c:3:8: */ + if __ccgo_strace { + trc("tls=%v s=%v n=%v, (%v:)", tls, s, n, origin(2)) + } var p uintptr = Xmemchr(tls, s, 0, n) if p != 0 { return uint64((int64(p) - int64(s)) / 1) @@ -6745,6 +6978,9 @@ func Xstrnlen(tls *TLS, s uintptr, n size_t) size_t { /* strnlen.c:3:8: */ } func Xstrspn(tls *TLS, s uintptr, c uintptr) size_t { /* strspn.c:6:8: */ + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + } bp := tls.Alloc(32) defer tls.Free(32) @@ -6768,6 +7004,9 @@ func Xstrspn(tls *TLS, s uintptr, c uintptr) size_t { /* strspn.c:6:8: */ } func Xstrtok(tls *TLS, s uintptr, sep uintptr) uintptr { /* strtok.c:3:6: */ + if __ccgo_strace { + trc("tls=%v s=%v sep=%v, (%v:)", tls, s, sep, origin(2)) + } if !(s != 0) && !(int32(AssignUintptr(&s, _sp)) != 0) { return uintptr(0) } @@ -6787,10 +7026,16 @@ func Xstrtok(tls *TLS, s uintptr, sep uintptr) uintptr { /* strtok.c:3:6: */ var _sp uintptr /* strtok.c:5:14: */ func X__ccgo_pthreadAttrGetDetachState(tls *TLS, a uintptr) int32 { /* pthread_attr_get.c:3:5: */ + if __ccgo_strace { + trc("tls=%v a=%v, (%v:)", tls, a, origin(2)) + } return *(*int32)(unsafe.Pointer(a + 6*4)) } func Xpthread_attr_getdetachstate(tls *TLS, a uintptr, state uintptr) int32 { /* pthread_attr_get.c:7:5: */ + if __ccgo_strace { + trc("tls=%v a=%v state=%v, (%v:)", tls, a, state, origin(2)) + } *(*int32)(unsafe.Pointer(state)) = *(*int32)(unsafe.Pointer(a + 6*4)) return 0 } @@ -6877,6 +7122,9 @@ func Xpthread_attr_getdetachstate(tls *TLS, a uintptr, state uintptr) int32 { /* // } func X__ccgo_pthreadMutexattrGettype(tls *TLS, a uintptr) int32 { /* pthread_attr_get.c:93:5: */ + if __ccgo_strace { + trc("tls=%v a=%v, (%v:)", tls, a, origin(2)) + } return int32((*pthread_mutexattr_t)(unsafe.Pointer(a)).__attr & uint32(3)) } @@ -6893,6 +7141,9 @@ func X__ccgo_pthreadMutexattrGettype(tls *TLS, a uintptr) int32 { /* pthread_att // } func Xpthread_attr_setdetachstate(tls *TLS, a uintptr, state int32) int32 { /* pthread_attr_setdetachstate.c:3:5: */ + if __ccgo_strace { + trc("tls=%v a=%v state=%v, (%v:)", tls, a, state, origin(2)) + } if uint32(state) > 1 { return 22 } @@ -6901,6 +7152,9 @@ func Xpthread_attr_setdetachstate(tls *TLS, a uintptr, state int32) int32 { /* p } func X__ccgo_getMutexType(tls *TLS, m uintptr) int32 { /* pthread_mutex_lock.c:3:5: */ + if __ccgo_strace { + trc("tls=%v m=%v, (%v:)", tls, m, origin(2)) + } return *(*int32)(unsafe.Pointer(m)) & 15 } @@ -6916,15 +7170,24 @@ func X__ccgo_getMutexType(tls *TLS, m uintptr) int32 { /* pthread_mutex_lock.c:3 // weak_alias(__pthread_mutex_lock, pthread_mutex_lock); func Xpthread_mutexattr_destroy(tls *TLS, a uintptr) int32 { /* pthread_mutexattr_destroy.c:3:5: */ + if __ccgo_strace { + trc("tls=%v a=%v, (%v:)", tls, a, origin(2)) + } return 0 } func Xpthread_mutexattr_init(tls *TLS, a uintptr) int32 { /* pthread_mutexattr_init.c:3:5: */ + if __ccgo_strace { + trc("tls=%v a=%v, (%v:)", tls, a, origin(2)) + } *(*pthread_mutexattr_t)(unsafe.Pointer(a)) = pthread_mutexattr_t{} return 0 } func Xpthread_mutexattr_settype(tls *TLS, a uintptr, type1 int32) int32 { /* pthread_mutexattr_settype.c:3:5: */ + if __ccgo_strace { + trc("tls=%v a=%v type1=%v, (%v:)", tls, a, type1, origin(2)) + } if uint32(type1) > uint32(2) { return 22 } diff --git a/vendor/modernc.org/libc/musl_linux_ppc64le.go b/vendor/modernc.org/libc/musl_linux_ppc64le.go deleted file mode 100644 index 03045ca5c..000000000 --- a/vendor/modernc.org/libc/musl_linux_ppc64le.go +++ /dev/null @@ -1,7012 +0,0 @@ -// Code generated by 'ccgo -export-externs X -hide __syscall0,__syscall1,__syscall2,__syscall3,__syscall4,__syscall5,__syscall6 -nostdinc -nostdlib -o ../musl_linux_ppc64le.go -pkgname libc -static-locals-prefix _s -Iarch/powerpc64 -Iarch/generic -Iobj/src/internal -Isrc/include -Isrc/internal -Iobj/include -Iinclude copyright.c src/ctype/__ctype_b_loc.c src/ctype/isalnum.c src/ctype/isalpha.c src/ctype/isdigit.c src/ctype/islower.c src/ctype/isprint.c src/ctype/isupper.c src/ctype/isxdigit.c src/dirent/closedir.c src/dirent/opendir.c src/dirent/readdir.c src/internal/floatscan.c src/internal/intscan.c src/internal/shgetc.c src/locale/localeconv.c src/math/__fpclassify.c src/math/__fpclassifyf.c src/math/__fpclassifyl.c src/math/copysignl.c src/math/fabsl.c src/math/fmodl.c src/math/nanf.c src/math/rint.c src/math/scalbn.c src/math/scalbnl.c src/multibyte/internal.c src/multibyte/mbrtowc.c src/multibyte/mbsinit.c src/network/freeaddrinfo.c src/network/getaddrinfo.c src/network/gethostbyaddr.c src/network/gethostbyaddr_r.c src/network/gethostbyname.c src/network/gethostbyname2.c src/network/gethostbyname2_r.c src/network/gethostbyname_r.c src/network/getnameinfo.c src/network/h_errno.c src/network/inet_aton.c src/network/inet_ntop.c src/network/inet_pton.c src/network/lookup_ipliteral.c src/network/lookup_name.c src/network/lookup_serv.c src/prng/rand_r.c src/stdio/__lockfile.c src/stdio/__toread.c src/stdio/__uflow.c src/stdio/sscanf.c src/stdio/vfscanf.c src/stdio/vsscanf.c src/stdlib/bsearch.c src/stdlib/strtod.c src/stdlib/strtol.c src/string/strdup.c src/string/strlcat.c src/string/strlcpy.c src/string/strncasecmp.c src/string/strncat.c src/string/strnlen.c src/string/strspn.c src/string/strtok.c src/thread/pthread_attr_get.c src/thread/pthread_attr_setdetachstate.c src/thread/pthread_mutex_lock.c src/thread/pthread_mutexattr_destroy.c src/thread/pthread_mutexattr_init.c src/thread/pthread_mutexattr_settype.c', DO NOT EDIT. - -package libc - -import ( - "math" - "reflect" - "sync/atomic" - "unsafe" -) - -var _ = math.Pi -var _ reflect.Kind -var _ atomic.Value -var _ unsafe.Pointer - -// musl as a whole is licensed under the following standard MIT license: -// -// ---------------------------------------------------------------------- -// Copyright © 2005-2020 Rich Felker, et al. -// -// Permission is hereby granted, free of charge, to any person obtaining -// a copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to -// permit persons to whom the Software is furnished to do so, subject to -// the following conditions: -// -// The above copyright notice and this permission notice shall be -// included in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -// SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -// ---------------------------------------------------------------------- -// -// Authors/contributors include: -// -// A. Wilcox -// Ada Worcester -// Alex Dowad -// Alex Suykov -// Alexander Monakov -// Andre McCurdy -// Andrew Kelley -// Anthony G. Basile -// Aric Belsito -// Arvid Picciani -// Bartosz Brachaczek -// Benjamin Peterson -// Bobby Bingham -// Boris Brezillon -// Brent Cook -// Chris Spiegel -// Clément Vasseur -// Daniel Micay -// Daniel Sabogal -// Daurnimator -// David Carlier -// David Edelsohn -// Denys Vlasenko -// Dmitry Ivanov -// Dmitry V. Levin -// Drew DeVault -// Emil Renner Berthing -// Fangrui Song -// Felix Fietkau -// Felix Janda -// Gianluca Anzolin -// Hauke Mehrtens -// He X -// Hiltjo Posthuma -// Isaac Dunham -// Jaydeep Patil -// Jens Gustedt -// Jeremy Huntwork -// Jo-Philipp Wich -// Joakim Sindholt -// John Spencer -// Julien Ramseier -// Justin Cormack -// Kaarle Ritvanen -// Khem Raj -// Kylie McClain -// Leah Neukirchen -// Luca Barbato -// Luka Perkov -// M Farkas-Dyck (Strake) -// Mahesh Bodapati -// Markus Wichmann -// Masanori Ogino -// Michael Clark -// Michael Forney -// Mikhail Kremnyov -// Natanael Copa -// Nicholas J. Kain -// orc -// Pascal Cuoq -// Patrick Oppenlander -// Petr Hosek -// Petr Skocik -// Pierre Carrier -// Reini Urban -// Rich Felker -// Richard Pennington -// Ryan Fairfax -// Samuel Holland -// Segev Finer -// Shiz -// sin -// Solar Designer -// Stefan Kristiansson -// Stefan O'Rear -// Szabolcs Nagy -// Timo Teräs -// Trutz Behn -// Valentin Ochs -// Will Dietz -// William Haddon -// William Pitcock -// -// Portions of this software are derived from third-party works licensed -// under terms compatible with the above MIT license: -// -// The TRE regular expression implementation (src/regex/reg* and -// src/regex/tre*) is Copyright © 2001-2008 Ville Laurikari and licensed -// under a 2-clause BSD license (license text in the source files). The -// included version has been heavily modified by Rich Felker in 2012, in -// the interests of size, simplicity, and namespace cleanliness. -// -// Much of the math library code (src/math/* and src/complex/*) is -// Copyright © 1993,2004 Sun Microsystems or -// Copyright © 2003-2011 David Schultz or -// Copyright © 2003-2009 Steven G. Kargl or -// Copyright © 2003-2009 Bruce D. Evans or -// Copyright © 2008 Stephen L. Moshier or -// Copyright © 2017-2018 Arm Limited -// and labelled as such in comments in the individual source files. All -// have been licensed under extremely permissive terms. -// -// The ARM memcpy code (src/string/arm/memcpy.S) is Copyright © 2008 -// The Android Open Source Project and is licensed under a two-clause BSD -// license. It was taken from Bionic libc, used on Android. -// -// The AArch64 memcpy and memset code (src/string/aarch64/*) are -// Copyright © 1999-2019, Arm Limited. -// -// The implementation of DES for crypt (src/crypt/crypt_des.c) is -// Copyright © 1994 David Burren. It is licensed under a BSD license. -// -// The implementation of blowfish crypt (src/crypt/crypt_blowfish.c) was -// originally written by Solar Designer and placed into the public -// domain. The code also comes with a fallback permissive license for use -// in jurisdictions that may not recognize the public domain. -// -// The smoothsort implementation (src/stdlib/qsort.c) is Copyright © 2011 -// Valentin Ochs and is licensed under an MIT-style license. -// -// The x86_64 port was written by Nicholas J. Kain and is licensed under -// the standard MIT terms. -// -// The mips and microblaze ports were originally written by Richard -// Pennington for use in the ellcc project. The original code was adapted -// by Rich Felker for build system and code conventions during upstream -// integration. It is licensed under the standard MIT terms. -// -// The mips64 port was contributed by Imagination Technologies and is -// licensed under the standard MIT terms. -// -// The powerpc port was also originally written by Richard Pennington, -// and later supplemented and integrated by John Spencer. It is licensed -// under the standard MIT terms. -// -// All other files which have no copyright comments are original works -// produced specifically for use as part of this library, written either -// by Rich Felker, the main author of the library, or by one or more -// contibutors listed above. Details on authorship of individual files -// can be found in the git version control history of the project. The -// omission of copyright and license comments in each file is in the -// interest of source tree size. -// -// In addition, permission is hereby granted for all public header files -// (include/* and arch/*/bits/*) and crt files intended to be linked into -// applications (crt/*, ldso/dlstart.c, and arch/*/crt_arch.h) to omit -// the copyright notice and permission notice otherwise required by the -// license, and to use these files without any requirement of -// attribution. These files include substantial contributions from: -// -// Bobby Bingham -// John Spencer -// Nicholas J. Kain -// Rich Felker -// Richard Pennington -// Stefan Kristiansson -// Szabolcs Nagy -// -// all of whom have explicitly granted such permission. -// -// This file previously contained text expressing a belief that most of -// the files covered by the above exception were sufficiently trivial not -// to be subject to copyright, resulting in confusion over whether it -// negated the permissions granted in the license. In the spirit of -// permissive licensing, and of not having licensing issues being an -// obstacle to adoption, that text has been removed. -const ( /* copyright.c:194:1: */ - __musl__copyright__ = 0 -) - -const ( /* nameser.h:117:1: */ - ns_uop_delete = 0 - ns_uop_add = 1 - ns_uop_max = 2 -) - -const ( /* nameser.h:147:1: */ - ns_t_invalid = 0 - ns_t_a = 1 - ns_t_ns = 2 - ns_t_md = 3 - ns_t_mf = 4 - ns_t_cname = 5 - ns_t_soa = 6 - ns_t_mb = 7 - ns_t_mg = 8 - ns_t_mr = 9 - ns_t_null = 10 - ns_t_wks = 11 - ns_t_ptr = 12 - ns_t_hinfo = 13 - ns_t_minfo = 14 - ns_t_mx = 15 - ns_t_txt = 16 - ns_t_rp = 17 - ns_t_afsdb = 18 - ns_t_x25 = 19 - ns_t_isdn = 20 - ns_t_rt = 21 - ns_t_nsap = 22 - ns_t_nsap_ptr = 23 - ns_t_sig = 24 - ns_t_key = 25 - ns_t_px = 26 - ns_t_gpos = 27 - ns_t_aaaa = 28 - ns_t_loc = 29 - ns_t_nxt = 30 - ns_t_eid = 31 - ns_t_nimloc = 32 - ns_t_srv = 33 - ns_t_atma = 34 - ns_t_naptr = 35 - ns_t_kx = 36 - ns_t_cert = 37 - ns_t_a6 = 38 - ns_t_dname = 39 - ns_t_sink = 40 - ns_t_opt = 41 - ns_t_apl = 42 - ns_t_tkey = 249 - ns_t_tsig = 250 - ns_t_ixfr = 251 - ns_t_axfr = 252 - ns_t_mailb = 253 - ns_t_maila = 254 - ns_t_any = 255 - ns_t_zxfr = 256 - ns_t_max = 65536 -) - -const ( /* nameser.h:210:1: */ - ns_c_invalid = 0 - ns_c_in = 1 - ns_c_2 = 2 - ns_c_chaos = 3 - ns_c_hs = 4 - ns_c_none = 254 - ns_c_any = 255 - ns_c_max = 65536 -) - -const ( /* nameser.h:221:1: */ - ns_kt_rsa = 1 - ns_kt_dh = 2 - ns_kt_dsa = 3 - ns_kt_private = 254 -) - -const ( /* nameser.h:228:1: */ - cert_t_pkix = 1 - cert_t_spki = 2 - cert_t_pgp = 3 - cert_t_url = 253 - cert_t_oid = 254 -) - -const ( /* nameser.h:28:1: */ - ns_s_qd = 0 - ns_s_zn = 0 - ns_s_an = 1 - ns_s_pr = 1 - ns_s_ns = 2 - ns_s_ud = 2 - ns_s_ar = 3 - ns_s_max = 4 -) - -const ( /* nameser.h:75:1: */ - ns_f_qr = 0 - ns_f_opcode = 1 - ns_f_aa = 2 - ns_f_tc = 3 - ns_f_rd = 4 - ns_f_ra = 5 - ns_f_z = 6 - ns_f_ad = 7 - ns_f_cd = 8 - ns_f_rcode = 9 - ns_f_max = 10 -) - -const ( /* nameser.h:89:1: */ - ns_o_query = 0 - ns_o_iquery = 1 - ns_o_status = 2 - ns_o_notify = 4 - ns_o_update = 5 - ns_o_max = 6 -) - -const ( /* nameser.h:98:1: */ - ns_r_noerror = 0 - ns_r_formerr = 1 - ns_r_servfail = 2 - ns_r_nxdomain = 3 - ns_r_notimpl = 4 - ns_r_refused = 5 - ns_r_yxdomain = 6 - ns_r_yxrrset = 7 - ns_r_nxrrset = 8 - ns_r_notauth = 9 - ns_r_notzone = 10 - ns_r_max = 11 - ns_r_badvers = 16 - ns_r_badsig = 16 - ns_r_badkey = 17 - ns_r_badtime = 18 -) - -const ( /* pthread_impl.h:58:1: */ - DT_EXITING = 0 - DT_JOINABLE = 1 - DT_DETACHED = 2 -) - -type ptrdiff_t = int64 /* :3:26 */ - -type size_t = uint64 /* :9:23 */ - -type wchar_t = int32 /* :15:24 */ - -type uint16_t = uint16 /* alltypes.h:118:25 */ - -type uint32_t = uint32 /* alltypes.h:123:25 */ - -type uint64_t = uint64 /* alltypes.h:128:25 */ - -func __bswap32(tls *TLS, __x uint32_t) uint32_t { /* endian.h:24:26: */ - return __x>>24 | __x>>8&uint32_t(0xff00) | __x<<8&uint32_t(0xff0000) | __x<<24 -} - -var table = [384]uint16{ - uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), - uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), - uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), - uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), - uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), - uint16((0x200/256 | 0x200*256) % 65536), uint16((0x320/256 | 0x320*256) % 65536), uint16((0x220/256 | 0x220*256) % 65536), uint16((0x220/256 | 0x220*256) % 65536), uint16((0x220/256 | 0x220*256) % 65536), uint16((0x220/256 | 0x220*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), - uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), - uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), - uint16((0x160/256 | 0x160*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), - uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), - uint16((0x8d8/256 | 0x8d8*256) % 65536), uint16((0x8d8/256 | 0x8d8*256) % 65536), uint16((0x8d8/256 | 0x8d8*256) % 65536), uint16((0x8d8/256 | 0x8d8*256) % 65536), uint16((0x8d8/256 | 0x8d8*256) % 65536), uint16((0x8d8/256 | 0x8d8*256) % 65536), uint16((0x8d8/256 | 0x8d8*256) % 65536), uint16((0x8d8/256 | 0x8d8*256) % 65536), - uint16((0x8d8/256 | 0x8d8*256) % 65536), uint16((0x8d8/256 | 0x8d8*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), - uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x8d5/256 | 0x8d5*256) % 65536), uint16((0x8d5/256 | 0x8d5*256) % 65536), uint16((0x8d5/256 | 0x8d5*256) % 65536), uint16((0x8d5/256 | 0x8d5*256) % 65536), uint16((0x8d5/256 | 0x8d5*256) % 65536), uint16((0x8d5/256 | 0x8d5*256) % 65536), uint16((0x8c5/256 | 0x8c5*256) % 65536), - uint16((0x8c5/256 | 0x8c5*256) % 65536), uint16((0x8c5/256 | 0x8c5*256) % 65536), uint16((0x8c5/256 | 0x8c5*256) % 65536), uint16((0x8c5/256 | 0x8c5*256) % 65536), uint16((0x8c5/256 | 0x8c5*256) % 65536), uint16((0x8c5/256 | 0x8c5*256) % 65536), uint16((0x8c5/256 | 0x8c5*256) % 65536), uint16((0x8c5/256 | 0x8c5*256) % 65536), - uint16((0x8c5/256 | 0x8c5*256) % 65536), uint16((0x8c5/256 | 0x8c5*256) % 65536), uint16((0x8c5/256 | 0x8c5*256) % 65536), uint16((0x8c5/256 | 0x8c5*256) % 65536), uint16((0x8c5/256 | 0x8c5*256) % 65536), uint16((0x8c5/256 | 0x8c5*256) % 65536), uint16((0x8c5/256 | 0x8c5*256) % 65536), uint16((0x8c5/256 | 0x8c5*256) % 65536), - uint16((0x8c5/256 | 0x8c5*256) % 65536), uint16((0x8c5/256 | 0x8c5*256) % 65536), uint16((0x8c5/256 | 0x8c5*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), - uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x8d6/256 | 0x8d6*256) % 65536), uint16((0x8d6/256 | 0x8d6*256) % 65536), uint16((0x8d6/256 | 0x8d6*256) % 65536), uint16((0x8d6/256 | 0x8d6*256) % 65536), uint16((0x8d6/256 | 0x8d6*256) % 65536), uint16((0x8d6/256 | 0x8d6*256) % 65536), uint16((0x8c6/256 | 0x8c6*256) % 65536), - uint16((0x8c6/256 | 0x8c6*256) % 65536), uint16((0x8c6/256 | 0x8c6*256) % 65536), uint16((0x8c6/256 | 0x8c6*256) % 65536), uint16((0x8c6/256 | 0x8c6*256) % 65536), uint16((0x8c6/256 | 0x8c6*256) % 65536), uint16((0x8c6/256 | 0x8c6*256) % 65536), uint16((0x8c6/256 | 0x8c6*256) % 65536), uint16((0x8c6/256 | 0x8c6*256) % 65536), - uint16((0x8c6/256 | 0x8c6*256) % 65536), uint16((0x8c6/256 | 0x8c6*256) % 65536), uint16((0x8c6/256 | 0x8c6*256) % 65536), uint16((0x8c6/256 | 0x8c6*256) % 65536), uint16((0x8c6/256 | 0x8c6*256) % 65536), uint16((0x8c6/256 | 0x8c6*256) % 65536), uint16((0x8c6/256 | 0x8c6*256) % 65536), uint16((0x8c6/256 | 0x8c6*256) % 65536), - uint16((0x8c6/256 | 0x8c6*256) % 65536), uint16((0x8c6/256 | 0x8c6*256) % 65536), uint16((0x8c6/256 | 0x8c6*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x4c0/256 | 0x4c0*256) % 65536), uint16((0x200/256 | 0x200*256) % 65536), - uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), - uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), - uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), - uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), -} /* __ctype_b_loc.c:9:29 */ - -var ptable uintptr = 0 /* __ctype_b_loc.c:36:29 */ - -func X__ctype_b_loc(tls *TLS) uintptr { /* __ctype_b_loc.c:38:22: */ - return uintptr(unsafe.Pointer(&ptable)) -} - -func __isspace(tls *TLS, _c int32) int32 { /* ctype.h:26:21: */ - return Bool32(_c == ' ' || uint32(_c)-uint32('\t') < uint32(5)) -} - -type __locale_struct = struct{ cat [6]uintptr } /* alltypes.h:335:9 */ - -type locale_t = uintptr /* alltypes.h:335:32 */ - -func Xisalnum(tls *TLS, c int32) int32 { /* isalnum.c:3:5: */ - return Bool32(func() int32 { - if 0 != 0 { - return Xisalpha(tls, c) - } - return Bool32(uint32(c)|uint32(32)-uint32('a') < uint32(26)) - }() != 0 || func() int32 { - if 0 != 0 { - return Xisdigit(tls, c) - } - return Bool32(uint32(c)-uint32('0') < uint32(10)) - }() != 0) -} - -func X__isalnum_l(tls *TLS, c int32, l locale_t) int32 { /* isalnum.c:8:5: */ - return Xisalnum(tls, c) -} - -func Xisalpha(tls *TLS, c int32) int32 { /* isalpha.c:4:5: */ - return Bool32(uint32(c)|uint32(32)-uint32('a') < uint32(26)) -} - -func X__isalpha_l(tls *TLS, c int32, l locale_t) int32 { /* isalpha.c:9:5: */ - return Xisalpha(tls, c) -} - -func Xisdigit(tls *TLS, c int32) int32 { /* isdigit.c:4:5: */ - return Bool32(uint32(c)-uint32('0') < uint32(10)) -} - -func X__isdigit_l(tls *TLS, c int32, l locale_t) int32 { /* isdigit.c:9:5: */ - return Xisdigit(tls, c) -} - -func Xislower(tls *TLS, c int32) int32 { /* islower.c:4:5: */ - return Bool32(uint32(c)-uint32('a') < uint32(26)) -} - -func X__islower_l(tls *TLS, c int32, l locale_t) int32 { /* islower.c:9:5: */ - return Xislower(tls, c) -} - -func Xisprint(tls *TLS, c int32) int32 { /* isprint.c:4:5: */ - return Bool32(uint32(c)-uint32(0x20) < uint32(0x5f)) -} - -func X__isprint_l(tls *TLS, c int32, l locale_t) int32 { /* isprint.c:9:5: */ - return Xisprint(tls, c) -} - -func Xisupper(tls *TLS, c int32) int32 { /* isupper.c:4:5: */ - return Bool32(uint32(c)-uint32('A') < uint32(26)) -} - -func X__isupper_l(tls *TLS, c int32, l locale_t) int32 { /* isupper.c:9:5: */ - return Xisupper(tls, c) -} - -func Xisxdigit(tls *TLS, c int32) int32 { /* isxdigit.c:3:5: */ - return Bool32(func() int32 { - if 0 != 0 { - return Xisdigit(tls, c) - } - return Bool32(uint32(c)-uint32('0') < uint32(10)) - }() != 0 || uint32(c)|uint32(32)-uint32('a') < uint32(6)) -} - -func X__isxdigit_l(tls *TLS, c int32, l locale_t) int32 { /* isxdigit.c:8:5: */ - return Xisxdigit(tls, c) -} - -type off_t = int64 /* alltypes.h:154:16 */ - -type ino_t = uint64 /* alltypes.h:159:25 */ - -type dirent = struct { - d_ino ino_t - d_off off_t - d_reclen uint16 - d_type uint8 - d_name [256]uint8 - _ [5]byte -} /* dirent.h:5:1 */ - -type __dirstream = struct { - tell off_t - fd int32 - buf_pos int32 - buf_end int32 - lock [1]int32 - buf [2048]uint8 -} /* dirent.h:20:9 */ - -type DIR = __dirstream /* dirent.h:20:28 */ - -type ssize_t = int64 /* alltypes.h:57:15 */ - -type intptr_t = int64 /* alltypes.h:62:15 */ - -type pid_t = int32 /* alltypes.h:227:13 */ - -type uid_t = uint32 /* alltypes.h:237:18 */ - -type gid_t = uint32 /* alltypes.h:242:18 */ - -type useconds_t = uint32 /* alltypes.h:252:18 */ - -type div_t = struct { - quot int32 - rem int32 -} /* stdlib.h:62:35 */ -type ldiv_t = struct { - quot int64 - rem int64 -} /* stdlib.h:63:36 */ -type lldiv_t = struct { - quot int64 - rem int64 -} /* stdlib.h:64:41 */ - -func Xclosedir(tls *TLS, dir uintptr) int32 { /* closedir.c:6:5: */ - var ret int32 = Xclose(tls, (*DIR)(unsafe.Pointer(dir)).fd) - Xfree(tls, dir) - return ret -} - -type mode_t = uint32 /* alltypes.h:144:18 */ - -type iovec = struct { - iov_base uintptr - iov_len size_t -} /* alltypes.h:347:1 */ - -type flock = struct { - l_type int16 - l_whence int16 - _ [4]byte - l_start off_t - l_len off_t - l_pid pid_t - _ [4]byte -} /* fcntl.h:24:1 */ - -type file_handle = struct { - _ [0]uint32 - handle_bytes uint32 - handle_type int32 -} /* fcntl.h:167:1 */ - -type f_owner_ex = struct { - __type int32 - pid pid_t -} /* fcntl.h:172:1 */ - -type syscall_arg_t = int64 /* syscall.h:22:14 */ - -func Xopendir(tls *TLS, name uintptr) uintptr { /* opendir.c:8:5: */ - var fd int32 - var dir uintptr - - if AssignInt32(&fd, Xopen(tls, name, 00|040000|02000000, 0)) < 0 { - return uintptr(0) - } - if !(int32(AssignUintptr(&dir, Xcalloc(tls, uint64(1), uint64(unsafe.Sizeof(DIR{}))))) != 0) { - __syscall1(tls, int64(6), int64(fd)) - return uintptr(0) - } - (*DIR)(unsafe.Pointer(dir)).fd = fd - return dir -} - -type max_align_t = struct { - __ll int64 - __ld float64 -} /* alltypes.h:33:54 */ - -type dirstream_buf_alignment_check = [1]uint8 /* readdir.c:7:14 */ - -func Xreaddir(tls *TLS, dir uintptr) uintptr { /* readdir.c:10:15: */ - var de uintptr - - if (*DIR)(unsafe.Pointer(dir)).buf_pos >= (*DIR)(unsafe.Pointer(dir)).buf_end { - var len int32 = int32(__syscall3(tls, int64(202), int64((*DIR)(unsafe.Pointer(dir)).fd), int64(dir+24), int64(unsafe.Sizeof([2048]uint8{})))) - if len <= 0 { - if len < 0 && len != -2 { - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = -len - } - return uintptr(0) - } - (*DIR)(unsafe.Pointer(dir)).buf_end = len - (*DIR)(unsafe.Pointer(dir)).buf_pos = 0 - } - de = dir + 24 + uintptr((*DIR)(unsafe.Pointer(dir)).buf_pos) - *(*int32)(unsafe.Pointer(dir + 12)) += int32((*dirent)(unsafe.Pointer(de)).d_reclen) - (*DIR)(unsafe.Pointer(dir)).tell = (*dirent)(unsafe.Pointer(de)).d_off - return de -} - -type uintptr_t = uint64 /* alltypes.h:47:24 */ - -type int8_t = int8 /* alltypes.h:88:25 */ - -type int16_t = int16 /* alltypes.h:93:25 */ - -type int32_t = int32 /* alltypes.h:98:25 */ - -type int64_t = int64 /* alltypes.h:103:25 */ - -type intmax_t = int64 /* alltypes.h:108:25 */ - -type uint8_t = uint8 /* alltypes.h:113:25 */ - -type uintmax_t = uint64 /* alltypes.h:138:25 */ - -type int_fast8_t = int8_t /* stdint.h:22:16 */ -type int_fast64_t = int64_t /* stdint.h:23:17 */ - -type int_least8_t = int8_t /* stdint.h:25:17 */ -type int_least16_t = int16_t /* stdint.h:26:17 */ -type int_least32_t = int32_t /* stdint.h:27:17 */ -type int_least64_t = int64_t /* stdint.h:28:17 */ - -type uint_fast8_t = uint8_t /* stdint.h:30:17 */ -type uint_fast64_t = uint64_t /* stdint.h:31:18 */ - -type uint_least8_t = uint8_t /* stdint.h:33:18 */ -type uint_least16_t = uint16_t /* stdint.h:34:18 */ -type uint_least32_t = uint32_t /* stdint.h:35:18 */ -type uint_least64_t = uint64_t /* stdint.h:36:18 */ - -type int_fast16_t = int32_t /* stdint.h:1:17 */ -type int_fast32_t = int32_t /* stdint.h:2:17 */ -type uint_fast16_t = uint32_t /* stdint.h:3:18 */ -type uint_fast32_t = uint32_t /* stdint.h:4:18 */ - -type _IO_FILE = struct { - flags uint32 - _ [4]byte - rpos uintptr - rend uintptr - close uintptr - wend uintptr - wpos uintptr - mustbezero_1 uintptr - wbase uintptr - read uintptr - write uintptr - seek uintptr - buf uintptr - buf_size size_t - prev uintptr - next uintptr - fd int32 - pipe_pid int32 - lockcount int64 - mode int32 - lock int32 - lbf int32 - _ [4]byte - cookie uintptr - off off_t - getln_buf uintptr - mustbezero_2 uintptr - shend uintptr - shlim off_t - shcnt off_t - prev_locked uintptr - next_locked uintptr - locale uintptr -} /* alltypes.h:312:9 */ - -type FILE = _IO_FILE /* alltypes.h:312:25 */ - -type va_list = uintptr /* alltypes.h:318:27 */ - -type _G_fpos64_t = struct { - _ [0]uint64 - __opaque [16]uint8 -} /* stdio.h:54:9 */ - -type fpos_t = _G_fpos64_t /* stdio.h:58:3 */ - -type float_t = float32 /* alltypes.h:22:15 */ - -type double_t = float64 /* alltypes.h:27:16 */ - -func __FLOAT_BITS(tls *TLS, __f float32) uint32 { /* math.h:55:26: */ - bp := tls.Alloc(4) - defer tls.Free(4) - - // var __u struct {__f float32;} at bp, 4 - - *(*float32)(unsafe.Pointer(bp)) = __f - return *(*uint32)(unsafe.Pointer(bp)) -} - -func __DOUBLE_BITS(tls *TLS, __f float64) uint64 { /* math.h:61:36: */ - bp := tls.Alloc(8) - defer tls.Free(8) - - // var __u struct {__f float64;} at bp, 8 - - *(*float64)(unsafe.Pointer(bp)) = __f - return *(*uint64)(unsafe.Pointer(bp)) -} - -type __pthread = struct { - self uintptr - dtv uintptr - prev uintptr - next uintptr - sysinfo uintptr_t - canary uintptr_t - canary2 uintptr_t - tid int32 - errno_val int32 - detach_state int32 - cancel int32 - canceldisable uint8 - cancelasync uint8 - tsd_used uint8 /* unsigned char tsd_used: 1, unsigned char dlerror_flag: 1 */ - _ [5]byte - map_base uintptr - map_size size_t - stack uintptr - stack_size size_t - guard_size size_t - result uintptr - cancelbuf uintptr - tsd uintptr - robust_list struct { - head uintptr - off int64 - pending uintptr - } - timer_id int32 - _ [4]byte - locale locale_t - killlock [1]int32 - _ [4]byte - dlerror_buf uintptr - stdio_locks uintptr - canary_at_end uintptr_t - dtv_copy uintptr -} /* alltypes.h:265:9 */ - -func scanexp(tls *TLS, f uintptr, pok int32) int64 { /* floatscan.c:37:18: */ - var c int32 - var x int32 - var y int64 - var neg int32 = 0 - - c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() - if c == '+' || c == '-' { - neg = Bool32(c == '-') - c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() - if uint32(c-'0') >= 10 && pok != 0 { - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - } - } - if uint32(c-'0') >= 10 { - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - return -0x7fffffffffffffff - int64(1) - } - for x = 0; uint32(c-'0') < 10 && x < 0x7fffffff/10; c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() { - x = 10*x + c - '0' - } - for y = int64(x); uint32(c-'0') < 10 && y < 0x7fffffffffffffff/int64(100); c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() { - y = int64(10)*y + int64(c) - int64('0') - } - for ; uint32(c-'0') < 10; c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() { - } - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - if neg != 0 { - return -y - } - return y -} - -func decfloat(tls *TLS, f uintptr, c int32, bits int32, emin int32, sign int32, pok int32) float64 { /* floatscan.c:64:20: */ - bp := tls.Alloc(512) - defer tls.Free(512) - - // var x [128]uint32_t at bp, 512 - - var i int32 - var j int32 - var k int32 - var a int32 - var z int32 - var lrp int64 = int64(0) - var dc int64 = int64(0) - var e10 int64 = int64(0) - var lnz int32 = 0 - var gotdig int32 = 0 - var gotrad int32 = 0 - var rp int32 - var e2 int32 - var emax int32 = -emin - bits + 3 - var denormal int32 = 0 - var y float64 - var frac float64 = float64(0) - var bias float64 = float64(0) - - j = 0 - k = 0 - - // Don't let leading zeros consume buffer space - for ; c == '0'; c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() { - gotdig = 1 - } - if c == '.' { - gotrad = 1 - for c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }(); c == '0'; c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() { - gotdig = 1 - lrp-- - } - } - - *(*uint32_t)(unsafe.Pointer(bp)) = uint32_t(0) - for ; uint32(c-'0') < 10 || c == '.'; c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() { - if c == '.' { - if gotrad != 0 { - break - } - gotrad = 1 - lrp = dc - } else if k < 128-3 { - dc++ - if c != '0' { - lnz = int32(dc) - } - if j != 0 { - *(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4)) = *(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4))*uint32_t(10) + uint32_t(c) - uint32_t('0') - } else { - *(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4)) = uint32_t(c - '0') - } - if PreIncInt32(&j, 1) == 9 { - k++ - j = 0 - } - gotdig = 1 - } else { - dc++ - if c != '0' { - lnz = (128 - 4) * 9 - *(*uint32_t)(unsafe.Pointer(bp + 124*4)) |= uint32_t(1) - } - } - } - if !(gotrad != 0) { - lrp = dc - } - - if gotdig != 0 && c|32 == 'e' { - e10 = scanexp(tls, f, pok) - if e10 == -0x7fffffffffffffff-int64(1) { - if pok != 0 { - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - } else { - X__shlim(tls, f, int64(0)) - return float64(0) - } - e10 = int64(0) - } - lrp = lrp + e10 - } else if c >= 0 { - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - } - if !(gotdig != 0) { - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 22 - X__shlim(tls, f, int64(0)) - return float64(0) - } - - // Handle zero specially to avoid nasty special cases later - if !(int32(*(*uint32_t)(unsafe.Pointer(bp))) != 0) { - return float64(sign) * 0.0 - } - - // Optimize small integers (w/no exponent) and over/under-flow - if lrp == dc && dc < int64(10) && (bits > 30 || *(*uint32_t)(unsafe.Pointer(bp))>>bits == uint32_t(0)) { - return float64(sign) * float64(*(*uint32_t)(unsafe.Pointer(bp))) - } - if lrp > int64(-emin/2) { - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 34 - return float64(sign) * 1.79769313486231570815e+308 * 1.79769313486231570815e+308 - } - if lrp < int64(emin-2*53) { - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 34 - return float64(sign) * 2.22507385850720138309e-308 * 2.22507385850720138309e-308 - } - - // Align incomplete final B1B digit - if j != 0 { - for ; j < 9; j++ { - *(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4)) *= uint32_t(10) - } - k++ - j = 0 - } - - a = 0 - z = k - e2 = 0 - rp = int32(lrp) - - // Optimize small to mid-size integers (even in exp. notation) - if lnz < 9 && lnz <= rp && rp < 18 { - if rp == 9 { - return float64(sign) * float64(*(*uint32_t)(unsafe.Pointer(bp))) - } - if rp < 9 { - return float64(sign) * float64(*(*uint32_t)(unsafe.Pointer(bp))) / float64(_sp10s[8-rp]) - } - var bitlim int32 = bits - 3*(rp-9) - if bitlim > 30 || *(*uint32_t)(unsafe.Pointer(bp))>>bitlim == uint32_t(0) { - return float64(sign) * float64(*(*uint32_t)(unsafe.Pointer(bp))) * float64(_sp10s[rp-10]) - } - } - - // Drop trailing zeros - for ; !(int32(*(*uint32_t)(unsafe.Pointer(bp + uintptr(z-1)*4))) != 0); z-- { - } - - // Align radix point to B1B digit boundary - if rp%9 != 0 { - var rpm9 int32 - if rp >= 0 { - rpm9 = rp % 9 - } else { - rpm9 = rp%9 + 9 - } - var p10 int32 = _sp10s[8-rpm9] - var carry uint32_t = uint32_t(0) - for k = a; k != z; k++ { - var tmp uint32_t = *(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4)) % uint32_t(p10) - *(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4)) = *(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4))/uint32_t(p10) + carry - carry = uint32_t(1000000000/p10) * tmp - if k == a && !(int32(*(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4))) != 0) { - a = (a + 1) & (128 - 1) - rp = rp - 9 - } - } - if carry != 0 { - *(*uint32_t)(unsafe.Pointer(bp + uintptr(PostIncInt32(&z, 1))*4)) = carry - } - rp = rp + (9 - rpm9) - } - - // Upscale until desired number of bits are left of radix point - for rp < 9*2 || rp == 9*2 && *(*uint32_t)(unsafe.Pointer(bp + uintptr(a)*4)) < _sth[0] { - var carry uint32_t = uint32_t(0) - e2 = e2 - 29 - for k = (z - 1) & (128 - 1); ; k = (k - 1) & (128 - 1) { - var tmp uint64_t = uint64_t(*(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4)))<<29 + uint64_t(carry) - if tmp > uint64(1000000000) { - carry = uint32_t(tmp / uint64(1000000000)) - *(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4)) = uint32_t(tmp % uint64(1000000000)) - } else { - carry = uint32_t(0) - *(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4)) = uint32_t(tmp) - } - if k == (z-1)&(128-1) && k != a && !(int32(*(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4))) != 0) { - z = k - } - if k == a { - break - } - } - if carry != 0 { - rp = rp + 9 - a = (a - 1) & (128 - 1) - if a == z { - z = (z - 1) & (128 - 1) - *(*uint32_t)(unsafe.Pointer(bp + uintptr((z-1)&(128-1))*4)) |= *(*uint32_t)(unsafe.Pointer(bp + uintptr(z)*4)) - } - *(*uint32_t)(unsafe.Pointer(bp + uintptr(a)*4)) = carry - } - } - - // Downscale until exactly number of bits are left of radix point - for { - var carry uint32_t = uint32_t(0) - var sh int32 = 1 - for i = 0; i < 2; i++ { - k = (a + i) & (128 - 1) - if k == z || *(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4)) < _sth[i] { - i = 2 - break - } - if *(*uint32_t)(unsafe.Pointer(bp + uintptr((a+i)&(128-1))*4)) > _sth[i] { - break - } - } - if i == 2 && rp == 9*2 { - break - } - // FIXME: find a way to compute optimal sh - if rp > 9+9*2 { - sh = 9 - } - e2 = e2 + sh - for k = a; k != z; k = (k + 1) & (128 - 1) { - var tmp uint32_t = *(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4)) & uint32_t(int32(1)<>sh + carry - carry = uint32_t(int32(1000000000)>>sh) * tmp - if k == a && !(int32(*(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4))) != 0) { - a = (a + 1) & (128 - 1) - i-- - rp = rp - 9 - } - } - if carry != 0 { - if (z+1)&(128-1) != a { - *(*uint32_t)(unsafe.Pointer(bp + uintptr(z)*4)) = carry - z = (z + 1) & (128 - 1) - } else { - *(*uint32_t)(unsafe.Pointer(bp + uintptr((z-1)&(128-1))*4)) |= uint32_t(1) - } - } - } - - // Assemble desired bits into floating point variable - for y = float64(AssignInt32(&i, 0)); i < 2; i++ { - if (a+i)&(128-1) == z { - *(*uint32_t)(unsafe.Pointer(bp + uintptr(AssignInt32(&z, (z+1)&(128-1))-1)*4)) = uint32_t(0) - } - y = 1000000000.0*y + float64(*(*uint32_t)(unsafe.Pointer(bp + uintptr((a+i)&(128-1))*4))) - } - - y = y * float64(sign) - - // Limit precision for denormal results - if bits > 53+e2-emin { - bits = 53 + e2 - emin - if bits < 0 { - bits = 0 - } - denormal = 1 - } - - // Calculate bias term to force rounding, move out lower bits - if bits < 53 { - bias = Xcopysignl(tls, Xscalbn(tls, float64(1), 2*53-bits-1), y) - frac = Xfmodl(tls, y, Xscalbn(tls, float64(1), 53-bits)) - y = y - frac - y = y + bias - } - - // Process tail of decimal input so it can affect rounding - if (a+i)&(128-1) != z { - var t uint32_t = *(*uint32_t)(unsafe.Pointer(bp + uintptr((a+i)&(128-1))*4)) - if t < uint32_t(500000000) && (t != 0 || (a+i+1)&(128-1) != z) { - frac = frac + 0.25*float64(sign) - } else if t > uint32_t(500000000) { - frac = frac + 0.75*float64(sign) - } else if t == uint32_t(500000000) { - if (a+i+1)&(128-1) == z { - frac = frac + 0.5*float64(sign) - } else { - frac = frac + 0.75*float64(sign) - } - } - if 53-bits >= 2 && !(Xfmodl(tls, frac, float64(1)) != 0) { - frac += 1 - } - } - - y = y + frac - y = y - bias - - if (e2+53)&0x7fffffff > emax-5 { - if Xfabsl(tls, y) >= float64(float64(2))/2.22044604925031308085e-16 { - if denormal != 0 && bits == 53+e2-emin { - denormal = 0 - } - y = y * 0.5 - e2++ - } - if e2+53 > emax || denormal != 0 && frac != 0 { - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 34 - } - } - - return Xscalbnl(tls, y, e2) -} - -var _sth = [2]uint32_t{uint32_t(9007199), uint32_t(254740991)} /* floatscan.c:67:24 */ -var _sp10s = [8]int32{10, 100, 1000, 10000, - 100000, 1000000, 10000000, 100000000} /* floatscan.c:80:19 */ - -func hexfloat(tls *TLS, f uintptr, bits int32, emin int32, sign int32, pok int32) float64 { /* floatscan.c:315:20: */ - var x uint32_t = uint32_t(0) - var y float64 = float64(0) - var scale float64 = float64(1) - var bias float64 = float64(0) - var gottail int32 = 0 - var gotrad int32 = 0 - var gotdig int32 = 0 - var rp int64 = int64(0) - var dc int64 = int64(0) - var e2 int64 = int64(0) - var d int32 - var c int32 - - c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() - - // Skip leading zeros - for ; c == '0'; c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() { - gotdig = 1 - } - - if c == '.' { - gotrad = 1 - c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() - // Count zeros after the radix point before significand - rp = int64(0) - __1: - if !(c == '0') { - goto __3 - } - gotdig = 1 - goto __2 - __2: - c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() - rp-- - goto __1 - goto __3 - __3: - } - - for ; uint32(c-'0') < 10 || uint32(c|32-'a') < 6 || c == '.'; c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() { - if c == '.' { - if gotrad != 0 { - break - } - rp = dc - gotrad = 1 - } else { - gotdig = 1 - if c > '9' { - d = c | 32 + 10 - 'a' - } else { - d = c - '0' - } - if dc < int64(8) { - x = x*uint32_t(16) + uint32_t(d) - } else if dc < int64(53/4+1) { - y = y + float64(d)*AssignDivFloat64(&scale, float64(16)) - } else if d != 0 && !(gottail != 0) { - y = y + 0.5*scale - gottail = 1 - } - dc++ - } - } - if !(gotdig != 0) { - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - if pok != 0 { - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - if gotrad != 0 { - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - } - } else { - X__shlim(tls, f, int64(0)) - } - return float64(sign) * 0.0 - } - if !(gotrad != 0) { - rp = dc - } - for dc < int64(8) { - x = x * uint32_t(16) - dc++ - } - if c|32 == 'p' { - e2 = scanexp(tls, f, pok) - if e2 == -0x7fffffffffffffff-int64(1) { - if pok != 0 { - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - } else { - X__shlim(tls, f, int64(0)) - return float64(0) - } - e2 = int64(0) - } - } else { - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - } - e2 = e2 + (int64(4)*rp - int64(32)) - - if !(x != 0) { - return float64(sign) * 0.0 - } - if e2 > int64(-emin) { - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 34 - return float64(sign) * 1.79769313486231570815e+308 * 1.79769313486231570815e+308 - } - if e2 < int64(emin-2*53) { - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 34 - return float64(sign) * 2.22507385850720138309e-308 * 2.22507385850720138309e-308 - } - - for x < 0x80000000 { - if y >= 0.5 { - x = x + (x + uint32_t(1)) - y = y + (y - float64(1)) - } else { - x = x + x - y = y + y - } - e2-- - } - - if int64(bits) > int64(32)+e2-int64(emin) { - bits = int32(int64(32) + e2 - int64(emin)) - if bits < 0 { - bits = 0 - } - } - - if bits < 53 { - bias = Xcopysignl(tls, Xscalbn(tls, float64(1), 32+53-bits-1), float64(sign)) - } - - if bits < 32 && y != 0 && !(x&uint32_t(1) != 0) { - x++ - y = float64(0) - } - - y = bias + float64(sign)*float64(x) + float64(sign)*y - y = y - bias - - if !(y != 0) { - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 34 - } - - return Xscalbnl(tls, y, int32(e2)) -} - -func X__floatscan(tls *TLS, f uintptr, prec int32, pok int32) float64 { /* floatscan.c:427:13: */ - var sign int32 = 1 - var i size_t - var bits int32 - var emin int32 - var c int32 - - switch prec { - case 0: - bits = 24 - emin = -125 - bits - break - case 1: - bits = 53 - emin = -1021 - bits - break - case 2: - bits = 53 - emin = -1021 - bits - break - default: - return float64(0) - } - - for __isspace(tls, AssignInt32(&c, func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }())) != 0 { - } - - if c == '+' || c == '-' { - sign = sign - 2*Bool32(c == '-') - c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() - } - - for i = uint64(0); i < uint64(8) && c|32 == int32(*(*uint8)(unsafe.Pointer(ts /* "infinity" */ + uintptr(i)))); i++ { - if i < uint64(7) { - c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() - } - } - if i == uint64(3) || i == uint64(8) || i > uint64(3) && pok != 0 { - if i != uint64(8) { - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - if pok != 0 { - for ; i > uint64(3); i-- { - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - } - } - } - return float64(float32(sign) * X__builtin_inff(tls)) - } - if !(i != 0) { - for i = uint64(0); i < uint64(3) && c|32 == int32(*(*uint8)(unsafe.Pointer(ts + 9 /* "nan" */ + uintptr(i)))); i++ { - if i < uint64(2) { - c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() - } - } - } - if i == uint64(3) { - if func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() != '(' { - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - return float64(X__builtin_nanf(tls, ts+13)) - } - for i = uint64(1); ; i++ { - c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() - if uint32(c-'0') < 10 || uint32(c-'A') < 26 || uint32(c-'a') < 26 || c == '_' { - continue - } - if c == ')' { - return float64(X__builtin_nanf(tls, ts+13)) - } - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - if !(pok != 0) { - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 22 - X__shlim(tls, f, int64(0)) - return float64(0) - } - for PostDecUint64(&i, 1) != 0 { - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - } - return float64(X__builtin_nanf(tls, ts+13)) - } - return float64(X__builtin_nanf(tls, ts+13)) - } - - if i != 0 { - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 22 - X__shlim(tls, f, int64(0)) - return float64(0) - } - - if c == '0' { - c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() - if c|32 == 'x' { - return hexfloat(tls, f, bits, emin, sign, pok) - } - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - c = '0' - } - - return decfloat(tls, f, c, bits, emin, sign, pok) -} - -// Lookup table for digit values. -1==255>=36 -> invalid -var table1 = [257]uint8{Uint8FromInt32(-1), - Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), - Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), - Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), - uint8(0), uint8(1), uint8(2), uint8(3), uint8(4), uint8(5), uint8(6), uint8(7), uint8(8), uint8(9), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), - Uint8FromInt32(-1), uint8(10), uint8(11), uint8(12), uint8(13), uint8(14), uint8(15), uint8(16), uint8(17), uint8(18), uint8(19), uint8(20), uint8(21), uint8(22), uint8(23), uint8(24), - uint8(25), uint8(26), uint8(27), uint8(28), uint8(29), uint8(30), uint8(31), uint8(32), uint8(33), uint8(34), uint8(35), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), - Uint8FromInt32(-1), uint8(10), uint8(11), uint8(12), uint8(13), uint8(14), uint8(15), uint8(16), uint8(17), uint8(18), uint8(19), uint8(20), uint8(21), uint8(22), uint8(23), uint8(24), - uint8(25), uint8(26), uint8(27), uint8(28), uint8(29), uint8(30), uint8(31), uint8(32), uint8(33), uint8(34), uint8(35), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), - Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), - Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), - Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), - Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), - Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), - Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), - Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), - Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), -} /* intscan.c:7:28 */ - -func X__intscan(tls *TLS, f uintptr, base uint32, pok int32, lim uint64) uint64 { /* intscan.c:26:20: */ - var val uintptr - var c int32 - var neg int32 - var x uint32 - var y uint64 - var bs int32 - val = uintptr(unsafe.Pointer(&table1)) + uintptr(1) - neg = 0 - if !(base > uint32(36) || base == uint32(1)) { - goto __1 - } - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 22 - return uint64(0) -__1: - ; -__2: - if !(__isspace(tls, AssignInt32(&c, func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }())) != 0) { - goto __3 - } - goto __2 -__3: - ; - if !(c == '+' || c == '-') { - goto __4 - } - neg = -Bool32(c == '-') - c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() -__4: - ; - if !((base == uint32(0) || base == uint32(16)) && c == '0') { - goto __5 - } - c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() - if !(c|32 == 'x') { - goto __7 - } - c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() - if !(int32(*(*uint8)(unsafe.Pointer(val + uintptr(c)))) >= 16) { - goto __9 - } - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - if !(pok != 0) { - goto __10 - } - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - goto __11 -__10: - X__shlim(tls, f, int64(0)) -__11: - ; - return uint64(0) -__9: - ; - base = uint32(16) - goto __8 -__7: - if !(base == uint32(0)) { - goto __12 - } - base = uint32(8) -__12: - ; -__8: - ; - goto __6 -__5: - if !(base == uint32(0)) { - goto __13 - } - base = uint32(10) -__13: - ; - if !(uint32(*(*uint8)(unsafe.Pointer(val + uintptr(c)))) >= base) { - goto __14 - } - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - X__shlim(tls, f, int64(0)) - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 22 - return uint64(0) -__14: - ; -__6: - ; - if !(base == uint32(10)) { - goto __15 - } - x = uint32(0) -__17: - if !(uint32(c-'0') < 10 && x <= 0xffffffff/uint32(10)-uint32(1)) { - goto __19 - } - x = x*uint32(10) + uint32(c-'0') - goto __18 -__18: - c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() - goto __17 - goto __19 -__19: - ; - y = uint64(x) -__20: - if !(uint32(c-'0') < 10 && y <= (2*uint64(0x7fffffffffffffff)+uint64(1))/uint64(10) && uint64(10)*y <= 2*uint64(0x7fffffffffffffff)+uint64(1)-uint64(c-'0')) { - goto __22 - } - y = y*uint64(10) + uint64(c-'0') - goto __21 -__21: - c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() - goto __20 - goto __22 -__22: - ; - if !(uint32(c-'0') >= 10) { - goto __23 - } - goto done -__23: - ; - goto __16 -__15: - if !!(base&(base-uint32(1)) != 0) { - goto __24 - } - bs = int32(*(*uint8)(unsafe.Pointer(ts + 14 + uintptr(uint32(0x17)*base>>5&uint32(7))))) - x = uint32(0) -__26: - if !(uint32(*(*uint8)(unsafe.Pointer(val + uintptr(c)))) < base && x <= 0xffffffff/uint32(32)) { - goto __28 - } - x = x<>bs) { - goto __31 - } - y = y<= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - if !(y >= lim) { - goto __43 - } - if !(!(lim&uint64(1) != 0) && !(neg != 0)) { - goto __44 - } - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 34 - return lim - uint64(1) - goto __45 -__44: - if !(y > lim) { - goto __46 - } - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 34 - return lim -__46: - ; -__45: - ; -__43: - ; - return y ^ uint64(neg) - uint64(neg) -} - -// The shcnt field stores the number of bytes read so far, offset by -// the value of buf-rpos at the last function call (__shlim or __shgetc), -// so that between calls the inline shcnt macro can add rpos-buf to get -// the actual count. - -func X__shlim(tls *TLS, f uintptr, lim off_t) { /* shgetc.c:8:6: */ - (*FILE)(unsafe.Pointer(f)).shlim = lim - (*FILE)(unsafe.Pointer(f)).shcnt = (int64((*FILE)(unsafe.Pointer(f)).buf) - int64((*FILE)(unsafe.Pointer(f)).rpos)) / 1 - // If lim is nonzero, rend must be a valid pointer. - if lim != 0 && (int64((*FILE)(unsafe.Pointer(f)).rend)-int64((*FILE)(unsafe.Pointer(f)).rpos))/1 > lim { - (*FILE)(unsafe.Pointer(f)).shend = (*FILE)(unsafe.Pointer(f)).rpos + uintptr(lim) - } else { - (*FILE)(unsafe.Pointer(f)).shend = (*FILE)(unsafe.Pointer(f)).rend - } -} - -func X__shgetc(tls *TLS, f uintptr) int32 { /* shgetc.c:19:5: */ - var c int32 - var cnt off_t = (*FILE)(unsafe.Pointer(f)).shcnt + (int64((*FILE)(unsafe.Pointer(f)).rpos)-int64((*FILE)(unsafe.Pointer(f)).buf))/1 - if (*FILE)(unsafe.Pointer(f)).shlim != 0 && cnt >= (*FILE)(unsafe.Pointer(f)).shlim || AssignInt32(&c, X__uflow(tls, f)) < 0 { - (*FILE)(unsafe.Pointer(f)).shcnt = (int64((*FILE)(unsafe.Pointer(f)).buf)-int64((*FILE)(unsafe.Pointer(f)).rpos))/1 + cnt - (*FILE)(unsafe.Pointer(f)).shend = (*FILE)(unsafe.Pointer(f)).rpos - (*FILE)(unsafe.Pointer(f)).shlim = int64(-1) - return -1 - } - cnt++ - if (*FILE)(unsafe.Pointer(f)).shlim != 0 && (int64((*FILE)(unsafe.Pointer(f)).rend)-int64((*FILE)(unsafe.Pointer(f)).rpos))/1 > (*FILE)(unsafe.Pointer(f)).shlim-cnt { - (*FILE)(unsafe.Pointer(f)).shend = (*FILE)(unsafe.Pointer(f)).rpos + uintptr((*FILE)(unsafe.Pointer(f)).shlim-cnt) - } else { - (*FILE)(unsafe.Pointer(f)).shend = (*FILE)(unsafe.Pointer(f)).rend - } - (*FILE)(unsafe.Pointer(f)).shcnt = (int64((*FILE)(unsafe.Pointer(f)).buf)-int64((*FILE)(unsafe.Pointer(f)).rpos))/1 + cnt - if (*FILE)(unsafe.Pointer(f)).rpos <= (*FILE)(unsafe.Pointer(f)).buf { - *(*uint8)(unsafe.Pointer((*FILE)(unsafe.Pointer(f)).rpos + UintptrFromInt32(-1))) = uint8(c) - } - return c -} - -type lconv = struct { - decimal_point uintptr - thousands_sep uintptr - grouping uintptr - int_curr_symbol uintptr - currency_symbol uintptr - mon_decimal_point uintptr - mon_thousands_sep uintptr - mon_grouping uintptr - positive_sign uintptr - negative_sign uintptr - int_frac_digits uint8 - frac_digits uint8 - p_cs_precedes uint8 - p_sep_by_space uint8 - n_cs_precedes uint8 - n_sep_by_space uint8 - p_sign_posn uint8 - n_sign_posn uint8 - int_p_cs_precedes uint8 - int_p_sep_by_space uint8 - int_n_cs_precedes uint8 - int_n_sep_by_space uint8 - int_p_sign_posn uint8 - int_n_sign_posn uint8 - _ [2]byte -} /* locale.h:24:1 */ - -// Support signed or unsigned plain-char - -// Implementation choices... - -// Arbitrary numbers... - -// POSIX/SUS requirements follow. These numbers come directly -// from SUS and have nothing to do with the host system. - -var posix_lconv = lconv{decimal_point: ts + 23, thousands_sep: ts + 13, grouping: ts + 13, int_curr_symbol: ts + 13, currency_symbol: ts + 13, mon_decimal_point: ts + 13, mon_thousands_sep: ts + 13, mon_grouping: ts + 13, positive_sign: ts + 13, negative_sign: ts + 13, int_frac_digits: uint8(255), frac_digits: uint8(255), p_cs_precedes: uint8(255), p_sep_by_space: uint8(255), n_cs_precedes: uint8(255), n_sep_by_space: uint8(255), p_sign_posn: uint8(255), n_sign_posn: uint8(255), int_p_cs_precedes: uint8(255), int_p_sep_by_space: uint8(255), int_n_cs_precedes: uint8(255), int_n_sep_by_space: uint8(255), int_p_sign_posn: uint8(255), int_n_sign_posn: uint8(255)} /* localeconv.c:4:27 */ - -func Xlocaleconv(tls *TLS) uintptr { /* localeconv.c:31:14: */ - return uintptr(unsafe.Pointer(&posix_lconv)) -} - -func X__fpclassify(tls *TLS, x float64) int32 { /* __fpclassify.c:4:5: */ - bp := tls.Alloc(8) - defer tls.Free(8) - - *(*struct{ f float64 })(unsafe.Pointer(bp)) = func() (r struct{ f float64 }) { - *(*float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = x - return r - }() - var e int32 = int32(*(*uint64_t)(unsafe.Pointer(bp)) >> 52 & uint64(0x7ff)) - if !(e != 0) { - if *(*uint64_t)(unsafe.Pointer(bp))<<1 != 0 { - return 3 - } - return 2 - } - if e == 0x7ff { - if *(*uint64_t)(unsafe.Pointer(bp))<<12 != 0 { - return 0 - } - return 1 - } - return 4 -} - -func X__fpclassifyf(tls *TLS, x float32) int32 { /* __fpclassifyf.c:4:5: */ - bp := tls.Alloc(4) - defer tls.Free(4) - - *(*struct{ f float32 })(unsafe.Pointer(bp)) = func() (r struct{ f float32 }) { - *(*float32)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = x - return r - }() - var e int32 = int32(*(*uint32_t)(unsafe.Pointer(bp)) >> 23 & uint32_t(0xff)) - if !(e != 0) { - if *(*uint32_t)(unsafe.Pointer(bp))<<1 != 0 { - return 3 - } - return 2 - } - if e == 0xff { - if *(*uint32_t)(unsafe.Pointer(bp))<<9 != 0 { - return 0 - } - return 1 - } - return 4 -} - -func X__fpclassifyl(tls *TLS, x float64) int32 { /* __fpclassifyl.c:4:5: */ - return X__fpclassify(tls, x) -} - -func Xcopysignl(tls *TLS, x float64, y float64) float64 { /* copysignl.c:4:13: */ - return Xcopysign(tls, x, y) -} - -func Xfabsl(tls *TLS, x float64) float64 { /* fabsl.c:3:13: */ - return Xfabs(tls, x) -} - -func Xfmodl(tls *TLS, x float64, y float64) float64 { /* fmodl.c:4:13: */ - return Xfmod(tls, x, y) -} - -func Xnanf(tls *TLS, s uintptr) float32 { /* nanf.c:3:7: */ - return X__builtin_nanf(tls, ts+13) -} - -var toint double_t = float64(float64(1)) / 2.22044604925031308085e-16 /* rint.c:10:23 */ - -func Xrint(tls *TLS, x float64) float64 { /* rint.c:12:8: */ - bp := tls.Alloc(8) - defer tls.Free(8) - - *(*struct{ f float64 })(unsafe.Pointer(bp)) = func() (r struct{ f float64 }) { - *(*float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = x - return r - }() - var e int32 = int32(*(*uint64_t)(unsafe.Pointer(bp)) >> 52 & uint64(0x7ff)) - var s int32 = int32(*(*uint64_t)(unsafe.Pointer(bp)) >> 63) - var y double_t - - if e >= 0x3ff+52 { - return x - } - if s != 0 { - y = x - toint + toint - } else { - y = x + toint - toint - } - if y == float64(0) { - if s != 0 { - return -Float64FromFloat64(0.0) - } - return float64(0) - } - return y -} - -func Xscalbn(tls *TLS, x float64, n int32) float64 { /* scalbn.c:4:8: */ - bp := tls.Alloc(8) - defer tls.Free(8) - - // var u struct {f float64;} at bp, 8 - - var y double_t = x - - if n > 1023 { - y = y * 0x1p1023 - n = n - 1023 - if n > 1023 { - y = y * 0x1p1023 - n = n - 1023 - if n > 1023 { - n = 1023 - } - } - } else if n < -1022 { - // make sure final n < -53 to avoid double - // rounding in the subnormal range - y = y * (float64(0x1p-1022) * 0x1p53) - n = n + (1022 - 53) - if n < -1022 { - y = y * (float64(0x1p-1022) * 0x1p53) - n = n + (1022 - 53) - if n < -1022 { - n = -1022 - } - } - } - *(*uint64_t)(unsafe.Pointer(bp)) = uint64_t(0x3ff+n) << 52 - x = y * *(*float64)(unsafe.Pointer(bp)) - return x -} - -func Xscalbnl(tls *TLS, x float64, n int32) float64 { /* scalbnl.c:4:13: */ - return Xscalbn(tls, x, n) -} - -// Support signed or unsigned plain-char - -// Implementation choices... - -// Arbitrary numbers... - -// POSIX/SUS requirements follow. These numbers come directly -// from SUS and have nothing to do with the host system. - -type __locale_map = struct { - __map uintptr - map_size size_t - name [24]uint8 - next uintptr -} /* alltypes.h:335:9 */ - -type tls_module = struct { - next uintptr - image uintptr - len size_t - size size_t - align size_t - offset size_t -} /* libc.h:14:1 */ - -type __libc = struct { - can_do_threads uint8 - threaded uint8 - secure uint8 - need_locks int8 - threads_minus_1 int32 - auxv uintptr - tls_head uintptr - tls_size size_t - tls_align size_t - tls_cnt size_t - page_size size_t - global_locale struct{ cat [6]uintptr } -} /* libc.h:20:1 */ - -type time_t = int64 /* alltypes.h:77:16 */ - -type clockid_t = int32 /* alltypes.h:206:13 */ - -type timespec = struct { - tv_sec time_t - tv_nsec int64 -} /* alltypes.h:221:1 */ - -type pthread_t = uintptr /* alltypes.h:265:26 */ - -type pthread_once_t = int32 /* alltypes.h:271:13 */ - -type pthread_key_t = uint32 /* alltypes.h:276:18 */ - -type pthread_spinlock_t = int32 /* alltypes.h:281:13 */ - -type pthread_mutexattr_t = struct{ __attr uint32 } /* alltypes.h:286:37 */ - -type pthread_condattr_t = struct{ __attr uint32 } /* alltypes.h:291:37 */ - -type pthread_barrierattr_t = struct{ __attr uint32 } /* alltypes.h:296:37 */ - -type pthread_rwlockattr_t = struct{ __attr [2]uint32 } /* alltypes.h:301:40 */ - -type __sigset_t = struct{ __bits [16]uint64 } /* alltypes.h:341:9 */ - -type sigset_t = __sigset_t /* alltypes.h:341:71 */ - -type pthread_attr_t = struct { - __u struct { - _ [0]uint64 - __i [14]int32 - } -} /* alltypes.h:364:147 */ - -type pthread_mutex_t = struct { - __u struct { - _ [0]uint64 - __i [10]int32 - } -} /* alltypes.h:369:157 */ - -type pthread_cond_t = struct { - __u struct { - _ [0]uint64 - __i [12]int32 - } -} /* alltypes.h:379:112 */ - -type pthread_rwlock_t = struct { - __u struct { - _ [0]uint64 - __i [14]int32 - } -} /* alltypes.h:389:139 */ - -type pthread_barrier_t = struct { - __u struct { - _ [0]uint64 - __i [8]int32 - } -} /* alltypes.h:394:137 */ - -type sched_param = struct { - sched_priority int32 - __reserved1 int32 - __reserved2 [2]struct { - __reserved1 time_t - __reserved2 int64 - } - __reserved3 int32 - _ [4]byte -} /* sched.h:19:1 */ - -type timer_t = uintptr /* alltypes.h:201:14 */ - -type clock_t = int64 /* alltypes.h:211:14 */ - -type tm = struct { - tm_sec int32 - tm_min int32 - tm_hour int32 - tm_mday int32 - tm_mon int32 - tm_year int32 - tm_wday int32 - tm_yday int32 - tm_isdst int32 - _ [4]byte - tm_gmtoff int64 - tm_zone uintptr -} /* time.h:38:1 */ - -type itimerspec = struct { - it_interval struct { - tv_sec time_t - tv_nsec int64 - } - it_value struct { - tv_sec time_t - tv_nsec int64 - } -} /* time.h:80:1 */ - -type sigevent = struct { - sigev_value struct { - _ [0]uint64 - sival_int int32 - _ [4]byte - } - sigev_signo int32 - sigev_notify int32 - sigev_notify_function uintptr - sigev_notify_attributes uintptr - __pad [32]uint8 -} /* time.h:107:1 */ - -type __ptcb = struct { - __f uintptr - __x uintptr - __next uintptr -} /* alltypes.h:265:9 */ - -type sigaltstack = struct { - ss_sp uintptr - ss_flags int32 - _ [4]byte - ss_size size_t -} /* signal.h:44:9 */ - -type stack_t = sigaltstack /* signal.h:44:28 */ - -type greg_t = uint64 /* signal.h:11:23 */ -type gregset_t = [48]uint64 /* signal.h:11:31 */ -type fpregset_t = [33]float64 /* signal.h:12:16 */ - -type vrregset_t = struct { - vrregs [32][4]uint32 - vscr struct { - vscr_word uint32 - _pad [3]uint32 - } - vrsave uint32 - _pad [3]uint32 -} /* signal.h:27:3 */ - -type sigcontext = struct { - _unused [4]uint64 - signal int32 - _pad0 int32 - handler uint64 - oldmask uint64 - regs uintptr - gp_regs gregset_t - fp_regs fpregset_t - v_regs uintptr - vmx_reserve [101]int64 -} /* signal.h:29:9 */ - -type mcontext_t = sigcontext /* signal.h:40:3 */ - -type __ucontext = struct { - uc_flags uint64 - uc_link uintptr - uc_stack stack_t - uc_sigmask sigset_t - uc_mcontext mcontext_t -} /* signal.h:56:9 */ - -type ucontext_t = __ucontext /* signal.h:62:3 */ - -type sigval = struct { - _ [0]uint64 - sival_int int32 - _ [4]byte -} /* time.h:107:1 */ - -type siginfo_t = struct { - si_signo int32 - si_errno int32 - si_code int32 - _ [4]byte - __si_fields struct { - _ [0]uint64 - __pad [112]uint8 - } -} /* signal.h:145:3 */ - -type sigaction = struct { - __sa_handler struct{ sa_handler uintptr } - sa_mask sigset_t - sa_flags int32 - _ [4]byte - sa_restorer uintptr -} /* signal.h:167:1 */ - -type sig_t = uintptr /* signal.h:251:14 */ - -type sig_atomic_t = int32 /* signal.h:269:13 */ - -func a_ll(tls *TLS, p uintptr) int32 { /* atomic_arch.h:2:19: */ - var v int32 - panic(`arch/powerpc64/atomic_arch.h:5:2: assembler statements not supported`) - return v -} - -func a_sc(tls *TLS, p uintptr, v int32) int32 { /* atomic_arch.h:10:19: */ - var r int32 - panic(`arch/powerpc64/atomic_arch.h:13:2: assembler statements not supported`) - return r & 0x20000000 // "bit 2" of "cr0" (backwards bit order) -} - -func a_ll_p(tls *TLS, p uintptr) uintptr { /* atomic_arch.h:20:20: */ - var v uintptr - panic(`arch/powerpc64/atomic_arch.h:23:2: assembler statements not supported`) - return v -} - -func a_sc_p(tls *TLS, p uintptr, v uintptr) int32 { /* atomic_arch.h:28:19: */ - var r int32 - panic(`arch/powerpc64/atomic_arch.h:31:2: assembler statements not supported`) - return r & 0x20000000 // "bit 2" of "cr0" (backwards bit order) -} - -func a_barrier(tls *TLS) { /* atomic_arch.h:38:20: */ - panic(`arch/powerpc64/atomic_arch.h:40:2: assembler statements not supported`) -} - -func a_post_llsc(tls *TLS) { /* atomic_arch.h:46:20: */ - panic(`arch/powerpc64/atomic_arch.h:48:2: assembler statements not supported`) -} - -func a_cas(tls *TLS, p uintptr, t int32, s int32) int32 { /* atomic.h:20:19: */ - var old int32 - a_barrier(tls) - for __ccgo := true; __ccgo; __ccgo = old == t && !(a_sc(tls, p, s) != 0) { - old = a_ll(tls, p) - } - a_post_llsc(tls) - return old -} - -func a_swap(tls *TLS, p uintptr, v int32) int32 { /* atomic.h:33:19: */ - var old int32 - a_barrier(tls) - for __ccgo := true; __ccgo; __ccgo = !(a_sc(tls, p, v) != 0) { - old = a_ll(tls, p) - } - a_post_llsc(tls) - return old -} - -func a_fetch_add(tls *TLS, p uintptr, v int32) int32 { /* atomic.h:46:19: */ - var old int32 - a_barrier(tls) - for __ccgo := true; __ccgo; __ccgo = !(a_sc(tls, p, int32(uint32(old)+uint32(v))) != 0) { - old = a_ll(tls, p) - } - a_post_llsc(tls) - return old -} - -func a_fetch_and(tls *TLS, p uintptr, v int32) int32 { /* atomic.h:59:19: */ - var old int32 - a_barrier(tls) - for __ccgo := true; __ccgo; __ccgo = !(a_sc(tls, p, old&v) != 0) { - old = a_ll(tls, p) - } - a_post_llsc(tls) - return old -} - -func a_fetch_or(tls *TLS, p uintptr, v int32) int32 { /* atomic.h:72:19: */ - var old int32 - a_barrier(tls) - for __ccgo := true; __ccgo; __ccgo = !(a_sc(tls, p, old|v) != 0) { - old = a_ll(tls, p) - } - a_post_llsc(tls) - return old -} - -func a_and(tls *TLS, p uintptr, v int32) { /* atomic.h:151:20: */ - a_fetch_and(tls, p, v) -} - -func a_or(tls *TLS, p uintptr, v int32) { /* atomic.h:159:20: */ - a_fetch_or(tls, p, v) -} - -func a_or_64(tls *TLS, p uintptr, v uint64_t) { /* atomic.h:220:20: */ - bp := tls.Alloc(8) - defer tls.Free(8) - - *(*struct{ v uint64_t })(unsafe.Pointer(bp)) = func() (r struct{ v uint64_t }) { - *(*uint64_t)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = v - return r - }() - if *(*uint32_t)(unsafe.Pointer(bp)) != 0 { - a_or(tls, p, int32(*(*uint32_t)(unsafe.Pointer(bp)))) - } - if *(*uint32_t)(unsafe.Pointer(bp + 1*4)) != 0 { - a_or(tls, p+uintptr(1)*4, int32(*(*uint32_t)(unsafe.Pointer(bp + 1*4)))) - } -} - -func a_ctz_32(tls *TLS, x uint32_t) int32 { /* atomic.h:256:19: */ - return int32(_sdebruijn328[x&-x*uint32_t(0x076be629)>>27]) -} - -var _sdebruijn328 = [32]uint8{ - uint8(0), uint8(1), uint8(23), uint8(2), uint8(29), uint8(24), uint8(19), uint8(3), uint8(30), uint8(27), uint8(25), uint8(11), uint8(20), uint8(8), uint8(4), uint8(13), - uint8(31), uint8(22), uint8(28), uint8(18), uint8(26), uint8(10), uint8(7), uint8(12), uint8(21), uint8(17), uint8(9), uint8(6), uint8(16), uint8(5), uint8(15), uint8(14), -} /* atomic.h:261:20 */ - -func a_ctz_64(tls *TLS, x uint64_t) int32 { /* atomic.h:272:19: */ - if uint64(unsafe.Sizeof(int64(0))) < uint64(8) { - var y uint32_t = uint32_t(x) - if !(y != 0) { - y = uint32_t(x >> 32) - return 32 + a_ctz_32(tls, y) - } - return a_ctz_32(tls, y) - } - return int32(_sdebruijn648[uint64(x&-x)*0x022fdd63cc95386d>>58]) -} - -var _sdebruijn648 = [64]uint8{ - uint8(0), uint8(1), uint8(2), uint8(53), uint8(3), uint8(7), uint8(54), uint8(27), uint8(4), uint8(38), uint8(41), uint8(8), uint8(34), uint8(55), uint8(48), uint8(28), - uint8(62), uint8(5), uint8(39), uint8(46), uint8(44), uint8(42), uint8(22), uint8(9), uint8(24), uint8(35), uint8(59), uint8(56), uint8(49), uint8(18), uint8(29), uint8(11), - uint8(63), uint8(52), uint8(6), uint8(26), uint8(37), uint8(40), uint8(33), uint8(47), uint8(61), uint8(45), uint8(43), uint8(21), uint8(23), uint8(58), uint8(17), uint8(10), - uint8(51), uint8(25), uint8(36), uint8(32), uint8(60), uint8(20), uint8(57), uint8(16), uint8(50), uint8(31), uint8(19), uint8(15), uint8(30), uint8(14), uint8(13), uint8(12), -} /* atomic.h:274:20 */ - -type __timer = struct { - timerid int32 - _ [4]byte - thread pthread_t -} /* pthread_impl.h:64:1 */ - -func __pthread_self(tls *TLS) uintptr { /* pthread_arch.h:1:30: */ - var tp uintptr - panic(`arch/powerpc64/pthread_arch.h:4:2: assembler statements not supported`) - return tp - uintptr(0x7000) - uintptr(uint64(unsafe.Sizeof(__pthread{}))) -} - -func __wake(tls *TLS, addr uintptr, cnt int32, priv int32) { /* pthread_impl.h:155:20: */ - if priv != 0 { - priv = 128 - } - if cnt < 0 { - cnt = 0x7fffffff - } - _ = Bool32(__syscall3(tls, int64(221), int64(addr), int64(1|priv), int64(cnt)) != int64(-38) || __syscall3(tls, int64(221), int64(addr), int64(1), int64(cnt)) != 0) -} - -func __futexwait(tls *TLS, addr uintptr, val int32, priv int32) { /* pthread_impl.h:162:20: */ - if priv != 0 { - priv = 128 - } - _ = Bool32(__syscall4(tls, int64(221), int64(addr), int64(0|priv), int64(val), int64(0)) != int64(-38) || __syscall4(tls, int64(221), int64(addr), int64(0), int64(val), int64(0)) != 0) -} - -var X__fsmu8 = [51]uint32_t{ - func() uint32 { - if 0x2 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x2) - }(), func() uint32 { - if 0x3 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x3) - }(), func() uint32 { - if 0x4 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x4) - }(), func() uint32 { - if 0x5 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x5) - }(), func() uint32 { - if 0x6 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x6) - }(), func() uint32 { - if 0x7 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x7) - }(), - func() uint32 { - if 0x8 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x8) - }(), func() uint32 { - if 0x9 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x9) - }(), func() uint32 { - if 0xa < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0xa) - }(), func() uint32 { - if 0xb < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0xb) - }(), func() uint32 { - if 0xc < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0xc) - }(), func() uint32 { - if 0xd < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0xd) - }(), func() uint32 { - if 0xe < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0xe) - }(), func() uint32 { - if 0xf < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0xf) - }(), - func() uint32 { - if 0x0+16 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x0+16) - }(), func() uint32 { - if 0x1+16 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x1+16) - }(), func() uint32 { - if 0x2+16 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x2+16) - }(), func() uint32 { - if 0x3+16 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x3+16) - }(), func() uint32 { - if 0x4+16 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x4+16) - }(), func() uint32 { - if 0x5+16 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x5+16) - }(), func() uint32 { - if 0x6+16 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x6+16) - }(), func() uint32 { - if 0x7+16 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x7+16) - }(), - func() uint32 { - if 0x8+16 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x8+16) - }(), func() uint32 { - if 0x9+16 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x9+16) - }(), func() uint32 { - if 0xa+16 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0xa+16) - }(), func() uint32 { - if 0xb+16 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0xb+16) - }(), func() uint32 { - if 0xc+16 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0xc+16) - }(), func() uint32 { - if 0xd+16 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0xd+16) - }(), func() uint32 { - if 0xe+16 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0xe+16) - }(), func() uint32 { - if 0xf+16 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0xf+16) - }(), - func() uint32 { - if 0x0 == 0 { - return func() uint32 { - if Int32(0xa0) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0xa0)) - }() << 23 - } - return func() uint32 { - if 0x0 == 0xd { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xa0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(0x0), func() uint32 { - if 0x1 == 0 { - return func() uint32 { - if Int32(0xa0) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0xa0)) - }() << 23 - } - return func() uint32 { - if 0x1 == 0xd { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xa0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(0x1), func() uint32 { - if 0x2 == 0 { - return func() uint32 { - if Int32(0xa0) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0xa0)) - }() << 23 - } - return func() uint32 { - if 0x2 == 0xd { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xa0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(0x2), func() uint32 { - if 0x3 == 0 { - return func() uint32 { - if Int32(0xa0) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0xa0)) - }() << 23 - } - return func() uint32 { - if 0x3 == 0xd { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xa0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(0x3), func() uint32 { - if 0x4 == 0 { - return func() uint32 { - if Int32(0xa0) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0xa0)) - }() << 23 - } - return func() uint32 { - if 0x4 == 0xd { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xa0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(0x4), func() uint32 { - if 0x5 == 0 { - return func() uint32 { - if Int32(0xa0) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0xa0)) - }() << 23 - } - return func() uint32 { - if 0x5 == 0xd { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xa0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(0x5), func() uint32 { - if 0x6 == 0 { - return func() uint32 { - if Int32(0xa0) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0xa0)) - }() << 23 - } - return func() uint32 { - if 0x6 == 0xd { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xa0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(0x6), func() uint32 { - if 0x7 == 0 { - return func() uint32 { - if Int32(0xa0) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0xa0)) - }() << 23 - } - return func() uint32 { - if 0x7 == 0xd { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xa0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(0x7), - func() uint32 { - if 0x8 == 0 { - return func() uint32 { - if Int32(0xa0) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0xa0)) - }() << 23 - } - return func() uint32 { - if 0x8 == 0xd { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xa0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(0x8), func() uint32 { - if 0x9 == 0 { - return func() uint32 { - if Int32(0xa0) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0xa0)) - }() << 23 - } - return func() uint32 { - if 0x9 == 0xd { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xa0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(0x9), func() uint32 { - if 0xa == 0 { - return func() uint32 { - if Int32(0xa0) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0xa0)) - }() << 23 - } - return func() uint32 { - if 0xa == 0xd { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xa0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(0xa), func() uint32 { - if 0xb == 0 { - return func() uint32 { - if Int32(0xa0) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0xa0)) - }() << 23 - } - return func() uint32 { - if 0xb == 0xd { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xa0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(0xb), func() uint32 { - if 0xc == 0 { - return func() uint32 { - if Int32(0xa0) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0xa0)) - }() << 23 - } - return func() uint32 { - if 0xc == 0xd { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xa0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(0xc), func() uint32 { - if 0xd == 0 { - return func() uint32 { - if Int32(0xa0) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0xa0)) - }() << 23 - } - return func() uint32 { - if 0xd == 0xd { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xa0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(0xd), func() uint32 { - if 0xe == 0 { - return func() uint32 { - if Int32(0xa0) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0xa0)) - }() << 23 - } - return func() uint32 { - if 0xe == 0xd { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xa0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(0xe), func() uint32 { - if 0xf == 0 { - return func() uint32 { - if Int32(0xa0) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0xa0)) - }() << 23 - } - return func() uint32 { - if 0xf == 0xd { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xa0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(0xf), - func() uint32 { - if 0x0 >= 5 { - return uint32(0) - } - return func() uint32 { - if 0x0 == 0 { - return func() uint32 { - if Int32(0x90) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x90)) - }() << 23 - } - return func() uint32 { - if 0x0 == 4 { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0x90)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>12 | uint32_t(0x0), func() uint32 { - if 0x1 >= 5 { - return uint32(0) - } - return func() uint32 { - if 0x1 == 0 { - return func() uint32 { - if Int32(0x90) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x90)) - }() << 23 - } - return func() uint32 { - if 0x1 == 4 { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0x90)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>12 | uint32_t(0x1), func() uint32 { - if 0x2 >= 5 { - return uint32(0) - } - return func() uint32 { - if 0x2 == 0 { - return func() uint32 { - if Int32(0x90) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x90)) - }() << 23 - } - return func() uint32 { - if 0x2 == 4 { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0x90)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>12 | uint32_t(0x2), func() uint32 { - if 0x3 >= 5 { - return uint32(0) - } - return func() uint32 { - if 0x3 == 0 { - return func() uint32 { - if Int32(0x90) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x90)) - }() << 23 - } - return func() uint32 { - if 0x3 == 4 { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0x90)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>12 | uint32_t(0x3), func() uint32 { - if 0x4 >= 5 { - return uint32(0) - } - return func() uint32 { - if 0x4 == 0 { - return func() uint32 { - if Int32(0x90) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x90)) - }() << 23 - } - return func() uint32 { - if 0x4 == 4 { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0x90)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>12 | uint32_t(0x4), -} /* internal.c:18:16 */ - -type wint_t = uint32 /* alltypes.h:190:18 */ - -type wctype_t = uint64 /* alltypes.h:195:23 */ - -type __mbstate_t = struct { - __opaque1 uint32 - __opaque2 uint32 -} /* alltypes.h:329:9 */ - -type mbstate_t = __mbstate_t /* alltypes.h:329:63 */ - -func Xmbrtowc(tls *TLS, wc uintptr, src uintptr, n size_t, st uintptr) size_t { /* mbrtowc.c:6:8: */ - bp := tls.Alloc(4) - defer tls.Free(4) - - var c uint32 - var s uintptr - var N uint32 - // var dummy wchar_t at bp, 4 - s = src - N = uint32(n) - - if !!(st != 0) { - goto __1 - } - st = uintptr(unsafe.Pointer(&_sinternal_state)) -__1: - ; - c = *(*uint32)(unsafe.Pointer(st)) - - if !!(s != 0) { - goto __2 - } - if !(c != 0) { - goto __4 - } - goto ilseq -__4: - ; - return uint64(0) - goto __3 -__2: - if !!(wc != 0) { - goto __5 - } - wc = bp /* &dummy */ -__5: - ; -__3: - ; - - if !!(n != 0) { - goto __6 - } - return Uint64FromInt32(-2) -__6: - ; - if !!(c != 0) { - goto __7 - } - if !(int32(*(*uint8)(unsafe.Pointer(s))) < 0x80) { - goto __8 - } - return BoolUint64(!!(AssignPtrInt32(wc, wchar_t(*(*uint8)(unsafe.Pointer(s)))) != 0)) -__8: - ; - if !(func() int32 { - if !!(int32(*(*uintptr)(unsafe.Pointer((*__pthread)(unsafe.Pointer(__pthread_self(tls))).locale))) != 0) { - return 4 - } - return 1 - }() == 1) { - goto __9 - } - *(*wchar_t)(unsafe.Pointer(wc)) = 0xdfff & int32(int8(*(*uint8)(unsafe.Pointer(s)))) - return 1 -__9: - ; - if !(uint32(*(*uint8)(unsafe.Pointer(s)))-0xc2 > 0xf4-0xc2) { - goto __10 - } - goto ilseq -__10: - ; - c = X__fsmu8[uint32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&s, 1))))-0xc2] - n-- -__7: - ; - - if !(n != 0) { - goto __11 - } - if !((int32(*(*uint8)(unsafe.Pointer(s)))>>3-0x10|(int32(*(*uint8)(unsafe.Pointer(s)))>>3+int32_t(c)>>26))&CplInt32(7) != 0) { - goto __12 - } - goto ilseq -__12: - ; -loop: - c = c<<6 | uint32(int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&s, 1))))-0x80) - n-- - if !!(c&(uint32(1)<<31) != 0) { - goto __13 - } - *(*uint32)(unsafe.Pointer(st)) = uint32(0) - *(*wchar_t)(unsafe.Pointer(wc)) = wchar_t(c) - return size_t(N) - n -__13: - ; - if !(n != 0) { - goto __14 - } - if !(uint32(*(*uint8)(unsafe.Pointer(s)))-0x80 >= uint32(0x40)) { - goto __15 - } - goto ilseq -__15: - ; - goto loop -__14: - ; -__11: - ; - - *(*uint32)(unsafe.Pointer(st)) = c - return Uint64FromInt32(-2) -ilseq: - *(*uint32)(unsafe.Pointer(st)) = uint32(0) - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 84 - return Uint64FromInt32(-1) -} - -var _sinternal_state uint32 /* mbrtowc.c:8:18: */ - -func Xmbsinit(tls *TLS, st uintptr) int32 { /* mbsinit.c:3:5: */ - return Bool32(!(st != 0) || !(int32(*(*uint32)(unsafe.Pointer(st))) != 0)) -} - -type imaxdiv_t = struct { - quot intmax_t - rem intmax_t -} /* inttypes.h:14:40 */ - -type socklen_t = uint32 /* alltypes.h:353:18 */ - -type sa_family_t = uint16 /* alltypes.h:358:24 */ - -type msghdr = struct { - msg_name uintptr - msg_namelen socklen_t - _ [4]byte - msg_iov uintptr - msg_iovlen int32 - __pad1 int32 - msg_control uintptr - msg_controllen socklen_t - __pad2 int32 - msg_flags int32 - _ [4]byte -} /* socket.h:22:1 */ - -type cmsghdr = struct { - cmsg_len socklen_t - __pad1 int32 - cmsg_level int32 - cmsg_type int32 -} /* socket.h:44:1 */ - -type linger = struct { - l_onoff int32 - l_linger int32 -} /* socket.h:74:1 */ - -type sockaddr = struct { - sa_family sa_family_t - sa_data [14]uint8 -} /* socket.h:367:1 */ - -type sockaddr_storage = struct { - ss_family sa_family_t - __ss_padding [118]uint8 - __ss_align uint64 -} /* socket.h:372:1 */ - -type in_port_t = uint16_t /* in.h:12:18 */ -type in_addr_t = uint32_t /* in.h:13:18 */ -type in_addr = struct{ s_addr in_addr_t } /* in.h:14:1 */ - -type sockaddr_in = struct { - sin_family sa_family_t - sin_port in_port_t - sin_addr struct{ s_addr in_addr_t } - sin_zero [8]uint8_t -} /* in.h:16:1 */ - -type in6_addr = struct { - __in6_union struct { - _ [0]uint32 - __s6_addr [16]uint8_t - } -} /* in.h:23:1 */ - -type sockaddr_in6 = struct { - sin6_family sa_family_t - sin6_port in_port_t - sin6_flowinfo uint32_t - sin6_addr struct { - __in6_union struct { - _ [0]uint32 - __s6_addr [16]uint8_t - } - } - sin6_scope_id uint32_t -} /* in.h:34:1 */ - -type ipv6_mreq = struct { - ipv6mr_multiaddr struct { - __in6_union struct { - _ [0]uint32 - __s6_addr [16]uint8_t - } - } - ipv6mr_interface uint32 -} /* in.h:42:1 */ - -type ip_opts = struct { - ip_dst struct{ s_addr in_addr_t } - ip_opts [40]uint8 -} /* in.h:229:1 */ - -type ip_mreq = struct { - imr_multiaddr struct{ s_addr in_addr_t } - imr_interface struct{ s_addr in_addr_t } -} /* in.h:247:1 */ - -type ip_mreqn = struct { - imr_multiaddr struct{ s_addr in_addr_t } - imr_address struct{ s_addr in_addr_t } - imr_ifindex int32 -} /* in.h:252:1 */ - -type ip_mreq_source = struct { - imr_multiaddr struct{ s_addr in_addr_t } - imr_interface struct{ s_addr in_addr_t } - imr_sourceaddr struct{ s_addr in_addr_t } -} /* in.h:258:1 */ - -type ip_msfilter = struct { - imsf_multiaddr struct{ s_addr in_addr_t } - imsf_interface struct{ s_addr in_addr_t } - imsf_fmode uint32_t - imsf_numsrc uint32_t - imsf_slist [1]struct{ s_addr in_addr_t } -} /* in.h:264:1 */ - -type group_req = struct { - gr_interface uint32_t - _ [4]byte - gr_group struct { - ss_family sa_family_t - __ss_padding [118]uint8 - __ss_align uint64 - } -} /* in.h:275:1 */ - -type group_source_req = struct { - gsr_interface uint32_t - _ [4]byte - gsr_group struct { - ss_family sa_family_t - __ss_padding [118]uint8 - __ss_align uint64 - } - gsr_source struct { - ss_family sa_family_t - __ss_padding [118]uint8 - __ss_align uint64 - } -} /* in.h:280:1 */ - -type group_filter = struct { - gf_interface uint32_t - _ [4]byte - gf_group struct { - ss_family sa_family_t - __ss_padding [118]uint8 - __ss_align uint64 - } - gf_fmode uint32_t - gf_numsrc uint32_t - gf_slist [1]struct { - ss_family sa_family_t - __ss_padding [118]uint8 - __ss_align uint64 - } -} /* in.h:286:1 */ - -type in_pktinfo = struct { - ipi_ifindex int32 - ipi_spec_dst struct{ s_addr in_addr_t } - ipi_addr struct{ s_addr in_addr_t } -} /* in.h:297:1 */ - -type in6_pktinfo = struct { - ipi6_addr struct { - __in6_union struct { - _ [0]uint32 - __s6_addr [16]uint8_t - } - } - ipi6_ifindex uint32 -} /* in.h:303:1 */ - -type ip6_mtuinfo = struct { - ip6m_addr struct { - sin6_family sa_family_t - sin6_port in_port_t - sin6_flowinfo uint32_t - sin6_addr struct { - __in6_union struct { - _ [0]uint32 - __s6_addr [16]uint8_t - } - } - sin6_scope_id uint32_t - } - ip6m_mtu uint32_t -} /* in.h:308:1 */ - -type addrinfo = struct { - ai_flags int32 - ai_family int32 - ai_socktype int32 - ai_protocol int32 - ai_addrlen socklen_t - _ [4]byte - ai_addr uintptr - ai_canonname uintptr - ai_next uintptr -} /* netdb.h:16:1 */ - -// Legacy functions follow (marked OBsolete in SUS) - -type netent = struct { - n_name uintptr - n_aliases uintptr - n_addrtype int32 - n_net uint32_t -} /* netdb.h:62:1 */ - -type hostent = struct { - h_name uintptr - h_aliases uintptr - h_addrtype int32 - h_length int32 - h_addr_list uintptr -} /* netdb.h:69:1 */ - -type servent = struct { - s_name uintptr - s_aliases uintptr - s_port int32 - _ [4]byte - s_proto uintptr -} /* netdb.h:78:1 */ - -type protoent = struct { - p_name uintptr - p_aliases uintptr - p_proto int32 - _ [4]byte -} /* netdb.h:85:1 */ - -type aibuf = struct { - ai struct { - ai_flags int32 - ai_family int32 - ai_socktype int32 - ai_protocol int32 - ai_addrlen socklen_t - _ [4]byte - ai_addr uintptr - ai_canonname uintptr - ai_next uintptr - } - sa struct { - sin struct { - sin_family sa_family_t - sin_port in_port_t - sin_addr struct{ s_addr in_addr_t } - sin_zero [8]uint8_t - } - _ [12]byte - } - lock [1]int32 - slot int16 - ref int16 - _ [4]byte -} /* lookup.h:10:1 */ - -type sa = struct { - sin struct { - sin_family sa_family_t - sin_port in_port_t - sin_addr struct{ s_addr in_addr_t } - sin_zero [8]uint8_t - } - _ [12]byte -} /* lookup.h:10:1 */ - -type address = struct { - family int32 - scopeid uint32 - addr [16]uint8_t - sortkey int32 -} /* lookup.h:20:1 */ - -type service = struct { - port uint16_t - proto uint8 - socktype uint8 -} /* lookup.h:27:1 */ - -type resolvconf = struct { - ns [3]struct { - family int32 - scopeid uint32 - addr [16]uint8_t - sortkey int32 - } - nns uint32 - attempts uint32 - ndots uint32 - timeout uint32 -} /* lookup.h:34:1 */ - -func Xfreeaddrinfo(tls *TLS, p uintptr) { /* freeaddrinfo.c:7:6: */ - var cnt size_t - cnt = uint64(1) -__1: - if !((*addrinfo)(unsafe.Pointer(p)).ai_next != 0) { - goto __3 - } - goto __2 -__2: - cnt++ - p = (*addrinfo)(unsafe.Pointer(p)).ai_next - goto __1 - goto __3 -__3: - ; - var b uintptr = p - uintptr(uint64(uintptr(0))) - b -= 88 * uintptr((*aibuf)(unsafe.Pointer(b)).slot) - //TODO LOCK(b->lock); - if !(int32(AssignSubPtrInt16(b+82, int16(cnt))) != 0) { - Xfree(tls, b) - } - //TODO else UNLOCK(b->lock); -} - -func Xgetaddrinfo(tls *TLS, host uintptr, serv uintptr, hint uintptr, res uintptr) int32 { /* getaddrinfo.c:12:5: */ - bp := tls.Alloc(1608) - defer tls.Free(1608) - - // var ports [2]service at bp, 8 - - // var addrs [48]address at bp+8, 1344 - - // var canon [256]uint8 at bp+1352, 256 - - var outcanon uintptr - var nservs int32 - var naddrs int32 - var nais int32 - var canon_len int32 - var i int32 - var j int32 - var k int32 - var family int32 = 0 - var flags int32 = 0 - var proto int32 = 0 - var socktype int32 = 0 - var out uintptr - - if !(host != 0) && !(serv != 0) { - return -2 - } - - if hint != 0 { - family = (*addrinfo)(unsafe.Pointer(hint)).ai_family - flags = (*addrinfo)(unsafe.Pointer(hint)).ai_flags - proto = (*addrinfo)(unsafe.Pointer(hint)).ai_protocol - socktype = (*addrinfo)(unsafe.Pointer(hint)).ai_socktype - - var mask int32 = 0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x400 - if flags&mask != flags { - return -1 - } - - switch family { - case 2: - fallthrough - case 10: - fallthrough - case 0: - break - fallthrough - default: - return -6 - } - } - - if flags&0x20 != 0 { - Xabort(tls) //TODO- - // /* Define the "an address is configured" condition for address - // * families via ability to create a socket for the family plus - // * routability of the loopback address for the family. */ - // static const struct sockaddr_in lo4 = { - // .sin_family = AF_INET, .sin_port = 65535, - // .sin_addr.s_addr = __BYTE_ORDER == __BIG_ENDIAN - // ? 0x7f000001 : 0x0100007f - // }; - // static const struct sockaddr_in6 lo6 = { - // .sin6_family = AF_INET6, .sin6_port = 65535, - // .sin6_addr = IN6ADDR_LOOPBACK_INIT - // }; - // int tf[2] = { AF_INET, AF_INET6 }; - // const void *ta[2] = { &lo4, &lo6 }; - // socklen_t tl[2] = { sizeof lo4, sizeof lo6 }; - // for (i=0; i<2; i++) { - // if (family==tf[1-i]) continue; - // int s = socket(tf[i], SOCK_CLOEXEC|SOCK_DGRAM, - // IPPROTO_UDP); - // if (s>=0) { - // int cs; - // pthread_setcancelstate( - // PTHREAD_CANCEL_DISABLE, &cs); - // int r = connect(s, ta[i], tl[i]); - // pthread_setcancelstate(cs, 0); - // close(s); - // if (!r) continue; - // } - // switch (errno) { - // case EADDRNOTAVAIL: - // case EAFNOSUPPORT: - // case EHOSTUNREACH: - // case ENETDOWN: - // case ENETUNREACH: - // break; - // default: - // return EAI_SYSTEM; - // } - // if (family == tf[i]) return EAI_NONAME; - // family = tf[1-i]; - // } - } - - nservs = X__lookup_serv(tls, bp, serv, proto, socktype, flags) - if nservs < 0 { - return nservs - } - - naddrs = X__lookup_name(tls, bp+8, bp+1352, host, family, flags) - if naddrs < 0 { - return naddrs - } - - nais = nservs * naddrs - canon_len = int32(Xstrlen(tls, bp+1352)) - out = Xcalloc(tls, uint64(1), uint64(nais)*uint64(unsafe.Sizeof(aibuf{}))+uint64(canon_len)+uint64(1)) - if !(out != 0) { - return -10 - } - - if canon_len != 0 { - outcanon = out + uintptr(nais)*88 - Xmemcpy(tls, outcanon, bp+1352, uint64(canon_len+1)) - } else { - outcanon = uintptr(0) - } - - for k = AssignInt32(&i, 0); i < naddrs; i++ { - j = 0 - __1: - if !(j < nservs) { - goto __3 - } - { - (*aibuf)(unsafe.Pointer(out + uintptr(k)*88)).slot = int16(k) - //TODO out[k].ai = (struct addrinfo){ - //TODO .ai_family = addrs[i].family, - //TODO .ai_socktype = ports[j].socktype, - //TODO .ai_protocol = ports[j].proto, - //TODO .ai_addrlen = addrs[i].family == AF_INET - //TODO ? sizeof(struct sockaddr_in) - //TODO : sizeof(struct sockaddr_in6), - //TODO .ai_addr = (void *)&out[k].sa, - //TODO .ai_canonname = outcanon }; - (*aibuf)(unsafe.Pointer(out + uintptr(k)*88)).ai.ai_family = (*address)(unsafe.Pointer(bp + 8 + uintptr(i)*28)).family - (*aibuf)(unsafe.Pointer(out + uintptr(k)*88)).ai.ai_socktype = int32((*service)(unsafe.Pointer(bp + uintptr(j)*4)).socktype) - (*aibuf)(unsafe.Pointer(out + uintptr(k)*88)).ai.ai_protocol = int32((*service)(unsafe.Pointer(bp + uintptr(j)*4)).proto) - (*aibuf)(unsafe.Pointer(out + uintptr(k)*88)).ai.ai_addrlen = func() uint32 { - if (*address)(unsafe.Pointer(bp+8+uintptr(i)*28)).family == 2 { - return uint32(unsafe.Sizeof(sockaddr_in{})) - } - return uint32(unsafe.Sizeof(sockaddr_in6{})) - }() - (*aibuf)(unsafe.Pointer(out + uintptr(k)*88)).ai.ai_addr = out + uintptr(k)*88 + 48 - (*aibuf)(unsafe.Pointer(out + uintptr(k)*88)).ai.ai_canonname = outcanon - if k != 0 { - (*aibuf)(unsafe.Pointer(out + uintptr(k-1)*88)).ai.ai_next = out + uintptr(k)*88 - } - switch (*address)(unsafe.Pointer(bp + 8 + uintptr(i)*28)).family { - case 2: - (*sockaddr_in)(unsafe.Pointer(out + uintptr(k)*88 + 48)).sin_family = sa_family_t(2) - (*sockaddr_in)(unsafe.Pointer(out + uintptr(k)*88 + 48)).sin_port = Xhtons(tls, (*service)(unsafe.Pointer(bp+uintptr(j)*4)).port) - Xmemcpy(tls, out+uintptr(k)*88+48+4, bp+8+uintptr(i)*28+8, uint64(4)) - break - case 10: - (*sockaddr_in6)(unsafe.Pointer(out + uintptr(k)*88 + 48)).sin6_family = sa_family_t(10) - (*sockaddr_in6)(unsafe.Pointer(out + uintptr(k)*88 + 48)).sin6_port = Xhtons(tls, (*service)(unsafe.Pointer(bp+uintptr(j)*4)).port) - (*sockaddr_in6)(unsafe.Pointer(out + uintptr(k)*88 + 48)).sin6_scope_id = (*address)(unsafe.Pointer(bp + 8 + uintptr(i)*28)).scopeid - Xmemcpy(tls, out+uintptr(k)*88+48+8, bp+8+uintptr(i)*28+8, uint64(16)) - break - } - - } - goto __2 - __2: - j++ - k++ - goto __1 - goto __3 - __3: - } - (*aibuf)(unsafe.Pointer(out)).ref = int16(nais) - *(*uintptr)(unsafe.Pointer(res)) = out - return 0 -} - -type ucred = struct { - pid pid_t - uid uid_t - gid gid_t -} /* socket.h:57:1 */ - -type mmsghdr = struct { - msg_hdr struct { - msg_name uintptr - msg_namelen socklen_t - _ [4]byte - msg_iov uintptr - msg_iovlen int32 - __pad1 int32 - msg_control uintptr - msg_controllen socklen_t - __pad2 int32 - msg_flags int32 - _ [4]byte - } - msg_len uint32 - _ [4]byte -} /* socket.h:63:1 */ - -func Xgethostbyaddr(tls *TLS, a uintptr, l socklen_t, af int32) uintptr { /* gethostbyaddr.c:7:16: */ - bp := tls.Alloc(8) - defer tls.Free(8) - - var size size_t = uint64(63) - // var res uintptr at bp, 8 - - var err int32 - for __ccgo := true; __ccgo; __ccgo = err == 34 { - Xfree(tls, _sh) - _sh = Xmalloc(tls, AssignAddUint64(&size, size+uint64(1))) - if !(_sh != 0) { - *(*int32)(unsafe.Pointer(X__h_errno_location(tls))) = 3 - return uintptr(0) - } - err = Xgethostbyaddr_r(tls, a, l, af, _sh, - _sh+uintptr(1)*32, size-size_t(unsafe.Sizeof(hostent{})), bp, X__h_errno_location(tls)) - } - if err != 0 { - return uintptr(0) - } - return _sh -} - -var _sh uintptr /* gethostbyaddr.c:9:24: */ - -func Xgethostbyaddr_r(tls *TLS, a uintptr, l socklen_t, af int32, h uintptr, buf uintptr, buflen size_t, res uintptr, err uintptr) int32 { /* gethostbyaddr_r.c:10:5: */ - bp := tls.Alloc(28) - defer tls.Free(28) - - //TODO union { - //TODO struct sockaddr_in sin; - //TODO struct sockaddr_in6 sin6; - //TODO } sa = { .sin.sin_family = af }; - *(*struct { - sin sockaddr_in - _ [12]byte - })(unsafe.Pointer(bp)) = struct { - sin sockaddr_in - _ [12]byte - }{} //TODO- - (*sockaddr_in)(unsafe.Pointer(bp)).sin_family = sa_family_t(af) //TODO- - var sl socklen_t - if af == 10 { - sl = uint32(unsafe.Sizeof(sockaddr_in6{})) - } else { - sl = uint32(unsafe.Sizeof(sockaddr_in{})) - } - var i int32 - - *(*uintptr)(unsafe.Pointer(res)) = uintptr(0) - - // Load address argument into sockaddr structure - if af == 10 && l == socklen_t(16) { - Xmemcpy(tls, bp+8, a, uint64(16)) - } else if af == 2 && l == socklen_t(4) { - Xmemcpy(tls, bp+4, a, uint64(4)) - } else { - *(*int32)(unsafe.Pointer(err)) = 3 - return 22 - } - - // Align buffer and check for space for pointers and ip address - i = int32(uintptr_t(buf) & (uint64(unsafe.Sizeof(uintptr(0))) - uint64(1))) - if !(i != 0) { - i = int32(unsafe.Sizeof(uintptr(0))) - } - if buflen <= uint64(5)*uint64(unsafe.Sizeof(uintptr(0)))-uint64(i)+uint64(l) { - return 34 - } - buf += uintptr(uint64(unsafe.Sizeof(uintptr(0))) - uint64(i)) - buflen = buflen - (uint64(5)*uint64(unsafe.Sizeof(uintptr(0))) - uint64(i) + uint64(l)) - - (*hostent)(unsafe.Pointer(h)).h_addr_list = buf - buf += uintptr(uint64(2) * uint64(unsafe.Sizeof(uintptr(0)))) - (*hostent)(unsafe.Pointer(h)).h_aliases = buf - buf += uintptr(uint64(2) * uint64(unsafe.Sizeof(uintptr(0)))) - - *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_addr_list)) = buf - Xmemcpy(tls, *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_addr_list)), a, uint64(l)) - buf += uintptr(l) - *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_addr_list + 1*8)) = uintptr(0) - *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_aliases)) = buf - *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_aliases + 1*8)) = uintptr(0) - - switch Xgetnameinfo(tls, bp, sl, buf, uint32(buflen), uintptr(0), uint32(0), 0) { - case -3: - *(*int32)(unsafe.Pointer(err)) = 2 - return 11 - case -12: - return 34 - default: - fallthrough - case -10: - fallthrough - case -11: - fallthrough - case -4: - *(*int32)(unsafe.Pointer(err)) = 3 - return *(*int32)(unsafe.Pointer(X___errno_location(tls))) - case 0: - break - } - - (*hostent)(unsafe.Pointer(h)).h_addrtype = af - (*hostent)(unsafe.Pointer(h)).h_length = int32(l) - (*hostent)(unsafe.Pointer(h)).h_name = *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_aliases)) - *(*uintptr)(unsafe.Pointer(res)) = h - return 0 -} - -func Xgethostbyname(tls *TLS, name uintptr) uintptr { /* gethostbyname.c:8:16: */ - return Xgethostbyname2(tls, name, 2) -} - -func Xgethostbyname2(tls *TLS, name uintptr, af int32) uintptr { /* gethostbyname2.c:8:16: */ - bp := tls.Alloc(8) - defer tls.Free(8) - - var size size_t = uint64(63) - // var res uintptr at bp, 8 - - var err int32 - for __ccgo := true; __ccgo; __ccgo = err == 34 { - Xfree(tls, _sh1) - _sh1 = Xmalloc(tls, AssignAddUint64(&size, size+uint64(1))) - if !(_sh1 != 0) { - *(*int32)(unsafe.Pointer(X__h_errno_location(tls))) = 3 - return uintptr(0) - } - err = Xgethostbyname2_r(tls, name, af, _sh1, - _sh1+uintptr(1)*32, size-size_t(unsafe.Sizeof(hostent{})), bp, X__h_errno_location(tls)) - } - if err != 0 { - return uintptr(0) - } - return _sh1 -} - -var _sh1 uintptr /* gethostbyname2.c:10:24: */ - -func Xgethostbyname2_r(tls *TLS, name uintptr, af int32, h uintptr, buf uintptr, buflen size_t, res uintptr, err uintptr) int32 { /* gethostbyname2_r.c:11:5: */ - bp := tls.Alloc(1600) - defer tls.Free(1600) - - // var addrs [48]address at bp, 1344 - - // var canon [256]uint8 at bp+1344, 256 - - var i int32 - var cnt int32 - var align size_t - var need size_t - - *(*uintptr)(unsafe.Pointer(res)) = uintptr(0) - cnt = X__lookup_name(tls, bp, bp+1344, name, af, 0x02) - if cnt < 0 { - switch cnt { - case -2: - *(*int32)(unsafe.Pointer(err)) = 1 - return 2 - fallthrough - case -3: - *(*int32)(unsafe.Pointer(err)) = 2 - return 11 - fallthrough - default: - fallthrough - case -4: - *(*int32)(unsafe.Pointer(err)) = 3 - return 74 - fallthrough - case -10: - fallthrough - case -11: - *(*int32)(unsafe.Pointer(err)) = 3 - return *(*int32)(unsafe.Pointer(X___errno_location(tls))) - } - } - - (*hostent)(unsafe.Pointer(h)).h_addrtype = af - (*hostent)(unsafe.Pointer(h)).h_length = func() int32 { - if af == 10 { - return 16 - } - return 4 - }() - - // Align buffer - align = -uintptr_t(buf) & (uint64(unsafe.Sizeof(uintptr(0))) - uint64(1)) - - need = uint64(4) * uint64(unsafe.Sizeof(uintptr(0))) - need = need + uint64(cnt+1)*(uint64(unsafe.Sizeof(uintptr(0)))+uint64((*hostent)(unsafe.Pointer(h)).h_length)) - need = need + (Xstrlen(tls, name) + uint64(1)) - need = need + (Xstrlen(tls, bp+1344) + uint64(1)) - need = need + align - - if need > buflen { - return 34 - } - - buf += uintptr(align) - (*hostent)(unsafe.Pointer(h)).h_aliases = buf - buf += uintptr(uint64(3) * uint64(unsafe.Sizeof(uintptr(0)))) - (*hostent)(unsafe.Pointer(h)).h_addr_list = buf - buf += uintptr(uint64(cnt+1) * uint64(unsafe.Sizeof(uintptr(0)))) - - for i = 0; i < cnt; i++ { - *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_addr_list + uintptr(i)*8)) = buf - buf += uintptr((*hostent)(unsafe.Pointer(h)).h_length) - Xmemcpy(tls, *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_addr_list + uintptr(i)*8)), bp+uintptr(i)*28+8, uint64((*hostent)(unsafe.Pointer(h)).h_length)) - } - *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_addr_list + uintptr(i)*8)) = uintptr(0) - - (*hostent)(unsafe.Pointer(h)).h_name = AssignPtrUintptr((*hostent)(unsafe.Pointer(h)).h_aliases, buf) - Xstrcpy(tls, (*hostent)(unsafe.Pointer(h)).h_name, bp+1344) - buf += uintptr(Xstrlen(tls, (*hostent)(unsafe.Pointer(h)).h_name) + uint64(1)) - - if Xstrcmp(tls, (*hostent)(unsafe.Pointer(h)).h_name, name) != 0 { - *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_aliases + 1*8)) = buf - Xstrcpy(tls, *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_aliases + 1*8)), name) - buf += uintptr(Xstrlen(tls, *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_aliases + 1*8))) + uint64(1)) - } else { - *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_aliases + 1*8)) = uintptr(0) - } - - *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_aliases + 2*8)) = uintptr(0) - - *(*uintptr)(unsafe.Pointer(res)) = h - return 0 -} - -func Xgethostbyname_r(tls *TLS, name uintptr, h uintptr, buf uintptr, buflen size_t, res uintptr, err uintptr) int32 { /* gethostbyname_r.c:6:5: */ - return Xgethostbyname2_r(tls, name, 2, h, buf, buflen, res, err) -} - -type if_nameindex = struct { - if_index uint32 - _ [4]byte - if_name uintptr -} /* if.h:12:1 */ - -type ifaddr = struct { - ifa_addr struct { - sa_family sa_family_t - sa_data [14]uint8 - } - ifa_ifu struct { - ifu_broadaddr struct { - sa_family sa_family_t - sa_data [14]uint8 - } - } - ifa_ifp uintptr - ifa_next uintptr -} /* if.h:51:1 */ - -type ifmap = struct { - mem_start uint64 - mem_end uint64 - base_addr uint16 - irq uint8 - dma uint8 - port uint8 - _ [3]byte -} /* if.h:64:1 */ - -type ifreq = struct { - ifr_ifrn struct{ ifrn_name [16]uint8 } - ifr_ifru struct { - _ [0]uint64 - ifru_addr struct { - sa_family sa_family_t - sa_data [14]uint8 - } - _ [8]byte - } -} /* if.h:76:1 */ - -type ifconf = struct { - ifc_len int32 - _ [4]byte - ifc_ifcu struct{ ifcu_buf uintptr } -} /* if.h:116:1 */ - -type ns_sect = uint32 /* nameser.h:37:3 */ - -type __ns_msg = struct { - _msg uintptr - _eom uintptr - _id uint16_t - _flags uint16_t - _counts [4]uint16_t - _ [4]byte - _sections [4]uintptr - _sect ns_sect - _rrnum int32 - _msg_ptr uintptr -} /* nameser.h:39:9 */ - -type ns_msg = __ns_msg /* nameser.h:46:3 */ - -type _ns_flagdata = struct { - mask int32 - shift int32 -} /* nameser.h:48:1 */ - -type __ns_rr = struct { - name [1025]uint8 - _ [1]byte - __type uint16_t - rr_class uint16_t - _ [2]byte - ttl uint32_t - rdlength uint16_t - _ [2]byte - rdata uintptr -} /* nameser.h:59:9 */ - -type ns_rr = __ns_rr /* nameser.h:66:3 */ - -type ns_flag = uint32 /* nameser.h:87:3 */ - -type ns_opcode = uint32 /* nameser.h:96:3 */ - -type ns_rcode = uint32 /* nameser.h:115:3 */ - -type ns_update_operation = uint32 /* nameser.h:121:3 */ - -type ns_tsig_key1 = struct { - name [1025]uint8 - alg [1025]uint8 - _ [6]byte - data uintptr - len int32 - _ [4]byte -} /* nameser.h:123:1 */ - -type ns_tsig_key = ns_tsig_key1 /* nameser.h:128:28 */ - -type ns_tcp_tsig_state1 = struct { - counter int32 - _ [4]byte - key uintptr - ctx uintptr - sig [512]uint8 - siglen int32 - _ [4]byte -} /* nameser.h:130:1 */ - -type ns_tcp_tsig_state = ns_tcp_tsig_state1 /* nameser.h:137:34 */ - -type ns_type = uint32 /* nameser.h:200:3 */ - -type ns_class = uint32 /* nameser.h:219:3 */ - -type ns_key_types = uint32 /* nameser.h:226:3 */ - -type ns_cert_types = uint32 /* nameser.h:234:3 */ - -type HEADER = struct { - _ [0]uint32 - id uint32 /* unsigned id: 16, unsigned rd: 1, unsigned tc: 1, unsigned aa: 1, unsigned opcode: 4, unsigned qr: 1, unsigned rcode: 4, unsigned cd: 1, unsigned ad: 1, unsigned unused: 1, unsigned ra: 1 */ - qdcount uint32 /* unsigned qdcount: 16, unsigned ancount: 16 */ - nscount uint32 /* unsigned nscount: 16, unsigned arcount: 16 */ -} /* nameser.h:353:3 */ - -// unused; purely for broken apps -type __res_state = struct { - retrans int32 - retry int32 - options uint64 - nscount int32 - nsaddr_list [3]struct { - sin_family sa_family_t - sin_port in_port_t - sin_addr struct{ s_addr in_addr_t } - sin_zero [8]uint8_t - } - id uint16 - _ [2]byte - dnsrch [7]uintptr - defdname [256]uint8 - pfcode uint64 - ndots uint32 /* unsigned ndots: 4, unsigned nsort: 4, unsigned ipv6_unavail: 1, unsigned unused: 23 */ - _ [4]byte - sort_list [10]struct { - addr struct{ s_addr in_addr_t } - mask uint32_t - } - qhook uintptr - rhook uintptr - res_h_errno int32 - _vcsock int32 - _flags uint32 - _ [4]byte - _u struct { - _ [0]uint64 - pad [52]uint8 - _ [4]byte - } -} /* resolv.h:26:9 */ - -// unused; purely for broken apps -type res_state = uintptr /* resolv.h:62:3 */ - -type res_sym = struct { - number int32 - _ [4]byte - name uintptr - humanname uintptr -} /* resolv.h:70:1 */ - -func itoa(tls *TLS, p uintptr, x uint32) uintptr { /* getnameinfo.c:18:13: */ - p += uintptr(uint64(3) * uint64(unsafe.Sizeof(int32(0)))) - *(*uint8)(unsafe.Pointer(PreDecUintptr(&p, 1))) = uint8(0) - for __ccgo := true; __ccgo; __ccgo = x != 0 { - *(*uint8)(unsafe.Pointer(PreDecUintptr(&p, 1))) = uint8(uint32('0') + x%uint32(10)) - x = x / uint32(10) - } - return p -} - -func mkptr4(tls *TLS, s uintptr, ip uintptr) { /* getnameinfo.c:28:13: */ - bp := tls.Alloc(32) - defer tls.Free(32) - - Xsprintf(tls, s, ts+25, - VaList(bp, int32(*(*uint8)(unsafe.Pointer(ip + 3))), int32(*(*uint8)(unsafe.Pointer(ip + 2))), int32(*(*uint8)(unsafe.Pointer(ip + 1))), int32(*(*uint8)(unsafe.Pointer(ip))))) -} - -func mkptr6(tls *TLS, s uintptr, ip uintptr) { /* getnameinfo.c:34:13: */ - var i int32 - for i = 15; i >= 0; i-- { - *(*uint8)(unsafe.Pointer(PostIncUintptr(&s, 1))) = _sxdigits[int32(*(*uint8)(unsafe.Pointer(ip + uintptr(i))))&15] - *(*uint8)(unsafe.Pointer(PostIncUintptr(&s, 1))) = uint8('.') - *(*uint8)(unsafe.Pointer(PostIncUintptr(&s, 1))) = _sxdigits[int32(*(*uint8)(unsafe.Pointer(ip + uintptr(i))))>>4] - *(*uint8)(unsafe.Pointer(PostIncUintptr(&s, 1))) = uint8('.') - } - Xstrcpy(tls, s, ts+50) -} - -var _sxdigits = *(*[17]uint8)(unsafe.Pointer(ts + 59)) /* getnameinfo.c:36:20 */ - -func reverse_hosts(tls *TLS, buf uintptr, a uintptr, scopeid uint32, family int32) { /* getnameinfo.c:45:13: */ - bp := tls.Alloc(556) - defer tls.Free(556) - - // var line [512]uint8 at bp+16, 512 - - var p uintptr - var z uintptr - var _buf [1032]uint8 - _ = _buf - // var atmp [16]uint8 at bp, 16 - - // var iplit address at bp+528, 28 - - //TODO FILE _f, *f = __fopen_rb_ca("/etc/hosts", &_f, _buf, sizeof _buf); - var f uintptr = Xfopen(tls, ts+76, ts+87) - if !(f != 0) { - return - } - if family == 2 { - Xmemcpy(tls, bp+uintptr(12), a, uint64(4)) - Xmemcpy(tls, bp, ts+90, uint64(12)) - a = bp /* &atmp[0] */ - } - for Xfgets(tls, bp+16, int32(unsafe.Sizeof([512]uint8{})), f) != 0 { - if AssignUintptr(&p, Xstrchr(tls, bp+16, '#')) != 0 { - *(*uint8)(unsafe.Pointer(PostIncUintptr(&p, 1))) = uint8('\n') - *(*uint8)(unsafe.Pointer(p)) = uint8(0) - } - - for p = bp + 16; /* &line[0] */ *(*uint8)(unsafe.Pointer(p)) != 0 && !(__isspace(tls, int32(*(*uint8)(unsafe.Pointer(p)))) != 0); p++ { - } - *(*uint8)(unsafe.Pointer(PostIncUintptr(&p, 1))) = uint8(0) - if X__lookup_ipliteral(tls, bp+528, bp+16, 0) <= 0 { - continue - } - - if (*address)(unsafe.Pointer(bp+528)).family == 2 { - Xmemcpy(tls, bp+528+8+uintptr(12), bp+528+8, uint64(4)) - Xmemcpy(tls, bp+528+8, ts+90, uint64(12)) - (*address)(unsafe.Pointer(bp + 528 /* &iplit */)).scopeid = uint32(0) - } - - if Xmemcmp(tls, a, bp+528+8, uint64(16)) != 0 || (*address)(unsafe.Pointer(bp+528)).scopeid != scopeid { - continue - } - - for ; *(*uint8)(unsafe.Pointer(p)) != 0 && __isspace(tls, int32(*(*uint8)(unsafe.Pointer(p)))) != 0; p++ { - } - for z = p; *(*uint8)(unsafe.Pointer(z)) != 0 && !(__isspace(tls, int32(*(*uint8)(unsafe.Pointer(z)))) != 0); z++ { - } - *(*uint8)(unsafe.Pointer(z)) = uint8(0) - if (int64(z)-int64(p))/1 < int64(256) { - Xmemcpy(tls, buf, p, uint64((int64(z)-int64(p))/1+int64(1))) - break - } - } - //TODO __fclose_ca(f); - Xfclose(tls, f) -} - -func reverse_services(tls *TLS, buf uintptr, port int32, dgram int32) { /* getnameinfo.c:87:13: */ - Xabort(tls) //TODO- - // unsigned long svport; - // char line[128], *p, *z; - // unsigned char _buf[1032]; - // FILE _f, *f = __fopen_rb_ca("/etc/services", &_f, _buf, sizeof _buf); - // if (!f) return; - // while (fgets(line, sizeof line, f)) { - // if ((p=strchr(line, '#'))) *p++='\n', *p=0; - - // for (p=line; *p && !isspace(*p); p++); - // if (!*p) continue; - // *p++ = 0; - // svport = strtoul(p, &z, 10); - - // if (svport != port || z==p) continue; - // if (dgram && strncmp(z, "/udp", 4)) continue; - // if (!dgram && strncmp(z, "/tcp", 4)) continue; - // if (p-line > 32) continue; - - // memcpy(buf, line, p-line); - // break; - // } - // __fclose_ca(f); -} - -func Xgetnameinfo(tls *TLS, sa1 uintptr, sl socklen_t, node uintptr, nodelen socklen_t, serv uintptr, servlen socklen_t, flags int32) int32 { /* getnameinfo.c:125:5: */ - bp := tls.Alloc(347) - defer tls.Free(347) - - // var ptr [78]uint8 at bp, 78 - - // var buf [256]uint8 at bp+78, 256 - - // var num [13]uint8 at bp+334, 13 - - var af int32 = int32((*sockaddr)(unsafe.Pointer(sa1)).sa_family) - var a uintptr - var scopeid uint32 - - switch af { - case 2: - a = sa1 + 4 - if uint64(sl) < uint64(unsafe.Sizeof(sockaddr_in{})) { - return -6 - } - mkptr4(tls, bp, a) - scopeid = uint32(0) - break - case 10: - a = sa1 + 8 - if uint64(sl) < uint64(unsafe.Sizeof(sockaddr_in6{})) { - return -6 - } - if Xmemcmp(tls, a, ts+90, uint64(12)) != 0 { - mkptr6(tls, bp, a) - } else { - mkptr4(tls, bp, a+uintptr(12)) - } - scopeid = (*sockaddr_in6)(unsafe.Pointer(sa1)).sin6_scope_id - break - default: - return -6 - } - - if node != 0 && nodelen != 0 { - *(*uint8)(unsafe.Pointer(bp + 78)) = uint8(0) - if !(flags&0x01 != 0) { - reverse_hosts(tls, bp+78, a, scopeid, af) - } - if !(int32(*(*uint8)(unsafe.Pointer(bp + 78))) != 0) && !(flags&0x01 != 0) { - Xabort(tls) //TODO- - // unsigned char query[18+PTR_MAX], reply[512]; - // int qlen = __res_mkquery(0, ptr, 1, RR_PTR, - // 0, 0, 0, query, sizeof query); - // query[3] = 0; /* don't need AD flag */ - // int rlen = __res_send(query, qlen, reply, sizeof reply); - // buf[0] = 0; - // if (rlen > 0) - // __dns_parse(reply, rlen, dns_parse_callback, buf); - } - if !(int32(*(*uint8)(unsafe.Pointer(bp + 78))) != 0) { - if flags&0x08 != 0 { - return -2 - } - Xinet_ntop(tls, af, a, bp+78, uint32(unsafe.Sizeof([256]uint8{}))) - if scopeid != 0 { - Xabort(tls) //TODO- - // char *p = 0, tmp[IF_NAMESIZE+1]; - // if (!(flags & NI_NUMERICSCOPE) && - // (IN6_IS_ADDR_LINKLOCAL(a) || - // IN6_IS_ADDR_MC_LINKLOCAL(a))) - // p = if_indextoname(scopeid, tmp+1); - // if (!p) - // p = itoa(num, scopeid); - // *--p = '%'; - // strcat(buf, p); - } - } - if Xstrlen(tls, bp+78) >= size_t(nodelen) { - return -12 - } - Xstrcpy(tls, node, bp+78) - } - - if serv != 0 && servlen != 0 { - var p uintptr = bp + 78 /* buf */ - var port int32 = int32(Xntohs(tls, (*sockaddr_in)(unsafe.Pointer(sa1)).sin_port)) - *(*uint8)(unsafe.Pointer(bp + 78)) = uint8(0) - if !(flags&0x02 != 0) { - reverse_services(tls, bp+78, port, flags&0x10) - } - if !(int32(*(*uint8)(unsafe.Pointer(p))) != 0) { - p = itoa(tls, bp+334, uint32(port)) - } - if Xstrlen(tls, p) >= size_t(servlen) { - return -12 - } - Xstrcpy(tls, serv, p) - } - - return 0 -} - -var Xh_errno int32 /* h_errno.c:4:5: */ - -func X__h_errno_location(tls *TLS) uintptr { /* h_errno.c:6:5: */ - return uintptr(unsafe.Pointer(&Xh_errno)) -} - -func X__inet_aton(tls *TLS, s0 uintptr, dest uintptr) int32 { /* inet_aton.c:7:5: */ - bp := tls.Alloc(40) - defer tls.Free(40) - - var s uintptr = s0 - var d uintptr = dest - *(*[4]uint64)(unsafe.Pointer(bp /* a */)) = [4]uint64{0: uint64(0)} - // var z uintptr at bp+32, 8 - - var i int32 - - for i = 0; i < 4; i++ { - *(*uint64)(unsafe.Pointer(bp + uintptr(i)*8)) = Xstrtoul(tls, s, bp+32, 0) - if *(*uintptr)(unsafe.Pointer(bp + 32)) == s || *(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 32)))) != 0 && int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 32))))) != '.' || !(func() int32 { - if 0 != 0 { - return Xisdigit(tls, int32(*(*uint8)(unsafe.Pointer(s)))) - } - return Bool32(uint32(*(*uint8)(unsafe.Pointer(s)))-uint32('0') < uint32(10)) - }() != 0) { - return 0 - } - if !(int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 32))))) != 0) { - break - } - s = *(*uintptr)(unsafe.Pointer(bp + 32)) + uintptr(1) - } - if i == 4 { - return 0 - } - switch i { - case 0: - *(*uint64)(unsafe.Pointer(bp + 1*8)) = *(*uint64)(unsafe.Pointer(bp)) & uint64(0xffffff) - AssignShrPtrUint64(bp, int(24)) - fallthrough - case 1: - *(*uint64)(unsafe.Pointer(bp + 2*8)) = *(*uint64)(unsafe.Pointer(bp + 1*8)) & uint64(0xffff) - AssignShrPtrUint64(bp+1*8, int(16)) - fallthrough - case 2: - *(*uint64)(unsafe.Pointer(bp + 3*8)) = *(*uint64)(unsafe.Pointer(bp + 2*8)) & uint64(0xff) - AssignShrPtrUint64(bp+2*8, int(8)) - } - for i = 0; i < 4; i++ { - if *(*uint64)(unsafe.Pointer(bp + uintptr(i)*8)) > uint64(255) { - return 0 - } - *(*uint8)(unsafe.Pointer(d + uintptr(i))) = uint8(*(*uint64)(unsafe.Pointer(bp + uintptr(i)*8))) - } - return 1 -} - -func Xinet_ntop(tls *TLS, af int32, a0 uintptr, s uintptr, l socklen_t) uintptr { /* inet_ntop.c:7:12: */ - bp := tls.Alloc(276) - defer tls.Free(276) - - var a uintptr = a0 - var i int32 - var j int32 - var max int32 - var best int32 - // var buf [100]uint8 at bp+176, 100 - - switch af { - case 2: - if socklen_t(Xsnprintf(tls, s, uint64(l), ts+103, VaList(bp, int32(*(*uint8)(unsafe.Pointer(a))), int32(*(*uint8)(unsafe.Pointer(a + 1))), int32(*(*uint8)(unsafe.Pointer(a + 2))), int32(*(*uint8)(unsafe.Pointer(a + 3)))))) < l { - return s - } - break - case 10: - if Xmemcmp(tls, a, ts+90, uint64(12)) != 0 { - Xsnprintf(tls, bp+176, uint64(unsafe.Sizeof([100]uint8{})), - ts+115, - VaList(bp+32, 256*int32(*(*uint8)(unsafe.Pointer(a)))+int32(*(*uint8)(unsafe.Pointer(a + 1))), 256*int32(*(*uint8)(unsafe.Pointer(a + 2)))+int32(*(*uint8)(unsafe.Pointer(a + 3))), - 256*int32(*(*uint8)(unsafe.Pointer(a + 4)))+int32(*(*uint8)(unsafe.Pointer(a + 5))), 256*int32(*(*uint8)(unsafe.Pointer(a + 6)))+int32(*(*uint8)(unsafe.Pointer(a + 7))), - 256*int32(*(*uint8)(unsafe.Pointer(a + 8)))+int32(*(*uint8)(unsafe.Pointer(a + 9))), 256*int32(*(*uint8)(unsafe.Pointer(a + 10)))+int32(*(*uint8)(unsafe.Pointer(a + 11))), - 256*int32(*(*uint8)(unsafe.Pointer(a + 12)))+int32(*(*uint8)(unsafe.Pointer(a + 13))), 256*int32(*(*uint8)(unsafe.Pointer(a + 14)))+int32(*(*uint8)(unsafe.Pointer(a + 15))))) - } else { - Xsnprintf(tls, bp+176, uint64(unsafe.Sizeof([100]uint8{})), - ts+139, - VaList(bp+96, 256*int32(*(*uint8)(unsafe.Pointer(a)))+int32(*(*uint8)(unsafe.Pointer(a + 1))), 256*int32(*(*uint8)(unsafe.Pointer(a + 2)))+int32(*(*uint8)(unsafe.Pointer(a + 3))), - 256*int32(*(*uint8)(unsafe.Pointer(a + 4)))+int32(*(*uint8)(unsafe.Pointer(a + 5))), 256*int32(*(*uint8)(unsafe.Pointer(a + 6)))+int32(*(*uint8)(unsafe.Pointer(a + 7))), - 256*int32(*(*uint8)(unsafe.Pointer(a + 8)))+int32(*(*uint8)(unsafe.Pointer(a + 9))), 256*int32(*(*uint8)(unsafe.Pointer(a + 10)))+int32(*(*uint8)(unsafe.Pointer(a + 11))), - int32(*(*uint8)(unsafe.Pointer(a + 12))), int32(*(*uint8)(unsafe.Pointer(a + 13))), int32(*(*uint8)(unsafe.Pointer(a + 14))), int32(*(*uint8)(unsafe.Pointer(a + 15))))) - } - // Replace longest /(^0|:)[:0]{2,}/ with "::" - i = AssignInt32(&best, 0) - max = 2 - for ; *(*uint8)(unsafe.Pointer(bp + 176 + uintptr(i))) != 0; i++ { - if i != 0 && int32(*(*uint8)(unsafe.Pointer(bp + 176 + uintptr(i)))) != ':' { - continue - } - j = int32(Xstrspn(tls, bp+176+uintptr(i), ts+169)) - if j > max { - best = i - max = j - } - } - if max > 3 { - *(*uint8)(unsafe.Pointer(bp + 176 + uintptr(best))) = AssignPtrUint8(bp+176+uintptr(best+1), uint8(':')) - Xmemmove(tls, bp+176+uintptr(best)+uintptr(2), bp+176+uintptr(best)+uintptr(max), uint64(i-best-max+1)) - } - if Xstrlen(tls, bp+176) < size_t(l) { - Xstrcpy(tls, s, bp+176) - return s - } - break - default: - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 97 - return uintptr(0) - } - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 28 - return uintptr(0) -} - -func hexval(tls *TLS, c uint32) int32 { /* inet_pton.c:7:12: */ - if c-uint32('0') < uint32(10) { - return int32(c - uint32('0')) - } - c = c | uint32(32) - if c-uint32('a') < uint32(6) { - return int32(c - uint32('a') + uint32(10)) - } - return -1 -} - -func Xinet_pton(tls *TLS, af int32, s uintptr, a0 uintptr) int32 { /* inet_pton.c:15:5: */ - bp := tls.Alloc(16) - defer tls.Free(16) - - // var ip [8]uint16_t at bp, 16 - - var a uintptr = a0 - var i int32 - var j int32 - var v int32 - var d int32 - var brk int32 = -1 - var need_v4 int32 = 0 - - if af == 2 { - for i = 0; i < 4; i++ { - for v = AssignInt32(&j, 0); j < 3 && func() int32 { - if 0 != 0 { - return Xisdigit(tls, int32(*(*uint8)(unsafe.Pointer(s + uintptr(j))))) - } - return Bool32(uint32(*(*uint8)(unsafe.Pointer(s + uintptr(j))))-uint32('0') < uint32(10)) - }() != 0; j++ { - v = 10*v + int32(*(*uint8)(unsafe.Pointer(s + uintptr(j)))) - '0' - } - if j == 0 || j > 1 && int32(*(*uint8)(unsafe.Pointer(s))) == '0' || v > 255 { - return 0 - } - *(*uint8)(unsafe.Pointer(a + uintptr(i))) = uint8(v) - if int32(*(*uint8)(unsafe.Pointer(s + uintptr(j)))) == 0 && i == 3 { - return 1 - } - if int32(*(*uint8)(unsafe.Pointer(s + uintptr(j)))) != '.' { - return 0 - } - s += uintptr(j + 1) - } - return 0 - } else if af != 10 { - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 97 - return -1 - } - - if int32(*(*uint8)(unsafe.Pointer(s))) == ':' && int32(*(*uint8)(unsafe.Pointer(PreIncUintptr(&s, 1)))) != ':' { - return 0 - } - - for i = 0; ; i++ { - if int32(*(*uint8)(unsafe.Pointer(s))) == ':' && brk < 0 { - brk = i - *(*uint16_t)(unsafe.Pointer(bp + uintptr(i&7)*2)) = uint16_t(0) - if !(int32(*(*uint8)(unsafe.Pointer(PreIncUintptr(&s, 1)))) != 0) { - break - } - if i == 7 { - return 0 - } - continue - } - for v = AssignInt32(&j, 0); j < 4 && AssignInt32(&d, hexval(tls, uint32(*(*uint8)(unsafe.Pointer(s + uintptr(j)))))) >= 0; j++ { - v = 16*v + d - } - if j == 0 { - return 0 - } - *(*uint16_t)(unsafe.Pointer(bp + uintptr(i&7)*2)) = uint16_t(v) - if !(int32(*(*uint8)(unsafe.Pointer(s + uintptr(j)))) != 0) && (brk >= 0 || i == 7) { - break - } - if i == 7 { - return 0 - } - if int32(*(*uint8)(unsafe.Pointer(s + uintptr(j)))) != ':' { - if int32(*(*uint8)(unsafe.Pointer(s + uintptr(j)))) != '.' || i < 6 && brk < 0 { - return 0 - } - need_v4 = 1 - i++ - break - } - s += uintptr(j + 1) - } - if brk >= 0 { - Xmemmove(tls, bp+uintptr(brk)*2+uintptr(7)*2-uintptr(i)*2, bp+uintptr(brk)*2, uint64(2*(i+1-brk))) - for j = 0; j < 7-i; j++ { - *(*uint16_t)(unsafe.Pointer(bp + uintptr(brk+j)*2)) = uint16_t(0) - } - } - for j = 0; j < 8; j++ { - *(*uint8)(unsafe.Pointer(PostIncUintptr(&a, 1))) = uint8(int32(*(*uint16_t)(unsafe.Pointer(bp + uintptr(j)*2))) >> 8) - *(*uint8)(unsafe.Pointer(PostIncUintptr(&a, 1))) = uint8(*(*uint16_t)(unsafe.Pointer(bp + uintptr(j)*2))) - } - if need_v4 != 0 && Xinet_pton(tls, 2, s, a-uintptr(4)) <= 0 { - return 0 - } - return 1 -} - -func X__lookup_ipliteral(tls *TLS, buf uintptr, name uintptr, family int32) int32 { /* lookup_ipliteral.c:12:5: */ - bp := tls.Alloc(96) - defer tls.Free(96) - - // var a4 in_addr at bp, 4 - - // var a6 in6_addr at bp+68, 16 - - if X__inet_aton(tls, name, bp) > 0 { - if family == 10 { // wrong family - return -2 - } - Xmemcpy(tls, buf+8, bp, uint64(unsafe.Sizeof(in_addr{}))) - (*address)(unsafe.Pointer(buf)).family = 2 - (*address)(unsafe.Pointer(buf)).scopeid = uint32(0) - return 1 - } - // var tmp [64]uint8 at bp+4, 64 - - var p uintptr = Xstrchr(tls, name, '%') - // var z uintptr at bp+88, 8 - - var scopeid uint64 = uint64(0) - if p != 0 && (int64(p)-int64(name))/1 < int64(64) { - Xmemcpy(tls, bp+4, name, uint64((int64(p)-int64(name))/1)) - *(*uint8)(unsafe.Pointer(bp + 4 + uintptr((int64(p)-int64(name))/1))) = uint8(0) - name = bp + 4 /* &tmp[0] */ - } - - if Xinet_pton(tls, 10, name, bp+68) <= 0 { - return 0 - } - if family == 2 { // wrong family - return -2 - } - - Xmemcpy(tls, buf+8, bp+68, uint64(unsafe.Sizeof(in6_addr{}))) - (*address)(unsafe.Pointer(buf)).family = 10 - if p != 0 { - if func() int32 { - if 0 != 0 { - return Xisdigit(tls, int32(*(*uint8)(unsafe.Pointer(PreIncUintptr(&p, 1))))) - } - return Bool32(uint32(*(*uint8)(unsafe.Pointer(PreIncUintptr(&p, 1))))-uint32('0') < uint32(10)) - }() != 0 { - scopeid = Xstrtoull(tls, p, bp+88, 10) - } else { - *(*uintptr)(unsafe.Pointer(bp + 88 /* z */)) = p - uintptr(1) - } - if *(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 88)))) != 0 { - Xabort(tls) //TODO- - // if (!IN6_IS_ADDR_LINKLOCAL(&a6) && - // !IN6_IS_ADDR_MC_LINKLOCAL(&a6)) - // return EAI_NONAME; - // scopeid = if_nametoindex(p); - // if (!scopeid) return EAI_NONAME; - } - if scopeid > uint64(0xffffffff) { - return -2 - } - } - (*address)(unsafe.Pointer(buf)).scopeid = uint32(scopeid) - return 1 -} - -func is_valid_hostname(tls *TLS, host uintptr) int32 { /* lookup_name.c:18:12: */ - var s uintptr - //TODO if (strnlen(host, 255)-1 >= 254 || mbstowcs(0, host, 0) == -1) return 0; - if Xstrnlen(tls, host, uint64(255))-uint64(1) >= uint64(254) { - return 0 - } - for s = host; int32(*(*uint8)(unsafe.Pointer(s))) >= 0x80 || int32(*(*uint8)(unsafe.Pointer(s))) == '.' || int32(*(*uint8)(unsafe.Pointer(s))) == '-' || Xisalnum(tls, int32(*(*uint8)(unsafe.Pointer(s)))) != 0; s++ { - } - return BoolInt32(!(*(*uint8)(unsafe.Pointer(s)) != 0)) -} - -var Xzero_struct_address address /* lookup_name.c:27:16: */ - -func name_from_null(tls *TLS, buf uintptr, name uintptr, family int32, flags int32) int32 { /* lookup_name.c:29:12: */ - var cnt int32 = 0 - if name != 0 { - return 0 - } - if flags&0x01 != 0 { - //TODO if (family != AF_INET6) - //TODO buf[cnt++] = (struct address){ .family = AF_INET }; - if family != 10 { - var x = Xzero_struct_address - x.family = 2 - *(*address)(unsafe.Pointer(buf + uintptr(PostIncInt32(&cnt, 1))*28)) = x - } - //TODO if (family != AF_INET) - //TODO buf[cnt++] = (struct address){ .family = AF_INET6 }; - if family != 2 { - var x = Xzero_struct_address - x.family = 10 - *(*address)(unsafe.Pointer(buf + uintptr(PostIncInt32(&cnt, 1))*28)) = x - } - } else { - Xabort(tls) //TODO- - // if (family != AF_INET6) - // buf[cnt++] = (struct address){ .family = AF_INET, .addr = { 127,0,0,1 } }; - // if (family != AF_INET) - // buf[cnt++] = (struct address){ .family = AF_INET6, .addr = { [15] = 1 } }; - } - return cnt -} - -func name_from_numeric(tls *TLS, buf uintptr, name uintptr, family int32) int32 { /* lookup_name.c:58:12: */ - return X__lookup_ipliteral(tls, buf, name, family) -} - -func name_from_hosts(tls *TLS, buf uintptr, canon uintptr, name uintptr, family int32) int32 { /* lookup_name.c:63:12: */ - bp := tls.Alloc(512) - defer tls.Free(512) - - // var line [512]uint8 at bp, 512 - - var l size_t = Xstrlen(tls, name) - var cnt int32 = 0 - var badfam int32 = 0 - var _buf [1032]uint8 - _ = _buf - //TODO FILE _f, *f = __fopen_rb_ca("/etc/hosts", &_f, _buf, sizeof _buf); - var _f FILE - _ = _f - var f uintptr = Xfopen(tls, ts+76, ts+87) - if !(f != 0) { - switch *(*int32)(unsafe.Pointer(X___errno_location(tls))) { - case 2: - fallthrough - case 20: - fallthrough - case 13: - return 0 - fallthrough - default: - return -11 - } - } - for Xfgets(tls, bp, int32(unsafe.Sizeof([512]uint8{})), f) != 0 && cnt < 48 { - var p uintptr - var z uintptr - - if AssignUintptr(&p, Xstrchr(tls, bp, '#')) != 0 { - *(*uint8)(unsafe.Pointer(PostIncUintptr(&p, 1))) = uint8('\n') - *(*uint8)(unsafe.Pointer(p)) = uint8(0) - } - for p = bp + uintptr(1); AssignUintptr(&p, Xstrstr(tls, p, name)) != 0 && (!(__isspace(tls, int32(*(*uint8)(unsafe.Pointer(p + UintptrFromInt32(-1))))) != 0) || !(__isspace(tls, int32(*(*uint8)(unsafe.Pointer(p + uintptr(l))))) != 0)); p++ { - } - if !(p != 0) { - continue - } - - // Isolate IP address to parse - for p = bp; /* &line[0] */ *(*uint8)(unsafe.Pointer(p)) != 0 && !(__isspace(tls, int32(*(*uint8)(unsafe.Pointer(p)))) != 0); p++ { - } - *(*uint8)(unsafe.Pointer(PostIncUintptr(&p, 1))) = uint8(0) - switch name_from_numeric(tls, buf+uintptr(cnt)*28, bp, family) { - case 1: - cnt++ - break - case 0: - continue - default: - badfam = -2 - continue - } - - // Extract first name as canonical name - for ; *(*uint8)(unsafe.Pointer(p)) != 0 && __isspace(tls, int32(*(*uint8)(unsafe.Pointer(p)))) != 0; p++ { - } - for z = p; *(*uint8)(unsafe.Pointer(z)) != 0 && !(__isspace(tls, int32(*(*uint8)(unsafe.Pointer(z)))) != 0); z++ { - } - *(*uint8)(unsafe.Pointer(z)) = uint8(0) - if is_valid_hostname(tls, p) != 0 { - Xmemcpy(tls, canon, p, uint64((int64(z)-int64(p))/1+int64(1))) - } - } - //TODO __fclose_ca(f); - Xfclose(tls, f) - if cnt != 0 { - return cnt - } - return badfam -} - -type dpc_ctx = struct { - addrs uintptr - canon uintptr - cnt int32 - _ [4]byte -} /* lookup_name.c:112:1 */ - -func name_from_dns_search(tls *TLS, buf uintptr, canon uintptr, name uintptr, family int32) int32 { /* lookup_name.c:191:12: */ - return -1 //TODO- - Xabort(tls) - return int32(0) //TODO- - // char search[256]; - // struct resolvconf conf; - // size_t l, dots; - // char *p, *z; - - // if (__get_resolv_conf(&conf, search, sizeof search) < 0) return -1; - - // /* Count dots, suppress search when >=ndots or name ends in - // * a dot, which is an explicit request for global scope. */ - // for (dots=l=0; name[l]; l++) if (name[l]=='.') dots++; - // if (dots >= conf.ndots || name[l-1]=='.') *search = 0; - - // /* Strip final dot for canon, fail if multiple trailing dots. */ - // if (name[l-1]=='.') l--; - // if (!l || name[l-1]=='.') return EAI_NONAME; - - // /* This can never happen; the caller already checked length. */ - // if (l >= 256) return EAI_NONAME; - - // /* Name with search domain appended is setup in canon[]. This both - // * provides the desired default canonical name (if the requested - // * name is not a CNAME record) and serves as a buffer for passing - // * the full requested name to name_from_dns. */ - // memcpy(canon, name, l); - // canon[l] = '.'; - - // for (p=search; *p; p=z) { - // for (; isspace(*p); p++); - // for (z=p; *z && !isspace(*z); z++); - // if (z==p) break; - // if (z-p < 256 - l - 1) { - // memcpy(canon+l+1, p, z-p); - // canon[z-p+1+l] = 0; - // int cnt = name_from_dns(buf, canon, canon, family, &conf); - // if (cnt) return cnt; - // } - // } - - // canon[l] = 0; - // return name_from_dns(buf, canon, name, family, &conf); -} - -type policy = struct { - addr [16]uint8 - len uint8 - mask uint8 - prec uint8 - label uint8 -} /* lookup_name.c:237:14 */ - -var defpolicy = [6]policy{ - {addr: *(*[16]uint8)(unsafe.Pointer(ts + 172)), len: uint8(15), mask: uint8(0xff), prec: uint8(50)}, - {addr: *(*[16]uint8)(unsafe.Pointer(ts + 189)), len: uint8(11), mask: uint8(0xff), prec: uint8(35), label: uint8(4)}, - {addr: *(*[16]uint8)(unsafe.Pointer(ts + 205)), len: uint8(1), mask: uint8(0xff), prec: uint8(30), label: uint8(2)}, - {addr: *(*[16]uint8)(unsafe.Pointer(ts + 221)), len: uint8(3), mask: uint8(0xff), prec: uint8(5), label: uint8(5)}, - {addr: *(*[16]uint8)(unsafe.Pointer(ts + 237)), mask: uint8(0xfe), prec: uint8(3), label: uint8(13)}, - // Last rule must match all addresses to stop loop. - {addr: *(*[16]uint8)(unsafe.Pointer(ts + 253)), prec: uint8(40), label: uint8(1)}, -} /* lookup_name.c:241:3 */ - -func policyof(tls *TLS, a uintptr) uintptr { /* lookup_name.c:259:28: */ - var i int32 - for i = 0; ; i++ { - if Xmemcmp(tls, a, uintptr(unsafe.Pointer(&defpolicy))+uintptr(i)*20, uint64(defpolicy[i].len)) != 0 { - continue - } - if int32(*(*uint8_t)(unsafe.Pointer(a + uintptr(defpolicy[i].len))))&int32(defpolicy[i].mask) != - int32(*(*uint8)(unsafe.Pointer(uintptr(unsafe.Pointer(&defpolicy)) + uintptr(i)*20 + uintptr(defpolicy[i].len)))) { - continue - } - return uintptr(unsafe.Pointer(&defpolicy)) + uintptr(i)*20 - } - return uintptr(0) -} - -func labelof(tls *TLS, a uintptr) int32 { /* lookup_name.c:272:12: */ - return int32((*policy)(unsafe.Pointer(policyof(tls, a))).label) -} - -func scopeof(tls *TLS, a uintptr) int32 { /* lookup_name.c:277:12: */ - if int32(*(*uint8_t)(unsafe.Pointer(a))) == 0xff { - return int32(*(*uint8_t)(unsafe.Pointer(a + 1))) & 15 - } - if int32(*(*uint8_t)(unsafe.Pointer(a))) == 0xfe && int32(*(*uint8_t)(unsafe.Pointer(a + 1)))&0xc0 == 0x80 { - return 2 - } - if *(*uint32_t)(unsafe.Pointer(a)) == uint32_t(0) && *(*uint32_t)(unsafe.Pointer(a + 1*4)) == uint32_t(0) && *(*uint32_t)(unsafe.Pointer(a + 2*4)) == uint32_t(0) && int32(*(*uint8_t)(unsafe.Pointer(a + 12))) == 0 && int32(*(*uint8_t)(unsafe.Pointer(a + 13))) == 0 && int32(*(*uint8_t)(unsafe.Pointer(a + 14))) == 0 && int32(*(*uint8_t)(unsafe.Pointer(a + 15))) == 1 { - return 2 - } - if int32(*(*uint8_t)(unsafe.Pointer(a))) == 0xfe && int32(*(*uint8_t)(unsafe.Pointer(a + 1)))&0xc0 == 0xc0 { - return 5 - } - return 14 -} - -func prefixmatch(tls *TLS, s uintptr, d uintptr) int32 { /* lookup_name.c:286:12: */ - // FIXME: The common prefix length should be limited to no greater - // than the nominal length of the prefix portion of the source - // address. However the definition of the source prefix length is - // not clear and thus this limiting is not yet implemented. - var i uint32 - for i = uint32(0); i < uint32(128) && !((int32(*(*uint8_t)(unsafe.Pointer(s /* &.__in6_union */ /* &.__s6_addr */ + uintptr(i/uint32(8)))))^int32(*(*uint8_t)(unsafe.Pointer(d /* &.__in6_union */ /* &.__s6_addr */ + uintptr(i/uint32(8))))))&(int32(128)>>(i%uint32(8))) != 0); i++ { - } - return int32(i) -} - -func addrcmp(tls *TLS, _a uintptr, _b uintptr) int32 { /* lookup_name.c:305:12: */ - var a uintptr = _a - var b uintptr = _b - return (*address)(unsafe.Pointer(b)).sortkey - (*address)(unsafe.Pointer(a)).sortkey -} - -func X__lookup_name(tls *TLS, buf uintptr, canon uintptr, name uintptr, family int32, flags int32) int32 { /* lookup_name.c:311:5: */ - bp := tls.Alloc(92) - defer tls.Free(92) - - var cnt int32 = 0 - var i int32 - var j int32 - _ = j - - *(*uint8)(unsafe.Pointer(canon)) = uint8(0) - if name != 0 { - // reject empty name and check len so it fits into temp bufs - var l size_t = Xstrnlen(tls, name, uint64(255)) - if l-uint64(1) >= uint64(254) { - return -2 - } - Xmemcpy(tls, canon, name, l+uint64(1)) - } - - // Procedurally, a request for v6 addresses with the v4-mapped - // flag set is like a request for unspecified family, followed - // by filtering of the results. - if flags&0x08 != 0 { - if family == 10 { - family = 0 - } else { - flags = flags - 0x08 - } - } - - // Try each backend until there's at least one result. - cnt = name_from_null(tls, buf, name, family, flags) - if !(cnt != 0) { - cnt = name_from_numeric(tls, buf, name, family) - } - if !(cnt != 0) && !(flags&0x04 != 0) { - cnt = name_from_hosts(tls, buf, canon, name, family) - if !(cnt != 0) { - cnt = name_from_dns_search(tls, buf, canon, name, family) - } - } - if cnt <= 0 { - if cnt != 0 { - return cnt - } - return -2 - } - - // Filter/transform results for v4-mapped lookup, if requested. - if flags&0x08 != 0 { - Xabort(tls) //TODO- - // if (!(flags & AI_ALL)) { - // /* If any v6 results exist, remove v4 results. */ - // for (i=0; i= 0 { - if !(Xconnect(tls, fd, da, dalen) != 0) { - key = key | 0x40000000 - if !(Xgetsockname(tls, fd, sa1, bp+88) != 0) { - if family == 2 { - Xmemcpy(tls, - bp+28+8+uintptr(12), - bp+72+4, uint64(4)) - } - if dscope == scopeof(tls, bp+28+8) { - key = key | 0x20000000 - } - if dlabel == labelof(tls, bp+28+8) { - key = key | 0x10000000 - } - prefixlen = prefixmatch(tls, bp+28+8, - bp+8) - } - } - Xclose(tls, fd) - } - key = key | dprec<<20 - key = key | (15-dscope)<<16 - key = key | prefixlen<<8 - key = key | (48-i)<<0 - (*address)(unsafe.Pointer(buf + uintptr(i)*28)).sortkey = key - } - Xqsort(tls, buf, uint64(cnt), uint64(unsafe.Sizeof(address{})), *(*uintptr)(unsafe.Pointer(&struct { - f func(*TLS, uintptr, uintptr) int32 - }{addrcmp}))) - - //TODO pthread_setcancelstate(cs, 0); - - return cnt -} - -func X__lookup_serv(tls *TLS, buf uintptr, name uintptr, proto int32, socktype int32, flags int32) int32 { /* lookup_serv.c:12:5: */ - bp := tls.Alloc(8) - defer tls.Free(8) - - var line [128]uint8 - _ = line - var cnt int32 = 0 - var p uintptr - _ = p - *(*uintptr)(unsafe.Pointer(bp /* z */)) = ts + 13 /* "" */ - var port uint64 = uint64(0) - - switch socktype { - case 1: - switch proto { - case 0: - proto = 6 - fallthrough - case 6: - break - default: - return -8 - } - break - case 2: - switch proto { - case 0: - proto = 17 - fallthrough - case 17: - break - default: - return -8 - } - fallthrough - case 0: - break - default: - if name != 0 { - return -8 - } - (*service)(unsafe.Pointer(buf)).port = uint16_t(0) - (*service)(unsafe.Pointer(buf)).proto = uint8(proto) - (*service)(unsafe.Pointer(buf)).socktype = uint8(socktype) - return 1 - } - - if name != 0 { - if !(int32(*(*uint8)(unsafe.Pointer(name))) != 0) { - return -8 - } - port = Xstrtoul(tls, name, bp, 10) - } - if !(int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp))))) != 0) { - if port > uint64(65535) { - return -8 - } - if proto != 17 { - (*service)(unsafe.Pointer(buf + uintptr(cnt)*4)).port = uint16_t(port) - (*service)(unsafe.Pointer(buf + uintptr(cnt)*4)).socktype = uint8(1) - (*service)(unsafe.Pointer(buf + uintptr(PostIncInt32(&cnt, 1))*4)).proto = uint8(6) - } - if proto != 6 { - (*service)(unsafe.Pointer(buf + uintptr(cnt)*4)).port = uint16_t(port) - (*service)(unsafe.Pointer(buf + uintptr(cnt)*4)).socktype = uint8(2) - (*service)(unsafe.Pointer(buf + uintptr(PostIncInt32(&cnt, 1))*4)).proto = uint8(17) - } - return cnt - } - - if flags&0x400 != 0 { - return -2 - } - - var l size_t = Xstrlen(tls, name) - _ = l - - Xabort(tls) //TODO- - // unsigned char _buf[1032]; - // FILE _f, *f = __fopen_rb_ca("/etc/services", &_f, _buf, sizeof _buf); - // if (!f) switch (errno) { - // case ENOENT: - // case ENOTDIR: - // case EACCES: - // return EAI_SERVICE; - // default: - // return EAI_SYSTEM; - // } - - Xabort(tls) //TODO- - // while (fgets(line, sizeof line, f) && cnt < MAXSERVS) { - // if ((p=strchr(line, '#'))) *p++='\n', *p=0; - - // /* Find service name */ - // for(p=line; (p=strstr(p, name)); p++) { - // if (p>line && !isspace(p[-1])) continue; - // if (p[l] && !isspace(p[l])) continue; - // break; - // } - // if (!p) continue; - - // /* Skip past canonical name at beginning of line */ - // for (p=line; *p && !isspace(*p); p++); - - // port = strtoul(p, &z, 10); - // if (port > 65535 || z==p) continue; - // if (!strncmp(z, "/udp", 4)) { - // if (proto == IPPROTO_TCP) continue; - // buf[cnt].port = port; - // buf[cnt].socktype = SOCK_DGRAM; - // buf[cnt++].proto = IPPROTO_UDP; - // } - // if (!strncmp(z, "/tcp", 4)) { - // if (proto == IPPROTO_UDP) continue; - // buf[cnt].port = port; - // buf[cnt].socktype = SOCK_STREAM; - // buf[cnt++].proto = IPPROTO_TCP; - // } - // } - // __fclose_ca(f); - // return cnt > 0 ? cnt : EAI_SERVICE; - Xabort(tls) - return int32(0) //TODO- -} - -func temper(tls *TLS, x uint32) uint32 { /* rand_r.c:3:17: */ - x = x ^ x>>11 - x = x ^ x<<7&0x9D2C5680 - x = x ^ x<<15&0xEFC60000 - x = x ^ x>>18 - return x -} - -func Xrand_r(tls *TLS, seed uintptr) int32 { /* rand_r.c:12:5: */ - return int32(temper(tls, AssignPtrUint32(seed, *(*uint32)(unsafe.Pointer(seed))*uint32(1103515245)+uint32(12345))) / uint32(2)) -} - -func X__lockfile(tls *TLS, f uintptr) int32 { /* __lockfile.c:4:5: */ - var owner int32 = (*FILE)(unsafe.Pointer(f)).lock - var tid int32 = (*__pthread)(unsafe.Pointer(__pthread_self(tls))).tid - if owner&CplInt32(0x40000000) == tid { - return 0 - } - owner = a_cas(tls, f+140, 0, tid) - if !(owner != 0) { - return 1 - } - for AssignInt32(&owner, a_cas(tls, f+140, 0, tid|0x40000000)) != 0 { - if owner&0x40000000 != 0 || a_cas(tls, f+140, owner, owner|0x40000000) == owner { - __futexwait(tls, f+140, owner|0x40000000, 1) - } - } - return 1 -} - -func X__unlockfile(tls *TLS, f uintptr) { /* __lockfile.c:19:6: */ - if a_swap(tls, f+140, 0)&0x40000000 != 0 { - __wake(tls, f+140, 1, 1) - } -} - -func X__toread(tls *TLS, f uintptr) int32 { /* __toread.c:3:5: */ - *(*int32)(unsafe.Pointer(f + 136)) |= (*FILE)(unsafe.Pointer(f)).mode - 1 - if (*FILE)(unsafe.Pointer(f)).wpos != (*FILE)(unsafe.Pointer(f)).wbase { - (*struct { - f func(*TLS, uintptr, uintptr, size_t) size_t - })(unsafe.Pointer(&struct{ uintptr }{(*FILE)(unsafe.Pointer(f)).write})).f(tls, f, uintptr(0), uint64(0)) - } - (*FILE)(unsafe.Pointer(f)).wpos = AssignPtrUintptr(f+56, AssignPtrUintptr(f+32, uintptr(0))) - if (*FILE)(unsafe.Pointer(f)).flags&uint32(4) != 0 { - *(*uint32)(unsafe.Pointer(f)) |= uint32(32) - return -1 - } - (*FILE)(unsafe.Pointer(f)).rpos = AssignPtrUintptr(f+16, (*FILE)(unsafe.Pointer(f)).buf+uintptr((*FILE)(unsafe.Pointer(f)).buf_size)) - if (*FILE)(unsafe.Pointer(f)).flags&uint32(16) != 0 { - return -1 - } - return 0 -} - -func X__toread_needs_stdio_exit(tls *TLS) { /* __toread.c:16:13: */ - X__builtin_abort(tls) //TODO- - // __stdio_exit_needed(); -} - -// This function assumes it will never be called if there is already -// data buffered for reading. - -func X__uflow(tls *TLS, f uintptr) int32 { /* __uflow.c:6:5: */ - bp := tls.Alloc(1) - defer tls.Free(1) - - // var c uint8 at bp, 1 - - if !(X__toread(tls, f) != 0) && (*struct { - f func(*TLS, uintptr, uintptr, size_t) size_t - })(unsafe.Pointer(&struct{ uintptr }{(*FILE)(unsafe.Pointer(f)).read})).f(tls, f, bp, uint64(1)) == uint64(1) { - return int32(*(*uint8)(unsafe.Pointer(bp))) - } - return -1 -} - -func Xsscanf(tls *TLS, s uintptr, fmt uintptr, va uintptr) int32 { /* sscanf.c:4:5: */ - var ret int32 - var ap va_list - _ = ap - ap = va - ret = Xvsscanf(tls, s, fmt, ap) - _ = ap - return ret -} - -type wctrans_t = uintptr /* wctype.h:20:19 */ - -func store_int(tls *TLS, dest uintptr, size int32, i uint64) { /* vfscanf.c:22:13: */ - if !(dest != 0) { - return - } - switch size { - case -2: - *(*uint8)(unsafe.Pointer(dest)) = uint8(i) - break - case -1: - *(*int16)(unsafe.Pointer(dest)) = int16(i) - break - case 0: - *(*int32)(unsafe.Pointer(dest)) = int32(i) - break - case 1: - *(*int64)(unsafe.Pointer(dest)) = int64(i) - break - case 3: - *(*int64)(unsafe.Pointer(dest)) = int64(i) - break - } -} - -func arg_n(tls *TLS, ap va_list, n uint32) uintptr { /* vfscanf.c:44:13: */ - var p uintptr - var i uint32 - var ap2 va_list - _ = ap2 - ap2 = ap - for i = n; i > uint32(1); i-- { - VaUintptr(&ap2) - } - p = VaUintptr(&ap2) - _ = ap2 - return p -} - -func Xvfscanf(tls *TLS, f uintptr, fmt uintptr, ap va_list) int32 { /* vfscanf.c:56:5: */ - bp := tls.Alloc(276) - defer tls.Free(276) - - var width int32 - var size int32 - var alloc int32 - var base int32 - var p uintptr - var c int32 - var t int32 - var s uintptr - var wcs uintptr - // var st mbstate_t at bp+268, 8 - - var dest uintptr - var invert int32 - var matches int32 - var x uint64 - var y float64 - var pos off_t - // var scanset [257]uint8 at bp, 257 - - var i size_t - var k size_t - // var wc wchar_t at bp+260, 4 - - var __need_unlock int32 - var tmp uintptr - var tmp1 uintptr - alloc = 0 - dest = uintptr(0) - matches = 0 - pos = int64(0) - __need_unlock = func() int32 { - if (*FILE)(unsafe.Pointer(f)).lock >= 0 { - return X__lockfile(tls, f) - } - return 0 - }() - - if !!(int32((*FILE)(unsafe.Pointer(f)).rpos) != 0) { - goto __1 - } - X__toread(tls, f) -__1: - ; - if !!(int32((*FILE)(unsafe.Pointer(f)).rpos) != 0) { - goto __2 - } - goto input_fail -__2: - ; - - p = fmt -__3: - if !(*(*uint8)(unsafe.Pointer(p)) != 0) { - goto __5 - } - - alloc = 0 - - if !(__isspace(tls, int32(*(*uint8)(unsafe.Pointer(p)))) != 0) { - goto __6 - } -__7: - if !(__isspace(tls, int32(*(*uint8)(unsafe.Pointer(p + 1)))) != 0) { - goto __8 - } - p++ - goto __7 -__8: - ; - X__shlim(tls, f, int64(0)) -__9: - if !(__isspace(tls, func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }()) != 0) { - goto __10 - } - goto __9 -__10: - ; - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - pos = pos + ((*FILE)(unsafe.Pointer(f)).shcnt + (int64((*FILE)(unsafe.Pointer(f)).rpos)-int64((*FILE)(unsafe.Pointer(f)).buf))/1) - goto __4 -__6: - ; - if !(int32(*(*uint8)(unsafe.Pointer(p))) != '%' || int32(*(*uint8)(unsafe.Pointer(p + 1))) == '%') { - goto __11 - } - X__shlim(tls, f, int64(0)) - if !(int32(*(*uint8)(unsafe.Pointer(p))) == '%') { - goto __12 - } - p++ -__14: - if !(__isspace(tls, AssignInt32(&c, func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }())) != 0) { - goto __15 - } - goto __14 -__15: - ; - goto __13 -__12: - c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() -__13: - ; - if !(c != int32(*(*uint8)(unsafe.Pointer(p)))) { - goto __16 - } - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - if !(c < 0) { - goto __17 - } - goto input_fail -__17: - ; - goto match_fail -__16: - ; - pos = pos + ((*FILE)(unsafe.Pointer(f)).shcnt + (int64((*FILE)(unsafe.Pointer(f)).rpos)-int64((*FILE)(unsafe.Pointer(f)).buf))/1) - goto __4 -__11: - ; - - p++ - if !(int32(*(*uint8)(unsafe.Pointer(p))) == '*') { - goto __18 - } - dest = uintptr(0) - p++ - goto __19 -__18: - if !(func() int32 { - if 0 != 0 { - return Xisdigit(tls, int32(*(*uint8)(unsafe.Pointer(p)))) - } - return Bool32(uint32(*(*uint8)(unsafe.Pointer(p)))-uint32('0') < uint32(10)) - }() != 0 && int32(*(*uint8)(unsafe.Pointer(p + 1))) == '$') { - goto __20 - } - dest = arg_n(tls, ap, uint32(int32(*(*uint8)(unsafe.Pointer(p)))-'0')) - p += uintptr(2) - goto __21 -__20: - dest = VaUintptr(&ap) -__21: - ; -__19: - ; - - width = 0 -__22: - if !(func() int32 { - if 0 != 0 { - return Xisdigit(tls, int32(*(*uint8)(unsafe.Pointer(p)))) - } - return Bool32(uint32(*(*uint8)(unsafe.Pointer(p)))-uint32('0') < uint32(10)) - }() != 0) { - goto __24 - } - width = 10*width + int32(*(*uint8)(unsafe.Pointer(p))) - '0' - goto __23 -__23: - p++ - goto __22 - goto __24 -__24: - ; - - if !(int32(*(*uint8)(unsafe.Pointer(p))) == 'm') { - goto __25 - } - wcs = uintptr(0) - s = uintptr(0) - alloc = BoolInt32(!!(dest != 0)) - p++ - goto __26 -__25: - alloc = 0 -__26: - ; - - size = 0 - switch int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&p, 1)))) { - case 'h': - goto __28 - case 'l': - goto __29 - case 'j': - goto __30 - case 'z': - goto __31 - case 't': - goto __32 - case 'L': - goto __33 - case 'd': - goto __34 - case 'i': - goto __35 - case 'o': - goto __36 - case 'u': - goto __37 - case 'x': - goto __38 - case 'a': - goto __39 - case 'e': - goto __40 - case 'f': - goto __41 - case 'g': - goto __42 - case 'A': - goto __43 - case 'E': - goto __44 - case 'F': - goto __45 - case 'G': - goto __46 - case 'X': - goto __47 - case 's': - goto __48 - case 'c': - goto __49 - case '[': - goto __50 - case 'S': - goto __51 - case 'C': - goto __52 - case 'p': - goto __53 - case 'n': - goto __54 - default: - goto __55 - } - goto __27 -__28: - if !(int32(*(*uint8)(unsafe.Pointer(p))) == 'h') { - goto __56 - } - p++ - size = -2 - goto __57 -__56: - size = -1 -__57: - ; - goto __27 -__29: - if !(int32(*(*uint8)(unsafe.Pointer(p))) == 'l') { - goto __58 - } - p++ - size = 3 - goto __59 -__58: - size = 1 -__59: - ; - goto __27 -__30: - size = 3 - goto __27 -__31: -__32: - size = 1 - goto __27 -__33: - size = 2 - goto __27 -__34: -__35: -__36: -__37: -__38: -__39: -__40: -__41: -__42: -__43: -__44: -__45: -__46: -__47: -__48: -__49: -__50: -__51: -__52: -__53: -__54: - p-- - goto __27 -__55: - goto fmt_fail -__27: - ; - - t = int32(*(*uint8)(unsafe.Pointer(p))) - - // C or S - if !(t&0x2f == 3) { - goto __60 - } - t = t | 32 - size = 1 -__60: - ; - - switch t { - case 'c': - goto __62 - case '[': - goto __63 - case 'n': - goto __64 - default: - goto __65 - } - goto __61 -__62: - if !(width < 1) { - goto __66 - } - width = 1 -__66: - ; -__63: - goto __61 -__64: - store_int(tls, dest, size, uint64(pos)) - // do not increment match count, etc! - goto __4 -__65: - X__shlim(tls, f, int64(0)) -__67: - if !(__isspace(tls, func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }()) != 0) { - goto __68 - } - goto __67 -__68: - ; - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - pos = pos + ((*FILE)(unsafe.Pointer(f)).shcnt + (int64((*FILE)(unsafe.Pointer(f)).rpos)-int64((*FILE)(unsafe.Pointer(f)).buf))/1) -__61: - ; - - X__shlim(tls, f, int64(width)) - if !(func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() < 0) { - goto __69 - } - goto input_fail -__69: - ; - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - - switch t { - case 's': - goto __71 - case 'c': - goto __72 - case '[': - goto __73 - case 'p': - goto __74 - case 'X': - goto __75 - case 'x': - goto __76 - case 'o': - goto __77 - case 'd': - goto __78 - case 'u': - goto __79 - case 'i': - goto __80 - case 'a': - goto __81 - case 'A': - goto __82 - case 'e': - goto __83 - case 'E': - goto __84 - case 'f': - goto __85 - case 'F': - goto __86 - case 'g': - goto __87 - case 'G': - goto __88 - } - goto __70 -__71: -__72: -__73: - if !(t == 'c' || t == 's') { - goto __89 - } - Xmemset(tls, bp, -1, uint64(unsafe.Sizeof([257]uint8{}))) - *(*uint8)(unsafe.Pointer(bp)) = uint8(0) - if !(t == 's') { - goto __91 - } - *(*uint8)(unsafe.Pointer(bp + 10)) = uint8(0) - *(*uint8)(unsafe.Pointer(bp + 11)) = uint8(0) - *(*uint8)(unsafe.Pointer(bp + 12)) = uint8(0) - *(*uint8)(unsafe.Pointer(bp + 13)) = uint8(0) - *(*uint8)(unsafe.Pointer(bp + 14)) = uint8(0) - *(*uint8)(unsafe.Pointer(bp + 33)) = uint8(0) -__91: - ; - goto __90 -__89: - if !(int32(*(*uint8)(unsafe.Pointer(PreIncUintptr(&p, 1)))) == '^') { - goto __92 - } - p++ - invert = 1 - goto __93 -__92: - invert = 0 -__93: - ; - Xmemset(tls, bp, invert, uint64(unsafe.Sizeof([257]uint8{}))) - *(*uint8)(unsafe.Pointer(bp)) = uint8(0) - if !(int32(*(*uint8)(unsafe.Pointer(p))) == '-') { - goto __94 - } - p++ - *(*uint8)(unsafe.Pointer(bp + 46)) = uint8(1 - invert) - goto __95 -__94: - if !(int32(*(*uint8)(unsafe.Pointer(p))) == ']') { - goto __96 - } - p++ - *(*uint8)(unsafe.Pointer(bp + 94)) = uint8(1 - invert) -__96: - ; -__95: - ; -__97: - if !(int32(*(*uint8)(unsafe.Pointer(p))) != ']') { - goto __99 - } - if !!(int32(*(*uint8)(unsafe.Pointer(p))) != 0) { - goto __100 - } - goto fmt_fail -__100: - ; - if !(int32(*(*uint8)(unsafe.Pointer(p))) == '-' && *(*uint8)(unsafe.Pointer(p + 1)) != 0 && int32(*(*uint8)(unsafe.Pointer(p + 1))) != ']') { - goto __101 - } - c = int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&p, 1) + UintptrFromInt32(-1)))) -__102: - if !(c < int32(*(*uint8)(unsafe.Pointer(p)))) { - goto __104 - } - *(*uint8)(unsafe.Pointer(bp + uintptr(1+c))) = uint8(1 - invert) - goto __103 -__103: - c++ - goto __102 - goto __104 -__104: - ; -__101: - ; - *(*uint8)(unsafe.Pointer(bp + uintptr(1+int32(*(*uint8)(unsafe.Pointer(p)))))) = uint8(1 - invert) - goto __98 -__98: - p++ - goto __97 - goto __99 -__99: - ; -__90: - ; - wcs = uintptr(0) - s = uintptr(0) - i = uint64(0) - if t == 'c' { - k = uint64(uint32(width) + 1) - } else { - k = uint64(31) - } - if !(size == 1) { - goto __105 - } - if !(alloc != 0) { - goto __107 - } - wcs = Xmalloc(tls, k*size_t(unsafe.Sizeof(wchar_t(0)))) - if !!(wcs != 0) { - goto __109 - } - goto alloc_fail -__109: - ; - goto __108 -__107: - wcs = dest -__108: - ; - *(*mbstate_t)(unsafe.Pointer(bp + 268 /* st */)) = mbstate_t{} -__110: - if !(*(*uint8)(unsafe.Pointer(bp + uintptr(AssignInt32(&c, func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }())+1))) != 0) { - goto __111 - } - switch Xmbrtowc(tls, bp+260, func() uintptr { *(*uint8)(unsafe.Pointer(bp + 264)) = uint8(c); return bp + 264 }(), uint64(1), bp+268 /* &st */) { - case Uint64FromInt32(-1): - goto __113 - case Uint64FromInt32(-2): - goto __114 - } - goto __112 -__113: - goto input_fail -__114: - goto __110 -__112: - ; - if !(wcs != 0) { - goto __115 - } - *(*wchar_t)(unsafe.Pointer(wcs + uintptr(PostIncUint64(&i, 1))*4)) = *(*wchar_t)(unsafe.Pointer(bp + 260 /* wc */)) -__115: - ; - if !(alloc != 0 && i == k) { - goto __116 - } - k = k + (k + uint64(1)) - tmp = Xrealloc(tls, wcs, k*size_t(unsafe.Sizeof(wchar_t(0)))) - if !!(tmp != 0) { - goto __117 - } - goto alloc_fail -__117: - ; - wcs = tmp -__116: - ; - goto __110 -__111: - ; - if !!(Xmbsinit(tls, bp+268) != 0) { - goto __118 - } - goto input_fail -__118: - ; - goto __106 -__105: - if !(alloc != 0) { - goto __119 - } - s = Xmalloc(tls, k) - if !!(s != 0) { - goto __121 - } - goto alloc_fail -__121: - ; -__122: - if !(*(*uint8)(unsafe.Pointer(bp + uintptr(AssignInt32(&c, func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }())+1))) != 0) { - goto __123 - } - *(*uint8)(unsafe.Pointer(s + uintptr(PostIncUint64(&i, 1)))) = uint8(c) - if !(i == k) { - goto __124 - } - k = k + (k + uint64(1)) - tmp1 = Xrealloc(tls, s, k) - if !!(tmp1 != 0) { - goto __125 - } - goto alloc_fail -__125: - ; - s = tmp1 -__124: - ; - goto __122 -__123: - ; - goto __120 -__119: - if !(AssignUintptr(&s, dest) != 0) { - goto __126 - } -__128: - if !(*(*uint8)(unsafe.Pointer(bp + uintptr(AssignInt32(&c, func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }())+1))) != 0) { - goto __129 - } - *(*uint8)(unsafe.Pointer(s + uintptr(PostIncUint64(&i, 1)))) = uint8(c) - goto __128 -__129: - ; - goto __127 -__126: -__130: - if !(*(*uint8)(unsafe.Pointer(bp + uintptr(AssignInt32(&c, func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }())+1))) != 0) { - goto __131 - } - goto __130 -__131: - ; -__127: - ; -__120: - ; -__106: - ; - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - if !!((*FILE)(unsafe.Pointer(f)).shcnt+(int64((*FILE)(unsafe.Pointer(f)).rpos)-int64((*FILE)(unsafe.Pointer(f)).buf))/1 != 0) { - goto __132 - } - goto match_fail -__132: - ; - if !(t == 'c' && (*FILE)(unsafe.Pointer(f)).shcnt+(int64((*FILE)(unsafe.Pointer(f)).rpos)-int64((*FILE)(unsafe.Pointer(f)).buf))/1 != off_t(width)) { - goto __133 - } - goto match_fail -__133: - ; - if !(alloc != 0) { - goto __134 - } - if !(size == 1) { - goto __135 - } - *(*uintptr)(unsafe.Pointer(dest)) = wcs - goto __136 -__135: - *(*uintptr)(unsafe.Pointer(dest)) = s -__136: - ; -__134: - ; - if !(t != 'c') { - goto __137 - } - if !(wcs != 0) { - goto __138 - } - *(*wchar_t)(unsafe.Pointer(wcs + uintptr(i)*4)) = 0 -__138: - ; - if !(s != 0) { - goto __139 - } - *(*uint8)(unsafe.Pointer(s + uintptr(i))) = uint8(0) -__139: - ; -__137: - ; - goto __70 -__74: -__75: -__76: - base = 16 - goto int_common -__77: - base = 8 - goto int_common -__78: -__79: - base = 10 - goto int_common -__80: - base = 0 -int_common: - x = X__intscan(tls, f, uint32(base), 0, 2*uint64(0x7fffffffffffffff)+uint64(1)) - if !!((*FILE)(unsafe.Pointer(f)).shcnt+(int64((*FILE)(unsafe.Pointer(f)).rpos)-int64((*FILE)(unsafe.Pointer(f)).buf))/1 != 0) { - goto __140 - } - goto match_fail -__140: - ; - if !(t == 'p' && dest != 0) { - goto __141 - } - *(*uintptr)(unsafe.Pointer(dest)) = uintptr(uintptr_t(x)) - goto __142 -__141: - store_int(tls, dest, size, x) -__142: - ; - goto __70 -__81: -__82: -__83: -__84: -__85: -__86: -__87: -__88: - y = X__floatscan(tls, f, size, 0) - if !!((*FILE)(unsafe.Pointer(f)).shcnt+(int64((*FILE)(unsafe.Pointer(f)).rpos)-int64((*FILE)(unsafe.Pointer(f)).buf))/1 != 0) { - goto __143 - } - goto match_fail -__143: - ; - if !(dest != 0) { - goto __144 - } - switch size { - case 0: - goto __146 - case 1: - goto __147 - case 2: - goto __148 - } - goto __145 -__146: - *(*float32)(unsafe.Pointer(dest)) = float32(y) - goto __145 -__147: - *(*float64)(unsafe.Pointer(dest)) = y - goto __145 -__148: - *(*float64)(unsafe.Pointer(dest)) = y - goto __145 -__145: - ; -__144: - ; - goto __70 -__70: - ; - - pos = pos + ((*FILE)(unsafe.Pointer(f)).shcnt + (int64((*FILE)(unsafe.Pointer(f)).rpos)-int64((*FILE)(unsafe.Pointer(f)).buf))/1) - if !(dest != 0) { - goto __149 - } - matches++ -__149: - ; - goto __4 -__4: - p++ - goto __3 - goto __5 -__5: - ; - if !(0 != 0) { - goto __150 - } -fmt_fail: -alloc_fail: -input_fail: - if !!(matches != 0) { - goto __151 - } - matches-- -__151: - ; -match_fail: - if !(alloc != 0) { - goto __152 - } - Xfree(tls, s) - Xfree(tls, wcs) -__152: - ; -__150: - ; -__153: - if !(__need_unlock != 0) { - goto __156 - } - X__unlockfile(tls, f) -__156: - ; - goto __154 -__154: - if 0 != 0 { - goto __153 - } - goto __155 -__155: - ; - return matches -} - -func string_read(tls *TLS, f uintptr, buf uintptr, len size_t) size_t { /* vsscanf.c:4:15: */ - var src uintptr = (*FILE)(unsafe.Pointer(f)).cookie - var k size_t = len + uint64(256) - var end uintptr = Xmemchr(tls, src, 0, k) - if end != 0 { - k = size_t((int64(end) - int64(src)) / 1) - } - if k < len { - len = k - } - Xmemcpy(tls, buf, src, len) - (*FILE)(unsafe.Pointer(f)).rpos = src + uintptr(len) - (*FILE)(unsafe.Pointer(f)).rend = src + uintptr(k) - (*FILE)(unsafe.Pointer(f)).cookie = src + uintptr(k) - return len -} - -func Xvsscanf(tls *TLS, s uintptr, fmt uintptr, ap va_list) int32 { /* vsscanf.c:18:5: */ - bp := tls.Alloc(232) - defer tls.Free(232) - - *(*FILE)(unsafe.Pointer(bp /* f */)) = FILE{read: *(*uintptr)(unsafe.Pointer(&struct { - f func(*TLS, uintptr, uintptr, size_t) size_t - }{string_read})), buf: s, lock: -1, cookie: s} - return Xvfscanf(tls, bp, fmt, ap) -} - -func Xbsearch(tls *TLS, key uintptr, base uintptr, nel size_t, width size_t, cmp uintptr) uintptr { /* bsearch.c:3:6: */ - var try uintptr - var sign int32 - for nel > uint64(0) { - try = base + uintptr(width*(nel/uint64(2))) - sign = (*struct { - f func(*TLS, uintptr, uintptr) int32 - })(unsafe.Pointer(&struct{ uintptr }{cmp})).f(tls, key, try) - if sign < 0 { - nel = nel / uint64(2) - } else if sign > 0 { - base = try + uintptr(width) - nel = nel - (nel/uint64(2) + uint64(1)) - } else { - return try - } - } - return uintptr(0) -} - -func strtox(tls *TLS, s uintptr, p uintptr, prec int32) float64 { /* strtod.c:6:20: */ - bp := tls.Alloc(232) - defer tls.Free(232) - - // var f FILE at bp, 232 - - (*FILE)(unsafe.Pointer(bp)).buf = AssignPtrUintptr(bp+8, s) - (*FILE)(unsafe.Pointer(bp)).rend = UintptrFromInt32(-1) - X__shlim(tls, bp, int64(0)) - var y float64 = X__floatscan(tls, bp, prec, 1) - var cnt off_t = (*FILE)(unsafe.Pointer(bp)).shcnt + (int64((*FILE)(unsafe.Pointer(bp)).rpos)-int64((*FILE)(unsafe.Pointer(bp)).buf))/1 - if p != 0 { - *(*uintptr)(unsafe.Pointer(p)) = func() uintptr { - if cnt != 0 { - return s + uintptr(cnt) - } - return s - }() - } - return y -} - -func Xstrtof(tls *TLS, s uintptr, p uintptr) float32 { /* strtod.c:17:7: */ - return float32(strtox(tls, s, p, 0)) -} - -func Xstrtod(tls *TLS, s uintptr, p uintptr) float64 { /* strtod.c:22:8: */ - return strtox(tls, s, p, 1) -} - -func Xstrtold(tls *TLS, s uintptr, p uintptr) float64 { /* strtod.c:27:13: */ - return strtox(tls, s, p, 2) -} - -func strtox1(tls *TLS, s uintptr, p uintptr, base int32, lim uint64) uint64 { /* strtol.c:8:27: */ - bp := tls.Alloc(232) - defer tls.Free(232) - - // var f FILE at bp, 232 - - (*FILE)(unsafe.Pointer(bp)).buf = AssignPtrUintptr(bp+8, s) - (*FILE)(unsafe.Pointer(bp)).rend = UintptrFromInt32(-1) - X__shlim(tls, bp, int64(0)) - var y uint64 = X__intscan(tls, bp, uint32(base), 1, lim) - if p != 0 { - var cnt size_t = size_t((*FILE)(unsafe.Pointer(bp)).shcnt + (int64((*FILE)(unsafe.Pointer(bp)).rpos)-int64((*FILE)(unsafe.Pointer(bp)).buf))/1) - *(*uintptr)(unsafe.Pointer(p)) = s + uintptr(cnt) - } - return y -} - -func Xstrtoull(tls *TLS, s uintptr, p uintptr, base int32) uint64 { /* strtol.c:21:20: */ - return strtox1(tls, s, p, base, 2*uint64(0x7fffffffffffffff)+uint64(1)) -} - -func Xstrtoll(tls *TLS, s uintptr, p uintptr, base int32) int64 { /* strtol.c:26:11: */ - return int64(strtox1(tls, s, p, base, Uint64FromInt64(-0x7fffffffffffffff-int64(1)))) -} - -func Xstrtoul(tls *TLS, s uintptr, p uintptr, base int32) uint64 { /* strtol.c:31:15: */ - return uint64(strtox1(tls, s, p, base, 2*uint64(0x7fffffffffffffff)+uint64(1))) -} - -func Xstrtol(tls *TLS, s uintptr, p uintptr, base int32) int64 { /* strtol.c:36:6: */ - return int64(strtox1(tls, s, p, base, 0+Uint64FromInt64(Int64(-Int64(0x7fffffffffffffff))-Int64FromInt32(1)))) -} - -func Xstrtoimax(tls *TLS, s uintptr, p uintptr, base int32) intmax_t { /* strtol.c:41:10: */ - return intmax_t(Xstrtoll(tls, s, p, base)) -} - -func Xstrtoumax(tls *TLS, s uintptr, p uintptr, base int32) uintmax_t { /* strtol.c:46:11: */ - return uintmax_t(Xstrtoull(tls, s, p, base)) -} - -func Xstrdup(tls *TLS, s uintptr) uintptr { /* strdup.c:4:6: */ - var l size_t = Xstrlen(tls, s) - var d uintptr = Xmalloc(tls, l+uint64(1)) - if !(d != 0) { - return uintptr(0) - } - return Xmemcpy(tls, d, s, l+uint64(1)) -} - -func Xstrlcat(tls *TLS, d uintptr, s uintptr, n size_t) size_t { /* strlcat.c:4:8: */ - var l size_t = Xstrnlen(tls, d, n) - if l == n { - return l + Xstrlen(tls, s) - } - return l + Xstrlcpy(tls, d+uintptr(l), s, n-l) -} - -// Support signed or unsigned plain-char - -// Implementation choices... - -// Arbitrary numbers... - -// POSIX/SUS requirements follow. These numbers come directly -// from SUS and have nothing to do with the host system. - -func Xstrlcpy(tls *TLS, d uintptr, s uintptr, n size_t) size_t { /* strlcpy.c:11:8: */ - var d0 uintptr - var wd uintptr - var ws uintptr - d0 = d - - if !!(int32(PostDecUint64(&n, 1)) != 0) { - goto __1 - } - goto finish -__1: - ; - if !(uintptr_t(s)&(uint64(unsafe.Sizeof(size_t(0)))-uint64(1)) == uintptr_t(d)&(uint64(unsafe.Sizeof(size_t(0)))-uint64(1))) { - goto __2 - } -__3: - if !(uintptr_t(s)&(uint64(unsafe.Sizeof(size_t(0)))-uint64(1)) != 0 && n != 0 && AssignPtrUint8(d, *(*uint8)(unsafe.Pointer(s))) != 0) { - goto __5 - } - goto __4 -__4: - n-- - s++ - d++ - goto __3 - goto __5 -__5: - ; - if !(n != 0 && *(*uint8)(unsafe.Pointer(s)) != 0) { - goto __6 - } - wd = d - ws = s -__7: - if !(n >= size_t(unsafe.Sizeof(size_t(0))) && !((*(*uint64)(unsafe.Pointer(ws))-Uint64(Uint64FromInt32(-1))/uint64(255)) & ^*(*uint64)(unsafe.Pointer(ws)) & (Uint64(Uint64FromInt32(-1))/uint64(255)*uint64(255/2+1)) != 0)) { - goto __9 - } - *(*size_t)(unsafe.Pointer(wd)) = *(*uint64)(unsafe.Pointer(ws)) - goto __8 -__8: - n = n - size_t(unsafe.Sizeof(size_t(0))) - ws += 8 - wd += 8 - goto __7 - goto __9 -__9: - ; - d = wd - s = ws -__6: - ; -__2: - ; -__10: - if !(n != 0 && AssignPtrUint8(d, *(*uint8)(unsafe.Pointer(s))) != 0) { - goto __12 - } - goto __11 -__11: - n-- - s++ - d++ - goto __10 - goto __12 -__12: - ; - *(*uint8)(unsafe.Pointer(d)) = uint8(0) -finish: - return size_t((int64(d)-int64(d0))/1) + Xstrlen(tls, s) -} - -func Xstrncasecmp(tls *TLS, _l uintptr, _r uintptr, n size_t) int32 { /* strncasecmp.c:4:5: */ - var l uintptr = _l - var r uintptr = _r - if !(int32(PostDecUint64(&n, 1)) != 0) { - return 0 - } -__1: - if !(*(*uint8)(unsafe.Pointer(l)) != 0 && *(*uint8)(unsafe.Pointer(r)) != 0 && n != 0 && (int32(*(*uint8)(unsafe.Pointer(l))) == int32(*(*uint8)(unsafe.Pointer(r))) || Xtolower(tls, int32(*(*uint8)(unsafe.Pointer(l)))) == Xtolower(tls, int32(*(*uint8)(unsafe.Pointer(r)))))) { - goto __3 - } - goto __2 -__2: - l++ - r++ - n-- - goto __1 - goto __3 -__3: - ; - return Xtolower(tls, int32(*(*uint8)(unsafe.Pointer(l)))) - Xtolower(tls, int32(*(*uint8)(unsafe.Pointer(r)))) -} - -func X__strncasecmp_l(tls *TLS, l uintptr, r uintptr, n size_t, loc locale_t) int32 { /* strncasecmp.c:12:5: */ - return Xstrncasecmp(tls, l, r, n) -} - -func Xstrncat(tls *TLS, d uintptr, s uintptr, n size_t) uintptr { /* strncat.c:3:6: */ - var a uintptr = d - d += uintptr(Xstrlen(tls, d)) - for n != 0 && *(*uint8)(unsafe.Pointer(s)) != 0 { - n-- - *(*uint8)(unsafe.Pointer(PostIncUintptr(&d, 1))) = *(*uint8)(unsafe.Pointer(PostIncUintptr(&s, 1))) - } - *(*uint8)(unsafe.Pointer(PostIncUintptr(&d, 1))) = uint8(0) - return a -} - -func Xstrnlen(tls *TLS, s uintptr, n size_t) size_t { /* strnlen.c:3:8: */ - var p uintptr = Xmemchr(tls, s, 0, n) - if p != 0 { - return uint64((int64(p) - int64(s)) / 1) - } - return n -} - -func Xstrspn(tls *TLS, s uintptr, c uintptr) size_t { /* strspn.c:6:8: */ - bp := tls.Alloc(32) - defer tls.Free(32) - - var a uintptr = s - *(*[4]size_t)(unsafe.Pointer(bp /* byteset */)) = [4]size_t{0: uint64(0)} - - if !(int32(*(*uint8)(unsafe.Pointer(c))) != 0) { - return uint64(0) - } - if !(int32(*(*uint8)(unsafe.Pointer(c + 1))) != 0) { - for ; int32(*(*uint8)(unsafe.Pointer(s))) == int32(*(*uint8)(unsafe.Pointer(c))); s++ { - } - return size_t((int64(s) - int64(a)) / 1) - } - - for ; *(*uint8)(unsafe.Pointer(c)) != 0 && AssignOrPtrUint64(bp+uintptr(size_t(*(*uint8)(unsafe.Pointer(c)))/(uint64(8)*uint64(unsafe.Sizeof(size_t(0)))))*8, size_t(uint64(1))<<(size_t(*(*uint8)(unsafe.Pointer(c)))%(uint64(8)*uint64(unsafe.Sizeof(size_t(0)))))) != 0; c++ { - } - for ; *(*uint8)(unsafe.Pointer(s)) != 0 && *(*size_t)(unsafe.Pointer(bp + uintptr(size_t(*(*uint8)(unsafe.Pointer(s)))/(uint64(8)*uint64(unsafe.Sizeof(size_t(0)))))*8))&(size_t(uint64(1))<<(size_t(*(*uint8)(unsafe.Pointer(s)))%(uint64(8)*uint64(unsafe.Sizeof(size_t(0)))))) != 0; s++ { - } - return size_t((int64(s) - int64(a)) / 1) -} - -func Xstrtok(tls *TLS, s uintptr, sep uintptr) uintptr { /* strtok.c:3:6: */ - if !(s != 0) && !(int32(AssignUintptr(&s, _sp)) != 0) { - return uintptr(0) - } - s += uintptr(Xstrspn(tls, s, sep)) - if !(int32(*(*uint8)(unsafe.Pointer(s))) != 0) { - return AssignPtrUintptr(uintptr(unsafe.Pointer(&_sp)), uintptr(0)) - } - _sp = s + uintptr(Xstrcspn(tls, s, sep)) - if *(*uint8)(unsafe.Pointer(_sp)) != 0 { - *(*uint8)(unsafe.Pointer(PostIncUintptr(&_sp, 1))) = uint8(0) - } else { - _sp = uintptr(0) - } - return s -} - -var _sp uintptr /* strtok.c:5:14: */ - -func X__ccgo_pthreadAttrGetDetachState(tls *TLS, a uintptr) int32 { /* pthread_attr_get.c:3:5: */ - return *(*int32)(unsafe.Pointer(a + 6*4)) -} - -func Xpthread_attr_getdetachstate(tls *TLS, a uintptr, state uintptr) int32 { /* pthread_attr_get.c:7:5: */ - *(*int32)(unsafe.Pointer(state)) = *(*int32)(unsafe.Pointer(a + 6*4)) - return 0 -} - -// -// int pthread_attr_getguardsize(const pthread_attr_t *restrict a, size_t *restrict size) -// { -// *size = a->_a_guardsize; -// return 0; -// } -// -// int pthread_attr_getinheritsched(const pthread_attr_t *restrict a, int *restrict inherit) -// { -// *inherit = a->_a_sched; -// return 0; -// } -// -// int pthread_attr_getschedparam(const pthread_attr_t *restrict a, struct sched_param *restrict param) -// { -// param->sched_priority = a->_a_prio; -// return 0; -// } -// -// int pthread_attr_getschedpolicy(const pthread_attr_t *restrict a, int *restrict policy) -// { -// *policy = a->_a_policy; -// return 0; -// } -// -// int pthread_attr_getscope(const pthread_attr_t *restrict a, int *restrict scope) -// { -// *scope = PTHREAD_SCOPE_SYSTEM; -// return 0; -// } -// -// int pthread_attr_getstack(const pthread_attr_t *restrict a, void **restrict addr, size_t *restrict size) -// { -// if (!a->_a_stackaddr) -// return EINVAL; -// *size = a->_a_stacksize; -// *addr = (void *)(a->_a_stackaddr - *size); -// return 0; -// } -// -// int pthread_attr_getstacksize(const pthread_attr_t *restrict a, size_t *restrict size) -// { -// *size = a->_a_stacksize; -// return 0; -// } -// -// int pthread_barrierattr_getpshared(const pthread_barrierattr_t *restrict a, int *restrict pshared) -// { -// *pshared = !!a->__attr; -// return 0; -// } -// -// int pthread_condattr_getclock(const pthread_condattr_t *restrict a, clockid_t *restrict clk) -// { -// *clk = a->__attr & 0x7fffffff; -// return 0; -// } -// -// int pthread_condattr_getpshared(const pthread_condattr_t *restrict a, int *restrict pshared) -// { -// *pshared = a->__attr>>31; -// return 0; -// } -// -// int pthread_mutexattr_getprotocol(const pthread_mutexattr_t *restrict a, int *restrict protocol) -// { -// *protocol = PTHREAD_PRIO_NONE; -// return 0; -// } -// int pthread_mutexattr_getpshared(const pthread_mutexattr_t *restrict a, int *restrict pshared) -// { -// *pshared = a->__attr / 128U % 2; -// return 0; -// } -// -// int pthread_mutexattr_getrobust(const pthread_mutexattr_t *restrict a, int *restrict robust) -// { -// *robust = a->__attr / 4U % 2; -// return 0; -// } - -func X__ccgo_pthreadMutexattrGettype(tls *TLS, a uintptr) int32 { /* pthread_attr_get.c:93:5: */ - return int32((*pthread_mutexattr_t)(unsafe.Pointer(a)).__attr & uint32(3)) -} - -// int pthread_mutexattr_gettype(const pthread_mutexattr_t *restrict a, int *restrict type) -// { -// *type = a->__attr & 3; -// return 0; -// } -// -// int pthread_rwlockattr_getpshared(const pthread_rwlockattr_t *restrict a, int *restrict pshared) -// { -// *pshared = a->__attr[0]; -// return 0; -// } - -func Xpthread_attr_setdetachstate(tls *TLS, a uintptr, state int32) int32 { /* pthread_attr_setdetachstate.c:3:5: */ - if uint32(state) > 1 { - return 22 - } - *(*int32)(unsafe.Pointer(a + 6*4)) = state - return 0 -} - -func X__ccgo_getMutexType(tls *TLS, m uintptr) int32 { /* pthread_mutex_lock.c:3:5: */ - return *(*int32)(unsafe.Pointer(m)) & 15 -} - -// int __pthread_mutex_lock(pthread_mutex_t *m) -// { -// if ((m->_m_type&15) == PTHREAD_MUTEX_NORMAL -// && !a_cas(&m->_m_lock, 0, EBUSY)) -// return 0; -// -// return __pthread_mutex_timedlock(m, 0); -// } -// -// weak_alias(__pthread_mutex_lock, pthread_mutex_lock); - -func Xpthread_mutexattr_destroy(tls *TLS, a uintptr) int32 { /* pthread_mutexattr_destroy.c:3:5: */ - return 0 -} - -func Xpthread_mutexattr_init(tls *TLS, a uintptr) int32 { /* pthread_mutexattr_init.c:3:5: */ - *(*pthread_mutexattr_t)(unsafe.Pointer(a)) = pthread_mutexattr_t{} - return 0 -} - -func Xpthread_mutexattr_settype(tls *TLS, a uintptr, type1 int32) int32 { /* pthread_mutexattr_settype.c:3:5: */ - if uint32(type1) > uint32(2) { - return 22 - } - (*pthread_mutexattr_t)(unsafe.Pointer(a)).__attr = (*pthread_mutexattr_t)(unsafe.Pointer(a)).__attr&Uint32FromInt32(CplInt32(3)) | uint32(type1) - return 0 -} - -func init() { - *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&ptable)) + 0)) = uintptr(unsafe.Pointer(&table)) + uintptr(128)*2 // __ctype_b_loc.c:36:45: -} - -var ts1 = "infinity\x00nan\x00\x00\x00\x01\x02\x04\a\x03\x06\x05\x00.\x00%d.%d.%d.%d.in-addr.arpa\x00ip6.arpa\x000123456789abcdef\x00/etc/hosts\x00rb\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\xff\x00%d.%d.%d.%d\x00%x:%x:%x:%x:%x:%x:%x:%x\x00%x:%x:%x:%x:%x:%x:%d.%d.%d.%d\x00:0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\xff\x00\x00\x00\x00 \x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00 \x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xfc\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" -var ts = (*reflect.StringHeader)(unsafe.Pointer(&ts1)).Data diff --git a/vendor/modernc.org/libc/musl_linux_s390x.go b/vendor/modernc.org/libc/musl_linux_s390x.go deleted file mode 100644 index fd790654e..000000000 --- a/vendor/modernc.org/libc/musl_linux_s390x.go +++ /dev/null @@ -1,6968 +0,0 @@ -// Code generated by 'ccgo -export-externs X -hide __syscall0,__syscall1,__syscall2,__syscall3,__syscall4,__syscall5,__syscall6 -nostdinc -nostdlib -o ../musl_linux_s390x.go -pkgname libc -static-locals-prefix _s -Iarch/s390x -Iarch/generic -Iobj/src/internal -Isrc/include -Isrc/internal -Iobj/include -Iinclude copyright.c src/ctype/__ctype_b_loc.c src/ctype/isalnum.c src/ctype/isalpha.c src/ctype/isdigit.c src/ctype/islower.c src/ctype/isprint.c src/ctype/isupper.c src/ctype/isxdigit.c src/dirent/closedir.c src/dirent/opendir.c src/dirent/readdir.c src/internal/floatscan.c src/internal/intscan.c src/internal/shgetc.c src/locale/localeconv.c src/math/__fpclassify.c src/math/__fpclassifyf.c src/math/__fpclassifyl.c src/math/copysignl.c src/math/fabsl.c src/math/fmodl.c src/math/nanf.c src/math/rint.c src/math/scalbn.c src/math/scalbnl.c src/multibyte/internal.c src/multibyte/mbrtowc.c src/multibyte/mbsinit.c src/network/freeaddrinfo.c src/network/getaddrinfo.c src/network/gethostbyaddr.c src/network/gethostbyaddr_r.c src/network/gethostbyname.c src/network/gethostbyname2.c src/network/gethostbyname2_r.c src/network/gethostbyname_r.c src/network/getnameinfo.c src/network/h_errno.c src/network/inet_aton.c src/network/inet_ntop.c src/network/inet_pton.c src/network/lookup_ipliteral.c src/network/lookup_name.c src/network/lookup_serv.c src/prng/rand_r.c src/stdio/__lockfile.c src/stdio/__toread.c src/stdio/__uflow.c src/stdio/sscanf.c src/stdio/vfscanf.c src/stdio/vsscanf.c src/stdlib/bsearch.c src/stdlib/strtod.c src/stdlib/strtol.c src/string/strdup.c src/string/strlcat.c src/string/strlcpy.c src/string/strncasecmp.c src/string/strncat.c src/string/strnlen.c src/string/strspn.c src/string/strtok.c src/thread/pthread_attr_get.c src/thread/pthread_attr_setdetachstate.c src/thread/pthread_mutex_lock.c src/thread/pthread_mutexattr_destroy.c src/thread/pthread_mutexattr_init.c src/thread/pthread_mutexattr_settype.c', DO NOT EDIT. - -package libc - -import ( - "math" - "reflect" - "sync/atomic" - "unsafe" -) - -var _ = math.Pi -var _ reflect.Kind -var _ atomic.Value -var _ unsafe.Pointer - -// musl as a whole is licensed under the following standard MIT license: -// -// ---------------------------------------------------------------------- -// Copyright © 2005-2020 Rich Felker, et al. -// -// Permission is hereby granted, free of charge, to any person obtaining -// a copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to -// permit persons to whom the Software is furnished to do so, subject to -// the following conditions: -// -// The above copyright notice and this permission notice shall be -// included in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -// SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -// ---------------------------------------------------------------------- -// -// Authors/contributors include: -// -// A. Wilcox -// Ada Worcester -// Alex Dowad -// Alex Suykov -// Alexander Monakov -// Andre McCurdy -// Andrew Kelley -// Anthony G. Basile -// Aric Belsito -// Arvid Picciani -// Bartosz Brachaczek -// Benjamin Peterson -// Bobby Bingham -// Boris Brezillon -// Brent Cook -// Chris Spiegel -// Clément Vasseur -// Daniel Micay -// Daniel Sabogal -// Daurnimator -// David Carlier -// David Edelsohn -// Denys Vlasenko -// Dmitry Ivanov -// Dmitry V. Levin -// Drew DeVault -// Emil Renner Berthing -// Fangrui Song -// Felix Fietkau -// Felix Janda -// Gianluca Anzolin -// Hauke Mehrtens -// He X -// Hiltjo Posthuma -// Isaac Dunham -// Jaydeep Patil -// Jens Gustedt -// Jeremy Huntwork -// Jo-Philipp Wich -// Joakim Sindholt -// John Spencer -// Julien Ramseier -// Justin Cormack -// Kaarle Ritvanen -// Khem Raj -// Kylie McClain -// Leah Neukirchen -// Luca Barbato -// Luka Perkov -// M Farkas-Dyck (Strake) -// Mahesh Bodapati -// Markus Wichmann -// Masanori Ogino -// Michael Clark -// Michael Forney -// Mikhail Kremnyov -// Natanael Copa -// Nicholas J. Kain -// orc -// Pascal Cuoq -// Patrick Oppenlander -// Petr Hosek -// Petr Skocik -// Pierre Carrier -// Reini Urban -// Rich Felker -// Richard Pennington -// Ryan Fairfax -// Samuel Holland -// Segev Finer -// Shiz -// sin -// Solar Designer -// Stefan Kristiansson -// Stefan O'Rear -// Szabolcs Nagy -// Timo Teräs -// Trutz Behn -// Valentin Ochs -// Will Dietz -// William Haddon -// William Pitcock -// -// Portions of this software are derived from third-party works licensed -// under terms compatible with the above MIT license: -// -// The TRE regular expression implementation (src/regex/reg* and -// src/regex/tre*) is Copyright © 2001-2008 Ville Laurikari and licensed -// under a 2-clause BSD license (license text in the source files). The -// included version has been heavily modified by Rich Felker in 2012, in -// the interests of size, simplicity, and namespace cleanliness. -// -// Much of the math library code (src/math/* and src/complex/*) is -// Copyright © 1993,2004 Sun Microsystems or -// Copyright © 2003-2011 David Schultz or -// Copyright © 2003-2009 Steven G. Kargl or -// Copyright © 2003-2009 Bruce D. Evans or -// Copyright © 2008 Stephen L. Moshier or -// Copyright © 2017-2018 Arm Limited -// and labelled as such in comments in the individual source files. All -// have been licensed under extremely permissive terms. -// -// The ARM memcpy code (src/string/arm/memcpy.S) is Copyright © 2008 -// The Android Open Source Project and is licensed under a two-clause BSD -// license. It was taken from Bionic libc, used on Android. -// -// The AArch64 memcpy and memset code (src/string/aarch64/*) are -// Copyright © 1999-2019, Arm Limited. -// -// The implementation of DES for crypt (src/crypt/crypt_des.c) is -// Copyright © 1994 David Burren. It is licensed under a BSD license. -// -// The implementation of blowfish crypt (src/crypt/crypt_blowfish.c) was -// originally written by Solar Designer and placed into the public -// domain. The code also comes with a fallback permissive license for use -// in jurisdictions that may not recognize the public domain. -// -// The smoothsort implementation (src/stdlib/qsort.c) is Copyright © 2011 -// Valentin Ochs and is licensed under an MIT-style license. -// -// The x86_64 port was written by Nicholas J. Kain and is licensed under -// the standard MIT terms. -// -// The mips and microblaze ports were originally written by Richard -// Pennington for use in the ellcc project. The original code was adapted -// by Rich Felker for build system and code conventions during upstream -// integration. It is licensed under the standard MIT terms. -// -// The mips64 port was contributed by Imagination Technologies and is -// licensed under the standard MIT terms. -// -// The powerpc port was also originally written by Richard Pennington, -// and later supplemented and integrated by John Spencer. It is licensed -// under the standard MIT terms. -// -// All other files which have no copyright comments are original works -// produced specifically for use as part of this library, written either -// by Rich Felker, the main author of the library, or by one or more -// contibutors listed above. Details on authorship of individual files -// can be found in the git version control history of the project. The -// omission of copyright and license comments in each file is in the -// interest of source tree size. -// -// In addition, permission is hereby granted for all public header files -// (include/* and arch/*/bits/*) and crt files intended to be linked into -// applications (crt/*, ldso/dlstart.c, and arch/*/crt_arch.h) to omit -// the copyright notice and permission notice otherwise required by the -// license, and to use these files without any requirement of -// attribution. These files include substantial contributions from: -// -// Bobby Bingham -// John Spencer -// Nicholas J. Kain -// Rich Felker -// Richard Pennington -// Stefan Kristiansson -// Szabolcs Nagy -// -// all of whom have explicitly granted such permission. -// -// This file previously contained text expressing a belief that most of -// the files covered by the above exception were sufficiently trivial not -// to be subject to copyright, resulting in confusion over whether it -// negated the permissions granted in the license. In the spirit of -// permissive licensing, and of not having licensing issues being an -// obstacle to adoption, that text has been removed. -const ( /* copyright.c:194:1: */ - __musl__copyright__ = 0 -) - -const ( /* nameser.h:117:1: */ - ns_uop_delete = 0 - ns_uop_add = 1 - ns_uop_max = 2 -) - -const ( /* nameser.h:147:1: */ - ns_t_invalid = 0 - ns_t_a = 1 - ns_t_ns = 2 - ns_t_md = 3 - ns_t_mf = 4 - ns_t_cname = 5 - ns_t_soa = 6 - ns_t_mb = 7 - ns_t_mg = 8 - ns_t_mr = 9 - ns_t_null = 10 - ns_t_wks = 11 - ns_t_ptr = 12 - ns_t_hinfo = 13 - ns_t_minfo = 14 - ns_t_mx = 15 - ns_t_txt = 16 - ns_t_rp = 17 - ns_t_afsdb = 18 - ns_t_x25 = 19 - ns_t_isdn = 20 - ns_t_rt = 21 - ns_t_nsap = 22 - ns_t_nsap_ptr = 23 - ns_t_sig = 24 - ns_t_key = 25 - ns_t_px = 26 - ns_t_gpos = 27 - ns_t_aaaa = 28 - ns_t_loc = 29 - ns_t_nxt = 30 - ns_t_eid = 31 - ns_t_nimloc = 32 - ns_t_srv = 33 - ns_t_atma = 34 - ns_t_naptr = 35 - ns_t_kx = 36 - ns_t_cert = 37 - ns_t_a6 = 38 - ns_t_dname = 39 - ns_t_sink = 40 - ns_t_opt = 41 - ns_t_apl = 42 - ns_t_tkey = 249 - ns_t_tsig = 250 - ns_t_ixfr = 251 - ns_t_axfr = 252 - ns_t_mailb = 253 - ns_t_maila = 254 - ns_t_any = 255 - ns_t_zxfr = 256 - ns_t_max = 65536 -) - -const ( /* nameser.h:210:1: */ - ns_c_invalid = 0 - ns_c_in = 1 - ns_c_2 = 2 - ns_c_chaos = 3 - ns_c_hs = 4 - ns_c_none = 254 - ns_c_any = 255 - ns_c_max = 65536 -) - -const ( /* nameser.h:221:1: */ - ns_kt_rsa = 1 - ns_kt_dh = 2 - ns_kt_dsa = 3 - ns_kt_private = 254 -) - -const ( /* nameser.h:228:1: */ - cert_t_pkix = 1 - cert_t_spki = 2 - cert_t_pgp = 3 - cert_t_url = 253 - cert_t_oid = 254 -) - -const ( /* nameser.h:28:1: */ - ns_s_qd = 0 - ns_s_zn = 0 - ns_s_an = 1 - ns_s_pr = 1 - ns_s_ns = 2 - ns_s_ud = 2 - ns_s_ar = 3 - ns_s_max = 4 -) - -const ( /* nameser.h:75:1: */ - ns_f_qr = 0 - ns_f_opcode = 1 - ns_f_aa = 2 - ns_f_tc = 3 - ns_f_rd = 4 - ns_f_ra = 5 - ns_f_z = 6 - ns_f_ad = 7 - ns_f_cd = 8 - ns_f_rcode = 9 - ns_f_max = 10 -) - -const ( /* nameser.h:89:1: */ - ns_o_query = 0 - ns_o_iquery = 1 - ns_o_status = 2 - ns_o_notify = 4 - ns_o_update = 5 - ns_o_max = 6 -) - -const ( /* nameser.h:98:1: */ - ns_r_noerror = 0 - ns_r_formerr = 1 - ns_r_servfail = 2 - ns_r_nxdomain = 3 - ns_r_notimpl = 4 - ns_r_refused = 5 - ns_r_yxdomain = 6 - ns_r_yxrrset = 7 - ns_r_nxrrset = 8 - ns_r_notauth = 9 - ns_r_notzone = 10 - ns_r_max = 11 - ns_r_badvers = 16 - ns_r_badsig = 16 - ns_r_badkey = 17 - ns_r_badtime = 18 -) - -const ( /* pthread_impl.h:58:1: */ - DT_EXITING = 0 - DT_JOINABLE = 1 - DT_DETACHED = 2 -) - -type ptrdiff_t = int64 /* :3:26 */ - -type size_t = uint64 /* :9:23 */ - -type wchar_t = int32 /* :15:24 */ - -type uint16_t = uint16 /* alltypes.h:113:25 */ - -type uint32_t = uint32 /* alltypes.h:118:25 */ - -type uint64_t = uint64 /* alltypes.h:123:25 */ - -func __bswap32(tls *TLS, __x uint32_t) uint32_t { /* endian.h:24:26: */ - return __x>>24 | __x>>8&uint32_t(0xff00) | __x<<8&uint32_t(0xff0000) | __x<<24 -} - -var table = [384]uint16{ - uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), - uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), - uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), - uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), - uint16(0x200), uint16(0x200), uint16(0x200), uint16(0x200), uint16(0x200), uint16(0x200), uint16(0x200), uint16(0x200), - uint16(0x200), uint16(0x320), uint16(0x220), uint16(0x220), uint16(0x220), uint16(0x220), uint16(0x200), uint16(0x200), - uint16(0x200), uint16(0x200), uint16(0x200), uint16(0x200), uint16(0x200), uint16(0x200), uint16(0x200), uint16(0x200), - uint16(0x200), uint16(0x200), uint16(0x200), uint16(0x200), uint16(0x200), uint16(0x200), uint16(0x200), uint16(0x200), - uint16(0x160), uint16(0x4c0), uint16(0x4c0), uint16(0x4c0), uint16(0x4c0), uint16(0x4c0), uint16(0x4c0), uint16(0x4c0), - uint16(0x4c0), uint16(0x4c0), uint16(0x4c0), uint16(0x4c0), uint16(0x4c0), uint16(0x4c0), uint16(0x4c0), uint16(0x4c0), - uint16(0x8d8), uint16(0x8d8), uint16(0x8d8), uint16(0x8d8), uint16(0x8d8), uint16(0x8d8), uint16(0x8d8), uint16(0x8d8), - uint16(0x8d8), uint16(0x8d8), uint16(0x4c0), uint16(0x4c0), uint16(0x4c0), uint16(0x4c0), uint16(0x4c0), uint16(0x4c0), - uint16(0x4c0), uint16(0x8d5), uint16(0x8d5), uint16(0x8d5), uint16(0x8d5), uint16(0x8d5), uint16(0x8d5), uint16(0x8c5), - uint16(0x8c5), uint16(0x8c5), uint16(0x8c5), uint16(0x8c5), uint16(0x8c5), uint16(0x8c5), uint16(0x8c5), uint16(0x8c5), - uint16(0x8c5), uint16(0x8c5), uint16(0x8c5), uint16(0x8c5), uint16(0x8c5), uint16(0x8c5), uint16(0x8c5), uint16(0x8c5), - uint16(0x8c5), uint16(0x8c5), uint16(0x8c5), uint16(0x4c0), uint16(0x4c0), uint16(0x4c0), uint16(0x4c0), uint16(0x4c0), - uint16(0x4c0), uint16(0x8d6), uint16(0x8d6), uint16(0x8d6), uint16(0x8d6), uint16(0x8d6), uint16(0x8d6), uint16(0x8c6), - uint16(0x8c6), uint16(0x8c6), uint16(0x8c6), uint16(0x8c6), uint16(0x8c6), uint16(0x8c6), uint16(0x8c6), uint16(0x8c6), - uint16(0x8c6), uint16(0x8c6), uint16(0x8c6), uint16(0x8c6), uint16(0x8c6), uint16(0x8c6), uint16(0x8c6), uint16(0x8c6), - uint16(0x8c6), uint16(0x8c6), uint16(0x8c6), uint16(0x4c0), uint16(0x4c0), uint16(0x4c0), uint16(0x4c0), uint16(0x200), - uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), - uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), - uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), - uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), uint16(0), -} /* __ctype_b_loc.c:9:29 */ - -var ptable uintptr = 0 /* __ctype_b_loc.c:36:29 */ - -func X__ctype_b_loc(tls *TLS) uintptr { /* __ctype_b_loc.c:38:22: */ - return uintptr(unsafe.Pointer(&ptable)) -} - -func __isspace(tls *TLS, _c int32) int32 { /* ctype.h:26:21: */ - return Bool32(_c == ' ' || uint32(_c)-uint32('\t') < uint32(5)) -} - -type __locale_struct = struct{ cat [6]uintptr } /* alltypes.h:330:9 */ - -type locale_t = uintptr /* alltypes.h:330:32 */ - -func Xisalnum(tls *TLS, c int32) int32 { /* isalnum.c:3:5: */ - return Bool32(func() int32 { - if 0 != 0 { - return Xisalpha(tls, c) - } - return Bool32(uint32(c)|uint32(32)-uint32('a') < uint32(26)) - }() != 0 || func() int32 { - if 0 != 0 { - return Xisdigit(tls, c) - } - return Bool32(uint32(c)-uint32('0') < uint32(10)) - }() != 0) -} - -func X__isalnum_l(tls *TLS, c int32, l locale_t) int32 { /* isalnum.c:8:5: */ - return Xisalnum(tls, c) -} - -func Xisalpha(tls *TLS, c int32) int32 { /* isalpha.c:4:5: */ - return Bool32(uint32(c)|uint32(32)-uint32('a') < uint32(26)) -} - -func X__isalpha_l(tls *TLS, c int32, l locale_t) int32 { /* isalpha.c:9:5: */ - return Xisalpha(tls, c) -} - -func Xisdigit(tls *TLS, c int32) int32 { /* isdigit.c:4:5: */ - return Bool32(uint32(c)-uint32('0') < uint32(10)) -} - -func X__isdigit_l(tls *TLS, c int32, l locale_t) int32 { /* isdigit.c:9:5: */ - return Xisdigit(tls, c) -} - -func Xislower(tls *TLS, c int32) int32 { /* islower.c:4:5: */ - return Bool32(uint32(c)-uint32('a') < uint32(26)) -} - -func X__islower_l(tls *TLS, c int32, l locale_t) int32 { /* islower.c:9:5: */ - return Xislower(tls, c) -} - -func Xisprint(tls *TLS, c int32) int32 { /* isprint.c:4:5: */ - return Bool32(uint32(c)-uint32(0x20) < uint32(0x5f)) -} - -func X__isprint_l(tls *TLS, c int32, l locale_t) int32 { /* isprint.c:9:5: */ - return Xisprint(tls, c) -} - -func Xisupper(tls *TLS, c int32) int32 { /* isupper.c:4:5: */ - return Bool32(uint32(c)-uint32('A') < uint32(26)) -} - -func X__isupper_l(tls *TLS, c int32, l locale_t) int32 { /* isupper.c:9:5: */ - return Xisupper(tls, c) -} - -func Xisxdigit(tls *TLS, c int32) int32 { /* isxdigit.c:3:5: */ - return Bool32(func() int32 { - if 0 != 0 { - return Xisdigit(tls, c) - } - return Bool32(uint32(c)-uint32('0') < uint32(10)) - }() != 0 || uint32(c)|uint32(32)-uint32('a') < uint32(6)) -} - -func X__isxdigit_l(tls *TLS, c int32, l locale_t) int32 { /* isxdigit.c:8:5: */ - return Xisxdigit(tls, c) -} - -type off_t = int64 /* alltypes.h:149:16 */ - -type ino_t = uint64 /* alltypes.h:154:25 */ - -type dirent = struct { - d_ino ino_t - d_off off_t - d_reclen uint16 - d_type uint8 - d_name [256]uint8 - _ [5]byte -} /* dirent.h:5:1 */ - -type __dirstream = struct { - tell off_t - fd int32 - buf_pos int32 - buf_end int32 - lock [1]int32 - buf [2048]uint8 -} /* dirent.h:20:9 */ - -type DIR = __dirstream /* dirent.h:20:28 */ - -type ssize_t = int64 /* alltypes.h:52:15 */ - -type intptr_t = int64 /* alltypes.h:57:15 */ - -type pid_t = int32 /* alltypes.h:222:13 */ - -type uid_t = uint32 /* alltypes.h:232:18 */ - -type gid_t = uint32 /* alltypes.h:237:18 */ - -type useconds_t = uint32 /* alltypes.h:247:18 */ - -type div_t = struct { - quot int32 - rem int32 -} /* stdlib.h:62:35 */ -type ldiv_t = struct { - quot int64 - rem int64 -} /* stdlib.h:63:36 */ -type lldiv_t = struct { - quot int64 - rem int64 -} /* stdlib.h:64:41 */ - -func Xclosedir(tls *TLS, dir uintptr) int32 { /* closedir.c:6:5: */ - var ret int32 = Xclose(tls, (*DIR)(unsafe.Pointer(dir)).fd) - Xfree(tls, dir) - return ret -} - -type mode_t = uint32 /* alltypes.h:139:18 */ - -type iovec = struct { - iov_base uintptr - iov_len size_t -} /* alltypes.h:342:1 */ - -type flock = struct { - l_type int16 - l_whence int16 - _ [4]byte - l_start off_t - l_len off_t - l_pid pid_t - _ [4]byte -} /* fcntl.h:24:1 */ - -type file_handle = struct { - _ [0]uint32 - handle_bytes uint32 - handle_type int32 -} /* fcntl.h:167:1 */ - -type f_owner_ex = struct { - __type int32 - pid pid_t -} /* fcntl.h:172:1 */ - -type syscall_arg_t = int64 /* syscall.h:22:14 */ - -func Xopendir(tls *TLS, name uintptr) uintptr { /* opendir.c:8:5: */ - var fd int32 - var dir uintptr - - if AssignInt32(&fd, Xopen(tls, name, 00|0200000|02000000, 0)) < 0 { - return uintptr(0) - } - if !(int32(AssignUintptr(&dir, Xcalloc(tls, uint64(1), uint64(unsafe.Sizeof(DIR{}))))) != 0) { - __syscall1(tls, int64(6), int64(fd)) - return uintptr(0) - } - (*DIR)(unsafe.Pointer(dir)).fd = fd - return dir -} - -type max_align_t = struct { - __ll int64 - __ld float64 -} /* alltypes.h:28:54 */ - -type dirstream_buf_alignment_check = [1]uint8 /* readdir.c:7:14 */ - -func Xreaddir(tls *TLS, dir uintptr) uintptr { /* readdir.c:10:15: */ - var de uintptr - - if (*DIR)(unsafe.Pointer(dir)).buf_pos >= (*DIR)(unsafe.Pointer(dir)).buf_end { - var len int32 = int32(__syscall3(tls, int64(220), int64((*DIR)(unsafe.Pointer(dir)).fd), int64(dir+24), int64(unsafe.Sizeof([2048]uint8{})))) - if len <= 0 { - if len < 0 && len != -2 { - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = -len - } - return uintptr(0) - } - (*DIR)(unsafe.Pointer(dir)).buf_end = len - (*DIR)(unsafe.Pointer(dir)).buf_pos = 0 - } - de = dir + 24 + uintptr((*DIR)(unsafe.Pointer(dir)).buf_pos) - *(*int32)(unsafe.Pointer(dir + 12)) += int32((*dirent)(unsafe.Pointer(de)).d_reclen) - (*DIR)(unsafe.Pointer(dir)).tell = (*dirent)(unsafe.Pointer(de)).d_off - return de -} - -type uintptr_t = uint64 /* alltypes.h:42:24 */ - -type int8_t = int8 /* alltypes.h:83:25 */ - -type int16_t = int16 /* alltypes.h:88:25 */ - -type int32_t = int32 /* alltypes.h:93:25 */ - -type int64_t = int64 /* alltypes.h:98:25 */ - -type intmax_t = int64 /* alltypes.h:103:25 */ - -type uint8_t = uint8 /* alltypes.h:108:25 */ - -type uintmax_t = uint64 /* alltypes.h:133:25 */ - -type int_fast8_t = int8_t /* stdint.h:22:16 */ -type int_fast64_t = int64_t /* stdint.h:23:17 */ - -type int_least8_t = int8_t /* stdint.h:25:17 */ -type int_least16_t = int16_t /* stdint.h:26:17 */ -type int_least32_t = int32_t /* stdint.h:27:17 */ -type int_least64_t = int64_t /* stdint.h:28:17 */ - -type uint_fast8_t = uint8_t /* stdint.h:30:17 */ -type uint_fast64_t = uint64_t /* stdint.h:31:18 */ - -type uint_least8_t = uint8_t /* stdint.h:33:18 */ -type uint_least16_t = uint16_t /* stdint.h:34:18 */ -type uint_least32_t = uint32_t /* stdint.h:35:18 */ -type uint_least64_t = uint64_t /* stdint.h:36:18 */ - -type int_fast16_t = int32_t /* stdint.h:1:17 */ -type int_fast32_t = int32_t /* stdint.h:2:17 */ -type uint_fast16_t = uint32_t /* stdint.h:3:18 */ -type uint_fast32_t = uint32_t /* stdint.h:4:18 */ - -type _IO_FILE = struct { - flags uint32 - _ [4]byte - rpos uintptr - rend uintptr - close uintptr - wend uintptr - wpos uintptr - mustbezero_1 uintptr - wbase uintptr - read uintptr - write uintptr - seek uintptr - buf uintptr - buf_size size_t - prev uintptr - next uintptr - fd int32 - pipe_pid int32 - lockcount int64 - mode int32 - lock int32 - lbf int32 - _ [4]byte - cookie uintptr - off off_t - getln_buf uintptr - mustbezero_2 uintptr - shend uintptr - shlim off_t - shcnt off_t - prev_locked uintptr - next_locked uintptr - locale uintptr -} /* alltypes.h:307:9 */ - -type FILE = _IO_FILE /* alltypes.h:307:25 */ - -type va_list = uintptr /* alltypes.h:313:27 */ - -type _G_fpos64_t = struct { - _ [0]uint64 - __opaque [16]uint8 -} /* stdio.h:54:9 */ - -type fpos_t = _G_fpos64_t /* stdio.h:58:3 */ - -type float_t = float64 /* alltypes.h:17:16 */ - -type double_t = float64 /* alltypes.h:22:16 */ - -func __FLOAT_BITS(tls *TLS, __f float32) uint32 { /* math.h:55:26: */ - bp := tls.Alloc(4) - defer tls.Free(4) - - // var __u struct {__f float32;} at bp, 4 - - *(*float32)(unsafe.Pointer(bp)) = __f - return *(*uint32)(unsafe.Pointer(bp)) -} - -func __DOUBLE_BITS(tls *TLS, __f float64) uint64 { /* math.h:61:36: */ - bp := tls.Alloc(8) - defer tls.Free(8) - - // var __u struct {__f float64;} at bp, 8 - - *(*float64)(unsafe.Pointer(bp)) = __f - return *(*uint64)(unsafe.Pointer(bp)) -} - -type __pthread = struct { - self uintptr - dtv uintptr - prev uintptr - next uintptr - sysinfo uintptr_t - canary uintptr_t - canary2 uintptr_t - tid int32 - errno_val int32 - detach_state int32 - cancel int32 - canceldisable uint8 - cancelasync uint8 - tsd_used uint8 /* unsigned char tsd_used: 1, unsigned char dlerror_flag: 1 */ - _ [5]byte - map_base uintptr - map_size size_t - stack uintptr - stack_size size_t - guard_size size_t - result uintptr - cancelbuf uintptr - tsd uintptr - robust_list struct { - head uintptr - off int64 - pending uintptr - } - timer_id int32 - _ [4]byte - locale locale_t - killlock [1]int32 - _ [4]byte - dlerror_buf uintptr - stdio_locks uintptr - canary_at_end uintptr_t - dtv_copy uintptr -} /* alltypes.h:260:9 */ - -func scanexp(tls *TLS, f uintptr, pok int32) int64 { /* floatscan.c:37:18: */ - var c int32 - var x int32 - var y int64 - var neg int32 = 0 - - c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() - if c == '+' || c == '-' { - neg = Bool32(c == '-') - c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() - if uint32(c-'0') >= 10 && pok != 0 { - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - } - } - if uint32(c-'0') >= 10 { - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - return -0x7fffffffffffffff - int64(1) - } - for x = 0; uint32(c-'0') < 10 && x < 0x7fffffff/10; c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() { - x = 10*x + c - '0' - } - for y = int64(x); uint32(c-'0') < 10 && y < 0x7fffffffffffffff/int64(100); c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() { - y = int64(10)*y + int64(c) - int64('0') - } - for ; uint32(c-'0') < 10; c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() { - } - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - if neg != 0 { - return -y - } - return y -} - -func decfloat(tls *TLS, f uintptr, c int32, bits int32, emin int32, sign int32, pok int32) float64 { /* floatscan.c:64:20: */ - bp := tls.Alloc(512) - defer tls.Free(512) - - // var x [128]uint32_t at bp, 512 - - var i int32 - var j int32 - var k int32 - var a int32 - var z int32 - var lrp int64 = int64(0) - var dc int64 = int64(0) - var e10 int64 = int64(0) - var lnz int32 = 0 - var gotdig int32 = 0 - var gotrad int32 = 0 - var rp int32 - var e2 int32 - var emax int32 = -emin - bits + 3 - var denormal int32 = 0 - var y float64 - var frac float64 = float64(0) - var bias float64 = float64(0) - - j = 0 - k = 0 - - // Don't let leading zeros consume buffer space - for ; c == '0'; c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() { - gotdig = 1 - } - if c == '.' { - gotrad = 1 - for c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }(); c == '0'; c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() { - gotdig = 1 - lrp-- - } - } - - *(*uint32_t)(unsafe.Pointer(bp)) = uint32_t(0) - for ; uint32(c-'0') < 10 || c == '.'; c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() { - if c == '.' { - if gotrad != 0 { - break - } - gotrad = 1 - lrp = dc - } else if k < 128-3 { - dc++ - if c != '0' { - lnz = int32(dc) - } - if j != 0 { - *(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4)) = *(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4))*uint32_t(10) + uint32_t(c) - uint32_t('0') - } else { - *(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4)) = uint32_t(c - '0') - } - if PreIncInt32(&j, 1) == 9 { - k++ - j = 0 - } - gotdig = 1 - } else { - dc++ - if c != '0' { - lnz = (128 - 4) * 9 - *(*uint32_t)(unsafe.Pointer(bp + 124*4)) |= uint32_t(1) - } - } - } - if !(gotrad != 0) { - lrp = dc - } - - if gotdig != 0 && c|32 == 'e' { - e10 = scanexp(tls, f, pok) - if e10 == -0x7fffffffffffffff-int64(1) { - if pok != 0 { - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - } else { - X__shlim(tls, f, int64(0)) - return float64(0) - } - e10 = int64(0) - } - lrp = lrp + e10 - } else if c >= 0 { - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - } - if !(gotdig != 0) { - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 22 - X__shlim(tls, f, int64(0)) - return float64(0) - } - - // Handle zero specially to avoid nasty special cases later - if !(int32(*(*uint32_t)(unsafe.Pointer(bp))) != 0) { - return float64(sign) * 0.0 - } - - // Optimize small integers (w/no exponent) and over/under-flow - if lrp == dc && dc < int64(10) && (bits > 30 || *(*uint32_t)(unsafe.Pointer(bp))>>bits == uint32_t(0)) { - return float64(sign) * float64(*(*uint32_t)(unsafe.Pointer(bp))) - } - if lrp > int64(-emin/2) { - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 34 - return float64(sign) * 1.79769313486231570815e+308 * 1.79769313486231570815e+308 - } - if lrp < int64(emin-2*53) { - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 34 - return float64(sign) * 2.22507385850720138309e-308 * 2.22507385850720138309e-308 - } - - // Align incomplete final B1B digit - if j != 0 { - for ; j < 9; j++ { - *(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4)) *= uint32_t(10) - } - k++ - j = 0 - } - - a = 0 - z = k - e2 = 0 - rp = int32(lrp) - - // Optimize small to mid-size integers (even in exp. notation) - if lnz < 9 && lnz <= rp && rp < 18 { - if rp == 9 { - return float64(sign) * float64(*(*uint32_t)(unsafe.Pointer(bp))) - } - if rp < 9 { - return float64(sign) * float64(*(*uint32_t)(unsafe.Pointer(bp))) / float64(_sp10s[8-rp]) - } - var bitlim int32 = bits - 3*(rp-9) - if bitlim > 30 || *(*uint32_t)(unsafe.Pointer(bp))>>bitlim == uint32_t(0) { - return float64(sign) * float64(*(*uint32_t)(unsafe.Pointer(bp))) * float64(_sp10s[rp-10]) - } - } - - // Drop trailing zeros - for ; !(int32(*(*uint32_t)(unsafe.Pointer(bp + uintptr(z-1)*4))) != 0); z-- { - } - - // Align radix point to B1B digit boundary - if rp%9 != 0 { - var rpm9 int32 - if rp >= 0 { - rpm9 = rp % 9 - } else { - rpm9 = rp%9 + 9 - } - var p10 int32 = _sp10s[8-rpm9] - var carry uint32_t = uint32_t(0) - for k = a; k != z; k++ { - var tmp uint32_t = *(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4)) % uint32_t(p10) - *(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4)) = *(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4))/uint32_t(p10) + carry - carry = uint32_t(1000000000/p10) * tmp - if k == a && !(int32(*(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4))) != 0) { - a = (a + 1) & (128 - 1) - rp = rp - 9 - } - } - if carry != 0 { - *(*uint32_t)(unsafe.Pointer(bp + uintptr(PostIncInt32(&z, 1))*4)) = carry - } - rp = rp + (9 - rpm9) - } - - // Upscale until desired number of bits are left of radix point - for rp < 9*2 || rp == 9*2 && *(*uint32_t)(unsafe.Pointer(bp + uintptr(a)*4)) < _sth[0] { - var carry uint32_t = uint32_t(0) - e2 = e2 - 29 - for k = (z - 1) & (128 - 1); ; k = (k - 1) & (128 - 1) { - var tmp uint64_t = uint64_t(*(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4)))<<29 + uint64_t(carry) - if tmp > uint64(1000000000) { - carry = uint32_t(tmp / uint64(1000000000)) - *(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4)) = uint32_t(tmp % uint64(1000000000)) - } else { - carry = uint32_t(0) - *(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4)) = uint32_t(tmp) - } - if k == (z-1)&(128-1) && k != a && !(int32(*(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4))) != 0) { - z = k - } - if k == a { - break - } - } - if carry != 0 { - rp = rp + 9 - a = (a - 1) & (128 - 1) - if a == z { - z = (z - 1) & (128 - 1) - *(*uint32_t)(unsafe.Pointer(bp + uintptr((z-1)&(128-1))*4)) |= *(*uint32_t)(unsafe.Pointer(bp + uintptr(z)*4)) - } - *(*uint32_t)(unsafe.Pointer(bp + uintptr(a)*4)) = carry - } - } - - // Downscale until exactly number of bits are left of radix point - for { - var carry uint32_t = uint32_t(0) - var sh int32 = 1 - for i = 0; i < 2; i++ { - k = (a + i) & (128 - 1) - if k == z || *(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4)) < _sth[i] { - i = 2 - break - } - if *(*uint32_t)(unsafe.Pointer(bp + uintptr((a+i)&(128-1))*4)) > _sth[i] { - break - } - } - if i == 2 && rp == 9*2 { - break - } - // FIXME: find a way to compute optimal sh - if rp > 9+9*2 { - sh = 9 - } - e2 = e2 + sh - for k = a; k != z; k = (k + 1) & (128 - 1) { - var tmp uint32_t = *(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4)) & uint32_t(int32(1)<>sh + carry - carry = uint32_t(int32(1000000000)>>sh) * tmp - if k == a && !(int32(*(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4))) != 0) { - a = (a + 1) & (128 - 1) - i-- - rp = rp - 9 - } - } - if carry != 0 { - if (z+1)&(128-1) != a { - *(*uint32_t)(unsafe.Pointer(bp + uintptr(z)*4)) = carry - z = (z + 1) & (128 - 1) - } else { - *(*uint32_t)(unsafe.Pointer(bp + uintptr((z-1)&(128-1))*4)) |= uint32_t(1) - } - } - } - - // Assemble desired bits into floating point variable - for y = float64(AssignInt32(&i, 0)); i < 2; i++ { - if (a+i)&(128-1) == z { - *(*uint32_t)(unsafe.Pointer(bp + uintptr(AssignInt32(&z, (z+1)&(128-1))-1)*4)) = uint32_t(0) - } - y = 1000000000.0*y + float64(*(*uint32_t)(unsafe.Pointer(bp + uintptr((a+i)&(128-1))*4))) - } - - y = y * float64(sign) - - // Limit precision for denormal results - if bits > 53+e2-emin { - bits = 53 + e2 - emin - if bits < 0 { - bits = 0 - } - denormal = 1 - } - - // Calculate bias term to force rounding, move out lower bits - if bits < 53 { - bias = Xcopysignl(tls, Xscalbn(tls, float64(1), 2*53-bits-1), y) - frac = Xfmodl(tls, y, Xscalbn(tls, float64(1), 53-bits)) - y = y - frac - y = y + bias - } - - // Process tail of decimal input so it can affect rounding - if (a+i)&(128-1) != z { - var t uint32_t = *(*uint32_t)(unsafe.Pointer(bp + uintptr((a+i)&(128-1))*4)) - if t < uint32_t(500000000) && (t != 0 || (a+i+1)&(128-1) != z) { - frac = frac + 0.25*float64(sign) - } else if t > uint32_t(500000000) { - frac = frac + 0.75*float64(sign) - } else if t == uint32_t(500000000) { - if (a+i+1)&(128-1) == z { - frac = frac + 0.5*float64(sign) - } else { - frac = frac + 0.75*float64(sign) - } - } - if 53-bits >= 2 && !(Xfmodl(tls, frac, float64(1)) != 0) { - frac += 1 - } - } - - y = y + frac - y = y - bias - - if (e2+53)&0x7fffffff > emax-5 { - if Xfabsl(tls, y) >= float64(float64(2))/2.22044604925031308085e-16 { - if denormal != 0 && bits == 53+e2-emin { - denormal = 0 - } - y = y * 0.5 - e2++ - } - if e2+53 > emax || denormal != 0 && frac != 0 { - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 34 - } - } - - return Xscalbnl(tls, y, e2) -} - -var _sth = [2]uint32_t{uint32_t(9007199), uint32_t(254740991)} /* floatscan.c:67:24 */ -var _sp10s = [8]int32{10, 100, 1000, 10000, - 100000, 1000000, 10000000, 100000000} /* floatscan.c:80:19 */ - -func hexfloat(tls *TLS, f uintptr, bits int32, emin int32, sign int32, pok int32) float64 { /* floatscan.c:315:20: */ - var x uint32_t = uint32_t(0) - var y float64 = float64(0) - var scale float64 = float64(1) - var bias float64 = float64(0) - var gottail int32 = 0 - var gotrad int32 = 0 - var gotdig int32 = 0 - var rp int64 = int64(0) - var dc int64 = int64(0) - var e2 int64 = int64(0) - var d int32 - var c int32 - - c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() - - // Skip leading zeros - for ; c == '0'; c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() { - gotdig = 1 - } - - if c == '.' { - gotrad = 1 - c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() - // Count zeros after the radix point before significand - rp = int64(0) - __1: - if !(c == '0') { - goto __3 - } - gotdig = 1 - goto __2 - __2: - c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() - rp-- - goto __1 - goto __3 - __3: - } - - for ; uint32(c-'0') < 10 || uint32(c|32-'a') < 6 || c == '.'; c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() { - if c == '.' { - if gotrad != 0 { - break - } - rp = dc - gotrad = 1 - } else { - gotdig = 1 - if c > '9' { - d = c | 32 + 10 - 'a' - } else { - d = c - '0' - } - if dc < int64(8) { - x = x*uint32_t(16) + uint32_t(d) - } else if dc < int64(53/4+1) { - y = y + float64(d)*AssignDivFloat64(&scale, float64(16)) - } else if d != 0 && !(gottail != 0) { - y = y + 0.5*scale - gottail = 1 - } - dc++ - } - } - if !(gotdig != 0) { - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - if pok != 0 { - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - if gotrad != 0 { - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - } - } else { - X__shlim(tls, f, int64(0)) - } - return float64(sign) * 0.0 - } - if !(gotrad != 0) { - rp = dc - } - for dc < int64(8) { - x = x * uint32_t(16) - dc++ - } - if c|32 == 'p' { - e2 = scanexp(tls, f, pok) - if e2 == -0x7fffffffffffffff-int64(1) { - if pok != 0 { - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - } else { - X__shlim(tls, f, int64(0)) - return float64(0) - } - e2 = int64(0) - } - } else { - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - } - e2 = e2 + (int64(4)*rp - int64(32)) - - if !(x != 0) { - return float64(sign) * 0.0 - } - if e2 > int64(-emin) { - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 34 - return float64(sign) * 1.79769313486231570815e+308 * 1.79769313486231570815e+308 - } - if e2 < int64(emin-2*53) { - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 34 - return float64(sign) * 2.22507385850720138309e-308 * 2.22507385850720138309e-308 - } - - for x < 0x80000000 { - if y >= 0.5 { - x = x + (x + uint32_t(1)) - y = y + (y - float64(1)) - } else { - x = x + x - y = y + y - } - e2-- - } - - if int64(bits) > int64(32)+e2-int64(emin) { - bits = int32(int64(32) + e2 - int64(emin)) - if bits < 0 { - bits = 0 - } - } - - if bits < 53 { - bias = Xcopysignl(tls, Xscalbn(tls, float64(1), 32+53-bits-1), float64(sign)) - } - - if bits < 32 && y != 0 && !(x&uint32_t(1) != 0) { - x++ - y = float64(0) - } - - y = bias + float64(sign)*float64(x) + float64(sign)*y - y = y - bias - - if !(y != 0) { - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 34 - } - - return Xscalbnl(tls, y, int32(e2)) -} - -func X__floatscan(tls *TLS, f uintptr, prec int32, pok int32) float64 { /* floatscan.c:427:13: */ - var sign int32 = 1 - var i size_t - var bits int32 - var emin int32 - var c int32 - - switch prec { - case 0: - bits = 24 - emin = -125 - bits - break - case 1: - bits = 53 - emin = -1021 - bits - break - case 2: - bits = 53 - emin = -1021 - bits - break - default: - return float64(0) - } - - for __isspace(tls, AssignInt32(&c, func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }())) != 0 { - } - - if c == '+' || c == '-' { - sign = sign - 2*Bool32(c == '-') - c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() - } - - for i = uint64(0); i < uint64(8) && c|32 == int32(*(*uint8)(unsafe.Pointer(ts /* "infinity" */ + uintptr(i)))); i++ { - if i < uint64(7) { - c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() - } - } - if i == uint64(3) || i == uint64(8) || i > uint64(3) && pok != 0 { - if i != uint64(8) { - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - if pok != 0 { - for ; i > uint64(3); i-- { - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - } - } - } - return float64(float32(sign) * X__builtin_inff(tls)) - } - if !(i != 0) { - for i = uint64(0); i < uint64(3) && c|32 == int32(*(*uint8)(unsafe.Pointer(ts + 9 /* "nan" */ + uintptr(i)))); i++ { - if i < uint64(2) { - c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() - } - } - } - if i == uint64(3) { - if func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() != '(' { - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - return float64(X__builtin_nanf(tls, ts+13)) - } - for i = uint64(1); ; i++ { - c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() - if uint32(c-'0') < 10 || uint32(c-'A') < 26 || uint32(c-'a') < 26 || c == '_' { - continue - } - if c == ')' { - return float64(X__builtin_nanf(tls, ts+13)) - } - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - if !(pok != 0) { - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 22 - X__shlim(tls, f, int64(0)) - return float64(0) - } - for PostDecUint64(&i, 1) != 0 { - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - } - return float64(X__builtin_nanf(tls, ts+13)) - } - return float64(X__builtin_nanf(tls, ts+13)) - } - - if i != 0 { - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 22 - X__shlim(tls, f, int64(0)) - return float64(0) - } - - if c == '0' { - c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() - if c|32 == 'x' { - return hexfloat(tls, f, bits, emin, sign, pok) - } - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - c = '0' - } - - return decfloat(tls, f, c, bits, emin, sign, pok) -} - -// Lookup table for digit values. -1==255>=36 -> invalid -var table1 = [257]uint8{Uint8FromInt32(-1), - Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), - Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), - Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), - uint8(0), uint8(1), uint8(2), uint8(3), uint8(4), uint8(5), uint8(6), uint8(7), uint8(8), uint8(9), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), - Uint8FromInt32(-1), uint8(10), uint8(11), uint8(12), uint8(13), uint8(14), uint8(15), uint8(16), uint8(17), uint8(18), uint8(19), uint8(20), uint8(21), uint8(22), uint8(23), uint8(24), - uint8(25), uint8(26), uint8(27), uint8(28), uint8(29), uint8(30), uint8(31), uint8(32), uint8(33), uint8(34), uint8(35), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), - Uint8FromInt32(-1), uint8(10), uint8(11), uint8(12), uint8(13), uint8(14), uint8(15), uint8(16), uint8(17), uint8(18), uint8(19), uint8(20), uint8(21), uint8(22), uint8(23), uint8(24), - uint8(25), uint8(26), uint8(27), uint8(28), uint8(29), uint8(30), uint8(31), uint8(32), uint8(33), uint8(34), uint8(35), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), - Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), - Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), - Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), - Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), - Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), - Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), - Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), - Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), Uint8FromInt32(-1), -} /* intscan.c:7:28 */ - -func X__intscan(tls *TLS, f uintptr, base uint32, pok int32, lim uint64) uint64 { /* intscan.c:26:20: */ - var val uintptr - var c int32 - var neg int32 - var x uint32 - var y uint64 - var bs int32 - val = uintptr(unsafe.Pointer(&table1)) + uintptr(1) - neg = 0 - if !(base > uint32(36) || base == uint32(1)) { - goto __1 - } - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 22 - return uint64(0) -__1: - ; -__2: - if !(__isspace(tls, AssignInt32(&c, func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }())) != 0) { - goto __3 - } - goto __2 -__3: - ; - if !(c == '+' || c == '-') { - goto __4 - } - neg = -Bool32(c == '-') - c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() -__4: - ; - if !((base == uint32(0) || base == uint32(16)) && c == '0') { - goto __5 - } - c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() - if !(c|32 == 'x') { - goto __7 - } - c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() - if !(int32(*(*uint8)(unsafe.Pointer(val + uintptr(c)))) >= 16) { - goto __9 - } - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - if !(pok != 0) { - goto __10 - } - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - goto __11 -__10: - X__shlim(tls, f, int64(0)) -__11: - ; - return uint64(0) -__9: - ; - base = uint32(16) - goto __8 -__7: - if !(base == uint32(0)) { - goto __12 - } - base = uint32(8) -__12: - ; -__8: - ; - goto __6 -__5: - if !(base == uint32(0)) { - goto __13 - } - base = uint32(10) -__13: - ; - if !(uint32(*(*uint8)(unsafe.Pointer(val + uintptr(c)))) >= base) { - goto __14 - } - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - X__shlim(tls, f, int64(0)) - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 22 - return uint64(0) -__14: - ; -__6: - ; - if !(base == uint32(10)) { - goto __15 - } - x = uint32(0) -__17: - if !(uint32(c-'0') < 10 && x <= 0xffffffff/uint32(10)-uint32(1)) { - goto __19 - } - x = x*uint32(10) + uint32(c-'0') - goto __18 -__18: - c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() - goto __17 - goto __19 -__19: - ; - y = uint64(x) -__20: - if !(uint32(c-'0') < 10 && y <= (2*uint64(0x7fffffffffffffff)+uint64(1))/uint64(10) && uint64(10)*y <= 2*uint64(0x7fffffffffffffff)+uint64(1)-uint64(c-'0')) { - goto __22 - } - y = y*uint64(10) + uint64(c-'0') - goto __21 -__21: - c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() - goto __20 - goto __22 -__22: - ; - if !(uint32(c-'0') >= 10) { - goto __23 - } - goto done -__23: - ; - goto __16 -__15: - if !!(base&(base-uint32(1)) != 0) { - goto __24 - } - bs = int32(*(*uint8)(unsafe.Pointer(ts + 14 + uintptr(uint32(0x17)*base>>5&uint32(7))))) - x = uint32(0) -__26: - if !(uint32(*(*uint8)(unsafe.Pointer(val + uintptr(c)))) < base && x <= 0xffffffff/uint32(32)) { - goto __28 - } - x = x<>bs) { - goto __31 - } - y = y<= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - if !(y >= lim) { - goto __43 - } - if !(!(lim&uint64(1) != 0) && !(neg != 0)) { - goto __44 - } - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 34 - return lim - uint64(1) - goto __45 -__44: - if !(y > lim) { - goto __46 - } - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 34 - return lim -__46: - ; -__45: - ; -__43: - ; - return y ^ uint64(neg) - uint64(neg) -} - -// The shcnt field stores the number of bytes read so far, offset by -// the value of buf-rpos at the last function call (__shlim or __shgetc), -// so that between calls the inline shcnt macro can add rpos-buf to get -// the actual count. - -func X__shlim(tls *TLS, f uintptr, lim off_t) { /* shgetc.c:8:6: */ - (*FILE)(unsafe.Pointer(f)).shlim = lim - (*FILE)(unsafe.Pointer(f)).shcnt = (int64((*FILE)(unsafe.Pointer(f)).buf) - int64((*FILE)(unsafe.Pointer(f)).rpos)) / 1 - // If lim is nonzero, rend must be a valid pointer. - if lim != 0 && (int64((*FILE)(unsafe.Pointer(f)).rend)-int64((*FILE)(unsafe.Pointer(f)).rpos))/1 > lim { - (*FILE)(unsafe.Pointer(f)).shend = (*FILE)(unsafe.Pointer(f)).rpos + uintptr(lim) - } else { - (*FILE)(unsafe.Pointer(f)).shend = (*FILE)(unsafe.Pointer(f)).rend - } -} - -func X__shgetc(tls *TLS, f uintptr) int32 { /* shgetc.c:19:5: */ - var c int32 - var cnt off_t = (*FILE)(unsafe.Pointer(f)).shcnt + (int64((*FILE)(unsafe.Pointer(f)).rpos)-int64((*FILE)(unsafe.Pointer(f)).buf))/1 - if (*FILE)(unsafe.Pointer(f)).shlim != 0 && cnt >= (*FILE)(unsafe.Pointer(f)).shlim || AssignInt32(&c, X__uflow(tls, f)) < 0 { - (*FILE)(unsafe.Pointer(f)).shcnt = (int64((*FILE)(unsafe.Pointer(f)).buf)-int64((*FILE)(unsafe.Pointer(f)).rpos))/1 + cnt - (*FILE)(unsafe.Pointer(f)).shend = (*FILE)(unsafe.Pointer(f)).rpos - (*FILE)(unsafe.Pointer(f)).shlim = int64(-1) - return -1 - } - cnt++ - if (*FILE)(unsafe.Pointer(f)).shlim != 0 && (int64((*FILE)(unsafe.Pointer(f)).rend)-int64((*FILE)(unsafe.Pointer(f)).rpos))/1 > (*FILE)(unsafe.Pointer(f)).shlim-cnt { - (*FILE)(unsafe.Pointer(f)).shend = (*FILE)(unsafe.Pointer(f)).rpos + uintptr((*FILE)(unsafe.Pointer(f)).shlim-cnt) - } else { - (*FILE)(unsafe.Pointer(f)).shend = (*FILE)(unsafe.Pointer(f)).rend - } - (*FILE)(unsafe.Pointer(f)).shcnt = (int64((*FILE)(unsafe.Pointer(f)).buf)-int64((*FILE)(unsafe.Pointer(f)).rpos))/1 + cnt - if (*FILE)(unsafe.Pointer(f)).rpos <= (*FILE)(unsafe.Pointer(f)).buf { - *(*uint8)(unsafe.Pointer((*FILE)(unsafe.Pointer(f)).rpos + UintptrFromInt32(-1))) = uint8(c) - } - return c -} - -type lconv = struct { - decimal_point uintptr - thousands_sep uintptr - grouping uintptr - int_curr_symbol uintptr - currency_symbol uintptr - mon_decimal_point uintptr - mon_thousands_sep uintptr - mon_grouping uintptr - positive_sign uintptr - negative_sign uintptr - int_frac_digits uint8 - frac_digits uint8 - p_cs_precedes uint8 - p_sep_by_space uint8 - n_cs_precedes uint8 - n_sep_by_space uint8 - p_sign_posn uint8 - n_sign_posn uint8 - int_p_cs_precedes uint8 - int_p_sep_by_space uint8 - int_n_cs_precedes uint8 - int_n_sep_by_space uint8 - int_p_sign_posn uint8 - int_n_sign_posn uint8 - _ [2]byte -} /* locale.h:24:1 */ - -// Support signed or unsigned plain-char - -// Implementation choices... - -// Arbitrary numbers... - -// POSIX/SUS requirements follow. These numbers come directly -// from SUS and have nothing to do with the host system. - -var posix_lconv = lconv{decimal_point: ts + 23, thousands_sep: ts + 13, grouping: ts + 13, int_curr_symbol: ts + 13, currency_symbol: ts + 13, mon_decimal_point: ts + 13, mon_thousands_sep: ts + 13, mon_grouping: ts + 13, positive_sign: ts + 13, negative_sign: ts + 13, int_frac_digits: uint8(255), frac_digits: uint8(255), p_cs_precedes: uint8(255), p_sep_by_space: uint8(255), n_cs_precedes: uint8(255), n_sep_by_space: uint8(255), p_sign_posn: uint8(255), n_sign_posn: uint8(255), int_p_cs_precedes: uint8(255), int_p_sep_by_space: uint8(255), int_n_cs_precedes: uint8(255), int_n_sep_by_space: uint8(255), int_p_sign_posn: uint8(255), int_n_sign_posn: uint8(255)} /* localeconv.c:4:27 */ - -func Xlocaleconv(tls *TLS) uintptr { /* localeconv.c:31:14: */ - return uintptr(unsafe.Pointer(&posix_lconv)) -} - -func X__fpclassify(tls *TLS, x float64) int32 { /* __fpclassify.c:4:5: */ - bp := tls.Alloc(8) - defer tls.Free(8) - - *(*struct{ f float64 })(unsafe.Pointer(bp)) = func() (r struct{ f float64 }) { - *(*float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = x - return r - }() - var e int32 = int32(*(*uint64_t)(unsafe.Pointer(bp)) >> 52 & uint64(0x7ff)) - if !(e != 0) { - if *(*uint64_t)(unsafe.Pointer(bp))<<1 != 0 { - return 3 - } - return 2 - } - if e == 0x7ff { - if *(*uint64_t)(unsafe.Pointer(bp))<<12 != 0 { - return 0 - } - return 1 - } - return 4 -} - -func X__fpclassifyf(tls *TLS, x float32) int32 { /* __fpclassifyf.c:4:5: */ - bp := tls.Alloc(4) - defer tls.Free(4) - - *(*struct{ f float32 })(unsafe.Pointer(bp)) = func() (r struct{ f float32 }) { - *(*float32)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = x - return r - }() - var e int32 = int32(*(*uint32_t)(unsafe.Pointer(bp)) >> 23 & uint32_t(0xff)) - if !(e != 0) { - if *(*uint32_t)(unsafe.Pointer(bp))<<1 != 0 { - return 3 - } - return 2 - } - if e == 0xff { - if *(*uint32_t)(unsafe.Pointer(bp))<<9 != 0 { - return 0 - } - return 1 - } - return 4 -} - -func X__fpclassifyl(tls *TLS, x float64) int32 { /* __fpclassifyl.c:4:5: */ - return X__fpclassify(tls, x) -} - -func Xcopysignl(tls *TLS, x float64, y float64) float64 { /* copysignl.c:4:13: */ - return Xcopysign(tls, x, y) -} - -func Xfabsl(tls *TLS, x float64) float64 { /* fabsl.c:3:13: */ - return Xfabs(tls, x) -} - -func Xfmodl(tls *TLS, x float64, y float64) float64 { /* fmodl.c:4:13: */ - return Xfmod(tls, x, y) -} - -func Xnanf(tls *TLS, s uintptr) float32 { /* nanf.c:3:7: */ - return X__builtin_nanf(tls, ts+13) -} - -var toint double_t = float64(float64(1)) / 2.22044604925031308085e-16 /* rint.c:10:23 */ - -func Xrint(tls *TLS, x float64) float64 { /* rint.c:12:8: */ - bp := tls.Alloc(8) - defer tls.Free(8) - - *(*struct{ f float64 })(unsafe.Pointer(bp)) = func() (r struct{ f float64 }) { - *(*float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = x - return r - }() - var e int32 = int32(*(*uint64_t)(unsafe.Pointer(bp)) >> 52 & uint64(0x7ff)) - var s int32 = int32(*(*uint64_t)(unsafe.Pointer(bp)) >> 63) - var y double_t - - if e >= 0x3ff+52 { - return x - } - if s != 0 { - y = x - toint + toint - } else { - y = x + toint - toint - } - if y == float64(0) { - if s != 0 { - return -Float64FromFloat64(0.0) - } - return float64(0) - } - return y -} - -func Xscalbn(tls *TLS, x float64, n int32) float64 { /* scalbn.c:4:8: */ - bp := tls.Alloc(8) - defer tls.Free(8) - - // var u struct {f float64;} at bp, 8 - - var y double_t = x - - if n > 1023 { - y = y * 0x1p1023 - n = n - 1023 - if n > 1023 { - y = y * 0x1p1023 - n = n - 1023 - if n > 1023 { - n = 1023 - } - } - } else if n < -1022 { - // make sure final n < -53 to avoid double - // rounding in the subnormal range - y = y * (float64(0x1p-1022) * 0x1p53) - n = n + (1022 - 53) - if n < -1022 { - y = y * (float64(0x1p-1022) * 0x1p53) - n = n + (1022 - 53) - if n < -1022 { - n = -1022 - } - } - } - *(*uint64_t)(unsafe.Pointer(bp)) = uint64_t(0x3ff+n) << 52 - x = y * *(*float64)(unsafe.Pointer(bp)) - return x -} - -func Xscalbnl(tls *TLS, x float64, n int32) float64 { /* scalbnl.c:4:13: */ - return Xscalbn(tls, x, n) -} - -// Support signed or unsigned plain-char - -// Implementation choices... - -// Arbitrary numbers... - -// POSIX/SUS requirements follow. These numbers come directly -// from SUS and have nothing to do with the host system. - -type __locale_map = struct { - __map uintptr - map_size size_t - name [24]uint8 - next uintptr -} /* alltypes.h:330:9 */ - -type tls_module = struct { - next uintptr - image uintptr - len size_t - size size_t - align size_t - offset size_t -} /* libc.h:14:1 */ - -type __libc = struct { - can_do_threads uint8 - threaded uint8 - secure uint8 - need_locks int8 - threads_minus_1 int32 - auxv uintptr - tls_head uintptr - tls_size size_t - tls_align size_t - tls_cnt size_t - page_size size_t - global_locale struct{ cat [6]uintptr } -} /* libc.h:20:1 */ - -type time_t = int64 /* alltypes.h:72:16 */ - -type clockid_t = int32 /* alltypes.h:201:13 */ - -type timespec = struct { - tv_sec time_t - tv_nsec int64 -} /* alltypes.h:216:1 */ - -type pthread_t = uintptr /* alltypes.h:260:26 */ - -type pthread_once_t = int32 /* alltypes.h:266:13 */ - -type pthread_key_t = uint32 /* alltypes.h:271:18 */ - -type pthread_spinlock_t = int32 /* alltypes.h:276:13 */ - -type pthread_mutexattr_t = struct{ __attr uint32 } /* alltypes.h:281:37 */ - -type pthread_condattr_t = struct{ __attr uint32 } /* alltypes.h:286:37 */ - -type pthread_barrierattr_t = struct{ __attr uint32 } /* alltypes.h:291:37 */ - -type pthread_rwlockattr_t = struct{ __attr [2]uint32 } /* alltypes.h:296:40 */ - -type __sigset_t = struct{ __bits [16]uint64 } /* alltypes.h:336:9 */ - -type sigset_t = __sigset_t /* alltypes.h:336:71 */ - -type pthread_attr_t = struct { - __u struct { - _ [0]uint64 - __i [14]int32 - } -} /* alltypes.h:359:147 */ - -type pthread_mutex_t = struct { - __u struct { - _ [0]uint64 - __i [10]int32 - } -} /* alltypes.h:364:157 */ - -type pthread_cond_t = struct { - __u struct { - _ [0]uint64 - __i [12]int32 - } -} /* alltypes.h:374:112 */ - -type pthread_rwlock_t = struct { - __u struct { - _ [0]uint64 - __i [14]int32 - } -} /* alltypes.h:384:139 */ - -type pthread_barrier_t = struct { - __u struct { - _ [0]uint64 - __i [8]int32 - } -} /* alltypes.h:389:137 */ - -type sched_param = struct { - sched_priority int32 - __reserved1 int32 - __reserved2 [2]struct { - __reserved1 time_t - __reserved2 int64 - } - __reserved3 int32 - _ [4]byte -} /* sched.h:19:1 */ - -type timer_t = uintptr /* alltypes.h:196:14 */ - -type clock_t = int64 /* alltypes.h:206:14 */ - -type tm = struct { - tm_sec int32 - tm_min int32 - tm_hour int32 - tm_mday int32 - tm_mon int32 - tm_year int32 - tm_wday int32 - tm_yday int32 - tm_isdst int32 - _ [4]byte - tm_gmtoff int64 - tm_zone uintptr -} /* time.h:38:1 */ - -type itimerspec = struct { - it_interval struct { - tv_sec time_t - tv_nsec int64 - } - it_value struct { - tv_sec time_t - tv_nsec int64 - } -} /* time.h:80:1 */ - -type sigevent = struct { - sigev_value struct { - _ [0]uint64 - sival_int int32 - _ [4]byte - } - sigev_signo int32 - sigev_notify int32 - sigev_notify_function uintptr - sigev_notify_attributes uintptr - __pad [32]uint8 -} /* time.h:107:1 */ - -type __ptcb = struct { - __f uintptr - __x uintptr - __next uintptr -} /* alltypes.h:260:9 */ - -type sigaltstack = struct { - ss_sp uintptr - ss_flags int32 - _ [4]byte - ss_size size_t -} /* signal.h:44:9 */ - -type stack_t = sigaltstack /* signal.h:44:28 */ - -type greg_t = uint64 /* signal.h:11:23 */ -type gregset_t = [27]uint64 /* signal.h:11:31 */ - -type fpreg_t = struct{ d float64 } /* signal.h:21:3 */ - -type fpregset_t = struct { - fpc uint32 - _ [4]byte - fprs [16]fpreg_t -} /* signal.h:26:3 */ - -type mcontext_t = struct { - psw struct { - mask uint64 - addr uint64 - } - gregs [16]uint64 - aregs [16]uint32 - fpregs fpregset_t -} /* signal.h:34:3 */ - -type sigcontext = struct { - oldmask [1]uint64 - sregs uintptr -} /* signal.h:36:1 */ - -type __ucontext = struct { - uc_flags uint64 - uc_link uintptr - uc_stack stack_t - uc_mcontext mcontext_t - uc_sigmask sigset_t -} /* signal.h:67:9 */ - -type ucontext_t = __ucontext /* signal.h:73:3 */ - -type sigval = struct { - _ [0]uint64 - sival_int int32 - _ [4]byte -} /* time.h:107:1 */ - -type siginfo_t = struct { - si_signo int32 - si_errno int32 - si_code int32 - _ [4]byte - __si_fields struct { - _ [0]uint64 - __pad [112]uint8 - } -} /* signal.h:145:3 */ - -type sigaction = struct { - __sa_handler struct{ sa_handler uintptr } - sa_mask sigset_t - sa_flags int32 - _ [4]byte - sa_restorer uintptr -} /* signal.h:167:1 */ - -type sig_t = uintptr /* signal.h:251:14 */ - -type sig_atomic_t = int32 /* signal.h:269:13 */ - -func a_cas(tls *TLS, p uintptr, t int32, s int32) int32 { /* atomic_arch.h:2:19: */ - panic(`arch/s390x/atomic_arch.h:4:2: assembler statements not supported`) - return t -} - -func a_barrier(tls *TLS) { /* atomic_arch.h:21:20: */ - panic(`arch/s390x/atomic_arch.h:23:2: assembler statements not supported`) -} - -func a_swap(tls *TLS, p uintptr, v int32) int32 { /* atomic.h:108:19: */ - var old int32 - for ok := true; ok; ok = a_cas(tls, p, old, v) != old { - old = *(*int32)(unsafe.Pointer(p)) - } - return old -} - -func a_fetch_add(tls *TLS, p uintptr, v int32) int32 { /* atomic.h:119:19: */ - var old int32 - for ok := true; ok; ok = a_cas(tls, p, old, int32(uint32(old)+uint32(v))) != old { - old = *(*int32)(unsafe.Pointer(p)) - } - return old -} - -func a_fetch_and(tls *TLS, p uintptr, v int32) int32 { /* atomic.h:130:19: */ - var old int32 - for ok := true; ok; ok = a_cas(tls, p, old, old&v) != old { - old = *(*int32)(unsafe.Pointer(p)) - } - return old -} - -func a_fetch_or(tls *TLS, p uintptr, v int32) int32 { /* atomic.h:140:19: */ - var old int32 - for ok := true; ok; ok = a_cas(tls, p, old, old|v) != old { - old = *(*int32)(unsafe.Pointer(p)) - } - return old -} - -func a_and(tls *TLS, p uintptr, v int32) { /* atomic.h:151:20: */ - a_fetch_and(tls, p, v) -} - -func a_or(tls *TLS, p uintptr, v int32) { /* atomic.h:159:20: */ - a_fetch_or(tls, p, v) -} - -func a_or_64(tls *TLS, p uintptr, v uint64_t) { /* atomic.h:220:20: */ - bp := tls.Alloc(8) - defer tls.Free(8) - - *(*struct{ v uint64_t })(unsafe.Pointer(bp)) = func() (r struct{ v uint64_t }) { - *(*uint64_t)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = v - return r - }() - if *(*uint32_t)(unsafe.Pointer(bp)) != 0 { - a_or(tls, p, int32(*(*uint32_t)(unsafe.Pointer(bp)))) - } - if *(*uint32_t)(unsafe.Pointer(bp + 1*4)) != 0 { - a_or(tls, p+uintptr(1)*4, int32(*(*uint32_t)(unsafe.Pointer(bp + 1*4)))) - } -} - -func a_ctz_32(tls *TLS, x uint32_t) int32 { /* atomic.h:256:19: */ - return int32(_sdebruijn328[x&-x*uint32_t(0x076be629)>>27]) -} - -var _sdebruijn328 = [32]uint8{ - uint8(0), uint8(1), uint8(23), uint8(2), uint8(29), uint8(24), uint8(19), uint8(3), uint8(30), uint8(27), uint8(25), uint8(11), uint8(20), uint8(8), uint8(4), uint8(13), - uint8(31), uint8(22), uint8(28), uint8(18), uint8(26), uint8(10), uint8(7), uint8(12), uint8(21), uint8(17), uint8(9), uint8(6), uint8(16), uint8(5), uint8(15), uint8(14), -} /* atomic.h:261:20 */ - -func a_ctz_64(tls *TLS, x uint64_t) int32 { /* atomic.h:272:19: */ - if uint64(unsafe.Sizeof(int64(0))) < uint64(8) { - var y uint32_t = uint32_t(x) - if !(y != 0) { - y = uint32_t(x >> 32) - return 32 + a_ctz_32(tls, y) - } - return a_ctz_32(tls, y) - } - return int32(_sdebruijn648[uint64(x&-x)*0x022fdd63cc95386d>>58]) -} - -var _sdebruijn648 = [64]uint8{ - uint8(0), uint8(1), uint8(2), uint8(53), uint8(3), uint8(7), uint8(54), uint8(27), uint8(4), uint8(38), uint8(41), uint8(8), uint8(34), uint8(55), uint8(48), uint8(28), - uint8(62), uint8(5), uint8(39), uint8(46), uint8(44), uint8(42), uint8(22), uint8(9), uint8(24), uint8(35), uint8(59), uint8(56), uint8(49), uint8(18), uint8(29), uint8(11), - uint8(63), uint8(52), uint8(6), uint8(26), uint8(37), uint8(40), uint8(33), uint8(47), uint8(61), uint8(45), uint8(43), uint8(21), uint8(23), uint8(58), uint8(17), uint8(10), - uint8(51), uint8(25), uint8(36), uint8(32), uint8(60), uint8(20), uint8(57), uint8(16), uint8(50), uint8(31), uint8(19), uint8(15), uint8(30), uint8(14), uint8(13), uint8(12), -} /* atomic.h:274:20 */ - -type __timer = struct { - timerid int32 - _ [4]byte - thread pthread_t -} /* pthread_impl.h:64:1 */ - -func __pthread_self(tls *TLS) uintptr { /* pthread_arch.h:1:30: */ - var self uintptr - panic(`arch/s390x/pthread_arch.h:4:2: assembler statements not supported`) - return self -} - -func __wake(tls *TLS, addr uintptr, cnt int32, priv int32) { /* pthread_impl.h:155:20: */ - if priv != 0 { - priv = 128 - } - if cnt < 0 { - cnt = 0x7fffffff - } - _ = Bool32(__syscall3(tls, int64(238), int64(addr), int64(1|priv), int64(cnt)) != int64(-38) || __syscall3(tls, int64(238), int64(addr), int64(1), int64(cnt)) != 0) -} - -func __futexwait(tls *TLS, addr uintptr, val int32, priv int32) { /* pthread_impl.h:162:20: */ - if priv != 0 { - priv = 128 - } - _ = Bool32(__syscall4(tls, int64(238), int64(addr), int64(0|priv), int64(val), int64(0)) != int64(-38) || __syscall4(tls, int64(238), int64(addr), int64(0), int64(val), int64(0)) != 0) -} - -var X__fsmu8 = [51]uint32_t{ - func() uint32 { - if 0x2 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x2) - }(), func() uint32 { - if 0x3 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x3) - }(), func() uint32 { - if 0x4 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x4) - }(), func() uint32 { - if 0x5 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x5) - }(), func() uint32 { - if 0x6 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x6) - }(), func() uint32 { - if 0x7 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x7) - }(), - func() uint32 { - if 0x8 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x8) - }(), func() uint32 { - if 0x9 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x9) - }(), func() uint32 { - if 0xa < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0xa) - }(), func() uint32 { - if 0xb < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0xb) - }(), func() uint32 { - if 0xc < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0xc) - }(), func() uint32 { - if 0xd < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0xd) - }(), func() uint32 { - if 0xe < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0xe) - }(), func() uint32 { - if 0xf < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0xf) - }(), - func() uint32 { - if 0x0+16 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x0+16) - }(), func() uint32 { - if 0x1+16 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x1+16) - }(), func() uint32 { - if 0x2+16 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x2+16) - }(), func() uint32 { - if 0x3+16 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x3+16) - }(), func() uint32 { - if 0x4+16 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x4+16) - }(), func() uint32 { - if 0x5+16 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x5+16) - }(), func() uint32 { - if 0x6+16 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x6+16) - }(), func() uint32 { - if 0x7+16 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x7+16) - }(), - func() uint32 { - if 0x8+16 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x8+16) - }(), func() uint32 { - if 0x9+16 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0x9+16) - }(), func() uint32 { - if 0xa+16 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0xa+16) - }(), func() uint32 { - if 0xb+16 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0xb+16) - }(), func() uint32 { - if 0xc+16 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0xc+16) - }(), func() uint32 { - if 0xd+16 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0xd+16) - }(), func() uint32 { - if 0xe+16 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0xe+16) - }(), func() uint32 { - if 0xf+16 < 2 { - return Uint32FromInt32(-1) - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23 | uint32_t(0xf+16) - }(), - func() uint32 { - if 0x0 == 0 { - return func() uint32 { - if Int32(0xa0) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0xa0)) - }() << 23 - } - return func() uint32 { - if 0x0 == 0xd { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xa0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(0x0), func() uint32 { - if 0x1 == 0 { - return func() uint32 { - if Int32(0xa0) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0xa0)) - }() << 23 - } - return func() uint32 { - if 0x1 == 0xd { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xa0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(0x1), func() uint32 { - if 0x2 == 0 { - return func() uint32 { - if Int32(0xa0) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0xa0)) - }() << 23 - } - return func() uint32 { - if 0x2 == 0xd { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xa0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(0x2), func() uint32 { - if 0x3 == 0 { - return func() uint32 { - if Int32(0xa0) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0xa0)) - }() << 23 - } - return func() uint32 { - if 0x3 == 0xd { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xa0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(0x3), func() uint32 { - if 0x4 == 0 { - return func() uint32 { - if Int32(0xa0) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0xa0)) - }() << 23 - } - return func() uint32 { - if 0x4 == 0xd { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xa0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(0x4), func() uint32 { - if 0x5 == 0 { - return func() uint32 { - if Int32(0xa0) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0xa0)) - }() << 23 - } - return func() uint32 { - if 0x5 == 0xd { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xa0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(0x5), func() uint32 { - if 0x6 == 0 { - return func() uint32 { - if Int32(0xa0) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0xa0)) - }() << 23 - } - return func() uint32 { - if 0x6 == 0xd { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xa0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(0x6), func() uint32 { - if 0x7 == 0 { - return func() uint32 { - if Int32(0xa0) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0xa0)) - }() << 23 - } - return func() uint32 { - if 0x7 == 0xd { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xa0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(0x7), - func() uint32 { - if 0x8 == 0 { - return func() uint32 { - if Int32(0xa0) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0xa0)) - }() << 23 - } - return func() uint32 { - if 0x8 == 0xd { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xa0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(0x8), func() uint32 { - if 0x9 == 0 { - return func() uint32 { - if Int32(0xa0) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0xa0)) - }() << 23 - } - return func() uint32 { - if 0x9 == 0xd { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xa0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(0x9), func() uint32 { - if 0xa == 0 { - return func() uint32 { - if Int32(0xa0) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0xa0)) - }() << 23 - } - return func() uint32 { - if 0xa == 0xd { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xa0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(0xa), func() uint32 { - if 0xb == 0 { - return func() uint32 { - if Int32(0xa0) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0xa0)) - }() << 23 - } - return func() uint32 { - if 0xb == 0xd { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xa0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(0xb), func() uint32 { - if 0xc == 0 { - return func() uint32 { - if Int32(0xa0) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0xa0)) - }() << 23 - } - return func() uint32 { - if 0xc == 0xd { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xa0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(0xc), func() uint32 { - if 0xd == 0 { - return func() uint32 { - if Int32(0xa0) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0xa0)) - }() << 23 - } - return func() uint32 { - if 0xd == 0xd { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xa0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(0xd), func() uint32 { - if 0xe == 0 { - return func() uint32 { - if Int32(0xa0) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0xa0)) - }() << 23 - } - return func() uint32 { - if 0xe == 0xd { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xa0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(0xe), func() uint32 { - if 0xf == 0 { - return func() uint32 { - if Int32(0xa0) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0xa0)) - }() << 23 - } - return func() uint32 { - if 0xf == 0xd { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xa0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(0xf), - func() uint32 { - if 0x0 >= 5 { - return uint32(0) - } - return func() uint32 { - if 0x0 == 0 { - return func() uint32 { - if Int32(0x90) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x90)) - }() << 23 - } - return func() uint32 { - if 0x0 == 4 { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0x90)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>12 | uint32_t(0x0), func() uint32 { - if 0x1 >= 5 { - return uint32(0) - } - return func() uint32 { - if 0x1 == 0 { - return func() uint32 { - if Int32(0x90) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x90)) - }() << 23 - } - return func() uint32 { - if 0x1 == 4 { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0x90)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>12 | uint32_t(0x1), func() uint32 { - if 0x2 >= 5 { - return uint32(0) - } - return func() uint32 { - if 0x2 == 0 { - return func() uint32 { - if Int32(0x90) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x90)) - }() << 23 - } - return func() uint32 { - if 0x2 == 4 { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0x90)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>12 | uint32_t(0x2), func() uint32 { - if 0x3 >= 5 { - return uint32(0) - } - return func() uint32 { - if 0x3 == 0 { - return func() uint32 { - if Int32(0x90) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x90)) - }() << 23 - } - return func() uint32 { - if 0x3 == 4 { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0x90)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>12 | uint32_t(0x3), func() uint32 { - if 0x4 >= 5 { - return uint32(0) - } - return func() uint32 { - if 0x4 == 0 { - return func() uint32 { - if Int32(0x90) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x90)) - }() << 23 - } - return func() uint32 { - if 0x4 == 4 { - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0x90)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - } - return func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }() << 23 - }() - }() - }() | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>6 | uint32_t(func() uint32 { - if Int32(0x80) == Int32(0x80) { - return Uint32(Uint32(0x40) - Uint32FromInt32(0xc0)) - } - return Uint32(Uint32(0) - Uint32FromInt32(0x80)) - }()<<23)>>12 | uint32_t(0x4), -} /* internal.c:18:16 */ - -type wint_t = uint32 /* alltypes.h:185:18 */ - -type wctype_t = uint64 /* alltypes.h:190:23 */ - -type __mbstate_t = struct { - __opaque1 uint32 - __opaque2 uint32 -} /* alltypes.h:324:9 */ - -type mbstate_t = __mbstate_t /* alltypes.h:324:63 */ - -func Xmbrtowc(tls *TLS, wc uintptr, src uintptr, n size_t, st uintptr) size_t { /* mbrtowc.c:6:8: */ - bp := tls.Alloc(4) - defer tls.Free(4) - - var c uint32 - var s uintptr - var N uint32 - // var dummy wchar_t at bp, 4 - s = src - N = uint32(n) - - if !!(st != 0) { - goto __1 - } - st = uintptr(unsafe.Pointer(&_sinternal_state)) -__1: - ; - c = *(*uint32)(unsafe.Pointer(st)) - - if !!(s != 0) { - goto __2 - } - if !(c != 0) { - goto __4 - } - goto ilseq -__4: - ; - return uint64(0) - goto __3 -__2: - if !!(wc != 0) { - goto __5 - } - wc = bp /* &dummy */ -__5: - ; -__3: - ; - - if !!(n != 0) { - goto __6 - } - return Uint64FromInt32(-2) -__6: - ; - if !!(c != 0) { - goto __7 - } - if !(int32(*(*uint8)(unsafe.Pointer(s))) < 0x80) { - goto __8 - } - return BoolUint64(!!(AssignPtrInt32(wc, wchar_t(*(*uint8)(unsafe.Pointer(s)))) != 0)) -__8: - ; - if !(func() int32 { - if !!(int32(*(*uintptr)(unsafe.Pointer((*__pthread)(unsafe.Pointer(__pthread_self(tls))).locale))) != 0) { - return 4 - } - return 1 - }() == 1) { - goto __9 - } - *(*wchar_t)(unsafe.Pointer(wc)) = 0xdfff & int32(int8(*(*uint8)(unsafe.Pointer(s)))) - return 1 -__9: - ; - if !(uint32(*(*uint8)(unsafe.Pointer(s)))-0xc2 > 0xf4-0xc2) { - goto __10 - } - goto ilseq -__10: - ; - c = X__fsmu8[uint32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&s, 1))))-0xc2] - n-- -__7: - ; - - if !(n != 0) { - goto __11 - } - if !((int32(*(*uint8)(unsafe.Pointer(s)))>>3-0x10|(int32(*(*uint8)(unsafe.Pointer(s)))>>3+int32_t(c)>>26))&CplInt32(7) != 0) { - goto __12 - } - goto ilseq -__12: - ; -loop: - c = c<<6 | uint32(int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&s, 1))))-0x80) - n-- - if !!(c&(uint32(1)<<31) != 0) { - goto __13 - } - *(*uint32)(unsafe.Pointer(st)) = uint32(0) - *(*wchar_t)(unsafe.Pointer(wc)) = wchar_t(c) - return size_t(N) - n -__13: - ; - if !(n != 0) { - goto __14 - } - if !(uint32(*(*uint8)(unsafe.Pointer(s)))-0x80 >= uint32(0x40)) { - goto __15 - } - goto ilseq -__15: - ; - goto loop -__14: - ; -__11: - ; - - *(*uint32)(unsafe.Pointer(st)) = c - return Uint64FromInt32(-2) -ilseq: - *(*uint32)(unsafe.Pointer(st)) = uint32(0) - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 84 - return Uint64FromInt32(-1) -} - -var _sinternal_state uint32 /* mbrtowc.c:8:18: */ - -func Xmbsinit(tls *TLS, st uintptr) int32 { /* mbsinit.c:3:5: */ - return Bool32(!(st != 0) || !(int32(*(*uint32)(unsafe.Pointer(st))) != 0)) -} - -type imaxdiv_t = struct { - quot intmax_t - rem intmax_t -} /* inttypes.h:14:40 */ - -type socklen_t = uint32 /* alltypes.h:348:18 */ - -type sa_family_t = uint16 /* alltypes.h:353:24 */ - -type msghdr = struct { - msg_name uintptr - msg_namelen socklen_t - _ [4]byte - msg_iov uintptr - __pad1 int32 - msg_iovlen int32 - msg_control uintptr - __pad2 int32 - msg_controllen socklen_t - msg_flags int32 - _ [4]byte -} /* socket.h:22:1 */ - -type cmsghdr = struct { - __pad1 int32 - cmsg_len socklen_t - cmsg_level int32 - cmsg_type int32 -} /* socket.h:44:1 */ - -type linger = struct { - l_onoff int32 - l_linger int32 -} /* socket.h:74:1 */ - -type sockaddr = struct { - sa_family sa_family_t - sa_data [14]uint8 -} /* socket.h:367:1 */ - -type sockaddr_storage = struct { - ss_family sa_family_t - __ss_padding [118]uint8 - __ss_align uint64 -} /* socket.h:372:1 */ - -type in_port_t = uint16_t /* in.h:12:18 */ -type in_addr_t = uint32_t /* in.h:13:18 */ -type in_addr = struct{ s_addr in_addr_t } /* in.h:14:1 */ - -type sockaddr_in = struct { - sin_family sa_family_t - sin_port in_port_t - sin_addr struct{ s_addr in_addr_t } - sin_zero [8]uint8_t -} /* in.h:16:1 */ - -type in6_addr = struct { - __in6_union struct { - _ [0]uint32 - __s6_addr [16]uint8_t - } -} /* in.h:23:1 */ - -type sockaddr_in6 = struct { - sin6_family sa_family_t - sin6_port in_port_t - sin6_flowinfo uint32_t - sin6_addr struct { - __in6_union struct { - _ [0]uint32 - __s6_addr [16]uint8_t - } - } - sin6_scope_id uint32_t -} /* in.h:34:1 */ - -type ipv6_mreq = struct { - ipv6mr_multiaddr struct { - __in6_union struct { - _ [0]uint32 - __s6_addr [16]uint8_t - } - } - ipv6mr_interface uint32 -} /* in.h:42:1 */ - -type ip_opts = struct { - ip_dst struct{ s_addr in_addr_t } - ip_opts [40]uint8 -} /* in.h:229:1 */ - -type ip_mreq = struct { - imr_multiaddr struct{ s_addr in_addr_t } - imr_interface struct{ s_addr in_addr_t } -} /* in.h:247:1 */ - -type ip_mreqn = struct { - imr_multiaddr struct{ s_addr in_addr_t } - imr_address struct{ s_addr in_addr_t } - imr_ifindex int32 -} /* in.h:252:1 */ - -type ip_mreq_source = struct { - imr_multiaddr struct{ s_addr in_addr_t } - imr_interface struct{ s_addr in_addr_t } - imr_sourceaddr struct{ s_addr in_addr_t } -} /* in.h:258:1 */ - -type ip_msfilter = struct { - imsf_multiaddr struct{ s_addr in_addr_t } - imsf_interface struct{ s_addr in_addr_t } - imsf_fmode uint32_t - imsf_numsrc uint32_t - imsf_slist [1]struct{ s_addr in_addr_t } -} /* in.h:264:1 */ - -type group_req = struct { - gr_interface uint32_t - _ [4]byte - gr_group struct { - ss_family sa_family_t - __ss_padding [118]uint8 - __ss_align uint64 - } -} /* in.h:275:1 */ - -type group_source_req = struct { - gsr_interface uint32_t - _ [4]byte - gsr_group struct { - ss_family sa_family_t - __ss_padding [118]uint8 - __ss_align uint64 - } - gsr_source struct { - ss_family sa_family_t - __ss_padding [118]uint8 - __ss_align uint64 - } -} /* in.h:280:1 */ - -type group_filter = struct { - gf_interface uint32_t - _ [4]byte - gf_group struct { - ss_family sa_family_t - __ss_padding [118]uint8 - __ss_align uint64 - } - gf_fmode uint32_t - gf_numsrc uint32_t - gf_slist [1]struct { - ss_family sa_family_t - __ss_padding [118]uint8 - __ss_align uint64 - } -} /* in.h:286:1 */ - -type in_pktinfo = struct { - ipi_ifindex int32 - ipi_spec_dst struct{ s_addr in_addr_t } - ipi_addr struct{ s_addr in_addr_t } -} /* in.h:297:1 */ - -type in6_pktinfo = struct { - ipi6_addr struct { - __in6_union struct { - _ [0]uint32 - __s6_addr [16]uint8_t - } - } - ipi6_ifindex uint32 -} /* in.h:303:1 */ - -type ip6_mtuinfo = struct { - ip6m_addr struct { - sin6_family sa_family_t - sin6_port in_port_t - sin6_flowinfo uint32_t - sin6_addr struct { - __in6_union struct { - _ [0]uint32 - __s6_addr [16]uint8_t - } - } - sin6_scope_id uint32_t - } - ip6m_mtu uint32_t -} /* in.h:308:1 */ - -type addrinfo = struct { - ai_flags int32 - ai_family int32 - ai_socktype int32 - ai_protocol int32 - ai_addrlen socklen_t - _ [4]byte - ai_addr uintptr - ai_canonname uintptr - ai_next uintptr -} /* netdb.h:16:1 */ - -// Legacy functions follow (marked OBsolete in SUS) - -type netent = struct { - n_name uintptr - n_aliases uintptr - n_addrtype int32 - n_net uint32_t -} /* netdb.h:62:1 */ - -type hostent = struct { - h_name uintptr - h_aliases uintptr - h_addrtype int32 - h_length int32 - h_addr_list uintptr -} /* netdb.h:69:1 */ - -type servent = struct { - s_name uintptr - s_aliases uintptr - s_port int32 - _ [4]byte - s_proto uintptr -} /* netdb.h:78:1 */ - -type protoent = struct { - p_name uintptr - p_aliases uintptr - p_proto int32 - _ [4]byte -} /* netdb.h:85:1 */ - -type aibuf = struct { - ai struct { - ai_flags int32 - ai_family int32 - ai_socktype int32 - ai_protocol int32 - ai_addrlen socklen_t - _ [4]byte - ai_addr uintptr - ai_canonname uintptr - ai_next uintptr - } - sa struct { - sin struct { - sin_family sa_family_t - sin_port in_port_t - sin_addr struct{ s_addr in_addr_t } - sin_zero [8]uint8_t - } - _ [12]byte - } - lock [1]int32 - slot int16 - ref int16 - _ [4]byte -} /* lookup.h:10:1 */ - -type sa = struct { - sin struct { - sin_family sa_family_t - sin_port in_port_t - sin_addr struct{ s_addr in_addr_t } - sin_zero [8]uint8_t - } - _ [12]byte -} /* lookup.h:10:1 */ - -type address = struct { - family int32 - scopeid uint32 - addr [16]uint8_t - sortkey int32 -} /* lookup.h:20:1 */ - -type service = struct { - port uint16_t - proto uint8 - socktype uint8 -} /* lookup.h:27:1 */ - -type resolvconf = struct { - ns [3]struct { - family int32 - scopeid uint32 - addr [16]uint8_t - sortkey int32 - } - nns uint32 - attempts uint32 - ndots uint32 - timeout uint32 -} /* lookup.h:34:1 */ - -func Xfreeaddrinfo(tls *TLS, p uintptr) { /* freeaddrinfo.c:7:6: */ - var cnt size_t - cnt = uint64(1) -__1: - if !((*addrinfo)(unsafe.Pointer(p)).ai_next != 0) { - goto __3 - } - goto __2 -__2: - cnt++ - p = (*addrinfo)(unsafe.Pointer(p)).ai_next - goto __1 - goto __3 -__3: - ; - var b uintptr = p - uintptr(uint64(uintptr(0))) - b -= 88 * uintptr((*aibuf)(unsafe.Pointer(b)).slot) - //TODO LOCK(b->lock); - if !(int32(AssignSubPtrInt16(b+82, int16(cnt))) != 0) { - Xfree(tls, b) - } - //TODO else UNLOCK(b->lock); -} - -func Xgetaddrinfo(tls *TLS, host uintptr, serv uintptr, hint uintptr, res uintptr) int32 { /* getaddrinfo.c:12:5: */ - bp := tls.Alloc(1608) - defer tls.Free(1608) - - // var ports [2]service at bp, 8 - - // var addrs [48]address at bp+8, 1344 - - // var canon [256]uint8 at bp+1352, 256 - - var outcanon uintptr - var nservs int32 - var naddrs int32 - var nais int32 - var canon_len int32 - var i int32 - var j int32 - var k int32 - var family int32 = 0 - var flags int32 = 0 - var proto int32 = 0 - var socktype int32 = 0 - var out uintptr - - if !(host != 0) && !(serv != 0) { - return -2 - } - - if hint != 0 { - family = (*addrinfo)(unsafe.Pointer(hint)).ai_family - flags = (*addrinfo)(unsafe.Pointer(hint)).ai_flags - proto = (*addrinfo)(unsafe.Pointer(hint)).ai_protocol - socktype = (*addrinfo)(unsafe.Pointer(hint)).ai_socktype - - var mask int32 = 0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x400 - if flags&mask != flags { - return -1 - } - - switch family { - case 2: - fallthrough - case 10: - fallthrough - case 0: - break - fallthrough - default: - return -6 - } - } - - if flags&0x20 != 0 { - Xabort(tls) //TODO- - // /* Define the "an address is configured" condition for address - // * families via ability to create a socket for the family plus - // * routability of the loopback address for the family. */ - // static const struct sockaddr_in lo4 = { - // .sin_family = AF_INET, .sin_port = 65535, - // .sin_addr.s_addr = __BYTE_ORDER == __BIG_ENDIAN - // ? 0x7f000001 : 0x0100007f - // }; - // static const struct sockaddr_in6 lo6 = { - // .sin6_family = AF_INET6, .sin6_port = 65535, - // .sin6_addr = IN6ADDR_LOOPBACK_INIT - // }; - // int tf[2] = { AF_INET, AF_INET6 }; - // const void *ta[2] = { &lo4, &lo6 }; - // socklen_t tl[2] = { sizeof lo4, sizeof lo6 }; - // for (i=0; i<2; i++) { - // if (family==tf[1-i]) continue; - // int s = socket(tf[i], SOCK_CLOEXEC|SOCK_DGRAM, - // IPPROTO_UDP); - // if (s>=0) { - // int cs; - // pthread_setcancelstate( - // PTHREAD_CANCEL_DISABLE, &cs); - // int r = connect(s, ta[i], tl[i]); - // pthread_setcancelstate(cs, 0); - // close(s); - // if (!r) continue; - // } - // switch (errno) { - // case EADDRNOTAVAIL: - // case EAFNOSUPPORT: - // case EHOSTUNREACH: - // case ENETDOWN: - // case ENETUNREACH: - // break; - // default: - // return EAI_SYSTEM; - // } - // if (family == tf[i]) return EAI_NONAME; - // family = tf[1-i]; - // } - } - - nservs = X__lookup_serv(tls, bp, serv, proto, socktype, flags) - if nservs < 0 { - return nservs - } - - naddrs = X__lookup_name(tls, bp+8, bp+1352, host, family, flags) - if naddrs < 0 { - return naddrs - } - - nais = nservs * naddrs - canon_len = int32(Xstrlen(tls, bp+1352)) - out = Xcalloc(tls, uint64(1), uint64(nais)*uint64(unsafe.Sizeof(aibuf{}))+uint64(canon_len)+uint64(1)) - if !(out != 0) { - return -10 - } - - if canon_len != 0 { - outcanon = out + uintptr(nais)*88 - Xmemcpy(tls, outcanon, bp+1352, uint64(canon_len+1)) - } else { - outcanon = uintptr(0) - } - - for k = AssignInt32(&i, 0); i < naddrs; i++ { - j = 0 - __1: - if !(j < nservs) { - goto __3 - } - { - (*aibuf)(unsafe.Pointer(out + uintptr(k)*88)).slot = int16(k) - //TODO out[k].ai = (struct addrinfo){ - //TODO .ai_family = addrs[i].family, - //TODO .ai_socktype = ports[j].socktype, - //TODO .ai_protocol = ports[j].proto, - //TODO .ai_addrlen = addrs[i].family == AF_INET - //TODO ? sizeof(struct sockaddr_in) - //TODO : sizeof(struct sockaddr_in6), - //TODO .ai_addr = (void *)&out[k].sa, - //TODO .ai_canonname = outcanon }; - (*aibuf)(unsafe.Pointer(out + uintptr(k)*88)).ai.ai_family = (*address)(unsafe.Pointer(bp + 8 + uintptr(i)*28)).family - (*aibuf)(unsafe.Pointer(out + uintptr(k)*88)).ai.ai_socktype = int32((*service)(unsafe.Pointer(bp + uintptr(j)*4)).socktype) - (*aibuf)(unsafe.Pointer(out + uintptr(k)*88)).ai.ai_protocol = int32((*service)(unsafe.Pointer(bp + uintptr(j)*4)).proto) - (*aibuf)(unsafe.Pointer(out + uintptr(k)*88)).ai.ai_addrlen = func() uint32 { - if (*address)(unsafe.Pointer(bp+8+uintptr(i)*28)).family == 2 { - return uint32(unsafe.Sizeof(sockaddr_in{})) - } - return uint32(unsafe.Sizeof(sockaddr_in6{})) - }() - (*aibuf)(unsafe.Pointer(out + uintptr(k)*88)).ai.ai_addr = out + uintptr(k)*88 + 48 - (*aibuf)(unsafe.Pointer(out + uintptr(k)*88)).ai.ai_canonname = outcanon - if k != 0 { - (*aibuf)(unsafe.Pointer(out + uintptr(k-1)*88)).ai.ai_next = out + uintptr(k)*88 - } - switch (*address)(unsafe.Pointer(bp + 8 + uintptr(i)*28)).family { - case 2: - (*sockaddr_in)(unsafe.Pointer(out + uintptr(k)*88 + 48)).sin_family = sa_family_t(2) - (*sockaddr_in)(unsafe.Pointer(out + uintptr(k)*88 + 48)).sin_port = Xhtons(tls, (*service)(unsafe.Pointer(bp+uintptr(j)*4)).port) - Xmemcpy(tls, out+uintptr(k)*88+48+4, bp+8+uintptr(i)*28+8, uint64(4)) - break - case 10: - (*sockaddr_in6)(unsafe.Pointer(out + uintptr(k)*88 + 48)).sin6_family = sa_family_t(10) - (*sockaddr_in6)(unsafe.Pointer(out + uintptr(k)*88 + 48)).sin6_port = Xhtons(tls, (*service)(unsafe.Pointer(bp+uintptr(j)*4)).port) - (*sockaddr_in6)(unsafe.Pointer(out + uintptr(k)*88 + 48)).sin6_scope_id = (*address)(unsafe.Pointer(bp + 8 + uintptr(i)*28)).scopeid - Xmemcpy(tls, out+uintptr(k)*88+48+8, bp+8+uintptr(i)*28+8, uint64(16)) - break - } - - } - goto __2 - __2: - j++ - k++ - goto __1 - goto __3 - __3: - } - (*aibuf)(unsafe.Pointer(out)).ref = int16(nais) - *(*uintptr)(unsafe.Pointer(res)) = out - return 0 -} - -type ucred = struct { - pid pid_t - uid uid_t - gid gid_t -} /* socket.h:57:1 */ - -type mmsghdr = struct { - msg_hdr struct { - msg_name uintptr - msg_namelen socklen_t - _ [4]byte - msg_iov uintptr - __pad1 int32 - msg_iovlen int32 - msg_control uintptr - __pad2 int32 - msg_controllen socklen_t - msg_flags int32 - _ [4]byte - } - msg_len uint32 - _ [4]byte -} /* socket.h:63:1 */ - -func Xgethostbyaddr(tls *TLS, a uintptr, l socklen_t, af int32) uintptr { /* gethostbyaddr.c:7:16: */ - bp := tls.Alloc(8) - defer tls.Free(8) - - var size size_t = uint64(63) - // var res uintptr at bp, 8 - - var err int32 - for ok := true; ok; ok = err == 34 { - Xfree(tls, _sh) - _sh = Xmalloc(tls, AssignAddUint64(&size, size+uint64(1))) - if !(_sh != 0) { - *(*int32)(unsafe.Pointer(X__h_errno_location(tls))) = 3 - return uintptr(0) - } - err = Xgethostbyaddr_r(tls, a, l, af, _sh, - _sh+uintptr(1)*32, size-size_t(unsafe.Sizeof(hostent{})), bp, X__h_errno_location(tls)) - } - if err != 0 { - return uintptr(0) - } - return _sh -} - -var _sh uintptr /* gethostbyaddr.c:9:24: */ - -func Xgethostbyaddr_r(tls *TLS, a uintptr, l socklen_t, af int32, h uintptr, buf uintptr, buflen size_t, res uintptr, err uintptr) int32 { /* gethostbyaddr_r.c:10:5: */ - bp := tls.Alloc(28) - defer tls.Free(28) - - //TODO union { - //TODO struct sockaddr_in sin; - //TODO struct sockaddr_in6 sin6; - //TODO } sa = { .sin.sin_family = af }; - *(*struct { - sin sockaddr_in - _ [12]byte - })(unsafe.Pointer(bp)) = struct { - sin sockaddr_in - _ [12]byte - }{} //TODO- - (*sockaddr_in)(unsafe.Pointer(bp)).sin_family = sa_family_t(af) //TODO- - var sl socklen_t - if af == 10 { - sl = uint32(unsafe.Sizeof(sockaddr_in6{})) - } else { - sl = uint32(unsafe.Sizeof(sockaddr_in{})) - } - var i int32 - - *(*uintptr)(unsafe.Pointer(res)) = uintptr(0) - - // Load address argument into sockaddr structure - if af == 10 && l == socklen_t(16) { - Xmemcpy(tls, bp+8, a, uint64(16)) - } else if af == 2 && l == socklen_t(4) { - Xmemcpy(tls, bp+4, a, uint64(4)) - } else { - *(*int32)(unsafe.Pointer(err)) = 3 - return 22 - } - - // Align buffer and check for space for pointers and ip address - i = int32(uintptr_t(buf) & (uint64(unsafe.Sizeof(uintptr(0))) - uint64(1))) - if !(i != 0) { - i = int32(unsafe.Sizeof(uintptr(0))) - } - if buflen <= uint64(5)*uint64(unsafe.Sizeof(uintptr(0)))-uint64(i)+uint64(l) { - return 34 - } - buf += uintptr(uint64(unsafe.Sizeof(uintptr(0))) - uint64(i)) - buflen = buflen - (uint64(5)*uint64(unsafe.Sizeof(uintptr(0))) - uint64(i) + uint64(l)) - - (*hostent)(unsafe.Pointer(h)).h_addr_list = buf - buf += uintptr(uint64(2) * uint64(unsafe.Sizeof(uintptr(0)))) - (*hostent)(unsafe.Pointer(h)).h_aliases = buf - buf += uintptr(uint64(2) * uint64(unsafe.Sizeof(uintptr(0)))) - - *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_addr_list)) = buf - Xmemcpy(tls, *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_addr_list)), a, uint64(l)) - buf += uintptr(l) - *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_addr_list + 1*8)) = uintptr(0) - *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_aliases)) = buf - *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_aliases + 1*8)) = uintptr(0) - - switch Xgetnameinfo(tls, bp, sl, buf, uint32(buflen), uintptr(0), uint32(0), 0) { - case -3: - *(*int32)(unsafe.Pointer(err)) = 2 - return 11 - case -12: - return 34 - default: - fallthrough - case -10: - fallthrough - case -11: - fallthrough - case -4: - *(*int32)(unsafe.Pointer(err)) = 3 - return *(*int32)(unsafe.Pointer(X___errno_location(tls))) - case 0: - break - } - - (*hostent)(unsafe.Pointer(h)).h_addrtype = af - (*hostent)(unsafe.Pointer(h)).h_length = int32(l) - (*hostent)(unsafe.Pointer(h)).h_name = *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_aliases)) - *(*uintptr)(unsafe.Pointer(res)) = h - return 0 -} - -func Xgethostbyname(tls *TLS, name uintptr) uintptr { /* gethostbyname.c:8:16: */ - return Xgethostbyname2(tls, name, 2) -} - -func Xgethostbyname2(tls *TLS, name uintptr, af int32) uintptr { /* gethostbyname2.c:8:16: */ - bp := tls.Alloc(8) - defer tls.Free(8) - - var size size_t = uint64(63) - // var res uintptr at bp, 8 - - var err int32 - for ok := true; ok; ok = err == 34 { - Xfree(tls, _sh1) - _sh1 = Xmalloc(tls, AssignAddUint64(&size, size+uint64(1))) - if !(_sh1 != 0) { - *(*int32)(unsafe.Pointer(X__h_errno_location(tls))) = 3 - return uintptr(0) - } - err = Xgethostbyname2_r(tls, name, af, _sh1, - _sh1+uintptr(1)*32, size-size_t(unsafe.Sizeof(hostent{})), bp, X__h_errno_location(tls)) - } - if err != 0 { - return uintptr(0) - } - return _sh1 -} - -var _sh1 uintptr /* gethostbyname2.c:10:24: */ - -func Xgethostbyname2_r(tls *TLS, name uintptr, af int32, h uintptr, buf uintptr, buflen size_t, res uintptr, err uintptr) int32 { /* gethostbyname2_r.c:11:5: */ - bp := tls.Alloc(1600) - defer tls.Free(1600) - - // var addrs [48]address at bp, 1344 - - // var canon [256]uint8 at bp+1344, 256 - - var i int32 - var cnt int32 - var align size_t - var need size_t - - *(*uintptr)(unsafe.Pointer(res)) = uintptr(0) - cnt = X__lookup_name(tls, bp, bp+1344, name, af, 0x02) - if cnt < 0 { - switch cnt { - case -2: - *(*int32)(unsafe.Pointer(err)) = 1 - return 2 - fallthrough - case -3: - *(*int32)(unsafe.Pointer(err)) = 2 - return 11 - fallthrough - default: - fallthrough - case -4: - *(*int32)(unsafe.Pointer(err)) = 3 - return 74 - fallthrough - case -10: - fallthrough - case -11: - *(*int32)(unsafe.Pointer(err)) = 3 - return *(*int32)(unsafe.Pointer(X___errno_location(tls))) - } - } - - (*hostent)(unsafe.Pointer(h)).h_addrtype = af - (*hostent)(unsafe.Pointer(h)).h_length = func() int32 { - if af == 10 { - return 16 - } - return 4 - }() - - // Align buffer - align = -uintptr_t(buf) & (uint64(unsafe.Sizeof(uintptr(0))) - uint64(1)) - - need = uint64(4) * uint64(unsafe.Sizeof(uintptr(0))) - need = need + uint64(cnt+1)*(uint64(unsafe.Sizeof(uintptr(0)))+uint64((*hostent)(unsafe.Pointer(h)).h_length)) - need = need + (Xstrlen(tls, name) + uint64(1)) - need = need + (Xstrlen(tls, bp+1344) + uint64(1)) - need = need + align - - if need > buflen { - return 34 - } - - buf += uintptr(align) - (*hostent)(unsafe.Pointer(h)).h_aliases = buf - buf += uintptr(uint64(3) * uint64(unsafe.Sizeof(uintptr(0)))) - (*hostent)(unsafe.Pointer(h)).h_addr_list = buf - buf += uintptr(uint64(cnt+1) * uint64(unsafe.Sizeof(uintptr(0)))) - - for i = 0; i < cnt; i++ { - *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_addr_list + uintptr(i)*8)) = buf - buf += uintptr((*hostent)(unsafe.Pointer(h)).h_length) - Xmemcpy(tls, *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_addr_list + uintptr(i)*8)), bp+uintptr(i)*28+8, uint64((*hostent)(unsafe.Pointer(h)).h_length)) - } - *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_addr_list + uintptr(i)*8)) = uintptr(0) - - (*hostent)(unsafe.Pointer(h)).h_name = AssignPtrUintptr((*hostent)(unsafe.Pointer(h)).h_aliases, buf) - Xstrcpy(tls, (*hostent)(unsafe.Pointer(h)).h_name, bp+1344) - buf += uintptr(Xstrlen(tls, (*hostent)(unsafe.Pointer(h)).h_name) + uint64(1)) - - if Xstrcmp(tls, (*hostent)(unsafe.Pointer(h)).h_name, name) != 0 { - *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_aliases + 1*8)) = buf - Xstrcpy(tls, *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_aliases + 1*8)), name) - buf += uintptr(Xstrlen(tls, *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_aliases + 1*8))) + uint64(1)) - } else { - *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_aliases + 1*8)) = uintptr(0) - } - - *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_aliases + 2*8)) = uintptr(0) - - *(*uintptr)(unsafe.Pointer(res)) = h - return 0 -} - -func Xgethostbyname_r(tls *TLS, name uintptr, h uintptr, buf uintptr, buflen size_t, res uintptr, err uintptr) int32 { /* gethostbyname_r.c:6:5: */ - return Xgethostbyname2_r(tls, name, 2, h, buf, buflen, res, err) -} - -type if_nameindex = struct { - if_index uint32 - _ [4]byte - if_name uintptr -} /* if.h:12:1 */ - -type ifaddr = struct { - ifa_addr struct { - sa_family sa_family_t - sa_data [14]uint8 - } - ifa_ifu struct { - ifu_broadaddr struct { - sa_family sa_family_t - sa_data [14]uint8 - } - } - ifa_ifp uintptr - ifa_next uintptr -} /* if.h:51:1 */ - -type ifmap = struct { - mem_start uint64 - mem_end uint64 - base_addr uint16 - irq uint8 - dma uint8 - port uint8 - _ [3]byte -} /* if.h:64:1 */ - -type ifreq = struct { - ifr_ifrn struct{ ifrn_name [16]uint8 } - ifr_ifru struct { - _ [0]uint64 - ifru_addr struct { - sa_family sa_family_t - sa_data [14]uint8 - } - _ [8]byte - } -} /* if.h:76:1 */ - -type ifconf = struct { - ifc_len int32 - _ [4]byte - ifc_ifcu struct{ ifcu_buf uintptr } -} /* if.h:116:1 */ - -type ns_sect = uint32 /* nameser.h:37:3 */ - -type __ns_msg = struct { - _msg uintptr - _eom uintptr - _id uint16_t - _flags uint16_t - _counts [4]uint16_t - _ [4]byte - _sections [4]uintptr - _sect ns_sect - _rrnum int32 - _msg_ptr uintptr -} /* nameser.h:39:9 */ - -type ns_msg = __ns_msg /* nameser.h:46:3 */ - -type _ns_flagdata = struct { - mask int32 - shift int32 -} /* nameser.h:48:1 */ - -type __ns_rr = struct { - name [1025]uint8 - _ [1]byte - __type uint16_t - rr_class uint16_t - _ [2]byte - ttl uint32_t - rdlength uint16_t - _ [2]byte - rdata uintptr -} /* nameser.h:59:9 */ - -type ns_rr = __ns_rr /* nameser.h:66:3 */ - -type ns_flag = uint32 /* nameser.h:87:3 */ - -type ns_opcode = uint32 /* nameser.h:96:3 */ - -type ns_rcode = uint32 /* nameser.h:115:3 */ - -type ns_update_operation = uint32 /* nameser.h:121:3 */ - -type ns_tsig_key1 = struct { - name [1025]uint8 - alg [1025]uint8 - _ [6]byte - data uintptr - len int32 - _ [4]byte -} /* nameser.h:123:1 */ - -type ns_tsig_key = ns_tsig_key1 /* nameser.h:128:28 */ - -type ns_tcp_tsig_state1 = struct { - counter int32 - _ [4]byte - key uintptr - ctx uintptr - sig [512]uint8 - siglen int32 - _ [4]byte -} /* nameser.h:130:1 */ - -type ns_tcp_tsig_state = ns_tcp_tsig_state1 /* nameser.h:137:34 */ - -type ns_type = uint32 /* nameser.h:200:3 */ - -type ns_class = uint32 /* nameser.h:219:3 */ - -type ns_key_types = uint32 /* nameser.h:226:3 */ - -type ns_cert_types = uint32 /* nameser.h:234:3 */ - -type HEADER = struct { - _ [0]uint32 - id uint32 /* unsigned id: 16, unsigned qr: 1, unsigned opcode: 4, unsigned aa: 1, unsigned tc: 1, unsigned rd: 1, unsigned ra: 1, unsigned unused: 1, unsigned ad: 1, unsigned cd: 1, unsigned rcode: 4 */ - qdcount uint32 /* unsigned qdcount: 16, unsigned ancount: 16 */ - nscount uint32 /* unsigned nscount: 16, unsigned arcount: 16 */ -} /* nameser.h:353:3 */ - -// unused; purely for broken apps -type __res_state = struct { - retrans int32 - retry int32 - options uint64 - nscount int32 - nsaddr_list [3]struct { - sin_family sa_family_t - sin_port in_port_t - sin_addr struct{ s_addr in_addr_t } - sin_zero [8]uint8_t - } - id uint16 - _ [2]byte - dnsrch [7]uintptr - defdname [256]uint8 - pfcode uint64 - ndots uint32 /* unsigned ndots: 4, unsigned nsort: 4, unsigned ipv6_unavail: 1, unsigned unused: 23 */ - _ [4]byte - sort_list [10]struct { - addr struct{ s_addr in_addr_t } - mask uint32_t - } - qhook uintptr - rhook uintptr - res_h_errno int32 - _vcsock int32 - _flags uint32 - _ [4]byte - _u struct { - _ [0]uint64 - pad [52]uint8 - _ [4]byte - } -} /* resolv.h:26:9 */ - -// unused; purely for broken apps -type res_state = uintptr /* resolv.h:62:3 */ - -type res_sym = struct { - number int32 - _ [4]byte - name uintptr - humanname uintptr -} /* resolv.h:70:1 */ - -func itoa(tls *TLS, p uintptr, x uint32) uintptr { /* getnameinfo.c:18:13: */ - p += uintptr(uint64(3) * uint64(unsafe.Sizeof(int32(0)))) - *(*uint8)(unsafe.Pointer(PreDecUintptr(&p, 1))) = uint8(0) - for ok := true; ok; ok = x != 0 { - *(*uint8)(unsafe.Pointer(PreDecUintptr(&p, 1))) = uint8(uint32('0') + x%uint32(10)) - x = x / uint32(10) - } - return p -} - -func mkptr4(tls *TLS, s uintptr, ip uintptr) { /* getnameinfo.c:28:13: */ - bp := tls.Alloc(32) - defer tls.Free(32) - - Xsprintf(tls, s, ts+25, - VaList(bp, int32(*(*uint8)(unsafe.Pointer(ip + 3))), int32(*(*uint8)(unsafe.Pointer(ip + 2))), int32(*(*uint8)(unsafe.Pointer(ip + 1))), int32(*(*uint8)(unsafe.Pointer(ip))))) -} - -func mkptr6(tls *TLS, s uintptr, ip uintptr) { /* getnameinfo.c:34:13: */ - var i int32 - for i = 15; i >= 0; i-- { - *(*uint8)(unsafe.Pointer(PostIncUintptr(&s, 1))) = _sxdigits[int32(*(*uint8)(unsafe.Pointer(ip + uintptr(i))))&15] - *(*uint8)(unsafe.Pointer(PostIncUintptr(&s, 1))) = uint8('.') - *(*uint8)(unsafe.Pointer(PostIncUintptr(&s, 1))) = _sxdigits[int32(*(*uint8)(unsafe.Pointer(ip + uintptr(i))))>>4] - *(*uint8)(unsafe.Pointer(PostIncUintptr(&s, 1))) = uint8('.') - } - Xstrcpy(tls, s, ts+50) -} - -var _sxdigits = *(*[17]uint8)(unsafe.Pointer(ts + 59)) /* getnameinfo.c:36:20 */ - -func reverse_hosts(tls *TLS, buf uintptr, a uintptr, scopeid uint32, family int32) { /* getnameinfo.c:45:13: */ - bp := tls.Alloc(556) - defer tls.Free(556) - - // var line [512]uint8 at bp+16, 512 - - var p uintptr - var z uintptr - var _buf [1032]uint8 - _ = _buf - // var atmp [16]uint8 at bp, 16 - - // var iplit address at bp+528, 28 - - //TODO FILE _f, *f = __fopen_rb_ca("/etc/hosts", &_f, _buf, sizeof _buf); - var f uintptr = Xfopen(tls, ts+76, ts+87) - if !(f != 0) { - return - } - if family == 2 { - Xmemcpy(tls, bp+uintptr(12), a, uint64(4)) - Xmemcpy(tls, bp, ts+90, uint64(12)) - a = bp /* &atmp[0] */ - } - for Xfgets(tls, bp+16, int32(unsafe.Sizeof([512]uint8{})), f) != 0 { - if AssignUintptr(&p, Xstrchr(tls, bp+16, '#')) != 0 { - *(*uint8)(unsafe.Pointer(PostIncUintptr(&p, 1))) = uint8('\n') - *(*uint8)(unsafe.Pointer(p)) = uint8(0) - } - - for p = bp + 16; /* &line[0] */ *(*uint8)(unsafe.Pointer(p)) != 0 && !(__isspace(tls, int32(*(*uint8)(unsafe.Pointer(p)))) != 0); p++ { - } - *(*uint8)(unsafe.Pointer(PostIncUintptr(&p, 1))) = uint8(0) - if X__lookup_ipliteral(tls, bp+528, bp+16, 0) <= 0 { - continue - } - - if (*address)(unsafe.Pointer(bp+528)).family == 2 { - Xmemcpy(tls, bp+528+8+uintptr(12), bp+528+8, uint64(4)) - Xmemcpy(tls, bp+528+8, ts+90, uint64(12)) - (*address)(unsafe.Pointer(bp + 528 /* &iplit */)).scopeid = uint32(0) - } - - if Xmemcmp(tls, a, bp+528+8, uint64(16)) != 0 || (*address)(unsafe.Pointer(bp+528)).scopeid != scopeid { - continue - } - - for ; *(*uint8)(unsafe.Pointer(p)) != 0 && __isspace(tls, int32(*(*uint8)(unsafe.Pointer(p)))) != 0; p++ { - } - for z = p; *(*uint8)(unsafe.Pointer(z)) != 0 && !(__isspace(tls, int32(*(*uint8)(unsafe.Pointer(z)))) != 0); z++ { - } - *(*uint8)(unsafe.Pointer(z)) = uint8(0) - if (int64(z)-int64(p))/1 < int64(256) { - Xmemcpy(tls, buf, p, uint64((int64(z)-int64(p))/1+int64(1))) - break - } - } - //TODO __fclose_ca(f); - Xfclose(tls, f) -} - -func reverse_services(tls *TLS, buf uintptr, port int32, dgram int32) { /* getnameinfo.c:87:13: */ - Xabort(tls) //TODO- - // unsigned long svport; - // char line[128], *p, *z; - // unsigned char _buf[1032]; - // FILE _f, *f = __fopen_rb_ca("/etc/services", &_f, _buf, sizeof _buf); - // if (!f) return; - // while (fgets(line, sizeof line, f)) { - // if ((p=strchr(line, '#'))) *p++='\n', *p=0; - - // for (p=line; *p && !isspace(*p); p++); - // if (!*p) continue; - // *p++ = 0; - // svport = strtoul(p, &z, 10); - - // if (svport != port || z==p) continue; - // if (dgram && strncmp(z, "/udp", 4)) continue; - // if (!dgram && strncmp(z, "/tcp", 4)) continue; - // if (p-line > 32) continue; - - // memcpy(buf, line, p-line); - // break; - // } - // __fclose_ca(f); -} - -func Xgetnameinfo(tls *TLS, sa1 uintptr, sl socklen_t, node uintptr, nodelen socklen_t, serv uintptr, servlen socklen_t, flags int32) int32 { /* getnameinfo.c:125:5: */ - bp := tls.Alloc(347) - defer tls.Free(347) - - // var ptr [78]uint8 at bp, 78 - - // var buf [256]uint8 at bp+78, 256 - - // var num [13]uint8 at bp+334, 13 - - var af int32 = int32((*sockaddr)(unsafe.Pointer(sa1)).sa_family) - var a uintptr - var scopeid uint32 - - switch af { - case 2: - a = sa1 + 4 - if uint64(sl) < uint64(unsafe.Sizeof(sockaddr_in{})) { - return -6 - } - mkptr4(tls, bp, a) - scopeid = uint32(0) - break - case 10: - a = sa1 + 8 - if uint64(sl) < uint64(unsafe.Sizeof(sockaddr_in6{})) { - return -6 - } - if Xmemcmp(tls, a, ts+90, uint64(12)) != 0 { - mkptr6(tls, bp, a) - } else { - mkptr4(tls, bp, a+uintptr(12)) - } - scopeid = (*sockaddr_in6)(unsafe.Pointer(sa1)).sin6_scope_id - break - default: - return -6 - } - - if node != 0 && nodelen != 0 { - *(*uint8)(unsafe.Pointer(bp + 78)) = uint8(0) - if !(flags&0x01 != 0) { - reverse_hosts(tls, bp+78, a, scopeid, af) - } - if !(int32(*(*uint8)(unsafe.Pointer(bp + 78))) != 0) && !(flags&0x01 != 0) { - Xabort(tls) //TODO- - // unsigned char query[18+PTR_MAX], reply[512]; - // int qlen = __res_mkquery(0, ptr, 1, RR_PTR, - // 0, 0, 0, query, sizeof query); - // query[3] = 0; /* don't need AD flag */ - // int rlen = __res_send(query, qlen, reply, sizeof reply); - // buf[0] = 0; - // if (rlen > 0) - // __dns_parse(reply, rlen, dns_parse_callback, buf); - } - if !(int32(*(*uint8)(unsafe.Pointer(bp + 78))) != 0) { - if flags&0x08 != 0 { - return -2 - } - Xinet_ntop(tls, af, a, bp+78, uint32(unsafe.Sizeof([256]uint8{}))) - if scopeid != 0 { - Xabort(tls) //TODO- - // char *p = 0, tmp[IF_NAMESIZE+1]; - // if (!(flags & NI_NUMERICSCOPE) && - // (IN6_IS_ADDR_LINKLOCAL(a) || - // IN6_IS_ADDR_MC_LINKLOCAL(a))) - // p = if_indextoname(scopeid, tmp+1); - // if (!p) - // p = itoa(num, scopeid); - // *--p = '%'; - // strcat(buf, p); - } - } - if Xstrlen(tls, bp+78) >= size_t(nodelen) { - return -12 - } - Xstrcpy(tls, node, bp+78) - } - - if serv != 0 && servlen != 0 { - var p uintptr = bp + 78 /* buf */ - var port int32 = int32(Xntohs(tls, (*sockaddr_in)(unsafe.Pointer(sa1)).sin_port)) - *(*uint8)(unsafe.Pointer(bp + 78)) = uint8(0) - if !(flags&0x02 != 0) { - reverse_services(tls, bp+78, port, flags&0x10) - } - if !(int32(*(*uint8)(unsafe.Pointer(p))) != 0) { - p = itoa(tls, bp+334, uint32(port)) - } - if Xstrlen(tls, p) >= size_t(servlen) { - return -12 - } - Xstrcpy(tls, serv, p) - } - - return 0 -} - -var Xh_errno int32 /* h_errno.c:4:5: */ - -func X__h_errno_location(tls *TLS) uintptr { /* h_errno.c:6:5: */ - return uintptr(unsafe.Pointer(&Xh_errno)) -} - -func X__inet_aton(tls *TLS, s0 uintptr, dest uintptr) int32 { /* inet_aton.c:7:5: */ - bp := tls.Alloc(40) - defer tls.Free(40) - - var s uintptr = s0 - var d uintptr = dest - *(*[4]uint64)(unsafe.Pointer(bp /* a */)) = [4]uint64{0: uint64(0)} - // var z uintptr at bp+32, 8 - - var i int32 - - for i = 0; i < 4; i++ { - *(*uint64)(unsafe.Pointer(bp + uintptr(i)*8)) = Xstrtoul(tls, s, bp+32, 0) - if *(*uintptr)(unsafe.Pointer(bp + 32)) == s || *(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 32)))) != 0 && int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 32))))) != '.' || !(func() int32 { - if 0 != 0 { - return Xisdigit(tls, int32(*(*uint8)(unsafe.Pointer(s)))) - } - return Bool32(uint32(*(*uint8)(unsafe.Pointer(s)))-uint32('0') < uint32(10)) - }() != 0) { - return 0 - } - if !(int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 32))))) != 0) { - break - } - s = *(*uintptr)(unsafe.Pointer(bp + 32)) + uintptr(1) - } - if i == 4 { - return 0 - } - switch i { - case 0: - *(*uint64)(unsafe.Pointer(bp + 1*8)) = *(*uint64)(unsafe.Pointer(bp)) & uint64(0xffffff) - AssignShrPtrUint64(bp, int(24)) - fallthrough - case 1: - *(*uint64)(unsafe.Pointer(bp + 2*8)) = *(*uint64)(unsafe.Pointer(bp + 1*8)) & uint64(0xffff) - AssignShrPtrUint64(bp+1*8, int(16)) - fallthrough - case 2: - *(*uint64)(unsafe.Pointer(bp + 3*8)) = *(*uint64)(unsafe.Pointer(bp + 2*8)) & uint64(0xff) - AssignShrPtrUint64(bp+2*8, int(8)) - } - for i = 0; i < 4; i++ { - if *(*uint64)(unsafe.Pointer(bp + uintptr(i)*8)) > uint64(255) { - return 0 - } - *(*uint8)(unsafe.Pointer(d + uintptr(i))) = uint8(*(*uint64)(unsafe.Pointer(bp + uintptr(i)*8))) - } - return 1 -} - -func Xinet_ntop(tls *TLS, af int32, a0 uintptr, s uintptr, l socklen_t) uintptr { /* inet_ntop.c:7:12: */ - bp := tls.Alloc(276) - defer tls.Free(276) - - var a uintptr = a0 - var i int32 - var j int32 - var max int32 - var best int32 - // var buf [100]uint8 at bp+176, 100 - - switch af { - case 2: - if socklen_t(Xsnprintf(tls, s, uint64(l), ts+103, VaList(bp, int32(*(*uint8)(unsafe.Pointer(a))), int32(*(*uint8)(unsafe.Pointer(a + 1))), int32(*(*uint8)(unsafe.Pointer(a + 2))), int32(*(*uint8)(unsafe.Pointer(a + 3)))))) < l { - return s - } - break - case 10: - if Xmemcmp(tls, a, ts+90, uint64(12)) != 0 { - Xsnprintf(tls, bp+176, uint64(unsafe.Sizeof([100]uint8{})), - ts+115, - VaList(bp+32, 256*int32(*(*uint8)(unsafe.Pointer(a)))+int32(*(*uint8)(unsafe.Pointer(a + 1))), 256*int32(*(*uint8)(unsafe.Pointer(a + 2)))+int32(*(*uint8)(unsafe.Pointer(a + 3))), - 256*int32(*(*uint8)(unsafe.Pointer(a + 4)))+int32(*(*uint8)(unsafe.Pointer(a + 5))), 256*int32(*(*uint8)(unsafe.Pointer(a + 6)))+int32(*(*uint8)(unsafe.Pointer(a + 7))), - 256*int32(*(*uint8)(unsafe.Pointer(a + 8)))+int32(*(*uint8)(unsafe.Pointer(a + 9))), 256*int32(*(*uint8)(unsafe.Pointer(a + 10)))+int32(*(*uint8)(unsafe.Pointer(a + 11))), - 256*int32(*(*uint8)(unsafe.Pointer(a + 12)))+int32(*(*uint8)(unsafe.Pointer(a + 13))), 256*int32(*(*uint8)(unsafe.Pointer(a + 14)))+int32(*(*uint8)(unsafe.Pointer(a + 15))))) - } else { - Xsnprintf(tls, bp+176, uint64(unsafe.Sizeof([100]uint8{})), - ts+139, - VaList(bp+96, 256*int32(*(*uint8)(unsafe.Pointer(a)))+int32(*(*uint8)(unsafe.Pointer(a + 1))), 256*int32(*(*uint8)(unsafe.Pointer(a + 2)))+int32(*(*uint8)(unsafe.Pointer(a + 3))), - 256*int32(*(*uint8)(unsafe.Pointer(a + 4)))+int32(*(*uint8)(unsafe.Pointer(a + 5))), 256*int32(*(*uint8)(unsafe.Pointer(a + 6)))+int32(*(*uint8)(unsafe.Pointer(a + 7))), - 256*int32(*(*uint8)(unsafe.Pointer(a + 8)))+int32(*(*uint8)(unsafe.Pointer(a + 9))), 256*int32(*(*uint8)(unsafe.Pointer(a + 10)))+int32(*(*uint8)(unsafe.Pointer(a + 11))), - int32(*(*uint8)(unsafe.Pointer(a + 12))), int32(*(*uint8)(unsafe.Pointer(a + 13))), int32(*(*uint8)(unsafe.Pointer(a + 14))), int32(*(*uint8)(unsafe.Pointer(a + 15))))) - } - // Replace longest /(^0|:)[:0]{2,}/ with "::" - i = AssignInt32(&best, 0) - max = 2 - for ; *(*uint8)(unsafe.Pointer(bp + 176 + uintptr(i))) != 0; i++ { - if i != 0 && int32(*(*uint8)(unsafe.Pointer(bp + 176 + uintptr(i)))) != ':' { - continue - } - j = int32(Xstrspn(tls, bp+176+uintptr(i), ts+169)) - if j > max { - best = i - max = j - } - } - if max > 3 { - *(*uint8)(unsafe.Pointer(bp + 176 + uintptr(best))) = AssignPtrUint8(bp+176+uintptr(best+1), uint8(':')) - Xmemmove(tls, bp+176+uintptr(best)+uintptr(2), bp+176+uintptr(best)+uintptr(max), uint64(i-best-max+1)) - } - if Xstrlen(tls, bp+176) < size_t(l) { - Xstrcpy(tls, s, bp+176) - return s - } - break - default: - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 97 - return uintptr(0) - } - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 28 - return uintptr(0) -} - -func hexval(tls *TLS, c uint32) int32 { /* inet_pton.c:7:12: */ - if c-uint32('0') < uint32(10) { - return int32(c - uint32('0')) - } - c = c | uint32(32) - if c-uint32('a') < uint32(6) { - return int32(c - uint32('a') + uint32(10)) - } - return -1 -} - -func Xinet_pton(tls *TLS, af int32, s uintptr, a0 uintptr) int32 { /* inet_pton.c:15:5: */ - bp := tls.Alloc(16) - defer tls.Free(16) - - // var ip [8]uint16_t at bp, 16 - - var a uintptr = a0 - var i int32 - var j int32 - var v int32 - var d int32 - var brk int32 = -1 - var need_v4 int32 = 0 - - if af == 2 { - for i = 0; i < 4; i++ { - for v = AssignInt32(&j, 0); j < 3 && func() int32 { - if 0 != 0 { - return Xisdigit(tls, int32(*(*uint8)(unsafe.Pointer(s + uintptr(j))))) - } - return Bool32(uint32(*(*uint8)(unsafe.Pointer(s + uintptr(j))))-uint32('0') < uint32(10)) - }() != 0; j++ { - v = 10*v + int32(*(*uint8)(unsafe.Pointer(s + uintptr(j)))) - '0' - } - if j == 0 || j > 1 && int32(*(*uint8)(unsafe.Pointer(s))) == '0' || v > 255 { - return 0 - } - *(*uint8)(unsafe.Pointer(a + uintptr(i))) = uint8(v) - if int32(*(*uint8)(unsafe.Pointer(s + uintptr(j)))) == 0 && i == 3 { - return 1 - } - if int32(*(*uint8)(unsafe.Pointer(s + uintptr(j)))) != '.' { - return 0 - } - s += uintptr(j + 1) - } - return 0 - } else if af != 10 { - *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 97 - return -1 - } - - if int32(*(*uint8)(unsafe.Pointer(s))) == ':' && int32(*(*uint8)(unsafe.Pointer(PreIncUintptr(&s, 1)))) != ':' { - return 0 - } - - for i = 0; ; i++ { - if int32(*(*uint8)(unsafe.Pointer(s))) == ':' && brk < 0 { - brk = i - *(*uint16_t)(unsafe.Pointer(bp + uintptr(i&7)*2)) = uint16_t(0) - if !(int32(*(*uint8)(unsafe.Pointer(PreIncUintptr(&s, 1)))) != 0) { - break - } - if i == 7 { - return 0 - } - continue - } - for v = AssignInt32(&j, 0); j < 4 && AssignInt32(&d, hexval(tls, uint32(*(*uint8)(unsafe.Pointer(s + uintptr(j)))))) >= 0; j++ { - v = 16*v + d - } - if j == 0 { - return 0 - } - *(*uint16_t)(unsafe.Pointer(bp + uintptr(i&7)*2)) = uint16_t(v) - if !(int32(*(*uint8)(unsafe.Pointer(s + uintptr(j)))) != 0) && (brk >= 0 || i == 7) { - break - } - if i == 7 { - return 0 - } - if int32(*(*uint8)(unsafe.Pointer(s + uintptr(j)))) != ':' { - if int32(*(*uint8)(unsafe.Pointer(s + uintptr(j)))) != '.' || i < 6 && brk < 0 { - return 0 - } - need_v4 = 1 - i++ - break - } - s += uintptr(j + 1) - } - if brk >= 0 { - Xmemmove(tls, bp+uintptr(brk)*2+uintptr(7)*2-uintptr(i)*2, bp+uintptr(brk)*2, uint64(2*(i+1-brk))) - for j = 0; j < 7-i; j++ { - *(*uint16_t)(unsafe.Pointer(bp + uintptr(brk+j)*2)) = uint16_t(0) - } - } - for j = 0; j < 8; j++ { - *(*uint8)(unsafe.Pointer(PostIncUintptr(&a, 1))) = uint8(int32(*(*uint16_t)(unsafe.Pointer(bp + uintptr(j)*2))) >> 8) - *(*uint8)(unsafe.Pointer(PostIncUintptr(&a, 1))) = uint8(*(*uint16_t)(unsafe.Pointer(bp + uintptr(j)*2))) - } - if need_v4 != 0 && Xinet_pton(tls, 2, s, a-uintptr(4)) <= 0 { - return 0 - } - return 1 -} - -func X__lookup_ipliteral(tls *TLS, buf uintptr, name uintptr, family int32) int32 { /* lookup_ipliteral.c:12:5: */ - bp := tls.Alloc(96) - defer tls.Free(96) - - // var a4 in_addr at bp, 4 - - // var a6 in6_addr at bp+68, 16 - - if X__inet_aton(tls, name, bp) > 0 { - if family == 10 { // wrong family - return -2 - } - Xmemcpy(tls, buf+8, bp, uint64(unsafe.Sizeof(in_addr{}))) - (*address)(unsafe.Pointer(buf)).family = 2 - (*address)(unsafe.Pointer(buf)).scopeid = uint32(0) - return 1 - } - // var tmp [64]uint8 at bp+4, 64 - - var p uintptr = Xstrchr(tls, name, '%') - // var z uintptr at bp+88, 8 - - var scopeid uint64 = uint64(0) - if p != 0 && (int64(p)-int64(name))/1 < int64(64) { - Xmemcpy(tls, bp+4, name, uint64((int64(p)-int64(name))/1)) - *(*uint8)(unsafe.Pointer(bp + 4 + uintptr((int64(p)-int64(name))/1))) = uint8(0) - name = bp + 4 /* &tmp[0] */ - } - - if Xinet_pton(tls, 10, name, bp+68) <= 0 { - return 0 - } - if family == 2 { // wrong family - return -2 - } - - Xmemcpy(tls, buf+8, bp+68, uint64(unsafe.Sizeof(in6_addr{}))) - (*address)(unsafe.Pointer(buf)).family = 10 - if p != 0 { - if func() int32 { - if 0 != 0 { - return Xisdigit(tls, int32(*(*uint8)(unsafe.Pointer(PreIncUintptr(&p, 1))))) - } - return Bool32(uint32(*(*uint8)(unsafe.Pointer(PreIncUintptr(&p, 1))))-uint32('0') < uint32(10)) - }() != 0 { - scopeid = Xstrtoull(tls, p, bp+88, 10) - } else { - *(*uintptr)(unsafe.Pointer(bp + 88 /* z */)) = p - uintptr(1) - } - if *(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 88)))) != 0 { - Xabort(tls) //TODO- - // if (!IN6_IS_ADDR_LINKLOCAL(&a6) && - // !IN6_IS_ADDR_MC_LINKLOCAL(&a6)) - // return EAI_NONAME; - // scopeid = if_nametoindex(p); - // if (!scopeid) return EAI_NONAME; - } - if scopeid > uint64(0xffffffff) { - return -2 - } - } - (*address)(unsafe.Pointer(buf)).scopeid = uint32(scopeid) - return 1 -} - -func is_valid_hostname(tls *TLS, host uintptr) int32 { /* lookup_name.c:18:12: */ - var s uintptr - //TODO if (strnlen(host, 255)-1 >= 254 || mbstowcs(0, host, 0) == -1) return 0; - if Xstrnlen(tls, host, uint64(255))-uint64(1) >= uint64(254) { - return 0 - } - for s = host; int32(*(*uint8)(unsafe.Pointer(s))) >= 0x80 || int32(*(*uint8)(unsafe.Pointer(s))) == '.' || int32(*(*uint8)(unsafe.Pointer(s))) == '-' || Xisalnum(tls, int32(*(*uint8)(unsafe.Pointer(s)))) != 0; s++ { - } - return BoolInt32(!(*(*uint8)(unsafe.Pointer(s)) != 0)) -} - -var Xzero_struct_address address /* lookup_name.c:27:16: */ - -func name_from_null(tls *TLS, buf uintptr, name uintptr, family int32, flags int32) int32 { /* lookup_name.c:29:12: */ - var cnt int32 = 0 - if name != 0 { - return 0 - } - if flags&0x01 != 0 { - //TODO if (family != AF_INET6) - //TODO buf[cnt++] = (struct address){ .family = AF_INET }; - if family != 10 { - var x = Xzero_struct_address - x.family = 2 - *(*address)(unsafe.Pointer(buf + uintptr(PostIncInt32(&cnt, 1))*28)) = x - } - //TODO if (family != AF_INET) - //TODO buf[cnt++] = (struct address){ .family = AF_INET6 }; - if family != 2 { - var x = Xzero_struct_address - x.family = 10 - *(*address)(unsafe.Pointer(buf + uintptr(PostIncInt32(&cnt, 1))*28)) = x - } - } else { - Xabort(tls) //TODO- - // if (family != AF_INET6) - // buf[cnt++] = (struct address){ .family = AF_INET, .addr = { 127,0,0,1 } }; - // if (family != AF_INET) - // buf[cnt++] = (struct address){ .family = AF_INET6, .addr = { [15] = 1 } }; - } - return cnt -} - -func name_from_numeric(tls *TLS, buf uintptr, name uintptr, family int32) int32 { /* lookup_name.c:58:12: */ - return X__lookup_ipliteral(tls, buf, name, family) -} - -func name_from_hosts(tls *TLS, buf uintptr, canon uintptr, name uintptr, family int32) int32 { /* lookup_name.c:63:12: */ - bp := tls.Alloc(512) - defer tls.Free(512) - - // var line [512]uint8 at bp, 512 - - var l size_t = Xstrlen(tls, name) - var cnt int32 = 0 - var badfam int32 = 0 - var _buf [1032]uint8 - _ = _buf - //TODO FILE _f, *f = __fopen_rb_ca("/etc/hosts", &_f, _buf, sizeof _buf); - var _f FILE - _ = _f - var f uintptr = Xfopen(tls, ts+76, ts+87) - if !(f != 0) { - switch *(*int32)(unsafe.Pointer(X___errno_location(tls))) { - case 2: - fallthrough - case 20: - fallthrough - case 13: - return 0 - fallthrough - default: - return -11 - } - } - for Xfgets(tls, bp, int32(unsafe.Sizeof([512]uint8{})), f) != 0 && cnt < 48 { - var p uintptr - var z uintptr - - if AssignUintptr(&p, Xstrchr(tls, bp, '#')) != 0 { - *(*uint8)(unsafe.Pointer(PostIncUintptr(&p, 1))) = uint8('\n') - *(*uint8)(unsafe.Pointer(p)) = uint8(0) - } - for p = bp + uintptr(1); AssignUintptr(&p, Xstrstr(tls, p, name)) != 0 && (!(__isspace(tls, int32(*(*uint8)(unsafe.Pointer(p + UintptrFromInt32(-1))))) != 0) || !(__isspace(tls, int32(*(*uint8)(unsafe.Pointer(p + uintptr(l))))) != 0)); p++ { - } - if !(p != 0) { - continue - } - - // Isolate IP address to parse - for p = bp; /* &line[0] */ *(*uint8)(unsafe.Pointer(p)) != 0 && !(__isspace(tls, int32(*(*uint8)(unsafe.Pointer(p)))) != 0); p++ { - } - *(*uint8)(unsafe.Pointer(PostIncUintptr(&p, 1))) = uint8(0) - switch name_from_numeric(tls, buf+uintptr(cnt)*28, bp, family) { - case 1: - cnt++ - break - case 0: - continue - default: - badfam = -2 - continue - } - - // Extract first name as canonical name - for ; *(*uint8)(unsafe.Pointer(p)) != 0 && __isspace(tls, int32(*(*uint8)(unsafe.Pointer(p)))) != 0; p++ { - } - for z = p; *(*uint8)(unsafe.Pointer(z)) != 0 && !(__isspace(tls, int32(*(*uint8)(unsafe.Pointer(z)))) != 0); z++ { - } - *(*uint8)(unsafe.Pointer(z)) = uint8(0) - if is_valid_hostname(tls, p) != 0 { - Xmemcpy(tls, canon, p, uint64((int64(z)-int64(p))/1+int64(1))) - } - } - //TODO __fclose_ca(f); - Xfclose(tls, f) - if cnt != 0 { - return cnt - } - return badfam -} - -type dpc_ctx = struct { - addrs uintptr - canon uintptr - cnt int32 - _ [4]byte -} /* lookup_name.c:112:1 */ - -func name_from_dns_search(tls *TLS, buf uintptr, canon uintptr, name uintptr, family int32) int32 { /* lookup_name.c:191:12: */ - return -1 //TODO- - Xabort(tls) - return int32(0) //TODO- - // char search[256]; - // struct resolvconf conf; - // size_t l, dots; - // char *p, *z; - - // if (__get_resolv_conf(&conf, search, sizeof search) < 0) return -1; - - // /* Count dots, suppress search when >=ndots or name ends in - // * a dot, which is an explicit request for global scope. */ - // for (dots=l=0; name[l]; l++) if (name[l]=='.') dots++; - // if (dots >= conf.ndots || name[l-1]=='.') *search = 0; - - // /* Strip final dot for canon, fail if multiple trailing dots. */ - // if (name[l-1]=='.') l--; - // if (!l || name[l-1]=='.') return EAI_NONAME; - - // /* This can never happen; the caller already checked length. */ - // if (l >= 256) return EAI_NONAME; - - // /* Name with search domain appended is setup in canon[]. This both - // * provides the desired default canonical name (if the requested - // * name is not a CNAME record) and serves as a buffer for passing - // * the full requested name to name_from_dns. */ - // memcpy(canon, name, l); - // canon[l] = '.'; - - // for (p=search; *p; p=z) { - // for (; isspace(*p); p++); - // for (z=p; *z && !isspace(*z); z++); - // if (z==p) break; - // if (z-p < 256 - l - 1) { - // memcpy(canon+l+1, p, z-p); - // canon[z-p+1+l] = 0; - // int cnt = name_from_dns(buf, canon, canon, family, &conf); - // if (cnt) return cnt; - // } - // } - - // canon[l] = 0; - // return name_from_dns(buf, canon, name, family, &conf); -} - -type policy = struct { - addr [16]uint8 - len uint8 - mask uint8 - prec uint8 - label uint8 -} /* lookup_name.c:237:14 */ - -var defpolicy = [6]policy{ - {addr: *(*[16]uint8)(unsafe.Pointer(ts + 172)), len: uint8(15), mask: uint8(0xff), prec: uint8(50)}, - {addr: *(*[16]uint8)(unsafe.Pointer(ts + 189)), len: uint8(11), mask: uint8(0xff), prec: uint8(35), label: uint8(4)}, - {addr: *(*[16]uint8)(unsafe.Pointer(ts + 205)), len: uint8(1), mask: uint8(0xff), prec: uint8(30), label: uint8(2)}, - {addr: *(*[16]uint8)(unsafe.Pointer(ts + 221)), len: uint8(3), mask: uint8(0xff), prec: uint8(5), label: uint8(5)}, - {addr: *(*[16]uint8)(unsafe.Pointer(ts + 237)), mask: uint8(0xfe), prec: uint8(3), label: uint8(13)}, - // Last rule must match all addresses to stop loop. - {addr: *(*[16]uint8)(unsafe.Pointer(ts + 253)), prec: uint8(40), label: uint8(1)}, -} /* lookup_name.c:241:3 */ - -func policyof(tls *TLS, a uintptr) uintptr { /* lookup_name.c:259:28: */ - var i int32 - for i = 0; ; i++ { - if Xmemcmp(tls, a, uintptr(unsafe.Pointer(&defpolicy))+uintptr(i)*20, uint64(defpolicy[i].len)) != 0 { - continue - } - if int32(*(*uint8_t)(unsafe.Pointer(a + uintptr(defpolicy[i].len))))&int32(defpolicy[i].mask) != - int32(*(*uint8)(unsafe.Pointer(uintptr(unsafe.Pointer(&defpolicy)) + uintptr(i)*20 + uintptr(defpolicy[i].len)))) { - continue - } - return uintptr(unsafe.Pointer(&defpolicy)) + uintptr(i)*20 - } - return uintptr(0) -} - -func labelof(tls *TLS, a uintptr) int32 { /* lookup_name.c:272:12: */ - return int32((*policy)(unsafe.Pointer(policyof(tls, a))).label) -} - -func scopeof(tls *TLS, a uintptr) int32 { /* lookup_name.c:277:12: */ - if int32(*(*uint8_t)(unsafe.Pointer(a))) == 0xff { - return int32(*(*uint8_t)(unsafe.Pointer(a + 1))) & 15 - } - if int32(*(*uint8_t)(unsafe.Pointer(a))) == 0xfe && int32(*(*uint8_t)(unsafe.Pointer(a + 1)))&0xc0 == 0x80 { - return 2 - } - if *(*uint32_t)(unsafe.Pointer(a)) == uint32_t(0) && *(*uint32_t)(unsafe.Pointer(a + 1*4)) == uint32_t(0) && *(*uint32_t)(unsafe.Pointer(a + 2*4)) == uint32_t(0) && int32(*(*uint8_t)(unsafe.Pointer(a + 12))) == 0 && int32(*(*uint8_t)(unsafe.Pointer(a + 13))) == 0 && int32(*(*uint8_t)(unsafe.Pointer(a + 14))) == 0 && int32(*(*uint8_t)(unsafe.Pointer(a + 15))) == 1 { - return 2 - } - if int32(*(*uint8_t)(unsafe.Pointer(a))) == 0xfe && int32(*(*uint8_t)(unsafe.Pointer(a + 1)))&0xc0 == 0xc0 { - return 5 - } - return 14 -} - -func prefixmatch(tls *TLS, s uintptr, d uintptr) int32 { /* lookup_name.c:286:12: */ - // FIXME: The common prefix length should be limited to no greater - // than the nominal length of the prefix portion of the source - // address. However the definition of the source prefix length is - // not clear and thus this limiting is not yet implemented. - var i uint32 - for i = uint32(0); i < uint32(128) && !((int32(*(*uint8_t)(unsafe.Pointer(s /* &.__in6_union */ /* &.__s6_addr */ + uintptr(i/uint32(8)))))^int32(*(*uint8_t)(unsafe.Pointer(d /* &.__in6_union */ /* &.__s6_addr */ + uintptr(i/uint32(8))))))&(int32(128)>>(i%uint32(8))) != 0); i++ { - } - return int32(i) -} - -func addrcmp(tls *TLS, _a uintptr, _b uintptr) int32 { /* lookup_name.c:305:12: */ - var a uintptr = _a - var b uintptr = _b - return (*address)(unsafe.Pointer(b)).sortkey - (*address)(unsafe.Pointer(a)).sortkey -} - -func X__lookup_name(tls *TLS, buf uintptr, canon uintptr, name uintptr, family int32, flags int32) int32 { /* lookup_name.c:311:5: */ - bp := tls.Alloc(92) - defer tls.Free(92) - - var cnt int32 = 0 - var i int32 - var j int32 - _ = j - - *(*uint8)(unsafe.Pointer(canon)) = uint8(0) - if name != 0 { - // reject empty name and check len so it fits into temp bufs - var l size_t = Xstrnlen(tls, name, uint64(255)) - if l-uint64(1) >= uint64(254) { - return -2 - } - Xmemcpy(tls, canon, name, l+uint64(1)) - } - - // Procedurally, a request for v6 addresses with the v4-mapped - // flag set is like a request for unspecified family, followed - // by filtering of the results. - if flags&0x08 != 0 { - if family == 10 { - family = 0 - } else { - flags = flags - 0x08 - } - } - - // Try each backend until there's at least one result. - cnt = name_from_null(tls, buf, name, family, flags) - if !(cnt != 0) { - cnt = name_from_numeric(tls, buf, name, family) - } - if !(cnt != 0) && !(flags&0x04 != 0) { - cnt = name_from_hosts(tls, buf, canon, name, family) - if !(cnt != 0) { - cnt = name_from_dns_search(tls, buf, canon, name, family) - } - } - if cnt <= 0 { - if cnt != 0 { - return cnt - } - return -2 - } - - // Filter/transform results for v4-mapped lookup, if requested. - if flags&0x08 != 0 { - Xabort(tls) //TODO- - // if (!(flags & AI_ALL)) { - // /* If any v6 results exist, remove v4 results. */ - // for (i=0; i= 0 { - if !(Xconnect(tls, fd, da, dalen) != 0) { - key = key | 0x40000000 - if !(Xgetsockname(tls, fd, sa1, bp+88) != 0) { - if family == 2 { - Xmemcpy(tls, - bp+28+8+uintptr(12), - bp+72+4, uint64(4)) - } - if dscope == scopeof(tls, bp+28+8) { - key = key | 0x20000000 - } - if dlabel == labelof(tls, bp+28+8) { - key = key | 0x10000000 - } - prefixlen = prefixmatch(tls, bp+28+8, - bp+8) - } - } - Xclose(tls, fd) - } - key = key | dprec<<20 - key = key | (15-dscope)<<16 - key = key | prefixlen<<8 - key = key | (48-i)<<0 - (*address)(unsafe.Pointer(buf + uintptr(i)*28)).sortkey = key - } - Xqsort(tls, buf, uint64(cnt), uint64(unsafe.Sizeof(address{})), *(*uintptr)(unsafe.Pointer(&struct { - f func(*TLS, uintptr, uintptr) int32 - }{addrcmp}))) - - //TODO pthread_setcancelstate(cs, 0); - - return cnt -} - -func X__lookup_serv(tls *TLS, buf uintptr, name uintptr, proto int32, socktype int32, flags int32) int32 { /* lookup_serv.c:12:5: */ - bp := tls.Alloc(8) - defer tls.Free(8) - - var line [128]uint8 - _ = line - var cnt int32 = 0 - var p uintptr - _ = p - *(*uintptr)(unsafe.Pointer(bp /* z */)) = ts + 13 /* "" */ - var port uint64 = uint64(0) - - switch socktype { - case 1: - switch proto { - case 0: - proto = 6 - fallthrough - case 6: - break - default: - return -8 - } - break - case 2: - switch proto { - case 0: - proto = 17 - fallthrough - case 17: - break - default: - return -8 - } - fallthrough - case 0: - break - default: - if name != 0 { - return -8 - } - (*service)(unsafe.Pointer(buf)).port = uint16_t(0) - (*service)(unsafe.Pointer(buf)).proto = uint8(proto) - (*service)(unsafe.Pointer(buf)).socktype = uint8(socktype) - return 1 - } - - if name != 0 { - if !(int32(*(*uint8)(unsafe.Pointer(name))) != 0) { - return -8 - } - port = Xstrtoul(tls, name, bp, 10) - } - if !(int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp))))) != 0) { - if port > uint64(65535) { - return -8 - } - if proto != 17 { - (*service)(unsafe.Pointer(buf + uintptr(cnt)*4)).port = uint16_t(port) - (*service)(unsafe.Pointer(buf + uintptr(cnt)*4)).socktype = uint8(1) - (*service)(unsafe.Pointer(buf + uintptr(PostIncInt32(&cnt, 1))*4)).proto = uint8(6) - } - if proto != 6 { - (*service)(unsafe.Pointer(buf + uintptr(cnt)*4)).port = uint16_t(port) - (*service)(unsafe.Pointer(buf + uintptr(cnt)*4)).socktype = uint8(2) - (*service)(unsafe.Pointer(buf + uintptr(PostIncInt32(&cnt, 1))*4)).proto = uint8(17) - } - return cnt - } - - if flags&0x400 != 0 { - return -2 - } - - var l size_t = Xstrlen(tls, name) - _ = l - - Xabort(tls) //TODO- - // unsigned char _buf[1032]; - // FILE _f, *f = __fopen_rb_ca("/etc/services", &_f, _buf, sizeof _buf); - // if (!f) switch (errno) { - // case ENOENT: - // case ENOTDIR: - // case EACCES: - // return EAI_SERVICE; - // default: - // return EAI_SYSTEM; - // } - - Xabort(tls) //TODO- - // while (fgets(line, sizeof line, f) && cnt < MAXSERVS) { - // if ((p=strchr(line, '#'))) *p++='\n', *p=0; - - // /* Find service name */ - // for(p=line; (p=strstr(p, name)); p++) { - // if (p>line && !isspace(p[-1])) continue; - // if (p[l] && !isspace(p[l])) continue; - // break; - // } - // if (!p) continue; - - // /* Skip past canonical name at beginning of line */ - // for (p=line; *p && !isspace(*p); p++); - - // port = strtoul(p, &z, 10); - // if (port > 65535 || z==p) continue; - // if (!strncmp(z, "/udp", 4)) { - // if (proto == IPPROTO_TCP) continue; - // buf[cnt].port = port; - // buf[cnt].socktype = SOCK_DGRAM; - // buf[cnt++].proto = IPPROTO_UDP; - // } - // if (!strncmp(z, "/tcp", 4)) { - // if (proto == IPPROTO_UDP) continue; - // buf[cnt].port = port; - // buf[cnt].socktype = SOCK_STREAM; - // buf[cnt++].proto = IPPROTO_TCP; - // } - // } - // __fclose_ca(f); - // return cnt > 0 ? cnt : EAI_SERVICE; - Xabort(tls) - return int32(0) //TODO- -} - -func temper(tls *TLS, x uint32) uint32 { /* rand_r.c:3:17: */ - x = x ^ x>>11 - x = x ^ x<<7&0x9D2C5680 - x = x ^ x<<15&0xEFC60000 - x = x ^ x>>18 - return x -} - -func Xrand_r(tls *TLS, seed uintptr) int32 { /* rand_r.c:12:5: */ - return int32(temper(tls, AssignPtrUint32(seed, *(*uint32)(unsafe.Pointer(seed))*uint32(1103515245)+uint32(12345))) / uint32(2)) -} - -func X__lockfile(tls *TLS, f uintptr) int32 { /* __lockfile.c:4:5: */ - var owner int32 = (*FILE)(unsafe.Pointer(f)).lock - var tid int32 = (*__pthread)(unsafe.Pointer(__pthread_self(tls))).tid - if owner&CplInt32(0x40000000) == tid { - return 0 - } - owner = a_cas(tls, f+140, 0, tid) - if !(owner != 0) { - return 1 - } - for AssignInt32(&owner, a_cas(tls, f+140, 0, tid|0x40000000)) != 0 { - if owner&0x40000000 != 0 || a_cas(tls, f+140, owner, owner|0x40000000) == owner { - __futexwait(tls, f+140, owner|0x40000000, 1) - } - } - return 1 -} - -func X__unlockfile(tls *TLS, f uintptr) { /* __lockfile.c:19:6: */ - if a_swap(tls, f+140, 0)&0x40000000 != 0 { - __wake(tls, f+140, 1, 1) - } -} - -func X__toread(tls *TLS, f uintptr) int32 { /* __toread.c:3:5: */ - *(*int32)(unsafe.Pointer(f + 136)) |= (*FILE)(unsafe.Pointer(f)).mode - 1 - if (*FILE)(unsafe.Pointer(f)).wpos != (*FILE)(unsafe.Pointer(f)).wbase { - (*struct { - f func(*TLS, uintptr, uintptr, size_t) size_t - })(unsafe.Pointer(&struct{ uintptr }{(*FILE)(unsafe.Pointer(f)).write})).f(tls, f, uintptr(0), uint64(0)) - } - (*FILE)(unsafe.Pointer(f)).wpos = AssignPtrUintptr(f+56, AssignPtrUintptr(f+32, uintptr(0))) - if (*FILE)(unsafe.Pointer(f)).flags&uint32(4) != 0 { - *(*uint32)(unsafe.Pointer(f)) |= uint32(32) - return -1 - } - (*FILE)(unsafe.Pointer(f)).rpos = AssignPtrUintptr(f+16, (*FILE)(unsafe.Pointer(f)).buf+uintptr((*FILE)(unsafe.Pointer(f)).buf_size)) - if (*FILE)(unsafe.Pointer(f)).flags&uint32(16) != 0 { - return -1 - } - return 0 -} - -func X__toread_needs_stdio_exit(tls *TLS) { /* __toread.c:16:13: */ - X__builtin_abort(tls) //TODO- - // __stdio_exit_needed(); -} - -// This function assumes it will never be called if there is already -// data buffered for reading. - -func X__uflow(tls *TLS, f uintptr) int32 { /* __uflow.c:6:5: */ - bp := tls.Alloc(1) - defer tls.Free(1) - - // var c uint8 at bp, 1 - - if !(X__toread(tls, f) != 0) && (*struct { - f func(*TLS, uintptr, uintptr, size_t) size_t - })(unsafe.Pointer(&struct{ uintptr }{(*FILE)(unsafe.Pointer(f)).read})).f(tls, f, bp, uint64(1)) == uint64(1) { - return int32(*(*uint8)(unsafe.Pointer(bp))) - } - return -1 -} - -func Xsscanf(tls *TLS, s uintptr, fmt uintptr, va uintptr) int32 { /* sscanf.c:4:5: */ - var ret int32 - var ap va_list - _ = ap - ap = va - ret = Xvsscanf(tls, s, fmt, ap) - _ = ap - return ret -} - -type wctrans_t = uintptr /* wctype.h:20:19 */ - -func store_int(tls *TLS, dest uintptr, size int32, i uint64) { /* vfscanf.c:22:13: */ - if !(dest != 0) { - return - } - switch size { - case -2: - *(*uint8)(unsafe.Pointer(dest)) = uint8(i) - break - case -1: - *(*int16)(unsafe.Pointer(dest)) = int16(i) - break - case 0: - *(*int32)(unsafe.Pointer(dest)) = int32(i) - break - case 1: - *(*int64)(unsafe.Pointer(dest)) = int64(i) - break - case 3: - *(*int64)(unsafe.Pointer(dest)) = int64(i) - break - } -} - -func arg_n(tls *TLS, ap va_list, n uint32) uintptr { /* vfscanf.c:44:13: */ - var p uintptr - var i uint32 - var ap2 va_list - _ = ap2 - ap2 = ap - for i = n; i > uint32(1); i-- { - VaUintptr(&ap2) - } - p = VaUintptr(&ap2) - _ = ap2 - return p -} - -func Xvfscanf(tls *TLS, f uintptr, fmt uintptr, ap va_list) int32 { /* vfscanf.c:56:5: */ - bp := tls.Alloc(276) - defer tls.Free(276) - - var width int32 - var size int32 - var alloc int32 - var base int32 - var p uintptr - var c int32 - var t int32 - var s uintptr - var wcs uintptr - // var st mbstate_t at bp+268, 8 - - var dest uintptr - var invert int32 - var matches int32 - var x uint64 - var y float64 - var pos off_t - // var scanset [257]uint8 at bp, 257 - - var i size_t - var k size_t - // var wc wchar_t at bp+260, 4 - - var __need_unlock int32 - var tmp uintptr - var tmp1 uintptr - alloc = 0 - dest = uintptr(0) - matches = 0 - pos = int64(0) - __need_unlock = func() int32 { - if (*FILE)(unsafe.Pointer(f)).lock >= 0 { - return X__lockfile(tls, f) - } - return 0 - }() - - if !!(int32((*FILE)(unsafe.Pointer(f)).rpos) != 0) { - goto __1 - } - X__toread(tls, f) -__1: - ; - if !!(int32((*FILE)(unsafe.Pointer(f)).rpos) != 0) { - goto __2 - } - goto input_fail -__2: - ; - - p = fmt -__3: - if !(*(*uint8)(unsafe.Pointer(p)) != 0) { - goto __5 - } - - alloc = 0 - - if !(__isspace(tls, int32(*(*uint8)(unsafe.Pointer(p)))) != 0) { - goto __6 - } -__7: - if !(__isspace(tls, int32(*(*uint8)(unsafe.Pointer(p + 1)))) != 0) { - goto __8 - } - p++ - goto __7 -__8: - ; - X__shlim(tls, f, int64(0)) -__9: - if !(__isspace(tls, func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }()) != 0) { - goto __10 - } - goto __9 -__10: - ; - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - pos = pos + ((*FILE)(unsafe.Pointer(f)).shcnt + (int64((*FILE)(unsafe.Pointer(f)).rpos)-int64((*FILE)(unsafe.Pointer(f)).buf))/1) - goto __4 -__6: - ; - if !(int32(*(*uint8)(unsafe.Pointer(p))) != '%' || int32(*(*uint8)(unsafe.Pointer(p + 1))) == '%') { - goto __11 - } - X__shlim(tls, f, int64(0)) - if !(int32(*(*uint8)(unsafe.Pointer(p))) == '%') { - goto __12 - } - p++ -__14: - if !(__isspace(tls, AssignInt32(&c, func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }())) != 0) { - goto __15 - } - goto __14 -__15: - ; - goto __13 -__12: - c = func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() -__13: - ; - if !(c != int32(*(*uint8)(unsafe.Pointer(p)))) { - goto __16 - } - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - if !(c < 0) { - goto __17 - } - goto input_fail -__17: - ; - goto match_fail -__16: - ; - pos = pos + ((*FILE)(unsafe.Pointer(f)).shcnt + (int64((*FILE)(unsafe.Pointer(f)).rpos)-int64((*FILE)(unsafe.Pointer(f)).buf))/1) - goto __4 -__11: - ; - - p++ - if !(int32(*(*uint8)(unsafe.Pointer(p))) == '*') { - goto __18 - } - dest = uintptr(0) - p++ - goto __19 -__18: - if !(func() int32 { - if 0 != 0 { - return Xisdigit(tls, int32(*(*uint8)(unsafe.Pointer(p)))) - } - return Bool32(uint32(*(*uint8)(unsafe.Pointer(p)))-uint32('0') < uint32(10)) - }() != 0 && int32(*(*uint8)(unsafe.Pointer(p + 1))) == '$') { - goto __20 - } - dest = arg_n(tls, ap, uint32(int32(*(*uint8)(unsafe.Pointer(p)))-'0')) - p += uintptr(2) - goto __21 -__20: - dest = VaUintptr(&ap) -__21: - ; -__19: - ; - - width = 0 -__22: - if !(func() int32 { - if 0 != 0 { - return Xisdigit(tls, int32(*(*uint8)(unsafe.Pointer(p)))) - } - return Bool32(uint32(*(*uint8)(unsafe.Pointer(p)))-uint32('0') < uint32(10)) - }() != 0) { - goto __24 - } - width = 10*width + int32(*(*uint8)(unsafe.Pointer(p))) - '0' - goto __23 -__23: - p++ - goto __22 - goto __24 -__24: - ; - - if !(int32(*(*uint8)(unsafe.Pointer(p))) == 'm') { - goto __25 - } - wcs = uintptr(0) - s = uintptr(0) - alloc = BoolInt32(!!(dest != 0)) - p++ - goto __26 -__25: - alloc = 0 -__26: - ; - - size = 0 - switch int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&p, 1)))) { - case 'h': - goto __28 - case 'l': - goto __29 - case 'j': - goto __30 - case 'z': - goto __31 - case 't': - goto __32 - case 'L': - goto __33 - case 'd': - goto __34 - case 'i': - goto __35 - case 'o': - goto __36 - case 'u': - goto __37 - case 'x': - goto __38 - case 'a': - goto __39 - case 'e': - goto __40 - case 'f': - goto __41 - case 'g': - goto __42 - case 'A': - goto __43 - case 'E': - goto __44 - case 'F': - goto __45 - case 'G': - goto __46 - case 'X': - goto __47 - case 's': - goto __48 - case 'c': - goto __49 - case '[': - goto __50 - case 'S': - goto __51 - case 'C': - goto __52 - case 'p': - goto __53 - case 'n': - goto __54 - default: - goto __55 - } - goto __27 -__28: - if !(int32(*(*uint8)(unsafe.Pointer(p))) == 'h') { - goto __56 - } - p++ - size = -2 - goto __57 -__56: - size = -1 -__57: - ; - goto __27 -__29: - if !(int32(*(*uint8)(unsafe.Pointer(p))) == 'l') { - goto __58 - } - p++ - size = 3 - goto __59 -__58: - size = 1 -__59: - ; - goto __27 -__30: - size = 3 - goto __27 -__31: -__32: - size = 1 - goto __27 -__33: - size = 2 - goto __27 -__34: -__35: -__36: -__37: -__38: -__39: -__40: -__41: -__42: -__43: -__44: -__45: -__46: -__47: -__48: -__49: -__50: -__51: -__52: -__53: -__54: - p-- - goto __27 -__55: - goto fmt_fail -__27: - ; - - t = int32(*(*uint8)(unsafe.Pointer(p))) - - // C or S - if !(t&0x2f == 3) { - goto __60 - } - t = t | 32 - size = 1 -__60: - ; - - switch t { - case 'c': - goto __62 - case '[': - goto __63 - case 'n': - goto __64 - default: - goto __65 - } - goto __61 -__62: - if !(width < 1) { - goto __66 - } - width = 1 -__66: - ; -__63: - goto __61 -__64: - store_int(tls, dest, size, uint64(pos)) - // do not increment match count, etc! - goto __4 -__65: - X__shlim(tls, f, int64(0)) -__67: - if !(__isspace(tls, func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }()) != 0) { - goto __68 - } - goto __67 -__68: - ; - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - pos = pos + ((*FILE)(unsafe.Pointer(f)).shcnt + (int64((*FILE)(unsafe.Pointer(f)).rpos)-int64((*FILE)(unsafe.Pointer(f)).buf))/1) -__61: - ; - - X__shlim(tls, f, int64(width)) - if !(func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }() < 0) { - goto __69 - } - goto input_fail -__69: - ; - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - - switch t { - case 's': - goto __71 - case 'c': - goto __72 - case '[': - goto __73 - case 'p': - goto __74 - case 'X': - goto __75 - case 'x': - goto __76 - case 'o': - goto __77 - case 'd': - goto __78 - case 'u': - goto __79 - case 'i': - goto __80 - case 'a': - goto __81 - case 'A': - goto __82 - case 'e': - goto __83 - case 'E': - goto __84 - case 'f': - goto __85 - case 'F': - goto __86 - case 'g': - goto __87 - case 'G': - goto __88 - } - goto __70 -__71: -__72: -__73: - if !(t == 'c' || t == 's') { - goto __89 - } - Xmemset(tls, bp, -1, uint64(unsafe.Sizeof([257]uint8{}))) - *(*uint8)(unsafe.Pointer(bp)) = uint8(0) - if !(t == 's') { - goto __91 - } - *(*uint8)(unsafe.Pointer(bp + 10)) = uint8(0) - *(*uint8)(unsafe.Pointer(bp + 11)) = uint8(0) - *(*uint8)(unsafe.Pointer(bp + 12)) = uint8(0) - *(*uint8)(unsafe.Pointer(bp + 13)) = uint8(0) - *(*uint8)(unsafe.Pointer(bp + 14)) = uint8(0) - *(*uint8)(unsafe.Pointer(bp + 33)) = uint8(0) -__91: - ; - goto __90 -__89: - if !(int32(*(*uint8)(unsafe.Pointer(PreIncUintptr(&p, 1)))) == '^') { - goto __92 - } - p++ - invert = 1 - goto __93 -__92: - invert = 0 -__93: - ; - Xmemset(tls, bp, invert, uint64(unsafe.Sizeof([257]uint8{}))) - *(*uint8)(unsafe.Pointer(bp)) = uint8(0) - if !(int32(*(*uint8)(unsafe.Pointer(p))) == '-') { - goto __94 - } - p++ - *(*uint8)(unsafe.Pointer(bp + 46)) = uint8(1 - invert) - goto __95 -__94: - if !(int32(*(*uint8)(unsafe.Pointer(p))) == ']') { - goto __96 - } - p++ - *(*uint8)(unsafe.Pointer(bp + 94)) = uint8(1 - invert) -__96: - ; -__95: - ; -__97: - if !(int32(*(*uint8)(unsafe.Pointer(p))) != ']') { - goto __99 - } - if !!(int32(*(*uint8)(unsafe.Pointer(p))) != 0) { - goto __100 - } - goto fmt_fail -__100: - ; - if !(int32(*(*uint8)(unsafe.Pointer(p))) == '-' && *(*uint8)(unsafe.Pointer(p + 1)) != 0 && int32(*(*uint8)(unsafe.Pointer(p + 1))) != ']') { - goto __101 - } - c = int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&p, 1) + UintptrFromInt32(-1)))) -__102: - if !(c < int32(*(*uint8)(unsafe.Pointer(p)))) { - goto __104 - } - *(*uint8)(unsafe.Pointer(bp + uintptr(1+c))) = uint8(1 - invert) - goto __103 -__103: - c++ - goto __102 - goto __104 -__104: - ; -__101: - ; - *(*uint8)(unsafe.Pointer(bp + uintptr(1+int32(*(*uint8)(unsafe.Pointer(p)))))) = uint8(1 - invert) - goto __98 -__98: - p++ - goto __97 - goto __99 -__99: - ; -__90: - ; - wcs = uintptr(0) - s = uintptr(0) - i = uint64(0) - if t == 'c' { - k = uint64(uint32(width) + 1) - } else { - k = uint64(31) - } - if !(size == 1) { - goto __105 - } - if !(alloc != 0) { - goto __107 - } - wcs = Xmalloc(tls, k*size_t(unsafe.Sizeof(wchar_t(0)))) - if !!(wcs != 0) { - goto __109 - } - goto alloc_fail -__109: - ; - goto __108 -__107: - wcs = dest -__108: - ; - *(*mbstate_t)(unsafe.Pointer(bp + 268 /* st */)) = mbstate_t{} -__110: - if !(*(*uint8)(unsafe.Pointer(bp + uintptr(AssignInt32(&c, func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }())+1))) != 0) { - goto __111 - } - switch Xmbrtowc(tls, bp+260, func() uintptr { *(*uint8)(unsafe.Pointer(bp + 264)) = uint8(c); return bp + 264 }(), uint64(1), bp+268 /* &st */) { - case Uint64FromInt32(-1): - goto __113 - case Uint64FromInt32(-2): - goto __114 - } - goto __112 -__113: - goto input_fail -__114: - goto __110 -__112: - ; - if !(wcs != 0) { - goto __115 - } - *(*wchar_t)(unsafe.Pointer(wcs + uintptr(PostIncUint64(&i, 1))*4)) = *(*wchar_t)(unsafe.Pointer(bp + 260 /* wc */)) -__115: - ; - if !(alloc != 0 && i == k) { - goto __116 - } - k = k + (k + uint64(1)) - tmp = Xrealloc(tls, wcs, k*size_t(unsafe.Sizeof(wchar_t(0)))) - if !!(tmp != 0) { - goto __117 - } - goto alloc_fail -__117: - ; - wcs = tmp -__116: - ; - goto __110 -__111: - ; - if !!(Xmbsinit(tls, bp+268) != 0) { - goto __118 - } - goto input_fail -__118: - ; - goto __106 -__105: - if !(alloc != 0) { - goto __119 - } - s = Xmalloc(tls, k) - if !!(s != 0) { - goto __121 - } - goto alloc_fail -__121: - ; -__122: - if !(*(*uint8)(unsafe.Pointer(bp + uintptr(AssignInt32(&c, func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }())+1))) != 0) { - goto __123 - } - *(*uint8)(unsafe.Pointer(s + uintptr(PostIncUint64(&i, 1)))) = uint8(c) - if !(i == k) { - goto __124 - } - k = k + (k + uint64(1)) - tmp1 = Xrealloc(tls, s, k) - if !!(tmp1 != 0) { - goto __125 - } - goto alloc_fail -__125: - ; - s = tmp1 -__124: - ; - goto __122 -__123: - ; - goto __120 -__119: - if !(AssignUintptr(&s, dest) != 0) { - goto __126 - } -__128: - if !(*(*uint8)(unsafe.Pointer(bp + uintptr(AssignInt32(&c, func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }())+1))) != 0) { - goto __129 - } - *(*uint8)(unsafe.Pointer(s + uintptr(PostIncUint64(&i, 1)))) = uint8(c) - goto __128 -__129: - ; - goto __127 -__126: -__130: - if !(*(*uint8)(unsafe.Pointer(bp + uintptr(AssignInt32(&c, func() int32 { - if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend { - return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1)))) - } - return X__shgetc(tls, f) - }())+1))) != 0) { - goto __131 - } - goto __130 -__131: - ; -__127: - ; -__120: - ; -__106: - ; - if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) { - (*FILE)(unsafe.Pointer(f)).rpos-- - } else { - } - if !!((*FILE)(unsafe.Pointer(f)).shcnt+(int64((*FILE)(unsafe.Pointer(f)).rpos)-int64((*FILE)(unsafe.Pointer(f)).buf))/1 != 0) { - goto __132 - } - goto match_fail -__132: - ; - if !(t == 'c' && (*FILE)(unsafe.Pointer(f)).shcnt+(int64((*FILE)(unsafe.Pointer(f)).rpos)-int64((*FILE)(unsafe.Pointer(f)).buf))/1 != off_t(width)) { - goto __133 - } - goto match_fail -__133: - ; - if !(alloc != 0) { - goto __134 - } - if !(size == 1) { - goto __135 - } - *(*uintptr)(unsafe.Pointer(dest)) = wcs - goto __136 -__135: - *(*uintptr)(unsafe.Pointer(dest)) = s -__136: - ; -__134: - ; - if !(t != 'c') { - goto __137 - } - if !(wcs != 0) { - goto __138 - } - *(*wchar_t)(unsafe.Pointer(wcs + uintptr(i)*4)) = 0 -__138: - ; - if !(s != 0) { - goto __139 - } - *(*uint8)(unsafe.Pointer(s + uintptr(i))) = uint8(0) -__139: - ; -__137: - ; - goto __70 -__74: -__75: -__76: - base = 16 - goto int_common -__77: - base = 8 - goto int_common -__78: -__79: - base = 10 - goto int_common -__80: - base = 0 -int_common: - x = X__intscan(tls, f, uint32(base), 0, 2*uint64(0x7fffffffffffffff)+uint64(1)) - if !!((*FILE)(unsafe.Pointer(f)).shcnt+(int64((*FILE)(unsafe.Pointer(f)).rpos)-int64((*FILE)(unsafe.Pointer(f)).buf))/1 != 0) { - goto __140 - } - goto match_fail -__140: - ; - if !(t == 'p' && dest != 0) { - goto __141 - } - *(*uintptr)(unsafe.Pointer(dest)) = uintptr(uintptr_t(x)) - goto __142 -__141: - store_int(tls, dest, size, x) -__142: - ; - goto __70 -__81: -__82: -__83: -__84: -__85: -__86: -__87: -__88: - y = X__floatscan(tls, f, size, 0) - if !!((*FILE)(unsafe.Pointer(f)).shcnt+(int64((*FILE)(unsafe.Pointer(f)).rpos)-int64((*FILE)(unsafe.Pointer(f)).buf))/1 != 0) { - goto __143 - } - goto match_fail -__143: - ; - if !(dest != 0) { - goto __144 - } - switch size { - case 0: - goto __146 - case 1: - goto __147 - case 2: - goto __148 - } - goto __145 -__146: - *(*float32)(unsafe.Pointer(dest)) = float32(y) - goto __145 -__147: - *(*float64)(unsafe.Pointer(dest)) = y - goto __145 -__148: - *(*float64)(unsafe.Pointer(dest)) = y - goto __145 -__145: - ; -__144: - ; - goto __70 -__70: - ; - - pos = pos + ((*FILE)(unsafe.Pointer(f)).shcnt + (int64((*FILE)(unsafe.Pointer(f)).rpos)-int64((*FILE)(unsafe.Pointer(f)).buf))/1) - if !(dest != 0) { - goto __149 - } - matches++ -__149: - ; - goto __4 -__4: - p++ - goto __3 - goto __5 -__5: - ; - if !(0 != 0) { - goto __150 - } -fmt_fail: -alloc_fail: -input_fail: - if !!(matches != 0) { - goto __151 - } - matches-- -__151: - ; -match_fail: - if !(alloc != 0) { - goto __152 - } - Xfree(tls, s) - Xfree(tls, wcs) -__152: - ; -__150: - ; -__153: - if !(__need_unlock != 0) { - goto __156 - } - X__unlockfile(tls, f) -__156: - ; - goto __154 -__154: - if 0 != 0 { - goto __153 - } - goto __155 -__155: - ; - return matches -} - -func string_read(tls *TLS, f uintptr, buf uintptr, len size_t) size_t { /* vsscanf.c:4:15: */ - var src uintptr = (*FILE)(unsafe.Pointer(f)).cookie - var k size_t = len + uint64(256) - var end uintptr = Xmemchr(tls, src, 0, k) - if end != 0 { - k = size_t((int64(end) - int64(src)) / 1) - } - if k < len { - len = k - } - Xmemcpy(tls, buf, src, len) - (*FILE)(unsafe.Pointer(f)).rpos = src + uintptr(len) - (*FILE)(unsafe.Pointer(f)).rend = src + uintptr(k) - (*FILE)(unsafe.Pointer(f)).cookie = src + uintptr(k) - return len -} - -func Xvsscanf(tls *TLS, s uintptr, fmt uintptr, ap va_list) int32 { /* vsscanf.c:18:5: */ - bp := tls.Alloc(232) - defer tls.Free(232) - - *(*FILE)(unsafe.Pointer(bp /* f */)) = FILE{read: *(*uintptr)(unsafe.Pointer(&struct { - f func(*TLS, uintptr, uintptr, size_t) size_t - }{string_read})), buf: s, lock: -1, cookie: s} - return Xvfscanf(tls, bp, fmt, ap) -} - -func Xbsearch(tls *TLS, key uintptr, base uintptr, nel size_t, width size_t, cmp uintptr) uintptr { /* bsearch.c:3:6: */ - var try uintptr - var sign int32 - for nel > uint64(0) { - try = base + uintptr(width*(nel/uint64(2))) - sign = (*struct { - f func(*TLS, uintptr, uintptr) int32 - })(unsafe.Pointer(&struct{ uintptr }{cmp})).f(tls, key, try) - if sign < 0 { - nel = nel / uint64(2) - } else if sign > 0 { - base = try + uintptr(width) - nel = nel - (nel/uint64(2) + uint64(1)) - } else { - return try - } - } - return uintptr(0) -} - -func strtox(tls *TLS, s uintptr, p uintptr, prec int32) float64 { /* strtod.c:6:20: */ - bp := tls.Alloc(232) - defer tls.Free(232) - - // var f FILE at bp, 232 - - (*FILE)(unsafe.Pointer(bp)).buf = AssignPtrUintptr(bp+8, s) - (*FILE)(unsafe.Pointer(bp)).rend = UintptrFromInt32(-1) - X__shlim(tls, bp, int64(0)) - var y float64 = X__floatscan(tls, bp, prec, 1) - var cnt off_t = (*FILE)(unsafe.Pointer(bp)).shcnt + (int64((*FILE)(unsafe.Pointer(bp)).rpos)-int64((*FILE)(unsafe.Pointer(bp)).buf))/1 - if p != 0 { - *(*uintptr)(unsafe.Pointer(p)) = func() uintptr { - if cnt != 0 { - return s + uintptr(cnt) - } - return s - }() - } - return y -} - -func Xstrtof(tls *TLS, s uintptr, p uintptr) float32 { /* strtod.c:17:7: */ - return float32(strtox(tls, s, p, 0)) -} - -func Xstrtod(tls *TLS, s uintptr, p uintptr) float64 { /* strtod.c:22:8: */ - return strtox(tls, s, p, 1) -} - -func Xstrtold(tls *TLS, s uintptr, p uintptr) float64 { /* strtod.c:27:13: */ - return strtox(tls, s, p, 2) -} - -func strtox1(tls *TLS, s uintptr, p uintptr, base int32, lim uint64) uint64 { /* strtol.c:8:27: */ - bp := tls.Alloc(232) - defer tls.Free(232) - - // var f FILE at bp, 232 - - (*FILE)(unsafe.Pointer(bp)).buf = AssignPtrUintptr(bp+8, s) - (*FILE)(unsafe.Pointer(bp)).rend = UintptrFromInt32(-1) - X__shlim(tls, bp, int64(0)) - var y uint64 = X__intscan(tls, bp, uint32(base), 1, lim) - if p != 0 { - var cnt size_t = size_t((*FILE)(unsafe.Pointer(bp)).shcnt + (int64((*FILE)(unsafe.Pointer(bp)).rpos)-int64((*FILE)(unsafe.Pointer(bp)).buf))/1) - *(*uintptr)(unsafe.Pointer(p)) = s + uintptr(cnt) - } - return y -} - -func Xstrtoull(tls *TLS, s uintptr, p uintptr, base int32) uint64 { /* strtol.c:21:20: */ - return strtox1(tls, s, p, base, 2*uint64(0x7fffffffffffffff)+uint64(1)) -} - -func Xstrtoll(tls *TLS, s uintptr, p uintptr, base int32) int64 { /* strtol.c:26:11: */ - return int64(strtox1(tls, s, p, base, Uint64FromInt64(-0x7fffffffffffffff-int64(1)))) -} - -func Xstrtoul(tls *TLS, s uintptr, p uintptr, base int32) uint64 { /* strtol.c:31:15: */ - return uint64(strtox1(tls, s, p, base, 2*uint64(0x7fffffffffffffff)+uint64(1))) -} - -func Xstrtol(tls *TLS, s uintptr, p uintptr, base int32) int64 { /* strtol.c:36:6: */ - return int64(strtox1(tls, s, p, base, 0+Uint64FromInt64(Int64(-Int64(0x7fffffffffffffff))-Int64FromInt32(1)))) -} - -func Xstrtoimax(tls *TLS, s uintptr, p uintptr, base int32) intmax_t { /* strtol.c:41:10: */ - return intmax_t(Xstrtoll(tls, s, p, base)) -} - -func Xstrtoumax(tls *TLS, s uintptr, p uintptr, base int32) uintmax_t { /* strtol.c:46:11: */ - return uintmax_t(Xstrtoull(tls, s, p, base)) -} - -func Xstrdup(tls *TLS, s uintptr) uintptr { /* strdup.c:4:6: */ - var l size_t = Xstrlen(tls, s) - var d uintptr = Xmalloc(tls, l+uint64(1)) - if !(d != 0) { - return uintptr(0) - } - return Xmemcpy(tls, d, s, l+uint64(1)) -} - -func Xstrlcat(tls *TLS, d uintptr, s uintptr, n size_t) size_t { /* strlcat.c:4:8: */ - var l size_t = Xstrnlen(tls, d, n) - if l == n { - return l + Xstrlen(tls, s) - } - return l + Xstrlcpy(tls, d+uintptr(l), s, n-l) -} - -// Support signed or unsigned plain-char - -// Implementation choices... - -// Arbitrary numbers... - -// POSIX/SUS requirements follow. These numbers come directly -// from SUS and have nothing to do with the host system. - -func Xstrlcpy(tls *TLS, d uintptr, s uintptr, n size_t) size_t { /* strlcpy.c:11:8: */ - var d0 uintptr - var wd uintptr - var ws uintptr - d0 = d - - if !!(int32(PostDecUint64(&n, 1)) != 0) { - goto __1 - } - goto finish -__1: - ; - if !(uintptr_t(s)&(uint64(unsafe.Sizeof(size_t(0)))-uint64(1)) == uintptr_t(d)&(uint64(unsafe.Sizeof(size_t(0)))-uint64(1))) { - goto __2 - } -__3: - if !(uintptr_t(s)&(uint64(unsafe.Sizeof(size_t(0)))-uint64(1)) != 0 && n != 0 && AssignPtrUint8(d, *(*uint8)(unsafe.Pointer(s))) != 0) { - goto __5 - } - goto __4 -__4: - n-- - s++ - d++ - goto __3 - goto __5 -__5: - ; - if !(n != 0 && *(*uint8)(unsafe.Pointer(s)) != 0) { - goto __6 - } - wd = d - ws = s -__7: - if !(n >= size_t(unsafe.Sizeof(size_t(0))) && !((*(*uint64)(unsafe.Pointer(ws))-Uint64(Uint64FromInt32(-1))/uint64(255)) & ^*(*uint64)(unsafe.Pointer(ws)) & (Uint64(Uint64FromInt32(-1))/uint64(255)*uint64(255/2+1)) != 0)) { - goto __9 - } - *(*size_t)(unsafe.Pointer(wd)) = *(*uint64)(unsafe.Pointer(ws)) - goto __8 -__8: - n = n - size_t(unsafe.Sizeof(size_t(0))) - ws += 8 - wd += 8 - goto __7 - goto __9 -__9: - ; - d = wd - s = ws -__6: - ; -__2: - ; -__10: - if !(n != 0 && AssignPtrUint8(d, *(*uint8)(unsafe.Pointer(s))) != 0) { - goto __12 - } - goto __11 -__11: - n-- - s++ - d++ - goto __10 - goto __12 -__12: - ; - *(*uint8)(unsafe.Pointer(d)) = uint8(0) -finish: - return size_t((int64(d)-int64(d0))/1) + Xstrlen(tls, s) -} - -func Xstrncasecmp(tls *TLS, _l uintptr, _r uintptr, n size_t) int32 { /* strncasecmp.c:4:5: */ - var l uintptr = _l - var r uintptr = _r - if !(int32(PostDecUint64(&n, 1)) != 0) { - return 0 - } -__1: - if !(*(*uint8)(unsafe.Pointer(l)) != 0 && *(*uint8)(unsafe.Pointer(r)) != 0 && n != 0 && (int32(*(*uint8)(unsafe.Pointer(l))) == int32(*(*uint8)(unsafe.Pointer(r))) || Xtolower(tls, int32(*(*uint8)(unsafe.Pointer(l)))) == Xtolower(tls, int32(*(*uint8)(unsafe.Pointer(r)))))) { - goto __3 - } - goto __2 -__2: - l++ - r++ - n-- - goto __1 - goto __3 -__3: - ; - return Xtolower(tls, int32(*(*uint8)(unsafe.Pointer(l)))) - Xtolower(tls, int32(*(*uint8)(unsafe.Pointer(r)))) -} - -func X__strncasecmp_l(tls *TLS, l uintptr, r uintptr, n size_t, loc locale_t) int32 { /* strncasecmp.c:12:5: */ - return Xstrncasecmp(tls, l, r, n) -} - -func Xstrncat(tls *TLS, d uintptr, s uintptr, n size_t) uintptr { /* strncat.c:3:6: */ - var a uintptr = d - d += uintptr(Xstrlen(tls, d)) - for n != 0 && *(*uint8)(unsafe.Pointer(s)) != 0 { - n-- - *(*uint8)(unsafe.Pointer(PostIncUintptr(&d, 1))) = *(*uint8)(unsafe.Pointer(PostIncUintptr(&s, 1))) - } - *(*uint8)(unsafe.Pointer(PostIncUintptr(&d, 1))) = uint8(0) - return a -} - -func Xstrnlen(tls *TLS, s uintptr, n size_t) size_t { /* strnlen.c:3:8: */ - var p uintptr = Xmemchr(tls, s, 0, n) - if p != 0 { - return uint64((int64(p) - int64(s)) / 1) - } - return n -} - -func Xstrspn(tls *TLS, s uintptr, c uintptr) size_t { /* strspn.c:6:8: */ - bp := tls.Alloc(32) - defer tls.Free(32) - - var a uintptr = s - *(*[4]size_t)(unsafe.Pointer(bp /* byteset */)) = [4]size_t{0: uint64(0)} - - if !(int32(*(*uint8)(unsafe.Pointer(c))) != 0) { - return uint64(0) - } - if !(int32(*(*uint8)(unsafe.Pointer(c + 1))) != 0) { - for ; int32(*(*uint8)(unsafe.Pointer(s))) == int32(*(*uint8)(unsafe.Pointer(c))); s++ { - } - return size_t((int64(s) - int64(a)) / 1) - } - - for ; *(*uint8)(unsafe.Pointer(c)) != 0 && AssignOrPtrUint64(bp+uintptr(size_t(*(*uint8)(unsafe.Pointer(c)))/(uint64(8)*uint64(unsafe.Sizeof(size_t(0)))))*8, size_t(uint64(1))<<(size_t(*(*uint8)(unsafe.Pointer(c)))%(uint64(8)*uint64(unsafe.Sizeof(size_t(0)))))) != 0; c++ { - } - for ; *(*uint8)(unsafe.Pointer(s)) != 0 && *(*size_t)(unsafe.Pointer(bp + uintptr(size_t(*(*uint8)(unsafe.Pointer(s)))/(uint64(8)*uint64(unsafe.Sizeof(size_t(0)))))*8))&(size_t(uint64(1))<<(size_t(*(*uint8)(unsafe.Pointer(s)))%(uint64(8)*uint64(unsafe.Sizeof(size_t(0)))))) != 0; s++ { - } - return size_t((int64(s) - int64(a)) / 1) -} - -func Xstrtok(tls *TLS, s uintptr, sep uintptr) uintptr { /* strtok.c:3:6: */ - if !(s != 0) && !(int32(AssignUintptr(&s, _sp)) != 0) { - return uintptr(0) - } - s += uintptr(Xstrspn(tls, s, sep)) - if !(int32(*(*uint8)(unsafe.Pointer(s))) != 0) { - return AssignPtrUintptr(uintptr(unsafe.Pointer(&_sp)), uintptr(0)) - } - _sp = s + uintptr(Xstrcspn(tls, s, sep)) - if *(*uint8)(unsafe.Pointer(_sp)) != 0 { - *(*uint8)(unsafe.Pointer(PostIncUintptr(&_sp, 1))) = uint8(0) - } else { - _sp = uintptr(0) - } - return s -} - -var _sp uintptr /* strtok.c:5:14: */ - -func X__ccgo_pthreadAttrGetDetachState(tls *TLS, a uintptr) int32 { /* pthread_attr_get.c:3:5: */ - return *(*int32)(unsafe.Pointer(a + 6*4)) -} - -func Xpthread_attr_getdetachstate(tls *TLS, a uintptr, state uintptr) int32 { /* pthread_attr_get.c:7:5: */ - *(*int32)(unsafe.Pointer(state)) = *(*int32)(unsafe.Pointer(a + 6*4)) - return 0 -} - -// -// int pthread_attr_getguardsize(const pthread_attr_t *restrict a, size_t *restrict size) -// { -// *size = a->_a_guardsize; -// return 0; -// } -// -// int pthread_attr_getinheritsched(const pthread_attr_t *restrict a, int *restrict inherit) -// { -// *inherit = a->_a_sched; -// return 0; -// } -// -// int pthread_attr_getschedparam(const pthread_attr_t *restrict a, struct sched_param *restrict param) -// { -// param->sched_priority = a->_a_prio; -// return 0; -// } -// -// int pthread_attr_getschedpolicy(const pthread_attr_t *restrict a, int *restrict policy) -// { -// *policy = a->_a_policy; -// return 0; -// } -// -// int pthread_attr_getscope(const pthread_attr_t *restrict a, int *restrict scope) -// { -// *scope = PTHREAD_SCOPE_SYSTEM; -// return 0; -// } -// -// int pthread_attr_getstack(const pthread_attr_t *restrict a, void **restrict addr, size_t *restrict size) -// { -// if (!a->_a_stackaddr) -// return EINVAL; -// *size = a->_a_stacksize; -// *addr = (void *)(a->_a_stackaddr - *size); -// return 0; -// } -// -// int pthread_attr_getstacksize(const pthread_attr_t *restrict a, size_t *restrict size) -// { -// *size = a->_a_stacksize; -// return 0; -// } -// -// int pthread_barrierattr_getpshared(const pthread_barrierattr_t *restrict a, int *restrict pshared) -// { -// *pshared = !!a->__attr; -// return 0; -// } -// -// int pthread_condattr_getclock(const pthread_condattr_t *restrict a, clockid_t *restrict clk) -// { -// *clk = a->__attr & 0x7fffffff; -// return 0; -// } -// -// int pthread_condattr_getpshared(const pthread_condattr_t *restrict a, int *restrict pshared) -// { -// *pshared = a->__attr>>31; -// return 0; -// } -// -// int pthread_mutexattr_getprotocol(const pthread_mutexattr_t *restrict a, int *restrict protocol) -// { -// *protocol = PTHREAD_PRIO_NONE; -// return 0; -// } -// int pthread_mutexattr_getpshared(const pthread_mutexattr_t *restrict a, int *restrict pshared) -// { -// *pshared = a->__attr / 128U % 2; -// return 0; -// } -// -// int pthread_mutexattr_getrobust(const pthread_mutexattr_t *restrict a, int *restrict robust) -// { -// *robust = a->__attr / 4U % 2; -// return 0; -// } - -func X__ccgo_pthreadMutexattrGettype(tls *TLS, a uintptr) int32 { /* pthread_attr_get.c:93:5: */ - return int32((*pthread_mutexattr_t)(unsafe.Pointer(a)).__attr & uint32(3)) -} - -// int pthread_mutexattr_gettype(const pthread_mutexattr_t *restrict a, int *restrict type) -// { -// *type = a->__attr & 3; -// return 0; -// } -// -// int pthread_rwlockattr_getpshared(const pthread_rwlockattr_t *restrict a, int *restrict pshared) -// { -// *pshared = a->__attr[0]; -// return 0; -// } - -func Xpthread_attr_setdetachstate(tls *TLS, a uintptr, state int32) int32 { /* pthread_attr_setdetachstate.c:3:5: */ - if uint32(state) > 1 { - return 22 - } - *(*int32)(unsafe.Pointer(a + 6*4)) = state - return 0 -} - -func X__ccgo_getMutexType(tls *TLS, m uintptr) int32 { /* pthread_mutex_lock.c:3:5: */ - return *(*int32)(unsafe.Pointer(m)) & 15 -} - -// int __pthread_mutex_lock(pthread_mutex_t *m) -// { -// if ((m->_m_type&15) == PTHREAD_MUTEX_NORMAL -// && !a_cas(&m->_m_lock, 0, EBUSY)) -// return 0; -// -// return __pthread_mutex_timedlock(m, 0); -// } -// -// weak_alias(__pthread_mutex_lock, pthread_mutex_lock); - -func Xpthread_mutexattr_destroy(tls *TLS, a uintptr) int32 { /* pthread_mutexattr_destroy.c:3:5: */ - return 0 -} - -func Xpthread_mutexattr_init(tls *TLS, a uintptr) int32 { /* pthread_mutexattr_init.c:3:5: */ - *(*pthread_mutexattr_t)(unsafe.Pointer(a)) = pthread_mutexattr_t{} - return 0 -} - -func Xpthread_mutexattr_settype(tls *TLS, a uintptr, type1 int32) int32 { /* pthread_mutexattr_settype.c:3:5: */ - if uint32(type1) > uint32(2) { - return 22 - } - (*pthread_mutexattr_t)(unsafe.Pointer(a)).__attr = (*pthread_mutexattr_t)(unsafe.Pointer(a)).__attr&Uint32FromInt32(CplInt32(3)) | uint32(type1) - return 0 -} - -func init() { - *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&ptable)) + 0)) = uintptr(unsafe.Pointer(&table)) + uintptr(128)*2 // __ctype_b_loc.c:36:45: -} - -var ts1 = "infinity\x00nan\x00\x00\x00\x01\x02\x04\a\x03\x06\x05\x00.\x00%d.%d.%d.%d.in-addr.arpa\x00ip6.arpa\x000123456789abcdef\x00/etc/hosts\x00rb\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\xff\x00%d.%d.%d.%d\x00%x:%x:%x:%x:%x:%x:%x:%x\x00%x:%x:%x:%x:%x:%x:%d.%d.%d.%d\x00:0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\xff\x00\x00\x00\x00 \x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00 \x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xfc\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" -var ts = (*reflect.StringHeader)(unsafe.Pointer(&ts1)).Data diff --git a/vendor/modernc.org/libc/musl_netbsd_amd64.go b/vendor/modernc.org/libc/musl_netbsd_amd64.go index b21d3d946..28a98053d 100644 --- a/vendor/modernc.org/libc/musl_netbsd_amd64.go +++ b/vendor/modernc.org/libc/musl_netbsd_amd64.go @@ -860,6 +860,9 @@ func __isspace(tls *TLS, _c int32) int32 { /* ctype.h:26:21: */ type locale_t1 = uintptr /* alltypes.h:343:32 */ func Xisalnum(tls *TLS, c int32) int32 { /* isalnum.c:3:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(func() int32 { if 0 != 0 { return Xisalpha(tls, c) @@ -874,30 +877,51 @@ func Xisalnum(tls *TLS, c int32) int32 { /* isalnum.c:3:5: */ } func X__isalnum_l(tls *TLS, c int32, l locale_t1) int32 { /* isalnum.c:8:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisalnum(tls, c) } func Xisalpha(tls *TLS, c int32) int32 { /* isalpha.c:4:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(uint32(c)|uint32(32)-uint32('a') < uint32(26)) } func X__isalpha_l(tls *TLS, c int32, l locale_t1) int32 { /* isalpha.c:9:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisalpha(tls, c) } func Xisdigit(tls *TLS, c int32) int32 { /* isdigit.c:4:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(uint32(c)-uint32('0') < uint32(10)) } func X__isdigit_l(tls *TLS, c int32, l locale_t1) int32 { /* isdigit.c:9:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisdigit(tls, c) } func Xisprint(tls *TLS, c int32) int32 { /* isprint.c:4:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(uint32(c)-uint32(0x20) < uint32(0x5f)) } func X__isprint_l(tls *TLS, c int32, l locale_t1) int32 { /* isprint.c:9:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisprint(tls, c) } @@ -1615,6 +1639,9 @@ func hexfloat(tls *TLS, f uintptr, bits int32, emin int32, sign int32, pok int32 } func X__floatscan(tls *TLS, f uintptr, prec int32, pok int32) float64 { /* floatscan.c:427:13: */ + if __ccgo_strace { + trc("tls=%v f=%v prec=%v pok=%v, (%v:)", tls, f, prec, pok, origin(2)) + } var sign int32 = 1 var i size_t var bits int32 @@ -1792,6 +1819,9 @@ var table = [257]uint8{Uint8FromInt32(-1), } /* intscan.c:7:28 */ func X__intscan(tls *TLS, f uintptr, base uint32, pok int32, lim uint64) uint64 { /* intscan.c:26:20: */ + if __ccgo_strace { + trc("tls=%v f=%v base=%v pok=%v lim=%v, (%v:)", tls, f, base, pok, lim, origin(2)) + } var val uintptr var c int32 var neg int32 @@ -2097,6 +2127,9 @@ __43: // the actual count. func X__shlim(tls *TLS, f uintptr, lim off_t) { /* shgetc.c:8:6: */ + if __ccgo_strace { + trc("tls=%v f=%v lim=%v, (%v:)", tls, f, lim, origin(2)) + } (*FILE1)(unsafe.Pointer(f)).Fshlim = lim (*FILE1)(unsafe.Pointer(f)).Fshcnt = (int64((*FILE1)(unsafe.Pointer(f)).Fbuf) - int64((*FILE1)(unsafe.Pointer(f)).Frpos)) / 1 // If lim is nonzero, rend must be a valid pointer. @@ -2108,6 +2141,9 @@ func X__shlim(tls *TLS, f uintptr, lim off_t) { /* shgetc.c:8:6: */ } func X__shgetc(tls *TLS, f uintptr) int32 { /* shgetc.c:19:5: */ + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } var c int32 var cnt off_t = (*FILE1)(unsafe.Pointer(f)).Fshcnt + (int64((*FILE1)(unsafe.Pointer(f)).Frpos)-int64((*FILE1)(unsafe.Pointer(f)).Fbuf))/1 if (*FILE1)(unsafe.Pointer(f)).Fshlim != 0 && cnt >= (*FILE1)(unsafe.Pointer(f)).Fshlim || AssignInt32(&c, X__uflow(tls, f)) < 0 { @@ -2134,20 +2170,32 @@ func __bswap32(tls *TLS, __x uint32_t) uint32_t { /* endian.h:24:26: */ } func Xcopysignl(tls *TLS, x float64, y float64) float64 { /* copysignl.c:4:13: */ + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + } return Xcopysign(tls, x, y) } func Xfabsl(tls *TLS, x float64) float64 { /* fabsl.c:3:13: */ + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + } return Xfabs(tls, x) } func Xfmodl(tls *TLS, x float64, y float64) float64 { /* fmodl.c:4:13: */ + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + } return Xfmod(tls, x, y) } var toint double_t = float64(float64(1)) / 2.22044604925031308085e-16 /* rint.c:10:23 */ func Xrint(tls *TLS, x float64) float64 { /* rint.c:12:8: */ + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + } bp := tls.Alloc(8) defer tls.Free(8) @@ -2177,6 +2225,9 @@ func Xrint(tls *TLS, x float64) float64 { /* rint.c:12:8: */ } func Xscalbn(tls *TLS, x float64, n int32) float64 { /* scalbn.c:4:8: */ + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + } bp := tls.Alloc(8) defer tls.Free(8) @@ -2213,6 +2264,9 @@ func Xscalbn(tls *TLS, x float64, n int32) float64 { /* scalbn.c:4:8: */ } func Xscalbnl(tls *TLS, x float64, n int32) float64 { /* scalbnl.c:4:13: */ + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + } return Xscalbn(tls, x, n) } @@ -2544,6 +2598,9 @@ type resolvconf = struct { } /* lookup.h:34:1 */ func Xfreeaddrinfo(tls *TLS, p uintptr) { /* freeaddrinfo.c:7:6: */ + if __ccgo_strace { + trc("tls=%v p=%v, (%v:)", tls, p, origin(2)) + } var cnt size_t cnt = uint64(1) __1: @@ -2681,6 +2738,9 @@ type __ptcb = struct { type useconds_t = uint32 /* alltypes.h:260:18 */ func Xgetaddrinfo(tls *TLS, host uintptr, serv uintptr, hint uintptr, res uintptr) int32 { /* getaddrinfo.c:12:5: */ + if __ccgo_strace { + trc("tls=%v host=%v serv=%v hint=%v res=%v, (%v:)", tls, host, serv, hint, res, origin(2)) + } bp := tls.Alloc(1608) defer tls.Free(1608) @@ -2885,6 +2945,9 @@ type mmsghdr = struct { } /* socket.h:63:1 */ func Xgethostbyaddr(tls *TLS, a uintptr, l socklen_t, af int32) uintptr { /* gethostbyaddr.c:7:16: */ + if __ccgo_strace { + trc("tls=%v a=%v l=%v af=%v, (%v:)", tls, a, l, af, origin(2)) + } bp := tls.Alloc(8) defer tls.Free(8) @@ -2911,10 +2974,16 @@ func Xgethostbyaddr(tls *TLS, a uintptr, l socklen_t, af int32) uintptr { /* get var _sh uintptr /* gethostbyaddr.c:9:24: */ func Xgethostbyname(tls *TLS, name uintptr) uintptr { /* gethostbyname.c:8:16: */ + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + } return Xgethostbyname2(tls, name, 2) } func Xgethostbyname2(tls *TLS, name uintptr, af int32) uintptr { /* gethostbyname2.c:8:16: */ + if __ccgo_strace { + trc("tls=%v name=%v af=%v, (%v:)", tls, name, af, origin(2)) + } bp := tls.Alloc(8) defer tls.Free(8) @@ -2941,6 +3010,9 @@ func Xgethostbyname2(tls *TLS, name uintptr, af int32) uintptr { /* gethostbynam var _sh1 uintptr /* gethostbyname2.c:10:24: */ func Xgethostbyname2_r(tls *TLS, name uintptr, af int32, h uintptr, buf uintptr, buflen size_t, res uintptr, err uintptr) int32 { /* gethostbyname2_r.c:11:5: */ + if __ccgo_strace { + trc("tls=%v name=%v af=%v h=%v buf=%v buflen=%v res=%v err=%v, (%v:)", tls, name, af, h, buf, buflen, res, err, origin(2)) + } bp := tls.Alloc(1600) defer tls.Free(1600) @@ -3329,10 +3401,16 @@ func reverse_services(tls *TLS, buf uintptr, port int32, dgram int32) { /* getna var Xh_errno int32 /* h_errno.c:4:5: */ func X__h_errno_location(tls *TLS) uintptr { /* h_errno.c:6:5: */ + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } return uintptr(unsafe.Pointer(&Xh_errno)) } func X__inet_aton(tls *TLS, s0 uintptr, dest uintptr) int32 { /* inet_aton.c:7:5: */ + if __ccgo_strace { + trc("tls=%v s0=%v dest=%v, (%v:)", tls, s0, dest, origin(2)) + } bp := tls.Alloc(40) defer tls.Free(40) @@ -3384,6 +3462,9 @@ func X__inet_aton(tls *TLS, s0 uintptr, dest uintptr) int32 { /* inet_aton.c:7:5 } func Xinet_ntop(tls *TLS, af int32, a0 uintptr, s uintptr, l socklen_t) uintptr { /* inet_ntop.c:7:12: */ + if __ccgo_strace { + trc("tls=%v af=%v a0=%v s=%v l=%v, (%v:)", tls, af, a0, s, l, origin(2)) + } bp := tls.Alloc(276) defer tls.Free(276) @@ -3458,6 +3539,9 @@ func hexval(tls *TLS, c uint32) int32 { /* inet_pton.c:7:12: */ } func Xinet_pton(tls *TLS, af int32, s uintptr, a0 uintptr) int32 { /* inet_pton.c:15:5: */ + if __ccgo_strace { + trc("tls=%v af=%v s=%v a0=%v, (%v:)", tls, af, s, a0, origin(2)) + } bp := tls.Alloc(16) defer tls.Free(16) @@ -3555,6 +3639,9 @@ func Xinet_pton(tls *TLS, af int32, s uintptr, a0 uintptr) int32 { /* inet_pton. } func X__lookup_ipliteral(tls *TLS, buf uintptr, name uintptr, family int32) int32 { /* lookup_ipliteral.c:12:5: */ + if __ccgo_strace { + trc("tls=%v buf=%v name=%v family=%v, (%v:)", tls, buf, name, family, origin(2)) + } bp := tls.Alloc(96) defer tls.Free(96) @@ -3877,6 +3964,9 @@ func addrcmp(tls *TLS, _a uintptr, _b uintptr) int32 { /* lookup_name.c:305:12: } func X__lookup_name(tls *TLS, buf uintptr, canon uintptr, name uintptr, family int32, flags int32) int32 { /* lookup_name.c:311:5: */ + if __ccgo_strace { + trc("tls=%v buf=%v canon=%v name=%v family=%v flags=%v, (%v:)", tls, buf, canon, name, family, flags, origin(2)) + } bp := tls.Alloc(92) defer tls.Free(92) @@ -4043,6 +4133,9 @@ func X__lookup_name(tls *TLS, buf uintptr, canon uintptr, name uintptr, family i } func X__lookup_serv(tls *TLS, buf uintptr, name uintptr, proto int32, socktype int32, flags int32) int32 { /* lookup_serv.c:12:5: */ + if __ccgo_strace { + trc("tls=%v buf=%v name=%v proto=%v socktype=%v flags=%v, (%v:)", tls, buf, name, proto, socktype, flags, origin(2)) + } bp := tls.Alloc(8) defer tls.Free(8) @@ -4168,6 +4261,9 @@ func X__lookup_serv(tls *TLS, buf uintptr, name uintptr, proto int32, socktype i } func X__toread(tls *TLS, f uintptr) int32 { /* __toread.c:3:5: */ + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } *(*int32)(unsafe.Pointer(f + 136)) |= (*FILE1)(unsafe.Pointer(f)).Fmode - 1 if (*FILE1)(unsafe.Pointer(f)).Fwpos != (*FILE1)(unsafe.Pointer(f)).Fwbase { (*struct { @@ -4187,6 +4283,9 @@ func X__toread(tls *TLS, f uintptr) int32 { /* __toread.c:3:5: */ } func X__toread_needs_stdio_exit(tls *TLS) { /* __toread.c:16:13: */ + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } X__builtin_abort(tls) //TODO- // __stdio_exit_needed(); } @@ -4195,6 +4294,9 @@ func X__toread_needs_stdio_exit(tls *TLS) { /* __toread.c:16:13: */ // data buffered for reading. func X__uflow(tls *TLS, f uintptr) int32 { /* __uflow.c:6:5: */ + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } bp := tls.Alloc(1) defer tls.Free(1) @@ -4209,6 +4311,9 @@ func X__uflow(tls *TLS, f uintptr) int32 { /* __uflow.c:6:5: */ } func Xbsearch(tls *TLS, key uintptr, base uintptr, nel size_t, width size_t, cmp uintptr) uintptr { /* bsearch.c:3:6: */ + if __ccgo_strace { + trc("tls=%v key=%v base=%v nel=%v width=%v cmp=%v, (%v:)", tls, key, base, nel, width, cmp, origin(2)) + } var try uintptr var sign int32 for nel > uint64(0) { @@ -4251,14 +4356,23 @@ func strtox(tls *TLS, s uintptr, p uintptr, prec int32) float64 { /* strtod.c:6: } func Xstrtof(tls *TLS, s uintptr, p uintptr) float32 { /* strtod.c:17:7: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + } return float32(strtox(tls, s, p, 0)) } func Xstrtod(tls *TLS, s uintptr, p uintptr) float64 { /* strtod.c:22:8: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + } return strtox(tls, s, p, 1) } func Xstrtold(tls *TLS, s uintptr, p uintptr) float64 { /* strtod.c:27:13: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + } return strtox(tls, s, p, 2) } @@ -4280,30 +4394,51 @@ func strtox1(tls *TLS, s uintptr, p uintptr, base int32, lim uint64) uint64 { /* } func Xstrtoull(tls *TLS, s uintptr, p uintptr, base int32) uint64 { /* strtol.c:21:20: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + } return strtox1(tls, s, p, base, 2*uint64(0x7fffffffffffffff)+uint64(1)) } func Xstrtoll(tls *TLS, s uintptr, p uintptr, base int32) int64 { /* strtol.c:26:11: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + } return int64(strtox1(tls, s, p, base, Uint64FromInt64(-0x7fffffffffffffff-int64(1)))) } func Xstrtoul(tls *TLS, s uintptr, p uintptr, base int32) uint64 { /* strtol.c:31:15: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + } return uint64(strtox1(tls, s, p, base, 2*uint64(0x7fffffffffffffff)+uint64(1))) } func Xstrtol(tls *TLS, s uintptr, p uintptr, base int32) int64 { /* strtol.c:36:6: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + } return int64(strtox1(tls, s, p, base, 0+Uint64FromInt64(Int64(-Int64(0x7fffffffffffffff))-Int64FromInt32(1)))) } func Xstrtoimax(tls *TLS, s uintptr, p uintptr, base int32) intmax_t { /* strtol.c:41:10: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + } return intmax_t(Xstrtoll(tls, s, p, base)) } func Xstrtoumax(tls *TLS, s uintptr, p uintptr, base int32) uintmax_t { /* strtol.c:46:11: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + } return uintmax_t(Xstrtoull(tls, s, p, base)) } func Xstrdup(tls *TLS, s uintptr) uintptr { /* strdup.c:4:6: */ + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + } var l size_t = Xstrlen(tls, s) var d uintptr = Xmalloc(tls, l+uint64(1)) if !(d != 0) { @@ -4313,6 +4448,9 @@ func Xstrdup(tls *TLS, s uintptr) uintptr { /* strdup.c:4:6: */ } func Xstrnlen(tls *TLS, s uintptr, n size_t) size_t { /* strnlen.c:3:8: */ + if __ccgo_strace { + trc("tls=%v s=%v n=%v, (%v:)", tls, s, n, origin(2)) + } var p uintptr = Xmemchr(tls, s, 0, n) if p != 0 { return uint64((int64(p) - int64(s)) / 1) @@ -4321,6 +4459,9 @@ func Xstrnlen(tls *TLS, s uintptr, n size_t) size_t { /* strnlen.c:3:8: */ } func Xstrspn(tls *TLS, s uintptr, c uintptr) size_t { /* strspn.c:6:8: */ + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + } bp := tls.Alloc(32) defer tls.Free(32) diff --git a/vendor/modernc.org/libc/musl_netbsd_arm.go b/vendor/modernc.org/libc/musl_netbsd_arm.go index 5eea7fb2a..cf5de9c81 100644 --- a/vendor/modernc.org/libc/musl_netbsd_arm.go +++ b/vendor/modernc.org/libc/musl_netbsd_arm.go @@ -854,6 +854,9 @@ func __isspace(tls *TLS, _c int32) int32 { /* ctype.h:26:21: */ type locale_t1 = uintptr /* alltypes.h:336:32 */ func Xisalnum(tls *TLS, c int32) int32 { /* isalnum.c:3:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(func() int32 { if 0 != 0 { return Xisalpha(tls, c) @@ -868,30 +871,51 @@ func Xisalnum(tls *TLS, c int32) int32 { /* isalnum.c:3:5: */ } func X__isalnum_l(tls *TLS, c int32, l locale_t1) int32 { /* isalnum.c:8:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisalnum(tls, c) } func Xisalpha(tls *TLS, c int32) int32 { /* isalpha.c:4:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(uint32(c)|uint32(32)-uint32('a') < uint32(26)) } func X__isalpha_l(tls *TLS, c int32, l locale_t1) int32 { /* isalpha.c:9:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisalpha(tls, c) } func Xisdigit(tls *TLS, c int32) int32 { /* isdigit.c:4:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(uint32(c)-uint32('0') < uint32(10)) } func X__isdigit_l(tls *TLS, c int32, l locale_t1) int32 { /* isdigit.c:9:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisdigit(tls, c) } func Xisprint(tls *TLS, c int32) int32 { /* isprint.c:4:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(uint32(c)-uint32(0x20) < uint32(0x5f)) } func X__isprint_l(tls *TLS, c int32, l locale_t1) int32 { /* isprint.c:9:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisprint(tls, c) } @@ -1611,6 +1635,9 @@ func hexfloat(tls *TLS, f uintptr, bits int32, emin int32, sign int32, pok int32 } func X__floatscan(tls *TLS, f uintptr, prec int32, pok int32) float64 { /* floatscan.c:427:13: */ + if __ccgo_strace { + trc("tls=%v f=%v prec=%v pok=%v, (%v:)", tls, f, prec, pok, origin(2)) + } var sign int32 = 1 var i size_t var bits int32 @@ -1788,6 +1815,9 @@ var table = [257]uint8{Uint8FromInt32(-1), } /* intscan.c:7:28 */ func X__intscan(tls *TLS, f uintptr, base uint32, pok int32, lim uint64) uint64 { /* intscan.c:26:20: */ + if __ccgo_strace { + trc("tls=%v f=%v base=%v pok=%v lim=%v, (%v:)", tls, f, base, pok, lim, origin(2)) + } var val uintptr var c int32 var neg int32 @@ -2093,6 +2123,9 @@ __43: // the actual count. func X__shlim(tls *TLS, f uintptr, lim off_t1) { /* shgetc.c:8:6: */ + if __ccgo_strace { + trc("tls=%v f=%v lim=%v, (%v:)", tls, f, lim, origin(2)) + } (*FILE1)(unsafe.Pointer(f)).Fshlim = lim (*FILE1)(unsafe.Pointer(f)).Fshcnt = off_t1((int32((*FILE1)(unsafe.Pointer(f)).Fbuf) - int32((*FILE1)(unsafe.Pointer(f)).Frpos)) / 1) // If lim is nonzero, rend must be a valid pointer. @@ -2104,6 +2137,9 @@ func X__shlim(tls *TLS, f uintptr, lim off_t1) { /* shgetc.c:8:6: */ } func X__shgetc(tls *TLS, f uintptr) int32 { /* shgetc.c:19:5: */ + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } var c int32 var cnt off_t1 = (*FILE1)(unsafe.Pointer(f)).Fshcnt + off_t1((int32((*FILE1)(unsafe.Pointer(f)).Frpos)-int32((*FILE1)(unsafe.Pointer(f)).Fbuf))/1) if (*FILE1)(unsafe.Pointer(f)).Fshlim != 0 && cnt >= (*FILE1)(unsafe.Pointer(f)).Fshlim || AssignInt32(&c, X__uflow(tls, f)) < 0 { @@ -2130,20 +2166,32 @@ func __bswap32(tls *TLS, __x uint32_t) uint32_t { /* endian.h:24:26: */ } func Xcopysignl(tls *TLS, x float64, y float64) float64 { /* copysignl.c:4:13: */ + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + } return Xcopysign(tls, x, y) } func Xfabsl(tls *TLS, x float64) float64 { /* fabsl.c:3:13: */ + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + } return Xfabs(tls, x) } func Xfmodl(tls *TLS, x float64, y float64) float64 { /* fmodl.c:4:13: */ + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + } return Xfmod(tls, x, y) } var toint double_t = float64(float64(1)) / 2.22044604925031308085e-16 /* rint.c:10:23 */ func Xrint(tls *TLS, x float64) float64 { /* rint.c:12:8: */ + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + } bp := tls.Alloc(8) defer tls.Free(8) @@ -2173,6 +2221,9 @@ func Xrint(tls *TLS, x float64) float64 { /* rint.c:12:8: */ } func Xscalbn(tls *TLS, x float64, n int32) float64 { /* scalbn.c:4:8: */ + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + } bp := tls.Alloc(8) defer tls.Free(8) @@ -2209,6 +2260,9 @@ func Xscalbn(tls *TLS, x float64, n int32) float64 { /* scalbn.c:4:8: */ } func Xscalbnl(tls *TLS, x float64, n int32) float64 { /* scalbnl.c:4:13: */ + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + } return Xscalbn(tls, x, n) } @@ -2527,6 +2581,9 @@ type resolvconf = struct { } /* lookup.h:34:1 */ func Xfreeaddrinfo(tls *TLS, p uintptr) { /* freeaddrinfo.c:7:6: */ + if __ccgo_strace { + trc("tls=%v p=%v, (%v:)", tls, p, origin(2)) + } var cnt size_t cnt = size_t(1) __1: @@ -2637,6 +2694,9 @@ type __ptcb = struct { type useconds_t = uint32 /* alltypes.h:253:18 */ func Xgetaddrinfo(tls *TLS, host uintptr, serv uintptr, hint uintptr, res uintptr) int32 { /* getaddrinfo.c:12:5: */ + if __ccgo_strace { + trc("tls=%v host=%v serv=%v hint=%v res=%v, (%v:)", tls, host, serv, hint, res, origin(2)) + } bp := tls.Alloc(1608) defer tls.Free(1608) @@ -2836,6 +2896,9 @@ type mmsghdr = struct { } /* socket.h:63:1 */ func Xgethostbyaddr(tls *TLS, a uintptr, l socklen_t, af int32) uintptr { /* gethostbyaddr.c:7:16: */ + if __ccgo_strace { + trc("tls=%v a=%v l=%v af=%v, (%v:)", tls, a, l, af, origin(2)) + } bp := tls.Alloc(4) defer tls.Free(4) @@ -2862,10 +2925,16 @@ func Xgethostbyaddr(tls *TLS, a uintptr, l socklen_t, af int32) uintptr { /* get var _sh uintptr /* gethostbyaddr.c:9:24: */ func Xgethostbyname(tls *TLS, name uintptr) uintptr { /* gethostbyname.c:8:16: */ + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + } return Xgethostbyname2(tls, name, 2) } func Xgethostbyname2(tls *TLS, name uintptr, af int32) uintptr { /* gethostbyname2.c:8:16: */ + if __ccgo_strace { + trc("tls=%v name=%v af=%v, (%v:)", tls, name, af, origin(2)) + } bp := tls.Alloc(4) defer tls.Free(4) @@ -2892,6 +2961,9 @@ func Xgethostbyname2(tls *TLS, name uintptr, af int32) uintptr { /* gethostbynam var _sh1 uintptr /* gethostbyname2.c:10:24: */ func Xgethostbyname2_r(tls *TLS, name uintptr, af int32, h uintptr, buf uintptr, buflen size_t, res uintptr, err uintptr) int32 { /* gethostbyname2_r.c:11:5: */ + if __ccgo_strace { + trc("tls=%v name=%v af=%v h=%v buf=%v buflen=%v res=%v err=%v, (%v:)", tls, name, af, h, buf, buflen, res, err, origin(2)) + } bp := tls.Alloc(1600) defer tls.Free(1600) @@ -3270,10 +3342,16 @@ func reverse_services(tls *TLS, buf uintptr, port int32, dgram int32) { /* getna var Xh_errno int32 /* h_errno.c:4:5: */ func X__h_errno_location(tls *TLS) uintptr { /* h_errno.c:6:5: */ + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } return uintptr(unsafe.Pointer(&Xh_errno)) } func X__inet_aton(tls *TLS, s0 uintptr, dest uintptr) int32 { /* inet_aton.c:7:5: */ + if __ccgo_strace { + trc("tls=%v s0=%v dest=%v, (%v:)", tls, s0, dest, origin(2)) + } bp := tls.Alloc(20) defer tls.Free(20) @@ -3325,6 +3403,9 @@ func X__inet_aton(tls *TLS, s0 uintptr, dest uintptr) int32 { /* inet_aton.c:7:5 } func Xinet_ntop(tls *TLS, af int32, a0 uintptr, s uintptr, l socklen_t) uintptr { /* inet_ntop.c:7:12: */ + if __ccgo_strace { + trc("tls=%v af=%v a0=%v s=%v l=%v, (%v:)", tls, af, a0, s, l, origin(2)) + } bp := tls.Alloc(276) defer tls.Free(276) @@ -3399,6 +3480,9 @@ func hexval(tls *TLS, c uint32) int32 { /* inet_pton.c:7:12: */ } func Xinet_pton(tls *TLS, af int32, s uintptr, a0 uintptr) int32 { /* inet_pton.c:15:5: */ + if __ccgo_strace { + trc("tls=%v af=%v s=%v a0=%v, (%v:)", tls, af, s, a0, origin(2)) + } bp := tls.Alloc(16) defer tls.Free(16) @@ -3496,6 +3580,9 @@ func Xinet_pton(tls *TLS, af int32, s uintptr, a0 uintptr) int32 { /* inet_pton. } func X__lookup_ipliteral(tls *TLS, buf uintptr, name uintptr, family int32) int32 { /* lookup_ipliteral.c:12:5: */ + if __ccgo_strace { + trc("tls=%v buf=%v name=%v family=%v, (%v:)", tls, buf, name, family, origin(2)) + } bp := tls.Alloc(88) defer tls.Free(88) @@ -3817,6 +3904,9 @@ func addrcmp(tls *TLS, _a uintptr, _b uintptr) int32 { /* lookup_name.c:305:12: } func X__lookup_name(tls *TLS, buf uintptr, canon uintptr, name uintptr, family int32, flags int32) int32 { /* lookup_name.c:311:5: */ + if __ccgo_strace { + trc("tls=%v buf=%v canon=%v name=%v family=%v flags=%v, (%v:)", tls, buf, canon, name, family, flags, origin(2)) + } bp := tls.Alloc(92) defer tls.Free(92) @@ -3983,6 +4073,9 @@ func X__lookup_name(tls *TLS, buf uintptr, canon uintptr, name uintptr, family i } func X__lookup_serv(tls *TLS, buf uintptr, name uintptr, proto int32, socktype int32, flags int32) int32 { /* lookup_serv.c:12:5: */ + if __ccgo_strace { + trc("tls=%v buf=%v name=%v proto=%v socktype=%v flags=%v, (%v:)", tls, buf, name, proto, socktype, flags, origin(2)) + } bp := tls.Alloc(4) defer tls.Free(4) @@ -4108,6 +4201,9 @@ func X__lookup_serv(tls *TLS, buf uintptr, name uintptr, proto int32, socktype i } func X__toread(tls *TLS, f uintptr) int32 { /* __toread.c:3:5: */ + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } *(*int32)(unsafe.Pointer(f + 72)) |= (*FILE1)(unsafe.Pointer(f)).Fmode - 1 if (*FILE1)(unsafe.Pointer(f)).Fwpos != (*FILE1)(unsafe.Pointer(f)).Fwbase { (*struct { @@ -4127,6 +4223,9 @@ func X__toread(tls *TLS, f uintptr) int32 { /* __toread.c:3:5: */ } func X__toread_needs_stdio_exit(tls *TLS) { /* __toread.c:16:13: */ + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } X__builtin_abort(tls) //TODO- // __stdio_exit_needed(); } @@ -4135,6 +4234,9 @@ func X__toread_needs_stdio_exit(tls *TLS) { /* __toread.c:16:13: */ // data buffered for reading. func X__uflow(tls *TLS, f uintptr) int32 { /* __uflow.c:6:5: */ + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } bp := tls.Alloc(1) defer tls.Free(1) @@ -4149,6 +4251,9 @@ func X__uflow(tls *TLS, f uintptr) int32 { /* __uflow.c:6:5: */ } func Xbsearch(tls *TLS, key uintptr, base uintptr, nel size_t, width size_t, cmp uintptr) uintptr { /* bsearch.c:3:6: */ + if __ccgo_strace { + trc("tls=%v key=%v base=%v nel=%v width=%v cmp=%v, (%v:)", tls, key, base, nel, width, cmp, origin(2)) + } var try uintptr var sign int32 for nel > size_t(0) { @@ -4191,14 +4296,23 @@ func strtox(tls *TLS, s uintptr, p uintptr, prec int32) float64 { /* strtod.c:6: } func Xstrtof(tls *TLS, s uintptr, p uintptr) float32 { /* strtod.c:17:7: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + } return float32(strtox(tls, s, p, 0)) } func Xstrtod(tls *TLS, s uintptr, p uintptr) float64 { /* strtod.c:22:8: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + } return strtox(tls, s, p, 1) } func Xstrtold(tls *TLS, s uintptr, p uintptr) float64 { /* strtod.c:27:13: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + } return strtox(tls, s, p, 2) } @@ -4220,30 +4334,51 @@ func strtox1(tls *TLS, s uintptr, p uintptr, base int32, lim uint64) uint64 { /* } func Xstrtoull(tls *TLS, s uintptr, p uintptr, base int32) uint64 { /* strtol.c:21:20: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + } return strtox1(tls, s, p, base, 2*uint64(0x7fffffffffffffff)+uint64(1)) } func Xstrtoll(tls *TLS, s uintptr, p uintptr, base int32) int64 { /* strtol.c:26:11: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + } return int64(strtox1(tls, s, p, base, Uint64FromInt64(-0x7fffffffffffffff-int64(1)))) } func Xstrtoul(tls *TLS, s uintptr, p uintptr, base int32) uint32 { /* strtol.c:31:15: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + } return uint32(strtox1(tls, s, p, base, uint64(2*uint32(0x7fffffff)+uint32(1)))) } func Xstrtol(tls *TLS, s uintptr, p uintptr, base int32) int32 { /* strtol.c:36:6: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + } return int32(strtox1(tls, s, p, base, uint64(0+Uint32FromInt32(Int32(-Int32(0x7fffffff))-Int32FromInt32(1))))) } func Xstrtoimax(tls *TLS, s uintptr, p uintptr, base int32) intmax_t { /* strtol.c:41:10: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + } return Xstrtoll(tls, s, p, base) } func Xstrtoumax(tls *TLS, s uintptr, p uintptr, base int32) uintmax_t { /* strtol.c:46:11: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + } return Xstrtoull(tls, s, p, base) } func Xstrdup(tls *TLS, s uintptr) uintptr { /* strdup.c:4:6: */ + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + } var l size_t = Xstrlen(tls, s) var d uintptr = Xmalloc(tls, l+size_t(1)) if !(d != 0) { @@ -4253,6 +4388,9 @@ func Xstrdup(tls *TLS, s uintptr) uintptr { /* strdup.c:4:6: */ } func Xstrnlen(tls *TLS, s uintptr, n size_t) size_t { /* strnlen.c:3:8: */ + if __ccgo_strace { + trc("tls=%v s=%v n=%v, (%v:)", tls, s, n, origin(2)) + } var p uintptr = Xmemchr(tls, s, 0, n) if p != 0 { return uint32((int32(p) - int32(s)) / 1) @@ -4261,6 +4399,9 @@ func Xstrnlen(tls *TLS, s uintptr, n size_t) size_t { /* strnlen.c:3:8: */ } func Xstrspn(tls *TLS, s uintptr, c uintptr) size_t { /* strspn.c:6:8: */ + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + } bp := tls.Alloc(32) defer tls.Free(32) diff --git a/vendor/modernc.org/libc/musl_openbsd_386.go b/vendor/modernc.org/libc/musl_openbsd_386.go index 3bc617399..edc3f1c49 100644 --- a/vendor/modernc.org/libc/musl_openbsd_386.go +++ b/vendor/modernc.org/libc/musl_openbsd_386.go @@ -501,6 +501,9 @@ type wchar_t = int32 /* :15:24 */ // extern __inline __attribute__((__gnu_inline__)) func Xisblank(tls *TLS, _c int32) int32 { /* ctype_.c:144:5: */ + if __ccgo_strace { + trc("tls=%v _c=%v, (%v:)", tls, _c, origin(2)) + } return Bool32(_c == ' ' || _c == '\t') } @@ -681,6 +684,9 @@ func __isspace(tls *TLS, _c int32) int32 { /* ctype.h:26:21: */ type locale_t = uintptr /* alltypes.h:366:32 */ func Xisalnum(tls *TLS, c int32) int32 { /* isalnum.c:3:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(func() int32 { if 0 != 0 { return Xisalpha(tls, c) @@ -695,58 +701,100 @@ func Xisalnum(tls *TLS, c int32) int32 { /* isalnum.c:3:5: */ } func X__isalnum_l(tls *TLS, c int32, l locale_t) int32 { /* isalnum.c:8:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisalnum(tls, c) } func Xisalpha(tls *TLS, c int32) int32 { /* isalpha.c:4:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(uint32(c)|uint32(32)-uint32('a') < uint32(26)) } func X__isalpha_l(tls *TLS, c int32, l locale_t) int32 { /* isalpha.c:9:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisalpha(tls, c) } func Xisdigit(tls *TLS, c int32) int32 { /* isdigit.c:4:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(uint32(c)-uint32('0') < uint32(10)) } func X__isdigit_l(tls *TLS, c int32, l locale_t) int32 { /* isdigit.c:9:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisdigit(tls, c) } func Xislower(tls *TLS, c int32) int32 { /* islower.c:4:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(uint32(c)-uint32('a') < uint32(26)) } func X__islower_l(tls *TLS, c int32, l locale_t) int32 { /* islower.c:9:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xislower(tls, c) } func Xisprint(tls *TLS, c int32) int32 { /* isprint.c:4:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(uint32(c)-uint32(0x20) < uint32(0x5f)) } func X__isprint_l(tls *TLS, c int32, l locale_t) int32 { /* isprint.c:9:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisprint(tls, c) } func Xisspace(tls *TLS, c int32) int32 { /* isspace.c:4:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(c == ' ' || uint32(c)-uint32('\t') < uint32(5)) } func X__isspace_l(tls *TLS, c int32, l locale_t) int32 { /* isspace.c:9:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisspace(tls, c) } func Xisupper(tls *TLS, c int32) int32 { /* isupper.c:4:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(uint32(c)-uint32('A') < uint32(26)) } func X__isupper_l(tls *TLS, c int32, l locale_t) int32 { /* isupper.c:9:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisupper(tls, c) } func Xisxdigit(tls *TLS, c int32) int32 { /* isxdigit.c:3:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(func() int32 { if 0 != 0 { return Xisdigit(tls, c) @@ -756,6 +804,9 @@ func Xisxdigit(tls *TLS, c int32) int32 { /* isxdigit.c:3:5: */ } func X__isxdigit_l(tls *TLS, c int32, l locale_t) int32 { /* isxdigit.c:8:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisxdigit(tls, c) } @@ -1475,6 +1526,9 @@ func hexfloat(tls *TLS, f uintptr, bits int32, emin int32, sign int32, pok int32 } func X__floatscan(tls *TLS, f uintptr, prec int32, pok int32) float64 { /* floatscan.c:427:13: */ + if __ccgo_strace { + trc("tls=%v f=%v prec=%v pok=%v, (%v:)", tls, f, prec, pok, origin(2)) + } var sign int32 = 1 var i size_t var bits int32 @@ -1652,6 +1706,9 @@ var table = [257]uint8{Uint8FromInt32(-1), } /* intscan.c:7:28 */ func X__intscan(tls *TLS, f uintptr, base uint32, pok int32, lim uint64) uint64 { /* intscan.c:26:20: */ + if __ccgo_strace { + trc("tls=%v f=%v base=%v pok=%v lim=%v, (%v:)", tls, f, base, pok, lim, origin(2)) + } var val uintptr var c int32 var neg int32 @@ -1957,6 +2014,9 @@ __43: // the actual count. func X__shlim(tls *TLS, f uintptr, lim off_t) { /* shgetc.c:8:6: */ + if __ccgo_strace { + trc("tls=%v f=%v lim=%v, (%v:)", tls, f, lim, origin(2)) + } (*FILE)(unsafe.Pointer(f)).Fshlim = lim (*FILE)(unsafe.Pointer(f)).Fshcnt = off_t((int32((*FILE)(unsafe.Pointer(f)).Fbuf) - int32((*FILE)(unsafe.Pointer(f)).Frpos)) / 1) // If lim is nonzero, rend must be a valid pointer. @@ -1968,6 +2028,9 @@ func X__shlim(tls *TLS, f uintptr, lim off_t) { /* shgetc.c:8:6: */ } func X__shgetc(tls *TLS, f uintptr) int32 { /* shgetc.c:19:5: */ + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } var c int32 var cnt off_t = (*FILE)(unsafe.Pointer(f)).Fshcnt + off_t((int32((*FILE)(unsafe.Pointer(f)).Frpos)-int32((*FILE)(unsafe.Pointer(f)).Fbuf))/1) if (*FILE)(unsafe.Pointer(f)).Fshlim != 0 && cnt >= (*FILE)(unsafe.Pointer(f)).Fshlim || AssignInt32(&c, X__uflow(tls, f)) < 0 { @@ -1994,20 +2057,32 @@ func __bswap32(tls *TLS, __x uint32_t) uint32_t { /* endian.h:24:26: */ } func Xcopysignl(tls *TLS, x float64, y float64) float64 { /* copysignl.c:4:13: */ + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + } return Xcopysign(tls, x, y) } func Xfabsl(tls *TLS, x float64) float64 { /* fabsl.c:3:13: */ + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + } return Xfabs(tls, x) } func Xfmodl(tls *TLS, x float64, y float64) float64 { /* fmodl.c:4:13: */ + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + } return Xfmod(tls, x, y) } var toint double_t = float64(float64(1)) / 2.22044604925031308085e-16 /* rint.c:10:23 */ func Xrint(tls *TLS, x float64) float64 { /* rint.c:12:8: */ + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + } bp := tls.Alloc(8) defer tls.Free(8) @@ -2037,6 +2112,9 @@ func Xrint(tls *TLS, x float64) float64 { /* rint.c:12:8: */ } func Xscalbn(tls *TLS, x float64, n int32) float64 { /* scalbn.c:4:8: */ + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + } bp := tls.Alloc(8) defer tls.Free(8) @@ -2073,6 +2151,9 @@ func Xscalbn(tls *TLS, x float64, n int32) float64 { /* scalbn.c:4:8: */ } func Xscalbnl(tls *TLS, x float64, n int32) float64 { /* scalbnl.c:4:13: */ + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + } return Xscalbn(tls, x, n) } @@ -2391,6 +2472,9 @@ type resolvconf = struct { } /* lookup.h:34:1 */ func Xfreeaddrinfo(tls *TLS, p uintptr) { /* freeaddrinfo.c:7:6: */ + if __ccgo_strace { + trc("tls=%v p=%v, (%v:)", tls, p, origin(2)) + } var cnt size_t cnt = size_t(1) __1: @@ -2501,6 +2585,9 @@ type __ptcb = struct { type useconds_t = uint32 /* alltypes.h:283:18 */ func Xgetaddrinfo(tls *TLS, host uintptr, serv uintptr, hint uintptr, res uintptr) int32 { /* getaddrinfo.c:12:5: */ + if __ccgo_strace { + trc("tls=%v host=%v serv=%v hint=%v res=%v, (%v:)", tls, host, serv, hint, res, origin(2)) + } bp := tls.Alloc(1608) defer tls.Free(1608) @@ -2700,6 +2787,9 @@ type mmsghdr = struct { } /* socket.h:63:1 */ func Xgethostbyaddr(tls *TLS, a uintptr, l socklen_t, af int32) uintptr { /* gethostbyaddr.c:7:16: */ + if __ccgo_strace { + trc("tls=%v a=%v l=%v af=%v, (%v:)", tls, a, l, af, origin(2)) + } bp := tls.Alloc(4) defer tls.Free(4) @@ -2726,10 +2816,16 @@ func Xgethostbyaddr(tls *TLS, a uintptr, l socklen_t, af int32) uintptr { /* get var _sh uintptr /* gethostbyaddr.c:9:24: */ func Xgethostbyname(tls *TLS, name uintptr) uintptr { /* gethostbyname.c:8:16: */ + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + } return Xgethostbyname2(tls, name, 2) } func Xgethostbyname2(tls *TLS, name uintptr, af int32) uintptr { /* gethostbyname2.c:8:16: */ + if __ccgo_strace { + trc("tls=%v name=%v af=%v, (%v:)", tls, name, af, origin(2)) + } bp := tls.Alloc(4) defer tls.Free(4) @@ -2756,6 +2852,9 @@ func Xgethostbyname2(tls *TLS, name uintptr, af int32) uintptr { /* gethostbynam var _sh1 uintptr /* gethostbyname2.c:10:24: */ func Xgethostbyname2_r(tls *TLS, name uintptr, af int32, h uintptr, buf uintptr, buflen size_t, res uintptr, err uintptr) int32 { /* gethostbyname2_r.c:11:5: */ + if __ccgo_strace { + trc("tls=%v name=%v af=%v h=%v buf=%v buflen=%v res=%v err=%v, (%v:)", tls, name, af, h, buf, buflen, res, err, origin(2)) + } bp := tls.Alloc(1600) defer tls.Free(1600) @@ -3134,10 +3233,16 @@ func reverse_services(tls *TLS, buf uintptr, port int32, dgram int32) { /* getna var Xh_errno int32 /* h_errno.c:4:5: */ func X__h_errno_location(tls *TLS) uintptr { /* h_errno.c:6:5: */ + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } return uintptr(unsafe.Pointer(&Xh_errno)) } func X__inet_aton(tls *TLS, s0 uintptr, dest uintptr) int32 { /* inet_aton.c:7:5: */ + if __ccgo_strace { + trc("tls=%v s0=%v dest=%v, (%v:)", tls, s0, dest, origin(2)) + } bp := tls.Alloc(20) defer tls.Free(20) @@ -3189,6 +3294,9 @@ func X__inet_aton(tls *TLS, s0 uintptr, dest uintptr) int32 { /* inet_aton.c:7:5 } func Xinet_ntop(tls *TLS, af int32, a0 uintptr, s uintptr, l socklen_t) uintptr { /* inet_ntop.c:7:12: */ + if __ccgo_strace { + trc("tls=%v af=%v a0=%v s=%v l=%v, (%v:)", tls, af, a0, s, l, origin(2)) + } bp := tls.Alloc(276) defer tls.Free(276) @@ -3263,6 +3371,9 @@ func hexval(tls *TLS, c uint32) int32 { /* inet_pton.c:7:12: */ } func Xinet_pton(tls *TLS, af int32, s uintptr, a0 uintptr) int32 { /* inet_pton.c:15:5: */ + if __ccgo_strace { + trc("tls=%v af=%v s=%v a0=%v, (%v:)", tls, af, s, a0, origin(2)) + } bp := tls.Alloc(16) defer tls.Free(16) @@ -3360,6 +3471,9 @@ func Xinet_pton(tls *TLS, af int32, s uintptr, a0 uintptr) int32 { /* inet_pton. } func X__lookup_ipliteral(tls *TLS, buf uintptr, name uintptr, family int32) int32 { /* lookup_ipliteral.c:12:5: */ + if __ccgo_strace { + trc("tls=%v buf=%v name=%v family=%v, (%v:)", tls, buf, name, family, origin(2)) + } bp := tls.Alloc(88) defer tls.Free(88) @@ -3679,6 +3793,9 @@ func addrcmp(tls *TLS, _a uintptr, _b uintptr) int32 { /* lookup_name.c:305:12: } func X__lookup_name(tls *TLS, buf uintptr, canon uintptr, name uintptr, family int32, flags int32) int32 { /* lookup_name.c:311:5: */ + if __ccgo_strace { + trc("tls=%v buf=%v canon=%v name=%v family=%v flags=%v, (%v:)", tls, buf, canon, name, family, flags, origin(2)) + } bp := tls.Alloc(92) defer tls.Free(92) @@ -3845,6 +3962,9 @@ func X__lookup_name(tls *TLS, buf uintptr, canon uintptr, name uintptr, family i } func X__lookup_serv(tls *TLS, buf uintptr, name uintptr, proto int32, socktype int32, flags int32) int32 { /* lookup_serv.c:12:5: */ + if __ccgo_strace { + trc("tls=%v buf=%v name=%v proto=%v socktype=%v flags=%v, (%v:)", tls, buf, name, proto, socktype, flags, origin(2)) + } bp := tls.Alloc(4) defer tls.Free(4) @@ -3970,6 +4090,9 @@ func X__lookup_serv(tls *TLS, buf uintptr, name uintptr, proto int32, socktype i } func X__toread(tls *TLS, f uintptr) int32 { /* __toread.c:3:5: */ + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } *(*int32)(unsafe.Pointer(f + 72)) |= (*FILE)(unsafe.Pointer(f)).Fmode - 1 if (*FILE)(unsafe.Pointer(f)).Fwpos != (*FILE)(unsafe.Pointer(f)).Fwbase { (*struct { @@ -3989,6 +4112,9 @@ func X__toread(tls *TLS, f uintptr) int32 { /* __toread.c:3:5: */ } func X__toread_needs_stdio_exit(tls *TLS) { /* __toread.c:16:13: */ + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } X__builtin_abort(tls) //TODO- // __stdio_exit_needed(); } @@ -3997,6 +4123,9 @@ func X__toread_needs_stdio_exit(tls *TLS) { /* __toread.c:16:13: */ // data buffered for reading. func X__uflow(tls *TLS, f uintptr) int32 { /* __uflow.c:6:5: */ + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } bp := tls.Alloc(1) defer tls.Free(1) @@ -4011,6 +4140,9 @@ func X__uflow(tls *TLS, f uintptr) int32 { /* __uflow.c:6:5: */ } func Xbsearch(tls *TLS, key uintptr, base uintptr, nel size_t, width size_t, cmp uintptr) uintptr { /* bsearch.c:3:6: */ + if __ccgo_strace { + trc("tls=%v key=%v base=%v nel=%v width=%v cmp=%v, (%v:)", tls, key, base, nel, width, cmp, origin(2)) + } var try uintptr var sign int32 for nel > size_t(0) { @@ -4053,14 +4185,23 @@ func strtox(tls *TLS, s uintptr, p uintptr, prec int32) float64 { /* strtod.c:6: } func Xstrtof(tls *TLS, s uintptr, p uintptr) float32 { /* strtod.c:17:7: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + } return float32(strtox(tls, s, p, 0)) } func Xstrtod(tls *TLS, s uintptr, p uintptr) float64 { /* strtod.c:22:8: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + } return strtox(tls, s, p, 1) } func Xstrtold(tls *TLS, s uintptr, p uintptr) float64 { /* strtod.c:27:13: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + } return strtox(tls, s, p, 2) } @@ -4082,30 +4223,51 @@ func strtox1(tls *TLS, s uintptr, p uintptr, base int32, lim uint64) uint64 { /* } func Xstrtoull(tls *TLS, s uintptr, p uintptr, base int32) uint64 { /* strtol.c:21:20: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + } return strtox1(tls, s, p, base, 2*uint64(0x7fffffffffffffff)+uint64(1)) } func Xstrtoll(tls *TLS, s uintptr, p uintptr, base int32) int64 { /* strtol.c:26:11: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + } return int64(strtox1(tls, s, p, base, Uint64FromInt64(-0x7fffffffffffffff-int64(1)))) } func Xstrtoul(tls *TLS, s uintptr, p uintptr, base int32) uint32 { /* strtol.c:31:15: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + } return uint32(strtox1(tls, s, p, base, uint64(2*uint32(0x7fffffff)+uint32(1)))) } func Xstrtol(tls *TLS, s uintptr, p uintptr, base int32) int32 { /* strtol.c:36:6: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + } return int32(strtox1(tls, s, p, base, uint64(0+Uint32FromInt32(Int32(-Int32(0x7fffffff))-Int32FromInt32(1))))) } func Xstrtoimax(tls *TLS, s uintptr, p uintptr, base int32) intmax_t { /* strtol.c:41:10: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + } return Xstrtoll(tls, s, p, base) } func Xstrtoumax(tls *TLS, s uintptr, p uintptr, base int32) uintmax_t { /* strtol.c:46:11: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + } return Xstrtoull(tls, s, p, base) } func Xstrdup(tls *TLS, s uintptr) uintptr { /* strdup.c:4:6: */ + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + } var l size_t = Xstrlen(tls, s) var d uintptr = Xmalloc(tls, l+size_t(1)) if !(d != 0) { @@ -4115,6 +4277,9 @@ func Xstrdup(tls *TLS, s uintptr) uintptr { /* strdup.c:4:6: */ } func Xstrnlen(tls *TLS, s uintptr, n size_t) size_t { /* strnlen.c:3:8: */ + if __ccgo_strace { + trc("tls=%v s=%v n=%v, (%v:)", tls, s, n, origin(2)) + } var p uintptr = Xmemchr(tls, s, 0, n) if p != 0 { return uint32((int32(p) - int32(s)) / 1) @@ -4123,6 +4288,9 @@ func Xstrnlen(tls *TLS, s uintptr, n size_t) size_t { /* strnlen.c:3:8: */ } func Xstrspn(tls *TLS, s uintptr, c uintptr) size_t { /* strspn.c:6:8: */ + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + } bp := tls.Alloc(32) defer tls.Free(32) diff --git a/vendor/modernc.org/libc/musl_openbsd_amd64.go b/vendor/modernc.org/libc/musl_openbsd_amd64.go index c04933495..c8abed68c 100644 --- a/vendor/modernc.org/libc/musl_openbsd_amd64.go +++ b/vendor/modernc.org/libc/musl_openbsd_amd64.go @@ -501,6 +501,9 @@ type wchar_t = int32 /* :15:24 */ // extern __inline __attribute__((__gnu_inline__)) func Xisblank(tls *TLS, _c int32) int32 { /* ctype_.c:144:5: */ + if __ccgo_strace { + trc("tls=%v _c=%v, (%v:)", tls, _c, origin(2)) + } return Bool32(_c == ' ' || _c == '\t') } @@ -681,6 +684,9 @@ func __isspace(tls *TLS, _c int32) int32 { /* ctype.h:26:21: */ type locale_t = uintptr /* alltypes.h:343:32 */ func Xisalnum(tls *TLS, c int32) int32 { /* isalnum.c:3:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(func() int32 { if 0 != 0 { return Xisalpha(tls, c) @@ -695,58 +701,100 @@ func Xisalnum(tls *TLS, c int32) int32 { /* isalnum.c:3:5: */ } func X__isalnum_l(tls *TLS, c int32, l locale_t) int32 { /* isalnum.c:8:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisalnum(tls, c) } func Xisalpha(tls *TLS, c int32) int32 { /* isalpha.c:4:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(uint32(c)|uint32(32)-uint32('a') < uint32(26)) } func X__isalpha_l(tls *TLS, c int32, l locale_t) int32 { /* isalpha.c:9:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisalpha(tls, c) } func Xisdigit(tls *TLS, c int32) int32 { /* isdigit.c:4:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(uint32(c)-uint32('0') < uint32(10)) } func X__isdigit_l(tls *TLS, c int32, l locale_t) int32 { /* isdigit.c:9:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisdigit(tls, c) } func Xislower(tls *TLS, c int32) int32 { /* islower.c:4:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(uint32(c)-uint32('a') < uint32(26)) } func X__islower_l(tls *TLS, c int32, l locale_t) int32 { /* islower.c:9:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xislower(tls, c) } func Xisprint(tls *TLS, c int32) int32 { /* isprint.c:4:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(uint32(c)-uint32(0x20) < uint32(0x5f)) } func X__isprint_l(tls *TLS, c int32, l locale_t) int32 { /* isprint.c:9:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisprint(tls, c) } func Xisspace(tls *TLS, c int32) int32 { /* isspace.c:4:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(c == ' ' || uint32(c)-uint32('\t') < uint32(5)) } func X__isspace_l(tls *TLS, c int32, l locale_t) int32 { /* isspace.c:9:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisspace(tls, c) } func Xisupper(tls *TLS, c int32) int32 { /* isupper.c:4:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(uint32(c)-uint32('A') < uint32(26)) } func X__isupper_l(tls *TLS, c int32, l locale_t) int32 { /* isupper.c:9:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisupper(tls, c) } func Xisxdigit(tls *TLS, c int32) int32 { /* isxdigit.c:3:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(func() int32 { if 0 != 0 { return Xisdigit(tls, c) @@ -756,6 +804,9 @@ func Xisxdigit(tls *TLS, c int32) int32 { /* isxdigit.c:3:5: */ } func X__isxdigit_l(tls *TLS, c int32, l locale_t) int32 { /* isxdigit.c:8:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisxdigit(tls, c) } @@ -1477,6 +1528,9 @@ func hexfloat(tls *TLS, f uintptr, bits int32, emin int32, sign int32, pok int32 } func X__floatscan(tls *TLS, f uintptr, prec int32, pok int32) float64 { /* floatscan.c:427:13: */ + if __ccgo_strace { + trc("tls=%v f=%v prec=%v pok=%v, (%v:)", tls, f, prec, pok, origin(2)) + } var sign int32 = 1 var i size_t var bits int32 @@ -1654,6 +1708,9 @@ var table = [257]uint8{Uint8FromInt32(-1), } /* intscan.c:7:28 */ func X__intscan(tls *TLS, f uintptr, base uint32, pok int32, lim uint64) uint64 { /* intscan.c:26:20: */ + if __ccgo_strace { + trc("tls=%v f=%v base=%v pok=%v lim=%v, (%v:)", tls, f, base, pok, lim, origin(2)) + } var val uintptr var c int32 var neg int32 @@ -1959,6 +2016,9 @@ __43: // the actual count. func X__shlim(tls *TLS, f uintptr, lim off_t) { /* shgetc.c:8:6: */ + if __ccgo_strace { + trc("tls=%v f=%v lim=%v, (%v:)", tls, f, lim, origin(2)) + } (*FILE)(unsafe.Pointer(f)).Fshlim = lim (*FILE)(unsafe.Pointer(f)).Fshcnt = (int64((*FILE)(unsafe.Pointer(f)).Fbuf) - int64((*FILE)(unsafe.Pointer(f)).Frpos)) / 1 // If lim is nonzero, rend must be a valid pointer. @@ -1970,6 +2030,9 @@ func X__shlim(tls *TLS, f uintptr, lim off_t) { /* shgetc.c:8:6: */ } func X__shgetc(tls *TLS, f uintptr) int32 { /* shgetc.c:19:5: */ + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } var c int32 var cnt off_t = (*FILE)(unsafe.Pointer(f)).Fshcnt + (int64((*FILE)(unsafe.Pointer(f)).Frpos)-int64((*FILE)(unsafe.Pointer(f)).Fbuf))/1 if (*FILE)(unsafe.Pointer(f)).Fshlim != 0 && cnt >= (*FILE)(unsafe.Pointer(f)).Fshlim || AssignInt32(&c, X__uflow(tls, f)) < 0 { @@ -1996,20 +2059,32 @@ func __bswap32(tls *TLS, __x uint32_t) uint32_t { /* endian.h:24:26: */ } func Xcopysignl(tls *TLS, x float64, y float64) float64 { /* copysignl.c:4:13: */ + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + } return Xcopysign(tls, x, y) } func Xfabsl(tls *TLS, x float64) float64 { /* fabsl.c:3:13: */ + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + } return Xfabs(tls, x) } func Xfmodl(tls *TLS, x float64, y float64) float64 { /* fmodl.c:4:13: */ + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + } return Xfmod(tls, x, y) } var toint double_t = float64(float64(1)) / 2.22044604925031308085e-16 /* rint.c:10:23 */ func Xrint(tls *TLS, x float64) float64 { /* rint.c:12:8: */ + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + } bp := tls.Alloc(8) defer tls.Free(8) @@ -2039,6 +2114,9 @@ func Xrint(tls *TLS, x float64) float64 { /* rint.c:12:8: */ } func Xscalbn(tls *TLS, x float64, n int32) float64 { /* scalbn.c:4:8: */ + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + } bp := tls.Alloc(8) defer tls.Free(8) @@ -2075,6 +2153,9 @@ func Xscalbn(tls *TLS, x float64, n int32) float64 { /* scalbn.c:4:8: */ } func Xscalbnl(tls *TLS, x float64, n int32) float64 { /* scalbnl.c:4:13: */ + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + } return Xscalbn(tls, x, n) } @@ -2406,6 +2487,9 @@ type resolvconf = struct { } /* lookup.h:34:1 */ func Xfreeaddrinfo(tls *TLS, p uintptr) { /* freeaddrinfo.c:7:6: */ + if __ccgo_strace { + trc("tls=%v p=%v, (%v:)", tls, p, origin(2)) + } var cnt size_t cnt = uint64(1) __1: @@ -2543,6 +2627,9 @@ type __ptcb = struct { type useconds_t = uint32 /* alltypes.h:260:18 */ func Xgetaddrinfo(tls *TLS, host uintptr, serv uintptr, hint uintptr, res uintptr) int32 { /* getaddrinfo.c:12:5: */ + if __ccgo_strace { + trc("tls=%v host=%v serv=%v hint=%v res=%v, (%v:)", tls, host, serv, hint, res, origin(2)) + } bp := tls.Alloc(1608) defer tls.Free(1608) @@ -2747,6 +2834,9 @@ type mmsghdr = struct { } /* socket.h:63:1 */ func Xgethostbyaddr(tls *TLS, a uintptr, l socklen_t, af int32) uintptr { /* gethostbyaddr.c:7:16: */ + if __ccgo_strace { + trc("tls=%v a=%v l=%v af=%v, (%v:)", tls, a, l, af, origin(2)) + } bp := tls.Alloc(8) defer tls.Free(8) @@ -2773,10 +2863,16 @@ func Xgethostbyaddr(tls *TLS, a uintptr, l socklen_t, af int32) uintptr { /* get var _sh uintptr /* gethostbyaddr.c:9:24: */ func Xgethostbyname(tls *TLS, name uintptr) uintptr { /* gethostbyname.c:8:16: */ + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + } return Xgethostbyname2(tls, name, 2) } func Xgethostbyname2(tls *TLS, name uintptr, af int32) uintptr { /* gethostbyname2.c:8:16: */ + if __ccgo_strace { + trc("tls=%v name=%v af=%v, (%v:)", tls, name, af, origin(2)) + } bp := tls.Alloc(8) defer tls.Free(8) @@ -2803,6 +2899,9 @@ func Xgethostbyname2(tls *TLS, name uintptr, af int32) uintptr { /* gethostbynam var _sh1 uintptr /* gethostbyname2.c:10:24: */ func Xgethostbyname2_r(tls *TLS, name uintptr, af int32, h uintptr, buf uintptr, buflen size_t, res uintptr, err uintptr) int32 { /* gethostbyname2_r.c:11:5: */ + if __ccgo_strace { + trc("tls=%v name=%v af=%v h=%v buf=%v buflen=%v res=%v err=%v, (%v:)", tls, name, af, h, buf, buflen, res, err, origin(2)) + } bp := tls.Alloc(1600) defer tls.Free(1600) @@ -3191,10 +3290,16 @@ func reverse_services(tls *TLS, buf uintptr, port int32, dgram int32) { /* getna var Xh_errno int32 /* h_errno.c:4:5: */ func X__h_errno_location(tls *TLS) uintptr { /* h_errno.c:6:5: */ + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } return uintptr(unsafe.Pointer(&Xh_errno)) } func X__inet_aton(tls *TLS, s0 uintptr, dest uintptr) int32 { /* inet_aton.c:7:5: */ + if __ccgo_strace { + trc("tls=%v s0=%v dest=%v, (%v:)", tls, s0, dest, origin(2)) + } bp := tls.Alloc(40) defer tls.Free(40) @@ -3246,6 +3351,9 @@ func X__inet_aton(tls *TLS, s0 uintptr, dest uintptr) int32 { /* inet_aton.c:7:5 } func Xinet_ntop(tls *TLS, af int32, a0 uintptr, s uintptr, l socklen_t) uintptr { /* inet_ntop.c:7:12: */ + if __ccgo_strace { + trc("tls=%v af=%v a0=%v s=%v l=%v, (%v:)", tls, af, a0, s, l, origin(2)) + } bp := tls.Alloc(276) defer tls.Free(276) @@ -3320,6 +3428,9 @@ func hexval(tls *TLS, c uint32) int32 { /* inet_pton.c:7:12: */ } func Xinet_pton(tls *TLS, af int32, s uintptr, a0 uintptr) int32 { /* inet_pton.c:15:5: */ + if __ccgo_strace { + trc("tls=%v af=%v s=%v a0=%v, (%v:)", tls, af, s, a0, origin(2)) + } bp := tls.Alloc(16) defer tls.Free(16) @@ -3417,6 +3528,9 @@ func Xinet_pton(tls *TLS, af int32, s uintptr, a0 uintptr) int32 { /* inet_pton. } func X__lookup_ipliteral(tls *TLS, buf uintptr, name uintptr, family int32) int32 { /* lookup_ipliteral.c:12:5: */ + if __ccgo_strace { + trc("tls=%v buf=%v name=%v family=%v, (%v:)", tls, buf, name, family, origin(2)) + } bp := tls.Alloc(96) defer tls.Free(96) @@ -3739,6 +3853,9 @@ func addrcmp(tls *TLS, _a uintptr, _b uintptr) int32 { /* lookup_name.c:305:12: } func X__lookup_name(tls *TLS, buf uintptr, canon uintptr, name uintptr, family int32, flags int32) int32 { /* lookup_name.c:311:5: */ + if __ccgo_strace { + trc("tls=%v buf=%v canon=%v name=%v family=%v flags=%v, (%v:)", tls, buf, canon, name, family, flags, origin(2)) + } bp := tls.Alloc(92) defer tls.Free(92) @@ -3905,6 +4022,9 @@ func X__lookup_name(tls *TLS, buf uintptr, canon uintptr, name uintptr, family i } func X__lookup_serv(tls *TLS, buf uintptr, name uintptr, proto int32, socktype int32, flags int32) int32 { /* lookup_serv.c:12:5: */ + if __ccgo_strace { + trc("tls=%v buf=%v name=%v proto=%v socktype=%v flags=%v, (%v:)", tls, buf, name, proto, socktype, flags, origin(2)) + } bp := tls.Alloc(8) defer tls.Free(8) @@ -4030,6 +4150,9 @@ func X__lookup_serv(tls *TLS, buf uintptr, name uintptr, proto int32, socktype i } func X__toread(tls *TLS, f uintptr) int32 { /* __toread.c:3:5: */ + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } *(*int32)(unsafe.Pointer(f + 136)) |= (*FILE)(unsafe.Pointer(f)).Fmode - 1 if (*FILE)(unsafe.Pointer(f)).Fwpos != (*FILE)(unsafe.Pointer(f)).Fwbase { (*struct { @@ -4049,6 +4172,9 @@ func X__toread(tls *TLS, f uintptr) int32 { /* __toread.c:3:5: */ } func X__toread_needs_stdio_exit(tls *TLS) { /* __toread.c:16:13: */ + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } X__builtin_abort(tls) //TODO- // __stdio_exit_needed(); } @@ -4057,6 +4183,9 @@ func X__toread_needs_stdio_exit(tls *TLS) { /* __toread.c:16:13: */ // data buffered for reading. func X__uflow(tls *TLS, f uintptr) int32 { /* __uflow.c:6:5: */ + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } bp := tls.Alloc(1) defer tls.Free(1) @@ -4071,6 +4200,9 @@ func X__uflow(tls *TLS, f uintptr) int32 { /* __uflow.c:6:5: */ } func Xbsearch(tls *TLS, key uintptr, base uintptr, nel size_t, width size_t, cmp uintptr) uintptr { /* bsearch.c:3:6: */ + if __ccgo_strace { + trc("tls=%v key=%v base=%v nel=%v width=%v cmp=%v, (%v:)", tls, key, base, nel, width, cmp, origin(2)) + } var try uintptr var sign int32 for nel > uint64(0) { @@ -4113,14 +4245,23 @@ func strtox(tls *TLS, s uintptr, p uintptr, prec int32) float64 { /* strtod.c:6: } func Xstrtof(tls *TLS, s uintptr, p uintptr) float32 { /* strtod.c:17:7: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + } return float32(strtox(tls, s, p, 0)) } func Xstrtod(tls *TLS, s uintptr, p uintptr) float64 { /* strtod.c:22:8: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + } return strtox(tls, s, p, 1) } func Xstrtold(tls *TLS, s uintptr, p uintptr) float64 { /* strtod.c:27:13: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + } return strtox(tls, s, p, 2) } @@ -4142,30 +4283,51 @@ func strtox1(tls *TLS, s uintptr, p uintptr, base int32, lim uint64) uint64 { /* } func Xstrtoull(tls *TLS, s uintptr, p uintptr, base int32) uint64 { /* strtol.c:21:20: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + } return strtox1(tls, s, p, base, 2*uint64(0x7fffffffffffffff)+uint64(1)) } func Xstrtoll(tls *TLS, s uintptr, p uintptr, base int32) int64 { /* strtol.c:26:11: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + } return int64(strtox1(tls, s, p, base, Uint64FromInt64(-0x7fffffffffffffff-int64(1)))) } func Xstrtoul(tls *TLS, s uintptr, p uintptr, base int32) uint64 { /* strtol.c:31:15: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + } return uint64(strtox1(tls, s, p, base, 2*uint64(0x7fffffffffffffff)+uint64(1))) } func Xstrtol(tls *TLS, s uintptr, p uintptr, base int32) int64 { /* strtol.c:36:6: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + } return int64(strtox1(tls, s, p, base, 0+Uint64FromInt64(Int64(-Int64(0x7fffffffffffffff))-Int64FromInt32(1)))) } func Xstrtoimax(tls *TLS, s uintptr, p uintptr, base int32) intmax_t { /* strtol.c:41:10: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + } return intmax_t(Xstrtoll(tls, s, p, base)) } func Xstrtoumax(tls *TLS, s uintptr, p uintptr, base int32) uintmax_t { /* strtol.c:46:11: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + } return uintmax_t(Xstrtoull(tls, s, p, base)) } func Xstrdup(tls *TLS, s uintptr) uintptr { /* strdup.c:4:6: */ + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + } var l size_t = Xstrlen(tls, s) var d uintptr = Xmalloc(tls, l+uint64(1)) if !(d != 0) { @@ -4175,6 +4337,9 @@ func Xstrdup(tls *TLS, s uintptr) uintptr { /* strdup.c:4:6: */ } func Xstrnlen(tls *TLS, s uintptr, n size_t) size_t { /* strnlen.c:3:8: */ + if __ccgo_strace { + trc("tls=%v s=%v n=%v, (%v:)", tls, s, n, origin(2)) + } var p uintptr = Xmemchr(tls, s, 0, n) if p != 0 { return uint64((int64(p) - int64(s)) / 1) @@ -4183,6 +4348,9 @@ func Xstrnlen(tls *TLS, s uintptr, n size_t) size_t { /* strnlen.c:3:8: */ } func Xstrspn(tls *TLS, s uintptr, c uintptr) size_t { /* strspn.c:6:8: */ + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + } bp := tls.Alloc(32) defer tls.Free(32) diff --git a/vendor/modernc.org/libc/musl_openbsd_arm64.go b/vendor/modernc.org/libc/musl_openbsd_arm64.go index ba015fc48..e8f504922 100644 --- a/vendor/modernc.org/libc/musl_openbsd_arm64.go +++ b/vendor/modernc.org/libc/musl_openbsd_arm64.go @@ -501,6 +501,9 @@ type wchar_t = int32 /* :15:24 */ // extern __inline __attribute__((__gnu_inline__)) func Xisblank(tls *TLS, _c int32) int32 { /* ctype_.c:144:5: */ + if __ccgo_strace { + trc("tls=%v _c=%v, (%v:)", tls, _c, origin(2)) + } return Bool32(_c == ' ' || _c == '\t') } @@ -681,6 +684,9 @@ func __isspace(tls *TLS, _c int32) int32 { /* ctype.h:26:21: */ type locale_t = uintptr /* alltypes.h:351:32 */ func Xisalnum(tls *TLS, c int32) int32 { /* isalnum.c:3:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(func() int32 { if 0 != 0 { return Xisalpha(tls, c) @@ -695,58 +701,100 @@ func Xisalnum(tls *TLS, c int32) int32 { /* isalnum.c:3:5: */ } func X__isalnum_l(tls *TLS, c int32, l locale_t) int32 { /* isalnum.c:8:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisalnum(tls, c) } func Xisalpha(tls *TLS, c int32) int32 { /* isalpha.c:4:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(uint32(c)|uint32(32)-uint32('a') < uint32(26)) } func X__isalpha_l(tls *TLS, c int32, l locale_t) int32 { /* isalpha.c:9:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisalpha(tls, c) } func Xisdigit(tls *TLS, c int32) int32 { /* isdigit.c:4:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(uint32(c)-uint32('0') < uint32(10)) } func X__isdigit_l(tls *TLS, c int32, l locale_t) int32 { /* isdigit.c:9:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisdigit(tls, c) } func Xislower(tls *TLS, c int32) int32 { /* islower.c:4:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(uint32(c)-uint32('a') < uint32(26)) } func X__islower_l(tls *TLS, c int32, l locale_t) int32 { /* islower.c:9:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xislower(tls, c) } func Xisprint(tls *TLS, c int32) int32 { /* isprint.c:4:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(uint32(c)-uint32(0x20) < uint32(0x5f)) } func X__isprint_l(tls *TLS, c int32, l locale_t) int32 { /* isprint.c:9:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisprint(tls, c) } func Xisspace(tls *TLS, c int32) int32 { /* isspace.c:4:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(c == ' ' || uint32(c)-uint32('\t') < uint32(5)) } func X__isspace_l(tls *TLS, c int32, l locale_t) int32 { /* isspace.c:9:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisspace(tls, c) } func Xisupper(tls *TLS, c int32) int32 { /* isupper.c:4:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(uint32(c)-uint32('A') < uint32(26)) } func X__isupper_l(tls *TLS, c int32, l locale_t) int32 { /* isupper.c:9:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisupper(tls, c) } func Xisxdigit(tls *TLS, c int32) int32 { /* isxdigit.c:3:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(func() int32 { if 0 != 0 { return Xisdigit(tls, c) @@ -756,6 +804,9 @@ func Xisxdigit(tls *TLS, c int32) int32 { /* isxdigit.c:3:5: */ } func X__isxdigit_l(tls *TLS, c int32, l locale_t) int32 { /* isxdigit.c:8:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisxdigit(tls, c) } @@ -1477,6 +1528,9 @@ func hexfloat(tls *TLS, f uintptr, bits int32, emin int32, sign int32, pok int32 } func X__floatscan(tls *TLS, f uintptr, prec int32, pok int32) float64 { /* floatscan.c:427:13: */ + if __ccgo_strace { + trc("tls=%v f=%v prec=%v pok=%v, (%v:)", tls, f, prec, pok, origin(2)) + } var sign int32 = 1 var i size_t var bits int32 @@ -1654,6 +1708,9 @@ var table = [257]uint8{Uint8FromInt32(-1), } /* intscan.c:7:28 */ func X__intscan(tls *TLS, f uintptr, base uint32, pok int32, lim uint64) uint64 { /* intscan.c:26:20: */ + if __ccgo_strace { + trc("tls=%v f=%v base=%v pok=%v lim=%v, (%v:)", tls, f, base, pok, lim, origin(2)) + } var val uintptr var c int32 var neg int32 @@ -1959,6 +2016,9 @@ __43: // the actual count. func X__shlim(tls *TLS, f uintptr, lim off_t) { /* shgetc.c:8:6: */ + if __ccgo_strace { + trc("tls=%v f=%v lim=%v, (%v:)", tls, f, lim, origin(2)) + } (*FILE)(unsafe.Pointer(f)).Fshlim = lim (*FILE)(unsafe.Pointer(f)).Fshcnt = (int64((*FILE)(unsafe.Pointer(f)).Fbuf) - int64((*FILE)(unsafe.Pointer(f)).Frpos)) / 1 // If lim is nonzero, rend must be a valid pointer. @@ -1970,6 +2030,9 @@ func X__shlim(tls *TLS, f uintptr, lim off_t) { /* shgetc.c:8:6: */ } func X__shgetc(tls *TLS, f uintptr) int32 { /* shgetc.c:19:5: */ + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } var c int32 var cnt off_t = (*FILE)(unsafe.Pointer(f)).Fshcnt + (int64((*FILE)(unsafe.Pointer(f)).Frpos)-int64((*FILE)(unsafe.Pointer(f)).Fbuf))/1 if (*FILE)(unsafe.Pointer(f)).Fshlim != 0 && cnt >= (*FILE)(unsafe.Pointer(f)).Fshlim || AssignInt32(&c, X__uflow(tls, f)) < 0 { @@ -1996,20 +2059,32 @@ func __bswap32(tls *TLS, __x uint32_t) uint32_t { /* endian.h:24:26: */ } func Xcopysignl(tls *TLS, x float64, y float64) float64 { /* copysignl.c:4:13: */ + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + } return Xcopysign(tls, x, y) } func Xfabsl(tls *TLS, x float64) float64 { /* fabsl.c:3:13: */ + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + } return Xfabs(tls, x) } func Xfmodl(tls *TLS, x float64, y float64) float64 { /* fmodl.c:4:13: */ + if __ccgo_strace { + trc("tls=%v x=%v y=%v, (%v:)", tls, x, y, origin(2)) + } return Xfmod(tls, x, y) } var toint double_t = float64(float64(1)) / 2.22044604925031308085e-16 /* rint.c:10:23 */ func Xrint(tls *TLS, x float64) float64 { /* rint.c:12:8: */ + if __ccgo_strace { + trc("tls=%v x=%v, (%v:)", tls, x, origin(2)) + } bp := tls.Alloc(8) defer tls.Free(8) @@ -2039,6 +2114,9 @@ func Xrint(tls *TLS, x float64) float64 { /* rint.c:12:8: */ } func Xscalbn(tls *TLS, x float64, n int32) float64 { /* scalbn.c:4:8: */ + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + } bp := tls.Alloc(8) defer tls.Free(8) @@ -2075,6 +2153,9 @@ func Xscalbn(tls *TLS, x float64, n int32) float64 { /* scalbn.c:4:8: */ } func Xscalbnl(tls *TLS, x float64, n int32) float64 { /* scalbnl.c:4:13: */ + if __ccgo_strace { + trc("tls=%v x=%v n=%v, (%v:)", tls, x, n, origin(2)) + } return Xscalbn(tls, x, n) } @@ -2406,6 +2487,9 @@ type resolvconf = struct { } /* lookup.h:34:1 */ func Xfreeaddrinfo(tls *TLS, p uintptr) { /* freeaddrinfo.c:7:6: */ + if __ccgo_strace { + trc("tls=%v p=%v, (%v:)", tls, p, origin(2)) + } var cnt size_t cnt = uint64(1) __1: @@ -2543,6 +2627,9 @@ type __ptcb = struct { type useconds_t = uint32 /* alltypes.h:268:18 */ func Xgetaddrinfo(tls *TLS, host uintptr, serv uintptr, hint uintptr, res uintptr) int32 { /* getaddrinfo.c:12:5: */ + if __ccgo_strace { + trc("tls=%v host=%v serv=%v hint=%v res=%v, (%v:)", tls, host, serv, hint, res, origin(2)) + } bp := tls.Alloc(1608) defer tls.Free(1608) @@ -2747,6 +2834,9 @@ type mmsghdr = struct { } /* socket.h:63:1 */ func Xgethostbyaddr(tls *TLS, a uintptr, l socklen_t, af int32) uintptr { /* gethostbyaddr.c:7:16: */ + if __ccgo_strace { + trc("tls=%v a=%v l=%v af=%v, (%v:)", tls, a, l, af, origin(2)) + } bp := tls.Alloc(8) defer tls.Free(8) @@ -2773,10 +2863,16 @@ func Xgethostbyaddr(tls *TLS, a uintptr, l socklen_t, af int32) uintptr { /* get var _sh uintptr /* gethostbyaddr.c:9:24: */ func Xgethostbyname(tls *TLS, name uintptr) uintptr { /* gethostbyname.c:8:16: */ + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + } return Xgethostbyname2(tls, name, 2) } func Xgethostbyname2(tls *TLS, name uintptr, af int32) uintptr { /* gethostbyname2.c:8:16: */ + if __ccgo_strace { + trc("tls=%v name=%v af=%v, (%v:)", tls, name, af, origin(2)) + } bp := tls.Alloc(8) defer tls.Free(8) @@ -2803,6 +2899,9 @@ func Xgethostbyname2(tls *TLS, name uintptr, af int32) uintptr { /* gethostbynam var _sh1 uintptr /* gethostbyname2.c:10:24: */ func Xgethostbyname2_r(tls *TLS, name uintptr, af int32, h uintptr, buf uintptr, buflen size_t, res uintptr, err uintptr) int32 { /* gethostbyname2_r.c:11:5: */ + if __ccgo_strace { + trc("tls=%v name=%v af=%v h=%v buf=%v buflen=%v res=%v err=%v, (%v:)", tls, name, af, h, buf, buflen, res, err, origin(2)) + } bp := tls.Alloc(1600) defer tls.Free(1600) @@ -3191,10 +3290,16 @@ func reverse_services(tls *TLS, buf uintptr, port int32, dgram int32) { /* getna var Xh_errno int32 /* h_errno.c:4:5: */ func X__h_errno_location(tls *TLS) uintptr { /* h_errno.c:6:5: */ + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } return uintptr(unsafe.Pointer(&Xh_errno)) } func X__inet_aton(tls *TLS, s0 uintptr, dest uintptr) int32 { /* inet_aton.c:7:5: */ + if __ccgo_strace { + trc("tls=%v s0=%v dest=%v, (%v:)", tls, s0, dest, origin(2)) + } bp := tls.Alloc(40) defer tls.Free(40) @@ -3246,6 +3351,9 @@ func X__inet_aton(tls *TLS, s0 uintptr, dest uintptr) int32 { /* inet_aton.c:7:5 } func Xinet_ntop(tls *TLS, af int32, a0 uintptr, s uintptr, l socklen_t) uintptr { /* inet_ntop.c:7:12: */ + if __ccgo_strace { + trc("tls=%v af=%v a0=%v s=%v l=%v, (%v:)", tls, af, a0, s, l, origin(2)) + } bp := tls.Alloc(276) defer tls.Free(276) @@ -3320,6 +3428,9 @@ func hexval(tls *TLS, c uint32) int32 { /* inet_pton.c:7:12: */ } func Xinet_pton(tls *TLS, af int32, s uintptr, a0 uintptr) int32 { /* inet_pton.c:15:5: */ + if __ccgo_strace { + trc("tls=%v af=%v s=%v a0=%v, (%v:)", tls, af, s, a0, origin(2)) + } bp := tls.Alloc(16) defer tls.Free(16) @@ -3417,6 +3528,9 @@ func Xinet_pton(tls *TLS, af int32, s uintptr, a0 uintptr) int32 { /* inet_pton. } func X__lookup_ipliteral(tls *TLS, buf uintptr, name uintptr, family int32) int32 { /* lookup_ipliteral.c:12:5: */ + if __ccgo_strace { + trc("tls=%v buf=%v name=%v family=%v, (%v:)", tls, buf, name, family, origin(2)) + } bp := tls.Alloc(96) defer tls.Free(96) @@ -3739,6 +3853,9 @@ func addrcmp(tls *TLS, _a uintptr, _b uintptr) int32 { /* lookup_name.c:305:12: } func X__lookup_name(tls *TLS, buf uintptr, canon uintptr, name uintptr, family int32, flags int32) int32 { /* lookup_name.c:311:5: */ + if __ccgo_strace { + trc("tls=%v buf=%v canon=%v name=%v family=%v flags=%v, (%v:)", tls, buf, canon, name, family, flags, origin(2)) + } bp := tls.Alloc(92) defer tls.Free(92) @@ -3905,6 +4022,9 @@ func X__lookup_name(tls *TLS, buf uintptr, canon uintptr, name uintptr, family i } func X__lookup_serv(tls *TLS, buf uintptr, name uintptr, proto int32, socktype int32, flags int32) int32 { /* lookup_serv.c:12:5: */ + if __ccgo_strace { + trc("tls=%v buf=%v name=%v proto=%v socktype=%v flags=%v, (%v:)", tls, buf, name, proto, socktype, flags, origin(2)) + } bp := tls.Alloc(8) defer tls.Free(8) @@ -4030,6 +4150,9 @@ func X__lookup_serv(tls *TLS, buf uintptr, name uintptr, proto int32, socktype i } func X__toread(tls *TLS, f uintptr) int32 { /* __toread.c:3:5: */ + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } *(*int32)(unsafe.Pointer(f + 136)) |= (*FILE)(unsafe.Pointer(f)).Fmode - 1 if (*FILE)(unsafe.Pointer(f)).Fwpos != (*FILE)(unsafe.Pointer(f)).Fwbase { (*struct { @@ -4049,6 +4172,9 @@ func X__toread(tls *TLS, f uintptr) int32 { /* __toread.c:3:5: */ } func X__toread_needs_stdio_exit(tls *TLS) { /* __toread.c:16:13: */ + if __ccgo_strace { + trc("tls=%v, (%v:)", tls, origin(2)) + } X__builtin_abort(tls) //TODO- // __stdio_exit_needed(); } @@ -4057,6 +4183,9 @@ func X__toread_needs_stdio_exit(tls *TLS) { /* __toread.c:16:13: */ // data buffered for reading. func X__uflow(tls *TLS, f uintptr) int32 { /* __uflow.c:6:5: */ + if __ccgo_strace { + trc("tls=%v f=%v, (%v:)", tls, f, origin(2)) + } bp := tls.Alloc(1) defer tls.Free(1) @@ -4071,6 +4200,9 @@ func X__uflow(tls *TLS, f uintptr) int32 { /* __uflow.c:6:5: */ } func Xbsearch(tls *TLS, key uintptr, base uintptr, nel size_t, width size_t, cmp uintptr) uintptr { /* bsearch.c:3:6: */ + if __ccgo_strace { + trc("tls=%v key=%v base=%v nel=%v width=%v cmp=%v, (%v:)", tls, key, base, nel, width, cmp, origin(2)) + } var try uintptr var sign int32 for nel > uint64(0) { @@ -4113,14 +4245,23 @@ func strtox(tls *TLS, s uintptr, p uintptr, prec int32) float64 { /* strtod.c:6: } func Xstrtof(tls *TLS, s uintptr, p uintptr) float32 { /* strtod.c:17:7: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + } return float32(strtox(tls, s, p, 0)) } func Xstrtod(tls *TLS, s uintptr, p uintptr) float64 { /* strtod.c:22:8: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + } return strtox(tls, s, p, 1) } func Xstrtold(tls *TLS, s uintptr, p uintptr) float64 { /* strtod.c:27:13: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v, (%v:)", tls, s, p, origin(2)) + } return strtox(tls, s, p, 2) } @@ -4142,30 +4283,51 @@ func strtox1(tls *TLS, s uintptr, p uintptr, base int32, lim uint64) uint64 { /* } func Xstrtoull(tls *TLS, s uintptr, p uintptr, base int32) uint64 { /* strtol.c:21:20: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + } return strtox1(tls, s, p, base, 2*uint64(0x7fffffffffffffff)+uint64(1)) } func Xstrtoll(tls *TLS, s uintptr, p uintptr, base int32) int64 { /* strtol.c:26:11: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + } return int64(strtox1(tls, s, p, base, Uint64FromInt64(-0x7fffffffffffffff-int64(1)))) } func Xstrtoul(tls *TLS, s uintptr, p uintptr, base int32) uint64 { /* strtol.c:31:15: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + } return uint64(strtox1(tls, s, p, base, 2*uint64(0x7fffffffffffffff)+uint64(1))) } func Xstrtol(tls *TLS, s uintptr, p uintptr, base int32) int64 { /* strtol.c:36:6: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + } return int64(strtox1(tls, s, p, base, 0+Uint64FromInt64(Int64(-Int64(0x7fffffffffffffff))-Int64FromInt32(1)))) } func Xstrtoimax(tls *TLS, s uintptr, p uintptr, base int32) intmax_t { /* strtol.c:41:10: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + } return intmax_t(Xstrtoll(tls, s, p, base)) } func Xstrtoumax(tls *TLS, s uintptr, p uintptr, base int32) uintmax_t { /* strtol.c:46:11: */ + if __ccgo_strace { + trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2)) + } return uintmax_t(Xstrtoull(tls, s, p, base)) } func Xstrdup(tls *TLS, s uintptr) uintptr { /* strdup.c:4:6: */ + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + } var l size_t = Xstrlen(tls, s) var d uintptr = Xmalloc(tls, l+uint64(1)) if !(d != 0) { @@ -4175,6 +4337,9 @@ func Xstrdup(tls *TLS, s uintptr) uintptr { /* strdup.c:4:6: */ } func Xstrnlen(tls *TLS, s uintptr, n size_t) size_t { /* strnlen.c:3:8: */ + if __ccgo_strace { + trc("tls=%v s=%v n=%v, (%v:)", tls, s, n, origin(2)) + } var p uintptr = Xmemchr(tls, s, 0, n) if p != 0 { return uint64((int64(p) - int64(s)) / 1) @@ -4183,6 +4348,9 @@ func Xstrnlen(tls *TLS, s uintptr, n size_t) size_t { /* strnlen.c:3:8: */ } func Xstrspn(tls *TLS, s uintptr, c uintptr) size_t { /* strspn.c:6:8: */ + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + } bp := tls.Alloc(32) defer tls.Free(32) diff --git a/vendor/modernc.org/libc/musl_windows_386.go b/vendor/modernc.org/libc/musl_windows_386.go index 24c5b2408..2a0eeed27 100644 --- a/vendor/modernc.org/libc/musl_windows_386.go +++ b/vendor/modernc.org/libc/musl_windows_386.go @@ -230,6 +230,9 @@ type __locale_struct = struct{ cat [6]uintptr } /* alltypes.h:366:9 */ type locale_t = uintptr /* alltypes.h:366:32 */ func Xisalnum(tls *TLS, c int32) int32 { /* isalnum.c:3:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(func() int32 { if 0 != 0 { return Xisalpha(tls, c) @@ -244,50 +247,79 @@ func Xisalnum(tls *TLS, c int32) int32 { /* isalnum.c:3:5: */ } func X__isalnum_l(tls *TLS, c int32, l locale_t) int32 { /* isalnum.c:8:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisalnum(tls, c) } func Xisalpha(tls *TLS, c int32) int32 { /* isalpha.c:4:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(uint32(c)|uint32(32)-uint32('a') < uint32(26)) } func X__isalpha_l(tls *TLS, c int32, l locale_t) int32 { /* isalpha.c:9:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisalpha(tls, c) } func Xisdigit(tls *TLS, c int32) int32 { /* isdigit.c:4:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(uint32(c)-uint32('0') < uint32(10)) } func X__isdigit_l(tls *TLS, c int32, l locale_t) int32 { /* isdigit.c:9:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisdigit(tls, c) } -func Xislower(tls *TLS, c int32) int32 { /* islower.c:4:5: */ - return Bool32(uint32(c)-uint32('a') < uint32(26)) -} - func X__islower_l(tls *TLS, c int32, l locale_t) int32 { /* islower.c:9:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xislower(tls, c) } func Xisprint(tls *TLS, c int32) int32 { /* isprint.c:4:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(uint32(c)-uint32(0x20) < uint32(0x5f)) } func X__isprint_l(tls *TLS, c int32, l locale_t) int32 { /* isprint.c:9:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisprint(tls, c) } func Xisspace(tls *TLS, c int32) int32 { /* isspace.c:4:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(c == ' ' || uint32(c)-uint32('\t') < uint32(5)) } func X__isspace_l(tls *TLS, c int32, l locale_t) int32 { /* isspace.c:9:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisspace(tls, c) } func Xisxdigit(tls *TLS, c int32) int32 { /* isxdigit.c:3:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(func() int32 { if 0 != 0 { return Xisdigit(tls, c) @@ -297,6 +329,9 @@ func Xisxdigit(tls *TLS, c int32) int32 { /* isxdigit.c:3:5: */ } func X__isxdigit_l(tls *TLS, c int32, l locale_t) int32 { /* isxdigit.c:8:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisxdigit(tls, c) } @@ -328,6 +363,9 @@ type gid_t = uint32 /* alltypes.h:273:18 */ type useconds_t = uint32 /* alltypes.h:283:18 */ func X__putenv(tls *TLS, s uintptr, l size_t, r uintptr) int32 { /* putenv.c:8:5: */ + if __ccgo_strace { + trc("tls=%v s=%v l=%v r=%v, (%v:)", tls, s, l, r, origin(2)) + } var i size_t var newenv uintptr var tmp uintptr @@ -408,6 +446,9 @@ oom: var _soldenv uintptr /* putenv.c:22:14: */ func Xputenv(tls *TLS, s uintptr) int32 { /* putenv.c:43:5: */ + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + } var l size_t = size_t((int32(X__strchrnul(tls, s, '=')) - int32(s)) / 1) if !(l != 0) || !(int32(*(*int8)(unsafe.Pointer(s + uintptr(l)))) != 0) { return Xunsetenv(tls, s) @@ -416,6 +457,9 @@ func Xputenv(tls *TLS, s uintptr) int32 { /* putenv.c:43:5: */ } func X__env_rm_add(tls *TLS, old uintptr, new uintptr) { /* setenv.c:5:6: */ + if __ccgo_strace { + trc("tls=%v old=%v new=%v, (%v:)", tls, old, new, origin(2)) + } //TODO for (size_t i=0; i < env_alloced_n; i++) var i size_t = size_t(0) for ; i < _senv_alloced_n; i++ { @@ -442,6 +486,9 @@ var _senv_alloced uintptr /* setenv.c:7:14: */ var _senv_alloced_n size_t /* setenv.c:8:16: */ func Xsetenv(tls *TLS, var1 uintptr, value uintptr, overwrite int32) int32 { /* setenv.c:26:5: */ + if __ccgo_strace { + trc("tls=%v var1=%v value=%v overwrite=%v, (%v:)", tls, var1, value, overwrite, origin(2)) + } var s uintptr var l1 size_t var l2 size_t @@ -466,6 +513,9 @@ func Xsetenv(tls *TLS, var1 uintptr, value uintptr, overwrite int32) int32 { /* } func Xunsetenv(tls *TLS, name uintptr) int32 { /* unsetenv.c:9:5: */ + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + } var l size_t = size_t((int32(X__strchrnul(tls, name, '=')) - int32(name)) / 1) if !(l != 0) || *(*int8)(unsafe.Pointer(name + uintptr(l))) != 0 { *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 22 @@ -862,19 +912,10 @@ type mode_t = uint32 /* alltypes.h:175:18 */ type syscall_arg_t = int32 /* syscall.h:22:14 */ -func a_cas(tls *TLS, p uintptr, t int32, s int32) int32 { /* atomic_arch.h:2:19: */ - panic(`arch/i386/atomic_arch.h:4:2: assembler statements not supported`) - return t -} - func a_and(tls *TLS, p uintptr, v int32) { /* atomic_arch.h:29:20: */ panic(`arch/i386/atomic_arch.h:31:2: assembler statements not supported`) } -func a_or(tls *TLS, p uintptr, v int32) { /* atomic_arch.h:37:20: */ - panic(`arch/i386/atomic_arch.h:39:2: assembler statements not supported`) -} - func a_ctz_64(tls *TLS, x uint64_t) int32 { /* atomic_arch.h:87:19: */ var r int32 panic(`arch/i386/atomic_arch.h:90:2: assembler statements not supported`) @@ -892,22 +933,6 @@ func a_clz_32(tls *TLS, x uint32_t) int32 { /* atomic_arch.h:104:19: */ return int32(x) } -func a_or_64(tls *TLS, p uintptr, v uint64_t) { /* atomic.h:220:20: */ - bp := tls.Alloc(8) - defer tls.Free(8) - - *(*struct{ v uint64_t })(unsafe.Pointer(bp)) = func() (r struct{ v uint64_t }) { - *(*uint64_t)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = v - return r - }() - if *(*uint32_t)(unsafe.Pointer(bp)) != 0 { - a_or(tls, p, int32(*(*uint32_t)(unsafe.Pointer(bp)))) - } - if *(*uint32_t)(unsafe.Pointer(bp + 1*4)) != 0 { - a_or(tls, p+uintptr(1)*4, int32(*(*uint32_t)(unsafe.Pointer(bp + 1*4)))) - } -} - type a_cas_p_undefined_but_pointer_not_32bit = [1]int8 /* atomic.h:229:14 */ type __timer = struct { @@ -922,6 +947,9 @@ func __pthread_self(tls *TLS) uintptr { /* pthread_arch.h:1:30: */ } func Xwcrtomb(tls *TLS, s uintptr, wc wchar_t, st uintptr) size_t { /* wcrtomb.c:6:8: */ + if __ccgo_strace { + trc("tls=%v s=%v wc=%v st=%v, (%v:)", tls, s, wc, st, origin(2)) + } if !(s != 0) { return size_t(1) } @@ -961,6 +989,9 @@ func Xwcrtomb(tls *TLS, s uintptr, wc wchar_t, st uintptr) size_t { /* wcrtomb.c } func Xwcsrtombs(tls *TLS, s uintptr, ws uintptr, n size_t, st uintptr) size_t { /* wcsrtombs.c:3:8: */ + if __ccgo_strace { + trc("tls=%v s=%v ws=%v n=%v st=%v, (%v:)", tls, s, ws, n, st, origin(2)) + } bp := tls.Alloc(4) defer tls.Free(4) @@ -1031,6 +1062,9 @@ func Xwcsrtombs(tls *TLS, s uintptr, ws uintptr, n size_t, st uintptr) size_t { } func Xwcstombs(tls *TLS, s uintptr, ws uintptr, n size_t) size_t { /* wcstombs.c:4:8: */ + if __ccgo_strace { + trc("tls=%v s=%v ws=%v n=%v, (%v:)", tls, s, ws, n, origin(2)) + } bp := tls.Alloc(4) defer tls.Free(4) *(*uintptr)(unsafe.Pointer(bp)) = ws @@ -1049,6 +1083,9 @@ func Xwcstombs(tls *TLS, s uintptr, ws uintptr, n size_t) size_t { /* wcstombs.c // from SUS and have nothing to do with the host system. func X__strchrnul(tls *TLS, s uintptr, c int32) uintptr { /* strchrnul.c:10:6: */ + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + } c = int32(uint8(c)) if !(c != 0) { return s + uintptr(Xstrlen(tls, s)) @@ -1069,6 +1106,9 @@ func X__strchrnul(tls *TLS, s uintptr, c int32) uintptr { /* strchrnul.c:10:6: * } func Xstrdup(tls *TLS, s uintptr) uintptr { /* strdup.c:4:6: */ + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + } var l size_t = Xstrlen(tls, s) var d uintptr = Xmalloc(tls, l+size_t(1)) if !(d != 0) { diff --git a/vendor/modernc.org/libc/musl_windows_amd64.go b/vendor/modernc.org/libc/musl_windows_amd64.go index d586fb8be..cafe47beb 100644 --- a/vendor/modernc.org/libc/musl_windows_amd64.go +++ b/vendor/modernc.org/libc/musl_windows_amd64.go @@ -230,6 +230,9 @@ type __locale_struct = struct{ cat [6]uintptr } /* alltypes.h:343:9 */ type locale_t = uintptr /* alltypes.h:343:32 */ func Xisalnum(tls *TLS, c int32) int32 { /* isalnum.c:3:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(func() int32 { if 0 != 0 { return Xisalpha(tls, c) @@ -244,50 +247,79 @@ func Xisalnum(tls *TLS, c int32) int32 { /* isalnum.c:3:5: */ } func X__isalnum_l(tls *TLS, c int32, l locale_t) int32 { /* isalnum.c:8:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisalnum(tls, c) } func Xisalpha(tls *TLS, c int32) int32 { /* isalpha.c:4:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(uint32(c)|uint32(32)-uint32('a') < uint32(26)) } func X__isalpha_l(tls *TLS, c int32, l locale_t) int32 { /* isalpha.c:9:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisalpha(tls, c) } func Xisdigit(tls *TLS, c int32) int32 { /* isdigit.c:4:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(uint32(c)-uint32('0') < uint32(10)) } func X__isdigit_l(tls *TLS, c int32, l locale_t) int32 { /* isdigit.c:9:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisdigit(tls, c) } -func Xislower(tls *TLS, c int32) int32 { /* islower.c:4:5: */ - return Bool32(uint32(c)-uint32('a') < uint32(26)) -} - func X__islower_l(tls *TLS, c int32, l locale_t) int32 { /* islower.c:9:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xislower(tls, c) } func Xisprint(tls *TLS, c int32) int32 { /* isprint.c:4:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(uint32(c)-uint32(0x20) < uint32(0x5f)) } func X__isprint_l(tls *TLS, c int32, l locale_t) int32 { /* isprint.c:9:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisprint(tls, c) } func Xisspace(tls *TLS, c int32) int32 { /* isspace.c:4:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(c == ' ' || uint32(c)-uint32('\t') < uint32(5)) } func X__isspace_l(tls *TLS, c int32, l locale_t) int32 { /* isspace.c:9:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisspace(tls, c) } func Xisxdigit(tls *TLS, c int32) int32 { /* isxdigit.c:3:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(func() int32 { if 0 != 0 { return Xisdigit(tls, c) @@ -297,6 +329,9 @@ func Xisxdigit(tls *TLS, c int32) int32 { /* isxdigit.c:3:5: */ } func X__isxdigit_l(tls *TLS, c int32, l locale_t) int32 { /* isxdigit.c:8:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisxdigit(tls, c) } @@ -328,6 +363,9 @@ type gid_t = uint32 /* alltypes.h:250:18 */ type useconds_t = uint32 /* alltypes.h:260:18 */ func X__putenv(tls *TLS, s uintptr, l size_t, r uintptr) int32 { /* putenv.c:8:5: */ + if __ccgo_strace { + trc("tls=%v s=%v l=%v r=%v, (%v:)", tls, s, l, r, origin(2)) + } var i size_t var newenv uintptr var tmp uintptr @@ -408,6 +446,9 @@ oom: var _soldenv uintptr /* putenv.c:22:14: */ func Xputenv(tls *TLS, s uintptr) int32 { /* putenv.c:43:5: */ + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + } var l size_t = size_t((int64(X__strchrnul(tls, s, '=')) - int64(s)) / 1) if !(l != 0) || !(int32(*(*int8)(unsafe.Pointer(s + uintptr(l)))) != 0) { return Xunsetenv(tls, s) @@ -416,6 +457,9 @@ func Xputenv(tls *TLS, s uintptr) int32 { /* putenv.c:43:5: */ } func X__env_rm_add(tls *TLS, old uintptr, new uintptr) { /* setenv.c:5:6: */ + if __ccgo_strace { + trc("tls=%v old=%v new=%v, (%v:)", tls, old, new, origin(2)) + } //TODO for (size_t i=0; i < env_alloced_n; i++) var i size_t = uint64(0) for ; i < _senv_alloced_n; i++ { @@ -442,6 +486,9 @@ var _senv_alloced uintptr /* setenv.c:7:14: */ var _senv_alloced_n size_t /* setenv.c:8:16: */ func Xsetenv(tls *TLS, var1 uintptr, value uintptr, overwrite int32) int32 { /* setenv.c:26:5: */ + if __ccgo_strace { + trc("tls=%v var1=%v value=%v overwrite=%v, (%v:)", tls, var1, value, overwrite, origin(2)) + } var s uintptr var l1 size_t var l2 size_t @@ -466,6 +513,9 @@ func Xsetenv(tls *TLS, var1 uintptr, value uintptr, overwrite int32) int32 { /* } func Xunsetenv(tls *TLS, name uintptr) int32 { /* unsetenv.c:9:5: */ + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + } var l size_t = size_t((int64(X__strchrnul(tls, name, '=')) - int64(name)) / 1) if !(l != 0) || *(*int8)(unsafe.Pointer(name + uintptr(l))) != 0 { *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 22 @@ -945,6 +995,9 @@ func __pthread_self(tls *TLS) uintptr { /* pthread_arch.h:1:30: */ } func Xwcrtomb(tls *TLS, s uintptr, wc wchar_t, st uintptr) size_t { /* wcrtomb.c:6:8: */ + if __ccgo_strace { + trc("tls=%v s=%v wc=%v st=%v, (%v:)", tls, s, wc, st, origin(2)) + } if !(s != 0) { return uint64(1) } @@ -984,6 +1037,9 @@ func Xwcrtomb(tls *TLS, s uintptr, wc wchar_t, st uintptr) size_t { /* wcrtomb.c } func Xwcsrtombs(tls *TLS, s uintptr, ws uintptr, n size_t, st uintptr) size_t { /* wcsrtombs.c:3:8: */ + if __ccgo_strace { + trc("tls=%v s=%v ws=%v n=%v st=%v, (%v:)", tls, s, ws, n, st, origin(2)) + } bp := tls.Alloc(4) defer tls.Free(4) @@ -1054,6 +1110,9 @@ func Xwcsrtombs(tls *TLS, s uintptr, ws uintptr, n size_t, st uintptr) size_t { } func Xwcstombs(tls *TLS, s uintptr, ws uintptr, n size_t) size_t { /* wcstombs.c:4:8: */ + if __ccgo_strace { + trc("tls=%v s=%v ws=%v n=%v, (%v:)", tls, s, ws, n, origin(2)) + } bp := tls.Alloc(8) defer tls.Free(8) *(*uintptr)(unsafe.Pointer(bp)) = ws @@ -1062,26 +1121,6 @@ func Xwcstombs(tls *TLS, s uintptr, ws uintptr, n size_t) size_t { /* wcstombs.c return Xwcsrtombs(tls, s, bp, n, uintptr(0)) } -func Xbsearch(tls *TLS, key uintptr, base uintptr, nel size_t, width size_t, cmp uintptr) uintptr { /* bsearch.c:3:6: */ - var try uintptr - var sign int32 - for nel > uint64(0) { - try = base + uintptr(width*(nel/uint64(2))) - sign = (*struct { - f func(*TLS, uintptr, uintptr) int32 - })(unsafe.Pointer(&struct{ uintptr }{cmp})).f(tls, key, try) - if sign < 0 { - nel = nel / uint64(2) - } else if sign > 0 { - base = try + uintptr(width) - nel = nel - (nel/uint64(2) + uint64(1)) - } else { - return try - } - } - return uintptr(0) -} - // Support signed or unsigned plain-char // Implementation choices... @@ -1092,6 +1131,9 @@ func Xbsearch(tls *TLS, key uintptr, base uintptr, nel size_t, width size_t, cmp // from SUS and have nothing to do with the host system. func X__strchrnul(tls *TLS, s uintptr, c int32) uintptr { /* strchrnul.c:10:6: */ + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + } c = int32(uint8(c)) if !(c != 0) { return s + uintptr(Xstrlen(tls, s)) @@ -1112,6 +1154,9 @@ func X__strchrnul(tls *TLS, s uintptr, c int32) uintptr { /* strchrnul.c:10:6: * } func Xstrdup(tls *TLS, s uintptr) uintptr { /* strdup.c:4:6: */ + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + } var l size_t = Xstrlen(tls, s) var d uintptr = Xmalloc(tls, l+uint64(1)) if !(d != 0) { diff --git a/vendor/modernc.org/libc/musl_windows_arm64.go b/vendor/modernc.org/libc/musl_windows_arm64.go index 2804cdc98..7516c897a 100644 --- a/vendor/modernc.org/libc/musl_windows_arm64.go +++ b/vendor/modernc.org/libc/musl_windows_arm64.go @@ -230,6 +230,9 @@ type __locale_struct = struct{ cat [6]uintptr } /* alltypes.h:351:9 */ type locale_t = uintptr /* alltypes.h:351:32 */ func Xisalnum(tls *TLS, c int32) int32 { /* isalnum.c:3:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(func() int32 { if 0 != 0 { return Xisalpha(tls, c) @@ -244,50 +247,79 @@ func Xisalnum(tls *TLS, c int32) int32 { /* isalnum.c:3:5: */ } func X__isalnum_l(tls *TLS, c int32, l locale_t) int32 { /* isalnum.c:8:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisalnum(tls, c) } func Xisalpha(tls *TLS, c int32) int32 { /* isalpha.c:4:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(uint32(c)|uint32(32)-uint32('a') < uint32(26)) } func X__isalpha_l(tls *TLS, c int32, l locale_t) int32 { /* isalpha.c:9:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisalpha(tls, c) } func Xisdigit(tls *TLS, c int32) int32 { /* isdigit.c:4:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(uint32(c)-uint32('0') < uint32(10)) } func X__isdigit_l(tls *TLS, c int32, l locale_t) int32 { /* isdigit.c:9:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisdigit(tls, c) } -func Xislower(tls *TLS, c int32) int32 { /* islower.c:4:5: */ - return Bool32(uint32(c)-uint32('a') < uint32(26)) -} - func X__islower_l(tls *TLS, c int32, l locale_t) int32 { /* islower.c:9:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xislower(tls, c) } func Xisprint(tls *TLS, c int32) int32 { /* isprint.c:4:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(uint32(c)-uint32(0x20) < uint32(0x5f)) } func X__isprint_l(tls *TLS, c int32, l locale_t) int32 { /* isprint.c:9:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisprint(tls, c) } func Xisspace(tls *TLS, c int32) int32 { /* isspace.c:4:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(c == ' ' || uint32(c)-uint32('\t') < uint32(5)) } func X__isspace_l(tls *TLS, c int32, l locale_t) int32 { /* isspace.c:9:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisspace(tls, c) } func Xisxdigit(tls *TLS, c int32) int32 { /* isxdigit.c:3:5: */ + if __ccgo_strace { + trc("tls=%v c=%v, (%v:)", tls, c, origin(2)) + } return Bool32(func() int32 { if 0 != 0 { return Xisdigit(tls, c) @@ -297,6 +329,9 @@ func Xisxdigit(tls *TLS, c int32) int32 { /* isxdigit.c:3:5: */ } func X__isxdigit_l(tls *TLS, c int32, l locale_t) int32 { /* isxdigit.c:8:5: */ + if __ccgo_strace { + trc("tls=%v c=%v l=%v, (%v:)", tls, c, l, origin(2)) + } return Xisxdigit(tls, c) } @@ -328,6 +363,9 @@ type gid_t = uint32 /* alltypes.h:258:18 */ type useconds_t = uint32 /* alltypes.h:268:18 */ func X__putenv(tls *TLS, s uintptr, l size_t, r uintptr) int32 { /* putenv.c:8:5: */ + if __ccgo_strace { + trc("tls=%v s=%v l=%v r=%v, (%v:)", tls, s, l, r, origin(2)) + } var i size_t var newenv uintptr var tmp uintptr @@ -408,6 +446,9 @@ oom: var _soldenv uintptr /* putenv.c:22:14: */ func Xputenv(tls *TLS, s uintptr) int32 { /* putenv.c:43:5: */ + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + } var l size_t = size_t((int64(X__strchrnul(tls, s, '=')) - int64(s)) / 1) if !(l != 0) || !(int32(*(*int8)(unsafe.Pointer(s + uintptr(l)))) != 0) { return Xunsetenv(tls, s) @@ -416,6 +457,9 @@ func Xputenv(tls *TLS, s uintptr) int32 { /* putenv.c:43:5: */ } func X__env_rm_add(tls *TLS, old uintptr, new uintptr) { /* setenv.c:5:6: */ + if __ccgo_strace { + trc("tls=%v old=%v new=%v, (%v:)", tls, old, new, origin(2)) + } //TODO for (size_t i=0; i < env_alloced_n; i++) var i size_t = uint64(0) for ; i < _senv_alloced_n; i++ { @@ -442,6 +486,9 @@ var _senv_alloced uintptr /* setenv.c:7:14: */ var _senv_alloced_n size_t /* setenv.c:8:16: */ func Xsetenv(tls *TLS, var1 uintptr, value uintptr, overwrite int32) int32 { /* setenv.c:26:5: */ + if __ccgo_strace { + trc("tls=%v var1=%v value=%v overwrite=%v, (%v:)", tls, var1, value, overwrite, origin(2)) + } var s uintptr var l1 size_t var l2 size_t @@ -466,6 +513,9 @@ func Xsetenv(tls *TLS, var1 uintptr, value uintptr, overwrite int32) int32 { /* } func Xunsetenv(tls *TLS, name uintptr) int32 { /* unsetenv.c:9:5: */ + if __ccgo_strace { + trc("tls=%v name=%v, (%v:)", tls, name, origin(2)) + } var l size_t = size_t((int64(X__strchrnul(tls, name, '=')) - int64(name)) / 1) if !(l != 0) || *(*int8)(unsafe.Pointer(name + uintptr(l))) != 0 { *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 22 @@ -1023,6 +1073,9 @@ func __pthread_self(tls *TLS) uintptr { /* pthread_arch.h:1:30: */ } func Xwcrtomb(tls *TLS, s uintptr, wc wchar_t, st uintptr) size_t { /* wcrtomb.c:6:8: */ + if __ccgo_strace { + trc("tls=%v s=%v wc=%v st=%v, (%v:)", tls, s, wc, st, origin(2)) + } if !(s != 0) { return uint64(1) } @@ -1062,6 +1115,9 @@ func Xwcrtomb(tls *TLS, s uintptr, wc wchar_t, st uintptr) size_t { /* wcrtomb.c } func Xwcsrtombs(tls *TLS, s uintptr, ws uintptr, n size_t, st uintptr) size_t { /* wcsrtombs.c:3:8: */ + if __ccgo_strace { + trc("tls=%v s=%v ws=%v n=%v st=%v, (%v:)", tls, s, ws, n, st, origin(2)) + } bp := tls.Alloc(4) defer tls.Free(4) @@ -1132,6 +1188,9 @@ func Xwcsrtombs(tls *TLS, s uintptr, ws uintptr, n size_t, st uintptr) size_t { } func Xwcstombs(tls *TLS, s uintptr, ws uintptr, n size_t) size_t { /* wcstombs.c:4:8: */ + if __ccgo_strace { + trc("tls=%v s=%v ws=%v n=%v, (%v:)", tls, s, ws, n, origin(2)) + } bp := tls.Alloc(8) defer tls.Free(8) *(*uintptr)(unsafe.Pointer(bp)) = ws @@ -1140,26 +1199,6 @@ func Xwcstombs(tls *TLS, s uintptr, ws uintptr, n size_t) size_t { /* wcstombs.c return Xwcsrtombs(tls, s, bp, n, uintptr(0)) } -func Xbsearch(tls *TLS, key uintptr, base uintptr, nel size_t, width size_t, cmp uintptr) uintptr { /* bsearch.c:3:6: */ - var try uintptr - var sign int32 - for nel > uint64(0) { - try = base + uintptr(width*(nel/uint64(2))) - sign = (*struct { - f func(*TLS, uintptr, uintptr) int32 - })(unsafe.Pointer(&struct{ uintptr }{cmp})).f(tls, key, try) - if sign < 0 { - nel = nel / uint64(2) - } else if sign > 0 { - base = try + uintptr(width) - nel = nel - (nel/uint64(2) + uint64(1)) - } else { - return try - } - } - return uintptr(0) -} - // Support signed or unsigned plain-char // Implementation choices... @@ -1170,6 +1209,9 @@ func Xbsearch(tls *TLS, key uintptr, base uintptr, nel size_t, width size_t, cmp // from SUS and have nothing to do with the host system. func X__strchrnul(tls *TLS, s uintptr, c int32) uintptr { /* strchrnul.c:10:6: */ + if __ccgo_strace { + trc("tls=%v s=%v c=%v, (%v:)", tls, s, c, origin(2)) + } c = int32(uint8(c)) if !(c != 0) { return s + uintptr(Xstrlen(tls, s)) @@ -1190,6 +1232,9 @@ func X__strchrnul(tls *TLS, s uintptr, c int32) uintptr { /* strchrnul.c:10:6: * } func Xstrdup(tls *TLS, s uintptr) uintptr { /* strdup.c:4:6: */ + if __ccgo_strace { + trc("tls=%v s=%v, (%v:)", tls, s, origin(2)) + } var l size_t = Xstrlen(tls, s) var d uintptr = Xmalloc(tls, l+uint64(1)) if !(d != 0) { diff --git a/vendor/modernc.org/libc/netdb/capi_illumos_amd64.go b/vendor/modernc.org/libc/netdb/capi_illumos_amd64.go new file mode 100644 index 000000000..4f12690b5 --- /dev/null +++ b/vendor/modernc.org/libc/netdb/capi_illumos_amd64.go @@ -0,0 +1,5 @@ +// Code generated by 'ccgo netdb/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o netdb/netdb_illumos_amd64.go -pkgname netdb', DO NOT EDIT. + +package netdb + +var CAPI = map[string]struct{}{} diff --git a/vendor/modernc.org/libc/netdb/capi_linux_loong64.go b/vendor/modernc.org/libc/netdb/capi_linux_loong64.go new file mode 100644 index 000000000..ed2b04ac0 --- /dev/null +++ b/vendor/modernc.org/libc/netdb/capi_linux_loong64.go @@ -0,0 +1,5 @@ +// Code generated by 'ccgo netdb/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o netdb/netdb_linux_loong64.go -pkgname netdb', DO NOT EDIT. + +package netdb + +var CAPI = map[string]struct{}{} diff --git a/vendor/modernc.org/libc/netdb/capi_linux_mips64le.go b/vendor/modernc.org/libc/netdb/capi_linux_mips64le.go new file mode 100644 index 000000000..8be6cacf0 --- /dev/null +++ b/vendor/modernc.org/libc/netdb/capi_linux_mips64le.go @@ -0,0 +1,5 @@ +// Code generated by 'ccgo netdb/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o netdb/netdb_linux_amd64.go -pkgname netdb', DO NOT EDIT. + +package netdb + +var CAPI = map[string]struct{}{} diff --git a/vendor/modernc.org/libc/netdb/netdb_illumos_amd64.go b/vendor/modernc.org/libc/netdb/netdb_illumos_amd64.go new file mode 100644 index 000000000..b1108972e --- /dev/null +++ b/vendor/modernc.org/libc/netdb/netdb_illumos_amd64.go @@ -0,0 +1,5631 @@ +// Code generated by 'ccgo netdb/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o netdb/netdb_illumos_amd64.go -pkgname netdb', DO NOT EDIT. + +package netdb + +import ( + "math" + "reflect" + "sync/atomic" + "unsafe" +) + +var _ = math.Pi +var _ reflect.Kind +var _ atomic.Value +var _ unsafe.Pointer + +const ( + AF_802 = 18 // socket.h:296:1: + AF_APPLETALK = 16 // socket.h:294:1: + AF_CCITT = 10 // socket.h:288:1: + AF_CHAOS = 5 // socket.h:283:1: + AF_DATAKIT = 9 // socket.h:287:1: + AF_DECnet = 12 // socket.h:290:1: + AF_DLI = 13 // socket.h:291:1: + AF_ECMA = 8 // socket.h:286:1: + AF_FILE = 1 // socket.h:279:1: + AF_GOSIP = 22 // socket.h:300:1: + AF_HYLINK = 15 // socket.h:293:1: + AF_IMPLINK = 3 // socket.h:281:1: + AF_INET = 2 // socket.h:280:1: + AF_INET6 = 26 // socket.h:304:1: + AF_INET_OFFLOAD = 30 // socket.h:308:1: + AF_IPX = 23 // socket.h:301:1: + AF_KEY = 27 // socket.h:305:1: + AF_LAT = 14 // socket.h:292:1: + AF_LINK = 25 // socket.h:303:1: + AF_LOCAL = 1 // socket.h:278:1: + AF_LX_NETLINK = 33 // socket.h:311:1: + AF_MAX = 33 // socket.h:313:1: + AF_NBS = 7 // socket.h:285:1: + AF_NCA = 28 // socket.h:306:1: + AF_NIT = 17 // socket.h:295:1: + AF_NS = 6 // socket.h:284:1: + AF_OSI = 19 // socket.h:297:1: + AF_OSINET = 21 // socket.h:299:1: + AF_PACKET = 32 // socket.h:310:1: + AF_POLICY = 29 // socket.h:307:1: + AF_PUP = 4 // socket.h:282:1: + AF_ROUTE = 24 // socket.h:302:1: + AF_SNA = 11 // socket.h:289:1: + AF_TRILL = 31 // socket.h:309:1: + AF_UNIX = 1 // socket.h:277:1: + AF_UNSPEC = 0 // socket.h:276:1: + AF_X25 = 20 // socket.h:298:1: + AI_ADDRCONFIG = 0x0004 // netdb.h:139:1: + AI_ALL = 0x0002 // netdb.h:138:1: + AI_CANONNAME = 0x0010 // netdb.h:132:1: + AI_DEFAULT = 5 // netdb.h:147:1: + AI_NUMERICHOST = 0x0020 // netdb.h:133:1: + AI_NUMERICSERV = 0x0040 // netdb.h:134:1: + AI_PASSIVE = 0x0008 // netdb.h:131:1: + AI_V4MAPPED = 0x0001 // netdb.h:137:1: + CANBSIZ = 256 // param.h:91:1: + CDLIMIT = 2048 // param.h:164:1: + CLOCKS_PER_SEC = 1000000 // time_iso.h:78:1: + CLOCK_HIGHRES = 4 // time_impl.h:126:1: + CLOCK_MONOTONIC = 4 // time_impl.h:124:1: + CLOCK_PROCESS_CPUTIME_ID = 5 // time_impl.h:125:1: + CLOCK_PROF = 2 // time_impl.h:127:1: + CLOCK_REALTIME = 3 // time_impl.h:123:1: + CLOCK_THREAD_CPUTIME_ID = 2 // time_impl.h:122:1: + CLOCK_VIRTUAL = 1 // time_impl.h:121:1: + CMASK = 022 // param.h:163:1: + DEFAULT_JUMPPID = 0 // param.h:120:1: + DEFAULT_MAXPID = 30000 // param.h:119:1: + DEV_BSHIFT = 9 // param.h:251:1: + DEV_BSIZE = 512 // param.h:250:1: + DST_AUST = 2 // time.h:115:1: + DST_AUSTALT = 10 // time.h:123:1: + DST_CAN = 6 // time.h:119:1: + DST_EET = 5 // time.h:118:1: + DST_GB = 7 // time.h:120:1: + DST_MET = 4 // time.h:117:1: + DST_NONE = 0 // time.h:113:1: + DST_RUM = 8 // time.h:121:1: + DST_TUR = 9 // time.h:122:1: + DST_USA = 1 // time.h:114:1: + DST_WET = 3 // time.h:116:1: + EAI_ADDRFAMILY = 1 // netdb.h:150:1: + EAI_AGAIN = 2 // netdb.h:153:1: + EAI_BADFLAGS = 3 // netdb.h:154:1: + EAI_FAIL = 4 // netdb.h:155:1: + EAI_FAMILY = 5 // netdb.h:156:1: + EAI_MAX = 14 // netdb.h:164:1: + EAI_MEMORY = 6 // netdb.h:157:1: + EAI_NODATA = 7 // netdb.h:151:1: + EAI_NONAME = 8 // netdb.h:158:1: + EAI_OVERFLOW = 12 // netdb.h:162:1: + EAI_PROTOCOL = 13 // netdb.h:163:1: + EAI_SERVICE = 9 // netdb.h:159:1: + EAI_SOCKTYPE = 10 // netdb.h:160:1: + EAI_SYSTEM = 11 // netdb.h:161:1: + FD_SETSIZE = 65536 // select.h:88:1: + FILF_AUTO = 0x2 // socket.h:232:1: + FILF_BYPASS = 0x4 // socket.h:233:1: + FILF_PROG = 0x1 // socket.h:231:1: + FILNAME_MAX = 32 // socket.h:221:1: + FIL_ATTACH = 0x1 // socket.h:217:1: + FIL_DETACH = 0x2 // socket.h:218:1: + FIL_LIST = 0x3 // socket.h:219:1: + FSCALE = 256 // param.h:304:1: + FSHIFT = 8 // param.h:303:1: + GID_NETADM = 65 // param.h:100:1: + GID_NOBODY = 60001 // param.h:95:1: + GID_UNKNOWN = 96 // param.h:97:1: + HOST_NOT_FOUND = 1 // netdb.h:381:1: + IMPLINK_HIGHEXPER = 158 // in.h:284:1: + IMPLINK_IP = 155 // in.h:282:1: + IMPLINK_LOWEXPER = 156 // in.h:283:1: + INADDR_6TO4RRANYCAST = 0xc0586301 // in.h:392:1: + INADDR_ALLHOSTS_GROUP = 0xe0000001 // in.h:372:1: + INADDR_ALLRPTS_GROUP = 0xe0000016 // in.h:374:1: + INADDR_ALLRTRS_GROUP = 0xe0000002 // in.h:373:1: + INADDR_ANY = 0x00000000 // in.h:366:1: + INADDR_BROADCAST = 0xffffffff // in.h:368:1: + INADDR_LOOPBACK = 0x7F000001 // in.h:367:1: + INADDR_MAX_LOCAL_GROUP = 0xe00000ff // in.h:375:1: + INADDR_NONE = 0xffffffff // in.h:369:1: + INADDR_UNSPEC_GROUP = 0xe0000000 // in.h:371:1: + INET6_ADDRSTRLEN = 46 // in.h:1212:1: + INET_ADDRSTRLEN = 16 // in.h:1210:1: + IN_AUTOCONF_MASK = 0xffff0000 // in.h:379:1: + IN_AUTOCONF_NET = 0xa9fe0000 // in.h:378:1: + IN_CLASSA_HOST = 0x00ffffff // in.h:332:1: + IN_CLASSA_MAX = 128 // in.h:333:1: + IN_CLASSA_NET = 0xff000000 // in.h:330:1: + IN_CLASSA_NSHIFT = 24 // in.h:331:1: + IN_CLASSB_HOST = 0x0000ffff // in.h:338:1: + IN_CLASSB_MAX = 65536 // in.h:339:1: + IN_CLASSB_NET = 0xffff0000 // in.h:336:1: + IN_CLASSB_NSHIFT = 16 // in.h:337:1: + IN_CLASSC_HOST = 0x000000ff // in.h:344:1: + IN_CLASSC_NET = 0xffffff00 // in.h:342:1: + IN_CLASSC_NSHIFT = 8 // in.h:343:1: + IN_CLASSD_HOST = 0x0fffffff // in.h:349:1: + IN_CLASSD_NET = 0xf0000000 // in.h:347:1: + IN_CLASSD_NSHIFT = 28 // in.h:348:1: + IN_CLASSE_NET = 0xffffffff // in.h:352:1: + IN_LOOPBACKNET = 127 // in.h:395:1: + IN_PRIVATE12_MASK = 0xfff00000 // in.h:383:1: + IN_PRIVATE12_NET = 0xac100000 // in.h:382:1: + IN_PRIVATE16_MASK = 0xffff0000 // in.h:385:1: + IN_PRIVATE16_NET = 0xc0a80000 // in.h:384:1: + IN_PRIVATE8_MASK = 0xff000000 // in.h:381:1: + IN_PRIVATE8_NET = 0x0a000000 // in.h:380:1: + IPPORT_BIFFUDP = 512 // in.h:250:1: + IPPORT_BOOTPC = 68 // in.h:214:1: + IPPORT_BOOTPS = 67 // in.h:213:1: + IPPORT_CHARGEN = 19 // in.h:199:1: + IPPORT_CMDSERVER = 514 // in.h:243:1: + IPPORT_DAYTIME = 13 // in.h:197:1: + IPPORT_DHCPV6C = 546 // in.h:260:1: + IPPORT_DHCPV6S = 547 // in.h:261:1: + IPPORT_DISCARD = 9 // in.h:195:1: + IPPORT_DOMAIN = 53 // in.h:206:1: + IPPORT_ECHO = 7 // in.h:194:1: + IPPORT_EFSSERVER = 520 // in.h:245:1: + IPPORT_EXECSERVER = 512 // in.h:241:1: + IPPORT_FINGER = 79 // in.h:217:1: + IPPORT_FTP = 21 // in.h:200:1: + IPPORT_HTTP = 80 // in.h:218:1: + IPPORT_HTTP_ALT = 8080 // in.h:219:1: + IPPORT_IKE = 500 // in.h:235:1: + IPPORT_IKE_NATT = 4500 // in.h:236:1: + IPPORT_LDAP = 389 // in.h:226:1: + IPPORT_LOGINSERVER = 513 // in.h:242:1: + IPPORT_MDNS = 5353 // in.h:207:1: + IPPORT_MIP = 434 // in.h:228:1: + IPPORT_MTP = 57 // in.h:208:1: + IPPORT_NAMESERVER = 42 // in.h:204:1: + IPPORT_NETBIOS_DGM = 138 // in.h:224:1: + IPPORT_NETBIOS_NS = 137 // in.h:223:1: + IPPORT_NETBIOS_SSN = 139 // in.h:225:1: + IPPORT_NETSTAT = 15 // in.h:198:1: + IPPORT_NTP = 123 // in.h:222:1: + IPPORT_PRINTER = 515 // in.h:244:1: + IPPORT_RESERVED = 1024 // in.h:271:1: + IPPORT_RIPNG = 521 // in.h:255:1: + IPPORT_RJE = 77 // in.h:216:1: + IPPORT_ROUTESERVER = 520 // in.h:254:1: + IPPORT_SLP = 427 // in.h:227:1: + IPPORT_SMB = 445 // in.h:229:1: + IPPORT_SMTP = 25 // in.h:202:1: + IPPORT_SOCKS = 1080 // in.h:263:1: + IPPORT_SUPDUP = 95 // in.h:221:1: + IPPORT_SYSLOG = 514 // in.h:252:1: + IPPORT_SYSTAT = 11 // in.h:196:1: + IPPORT_TALK = 517 // in.h:253:1: + IPPORT_TELNET = 23 // in.h:201:1: + IPPORT_TFTP = 69 // in.h:215:1: + IPPORT_TIMESERVER = 37 // in.h:203:1: + IPPORT_TTYLINK = 87 // in.h:220:1: + IPPORT_USERRESERVED = 5000 // in.h:272:1: + IPPORT_VXLAN = 4789 // in.h:230:1: + IPPORT_WHOIS = 43 // in.h:205:1: + IPPORT_WHOSERVER = 513 // in.h:251:1: + IPPROTO_AH = 51 // in.h:169:1: + IPPROTO_DSTOPTS = 60 // in.h:172:1: + IPPROTO_EGP = 8 // in.h:160:1: + IPPROTO_ENCAP = 4 // in.h:158:1: + IPPROTO_EON = 80 // in.h:175:1: + IPPROTO_ESP = 50 // in.h:168:1: + IPPROTO_FRAGMENT = 44 // in.h:166:1: + IPPROTO_GGP = 3 // in.h:157:1: + IPPROTO_HELLO = 63 // in.h:173:1: + IPPROTO_HOPOPTS = 0 // in.h:154:1: + IPPROTO_ICMP = 1 // in.h:155:1: + IPPROTO_ICMPV6 = 58 // in.h:170:1: + IPPROTO_IDP = 22 // in.h:163:1: + IPPROTO_IGMP = 2 // in.h:156:1: + IPPROTO_IP = 0 // in.h:153:1: + IPPROTO_IPV6 = 41 // in.h:164:1: + IPPROTO_MAX = 256 // in.h:182:1: + IPPROTO_ND = 77 // in.h:174:1: + IPPROTO_NONE = 59 // in.h:171:1: + IPPROTO_OSPF = 89 // in.h:176:1: + IPPROTO_PIM = 103 // in.h:177:1: + IPPROTO_PUP = 12 // in.h:161:1: + IPPROTO_RAW = 255 // in.h:181:1: + IPPROTO_ROUTING = 43 // in.h:165:1: + IPPROTO_RSVP = 46 // in.h:167:1: + IPPROTO_SCTP = 132 // in.h:178:1: + IPPROTO_TCP = 6 // in.h:159:1: + IPPROTO_UDP = 17 // in.h:162:1: + IPSEC_PREF_NEVER = 0x01 // in.h:941:1: + IPSEC_PREF_REQUIRED = 0x02 // in.h:942:1: + IPSEC_PREF_UNIQUE = 0x04 // in.h:943:1: + IPSEC_PROTO_AH = 2 // netdb.h:209:1: + IPSEC_PROTO_ESP = 3 // netdb.h:210:1: + IPV6_ADD_MEMBERSHIP = 0x9 // in.h:1224:1: + IPV6_BOUND_IF = 0x41 // in.h:1307:1: + IPV6_CHECKSUM = 0x18 // in.h:1257:1: + IPV6_DONTFRAG = 0x21 // in.h:1260:1: + IPV6_DROP_MEMBERSHIP = 0xa // in.h:1226:1: + IPV6_DSTOPTS = 0xf // in.h:1234:1: + IPV6_FLOWINFO_FLOWLABEL = 0xffff0f00 // in.h:447:1: + IPV6_FLOWINFO_TCLASS = 0x0000f00f // in.h:448:1: + IPV6_HOPLIMIT = 0xc // in.h:1231:1: + IPV6_HOPOPTS = 0xe // in.h:1233:1: + IPV6_JOIN_GROUP = 0x9 // in.h:1202:1: + IPV6_LEAVE_GROUP = 0xa // in.h:1204:1: + IPV6_MULTICAST_HOPS = 0x7 // in.h:1196:1: + IPV6_MULTICAST_IF = 0x6 // in.h:1193:1: + IPV6_MULTICAST_LOOP = 0x8 // in.h:1199:1: + IPV6_NEXTHOP = 0xd // in.h:1232:1: + IPV6_PAD1_OPT = 0 // in.h:1314:1: + IPV6_PATHMTU = 0x25 // in.h:1264:1: + IPV6_PKTINFO = 0xb // in.h:1229:1: + IPV6_PREFER_SRC_CGA = 0x00000020 // in.h:1289:1: + IPV6_PREFER_SRC_CGADEFAULT = 16 // in.h:1296:1: + IPV6_PREFER_SRC_CGAMASK = 48 // in.h:1295:1: + IPV6_PREFER_SRC_COA = 0x00000002 // in.h:1285:1: + IPV6_PREFER_SRC_DEFAULT = 21 // in.h:1301:1: + IPV6_PREFER_SRC_HOME = 0x00000001 // in.h:1284:1: + IPV6_PREFER_SRC_MASK = 63 // in.h:1298:1: + IPV6_PREFER_SRC_MIPDEFAULT = 1 // in.h:1292:1: + IPV6_PREFER_SRC_MIPMASK = 3 // in.h:1291:1: + IPV6_PREFER_SRC_NONCGA = 0x00000010 // in.h:1288:1: + IPV6_PREFER_SRC_PUBLIC = 0x00000004 // in.h:1286:1: + IPV6_PREFER_SRC_TMP = 0x00000008 // in.h:1287:1: + IPV6_PREFER_SRC_TMPDEFAULT = 4 // in.h:1294:1: + IPV6_PREFER_SRC_TMPMASK = 12 // in.h:1293:1: + IPV6_RECVDSTOPTS = 0x28 // in.h:1271:1: + IPV6_RECVHOPLIMIT = 0x13 // in.h:1240:1: + IPV6_RECVHOPOPTS = 0x14 // in.h:1241:1: + IPV6_RECVPATHMTU = 0x24 // in.h:1263:1: + IPV6_RECVPKTINFO = 0x12 // in.h:1239:1: + IPV6_RECVRTHDR = 0x16 // in.h:1249:1: + IPV6_RECVRTHDRDSTOPTS = 0x17 // in.h:1255:1: + IPV6_RECVTCLASS = 0x19 // in.h:1258:1: + IPV6_RTHDR = 0x10 // in.h:1236:1: + IPV6_RTHDRDSTOPTS = 0x11 // in.h:1237:1: + IPV6_RTHDR_TYPE_0 = 0 // in.h:1152:1: + IPV6_SEC_OPT = 0x22 // in.h:1261:1: + IPV6_SRC_PREFERENCES = 0x23 // in.h:1262:1: + IPV6_TCLASS = 0x26 // in.h:1265:1: + IPV6_UNICAST_HOPS = 0x5 // in.h:1190:1: + IPV6_UNSPEC_SRC = 0x42 // in.h:1308:1: + IPV6_USE_MIN_MTU = 0x20 // in.h:1259:1: + IPV6_V6ONLY = 0x27 // in.h:1266:1: + IP_ADD_MEMBERSHIP = 0x13 // in.h:921:1: + IP_ADD_SOURCE_MEMBERSHIP = 0x17 // in.h:925:1: + IP_BLOCK_SOURCE = 0x15 // in.h:923:1: + IP_BOUND_IF = 0x41 // in.h:976:1: + IP_BROADCAST = 0x106 // in.h:994:1: + IP_BROADCAST_TTL = 0x43 // in.h:978:1: + IP_DEFAULT_MULTICAST_LOOP = 1 // in.h:1009:1: + IP_DEFAULT_MULTICAST_TTL = 1 // in.h:1008:1: + IP_DHCPINIT_IF = 0x45 // in.h:980:1: + IP_DONTFRAG = 0x1b // in.h:934:1: + IP_DONTROUTE = 0x105 // in.h:990:1: + IP_DROP_MEMBERSHIP = 0x14 // in.h:922:1: + IP_DROP_SOURCE_MEMBERSHIP = 0x18 // in.h:926:1: + IP_HDRINCL = 2 // in.h:899:1: + IP_MULTICAST_IF = 0x10 // in.h:918:1: + IP_MULTICAST_LOOP = 0x12 // in.h:920:1: + IP_MULTICAST_TTL = 0x11 // in.h:919:1: + IP_NEXTHOP = 0x19 // in.h:927:1: + IP_OPTIONS = 1 // in.h:896:1: + IP_PKTINFO = 0x1a // in.h:932:1: + IP_RECVDSTADDR = 0x7 // in.h:911:1: + IP_RECVIF = 0x9 // in.h:913:1: + IP_RECVOPTS = 0x5 // in.h:909:1: + IP_RECVPKTINFO = 0x1a // in.h:933:1: + IP_RECVRETOPTS = 0x6 // in.h:910:1: + IP_RECVSLLA = 0xa // in.h:914:1: + IP_RECVTOS = 0xc // in.h:916:1: + IP_RECVTTL = 0xb // in.h:915:1: + IP_RETOPTS = 0x8 // in.h:912:1: + IP_REUSEADDR = 0x104 // in.h:986:1: + IP_SEC_OPT = 0x22 // in.h:940:1: + IP_TOS = 3 // in.h:902:1: + IP_TTL = 4 // in.h:906:1: + IP_UNBLOCK_SOURCE = 0x16 // in.h:924:1: + IP_UNSPEC_SRC = 0x42 // in.h:977:1: + ITIMER_PROF = 2 // time.h:201:1: + ITIMER_REAL = 0 // time.h:199:1: + ITIMER_REALPROF = 3 // time.h:204:1: + ITIMER_VIRTUAL = 1 // time.h:200:1: + LINUX_SLL_BROADCAST = 1 // socket_impl.h:122:1: + LINUX_SLL_HOST = 0 // socket_impl.h:121:1: + LINUX_SLL_MULTICAST = 2 // socket_impl.h:123:1: + LINUX_SLL_OTHERHOST = 3 // socket_impl.h:124:1: + LINUX_SLL_OUTGOING = 4 // socket_impl.h:125:1: + MAXADDRS = 35 // netdb.h:397:1: + MAXALIASES = 35 // netdb.h:396:1: + MAXBSIZE = 8192 // param.h:249:1: + MAXFRAG = 8 // param.h:252:1: + MAXHOSTNAMELEN = 256 // netdb.h:394:1: + MAXLINK = 32767 // param.h:126:1: + MAXLINKNAMELEN = 32 // param.h:209:1: + MAXNAMELEN = 256 // param.h:202:1: + MAXOFFSET_T = 0x7fffffffffffffff // param.h:258:1: + MAXOFF_T = 0x7fffffffffffffff // param.h:257:1: + MAXPATHLEN = 1024 // param.h:199:1: + MAXPROJID = 2147483647 // param.h:125:1: + MAXSYMLINKS = 20 // param.h:201:1: + MAXUID = 2147483647 // param.h:123:1: + MAX_CANON = 256 // param.h:89:1: + MAX_INPUT = 512 // param.h:86:1: + MCAST_BLOCK_SOURCE = 0x2b // in.h:1278:1: + MCAST_EXCLUDE = 2 // in.h:1122:1: + MCAST_INCLUDE = 1 // in.h:1121:1: + MCAST_JOIN_GROUP = 0x29 // in.h:1276:1: + MCAST_JOIN_SOURCE_GROUP = 0x2d // in.h:1280:1: + MCAST_LEAVE_GROUP = 0x2a // in.h:1277:1: + MCAST_LEAVE_SOURCE_GROUP = 0x2e // in.h:1281:1: + MCAST_UNBLOCK_SOURCE = 0x2c // in.h:1279:1: + MICROSEC = 1000000 // time.h:246:1: + MILLISEC = 1000 // time.h:245:1: + MINEPHUID = 0x80000000 // param.h:128:1: + MSG_CTRUNC = 0x10 // socket.h:429:1: + MSG_DONTROUTE = 0x4 // socket.h:427:1: + MSG_DONTWAIT = 0x80 // socket.h:432:1: + MSG_DUPCTRL = 0x800 // socket.h:435:1: + MSG_EOR = 0x8 // socket.h:428:1: + MSG_MAXIOVLEN = 16 // socket.h:440:1: + MSG_NOSIGNAL = 0x200 // socket.h:434:1: + MSG_NOTIFICATION = 0x100 // socket.h:433:1: + MSG_OOB = 0x1 // socket.h:425:1: + MSG_PEEK = 0x2 // socket.h:426:1: + MSG_TRUNC = 0x20 // socket.h:430:1: + MSG_WAITALL = 0x40 // socket.h:431:1: + MSG_XPG4_2 = 0x8000 // socket.h:437:1: + NADDR = 13 // param.h:212:1: + NANOSEC = 1000000000 // time.h:247:1: + NBBY = 8 // select.h:103:1: + NBPS = 0x20000 // param.h:165:1: + NBPSCTR = 512 // param.h:166:1: + NCARGS = 2097152 // param.h:294:1: + NCARGS32 = 0x100000 // param.h:291:1: + NCARGS64 = 0x200000 // param.h:292:1: + NC_APPLETALK = "appletalk" // netconfig.h:108:1: + NC_BROADCAST = 02 // netconfig.h:85:1: + NC_CCITT = "ccitt" // netconfig.h:102:1: + NC_CHAOS = "chaos" // netconfig.h:97:1: + NC_DATAKIT = "datakit" // netconfig.h:101:1: + NC_DECNET = "decnet" // netconfig.h:104:1: + NC_DLI = "dli" // netconfig.h:105:1: + NC_ECMA = "ecma" // netconfig.h:100:1: + NC_GOSIP = "gosip" // netconfig.h:114:1: + NC_HYLINK = "hylink" // netconfig.h:107:1: + NC_IBTF = "ibtf" // netconfig.h:138:1: + NC_ICMP = "icmp" // netconfig.h:132:1: + NC_IEEE802 = "ieee802" // netconfig.h:110:1: + NC_IMPLINK = "implink" // netconfig.h:95:1: + NC_INET = "inet" // netconfig.h:93:1: + NC_INET6 = "inet6" // netconfig.h:94:1: + NC_KDAPL = "kdapl" // netconfig.h:139:1: + NC_KVIPL = "kvipl" // netconfig.h:137:1: + NC_LAT = "lat" // netconfig.h:106:1: + NC_LOOPBACK = "loopback" // netconfig.h:92:1: + NC_NBS = "nbs" // netconfig.h:99:1: + NC_NIT = "nit" // netconfig.h:109:1: + NC_NOFLAG = 00 // netconfig.h:83:1: + NC_NOPROTO = "-" // netconfig.h:129:1: + NC_NOPROTOFMLY = "-" // netconfig.h:91:1: + NC_NS = "ns" // netconfig.h:98:1: + NC_OSI = "osi" // netconfig.h:111:1: + NC_OSINET = "osinet" // netconfig.h:113:1: + NC_PUP = "pup" // netconfig.h:96:1: + NC_RDMA = "rdma" // netconfig.h:123:1: + NC_SNA = "sna" // netconfig.h:103:1: + NC_TCP = "tcp" // netconfig.h:130:1: + NC_TPI_CLTS = 1 // netconfig.h:65:1: + NC_TPI_COTS = 2 // netconfig.h:66:1: + NC_TPI_COTS_ORD = 3 // netconfig.h:67:1: + NC_TPI_RAW = 4 // netconfig.h:68:1: + NC_TPI_RDMA = 5 // netconfig.h:77:1: + NC_UDP = "udp" // netconfig.h:131:1: + NC_VISIBLE = 01 // netconfig.h:84:1: + NC_X25 = "x25" // netconfig.h:112:1: + NETCONFIG = "/etc/netconfig" // netconfig.h:41:1: + NETDB_INTERNAL = -1 // netdb.h:390:1: + NETDB_SUCCESS = 0 // netdb.h:391:1: + NETPATH = "NETPATH" // netconfig.h:42:1: + NGROUPS_MAX_DEFAULT = 16 // param.h:148:1: + NGROUPS_OLDMAX = 32 // param.h:143:1: + NGROUPS_UMAX = 1024 // param.h:142:1: + NGROUPS_UMIN = 0 // param.h:141:1: + NI_DGRAM = 0x0010 // netdb.h:171:1: + NI_MAXHOST = 1025 // netdb.h:179:1: + NI_MAXSERV = 32 // netdb.h:180:1: + NI_NAMEREQD = 0x0004 // netdb.h:169:1: + NI_NOFQDN = 0x0001 // netdb.h:167:1: + NI_NUMERICHOST = 0x0002 // netdb.h:168:1: + NI_NUMERICSCOPE = 0x0040 // netdb.h:176:1: + NI_NUMERICSERV = 0x0008 // netdb.h:170:1: + NI_WITHSCOPEID = 0x0020 // netdb.h:175:1: + NMOUNT = 40 // param.h:130:1: + NOFILE = 20 // param.h:132:1: + NO_ADDRESS = 4 // netdb.h:387:1: + NO_DATA = 4 // netdb.h:384:1: + NO_RECOVERY = 3 // netdb.h:383:1: + NZERO = 20 // param.h:153:1: + PF_802 = 18 // socket.h:338:1: + PF_APPLETALK = 16 // socket.h:336:1: + PF_CCITT = 10 // socket.h:330:1: + PF_CHAOS = 5 // socket.h:325:1: + PF_DATAKIT = 9 // socket.h:329:1: + PF_DECnet = 12 // socket.h:332:1: + PF_DLI = 13 // socket.h:333:1: + PF_ECMA = 8 // socket.h:328:1: + PF_FILE = 1 // socket.h:321:1: + PF_GOSIP = 22 // socket.h:342:1: + PF_HYLINK = 15 // socket.h:335:1: + PF_IMPLINK = 3 // socket.h:323:1: + PF_INET = 2 // socket.h:322:1: + PF_INET6 = 26 // socket.h:346:1: + PF_INET_OFFLOAD = 30 // socket.h:350:1: + PF_IPX = 23 // socket.h:343:1: + PF_KEY = 27 // socket.h:347:1: + PF_LAT = 14 // socket.h:334:1: + PF_LINK = 25 // socket.h:345:1: + PF_LOCAL = 1 // socket.h:320:1: + PF_LX_NETLINK = 33 // socket.h:353:1: + PF_MAX = 33 // socket.h:355:1: + PF_NBS = 7 // socket.h:327:1: + PF_NCA = 28 // socket.h:348:1: + PF_NIT = 17 // socket.h:337:1: + PF_NS = 6 // socket.h:326:1: + PF_OSI = 19 // socket.h:339:1: + PF_OSINET = 21 // socket.h:341:1: + PF_PACKET = 32 // socket.h:352:1: + PF_POLICY = 29 // socket.h:349:1: + PF_PUP = 4 // socket.h:324:1: + PF_ROUTE = 24 // socket.h:344:1: + PF_SNA = 11 // socket.h:331:1: + PF_TRILL = 31 // socket.h:351:1: + PF_UNIX = 1 // socket.h:319:1: + PF_UNSPEC = 0 // socket.h:318:1: + PF_X25 = 20 // socket.h:340:1: + PIPE_BUF = 5120 // param.h:221:1: + PIPE_MAX = 5120 // param.h:225:1: + POLLERR = 0x0008 // poll.h:74:1: + POLLET = 0x2000 // poll.h:84:1: + POLLHUP = 0x0010 // poll.h:75:1: + POLLIN = 0x0001 // poll.h:59:1: + POLLNORM = 64 // poll.h:68:1: + POLLNVAL = 0x0020 // poll.h:76:1: + POLLONESHOT = 0x1000 // poll.h:83:1: + POLLOUT = 0x0004 // poll.h:61:1: + POLLPRI = 0x0002 // poll.h:60:1: + POLLRDBAND = 0x0080 // poll.h:64:1: + POLLRDHUP = 0x4000 // poll.h:66:1: + POLLRDNORM = 0x0040 // poll.h:62:1: + POLLREMOVE = 0x0800 // poll.h:82:1: + POLLWRBAND = 0x0100 // poll.h:65:1: + POLLWRNORM = 4 // poll.h:63:1: + PREMOTE = 39 // param.h:185:1: + PROTO_SDP = 257 // in.h:185:1: + P_MYID = -1 // types.h:632:1: + REG_LABEL_BP = 2 // machtypes.h:44:1: + REG_LABEL_MAX = 8 // machtypes.h:51:1: + REG_LABEL_PC = 0 // machtypes.h:42:1: + REG_LABEL_R12 = 4 // machtypes.h:47:1: + REG_LABEL_R13 = 5 // machtypes.h:48:1: + REG_LABEL_R14 = 6 // machtypes.h:49:1: + REG_LABEL_R15 = 7 // machtypes.h:50:1: + REG_LABEL_RBX = 3 // machtypes.h:46:1: + REG_LABEL_SP = 1 // machtypes.h:43:1: + SCM_RIGHTS = 0x1010 // socket.h:197:1: + SCM_TIMESTAMP = 4115 // socket.h:201:1: + SCM_UCRED = 0x1012 // socket.h:199:1: + SCOPE_DELIMITER = 37 // netdb.h:187:1: + SCTRSHFT = 9 // param.h:168:1: + SEC = 1 // time.h:244:1: + SHUT_RD = 0 // socket.h:458:1: + SHUT_RDWR = 2 // socket.h:460:1: + SHUT_WR = 1 // socket.h:459:1: + SOCK_CLOEXEC = 0x080000 // socket.h:127:1: + SOCK_DGRAM = 1 // socket.h:113:1: + SOCK_NDELAY = 0x200000 // socket.h:129:1: + SOCK_NONBLOCK = 0x100000 // socket.h:128:1: + SOCK_RAW = 4 // socket.h:114:1: + SOCK_RDM = 5 // socket.h:120:1: + SOCK_SEQPACKET = 6 // socket.h:121:1: + SOCK_STREAM = 2 // socket.h:112:1: + SOCK_TYPE_MASK = 0xffff // socket.h:122:1: + SOL_FILTER = 0xfffc // socket.h:267:1: + SOL_PACKET = 0xfffd // socket.h:266:1: + SOL_ROUTE = 0xfffe // socket.h:264:1: + SOL_SOCKET = 0xffff // socket.h:262:1: + SOMAXCONN = 128 // socket.h:360:1: + SO_ACCEPTCONN = 0x0002 // socket.h:135:1: + SO_ALLZONES = 0x1014 // socket.h:202:1: + SO_ANON_MLP = 0x100a // socket.h:191:1: + SO_ATTACH_FILTER = 0x40000001 // socket.h:157:1: + SO_BROADCAST = 0x0020 // socket.h:139:1: + SO_DEBUG = 0x0001 // socket.h:134:1: + SO_DETACH_FILTER = 0x40000002 // socket.h:158:1: + SO_DGRAM_ERRIND = 0x0200 // socket.h:143:1: + SO_DOMAIN = 0x100c // socket.h:193:1: + SO_DONTLINGER = -129 // socket.h:177:1: + SO_DONTROUTE = 0x0010 // socket.h:138:1: + SO_ERROR = 0x1007 // socket.h:188:1: + SO_EXCLBIND = 0x1015 // socket.h:203:1: + SO_KEEPALIVE = 0x0008 // socket.h:137:1: + SO_LINGER = 0x0080 // socket.h:141:1: + SO_MAC_EXEMPT = 0x100b // socket.h:192:1: + SO_MAC_IMPLICIT = 0x1016 // socket.h:204:1: + SO_OOBINLINE = 0x0100 // socket.h:142:1: + SO_PROTOTYPE = 0x1009 // socket.h:190:1: + SO_RCVBUF = 0x1002 // socket.h:183:1: + SO_RCVLOWAT = 0x1004 // socket.h:185:1: + SO_RCVPSH = 0x100d // socket.h:194:1: + SO_RCVTIMEO = 0x1006 // socket.h:187:1: + SO_RECVUCRED = 0x0400 // socket.h:144:1: + SO_REUSEADDR = 0x0004 // socket.h:136:1: + SO_SECATTR = 0x1011 // socket.h:198:1: + SO_SNDBUF = 0x1001 // socket.h:182:1: + SO_SNDLOWAT = 0x1003 // socket.h:184:1: + SO_SNDTIMEO = 0x1005 // socket.h:186:1: + SO_TIMESTAMP = 0x1013 // socket.h:200:1: + SO_TYPE = 0x1008 // socket.h:189:1: + SO_USELOOPBACK = 0x0040 // socket.h:140:1: + SO_VRRP = 0x1017 // socket.h:205:1: + SYSNAME = 9 // param.h:184:1: + TIMER_ABSTIME = 0x1 // time_impl.h:134:1: + TIMER_RELTIME = 0x0 // time_impl.h:133:1: + TIME_UTC = 0x1 // time.h:306:1: + TRY_AGAIN = 2 // netdb.h:382:1: + TYPICALMAXPATHLEN = 64 // param.h:200:1: + UBSIZE = 512 // param.h:167:1: + UID_DLADM = 15 // param.h:98:1: + UID_NETADM = 16 // param.h:99:1: + UID_NOACCESS = 60002 // param.h:101:1: + UID_NOBODY = 60001 // param.h:94:1: + UID_UNKNOWN = 96 // param.h:96:1: + UIOA_ALLOC = 0x0001 // uio.h:194:1: + UIOA_CLR = -16 // uio.h:199:1: + UIOA_ENABLED = 0x0004 // uio.h:196:1: + UIOA_FINI = 0x0008 // uio.h:197:1: + UIOA_INIT = 0x0002 // uio.h:195:1: + UIOA_IOV_MAX = 16 // uio.h:112:1: + UIOA_POLL = 0x0010 // uio.h:201:1: + UIO_ASYNC = 0x0002 // uio.h:237:1: + UIO_COPY_CACHED = 0x0001 // uio.h:235:1: + UIO_COPY_DEFAULT = 0x0000 // uio.h:234:1: + UIO_XUIO = 0x0004 // uio.h:238:1: + X_ACL_ACE_ENABLED = 0x2 // unistd.h:349:1: + X_ACL_ACLENT_ENABLED = 0x1 // unistd.h:348:1: + X_ALIGNMENT_REQUIRED = 1 // isa_defs.h:262:1: + X_BIT_FIELDS_LTOH = 0 // isa_defs.h:245:1: + X_BOOL_ALIGNMENT = 1 // isa_defs.h:248:1: + X_CASE_INSENSITIVE = 0x2 // unistd.h:342:1: + X_CASE_SENSITIVE = 0x1 // unistd.h:341:1: + X_CHAR_ALIGNMENT = 1 // isa_defs.h:249:1: + X_CHAR_IS_SIGNED = 0 // isa_defs.h:247:1: + X_CLOCKID_T = 0 // types.h:568:1: + X_CLOCK_T = 0 // types.h:563:1: + X_COND_MAGIC = 0x4356 // types.h:426:1: + X_CS_LFS64_CFLAGS = 72 // unistd.h:61:1: + X_CS_LFS64_LDFLAGS = 73 // unistd.h:62:1: + X_CS_LFS64_LIBS = 74 // unistd.h:63:1: + X_CS_LFS64_LINTFLAGS = 75 // unistd.h:64:1: + X_CS_LFS_CFLAGS = 68 // unistd.h:56:1: + X_CS_LFS_LDFLAGS = 69 // unistd.h:57:1: + X_CS_LFS_LIBS = 70 // unistd.h:58:1: + X_CS_LFS_LINTFLAGS = 71 // unistd.h:59:1: + X_CS_PATH = 65 // unistd.h:50:1: + X_CS_POSIX_V6_ILP32_OFF32_CFLAGS = 800 // unistd.h:85:1: + X_CS_POSIX_V6_ILP32_OFF32_LDFLAGS = 801 // unistd.h:86:1: + X_CS_POSIX_V6_ILP32_OFF32_LIBS = 802 // unistd.h:87:1: + X_CS_POSIX_V6_ILP32_OFF32_LINTFLAGS = 803 // unistd.h:88:1: + X_CS_POSIX_V6_ILP32_OFFBIG_CFLAGS = 804 // unistd.h:89:1: + X_CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS = 805 // unistd.h:90:1: + X_CS_POSIX_V6_ILP32_OFFBIG_LIBS = 806 // unistd.h:91:1: + X_CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS = 807 // unistd.h:92:1: + X_CS_POSIX_V6_LP64_OFF64_CFLAGS = 808 // unistd.h:93:1: + X_CS_POSIX_V6_LP64_OFF64_LDFLAGS = 809 // unistd.h:94:1: + X_CS_POSIX_V6_LP64_OFF64_LIBS = 810 // unistd.h:95:1: + X_CS_POSIX_V6_LP64_OFF64_LINTFLAGS = 811 // unistd.h:96:1: + X_CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS = 812 // unistd.h:97:1: + X_CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS = 813 // unistd.h:98:1: + X_CS_POSIX_V6_LPBIG_OFFBIG_LIBS = 814 // unistd.h:99:1: + X_CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS = 815 // unistd.h:100:1: + X_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS = 816 // unistd.h:101:1: + X_CS_XBS5_ILP32_OFF32_CFLAGS = 700 // unistd.h:67:1: + X_CS_XBS5_ILP32_OFF32_LDFLAGS = 701 // unistd.h:68:1: + X_CS_XBS5_ILP32_OFF32_LIBS = 702 // unistd.h:69:1: + X_CS_XBS5_ILP32_OFF32_LINTFLAGS = 703 // unistd.h:70:1: + X_CS_XBS5_ILP32_OFFBIG_CFLAGS = 705 // unistd.h:71:1: + X_CS_XBS5_ILP32_OFFBIG_LDFLAGS = 706 // unistd.h:72:1: + X_CS_XBS5_ILP32_OFFBIG_LIBS = 707 // unistd.h:73:1: + X_CS_XBS5_ILP32_OFFBIG_LINTFLAGS = 708 // unistd.h:74:1: + X_CS_XBS5_LP64_OFF64_CFLAGS = 709 // unistd.h:75:1: + X_CS_XBS5_LP64_OFF64_LDFLAGS = 710 // unistd.h:76:1: + X_CS_XBS5_LP64_OFF64_LIBS = 711 // unistd.h:77:1: + X_CS_XBS5_LP64_OFF64_LINTFLAGS = 712 // unistd.h:78:1: + X_CS_XBS5_LPBIG_OFFBIG_CFLAGS = 713 // unistd.h:79:1: + X_CS_XBS5_LPBIG_OFFBIG_LDFLAGS = 714 // unistd.h:80:1: + X_CS_XBS5_LPBIG_OFFBIG_LIBS = 715 // unistd.h:81:1: + X_CS_XBS5_LPBIG_OFFBIG_LINTFLAGS = 716 // unistd.h:82:1: + X_DMA_USES_PHYSADDR = 0 // isa_defs.h:281:1: + X_DONT_USE_1275_GENERIC_NAMES = 0 // isa_defs.h:287:1: + X_DOUBLE_ALIGNMENT = 8 // isa_defs.h:256:1: + X_DOUBLE_COMPLEX_ALIGNMENT = 8 // isa_defs.h:257:1: + X_DTRACE_VERSION = 1 // feature_tests.h:490:1: + X_FILE_OFFSET_BITS = 64 // :25:1: + X_FIRMWARE_NEEDS_FDISK = 0 // isa_defs.h:282:1: + X_FLOAT_ALIGNMENT = 4 // isa_defs.h:252:1: + X_FLOAT_COMPLEX_ALIGNMENT = 4 // isa_defs.h:253:1: + X_HAVE_CPUID_INSN = 0 // isa_defs.h:288:1: + X_IEEE_754 = 0 // isa_defs.h:246:1: + X_INT64_TYPE = 0 // int_types.h:82:1: + X_INT_ALIGNMENT = 4 // isa_defs.h:251:1: + X_IN_ADDR_T = 0 // byteorder.h:78:1: + X_IN_PORT_T = 0 // byteorder.h:73:1: + X_IPADDR_T = 0 // in.h:98:1: + X_ISO_CPP_14882_1998 = 0 // feature_tests.h:466:1: + X_ISO_C_9899_1999 = 0 // feature_tests.h:472:1: + X_ISO_C_9899_2011 = 0 // feature_tests.h:478:1: + X_ISO_TIME_ISO_H = 0 // time_iso.h:46:1: + X_LARGEFILE64_SOURCE = 1 // feature_tests.h:231:1: + X_LARGEFILE_SOURCE = 1 // feature_tests.h:235:1: + X_LITTLE_ENDIAN = 0 // isa_defs.h:242:1: + X_LOCALE_T = 0 // time.h:291:1: + X_LONGLONG_TYPE = 0 // feature_tests.h:412:1: + X_LONG_ALIGNMENT = 8 // isa_defs.h:254:1: + X_LONG_DOUBLE_ALIGNMENT = 16 // isa_defs.h:258:1: + X_LONG_DOUBLE_COMPLEX_ALIGNMENT = 16 // isa_defs.h:259:1: + X_LONG_LONG_ALIGNMENT = 8 // isa_defs.h:255:1: + X_LONG_LONG_ALIGNMENT_32 = 4 // isa_defs.h:268:1: + X_LONG_LONG_LTOH = 0 // isa_defs.h:244:1: + X_LP64 = 1 // :286:1: + X_MAX_ALIGNMENT = 16 // isa_defs.h:261:1: + X_MULTI_DATAMODEL = 0 // isa_defs.h:279:1: + X_MUTEX_MAGIC = 0x4d58 // types.h:424:1: + X_NBBY = 8 // select.h:100:1: + X_NETDB_H = 0 // netdb.h:74:1: + X_NETINET_IN_H = 0 // in.h:33:1: + X_NET_IF_DL_H = 0 // if_dl.h:39:1: + X_NORETURN_KYWD = 0 // feature_tests.h:448:1: + X_OFF_T = 0 // types.h:142:1: + X_OLD_IPV6_RECVDSTOPTS = 0x15 // in.h:1247:1: + X_PATH_HEQUIV = "/etc/hosts.equiv" // netdb.h:87:1: + X_PATH_HOSTS = "/etc/hosts" // netdb.h:88:1: + X_PATH_IPNODES = "/etc/inet/ipnodes" // netdb.h:89:1: + X_PATH_IPSECALGS = "/etc/inet/ipsecalgs" // netdb.h:90:1: + X_PATH_NETMASKS = "/etc/netmasks" // netdb.h:91:1: + X_PATH_NETWORKS = "/etc/networks" // netdb.h:92:1: + X_PATH_PROTOCOLS = "/etc/protocols" // netdb.h:93:1: + X_PATH_SERVICES = "/etc/services" // netdb.h:94:1: + X_PC_2_SYMLINKS = 19 // unistd.h:309:1: + X_PC_ACCESS_FILTERING = 25 // unistd.h:315:1: + X_PC_ACL_ENABLED = 20 // unistd.h:310:1: + X_PC_ALLOC_SIZE_MIN = 13 // unistd.h:303:1: + X_PC_ASYNC_IO = 10 // unistd.h:299:1: + X_PC_CASE_BEHAVIOR = 22 // unistd.h:312:1: + X_PC_CHOWN_RESTRICTED = 9 // unistd.h:297:1: + X_PC_FILESIZEBITS = 67 // unistd.h:325:1: + X_PC_LAST = 101 // unistd.h:336:1: + X_PC_LINK_MAX = 1 // unistd.h:289:1: + X_PC_MAX_CANON = 2 // unistd.h:290:1: + X_PC_MAX_INPUT = 3 // unistd.h:291:1: + X_PC_MIN_HOLE_SIZE = 21 // unistd.h:311:1: + X_PC_NAME_MAX = 4 // unistd.h:292:1: + X_PC_NO_TRUNC = 7 // unistd.h:295:1: + X_PC_PATH_MAX = 5 // unistd.h:293:1: + X_PC_PIPE_BUF = 6 // unistd.h:294:1: + X_PC_PRIO_IO = 11 // unistd.h:300:1: + X_PC_REC_INCR_XFER_SIZE = 14 // unistd.h:304:1: + X_PC_REC_MAX_XFER_SIZE = 15 // unistd.h:305:1: + X_PC_REC_MIN_XFER_SIZE = 16 // unistd.h:306:1: + X_PC_REC_XFER_ALIGN = 17 // unistd.h:307:1: + X_PC_SATTR_ENABLED = 23 // unistd.h:313:1: + X_PC_SATTR_EXISTS = 24 // unistd.h:314:1: + X_PC_SYMLINK_MAX = 18 // unistd.h:308:1: + X_PC_SYNC_IO = 12 // unistd.h:301:1: + X_PC_TIMESTAMP_RESOLUTION = 26 // unistd.h:317:1: + X_PC_VDISABLE = 8 // unistd.h:296:1: + X_PC_XATTR_ENABLED = 100 // unistd.h:330:1: + X_PC_XATTR_EXISTS = 101 // unistd.h:331:1: + X_POINTER_ALIGNMENT = 8 // isa_defs.h:260:1: + X_POSIX2_CHAR_TERM = 1 // unistd.h:391:1: + X_POSIX2_C_BIND = 1 // unistd.h:401:1: + X_POSIX2_C_DEV = 1 // unistd.h:402:1: + X_POSIX2_C_VERSION = 199209 // unistd.h:376:1: + X_POSIX2_FORT_RUN = 1 // unistd.h:403:1: + X_POSIX2_LOCALEDEF = 1 // unistd.h:404:1: + X_POSIX2_SW_DEV = 1 // unistd.h:405:1: + X_POSIX2_UPE = 1 // unistd.h:406:1: + X_POSIX2_VERSION = 199209 // unistd.h:363:1: + X_POSIX_REGEXP = 1 // unistd.h:410:1: + X_POSIX_SHELL = 1 // unistd.h:411:1: + X_POSIX_VDISABLE = 0 // param.h:70:1: + X_POSIX_VERSION = 199506 // unistd.h:355:1: + X_PSM_MODULES = 0 // isa_defs.h:284:1: + X_PTRDIFF_T = 0 // types.h:112:1: + X_RESTRICT_KYWD = 0 // feature_tests.h:435:1: + X_RTC_CONFIG = 0 // isa_defs.h:285:1: + X_RWL_MAGIC = 0x5257 // types.h:427:1: + X_SA_FAMILY_T = 0 // socket_impl.h:42:1: + X_SC_2_CHAR_TERM = 66 // unistd.h:175:1: + X_SC_2_C_BIND = 45 // unistd.h:153:1: + X_SC_2_C_DEV = 46 // unistd.h:154:1: + X_SC_2_C_VERSION = 47 // unistd.h:155:1: + X_SC_2_FORT_DEV = 48 // unistd.h:156:1: + X_SC_2_FORT_RUN = 49 // unistd.h:157:1: + X_SC_2_LOCALEDEF = 50 // unistd.h:158:1: + X_SC_2_PBS = 724 // unistd.h:246:1: + X_SC_2_PBS_ACCOUNTING = 725 // unistd.h:247:1: + X_SC_2_PBS_CHECKPOINT = 726 // unistd.h:248:1: + X_SC_2_PBS_LOCATE = 728 // unistd.h:249:1: + X_SC_2_PBS_MESSAGE = 729 // unistd.h:250:1: + X_SC_2_PBS_TRACK = 730 // unistd.h:251:1: + X_SC_2_SW_DEV = 51 // unistd.h:159:1: + X_SC_2_UPE = 52 // unistd.h:160:1: + X_SC_2_VERSION = 53 // unistd.h:161:1: + X_SC_ADVISORY_INFO = 731 // unistd.h:252:1: + X_SC_AIO_LISTIO_MAX = 18 // unistd.h:125:1: + X_SC_AIO_MAX = 19 // unistd.h:126:1: + X_SC_AIO_PRIO_DELTA_MAX = 20 // unistd.h:127:1: + X_SC_ARG_MAX = 1 // unistd.h:106:1: + X_SC_ASYNCHRONOUS_IO = 21 // unistd.h:128:1: + X_SC_ATEXIT_MAX = 76 // unistd.h:179:1: + X_SC_AVPHYS_PAGES = 501 // unistd.h:190:1: + X_SC_BARRIERS = 732 // unistd.h:253:1: + X_SC_BC_BASE_MAX = 54 // unistd.h:162:1: + X_SC_BC_DIM_MAX = 55 // unistd.h:163:1: + X_SC_BC_SCALE_MAX = 56 // unistd.h:164:1: + X_SC_BC_STRING_MAX = 57 // unistd.h:165:1: + X_SC_CHILD_MAX = 2 // unistd.h:107:1: + X_SC_CLK_TCK = 3 // unistd.h:108:1: + X_SC_CLOCK_SELECTION = 733 // unistd.h:254:1: + X_SC_COHER_BLKSZ = 503 // unistd.h:196:1: + X_SC_COLL_WEIGHTS_MAX = 58 // unistd.h:166:1: + X_SC_CPUID_MAX = 517 // unistd.h:211:1: + X_SC_CPUTIME = 734 // unistd.h:255:1: + X_SC_DCACHE_ASSOC = 513 // unistd.h:206:1: + X_SC_DCACHE_BLKSZ = 510 // unistd.h:203:1: + X_SC_DCACHE_LINESZ = 508 // unistd.h:201:1: + X_SC_DCACHE_SZ = 506 // unistd.h:199:1: + X_SC_DCACHE_TBLKSZ = 511 // unistd.h:204:1: + X_SC_DELAYTIMER_MAX = 22 // unistd.h:129:1: + X_SC_EPHID_MAX = 518 // unistd.h:212:1: + X_SC_EXPR_NEST_MAX = 59 // unistd.h:167:1: + X_SC_FSYNC = 23 // unistd.h:130:1: + X_SC_GETGR_R_SIZE_MAX = 569 // unistd.h:220:1: + X_SC_GETPW_R_SIZE_MAX = 570 // unistd.h:221:1: + X_SC_HOST_NAME_MAX = 735 // unistd.h:256:1: + X_SC_ICACHE_ASSOC = 512 // unistd.h:205:1: + X_SC_ICACHE_BLKSZ = 509 // unistd.h:202:1: + X_SC_ICACHE_LINESZ = 507 // unistd.h:200:1: + X_SC_ICACHE_SZ = 505 // unistd.h:198:1: + X_SC_IOV_MAX = 77 // unistd.h:180:1: + X_SC_IPV6 = 762 // unistd.h:283:1: + X_SC_JOB_CONTROL = 6 // unistd.h:111:1: + X_SC_LINE_MAX = 60 // unistd.h:168:1: + X_SC_LOGIN_NAME_MAX = 571 // unistd.h:222:1: + X_SC_LOGNAME_MAX = 10 // unistd.h:116:1: + X_SC_MAPPED_FILES = 24 // unistd.h:131:1: + X_SC_MAXPID = 514 // unistd.h:208:1: + X_SC_MEMLOCK = 25 // unistd.h:132:1: + X_SC_MEMLOCK_RANGE = 26 // unistd.h:133:1: + X_SC_MEMORY_PROTECTION = 27 // unistd.h:134:1: + X_SC_MESSAGE_PASSING = 28 // unistd.h:135:1: + X_SC_MONOTONIC_CLOCK = 736 // unistd.h:257:1: + X_SC_MQ_OPEN_MAX = 29 // unistd.h:136:1: + X_SC_MQ_PRIO_MAX = 30 // unistd.h:137:1: + X_SC_NGROUPS_MAX = 4 // unistd.h:109:1: + X_SC_NPROCESSORS_CONF = 14 // unistd.h:120:1: + X_SC_NPROCESSORS_MAX = 516 // unistd.h:210:1: + X_SC_NPROCESSORS_ONLN = 15 // unistd.h:121:1: + X_SC_OPEN_MAX = 5 // unistd.h:110:1: + X_SC_PAGESIZE = 11 // unistd.h:117:1: + X_SC_PAGE_SIZE = 11 // unistd.h:182:1: + X_SC_PASS_MAX = 9 // unistd.h:115:1: + X_SC_PHYS_PAGES = 500 // unistd.h:189:1: + X_SC_PRIORITIZED_IO = 31 // unistd.h:138:1: + X_SC_PRIORITY_SCHEDULING = 32 // unistd.h:139:1: + X_SC_RAW_SOCKETS = 763 // unistd.h:284:1: + X_SC_READER_WRITER_LOCKS = 737 // unistd.h:258:1: + X_SC_REALTIME_SIGNALS = 33 // unistd.h:140:1: + X_SC_REGEXP = 738 // unistd.h:259:1: + X_SC_RE_DUP_MAX = 61 // unistd.h:169:1: + X_SC_RTSIG_MAX = 34 // unistd.h:141:1: + X_SC_SAVED_IDS = 7 // unistd.h:112:1: + X_SC_SEMAPHORES = 35 // unistd.h:142:1: + X_SC_SEM_NSEMS_MAX = 36 // unistd.h:143:1: + X_SC_SEM_VALUE_MAX = 37 // unistd.h:144:1: + X_SC_SHARED_MEMORY_OBJECTS = 38 // unistd.h:145:1: + X_SC_SHELL = 739 // unistd.h:260:1: + X_SC_SIGQUEUE_MAX = 39 // unistd.h:146:1: + X_SC_SIGRT_MAX = 41 // unistd.h:148:1: + X_SC_SIGRT_MIN = 40 // unistd.h:147:1: + X_SC_SPAWN = 740 // unistd.h:261:1: + X_SC_SPIN_LOCKS = 741 // unistd.h:262:1: + X_SC_SPLIT_CACHE = 504 // unistd.h:197:1: + X_SC_SPORADIC_SERVER = 742 // unistd.h:263:1: + X_SC_SS_REPL_MAX = 743 // unistd.h:264:1: + X_SC_STACK_PROT = 515 // unistd.h:209:1: + X_SC_STREAM_MAX = 16 // unistd.h:122:1: + X_SC_SYMLOOP_MAX = 744 // unistd.h:265:1: + X_SC_SYNCHRONIZED_IO = 42 // unistd.h:149:1: + X_SC_THREADS = 576 // unistd.h:227:1: + X_SC_THREAD_ATTR_STACKADDR = 577 // unistd.h:228:1: + X_SC_THREAD_ATTR_STACKSIZE = 578 // unistd.h:229:1: + X_SC_THREAD_CPUTIME = 745 // unistd.h:266:1: + X_SC_THREAD_DESTRUCTOR_ITERATIONS = 568 // unistd.h:219:1: + X_SC_THREAD_KEYS_MAX = 572 // unistd.h:223:1: + X_SC_THREAD_PRIORITY_SCHEDULING = 579 // unistd.h:230:1: + X_SC_THREAD_PRIO_INHERIT = 580 // unistd.h:231:1: + X_SC_THREAD_PRIO_PROTECT = 581 // unistd.h:232:1: + X_SC_THREAD_PROCESS_SHARED = 582 // unistd.h:233:1: + X_SC_THREAD_SAFE_FUNCTIONS = 583 // unistd.h:234:1: + X_SC_THREAD_SPORADIC_SERVER = 746 // unistd.h:267:1: + X_SC_THREAD_STACK_MIN = 573 // unistd.h:224:1: + X_SC_THREAD_THREADS_MAX = 574 // unistd.h:225:1: + X_SC_TIMEOUTS = 747 // unistd.h:268:1: + X_SC_TIMERS = 43 // unistd.h:150:1: + X_SC_TIMER_MAX = 44 // unistd.h:151:1: + X_SC_TRACE = 748 // unistd.h:269:1: + X_SC_TRACE_EVENT_FILTER = 749 // unistd.h:270:1: + X_SC_TRACE_EVENT_NAME_MAX = 750 // unistd.h:271:1: + X_SC_TRACE_INHERIT = 751 // unistd.h:272:1: + X_SC_TRACE_LOG = 752 // unistd.h:273:1: + X_SC_TRACE_NAME_MAX = 753 // unistd.h:274:1: + X_SC_TRACE_SYS_MAX = 754 // unistd.h:275:1: + X_SC_TRACE_USER_EVENT_MAX = 755 // unistd.h:276:1: + X_SC_TTY_NAME_MAX = 575 // unistd.h:226:1: + X_SC_TYPED_MEMORY_OBJECTS = 756 // unistd.h:277:1: + X_SC_TZNAME_MAX = 17 // unistd.h:123:1: + X_SC_T_IOV_MAX = 79 // unistd.h:186:1: + X_SC_UADDR_MAX = 519 // unistd.h:213:1: + X_SC_V6_ILP32_OFF32 = 757 // unistd.h:278:1: + X_SC_V6_ILP32_OFFBIG = 758 // unistd.h:279:1: + X_SC_V6_LP64_OFF64 = 759 // unistd.h:280:1: + X_SC_V6_LPBIG_OFFBIG = 760 // unistd.h:281:1: + X_SC_VERSION = 8 // unistd.h:113:1: + X_SC_XBS5_ILP32_OFF32 = 720 // unistd.h:240:1: + X_SC_XBS5_ILP32_OFFBIG = 721 // unistd.h:241:1: + X_SC_XBS5_LP64_OFF64 = 722 // unistd.h:242:1: + X_SC_XBS5_LPBIG_OFFBIG = 723 // unistd.h:243:1: + X_SC_XOPEN_CRYPT = 62 // unistd.h:170:1: + X_SC_XOPEN_ENH_I18N = 63 // unistd.h:171:1: + X_SC_XOPEN_LEGACY = 717 // unistd.h:237:1: + X_SC_XOPEN_REALTIME = 718 // unistd.h:238:1: + X_SC_XOPEN_REALTIME_THREADS = 719 // unistd.h:239:1: + X_SC_XOPEN_SHM = 64 // unistd.h:172:1: + X_SC_XOPEN_STREAMS = 761 // unistd.h:282:1: + X_SC_XOPEN_UNIX = 78 // unistd.h:181:1: + X_SC_XOPEN_VERSION = 12 // unistd.h:118:1: + X_SC_XOPEN_XCU_VERSION = 67 // unistd.h:176:1: + X_SEMA_MAGIC = 0x534d // types.h:425:1: + X_SHORT_ALIGNMENT = 2 // isa_defs.h:250:1: + X_SIGEVENT = 0 // time.h:132:1: + X_SIGSET_T = 0 // select.h:73:1: + X_SIGVAL = 0 // time.h:124:1: + X_SIZE_T = 0 // types.h:540:1: + X_SOCKLEN_T = 0 // in.h:48:1: + X_SOFT_HOSTID = 0 // isa_defs.h:286:1: + X_SSIZE_T = 0 // types.h:549:1: + X_SS_MAXSIZE = 256 // socket_impl.h:70:1: + X_STACK_GROWS_DOWNWARD = 0 // isa_defs.h:243:1: + X_STDC_C11 = 0 // feature_tests.h:165:1: + X_STDC_C99 = 0 // feature_tests.h:169:1: + X_SUNOS_VTOC_16 = 0 // isa_defs.h:280:1: + X_SUSECONDS_T = 0 // types.h:343:1: + X_SYS_BYTEORDER_H = 0 // byteorder.h:41:1: + X_SYS_CCOMPILE_H = 0 // ccompile.h:32:1: + X_SYS_CRED_H = 0 // cred.h:35:1: + X_SYS_FEATURE_TESTS_H = 0 // feature_tests.h:41:1: + X_SYS_INT_TYPES_H = 0 // int_types.h:30:1: + X_SYS_ISA_DEFS_H = 0 // isa_defs.h:30:1: + X_SYS_MACHTYPES_H = 0 // machtypes.h:27:1: + X_SYS_NETCONFIG_H = 0 // netconfig.h:35:1: + X_SYS_NULL_H = 0 // null.h:17:1: + X_SYS_PARAM_H = 0 // param.h:41:1: + X_SYS_POLL_H = 0 // poll.h:38:1: + X_SYS_SELECT_H = 0 // select.h:45:1: + X_SYS_SOCKET_H = 0 // socket.h:47:1: + X_SYS_SOCKET_IMPL_H = 0 // socket_impl.h:35:1: + X_SYS_TIME_H = 0 // time.h:27:1: + X_SYS_TIME_IMPL_H = 0 // time_impl.h:38:1: + X_SYS_TYPES_H = 0 // types.h:35:1: + X_SYS_UIO_H = 0 // uio.h:45:1: + X_SYS_UNISTD_H = 0 // unistd.h:40:1: + X_SYS_UN_H = 0 // un.h:39:1: + X_TIMER_T = 0 // types.h:573:1: + X_TIME_H = 0 // time.h:37:1: + X_TIME_T = 0 // types.h:558:1: + X_TTY_BUFSIZ = 2048 // param.h:75:1: + X_UID_T = 0 // types.h:400:1: + X_XOPEN_ENH_I18N = 1 // unistd.h:389:1: + X_XOPEN_REALTIME = 1 // unistd.h:388:1: + X_XOPEN_SHM = 1 // unistd.h:390:1: + X_XOPEN_STREAMS = 1 // unistd.h:412:1: + X_XOPEN_UNIX = 0 // unistd.h:382:1: + X_XOPEN_VERSION = 3 // feature_tests.h:392:1: + X_XOPEN_XCU_VERSION = 4 // unistd.h:385:1: + X_XOPEN_XPG3 = 0 // unistd.h:380:1: + X_XOPEN_XPG4 = 0 // unistd.h:381:1: + Sun = 1 // :172:1: + Unix = 1 // :175:1: +) + +// used for block sizes + +// The boolean_t type has had a varied amount of exposure over the years in +// terms of how its enumeration constants have been exposed. In particular, it +// originally used the __XOPEN_OR_POSIX macro to determine whether to prefix the +// B_TRUE and B_FALSE with an underscore. This check never included the +// question of if we were in a strict ANSI C environment or whether extensions +// were defined. +// +// Compilers such as clang started defaulting to always including an +// XOPEN_SOURCE declaration on behalf of users, but also noted __EXTENSIONS__. +// This would lead most software that had used the non-underscore versions to +// need it. As such, we have adjusted the non-strict XOPEN environment to retain +// its old behavior so as to minimize namespace pollution; however, we instead +// include both variants of the definitions in the generally visible version +// allowing software written in either world to hopefully end up in a good +// place. +// +// This isn't perfect, but should hopefully minimize the pain for folks actually +// trying to build software. +const ( /* types.h:215:1: */ + B_FALSE = 0 + B_TRUE = 1 + X_B_FALSE = 0 + X_B_TRUE = 1 +) + +// uio extensions +// +// PSARC 2009/478: Copy Reduction Interfaces +const ( /* uio.h:146:1: */ + UIOTYPE_ASYNCIO = 0 + UIOTYPE_ZEROCOPY = 1 + UIOTYPE_PEEKSIZE = 2 +) + +// I/O direction. +const ( /* uio.h:220:1: */ + UIO_READ = 0 + UIO_WRITE = 1 +) + +// Segment flag values. +const ( /* uio.h:93:1: */ + UIO_USERSPACE = 0 + UIO_SYSSPACE = 1 + UIO_USERISPACE = 2 +) + +type Ptrdiff_t = int64 /* :3:26 */ + +type Size_t = uint64 /* :9:23 */ + +type Wchar_t = int32 /* :15:24 */ + +type X__int128_t = struct { + Flo int64 + Fhi int64 +} /* :21:43 */ // must match modernc.org/mathutil.Int128 +type X__uint128_t = struct { + Flo uint64 + Fhi uint64 +} /* :22:44 */ // must match modernc.org/mathutil.Int128 + +type X__builtin_va_list = uintptr /* :46:14 */ +type X__float128 = float64 /* :47:21 */ + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// BIND 4.9.3: +// +// Copyright (c) 1980, 1983, 1988, 1993 +// The Regents of the University of California. All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// 1. Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// 2. Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer in the +// documentation and/or other materials provided with the distribution. +// 3. All advertising materials mentioning features or use of this software +// must display the following acknowledgement: +// This product includes software developed by the University of +// California, Berkeley and its contributors. +// 4. Neither the name of the University nor the names of its contributors +// may be used to endorse or promote products derived from this software +// without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +// SUCH DAMAGE. +// - +// Portions Copyright (c) 1993 by Digital Equipment Corporation. +// +// Permission to use, copy, modify, and distribute this software for any +// purpose with or without fee is hereby granted, provided that the above +// copyright notice and this permission notice appear in all copies, and that +// the name of Digital Equipment Corporation not be used in advertising or +// publicity pertaining to distribution of the document or software without +// specific, written prior permission. +// +// THE SOFTWARE IS PROVIDED "AS IS" AND DIGITAL EQUIPMENT CORP. DISCLAIMS ALL +// WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES +// OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL DIGITAL EQUIPMENT +// CORPORATION BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL +// DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR +// PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS +// ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS +// SOFTWARE. +// --Copyright-- +// +// End BIND 4.9.3 + +// Structures returned by network data base library. +// All addresses are supplied in host order, and +// returned in network order (suitable for use in system calls). + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2021 Oxide Computer Company + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2015 EveryCity Ltd. All rights reserved. +// Copyright 2019 Joyent, Inc. + +// This file contains definitions designed to enable different compilers +// to be used harmoniously on Solaris systems. + +// Allow for version tests for compiler bugs and features. + +// analogous to lint's PRINTFLIKEn + +// Handle the kernel printf routines that can take '%b' too + +// This one's pretty obvious -- the function never returns + +// The function is 'extern inline' and expects GNU C89 behaviour, not C99 +// behaviour. +// +// Should only be used on 'extern inline' definitions for GCC. + +// The function has control flow such that it may return multiple times (in +// the manner of setjmp or vfork) + +// This is an appropriate label for functions that do not +// modify their arguments, e.g. strlen() + +// This is a stronger form of __pure__. Can be used for functions +// that do not modify their arguments and don't depend on global +// memory. + +// This attribute, attached to a variable, means that the variable is meant to +// be possibly unused. GCC will not produce a warning for this variable. + +// Shorthand versions for readability + +// In release build, disable warnings about variables +// which are used only for debugging. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2016 Joyent, Inc. + +// This header file serves to group a set of well known defines and to +// set these for each instruction set architecture. These defines may +// be divided into two groups; characteristics of the processor and +// implementation choices for Solaris on a processor. +// +// Processor Characteristics: +// +// _LITTLE_ENDIAN / _BIG_ENDIAN: +// The natural byte order of the processor. A pointer to an int points +// to the least/most significant byte of that int. +// +// _STACK_GROWS_UPWARD / _STACK_GROWS_DOWNWARD: +// The processor specific direction of stack growth. A push onto the +// stack increases/decreases the stack pointer, so it stores data at +// successively higher/lower addresses. (Stackless machines ignored +// without regrets). +// +// _LONG_LONG_HTOL / _LONG_LONG_LTOH: +// A pointer to a long long points to the most/least significant long +// within that long long. +// +// _BIT_FIELDS_HTOL / _BIT_FIELDS_LTOH: +// The C compiler assigns bit fields from the high/low to the low/high end +// of an int (most to least significant vs. least to most significant). +// +// _IEEE_754: +// The processor (or supported implementations of the processor) +// supports the ieee-754 floating point standard. No other floating +// point standards are supported (or significant). Any other supported +// floating point formats are expected to be cased on the ISA processor +// symbol. +// +// _CHAR_IS_UNSIGNED / _CHAR_IS_SIGNED: +// The C Compiler implements objects of type `char' as `unsigned' or +// `signed' respectively. This is really an implementation choice of +// the compiler writer, but it is specified in the ABI and tends to +// be uniform across compilers for an instruction set architecture. +// Hence, it has the properties of a processor characteristic. +// +// _CHAR_ALIGNMENT / _SHORT_ALIGNMENT / _INT_ALIGNMENT / _LONG_ALIGNMENT / +// _LONG_LONG_ALIGNMENT / _DOUBLE_ALIGNMENT / _LONG_DOUBLE_ALIGNMENT / +// _POINTER_ALIGNMENT / _FLOAT_ALIGNMENT: +// The ABI defines alignment requirements of each of the primitive +// object types. Some, if not all, may be hardware requirements as +// well. The values are expressed in "byte-alignment" units. +// +// _MAX_ALIGNMENT: +// The most stringent alignment requirement as specified by the ABI. +// Equal to the maximum of all the above _XXX_ALIGNMENT values. +// +// _MAX_ALIGNMENT_TYPE: +// The name of the C type that has the value descried in _MAX_ALIGNMENT. +// +// _ALIGNMENT_REQUIRED: +// True or false (1 or 0) whether or not the hardware requires the ABI +// alignment. +// +// _LONG_LONG_ALIGNMENT_32 +// The 32-bit ABI supported by a 64-bit kernel may have different +// alignment requirements for primitive object types. The value of this +// identifier is expressed in "byte-alignment" units. +// +// _HAVE_CPUID_INSN +// This indicates that the architecture supports the 'cpuid' +// instruction as defined by Intel. (Intel allows other vendors +// to extend the instruction for their own purposes.) +// +// +// Implementation Choices: +// +// _ILP32 / _LP64: +// This specifies the compiler data type implementation as specified in +// the relevant ABI. The choice between these is strongly influenced +// by the underlying hardware, but is not absolutely tied to it. +// Currently only two data type models are supported: +// +// _ILP32: +// Int/Long/Pointer are 32 bits. This is the historical UNIX +// and Solaris implementation. Due to its historical standing, +// this is the default case. +// +// _LP64: +// Long/Pointer are 64 bits, Int is 32 bits. This is the chosen +// implementation for 64-bit ABIs such as SPARC V9. +// +// _I32LPx: +// A compilation environment where 'int' is 32-bit, and +// longs and pointers are simply the same size. +// +// In all cases, Char is 8 bits and Short is 16 bits. +// +// _SUNOS_VTOC_8 / _SUNOS_VTOC_16 / _SVR4_VTOC_16: +// This specifies the form of the disk VTOC (or label): +// +// _SUNOS_VTOC_8: +// This is a VTOC form which is upwardly compatible with the +// SunOS 4.x disk label and allows 8 partitions per disk. +// +// _SUNOS_VTOC_16: +// In this format the incore vtoc image matches the ondisk +// version. It allows 16 slices per disk, and is not +// compatible with the SunOS 4.x disk label. +// +// Note that these are not the only two VTOC forms possible and +// additional forms may be added. One possible form would be the +// SVr4 VTOC form. The symbol for that is reserved now, although +// it is not implemented. +// +// _SVR4_VTOC_16: +// This VTOC form is compatible with the System V Release 4 +// VTOC (as implemented on the SVr4 Intel and 3b ports) with +// 16 partitions per disk. +// +// +// _DMA_USES_PHYSADDR / _DMA_USES_VIRTADDR +// This describes the type of addresses used by system DMA: +// +// _DMA_USES_PHYSADDR: +// This type of DMA, used in the x86 implementation, +// requires physical addresses for DMA buffers. The 24-bit +// addresses used by some legacy boards is the source of the +// "low-memory" (<16MB) requirement for some devices using DMA. +// +// _DMA_USES_VIRTADDR: +// This method of DMA allows the use of virtual addresses for +// DMA transfers. +// +// _FIRMWARE_NEEDS_FDISK / _NO_FDISK_PRESENT +// This indicates the presence/absence of an fdisk table. +// +// _FIRMWARE_NEEDS_FDISK +// The fdisk table is required by system firmware. If present, +// it allows a disk to be subdivided into multiple fdisk +// partitions, each of which is equivalent to a separate, +// virtual disk. This enables the co-existence of multiple +// operating systems on a shared hard disk. +// +// _NO_FDISK_PRESENT +// If the fdisk table is absent, it is assumed that the entire +// media is allocated for a single operating system. +// +// _HAVE_TEM_FIRMWARE +// Defined if this architecture has the (fallback) option of +// using prom_* calls for doing I/O if a suitable kernel driver +// is not available to do it. +// +// _DONT_USE_1275_GENERIC_NAMES +// Controls whether or not device tree node names should +// comply with the IEEE 1275 "Generic Names" Recommended +// Practice. With _DONT_USE_GENERIC_NAMES, device-specific +// names identifying the particular device will be used. +// +// __i386_COMPAT +// This indicates whether the i386 ABI is supported as a *non-native* +// mode for the platform. When this symbol is defined: +// - 32-bit xstat-style system calls are enabled +// - 32-bit xmknod-style system calls are enabled +// - 32-bit system calls use i386 sizes -and- alignments +// +// Note that this is NOT defined for the i386 native environment! +// +// __x86 +// This is ONLY a synonym for defined(__i386) || defined(__amd64) +// which is useful only insofar as these two architectures share +// common attributes. Analogous to __sparc. +// +// _PSM_MODULES +// This indicates whether or not the implementation uses PSM +// modules for processor support, reading /etc/mach from inside +// the kernel to extract a list. +// +// _RTC_CONFIG +// This indicates whether or not the implementation uses /etc/rtc_config +// to configure the real-time clock in the kernel. +// +// _UNIX_KRTLD +// This indicates that the implementation uses a dynamically +// linked unix + krtld to form the core kernel image at boot +// time, or (in the absence of this symbol) a prelinked kernel image. +// +// _OBP +// This indicates the firmware interface is OBP. +// +// _SOFT_HOSTID +// This indicates that the implementation obtains the hostid +// from the file /etc/hostid, rather than from hardware. + +// The following set of definitions characterize Solaris on AMD's +// 64-bit systems. + +// Define the appropriate "processor characteristics" + +// Different alignment constraints for the i386 ABI in compatibility mode + +// Define the appropriate "implementation choices". + +// The feature test macro __i386 is generic for all processors implementing +// the Intel 386 instruction set or a superset of it. Specifically, this +// includes all members of the 386, 486, and Pentium family of processors. + +// Values of _POSIX_C_SOURCE +// +// undefined not a POSIX compilation +// 1 POSIX.1-1990 compilation +// 2 POSIX.2-1992 compilation +// 199309L POSIX.1b-1993 compilation (Real Time) +// 199506L POSIX.1c-1995 compilation (POSIX Threads) +// 200112L POSIX.1-2001 compilation (Austin Group Revision) +// 200809L POSIX.1-2008 compilation + +// The feature test macros __XOPEN_OR_POSIX, _STRICT_STDC, _STRICT_SYMBOLS, +// and _STDC_C99 are Sun implementation specific macros created in order to +// compress common standards specified feature test macros for easier reading. +// These macros should not be used by the application developer as +// unexpected results may occur. Instead, the user should reference +// standards(7) for correct usage of the standards feature test macros. +// +// __XOPEN_OR_POSIX Used in cases where a symbol is defined by both +// X/Open or POSIX or in the negative, when neither +// X/Open or POSIX defines a symbol. +// +// _STRICT_STDC __STDC__ is specified by the C Standards and defined +// by the compiler. For Sun compilers the value of +// __STDC__ is either 1, 0, or not defined based on the +// compilation mode (see cc(1)). When the value of +// __STDC__ is 1 and in the absence of any other feature +// test macros, the namespace available to the application +// is limited to only those symbols defined by the C +// Standard. _STRICT_STDC provides a more readable means +// of identifying symbols defined by the standard, or in +// the negative, symbols that are extensions to the C +// Standard. See additional comments for GNU C differences. +// +// _STDC_C99 __STDC_VERSION__ is specified by the C standards and +// defined by the compiler and indicates the version of +// the C standard. A value of 199901L indicates a +// compiler that complies with ISO/IEC 9899:1999, other- +// wise known as the C99 standard. +// +// _STDC_C11 Like _STDC_C99 except that the value of __STDC_VERSION__ +// is 201112L indicating a compiler that compiles with +// ISO/IEC 9899:2011, otherwise known as the C11 standard. +// +// _STRICT_SYMBOLS Used in cases where symbol visibility is restricted +// by the standards, and the user has not explicitly +// relaxed the strictness via __EXTENSIONS__. + +// ISO/IEC 9899:1990 and it's revisions, ISO/IEC 9899:1999 and ISO/IEC +// 99899:2011 specify the following predefined macro name: +// +// __STDC__ The integer constant 1, intended to indicate a conforming +// implementation. +// +// Furthermore, a strictly conforming program shall use only those features +// of the language and library specified in these standards. A conforming +// implementation shall accept any strictly conforming program. +// +// Based on these requirements, Sun's C compiler defines __STDC__ to 1 for +// strictly conforming environments and __STDC__ to 0 for environments that +// use ANSI C semantics but allow extensions to the C standard. For non-ANSI +// C semantics, Sun's C compiler does not define __STDC__. +// +// The GNU C project interpretation is that __STDC__ should always be defined +// to 1 for compilation modes that accept ANSI C syntax regardless of whether +// or not extensions to the C standard are used. Violations of conforming +// behavior are conditionally flagged as warnings via the use of the +// -pedantic option. In addition to defining __STDC__ to 1, the GNU C +// compiler also defines __STRICT_ANSI__ as a means of specifying strictly +// conforming environments using the -ansi or -std= options. +// +// In the absence of any other compiler options, Sun and GNU set the value +// of __STDC__ as follows when using the following options: +// +// Value of __STDC__ __STRICT_ANSI__ +// +// cc -Xa (default) 0 undefined +// cc -Xt (transitional) 0 undefined +// cc -Xc (strictly conforming) 1 undefined +// cc -Xs (K&R C) undefined undefined +// +// gcc (default) 1 undefined +// gcc -ansi, -std={c89, c99,...) 1 defined +// gcc -traditional (K&R) undefined undefined +// +// The default compilation modes for Sun C compilers versus GNU C compilers +// results in a differing value for __STDC__ which results in a more +// restricted namespace when using Sun compilers. To allow both GNU and Sun +// interpretations to peacefully co-exist, we use the following Sun +// implementation _STRICT_STDC_ macro: + +// Compiler complies with ISO/IEC 9899:1999 or ISO/IEC 9989:2011 + +// Use strict symbol visibility. + +// This is a variant of _STRICT_SYMBOLS that is meant to cover headers that are +// governed by POSIX, but have not been governed by ISO C. One can go two ways +// on what should happen if an application actively includes (not transitively) +// a header that isn't part of the ISO C spec, we opt to say that if someone has +// gone out of there way then they're doing it for a reason and that is an act +// of non-compliance and therefore it's not up to us to hide away every symbol. +// +// In general, prefer using _STRICT_SYMBOLS, but this is here in particular for +// cases where in the past we have only used a POSIX related check and we don't +// wish to make something stricter. Often applications are relying on the +// ability to, or more realistically unwittingly, have _STRICT_STDC declared and +// still use these interfaces. + +// Large file interfaces: +// +// _LARGEFILE_SOURCE +// 1 large file-related additions to POSIX +// interfaces requested (fseeko, etc.) +// _LARGEFILE64_SOURCE +// 1 transitional large-file-related interfaces +// requested (seek64, stat64, etc.) +// +// The corresponding announcement macros are respectively: +// _LFS_LARGEFILE +// _LFS64_LARGEFILE +// (These are set in .) +// +// Requesting _LARGEFILE64_SOURCE implies requesting _LARGEFILE_SOURCE as +// well. +// +// The large file interfaces are made visible regardless of the initial values +// of the feature test macros under certain circumstances: +// - If no explicit standards-conforming environment is requested (neither +// of _POSIX_SOURCE nor _XOPEN_SOURCE is defined and the value of +// __STDC__ does not imply standards conformance). +// - Extended system interfaces are explicitly requested (__EXTENSIONS__ +// is defined). +// - Access to in-kernel interfaces is requested (_KERNEL or _KMEMUSER is +// defined). (Note that this dependency is an artifact of the current +// kernel implementation and may change in future releases.) + +// Large file compilation environment control: +// +// The setting of _FILE_OFFSET_BITS controls the size of various file-related +// types and governs the mapping between file-related source function symbol +// names and the corresponding binary entry points. +// +// In the 32-bit environment, the default value is 32; if not set, set it to +// the default here, to simplify tests in other headers. +// +// In the 64-bit compilation environment, the only value allowed is 64. + +// Use of _XOPEN_SOURCE +// +// The following X/Open specifications are supported: +// +// X/Open Portability Guide, Issue 3 (XPG3) +// X/Open CAE Specification, Issue 4 (XPG4) +// X/Open CAE Specification, Issue 4, Version 2 (XPG4v2) +// X/Open CAE Specification, Issue 5 (XPG5) +// Open Group Technical Standard, Issue 6 (XPG6), also referred to as +// IEEE Std. 1003.1-2001 and ISO/IEC 9945:2002. +// Open Group Technical Standard, Issue 7 (XPG7), also referred to as +// IEEE Std. 1003.1-2008 and ISO/IEC 9945:2009. +// +// XPG4v2 is also referred to as UNIX 95 (SUS or SUSv1). +// XPG5 is also referred to as UNIX 98 or the Single Unix Specification, +// Version 2 (SUSv2) +// XPG6 is the result of a merge of the X/Open and POSIX specifications +// and as such is also referred to as IEEE Std. 1003.1-2001 in +// addition to UNIX 03 and SUSv3. +// XPG7 is also referred to as UNIX 08 and SUSv4. +// +// When writing a conforming X/Open application, as per the specification +// requirements, the appropriate feature test macros must be defined at +// compile time. These are as follows. For more info, see standards(7). +// +// Feature Test Macro Specification +// ------------------------------------------------ ------------- +// _XOPEN_SOURCE XPG3 +// _XOPEN_SOURCE && _XOPEN_VERSION = 4 XPG4 +// _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED = 1 XPG4v2 +// _XOPEN_SOURCE = 500 XPG5 +// _XOPEN_SOURCE = 600 (or POSIX_C_SOURCE=200112L) XPG6 +// _XOPEN_SOURCE = 700 (or POSIX_C_SOURCE=200809L) XPG7 +// +// In order to simplify the guards within the headers, the following +// implementation private test macros have been created. Applications +// must NOT use these private test macros as unexpected results will +// occur. +// +// Note that in general, the use of these private macros is cumulative. +// For example, the use of _XPG3 with no other restrictions on the X/Open +// namespace will make the symbols visible for XPG3 through XPG6 +// compilation environments. The use of _XPG4_2 with no other X/Open +// namespace restrictions indicates that the symbols were introduced in +// XPG4v2 and are therefore visible for XPG4v2 through XPG6 compilation +// environments, but not for XPG3 or XPG4 compilation environments. +// +// _XPG3 X/Open Portability Guide, Issue 3 (XPG3) +// _XPG4 X/Open CAE Specification, Issue 4 (XPG4) +// _XPG4_2 X/Open CAE Specification, Issue 4, Version 2 (XPG4v2/UNIX 95/SUS) +// _XPG5 X/Open CAE Specification, Issue 5 (XPG5/UNIX 98/SUSv2) +// _XPG6 Open Group Technical Standard, Issue 6 (XPG6/UNIX 03/SUSv3) +// _XPG7 Open Group Technical Standard, Issue 7 (XPG7/UNIX 08/SUSv4) + +// X/Open Portability Guide, Issue 3 + +// _XOPEN_VERSION is defined by the X/Open specifications and is not +// normally defined by the application, except in the case of an XPG4 +// application. On the implementation side, _XOPEN_VERSION defined with +// the value of 3 indicates an XPG3 application. _XOPEN_VERSION defined +// with the value of 4 indicates an XPG4 or XPG4v2 (UNIX 95) application. +// _XOPEN_VERSION defined with a value of 500 indicates an XPG5 (UNIX 98) +// application and with a value of 600 indicates an XPG6 (UNIX 03) +// application and with a value of 700 indicates an XPG7 (UNIX 08). +// The appropriate version is determined by the use of the +// feature test macros described earlier. The value of _XOPEN_VERSION +// defaults to 3 otherwise indicating support for XPG3 applications. + +// ANSI C and ISO 9899:1990 say the type long long doesn't exist in strictly +// conforming environments. ISO 9899:1999 says it does. +// +// The presence of _LONGLONG_TYPE says "long long exists" which is therefore +// defined in all but strictly conforming environments that disallow it. + +// The following macro defines a value for the ISO C99 restrict +// keyword so that _RESTRICT_KYWD resolves to "restrict" if +// an ISO C99 compiler is used, "__restrict" for c++ and "" (null string) +// if any other compiler is used. This allows for the use of single +// prototype declarations regardless of compiler version. + +// The following macro defines a value for the ISO C11 _Noreturn +// keyword so that _NORETURN_KYWD resolves to "_Noreturn" if +// an ISO C11 compiler is used and "" (null string) if any other +// compiler is used. This allows for the use of single prototype +// declarations regardless of compiler version. + +// ISO/IEC 9899:2011 Annex K + +// The following macro indicates header support for the ANSI C++ +// standard. The ISO/IEC designation for this is ISO/IEC FDIS 14882. + +// The following macro indicates header support for the C99 standard, +// ISO/IEC 9899:1999, Programming Languages - C. + +// The following macro indicates header support for the C11 standard, +// ISO/IEC 9899:2011, Programming Languages - C. + +// The following macro indicates header support for the C11 standard, +// ISO/IEC 9899:2011 Annex K, Programming Languages - C. + +// The following macro indicates header support for DTrace. The value is an +// integer that corresponds to the major version number for DTrace. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2016 Joyent, Inc. + +// Machine dependent definitions moved to . +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2007 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Machine dependent types: +// +// intel ia32 Version + +type X_label_t = struct{ Fval [8]int64 } /* machtypes.h:59:9 */ + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// BIND 4.9.3: +// +// Copyright (c) 1980, 1983, 1988, 1993 +// The Regents of the University of California. All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// 1. Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// 2. Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer in the +// documentation and/or other materials provided with the distribution. +// 3. All advertising materials mentioning features or use of this software +// must display the following acknowledgement: +// This product includes software developed by the University of +// California, Berkeley and its contributors. +// 4. Neither the name of the University nor the names of its contributors +// may be used to endorse or promote products derived from this software +// without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +// SUCH DAMAGE. +// - +// Portions Copyright (c) 1993 by Digital Equipment Corporation. +// +// Permission to use, copy, modify, and distribute this software for any +// purpose with or without fee is hereby granted, provided that the above +// copyright notice and this permission notice appear in all copies, and that +// the name of Digital Equipment Corporation not be used in advertising or +// publicity pertaining to distribution of the document or software without +// specific, written prior permission. +// +// THE SOFTWARE IS PROVIDED "AS IS" AND DIGITAL EQUIPMENT CORP. DISCLAIMS ALL +// WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES +// OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL DIGITAL EQUIPMENT +// CORPORATION BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL +// DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR +// PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS +// ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS +// SOFTWARE. +// --Copyright-- +// +// End BIND 4.9.3 + +// Structures returned by network data base library. +// All addresses are supplied in host order, and +// returned in network order (suitable for use in system calls). + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2021 Oxide Computer Company + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2015 EveryCity Ltd. All rights reserved. +// Copyright 2019 Joyent, Inc. + +// This file contains definitions designed to enable different compilers +// to be used harmoniously on Solaris systems. + +// Allow for version tests for compiler bugs and features. + +// analogous to lint's PRINTFLIKEn + +// Handle the kernel printf routines that can take '%b' too + +// This one's pretty obvious -- the function never returns + +// The function is 'extern inline' and expects GNU C89 behaviour, not C99 +// behaviour. +// +// Should only be used on 'extern inline' definitions for GCC. + +// The function has control flow such that it may return multiple times (in +// the manner of setjmp or vfork) + +// This is an appropriate label for functions that do not +// modify their arguments, e.g. strlen() + +// This is a stronger form of __pure__. Can be used for functions +// that do not modify their arguments and don't depend on global +// memory. + +// This attribute, attached to a variable, means that the variable is meant to +// be possibly unused. GCC will not produce a warning for this variable. + +// Shorthand versions for readability + +// In release build, disable warnings about variables +// which are used only for debugging. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2016 Joyent, Inc. + +// This header file serves to group a set of well known defines and to +// set these for each instruction set architecture. These defines may +// be divided into two groups; characteristics of the processor and +// implementation choices for Solaris on a processor. +// +// Processor Characteristics: +// +// _LITTLE_ENDIAN / _BIG_ENDIAN: +// The natural byte order of the processor. A pointer to an int points +// to the least/most significant byte of that int. +// +// _STACK_GROWS_UPWARD / _STACK_GROWS_DOWNWARD: +// The processor specific direction of stack growth. A push onto the +// stack increases/decreases the stack pointer, so it stores data at +// successively higher/lower addresses. (Stackless machines ignored +// without regrets). +// +// _LONG_LONG_HTOL / _LONG_LONG_LTOH: +// A pointer to a long long points to the most/least significant long +// within that long long. +// +// _BIT_FIELDS_HTOL / _BIT_FIELDS_LTOH: +// The C compiler assigns bit fields from the high/low to the low/high end +// of an int (most to least significant vs. least to most significant). +// +// _IEEE_754: +// The processor (or supported implementations of the processor) +// supports the ieee-754 floating point standard. No other floating +// point standards are supported (or significant). Any other supported +// floating point formats are expected to be cased on the ISA processor +// symbol. +// +// _CHAR_IS_UNSIGNED / _CHAR_IS_SIGNED: +// The C Compiler implements objects of type `char' as `unsigned' or +// `signed' respectively. This is really an implementation choice of +// the compiler writer, but it is specified in the ABI and tends to +// be uniform across compilers for an instruction set architecture. +// Hence, it has the properties of a processor characteristic. +// +// _CHAR_ALIGNMENT / _SHORT_ALIGNMENT / _INT_ALIGNMENT / _LONG_ALIGNMENT / +// _LONG_LONG_ALIGNMENT / _DOUBLE_ALIGNMENT / _LONG_DOUBLE_ALIGNMENT / +// _POINTER_ALIGNMENT / _FLOAT_ALIGNMENT: +// The ABI defines alignment requirements of each of the primitive +// object types. Some, if not all, may be hardware requirements as +// well. The values are expressed in "byte-alignment" units. +// +// _MAX_ALIGNMENT: +// The most stringent alignment requirement as specified by the ABI. +// Equal to the maximum of all the above _XXX_ALIGNMENT values. +// +// _MAX_ALIGNMENT_TYPE: +// The name of the C type that has the value descried in _MAX_ALIGNMENT. +// +// _ALIGNMENT_REQUIRED: +// True or false (1 or 0) whether or not the hardware requires the ABI +// alignment. +// +// _LONG_LONG_ALIGNMENT_32 +// The 32-bit ABI supported by a 64-bit kernel may have different +// alignment requirements for primitive object types. The value of this +// identifier is expressed in "byte-alignment" units. +// +// _HAVE_CPUID_INSN +// This indicates that the architecture supports the 'cpuid' +// instruction as defined by Intel. (Intel allows other vendors +// to extend the instruction for their own purposes.) +// +// +// Implementation Choices: +// +// _ILP32 / _LP64: +// This specifies the compiler data type implementation as specified in +// the relevant ABI. The choice between these is strongly influenced +// by the underlying hardware, but is not absolutely tied to it. +// Currently only two data type models are supported: +// +// _ILP32: +// Int/Long/Pointer are 32 bits. This is the historical UNIX +// and Solaris implementation. Due to its historical standing, +// this is the default case. +// +// _LP64: +// Long/Pointer are 64 bits, Int is 32 bits. This is the chosen +// implementation for 64-bit ABIs such as SPARC V9. +// +// _I32LPx: +// A compilation environment where 'int' is 32-bit, and +// longs and pointers are simply the same size. +// +// In all cases, Char is 8 bits and Short is 16 bits. +// +// _SUNOS_VTOC_8 / _SUNOS_VTOC_16 / _SVR4_VTOC_16: +// This specifies the form of the disk VTOC (or label): +// +// _SUNOS_VTOC_8: +// This is a VTOC form which is upwardly compatible with the +// SunOS 4.x disk label and allows 8 partitions per disk. +// +// _SUNOS_VTOC_16: +// In this format the incore vtoc image matches the ondisk +// version. It allows 16 slices per disk, and is not +// compatible with the SunOS 4.x disk label. +// +// Note that these are not the only two VTOC forms possible and +// additional forms may be added. One possible form would be the +// SVr4 VTOC form. The symbol for that is reserved now, although +// it is not implemented. +// +// _SVR4_VTOC_16: +// This VTOC form is compatible with the System V Release 4 +// VTOC (as implemented on the SVr4 Intel and 3b ports) with +// 16 partitions per disk. +// +// +// _DMA_USES_PHYSADDR / _DMA_USES_VIRTADDR +// This describes the type of addresses used by system DMA: +// +// _DMA_USES_PHYSADDR: +// This type of DMA, used in the x86 implementation, +// requires physical addresses for DMA buffers. The 24-bit +// addresses used by some legacy boards is the source of the +// "low-memory" (<16MB) requirement for some devices using DMA. +// +// _DMA_USES_VIRTADDR: +// This method of DMA allows the use of virtual addresses for +// DMA transfers. +// +// _FIRMWARE_NEEDS_FDISK / _NO_FDISK_PRESENT +// This indicates the presence/absence of an fdisk table. +// +// _FIRMWARE_NEEDS_FDISK +// The fdisk table is required by system firmware. If present, +// it allows a disk to be subdivided into multiple fdisk +// partitions, each of which is equivalent to a separate, +// virtual disk. This enables the co-existence of multiple +// operating systems on a shared hard disk. +// +// _NO_FDISK_PRESENT +// If the fdisk table is absent, it is assumed that the entire +// media is allocated for a single operating system. +// +// _HAVE_TEM_FIRMWARE +// Defined if this architecture has the (fallback) option of +// using prom_* calls for doing I/O if a suitable kernel driver +// is not available to do it. +// +// _DONT_USE_1275_GENERIC_NAMES +// Controls whether or not device tree node names should +// comply with the IEEE 1275 "Generic Names" Recommended +// Practice. With _DONT_USE_GENERIC_NAMES, device-specific +// names identifying the particular device will be used. +// +// __i386_COMPAT +// This indicates whether the i386 ABI is supported as a *non-native* +// mode for the platform. When this symbol is defined: +// - 32-bit xstat-style system calls are enabled +// - 32-bit xmknod-style system calls are enabled +// - 32-bit system calls use i386 sizes -and- alignments +// +// Note that this is NOT defined for the i386 native environment! +// +// __x86 +// This is ONLY a synonym for defined(__i386) || defined(__amd64) +// which is useful only insofar as these two architectures share +// common attributes. Analogous to __sparc. +// +// _PSM_MODULES +// This indicates whether or not the implementation uses PSM +// modules for processor support, reading /etc/mach from inside +// the kernel to extract a list. +// +// _RTC_CONFIG +// This indicates whether or not the implementation uses /etc/rtc_config +// to configure the real-time clock in the kernel. +// +// _UNIX_KRTLD +// This indicates that the implementation uses a dynamically +// linked unix + krtld to form the core kernel image at boot +// time, or (in the absence of this symbol) a prelinked kernel image. +// +// _OBP +// This indicates the firmware interface is OBP. +// +// _SOFT_HOSTID +// This indicates that the implementation obtains the hostid +// from the file /etc/hostid, rather than from hardware. + +// The following set of definitions characterize Solaris on AMD's +// 64-bit systems. + +// Define the appropriate "processor characteristics" + +// Different alignment constraints for the i386 ABI in compatibility mode + +// Define the appropriate "implementation choices". + +// The feature test macro __i386 is generic for all processors implementing +// the Intel 386 instruction set or a superset of it. Specifically, this +// includes all members of the 386, 486, and Pentium family of processors. + +// Values of _POSIX_C_SOURCE +// +// undefined not a POSIX compilation +// 1 POSIX.1-1990 compilation +// 2 POSIX.2-1992 compilation +// 199309L POSIX.1b-1993 compilation (Real Time) +// 199506L POSIX.1c-1995 compilation (POSIX Threads) +// 200112L POSIX.1-2001 compilation (Austin Group Revision) +// 200809L POSIX.1-2008 compilation + +// The feature test macros __XOPEN_OR_POSIX, _STRICT_STDC, _STRICT_SYMBOLS, +// and _STDC_C99 are Sun implementation specific macros created in order to +// compress common standards specified feature test macros for easier reading. +// These macros should not be used by the application developer as +// unexpected results may occur. Instead, the user should reference +// standards(7) for correct usage of the standards feature test macros. +// +// __XOPEN_OR_POSIX Used in cases where a symbol is defined by both +// X/Open or POSIX or in the negative, when neither +// X/Open or POSIX defines a symbol. +// +// _STRICT_STDC __STDC__ is specified by the C Standards and defined +// by the compiler. For Sun compilers the value of +// __STDC__ is either 1, 0, or not defined based on the +// compilation mode (see cc(1)). When the value of +// __STDC__ is 1 and in the absence of any other feature +// test macros, the namespace available to the application +// is limited to only those symbols defined by the C +// Standard. _STRICT_STDC provides a more readable means +// of identifying symbols defined by the standard, or in +// the negative, symbols that are extensions to the C +// Standard. See additional comments for GNU C differences. +// +// _STDC_C99 __STDC_VERSION__ is specified by the C standards and +// defined by the compiler and indicates the version of +// the C standard. A value of 199901L indicates a +// compiler that complies with ISO/IEC 9899:1999, other- +// wise known as the C99 standard. +// +// _STDC_C11 Like _STDC_C99 except that the value of __STDC_VERSION__ +// is 201112L indicating a compiler that compiles with +// ISO/IEC 9899:2011, otherwise known as the C11 standard. +// +// _STRICT_SYMBOLS Used in cases where symbol visibility is restricted +// by the standards, and the user has not explicitly +// relaxed the strictness via __EXTENSIONS__. + +// ISO/IEC 9899:1990 and it's revisions, ISO/IEC 9899:1999 and ISO/IEC +// 99899:2011 specify the following predefined macro name: +// +// __STDC__ The integer constant 1, intended to indicate a conforming +// implementation. +// +// Furthermore, a strictly conforming program shall use only those features +// of the language and library specified in these standards. A conforming +// implementation shall accept any strictly conforming program. +// +// Based on these requirements, Sun's C compiler defines __STDC__ to 1 for +// strictly conforming environments and __STDC__ to 0 for environments that +// use ANSI C semantics but allow extensions to the C standard. For non-ANSI +// C semantics, Sun's C compiler does not define __STDC__. +// +// The GNU C project interpretation is that __STDC__ should always be defined +// to 1 for compilation modes that accept ANSI C syntax regardless of whether +// or not extensions to the C standard are used. Violations of conforming +// behavior are conditionally flagged as warnings via the use of the +// -pedantic option. In addition to defining __STDC__ to 1, the GNU C +// compiler also defines __STRICT_ANSI__ as a means of specifying strictly +// conforming environments using the -ansi or -std= options. +// +// In the absence of any other compiler options, Sun and GNU set the value +// of __STDC__ as follows when using the following options: +// +// Value of __STDC__ __STRICT_ANSI__ +// +// cc -Xa (default) 0 undefined +// cc -Xt (transitional) 0 undefined +// cc -Xc (strictly conforming) 1 undefined +// cc -Xs (K&R C) undefined undefined +// +// gcc (default) 1 undefined +// gcc -ansi, -std={c89, c99,...) 1 defined +// gcc -traditional (K&R) undefined undefined +// +// The default compilation modes for Sun C compilers versus GNU C compilers +// results in a differing value for __STDC__ which results in a more +// restricted namespace when using Sun compilers. To allow both GNU and Sun +// interpretations to peacefully co-exist, we use the following Sun +// implementation _STRICT_STDC_ macro: + +// Compiler complies with ISO/IEC 9899:1999 or ISO/IEC 9989:2011 + +// Use strict symbol visibility. + +// This is a variant of _STRICT_SYMBOLS that is meant to cover headers that are +// governed by POSIX, but have not been governed by ISO C. One can go two ways +// on what should happen if an application actively includes (not transitively) +// a header that isn't part of the ISO C spec, we opt to say that if someone has +// gone out of there way then they're doing it for a reason and that is an act +// of non-compliance and therefore it's not up to us to hide away every symbol. +// +// In general, prefer using _STRICT_SYMBOLS, but this is here in particular for +// cases where in the past we have only used a POSIX related check and we don't +// wish to make something stricter. Often applications are relying on the +// ability to, or more realistically unwittingly, have _STRICT_STDC declared and +// still use these interfaces. + +// Large file interfaces: +// +// _LARGEFILE_SOURCE +// 1 large file-related additions to POSIX +// interfaces requested (fseeko, etc.) +// _LARGEFILE64_SOURCE +// 1 transitional large-file-related interfaces +// requested (seek64, stat64, etc.) +// +// The corresponding announcement macros are respectively: +// _LFS_LARGEFILE +// _LFS64_LARGEFILE +// (These are set in .) +// +// Requesting _LARGEFILE64_SOURCE implies requesting _LARGEFILE_SOURCE as +// well. +// +// The large file interfaces are made visible regardless of the initial values +// of the feature test macros under certain circumstances: +// - If no explicit standards-conforming environment is requested (neither +// of _POSIX_SOURCE nor _XOPEN_SOURCE is defined and the value of +// __STDC__ does not imply standards conformance). +// - Extended system interfaces are explicitly requested (__EXTENSIONS__ +// is defined). +// - Access to in-kernel interfaces is requested (_KERNEL or _KMEMUSER is +// defined). (Note that this dependency is an artifact of the current +// kernel implementation and may change in future releases.) + +// Large file compilation environment control: +// +// The setting of _FILE_OFFSET_BITS controls the size of various file-related +// types and governs the mapping between file-related source function symbol +// names and the corresponding binary entry points. +// +// In the 32-bit environment, the default value is 32; if not set, set it to +// the default here, to simplify tests in other headers. +// +// In the 64-bit compilation environment, the only value allowed is 64. + +// Use of _XOPEN_SOURCE +// +// The following X/Open specifications are supported: +// +// X/Open Portability Guide, Issue 3 (XPG3) +// X/Open CAE Specification, Issue 4 (XPG4) +// X/Open CAE Specification, Issue 4, Version 2 (XPG4v2) +// X/Open CAE Specification, Issue 5 (XPG5) +// Open Group Technical Standard, Issue 6 (XPG6), also referred to as +// IEEE Std. 1003.1-2001 and ISO/IEC 9945:2002. +// Open Group Technical Standard, Issue 7 (XPG7), also referred to as +// IEEE Std. 1003.1-2008 and ISO/IEC 9945:2009. +// +// XPG4v2 is also referred to as UNIX 95 (SUS or SUSv1). +// XPG5 is also referred to as UNIX 98 or the Single Unix Specification, +// Version 2 (SUSv2) +// XPG6 is the result of a merge of the X/Open and POSIX specifications +// and as such is also referred to as IEEE Std. 1003.1-2001 in +// addition to UNIX 03 and SUSv3. +// XPG7 is also referred to as UNIX 08 and SUSv4. +// +// When writing a conforming X/Open application, as per the specification +// requirements, the appropriate feature test macros must be defined at +// compile time. These are as follows. For more info, see standards(7). +// +// Feature Test Macro Specification +// ------------------------------------------------ ------------- +// _XOPEN_SOURCE XPG3 +// _XOPEN_SOURCE && _XOPEN_VERSION = 4 XPG4 +// _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED = 1 XPG4v2 +// _XOPEN_SOURCE = 500 XPG5 +// _XOPEN_SOURCE = 600 (or POSIX_C_SOURCE=200112L) XPG6 +// _XOPEN_SOURCE = 700 (or POSIX_C_SOURCE=200809L) XPG7 +// +// In order to simplify the guards within the headers, the following +// implementation private test macros have been created. Applications +// must NOT use these private test macros as unexpected results will +// occur. +// +// Note that in general, the use of these private macros is cumulative. +// For example, the use of _XPG3 with no other restrictions on the X/Open +// namespace will make the symbols visible for XPG3 through XPG6 +// compilation environments. The use of _XPG4_2 with no other X/Open +// namespace restrictions indicates that the symbols were introduced in +// XPG4v2 and are therefore visible for XPG4v2 through XPG6 compilation +// environments, but not for XPG3 or XPG4 compilation environments. +// +// _XPG3 X/Open Portability Guide, Issue 3 (XPG3) +// _XPG4 X/Open CAE Specification, Issue 4 (XPG4) +// _XPG4_2 X/Open CAE Specification, Issue 4, Version 2 (XPG4v2/UNIX 95/SUS) +// _XPG5 X/Open CAE Specification, Issue 5 (XPG5/UNIX 98/SUSv2) +// _XPG6 Open Group Technical Standard, Issue 6 (XPG6/UNIX 03/SUSv3) +// _XPG7 Open Group Technical Standard, Issue 7 (XPG7/UNIX 08/SUSv4) + +// X/Open Portability Guide, Issue 3 + +// _XOPEN_VERSION is defined by the X/Open specifications and is not +// normally defined by the application, except in the case of an XPG4 +// application. On the implementation side, _XOPEN_VERSION defined with +// the value of 3 indicates an XPG3 application. _XOPEN_VERSION defined +// with the value of 4 indicates an XPG4 or XPG4v2 (UNIX 95) application. +// _XOPEN_VERSION defined with a value of 500 indicates an XPG5 (UNIX 98) +// application and with a value of 600 indicates an XPG6 (UNIX 03) +// application and with a value of 700 indicates an XPG7 (UNIX 08). +// The appropriate version is determined by the use of the +// feature test macros described earlier. The value of _XOPEN_VERSION +// defaults to 3 otherwise indicating support for XPG3 applications. + +// ANSI C and ISO 9899:1990 say the type long long doesn't exist in strictly +// conforming environments. ISO 9899:1999 says it does. +// +// The presence of _LONGLONG_TYPE says "long long exists" which is therefore +// defined in all but strictly conforming environments that disallow it. + +// The following macro defines a value for the ISO C99 restrict +// keyword so that _RESTRICT_KYWD resolves to "restrict" if +// an ISO C99 compiler is used, "__restrict" for c++ and "" (null string) +// if any other compiler is used. This allows for the use of single +// prototype declarations regardless of compiler version. + +// The following macro defines a value for the ISO C11 _Noreturn +// keyword so that _NORETURN_KYWD resolves to "_Noreturn" if +// an ISO C11 compiler is used and "" (null string) if any other +// compiler is used. This allows for the use of single prototype +// declarations regardless of compiler version. + +// ISO/IEC 9899:2011 Annex K + +// The following macro indicates header support for the ANSI C++ +// standard. The ISO/IEC designation for this is ISO/IEC FDIS 14882. + +// The following macro indicates header support for the C99 standard, +// ISO/IEC 9899:1999, Programming Languages - C. + +// The following macro indicates header support for the C11 standard, +// ISO/IEC 9899:2011, Programming Languages - C. + +// The following macro indicates header support for the C11 standard, +// ISO/IEC 9899:2011 Annex K, Programming Languages - C. + +// The following macro indicates header support for DTrace. The value is an +// integer that corresponds to the major version number for DTrace. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2016 Joyent, Inc. + +// Machine dependent definitions moved to . +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2007 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Machine dependent types: +// +// intel ia32 Version + +type Label_t = X_label_t /* machtypes.h:59:54 */ + +type Lock_t = uint8 /* machtypes.h:63:23 */ // lock work for busy wait + +// Include fixed width type declarations proposed by the ISO/JTC1/SC22/WG14 C +// committee's working draft for the revision of the current ISO C standard, +// ISO/IEC 9899:1990 Programming language - C. These are not currently +// required by any standard but constitute a useful, general purpose set +// of type definitions which is namespace clean with respect to all standards. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2014 Garrett D'Amore +// +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// This file, , is part of the Sun Microsystems implementation +// of defined in the ISO C standard, ISO/IEC 9899:1999 +// Programming language - C. +// +// Programs/Modules should not directly include this file. Access to the +// types defined in this file should be through the inclusion of one of the +// following files: +// +// Provides only the "_t" types defined in this +// file which is a subset of the contents of +// . (This can be appropriate for +// all programs/modules except those claiming +// ANSI-C conformance.) +// +// Provides the Kernel and Driver appropriate +// components of . +// +// For use by applications. +// +// See these files for more details. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Basic / Extended integer types +// +// The following defines the basic fixed-size integer types. +// +// Implementations are free to typedef them to Standard C integer types or +// extensions that they support. If an implementation does not support one +// of the particular integer data types below, then it should not define the +// typedefs and macros corresponding to that data type. Note that int8_t +// is not defined in -Xs mode on ISAs for which the ABI specifies "char" +// as an unsigned entity because there is no way to define an eight bit +// signed integral. +type Int8_t = int8 /* int_types.h:75:16 */ +type Int16_t = int16 /* int_types.h:79:17 */ +type Int32_t = int32 /* int_types.h:80:15 */ +type Int64_t = int64 /* int_types.h:83:16 */ + +type Uint8_t = uint8 /* int_types.h:91:24 */ +type Uint16_t = uint16 /* int_types.h:92:25 */ +type Uint32_t = uint32 /* int_types.h:93:23 */ +type Uint64_t = uint64 /* int_types.h:95:24 */ + +// intmax_t and uintmax_t are to be the longest (in number of bits) signed +// and unsigned integer types supported by the implementation. +type Intmax_t = int64 /* int_types.h:107:19 */ +type Uintmax_t = uint64 /* int_types.h:108:19 */ + +// intptr_t and uintptr_t are signed and unsigned integer types large enough +// to hold any data pointer; that is, data pointers can be assigned into or +// from these integer types without losing precision. +type Intptr_t = int64 /* int_types.h:120:16 */ +type Uintptr_t = uint64 /* int_types.h:121:24 */ + +// The following define the fastest integer types that can hold the +// specified number of bits. +type Int_fast8_t = int8 /* int_types.h:132:16 */ +type Int_fast16_t = int32 /* int_types.h:136:15 */ +type Int_fast32_t = int32 /* int_types.h:137:15 */ +type Int_fast64_t = int64 /* int_types.h:139:16 */ + +type Uint_fast8_t = uint8 /* int_types.h:146:24 */ +type Uint_fast16_t = uint32 /* int_types.h:147:23 */ +type Uint_fast32_t = uint32 /* int_types.h:148:23 */ +type Uint_fast64_t = uint64 /* int_types.h:150:24 */ + +// The following define the smallest integer types that can hold the +// specified number of bits. +type Int_least8_t = int8 /* int_types.h:162:16 */ +type Int_least16_t = int16 /* int_types.h:166:17 */ +type Int_least32_t = int32 /* int_types.h:167:15 */ +type Int_least64_t = int64 /* int_types.h:169:16 */ + +// If these are changed, please update char16_t and char32_t in head/uchar.h. +type Uint_least8_t = uint8 /* int_types.h:179:24 */ +type Uint_least16_t = uint16 /* int_types.h:180:25 */ +type Uint_least32_t = uint32 /* int_types.h:181:23 */ +type Uint_least64_t = uint64 /* int_types.h:183:24 */ + +// Strictly conforming ANSI C environments prior to the 1999 +// revision of the C Standard (ISO/IEC 9899:1999) do not have +// the long long data type. +type Longlong_t = int64 /* types.h:72:20 */ +type U_longlong_t = uint64 /* types.h:73:28 */ + +// These types (t_{u}scalar_t) exist because the XTI/TPI/DLPI standards had +// to use them instead of int32_t and uint32_t because DEC had +// shipped 64-bit wide. +type T_scalar_t = int32 /* types.h:92:18 */ +type T_uscalar_t = uint32 /* types.h:93:18 */ + +// POSIX Extensions +type Uchar_t = uint8 /* types.h:102:23 */ +type Ushort_t = uint16 /* types.h:103:24 */ +type Uint_t = uint32 /* types.h:104:22 */ +type Ulong_t = uint64 /* types.h:105:23 */ + +type Caddr_t = uintptr /* types.h:107:15 */ // ? type +type Daddr_t = int64 /* types.h:108:15 */ // type +type Cnt_t = int16 /* types.h:109:16 */ // pointer difference + +// VM-related types +type Pfn_t = uint64 /* types.h:123:18 */ // page frame number +type Pgcnt_t = uint64 /* types.h:124:18 */ // number of pages +type Spgcnt_t = int64 /* types.h:125:15 */ // signed number of pages + +type Use_t = uint8 /* types.h:127:18 */ // use count for swap. +type Sysid_t = int16 /* types.h:128:16 */ +type Index_t = int16 /* types.h:129:16 */ +type Timeout_id_t = uintptr /* types.h:130:15 */ // opaque handle from timeout(9F) +type Bufcall_id_t = uintptr /* types.h:131:15 */ // opaque handle from bufcall(9F) + +// The size of off_t and related types depends on the setting of +// _FILE_OFFSET_BITS. (Note that other system headers define other types +// related to those defined here.) +// +// If _LARGEFILE64_SOURCE is defined, variants of these types that are +// explicitly 64 bits wide become available. + +type Off_t = int64 /* types.h:145:15 */ // offsets within files + +type Off64_t = int64 /* types.h:152:16 */ // offsets within files + +type Ino_t = uint64 /* types.h:161:18 */ // expanded inode type +type Blkcnt_t = int64 /* types.h:162:15 */ // count of file blocks +type Fsblkcnt_t = uint64 /* types.h:163:18 */ // count of file system blocks +type Fsfilcnt_t = uint64 /* types.h:164:18 */ // count of files + +type Ino64_t = uint64 /* types.h:174:16 */ // expanded inode type +type Blkcnt64_t = int64 /* types.h:175:18 */ // count of file blocks +type Fsblkcnt64_t = uint64 /* types.h:176:20 */ // count of file system blocks +type Fsfilcnt64_t = uint64 /* types.h:177:20 */ // count of files + +type Blksize_t = int32 /* types.h:187:14 */ // used for block sizes + +// The boolean_t type has had a varied amount of exposure over the years in +// terms of how its enumeration constants have been exposed. In particular, it +// originally used the __XOPEN_OR_POSIX macro to determine whether to prefix the +// B_TRUE and B_FALSE with an underscore. This check never included the +// question of if we were in a strict ANSI C environment or whether extensions +// were defined. +// +// Compilers such as clang started defaulting to always including an +// XOPEN_SOURCE declaration on behalf of users, but also noted __EXTENSIONS__. +// This would lead most software that had used the non-underscore versions to +// need it. As such, we have adjusted the non-strict XOPEN environment to retain +// its old behavior so as to minimize namespace pollution; however, we instead +// include both variants of the definitions in the generally visible version +// allowing software written in either world to hopefully end up in a good +// place. +// +// This isn't perfect, but should hopefully minimize the pain for folks actually +// trying to build software. +type Boolean_t = uint32 /* types.h:215:69 */ + +// The {u,}pad64_t types can be used in structures such that those structures +// may be accessed by code produced by compilation environments which don't +// support a 64 bit integral datatype. The intention is not to allow +// use of these fields in such environments, but to maintain the alignment +// and offsets of the structure. +// +// Similar comments for {u,}pad128_t. +// +// Note that these types do NOT generate any stronger alignment constraints +// than those available in the underlying ABI. See +type Pad64_t = int64 /* types.h:240:18 */ +type Upad64_t = uint64 /* types.h:241:18 */ + +type Pad128_t = struct { + F_q float64 + F__ccgo_pad1 [8]byte +} /* types.h:257:3 */ + +type Upad128_t = struct { + F_q float64 + F__ccgo_pad1 [8]byte +} /* types.h:262:3 */ + +type Offset_t = int64 /* types.h:264:20 */ +type U_offset_t = uint64 /* types.h:265:22 */ +type Len_t = uint64 /* types.h:266:22 */ +type Diskaddr_t = uint64 /* types.h:267:22 */ + +// Definitions remaining from previous partial support for 64-bit file +// offsets. This partial support for devices greater than 2gb requires +// compiler support for long long. +type Lloff_t = struct{ F_f int64 } /* types.h:284:3 */ + +type Lldaddr_t = struct{ F_f int64 } /* types.h:304:3 */ + +type K_fltset_t = uint32 /* types.h:317:16 */ // kernel fault set type + +// The following type is for various kinds of identifiers. The +// actual type must be the same for all since some system calls +// (such as sigsend) take arguments that may be any of these +// types. The enumeration type idtype_t defined in sys/procset.h +// is used to indicate what type of id is being specified -- +// a process id, process group id, session id, scheduling class id, +// user id, group id, project id, task id or zone id. +type Id_t = int32 /* types.h:329:14 */ + +type Lgrp_id_t = int32 /* types.h:334:15 */ // lgroup ID + +// Type useconds_t is an unsigned integral type capable of storing +// values at least in the range of zero to 1,000,000. +type Useconds_t = uint32 /* types.h:340:17 */ // Time, in microseconds + +type Suseconds_t = int64 /* types.h:344:14 */ // signed # of microseconds + +// Typedefs for dev_t components. +type Major_t = uint32 /* types.h:351:16 */ // major part of device number +type Minor_t = uint32 /* types.h:352:16 */ // minor part of device number + +// The data type of a thread priority. +type Pri_t = int16 /* types.h:361:15 */ + +// The data type for a CPU flags field. (Can be extended to larger unsigned +// types, if needed, limited by ability to update atomically.) +type Cpu_flag_t = uint16 /* types.h:367:18 */ + +// For compatibility reasons the following typedefs (prefixed o_) +// can't grow regardless of the EFT definition. Although, +// applications should not explicitly use these typedefs +// they may be included via a system header definition. +// WARNING: These typedefs may be removed in a future +// release. +// +// ex. the definitions in s5inode.h (now obsoleted) +// remained small to preserve compatibility +// in the S5 file system type. +type O_mode_t = uint16 /* types.h:380:18 */ // old file attribute type +type O_dev_t = int16 /* types.h:381:15 */ // old device type +type O_uid_t = uint16 /* types.h:382:18 */ // old UID type +type O_gid_t = uint16 /* types.h:383:17 */ // old GID type +type O_nlink_t = int16 /* types.h:384:15 */ // old file link type +type O_pid_t = int16 /* types.h:385:15 */ // old process id type +type O_ino_t = uint16 /* types.h:386:18 */ // old inode type + +// POSIX and XOPEN Declarations +type Key_t = int32 /* types.h:392:13 */ // IPC key type +type Mode_t = uint32 /* types.h:394:16 */ // file attribute type + +type Uid_t = uint32 /* types.h:401:22 */ // UID type + +type Gid_t = uint32 /* types.h:404:15 */ // GID type + +type Datalink_id_t = uint32 /* types.h:406:18 */ +type Vrid_t = uint32 /* types.h:407:18 */ + +type Taskid_t = int32 /* types.h:409:17 */ +type Projid_t = int32 /* types.h:410:17 */ +type Poolid_t = int32 /* types.h:411:14 */ +type Zoneid_t = int32 /* types.h:412:14 */ +type Ctid_t = int32 /* types.h:413:14 */ + +// POSIX definitions are same as defined in thread.h and synch.h. +// Any changes made to here should be reflected in corresponding +// files as described in comments. +type Pthread_t = uint32 /* types.h:420:16 */ // = thread_t in thread.h +type Pthread_key_t = uint32 /* types.h:421:16 */ // = thread_key_t in thread.h + +// "Magic numbers" tagging synchronization object types + +type X_pthread_mutex = struct { + F__pthread_mutex_flags struct { + F__pthread_mutex_flag1 uint16 + F__pthread_mutex_flag2 uint8 + F__pthread_mutex_ceiling uint8 + F__pthread_mutex_type uint16 + F__pthread_mutex_magic uint16 + } + F__pthread_mutex_lock struct { + F__ccgo_pad1 [0]uint64 + F__pthread_mutex_lock64 struct{ F__pthread_mutex_pad [8]uint8 } + } + F__pthread_mutex_data uint64 +} /* types.h:429:9 */ + +// = thread_key_t in thread.h + +// "Magic numbers" tagging synchronization object types + +type Pthread_mutex_t = X_pthread_mutex /* types.h:448:3 */ + +type X_pthread_cond = struct { + F__pthread_cond_flags struct { + F__pthread_cond_flag [4]uint8 + F__pthread_cond_type uint16 + F__pthread_cond_magic uint16 + } + F__pthread_cond_data uint64 +} /* types.h:450:9 */ + +type Pthread_cond_t = X_pthread_cond /* types.h:457:3 */ + +// UNIX 98 Extension +type X_pthread_rwlock = struct { + F__pthread_rwlock_readers int32 + F__pthread_rwlock_type uint16 + F__pthread_rwlock_magic uint16 + F__pthread_rwlock_mutex Pthread_mutex_t + F__pthread_rwlock_readercv Pthread_cond_t + F__pthread_rwlock_writercv Pthread_cond_t +} /* types.h:462:9 */ + +// UNIX 98 Extension +type Pthread_rwlock_t = X_pthread_rwlock /* types.h:469:3 */ + +// SUSV3 +type Pthread_barrier_t = struct { + F__pthread_barrier_count uint32 + F__pthread_barrier_current uint32 + F__pthread_barrier_cycle uint64 + F__pthread_barrier_reserved uint64 + F__pthread_barrier_lock Pthread_mutex_t + F__pthread_barrier_cond Pthread_cond_t +} /* types.h:481:3 */ + +type Pthread_spinlock_t = Pthread_mutex_t /* types.h:483:25 */ + +// attributes for threads, dynamically allocated by library +type X_pthread_attr = struct{ F__pthread_attrp uintptr } /* types.h:488:9 */ + +// attributes for threads, dynamically allocated by library +type Pthread_attr_t = X_pthread_attr /* types.h:490:3 */ + +// attributes for mutex, dynamically allocated by library +type X_pthread_mutexattr = struct{ F__pthread_mutexattrp uintptr } /* types.h:495:9 */ + +// attributes for mutex, dynamically allocated by library +type Pthread_mutexattr_t = X_pthread_mutexattr /* types.h:497:3 */ + +// attributes for cond, dynamically allocated by library +type X_pthread_condattr = struct{ F__pthread_condattrp uintptr } /* types.h:502:9 */ + +// attributes for cond, dynamically allocated by library +type Pthread_condattr_t = X_pthread_condattr /* types.h:504:3 */ + +// pthread_once +type X_once = struct{ F__pthread_once_pad [4]uint64 } /* types.h:509:9 */ + +// pthread_once +type Pthread_once_t = X_once /* types.h:511:3 */ + +// UNIX 98 Extensions +// attributes for rwlock, dynamically allocated by library +type X_pthread_rwlockattr = struct{ F__pthread_rwlockattrp uintptr } /* types.h:517:9 */ + +// UNIX 98 Extensions +// attributes for rwlock, dynamically allocated by library +type Pthread_rwlockattr_t = X_pthread_rwlockattr /* types.h:519:3 */ + +// SUSV3 +// attributes for pthread_barrier_t, dynamically allocated by library +type Pthread_barrierattr_t = struct{ F__pthread_barrierattrp uintptr } /* types.h:527:3 */ + +type Dev_t = uint64 /* types.h:529:17 */ // expanded device type + +type Nlink_t = uint32 /* types.h:532:16 */ // file link type +type Pid_t = int32 /* types.h:533:13 */ // size of something in bytes + +type Ssize_t = int64 /* types.h:551:14 */ // size of something in bytes or -1 + +type Time_t = int64 /* types.h:559:15 */ // time of day in seconds + +type Clock_t = int64 /* types.h:564:15 */ // relative time in a specified resolution + +type Clockid_t = int32 /* types.h:569:13 */ // clock identifier type + +type Timer_t = int32 /* types.h:574:13 */ // timer identifier type + +// BEGIN CSTYLED +type Unchar = uint8 /* types.h:580:23 */ +type Ushort = uint16 /* types.h:581:24 */ +type Uint = uint32 /* types.h:582:22 */ +type Ulong = uint64 /* types.h:583:23 */ +// END CSTYLED + +// The following is the value of type id_t to use to indicate the +// caller's current id. See procset.h for the type idtype_t +// which defines which kind of id is being specified. + +// The following value of type pfn_t is used to indicate +// invalid page frame number. + +// BEGIN CSTYLED +type U_char = uint8 /* types.h:650:23 */ +type U_short = uint16 /* types.h:651:24 */ +type U_int = uint32 /* types.h:652:22 */ +type U_long = uint64 /* types.h:653:23 */ +type X_quad = struct{ Fval [2]int32 } /* types.h:654:9 */ + +type Quad_t = X_quad /* types.h:654:38 */ // used by UFS +type Quad = Quad_t /* types.h:655:17 */ // used by UFS +// END CSTYLED + +// Nested include for BSD/sockets source compatibility. +// (The select macros used to be defined here). +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// +// Copyright 2010 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// University Copyright- Copyright (c) 1982, 1986, 1988 +// The Regents of the University of California +// All Rights Reserved +// +// University Acknowledgment- Portions of this document are derived from +// software developed by the University of California, Berkeley, and its +// contributors. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2005 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Implementation-private. This header should not be included +// directly by an application. The application should instead +// include which includes this header conditionally +// depending on which feature test macros are defined. By default, +// this header is included by . X/Open and POSIX +// standards requirements result in this header being included +// by only under a restricted set of conditions. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Time expressed in seconds and nanoseconds + +type Timespec = struct { + Ftv_sec int64 + Ftv_nsec int64 +} /* time_impl.h:57:9 */ + +// used by UFS +// END CSTYLED + +// Nested include for BSD/sockets source compatibility. +// (The select macros used to be defined here). +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// +// Copyright 2010 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// University Copyright- Copyright (c) 1982, 1986, 1988 +// The Regents of the University of California +// All Rights Reserved +// +// University Acknowledgment- Portions of this document are derived from +// software developed by the University of California, Berkeley, and its +// contributors. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2005 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Implementation-private. This header should not be included +// directly by an application. The application should instead +// include which includes this header conditionally +// depending on which feature test macros are defined. By default, +// this header is included by . X/Open and POSIX +// standards requirements result in this header being included +// by only under a restricted set of conditions. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Time expressed in seconds and nanoseconds + +type Timespec_t = Timespec /* time_impl.h:60:3 */ + +type Timestruc_t = Timespec /* time_impl.h:81:25 */ // definition per SVr4 + +// The following has been left in for backward compatibility. Portable +// applications should not use the structure name timestruc. + +// Timer specification +type Itimerspec = struct { + Fit_interval struct { + Ftv_sec int64 + Ftv_nsec int64 + } + Fit_value struct { + Ftv_sec int64 + Ftv_nsec int64 + } +} /* time_impl.h:95:9 */ + +// definition per SVr4 + +// The following has been left in for backward compatibility. Portable +// applications should not use the structure name timestruc. + +// Timer specification +type Itimerspec_t = Itimerspec /* time_impl.h:98:3 */ + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright (c) 1982, 1986, 1993 Regents of the University of California. +// All rights reserved. The Berkeley software License Agreement +// specifies the terms and conditions for redistribution. + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2020 OmniOS Community Edition (OmniOSce) Association. + +// Copyright (c) 2013, 2016 by Delphix. All rights reserved. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Structure returned by gettimeofday(2) system call, +// and used in other calls. + +type Timeval = struct { + Ftv_sec int64 + Ftv_usec int64 +} /* time.h:54:1 */ + +type Timezone = struct { + Ftz_minuteswest int32 + Ftz_dsttime int32 +} /* time.h:86:1 */ + +// Needed for longlong_t type. Placement of this due to +// including which relies on the presense of the itimerval +// structure. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2021 Oxide Computer Company + +// Operations on timevals. + +// Names of the interval timers, and structure +// defining a timer setting. +// time and when system is running on +// behalf of the process. +// time profiling of multithreaded +// programs. + +type Itimerval = struct { + Fit_interval struct { + Ftv_sec int64 + Ftv_usec int64 + } + Fit_value struct { + Ftv_sec int64 + Ftv_usec int64 + } +} /* time.h:209:1 */ + +// Definitions for commonly used resolutions. + +// Time expressed as a 64-bit nanosecond counter. +type Hrtime_t = int64 /* time.h:265:20 */ + +// The inclusion of is historical and was added for +// backward compatibility in delta 1.2 when a number of definitions +// were moved out of . More recently, the timespec and +// itimerspec structure definitions, along with the _CLOCK_*, CLOCK_*, +// _TIMER_*, and TIMER_* symbols were moved to , +// which is now included by . This change was due to POSIX +// 1003.1b-1993 and X/Open UNIX 98 requirements. For non-POSIX and +// non-X/Open applications, including this header will still make +// visible these definitions. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1988 AT&T +// All Rights Reserved + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2007 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2010 Nexenta Systems, Inc. Al rights reserved. +// Copyright 2016 Joyent, Inc. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1988 AT&T +// All Rights Reserved + +// Copyright 2014 Garrett D'Amore +// Copyright 2014 PALO, Richard. +// +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// An application should not include this header directly. Instead it +// should be included only through the inclusion of other Sun headers. +// +// The contents of this header is limited to identifiers specified in the +// C Standard. Any new identifiers specified in future amendments to the +// C Standard must be placed in this header. If these new identifiers +// are required to also be in the C++ Standard "std" namespace, then for +// anything other than macro definitions, corresponding "using" directives +// must also be added to . + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// This file and its contents are supplied under the terms of the +// Common Development and Distribution License ("CDDL"), version 1.0. +// You may only use this file in accordance with the terms of version +// 1.0 of the CDDL. +// +// A full copy of the text of the CDDL should have accompanied this +// source. A copy of the CDDL is also available via the Internet at +// http://www.illumos.org/license/CDDL. + +// Copyright 2014-2016 PALO, Richard. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// POSIX.1-2008 requires that the NULL macro be cast to type void *. + +type Tm = struct { + Ftm_sec int32 + Ftm_min int32 + Ftm_hour int32 + Ftm_mday int32 + Ftm_mon int32 + Ftm_year int32 + Ftm_wday int32 + Ftm_yday int32 + Ftm_isdst int32 +} /* time_iso.h:80:1 */ + +// Neither X/Open nor POSIX allow the inclusion of for the +// definition of the sigevent structure. Both require the inclusion +// of and when using the timer_create() function. +// However, X/Open also specifies that the sigevent structure be defined +// in as described in the header . This prevents +// compiler warnings for applications that only include and not +// also . The sigval union and the sigevent structure is +// therefore defined both here and in which gets included +// via inclusion of . +type Sigval = struct { + F__ccgo_pad1 [0]uint64 + Fsival_int int32 + F__ccgo_pad2 [4]byte +} /* time.h:125:1 */ + +type Sigevent = struct { + Fsigev_notify int32 + Fsigev_signo int32 + Fsigev_value struct { + F__ccgo_pad1 [0]uint64 + Fsival_int int32 + F__ccgo_pad2 [4]byte + } + Fsigev_notify_function uintptr + Fsigev_notify_attributes uintptr + F__sigev_pad2 int32 + F__ccgo_pad1 [4]byte +} /* time.h:133:1 */ + +type Locale_t = uintptr /* time.h:292:24 */ + +// The inclusion of is needed for the FD_CLR, +// FD_ISSET, FD_SET, and FD_SETSIZE macros as well as the +// select() prototype defined in the XOpen specifications +// beginning with XSH4v2. Placement required after definition +// for itimerval. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// +// Copyright 2010 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// University Copyright- Copyright (c) 1982, 1986, 1988 +// The Regents of the University of California +// All Rights Reserved +// +// University Acknowledgment- Portions of this document are derived from +// software developed by the University of California, Berkeley, and its +// contributors. + +// The sigset_t type is defined in and duplicated +// in as a result of XPG4v2 requirements. XPG6 +// now allows the visibility of signal.h in this header, however +// an order of inclusion problem occurs as a result of inclusion +// of in under certain conditions. +// Rather than include here, we've duplicated +// the sigset_t type instead. This type is required for the XPG6 +// introduced pselect() function also declared in this header. +type Sigset_t = struct{ F__sigbits [4]uint32 } /* select.h:76:3 */ + +// Select uses bit masks of file descriptors in longs. +// These macros manipulate such bit fields. +// FD_SETSIZE may be defined by the user, but the default here +// should be >= RLIM_FD_MAX. + +type Fd_mask = int64 /* select.h:92:14 */ +type Fds_mask = int64 /* select.h:94:14 */ + +// The value of _NBBY needs to be consistant with the value +// of NBBY in . + +type Fd_set1 = struct{ Ffds_bits [1024]int64 } /* select.h:120:9 */ + +// The value of _NBBY needs to be consistant with the value +// of NBBY in . + +type Fd_set = Fd_set1 /* select.h:125:3 */ + +// _VOID was defined to be either void or char but this is not +// required because previous SunOS compilers have accepted the void +// type. However, because many system header and source files use the +// void keyword, the volatile keyword, and ANSI C function prototypes, +// non-ANSI compilers cannot compile the system anyway. The _VOID macro +// should therefore not be used and remains for source compatibility +// only. +// CSTYLED + +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2011 Nexenta Systems, Inc. All rights reserved. +// Copyright 2015, Joyent, Inc. +// Copyright 2020 OmniOS Community Edition (OmniOSce) Association. +// Copyright (c) 1982, 1986 Regents of the University of California. +// All rights reserved. +// +// Redistribution and use in source and binary forms are permitted +// provided that this notice is preserved and that due credit is given +// to the University of California at Berkeley. The name of the University +// may not be used to endorse or promote products derived from this +// software without specific prior written permission. This software +// is provided ``as is'' without express or implied warranty. + +// Constants and structures defined by the internet system, +// according to following documents +// +// Internet ASSIGNED NUMBERS (RFC1700) and its successors: +// http://www.iana.org/assignments/protocol-numbers +// http://www.iana.org/assignments/port-numbers +// Basic Socket Interface Extensions for IPv6 (RFC2133 and its successors) +// + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2021 Oxide Computer Company + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Portions of this source code were derived from Berkeley 4.3 BSD +// under license from the Regents of the University of California. + +type Sa_family_t = uint16 /* socket_impl.h:43:18 */ + +// Structure used by kernel to store most +// addresses. +type Sockaddr = struct { + Fsa_family uint16 + Fsa_data [14]int8 +} /* socket_impl.h:50:1 */ + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1996, 2010, Oracle and/or its affiliates. All rights reserved. + +// Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// University Copyright- Copyright (c) 1982, 1986, 1988 +// The Regents of the University of California +// All Rights Reserved +// +// University Acknowledgment- Portions of this document are derived from +// software developed by the University of California, Berkeley, and its +// contributors. + +// Definitions for UNIX IPC domain. +type Sockaddr_un = struct { + Fsun_family uint16 + Fsun_path [108]int8 +} /* un.h:53:1 */ + +// Copyright 1993-2003 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright (c) 1990, 1993 +// The Regents of the University of California. All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// 1. Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// 2. Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer in the +// documentation and/or other materials provided with the distribution. +// 3. All advertising materials mentioning features or use of this software +// must display the following acknowledgement: +// This product includes software developed by the University of +// California, Berkeley and its contributors. +// 4. Neither the name of the University nor the names of its contributors +// may be used to endorse or promote products derived from this software +// without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +// SUCH DAMAGE. + +// from UCB 8.1 (Berkeley) 6/10/93 + +// A Link-Level Sockaddr may specify the interface in one of two +// ways: either by means of a system-provided index number (computed +// anew and possibly differently on every reboot), or by a human-readable +// string such as "il0" (for managerial convenience). +// +// Census taking actions, such as something akin to SIOCGCONF would return +// both the index and the human name. +// +// High volume transactions (such as giving a link-level ``from'' address +// in a recvfrom or recvmsg call) may be likely only to provide the indexed +// form, (which requires fewer copy operations and less space). +// +// The form and interpretation of the link-level address is purely a matter +// of convention between the device driver and its consumers; however, it is +// expected that all drivers for an interface of a given if_type will agree. + +// Structure of a Link-Level sockaddr: +type Sockaddr_dl = struct { + Fsdl_family uint16 + Fsdl_index uint16 + Fsdl_type uint8 + Fsdl_nlen uint8 + Fsdl_alen uint8 + Fsdl_slen uint8 + Fsdl_data [244]int8 +} /* if_dl.h:68:1 */ + +// sockaddr_storage: +// Common superset of at least AF_INET, AF_INET6 and AF_LINK sockaddr +// structures. Has sufficient size and alignment for those sockaddrs. + +// Desired maximum size, alignment size and related types. + +// To represent desired sockaddr max alignment for platform, a +// type is chosen which may depend on implementation platform architecture. +// Type chosen based on alignment size restrictions from . +// We desire to force up to (but no more than) 64-bit (8 byte) alignment, +// on platforms where it is possible to do so. (e.g not possible on ia32). +// For all currently supported platforms by our implementation +// in , (i.e. sparc, sparcv9, ia32, ia64) +// type "double" is suitable for that intent. +// +// Note: Type "double" is chosen over the more obvious integer type int64_t. +// +// int64_t is not a valid type for strict ANSI/ISO C compilation on ILP32. +type Sockaddr_maxalign_t = float64 /* socket_impl.h:85:17 */ + +// Definitions used for sockaddr_storage structure paddings design. + +type Sockaddr_storage = struct { + Fss_family uint16 + F_ss_pad1 [6]int8 + F_ss_align float64 + F_ss_pad2 [240]int8 +} /* socket_impl.h:96:1 */ + +// To be compatible with the Linux interfaces used, this structure is +// placed in socket_impl.h so that an include for will +// pickup this structure. This structure is for use with PF_PACKET +// sockets. +type Sockaddr_ll = struct { + Fsll_family uint16 + Fsll_protocol uint16 + Fsll_ifindex int32 + Fsll_hatype uint16 + Fsll_pkttype uint8 + Fsll_halen uint8 + Fsll_addr [8]uint8 +} /* socket_impl.h:111:1 */ + +// The socklen definitions are reproduced here from sys/socket.h so as to +// not introduce that namespace into existing users of netinet/in.h. +type Socklen_t = uint32 /* in.h:57:18 */ + +type Psocklen_t = uintptr /* in.h:63:15 */ + +// Symbols such as htonl() are required to be exposed through this file, +// per XNS Issue 5. This is achieved by inclusion of +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// University Copyright- Copyright (c) 1982, 1986, 1988 +// The Regents of the University of California +// All Rights Reserved +// +// University Acknowledgment- Portions of this document are derived from +// software developed by the University of California, Berkeley, and its +// contributors. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2016 Joyent, Inc. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2014 Garrett D'Amore +// +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// macros for conversion between host and (internet) network byte order + +type In_port_t = uint16 /* byteorder.h:74:18 */ + +type In_addr_t = uint32 /* byteorder.h:79:18 */ + +// Macros to reverse byte order + +// Macros to convert from a specific byte order to/from native byte order + +// Macros to read unaligned values from a specific byte order to +// native byte order + +// Macros to write unaligned values from native byte order to a specific byte +// order. + +// Note: IPv4 address data structures usage conventions. +// The "in_addr_t" type below (required by Unix standards) +// is NOT a typedef of "struct in_addr" and violates the usual +// conventions where "struct " and _t are corresponding +// typedefs. +// To minimize confusion, kernel data structures/usage prefers use +// of "ipaddr_t" as atomic uint32_t type and avoid using "in_addr_t" +// The user level APIs continue to follow the historic popular +// practice of using "struct in_addr". + +type Ipaddr_t = uint32 /* in.h:99:18 */ + +type In6_addr = struct { + F_S6_un struct { + F__ccgo_pad1 [0]uint32 + F_S6_u8 [16]uint8 + } +} /* in.h:104:1 */ + +type In6_addr_t = In6_addr /* in.h:137:25 */ + +// Protocols +// +// Some of these constant names are copied for the DTrace IP provider in +// usr/src/lib/libdtrace/common/{ip.d.in, ip.sed.in}, which should be kept +// in sync. +// Transmission Protocol + +// Port/socket numbers: network standard functions +// +// Entries should exist here for each port number compiled into an ON +// component, such as snoop. + +// Port/socket numbers: host specific functions + +// Internet Key Exchange (IKE) ports + +// UNIX TCP sockets + +// UNIX UDP sockets + +// DHCPv6 UDP ports + +// Ports < IPPORT_RESERVED are reserved for +// privileged processes (e.g. root). +// Ports > IPPORT_USERRESERVED are reserved +// for servers, not necessarily privileged. + +// Link numbers + +// IPv4 Internet address +// This definition contains obsolete fields for compatibility +// with SunOS 3.x and 4.2bsd. The presence of subnets renders +// divisions into fixed fields misleading at best. New code +// should use only the s_addr field. + +type In_addr = struct { + FS_un struct { + F__ccgo_pad1 [0]uint32 + FS_un_b struct { + Fs_b1 uint8 + Fs_b2 uint8 + Fs_b3 uint8 + Fs_b4 uint8 + } + } +} /* in.h:301:1 */ + +// Definitions of bits in internet address integers. +// On subnets, the decomposition of addresses to host and net parts +// is done according to subnet mask, not the masks here. +// +// Note that with the introduction of CIDR, IN_CLASSA, IN_CLASSB, +// IN_CLASSC, IN_CLASSD and IN_CLASSE macros have become "de-facto +// obsolete". IN_MULTICAST macro should be used to test if a address +// is a multicast address. + +// We have removed CLASS E checks from the kernel +// But we preserve these defines for userland in order +// to avoid compile breakage of some 3rd party piece of software + +// Scoped IPv4 prefixes (in host byte-order) + +// RFC 3927 IPv4 link local address (i in host byte-order) + +// Well known 6to4 Relay Router Anycast address defined in RFC 3068 + +// Define a macro to stuff the loopback address into an Internet address + +// IPv4 Socket address. +type Sockaddr_in = struct { + Fsin_family uint16 + Fsin_port uint16 + Fsin_addr struct { + FS_un struct { + F__ccgo_pad1 [0]uint32 + FS_un_b struct { + Fs_b1 uint8 + Fs_b2 uint8 + Fs_b3 uint8 + Fs_b4 uint8 + } + } + } + Fsin_zero [8]int8 +} /* in.h:409:1 */ + +// IPv6 socket address. +type Sockaddr_in6 = struct { + Fsin6_family uint16 + Fsin6_port uint16 + Fsin6_flowinfo uint32 + Fsin6_addr struct { + F_S6_un struct { + F__ccgo_pad1 [0]uint32 + F_S6_u8 [16]uint8 + } + } + Fsin6_scope_id uint32 + F__sin6_src_id uint32 +} /* in.h:424:1 */ + +// Macros for accessing the traffic class and flow label fields from +// sin6_flowinfo. +// These are designed to be applied to a 32-bit value. + +// masks + +// Note: Macros IN6ADDR_ANY_INIT and IN6ADDR_LOOPBACK_INIT are for +// use as RHS of Static initializers of "struct in6_addr" (or in6_addr_t) +// only. They need to be different for User/Kernel versions because union +// component data structure is defined differently (it is identical at +// binary representation level). +// +// const struct in6_addr IN6ADDR_ANY_INIT; +// const struct in6_addr IN6ADDR_LOOPBACK_INIT; + +// RFC 2553 specifies the following macros. Their type is defined +// as "int" in the RFC but they only have boolean significance +// (zero or non-zero). For the purposes of our comment notation, +// we assume a hypothetical type "bool" defined as follows to +// write the prototypes assumed for macros in our comments better. +// +// typedef int bool; + +// IN6 macros used to test for special IPv6 addresses +// (Mostly from spec) +// +// bool IN6_IS_ADDR_UNSPECIFIED (const struct in6_addr *); +// bool IN6_IS_ADDR_LOOPBACK (const struct in6_addr *); +// bool IN6_IS_ADDR_MULTICAST (const struct in6_addr *); +// bool IN6_IS_ADDR_LINKLOCAL (const struct in6_addr *); +// bool IN6_IS_ADDR_SITELOCAL (const struct in6_addr *); +// bool IN6_IS_ADDR_V4MAPPED (const struct in6_addr *); +// bool IN6_IS_ADDR_V4MAPPED_ANY(const struct in6_addr *); -- Not from RFC2553 +// bool IN6_IS_ADDR_V4COMPAT (const struct in6_addr *); +// bool IN6_IS_ADDR_MC_RESERVED (const struct in6_addr *); -- Not from RFC2553 +// bool IN6_IS_ADDR_MC_NODELOCAL(const struct in6_addr *); +// bool IN6_IS_ADDR_MC_LINKLOCAL(const struct in6_addr *); +// bool IN6_IS_ADDR_MC_SITELOCAL(const struct in6_addr *); +// bool IN6_IS_ADDR_MC_ORGLOCAL (const struct in6_addr *); +// bool IN6_IS_ADDR_MC_GLOBAL (const struct in6_addr *); +// bool IN6_IS_ADDR_6TO4 (const struct in6_addr *); -- Not from RFC2553 +// bool IN6_ARE_6TO4_PREFIX_EQUAL(const struct in6_addr *, +// const struct in6_addr *); -- Not from RFC2553 +// bool IN6_IS_ADDR_LINKSCOPE (const struct in6addr *); -- Not from RFC2553 + +// IN6_IS_ADDR_V4MAPPED - A IPv4 mapped INADDR_ANY +// Note: This macro is currently NOT defined in RFC2553 specification +// and not a standard macro that portable applications should use. + +// Exclude loopback and unspecified address + +// Note: +// IN6_IS_ADDR_MC_RESERVED macro is currently NOT defined in RFC2553 +// specification and not a standard macro that portable applications +// should use. + +// The IN6_IS_ADDR_MC_SOLICITEDNODE macro is not defined in any standard or +// RFC, and shouldn't be used by portable applications. It is used to see +// if an address is a solicited-node multicast address, which is prefixed +// with ff02:0:0:0:0:1:ff00::/104. + +// Macros to a) test for 6to4 IPv6 address, and b) to test if two +// 6to4 addresses have the same /48 prefix, and, hence, are from the +// same 6to4 site. + +// IN6_IS_ADDR_LINKSCOPE +// Identifies an address as being either link-local, link-local multicast or +// node-local multicast. All types of addresses are considered to be unique +// within the scope of a given link. + +// Useful utility macros for operations with IPv6 addresses +// Note: These macros are NOT defined in the RFC2553 or any other +// standard specification and are not standard macros that portable +// applications should use. + +// IN6_V4MAPPED_TO_INADDR +// IN6_V4MAPPED_TO_IPADDR +// Assign a IPv4-Mapped IPv6 address to an IPv4 address. +// Note: These macros are NOT defined in RFC2553 or any other standard +// specification and are not macros that portable applications should +// use. +// +// void IN6_V4MAPPED_TO_INADDR(const in6_addr_t *v6, struct in_addr *v4); +// void IN6_V4MAPPED_TO_IPADDR(const in6_addr_t *v6, ipaddr_t v4); +// + +// IN6_INADDR_TO_V4MAPPED +// IN6_IPADDR_TO_V4MAPPED +// Assign a IPv4 address address to an IPv6 address as a IPv4-mapped +// address. +// Note: These macros are NOT defined in RFC2553 or any other standard +// specification and are not macros that portable applications should +// use. +// +// void IN6_INADDR_TO_V4MAPPED(const struct in_addr *v4, in6_addr_t *v6); +// void IN6_IPADDR_TO_V4MAPPED(const ipaddr_t v4, in6_addr_t *v6); +// + +// IN6_6TO4_TO_V4ADDR +// Extract the embedded IPv4 address from the prefix to a 6to4 IPv6 +// address. +// Note: This macro is NOT defined in RFC2553 or any other standard +// specification and is not a macro that portable applications should +// use. +// Note: we don't use the IPADDR form of the macro because we need +// to do a bytewise copy; the V4ADDR in the 6to4 address is not +// 32-bit aligned. +// +// void IN6_6TO4_TO_V4ADDR(const in6_addr_t *v6, struct in_addr *v4); +// + +// IN6_V4ADDR_TO_6TO4 +// Given an IPv4 address and an IPv6 address for output, a 6to4 address +// will be created from the IPv4 Address. +// Note: This method for creating 6to4 addresses is not standardized +// outside of Solaris. The newly created 6to4 address will be of the form +// 2002::::, where SUBNETID will equal 0 and +// HOSTID will equal 1. +// +// void IN6_V4ADDR_TO_6TO4(const struct in_addr *v4, in6_addr_t *v6) +// + +// IN6_ARE_ADDR_EQUAL (defined in RFC2292) +// Compares if IPv6 addresses are equal. +// Note: Compares in order of high likelyhood of a miss so we minimize +// compares. (Current heuristic order, compare in reverse order of +// uint32_t units) +// +// bool IN6_ARE_ADDR_EQUAL(const struct in6_addr *, +// const struct in6_addr *); + +// IN6_ARE_PREFIXEDADDR_EQUAL (not defined in RFCs) +// Compares if prefixed parts of IPv6 addresses are equal. +// +// uint32_t IN6_MASK_FROM_PREFIX(int, int); +// bool IN6_ARE_PREFIXEDADDR_EQUAL(const struct in6_addr *, +// const struct in6_addr *, +// int); + +// Options for use with [gs]etsockopt at the IP level. +// +// Note: Some of the IP_ namespace has conflict with and +// and is exposed through . (It also requires exposing +// options not implemented). The options with potential +// for conflicts use #ifndef guards. + +// IP_PKTINFO and IP_RECVPKTINFO have same value. Size of argument passed in +// is used to differentiate b/w the two. + +// Different preferences that can be requested from IPSEC protocols. +// This can be used with the setsockopt() call to set per socket security +// options. When the application uses per-socket API, we will reflect +// the request on both outbound and inbound packets. + +type Ipsec_req = struct { + Fipsr_ah_req uint32 + Fipsr_esp_req uint32 + Fipsr_self_encap_req uint32 + Fipsr_auth_alg uint8 + Fipsr_esp_alg uint8 + Fipsr_esp_auth_alg uint8 + F__ccgo_pad1 [1]byte +} /* in.h:950:9 */ + +// Macros for accessing the traffic class and flow label fields from +// sin6_flowinfo. +// These are designed to be applied to a 32-bit value. + +// masks + +// Note: Macros IN6ADDR_ANY_INIT and IN6ADDR_LOOPBACK_INIT are for +// use as RHS of Static initializers of "struct in6_addr" (or in6_addr_t) +// only. They need to be different for User/Kernel versions because union +// component data structure is defined differently (it is identical at +// binary representation level). +// +// const struct in6_addr IN6ADDR_ANY_INIT; +// const struct in6_addr IN6ADDR_LOOPBACK_INIT; + +// RFC 2553 specifies the following macros. Their type is defined +// as "int" in the RFC but they only have boolean significance +// (zero or non-zero). For the purposes of our comment notation, +// we assume a hypothetical type "bool" defined as follows to +// write the prototypes assumed for macros in our comments better. +// +// typedef int bool; + +// IN6 macros used to test for special IPv6 addresses +// (Mostly from spec) +// +// bool IN6_IS_ADDR_UNSPECIFIED (const struct in6_addr *); +// bool IN6_IS_ADDR_LOOPBACK (const struct in6_addr *); +// bool IN6_IS_ADDR_MULTICAST (const struct in6_addr *); +// bool IN6_IS_ADDR_LINKLOCAL (const struct in6_addr *); +// bool IN6_IS_ADDR_SITELOCAL (const struct in6_addr *); +// bool IN6_IS_ADDR_V4MAPPED (const struct in6_addr *); +// bool IN6_IS_ADDR_V4MAPPED_ANY(const struct in6_addr *); -- Not from RFC2553 +// bool IN6_IS_ADDR_V4COMPAT (const struct in6_addr *); +// bool IN6_IS_ADDR_MC_RESERVED (const struct in6_addr *); -- Not from RFC2553 +// bool IN6_IS_ADDR_MC_NODELOCAL(const struct in6_addr *); +// bool IN6_IS_ADDR_MC_LINKLOCAL(const struct in6_addr *); +// bool IN6_IS_ADDR_MC_SITELOCAL(const struct in6_addr *); +// bool IN6_IS_ADDR_MC_ORGLOCAL (const struct in6_addr *); +// bool IN6_IS_ADDR_MC_GLOBAL (const struct in6_addr *); +// bool IN6_IS_ADDR_6TO4 (const struct in6_addr *); -- Not from RFC2553 +// bool IN6_ARE_6TO4_PREFIX_EQUAL(const struct in6_addr *, +// const struct in6_addr *); -- Not from RFC2553 +// bool IN6_IS_ADDR_LINKSCOPE (const struct in6addr *); -- Not from RFC2553 + +// IN6_IS_ADDR_V4MAPPED - A IPv4 mapped INADDR_ANY +// Note: This macro is currently NOT defined in RFC2553 specification +// and not a standard macro that portable applications should use. + +// Exclude loopback and unspecified address + +// Note: +// IN6_IS_ADDR_MC_RESERVED macro is currently NOT defined in RFC2553 +// specification and not a standard macro that portable applications +// should use. + +// The IN6_IS_ADDR_MC_SOLICITEDNODE macro is not defined in any standard or +// RFC, and shouldn't be used by portable applications. It is used to see +// if an address is a solicited-node multicast address, which is prefixed +// with ff02:0:0:0:0:1:ff00::/104. + +// Macros to a) test for 6to4 IPv6 address, and b) to test if two +// 6to4 addresses have the same /48 prefix, and, hence, are from the +// same 6to4 site. + +// IN6_IS_ADDR_LINKSCOPE +// Identifies an address as being either link-local, link-local multicast or +// node-local multicast. All types of addresses are considered to be unique +// within the scope of a given link. + +// Useful utility macros for operations with IPv6 addresses +// Note: These macros are NOT defined in the RFC2553 or any other +// standard specification and are not standard macros that portable +// applications should use. + +// IN6_V4MAPPED_TO_INADDR +// IN6_V4MAPPED_TO_IPADDR +// Assign a IPv4-Mapped IPv6 address to an IPv4 address. +// Note: These macros are NOT defined in RFC2553 or any other standard +// specification and are not macros that portable applications should +// use. +// +// void IN6_V4MAPPED_TO_INADDR(const in6_addr_t *v6, struct in_addr *v4); +// void IN6_V4MAPPED_TO_IPADDR(const in6_addr_t *v6, ipaddr_t v4); +// + +// IN6_INADDR_TO_V4MAPPED +// IN6_IPADDR_TO_V4MAPPED +// Assign a IPv4 address address to an IPv6 address as a IPv4-mapped +// address. +// Note: These macros are NOT defined in RFC2553 or any other standard +// specification and are not macros that portable applications should +// use. +// +// void IN6_INADDR_TO_V4MAPPED(const struct in_addr *v4, in6_addr_t *v6); +// void IN6_IPADDR_TO_V4MAPPED(const ipaddr_t v4, in6_addr_t *v6); +// + +// IN6_6TO4_TO_V4ADDR +// Extract the embedded IPv4 address from the prefix to a 6to4 IPv6 +// address. +// Note: This macro is NOT defined in RFC2553 or any other standard +// specification and is not a macro that portable applications should +// use. +// Note: we don't use the IPADDR form of the macro because we need +// to do a bytewise copy; the V4ADDR in the 6to4 address is not +// 32-bit aligned. +// +// void IN6_6TO4_TO_V4ADDR(const in6_addr_t *v6, struct in_addr *v4); +// + +// IN6_V4ADDR_TO_6TO4 +// Given an IPv4 address and an IPv6 address for output, a 6to4 address +// will be created from the IPv4 Address. +// Note: This method for creating 6to4 addresses is not standardized +// outside of Solaris. The newly created 6to4 address will be of the form +// 2002::::, where SUBNETID will equal 0 and +// HOSTID will equal 1. +// +// void IN6_V4ADDR_TO_6TO4(const struct in_addr *v4, in6_addr_t *v6) +// + +// IN6_ARE_ADDR_EQUAL (defined in RFC2292) +// Compares if IPv6 addresses are equal. +// Note: Compares in order of high likelyhood of a miss so we minimize +// compares. (Current heuristic order, compare in reverse order of +// uint32_t units) +// +// bool IN6_ARE_ADDR_EQUAL(const struct in6_addr *, +// const struct in6_addr *); + +// IN6_ARE_PREFIXEDADDR_EQUAL (not defined in RFCs) +// Compares if prefixed parts of IPv6 addresses are equal. +// +// uint32_t IN6_MASK_FROM_PREFIX(int, int); +// bool IN6_ARE_PREFIXEDADDR_EQUAL(const struct in6_addr *, +// const struct in6_addr *, +// int); + +// Options for use with [gs]etsockopt at the IP level. +// +// Note: Some of the IP_ namespace has conflict with and +// and is exposed through . (It also requires exposing +// options not implemented). The options with potential +// for conflicts use #ifndef guards. + +// IP_PKTINFO and IP_RECVPKTINFO have same value. Size of argument passed in +// is used to differentiate b/w the two. + +// Different preferences that can be requested from IPSEC protocols. +// This can be used with the setsockopt() call to set per socket security +// options. When the application uses per-socket API, we will reflect +// the request on both outbound and inbound packets. + +type Ipsec_req_t = Ipsec_req /* in.h:957:3 */ + +// MCAST_* options are protocol-independent. The actual definitions +// are with the v6 options below; this comment is here to note the +// namespace usage. +// +// #define MCAST_JOIN_GROUP 0x29 +// #define MCAST_LEAVE_GROUP 0x2a +// #define MCAST_BLOCK_SOURCE 0x2b +// #define MCAST_UNBLOCK_SOURCE 0x2c +// #define MCAST_JOIN_SOURCE_GROUP 0x2d +// #define MCAST_LEAVE_SOURCE_GROUP 0x2e + +// SunOS private (potentially not portable) IP_ option names +// can be reused 0x44 + +// Option values and names (when !_XPG5) shared with + +// The following option values are reserved by +// +// T_IP_OPTIONS 0x107 - IP per-packet options +// T_IP_TOS 0x108 - IP per packet type of service + +// Default value constants for multicast attributes controlled by +// IP*_MULTICAST_LOOP and IP*_MULTICAST_{TTL,HOPS} options. + +// Argument structure for IP_ADD_MEMBERSHIP and IP_DROP_MEMBERSHIP. +type Ip_mreq = struct { + Fimr_multiaddr struct { + FS_un struct { + F__ccgo_pad1 [0]uint32 + FS_un_b struct { + Fs_b1 uint8 + Fs_b2 uint8 + Fs_b3 uint8 + Fs_b4 uint8 + } + } + } + Fimr_interface struct { + FS_un struct { + F__ccgo_pad1 [0]uint32 + FS_un_b struct { + Fs_b1 uint8 + Fs_b2 uint8 + Fs_b3 uint8 + Fs_b4 uint8 + } + } + } +} /* in.h:1015:1 */ + +// Argument structure for IP_BLOCK_SOURCE, IP_UNBLOCK_SOURCE, +// IP_ADD_SOURCE_MEMBERSHIP, and IP_DROP_SOURCE_MEMBERSHIP. +type Ip_mreq_source = struct { + Fimr_multiaddr struct { + FS_un struct { + F__ccgo_pad1 [0]uint32 + FS_un_b struct { + Fs_b1 uint8 + Fs_b2 uint8 + Fs_b3 uint8 + Fs_b4 uint8 + } + } + } + Fimr_sourceaddr struct { + FS_un struct { + F__ccgo_pad1 [0]uint32 + FS_un_b struct { + Fs_b1 uint8 + Fs_b2 uint8 + Fs_b3 uint8 + Fs_b4 uint8 + } + } + } + Fimr_interface struct { + FS_un struct { + F__ccgo_pad1 [0]uint32 + FS_un_b struct { + Fs_b1 uint8 + Fs_b2 uint8 + Fs_b3 uint8 + Fs_b4 uint8 + } + } + } +} /* in.h:1024:1 */ + +// Argument structure for IPV6_JOIN_GROUP and IPV6_LEAVE_GROUP on +// IPv6 addresses. +type Ipv6_mreq = struct { + Fipv6mr_multiaddr struct { + F_S6_un struct { + F__ccgo_pad1 [0]uint32 + F_S6_u8 [16]uint8 + } + } + Fipv6mr_interface uint32 +} /* in.h:1034:1 */ + +// Use #pragma pack() construct to force 32-bit alignment on amd64. +// This is needed to keep the structure size and offsets consistent +// between a 32-bit app and the 64-bit amd64 kernel in structures +// where 64-bit alignment would create gaps (in this case, structures +// which have a uint32_t followed by a struct sockaddr_storage). + +// Argument structure for MCAST_JOIN_GROUP and MCAST_LEAVE_GROUP. +type Group_req = struct { + Fgr_interface uint32 + F__ccgo_pad1 [4]byte + Fgr_group struct { + Fss_family uint16 + F_ss_pad1 [6]int8 + F_ss_align float64 + F_ss_pad2 [240]int8 + } +} /* in.h:1053:1 */ + +// Argument structure for MCAST_BLOCK_SOURCE, MCAST_UNBLOCK_SOURCE, +// MCAST_JOIN_SOURCE_GROUP, MCAST_LEAVE_SOURCE_GROUP. +type Group_source_req = struct { + Fgsr_interface uint32 + F__ccgo_pad1 [4]byte + Fgsr_group struct { + Fss_family uint16 + F_ss_pad1 [6]int8 + F_ss_align float64 + F_ss_pad2 [240]int8 + } + Fgsr_source struct { + Fss_family uint16 + F_ss_pad1 [6]int8 + F_ss_align float64 + F_ss_pad2 [240]int8 + } +} /* in.h:1062:1 */ + +// Argument for SIOC[GS]MSFILTER ioctls +type Group_filter = struct { + Fgf_interface uint32 + F__ccgo_pad1 [4]byte + Fgf_group struct { + Fss_family uint16 + F_ss_pad1 [6]int8 + F_ss_align float64 + F_ss_pad2 [240]int8 + } + Fgf_fmode uint32 + Fgf_numsrc uint32 + Fgf_slist [1]struct { + Fss_family uint16 + F_ss_pad1 [6]int8 + F_ss_align float64 + F_ss_pad2 [240]int8 + } +} /* in.h:1071:1 */ + +// Argument for SIOC[GS]IPMSFILTER ioctls (IPv4-specific) +type Ip_msfilter = struct { + Fimsf_multiaddr struct { + FS_un struct { + F__ccgo_pad1 [0]uint32 + FS_un_b struct { + Fs_b1 uint8 + Fs_b2 uint8 + Fs_b3 uint8 + Fs_b4 uint8 + } + } + } + Fimsf_interface struct { + FS_un struct { + F__ccgo_pad1 [0]uint32 + FS_un_b struct { + Fs_b1 uint8 + Fs_b2 uint8 + Fs_b3 uint8 + Fs_b4 uint8 + } + } + } + Fimsf_fmode uint32 + Fimsf_numsrc uint32 + Fimsf_slist [1]struct { + FS_un struct { + F__ccgo_pad1 [0]uint32 + FS_un_b struct { + Fs_b1 uint8 + Fs_b2 uint8 + Fs_b3 uint8 + Fs_b4 uint8 + } + } + } +} /* in.h:1090:1 */ + +// Definitions needed for [gs]etsourcefilter(), [gs]etipv4sourcefilter() + +// Argument struct for IP_PKTINFO option +type In_pktinfo = struct { + Fipi_ifindex uint32 + Fipi_spec_dst struct { + FS_un struct { + F__ccgo_pad1 [0]uint32 + FS_un_b struct { + Fs_b1 uint8 + Fs_b2 uint8 + Fs_b3 uint8 + Fs_b4 uint8 + } + } + } + Fipi_addr struct { + FS_un struct { + F__ccgo_pad1 [0]uint32 + FS_un_b struct { + Fs_b1 uint8 + Fs_b2 uint8 + Fs_b3 uint8 + Fs_b4 uint8 + } + } + } +} /* in.h:1127:9 */ + +// Definitions needed for [gs]etsourcefilter(), [gs]etipv4sourcefilter() + +// Argument struct for IP_PKTINFO option +type In_pktinfo_t = In_pktinfo /* in.h:1131:3 */ + +// Argument struct for IPV6_PKTINFO option +type In6_pktinfo = struct { + Fipi6_addr struct { + F_S6_un struct { + F__ccgo_pad1 [0]uint32 + F_S6_u8 [16]uint8 + } + } + Fipi6_ifindex uint32 +} /* in.h:1136:1 */ + +// Argument struct for IPV6_MTUINFO option +type Ip6_mtuinfo = struct { + Fip6m_addr struct { + Fsin6_family uint16 + Fsin6_port uint16 + Fsin6_flowinfo uint32 + Fsin6_addr struct { + F_S6_un struct { + F__ccgo_pad1 [0]uint32 + F_S6_u8 [16]uint8 + } + } + Fsin6_scope_id uint32 + F__sin6_src_id uint32 + } + Fip6m_mtu uint32 +} /* in.h:1144:1 */ + +// Argument structure for IP_ADD_PROXY_ADDR. +// Note that this is an unstable, experimental interface. It may change +// later. Don't use it unless you know what it is. +type In_prefix_t = struct { + Fin_prefix_addr In_addr + Fin_prefix_len uint32 +} /* in.h:1183:3 */ + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved. +// Copyright 2015, Joyent, Inc. All rights reserved. +// Copyright 2022 Garrett D'Amore +// + +// Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// University Copyright- Copyright (c) 1982, 1986, 1988 +// The Regents of the University of California +// All Rights Reserved +// +// University Acknowledgment- Portions of this document are derived from +// software developed by the University of California, Berkeley, and its +// contributors. + +// Copyright (c) 2013, OmniTI Computer Consulting, Inc. All rights reserved. + +// Copyright (c) 2014, Joyent, Inc. All rights reserved. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2021 Oxide Computer Company + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2014 Garrett D'Amore +// +// Copyright 2010 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright (c) 2015, Joyent, Inc. All rights reserved. + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// University Copyright- Copyright (c) 1982, 1986, 1988 +// The Regents of the University of California +// All Rights Reserved +// +// University Acknowledgment- Portions of this document are derived from +// software developed by the University of California, Berkeley, and its +// contributors. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2021 Oxide Computer Company + +// I/O parameter information. A uio structure describes the I/O which +// is to be performed by an operation. Typically the data movement will +// be performed by a routine such as uiomove(), which updates the uio +// structure to reflect what was done. + +type Iovec = struct { + Fiov_base uintptr + Fiov_len uint64 +} /* uio.h:68:9 */ + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved. +// Copyright 2015, Joyent, Inc. All rights reserved. +// Copyright 2022 Garrett D'Amore +// + +// Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// University Copyright- Copyright (c) 1982, 1986, 1988 +// The Regents of the University of California +// All Rights Reserved +// +// University Acknowledgment- Portions of this document are derived from +// software developed by the University of California, Berkeley, and its +// contributors. + +// Copyright (c) 2013, OmniTI Computer Consulting, Inc. All rights reserved. + +// Copyright (c) 2014, Joyent, Inc. All rights reserved. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2021 Oxide Computer Company + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2014 Garrett D'Amore +// +// Copyright 2010 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright (c) 2015, Joyent, Inc. All rights reserved. + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// University Copyright- Copyright (c) 1982, 1986, 1988 +// The Regents of the University of California +// All Rights Reserved +// +// University Acknowledgment- Portions of this document are derived from +// software developed by the University of California, Berkeley, and its +// contributors. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2021 Oxide Computer Company + +// I/O parameter information. A uio structure describes the I/O which +// is to be performed by an operation. Typically the data movement will +// be performed by a routine such as uiomove(), which updates the uio +// structure to reflect what was done. + +type Iovec_t = Iovec /* uio.h:75:3 */ + +// Segment flag values. +type Uio_seg_t = uint32 /* uio.h:93:70 */ + +type Uio = struct { + Fuio_iov uintptr + Fuio_iovcnt int32 + F__ccgo_pad1 [4]byte + F_uio_offset Lloff_t + Fuio_segflg uint32 + Fuio_fmode uint16 + Fuio_extflg uint16 + F_uio_limit Lloff_t + Fuio_resid int64 +} /* uio.h:95:9 */ + +type Uio_t = Uio /* uio.h:104:3 */ + +// Extended uio_t uioa_t used for asynchronous uio. +// +// Note: UIOA_IOV_MAX is defined and used as it is in "fs/vncalls.c" +// as there isn't a formal definition of IOV_MAX for the kernel. + +type Uioa_page_s = struct { + Fuioa_pfncnt int32 + F__ccgo_pad1 [4]byte + Fuioa_ppp uintptr + Fuioa_base uintptr + Fuioa_len uint64 +} /* uio.h:114:9 */ + +// Extended uio_t uioa_t used for asynchronous uio. +// +// Note: UIOA_IOV_MAX is defined and used as it is in "fs/vncalls.c" +// as there isn't a formal definition of IOV_MAX for the kernel. + +type Uioa_page_t = Uioa_page_s /* uio.h:119:3 */ + +type Uioa_s = struct { + Fuio_iov uintptr + Fuio_iovcnt int32 + F__ccgo_pad1 [4]byte + F_uio_offset Lloff_t + Fuio_segflg uint32 + Fuio_fmode uint16 + Fuio_extflg uint16 + F_uio_limit Lloff_t + Fuio_resid int64 + Fuioa_state uint32 + F__ccgo_pad2 [4]byte + Fuioa_mbytes int64 + Fuioa_lcur uintptr + Fuioa_lppp uintptr + Fuioa_hwst [4]uintptr + Fuioa_locked [16]Uioa_page_t +} /* uio.h:121:9 */ + +type Uioa_t = Uioa_s /* uio.h:139:3 */ + +// uio extensions +// +// PSARC 2009/478: Copy Reduction Interfaces +type Xuio_type_t = uint32 /* uio.h:150:3 */ + +type Xuio = struct { + Fxu_uio Uio_t + Fxu_type uint32 + F__ccgo_pad1 [4]byte + Fxu_ext struct { + Fxu_aio struct { + Fxu_a_state uint32 + F__ccgo_pad1 [4]byte + Fxu_a_mbytes int64 + Fxu_a_lcur uintptr + Fxu_a_lppp uintptr + Fxu_a_hwst [4]uintptr + Fxu_a_locked [16]Uioa_page_t + } + } +} /* uio.h:152:9 */ + +type Xuio_t = Xuio /* uio.h:189:3 */ + +// I/O direction. +type Uio_rw_t = uint32 /* uio.h:220:45 */ + +// uio_extflg: extended flags +// +// NOTE: This flag will be used in uiomove to determine if non-temporal +// access, ie, access bypassing caches, should be used. Filesystems that +// don't initialize this field could experience suboptimal performance due to +// the random data the field contains. +// +// NOTE: This flag is also used by uioasync callers to pass an extended +// uio_t (uioa_t), to uioasync enabled consumers. Unlike above all +// consumers of a uioa_t require the uio_extflg to be initialized. + +// Global uioasync capability shadow state. +type Uioasync_s = struct { + Fenabled uint32 + F__ccgo_pad1 [4]byte + Fmincnt uint64 +} /* uio.h:243:9 */ + +// uio_extflg: extended flags +// +// NOTE: This flag will be used in uiomove to determine if non-temporal +// access, ie, access bypassing caches, should be used. Filesystems that +// don't initialize this field could experience suboptimal performance due to +// the random data the field contains. +// +// NOTE: This flag is also used by uioasync callers to pass an extended +// uio_t (uioa_t), to uioasync enabled consumers. Unlike above all +// consumers of a uioa_t require the uio_extflg to be initialized. + +// Global uioasync capability shadow state. +type Uioasync_t = Uioasync_s /* uio.h:246:3 */ + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Portions of this source code were derived from Berkeley 4.3 BSD +// under license from the Regents of the University of California. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2015 Joyent, Inc. + +type Netconfig = struct { + Fnc_netid uintptr + Fnc_semantics uint32 + Fnc_flag uint32 + Fnc_protofmly uintptr + Fnc_proto uintptr + Fnc_device uintptr + Fnc_nlookups uint32 + F__ccgo_pad1 [4]byte + Fnc_lookups uintptr + Fnc_unused [8]uint32 +} /* netconfig.h:44:1 */ + +type NCONF_HANDLE = struct { + Fnc_head uintptr + Fnc_curr uintptr +} /* netconfig.h:59:3 */ + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2014 Garrett D'Amore +// +// Copyright (c) 1995, 1998 by Sun Microsystems, Inc. +// All rights reserved. + +// Copyright 2015, Joyent, Inc. + +// Structure of file descriptor/event pairs supplied in +// the poll arrays. +type Pollfd = struct { + Ffd int32 + Fevents int16 + Frevents int16 +} /* poll.h:48:9 */ + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2014 Garrett D'Amore +// +// Copyright (c) 1995, 1998 by Sun Microsystems, Inc. +// All rights reserved. + +// Copyright 2015, Joyent, Inc. + +// Structure of file descriptor/event pairs supplied in +// the poll arrays. +type Pollfd_t = Pollfd /* poll.h:52:3 */ + +type Nfds_t = uint64 /* poll.h:54:23 */ + +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2011 Nexenta Systems, Inc. All rights reserved. +// Copyright 2015, Joyent, Inc. +// Copyright 2020 OmniOS Community Edition (OmniOSce) Association. +// Copyright (c) 1982, 1986 Regents of the University of California. +// All rights reserved. +// +// Redistribution and use in source and binary forms are permitted +// provided that this notice is preserved and that due credit is given +// to the University of California at Berkeley. The name of the University +// may not be used to endorse or promote products derived from this +// software without specific prior written permission. This software +// is provided ``as is'' without express or implied warranty. + +// Constants and structures defined by the internet system, +// according to following documents +// +// Internet ASSIGNED NUMBERS (RFC1700) and its successors: +// http://www.iana.org/assignments/protocol-numbers +// http://www.iana.org/assignments/port-numbers +// Basic Socket Interface Extensions for IPv6 (RFC2133 and its successors) +// + +// Definitions related to sockets: types, address families, options. + +// Types + +// Flags for socket() and accept4() + +// Option flags per-socket. + +// Socket options are passed using a signed integer, but it is also rare +// for more than one to ever be passed at the same time with setsockopt +// and only one at a time can be retrieved with getsockopt. +// +// Since the lower numbers cannot be renumbered for compatibility reasons, +// it would seem that we need to start a new number space (0x40000000 - +// 0x7fffffff) for those that don't need to be stored as a bit flag +// somewhere. This limits the flag options to 30 but that seems to be +// plenty, anyway. 0x40000000 is reserved for future use. + +// N.B.: The following definition is present only for compatibility +// with release 3.0. It will disappear in later releases. + +// Additional options, not kept in so_options. + +// "Socket"-level control message types: + +// Socket filter options + +// Structure returned by FIL_LIST +type Fil_info = struct { + Ffi_flags int32 + Ffi_pos int32 + Ffi_name [32]int8 +} /* socket.h:225:1 */ + +// Structure used for manipulating linger option. +type Linger = struct { + Fl_onoff int32 + Fl_linger int32 +} /* socket.h:254:1 */ + +// Levels for (get/set)sockopt() that don't apply to a specific protocol. + +// Address families. +// +// Some of these constant names are copied for the DTrace IP provider in +// usr/src/lib/libdtrace/common/{ip.d.in, ip.sed.in}, which should be kept +// in sync. + +// Protocol families, same as address families for now. + +// Maximum queue length specifiable by listen. + +// Message header for recvmsg and sendmsg calls. +type Msghdr = struct { + Fmsg_name uintptr + Fmsg_namelen uint32 + F__ccgo_pad1 [4]byte + Fmsg_iov uintptr + Fmsg_iovlen int32 + F__ccgo_pad2 [4]byte + Fmsg_accrights uintptr + Fmsg_accrightslen int32 + F__ccgo_pad3 [4]byte +} /* socket.h:365:1 */ + +// with left over data + +// Obsolete but kept for compilation compatibility. Use IOV_MAX. + +// Added for XPGv2 compliance + +type Cmsghdr = struct { + Fcmsg_len uint32 + Fcmsg_level int32 + Fcmsg_type int32 +} /* socket.h:462:1 */ + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +type Hostent = struct { + Fh_name uintptr + Fh_aliases uintptr + Fh_addrtype int32 + Fh_length int32 + Fh_addr_list uintptr +} /* netdb.h:96:1 */ + +// addrinfo introduced with IPv6 for Protocol-Independent Hostname +// and Service Name Translation. + +type Addrinfo = struct { + Fai_flags int32 + Fai_family int32 + Fai_socktype int32 + Fai_protocol int32 + Fai_addrlen uint32 + F__ccgo_pad1 [4]byte + Fai_canonname uintptr + Fai_addr uintptr + Fai_next uintptr +} /* netdb.h:112:1 */ + +// The flag 0x8000 is currently reserved for private use between libnsl and +// libsocket. See lib/libsocket/inet/getaddrinfo.c for more information. +// addrinfo flags + +// getipnodebyname() flags + +// These were defined in RFC 2553 but not SUSv3 +// or RFC 3493 which obsoleted 2553. + +// addrinfo errors + +// getnameinfo flags + +// Not listed in any standards document + +// getnameinfo max sizes as defined in RFC 2553 obsoleted in RFC 3493 + +// Scope delimit character + +// Algorithm entry for /etc/inet/ipsecalgs which defines IPsec protocols +// and algorithms. +type Ipsecalgent = struct { + Fa_names uintptr + Fa_proto_num int32 + Fa_alg_num int32 + Fa_mech_name uintptr + Fa_block_sizes uintptr + Fa_key_sizes uintptr + Fa_key_increment int32 + F__ccgo_pad1 [4]byte + Fa_mech_params uintptr + Fa_alg_flags int32 + F__ccgo_pad2 [4]byte +} /* netdb.h:195:9 */ + +// The flag 0x8000 is currently reserved for private use between libnsl and +// libsocket. See lib/libsocket/inet/getaddrinfo.c for more information. +// addrinfo flags + +// getipnodebyname() flags + +// These were defined in RFC 2553 but not SUSv3 +// or RFC 3493 which obsoleted 2553. + +// addrinfo errors + +// getnameinfo flags + +// Not listed in any standards document + +// getnameinfo max sizes as defined in RFC 2553 obsoleted in RFC 3493 + +// Scope delimit character + +// Algorithm entry for /etc/inet/ipsecalgs which defines IPsec protocols +// and algorithms. +type Ipsecalgent_t = Ipsecalgent /* netdb.h:205:3 */ + +// well-known IPsec protocol numbers + +// Assumption here is that a network number +// fits in 32 bits -- probably a poor one. +type Netent = struct { + Fn_name uintptr + Fn_aliases uintptr + Fn_addrtype int32 + Fn_net uint32 +} /* netdb.h:217:1 */ + +type Protoent = struct { + Fp_name uintptr + Fp_aliases uintptr + Fp_proto int32 + F__ccgo_pad1 [4]byte +} /* netdb.h:224:1 */ + +type Servent = struct { + Fs_name uintptr + Fs_aliases uintptr + Fs_port int32 + F__ccgo_pad1 [4]byte + Fs_proto uintptr +} /* netdb.h:230:1 */ + +// Error return codes from gethostbyname() and gethostbyaddr() +// (left in extern int h_errno). + +// BIND +// End BIND + +var _ int8 /* gen.c:2:13: */ diff --git a/vendor/modernc.org/libc/netdb/netdb_linux_loong64.go b/vendor/modernc.org/libc/netdb/netdb_linux_loong64.go new file mode 100644 index 000000000..3fbd76404 --- /dev/null +++ b/vendor/modernc.org/libc/netdb/netdb_linux_loong64.go @@ -0,0 +1,3267 @@ +// Code generated by 'ccgo netdb/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o netdb/netdb_linux_loong64.go -pkgname netdb', DO NOT EDIT. + +package netdb + +import ( + "math" + "reflect" + "sync/atomic" + "unsafe" +) + +var _ = math.Pi +var _ reflect.Kind +var _ atomic.Value +var _ unsafe.Pointer + +const ( + AF_ALG = 38 // socket.h:134:1: + AF_APPLETALK = 5 // socket.h:100:1: + AF_ASH = 18 // socket.h:114:1: + AF_ATMPVC = 8 // socket.h:103:1: + AF_ATMSVC = 20 // socket.h:116:1: + AF_AX25 = 3 // socket.h:98:1: + AF_BLUETOOTH = 31 // socket.h:127:1: + AF_BRIDGE = 7 // socket.h:102:1: + AF_CAIF = 37 // socket.h:133:1: + AF_CAN = 29 // socket.h:125:1: + AF_DECnet = 12 // socket.h:107:1: + AF_ECONET = 19 // socket.h:115:1: + AF_FILE = 1 // socket.h:96:1: + AF_IB = 27 // socket.h:123:1: + AF_IEEE802154 = 36 // socket.h:132:1: + AF_INET = 2 // socket.h:97:1: + AF_INET6 = 10 // socket.h:105:1: + AF_IPX = 4 // socket.h:99:1: + AF_IRDA = 23 // socket.h:119:1: + AF_ISDN = 34 // socket.h:130:1: + AF_IUCV = 32 // socket.h:128:1: + AF_KCM = 41 // socket.h:137:1: + AF_KEY = 15 // socket.h:110:1: + AF_LLC = 26 // socket.h:122:1: + AF_LOCAL = 1 // socket.h:94:1: + AF_MAX = 46 // socket.h:142:1: + AF_MCTP = 45 // socket.h:141:1: + AF_MPLS = 28 // socket.h:124:1: + AF_NETBEUI = 13 // socket.h:108:1: + AF_NETLINK = 16 // socket.h:111:1: + AF_NETROM = 6 // socket.h:101:1: + AF_NFC = 39 // socket.h:135:1: + AF_PACKET = 17 // socket.h:113:1: + AF_PHONET = 35 // socket.h:131:1: + AF_PPPOX = 24 // socket.h:120:1: + AF_QIPCRTR = 42 // socket.h:138:1: + AF_RDS = 21 // socket.h:117:1: + AF_ROSE = 11 // socket.h:106:1: + AF_ROUTE = 16 // socket.h:112:1: + AF_RXRPC = 33 // socket.h:129:1: + AF_SECURITY = 14 // socket.h:109:1: + AF_SMC = 43 // socket.h:139:1: + AF_SNA = 22 // socket.h:118:1: + AF_TIPC = 30 // socket.h:126:1: + AF_UNIX = 1 // socket.h:95:1: + AF_UNSPEC = 0 // socket.h:93:1: + AF_VSOCK = 40 // socket.h:136:1: + AF_WANPIPE = 25 // socket.h:121:1: + AF_X25 = 9 // socket.h:104:1: + AF_XDP = 44 // socket.h:140:1: + AI_ADDRCONFIG = 0x0020 // netdb.h:601:1: + AI_ALL = 0x0010 // netdb.h:600:1: + AI_CANONNAME = 0x0002 // netdb.h:597:1: + AI_NUMERICHOST = 0x0004 // netdb.h:598:1: + AI_NUMERICSERV = 0x0400 // netdb.h:613:1: + AI_PASSIVE = 0x0001 // netdb.h:596:1: + AI_V4MAPPED = 0x0008 // netdb.h:599:1: + BIG_ENDIAN = 4321 // endian.h:28:1: + BYTE_ORDER = 1234 // endian.h:30:1: + EAI_AGAIN = -3 // netdb.h:618:1: + EAI_BADFLAGS = -1 // netdb.h:616:1: + EAI_FAIL = -4 // netdb.h:619:1: + EAI_FAMILY = -6 // netdb.h:620:1: + EAI_MEMORY = -10 // netdb.h:623:1: + EAI_NONAME = -2 // netdb.h:617:1: + EAI_OVERFLOW = -12 // netdb.h:625:1: + EAI_SERVICE = -8 // netdb.h:622:1: + EAI_SOCKTYPE = -7 // netdb.h:621:1: + EAI_SYSTEM = -11 // netdb.h:624:1: + FD_SETSIZE = 1024 // select.h:73:1: + FIOGETOWN = 0x8903 // sockios.h:8:1: + FIOSETOWN = 0x8901 // sockios.h:6:1: + HOST_NOT_FOUND = 1 // netdb.h:63:1: + INET6_ADDRSTRLEN = 46 // in.h:243:1: + INET_ADDRSTRLEN = 16 // in.h:242:1: + IN_CLASSA_HOST = 16777215 // in.h:175:1: + IN_CLASSA_MAX = 128 // in.h:176:1: + IN_CLASSA_NET = 0xff000000 // in.h:173:1: + IN_CLASSA_NSHIFT = 24 // in.h:174:1: + IN_CLASSB_HOST = 65535 // in.h:181:1: + IN_CLASSB_MAX = 65536 // in.h:182:1: + IN_CLASSB_NET = 0xffff0000 // in.h:179:1: + IN_CLASSB_NSHIFT = 16 // in.h:180:1: + IN_CLASSC_HOST = 255 // in.h:187:1: + IN_CLASSC_NET = 0xffffff00 // in.h:185:1: + IN_CLASSC_NSHIFT = 8 // in.h:186:1: + IN_LOOPBACKNET = 127 // in.h:206:1: + IPPORT_RESERVED1 = 1024 // netdb.h:79:1: + IPV6_2292DSTOPTS = 4 // in.h:166:1: + IPV6_2292HOPLIMIT = 8 // in.h:170:1: + IPV6_2292HOPOPTS = 3 // in.h:165:1: + IPV6_2292PKTINFO = 2 // in.h:164:1: + IPV6_2292PKTOPTIONS = 6 // in.h:168:1: + IPV6_2292RTHDR = 5 // in.h:167:1: + IPV6_ADDRFORM = 1 // in.h:163:1: + IPV6_ADDR_PREFERENCES = 72 // in.h:219:1: + IPV6_ADD_MEMBERSHIP = 20 // in.h:233:1: + IPV6_AUTHHDR = 10 // in.h:175:1: + IPV6_AUTOFLOWLABEL = 70 // in.h:216:1: + IPV6_CHECKSUM = 7 // in.h:169:1: + IPV6_DONTFRAG = 62 // in.h:210:1: + IPV6_DROP_MEMBERSHIP = 21 // in.h:234:1: + IPV6_DSTOPTS = 59 // in.h:207:1: + IPV6_FREEBIND = 78 // in.h:229:1: + IPV6_HDRINCL = 36 // in.h:194:1: + IPV6_HOPLIMIT = 52 // in.h:200:1: + IPV6_HOPOPTS = 54 // in.h:202:1: + IPV6_IPSEC_POLICY = 34 // in.h:192:1: + IPV6_JOIN_ANYCAST = 27 // in.h:187:1: + IPV6_JOIN_GROUP = 20 // in.h:180:1: + IPV6_LEAVE_ANYCAST = 28 // in.h:188:1: + IPV6_LEAVE_GROUP = 21 // in.h:181:1: + IPV6_MINHOPCOUNT = 73 // in.h:222:1: + IPV6_MTU = 24 // in.h:184:1: + IPV6_MTU_DISCOVER = 23 // in.h:183:1: + IPV6_MULTICAST_ALL = 29 // in.h:189:1: + IPV6_MULTICAST_HOPS = 18 // in.h:178:1: + IPV6_MULTICAST_IF = 17 // in.h:177:1: + IPV6_MULTICAST_LOOP = 19 // in.h:179:1: + IPV6_NEXTHOP = 9 // in.h:174:1: + IPV6_ORIGDSTADDR = 74 // in.h:224:1: + IPV6_PATHMTU = 61 // in.h:209:1: + IPV6_PKTINFO = 50 // in.h:198:1: + IPV6_PMTUDISC_DO = 2 // in.h:242:1: + IPV6_PMTUDISC_DONT = 0 // in.h:240:1: + IPV6_PMTUDISC_INTERFACE = 4 // in.h:244:1: + IPV6_PMTUDISC_OMIT = 5 // in.h:245:1: + IPV6_PMTUDISC_PROBE = 3 // in.h:243:1: + IPV6_PMTUDISC_WANT = 1 // in.h:241:1: + IPV6_RECVDSTOPTS = 58 // in.h:206:1: + IPV6_RECVERR = 25 // in.h:185:1: + IPV6_RECVERR_RFC4884 = 31 // in.h:191:1: + IPV6_RECVFRAGSIZE = 77 // in.h:228:1: + IPV6_RECVHOPLIMIT = 51 // in.h:199:1: + IPV6_RECVHOPOPTS = 53 // in.h:201:1: + IPV6_RECVORIGDSTADDR = 74 // in.h:225:1: + IPV6_RECVPATHMTU = 60 // in.h:208:1: + IPV6_RECVPKTINFO = 49 // in.h:197:1: + IPV6_RECVRTHDR = 56 // in.h:204:1: + IPV6_RECVTCLASS = 66 // in.h:213:1: + IPV6_ROUTER_ALERT = 22 // in.h:182:1: + IPV6_ROUTER_ALERT_ISOLATE = 30 // in.h:190:1: + IPV6_RTHDR = 57 // in.h:205:1: + IPV6_RTHDRDSTOPTS = 55 // in.h:203:1: + IPV6_RTHDR_LOOSE = 0 // in.h:252:1: + IPV6_RTHDR_STRICT = 1 // in.h:253:1: + IPV6_RTHDR_TYPE_0 = 0 // in.h:255:1: + IPV6_RXDSTOPTS = 59 // in.h:237:1: + IPV6_RXHOPOPTS = 54 // in.h:236:1: + IPV6_TCLASS = 67 // in.h:214:1: + IPV6_TRANSPARENT = 75 // in.h:226:1: + IPV6_UNICAST_HOPS = 16 // in.h:176:1: + IPV6_UNICAST_IF = 76 // in.h:227:1: + IPV6_V6ONLY = 26 // in.h:186:1: + IPV6_XFRM_POLICY = 35 // in.h:193:1: + IP_ADD_MEMBERSHIP = 35 // in.h:122:1: + IP_ADD_SOURCE_MEMBERSHIP = 39 // in.h:126:1: + IP_BIND_ADDRESS_NO_PORT = 24 // in.h:103:1: + IP_BLOCK_SOURCE = 38 // in.h:125:1: + IP_CHECKSUM = 23 // in.h:102:1: + IP_DEFAULT_MULTICAST_LOOP = 1 // in.h:138:1: + IP_DEFAULT_MULTICAST_TTL = 1 // in.h:137:1: + IP_DROP_MEMBERSHIP = 36 // in.h:123:1: + IP_DROP_SOURCE_MEMBERSHIP = 40 // in.h:127:1: + IP_FREEBIND = 15 // in.h:89:1: + IP_HDRINCL = 3 // in.h:48:1: + IP_IPSEC_POLICY = 16 // in.h:90:1: + IP_LOCAL_PORT_RANGE = 51 // in.h:131:1: + IP_MAX_MEMBERSHIPS = 20 // in.h:139:1: + IP_MINTTL = 21 // in.h:100:1: + IP_MSFILTER = 41 // in.h:128:1: + IP_MTU = 14 // in.h:88:1: + IP_MTU_DISCOVER = 10 // in.h:84:1: + IP_MULTICAST_ALL = 49 // in.h:129:1: + IP_MULTICAST_IF = 32 // in.h:119:1: + IP_MULTICAST_LOOP = 34 // in.h:121:1: + IP_MULTICAST_TTL = 33 // in.h:120:1: + IP_NODEFRAG = 22 // in.h:101:1: + IP_OPTIONS = 4 // in.h:47:1: + IP_ORIGDSTADDR = 20 // in.h:97:1: + IP_PASSSEC = 18 // in.h:92:1: + IP_PKTINFO = 8 // in.h:81:1: + IP_PKTOPTIONS = 9 // in.h:82:1: + IP_PMTUDISC = 10 // in.h:83:1: + IP_PMTUDISC_DO = 2 // in.h:110:1: + IP_PMTUDISC_DONT = 0 // in.h:108:1: + IP_PMTUDISC_INTERFACE = 4 // in.h:115:1: + IP_PMTUDISC_OMIT = 5 // in.h:117:1: + IP_PMTUDISC_PROBE = 3 // in.h:111:1: + IP_PMTUDISC_WANT = 1 // in.h:109:1: + IP_PROTOCOL = 52 // in.h:132:1: + IP_RECVERR = 11 // in.h:85:1: + IP_RECVERR_RFC4884 = 26 // in.h:105:1: + IP_RECVFRAGSIZE = 25 // in.h:104:1: + IP_RECVOPTS = 6 // in.h:51:1: + IP_RECVORIGDSTADDR = 20 // in.h:98:1: + IP_RECVRETOPTS = 7 // in.h:53:1: + IP_RECVTOS = 13 // in.h:87:1: + IP_RECVTTL = 12 // in.h:86:1: + IP_RETOPTS = 7 // in.h:54:1: + IP_ROUTER_ALERT = 5 // in.h:80:1: + IP_TOS = 1 // in.h:49:1: + IP_TRANSPARENT = 19 // in.h:93:1: + IP_TTL = 2 // in.h:50:1: + IP_UNBLOCK_SOURCE = 37 // in.h:124:1: + IP_UNICAST_IF = 50 // in.h:130:1: + IP_XFRM_POLICY = 17 // in.h:91:1: + LITTLE_ENDIAN = 1234 // endian.h:27:1: + MCAST_BLOCK_SOURCE = 43 // in.h:67:1: + MCAST_EXCLUDE = 0 // in.h:76:1: + MCAST_INCLUDE = 1 // in.h:77:1: + MCAST_JOIN_GROUP = 42 // in.h:66:1: + MCAST_JOIN_SOURCE_GROUP = 46 // in.h:70:1: + MCAST_LEAVE_GROUP = 45 // in.h:69:1: + MCAST_LEAVE_SOURCE_GROUP = 47 // in.h:71:1: + MCAST_MSFILTER = 48 // in.h:72:1: + MCAST_UNBLOCK_SOURCE = 44 // in.h:68:1: + NETDB_INTERNAL = -1 // netdb.h:72:1: + NETDB_SUCCESS = 0 // netdb.h:73:1: + NI_DGRAM = 16 // netdb.h:646:1: + NI_MAXHOST = 1025 // netdb.h:638:1: + NI_MAXSERV = 32 // netdb.h:639:1: + NI_NAMEREQD = 8 // netdb.h:645:1: + NI_NOFQDN = 4 // netdb.h:644:1: + NI_NUMERICHOST = 1 // netdb.h:642:1: + NI_NUMERICSERV = 2 // netdb.h:643:1: + NO_ADDRESS = 4 // netdb.h:74:1: + NO_DATA = 4 // netdb.h:68:1: + NO_RECOVERY = 3 // netdb.h:66:1: + PDP_ENDIAN = 3412 // endian.h:29:1: + PF_ALG = 38 // socket.h:82:1: + PF_APPLETALK = 5 // socket.h:48:1: + PF_ASH = 18 // socket.h:62:1: + PF_ATMPVC = 8 // socket.h:51:1: + PF_ATMSVC = 20 // socket.h:64:1: + PF_AX25 = 3 // socket.h:46:1: + PF_BLUETOOTH = 31 // socket.h:75:1: + PF_BRIDGE = 7 // socket.h:50:1: + PF_CAIF = 37 // socket.h:81:1: + PF_CAN = 29 // socket.h:73:1: + PF_DECnet = 12 // socket.h:55:1: + PF_ECONET = 19 // socket.h:63:1: + PF_FILE = 1 // socket.h:44:1: + PF_IB = 27 // socket.h:71:1: + PF_IEEE802154 = 36 // socket.h:80:1: + PF_INET = 2 // socket.h:45:1: + PF_INET6 = 10 // socket.h:53:1: + PF_IPX = 4 // socket.h:47:1: + PF_IRDA = 23 // socket.h:67:1: + PF_ISDN = 34 // socket.h:78:1: + PF_IUCV = 32 // socket.h:76:1: + PF_KCM = 41 // socket.h:85:1: + PF_KEY = 15 // socket.h:58:1: + PF_LLC = 26 // socket.h:70:1: + PF_LOCAL = 1 // socket.h:42:1: + PF_MAX = 46 // socket.h:90:1: + PF_MCTP = 45 // socket.h:89:1: + PF_MPLS = 28 // socket.h:72:1: + PF_NETBEUI = 13 // socket.h:56:1: + PF_NETLINK = 16 // socket.h:59:1: + PF_NETROM = 6 // socket.h:49:1: + PF_NFC = 39 // socket.h:83:1: + PF_PACKET = 17 // socket.h:61:1: + PF_PHONET = 35 // socket.h:79:1: + PF_PPPOX = 24 // socket.h:68:1: + PF_QIPCRTR = 42 // socket.h:86:1: + PF_RDS = 21 // socket.h:65:1: + PF_ROSE = 11 // socket.h:54:1: + PF_ROUTE = 16 // socket.h:60:1: + PF_RXRPC = 33 // socket.h:77:1: + PF_SECURITY = 14 // socket.h:57:1: + PF_SMC = 43 // socket.h:87:1: + PF_SNA = 22 // socket.h:66:1: + PF_TIPC = 30 // socket.h:74:1: + PF_UNIX = 1 // socket.h:43:1: + PF_UNSPEC = 0 // socket.h:41:1: + PF_VSOCK = 40 // socket.h:84:1: + PF_WANPIPE = 25 // socket.h:69:1: + PF_X25 = 9 // socket.h:52:1: + PF_XDP = 44 // socket.h:88:1: + SCM_TIMESTAMP = 29 // socket.h:156:1: + SCM_TIMESTAMPING = 37 // socket.h:158:1: + SCM_TIMESTAMPING_OPT_STATS = 54 // socket.h:90:1: + SCM_TIMESTAMPING_PKTINFO = 58 // socket.h:98:1: + SCM_TIMESTAMPNS = 35 // socket.h:157:1: + SCM_TXTIME = 61 // socket.h:105:1: + SCM_WIFI_STATUS = 41 // socket.h:64:1: + SIOCATMARK = 0x8905 // sockios.h:10:1: + SIOCGPGRP = 0x8904 // sockios.h:9:1: + SIOCGSTAMPNS_OLD = 0x8907 // sockios.h:12:1: + SIOCGSTAMP_OLD = 0x8906 // sockios.h:11:1: + SIOCSPGRP = 0x8902 // sockios.h:7:1: + SOL_AAL = 265 // socket.h:153:1: + SOL_ALG = 279 // socket.h:167:1: + SOL_ATM = 264 // socket.h:152:1: + SOL_BLUETOOTH = 274 // socket.h:162:1: + SOL_CAIF = 278 // socket.h:166:1: + SOL_DCCP = 269 // socket.h:157:1: + SOL_DECNET = 261 // socket.h:149:1: + SOL_ICMPV6 = 58 // in.h:249:1: + SOL_IP = 0 // in.h:135:1: + SOL_IPV6 = 41 // in.h:248:1: + SOL_IRDA = 266 // socket.h:154:1: + SOL_IUCV = 277 // socket.h:165:1: + SOL_KCM = 281 // socket.h:169:1: + SOL_LLC = 268 // socket.h:156:1: + SOL_MCTP = 285 // socket.h:173:1: + SOL_MPTCP = 284 // socket.h:172:1: + SOL_NETBEUI = 267 // socket.h:155:1: + SOL_NETLINK = 270 // socket.h:158:1: + SOL_NFC = 280 // socket.h:168:1: + SOL_PACKET = 263 // socket.h:151:1: + SOL_PNPIPE = 275 // socket.h:163:1: + SOL_PPPOL2TP = 273 // socket.h:161:1: + SOL_RAW = 255 // socket.h:148:1: + SOL_RDS = 276 // socket.h:164:1: + SOL_RXRPC = 272 // socket.h:160:1: + SOL_SMC = 286 // socket.h:174:1: + SOL_SOCKET = 1 // socket.h:9:1: + SOL_TIPC = 271 // socket.h:159:1: + SOL_TLS = 282 // socket.h:170:1: + SOL_X25 = 262 // socket.h:150:1: + SOL_XDP = 283 // socket.h:171:1: + SOMAXCONN = 4096 // socket.h:177:1: + SO_ACCEPTCONN = 30 // socket.h:51:1: + SO_ATTACH_BPF = 50 // socket.h:82:1: + SO_ATTACH_FILTER = 26 // socket.h:45:1: + SO_ATTACH_REUSEPORT_CBPF = 51 // socket.h:85:1: + SO_ATTACH_REUSEPORT_EBPF = 52 // socket.h:86:1: + SO_BINDTODEVICE = 25 // socket.h:42:1: + SO_BINDTOIFINDEX = 62 // socket.h:107:1: + SO_BPF_EXTENSIONS = 48 // socket.h:78:1: + SO_BROADCAST = 6 // socket.h:16:1: + SO_BSDCOMPAT = 14 // socket.h:26:1: + SO_BUF_LOCK = 72 // socket.h:127:1: + SO_BUSY_POLL = 46 // socket.h:74:1: + SO_BUSY_POLL_BUDGET = 70 // socket.h:123:1: + SO_CNX_ADVICE = 53 // socket.h:88:1: + SO_COOKIE = 57 // socket.h:96:1: + SO_DEBUG = 1 // socket.h:11:1: + SO_DETACH_BPF = 27 // socket.h:83:1: + SO_DETACH_FILTER = 27 // socket.h:46:1: + SO_DETACH_REUSEPORT_BPF = 68 // socket.h:120:1: + SO_DOMAIN = 39 // socket.h:59:1: + SO_DONTROUTE = 5 // socket.h:15:1: + SO_ERROR = 4 // socket.h:14:1: + SO_GET_FILTER = 26 // socket.h:47:1: + SO_INCOMING_CPU = 49 // socket.h:80:1: + SO_INCOMING_NAPI_ID = 56 // socket.h:94:1: + SO_KEEPALIVE = 9 // socket.h:21:1: + SO_LINGER = 13 // socket.h:25:1: + SO_LOCK_FILTER = 44 // socket.h:70:1: + SO_MARK = 36 // socket.h:56:1: + SO_MAX_PACING_RATE = 47 // socket.h:76:1: + SO_MEMINFO = 55 // socket.h:92:1: + SO_NETNS_COOKIE = 71 // socket.h:125:1: + SO_NOFCS = 43 // socket.h:68:1: + SO_NO_CHECK = 11 // socket.h:23:1: + SO_OOBINLINE = 10 // socket.h:22:1: + SO_PASSCRED = 16 // socket.h:29:1: + SO_PASSPIDFD = 76 // socket.h:135:1: + SO_PASSSEC = 34 // socket.h:54:1: + SO_PEEK_OFF = 42 // socket.h:65:1: + SO_PEERCRED = 17 // socket.h:30:1: + SO_PEERGROUPS = 59 // socket.h:100:1: + SO_PEERNAME = 28 // socket.h:49:1: + SO_PEERPIDFD = 77 // socket.h:136:1: + SO_PEERSEC = 31 // socket.h:53:1: + SO_PREFER_BUSY_POLL = 69 // socket.h:122:1: + SO_PRIORITY = 12 // socket.h:24:1: + SO_PROTOCOL = 38 // socket.h:58:1: + SO_RCVBUF = 8 // socket.h:18:1: + SO_RCVBUFFORCE = 33 // socket.h:20:1: + SO_RCVLOWAT = 18 // socket.h:31:1: + SO_RCVMARK = 75 // socket.h:133:1: + SO_RCVTIMEO = 20 // socket.h:145:1: + SO_RCVTIMEO_NEW = 66 // socket.h:117:1: + SO_RCVTIMEO_OLD = 20 // socket.h:33:1: + SO_RESERVE_MEM = 73 // socket.h:129:1: + SO_REUSEADDR = 2 // socket.h:12:1: + SO_REUSEPORT = 15 // socket.h:27:1: + SO_RXQ_OVFL = 40 // socket.h:61:1: + SO_SECURITY_AUTHENTICATION = 22 // socket.h:38:1: + SO_SECURITY_ENCRYPTION_NETWORK = 24 // socket.h:40:1: + SO_SECURITY_ENCRYPTION_TRANSPORT = 23 // socket.h:39:1: + SO_SELECT_ERR_QUEUE = 45 // socket.h:72:1: + SO_SNDBUF = 7 // socket.h:17:1: + SO_SNDBUFFORCE = 32 // socket.h:19:1: + SO_SNDLOWAT = 19 // socket.h:32:1: + SO_SNDTIMEO = 21 // socket.h:146:1: + SO_SNDTIMEO_NEW = 67 // socket.h:118:1: + SO_SNDTIMEO_OLD = 21 // socket.h:34:1: + SO_TIMESTAMP = 29 // socket.h:141:1: + SO_TIMESTAMPING = 37 // socket.h:143:1: + SO_TIMESTAMPING_NEW = 65 // socket.h:115:1: + SO_TIMESTAMPING_OLD = 37 // socket.h:111:1: + SO_TIMESTAMPNS = 35 // socket.h:142:1: + SO_TIMESTAMPNS_NEW = 64 // socket.h:114:1: + SO_TIMESTAMPNS_OLD = 35 // socket.h:110:1: + SO_TIMESTAMP_NEW = 63 // socket.h:113:1: + SO_TIMESTAMP_OLD = 29 // socket.h:109:1: + SO_TXREHASH = 74 // socket.h:131:1: + SO_TXTIME = 61 // socket.h:104:1: + SO_TYPE = 3 // socket.h:13:1: + SO_WIFI_STATUS = 41 // socket.h:63:1: + SO_ZEROCOPY = 60 // socket.h:102:1: + TRY_AGAIN = 2 // netdb.h:64:1: + X_ABILP64 = 3 // :377:1: + X_ATFILE_SOURCE = 1 // features.h:353:1: + X_BITS_ATOMIC_WIDE_COUNTER_H = 0 // atomic_wide_counter.h:20:1: + X_BITS_BYTESWAP_H = 1 // byteswap.h:24:1: + X_BITS_ENDIANNESS_H = 1 // endianness.h:2:1: + X_BITS_ENDIAN_H = 1 // endian.h:20:1: + X_BITS_PTHREADTYPES_ARCH_H = 1 // pthreadtypes-arch.h:21:1: + X_BITS_PTHREADTYPES_COMMON_H = 1 // pthreadtypes.h:20:1: + X_BITS_SOCKADDR_H = 1 // sockaddr.h:24:1: + X_BITS_STDINT_INTN_H = 1 // stdint-intn.h:20:1: + X_BITS_STDINT_UINTN_H = 1 // stdint-uintn.h:20:1: + X_BITS_TIME64_H = 1 // time64.h:24:1: + X_BITS_TYPESIZES_H = 1 // typesizes.h:24:1: + X_BITS_TYPES_H = 1 // types.h:24:1: + X_BITS_UINTN_IDENTITY_H = 1 // uintn-identity.h:24:1: + X_BSD_SIZE_T_ = 0 // stddef.h:193:1: + X_BSD_SIZE_T_DEFINED_ = 0 // stddef.h:196:1: + X_DEFAULT_SOURCE = 1 // features.h:238:1: + X_ENDIAN_H = 1 // endian.h:19:1: + X_FEATURES_H = 1 // features.h:19:1: + X_FILE_OFFSET_BITS = 64 // :25:1: + X_GCC_SIZE_T = 0 // stddef.h:200:1: + X_LINUX_POSIX_TYPES_H = 0 // posix_types.h:3:1: + X_LINUX_STDDEF_H = 0 // stddef.h:3:1: + X_LOONGARCH_ARCH = "loongarch64" // :214:1: + X_LOONGARCH_ARCH_LOONGARCH64 = 1 // :340:1: + X_LOONGARCH_FPSET = 32 // :265:1: + X_LOONGARCH_SIM = 3 // :233:1: + X_LOONGARCH_SPFPSET = 32 // :88:1: + X_LOONGARCH_SZINT = 32 // :230:1: + X_LOONGARCH_SZLONG = 64 // :388:1: + X_LOONGARCH_SZPTR = 64 // :200:1: + X_LOONGARCH_TUNE = "la464" // :245:1: + X_LOONGARCH_TUNE_LA464 = 1 // :63:1: + X_LP64 = 1 // :372:1: + X_NETDB_H = 1 // netdb.h:23:1: + X_NETINET_IN_H = 1 // in.h:19:1: + X_PATH_HEQUIV = "/etc/hosts.equiv" // netdb.h:43:1: + X_PATH_HOSTS = "/etc/hosts" // netdb.h:44:1: + X_PATH_NETWORKS = "/etc/networks" // netdb.h:45:1: + X_PATH_NSSWITCH_CONF = "/etc/nsswitch.conf" // netdb.h:46:1: + X_PATH_PROTOCOLS = "/etc/protocols" // netdb.h:47:1: + X_PATH_SERVICES = "/etc/services" // netdb.h:48:1: + X_POSIX_C_SOURCE = 200809 // features.h:292:1: + X_POSIX_SOURCE = 1 // features.h:290:1: + X_RPC_NETDB_H = 1 // netdb.h:37:1: + X_SIZET_ = 0 // stddef.h:201:1: + X_SIZE_T = 0 // stddef.h:187:1: + X_SIZE_T_ = 0 // stddef.h:192:1: + X_SIZE_T_DECLARED = 0 // stddef.h:197:1: + X_SIZE_T_DEFINED = 0 // stddef.h:195:1: + X_SIZE_T_DEFINED_ = 0 // stddef.h:194:1: + X_SS_SIZE = 128 // sockaddr.h:40:1: + X_STDC_PREDEF_H = 1 // :223:1: + X_STRUCT_TIMESPEC = 1 // struct_timespec.h:3:1: + X_SYS_CDEFS_H = 1 // cdefs.h:20:1: + X_SYS_SELECT_H = 1 // select.h:22:1: + X_SYS_SIZE_T_H = 0 // stddef.h:188:1: + X_SYS_SOCKET_H = 1 // socket.h:20:1: + X_SYS_TYPES_H = 1 // types.h:23:1: + X_THREAD_MUTEX_INTERNAL_H = 1 // struct_mutex.h:20:1: + X_THREAD_SHARED_TYPES_H = 1 // thread-shared-types.h:20:1: + X_T_SIZE = 0 // stddef.h:190:1: + X_T_SIZE_ = 0 // stddef.h:189:1: + Linux = 1 // :308:1: + Unix = 1 // :247:1: +) + +// Bits in the FLAGS argument to `send', `recv', et al. +const ( /* socket.h:205:1: */ + MSG_OOB = 1 // Process out-of-band data. + MSG_PEEK = 2 // Peek at incoming messages. + MSG_DONTROUTE = 4 // Don't use local routing. + MSG_CTRUNC = 8 // Control data lost before delivery. + MSG_PROXY = 16 // Supply or ask second address. + MSG_TRUNC = 32 + MSG_DONTWAIT = 64 // Nonblocking IO. + MSG_EOR = 128 // End of record. + MSG_WAITALL = 256 // Wait for a full request. + MSG_FIN = 512 + MSG_SYN = 1024 + MSG_CONFIRM = 2048 // Confirm path validity. + MSG_RST = 4096 + MSG_ERRQUEUE = 8192 // Fetch message from error queue. + MSG_NOSIGNAL = 16384 // Do not generate SIGPIPE. + MSG_MORE = 32768 // Sender will send more. + MSG_WAITFORONE = 65536 // Wait for at least one packet to return. + MSG_BATCH = 262144 // sendmmsg: more messages coming. + MSG_ZEROCOPY = 67108864 // Use user data in kernel path. + MSG_FASTOPEN = 536870912 // Send data in TCP SYN. + + MSG_CMSG_CLOEXEC = 1073741824 +) + +// Socket level message types. This must match the definitions in +// +// . +const ( /* socket.h:363:1: */ + SCM_RIGHTS = 1 +) + +// Get the architecture-dependent definition of enum __socket_type. +// Define enum __socket_type for generic Linux. +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Types of sockets. +const ( /* socket_type.h:24:1: */ + SOCK_STREAM = 1 // Sequenced, reliable, connection-based + // byte streams. + SOCK_DGRAM = 2 // Connectionless, unreliable datagrams + // of fixed maximum length. + SOCK_RAW = 3 // Raw protocol interface. + SOCK_RDM = 4 // Reliably-delivered messages. + SOCK_SEQPACKET = 5 // Sequenced, reliable, connection-based, + // datagrams of fixed maximum length. + SOCK_DCCP = 6 // Datagram Congestion Control Protocol. + SOCK_PACKET = 10 // Linux specific way of getting packets + // at the dev level. For writing rarp and + // other similar things on the user level. + + // Flags to be ORed into the type parameter of socket and socketpair and + // used for the flags parameter of paccept. + + SOCK_CLOEXEC = 524288 // Atomically set close-on-exec flag for the + // new descriptor(s). + SOCK_NONBLOCK = 2048 +) + +// If __USE_KERNEL_IPV6_DEFS is 1 then the user has included the kernel +// +// network headers first and we should use those ABI-identical definitions +// instead of our own, otherwise 0. +const ( /* in.h:105:1: */ + IPPROTO_HOPOPTS = 0 // IPv6 Hop-by-Hop options. + IPPROTO_ROUTING = 43 // IPv6 routing header. + IPPROTO_FRAGMENT = 44 // IPv6 fragmentation header. + IPPROTO_ICMPV6 = 58 // ICMPv6. + IPPROTO_NONE = 59 // IPv6 no next header. + IPPROTO_DSTOPTS = 60 // IPv6 destination options. + IPPROTO_MH = 135 +) + +// Standard well-known ports. +const ( /* in.h:128:1: */ + IPPORT_ECHO = 7 // Echo service. + IPPORT_DISCARD = 9 // Discard transmissions service. + IPPORT_SYSTAT = 11 // System status service. + IPPORT_DAYTIME = 13 // Time of day service. + IPPORT_NETSTAT = 15 // Network status service. + IPPORT_FTP = 21 // File Transfer Protocol. + IPPORT_TELNET = 23 // Telnet protocol. + IPPORT_SMTP = 25 // Simple Mail Transfer Protocol. + IPPORT_TIMESERVER = 37 // Timeserver service. + IPPORT_NAMESERVER = 42 // Domain Name Service. + IPPORT_WHOIS = 43 // Internet Whois service. + IPPORT_MTP = 57 + + IPPORT_TFTP = 69 // Trivial File Transfer Protocol. + IPPORT_RJE = 77 + IPPORT_FINGER = 79 // Finger service. + IPPORT_TTYLINK = 87 + IPPORT_SUPDUP = 95 // SUPDUP protocol. + + IPPORT_EXECSERVER = 512 // execd service. + IPPORT_LOGINSERVER = 513 // rlogind service. + IPPORT_CMDSERVER = 514 + IPPORT_EFSSERVER = 520 + + // UDP ports. + IPPORT_BIFFUDP = 512 + IPPORT_WHOSERVER = 513 + IPPORT_ROUTESERVER = 520 + + // Ports less than this value are reserved for privileged processes. + IPPORT_RESERVED = 1024 + + // Ports greater this value are reserved for (non-privileged) servers. + IPPORT_USERRESERVED = 5000 +) + +// Options for use with `getsockopt' and `setsockopt' at the IPv6 level. +// The first word in the comment at the right is the data type used; +// "bool" means a boolean value stored in an `int'. + +// Advanced API (RFC3542) (1). + +// Advanced API (RFC3542) (2). + +// RFC5014. + +// RFC5082. + +// Obsolete synonyms for the above. + +// IPV6_MTU_DISCOVER values. + +// Socket level values for IPv6. + +// Routing header options for IPv6. + +// Standard well-defined IP protocols. +const ( /* in.h:40:1: */ + IPPROTO_IP = 0 // Dummy protocol for TCP. + IPPROTO_ICMP = 1 // Internet Control Message Protocol. + IPPROTO_IGMP = 2 // Internet Group Management Protocol. + IPPROTO_IPIP = 4 // IPIP tunnels (older KA9Q tunnels use 94). + IPPROTO_TCP = 6 // Transmission Control Protocol. + IPPROTO_EGP = 8 // Exterior Gateway Protocol. + IPPROTO_PUP = 12 // PUP protocol. + IPPROTO_UDP = 17 // User Datagram Protocol. + IPPROTO_IDP = 22 // XNS IDP protocol. + IPPROTO_TP = 29 // SO Transport Protocol Class 4. + IPPROTO_DCCP = 33 // Datagram Congestion Control Protocol. + IPPROTO_IPV6 = 41 // IPv6 header. + IPPROTO_RSVP = 46 // Reservation Protocol. + IPPROTO_GRE = 47 // General Routing Encapsulation. + IPPROTO_ESP = 50 // encapsulating security payload. + IPPROTO_AH = 51 // authentication header. + IPPROTO_MTP = 92 // Multicast Transport Protocol. + IPPROTO_BEETPH = 94 // IP option pseudo header for BEET. + IPPROTO_ENCAP = 98 // Encapsulation Header. + IPPROTO_PIM = 103 // Protocol Independent Multicast. + IPPROTO_COMP = 108 // Compression Header Protocol. + IPPROTO_L2TP = 115 // Layer 2 Tunnelling Protocol. + IPPROTO_SCTP = 132 // Stream Control Transmission Protocol. + IPPROTO_UDPLITE = 136 // UDP-Lite protocol. + IPPROTO_MPLS = 137 // MPLS in IP. + IPPROTO_ETHERNET = 143 // Ethernet-within-IPv6 Encapsulation. + IPPROTO_RAW = 255 // Raw IP packets. + IPPROTO_MPTCP = 262 // Multipath TCP connection. + IPPROTO_MAX = 263 +) + +// The following constants should be used for the second parameter of +// +// `shutdown'. +const ( /* socket.h:41:1: */ + SHUT_RD = 0 // No more receptions. + SHUT_WR = 1 // No more transmissions. + SHUT_RDWR = 2 +) + +type Ptrdiff_t = int64 /* :3:26 */ + +type Size_t = uint64 /* :9:23 */ + +type Wchar_t = int32 /* :15:24 */ + +type X__int128_t = struct { + Flo int64 + Fhi int64 +} /* :21:43 */ // must match modernc.org/mathutil.Int128 +type X__uint128_t = struct { + Flo uint64 + Fhi uint64 +} /* :22:44 */ // must match modernc.org/mathutil.Int128 + +type X__builtin_va_list = uintptr /* :46:14 */ +type X__float128 = float64 /* :47:21 */ + +// Copyright (C) 1996-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// All data returned by the network data base library are supplied in +// host order and returned in network order (suitable for use in +// system calls). + +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// These are defined by the user (or the compiler) +// to specify the desired environment: +// +// __STRICT_ANSI__ ISO Standard C. +// _ISOC99_SOURCE Extensions to ISO C89 from ISO C99. +// _ISOC11_SOURCE Extensions to ISO C99 from ISO C11. +// _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X. +// __STDC_WANT_LIB_EXT2__ +// Extensions to ISO C99 from TR 27431-2:2010. +// __STDC_WANT_IEC_60559_BFP_EXT__ +// Extensions to ISO C11 from TS 18661-1:2014. +// __STDC_WANT_IEC_60559_FUNCS_EXT__ +// Extensions to ISO C11 from TS 18661-4:2015. +// __STDC_WANT_IEC_60559_TYPES_EXT__ +// Extensions to ISO C11 from TS 18661-3:2015. +// __STDC_WANT_IEC_60559_EXT__ +// ISO C2X interfaces defined only in Annex F. +// +// _POSIX_SOURCE IEEE Std 1003.1. +// _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2; +// if >=199309L, add IEEE Std 1003.1b-1993; +// if >=199506L, add IEEE Std 1003.1c-1995; +// if >=200112L, all of IEEE 1003.1-2004 +// if >=200809L, all of IEEE 1003.1-2008 +// _XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if +// Single Unix conformance is wanted, to 600 for the +// sixth revision, to 700 for the seventh revision. +// _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions. +// _LARGEFILE_SOURCE Some more functions for correct standard I/O. +// _LARGEFILE64_SOURCE Additional functionality from LFS for large files. +// _FILE_OFFSET_BITS=N Select default filesystem interface. +// _ATFILE_SOURCE Additional *at interfaces. +// _DYNAMIC_STACK_SIZE_SOURCE Select correct (but non compile-time constant) +// MINSIGSTKSZ, SIGSTKSZ and PTHREAD_STACK_MIN. +// _GNU_SOURCE All of the above, plus GNU extensions. +// _DEFAULT_SOURCE The default set of features (taking precedence over +// __STRICT_ANSI__). +// +// _FORTIFY_SOURCE Add security hardening to many library functions. +// Set to 1, 2 or 3; 3 performs stricter checks than 2, which +// performs stricter checks than 1. +// +// _REENTRANT, _THREAD_SAFE +// Obsolete; equivalent to _POSIX_C_SOURCE=199506L. +// +// The `-ansi' switch to the GNU C compiler, and standards conformance +// options such as `-std=c99', define __STRICT_ANSI__. If none of +// these are defined, or if _DEFAULT_SOURCE is defined, the default is +// to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to +// 200809L, as well as enabling miscellaneous functions from BSD and +// SVID. If more than one of these are defined, they accumulate. For +// example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together +// give you ISO C, 1003.1, and 1003.2, but nothing else. +// +// These are defined by this file and are used by the +// header files to decide what to declare or define: +// +// __GLIBC_USE (F) Define things from feature set F. This is defined +// to 1 or 0; the subsequent macros are either defined +// or undefined, and those tests should be moved to +// __GLIBC_USE. +// __USE_ISOC11 Define ISO C11 things. +// __USE_ISOC99 Define ISO C99 things. +// __USE_ISOC95 Define ISO C90 AMD1 (C95) things. +// __USE_ISOCXX11 Define ISO C++11 things. +// __USE_POSIX Define IEEE Std 1003.1 things. +// __USE_POSIX2 Define IEEE Std 1003.2 things. +// __USE_POSIX199309 Define IEEE Std 1003.1, and .1b things. +// __USE_POSIX199506 Define IEEE Std 1003.1, .1b, .1c and .1i things. +// __USE_XOPEN Define XPG things. +// __USE_XOPEN_EXTENDED Define X/Open Unix things. +// __USE_UNIX98 Define Single Unix V2 things. +// __USE_XOPEN2K Define XPG6 things. +// __USE_XOPEN2KXSI Define XPG6 XSI things. +// __USE_XOPEN2K8 Define XPG7 things. +// __USE_XOPEN2K8XSI Define XPG7 XSI things. +// __USE_LARGEFILE Define correct standard I/O things. +// __USE_LARGEFILE64 Define LFS things with separate names. +// __USE_FILE_OFFSET64 Define 64bit interface as default. +// __USE_MISC Define things from 4.3BSD or System V Unix. +// __USE_ATFILE Define *at interfaces and AT_* constants for them. +// __USE_DYNAMIC_STACK_SIZE Define correct (but non compile-time constant) +// MINSIGSTKSZ, SIGSTKSZ and PTHREAD_STACK_MIN. +// __USE_GNU Define GNU extensions. +// __USE_FORTIFY_LEVEL Additional security measures used, according to level. +// +// The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are +// defined by this file unconditionally. `__GNU_LIBRARY__' is provided +// only for compatibility. All new code should use the other symbols +// to test for features. +// +// All macros listed above as possibly being defined by this file are +// explicitly undefined if they are not explicitly defined. +// Feature-test macros that are not defined by the user or compiler +// but are implied by the other feature-test macros defined (or by the +// lack of any definitions) are defined by the file. +// +// ISO C feature test macros depend on the definition of the macro +// when an affected header is included, not when the first system +// header is included, and so they are handled in +// , which does not have a multiple include +// guard. Feature test macros that can be handled from the first +// system header included are handled here. + +// Undefine everything, so we get a clean slate. + +// Suppress kernel-name space pollution unless user expressedly asks +// for it. + +// Convenience macro to test the version of gcc. +// Use like this: +// #if __GNUC_PREREQ (2,8) +// ... code requiring gcc 2.8 or later ... +// #endif +// Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was +// added in 2.0. + +// Similarly for clang. Features added to GCC after version 4.2 may +// or may not also be available in clang, and clang's definitions of +// __GNUC(_MINOR)__ are fixed at 4 and 2 respectively. Not all such +// features can be queried via __has_extension/__has_feature. + +// Whether to use feature set F. + +// _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for +// _DEFAULT_SOURCE. If _DEFAULT_SOURCE is present we do not +// issue a warning; the expectation is that the source is being +// transitioned to use the new macro. + +// If _GNU_SOURCE was defined by the user, turn on all the other features. + +// If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined, +// define _DEFAULT_SOURCE. + +// This is to enable the ISO C2X extension. + +// This is to enable the ISO C11 extension. + +// This is to enable the ISO C99 extension. + +// This is to enable the ISO C90 Amendment 1:1995 extension. + +// If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE +// is defined, use POSIX.1-2008 (or another version depending on +// _XOPEN_SOURCE). + +// Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be +// defined in all multithreaded code. GNU libc has not required this +// for many years. We now treat them as compatibility synonyms for +// _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with +// comprehensive support for multithreaded code. Using them never +// lowers the selected level of POSIX conformance, only raises it. + +// Features part to handle 64-bit time_t support. +// Copyright (C) 2021-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// We need to know the word size in order to check the time size. +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Bit size of the time_t type at glibc build time, general case. +// Copyright (C) 2018-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Size in bits of the 'time_t' type of the default ABI. + +// The function 'gets' existed in C89, but is impossible to use +// safely. It has been removed from ISO C11 and ISO C++14. Note: for +// compatibility with various implementations of , this test +// must consider only the value of __cplusplus when compiling C++. + +// GNU formerly extended the scanf functions with modified format +// specifiers %as, %aS, and %a[...] that allocate a buffer for the +// input using malloc. This extension conflicts with ISO C99, which +// defines %a as a standalone format specifier that reads a floating- +// point number; moreover, POSIX.1-2008 provides the same feature +// using the modifier letter 'm' instead (%ms, %mS, %m[...]). +// +// We now follow C99 unless GNU extensions are active and the compiler +// is specifically in C89 or C++98 mode (strict or not). For +// instance, with GCC, -std=gnu11 will have C99-compliant scanf with +// or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the +// old extension. + +// ISO C2X added support for a 0b or 0B prefix on binary constants as +// inputs to strtol-family functions (base 0 or 2). This macro is +// used to condition redirection in headers to allow that redirection +// to be disabled when building those functions, despite _GNU_SOURCE +// being defined. + +// Get definitions of __STDC_* predefined macros, if the compiler has +// not preincluded this header automatically. +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// This macro indicates that the installed library is the GNU C Library. +// For historic reasons the value now is 6 and this will stay from now +// on. The use of this variable is deprecated. Use __GLIBC__ and +// __GLIBC_MINOR__ now (see below) when you want to test for a specific +// GNU C library version and use the values in to get +// the sonames of the shared libraries. + +// Major and minor version number of the GNU C library package. Use +// these macros to test for features in specific releases. + +// This is here only because every header file already includes this one. +// Copyright (C) 1992-2023 Free Software Foundation, Inc. +// Copyright The GNU Toolchain Authors. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// We are almost always included from features.h. + +// The GNU libc does not support any K&R compilers or the traditional mode +// of ISO C compilers anymore. Check for some of the combinations not +// supported anymore. + +// Some user header file might have defined this before. + +// Compilers that lack __has_attribute may object to +// #if defined __has_attribute && __has_attribute (...) +// even though they do not need to evaluate the right-hand side of the &&. +// Similarly for __has_builtin, etc. + +// All functions, except those with callbacks or those that +// synchronize memory, are leaf functions. + +// GCC can always grok prototypes. For C++ programs we add throw() +// to help it optimize the function calls. But this only works with +// gcc 2.8.x and egcs. For gcc 3.4 and up we even mark C functions +// as non-throwing using a function attribute since programs can use +// the -fexceptions options for C code as well. + +// These two macros are not used in glibc anymore. They are kept here +// only because some other projects expect the macros to be defined. + +// For these things, GCC behaves the ANSI way normally, +// and the non-ANSI way under -traditional. + +// This is not a typedef so `const __ptr_t' does the right thing. + +// C++ needs to know that types and declarations are C, not C++. + +// Fortify support. + +// Use __builtin_dynamic_object_size at _FORTIFY_SOURCE=3 when available. + +// Support for flexible arrays. +// Headers that should use flexible arrays only if they're "real" +// (e.g. only if they won't affect sizeof()) should test +// #if __glibc_c99_flexarr_available. + +// __asm__ ("xyz") is used throughout the headers to rename functions +// at the assembly language level. This is wrapped by the __REDIRECT +// macro, in order to support compilers that can do this some other +// way. When compilers don't support asm-names at all, we have to do +// preprocessor tricks instead (which don't have exactly the right +// semantics, but it's the best we can do). +// +// Example: +// int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid); + +// +// #elif __SOME_OTHER_COMPILER__ +// +// # define __REDIRECT(name, proto, alias) name proto; _Pragma("let " #name " = " #alias) + +// GCC and clang have various useful declarations that can be made with +// the '__attribute__' syntax. All of the ways we use this do fine if +// they are omitted for compilers that don't understand it. + +// At some point during the gcc 2.96 development the `malloc' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// Tell the compiler which arguments to an allocation function +// indicate the size of the allocation. + +// Tell the compiler which argument to an allocation function +// indicates the alignment of the allocation. + +// At some point during the gcc 2.96 development the `pure' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// This declaration tells the compiler that the value is constant. + +// At some point during the gcc 3.1 development the `used' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// Since version 3.2, gcc allows marking deprecated functions. + +// Since version 4.5, gcc also allows one to specify the message printed +// when a deprecated function is used. clang claims to be gcc 4.2, but +// may also support this feature. + +// At some point during the gcc 2.8 development the `format_arg' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. +// If several `format_arg' attributes are given for the same function, in +// gcc-3.0 and older, all but the last one are ignored. In newer gccs, +// all designated arguments are considered. + +// At some point during the gcc 2.97 development the `strfmon' format +// attribute for functions was introduced. We don't want to use it +// unconditionally (although this would be possible) since it +// generates warnings. + +// The nonnull function attribute marks pointer parameters that +// must not be NULL. This has the name __nonnull in glibc, +// and __attribute_nonnull__ in files shared with Gnulib to avoid +// collision with a different __nonnull in DragonFlyBSD 5.9. + +// The returns_nonnull function attribute marks the return type of the function +// as always being non-null. + +// If fortification mode, we warn about unused results of certain +// function calls which can lead to problems. + +// Forces a function to be always inlined. +// The Linux kernel defines __always_inline in stddef.h (283d7573), and +// it conflicts with this definition. Therefore undefine it first to +// allow either header to be included first. + +// Associate error messages with the source location of the call site rather +// than with the source location inside the function. + +// GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99 +// inline semantics, unless -fgnu89-inline is used. Using __GNUC_STDC_INLINE__ +// or __GNUC_GNU_INLINE is not a good enough check for gcc because gcc versions +// older than 4.3 may define these macros and still not guarantee GNU inlining +// semantics. +// +// clang++ identifies itself as gcc-4.2, but has support for GNU inlining +// semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and +// __GNUC_GNU_INLINE__ macro definitions. + +// GCC 4.3 and above allow passing all anonymous arguments of an +// __extern_always_inline function to some other vararg function. + +// It is possible to compile containing GCC extensions even if GCC is +// run in pedantic mode if the uses are carefully marked using the +// `__extension__' keyword. But this is not generally available before +// version 2.8. + +// __restrict is known in EGCS 1.2 and above, and in clang. +// It works also in C++ mode (outside of arrays), but only when spelled +// as '__restrict', not 'restrict'. + +// ISO C99 also allows to declare arrays as non-overlapping. The syntax is +// array_name[restrict] +// GCC 3.1 and clang support this. +// This syntax is not usable in C++ mode. + +// Describes a char array whose address can safely be passed as the first +// argument to strncpy and strncat, as the char array is not necessarily +// a NUL-terminated string. + +// Undefine (also defined in libc-symbols.h). +// Copies attributes from the declaration or type referenced by +// the argument. + +// Gnulib avoids including these, as they don't work on non-glibc or +// older glibc platforms. +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Properties of long double type. ldbl-128 version. +// Copyright (C) 2016-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// long double is distinct from double, so there is nothing to +// define here. + +// __glibc_macro_warning (MESSAGE) issues warning MESSAGE. This is +// intended for use in preprocessor macros. +// +// Note: MESSAGE must be a _single_ string; concatenation of string +// literals is not supported. + +// Generic selection (ISO C11) is a C-only feature, available in GCC +// since version 4.9. Previous versions do not provide generic +// selection, even though they might set __STDC_VERSION__ to 201112L, +// when in -std=c11 mode. Thus, we must check for !defined __GNUC__ +// when testing __STDC_VERSION__ for generic selection support. +// On the other hand, Clang also defines __GNUC__, so a clang-specific +// check is required to enable the use of generic selection. + +// Designates a 1-based positional argument ref-index of pointer type +// that can be used to access size-index elements of the pointed-to +// array according to access mode, or at least one element when +// size-index is not provided: +// access (access-mode, [, ]) +// For _FORTIFY_SOURCE == 3 we use __builtin_dynamic_object_size, which may +// use the access attribute to get object sizes from function definition +// arguments, so we can't use them on functions we fortify. Drop the object +// size hints for such functions. + +// Designates dealloc as a function to call to deallocate objects +// allocated by the declared function. + +// Specify that a function such as setjmp or vfork may return +// twice. + +// If we don't have __REDIRECT, prototypes will be missing if +// __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64]. + +// Decide whether we can define 'extern inline' functions in headers. + +// This is here only because every header file already includes this one. +// Get the definitions of all the appropriate `__stub_FUNCTION' symbols. +// contains `#define __stub_FUNCTION' when FUNCTION is a stub +// that will always return failure (and set errno to ENOSYS). +// This file is automatically generated. +// This file selects the right generated file of `__stub_FUNCTION' macros +// based on the architecture being compiled for. + +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// This file is automatically generated. +// It defines a symbol `__stub_FUNCTION' for each function +// in the C library which is a stub, meaning it will fail +// every time called, usually setting errno to ENOSYS. + +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Define uintN_t types. +// Copyright (C) 2017-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Bit size of the time_t type at glibc build time, general case. +// Copyright (C) 2018-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Size in bits of the 'time_t' type of the default ABI. + +// Convenience types. +type X__u_char = uint8 /* types.h:31:23 */ +type X__u_short = uint16 /* types.h:32:28 */ +type X__u_int = uint32 /* types.h:33:22 */ +type X__u_long = uint64 /* types.h:34:27 */ + +// Fixed-size types, underlying types depend on word size and compiler. +type X__int8_t = int8 /* types.h:37:21 */ +type X__uint8_t = uint8 /* types.h:38:23 */ +type X__int16_t = int16 /* types.h:39:26 */ +type X__uint16_t = uint16 /* types.h:40:28 */ +type X__int32_t = int32 /* types.h:41:20 */ +type X__uint32_t = uint32 /* types.h:42:22 */ +type X__int64_t = int64 /* types.h:44:25 */ +type X__uint64_t = uint64 /* types.h:45:27 */ + +// Smallest types with at least a given width. +type X__int_least8_t = int8 /* types.h:52:18 */ +type X__uint_least8_t = uint8 /* types.h:53:19 */ +type X__int_least16_t = int16 /* types.h:54:19 */ +type X__uint_least16_t = uint16 /* types.h:55:20 */ +type X__int_least32_t = int32 /* types.h:56:19 */ +type X__uint_least32_t = uint32 /* types.h:57:20 */ +type X__int_least64_t = int64 /* types.h:58:19 */ +type X__uint_least64_t = uint64 /* types.h:59:20 */ + +// quad_t is also 64 bits. +type X__quad_t = int64 /* types.h:63:18 */ +type X__u_quad_t = uint64 /* types.h:64:27 */ + +// Largest integral types. +type X__intmax_t = int64 /* types.h:72:18 */ +type X__uintmax_t = uint64 /* types.h:73:27 */ + +// The machine-dependent file defines __*_T_TYPE +// macros for each of the OS types we define below. The definitions +// of those macros must use the following macros for underlying types. +// We define __S_TYPE and __U_TYPE for the signed and unsigned +// variants of each of the following integer types on this machine. +// +// 16 -- "natural" 16-bit type (always short) +// 32 -- "natural" 32-bit type (always int) +// 64 -- "natural" 64-bit type (long or long long) +// LONG32 -- 32-bit type, traditionally long +// QUAD -- 64-bit type, traditionally long long +// WORD -- natural type of __WORDSIZE bits (int or long) +// LONGWORD -- type of __WORDSIZE bits, traditionally long +// +// We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the +// conventional uses of `long' or `long long' type modifiers match the +// types we define, even when a less-adorned type would be the same size. +// This matters for (somewhat) portably writing printf/scanf formats for +// these types, where using the appropriate l or ll format modifiers can +// make the typedefs and the formats match up across all GNU platforms. If +// we used `long' when it's 64 bits where `long long' is expected, then the +// compiler would warn about the formats not matching the argument types, +// and the programmer changing them to shut up the compiler would break the +// program's portability. +// +// Here we assume what is presently the case in all the GCC configurations +// we support: long long is always 64 bits, long is always word/address size, +// and int is always 32 bits. + +// No need to mark the typedef with __extension__. +// bits/typesizes.h -- underlying types for *_t. For the generic Linux ABI. +// Copyright (C) 2011-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library. If not, see +// . + +// See for the meaning of these macros. This file exists so +// that need not vary across different GNU platforms. + +// Tell the libc code that off_t and off64_t are actually the same type +// for all ABI purposes, even if possibly expressed as different base types +// for C type-checking purposes. + +// Same for ino_t and ino64_t. + +// And for __rlim_t and __rlim64_t. + +// And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t. + +// And for getitimer, setitimer and rusage + +// Number of descriptors that can fit in an `fd_set'. + +// bits/time64.h -- underlying types for __time64_t. Generic version. +// Copyright (C) 2018-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Define __TIME64_T_TYPE so that it is always a 64-bit type. + +// If we already have 64-bit time type then use it. + +type X__dev_t = uint64 /* types.h:145:25 */ // Type of device numbers. +type X__uid_t = uint32 /* types.h:146:25 */ // Type of user identifications. +type X__gid_t = uint32 /* types.h:147:25 */ // Type of group identifications. +type X__ino_t = uint64 /* types.h:148:25 */ // Type of file serial numbers. +type X__ino64_t = uint64 /* types.h:149:27 */ // Type of file serial numbers (LFS). +type X__mode_t = uint32 /* types.h:150:26 */ // Type of file attribute bitmasks. +type X__nlink_t = uint32 /* types.h:151:27 */ // Type of file link counts. +type X__off_t = int64 /* types.h:152:25 */ // Type of file sizes and offsets. +type X__off64_t = int64 /* types.h:153:27 */ // Type of file sizes and offsets (LFS). +type X__pid_t = int32 /* types.h:154:25 */ // Type of process identifications. +type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs. +type X__clock_t = int64 /* types.h:156:27 */ // Type of CPU usage counts. +type X__rlim_t = uint64 /* types.h:157:26 */ // Type for resource measurement. +type X__rlim64_t = uint64 /* types.h:158:28 */ // Type for resource measurement (LFS). +type X__id_t = uint32 /* types.h:159:24 */ // General type for IDs. +type X__time_t = int64 /* types.h:160:26 */ // Seconds since the Epoch. +type X__useconds_t = uint32 /* types.h:161:30 */ // Count of microseconds. +type X__suseconds_t = int64 /* types.h:162:31 */ // Signed count of microseconds. +type X__suseconds64_t = int64 /* types.h:163:33 */ + +type X__daddr_t = int32 /* types.h:165:27 */ // The type of a disk address. +type X__key_t = int32 /* types.h:166:25 */ // Type of an IPC key. + +// Clock ID used in clock and timer functions. +type X__clockid_t = int32 /* types.h:169:29 */ + +// Timer ID returned by `timer_create'. +type X__timer_t = uintptr /* types.h:172:12 */ + +// Type to represent block size. +type X__blksize_t = int32 /* types.h:175:29 */ + +// Types from the Large File Support interface. + +// Type to count number of disk blocks. +type X__blkcnt_t = int64 /* types.h:180:28 */ +type X__blkcnt64_t = int64 /* types.h:181:30 */ + +// Type to count file system blocks. +type X__fsblkcnt_t = uint64 /* types.h:184:30 */ +type X__fsblkcnt64_t = uint64 /* types.h:185:32 */ + +// Type to count file system nodes. +type X__fsfilcnt_t = uint64 /* types.h:188:30 */ +type X__fsfilcnt64_t = uint64 /* types.h:189:32 */ + +// Type of miscellaneous file system fields. +type X__fsword_t = int64 /* types.h:192:28 */ + +type X__ssize_t = int64 /* types.h:194:27 */ // Type of a byte count, or error. + +// Signed long type used in system calls. +type X__syscall_slong_t = int64 /* types.h:197:33 */ +// Unsigned long type used in system calls. +type X__syscall_ulong_t = uint64 /* types.h:199:33 */ + +// These few don't really vary by system, they always correspond +// +// to one of the other defined types. +type X__loff_t = int64 /* types.h:203:19 */ // Type of file sizes and offsets (LFS). +type X__caddr_t = uintptr /* types.h:204:14 */ + +// Duplicates info from stdint.h but this is used in unistd.h. +type X__intptr_t = int64 /* types.h:207:25 */ + +// Duplicate info from sys/socket.h. +type X__socklen_t = uint32 /* types.h:210:23 */ + +// C99: An integer type that can be accessed as an atomic entity, +// +// even in the presence of asynchronous interrupts. +// It is not currently necessary for this to be machine-specific. +type X__sig_atomic_t = int32 /* types.h:215:13 */ + +// Seconds since the Epoch, visible to user code when time_t is too +// narrow only for consistency with the old way of widening too-narrow +// types. User code should never use __time64_t. + +type Uint8_t = uint8 /* stdint-uintn.h:24:19 */ +type Uint16_t = uint16 /* stdint-uintn.h:25:20 */ +type Uint32_t = uint32 /* stdint-uintn.h:26:20 */ +type Uint64_t = uint64 /* stdint-uintn.h:27:20 */ + +// Wide character type. +// Locale-writers should change this as necessary to +// be big enough to hold unique values not between 0 and 127, +// and not (wchar_t) -1, for each defined multibyte character. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// A null pointer constant. + +// Structure for scatter/gather I/O. +type Iovec = struct { + Fiov_base uintptr + Fiov_len uint64 +} /* struct_iovec.h:26:1 */ + +// Copyright (C) 1989-2023 Free Software Foundation, Inc. +// +// This file is part of GCC. +// +// GCC is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 3, or (at your option) +// any later version. +// +// GCC is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// Under Section 7 of GPL version 3, you are granted additional +// permissions described in the GCC Runtime Library Exception, version +// 3.1, as published by the Free Software Foundation. +// +// You should have received a copy of the GNU General Public License and +// a copy of the GCC Runtime Library Exception along with this program; +// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see +// . + +// ISO C Standard: 7.17 Common definitions + +// Any one of these symbols __need_* means that GNU libc +// wants us just to define one data type. So don't define +// the symbols that indicate this file's entire job has been done. + +// This avoids lossage on SunOS but only if stdtypes.h comes first. +// There's no way to win with the other order! Sun lossage. + +// Sequent's header files use _PTRDIFF_T_ in some conflicting way. +// Just ignore it. + +// On VxWorks, may have defined macros like +// _TYPE_size_t which will typedef size_t. fixincludes patched the +// vxTypesBase.h so that this macro is only defined if _GCC_SIZE_T is +// not defined, and so that defining this macro defines _GCC_SIZE_T. +// If we find that the macros are still defined at this point, we must +// invoke them so that the type is defined as expected. + +// In case nobody has defined these types, but we aren't running under +// GCC 2.00, make sure that __PTRDIFF_TYPE__, __SIZE_TYPE__, and +// __WCHAR_TYPE__ have reasonable values. This can happen if the +// parts of GCC is compiled by an older compiler, that actually +// include gstddef.h, such as collect2. + +// Signed type of difference of two pointers. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// Unsigned type of `sizeof' something. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// Wide character type. +// Locale-writers should change this as necessary to +// be big enough to hold unique values not between 0 and 127, +// and not (wchar_t) -1, for each defined multibyte character. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// A null pointer constant. + +// This operating system-specific header file defines the SOCK_*, PF_*, +// AF_*, MSG_*, SOL_*, and SO_* constants, and the `struct sockaddr', +// `struct msghdr', and `struct linger' types. +// System-specific socket constants and types. Linux version. +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Copyright (C) 1989-2023 Free Software Foundation, Inc. +// +// This file is part of GCC. +// +// GCC is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 3, or (at your option) +// any later version. +// +// GCC is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// Under Section 7 of GPL version 3, you are granted additional +// permissions described in the GCC Runtime Library Exception, version +// 3.1, as published by the Free Software Foundation. +// +// You should have received a copy of the GNU General Public License and +// a copy of the GCC Runtime Library Exception along with this program; +// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see +// . + +// ISO C Standard: 7.17 Common definitions + +// Any one of these symbols __need_* means that GNU libc +// wants us just to define one data type. So don't define +// the symbols that indicate this file's entire job has been done. + +// This avoids lossage on SunOS but only if stdtypes.h comes first. +// There's no way to win with the other order! Sun lossage. + +// Sequent's header files use _PTRDIFF_T_ in some conflicting way. +// Just ignore it. + +// On VxWorks, may have defined macros like +// _TYPE_size_t which will typedef size_t. fixincludes patched the +// vxTypesBase.h so that this macro is only defined if _GCC_SIZE_T is +// not defined, and so that defining this macro defines _GCC_SIZE_T. +// If we find that the macros are still defined at this point, we must +// invoke them so that the type is defined as expected. + +// In case nobody has defined these types, but we aren't running under +// GCC 2.00, make sure that __PTRDIFF_TYPE__, __SIZE_TYPE__, and +// __WCHAR_TYPE__ have reasonable values. This can happen if the +// parts of GCC is compiled by an older compiler, that actually +// include gstddef.h, such as collect2. + +// Signed type of difference of two pointers. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// Unsigned type of `sizeof' something. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// Wide character type. +// Locale-writers should change this as necessary to +// be big enough to hold unique values not between 0 and 127, +// and not (wchar_t) -1, for each defined multibyte character. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// A null pointer constant. + +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// POSIX Standard: 2.6 Primitive System Data Types + +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +type U_char = uint8 /* types.h:33:18 */ +type U_short = uint16 /* types.h:34:19 */ +type U_int = uint32 /* types.h:35:17 */ +type U_long = uint64 /* types.h:36:18 */ +type Quad_t = int64 /* types.h:37:18 */ +type U_quad_t = uint64 /* types.h:38:20 */ +type Fsid_t = X__fsid_t /* types.h:39:18 */ +type Loff_t = int64 /* types.h:42:18 */ + +type Ino_t = uint64 /* types.h:49:19 */ + +type Dev_t = uint64 /* types.h:59:17 */ + +type Gid_t = uint32 /* types.h:64:17 */ + +type Mode_t = uint32 /* types.h:69:18 */ + +type Nlink_t = uint32 /* types.h:74:19 */ + +type Uid_t = uint32 /* types.h:79:17 */ + +type Off_t = int64 /* types.h:87:19 */ + +type Pid_t = int32 /* types.h:97:17 */ + +type Id_t = uint32 /* types.h:103:16 */ + +type Ssize_t = int64 /* types.h:108:19 */ + +type Daddr_t = int32 /* types.h:114:19 */ +type Caddr_t = uintptr /* types.h:115:19 */ + +type Key_t = int32 /* types.h:121:17 */ + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Returned by `clock'. +type Clock_t = int64 /* clock_t.h:7:19 */ + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Clock ID used in clock and timer functions. +type Clockid_t = int32 /* clockid_t.h:7:21 */ + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Returned by `time'. +type Time_t = int64 /* time_t.h:10:18 */ + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Timer ID returned by `timer_create'. +type Timer_t = uintptr /* timer_t.h:7:19 */ + +// Copyright (C) 1989-2023 Free Software Foundation, Inc. +// +// This file is part of GCC. +// +// GCC is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 3, or (at your option) +// any later version. +// +// GCC is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// Under Section 7 of GPL version 3, you are granted additional +// permissions described in the GCC Runtime Library Exception, version +// 3.1, as published by the Free Software Foundation. +// +// You should have received a copy of the GNU General Public License and +// a copy of the GCC Runtime Library Exception along with this program; +// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see +// . + +// ISO C Standard: 7.17 Common definitions + +// Any one of these symbols __need_* means that GNU libc +// wants us just to define one data type. So don't define +// the symbols that indicate this file's entire job has been done. + +// This avoids lossage on SunOS but only if stdtypes.h comes first. +// There's no way to win with the other order! Sun lossage. + +// Sequent's header files use _PTRDIFF_T_ in some conflicting way. +// Just ignore it. + +// On VxWorks, may have defined macros like +// _TYPE_size_t which will typedef size_t. fixincludes patched the +// vxTypesBase.h so that this macro is only defined if _GCC_SIZE_T is +// not defined, and so that defining this macro defines _GCC_SIZE_T. +// If we find that the macros are still defined at this point, we must +// invoke them so that the type is defined as expected. + +// In case nobody has defined these types, but we aren't running under +// GCC 2.00, make sure that __PTRDIFF_TYPE__, __SIZE_TYPE__, and +// __WCHAR_TYPE__ have reasonable values. This can happen if the +// parts of GCC is compiled by an older compiler, that actually +// include gstddef.h, such as collect2. + +// Signed type of difference of two pointers. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// Unsigned type of `sizeof' something. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// Wide character type. +// Locale-writers should change this as necessary to +// be big enough to hold unique values not between 0 and 127, +// and not (wchar_t) -1, for each defined multibyte character. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// A null pointer constant. + +// Old compatibility names for C types. +type Ulong = uint64 /* types.h:148:27 */ +type Ushort = uint16 /* types.h:149:28 */ +type Uint = uint32 /* types.h:150:22 */ + +// These size-specific names are used by some of the inet code. + +// Define intN_t types. +// Copyright (C) 2017-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +type Int8_t = int8 /* stdint-intn.h:24:18 */ +type Int16_t = int16 /* stdint-intn.h:25:19 */ +type Int32_t = int32 /* stdint-intn.h:26:19 */ +type Int64_t = int64 /* stdint-intn.h:27:19 */ + +// These were defined by ISO C without the first `_'. +type U_int8_t = uint8 /* types.h:158:19 */ +type U_int16_t = uint16 /* types.h:159:20 */ +type U_int32_t = uint32 /* types.h:160:20 */ +type U_int64_t = uint64 /* types.h:161:20 */ + +type Register_t = int32 /* types.h:164:13 */ + +// It also defines `fd_set' and the FD_* macros for `select'. +// `fd_set' type and related macros, and `select'/`pselect' declarations. +// Copyright (C) 1996-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// POSIX 1003.1g: 6.2 Select from File Descriptor Sets + +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Get definition of needed basic types. +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Get __FD_* definitions. +// Copyright (C) 1997-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// We don't use `memset' because this would require a prototype and +// the array isn't too big. + +// Get sigset_t. + +type X__sigset_t = struct{ F__val [16]uint64 } /* __sigset_t.h:8:3 */ + +// A set of signals to be blocked, unblocked, or waited for. +type Sigset_t = X__sigset_t /* sigset_t.h:7:20 */ + +// Get definition of timer specification structures. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// A time value that is accurate to the nearest +// +// microsecond but also has a range of years. +type Timeval = struct { + Ftv_sec int64 + Ftv_usec int64 +} /* struct_timeval.h:8:1 */ + +// NB: Include guard matches what uses. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Endian macros for string.h functions +// Copyright (C) 1992-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// POSIX.1b structure for a time value. This is like a `struct timeval' but +// +// has nanoseconds instead of microseconds. +type Timespec = struct { + Ftv_sec int64 + Ftv_nsec int64 +} /* struct_timespec.h:11:1 */ + +type Suseconds_t = int64 /* select.h:43:23 */ + +// The fd_set member is required to be an array of longs. +type X__fd_mask = int64 /* select.h:49:18 */ + +// Some versions of define this macros. +// It's easier to assume 8-bit bytes than to get CHAR_BIT. + +// fd_set for select and pselect. +type Fd_set = struct{ F__fds_bits [16]int64 } /* select.h:70:5 */ + +// Maximum number of file descriptors in `fd_set'. + +// Sometimes the fd_set member is assumed to have this type. +type Fd_mask = int64 /* select.h:77:19 */ + +// Define some inlines helping to catch common problems. + +type Blksize_t = int32 /* types.h:185:21 */ + +// Types from the Large File Support interface. +type Blkcnt_t = int64 /* types.h:205:22 */ // Type to count number of disk blocks. +type Fsblkcnt_t = uint64 /* types.h:209:24 */ // Type to count file system blocks. +type Fsfilcnt_t = uint64 /* types.h:213:24 */ // Type to count file system inodes. + +// Now add the thread types. +// Declaration of common pthread types for all architectures. +// Copyright (C) 2017-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// For internal mutex and condition variable definitions. +// Common threading primitives definitions for both POSIX and C11. +// Copyright (C) 2017-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Arch-specific definitions. Each architecture must define the following +// macros to define the expected sizes of pthread data types: +// +// __SIZEOF_PTHREAD_ATTR_T - size of pthread_attr_t. +// __SIZEOF_PTHREAD_MUTEX_T - size of pthread_mutex_t. +// __SIZEOF_PTHREAD_MUTEXATTR_T - size of pthread_mutexattr_t. +// __SIZEOF_PTHREAD_COND_T - size of pthread_cond_t. +// __SIZEOF_PTHREAD_CONDATTR_T - size of pthread_condattr_t. +// __SIZEOF_PTHREAD_RWLOCK_T - size of pthread_rwlock_t. +// __SIZEOF_PTHREAD_RWLOCKATTR_T - size of pthread_rwlockattr_t. +// __SIZEOF_PTHREAD_BARRIER_T - size of pthread_barrier_t. +// __SIZEOF_PTHREAD_BARRIERATTR_T - size of pthread_barrierattr_t. +// +// The additional macro defines any constraint for the lock alignment +// inside the thread structures: +// +// __LOCK_ALIGNMENT - for internal lock/futex usage. +// +// Same idea but for the once locking primitive: +// +// __ONCE_ALIGNMENT - for pthread_once_t/once_flag definition. + +// Machine-specific pthread type layouts. Generic version. +// Copyright (C) 2019-2023 Free Software Foundation, Inc. +// +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Monotonically increasing wide counters (at least 62 bits). +// Copyright (C) 2016-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Counter that is monotonically increasing (by less than 2**31 per +// +// increment), with a single writer, and an arbitrary number of +// readers. +type X__atomic_wide_counter = struct{ F__value64 uint64 } /* atomic_wide_counter.h:33:3 */ + +// Common definition of pthread_mutex_t. + +type X__pthread_internal_list = struct { + F__prev uintptr + F__next uintptr +} /* thread-shared-types.h:51:9 */ + +// Common definition of pthread_mutex_t. + +type X__pthread_list_t = X__pthread_internal_list /* thread-shared-types.h:55:3 */ + +type X__pthread_internal_slist = struct{ F__next uintptr } /* thread-shared-types.h:57:9 */ + +type X__pthread_slist_t = X__pthread_internal_slist /* thread-shared-types.h:60:3 */ + +// Arch-specific mutex definitions. A generic implementation is provided +// by sysdeps/nptl/bits/struct_mutex.h. If required, an architecture +// can override it by defining: +// +// 1. struct __pthread_mutex_s (used on both pthread_mutex_t and mtx_t +// definition). It should contains at least the internal members +// defined in the generic version. +// +// 2. __LOCK_ALIGNMENT for any extra attribute for internal lock used with +// atomic operations. +// +// 3. The macro __PTHREAD_MUTEX_INITIALIZER used for static initialization. +// It should initialize the mutex internal flag. + +// Default mutex implementation struct definitions. +// Copyright (C) 2019-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Generic struct for both POSIX and C11 mutexes. New ports are expected +// to use the default layout, however architecture can redefine it to +// add arch-specific extension (such as lock-elision). The struct have +// a size of 32 bytes on LP32 and 40 bytes on LP64 architectures. + +type X__pthread_mutex_s = struct { + F__lock int32 + F__count uint32 + F__owner int32 + F__nusers uint32 + F__kind int32 + F__spins int32 + F__list X__pthread_list_t +} /* struct_mutex.h:27:1 */ + +// Arch-sepecific read-write lock definitions. A generic implementation is +// provided by struct_rwlock.h. If required, an architecture can override it +// by defining: +// +// 1. struct __pthread_rwlock_arch_t (used on pthread_rwlock_t definition). +// It should contain at least the internal members defined in the +// generic version. +// +// 2. The macro __PTHREAD_RWLOCK_INITIALIZER used for static initialization. +// It should initialize the rwlock internal type. + +// Default read-write lock implementation struct definitions. +// Copyright (C) 2019-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Endian macros for string.h functions +// Copyright (C) 1992-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Generic struct for both POSIX read-write lock. New ports are expected +// to use the default layout, however archictetures can redefine it to add +// arch-specific extensions (such as lock-elision). The struct have a size +// of 32 bytes on both LP32 and LP64 architectures. + +type X__pthread_rwlock_arch_t = struct { + F__readers uint32 + F__writers uint32 + F__wrphase_futex uint32 + F__writers_futex uint32 + F__pad3 uint32 + F__pad4 uint32 + F__flags uint8 + F__shared uint8 + F__pad1 uint8 + F__pad2 uint8 + F__cur_writer int32 +} /* struct_rwlock.h:29:1 */ + +// Common definition of pthread_cond_t. + +type X__pthread_cond_s = struct { + F__wseq X__atomic_wide_counter + F__g1_start X__atomic_wide_counter + F__g_refs [2]uint32 + F__g_size [2]uint32 + F__g1_orig_size uint32 + F__wrefs uint32 + F__g_signals [2]uint32 +} /* thread-shared-types.h:94:1 */ + +type X__tss_t = uint32 /* thread-shared-types.h:105:22 */ +type X__thrd_t = uint64 /* thread-shared-types.h:106:27 */ + +type X__once_flag = struct{ F__data int32 } /* thread-shared-types.h:111:3 */ + +// Thread identifiers. The structure of the attribute type is not +// +// exposed on purpose. +type Pthread_t = uint64 /* pthreadtypes.h:27:27 */ + +// Data structures for mutex handling. The structure of the attribute +// +// type is not exposed on purpose. +type Pthread_mutexattr_t = struct { + F__ccgo_pad1 [0]uint32 + F__size [4]int8 +} /* pthreadtypes.h:36:3 */ + +// Data structure for condition variable handling. The structure of +// +// the attribute type is not exposed on purpose. +type Pthread_condattr_t = struct { + F__ccgo_pad1 [0]uint32 + F__size [4]int8 +} /* pthreadtypes.h:45:3 */ + +// Keys for thread-specific data +type Pthread_key_t = uint32 /* pthreadtypes.h:49:22 */ + +// Once-only execution +type Pthread_once_t = int32 /* pthreadtypes.h:53:30 */ + +type Pthread_attr_t1 = struct { + F__ccgo_pad1 [0]uint64 + F__size [56]int8 +} /* pthreadtypes.h:56:1 */ + +type Pthread_attr_t = Pthread_attr_t1 /* pthreadtypes.h:62:30 */ + +type Pthread_mutex_t = struct{ F__data X__pthread_mutex_s } /* pthreadtypes.h:72:3 */ + +type Pthread_cond_t = struct{ F__data X__pthread_cond_s } /* pthreadtypes.h:80:3 */ + +// Data structure for reader-writer lock variable handling. The +// +// structure of the attribute type is deliberately not exposed. +type Pthread_rwlock_t = struct { + F__ccgo_pad1 [0]uint64 + F__data X__pthread_rwlock_arch_t + F__ccgo_pad2 [24]byte +} /* pthreadtypes.h:91:3 */ + +type Pthread_rwlockattr_t = struct { + F__ccgo_pad1 [0]uint64 + F__size [8]int8 +} /* pthreadtypes.h:97:3 */ + +// POSIX spinlock data type. +type Pthread_spinlock_t = int32 /* pthreadtypes.h:103:22 */ + +// POSIX barriers data type. The structure of the type is +// +// deliberately not exposed. +type Pthread_barrier_t = struct { + F__ccgo_pad1 [0]uint64 + F__size [32]int8 +} /* pthreadtypes.h:112:3 */ + +type Pthread_barrierattr_t = struct { + F__ccgo_pad1 [0]uint32 + F__size [4]int8 +} /* pthreadtypes.h:118:3 */ + +// Type for length arguments in socket calls. +type Socklen_t = uint32 /* socket.h:33:21 */ + +// Protocol families. + +// Address families. + +// Socket level values. Others are defined in the appropriate headers. +// +// XXX These definitions also should go into the appropriate headers as +// far as they are available. + +// Maximum queue length specifiable by listen. + +// Get the definition of the macro to define the common sockaddr members. +// Definition of struct sockaddr_* common members and sizes, generic version. +// Copyright (C) 1995-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// POSIX.1g specifies this type name for the `sa_family' member. +type Sa_family_t = uint16 /* sockaddr.h:28:28 */ + +// This macro is used to declare the initial common members +// of the data types used for socket addresses, `struct sockaddr', +// `struct sockaddr_in', `struct sockaddr_un', etc. + +// Size of struct sockaddr_storage. + +// Structure describing a generic socket address. +type Sockaddr = struct { + Fsa_family uint16 + Fsa_data [14]int8 +} /* socket.h:183:1 */ + +// Structure large enough to hold any socket address (with the historical +// exception of AF_UNIX). + +type Sockaddr_storage = struct { + Fss_family uint16 + F__ss_padding [118]int8 + F__ss_align uint64 +} /* socket.h:196:1 */ + +// Structure describing messages sent by +// +// `sendmsg' and received by `recvmsg'. +type Msghdr = struct { + Fmsg_name uintptr + Fmsg_namelen uint32 + F__ccgo_pad1 [4]byte + Fmsg_iov uintptr + Fmsg_iovlen uint64 + Fmsg_control uintptr + Fmsg_controllen uint64 + Fmsg_flags int32 + F__ccgo_pad2 [4]byte +} /* socket.h:262:1 */ + +// Structure used for storage of ancillary data object information. +type Cmsghdr = struct { + F__ccgo_pad1 [0]uint64 + Fcmsg_len uint64 + Fcmsg_level int32 + Fcmsg_type int32 +} /* socket.h:280:1 */ + +// SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note + +// SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note + +// SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note + +// * +// __struct_group() - Create a mirrored named and anonyomous struct +// +// @TAG: The tag name for the named sub-struct (usually empty) +// @NAME: The identifier name of the mirrored sub-struct +// @ATTRS: Any struct attributes (usually empty) +// @MEMBERS: The member declarations for the mirrored structs +// +// Used to create an anonymous union of two structs with identical layout +// and size: one anonymous and one named. The former's members can be used +// normally without sub-struct naming, and the latter can be used to +// reason about the start, end, and size of the group of struct members. +// The named struct can also be explicitly tagged for layer reuse, as well +// as both having struct attributes appended. + +// * +// __DECLARE_FLEX_ARRAY() - Declare a flexible array usable in a union +// +// @TYPE: The type of each flexible array element +// @NAME: The name of the flexible array member +// +// In order to have a flexible array member in a union or alone in a +// struct, it needs to be wrapped in an anonymous struct with at least 1 +// named member, but that member can be empty. + +// This allows for 1024 file descriptors: if NR_OPEN is ever grown +// beyond that you'll have to change this too. But 1024 fd's seem to be +// enough even for such "real" unices like OSF/1, so hopefully this is +// one limit that doesn't have to be changed [again]. +// +// Note that POSIX wants the FD_CLEAR(fd,fdsetp) defines to be in +// (and thus ) - but this is a more logical +// place for them. Solved by having dummy defines in . + +// This macro may have been defined in . But we always +// use the one here. + +type X__kernel_fd_set = struct{ Ffds_bits [16]uint64 } /* posix_types.h:27:3 */ + +// Type of a signal handler. +type X__kernel_sighandler_t = uintptr /* posix_types.h:30:14 */ + +// Type of a SYSV IPC key. +type X__kernel_key_t = int32 /* posix_types.h:33:13 */ +type X__kernel_mqd_t = int32 /* posix_types.h:34:13 */ + +// SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note + +// SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note + +// In order to keep safe and avoid regression, only unify uapi +// bitsperlong.h for some archs which are using newer toolchains +// that have the definitions of __CHAR_BIT__ and __SIZEOF_LONG__. +// See the following link for more info: +// https://lore.kernel.org/linux-arch/b9624545-2c80-49a1-ac3c-39264a591f7b@app.fastmail.com/ + +// This file is generally used by user-level software, so you need to +// be a little careful about namespace pollution etc. +// +// First the types that are often defined in different ways across +// architectures, so that you can override them. + +type X__kernel_long_t = int64 /* posix_types.h:15:15 */ +type X__kernel_ulong_t = uint64 /* posix_types.h:16:23 */ + +type X__kernel_ino_t = uint64 /* posix_types.h:20:26 */ + +type X__kernel_mode_t = uint32 /* posix_types.h:24:22 */ + +type X__kernel_pid_t = int32 /* posix_types.h:28:14 */ + +type X__kernel_ipc_pid_t = int32 /* posix_types.h:32:14 */ + +type X__kernel_uid_t = uint32 /* posix_types.h:36:22 */ +type X__kernel_gid_t = uint32 /* posix_types.h:37:22 */ + +type X__kernel_suseconds_t = int64 /* posix_types.h:41:26 */ + +type X__kernel_daddr_t = int32 /* posix_types.h:45:14 */ + +type X__kernel_uid32_t = uint32 /* posix_types.h:49:22 */ +type X__kernel_gid32_t = uint32 /* posix_types.h:50:22 */ + +type X__kernel_old_uid_t = uint32 /* posix_types.h:54:24 */ +type X__kernel_old_gid_t = uint32 /* posix_types.h:55:24 */ + +type X__kernel_old_dev_t = uint32 /* posix_types.h:59:22 */ + +// Most 32 bit architectures use "unsigned int" size_t, +// and all 64 bit architectures use "unsigned long" size_t. +type X__kernel_size_t = uint64 /* posix_types.h:72:26 */ +type X__kernel_ssize_t = int64 /* posix_types.h:73:25 */ +type X__kernel_ptrdiff_t = int64 /* posix_types.h:74:25 */ + +type X__kernel_fsid_t = struct{ Fval [2]int32 } /* posix_types.h:81:3 */ + +// anything below here should be completely generic +type X__kernel_off_t = int64 /* posix_types.h:87:25 */ +type X__kernel_loff_t = int64 /* posix_types.h:88:19 */ +type X__kernel_old_time_t = int64 /* posix_types.h:89:25 */ +type X__kernel_time_t = int64 /* posix_types.h:90:25 */ +type X__kernel_time64_t = int64 /* posix_types.h:91:19 */ +type X__kernel_clock_t = int64 /* posix_types.h:92:25 */ +type X__kernel_timer_t = int32 /* posix_types.h:93:14 */ +type X__kernel_clockid_t = int32 /* posix_types.h:94:14 */ +type X__kernel_caddr_t = uintptr /* posix_types.h:95:14 */ +type X__kernel_uid16_t = uint16 /* posix_types.h:96:24 */ +type X__kernel_gid16_t = uint16 /* posix_types.h:97:24 */ + +// SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note + +// Socket-level I/O control calls. + +// For setsockopt(2) + +// Security levels - as per NRL IPv6 - don't actually do anything + +// Socket filtering + +// Instruct lower device to use last 4-bytes of skb data as FCS + +// on 64-bit and x32, avoid the ?: operator + +// Structure used to manipulate the SO_LINGER option. +type Linger = struct { + Fl_onoff int32 + Fl_linger int32 +} /* socket.h:392:1 */ + +// This is the 4.3 BSD `struct sockaddr' format, which is used as wire +// +// format in the grotty old 4.3 `talk' protocol. +type Osockaddr = struct { + Fsa_family uint16 + Fsa_data [14]uint8 +} /* struct_osockaddr.h:6:1 */ + +// Define some macros helping to catch buffer overflows. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Internet address. +type In_addr_t = uint32 /* in.h:30:18 */ +type In_addr = struct{ Fs_addr uint32 } /* in.h:31:1 */ + +// Get system-specific definitions. +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Linux version. + +// If the application has already included linux/in6.h from a linux-based +// kernel then we will not define the IPv6 IPPROTO_* defines, in6_addr (nor the +// defines), sockaddr_in6, or ipv6_mreq. Same for in6_ptkinfo or ip6_mtuinfo +// in linux/ipv6.h. The ABI used by the linux-kernel and glibc match exactly. +// Neither the linux kernel nor glibc should break this ABI without coordination. +// In upstream kernel 56c176c9 the _UAPI prefix was stripped so we need to check +// for _LINUX_IN6_H and _IPV6_H now, and keep checking the old versions for +// maximum backwards compatibility. + +// Options for use with `getsockopt' and `setsockopt' at the IP level. +// The first word in the comment at the right is the data type used; +// "bool" means a boolean value stored in an `int'. +// For BSD compatibility. + +// TProxy original addresses + +// IP_MTU_DISCOVER arguments. +// Always use interface mtu (ignores dst pmtu) but don't set DF flag. +// Also incoming ICMP frag_needed notifications will be ignored on +// this socket to prevent accepting spoofed ones. +// Like IP_PMTUDISC_INTERFACE but allow packets to be fragmented. + +// To select the IP level. + +// Structure used to describe IP options for IP_OPTIONS and IP_RETOPTS. +// +// The `ip_dst' field is used for the first-hop gateway when using a +// source route (this gets put into the header proper). +type Ip_opts = struct { + Fip_dst struct{ Fs_addr uint32 } + Fip_opts [40]int8 +} /* in.h:145:1 */ + +// Structure used for IP_PKTINFO. +type In_pktinfo = struct { + Fipi_ifindex int32 + Fipi_spec_dst struct{ Fs_addr uint32 } + Fipi_addr struct{ Fs_addr uint32 } +} /* in.h:152:1 */ + +// Type to represent a port. +type In_port_t = uint16 /* in.h:125:18 */ + +// Definitions of the bits in an Internet address integer. +// +// On subnets, host and network parts are found according to +// the subnet mask, not these masks. + +// Address to accept any incoming messages. +// Address to send to all hosts. +// Address indicating an error return. +// Dummy address for source of ICMPv6 errors converted to IPv4 (RFC +// 7600). + +// Network number for local host loopback. +// Address to loopback in software to local host. + +// Defines for Multicast INADDR. + +// IPv6 address +type In6_addr = struct { + F__in6_u struct { + F__ccgo_pad1 [0]uint32 + F__u6_addr8 [16]uint8 + } +} /* in.h:221:1 */ + +// ::1 + +// Structure describing an Internet socket address. +type Sockaddr_in = struct { + Fsin_family uint16 + Fsin_port uint16 + Fsin_addr struct{ Fs_addr uint32 } + Fsin_zero [8]uint8 +} /* in.h:247:1 */ + +// Ditto, for IPv6. +type Sockaddr_in6 = struct { + Fsin6_family uint16 + Fsin6_port uint16 + Fsin6_flowinfo uint32 + Fsin6_addr struct { + F__in6_u struct { + F__ccgo_pad1 [0]uint32 + F__u6_addr8 [16]uint8 + } + } + Fsin6_scope_id uint32 +} /* in.h:262:1 */ + +// IPv4 multicast request. +type Ip_mreq = struct { + Fimr_multiaddr struct{ Fs_addr uint32 } + Fimr_interface struct{ Fs_addr uint32 } +} /* in.h:274:1 */ + +// IPv4 multicast request with interface index. +type Ip_mreqn = struct { + Fimr_multiaddr struct{ Fs_addr uint32 } + Fimr_address struct{ Fs_addr uint32 } + Fimr_ifindex int32 +} /* in.h:284:1 */ + +type Ip_mreq_source = struct { + Fimr_multiaddr struct{ Fs_addr uint32 } + Fimr_interface struct{ Fs_addr uint32 } + Fimr_sourceaddr struct{ Fs_addr uint32 } +} /* in.h:296:1 */ + +// Likewise, for IPv6. +type Ipv6_mreq = struct { + Fipv6mr_multiaddr struct { + F__in6_u struct { + F__ccgo_pad1 [0]uint32 + F__u6_addr8 [16]uint8 + } + } + Fipv6mr_interface uint32 +} /* in.h:311:1 */ + +// Multicast group request. +type Group_req = struct { + Fgr_interface uint32 + F__ccgo_pad1 [4]byte + Fgr_group struct { + Fss_family uint16 + F__ss_padding [118]int8 + F__ss_align uint64 + } +} /* in.h:323:1 */ + +type Group_source_req = struct { + Fgsr_interface uint32 + F__ccgo_pad1 [4]byte + Fgsr_group struct { + Fss_family uint16 + F__ss_padding [118]int8 + F__ss_align uint64 + } + Fgsr_source struct { + Fss_family uint16 + F__ss_padding [118]int8 + F__ss_align uint64 + } +} /* in.h:332:1 */ + +// Full-state filter operations. +type Ip_msfilter = struct { + Fimsf_multiaddr struct{ Fs_addr uint32 } + Fimsf_interface struct{ Fs_addr uint32 } + Fimsf_fmode uint32 + Fimsf_numsrc uint32 + Fimsf_slist [1]struct{ Fs_addr uint32 } +} /* in.h:346:1 */ + +type Group_filter = struct { + Fgf_interface uint32 + F__ccgo_pad1 [4]byte + Fgf_group struct { + Fss_family uint16 + F__ss_padding [118]int8 + F__ss_align uint64 + } + Fgf_fmode uint32 + Fgf_numsrc uint32 + Fgf_slist [1]struct { + Fss_family uint16 + F__ss_padding [118]int8 + F__ss_align uint64 + } +} /* in.h:367:1 */ + +// Define uintN_t types. +// Copyright (C) 2017-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// This is necessary to make this include file properly replace the +// Sun version. +// @(#)netdb.h 2.1 88/07/29 3.9 RPCSRC +// Copyright (c) 2010, Oracle America, Inc. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following +// disclaimer in the documentation and/or other materials +// provided with the distribution. +// * Neither the name of the "Oracle America, Inc." nor the names of its +// contributors may be used to endorse or promote products derived +// from this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +// INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +// GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +// WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +// Cleaned up for GNU C library roland@gnu.ai.mit.edu: +// added multiple inclusion protection and use of . +// In GNU this file is #include'd by . + +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Copyright (C) 1989-2023 Free Software Foundation, Inc. +// +// This file is part of GCC. +// +// GCC is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 3, or (at your option) +// any later version. +// +// GCC is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// Under Section 7 of GPL version 3, you are granted additional +// permissions described in the GCC Runtime Library Exception, version +// 3.1, as published by the Free Software Foundation. +// +// You should have received a copy of the GNU General Public License and +// a copy of the GCC Runtime Library Exception along with this program; +// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see +// . + +// ISO C Standard: 7.17 Common definitions + +// Any one of these symbols __need_* means that GNU libc +// wants us just to define one data type. So don't define +// the symbols that indicate this file's entire job has been done. + +// This avoids lossage on SunOS but only if stdtypes.h comes first. +// There's no way to win with the other order! Sun lossage. + +// Sequent's header files use _PTRDIFF_T_ in some conflicting way. +// Just ignore it. + +// On VxWorks, may have defined macros like +// _TYPE_size_t which will typedef size_t. fixincludes patched the +// vxTypesBase.h so that this macro is only defined if _GCC_SIZE_T is +// not defined, and so that defining this macro defines _GCC_SIZE_T. +// If we find that the macros are still defined at this point, we must +// invoke them so that the type is defined as expected. + +// In case nobody has defined these types, but we aren't running under +// GCC 2.00, make sure that __PTRDIFF_TYPE__, __SIZE_TYPE__, and +// __WCHAR_TYPE__ have reasonable values. This can happen if the +// parts of GCC is compiled by an older compiler, that actually +// include gstddef.h, such as collect2. + +// Signed type of difference of two pointers. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// Unsigned type of `sizeof' something. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// Wide character type. +// Locale-writers should change this as necessary to +// be big enough to hold unique values not between 0 and 127, +// and not (wchar_t) -1, for each defined multibyte character. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// A null pointer constant. + +type Rpcent = struct { + Fr_name uintptr + Fr_aliases uintptr + Fr_number int32 + F__ccgo_pad1 [4]byte +} /* netdb.h:46:1 */ + +// Copyright (C) 1996-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Description of data base entry for a single network. NOTE: here a +// +// poor assumption is made. The network number is expected to fit +// into an unsigned long int variable. +type Netent = struct { + Fn_name uintptr + Fn_aliases uintptr + Fn_addrtype int32 + Fn_net uint32 +} /* netdb.h:26:1 */ + +// Description of data base entry for a single host. +type Hostent = struct { + Fh_name uintptr + Fh_aliases uintptr + Fh_addrtype int32 + Fh_length int32 + Fh_addr_list uintptr +} /* netdb.h:98:1 */ + +// Description of data base entry for a single service. +type Servent = struct { + Fs_name uintptr + Fs_aliases uintptr + Fs_port int32 + F__ccgo_pad1 [4]byte + Fs_proto uintptr +} /* netdb.h:255:1 */ + +// Description of data base entry for a single service. +type Protoent = struct { + Fp_name uintptr + Fp_aliases uintptr + Fp_proto int32 + F__ccgo_pad1 [4]byte +} /* netdb.h:324:1 */ + +// Extension from POSIX.1:2001. +// Structure to contain information about address of a service provider. +type Addrinfo = struct { + Fai_flags int32 + Fai_family int32 + Fai_socktype int32 + Fai_protocol int32 + Fai_addrlen uint32 + F__ccgo_pad1 [4]byte + Fai_addr uintptr + Fai_canonname uintptr + Fai_next uintptr +} /* netdb.h:565:1 */ + +var _ int8 /* gen.c:2:13: */ diff --git a/vendor/modernc.org/libc/netdb/netdb_linux_mips64le.go b/vendor/modernc.org/libc/netdb/netdb_linux_mips64le.go new file mode 100644 index 000000000..a995ad8d0 --- /dev/null +++ b/vendor/modernc.org/libc/netdb/netdb_linux_mips64le.go @@ -0,0 +1,3081 @@ +// Code generated by 'ccgo netdb/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o netdb/netdb_linux_amd64.go -pkgname netdb', DO NOT EDIT. + +package netdb + +import ( + "math" + "reflect" + "sync/atomic" + "unsafe" +) + +var _ = math.Pi +var _ reflect.Kind +var _ atomic.Value +var _ unsafe.Pointer + +const ( + AF_ALG = 38 // socket.h:133:1: + AF_APPLETALK = 5 // socket.h:99:1: + AF_ASH = 18 // socket.h:113:1: + AF_ATMPVC = 8 // socket.h:102:1: + AF_ATMSVC = 20 // socket.h:115:1: + AF_AX25 = 3 // socket.h:97:1: + AF_BLUETOOTH = 31 // socket.h:126:1: + AF_BRIDGE = 7 // socket.h:101:1: + AF_CAIF = 37 // socket.h:132:1: + AF_CAN = 29 // socket.h:124:1: + AF_DECnet = 12 // socket.h:106:1: + AF_ECONET = 19 // socket.h:114:1: + AF_FILE = 1 // socket.h:95:1: + AF_IB = 27 // socket.h:122:1: + AF_IEEE802154 = 36 // socket.h:131:1: + AF_INET = 2 // socket.h:96:1: + AF_INET6 = 10 // socket.h:104:1: + AF_IPX = 4 // socket.h:98:1: + AF_IRDA = 23 // socket.h:118:1: + AF_ISDN = 34 // socket.h:129:1: + AF_IUCV = 32 // socket.h:127:1: + AF_KCM = 41 // socket.h:136:1: + AF_KEY = 15 // socket.h:109:1: + AF_LLC = 26 // socket.h:121:1: + AF_LOCAL = 1 // socket.h:93:1: + AF_MAX = 45 // socket.h:140:1: + AF_MPLS = 28 // socket.h:123:1: + AF_NETBEUI = 13 // socket.h:107:1: + AF_NETLINK = 16 // socket.h:110:1: + AF_NETROM = 6 // socket.h:100:1: + AF_NFC = 39 // socket.h:134:1: + AF_PACKET = 17 // socket.h:112:1: + AF_PHONET = 35 // socket.h:130:1: + AF_PPPOX = 24 // socket.h:119:1: + AF_QIPCRTR = 42 // socket.h:137:1: + AF_RDS = 21 // socket.h:116:1: + AF_ROSE = 11 // socket.h:105:1: + AF_ROUTE = 16 // socket.h:111:1: + AF_RXRPC = 33 // socket.h:128:1: + AF_SECURITY = 14 // socket.h:108:1: + AF_SMC = 43 // socket.h:138:1: + AF_SNA = 22 // socket.h:117:1: + AF_TIPC = 30 // socket.h:125:1: + AF_UNIX = 1 // socket.h:94:1: + AF_UNSPEC = 0 // socket.h:92:1: + AF_VSOCK = 40 // socket.h:135:1: + AF_WANPIPE = 25 // socket.h:120:1: + AF_X25 = 9 // socket.h:103:1: + AF_XDP = 44 // socket.h:139:1: + AI_ADDRCONFIG = 0x0020 // netdb.h:601:1: + AI_ALL = 0x0010 // netdb.h:600:1: + AI_CANONNAME = 0x0002 // netdb.h:597:1: + AI_NUMERICHOST = 0x0004 // netdb.h:598:1: + AI_NUMERICSERV = 0x0400 // netdb.h:613:1: + AI_PASSIVE = 0x0001 // netdb.h:596:1: + AI_V4MAPPED = 0x0008 // netdb.h:599:1: + BIG_ENDIAN = 4321 // endian.h:28:1: + BYTE_ORDER = 1234 // endian.h:30:1: + EAI_AGAIN = -3 // netdb.h:618:1: + EAI_BADFLAGS = -1 // netdb.h:616:1: + EAI_FAIL = -4 // netdb.h:619:1: + EAI_FAMILY = -6 // netdb.h:620:1: + EAI_MEMORY = -10 // netdb.h:623:1: + EAI_NONAME = -2 // netdb.h:617:1: + EAI_OVERFLOW = -12 // netdb.h:625:1: + EAI_SERVICE = -8 // netdb.h:622:1: + EAI_SOCKTYPE = -7 // netdb.h:621:1: + EAI_SYSTEM = -11 // netdb.h:624:1: + FD_SETSIZE = 1024 // select.h:73:1: + FIOGETOWN = 0x8903 // sockios.h:8:1: + FIOSETOWN = 0x8901 // sockios.h:6:1: + HOST_NOT_FOUND = 1 // netdb.h:63:1: + INET6_ADDRSTRLEN = 46 // in.h:234:1: + INET_ADDRSTRLEN = 16 // in.h:233:1: + IN_CLASSA_HOST = 16777215 // in.h:169:1: + IN_CLASSA_MAX = 128 // in.h:170:1: + IN_CLASSA_NET = 0xff000000 // in.h:167:1: + IN_CLASSA_NSHIFT = 24 // in.h:168:1: + IN_CLASSB_HOST = 65535 // in.h:175:1: + IN_CLASSB_MAX = 65536 // in.h:176:1: + IN_CLASSB_NET = 0xffff0000 // in.h:173:1: + IN_CLASSB_NSHIFT = 16 // in.h:174:1: + IN_CLASSC_HOST = 255 // in.h:181:1: + IN_CLASSC_NET = 0xffffff00 // in.h:179:1: + IN_CLASSC_NSHIFT = 8 // in.h:180:1: + IN_LOOPBACKNET = 127 // in.h:197:1: + IPPORT_RESERVED1 = 1024 // netdb.h:79:1: + IPV6_2292DSTOPTS = 4 // in.h:171:1: + IPV6_2292HOPLIMIT = 8 // in.h:175:1: + IPV6_2292HOPOPTS = 3 // in.h:170:1: + IPV6_2292PKTINFO = 2 // in.h:169:1: + IPV6_2292PKTOPTIONS = 6 // in.h:173:1: + IPV6_2292RTHDR = 5 // in.h:172:1: + IPV6_ADDRFORM = 1 // in.h:168:1: + IPV6_ADDR_PREFERENCES = 72 // in.h:223:1: + IPV6_ADD_MEMBERSHIP = 20 // in.h:237:1: + IPV6_AUTHHDR = 10 // in.h:180:1: + IPV6_AUTOFLOWLABEL = 70 // in.h:220:1: + IPV6_CHECKSUM = 7 // in.h:174:1: + IPV6_DONTFRAG = 62 // in.h:214:1: + IPV6_DROP_MEMBERSHIP = 21 // in.h:238:1: + IPV6_DSTOPTS = 59 // in.h:211:1: + IPV6_FREEBIND = 78 // in.h:233:1: + IPV6_HDRINCL = 36 // in.h:198:1: + IPV6_HOPLIMIT = 52 // in.h:204:1: + IPV6_HOPOPTS = 54 // in.h:206:1: + IPV6_IPSEC_POLICY = 34 // in.h:196:1: + IPV6_JOIN_ANYCAST = 27 // in.h:192:1: + IPV6_JOIN_GROUP = 20 // in.h:185:1: + IPV6_LEAVE_ANYCAST = 28 // in.h:193:1: + IPV6_LEAVE_GROUP = 21 // in.h:186:1: + IPV6_MINHOPCOUNT = 73 // in.h:226:1: + IPV6_MTU = 24 // in.h:189:1: + IPV6_MTU_DISCOVER = 23 // in.h:188:1: + IPV6_MULTICAST_ALL = 29 // in.h:194:1: + IPV6_MULTICAST_HOPS = 18 // in.h:183:1: + IPV6_MULTICAST_IF = 17 // in.h:182:1: + IPV6_MULTICAST_LOOP = 19 // in.h:184:1: + IPV6_NEXTHOP = 9 // in.h:179:1: + IPV6_ORIGDSTADDR = 74 // in.h:228:1: + IPV6_PATHMTU = 61 // in.h:213:1: + IPV6_PKTINFO = 50 // in.h:202:1: + IPV6_PMTUDISC_DO = 2 // in.h:246:1: + IPV6_PMTUDISC_DONT = 0 // in.h:244:1: + IPV6_PMTUDISC_INTERFACE = 4 // in.h:248:1: + IPV6_PMTUDISC_OMIT = 5 // in.h:249:1: + IPV6_PMTUDISC_PROBE = 3 // in.h:247:1: + IPV6_PMTUDISC_WANT = 1 // in.h:245:1: + IPV6_RECVDSTOPTS = 58 // in.h:210:1: + IPV6_RECVERR = 25 // in.h:190:1: + IPV6_RECVFRAGSIZE = 77 // in.h:232:1: + IPV6_RECVHOPLIMIT = 51 // in.h:203:1: + IPV6_RECVHOPOPTS = 53 // in.h:205:1: + IPV6_RECVORIGDSTADDR = 74 // in.h:229:1: + IPV6_RECVPATHMTU = 60 // in.h:212:1: + IPV6_RECVPKTINFO = 49 // in.h:201:1: + IPV6_RECVRTHDR = 56 // in.h:208:1: + IPV6_RECVTCLASS = 66 // in.h:217:1: + IPV6_ROUTER_ALERT = 22 // in.h:187:1: + IPV6_ROUTER_ALERT_ISOLATE = 30 // in.h:195:1: + IPV6_RTHDR = 57 // in.h:209:1: + IPV6_RTHDRDSTOPTS = 55 // in.h:207:1: + IPV6_RTHDR_LOOSE = 0 // in.h:256:1: + IPV6_RTHDR_STRICT = 1 // in.h:257:1: + IPV6_RTHDR_TYPE_0 = 0 // in.h:259:1: + IPV6_RXDSTOPTS = 59 // in.h:241:1: + IPV6_RXHOPOPTS = 54 // in.h:240:1: + IPV6_TCLASS = 67 // in.h:218:1: + IPV6_TRANSPARENT = 75 // in.h:230:1: + IPV6_UNICAST_HOPS = 16 // in.h:181:1: + IPV6_UNICAST_IF = 76 // in.h:231:1: + IPV6_V6ONLY = 26 // in.h:191:1: + IPV6_XFRM_POLICY = 35 // in.h:197:1: + IP_ADD_MEMBERSHIP = 35 // in.h:121:1: + IP_ADD_SOURCE_MEMBERSHIP = 39 // in.h:125:1: + IP_BIND_ADDRESS_NO_PORT = 24 // in.h:103:1: + IP_BLOCK_SOURCE = 38 // in.h:124:1: + IP_CHECKSUM = 23 // in.h:102:1: + IP_DEFAULT_MULTICAST_LOOP = 1 // in.h:135:1: + IP_DEFAULT_MULTICAST_TTL = 1 // in.h:134:1: + IP_DROP_MEMBERSHIP = 36 // in.h:122:1: + IP_DROP_SOURCE_MEMBERSHIP = 40 // in.h:126:1: + IP_FREEBIND = 15 // in.h:89:1: + IP_HDRINCL = 3 // in.h:48:1: + IP_IPSEC_POLICY = 16 // in.h:90:1: + IP_MAX_MEMBERSHIPS = 20 // in.h:136:1: + IP_MINTTL = 21 // in.h:100:1: + IP_MSFILTER = 41 // in.h:127:1: + IP_MTU = 14 // in.h:88:1: + IP_MTU_DISCOVER = 10 // in.h:84:1: + IP_MULTICAST_ALL = 49 // in.h:128:1: + IP_MULTICAST_IF = 32 // in.h:118:1: + IP_MULTICAST_LOOP = 34 // in.h:120:1: + IP_MULTICAST_TTL = 33 // in.h:119:1: + IP_NODEFRAG = 22 // in.h:101:1: + IP_OPTIONS = 4 // in.h:47:1: + IP_ORIGDSTADDR = 20 // in.h:97:1: + IP_PASSSEC = 18 // in.h:92:1: + IP_PKTINFO = 8 // in.h:81:1: + IP_PKTOPTIONS = 9 // in.h:82:1: + IP_PMTUDISC = 10 // in.h:83:1: + IP_PMTUDISC_DO = 2 // in.h:109:1: + IP_PMTUDISC_DONT = 0 // in.h:107:1: + IP_PMTUDISC_INTERFACE = 4 // in.h:114:1: + IP_PMTUDISC_OMIT = 5 // in.h:116:1: + IP_PMTUDISC_PROBE = 3 // in.h:110:1: + IP_PMTUDISC_WANT = 1 // in.h:108:1: + IP_RECVERR = 11 // in.h:85:1: + IP_RECVFRAGSIZE = 25 // in.h:104:1: + IP_RECVOPTS = 6 // in.h:51:1: + IP_RECVORIGDSTADDR = 20 // in.h:98:1: + IP_RECVRETOPTS = 7 // in.h:53:1: + IP_RECVTOS = 13 // in.h:87:1: + IP_RECVTTL = 12 // in.h:86:1: + IP_RETOPTS = 7 // in.h:54:1: + IP_ROUTER_ALERT = 5 // in.h:80:1: + IP_TOS = 1 // in.h:49:1: + IP_TRANSPARENT = 19 // in.h:93:1: + IP_TTL = 2 // in.h:50:1: + IP_UNBLOCK_SOURCE = 37 // in.h:123:1: + IP_UNICAST_IF = 50 // in.h:129:1: + IP_XFRM_POLICY = 17 // in.h:91:1: + LITTLE_ENDIAN = 1234 // endian.h:27:1: + MCAST_BLOCK_SOURCE = 43 // in.h:67:1: + MCAST_EXCLUDE = 0 // in.h:76:1: + MCAST_INCLUDE = 1 // in.h:77:1: + MCAST_JOIN_GROUP = 42 // in.h:66:1: + MCAST_JOIN_SOURCE_GROUP = 46 // in.h:70:1: + MCAST_LEAVE_GROUP = 45 // in.h:69:1: + MCAST_LEAVE_SOURCE_GROUP = 47 // in.h:71:1: + MCAST_MSFILTER = 48 // in.h:72:1: + MCAST_UNBLOCK_SOURCE = 44 // in.h:68:1: + NETDB_INTERNAL = -1 // netdb.h:72:1: + NETDB_SUCCESS = 0 // netdb.h:73:1: + NI_DGRAM = 16 // netdb.h:646:1: + NI_MAXHOST = 1025 // netdb.h:638:1: + NI_MAXSERV = 32 // netdb.h:639:1: + NI_NAMEREQD = 8 // netdb.h:645:1: + NI_NOFQDN = 4 // netdb.h:644:1: + NI_NUMERICHOST = 1 // netdb.h:642:1: + NI_NUMERICSERV = 2 // netdb.h:643:1: + NO_ADDRESS = 4 // netdb.h:74:1: + NO_DATA = 4 // netdb.h:68:1: + NO_RECOVERY = 3 // netdb.h:66:1: + PDP_ENDIAN = 3412 // endian.h:29:1: + PF_ALG = 38 // socket.h:82:1: + PF_APPLETALK = 5 // socket.h:48:1: + PF_ASH = 18 // socket.h:62:1: + PF_ATMPVC = 8 // socket.h:51:1: + PF_ATMSVC = 20 // socket.h:64:1: + PF_AX25 = 3 // socket.h:46:1: + PF_BLUETOOTH = 31 // socket.h:75:1: + PF_BRIDGE = 7 // socket.h:50:1: + PF_CAIF = 37 // socket.h:81:1: + PF_CAN = 29 // socket.h:73:1: + PF_DECnet = 12 // socket.h:55:1: + PF_ECONET = 19 // socket.h:63:1: + PF_FILE = 1 // socket.h:44:1: + PF_IB = 27 // socket.h:71:1: + PF_IEEE802154 = 36 // socket.h:80:1: + PF_INET = 2 // socket.h:45:1: + PF_INET6 = 10 // socket.h:53:1: + PF_IPX = 4 // socket.h:47:1: + PF_IRDA = 23 // socket.h:67:1: + PF_ISDN = 34 // socket.h:78:1: + PF_IUCV = 32 // socket.h:76:1: + PF_KCM = 41 // socket.h:85:1: + PF_KEY = 15 // socket.h:58:1: + PF_LLC = 26 // socket.h:70:1: + PF_LOCAL = 1 // socket.h:42:1: + PF_MAX = 45 // socket.h:89:1: + PF_MPLS = 28 // socket.h:72:1: + PF_NETBEUI = 13 // socket.h:56:1: + PF_NETLINK = 16 // socket.h:59:1: + PF_NETROM = 6 // socket.h:49:1: + PF_NFC = 39 // socket.h:83:1: + PF_PACKET = 17 // socket.h:61:1: + PF_PHONET = 35 // socket.h:79:1: + PF_PPPOX = 24 // socket.h:68:1: + PF_QIPCRTR = 42 // socket.h:86:1: + PF_RDS = 21 // socket.h:65:1: + PF_ROSE = 11 // socket.h:54:1: + PF_ROUTE = 16 // socket.h:60:1: + PF_RXRPC = 33 // socket.h:77:1: + PF_SECURITY = 14 // socket.h:57:1: + PF_SMC = 43 // socket.h:87:1: + PF_SNA = 22 // socket.h:66:1: + PF_TIPC = 30 // socket.h:74:1: + PF_UNIX = 1 // socket.h:43:1: + PF_UNSPEC = 0 // socket.h:41:1: + PF_VSOCK = 40 // socket.h:84:1: + PF_WANPIPE = 25 // socket.h:69:1: + PF_X25 = 9 // socket.h:52:1: + PF_XDP = 44 // socket.h:88:1: + SCM_TIMESTAMP = 29 // socket.h:140:1: + SCM_TIMESTAMPING = 37 // socket.h:142:1: + SCM_TIMESTAMPING_OPT_STATS = 54 // socket.h:90:1: + SCM_TIMESTAMPING_PKTINFO = 58 // socket.h:98:1: + SCM_TIMESTAMPNS = 35 // socket.h:141:1: + SCM_TXTIME = 61 // socket.h:105:1: + SCM_WIFI_STATUS = 41 // socket.h:64:1: + SIOCATMARK = 0x8905 // sockios.h:10:1: + SIOCGPGRP = 0x8904 // sockios.h:9:1: + SIOCGSTAMP = 0x8906 // sockios.h:11:1: + SIOCGSTAMPNS = 0x8907 // sockios.h:12:1: + SIOCSPGRP = 0x8902 // sockios.h:7:1: + SOL_AAL = 265 // socket.h:151:1: + SOL_ALG = 279 // socket.h:165:1: + SOL_ATM = 264 // socket.h:150:1: + SOL_BLUETOOTH = 274 // socket.h:160:1: + SOL_CAIF = 278 // socket.h:164:1: + SOL_DCCP = 269 // socket.h:155:1: + SOL_DECNET = 261 // socket.h:147:1: + SOL_ICMPV6 = 58 // in.h:253:1: + SOL_IP = 0 // in.h:132:1: + SOL_IPV6 = 41 // in.h:252:1: + SOL_IRDA = 266 // socket.h:152:1: + SOL_IUCV = 277 // socket.h:163:1: + SOL_KCM = 281 // socket.h:167:1: + SOL_LLC = 268 // socket.h:154:1: + SOL_NETBEUI = 267 // socket.h:153:1: + SOL_NETLINK = 270 // socket.h:156:1: + SOL_NFC = 280 // socket.h:166:1: + SOL_PACKET = 263 // socket.h:149:1: + SOL_PNPIPE = 275 // socket.h:161:1: + SOL_PPPOL2TP = 273 // socket.h:159:1: + SOL_RAW = 255 // socket.h:146:1: + SOL_RDS = 276 // socket.h:162:1: + SOL_RXRPC = 272 // socket.h:158:1: + SOL_SOCKET = 1 // socket.h:9:1: + SOL_TIPC = 271 // socket.h:157:1: + SOL_TLS = 282 // socket.h:168:1: + SOL_X25 = 262 // socket.h:148:1: + SOL_XDP = 283 // socket.h:169:1: + SOMAXCONN = 4096 // socket.h:172:1: + SO_ACCEPTCONN = 30 // socket.h:51:1: + SO_ATTACH_BPF = 50 // socket.h:82:1: + SO_ATTACH_FILTER = 26 // socket.h:45:1: + SO_ATTACH_REUSEPORT_CBPF = 51 // socket.h:85:1: + SO_ATTACH_REUSEPORT_EBPF = 52 // socket.h:86:1: + SO_BINDTODEVICE = 25 // socket.h:42:1: + SO_BINDTOIFINDEX = 62 // socket.h:107:1: + SO_BPF_EXTENSIONS = 48 // socket.h:78:1: + SO_BROADCAST = 6 // socket.h:16:1: + SO_BSDCOMPAT = 14 // socket.h:26:1: + SO_BUSY_POLL = 46 // socket.h:74:1: + SO_CNX_ADVICE = 53 // socket.h:88:1: + SO_COOKIE = 57 // socket.h:96:1: + SO_DEBUG = 1 // socket.h:11:1: + SO_DETACH_BPF = 27 // socket.h:83:1: + SO_DETACH_FILTER = 27 // socket.h:46:1: + SO_DETACH_REUSEPORT_BPF = 68 // socket.h:120:1: + SO_DOMAIN = 39 // socket.h:59:1: + SO_DONTROUTE = 5 // socket.h:15:1: + SO_ERROR = 4 // socket.h:14:1: + SO_GET_FILTER = 26 // socket.h:47:1: + SO_INCOMING_CPU = 49 // socket.h:80:1: + SO_INCOMING_NAPI_ID = 56 // socket.h:94:1: + SO_KEEPALIVE = 9 // socket.h:21:1: + SO_LINGER = 13 // socket.h:25:1: + SO_LOCK_FILTER = 44 // socket.h:70:1: + SO_MARK = 36 // socket.h:56:1: + SO_MAX_PACING_RATE = 47 // socket.h:76:1: + SO_MEMINFO = 55 // socket.h:92:1: + SO_NOFCS = 43 // socket.h:68:1: + SO_NO_CHECK = 11 // socket.h:23:1: + SO_OOBINLINE = 10 // socket.h:22:1: + SO_PASSCRED = 16 // socket.h:29:1: + SO_PASSSEC = 34 // socket.h:54:1: + SO_PEEK_OFF = 42 // socket.h:65:1: + SO_PEERCRED = 17 // socket.h:30:1: + SO_PEERGROUPS = 59 // socket.h:100:1: + SO_PEERNAME = 28 // socket.h:49:1: + SO_PEERSEC = 31 // socket.h:53:1: + SO_PRIORITY = 12 // socket.h:24:1: + SO_PROTOCOL = 38 // socket.h:58:1: + SO_RCVBUF = 8 // socket.h:18:1: + SO_RCVBUFFORCE = 33 // socket.h:20:1: + SO_RCVLOWAT = 18 // socket.h:31:1: + SO_RCVTIMEO = 20 // socket.h:129:1: + SO_RCVTIMEO_NEW = 66 // socket.h:117:1: + SO_RCVTIMEO_OLD = 20 // socket.h:33:1: + SO_REUSEADDR = 2 // socket.h:12:1: + SO_REUSEPORT = 15 // socket.h:27:1: + SO_RXQ_OVFL = 40 // socket.h:61:1: + SO_SECURITY_AUTHENTICATION = 22 // socket.h:38:1: + SO_SECURITY_ENCRYPTION_NETWORK = 24 // socket.h:40:1: + SO_SECURITY_ENCRYPTION_TRANSPORT = 23 // socket.h:39:1: + SO_SELECT_ERR_QUEUE = 45 // socket.h:72:1: + SO_SNDBUF = 7 // socket.h:17:1: + SO_SNDBUFFORCE = 32 // socket.h:19:1: + SO_SNDLOWAT = 19 // socket.h:32:1: + SO_SNDTIMEO = 21 // socket.h:130:1: + SO_SNDTIMEO_NEW = 67 // socket.h:118:1: + SO_SNDTIMEO_OLD = 21 // socket.h:34:1: + SO_TIMESTAMP = 29 // socket.h:125:1: + SO_TIMESTAMPING = 37 // socket.h:127:1: + SO_TIMESTAMPING_NEW = 65 // socket.h:115:1: + SO_TIMESTAMPING_OLD = 37 // socket.h:111:1: + SO_TIMESTAMPNS = 35 // socket.h:126:1: + SO_TIMESTAMPNS_NEW = 64 // socket.h:114:1: + SO_TIMESTAMPNS_OLD = 35 // socket.h:110:1: + SO_TIMESTAMP_NEW = 63 // socket.h:113:1: + SO_TIMESTAMP_OLD = 29 // socket.h:109:1: + SO_TXTIME = 61 // socket.h:104:1: + SO_TYPE = 3 // socket.h:13:1: + SO_WIFI_STATUS = 41 // socket.h:63:1: + SO_ZEROCOPY = 60 // socket.h:102:1: + TRY_AGAIN = 2 // netdb.h:64:1: + X_ASM_X86_POSIX_TYPES_64_H = 0 // posix_types_64.h:3:1: + X_ATFILE_SOURCE = 1 // features.h:342:1: + X_BITS_BYTESWAP_H = 1 // byteswap.h:24:1: + X_BITS_ENDIANNESS_H = 1 // endianness.h:2:1: + X_BITS_ENDIAN_H = 1 // endian.h:20:1: + X_BITS_PTHREADTYPES_ARCH_H = 1 // pthreadtypes-arch.h:19:1: + X_BITS_PTHREADTYPES_COMMON_H = 1 // pthreadtypes.h:20:1: + X_BITS_SOCKADDR_H = 1 // sockaddr.h:24:1: + X_BITS_STDINT_INTN_H = 1 // stdint-intn.h:20:1: + X_BITS_STDINT_UINTN_H = 1 // stdint-uintn.h:20:1: + X_BITS_TIME64_H = 1 // time64.h:24:1: + X_BITS_TYPESIZES_H = 1 // typesizes.h:24:1: + X_BITS_TYPES_H = 1 // types.h:24:1: + X_BITS_UINTN_IDENTITY_H = 1 // uintn-identity.h:24:1: + X_BSD_SIZE_T_ = 0 // stddef.h:189:1: + X_BSD_SIZE_T_DEFINED_ = 0 // stddef.h:192:1: + X_DEFAULT_SOURCE = 1 // features.h:227:1: + X_ENDIAN_H = 1 // endian.h:19:1: + X_FEATURES_H = 1 // features.h:19:1: + X_FILE_OFFSET_BITS = 64 // :25:1: + X_GCC_SIZE_T = 0 // stddef.h:195:1: + X_LINUX_POSIX_TYPES_H = 0 // posix_types.h:3:1: + X_LP64 = 1 // :284:1: + X_NETDB_H = 1 // netdb.h:23:1: + X_NETINET_IN_H = 1 // in.h:19:1: + X_PATH_HEQUIV = "/etc/hosts.equiv" // netdb.h:43:1: + X_PATH_HOSTS = "/etc/hosts" // netdb.h:44:1: + X_PATH_NETWORKS = "/etc/networks" // netdb.h:45:1: + X_PATH_NSSWITCH_CONF = "/etc/nsswitch.conf" // netdb.h:46:1: + X_PATH_PROTOCOLS = "/etc/protocols" // netdb.h:47:1: + X_PATH_SERVICES = "/etc/services" // netdb.h:48:1: + X_POSIX_C_SOURCE = 200809 // features.h:281:1: + X_POSIX_SOURCE = 1 // features.h:279:1: + X_RPC_NETDB_H = 1 // netdb.h:37:1: + X_RWLOCK_INTERNAL_H = 0 // struct_rwlock.h:21:1: + X_SIZET_ = 0 // stddef.h:196:1: + X_SIZE_T = 0 // stddef.h:183:1: + X_SIZE_T_ = 0 // stddef.h:188:1: + X_SIZE_T_DECLARED = 0 // stddef.h:193:1: + X_SIZE_T_DEFINED = 0 // stddef.h:191:1: + X_SIZE_T_DEFINED_ = 0 // stddef.h:190:1: + X_SS_SIZE = 128 // sockaddr.h:40:1: + X_STDC_PREDEF_H = 1 // :162:1: + X_STRUCT_TIMESPEC = 1 // struct_timespec.h:3:1: + X_SYS_CDEFS_H = 1 // cdefs.h:19:1: + X_SYS_SELECT_H = 1 // select.h:22:1: + X_SYS_SIZE_T_H = 0 // stddef.h:184:1: + X_SYS_SOCKET_H = 1 // socket.h:20:1: + X_SYS_TYPES_H = 1 // types.h:23:1: + X_THREAD_MUTEX_INTERNAL_H = 1 // struct_mutex.h:20:1: + X_THREAD_SHARED_TYPES_H = 1 // thread-shared-types.h:20:1: + X_T_SIZE = 0 // stddef.h:186:1: + X_T_SIZE_ = 0 // stddef.h:185:1: + Linux = 1 // :231:1: + Unix = 1 // :177:1: +) + +// Standard well-known ports. +const ( /* in.h:122:1: */ + IPPORT_ECHO = 7 // Echo service. + IPPORT_DISCARD = 9 // Discard transmissions service. + IPPORT_SYSTAT = 11 // System status service. + IPPORT_DAYTIME = 13 // Time of day service. + IPPORT_NETSTAT = 15 // Network status service. + IPPORT_FTP = 21 // File Transfer Protocol. + IPPORT_TELNET = 23 // Telnet protocol. + IPPORT_SMTP = 25 // Simple Mail Transfer Protocol. + IPPORT_TIMESERVER = 37 // Timeserver service. + IPPORT_NAMESERVER = 42 // Domain Name Service. + IPPORT_WHOIS = 43 // Internet Whois service. + IPPORT_MTP = 57 + + IPPORT_TFTP = 69 // Trivial File Transfer Protocol. + IPPORT_RJE = 77 + IPPORT_FINGER = 79 // Finger service. + IPPORT_TTYLINK = 87 + IPPORT_SUPDUP = 95 // SUPDUP protocol. + + IPPORT_EXECSERVER = 512 // execd service. + IPPORT_LOGINSERVER = 513 // rlogind service. + IPPORT_CMDSERVER = 514 + IPPORT_EFSSERVER = 520 + + // UDP ports. + IPPORT_BIFFUDP = 512 + IPPORT_WHOSERVER = 513 + IPPORT_ROUTESERVER = 520 + + // Ports less than this value are reserved for privileged processes. + IPPORT_RESERVED = 1024 + + // Ports greater this value are reserved for (non-privileged) servers. + IPPORT_USERRESERVED = 5000 +) + +// Options for use with `getsockopt' and `setsockopt' at the IPv6 level. +// The first word in the comment at the right is the data type used; +// "bool" means a boolean value stored in an `int'. + +// Advanced API (RFC3542) (1). + +// Advanced API (RFC3542) (2). + +// RFC5014. + +// RFC5082. + +// Obsolete synonyms for the above. + +// IPV6_MTU_DISCOVER values. + +// Socket level values for IPv6. + +// Routing header options for IPv6. + +// Standard well-defined IP protocols. +const ( /* in.h:40:1: */ + IPPROTO_IP = 0 // Dummy protocol for TCP. + IPPROTO_ICMP = 1 // Internet Control Message Protocol. + IPPROTO_IGMP = 2 // Internet Group Management Protocol. + IPPROTO_IPIP = 4 // IPIP tunnels (older KA9Q tunnels use 94). + IPPROTO_TCP = 6 // Transmission Control Protocol. + IPPROTO_EGP = 8 // Exterior Gateway Protocol. + IPPROTO_PUP = 12 // PUP protocol. + IPPROTO_UDP = 17 // User Datagram Protocol. + IPPROTO_IDP = 22 // XNS IDP protocol. + IPPROTO_TP = 29 // SO Transport Protocol Class 4. + IPPROTO_DCCP = 33 // Datagram Congestion Control Protocol. + IPPROTO_IPV6 = 41 // IPv6 header. + IPPROTO_RSVP = 46 // Reservation Protocol. + IPPROTO_GRE = 47 // General Routing Encapsulation. + IPPROTO_ESP = 50 // encapsulating security payload. + IPPROTO_AH = 51 // authentication header. + IPPROTO_MTP = 92 // Multicast Transport Protocol. + IPPROTO_BEETPH = 94 // IP option pseudo header for BEET. + IPPROTO_ENCAP = 98 // Encapsulation Header. + IPPROTO_PIM = 103 // Protocol Independent Multicast. + IPPROTO_COMP = 108 // Compression Header Protocol. + IPPROTO_SCTP = 132 // Stream Control Transmission Protocol. + IPPROTO_UDPLITE = 136 // UDP-Lite protocol. + IPPROTO_MPLS = 137 // MPLS in IP. + IPPROTO_RAW = 255 // Raw IP packets. + IPPROTO_MAX = 256 +) + +// If __USE_KERNEL_IPV6_DEFS is 1 then the user has included the kernel +// +// network headers first and we should use those ABI-identical definitions +// instead of our own, otherwise 0. +const ( /* in.h:99:1: */ + IPPROTO_HOPOPTS = 0 // IPv6 Hop-by-Hop options. + IPPROTO_ROUTING = 43 // IPv6 routing header. + IPPROTO_FRAGMENT = 44 // IPv6 fragmentation header. + IPPROTO_ICMPV6 = 58 // ICMPv6. + IPPROTO_NONE = 59 // IPv6 no next header. + IPPROTO_DSTOPTS = 60 // IPv6 destination options. + IPPROTO_MH = 135 +) + +// Bits in the FLAGS argument to `send', `recv', et al. +const ( /* socket.h:200:1: */ + MSG_OOB = 1 // Process out-of-band data. + MSG_PEEK = 2 // Peek at incoming messages. + MSG_DONTROUTE = 4 // Don't use local routing. + MSG_CTRUNC = 8 // Control data lost before delivery. + MSG_PROXY = 16 // Supply or ask second address. + MSG_TRUNC = 32 + MSG_DONTWAIT = 64 // Nonblocking IO. + MSG_EOR = 128 // End of record. + MSG_WAITALL = 256 // Wait for a full request. + MSG_FIN = 512 + MSG_SYN = 1024 + MSG_CONFIRM = 2048 // Confirm path validity. + MSG_RST = 4096 + MSG_ERRQUEUE = 8192 // Fetch message from error queue. + MSG_NOSIGNAL = 16384 // Do not generate SIGPIPE. + MSG_MORE = 32768 // Sender will send more. + MSG_WAITFORONE = 65536 // Wait for at least one packet to return. + MSG_BATCH = 262144 // sendmmsg: more messages coming. + MSG_ZEROCOPY = 67108864 // Use user data in kernel path. + MSG_FASTOPEN = 536870912 // Send data in TCP SYN. + + MSG_CMSG_CLOEXEC = 1073741824 +) + +// Socket level message types. This must match the definitions in +// +// . +const ( /* socket.h:332:1: */ + SCM_RIGHTS = 1 +) + +// Get the architecture-dependent definition of enum __socket_type. +// Define enum __socket_type for generic Linux. +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Types of sockets. +const ( /* socket_type.h:24:1: */ + SOCK_STREAM = 1 // Sequenced, reliable, connection-based + // byte streams. + SOCK_DGRAM = 2 // Connectionless, unreliable datagrams + // of fixed maximum length. + SOCK_RAW = 3 // Raw protocol interface. + SOCK_RDM = 4 // Reliably-delivered messages. + SOCK_SEQPACKET = 5 // Sequenced, reliable, connection-based, + // datagrams of fixed maximum length. + SOCK_DCCP = 6 // Datagram Congestion Control Protocol. + SOCK_PACKET = 10 // Linux specific way of getting packets + // at the dev level. For writing rarp and + // other similar things on the user level. + + // Flags to be ORed into the type parameter of socket and socketpair and + // used for the flags parameter of paccept. + + SOCK_CLOEXEC = 524288 // Atomically set close-on-exec flag for the + // new descriptor(s). + SOCK_NONBLOCK = 2048 +) + +// The following constants should be used for the second parameter of +// +// `shutdown'. +const ( /* socket.h:41:1: */ + SHUT_RD = 0 // No more receptions. + SHUT_WR = 1 // No more transmissions. + SHUT_RDWR = 2 +) + +type Ptrdiff_t = int64 /* :3:26 */ + +type Size_t = uint64 /* :9:23 */ + +type Wchar_t = int32 /* :15:24 */ + +type X__int128_t = struct { + Flo int64 + Fhi int64 +} /* :21:43 */ // must match modernc.org/mathutil.Int128 +type X__uint128_t = struct { + Flo uint64 + Fhi uint64 +} /* :22:44 */ // must match modernc.org/mathutil.Int128 + +type X__builtin_va_list = uintptr /* :46:14 */ +type X__float128 = float64 /* :47:21 */ + +// Copyright (C) 1996-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// All data returned by the network data base library are supplied in +// host order and returned in network order (suitable for use in +// system calls). + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// These are defined by the user (or the compiler) +// to specify the desired environment: +// +// __STRICT_ANSI__ ISO Standard C. +// _ISOC99_SOURCE Extensions to ISO C89 from ISO C99. +// _ISOC11_SOURCE Extensions to ISO C99 from ISO C11. +// _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X. +// __STDC_WANT_LIB_EXT2__ +// Extensions to ISO C99 from TR 27431-2:2010. +// __STDC_WANT_IEC_60559_BFP_EXT__ +// Extensions to ISO C11 from TS 18661-1:2014. +// __STDC_WANT_IEC_60559_FUNCS_EXT__ +// Extensions to ISO C11 from TS 18661-4:2015. +// __STDC_WANT_IEC_60559_TYPES_EXT__ +// Extensions to ISO C11 from TS 18661-3:2015. +// +// _POSIX_SOURCE IEEE Std 1003.1. +// _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2; +// if >=199309L, add IEEE Std 1003.1b-1993; +// if >=199506L, add IEEE Std 1003.1c-1995; +// if >=200112L, all of IEEE 1003.1-2004 +// if >=200809L, all of IEEE 1003.1-2008 +// _XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if +// Single Unix conformance is wanted, to 600 for the +// sixth revision, to 700 for the seventh revision. +// _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions. +// _LARGEFILE_SOURCE Some more functions for correct standard I/O. +// _LARGEFILE64_SOURCE Additional functionality from LFS for large files. +// _FILE_OFFSET_BITS=N Select default filesystem interface. +// _ATFILE_SOURCE Additional *at interfaces. +// _GNU_SOURCE All of the above, plus GNU extensions. +// _DEFAULT_SOURCE The default set of features (taking precedence over +// __STRICT_ANSI__). +// +// _FORTIFY_SOURCE Add security hardening to many library functions. +// Set to 1 or 2; 2 performs stricter checks than 1. +// +// _REENTRANT, _THREAD_SAFE +// Obsolete; equivalent to _POSIX_C_SOURCE=199506L. +// +// The `-ansi' switch to the GNU C compiler, and standards conformance +// options such as `-std=c99', define __STRICT_ANSI__. If none of +// these are defined, or if _DEFAULT_SOURCE is defined, the default is +// to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to +// 200809L, as well as enabling miscellaneous functions from BSD and +// SVID. If more than one of these are defined, they accumulate. For +// example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together +// give you ISO C, 1003.1, and 1003.2, but nothing else. +// +// These are defined by this file and are used by the +// header files to decide what to declare or define: +// +// __GLIBC_USE (F) Define things from feature set F. This is defined +// to 1 or 0; the subsequent macros are either defined +// or undefined, and those tests should be moved to +// __GLIBC_USE. +// __USE_ISOC11 Define ISO C11 things. +// __USE_ISOC99 Define ISO C99 things. +// __USE_ISOC95 Define ISO C90 AMD1 (C95) things. +// __USE_ISOCXX11 Define ISO C++11 things. +// __USE_POSIX Define IEEE Std 1003.1 things. +// __USE_POSIX2 Define IEEE Std 1003.2 things. +// __USE_POSIX199309 Define IEEE Std 1003.1, and .1b things. +// __USE_POSIX199506 Define IEEE Std 1003.1, .1b, .1c and .1i things. +// __USE_XOPEN Define XPG things. +// __USE_XOPEN_EXTENDED Define X/Open Unix things. +// __USE_UNIX98 Define Single Unix V2 things. +// __USE_XOPEN2K Define XPG6 things. +// __USE_XOPEN2KXSI Define XPG6 XSI things. +// __USE_XOPEN2K8 Define XPG7 things. +// __USE_XOPEN2K8XSI Define XPG7 XSI things. +// __USE_LARGEFILE Define correct standard I/O things. +// __USE_LARGEFILE64 Define LFS things with separate names. +// __USE_FILE_OFFSET64 Define 64bit interface as default. +// __USE_MISC Define things from 4.3BSD or System V Unix. +// __USE_ATFILE Define *at interfaces and AT_* constants for them. +// __USE_GNU Define GNU extensions. +// __USE_FORTIFY_LEVEL Additional security measures used, according to level. +// +// The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are +// defined by this file unconditionally. `__GNU_LIBRARY__' is provided +// only for compatibility. All new code should use the other symbols +// to test for features. +// +// All macros listed above as possibly being defined by this file are +// explicitly undefined if they are not explicitly defined. +// Feature-test macros that are not defined by the user or compiler +// but are implied by the other feature-test macros defined (or by the +// lack of any definitions) are defined by the file. +// +// ISO C feature test macros depend on the definition of the macro +// when an affected header is included, not when the first system +// header is included, and so they are handled in +// , which does not have a multiple include +// guard. Feature test macros that can be handled from the first +// system header included are handled here. + +// Undefine everything, so we get a clean slate. + +// Suppress kernel-name space pollution unless user expressedly asks +// for it. + +// Convenience macro to test the version of gcc. +// Use like this: +// #if __GNUC_PREREQ (2,8) +// ... code requiring gcc 2.8 or later ... +// #endif +// Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was +// added in 2.0. + +// Similarly for clang. Features added to GCC after version 4.2 may +// or may not also be available in clang, and clang's definitions of +// __GNUC(_MINOR)__ are fixed at 4 and 2 respectively. Not all such +// features can be queried via __has_extension/__has_feature. + +// Whether to use feature set F. + +// _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for +// _DEFAULT_SOURCE. If _DEFAULT_SOURCE is present we do not +// issue a warning; the expectation is that the source is being +// transitioned to use the new macro. + +// If _GNU_SOURCE was defined by the user, turn on all the other features. + +// If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined, +// define _DEFAULT_SOURCE. + +// This is to enable the ISO C2X extension. + +// This is to enable the ISO C11 extension. + +// This is to enable the ISO C99 extension. + +// This is to enable the ISO C90 Amendment 1:1995 extension. + +// If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE +// is defined, use POSIX.1-2008 (or another version depending on +// _XOPEN_SOURCE). + +// Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be +// defined in all multithreaded code. GNU libc has not required this +// for many years. We now treat them as compatibility synonyms for +// _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with +// comprehensive support for multithreaded code. Using them never +// lowers the selected level of POSIX conformance, only raises it. + +// The function 'gets' existed in C89, but is impossible to use +// safely. It has been removed from ISO C11 and ISO C++14. Note: for +// compatibility with various implementations of , this test +// must consider only the value of __cplusplus when compiling C++. + +// GNU formerly extended the scanf functions with modified format +// specifiers %as, %aS, and %a[...] that allocate a buffer for the +// input using malloc. This extension conflicts with ISO C99, which +// defines %a as a standalone format specifier that reads a floating- +// point number; moreover, POSIX.1-2008 provides the same feature +// using the modifier letter 'm' instead (%ms, %mS, %m[...]). +// +// We now follow C99 unless GNU extensions are active and the compiler +// is specifically in C89 or C++98 mode (strict or not). For +// instance, with GCC, -std=gnu11 will have C99-compliant scanf with +// or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the +// old extension. + +// Get definitions of __STDC_* predefined macros, if the compiler has +// not preincluded this header automatically. +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// This macro indicates that the installed library is the GNU C Library. +// For historic reasons the value now is 6 and this will stay from now +// on. The use of this variable is deprecated. Use __GLIBC__ and +// __GLIBC_MINOR__ now (see below) when you want to test for a specific +// GNU C library version and use the values in to get +// the sonames of the shared libraries. + +// Major and minor version number of the GNU C library package. Use +// these macros to test for features in specific releases. + +// This is here only because every header file already includes this one. +// Copyright (C) 1992-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// We are almost always included from features.h. + +// The GNU libc does not support any K&R compilers or the traditional mode +// of ISO C compilers anymore. Check for some of the combinations not +// anymore supported. + +// Some user header file might have defined this before. + +// All functions, except those with callbacks or those that +// synchronize memory, are leaf functions. + +// GCC can always grok prototypes. For C++ programs we add throw() +// to help it optimize the function calls. But this works only with +// gcc 2.8.x and egcs. For gcc 3.2 and up we even mark C functions +// as non-throwing using a function attribute since programs can use +// the -fexceptions options for C code as well. + +// Compilers that are not clang may object to +// #if defined __clang__ && __has_extension(...) +// even though they do not need to evaluate the right-hand side of the &&. + +// These two macros are not used in glibc anymore. They are kept here +// only because some other projects expect the macros to be defined. + +// For these things, GCC behaves the ANSI way normally, +// and the non-ANSI way under -traditional. + +// This is not a typedef so `const __ptr_t' does the right thing. + +// C++ needs to know that types and declarations are C, not C++. + +// Fortify support. + +// Support for flexible arrays. +// Headers that should use flexible arrays only if they're "real" +// (e.g. only if they won't affect sizeof()) should test +// #if __glibc_c99_flexarr_available. + +// __asm__ ("xyz") is used throughout the headers to rename functions +// at the assembly language level. This is wrapped by the __REDIRECT +// macro, in order to support compilers that can do this some other +// way. When compilers don't support asm-names at all, we have to do +// preprocessor tricks instead (which don't have exactly the right +// semantics, but it's the best we can do). +// +// Example: +// int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid); + +// +// #elif __SOME_OTHER_COMPILER__ +// +// # define __REDIRECT(name, proto, alias) name proto; _Pragma("let " #name " = " #alias) + +// GCC has various useful declarations that can be made with the +// `__attribute__' syntax. All of the ways we use this do fine if +// they are omitted for compilers that don't understand it. + +// At some point during the gcc 2.96 development the `malloc' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// Tell the compiler which arguments to an allocation function +// indicate the size of the allocation. + +// At some point during the gcc 2.96 development the `pure' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// This declaration tells the compiler that the value is constant. + +// At some point during the gcc 3.1 development the `used' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// Since version 3.2, gcc allows marking deprecated functions. + +// Since version 4.5, gcc also allows one to specify the message printed +// when a deprecated function is used. clang claims to be gcc 4.2, but +// may also support this feature. + +// At some point during the gcc 2.8 development the `format_arg' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. +// If several `format_arg' attributes are given for the same function, in +// gcc-3.0 and older, all but the last one are ignored. In newer gccs, +// all designated arguments are considered. + +// At some point during the gcc 2.97 development the `strfmon' format +// attribute for functions was introduced. We don't want to use it +// unconditionally (although this would be possible) since it +// generates warnings. + +// The nonull function attribute allows to mark pointer parameters which +// must not be NULL. + +// If fortification mode, we warn about unused results of certain +// function calls which can lead to problems. + +// Forces a function to be always inlined. +// The Linux kernel defines __always_inline in stddef.h (283d7573), and +// it conflicts with this definition. Therefore undefine it first to +// allow either header to be included first. + +// Associate error messages with the source location of the call site rather +// than with the source location inside the function. + +// GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99 +// inline semantics, unless -fgnu89-inline is used. Using __GNUC_STDC_INLINE__ +// or __GNUC_GNU_INLINE is not a good enough check for gcc because gcc versions +// older than 4.3 may define these macros and still not guarantee GNU inlining +// semantics. +// +// clang++ identifies itself as gcc-4.2, but has support for GNU inlining +// semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and +// __GNUC_GNU_INLINE__ macro definitions. + +// GCC 4.3 and above allow passing all anonymous arguments of an +// __extern_always_inline function to some other vararg function. + +// It is possible to compile containing GCC extensions even if GCC is +// run in pedantic mode if the uses are carefully marked using the +// `__extension__' keyword. But this is not generally available before +// version 2.8. + +// __restrict is known in EGCS 1.2 and above. + +// ISO C99 also allows to declare arrays as non-overlapping. The syntax is +// array_name[restrict] +// GCC 3.1 supports this. + +// Describes a char array whose address can safely be passed as the first +// argument to strncpy and strncat, as the char array is not necessarily +// a NUL-terminated string. + +// Undefine (also defined in libc-symbols.h). +// Copies attributes from the declaration or type referenced by +// the argument. + +// Determine the wordsize from the preprocessor defines. + +// Both x86-64 and x32 use the 64-bit system call interface. +// Properties of long double type. ldbl-96 version. +// Copyright (C) 2016-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// long double is distinct from double, so there is nothing to +// define here. + +// __glibc_macro_warning (MESSAGE) issues warning MESSAGE. This is +// intended for use in preprocessor macros. +// +// Note: MESSAGE must be a _single_ string; concatenation of string +// literals is not supported. + +// Generic selection (ISO C11) is a C-only feature, available in GCC +// since version 4.9. Previous versions do not provide generic +// selection, even though they might set __STDC_VERSION__ to 201112L, +// when in -std=c11 mode. Thus, we must check for !defined __GNUC__ +// when testing __STDC_VERSION__ for generic selection support. +// On the other hand, Clang also defines __GNUC__, so a clang-specific +// check is required to enable the use of generic selection. + +// If we don't have __REDIRECT, prototypes will be missing if +// __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64]. + +// Decide whether we can define 'extern inline' functions in headers. + +// This is here only because every header file already includes this one. +// Get the definitions of all the appropriate `__stub_FUNCTION' symbols. +// contains `#define __stub_FUNCTION' when FUNCTION is a stub +// that will always return failure (and set errno to ENOSYS). +// This file is automatically generated. +// This file selects the right generated file of `__stub_FUNCTION' macros +// based on the architecture being compiled for. + +// This file is automatically generated. +// It defines a symbol `__stub_FUNCTION' for each function +// in the C library which is a stub, meaning it will fail +// every time called, usually setting errno to ENOSYS. + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Define uintN_t types. +// Copyright (C) 2017-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Determine the wordsize from the preprocessor defines. + +// Both x86-64 and x32 use the 64-bit system call interface. +// Bit size of the time_t type at glibc build time, x86-64 and x32 case. +// Copyright (C) 2018-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// For others, time size is word size. + +// Convenience types. +type X__u_char = uint8 /* types.h:31:23 */ +type X__u_short = uint16 /* types.h:32:28 */ +type X__u_int = uint32 /* types.h:33:22 */ +type X__u_long = uint64 /* types.h:34:27 */ + +// Fixed-size types, underlying types depend on word size and compiler. +type X__int8_t = int8 /* types.h:37:21 */ +type X__uint8_t = uint8 /* types.h:38:23 */ +type X__int16_t = int16 /* types.h:39:26 */ +type X__uint16_t = uint16 /* types.h:40:28 */ +type X__int32_t = int32 /* types.h:41:20 */ +type X__uint32_t = uint32 /* types.h:42:22 */ +type X__int64_t = int64 /* types.h:44:25 */ +type X__uint64_t = uint64 /* types.h:45:27 */ + +// Smallest types with at least a given width. +type X__int_least8_t = X__int8_t /* types.h:52:18 */ +type X__uint_least8_t = X__uint8_t /* types.h:53:19 */ +type X__int_least16_t = X__int16_t /* types.h:54:19 */ +type X__uint_least16_t = X__uint16_t /* types.h:55:20 */ +type X__int_least32_t = X__int32_t /* types.h:56:19 */ +type X__uint_least32_t = X__uint32_t /* types.h:57:20 */ +type X__int_least64_t = X__int64_t /* types.h:58:19 */ +type X__uint_least64_t = X__uint64_t /* types.h:59:20 */ + +// quad_t is also 64 bits. +type X__quad_t = int64 /* types.h:63:18 */ +type X__u_quad_t = uint64 /* types.h:64:27 */ + +// Largest integral types. +type X__intmax_t = int64 /* types.h:72:18 */ +type X__uintmax_t = uint64 /* types.h:73:27 */ + +// The machine-dependent file defines __*_T_TYPE +// macros for each of the OS types we define below. The definitions +// of those macros must use the following macros for underlying types. +// We define __S_TYPE and __U_TYPE for the signed and unsigned +// variants of each of the following integer types on this machine. +// +// 16 -- "natural" 16-bit type (always short) +// 32 -- "natural" 32-bit type (always int) +// 64 -- "natural" 64-bit type (long or long long) +// LONG32 -- 32-bit type, traditionally long +// QUAD -- 64-bit type, traditionally long long +// WORD -- natural type of __WORDSIZE bits (int or long) +// LONGWORD -- type of __WORDSIZE bits, traditionally long +// +// We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the +// conventional uses of `long' or `long long' type modifiers match the +// types we define, even when a less-adorned type would be the same size. +// This matters for (somewhat) portably writing printf/scanf formats for +// these types, where using the appropriate l or ll format modifiers can +// make the typedefs and the formats match up across all GNU platforms. If +// we used `long' when it's 64 bits where `long long' is expected, then the +// compiler would warn about the formats not matching the argument types, +// and the programmer changing them to shut up the compiler would break the +// program's portability. +// +// Here we assume what is presently the case in all the GCC configurations +// we support: long long is always 64 bits, long is always word/address size, +// and int is always 32 bits. + +// No need to mark the typedef with __extension__. +// bits/typesizes.h -- underlying types for *_t. Linux/x86-64 version. +// Copyright (C) 2012-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// See for the meaning of these macros. This file exists so +// that need not vary across different GNU platforms. + +// X32 kernel interface is 64-bit. + +// Tell the libc code that off_t and off64_t are actually the same type +// for all ABI purposes, even if possibly expressed as different base types +// for C type-checking purposes. + +// Same for ino_t and ino64_t. + +// And for __rlim_t and __rlim64_t. + +// And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t. + +// Number of descriptors that can fit in an `fd_set'. + +// bits/time64.h -- underlying types for __time64_t. Generic version. +// Copyright (C) 2018-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Define __TIME64_T_TYPE so that it is always a 64-bit type. + +// If we already have 64-bit time type then use it. + +type X__dev_t = uint64 /* types.h:145:25 */ // Type of device numbers. +type X__uid_t = uint32 /* types.h:146:25 */ // Type of user identifications. +type X__gid_t = uint32 /* types.h:147:25 */ // Type of group identifications. +type X__ino_t = uint64 /* types.h:148:25 */ // Type of file serial numbers. +type X__ino64_t = uint64 /* types.h:149:27 */ // Type of file serial numbers (LFS). +type X__mode_t = uint32 /* types.h:150:26 */ // Type of file attribute bitmasks. +type X__nlink_t = uint64 /* types.h:151:27 */ // Type of file link counts. +type X__off_t = int64 /* types.h:152:25 */ // Type of file sizes and offsets. +type X__off64_t = int64 /* types.h:153:27 */ // Type of file sizes and offsets (LFS). +type X__pid_t = int32 /* types.h:154:25 */ // Type of process identifications. +type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs. +type X__clock_t = int64 /* types.h:156:27 */ // Type of CPU usage counts. +type X__rlim_t = uint64 /* types.h:157:26 */ // Type for resource measurement. +type X__rlim64_t = uint64 /* types.h:158:28 */ // Type for resource measurement (LFS). +type X__id_t = uint32 /* types.h:159:24 */ // General type for IDs. +type X__time_t = int64 /* types.h:160:26 */ // Seconds since the Epoch. +type X__useconds_t = uint32 /* types.h:161:30 */ // Count of microseconds. +type X__suseconds_t = int64 /* types.h:162:31 */ // Signed count of microseconds. + +type X__daddr_t = int32 /* types.h:164:27 */ // The type of a disk address. +type X__key_t = int32 /* types.h:165:25 */ // Type of an IPC key. + +// Clock ID used in clock and timer functions. +type X__clockid_t = int32 /* types.h:168:29 */ + +// Timer ID returned by `timer_create'. +type X__timer_t = uintptr /* types.h:171:12 */ + +// Type to represent block size. +type X__blksize_t = int64 /* types.h:174:29 */ + +// Types from the Large File Support interface. + +// Type to count number of disk blocks. +type X__blkcnt_t = int64 /* types.h:179:28 */ +type X__blkcnt64_t = int64 /* types.h:180:30 */ + +// Type to count file system blocks. +type X__fsblkcnt_t = uint64 /* types.h:183:30 */ +type X__fsblkcnt64_t = uint64 /* types.h:184:32 */ + +// Type to count file system nodes. +type X__fsfilcnt_t = uint64 /* types.h:187:30 */ +type X__fsfilcnt64_t = uint64 /* types.h:188:32 */ + +// Type of miscellaneous file system fields. +type X__fsword_t = int64 /* types.h:191:28 */ + +type X__ssize_t = int64 /* types.h:193:27 */ // Type of a byte count, or error. + +// Signed long type used in system calls. +type X__syscall_slong_t = int64 /* types.h:196:33 */ +// Unsigned long type used in system calls. +type X__syscall_ulong_t = uint64 /* types.h:198:33 */ + +// These few don't really vary by system, they always correspond +// +// to one of the other defined types. +type X__loff_t = X__off64_t /* types.h:202:19 */ // Type of file sizes and offsets (LFS). +type X__caddr_t = uintptr /* types.h:203:14 */ + +// Duplicates info from stdint.h but this is used in unistd.h. +type X__intptr_t = int64 /* types.h:206:25 */ + +// Duplicate info from sys/socket.h. +type X__socklen_t = uint32 /* types.h:209:23 */ + +// C99: An integer type that can be accessed as an atomic entity, +// +// even in the presence of asynchronous interrupts. +// It is not currently necessary for this to be machine-specific. +type X__sig_atomic_t = int32 /* types.h:214:13 */ + +// Seconds since the Epoch, visible to user code when time_t is too +// narrow only for consistency with the old way of widening too-narrow +// types. User code should never use __time64_t. + +type Uint8_t = X__uint8_t /* stdint-uintn.h:24:19 */ +type Uint16_t = X__uint16_t /* stdint-uintn.h:25:20 */ +type Uint32_t = X__uint32_t /* stdint-uintn.h:26:20 */ +type Uint64_t = X__uint64_t /* stdint-uintn.h:27:20 */ + +// Wide character type. +// Locale-writers should change this as necessary to +// be big enough to hold unique values not between 0 and 127, +// and not (wchar_t) -1, for each defined multibyte character. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// A null pointer constant. + +// Structure for scatter/gather I/O. +type Iovec = struct { + Fiov_base uintptr + Fiov_len Size_t +} /* struct_iovec.h:26:1 */ + +// Copyright (C) 1989-2020 Free Software Foundation, Inc. +// +// This file is part of GCC. +// +// GCC is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 3, or (at your option) +// any later version. +// +// GCC is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// Under Section 7 of GPL version 3, you are granted additional +// permissions described in the GCC Runtime Library Exception, version +// 3.1, as published by the Free Software Foundation. +// +// You should have received a copy of the GNU General Public License and +// a copy of the GCC Runtime Library Exception along with this program; +// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see +// . + +// ISO C Standard: 7.17 Common definitions + +// Any one of these symbols __need_* means that GNU libc +// wants us just to define one data type. So don't define +// the symbols that indicate this file's entire job has been done. + +// This avoids lossage on SunOS but only if stdtypes.h comes first. +// There's no way to win with the other order! Sun lossage. + +// Sequent's header files use _PTRDIFF_T_ in some conflicting way. +// Just ignore it. + +// On VxWorks, may have defined macros like +// _TYPE_size_t which will typedef size_t. fixincludes patched the +// vxTypesBase.h so that this macro is only defined if _GCC_SIZE_T is +// not defined, and so that defining this macro defines _GCC_SIZE_T. +// If we find that the macros are still defined at this point, we must +// invoke them so that the type is defined as expected. + +// In case nobody has defined these types, but we aren't running under +// GCC 2.00, make sure that __PTRDIFF_TYPE__, __SIZE_TYPE__, and +// __WCHAR_TYPE__ have reasonable values. This can happen if the +// parts of GCC is compiled by an older compiler, that actually +// include gstddef.h, such as collect2. + +// Signed type of difference of two pointers. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// Unsigned type of `sizeof' something. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// Wide character type. +// Locale-writers should change this as necessary to +// be big enough to hold unique values not between 0 and 127, +// and not (wchar_t) -1, for each defined multibyte character. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// A null pointer constant. + +// This operating system-specific header file defines the SOCK_*, PF_*, +// AF_*, MSG_*, SOL_*, and SO_* constants, and the `struct sockaddr', +// `struct msghdr', and `struct linger' types. +// System-specific socket constants and types. Linux version. +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Copyright (C) 1989-2020 Free Software Foundation, Inc. +// +// This file is part of GCC. +// +// GCC is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 3, or (at your option) +// any later version. +// +// GCC is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// Under Section 7 of GPL version 3, you are granted additional +// permissions described in the GCC Runtime Library Exception, version +// 3.1, as published by the Free Software Foundation. +// +// You should have received a copy of the GNU General Public License and +// a copy of the GCC Runtime Library Exception along with this program; +// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see +// . + +// ISO C Standard: 7.17 Common definitions + +// Any one of these symbols __need_* means that GNU libc +// wants us just to define one data type. So don't define +// the symbols that indicate this file's entire job has been done. + +// This avoids lossage on SunOS but only if stdtypes.h comes first. +// There's no way to win with the other order! Sun lossage. + +// Sequent's header files use _PTRDIFF_T_ in some conflicting way. +// Just ignore it. + +// On VxWorks, may have defined macros like +// _TYPE_size_t which will typedef size_t. fixincludes patched the +// vxTypesBase.h so that this macro is only defined if _GCC_SIZE_T is +// not defined, and so that defining this macro defines _GCC_SIZE_T. +// If we find that the macros are still defined at this point, we must +// invoke them so that the type is defined as expected. + +// In case nobody has defined these types, but we aren't running under +// GCC 2.00, make sure that __PTRDIFF_TYPE__, __SIZE_TYPE__, and +// __WCHAR_TYPE__ have reasonable values. This can happen if the +// parts of GCC is compiled by an older compiler, that actually +// include gstddef.h, such as collect2. + +// Signed type of difference of two pointers. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// Unsigned type of `sizeof' something. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// Wide character type. +// Locale-writers should change this as necessary to +// be big enough to hold unique values not between 0 and 127, +// and not (wchar_t) -1, for each defined multibyte character. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// A null pointer constant. + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// POSIX Standard: 2.6 Primitive System Data Types + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +type U_char = X__u_char /* types.h:33:18 */ +type U_short = X__u_short /* types.h:34:19 */ +type U_int = X__u_int /* types.h:35:17 */ +type U_long = X__u_long /* types.h:36:18 */ +type Quad_t = X__quad_t /* types.h:37:18 */ +type U_quad_t = X__u_quad_t /* types.h:38:20 */ +type Fsid_t = X__fsid_t /* types.h:39:18 */ +type Loff_t = X__loff_t /* types.h:42:18 */ + +type Ino_t = X__ino64_t /* types.h:49:19 */ + +type Dev_t = X__dev_t /* types.h:59:17 */ + +type Gid_t = X__gid_t /* types.h:64:17 */ + +type Mode_t = X__mode_t /* types.h:69:18 */ + +type Nlink_t = X__nlink_t /* types.h:74:19 */ + +type Uid_t = X__uid_t /* types.h:79:17 */ + +type Off_t = X__off64_t /* types.h:87:19 */ + +type Pid_t = X__pid_t /* types.h:97:17 */ + +type Id_t = X__id_t /* types.h:103:16 */ + +type Ssize_t = X__ssize_t /* types.h:108:19 */ + +type Daddr_t = X__daddr_t /* types.h:114:19 */ +type Caddr_t = X__caddr_t /* types.h:115:19 */ + +type Key_t = X__key_t /* types.h:121:17 */ + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Returned by `clock'. +type Clock_t = X__clock_t /* clock_t.h:7:19 */ + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Clock ID used in clock and timer functions. +type Clockid_t = X__clockid_t /* clockid_t.h:7:21 */ + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Returned by `time'. +type Time_t = X__time_t /* time_t.h:7:18 */ + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Timer ID returned by `timer_create'. +type Timer_t = X__timer_t /* timer_t.h:7:19 */ + +// Copyright (C) 1989-2020 Free Software Foundation, Inc. +// +// This file is part of GCC. +// +// GCC is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 3, or (at your option) +// any later version. +// +// GCC is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// Under Section 7 of GPL version 3, you are granted additional +// permissions described in the GCC Runtime Library Exception, version +// 3.1, as published by the Free Software Foundation. +// +// You should have received a copy of the GNU General Public License and +// a copy of the GCC Runtime Library Exception along with this program; +// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see +// . + +// ISO C Standard: 7.17 Common definitions + +// Any one of these symbols __need_* means that GNU libc +// wants us just to define one data type. So don't define +// the symbols that indicate this file's entire job has been done. + +// This avoids lossage on SunOS but only if stdtypes.h comes first. +// There's no way to win with the other order! Sun lossage. + +// Sequent's header files use _PTRDIFF_T_ in some conflicting way. +// Just ignore it. + +// On VxWorks, may have defined macros like +// _TYPE_size_t which will typedef size_t. fixincludes patched the +// vxTypesBase.h so that this macro is only defined if _GCC_SIZE_T is +// not defined, and so that defining this macro defines _GCC_SIZE_T. +// If we find that the macros are still defined at this point, we must +// invoke them so that the type is defined as expected. + +// In case nobody has defined these types, but we aren't running under +// GCC 2.00, make sure that __PTRDIFF_TYPE__, __SIZE_TYPE__, and +// __WCHAR_TYPE__ have reasonable values. This can happen if the +// parts of GCC is compiled by an older compiler, that actually +// include gstddef.h, such as collect2. + +// Signed type of difference of two pointers. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// Unsigned type of `sizeof' something. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// Wide character type. +// Locale-writers should change this as necessary to +// be big enough to hold unique values not between 0 and 127, +// and not (wchar_t) -1, for each defined multibyte character. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// A null pointer constant. + +// Old compatibility names for C types. +type Ulong = uint64 /* types.h:148:27 */ +type Ushort = uint16 /* types.h:149:28 */ +type Uint = uint32 /* types.h:150:22 */ + +// These size-specific names are used by some of the inet code. + +// Define intN_t types. +// Copyright (C) 2017-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +type Int8_t = X__int8_t /* stdint-intn.h:24:18 */ +type Int16_t = X__int16_t /* stdint-intn.h:25:19 */ +type Int32_t = X__int32_t /* stdint-intn.h:26:19 */ +type Int64_t = X__int64_t /* stdint-intn.h:27:19 */ + +// These were defined by ISO C without the first `_'. +type U_int8_t = X__uint8_t /* types.h:158:19 */ +type U_int16_t = X__uint16_t /* types.h:159:20 */ +type U_int32_t = X__uint32_t /* types.h:160:20 */ +type U_int64_t = X__uint64_t /* types.h:161:20 */ + +type Register_t = int32 /* types.h:164:13 */ + +// It also defines `fd_set' and the FD_* macros for `select'. +// `fd_set' type and related macros, and `select'/`pselect' declarations. +// Copyright (C) 1996-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// POSIX 1003.1g: 6.2 Select from File Descriptor Sets + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Get definition of needed basic types. +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Get __FD_* definitions. +// Copyright (C) 1997-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Determine the wordsize from the preprocessor defines. + +// Both x86-64 and x32 use the 64-bit system call interface. + +// Get sigset_t. + +type X__sigset_t = struct{ F__val [16]uint64 } /* __sigset_t.h:8:3 */ + +// A set of signals to be blocked, unblocked, or waited for. +type Sigset_t = X__sigset_t /* sigset_t.h:7:20 */ + +// Get definition of timer specification structures. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// A time value that is accurate to the nearest +// +// microsecond but also has a range of years. +type Timeval = struct { + Ftv_sec X__time_t + Ftv_usec X__suseconds_t +} /* struct_timeval.h:8:1 */ + +// NB: Include guard matches what uses. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Endian macros for string.h functions +// Copyright (C) 1992-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// POSIX.1b structure for a time value. This is like a `struct timeval' but +// +// has nanoseconds instead of microseconds. +type Timespec = struct { + Ftv_sec X__time_t + Ftv_nsec X__syscall_slong_t +} /* struct_timespec.h:10:1 */ + +type Suseconds_t = X__suseconds_t /* select.h:43:23 */ + +// The fd_set member is required to be an array of longs. +type X__fd_mask = int64 /* select.h:49:18 */ + +// Some versions of define this macros. +// It's easier to assume 8-bit bytes than to get CHAR_BIT. + +// fd_set for select and pselect. +type Fd_set = struct{ F__fds_bits [16]X__fd_mask } /* select.h:70:5 */ + +// Maximum number of file descriptors in `fd_set'. + +// Sometimes the fd_set member is assumed to have this type. +type Fd_mask = X__fd_mask /* select.h:77:19 */ + +// Define some inlines helping to catch common problems. + +type Blksize_t = X__blksize_t /* types.h:185:21 */ + +// Types from the Large File Support interface. +type Blkcnt_t = X__blkcnt64_t /* types.h:205:22 */ // Type to count number of disk blocks. +type Fsblkcnt_t = X__fsblkcnt64_t /* types.h:209:24 */ // Type to count file system blocks. +type Fsfilcnt_t = X__fsfilcnt64_t /* types.h:213:24 */ // Type to count file system inodes. + +// Now add the thread types. +// Declaration of common pthread types for all architectures. +// Copyright (C) 2017-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// For internal mutex and condition variable definitions. +// Common threading primitives definitions for both POSIX and C11. +// Copyright (C) 2017-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Arch-specific definitions. Each architecture must define the following +// macros to define the expected sizes of pthread data types: +// +// __SIZEOF_PTHREAD_ATTR_T - size of pthread_attr_t. +// __SIZEOF_PTHREAD_MUTEX_T - size of pthread_mutex_t. +// __SIZEOF_PTHREAD_MUTEXATTR_T - size of pthread_mutexattr_t. +// __SIZEOF_PTHREAD_COND_T - size of pthread_cond_t. +// __SIZEOF_PTHREAD_CONDATTR_T - size of pthread_condattr_t. +// __SIZEOF_PTHREAD_RWLOCK_T - size of pthread_rwlock_t. +// __SIZEOF_PTHREAD_RWLOCKATTR_T - size of pthread_rwlockattr_t. +// __SIZEOF_PTHREAD_BARRIER_T - size of pthread_barrier_t. +// __SIZEOF_PTHREAD_BARRIERATTR_T - size of pthread_barrierattr_t. +// +// The additional macro defines any constraint for the lock alignment +// inside the thread structures: +// +// __LOCK_ALIGNMENT - for internal lock/futex usage. +// +// Same idea but for the once locking primitive: +// +// __ONCE_ALIGNMENT - for pthread_once_t/once_flag definition. + +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Determine the wordsize from the preprocessor defines. + +// Both x86-64 and x32 use the 64-bit system call interface. + +// Common definition of pthread_mutex_t. + +type X__pthread_internal_list = struct { + F__prev uintptr + F__next uintptr +} /* thread-shared-types.h:49:9 */ + +// Type to count file system inodes. + +// Now add the thread types. +// Declaration of common pthread types for all architectures. +// Copyright (C) 2017-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// For internal mutex and condition variable definitions. +// Common threading primitives definitions for both POSIX and C11. +// Copyright (C) 2017-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Arch-specific definitions. Each architecture must define the following +// macros to define the expected sizes of pthread data types: +// +// __SIZEOF_PTHREAD_ATTR_T - size of pthread_attr_t. +// __SIZEOF_PTHREAD_MUTEX_T - size of pthread_mutex_t. +// __SIZEOF_PTHREAD_MUTEXATTR_T - size of pthread_mutexattr_t. +// __SIZEOF_PTHREAD_COND_T - size of pthread_cond_t. +// __SIZEOF_PTHREAD_CONDATTR_T - size of pthread_condattr_t. +// __SIZEOF_PTHREAD_RWLOCK_T - size of pthread_rwlock_t. +// __SIZEOF_PTHREAD_RWLOCKATTR_T - size of pthread_rwlockattr_t. +// __SIZEOF_PTHREAD_BARRIER_T - size of pthread_barrier_t. +// __SIZEOF_PTHREAD_BARRIERATTR_T - size of pthread_barrierattr_t. +// +// The additional macro defines any constraint for the lock alignment +// inside the thread structures: +// +// __LOCK_ALIGNMENT - for internal lock/futex usage. +// +// Same idea but for the once locking primitive: +// +// __ONCE_ALIGNMENT - for pthread_once_t/once_flag definition. + +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Determine the wordsize from the preprocessor defines. + +// Both x86-64 and x32 use the 64-bit system call interface. + +// Common definition of pthread_mutex_t. + +type X__pthread_list_t = X__pthread_internal_list /* thread-shared-types.h:53:3 */ + +type X__pthread_internal_slist = struct{ F__next uintptr } /* thread-shared-types.h:55:9 */ + +type X__pthread_slist_t = X__pthread_internal_slist /* thread-shared-types.h:58:3 */ + +// Arch-specific mutex definitions. A generic implementation is provided +// by sysdeps/nptl/bits/struct_mutex.h. If required, an architecture +// can override it by defining: +// +// 1. struct __pthread_mutex_s (used on both pthread_mutex_t and mtx_t +// definition). It should contains at least the internal members +// defined in the generic version. +// +// 2. __LOCK_ALIGNMENT for any extra attribute for internal lock used with +// atomic operations. +// +// 3. The macro __PTHREAD_MUTEX_INITIALIZER used for static initialization. +// It should initialize the mutex internal flag. + +// x86 internal mutex struct definitions. +// Copyright (C) 2019-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +type X__pthread_mutex_s = struct { + F__lock int32 + F__count uint32 + F__owner int32 + F__nusers uint32 + F__kind int32 + F__spins int16 + F__elision int16 + F__list X__pthread_list_t +} /* struct_mutex.h:22:1 */ + +// Arch-sepecific read-write lock definitions. A generic implementation is +// provided by struct_rwlock.h. If required, an architecture can override it +// by defining: +// +// 1. struct __pthread_rwlock_arch_t (used on pthread_rwlock_t definition). +// It should contain at least the internal members defined in the +// generic version. +// +// 2. The macro __PTHREAD_RWLOCK_INITIALIZER used for static initialization. +// It should initialize the rwlock internal type. + +// x86 internal rwlock struct definitions. +// Copyright (C) 2019-2020 Free Software Foundation, Inc. +// +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +type X__pthread_rwlock_arch_t = struct { + F__readers uint32 + F__writers uint32 + F__wrphase_futex uint32 + F__writers_futex uint32 + F__pad3 uint32 + F__pad4 uint32 + F__cur_writer int32 + F__shared int32 + F__rwelision int8 + F__pad1 [7]uint8 + F__pad2 uint64 + F__flags uint32 + F__ccgo_pad1 [4]byte +} /* struct_rwlock.h:23:1 */ + +// Common definition of pthread_cond_t. + +type X__pthread_cond_s = struct { + F__0 struct{ F__wseq uint64 } + F__8 struct{ F__g1_start uint64 } + F__g_refs [2]uint32 + F__g_size [2]uint32 + F__g1_orig_size uint32 + F__wrefs uint32 + F__g_signals [2]uint32 +} /* thread-shared-types.h:92:1 */ + +// Thread identifiers. The structure of the attribute type is not +// +// exposed on purpose. +type Pthread_t = uint64 /* pthreadtypes.h:27:27 */ + +// Data structures for mutex handling. The structure of the attribute +// +// type is not exposed on purpose. +type Pthread_mutexattr_t = struct { + F__ccgo_pad1 [0]uint32 + F__size [4]int8 +} /* pthreadtypes.h:36:3 */ + +// Data structure for condition variable handling. The structure of +// +// the attribute type is not exposed on purpose. +type Pthread_condattr_t = struct { + F__ccgo_pad1 [0]uint32 + F__size [4]int8 +} /* pthreadtypes.h:45:3 */ + +// Keys for thread-specific data +type Pthread_key_t = uint32 /* pthreadtypes.h:49:22 */ + +// Once-only execution +type Pthread_once_t = int32 /* pthreadtypes.h:53:30 */ + +type Pthread_attr_t1 = struct { + F__ccgo_pad1 [0]uint64 + F__size [56]int8 +} /* pthreadtypes.h:56:1 */ + +type Pthread_attr_t = Pthread_attr_t1 /* pthreadtypes.h:62:30 */ + +type Pthread_mutex_t = struct{ F__data X__pthread_mutex_s } /* pthreadtypes.h:72:3 */ + +type Pthread_cond_t = struct{ F__data X__pthread_cond_s } /* pthreadtypes.h:80:3 */ + +// Data structure for reader-writer lock variable handling. The +// +// structure of the attribute type is deliberately not exposed. +type Pthread_rwlock_t = struct{ F__data X__pthread_rwlock_arch_t } /* pthreadtypes.h:91:3 */ + +type Pthread_rwlockattr_t = struct { + F__ccgo_pad1 [0]uint64 + F__size [8]int8 +} /* pthreadtypes.h:97:3 */ + +// POSIX spinlock data type. +type Pthread_spinlock_t = int32 /* pthreadtypes.h:103:22 */ + +// POSIX barriers data type. The structure of the type is +// +// deliberately not exposed. +type Pthread_barrier_t = struct { + F__ccgo_pad1 [0]uint64 + F__size [32]int8 +} /* pthreadtypes.h:112:3 */ + +type Pthread_barrierattr_t = struct { + F__ccgo_pad1 [0]uint32 + F__size [4]int8 +} /* pthreadtypes.h:118:3 */ + +// Type for length arguments in socket calls. +type Socklen_t = X__socklen_t /* socket.h:33:21 */ + +// Protocol families. + +// Address families. + +// Socket level values. Others are defined in the appropriate headers. +// +// XXX These definitions also should go into the appropriate headers as +// far as they are available. + +// Maximum queue length specifiable by listen. + +// Get the definition of the macro to define the common sockaddr members. +// Definition of struct sockaddr_* common members and sizes, generic version. +// Copyright (C) 1995-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// POSIX.1g specifies this type name for the `sa_family' member. +type Sa_family_t = uint16 /* sockaddr.h:28:28 */ + +// This macro is used to declare the initial common members +// of the data types used for socket addresses, `struct sockaddr', +// `struct sockaddr_in', `struct sockaddr_un', etc. + +// Size of struct sockaddr_storage. + +// Structure describing a generic socket address. +type Sockaddr = struct { + Fsa_family Sa_family_t + Fsa_data [14]int8 +} /* socket.h:178:1 */ + +// Structure large enough to hold any socket address (with the historical +// exception of AF_UNIX). + +type Sockaddr_storage = struct { + Fss_family Sa_family_t + F__ss_padding [118]int8 + F__ss_align uint64 +} /* socket.h:191:1 */ + +// Structure describing messages sent by +// +// `sendmsg' and received by `recvmsg'. +type Msghdr = struct { + Fmsg_name uintptr + Fmsg_namelen Socklen_t + F__ccgo_pad1 [4]byte + Fmsg_iov uintptr + Fmsg_iovlen Size_t + Fmsg_control uintptr + Fmsg_controllen Size_t + Fmsg_flags int32 + F__ccgo_pad2 [4]byte +} /* socket.h:257:1 */ + +// Structure used for storage of ancillary data object information. +type Cmsghdr = struct { + F__ccgo_pad1 [0]uint64 + Fcmsg_len Size_t + Fcmsg_level int32 + Fcmsg_type int32 +} /* socket.h:275:1 */ + +// SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note + +// SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note + +// SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note + +// This allows for 1024 file descriptors: if NR_OPEN is ever grown +// beyond that you'll have to change this too. But 1024 fd's seem to be +// enough even for such "real" unices like OSF/1, so hopefully this is +// one limit that doesn't have to be changed [again]. +// +// Note that POSIX wants the FD_CLEAR(fd,fdsetp) defines to be in +// (and thus ) - but this is a more logical +// place for them. Solved by having dummy defines in . + +// This macro may have been defined in . But we always +// use the one here. + +type X__kernel_fd_set = struct{ Ffds_bits [16]uint64 } /* posix_types.h:27:3 */ + +// Type of a signal handler. +type X__kernel_sighandler_t = uintptr /* posix_types.h:30:14 */ + +// Type of a SYSV IPC key. +type X__kernel_key_t = int32 /* posix_types.h:33:13 */ +type X__kernel_mqd_t = int32 /* posix_types.h:34:13 */ + +// SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note +// SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note + +// This file is generally used by user-level software, so you need to +// be a little careful about namespace pollution etc. Also, we cannot +// assume GCC is being used. + +type X__kernel_old_uid_t = uint16 /* posix_types_64.h:11:24 */ +type X__kernel_old_gid_t = uint16 /* posix_types_64.h:12:24 */ + +type X__kernel_old_dev_t = uint64 /* posix_types_64.h:15:23 */ + +// SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note + +// SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note + +// SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note + +// There seems to be no way of detecting this automatically from user +// space, so 64 bit architectures should override this in their +// bitsperlong.h. In particular, an architecture that supports +// both 32 and 64 bit user space must not rely on CONFIG_64BIT +// to decide it, but rather check a compiler provided macro. + +// This file is generally used by user-level software, so you need to +// be a little careful about namespace pollution etc. +// +// First the types that are often defined in different ways across +// architectures, so that you can override them. + +type X__kernel_long_t = int64 /* posix_types.h:15:15 */ +type X__kernel_ulong_t = uint64 /* posix_types.h:16:23 */ + +type X__kernel_ino_t = X__kernel_ulong_t /* posix_types.h:20:26 */ + +type X__kernel_mode_t = uint32 /* posix_types.h:24:22 */ + +type X__kernel_pid_t = int32 /* posix_types.h:28:14 */ + +type X__kernel_ipc_pid_t = int32 /* posix_types.h:32:14 */ + +type X__kernel_uid_t = uint32 /* posix_types.h:36:22 */ +type X__kernel_gid_t = uint32 /* posix_types.h:37:22 */ + +type X__kernel_suseconds_t = X__kernel_long_t /* posix_types.h:41:26 */ + +type X__kernel_daddr_t = int32 /* posix_types.h:45:14 */ + +type X__kernel_uid32_t = uint32 /* posix_types.h:49:22 */ +type X__kernel_gid32_t = uint32 /* posix_types.h:50:22 */ + +// Most 32 bit architectures use "unsigned int" size_t, +// and all 64 bit architectures use "unsigned long" size_t. +type X__kernel_size_t = X__kernel_ulong_t /* posix_types.h:72:26 */ +type X__kernel_ssize_t = X__kernel_long_t /* posix_types.h:73:25 */ +type X__kernel_ptrdiff_t = X__kernel_long_t /* posix_types.h:74:25 */ + +type X__kernel_fsid_t = struct{ Fval [2]int32 } /* posix_types.h:81:3 */ + +// anything below here should be completely generic +type X__kernel_off_t = X__kernel_long_t /* posix_types.h:87:25 */ +type X__kernel_loff_t = int64 /* posix_types.h:88:19 */ +type X__kernel_old_time_t = X__kernel_long_t /* posix_types.h:89:25 */ +type X__kernel_time_t = X__kernel_long_t /* posix_types.h:90:25 */ +type X__kernel_time64_t = int64 /* posix_types.h:91:19 */ +type X__kernel_clock_t = X__kernel_long_t /* posix_types.h:92:25 */ +type X__kernel_timer_t = int32 /* posix_types.h:93:14 */ +type X__kernel_clockid_t = int32 /* posix_types.h:94:14 */ +type X__kernel_caddr_t = uintptr /* posix_types.h:95:14 */ +type X__kernel_uid16_t = uint16 /* posix_types.h:96:24 */ +type X__kernel_gid16_t = uint16 /* posix_types.h:97:24 */ + +// SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note + +// Socket-level I/O control calls. + +// For setsockopt(2) + +// Security levels - as per NRL IPv6 - don't actually do anything + +// Socket filtering + +// Instruct lower device to use last 4-bytes of skb data as FCS + +// on 64-bit and x32, avoid the ?: operator + +// Structure used to manipulate the SO_LINGER option. +type Linger = struct { + Fl_onoff int32 + Fl_linger int32 +} /* socket.h:361:1 */ + +// This is the 4.3 BSD `struct sockaddr' format, which is used as wire +// +// format in the grotty old 4.3 `talk' protocol. +type Osockaddr = struct { + Fsa_family uint16 + Fsa_data [14]uint8 +} /* struct_osockaddr.h:6:1 */ + +// Define some macros helping to catch buffer overflows. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Internet address. +type In_addr_t = Uint32_t /* in.h:30:18 */ +type In_addr = struct{ Fs_addr In_addr_t } /* in.h:31:1 */ + +// Get system-specific definitions. +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Linux version. + +// If the application has already included linux/in6.h from a linux-based +// kernel then we will not define the IPv6 IPPROTO_* defines, in6_addr (nor the +// defines), sockaddr_in6, or ipv6_mreq. Same for in6_ptkinfo or ip6_mtuinfo +// in linux/ipv6.h. The ABI used by the linux-kernel and glibc match exactly. +// Neither the linux kernel nor glibc should break this ABI without coordination. +// In upstream kernel 56c176c9 the _UAPI prefix was stripped so we need to check +// for _LINUX_IN6_H and _IPV6_H now, and keep checking the old versions for +// maximum backwards compatibility. + +// Options for use with `getsockopt' and `setsockopt' at the IP level. +// The first word in the comment at the right is the data type used; +// "bool" means a boolean value stored in an `int'. +// For BSD compatibility. + +// TProxy original addresses + +// IP_MTU_DISCOVER arguments. +// Always use interface mtu (ignores dst pmtu) but don't set DF flag. +// Also incoming ICMP frag_needed notifications will be ignored on +// this socket to prevent accepting spoofed ones. +// Like IP_PMTUDISC_INTERFACE but allow packets to be fragmented. + +// To select the IP level. + +// Structure used to describe IP options for IP_OPTIONS and IP_RETOPTS. +// +// The `ip_dst' field is used for the first-hop gateway when using a +// source route (this gets put into the header proper). +type Ip_opts = struct { + Fip_dst struct{ Fs_addr In_addr_t } + Fip_opts [40]int8 +} /* in.h:142:1 */ + +// Like `struct ip_mreq' but including interface specification by index. +type Ip_mreqn = struct { + Fimr_multiaddr struct{ Fs_addr In_addr_t } + Fimr_address struct{ Fs_addr In_addr_t } + Fimr_ifindex int32 +} /* in.h:149:1 */ + +// Structure used for IP_PKTINFO. +type In_pktinfo = struct { + Fipi_ifindex int32 + Fipi_spec_dst struct{ Fs_addr In_addr_t } + Fipi_addr struct{ Fs_addr In_addr_t } +} /* in.h:157:1 */ + +// Type to represent a port. +type In_port_t = Uint16_t /* in.h:119:18 */ + +// Definitions of the bits in an Internet address integer. +// +// On subnets, host and network parts are found according to +// the subnet mask, not these masks. + +// Address to accept any incoming messages. +// Address to send to all hosts. +// Address indicating an error return. + +// Network number for local host loopback. +// Address to loopback in software to local host. + +// Defines for Multicast INADDR. + +// IPv6 address +type In6_addr = struct { + F__in6_u struct { + F__ccgo_pad1 [0]uint32 + F__u6_addr8 [16]Uint8_t + } +} /* in.h:212:1 */ + +// ::1 + +// Structure describing an Internet socket address. +type Sockaddr_in = struct { + Fsin_family Sa_family_t + Fsin_port In_port_t + Fsin_addr struct{ Fs_addr In_addr_t } + Fsin_zero [8]uint8 +} /* in.h:238:1 */ + +// Ditto, for IPv6. +type Sockaddr_in6 = struct { + Fsin6_family Sa_family_t + Fsin6_port In_port_t + Fsin6_flowinfo Uint32_t + Fsin6_addr struct { + F__in6_u struct { + F__ccgo_pad1 [0]uint32 + F__u6_addr8 [16]Uint8_t + } + } + Fsin6_scope_id Uint32_t +} /* in.h:253:1 */ + +// IPv4 multicast request. +type Ip_mreq = struct { + Fimr_multiaddr struct{ Fs_addr In_addr_t } + Fimr_interface struct{ Fs_addr In_addr_t } +} /* in.h:265:1 */ + +type Ip_mreq_source = struct { + Fimr_multiaddr struct{ Fs_addr In_addr_t } + Fimr_interface struct{ Fs_addr In_addr_t } + Fimr_sourceaddr struct{ Fs_addr In_addr_t } +} /* in.h:274:1 */ + +// Likewise, for IPv6. +type Ipv6_mreq = struct { + Fipv6mr_multiaddr struct { + F__in6_u struct { + F__ccgo_pad1 [0]uint32 + F__u6_addr8 [16]Uint8_t + } + } + Fipv6mr_interface uint32 +} /* in.h:289:1 */ + +// Multicast group request. +type Group_req = struct { + Fgr_interface Uint32_t + F__ccgo_pad1 [4]byte + Fgr_group struct { + Fss_family Sa_family_t + F__ss_padding [118]int8 + F__ss_align uint64 + } +} /* in.h:301:1 */ + +type Group_source_req = struct { + Fgsr_interface Uint32_t + F__ccgo_pad1 [4]byte + Fgsr_group struct { + Fss_family Sa_family_t + F__ss_padding [118]int8 + F__ss_align uint64 + } + Fgsr_source struct { + Fss_family Sa_family_t + F__ss_padding [118]int8 + F__ss_align uint64 + } +} /* in.h:310:1 */ + +// Full-state filter operations. +type Ip_msfilter = struct { + Fimsf_multiaddr struct{ Fs_addr In_addr_t } + Fimsf_interface struct{ Fs_addr In_addr_t } + Fimsf_fmode Uint32_t + Fimsf_numsrc Uint32_t + Fimsf_slist [1]struct{ Fs_addr In_addr_t } +} /* in.h:324:1 */ + +type Group_filter = struct { + Fgf_interface Uint32_t + F__ccgo_pad1 [4]byte + Fgf_group struct { + Fss_family Sa_family_t + F__ss_padding [118]int8 + F__ss_align uint64 + } + Fgf_fmode Uint32_t + Fgf_numsrc Uint32_t + Fgf_slist [1]struct { + Fss_family Sa_family_t + F__ss_padding [118]int8 + F__ss_align uint64 + } +} /* in.h:345:1 */ + +// Define uintN_t types. +// Copyright (C) 2017-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// This is necessary to make this include file properly replace the +// Sun version. +// @(#)netdb.h 2.1 88/07/29 3.9 RPCSRC +// Copyright (c) 2010, Oracle America, Inc. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following +// disclaimer in the documentation and/or other materials +// provided with the distribution. +// * Neither the name of the "Oracle America, Inc." nor the names of its +// contributors may be used to endorse or promote products derived +// from this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +// INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +// GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +// WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +// Cleaned up for GNU C library roland@gnu.ai.mit.edu: +// added multiple inclusion protection and use of . +// In GNU this file is #include'd by . + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Copyright (C) 1989-2020 Free Software Foundation, Inc. +// +// This file is part of GCC. +// +// GCC is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 3, or (at your option) +// any later version. +// +// GCC is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// Under Section 7 of GPL version 3, you are granted additional +// permissions described in the GCC Runtime Library Exception, version +// 3.1, as published by the Free Software Foundation. +// +// You should have received a copy of the GNU General Public License and +// a copy of the GCC Runtime Library Exception along with this program; +// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see +// . + +// ISO C Standard: 7.17 Common definitions + +// Any one of these symbols __need_* means that GNU libc +// wants us just to define one data type. So don't define +// the symbols that indicate this file's entire job has been done. + +// This avoids lossage on SunOS but only if stdtypes.h comes first. +// There's no way to win with the other order! Sun lossage. + +// Sequent's header files use _PTRDIFF_T_ in some conflicting way. +// Just ignore it. + +// On VxWorks, may have defined macros like +// _TYPE_size_t which will typedef size_t. fixincludes patched the +// vxTypesBase.h so that this macro is only defined if _GCC_SIZE_T is +// not defined, and so that defining this macro defines _GCC_SIZE_T. +// If we find that the macros are still defined at this point, we must +// invoke them so that the type is defined as expected. + +// In case nobody has defined these types, but we aren't running under +// GCC 2.00, make sure that __PTRDIFF_TYPE__, __SIZE_TYPE__, and +// __WCHAR_TYPE__ have reasonable values. This can happen if the +// parts of GCC is compiled by an older compiler, that actually +// include gstddef.h, such as collect2. + +// Signed type of difference of two pointers. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// Unsigned type of `sizeof' something. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// Wide character type. +// Locale-writers should change this as necessary to +// be big enough to hold unique values not between 0 and 127, +// and not (wchar_t) -1, for each defined multibyte character. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// A null pointer constant. + +type Rpcent = struct { + Fr_name uintptr + Fr_aliases uintptr + Fr_number int32 + F__ccgo_pad1 [4]byte +} /* netdb.h:46:1 */ + +// Copyright (C) 1996-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Description of data base entry for a single network. NOTE: here a +// +// poor assumption is made. The network number is expected to fit +// into an unsigned long int variable. +type Netent = struct { + Fn_name uintptr + Fn_aliases uintptr + Fn_addrtype int32 + Fn_net Uint32_t +} /* netdb.h:26:1 */ + +// Description of data base entry for a single host. +type Hostent = struct { + Fh_name uintptr + Fh_aliases uintptr + Fh_addrtype int32 + Fh_length int32 + Fh_addr_list uintptr +} /* netdb.h:98:1 */ + +// Description of data base entry for a single service. +type Servent = struct { + Fs_name uintptr + Fs_aliases uintptr + Fs_port int32 + F__ccgo_pad1 [4]byte + Fs_proto uintptr +} /* netdb.h:255:1 */ + +// Description of data base entry for a single service. +type Protoent = struct { + Fp_name uintptr + Fp_aliases uintptr + Fp_proto int32 + F__ccgo_pad1 [4]byte +} /* netdb.h:324:1 */ + +// Extension from POSIX.1:2001. +// Structure to contain information about address of a service provider. +type Addrinfo = struct { + Fai_flags int32 + Fai_family int32 + Fai_socktype int32 + Fai_protocol int32 + Fai_addrlen Socklen_t + F__ccgo_pad1 [4]byte + Fai_addr uintptr + Fai_canonname uintptr + Fai_next uintptr +} /* netdb.h:565:1 */ + +var _ int8 /* gen.c:2:13: */ diff --git a/vendor/modernc.org/libc/netinet/in/capi_illumos_amd64.go b/vendor/modernc.org/libc/netinet/in/capi_illumos_amd64.go new file mode 100644 index 000000000..eeaf813ed --- /dev/null +++ b/vendor/modernc.org/libc/netinet/in/capi_illumos_amd64.go @@ -0,0 +1,5 @@ +// Code generated by 'ccgo netinet/in/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o netinet/in/in_illumos_amd64.go -pkgname in', DO NOT EDIT. + +package in + +var CAPI = map[string]struct{}{} diff --git a/vendor/modernc.org/libc/netinet/in/capi_linux_loong64.go b/vendor/modernc.org/libc/netinet/in/capi_linux_loong64.go new file mode 100644 index 000000000..e2da4abd5 --- /dev/null +++ b/vendor/modernc.org/libc/netinet/in/capi_linux_loong64.go @@ -0,0 +1,5 @@ +// Code generated by 'ccgo netinet/in/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o netinet/in/in_linux_loong64.go -pkgname in', DO NOT EDIT. + +package in + +var CAPI = map[string]struct{}{} diff --git a/vendor/modernc.org/libc/netinet/in/capi_linux_mips64le.go b/vendor/modernc.org/libc/netinet/in/capi_linux_mips64le.go new file mode 100644 index 000000000..953ed0943 --- /dev/null +++ b/vendor/modernc.org/libc/netinet/in/capi_linux_mips64le.go @@ -0,0 +1,5 @@ +// Code generated by 'ccgo netinet/in/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o netinet/in/in_linux_amd64.go -pkgname in', DO NOT EDIT. + +package in + +var CAPI = map[string]struct{}{} diff --git a/vendor/modernc.org/libc/netinet/in/in_illumos_amd64.go b/vendor/modernc.org/libc/netinet/in/in_illumos_amd64.go new file mode 100644 index 000000000..3476f8285 --- /dev/null +++ b/vendor/modernc.org/libc/netinet/in/in_illumos_amd64.go @@ -0,0 +1,4038 @@ +// Code generated by 'ccgo netinet/in/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o netinet/in/in_illumos_amd64.go -pkgname in', DO NOT EDIT. + +package in + +import ( + "math" + "reflect" + "sync/atomic" + "unsafe" +) + +var _ = math.Pi +var _ reflect.Kind +var _ atomic.Value +var _ unsafe.Pointer + +const ( + CLOCKS_PER_SEC = 1000000 // time_iso.h:78:1: + CLOCK_HIGHRES = 4 // time_impl.h:126:1: + CLOCK_MONOTONIC = 4 // time_impl.h:124:1: + CLOCK_PROCESS_CPUTIME_ID = 5 // time_impl.h:125:1: + CLOCK_PROF = 2 // time_impl.h:127:1: + CLOCK_REALTIME = 3 // time_impl.h:123:1: + CLOCK_THREAD_CPUTIME_ID = 2 // time_impl.h:122:1: + CLOCK_VIRTUAL = 1 // time_impl.h:121:1: + DST_AUST = 2 // time.h:115:1: + DST_AUSTALT = 10 // time.h:123:1: + DST_CAN = 6 // time.h:119:1: + DST_EET = 5 // time.h:118:1: + DST_GB = 7 // time.h:120:1: + DST_MET = 4 // time.h:117:1: + DST_NONE = 0 // time.h:113:1: + DST_RUM = 8 // time.h:121:1: + DST_TUR = 9 // time.h:122:1: + DST_USA = 1 // time.h:114:1: + DST_WET = 3 // time.h:116:1: + FD_SETSIZE = 65536 // select.h:88:1: + IMPLINK_HIGHEXPER = 158 // in.h:284:1: + IMPLINK_IP = 155 // in.h:282:1: + IMPLINK_LOWEXPER = 156 // in.h:283:1: + INADDR_6TO4RRANYCAST = 0xc0586301 // in.h:392:1: + INADDR_ALLHOSTS_GROUP = 0xe0000001 // in.h:372:1: + INADDR_ALLRPTS_GROUP = 0xe0000016 // in.h:374:1: + INADDR_ALLRTRS_GROUP = 0xe0000002 // in.h:373:1: + INADDR_ANY = 0x00000000 // in.h:366:1: + INADDR_BROADCAST = 0xffffffff // in.h:368:1: + INADDR_LOOPBACK = 0x7F000001 // in.h:367:1: + INADDR_MAX_LOCAL_GROUP = 0xe00000ff // in.h:375:1: + INADDR_NONE = 0xffffffff // in.h:369:1: + INADDR_UNSPEC_GROUP = 0xe0000000 // in.h:371:1: + INET6_ADDRSTRLEN = 46 // in.h:1212:1: + INET_ADDRSTRLEN = 16 // in.h:1210:1: + IN_AUTOCONF_MASK = 0xffff0000 // in.h:379:1: + IN_AUTOCONF_NET = 0xa9fe0000 // in.h:378:1: + IN_CLASSA_HOST = 0x00ffffff // in.h:332:1: + IN_CLASSA_MAX = 128 // in.h:333:1: + IN_CLASSA_NET = 0xff000000 // in.h:330:1: + IN_CLASSA_NSHIFT = 24 // in.h:331:1: + IN_CLASSB_HOST = 0x0000ffff // in.h:338:1: + IN_CLASSB_MAX = 65536 // in.h:339:1: + IN_CLASSB_NET = 0xffff0000 // in.h:336:1: + IN_CLASSB_NSHIFT = 16 // in.h:337:1: + IN_CLASSC_HOST = 0x000000ff // in.h:344:1: + IN_CLASSC_NET = 0xffffff00 // in.h:342:1: + IN_CLASSC_NSHIFT = 8 // in.h:343:1: + IN_CLASSD_HOST = 0x0fffffff // in.h:349:1: + IN_CLASSD_NET = 0xf0000000 // in.h:347:1: + IN_CLASSD_NSHIFT = 28 // in.h:348:1: + IN_CLASSE_NET = 0xffffffff // in.h:352:1: + IN_LOOPBACKNET = 127 // in.h:395:1: + IN_PRIVATE12_MASK = 0xfff00000 // in.h:383:1: + IN_PRIVATE12_NET = 0xac100000 // in.h:382:1: + IN_PRIVATE16_MASK = 0xffff0000 // in.h:385:1: + IN_PRIVATE16_NET = 0xc0a80000 // in.h:384:1: + IN_PRIVATE8_MASK = 0xff000000 // in.h:381:1: + IN_PRIVATE8_NET = 0x0a000000 // in.h:380:1: + IPPORT_BIFFUDP = 512 // in.h:250:1: + IPPORT_BOOTPC = 68 // in.h:214:1: + IPPORT_BOOTPS = 67 // in.h:213:1: + IPPORT_CHARGEN = 19 // in.h:199:1: + IPPORT_CMDSERVER = 514 // in.h:243:1: + IPPORT_DAYTIME = 13 // in.h:197:1: + IPPORT_DHCPV6C = 546 // in.h:260:1: + IPPORT_DHCPV6S = 547 // in.h:261:1: + IPPORT_DISCARD = 9 // in.h:195:1: + IPPORT_DOMAIN = 53 // in.h:206:1: + IPPORT_ECHO = 7 // in.h:194:1: + IPPORT_EFSSERVER = 520 // in.h:245:1: + IPPORT_EXECSERVER = 512 // in.h:241:1: + IPPORT_FINGER = 79 // in.h:217:1: + IPPORT_FTP = 21 // in.h:200:1: + IPPORT_HTTP = 80 // in.h:218:1: + IPPORT_HTTP_ALT = 8080 // in.h:219:1: + IPPORT_IKE = 500 // in.h:235:1: + IPPORT_IKE_NATT = 4500 // in.h:236:1: + IPPORT_LDAP = 389 // in.h:226:1: + IPPORT_LOGINSERVER = 513 // in.h:242:1: + IPPORT_MDNS = 5353 // in.h:207:1: + IPPORT_MIP = 434 // in.h:228:1: + IPPORT_MTP = 57 // in.h:208:1: + IPPORT_NAMESERVER = 42 // in.h:204:1: + IPPORT_NETBIOS_DGM = 138 // in.h:224:1: + IPPORT_NETBIOS_NS = 137 // in.h:223:1: + IPPORT_NETBIOS_SSN = 139 // in.h:225:1: + IPPORT_NETSTAT = 15 // in.h:198:1: + IPPORT_NTP = 123 // in.h:222:1: + IPPORT_PRINTER = 515 // in.h:244:1: + IPPORT_RESERVED = 1024 // in.h:271:1: + IPPORT_RIPNG = 521 // in.h:255:1: + IPPORT_RJE = 77 // in.h:216:1: + IPPORT_ROUTESERVER = 520 // in.h:254:1: + IPPORT_SLP = 427 // in.h:227:1: + IPPORT_SMB = 445 // in.h:229:1: + IPPORT_SMTP = 25 // in.h:202:1: + IPPORT_SOCKS = 1080 // in.h:263:1: + IPPORT_SUPDUP = 95 // in.h:221:1: + IPPORT_SYSLOG = 514 // in.h:252:1: + IPPORT_SYSTAT = 11 // in.h:196:1: + IPPORT_TALK = 517 // in.h:253:1: + IPPORT_TELNET = 23 // in.h:201:1: + IPPORT_TFTP = 69 // in.h:215:1: + IPPORT_TIMESERVER = 37 // in.h:203:1: + IPPORT_TTYLINK = 87 // in.h:220:1: + IPPORT_USERRESERVED = 5000 // in.h:272:1: + IPPORT_VXLAN = 4789 // in.h:230:1: + IPPORT_WHOIS = 43 // in.h:205:1: + IPPORT_WHOSERVER = 513 // in.h:251:1: + IPPROTO_AH = 51 // in.h:169:1: + IPPROTO_DSTOPTS = 60 // in.h:172:1: + IPPROTO_EGP = 8 // in.h:160:1: + IPPROTO_ENCAP = 4 // in.h:158:1: + IPPROTO_EON = 80 // in.h:175:1: + IPPROTO_ESP = 50 // in.h:168:1: + IPPROTO_FRAGMENT = 44 // in.h:166:1: + IPPROTO_GGP = 3 // in.h:157:1: + IPPROTO_HELLO = 63 // in.h:173:1: + IPPROTO_HOPOPTS = 0 // in.h:154:1: + IPPROTO_ICMP = 1 // in.h:155:1: + IPPROTO_ICMPV6 = 58 // in.h:170:1: + IPPROTO_IDP = 22 // in.h:163:1: + IPPROTO_IGMP = 2 // in.h:156:1: + IPPROTO_IP = 0 // in.h:153:1: + IPPROTO_IPV6 = 41 // in.h:164:1: + IPPROTO_MAX = 256 // in.h:182:1: + IPPROTO_ND = 77 // in.h:174:1: + IPPROTO_NONE = 59 // in.h:171:1: + IPPROTO_OSPF = 89 // in.h:176:1: + IPPROTO_PIM = 103 // in.h:177:1: + IPPROTO_PUP = 12 // in.h:161:1: + IPPROTO_RAW = 255 // in.h:181:1: + IPPROTO_ROUTING = 43 // in.h:165:1: + IPPROTO_RSVP = 46 // in.h:167:1: + IPPROTO_SCTP = 132 // in.h:178:1: + IPPROTO_TCP = 6 // in.h:159:1: + IPPROTO_UDP = 17 // in.h:162:1: + IPSEC_PREF_NEVER = 0x01 // in.h:941:1: + IPSEC_PREF_REQUIRED = 0x02 // in.h:942:1: + IPSEC_PREF_UNIQUE = 0x04 // in.h:943:1: + IPV6_ADD_MEMBERSHIP = 0x9 // in.h:1224:1: + IPV6_BOUND_IF = 0x41 // in.h:1307:1: + IPV6_CHECKSUM = 0x18 // in.h:1257:1: + IPV6_DONTFRAG = 0x21 // in.h:1260:1: + IPV6_DROP_MEMBERSHIP = 0xa // in.h:1226:1: + IPV6_DSTOPTS = 0xf // in.h:1234:1: + IPV6_FLOWINFO_FLOWLABEL = 0xffff0f00 // in.h:447:1: + IPV6_FLOWINFO_TCLASS = 0x0000f00f // in.h:448:1: + IPV6_HOPLIMIT = 0xc // in.h:1231:1: + IPV6_HOPOPTS = 0xe // in.h:1233:1: + IPV6_JOIN_GROUP = 0x9 // in.h:1202:1: + IPV6_LEAVE_GROUP = 0xa // in.h:1204:1: + IPV6_MULTICAST_HOPS = 0x7 // in.h:1196:1: + IPV6_MULTICAST_IF = 0x6 // in.h:1193:1: + IPV6_MULTICAST_LOOP = 0x8 // in.h:1199:1: + IPV6_NEXTHOP = 0xd // in.h:1232:1: + IPV6_PAD1_OPT = 0 // in.h:1314:1: + IPV6_PATHMTU = 0x25 // in.h:1264:1: + IPV6_PKTINFO = 0xb // in.h:1229:1: + IPV6_PREFER_SRC_CGA = 0x00000020 // in.h:1289:1: + IPV6_PREFER_SRC_CGADEFAULT = 16 // in.h:1296:1: + IPV6_PREFER_SRC_CGAMASK = 48 // in.h:1295:1: + IPV6_PREFER_SRC_COA = 0x00000002 // in.h:1285:1: + IPV6_PREFER_SRC_DEFAULT = 21 // in.h:1301:1: + IPV6_PREFER_SRC_HOME = 0x00000001 // in.h:1284:1: + IPV6_PREFER_SRC_MASK = 63 // in.h:1298:1: + IPV6_PREFER_SRC_MIPDEFAULT = 1 // in.h:1292:1: + IPV6_PREFER_SRC_MIPMASK = 3 // in.h:1291:1: + IPV6_PREFER_SRC_NONCGA = 0x00000010 // in.h:1288:1: + IPV6_PREFER_SRC_PUBLIC = 0x00000004 // in.h:1286:1: + IPV6_PREFER_SRC_TMP = 0x00000008 // in.h:1287:1: + IPV6_PREFER_SRC_TMPDEFAULT = 4 // in.h:1294:1: + IPV6_PREFER_SRC_TMPMASK = 12 // in.h:1293:1: + IPV6_RECVDSTOPTS = 0x28 // in.h:1271:1: + IPV6_RECVHOPLIMIT = 0x13 // in.h:1240:1: + IPV6_RECVHOPOPTS = 0x14 // in.h:1241:1: + IPV6_RECVPATHMTU = 0x24 // in.h:1263:1: + IPV6_RECVPKTINFO = 0x12 // in.h:1239:1: + IPV6_RECVRTHDR = 0x16 // in.h:1249:1: + IPV6_RECVRTHDRDSTOPTS = 0x17 // in.h:1255:1: + IPV6_RECVTCLASS = 0x19 // in.h:1258:1: + IPV6_RTHDR = 0x10 // in.h:1236:1: + IPV6_RTHDRDSTOPTS = 0x11 // in.h:1237:1: + IPV6_RTHDR_TYPE_0 = 0 // in.h:1152:1: + IPV6_SEC_OPT = 0x22 // in.h:1261:1: + IPV6_SRC_PREFERENCES = 0x23 // in.h:1262:1: + IPV6_TCLASS = 0x26 // in.h:1265:1: + IPV6_UNICAST_HOPS = 0x5 // in.h:1190:1: + IPV6_UNSPEC_SRC = 0x42 // in.h:1308:1: + IPV6_USE_MIN_MTU = 0x20 // in.h:1259:1: + IPV6_V6ONLY = 0x27 // in.h:1266:1: + IP_ADD_MEMBERSHIP = 0x13 // in.h:921:1: + IP_ADD_SOURCE_MEMBERSHIP = 0x17 // in.h:925:1: + IP_BLOCK_SOURCE = 0x15 // in.h:923:1: + IP_BOUND_IF = 0x41 // in.h:976:1: + IP_BROADCAST = 0x106 // in.h:994:1: + IP_BROADCAST_TTL = 0x43 // in.h:978:1: + IP_DEFAULT_MULTICAST_LOOP = 1 // in.h:1009:1: + IP_DEFAULT_MULTICAST_TTL = 1 // in.h:1008:1: + IP_DHCPINIT_IF = 0x45 // in.h:980:1: + IP_DONTFRAG = 0x1b // in.h:934:1: + IP_DONTROUTE = 0x105 // in.h:990:1: + IP_DROP_MEMBERSHIP = 0x14 // in.h:922:1: + IP_DROP_SOURCE_MEMBERSHIP = 0x18 // in.h:926:1: + IP_HDRINCL = 2 // in.h:899:1: + IP_MULTICAST_IF = 0x10 // in.h:918:1: + IP_MULTICAST_LOOP = 0x12 // in.h:920:1: + IP_MULTICAST_TTL = 0x11 // in.h:919:1: + IP_NEXTHOP = 0x19 // in.h:927:1: + IP_OPTIONS = 1 // in.h:896:1: + IP_PKTINFO = 0x1a // in.h:932:1: + IP_RECVDSTADDR = 0x7 // in.h:911:1: + IP_RECVIF = 0x9 // in.h:913:1: + IP_RECVOPTS = 0x5 // in.h:909:1: + IP_RECVPKTINFO = 0x1a // in.h:933:1: + IP_RECVRETOPTS = 0x6 // in.h:910:1: + IP_RECVSLLA = 0xa // in.h:914:1: + IP_RECVTOS = 0xc // in.h:916:1: + IP_RECVTTL = 0xb // in.h:915:1: + IP_RETOPTS = 0x8 // in.h:912:1: + IP_REUSEADDR = 0x104 // in.h:986:1: + IP_SEC_OPT = 0x22 // in.h:940:1: + IP_TOS = 3 // in.h:902:1: + IP_TTL = 4 // in.h:906:1: + IP_UNBLOCK_SOURCE = 0x16 // in.h:924:1: + IP_UNSPEC_SRC = 0x42 // in.h:977:1: + ITIMER_PROF = 2 // time.h:201:1: + ITIMER_REAL = 0 // time.h:199:1: + ITIMER_REALPROF = 3 // time.h:204:1: + ITIMER_VIRTUAL = 1 // time.h:200:1: + LINUX_SLL_BROADCAST = 1 // socket_impl.h:122:1: + LINUX_SLL_HOST = 0 // socket_impl.h:121:1: + LINUX_SLL_MULTICAST = 2 // socket_impl.h:123:1: + LINUX_SLL_OTHERHOST = 3 // socket_impl.h:124:1: + LINUX_SLL_OUTGOING = 4 // socket_impl.h:125:1: + MCAST_BLOCK_SOURCE = 0x2b // in.h:1278:1: + MCAST_EXCLUDE = 2 // in.h:1122:1: + MCAST_INCLUDE = 1 // in.h:1121:1: + MCAST_JOIN_GROUP = 0x29 // in.h:1276:1: + MCAST_JOIN_SOURCE_GROUP = 0x2d // in.h:1280:1: + MCAST_LEAVE_GROUP = 0x2a // in.h:1277:1: + MCAST_LEAVE_SOURCE_GROUP = 0x2e // in.h:1281:1: + MCAST_UNBLOCK_SOURCE = 0x2c // in.h:1279:1: + MICROSEC = 1000000 // time.h:246:1: + MILLISEC = 1000 // time.h:245:1: + NANOSEC = 1000000000 // time.h:247:1: + NBBY = 8 // select.h:103:1: + PROTO_SDP = 257 // in.h:185:1: + P_MYID = -1 // types.h:632:1: + REG_LABEL_BP = 2 // machtypes.h:44:1: + REG_LABEL_MAX = 8 // machtypes.h:51:1: + REG_LABEL_PC = 0 // machtypes.h:42:1: + REG_LABEL_R12 = 4 // machtypes.h:47:1: + REG_LABEL_R13 = 5 // machtypes.h:48:1: + REG_LABEL_R14 = 6 // machtypes.h:49:1: + REG_LABEL_R15 = 7 // machtypes.h:50:1: + REG_LABEL_RBX = 3 // machtypes.h:46:1: + REG_LABEL_SP = 1 // machtypes.h:43:1: + SEC = 1 // time.h:244:1: + TIMER_ABSTIME = 0x1 // time_impl.h:134:1: + TIMER_RELTIME = 0x0 // time_impl.h:133:1: + TIME_UTC = 0x1 // time.h:306:1: + X_ALIGNMENT_REQUIRED = 1 // isa_defs.h:262:1: + X_BIT_FIELDS_LTOH = 0 // isa_defs.h:245:1: + X_BOOL_ALIGNMENT = 1 // isa_defs.h:248:1: + X_CHAR_ALIGNMENT = 1 // isa_defs.h:249:1: + X_CHAR_IS_SIGNED = 0 // isa_defs.h:247:1: + X_CLOCKID_T = 0 // types.h:568:1: + X_CLOCK_T = 0 // types.h:563:1: + X_COND_MAGIC = 0x4356 // types.h:426:1: + X_DMA_USES_PHYSADDR = 0 // isa_defs.h:281:1: + X_DONT_USE_1275_GENERIC_NAMES = 0 // isa_defs.h:287:1: + X_DOUBLE_ALIGNMENT = 8 // isa_defs.h:256:1: + X_DOUBLE_COMPLEX_ALIGNMENT = 8 // isa_defs.h:257:1: + X_DTRACE_VERSION = 1 // feature_tests.h:490:1: + X_FILE_OFFSET_BITS = 64 // :25:1: + X_FIRMWARE_NEEDS_FDISK = 0 // isa_defs.h:282:1: + X_FLOAT_ALIGNMENT = 4 // isa_defs.h:252:1: + X_FLOAT_COMPLEX_ALIGNMENT = 4 // isa_defs.h:253:1: + X_HAVE_CPUID_INSN = 0 // isa_defs.h:288:1: + X_IEEE_754 = 0 // isa_defs.h:246:1: + X_INT64_TYPE = 0 // int_types.h:82:1: + X_INT_ALIGNMENT = 4 // isa_defs.h:251:1: + X_IN_ADDR_T = 0 // byteorder.h:78:1: + X_IN_PORT_T = 0 // byteorder.h:73:1: + X_IPADDR_T = 0 // in.h:98:1: + X_ISO_CPP_14882_1998 = 0 // feature_tests.h:466:1: + X_ISO_C_9899_1999 = 0 // feature_tests.h:472:1: + X_ISO_C_9899_2011 = 0 // feature_tests.h:478:1: + X_ISO_TIME_ISO_H = 0 // time_iso.h:46:1: + X_LARGEFILE64_SOURCE = 1 // feature_tests.h:231:1: + X_LARGEFILE_SOURCE = 1 // feature_tests.h:235:1: + X_LITTLE_ENDIAN = 0 // isa_defs.h:242:1: + X_LOCALE_T = 0 // time.h:291:1: + X_LONGLONG_TYPE = 0 // feature_tests.h:412:1: + X_LONG_ALIGNMENT = 8 // isa_defs.h:254:1: + X_LONG_DOUBLE_ALIGNMENT = 16 // isa_defs.h:258:1: + X_LONG_DOUBLE_COMPLEX_ALIGNMENT = 16 // isa_defs.h:259:1: + X_LONG_LONG_ALIGNMENT = 8 // isa_defs.h:255:1: + X_LONG_LONG_ALIGNMENT_32 = 4 // isa_defs.h:268:1: + X_LONG_LONG_LTOH = 0 // isa_defs.h:244:1: + X_LP64 = 1 // :286:1: + X_MAX_ALIGNMENT = 16 // isa_defs.h:261:1: + X_MULTI_DATAMODEL = 0 // isa_defs.h:279:1: + X_MUTEX_MAGIC = 0x4d58 // types.h:424:1: + X_NBBY = 8 // select.h:100:1: + X_NETINET_IN_H = 0 // in.h:33:1: + X_NET_IF_DL_H = 0 // if_dl.h:39:1: + X_NORETURN_KYWD = 0 // feature_tests.h:448:1: + X_OFF_T = 0 // types.h:142:1: + X_OLD_IPV6_RECVDSTOPTS = 0x15 // in.h:1247:1: + X_POINTER_ALIGNMENT = 8 // isa_defs.h:260:1: + X_PSM_MODULES = 0 // isa_defs.h:284:1: + X_PTRDIFF_T = 0 // types.h:112:1: + X_RESTRICT_KYWD = 0 // feature_tests.h:435:1: + X_RTC_CONFIG = 0 // isa_defs.h:285:1: + X_RWL_MAGIC = 0x5257 // types.h:427:1: + X_SA_FAMILY_T = 0 // socket_impl.h:42:1: + X_SEMA_MAGIC = 0x534d // types.h:425:1: + X_SHORT_ALIGNMENT = 2 // isa_defs.h:250:1: + X_SIGEVENT = 0 // time.h:132:1: + X_SIGSET_T = 0 // select.h:73:1: + X_SIGVAL = 0 // time.h:124:1: + X_SIZE_T = 0 // types.h:540:1: + X_SOCKLEN_T = 0 // in.h:48:1: + X_SOFT_HOSTID = 0 // isa_defs.h:286:1: + X_SSIZE_T = 0 // types.h:549:1: + X_SS_MAXSIZE = 256 // socket_impl.h:70:1: + X_STACK_GROWS_DOWNWARD = 0 // isa_defs.h:243:1: + X_STDC_C11 = 0 // feature_tests.h:165:1: + X_STDC_C99 = 0 // feature_tests.h:169:1: + X_SUNOS_VTOC_16 = 0 // isa_defs.h:280:1: + X_SUSECONDS_T = 0 // types.h:343:1: + X_SYS_BYTEORDER_H = 0 // byteorder.h:41:1: + X_SYS_CCOMPILE_H = 0 // ccompile.h:32:1: + X_SYS_FEATURE_TESTS_H = 0 // feature_tests.h:41:1: + X_SYS_INT_TYPES_H = 0 // int_types.h:30:1: + X_SYS_ISA_DEFS_H = 0 // isa_defs.h:30:1: + X_SYS_MACHTYPES_H = 0 // machtypes.h:27:1: + X_SYS_NULL_H = 0 // null.h:17:1: + X_SYS_SELECT_H = 0 // select.h:45:1: + X_SYS_SOCKET_IMPL_H = 0 // socket_impl.h:35:1: + X_SYS_TIME_H = 0 // time.h:27:1: + X_SYS_TIME_IMPL_H = 0 // time_impl.h:38:1: + X_SYS_TYPES_H = 0 // types.h:35:1: + X_SYS_UN_H = 0 // un.h:39:1: + X_TIMER_T = 0 // types.h:573:1: + X_TIME_H = 0 // time.h:37:1: + X_TIME_T = 0 // types.h:558:1: + X_UID_T = 0 // types.h:400:1: + X_XOPEN_VERSION = 3 // feature_tests.h:392:1: + Sun = 1 // :172:1: + Unix = 1 // :175:1: +) + +// used for block sizes + +// The boolean_t type has had a varied amount of exposure over the years in +// terms of how its enumeration constants have been exposed. In particular, it +// originally used the __XOPEN_OR_POSIX macro to determine whether to prefix the +// B_TRUE and B_FALSE with an underscore. This check never included the +// question of if we were in a strict ANSI C environment or whether extensions +// were defined. +// +// Compilers such as clang started defaulting to always including an +// XOPEN_SOURCE declaration on behalf of users, but also noted __EXTENSIONS__. +// This would lead most software that had used the non-underscore versions to +// need it. As such, we have adjusted the non-strict XOPEN environment to retain +// its old behavior so as to minimize namespace pollution; however, we instead +// include both variants of the definitions in the generally visible version +// allowing software written in either world to hopefully end up in a good +// place. +// +// This isn't perfect, but should hopefully minimize the pain for folks actually +// trying to build software. +const ( /* types.h:215:1: */ + B_FALSE = 0 + B_TRUE = 1 + X_B_FALSE = 0 + X_B_TRUE = 1 +) + +type Ptrdiff_t = int64 /* :3:26 */ + +type Size_t = uint64 /* :9:23 */ + +type Wchar_t = int32 /* :15:24 */ + +type X__int128_t = struct { + Flo int64 + Fhi int64 +} /* :21:43 */ // must match modernc.org/mathutil.Int128 +type X__uint128_t = struct { + Flo uint64 + Fhi uint64 +} /* :22:44 */ // must match modernc.org/mathutil.Int128 + +type X__builtin_va_list = uintptr /* :46:14 */ +type X__float128 = float64 /* :47:21 */ + +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2011 Nexenta Systems, Inc. All rights reserved. +// Copyright 2015, Joyent, Inc. +// Copyright 2020 OmniOS Community Edition (OmniOSce) Association. +// Copyright (c) 1982, 1986 Regents of the University of California. +// All rights reserved. +// +// Redistribution and use in source and binary forms are permitted +// provided that this notice is preserved and that due credit is given +// to the University of California at Berkeley. The name of the University +// may not be used to endorse or promote products derived from this +// software without specific prior written permission. This software +// is provided ``as is'' without express or implied warranty. + +// Constants and structures defined by the internet system, +// according to following documents +// +// Internet ASSIGNED NUMBERS (RFC1700) and its successors: +// http://www.iana.org/assignments/protocol-numbers +// http://www.iana.org/assignments/port-numbers +// Basic Socket Interface Extensions for IPv6 (RFC2133 and its successors) +// + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2015 EveryCity Ltd. All rights reserved. +// Copyright 2019 Joyent, Inc. + +// This file contains definitions designed to enable different compilers +// to be used harmoniously on Solaris systems. + +// Allow for version tests for compiler bugs and features. + +// analogous to lint's PRINTFLIKEn + +// Handle the kernel printf routines that can take '%b' too + +// This one's pretty obvious -- the function never returns + +// The function is 'extern inline' and expects GNU C89 behaviour, not C99 +// behaviour. +// +// Should only be used on 'extern inline' definitions for GCC. + +// The function has control flow such that it may return multiple times (in +// the manner of setjmp or vfork) + +// This is an appropriate label for functions that do not +// modify their arguments, e.g. strlen() + +// This is a stronger form of __pure__. Can be used for functions +// that do not modify their arguments and don't depend on global +// memory. + +// This attribute, attached to a variable, means that the variable is meant to +// be possibly unused. GCC will not produce a warning for this variable. + +// Shorthand versions for readability + +// In release build, disable warnings about variables +// which are used only for debugging. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2016 Joyent, Inc. + +// This header file serves to group a set of well known defines and to +// set these for each instruction set architecture. These defines may +// be divided into two groups; characteristics of the processor and +// implementation choices for Solaris on a processor. +// +// Processor Characteristics: +// +// _LITTLE_ENDIAN / _BIG_ENDIAN: +// The natural byte order of the processor. A pointer to an int points +// to the least/most significant byte of that int. +// +// _STACK_GROWS_UPWARD / _STACK_GROWS_DOWNWARD: +// The processor specific direction of stack growth. A push onto the +// stack increases/decreases the stack pointer, so it stores data at +// successively higher/lower addresses. (Stackless machines ignored +// without regrets). +// +// _LONG_LONG_HTOL / _LONG_LONG_LTOH: +// A pointer to a long long points to the most/least significant long +// within that long long. +// +// _BIT_FIELDS_HTOL / _BIT_FIELDS_LTOH: +// The C compiler assigns bit fields from the high/low to the low/high end +// of an int (most to least significant vs. least to most significant). +// +// _IEEE_754: +// The processor (or supported implementations of the processor) +// supports the ieee-754 floating point standard. No other floating +// point standards are supported (or significant). Any other supported +// floating point formats are expected to be cased on the ISA processor +// symbol. +// +// _CHAR_IS_UNSIGNED / _CHAR_IS_SIGNED: +// The C Compiler implements objects of type `char' as `unsigned' or +// `signed' respectively. This is really an implementation choice of +// the compiler writer, but it is specified in the ABI and tends to +// be uniform across compilers for an instruction set architecture. +// Hence, it has the properties of a processor characteristic. +// +// _CHAR_ALIGNMENT / _SHORT_ALIGNMENT / _INT_ALIGNMENT / _LONG_ALIGNMENT / +// _LONG_LONG_ALIGNMENT / _DOUBLE_ALIGNMENT / _LONG_DOUBLE_ALIGNMENT / +// _POINTER_ALIGNMENT / _FLOAT_ALIGNMENT: +// The ABI defines alignment requirements of each of the primitive +// object types. Some, if not all, may be hardware requirements as +// well. The values are expressed in "byte-alignment" units. +// +// _MAX_ALIGNMENT: +// The most stringent alignment requirement as specified by the ABI. +// Equal to the maximum of all the above _XXX_ALIGNMENT values. +// +// _MAX_ALIGNMENT_TYPE: +// The name of the C type that has the value descried in _MAX_ALIGNMENT. +// +// _ALIGNMENT_REQUIRED: +// True or false (1 or 0) whether or not the hardware requires the ABI +// alignment. +// +// _LONG_LONG_ALIGNMENT_32 +// The 32-bit ABI supported by a 64-bit kernel may have different +// alignment requirements for primitive object types. The value of this +// identifier is expressed in "byte-alignment" units. +// +// _HAVE_CPUID_INSN +// This indicates that the architecture supports the 'cpuid' +// instruction as defined by Intel. (Intel allows other vendors +// to extend the instruction for their own purposes.) +// +// +// Implementation Choices: +// +// _ILP32 / _LP64: +// This specifies the compiler data type implementation as specified in +// the relevant ABI. The choice between these is strongly influenced +// by the underlying hardware, but is not absolutely tied to it. +// Currently only two data type models are supported: +// +// _ILP32: +// Int/Long/Pointer are 32 bits. This is the historical UNIX +// and Solaris implementation. Due to its historical standing, +// this is the default case. +// +// _LP64: +// Long/Pointer are 64 bits, Int is 32 bits. This is the chosen +// implementation for 64-bit ABIs such as SPARC V9. +// +// _I32LPx: +// A compilation environment where 'int' is 32-bit, and +// longs and pointers are simply the same size. +// +// In all cases, Char is 8 bits and Short is 16 bits. +// +// _SUNOS_VTOC_8 / _SUNOS_VTOC_16 / _SVR4_VTOC_16: +// This specifies the form of the disk VTOC (or label): +// +// _SUNOS_VTOC_8: +// This is a VTOC form which is upwardly compatible with the +// SunOS 4.x disk label and allows 8 partitions per disk. +// +// _SUNOS_VTOC_16: +// In this format the incore vtoc image matches the ondisk +// version. It allows 16 slices per disk, and is not +// compatible with the SunOS 4.x disk label. +// +// Note that these are not the only two VTOC forms possible and +// additional forms may be added. One possible form would be the +// SVr4 VTOC form. The symbol for that is reserved now, although +// it is not implemented. +// +// _SVR4_VTOC_16: +// This VTOC form is compatible with the System V Release 4 +// VTOC (as implemented on the SVr4 Intel and 3b ports) with +// 16 partitions per disk. +// +// +// _DMA_USES_PHYSADDR / _DMA_USES_VIRTADDR +// This describes the type of addresses used by system DMA: +// +// _DMA_USES_PHYSADDR: +// This type of DMA, used in the x86 implementation, +// requires physical addresses for DMA buffers. The 24-bit +// addresses used by some legacy boards is the source of the +// "low-memory" (<16MB) requirement for some devices using DMA. +// +// _DMA_USES_VIRTADDR: +// This method of DMA allows the use of virtual addresses for +// DMA transfers. +// +// _FIRMWARE_NEEDS_FDISK / _NO_FDISK_PRESENT +// This indicates the presence/absence of an fdisk table. +// +// _FIRMWARE_NEEDS_FDISK +// The fdisk table is required by system firmware. If present, +// it allows a disk to be subdivided into multiple fdisk +// partitions, each of which is equivalent to a separate, +// virtual disk. This enables the co-existence of multiple +// operating systems on a shared hard disk. +// +// _NO_FDISK_PRESENT +// If the fdisk table is absent, it is assumed that the entire +// media is allocated for a single operating system. +// +// _HAVE_TEM_FIRMWARE +// Defined if this architecture has the (fallback) option of +// using prom_* calls for doing I/O if a suitable kernel driver +// is not available to do it. +// +// _DONT_USE_1275_GENERIC_NAMES +// Controls whether or not device tree node names should +// comply with the IEEE 1275 "Generic Names" Recommended +// Practice. With _DONT_USE_GENERIC_NAMES, device-specific +// names identifying the particular device will be used. +// +// __i386_COMPAT +// This indicates whether the i386 ABI is supported as a *non-native* +// mode for the platform. When this symbol is defined: +// - 32-bit xstat-style system calls are enabled +// - 32-bit xmknod-style system calls are enabled +// - 32-bit system calls use i386 sizes -and- alignments +// +// Note that this is NOT defined for the i386 native environment! +// +// __x86 +// This is ONLY a synonym for defined(__i386) || defined(__amd64) +// which is useful only insofar as these two architectures share +// common attributes. Analogous to __sparc. +// +// _PSM_MODULES +// This indicates whether or not the implementation uses PSM +// modules for processor support, reading /etc/mach from inside +// the kernel to extract a list. +// +// _RTC_CONFIG +// This indicates whether or not the implementation uses /etc/rtc_config +// to configure the real-time clock in the kernel. +// +// _UNIX_KRTLD +// This indicates that the implementation uses a dynamically +// linked unix + krtld to form the core kernel image at boot +// time, or (in the absence of this symbol) a prelinked kernel image. +// +// _OBP +// This indicates the firmware interface is OBP. +// +// _SOFT_HOSTID +// This indicates that the implementation obtains the hostid +// from the file /etc/hostid, rather than from hardware. + +// The following set of definitions characterize Solaris on AMD's +// 64-bit systems. + +// Define the appropriate "processor characteristics" + +// Different alignment constraints for the i386 ABI in compatibility mode + +// Define the appropriate "implementation choices". + +// The feature test macro __i386 is generic for all processors implementing +// the Intel 386 instruction set or a superset of it. Specifically, this +// includes all members of the 386, 486, and Pentium family of processors. + +// Values of _POSIX_C_SOURCE +// +// undefined not a POSIX compilation +// 1 POSIX.1-1990 compilation +// 2 POSIX.2-1992 compilation +// 199309L POSIX.1b-1993 compilation (Real Time) +// 199506L POSIX.1c-1995 compilation (POSIX Threads) +// 200112L POSIX.1-2001 compilation (Austin Group Revision) +// 200809L POSIX.1-2008 compilation + +// The feature test macros __XOPEN_OR_POSIX, _STRICT_STDC, _STRICT_SYMBOLS, +// and _STDC_C99 are Sun implementation specific macros created in order to +// compress common standards specified feature test macros for easier reading. +// These macros should not be used by the application developer as +// unexpected results may occur. Instead, the user should reference +// standards(7) for correct usage of the standards feature test macros. +// +// __XOPEN_OR_POSIX Used in cases where a symbol is defined by both +// X/Open or POSIX or in the negative, when neither +// X/Open or POSIX defines a symbol. +// +// _STRICT_STDC __STDC__ is specified by the C Standards and defined +// by the compiler. For Sun compilers the value of +// __STDC__ is either 1, 0, or not defined based on the +// compilation mode (see cc(1)). When the value of +// __STDC__ is 1 and in the absence of any other feature +// test macros, the namespace available to the application +// is limited to only those symbols defined by the C +// Standard. _STRICT_STDC provides a more readable means +// of identifying symbols defined by the standard, or in +// the negative, symbols that are extensions to the C +// Standard. See additional comments for GNU C differences. +// +// _STDC_C99 __STDC_VERSION__ is specified by the C standards and +// defined by the compiler and indicates the version of +// the C standard. A value of 199901L indicates a +// compiler that complies with ISO/IEC 9899:1999, other- +// wise known as the C99 standard. +// +// _STDC_C11 Like _STDC_C99 except that the value of __STDC_VERSION__ +// is 201112L indicating a compiler that compiles with +// ISO/IEC 9899:2011, otherwise known as the C11 standard. +// +// _STRICT_SYMBOLS Used in cases where symbol visibility is restricted +// by the standards, and the user has not explicitly +// relaxed the strictness via __EXTENSIONS__. + +// ISO/IEC 9899:1990 and it's revisions, ISO/IEC 9899:1999 and ISO/IEC +// 99899:2011 specify the following predefined macro name: +// +// __STDC__ The integer constant 1, intended to indicate a conforming +// implementation. +// +// Furthermore, a strictly conforming program shall use only those features +// of the language and library specified in these standards. A conforming +// implementation shall accept any strictly conforming program. +// +// Based on these requirements, Sun's C compiler defines __STDC__ to 1 for +// strictly conforming environments and __STDC__ to 0 for environments that +// use ANSI C semantics but allow extensions to the C standard. For non-ANSI +// C semantics, Sun's C compiler does not define __STDC__. +// +// The GNU C project interpretation is that __STDC__ should always be defined +// to 1 for compilation modes that accept ANSI C syntax regardless of whether +// or not extensions to the C standard are used. Violations of conforming +// behavior are conditionally flagged as warnings via the use of the +// -pedantic option. In addition to defining __STDC__ to 1, the GNU C +// compiler also defines __STRICT_ANSI__ as a means of specifying strictly +// conforming environments using the -ansi or -std= options. +// +// In the absence of any other compiler options, Sun and GNU set the value +// of __STDC__ as follows when using the following options: +// +// Value of __STDC__ __STRICT_ANSI__ +// +// cc -Xa (default) 0 undefined +// cc -Xt (transitional) 0 undefined +// cc -Xc (strictly conforming) 1 undefined +// cc -Xs (K&R C) undefined undefined +// +// gcc (default) 1 undefined +// gcc -ansi, -std={c89, c99,...) 1 defined +// gcc -traditional (K&R) undefined undefined +// +// The default compilation modes for Sun C compilers versus GNU C compilers +// results in a differing value for __STDC__ which results in a more +// restricted namespace when using Sun compilers. To allow both GNU and Sun +// interpretations to peacefully co-exist, we use the following Sun +// implementation _STRICT_STDC_ macro: + +// Compiler complies with ISO/IEC 9899:1999 or ISO/IEC 9989:2011 + +// Use strict symbol visibility. + +// This is a variant of _STRICT_SYMBOLS that is meant to cover headers that are +// governed by POSIX, but have not been governed by ISO C. One can go two ways +// on what should happen if an application actively includes (not transitively) +// a header that isn't part of the ISO C spec, we opt to say that if someone has +// gone out of there way then they're doing it for a reason and that is an act +// of non-compliance and therefore it's not up to us to hide away every symbol. +// +// In general, prefer using _STRICT_SYMBOLS, but this is here in particular for +// cases where in the past we have only used a POSIX related check and we don't +// wish to make something stricter. Often applications are relying on the +// ability to, or more realistically unwittingly, have _STRICT_STDC declared and +// still use these interfaces. + +// Large file interfaces: +// +// _LARGEFILE_SOURCE +// 1 large file-related additions to POSIX +// interfaces requested (fseeko, etc.) +// _LARGEFILE64_SOURCE +// 1 transitional large-file-related interfaces +// requested (seek64, stat64, etc.) +// +// The corresponding announcement macros are respectively: +// _LFS_LARGEFILE +// _LFS64_LARGEFILE +// (These are set in .) +// +// Requesting _LARGEFILE64_SOURCE implies requesting _LARGEFILE_SOURCE as +// well. +// +// The large file interfaces are made visible regardless of the initial values +// of the feature test macros under certain circumstances: +// - If no explicit standards-conforming environment is requested (neither +// of _POSIX_SOURCE nor _XOPEN_SOURCE is defined and the value of +// __STDC__ does not imply standards conformance). +// - Extended system interfaces are explicitly requested (__EXTENSIONS__ +// is defined). +// - Access to in-kernel interfaces is requested (_KERNEL or _KMEMUSER is +// defined). (Note that this dependency is an artifact of the current +// kernel implementation and may change in future releases.) + +// Large file compilation environment control: +// +// The setting of _FILE_OFFSET_BITS controls the size of various file-related +// types and governs the mapping between file-related source function symbol +// names and the corresponding binary entry points. +// +// In the 32-bit environment, the default value is 32; if not set, set it to +// the default here, to simplify tests in other headers. +// +// In the 64-bit compilation environment, the only value allowed is 64. + +// Use of _XOPEN_SOURCE +// +// The following X/Open specifications are supported: +// +// X/Open Portability Guide, Issue 3 (XPG3) +// X/Open CAE Specification, Issue 4 (XPG4) +// X/Open CAE Specification, Issue 4, Version 2 (XPG4v2) +// X/Open CAE Specification, Issue 5 (XPG5) +// Open Group Technical Standard, Issue 6 (XPG6), also referred to as +// IEEE Std. 1003.1-2001 and ISO/IEC 9945:2002. +// Open Group Technical Standard, Issue 7 (XPG7), also referred to as +// IEEE Std. 1003.1-2008 and ISO/IEC 9945:2009. +// +// XPG4v2 is also referred to as UNIX 95 (SUS or SUSv1). +// XPG5 is also referred to as UNIX 98 or the Single Unix Specification, +// Version 2 (SUSv2) +// XPG6 is the result of a merge of the X/Open and POSIX specifications +// and as such is also referred to as IEEE Std. 1003.1-2001 in +// addition to UNIX 03 and SUSv3. +// XPG7 is also referred to as UNIX 08 and SUSv4. +// +// When writing a conforming X/Open application, as per the specification +// requirements, the appropriate feature test macros must be defined at +// compile time. These are as follows. For more info, see standards(7). +// +// Feature Test Macro Specification +// ------------------------------------------------ ------------- +// _XOPEN_SOURCE XPG3 +// _XOPEN_SOURCE && _XOPEN_VERSION = 4 XPG4 +// _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED = 1 XPG4v2 +// _XOPEN_SOURCE = 500 XPG5 +// _XOPEN_SOURCE = 600 (or POSIX_C_SOURCE=200112L) XPG6 +// _XOPEN_SOURCE = 700 (or POSIX_C_SOURCE=200809L) XPG7 +// +// In order to simplify the guards within the headers, the following +// implementation private test macros have been created. Applications +// must NOT use these private test macros as unexpected results will +// occur. +// +// Note that in general, the use of these private macros is cumulative. +// For example, the use of _XPG3 with no other restrictions on the X/Open +// namespace will make the symbols visible for XPG3 through XPG6 +// compilation environments. The use of _XPG4_2 with no other X/Open +// namespace restrictions indicates that the symbols were introduced in +// XPG4v2 and are therefore visible for XPG4v2 through XPG6 compilation +// environments, but not for XPG3 or XPG4 compilation environments. +// +// _XPG3 X/Open Portability Guide, Issue 3 (XPG3) +// _XPG4 X/Open CAE Specification, Issue 4 (XPG4) +// _XPG4_2 X/Open CAE Specification, Issue 4, Version 2 (XPG4v2/UNIX 95/SUS) +// _XPG5 X/Open CAE Specification, Issue 5 (XPG5/UNIX 98/SUSv2) +// _XPG6 Open Group Technical Standard, Issue 6 (XPG6/UNIX 03/SUSv3) +// _XPG7 Open Group Technical Standard, Issue 7 (XPG7/UNIX 08/SUSv4) + +// X/Open Portability Guide, Issue 3 + +// _XOPEN_VERSION is defined by the X/Open specifications and is not +// normally defined by the application, except in the case of an XPG4 +// application. On the implementation side, _XOPEN_VERSION defined with +// the value of 3 indicates an XPG3 application. _XOPEN_VERSION defined +// with the value of 4 indicates an XPG4 or XPG4v2 (UNIX 95) application. +// _XOPEN_VERSION defined with a value of 500 indicates an XPG5 (UNIX 98) +// application and with a value of 600 indicates an XPG6 (UNIX 03) +// application and with a value of 700 indicates an XPG7 (UNIX 08). +// The appropriate version is determined by the use of the +// feature test macros described earlier. The value of _XOPEN_VERSION +// defaults to 3 otherwise indicating support for XPG3 applications. + +// ANSI C and ISO 9899:1990 say the type long long doesn't exist in strictly +// conforming environments. ISO 9899:1999 says it does. +// +// The presence of _LONGLONG_TYPE says "long long exists" which is therefore +// defined in all but strictly conforming environments that disallow it. + +// The following macro defines a value for the ISO C99 restrict +// keyword so that _RESTRICT_KYWD resolves to "restrict" if +// an ISO C99 compiler is used, "__restrict" for c++ and "" (null string) +// if any other compiler is used. This allows for the use of single +// prototype declarations regardless of compiler version. + +// The following macro defines a value for the ISO C11 _Noreturn +// keyword so that _NORETURN_KYWD resolves to "_Noreturn" if +// an ISO C11 compiler is used and "" (null string) if any other +// compiler is used. This allows for the use of single prototype +// declarations regardless of compiler version. + +// ISO/IEC 9899:2011 Annex K + +// The following macro indicates header support for the ANSI C++ +// standard. The ISO/IEC designation for this is ISO/IEC FDIS 14882. + +// The following macro indicates header support for the C99 standard, +// ISO/IEC 9899:1999, Programming Languages - C. + +// The following macro indicates header support for the C11 standard, +// ISO/IEC 9899:2011, Programming Languages - C. + +// The following macro indicates header support for the C11 standard, +// ISO/IEC 9899:2011 Annex K, Programming Languages - C. + +// The following macro indicates header support for DTrace. The value is an +// integer that corresponds to the major version number for DTrace. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2021 Oxide Computer Company + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2016 Joyent, Inc. + +// Machine dependent definitions moved to . +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2007 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Machine dependent types: +// +// intel ia32 Version + +type X_label_t = struct{ Fval [8]int64 } /* machtypes.h:59:9 */ + +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2011 Nexenta Systems, Inc. All rights reserved. +// Copyright 2015, Joyent, Inc. +// Copyright 2020 OmniOS Community Edition (OmniOSce) Association. +// Copyright (c) 1982, 1986 Regents of the University of California. +// All rights reserved. +// +// Redistribution and use in source and binary forms are permitted +// provided that this notice is preserved and that due credit is given +// to the University of California at Berkeley. The name of the University +// may not be used to endorse or promote products derived from this +// software without specific prior written permission. This software +// is provided ``as is'' without express or implied warranty. + +// Constants and structures defined by the internet system, +// according to following documents +// +// Internet ASSIGNED NUMBERS (RFC1700) and its successors: +// http://www.iana.org/assignments/protocol-numbers +// http://www.iana.org/assignments/port-numbers +// Basic Socket Interface Extensions for IPv6 (RFC2133 and its successors) +// + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2015 EveryCity Ltd. All rights reserved. +// Copyright 2019 Joyent, Inc. + +// This file contains definitions designed to enable different compilers +// to be used harmoniously on Solaris systems. + +// Allow for version tests for compiler bugs and features. + +// analogous to lint's PRINTFLIKEn + +// Handle the kernel printf routines that can take '%b' too + +// This one's pretty obvious -- the function never returns + +// The function is 'extern inline' and expects GNU C89 behaviour, not C99 +// behaviour. +// +// Should only be used on 'extern inline' definitions for GCC. + +// The function has control flow such that it may return multiple times (in +// the manner of setjmp or vfork) + +// This is an appropriate label for functions that do not +// modify their arguments, e.g. strlen() + +// This is a stronger form of __pure__. Can be used for functions +// that do not modify their arguments and don't depend on global +// memory. + +// This attribute, attached to a variable, means that the variable is meant to +// be possibly unused. GCC will not produce a warning for this variable. + +// Shorthand versions for readability + +// In release build, disable warnings about variables +// which are used only for debugging. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2016 Joyent, Inc. + +// This header file serves to group a set of well known defines and to +// set these for each instruction set architecture. These defines may +// be divided into two groups; characteristics of the processor and +// implementation choices for Solaris on a processor. +// +// Processor Characteristics: +// +// _LITTLE_ENDIAN / _BIG_ENDIAN: +// The natural byte order of the processor. A pointer to an int points +// to the least/most significant byte of that int. +// +// _STACK_GROWS_UPWARD / _STACK_GROWS_DOWNWARD: +// The processor specific direction of stack growth. A push onto the +// stack increases/decreases the stack pointer, so it stores data at +// successively higher/lower addresses. (Stackless machines ignored +// without regrets). +// +// _LONG_LONG_HTOL / _LONG_LONG_LTOH: +// A pointer to a long long points to the most/least significant long +// within that long long. +// +// _BIT_FIELDS_HTOL / _BIT_FIELDS_LTOH: +// The C compiler assigns bit fields from the high/low to the low/high end +// of an int (most to least significant vs. least to most significant). +// +// _IEEE_754: +// The processor (or supported implementations of the processor) +// supports the ieee-754 floating point standard. No other floating +// point standards are supported (or significant). Any other supported +// floating point formats are expected to be cased on the ISA processor +// symbol. +// +// _CHAR_IS_UNSIGNED / _CHAR_IS_SIGNED: +// The C Compiler implements objects of type `char' as `unsigned' or +// `signed' respectively. This is really an implementation choice of +// the compiler writer, but it is specified in the ABI and tends to +// be uniform across compilers for an instruction set architecture. +// Hence, it has the properties of a processor characteristic. +// +// _CHAR_ALIGNMENT / _SHORT_ALIGNMENT / _INT_ALIGNMENT / _LONG_ALIGNMENT / +// _LONG_LONG_ALIGNMENT / _DOUBLE_ALIGNMENT / _LONG_DOUBLE_ALIGNMENT / +// _POINTER_ALIGNMENT / _FLOAT_ALIGNMENT: +// The ABI defines alignment requirements of each of the primitive +// object types. Some, if not all, may be hardware requirements as +// well. The values are expressed in "byte-alignment" units. +// +// _MAX_ALIGNMENT: +// The most stringent alignment requirement as specified by the ABI. +// Equal to the maximum of all the above _XXX_ALIGNMENT values. +// +// _MAX_ALIGNMENT_TYPE: +// The name of the C type that has the value descried in _MAX_ALIGNMENT. +// +// _ALIGNMENT_REQUIRED: +// True or false (1 or 0) whether or not the hardware requires the ABI +// alignment. +// +// _LONG_LONG_ALIGNMENT_32 +// The 32-bit ABI supported by a 64-bit kernel may have different +// alignment requirements for primitive object types. The value of this +// identifier is expressed in "byte-alignment" units. +// +// _HAVE_CPUID_INSN +// This indicates that the architecture supports the 'cpuid' +// instruction as defined by Intel. (Intel allows other vendors +// to extend the instruction for their own purposes.) +// +// +// Implementation Choices: +// +// _ILP32 / _LP64: +// This specifies the compiler data type implementation as specified in +// the relevant ABI. The choice between these is strongly influenced +// by the underlying hardware, but is not absolutely tied to it. +// Currently only two data type models are supported: +// +// _ILP32: +// Int/Long/Pointer are 32 bits. This is the historical UNIX +// and Solaris implementation. Due to its historical standing, +// this is the default case. +// +// _LP64: +// Long/Pointer are 64 bits, Int is 32 bits. This is the chosen +// implementation for 64-bit ABIs such as SPARC V9. +// +// _I32LPx: +// A compilation environment where 'int' is 32-bit, and +// longs and pointers are simply the same size. +// +// In all cases, Char is 8 bits and Short is 16 bits. +// +// _SUNOS_VTOC_8 / _SUNOS_VTOC_16 / _SVR4_VTOC_16: +// This specifies the form of the disk VTOC (or label): +// +// _SUNOS_VTOC_8: +// This is a VTOC form which is upwardly compatible with the +// SunOS 4.x disk label and allows 8 partitions per disk. +// +// _SUNOS_VTOC_16: +// In this format the incore vtoc image matches the ondisk +// version. It allows 16 slices per disk, and is not +// compatible with the SunOS 4.x disk label. +// +// Note that these are not the only two VTOC forms possible and +// additional forms may be added. One possible form would be the +// SVr4 VTOC form. The symbol for that is reserved now, although +// it is not implemented. +// +// _SVR4_VTOC_16: +// This VTOC form is compatible with the System V Release 4 +// VTOC (as implemented on the SVr4 Intel and 3b ports) with +// 16 partitions per disk. +// +// +// _DMA_USES_PHYSADDR / _DMA_USES_VIRTADDR +// This describes the type of addresses used by system DMA: +// +// _DMA_USES_PHYSADDR: +// This type of DMA, used in the x86 implementation, +// requires physical addresses for DMA buffers. The 24-bit +// addresses used by some legacy boards is the source of the +// "low-memory" (<16MB) requirement for some devices using DMA. +// +// _DMA_USES_VIRTADDR: +// This method of DMA allows the use of virtual addresses for +// DMA transfers. +// +// _FIRMWARE_NEEDS_FDISK / _NO_FDISK_PRESENT +// This indicates the presence/absence of an fdisk table. +// +// _FIRMWARE_NEEDS_FDISK +// The fdisk table is required by system firmware. If present, +// it allows a disk to be subdivided into multiple fdisk +// partitions, each of which is equivalent to a separate, +// virtual disk. This enables the co-existence of multiple +// operating systems on a shared hard disk. +// +// _NO_FDISK_PRESENT +// If the fdisk table is absent, it is assumed that the entire +// media is allocated for a single operating system. +// +// _HAVE_TEM_FIRMWARE +// Defined if this architecture has the (fallback) option of +// using prom_* calls for doing I/O if a suitable kernel driver +// is not available to do it. +// +// _DONT_USE_1275_GENERIC_NAMES +// Controls whether or not device tree node names should +// comply with the IEEE 1275 "Generic Names" Recommended +// Practice. With _DONT_USE_GENERIC_NAMES, device-specific +// names identifying the particular device will be used. +// +// __i386_COMPAT +// This indicates whether the i386 ABI is supported as a *non-native* +// mode for the platform. When this symbol is defined: +// - 32-bit xstat-style system calls are enabled +// - 32-bit xmknod-style system calls are enabled +// - 32-bit system calls use i386 sizes -and- alignments +// +// Note that this is NOT defined for the i386 native environment! +// +// __x86 +// This is ONLY a synonym for defined(__i386) || defined(__amd64) +// which is useful only insofar as these two architectures share +// common attributes. Analogous to __sparc. +// +// _PSM_MODULES +// This indicates whether or not the implementation uses PSM +// modules for processor support, reading /etc/mach from inside +// the kernel to extract a list. +// +// _RTC_CONFIG +// This indicates whether or not the implementation uses /etc/rtc_config +// to configure the real-time clock in the kernel. +// +// _UNIX_KRTLD +// This indicates that the implementation uses a dynamically +// linked unix + krtld to form the core kernel image at boot +// time, or (in the absence of this symbol) a prelinked kernel image. +// +// _OBP +// This indicates the firmware interface is OBP. +// +// _SOFT_HOSTID +// This indicates that the implementation obtains the hostid +// from the file /etc/hostid, rather than from hardware. + +// The following set of definitions characterize Solaris on AMD's +// 64-bit systems. + +// Define the appropriate "processor characteristics" + +// Different alignment constraints for the i386 ABI in compatibility mode + +// Define the appropriate "implementation choices". + +// The feature test macro __i386 is generic for all processors implementing +// the Intel 386 instruction set or a superset of it. Specifically, this +// includes all members of the 386, 486, and Pentium family of processors. + +// Values of _POSIX_C_SOURCE +// +// undefined not a POSIX compilation +// 1 POSIX.1-1990 compilation +// 2 POSIX.2-1992 compilation +// 199309L POSIX.1b-1993 compilation (Real Time) +// 199506L POSIX.1c-1995 compilation (POSIX Threads) +// 200112L POSIX.1-2001 compilation (Austin Group Revision) +// 200809L POSIX.1-2008 compilation + +// The feature test macros __XOPEN_OR_POSIX, _STRICT_STDC, _STRICT_SYMBOLS, +// and _STDC_C99 are Sun implementation specific macros created in order to +// compress common standards specified feature test macros for easier reading. +// These macros should not be used by the application developer as +// unexpected results may occur. Instead, the user should reference +// standards(7) for correct usage of the standards feature test macros. +// +// __XOPEN_OR_POSIX Used in cases where a symbol is defined by both +// X/Open or POSIX or in the negative, when neither +// X/Open or POSIX defines a symbol. +// +// _STRICT_STDC __STDC__ is specified by the C Standards and defined +// by the compiler. For Sun compilers the value of +// __STDC__ is either 1, 0, or not defined based on the +// compilation mode (see cc(1)). When the value of +// __STDC__ is 1 and in the absence of any other feature +// test macros, the namespace available to the application +// is limited to only those symbols defined by the C +// Standard. _STRICT_STDC provides a more readable means +// of identifying symbols defined by the standard, or in +// the negative, symbols that are extensions to the C +// Standard. See additional comments for GNU C differences. +// +// _STDC_C99 __STDC_VERSION__ is specified by the C standards and +// defined by the compiler and indicates the version of +// the C standard. A value of 199901L indicates a +// compiler that complies with ISO/IEC 9899:1999, other- +// wise known as the C99 standard. +// +// _STDC_C11 Like _STDC_C99 except that the value of __STDC_VERSION__ +// is 201112L indicating a compiler that compiles with +// ISO/IEC 9899:2011, otherwise known as the C11 standard. +// +// _STRICT_SYMBOLS Used in cases where symbol visibility is restricted +// by the standards, and the user has not explicitly +// relaxed the strictness via __EXTENSIONS__. + +// ISO/IEC 9899:1990 and it's revisions, ISO/IEC 9899:1999 and ISO/IEC +// 99899:2011 specify the following predefined macro name: +// +// __STDC__ The integer constant 1, intended to indicate a conforming +// implementation. +// +// Furthermore, a strictly conforming program shall use only those features +// of the language and library specified in these standards. A conforming +// implementation shall accept any strictly conforming program. +// +// Based on these requirements, Sun's C compiler defines __STDC__ to 1 for +// strictly conforming environments and __STDC__ to 0 for environments that +// use ANSI C semantics but allow extensions to the C standard. For non-ANSI +// C semantics, Sun's C compiler does not define __STDC__. +// +// The GNU C project interpretation is that __STDC__ should always be defined +// to 1 for compilation modes that accept ANSI C syntax regardless of whether +// or not extensions to the C standard are used. Violations of conforming +// behavior are conditionally flagged as warnings via the use of the +// -pedantic option. In addition to defining __STDC__ to 1, the GNU C +// compiler also defines __STRICT_ANSI__ as a means of specifying strictly +// conforming environments using the -ansi or -std= options. +// +// In the absence of any other compiler options, Sun and GNU set the value +// of __STDC__ as follows when using the following options: +// +// Value of __STDC__ __STRICT_ANSI__ +// +// cc -Xa (default) 0 undefined +// cc -Xt (transitional) 0 undefined +// cc -Xc (strictly conforming) 1 undefined +// cc -Xs (K&R C) undefined undefined +// +// gcc (default) 1 undefined +// gcc -ansi, -std={c89, c99,...) 1 defined +// gcc -traditional (K&R) undefined undefined +// +// The default compilation modes for Sun C compilers versus GNU C compilers +// results in a differing value for __STDC__ which results in a more +// restricted namespace when using Sun compilers. To allow both GNU and Sun +// interpretations to peacefully co-exist, we use the following Sun +// implementation _STRICT_STDC_ macro: + +// Compiler complies with ISO/IEC 9899:1999 or ISO/IEC 9989:2011 + +// Use strict symbol visibility. + +// This is a variant of _STRICT_SYMBOLS that is meant to cover headers that are +// governed by POSIX, but have not been governed by ISO C. One can go two ways +// on what should happen if an application actively includes (not transitively) +// a header that isn't part of the ISO C spec, we opt to say that if someone has +// gone out of there way then they're doing it for a reason and that is an act +// of non-compliance and therefore it's not up to us to hide away every symbol. +// +// In general, prefer using _STRICT_SYMBOLS, but this is here in particular for +// cases where in the past we have only used a POSIX related check and we don't +// wish to make something stricter. Often applications are relying on the +// ability to, or more realistically unwittingly, have _STRICT_STDC declared and +// still use these interfaces. + +// Large file interfaces: +// +// _LARGEFILE_SOURCE +// 1 large file-related additions to POSIX +// interfaces requested (fseeko, etc.) +// _LARGEFILE64_SOURCE +// 1 transitional large-file-related interfaces +// requested (seek64, stat64, etc.) +// +// The corresponding announcement macros are respectively: +// _LFS_LARGEFILE +// _LFS64_LARGEFILE +// (These are set in .) +// +// Requesting _LARGEFILE64_SOURCE implies requesting _LARGEFILE_SOURCE as +// well. +// +// The large file interfaces are made visible regardless of the initial values +// of the feature test macros under certain circumstances: +// - If no explicit standards-conforming environment is requested (neither +// of _POSIX_SOURCE nor _XOPEN_SOURCE is defined and the value of +// __STDC__ does not imply standards conformance). +// - Extended system interfaces are explicitly requested (__EXTENSIONS__ +// is defined). +// - Access to in-kernel interfaces is requested (_KERNEL or _KMEMUSER is +// defined). (Note that this dependency is an artifact of the current +// kernel implementation and may change in future releases.) + +// Large file compilation environment control: +// +// The setting of _FILE_OFFSET_BITS controls the size of various file-related +// types and governs the mapping between file-related source function symbol +// names and the corresponding binary entry points. +// +// In the 32-bit environment, the default value is 32; if not set, set it to +// the default here, to simplify tests in other headers. +// +// In the 64-bit compilation environment, the only value allowed is 64. + +// Use of _XOPEN_SOURCE +// +// The following X/Open specifications are supported: +// +// X/Open Portability Guide, Issue 3 (XPG3) +// X/Open CAE Specification, Issue 4 (XPG4) +// X/Open CAE Specification, Issue 4, Version 2 (XPG4v2) +// X/Open CAE Specification, Issue 5 (XPG5) +// Open Group Technical Standard, Issue 6 (XPG6), also referred to as +// IEEE Std. 1003.1-2001 and ISO/IEC 9945:2002. +// Open Group Technical Standard, Issue 7 (XPG7), also referred to as +// IEEE Std. 1003.1-2008 and ISO/IEC 9945:2009. +// +// XPG4v2 is also referred to as UNIX 95 (SUS or SUSv1). +// XPG5 is also referred to as UNIX 98 or the Single Unix Specification, +// Version 2 (SUSv2) +// XPG6 is the result of a merge of the X/Open and POSIX specifications +// and as such is also referred to as IEEE Std. 1003.1-2001 in +// addition to UNIX 03 and SUSv3. +// XPG7 is also referred to as UNIX 08 and SUSv4. +// +// When writing a conforming X/Open application, as per the specification +// requirements, the appropriate feature test macros must be defined at +// compile time. These are as follows. For more info, see standards(7). +// +// Feature Test Macro Specification +// ------------------------------------------------ ------------- +// _XOPEN_SOURCE XPG3 +// _XOPEN_SOURCE && _XOPEN_VERSION = 4 XPG4 +// _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED = 1 XPG4v2 +// _XOPEN_SOURCE = 500 XPG5 +// _XOPEN_SOURCE = 600 (or POSIX_C_SOURCE=200112L) XPG6 +// _XOPEN_SOURCE = 700 (or POSIX_C_SOURCE=200809L) XPG7 +// +// In order to simplify the guards within the headers, the following +// implementation private test macros have been created. Applications +// must NOT use these private test macros as unexpected results will +// occur. +// +// Note that in general, the use of these private macros is cumulative. +// For example, the use of _XPG3 with no other restrictions on the X/Open +// namespace will make the symbols visible for XPG3 through XPG6 +// compilation environments. The use of _XPG4_2 with no other X/Open +// namespace restrictions indicates that the symbols were introduced in +// XPG4v2 and are therefore visible for XPG4v2 through XPG6 compilation +// environments, but not for XPG3 or XPG4 compilation environments. +// +// _XPG3 X/Open Portability Guide, Issue 3 (XPG3) +// _XPG4 X/Open CAE Specification, Issue 4 (XPG4) +// _XPG4_2 X/Open CAE Specification, Issue 4, Version 2 (XPG4v2/UNIX 95/SUS) +// _XPG5 X/Open CAE Specification, Issue 5 (XPG5/UNIX 98/SUSv2) +// _XPG6 Open Group Technical Standard, Issue 6 (XPG6/UNIX 03/SUSv3) +// _XPG7 Open Group Technical Standard, Issue 7 (XPG7/UNIX 08/SUSv4) + +// X/Open Portability Guide, Issue 3 + +// _XOPEN_VERSION is defined by the X/Open specifications and is not +// normally defined by the application, except in the case of an XPG4 +// application. On the implementation side, _XOPEN_VERSION defined with +// the value of 3 indicates an XPG3 application. _XOPEN_VERSION defined +// with the value of 4 indicates an XPG4 or XPG4v2 (UNIX 95) application. +// _XOPEN_VERSION defined with a value of 500 indicates an XPG5 (UNIX 98) +// application and with a value of 600 indicates an XPG6 (UNIX 03) +// application and with a value of 700 indicates an XPG7 (UNIX 08). +// The appropriate version is determined by the use of the +// feature test macros described earlier. The value of _XOPEN_VERSION +// defaults to 3 otherwise indicating support for XPG3 applications. + +// ANSI C and ISO 9899:1990 say the type long long doesn't exist in strictly +// conforming environments. ISO 9899:1999 says it does. +// +// The presence of _LONGLONG_TYPE says "long long exists" which is therefore +// defined in all but strictly conforming environments that disallow it. + +// The following macro defines a value for the ISO C99 restrict +// keyword so that _RESTRICT_KYWD resolves to "restrict" if +// an ISO C99 compiler is used, "__restrict" for c++ and "" (null string) +// if any other compiler is used. This allows for the use of single +// prototype declarations regardless of compiler version. + +// The following macro defines a value for the ISO C11 _Noreturn +// keyword so that _NORETURN_KYWD resolves to "_Noreturn" if +// an ISO C11 compiler is used and "" (null string) if any other +// compiler is used. This allows for the use of single prototype +// declarations regardless of compiler version. + +// ISO/IEC 9899:2011 Annex K + +// The following macro indicates header support for the ANSI C++ +// standard. The ISO/IEC designation for this is ISO/IEC FDIS 14882. + +// The following macro indicates header support for the C99 standard, +// ISO/IEC 9899:1999, Programming Languages - C. + +// The following macro indicates header support for the C11 standard, +// ISO/IEC 9899:2011, Programming Languages - C. + +// The following macro indicates header support for the C11 standard, +// ISO/IEC 9899:2011 Annex K, Programming Languages - C. + +// The following macro indicates header support for DTrace. The value is an +// integer that corresponds to the major version number for DTrace. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2021 Oxide Computer Company + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2016 Joyent, Inc. + +// Machine dependent definitions moved to . +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2007 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Machine dependent types: +// +// intel ia32 Version + +type Label_t = X_label_t /* machtypes.h:59:54 */ + +type Lock_t = uint8 /* machtypes.h:63:23 */ // lock work for busy wait + +// Include fixed width type declarations proposed by the ISO/JTC1/SC22/WG14 C +// committee's working draft for the revision of the current ISO C standard, +// ISO/IEC 9899:1990 Programming language - C. These are not currently +// required by any standard but constitute a useful, general purpose set +// of type definitions which is namespace clean with respect to all standards. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2014 Garrett D'Amore +// +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// This file, , is part of the Sun Microsystems implementation +// of defined in the ISO C standard, ISO/IEC 9899:1999 +// Programming language - C. +// +// Programs/Modules should not directly include this file. Access to the +// types defined in this file should be through the inclusion of one of the +// following files: +// +// Provides only the "_t" types defined in this +// file which is a subset of the contents of +// . (This can be appropriate for +// all programs/modules except those claiming +// ANSI-C conformance.) +// +// Provides the Kernel and Driver appropriate +// components of . +// +// For use by applications. +// +// See these files for more details. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Basic / Extended integer types +// +// The following defines the basic fixed-size integer types. +// +// Implementations are free to typedef them to Standard C integer types or +// extensions that they support. If an implementation does not support one +// of the particular integer data types below, then it should not define the +// typedefs and macros corresponding to that data type. Note that int8_t +// is not defined in -Xs mode on ISAs for which the ABI specifies "char" +// as an unsigned entity because there is no way to define an eight bit +// signed integral. +type Int8_t = int8 /* int_types.h:75:16 */ +type Int16_t = int16 /* int_types.h:79:17 */ +type Int32_t = int32 /* int_types.h:80:15 */ +type Int64_t = int64 /* int_types.h:83:16 */ + +type Uint8_t = uint8 /* int_types.h:91:24 */ +type Uint16_t = uint16 /* int_types.h:92:25 */ +type Uint32_t = uint32 /* int_types.h:93:23 */ +type Uint64_t = uint64 /* int_types.h:95:24 */ + +// intmax_t and uintmax_t are to be the longest (in number of bits) signed +// and unsigned integer types supported by the implementation. +type Intmax_t = int64 /* int_types.h:107:19 */ +type Uintmax_t = uint64 /* int_types.h:108:19 */ + +// intptr_t and uintptr_t are signed and unsigned integer types large enough +// to hold any data pointer; that is, data pointers can be assigned into or +// from these integer types without losing precision. +type Intptr_t = int64 /* int_types.h:120:16 */ +type Uintptr_t = uint64 /* int_types.h:121:24 */ + +// The following define the fastest integer types that can hold the +// specified number of bits. +type Int_fast8_t = int8 /* int_types.h:132:16 */ +type Int_fast16_t = int32 /* int_types.h:136:15 */ +type Int_fast32_t = int32 /* int_types.h:137:15 */ +type Int_fast64_t = int64 /* int_types.h:139:16 */ + +type Uint_fast8_t = uint8 /* int_types.h:146:24 */ +type Uint_fast16_t = uint32 /* int_types.h:147:23 */ +type Uint_fast32_t = uint32 /* int_types.h:148:23 */ +type Uint_fast64_t = uint64 /* int_types.h:150:24 */ + +// The following define the smallest integer types that can hold the +// specified number of bits. +type Int_least8_t = int8 /* int_types.h:162:16 */ +type Int_least16_t = int16 /* int_types.h:166:17 */ +type Int_least32_t = int32 /* int_types.h:167:15 */ +type Int_least64_t = int64 /* int_types.h:169:16 */ + +// If these are changed, please update char16_t and char32_t in head/uchar.h. +type Uint_least8_t = uint8 /* int_types.h:179:24 */ +type Uint_least16_t = uint16 /* int_types.h:180:25 */ +type Uint_least32_t = uint32 /* int_types.h:181:23 */ +type Uint_least64_t = uint64 /* int_types.h:183:24 */ + +// Strictly conforming ANSI C environments prior to the 1999 +// revision of the C Standard (ISO/IEC 9899:1999) do not have +// the long long data type. +type Longlong_t = int64 /* types.h:72:20 */ +type U_longlong_t = uint64 /* types.h:73:28 */ + +// These types (t_{u}scalar_t) exist because the XTI/TPI/DLPI standards had +// to use them instead of int32_t and uint32_t because DEC had +// shipped 64-bit wide. +type T_scalar_t = int32 /* types.h:92:18 */ +type T_uscalar_t = uint32 /* types.h:93:18 */ + +// POSIX Extensions +type Uchar_t = uint8 /* types.h:102:23 */ +type Ushort_t = uint16 /* types.h:103:24 */ +type Uint_t = uint32 /* types.h:104:22 */ +type Ulong_t = uint64 /* types.h:105:23 */ + +type Caddr_t = uintptr /* types.h:107:15 */ // ? type +type Daddr_t = int64 /* types.h:108:15 */ // type +type Cnt_t = int16 /* types.h:109:16 */ // pointer difference + +// VM-related types +type Pfn_t = uint64 /* types.h:123:18 */ // page frame number +type Pgcnt_t = uint64 /* types.h:124:18 */ // number of pages +type Spgcnt_t = int64 /* types.h:125:15 */ // signed number of pages + +type Use_t = uint8 /* types.h:127:18 */ // use count for swap. +type Sysid_t = int16 /* types.h:128:16 */ +type Index_t = int16 /* types.h:129:16 */ +type Timeout_id_t = uintptr /* types.h:130:15 */ // opaque handle from timeout(9F) +type Bufcall_id_t = uintptr /* types.h:131:15 */ // opaque handle from bufcall(9F) + +// The size of off_t and related types depends on the setting of +// _FILE_OFFSET_BITS. (Note that other system headers define other types +// related to those defined here.) +// +// If _LARGEFILE64_SOURCE is defined, variants of these types that are +// explicitly 64 bits wide become available. + +type Off_t = int64 /* types.h:145:15 */ // offsets within files + +type Off64_t = int64 /* types.h:152:16 */ // offsets within files + +type Ino_t = uint64 /* types.h:161:18 */ // expanded inode type +type Blkcnt_t = int64 /* types.h:162:15 */ // count of file blocks +type Fsblkcnt_t = uint64 /* types.h:163:18 */ // count of file system blocks +type Fsfilcnt_t = uint64 /* types.h:164:18 */ // count of files + +type Ino64_t = uint64 /* types.h:174:16 */ // expanded inode type +type Blkcnt64_t = int64 /* types.h:175:18 */ // count of file blocks +type Fsblkcnt64_t = uint64 /* types.h:176:20 */ // count of file system blocks +type Fsfilcnt64_t = uint64 /* types.h:177:20 */ // count of files + +type Blksize_t = int32 /* types.h:187:14 */ // used for block sizes + +// The boolean_t type has had a varied amount of exposure over the years in +// terms of how its enumeration constants have been exposed. In particular, it +// originally used the __XOPEN_OR_POSIX macro to determine whether to prefix the +// B_TRUE and B_FALSE with an underscore. This check never included the +// question of if we were in a strict ANSI C environment or whether extensions +// were defined. +// +// Compilers such as clang started defaulting to always including an +// XOPEN_SOURCE declaration on behalf of users, but also noted __EXTENSIONS__. +// This would lead most software that had used the non-underscore versions to +// need it. As such, we have adjusted the non-strict XOPEN environment to retain +// its old behavior so as to minimize namespace pollution; however, we instead +// include both variants of the definitions in the generally visible version +// allowing software written in either world to hopefully end up in a good +// place. +// +// This isn't perfect, but should hopefully minimize the pain for folks actually +// trying to build software. +type Boolean_t = uint32 /* types.h:215:69 */ + +// The {u,}pad64_t types can be used in structures such that those structures +// may be accessed by code produced by compilation environments which don't +// support a 64 bit integral datatype. The intention is not to allow +// use of these fields in such environments, but to maintain the alignment +// and offsets of the structure. +// +// Similar comments for {u,}pad128_t. +// +// Note that these types do NOT generate any stronger alignment constraints +// than those available in the underlying ABI. See +type Pad64_t = int64 /* types.h:240:18 */ +type Upad64_t = uint64 /* types.h:241:18 */ + +type Pad128_t = struct { + F_q float64 + F__ccgo_pad1 [8]byte +} /* types.h:257:3 */ + +type Upad128_t = struct { + F_q float64 + F__ccgo_pad1 [8]byte +} /* types.h:262:3 */ + +type Offset_t = int64 /* types.h:264:20 */ +type U_offset_t = uint64 /* types.h:265:22 */ +type Len_t = uint64 /* types.h:266:22 */ +type Diskaddr_t = uint64 /* types.h:267:22 */ + +// Definitions remaining from previous partial support for 64-bit file +// offsets. This partial support for devices greater than 2gb requires +// compiler support for long long. +type Lloff_t = struct{ F_f int64 } /* types.h:284:3 */ + +type Lldaddr_t = struct{ F_f int64 } /* types.h:304:3 */ + +type K_fltset_t = uint32 /* types.h:317:16 */ // kernel fault set type + +// The following type is for various kinds of identifiers. The +// actual type must be the same for all since some system calls +// (such as sigsend) take arguments that may be any of these +// types. The enumeration type idtype_t defined in sys/procset.h +// is used to indicate what type of id is being specified -- +// a process id, process group id, session id, scheduling class id, +// user id, group id, project id, task id or zone id. +type Id_t = int32 /* types.h:329:14 */ + +type Lgrp_id_t = int32 /* types.h:334:15 */ // lgroup ID + +// Type useconds_t is an unsigned integral type capable of storing +// values at least in the range of zero to 1,000,000. +type Useconds_t = uint32 /* types.h:340:17 */ // Time, in microseconds + +type Suseconds_t = int64 /* types.h:344:14 */ // signed # of microseconds + +// Typedefs for dev_t components. +type Major_t = uint32 /* types.h:351:16 */ // major part of device number +type Minor_t = uint32 /* types.h:352:16 */ // minor part of device number + +// The data type of a thread priority. +type Pri_t = int16 /* types.h:361:15 */ + +// The data type for a CPU flags field. (Can be extended to larger unsigned +// types, if needed, limited by ability to update atomically.) +type Cpu_flag_t = uint16 /* types.h:367:18 */ + +// For compatibility reasons the following typedefs (prefixed o_) +// can't grow regardless of the EFT definition. Although, +// applications should not explicitly use these typedefs +// they may be included via a system header definition. +// WARNING: These typedefs may be removed in a future +// release. +// +// ex. the definitions in s5inode.h (now obsoleted) +// remained small to preserve compatibility +// in the S5 file system type. +type O_mode_t = uint16 /* types.h:380:18 */ // old file attribute type +type O_dev_t = int16 /* types.h:381:15 */ // old device type +type O_uid_t = uint16 /* types.h:382:18 */ // old UID type +type O_gid_t = uint16 /* types.h:383:17 */ // old GID type +type O_nlink_t = int16 /* types.h:384:15 */ // old file link type +type O_pid_t = int16 /* types.h:385:15 */ // old process id type +type O_ino_t = uint16 /* types.h:386:18 */ // old inode type + +// POSIX and XOPEN Declarations +type Key_t = int32 /* types.h:392:13 */ // IPC key type +type Mode_t = uint32 /* types.h:394:16 */ // file attribute type + +type Uid_t = uint32 /* types.h:401:22 */ // UID type + +type Gid_t = uint32 /* types.h:404:15 */ // GID type + +type Datalink_id_t = uint32 /* types.h:406:18 */ +type Vrid_t = uint32 /* types.h:407:18 */ + +type Taskid_t = int32 /* types.h:409:17 */ +type Projid_t = int32 /* types.h:410:17 */ +type Poolid_t = int32 /* types.h:411:14 */ +type Zoneid_t = int32 /* types.h:412:14 */ +type Ctid_t = int32 /* types.h:413:14 */ + +// POSIX definitions are same as defined in thread.h and synch.h. +// Any changes made to here should be reflected in corresponding +// files as described in comments. +type Pthread_t = uint32 /* types.h:420:16 */ // = thread_t in thread.h +type Pthread_key_t = uint32 /* types.h:421:16 */ // = thread_key_t in thread.h + +// "Magic numbers" tagging synchronization object types + +type X_pthread_mutex = struct { + F__pthread_mutex_flags struct { + F__pthread_mutex_flag1 uint16 + F__pthread_mutex_flag2 uint8 + F__pthread_mutex_ceiling uint8 + F__pthread_mutex_type uint16 + F__pthread_mutex_magic uint16 + } + F__pthread_mutex_lock struct { + F__ccgo_pad1 [0]uint64 + F__pthread_mutex_lock64 struct{ F__pthread_mutex_pad [8]uint8 } + } + F__pthread_mutex_data uint64 +} /* types.h:429:9 */ + +// = thread_key_t in thread.h + +// "Magic numbers" tagging synchronization object types + +type Pthread_mutex_t = X_pthread_mutex /* types.h:448:3 */ + +type X_pthread_cond = struct { + F__pthread_cond_flags struct { + F__pthread_cond_flag [4]uint8 + F__pthread_cond_type uint16 + F__pthread_cond_magic uint16 + } + F__pthread_cond_data uint64 +} /* types.h:450:9 */ + +type Pthread_cond_t = X_pthread_cond /* types.h:457:3 */ + +// UNIX 98 Extension +type X_pthread_rwlock = struct { + F__pthread_rwlock_readers int32 + F__pthread_rwlock_type uint16 + F__pthread_rwlock_magic uint16 + F__pthread_rwlock_mutex Pthread_mutex_t + F__pthread_rwlock_readercv Pthread_cond_t + F__pthread_rwlock_writercv Pthread_cond_t +} /* types.h:462:9 */ + +// UNIX 98 Extension +type Pthread_rwlock_t = X_pthread_rwlock /* types.h:469:3 */ + +// SUSV3 +type Pthread_barrier_t = struct { + F__pthread_barrier_count uint32 + F__pthread_barrier_current uint32 + F__pthread_barrier_cycle uint64 + F__pthread_barrier_reserved uint64 + F__pthread_barrier_lock Pthread_mutex_t + F__pthread_barrier_cond Pthread_cond_t +} /* types.h:481:3 */ + +type Pthread_spinlock_t = Pthread_mutex_t /* types.h:483:25 */ + +// attributes for threads, dynamically allocated by library +type X_pthread_attr = struct{ F__pthread_attrp uintptr } /* types.h:488:9 */ + +// attributes for threads, dynamically allocated by library +type Pthread_attr_t = X_pthread_attr /* types.h:490:3 */ + +// attributes for mutex, dynamically allocated by library +type X_pthread_mutexattr = struct{ F__pthread_mutexattrp uintptr } /* types.h:495:9 */ + +// attributes for mutex, dynamically allocated by library +type Pthread_mutexattr_t = X_pthread_mutexattr /* types.h:497:3 */ + +// attributes for cond, dynamically allocated by library +type X_pthread_condattr = struct{ F__pthread_condattrp uintptr } /* types.h:502:9 */ + +// attributes for cond, dynamically allocated by library +type Pthread_condattr_t = X_pthread_condattr /* types.h:504:3 */ + +// pthread_once +type X_once = struct{ F__pthread_once_pad [4]uint64 } /* types.h:509:9 */ + +// pthread_once +type Pthread_once_t = X_once /* types.h:511:3 */ + +// UNIX 98 Extensions +// attributes for rwlock, dynamically allocated by library +type X_pthread_rwlockattr = struct{ F__pthread_rwlockattrp uintptr } /* types.h:517:9 */ + +// UNIX 98 Extensions +// attributes for rwlock, dynamically allocated by library +type Pthread_rwlockattr_t = X_pthread_rwlockattr /* types.h:519:3 */ + +// SUSV3 +// attributes for pthread_barrier_t, dynamically allocated by library +type Pthread_barrierattr_t = struct{ F__pthread_barrierattrp uintptr } /* types.h:527:3 */ + +type Dev_t = uint64 /* types.h:529:17 */ // expanded device type + +type Nlink_t = uint32 /* types.h:532:16 */ // file link type +type Pid_t = int32 /* types.h:533:13 */ // size of something in bytes + +type Ssize_t = int64 /* types.h:551:14 */ // size of something in bytes or -1 + +type Time_t = int64 /* types.h:559:15 */ // time of day in seconds + +type Clock_t = int64 /* types.h:564:15 */ // relative time in a specified resolution + +type Clockid_t = int32 /* types.h:569:13 */ // clock identifier type + +type Timer_t = int32 /* types.h:574:13 */ // timer identifier type + +// BEGIN CSTYLED +type Unchar = uint8 /* types.h:580:23 */ +type Ushort = uint16 /* types.h:581:24 */ +type Uint = uint32 /* types.h:582:22 */ +type Ulong = uint64 /* types.h:583:23 */ +// END CSTYLED + +// The following is the value of type id_t to use to indicate the +// caller's current id. See procset.h for the type idtype_t +// which defines which kind of id is being specified. + +// The following value of type pfn_t is used to indicate +// invalid page frame number. + +// BEGIN CSTYLED +type U_char = uint8 /* types.h:650:23 */ +type U_short = uint16 /* types.h:651:24 */ +type U_int = uint32 /* types.h:652:22 */ +type U_long = uint64 /* types.h:653:23 */ +type X_quad = struct{ Fval [2]int32 } /* types.h:654:9 */ + +type Quad_t = X_quad /* types.h:654:38 */ // used by UFS +type Quad = Quad_t /* types.h:655:17 */ // used by UFS +// END CSTYLED + +// Nested include for BSD/sockets source compatibility. +// (The select macros used to be defined here). +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// +// Copyright 2010 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// University Copyright- Copyright (c) 1982, 1986, 1988 +// The Regents of the University of California +// All Rights Reserved +// +// University Acknowledgment- Portions of this document are derived from +// software developed by the University of California, Berkeley, and its +// contributors. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2005 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Implementation-private. This header should not be included +// directly by an application. The application should instead +// include which includes this header conditionally +// depending on which feature test macros are defined. By default, +// this header is included by . X/Open and POSIX +// standards requirements result in this header being included +// by only under a restricted set of conditions. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Time expressed in seconds and nanoseconds + +type Timespec = struct { + Ftv_sec int64 + Ftv_nsec int64 +} /* time_impl.h:57:9 */ + +// used by UFS +// END CSTYLED + +// Nested include for BSD/sockets source compatibility. +// (The select macros used to be defined here). +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// +// Copyright 2010 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// University Copyright- Copyright (c) 1982, 1986, 1988 +// The Regents of the University of California +// All Rights Reserved +// +// University Acknowledgment- Portions of this document are derived from +// software developed by the University of California, Berkeley, and its +// contributors. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2005 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Implementation-private. This header should not be included +// directly by an application. The application should instead +// include which includes this header conditionally +// depending on which feature test macros are defined. By default, +// this header is included by . X/Open and POSIX +// standards requirements result in this header being included +// by only under a restricted set of conditions. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Time expressed in seconds and nanoseconds + +type Timespec_t = Timespec /* time_impl.h:60:3 */ + +type Timestruc_t = Timespec /* time_impl.h:81:25 */ // definition per SVr4 + +// The following has been left in for backward compatibility. Portable +// applications should not use the structure name timestruc. + +// Timer specification +type Itimerspec = struct { + Fit_interval struct { + Ftv_sec int64 + Ftv_nsec int64 + } + Fit_value struct { + Ftv_sec int64 + Ftv_nsec int64 + } +} /* time_impl.h:95:9 */ + +// definition per SVr4 + +// The following has been left in for backward compatibility. Portable +// applications should not use the structure name timestruc. + +// Timer specification +type Itimerspec_t = Itimerspec /* time_impl.h:98:3 */ + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright (c) 1982, 1986, 1993 Regents of the University of California. +// All rights reserved. The Berkeley software License Agreement +// specifies the terms and conditions for redistribution. + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2020 OmniOS Community Edition (OmniOSce) Association. + +// Copyright (c) 2013, 2016 by Delphix. All rights reserved. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Structure returned by gettimeofday(2) system call, +// and used in other calls. + +type Timeval = struct { + Ftv_sec int64 + Ftv_usec int64 +} /* time.h:54:1 */ + +type Timezone = struct { + Ftz_minuteswest int32 + Ftz_dsttime int32 +} /* time.h:86:1 */ + +// Needed for longlong_t type. Placement of this due to +// including which relies on the presense of the itimerval +// structure. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2021 Oxide Computer Company + +// Operations on timevals. + +// Names of the interval timers, and structure +// defining a timer setting. +// time and when system is running on +// behalf of the process. +// time profiling of multithreaded +// programs. + +type Itimerval = struct { + Fit_interval struct { + Ftv_sec int64 + Ftv_usec int64 + } + Fit_value struct { + Ftv_sec int64 + Ftv_usec int64 + } +} /* time.h:209:1 */ + +// Definitions for commonly used resolutions. + +// Time expressed as a 64-bit nanosecond counter. +type Hrtime_t = int64 /* time.h:265:20 */ + +// The inclusion of is historical and was added for +// backward compatibility in delta 1.2 when a number of definitions +// were moved out of . More recently, the timespec and +// itimerspec structure definitions, along with the _CLOCK_*, CLOCK_*, +// _TIMER_*, and TIMER_* symbols were moved to , +// which is now included by . This change was due to POSIX +// 1003.1b-1993 and X/Open UNIX 98 requirements. For non-POSIX and +// non-X/Open applications, including this header will still make +// visible these definitions. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1988 AT&T +// All Rights Reserved + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2007 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2010 Nexenta Systems, Inc. Al rights reserved. +// Copyright 2016 Joyent, Inc. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1988 AT&T +// All Rights Reserved + +// Copyright 2014 Garrett D'Amore +// Copyright 2014 PALO, Richard. +// +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// An application should not include this header directly. Instead it +// should be included only through the inclusion of other Sun headers. +// +// The contents of this header is limited to identifiers specified in the +// C Standard. Any new identifiers specified in future amendments to the +// C Standard must be placed in this header. If these new identifiers +// are required to also be in the C++ Standard "std" namespace, then for +// anything other than macro definitions, corresponding "using" directives +// must also be added to . + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// This file and its contents are supplied under the terms of the +// Common Development and Distribution License ("CDDL"), version 1.0. +// You may only use this file in accordance with the terms of version +// 1.0 of the CDDL. +// +// A full copy of the text of the CDDL should have accompanied this +// source. A copy of the CDDL is also available via the Internet at +// http://www.illumos.org/license/CDDL. + +// Copyright 2014-2016 PALO, Richard. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// POSIX.1-2008 requires that the NULL macro be cast to type void *. + +type Tm = struct { + Ftm_sec int32 + Ftm_min int32 + Ftm_hour int32 + Ftm_mday int32 + Ftm_mon int32 + Ftm_year int32 + Ftm_wday int32 + Ftm_yday int32 + Ftm_isdst int32 +} /* time_iso.h:80:1 */ + +// Neither X/Open nor POSIX allow the inclusion of for the +// definition of the sigevent structure. Both require the inclusion +// of and when using the timer_create() function. +// However, X/Open also specifies that the sigevent structure be defined +// in as described in the header . This prevents +// compiler warnings for applications that only include and not +// also . The sigval union and the sigevent structure is +// therefore defined both here and in which gets included +// via inclusion of . +type Sigval = struct { + F__ccgo_pad1 [0]uint64 + Fsival_int int32 + F__ccgo_pad2 [4]byte +} /* time.h:125:1 */ + +type Sigevent = struct { + Fsigev_notify int32 + Fsigev_signo int32 + Fsigev_value struct { + F__ccgo_pad1 [0]uint64 + Fsival_int int32 + F__ccgo_pad2 [4]byte + } + Fsigev_notify_function uintptr + Fsigev_notify_attributes uintptr + F__sigev_pad2 int32 + F__ccgo_pad1 [4]byte +} /* time.h:133:1 */ + +type Locale_t = uintptr /* time.h:292:24 */ + +// The inclusion of is needed for the FD_CLR, +// FD_ISSET, FD_SET, and FD_SETSIZE macros as well as the +// select() prototype defined in the XOpen specifications +// beginning with XSH4v2. Placement required after definition +// for itimerval. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// +// Copyright 2010 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// University Copyright- Copyright (c) 1982, 1986, 1988 +// The Regents of the University of California +// All Rights Reserved +// +// University Acknowledgment- Portions of this document are derived from +// software developed by the University of California, Berkeley, and its +// contributors. + +// The sigset_t type is defined in and duplicated +// in as a result of XPG4v2 requirements. XPG6 +// now allows the visibility of signal.h in this header, however +// an order of inclusion problem occurs as a result of inclusion +// of in under certain conditions. +// Rather than include here, we've duplicated +// the sigset_t type instead. This type is required for the XPG6 +// introduced pselect() function also declared in this header. +type Sigset_t = struct{ F__sigbits [4]uint32 } /* select.h:76:3 */ + +// Select uses bit masks of file descriptors in longs. +// These macros manipulate such bit fields. +// FD_SETSIZE may be defined by the user, but the default here +// should be >= RLIM_FD_MAX. + +type Fd_mask = int64 /* select.h:92:14 */ +type Fds_mask = int64 /* select.h:94:14 */ + +// The value of _NBBY needs to be consistant with the value +// of NBBY in . + +type Fd_set1 = struct{ Ffds_bits [1024]int64 } /* select.h:120:9 */ + +// The value of _NBBY needs to be consistant with the value +// of NBBY in . + +type Fd_set = Fd_set1 /* select.h:125:3 */ + +// _VOID was defined to be either void or char but this is not +// required because previous SunOS compilers have accepted the void +// type. However, because many system header and source files use the +// void keyword, the volatile keyword, and ANSI C function prototypes, +// non-ANSI compilers cannot compile the system anyway. The _VOID macro +// should therefore not be used and remains for source compatibility +// only. +// CSTYLED + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Portions of this source code were derived from Berkeley 4.3 BSD +// under license from the Regents of the University of California. + +type Sa_family_t = uint16 /* socket_impl.h:43:18 */ + +// Structure used by kernel to store most +// addresses. +type Sockaddr = struct { + Fsa_family uint16 + Fsa_data [14]int8 +} /* socket_impl.h:50:1 */ + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1996, 2010, Oracle and/or its affiliates. All rights reserved. + +// Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// University Copyright- Copyright (c) 1982, 1986, 1988 +// The Regents of the University of California +// All Rights Reserved +// +// University Acknowledgment- Portions of this document are derived from +// software developed by the University of California, Berkeley, and its +// contributors. + +// Definitions for UNIX IPC domain. +type Sockaddr_un = struct { + Fsun_family uint16 + Fsun_path [108]int8 +} /* un.h:53:1 */ + +// Copyright 1993-2003 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright (c) 1990, 1993 +// The Regents of the University of California. All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// 1. Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// 2. Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer in the +// documentation and/or other materials provided with the distribution. +// 3. All advertising materials mentioning features or use of this software +// must display the following acknowledgement: +// This product includes software developed by the University of +// California, Berkeley and its contributors. +// 4. Neither the name of the University nor the names of its contributors +// may be used to endorse or promote products derived from this software +// without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +// SUCH DAMAGE. + +// from UCB 8.1 (Berkeley) 6/10/93 + +// A Link-Level Sockaddr may specify the interface in one of two +// ways: either by means of a system-provided index number (computed +// anew and possibly differently on every reboot), or by a human-readable +// string such as "il0" (for managerial convenience). +// +// Census taking actions, such as something akin to SIOCGCONF would return +// both the index and the human name. +// +// High volume transactions (such as giving a link-level ``from'' address +// in a recvfrom or recvmsg call) may be likely only to provide the indexed +// form, (which requires fewer copy operations and less space). +// +// The form and interpretation of the link-level address is purely a matter +// of convention between the device driver and its consumers; however, it is +// expected that all drivers for an interface of a given if_type will agree. + +// Structure of a Link-Level sockaddr: +type Sockaddr_dl = struct { + Fsdl_family uint16 + Fsdl_index uint16 + Fsdl_type uint8 + Fsdl_nlen uint8 + Fsdl_alen uint8 + Fsdl_slen uint8 + Fsdl_data [244]int8 +} /* if_dl.h:68:1 */ + +// sockaddr_storage: +// Common superset of at least AF_INET, AF_INET6 and AF_LINK sockaddr +// structures. Has sufficient size and alignment for those sockaddrs. + +// Desired maximum size, alignment size and related types. + +// To represent desired sockaddr max alignment for platform, a +// type is chosen which may depend on implementation platform architecture. +// Type chosen based on alignment size restrictions from . +// We desire to force up to (but no more than) 64-bit (8 byte) alignment, +// on platforms where it is possible to do so. (e.g not possible on ia32). +// For all currently supported platforms by our implementation +// in , (i.e. sparc, sparcv9, ia32, ia64) +// type "double" is suitable for that intent. +// +// Note: Type "double" is chosen over the more obvious integer type int64_t. +// +// int64_t is not a valid type for strict ANSI/ISO C compilation on ILP32. +type Sockaddr_maxalign_t = float64 /* socket_impl.h:85:17 */ + +// Definitions used for sockaddr_storage structure paddings design. + +type Sockaddr_storage = struct { + Fss_family uint16 + F_ss_pad1 [6]int8 + F_ss_align float64 + F_ss_pad2 [240]int8 +} /* socket_impl.h:96:1 */ + +// To be compatible with the Linux interfaces used, this structure is +// placed in socket_impl.h so that an include for will +// pickup this structure. This structure is for use with PF_PACKET +// sockets. +type Sockaddr_ll = struct { + Fsll_family uint16 + Fsll_protocol uint16 + Fsll_ifindex int32 + Fsll_hatype uint16 + Fsll_pkttype uint8 + Fsll_halen uint8 + Fsll_addr [8]uint8 +} /* socket_impl.h:111:1 */ + +// The socklen definitions are reproduced here from sys/socket.h so as to +// not introduce that namespace into existing users of netinet/in.h. +type Socklen_t = uint32 /* in.h:57:18 */ + +type Psocklen_t = uintptr /* in.h:63:15 */ + +// Symbols such as htonl() are required to be exposed through this file, +// per XNS Issue 5. This is achieved by inclusion of +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// University Copyright- Copyright (c) 1982, 1986, 1988 +// The Regents of the University of California +// All Rights Reserved +// +// University Acknowledgment- Portions of this document are derived from +// software developed by the University of California, Berkeley, and its +// contributors. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2016 Joyent, Inc. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2014 Garrett D'Amore +// +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// macros for conversion between host and (internet) network byte order + +type In_port_t = uint16 /* byteorder.h:74:18 */ + +type In_addr_t = uint32 /* byteorder.h:79:18 */ + +// Macros to reverse byte order + +// Macros to convert from a specific byte order to/from native byte order + +// Macros to read unaligned values from a specific byte order to +// native byte order + +// Macros to write unaligned values from native byte order to a specific byte +// order. + +// Note: IPv4 address data structures usage conventions. +// The "in_addr_t" type below (required by Unix standards) +// is NOT a typedef of "struct in_addr" and violates the usual +// conventions where "struct " and _t are corresponding +// typedefs. +// To minimize confusion, kernel data structures/usage prefers use +// of "ipaddr_t" as atomic uint32_t type and avoid using "in_addr_t" +// The user level APIs continue to follow the historic popular +// practice of using "struct in_addr". + +type Ipaddr_t = uint32 /* in.h:99:18 */ + +type In6_addr = struct { + F_S6_un struct { + F__ccgo_pad1 [0]uint32 + F_S6_u8 [16]uint8 + } +} /* in.h:104:1 */ + +type In6_addr_t = In6_addr /* in.h:137:25 */ + +// Protocols +// +// Some of these constant names are copied for the DTrace IP provider in +// usr/src/lib/libdtrace/common/{ip.d.in, ip.sed.in}, which should be kept +// in sync. +// Transmission Protocol + +// Port/socket numbers: network standard functions +// +// Entries should exist here for each port number compiled into an ON +// component, such as snoop. + +// Port/socket numbers: host specific functions + +// Internet Key Exchange (IKE) ports + +// UNIX TCP sockets + +// UNIX UDP sockets + +// DHCPv6 UDP ports + +// Ports < IPPORT_RESERVED are reserved for +// privileged processes (e.g. root). +// Ports > IPPORT_USERRESERVED are reserved +// for servers, not necessarily privileged. + +// Link numbers + +// IPv4 Internet address +// This definition contains obsolete fields for compatibility +// with SunOS 3.x and 4.2bsd. The presence of subnets renders +// divisions into fixed fields misleading at best. New code +// should use only the s_addr field. + +type In_addr = struct { + FS_un struct { + F__ccgo_pad1 [0]uint32 + FS_un_b struct { + Fs_b1 uint8 + Fs_b2 uint8 + Fs_b3 uint8 + Fs_b4 uint8 + } + } +} /* in.h:301:1 */ + +// Definitions of bits in internet address integers. +// On subnets, the decomposition of addresses to host and net parts +// is done according to subnet mask, not the masks here. +// +// Note that with the introduction of CIDR, IN_CLASSA, IN_CLASSB, +// IN_CLASSC, IN_CLASSD and IN_CLASSE macros have become "de-facto +// obsolete". IN_MULTICAST macro should be used to test if a address +// is a multicast address. + +// We have removed CLASS E checks from the kernel +// But we preserve these defines for userland in order +// to avoid compile breakage of some 3rd party piece of software + +// Scoped IPv4 prefixes (in host byte-order) + +// RFC 3927 IPv4 link local address (i in host byte-order) + +// Well known 6to4 Relay Router Anycast address defined in RFC 3068 + +// Define a macro to stuff the loopback address into an Internet address + +// IPv4 Socket address. +type Sockaddr_in = struct { + Fsin_family uint16 + Fsin_port uint16 + Fsin_addr struct { + FS_un struct { + F__ccgo_pad1 [0]uint32 + FS_un_b struct { + Fs_b1 uint8 + Fs_b2 uint8 + Fs_b3 uint8 + Fs_b4 uint8 + } + } + } + Fsin_zero [8]int8 +} /* in.h:409:1 */ + +// IPv6 socket address. +type Sockaddr_in6 = struct { + Fsin6_family uint16 + Fsin6_port uint16 + Fsin6_flowinfo uint32 + Fsin6_addr struct { + F_S6_un struct { + F__ccgo_pad1 [0]uint32 + F_S6_u8 [16]uint8 + } + } + Fsin6_scope_id uint32 + F__sin6_src_id uint32 +} /* in.h:424:1 */ + +// Macros for accessing the traffic class and flow label fields from +// sin6_flowinfo. +// These are designed to be applied to a 32-bit value. + +// masks + +// Note: Macros IN6ADDR_ANY_INIT and IN6ADDR_LOOPBACK_INIT are for +// use as RHS of Static initializers of "struct in6_addr" (or in6_addr_t) +// only. They need to be different for User/Kernel versions because union +// component data structure is defined differently (it is identical at +// binary representation level). +// +// const struct in6_addr IN6ADDR_ANY_INIT; +// const struct in6_addr IN6ADDR_LOOPBACK_INIT; + +// RFC 2553 specifies the following macros. Their type is defined +// as "int" in the RFC but they only have boolean significance +// (zero or non-zero). For the purposes of our comment notation, +// we assume a hypothetical type "bool" defined as follows to +// write the prototypes assumed for macros in our comments better. +// +// typedef int bool; + +// IN6 macros used to test for special IPv6 addresses +// (Mostly from spec) +// +// bool IN6_IS_ADDR_UNSPECIFIED (const struct in6_addr *); +// bool IN6_IS_ADDR_LOOPBACK (const struct in6_addr *); +// bool IN6_IS_ADDR_MULTICAST (const struct in6_addr *); +// bool IN6_IS_ADDR_LINKLOCAL (const struct in6_addr *); +// bool IN6_IS_ADDR_SITELOCAL (const struct in6_addr *); +// bool IN6_IS_ADDR_V4MAPPED (const struct in6_addr *); +// bool IN6_IS_ADDR_V4MAPPED_ANY(const struct in6_addr *); -- Not from RFC2553 +// bool IN6_IS_ADDR_V4COMPAT (const struct in6_addr *); +// bool IN6_IS_ADDR_MC_RESERVED (const struct in6_addr *); -- Not from RFC2553 +// bool IN6_IS_ADDR_MC_NODELOCAL(const struct in6_addr *); +// bool IN6_IS_ADDR_MC_LINKLOCAL(const struct in6_addr *); +// bool IN6_IS_ADDR_MC_SITELOCAL(const struct in6_addr *); +// bool IN6_IS_ADDR_MC_ORGLOCAL (const struct in6_addr *); +// bool IN6_IS_ADDR_MC_GLOBAL (const struct in6_addr *); +// bool IN6_IS_ADDR_6TO4 (const struct in6_addr *); -- Not from RFC2553 +// bool IN6_ARE_6TO4_PREFIX_EQUAL(const struct in6_addr *, +// const struct in6_addr *); -- Not from RFC2553 +// bool IN6_IS_ADDR_LINKSCOPE (const struct in6addr *); -- Not from RFC2553 + +// IN6_IS_ADDR_V4MAPPED - A IPv4 mapped INADDR_ANY +// Note: This macro is currently NOT defined in RFC2553 specification +// and not a standard macro that portable applications should use. + +// Exclude loopback and unspecified address + +// Note: +// IN6_IS_ADDR_MC_RESERVED macro is currently NOT defined in RFC2553 +// specification and not a standard macro that portable applications +// should use. + +// The IN6_IS_ADDR_MC_SOLICITEDNODE macro is not defined in any standard or +// RFC, and shouldn't be used by portable applications. It is used to see +// if an address is a solicited-node multicast address, which is prefixed +// with ff02:0:0:0:0:1:ff00::/104. + +// Macros to a) test for 6to4 IPv6 address, and b) to test if two +// 6to4 addresses have the same /48 prefix, and, hence, are from the +// same 6to4 site. + +// IN6_IS_ADDR_LINKSCOPE +// Identifies an address as being either link-local, link-local multicast or +// node-local multicast. All types of addresses are considered to be unique +// within the scope of a given link. + +// Useful utility macros for operations with IPv6 addresses +// Note: These macros are NOT defined in the RFC2553 or any other +// standard specification and are not standard macros that portable +// applications should use. + +// IN6_V4MAPPED_TO_INADDR +// IN6_V4MAPPED_TO_IPADDR +// Assign a IPv4-Mapped IPv6 address to an IPv4 address. +// Note: These macros are NOT defined in RFC2553 or any other standard +// specification and are not macros that portable applications should +// use. +// +// void IN6_V4MAPPED_TO_INADDR(const in6_addr_t *v6, struct in_addr *v4); +// void IN6_V4MAPPED_TO_IPADDR(const in6_addr_t *v6, ipaddr_t v4); +// + +// IN6_INADDR_TO_V4MAPPED +// IN6_IPADDR_TO_V4MAPPED +// Assign a IPv4 address address to an IPv6 address as a IPv4-mapped +// address. +// Note: These macros are NOT defined in RFC2553 or any other standard +// specification and are not macros that portable applications should +// use. +// +// void IN6_INADDR_TO_V4MAPPED(const struct in_addr *v4, in6_addr_t *v6); +// void IN6_IPADDR_TO_V4MAPPED(const ipaddr_t v4, in6_addr_t *v6); +// + +// IN6_6TO4_TO_V4ADDR +// Extract the embedded IPv4 address from the prefix to a 6to4 IPv6 +// address. +// Note: This macro is NOT defined in RFC2553 or any other standard +// specification and is not a macro that portable applications should +// use. +// Note: we don't use the IPADDR form of the macro because we need +// to do a bytewise copy; the V4ADDR in the 6to4 address is not +// 32-bit aligned. +// +// void IN6_6TO4_TO_V4ADDR(const in6_addr_t *v6, struct in_addr *v4); +// + +// IN6_V4ADDR_TO_6TO4 +// Given an IPv4 address and an IPv6 address for output, a 6to4 address +// will be created from the IPv4 Address. +// Note: This method for creating 6to4 addresses is not standardized +// outside of Solaris. The newly created 6to4 address will be of the form +// 2002::::, where SUBNETID will equal 0 and +// HOSTID will equal 1. +// +// void IN6_V4ADDR_TO_6TO4(const struct in_addr *v4, in6_addr_t *v6) +// + +// IN6_ARE_ADDR_EQUAL (defined in RFC2292) +// Compares if IPv6 addresses are equal. +// Note: Compares in order of high likelyhood of a miss so we minimize +// compares. (Current heuristic order, compare in reverse order of +// uint32_t units) +// +// bool IN6_ARE_ADDR_EQUAL(const struct in6_addr *, +// const struct in6_addr *); + +// IN6_ARE_PREFIXEDADDR_EQUAL (not defined in RFCs) +// Compares if prefixed parts of IPv6 addresses are equal. +// +// uint32_t IN6_MASK_FROM_PREFIX(int, int); +// bool IN6_ARE_PREFIXEDADDR_EQUAL(const struct in6_addr *, +// const struct in6_addr *, +// int); + +// Options for use with [gs]etsockopt at the IP level. +// +// Note: Some of the IP_ namespace has conflict with and +// and is exposed through . (It also requires exposing +// options not implemented). The options with potential +// for conflicts use #ifndef guards. + +// IP_PKTINFO and IP_RECVPKTINFO have same value. Size of argument passed in +// is used to differentiate b/w the two. + +// Different preferences that can be requested from IPSEC protocols. +// This can be used with the setsockopt() call to set per socket security +// options. When the application uses per-socket API, we will reflect +// the request on both outbound and inbound packets. + +type Ipsec_req = struct { + Fipsr_ah_req uint32 + Fipsr_esp_req uint32 + Fipsr_self_encap_req uint32 + Fipsr_auth_alg uint8 + Fipsr_esp_alg uint8 + Fipsr_esp_auth_alg uint8 + F__ccgo_pad1 [1]byte +} /* in.h:950:9 */ + +// Macros for accessing the traffic class and flow label fields from +// sin6_flowinfo. +// These are designed to be applied to a 32-bit value. + +// masks + +// Note: Macros IN6ADDR_ANY_INIT and IN6ADDR_LOOPBACK_INIT are for +// use as RHS of Static initializers of "struct in6_addr" (or in6_addr_t) +// only. They need to be different for User/Kernel versions because union +// component data structure is defined differently (it is identical at +// binary representation level). +// +// const struct in6_addr IN6ADDR_ANY_INIT; +// const struct in6_addr IN6ADDR_LOOPBACK_INIT; + +// RFC 2553 specifies the following macros. Their type is defined +// as "int" in the RFC but they only have boolean significance +// (zero or non-zero). For the purposes of our comment notation, +// we assume a hypothetical type "bool" defined as follows to +// write the prototypes assumed for macros in our comments better. +// +// typedef int bool; + +// IN6 macros used to test for special IPv6 addresses +// (Mostly from spec) +// +// bool IN6_IS_ADDR_UNSPECIFIED (const struct in6_addr *); +// bool IN6_IS_ADDR_LOOPBACK (const struct in6_addr *); +// bool IN6_IS_ADDR_MULTICAST (const struct in6_addr *); +// bool IN6_IS_ADDR_LINKLOCAL (const struct in6_addr *); +// bool IN6_IS_ADDR_SITELOCAL (const struct in6_addr *); +// bool IN6_IS_ADDR_V4MAPPED (const struct in6_addr *); +// bool IN6_IS_ADDR_V4MAPPED_ANY(const struct in6_addr *); -- Not from RFC2553 +// bool IN6_IS_ADDR_V4COMPAT (const struct in6_addr *); +// bool IN6_IS_ADDR_MC_RESERVED (const struct in6_addr *); -- Not from RFC2553 +// bool IN6_IS_ADDR_MC_NODELOCAL(const struct in6_addr *); +// bool IN6_IS_ADDR_MC_LINKLOCAL(const struct in6_addr *); +// bool IN6_IS_ADDR_MC_SITELOCAL(const struct in6_addr *); +// bool IN6_IS_ADDR_MC_ORGLOCAL (const struct in6_addr *); +// bool IN6_IS_ADDR_MC_GLOBAL (const struct in6_addr *); +// bool IN6_IS_ADDR_6TO4 (const struct in6_addr *); -- Not from RFC2553 +// bool IN6_ARE_6TO4_PREFIX_EQUAL(const struct in6_addr *, +// const struct in6_addr *); -- Not from RFC2553 +// bool IN6_IS_ADDR_LINKSCOPE (const struct in6addr *); -- Not from RFC2553 + +// IN6_IS_ADDR_V4MAPPED - A IPv4 mapped INADDR_ANY +// Note: This macro is currently NOT defined in RFC2553 specification +// and not a standard macro that portable applications should use. + +// Exclude loopback and unspecified address + +// Note: +// IN6_IS_ADDR_MC_RESERVED macro is currently NOT defined in RFC2553 +// specification and not a standard macro that portable applications +// should use. + +// The IN6_IS_ADDR_MC_SOLICITEDNODE macro is not defined in any standard or +// RFC, and shouldn't be used by portable applications. It is used to see +// if an address is a solicited-node multicast address, which is prefixed +// with ff02:0:0:0:0:1:ff00::/104. + +// Macros to a) test for 6to4 IPv6 address, and b) to test if two +// 6to4 addresses have the same /48 prefix, and, hence, are from the +// same 6to4 site. + +// IN6_IS_ADDR_LINKSCOPE +// Identifies an address as being either link-local, link-local multicast or +// node-local multicast. All types of addresses are considered to be unique +// within the scope of a given link. + +// Useful utility macros for operations with IPv6 addresses +// Note: These macros are NOT defined in the RFC2553 or any other +// standard specification and are not standard macros that portable +// applications should use. + +// IN6_V4MAPPED_TO_INADDR +// IN6_V4MAPPED_TO_IPADDR +// Assign a IPv4-Mapped IPv6 address to an IPv4 address. +// Note: These macros are NOT defined in RFC2553 or any other standard +// specification and are not macros that portable applications should +// use. +// +// void IN6_V4MAPPED_TO_INADDR(const in6_addr_t *v6, struct in_addr *v4); +// void IN6_V4MAPPED_TO_IPADDR(const in6_addr_t *v6, ipaddr_t v4); +// + +// IN6_INADDR_TO_V4MAPPED +// IN6_IPADDR_TO_V4MAPPED +// Assign a IPv4 address address to an IPv6 address as a IPv4-mapped +// address. +// Note: These macros are NOT defined in RFC2553 or any other standard +// specification and are not macros that portable applications should +// use. +// +// void IN6_INADDR_TO_V4MAPPED(const struct in_addr *v4, in6_addr_t *v6); +// void IN6_IPADDR_TO_V4MAPPED(const ipaddr_t v4, in6_addr_t *v6); +// + +// IN6_6TO4_TO_V4ADDR +// Extract the embedded IPv4 address from the prefix to a 6to4 IPv6 +// address. +// Note: This macro is NOT defined in RFC2553 or any other standard +// specification and is not a macro that portable applications should +// use. +// Note: we don't use the IPADDR form of the macro because we need +// to do a bytewise copy; the V4ADDR in the 6to4 address is not +// 32-bit aligned. +// +// void IN6_6TO4_TO_V4ADDR(const in6_addr_t *v6, struct in_addr *v4); +// + +// IN6_V4ADDR_TO_6TO4 +// Given an IPv4 address and an IPv6 address for output, a 6to4 address +// will be created from the IPv4 Address. +// Note: This method for creating 6to4 addresses is not standardized +// outside of Solaris. The newly created 6to4 address will be of the form +// 2002::::, where SUBNETID will equal 0 and +// HOSTID will equal 1. +// +// void IN6_V4ADDR_TO_6TO4(const struct in_addr *v4, in6_addr_t *v6) +// + +// IN6_ARE_ADDR_EQUAL (defined in RFC2292) +// Compares if IPv6 addresses are equal. +// Note: Compares in order of high likelyhood of a miss so we minimize +// compares. (Current heuristic order, compare in reverse order of +// uint32_t units) +// +// bool IN6_ARE_ADDR_EQUAL(const struct in6_addr *, +// const struct in6_addr *); + +// IN6_ARE_PREFIXEDADDR_EQUAL (not defined in RFCs) +// Compares if prefixed parts of IPv6 addresses are equal. +// +// uint32_t IN6_MASK_FROM_PREFIX(int, int); +// bool IN6_ARE_PREFIXEDADDR_EQUAL(const struct in6_addr *, +// const struct in6_addr *, +// int); + +// Options for use with [gs]etsockopt at the IP level. +// +// Note: Some of the IP_ namespace has conflict with and +// and is exposed through . (It also requires exposing +// options not implemented). The options with potential +// for conflicts use #ifndef guards. + +// IP_PKTINFO and IP_RECVPKTINFO have same value. Size of argument passed in +// is used to differentiate b/w the two. + +// Different preferences that can be requested from IPSEC protocols. +// This can be used with the setsockopt() call to set per socket security +// options. When the application uses per-socket API, we will reflect +// the request on both outbound and inbound packets. + +type Ipsec_req_t = Ipsec_req /* in.h:957:3 */ + +// MCAST_* options are protocol-independent. The actual definitions +// are with the v6 options below; this comment is here to note the +// namespace usage. +// +// #define MCAST_JOIN_GROUP 0x29 +// #define MCAST_LEAVE_GROUP 0x2a +// #define MCAST_BLOCK_SOURCE 0x2b +// #define MCAST_UNBLOCK_SOURCE 0x2c +// #define MCAST_JOIN_SOURCE_GROUP 0x2d +// #define MCAST_LEAVE_SOURCE_GROUP 0x2e + +// SunOS private (potentially not portable) IP_ option names +// can be reused 0x44 + +// Option values and names (when !_XPG5) shared with + +// The following option values are reserved by +// +// T_IP_OPTIONS 0x107 - IP per-packet options +// T_IP_TOS 0x108 - IP per packet type of service + +// Default value constants for multicast attributes controlled by +// IP*_MULTICAST_LOOP and IP*_MULTICAST_{TTL,HOPS} options. + +// Argument structure for IP_ADD_MEMBERSHIP and IP_DROP_MEMBERSHIP. +type Ip_mreq = struct { + Fimr_multiaddr struct { + FS_un struct { + F__ccgo_pad1 [0]uint32 + FS_un_b struct { + Fs_b1 uint8 + Fs_b2 uint8 + Fs_b3 uint8 + Fs_b4 uint8 + } + } + } + Fimr_interface struct { + FS_un struct { + F__ccgo_pad1 [0]uint32 + FS_un_b struct { + Fs_b1 uint8 + Fs_b2 uint8 + Fs_b3 uint8 + Fs_b4 uint8 + } + } + } +} /* in.h:1015:1 */ + +// Argument structure for IP_BLOCK_SOURCE, IP_UNBLOCK_SOURCE, +// IP_ADD_SOURCE_MEMBERSHIP, and IP_DROP_SOURCE_MEMBERSHIP. +type Ip_mreq_source = struct { + Fimr_multiaddr struct { + FS_un struct { + F__ccgo_pad1 [0]uint32 + FS_un_b struct { + Fs_b1 uint8 + Fs_b2 uint8 + Fs_b3 uint8 + Fs_b4 uint8 + } + } + } + Fimr_sourceaddr struct { + FS_un struct { + F__ccgo_pad1 [0]uint32 + FS_un_b struct { + Fs_b1 uint8 + Fs_b2 uint8 + Fs_b3 uint8 + Fs_b4 uint8 + } + } + } + Fimr_interface struct { + FS_un struct { + F__ccgo_pad1 [0]uint32 + FS_un_b struct { + Fs_b1 uint8 + Fs_b2 uint8 + Fs_b3 uint8 + Fs_b4 uint8 + } + } + } +} /* in.h:1024:1 */ + +// Argument structure for IPV6_JOIN_GROUP and IPV6_LEAVE_GROUP on +// IPv6 addresses. +type Ipv6_mreq = struct { + Fipv6mr_multiaddr struct { + F_S6_un struct { + F__ccgo_pad1 [0]uint32 + F_S6_u8 [16]uint8 + } + } + Fipv6mr_interface uint32 +} /* in.h:1034:1 */ + +// Use #pragma pack() construct to force 32-bit alignment on amd64. +// This is needed to keep the structure size and offsets consistent +// between a 32-bit app and the 64-bit amd64 kernel in structures +// where 64-bit alignment would create gaps (in this case, structures +// which have a uint32_t followed by a struct sockaddr_storage). + +// Argument structure for MCAST_JOIN_GROUP and MCAST_LEAVE_GROUP. +type Group_req = struct { + Fgr_interface uint32 + F__ccgo_pad1 [4]byte + Fgr_group struct { + Fss_family uint16 + F_ss_pad1 [6]int8 + F_ss_align float64 + F_ss_pad2 [240]int8 + } +} /* in.h:1053:1 */ + +// Argument structure for MCAST_BLOCK_SOURCE, MCAST_UNBLOCK_SOURCE, +// MCAST_JOIN_SOURCE_GROUP, MCAST_LEAVE_SOURCE_GROUP. +type Group_source_req = struct { + Fgsr_interface uint32 + F__ccgo_pad1 [4]byte + Fgsr_group struct { + Fss_family uint16 + F_ss_pad1 [6]int8 + F_ss_align float64 + F_ss_pad2 [240]int8 + } + Fgsr_source struct { + Fss_family uint16 + F_ss_pad1 [6]int8 + F_ss_align float64 + F_ss_pad2 [240]int8 + } +} /* in.h:1062:1 */ + +// Argument for SIOC[GS]MSFILTER ioctls +type Group_filter = struct { + Fgf_interface uint32 + F__ccgo_pad1 [4]byte + Fgf_group struct { + Fss_family uint16 + F_ss_pad1 [6]int8 + F_ss_align float64 + F_ss_pad2 [240]int8 + } + Fgf_fmode uint32 + Fgf_numsrc uint32 + Fgf_slist [1]struct { + Fss_family uint16 + F_ss_pad1 [6]int8 + F_ss_align float64 + F_ss_pad2 [240]int8 + } +} /* in.h:1071:1 */ + +// Argument for SIOC[GS]IPMSFILTER ioctls (IPv4-specific) +type Ip_msfilter = struct { + Fimsf_multiaddr struct { + FS_un struct { + F__ccgo_pad1 [0]uint32 + FS_un_b struct { + Fs_b1 uint8 + Fs_b2 uint8 + Fs_b3 uint8 + Fs_b4 uint8 + } + } + } + Fimsf_interface struct { + FS_un struct { + F__ccgo_pad1 [0]uint32 + FS_un_b struct { + Fs_b1 uint8 + Fs_b2 uint8 + Fs_b3 uint8 + Fs_b4 uint8 + } + } + } + Fimsf_fmode uint32 + Fimsf_numsrc uint32 + Fimsf_slist [1]struct { + FS_un struct { + F__ccgo_pad1 [0]uint32 + FS_un_b struct { + Fs_b1 uint8 + Fs_b2 uint8 + Fs_b3 uint8 + Fs_b4 uint8 + } + } + } +} /* in.h:1090:1 */ + +// Definitions needed for [gs]etsourcefilter(), [gs]etipv4sourcefilter() + +// Argument struct for IP_PKTINFO option +type In_pktinfo = struct { + Fipi_ifindex uint32 + Fipi_spec_dst struct { + FS_un struct { + F__ccgo_pad1 [0]uint32 + FS_un_b struct { + Fs_b1 uint8 + Fs_b2 uint8 + Fs_b3 uint8 + Fs_b4 uint8 + } + } + } + Fipi_addr struct { + FS_un struct { + F__ccgo_pad1 [0]uint32 + FS_un_b struct { + Fs_b1 uint8 + Fs_b2 uint8 + Fs_b3 uint8 + Fs_b4 uint8 + } + } + } +} /* in.h:1127:9 */ + +// Definitions needed for [gs]etsourcefilter(), [gs]etipv4sourcefilter() + +// Argument struct for IP_PKTINFO option +type In_pktinfo_t = In_pktinfo /* in.h:1131:3 */ + +// Argument struct for IPV6_PKTINFO option +type In6_pktinfo = struct { + Fipi6_addr struct { + F_S6_un struct { + F__ccgo_pad1 [0]uint32 + F_S6_u8 [16]uint8 + } + } + Fipi6_ifindex uint32 +} /* in.h:1136:1 */ + +// Argument struct for IPV6_MTUINFO option +type Ip6_mtuinfo = struct { + Fip6m_addr struct { + Fsin6_family uint16 + Fsin6_port uint16 + Fsin6_flowinfo uint32 + Fsin6_addr struct { + F_S6_un struct { + F__ccgo_pad1 [0]uint32 + F_S6_u8 [16]uint8 + } + } + Fsin6_scope_id uint32 + F__sin6_src_id uint32 + } + Fip6m_mtu uint32 +} /* in.h:1144:1 */ + +// Argument structure for IP_ADD_PROXY_ADDR. +// Note that this is an unstable, experimental interface. It may change +// later. Don't use it unless you know what it is. +type In_prefix_t = struct { + Fin_prefix_addr In_addr + Fin_prefix_len uint32 +} /* in.h:1183:3 */ + +var _ int8 /* gen.c:2:13: */ diff --git a/vendor/modernc.org/libc/netinet/in/in_linux_loong64.go b/vendor/modernc.org/libc/netinet/in/in_linux_loong64.go new file mode 100644 index 000000000..d91dbd360 --- /dev/null +++ b/vendor/modernc.org/libc/netinet/in/in_linux_loong64.go @@ -0,0 +1,2976 @@ +// Code generated by 'ccgo netinet/in/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o netinet/in/in_linux_loong64.go -pkgname in', DO NOT EDIT. + +package in + +import ( + "math" + "reflect" + "sync/atomic" + "unsafe" +) + +var _ = math.Pi +var _ reflect.Kind +var _ atomic.Value +var _ unsafe.Pointer + +const ( + AF_ALG = 38 // socket.h:134:1: + AF_APPLETALK = 5 // socket.h:100:1: + AF_ASH = 18 // socket.h:114:1: + AF_ATMPVC = 8 // socket.h:103:1: + AF_ATMSVC = 20 // socket.h:116:1: + AF_AX25 = 3 // socket.h:98:1: + AF_BLUETOOTH = 31 // socket.h:127:1: + AF_BRIDGE = 7 // socket.h:102:1: + AF_CAIF = 37 // socket.h:133:1: + AF_CAN = 29 // socket.h:125:1: + AF_DECnet = 12 // socket.h:107:1: + AF_ECONET = 19 // socket.h:115:1: + AF_FILE = 1 // socket.h:96:1: + AF_IB = 27 // socket.h:123:1: + AF_IEEE802154 = 36 // socket.h:132:1: + AF_INET = 2 // socket.h:97:1: + AF_INET6 = 10 // socket.h:105:1: + AF_IPX = 4 // socket.h:99:1: + AF_IRDA = 23 // socket.h:119:1: + AF_ISDN = 34 // socket.h:130:1: + AF_IUCV = 32 // socket.h:128:1: + AF_KCM = 41 // socket.h:137:1: + AF_KEY = 15 // socket.h:110:1: + AF_LLC = 26 // socket.h:122:1: + AF_LOCAL = 1 // socket.h:94:1: + AF_MAX = 46 // socket.h:142:1: + AF_MCTP = 45 // socket.h:141:1: + AF_MPLS = 28 // socket.h:124:1: + AF_NETBEUI = 13 // socket.h:108:1: + AF_NETLINK = 16 // socket.h:111:1: + AF_NETROM = 6 // socket.h:101:1: + AF_NFC = 39 // socket.h:135:1: + AF_PACKET = 17 // socket.h:113:1: + AF_PHONET = 35 // socket.h:131:1: + AF_PPPOX = 24 // socket.h:120:1: + AF_QIPCRTR = 42 // socket.h:138:1: + AF_RDS = 21 // socket.h:117:1: + AF_ROSE = 11 // socket.h:106:1: + AF_ROUTE = 16 // socket.h:112:1: + AF_RXRPC = 33 // socket.h:129:1: + AF_SECURITY = 14 // socket.h:109:1: + AF_SMC = 43 // socket.h:139:1: + AF_SNA = 22 // socket.h:118:1: + AF_TIPC = 30 // socket.h:126:1: + AF_UNIX = 1 // socket.h:95:1: + AF_UNSPEC = 0 // socket.h:93:1: + AF_VSOCK = 40 // socket.h:136:1: + AF_WANPIPE = 25 // socket.h:121:1: + AF_X25 = 9 // socket.h:104:1: + AF_XDP = 44 // socket.h:140:1: + BIG_ENDIAN = 4321 // endian.h:28:1: + BYTE_ORDER = 1234 // endian.h:30:1: + FD_SETSIZE = 1024 // select.h:73:1: + FIOGETOWN = 0x8903 // sockios.h:8:1: + FIOSETOWN = 0x8901 // sockios.h:6:1: + INET6_ADDRSTRLEN = 46 // in.h:243:1: + INET_ADDRSTRLEN = 16 // in.h:242:1: + IN_CLASSA_HOST = 16777215 // in.h:175:1: + IN_CLASSA_MAX = 128 // in.h:176:1: + IN_CLASSA_NET = 0xff000000 // in.h:173:1: + IN_CLASSA_NSHIFT = 24 // in.h:174:1: + IN_CLASSB_HOST = 65535 // in.h:181:1: + IN_CLASSB_MAX = 65536 // in.h:182:1: + IN_CLASSB_NET = 0xffff0000 // in.h:179:1: + IN_CLASSB_NSHIFT = 16 // in.h:180:1: + IN_CLASSC_HOST = 255 // in.h:187:1: + IN_CLASSC_NET = 0xffffff00 // in.h:185:1: + IN_CLASSC_NSHIFT = 8 // in.h:186:1: + IN_LOOPBACKNET = 127 // in.h:206:1: + IPV6_2292DSTOPTS = 4 // in.h:166:1: + IPV6_2292HOPLIMIT = 8 // in.h:170:1: + IPV6_2292HOPOPTS = 3 // in.h:165:1: + IPV6_2292PKTINFO = 2 // in.h:164:1: + IPV6_2292PKTOPTIONS = 6 // in.h:168:1: + IPV6_2292RTHDR = 5 // in.h:167:1: + IPV6_ADDRFORM = 1 // in.h:163:1: + IPV6_ADDR_PREFERENCES = 72 // in.h:219:1: + IPV6_ADD_MEMBERSHIP = 20 // in.h:233:1: + IPV6_AUTHHDR = 10 // in.h:175:1: + IPV6_AUTOFLOWLABEL = 70 // in.h:216:1: + IPV6_CHECKSUM = 7 // in.h:169:1: + IPV6_DONTFRAG = 62 // in.h:210:1: + IPV6_DROP_MEMBERSHIP = 21 // in.h:234:1: + IPV6_DSTOPTS = 59 // in.h:207:1: + IPV6_FREEBIND = 78 // in.h:229:1: + IPV6_HDRINCL = 36 // in.h:194:1: + IPV6_HOPLIMIT = 52 // in.h:200:1: + IPV6_HOPOPTS = 54 // in.h:202:1: + IPV6_IPSEC_POLICY = 34 // in.h:192:1: + IPV6_JOIN_ANYCAST = 27 // in.h:187:1: + IPV6_JOIN_GROUP = 20 // in.h:180:1: + IPV6_LEAVE_ANYCAST = 28 // in.h:188:1: + IPV6_LEAVE_GROUP = 21 // in.h:181:1: + IPV6_MINHOPCOUNT = 73 // in.h:222:1: + IPV6_MTU = 24 // in.h:184:1: + IPV6_MTU_DISCOVER = 23 // in.h:183:1: + IPV6_MULTICAST_ALL = 29 // in.h:189:1: + IPV6_MULTICAST_HOPS = 18 // in.h:178:1: + IPV6_MULTICAST_IF = 17 // in.h:177:1: + IPV6_MULTICAST_LOOP = 19 // in.h:179:1: + IPV6_NEXTHOP = 9 // in.h:174:1: + IPV6_ORIGDSTADDR = 74 // in.h:224:1: + IPV6_PATHMTU = 61 // in.h:209:1: + IPV6_PKTINFO = 50 // in.h:198:1: + IPV6_PMTUDISC_DO = 2 // in.h:242:1: + IPV6_PMTUDISC_DONT = 0 // in.h:240:1: + IPV6_PMTUDISC_INTERFACE = 4 // in.h:244:1: + IPV6_PMTUDISC_OMIT = 5 // in.h:245:1: + IPV6_PMTUDISC_PROBE = 3 // in.h:243:1: + IPV6_PMTUDISC_WANT = 1 // in.h:241:1: + IPV6_RECVDSTOPTS = 58 // in.h:206:1: + IPV6_RECVERR = 25 // in.h:185:1: + IPV6_RECVERR_RFC4884 = 31 // in.h:191:1: + IPV6_RECVFRAGSIZE = 77 // in.h:228:1: + IPV6_RECVHOPLIMIT = 51 // in.h:199:1: + IPV6_RECVHOPOPTS = 53 // in.h:201:1: + IPV6_RECVORIGDSTADDR = 74 // in.h:225:1: + IPV6_RECVPATHMTU = 60 // in.h:208:1: + IPV6_RECVPKTINFO = 49 // in.h:197:1: + IPV6_RECVRTHDR = 56 // in.h:204:1: + IPV6_RECVTCLASS = 66 // in.h:213:1: + IPV6_ROUTER_ALERT = 22 // in.h:182:1: + IPV6_ROUTER_ALERT_ISOLATE = 30 // in.h:190:1: + IPV6_RTHDR = 57 // in.h:205:1: + IPV6_RTHDRDSTOPTS = 55 // in.h:203:1: + IPV6_RTHDR_LOOSE = 0 // in.h:252:1: + IPV6_RTHDR_STRICT = 1 // in.h:253:1: + IPV6_RTHDR_TYPE_0 = 0 // in.h:255:1: + IPV6_RXDSTOPTS = 59 // in.h:237:1: + IPV6_RXHOPOPTS = 54 // in.h:236:1: + IPV6_TCLASS = 67 // in.h:214:1: + IPV6_TRANSPARENT = 75 // in.h:226:1: + IPV6_UNICAST_HOPS = 16 // in.h:176:1: + IPV6_UNICAST_IF = 76 // in.h:227:1: + IPV6_V6ONLY = 26 // in.h:186:1: + IPV6_XFRM_POLICY = 35 // in.h:193:1: + IP_ADD_MEMBERSHIP = 35 // in.h:122:1: + IP_ADD_SOURCE_MEMBERSHIP = 39 // in.h:126:1: + IP_BIND_ADDRESS_NO_PORT = 24 // in.h:103:1: + IP_BLOCK_SOURCE = 38 // in.h:125:1: + IP_CHECKSUM = 23 // in.h:102:1: + IP_DEFAULT_MULTICAST_LOOP = 1 // in.h:138:1: + IP_DEFAULT_MULTICAST_TTL = 1 // in.h:137:1: + IP_DROP_MEMBERSHIP = 36 // in.h:123:1: + IP_DROP_SOURCE_MEMBERSHIP = 40 // in.h:127:1: + IP_FREEBIND = 15 // in.h:89:1: + IP_HDRINCL = 3 // in.h:48:1: + IP_IPSEC_POLICY = 16 // in.h:90:1: + IP_LOCAL_PORT_RANGE = 51 // in.h:131:1: + IP_MAX_MEMBERSHIPS = 20 // in.h:139:1: + IP_MINTTL = 21 // in.h:100:1: + IP_MSFILTER = 41 // in.h:128:1: + IP_MTU = 14 // in.h:88:1: + IP_MTU_DISCOVER = 10 // in.h:84:1: + IP_MULTICAST_ALL = 49 // in.h:129:1: + IP_MULTICAST_IF = 32 // in.h:119:1: + IP_MULTICAST_LOOP = 34 // in.h:121:1: + IP_MULTICAST_TTL = 33 // in.h:120:1: + IP_NODEFRAG = 22 // in.h:101:1: + IP_OPTIONS = 4 // in.h:47:1: + IP_ORIGDSTADDR = 20 // in.h:97:1: + IP_PASSSEC = 18 // in.h:92:1: + IP_PKTINFO = 8 // in.h:81:1: + IP_PKTOPTIONS = 9 // in.h:82:1: + IP_PMTUDISC = 10 // in.h:83:1: + IP_PMTUDISC_DO = 2 // in.h:110:1: + IP_PMTUDISC_DONT = 0 // in.h:108:1: + IP_PMTUDISC_INTERFACE = 4 // in.h:115:1: + IP_PMTUDISC_OMIT = 5 // in.h:117:1: + IP_PMTUDISC_PROBE = 3 // in.h:111:1: + IP_PMTUDISC_WANT = 1 // in.h:109:1: + IP_PROTOCOL = 52 // in.h:132:1: + IP_RECVERR = 11 // in.h:85:1: + IP_RECVERR_RFC4884 = 26 // in.h:105:1: + IP_RECVFRAGSIZE = 25 // in.h:104:1: + IP_RECVOPTS = 6 // in.h:51:1: + IP_RECVORIGDSTADDR = 20 // in.h:98:1: + IP_RECVRETOPTS = 7 // in.h:53:1: + IP_RECVTOS = 13 // in.h:87:1: + IP_RECVTTL = 12 // in.h:86:1: + IP_RETOPTS = 7 // in.h:54:1: + IP_ROUTER_ALERT = 5 // in.h:80:1: + IP_TOS = 1 // in.h:49:1: + IP_TRANSPARENT = 19 // in.h:93:1: + IP_TTL = 2 // in.h:50:1: + IP_UNBLOCK_SOURCE = 37 // in.h:124:1: + IP_UNICAST_IF = 50 // in.h:130:1: + IP_XFRM_POLICY = 17 // in.h:91:1: + LITTLE_ENDIAN = 1234 // endian.h:27:1: + MCAST_BLOCK_SOURCE = 43 // in.h:67:1: + MCAST_EXCLUDE = 0 // in.h:76:1: + MCAST_INCLUDE = 1 // in.h:77:1: + MCAST_JOIN_GROUP = 42 // in.h:66:1: + MCAST_JOIN_SOURCE_GROUP = 46 // in.h:70:1: + MCAST_LEAVE_GROUP = 45 // in.h:69:1: + MCAST_LEAVE_SOURCE_GROUP = 47 // in.h:71:1: + MCAST_MSFILTER = 48 // in.h:72:1: + MCAST_UNBLOCK_SOURCE = 44 // in.h:68:1: + PDP_ENDIAN = 3412 // endian.h:29:1: + PF_ALG = 38 // socket.h:82:1: + PF_APPLETALK = 5 // socket.h:48:1: + PF_ASH = 18 // socket.h:62:1: + PF_ATMPVC = 8 // socket.h:51:1: + PF_ATMSVC = 20 // socket.h:64:1: + PF_AX25 = 3 // socket.h:46:1: + PF_BLUETOOTH = 31 // socket.h:75:1: + PF_BRIDGE = 7 // socket.h:50:1: + PF_CAIF = 37 // socket.h:81:1: + PF_CAN = 29 // socket.h:73:1: + PF_DECnet = 12 // socket.h:55:1: + PF_ECONET = 19 // socket.h:63:1: + PF_FILE = 1 // socket.h:44:1: + PF_IB = 27 // socket.h:71:1: + PF_IEEE802154 = 36 // socket.h:80:1: + PF_INET = 2 // socket.h:45:1: + PF_INET6 = 10 // socket.h:53:1: + PF_IPX = 4 // socket.h:47:1: + PF_IRDA = 23 // socket.h:67:1: + PF_ISDN = 34 // socket.h:78:1: + PF_IUCV = 32 // socket.h:76:1: + PF_KCM = 41 // socket.h:85:1: + PF_KEY = 15 // socket.h:58:1: + PF_LLC = 26 // socket.h:70:1: + PF_LOCAL = 1 // socket.h:42:1: + PF_MAX = 46 // socket.h:90:1: + PF_MCTP = 45 // socket.h:89:1: + PF_MPLS = 28 // socket.h:72:1: + PF_NETBEUI = 13 // socket.h:56:1: + PF_NETLINK = 16 // socket.h:59:1: + PF_NETROM = 6 // socket.h:49:1: + PF_NFC = 39 // socket.h:83:1: + PF_PACKET = 17 // socket.h:61:1: + PF_PHONET = 35 // socket.h:79:1: + PF_PPPOX = 24 // socket.h:68:1: + PF_QIPCRTR = 42 // socket.h:86:1: + PF_RDS = 21 // socket.h:65:1: + PF_ROSE = 11 // socket.h:54:1: + PF_ROUTE = 16 // socket.h:60:1: + PF_RXRPC = 33 // socket.h:77:1: + PF_SECURITY = 14 // socket.h:57:1: + PF_SMC = 43 // socket.h:87:1: + PF_SNA = 22 // socket.h:66:1: + PF_TIPC = 30 // socket.h:74:1: + PF_UNIX = 1 // socket.h:43:1: + PF_UNSPEC = 0 // socket.h:41:1: + PF_VSOCK = 40 // socket.h:84:1: + PF_WANPIPE = 25 // socket.h:69:1: + PF_X25 = 9 // socket.h:52:1: + PF_XDP = 44 // socket.h:88:1: + SCM_TIMESTAMP = 29 // socket.h:156:1: + SCM_TIMESTAMPING = 37 // socket.h:158:1: + SCM_TIMESTAMPING_OPT_STATS = 54 // socket.h:90:1: + SCM_TIMESTAMPING_PKTINFO = 58 // socket.h:98:1: + SCM_TIMESTAMPNS = 35 // socket.h:157:1: + SCM_TXTIME = 61 // socket.h:105:1: + SCM_WIFI_STATUS = 41 // socket.h:64:1: + SIOCATMARK = 0x8905 // sockios.h:10:1: + SIOCGPGRP = 0x8904 // sockios.h:9:1: + SIOCGSTAMPNS_OLD = 0x8907 // sockios.h:12:1: + SIOCGSTAMP_OLD = 0x8906 // sockios.h:11:1: + SIOCSPGRP = 0x8902 // sockios.h:7:1: + SOL_AAL = 265 // socket.h:153:1: + SOL_ALG = 279 // socket.h:167:1: + SOL_ATM = 264 // socket.h:152:1: + SOL_BLUETOOTH = 274 // socket.h:162:1: + SOL_CAIF = 278 // socket.h:166:1: + SOL_DCCP = 269 // socket.h:157:1: + SOL_DECNET = 261 // socket.h:149:1: + SOL_ICMPV6 = 58 // in.h:249:1: + SOL_IP = 0 // in.h:135:1: + SOL_IPV6 = 41 // in.h:248:1: + SOL_IRDA = 266 // socket.h:154:1: + SOL_IUCV = 277 // socket.h:165:1: + SOL_KCM = 281 // socket.h:169:1: + SOL_LLC = 268 // socket.h:156:1: + SOL_MCTP = 285 // socket.h:173:1: + SOL_MPTCP = 284 // socket.h:172:1: + SOL_NETBEUI = 267 // socket.h:155:1: + SOL_NETLINK = 270 // socket.h:158:1: + SOL_NFC = 280 // socket.h:168:1: + SOL_PACKET = 263 // socket.h:151:1: + SOL_PNPIPE = 275 // socket.h:163:1: + SOL_PPPOL2TP = 273 // socket.h:161:1: + SOL_RAW = 255 // socket.h:148:1: + SOL_RDS = 276 // socket.h:164:1: + SOL_RXRPC = 272 // socket.h:160:1: + SOL_SMC = 286 // socket.h:174:1: + SOL_SOCKET = 1 // socket.h:9:1: + SOL_TIPC = 271 // socket.h:159:1: + SOL_TLS = 282 // socket.h:170:1: + SOL_X25 = 262 // socket.h:150:1: + SOL_XDP = 283 // socket.h:171:1: + SOMAXCONN = 4096 // socket.h:177:1: + SO_ACCEPTCONN = 30 // socket.h:51:1: + SO_ATTACH_BPF = 50 // socket.h:82:1: + SO_ATTACH_FILTER = 26 // socket.h:45:1: + SO_ATTACH_REUSEPORT_CBPF = 51 // socket.h:85:1: + SO_ATTACH_REUSEPORT_EBPF = 52 // socket.h:86:1: + SO_BINDTODEVICE = 25 // socket.h:42:1: + SO_BINDTOIFINDEX = 62 // socket.h:107:1: + SO_BPF_EXTENSIONS = 48 // socket.h:78:1: + SO_BROADCAST = 6 // socket.h:16:1: + SO_BSDCOMPAT = 14 // socket.h:26:1: + SO_BUF_LOCK = 72 // socket.h:127:1: + SO_BUSY_POLL = 46 // socket.h:74:1: + SO_BUSY_POLL_BUDGET = 70 // socket.h:123:1: + SO_CNX_ADVICE = 53 // socket.h:88:1: + SO_COOKIE = 57 // socket.h:96:1: + SO_DEBUG = 1 // socket.h:11:1: + SO_DETACH_BPF = 27 // socket.h:83:1: + SO_DETACH_FILTER = 27 // socket.h:46:1: + SO_DETACH_REUSEPORT_BPF = 68 // socket.h:120:1: + SO_DOMAIN = 39 // socket.h:59:1: + SO_DONTROUTE = 5 // socket.h:15:1: + SO_ERROR = 4 // socket.h:14:1: + SO_GET_FILTER = 26 // socket.h:47:1: + SO_INCOMING_CPU = 49 // socket.h:80:1: + SO_INCOMING_NAPI_ID = 56 // socket.h:94:1: + SO_KEEPALIVE = 9 // socket.h:21:1: + SO_LINGER = 13 // socket.h:25:1: + SO_LOCK_FILTER = 44 // socket.h:70:1: + SO_MARK = 36 // socket.h:56:1: + SO_MAX_PACING_RATE = 47 // socket.h:76:1: + SO_MEMINFO = 55 // socket.h:92:1: + SO_NETNS_COOKIE = 71 // socket.h:125:1: + SO_NOFCS = 43 // socket.h:68:1: + SO_NO_CHECK = 11 // socket.h:23:1: + SO_OOBINLINE = 10 // socket.h:22:1: + SO_PASSCRED = 16 // socket.h:29:1: + SO_PASSPIDFD = 76 // socket.h:135:1: + SO_PASSSEC = 34 // socket.h:54:1: + SO_PEEK_OFF = 42 // socket.h:65:1: + SO_PEERCRED = 17 // socket.h:30:1: + SO_PEERGROUPS = 59 // socket.h:100:1: + SO_PEERNAME = 28 // socket.h:49:1: + SO_PEERPIDFD = 77 // socket.h:136:1: + SO_PEERSEC = 31 // socket.h:53:1: + SO_PREFER_BUSY_POLL = 69 // socket.h:122:1: + SO_PRIORITY = 12 // socket.h:24:1: + SO_PROTOCOL = 38 // socket.h:58:1: + SO_RCVBUF = 8 // socket.h:18:1: + SO_RCVBUFFORCE = 33 // socket.h:20:1: + SO_RCVLOWAT = 18 // socket.h:31:1: + SO_RCVMARK = 75 // socket.h:133:1: + SO_RCVTIMEO = 20 // socket.h:145:1: + SO_RCVTIMEO_NEW = 66 // socket.h:117:1: + SO_RCVTIMEO_OLD = 20 // socket.h:33:1: + SO_RESERVE_MEM = 73 // socket.h:129:1: + SO_REUSEADDR = 2 // socket.h:12:1: + SO_REUSEPORT = 15 // socket.h:27:1: + SO_RXQ_OVFL = 40 // socket.h:61:1: + SO_SECURITY_AUTHENTICATION = 22 // socket.h:38:1: + SO_SECURITY_ENCRYPTION_NETWORK = 24 // socket.h:40:1: + SO_SECURITY_ENCRYPTION_TRANSPORT = 23 // socket.h:39:1: + SO_SELECT_ERR_QUEUE = 45 // socket.h:72:1: + SO_SNDBUF = 7 // socket.h:17:1: + SO_SNDBUFFORCE = 32 // socket.h:19:1: + SO_SNDLOWAT = 19 // socket.h:32:1: + SO_SNDTIMEO = 21 // socket.h:146:1: + SO_SNDTIMEO_NEW = 67 // socket.h:118:1: + SO_SNDTIMEO_OLD = 21 // socket.h:34:1: + SO_TIMESTAMP = 29 // socket.h:141:1: + SO_TIMESTAMPING = 37 // socket.h:143:1: + SO_TIMESTAMPING_NEW = 65 // socket.h:115:1: + SO_TIMESTAMPING_OLD = 37 // socket.h:111:1: + SO_TIMESTAMPNS = 35 // socket.h:142:1: + SO_TIMESTAMPNS_NEW = 64 // socket.h:114:1: + SO_TIMESTAMPNS_OLD = 35 // socket.h:110:1: + SO_TIMESTAMP_NEW = 63 // socket.h:113:1: + SO_TIMESTAMP_OLD = 29 // socket.h:109:1: + SO_TXREHASH = 74 // socket.h:131:1: + SO_TXTIME = 61 // socket.h:104:1: + SO_TYPE = 3 // socket.h:13:1: + SO_WIFI_STATUS = 41 // socket.h:63:1: + SO_ZEROCOPY = 60 // socket.h:102:1: + X_ABILP64 = 3 // :377:1: + X_ATFILE_SOURCE = 1 // features.h:353:1: + X_BITS_ATOMIC_WIDE_COUNTER_H = 0 // atomic_wide_counter.h:20:1: + X_BITS_BYTESWAP_H = 1 // byteswap.h:24:1: + X_BITS_ENDIANNESS_H = 1 // endianness.h:2:1: + X_BITS_ENDIAN_H = 1 // endian.h:20:1: + X_BITS_PTHREADTYPES_ARCH_H = 1 // pthreadtypes-arch.h:21:1: + X_BITS_PTHREADTYPES_COMMON_H = 1 // pthreadtypes.h:20:1: + X_BITS_SOCKADDR_H = 1 // sockaddr.h:24:1: + X_BITS_STDINT_INTN_H = 1 // stdint-intn.h:20:1: + X_BITS_STDINT_UINTN_H = 1 // stdint-uintn.h:20:1: + X_BITS_TIME64_H = 1 // time64.h:24:1: + X_BITS_TYPESIZES_H = 1 // typesizes.h:24:1: + X_BITS_TYPES_H = 1 // types.h:24:1: + X_BITS_UINTN_IDENTITY_H = 1 // uintn-identity.h:24:1: + X_BSD_SIZE_T_ = 0 // stddef.h:193:1: + X_BSD_SIZE_T_DEFINED_ = 0 // stddef.h:196:1: + X_DEFAULT_SOURCE = 1 // features.h:238:1: + X_ENDIAN_H = 1 // endian.h:19:1: + X_FEATURES_H = 1 // features.h:19:1: + X_FILE_OFFSET_BITS = 64 // :25:1: + X_GCC_SIZE_T = 0 // stddef.h:200:1: + X_LINUX_POSIX_TYPES_H = 0 // posix_types.h:3:1: + X_LINUX_STDDEF_H = 0 // stddef.h:3:1: + X_LOONGARCH_ARCH = "loongarch64" // :214:1: + X_LOONGARCH_ARCH_LOONGARCH64 = 1 // :340:1: + X_LOONGARCH_FPSET = 32 // :265:1: + X_LOONGARCH_SIM = 3 // :233:1: + X_LOONGARCH_SPFPSET = 32 // :88:1: + X_LOONGARCH_SZINT = 32 // :230:1: + X_LOONGARCH_SZLONG = 64 // :388:1: + X_LOONGARCH_SZPTR = 64 // :200:1: + X_LOONGARCH_TUNE = "la464" // :245:1: + X_LOONGARCH_TUNE_LA464 = 1 // :63:1: + X_LP64 = 1 // :372:1: + X_NETINET_IN_H = 1 // in.h:19:1: + X_POSIX_C_SOURCE = 200809 // features.h:292:1: + X_POSIX_SOURCE = 1 // features.h:290:1: + X_SIZET_ = 0 // stddef.h:201:1: + X_SIZE_T = 0 // stddef.h:187:1: + X_SIZE_T_ = 0 // stddef.h:192:1: + X_SIZE_T_DECLARED = 0 // stddef.h:197:1: + X_SIZE_T_DEFINED = 0 // stddef.h:195:1: + X_SIZE_T_DEFINED_ = 0 // stddef.h:194:1: + X_SS_SIZE = 128 // sockaddr.h:40:1: + X_STDC_PREDEF_H = 1 // :223:1: + X_STRUCT_TIMESPEC = 1 // struct_timespec.h:3:1: + X_SYS_CDEFS_H = 1 // cdefs.h:20:1: + X_SYS_SELECT_H = 1 // select.h:22:1: + X_SYS_SIZE_T_H = 0 // stddef.h:188:1: + X_SYS_SOCKET_H = 1 // socket.h:20:1: + X_SYS_TYPES_H = 1 // types.h:23:1: + X_THREAD_MUTEX_INTERNAL_H = 1 // struct_mutex.h:20:1: + X_THREAD_SHARED_TYPES_H = 1 // thread-shared-types.h:20:1: + X_T_SIZE = 0 // stddef.h:190:1: + X_T_SIZE_ = 0 // stddef.h:189:1: + Linux = 1 // :308:1: + Unix = 1 // :247:1: +) + +// Bits in the FLAGS argument to `send', `recv', et al. +const ( /* socket.h:205:1: */ + MSG_OOB = 1 // Process out-of-band data. + MSG_PEEK = 2 // Peek at incoming messages. + MSG_DONTROUTE = 4 // Don't use local routing. + MSG_CTRUNC = 8 // Control data lost before delivery. + MSG_PROXY = 16 // Supply or ask second address. + MSG_TRUNC = 32 + MSG_DONTWAIT = 64 // Nonblocking IO. + MSG_EOR = 128 // End of record. + MSG_WAITALL = 256 // Wait for a full request. + MSG_FIN = 512 + MSG_SYN = 1024 + MSG_CONFIRM = 2048 // Confirm path validity. + MSG_RST = 4096 + MSG_ERRQUEUE = 8192 // Fetch message from error queue. + MSG_NOSIGNAL = 16384 // Do not generate SIGPIPE. + MSG_MORE = 32768 // Sender will send more. + MSG_WAITFORONE = 65536 // Wait for at least one packet to return. + MSG_BATCH = 262144 // sendmmsg: more messages coming. + MSG_ZEROCOPY = 67108864 // Use user data in kernel path. + MSG_FASTOPEN = 536870912 // Send data in TCP SYN. + + MSG_CMSG_CLOEXEC = 1073741824 +) + +// Socket level message types. This must match the definitions in +// +// . +const ( /* socket.h:363:1: */ + SCM_RIGHTS = 1 +) + +// Get the architecture-dependent definition of enum __socket_type. +// Define enum __socket_type for generic Linux. +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Types of sockets. +const ( /* socket_type.h:24:1: */ + SOCK_STREAM = 1 // Sequenced, reliable, connection-based + // byte streams. + SOCK_DGRAM = 2 // Connectionless, unreliable datagrams + // of fixed maximum length. + SOCK_RAW = 3 // Raw protocol interface. + SOCK_RDM = 4 // Reliably-delivered messages. + SOCK_SEQPACKET = 5 // Sequenced, reliable, connection-based, + // datagrams of fixed maximum length. + SOCK_DCCP = 6 // Datagram Congestion Control Protocol. + SOCK_PACKET = 10 // Linux specific way of getting packets + // at the dev level. For writing rarp and + // other similar things on the user level. + + // Flags to be ORed into the type parameter of socket and socketpair and + // used for the flags parameter of paccept. + + SOCK_CLOEXEC = 524288 // Atomically set close-on-exec flag for the + // new descriptor(s). + SOCK_NONBLOCK = 2048 +) + +// If __USE_KERNEL_IPV6_DEFS is 1 then the user has included the kernel +// +// network headers first and we should use those ABI-identical definitions +// instead of our own, otherwise 0. +const ( /* in.h:105:1: */ + IPPROTO_HOPOPTS = 0 // IPv6 Hop-by-Hop options. + IPPROTO_ROUTING = 43 // IPv6 routing header. + IPPROTO_FRAGMENT = 44 // IPv6 fragmentation header. + IPPROTO_ICMPV6 = 58 // ICMPv6. + IPPROTO_NONE = 59 // IPv6 no next header. + IPPROTO_DSTOPTS = 60 // IPv6 destination options. + IPPROTO_MH = 135 +) + +// Standard well-known ports. +const ( /* in.h:128:1: */ + IPPORT_ECHO = 7 // Echo service. + IPPORT_DISCARD = 9 // Discard transmissions service. + IPPORT_SYSTAT = 11 // System status service. + IPPORT_DAYTIME = 13 // Time of day service. + IPPORT_NETSTAT = 15 // Network status service. + IPPORT_FTP = 21 // File Transfer Protocol. + IPPORT_TELNET = 23 // Telnet protocol. + IPPORT_SMTP = 25 // Simple Mail Transfer Protocol. + IPPORT_TIMESERVER = 37 // Timeserver service. + IPPORT_NAMESERVER = 42 // Domain Name Service. + IPPORT_WHOIS = 43 // Internet Whois service. + IPPORT_MTP = 57 + + IPPORT_TFTP = 69 // Trivial File Transfer Protocol. + IPPORT_RJE = 77 + IPPORT_FINGER = 79 // Finger service. + IPPORT_TTYLINK = 87 + IPPORT_SUPDUP = 95 // SUPDUP protocol. + + IPPORT_EXECSERVER = 512 // execd service. + IPPORT_LOGINSERVER = 513 // rlogind service. + IPPORT_CMDSERVER = 514 + IPPORT_EFSSERVER = 520 + + // UDP ports. + IPPORT_BIFFUDP = 512 + IPPORT_WHOSERVER = 513 + IPPORT_ROUTESERVER = 520 + + // Ports less than this value are reserved for privileged processes. + IPPORT_RESERVED = 1024 + + // Ports greater this value are reserved for (non-privileged) servers. + IPPORT_USERRESERVED = 5000 +) + +// Options for use with `getsockopt' and `setsockopt' at the IPv6 level. +// The first word in the comment at the right is the data type used; +// "bool" means a boolean value stored in an `int'. + +// Advanced API (RFC3542) (1). + +// Advanced API (RFC3542) (2). + +// RFC5014. + +// RFC5082. + +// Obsolete synonyms for the above. + +// IPV6_MTU_DISCOVER values. + +// Socket level values for IPv6. + +// Routing header options for IPv6. + +// Standard well-defined IP protocols. +const ( /* in.h:40:1: */ + IPPROTO_IP = 0 // Dummy protocol for TCP. + IPPROTO_ICMP = 1 // Internet Control Message Protocol. + IPPROTO_IGMP = 2 // Internet Group Management Protocol. + IPPROTO_IPIP = 4 // IPIP tunnels (older KA9Q tunnels use 94). + IPPROTO_TCP = 6 // Transmission Control Protocol. + IPPROTO_EGP = 8 // Exterior Gateway Protocol. + IPPROTO_PUP = 12 // PUP protocol. + IPPROTO_UDP = 17 // User Datagram Protocol. + IPPROTO_IDP = 22 // XNS IDP protocol. + IPPROTO_TP = 29 // SO Transport Protocol Class 4. + IPPROTO_DCCP = 33 // Datagram Congestion Control Protocol. + IPPROTO_IPV6 = 41 // IPv6 header. + IPPROTO_RSVP = 46 // Reservation Protocol. + IPPROTO_GRE = 47 // General Routing Encapsulation. + IPPROTO_ESP = 50 // encapsulating security payload. + IPPROTO_AH = 51 // authentication header. + IPPROTO_MTP = 92 // Multicast Transport Protocol. + IPPROTO_BEETPH = 94 // IP option pseudo header for BEET. + IPPROTO_ENCAP = 98 // Encapsulation Header. + IPPROTO_PIM = 103 // Protocol Independent Multicast. + IPPROTO_COMP = 108 // Compression Header Protocol. + IPPROTO_L2TP = 115 // Layer 2 Tunnelling Protocol. + IPPROTO_SCTP = 132 // Stream Control Transmission Protocol. + IPPROTO_UDPLITE = 136 // UDP-Lite protocol. + IPPROTO_MPLS = 137 // MPLS in IP. + IPPROTO_ETHERNET = 143 // Ethernet-within-IPv6 Encapsulation. + IPPROTO_RAW = 255 // Raw IP packets. + IPPROTO_MPTCP = 262 // Multipath TCP connection. + IPPROTO_MAX = 263 +) + +// The following constants should be used for the second parameter of +// +// `shutdown'. +const ( /* socket.h:41:1: */ + SHUT_RD = 0 // No more receptions. + SHUT_WR = 1 // No more transmissions. + SHUT_RDWR = 2 +) + +type Ptrdiff_t = int64 /* :3:26 */ + +type Size_t = uint64 /* :9:23 */ + +type Wchar_t = int32 /* :15:24 */ + +type X__int128_t = struct { + Flo int64 + Fhi int64 +} /* :21:43 */ // must match modernc.org/mathutil.Int128 +type X__uint128_t = struct { + Flo uint64 + Fhi uint64 +} /* :22:44 */ // must match modernc.org/mathutil.Int128 + +type X__builtin_va_list = uintptr /* :46:14 */ +type X__float128 = float64 /* :47:21 */ + +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// These are defined by the user (or the compiler) +// to specify the desired environment: +// +// __STRICT_ANSI__ ISO Standard C. +// _ISOC99_SOURCE Extensions to ISO C89 from ISO C99. +// _ISOC11_SOURCE Extensions to ISO C99 from ISO C11. +// _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X. +// __STDC_WANT_LIB_EXT2__ +// Extensions to ISO C99 from TR 27431-2:2010. +// __STDC_WANT_IEC_60559_BFP_EXT__ +// Extensions to ISO C11 from TS 18661-1:2014. +// __STDC_WANT_IEC_60559_FUNCS_EXT__ +// Extensions to ISO C11 from TS 18661-4:2015. +// __STDC_WANT_IEC_60559_TYPES_EXT__ +// Extensions to ISO C11 from TS 18661-3:2015. +// __STDC_WANT_IEC_60559_EXT__ +// ISO C2X interfaces defined only in Annex F. +// +// _POSIX_SOURCE IEEE Std 1003.1. +// _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2; +// if >=199309L, add IEEE Std 1003.1b-1993; +// if >=199506L, add IEEE Std 1003.1c-1995; +// if >=200112L, all of IEEE 1003.1-2004 +// if >=200809L, all of IEEE 1003.1-2008 +// _XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if +// Single Unix conformance is wanted, to 600 for the +// sixth revision, to 700 for the seventh revision. +// _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions. +// _LARGEFILE_SOURCE Some more functions for correct standard I/O. +// _LARGEFILE64_SOURCE Additional functionality from LFS for large files. +// _FILE_OFFSET_BITS=N Select default filesystem interface. +// _ATFILE_SOURCE Additional *at interfaces. +// _DYNAMIC_STACK_SIZE_SOURCE Select correct (but non compile-time constant) +// MINSIGSTKSZ, SIGSTKSZ and PTHREAD_STACK_MIN. +// _GNU_SOURCE All of the above, plus GNU extensions. +// _DEFAULT_SOURCE The default set of features (taking precedence over +// __STRICT_ANSI__). +// +// _FORTIFY_SOURCE Add security hardening to many library functions. +// Set to 1, 2 or 3; 3 performs stricter checks than 2, which +// performs stricter checks than 1. +// +// _REENTRANT, _THREAD_SAFE +// Obsolete; equivalent to _POSIX_C_SOURCE=199506L. +// +// The `-ansi' switch to the GNU C compiler, and standards conformance +// options such as `-std=c99', define __STRICT_ANSI__. If none of +// these are defined, or if _DEFAULT_SOURCE is defined, the default is +// to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to +// 200809L, as well as enabling miscellaneous functions from BSD and +// SVID. If more than one of these are defined, they accumulate. For +// example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together +// give you ISO C, 1003.1, and 1003.2, but nothing else. +// +// These are defined by this file and are used by the +// header files to decide what to declare or define: +// +// __GLIBC_USE (F) Define things from feature set F. This is defined +// to 1 or 0; the subsequent macros are either defined +// or undefined, and those tests should be moved to +// __GLIBC_USE. +// __USE_ISOC11 Define ISO C11 things. +// __USE_ISOC99 Define ISO C99 things. +// __USE_ISOC95 Define ISO C90 AMD1 (C95) things. +// __USE_ISOCXX11 Define ISO C++11 things. +// __USE_POSIX Define IEEE Std 1003.1 things. +// __USE_POSIX2 Define IEEE Std 1003.2 things. +// __USE_POSIX199309 Define IEEE Std 1003.1, and .1b things. +// __USE_POSIX199506 Define IEEE Std 1003.1, .1b, .1c and .1i things. +// __USE_XOPEN Define XPG things. +// __USE_XOPEN_EXTENDED Define X/Open Unix things. +// __USE_UNIX98 Define Single Unix V2 things. +// __USE_XOPEN2K Define XPG6 things. +// __USE_XOPEN2KXSI Define XPG6 XSI things. +// __USE_XOPEN2K8 Define XPG7 things. +// __USE_XOPEN2K8XSI Define XPG7 XSI things. +// __USE_LARGEFILE Define correct standard I/O things. +// __USE_LARGEFILE64 Define LFS things with separate names. +// __USE_FILE_OFFSET64 Define 64bit interface as default. +// __USE_MISC Define things from 4.3BSD or System V Unix. +// __USE_ATFILE Define *at interfaces and AT_* constants for them. +// __USE_DYNAMIC_STACK_SIZE Define correct (but non compile-time constant) +// MINSIGSTKSZ, SIGSTKSZ and PTHREAD_STACK_MIN. +// __USE_GNU Define GNU extensions. +// __USE_FORTIFY_LEVEL Additional security measures used, according to level. +// +// The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are +// defined by this file unconditionally. `__GNU_LIBRARY__' is provided +// only for compatibility. All new code should use the other symbols +// to test for features. +// +// All macros listed above as possibly being defined by this file are +// explicitly undefined if they are not explicitly defined. +// Feature-test macros that are not defined by the user or compiler +// but are implied by the other feature-test macros defined (or by the +// lack of any definitions) are defined by the file. +// +// ISO C feature test macros depend on the definition of the macro +// when an affected header is included, not when the first system +// header is included, and so they are handled in +// , which does not have a multiple include +// guard. Feature test macros that can be handled from the first +// system header included are handled here. + +// Undefine everything, so we get a clean slate. + +// Suppress kernel-name space pollution unless user expressedly asks +// for it. + +// Convenience macro to test the version of gcc. +// Use like this: +// #if __GNUC_PREREQ (2,8) +// ... code requiring gcc 2.8 or later ... +// #endif +// Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was +// added in 2.0. + +// Similarly for clang. Features added to GCC after version 4.2 may +// or may not also be available in clang, and clang's definitions of +// __GNUC(_MINOR)__ are fixed at 4 and 2 respectively. Not all such +// features can be queried via __has_extension/__has_feature. + +// Whether to use feature set F. + +// _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for +// _DEFAULT_SOURCE. If _DEFAULT_SOURCE is present we do not +// issue a warning; the expectation is that the source is being +// transitioned to use the new macro. + +// If _GNU_SOURCE was defined by the user, turn on all the other features. + +// If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined, +// define _DEFAULT_SOURCE. + +// This is to enable the ISO C2X extension. + +// This is to enable the ISO C11 extension. + +// This is to enable the ISO C99 extension. + +// This is to enable the ISO C90 Amendment 1:1995 extension. + +// If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE +// is defined, use POSIX.1-2008 (or another version depending on +// _XOPEN_SOURCE). + +// Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be +// defined in all multithreaded code. GNU libc has not required this +// for many years. We now treat them as compatibility synonyms for +// _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with +// comprehensive support for multithreaded code. Using them never +// lowers the selected level of POSIX conformance, only raises it. + +// Features part to handle 64-bit time_t support. +// Copyright (C) 2021-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// We need to know the word size in order to check the time size. +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Bit size of the time_t type at glibc build time, general case. +// Copyright (C) 2018-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Size in bits of the 'time_t' type of the default ABI. + +// The function 'gets' existed in C89, but is impossible to use +// safely. It has been removed from ISO C11 and ISO C++14. Note: for +// compatibility with various implementations of , this test +// must consider only the value of __cplusplus when compiling C++. + +// GNU formerly extended the scanf functions with modified format +// specifiers %as, %aS, and %a[...] that allocate a buffer for the +// input using malloc. This extension conflicts with ISO C99, which +// defines %a as a standalone format specifier that reads a floating- +// point number; moreover, POSIX.1-2008 provides the same feature +// using the modifier letter 'm' instead (%ms, %mS, %m[...]). +// +// We now follow C99 unless GNU extensions are active and the compiler +// is specifically in C89 or C++98 mode (strict or not). For +// instance, with GCC, -std=gnu11 will have C99-compliant scanf with +// or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the +// old extension. + +// ISO C2X added support for a 0b or 0B prefix on binary constants as +// inputs to strtol-family functions (base 0 or 2). This macro is +// used to condition redirection in headers to allow that redirection +// to be disabled when building those functions, despite _GNU_SOURCE +// being defined. + +// Get definitions of __STDC_* predefined macros, if the compiler has +// not preincluded this header automatically. +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// This macro indicates that the installed library is the GNU C Library. +// For historic reasons the value now is 6 and this will stay from now +// on. The use of this variable is deprecated. Use __GLIBC__ and +// __GLIBC_MINOR__ now (see below) when you want to test for a specific +// GNU C library version and use the values in to get +// the sonames of the shared libraries. + +// Major and minor version number of the GNU C library package. Use +// these macros to test for features in specific releases. + +// This is here only because every header file already includes this one. +// Copyright (C) 1992-2023 Free Software Foundation, Inc. +// Copyright The GNU Toolchain Authors. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// We are almost always included from features.h. + +// The GNU libc does not support any K&R compilers or the traditional mode +// of ISO C compilers anymore. Check for some of the combinations not +// supported anymore. + +// Some user header file might have defined this before. + +// Compilers that lack __has_attribute may object to +// #if defined __has_attribute && __has_attribute (...) +// even though they do not need to evaluate the right-hand side of the &&. +// Similarly for __has_builtin, etc. + +// All functions, except those with callbacks or those that +// synchronize memory, are leaf functions. + +// GCC can always grok prototypes. For C++ programs we add throw() +// to help it optimize the function calls. But this only works with +// gcc 2.8.x and egcs. For gcc 3.4 and up we even mark C functions +// as non-throwing using a function attribute since programs can use +// the -fexceptions options for C code as well. + +// These two macros are not used in glibc anymore. They are kept here +// only because some other projects expect the macros to be defined. + +// For these things, GCC behaves the ANSI way normally, +// and the non-ANSI way under -traditional. + +// This is not a typedef so `const __ptr_t' does the right thing. + +// C++ needs to know that types and declarations are C, not C++. + +// Fortify support. + +// Use __builtin_dynamic_object_size at _FORTIFY_SOURCE=3 when available. + +// Support for flexible arrays. +// Headers that should use flexible arrays only if they're "real" +// (e.g. only if they won't affect sizeof()) should test +// #if __glibc_c99_flexarr_available. + +// __asm__ ("xyz") is used throughout the headers to rename functions +// at the assembly language level. This is wrapped by the __REDIRECT +// macro, in order to support compilers that can do this some other +// way. When compilers don't support asm-names at all, we have to do +// preprocessor tricks instead (which don't have exactly the right +// semantics, but it's the best we can do). +// +// Example: +// int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid); + +// +// #elif __SOME_OTHER_COMPILER__ +// +// # define __REDIRECT(name, proto, alias) name proto; _Pragma("let " #name " = " #alias) + +// GCC and clang have various useful declarations that can be made with +// the '__attribute__' syntax. All of the ways we use this do fine if +// they are omitted for compilers that don't understand it. + +// At some point during the gcc 2.96 development the `malloc' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// Tell the compiler which arguments to an allocation function +// indicate the size of the allocation. + +// Tell the compiler which argument to an allocation function +// indicates the alignment of the allocation. + +// At some point during the gcc 2.96 development the `pure' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// This declaration tells the compiler that the value is constant. + +// At some point during the gcc 3.1 development the `used' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// Since version 3.2, gcc allows marking deprecated functions. + +// Since version 4.5, gcc also allows one to specify the message printed +// when a deprecated function is used. clang claims to be gcc 4.2, but +// may also support this feature. + +// At some point during the gcc 2.8 development the `format_arg' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. +// If several `format_arg' attributes are given for the same function, in +// gcc-3.0 and older, all but the last one are ignored. In newer gccs, +// all designated arguments are considered. + +// At some point during the gcc 2.97 development the `strfmon' format +// attribute for functions was introduced. We don't want to use it +// unconditionally (although this would be possible) since it +// generates warnings. + +// The nonnull function attribute marks pointer parameters that +// must not be NULL. This has the name __nonnull in glibc, +// and __attribute_nonnull__ in files shared with Gnulib to avoid +// collision with a different __nonnull in DragonFlyBSD 5.9. + +// The returns_nonnull function attribute marks the return type of the function +// as always being non-null. + +// If fortification mode, we warn about unused results of certain +// function calls which can lead to problems. + +// Forces a function to be always inlined. +// The Linux kernel defines __always_inline in stddef.h (283d7573), and +// it conflicts with this definition. Therefore undefine it first to +// allow either header to be included first. + +// Associate error messages with the source location of the call site rather +// than with the source location inside the function. + +// GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99 +// inline semantics, unless -fgnu89-inline is used. Using __GNUC_STDC_INLINE__ +// or __GNUC_GNU_INLINE is not a good enough check for gcc because gcc versions +// older than 4.3 may define these macros and still not guarantee GNU inlining +// semantics. +// +// clang++ identifies itself as gcc-4.2, but has support for GNU inlining +// semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and +// __GNUC_GNU_INLINE__ macro definitions. + +// GCC 4.3 and above allow passing all anonymous arguments of an +// __extern_always_inline function to some other vararg function. + +// It is possible to compile containing GCC extensions even if GCC is +// run in pedantic mode if the uses are carefully marked using the +// `__extension__' keyword. But this is not generally available before +// version 2.8. + +// __restrict is known in EGCS 1.2 and above, and in clang. +// It works also in C++ mode (outside of arrays), but only when spelled +// as '__restrict', not 'restrict'. + +// ISO C99 also allows to declare arrays as non-overlapping. The syntax is +// array_name[restrict] +// GCC 3.1 and clang support this. +// This syntax is not usable in C++ mode. + +// Describes a char array whose address can safely be passed as the first +// argument to strncpy and strncat, as the char array is not necessarily +// a NUL-terminated string. + +// Undefine (also defined in libc-symbols.h). +// Copies attributes from the declaration or type referenced by +// the argument. + +// Gnulib avoids including these, as they don't work on non-glibc or +// older glibc platforms. +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Properties of long double type. ldbl-128 version. +// Copyright (C) 2016-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// long double is distinct from double, so there is nothing to +// define here. + +// __glibc_macro_warning (MESSAGE) issues warning MESSAGE. This is +// intended for use in preprocessor macros. +// +// Note: MESSAGE must be a _single_ string; concatenation of string +// literals is not supported. + +// Generic selection (ISO C11) is a C-only feature, available in GCC +// since version 4.9. Previous versions do not provide generic +// selection, even though they might set __STDC_VERSION__ to 201112L, +// when in -std=c11 mode. Thus, we must check for !defined __GNUC__ +// when testing __STDC_VERSION__ for generic selection support. +// On the other hand, Clang also defines __GNUC__, so a clang-specific +// check is required to enable the use of generic selection. + +// Designates a 1-based positional argument ref-index of pointer type +// that can be used to access size-index elements of the pointed-to +// array according to access mode, or at least one element when +// size-index is not provided: +// access (access-mode, [, ]) +// For _FORTIFY_SOURCE == 3 we use __builtin_dynamic_object_size, which may +// use the access attribute to get object sizes from function definition +// arguments, so we can't use them on functions we fortify. Drop the object +// size hints for such functions. + +// Designates dealloc as a function to call to deallocate objects +// allocated by the declared function. + +// Specify that a function such as setjmp or vfork may return +// twice. + +// If we don't have __REDIRECT, prototypes will be missing if +// __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64]. + +// Decide whether we can define 'extern inline' functions in headers. + +// This is here only because every header file already includes this one. +// Get the definitions of all the appropriate `__stub_FUNCTION' symbols. +// contains `#define __stub_FUNCTION' when FUNCTION is a stub +// that will always return failure (and set errno to ENOSYS). +// This file is automatically generated. +// This file selects the right generated file of `__stub_FUNCTION' macros +// based on the architecture being compiled for. + +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// This file is automatically generated. +// It defines a symbol `__stub_FUNCTION' for each function +// in the C library which is a stub, meaning it will fail +// every time called, usually setting errno to ENOSYS. + +// Define uintN_t types. +// Copyright (C) 2017-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Bit size of the time_t type at glibc build time, general case. +// Copyright (C) 2018-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Size in bits of the 'time_t' type of the default ABI. + +// Convenience types. +type X__u_char = uint8 /* types.h:31:23 */ +type X__u_short = uint16 /* types.h:32:28 */ +type X__u_int = uint32 /* types.h:33:22 */ +type X__u_long = uint64 /* types.h:34:27 */ + +// Fixed-size types, underlying types depend on word size and compiler. +type X__int8_t = int8 /* types.h:37:21 */ +type X__uint8_t = uint8 /* types.h:38:23 */ +type X__int16_t = int16 /* types.h:39:26 */ +type X__uint16_t = uint16 /* types.h:40:28 */ +type X__int32_t = int32 /* types.h:41:20 */ +type X__uint32_t = uint32 /* types.h:42:22 */ +type X__int64_t = int64 /* types.h:44:25 */ +type X__uint64_t = uint64 /* types.h:45:27 */ + +// Smallest types with at least a given width. +type X__int_least8_t = int8 /* types.h:52:18 */ +type X__uint_least8_t = uint8 /* types.h:53:19 */ +type X__int_least16_t = int16 /* types.h:54:19 */ +type X__uint_least16_t = uint16 /* types.h:55:20 */ +type X__int_least32_t = int32 /* types.h:56:19 */ +type X__uint_least32_t = uint32 /* types.h:57:20 */ +type X__int_least64_t = int64 /* types.h:58:19 */ +type X__uint_least64_t = uint64 /* types.h:59:20 */ + +// quad_t is also 64 bits. +type X__quad_t = int64 /* types.h:63:18 */ +type X__u_quad_t = uint64 /* types.h:64:27 */ + +// Largest integral types. +type X__intmax_t = int64 /* types.h:72:18 */ +type X__uintmax_t = uint64 /* types.h:73:27 */ + +// The machine-dependent file defines __*_T_TYPE +// macros for each of the OS types we define below. The definitions +// of those macros must use the following macros for underlying types. +// We define __S_TYPE and __U_TYPE for the signed and unsigned +// variants of each of the following integer types on this machine. +// +// 16 -- "natural" 16-bit type (always short) +// 32 -- "natural" 32-bit type (always int) +// 64 -- "natural" 64-bit type (long or long long) +// LONG32 -- 32-bit type, traditionally long +// QUAD -- 64-bit type, traditionally long long +// WORD -- natural type of __WORDSIZE bits (int or long) +// LONGWORD -- type of __WORDSIZE bits, traditionally long +// +// We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the +// conventional uses of `long' or `long long' type modifiers match the +// types we define, even when a less-adorned type would be the same size. +// This matters for (somewhat) portably writing printf/scanf formats for +// these types, where using the appropriate l or ll format modifiers can +// make the typedefs and the formats match up across all GNU platforms. If +// we used `long' when it's 64 bits where `long long' is expected, then the +// compiler would warn about the formats not matching the argument types, +// and the programmer changing them to shut up the compiler would break the +// program's portability. +// +// Here we assume what is presently the case in all the GCC configurations +// we support: long long is always 64 bits, long is always word/address size, +// and int is always 32 bits. + +// No need to mark the typedef with __extension__. +// bits/typesizes.h -- underlying types for *_t. For the generic Linux ABI. +// Copyright (C) 2011-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library. If not, see +// . + +// See for the meaning of these macros. This file exists so +// that need not vary across different GNU platforms. + +// Tell the libc code that off_t and off64_t are actually the same type +// for all ABI purposes, even if possibly expressed as different base types +// for C type-checking purposes. + +// Same for ino_t and ino64_t. + +// And for __rlim_t and __rlim64_t. + +// And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t. + +// And for getitimer, setitimer and rusage + +// Number of descriptors that can fit in an `fd_set'. + +// bits/time64.h -- underlying types for __time64_t. Generic version. +// Copyright (C) 2018-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Define __TIME64_T_TYPE so that it is always a 64-bit type. + +// If we already have 64-bit time type then use it. + +type X__dev_t = uint64 /* types.h:145:25 */ // Type of device numbers. +type X__uid_t = uint32 /* types.h:146:25 */ // Type of user identifications. +type X__gid_t = uint32 /* types.h:147:25 */ // Type of group identifications. +type X__ino_t = uint64 /* types.h:148:25 */ // Type of file serial numbers. +type X__ino64_t = uint64 /* types.h:149:27 */ // Type of file serial numbers (LFS). +type X__mode_t = uint32 /* types.h:150:26 */ // Type of file attribute bitmasks. +type X__nlink_t = uint32 /* types.h:151:27 */ // Type of file link counts. +type X__off_t = int64 /* types.h:152:25 */ // Type of file sizes and offsets. +type X__off64_t = int64 /* types.h:153:27 */ // Type of file sizes and offsets (LFS). +type X__pid_t = int32 /* types.h:154:25 */ // Type of process identifications. +type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs. +type X__clock_t = int64 /* types.h:156:27 */ // Type of CPU usage counts. +type X__rlim_t = uint64 /* types.h:157:26 */ // Type for resource measurement. +type X__rlim64_t = uint64 /* types.h:158:28 */ // Type for resource measurement (LFS). +type X__id_t = uint32 /* types.h:159:24 */ // General type for IDs. +type X__time_t = int64 /* types.h:160:26 */ // Seconds since the Epoch. +type X__useconds_t = uint32 /* types.h:161:30 */ // Count of microseconds. +type X__suseconds_t = int64 /* types.h:162:31 */ // Signed count of microseconds. +type X__suseconds64_t = int64 /* types.h:163:33 */ + +type X__daddr_t = int32 /* types.h:165:27 */ // The type of a disk address. +type X__key_t = int32 /* types.h:166:25 */ // Type of an IPC key. + +// Clock ID used in clock and timer functions. +type X__clockid_t = int32 /* types.h:169:29 */ + +// Timer ID returned by `timer_create'. +type X__timer_t = uintptr /* types.h:172:12 */ + +// Type to represent block size. +type X__blksize_t = int32 /* types.h:175:29 */ + +// Types from the Large File Support interface. + +// Type to count number of disk blocks. +type X__blkcnt_t = int64 /* types.h:180:28 */ +type X__blkcnt64_t = int64 /* types.h:181:30 */ + +// Type to count file system blocks. +type X__fsblkcnt_t = uint64 /* types.h:184:30 */ +type X__fsblkcnt64_t = uint64 /* types.h:185:32 */ + +// Type to count file system nodes. +type X__fsfilcnt_t = uint64 /* types.h:188:30 */ +type X__fsfilcnt64_t = uint64 /* types.h:189:32 */ + +// Type of miscellaneous file system fields. +type X__fsword_t = int64 /* types.h:192:28 */ + +type X__ssize_t = int64 /* types.h:194:27 */ // Type of a byte count, or error. + +// Signed long type used in system calls. +type X__syscall_slong_t = int64 /* types.h:197:33 */ +// Unsigned long type used in system calls. +type X__syscall_ulong_t = uint64 /* types.h:199:33 */ + +// These few don't really vary by system, they always correspond +// +// to one of the other defined types. +type X__loff_t = int64 /* types.h:203:19 */ // Type of file sizes and offsets (LFS). +type X__caddr_t = uintptr /* types.h:204:14 */ + +// Duplicates info from stdint.h but this is used in unistd.h. +type X__intptr_t = int64 /* types.h:207:25 */ + +// Duplicate info from sys/socket.h. +type X__socklen_t = uint32 /* types.h:210:23 */ + +// C99: An integer type that can be accessed as an atomic entity, +// +// even in the presence of asynchronous interrupts. +// It is not currently necessary for this to be machine-specific. +type X__sig_atomic_t = int32 /* types.h:215:13 */ + +// Seconds since the Epoch, visible to user code when time_t is too +// narrow only for consistency with the old way of widening too-narrow +// types. User code should never use __time64_t. + +type Uint8_t = uint8 /* stdint-uintn.h:24:19 */ +type Uint16_t = uint16 /* stdint-uintn.h:25:20 */ +type Uint32_t = uint32 /* stdint-uintn.h:26:20 */ +type Uint64_t = uint64 /* stdint-uintn.h:27:20 */ + +// Wide character type. +// Locale-writers should change this as necessary to +// be big enough to hold unique values not between 0 and 127, +// and not (wchar_t) -1, for each defined multibyte character. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// A null pointer constant. + +// Structure for scatter/gather I/O. +type Iovec = struct { + Fiov_base uintptr + Fiov_len uint64 +} /* struct_iovec.h:26:1 */ + +// Copyright (C) 1989-2023 Free Software Foundation, Inc. +// +// This file is part of GCC. +// +// GCC is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 3, or (at your option) +// any later version. +// +// GCC is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// Under Section 7 of GPL version 3, you are granted additional +// permissions described in the GCC Runtime Library Exception, version +// 3.1, as published by the Free Software Foundation. +// +// You should have received a copy of the GNU General Public License and +// a copy of the GCC Runtime Library Exception along with this program; +// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see +// . + +// ISO C Standard: 7.17 Common definitions + +// Any one of these symbols __need_* means that GNU libc +// wants us just to define one data type. So don't define +// the symbols that indicate this file's entire job has been done. + +// This avoids lossage on SunOS but only if stdtypes.h comes first. +// There's no way to win with the other order! Sun lossage. + +// Sequent's header files use _PTRDIFF_T_ in some conflicting way. +// Just ignore it. + +// On VxWorks, may have defined macros like +// _TYPE_size_t which will typedef size_t. fixincludes patched the +// vxTypesBase.h so that this macro is only defined if _GCC_SIZE_T is +// not defined, and so that defining this macro defines _GCC_SIZE_T. +// If we find that the macros are still defined at this point, we must +// invoke them so that the type is defined as expected. + +// In case nobody has defined these types, but we aren't running under +// GCC 2.00, make sure that __PTRDIFF_TYPE__, __SIZE_TYPE__, and +// __WCHAR_TYPE__ have reasonable values. This can happen if the +// parts of GCC is compiled by an older compiler, that actually +// include gstddef.h, such as collect2. + +// Signed type of difference of two pointers. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// Unsigned type of `sizeof' something. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// Wide character type. +// Locale-writers should change this as necessary to +// be big enough to hold unique values not between 0 and 127, +// and not (wchar_t) -1, for each defined multibyte character. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// A null pointer constant. + +// This operating system-specific header file defines the SOCK_*, PF_*, +// AF_*, MSG_*, SOL_*, and SO_* constants, and the `struct sockaddr', +// `struct msghdr', and `struct linger' types. +// System-specific socket constants and types. Linux version. +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Copyright (C) 1989-2023 Free Software Foundation, Inc. +// +// This file is part of GCC. +// +// GCC is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 3, or (at your option) +// any later version. +// +// GCC is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// Under Section 7 of GPL version 3, you are granted additional +// permissions described in the GCC Runtime Library Exception, version +// 3.1, as published by the Free Software Foundation. +// +// You should have received a copy of the GNU General Public License and +// a copy of the GCC Runtime Library Exception along with this program; +// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see +// . + +// ISO C Standard: 7.17 Common definitions + +// Any one of these symbols __need_* means that GNU libc +// wants us just to define one data type. So don't define +// the symbols that indicate this file's entire job has been done. + +// This avoids lossage on SunOS but only if stdtypes.h comes first. +// There's no way to win with the other order! Sun lossage. + +// Sequent's header files use _PTRDIFF_T_ in some conflicting way. +// Just ignore it. + +// On VxWorks, may have defined macros like +// _TYPE_size_t which will typedef size_t. fixincludes patched the +// vxTypesBase.h so that this macro is only defined if _GCC_SIZE_T is +// not defined, and so that defining this macro defines _GCC_SIZE_T. +// If we find that the macros are still defined at this point, we must +// invoke them so that the type is defined as expected. + +// In case nobody has defined these types, but we aren't running under +// GCC 2.00, make sure that __PTRDIFF_TYPE__, __SIZE_TYPE__, and +// __WCHAR_TYPE__ have reasonable values. This can happen if the +// parts of GCC is compiled by an older compiler, that actually +// include gstddef.h, such as collect2. + +// Signed type of difference of two pointers. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// Unsigned type of `sizeof' something. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// Wide character type. +// Locale-writers should change this as necessary to +// be big enough to hold unique values not between 0 and 127, +// and not (wchar_t) -1, for each defined multibyte character. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// A null pointer constant. + +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// POSIX Standard: 2.6 Primitive System Data Types + +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +type U_char = uint8 /* types.h:33:18 */ +type U_short = uint16 /* types.h:34:19 */ +type U_int = uint32 /* types.h:35:17 */ +type U_long = uint64 /* types.h:36:18 */ +type Quad_t = int64 /* types.h:37:18 */ +type U_quad_t = uint64 /* types.h:38:20 */ +type Fsid_t = X__fsid_t /* types.h:39:18 */ +type Loff_t = int64 /* types.h:42:18 */ + +type Ino_t = uint64 /* types.h:49:19 */ + +type Dev_t = uint64 /* types.h:59:17 */ + +type Gid_t = uint32 /* types.h:64:17 */ + +type Mode_t = uint32 /* types.h:69:18 */ + +type Nlink_t = uint32 /* types.h:74:19 */ + +type Uid_t = uint32 /* types.h:79:17 */ + +type Off_t = int64 /* types.h:87:19 */ + +type Pid_t = int32 /* types.h:97:17 */ + +type Id_t = uint32 /* types.h:103:16 */ + +type Ssize_t = int64 /* types.h:108:19 */ + +type Daddr_t = int32 /* types.h:114:19 */ +type Caddr_t = uintptr /* types.h:115:19 */ + +type Key_t = int32 /* types.h:121:17 */ + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Returned by `clock'. +type Clock_t = int64 /* clock_t.h:7:19 */ + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Clock ID used in clock and timer functions. +type Clockid_t = int32 /* clockid_t.h:7:21 */ + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Returned by `time'. +type Time_t = int64 /* time_t.h:10:18 */ + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Timer ID returned by `timer_create'. +type Timer_t = uintptr /* timer_t.h:7:19 */ + +// Copyright (C) 1989-2023 Free Software Foundation, Inc. +// +// This file is part of GCC. +// +// GCC is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 3, or (at your option) +// any later version. +// +// GCC is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// Under Section 7 of GPL version 3, you are granted additional +// permissions described in the GCC Runtime Library Exception, version +// 3.1, as published by the Free Software Foundation. +// +// You should have received a copy of the GNU General Public License and +// a copy of the GCC Runtime Library Exception along with this program; +// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see +// . + +// ISO C Standard: 7.17 Common definitions + +// Any one of these symbols __need_* means that GNU libc +// wants us just to define one data type. So don't define +// the symbols that indicate this file's entire job has been done. + +// This avoids lossage on SunOS but only if stdtypes.h comes first. +// There's no way to win with the other order! Sun lossage. + +// Sequent's header files use _PTRDIFF_T_ in some conflicting way. +// Just ignore it. + +// On VxWorks, may have defined macros like +// _TYPE_size_t which will typedef size_t. fixincludes patched the +// vxTypesBase.h so that this macro is only defined if _GCC_SIZE_T is +// not defined, and so that defining this macro defines _GCC_SIZE_T. +// If we find that the macros are still defined at this point, we must +// invoke them so that the type is defined as expected. + +// In case nobody has defined these types, but we aren't running under +// GCC 2.00, make sure that __PTRDIFF_TYPE__, __SIZE_TYPE__, and +// __WCHAR_TYPE__ have reasonable values. This can happen if the +// parts of GCC is compiled by an older compiler, that actually +// include gstddef.h, such as collect2. + +// Signed type of difference of two pointers. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// Unsigned type of `sizeof' something. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// Wide character type. +// Locale-writers should change this as necessary to +// be big enough to hold unique values not between 0 and 127, +// and not (wchar_t) -1, for each defined multibyte character. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// A null pointer constant. + +// Old compatibility names for C types. +type Ulong = uint64 /* types.h:148:27 */ +type Ushort = uint16 /* types.h:149:28 */ +type Uint = uint32 /* types.h:150:22 */ + +// These size-specific names are used by some of the inet code. + +// Define intN_t types. +// Copyright (C) 2017-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +type Int8_t = int8 /* stdint-intn.h:24:18 */ +type Int16_t = int16 /* stdint-intn.h:25:19 */ +type Int32_t = int32 /* stdint-intn.h:26:19 */ +type Int64_t = int64 /* stdint-intn.h:27:19 */ + +// These were defined by ISO C without the first `_'. +type U_int8_t = uint8 /* types.h:158:19 */ +type U_int16_t = uint16 /* types.h:159:20 */ +type U_int32_t = uint32 /* types.h:160:20 */ +type U_int64_t = uint64 /* types.h:161:20 */ + +type Register_t = int32 /* types.h:164:13 */ + +// It also defines `fd_set' and the FD_* macros for `select'. +// `fd_set' type and related macros, and `select'/`pselect' declarations. +// Copyright (C) 1996-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// POSIX 1003.1g: 6.2 Select from File Descriptor Sets + +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Get definition of needed basic types. +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Get __FD_* definitions. +// Copyright (C) 1997-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// We don't use `memset' because this would require a prototype and +// the array isn't too big. + +// Get sigset_t. + +type X__sigset_t = struct{ F__val [16]uint64 } /* __sigset_t.h:8:3 */ + +// A set of signals to be blocked, unblocked, or waited for. +type Sigset_t = X__sigset_t /* sigset_t.h:7:20 */ + +// Get definition of timer specification structures. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// A time value that is accurate to the nearest +// +// microsecond but also has a range of years. +type Timeval = struct { + Ftv_sec int64 + Ftv_usec int64 +} /* struct_timeval.h:8:1 */ + +// NB: Include guard matches what uses. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Endian macros for string.h functions +// Copyright (C) 1992-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// POSIX.1b structure for a time value. This is like a `struct timeval' but +// +// has nanoseconds instead of microseconds. +type Timespec = struct { + Ftv_sec int64 + Ftv_nsec int64 +} /* struct_timespec.h:11:1 */ + +type Suseconds_t = int64 /* select.h:43:23 */ + +// The fd_set member is required to be an array of longs. +type X__fd_mask = int64 /* select.h:49:18 */ + +// Some versions of define this macros. +// It's easier to assume 8-bit bytes than to get CHAR_BIT. + +// fd_set for select and pselect. +type Fd_set = struct{ F__fds_bits [16]int64 } /* select.h:70:5 */ + +// Maximum number of file descriptors in `fd_set'. + +// Sometimes the fd_set member is assumed to have this type. +type Fd_mask = int64 /* select.h:77:19 */ + +// Define some inlines helping to catch common problems. + +type Blksize_t = int32 /* types.h:185:21 */ + +// Types from the Large File Support interface. +type Blkcnt_t = int64 /* types.h:205:22 */ // Type to count number of disk blocks. +type Fsblkcnt_t = uint64 /* types.h:209:24 */ // Type to count file system blocks. +type Fsfilcnt_t = uint64 /* types.h:213:24 */ // Type to count file system inodes. + +// Now add the thread types. +// Declaration of common pthread types for all architectures. +// Copyright (C) 2017-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// For internal mutex and condition variable definitions. +// Common threading primitives definitions for both POSIX and C11. +// Copyright (C) 2017-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Arch-specific definitions. Each architecture must define the following +// macros to define the expected sizes of pthread data types: +// +// __SIZEOF_PTHREAD_ATTR_T - size of pthread_attr_t. +// __SIZEOF_PTHREAD_MUTEX_T - size of pthread_mutex_t. +// __SIZEOF_PTHREAD_MUTEXATTR_T - size of pthread_mutexattr_t. +// __SIZEOF_PTHREAD_COND_T - size of pthread_cond_t. +// __SIZEOF_PTHREAD_CONDATTR_T - size of pthread_condattr_t. +// __SIZEOF_PTHREAD_RWLOCK_T - size of pthread_rwlock_t. +// __SIZEOF_PTHREAD_RWLOCKATTR_T - size of pthread_rwlockattr_t. +// __SIZEOF_PTHREAD_BARRIER_T - size of pthread_barrier_t. +// __SIZEOF_PTHREAD_BARRIERATTR_T - size of pthread_barrierattr_t. +// +// The additional macro defines any constraint for the lock alignment +// inside the thread structures: +// +// __LOCK_ALIGNMENT - for internal lock/futex usage. +// +// Same idea but for the once locking primitive: +// +// __ONCE_ALIGNMENT - for pthread_once_t/once_flag definition. + +// Machine-specific pthread type layouts. Generic version. +// Copyright (C) 2019-2023 Free Software Foundation, Inc. +// +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Monotonically increasing wide counters (at least 62 bits). +// Copyright (C) 2016-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Counter that is monotonically increasing (by less than 2**31 per +// +// increment), with a single writer, and an arbitrary number of +// readers. +type X__atomic_wide_counter = struct{ F__value64 uint64 } /* atomic_wide_counter.h:33:3 */ + +// Common definition of pthread_mutex_t. + +type X__pthread_internal_list = struct { + F__prev uintptr + F__next uintptr +} /* thread-shared-types.h:51:9 */ + +// Common definition of pthread_mutex_t. + +type X__pthread_list_t = X__pthread_internal_list /* thread-shared-types.h:55:3 */ + +type X__pthread_internal_slist = struct{ F__next uintptr } /* thread-shared-types.h:57:9 */ + +type X__pthread_slist_t = X__pthread_internal_slist /* thread-shared-types.h:60:3 */ + +// Arch-specific mutex definitions. A generic implementation is provided +// by sysdeps/nptl/bits/struct_mutex.h. If required, an architecture +// can override it by defining: +// +// 1. struct __pthread_mutex_s (used on both pthread_mutex_t and mtx_t +// definition). It should contains at least the internal members +// defined in the generic version. +// +// 2. __LOCK_ALIGNMENT for any extra attribute for internal lock used with +// atomic operations. +// +// 3. The macro __PTHREAD_MUTEX_INITIALIZER used for static initialization. +// It should initialize the mutex internal flag. + +// Default mutex implementation struct definitions. +// Copyright (C) 2019-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Generic struct for both POSIX and C11 mutexes. New ports are expected +// to use the default layout, however architecture can redefine it to +// add arch-specific extension (such as lock-elision). The struct have +// a size of 32 bytes on LP32 and 40 bytes on LP64 architectures. + +type X__pthread_mutex_s = struct { + F__lock int32 + F__count uint32 + F__owner int32 + F__nusers uint32 + F__kind int32 + F__spins int32 + F__list X__pthread_list_t +} /* struct_mutex.h:27:1 */ + +// Arch-sepecific read-write lock definitions. A generic implementation is +// provided by struct_rwlock.h. If required, an architecture can override it +// by defining: +// +// 1. struct __pthread_rwlock_arch_t (used on pthread_rwlock_t definition). +// It should contain at least the internal members defined in the +// generic version. +// +// 2. The macro __PTHREAD_RWLOCK_INITIALIZER used for static initialization. +// It should initialize the rwlock internal type. + +// Default read-write lock implementation struct definitions. +// Copyright (C) 2019-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Endian macros for string.h functions +// Copyright (C) 1992-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Generic struct for both POSIX read-write lock. New ports are expected +// to use the default layout, however archictetures can redefine it to add +// arch-specific extensions (such as lock-elision). The struct have a size +// of 32 bytes on both LP32 and LP64 architectures. + +type X__pthread_rwlock_arch_t = struct { + F__readers uint32 + F__writers uint32 + F__wrphase_futex uint32 + F__writers_futex uint32 + F__pad3 uint32 + F__pad4 uint32 + F__flags uint8 + F__shared uint8 + F__pad1 uint8 + F__pad2 uint8 + F__cur_writer int32 +} /* struct_rwlock.h:29:1 */ + +// Common definition of pthread_cond_t. + +type X__pthread_cond_s = struct { + F__wseq X__atomic_wide_counter + F__g1_start X__atomic_wide_counter + F__g_refs [2]uint32 + F__g_size [2]uint32 + F__g1_orig_size uint32 + F__wrefs uint32 + F__g_signals [2]uint32 +} /* thread-shared-types.h:94:1 */ + +type X__tss_t = uint32 /* thread-shared-types.h:105:22 */ +type X__thrd_t = uint64 /* thread-shared-types.h:106:27 */ + +type X__once_flag = struct{ F__data int32 } /* thread-shared-types.h:111:3 */ + +// Thread identifiers. The structure of the attribute type is not +// +// exposed on purpose. +type Pthread_t = uint64 /* pthreadtypes.h:27:27 */ + +// Data structures for mutex handling. The structure of the attribute +// +// type is not exposed on purpose. +type Pthread_mutexattr_t = struct { + F__ccgo_pad1 [0]uint32 + F__size [4]int8 +} /* pthreadtypes.h:36:3 */ + +// Data structure for condition variable handling. The structure of +// +// the attribute type is not exposed on purpose. +type Pthread_condattr_t = struct { + F__ccgo_pad1 [0]uint32 + F__size [4]int8 +} /* pthreadtypes.h:45:3 */ + +// Keys for thread-specific data +type Pthread_key_t = uint32 /* pthreadtypes.h:49:22 */ + +// Once-only execution +type Pthread_once_t = int32 /* pthreadtypes.h:53:30 */ + +type Pthread_attr_t1 = struct { + F__ccgo_pad1 [0]uint64 + F__size [56]int8 +} /* pthreadtypes.h:56:1 */ + +type Pthread_attr_t = Pthread_attr_t1 /* pthreadtypes.h:62:30 */ + +type Pthread_mutex_t = struct{ F__data X__pthread_mutex_s } /* pthreadtypes.h:72:3 */ + +type Pthread_cond_t = struct{ F__data X__pthread_cond_s } /* pthreadtypes.h:80:3 */ + +// Data structure for reader-writer lock variable handling. The +// +// structure of the attribute type is deliberately not exposed. +type Pthread_rwlock_t = struct { + F__ccgo_pad1 [0]uint64 + F__data X__pthread_rwlock_arch_t + F__ccgo_pad2 [24]byte +} /* pthreadtypes.h:91:3 */ + +type Pthread_rwlockattr_t = struct { + F__ccgo_pad1 [0]uint64 + F__size [8]int8 +} /* pthreadtypes.h:97:3 */ + +// POSIX spinlock data type. +type Pthread_spinlock_t = int32 /* pthreadtypes.h:103:22 */ + +// POSIX barriers data type. The structure of the type is +// +// deliberately not exposed. +type Pthread_barrier_t = struct { + F__ccgo_pad1 [0]uint64 + F__size [32]int8 +} /* pthreadtypes.h:112:3 */ + +type Pthread_barrierattr_t = struct { + F__ccgo_pad1 [0]uint32 + F__size [4]int8 +} /* pthreadtypes.h:118:3 */ + +// Type for length arguments in socket calls. +type Socklen_t = uint32 /* socket.h:33:21 */ + +// Protocol families. + +// Address families. + +// Socket level values. Others are defined in the appropriate headers. +// +// XXX These definitions also should go into the appropriate headers as +// far as they are available. + +// Maximum queue length specifiable by listen. + +// Get the definition of the macro to define the common sockaddr members. +// Definition of struct sockaddr_* common members and sizes, generic version. +// Copyright (C) 1995-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// POSIX.1g specifies this type name for the `sa_family' member. +type Sa_family_t = uint16 /* sockaddr.h:28:28 */ + +// This macro is used to declare the initial common members +// of the data types used for socket addresses, `struct sockaddr', +// `struct sockaddr_in', `struct sockaddr_un', etc. + +// Size of struct sockaddr_storage. + +// Structure describing a generic socket address. +type Sockaddr = struct { + Fsa_family uint16 + Fsa_data [14]int8 +} /* socket.h:183:1 */ + +// Structure large enough to hold any socket address (with the historical +// exception of AF_UNIX). + +type Sockaddr_storage = struct { + Fss_family uint16 + F__ss_padding [118]int8 + F__ss_align uint64 +} /* socket.h:196:1 */ + +// Structure describing messages sent by +// +// `sendmsg' and received by `recvmsg'. +type Msghdr = struct { + Fmsg_name uintptr + Fmsg_namelen uint32 + F__ccgo_pad1 [4]byte + Fmsg_iov uintptr + Fmsg_iovlen uint64 + Fmsg_control uintptr + Fmsg_controllen uint64 + Fmsg_flags int32 + F__ccgo_pad2 [4]byte +} /* socket.h:262:1 */ + +// Structure used for storage of ancillary data object information. +type Cmsghdr = struct { + F__ccgo_pad1 [0]uint64 + Fcmsg_len uint64 + Fcmsg_level int32 + Fcmsg_type int32 +} /* socket.h:280:1 */ + +// SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note + +// SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note + +// SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note + +// * +// __struct_group() - Create a mirrored named and anonyomous struct +// +// @TAG: The tag name for the named sub-struct (usually empty) +// @NAME: The identifier name of the mirrored sub-struct +// @ATTRS: Any struct attributes (usually empty) +// @MEMBERS: The member declarations for the mirrored structs +// +// Used to create an anonymous union of two structs with identical layout +// and size: one anonymous and one named. The former's members can be used +// normally without sub-struct naming, and the latter can be used to +// reason about the start, end, and size of the group of struct members. +// The named struct can also be explicitly tagged for layer reuse, as well +// as both having struct attributes appended. + +// * +// __DECLARE_FLEX_ARRAY() - Declare a flexible array usable in a union +// +// @TYPE: The type of each flexible array element +// @NAME: The name of the flexible array member +// +// In order to have a flexible array member in a union or alone in a +// struct, it needs to be wrapped in an anonymous struct with at least 1 +// named member, but that member can be empty. + +// This allows for 1024 file descriptors: if NR_OPEN is ever grown +// beyond that you'll have to change this too. But 1024 fd's seem to be +// enough even for such "real" unices like OSF/1, so hopefully this is +// one limit that doesn't have to be changed [again]. +// +// Note that POSIX wants the FD_CLEAR(fd,fdsetp) defines to be in +// (and thus ) - but this is a more logical +// place for them. Solved by having dummy defines in . + +// This macro may have been defined in . But we always +// use the one here. + +type X__kernel_fd_set = struct{ Ffds_bits [16]uint64 } /* posix_types.h:27:3 */ + +// Type of a signal handler. +type X__kernel_sighandler_t = uintptr /* posix_types.h:30:14 */ + +// Type of a SYSV IPC key. +type X__kernel_key_t = int32 /* posix_types.h:33:13 */ +type X__kernel_mqd_t = int32 /* posix_types.h:34:13 */ + +// SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note + +// SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note + +// In order to keep safe and avoid regression, only unify uapi +// bitsperlong.h for some archs which are using newer toolchains +// that have the definitions of __CHAR_BIT__ and __SIZEOF_LONG__. +// See the following link for more info: +// https://lore.kernel.org/linux-arch/b9624545-2c80-49a1-ac3c-39264a591f7b@app.fastmail.com/ + +// This file is generally used by user-level software, so you need to +// be a little careful about namespace pollution etc. +// +// First the types that are often defined in different ways across +// architectures, so that you can override them. + +type X__kernel_long_t = int64 /* posix_types.h:15:15 */ +type X__kernel_ulong_t = uint64 /* posix_types.h:16:23 */ + +type X__kernel_ino_t = uint64 /* posix_types.h:20:26 */ + +type X__kernel_mode_t = uint32 /* posix_types.h:24:22 */ + +type X__kernel_pid_t = int32 /* posix_types.h:28:14 */ + +type X__kernel_ipc_pid_t = int32 /* posix_types.h:32:14 */ + +type X__kernel_uid_t = uint32 /* posix_types.h:36:22 */ +type X__kernel_gid_t = uint32 /* posix_types.h:37:22 */ + +type X__kernel_suseconds_t = int64 /* posix_types.h:41:26 */ + +type X__kernel_daddr_t = int32 /* posix_types.h:45:14 */ + +type X__kernel_uid32_t = uint32 /* posix_types.h:49:22 */ +type X__kernel_gid32_t = uint32 /* posix_types.h:50:22 */ + +type X__kernel_old_uid_t = uint32 /* posix_types.h:54:24 */ +type X__kernel_old_gid_t = uint32 /* posix_types.h:55:24 */ + +type X__kernel_old_dev_t = uint32 /* posix_types.h:59:22 */ + +// Most 32 bit architectures use "unsigned int" size_t, +// and all 64 bit architectures use "unsigned long" size_t. +type X__kernel_size_t = uint64 /* posix_types.h:72:26 */ +type X__kernel_ssize_t = int64 /* posix_types.h:73:25 */ +type X__kernel_ptrdiff_t = int64 /* posix_types.h:74:25 */ + +type X__kernel_fsid_t = struct{ Fval [2]int32 } /* posix_types.h:81:3 */ + +// anything below here should be completely generic +type X__kernel_off_t = int64 /* posix_types.h:87:25 */ +type X__kernel_loff_t = int64 /* posix_types.h:88:19 */ +type X__kernel_old_time_t = int64 /* posix_types.h:89:25 */ +type X__kernel_time_t = int64 /* posix_types.h:90:25 */ +type X__kernel_time64_t = int64 /* posix_types.h:91:19 */ +type X__kernel_clock_t = int64 /* posix_types.h:92:25 */ +type X__kernel_timer_t = int32 /* posix_types.h:93:14 */ +type X__kernel_clockid_t = int32 /* posix_types.h:94:14 */ +type X__kernel_caddr_t = uintptr /* posix_types.h:95:14 */ +type X__kernel_uid16_t = uint16 /* posix_types.h:96:24 */ +type X__kernel_gid16_t = uint16 /* posix_types.h:97:24 */ + +// SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note + +// Socket-level I/O control calls. + +// For setsockopt(2) + +// Security levels - as per NRL IPv6 - don't actually do anything + +// Socket filtering + +// Instruct lower device to use last 4-bytes of skb data as FCS + +// on 64-bit and x32, avoid the ?: operator + +// Structure used to manipulate the SO_LINGER option. +type Linger = struct { + Fl_onoff int32 + Fl_linger int32 +} /* socket.h:392:1 */ + +// This is the 4.3 BSD `struct sockaddr' format, which is used as wire +// +// format in the grotty old 4.3 `talk' protocol. +type Osockaddr = struct { + Fsa_family uint16 + Fsa_data [14]uint8 +} /* struct_osockaddr.h:6:1 */ + +// Define some macros helping to catch buffer overflows. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Internet address. +type In_addr_t = uint32 /* in.h:30:18 */ +type In_addr = struct{ Fs_addr uint32 } /* in.h:31:1 */ + +// Get system-specific definitions. +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Linux version. + +// If the application has already included linux/in6.h from a linux-based +// kernel then we will not define the IPv6 IPPROTO_* defines, in6_addr (nor the +// defines), sockaddr_in6, or ipv6_mreq. Same for in6_ptkinfo or ip6_mtuinfo +// in linux/ipv6.h. The ABI used by the linux-kernel and glibc match exactly. +// Neither the linux kernel nor glibc should break this ABI without coordination. +// In upstream kernel 56c176c9 the _UAPI prefix was stripped so we need to check +// for _LINUX_IN6_H and _IPV6_H now, and keep checking the old versions for +// maximum backwards compatibility. + +// Options for use with `getsockopt' and `setsockopt' at the IP level. +// The first word in the comment at the right is the data type used; +// "bool" means a boolean value stored in an `int'. +// For BSD compatibility. + +// TProxy original addresses + +// IP_MTU_DISCOVER arguments. +// Always use interface mtu (ignores dst pmtu) but don't set DF flag. +// Also incoming ICMP frag_needed notifications will be ignored on +// this socket to prevent accepting spoofed ones. +// Like IP_PMTUDISC_INTERFACE but allow packets to be fragmented. + +// To select the IP level. + +// Structure used to describe IP options for IP_OPTIONS and IP_RETOPTS. +// +// The `ip_dst' field is used for the first-hop gateway when using a +// source route (this gets put into the header proper). +type Ip_opts = struct { + Fip_dst struct{ Fs_addr uint32 } + Fip_opts [40]int8 +} /* in.h:145:1 */ + +// Structure used for IP_PKTINFO. +type In_pktinfo = struct { + Fipi_ifindex int32 + Fipi_spec_dst struct{ Fs_addr uint32 } + Fipi_addr struct{ Fs_addr uint32 } +} /* in.h:152:1 */ + +// Type to represent a port. +type In_port_t = uint16 /* in.h:125:18 */ + +// Definitions of the bits in an Internet address integer. +// +// On subnets, host and network parts are found according to +// the subnet mask, not these masks. + +// Address to accept any incoming messages. +// Address to send to all hosts. +// Address indicating an error return. +// Dummy address for source of ICMPv6 errors converted to IPv4 (RFC +// 7600). + +// Network number for local host loopback. +// Address to loopback in software to local host. + +// Defines for Multicast INADDR. + +// IPv6 address +type In6_addr = struct { + F__in6_u struct { + F__ccgo_pad1 [0]uint32 + F__u6_addr8 [16]uint8 + } +} /* in.h:221:1 */ + +// ::1 + +// Structure describing an Internet socket address. +type Sockaddr_in = struct { + Fsin_family uint16 + Fsin_port uint16 + Fsin_addr struct{ Fs_addr uint32 } + Fsin_zero [8]uint8 +} /* in.h:247:1 */ + +// Ditto, for IPv6. +type Sockaddr_in6 = struct { + Fsin6_family uint16 + Fsin6_port uint16 + Fsin6_flowinfo uint32 + Fsin6_addr struct { + F__in6_u struct { + F__ccgo_pad1 [0]uint32 + F__u6_addr8 [16]uint8 + } + } + Fsin6_scope_id uint32 +} /* in.h:262:1 */ + +// IPv4 multicast request. +type Ip_mreq = struct { + Fimr_multiaddr struct{ Fs_addr uint32 } + Fimr_interface struct{ Fs_addr uint32 } +} /* in.h:274:1 */ + +// IPv4 multicast request with interface index. +type Ip_mreqn = struct { + Fimr_multiaddr struct{ Fs_addr uint32 } + Fimr_address struct{ Fs_addr uint32 } + Fimr_ifindex int32 +} /* in.h:284:1 */ + +type Ip_mreq_source = struct { + Fimr_multiaddr struct{ Fs_addr uint32 } + Fimr_interface struct{ Fs_addr uint32 } + Fimr_sourceaddr struct{ Fs_addr uint32 } +} /* in.h:296:1 */ + +// Likewise, for IPv6. +type Ipv6_mreq = struct { + Fipv6mr_multiaddr struct { + F__in6_u struct { + F__ccgo_pad1 [0]uint32 + F__u6_addr8 [16]uint8 + } + } + Fipv6mr_interface uint32 +} /* in.h:311:1 */ + +// Multicast group request. +type Group_req = struct { + Fgr_interface uint32 + F__ccgo_pad1 [4]byte + Fgr_group struct { + Fss_family uint16 + F__ss_padding [118]int8 + F__ss_align uint64 + } +} /* in.h:323:1 */ + +type Group_source_req = struct { + Fgsr_interface uint32 + F__ccgo_pad1 [4]byte + Fgsr_group struct { + Fss_family uint16 + F__ss_padding [118]int8 + F__ss_align uint64 + } + Fgsr_source struct { + Fss_family uint16 + F__ss_padding [118]int8 + F__ss_align uint64 + } +} /* in.h:332:1 */ + +// Full-state filter operations. +type Ip_msfilter = struct { + Fimsf_multiaddr struct{ Fs_addr uint32 } + Fimsf_interface struct{ Fs_addr uint32 } + Fimsf_fmode uint32 + Fimsf_numsrc uint32 + Fimsf_slist [1]struct{ Fs_addr uint32 } +} /* in.h:346:1 */ + +type Group_filter = struct { + Fgf_interface uint32 + F__ccgo_pad1 [4]byte + Fgf_group struct { + Fss_family uint16 + F__ss_padding [118]int8 + F__ss_align uint64 + } + Fgf_fmode uint32 + Fgf_numsrc uint32 + Fgf_slist [1]struct { + Fss_family uint16 + F__ss_padding [118]int8 + F__ss_align uint64 + } +} /* in.h:367:1 */ + +var _ int8 /* gen.c:2:13: */ diff --git a/vendor/modernc.org/libc/netinet/in/in_linux_mips64le.go b/vendor/modernc.org/libc/netinet/in/in_linux_mips64le.go new file mode 100644 index 000000000..cfd5e88aa --- /dev/null +++ b/vendor/modernc.org/libc/netinet/in/in_linux_mips64le.go @@ -0,0 +1,2790 @@ +// Code generated by 'ccgo netinet/in/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o netinet/in/in_linux_amd64.go -pkgname in', DO NOT EDIT. + +package in + +import ( + "math" + "reflect" + "sync/atomic" + "unsafe" +) + +var _ = math.Pi +var _ reflect.Kind +var _ atomic.Value +var _ unsafe.Pointer + +const ( + AF_ALG = 38 // socket.h:133:1: + AF_APPLETALK = 5 // socket.h:99:1: + AF_ASH = 18 // socket.h:113:1: + AF_ATMPVC = 8 // socket.h:102:1: + AF_ATMSVC = 20 // socket.h:115:1: + AF_AX25 = 3 // socket.h:97:1: + AF_BLUETOOTH = 31 // socket.h:126:1: + AF_BRIDGE = 7 // socket.h:101:1: + AF_CAIF = 37 // socket.h:132:1: + AF_CAN = 29 // socket.h:124:1: + AF_DECnet = 12 // socket.h:106:1: + AF_ECONET = 19 // socket.h:114:1: + AF_FILE = 1 // socket.h:95:1: + AF_IB = 27 // socket.h:122:1: + AF_IEEE802154 = 36 // socket.h:131:1: + AF_INET = 2 // socket.h:96:1: + AF_INET6 = 10 // socket.h:104:1: + AF_IPX = 4 // socket.h:98:1: + AF_IRDA = 23 // socket.h:118:1: + AF_ISDN = 34 // socket.h:129:1: + AF_IUCV = 32 // socket.h:127:1: + AF_KCM = 41 // socket.h:136:1: + AF_KEY = 15 // socket.h:109:1: + AF_LLC = 26 // socket.h:121:1: + AF_LOCAL = 1 // socket.h:93:1: + AF_MAX = 45 // socket.h:140:1: + AF_MPLS = 28 // socket.h:123:1: + AF_NETBEUI = 13 // socket.h:107:1: + AF_NETLINK = 16 // socket.h:110:1: + AF_NETROM = 6 // socket.h:100:1: + AF_NFC = 39 // socket.h:134:1: + AF_PACKET = 17 // socket.h:112:1: + AF_PHONET = 35 // socket.h:130:1: + AF_PPPOX = 24 // socket.h:119:1: + AF_QIPCRTR = 42 // socket.h:137:1: + AF_RDS = 21 // socket.h:116:1: + AF_ROSE = 11 // socket.h:105:1: + AF_ROUTE = 16 // socket.h:111:1: + AF_RXRPC = 33 // socket.h:128:1: + AF_SECURITY = 14 // socket.h:108:1: + AF_SMC = 43 // socket.h:138:1: + AF_SNA = 22 // socket.h:117:1: + AF_TIPC = 30 // socket.h:125:1: + AF_UNIX = 1 // socket.h:94:1: + AF_UNSPEC = 0 // socket.h:92:1: + AF_VSOCK = 40 // socket.h:135:1: + AF_WANPIPE = 25 // socket.h:120:1: + AF_X25 = 9 // socket.h:103:1: + AF_XDP = 44 // socket.h:139:1: + BIG_ENDIAN = 4321 // endian.h:28:1: + BYTE_ORDER = 1234 // endian.h:30:1: + FD_SETSIZE = 1024 // select.h:73:1: + FIOGETOWN = 0x8903 // sockios.h:8:1: + FIOSETOWN = 0x8901 // sockios.h:6:1: + INET6_ADDRSTRLEN = 46 // in.h:234:1: + INET_ADDRSTRLEN = 16 // in.h:233:1: + IN_CLASSA_HOST = 16777215 // in.h:169:1: + IN_CLASSA_MAX = 128 // in.h:170:1: + IN_CLASSA_NET = 0xff000000 // in.h:167:1: + IN_CLASSA_NSHIFT = 24 // in.h:168:1: + IN_CLASSB_HOST = 65535 // in.h:175:1: + IN_CLASSB_MAX = 65536 // in.h:176:1: + IN_CLASSB_NET = 0xffff0000 // in.h:173:1: + IN_CLASSB_NSHIFT = 16 // in.h:174:1: + IN_CLASSC_HOST = 255 // in.h:181:1: + IN_CLASSC_NET = 0xffffff00 // in.h:179:1: + IN_CLASSC_NSHIFT = 8 // in.h:180:1: + IN_LOOPBACKNET = 127 // in.h:197:1: + IPV6_2292DSTOPTS = 4 // in.h:171:1: + IPV6_2292HOPLIMIT = 8 // in.h:175:1: + IPV6_2292HOPOPTS = 3 // in.h:170:1: + IPV6_2292PKTINFO = 2 // in.h:169:1: + IPV6_2292PKTOPTIONS = 6 // in.h:173:1: + IPV6_2292RTHDR = 5 // in.h:172:1: + IPV6_ADDRFORM = 1 // in.h:168:1: + IPV6_ADDR_PREFERENCES = 72 // in.h:223:1: + IPV6_ADD_MEMBERSHIP = 20 // in.h:237:1: + IPV6_AUTHHDR = 10 // in.h:180:1: + IPV6_AUTOFLOWLABEL = 70 // in.h:220:1: + IPV6_CHECKSUM = 7 // in.h:174:1: + IPV6_DONTFRAG = 62 // in.h:214:1: + IPV6_DROP_MEMBERSHIP = 21 // in.h:238:1: + IPV6_DSTOPTS = 59 // in.h:211:1: + IPV6_FREEBIND = 78 // in.h:233:1: + IPV6_HDRINCL = 36 // in.h:198:1: + IPV6_HOPLIMIT = 52 // in.h:204:1: + IPV6_HOPOPTS = 54 // in.h:206:1: + IPV6_IPSEC_POLICY = 34 // in.h:196:1: + IPV6_JOIN_ANYCAST = 27 // in.h:192:1: + IPV6_JOIN_GROUP = 20 // in.h:185:1: + IPV6_LEAVE_ANYCAST = 28 // in.h:193:1: + IPV6_LEAVE_GROUP = 21 // in.h:186:1: + IPV6_MINHOPCOUNT = 73 // in.h:226:1: + IPV6_MTU = 24 // in.h:189:1: + IPV6_MTU_DISCOVER = 23 // in.h:188:1: + IPV6_MULTICAST_ALL = 29 // in.h:194:1: + IPV6_MULTICAST_HOPS = 18 // in.h:183:1: + IPV6_MULTICAST_IF = 17 // in.h:182:1: + IPV6_MULTICAST_LOOP = 19 // in.h:184:1: + IPV6_NEXTHOP = 9 // in.h:179:1: + IPV6_ORIGDSTADDR = 74 // in.h:228:1: + IPV6_PATHMTU = 61 // in.h:213:1: + IPV6_PKTINFO = 50 // in.h:202:1: + IPV6_PMTUDISC_DO = 2 // in.h:246:1: + IPV6_PMTUDISC_DONT = 0 // in.h:244:1: + IPV6_PMTUDISC_INTERFACE = 4 // in.h:248:1: + IPV6_PMTUDISC_OMIT = 5 // in.h:249:1: + IPV6_PMTUDISC_PROBE = 3 // in.h:247:1: + IPV6_PMTUDISC_WANT = 1 // in.h:245:1: + IPV6_RECVDSTOPTS = 58 // in.h:210:1: + IPV6_RECVERR = 25 // in.h:190:1: + IPV6_RECVFRAGSIZE = 77 // in.h:232:1: + IPV6_RECVHOPLIMIT = 51 // in.h:203:1: + IPV6_RECVHOPOPTS = 53 // in.h:205:1: + IPV6_RECVORIGDSTADDR = 74 // in.h:229:1: + IPV6_RECVPATHMTU = 60 // in.h:212:1: + IPV6_RECVPKTINFO = 49 // in.h:201:1: + IPV6_RECVRTHDR = 56 // in.h:208:1: + IPV6_RECVTCLASS = 66 // in.h:217:1: + IPV6_ROUTER_ALERT = 22 // in.h:187:1: + IPV6_ROUTER_ALERT_ISOLATE = 30 // in.h:195:1: + IPV6_RTHDR = 57 // in.h:209:1: + IPV6_RTHDRDSTOPTS = 55 // in.h:207:1: + IPV6_RTHDR_LOOSE = 0 // in.h:256:1: + IPV6_RTHDR_STRICT = 1 // in.h:257:1: + IPV6_RTHDR_TYPE_0 = 0 // in.h:259:1: + IPV6_RXDSTOPTS = 59 // in.h:241:1: + IPV6_RXHOPOPTS = 54 // in.h:240:1: + IPV6_TCLASS = 67 // in.h:218:1: + IPV6_TRANSPARENT = 75 // in.h:230:1: + IPV6_UNICAST_HOPS = 16 // in.h:181:1: + IPV6_UNICAST_IF = 76 // in.h:231:1: + IPV6_V6ONLY = 26 // in.h:191:1: + IPV6_XFRM_POLICY = 35 // in.h:197:1: + IP_ADD_MEMBERSHIP = 35 // in.h:121:1: + IP_ADD_SOURCE_MEMBERSHIP = 39 // in.h:125:1: + IP_BIND_ADDRESS_NO_PORT = 24 // in.h:103:1: + IP_BLOCK_SOURCE = 38 // in.h:124:1: + IP_CHECKSUM = 23 // in.h:102:1: + IP_DEFAULT_MULTICAST_LOOP = 1 // in.h:135:1: + IP_DEFAULT_MULTICAST_TTL = 1 // in.h:134:1: + IP_DROP_MEMBERSHIP = 36 // in.h:122:1: + IP_DROP_SOURCE_MEMBERSHIP = 40 // in.h:126:1: + IP_FREEBIND = 15 // in.h:89:1: + IP_HDRINCL = 3 // in.h:48:1: + IP_IPSEC_POLICY = 16 // in.h:90:1: + IP_MAX_MEMBERSHIPS = 20 // in.h:136:1: + IP_MINTTL = 21 // in.h:100:1: + IP_MSFILTER = 41 // in.h:127:1: + IP_MTU = 14 // in.h:88:1: + IP_MTU_DISCOVER = 10 // in.h:84:1: + IP_MULTICAST_ALL = 49 // in.h:128:1: + IP_MULTICAST_IF = 32 // in.h:118:1: + IP_MULTICAST_LOOP = 34 // in.h:120:1: + IP_MULTICAST_TTL = 33 // in.h:119:1: + IP_NODEFRAG = 22 // in.h:101:1: + IP_OPTIONS = 4 // in.h:47:1: + IP_ORIGDSTADDR = 20 // in.h:97:1: + IP_PASSSEC = 18 // in.h:92:1: + IP_PKTINFO = 8 // in.h:81:1: + IP_PKTOPTIONS = 9 // in.h:82:1: + IP_PMTUDISC = 10 // in.h:83:1: + IP_PMTUDISC_DO = 2 // in.h:109:1: + IP_PMTUDISC_DONT = 0 // in.h:107:1: + IP_PMTUDISC_INTERFACE = 4 // in.h:114:1: + IP_PMTUDISC_OMIT = 5 // in.h:116:1: + IP_PMTUDISC_PROBE = 3 // in.h:110:1: + IP_PMTUDISC_WANT = 1 // in.h:108:1: + IP_RECVERR = 11 // in.h:85:1: + IP_RECVFRAGSIZE = 25 // in.h:104:1: + IP_RECVOPTS = 6 // in.h:51:1: + IP_RECVORIGDSTADDR = 20 // in.h:98:1: + IP_RECVRETOPTS = 7 // in.h:53:1: + IP_RECVTOS = 13 // in.h:87:1: + IP_RECVTTL = 12 // in.h:86:1: + IP_RETOPTS = 7 // in.h:54:1: + IP_ROUTER_ALERT = 5 // in.h:80:1: + IP_TOS = 1 // in.h:49:1: + IP_TRANSPARENT = 19 // in.h:93:1: + IP_TTL = 2 // in.h:50:1: + IP_UNBLOCK_SOURCE = 37 // in.h:123:1: + IP_UNICAST_IF = 50 // in.h:129:1: + IP_XFRM_POLICY = 17 // in.h:91:1: + LITTLE_ENDIAN = 1234 // endian.h:27:1: + MCAST_BLOCK_SOURCE = 43 // in.h:67:1: + MCAST_EXCLUDE = 0 // in.h:76:1: + MCAST_INCLUDE = 1 // in.h:77:1: + MCAST_JOIN_GROUP = 42 // in.h:66:1: + MCAST_JOIN_SOURCE_GROUP = 46 // in.h:70:1: + MCAST_LEAVE_GROUP = 45 // in.h:69:1: + MCAST_LEAVE_SOURCE_GROUP = 47 // in.h:71:1: + MCAST_MSFILTER = 48 // in.h:72:1: + MCAST_UNBLOCK_SOURCE = 44 // in.h:68:1: + PDP_ENDIAN = 3412 // endian.h:29:1: + PF_ALG = 38 // socket.h:82:1: + PF_APPLETALK = 5 // socket.h:48:1: + PF_ASH = 18 // socket.h:62:1: + PF_ATMPVC = 8 // socket.h:51:1: + PF_ATMSVC = 20 // socket.h:64:1: + PF_AX25 = 3 // socket.h:46:1: + PF_BLUETOOTH = 31 // socket.h:75:1: + PF_BRIDGE = 7 // socket.h:50:1: + PF_CAIF = 37 // socket.h:81:1: + PF_CAN = 29 // socket.h:73:1: + PF_DECnet = 12 // socket.h:55:1: + PF_ECONET = 19 // socket.h:63:1: + PF_FILE = 1 // socket.h:44:1: + PF_IB = 27 // socket.h:71:1: + PF_IEEE802154 = 36 // socket.h:80:1: + PF_INET = 2 // socket.h:45:1: + PF_INET6 = 10 // socket.h:53:1: + PF_IPX = 4 // socket.h:47:1: + PF_IRDA = 23 // socket.h:67:1: + PF_ISDN = 34 // socket.h:78:1: + PF_IUCV = 32 // socket.h:76:1: + PF_KCM = 41 // socket.h:85:1: + PF_KEY = 15 // socket.h:58:1: + PF_LLC = 26 // socket.h:70:1: + PF_LOCAL = 1 // socket.h:42:1: + PF_MAX = 45 // socket.h:89:1: + PF_MPLS = 28 // socket.h:72:1: + PF_NETBEUI = 13 // socket.h:56:1: + PF_NETLINK = 16 // socket.h:59:1: + PF_NETROM = 6 // socket.h:49:1: + PF_NFC = 39 // socket.h:83:1: + PF_PACKET = 17 // socket.h:61:1: + PF_PHONET = 35 // socket.h:79:1: + PF_PPPOX = 24 // socket.h:68:1: + PF_QIPCRTR = 42 // socket.h:86:1: + PF_RDS = 21 // socket.h:65:1: + PF_ROSE = 11 // socket.h:54:1: + PF_ROUTE = 16 // socket.h:60:1: + PF_RXRPC = 33 // socket.h:77:1: + PF_SECURITY = 14 // socket.h:57:1: + PF_SMC = 43 // socket.h:87:1: + PF_SNA = 22 // socket.h:66:1: + PF_TIPC = 30 // socket.h:74:1: + PF_UNIX = 1 // socket.h:43:1: + PF_UNSPEC = 0 // socket.h:41:1: + PF_VSOCK = 40 // socket.h:84:1: + PF_WANPIPE = 25 // socket.h:69:1: + PF_X25 = 9 // socket.h:52:1: + PF_XDP = 44 // socket.h:88:1: + SCM_TIMESTAMP = 29 // socket.h:140:1: + SCM_TIMESTAMPING = 37 // socket.h:142:1: + SCM_TIMESTAMPING_OPT_STATS = 54 // socket.h:90:1: + SCM_TIMESTAMPING_PKTINFO = 58 // socket.h:98:1: + SCM_TIMESTAMPNS = 35 // socket.h:141:1: + SCM_TXTIME = 61 // socket.h:105:1: + SCM_WIFI_STATUS = 41 // socket.h:64:1: + SIOCATMARK = 0x8905 // sockios.h:10:1: + SIOCGPGRP = 0x8904 // sockios.h:9:1: + SIOCGSTAMP = 0x8906 // sockios.h:11:1: + SIOCGSTAMPNS = 0x8907 // sockios.h:12:1: + SIOCSPGRP = 0x8902 // sockios.h:7:1: + SOL_AAL = 265 // socket.h:151:1: + SOL_ALG = 279 // socket.h:165:1: + SOL_ATM = 264 // socket.h:150:1: + SOL_BLUETOOTH = 274 // socket.h:160:1: + SOL_CAIF = 278 // socket.h:164:1: + SOL_DCCP = 269 // socket.h:155:1: + SOL_DECNET = 261 // socket.h:147:1: + SOL_ICMPV6 = 58 // in.h:253:1: + SOL_IP = 0 // in.h:132:1: + SOL_IPV6 = 41 // in.h:252:1: + SOL_IRDA = 266 // socket.h:152:1: + SOL_IUCV = 277 // socket.h:163:1: + SOL_KCM = 281 // socket.h:167:1: + SOL_LLC = 268 // socket.h:154:1: + SOL_NETBEUI = 267 // socket.h:153:1: + SOL_NETLINK = 270 // socket.h:156:1: + SOL_NFC = 280 // socket.h:166:1: + SOL_PACKET = 263 // socket.h:149:1: + SOL_PNPIPE = 275 // socket.h:161:1: + SOL_PPPOL2TP = 273 // socket.h:159:1: + SOL_RAW = 255 // socket.h:146:1: + SOL_RDS = 276 // socket.h:162:1: + SOL_RXRPC = 272 // socket.h:158:1: + SOL_SOCKET = 1 // socket.h:9:1: + SOL_TIPC = 271 // socket.h:157:1: + SOL_TLS = 282 // socket.h:168:1: + SOL_X25 = 262 // socket.h:148:1: + SOL_XDP = 283 // socket.h:169:1: + SOMAXCONN = 4096 // socket.h:172:1: + SO_ACCEPTCONN = 30 // socket.h:51:1: + SO_ATTACH_BPF = 50 // socket.h:82:1: + SO_ATTACH_FILTER = 26 // socket.h:45:1: + SO_ATTACH_REUSEPORT_CBPF = 51 // socket.h:85:1: + SO_ATTACH_REUSEPORT_EBPF = 52 // socket.h:86:1: + SO_BINDTODEVICE = 25 // socket.h:42:1: + SO_BINDTOIFINDEX = 62 // socket.h:107:1: + SO_BPF_EXTENSIONS = 48 // socket.h:78:1: + SO_BROADCAST = 6 // socket.h:16:1: + SO_BSDCOMPAT = 14 // socket.h:26:1: + SO_BUSY_POLL = 46 // socket.h:74:1: + SO_CNX_ADVICE = 53 // socket.h:88:1: + SO_COOKIE = 57 // socket.h:96:1: + SO_DEBUG = 1 // socket.h:11:1: + SO_DETACH_BPF = 27 // socket.h:83:1: + SO_DETACH_FILTER = 27 // socket.h:46:1: + SO_DETACH_REUSEPORT_BPF = 68 // socket.h:120:1: + SO_DOMAIN = 39 // socket.h:59:1: + SO_DONTROUTE = 5 // socket.h:15:1: + SO_ERROR = 4 // socket.h:14:1: + SO_GET_FILTER = 26 // socket.h:47:1: + SO_INCOMING_CPU = 49 // socket.h:80:1: + SO_INCOMING_NAPI_ID = 56 // socket.h:94:1: + SO_KEEPALIVE = 9 // socket.h:21:1: + SO_LINGER = 13 // socket.h:25:1: + SO_LOCK_FILTER = 44 // socket.h:70:1: + SO_MARK = 36 // socket.h:56:1: + SO_MAX_PACING_RATE = 47 // socket.h:76:1: + SO_MEMINFO = 55 // socket.h:92:1: + SO_NOFCS = 43 // socket.h:68:1: + SO_NO_CHECK = 11 // socket.h:23:1: + SO_OOBINLINE = 10 // socket.h:22:1: + SO_PASSCRED = 16 // socket.h:29:1: + SO_PASSSEC = 34 // socket.h:54:1: + SO_PEEK_OFF = 42 // socket.h:65:1: + SO_PEERCRED = 17 // socket.h:30:1: + SO_PEERGROUPS = 59 // socket.h:100:1: + SO_PEERNAME = 28 // socket.h:49:1: + SO_PEERSEC = 31 // socket.h:53:1: + SO_PRIORITY = 12 // socket.h:24:1: + SO_PROTOCOL = 38 // socket.h:58:1: + SO_RCVBUF = 8 // socket.h:18:1: + SO_RCVBUFFORCE = 33 // socket.h:20:1: + SO_RCVLOWAT = 18 // socket.h:31:1: + SO_RCVTIMEO = 20 // socket.h:129:1: + SO_RCVTIMEO_NEW = 66 // socket.h:117:1: + SO_RCVTIMEO_OLD = 20 // socket.h:33:1: + SO_REUSEADDR = 2 // socket.h:12:1: + SO_REUSEPORT = 15 // socket.h:27:1: + SO_RXQ_OVFL = 40 // socket.h:61:1: + SO_SECURITY_AUTHENTICATION = 22 // socket.h:38:1: + SO_SECURITY_ENCRYPTION_NETWORK = 24 // socket.h:40:1: + SO_SECURITY_ENCRYPTION_TRANSPORT = 23 // socket.h:39:1: + SO_SELECT_ERR_QUEUE = 45 // socket.h:72:1: + SO_SNDBUF = 7 // socket.h:17:1: + SO_SNDBUFFORCE = 32 // socket.h:19:1: + SO_SNDLOWAT = 19 // socket.h:32:1: + SO_SNDTIMEO = 21 // socket.h:130:1: + SO_SNDTIMEO_NEW = 67 // socket.h:118:1: + SO_SNDTIMEO_OLD = 21 // socket.h:34:1: + SO_TIMESTAMP = 29 // socket.h:125:1: + SO_TIMESTAMPING = 37 // socket.h:127:1: + SO_TIMESTAMPING_NEW = 65 // socket.h:115:1: + SO_TIMESTAMPING_OLD = 37 // socket.h:111:1: + SO_TIMESTAMPNS = 35 // socket.h:126:1: + SO_TIMESTAMPNS_NEW = 64 // socket.h:114:1: + SO_TIMESTAMPNS_OLD = 35 // socket.h:110:1: + SO_TIMESTAMP_NEW = 63 // socket.h:113:1: + SO_TIMESTAMP_OLD = 29 // socket.h:109:1: + SO_TXTIME = 61 // socket.h:104:1: + SO_TYPE = 3 // socket.h:13:1: + SO_WIFI_STATUS = 41 // socket.h:63:1: + SO_ZEROCOPY = 60 // socket.h:102:1: + X_ASM_X86_POSIX_TYPES_64_H = 0 // posix_types_64.h:3:1: + X_ATFILE_SOURCE = 1 // features.h:342:1: + X_BITS_BYTESWAP_H = 1 // byteswap.h:24:1: + X_BITS_ENDIANNESS_H = 1 // endianness.h:2:1: + X_BITS_ENDIAN_H = 1 // endian.h:20:1: + X_BITS_PTHREADTYPES_ARCH_H = 1 // pthreadtypes-arch.h:19:1: + X_BITS_PTHREADTYPES_COMMON_H = 1 // pthreadtypes.h:20:1: + X_BITS_SOCKADDR_H = 1 // sockaddr.h:24:1: + X_BITS_STDINT_INTN_H = 1 // stdint-intn.h:20:1: + X_BITS_STDINT_UINTN_H = 1 // stdint-uintn.h:20:1: + X_BITS_TIME64_H = 1 // time64.h:24:1: + X_BITS_TYPESIZES_H = 1 // typesizes.h:24:1: + X_BITS_TYPES_H = 1 // types.h:24:1: + X_BITS_UINTN_IDENTITY_H = 1 // uintn-identity.h:24:1: + X_BSD_SIZE_T_ = 0 // stddef.h:189:1: + X_BSD_SIZE_T_DEFINED_ = 0 // stddef.h:192:1: + X_DEFAULT_SOURCE = 1 // features.h:227:1: + X_ENDIAN_H = 1 // endian.h:19:1: + X_FEATURES_H = 1 // features.h:19:1: + X_FILE_OFFSET_BITS = 64 // :25:1: + X_GCC_SIZE_T = 0 // stddef.h:195:1: + X_LINUX_POSIX_TYPES_H = 0 // posix_types.h:3:1: + X_LP64 = 1 // :284:1: + X_NETINET_IN_H = 1 // in.h:19:1: + X_POSIX_C_SOURCE = 200809 // features.h:281:1: + X_POSIX_SOURCE = 1 // features.h:279:1: + X_RWLOCK_INTERNAL_H = 0 // struct_rwlock.h:21:1: + X_SIZET_ = 0 // stddef.h:196:1: + X_SIZE_T = 0 // stddef.h:183:1: + X_SIZE_T_ = 0 // stddef.h:188:1: + X_SIZE_T_DECLARED = 0 // stddef.h:193:1: + X_SIZE_T_DEFINED = 0 // stddef.h:191:1: + X_SIZE_T_DEFINED_ = 0 // stddef.h:190:1: + X_SS_SIZE = 128 // sockaddr.h:40:1: + X_STDC_PREDEF_H = 1 // :162:1: + X_STRUCT_TIMESPEC = 1 // struct_timespec.h:3:1: + X_SYS_CDEFS_H = 1 // cdefs.h:19:1: + X_SYS_SELECT_H = 1 // select.h:22:1: + X_SYS_SIZE_T_H = 0 // stddef.h:184:1: + X_SYS_SOCKET_H = 1 // socket.h:20:1: + X_SYS_TYPES_H = 1 // types.h:23:1: + X_THREAD_MUTEX_INTERNAL_H = 1 // struct_mutex.h:20:1: + X_THREAD_SHARED_TYPES_H = 1 // thread-shared-types.h:20:1: + X_T_SIZE = 0 // stddef.h:186:1: + X_T_SIZE_ = 0 // stddef.h:185:1: + Linux = 1 // :231:1: + Unix = 1 // :177:1: +) + +// Standard well-known ports. +const ( /* in.h:122:1: */ + IPPORT_ECHO = 7 // Echo service. + IPPORT_DISCARD = 9 // Discard transmissions service. + IPPORT_SYSTAT = 11 // System status service. + IPPORT_DAYTIME = 13 // Time of day service. + IPPORT_NETSTAT = 15 // Network status service. + IPPORT_FTP = 21 // File Transfer Protocol. + IPPORT_TELNET = 23 // Telnet protocol. + IPPORT_SMTP = 25 // Simple Mail Transfer Protocol. + IPPORT_TIMESERVER = 37 // Timeserver service. + IPPORT_NAMESERVER = 42 // Domain Name Service. + IPPORT_WHOIS = 43 // Internet Whois service. + IPPORT_MTP = 57 + + IPPORT_TFTP = 69 // Trivial File Transfer Protocol. + IPPORT_RJE = 77 + IPPORT_FINGER = 79 // Finger service. + IPPORT_TTYLINK = 87 + IPPORT_SUPDUP = 95 // SUPDUP protocol. + + IPPORT_EXECSERVER = 512 // execd service. + IPPORT_LOGINSERVER = 513 // rlogind service. + IPPORT_CMDSERVER = 514 + IPPORT_EFSSERVER = 520 + + // UDP ports. + IPPORT_BIFFUDP = 512 + IPPORT_WHOSERVER = 513 + IPPORT_ROUTESERVER = 520 + + // Ports less than this value are reserved for privileged processes. + IPPORT_RESERVED = 1024 + + // Ports greater this value are reserved for (non-privileged) servers. + IPPORT_USERRESERVED = 5000 +) + +// Options for use with `getsockopt' and `setsockopt' at the IPv6 level. +// The first word in the comment at the right is the data type used; +// "bool" means a boolean value stored in an `int'. + +// Advanced API (RFC3542) (1). + +// Advanced API (RFC3542) (2). + +// RFC5014. + +// RFC5082. + +// Obsolete synonyms for the above. + +// IPV6_MTU_DISCOVER values. + +// Socket level values for IPv6. + +// Routing header options for IPv6. + +// Standard well-defined IP protocols. +const ( /* in.h:40:1: */ + IPPROTO_IP = 0 // Dummy protocol for TCP. + IPPROTO_ICMP = 1 // Internet Control Message Protocol. + IPPROTO_IGMP = 2 // Internet Group Management Protocol. + IPPROTO_IPIP = 4 // IPIP tunnels (older KA9Q tunnels use 94). + IPPROTO_TCP = 6 // Transmission Control Protocol. + IPPROTO_EGP = 8 // Exterior Gateway Protocol. + IPPROTO_PUP = 12 // PUP protocol. + IPPROTO_UDP = 17 // User Datagram Protocol. + IPPROTO_IDP = 22 // XNS IDP protocol. + IPPROTO_TP = 29 // SO Transport Protocol Class 4. + IPPROTO_DCCP = 33 // Datagram Congestion Control Protocol. + IPPROTO_IPV6 = 41 // IPv6 header. + IPPROTO_RSVP = 46 // Reservation Protocol. + IPPROTO_GRE = 47 // General Routing Encapsulation. + IPPROTO_ESP = 50 // encapsulating security payload. + IPPROTO_AH = 51 // authentication header. + IPPROTO_MTP = 92 // Multicast Transport Protocol. + IPPROTO_BEETPH = 94 // IP option pseudo header for BEET. + IPPROTO_ENCAP = 98 // Encapsulation Header. + IPPROTO_PIM = 103 // Protocol Independent Multicast. + IPPROTO_COMP = 108 // Compression Header Protocol. + IPPROTO_SCTP = 132 // Stream Control Transmission Protocol. + IPPROTO_UDPLITE = 136 // UDP-Lite protocol. + IPPROTO_MPLS = 137 // MPLS in IP. + IPPROTO_RAW = 255 // Raw IP packets. + IPPROTO_MAX = 256 +) + +// If __USE_KERNEL_IPV6_DEFS is 1 then the user has included the kernel +// +// network headers first and we should use those ABI-identical definitions +// instead of our own, otherwise 0. +const ( /* in.h:99:1: */ + IPPROTO_HOPOPTS = 0 // IPv6 Hop-by-Hop options. + IPPROTO_ROUTING = 43 // IPv6 routing header. + IPPROTO_FRAGMENT = 44 // IPv6 fragmentation header. + IPPROTO_ICMPV6 = 58 // ICMPv6. + IPPROTO_NONE = 59 // IPv6 no next header. + IPPROTO_DSTOPTS = 60 // IPv6 destination options. + IPPROTO_MH = 135 +) + +// Bits in the FLAGS argument to `send', `recv', et al. +const ( /* socket.h:200:1: */ + MSG_OOB = 1 // Process out-of-band data. + MSG_PEEK = 2 // Peek at incoming messages. + MSG_DONTROUTE = 4 // Don't use local routing. + MSG_CTRUNC = 8 // Control data lost before delivery. + MSG_PROXY = 16 // Supply or ask second address. + MSG_TRUNC = 32 + MSG_DONTWAIT = 64 // Nonblocking IO. + MSG_EOR = 128 // End of record. + MSG_WAITALL = 256 // Wait for a full request. + MSG_FIN = 512 + MSG_SYN = 1024 + MSG_CONFIRM = 2048 // Confirm path validity. + MSG_RST = 4096 + MSG_ERRQUEUE = 8192 // Fetch message from error queue. + MSG_NOSIGNAL = 16384 // Do not generate SIGPIPE. + MSG_MORE = 32768 // Sender will send more. + MSG_WAITFORONE = 65536 // Wait for at least one packet to return. + MSG_BATCH = 262144 // sendmmsg: more messages coming. + MSG_ZEROCOPY = 67108864 // Use user data in kernel path. + MSG_FASTOPEN = 536870912 // Send data in TCP SYN. + + MSG_CMSG_CLOEXEC = 1073741824 +) + +// Socket level message types. This must match the definitions in +// +// . +const ( /* socket.h:332:1: */ + SCM_RIGHTS = 1 +) + +// Get the architecture-dependent definition of enum __socket_type. +// Define enum __socket_type for generic Linux. +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Types of sockets. +const ( /* socket_type.h:24:1: */ + SOCK_STREAM = 1 // Sequenced, reliable, connection-based + // byte streams. + SOCK_DGRAM = 2 // Connectionless, unreliable datagrams + // of fixed maximum length. + SOCK_RAW = 3 // Raw protocol interface. + SOCK_RDM = 4 // Reliably-delivered messages. + SOCK_SEQPACKET = 5 // Sequenced, reliable, connection-based, + // datagrams of fixed maximum length. + SOCK_DCCP = 6 // Datagram Congestion Control Protocol. + SOCK_PACKET = 10 // Linux specific way of getting packets + // at the dev level. For writing rarp and + // other similar things on the user level. + + // Flags to be ORed into the type parameter of socket and socketpair and + // used for the flags parameter of paccept. + + SOCK_CLOEXEC = 524288 // Atomically set close-on-exec flag for the + // new descriptor(s). + SOCK_NONBLOCK = 2048 +) + +// The following constants should be used for the second parameter of +// +// `shutdown'. +const ( /* socket.h:41:1: */ + SHUT_RD = 0 // No more receptions. + SHUT_WR = 1 // No more transmissions. + SHUT_RDWR = 2 +) + +type Ptrdiff_t = int64 /* :3:26 */ + +type Size_t = uint64 /* :9:23 */ + +type Wchar_t = int32 /* :15:24 */ + +type X__int128_t = struct { + Flo int64 + Fhi int64 +} /* :21:43 */ // must match modernc.org/mathutil.Int128 +type X__uint128_t = struct { + Flo uint64 + Fhi uint64 +} /* :22:44 */ // must match modernc.org/mathutil.Int128 + +type X__builtin_va_list = uintptr /* :46:14 */ +type X__float128 = float64 /* :47:21 */ + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// These are defined by the user (or the compiler) +// to specify the desired environment: +// +// __STRICT_ANSI__ ISO Standard C. +// _ISOC99_SOURCE Extensions to ISO C89 from ISO C99. +// _ISOC11_SOURCE Extensions to ISO C99 from ISO C11. +// _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X. +// __STDC_WANT_LIB_EXT2__ +// Extensions to ISO C99 from TR 27431-2:2010. +// __STDC_WANT_IEC_60559_BFP_EXT__ +// Extensions to ISO C11 from TS 18661-1:2014. +// __STDC_WANT_IEC_60559_FUNCS_EXT__ +// Extensions to ISO C11 from TS 18661-4:2015. +// __STDC_WANT_IEC_60559_TYPES_EXT__ +// Extensions to ISO C11 from TS 18661-3:2015. +// +// _POSIX_SOURCE IEEE Std 1003.1. +// _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2; +// if >=199309L, add IEEE Std 1003.1b-1993; +// if >=199506L, add IEEE Std 1003.1c-1995; +// if >=200112L, all of IEEE 1003.1-2004 +// if >=200809L, all of IEEE 1003.1-2008 +// _XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if +// Single Unix conformance is wanted, to 600 for the +// sixth revision, to 700 for the seventh revision. +// _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions. +// _LARGEFILE_SOURCE Some more functions for correct standard I/O. +// _LARGEFILE64_SOURCE Additional functionality from LFS for large files. +// _FILE_OFFSET_BITS=N Select default filesystem interface. +// _ATFILE_SOURCE Additional *at interfaces. +// _GNU_SOURCE All of the above, plus GNU extensions. +// _DEFAULT_SOURCE The default set of features (taking precedence over +// __STRICT_ANSI__). +// +// _FORTIFY_SOURCE Add security hardening to many library functions. +// Set to 1 or 2; 2 performs stricter checks than 1. +// +// _REENTRANT, _THREAD_SAFE +// Obsolete; equivalent to _POSIX_C_SOURCE=199506L. +// +// The `-ansi' switch to the GNU C compiler, and standards conformance +// options such as `-std=c99', define __STRICT_ANSI__. If none of +// these are defined, or if _DEFAULT_SOURCE is defined, the default is +// to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to +// 200809L, as well as enabling miscellaneous functions from BSD and +// SVID. If more than one of these are defined, they accumulate. For +// example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together +// give you ISO C, 1003.1, and 1003.2, but nothing else. +// +// These are defined by this file and are used by the +// header files to decide what to declare or define: +// +// __GLIBC_USE (F) Define things from feature set F. This is defined +// to 1 or 0; the subsequent macros are either defined +// or undefined, and those tests should be moved to +// __GLIBC_USE. +// __USE_ISOC11 Define ISO C11 things. +// __USE_ISOC99 Define ISO C99 things. +// __USE_ISOC95 Define ISO C90 AMD1 (C95) things. +// __USE_ISOCXX11 Define ISO C++11 things. +// __USE_POSIX Define IEEE Std 1003.1 things. +// __USE_POSIX2 Define IEEE Std 1003.2 things. +// __USE_POSIX199309 Define IEEE Std 1003.1, and .1b things. +// __USE_POSIX199506 Define IEEE Std 1003.1, .1b, .1c and .1i things. +// __USE_XOPEN Define XPG things. +// __USE_XOPEN_EXTENDED Define X/Open Unix things. +// __USE_UNIX98 Define Single Unix V2 things. +// __USE_XOPEN2K Define XPG6 things. +// __USE_XOPEN2KXSI Define XPG6 XSI things. +// __USE_XOPEN2K8 Define XPG7 things. +// __USE_XOPEN2K8XSI Define XPG7 XSI things. +// __USE_LARGEFILE Define correct standard I/O things. +// __USE_LARGEFILE64 Define LFS things with separate names. +// __USE_FILE_OFFSET64 Define 64bit interface as default. +// __USE_MISC Define things from 4.3BSD or System V Unix. +// __USE_ATFILE Define *at interfaces and AT_* constants for them. +// __USE_GNU Define GNU extensions. +// __USE_FORTIFY_LEVEL Additional security measures used, according to level. +// +// The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are +// defined by this file unconditionally. `__GNU_LIBRARY__' is provided +// only for compatibility. All new code should use the other symbols +// to test for features. +// +// All macros listed above as possibly being defined by this file are +// explicitly undefined if they are not explicitly defined. +// Feature-test macros that are not defined by the user or compiler +// but are implied by the other feature-test macros defined (or by the +// lack of any definitions) are defined by the file. +// +// ISO C feature test macros depend on the definition of the macro +// when an affected header is included, not when the first system +// header is included, and so they are handled in +// , which does not have a multiple include +// guard. Feature test macros that can be handled from the first +// system header included are handled here. + +// Undefine everything, so we get a clean slate. + +// Suppress kernel-name space pollution unless user expressedly asks +// for it. + +// Convenience macro to test the version of gcc. +// Use like this: +// #if __GNUC_PREREQ (2,8) +// ... code requiring gcc 2.8 or later ... +// #endif +// Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was +// added in 2.0. + +// Similarly for clang. Features added to GCC after version 4.2 may +// or may not also be available in clang, and clang's definitions of +// __GNUC(_MINOR)__ are fixed at 4 and 2 respectively. Not all such +// features can be queried via __has_extension/__has_feature. + +// Whether to use feature set F. + +// _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for +// _DEFAULT_SOURCE. If _DEFAULT_SOURCE is present we do not +// issue a warning; the expectation is that the source is being +// transitioned to use the new macro. + +// If _GNU_SOURCE was defined by the user, turn on all the other features. + +// If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined, +// define _DEFAULT_SOURCE. + +// This is to enable the ISO C2X extension. + +// This is to enable the ISO C11 extension. + +// This is to enable the ISO C99 extension. + +// This is to enable the ISO C90 Amendment 1:1995 extension. + +// If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE +// is defined, use POSIX.1-2008 (or another version depending on +// _XOPEN_SOURCE). + +// Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be +// defined in all multithreaded code. GNU libc has not required this +// for many years. We now treat them as compatibility synonyms for +// _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with +// comprehensive support for multithreaded code. Using them never +// lowers the selected level of POSIX conformance, only raises it. + +// The function 'gets' existed in C89, but is impossible to use +// safely. It has been removed from ISO C11 and ISO C++14. Note: for +// compatibility with various implementations of , this test +// must consider only the value of __cplusplus when compiling C++. + +// GNU formerly extended the scanf functions with modified format +// specifiers %as, %aS, and %a[...] that allocate a buffer for the +// input using malloc. This extension conflicts with ISO C99, which +// defines %a as a standalone format specifier that reads a floating- +// point number; moreover, POSIX.1-2008 provides the same feature +// using the modifier letter 'm' instead (%ms, %mS, %m[...]). +// +// We now follow C99 unless GNU extensions are active and the compiler +// is specifically in C89 or C++98 mode (strict or not). For +// instance, with GCC, -std=gnu11 will have C99-compliant scanf with +// or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the +// old extension. + +// Get definitions of __STDC_* predefined macros, if the compiler has +// not preincluded this header automatically. +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// This macro indicates that the installed library is the GNU C Library. +// For historic reasons the value now is 6 and this will stay from now +// on. The use of this variable is deprecated. Use __GLIBC__ and +// __GLIBC_MINOR__ now (see below) when you want to test for a specific +// GNU C library version and use the values in to get +// the sonames of the shared libraries. + +// Major and minor version number of the GNU C library package. Use +// these macros to test for features in specific releases. + +// This is here only because every header file already includes this one. +// Copyright (C) 1992-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// We are almost always included from features.h. + +// The GNU libc does not support any K&R compilers or the traditional mode +// of ISO C compilers anymore. Check for some of the combinations not +// anymore supported. + +// Some user header file might have defined this before. + +// All functions, except those with callbacks or those that +// synchronize memory, are leaf functions. + +// GCC can always grok prototypes. For C++ programs we add throw() +// to help it optimize the function calls. But this works only with +// gcc 2.8.x and egcs. For gcc 3.2 and up we even mark C functions +// as non-throwing using a function attribute since programs can use +// the -fexceptions options for C code as well. + +// Compilers that are not clang may object to +// #if defined __clang__ && __has_extension(...) +// even though they do not need to evaluate the right-hand side of the &&. + +// These two macros are not used in glibc anymore. They are kept here +// only because some other projects expect the macros to be defined. + +// For these things, GCC behaves the ANSI way normally, +// and the non-ANSI way under -traditional. + +// This is not a typedef so `const __ptr_t' does the right thing. + +// C++ needs to know that types and declarations are C, not C++. + +// Fortify support. + +// Support for flexible arrays. +// Headers that should use flexible arrays only if they're "real" +// (e.g. only if they won't affect sizeof()) should test +// #if __glibc_c99_flexarr_available. + +// __asm__ ("xyz") is used throughout the headers to rename functions +// at the assembly language level. This is wrapped by the __REDIRECT +// macro, in order to support compilers that can do this some other +// way. When compilers don't support asm-names at all, we have to do +// preprocessor tricks instead (which don't have exactly the right +// semantics, but it's the best we can do). +// +// Example: +// int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid); + +// +// #elif __SOME_OTHER_COMPILER__ +// +// # define __REDIRECT(name, proto, alias) name proto; _Pragma("let " #name " = " #alias) + +// GCC has various useful declarations that can be made with the +// `__attribute__' syntax. All of the ways we use this do fine if +// they are omitted for compilers that don't understand it. + +// At some point during the gcc 2.96 development the `malloc' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// Tell the compiler which arguments to an allocation function +// indicate the size of the allocation. + +// At some point during the gcc 2.96 development the `pure' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// This declaration tells the compiler that the value is constant. + +// At some point during the gcc 3.1 development the `used' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// Since version 3.2, gcc allows marking deprecated functions. + +// Since version 4.5, gcc also allows one to specify the message printed +// when a deprecated function is used. clang claims to be gcc 4.2, but +// may also support this feature. + +// At some point during the gcc 2.8 development the `format_arg' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. +// If several `format_arg' attributes are given for the same function, in +// gcc-3.0 and older, all but the last one are ignored. In newer gccs, +// all designated arguments are considered. + +// At some point during the gcc 2.97 development the `strfmon' format +// attribute for functions was introduced. We don't want to use it +// unconditionally (although this would be possible) since it +// generates warnings. + +// The nonull function attribute allows to mark pointer parameters which +// must not be NULL. + +// If fortification mode, we warn about unused results of certain +// function calls which can lead to problems. + +// Forces a function to be always inlined. +// The Linux kernel defines __always_inline in stddef.h (283d7573), and +// it conflicts with this definition. Therefore undefine it first to +// allow either header to be included first. + +// Associate error messages with the source location of the call site rather +// than with the source location inside the function. + +// GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99 +// inline semantics, unless -fgnu89-inline is used. Using __GNUC_STDC_INLINE__ +// or __GNUC_GNU_INLINE is not a good enough check for gcc because gcc versions +// older than 4.3 may define these macros and still not guarantee GNU inlining +// semantics. +// +// clang++ identifies itself as gcc-4.2, but has support for GNU inlining +// semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and +// __GNUC_GNU_INLINE__ macro definitions. + +// GCC 4.3 and above allow passing all anonymous arguments of an +// __extern_always_inline function to some other vararg function. + +// It is possible to compile containing GCC extensions even if GCC is +// run in pedantic mode if the uses are carefully marked using the +// `__extension__' keyword. But this is not generally available before +// version 2.8. + +// __restrict is known in EGCS 1.2 and above. + +// ISO C99 also allows to declare arrays as non-overlapping. The syntax is +// array_name[restrict] +// GCC 3.1 supports this. + +// Describes a char array whose address can safely be passed as the first +// argument to strncpy and strncat, as the char array is not necessarily +// a NUL-terminated string. + +// Undefine (also defined in libc-symbols.h). +// Copies attributes from the declaration or type referenced by +// the argument. + +// Determine the wordsize from the preprocessor defines. + +// Both x86-64 and x32 use the 64-bit system call interface. +// Properties of long double type. ldbl-96 version. +// Copyright (C) 2016-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// long double is distinct from double, so there is nothing to +// define here. + +// __glibc_macro_warning (MESSAGE) issues warning MESSAGE. This is +// intended for use in preprocessor macros. +// +// Note: MESSAGE must be a _single_ string; concatenation of string +// literals is not supported. + +// Generic selection (ISO C11) is a C-only feature, available in GCC +// since version 4.9. Previous versions do not provide generic +// selection, even though they might set __STDC_VERSION__ to 201112L, +// when in -std=c11 mode. Thus, we must check for !defined __GNUC__ +// when testing __STDC_VERSION__ for generic selection support. +// On the other hand, Clang also defines __GNUC__, so a clang-specific +// check is required to enable the use of generic selection. + +// If we don't have __REDIRECT, prototypes will be missing if +// __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64]. + +// Decide whether we can define 'extern inline' functions in headers. + +// This is here only because every header file already includes this one. +// Get the definitions of all the appropriate `__stub_FUNCTION' symbols. +// contains `#define __stub_FUNCTION' when FUNCTION is a stub +// that will always return failure (and set errno to ENOSYS). +// This file is automatically generated. +// This file selects the right generated file of `__stub_FUNCTION' macros +// based on the architecture being compiled for. + +// This file is automatically generated. +// It defines a symbol `__stub_FUNCTION' for each function +// in the C library which is a stub, meaning it will fail +// every time called, usually setting errno to ENOSYS. + +// Define uintN_t types. +// Copyright (C) 2017-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Determine the wordsize from the preprocessor defines. + +// Both x86-64 and x32 use the 64-bit system call interface. +// Bit size of the time_t type at glibc build time, x86-64 and x32 case. +// Copyright (C) 2018-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// For others, time size is word size. + +// Convenience types. +type X__u_char = uint8 /* types.h:31:23 */ +type X__u_short = uint16 /* types.h:32:28 */ +type X__u_int = uint32 /* types.h:33:22 */ +type X__u_long = uint64 /* types.h:34:27 */ + +// Fixed-size types, underlying types depend on word size and compiler. +type X__int8_t = int8 /* types.h:37:21 */ +type X__uint8_t = uint8 /* types.h:38:23 */ +type X__int16_t = int16 /* types.h:39:26 */ +type X__uint16_t = uint16 /* types.h:40:28 */ +type X__int32_t = int32 /* types.h:41:20 */ +type X__uint32_t = uint32 /* types.h:42:22 */ +type X__int64_t = int64 /* types.h:44:25 */ +type X__uint64_t = uint64 /* types.h:45:27 */ + +// Smallest types with at least a given width. +type X__int_least8_t = X__int8_t /* types.h:52:18 */ +type X__uint_least8_t = X__uint8_t /* types.h:53:19 */ +type X__int_least16_t = X__int16_t /* types.h:54:19 */ +type X__uint_least16_t = X__uint16_t /* types.h:55:20 */ +type X__int_least32_t = X__int32_t /* types.h:56:19 */ +type X__uint_least32_t = X__uint32_t /* types.h:57:20 */ +type X__int_least64_t = X__int64_t /* types.h:58:19 */ +type X__uint_least64_t = X__uint64_t /* types.h:59:20 */ + +// quad_t is also 64 bits. +type X__quad_t = int64 /* types.h:63:18 */ +type X__u_quad_t = uint64 /* types.h:64:27 */ + +// Largest integral types. +type X__intmax_t = int64 /* types.h:72:18 */ +type X__uintmax_t = uint64 /* types.h:73:27 */ + +// The machine-dependent file defines __*_T_TYPE +// macros for each of the OS types we define below. The definitions +// of those macros must use the following macros for underlying types. +// We define __S_TYPE and __U_TYPE for the signed and unsigned +// variants of each of the following integer types on this machine. +// +// 16 -- "natural" 16-bit type (always short) +// 32 -- "natural" 32-bit type (always int) +// 64 -- "natural" 64-bit type (long or long long) +// LONG32 -- 32-bit type, traditionally long +// QUAD -- 64-bit type, traditionally long long +// WORD -- natural type of __WORDSIZE bits (int or long) +// LONGWORD -- type of __WORDSIZE bits, traditionally long +// +// We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the +// conventional uses of `long' or `long long' type modifiers match the +// types we define, even when a less-adorned type would be the same size. +// This matters for (somewhat) portably writing printf/scanf formats for +// these types, where using the appropriate l or ll format modifiers can +// make the typedefs and the formats match up across all GNU platforms. If +// we used `long' when it's 64 bits where `long long' is expected, then the +// compiler would warn about the formats not matching the argument types, +// and the programmer changing them to shut up the compiler would break the +// program's portability. +// +// Here we assume what is presently the case in all the GCC configurations +// we support: long long is always 64 bits, long is always word/address size, +// and int is always 32 bits. + +// No need to mark the typedef with __extension__. +// bits/typesizes.h -- underlying types for *_t. Linux/x86-64 version. +// Copyright (C) 2012-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// See for the meaning of these macros. This file exists so +// that need not vary across different GNU platforms. + +// X32 kernel interface is 64-bit. + +// Tell the libc code that off_t and off64_t are actually the same type +// for all ABI purposes, even if possibly expressed as different base types +// for C type-checking purposes. + +// Same for ino_t and ino64_t. + +// And for __rlim_t and __rlim64_t. + +// And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t. + +// Number of descriptors that can fit in an `fd_set'. + +// bits/time64.h -- underlying types for __time64_t. Generic version. +// Copyright (C) 2018-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Define __TIME64_T_TYPE so that it is always a 64-bit type. + +// If we already have 64-bit time type then use it. + +type X__dev_t = uint64 /* types.h:145:25 */ // Type of device numbers. +type X__uid_t = uint32 /* types.h:146:25 */ // Type of user identifications. +type X__gid_t = uint32 /* types.h:147:25 */ // Type of group identifications. +type X__ino_t = uint64 /* types.h:148:25 */ // Type of file serial numbers. +type X__ino64_t = uint64 /* types.h:149:27 */ // Type of file serial numbers (LFS). +type X__mode_t = uint32 /* types.h:150:26 */ // Type of file attribute bitmasks. +type X__nlink_t = uint64 /* types.h:151:27 */ // Type of file link counts. +type X__off_t = int64 /* types.h:152:25 */ // Type of file sizes and offsets. +type X__off64_t = int64 /* types.h:153:27 */ // Type of file sizes and offsets (LFS). +type X__pid_t = int32 /* types.h:154:25 */ // Type of process identifications. +type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs. +type X__clock_t = int64 /* types.h:156:27 */ // Type of CPU usage counts. +type X__rlim_t = uint64 /* types.h:157:26 */ // Type for resource measurement. +type X__rlim64_t = uint64 /* types.h:158:28 */ // Type for resource measurement (LFS). +type X__id_t = uint32 /* types.h:159:24 */ // General type for IDs. +type X__time_t = int64 /* types.h:160:26 */ // Seconds since the Epoch. +type X__useconds_t = uint32 /* types.h:161:30 */ // Count of microseconds. +type X__suseconds_t = int64 /* types.h:162:31 */ // Signed count of microseconds. + +type X__daddr_t = int32 /* types.h:164:27 */ // The type of a disk address. +type X__key_t = int32 /* types.h:165:25 */ // Type of an IPC key. + +// Clock ID used in clock and timer functions. +type X__clockid_t = int32 /* types.h:168:29 */ + +// Timer ID returned by `timer_create'. +type X__timer_t = uintptr /* types.h:171:12 */ + +// Type to represent block size. +type X__blksize_t = int64 /* types.h:174:29 */ + +// Types from the Large File Support interface. + +// Type to count number of disk blocks. +type X__blkcnt_t = int64 /* types.h:179:28 */ +type X__blkcnt64_t = int64 /* types.h:180:30 */ + +// Type to count file system blocks. +type X__fsblkcnt_t = uint64 /* types.h:183:30 */ +type X__fsblkcnt64_t = uint64 /* types.h:184:32 */ + +// Type to count file system nodes. +type X__fsfilcnt_t = uint64 /* types.h:187:30 */ +type X__fsfilcnt64_t = uint64 /* types.h:188:32 */ + +// Type of miscellaneous file system fields. +type X__fsword_t = int64 /* types.h:191:28 */ + +type X__ssize_t = int64 /* types.h:193:27 */ // Type of a byte count, or error. + +// Signed long type used in system calls. +type X__syscall_slong_t = int64 /* types.h:196:33 */ +// Unsigned long type used in system calls. +type X__syscall_ulong_t = uint64 /* types.h:198:33 */ + +// These few don't really vary by system, they always correspond +// +// to one of the other defined types. +type X__loff_t = X__off64_t /* types.h:202:19 */ // Type of file sizes and offsets (LFS). +type X__caddr_t = uintptr /* types.h:203:14 */ + +// Duplicates info from stdint.h but this is used in unistd.h. +type X__intptr_t = int64 /* types.h:206:25 */ + +// Duplicate info from sys/socket.h. +type X__socklen_t = uint32 /* types.h:209:23 */ + +// C99: An integer type that can be accessed as an atomic entity, +// +// even in the presence of asynchronous interrupts. +// It is not currently necessary for this to be machine-specific. +type X__sig_atomic_t = int32 /* types.h:214:13 */ + +// Seconds since the Epoch, visible to user code when time_t is too +// narrow only for consistency with the old way of widening too-narrow +// types. User code should never use __time64_t. + +type Uint8_t = X__uint8_t /* stdint-uintn.h:24:19 */ +type Uint16_t = X__uint16_t /* stdint-uintn.h:25:20 */ +type Uint32_t = X__uint32_t /* stdint-uintn.h:26:20 */ +type Uint64_t = X__uint64_t /* stdint-uintn.h:27:20 */ + +// Wide character type. +// Locale-writers should change this as necessary to +// be big enough to hold unique values not between 0 and 127, +// and not (wchar_t) -1, for each defined multibyte character. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// A null pointer constant. + +// Structure for scatter/gather I/O. +type Iovec = struct { + Fiov_base uintptr + Fiov_len Size_t +} /* struct_iovec.h:26:1 */ + +// Copyright (C) 1989-2020 Free Software Foundation, Inc. +// +// This file is part of GCC. +// +// GCC is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 3, or (at your option) +// any later version. +// +// GCC is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// Under Section 7 of GPL version 3, you are granted additional +// permissions described in the GCC Runtime Library Exception, version +// 3.1, as published by the Free Software Foundation. +// +// You should have received a copy of the GNU General Public License and +// a copy of the GCC Runtime Library Exception along with this program; +// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see +// . + +// ISO C Standard: 7.17 Common definitions + +// Any one of these symbols __need_* means that GNU libc +// wants us just to define one data type. So don't define +// the symbols that indicate this file's entire job has been done. + +// This avoids lossage on SunOS but only if stdtypes.h comes first. +// There's no way to win with the other order! Sun lossage. + +// Sequent's header files use _PTRDIFF_T_ in some conflicting way. +// Just ignore it. + +// On VxWorks, may have defined macros like +// _TYPE_size_t which will typedef size_t. fixincludes patched the +// vxTypesBase.h so that this macro is only defined if _GCC_SIZE_T is +// not defined, and so that defining this macro defines _GCC_SIZE_T. +// If we find that the macros are still defined at this point, we must +// invoke them so that the type is defined as expected. + +// In case nobody has defined these types, but we aren't running under +// GCC 2.00, make sure that __PTRDIFF_TYPE__, __SIZE_TYPE__, and +// __WCHAR_TYPE__ have reasonable values. This can happen if the +// parts of GCC is compiled by an older compiler, that actually +// include gstddef.h, such as collect2. + +// Signed type of difference of two pointers. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// Unsigned type of `sizeof' something. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// Wide character type. +// Locale-writers should change this as necessary to +// be big enough to hold unique values not between 0 and 127, +// and not (wchar_t) -1, for each defined multibyte character. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// A null pointer constant. + +// This operating system-specific header file defines the SOCK_*, PF_*, +// AF_*, MSG_*, SOL_*, and SO_* constants, and the `struct sockaddr', +// `struct msghdr', and `struct linger' types. +// System-specific socket constants and types. Linux version. +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Copyright (C) 1989-2020 Free Software Foundation, Inc. +// +// This file is part of GCC. +// +// GCC is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 3, or (at your option) +// any later version. +// +// GCC is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// Under Section 7 of GPL version 3, you are granted additional +// permissions described in the GCC Runtime Library Exception, version +// 3.1, as published by the Free Software Foundation. +// +// You should have received a copy of the GNU General Public License and +// a copy of the GCC Runtime Library Exception along with this program; +// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see +// . + +// ISO C Standard: 7.17 Common definitions + +// Any one of these symbols __need_* means that GNU libc +// wants us just to define one data type. So don't define +// the symbols that indicate this file's entire job has been done. + +// This avoids lossage on SunOS but only if stdtypes.h comes first. +// There's no way to win with the other order! Sun lossage. + +// Sequent's header files use _PTRDIFF_T_ in some conflicting way. +// Just ignore it. + +// On VxWorks, may have defined macros like +// _TYPE_size_t which will typedef size_t. fixincludes patched the +// vxTypesBase.h so that this macro is only defined if _GCC_SIZE_T is +// not defined, and so that defining this macro defines _GCC_SIZE_T. +// If we find that the macros are still defined at this point, we must +// invoke them so that the type is defined as expected. + +// In case nobody has defined these types, but we aren't running under +// GCC 2.00, make sure that __PTRDIFF_TYPE__, __SIZE_TYPE__, and +// __WCHAR_TYPE__ have reasonable values. This can happen if the +// parts of GCC is compiled by an older compiler, that actually +// include gstddef.h, such as collect2. + +// Signed type of difference of two pointers. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// Unsigned type of `sizeof' something. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// Wide character type. +// Locale-writers should change this as necessary to +// be big enough to hold unique values not between 0 and 127, +// and not (wchar_t) -1, for each defined multibyte character. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// A null pointer constant. + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// POSIX Standard: 2.6 Primitive System Data Types + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +type U_char = X__u_char /* types.h:33:18 */ +type U_short = X__u_short /* types.h:34:19 */ +type U_int = X__u_int /* types.h:35:17 */ +type U_long = X__u_long /* types.h:36:18 */ +type Quad_t = X__quad_t /* types.h:37:18 */ +type U_quad_t = X__u_quad_t /* types.h:38:20 */ +type Fsid_t = X__fsid_t /* types.h:39:18 */ +type Loff_t = X__loff_t /* types.h:42:18 */ + +type Ino_t = X__ino64_t /* types.h:49:19 */ + +type Dev_t = X__dev_t /* types.h:59:17 */ + +type Gid_t = X__gid_t /* types.h:64:17 */ + +type Mode_t = X__mode_t /* types.h:69:18 */ + +type Nlink_t = X__nlink_t /* types.h:74:19 */ + +type Uid_t = X__uid_t /* types.h:79:17 */ + +type Off_t = X__off64_t /* types.h:87:19 */ + +type Pid_t = X__pid_t /* types.h:97:17 */ + +type Id_t = X__id_t /* types.h:103:16 */ + +type Ssize_t = X__ssize_t /* types.h:108:19 */ + +type Daddr_t = X__daddr_t /* types.h:114:19 */ +type Caddr_t = X__caddr_t /* types.h:115:19 */ + +type Key_t = X__key_t /* types.h:121:17 */ + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Returned by `clock'. +type Clock_t = X__clock_t /* clock_t.h:7:19 */ + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Clock ID used in clock and timer functions. +type Clockid_t = X__clockid_t /* clockid_t.h:7:21 */ + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Returned by `time'. +type Time_t = X__time_t /* time_t.h:7:18 */ + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Timer ID returned by `timer_create'. +type Timer_t = X__timer_t /* timer_t.h:7:19 */ + +// Copyright (C) 1989-2020 Free Software Foundation, Inc. +// +// This file is part of GCC. +// +// GCC is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 3, or (at your option) +// any later version. +// +// GCC is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// Under Section 7 of GPL version 3, you are granted additional +// permissions described in the GCC Runtime Library Exception, version +// 3.1, as published by the Free Software Foundation. +// +// You should have received a copy of the GNU General Public License and +// a copy of the GCC Runtime Library Exception along with this program; +// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see +// . + +// ISO C Standard: 7.17 Common definitions + +// Any one of these symbols __need_* means that GNU libc +// wants us just to define one data type. So don't define +// the symbols that indicate this file's entire job has been done. + +// This avoids lossage on SunOS but only if stdtypes.h comes first. +// There's no way to win with the other order! Sun lossage. + +// Sequent's header files use _PTRDIFF_T_ in some conflicting way. +// Just ignore it. + +// On VxWorks, may have defined macros like +// _TYPE_size_t which will typedef size_t. fixincludes patched the +// vxTypesBase.h so that this macro is only defined if _GCC_SIZE_T is +// not defined, and so that defining this macro defines _GCC_SIZE_T. +// If we find that the macros are still defined at this point, we must +// invoke them so that the type is defined as expected. + +// In case nobody has defined these types, but we aren't running under +// GCC 2.00, make sure that __PTRDIFF_TYPE__, __SIZE_TYPE__, and +// __WCHAR_TYPE__ have reasonable values. This can happen if the +// parts of GCC is compiled by an older compiler, that actually +// include gstddef.h, such as collect2. + +// Signed type of difference of two pointers. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// Unsigned type of `sizeof' something. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// Wide character type. +// Locale-writers should change this as necessary to +// be big enough to hold unique values not between 0 and 127, +// and not (wchar_t) -1, for each defined multibyte character. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// A null pointer constant. + +// Old compatibility names for C types. +type Ulong = uint64 /* types.h:148:27 */ +type Ushort = uint16 /* types.h:149:28 */ +type Uint = uint32 /* types.h:150:22 */ + +// These size-specific names are used by some of the inet code. + +// Define intN_t types. +// Copyright (C) 2017-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +type Int8_t = X__int8_t /* stdint-intn.h:24:18 */ +type Int16_t = X__int16_t /* stdint-intn.h:25:19 */ +type Int32_t = X__int32_t /* stdint-intn.h:26:19 */ +type Int64_t = X__int64_t /* stdint-intn.h:27:19 */ + +// These were defined by ISO C without the first `_'. +type U_int8_t = X__uint8_t /* types.h:158:19 */ +type U_int16_t = X__uint16_t /* types.h:159:20 */ +type U_int32_t = X__uint32_t /* types.h:160:20 */ +type U_int64_t = X__uint64_t /* types.h:161:20 */ + +type Register_t = int32 /* types.h:164:13 */ + +// It also defines `fd_set' and the FD_* macros for `select'. +// `fd_set' type and related macros, and `select'/`pselect' declarations. +// Copyright (C) 1996-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// POSIX 1003.1g: 6.2 Select from File Descriptor Sets + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Get definition of needed basic types. +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Get __FD_* definitions. +// Copyright (C) 1997-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Determine the wordsize from the preprocessor defines. + +// Both x86-64 and x32 use the 64-bit system call interface. + +// Get sigset_t. + +type X__sigset_t = struct{ F__val [16]uint64 } /* __sigset_t.h:8:3 */ + +// A set of signals to be blocked, unblocked, or waited for. +type Sigset_t = X__sigset_t /* sigset_t.h:7:20 */ + +// Get definition of timer specification structures. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// A time value that is accurate to the nearest +// +// microsecond but also has a range of years. +type Timeval = struct { + Ftv_sec X__time_t + Ftv_usec X__suseconds_t +} /* struct_timeval.h:8:1 */ + +// NB: Include guard matches what uses. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Endian macros for string.h functions +// Copyright (C) 1992-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// POSIX.1b structure for a time value. This is like a `struct timeval' but +// +// has nanoseconds instead of microseconds. +type Timespec = struct { + Ftv_sec X__time_t + Ftv_nsec X__syscall_slong_t +} /* struct_timespec.h:10:1 */ + +type Suseconds_t = X__suseconds_t /* select.h:43:23 */ + +// The fd_set member is required to be an array of longs. +type X__fd_mask = int64 /* select.h:49:18 */ + +// Some versions of define this macros. +// It's easier to assume 8-bit bytes than to get CHAR_BIT. + +// fd_set for select and pselect. +type Fd_set = struct{ F__fds_bits [16]X__fd_mask } /* select.h:70:5 */ + +// Maximum number of file descriptors in `fd_set'. + +// Sometimes the fd_set member is assumed to have this type. +type Fd_mask = X__fd_mask /* select.h:77:19 */ + +// Define some inlines helping to catch common problems. + +type Blksize_t = X__blksize_t /* types.h:185:21 */ + +// Types from the Large File Support interface. +type Blkcnt_t = X__blkcnt64_t /* types.h:205:22 */ // Type to count number of disk blocks. +type Fsblkcnt_t = X__fsblkcnt64_t /* types.h:209:24 */ // Type to count file system blocks. +type Fsfilcnt_t = X__fsfilcnt64_t /* types.h:213:24 */ // Type to count file system inodes. + +// Now add the thread types. +// Declaration of common pthread types for all architectures. +// Copyright (C) 2017-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// For internal mutex and condition variable definitions. +// Common threading primitives definitions for both POSIX and C11. +// Copyright (C) 2017-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Arch-specific definitions. Each architecture must define the following +// macros to define the expected sizes of pthread data types: +// +// __SIZEOF_PTHREAD_ATTR_T - size of pthread_attr_t. +// __SIZEOF_PTHREAD_MUTEX_T - size of pthread_mutex_t. +// __SIZEOF_PTHREAD_MUTEXATTR_T - size of pthread_mutexattr_t. +// __SIZEOF_PTHREAD_COND_T - size of pthread_cond_t. +// __SIZEOF_PTHREAD_CONDATTR_T - size of pthread_condattr_t. +// __SIZEOF_PTHREAD_RWLOCK_T - size of pthread_rwlock_t. +// __SIZEOF_PTHREAD_RWLOCKATTR_T - size of pthread_rwlockattr_t. +// __SIZEOF_PTHREAD_BARRIER_T - size of pthread_barrier_t. +// __SIZEOF_PTHREAD_BARRIERATTR_T - size of pthread_barrierattr_t. +// +// The additional macro defines any constraint for the lock alignment +// inside the thread structures: +// +// __LOCK_ALIGNMENT - for internal lock/futex usage. +// +// Same idea but for the once locking primitive: +// +// __ONCE_ALIGNMENT - for pthread_once_t/once_flag definition. + +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Determine the wordsize from the preprocessor defines. + +// Both x86-64 and x32 use the 64-bit system call interface. + +// Common definition of pthread_mutex_t. + +type X__pthread_internal_list = struct { + F__prev uintptr + F__next uintptr +} /* thread-shared-types.h:49:9 */ + +// Type to count file system inodes. + +// Now add the thread types. +// Declaration of common pthread types for all architectures. +// Copyright (C) 2017-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// For internal mutex and condition variable definitions. +// Common threading primitives definitions for both POSIX and C11. +// Copyright (C) 2017-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Arch-specific definitions. Each architecture must define the following +// macros to define the expected sizes of pthread data types: +// +// __SIZEOF_PTHREAD_ATTR_T - size of pthread_attr_t. +// __SIZEOF_PTHREAD_MUTEX_T - size of pthread_mutex_t. +// __SIZEOF_PTHREAD_MUTEXATTR_T - size of pthread_mutexattr_t. +// __SIZEOF_PTHREAD_COND_T - size of pthread_cond_t. +// __SIZEOF_PTHREAD_CONDATTR_T - size of pthread_condattr_t. +// __SIZEOF_PTHREAD_RWLOCK_T - size of pthread_rwlock_t. +// __SIZEOF_PTHREAD_RWLOCKATTR_T - size of pthread_rwlockattr_t. +// __SIZEOF_PTHREAD_BARRIER_T - size of pthread_barrier_t. +// __SIZEOF_PTHREAD_BARRIERATTR_T - size of pthread_barrierattr_t. +// +// The additional macro defines any constraint for the lock alignment +// inside the thread structures: +// +// __LOCK_ALIGNMENT - for internal lock/futex usage. +// +// Same idea but for the once locking primitive: +// +// __ONCE_ALIGNMENT - for pthread_once_t/once_flag definition. + +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Determine the wordsize from the preprocessor defines. + +// Both x86-64 and x32 use the 64-bit system call interface. + +// Common definition of pthread_mutex_t. + +type X__pthread_list_t = X__pthread_internal_list /* thread-shared-types.h:53:3 */ + +type X__pthread_internal_slist = struct{ F__next uintptr } /* thread-shared-types.h:55:9 */ + +type X__pthread_slist_t = X__pthread_internal_slist /* thread-shared-types.h:58:3 */ + +// Arch-specific mutex definitions. A generic implementation is provided +// by sysdeps/nptl/bits/struct_mutex.h. If required, an architecture +// can override it by defining: +// +// 1. struct __pthread_mutex_s (used on both pthread_mutex_t and mtx_t +// definition). It should contains at least the internal members +// defined in the generic version. +// +// 2. __LOCK_ALIGNMENT for any extra attribute for internal lock used with +// atomic operations. +// +// 3. The macro __PTHREAD_MUTEX_INITIALIZER used for static initialization. +// It should initialize the mutex internal flag. + +// x86 internal mutex struct definitions. +// Copyright (C) 2019-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +type X__pthread_mutex_s = struct { + F__lock int32 + F__count uint32 + F__owner int32 + F__nusers uint32 + F__kind int32 + F__spins int16 + F__elision int16 + F__list X__pthread_list_t +} /* struct_mutex.h:22:1 */ + +// Arch-sepecific read-write lock definitions. A generic implementation is +// provided by struct_rwlock.h. If required, an architecture can override it +// by defining: +// +// 1. struct __pthread_rwlock_arch_t (used on pthread_rwlock_t definition). +// It should contain at least the internal members defined in the +// generic version. +// +// 2. The macro __PTHREAD_RWLOCK_INITIALIZER used for static initialization. +// It should initialize the rwlock internal type. + +// x86 internal rwlock struct definitions. +// Copyright (C) 2019-2020 Free Software Foundation, Inc. +// +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +type X__pthread_rwlock_arch_t = struct { + F__readers uint32 + F__writers uint32 + F__wrphase_futex uint32 + F__writers_futex uint32 + F__pad3 uint32 + F__pad4 uint32 + F__cur_writer int32 + F__shared int32 + F__rwelision int8 + F__pad1 [7]uint8 + F__pad2 uint64 + F__flags uint32 + F__ccgo_pad1 [4]byte +} /* struct_rwlock.h:23:1 */ + +// Common definition of pthread_cond_t. + +type X__pthread_cond_s = struct { + F__0 struct{ F__wseq uint64 } + F__8 struct{ F__g1_start uint64 } + F__g_refs [2]uint32 + F__g_size [2]uint32 + F__g1_orig_size uint32 + F__wrefs uint32 + F__g_signals [2]uint32 +} /* thread-shared-types.h:92:1 */ + +// Thread identifiers. The structure of the attribute type is not +// +// exposed on purpose. +type Pthread_t = uint64 /* pthreadtypes.h:27:27 */ + +// Data structures for mutex handling. The structure of the attribute +// +// type is not exposed on purpose. +type Pthread_mutexattr_t = struct { + F__ccgo_pad1 [0]uint32 + F__size [4]int8 +} /* pthreadtypes.h:36:3 */ + +// Data structure for condition variable handling. The structure of +// +// the attribute type is not exposed on purpose. +type Pthread_condattr_t = struct { + F__ccgo_pad1 [0]uint32 + F__size [4]int8 +} /* pthreadtypes.h:45:3 */ + +// Keys for thread-specific data +type Pthread_key_t = uint32 /* pthreadtypes.h:49:22 */ + +// Once-only execution +type Pthread_once_t = int32 /* pthreadtypes.h:53:30 */ + +type Pthread_attr_t1 = struct { + F__ccgo_pad1 [0]uint64 + F__size [56]int8 +} /* pthreadtypes.h:56:1 */ + +type Pthread_attr_t = Pthread_attr_t1 /* pthreadtypes.h:62:30 */ + +type Pthread_mutex_t = struct{ F__data X__pthread_mutex_s } /* pthreadtypes.h:72:3 */ + +type Pthread_cond_t = struct{ F__data X__pthread_cond_s } /* pthreadtypes.h:80:3 */ + +// Data structure for reader-writer lock variable handling. The +// +// structure of the attribute type is deliberately not exposed. +type Pthread_rwlock_t = struct{ F__data X__pthread_rwlock_arch_t } /* pthreadtypes.h:91:3 */ + +type Pthread_rwlockattr_t = struct { + F__ccgo_pad1 [0]uint64 + F__size [8]int8 +} /* pthreadtypes.h:97:3 */ + +// POSIX spinlock data type. +type Pthread_spinlock_t = int32 /* pthreadtypes.h:103:22 */ + +// POSIX barriers data type. The structure of the type is +// +// deliberately not exposed. +type Pthread_barrier_t = struct { + F__ccgo_pad1 [0]uint64 + F__size [32]int8 +} /* pthreadtypes.h:112:3 */ + +type Pthread_barrierattr_t = struct { + F__ccgo_pad1 [0]uint32 + F__size [4]int8 +} /* pthreadtypes.h:118:3 */ + +// Type for length arguments in socket calls. +type Socklen_t = X__socklen_t /* socket.h:33:21 */ + +// Protocol families. + +// Address families. + +// Socket level values. Others are defined in the appropriate headers. +// +// XXX These definitions also should go into the appropriate headers as +// far as they are available. + +// Maximum queue length specifiable by listen. + +// Get the definition of the macro to define the common sockaddr members. +// Definition of struct sockaddr_* common members and sizes, generic version. +// Copyright (C) 1995-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// POSIX.1g specifies this type name for the `sa_family' member. +type Sa_family_t = uint16 /* sockaddr.h:28:28 */ + +// This macro is used to declare the initial common members +// of the data types used for socket addresses, `struct sockaddr', +// `struct sockaddr_in', `struct sockaddr_un', etc. + +// Size of struct sockaddr_storage. + +// Structure describing a generic socket address. +type Sockaddr = struct { + Fsa_family Sa_family_t + Fsa_data [14]int8 +} /* socket.h:178:1 */ + +// Structure large enough to hold any socket address (with the historical +// exception of AF_UNIX). + +type Sockaddr_storage = struct { + Fss_family Sa_family_t + F__ss_padding [118]int8 + F__ss_align uint64 +} /* socket.h:191:1 */ + +// Structure describing messages sent by +// +// `sendmsg' and received by `recvmsg'. +type Msghdr = struct { + Fmsg_name uintptr + Fmsg_namelen Socklen_t + F__ccgo_pad1 [4]byte + Fmsg_iov uintptr + Fmsg_iovlen Size_t + Fmsg_control uintptr + Fmsg_controllen Size_t + Fmsg_flags int32 + F__ccgo_pad2 [4]byte +} /* socket.h:257:1 */ + +// Structure used for storage of ancillary data object information. +type Cmsghdr = struct { + F__ccgo_pad1 [0]uint64 + Fcmsg_len Size_t + Fcmsg_level int32 + Fcmsg_type int32 +} /* socket.h:275:1 */ + +// SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note + +// SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note + +// SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note + +// This allows for 1024 file descriptors: if NR_OPEN is ever grown +// beyond that you'll have to change this too. But 1024 fd's seem to be +// enough even for such "real" unices like OSF/1, so hopefully this is +// one limit that doesn't have to be changed [again]. +// +// Note that POSIX wants the FD_CLEAR(fd,fdsetp) defines to be in +// (and thus ) - but this is a more logical +// place for them. Solved by having dummy defines in . + +// This macro may have been defined in . But we always +// use the one here. + +type X__kernel_fd_set = struct{ Ffds_bits [16]uint64 } /* posix_types.h:27:3 */ + +// Type of a signal handler. +type X__kernel_sighandler_t = uintptr /* posix_types.h:30:14 */ + +// Type of a SYSV IPC key. +type X__kernel_key_t = int32 /* posix_types.h:33:13 */ +type X__kernel_mqd_t = int32 /* posix_types.h:34:13 */ + +// SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note +// SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note + +// This file is generally used by user-level software, so you need to +// be a little careful about namespace pollution etc. Also, we cannot +// assume GCC is being used. + +type X__kernel_old_uid_t = uint16 /* posix_types_64.h:11:24 */ +type X__kernel_old_gid_t = uint16 /* posix_types_64.h:12:24 */ + +type X__kernel_old_dev_t = uint64 /* posix_types_64.h:15:23 */ + +// SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note + +// SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note + +// SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note + +// There seems to be no way of detecting this automatically from user +// space, so 64 bit architectures should override this in their +// bitsperlong.h. In particular, an architecture that supports +// both 32 and 64 bit user space must not rely on CONFIG_64BIT +// to decide it, but rather check a compiler provided macro. + +// This file is generally used by user-level software, so you need to +// be a little careful about namespace pollution etc. +// +// First the types that are often defined in different ways across +// architectures, so that you can override them. + +type X__kernel_long_t = int64 /* posix_types.h:15:15 */ +type X__kernel_ulong_t = uint64 /* posix_types.h:16:23 */ + +type X__kernel_ino_t = X__kernel_ulong_t /* posix_types.h:20:26 */ + +type X__kernel_mode_t = uint32 /* posix_types.h:24:22 */ + +type X__kernel_pid_t = int32 /* posix_types.h:28:14 */ + +type X__kernel_ipc_pid_t = int32 /* posix_types.h:32:14 */ + +type X__kernel_uid_t = uint32 /* posix_types.h:36:22 */ +type X__kernel_gid_t = uint32 /* posix_types.h:37:22 */ + +type X__kernel_suseconds_t = X__kernel_long_t /* posix_types.h:41:26 */ + +type X__kernel_daddr_t = int32 /* posix_types.h:45:14 */ + +type X__kernel_uid32_t = uint32 /* posix_types.h:49:22 */ +type X__kernel_gid32_t = uint32 /* posix_types.h:50:22 */ + +// Most 32 bit architectures use "unsigned int" size_t, +// and all 64 bit architectures use "unsigned long" size_t. +type X__kernel_size_t = X__kernel_ulong_t /* posix_types.h:72:26 */ +type X__kernel_ssize_t = X__kernel_long_t /* posix_types.h:73:25 */ +type X__kernel_ptrdiff_t = X__kernel_long_t /* posix_types.h:74:25 */ + +type X__kernel_fsid_t = struct{ Fval [2]int32 } /* posix_types.h:81:3 */ + +// anything below here should be completely generic +type X__kernel_off_t = X__kernel_long_t /* posix_types.h:87:25 */ +type X__kernel_loff_t = int64 /* posix_types.h:88:19 */ +type X__kernel_old_time_t = X__kernel_long_t /* posix_types.h:89:25 */ +type X__kernel_time_t = X__kernel_long_t /* posix_types.h:90:25 */ +type X__kernel_time64_t = int64 /* posix_types.h:91:19 */ +type X__kernel_clock_t = X__kernel_long_t /* posix_types.h:92:25 */ +type X__kernel_timer_t = int32 /* posix_types.h:93:14 */ +type X__kernel_clockid_t = int32 /* posix_types.h:94:14 */ +type X__kernel_caddr_t = uintptr /* posix_types.h:95:14 */ +type X__kernel_uid16_t = uint16 /* posix_types.h:96:24 */ +type X__kernel_gid16_t = uint16 /* posix_types.h:97:24 */ + +// SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note + +// Socket-level I/O control calls. + +// For setsockopt(2) + +// Security levels - as per NRL IPv6 - don't actually do anything + +// Socket filtering + +// Instruct lower device to use last 4-bytes of skb data as FCS + +// on 64-bit and x32, avoid the ?: operator + +// Structure used to manipulate the SO_LINGER option. +type Linger = struct { + Fl_onoff int32 + Fl_linger int32 +} /* socket.h:361:1 */ + +// This is the 4.3 BSD `struct sockaddr' format, which is used as wire +// +// format in the grotty old 4.3 `talk' protocol. +type Osockaddr = struct { + Fsa_family uint16 + Fsa_data [14]uint8 +} /* struct_osockaddr.h:6:1 */ + +// Define some macros helping to catch buffer overflows. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Internet address. +type In_addr_t = Uint32_t /* in.h:30:18 */ +type In_addr = struct{ Fs_addr In_addr_t } /* in.h:31:1 */ + +// Get system-specific definitions. +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Linux version. + +// If the application has already included linux/in6.h from a linux-based +// kernel then we will not define the IPv6 IPPROTO_* defines, in6_addr (nor the +// defines), sockaddr_in6, or ipv6_mreq. Same for in6_ptkinfo or ip6_mtuinfo +// in linux/ipv6.h. The ABI used by the linux-kernel and glibc match exactly. +// Neither the linux kernel nor glibc should break this ABI without coordination. +// In upstream kernel 56c176c9 the _UAPI prefix was stripped so we need to check +// for _LINUX_IN6_H and _IPV6_H now, and keep checking the old versions for +// maximum backwards compatibility. + +// Options for use with `getsockopt' and `setsockopt' at the IP level. +// The first word in the comment at the right is the data type used; +// "bool" means a boolean value stored in an `int'. +// For BSD compatibility. + +// TProxy original addresses + +// IP_MTU_DISCOVER arguments. +// Always use interface mtu (ignores dst pmtu) but don't set DF flag. +// Also incoming ICMP frag_needed notifications will be ignored on +// this socket to prevent accepting spoofed ones. +// Like IP_PMTUDISC_INTERFACE but allow packets to be fragmented. + +// To select the IP level. + +// Structure used to describe IP options for IP_OPTIONS and IP_RETOPTS. +// +// The `ip_dst' field is used for the first-hop gateway when using a +// source route (this gets put into the header proper). +type Ip_opts = struct { + Fip_dst struct{ Fs_addr In_addr_t } + Fip_opts [40]int8 +} /* in.h:142:1 */ + +// Like `struct ip_mreq' but including interface specification by index. +type Ip_mreqn = struct { + Fimr_multiaddr struct{ Fs_addr In_addr_t } + Fimr_address struct{ Fs_addr In_addr_t } + Fimr_ifindex int32 +} /* in.h:149:1 */ + +// Structure used for IP_PKTINFO. +type In_pktinfo = struct { + Fipi_ifindex int32 + Fipi_spec_dst struct{ Fs_addr In_addr_t } + Fipi_addr struct{ Fs_addr In_addr_t } +} /* in.h:157:1 */ + +// Type to represent a port. +type In_port_t = Uint16_t /* in.h:119:18 */ + +// Definitions of the bits in an Internet address integer. +// +// On subnets, host and network parts are found according to +// the subnet mask, not these masks. + +// Address to accept any incoming messages. +// Address to send to all hosts. +// Address indicating an error return. + +// Network number for local host loopback. +// Address to loopback in software to local host. + +// Defines for Multicast INADDR. + +// IPv6 address +type In6_addr = struct { + F__in6_u struct { + F__ccgo_pad1 [0]uint32 + F__u6_addr8 [16]Uint8_t + } +} /* in.h:212:1 */ + +// ::1 + +// Structure describing an Internet socket address. +type Sockaddr_in = struct { + Fsin_family Sa_family_t + Fsin_port In_port_t + Fsin_addr struct{ Fs_addr In_addr_t } + Fsin_zero [8]uint8 +} /* in.h:238:1 */ + +// Ditto, for IPv6. +type Sockaddr_in6 = struct { + Fsin6_family Sa_family_t + Fsin6_port In_port_t + Fsin6_flowinfo Uint32_t + Fsin6_addr struct { + F__in6_u struct { + F__ccgo_pad1 [0]uint32 + F__u6_addr8 [16]Uint8_t + } + } + Fsin6_scope_id Uint32_t +} /* in.h:253:1 */ + +// IPv4 multicast request. +type Ip_mreq = struct { + Fimr_multiaddr struct{ Fs_addr In_addr_t } + Fimr_interface struct{ Fs_addr In_addr_t } +} /* in.h:265:1 */ + +type Ip_mreq_source = struct { + Fimr_multiaddr struct{ Fs_addr In_addr_t } + Fimr_interface struct{ Fs_addr In_addr_t } + Fimr_sourceaddr struct{ Fs_addr In_addr_t } +} /* in.h:274:1 */ + +// Likewise, for IPv6. +type Ipv6_mreq = struct { + Fipv6mr_multiaddr struct { + F__in6_u struct { + F__ccgo_pad1 [0]uint32 + F__u6_addr8 [16]Uint8_t + } + } + Fipv6mr_interface uint32 +} /* in.h:289:1 */ + +// Multicast group request. +type Group_req = struct { + Fgr_interface Uint32_t + F__ccgo_pad1 [4]byte + Fgr_group struct { + Fss_family Sa_family_t + F__ss_padding [118]int8 + F__ss_align uint64 + } +} /* in.h:301:1 */ + +type Group_source_req = struct { + Fgsr_interface Uint32_t + F__ccgo_pad1 [4]byte + Fgsr_group struct { + Fss_family Sa_family_t + F__ss_padding [118]int8 + F__ss_align uint64 + } + Fgsr_source struct { + Fss_family Sa_family_t + F__ss_padding [118]int8 + F__ss_align uint64 + } +} /* in.h:310:1 */ + +// Full-state filter operations. +type Ip_msfilter = struct { + Fimsf_multiaddr struct{ Fs_addr In_addr_t } + Fimsf_interface struct{ Fs_addr In_addr_t } + Fimsf_fmode Uint32_t + Fimsf_numsrc Uint32_t + Fimsf_slist [1]struct{ Fs_addr In_addr_t } +} /* in.h:324:1 */ + +type Group_filter = struct { + Fgf_interface Uint32_t + F__ccgo_pad1 [4]byte + Fgf_group struct { + Fss_family Sa_family_t + F__ss_padding [118]int8 + F__ss_align uint64 + } + Fgf_fmode Uint32_t + Fgf_numsrc Uint32_t + Fgf_slist [1]struct { + Fss_family Sa_family_t + F__ss_padding [118]int8 + F__ss_align uint64 + } +} /* in.h:345:1 */ + +var _ int8 /* gen.c:2:13: */ diff --git a/vendor/modernc.org/libc/poll/capi_illumos_amd64.go b/vendor/modernc.org/libc/poll/capi_illumos_amd64.go new file mode 100644 index 000000000..ee5e293c2 --- /dev/null +++ b/vendor/modernc.org/libc/poll/capi_illumos_amd64.go @@ -0,0 +1,5 @@ +// Code generated by 'ccgo poll/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o poll/poll_illumos_amd64.go -pkgname poll', DO NOT EDIT. + +package poll + +var CAPI = map[string]struct{}{} diff --git a/vendor/modernc.org/libc/poll/capi_linux_loong64.go b/vendor/modernc.org/libc/poll/capi_linux_loong64.go new file mode 100644 index 000000000..b167e73c4 --- /dev/null +++ b/vendor/modernc.org/libc/poll/capi_linux_loong64.go @@ -0,0 +1,5 @@ +// Code generated by 'ccgo poll/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o poll/poll_linux_loong64.go -pkgname poll', DO NOT EDIT. + +package poll + +var CAPI = map[string]struct{}{} diff --git a/vendor/modernc.org/libc/poll/capi_linux_mips64le.go b/vendor/modernc.org/libc/poll/capi_linux_mips64le.go new file mode 100644 index 000000000..52c3f3a23 --- /dev/null +++ b/vendor/modernc.org/libc/poll/capi_linux_mips64le.go @@ -0,0 +1,5 @@ +// Code generated by 'ccgo poll/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o poll/poll_linux_amd64.go -pkgname poll', DO NOT EDIT. + +package poll + +var CAPI = map[string]struct{}{} diff --git a/vendor/modernc.org/libc/poll/poll_illumos_amd64.go b/vendor/modernc.org/libc/poll/poll_illumos_amd64.go new file mode 100644 index 000000000..54a997246 --- /dev/null +++ b/vendor/modernc.org/libc/poll/poll_illumos_amd64.go @@ -0,0 +1,4081 @@ +// Code generated by 'ccgo poll/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o poll/poll_illumos_amd64.go -pkgname poll', DO NOT EDIT. + +package poll + +import ( + "math" + "reflect" + "sync/atomic" + "unsafe" +) + +var _ = math.Pi +var _ reflect.Kind +var _ atomic.Value +var _ unsafe.Pointer + +const ( + BUS_ADRALN = 1 // machsig.h:109:1: + BUS_ADRERR = 2 // machsig.h:110:1: + BUS_OBJERR = 3 // machsig.h:112:1: + CLD_CONTINUED = 6 // siginfo.h:169:1: + CLD_DUMPED = 3 // siginfo.h:166:1: + CLD_EXITED = 1 // siginfo.h:164:1: + CLD_KILLED = 2 // siginfo.h:165:1: + CLD_STOPPED = 5 // siginfo.h:168:1: + CLD_TRAPPED = 4 // siginfo.h:167:1: + CLOCKS_PER_SEC = 1000000 // time_iso.h:78:1: + CLOCK_HIGHRES = 4 // time_impl.h:126:1: + CLOCK_MONOTONIC = 4 // time_impl.h:124:1: + CLOCK_PROCESS_CPUTIME_ID = 5 // time_impl.h:125:1: + CLOCK_PROF = 2 // time_impl.h:127:1: + CLOCK_REALTIME = 3 // time_impl.h:123:1: + CLOCK_THREAD_CPUTIME_ID = 2 // time_impl.h:122:1: + CLOCK_VIRTUAL = 1 // time_impl.h:121:1: + DST_AUST = 2 // time.h:115:1: + DST_AUSTALT = 10 // time.h:123:1: + DST_CAN = 6 // time.h:119:1: + DST_EET = 5 // time.h:118:1: + DST_GB = 7 // time.h:120:1: + DST_MET = 4 // time.h:117:1: + DST_NONE = 0 // time.h:113:1: + DST_RUM = 8 // time.h:121:1: + DST_TUR = 9 // time.h:122:1: + DST_USA = 1 // time.h:114:1: + DST_WET = 3 // time.h:116:1: + EMT_CPCOVF = 1 // machsig.h:74:1: + FC_ALIGN = 0x2 // faultcode.h:54:1: + FC_HWERR = 0x1 // faultcode.h:53:1: + FC_NOMAP = 0x5 // faultcode.h:57:1: + FC_NOSUPPORT = 0x6 // faultcode.h:58:1: + FC_OBJERR = 0x3 // faultcode.h:55:1: + FC_PROT = 0x4 // faultcode.h:56:1: + FD_SETSIZE = 65536 // select.h:88:1: + FPE_FLTDEN = 9 // machsig.h:90:1: + FPE_FLTDIV = 3 // machsig.h:84:1: + FPE_FLTINV = 7 // machsig.h:88:1: + FPE_FLTOVF = 4 // machsig.h:85:1: + FPE_FLTRES = 6 // machsig.h:87:1: + FPE_FLTSUB = 8 // machsig.h:89:1: + FPE_FLTUND = 5 // machsig.h:86:1: + FPE_INTDIV = 1 // machsig.h:82:1: + FPE_INTOVF = 2 // machsig.h:83:1: + ILL_BADSTK = 8 // machsig.h:64:1: + ILL_COPROC = 7 // machsig.h:63:1: + ILL_ILLADR = 3 // machsig.h:59:1: + ILL_ILLOPC = 1 // machsig.h:57:1: + ILL_ILLOPN = 2 // machsig.h:58:1: + ILL_ILLTRP = 4 // machsig.h:60:1: + ILL_PRVOPC = 5 // machsig.h:61:1: + ILL_PRVREG = 6 // machsig.h:62:1: + ITIMER_PROF = 2 // time.h:201:1: + ITIMER_REAL = 0 // time.h:199:1: + ITIMER_REALPROF = 3 // time.h:204:1: + ITIMER_VIRTUAL = 1 // time.h:200:1: + MAXSIG = 74 // signal.h:163:1: + MICROSEC = 1000000 // time.h:246:1: + MILLISEC = 1000 // time.h:245:1: + MINSIGSTKSZ = 2048 // signal.h:166:1: + NANOSEC = 1000000000 // time.h:247:1: + NBBY = 8 // select.h:103:1: + NSIG = 75 // signal.h:162:1: + NSIGBUS = 3 // machsig.h:115:1: + NSIGCLD = 6 // siginfo.h:172:1: + NSIGEMT = 1 // machsig.h:75:1: + NSIGFPE = 9 // machsig.h:92:1: + NSIGILL = 8 // machsig.h:66:1: + NSIGPOLL = 6 // siginfo.h:187:1: + NSIGPROF = 1 // siginfo.h:198:1: + NSIGSEGV = 2 // machsig.h:102:1: + NSIGTRAP = 6 // siginfo.h:157:1: + POLLERR = 0x0008 // poll.h:74:1: + POLLET = 0x2000 // poll.h:84:1: + POLLHUP = 0x0010 // poll.h:75:1: + POLLIN = 0x0001 // poll.h:59:1: + POLLNORM = 64 // poll.h:68:1: + POLLNVAL = 0x0020 // poll.h:76:1: + POLLONESHOT = 0x1000 // poll.h:83:1: + POLLOUT = 0x0004 // poll.h:61:1: + POLLPRI = 0x0002 // poll.h:60:1: + POLLRDBAND = 0x0080 // poll.h:64:1: + POLLRDHUP = 0x4000 // poll.h:66:1: + POLLRDNORM = 0x0040 // poll.h:62:1: + POLLREMOVE = 0x0800 // poll.h:82:1: + POLLWRBAND = 0x0100 // poll.h:65:1: + POLLWRNORM = 4 // poll.h:63:1: + POLL_ERR = 4 // siginfo.h:182:1: + POLL_HUP = 6 // siginfo.h:184:1: + POLL_IN = 1 // siginfo.h:179:1: + POLL_MSG = 3 // siginfo.h:181:1: + POLL_OUT = 2 // siginfo.h:180:1: + POLL_PRI = 5 // siginfo.h:183:1: + PROF_SIG = 1 // siginfo.h:197:1: + P_INITPGID = 0 // procset.h:50:1: + P_INITPID = 1 // procset.h:48:1: + P_INITUID = 0 // procset.h:49:1: + P_MYID = -1 // types.h:632:1: + REG_LABEL_BP = 2 // machtypes.h:44:1: + REG_LABEL_MAX = 8 // machtypes.h:51:1: + REG_LABEL_PC = 0 // machtypes.h:42:1: + REG_LABEL_R12 = 4 // machtypes.h:47:1: + REG_LABEL_R13 = 5 // machtypes.h:48:1: + REG_LABEL_R14 = 6 // machtypes.h:49:1: + REG_LABEL_R15 = 7 // machtypes.h:50:1: + REG_LABEL_RBX = 3 // machtypes.h:46:1: + REG_LABEL_SP = 1 // machtypes.h:43:1: + SA_NOCLDSTOP = 0x00020000 // signal.h:128:1: + SA_NOCLDWAIT = 0x00010000 // signal.h:155:1: + SA_NODEFER = 0x00000010 // signal.h:152:1: + SA_ONSTACK = 0x00000001 // signal.h:138:1: + SA_RESETHAND = 0x00000002 // signal.h:139:1: + SA_RESTART = 0x00000004 // signal.h:140:1: + SA_SIGINFO = 0x00000008 // signal.h:146:1: + SEC = 1 // time.h:244:1: + SEGV_ACCERR = 2 // machsig.h:100:1: + SEGV_MAPERR = 1 // machsig.h:99:1: + SIG2STR_MAX = 32 // signal.h:95:1: + SIGABRT = 6 // signal_iso.h:58:1: + SIGALRM = 14 // signal_iso.h:66:1: + SIGBUS = 10 // signal_iso.h:62:1: + SIGCANCEL = 36 // signal_iso.h:90:1: + SIGCHLD = 18 // signal_iso.h:71:1: + SIGCLD = 18 // signal_iso.h:70:1: + SIGCONT = 25 // signal_iso.h:79:1: + SIGEMT = 7 // signal_iso.h:59:1: + SIGEV_NONE = 1 // siginfo.h:95:1: + SIGEV_PORT = 4 // siginfo.h:98:1: + SIGEV_SIGNAL = 2 // siginfo.h:96:1: + SIGEV_THREAD = 3 // siginfo.h:97:1: + SIGFPE = 8 // signal_iso.h:60:1: + SIGFREEZE = 34 // signal_iso.h:88:1: + SIGHUP = 1 // signal_iso.h:52:1: + SIGILL = 4 // signal_iso.h:55:1: + SIGINFO = 41 // signal_iso.h:95:1: + SIGINT = 2 // signal_iso.h:53:1: + SIGIO = 22 // signal_iso.h:76:1: + SIGIOT = 6 // signal_iso.h:57:1: + SIGJVM1 = 39 // signal_iso.h:93:1: + SIGJVM2 = 40 // signal_iso.h:94:1: + SIGKILL = 9 // signal_iso.h:61:1: + SIGLOST = 37 // signal_iso.h:91:1: + SIGLWP = 33 // signal_iso.h:87:1: + SIGPIPE = 13 // signal_iso.h:65:1: + SIGPOLL = 22 // signal_iso.h:75:1: + SIGPROF = 29 // signal_iso.h:83:1: + SIGPWR = 19 // signal_iso.h:72:1: + SIGQUIT = 3 // signal_iso.h:54:1: + SIGSEGV = 11 // signal_iso.h:63:1: + SIGSTKSZ = 8192 // signal.h:167:1: + SIGSTOP = 23 // signal_iso.h:77:1: + SIGSYS = 12 // signal_iso.h:64:1: + SIGTERM = 15 // signal_iso.h:67:1: + SIGTHAW = 35 // signal_iso.h:89:1: + SIGTRAP = 5 // signal_iso.h:56:1: + SIGTSTP = 24 // signal_iso.h:78:1: + SIGTTIN = 26 // signal_iso.h:80:1: + SIGTTOU = 27 // signal_iso.h:81:1: + SIGURG = 21 // signal_iso.h:74:1: + SIGUSR1 = 16 // signal_iso.h:68:1: + SIGUSR2 = 17 // signal_iso.h:69:1: + SIGVTALRM = 28 // signal_iso.h:82:1: + SIGWAITING = 32 // signal_iso.h:86:1: + SIGWINCH = 20 // signal_iso.h:73:1: + SIGXCPU = 30 // signal_iso.h:84:1: + SIGXFSZ = 31 // signal_iso.h:85:1: + SIGXRES = 38 // signal_iso.h:92:1: + SIG_BLOCK = 1 // signal_iso.h:131:1: + SIG_SETMASK = 3 // signal_iso.h:133:1: + SIG_UNBLOCK = 2 // signal_iso.h:132:1: + SI_ASYNCIO = -4 // siginfo.h:134:1: + SI_DTRACE = 2050 // siginfo.h:128:1: + SI_LWP = -1 // siginfo.h:131:1: + SI_MAXSZ = 256 // siginfo.h:206:1: + SI_MESGQ = -5 // siginfo.h:135:1: + SI_NOINFO = 32767 // siginfo.h:127:1: + SI_QUEUE = -2 // siginfo.h:132:1: + SI_RCTL = 2049 // siginfo.h:129:1: + SI_TIMER = -3 // siginfo.h:133:1: + SI_USER = 0 // siginfo.h:130:1: + SN_CANCEL = 2 // signal.h:226:1: + SN_PROC = 1 // signal.h:225:1: + SN_SEND = 3 // signal.h:227:1: + SS_DISABLE = 0x00000002 // signal.h:170:1: + SS_ONSTACK = 0x00000001 // signal.h:169:1: + TIMER_ABSTIME = 0x1 // time_impl.h:134:1: + TIMER_RELTIME = 0x0 // time_impl.h:133:1: + TIME_UTC = 0x1 // time.h:306:1: + TRAP_BRKPT = 1 // siginfo.h:150:1: + TRAP_DTRACE = 6 // siginfo.h:155:1: + TRAP_RWATCH = 3 // siginfo.h:152:1: + TRAP_TRACE = 2 // siginfo.h:151:1: + TRAP_WWATCH = 4 // siginfo.h:153:1: + TRAP_XWATCH = 5 // siginfo.h:154:1: + X_ACL_ACE_ENABLED = 0x2 // unistd.h:349:1: + X_ACL_ACLENT_ENABLED = 0x1 // unistd.h:348:1: + X_ALIGNMENT_REQUIRED = 1 // isa_defs.h:262:1: + X_BIT_FIELDS_LTOH = 0 // isa_defs.h:245:1: + X_BOOL_ALIGNMENT = 1 // isa_defs.h:248:1: + X_CASE_INSENSITIVE = 0x2 // unistd.h:342:1: + X_CASE_SENSITIVE = 0x1 // unistd.h:341:1: + X_CHAR_ALIGNMENT = 1 // isa_defs.h:249:1: + X_CHAR_IS_SIGNED = 0 // isa_defs.h:247:1: + X_CLOCKID_T = 0 // types.h:568:1: + X_CLOCK_T = 0 // time_iso.h:69:1: + X_COND_MAGIC = 0x4356 // types.h:426:1: + X_CS_LFS64_CFLAGS = 72 // unistd.h:61:1: + X_CS_LFS64_LDFLAGS = 73 // unistd.h:62:1: + X_CS_LFS64_LIBS = 74 // unistd.h:63:1: + X_CS_LFS64_LINTFLAGS = 75 // unistd.h:64:1: + X_CS_LFS_CFLAGS = 68 // unistd.h:56:1: + X_CS_LFS_LDFLAGS = 69 // unistd.h:57:1: + X_CS_LFS_LIBS = 70 // unistd.h:58:1: + X_CS_LFS_LINTFLAGS = 71 // unistd.h:59:1: + X_CS_PATH = 65 // unistd.h:50:1: + X_CS_POSIX_V6_ILP32_OFF32_CFLAGS = 800 // unistd.h:85:1: + X_CS_POSIX_V6_ILP32_OFF32_LDFLAGS = 801 // unistd.h:86:1: + X_CS_POSIX_V6_ILP32_OFF32_LIBS = 802 // unistd.h:87:1: + X_CS_POSIX_V6_ILP32_OFF32_LINTFLAGS = 803 // unistd.h:88:1: + X_CS_POSIX_V6_ILP32_OFFBIG_CFLAGS = 804 // unistd.h:89:1: + X_CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS = 805 // unistd.h:90:1: + X_CS_POSIX_V6_ILP32_OFFBIG_LIBS = 806 // unistd.h:91:1: + X_CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS = 807 // unistd.h:92:1: + X_CS_POSIX_V6_LP64_OFF64_CFLAGS = 808 // unistd.h:93:1: + X_CS_POSIX_V6_LP64_OFF64_LDFLAGS = 809 // unistd.h:94:1: + X_CS_POSIX_V6_LP64_OFF64_LIBS = 810 // unistd.h:95:1: + X_CS_POSIX_V6_LP64_OFF64_LINTFLAGS = 811 // unistd.h:96:1: + X_CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS = 812 // unistd.h:97:1: + X_CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS = 813 // unistd.h:98:1: + X_CS_POSIX_V6_LPBIG_OFFBIG_LIBS = 814 // unistd.h:99:1: + X_CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS = 815 // unistd.h:100:1: + X_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS = 816 // unistd.h:101:1: + X_CS_XBS5_ILP32_OFF32_CFLAGS = 700 // unistd.h:67:1: + X_CS_XBS5_ILP32_OFF32_LDFLAGS = 701 // unistd.h:68:1: + X_CS_XBS5_ILP32_OFF32_LIBS = 702 // unistd.h:69:1: + X_CS_XBS5_ILP32_OFF32_LINTFLAGS = 703 // unistd.h:70:1: + X_CS_XBS5_ILP32_OFFBIG_CFLAGS = 705 // unistd.h:71:1: + X_CS_XBS5_ILP32_OFFBIG_LDFLAGS = 706 // unistd.h:72:1: + X_CS_XBS5_ILP32_OFFBIG_LIBS = 707 // unistd.h:73:1: + X_CS_XBS5_ILP32_OFFBIG_LINTFLAGS = 708 // unistd.h:74:1: + X_CS_XBS5_LP64_OFF64_CFLAGS = 709 // unistd.h:75:1: + X_CS_XBS5_LP64_OFF64_LDFLAGS = 710 // unistd.h:76:1: + X_CS_XBS5_LP64_OFF64_LIBS = 711 // unistd.h:77:1: + X_CS_XBS5_LP64_OFF64_LINTFLAGS = 712 // unistd.h:78:1: + X_CS_XBS5_LPBIG_OFFBIG_CFLAGS = 713 // unistd.h:79:1: + X_CS_XBS5_LPBIG_OFFBIG_LDFLAGS = 714 // unistd.h:80:1: + X_CS_XBS5_LPBIG_OFFBIG_LIBS = 715 // unistd.h:81:1: + X_CS_XBS5_LPBIG_OFFBIG_LINTFLAGS = 716 // unistd.h:82:1: + X_DMA_USES_PHYSADDR = 0 // isa_defs.h:281:1: + X_DONT_USE_1275_GENERIC_NAMES = 0 // isa_defs.h:287:1: + X_DOUBLE_ALIGNMENT = 8 // isa_defs.h:256:1: + X_DOUBLE_COMPLEX_ALIGNMENT = 8 // isa_defs.h:257:1: + X_DTRACE_VERSION = 1 // feature_tests.h:490:1: + X_FILE_OFFSET_BITS = 64 // :25:1: + X_FIRMWARE_NEEDS_FDISK = 0 // isa_defs.h:282:1: + X_FLOAT_ALIGNMENT = 4 // isa_defs.h:252:1: + X_FLOAT_COMPLEX_ALIGNMENT = 4 // isa_defs.h:253:1: + X_HAVE_CPUID_INSN = 0 // isa_defs.h:288:1: + X_IEEE_754 = 0 // isa_defs.h:246:1: + X_INT64_TYPE = 0 // int_types.h:82:1: + X_INT_ALIGNMENT = 4 // isa_defs.h:251:1: + X_ISO_CPP_14882_1998 = 0 // feature_tests.h:466:1: + X_ISO_C_9899_1999 = 0 // feature_tests.h:472:1: + X_ISO_C_9899_2011 = 0 // feature_tests.h:478:1: + X_ISO_SIGNAL_ISO_H = 0 // signal_iso.h:46:1: + X_ISO_TIME_ISO_H = 0 // time_iso.h:46:1: + X_LARGEFILE64_SOURCE = 1 // feature_tests.h:231:1: + X_LARGEFILE_SOURCE = 1 // feature_tests.h:235:1: + X_LITTLE_ENDIAN = 0 // isa_defs.h:242:1: + X_LOCALE_T = 0 // time.h:291:1: + X_LONGLONG_TYPE = 0 // feature_tests.h:412:1: + X_LONG_ALIGNMENT = 8 // isa_defs.h:254:1: + X_LONG_DOUBLE_ALIGNMENT = 16 // isa_defs.h:258:1: + X_LONG_DOUBLE_COMPLEX_ALIGNMENT = 16 // isa_defs.h:259:1: + X_LONG_LONG_ALIGNMENT = 8 // isa_defs.h:255:1: + X_LONG_LONG_ALIGNMENT_32 = 4 // isa_defs.h:268:1: + X_LONG_LONG_LTOH = 0 // isa_defs.h:244:1: + X_LP64 = 1 // :286:1: + X_MAX_ALIGNMENT = 16 // isa_defs.h:261:1: + X_MULTI_DATAMODEL = 0 // isa_defs.h:279:1: + X_MUTEX_MAGIC = 0x4d58 // types.h:424:1: + X_NBBY = 8 // select.h:100:1: + X_NORETURN_KYWD = 0 // feature_tests.h:448:1: + X_OFF_T = 0 // types.h:142:1: + X_PC_2_SYMLINKS = 19 // unistd.h:309:1: + X_PC_ACCESS_FILTERING = 25 // unistd.h:315:1: + X_PC_ACL_ENABLED = 20 // unistd.h:310:1: + X_PC_ALLOC_SIZE_MIN = 13 // unistd.h:303:1: + X_PC_ASYNC_IO = 10 // unistd.h:299:1: + X_PC_CASE_BEHAVIOR = 22 // unistd.h:312:1: + X_PC_CHOWN_RESTRICTED = 9 // unistd.h:297:1: + X_PC_FILESIZEBITS = 67 // unistd.h:325:1: + X_PC_LAST = 101 // unistd.h:336:1: + X_PC_LINK_MAX = 1 // unistd.h:289:1: + X_PC_MAX_CANON = 2 // unistd.h:290:1: + X_PC_MAX_INPUT = 3 // unistd.h:291:1: + X_PC_MIN_HOLE_SIZE = 21 // unistd.h:311:1: + X_PC_NAME_MAX = 4 // unistd.h:292:1: + X_PC_NO_TRUNC = 7 // unistd.h:295:1: + X_PC_PATH_MAX = 5 // unistd.h:293:1: + X_PC_PIPE_BUF = 6 // unistd.h:294:1: + X_PC_PRIO_IO = 11 // unistd.h:300:1: + X_PC_REC_INCR_XFER_SIZE = 14 // unistd.h:304:1: + X_PC_REC_MAX_XFER_SIZE = 15 // unistd.h:305:1: + X_PC_REC_MIN_XFER_SIZE = 16 // unistd.h:306:1: + X_PC_REC_XFER_ALIGN = 17 // unistd.h:307:1: + X_PC_SATTR_ENABLED = 23 // unistd.h:313:1: + X_PC_SATTR_EXISTS = 24 // unistd.h:314:1: + X_PC_SYMLINK_MAX = 18 // unistd.h:308:1: + X_PC_SYNC_IO = 12 // unistd.h:301:1: + X_PC_TIMESTAMP_RESOLUTION = 26 // unistd.h:317:1: + X_PC_VDISABLE = 8 // unistd.h:296:1: + X_PC_XATTR_ENABLED = 100 // unistd.h:330:1: + X_PC_XATTR_EXISTS = 101 // unistd.h:331:1: + X_POINTER_ALIGNMENT = 8 // isa_defs.h:260:1: + X_POLL_H = 0 // poll.h:31:1: + X_POSIX2_CHAR_TERM = 1 // unistd.h:391:1: + X_POSIX2_C_BIND = 1 // unistd.h:401:1: + X_POSIX2_C_DEV = 1 // unistd.h:402:1: + X_POSIX2_C_VERSION = 199209 // unistd.h:376:1: + X_POSIX2_FORT_RUN = 1 // unistd.h:403:1: + X_POSIX2_LOCALEDEF = 1 // unistd.h:404:1: + X_POSIX2_SW_DEV = 1 // unistd.h:405:1: + X_POSIX2_UPE = 1 // unistd.h:406:1: + X_POSIX2_VERSION = 199209 // unistd.h:363:1: + X_POSIX_REGEXP = 1 // unistd.h:410:1: + X_POSIX_SHELL = 1 // unistd.h:411:1: + X_POSIX_VERSION = 199506 // unistd.h:355:1: + X_PSM_MODULES = 0 // isa_defs.h:284:1: + X_PTRDIFF_T = 0 // types.h:112:1: + X_RESTRICT_KYWD = 0 // feature_tests.h:435:1: + X_RTC_CONFIG = 0 // isa_defs.h:285:1: + X_RWL_MAGIC = 0x5257 // types.h:427:1: + X_SC_2_CHAR_TERM = 66 // unistd.h:175:1: + X_SC_2_C_BIND = 45 // unistd.h:153:1: + X_SC_2_C_DEV = 46 // unistd.h:154:1: + X_SC_2_C_VERSION = 47 // unistd.h:155:1: + X_SC_2_FORT_DEV = 48 // unistd.h:156:1: + X_SC_2_FORT_RUN = 49 // unistd.h:157:1: + X_SC_2_LOCALEDEF = 50 // unistd.h:158:1: + X_SC_2_PBS = 724 // unistd.h:246:1: + X_SC_2_PBS_ACCOUNTING = 725 // unistd.h:247:1: + X_SC_2_PBS_CHECKPOINT = 726 // unistd.h:248:1: + X_SC_2_PBS_LOCATE = 728 // unistd.h:249:1: + X_SC_2_PBS_MESSAGE = 729 // unistd.h:250:1: + X_SC_2_PBS_TRACK = 730 // unistd.h:251:1: + X_SC_2_SW_DEV = 51 // unistd.h:159:1: + X_SC_2_UPE = 52 // unistd.h:160:1: + X_SC_2_VERSION = 53 // unistd.h:161:1: + X_SC_ADVISORY_INFO = 731 // unistd.h:252:1: + X_SC_AIO_LISTIO_MAX = 18 // unistd.h:125:1: + X_SC_AIO_MAX = 19 // unistd.h:126:1: + X_SC_AIO_PRIO_DELTA_MAX = 20 // unistd.h:127:1: + X_SC_ARG_MAX = 1 // unistd.h:106:1: + X_SC_ASYNCHRONOUS_IO = 21 // unistd.h:128:1: + X_SC_ATEXIT_MAX = 76 // unistd.h:179:1: + X_SC_AVPHYS_PAGES = 501 // unistd.h:190:1: + X_SC_BARRIERS = 732 // unistd.h:253:1: + X_SC_BC_BASE_MAX = 54 // unistd.h:162:1: + X_SC_BC_DIM_MAX = 55 // unistd.h:163:1: + X_SC_BC_SCALE_MAX = 56 // unistd.h:164:1: + X_SC_BC_STRING_MAX = 57 // unistd.h:165:1: + X_SC_CHILD_MAX = 2 // unistd.h:107:1: + X_SC_CLK_TCK = 3 // unistd.h:108:1: + X_SC_CLOCK_SELECTION = 733 // unistd.h:254:1: + X_SC_COHER_BLKSZ = 503 // unistd.h:196:1: + X_SC_COLL_WEIGHTS_MAX = 58 // unistd.h:166:1: + X_SC_CPUID_MAX = 517 // unistd.h:211:1: + X_SC_CPUTIME = 734 // unistd.h:255:1: + X_SC_DCACHE_ASSOC = 513 // unistd.h:206:1: + X_SC_DCACHE_BLKSZ = 510 // unistd.h:203:1: + X_SC_DCACHE_LINESZ = 508 // unistd.h:201:1: + X_SC_DCACHE_SZ = 506 // unistd.h:199:1: + X_SC_DCACHE_TBLKSZ = 511 // unistd.h:204:1: + X_SC_DELAYTIMER_MAX = 22 // unistd.h:129:1: + X_SC_EPHID_MAX = 518 // unistd.h:212:1: + X_SC_EXPR_NEST_MAX = 59 // unistd.h:167:1: + X_SC_FSYNC = 23 // unistd.h:130:1: + X_SC_GETGR_R_SIZE_MAX = 569 // unistd.h:220:1: + X_SC_GETPW_R_SIZE_MAX = 570 // unistd.h:221:1: + X_SC_HOST_NAME_MAX = 735 // unistd.h:256:1: + X_SC_ICACHE_ASSOC = 512 // unistd.h:205:1: + X_SC_ICACHE_BLKSZ = 509 // unistd.h:202:1: + X_SC_ICACHE_LINESZ = 507 // unistd.h:200:1: + X_SC_ICACHE_SZ = 505 // unistd.h:198:1: + X_SC_IOV_MAX = 77 // unistd.h:180:1: + X_SC_IPV6 = 762 // unistd.h:283:1: + X_SC_JOB_CONTROL = 6 // unistd.h:111:1: + X_SC_LINE_MAX = 60 // unistd.h:168:1: + X_SC_LOGIN_NAME_MAX = 571 // unistd.h:222:1: + X_SC_LOGNAME_MAX = 10 // unistd.h:116:1: + X_SC_MAPPED_FILES = 24 // unistd.h:131:1: + X_SC_MAXPID = 514 // unistd.h:208:1: + X_SC_MEMLOCK = 25 // unistd.h:132:1: + X_SC_MEMLOCK_RANGE = 26 // unistd.h:133:1: + X_SC_MEMORY_PROTECTION = 27 // unistd.h:134:1: + X_SC_MESSAGE_PASSING = 28 // unistd.h:135:1: + X_SC_MONOTONIC_CLOCK = 736 // unistd.h:257:1: + X_SC_MQ_OPEN_MAX = 29 // unistd.h:136:1: + X_SC_MQ_PRIO_MAX = 30 // unistd.h:137:1: + X_SC_NGROUPS_MAX = 4 // unistd.h:109:1: + X_SC_NPROCESSORS_CONF = 14 // unistd.h:120:1: + X_SC_NPROCESSORS_MAX = 516 // unistd.h:210:1: + X_SC_NPROCESSORS_ONLN = 15 // unistd.h:121:1: + X_SC_OPEN_MAX = 5 // unistd.h:110:1: + X_SC_PAGESIZE = 11 // unistd.h:117:1: + X_SC_PAGE_SIZE = 11 // unistd.h:182:1: + X_SC_PASS_MAX = 9 // unistd.h:115:1: + X_SC_PHYS_PAGES = 500 // unistd.h:189:1: + X_SC_PRIORITIZED_IO = 31 // unistd.h:138:1: + X_SC_PRIORITY_SCHEDULING = 32 // unistd.h:139:1: + X_SC_RAW_SOCKETS = 763 // unistd.h:284:1: + X_SC_READER_WRITER_LOCKS = 737 // unistd.h:258:1: + X_SC_REALTIME_SIGNALS = 33 // unistd.h:140:1: + X_SC_REGEXP = 738 // unistd.h:259:1: + X_SC_RE_DUP_MAX = 61 // unistd.h:169:1: + X_SC_RTSIG_MAX = 34 // unistd.h:141:1: + X_SC_SAVED_IDS = 7 // unistd.h:112:1: + X_SC_SEMAPHORES = 35 // unistd.h:142:1: + X_SC_SEM_NSEMS_MAX = 36 // unistd.h:143:1: + X_SC_SEM_VALUE_MAX = 37 // unistd.h:144:1: + X_SC_SHARED_MEMORY_OBJECTS = 38 // unistd.h:145:1: + X_SC_SHELL = 739 // unistd.h:260:1: + X_SC_SIGQUEUE_MAX = 39 // unistd.h:146:1: + X_SC_SIGRT_MAX = 41 // unistd.h:148:1: + X_SC_SIGRT_MIN = 40 // unistd.h:147:1: + X_SC_SPAWN = 740 // unistd.h:261:1: + X_SC_SPIN_LOCKS = 741 // unistd.h:262:1: + X_SC_SPLIT_CACHE = 504 // unistd.h:197:1: + X_SC_SPORADIC_SERVER = 742 // unistd.h:263:1: + X_SC_SS_REPL_MAX = 743 // unistd.h:264:1: + X_SC_STACK_PROT = 515 // unistd.h:209:1: + X_SC_STREAM_MAX = 16 // unistd.h:122:1: + X_SC_SYMLOOP_MAX = 744 // unistd.h:265:1: + X_SC_SYNCHRONIZED_IO = 42 // unistd.h:149:1: + X_SC_THREADS = 576 // unistd.h:227:1: + X_SC_THREAD_ATTR_STACKADDR = 577 // unistd.h:228:1: + X_SC_THREAD_ATTR_STACKSIZE = 578 // unistd.h:229:1: + X_SC_THREAD_CPUTIME = 745 // unistd.h:266:1: + X_SC_THREAD_DESTRUCTOR_ITERATIONS = 568 // unistd.h:219:1: + X_SC_THREAD_KEYS_MAX = 572 // unistd.h:223:1: + X_SC_THREAD_PRIORITY_SCHEDULING = 579 // unistd.h:230:1: + X_SC_THREAD_PRIO_INHERIT = 580 // unistd.h:231:1: + X_SC_THREAD_PRIO_PROTECT = 581 // unistd.h:232:1: + X_SC_THREAD_PROCESS_SHARED = 582 // unistd.h:233:1: + X_SC_THREAD_SAFE_FUNCTIONS = 583 // unistd.h:234:1: + X_SC_THREAD_SPORADIC_SERVER = 746 // unistd.h:267:1: + X_SC_THREAD_STACK_MIN = 573 // unistd.h:224:1: + X_SC_THREAD_THREADS_MAX = 574 // unistd.h:225:1: + X_SC_TIMEOUTS = 747 // unistd.h:268:1: + X_SC_TIMERS = 43 // unistd.h:150:1: + X_SC_TIMER_MAX = 44 // unistd.h:151:1: + X_SC_TRACE = 748 // unistd.h:269:1: + X_SC_TRACE_EVENT_FILTER = 749 // unistd.h:270:1: + X_SC_TRACE_EVENT_NAME_MAX = 750 // unistd.h:271:1: + X_SC_TRACE_INHERIT = 751 // unistd.h:272:1: + X_SC_TRACE_LOG = 752 // unistd.h:273:1: + X_SC_TRACE_NAME_MAX = 753 // unistd.h:274:1: + X_SC_TRACE_SYS_MAX = 754 // unistd.h:275:1: + X_SC_TRACE_USER_EVENT_MAX = 755 // unistd.h:276:1: + X_SC_TTY_NAME_MAX = 575 // unistd.h:226:1: + X_SC_TYPED_MEMORY_OBJECTS = 756 // unistd.h:277:1: + X_SC_TZNAME_MAX = 17 // unistd.h:123:1: + X_SC_T_IOV_MAX = 79 // unistd.h:186:1: + X_SC_UADDR_MAX = 519 // unistd.h:213:1: + X_SC_V6_ILP32_OFF32 = 757 // unistd.h:278:1: + X_SC_V6_ILP32_OFFBIG = 758 // unistd.h:279:1: + X_SC_V6_LP64_OFF64 = 759 // unistd.h:280:1: + X_SC_V6_LPBIG_OFFBIG = 760 // unistd.h:281:1: + X_SC_VERSION = 8 // unistd.h:113:1: + X_SC_XBS5_ILP32_OFF32 = 720 // unistd.h:240:1: + X_SC_XBS5_ILP32_OFFBIG = 721 // unistd.h:241:1: + X_SC_XBS5_LP64_OFF64 = 722 // unistd.h:242:1: + X_SC_XBS5_LPBIG_OFFBIG = 723 // unistd.h:243:1: + X_SC_XOPEN_CRYPT = 62 // unistd.h:170:1: + X_SC_XOPEN_ENH_I18N = 63 // unistd.h:171:1: + X_SC_XOPEN_LEGACY = 717 // unistd.h:237:1: + X_SC_XOPEN_REALTIME = 718 // unistd.h:238:1: + X_SC_XOPEN_REALTIME_THREADS = 719 // unistd.h:239:1: + X_SC_XOPEN_SHM = 64 // unistd.h:172:1: + X_SC_XOPEN_STREAMS = 761 // unistd.h:282:1: + X_SC_XOPEN_UNIX = 78 // unistd.h:181:1: + X_SC_XOPEN_VERSION = 12 // unistd.h:118:1: + X_SC_XOPEN_XCU_VERSION = 67 // unistd.h:176:1: + X_SEMA_MAGIC = 0x534d // types.h:425:1: + X_SHORT_ALIGNMENT = 2 // isa_defs.h:250:1: + X_SIGEVENT = 0 // time.h:132:1: + X_SIGNAL_H = 0 // signal.h:33:1: + X_SIGRTMAX = 74 // signal_iso.h:99:1: + X_SIGRTMIN = 42 // signal_iso.h:98:1: + X_SIGSET_T = 0 // select.h:73:1: + X_SIGVAL = 0 // time.h:124:1: + X_SIZE_T = 0 // time_iso.h:60:1: + X_SOFT_HOSTID = 0 // isa_defs.h:286:1: + X_SSIZE_T = 0 // types.h:549:1: + X_STACK_GROWS_DOWNWARD = 0 // isa_defs.h:243:1: + X_STACK_T = 0 // signal.h:174:1: + X_STDC_C11 = 0 // feature_tests.h:165:1: + X_STDC_C99 = 0 // feature_tests.h:169:1: + X_SUNOS_VTOC_16 = 0 // isa_defs.h:280:1: + X_SUSECONDS_T = 0 // types.h:343:1: + X_SYS_CCOMPILE_H = 0 // ccompile.h:32:1: + X_SYS_FEATURE_TESTS_H = 0 // feature_tests.h:41:1: + X_SYS_INT_TYPES_H = 0 // int_types.h:30:1: + X_SYS_ISA_DEFS_H = 0 // isa_defs.h:30:1: + X_SYS_MACHSIG_H = 0 // machsig.h:32:1: + X_SYS_MACHTYPES_H = 0 // machtypes.h:27:1: + X_SYS_NULL_H = 0 // null.h:17:1: + X_SYS_POLL_H = 0 // poll.h:38:1: + X_SYS_PROCSET_H = 0 // procset.h:32:1: + X_SYS_SELECT_H = 0 // select.h:45:1: + X_SYS_SIGINFO_H = 0 // siginfo.h:31:1: + X_SYS_SIGNAL_H = 0 // signal.h:42:1: + X_SYS_SIGNAL_ISO_H = 0 // signal_iso.h:44:1: + X_SYS_TIME_H = 0 // time.h:27:1: + X_SYS_TIME_IMPL_H = 0 // time_impl.h:38:1: + X_SYS_TYPES_H = 0 // types.h:35:1: + X_SYS_UNISTD_H = 0 // unistd.h:40:1: + X_TIMER_T = 0 // types.h:573:1: + X_TIME_H = 0 // time.h:37:1: + X_TIME_T = 0 // time_iso.h:74:1: + X_UID_T = 0 // types.h:400:1: + X_VM_FAULTCODE_H = 0 // faultcode.h:40:1: + X_XOPEN_ENH_I18N = 1 // unistd.h:389:1: + X_XOPEN_REALTIME = 1 // unistd.h:388:1: + X_XOPEN_SHM = 1 // unistd.h:390:1: + X_XOPEN_STREAMS = 1 // unistd.h:412:1: + X_XOPEN_UNIX = 0 // unistd.h:382:1: + X_XOPEN_VERSION = 3 // feature_tests.h:392:1: + X_XOPEN_XCU_VERSION = 4 // unistd.h:385:1: + X_XOPEN_XPG3 = 0 // unistd.h:380:1: + X_XOPEN_XPG4 = 0 // unistd.h:381:1: + Sun = 1 // :172:1: + Unix = 1 // :175:1: +) + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2021 Oxide Computer Company + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2010 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2015, Joyent, Inc. + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// University Copyright- Copyright (c) 1982, 1986, 1988 +// The Regents of the University of California +// All Rights Reserved +// +// University Acknowledgment- Portions of this document are derived from +// software developed by the University of California, Berkeley, and its +// contributors. + +// This file defines the data needed to specify a set of +// processes. These types are used by the sigsend, sigsendset, +// priocntl, priocntlset, waitid, evexit, and evexitset system +// calls. + +// The following defines the values for an identifier type. It +// specifies the interpretation of an id value. An idtype and +// id together define a simple set of processes. +const ( /* procset.h:58:1: */ + P_PID = 0 // A process identifier. + P_PPID = 1 // A parent process identifier. + P_PGID = 2 // A process group (job control group) + // identifier. + P_SID = 3 // A session identifier. + P_CID = 4 // A scheduling class identifier. + P_UID = 5 // A user identifier. + P_GID = 6 // A group identifier. + P_ALL = 7 // All processes. + P_LWPID = 8 // An LWP identifier. + P_TASKID = 9 // A task identifier. + P_PROJID = 10 // A project identifier. + P_POOLID = 11 // A pool identifier. + P_ZONEID = 12 // A zone identifier. + P_CTID = 13 // A (process) contract identifier. + P_CPUID = 14 // CPU identifier. + P_PSETID = 15 +) + +// The following defines the operations which can be performed to +// combine two simple sets of processes to form another set of +// processes. +const ( /* procset.h:89:1: */ + POP_DIFF = 0 // Set difference. The processes which + // are in the left operand set and not + // in the right operand set. + POP_AND = 1 // Set disjunction. The processes + // which are in both the left and right + // operand sets. + POP_OR = 2 // Set conjunction. The processes + // which are in either the left or the + // right operand sets (or both). + POP_XOR = 3 +) // used for block sizes + +// The boolean_t type has had a varied amount of exposure over the years in +// terms of how its enumeration constants have been exposed. In particular, it +// originally used the __XOPEN_OR_POSIX macro to determine whether to prefix the +// B_TRUE and B_FALSE with an underscore. This check never included the +// question of if we were in a strict ANSI C environment or whether extensions +// were defined. +// +// Compilers such as clang started defaulting to always including an +// XOPEN_SOURCE declaration on behalf of users, but also noted __EXTENSIONS__. +// This would lead most software that had used the non-underscore versions to +// need it. As such, we have adjusted the non-strict XOPEN environment to retain +// its old behavior so as to minimize namespace pollution; however, we instead +// include both variants of the definitions in the generally visible version +// allowing software written in either world to hopefully end up in a good +// place. +// +// This isn't perfect, but should hopefully minimize the pain for folks actually +// trying to build software. +const ( /* types.h:215:1: */ + B_FALSE = 0 + B_TRUE = 1 + X_B_FALSE = 0 + X_B_TRUE = 1 +) + +type Ptrdiff_t = int64 /* :3:26 */ + +type Size_t = uint64 /* :9:23 */ + +type Wchar_t = int32 /* :15:24 */ + +type X__int128_t = struct { + Flo int64 + Fhi int64 +} /* :21:43 */ // must match modernc.org/mathutil.Int128 +type X__uint128_t = struct { + Flo uint64 + Fhi uint64 +} /* :22:44 */ // must match modernc.org/mathutil.Int128 + +type X__builtin_va_list = uintptr /* :46:14 */ +type X__float128 = float64 /* :47:21 */ + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2014 Garrett D'Amore +// Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved. + +// Copyright (c) 1988 AT&T +// All Rights Reserved + +// Poll system call interface definitions. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2015 EveryCity Ltd. All rights reserved. +// Copyright 2019 Joyent, Inc. + +// This file contains definitions designed to enable different compilers +// to be used harmoniously on Solaris systems. + +// Allow for version tests for compiler bugs and features. + +// analogous to lint's PRINTFLIKEn + +// Handle the kernel printf routines that can take '%b' too + +// This one's pretty obvious -- the function never returns + +// The function is 'extern inline' and expects GNU C89 behaviour, not C99 +// behaviour. +// +// Should only be used on 'extern inline' definitions for GCC. + +// The function has control flow such that it may return multiple times (in +// the manner of setjmp or vfork) + +// This is an appropriate label for functions that do not +// modify their arguments, e.g. strlen() + +// This is a stronger form of __pure__. Can be used for functions +// that do not modify their arguments and don't depend on global +// memory. + +// This attribute, attached to a variable, means that the variable is meant to +// be possibly unused. GCC will not produce a warning for this variable. + +// Shorthand versions for readability + +// In release build, disable warnings about variables +// which are used only for debugging. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2016 Joyent, Inc. + +// This header file serves to group a set of well known defines and to +// set these for each instruction set architecture. These defines may +// be divided into two groups; characteristics of the processor and +// implementation choices for Solaris on a processor. +// +// Processor Characteristics: +// +// _LITTLE_ENDIAN / _BIG_ENDIAN: +// The natural byte order of the processor. A pointer to an int points +// to the least/most significant byte of that int. +// +// _STACK_GROWS_UPWARD / _STACK_GROWS_DOWNWARD: +// The processor specific direction of stack growth. A push onto the +// stack increases/decreases the stack pointer, so it stores data at +// successively higher/lower addresses. (Stackless machines ignored +// without regrets). +// +// _LONG_LONG_HTOL / _LONG_LONG_LTOH: +// A pointer to a long long points to the most/least significant long +// within that long long. +// +// _BIT_FIELDS_HTOL / _BIT_FIELDS_LTOH: +// The C compiler assigns bit fields from the high/low to the low/high end +// of an int (most to least significant vs. least to most significant). +// +// _IEEE_754: +// The processor (or supported implementations of the processor) +// supports the ieee-754 floating point standard. No other floating +// point standards are supported (or significant). Any other supported +// floating point formats are expected to be cased on the ISA processor +// symbol. +// +// _CHAR_IS_UNSIGNED / _CHAR_IS_SIGNED: +// The C Compiler implements objects of type `char' as `unsigned' or +// `signed' respectively. This is really an implementation choice of +// the compiler writer, but it is specified in the ABI and tends to +// be uniform across compilers for an instruction set architecture. +// Hence, it has the properties of a processor characteristic. +// +// _CHAR_ALIGNMENT / _SHORT_ALIGNMENT / _INT_ALIGNMENT / _LONG_ALIGNMENT / +// _LONG_LONG_ALIGNMENT / _DOUBLE_ALIGNMENT / _LONG_DOUBLE_ALIGNMENT / +// _POINTER_ALIGNMENT / _FLOAT_ALIGNMENT: +// The ABI defines alignment requirements of each of the primitive +// object types. Some, if not all, may be hardware requirements as +// well. The values are expressed in "byte-alignment" units. +// +// _MAX_ALIGNMENT: +// The most stringent alignment requirement as specified by the ABI. +// Equal to the maximum of all the above _XXX_ALIGNMENT values. +// +// _MAX_ALIGNMENT_TYPE: +// The name of the C type that has the value descried in _MAX_ALIGNMENT. +// +// _ALIGNMENT_REQUIRED: +// True or false (1 or 0) whether or not the hardware requires the ABI +// alignment. +// +// _LONG_LONG_ALIGNMENT_32 +// The 32-bit ABI supported by a 64-bit kernel may have different +// alignment requirements for primitive object types. The value of this +// identifier is expressed in "byte-alignment" units. +// +// _HAVE_CPUID_INSN +// This indicates that the architecture supports the 'cpuid' +// instruction as defined by Intel. (Intel allows other vendors +// to extend the instruction for their own purposes.) +// +// +// Implementation Choices: +// +// _ILP32 / _LP64: +// This specifies the compiler data type implementation as specified in +// the relevant ABI. The choice between these is strongly influenced +// by the underlying hardware, but is not absolutely tied to it. +// Currently only two data type models are supported: +// +// _ILP32: +// Int/Long/Pointer are 32 bits. This is the historical UNIX +// and Solaris implementation. Due to its historical standing, +// this is the default case. +// +// _LP64: +// Long/Pointer are 64 bits, Int is 32 bits. This is the chosen +// implementation for 64-bit ABIs such as SPARC V9. +// +// _I32LPx: +// A compilation environment where 'int' is 32-bit, and +// longs and pointers are simply the same size. +// +// In all cases, Char is 8 bits and Short is 16 bits. +// +// _SUNOS_VTOC_8 / _SUNOS_VTOC_16 / _SVR4_VTOC_16: +// This specifies the form of the disk VTOC (or label): +// +// _SUNOS_VTOC_8: +// This is a VTOC form which is upwardly compatible with the +// SunOS 4.x disk label and allows 8 partitions per disk. +// +// _SUNOS_VTOC_16: +// In this format the incore vtoc image matches the ondisk +// version. It allows 16 slices per disk, and is not +// compatible with the SunOS 4.x disk label. +// +// Note that these are not the only two VTOC forms possible and +// additional forms may be added. One possible form would be the +// SVr4 VTOC form. The symbol for that is reserved now, although +// it is not implemented. +// +// _SVR4_VTOC_16: +// This VTOC form is compatible with the System V Release 4 +// VTOC (as implemented on the SVr4 Intel and 3b ports) with +// 16 partitions per disk. +// +// +// _DMA_USES_PHYSADDR / _DMA_USES_VIRTADDR +// This describes the type of addresses used by system DMA: +// +// _DMA_USES_PHYSADDR: +// This type of DMA, used in the x86 implementation, +// requires physical addresses for DMA buffers. The 24-bit +// addresses used by some legacy boards is the source of the +// "low-memory" (<16MB) requirement for some devices using DMA. +// +// _DMA_USES_VIRTADDR: +// This method of DMA allows the use of virtual addresses for +// DMA transfers. +// +// _FIRMWARE_NEEDS_FDISK / _NO_FDISK_PRESENT +// This indicates the presence/absence of an fdisk table. +// +// _FIRMWARE_NEEDS_FDISK +// The fdisk table is required by system firmware. If present, +// it allows a disk to be subdivided into multiple fdisk +// partitions, each of which is equivalent to a separate, +// virtual disk. This enables the co-existence of multiple +// operating systems on a shared hard disk. +// +// _NO_FDISK_PRESENT +// If the fdisk table is absent, it is assumed that the entire +// media is allocated for a single operating system. +// +// _HAVE_TEM_FIRMWARE +// Defined if this architecture has the (fallback) option of +// using prom_* calls for doing I/O if a suitable kernel driver +// is not available to do it. +// +// _DONT_USE_1275_GENERIC_NAMES +// Controls whether or not device tree node names should +// comply with the IEEE 1275 "Generic Names" Recommended +// Practice. With _DONT_USE_GENERIC_NAMES, device-specific +// names identifying the particular device will be used. +// +// __i386_COMPAT +// This indicates whether the i386 ABI is supported as a *non-native* +// mode for the platform. When this symbol is defined: +// - 32-bit xstat-style system calls are enabled +// - 32-bit xmknod-style system calls are enabled +// - 32-bit system calls use i386 sizes -and- alignments +// +// Note that this is NOT defined for the i386 native environment! +// +// __x86 +// This is ONLY a synonym for defined(__i386) || defined(__amd64) +// which is useful only insofar as these two architectures share +// common attributes. Analogous to __sparc. +// +// _PSM_MODULES +// This indicates whether or not the implementation uses PSM +// modules for processor support, reading /etc/mach from inside +// the kernel to extract a list. +// +// _RTC_CONFIG +// This indicates whether or not the implementation uses /etc/rtc_config +// to configure the real-time clock in the kernel. +// +// _UNIX_KRTLD +// This indicates that the implementation uses a dynamically +// linked unix + krtld to form the core kernel image at boot +// time, or (in the absence of this symbol) a prelinked kernel image. +// +// _OBP +// This indicates the firmware interface is OBP. +// +// _SOFT_HOSTID +// This indicates that the implementation obtains the hostid +// from the file /etc/hostid, rather than from hardware. + +// The following set of definitions characterize Solaris on AMD's +// 64-bit systems. + +// Define the appropriate "processor characteristics" + +// Different alignment constraints for the i386 ABI in compatibility mode + +// Define the appropriate "implementation choices". + +// The feature test macro __i386 is generic for all processors implementing +// the Intel 386 instruction set or a superset of it. Specifically, this +// includes all members of the 386, 486, and Pentium family of processors. + +// Values of _POSIX_C_SOURCE +// +// undefined not a POSIX compilation +// 1 POSIX.1-1990 compilation +// 2 POSIX.2-1992 compilation +// 199309L POSIX.1b-1993 compilation (Real Time) +// 199506L POSIX.1c-1995 compilation (POSIX Threads) +// 200112L POSIX.1-2001 compilation (Austin Group Revision) +// 200809L POSIX.1-2008 compilation + +// The feature test macros __XOPEN_OR_POSIX, _STRICT_STDC, _STRICT_SYMBOLS, +// and _STDC_C99 are Sun implementation specific macros created in order to +// compress common standards specified feature test macros for easier reading. +// These macros should not be used by the application developer as +// unexpected results may occur. Instead, the user should reference +// standards(7) for correct usage of the standards feature test macros. +// +// __XOPEN_OR_POSIX Used in cases where a symbol is defined by both +// X/Open or POSIX or in the negative, when neither +// X/Open or POSIX defines a symbol. +// +// _STRICT_STDC __STDC__ is specified by the C Standards and defined +// by the compiler. For Sun compilers the value of +// __STDC__ is either 1, 0, or not defined based on the +// compilation mode (see cc(1)). When the value of +// __STDC__ is 1 and in the absence of any other feature +// test macros, the namespace available to the application +// is limited to only those symbols defined by the C +// Standard. _STRICT_STDC provides a more readable means +// of identifying symbols defined by the standard, or in +// the negative, symbols that are extensions to the C +// Standard. See additional comments for GNU C differences. +// +// _STDC_C99 __STDC_VERSION__ is specified by the C standards and +// defined by the compiler and indicates the version of +// the C standard. A value of 199901L indicates a +// compiler that complies with ISO/IEC 9899:1999, other- +// wise known as the C99 standard. +// +// _STDC_C11 Like _STDC_C99 except that the value of __STDC_VERSION__ +// is 201112L indicating a compiler that compiles with +// ISO/IEC 9899:2011, otherwise known as the C11 standard. +// +// _STRICT_SYMBOLS Used in cases where symbol visibility is restricted +// by the standards, and the user has not explicitly +// relaxed the strictness via __EXTENSIONS__. + +// ISO/IEC 9899:1990 and it's revisions, ISO/IEC 9899:1999 and ISO/IEC +// 99899:2011 specify the following predefined macro name: +// +// __STDC__ The integer constant 1, intended to indicate a conforming +// implementation. +// +// Furthermore, a strictly conforming program shall use only those features +// of the language and library specified in these standards. A conforming +// implementation shall accept any strictly conforming program. +// +// Based on these requirements, Sun's C compiler defines __STDC__ to 1 for +// strictly conforming environments and __STDC__ to 0 for environments that +// use ANSI C semantics but allow extensions to the C standard. For non-ANSI +// C semantics, Sun's C compiler does not define __STDC__. +// +// The GNU C project interpretation is that __STDC__ should always be defined +// to 1 for compilation modes that accept ANSI C syntax regardless of whether +// or not extensions to the C standard are used. Violations of conforming +// behavior are conditionally flagged as warnings via the use of the +// -pedantic option. In addition to defining __STDC__ to 1, the GNU C +// compiler also defines __STRICT_ANSI__ as a means of specifying strictly +// conforming environments using the -ansi or -std= options. +// +// In the absence of any other compiler options, Sun and GNU set the value +// of __STDC__ as follows when using the following options: +// +// Value of __STDC__ __STRICT_ANSI__ +// +// cc -Xa (default) 0 undefined +// cc -Xt (transitional) 0 undefined +// cc -Xc (strictly conforming) 1 undefined +// cc -Xs (K&R C) undefined undefined +// +// gcc (default) 1 undefined +// gcc -ansi, -std={c89, c99,...) 1 defined +// gcc -traditional (K&R) undefined undefined +// +// The default compilation modes for Sun C compilers versus GNU C compilers +// results in a differing value for __STDC__ which results in a more +// restricted namespace when using Sun compilers. To allow both GNU and Sun +// interpretations to peacefully co-exist, we use the following Sun +// implementation _STRICT_STDC_ macro: + +// Compiler complies with ISO/IEC 9899:1999 or ISO/IEC 9989:2011 + +// Use strict symbol visibility. + +// This is a variant of _STRICT_SYMBOLS that is meant to cover headers that are +// governed by POSIX, but have not been governed by ISO C. One can go two ways +// on what should happen if an application actively includes (not transitively) +// a header that isn't part of the ISO C spec, we opt to say that if someone has +// gone out of there way then they're doing it for a reason and that is an act +// of non-compliance and therefore it's not up to us to hide away every symbol. +// +// In general, prefer using _STRICT_SYMBOLS, but this is here in particular for +// cases where in the past we have only used a POSIX related check and we don't +// wish to make something stricter. Often applications are relying on the +// ability to, or more realistically unwittingly, have _STRICT_STDC declared and +// still use these interfaces. + +// Large file interfaces: +// +// _LARGEFILE_SOURCE +// 1 large file-related additions to POSIX +// interfaces requested (fseeko, etc.) +// _LARGEFILE64_SOURCE +// 1 transitional large-file-related interfaces +// requested (seek64, stat64, etc.) +// +// The corresponding announcement macros are respectively: +// _LFS_LARGEFILE +// _LFS64_LARGEFILE +// (These are set in .) +// +// Requesting _LARGEFILE64_SOURCE implies requesting _LARGEFILE_SOURCE as +// well. +// +// The large file interfaces are made visible regardless of the initial values +// of the feature test macros under certain circumstances: +// - If no explicit standards-conforming environment is requested (neither +// of _POSIX_SOURCE nor _XOPEN_SOURCE is defined and the value of +// __STDC__ does not imply standards conformance). +// - Extended system interfaces are explicitly requested (__EXTENSIONS__ +// is defined). +// - Access to in-kernel interfaces is requested (_KERNEL or _KMEMUSER is +// defined). (Note that this dependency is an artifact of the current +// kernel implementation and may change in future releases.) + +// Large file compilation environment control: +// +// The setting of _FILE_OFFSET_BITS controls the size of various file-related +// types and governs the mapping between file-related source function symbol +// names and the corresponding binary entry points. +// +// In the 32-bit environment, the default value is 32; if not set, set it to +// the default here, to simplify tests in other headers. +// +// In the 64-bit compilation environment, the only value allowed is 64. + +// Use of _XOPEN_SOURCE +// +// The following X/Open specifications are supported: +// +// X/Open Portability Guide, Issue 3 (XPG3) +// X/Open CAE Specification, Issue 4 (XPG4) +// X/Open CAE Specification, Issue 4, Version 2 (XPG4v2) +// X/Open CAE Specification, Issue 5 (XPG5) +// Open Group Technical Standard, Issue 6 (XPG6), also referred to as +// IEEE Std. 1003.1-2001 and ISO/IEC 9945:2002. +// Open Group Technical Standard, Issue 7 (XPG7), also referred to as +// IEEE Std. 1003.1-2008 and ISO/IEC 9945:2009. +// +// XPG4v2 is also referred to as UNIX 95 (SUS or SUSv1). +// XPG5 is also referred to as UNIX 98 or the Single Unix Specification, +// Version 2 (SUSv2) +// XPG6 is the result of a merge of the X/Open and POSIX specifications +// and as such is also referred to as IEEE Std. 1003.1-2001 in +// addition to UNIX 03 and SUSv3. +// XPG7 is also referred to as UNIX 08 and SUSv4. +// +// When writing a conforming X/Open application, as per the specification +// requirements, the appropriate feature test macros must be defined at +// compile time. These are as follows. For more info, see standards(7). +// +// Feature Test Macro Specification +// ------------------------------------------------ ------------- +// _XOPEN_SOURCE XPG3 +// _XOPEN_SOURCE && _XOPEN_VERSION = 4 XPG4 +// _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED = 1 XPG4v2 +// _XOPEN_SOURCE = 500 XPG5 +// _XOPEN_SOURCE = 600 (or POSIX_C_SOURCE=200112L) XPG6 +// _XOPEN_SOURCE = 700 (or POSIX_C_SOURCE=200809L) XPG7 +// +// In order to simplify the guards within the headers, the following +// implementation private test macros have been created. Applications +// must NOT use these private test macros as unexpected results will +// occur. +// +// Note that in general, the use of these private macros is cumulative. +// For example, the use of _XPG3 with no other restrictions on the X/Open +// namespace will make the symbols visible for XPG3 through XPG6 +// compilation environments. The use of _XPG4_2 with no other X/Open +// namespace restrictions indicates that the symbols were introduced in +// XPG4v2 and are therefore visible for XPG4v2 through XPG6 compilation +// environments, but not for XPG3 or XPG4 compilation environments. +// +// _XPG3 X/Open Portability Guide, Issue 3 (XPG3) +// _XPG4 X/Open CAE Specification, Issue 4 (XPG4) +// _XPG4_2 X/Open CAE Specification, Issue 4, Version 2 (XPG4v2/UNIX 95/SUS) +// _XPG5 X/Open CAE Specification, Issue 5 (XPG5/UNIX 98/SUSv2) +// _XPG6 Open Group Technical Standard, Issue 6 (XPG6/UNIX 03/SUSv3) +// _XPG7 Open Group Technical Standard, Issue 7 (XPG7/UNIX 08/SUSv4) + +// X/Open Portability Guide, Issue 3 + +// _XOPEN_VERSION is defined by the X/Open specifications and is not +// normally defined by the application, except in the case of an XPG4 +// application. On the implementation side, _XOPEN_VERSION defined with +// the value of 3 indicates an XPG3 application. _XOPEN_VERSION defined +// with the value of 4 indicates an XPG4 or XPG4v2 (UNIX 95) application. +// _XOPEN_VERSION defined with a value of 500 indicates an XPG5 (UNIX 98) +// application and with a value of 600 indicates an XPG6 (UNIX 03) +// application and with a value of 700 indicates an XPG7 (UNIX 08). +// The appropriate version is determined by the use of the +// feature test macros described earlier. The value of _XOPEN_VERSION +// defaults to 3 otherwise indicating support for XPG3 applications. + +// ANSI C and ISO 9899:1990 say the type long long doesn't exist in strictly +// conforming environments. ISO 9899:1999 says it does. +// +// The presence of _LONGLONG_TYPE says "long long exists" which is therefore +// defined in all but strictly conforming environments that disallow it. + +// The following macro defines a value for the ISO C99 restrict +// keyword so that _RESTRICT_KYWD resolves to "restrict" if +// an ISO C99 compiler is used, "__restrict" for c++ and "" (null string) +// if any other compiler is used. This allows for the use of single +// prototype declarations regardless of compiler version. + +// The following macro defines a value for the ISO C11 _Noreturn +// keyword so that _NORETURN_KYWD resolves to "_Noreturn" if +// an ISO C11 compiler is used and "" (null string) if any other +// compiler is used. This allows for the use of single prototype +// declarations regardless of compiler version. + +// ISO/IEC 9899:2011 Annex K + +// The following macro indicates header support for the ANSI C++ +// standard. The ISO/IEC designation for this is ISO/IEC FDIS 14882. + +// The following macro indicates header support for the C99 standard, +// ISO/IEC 9899:1999, Programming Languages - C. + +// The following macro indicates header support for the C11 standard, +// ISO/IEC 9899:2011, Programming Languages - C. + +// The following macro indicates header support for the C11 standard, +// ISO/IEC 9899:2011 Annex K, Programming Languages - C. + +// The following macro indicates header support for DTrace. The value is an +// integer that corresponds to the major version number for DTrace. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2014 Garrett D'Amore +// +// Copyright (c) 1995, 1998 by Sun Microsystems, Inc. +// All rights reserved. + +// Copyright 2015, Joyent, Inc. + +// Structure of file descriptor/event pairs supplied in +// the poll arrays. +type Pollfd = struct { + Ffd int32 + Fevents int16 + Frevents int16 +} /* poll.h:48:9 */ + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2014 Garrett D'Amore +// Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved. + +// Copyright (c) 1988 AT&T +// All Rights Reserved + +// Poll system call interface definitions. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2015 EveryCity Ltd. All rights reserved. +// Copyright 2019 Joyent, Inc. + +// This file contains definitions designed to enable different compilers +// to be used harmoniously on Solaris systems. + +// Allow for version tests for compiler bugs and features. + +// analogous to lint's PRINTFLIKEn + +// Handle the kernel printf routines that can take '%b' too + +// This one's pretty obvious -- the function never returns + +// The function is 'extern inline' and expects GNU C89 behaviour, not C99 +// behaviour. +// +// Should only be used on 'extern inline' definitions for GCC. + +// The function has control flow such that it may return multiple times (in +// the manner of setjmp or vfork) + +// This is an appropriate label for functions that do not +// modify their arguments, e.g. strlen() + +// This is a stronger form of __pure__. Can be used for functions +// that do not modify their arguments and don't depend on global +// memory. + +// This attribute, attached to a variable, means that the variable is meant to +// be possibly unused. GCC will not produce a warning for this variable. + +// Shorthand versions for readability + +// In release build, disable warnings about variables +// which are used only for debugging. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2016 Joyent, Inc. + +// This header file serves to group a set of well known defines and to +// set these for each instruction set architecture. These defines may +// be divided into two groups; characteristics of the processor and +// implementation choices for Solaris on a processor. +// +// Processor Characteristics: +// +// _LITTLE_ENDIAN / _BIG_ENDIAN: +// The natural byte order of the processor. A pointer to an int points +// to the least/most significant byte of that int. +// +// _STACK_GROWS_UPWARD / _STACK_GROWS_DOWNWARD: +// The processor specific direction of stack growth. A push onto the +// stack increases/decreases the stack pointer, so it stores data at +// successively higher/lower addresses. (Stackless machines ignored +// without regrets). +// +// _LONG_LONG_HTOL / _LONG_LONG_LTOH: +// A pointer to a long long points to the most/least significant long +// within that long long. +// +// _BIT_FIELDS_HTOL / _BIT_FIELDS_LTOH: +// The C compiler assigns bit fields from the high/low to the low/high end +// of an int (most to least significant vs. least to most significant). +// +// _IEEE_754: +// The processor (or supported implementations of the processor) +// supports the ieee-754 floating point standard. No other floating +// point standards are supported (or significant). Any other supported +// floating point formats are expected to be cased on the ISA processor +// symbol. +// +// _CHAR_IS_UNSIGNED / _CHAR_IS_SIGNED: +// The C Compiler implements objects of type `char' as `unsigned' or +// `signed' respectively. This is really an implementation choice of +// the compiler writer, but it is specified in the ABI and tends to +// be uniform across compilers for an instruction set architecture. +// Hence, it has the properties of a processor characteristic. +// +// _CHAR_ALIGNMENT / _SHORT_ALIGNMENT / _INT_ALIGNMENT / _LONG_ALIGNMENT / +// _LONG_LONG_ALIGNMENT / _DOUBLE_ALIGNMENT / _LONG_DOUBLE_ALIGNMENT / +// _POINTER_ALIGNMENT / _FLOAT_ALIGNMENT: +// The ABI defines alignment requirements of each of the primitive +// object types. Some, if not all, may be hardware requirements as +// well. The values are expressed in "byte-alignment" units. +// +// _MAX_ALIGNMENT: +// The most stringent alignment requirement as specified by the ABI. +// Equal to the maximum of all the above _XXX_ALIGNMENT values. +// +// _MAX_ALIGNMENT_TYPE: +// The name of the C type that has the value descried in _MAX_ALIGNMENT. +// +// _ALIGNMENT_REQUIRED: +// True or false (1 or 0) whether or not the hardware requires the ABI +// alignment. +// +// _LONG_LONG_ALIGNMENT_32 +// The 32-bit ABI supported by a 64-bit kernel may have different +// alignment requirements for primitive object types. The value of this +// identifier is expressed in "byte-alignment" units. +// +// _HAVE_CPUID_INSN +// This indicates that the architecture supports the 'cpuid' +// instruction as defined by Intel. (Intel allows other vendors +// to extend the instruction for their own purposes.) +// +// +// Implementation Choices: +// +// _ILP32 / _LP64: +// This specifies the compiler data type implementation as specified in +// the relevant ABI. The choice between these is strongly influenced +// by the underlying hardware, but is not absolutely tied to it. +// Currently only two data type models are supported: +// +// _ILP32: +// Int/Long/Pointer are 32 bits. This is the historical UNIX +// and Solaris implementation. Due to its historical standing, +// this is the default case. +// +// _LP64: +// Long/Pointer are 64 bits, Int is 32 bits. This is the chosen +// implementation for 64-bit ABIs such as SPARC V9. +// +// _I32LPx: +// A compilation environment where 'int' is 32-bit, and +// longs and pointers are simply the same size. +// +// In all cases, Char is 8 bits and Short is 16 bits. +// +// _SUNOS_VTOC_8 / _SUNOS_VTOC_16 / _SVR4_VTOC_16: +// This specifies the form of the disk VTOC (or label): +// +// _SUNOS_VTOC_8: +// This is a VTOC form which is upwardly compatible with the +// SunOS 4.x disk label and allows 8 partitions per disk. +// +// _SUNOS_VTOC_16: +// In this format the incore vtoc image matches the ondisk +// version. It allows 16 slices per disk, and is not +// compatible with the SunOS 4.x disk label. +// +// Note that these are not the only two VTOC forms possible and +// additional forms may be added. One possible form would be the +// SVr4 VTOC form. The symbol for that is reserved now, although +// it is not implemented. +// +// _SVR4_VTOC_16: +// This VTOC form is compatible with the System V Release 4 +// VTOC (as implemented on the SVr4 Intel and 3b ports) with +// 16 partitions per disk. +// +// +// _DMA_USES_PHYSADDR / _DMA_USES_VIRTADDR +// This describes the type of addresses used by system DMA: +// +// _DMA_USES_PHYSADDR: +// This type of DMA, used in the x86 implementation, +// requires physical addresses for DMA buffers. The 24-bit +// addresses used by some legacy boards is the source of the +// "low-memory" (<16MB) requirement for some devices using DMA. +// +// _DMA_USES_VIRTADDR: +// This method of DMA allows the use of virtual addresses for +// DMA transfers. +// +// _FIRMWARE_NEEDS_FDISK / _NO_FDISK_PRESENT +// This indicates the presence/absence of an fdisk table. +// +// _FIRMWARE_NEEDS_FDISK +// The fdisk table is required by system firmware. If present, +// it allows a disk to be subdivided into multiple fdisk +// partitions, each of which is equivalent to a separate, +// virtual disk. This enables the co-existence of multiple +// operating systems on a shared hard disk. +// +// _NO_FDISK_PRESENT +// If the fdisk table is absent, it is assumed that the entire +// media is allocated for a single operating system. +// +// _HAVE_TEM_FIRMWARE +// Defined if this architecture has the (fallback) option of +// using prom_* calls for doing I/O if a suitable kernel driver +// is not available to do it. +// +// _DONT_USE_1275_GENERIC_NAMES +// Controls whether or not device tree node names should +// comply with the IEEE 1275 "Generic Names" Recommended +// Practice. With _DONT_USE_GENERIC_NAMES, device-specific +// names identifying the particular device will be used. +// +// __i386_COMPAT +// This indicates whether the i386 ABI is supported as a *non-native* +// mode for the platform. When this symbol is defined: +// - 32-bit xstat-style system calls are enabled +// - 32-bit xmknod-style system calls are enabled +// - 32-bit system calls use i386 sizes -and- alignments +// +// Note that this is NOT defined for the i386 native environment! +// +// __x86 +// This is ONLY a synonym for defined(__i386) || defined(__amd64) +// which is useful only insofar as these two architectures share +// common attributes. Analogous to __sparc. +// +// _PSM_MODULES +// This indicates whether or not the implementation uses PSM +// modules for processor support, reading /etc/mach from inside +// the kernel to extract a list. +// +// _RTC_CONFIG +// This indicates whether or not the implementation uses /etc/rtc_config +// to configure the real-time clock in the kernel. +// +// _UNIX_KRTLD +// This indicates that the implementation uses a dynamically +// linked unix + krtld to form the core kernel image at boot +// time, or (in the absence of this symbol) a prelinked kernel image. +// +// _OBP +// This indicates the firmware interface is OBP. +// +// _SOFT_HOSTID +// This indicates that the implementation obtains the hostid +// from the file /etc/hostid, rather than from hardware. + +// The following set of definitions characterize Solaris on AMD's +// 64-bit systems. + +// Define the appropriate "processor characteristics" + +// Different alignment constraints for the i386 ABI in compatibility mode + +// Define the appropriate "implementation choices". + +// The feature test macro __i386 is generic for all processors implementing +// the Intel 386 instruction set or a superset of it. Specifically, this +// includes all members of the 386, 486, and Pentium family of processors. + +// Values of _POSIX_C_SOURCE +// +// undefined not a POSIX compilation +// 1 POSIX.1-1990 compilation +// 2 POSIX.2-1992 compilation +// 199309L POSIX.1b-1993 compilation (Real Time) +// 199506L POSIX.1c-1995 compilation (POSIX Threads) +// 200112L POSIX.1-2001 compilation (Austin Group Revision) +// 200809L POSIX.1-2008 compilation + +// The feature test macros __XOPEN_OR_POSIX, _STRICT_STDC, _STRICT_SYMBOLS, +// and _STDC_C99 are Sun implementation specific macros created in order to +// compress common standards specified feature test macros for easier reading. +// These macros should not be used by the application developer as +// unexpected results may occur. Instead, the user should reference +// standards(7) for correct usage of the standards feature test macros. +// +// __XOPEN_OR_POSIX Used in cases where a symbol is defined by both +// X/Open or POSIX or in the negative, when neither +// X/Open or POSIX defines a symbol. +// +// _STRICT_STDC __STDC__ is specified by the C Standards and defined +// by the compiler. For Sun compilers the value of +// __STDC__ is either 1, 0, or not defined based on the +// compilation mode (see cc(1)). When the value of +// __STDC__ is 1 and in the absence of any other feature +// test macros, the namespace available to the application +// is limited to only those symbols defined by the C +// Standard. _STRICT_STDC provides a more readable means +// of identifying symbols defined by the standard, or in +// the negative, symbols that are extensions to the C +// Standard. See additional comments for GNU C differences. +// +// _STDC_C99 __STDC_VERSION__ is specified by the C standards and +// defined by the compiler and indicates the version of +// the C standard. A value of 199901L indicates a +// compiler that complies with ISO/IEC 9899:1999, other- +// wise known as the C99 standard. +// +// _STDC_C11 Like _STDC_C99 except that the value of __STDC_VERSION__ +// is 201112L indicating a compiler that compiles with +// ISO/IEC 9899:2011, otherwise known as the C11 standard. +// +// _STRICT_SYMBOLS Used in cases where symbol visibility is restricted +// by the standards, and the user has not explicitly +// relaxed the strictness via __EXTENSIONS__. + +// ISO/IEC 9899:1990 and it's revisions, ISO/IEC 9899:1999 and ISO/IEC +// 99899:2011 specify the following predefined macro name: +// +// __STDC__ The integer constant 1, intended to indicate a conforming +// implementation. +// +// Furthermore, a strictly conforming program shall use only those features +// of the language and library specified in these standards. A conforming +// implementation shall accept any strictly conforming program. +// +// Based on these requirements, Sun's C compiler defines __STDC__ to 1 for +// strictly conforming environments and __STDC__ to 0 for environments that +// use ANSI C semantics but allow extensions to the C standard. For non-ANSI +// C semantics, Sun's C compiler does not define __STDC__. +// +// The GNU C project interpretation is that __STDC__ should always be defined +// to 1 for compilation modes that accept ANSI C syntax regardless of whether +// or not extensions to the C standard are used. Violations of conforming +// behavior are conditionally flagged as warnings via the use of the +// -pedantic option. In addition to defining __STDC__ to 1, the GNU C +// compiler also defines __STRICT_ANSI__ as a means of specifying strictly +// conforming environments using the -ansi or -std= options. +// +// In the absence of any other compiler options, Sun and GNU set the value +// of __STDC__ as follows when using the following options: +// +// Value of __STDC__ __STRICT_ANSI__ +// +// cc -Xa (default) 0 undefined +// cc -Xt (transitional) 0 undefined +// cc -Xc (strictly conforming) 1 undefined +// cc -Xs (K&R C) undefined undefined +// +// gcc (default) 1 undefined +// gcc -ansi, -std={c89, c99,...) 1 defined +// gcc -traditional (K&R) undefined undefined +// +// The default compilation modes for Sun C compilers versus GNU C compilers +// results in a differing value for __STDC__ which results in a more +// restricted namespace when using Sun compilers. To allow both GNU and Sun +// interpretations to peacefully co-exist, we use the following Sun +// implementation _STRICT_STDC_ macro: + +// Compiler complies with ISO/IEC 9899:1999 or ISO/IEC 9989:2011 + +// Use strict symbol visibility. + +// This is a variant of _STRICT_SYMBOLS that is meant to cover headers that are +// governed by POSIX, but have not been governed by ISO C. One can go two ways +// on what should happen if an application actively includes (not transitively) +// a header that isn't part of the ISO C spec, we opt to say that if someone has +// gone out of there way then they're doing it for a reason and that is an act +// of non-compliance and therefore it's not up to us to hide away every symbol. +// +// In general, prefer using _STRICT_SYMBOLS, but this is here in particular for +// cases where in the past we have only used a POSIX related check and we don't +// wish to make something stricter. Often applications are relying on the +// ability to, or more realistically unwittingly, have _STRICT_STDC declared and +// still use these interfaces. + +// Large file interfaces: +// +// _LARGEFILE_SOURCE +// 1 large file-related additions to POSIX +// interfaces requested (fseeko, etc.) +// _LARGEFILE64_SOURCE +// 1 transitional large-file-related interfaces +// requested (seek64, stat64, etc.) +// +// The corresponding announcement macros are respectively: +// _LFS_LARGEFILE +// _LFS64_LARGEFILE +// (These are set in .) +// +// Requesting _LARGEFILE64_SOURCE implies requesting _LARGEFILE_SOURCE as +// well. +// +// The large file interfaces are made visible regardless of the initial values +// of the feature test macros under certain circumstances: +// - If no explicit standards-conforming environment is requested (neither +// of _POSIX_SOURCE nor _XOPEN_SOURCE is defined and the value of +// __STDC__ does not imply standards conformance). +// - Extended system interfaces are explicitly requested (__EXTENSIONS__ +// is defined). +// - Access to in-kernel interfaces is requested (_KERNEL or _KMEMUSER is +// defined). (Note that this dependency is an artifact of the current +// kernel implementation and may change in future releases.) + +// Large file compilation environment control: +// +// The setting of _FILE_OFFSET_BITS controls the size of various file-related +// types and governs the mapping between file-related source function symbol +// names and the corresponding binary entry points. +// +// In the 32-bit environment, the default value is 32; if not set, set it to +// the default here, to simplify tests in other headers. +// +// In the 64-bit compilation environment, the only value allowed is 64. + +// Use of _XOPEN_SOURCE +// +// The following X/Open specifications are supported: +// +// X/Open Portability Guide, Issue 3 (XPG3) +// X/Open CAE Specification, Issue 4 (XPG4) +// X/Open CAE Specification, Issue 4, Version 2 (XPG4v2) +// X/Open CAE Specification, Issue 5 (XPG5) +// Open Group Technical Standard, Issue 6 (XPG6), also referred to as +// IEEE Std. 1003.1-2001 and ISO/IEC 9945:2002. +// Open Group Technical Standard, Issue 7 (XPG7), also referred to as +// IEEE Std. 1003.1-2008 and ISO/IEC 9945:2009. +// +// XPG4v2 is also referred to as UNIX 95 (SUS or SUSv1). +// XPG5 is also referred to as UNIX 98 or the Single Unix Specification, +// Version 2 (SUSv2) +// XPG6 is the result of a merge of the X/Open and POSIX specifications +// and as such is also referred to as IEEE Std. 1003.1-2001 in +// addition to UNIX 03 and SUSv3. +// XPG7 is also referred to as UNIX 08 and SUSv4. +// +// When writing a conforming X/Open application, as per the specification +// requirements, the appropriate feature test macros must be defined at +// compile time. These are as follows. For more info, see standards(7). +// +// Feature Test Macro Specification +// ------------------------------------------------ ------------- +// _XOPEN_SOURCE XPG3 +// _XOPEN_SOURCE && _XOPEN_VERSION = 4 XPG4 +// _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED = 1 XPG4v2 +// _XOPEN_SOURCE = 500 XPG5 +// _XOPEN_SOURCE = 600 (or POSIX_C_SOURCE=200112L) XPG6 +// _XOPEN_SOURCE = 700 (or POSIX_C_SOURCE=200809L) XPG7 +// +// In order to simplify the guards within the headers, the following +// implementation private test macros have been created. Applications +// must NOT use these private test macros as unexpected results will +// occur. +// +// Note that in general, the use of these private macros is cumulative. +// For example, the use of _XPG3 with no other restrictions on the X/Open +// namespace will make the symbols visible for XPG3 through XPG6 +// compilation environments. The use of _XPG4_2 with no other X/Open +// namespace restrictions indicates that the symbols were introduced in +// XPG4v2 and are therefore visible for XPG4v2 through XPG6 compilation +// environments, but not for XPG3 or XPG4 compilation environments. +// +// _XPG3 X/Open Portability Guide, Issue 3 (XPG3) +// _XPG4 X/Open CAE Specification, Issue 4 (XPG4) +// _XPG4_2 X/Open CAE Specification, Issue 4, Version 2 (XPG4v2/UNIX 95/SUS) +// _XPG5 X/Open CAE Specification, Issue 5 (XPG5/UNIX 98/SUSv2) +// _XPG6 Open Group Technical Standard, Issue 6 (XPG6/UNIX 03/SUSv3) +// _XPG7 Open Group Technical Standard, Issue 7 (XPG7/UNIX 08/SUSv4) + +// X/Open Portability Guide, Issue 3 + +// _XOPEN_VERSION is defined by the X/Open specifications and is not +// normally defined by the application, except in the case of an XPG4 +// application. On the implementation side, _XOPEN_VERSION defined with +// the value of 3 indicates an XPG3 application. _XOPEN_VERSION defined +// with the value of 4 indicates an XPG4 or XPG4v2 (UNIX 95) application. +// _XOPEN_VERSION defined with a value of 500 indicates an XPG5 (UNIX 98) +// application and with a value of 600 indicates an XPG6 (UNIX 03) +// application and with a value of 700 indicates an XPG7 (UNIX 08). +// The appropriate version is determined by the use of the +// feature test macros described earlier. The value of _XOPEN_VERSION +// defaults to 3 otherwise indicating support for XPG3 applications. + +// ANSI C and ISO 9899:1990 say the type long long doesn't exist in strictly +// conforming environments. ISO 9899:1999 says it does. +// +// The presence of _LONGLONG_TYPE says "long long exists" which is therefore +// defined in all but strictly conforming environments that disallow it. + +// The following macro defines a value for the ISO C99 restrict +// keyword so that _RESTRICT_KYWD resolves to "restrict" if +// an ISO C99 compiler is used, "__restrict" for c++ and "" (null string) +// if any other compiler is used. This allows for the use of single +// prototype declarations regardless of compiler version. + +// The following macro defines a value for the ISO C11 _Noreturn +// keyword so that _NORETURN_KYWD resolves to "_Noreturn" if +// an ISO C11 compiler is used and "" (null string) if any other +// compiler is used. This allows for the use of single prototype +// declarations regardless of compiler version. + +// ISO/IEC 9899:2011 Annex K + +// The following macro indicates header support for the ANSI C++ +// standard. The ISO/IEC designation for this is ISO/IEC FDIS 14882. + +// The following macro indicates header support for the C99 standard, +// ISO/IEC 9899:1999, Programming Languages - C. + +// The following macro indicates header support for the C11 standard, +// ISO/IEC 9899:2011, Programming Languages - C. + +// The following macro indicates header support for the C11 standard, +// ISO/IEC 9899:2011 Annex K, Programming Languages - C. + +// The following macro indicates header support for DTrace. The value is an +// integer that corresponds to the major version number for DTrace. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2014 Garrett D'Amore +// +// Copyright (c) 1995, 1998 by Sun Microsystems, Inc. +// All rights reserved. + +// Copyright 2015, Joyent, Inc. + +// Structure of file descriptor/event pairs supplied in +// the poll arrays. +type Pollfd_t = Pollfd /* poll.h:52:3 */ + +type Nfds_t = uint64 /* poll.h:54:23 */ // size of something in bytes + +type Clock_t = int64 /* time_iso.h:70:14 */ + +type Time_t = int64 /* time_iso.h:75:14 */ + +type Tm = struct { + Ftm_sec int32 + Ftm_min int32 + Ftm_hour int32 + Ftm_mday int32 + Ftm_mon int32 + Ftm_year int32 + Ftm_wday int32 + Ftm_yday int32 + Ftm_isdst int32 +} /* time_iso.h:80:1 */ + +// C11 requires sys/time_impl.h for the definition of the struct timespec. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2021 Oxide Computer Company + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2016 Joyent, Inc. + +// Machine dependent definitions moved to . +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2007 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Machine dependent types: +// +// intel ia32 Version + +type X_label_t = struct{ Fval [8]int64 } /* machtypes.h:59:9 */ + +// C11 requires sys/time_impl.h for the definition of the struct timespec. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2021 Oxide Computer Company + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2016 Joyent, Inc. + +// Machine dependent definitions moved to . +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2007 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Machine dependent types: +// +// intel ia32 Version + +type Label_t = X_label_t /* machtypes.h:59:54 */ + +type Lock_t = uint8 /* machtypes.h:63:23 */ // lock work for busy wait + +// Include fixed width type declarations proposed by the ISO/JTC1/SC22/WG14 C +// committee's working draft for the revision of the current ISO C standard, +// ISO/IEC 9899:1990 Programming language - C. These are not currently +// required by any standard but constitute a useful, general purpose set +// of type definitions which is namespace clean with respect to all standards. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2014 Garrett D'Amore +// +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// This file, , is part of the Sun Microsystems implementation +// of defined in the ISO C standard, ISO/IEC 9899:1999 +// Programming language - C. +// +// Programs/Modules should not directly include this file. Access to the +// types defined in this file should be through the inclusion of one of the +// following files: +// +// Provides only the "_t" types defined in this +// file which is a subset of the contents of +// . (This can be appropriate for +// all programs/modules except those claiming +// ANSI-C conformance.) +// +// Provides the Kernel and Driver appropriate +// components of . +// +// For use by applications. +// +// See these files for more details. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Basic / Extended integer types +// +// The following defines the basic fixed-size integer types. +// +// Implementations are free to typedef them to Standard C integer types or +// extensions that they support. If an implementation does not support one +// of the particular integer data types below, then it should not define the +// typedefs and macros corresponding to that data type. Note that int8_t +// is not defined in -Xs mode on ISAs for which the ABI specifies "char" +// as an unsigned entity because there is no way to define an eight bit +// signed integral. +type Int8_t = int8 /* int_types.h:75:16 */ +type Int16_t = int16 /* int_types.h:79:17 */ +type Int32_t = int32 /* int_types.h:80:15 */ +type Int64_t = int64 /* int_types.h:83:16 */ + +type Uint8_t = uint8 /* int_types.h:91:24 */ +type Uint16_t = uint16 /* int_types.h:92:25 */ +type Uint32_t = uint32 /* int_types.h:93:23 */ +type Uint64_t = uint64 /* int_types.h:95:24 */ + +// intmax_t and uintmax_t are to be the longest (in number of bits) signed +// and unsigned integer types supported by the implementation. +type Intmax_t = int64 /* int_types.h:107:19 */ +type Uintmax_t = uint64 /* int_types.h:108:19 */ + +// intptr_t and uintptr_t are signed and unsigned integer types large enough +// to hold any data pointer; that is, data pointers can be assigned into or +// from these integer types without losing precision. +type Intptr_t = int64 /* int_types.h:120:16 */ +type Uintptr_t = uint64 /* int_types.h:121:24 */ + +// The following define the fastest integer types that can hold the +// specified number of bits. +type Int_fast8_t = int8 /* int_types.h:132:16 */ +type Int_fast16_t = int32 /* int_types.h:136:15 */ +type Int_fast32_t = int32 /* int_types.h:137:15 */ +type Int_fast64_t = int64 /* int_types.h:139:16 */ + +type Uint_fast8_t = uint8 /* int_types.h:146:24 */ +type Uint_fast16_t = uint32 /* int_types.h:147:23 */ +type Uint_fast32_t = uint32 /* int_types.h:148:23 */ +type Uint_fast64_t = uint64 /* int_types.h:150:24 */ + +// The following define the smallest integer types that can hold the +// specified number of bits. +type Int_least8_t = int8 /* int_types.h:162:16 */ +type Int_least16_t = int16 /* int_types.h:166:17 */ +type Int_least32_t = int32 /* int_types.h:167:15 */ +type Int_least64_t = int64 /* int_types.h:169:16 */ + +// If these are changed, please update char16_t and char32_t in head/uchar.h. +type Uint_least8_t = uint8 /* int_types.h:179:24 */ +type Uint_least16_t = uint16 /* int_types.h:180:25 */ +type Uint_least32_t = uint32 /* int_types.h:181:23 */ +type Uint_least64_t = uint64 /* int_types.h:183:24 */ + +// Strictly conforming ANSI C environments prior to the 1999 +// revision of the C Standard (ISO/IEC 9899:1999) do not have +// the long long data type. +type Longlong_t = int64 /* types.h:72:20 */ +type U_longlong_t = uint64 /* types.h:73:28 */ + +// These types (t_{u}scalar_t) exist because the XTI/TPI/DLPI standards had +// to use them instead of int32_t and uint32_t because DEC had +// shipped 64-bit wide. +type T_scalar_t = int32 /* types.h:92:18 */ +type T_uscalar_t = uint32 /* types.h:93:18 */ + +// POSIX Extensions +type Uchar_t = uint8 /* types.h:102:23 */ +type Ushort_t = uint16 /* types.h:103:24 */ +type Uint_t = uint32 /* types.h:104:22 */ +type Ulong_t = uint64 /* types.h:105:23 */ + +type Caddr_t = uintptr /* types.h:107:15 */ // ? type +type Daddr_t = int64 /* types.h:108:15 */ // type +type Cnt_t = int16 /* types.h:109:16 */ // pointer difference + +// VM-related types +type Pfn_t = uint64 /* types.h:123:18 */ // page frame number +type Pgcnt_t = uint64 /* types.h:124:18 */ // number of pages +type Spgcnt_t = int64 /* types.h:125:15 */ // signed number of pages + +type Use_t = uint8 /* types.h:127:18 */ // use count for swap. +type Sysid_t = int16 /* types.h:128:16 */ +type Index_t = int16 /* types.h:129:16 */ +type Timeout_id_t = uintptr /* types.h:130:15 */ // opaque handle from timeout(9F) +type Bufcall_id_t = uintptr /* types.h:131:15 */ // opaque handle from bufcall(9F) + +// The size of off_t and related types depends on the setting of +// _FILE_OFFSET_BITS. (Note that other system headers define other types +// related to those defined here.) +// +// If _LARGEFILE64_SOURCE is defined, variants of these types that are +// explicitly 64 bits wide become available. + +type Off_t = int64 /* types.h:145:15 */ // offsets within files + +type Off64_t = int64 /* types.h:152:16 */ // offsets within files + +type Ino_t = uint64 /* types.h:161:18 */ // expanded inode type +type Blkcnt_t = int64 /* types.h:162:15 */ // count of file blocks +type Fsblkcnt_t = uint64 /* types.h:163:18 */ // count of file system blocks +type Fsfilcnt_t = uint64 /* types.h:164:18 */ // count of files + +type Ino64_t = uint64 /* types.h:174:16 */ // expanded inode type +type Blkcnt64_t = int64 /* types.h:175:18 */ // count of file blocks +type Fsblkcnt64_t = uint64 /* types.h:176:20 */ // count of file system blocks +type Fsfilcnt64_t = uint64 /* types.h:177:20 */ // count of files + +type Blksize_t = int32 /* types.h:187:14 */ // used for block sizes + +// The boolean_t type has had a varied amount of exposure over the years in +// terms of how its enumeration constants have been exposed. In particular, it +// originally used the __XOPEN_OR_POSIX macro to determine whether to prefix the +// B_TRUE and B_FALSE with an underscore. This check never included the +// question of if we were in a strict ANSI C environment or whether extensions +// were defined. +// +// Compilers such as clang started defaulting to always including an +// XOPEN_SOURCE declaration on behalf of users, but also noted __EXTENSIONS__. +// This would lead most software that had used the non-underscore versions to +// need it. As such, we have adjusted the non-strict XOPEN environment to retain +// its old behavior so as to minimize namespace pollution; however, we instead +// include both variants of the definitions in the generally visible version +// allowing software written in either world to hopefully end up in a good +// place. +// +// This isn't perfect, but should hopefully minimize the pain for folks actually +// trying to build software. +type Boolean_t = uint32 /* types.h:215:69 */ + +// The {u,}pad64_t types can be used in structures such that those structures +// may be accessed by code produced by compilation environments which don't +// support a 64 bit integral datatype. The intention is not to allow +// use of these fields in such environments, but to maintain the alignment +// and offsets of the structure. +// +// Similar comments for {u,}pad128_t. +// +// Note that these types do NOT generate any stronger alignment constraints +// than those available in the underlying ABI. See +type Pad64_t = int64 /* types.h:240:18 */ +type Upad64_t = uint64 /* types.h:241:18 */ + +type Pad128_t = struct { + F_q float64 + F__ccgo_pad1 [8]byte +} /* types.h:257:3 */ + +type Upad128_t = struct { + F_q float64 + F__ccgo_pad1 [8]byte +} /* types.h:262:3 */ + +type Offset_t = int64 /* types.h:264:20 */ +type U_offset_t = uint64 /* types.h:265:22 */ +type Len_t = uint64 /* types.h:266:22 */ +type Diskaddr_t = uint64 /* types.h:267:22 */ + +// Definitions remaining from previous partial support for 64-bit file +// offsets. This partial support for devices greater than 2gb requires +// compiler support for long long. +type Lloff_t = struct{ F_f int64 } /* types.h:284:3 */ + +type Lldaddr_t = struct{ F_f int64 } /* types.h:304:3 */ + +type K_fltset_t = uint32 /* types.h:317:16 */ // kernel fault set type + +// The following type is for various kinds of identifiers. The +// actual type must be the same for all since some system calls +// (such as sigsend) take arguments that may be any of these +// types. The enumeration type idtype_t defined in sys/procset.h +// is used to indicate what type of id is being specified -- +// a process id, process group id, session id, scheduling class id, +// user id, group id, project id, task id or zone id. +type Id_t = int32 /* types.h:329:14 */ + +type Lgrp_id_t = int32 /* types.h:334:15 */ // lgroup ID + +// Type useconds_t is an unsigned integral type capable of storing +// values at least in the range of zero to 1,000,000. +type Useconds_t = uint32 /* types.h:340:17 */ // Time, in microseconds + +type Suseconds_t = int64 /* types.h:344:14 */ // signed # of microseconds + +// Typedefs for dev_t components. +type Major_t = uint32 /* types.h:351:16 */ // major part of device number +type Minor_t = uint32 /* types.h:352:16 */ // minor part of device number + +// The data type of a thread priority. +type Pri_t = int16 /* types.h:361:15 */ + +// The data type for a CPU flags field. (Can be extended to larger unsigned +// types, if needed, limited by ability to update atomically.) +type Cpu_flag_t = uint16 /* types.h:367:18 */ + +// For compatibility reasons the following typedefs (prefixed o_) +// can't grow regardless of the EFT definition. Although, +// applications should not explicitly use these typedefs +// they may be included via a system header definition. +// WARNING: These typedefs may be removed in a future +// release. +// +// ex. the definitions in s5inode.h (now obsoleted) +// remained small to preserve compatibility +// in the S5 file system type. +type O_mode_t = uint16 /* types.h:380:18 */ // old file attribute type +type O_dev_t = int16 /* types.h:381:15 */ // old device type +type O_uid_t = uint16 /* types.h:382:18 */ // old UID type +type O_gid_t = uint16 /* types.h:383:17 */ // old GID type +type O_nlink_t = int16 /* types.h:384:15 */ // old file link type +type O_pid_t = int16 /* types.h:385:15 */ // old process id type +type O_ino_t = uint16 /* types.h:386:18 */ // old inode type + +// POSIX and XOPEN Declarations +type Key_t = int32 /* types.h:392:13 */ // IPC key type +type Mode_t = uint32 /* types.h:394:16 */ // file attribute type + +type Uid_t = uint32 /* types.h:401:22 */ // UID type + +type Gid_t = uint32 /* types.h:404:15 */ // GID type + +type Datalink_id_t = uint32 /* types.h:406:18 */ +type Vrid_t = uint32 /* types.h:407:18 */ + +type Taskid_t = int32 /* types.h:409:17 */ +type Projid_t = int32 /* types.h:410:17 */ +type Poolid_t = int32 /* types.h:411:14 */ +type Zoneid_t = int32 /* types.h:412:14 */ +type Ctid_t = int32 /* types.h:413:14 */ + +// POSIX definitions are same as defined in thread.h and synch.h. +// Any changes made to here should be reflected in corresponding +// files as described in comments. +type Pthread_t = uint32 /* types.h:420:16 */ // = thread_t in thread.h +type Pthread_key_t = uint32 /* types.h:421:16 */ // = thread_key_t in thread.h + +// "Magic numbers" tagging synchronization object types + +type X_pthread_mutex = struct { + F__pthread_mutex_flags struct { + F__pthread_mutex_flag1 uint16 + F__pthread_mutex_flag2 uint8 + F__pthread_mutex_ceiling uint8 + F__pthread_mutex_type uint16 + F__pthread_mutex_magic uint16 + } + F__pthread_mutex_lock struct { + F__ccgo_pad1 [0]uint64 + F__pthread_mutex_lock64 struct{ F__pthread_mutex_pad [8]uint8 } + } + F__pthread_mutex_data uint64 +} /* types.h:429:9 */ + +// = thread_key_t in thread.h + +// "Magic numbers" tagging synchronization object types + +type Pthread_mutex_t = X_pthread_mutex /* types.h:448:3 */ + +type X_pthread_cond = struct { + F__pthread_cond_flags struct { + F__pthread_cond_flag [4]uint8 + F__pthread_cond_type uint16 + F__pthread_cond_magic uint16 + } + F__pthread_cond_data uint64 +} /* types.h:450:9 */ + +type Pthread_cond_t = X_pthread_cond /* types.h:457:3 */ + +// UNIX 98 Extension +type X_pthread_rwlock = struct { + F__pthread_rwlock_readers int32 + F__pthread_rwlock_type uint16 + F__pthread_rwlock_magic uint16 + F__pthread_rwlock_mutex Pthread_mutex_t + F__pthread_rwlock_readercv Pthread_cond_t + F__pthread_rwlock_writercv Pthread_cond_t +} /* types.h:462:9 */ + +// UNIX 98 Extension +type Pthread_rwlock_t = X_pthread_rwlock /* types.h:469:3 */ + +// SUSV3 +type Pthread_barrier_t = struct { + F__pthread_barrier_count uint32 + F__pthread_barrier_current uint32 + F__pthread_barrier_cycle uint64 + F__pthread_barrier_reserved uint64 + F__pthread_barrier_lock Pthread_mutex_t + F__pthread_barrier_cond Pthread_cond_t +} /* types.h:481:3 */ + +type Pthread_spinlock_t = Pthread_mutex_t /* types.h:483:25 */ + +// attributes for threads, dynamically allocated by library +type X_pthread_attr = struct{ F__pthread_attrp uintptr } /* types.h:488:9 */ + +// attributes for threads, dynamically allocated by library +type Pthread_attr_t = X_pthread_attr /* types.h:490:3 */ + +// attributes for mutex, dynamically allocated by library +type X_pthread_mutexattr = struct{ F__pthread_mutexattrp uintptr } /* types.h:495:9 */ + +// attributes for mutex, dynamically allocated by library +type Pthread_mutexattr_t = X_pthread_mutexattr /* types.h:497:3 */ + +// attributes for cond, dynamically allocated by library +type X_pthread_condattr = struct{ F__pthread_condattrp uintptr } /* types.h:502:9 */ + +// attributes for cond, dynamically allocated by library +type Pthread_condattr_t = X_pthread_condattr /* types.h:504:3 */ + +// pthread_once +type X_once = struct{ F__pthread_once_pad [4]uint64 } /* types.h:509:9 */ + +// pthread_once +type Pthread_once_t = X_once /* types.h:511:3 */ + +// UNIX 98 Extensions +// attributes for rwlock, dynamically allocated by library +type X_pthread_rwlockattr = struct{ F__pthread_rwlockattrp uintptr } /* types.h:517:9 */ + +// UNIX 98 Extensions +// attributes for rwlock, dynamically allocated by library +type Pthread_rwlockattr_t = X_pthread_rwlockattr /* types.h:519:3 */ + +// SUSV3 +// attributes for pthread_barrier_t, dynamically allocated by library +type Pthread_barrierattr_t = struct{ F__pthread_barrierattrp uintptr } /* types.h:527:3 */ + +type Dev_t = uint64 /* types.h:529:17 */ // expanded device type + +type Nlink_t = uint32 /* types.h:532:16 */ // file link type +type Pid_t = int32 /* types.h:533:13 */ // process id type + +type Ssize_t = int64 /* types.h:551:14 */ // size of something in bytes or -1 + +type Clockid_t = int32 /* types.h:569:13 */ // clock identifier type + +type Timer_t = int32 /* types.h:574:13 */ // timer identifier type + +// BEGIN CSTYLED +type Unchar = uint8 /* types.h:580:23 */ +type Ushort = uint16 /* types.h:581:24 */ +type Uint = uint32 /* types.h:582:22 */ +type Ulong = uint64 /* types.h:583:23 */ +// END CSTYLED + +// The following is the value of type id_t to use to indicate the +// caller's current id. See procset.h for the type idtype_t +// which defines which kind of id is being specified. + +// The following value of type pfn_t is used to indicate +// invalid page frame number. + +// BEGIN CSTYLED +type U_char = uint8 /* types.h:650:23 */ +type U_short = uint16 /* types.h:651:24 */ +type U_int = uint32 /* types.h:652:22 */ +type U_long = uint64 /* types.h:653:23 */ +type X_quad = struct{ Fval [2]int32 } /* types.h:654:9 */ + +type Quad_t = X_quad /* types.h:654:38 */ // used by UFS +type Quad = Quad_t /* types.h:655:17 */ // used by UFS +// END CSTYLED + +// Nested include for BSD/sockets source compatibility. +// (The select macros used to be defined here). +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// +// Copyright 2010 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// University Copyright- Copyright (c) 1982, 1986, 1988 +// The Regents of the University of California +// All Rights Reserved +// +// University Acknowledgment- Portions of this document are derived from +// software developed by the University of California, Berkeley, and its +// contributors. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2005 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Implementation-private. This header should not be included +// directly by an application. The application should instead +// include which includes this header conditionally +// depending on which feature test macros are defined. By default, +// this header is included by . X/Open and POSIX +// standards requirements result in this header being included +// by only under a restricted set of conditions. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Time expressed in seconds and nanoseconds + +type Timespec = struct { + Ftv_sec int64 + Ftv_nsec int64 +} /* time_impl.h:57:9 */ + +// used by UFS +// END CSTYLED + +// Nested include for BSD/sockets source compatibility. +// (The select macros used to be defined here). +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// +// Copyright 2010 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// University Copyright- Copyright (c) 1982, 1986, 1988 +// The Regents of the University of California +// All Rights Reserved +// +// University Acknowledgment- Portions of this document are derived from +// software developed by the University of California, Berkeley, and its +// contributors. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2005 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Implementation-private. This header should not be included +// directly by an application. The application should instead +// include which includes this header conditionally +// depending on which feature test macros are defined. By default, +// this header is included by . X/Open and POSIX +// standards requirements result in this header being included +// by only under a restricted set of conditions. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Time expressed in seconds and nanoseconds + +type Timespec_t = Timespec /* time_impl.h:60:3 */ + +type Timestruc_t = Timespec /* time_impl.h:81:25 */ // definition per SVr4 + +// The following has been left in for backward compatibility. Portable +// applications should not use the structure name timestruc. + +// Timer specification +type Itimerspec = struct { + Fit_interval struct { + Ftv_sec int64 + Ftv_nsec int64 + } + Fit_value struct { + Ftv_sec int64 + Ftv_nsec int64 + } +} /* time_impl.h:95:9 */ + +// definition per SVr4 + +// The following has been left in for backward compatibility. Portable +// applications should not use the structure name timestruc. + +// Timer specification +type Itimerspec_t = Itimerspec /* time_impl.h:98:3 */ + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright (c) 1982, 1986, 1993 Regents of the University of California. +// All rights reserved. The Berkeley software License Agreement +// specifies the terms and conditions for redistribution. + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2020 OmniOS Community Edition (OmniOSce) Association. + +// Copyright (c) 2013, 2016 by Delphix. All rights reserved. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Structure returned by gettimeofday(2) system call, +// and used in other calls. + +type Timeval = struct { + Ftv_sec int64 + Ftv_usec int64 +} /* time.h:54:1 */ + +type Timezone = struct { + Ftz_minuteswest int32 + Ftz_dsttime int32 +} /* time.h:86:1 */ + +// Needed for longlong_t type. Placement of this due to +// including which relies on the presense of the itimerval +// structure. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2021 Oxide Computer Company + +// Operations on timevals. + +// Names of the interval timers, and structure +// defining a timer setting. +// time and when system is running on +// behalf of the process. +// time profiling of multithreaded +// programs. + +type Itimerval = struct { + Fit_interval struct { + Ftv_sec int64 + Ftv_usec int64 + } + Fit_value struct { + Ftv_sec int64 + Ftv_usec int64 + } +} /* time.h:209:1 */ + +// Definitions for commonly used resolutions. + +// Time expressed as a 64-bit nanosecond counter. +type Hrtime_t = int64 /* time.h:265:20 */ + +// The inclusion of is historical and was added for +// backward compatibility in delta 1.2 when a number of definitions +// were moved out of . More recently, the timespec and +// itimerspec structure definitions, along with the _CLOCK_*, CLOCK_*, +// _TIMER_*, and TIMER_* symbols were moved to , +// which is now included by . This change was due to POSIX +// 1003.1b-1993 and X/Open UNIX 98 requirements. For non-POSIX and +// non-X/Open applications, including this header will still make +// visible these definitions. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1988 AT&T +// All Rights Reserved + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2007 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2010 Nexenta Systems, Inc. Al rights reserved. +// Copyright 2016 Joyent, Inc. + +// The inclusion of is needed for the FD_CLR, +// FD_ISSET, FD_SET, and FD_SETSIZE macros as well as the +// select() prototype defined in the XOpen specifications +// beginning with XSH4v2. Placement required after definition +// for itimerval. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// +// Copyright 2010 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// University Copyright- Copyright (c) 1982, 1986, 1988 +// The Regents of the University of California +// All Rights Reserved +// +// University Acknowledgment- Portions of this document are derived from +// software developed by the University of California, Berkeley, and its +// contributors. + +// The sigset_t type is defined in and duplicated +// in as a result of XPG4v2 requirements. XPG6 +// now allows the visibility of signal.h in this header, however +// an order of inclusion problem occurs as a result of inclusion +// of in under certain conditions. +// Rather than include here, we've duplicated +// the sigset_t type instead. This type is required for the XPG6 +// introduced pselect() function also declared in this header. +type Sigset_t = struct{ F__sigbits [4]uint32 } /* select.h:76:3 */ + +// Select uses bit masks of file descriptors in longs. +// These macros manipulate such bit fields. +// FD_SETSIZE may be defined by the user, but the default here +// should be >= RLIM_FD_MAX. + +type Fd_mask = int64 /* select.h:92:14 */ +type Fds_mask = int64 /* select.h:94:14 */ + +// The value of _NBBY needs to be consistant with the value +// of NBBY in . + +type Fd_set1 = struct{ Ffds_bits [1024]int64 } /* select.h:120:9 */ + +// The value of _NBBY needs to be consistant with the value +// of NBBY in . + +type Fd_set = Fd_set1 /* select.h:125:3 */ + +// Neither X/Open nor POSIX allow the inclusion of for the +// definition of the sigevent structure. Both require the inclusion +// of and when using the timer_create() function. +// However, X/Open also specifies that the sigevent structure be defined +// in as described in the header . This prevents +// compiler warnings for applications that only include and not +// also . The sigval union and the sigevent structure is +// therefore defined both here and in which gets included +// via inclusion of . +type Sigval = struct { + F__ccgo_pad1 [0]uint64 + Fsival_int int32 + F__ccgo_pad2 [4]byte +} /* time.h:125:1 */ + +type Sigevent = struct { + Fsigev_notify int32 + Fsigev_signo int32 + Fsigev_value struct { + F__ccgo_pad1 [0]uint64 + Fsival_int int32 + F__ccgo_pad2 [4]byte + } + Fsigev_notify_function uintptr + Fsigev_notify_attributes uintptr + F__sigev_pad2 int32 + F__ccgo_pad1 [4]byte +} /* time.h:133:1 */ + +type Locale_t = uintptr /* time.h:292:24 */ // System Private interface to sysconf() + +type Sig_atomic_t = int32 /* signal_iso.h:58:13 */ + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2010 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2015, Joyent, Inc. + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// University Copyright- Copyright (c) 1982, 1986, 1988 +// The Regents of the University of California +// All Rights Reserved +// +// University Acknowledgment- Portions of this document are derived from +// software developed by the University of California, Berkeley, and its +// contributors. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2010 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2015, Joyent, Inc. + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// An application should not include this header directly. Instead it +// should be included only through the inclusion of other Sun headers. +// +// The contents of this header is limited to identifiers specified in the +// C Standard. Any new identifiers specified in future amendments to the +// C Standard must be placed in this header. If these new identifiers +// are required to also be in the C++ Standard "std" namespace, then for +// anything other than macro definitions, corresponding "using" directives +// must also be added to . + +// We need for the declaration of siginfo_t. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2021 Oxide Computer Company + +// The union sigval is also defined in as per X/Open and +// POSIX requirements. + +// The sigevent structure is also defined in as per X/Open and +// POSIX requirements. + +// values of sigev_notify + +// negative signal codes are reserved for future use for user generated +// signals + +// Get the machine dependent signal codes (SIGILL, SIGFPE, SIGSEGV, and +// SIGBUS) from + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2003 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright (c) 1988 AT&T +// All Rights Reserved + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// machsig.h is the machine dependent portion of siginfo.h (and is +// included by siginfo.h). A version of machsig.h should exist for +// each architecture. The codes for SIGILL, SIGFPU, SIGSEGV and SIGBUS +// are in this file. The codes for SIGTRAP, SIGCLD(SIGCHLD), and +// SIGPOLL are architecture independent and may be found in siginfo.h. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2007 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// University Copyright- Copyright (c) 1982, 1986, 1988 +// The Regents of the University of California +// All Rights Reserved +// +// University Acknowledgment- Portions of this document are derived from +// software developed by the University of California, Berkeley, and its +// contributors. + +// This file describes the data type returned by vm routines +// which handle faults. +// +// If FC_CODE(fc) == FC_OBJERR, then FC_ERRNO(fc) contains the errno value +// returned by the underlying object mapped at the fault address. + +type Faultcode_t = int32 /* faultcode.h:66:13 */ + +// SIGILL signal codes + +// SIGEMT signal codes + +// SIGFPE signal codes + +// SIGSEGV signal codes + +// SIGBUS signal codes + +// SIGTRAP signal codes + +// SIGCLD signal codes + +// SIGPOLL signal codes + +// SIGPROF signal codes + +// Inclusion of is needed for the declaration of +// timestruc_t. However, since inclusion of results +// in X/Open and POSIX namespace pollution, the definition for +// timestruct_t has been duplicated in a standards namespace safe header +// . In , the structure +// name, tag, and member names, as well as the type itself, all have +// leading underscores to protect namespace. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2005 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Implementation-private. This header should not be included +// directly by an application. The application should instead +// include which includes this header conditionally +// depending on which feature test macros are defined. By default, +// this header is included by . X/Open and POSIX +// standards requirements result in this header being included +// by only under a restricted set of conditions. + +// The inclusion of is needed for definitions of pid_t, etc. +// Placement here is due to a dependency in which is included +// by for the sigevent structure. Hence this inclusion must +// follow that definition. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2021 Oxide Computer Company + +type Siginfo = struct { + Fsi_signo int32 + Fsi_code int32 + Fsi_errno int32 + Fsi_pad int32 + F__data struct { + F__ccgo_pad1 [0]uint64 + F__pad [60]int32 + } +} /* siginfo.h:237:9 */ + +// SIGILL signal codes + +// SIGEMT signal codes + +// SIGFPE signal codes + +// SIGSEGV signal codes + +// SIGBUS signal codes + +// SIGTRAP signal codes + +// SIGCLD signal codes + +// SIGPOLL signal codes + +// SIGPROF signal codes + +// Inclusion of is needed for the declaration of +// timestruc_t. However, since inclusion of results +// in X/Open and POSIX namespace pollution, the definition for +// timestruct_t has been duplicated in a standards namespace safe header +// . In , the structure +// name, tag, and member names, as well as the type itself, all have +// leading underscores to protect namespace. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2005 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Implementation-private. This header should not be included +// directly by an application. The application should instead +// include which includes this header conditionally +// depending on which feature test macros are defined. By default, +// this header is included by . X/Open and POSIX +// standards requirements result in this header being included +// by only under a restricted set of conditions. + +// The inclusion of is needed for definitions of pid_t, etc. +// Placement here is due to a dependency in which is included +// by for the sigevent structure. Hence this inclusion must +// follow that definition. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2021 Oxide Computer Company + +type Siginfo_t = Siginfo /* siginfo.h:304:3 */ + +// XXX -- internal version is identical to siginfo_t but without the padding. +// This must be maintained in sync with it. + +type K_siginfo = struct { + Fsi_signo int32 + Fsi_code int32 + Fsi_errno int32 + Fsi_pad int32 + F__data struct { + F__proc struct { + F__pid int32 + F__ccgo_pad1 [4]byte + F__pdata struct { + F__kill struct { + F__uid uint32 + F__ccgo_pad1 [4]byte + F__value struct { + F__ccgo_pad1 [0]uint64 + Fsival_int int32 + F__ccgo_pad2 [4]byte + } + } + F__ccgo_pad1 [8]byte + } + F__ctid int32 + F__zoneid int32 + } + } +} /* siginfo.h:379:9 */ + +// XXX -- internal version is identical to siginfo_t but without the padding. +// This must be maintained in sync with it. + +type K_siginfo_t = K_siginfo /* siginfo.h:438:3 */ + +type Sigqueue = struct { + Fsq_next uintptr + Fsq_info K_siginfo_t + Fsq_func uintptr + Fsq_backptr uintptr + Fsq_external int32 + F__ccgo_pad1 [4]byte +} /* siginfo.h:440:9 */ + +type Sigqueue_t = Sigqueue /* siginfo.h:447:3 */ + +// indication whether to queue the signal or not + +// Duplicated in as a result of XPG4v2 requirements + +type K_sigset_t = struct{ F__sigbits [3]uint32 } /* signal.h:73:3 */ + +// The signal handler routine can have either one or three arguments. +// Existing C code has used either form so not specifing the arguments +// neatly finesses the problem. C++ doesn't accept this. To C++ +// "(*sa_handler)()" indicates a routine with no arguments (ANSI C would +// specify this as "(*sa_handler)(void)"). One or the other form must be +// used for C++ and the only logical choice is "(*sa_handler)(int)" to allow +// the SIG_* defines to work. "(*sa_sigaction)(int, siginfo_t *, void *)" +// can be used for the three argument form. + +// Note: storage overlap by sa_handler and sa_sigaction +type Sigaction = struct { + Fsa_flags int32 + F__ccgo_pad1 [4]byte + F_funcptr struct{ F_handler uintptr } + Fsa_mask Sigset_t +} /* signal.h:89:1 */ + +// this is only valid for SIGCLD + +// non-conformant ANSI compilation + +// definitions for the sa_flags field + +// this is only valid for SIGCLD + +// use of these symbols by applications is injurious +// to binary compatibility + +// Duplicated in as a result of XPG4v2 requirements. +type Sigaltstack = struct { + Fss_sp uintptr + Fss_size uint64 + Fss_flags int32 + F__ccgo_pad1 [4]byte +} /* signal.h:176:9 */ + +// this is only valid for SIGCLD + +// non-conformant ANSI compilation + +// definitions for the sa_flags field + +// this is only valid for SIGCLD + +// use of these symbols by applications is injurious +// to binary compatibility + +// Duplicated in as a result of XPG4v2 requirements. +type Stack_t = Sigaltstack /* signal.h:183:3 */ + +// signotify id used only by libc for mq_notify()/aio_notify() +type Signotify_id = struct { + Fsn_pid int32 + Fsn_index int32 + Fsn_pad int32 +} /* signal.h:205:9 */ + +// signotify id used only by libc for mq_notify()/aio_notify() +type Signotify_id_t = Signotify_id /* signal.h:209:3 */ + +// Command codes for sig_notify call + +// Added as per XPG4v2 +type Sigstack = struct { + Fss_sp uintptr + Fss_onstack int32 + F__ccgo_pad1 [4]byte +} /* signal.h:235:1 */ + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2021 Oxide Computer Company + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2010 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2015, Joyent, Inc. + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// University Copyright- Copyright (c) 1982, 1986, 1988 +// The Regents of the University of California +// All Rights Reserved +// +// University Acknowledgment- Portions of this document are derived from +// software developed by the University of California, Berkeley, and its +// contributors. + +// This file defines the data needed to specify a set of +// processes. These types are used by the sigsend, sigsendset, +// priocntl, priocntlset, waitid, evexit, and evexitset system +// calls. + +// The following defines the values for an identifier type. It +// specifies the interpretation of an id value. An idtype and +// id together define a simple set of processes. +type Idtype_t = uint32 /* procset.h:80:3 */ + +// The following defines the operations which can be performed to +// combine two simple sets of processes to form another set of +// processes. +type Idop_t = uint32 /* procset.h:102:3 */ + +// The following structure is used to define a set of processes. +// The set is defined in terms of two simple sets of processes +// and an operator which operates on these two operand sets. +type Procset = struct { + Fp_op uint32 + Fp_lidtype uint32 + Fp_lid int32 + Fp_ridtype uint32 + Fp_rid int32 +} /* procset.h:110:9 */ + +// The following structure is used to define a set of processes. +// The set is defined in terms of two simple sets of processes +// and an operator which operates on these two operand sets. +type Procset_t = Procset /* procset.h:125:3 */ + +var _ int8 /* gen.c:2:13: */ diff --git a/vendor/modernc.org/libc/poll/poll_linux_loong64.go b/vendor/modernc.org/libc/poll/poll_linux_loong64.go new file mode 100644 index 000000000..e88473d05 --- /dev/null +++ b/vendor/modernc.org/libc/poll/poll_linux_loong64.go @@ -0,0 +1,684 @@ +// Code generated by 'ccgo poll/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o poll/poll_linux_loong64.go -pkgname poll', DO NOT EDIT. + +package poll + +import ( + "math" + "reflect" + "sync/atomic" + "unsafe" +) + +var _ = math.Pi +var _ reflect.Kind +var _ atomic.Value +var _ unsafe.Pointer + +const ( + POLLERR = 0x008 // poll.h:47:1: + POLLHUP = 0x010 // poll.h:48:1: + POLLIN = 0x001 // poll.h:25:1: + POLLNVAL = 0x020 // poll.h:49:1: + POLLOUT = 0x004 // poll.h:27:1: + POLLPRI = 0x002 // poll.h:26:1: + POLLRDBAND = 0x080 // poll.h:32:1: + POLLRDNORM = 0x040 // poll.h:31:1: + POLLWRBAND = 0x200 // poll.h:34:1: + POLLWRNORM = 0x100 // poll.h:33:1: + X_ABILP64 = 3 // :377:1: + X_ATFILE_SOURCE = 1 // features.h:353:1: + X_DEFAULT_SOURCE = 1 // features.h:238:1: + X_FEATURES_H = 1 // features.h:19:1: + X_FILE_OFFSET_BITS = 64 // :25:1: + X_LOONGARCH_ARCH = "loongarch64" // :214:1: + X_LOONGARCH_ARCH_LOONGARCH64 = 1 // :340:1: + X_LOONGARCH_FPSET = 32 // :265:1: + X_LOONGARCH_SIM = 3 // :233:1: + X_LOONGARCH_SPFPSET = 32 // :88:1: + X_LOONGARCH_SZINT = 32 // :230:1: + X_LOONGARCH_SZLONG = 64 // :388:1: + X_LOONGARCH_SZPTR = 64 // :200:1: + X_LOONGARCH_TUNE = "la464" // :245:1: + X_LOONGARCH_TUNE_LA464 = 1 // :63:1: + X_LP64 = 1 // :372:1: + X_POSIX_C_SOURCE = 200809 // features.h:292:1: + X_POSIX_SOURCE = 1 // features.h:290:1: + X_STDC_PREDEF_H = 1 // :223:1: + X_SYS_CDEFS_H = 1 // cdefs.h:20:1: + X_SYS_POLL_H = 1 // poll.h:20:1: + Linux = 1 // :308:1: + Unix = 1 // :247:1: +) + +type Ptrdiff_t = int64 /* :3:26 */ + +type Size_t = uint64 /* :9:23 */ + +type Wchar_t = int32 /* :15:24 */ + +type X__int128_t = struct { + Flo int64 + Fhi int64 +} /* :21:43 */ // must match modernc.org/mathutil.Int128 +type X__uint128_t = struct { + Flo uint64 + Fhi uint64 +} /* :22:44 */ // must match modernc.org/mathutil.Int128 + +type X__builtin_va_list = uintptr /* :46:14 */ +type X__float128 = float64 /* :47:21 */ + +// Compatibility definitions for System V `poll' interface. +// Copyright (C) 1994-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// These are defined by the user (or the compiler) +// to specify the desired environment: +// +// __STRICT_ANSI__ ISO Standard C. +// _ISOC99_SOURCE Extensions to ISO C89 from ISO C99. +// _ISOC11_SOURCE Extensions to ISO C99 from ISO C11. +// _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X. +// __STDC_WANT_LIB_EXT2__ +// Extensions to ISO C99 from TR 27431-2:2010. +// __STDC_WANT_IEC_60559_BFP_EXT__ +// Extensions to ISO C11 from TS 18661-1:2014. +// __STDC_WANT_IEC_60559_FUNCS_EXT__ +// Extensions to ISO C11 from TS 18661-4:2015. +// __STDC_WANT_IEC_60559_TYPES_EXT__ +// Extensions to ISO C11 from TS 18661-3:2015. +// __STDC_WANT_IEC_60559_EXT__ +// ISO C2X interfaces defined only in Annex F. +// +// _POSIX_SOURCE IEEE Std 1003.1. +// _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2; +// if >=199309L, add IEEE Std 1003.1b-1993; +// if >=199506L, add IEEE Std 1003.1c-1995; +// if >=200112L, all of IEEE 1003.1-2004 +// if >=200809L, all of IEEE 1003.1-2008 +// _XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if +// Single Unix conformance is wanted, to 600 for the +// sixth revision, to 700 for the seventh revision. +// _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions. +// _LARGEFILE_SOURCE Some more functions for correct standard I/O. +// _LARGEFILE64_SOURCE Additional functionality from LFS for large files. +// _FILE_OFFSET_BITS=N Select default filesystem interface. +// _ATFILE_SOURCE Additional *at interfaces. +// _DYNAMIC_STACK_SIZE_SOURCE Select correct (but non compile-time constant) +// MINSIGSTKSZ, SIGSTKSZ and PTHREAD_STACK_MIN. +// _GNU_SOURCE All of the above, plus GNU extensions. +// _DEFAULT_SOURCE The default set of features (taking precedence over +// __STRICT_ANSI__). +// +// _FORTIFY_SOURCE Add security hardening to many library functions. +// Set to 1, 2 or 3; 3 performs stricter checks than 2, which +// performs stricter checks than 1. +// +// _REENTRANT, _THREAD_SAFE +// Obsolete; equivalent to _POSIX_C_SOURCE=199506L. +// +// The `-ansi' switch to the GNU C compiler, and standards conformance +// options such as `-std=c99', define __STRICT_ANSI__. If none of +// these are defined, or if _DEFAULT_SOURCE is defined, the default is +// to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to +// 200809L, as well as enabling miscellaneous functions from BSD and +// SVID. If more than one of these are defined, they accumulate. For +// example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together +// give you ISO C, 1003.1, and 1003.2, but nothing else. +// +// These are defined by this file and are used by the +// header files to decide what to declare or define: +// +// __GLIBC_USE (F) Define things from feature set F. This is defined +// to 1 or 0; the subsequent macros are either defined +// or undefined, and those tests should be moved to +// __GLIBC_USE. +// __USE_ISOC11 Define ISO C11 things. +// __USE_ISOC99 Define ISO C99 things. +// __USE_ISOC95 Define ISO C90 AMD1 (C95) things. +// __USE_ISOCXX11 Define ISO C++11 things. +// __USE_POSIX Define IEEE Std 1003.1 things. +// __USE_POSIX2 Define IEEE Std 1003.2 things. +// __USE_POSIX199309 Define IEEE Std 1003.1, and .1b things. +// __USE_POSIX199506 Define IEEE Std 1003.1, .1b, .1c and .1i things. +// __USE_XOPEN Define XPG things. +// __USE_XOPEN_EXTENDED Define X/Open Unix things. +// __USE_UNIX98 Define Single Unix V2 things. +// __USE_XOPEN2K Define XPG6 things. +// __USE_XOPEN2KXSI Define XPG6 XSI things. +// __USE_XOPEN2K8 Define XPG7 things. +// __USE_XOPEN2K8XSI Define XPG7 XSI things. +// __USE_LARGEFILE Define correct standard I/O things. +// __USE_LARGEFILE64 Define LFS things with separate names. +// __USE_FILE_OFFSET64 Define 64bit interface as default. +// __USE_MISC Define things from 4.3BSD or System V Unix. +// __USE_ATFILE Define *at interfaces and AT_* constants for them. +// __USE_DYNAMIC_STACK_SIZE Define correct (but non compile-time constant) +// MINSIGSTKSZ, SIGSTKSZ and PTHREAD_STACK_MIN. +// __USE_GNU Define GNU extensions. +// __USE_FORTIFY_LEVEL Additional security measures used, according to level. +// +// The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are +// defined by this file unconditionally. `__GNU_LIBRARY__' is provided +// only for compatibility. All new code should use the other symbols +// to test for features. +// +// All macros listed above as possibly being defined by this file are +// explicitly undefined if they are not explicitly defined. +// Feature-test macros that are not defined by the user or compiler +// but are implied by the other feature-test macros defined (or by the +// lack of any definitions) are defined by the file. +// +// ISO C feature test macros depend on the definition of the macro +// when an affected header is included, not when the first system +// header is included, and so they are handled in +// , which does not have a multiple include +// guard. Feature test macros that can be handled from the first +// system header included are handled here. + +// Undefine everything, so we get a clean slate. + +// Suppress kernel-name space pollution unless user expressedly asks +// for it. + +// Convenience macro to test the version of gcc. +// Use like this: +// #if __GNUC_PREREQ (2,8) +// ... code requiring gcc 2.8 or later ... +// #endif +// Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was +// added in 2.0. + +// Similarly for clang. Features added to GCC after version 4.2 may +// or may not also be available in clang, and clang's definitions of +// __GNUC(_MINOR)__ are fixed at 4 and 2 respectively. Not all such +// features can be queried via __has_extension/__has_feature. + +// Whether to use feature set F. + +// _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for +// _DEFAULT_SOURCE. If _DEFAULT_SOURCE is present we do not +// issue a warning; the expectation is that the source is being +// transitioned to use the new macro. + +// If _GNU_SOURCE was defined by the user, turn on all the other features. + +// If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined, +// define _DEFAULT_SOURCE. + +// This is to enable the ISO C2X extension. + +// This is to enable the ISO C11 extension. + +// This is to enable the ISO C99 extension. + +// This is to enable the ISO C90 Amendment 1:1995 extension. + +// If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE +// is defined, use POSIX.1-2008 (or another version depending on +// _XOPEN_SOURCE). + +// Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be +// defined in all multithreaded code. GNU libc has not required this +// for many years. We now treat them as compatibility synonyms for +// _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with +// comprehensive support for multithreaded code. Using them never +// lowers the selected level of POSIX conformance, only raises it. + +// Features part to handle 64-bit time_t support. +// Copyright (C) 2021-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// We need to know the word size in order to check the time size. +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Bit size of the time_t type at glibc build time, general case. +// Copyright (C) 2018-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Size in bits of the 'time_t' type of the default ABI. + +// The function 'gets' existed in C89, but is impossible to use +// safely. It has been removed from ISO C11 and ISO C++14. Note: for +// compatibility with various implementations of , this test +// must consider only the value of __cplusplus when compiling C++. + +// GNU formerly extended the scanf functions with modified format +// specifiers %as, %aS, and %a[...] that allocate a buffer for the +// input using malloc. This extension conflicts with ISO C99, which +// defines %a as a standalone format specifier that reads a floating- +// point number; moreover, POSIX.1-2008 provides the same feature +// using the modifier letter 'm' instead (%ms, %mS, %m[...]). +// +// We now follow C99 unless GNU extensions are active and the compiler +// is specifically in C89 or C++98 mode (strict or not). For +// instance, with GCC, -std=gnu11 will have C99-compliant scanf with +// or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the +// old extension. + +// ISO C2X added support for a 0b or 0B prefix on binary constants as +// inputs to strtol-family functions (base 0 or 2). This macro is +// used to condition redirection in headers to allow that redirection +// to be disabled when building those functions, despite _GNU_SOURCE +// being defined. + +// Get definitions of __STDC_* predefined macros, if the compiler has +// not preincluded this header automatically. +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// This macro indicates that the installed library is the GNU C Library. +// For historic reasons the value now is 6 and this will stay from now +// on. The use of this variable is deprecated. Use __GLIBC__ and +// __GLIBC_MINOR__ now (see below) when you want to test for a specific +// GNU C library version and use the values in to get +// the sonames of the shared libraries. + +// Major and minor version number of the GNU C library package. Use +// these macros to test for features in specific releases. + +// This is here only because every header file already includes this one. +// Copyright (C) 1992-2023 Free Software Foundation, Inc. +// Copyright The GNU Toolchain Authors. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// We are almost always included from features.h. + +// The GNU libc does not support any K&R compilers or the traditional mode +// of ISO C compilers anymore. Check for some of the combinations not +// supported anymore. + +// Some user header file might have defined this before. + +// Compilers that lack __has_attribute may object to +// #if defined __has_attribute && __has_attribute (...) +// even though they do not need to evaluate the right-hand side of the &&. +// Similarly for __has_builtin, etc. + +// All functions, except those with callbacks or those that +// synchronize memory, are leaf functions. + +// GCC can always grok prototypes. For C++ programs we add throw() +// to help it optimize the function calls. But this only works with +// gcc 2.8.x and egcs. For gcc 3.4 and up we even mark C functions +// as non-throwing using a function attribute since programs can use +// the -fexceptions options for C code as well. + +// These two macros are not used in glibc anymore. They are kept here +// only because some other projects expect the macros to be defined. + +// For these things, GCC behaves the ANSI way normally, +// and the non-ANSI way under -traditional. + +// This is not a typedef so `const __ptr_t' does the right thing. + +// C++ needs to know that types and declarations are C, not C++. + +// Fortify support. + +// Use __builtin_dynamic_object_size at _FORTIFY_SOURCE=3 when available. + +// Support for flexible arrays. +// Headers that should use flexible arrays only if they're "real" +// (e.g. only if they won't affect sizeof()) should test +// #if __glibc_c99_flexarr_available. + +// __asm__ ("xyz") is used throughout the headers to rename functions +// at the assembly language level. This is wrapped by the __REDIRECT +// macro, in order to support compilers that can do this some other +// way. When compilers don't support asm-names at all, we have to do +// preprocessor tricks instead (which don't have exactly the right +// semantics, but it's the best we can do). +// +// Example: +// int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid); + +// +// #elif __SOME_OTHER_COMPILER__ +// +// # define __REDIRECT(name, proto, alias) name proto; _Pragma("let " #name " = " #alias) + +// GCC and clang have various useful declarations that can be made with +// the '__attribute__' syntax. All of the ways we use this do fine if +// they are omitted for compilers that don't understand it. + +// At some point during the gcc 2.96 development the `malloc' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// Tell the compiler which arguments to an allocation function +// indicate the size of the allocation. + +// Tell the compiler which argument to an allocation function +// indicates the alignment of the allocation. + +// At some point during the gcc 2.96 development the `pure' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// This declaration tells the compiler that the value is constant. + +// At some point during the gcc 3.1 development the `used' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// Since version 3.2, gcc allows marking deprecated functions. + +// Since version 4.5, gcc also allows one to specify the message printed +// when a deprecated function is used. clang claims to be gcc 4.2, but +// may also support this feature. + +// At some point during the gcc 2.8 development the `format_arg' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. +// If several `format_arg' attributes are given for the same function, in +// gcc-3.0 and older, all but the last one are ignored. In newer gccs, +// all designated arguments are considered. + +// At some point during the gcc 2.97 development the `strfmon' format +// attribute for functions was introduced. We don't want to use it +// unconditionally (although this would be possible) since it +// generates warnings. + +// The nonnull function attribute marks pointer parameters that +// must not be NULL. This has the name __nonnull in glibc, +// and __attribute_nonnull__ in files shared with Gnulib to avoid +// collision with a different __nonnull in DragonFlyBSD 5.9. + +// The returns_nonnull function attribute marks the return type of the function +// as always being non-null. + +// If fortification mode, we warn about unused results of certain +// function calls which can lead to problems. + +// Forces a function to be always inlined. +// The Linux kernel defines __always_inline in stddef.h (283d7573), and +// it conflicts with this definition. Therefore undefine it first to +// allow either header to be included first. + +// Associate error messages with the source location of the call site rather +// than with the source location inside the function. + +// GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99 +// inline semantics, unless -fgnu89-inline is used. Using __GNUC_STDC_INLINE__ +// or __GNUC_GNU_INLINE is not a good enough check for gcc because gcc versions +// older than 4.3 may define these macros and still not guarantee GNU inlining +// semantics. +// +// clang++ identifies itself as gcc-4.2, but has support for GNU inlining +// semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and +// __GNUC_GNU_INLINE__ macro definitions. + +// GCC 4.3 and above allow passing all anonymous arguments of an +// __extern_always_inline function to some other vararg function. + +// It is possible to compile containing GCC extensions even if GCC is +// run in pedantic mode if the uses are carefully marked using the +// `__extension__' keyword. But this is not generally available before +// version 2.8. + +// __restrict is known in EGCS 1.2 and above, and in clang. +// It works also in C++ mode (outside of arrays), but only when spelled +// as '__restrict', not 'restrict'. + +// ISO C99 also allows to declare arrays as non-overlapping. The syntax is +// array_name[restrict] +// GCC 3.1 and clang support this. +// This syntax is not usable in C++ mode. + +// Describes a char array whose address can safely be passed as the first +// argument to strncpy and strncat, as the char array is not necessarily +// a NUL-terminated string. + +// Undefine (also defined in libc-symbols.h). +// Copies attributes from the declaration or type referenced by +// the argument. + +// Gnulib avoids including these, as they don't work on non-glibc or +// older glibc platforms. +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Properties of long double type. ldbl-128 version. +// Copyright (C) 2016-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// long double is distinct from double, so there is nothing to +// define here. + +// __glibc_macro_warning (MESSAGE) issues warning MESSAGE. This is +// intended for use in preprocessor macros. +// +// Note: MESSAGE must be a _single_ string; concatenation of string +// literals is not supported. + +// Generic selection (ISO C11) is a C-only feature, available in GCC +// since version 4.9. Previous versions do not provide generic +// selection, even though they might set __STDC_VERSION__ to 201112L, +// when in -std=c11 mode. Thus, we must check for !defined __GNUC__ +// when testing __STDC_VERSION__ for generic selection support. +// On the other hand, Clang also defines __GNUC__, so a clang-specific +// check is required to enable the use of generic selection. + +// Designates a 1-based positional argument ref-index of pointer type +// that can be used to access size-index elements of the pointed-to +// array according to access mode, or at least one element when +// size-index is not provided: +// access (access-mode, [, ]) +// For _FORTIFY_SOURCE == 3 we use __builtin_dynamic_object_size, which may +// use the access attribute to get object sizes from function definition +// arguments, so we can't use them on functions we fortify. Drop the object +// size hints for such functions. + +// Designates dealloc as a function to call to deallocate objects +// allocated by the declared function. + +// Specify that a function such as setjmp or vfork may return +// twice. + +// If we don't have __REDIRECT, prototypes will be missing if +// __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64]. + +// Decide whether we can define 'extern inline' functions in headers. + +// This is here only because every header file already includes this one. +// Get the definitions of all the appropriate `__stub_FUNCTION' symbols. +// contains `#define __stub_FUNCTION' when FUNCTION is a stub +// that will always return failure (and set errno to ENOSYS). +// This file is automatically generated. +// This file selects the right generated file of `__stub_FUNCTION' macros +// based on the architecture being compiled for. + +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// This file is automatically generated. +// It defines a symbol `__stub_FUNCTION' for each function +// in the C library which is a stub, meaning it will fail +// every time called, usually setting errno to ENOSYS. + +// Get the platform dependent bits of `poll'. +// Copyright (C) 1997-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Event types that can be polled for. These bits may be set in `events' +// to indicate the interesting event types; they will appear in `revents' +// to indicate the status of the file descriptor. + +// These values are defined in XPG4.2. + +// Event types always implicitly polled for. These bits need not be set in +// `events', but they will appear in `revents' to indicate the status of +// the file descriptor. + +// Type used for the number of file descriptors. +type Nfds_t = uint64 /* poll.h:33:27 */ + +// Data structure describing a polling request. +type Pollfd = struct { + Ffd int32 + Fevents int16 + Frevents int16 +} /* poll.h:36:1 */ + +// Define some inlines helping to catch common problems. + +var _ int8 /* gen.c:2:13: */ diff --git a/vendor/modernc.org/libc/poll/poll_linux_mips64le.go b/vendor/modernc.org/libc/poll/poll_linux_mips64le.go new file mode 100644 index 000000000..83aca0f21 --- /dev/null +++ b/vendor/modernc.org/libc/poll/poll_linux_mips64le.go @@ -0,0 +1,540 @@ +// Code generated by 'ccgo poll/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o poll/poll_linux_amd64.go -pkgname poll', DO NOT EDIT. + +package poll + +import ( + "math" + "reflect" + "sync/atomic" + "unsafe" +) + +var _ = math.Pi +var _ reflect.Kind +var _ atomic.Value +var _ unsafe.Pointer + +const ( + POLLERR = 0x008 // poll.h:47:1: + POLLHUP = 0x010 // poll.h:48:1: + POLLIN = 0x001 // poll.h:25:1: + POLLNVAL = 0x020 // poll.h:49:1: + POLLOUT = 0x004 // poll.h:27:1: + POLLPRI = 0x002 // poll.h:26:1: + POLLRDBAND = 0x080 // poll.h:32:1: + POLLRDNORM = 0x040 // poll.h:31:1: + POLLWRBAND = 0x200 // poll.h:34:1: + POLLWRNORM = 0x100 // poll.h:33:1: + X_ATFILE_SOURCE = 1 // features.h:342:1: + X_DEFAULT_SOURCE = 1 // features.h:227:1: + X_FEATURES_H = 1 // features.h:19:1: + X_FILE_OFFSET_BITS = 64 // :25:1: + X_LP64 = 1 // :284:1: + X_POSIX_C_SOURCE = 200809 // features.h:281:1: + X_POSIX_SOURCE = 1 // features.h:279:1: + X_STDC_PREDEF_H = 1 // :162:1: + X_SYS_CDEFS_H = 1 // cdefs.h:19:1: + X_SYS_POLL_H = 1 // poll.h:20:1: + Linux = 1 // :231:1: + Unix = 1 // :177:1: +) + +type Ptrdiff_t = int64 /* :3:26 */ + +type Size_t = uint64 /* :9:23 */ + +type Wchar_t = int32 /* :15:24 */ + +type X__int128_t = struct { + Flo int64 + Fhi int64 +} /* :21:43 */ // must match modernc.org/mathutil.Int128 +type X__uint128_t = struct { + Flo uint64 + Fhi uint64 +} /* :22:44 */ // must match modernc.org/mathutil.Int128 + +type X__builtin_va_list = uintptr /* :46:14 */ +type X__float128 = float64 /* :47:21 */ + +// Compatibility definitions for System V `poll' interface. +// Copyright (C) 1994-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// These are defined by the user (or the compiler) +// to specify the desired environment: +// +// __STRICT_ANSI__ ISO Standard C. +// _ISOC99_SOURCE Extensions to ISO C89 from ISO C99. +// _ISOC11_SOURCE Extensions to ISO C99 from ISO C11. +// _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X. +// __STDC_WANT_LIB_EXT2__ +// Extensions to ISO C99 from TR 27431-2:2010. +// __STDC_WANT_IEC_60559_BFP_EXT__ +// Extensions to ISO C11 from TS 18661-1:2014. +// __STDC_WANT_IEC_60559_FUNCS_EXT__ +// Extensions to ISO C11 from TS 18661-4:2015. +// __STDC_WANT_IEC_60559_TYPES_EXT__ +// Extensions to ISO C11 from TS 18661-3:2015. +// +// _POSIX_SOURCE IEEE Std 1003.1. +// _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2; +// if >=199309L, add IEEE Std 1003.1b-1993; +// if >=199506L, add IEEE Std 1003.1c-1995; +// if >=200112L, all of IEEE 1003.1-2004 +// if >=200809L, all of IEEE 1003.1-2008 +// _XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if +// Single Unix conformance is wanted, to 600 for the +// sixth revision, to 700 for the seventh revision. +// _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions. +// _LARGEFILE_SOURCE Some more functions for correct standard I/O. +// _LARGEFILE64_SOURCE Additional functionality from LFS for large files. +// _FILE_OFFSET_BITS=N Select default filesystem interface. +// _ATFILE_SOURCE Additional *at interfaces. +// _GNU_SOURCE All of the above, plus GNU extensions. +// _DEFAULT_SOURCE The default set of features (taking precedence over +// __STRICT_ANSI__). +// +// _FORTIFY_SOURCE Add security hardening to many library functions. +// Set to 1 or 2; 2 performs stricter checks than 1. +// +// _REENTRANT, _THREAD_SAFE +// Obsolete; equivalent to _POSIX_C_SOURCE=199506L. +// +// The `-ansi' switch to the GNU C compiler, and standards conformance +// options such as `-std=c99', define __STRICT_ANSI__. If none of +// these are defined, or if _DEFAULT_SOURCE is defined, the default is +// to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to +// 200809L, as well as enabling miscellaneous functions from BSD and +// SVID. If more than one of these are defined, they accumulate. For +// example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together +// give you ISO C, 1003.1, and 1003.2, but nothing else. +// +// These are defined by this file and are used by the +// header files to decide what to declare or define: +// +// __GLIBC_USE (F) Define things from feature set F. This is defined +// to 1 or 0; the subsequent macros are either defined +// or undefined, and those tests should be moved to +// __GLIBC_USE. +// __USE_ISOC11 Define ISO C11 things. +// __USE_ISOC99 Define ISO C99 things. +// __USE_ISOC95 Define ISO C90 AMD1 (C95) things. +// __USE_ISOCXX11 Define ISO C++11 things. +// __USE_POSIX Define IEEE Std 1003.1 things. +// __USE_POSIX2 Define IEEE Std 1003.2 things. +// __USE_POSIX199309 Define IEEE Std 1003.1, and .1b things. +// __USE_POSIX199506 Define IEEE Std 1003.1, .1b, .1c and .1i things. +// __USE_XOPEN Define XPG things. +// __USE_XOPEN_EXTENDED Define X/Open Unix things. +// __USE_UNIX98 Define Single Unix V2 things. +// __USE_XOPEN2K Define XPG6 things. +// __USE_XOPEN2KXSI Define XPG6 XSI things. +// __USE_XOPEN2K8 Define XPG7 things. +// __USE_XOPEN2K8XSI Define XPG7 XSI things. +// __USE_LARGEFILE Define correct standard I/O things. +// __USE_LARGEFILE64 Define LFS things with separate names. +// __USE_FILE_OFFSET64 Define 64bit interface as default. +// __USE_MISC Define things from 4.3BSD or System V Unix. +// __USE_ATFILE Define *at interfaces and AT_* constants for them. +// __USE_GNU Define GNU extensions. +// __USE_FORTIFY_LEVEL Additional security measures used, according to level. +// +// The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are +// defined by this file unconditionally. `__GNU_LIBRARY__' is provided +// only for compatibility. All new code should use the other symbols +// to test for features. +// +// All macros listed above as possibly being defined by this file are +// explicitly undefined if they are not explicitly defined. +// Feature-test macros that are not defined by the user or compiler +// but are implied by the other feature-test macros defined (or by the +// lack of any definitions) are defined by the file. +// +// ISO C feature test macros depend on the definition of the macro +// when an affected header is included, not when the first system +// header is included, and so they are handled in +// , which does not have a multiple include +// guard. Feature test macros that can be handled from the first +// system header included are handled here. + +// Undefine everything, so we get a clean slate. + +// Suppress kernel-name space pollution unless user expressedly asks +// for it. + +// Convenience macro to test the version of gcc. +// Use like this: +// #if __GNUC_PREREQ (2,8) +// ... code requiring gcc 2.8 or later ... +// #endif +// Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was +// added in 2.0. + +// Similarly for clang. Features added to GCC after version 4.2 may +// or may not also be available in clang, and clang's definitions of +// __GNUC(_MINOR)__ are fixed at 4 and 2 respectively. Not all such +// features can be queried via __has_extension/__has_feature. + +// Whether to use feature set F. + +// _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for +// _DEFAULT_SOURCE. If _DEFAULT_SOURCE is present we do not +// issue a warning; the expectation is that the source is being +// transitioned to use the new macro. + +// If _GNU_SOURCE was defined by the user, turn on all the other features. + +// If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined, +// define _DEFAULT_SOURCE. + +// This is to enable the ISO C2X extension. + +// This is to enable the ISO C11 extension. + +// This is to enable the ISO C99 extension. + +// This is to enable the ISO C90 Amendment 1:1995 extension. + +// If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE +// is defined, use POSIX.1-2008 (or another version depending on +// _XOPEN_SOURCE). + +// Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be +// defined in all multithreaded code. GNU libc has not required this +// for many years. We now treat them as compatibility synonyms for +// _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with +// comprehensive support for multithreaded code. Using them never +// lowers the selected level of POSIX conformance, only raises it. + +// The function 'gets' existed in C89, but is impossible to use +// safely. It has been removed from ISO C11 and ISO C++14. Note: for +// compatibility with various implementations of , this test +// must consider only the value of __cplusplus when compiling C++. + +// GNU formerly extended the scanf functions with modified format +// specifiers %as, %aS, and %a[...] that allocate a buffer for the +// input using malloc. This extension conflicts with ISO C99, which +// defines %a as a standalone format specifier that reads a floating- +// point number; moreover, POSIX.1-2008 provides the same feature +// using the modifier letter 'm' instead (%ms, %mS, %m[...]). +// +// We now follow C99 unless GNU extensions are active and the compiler +// is specifically in C89 or C++98 mode (strict or not). For +// instance, with GCC, -std=gnu11 will have C99-compliant scanf with +// or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the +// old extension. + +// Get definitions of __STDC_* predefined macros, if the compiler has +// not preincluded this header automatically. +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// This macro indicates that the installed library is the GNU C Library. +// For historic reasons the value now is 6 and this will stay from now +// on. The use of this variable is deprecated. Use __GLIBC__ and +// __GLIBC_MINOR__ now (see below) when you want to test for a specific +// GNU C library version and use the values in to get +// the sonames of the shared libraries. + +// Major and minor version number of the GNU C library package. Use +// these macros to test for features in specific releases. + +// This is here only because every header file already includes this one. +// Copyright (C) 1992-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// We are almost always included from features.h. + +// The GNU libc does not support any K&R compilers or the traditional mode +// of ISO C compilers anymore. Check for some of the combinations not +// anymore supported. + +// Some user header file might have defined this before. + +// All functions, except those with callbacks or those that +// synchronize memory, are leaf functions. + +// GCC can always grok prototypes. For C++ programs we add throw() +// to help it optimize the function calls. But this works only with +// gcc 2.8.x and egcs. For gcc 3.2 and up we even mark C functions +// as non-throwing using a function attribute since programs can use +// the -fexceptions options for C code as well. + +// Compilers that are not clang may object to +// #if defined __clang__ && __has_extension(...) +// even though they do not need to evaluate the right-hand side of the &&. + +// These two macros are not used in glibc anymore. They are kept here +// only because some other projects expect the macros to be defined. + +// For these things, GCC behaves the ANSI way normally, +// and the non-ANSI way under -traditional. + +// This is not a typedef so `const __ptr_t' does the right thing. + +// C++ needs to know that types and declarations are C, not C++. + +// Fortify support. + +// Support for flexible arrays. +// Headers that should use flexible arrays only if they're "real" +// (e.g. only if they won't affect sizeof()) should test +// #if __glibc_c99_flexarr_available. + +// __asm__ ("xyz") is used throughout the headers to rename functions +// at the assembly language level. This is wrapped by the __REDIRECT +// macro, in order to support compilers that can do this some other +// way. When compilers don't support asm-names at all, we have to do +// preprocessor tricks instead (which don't have exactly the right +// semantics, but it's the best we can do). +// +// Example: +// int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid); + +// +// #elif __SOME_OTHER_COMPILER__ +// +// # define __REDIRECT(name, proto, alias) name proto; _Pragma("let " #name " = " #alias) + +// GCC has various useful declarations that can be made with the +// `__attribute__' syntax. All of the ways we use this do fine if +// they are omitted for compilers that don't understand it. + +// At some point during the gcc 2.96 development the `malloc' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// Tell the compiler which arguments to an allocation function +// indicate the size of the allocation. + +// At some point during the gcc 2.96 development the `pure' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// This declaration tells the compiler that the value is constant. + +// At some point during the gcc 3.1 development the `used' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// Since version 3.2, gcc allows marking deprecated functions. + +// Since version 4.5, gcc also allows one to specify the message printed +// when a deprecated function is used. clang claims to be gcc 4.2, but +// may also support this feature. + +// At some point during the gcc 2.8 development the `format_arg' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. +// If several `format_arg' attributes are given for the same function, in +// gcc-3.0 and older, all but the last one are ignored. In newer gccs, +// all designated arguments are considered. + +// At some point during the gcc 2.97 development the `strfmon' format +// attribute for functions was introduced. We don't want to use it +// unconditionally (although this would be possible) since it +// generates warnings. + +// The nonull function attribute allows to mark pointer parameters which +// must not be NULL. + +// If fortification mode, we warn about unused results of certain +// function calls which can lead to problems. + +// Forces a function to be always inlined. +// The Linux kernel defines __always_inline in stddef.h (283d7573), and +// it conflicts with this definition. Therefore undefine it first to +// allow either header to be included first. + +// Associate error messages with the source location of the call site rather +// than with the source location inside the function. + +// GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99 +// inline semantics, unless -fgnu89-inline is used. Using __GNUC_STDC_INLINE__ +// or __GNUC_GNU_INLINE is not a good enough check for gcc because gcc versions +// older than 4.3 may define these macros and still not guarantee GNU inlining +// semantics. +// +// clang++ identifies itself as gcc-4.2, but has support for GNU inlining +// semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and +// __GNUC_GNU_INLINE__ macro definitions. + +// GCC 4.3 and above allow passing all anonymous arguments of an +// __extern_always_inline function to some other vararg function. + +// It is possible to compile containing GCC extensions even if GCC is +// run in pedantic mode if the uses are carefully marked using the +// `__extension__' keyword. But this is not generally available before +// version 2.8. + +// __restrict is known in EGCS 1.2 and above. + +// ISO C99 also allows to declare arrays as non-overlapping. The syntax is +// array_name[restrict] +// GCC 3.1 supports this. + +// Describes a char array whose address can safely be passed as the first +// argument to strncpy and strncat, as the char array is not necessarily +// a NUL-terminated string. + +// Undefine (also defined in libc-symbols.h). +// Copies attributes from the declaration or type referenced by +// the argument. + +// Determine the wordsize from the preprocessor defines. + +// Both x86-64 and x32 use the 64-bit system call interface. +// Properties of long double type. ldbl-96 version. +// Copyright (C) 2016-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// long double is distinct from double, so there is nothing to +// define here. + +// __glibc_macro_warning (MESSAGE) issues warning MESSAGE. This is +// intended for use in preprocessor macros. +// +// Note: MESSAGE must be a _single_ string; concatenation of string +// literals is not supported. + +// Generic selection (ISO C11) is a C-only feature, available in GCC +// since version 4.9. Previous versions do not provide generic +// selection, even though they might set __STDC_VERSION__ to 201112L, +// when in -std=c11 mode. Thus, we must check for !defined __GNUC__ +// when testing __STDC_VERSION__ for generic selection support. +// On the other hand, Clang also defines __GNUC__, so a clang-specific +// check is required to enable the use of generic selection. + +// If we don't have __REDIRECT, prototypes will be missing if +// __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64]. + +// Decide whether we can define 'extern inline' functions in headers. + +// This is here only because every header file already includes this one. +// Get the definitions of all the appropriate `__stub_FUNCTION' symbols. +// contains `#define __stub_FUNCTION' when FUNCTION is a stub +// that will always return failure (and set errno to ENOSYS). +// This file is automatically generated. +// This file selects the right generated file of `__stub_FUNCTION' macros +// based on the architecture being compiled for. + +// This file is automatically generated. +// It defines a symbol `__stub_FUNCTION' for each function +// in the C library which is a stub, meaning it will fail +// every time called, usually setting errno to ENOSYS. + +// Get the platform dependent bits of `poll'. +// Copyright (C) 1997-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Event types that can be polled for. These bits may be set in `events' +// to indicate the interesting event types; they will appear in `revents' +// to indicate the status of the file descriptor. + +// These values are defined in XPG4.2. + +// Event types always implicitly polled for. These bits need not be set in +// `events', but they will appear in `revents' to indicate the status of +// the file descriptor. + +// Type used for the number of file descriptors. +type Nfds_t = uint64 /* poll.h:33:27 */ + +// Data structure describing a polling request. +type Pollfd = struct { + Ffd int32 + Fevents int16 + Frevents int16 +} /* poll.h:36:1 */ + +// Define some inlines helping to catch common problems. + +var _ int8 /* gen.c:2:13: */ diff --git a/vendor/modernc.org/libc/printf.go b/vendor/modernc.org/libc/printf.go index a26ad40e4..4abdfcd73 100644 --- a/vendor/modernc.org/libc/printf.go +++ b/vendor/modernc.org/libc/printf.go @@ -2,6 +2,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build !(linux && (amd64 || arm64 || loong64 || ppc64le || s390x || riscv64 || 386 || arm)) + package libc // import "modernc.org/libc" import ( @@ -38,17 +40,17 @@ const ( // the output stream; and conversion specifications, each of which results in // fetching zero or more subsequent arguments. func printf(format, args uintptr) []byte { - format0 := format - args0 := args + // format0 := format + // args0 := args buf := bytes.NewBuffer(nil) for { switch c := *(*byte)(unsafe.Pointer(format)); c { case '%': format = printfConversion(buf, format, &args) case 0: - if dmesgs { - dmesg("%v: %q, %#x -> %q", origin(1), GoString(format0), args0, buf.Bytes()) - } + // if dmesgs { + // dmesg("%v: %q, %#x -> %q", origin(1), GoString(format0), args0, buf.Bytes()) + // } return buf.Bytes() default: format++ @@ -114,7 +116,7 @@ flags: break flags } } - format, width, hasWidth := parseFieldWidth(format) + format, width, hasWidth := parseFieldWidth(format, args) if hasWidth { spec += strconv.Itoa(width) } @@ -141,7 +143,7 @@ more: mod = modNone } switch mod { - case modL, modLL, mod64: + case modL, modLL, mod64, modJ: arg = VaInt64(args) case modH: arg = int64(int16(VaInt32(args))) @@ -149,6 +151,8 @@ more: arg = int64(int8(VaInt32(args))) case mod32, modNone: arg = int64(VaInt32(args)) + case modT: + arg = int64(VaInt64(args)) default: panic(todo("", mod)) } @@ -185,6 +189,8 @@ more: arg = uint64(uint8(VaInt32(args))) case mod32: arg = uint64(VaInt32(args)) + case modZ: + arg = uint64(VaInt64(args)) default: panic(todo("", mod)) } @@ -235,6 +241,38 @@ more: f := spec + "o" str = fmt.Sprintf(f, arg) + case 'b': + // Base 2. + format++ + var arg uint64 + if isWindows && mod == modL { + mod = modNone + } + switch mod { + case modNone: + arg = uint64(VaUint32(args)) + case modL, modLL, mod64: + arg = VaUint64(args) + case modH: + arg = uint64(uint16(VaInt32(args))) + case modHH: + arg = uint64(uint8(VaInt32(args))) + case mod32: + arg = uint64(VaInt32(args)) + default: + panic(todo("", mod)) + } + + if arg == 0 && hasPrecision && prec == 0 { + break + } + + if hasPrecision { + panic(todo("", prec)) + } + + f := spec + "b" + str = fmt.Sprintf(f, arg) case 'I': if !isWindows { panic(todo("%#U", c)) @@ -308,6 +346,8 @@ more: arg = uint64(uint8(VaInt32(args))) case mod32: arg = uint64(VaInt32(args)) + case modZ: + arg = uint64(VaInt64(args)) default: panic(todo("", mod)) } @@ -470,7 +510,7 @@ more: // nonexistent or small field width cause truncation of a field; if the result // of a conversion is wider than the field width, the field is expanded to // contain the conversion result. -func parseFieldWidth(format uintptr) (_ uintptr, n int, ok bool) { +func parseFieldWidth(format uintptr, args *uintptr) (_ uintptr, n int, ok bool) { first := true for { var digit int @@ -478,7 +518,13 @@ func parseFieldWidth(format uintptr) (_ uintptr, n int, ok bool) { case first && c == '0': return format, n, ok case first && c == '*': - panic(todo("")) + format++ + switch c := *(*byte)(unsafe.Pointer(format)); { + case c >= '0' && c <= '9': + panic(todo("")) + default: + return format, int(VaInt32(args)), true + } case c >= '0' && c <= '9': format++ ok = true @@ -609,13 +655,18 @@ func parseLengthModifier(format uintptr) (_ uintptr, n int) { n = modLD return format, n case 'j': - panic(todo("")) + format++ + n = modJ + return format, n case 'z': - panic(todo("")) + format++ + return format, modZ case 'Z': - panic(todo("")) + format++ + return format, modCapitalZ case 't': - panic(todo("")) + format++ + return format, modT default: return format, 0 } diff --git a/vendor/modernc.org/libc/pthread.go b/vendor/modernc.org/libc/pthread.go index 06792905c..f9a8586d2 100644 --- a/vendor/modernc.org/libc/pthread.go +++ b/vendor/modernc.org/libc/pthread.go @@ -2,6 +2,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build !(linux && (amd64 || arm64 || loong64 || ppc64le || s390x || riscv64 || 386 || arm)) + package libc // import "modernc.org/libc" import ( @@ -34,8 +36,13 @@ var ( // Thread local storage. type TLS struct { - errnop uintptr + errnop uintptr + allocaStack [][]uintptr + allocas []uintptr + jumpBuffers []uintptr + lastError uint32 pthreadData + sp int stack stackHeader ID int32 @@ -61,6 +68,67 @@ func newTLS(detached bool) *TLS { return t } +// StackSlots reports the number of tls stack slots currently in use. +func (tls *TLS) StackSlots() int { + return tls.sp +} + +func (t *TLS) alloca(n size_t) (r uintptr) { + r = Xmalloc(t, n) + t.allocas = append(t.allocas, r) + return r +} + +func (t *TLS) FreeAlloca() func() { + t.allocaStack = append(t.allocaStack, t.allocas) + t.allocas = nil + return func() { + for _, v := range t.allocas { + Xfree(t, v) + } + n := len(t.allocaStack) + t.allocas = t.allocaStack[n-1] + t.allocaStack = t.allocaStack[:n-1] + } +} + +func (tls *TLS) PushJumpBuffer(jb uintptr) { + tls.jumpBuffers = append(tls.jumpBuffers, jb) +} + +type LongjmpRetval int32 + +func (tls *TLS) PopJumpBuffer(jb uintptr) { + n := len(tls.jumpBuffers) + if n == 0 || tls.jumpBuffers[n-1] != jb { + panic(todo("unsupported setjmp/longjmp usage")) + } + + tls.jumpBuffers = tls.jumpBuffers[:n-1] +} + +func (tls *TLS) Longjmp(jb uintptr, val int32) { + tls.PopJumpBuffer(jb) + if val == 0 { + val = 1 + } + panic(LongjmpRetval(val)) +} + +func Xalloca(tls *TLS, size size_t) uintptr { + if __ccgo_strace { + trc("tls=%v size=%v, (%v:)", tls, size, origin(2)) + } + return tls.alloca(size) +} + +func X__builtin_alloca(tls *TLS, size size_t) uintptr { + if __ccgo_strace { + trc("tls=%v size=%v, (%v:)", tls, size, origin(2)) + } + return Xalloca(tls, size) +} + // Pthread specific part of a TLS. type pthreadData struct { done chan struct{} @@ -97,11 +165,17 @@ func (d *pthreadData) close(t *TLS) { // int pthread_attr_destroy(pthread_attr_t *attr); func Xpthread_attr_destroy(t *TLS, pAttr uintptr) int32 { + if __ccgo_strace { + trc("t=%v pAttr=%v, (%v:)", t, pAttr, origin(2)) + } return 0 } // int pthread_attr_setscope(pthread_attr_t *attr, int contentionscope); func Xpthread_attr_setscope(t *TLS, pAttr uintptr, contentionScope int32) int32 { + if __ccgo_strace { + trc("t=%v pAttr=%v contentionScope=%v, (%v:)", t, pAttr, contentionScope, origin(2)) + } switch contentionScope { case pthread.PTHREAD_SCOPE_SYSTEM: return 0 @@ -112,7 +186,10 @@ func Xpthread_attr_setscope(t *TLS, pAttr uintptr, contentionScope int32) int32 // int pthread_attr_setstacksize(pthread_attr_t *attr, size_t stacksize); func Xpthread_attr_setstacksize(t *TLS, attr uintptr, stackSize types.Size_t) int32 { - panic(todo("")) + if __ccgo_strace { + trc("t=%v attr=%v stackSize=%v, (%v:)", t, attr, stackSize, origin(2)) + } + return 0 } // Go side data of pthread_cond_t. @@ -161,6 +238,9 @@ func (c *cond) signal(all bool) int32 { // // int pthread_cond_init(pthread_cond_t *restrict cond, const pthread_condattr_t *restrict attr); func Xpthread_cond_init(t *TLS, pCond, pAttr uintptr) int32 { + if __ccgo_strace { + trc("t=%v pAttr=%v, (%v:)", t, pAttr, origin(2)) + } if pCond == 0 { return errno.EINVAL } @@ -179,6 +259,9 @@ func Xpthread_cond_init(t *TLS, pCond, pAttr uintptr) int32 { // int pthread_cond_destroy(pthread_cond_t *cond); func Xpthread_cond_destroy(t *TLS, pCond uintptr) int32 { + if __ccgo_strace { + trc("t=%v pCond=%v, (%v:)", t, pCond, origin(2)) + } if pCond == 0 { return errno.EINVAL } @@ -206,11 +289,17 @@ func Xpthread_cond_destroy(t *TLS, pCond uintptr) int32 { // int pthread_cond_signal(pthread_cond_t *cond); func Xpthread_cond_signal(t *TLS, pCond uintptr) int32 { + if __ccgo_strace { + trc("t=%v pCond=%v, (%v:)", t, pCond, origin(2)) + } return condSignal(pCond, false) } // int pthread_cond_broadcast(pthread_cond_t *cond); func Xpthread_cond_broadcast(t *TLS, pCond uintptr) int32 { + if __ccgo_strace { + trc("t=%v pCond=%v, (%v:)", t, pCond, origin(2)) + } return condSignal(pCond, true) } @@ -228,6 +317,9 @@ func condSignal(pCond uintptr, all bool) int32 { // int pthread_cond_wait(pthread_cond_t *restrict cond, pthread_mutex_t *restrict mutex); func Xpthread_cond_wait(t *TLS, pCond, pMutex uintptr) int32 { + if __ccgo_strace { + trc("t=%v pMutex=%v, (%v:)", t, pMutex, origin(2)) + } if pCond == 0 { return errno.EINVAL } @@ -257,6 +349,9 @@ func Xpthread_cond_wait(t *TLS, pCond, pMutex uintptr) int32 { // int pthread_cond_timedwait(pthread_cond_t *restrict cond, pthread_mutex_t *restrict mutex, const struct timespec *restrict abstime); func Xpthread_cond_timedwait(t *TLS, pCond, pMutex, pAbsTime uintptr) int32 { + if __ccgo_strace { + trc("t=%v pAbsTime=%v, (%v:)", t, pAbsTime, origin(2)) + } if pCond == 0 { return errno.EINVAL } @@ -300,6 +395,10 @@ func Xpthread_cond_timedwait(t *TLS, pCond, pMutex, pAbsTime uintptr) int32 { defer cond.Unlock() delete(cond.waiters, t) + select { + case <-t.wait: + default: + } return errno.ETIMEDOUT } } @@ -332,6 +431,8 @@ func (m *mutex) lock(id int32) int32 { // shall return zero; otherwise, an error number shall be returned to indicate // the error. switch m.typ { + default: + fallthrough case pthread.PTHREAD_MUTEX_NORMAL: // If the mutex type is PTHREAD_MUTEX_NORMAL, deadlock detection shall not be // provided. Attempting to relock the mutex causes deadlock. If a thread @@ -358,10 +459,9 @@ func (m *mutex) lock(id int32) int32 { m.Unlock() m.wait.Lock() + // intentional empty section - wake up other waiters m.wait.Unlock() } - default: - panic(todo("", m.typ)) } } @@ -371,6 +471,8 @@ func (m *mutex) tryLock(id int32) int32 { } switch m.typ { + default: + fallthrough case pthread.PTHREAD_MUTEX_NORMAL: return errno.EBUSY case pthread.PTHREAD_MUTEX_RECURSIVE: @@ -390,8 +492,6 @@ func (m *mutex) tryLock(id int32) int32 { m.Unlock() return errno.EBUSY - default: - panic(todo("", m.typ)) } } @@ -404,6 +504,8 @@ func (m *mutex) unlock() int32 { // shall return zero; otherwise, an error number shall be returned to indicate // the error. switch m.typ { + default: + fallthrough case pthread.PTHREAD_MUTEX_NORMAL: // If the mutex type is PTHREAD_MUTEX_NORMAL, deadlock detection shall not be // provided. Attempting to relock the mutex causes deadlock. If a thread @@ -421,13 +523,14 @@ func (m *mutex) unlock() int32 { } m.Unlock() return 0 - default: - panic(todo("", m.typ)) } } // int pthread_mutex_destroy(pthread_mutex_t *mutex); func Xpthread_mutex_destroy(t *TLS, pMutex uintptr) int32 { + if __ccgo_strace { + trc("t=%v pMutex=%v, (%v:)", t, pMutex, origin(2)) + } mutexesMu.Lock() defer mutexesMu.Unlock() @@ -438,6 +541,9 @@ func Xpthread_mutex_destroy(t *TLS, pMutex uintptr) int32 { // int pthread_mutex_lock(pthread_mutex_t *mutex); func Xpthread_mutex_lock(t *TLS, pMutex uintptr) int32 { + if __ccgo_strace { + trc("t=%v pMutex=%v, (%v:)", t, pMutex, origin(2)) + } mutexesMu.Lock() mu := mutexes[pMutex] if mu == nil { // static initialized mutexes are valid @@ -450,6 +556,9 @@ func Xpthread_mutex_lock(t *TLS, pMutex uintptr) int32 { // int pthread_mutex_trylock(pthread_mutex_t *mutex); func Xpthread_mutex_trylock(t *TLS, pMutex uintptr) int32 { + if __ccgo_strace { + trc("t=%v pMutex=%v, (%v:)", t, pMutex, origin(2)) + } mutexesMu.Lock() mu := mutexes[pMutex] if mu == nil { // static initialized mutexes are valid @@ -462,6 +571,9 @@ func Xpthread_mutex_trylock(t *TLS, pMutex uintptr) int32 { // int pthread_mutex_unlock(pthread_mutex_t *mutex); func Xpthread_mutex_unlock(t *TLS, pMutex uintptr) int32 { + if __ccgo_strace { + trc("t=%v pMutex=%v, (%v:)", t, pMutex, origin(2)) + } mutexesMu.Lock() defer mutexesMu.Unlock() @@ -486,6 +598,9 @@ func Xpthread_key_create(t *TLS, pKey, destructor uintptr) int32 { // int pthread_key_delete(pthread_key_t key); func Xpthread_key_delete(t *TLS, key pthread.Pthread_key_t) int32 { + if __ccgo_strace { + trc("t=%v key=%v, (%v:)", t, key, origin(2)) + } if _, ok := t.kv[key]; ok { delete(t.kv, key) return 0 @@ -497,11 +612,17 @@ func Xpthread_key_delete(t *TLS, key pthread.Pthread_key_t) int32 { // void *pthread_getspecific(pthread_key_t key); func Xpthread_getspecific(t *TLS, key pthread.Pthread_key_t) uintptr { + if __ccgo_strace { + trc("t=%v key=%v, (%v:)", t, key, origin(2)) + } return t.kv[key] } // int pthread_setspecific(pthread_key_t key, const void *value); func Xpthread_setspecific(t *TLS, key pthread.Pthread_key_t, value uintptr) int32 { + if __ccgo_strace { + trc("t=%v key=%v value=%v, (%v:)", t, key, value, origin(2)) + } if t.kv == nil { t.kv = map[pthread.Pthread_key_t]uintptr{} } @@ -511,6 +632,9 @@ func Xpthread_setspecific(t *TLS, key pthread.Pthread_key_t, value uintptr) int3 // int pthread_create(pthread_t *thread, const pthread_attr_t *attr, void *(*start_routine) (void *), void *arg); func Xpthread_create(t *TLS, pThread, pAttr, startRoutine, arg uintptr) int32 { + if __ccgo_strace { + trc("t=%v arg=%v, (%v:)", t, arg, origin(2)) + } fn := (*struct { f func(*TLS, uintptr) uintptr })(unsafe.Pointer(&struct{ uintptr }{startRoutine})).f @@ -527,19 +651,33 @@ func Xpthread_create(t *TLS, pThread, pAttr, startRoutine, arg uintptr) int32 { // int pthread_detach(pthread_t thread); func Xpthread_detach(t *TLS, thread pthread.Pthread_t) int32 { + if __ccgo_strace { + trc("t=%v thread=%v, (%v:)", t, thread, origin(2)) + } threadsMu.Lock() - threads[int32(thread)].detached = true + tls := threads[int32(thread)] + if tls == nil { + threadsMu.Unlock() + return errno.ESRCH + } + tls.detached = true threadsMu.Unlock() return 0 } // int pthread_equal(pthread_t t1, pthread_t t2); func Xpthread_equal(t *TLS, t1, t2 pthread.Pthread_t) int32 { + if __ccgo_strace { + trc("t=%v t2=%v, (%v:)", t, t2, origin(2)) + } return Bool32(t1 == t2) } // void pthread_exit(void *value_ptr); func Xpthread_exit(t *TLS, value uintptr) { + if __ccgo_strace { + trc("t=%v value=%v, (%v:)", t, value, origin(2)) + } t.retVal = value // At thread exit, if a key value has a non-NULL destructor pointer, and the @@ -576,8 +714,15 @@ func Xpthread_exit(t *TLS, value uintptr) { // int pthread_join(pthread_t thread, void **value_ptr); func Xpthread_join(t *TLS, thread pthread.Pthread_t, pValue uintptr) int32 { + if __ccgo_strace { + trc("t=%v thread=%v pValue=%v, (%v:)", t, thread, pValue, origin(2)) + } threadsMu.Lock() tls := threads[int32(thread)] + if tls == nil { + threadsMu.Unlock() + return errno.ESRCH + } delete(threads, int32(thread)) threadsMu.Unlock() <-tls.done @@ -589,5 +734,8 @@ func Xpthread_join(t *TLS, thread pthread.Pthread_t, pValue uintptr) int32 { // pthread_t pthread_self(void); func Xpthread_self(t *TLS) pthread.Pthread_t { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } return pthread.Pthread_t(t.ID) } diff --git a/vendor/modernc.org/libc/pthread/capi_illumos_amd64.go b/vendor/modernc.org/libc/pthread/capi_illumos_amd64.go new file mode 100644 index 000000000..d647cda9c --- /dev/null +++ b/vendor/modernc.org/libc/pthread/capi_illumos_amd64.go @@ -0,0 +1,5 @@ +// Code generated by 'ccgo pthread/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o pthread/pthread_illumos_amd64.go -pkgname pthread', DO NOT EDIT. + +package pthread + +var CAPI = map[string]struct{}{} diff --git a/vendor/modernc.org/libc/pthread/capi_linux_loong64.go b/vendor/modernc.org/libc/pthread/capi_linux_loong64.go new file mode 100644 index 000000000..04f76e09e --- /dev/null +++ b/vendor/modernc.org/libc/pthread/capi_linux_loong64.go @@ -0,0 +1,5 @@ +// Code generated by 'ccgo pthread/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o pthread/pthread_linux_loong64.go -pkgname pthread', DO NOT EDIT. + +package pthread + +var CAPI = map[string]struct{}{} diff --git a/vendor/modernc.org/libc/pthread/capi_linux_mips64le.go b/vendor/modernc.org/libc/pthread/capi_linux_mips64le.go new file mode 100644 index 000000000..fd760fda4 --- /dev/null +++ b/vendor/modernc.org/libc/pthread/capi_linux_mips64le.go @@ -0,0 +1,5 @@ +// Code generated by 'ccgo pthread/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o pthread/pthread_linux_amd64.go -pkgname pthread', DO NOT EDIT. + +package pthread + +var CAPI = map[string]struct{}{} diff --git a/vendor/modernc.org/libc/pthread/pthread_illumos_amd64.go b/vendor/modernc.org/libc/pthread/pthread_illumos_amd64.go new file mode 100644 index 000000000..b4d06e30d --- /dev/null +++ b/vendor/modernc.org/libc/pthread/pthread_illumos_amd64.go @@ -0,0 +1,3059 @@ +// Code generated by 'ccgo pthread/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o pthread/pthread_illumos_amd64.go -pkgname pthread', DO NOT EDIT. + +package pthread + +import ( + "math" + "reflect" + "sync/atomic" + "unsafe" +) + +var _ = math.Pi +var _ reflect.Kind +var _ atomic.Value +var _ unsafe.Pointer + +const ( + CLOCKS_PER_SEC = 1000000 // time_iso.h:78:1: + CLOCK_HIGHRES = 4 // time_impl.h:126:1: + CLOCK_MONOTONIC = 4 // time_impl.h:124:1: + CLOCK_PROCESS_CPUTIME_ID = 5 // time_impl.h:125:1: + CLOCK_PROF = 2 // time_impl.h:127:1: + CLOCK_REALTIME = 3 // time_impl.h:123:1: + CLOCK_THREAD_CPUTIME_ID = 2 // time_impl.h:122:1: + CLOCK_VIRTUAL = 1 // time_impl.h:121:1: + DST_AUST = 2 // time.h:115:1: + DST_AUSTALT = 10 // time.h:123:1: + DST_CAN = 6 // time.h:119:1: + DST_EET = 5 // time.h:118:1: + DST_GB = 7 // time.h:120:1: + DST_MET = 4 // time.h:117:1: + DST_NONE = 0 // time.h:113:1: + DST_RUM = 8 // time.h:121:1: + DST_TUR = 9 // time.h:122:1: + DST_USA = 1 // time.h:114:1: + DST_WET = 3 // time.h:116:1: + FD_SETSIZE = 65536 // select.h:88:1: + ITIMER_PROF = 2 // time.h:201:1: + ITIMER_REAL = 0 // time.h:199:1: + ITIMER_REALPROF = 3 // time.h:204:1: + ITIMER_VIRTUAL = 1 // time.h:200:1: + MICROSEC = 1000000 // time.h:246:1: + MILLISEC = 1000 // time.h:245:1: + NANOSEC = 1000000000 // time.h:247:1: + NBBY = 8 // select.h:103:1: + PTHREAD_BARRIER_SERIAL_THREAD = -2 // pthread.h:149:1: + PTHREAD_CANCEL_ASYNCHRONOUS = 0x02 // pthread.h:133:1: + PTHREAD_CANCEL_DEFERRED = 0x00 // pthread.h:132:1: + PTHREAD_CANCEL_DISABLE = 0x01 // pthread.h:131:1: + PTHREAD_CANCEL_ENABLE = 0x00 // pthread.h:130:1: + PTHREAD_CREATE_DETACHED = 0x40 // pthread.h:52:1: + PTHREAD_CREATE_JOINABLE = 0 // pthread.h:53:1: + PTHREAD_EXPLICIT_SCHED = 0 // pthread.h:63:1: + PTHREAD_INHERIT_SCHED = 1 // pthread.h:62:1: + PTHREAD_MAX_NAMELEN_NP = 32 // pthread.h:152:1: + PTHREAD_MUTEX_DEFAULT = 0 // pthread.h:80:1: + PTHREAD_MUTEX_ERRORCHECK = 0x2 // pthread.h:78:1: + PTHREAD_MUTEX_NORMAL = 0x0 // pthread.h:77:1: + PTHREAD_MUTEX_RECURSIVE = 0x4 // pthread.h:79:1: + PTHREAD_MUTEX_ROBUST = 0x40 // pthread.h:94:1: + PTHREAD_MUTEX_ROBUST_NP = 64 // pthread.h:100:1: + PTHREAD_MUTEX_STALLED = 0x0 // pthread.h:93:1: + PTHREAD_MUTEX_STALL_NP = 0 // pthread.h:99:1: + PTHREAD_ONCE_DONE = 1 // pthread.h:138:1: + PTHREAD_ONCE_NOTDONE = 0 // pthread.h:137:1: + PTHREAD_PRIO_INHERIT = 0x10 // pthread.h:86:1: + PTHREAD_PRIO_NONE = 0x0 // pthread.h:85:1: + PTHREAD_PRIO_PROTECT = 0x20 // pthread.h:87:1: + PTHREAD_PROCESS_PRIVATE = 0 // pthread.h:71:1: + PTHREAD_PROCESS_SHARED = 1 // pthread.h:70:1: + PTHREAD_SCOPE_PROCESS = 0 // pthread.h:56:1: + PTHREAD_SCOPE_SYSTEM = 0x01 // pthread.h:55:1: + P_MYID = -1 // types.h:632:1: + REG_LABEL_BP = 2 // machtypes.h:44:1: + REG_LABEL_MAX = 8 // machtypes.h:51:1: + REG_LABEL_PC = 0 // machtypes.h:42:1: + REG_LABEL_R12 = 4 // machtypes.h:47:1: + REG_LABEL_R13 = 5 // machtypes.h:48:1: + REG_LABEL_R14 = 6 // machtypes.h:49:1: + REG_LABEL_R15 = 7 // machtypes.h:50:1: + REG_LABEL_RBX = 3 // machtypes.h:46:1: + REG_LABEL_SP = 1 // machtypes.h:43:1: + SCHED_FIFO = 1 // sched.h:48:1: + SCHED_FSS = 5 // sched.h:52:1: + SCHED_FX = 6 // sched.h:53:1: + SCHED_IA = 4 // sched.h:51:1: + SCHED_OTHER = 0 // sched.h:47:1: + SCHED_RR = 2 // sched.h:49:1: + SCHED_SYS = 3 // sched.h:50:1: + SEC = 1 // time.h:244:1: + TIMER_ABSTIME = 0x1 // time_impl.h:134:1: + TIMER_RELTIME = 0x0 // time_impl.h:133:1: + TIME_UTC = 0x1 // time.h:306:1: + X_ALIGNMENT_REQUIRED = 1 // isa_defs.h:262:1: + X_BIT_FIELDS_LTOH = 0 // isa_defs.h:245:1: + X_BOOL_ALIGNMENT = 1 // isa_defs.h:248:1: + X_CHAR_ALIGNMENT = 1 // isa_defs.h:249:1: + X_CHAR_IS_SIGNED = 0 // isa_defs.h:247:1: + X_CLOCKID_T = 0 // types.h:568:1: + X_CLOCK_T = 0 // types.h:563:1: + X_COND_MAGIC = 0x4356 // types.h:426:1: + X_DMA_USES_PHYSADDR = 0 // isa_defs.h:281:1: + X_DONT_USE_1275_GENERIC_NAMES = 0 // isa_defs.h:287:1: + X_DOUBLE_ALIGNMENT = 8 // isa_defs.h:256:1: + X_DOUBLE_COMPLEX_ALIGNMENT = 8 // isa_defs.h:257:1: + X_DTRACE_VERSION = 1 // feature_tests.h:490:1: + X_FILE_OFFSET_BITS = 64 // :25:1: + X_FIRMWARE_NEEDS_FDISK = 0 // isa_defs.h:282:1: + X_FLOAT_ALIGNMENT = 4 // isa_defs.h:252:1: + X_FLOAT_COMPLEX_ALIGNMENT = 4 // isa_defs.h:253:1: + X_HAVE_CPUID_INSN = 0 // isa_defs.h:288:1: + X_IEEE_754 = 0 // isa_defs.h:246:1: + X_INT64_TYPE = 0 // int_types.h:82:1: + X_INT_ALIGNMENT = 4 // isa_defs.h:251:1: + X_ISO_CPP_14882_1998 = 0 // feature_tests.h:466:1: + X_ISO_C_9899_1999 = 0 // feature_tests.h:472:1: + X_ISO_C_9899_2011 = 0 // feature_tests.h:478:1: + X_ISO_TIME_ISO_H = 0 // time_iso.h:46:1: + X_LARGEFILE64_SOURCE = 1 // feature_tests.h:231:1: + X_LARGEFILE_SOURCE = 1 // feature_tests.h:235:1: + X_LITTLE_ENDIAN = 0 // isa_defs.h:242:1: + X_LOCALE_T = 0 // time.h:291:1: + X_LONGLONG_TYPE = 0 // feature_tests.h:412:1: + X_LONG_ALIGNMENT = 8 // isa_defs.h:254:1: + X_LONG_DOUBLE_ALIGNMENT = 16 // isa_defs.h:258:1: + X_LONG_DOUBLE_COMPLEX_ALIGNMENT = 16 // isa_defs.h:259:1: + X_LONG_LONG_ALIGNMENT = 8 // isa_defs.h:255:1: + X_LONG_LONG_ALIGNMENT_32 = 4 // isa_defs.h:268:1: + X_LONG_LONG_LTOH = 0 // isa_defs.h:244:1: + X_LP64 = 1 // :286:1: + X_MAX_ALIGNMENT = 16 // isa_defs.h:261:1: + X_MULTI_DATAMODEL = 0 // isa_defs.h:279:1: + X_MUTEX_MAGIC = 0x4d58 // types.h:424:1: + X_NBBY = 8 // select.h:100:1: + X_NORETURN_KYWD = 0 // feature_tests.h:448:1: + X_OFF_T = 0 // types.h:142:1: + X_POINTER_ALIGNMENT = 8 // isa_defs.h:260:1: + X_PSM_MODULES = 0 // isa_defs.h:284:1: + X_PTHREAD_H = 0 // pthread.h:32:1: + X_PTRDIFF_T = 0 // types.h:112:1: + X_RESTRICT_KYWD = 0 // feature_tests.h:435:1: + X_RTC_CONFIG = 0 // isa_defs.h:285:1: + X_RWL_MAGIC = 0x5257 // types.h:427:1: + X_SCHED_H = 0 // sched.h:30:1: + X_SCHED_NEXT = 7 // sched.h:54:1: + X_SEMA_MAGIC = 0x534d // types.h:425:1: + X_SHORT_ALIGNMENT = 2 // isa_defs.h:250:1: + X_SIGEVENT = 0 // time.h:132:1: + X_SIGSET_T = 0 // select.h:73:1: + X_SIGVAL = 0 // time.h:124:1: + X_SIZE_T = 0 // types.h:540:1: + X_SOFT_HOSTID = 0 // isa_defs.h:286:1: + X_SSIZE_T = 0 // types.h:549:1: + X_STACK_GROWS_DOWNWARD = 0 // isa_defs.h:243:1: + X_STDC_C11 = 0 // feature_tests.h:165:1: + X_STDC_C99 = 0 // feature_tests.h:169:1: + X_SUNOS_VTOC_16 = 0 // isa_defs.h:280:1: + X_SUSECONDS_T = 0 // types.h:343:1: + X_SYS_CCOMPILE_H = 0 // ccompile.h:32:1: + X_SYS_FEATURE_TESTS_H = 0 // feature_tests.h:41:1: + X_SYS_INT_TYPES_H = 0 // int_types.h:30:1: + X_SYS_ISA_DEFS_H = 0 // isa_defs.h:30:1: + X_SYS_MACHTYPES_H = 0 // machtypes.h:27:1: + X_SYS_NULL_H = 0 // null.h:17:1: + X_SYS_SELECT_H = 0 // select.h:45:1: + X_SYS_TIME_H = 0 // time.h:27:1: + X_SYS_TIME_IMPL_H = 0 // time_impl.h:38:1: + X_SYS_TYPES_H = 0 // types.h:35:1: + X_TIMER_T = 0 // types.h:573:1: + X_TIME_H = 0 // time.h:37:1: + X_TIME_T = 0 // types.h:558:1: + X_UID_T = 0 // types.h:400:1: + X_XOPEN_VERSION = 3 // feature_tests.h:392:1: + Sun = 1 // :172:1: + Unix = 1 // :175:1: +) + +// used for block sizes + +// The boolean_t type has had a varied amount of exposure over the years in +// terms of how its enumeration constants have been exposed. In particular, it +// originally used the __XOPEN_OR_POSIX macro to determine whether to prefix the +// B_TRUE and B_FALSE with an underscore. This check never included the +// question of if we were in a strict ANSI C environment or whether extensions +// were defined. +// +// Compilers such as clang started defaulting to always including an +// XOPEN_SOURCE declaration on behalf of users, but also noted __EXTENSIONS__. +// This would lead most software that had used the non-underscore versions to +// need it. As such, we have adjusted the non-strict XOPEN environment to retain +// its old behavior so as to minimize namespace pollution; however, we instead +// include both variants of the definitions in the generally visible version +// allowing software written in either world to hopefully end up in a good +// place. +// +// This isn't perfect, but should hopefully minimize the pain for folks actually +// trying to build software. +const ( /* types.h:215:1: */ + B_FALSE = 0 + B_TRUE = 1 + X_B_FALSE = 0 + X_B_TRUE = 1 +) + +type Ptrdiff_t = int64 /* :3:26 */ + +type Size_t = uint64 /* :9:23 */ + +type Wchar_t = int32 /* :15:24 */ + +type X__int128_t = struct { + Flo int64 + Fhi int64 +} /* :21:43 */ // must match modernc.org/mathutil.Int128 +type X__uint128_t = struct { + Flo uint64 + Fhi uint64 +} /* :22:44 */ // must match modernc.org/mathutil.Int128 + +type X__builtin_va_list = uintptr /* :46:14 */ +type X__float128 = float64 /* :47:21 */ + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2014 Garrett D'Amore +// Copyright 2018 Joyent, Inc. +// Copyright 2022 OmniOS Community Edition (OmniOSce) Association. +// +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2015 EveryCity Ltd. All rights reserved. +// Copyright 2019 Joyent, Inc. + +// This file contains definitions designed to enable different compilers +// to be used harmoniously on Solaris systems. + +// Allow for version tests for compiler bugs and features. + +// analogous to lint's PRINTFLIKEn + +// Handle the kernel printf routines that can take '%b' too + +// This one's pretty obvious -- the function never returns + +// The function is 'extern inline' and expects GNU C89 behaviour, not C99 +// behaviour. +// +// Should only be used on 'extern inline' definitions for GCC. + +// The function has control flow such that it may return multiple times (in +// the manner of setjmp or vfork) + +// This is an appropriate label for functions that do not +// modify their arguments, e.g. strlen() + +// This is a stronger form of __pure__. Can be used for functions +// that do not modify their arguments and don't depend on global +// memory. + +// This attribute, attached to a variable, means that the variable is meant to +// be possibly unused. GCC will not produce a warning for this variable. + +// Shorthand versions for readability + +// In release build, disable warnings about variables +// which are used only for debugging. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2016 Joyent, Inc. + +// This header file serves to group a set of well known defines and to +// set these for each instruction set architecture. These defines may +// be divided into two groups; characteristics of the processor and +// implementation choices for Solaris on a processor. +// +// Processor Characteristics: +// +// _LITTLE_ENDIAN / _BIG_ENDIAN: +// The natural byte order of the processor. A pointer to an int points +// to the least/most significant byte of that int. +// +// _STACK_GROWS_UPWARD / _STACK_GROWS_DOWNWARD: +// The processor specific direction of stack growth. A push onto the +// stack increases/decreases the stack pointer, so it stores data at +// successively higher/lower addresses. (Stackless machines ignored +// without regrets). +// +// _LONG_LONG_HTOL / _LONG_LONG_LTOH: +// A pointer to a long long points to the most/least significant long +// within that long long. +// +// _BIT_FIELDS_HTOL / _BIT_FIELDS_LTOH: +// The C compiler assigns bit fields from the high/low to the low/high end +// of an int (most to least significant vs. least to most significant). +// +// _IEEE_754: +// The processor (or supported implementations of the processor) +// supports the ieee-754 floating point standard. No other floating +// point standards are supported (or significant). Any other supported +// floating point formats are expected to be cased on the ISA processor +// symbol. +// +// _CHAR_IS_UNSIGNED / _CHAR_IS_SIGNED: +// The C Compiler implements objects of type `char' as `unsigned' or +// `signed' respectively. This is really an implementation choice of +// the compiler writer, but it is specified in the ABI and tends to +// be uniform across compilers for an instruction set architecture. +// Hence, it has the properties of a processor characteristic. +// +// _CHAR_ALIGNMENT / _SHORT_ALIGNMENT / _INT_ALIGNMENT / _LONG_ALIGNMENT / +// _LONG_LONG_ALIGNMENT / _DOUBLE_ALIGNMENT / _LONG_DOUBLE_ALIGNMENT / +// _POINTER_ALIGNMENT / _FLOAT_ALIGNMENT: +// The ABI defines alignment requirements of each of the primitive +// object types. Some, if not all, may be hardware requirements as +// well. The values are expressed in "byte-alignment" units. +// +// _MAX_ALIGNMENT: +// The most stringent alignment requirement as specified by the ABI. +// Equal to the maximum of all the above _XXX_ALIGNMENT values. +// +// _MAX_ALIGNMENT_TYPE: +// The name of the C type that has the value descried in _MAX_ALIGNMENT. +// +// _ALIGNMENT_REQUIRED: +// True or false (1 or 0) whether or not the hardware requires the ABI +// alignment. +// +// _LONG_LONG_ALIGNMENT_32 +// The 32-bit ABI supported by a 64-bit kernel may have different +// alignment requirements for primitive object types. The value of this +// identifier is expressed in "byte-alignment" units. +// +// _HAVE_CPUID_INSN +// This indicates that the architecture supports the 'cpuid' +// instruction as defined by Intel. (Intel allows other vendors +// to extend the instruction for their own purposes.) +// +// +// Implementation Choices: +// +// _ILP32 / _LP64: +// This specifies the compiler data type implementation as specified in +// the relevant ABI. The choice between these is strongly influenced +// by the underlying hardware, but is not absolutely tied to it. +// Currently only two data type models are supported: +// +// _ILP32: +// Int/Long/Pointer are 32 bits. This is the historical UNIX +// and Solaris implementation. Due to its historical standing, +// this is the default case. +// +// _LP64: +// Long/Pointer are 64 bits, Int is 32 bits. This is the chosen +// implementation for 64-bit ABIs such as SPARC V9. +// +// _I32LPx: +// A compilation environment where 'int' is 32-bit, and +// longs and pointers are simply the same size. +// +// In all cases, Char is 8 bits and Short is 16 bits. +// +// _SUNOS_VTOC_8 / _SUNOS_VTOC_16 / _SVR4_VTOC_16: +// This specifies the form of the disk VTOC (or label): +// +// _SUNOS_VTOC_8: +// This is a VTOC form which is upwardly compatible with the +// SunOS 4.x disk label and allows 8 partitions per disk. +// +// _SUNOS_VTOC_16: +// In this format the incore vtoc image matches the ondisk +// version. It allows 16 slices per disk, and is not +// compatible with the SunOS 4.x disk label. +// +// Note that these are not the only two VTOC forms possible and +// additional forms may be added. One possible form would be the +// SVr4 VTOC form. The symbol for that is reserved now, although +// it is not implemented. +// +// _SVR4_VTOC_16: +// This VTOC form is compatible with the System V Release 4 +// VTOC (as implemented on the SVr4 Intel and 3b ports) with +// 16 partitions per disk. +// +// +// _DMA_USES_PHYSADDR / _DMA_USES_VIRTADDR +// This describes the type of addresses used by system DMA: +// +// _DMA_USES_PHYSADDR: +// This type of DMA, used in the x86 implementation, +// requires physical addresses for DMA buffers. The 24-bit +// addresses used by some legacy boards is the source of the +// "low-memory" (<16MB) requirement for some devices using DMA. +// +// _DMA_USES_VIRTADDR: +// This method of DMA allows the use of virtual addresses for +// DMA transfers. +// +// _FIRMWARE_NEEDS_FDISK / _NO_FDISK_PRESENT +// This indicates the presence/absence of an fdisk table. +// +// _FIRMWARE_NEEDS_FDISK +// The fdisk table is required by system firmware. If present, +// it allows a disk to be subdivided into multiple fdisk +// partitions, each of which is equivalent to a separate, +// virtual disk. This enables the co-existence of multiple +// operating systems on a shared hard disk. +// +// _NO_FDISK_PRESENT +// If the fdisk table is absent, it is assumed that the entire +// media is allocated for a single operating system. +// +// _HAVE_TEM_FIRMWARE +// Defined if this architecture has the (fallback) option of +// using prom_* calls for doing I/O if a suitable kernel driver +// is not available to do it. +// +// _DONT_USE_1275_GENERIC_NAMES +// Controls whether or not device tree node names should +// comply with the IEEE 1275 "Generic Names" Recommended +// Practice. With _DONT_USE_GENERIC_NAMES, device-specific +// names identifying the particular device will be used. +// +// __i386_COMPAT +// This indicates whether the i386 ABI is supported as a *non-native* +// mode for the platform. When this symbol is defined: +// - 32-bit xstat-style system calls are enabled +// - 32-bit xmknod-style system calls are enabled +// - 32-bit system calls use i386 sizes -and- alignments +// +// Note that this is NOT defined for the i386 native environment! +// +// __x86 +// This is ONLY a synonym for defined(__i386) || defined(__amd64) +// which is useful only insofar as these two architectures share +// common attributes. Analogous to __sparc. +// +// _PSM_MODULES +// This indicates whether or not the implementation uses PSM +// modules for processor support, reading /etc/mach from inside +// the kernel to extract a list. +// +// _RTC_CONFIG +// This indicates whether or not the implementation uses /etc/rtc_config +// to configure the real-time clock in the kernel. +// +// _UNIX_KRTLD +// This indicates that the implementation uses a dynamically +// linked unix + krtld to form the core kernel image at boot +// time, or (in the absence of this symbol) a prelinked kernel image. +// +// _OBP +// This indicates the firmware interface is OBP. +// +// _SOFT_HOSTID +// This indicates that the implementation obtains the hostid +// from the file /etc/hostid, rather than from hardware. + +// The following set of definitions characterize Solaris on AMD's +// 64-bit systems. + +// Define the appropriate "processor characteristics" + +// Different alignment constraints for the i386 ABI in compatibility mode + +// Define the appropriate "implementation choices". + +// The feature test macro __i386 is generic for all processors implementing +// the Intel 386 instruction set or a superset of it. Specifically, this +// includes all members of the 386, 486, and Pentium family of processors. + +// Values of _POSIX_C_SOURCE +// +// undefined not a POSIX compilation +// 1 POSIX.1-1990 compilation +// 2 POSIX.2-1992 compilation +// 199309L POSIX.1b-1993 compilation (Real Time) +// 199506L POSIX.1c-1995 compilation (POSIX Threads) +// 200112L POSIX.1-2001 compilation (Austin Group Revision) +// 200809L POSIX.1-2008 compilation + +// The feature test macros __XOPEN_OR_POSIX, _STRICT_STDC, _STRICT_SYMBOLS, +// and _STDC_C99 are Sun implementation specific macros created in order to +// compress common standards specified feature test macros for easier reading. +// These macros should not be used by the application developer as +// unexpected results may occur. Instead, the user should reference +// standards(7) for correct usage of the standards feature test macros. +// +// __XOPEN_OR_POSIX Used in cases where a symbol is defined by both +// X/Open or POSIX or in the negative, when neither +// X/Open or POSIX defines a symbol. +// +// _STRICT_STDC __STDC__ is specified by the C Standards and defined +// by the compiler. For Sun compilers the value of +// __STDC__ is either 1, 0, or not defined based on the +// compilation mode (see cc(1)). When the value of +// __STDC__ is 1 and in the absence of any other feature +// test macros, the namespace available to the application +// is limited to only those symbols defined by the C +// Standard. _STRICT_STDC provides a more readable means +// of identifying symbols defined by the standard, or in +// the negative, symbols that are extensions to the C +// Standard. See additional comments for GNU C differences. +// +// _STDC_C99 __STDC_VERSION__ is specified by the C standards and +// defined by the compiler and indicates the version of +// the C standard. A value of 199901L indicates a +// compiler that complies with ISO/IEC 9899:1999, other- +// wise known as the C99 standard. +// +// _STDC_C11 Like _STDC_C99 except that the value of __STDC_VERSION__ +// is 201112L indicating a compiler that compiles with +// ISO/IEC 9899:2011, otherwise known as the C11 standard. +// +// _STRICT_SYMBOLS Used in cases where symbol visibility is restricted +// by the standards, and the user has not explicitly +// relaxed the strictness via __EXTENSIONS__. + +// ISO/IEC 9899:1990 and it's revisions, ISO/IEC 9899:1999 and ISO/IEC +// 99899:2011 specify the following predefined macro name: +// +// __STDC__ The integer constant 1, intended to indicate a conforming +// implementation. +// +// Furthermore, a strictly conforming program shall use only those features +// of the language and library specified in these standards. A conforming +// implementation shall accept any strictly conforming program. +// +// Based on these requirements, Sun's C compiler defines __STDC__ to 1 for +// strictly conforming environments and __STDC__ to 0 for environments that +// use ANSI C semantics but allow extensions to the C standard. For non-ANSI +// C semantics, Sun's C compiler does not define __STDC__. +// +// The GNU C project interpretation is that __STDC__ should always be defined +// to 1 for compilation modes that accept ANSI C syntax regardless of whether +// or not extensions to the C standard are used. Violations of conforming +// behavior are conditionally flagged as warnings via the use of the +// -pedantic option. In addition to defining __STDC__ to 1, the GNU C +// compiler also defines __STRICT_ANSI__ as a means of specifying strictly +// conforming environments using the -ansi or -std= options. +// +// In the absence of any other compiler options, Sun and GNU set the value +// of __STDC__ as follows when using the following options: +// +// Value of __STDC__ __STRICT_ANSI__ +// +// cc -Xa (default) 0 undefined +// cc -Xt (transitional) 0 undefined +// cc -Xc (strictly conforming) 1 undefined +// cc -Xs (K&R C) undefined undefined +// +// gcc (default) 1 undefined +// gcc -ansi, -std={c89, c99,...) 1 defined +// gcc -traditional (K&R) undefined undefined +// +// The default compilation modes for Sun C compilers versus GNU C compilers +// results in a differing value for __STDC__ which results in a more +// restricted namespace when using Sun compilers. To allow both GNU and Sun +// interpretations to peacefully co-exist, we use the following Sun +// implementation _STRICT_STDC_ macro: + +// Compiler complies with ISO/IEC 9899:1999 or ISO/IEC 9989:2011 + +// Use strict symbol visibility. + +// This is a variant of _STRICT_SYMBOLS that is meant to cover headers that are +// governed by POSIX, but have not been governed by ISO C. One can go two ways +// on what should happen if an application actively includes (not transitively) +// a header that isn't part of the ISO C spec, we opt to say that if someone has +// gone out of there way then they're doing it for a reason and that is an act +// of non-compliance and therefore it's not up to us to hide away every symbol. +// +// In general, prefer using _STRICT_SYMBOLS, but this is here in particular for +// cases where in the past we have only used a POSIX related check and we don't +// wish to make something stricter. Often applications are relying on the +// ability to, or more realistically unwittingly, have _STRICT_STDC declared and +// still use these interfaces. + +// Large file interfaces: +// +// _LARGEFILE_SOURCE +// 1 large file-related additions to POSIX +// interfaces requested (fseeko, etc.) +// _LARGEFILE64_SOURCE +// 1 transitional large-file-related interfaces +// requested (seek64, stat64, etc.) +// +// The corresponding announcement macros are respectively: +// _LFS_LARGEFILE +// _LFS64_LARGEFILE +// (These are set in .) +// +// Requesting _LARGEFILE64_SOURCE implies requesting _LARGEFILE_SOURCE as +// well. +// +// The large file interfaces are made visible regardless of the initial values +// of the feature test macros under certain circumstances: +// - If no explicit standards-conforming environment is requested (neither +// of _POSIX_SOURCE nor _XOPEN_SOURCE is defined and the value of +// __STDC__ does not imply standards conformance). +// - Extended system interfaces are explicitly requested (__EXTENSIONS__ +// is defined). +// - Access to in-kernel interfaces is requested (_KERNEL or _KMEMUSER is +// defined). (Note that this dependency is an artifact of the current +// kernel implementation and may change in future releases.) + +// Large file compilation environment control: +// +// The setting of _FILE_OFFSET_BITS controls the size of various file-related +// types and governs the mapping between file-related source function symbol +// names and the corresponding binary entry points. +// +// In the 32-bit environment, the default value is 32; if not set, set it to +// the default here, to simplify tests in other headers. +// +// In the 64-bit compilation environment, the only value allowed is 64. + +// Use of _XOPEN_SOURCE +// +// The following X/Open specifications are supported: +// +// X/Open Portability Guide, Issue 3 (XPG3) +// X/Open CAE Specification, Issue 4 (XPG4) +// X/Open CAE Specification, Issue 4, Version 2 (XPG4v2) +// X/Open CAE Specification, Issue 5 (XPG5) +// Open Group Technical Standard, Issue 6 (XPG6), also referred to as +// IEEE Std. 1003.1-2001 and ISO/IEC 9945:2002. +// Open Group Technical Standard, Issue 7 (XPG7), also referred to as +// IEEE Std. 1003.1-2008 and ISO/IEC 9945:2009. +// +// XPG4v2 is also referred to as UNIX 95 (SUS or SUSv1). +// XPG5 is also referred to as UNIX 98 or the Single Unix Specification, +// Version 2 (SUSv2) +// XPG6 is the result of a merge of the X/Open and POSIX specifications +// and as such is also referred to as IEEE Std. 1003.1-2001 in +// addition to UNIX 03 and SUSv3. +// XPG7 is also referred to as UNIX 08 and SUSv4. +// +// When writing a conforming X/Open application, as per the specification +// requirements, the appropriate feature test macros must be defined at +// compile time. These are as follows. For more info, see standards(7). +// +// Feature Test Macro Specification +// ------------------------------------------------ ------------- +// _XOPEN_SOURCE XPG3 +// _XOPEN_SOURCE && _XOPEN_VERSION = 4 XPG4 +// _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED = 1 XPG4v2 +// _XOPEN_SOURCE = 500 XPG5 +// _XOPEN_SOURCE = 600 (or POSIX_C_SOURCE=200112L) XPG6 +// _XOPEN_SOURCE = 700 (or POSIX_C_SOURCE=200809L) XPG7 +// +// In order to simplify the guards within the headers, the following +// implementation private test macros have been created. Applications +// must NOT use these private test macros as unexpected results will +// occur. +// +// Note that in general, the use of these private macros is cumulative. +// For example, the use of _XPG3 with no other restrictions on the X/Open +// namespace will make the symbols visible for XPG3 through XPG6 +// compilation environments. The use of _XPG4_2 with no other X/Open +// namespace restrictions indicates that the symbols were introduced in +// XPG4v2 and are therefore visible for XPG4v2 through XPG6 compilation +// environments, but not for XPG3 or XPG4 compilation environments. +// +// _XPG3 X/Open Portability Guide, Issue 3 (XPG3) +// _XPG4 X/Open CAE Specification, Issue 4 (XPG4) +// _XPG4_2 X/Open CAE Specification, Issue 4, Version 2 (XPG4v2/UNIX 95/SUS) +// _XPG5 X/Open CAE Specification, Issue 5 (XPG5/UNIX 98/SUSv2) +// _XPG6 Open Group Technical Standard, Issue 6 (XPG6/UNIX 03/SUSv3) +// _XPG7 Open Group Technical Standard, Issue 7 (XPG7/UNIX 08/SUSv4) + +// X/Open Portability Guide, Issue 3 + +// _XOPEN_VERSION is defined by the X/Open specifications and is not +// normally defined by the application, except in the case of an XPG4 +// application. On the implementation side, _XOPEN_VERSION defined with +// the value of 3 indicates an XPG3 application. _XOPEN_VERSION defined +// with the value of 4 indicates an XPG4 or XPG4v2 (UNIX 95) application. +// _XOPEN_VERSION defined with a value of 500 indicates an XPG5 (UNIX 98) +// application and with a value of 600 indicates an XPG6 (UNIX 03) +// application and with a value of 700 indicates an XPG7 (UNIX 08). +// The appropriate version is determined by the use of the +// feature test macros described earlier. The value of _XOPEN_VERSION +// defaults to 3 otherwise indicating support for XPG3 applications. + +// ANSI C and ISO 9899:1990 say the type long long doesn't exist in strictly +// conforming environments. ISO 9899:1999 says it does. +// +// The presence of _LONGLONG_TYPE says "long long exists" which is therefore +// defined in all but strictly conforming environments that disallow it. + +// The following macro defines a value for the ISO C99 restrict +// keyword so that _RESTRICT_KYWD resolves to "restrict" if +// an ISO C99 compiler is used, "__restrict" for c++ and "" (null string) +// if any other compiler is used. This allows for the use of single +// prototype declarations regardless of compiler version. + +// The following macro defines a value for the ISO C11 _Noreturn +// keyword so that _NORETURN_KYWD resolves to "_Noreturn" if +// an ISO C11 compiler is used and "" (null string) if any other +// compiler is used. This allows for the use of single prototype +// declarations regardless of compiler version. + +// ISO/IEC 9899:2011 Annex K + +// The following macro indicates header support for the ANSI C++ +// standard. The ISO/IEC designation for this is ISO/IEC FDIS 14882. + +// The following macro indicates header support for the C99 standard, +// ISO/IEC 9899:1999, Programming Languages - C. + +// The following macro indicates header support for the C11 standard, +// ISO/IEC 9899:2011, Programming Languages - C. + +// The following macro indicates header support for the C11 standard, +// ISO/IEC 9899:2011 Annex K, Programming Languages - C. + +// The following macro indicates header support for DTrace. The value is an +// integer that corresponds to the major version number for DTrace. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2021 Oxide Computer Company + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2016 Joyent, Inc. + +// Machine dependent definitions moved to . +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2007 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Machine dependent types: +// +// intel ia32 Version + +type X_label_t = struct{ Fval [8]int64 } /* machtypes.h:59:9 */ + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2014 Garrett D'Amore +// Copyright 2018 Joyent, Inc. +// Copyright 2022 OmniOS Community Edition (OmniOSce) Association. +// +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2015 EveryCity Ltd. All rights reserved. +// Copyright 2019 Joyent, Inc. + +// This file contains definitions designed to enable different compilers +// to be used harmoniously on Solaris systems. + +// Allow for version tests for compiler bugs and features. + +// analogous to lint's PRINTFLIKEn + +// Handle the kernel printf routines that can take '%b' too + +// This one's pretty obvious -- the function never returns + +// The function is 'extern inline' and expects GNU C89 behaviour, not C99 +// behaviour. +// +// Should only be used on 'extern inline' definitions for GCC. + +// The function has control flow such that it may return multiple times (in +// the manner of setjmp or vfork) + +// This is an appropriate label for functions that do not +// modify their arguments, e.g. strlen() + +// This is a stronger form of __pure__. Can be used for functions +// that do not modify their arguments and don't depend on global +// memory. + +// This attribute, attached to a variable, means that the variable is meant to +// be possibly unused. GCC will not produce a warning for this variable. + +// Shorthand versions for readability + +// In release build, disable warnings about variables +// which are used only for debugging. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2016 Joyent, Inc. + +// This header file serves to group a set of well known defines and to +// set these for each instruction set architecture. These defines may +// be divided into two groups; characteristics of the processor and +// implementation choices for Solaris on a processor. +// +// Processor Characteristics: +// +// _LITTLE_ENDIAN / _BIG_ENDIAN: +// The natural byte order of the processor. A pointer to an int points +// to the least/most significant byte of that int. +// +// _STACK_GROWS_UPWARD / _STACK_GROWS_DOWNWARD: +// The processor specific direction of stack growth. A push onto the +// stack increases/decreases the stack pointer, so it stores data at +// successively higher/lower addresses. (Stackless machines ignored +// without regrets). +// +// _LONG_LONG_HTOL / _LONG_LONG_LTOH: +// A pointer to a long long points to the most/least significant long +// within that long long. +// +// _BIT_FIELDS_HTOL / _BIT_FIELDS_LTOH: +// The C compiler assigns bit fields from the high/low to the low/high end +// of an int (most to least significant vs. least to most significant). +// +// _IEEE_754: +// The processor (or supported implementations of the processor) +// supports the ieee-754 floating point standard. No other floating +// point standards are supported (or significant). Any other supported +// floating point formats are expected to be cased on the ISA processor +// symbol. +// +// _CHAR_IS_UNSIGNED / _CHAR_IS_SIGNED: +// The C Compiler implements objects of type `char' as `unsigned' or +// `signed' respectively. This is really an implementation choice of +// the compiler writer, but it is specified in the ABI and tends to +// be uniform across compilers for an instruction set architecture. +// Hence, it has the properties of a processor characteristic. +// +// _CHAR_ALIGNMENT / _SHORT_ALIGNMENT / _INT_ALIGNMENT / _LONG_ALIGNMENT / +// _LONG_LONG_ALIGNMENT / _DOUBLE_ALIGNMENT / _LONG_DOUBLE_ALIGNMENT / +// _POINTER_ALIGNMENT / _FLOAT_ALIGNMENT: +// The ABI defines alignment requirements of each of the primitive +// object types. Some, if not all, may be hardware requirements as +// well. The values are expressed in "byte-alignment" units. +// +// _MAX_ALIGNMENT: +// The most stringent alignment requirement as specified by the ABI. +// Equal to the maximum of all the above _XXX_ALIGNMENT values. +// +// _MAX_ALIGNMENT_TYPE: +// The name of the C type that has the value descried in _MAX_ALIGNMENT. +// +// _ALIGNMENT_REQUIRED: +// True or false (1 or 0) whether or not the hardware requires the ABI +// alignment. +// +// _LONG_LONG_ALIGNMENT_32 +// The 32-bit ABI supported by a 64-bit kernel may have different +// alignment requirements for primitive object types. The value of this +// identifier is expressed in "byte-alignment" units. +// +// _HAVE_CPUID_INSN +// This indicates that the architecture supports the 'cpuid' +// instruction as defined by Intel. (Intel allows other vendors +// to extend the instruction for their own purposes.) +// +// +// Implementation Choices: +// +// _ILP32 / _LP64: +// This specifies the compiler data type implementation as specified in +// the relevant ABI. The choice between these is strongly influenced +// by the underlying hardware, but is not absolutely tied to it. +// Currently only two data type models are supported: +// +// _ILP32: +// Int/Long/Pointer are 32 bits. This is the historical UNIX +// and Solaris implementation. Due to its historical standing, +// this is the default case. +// +// _LP64: +// Long/Pointer are 64 bits, Int is 32 bits. This is the chosen +// implementation for 64-bit ABIs such as SPARC V9. +// +// _I32LPx: +// A compilation environment where 'int' is 32-bit, and +// longs and pointers are simply the same size. +// +// In all cases, Char is 8 bits and Short is 16 bits. +// +// _SUNOS_VTOC_8 / _SUNOS_VTOC_16 / _SVR4_VTOC_16: +// This specifies the form of the disk VTOC (or label): +// +// _SUNOS_VTOC_8: +// This is a VTOC form which is upwardly compatible with the +// SunOS 4.x disk label and allows 8 partitions per disk. +// +// _SUNOS_VTOC_16: +// In this format the incore vtoc image matches the ondisk +// version. It allows 16 slices per disk, and is not +// compatible with the SunOS 4.x disk label. +// +// Note that these are not the only two VTOC forms possible and +// additional forms may be added. One possible form would be the +// SVr4 VTOC form. The symbol for that is reserved now, although +// it is not implemented. +// +// _SVR4_VTOC_16: +// This VTOC form is compatible with the System V Release 4 +// VTOC (as implemented on the SVr4 Intel and 3b ports) with +// 16 partitions per disk. +// +// +// _DMA_USES_PHYSADDR / _DMA_USES_VIRTADDR +// This describes the type of addresses used by system DMA: +// +// _DMA_USES_PHYSADDR: +// This type of DMA, used in the x86 implementation, +// requires physical addresses for DMA buffers. The 24-bit +// addresses used by some legacy boards is the source of the +// "low-memory" (<16MB) requirement for some devices using DMA. +// +// _DMA_USES_VIRTADDR: +// This method of DMA allows the use of virtual addresses for +// DMA transfers. +// +// _FIRMWARE_NEEDS_FDISK / _NO_FDISK_PRESENT +// This indicates the presence/absence of an fdisk table. +// +// _FIRMWARE_NEEDS_FDISK +// The fdisk table is required by system firmware. If present, +// it allows a disk to be subdivided into multiple fdisk +// partitions, each of which is equivalent to a separate, +// virtual disk. This enables the co-existence of multiple +// operating systems on a shared hard disk. +// +// _NO_FDISK_PRESENT +// If the fdisk table is absent, it is assumed that the entire +// media is allocated for a single operating system. +// +// _HAVE_TEM_FIRMWARE +// Defined if this architecture has the (fallback) option of +// using prom_* calls for doing I/O if a suitable kernel driver +// is not available to do it. +// +// _DONT_USE_1275_GENERIC_NAMES +// Controls whether or not device tree node names should +// comply with the IEEE 1275 "Generic Names" Recommended +// Practice. With _DONT_USE_GENERIC_NAMES, device-specific +// names identifying the particular device will be used. +// +// __i386_COMPAT +// This indicates whether the i386 ABI is supported as a *non-native* +// mode for the platform. When this symbol is defined: +// - 32-bit xstat-style system calls are enabled +// - 32-bit xmknod-style system calls are enabled +// - 32-bit system calls use i386 sizes -and- alignments +// +// Note that this is NOT defined for the i386 native environment! +// +// __x86 +// This is ONLY a synonym for defined(__i386) || defined(__amd64) +// which is useful only insofar as these two architectures share +// common attributes. Analogous to __sparc. +// +// _PSM_MODULES +// This indicates whether or not the implementation uses PSM +// modules for processor support, reading /etc/mach from inside +// the kernel to extract a list. +// +// _RTC_CONFIG +// This indicates whether or not the implementation uses /etc/rtc_config +// to configure the real-time clock in the kernel. +// +// _UNIX_KRTLD +// This indicates that the implementation uses a dynamically +// linked unix + krtld to form the core kernel image at boot +// time, or (in the absence of this symbol) a prelinked kernel image. +// +// _OBP +// This indicates the firmware interface is OBP. +// +// _SOFT_HOSTID +// This indicates that the implementation obtains the hostid +// from the file /etc/hostid, rather than from hardware. + +// The following set of definitions characterize Solaris on AMD's +// 64-bit systems. + +// Define the appropriate "processor characteristics" + +// Different alignment constraints for the i386 ABI in compatibility mode + +// Define the appropriate "implementation choices". + +// The feature test macro __i386 is generic for all processors implementing +// the Intel 386 instruction set or a superset of it. Specifically, this +// includes all members of the 386, 486, and Pentium family of processors. + +// Values of _POSIX_C_SOURCE +// +// undefined not a POSIX compilation +// 1 POSIX.1-1990 compilation +// 2 POSIX.2-1992 compilation +// 199309L POSIX.1b-1993 compilation (Real Time) +// 199506L POSIX.1c-1995 compilation (POSIX Threads) +// 200112L POSIX.1-2001 compilation (Austin Group Revision) +// 200809L POSIX.1-2008 compilation + +// The feature test macros __XOPEN_OR_POSIX, _STRICT_STDC, _STRICT_SYMBOLS, +// and _STDC_C99 are Sun implementation specific macros created in order to +// compress common standards specified feature test macros for easier reading. +// These macros should not be used by the application developer as +// unexpected results may occur. Instead, the user should reference +// standards(7) for correct usage of the standards feature test macros. +// +// __XOPEN_OR_POSIX Used in cases where a symbol is defined by both +// X/Open or POSIX or in the negative, when neither +// X/Open or POSIX defines a symbol. +// +// _STRICT_STDC __STDC__ is specified by the C Standards and defined +// by the compiler. For Sun compilers the value of +// __STDC__ is either 1, 0, or not defined based on the +// compilation mode (see cc(1)). When the value of +// __STDC__ is 1 and in the absence of any other feature +// test macros, the namespace available to the application +// is limited to only those symbols defined by the C +// Standard. _STRICT_STDC provides a more readable means +// of identifying symbols defined by the standard, or in +// the negative, symbols that are extensions to the C +// Standard. See additional comments for GNU C differences. +// +// _STDC_C99 __STDC_VERSION__ is specified by the C standards and +// defined by the compiler and indicates the version of +// the C standard. A value of 199901L indicates a +// compiler that complies with ISO/IEC 9899:1999, other- +// wise known as the C99 standard. +// +// _STDC_C11 Like _STDC_C99 except that the value of __STDC_VERSION__ +// is 201112L indicating a compiler that compiles with +// ISO/IEC 9899:2011, otherwise known as the C11 standard. +// +// _STRICT_SYMBOLS Used in cases where symbol visibility is restricted +// by the standards, and the user has not explicitly +// relaxed the strictness via __EXTENSIONS__. + +// ISO/IEC 9899:1990 and it's revisions, ISO/IEC 9899:1999 and ISO/IEC +// 99899:2011 specify the following predefined macro name: +// +// __STDC__ The integer constant 1, intended to indicate a conforming +// implementation. +// +// Furthermore, a strictly conforming program shall use only those features +// of the language and library specified in these standards. A conforming +// implementation shall accept any strictly conforming program. +// +// Based on these requirements, Sun's C compiler defines __STDC__ to 1 for +// strictly conforming environments and __STDC__ to 0 for environments that +// use ANSI C semantics but allow extensions to the C standard. For non-ANSI +// C semantics, Sun's C compiler does not define __STDC__. +// +// The GNU C project interpretation is that __STDC__ should always be defined +// to 1 for compilation modes that accept ANSI C syntax regardless of whether +// or not extensions to the C standard are used. Violations of conforming +// behavior are conditionally flagged as warnings via the use of the +// -pedantic option. In addition to defining __STDC__ to 1, the GNU C +// compiler also defines __STRICT_ANSI__ as a means of specifying strictly +// conforming environments using the -ansi or -std= options. +// +// In the absence of any other compiler options, Sun and GNU set the value +// of __STDC__ as follows when using the following options: +// +// Value of __STDC__ __STRICT_ANSI__ +// +// cc -Xa (default) 0 undefined +// cc -Xt (transitional) 0 undefined +// cc -Xc (strictly conforming) 1 undefined +// cc -Xs (K&R C) undefined undefined +// +// gcc (default) 1 undefined +// gcc -ansi, -std={c89, c99,...) 1 defined +// gcc -traditional (K&R) undefined undefined +// +// The default compilation modes for Sun C compilers versus GNU C compilers +// results in a differing value for __STDC__ which results in a more +// restricted namespace when using Sun compilers. To allow both GNU and Sun +// interpretations to peacefully co-exist, we use the following Sun +// implementation _STRICT_STDC_ macro: + +// Compiler complies with ISO/IEC 9899:1999 or ISO/IEC 9989:2011 + +// Use strict symbol visibility. + +// This is a variant of _STRICT_SYMBOLS that is meant to cover headers that are +// governed by POSIX, but have not been governed by ISO C. One can go two ways +// on what should happen if an application actively includes (not transitively) +// a header that isn't part of the ISO C spec, we opt to say that if someone has +// gone out of there way then they're doing it for a reason and that is an act +// of non-compliance and therefore it's not up to us to hide away every symbol. +// +// In general, prefer using _STRICT_SYMBOLS, but this is here in particular for +// cases where in the past we have only used a POSIX related check and we don't +// wish to make something stricter. Often applications are relying on the +// ability to, or more realistically unwittingly, have _STRICT_STDC declared and +// still use these interfaces. + +// Large file interfaces: +// +// _LARGEFILE_SOURCE +// 1 large file-related additions to POSIX +// interfaces requested (fseeko, etc.) +// _LARGEFILE64_SOURCE +// 1 transitional large-file-related interfaces +// requested (seek64, stat64, etc.) +// +// The corresponding announcement macros are respectively: +// _LFS_LARGEFILE +// _LFS64_LARGEFILE +// (These are set in .) +// +// Requesting _LARGEFILE64_SOURCE implies requesting _LARGEFILE_SOURCE as +// well. +// +// The large file interfaces are made visible regardless of the initial values +// of the feature test macros under certain circumstances: +// - If no explicit standards-conforming environment is requested (neither +// of _POSIX_SOURCE nor _XOPEN_SOURCE is defined and the value of +// __STDC__ does not imply standards conformance). +// - Extended system interfaces are explicitly requested (__EXTENSIONS__ +// is defined). +// - Access to in-kernel interfaces is requested (_KERNEL or _KMEMUSER is +// defined). (Note that this dependency is an artifact of the current +// kernel implementation and may change in future releases.) + +// Large file compilation environment control: +// +// The setting of _FILE_OFFSET_BITS controls the size of various file-related +// types and governs the mapping between file-related source function symbol +// names and the corresponding binary entry points. +// +// In the 32-bit environment, the default value is 32; if not set, set it to +// the default here, to simplify tests in other headers. +// +// In the 64-bit compilation environment, the only value allowed is 64. + +// Use of _XOPEN_SOURCE +// +// The following X/Open specifications are supported: +// +// X/Open Portability Guide, Issue 3 (XPG3) +// X/Open CAE Specification, Issue 4 (XPG4) +// X/Open CAE Specification, Issue 4, Version 2 (XPG4v2) +// X/Open CAE Specification, Issue 5 (XPG5) +// Open Group Technical Standard, Issue 6 (XPG6), also referred to as +// IEEE Std. 1003.1-2001 and ISO/IEC 9945:2002. +// Open Group Technical Standard, Issue 7 (XPG7), also referred to as +// IEEE Std. 1003.1-2008 and ISO/IEC 9945:2009. +// +// XPG4v2 is also referred to as UNIX 95 (SUS or SUSv1). +// XPG5 is also referred to as UNIX 98 or the Single Unix Specification, +// Version 2 (SUSv2) +// XPG6 is the result of a merge of the X/Open and POSIX specifications +// and as such is also referred to as IEEE Std. 1003.1-2001 in +// addition to UNIX 03 and SUSv3. +// XPG7 is also referred to as UNIX 08 and SUSv4. +// +// When writing a conforming X/Open application, as per the specification +// requirements, the appropriate feature test macros must be defined at +// compile time. These are as follows. For more info, see standards(7). +// +// Feature Test Macro Specification +// ------------------------------------------------ ------------- +// _XOPEN_SOURCE XPG3 +// _XOPEN_SOURCE && _XOPEN_VERSION = 4 XPG4 +// _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED = 1 XPG4v2 +// _XOPEN_SOURCE = 500 XPG5 +// _XOPEN_SOURCE = 600 (or POSIX_C_SOURCE=200112L) XPG6 +// _XOPEN_SOURCE = 700 (or POSIX_C_SOURCE=200809L) XPG7 +// +// In order to simplify the guards within the headers, the following +// implementation private test macros have been created. Applications +// must NOT use these private test macros as unexpected results will +// occur. +// +// Note that in general, the use of these private macros is cumulative. +// For example, the use of _XPG3 with no other restrictions on the X/Open +// namespace will make the symbols visible for XPG3 through XPG6 +// compilation environments. The use of _XPG4_2 with no other X/Open +// namespace restrictions indicates that the symbols were introduced in +// XPG4v2 and are therefore visible for XPG4v2 through XPG6 compilation +// environments, but not for XPG3 or XPG4 compilation environments. +// +// _XPG3 X/Open Portability Guide, Issue 3 (XPG3) +// _XPG4 X/Open CAE Specification, Issue 4 (XPG4) +// _XPG4_2 X/Open CAE Specification, Issue 4, Version 2 (XPG4v2/UNIX 95/SUS) +// _XPG5 X/Open CAE Specification, Issue 5 (XPG5/UNIX 98/SUSv2) +// _XPG6 Open Group Technical Standard, Issue 6 (XPG6/UNIX 03/SUSv3) +// _XPG7 Open Group Technical Standard, Issue 7 (XPG7/UNIX 08/SUSv4) + +// X/Open Portability Guide, Issue 3 + +// _XOPEN_VERSION is defined by the X/Open specifications and is not +// normally defined by the application, except in the case of an XPG4 +// application. On the implementation side, _XOPEN_VERSION defined with +// the value of 3 indicates an XPG3 application. _XOPEN_VERSION defined +// with the value of 4 indicates an XPG4 or XPG4v2 (UNIX 95) application. +// _XOPEN_VERSION defined with a value of 500 indicates an XPG5 (UNIX 98) +// application and with a value of 600 indicates an XPG6 (UNIX 03) +// application and with a value of 700 indicates an XPG7 (UNIX 08). +// The appropriate version is determined by the use of the +// feature test macros described earlier. The value of _XOPEN_VERSION +// defaults to 3 otherwise indicating support for XPG3 applications. + +// ANSI C and ISO 9899:1990 say the type long long doesn't exist in strictly +// conforming environments. ISO 9899:1999 says it does. +// +// The presence of _LONGLONG_TYPE says "long long exists" which is therefore +// defined in all but strictly conforming environments that disallow it. + +// The following macro defines a value for the ISO C99 restrict +// keyword so that _RESTRICT_KYWD resolves to "restrict" if +// an ISO C99 compiler is used, "__restrict" for c++ and "" (null string) +// if any other compiler is used. This allows for the use of single +// prototype declarations regardless of compiler version. + +// The following macro defines a value for the ISO C11 _Noreturn +// keyword so that _NORETURN_KYWD resolves to "_Noreturn" if +// an ISO C11 compiler is used and "" (null string) if any other +// compiler is used. This allows for the use of single prototype +// declarations regardless of compiler version. + +// ISO/IEC 9899:2011 Annex K + +// The following macro indicates header support for the ANSI C++ +// standard. The ISO/IEC designation for this is ISO/IEC FDIS 14882. + +// The following macro indicates header support for the C99 standard, +// ISO/IEC 9899:1999, Programming Languages - C. + +// The following macro indicates header support for the C11 standard, +// ISO/IEC 9899:2011, Programming Languages - C. + +// The following macro indicates header support for the C11 standard, +// ISO/IEC 9899:2011 Annex K, Programming Languages - C. + +// The following macro indicates header support for DTrace. The value is an +// integer that corresponds to the major version number for DTrace. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2021 Oxide Computer Company + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2016 Joyent, Inc. + +// Machine dependent definitions moved to . +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2007 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Machine dependent types: +// +// intel ia32 Version + +type Label_t = X_label_t /* machtypes.h:59:54 */ + +type Lock_t = uint8 /* machtypes.h:63:23 */ // lock work for busy wait + +// Include fixed width type declarations proposed by the ISO/JTC1/SC22/WG14 C +// committee's working draft for the revision of the current ISO C standard, +// ISO/IEC 9899:1990 Programming language - C. These are not currently +// required by any standard but constitute a useful, general purpose set +// of type definitions which is namespace clean with respect to all standards. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2014 Garrett D'Amore +// +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// This file, , is part of the Sun Microsystems implementation +// of defined in the ISO C standard, ISO/IEC 9899:1999 +// Programming language - C. +// +// Programs/Modules should not directly include this file. Access to the +// types defined in this file should be through the inclusion of one of the +// following files: +// +// Provides only the "_t" types defined in this +// file which is a subset of the contents of +// . (This can be appropriate for +// all programs/modules except those claiming +// ANSI-C conformance.) +// +// Provides the Kernel and Driver appropriate +// components of . +// +// For use by applications. +// +// See these files for more details. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Basic / Extended integer types +// +// The following defines the basic fixed-size integer types. +// +// Implementations are free to typedef them to Standard C integer types or +// extensions that they support. If an implementation does not support one +// of the particular integer data types below, then it should not define the +// typedefs and macros corresponding to that data type. Note that int8_t +// is not defined in -Xs mode on ISAs for which the ABI specifies "char" +// as an unsigned entity because there is no way to define an eight bit +// signed integral. +type Int8_t = int8 /* int_types.h:75:16 */ +type Int16_t = int16 /* int_types.h:79:17 */ +type Int32_t = int32 /* int_types.h:80:15 */ +type Int64_t = int64 /* int_types.h:83:16 */ + +type Uint8_t = uint8 /* int_types.h:91:24 */ +type Uint16_t = uint16 /* int_types.h:92:25 */ +type Uint32_t = uint32 /* int_types.h:93:23 */ +type Uint64_t = uint64 /* int_types.h:95:24 */ + +// intmax_t and uintmax_t are to be the longest (in number of bits) signed +// and unsigned integer types supported by the implementation. +type Intmax_t = int64 /* int_types.h:107:19 */ +type Uintmax_t = uint64 /* int_types.h:108:19 */ + +// intptr_t and uintptr_t are signed and unsigned integer types large enough +// to hold any data pointer; that is, data pointers can be assigned into or +// from these integer types without losing precision. +type Intptr_t = int64 /* int_types.h:120:16 */ +type Uintptr_t = uint64 /* int_types.h:121:24 */ + +// The following define the fastest integer types that can hold the +// specified number of bits. +type Int_fast8_t = int8 /* int_types.h:132:16 */ +type Int_fast16_t = int32 /* int_types.h:136:15 */ +type Int_fast32_t = int32 /* int_types.h:137:15 */ +type Int_fast64_t = int64 /* int_types.h:139:16 */ + +type Uint_fast8_t = uint8 /* int_types.h:146:24 */ +type Uint_fast16_t = uint32 /* int_types.h:147:23 */ +type Uint_fast32_t = uint32 /* int_types.h:148:23 */ +type Uint_fast64_t = uint64 /* int_types.h:150:24 */ + +// The following define the smallest integer types that can hold the +// specified number of bits. +type Int_least8_t = int8 /* int_types.h:162:16 */ +type Int_least16_t = int16 /* int_types.h:166:17 */ +type Int_least32_t = int32 /* int_types.h:167:15 */ +type Int_least64_t = int64 /* int_types.h:169:16 */ + +// If these are changed, please update char16_t and char32_t in head/uchar.h. +type Uint_least8_t = uint8 /* int_types.h:179:24 */ +type Uint_least16_t = uint16 /* int_types.h:180:25 */ +type Uint_least32_t = uint32 /* int_types.h:181:23 */ +type Uint_least64_t = uint64 /* int_types.h:183:24 */ + +// Strictly conforming ANSI C environments prior to the 1999 +// revision of the C Standard (ISO/IEC 9899:1999) do not have +// the long long data type. +type Longlong_t = int64 /* types.h:72:20 */ +type U_longlong_t = uint64 /* types.h:73:28 */ + +// These types (t_{u}scalar_t) exist because the XTI/TPI/DLPI standards had +// to use them instead of int32_t and uint32_t because DEC had +// shipped 64-bit wide. +type T_scalar_t = int32 /* types.h:92:18 */ +type T_uscalar_t = uint32 /* types.h:93:18 */ + +// POSIX Extensions +type Uchar_t = uint8 /* types.h:102:23 */ +type Ushort_t = uint16 /* types.h:103:24 */ +type Uint_t = uint32 /* types.h:104:22 */ +type Ulong_t = uint64 /* types.h:105:23 */ + +type Caddr_t = uintptr /* types.h:107:15 */ // ? type +type Daddr_t = int64 /* types.h:108:15 */ // type +type Cnt_t = int16 /* types.h:109:16 */ // pointer difference + +// VM-related types +type Pfn_t = uint64 /* types.h:123:18 */ // page frame number +type Pgcnt_t = uint64 /* types.h:124:18 */ // number of pages +type Spgcnt_t = int64 /* types.h:125:15 */ // signed number of pages + +type Use_t = uint8 /* types.h:127:18 */ // use count for swap. +type Sysid_t = int16 /* types.h:128:16 */ +type Index_t = int16 /* types.h:129:16 */ +type Timeout_id_t = uintptr /* types.h:130:15 */ // opaque handle from timeout(9F) +type Bufcall_id_t = uintptr /* types.h:131:15 */ // opaque handle from bufcall(9F) + +// The size of off_t and related types depends on the setting of +// _FILE_OFFSET_BITS. (Note that other system headers define other types +// related to those defined here.) +// +// If _LARGEFILE64_SOURCE is defined, variants of these types that are +// explicitly 64 bits wide become available. + +type Off_t = int64 /* types.h:145:15 */ // offsets within files + +type Off64_t = int64 /* types.h:152:16 */ // offsets within files + +type Ino_t = uint64 /* types.h:161:18 */ // expanded inode type +type Blkcnt_t = int64 /* types.h:162:15 */ // count of file blocks +type Fsblkcnt_t = uint64 /* types.h:163:18 */ // count of file system blocks +type Fsfilcnt_t = uint64 /* types.h:164:18 */ // count of files + +type Ino64_t = uint64 /* types.h:174:16 */ // expanded inode type +type Blkcnt64_t = int64 /* types.h:175:18 */ // count of file blocks +type Fsblkcnt64_t = uint64 /* types.h:176:20 */ // count of file system blocks +type Fsfilcnt64_t = uint64 /* types.h:177:20 */ // count of files + +type Blksize_t = int32 /* types.h:187:14 */ // used for block sizes + +// The boolean_t type has had a varied amount of exposure over the years in +// terms of how its enumeration constants have been exposed. In particular, it +// originally used the __XOPEN_OR_POSIX macro to determine whether to prefix the +// B_TRUE and B_FALSE with an underscore. This check never included the +// question of if we were in a strict ANSI C environment or whether extensions +// were defined. +// +// Compilers such as clang started defaulting to always including an +// XOPEN_SOURCE declaration on behalf of users, but also noted __EXTENSIONS__. +// This would lead most software that had used the non-underscore versions to +// need it. As such, we have adjusted the non-strict XOPEN environment to retain +// its old behavior so as to minimize namespace pollution; however, we instead +// include both variants of the definitions in the generally visible version +// allowing software written in either world to hopefully end up in a good +// place. +// +// This isn't perfect, but should hopefully minimize the pain for folks actually +// trying to build software. +type Boolean_t = uint32 /* types.h:215:69 */ + +// The {u,}pad64_t types can be used in structures such that those structures +// may be accessed by code produced by compilation environments which don't +// support a 64 bit integral datatype. The intention is not to allow +// use of these fields in such environments, but to maintain the alignment +// and offsets of the structure. +// +// Similar comments for {u,}pad128_t. +// +// Note that these types do NOT generate any stronger alignment constraints +// than those available in the underlying ABI. See +type Pad64_t = int64 /* types.h:240:18 */ +type Upad64_t = uint64 /* types.h:241:18 */ + +type Pad128_t = struct { + F_q float64 + F__ccgo_pad1 [8]byte +} /* types.h:257:3 */ + +type Upad128_t = struct { + F_q float64 + F__ccgo_pad1 [8]byte +} /* types.h:262:3 */ + +type Offset_t = int64 /* types.h:264:20 */ +type U_offset_t = uint64 /* types.h:265:22 */ +type Len_t = uint64 /* types.h:266:22 */ +type Diskaddr_t = uint64 /* types.h:267:22 */ + +// Definitions remaining from previous partial support for 64-bit file +// offsets. This partial support for devices greater than 2gb requires +// compiler support for long long. +type Lloff_t = struct{ F_f int64 } /* types.h:284:3 */ + +type Lldaddr_t = struct{ F_f int64 } /* types.h:304:3 */ + +type K_fltset_t = uint32 /* types.h:317:16 */ // kernel fault set type + +// The following type is for various kinds of identifiers. The +// actual type must be the same for all since some system calls +// (such as sigsend) take arguments that may be any of these +// types. The enumeration type idtype_t defined in sys/procset.h +// is used to indicate what type of id is being specified -- +// a process id, process group id, session id, scheduling class id, +// user id, group id, project id, task id or zone id. +type Id_t = int32 /* types.h:329:14 */ + +type Lgrp_id_t = int32 /* types.h:334:15 */ // lgroup ID + +// Type useconds_t is an unsigned integral type capable of storing +// values at least in the range of zero to 1,000,000. +type Useconds_t = uint32 /* types.h:340:17 */ // Time, in microseconds + +type Suseconds_t = int64 /* types.h:344:14 */ // signed # of microseconds + +// Typedefs for dev_t components. +type Major_t = uint32 /* types.h:351:16 */ // major part of device number +type Minor_t = uint32 /* types.h:352:16 */ // minor part of device number + +// The data type of a thread priority. +type Pri_t = int16 /* types.h:361:15 */ + +// The data type for a CPU flags field. (Can be extended to larger unsigned +// types, if needed, limited by ability to update atomically.) +type Cpu_flag_t = uint16 /* types.h:367:18 */ + +// For compatibility reasons the following typedefs (prefixed o_) +// can't grow regardless of the EFT definition. Although, +// applications should not explicitly use these typedefs +// they may be included via a system header definition. +// WARNING: These typedefs may be removed in a future +// release. +// +// ex. the definitions in s5inode.h (now obsoleted) +// remained small to preserve compatibility +// in the S5 file system type. +type O_mode_t = uint16 /* types.h:380:18 */ // old file attribute type +type O_dev_t = int16 /* types.h:381:15 */ // old device type +type O_uid_t = uint16 /* types.h:382:18 */ // old UID type +type O_gid_t = uint16 /* types.h:383:17 */ // old GID type +type O_nlink_t = int16 /* types.h:384:15 */ // old file link type +type O_pid_t = int16 /* types.h:385:15 */ // old process id type +type O_ino_t = uint16 /* types.h:386:18 */ // old inode type + +// POSIX and XOPEN Declarations +type Key_t = int32 /* types.h:392:13 */ // IPC key type +type Mode_t = uint32 /* types.h:394:16 */ // file attribute type + +type Uid_t = uint32 /* types.h:401:22 */ // UID type + +type Gid_t = uint32 /* types.h:404:15 */ // GID type + +type Datalink_id_t = uint32 /* types.h:406:18 */ +type Vrid_t = uint32 /* types.h:407:18 */ + +type Taskid_t = int32 /* types.h:409:17 */ +type Projid_t = int32 /* types.h:410:17 */ +type Poolid_t = int32 /* types.h:411:14 */ +type Zoneid_t = int32 /* types.h:412:14 */ +type Ctid_t = int32 /* types.h:413:14 */ + +// POSIX definitions are same as defined in thread.h and synch.h. +// Any changes made to here should be reflected in corresponding +// files as described in comments. +type Pthread_t = uint32 /* types.h:420:16 */ // = thread_t in thread.h +type Pthread_key_t = uint32 /* types.h:421:16 */ // = thread_key_t in thread.h + +// "Magic numbers" tagging synchronization object types + +type X_pthread_mutex = struct { + F__pthread_mutex_flags struct { + F__pthread_mutex_flag1 uint16 + F__pthread_mutex_flag2 uint8 + F__pthread_mutex_ceiling uint8 + F__pthread_mutex_type uint16 + F__pthread_mutex_magic uint16 + } + F__pthread_mutex_lock struct { + F__ccgo_pad1 [0]uint64 + F__pthread_mutex_lock64 struct{ F__pthread_mutex_pad [8]uint8 } + } + F__pthread_mutex_data uint64 +} /* types.h:429:9 */ + +// = thread_key_t in thread.h + +// "Magic numbers" tagging synchronization object types + +type Pthread_mutex_t = X_pthread_mutex /* types.h:448:3 */ + +type X_pthread_cond = struct { + F__pthread_cond_flags struct { + F__pthread_cond_flag [4]uint8 + F__pthread_cond_type uint16 + F__pthread_cond_magic uint16 + } + F__pthread_cond_data uint64 +} /* types.h:450:9 */ + +type Pthread_cond_t = X_pthread_cond /* types.h:457:3 */ + +// UNIX 98 Extension +type X_pthread_rwlock = struct { + F__pthread_rwlock_readers int32 + F__pthread_rwlock_type uint16 + F__pthread_rwlock_magic uint16 + F__pthread_rwlock_mutex Pthread_mutex_t + F__pthread_rwlock_readercv Pthread_cond_t + F__pthread_rwlock_writercv Pthread_cond_t +} /* types.h:462:9 */ + +// UNIX 98 Extension +type Pthread_rwlock_t = X_pthread_rwlock /* types.h:469:3 */ + +// SUSV3 +type Pthread_barrier_t = struct { + F__pthread_barrier_count uint32 + F__pthread_barrier_current uint32 + F__pthread_barrier_cycle uint64 + F__pthread_barrier_reserved uint64 + F__pthread_barrier_lock Pthread_mutex_t + F__pthread_barrier_cond Pthread_cond_t +} /* types.h:481:3 */ + +type Pthread_spinlock_t = Pthread_mutex_t /* types.h:483:25 */ + +// attributes for threads, dynamically allocated by library +type X_pthread_attr = struct{ F__pthread_attrp uintptr } /* types.h:488:9 */ + +// attributes for threads, dynamically allocated by library +type Pthread_attr_t = X_pthread_attr /* types.h:490:3 */ + +// attributes for mutex, dynamically allocated by library +type X_pthread_mutexattr = struct{ F__pthread_mutexattrp uintptr } /* types.h:495:9 */ + +// attributes for mutex, dynamically allocated by library +type Pthread_mutexattr_t = X_pthread_mutexattr /* types.h:497:3 */ + +// attributes for cond, dynamically allocated by library +type X_pthread_condattr = struct{ F__pthread_condattrp uintptr } /* types.h:502:9 */ + +// attributes for cond, dynamically allocated by library +type Pthread_condattr_t = X_pthread_condattr /* types.h:504:3 */ + +// pthread_once +type X_once = struct{ F__pthread_once_pad [4]uint64 } /* types.h:509:9 */ + +// pthread_once +type Pthread_once_t = X_once /* types.h:511:3 */ + +// UNIX 98 Extensions +// attributes for rwlock, dynamically allocated by library +type X_pthread_rwlockattr = struct{ F__pthread_rwlockattrp uintptr } /* types.h:517:9 */ + +// UNIX 98 Extensions +// attributes for rwlock, dynamically allocated by library +type Pthread_rwlockattr_t = X_pthread_rwlockattr /* types.h:519:3 */ + +// SUSV3 +// attributes for pthread_barrier_t, dynamically allocated by library +type Pthread_barrierattr_t = struct{ F__pthread_barrierattrp uintptr } /* types.h:527:3 */ + +type Dev_t = uint64 /* types.h:529:17 */ // expanded device type + +type Nlink_t = uint32 /* types.h:532:16 */ // file link type +type Pid_t = int32 /* types.h:533:13 */ // size of something in bytes + +type Ssize_t = int64 /* types.h:551:14 */ // size of something in bytes or -1 + +type Time_t = int64 /* types.h:559:15 */ // time of day in seconds + +type Clock_t = int64 /* types.h:564:15 */ // relative time in a specified resolution + +type Clockid_t = int32 /* types.h:569:13 */ // clock identifier type + +type Timer_t = int32 /* types.h:574:13 */ // timer identifier type + +// BEGIN CSTYLED +type Unchar = uint8 /* types.h:580:23 */ +type Ushort = uint16 /* types.h:581:24 */ +type Uint = uint32 /* types.h:582:22 */ +type Ulong = uint64 /* types.h:583:23 */ +// END CSTYLED + +// The following is the value of type id_t to use to indicate the +// caller's current id. See procset.h for the type idtype_t +// which defines which kind of id is being specified. + +// The following value of type pfn_t is used to indicate +// invalid page frame number. + +// BEGIN CSTYLED +type U_char = uint8 /* types.h:650:23 */ +type U_short = uint16 /* types.h:651:24 */ +type U_int = uint32 /* types.h:652:22 */ +type U_long = uint64 /* types.h:653:23 */ +type X_quad = struct{ Fval [2]int32 } /* types.h:654:9 */ + +type Quad_t = X_quad /* types.h:654:38 */ // used by UFS +type Quad = Quad_t /* types.h:655:17 */ // used by UFS +// END CSTYLED + +// Nested include for BSD/sockets source compatibility. +// (The select macros used to be defined here). +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// +// Copyright 2010 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// University Copyright- Copyright (c) 1982, 1986, 1988 +// The Regents of the University of California +// All Rights Reserved +// +// University Acknowledgment- Portions of this document are derived from +// software developed by the University of California, Berkeley, and its +// contributors. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2005 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Implementation-private. This header should not be included +// directly by an application. The application should instead +// include which includes this header conditionally +// depending on which feature test macros are defined. By default, +// this header is included by . X/Open and POSIX +// standards requirements result in this header being included +// by only under a restricted set of conditions. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Time expressed in seconds and nanoseconds + +type Timespec = struct { + Ftv_sec int64 + Ftv_nsec int64 +} /* time_impl.h:57:9 */ + +// used by UFS +// END CSTYLED + +// Nested include for BSD/sockets source compatibility. +// (The select macros used to be defined here). +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// +// Copyright 2010 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// University Copyright- Copyright (c) 1982, 1986, 1988 +// The Regents of the University of California +// All Rights Reserved +// +// University Acknowledgment- Portions of this document are derived from +// software developed by the University of California, Berkeley, and its +// contributors. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2005 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Implementation-private. This header should not be included +// directly by an application. The application should instead +// include which includes this header conditionally +// depending on which feature test macros are defined. By default, +// this header is included by . X/Open and POSIX +// standards requirements result in this header being included +// by only under a restricted set of conditions. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Time expressed in seconds and nanoseconds + +type Timespec_t = Timespec /* time_impl.h:60:3 */ + +type Timestruc_t = Timespec /* time_impl.h:81:25 */ // definition per SVr4 + +// The following has been left in for backward compatibility. Portable +// applications should not use the structure name timestruc. + +// Timer specification +type Itimerspec = struct { + Fit_interval struct { + Ftv_sec int64 + Ftv_nsec int64 + } + Fit_value struct { + Ftv_sec int64 + Ftv_nsec int64 + } +} /* time_impl.h:95:9 */ + +// definition per SVr4 + +// The following has been left in for backward compatibility. Portable +// applications should not use the structure name timestruc. + +// Timer specification +type Itimerspec_t = Itimerspec /* time_impl.h:98:3 */ + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright (c) 1982, 1986, 1993 Regents of the University of California. +// All rights reserved. The Berkeley software License Agreement +// specifies the terms and conditions for redistribution. + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2020 OmniOS Community Edition (OmniOSce) Association. + +// Copyright (c) 2013, 2016 by Delphix. All rights reserved. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Structure returned by gettimeofday(2) system call, +// and used in other calls. + +type Timeval = struct { + Ftv_sec int64 + Ftv_usec int64 +} /* time.h:54:1 */ + +type Timezone = struct { + Ftz_minuteswest int32 + Ftz_dsttime int32 +} /* time.h:86:1 */ + +// Needed for longlong_t type. Placement of this due to +// including which relies on the presense of the itimerval +// structure. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2021 Oxide Computer Company + +// Operations on timevals. + +// Names of the interval timers, and structure +// defining a timer setting. +// time and when system is running on +// behalf of the process. +// time profiling of multithreaded +// programs. + +type Itimerval = struct { + Fit_interval struct { + Ftv_sec int64 + Ftv_usec int64 + } + Fit_value struct { + Ftv_sec int64 + Ftv_usec int64 + } +} /* time.h:209:1 */ + +// Definitions for commonly used resolutions. + +// Time expressed as a 64-bit nanosecond counter. +type Hrtime_t = int64 /* time.h:265:20 */ + +// The inclusion of is historical and was added for +// backward compatibility in delta 1.2 when a number of definitions +// were moved out of . More recently, the timespec and +// itimerspec structure definitions, along with the _CLOCK_*, CLOCK_*, +// _TIMER_*, and TIMER_* symbols were moved to , +// which is now included by . This change was due to POSIX +// 1003.1b-1993 and X/Open UNIX 98 requirements. For non-POSIX and +// non-X/Open applications, including this header will still make +// visible these definitions. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1988 AT&T +// All Rights Reserved + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2007 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2010 Nexenta Systems, Inc. Al rights reserved. +// Copyright 2016 Joyent, Inc. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1988 AT&T +// All Rights Reserved + +// Copyright 2014 Garrett D'Amore +// Copyright 2014 PALO, Richard. +// +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// An application should not include this header directly. Instead it +// should be included only through the inclusion of other Sun headers. +// +// The contents of this header is limited to identifiers specified in the +// C Standard. Any new identifiers specified in future amendments to the +// C Standard must be placed in this header. If these new identifiers +// are required to also be in the C++ Standard "std" namespace, then for +// anything other than macro definitions, corresponding "using" directives +// must also be added to . + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// This file and its contents are supplied under the terms of the +// Common Development and Distribution License ("CDDL"), version 1.0. +// You may only use this file in accordance with the terms of version +// 1.0 of the CDDL. +// +// A full copy of the text of the CDDL should have accompanied this +// source. A copy of the CDDL is also available via the Internet at +// http://www.illumos.org/license/CDDL. + +// Copyright 2014-2016 PALO, Richard. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// POSIX.1-2008 requires that the NULL macro be cast to type void *. + +type Tm = struct { + Ftm_sec int32 + Ftm_min int32 + Ftm_hour int32 + Ftm_mday int32 + Ftm_mon int32 + Ftm_year int32 + Ftm_wday int32 + Ftm_yday int32 + Ftm_isdst int32 +} /* time_iso.h:80:1 */ + +// Neither X/Open nor POSIX allow the inclusion of for the +// definition of the sigevent structure. Both require the inclusion +// of and when using the timer_create() function. +// However, X/Open also specifies that the sigevent structure be defined +// in as described in the header . This prevents +// compiler warnings for applications that only include and not +// also . The sigval union and the sigevent structure is +// therefore defined both here and in which gets included +// via inclusion of . +type Sigval = struct { + F__ccgo_pad1 [0]uint64 + Fsival_int int32 + F__ccgo_pad2 [4]byte +} /* time.h:125:1 */ + +type Sigevent = struct { + Fsigev_notify int32 + Fsigev_signo int32 + Fsigev_value struct { + F__ccgo_pad1 [0]uint64 + Fsival_int int32 + F__ccgo_pad2 [4]byte + } + Fsigev_notify_function uintptr + Fsigev_notify_attributes uintptr + F__sigev_pad2 int32 + F__ccgo_pad1 [4]byte +} /* time.h:133:1 */ + +type Locale_t = uintptr /* time.h:292:24 */ + +// The inclusion of is needed for the FD_CLR, +// FD_ISSET, FD_SET, and FD_SETSIZE macros as well as the +// select() prototype defined in the XOpen specifications +// beginning with XSH4v2. Placement required after definition +// for itimerval. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// +// Copyright 2010 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// University Copyright- Copyright (c) 1982, 1986, 1988 +// The Regents of the University of California +// All Rights Reserved +// +// University Acknowledgment- Portions of this document are derived from +// software developed by the University of California, Berkeley, and its +// contributors. + +// The sigset_t type is defined in and duplicated +// in as a result of XPG4v2 requirements. XPG6 +// now allows the visibility of signal.h in this header, however +// an order of inclusion problem occurs as a result of inclusion +// of in under certain conditions. +// Rather than include here, we've duplicated +// the sigset_t type instead. This type is required for the XPG6 +// introduced pselect() function also declared in this header. +type Sigset_t = struct{ F__sigbits [4]uint32 } /* select.h:76:3 */ + +// Select uses bit masks of file descriptors in longs. +// These macros manipulate such bit fields. +// FD_SETSIZE may be defined by the user, but the default here +// should be >= RLIM_FD_MAX. + +type Fd_mask = int64 /* select.h:92:14 */ +type Fds_mask = int64 /* select.h:94:14 */ + +// The value of _NBBY needs to be consistant with the value +// of NBBY in . + +type Fd_set1 = struct{ Ffds_bits [1024]int64 } /* select.h:120:9 */ + +// The value of _NBBY needs to be consistant with the value +// of NBBY in . + +type Fd_set = Fd_set1 /* select.h:125:3 */ + +// _VOID was defined to be either void or char but this is not +// required because previous SunOS compilers have accepted the void +// type. However, because many system header and source files use the +// void keyword, the volatile keyword, and ANSI C function prototypes, +// non-ANSI compilers cannot compile the system anyway. The _VOID macro +// should therefore not be used and remains for source compatibility +// only. +// CSTYLED + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1988 AT&T +// All Rights Reserved + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2007 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2010 Nexenta Systems, Inc. Al rights reserved. +// Copyright 2016 Joyent, Inc. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2021 Oxide Computer Company + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1988 AT&T +// All Rights Reserved + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2007 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2010 Nexenta Systems, Inc. Al rights reserved. +// Copyright 2016 Joyent, Inc. + +type Sched_param = struct { + Fsched_priority int32 + Fsched_pad [8]int32 +} /* sched.h:39:1 */ + +// Thread related attribute values defined as in thread.h. +// These are defined as bit pattern in thread.h. +// Any change here should be reflected in thread.h. +// detach +// scope + +// Other attributes which are not defined in thread.h +// inherit + +// Value of process-shared attribute +// These are defined as values defined in sys/synch.h +// Any change here should be reflected in sys/synch.h. + +// mutex types +// keep these in synch which sys/synch.h lock flags + +// Mutex protocol values. Keep these in synch with sys/synch.h lock types. + +// Mutex robust attribute values. +// Keep these in synch with sys/synch.h lock types. +// Historical solaris-specific names, +// from before pthread_mutexattr_getrobust() became standardized + +// macros - default initializers defined as in synch.h +// Any change here should be reflected in synch.h. +// +// NOTE: +// Make sure that any change in the macros is consistent with the definition +// of the corresponding types in sys/types.h (e.g. PTHREAD_MUTEX_INITIALIZER +// should be consistent with the definition for pthread_mutex_t). + +// cancellation type and state + +// pthread_once related values + +// The key to be created by pthread_key_create_once_np() +// must be statically initialized with PTHREAD_ONCE_KEY_NP. +// This must be the same as THR_ONCE_KEY in + +// barriers + +// For pthread_{get,set}name_np(). + +// cancellation cleanup structure +type X_cleanup = struct{ Fpthread_cleanup_pad [4]uint64 } /* pthread.h:159:9 */ + +// Thread related attribute values defined as in thread.h. +// These are defined as bit pattern in thread.h. +// Any change here should be reflected in thread.h. +// detach +// scope + +// Other attributes which are not defined in thread.h +// inherit + +// Value of process-shared attribute +// These are defined as values defined in sys/synch.h +// Any change here should be reflected in sys/synch.h. + +// mutex types +// keep these in synch which sys/synch.h lock flags + +// Mutex protocol values. Keep these in synch with sys/synch.h lock types. + +// Mutex robust attribute values. +// Keep these in synch with sys/synch.h lock types. +// Historical solaris-specific names, +// from before pthread_mutexattr_getrobust() became standardized + +// macros - default initializers defined as in synch.h +// Any change here should be reflected in synch.h. +// +// NOTE: +// Make sure that any change in the macros is consistent with the definition +// of the corresponding types in sys/types.h (e.g. PTHREAD_MUTEX_INITIALIZER +// should be consistent with the definition for pthread_mutex_t). + +// cancellation type and state + +// pthread_once related values + +// The key to be created by pthread_key_create_once_np() +// must be statically initialized with PTHREAD_ONCE_KEY_NP. +// This must be the same as THR_ONCE_KEY in + +// barriers + +// For pthread_{get,set}name_np(). + +// cancellation cleanup structure +type X_cleanup_t = X_cleanup /* pthread.h:161:3 */ + +type X_Voidfp = uintptr /* pthread.h:171:14 */ + +var _ int8 /* gen.c:2:13: */ diff --git a/vendor/modernc.org/libc/pthread/pthread_linux_loong64.go b/vendor/modernc.org/libc/pthread/pthread_linux_loong64.go new file mode 100644 index 000000000..27a161651 --- /dev/null +++ b/vendor/modernc.org/libc/pthread/pthread_linux_loong64.go @@ -0,0 +1,2128 @@ +// Code generated by 'ccgo pthread/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o pthread/pthread_linux_loong64.go -pkgname pthread', DO NOT EDIT. + +package pthread + +import ( + "math" + "reflect" + "sync/atomic" + "unsafe" +) + +var _ = math.Pi +var _ reflect.Kind +var _ atomic.Value +var _ unsafe.Pointer + +const ( + CLOCK_BOOTTIME = 7 // time.h:60:1: + CLOCK_BOOTTIME_ALARM = 9 // time.h:64:1: + CLOCK_MONOTONIC = 1 // time.h:48:1: + CLOCK_MONOTONIC_COARSE = 6 // time.h:58:1: + CLOCK_MONOTONIC_RAW = 4 // time.h:54:1: + CLOCK_PROCESS_CPUTIME_ID = 2 // time.h:50:1: + CLOCK_REALTIME = 0 // time.h:46:1: + CLOCK_REALTIME_ALARM = 8 // time.h:62:1: + CLOCK_REALTIME_COARSE = 5 // time.h:56:1: + CLOCK_TAI = 11 // time.h:66:1: + CLOCK_THREAD_CPUTIME_ID = 3 // time.h:52:1: + PTHREAD_BARRIER_SERIAL_THREAD = -1 // pthread.h:193:1: + PTHREAD_ONCE_INIT = 0 // pthread.h:186:1: + PTHREAD_STACK_MIN = 131072 // pthread_stack_min.h:20:1: + SCHED_FIFO = 1 // sched.h:29:1: + SCHED_OTHER = 0 // sched.h:28:1: + SCHED_RR = 2 // sched.h:30:1: + TIMER_ABSTIME = 1 // time.h:69:1: + TIME_UTC = 1 // time.h:65:1: + X_ABILP64 = 3 // :377:1: + X_ATFILE_SOURCE = 1 // features.h:353:1: + X_BITS_ATOMIC_WIDE_COUNTER_H = 0 // atomic_wide_counter.h:20:1: + X_BITS_CPU_SET_H = 1 // cpu-set.h:21:1: + X_BITS_ENDIANNESS_H = 1 // endianness.h:2:1: + X_BITS_ENDIAN_H = 1 // endian.h:20:1: + X_BITS_PTHREADTYPES_ARCH_H = 1 // pthreadtypes-arch.h:21:1: + X_BITS_PTHREADTYPES_COMMON_H = 1 // pthreadtypes.h:20:1: + X_BITS_SCHED_H = 1 // sched.h:21:1: + X_BITS_TIME64_H = 1 // time64.h:24:1: + X_BITS_TIME_H = 1 // time.h:24:1: + X_BITS_TYPESIZES_H = 1 // typesizes.h:24:1: + X_BITS_TYPES_H = 1 // types.h:24:1: + X_BITS_TYPES_LOCALE_T_H = 1 // locale_t.h:20:1: + X_BITS_TYPES_STRUCT_SCHED_PARAM = 1 // struct_sched_param.h:20:1: + X_BITS_TYPES___LOCALE_T_H = 1 // __locale_t.h:20:1: + X_BSD_SIZE_T_ = 0 // stddef.h:193:1: + X_BSD_SIZE_T_DEFINED_ = 0 // stddef.h:196:1: + X_DEFAULT_SOURCE = 1 // features.h:238:1: + X_FEATURES_H = 1 // features.h:19:1: + X_FILE_OFFSET_BITS = 64 // :25:1: + X_GCC_SIZE_T = 0 // stddef.h:200:1: + X_LOONGARCH_ARCH = "loongarch64" // :214:1: + X_LOONGARCH_ARCH_LOONGARCH64 = 1 // :340:1: + X_LOONGARCH_BITS_SETJMP_H = 0 // setjmp.h:20:1: + X_LOONGARCH_FPSET = 32 // :265:1: + X_LOONGARCH_SIM = 3 // :233:1: + X_LOONGARCH_SPFPSET = 32 // :88:1: + X_LOONGARCH_SZINT = 32 // :230:1: + X_LOONGARCH_SZLONG = 64 // :388:1: + X_LOONGARCH_SZPTR = 64 // :200:1: + X_LOONGARCH_TUNE = "la464" // :245:1: + X_LOONGARCH_TUNE_LA464 = 1 // :63:1: + X_LP64 = 1 // :372:1: + X_POSIX_C_SOURCE = 200809 // features.h:292:1: + X_POSIX_SOURCE = 1 // features.h:290:1: + X_PTHREAD_H = 1 // pthread.h:19:1: + X_SCHED_H = 1 // sched.h:20:1: + X_SIZET_ = 0 // stddef.h:201:1: + X_SIZE_T = 0 // stddef.h:187:1: + X_SIZE_T_ = 0 // stddef.h:192:1: + X_SIZE_T_DECLARED = 0 // stddef.h:197:1: + X_SIZE_T_DEFINED = 0 // stddef.h:195:1: + X_SIZE_T_DEFINED_ = 0 // stddef.h:194:1: + X_STDC_PREDEF_H = 1 // :223:1: + X_STRUCT_TIMESPEC = 1 // struct_timespec.h:3:1: + X_SYS_CDEFS_H = 1 // cdefs.h:20:1: + X_SYS_SIZE_T_H = 0 // stddef.h:188:1: + X_THREAD_MUTEX_INTERNAL_H = 1 // struct_mutex.h:20:1: + X_THREAD_SHARED_TYPES_H = 1 // thread-shared-types.h:20:1: + X_TIME_H = 1 // time.h:23:1: + X_T_SIZE = 0 // stddef.h:190:1: + X_T_SIZE_ = 0 // stddef.h:189:1: + Linux = 1 // :308:1: + Unix = 1 // :247:1: +) + +// Read-write lock types. +const ( /* pthread.h:104:1: */ + PTHREAD_RWLOCK_PREFER_READER_NP = 0 + PTHREAD_RWLOCK_PREFER_WRITER_NP = 1 + PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP = 2 + PTHREAD_RWLOCK_DEFAULT_NP = 0 +) + +// Read-write lock initializers. + +// Scheduler inheritance. +const ( /* pthread.h:124:1: */ + PTHREAD_INHERIT_SCHED = 0 + PTHREAD_EXPLICIT_SCHED = 1 +) + +// Scope handling. +const ( /* pthread.h:134:1: */ + PTHREAD_SCOPE_SYSTEM = 0 + PTHREAD_SCOPE_PROCESS = 1 +) + +// Process shared or private flag. +const ( /* pthread.h:144:1: */ + PTHREAD_PROCESS_PRIVATE = 0 + PTHREAD_PROCESS_SHARED = 1 +) + +// Cancellation +const ( /* pthread.h:168:1: */ + PTHREAD_CANCEL_ENABLE = 0 + PTHREAD_CANCEL_DISABLE = 1 +) +const ( /* pthread.h:175:1: */ + PTHREAD_CANCEL_DEFERRED = 0 + PTHREAD_CANCEL_ASYNCHRONOUS = 1 +) + +// Definition of PTHREAD_STACK_MIN, possibly dynamic. +// Copyright (C) 2021-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Definition of PTHREAD_STACK_MIN. LoongArch Linux version. +// Copyright (C) 2022-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public License as +// published by the Free Software Foundation; either version 2.1 of the +// License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library. If not, see +// . + +// Minimum size for a thread. At least two pages with 64k pages. + +// Detach state. +const ( /* pthread.h:37:1: */ + PTHREAD_CREATE_JOINABLE = 0 + PTHREAD_CREATE_DETACHED = 1 +) + +// Mutex types. +const ( /* pthread.h:47:1: */ + PTHREAD_MUTEX_TIMED_NP = 0 + PTHREAD_MUTEX_RECURSIVE_NP = 1 + PTHREAD_MUTEX_ERRORCHECK_NP = 2 + PTHREAD_MUTEX_ADAPTIVE_NP = 3 + PTHREAD_MUTEX_NORMAL = 0 + PTHREAD_MUTEX_RECURSIVE = 1 + PTHREAD_MUTEX_ERRORCHECK = 2 + PTHREAD_MUTEX_DEFAULT = 0 +) + +// Robust mutex or not flags. +const ( /* pthread.h:69:1: */ + PTHREAD_MUTEX_STALLED = 0 + PTHREAD_MUTEX_STALLED_NP = 0 + PTHREAD_MUTEX_ROBUST = 1 + PTHREAD_MUTEX_ROBUST_NP = 1 +) + +// Mutex protocols. +const ( /* pthread.h:81:1: */ + PTHREAD_PRIO_NONE = 0 + PTHREAD_PRIO_INHERIT = 1 + PTHREAD_PRIO_PROTECT = 2 +) + +type Ptrdiff_t = int64 /* :3:26 */ + +type Size_t = uint64 /* :9:23 */ + +type Wchar_t = int32 /* :15:24 */ + +type X__int128_t = struct { + Flo int64 + Fhi int64 +} /* :21:43 */ // must match modernc.org/mathutil.Int128 +type X__uint128_t = struct { + Flo uint64 + Fhi uint64 +} /* :22:44 */ // must match modernc.org/mathutil.Int128 + +type X__builtin_va_list = uintptr /* :46:14 */ +type X__float128 = float64 /* :47:21 */ + +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// These are defined by the user (or the compiler) +// to specify the desired environment: +// +// __STRICT_ANSI__ ISO Standard C. +// _ISOC99_SOURCE Extensions to ISO C89 from ISO C99. +// _ISOC11_SOURCE Extensions to ISO C99 from ISO C11. +// _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X. +// __STDC_WANT_LIB_EXT2__ +// Extensions to ISO C99 from TR 27431-2:2010. +// __STDC_WANT_IEC_60559_BFP_EXT__ +// Extensions to ISO C11 from TS 18661-1:2014. +// __STDC_WANT_IEC_60559_FUNCS_EXT__ +// Extensions to ISO C11 from TS 18661-4:2015. +// __STDC_WANT_IEC_60559_TYPES_EXT__ +// Extensions to ISO C11 from TS 18661-3:2015. +// __STDC_WANT_IEC_60559_EXT__ +// ISO C2X interfaces defined only in Annex F. +// +// _POSIX_SOURCE IEEE Std 1003.1. +// _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2; +// if >=199309L, add IEEE Std 1003.1b-1993; +// if >=199506L, add IEEE Std 1003.1c-1995; +// if >=200112L, all of IEEE 1003.1-2004 +// if >=200809L, all of IEEE 1003.1-2008 +// _XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if +// Single Unix conformance is wanted, to 600 for the +// sixth revision, to 700 for the seventh revision. +// _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions. +// _LARGEFILE_SOURCE Some more functions for correct standard I/O. +// _LARGEFILE64_SOURCE Additional functionality from LFS for large files. +// _FILE_OFFSET_BITS=N Select default filesystem interface. +// _ATFILE_SOURCE Additional *at interfaces. +// _DYNAMIC_STACK_SIZE_SOURCE Select correct (but non compile-time constant) +// MINSIGSTKSZ, SIGSTKSZ and PTHREAD_STACK_MIN. +// _GNU_SOURCE All of the above, plus GNU extensions. +// _DEFAULT_SOURCE The default set of features (taking precedence over +// __STRICT_ANSI__). +// +// _FORTIFY_SOURCE Add security hardening to many library functions. +// Set to 1, 2 or 3; 3 performs stricter checks than 2, which +// performs stricter checks than 1. +// +// _REENTRANT, _THREAD_SAFE +// Obsolete; equivalent to _POSIX_C_SOURCE=199506L. +// +// The `-ansi' switch to the GNU C compiler, and standards conformance +// options such as `-std=c99', define __STRICT_ANSI__. If none of +// these are defined, or if _DEFAULT_SOURCE is defined, the default is +// to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to +// 200809L, as well as enabling miscellaneous functions from BSD and +// SVID. If more than one of these are defined, they accumulate. For +// example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together +// give you ISO C, 1003.1, and 1003.2, but nothing else. +// +// These are defined by this file and are used by the +// header files to decide what to declare or define: +// +// __GLIBC_USE (F) Define things from feature set F. This is defined +// to 1 or 0; the subsequent macros are either defined +// or undefined, and those tests should be moved to +// __GLIBC_USE. +// __USE_ISOC11 Define ISO C11 things. +// __USE_ISOC99 Define ISO C99 things. +// __USE_ISOC95 Define ISO C90 AMD1 (C95) things. +// __USE_ISOCXX11 Define ISO C++11 things. +// __USE_POSIX Define IEEE Std 1003.1 things. +// __USE_POSIX2 Define IEEE Std 1003.2 things. +// __USE_POSIX199309 Define IEEE Std 1003.1, and .1b things. +// __USE_POSIX199506 Define IEEE Std 1003.1, .1b, .1c and .1i things. +// __USE_XOPEN Define XPG things. +// __USE_XOPEN_EXTENDED Define X/Open Unix things. +// __USE_UNIX98 Define Single Unix V2 things. +// __USE_XOPEN2K Define XPG6 things. +// __USE_XOPEN2KXSI Define XPG6 XSI things. +// __USE_XOPEN2K8 Define XPG7 things. +// __USE_XOPEN2K8XSI Define XPG7 XSI things. +// __USE_LARGEFILE Define correct standard I/O things. +// __USE_LARGEFILE64 Define LFS things with separate names. +// __USE_FILE_OFFSET64 Define 64bit interface as default. +// __USE_MISC Define things from 4.3BSD or System V Unix. +// __USE_ATFILE Define *at interfaces and AT_* constants for them. +// __USE_DYNAMIC_STACK_SIZE Define correct (but non compile-time constant) +// MINSIGSTKSZ, SIGSTKSZ and PTHREAD_STACK_MIN. +// __USE_GNU Define GNU extensions. +// __USE_FORTIFY_LEVEL Additional security measures used, according to level. +// +// The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are +// defined by this file unconditionally. `__GNU_LIBRARY__' is provided +// only for compatibility. All new code should use the other symbols +// to test for features. +// +// All macros listed above as possibly being defined by this file are +// explicitly undefined if they are not explicitly defined. +// Feature-test macros that are not defined by the user or compiler +// but are implied by the other feature-test macros defined (or by the +// lack of any definitions) are defined by the file. +// +// ISO C feature test macros depend on the definition of the macro +// when an affected header is included, not when the first system +// header is included, and so they are handled in +// , which does not have a multiple include +// guard. Feature test macros that can be handled from the first +// system header included are handled here. + +// Undefine everything, so we get a clean slate. + +// Suppress kernel-name space pollution unless user expressedly asks +// for it. + +// Convenience macro to test the version of gcc. +// Use like this: +// #if __GNUC_PREREQ (2,8) +// ... code requiring gcc 2.8 or later ... +// #endif +// Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was +// added in 2.0. + +// Similarly for clang. Features added to GCC after version 4.2 may +// or may not also be available in clang, and clang's definitions of +// __GNUC(_MINOR)__ are fixed at 4 and 2 respectively. Not all such +// features can be queried via __has_extension/__has_feature. + +// Whether to use feature set F. + +// _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for +// _DEFAULT_SOURCE. If _DEFAULT_SOURCE is present we do not +// issue a warning; the expectation is that the source is being +// transitioned to use the new macro. + +// If _GNU_SOURCE was defined by the user, turn on all the other features. + +// If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined, +// define _DEFAULT_SOURCE. + +// This is to enable the ISO C2X extension. + +// This is to enable the ISO C11 extension. + +// This is to enable the ISO C99 extension. + +// This is to enable the ISO C90 Amendment 1:1995 extension. + +// If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE +// is defined, use POSIX.1-2008 (or another version depending on +// _XOPEN_SOURCE). + +// Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be +// defined in all multithreaded code. GNU libc has not required this +// for many years. We now treat them as compatibility synonyms for +// _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with +// comprehensive support for multithreaded code. Using them never +// lowers the selected level of POSIX conformance, only raises it. + +// Features part to handle 64-bit time_t support. +// Copyright (C) 2021-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// We need to know the word size in order to check the time size. +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Bit size of the time_t type at glibc build time, general case. +// Copyright (C) 2018-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Size in bits of the 'time_t' type of the default ABI. + +// The function 'gets' existed in C89, but is impossible to use +// safely. It has been removed from ISO C11 and ISO C++14. Note: for +// compatibility with various implementations of , this test +// must consider only the value of __cplusplus when compiling C++. + +// GNU formerly extended the scanf functions with modified format +// specifiers %as, %aS, and %a[...] that allocate a buffer for the +// input using malloc. This extension conflicts with ISO C99, which +// defines %a as a standalone format specifier that reads a floating- +// point number; moreover, POSIX.1-2008 provides the same feature +// using the modifier letter 'm' instead (%ms, %mS, %m[...]). +// +// We now follow C99 unless GNU extensions are active and the compiler +// is specifically in C89 or C++98 mode (strict or not). For +// instance, with GCC, -std=gnu11 will have C99-compliant scanf with +// or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the +// old extension. + +// ISO C2X added support for a 0b or 0B prefix on binary constants as +// inputs to strtol-family functions (base 0 or 2). This macro is +// used to condition redirection in headers to allow that redirection +// to be disabled when building those functions, despite _GNU_SOURCE +// being defined. + +// Get definitions of __STDC_* predefined macros, if the compiler has +// not preincluded this header automatically. +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// This macro indicates that the installed library is the GNU C Library. +// For historic reasons the value now is 6 and this will stay from now +// on. The use of this variable is deprecated. Use __GLIBC__ and +// __GLIBC_MINOR__ now (see below) when you want to test for a specific +// GNU C library version and use the values in to get +// the sonames of the shared libraries. + +// Major and minor version number of the GNU C library package. Use +// these macros to test for features in specific releases. + +// This is here only because every header file already includes this one. +// Copyright (C) 1992-2023 Free Software Foundation, Inc. +// Copyright The GNU Toolchain Authors. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// We are almost always included from features.h. + +// The GNU libc does not support any K&R compilers or the traditional mode +// of ISO C compilers anymore. Check for some of the combinations not +// supported anymore. + +// Some user header file might have defined this before. + +// Compilers that lack __has_attribute may object to +// #if defined __has_attribute && __has_attribute (...) +// even though they do not need to evaluate the right-hand side of the &&. +// Similarly for __has_builtin, etc. + +// All functions, except those with callbacks or those that +// synchronize memory, are leaf functions. + +// GCC can always grok prototypes. For C++ programs we add throw() +// to help it optimize the function calls. But this only works with +// gcc 2.8.x and egcs. For gcc 3.4 and up we even mark C functions +// as non-throwing using a function attribute since programs can use +// the -fexceptions options for C code as well. + +// These two macros are not used in glibc anymore. They are kept here +// only because some other projects expect the macros to be defined. + +// For these things, GCC behaves the ANSI way normally, +// and the non-ANSI way under -traditional. + +// This is not a typedef so `const __ptr_t' does the right thing. + +// C++ needs to know that types and declarations are C, not C++. + +// Fortify support. + +// Use __builtin_dynamic_object_size at _FORTIFY_SOURCE=3 when available. + +// Support for flexible arrays. +// Headers that should use flexible arrays only if they're "real" +// (e.g. only if they won't affect sizeof()) should test +// #if __glibc_c99_flexarr_available. + +// __asm__ ("xyz") is used throughout the headers to rename functions +// at the assembly language level. This is wrapped by the __REDIRECT +// macro, in order to support compilers that can do this some other +// way. When compilers don't support asm-names at all, we have to do +// preprocessor tricks instead (which don't have exactly the right +// semantics, but it's the best we can do). +// +// Example: +// int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid); + +// +// #elif __SOME_OTHER_COMPILER__ +// +// # define __REDIRECT(name, proto, alias) name proto; _Pragma("let " #name " = " #alias) + +// GCC and clang have various useful declarations that can be made with +// the '__attribute__' syntax. All of the ways we use this do fine if +// they are omitted for compilers that don't understand it. + +// At some point during the gcc 2.96 development the `malloc' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// Tell the compiler which arguments to an allocation function +// indicate the size of the allocation. + +// Tell the compiler which argument to an allocation function +// indicates the alignment of the allocation. + +// At some point during the gcc 2.96 development the `pure' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// This declaration tells the compiler that the value is constant. + +// At some point during the gcc 3.1 development the `used' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// Since version 3.2, gcc allows marking deprecated functions. + +// Since version 4.5, gcc also allows one to specify the message printed +// when a deprecated function is used. clang claims to be gcc 4.2, but +// may also support this feature. + +// At some point during the gcc 2.8 development the `format_arg' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. +// If several `format_arg' attributes are given for the same function, in +// gcc-3.0 and older, all but the last one are ignored. In newer gccs, +// all designated arguments are considered. + +// At some point during the gcc 2.97 development the `strfmon' format +// attribute for functions was introduced. We don't want to use it +// unconditionally (although this would be possible) since it +// generates warnings. + +// The nonnull function attribute marks pointer parameters that +// must not be NULL. This has the name __nonnull in glibc, +// and __attribute_nonnull__ in files shared with Gnulib to avoid +// collision with a different __nonnull in DragonFlyBSD 5.9. + +// The returns_nonnull function attribute marks the return type of the function +// as always being non-null. + +// If fortification mode, we warn about unused results of certain +// function calls which can lead to problems. + +// Forces a function to be always inlined. +// The Linux kernel defines __always_inline in stddef.h (283d7573), and +// it conflicts with this definition. Therefore undefine it first to +// allow either header to be included first. + +// Associate error messages with the source location of the call site rather +// than with the source location inside the function. + +// GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99 +// inline semantics, unless -fgnu89-inline is used. Using __GNUC_STDC_INLINE__ +// or __GNUC_GNU_INLINE is not a good enough check for gcc because gcc versions +// older than 4.3 may define these macros and still not guarantee GNU inlining +// semantics. +// +// clang++ identifies itself as gcc-4.2, but has support for GNU inlining +// semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and +// __GNUC_GNU_INLINE__ macro definitions. + +// GCC 4.3 and above allow passing all anonymous arguments of an +// __extern_always_inline function to some other vararg function. + +// It is possible to compile containing GCC extensions even if GCC is +// run in pedantic mode if the uses are carefully marked using the +// `__extension__' keyword. But this is not generally available before +// version 2.8. + +// __restrict is known in EGCS 1.2 and above, and in clang. +// It works also in C++ mode (outside of arrays), but only when spelled +// as '__restrict', not 'restrict'. + +// ISO C99 also allows to declare arrays as non-overlapping. The syntax is +// array_name[restrict] +// GCC 3.1 and clang support this. +// This syntax is not usable in C++ mode. + +// Describes a char array whose address can safely be passed as the first +// argument to strncpy and strncat, as the char array is not necessarily +// a NUL-terminated string. + +// Undefine (also defined in libc-symbols.h). +// Copies attributes from the declaration or type referenced by +// the argument. + +// Gnulib avoids including these, as they don't work on non-glibc or +// older glibc platforms. +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Properties of long double type. ldbl-128 version. +// Copyright (C) 2016-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// long double is distinct from double, so there is nothing to +// define here. + +// __glibc_macro_warning (MESSAGE) issues warning MESSAGE. This is +// intended for use in preprocessor macros. +// +// Note: MESSAGE must be a _single_ string; concatenation of string +// literals is not supported. + +// Generic selection (ISO C11) is a C-only feature, available in GCC +// since version 4.9. Previous versions do not provide generic +// selection, even though they might set __STDC_VERSION__ to 201112L, +// when in -std=c11 mode. Thus, we must check for !defined __GNUC__ +// when testing __STDC_VERSION__ for generic selection support. +// On the other hand, Clang also defines __GNUC__, so a clang-specific +// check is required to enable the use of generic selection. + +// Designates a 1-based positional argument ref-index of pointer type +// that can be used to access size-index elements of the pointed-to +// array according to access mode, or at least one element when +// size-index is not provided: +// access (access-mode, [, ]) +// For _FORTIFY_SOURCE == 3 we use __builtin_dynamic_object_size, which may +// use the access attribute to get object sizes from function definition +// arguments, so we can't use them on functions we fortify. Drop the object +// size hints for such functions. + +// Designates dealloc as a function to call to deallocate objects +// allocated by the declared function. + +// Specify that a function such as setjmp or vfork may return +// twice. + +// If we don't have __REDIRECT, prototypes will be missing if +// __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64]. + +// Decide whether we can define 'extern inline' functions in headers. + +// This is here only because every header file already includes this one. +// Get the definitions of all the appropriate `__stub_FUNCTION' symbols. +// contains `#define __stub_FUNCTION' when FUNCTION is a stub +// that will always return failure (and set errno to ENOSYS). +// This file is automatically generated. +// This file selects the right generated file of `__stub_FUNCTION' macros +// based on the architecture being compiled for. + +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// This file is automatically generated. +// It defines a symbol `__stub_FUNCTION' for each function +// in the C library which is a stub, meaning it will fail +// every time called, usually setting errno to ENOSYS. + +// Definitions for POSIX 1003.1b-1993 (aka POSIX.4) scheduling interface. +// Copyright (C) 1996-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Get type definitions. +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Bit size of the time_t type at glibc build time, general case. +// Copyright (C) 2018-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Size in bits of the 'time_t' type of the default ABI. + +// Convenience types. +type X__u_char = uint8 /* types.h:31:23 */ +type X__u_short = uint16 /* types.h:32:28 */ +type X__u_int = uint32 /* types.h:33:22 */ +type X__u_long = uint64 /* types.h:34:27 */ + +// Fixed-size types, underlying types depend on word size and compiler. +type X__int8_t = int8 /* types.h:37:21 */ +type X__uint8_t = uint8 /* types.h:38:23 */ +type X__int16_t = int16 /* types.h:39:26 */ +type X__uint16_t = uint16 /* types.h:40:28 */ +type X__int32_t = int32 /* types.h:41:20 */ +type X__uint32_t = uint32 /* types.h:42:22 */ +type X__int64_t = int64 /* types.h:44:25 */ +type X__uint64_t = uint64 /* types.h:45:27 */ + +// Smallest types with at least a given width. +type X__int_least8_t = int8 /* types.h:52:18 */ +type X__uint_least8_t = uint8 /* types.h:53:19 */ +type X__int_least16_t = int16 /* types.h:54:19 */ +type X__uint_least16_t = uint16 /* types.h:55:20 */ +type X__int_least32_t = int32 /* types.h:56:19 */ +type X__uint_least32_t = uint32 /* types.h:57:20 */ +type X__int_least64_t = int64 /* types.h:58:19 */ +type X__uint_least64_t = uint64 /* types.h:59:20 */ + +// quad_t is also 64 bits. +type X__quad_t = int64 /* types.h:63:18 */ +type X__u_quad_t = uint64 /* types.h:64:27 */ + +// Largest integral types. +type X__intmax_t = int64 /* types.h:72:18 */ +type X__uintmax_t = uint64 /* types.h:73:27 */ + +// The machine-dependent file defines __*_T_TYPE +// macros for each of the OS types we define below. The definitions +// of those macros must use the following macros for underlying types. +// We define __S_TYPE and __U_TYPE for the signed and unsigned +// variants of each of the following integer types on this machine. +// +// 16 -- "natural" 16-bit type (always short) +// 32 -- "natural" 32-bit type (always int) +// 64 -- "natural" 64-bit type (long or long long) +// LONG32 -- 32-bit type, traditionally long +// QUAD -- 64-bit type, traditionally long long +// WORD -- natural type of __WORDSIZE bits (int or long) +// LONGWORD -- type of __WORDSIZE bits, traditionally long +// +// We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the +// conventional uses of `long' or `long long' type modifiers match the +// types we define, even when a less-adorned type would be the same size. +// This matters for (somewhat) portably writing printf/scanf formats for +// these types, where using the appropriate l or ll format modifiers can +// make the typedefs and the formats match up across all GNU platforms. If +// we used `long' when it's 64 bits where `long long' is expected, then the +// compiler would warn about the formats not matching the argument types, +// and the programmer changing them to shut up the compiler would break the +// program's portability. +// +// Here we assume what is presently the case in all the GCC configurations +// we support: long long is always 64 bits, long is always word/address size, +// and int is always 32 bits. + +// No need to mark the typedef with __extension__. +// bits/typesizes.h -- underlying types for *_t. For the generic Linux ABI. +// Copyright (C) 2011-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library. If not, see +// . + +// See for the meaning of these macros. This file exists so +// that need not vary across different GNU platforms. + +// Tell the libc code that off_t and off64_t are actually the same type +// for all ABI purposes, even if possibly expressed as different base types +// for C type-checking purposes. + +// Same for ino_t and ino64_t. + +// And for __rlim_t and __rlim64_t. + +// And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t. + +// And for getitimer, setitimer and rusage + +// Number of descriptors that can fit in an `fd_set'. + +// bits/time64.h -- underlying types for __time64_t. Generic version. +// Copyright (C) 2018-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Define __TIME64_T_TYPE so that it is always a 64-bit type. + +// If we already have 64-bit time type then use it. + +type X__dev_t = uint64 /* types.h:145:25 */ // Type of device numbers. +type X__uid_t = uint32 /* types.h:146:25 */ // Type of user identifications. +type X__gid_t = uint32 /* types.h:147:25 */ // Type of group identifications. +type X__ino_t = uint64 /* types.h:148:25 */ // Type of file serial numbers. +type X__ino64_t = uint64 /* types.h:149:27 */ // Type of file serial numbers (LFS). +type X__mode_t = uint32 /* types.h:150:26 */ // Type of file attribute bitmasks. +type X__nlink_t = uint32 /* types.h:151:27 */ // Type of file link counts. +type X__off_t = int64 /* types.h:152:25 */ // Type of file sizes and offsets. +type X__off64_t = int64 /* types.h:153:27 */ // Type of file sizes and offsets (LFS). +type X__pid_t = int32 /* types.h:154:25 */ // Type of process identifications. +type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs. +type X__clock_t = int64 /* types.h:156:27 */ // Type of CPU usage counts. +type X__rlim_t = uint64 /* types.h:157:26 */ // Type for resource measurement. +type X__rlim64_t = uint64 /* types.h:158:28 */ // Type for resource measurement (LFS). +type X__id_t = uint32 /* types.h:159:24 */ // General type for IDs. +type X__time_t = int64 /* types.h:160:26 */ // Seconds since the Epoch. +type X__useconds_t = uint32 /* types.h:161:30 */ // Count of microseconds. +type X__suseconds_t = int64 /* types.h:162:31 */ // Signed count of microseconds. +type X__suseconds64_t = int64 /* types.h:163:33 */ + +type X__daddr_t = int32 /* types.h:165:27 */ // The type of a disk address. +type X__key_t = int32 /* types.h:166:25 */ // Type of an IPC key. + +// Clock ID used in clock and timer functions. +type X__clockid_t = int32 /* types.h:169:29 */ + +// Timer ID returned by `timer_create'. +type X__timer_t = uintptr /* types.h:172:12 */ + +// Type to represent block size. +type X__blksize_t = int32 /* types.h:175:29 */ + +// Types from the Large File Support interface. + +// Type to count number of disk blocks. +type X__blkcnt_t = int64 /* types.h:180:28 */ +type X__blkcnt64_t = int64 /* types.h:181:30 */ + +// Type to count file system blocks. +type X__fsblkcnt_t = uint64 /* types.h:184:30 */ +type X__fsblkcnt64_t = uint64 /* types.h:185:32 */ + +// Type to count file system nodes. +type X__fsfilcnt_t = uint64 /* types.h:188:30 */ +type X__fsfilcnt64_t = uint64 /* types.h:189:32 */ + +// Type of miscellaneous file system fields. +type X__fsword_t = int64 /* types.h:192:28 */ + +type X__ssize_t = int64 /* types.h:194:27 */ // Type of a byte count, or error. + +// Signed long type used in system calls. +type X__syscall_slong_t = int64 /* types.h:197:33 */ +// Unsigned long type used in system calls. +type X__syscall_ulong_t = uint64 /* types.h:199:33 */ + +// These few don't really vary by system, they always correspond +// +// to one of the other defined types. +type X__loff_t = int64 /* types.h:203:19 */ // Type of file sizes and offsets (LFS). +type X__caddr_t = uintptr /* types.h:204:14 */ + +// Duplicates info from stdint.h but this is used in unistd.h. +type X__intptr_t = int64 /* types.h:207:25 */ + +// Duplicate info from sys/socket.h. +type X__socklen_t = uint32 /* types.h:210:23 */ + +// C99: An integer type that can be accessed as an atomic entity, +// +// even in the presence of asynchronous interrupts. +// It is not currently necessary for this to be machine-specific. +type X__sig_atomic_t = int32 /* types.h:215:13 */ + +// Wide character type. +// Locale-writers should change this as necessary to +// be big enough to hold unique values not between 0 and 127, +// and not (wchar_t) -1, for each defined multibyte character. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// A null pointer constant. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Returned by `time'. +type Time_t = int64 /* time_t.h:10:18 */ + +// NB: Include guard matches what uses. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Endian macros for string.h functions +// Copyright (C) 1992-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Definitions for byte order, according to significance of bytes, +// from low addresses to high addresses. The value is what you get by +// putting '4' in the most significant byte, '3' in the second most +// significant byte, '2' in the second least significant byte, and '1' +// in the least significant byte, and then writing down one digit for +// each byte, starting with the byte at the lowest address at the left, +// and proceeding to the byte with the highest address at the right. + +// This file defines `__BYTE_ORDER' for the particular machine. + +// LoongArch is little-endian. + +// Some machines may need to use a different endianness for floating point +// values. + +// POSIX.1b structure for a time value. This is like a `struct timeval' but +// +// has nanoseconds instead of microseconds. +type Timespec = struct { + Ftv_sec int64 + Ftv_nsec int64 +} /* struct_timespec.h:11:1 */ + +type Pid_t = int32 /* sched.h:38:17 */ + +// Get system specific constant and data structure definitions. +// Definitions of constants and data structure for POSIX 1003.1b-1993 +// scheduling interface. +// Copyright (C) 1996-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Scheduling algorithms. + +// Sched parameter structure. Generic version. +// Copyright (C) 1996-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Data structure to describe a process' schedulability. +type Sched_param = struct{ Fsched_priority int32 } /* struct_sched_param.h:23:1 */ + +// Definition of the cpu_set_t structure used by the POSIX 1003.1b-1993 +// scheduling interface. +// Copyright (C) 1996-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Size definition for CPU sets. + +// Type for array elements in 'cpu_set_t'. +type X__cpu_mask = uint64 /* cpu-set.h:32:25 */ + +// Basic access functions. + +// Data structure to describe CPU mask. +type Cpu_set_t = struct{ F__bits [16]uint64 } /* cpu-set.h:42:3 */ + +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// ISO C99 Standard: 7.23 Date and time + +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Copyright (C) 1989-2023 Free Software Foundation, Inc. +// +// This file is part of GCC. +// +// GCC is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 3, or (at your option) +// any later version. +// +// GCC is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// Under Section 7 of GPL version 3, you are granted additional +// permissions described in the GCC Runtime Library Exception, version +// 3.1, as published by the Free Software Foundation. +// +// You should have received a copy of the GNU General Public License and +// a copy of the GCC Runtime Library Exception along with this program; +// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see +// . + +// ISO C Standard: 7.17 Common definitions + +// Any one of these symbols __need_* means that GNU libc +// wants us just to define one data type. So don't define +// the symbols that indicate this file's entire job has been done. + +// This avoids lossage on SunOS but only if stdtypes.h comes first. +// There's no way to win with the other order! Sun lossage. + +// Sequent's header files use _PTRDIFF_T_ in some conflicting way. +// Just ignore it. + +// On VxWorks, may have defined macros like +// _TYPE_size_t which will typedef size_t. fixincludes patched the +// vxTypesBase.h so that this macro is only defined if _GCC_SIZE_T is +// not defined, and so that defining this macro defines _GCC_SIZE_T. +// If we find that the macros are still defined at this point, we must +// invoke them so that the type is defined as expected. + +// In case nobody has defined these types, but we aren't running under +// GCC 2.00, make sure that __PTRDIFF_TYPE__, __SIZE_TYPE__, and +// __WCHAR_TYPE__ have reasonable values. This can happen if the +// parts of GCC is compiled by an older compiler, that actually +// include gstddef.h, such as collect2. + +// Signed type of difference of two pointers. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// Unsigned type of `sizeof' something. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// Wide character type. +// Locale-writers should change this as necessary to +// be big enough to hold unique values not between 0 and 127, +// and not (wchar_t) -1, for each defined multibyte character. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// A null pointer constant. + +// This defines CLOCKS_PER_SEC, which is the number of processor clock +// ticks per second, and possibly a number of other constants. +// System-dependent timing definitions. Linux version. +// Copyright (C) 1996-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// ISO/IEC 9899:1999 7.23.1: Components of time +// The macro `CLOCKS_PER_SEC' is an expression with type `clock_t' that is +// the number per second of the value returned by the `clock' function. +// CAE XSH, Issue 4, Version 2: +// The value of CLOCKS_PER_SEC is required to be 1 million on all +// XSI-conformant systems. + +// Identifier for system-wide realtime clock. +// Monotonic system-wide clock. +// High-resolution timer from the CPU. +// Thread-specific CPU-time clock. +// Monotonic system-wide clock, not adjusted for frequency scaling. +// Identifier for system-wide realtime clock, updated only on ticks. +// Monotonic system-wide clock, updated only on ticks. +// Monotonic system-wide clock that includes time spent in suspension. +// Like CLOCK_REALTIME but also wakes suspended system. +// Like CLOCK_BOOTTIME but also wakes suspended system. +// Like CLOCK_REALTIME but in International Atomic Time. + +// Flag to indicate time is absolute. + +// Many of the typedefs and structs whose official home is this header +// may also need to be defined by other headers. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Returned by `clock'. +type Clock_t = int64 /* clock_t.h:7:19 */ + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// ISO C `broken-down time' structure. +type Tm = struct { + Ftm_sec int32 + Ftm_min int32 + Ftm_hour int32 + Ftm_mday int32 + Ftm_mon int32 + Ftm_year int32 + Ftm_wday int32 + Ftm_yday int32 + Ftm_isdst int32 + F__ccgo_pad1 [4]byte + Ftm_gmtoff int64 + Ftm_zone uintptr +} /* struct_tm.h:7:1 */ + +// NB: Include guard matches what uses. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Clock ID used in clock and timer functions. +type Clockid_t = int32 /* clockid_t.h:7:21 */ + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Timer ID returned by `timer_create'. +type Timer_t = uintptr /* timer_t.h:7:19 */ + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// NB: Include guard matches what uses. + +// POSIX.1b structure for timer start values and intervals. +type Itimerspec = struct { + Fit_interval struct { + Ftv_sec int64 + Ftv_nsec int64 + } + Fit_value struct { + Ftv_sec int64 + Ftv_nsec int64 + } +} /* struct_itimerspec.h:8:1 */ + +// Definition of locale_t. +// Copyright (C) 2017-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Definition of struct __locale_struct and __locale_t. +// Copyright (C) 1997-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// POSIX.1-2008: the locale_t type, representing a locale context +// (implementation-namespace version). This type should be treated +// as opaque by applications; some details are exposed for the sake of +// efficiency in e.g. ctype functions. + +type X__locale_struct = struct { + F__locales [13]uintptr + F__ctype_b uintptr + F__ctype_tolower uintptr + F__ctype_toupper uintptr + F__names [13]uintptr +} /* __locale_t.h:27:1 */ + +type X__locale_t = uintptr /* __locale_t.h:41:32 */ + +type Locale_t = uintptr /* locale_t.h:24:20 */ + +// Endian macros for string.h functions +// Copyright (C) 1992-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Declaration of common pthread types for all architectures. +// Copyright (C) 2017-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// For internal mutex and condition variable definitions. +// Common threading primitives definitions for both POSIX and C11. +// Copyright (C) 2017-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Arch-specific definitions. Each architecture must define the following +// macros to define the expected sizes of pthread data types: +// +// __SIZEOF_PTHREAD_ATTR_T - size of pthread_attr_t. +// __SIZEOF_PTHREAD_MUTEX_T - size of pthread_mutex_t. +// __SIZEOF_PTHREAD_MUTEXATTR_T - size of pthread_mutexattr_t. +// __SIZEOF_PTHREAD_COND_T - size of pthread_cond_t. +// __SIZEOF_PTHREAD_CONDATTR_T - size of pthread_condattr_t. +// __SIZEOF_PTHREAD_RWLOCK_T - size of pthread_rwlock_t. +// __SIZEOF_PTHREAD_RWLOCKATTR_T - size of pthread_rwlockattr_t. +// __SIZEOF_PTHREAD_BARRIER_T - size of pthread_barrier_t. +// __SIZEOF_PTHREAD_BARRIERATTR_T - size of pthread_barrierattr_t. +// +// The additional macro defines any constraint for the lock alignment +// inside the thread structures: +// +// __LOCK_ALIGNMENT - for internal lock/futex usage. +// +// Same idea but for the once locking primitive: +// +// __ONCE_ALIGNMENT - for pthread_once_t/once_flag definition. + +// Machine-specific pthread type layouts. Generic version. +// Copyright (C) 2019-2023 Free Software Foundation, Inc. +// +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Monotonically increasing wide counters (at least 62 bits). +// Copyright (C) 2016-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Counter that is monotonically increasing (by less than 2**31 per +// +// increment), with a single writer, and an arbitrary number of +// readers. +type X__atomic_wide_counter = struct{ F__value64 uint64 } /* atomic_wide_counter.h:33:3 */ + +// Common definition of pthread_mutex_t. + +type X__pthread_internal_list = struct { + F__prev uintptr + F__next uintptr +} /* thread-shared-types.h:51:9 */ + +// Common definition of pthread_mutex_t. + +type X__pthread_list_t = X__pthread_internal_list /* thread-shared-types.h:55:3 */ + +type X__pthread_internal_slist = struct{ F__next uintptr } /* thread-shared-types.h:57:9 */ + +type X__pthread_slist_t = X__pthread_internal_slist /* thread-shared-types.h:60:3 */ + +// Arch-specific mutex definitions. A generic implementation is provided +// by sysdeps/nptl/bits/struct_mutex.h. If required, an architecture +// can override it by defining: +// +// 1. struct __pthread_mutex_s (used on both pthread_mutex_t and mtx_t +// definition). It should contains at least the internal members +// defined in the generic version. +// +// 2. __LOCK_ALIGNMENT for any extra attribute for internal lock used with +// atomic operations. +// +// 3. The macro __PTHREAD_MUTEX_INITIALIZER used for static initialization. +// It should initialize the mutex internal flag. + +// Default mutex implementation struct definitions. +// Copyright (C) 2019-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Generic struct for both POSIX and C11 mutexes. New ports are expected +// to use the default layout, however architecture can redefine it to +// add arch-specific extension (such as lock-elision). The struct have +// a size of 32 bytes on LP32 and 40 bytes on LP64 architectures. + +type X__pthread_mutex_s = struct { + F__lock int32 + F__count uint32 + F__owner int32 + F__nusers uint32 + F__kind int32 + F__spins int32 + F__list X__pthread_list_t +} /* struct_mutex.h:27:1 */ + +// Arch-sepecific read-write lock definitions. A generic implementation is +// provided by struct_rwlock.h. If required, an architecture can override it +// by defining: +// +// 1. struct __pthread_rwlock_arch_t (used on pthread_rwlock_t definition). +// It should contain at least the internal members defined in the +// generic version. +// +// 2. The macro __PTHREAD_RWLOCK_INITIALIZER used for static initialization. +// It should initialize the rwlock internal type. + +// Default read-write lock implementation struct definitions. +// Copyright (C) 2019-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Endian macros for string.h functions +// Copyright (C) 1992-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Generic struct for both POSIX read-write lock. New ports are expected +// to use the default layout, however archictetures can redefine it to add +// arch-specific extensions (such as lock-elision). The struct have a size +// of 32 bytes on both LP32 and LP64 architectures. + +type X__pthread_rwlock_arch_t = struct { + F__readers uint32 + F__writers uint32 + F__wrphase_futex uint32 + F__writers_futex uint32 + F__pad3 uint32 + F__pad4 uint32 + F__flags uint8 + F__shared uint8 + F__pad1 uint8 + F__pad2 uint8 + F__cur_writer int32 +} /* struct_rwlock.h:29:1 */ + +// Common definition of pthread_cond_t. + +type X__pthread_cond_s = struct { + F__wseq X__atomic_wide_counter + F__g1_start X__atomic_wide_counter + F__g_refs [2]uint32 + F__g_size [2]uint32 + F__g1_orig_size uint32 + F__wrefs uint32 + F__g_signals [2]uint32 +} /* thread-shared-types.h:94:1 */ + +type X__tss_t = uint32 /* thread-shared-types.h:105:22 */ +type X__thrd_t = uint64 /* thread-shared-types.h:106:27 */ + +type X__once_flag = struct{ F__data int32 } /* thread-shared-types.h:111:3 */ + +// Thread identifiers. The structure of the attribute type is not +// +// exposed on purpose. +type Pthread_t = uint64 /* pthreadtypes.h:27:27 */ + +// Data structures for mutex handling. The structure of the attribute +// +// type is not exposed on purpose. +type Pthread_mutexattr_t = struct { + F__ccgo_pad1 [0]uint32 + F__size [4]int8 +} /* pthreadtypes.h:36:3 */ + +// Data structure for condition variable handling. The structure of +// +// the attribute type is not exposed on purpose. +type Pthread_condattr_t = struct { + F__ccgo_pad1 [0]uint32 + F__size [4]int8 +} /* pthreadtypes.h:45:3 */ + +// Keys for thread-specific data +type Pthread_key_t = uint32 /* pthreadtypes.h:49:22 */ + +// Once-only execution +type Pthread_once_t = int32 /* pthreadtypes.h:53:30 */ + +type Pthread_attr_t1 = struct { + F__ccgo_pad1 [0]uint64 + F__size [56]int8 +} /* pthreadtypes.h:56:1 */ + +type Pthread_attr_t = Pthread_attr_t1 /* pthreadtypes.h:62:30 */ + +type Pthread_mutex_t = struct{ F__data X__pthread_mutex_s } /* pthreadtypes.h:72:3 */ + +type Pthread_cond_t = struct{ F__data X__pthread_cond_s } /* pthreadtypes.h:80:3 */ + +// Data structure for reader-writer lock variable handling. The +// +// structure of the attribute type is deliberately not exposed. +type Pthread_rwlock_t = struct { + F__ccgo_pad1 [0]uint64 + F__data X__pthread_rwlock_arch_t + F__ccgo_pad2 [24]byte +} /* pthreadtypes.h:91:3 */ + +type Pthread_rwlockattr_t = struct { + F__ccgo_pad1 [0]uint64 + F__size [8]int8 +} /* pthreadtypes.h:97:3 */ + +// POSIX spinlock data type. +type Pthread_spinlock_t = int32 /* pthreadtypes.h:103:22 */ + +// POSIX barriers data type. The structure of the type is +// +// deliberately not exposed. +type Pthread_barrier_t = struct { + F__ccgo_pad1 [0]uint64 + F__size [32]int8 +} /* pthreadtypes.h:112:3 */ + +type Pthread_barrierattr_t = struct { + F__ccgo_pad1 [0]uint32 + F__size [4]int8 +} /* pthreadtypes.h:118:3 */ + +// Define the machine-dependent type `jmp_buf'. +// Copyright (C) 2022-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library. If not, see +// . + +type X__jmp_buf_internal_tag = struct { + F__pc int64 + F__sp int64 + F__x int64 + F__fp int64 + F__regs [9]int64 + F__fpregs [8]float64 +} /* setjmp.h:22:9 */ + +// Define the machine-dependent type `jmp_buf'. +// Copyright (C) 2022-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library. If not, see +// . + +type X__jmp_buf = [1]X__jmp_buf_internal_tag /* setjmp.h:40:3 */ + +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// NB: Include guard matches what uses. + +type X__sigset_t = struct{ F__val [16]uint64 } /* __sigset_t.h:8:3 */ + +// Define struct __jmp_buf_tag. +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Define the machine-dependent type `jmp_buf'. +// Copyright (C) 2022-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library. If not, see +// . + +// Calling environment, plus possibly a saved signal mask. +type X__jmp_buf_tag = struct { + F__jmpbuf X__jmp_buf + F__mask_was_saved int32 + F__ccgo_pad1 [4]byte + F__saved_mask X__sigset_t +} /* struct___jmp_buf_tag.h:26:1 */ + +// Conditional variable handling. + +// Cleanup buffers +type X_pthread_cleanup_buffer = struct { + F__routine uintptr + F__arg uintptr + F__canceltype int32 + F__ccgo_pad1 [4]byte + F__prev uintptr +} /* pthread.h:159:1 */ + +// Cancellation handling with integration into exception handling. + +type X__cancel_jmp_buf_tag = struct { + F__cancel_jmp_buf X__jmp_buf + F__mask_was_saved int32 + F__ccgo_pad1 [4]byte +} /* pthread.h:538:1 */ + +type X__pthread_unwind_buf_t = struct { + F__cancel_jmp_buf [1]X__cancel_jmp_buf_tag + F__pad [4]uintptr +} /* pthread.h:548:3 */ + +// No special attributes by default. + +// Structure to hold the cleanup handler information. +type X__pthread_cleanup_frame = struct { + F__cancel_routine uintptr + F__cancel_arg uintptr + F__do_it int32 + F__cancel_type int32 +} /* pthread.h:557:1 */ + +var _ int8 /* gen.c:2:13: */ diff --git a/vendor/modernc.org/libc/pthread/pthread_linux_mips64le.go b/vendor/modernc.org/libc/pthread/pthread_linux_mips64le.go new file mode 100644 index 000000000..c7762fdd0 --- /dev/null +++ b/vendor/modernc.org/libc/pthread/pthread_linux_mips64le.go @@ -0,0 +1,1873 @@ +// Code generated by 'ccgo pthread/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o pthread/pthread_linux_amd64.go -pkgname pthread', DO NOT EDIT. + +package pthread + +import ( + "math" + "reflect" + "sync/atomic" + "unsafe" +) + +var _ = math.Pi +var _ reflect.Kind +var _ atomic.Value +var _ unsafe.Pointer + +const ( + CLOCK_BOOTTIME = 7 // time.h:60:1: + CLOCK_BOOTTIME_ALARM = 9 // time.h:64:1: + CLOCK_MONOTONIC = 1 // time.h:48:1: + CLOCK_MONOTONIC_COARSE = 6 // time.h:58:1: + CLOCK_MONOTONIC_RAW = 4 // time.h:54:1: + CLOCK_PROCESS_CPUTIME_ID = 2 // time.h:50:1: + CLOCK_REALTIME = 0 // time.h:46:1: + CLOCK_REALTIME_ALARM = 8 // time.h:62:1: + CLOCK_REALTIME_COARSE = 5 // time.h:56:1: + CLOCK_TAI = 11 // time.h:66:1: + CLOCK_THREAD_CPUTIME_ID = 3 // time.h:52:1: + PTHREAD_BARRIER_SERIAL_THREAD = -1 // pthread.h:189:1: + PTHREAD_ONCE_INIT = 0 // pthread.h:182:1: + SCHED_FIFO = 1 // sched.h:29:1: + SCHED_OTHER = 0 // sched.h:28:1: + SCHED_RR = 2 // sched.h:30:1: + TIMER_ABSTIME = 1 // time.h:69:1: + TIME_UTC = 1 // time.h:65:1: + X_ATFILE_SOURCE = 1 // features.h:342:1: + X_BITS_CPU_SET_H = 1 // cpu-set.h:21:1: + X_BITS_ENDIANNESS_H = 1 // endianness.h:2:1: + X_BITS_ENDIAN_H = 1 // endian.h:20:1: + X_BITS_PTHREADTYPES_ARCH_H = 1 // pthreadtypes-arch.h:19:1: + X_BITS_PTHREADTYPES_COMMON_H = 1 // pthreadtypes.h:20:1: + X_BITS_SCHED_H = 1 // sched.h:21:1: + X_BITS_SETJMP_H = 1 // setjmp.h:20:1: + X_BITS_TIME64_H = 1 // time64.h:24:1: + X_BITS_TIME_H = 1 // time.h:24:1: + X_BITS_TYPESIZES_H = 1 // typesizes.h:24:1: + X_BITS_TYPES_H = 1 // types.h:24:1: + X_BITS_TYPES_LOCALE_T_H = 1 // locale_t.h:20:1: + X_BITS_TYPES_STRUCT_SCHED_PARAM = 1 // struct_sched_param.h:20:1: + X_BITS_TYPES___LOCALE_T_H = 1 // __locale_t.h:21:1: + X_BSD_SIZE_T_ = 0 // stddef.h:189:1: + X_BSD_SIZE_T_DEFINED_ = 0 // stddef.h:192:1: + X_DEFAULT_SOURCE = 1 // features.h:227:1: + X_FEATURES_H = 1 // features.h:19:1: + X_FILE_OFFSET_BITS = 64 // :25:1: + X_GCC_SIZE_T = 0 // stddef.h:195:1: + X_LP64 = 1 // :284:1: + X_POSIX_C_SOURCE = 200809 // features.h:281:1: + X_POSIX_SOURCE = 1 // features.h:279:1: + X_PTHREAD_H = 1 // pthread.h:19:1: + X_RWLOCK_INTERNAL_H = 0 // struct_rwlock.h:21:1: + X_SCHED_H = 1 // sched.h:20:1: + X_SIZET_ = 0 // stddef.h:196:1: + X_SIZE_T = 0 // stddef.h:183:1: + X_SIZE_T_ = 0 // stddef.h:188:1: + X_SIZE_T_DECLARED = 0 // stddef.h:193:1: + X_SIZE_T_DEFINED = 0 // stddef.h:191:1: + X_SIZE_T_DEFINED_ = 0 // stddef.h:190:1: + X_STDC_PREDEF_H = 1 // :162:1: + X_STRUCT_TIMESPEC = 1 // struct_timespec.h:3:1: + X_SYS_CDEFS_H = 1 // cdefs.h:19:1: + X_SYS_SIZE_T_H = 0 // stddef.h:184:1: + X_THREAD_MUTEX_INTERNAL_H = 1 // struct_mutex.h:20:1: + X_THREAD_SHARED_TYPES_H = 1 // thread-shared-types.h:20:1: + X_TIME_H = 1 // time.h:23:1: + X_T_SIZE = 0 // stddef.h:186:1: + X_T_SIZE_ = 0 // stddef.h:185:1: + Linux = 1 // :231:1: + Unix = 1 // :177:1: +) + +// Read-write lock types. +const ( /* pthread.h:100:1: */ + PTHREAD_RWLOCK_PREFER_READER_NP = 0 + PTHREAD_RWLOCK_PREFER_WRITER_NP = 1 + PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP = 2 + PTHREAD_RWLOCK_DEFAULT_NP = 0 +) + +// Read-write lock initializers. + +// Scheduler inheritance. +const ( /* pthread.h:120:1: */ + PTHREAD_INHERIT_SCHED = 0 + PTHREAD_EXPLICIT_SCHED = 1 +) + +// Scope handling. +const ( /* pthread.h:130:1: */ + PTHREAD_SCOPE_SYSTEM = 0 + PTHREAD_SCOPE_PROCESS = 1 +) + +// Process shared or private flag. +const ( /* pthread.h:140:1: */ + PTHREAD_PROCESS_PRIVATE = 0 + PTHREAD_PROCESS_SHARED = 1 +) + +// Cancellation +const ( /* pthread.h:164:1: */ + PTHREAD_CANCEL_ENABLE = 0 + PTHREAD_CANCEL_DISABLE = 1 +) +const ( /* pthread.h:171:1: */ + PTHREAD_CANCEL_DEFERRED = 0 + PTHREAD_CANCEL_ASYNCHRONOUS = 1 +) + +// Determine the wordsize from the preprocessor defines. + +// Both x86-64 and x32 use the 64-bit system call interface. +// NB: Include guard matches what uses. + +// Detach state. +const ( /* pthread.h:33:1: */ + PTHREAD_CREATE_JOINABLE = 0 + PTHREAD_CREATE_DETACHED = 1 +) + +// Mutex types. +const ( /* pthread.h:43:1: */ + PTHREAD_MUTEX_TIMED_NP = 0 + PTHREAD_MUTEX_RECURSIVE_NP = 1 + PTHREAD_MUTEX_ERRORCHECK_NP = 2 + PTHREAD_MUTEX_ADAPTIVE_NP = 3 + PTHREAD_MUTEX_NORMAL = 0 + PTHREAD_MUTEX_RECURSIVE = 1 + PTHREAD_MUTEX_ERRORCHECK = 2 + PTHREAD_MUTEX_DEFAULT = 0 +) + +// Robust mutex or not flags. +const ( /* pthread.h:65:1: */ + PTHREAD_MUTEX_STALLED = 0 + PTHREAD_MUTEX_STALLED_NP = 0 + PTHREAD_MUTEX_ROBUST = 1 + PTHREAD_MUTEX_ROBUST_NP = 1 +) + +// Mutex protocols. +const ( /* pthread.h:77:1: */ + PTHREAD_PRIO_NONE = 0 + PTHREAD_PRIO_INHERIT = 1 + PTHREAD_PRIO_PROTECT = 2 +) + +type Ptrdiff_t = int64 /* :3:26 */ + +type Size_t = uint64 /* :9:23 */ + +type Wchar_t = int32 /* :15:24 */ + +type X__int128_t = struct { + Flo int64 + Fhi int64 +} /* :21:43 */ // must match modernc.org/mathutil.Int128 +type X__uint128_t = struct { + Flo uint64 + Fhi uint64 +} /* :22:44 */ // must match modernc.org/mathutil.Int128 + +type X__builtin_va_list = uintptr /* :46:14 */ +type X__float128 = float64 /* :47:21 */ + +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// These are defined by the user (or the compiler) +// to specify the desired environment: +// +// __STRICT_ANSI__ ISO Standard C. +// _ISOC99_SOURCE Extensions to ISO C89 from ISO C99. +// _ISOC11_SOURCE Extensions to ISO C99 from ISO C11. +// _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X. +// __STDC_WANT_LIB_EXT2__ +// Extensions to ISO C99 from TR 27431-2:2010. +// __STDC_WANT_IEC_60559_BFP_EXT__ +// Extensions to ISO C11 from TS 18661-1:2014. +// __STDC_WANT_IEC_60559_FUNCS_EXT__ +// Extensions to ISO C11 from TS 18661-4:2015. +// __STDC_WANT_IEC_60559_TYPES_EXT__ +// Extensions to ISO C11 from TS 18661-3:2015. +// +// _POSIX_SOURCE IEEE Std 1003.1. +// _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2; +// if >=199309L, add IEEE Std 1003.1b-1993; +// if >=199506L, add IEEE Std 1003.1c-1995; +// if >=200112L, all of IEEE 1003.1-2004 +// if >=200809L, all of IEEE 1003.1-2008 +// _XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if +// Single Unix conformance is wanted, to 600 for the +// sixth revision, to 700 for the seventh revision. +// _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions. +// _LARGEFILE_SOURCE Some more functions for correct standard I/O. +// _LARGEFILE64_SOURCE Additional functionality from LFS for large files. +// _FILE_OFFSET_BITS=N Select default filesystem interface. +// _ATFILE_SOURCE Additional *at interfaces. +// _GNU_SOURCE All of the above, plus GNU extensions. +// _DEFAULT_SOURCE The default set of features (taking precedence over +// __STRICT_ANSI__). +// +// _FORTIFY_SOURCE Add security hardening to many library functions. +// Set to 1 or 2; 2 performs stricter checks than 1. +// +// _REENTRANT, _THREAD_SAFE +// Obsolete; equivalent to _POSIX_C_SOURCE=199506L. +// +// The `-ansi' switch to the GNU C compiler, and standards conformance +// options such as `-std=c99', define __STRICT_ANSI__. If none of +// these are defined, or if _DEFAULT_SOURCE is defined, the default is +// to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to +// 200809L, as well as enabling miscellaneous functions from BSD and +// SVID. If more than one of these are defined, they accumulate. For +// example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together +// give you ISO C, 1003.1, and 1003.2, but nothing else. +// +// These are defined by this file and are used by the +// header files to decide what to declare or define: +// +// __GLIBC_USE (F) Define things from feature set F. This is defined +// to 1 or 0; the subsequent macros are either defined +// or undefined, and those tests should be moved to +// __GLIBC_USE. +// __USE_ISOC11 Define ISO C11 things. +// __USE_ISOC99 Define ISO C99 things. +// __USE_ISOC95 Define ISO C90 AMD1 (C95) things. +// __USE_ISOCXX11 Define ISO C++11 things. +// __USE_POSIX Define IEEE Std 1003.1 things. +// __USE_POSIX2 Define IEEE Std 1003.2 things. +// __USE_POSIX199309 Define IEEE Std 1003.1, and .1b things. +// __USE_POSIX199506 Define IEEE Std 1003.1, .1b, .1c and .1i things. +// __USE_XOPEN Define XPG things. +// __USE_XOPEN_EXTENDED Define X/Open Unix things. +// __USE_UNIX98 Define Single Unix V2 things. +// __USE_XOPEN2K Define XPG6 things. +// __USE_XOPEN2KXSI Define XPG6 XSI things. +// __USE_XOPEN2K8 Define XPG7 things. +// __USE_XOPEN2K8XSI Define XPG7 XSI things. +// __USE_LARGEFILE Define correct standard I/O things. +// __USE_LARGEFILE64 Define LFS things with separate names. +// __USE_FILE_OFFSET64 Define 64bit interface as default. +// __USE_MISC Define things from 4.3BSD or System V Unix. +// __USE_ATFILE Define *at interfaces and AT_* constants for them. +// __USE_GNU Define GNU extensions. +// __USE_FORTIFY_LEVEL Additional security measures used, according to level. +// +// The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are +// defined by this file unconditionally. `__GNU_LIBRARY__' is provided +// only for compatibility. All new code should use the other symbols +// to test for features. +// +// All macros listed above as possibly being defined by this file are +// explicitly undefined if they are not explicitly defined. +// Feature-test macros that are not defined by the user or compiler +// but are implied by the other feature-test macros defined (or by the +// lack of any definitions) are defined by the file. +// +// ISO C feature test macros depend on the definition of the macro +// when an affected header is included, not when the first system +// header is included, and so they are handled in +// , which does not have a multiple include +// guard. Feature test macros that can be handled from the first +// system header included are handled here. + +// Undefine everything, so we get a clean slate. + +// Suppress kernel-name space pollution unless user expressedly asks +// for it. + +// Convenience macro to test the version of gcc. +// Use like this: +// #if __GNUC_PREREQ (2,8) +// ... code requiring gcc 2.8 or later ... +// #endif +// Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was +// added in 2.0. + +// Similarly for clang. Features added to GCC after version 4.2 may +// or may not also be available in clang, and clang's definitions of +// __GNUC(_MINOR)__ are fixed at 4 and 2 respectively. Not all such +// features can be queried via __has_extension/__has_feature. + +// Whether to use feature set F. + +// _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for +// _DEFAULT_SOURCE. If _DEFAULT_SOURCE is present we do not +// issue a warning; the expectation is that the source is being +// transitioned to use the new macro. + +// If _GNU_SOURCE was defined by the user, turn on all the other features. + +// If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined, +// define _DEFAULT_SOURCE. + +// This is to enable the ISO C2X extension. + +// This is to enable the ISO C11 extension. + +// This is to enable the ISO C99 extension. + +// This is to enable the ISO C90 Amendment 1:1995 extension. + +// If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE +// is defined, use POSIX.1-2008 (or another version depending on +// _XOPEN_SOURCE). + +// Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be +// defined in all multithreaded code. GNU libc has not required this +// for many years. We now treat them as compatibility synonyms for +// _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with +// comprehensive support for multithreaded code. Using them never +// lowers the selected level of POSIX conformance, only raises it. + +// The function 'gets' existed in C89, but is impossible to use +// safely. It has been removed from ISO C11 and ISO C++14. Note: for +// compatibility with various implementations of , this test +// must consider only the value of __cplusplus when compiling C++. + +// GNU formerly extended the scanf functions with modified format +// specifiers %as, %aS, and %a[...] that allocate a buffer for the +// input using malloc. This extension conflicts with ISO C99, which +// defines %a as a standalone format specifier that reads a floating- +// point number; moreover, POSIX.1-2008 provides the same feature +// using the modifier letter 'm' instead (%ms, %mS, %m[...]). +// +// We now follow C99 unless GNU extensions are active and the compiler +// is specifically in C89 or C++98 mode (strict or not). For +// instance, with GCC, -std=gnu11 will have C99-compliant scanf with +// or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the +// old extension. + +// Get definitions of __STDC_* predefined macros, if the compiler has +// not preincluded this header automatically. +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// This macro indicates that the installed library is the GNU C Library. +// For historic reasons the value now is 6 and this will stay from now +// on. The use of this variable is deprecated. Use __GLIBC__ and +// __GLIBC_MINOR__ now (see below) when you want to test for a specific +// GNU C library version and use the values in to get +// the sonames of the shared libraries. + +// Major and minor version number of the GNU C library package. Use +// these macros to test for features in specific releases. + +// This is here only because every header file already includes this one. +// Copyright (C) 1992-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// We are almost always included from features.h. + +// The GNU libc does not support any K&R compilers or the traditional mode +// of ISO C compilers anymore. Check for some of the combinations not +// anymore supported. + +// Some user header file might have defined this before. + +// All functions, except those with callbacks or those that +// synchronize memory, are leaf functions. + +// GCC can always grok prototypes. For C++ programs we add throw() +// to help it optimize the function calls. But this works only with +// gcc 2.8.x and egcs. For gcc 3.2 and up we even mark C functions +// as non-throwing using a function attribute since programs can use +// the -fexceptions options for C code as well. + +// Compilers that are not clang may object to +// #if defined __clang__ && __has_extension(...) +// even though they do not need to evaluate the right-hand side of the &&. + +// These two macros are not used in glibc anymore. They are kept here +// only because some other projects expect the macros to be defined. + +// For these things, GCC behaves the ANSI way normally, +// and the non-ANSI way under -traditional. + +// This is not a typedef so `const __ptr_t' does the right thing. + +// C++ needs to know that types and declarations are C, not C++. + +// Fortify support. + +// Support for flexible arrays. +// Headers that should use flexible arrays only if they're "real" +// (e.g. only if they won't affect sizeof()) should test +// #if __glibc_c99_flexarr_available. + +// __asm__ ("xyz") is used throughout the headers to rename functions +// at the assembly language level. This is wrapped by the __REDIRECT +// macro, in order to support compilers that can do this some other +// way. When compilers don't support asm-names at all, we have to do +// preprocessor tricks instead (which don't have exactly the right +// semantics, but it's the best we can do). +// +// Example: +// int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid); + +// +// #elif __SOME_OTHER_COMPILER__ +// +// # define __REDIRECT(name, proto, alias) name proto; _Pragma("let " #name " = " #alias) + +// GCC has various useful declarations that can be made with the +// `__attribute__' syntax. All of the ways we use this do fine if +// they are omitted for compilers that don't understand it. + +// At some point during the gcc 2.96 development the `malloc' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// Tell the compiler which arguments to an allocation function +// indicate the size of the allocation. + +// At some point during the gcc 2.96 development the `pure' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// This declaration tells the compiler that the value is constant. + +// At some point during the gcc 3.1 development the `used' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// Since version 3.2, gcc allows marking deprecated functions. + +// Since version 4.5, gcc also allows one to specify the message printed +// when a deprecated function is used. clang claims to be gcc 4.2, but +// may also support this feature. + +// At some point during the gcc 2.8 development the `format_arg' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. +// If several `format_arg' attributes are given for the same function, in +// gcc-3.0 and older, all but the last one are ignored. In newer gccs, +// all designated arguments are considered. + +// At some point during the gcc 2.97 development the `strfmon' format +// attribute for functions was introduced. We don't want to use it +// unconditionally (although this would be possible) since it +// generates warnings. + +// The nonull function attribute allows to mark pointer parameters which +// must not be NULL. + +// If fortification mode, we warn about unused results of certain +// function calls which can lead to problems. + +// Forces a function to be always inlined. +// The Linux kernel defines __always_inline in stddef.h (283d7573), and +// it conflicts with this definition. Therefore undefine it first to +// allow either header to be included first. + +// Associate error messages with the source location of the call site rather +// than with the source location inside the function. + +// GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99 +// inline semantics, unless -fgnu89-inline is used. Using __GNUC_STDC_INLINE__ +// or __GNUC_GNU_INLINE is not a good enough check for gcc because gcc versions +// older than 4.3 may define these macros and still not guarantee GNU inlining +// semantics. +// +// clang++ identifies itself as gcc-4.2, but has support for GNU inlining +// semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and +// __GNUC_GNU_INLINE__ macro definitions. + +// GCC 4.3 and above allow passing all anonymous arguments of an +// __extern_always_inline function to some other vararg function. + +// It is possible to compile containing GCC extensions even if GCC is +// run in pedantic mode if the uses are carefully marked using the +// `__extension__' keyword. But this is not generally available before +// version 2.8. + +// __restrict is known in EGCS 1.2 and above. + +// ISO C99 also allows to declare arrays as non-overlapping. The syntax is +// array_name[restrict] +// GCC 3.1 supports this. + +// Describes a char array whose address can safely be passed as the first +// argument to strncpy and strncat, as the char array is not necessarily +// a NUL-terminated string. + +// Undefine (also defined in libc-symbols.h). +// Copies attributes from the declaration or type referenced by +// the argument. + +// Determine the wordsize from the preprocessor defines. + +// Both x86-64 and x32 use the 64-bit system call interface. +// Properties of long double type. ldbl-96 version. +// Copyright (C) 2016-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// long double is distinct from double, so there is nothing to +// define here. + +// __glibc_macro_warning (MESSAGE) issues warning MESSAGE. This is +// intended for use in preprocessor macros. +// +// Note: MESSAGE must be a _single_ string; concatenation of string +// literals is not supported. + +// Generic selection (ISO C11) is a C-only feature, available in GCC +// since version 4.9. Previous versions do not provide generic +// selection, even though they might set __STDC_VERSION__ to 201112L, +// when in -std=c11 mode. Thus, we must check for !defined __GNUC__ +// when testing __STDC_VERSION__ for generic selection support. +// On the other hand, Clang also defines __GNUC__, so a clang-specific +// check is required to enable the use of generic selection. + +// If we don't have __REDIRECT, prototypes will be missing if +// __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64]. + +// Decide whether we can define 'extern inline' functions in headers. + +// This is here only because every header file already includes this one. +// Get the definitions of all the appropriate `__stub_FUNCTION' symbols. +// contains `#define __stub_FUNCTION' when FUNCTION is a stub +// that will always return failure (and set errno to ENOSYS). +// This file is automatically generated. +// This file selects the right generated file of `__stub_FUNCTION' macros +// based on the architecture being compiled for. + +// This file is automatically generated. +// It defines a symbol `__stub_FUNCTION' for each function +// in the C library which is a stub, meaning it will fail +// every time called, usually setting errno to ENOSYS. + +// Definitions for POSIX 1003.1b-1993 (aka POSIX.4) scheduling interface. +// Copyright (C) 1996-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Get type definitions. +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Determine the wordsize from the preprocessor defines. + +// Both x86-64 and x32 use the 64-bit system call interface. +// Bit size of the time_t type at glibc build time, x86-64 and x32 case. +// Copyright (C) 2018-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// For others, time size is word size. + +// Convenience types. +type X__u_char = uint8 /* types.h:31:23 */ +type X__u_short = uint16 /* types.h:32:28 */ +type X__u_int = uint32 /* types.h:33:22 */ +type X__u_long = uint64 /* types.h:34:27 */ + +// Fixed-size types, underlying types depend on word size and compiler. +type X__int8_t = int8 /* types.h:37:21 */ +type X__uint8_t = uint8 /* types.h:38:23 */ +type X__int16_t = int16 /* types.h:39:26 */ +type X__uint16_t = uint16 /* types.h:40:28 */ +type X__int32_t = int32 /* types.h:41:20 */ +type X__uint32_t = uint32 /* types.h:42:22 */ +type X__int64_t = int64 /* types.h:44:25 */ +type X__uint64_t = uint64 /* types.h:45:27 */ + +// Smallest types with at least a given width. +type X__int_least8_t = X__int8_t /* types.h:52:18 */ +type X__uint_least8_t = X__uint8_t /* types.h:53:19 */ +type X__int_least16_t = X__int16_t /* types.h:54:19 */ +type X__uint_least16_t = X__uint16_t /* types.h:55:20 */ +type X__int_least32_t = X__int32_t /* types.h:56:19 */ +type X__uint_least32_t = X__uint32_t /* types.h:57:20 */ +type X__int_least64_t = X__int64_t /* types.h:58:19 */ +type X__uint_least64_t = X__uint64_t /* types.h:59:20 */ + +// quad_t is also 64 bits. +type X__quad_t = int64 /* types.h:63:18 */ +type X__u_quad_t = uint64 /* types.h:64:27 */ + +// Largest integral types. +type X__intmax_t = int64 /* types.h:72:18 */ +type X__uintmax_t = uint64 /* types.h:73:27 */ + +// The machine-dependent file defines __*_T_TYPE +// macros for each of the OS types we define below. The definitions +// of those macros must use the following macros for underlying types. +// We define __S_TYPE and __U_TYPE for the signed and unsigned +// variants of each of the following integer types on this machine. +// +// 16 -- "natural" 16-bit type (always short) +// 32 -- "natural" 32-bit type (always int) +// 64 -- "natural" 64-bit type (long or long long) +// LONG32 -- 32-bit type, traditionally long +// QUAD -- 64-bit type, traditionally long long +// WORD -- natural type of __WORDSIZE bits (int or long) +// LONGWORD -- type of __WORDSIZE bits, traditionally long +// +// We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the +// conventional uses of `long' or `long long' type modifiers match the +// types we define, even when a less-adorned type would be the same size. +// This matters for (somewhat) portably writing printf/scanf formats for +// these types, where using the appropriate l or ll format modifiers can +// make the typedefs and the formats match up across all GNU platforms. If +// we used `long' when it's 64 bits where `long long' is expected, then the +// compiler would warn about the formats not matching the argument types, +// and the programmer changing them to shut up the compiler would break the +// program's portability. +// +// Here we assume what is presently the case in all the GCC configurations +// we support: long long is always 64 bits, long is always word/address size, +// and int is always 32 bits. + +// No need to mark the typedef with __extension__. +// bits/typesizes.h -- underlying types for *_t. Linux/x86-64 version. +// Copyright (C) 2012-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// See for the meaning of these macros. This file exists so +// that need not vary across different GNU platforms. + +// X32 kernel interface is 64-bit. + +// Tell the libc code that off_t and off64_t are actually the same type +// for all ABI purposes, even if possibly expressed as different base types +// for C type-checking purposes. + +// Same for ino_t and ino64_t. + +// And for __rlim_t and __rlim64_t. + +// And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t. + +// Number of descriptors that can fit in an `fd_set'. + +// bits/time64.h -- underlying types for __time64_t. Generic version. +// Copyright (C) 2018-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Define __TIME64_T_TYPE so that it is always a 64-bit type. + +// If we already have 64-bit time type then use it. + +type X__dev_t = uint64 /* types.h:145:25 */ // Type of device numbers. +type X__uid_t = uint32 /* types.h:146:25 */ // Type of user identifications. +type X__gid_t = uint32 /* types.h:147:25 */ // Type of group identifications. +type X__ino_t = uint64 /* types.h:148:25 */ // Type of file serial numbers. +type X__ino64_t = uint64 /* types.h:149:27 */ // Type of file serial numbers (LFS). +type X__mode_t = uint32 /* types.h:150:26 */ // Type of file attribute bitmasks. +type X__nlink_t = uint64 /* types.h:151:27 */ // Type of file link counts. +type X__off_t = int64 /* types.h:152:25 */ // Type of file sizes and offsets. +type X__off64_t = int64 /* types.h:153:27 */ // Type of file sizes and offsets (LFS). +type X__pid_t = int32 /* types.h:154:25 */ // Type of process identifications. +type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs. +type X__clock_t = int64 /* types.h:156:27 */ // Type of CPU usage counts. +type X__rlim_t = uint64 /* types.h:157:26 */ // Type for resource measurement. +type X__rlim64_t = uint64 /* types.h:158:28 */ // Type for resource measurement (LFS). +type X__id_t = uint32 /* types.h:159:24 */ // General type for IDs. +type X__time_t = int64 /* types.h:160:26 */ // Seconds since the Epoch. +type X__useconds_t = uint32 /* types.h:161:30 */ // Count of microseconds. +type X__suseconds_t = int64 /* types.h:162:31 */ // Signed count of microseconds. + +type X__daddr_t = int32 /* types.h:164:27 */ // The type of a disk address. +type X__key_t = int32 /* types.h:165:25 */ // Type of an IPC key. + +// Clock ID used in clock and timer functions. +type X__clockid_t = int32 /* types.h:168:29 */ + +// Timer ID returned by `timer_create'. +type X__timer_t = uintptr /* types.h:171:12 */ + +// Type to represent block size. +type X__blksize_t = int64 /* types.h:174:29 */ + +// Types from the Large File Support interface. + +// Type to count number of disk blocks. +type X__blkcnt_t = int64 /* types.h:179:28 */ +type X__blkcnt64_t = int64 /* types.h:180:30 */ + +// Type to count file system blocks. +type X__fsblkcnt_t = uint64 /* types.h:183:30 */ +type X__fsblkcnt64_t = uint64 /* types.h:184:32 */ + +// Type to count file system nodes. +type X__fsfilcnt_t = uint64 /* types.h:187:30 */ +type X__fsfilcnt64_t = uint64 /* types.h:188:32 */ + +// Type of miscellaneous file system fields. +type X__fsword_t = int64 /* types.h:191:28 */ + +type X__ssize_t = int64 /* types.h:193:27 */ // Type of a byte count, or error. + +// Signed long type used in system calls. +type X__syscall_slong_t = int64 /* types.h:196:33 */ +// Unsigned long type used in system calls. +type X__syscall_ulong_t = uint64 /* types.h:198:33 */ + +// These few don't really vary by system, they always correspond +// +// to one of the other defined types. +type X__loff_t = X__off64_t /* types.h:202:19 */ // Type of file sizes and offsets (LFS). +type X__caddr_t = uintptr /* types.h:203:14 */ + +// Duplicates info from stdint.h but this is used in unistd.h. +type X__intptr_t = int64 /* types.h:206:25 */ + +// Duplicate info from sys/socket.h. +type X__socklen_t = uint32 /* types.h:209:23 */ + +// C99: An integer type that can be accessed as an atomic entity, +// +// even in the presence of asynchronous interrupts. +// It is not currently necessary for this to be machine-specific. +type X__sig_atomic_t = int32 /* types.h:214:13 */ + +// Wide character type. +// Locale-writers should change this as necessary to +// be big enough to hold unique values not between 0 and 127, +// and not (wchar_t) -1, for each defined multibyte character. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// A null pointer constant. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Returned by `time'. +type Time_t = X__time_t /* time_t.h:7:18 */ + +// NB: Include guard matches what uses. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Endian macros for string.h functions +// Copyright (C) 1992-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Definitions for byte order, according to significance of bytes, +// from low addresses to high addresses. The value is what you get by +// putting '4' in the most significant byte, '3' in the second most +// significant byte, '2' in the second least significant byte, and '1' +// in the least significant byte, and then writing down one digit for +// each byte, starting with the byte at the lowest address at the left, +// and proceeding to the byte with the highest address at the right. + +// This file defines `__BYTE_ORDER' for the particular machine. + +// i386/x86_64 are little-endian. + +// Some machines may need to use a different endianness for floating point +// values. + +// POSIX.1b structure for a time value. This is like a `struct timeval' but +// +// has nanoseconds instead of microseconds. +type Timespec = struct { + Ftv_sec X__time_t + Ftv_nsec X__syscall_slong_t +} /* struct_timespec.h:10:1 */ + +type Pid_t = X__pid_t /* sched.h:38:17 */ + +// Get system specific constant and data structure definitions. +// Definitions of constants and data structure for POSIX 1003.1b-1993 +// scheduling interface. +// Copyright (C) 1996-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Scheduling algorithms. + +// Sched parameter structure. Generic version. +// Copyright (C) 1996-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Data structure to describe a process' schedulability. +type Sched_param = struct{ Fsched_priority int32 } /* struct_sched_param.h:23:1 */ + +// Definition of the cpu_set_t structure used by the POSIX 1003.1b-1993 +// scheduling interface. +// Copyright (C) 1996-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Size definition for CPU sets. + +// Type for array elements in 'cpu_set_t'. +type X__cpu_mask = uint64 /* cpu-set.h:32:25 */ + +// Basic access functions. + +// Data structure to describe CPU mask. +type Cpu_set_t = struct{ F__bits [16]X__cpu_mask } /* cpu-set.h:42:3 */ + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// ISO C99 Standard: 7.23 Date and time + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Copyright (C) 1989-2020 Free Software Foundation, Inc. +// +// This file is part of GCC. +// +// GCC is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 3, or (at your option) +// any later version. +// +// GCC is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// Under Section 7 of GPL version 3, you are granted additional +// permissions described in the GCC Runtime Library Exception, version +// 3.1, as published by the Free Software Foundation. +// +// You should have received a copy of the GNU General Public License and +// a copy of the GCC Runtime Library Exception along with this program; +// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see +// . + +// ISO C Standard: 7.17 Common definitions + +// Any one of these symbols __need_* means that GNU libc +// wants us just to define one data type. So don't define +// the symbols that indicate this file's entire job has been done. + +// This avoids lossage on SunOS but only if stdtypes.h comes first. +// There's no way to win with the other order! Sun lossage. + +// Sequent's header files use _PTRDIFF_T_ in some conflicting way. +// Just ignore it. + +// On VxWorks, may have defined macros like +// _TYPE_size_t which will typedef size_t. fixincludes patched the +// vxTypesBase.h so that this macro is only defined if _GCC_SIZE_T is +// not defined, and so that defining this macro defines _GCC_SIZE_T. +// If we find that the macros are still defined at this point, we must +// invoke them so that the type is defined as expected. + +// In case nobody has defined these types, but we aren't running under +// GCC 2.00, make sure that __PTRDIFF_TYPE__, __SIZE_TYPE__, and +// __WCHAR_TYPE__ have reasonable values. This can happen if the +// parts of GCC is compiled by an older compiler, that actually +// include gstddef.h, such as collect2. + +// Signed type of difference of two pointers. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// Unsigned type of `sizeof' something. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// Wide character type. +// Locale-writers should change this as necessary to +// be big enough to hold unique values not between 0 and 127, +// and not (wchar_t) -1, for each defined multibyte character. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// A null pointer constant. + +// This defines CLOCKS_PER_SEC, which is the number of processor clock +// ticks per second, and possibly a number of other constants. +// System-dependent timing definitions. Linux version. +// Copyright (C) 1996-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// ISO/IEC 9899:1999 7.23.1: Components of time +// The macro `CLOCKS_PER_SEC' is an expression with type `clock_t' that is +// the number per second of the value returned by the `clock' function. +// CAE XSH, Issue 4, Version 2: +// The value of CLOCKS_PER_SEC is required to be 1 million on all +// XSI-conformant systems. + +// Identifier for system-wide realtime clock. +// Monotonic system-wide clock. +// High-resolution timer from the CPU. +// Thread-specific CPU-time clock. +// Monotonic system-wide clock, not adjusted for frequency scaling. +// Identifier for system-wide realtime clock, updated only on ticks. +// Monotonic system-wide clock, updated only on ticks. +// Monotonic system-wide clock that includes time spent in suspension. +// Like CLOCK_REALTIME but also wakes suspended system. +// Like CLOCK_BOOTTIME but also wakes suspended system. +// Like CLOCK_REALTIME but in International Atomic Time. + +// Flag to indicate time is absolute. + +// Many of the typedefs and structs whose official home is this header +// may also need to be defined by other headers. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Returned by `clock'. +type Clock_t = X__clock_t /* clock_t.h:7:19 */ + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// ISO C `broken-down time' structure. +type Tm = struct { + Ftm_sec int32 + Ftm_min int32 + Ftm_hour int32 + Ftm_mday int32 + Ftm_mon int32 + Ftm_year int32 + Ftm_wday int32 + Ftm_yday int32 + Ftm_isdst int32 + F__ccgo_pad1 [4]byte + Ftm_gmtoff int64 + Ftm_zone uintptr +} /* struct_tm.h:7:1 */ + +// NB: Include guard matches what uses. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Clock ID used in clock and timer functions. +type Clockid_t = X__clockid_t /* clockid_t.h:7:21 */ + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Timer ID returned by `timer_create'. +type Timer_t = X__timer_t /* timer_t.h:7:19 */ + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// NB: Include guard matches what uses. + +// POSIX.1b structure for timer start values and intervals. +type Itimerspec = struct { + Fit_interval struct { + Ftv_sec X__time_t + Ftv_nsec X__syscall_slong_t + } + Fit_value struct { + Ftv_sec X__time_t + Ftv_nsec X__syscall_slong_t + } +} /* struct_itimerspec.h:8:1 */ + +// Definition of locale_t. +// Copyright (C) 2017-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Definition of struct __locale_struct and __locale_t. +// Copyright (C) 1997-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// Contributed by Ulrich Drepper , 1997. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// POSIX.1-2008: the locale_t type, representing a locale context +// (implementation-namespace version). This type should be treated +// as opaque by applications; some details are exposed for the sake of +// efficiency in e.g. ctype functions. + +type X__locale_struct = struct { + F__locales [13]uintptr + F__ctype_b uintptr + F__ctype_tolower uintptr + F__ctype_toupper uintptr + F__names [13]uintptr +} /* __locale_t.h:28:1 */ + +type X__locale_t = uintptr /* __locale_t.h:42:32 */ + +type Locale_t = X__locale_t /* locale_t.h:24:20 */ + +// Endian macros for string.h functions +// Copyright (C) 1992-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Declaration of common pthread types for all architectures. +// Copyright (C) 2017-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// For internal mutex and condition variable definitions. +// Common threading primitives definitions for both POSIX and C11. +// Copyright (C) 2017-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Arch-specific definitions. Each architecture must define the following +// macros to define the expected sizes of pthread data types: +// +// __SIZEOF_PTHREAD_ATTR_T - size of pthread_attr_t. +// __SIZEOF_PTHREAD_MUTEX_T - size of pthread_mutex_t. +// __SIZEOF_PTHREAD_MUTEXATTR_T - size of pthread_mutexattr_t. +// __SIZEOF_PTHREAD_COND_T - size of pthread_cond_t. +// __SIZEOF_PTHREAD_CONDATTR_T - size of pthread_condattr_t. +// __SIZEOF_PTHREAD_RWLOCK_T - size of pthread_rwlock_t. +// __SIZEOF_PTHREAD_RWLOCKATTR_T - size of pthread_rwlockattr_t. +// __SIZEOF_PTHREAD_BARRIER_T - size of pthread_barrier_t. +// __SIZEOF_PTHREAD_BARRIERATTR_T - size of pthread_barrierattr_t. +// +// The additional macro defines any constraint for the lock alignment +// inside the thread structures: +// +// __LOCK_ALIGNMENT - for internal lock/futex usage. +// +// Same idea but for the once locking primitive: +// +// __ONCE_ALIGNMENT - for pthread_once_t/once_flag definition. + +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Determine the wordsize from the preprocessor defines. + +// Both x86-64 and x32 use the 64-bit system call interface. + +// Common definition of pthread_mutex_t. + +type X__pthread_internal_list = struct { + F__prev uintptr + F__next uintptr +} /* thread-shared-types.h:49:9 */ + +// Endian macros for string.h functions +// Copyright (C) 1992-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Declaration of common pthread types for all architectures. +// Copyright (C) 2017-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// For internal mutex and condition variable definitions. +// Common threading primitives definitions for both POSIX and C11. +// Copyright (C) 2017-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Arch-specific definitions. Each architecture must define the following +// macros to define the expected sizes of pthread data types: +// +// __SIZEOF_PTHREAD_ATTR_T - size of pthread_attr_t. +// __SIZEOF_PTHREAD_MUTEX_T - size of pthread_mutex_t. +// __SIZEOF_PTHREAD_MUTEXATTR_T - size of pthread_mutexattr_t. +// __SIZEOF_PTHREAD_COND_T - size of pthread_cond_t. +// __SIZEOF_PTHREAD_CONDATTR_T - size of pthread_condattr_t. +// __SIZEOF_PTHREAD_RWLOCK_T - size of pthread_rwlock_t. +// __SIZEOF_PTHREAD_RWLOCKATTR_T - size of pthread_rwlockattr_t. +// __SIZEOF_PTHREAD_BARRIER_T - size of pthread_barrier_t. +// __SIZEOF_PTHREAD_BARRIERATTR_T - size of pthread_barrierattr_t. +// +// The additional macro defines any constraint for the lock alignment +// inside the thread structures: +// +// __LOCK_ALIGNMENT - for internal lock/futex usage. +// +// Same idea but for the once locking primitive: +// +// __ONCE_ALIGNMENT - for pthread_once_t/once_flag definition. + +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Determine the wordsize from the preprocessor defines. + +// Both x86-64 and x32 use the 64-bit system call interface. + +// Common definition of pthread_mutex_t. + +type X__pthread_list_t = X__pthread_internal_list /* thread-shared-types.h:53:3 */ + +type X__pthread_internal_slist = struct{ F__next uintptr } /* thread-shared-types.h:55:9 */ + +type X__pthread_slist_t = X__pthread_internal_slist /* thread-shared-types.h:58:3 */ + +// Arch-specific mutex definitions. A generic implementation is provided +// by sysdeps/nptl/bits/struct_mutex.h. If required, an architecture +// can override it by defining: +// +// 1. struct __pthread_mutex_s (used on both pthread_mutex_t and mtx_t +// definition). It should contains at least the internal members +// defined in the generic version. +// +// 2. __LOCK_ALIGNMENT for any extra attribute for internal lock used with +// atomic operations. +// +// 3. The macro __PTHREAD_MUTEX_INITIALIZER used for static initialization. +// It should initialize the mutex internal flag. + +// x86 internal mutex struct definitions. +// Copyright (C) 2019-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +type X__pthread_mutex_s = struct { + F__lock int32 + F__count uint32 + F__owner int32 + F__nusers uint32 + F__kind int32 + F__spins int16 + F__elision int16 + F__list X__pthread_list_t +} /* struct_mutex.h:22:1 */ + +// Arch-sepecific read-write lock definitions. A generic implementation is +// provided by struct_rwlock.h. If required, an architecture can override it +// by defining: +// +// 1. struct __pthread_rwlock_arch_t (used on pthread_rwlock_t definition). +// It should contain at least the internal members defined in the +// generic version. +// +// 2. The macro __PTHREAD_RWLOCK_INITIALIZER used for static initialization. +// It should initialize the rwlock internal type. + +// x86 internal rwlock struct definitions. +// Copyright (C) 2019-2020 Free Software Foundation, Inc. +// +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +type X__pthread_rwlock_arch_t = struct { + F__readers uint32 + F__writers uint32 + F__wrphase_futex uint32 + F__writers_futex uint32 + F__pad3 uint32 + F__pad4 uint32 + F__cur_writer int32 + F__shared int32 + F__rwelision int8 + F__pad1 [7]uint8 + F__pad2 uint64 + F__flags uint32 + F__ccgo_pad1 [4]byte +} /* struct_rwlock.h:23:1 */ + +// Common definition of pthread_cond_t. + +type X__pthread_cond_s = struct { + F__0 struct{ F__wseq uint64 } + F__8 struct{ F__g1_start uint64 } + F__g_refs [2]uint32 + F__g_size [2]uint32 + F__g1_orig_size uint32 + F__wrefs uint32 + F__g_signals [2]uint32 +} /* thread-shared-types.h:92:1 */ + +// Thread identifiers. The structure of the attribute type is not +// +// exposed on purpose. +type Pthread_t = uint64 /* pthreadtypes.h:27:27 */ + +// Data structures for mutex handling. The structure of the attribute +// +// type is not exposed on purpose. +type Pthread_mutexattr_t = struct { + F__ccgo_pad1 [0]uint32 + F__size [4]int8 +} /* pthreadtypes.h:36:3 */ + +// Data structure for condition variable handling. The structure of +// +// the attribute type is not exposed on purpose. +type Pthread_condattr_t = struct { + F__ccgo_pad1 [0]uint32 + F__size [4]int8 +} /* pthreadtypes.h:45:3 */ + +// Keys for thread-specific data +type Pthread_key_t = uint32 /* pthreadtypes.h:49:22 */ + +// Once-only execution +type Pthread_once_t = int32 /* pthreadtypes.h:53:30 */ + +type Pthread_attr_t1 = struct { + F__ccgo_pad1 [0]uint64 + F__size [56]int8 +} /* pthreadtypes.h:56:1 */ + +type Pthread_attr_t = Pthread_attr_t1 /* pthreadtypes.h:62:30 */ + +type Pthread_mutex_t = struct{ F__data X__pthread_mutex_s } /* pthreadtypes.h:72:3 */ + +type Pthread_cond_t = struct{ F__data X__pthread_cond_s } /* pthreadtypes.h:80:3 */ + +// Data structure for reader-writer lock variable handling. The +// +// structure of the attribute type is deliberately not exposed. +type Pthread_rwlock_t = struct{ F__data X__pthread_rwlock_arch_t } /* pthreadtypes.h:91:3 */ + +type Pthread_rwlockattr_t = struct { + F__ccgo_pad1 [0]uint64 + F__size [8]int8 +} /* pthreadtypes.h:97:3 */ + +// POSIX spinlock data type. +type Pthread_spinlock_t = int32 /* pthreadtypes.h:103:22 */ + +// POSIX barriers data type. The structure of the type is +// +// deliberately not exposed. +type Pthread_barrier_t = struct { + F__ccgo_pad1 [0]uint64 + F__size [32]int8 +} /* pthreadtypes.h:112:3 */ + +type Pthread_barrierattr_t = struct { + F__ccgo_pad1 [0]uint32 + F__size [4]int8 +} /* pthreadtypes.h:118:3 */ + +// Copyright (C) 2001-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Define the machine-dependent type `jmp_buf'. x86-64 version. + +// Determine the wordsize from the preprocessor defines. + +// Both x86-64 and x32 use the 64-bit system call interface. + +type X__jmp_buf = [8]int64 /* setjmp.h:31:18 */ + +// Conditional variable handling. + +// Cleanup buffers +type X_pthread_cleanup_buffer = struct { + F__routine uintptr + F__arg uintptr + F__canceltype int32 + F__ccgo_pad1 [4]byte + F__prev uintptr +} /* pthread.h:155:1 */ + +// Cancellation handling with integration into exception handling. + +type X__pthread_unwind_buf_t = struct { + F__cancel_jmp_buf [1]struct { + F__cancel_jmp_buf X__jmp_buf + F__mask_was_saved int32 + F__ccgo_pad1 [4]byte + } + F__pad [4]uintptr +} /* pthread.h:507:3 */ + +// No special attributes by default. + +// Structure to hold the cleanup handler information. +type X__pthread_cleanup_frame = struct { + F__cancel_routine uintptr + F__cancel_arg uintptr + F__do_it int32 + F__cancel_type int32 +} /* pthread.h:516:1 */ + +var _ int8 /* gen.c:2:13: */ diff --git a/vendor/modernc.org/libc/pthread_all.go b/vendor/modernc.org/libc/pthread_all.go index 4e2b7f105..be50411ec 100644 --- a/vendor/modernc.org/libc/pthread_all.go +++ b/vendor/modernc.org/libc/pthread_all.go @@ -2,8 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -//go:build !freebsd && !openbsd -// +build !freebsd,!openbsd +//go:build !freebsd && !openbsd && !(linux && (amd64 || arm64 || loong64 || ppc64le || s390x || riscv64 || 386 || arm)) package libc // import "modernc.org/libc" @@ -13,9 +12,16 @@ import ( "modernc.org/libc/pthread" ) +type pthreadAttr struct { + detachState int32 +} + // int pthread_attr_init(pthread_attr_t *attr); func Xpthread_attr_init(t *TLS, pAttr uintptr) int32 { - *(*pthread.Pthread_attr_t)(unsafe.Pointer(pAttr)) = pthread.Pthread_attr_t{} + if __ccgo_strace { + trc("t=%v pAttr=%v, (%v:)", t, pAttr, origin(2)) + } + *(*pthreadAttr)(unsafe.Pointer(pAttr)) = pthreadAttr{} return 0 } @@ -31,6 +37,9 @@ func Xpthread_attr_init(t *TLS, pAttr uintptr) int32 { // // int pthread_mutex_init(pthread_mutex_t *restrict mutex, const pthread_mutexattr_t *restrict attr); func Xpthread_mutex_init(t *TLS, pMutex, pAttr uintptr) int32 { + if __ccgo_strace { + trc("t=%v pAttr=%v, (%v:)", t, pAttr, origin(2)) + } typ := pthread.PTHREAD_MUTEX_DEFAULT if pAttr != 0 { typ = int(X__ccgo_pthreadMutexattrGettype(t, pAttr)) @@ -42,3 +51,14 @@ func Xpthread_mutex_init(t *TLS, pMutex, pAttr uintptr) int32 { mutexes[pMutex] = newMutex(typ) return 0 } + +func Xpthread_atfork(tls *TLS, prepare, parent, child uintptr) int32 { + // fork(2) not supported. + return 0 +} + +// int pthread_sigmask(int how, const sigset_t *restrict set, sigset_t *restrict old) +func Xpthread_sigmask(tls *TLS, now int32, set, old uintptr) int32 { + // ignored + return 0 +} diff --git a/vendor/modernc.org/libc/pthread_musl.go b/vendor/modernc.org/libc/pthread_musl.go new file mode 100644 index 000000000..266908fc6 --- /dev/null +++ b/vendor/modernc.org/libc/pthread_musl.go @@ -0,0 +1,547 @@ +// Copyright 2024 The Libc Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build linux && (amd64 || arm64 || loong64 || ppc64le || s390x || riscv64 || 386 || arm) + +package libc // import "modernc.org/libc" + +import ( + "runtime" + "sync" + "sync/atomic" + "time" + "unsafe" +) + +type pthreadAttr struct { + detachState int32 +} + +type pthreadCleanupItem struct { + routine, arg uintptr +} + +// C original, unpatched version +// +// include/alltypes.h.in:86:TYPEDEF struct { +// union { +// int __i[sizeof(long)==8?10:6]; +// volatile int __vi[sizeof(long)==8?10:6]; +// volatile void *volatile __p[sizeof(long)==8?5:6]; +// } __u; +// } pthread_mutex_t; + +//TODO(jnml) can remove __ccgo_room patches now. + +// We overlay the C version with our version below. It must not be larger than +// the C version. +type pthreadMutex struct { // gc 64b 32b | tinygo 64b 32b + sync.Mutex // 0 8 0 4 | 0 16 0 8 + count int32 // 8 4 4 4 | 16 4 8 4 + typ uint32 // 12 4 8 4 | 20 4 12 4 + owner int32 // 16 4 12 4 | 24 4 16 4 + // 20 16 | 28 20 +} + +type pthreadConds struct { + sync.Mutex + conds map[uintptr][]chan struct{} +} + +var ( + // Ensure there's enough space for unsafe type conversions. + _ [unsafe.Sizeof(Tpthread_mutex_t{}) - unsafe.Sizeof(pthreadMutex{})]byte + _ [unsafe.Sizeof(Tpthread_attr_t{}) - unsafe.Sizeof(pthreadAttr{})]byte + + pthreadKeysMutex sync.Mutex + pthreadKeyDestructors []uintptr + pthreadKeysFree []Tpthread_key_t + + conds = pthreadConds{conds: map[uintptr][]chan struct{}{}} +) + +func _pthread_setcancelstate(tls *TLS, new int32, old uintptr) int32 { + //TODO actually respect cancel state + if uint32(new) > 2 { + return EINVAL + } + + p := tls.pthread + unsafe.Offsetof(t__pthread{}.Fcanceldisable) + if old != 0 { + r := *(*int32)(unsafe.Pointer(p)) + *(*int32)(unsafe.Pointer(old)) = int32(byte(r)) + } + *(*int32)(unsafe.Pointer(p)) = new + return 0 +} + +func Xpthread_getspecific(tls *TLS, k Tpthread_key_t) uintptr { + return tls.pthreadKeyValues[k] +} + +func Xpthread_setspecific(tls *TLS, k Tpthread_key_t, x uintptr) int32 { + if tls.pthreadKeyValues == nil { + tls.pthreadKeyValues = map[Tpthread_key_t]uintptr{} + } + tls.pthreadKeyValues[k] = x + return 0 +} + +func Xpthread_key_create(tls *TLS, k uintptr, dtor uintptr) int32 { + pthreadKeysMutex.Lock() + + defer pthreadKeysMutex.Unlock() + + var key Tpthread_key_t + switch l := Tpthread_key_t(len(pthreadKeysFree)); { + case l == 0: + key = Tpthread_key_t(len(pthreadKeyDestructors)) + pthreadKeyDestructors = append(pthreadKeyDestructors, dtor) + default: + key = pthreadKeysFree[l-1] + pthreadKeysFree = pthreadKeysFree[:l-1] + pthreadKeyDestructors[key] = dtor + } + *(*Tpthread_key_t)(unsafe.Pointer(k)) = key + return 0 +} + +func Xpthread_key_delete(tls *TLS, k Tpthread_key_t) int32 { + pthreadKeysMutex.Lock() + + defer pthreadKeysMutex.Unlock() + + pthreadKeysFree = append(pthreadKeysFree, k) + return 0 +} + +func Xpthread_create(tls *TLS, res, attrp, entry, arg uintptr) int32 { + var attr pthreadAttr + if attrp != 0 { + attr = *(*pthreadAttr)(unsafe.Pointer(attrp)) + } + + detachState := int32(_DT_JOINABLE) + if attr.detachState != 0 { + detachState = _DT_DETACHED + } + tls2 := NewTLS() + tls2.ownsPthread = false + *(*Tpthread_t)(unsafe.Pointer(res)) = tls2.pthread + (*t__pthread)(unsafe.Pointer(tls2.pthread)).Fdetach_state = detachState + if detachState == _DT_JOINABLE { + (*sync.Mutex)(unsafe.Pointer(tls2.pthread + unsafe.Offsetof(t__pthread{}.F__ccgo_join_mutex))).Lock() + } + + go func() { + Xpthread_exit(tls2, (*(*func(*TLS, uintptr) uintptr)(unsafe.Pointer(&struct{ uintptr }{entry})))(tls2, arg)) + }() + + return 0 +} + +func Xpthread_exit(tls *TLS, result uintptr) { + state := atomic.LoadInt32((*int32)(unsafe.Pointer(tls.pthread + unsafe.Offsetof(t__pthread{}.Fdetach_state)))) + (*t__pthread)(unsafe.Pointer(tls.pthread)).Fresult = result + switch state { + case _DT_JOINABLE, _DT_DETACHED: + // ok + default: + panic(todo("", state)) + } + + for len(tls.pthreadCleanupItems) != 0 { + Xpthread_cleanup_pop(tls, 1) + } + for { + done := true + for k, v := range tls.pthreadKeyValues { + if v != 0 { + delete(tls.pthreadKeyValues, k) + pthreadKeysMutex.Lock() + d := pthreadKeyDestructors[k] + pthreadKeysMutex.Unlock() + if d != 0 { + done = false + (*(*func(*TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{d})))(tls, v) + } + } + } + if done { + break + } + } + mu := (*sync.Mutex)(unsafe.Pointer(tls.pthread + unsafe.Offsetof(t__pthread{}.F__ccgo_join_mutex))) + mu.TryLock() + mu.Unlock() + atomic.StoreInt32((*int32)(unsafe.Pointer(tls.pthread+unsafe.Offsetof(t__pthread{}.Fdetach_state))), _DT_EXITED) + tls.Close() + runtime.Goexit() +} + +func Xpthread_join(tls *TLS, t Tpthread_t, res uintptr) (r int32) { + if (*t__pthread)(unsafe.Pointer(t)).Fdetach_state > _DT_JOINABLE { + return EINVAL + } + + (*sync.Mutex)(unsafe.Pointer(t + unsafe.Offsetof(t__pthread{}.F__ccgo_join_mutex))).Lock() + if res != 0 { + *(*uintptr)(unsafe.Pointer(res)) = (*t__pthread)(unsafe.Pointer(t)).Fresult + } + return 0 +} + +func Xpthread_cleanup_push(tls *TLS, f, x uintptr) { + X_pthread_cleanup_push(tls, 0, f, x) +} + +func __pthread_cleanup_push(tls *TLS, _, f, x uintptr) { + tls.pthreadCleanupItems = append(tls.pthreadCleanupItems, pthreadCleanupItem{f, x}) +} + +func X_pthread_cleanup_push(tls *TLS, _, f, x uintptr) { + tls.pthreadCleanupItems = append(tls.pthreadCleanupItems, pthreadCleanupItem{f, x}) +} + +func Xpthread_cleanup_pop(tls *TLS, run int32) { + X_pthread_cleanup_pop(tls, 0, run) +} + +func __pthread_cleanup_pop(tls *TLS, _ uintptr, run int32) { + X_pthread_cleanup_pop(tls, 0, run) +} + +func X_pthread_cleanup_pop(tls *TLS, _ uintptr, run int32) { + l := len(tls.pthreadCleanupItems) + item := tls.pthreadCleanupItems[l-1] + tls.pthreadCleanupItems = tls.pthreadCleanupItems[:l-1] + if run != 0 { + (*(*func(*TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{item.routine})))(tls, item.arg) + } +} + +func Xpthread_attr_init(tls *TLS, a uintptr) int32 { + *(*Tpthread_attr_t)(unsafe.Pointer(a)) = Tpthread_attr_t{} + return 0 +} + +func Xpthread_attr_setscope(tls *TLS, a uintptr, scope int32) int32 { + switch scope { + case PTHREAD_SCOPE_SYSTEM: + return 0 + case PTHREAD_SCOPE_PROCESS: + return ENOTSUP + default: + return EINVAL + } +} + +func Xpthread_attr_setstacksize(tls *TLS, a uintptr, stacksite Tsize_t) int32 { + return 0 +} + +func Xpthread_attr_setdetachstate(tls *TLS, a uintptr, state int32) (r int32) { + if uint32(state) > 1 { + return EINVAL + } + + (*pthreadAttr)(unsafe.Pointer(a)).detachState = state + return 0 +} + +func Xpthread_attr_getdetachstate(tls *TLS, a uintptr, state uintptr) int32 { + *(*int32)(unsafe.Pointer(state)) = (*pthreadAttr)(unsafe.Pointer(a)).detachState + return 0 +} + +func Xpthread_attr_destroy(tls *TLS, a uintptr) int32 { + return 0 +} + +func Xpthread_self(tls *TLS) uintptr { + return tls.pthread +} + +func Xpthread_mutex_init(tls *TLS, m, a uintptr) int32 { + *(*Tpthread_mutex_t)(unsafe.Pointer(m)) = Tpthread_mutex_t{} + if a != 0 { + (*pthreadMutex)(unsafe.Pointer(m)).typ = (*Tpthread_mutexattr_t)(unsafe.Pointer(a)).F__attr + } + return 0 +} + +func Xpthread_mutex_destroy(tls *TLS, m uintptr) int32 { + *(*Tpthread_mutex_t)(unsafe.Pointer(m)) = Tpthread_mutex_t{} + return 0 +} + +func Xpthread_mutex_lock(tls *TLS, m uintptr) int32 { + switch typ := (*pthreadMutex)(unsafe.Pointer(m)).typ; typ { + case PTHREAD_MUTEX_NORMAL: + (*pthreadMutex)(unsafe.Pointer(m)).Lock() + return 0 + case PTHREAD_MUTEX_RECURSIVE: + if atomic.CompareAndSwapInt32(&((*pthreadMutex)(unsafe.Pointer(m)).owner), 0, tls.ID) { + atomic.StoreInt32(&((*pthreadMutex)(unsafe.Pointer(m)).count), 1) + (*pthreadMutex)(unsafe.Pointer(m)).Lock() + return 0 + } + + if atomic.LoadInt32(&((*pthreadMutex)(unsafe.Pointer(m)).owner)) == tls.ID { + atomic.AddInt32(&((*pthreadMutex)(unsafe.Pointer(m)).count), 1) + return 0 + } + + for { + (*pthreadMutex)(unsafe.Pointer(m)).Lock() + if atomic.CompareAndSwapInt32(&((*pthreadMutex)(unsafe.Pointer(m)).owner), 0, tls.ID) { + atomic.StoreInt32(&((*pthreadMutex)(unsafe.Pointer(m)).count), 1) + return 0 + } + + (*pthreadMutex)(unsafe.Pointer(m)).Unlock() + } + default: + panic(todo("", typ)) + } +} + +func Xpthread_mutex_trylock(tls *TLS, m uintptr) int32 { + switch typ := (*pthreadMutex)(unsafe.Pointer(m)).typ; typ { + case PTHREAD_MUTEX_NORMAL: + if (*pthreadMutex)(unsafe.Pointer(m)).TryLock() { + return 0 + } + + return EBUSY + default: + panic(todo("typ=%v", typ)) + } +} + +func Xpthread_mutex_unlock(tls *TLS, m uintptr) int32 { + switch typ := (*pthreadMutex)(unsafe.Pointer(m)).typ; typ { + case PTHREAD_MUTEX_NORMAL: + (*pthreadMutex)(unsafe.Pointer(m)).Unlock() + return 0 + case PTHREAD_MUTEX_RECURSIVE: + if atomic.LoadInt32(&((*pthreadMutex)(unsafe.Pointer(m)).owner)) != tls.ID { + return EPERM + } + + if atomic.AddInt32(&((*pthreadMutex)(unsafe.Pointer(m)).count), -1) == 0 { + atomic.StoreInt32(&((*pthreadMutex)(unsafe.Pointer(m)).owner), 0) + (*pthreadMutex)(unsafe.Pointer(m)).Unlock() + } + return 0 + default: + panic(todo("", typ)) + } +} + +func Xpthread_cond_init(tls *TLS, c, a uintptr) int32 { + *(*Tpthread_cond_t)(unsafe.Pointer(c)) = Tpthread_cond_t{} + if a != 0 { + panic(todo("")) + } + + conds.Lock() + delete(conds.conds, c) + conds.Unlock() + return 0 +} + +func Xpthread_cond_timedwait(tls *TLS, c, m, ts uintptr) (r int32) { + var to <-chan time.Time + if ts != 0 { + deadlineSecs := (*Ttimespec)(unsafe.Pointer(ts)).Ftv_sec + deadlineNsecs := (*Ttimespec)(unsafe.Pointer(ts)).Ftv_nsec + deadline := time.Unix(deadlineSecs, int64(deadlineNsecs)) + d := deadline.Sub(time.Now()) + if d <= 0 { + return ETIMEDOUT + } + + to = time.After(d) + } + + conds.Lock() + waiters := conds.conds[c] + ch := make(chan struct{}, 1) + waiters = append(waiters, ch) + conds.conds[c] = waiters + conds.Unlock() + + defer func() { + conds.Lock() + + defer conds.Unlock() + + waiters = conds.conds[c] + for i, v := range waiters { + if v == ch { + conds.conds[c] = append(waiters[:i], waiters[i+1:]...) + return + } + } + }() + + switch typ := (*pthreadMutex)(unsafe.Pointer(m)).typ; typ { + case PTHREAD_MUTEX_NORMAL: + (*pthreadMutex)(unsafe.Pointer(m)).Unlock() + select { + case <-ch: + // ok + case <-to: + r = ETIMEDOUT + } + (*pthreadMutex)(unsafe.Pointer(m)).Lock() + return r + default: + panic(todo("", typ)) + } +} + +func Xpthread_cond_wait(tls *TLS, c, m uintptr) int32 { + return Xpthread_cond_timedwait(tls, c, m, 0) +} + +func Xpthread_cond_signal(tls *TLS, c uintptr) int32 { + return pthreadSignalN(tls, c, false) +} + +func pthreadSignalN(tls *TLS, c uintptr, all bool) int32 { + conds.Lock() + waiters := conds.conds[c] + handle := waiters + if len(waiters) != 0 { + switch { + case all: + delete(conds.conds, c) + default: + handle = handle[:1] + conds.conds[c] = waiters[1:] + } + } + conds.Unlock() + for _, v := range handle { + close(v) + } + return 0 +} + +func Xpthread_cond_broadcast(tls *TLS, c uintptr) int32 { + return pthreadSignalN(tls, c, true) +} + +func Xpthread_cond_destroy(tls *TLS, c uintptr) int32 { + return Xpthread_cond_broadcast(tls, c) +} + +func Xpthread_atfork(tls *TLS, prepare, parent, child uintptr) int32 { + // fork(2) not supported. + return 0 +} + +func Xpthread_mutexattr_init(tls *TLS, a uintptr) int32 { + *(*Tpthread_mutexattr_t)(unsafe.Pointer(a)) = Tpthread_mutexattr_t{} + return 0 +} + +func Xpthread_mutexattr_destroy(tls *TLS, a uintptr) int32 { + return 0 +} + +func Xpthread_mutexattr_settype(tls *TLS, a uintptr, typ int32) int32 { + if uint32(typ) > 2 { + return EINVAL + } + + (*Tpthread_mutexattr_t)(unsafe.Pointer(a)).F__attr = uint32(typ) & 3 + return 0 +} + +func Xpthread_detach(tls *TLS, t uintptr) int32 { + state := atomic.SwapInt32((*int32)(unsafe.Pointer(t+unsafe.Offsetof(t__pthread{}.Fdetach_state))), _DT_DETACHED) + switch state { + case _DT_JOINABLE, _DT_EXITED, _DT_DETACHED: + return 0 + default: + panic(todo("", tls.ID, state)) + } +} + +// int pthread_equal(pthread_t, pthread_t); +func Xpthread_equal(tls *TLS, t, u uintptr) int32 { + return Bool32(t == u) +} + +// int pthread_sigmask(int how, const sigset_t *restrict set, sigset_t *restrict old) +func _pthread_sigmask(tls *TLS, now int32, set, old uintptr) int32 { + // ignored + return 0 +} + +type barrierState struct { + mu sync.Mutex + cond *sync.Cond + count uint32 + tripCount uint32 + generation uint32 +} + +var ( + barriers = map[uintptr]*barrierState{} + barriersMu sync.Mutex +) + +// int pthread_barrier_init(pthread_barrier_t *restrict barrier, const pthread_barrierattr_t *restrict attr, unsigned count); +func Xpthread_barrier_init(tls *TLS, barrier, attr uintptr, count uint32) int32 { + if count == 0 { + return EINVAL + } + barriersMu.Lock() + defer barriersMu.Unlock() + state := &barrierState{tripCount: count} + state.cond = sync.NewCond(&state.mu) + barriers[barrier] = state + return 0 +} + +// int pthread_barrier_destroy(pthread_barrier_t *barrier); +func Xpthread_barrier_destroy(tls *TLS, barrier uintptr) int32 { + barriersMu.Lock() + defer barriersMu.Unlock() + delete(barriers, barrier) + return 0 +} + +// int pthread_barrier_wait(pthread_barrier_t *barrier); +func Xpthread_barrier_wait(tls *TLS, barrier uintptr) int32 { + barriersMu.Lock() + state := barriers[barrier] + barriersMu.Unlock() + if state == nil { + return EINVAL + } + state.mu.Lock() + gen := state.generation + state.count++ + if state.count >= state.tripCount { + state.count = 0 + state.generation++ + state.cond.Broadcast() + state.mu.Unlock() + return -1 // PTHREAD_BARRIER_SERIAL_THREAD + } + for gen == state.generation { + state.cond.Wait() + } + state.mu.Unlock() + return 0 +} + +// 202402251838 all_test.go:589: files=36 buildFails=30 execFails=2 pass=4 +// 202402262246 all_test.go:589: files=36 buildFails=26 execFails=2 pass=8 +// 202403041858 all_musl_test.go:640: files=36 buildFails=22 execFails=4 pass=10 diff --git a/vendor/modernc.org/libc/pwd/capi_illumos_amd64.go b/vendor/modernc.org/libc/pwd/capi_illumos_amd64.go new file mode 100644 index 000000000..ee09f8bcd --- /dev/null +++ b/vendor/modernc.org/libc/pwd/capi_illumos_amd64.go @@ -0,0 +1,5 @@ +// Code generated by 'ccgo pwd/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o pwd/pwd_illumos_amd64.go -pkgname pwd', DO NOT EDIT. + +package pwd + +var CAPI = map[string]struct{}{} diff --git a/vendor/modernc.org/libc/pwd/capi_linux_loong64.go b/vendor/modernc.org/libc/pwd/capi_linux_loong64.go new file mode 100644 index 000000000..9029ab8bc --- /dev/null +++ b/vendor/modernc.org/libc/pwd/capi_linux_loong64.go @@ -0,0 +1,5 @@ +// Code generated by 'ccgo pwd/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o pwd/pwd_linux_loong64.go -pkgname pwd', DO NOT EDIT. + +package pwd + +var CAPI = map[string]struct{}{} diff --git a/vendor/modernc.org/libc/pwd/capi_linux_mips64le.go b/vendor/modernc.org/libc/pwd/capi_linux_mips64le.go new file mode 100644 index 000000000..2a479f585 --- /dev/null +++ b/vendor/modernc.org/libc/pwd/capi_linux_mips64le.go @@ -0,0 +1,5 @@ +// Code generated by 'ccgo pwd/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o pwd/pwd_linux_amd64.go -pkgname pwd', DO NOT EDIT. + +package pwd + +var CAPI = map[string]struct{}{} diff --git a/vendor/modernc.org/libc/pwd/pwd_illumos_amd64.go b/vendor/modernc.org/libc/pwd/pwd_illumos_amd64.go new file mode 100644 index 000000000..d67affe34 --- /dev/null +++ b/vendor/modernc.org/libc/pwd/pwd_illumos_amd64.go @@ -0,0 +1,3188 @@ +// Code generated by 'ccgo pwd/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o pwd/pwd_illumos_amd64.go -pkgname pwd', DO NOT EDIT. + +package pwd + +import ( + "math" + "reflect" + "sync/atomic" + "unsafe" +) + +var _ = math.Pi +var _ reflect.Kind +var _ atomic.Value +var _ unsafe.Pointer + +const ( + BUFSIZ = 1024 // stdio_iso.h:124:1: + CLOCKS_PER_SEC = 1000000 // time_iso.h:78:1: + CLOCK_HIGHRES = 4 // time_impl.h:126:1: + CLOCK_MONOTONIC = 4 // time_impl.h:124:1: + CLOCK_PROCESS_CPUTIME_ID = 5 // time_impl.h:125:1: + CLOCK_PROF = 2 // time_impl.h:127:1: + CLOCK_REALTIME = 3 // time_impl.h:123:1: + CLOCK_THREAD_CPUTIME_ID = 2 // time_impl.h:122:1: + CLOCK_VIRTUAL = 1 // time_impl.h:121:1: + DST_AUST = 2 // time.h:115:1: + DST_AUSTALT = 10 // time.h:123:1: + DST_CAN = 6 // time.h:119:1: + DST_EET = 5 // time.h:118:1: + DST_GB = 7 // time.h:120:1: + DST_MET = 4 // time.h:117:1: + DST_NONE = 0 // time.h:113:1: + DST_RUM = 8 // time.h:121:1: + DST_TUR = 9 // time.h:122:1: + DST_USA = 1 // time.h:114:1: + DST_WET = 3 // time.h:116:1: + EOF = -1 // stdio_iso.h:152:1: + FD_SETSIZE = 65536 // select.h:88:1: + FILENAME_MAX = 1024 // stdio_iso.h:156:1: + FOPEN_MAX = 20 // stdio_iso.h:155:1: + ITIMER_PROF = 2 // time.h:201:1: + ITIMER_REAL = 0 // time.h:199:1: + ITIMER_REALPROF = 3 // time.h:204:1: + ITIMER_VIRTUAL = 1 // time.h:200:1: + L_ctermid = 9 // stdio.h:207:1: + L_cuserid = 9 // stdio.h:211:1: + L_tmpnam = 25 // stdio_iso.h:163:1: + MICROSEC = 1000000 // time.h:246:1: + MILLISEC = 1000 // time.h:245:1: + NANOSEC = 1000000000 // time.h:247:1: + NBBY = 8 // select.h:103:1: + P_MYID = -1 // types.h:632:1: + P_tmpdir = "/var/tmp/" // stdio.h:220:1: + REG_LABEL_BP = 2 // machtypes.h:44:1: + REG_LABEL_MAX = 8 // machtypes.h:51:1: + REG_LABEL_PC = 0 // machtypes.h:42:1: + REG_LABEL_R12 = 4 // machtypes.h:47:1: + REG_LABEL_R13 = 5 // machtypes.h:48:1: + REG_LABEL_R14 = 6 // machtypes.h:49:1: + REG_LABEL_R15 = 7 // machtypes.h:50:1: + REG_LABEL_RBX = 3 // machtypes.h:46:1: + REG_LABEL_SP = 1 // machtypes.h:43:1: + SEC = 1 // time.h:244:1: + SEEK_CUR = 1 // stdio_iso.h:159:1: + SEEK_END = 2 // stdio_iso.h:160:1: + SEEK_SET = 0 // stdio_iso.h:158:1: + TIMER_ABSTIME = 0x1 // time_impl.h:134:1: + TIMER_RELTIME = 0x0 // time_impl.h:133:1: + TIME_UTC = 0x1 // time.h:306:1: + TMP_MAX = 17576 // stdio_iso.h:161:1: + X_ALIGNMENT_REQUIRED = 1 // isa_defs.h:262:1: + X_BIT_FIELDS_LTOH = 0 // isa_defs.h:245:1: + X_BOOL_ALIGNMENT = 1 // isa_defs.h:248:1: + X_CHAR_ALIGNMENT = 1 // isa_defs.h:249:1: + X_CHAR_IS_SIGNED = 0 // isa_defs.h:247:1: + X_CLOCKID_T = 0 // types.h:568:1: + X_CLOCK_T = 0 // types.h:563:1: + X_COND_MAGIC = 0x4356 // types.h:426:1: + X_DMA_USES_PHYSADDR = 0 // isa_defs.h:281:1: + X_DONT_USE_1275_GENERIC_NAMES = 0 // isa_defs.h:287:1: + X_DOUBLE_ALIGNMENT = 8 // isa_defs.h:256:1: + X_DOUBLE_COMPLEX_ALIGNMENT = 8 // isa_defs.h:257:1: + X_DTRACE_VERSION = 1 // feature_tests.h:490:1: + X_FILEDEFED = 0 // stdio_iso.h:101:1: + X_FILE_OFFSET_BITS = 64 // :25:1: + X_FIRMWARE_NEEDS_FDISK = 0 // isa_defs.h:282:1: + X_FLOAT_ALIGNMENT = 4 // isa_defs.h:252:1: + X_FLOAT_COMPLEX_ALIGNMENT = 4 // isa_defs.h:253:1: + X_HAVE_CPUID_INSN = 0 // isa_defs.h:288:1: + X_IEEE_754 = 0 // isa_defs.h:246:1: + X_INT64_TYPE = 0 // int_types.h:82:1: + X_INT_ALIGNMENT = 4 // isa_defs.h:251:1: + X_IOEOF = 0020 // stdio_iso.h:143:1: + X_IOERR = 0040 // stdio_iso.h:144:1: + X_IOFBF = 0000 // stdio_iso.h:140:1: + X_IOLBF = 0100 // stdio_iso.h:141:1: + X_IOMYBUF = 0010 // stdio_iso.h:149:1: + X_IONBF = 0004 // stdio_iso.h:142:1: + X_IOREAD = 0001 // stdio_iso.h:146:1: + X_IORW = 0200 // stdio_iso.h:148:1: + X_IOWRT = 0002 // stdio_iso.h:147:1: + X_ISO_CPP_14882_1998 = 0 // feature_tests.h:466:1: + X_ISO_C_9899_1999 = 0 // feature_tests.h:472:1: + X_ISO_C_9899_2011 = 0 // feature_tests.h:478:1: + X_ISO_STDIO_C99_H = 0 // stdio_c99.h:41:1: + X_ISO_STDIO_ISO_H = 0 // stdio_iso.h:59:1: + X_ISO_TIME_ISO_H = 0 // time_iso.h:46:1: + X_LARGEFILE64_SOURCE = 1 // feature_tests.h:231:1: + X_LARGEFILE_SOURCE = 1 // feature_tests.h:235:1: + X_LITTLE_ENDIAN = 0 // isa_defs.h:242:1: + X_LOCALE_T = 0 // time.h:291:1: + X_LONGLONG_TYPE = 0 // feature_tests.h:412:1: + X_LONG_ALIGNMENT = 8 // isa_defs.h:254:1: + X_LONG_DOUBLE_ALIGNMENT = 16 // isa_defs.h:258:1: + X_LONG_DOUBLE_COMPLEX_ALIGNMENT = 16 // isa_defs.h:259:1: + X_LONG_LONG_ALIGNMENT = 8 // isa_defs.h:255:1: + X_LONG_LONG_ALIGNMENT_32 = 4 // isa_defs.h:268:1: + X_LONG_LONG_LTOH = 0 // isa_defs.h:244:1: + X_LP64 = 1 // :286:1: + X_MAX_ALIGNMENT = 16 // isa_defs.h:261:1: + X_MULTI_DATAMODEL = 0 // isa_defs.h:279:1: + X_MUTEX_MAGIC = 0x4d58 // types.h:424:1: + X_NBBY = 8 // select.h:100:1: + X_NFILE = 20 // stdio_iso.h:135:1: + X_NORETURN_KYWD = 0 // feature_tests.h:448:1: + X_OFF_T = 0 // types.h:142:1: + X_POINTER_ALIGNMENT = 8 // isa_defs.h:260:1: + X_PSM_MODULES = 0 // isa_defs.h:284:1: + X_PTRDIFF_T = 0 // types.h:112:1: + X_PWD_H = 0 // pwd.h:34:1: + X_RESTRICT_KYWD = 0 // feature_tests.h:435:1: + X_RTC_CONFIG = 0 // isa_defs.h:285:1: + X_RWL_MAGIC = 0x5257 // types.h:427:1: + X_SBFSIZ = 8 // stdio_iso.h:138:1: + X_SEMA_MAGIC = 0x534d // types.h:425:1: + X_SHORT_ALIGNMENT = 2 // isa_defs.h:250:1: + X_SIGEVENT = 0 // time.h:132:1: + X_SIGSET_T = 0 // select.h:73:1: + X_SIGVAL = 0 // time.h:124:1: + X_SIZE_T = 0 // types.h:540:1: + X_SOFT_HOSTID = 0 // isa_defs.h:286:1: + X_SSIZE_T = 0 // types.h:549:1: + X_STACK_GROWS_DOWNWARD = 0 // isa_defs.h:243:1: + X_STDC_C11 = 0 // feature_tests.h:165:1: + X_STDC_C99 = 0 // feature_tests.h:169:1: + X_STDIO_H = 0 // stdio.h:44:1: + X_STDIO_IMPL_H = 0 // stdio_impl.h:28:1: + X_STDIO_TAG_H = 0 // stdio_tag.h:28:1: + X_SUNOS_VTOC_16 = 0 // isa_defs.h:280:1: + X_SUSECONDS_T = 0 // types.h:343:1: + X_SYS_CCOMPILE_H = 0 // ccompile.h:32:1: + X_SYS_FEATURE_TESTS_H = 0 // feature_tests.h:41:1: + X_SYS_INT_TYPES_H = 0 // int_types.h:30:1: + X_SYS_ISA_DEFS_H = 0 // isa_defs.h:30:1: + X_SYS_MACHTYPES_H = 0 // machtypes.h:27:1: + X_SYS_NULL_H = 0 // null.h:17:1: + X_SYS_SELECT_H = 0 // select.h:45:1: + X_SYS_TIME_H = 0 // time.h:27:1: + X_SYS_TIME_IMPL_H = 0 // time_impl.h:38:1: + X_SYS_TYPES_H = 0 // types.h:35:1: + X_SYS_VA_LIST_H = 0 // va_list.h:34:1: + X_TIMER_T = 0 // types.h:573:1: + X_TIME_H = 0 // time.h:37:1: + X_TIME_T = 0 // types.h:558:1: + X_UID_T = 0 // types.h:400:1: + X_XOPEN_VERSION = 3 // feature_tests.h:392:1: + Sun = 1 // :172:1: + Unix = 1 // :175:1: +) + +// used for block sizes + +// The boolean_t type has had a varied amount of exposure over the years in +// terms of how its enumeration constants have been exposed. In particular, it +// originally used the __XOPEN_OR_POSIX macro to determine whether to prefix the +// B_TRUE and B_FALSE with an underscore. This check never included the +// question of if we were in a strict ANSI C environment or whether extensions +// were defined. +// +// Compilers such as clang started defaulting to always including an +// XOPEN_SOURCE declaration on behalf of users, but also noted __EXTENSIONS__. +// This would lead most software that had used the non-underscore versions to +// need it. As such, we have adjusted the non-strict XOPEN environment to retain +// its old behavior so as to minimize namespace pollution; however, we instead +// include both variants of the definitions in the generally visible version +// allowing software written in either world to hopefully end up in a good +// place. +// +// This isn't perfect, but should hopefully minimize the pain for folks actually +// trying to build software. +const ( /* types.h:215:1: */ + B_FALSE = 0 + B_TRUE = 1 + X_B_FALSE = 0 + X_B_TRUE = 1 +) + +type Ptrdiff_t = int64 /* :3:26 */ + +type Size_t = uint64 /* :9:23 */ + +type Wchar_t = int32 /* :15:24 */ + +type X__int128_t = struct { + Flo int64 + Fhi int64 +} /* :21:43 */ // must match modernc.org/mathutil.Int128 +type X__uint128_t = struct { + Flo uint64 + Fhi uint64 +} /* :22:44 */ // must match modernc.org/mathutil.Int128 + +type X__builtin_va_list = uintptr /* :46:14 */ +type X__float128 = float64 /* :47:21 */ + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1988 AT&T +// All Rights Reserved + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2015 EveryCity Ltd. All rights reserved. +// Copyright 2019 Joyent, Inc. + +// This file contains definitions designed to enable different compilers +// to be used harmoniously on Solaris systems. + +// Allow for version tests for compiler bugs and features. + +// analogous to lint's PRINTFLIKEn + +// Handle the kernel printf routines that can take '%b' too + +// This one's pretty obvious -- the function never returns + +// The function is 'extern inline' and expects GNU C89 behaviour, not C99 +// behaviour. +// +// Should only be used on 'extern inline' definitions for GCC. + +// The function has control flow such that it may return multiple times (in +// the manner of setjmp or vfork) + +// This is an appropriate label for functions that do not +// modify their arguments, e.g. strlen() + +// This is a stronger form of __pure__. Can be used for functions +// that do not modify their arguments and don't depend on global +// memory. + +// This attribute, attached to a variable, means that the variable is meant to +// be possibly unused. GCC will not produce a warning for this variable. + +// Shorthand versions for readability + +// In release build, disable warnings about variables +// which are used only for debugging. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2016 Joyent, Inc. + +// This header file serves to group a set of well known defines and to +// set these for each instruction set architecture. These defines may +// be divided into two groups; characteristics of the processor and +// implementation choices for Solaris on a processor. +// +// Processor Characteristics: +// +// _LITTLE_ENDIAN / _BIG_ENDIAN: +// The natural byte order of the processor. A pointer to an int points +// to the least/most significant byte of that int. +// +// _STACK_GROWS_UPWARD / _STACK_GROWS_DOWNWARD: +// The processor specific direction of stack growth. A push onto the +// stack increases/decreases the stack pointer, so it stores data at +// successively higher/lower addresses. (Stackless machines ignored +// without regrets). +// +// _LONG_LONG_HTOL / _LONG_LONG_LTOH: +// A pointer to a long long points to the most/least significant long +// within that long long. +// +// _BIT_FIELDS_HTOL / _BIT_FIELDS_LTOH: +// The C compiler assigns bit fields from the high/low to the low/high end +// of an int (most to least significant vs. least to most significant). +// +// _IEEE_754: +// The processor (or supported implementations of the processor) +// supports the ieee-754 floating point standard. No other floating +// point standards are supported (or significant). Any other supported +// floating point formats are expected to be cased on the ISA processor +// symbol. +// +// _CHAR_IS_UNSIGNED / _CHAR_IS_SIGNED: +// The C Compiler implements objects of type `char' as `unsigned' or +// `signed' respectively. This is really an implementation choice of +// the compiler writer, but it is specified in the ABI and tends to +// be uniform across compilers for an instruction set architecture. +// Hence, it has the properties of a processor characteristic. +// +// _CHAR_ALIGNMENT / _SHORT_ALIGNMENT / _INT_ALIGNMENT / _LONG_ALIGNMENT / +// _LONG_LONG_ALIGNMENT / _DOUBLE_ALIGNMENT / _LONG_DOUBLE_ALIGNMENT / +// _POINTER_ALIGNMENT / _FLOAT_ALIGNMENT: +// The ABI defines alignment requirements of each of the primitive +// object types. Some, if not all, may be hardware requirements as +// well. The values are expressed in "byte-alignment" units. +// +// _MAX_ALIGNMENT: +// The most stringent alignment requirement as specified by the ABI. +// Equal to the maximum of all the above _XXX_ALIGNMENT values. +// +// _MAX_ALIGNMENT_TYPE: +// The name of the C type that has the value descried in _MAX_ALIGNMENT. +// +// _ALIGNMENT_REQUIRED: +// True or false (1 or 0) whether or not the hardware requires the ABI +// alignment. +// +// _LONG_LONG_ALIGNMENT_32 +// The 32-bit ABI supported by a 64-bit kernel may have different +// alignment requirements for primitive object types. The value of this +// identifier is expressed in "byte-alignment" units. +// +// _HAVE_CPUID_INSN +// This indicates that the architecture supports the 'cpuid' +// instruction as defined by Intel. (Intel allows other vendors +// to extend the instruction for their own purposes.) +// +// +// Implementation Choices: +// +// _ILP32 / _LP64: +// This specifies the compiler data type implementation as specified in +// the relevant ABI. The choice between these is strongly influenced +// by the underlying hardware, but is not absolutely tied to it. +// Currently only two data type models are supported: +// +// _ILP32: +// Int/Long/Pointer are 32 bits. This is the historical UNIX +// and Solaris implementation. Due to its historical standing, +// this is the default case. +// +// _LP64: +// Long/Pointer are 64 bits, Int is 32 bits. This is the chosen +// implementation for 64-bit ABIs such as SPARC V9. +// +// _I32LPx: +// A compilation environment where 'int' is 32-bit, and +// longs and pointers are simply the same size. +// +// In all cases, Char is 8 bits and Short is 16 bits. +// +// _SUNOS_VTOC_8 / _SUNOS_VTOC_16 / _SVR4_VTOC_16: +// This specifies the form of the disk VTOC (or label): +// +// _SUNOS_VTOC_8: +// This is a VTOC form which is upwardly compatible with the +// SunOS 4.x disk label and allows 8 partitions per disk. +// +// _SUNOS_VTOC_16: +// In this format the incore vtoc image matches the ondisk +// version. It allows 16 slices per disk, and is not +// compatible with the SunOS 4.x disk label. +// +// Note that these are not the only two VTOC forms possible and +// additional forms may be added. One possible form would be the +// SVr4 VTOC form. The symbol for that is reserved now, although +// it is not implemented. +// +// _SVR4_VTOC_16: +// This VTOC form is compatible with the System V Release 4 +// VTOC (as implemented on the SVr4 Intel and 3b ports) with +// 16 partitions per disk. +// +// +// _DMA_USES_PHYSADDR / _DMA_USES_VIRTADDR +// This describes the type of addresses used by system DMA: +// +// _DMA_USES_PHYSADDR: +// This type of DMA, used in the x86 implementation, +// requires physical addresses for DMA buffers. The 24-bit +// addresses used by some legacy boards is the source of the +// "low-memory" (<16MB) requirement for some devices using DMA. +// +// _DMA_USES_VIRTADDR: +// This method of DMA allows the use of virtual addresses for +// DMA transfers. +// +// _FIRMWARE_NEEDS_FDISK / _NO_FDISK_PRESENT +// This indicates the presence/absence of an fdisk table. +// +// _FIRMWARE_NEEDS_FDISK +// The fdisk table is required by system firmware. If present, +// it allows a disk to be subdivided into multiple fdisk +// partitions, each of which is equivalent to a separate, +// virtual disk. This enables the co-existence of multiple +// operating systems on a shared hard disk. +// +// _NO_FDISK_PRESENT +// If the fdisk table is absent, it is assumed that the entire +// media is allocated for a single operating system. +// +// _HAVE_TEM_FIRMWARE +// Defined if this architecture has the (fallback) option of +// using prom_* calls for doing I/O if a suitable kernel driver +// is not available to do it. +// +// _DONT_USE_1275_GENERIC_NAMES +// Controls whether or not device tree node names should +// comply with the IEEE 1275 "Generic Names" Recommended +// Practice. With _DONT_USE_GENERIC_NAMES, device-specific +// names identifying the particular device will be used. +// +// __i386_COMPAT +// This indicates whether the i386 ABI is supported as a *non-native* +// mode for the platform. When this symbol is defined: +// - 32-bit xstat-style system calls are enabled +// - 32-bit xmknod-style system calls are enabled +// - 32-bit system calls use i386 sizes -and- alignments +// +// Note that this is NOT defined for the i386 native environment! +// +// __x86 +// This is ONLY a synonym for defined(__i386) || defined(__amd64) +// which is useful only insofar as these two architectures share +// common attributes. Analogous to __sparc. +// +// _PSM_MODULES +// This indicates whether or not the implementation uses PSM +// modules for processor support, reading /etc/mach from inside +// the kernel to extract a list. +// +// _RTC_CONFIG +// This indicates whether or not the implementation uses /etc/rtc_config +// to configure the real-time clock in the kernel. +// +// _UNIX_KRTLD +// This indicates that the implementation uses a dynamically +// linked unix + krtld to form the core kernel image at boot +// time, or (in the absence of this symbol) a prelinked kernel image. +// +// _OBP +// This indicates the firmware interface is OBP. +// +// _SOFT_HOSTID +// This indicates that the implementation obtains the hostid +// from the file /etc/hostid, rather than from hardware. + +// The following set of definitions characterize Solaris on AMD's +// 64-bit systems. + +// Define the appropriate "processor characteristics" + +// Different alignment constraints for the i386 ABI in compatibility mode + +// Define the appropriate "implementation choices". + +// The feature test macro __i386 is generic for all processors implementing +// the Intel 386 instruction set or a superset of it. Specifically, this +// includes all members of the 386, 486, and Pentium family of processors. + +// Values of _POSIX_C_SOURCE +// +// undefined not a POSIX compilation +// 1 POSIX.1-1990 compilation +// 2 POSIX.2-1992 compilation +// 199309L POSIX.1b-1993 compilation (Real Time) +// 199506L POSIX.1c-1995 compilation (POSIX Threads) +// 200112L POSIX.1-2001 compilation (Austin Group Revision) +// 200809L POSIX.1-2008 compilation + +// The feature test macros __XOPEN_OR_POSIX, _STRICT_STDC, _STRICT_SYMBOLS, +// and _STDC_C99 are Sun implementation specific macros created in order to +// compress common standards specified feature test macros for easier reading. +// These macros should not be used by the application developer as +// unexpected results may occur. Instead, the user should reference +// standards(7) for correct usage of the standards feature test macros. +// +// __XOPEN_OR_POSIX Used in cases where a symbol is defined by both +// X/Open or POSIX or in the negative, when neither +// X/Open or POSIX defines a symbol. +// +// _STRICT_STDC __STDC__ is specified by the C Standards and defined +// by the compiler. For Sun compilers the value of +// __STDC__ is either 1, 0, or not defined based on the +// compilation mode (see cc(1)). When the value of +// __STDC__ is 1 and in the absence of any other feature +// test macros, the namespace available to the application +// is limited to only those symbols defined by the C +// Standard. _STRICT_STDC provides a more readable means +// of identifying symbols defined by the standard, or in +// the negative, symbols that are extensions to the C +// Standard. See additional comments for GNU C differences. +// +// _STDC_C99 __STDC_VERSION__ is specified by the C standards and +// defined by the compiler and indicates the version of +// the C standard. A value of 199901L indicates a +// compiler that complies with ISO/IEC 9899:1999, other- +// wise known as the C99 standard. +// +// _STDC_C11 Like _STDC_C99 except that the value of __STDC_VERSION__ +// is 201112L indicating a compiler that compiles with +// ISO/IEC 9899:2011, otherwise known as the C11 standard. +// +// _STRICT_SYMBOLS Used in cases where symbol visibility is restricted +// by the standards, and the user has not explicitly +// relaxed the strictness via __EXTENSIONS__. + +// ISO/IEC 9899:1990 and it's revisions, ISO/IEC 9899:1999 and ISO/IEC +// 99899:2011 specify the following predefined macro name: +// +// __STDC__ The integer constant 1, intended to indicate a conforming +// implementation. +// +// Furthermore, a strictly conforming program shall use only those features +// of the language and library specified in these standards. A conforming +// implementation shall accept any strictly conforming program. +// +// Based on these requirements, Sun's C compiler defines __STDC__ to 1 for +// strictly conforming environments and __STDC__ to 0 for environments that +// use ANSI C semantics but allow extensions to the C standard. For non-ANSI +// C semantics, Sun's C compiler does not define __STDC__. +// +// The GNU C project interpretation is that __STDC__ should always be defined +// to 1 for compilation modes that accept ANSI C syntax regardless of whether +// or not extensions to the C standard are used. Violations of conforming +// behavior are conditionally flagged as warnings via the use of the +// -pedantic option. In addition to defining __STDC__ to 1, the GNU C +// compiler also defines __STRICT_ANSI__ as a means of specifying strictly +// conforming environments using the -ansi or -std= options. +// +// In the absence of any other compiler options, Sun and GNU set the value +// of __STDC__ as follows when using the following options: +// +// Value of __STDC__ __STRICT_ANSI__ +// +// cc -Xa (default) 0 undefined +// cc -Xt (transitional) 0 undefined +// cc -Xc (strictly conforming) 1 undefined +// cc -Xs (K&R C) undefined undefined +// +// gcc (default) 1 undefined +// gcc -ansi, -std={c89, c99,...) 1 defined +// gcc -traditional (K&R) undefined undefined +// +// The default compilation modes for Sun C compilers versus GNU C compilers +// results in a differing value for __STDC__ which results in a more +// restricted namespace when using Sun compilers. To allow both GNU and Sun +// interpretations to peacefully co-exist, we use the following Sun +// implementation _STRICT_STDC_ macro: + +// Compiler complies with ISO/IEC 9899:1999 or ISO/IEC 9989:2011 + +// Use strict symbol visibility. + +// This is a variant of _STRICT_SYMBOLS that is meant to cover headers that are +// governed by POSIX, but have not been governed by ISO C. One can go two ways +// on what should happen if an application actively includes (not transitively) +// a header that isn't part of the ISO C spec, we opt to say that if someone has +// gone out of there way then they're doing it for a reason and that is an act +// of non-compliance and therefore it's not up to us to hide away every symbol. +// +// In general, prefer using _STRICT_SYMBOLS, but this is here in particular for +// cases where in the past we have only used a POSIX related check and we don't +// wish to make something stricter. Often applications are relying on the +// ability to, or more realistically unwittingly, have _STRICT_STDC declared and +// still use these interfaces. + +// Large file interfaces: +// +// _LARGEFILE_SOURCE +// 1 large file-related additions to POSIX +// interfaces requested (fseeko, etc.) +// _LARGEFILE64_SOURCE +// 1 transitional large-file-related interfaces +// requested (seek64, stat64, etc.) +// +// The corresponding announcement macros are respectively: +// _LFS_LARGEFILE +// _LFS64_LARGEFILE +// (These are set in .) +// +// Requesting _LARGEFILE64_SOURCE implies requesting _LARGEFILE_SOURCE as +// well. +// +// The large file interfaces are made visible regardless of the initial values +// of the feature test macros under certain circumstances: +// - If no explicit standards-conforming environment is requested (neither +// of _POSIX_SOURCE nor _XOPEN_SOURCE is defined and the value of +// __STDC__ does not imply standards conformance). +// - Extended system interfaces are explicitly requested (__EXTENSIONS__ +// is defined). +// - Access to in-kernel interfaces is requested (_KERNEL or _KMEMUSER is +// defined). (Note that this dependency is an artifact of the current +// kernel implementation and may change in future releases.) + +// Large file compilation environment control: +// +// The setting of _FILE_OFFSET_BITS controls the size of various file-related +// types and governs the mapping between file-related source function symbol +// names and the corresponding binary entry points. +// +// In the 32-bit environment, the default value is 32; if not set, set it to +// the default here, to simplify tests in other headers. +// +// In the 64-bit compilation environment, the only value allowed is 64. + +// Use of _XOPEN_SOURCE +// +// The following X/Open specifications are supported: +// +// X/Open Portability Guide, Issue 3 (XPG3) +// X/Open CAE Specification, Issue 4 (XPG4) +// X/Open CAE Specification, Issue 4, Version 2 (XPG4v2) +// X/Open CAE Specification, Issue 5 (XPG5) +// Open Group Technical Standard, Issue 6 (XPG6), also referred to as +// IEEE Std. 1003.1-2001 and ISO/IEC 9945:2002. +// Open Group Technical Standard, Issue 7 (XPG7), also referred to as +// IEEE Std. 1003.1-2008 and ISO/IEC 9945:2009. +// +// XPG4v2 is also referred to as UNIX 95 (SUS or SUSv1). +// XPG5 is also referred to as UNIX 98 or the Single Unix Specification, +// Version 2 (SUSv2) +// XPG6 is the result of a merge of the X/Open and POSIX specifications +// and as such is also referred to as IEEE Std. 1003.1-2001 in +// addition to UNIX 03 and SUSv3. +// XPG7 is also referred to as UNIX 08 and SUSv4. +// +// When writing a conforming X/Open application, as per the specification +// requirements, the appropriate feature test macros must be defined at +// compile time. These are as follows. For more info, see standards(7). +// +// Feature Test Macro Specification +// ------------------------------------------------ ------------- +// _XOPEN_SOURCE XPG3 +// _XOPEN_SOURCE && _XOPEN_VERSION = 4 XPG4 +// _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED = 1 XPG4v2 +// _XOPEN_SOURCE = 500 XPG5 +// _XOPEN_SOURCE = 600 (or POSIX_C_SOURCE=200112L) XPG6 +// _XOPEN_SOURCE = 700 (or POSIX_C_SOURCE=200809L) XPG7 +// +// In order to simplify the guards within the headers, the following +// implementation private test macros have been created. Applications +// must NOT use these private test macros as unexpected results will +// occur. +// +// Note that in general, the use of these private macros is cumulative. +// For example, the use of _XPG3 with no other restrictions on the X/Open +// namespace will make the symbols visible for XPG3 through XPG6 +// compilation environments. The use of _XPG4_2 with no other X/Open +// namespace restrictions indicates that the symbols were introduced in +// XPG4v2 and are therefore visible for XPG4v2 through XPG6 compilation +// environments, but not for XPG3 or XPG4 compilation environments. +// +// _XPG3 X/Open Portability Guide, Issue 3 (XPG3) +// _XPG4 X/Open CAE Specification, Issue 4 (XPG4) +// _XPG4_2 X/Open CAE Specification, Issue 4, Version 2 (XPG4v2/UNIX 95/SUS) +// _XPG5 X/Open CAE Specification, Issue 5 (XPG5/UNIX 98/SUSv2) +// _XPG6 Open Group Technical Standard, Issue 6 (XPG6/UNIX 03/SUSv3) +// _XPG7 Open Group Technical Standard, Issue 7 (XPG7/UNIX 08/SUSv4) + +// X/Open Portability Guide, Issue 3 + +// _XOPEN_VERSION is defined by the X/Open specifications and is not +// normally defined by the application, except in the case of an XPG4 +// application. On the implementation side, _XOPEN_VERSION defined with +// the value of 3 indicates an XPG3 application. _XOPEN_VERSION defined +// with the value of 4 indicates an XPG4 or XPG4v2 (UNIX 95) application. +// _XOPEN_VERSION defined with a value of 500 indicates an XPG5 (UNIX 98) +// application and with a value of 600 indicates an XPG6 (UNIX 03) +// application and with a value of 700 indicates an XPG7 (UNIX 08). +// The appropriate version is determined by the use of the +// feature test macros described earlier. The value of _XOPEN_VERSION +// defaults to 3 otherwise indicating support for XPG3 applications. + +// ANSI C and ISO 9899:1990 say the type long long doesn't exist in strictly +// conforming environments. ISO 9899:1999 says it does. +// +// The presence of _LONGLONG_TYPE says "long long exists" which is therefore +// defined in all but strictly conforming environments that disallow it. + +// The following macro defines a value for the ISO C99 restrict +// keyword so that _RESTRICT_KYWD resolves to "restrict" if +// an ISO C99 compiler is used, "__restrict" for c++ and "" (null string) +// if any other compiler is used. This allows for the use of single +// prototype declarations regardless of compiler version. + +// The following macro defines a value for the ISO C11 _Noreturn +// keyword so that _NORETURN_KYWD resolves to "_Noreturn" if +// an ISO C11 compiler is used and "" (null string) if any other +// compiler is used. This allows for the use of single prototype +// declarations regardless of compiler version. + +// ISO/IEC 9899:2011 Annex K + +// The following macro indicates header support for the ANSI C++ +// standard. The ISO/IEC designation for this is ISO/IEC FDIS 14882. + +// The following macro indicates header support for the C99 standard, +// ISO/IEC 9899:1999, Programming Languages - C. + +// The following macro indicates header support for the C11 standard, +// ISO/IEC 9899:2011, Programming Languages - C. + +// The following macro indicates header support for the C11 standard, +// ISO/IEC 9899:2011 Annex K, Programming Languages - C. + +// The following macro indicates header support for DTrace. The value is an +// integer that corresponds to the major version number for DTrace. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2021 Oxide Computer Company + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2016 Joyent, Inc. + +// Machine dependent definitions moved to . +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2007 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Machine dependent types: +// +// intel ia32 Version + +type X_label_t = struct{ Fval [8]int64 } /* machtypes.h:59:9 */ + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1988 AT&T +// All Rights Reserved + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2015 EveryCity Ltd. All rights reserved. +// Copyright 2019 Joyent, Inc. + +// This file contains definitions designed to enable different compilers +// to be used harmoniously on Solaris systems. + +// Allow for version tests for compiler bugs and features. + +// analogous to lint's PRINTFLIKEn + +// Handle the kernel printf routines that can take '%b' too + +// This one's pretty obvious -- the function never returns + +// The function is 'extern inline' and expects GNU C89 behaviour, not C99 +// behaviour. +// +// Should only be used on 'extern inline' definitions for GCC. + +// The function has control flow such that it may return multiple times (in +// the manner of setjmp or vfork) + +// This is an appropriate label for functions that do not +// modify their arguments, e.g. strlen() + +// This is a stronger form of __pure__. Can be used for functions +// that do not modify their arguments and don't depend on global +// memory. + +// This attribute, attached to a variable, means that the variable is meant to +// be possibly unused. GCC will not produce a warning for this variable. + +// Shorthand versions for readability + +// In release build, disable warnings about variables +// which are used only for debugging. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2016 Joyent, Inc. + +// This header file serves to group a set of well known defines and to +// set these for each instruction set architecture. These defines may +// be divided into two groups; characteristics of the processor and +// implementation choices for Solaris on a processor. +// +// Processor Characteristics: +// +// _LITTLE_ENDIAN / _BIG_ENDIAN: +// The natural byte order of the processor. A pointer to an int points +// to the least/most significant byte of that int. +// +// _STACK_GROWS_UPWARD / _STACK_GROWS_DOWNWARD: +// The processor specific direction of stack growth. A push onto the +// stack increases/decreases the stack pointer, so it stores data at +// successively higher/lower addresses. (Stackless machines ignored +// without regrets). +// +// _LONG_LONG_HTOL / _LONG_LONG_LTOH: +// A pointer to a long long points to the most/least significant long +// within that long long. +// +// _BIT_FIELDS_HTOL / _BIT_FIELDS_LTOH: +// The C compiler assigns bit fields from the high/low to the low/high end +// of an int (most to least significant vs. least to most significant). +// +// _IEEE_754: +// The processor (or supported implementations of the processor) +// supports the ieee-754 floating point standard. No other floating +// point standards are supported (or significant). Any other supported +// floating point formats are expected to be cased on the ISA processor +// symbol. +// +// _CHAR_IS_UNSIGNED / _CHAR_IS_SIGNED: +// The C Compiler implements objects of type `char' as `unsigned' or +// `signed' respectively. This is really an implementation choice of +// the compiler writer, but it is specified in the ABI and tends to +// be uniform across compilers for an instruction set architecture. +// Hence, it has the properties of a processor characteristic. +// +// _CHAR_ALIGNMENT / _SHORT_ALIGNMENT / _INT_ALIGNMENT / _LONG_ALIGNMENT / +// _LONG_LONG_ALIGNMENT / _DOUBLE_ALIGNMENT / _LONG_DOUBLE_ALIGNMENT / +// _POINTER_ALIGNMENT / _FLOAT_ALIGNMENT: +// The ABI defines alignment requirements of each of the primitive +// object types. Some, if not all, may be hardware requirements as +// well. The values are expressed in "byte-alignment" units. +// +// _MAX_ALIGNMENT: +// The most stringent alignment requirement as specified by the ABI. +// Equal to the maximum of all the above _XXX_ALIGNMENT values. +// +// _MAX_ALIGNMENT_TYPE: +// The name of the C type that has the value descried in _MAX_ALIGNMENT. +// +// _ALIGNMENT_REQUIRED: +// True or false (1 or 0) whether or not the hardware requires the ABI +// alignment. +// +// _LONG_LONG_ALIGNMENT_32 +// The 32-bit ABI supported by a 64-bit kernel may have different +// alignment requirements for primitive object types. The value of this +// identifier is expressed in "byte-alignment" units. +// +// _HAVE_CPUID_INSN +// This indicates that the architecture supports the 'cpuid' +// instruction as defined by Intel. (Intel allows other vendors +// to extend the instruction for their own purposes.) +// +// +// Implementation Choices: +// +// _ILP32 / _LP64: +// This specifies the compiler data type implementation as specified in +// the relevant ABI. The choice between these is strongly influenced +// by the underlying hardware, but is not absolutely tied to it. +// Currently only two data type models are supported: +// +// _ILP32: +// Int/Long/Pointer are 32 bits. This is the historical UNIX +// and Solaris implementation. Due to its historical standing, +// this is the default case. +// +// _LP64: +// Long/Pointer are 64 bits, Int is 32 bits. This is the chosen +// implementation for 64-bit ABIs such as SPARC V9. +// +// _I32LPx: +// A compilation environment where 'int' is 32-bit, and +// longs and pointers are simply the same size. +// +// In all cases, Char is 8 bits and Short is 16 bits. +// +// _SUNOS_VTOC_8 / _SUNOS_VTOC_16 / _SVR4_VTOC_16: +// This specifies the form of the disk VTOC (or label): +// +// _SUNOS_VTOC_8: +// This is a VTOC form which is upwardly compatible with the +// SunOS 4.x disk label and allows 8 partitions per disk. +// +// _SUNOS_VTOC_16: +// In this format the incore vtoc image matches the ondisk +// version. It allows 16 slices per disk, and is not +// compatible with the SunOS 4.x disk label. +// +// Note that these are not the only two VTOC forms possible and +// additional forms may be added. One possible form would be the +// SVr4 VTOC form. The symbol for that is reserved now, although +// it is not implemented. +// +// _SVR4_VTOC_16: +// This VTOC form is compatible with the System V Release 4 +// VTOC (as implemented on the SVr4 Intel and 3b ports) with +// 16 partitions per disk. +// +// +// _DMA_USES_PHYSADDR / _DMA_USES_VIRTADDR +// This describes the type of addresses used by system DMA: +// +// _DMA_USES_PHYSADDR: +// This type of DMA, used in the x86 implementation, +// requires physical addresses for DMA buffers. The 24-bit +// addresses used by some legacy boards is the source of the +// "low-memory" (<16MB) requirement for some devices using DMA. +// +// _DMA_USES_VIRTADDR: +// This method of DMA allows the use of virtual addresses for +// DMA transfers. +// +// _FIRMWARE_NEEDS_FDISK / _NO_FDISK_PRESENT +// This indicates the presence/absence of an fdisk table. +// +// _FIRMWARE_NEEDS_FDISK +// The fdisk table is required by system firmware. If present, +// it allows a disk to be subdivided into multiple fdisk +// partitions, each of which is equivalent to a separate, +// virtual disk. This enables the co-existence of multiple +// operating systems on a shared hard disk. +// +// _NO_FDISK_PRESENT +// If the fdisk table is absent, it is assumed that the entire +// media is allocated for a single operating system. +// +// _HAVE_TEM_FIRMWARE +// Defined if this architecture has the (fallback) option of +// using prom_* calls for doing I/O if a suitable kernel driver +// is not available to do it. +// +// _DONT_USE_1275_GENERIC_NAMES +// Controls whether or not device tree node names should +// comply with the IEEE 1275 "Generic Names" Recommended +// Practice. With _DONT_USE_GENERIC_NAMES, device-specific +// names identifying the particular device will be used. +// +// __i386_COMPAT +// This indicates whether the i386 ABI is supported as a *non-native* +// mode for the platform. When this symbol is defined: +// - 32-bit xstat-style system calls are enabled +// - 32-bit xmknod-style system calls are enabled +// - 32-bit system calls use i386 sizes -and- alignments +// +// Note that this is NOT defined for the i386 native environment! +// +// __x86 +// This is ONLY a synonym for defined(__i386) || defined(__amd64) +// which is useful only insofar as these two architectures share +// common attributes. Analogous to __sparc. +// +// _PSM_MODULES +// This indicates whether or not the implementation uses PSM +// modules for processor support, reading /etc/mach from inside +// the kernel to extract a list. +// +// _RTC_CONFIG +// This indicates whether or not the implementation uses /etc/rtc_config +// to configure the real-time clock in the kernel. +// +// _UNIX_KRTLD +// This indicates that the implementation uses a dynamically +// linked unix + krtld to form the core kernel image at boot +// time, or (in the absence of this symbol) a prelinked kernel image. +// +// _OBP +// This indicates the firmware interface is OBP. +// +// _SOFT_HOSTID +// This indicates that the implementation obtains the hostid +// from the file /etc/hostid, rather than from hardware. + +// The following set of definitions characterize Solaris on AMD's +// 64-bit systems. + +// Define the appropriate "processor characteristics" + +// Different alignment constraints for the i386 ABI in compatibility mode + +// Define the appropriate "implementation choices". + +// The feature test macro __i386 is generic for all processors implementing +// the Intel 386 instruction set or a superset of it. Specifically, this +// includes all members of the 386, 486, and Pentium family of processors. + +// Values of _POSIX_C_SOURCE +// +// undefined not a POSIX compilation +// 1 POSIX.1-1990 compilation +// 2 POSIX.2-1992 compilation +// 199309L POSIX.1b-1993 compilation (Real Time) +// 199506L POSIX.1c-1995 compilation (POSIX Threads) +// 200112L POSIX.1-2001 compilation (Austin Group Revision) +// 200809L POSIX.1-2008 compilation + +// The feature test macros __XOPEN_OR_POSIX, _STRICT_STDC, _STRICT_SYMBOLS, +// and _STDC_C99 are Sun implementation specific macros created in order to +// compress common standards specified feature test macros for easier reading. +// These macros should not be used by the application developer as +// unexpected results may occur. Instead, the user should reference +// standards(7) for correct usage of the standards feature test macros. +// +// __XOPEN_OR_POSIX Used in cases where a symbol is defined by both +// X/Open or POSIX or in the negative, when neither +// X/Open or POSIX defines a symbol. +// +// _STRICT_STDC __STDC__ is specified by the C Standards and defined +// by the compiler. For Sun compilers the value of +// __STDC__ is either 1, 0, or not defined based on the +// compilation mode (see cc(1)). When the value of +// __STDC__ is 1 and in the absence of any other feature +// test macros, the namespace available to the application +// is limited to only those symbols defined by the C +// Standard. _STRICT_STDC provides a more readable means +// of identifying symbols defined by the standard, or in +// the negative, symbols that are extensions to the C +// Standard. See additional comments for GNU C differences. +// +// _STDC_C99 __STDC_VERSION__ is specified by the C standards and +// defined by the compiler and indicates the version of +// the C standard. A value of 199901L indicates a +// compiler that complies with ISO/IEC 9899:1999, other- +// wise known as the C99 standard. +// +// _STDC_C11 Like _STDC_C99 except that the value of __STDC_VERSION__ +// is 201112L indicating a compiler that compiles with +// ISO/IEC 9899:2011, otherwise known as the C11 standard. +// +// _STRICT_SYMBOLS Used in cases where symbol visibility is restricted +// by the standards, and the user has not explicitly +// relaxed the strictness via __EXTENSIONS__. + +// ISO/IEC 9899:1990 and it's revisions, ISO/IEC 9899:1999 and ISO/IEC +// 99899:2011 specify the following predefined macro name: +// +// __STDC__ The integer constant 1, intended to indicate a conforming +// implementation. +// +// Furthermore, a strictly conforming program shall use only those features +// of the language and library specified in these standards. A conforming +// implementation shall accept any strictly conforming program. +// +// Based on these requirements, Sun's C compiler defines __STDC__ to 1 for +// strictly conforming environments and __STDC__ to 0 for environments that +// use ANSI C semantics but allow extensions to the C standard. For non-ANSI +// C semantics, Sun's C compiler does not define __STDC__. +// +// The GNU C project interpretation is that __STDC__ should always be defined +// to 1 for compilation modes that accept ANSI C syntax regardless of whether +// or not extensions to the C standard are used. Violations of conforming +// behavior are conditionally flagged as warnings via the use of the +// -pedantic option. In addition to defining __STDC__ to 1, the GNU C +// compiler also defines __STRICT_ANSI__ as a means of specifying strictly +// conforming environments using the -ansi or -std= options. +// +// In the absence of any other compiler options, Sun and GNU set the value +// of __STDC__ as follows when using the following options: +// +// Value of __STDC__ __STRICT_ANSI__ +// +// cc -Xa (default) 0 undefined +// cc -Xt (transitional) 0 undefined +// cc -Xc (strictly conforming) 1 undefined +// cc -Xs (K&R C) undefined undefined +// +// gcc (default) 1 undefined +// gcc -ansi, -std={c89, c99,...) 1 defined +// gcc -traditional (K&R) undefined undefined +// +// The default compilation modes for Sun C compilers versus GNU C compilers +// results in a differing value for __STDC__ which results in a more +// restricted namespace when using Sun compilers. To allow both GNU and Sun +// interpretations to peacefully co-exist, we use the following Sun +// implementation _STRICT_STDC_ macro: + +// Compiler complies with ISO/IEC 9899:1999 or ISO/IEC 9989:2011 + +// Use strict symbol visibility. + +// This is a variant of _STRICT_SYMBOLS that is meant to cover headers that are +// governed by POSIX, but have not been governed by ISO C. One can go two ways +// on what should happen if an application actively includes (not transitively) +// a header that isn't part of the ISO C spec, we opt to say that if someone has +// gone out of there way then they're doing it for a reason and that is an act +// of non-compliance and therefore it's not up to us to hide away every symbol. +// +// In general, prefer using _STRICT_SYMBOLS, but this is here in particular for +// cases where in the past we have only used a POSIX related check and we don't +// wish to make something stricter. Often applications are relying on the +// ability to, or more realistically unwittingly, have _STRICT_STDC declared and +// still use these interfaces. + +// Large file interfaces: +// +// _LARGEFILE_SOURCE +// 1 large file-related additions to POSIX +// interfaces requested (fseeko, etc.) +// _LARGEFILE64_SOURCE +// 1 transitional large-file-related interfaces +// requested (seek64, stat64, etc.) +// +// The corresponding announcement macros are respectively: +// _LFS_LARGEFILE +// _LFS64_LARGEFILE +// (These are set in .) +// +// Requesting _LARGEFILE64_SOURCE implies requesting _LARGEFILE_SOURCE as +// well. +// +// The large file interfaces are made visible regardless of the initial values +// of the feature test macros under certain circumstances: +// - If no explicit standards-conforming environment is requested (neither +// of _POSIX_SOURCE nor _XOPEN_SOURCE is defined and the value of +// __STDC__ does not imply standards conformance). +// - Extended system interfaces are explicitly requested (__EXTENSIONS__ +// is defined). +// - Access to in-kernel interfaces is requested (_KERNEL or _KMEMUSER is +// defined). (Note that this dependency is an artifact of the current +// kernel implementation and may change in future releases.) + +// Large file compilation environment control: +// +// The setting of _FILE_OFFSET_BITS controls the size of various file-related +// types and governs the mapping between file-related source function symbol +// names and the corresponding binary entry points. +// +// In the 32-bit environment, the default value is 32; if not set, set it to +// the default here, to simplify tests in other headers. +// +// In the 64-bit compilation environment, the only value allowed is 64. + +// Use of _XOPEN_SOURCE +// +// The following X/Open specifications are supported: +// +// X/Open Portability Guide, Issue 3 (XPG3) +// X/Open CAE Specification, Issue 4 (XPG4) +// X/Open CAE Specification, Issue 4, Version 2 (XPG4v2) +// X/Open CAE Specification, Issue 5 (XPG5) +// Open Group Technical Standard, Issue 6 (XPG6), also referred to as +// IEEE Std. 1003.1-2001 and ISO/IEC 9945:2002. +// Open Group Technical Standard, Issue 7 (XPG7), also referred to as +// IEEE Std. 1003.1-2008 and ISO/IEC 9945:2009. +// +// XPG4v2 is also referred to as UNIX 95 (SUS or SUSv1). +// XPG5 is also referred to as UNIX 98 or the Single Unix Specification, +// Version 2 (SUSv2) +// XPG6 is the result of a merge of the X/Open and POSIX specifications +// and as such is also referred to as IEEE Std. 1003.1-2001 in +// addition to UNIX 03 and SUSv3. +// XPG7 is also referred to as UNIX 08 and SUSv4. +// +// When writing a conforming X/Open application, as per the specification +// requirements, the appropriate feature test macros must be defined at +// compile time. These are as follows. For more info, see standards(7). +// +// Feature Test Macro Specification +// ------------------------------------------------ ------------- +// _XOPEN_SOURCE XPG3 +// _XOPEN_SOURCE && _XOPEN_VERSION = 4 XPG4 +// _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED = 1 XPG4v2 +// _XOPEN_SOURCE = 500 XPG5 +// _XOPEN_SOURCE = 600 (or POSIX_C_SOURCE=200112L) XPG6 +// _XOPEN_SOURCE = 700 (or POSIX_C_SOURCE=200809L) XPG7 +// +// In order to simplify the guards within the headers, the following +// implementation private test macros have been created. Applications +// must NOT use these private test macros as unexpected results will +// occur. +// +// Note that in general, the use of these private macros is cumulative. +// For example, the use of _XPG3 with no other restrictions on the X/Open +// namespace will make the symbols visible for XPG3 through XPG6 +// compilation environments. The use of _XPG4_2 with no other X/Open +// namespace restrictions indicates that the symbols were introduced in +// XPG4v2 and are therefore visible for XPG4v2 through XPG6 compilation +// environments, but not for XPG3 or XPG4 compilation environments. +// +// _XPG3 X/Open Portability Guide, Issue 3 (XPG3) +// _XPG4 X/Open CAE Specification, Issue 4 (XPG4) +// _XPG4_2 X/Open CAE Specification, Issue 4, Version 2 (XPG4v2/UNIX 95/SUS) +// _XPG5 X/Open CAE Specification, Issue 5 (XPG5/UNIX 98/SUSv2) +// _XPG6 Open Group Technical Standard, Issue 6 (XPG6/UNIX 03/SUSv3) +// _XPG7 Open Group Technical Standard, Issue 7 (XPG7/UNIX 08/SUSv4) + +// X/Open Portability Guide, Issue 3 + +// _XOPEN_VERSION is defined by the X/Open specifications and is not +// normally defined by the application, except in the case of an XPG4 +// application. On the implementation side, _XOPEN_VERSION defined with +// the value of 3 indicates an XPG3 application. _XOPEN_VERSION defined +// with the value of 4 indicates an XPG4 or XPG4v2 (UNIX 95) application. +// _XOPEN_VERSION defined with a value of 500 indicates an XPG5 (UNIX 98) +// application and with a value of 600 indicates an XPG6 (UNIX 03) +// application and with a value of 700 indicates an XPG7 (UNIX 08). +// The appropriate version is determined by the use of the +// feature test macros described earlier. The value of _XOPEN_VERSION +// defaults to 3 otherwise indicating support for XPG3 applications. + +// ANSI C and ISO 9899:1990 say the type long long doesn't exist in strictly +// conforming environments. ISO 9899:1999 says it does. +// +// The presence of _LONGLONG_TYPE says "long long exists" which is therefore +// defined in all but strictly conforming environments that disallow it. + +// The following macro defines a value for the ISO C99 restrict +// keyword so that _RESTRICT_KYWD resolves to "restrict" if +// an ISO C99 compiler is used, "__restrict" for c++ and "" (null string) +// if any other compiler is used. This allows for the use of single +// prototype declarations regardless of compiler version. + +// The following macro defines a value for the ISO C11 _Noreturn +// keyword so that _NORETURN_KYWD resolves to "_Noreturn" if +// an ISO C11 compiler is used and "" (null string) if any other +// compiler is used. This allows for the use of single prototype +// declarations regardless of compiler version. + +// ISO/IEC 9899:2011 Annex K + +// The following macro indicates header support for the ANSI C++ +// standard. The ISO/IEC designation for this is ISO/IEC FDIS 14882. + +// The following macro indicates header support for the C99 standard, +// ISO/IEC 9899:1999, Programming Languages - C. + +// The following macro indicates header support for the C11 standard, +// ISO/IEC 9899:2011, Programming Languages - C. + +// The following macro indicates header support for the C11 standard, +// ISO/IEC 9899:2011 Annex K, Programming Languages - C. + +// The following macro indicates header support for DTrace. The value is an +// integer that corresponds to the major version number for DTrace. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2021 Oxide Computer Company + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2016 Joyent, Inc. + +// Machine dependent definitions moved to . +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2007 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Machine dependent types: +// +// intel ia32 Version + +type Label_t = X_label_t /* machtypes.h:59:54 */ + +type Lock_t = uint8 /* machtypes.h:63:23 */ // lock work for busy wait + +// Include fixed width type declarations proposed by the ISO/JTC1/SC22/WG14 C +// committee's working draft for the revision of the current ISO C standard, +// ISO/IEC 9899:1990 Programming language - C. These are not currently +// required by any standard but constitute a useful, general purpose set +// of type definitions which is namespace clean with respect to all standards. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2014 Garrett D'Amore +// +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// This file, , is part of the Sun Microsystems implementation +// of defined in the ISO C standard, ISO/IEC 9899:1999 +// Programming language - C. +// +// Programs/Modules should not directly include this file. Access to the +// types defined in this file should be through the inclusion of one of the +// following files: +// +// Provides only the "_t" types defined in this +// file which is a subset of the contents of +// . (This can be appropriate for +// all programs/modules except those claiming +// ANSI-C conformance.) +// +// Provides the Kernel and Driver appropriate +// components of . +// +// For use by applications. +// +// See these files for more details. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Basic / Extended integer types +// +// The following defines the basic fixed-size integer types. +// +// Implementations are free to typedef them to Standard C integer types or +// extensions that they support. If an implementation does not support one +// of the particular integer data types below, then it should not define the +// typedefs and macros corresponding to that data type. Note that int8_t +// is not defined in -Xs mode on ISAs for which the ABI specifies "char" +// as an unsigned entity because there is no way to define an eight bit +// signed integral. +type Int8_t = int8 /* int_types.h:75:16 */ +type Int16_t = int16 /* int_types.h:79:17 */ +type Int32_t = int32 /* int_types.h:80:15 */ +type Int64_t = int64 /* int_types.h:83:16 */ + +type Uint8_t = uint8 /* int_types.h:91:24 */ +type Uint16_t = uint16 /* int_types.h:92:25 */ +type Uint32_t = uint32 /* int_types.h:93:23 */ +type Uint64_t = uint64 /* int_types.h:95:24 */ + +// intmax_t and uintmax_t are to be the longest (in number of bits) signed +// and unsigned integer types supported by the implementation. +type Intmax_t = int64 /* int_types.h:107:19 */ +type Uintmax_t = uint64 /* int_types.h:108:19 */ + +// intptr_t and uintptr_t are signed and unsigned integer types large enough +// to hold any data pointer; that is, data pointers can be assigned into or +// from these integer types without losing precision. +type Intptr_t = int64 /* int_types.h:120:16 */ +type Uintptr_t = uint64 /* int_types.h:121:24 */ + +// The following define the fastest integer types that can hold the +// specified number of bits. +type Int_fast8_t = int8 /* int_types.h:132:16 */ +type Int_fast16_t = int32 /* int_types.h:136:15 */ +type Int_fast32_t = int32 /* int_types.h:137:15 */ +type Int_fast64_t = int64 /* int_types.h:139:16 */ + +type Uint_fast8_t = uint8 /* int_types.h:146:24 */ +type Uint_fast16_t = uint32 /* int_types.h:147:23 */ +type Uint_fast32_t = uint32 /* int_types.h:148:23 */ +type Uint_fast64_t = uint64 /* int_types.h:150:24 */ + +// The following define the smallest integer types that can hold the +// specified number of bits. +type Int_least8_t = int8 /* int_types.h:162:16 */ +type Int_least16_t = int16 /* int_types.h:166:17 */ +type Int_least32_t = int32 /* int_types.h:167:15 */ +type Int_least64_t = int64 /* int_types.h:169:16 */ + +// If these are changed, please update char16_t and char32_t in head/uchar.h. +type Uint_least8_t = uint8 /* int_types.h:179:24 */ +type Uint_least16_t = uint16 /* int_types.h:180:25 */ +type Uint_least32_t = uint32 /* int_types.h:181:23 */ +type Uint_least64_t = uint64 /* int_types.h:183:24 */ + +// Strictly conforming ANSI C environments prior to the 1999 +// revision of the C Standard (ISO/IEC 9899:1999) do not have +// the long long data type. +type Longlong_t = int64 /* types.h:72:20 */ +type U_longlong_t = uint64 /* types.h:73:28 */ + +// These types (t_{u}scalar_t) exist because the XTI/TPI/DLPI standards had +// to use them instead of int32_t and uint32_t because DEC had +// shipped 64-bit wide. +type T_scalar_t = int32 /* types.h:92:18 */ +type T_uscalar_t = uint32 /* types.h:93:18 */ + +// POSIX Extensions +type Uchar_t = uint8 /* types.h:102:23 */ +type Ushort_t = uint16 /* types.h:103:24 */ +type Uint_t = uint32 /* types.h:104:22 */ +type Ulong_t = uint64 /* types.h:105:23 */ + +type Caddr_t = uintptr /* types.h:107:15 */ // ? type +type Daddr_t = int64 /* types.h:108:15 */ // type +type Cnt_t = int16 /* types.h:109:16 */ // pointer difference + +// VM-related types +type Pfn_t = uint64 /* types.h:123:18 */ // page frame number +type Pgcnt_t = uint64 /* types.h:124:18 */ // number of pages +type Spgcnt_t = int64 /* types.h:125:15 */ // signed number of pages + +type Use_t = uint8 /* types.h:127:18 */ // use count for swap. +type Sysid_t = int16 /* types.h:128:16 */ +type Index_t = int16 /* types.h:129:16 */ +type Timeout_id_t = uintptr /* types.h:130:15 */ // opaque handle from timeout(9F) +type Bufcall_id_t = uintptr /* types.h:131:15 */ // opaque handle from bufcall(9F) + +// The size of off_t and related types depends on the setting of +// _FILE_OFFSET_BITS. (Note that other system headers define other types +// related to those defined here.) +// +// If _LARGEFILE64_SOURCE is defined, variants of these types that are +// explicitly 64 bits wide become available. + +type Off_t = int64 /* types.h:145:15 */ // offsets within files + +type Off64_t = int64 /* types.h:152:16 */ // offsets within files + +type Ino_t = uint64 /* types.h:161:18 */ // expanded inode type +type Blkcnt_t = int64 /* types.h:162:15 */ // count of file blocks +type Fsblkcnt_t = uint64 /* types.h:163:18 */ // count of file system blocks +type Fsfilcnt_t = uint64 /* types.h:164:18 */ // count of files + +type Ino64_t = uint64 /* types.h:174:16 */ // expanded inode type +type Blkcnt64_t = int64 /* types.h:175:18 */ // count of file blocks +type Fsblkcnt64_t = uint64 /* types.h:176:20 */ // count of file system blocks +type Fsfilcnt64_t = uint64 /* types.h:177:20 */ // count of files + +type Blksize_t = int32 /* types.h:187:14 */ // used for block sizes + +// The boolean_t type has had a varied amount of exposure over the years in +// terms of how its enumeration constants have been exposed. In particular, it +// originally used the __XOPEN_OR_POSIX macro to determine whether to prefix the +// B_TRUE and B_FALSE with an underscore. This check never included the +// question of if we were in a strict ANSI C environment or whether extensions +// were defined. +// +// Compilers such as clang started defaulting to always including an +// XOPEN_SOURCE declaration on behalf of users, but also noted __EXTENSIONS__. +// This would lead most software that had used the non-underscore versions to +// need it. As such, we have adjusted the non-strict XOPEN environment to retain +// its old behavior so as to minimize namespace pollution; however, we instead +// include both variants of the definitions in the generally visible version +// allowing software written in either world to hopefully end up in a good +// place. +// +// This isn't perfect, but should hopefully minimize the pain for folks actually +// trying to build software. +type Boolean_t = uint32 /* types.h:215:69 */ + +// The {u,}pad64_t types can be used in structures such that those structures +// may be accessed by code produced by compilation environments which don't +// support a 64 bit integral datatype. The intention is not to allow +// use of these fields in such environments, but to maintain the alignment +// and offsets of the structure. +// +// Similar comments for {u,}pad128_t. +// +// Note that these types do NOT generate any stronger alignment constraints +// than those available in the underlying ABI. See +type Pad64_t = int64 /* types.h:240:18 */ +type Upad64_t = uint64 /* types.h:241:18 */ + +type Pad128_t = struct { + F_q float64 + F__ccgo_pad1 [8]byte +} /* types.h:257:3 */ + +type Upad128_t = struct { + F_q float64 + F__ccgo_pad1 [8]byte +} /* types.h:262:3 */ + +type Offset_t = int64 /* types.h:264:20 */ +type U_offset_t = uint64 /* types.h:265:22 */ +type Len_t = uint64 /* types.h:266:22 */ +type Diskaddr_t = uint64 /* types.h:267:22 */ + +// Definitions remaining from previous partial support for 64-bit file +// offsets. This partial support for devices greater than 2gb requires +// compiler support for long long. +type Lloff_t = struct{ F_f int64 } /* types.h:284:3 */ + +type Lldaddr_t = struct{ F_f int64 } /* types.h:304:3 */ + +type K_fltset_t = uint32 /* types.h:317:16 */ // kernel fault set type + +// The following type is for various kinds of identifiers. The +// actual type must be the same for all since some system calls +// (such as sigsend) take arguments that may be any of these +// types. The enumeration type idtype_t defined in sys/procset.h +// is used to indicate what type of id is being specified -- +// a process id, process group id, session id, scheduling class id, +// user id, group id, project id, task id or zone id. +type Id_t = int32 /* types.h:329:14 */ + +type Lgrp_id_t = int32 /* types.h:334:15 */ // lgroup ID + +// Type useconds_t is an unsigned integral type capable of storing +// values at least in the range of zero to 1,000,000. +type Useconds_t = uint32 /* types.h:340:17 */ // Time, in microseconds + +type Suseconds_t = int64 /* types.h:344:14 */ // signed # of microseconds + +// Typedefs for dev_t components. +type Major_t = uint32 /* types.h:351:16 */ // major part of device number +type Minor_t = uint32 /* types.h:352:16 */ // minor part of device number + +// The data type of a thread priority. +type Pri_t = int16 /* types.h:361:15 */ + +// The data type for a CPU flags field. (Can be extended to larger unsigned +// types, if needed, limited by ability to update atomically.) +type Cpu_flag_t = uint16 /* types.h:367:18 */ + +// For compatibility reasons the following typedefs (prefixed o_) +// can't grow regardless of the EFT definition. Although, +// applications should not explicitly use these typedefs +// they may be included via a system header definition. +// WARNING: These typedefs may be removed in a future +// release. +// +// ex. the definitions in s5inode.h (now obsoleted) +// remained small to preserve compatibility +// in the S5 file system type. +type O_mode_t = uint16 /* types.h:380:18 */ // old file attribute type +type O_dev_t = int16 /* types.h:381:15 */ // old device type +type O_uid_t = uint16 /* types.h:382:18 */ // old UID type +type O_gid_t = uint16 /* types.h:383:17 */ // old GID type +type O_nlink_t = int16 /* types.h:384:15 */ // old file link type +type O_pid_t = int16 /* types.h:385:15 */ // old process id type +type O_ino_t = uint16 /* types.h:386:18 */ // old inode type + +// POSIX and XOPEN Declarations +type Key_t = int32 /* types.h:392:13 */ // IPC key type +type Mode_t = uint32 /* types.h:394:16 */ // file attribute type + +type Uid_t = uint32 /* types.h:401:22 */ // UID type + +type Gid_t = uint32 /* types.h:404:15 */ // GID type + +type Datalink_id_t = uint32 /* types.h:406:18 */ +type Vrid_t = uint32 /* types.h:407:18 */ + +type Taskid_t = int32 /* types.h:409:17 */ +type Projid_t = int32 /* types.h:410:17 */ +type Poolid_t = int32 /* types.h:411:14 */ +type Zoneid_t = int32 /* types.h:412:14 */ +type Ctid_t = int32 /* types.h:413:14 */ + +// POSIX definitions are same as defined in thread.h and synch.h. +// Any changes made to here should be reflected in corresponding +// files as described in comments. +type Pthread_t = uint32 /* types.h:420:16 */ // = thread_t in thread.h +type Pthread_key_t = uint32 /* types.h:421:16 */ // = thread_key_t in thread.h + +// "Magic numbers" tagging synchronization object types + +type X_pthread_mutex = struct { + F__pthread_mutex_flags struct { + F__pthread_mutex_flag1 uint16 + F__pthread_mutex_flag2 uint8 + F__pthread_mutex_ceiling uint8 + F__pthread_mutex_type uint16 + F__pthread_mutex_magic uint16 + } + F__pthread_mutex_lock struct { + F__ccgo_pad1 [0]uint64 + F__pthread_mutex_lock64 struct{ F__pthread_mutex_pad [8]uint8 } + } + F__pthread_mutex_data uint64 +} /* types.h:429:9 */ + +// = thread_key_t in thread.h + +// "Magic numbers" tagging synchronization object types + +type Pthread_mutex_t = X_pthread_mutex /* types.h:448:3 */ + +type X_pthread_cond = struct { + F__pthread_cond_flags struct { + F__pthread_cond_flag [4]uint8 + F__pthread_cond_type uint16 + F__pthread_cond_magic uint16 + } + F__pthread_cond_data uint64 +} /* types.h:450:9 */ + +type Pthread_cond_t = X_pthread_cond /* types.h:457:3 */ + +// UNIX 98 Extension +type X_pthread_rwlock = struct { + F__pthread_rwlock_readers int32 + F__pthread_rwlock_type uint16 + F__pthread_rwlock_magic uint16 + F__pthread_rwlock_mutex Pthread_mutex_t + F__pthread_rwlock_readercv Pthread_cond_t + F__pthread_rwlock_writercv Pthread_cond_t +} /* types.h:462:9 */ + +// UNIX 98 Extension +type Pthread_rwlock_t = X_pthread_rwlock /* types.h:469:3 */ + +// SUSV3 +type Pthread_barrier_t = struct { + F__pthread_barrier_count uint32 + F__pthread_barrier_current uint32 + F__pthread_barrier_cycle uint64 + F__pthread_barrier_reserved uint64 + F__pthread_barrier_lock Pthread_mutex_t + F__pthread_barrier_cond Pthread_cond_t +} /* types.h:481:3 */ + +type Pthread_spinlock_t = Pthread_mutex_t /* types.h:483:25 */ + +// attributes for threads, dynamically allocated by library +type X_pthread_attr = struct{ F__pthread_attrp uintptr } /* types.h:488:9 */ + +// attributes for threads, dynamically allocated by library +type Pthread_attr_t = X_pthread_attr /* types.h:490:3 */ + +// attributes for mutex, dynamically allocated by library +type X_pthread_mutexattr = struct{ F__pthread_mutexattrp uintptr } /* types.h:495:9 */ + +// attributes for mutex, dynamically allocated by library +type Pthread_mutexattr_t = X_pthread_mutexattr /* types.h:497:3 */ + +// attributes for cond, dynamically allocated by library +type X_pthread_condattr = struct{ F__pthread_condattrp uintptr } /* types.h:502:9 */ + +// attributes for cond, dynamically allocated by library +type Pthread_condattr_t = X_pthread_condattr /* types.h:504:3 */ + +// pthread_once +type X_once = struct{ F__pthread_once_pad [4]uint64 } /* types.h:509:9 */ + +// pthread_once +type Pthread_once_t = X_once /* types.h:511:3 */ + +// UNIX 98 Extensions +// attributes for rwlock, dynamically allocated by library +type X_pthread_rwlockattr = struct{ F__pthread_rwlockattrp uintptr } /* types.h:517:9 */ + +// UNIX 98 Extensions +// attributes for rwlock, dynamically allocated by library +type Pthread_rwlockattr_t = X_pthread_rwlockattr /* types.h:519:3 */ + +// SUSV3 +// attributes for pthread_barrier_t, dynamically allocated by library +type Pthread_barrierattr_t = struct{ F__pthread_barrierattrp uintptr } /* types.h:527:3 */ + +type Dev_t = uint64 /* types.h:529:17 */ // expanded device type + +type Nlink_t = uint32 /* types.h:532:16 */ // file link type +type Pid_t = int32 /* types.h:533:13 */ // size of something in bytes + +type Ssize_t = int64 /* types.h:551:14 */ // size of something in bytes or -1 + +type Time_t = int64 /* types.h:559:15 */ // time of day in seconds + +type Clock_t = int64 /* types.h:564:15 */ // relative time in a specified resolution + +type Clockid_t = int32 /* types.h:569:13 */ // clock identifier type + +type Timer_t = int32 /* types.h:574:13 */ // timer identifier type + +// BEGIN CSTYLED +type Unchar = uint8 /* types.h:580:23 */ +type Ushort = uint16 /* types.h:581:24 */ +type Uint = uint32 /* types.h:582:22 */ +type Ulong = uint64 /* types.h:583:23 */ +// END CSTYLED + +// The following is the value of type id_t to use to indicate the +// caller's current id. See procset.h for the type idtype_t +// which defines which kind of id is being specified. + +// The following value of type pfn_t is used to indicate +// invalid page frame number. + +// BEGIN CSTYLED +type U_char = uint8 /* types.h:650:23 */ +type U_short = uint16 /* types.h:651:24 */ +type U_int = uint32 /* types.h:652:22 */ +type U_long = uint64 /* types.h:653:23 */ +type X_quad = struct{ Fval [2]int32 } /* types.h:654:9 */ + +type Quad_t = X_quad /* types.h:654:38 */ // used by UFS +type Quad = Quad_t /* types.h:655:17 */ // used by UFS +// END CSTYLED + +// Nested include for BSD/sockets source compatibility. +// (The select macros used to be defined here). +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// +// Copyright 2010 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// University Copyright- Copyright (c) 1982, 1986, 1988 +// The Regents of the University of California +// All Rights Reserved +// +// University Acknowledgment- Portions of this document are derived from +// software developed by the University of California, Berkeley, and its +// contributors. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2005 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Implementation-private. This header should not be included +// directly by an application. The application should instead +// include which includes this header conditionally +// depending on which feature test macros are defined. By default, +// this header is included by . X/Open and POSIX +// standards requirements result in this header being included +// by only under a restricted set of conditions. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Time expressed in seconds and nanoseconds + +type Timespec = struct { + Ftv_sec int64 + Ftv_nsec int64 +} /* time_impl.h:57:9 */ + +// used by UFS +// END CSTYLED + +// Nested include for BSD/sockets source compatibility. +// (The select macros used to be defined here). +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// +// Copyright 2010 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// University Copyright- Copyright (c) 1982, 1986, 1988 +// The Regents of the University of California +// All Rights Reserved +// +// University Acknowledgment- Portions of this document are derived from +// software developed by the University of California, Berkeley, and its +// contributors. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2005 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Implementation-private. This header should not be included +// directly by an application. The application should instead +// include which includes this header conditionally +// depending on which feature test macros are defined. By default, +// this header is included by . X/Open and POSIX +// standards requirements result in this header being included +// by only under a restricted set of conditions. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Time expressed in seconds and nanoseconds + +type Timespec_t = Timespec /* time_impl.h:60:3 */ + +type Timestruc_t = Timespec /* time_impl.h:81:25 */ // definition per SVr4 + +// The following has been left in for backward compatibility. Portable +// applications should not use the structure name timestruc. + +// Timer specification +type Itimerspec = struct { + Fit_interval struct { + Ftv_sec int64 + Ftv_nsec int64 + } + Fit_value struct { + Ftv_sec int64 + Ftv_nsec int64 + } +} /* time_impl.h:95:9 */ + +// definition per SVr4 + +// The following has been left in for backward compatibility. Portable +// applications should not use the structure name timestruc. + +// Timer specification +type Itimerspec_t = Itimerspec /* time_impl.h:98:3 */ + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright (c) 1982, 1986, 1993 Regents of the University of California. +// All rights reserved. The Berkeley software License Agreement +// specifies the terms and conditions for redistribution. + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2020 OmniOS Community Edition (OmniOSce) Association. + +// Copyright (c) 2013, 2016 by Delphix. All rights reserved. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Structure returned by gettimeofday(2) system call, +// and used in other calls. + +type Timeval = struct { + Ftv_sec int64 + Ftv_usec int64 +} /* time.h:54:1 */ + +type Timezone = struct { + Ftz_minuteswest int32 + Ftz_dsttime int32 +} /* time.h:86:1 */ + +// Needed for longlong_t type. Placement of this due to +// including which relies on the presense of the itimerval +// structure. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2021 Oxide Computer Company + +// Operations on timevals. + +// Names of the interval timers, and structure +// defining a timer setting. +// time and when system is running on +// behalf of the process. +// time profiling of multithreaded +// programs. + +type Itimerval = struct { + Fit_interval struct { + Ftv_sec int64 + Ftv_usec int64 + } + Fit_value struct { + Ftv_sec int64 + Ftv_usec int64 + } +} /* time.h:209:1 */ + +// Definitions for commonly used resolutions. + +// Time expressed as a 64-bit nanosecond counter. +type Hrtime_t = int64 /* time.h:265:20 */ + +// The inclusion of is historical and was added for +// backward compatibility in delta 1.2 when a number of definitions +// were moved out of . More recently, the timespec and +// itimerspec structure definitions, along with the _CLOCK_*, CLOCK_*, +// _TIMER_*, and TIMER_* symbols were moved to , +// which is now included by . This change was due to POSIX +// 1003.1b-1993 and X/Open UNIX 98 requirements. For non-POSIX and +// non-X/Open applications, including this header will still make +// visible these definitions. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1988 AT&T +// All Rights Reserved + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2007 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2010 Nexenta Systems, Inc. Al rights reserved. +// Copyright 2016 Joyent, Inc. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1988 AT&T +// All Rights Reserved + +// Copyright 2014 Garrett D'Amore +// Copyright 2014 PALO, Richard. +// +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// An application should not include this header directly. Instead it +// should be included only through the inclusion of other Sun headers. +// +// The contents of this header is limited to identifiers specified in the +// C Standard. Any new identifiers specified in future amendments to the +// C Standard must be placed in this header. If these new identifiers +// are required to also be in the C++ Standard "std" namespace, then for +// anything other than macro definitions, corresponding "using" directives +// must also be added to . + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// This file and its contents are supplied under the terms of the +// Common Development and Distribution License ("CDDL"), version 1.0. +// You may only use this file in accordance with the terms of version +// 1.0 of the CDDL. +// +// A full copy of the text of the CDDL should have accompanied this +// source. A copy of the CDDL is also available via the Internet at +// http://www.illumos.org/license/CDDL. + +// Copyright 2014-2016 PALO, Richard. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// POSIX.1-2008 requires that the NULL macro be cast to type void *. + +type Tm = struct { + Ftm_sec int32 + Ftm_min int32 + Ftm_hour int32 + Ftm_mday int32 + Ftm_mon int32 + Ftm_year int32 + Ftm_wday int32 + Ftm_yday int32 + Ftm_isdst int32 +} /* time_iso.h:80:1 */ + +// Neither X/Open nor POSIX allow the inclusion of for the +// definition of the sigevent structure. Both require the inclusion +// of and when using the timer_create() function. +// However, X/Open also specifies that the sigevent structure be defined +// in as described in the header . This prevents +// compiler warnings for applications that only include and not +// also . The sigval union and the sigevent structure is +// therefore defined both here and in which gets included +// via inclusion of . +type Sigval = struct { + F__ccgo_pad1 [0]uint64 + Fsival_int int32 + F__ccgo_pad2 [4]byte +} /* time.h:125:1 */ + +type Sigevent = struct { + Fsigev_notify int32 + Fsigev_signo int32 + Fsigev_value struct { + F__ccgo_pad1 [0]uint64 + Fsival_int int32 + F__ccgo_pad2 [4]byte + } + Fsigev_notify_function uintptr + Fsigev_notify_attributes uintptr + F__sigev_pad2 int32 + F__ccgo_pad1 [4]byte +} /* time.h:133:1 */ + +type Locale_t = uintptr /* time.h:292:24 */ + +// The inclusion of is needed for the FD_CLR, +// FD_ISSET, FD_SET, and FD_SETSIZE macros as well as the +// select() prototype defined in the XOpen specifications +// beginning with XSH4v2. Placement required after definition +// for itimerval. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// +// Copyright 2010 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// University Copyright- Copyright (c) 1982, 1986, 1988 +// The Regents of the University of California +// All Rights Reserved +// +// University Acknowledgment- Portions of this document are derived from +// software developed by the University of California, Berkeley, and its +// contributors. + +// The sigset_t type is defined in and duplicated +// in as a result of XPG4v2 requirements. XPG6 +// now allows the visibility of signal.h in this header, however +// an order of inclusion problem occurs as a result of inclusion +// of in under certain conditions. +// Rather than include here, we've duplicated +// the sigset_t type instead. This type is required for the XPG6 +// introduced pselect() function also declared in this header. +type Sigset_t = struct{ F__sigbits [4]uint32 } /* select.h:76:3 */ + +// Select uses bit masks of file descriptors in longs. +// These macros manipulate such bit fields. +// FD_SETSIZE may be defined by the user, but the default here +// should be >= RLIM_FD_MAX. + +type Fd_mask = int64 /* select.h:92:14 */ +type Fds_mask = int64 /* select.h:94:14 */ + +// The value of _NBBY needs to be consistant with the value +// of NBBY in . + +type Fd_set1 = struct{ Ffds_bits [1024]int64 } /* select.h:120:9 */ + +// The value of _NBBY needs to be consistant with the value +// of NBBY in . + +type Fd_set = Fd_set1 /* select.h:125:3 */ + +// _VOID was defined to be either void or char but this is not +// required because previous SunOS compilers have accepted the void +// type. However, because many system header and source files use the +// void keyword, the volatile keyword, and ANSI C function prototypes, +// non-ANSI compilers cannot compile the system anyway. The _VOID macro +// should therefore not be used and remains for source compatibility +// only. +// CSTYLED + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/stdio.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2014 Garrett D'Amore +// Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved. + +// Copyright (c) 1988 AT&T +// All Rights Reserved + +// User-visible pieces of the ANSI C standard I/O package. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Do all of our 'redefine_extname' processing before +// declarations of the associated functions are seen. +// This is necessary to keep gcc happy. + +// large file compilation environment setup + +// In the LP64 compilation environment, all APIs are already large file + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/iso/stdio_iso.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2014 Garrett D'Amore +// Copyright 2014 PALO, Richard. +// +// Copyright 2005 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright (c) 1988 AT&T +// All Rights Reserved + +// An application should not include this header directly. Instead it +// should be included only through the inclusion of other Sun headers. +// +// The contents of this header is limited to identifiers specified in the +// C Standard. Any new identifiers specified in future amendments to the +// C Standard must be placed in this header. If these new identifiers +// are required to also be in the C++ Standard "std" namespace, then for +// anything other than macro definitions, corresponding "using" directives +// must also be added to . + +// User-visible pieces of the ANSI C standard I/O package. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// This file and its contents are supplied under the terms of the +// Common Development and Distribution License ("CDDL"), version 1.0. +// You may only use this file in accordance with the terms of version +// 1.0 of the CDDL. +// +// A full copy of the text of the CDDL should have accompanied this +// source. A copy of the CDDL is also available via the Internet at +// http://www.illumos.org/license/CDDL. + +// Copyright 2014-2016 PALO, Richard. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// An application should not include this header directly. Instead it +// should be included only through the inclusion of other Sun headers. +// +// The purpose of this header is to provide the type definitions for +// the va_list argument used by a number of printf and printf like +// functions. The headers that define these various function prototypes +// #include this header directly. These include but are not necessarily +// limited to , , , and +// . The type definitions included in this header are for +// the benefit of consumers of va_list. +// +// Any application that accepts variable argument lists must as documented, +// include either or the preferred . Doing so will +// pull in the appropriate compiler protocols defined in +// which is in turn is included by and . See comments +// in for more detailed information regarding implementation +// and compiler specific protocols. + +// The common definitions exported by this header or compilers using +// this header are: +// +// the identifier __builtin_va_alist for the variable list pseudo parameter +// the type __va_alist_type for the variable list pseudo parameter +// the type __va_list defining the type of the variable list iterator +// +// The feature macros (e.g. __BUILTIN_VA_STRUCT) and compiler macros +// (__GNUC__) and processor macros (e.g. __amd64) are intended to be +// defined by the compilation system, not the user of the system. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2016 Joyent, Inc. + +type X__gnuc_va_list = uintptr /* va_list.h:108:27 */ +// XX64 This seems unnecessary .. but is needed because vcmn_err is +// +// defined with __va_list instead of plain old va_list. +// Perhaps that should be fixed! +type X__va_list = uintptr /* va_list.h:114:27 */ + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +type X__FILE1 = struct{ F__pad [16]int64 } /* stdio_tag.h:40:9 */ + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +type X__FILE = X__FILE1 /* stdio_tag.h:40:27 */ + +// If feature test macros are set that enable interfaces that use types +// defined in , get those types by doing the include. +// +// Note that in asking for the interfaces associated with this feature test +// macro one also asks for definitions of the POSIX types. + +type FILE = X__FILE /* stdio_iso.h:102:16 */ + +type Fpos_t = int64 /* stdio_iso.h:115:15 */ + +type Fpos64_t = int64 /* stdio.h:188:17 */ + +type Passwd = struct { + Fpw_name uintptr + Fpw_passwd uintptr + Fpw_uid uint32 + Fpw_gid uint32 + Fpw_age uintptr + Fpw_comment uintptr + Fpw_gecos uintptr + Fpw_dir uintptr + Fpw_shell uintptr +} /* pwd.h:48:1 */ + +type Comment = struct { + Fc_dept uintptr + Fc_name uintptr + Fc_acct uintptr + Fc_bin uintptr +} /* pwd.h:61:1 */ + +var _ int8 /* gen.c:2:13: */ diff --git a/vendor/modernc.org/libc/pwd/pwd_linux_loong64.go b/vendor/modernc.org/libc/pwd/pwd_linux_loong64.go new file mode 100644 index 000000000..2ad54c6f9 --- /dev/null +++ b/vendor/modernc.org/libc/pwd/pwd_linux_loong64.go @@ -0,0 +1,948 @@ +// Code generated by 'ccgo pwd/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o pwd/pwd_linux_loong64.go -pkgname pwd', DO NOT EDIT. + +package pwd + +import ( + "math" + "reflect" + "sync/atomic" + "unsafe" +) + +var _ = math.Pi +var _ reflect.Kind +var _ atomic.Value +var _ unsafe.Pointer + +const ( + NSS_BUFLEN_PASSWD = 1024 // pwd.h:123:1: + X_ABILP64 = 3 // :377:1: + X_ATFILE_SOURCE = 1 // features.h:353:1: + X_BITS_TIME64_H = 1 // time64.h:24:1: + X_BITS_TYPESIZES_H = 1 // typesizes.h:24:1: + X_BITS_TYPES_H = 1 // types.h:24:1: + X_BSD_SIZE_T_ = 0 // stddef.h:193:1: + X_BSD_SIZE_T_DEFINED_ = 0 // stddef.h:196:1: + X_DEFAULT_SOURCE = 1 // features.h:238:1: + X_FEATURES_H = 1 // features.h:19:1: + X_FILE_OFFSET_BITS = 64 // :25:1: + X_GCC_SIZE_T = 0 // stddef.h:200:1: + X_LOONGARCH_ARCH = "loongarch64" // :214:1: + X_LOONGARCH_ARCH_LOONGARCH64 = 1 // :340:1: + X_LOONGARCH_FPSET = 32 // :265:1: + X_LOONGARCH_SIM = 3 // :233:1: + X_LOONGARCH_SPFPSET = 32 // :88:1: + X_LOONGARCH_SZINT = 32 // :230:1: + X_LOONGARCH_SZLONG = 64 // :388:1: + X_LOONGARCH_SZPTR = 64 // :200:1: + X_LOONGARCH_TUNE = "la464" // :245:1: + X_LOONGARCH_TUNE_LA464 = 1 // :63:1: + X_LP64 = 1 // :372:1: + X_POSIX_C_SOURCE = 200809 // features.h:292:1: + X_POSIX_SOURCE = 1 // features.h:290:1: + X_PWD_H = 1 // pwd.h:23:1: + X_SIZET_ = 0 // stddef.h:201:1: + X_SIZE_T = 0 // stddef.h:187:1: + X_SIZE_T_ = 0 // stddef.h:192:1: + X_SIZE_T_DECLARED = 0 // stddef.h:197:1: + X_SIZE_T_DEFINED = 0 // stddef.h:195:1: + X_SIZE_T_DEFINED_ = 0 // stddef.h:194:1: + X_STDC_PREDEF_H = 1 // :223:1: + X_SYS_CDEFS_H = 1 // cdefs.h:20:1: + X_SYS_SIZE_T_H = 0 // stddef.h:188:1: + X_T_SIZE = 0 // stddef.h:190:1: + X_T_SIZE_ = 0 // stddef.h:189:1: + Linux = 1 // :308:1: + Unix = 1 // :247:1: +) + +type Ptrdiff_t = int64 /* :3:26 */ + +type Size_t = uint64 /* :9:23 */ + +type Wchar_t = int32 /* :15:24 */ + +type X__int128_t = struct { + Flo int64 + Fhi int64 +} /* :21:43 */ // must match modernc.org/mathutil.Int128 +type X__uint128_t = struct { + Flo uint64 + Fhi uint64 +} /* :22:44 */ // must match modernc.org/mathutil.Int128 + +type X__builtin_va_list = uintptr /* :46:14 */ +type X__float128 = float64 /* :47:21 */ + +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// POSIX Standard: 9.2.2 User Database Access + +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// These are defined by the user (or the compiler) +// to specify the desired environment: +// +// __STRICT_ANSI__ ISO Standard C. +// _ISOC99_SOURCE Extensions to ISO C89 from ISO C99. +// _ISOC11_SOURCE Extensions to ISO C99 from ISO C11. +// _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X. +// __STDC_WANT_LIB_EXT2__ +// Extensions to ISO C99 from TR 27431-2:2010. +// __STDC_WANT_IEC_60559_BFP_EXT__ +// Extensions to ISO C11 from TS 18661-1:2014. +// __STDC_WANT_IEC_60559_FUNCS_EXT__ +// Extensions to ISO C11 from TS 18661-4:2015. +// __STDC_WANT_IEC_60559_TYPES_EXT__ +// Extensions to ISO C11 from TS 18661-3:2015. +// __STDC_WANT_IEC_60559_EXT__ +// ISO C2X interfaces defined only in Annex F. +// +// _POSIX_SOURCE IEEE Std 1003.1. +// _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2; +// if >=199309L, add IEEE Std 1003.1b-1993; +// if >=199506L, add IEEE Std 1003.1c-1995; +// if >=200112L, all of IEEE 1003.1-2004 +// if >=200809L, all of IEEE 1003.1-2008 +// _XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if +// Single Unix conformance is wanted, to 600 for the +// sixth revision, to 700 for the seventh revision. +// _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions. +// _LARGEFILE_SOURCE Some more functions for correct standard I/O. +// _LARGEFILE64_SOURCE Additional functionality from LFS for large files. +// _FILE_OFFSET_BITS=N Select default filesystem interface. +// _ATFILE_SOURCE Additional *at interfaces. +// _DYNAMIC_STACK_SIZE_SOURCE Select correct (but non compile-time constant) +// MINSIGSTKSZ, SIGSTKSZ and PTHREAD_STACK_MIN. +// _GNU_SOURCE All of the above, plus GNU extensions. +// _DEFAULT_SOURCE The default set of features (taking precedence over +// __STRICT_ANSI__). +// +// _FORTIFY_SOURCE Add security hardening to many library functions. +// Set to 1, 2 or 3; 3 performs stricter checks than 2, which +// performs stricter checks than 1. +// +// _REENTRANT, _THREAD_SAFE +// Obsolete; equivalent to _POSIX_C_SOURCE=199506L. +// +// The `-ansi' switch to the GNU C compiler, and standards conformance +// options such as `-std=c99', define __STRICT_ANSI__. If none of +// these are defined, or if _DEFAULT_SOURCE is defined, the default is +// to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to +// 200809L, as well as enabling miscellaneous functions from BSD and +// SVID. If more than one of these are defined, they accumulate. For +// example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together +// give you ISO C, 1003.1, and 1003.2, but nothing else. +// +// These are defined by this file and are used by the +// header files to decide what to declare or define: +// +// __GLIBC_USE (F) Define things from feature set F. This is defined +// to 1 or 0; the subsequent macros are either defined +// or undefined, and those tests should be moved to +// __GLIBC_USE. +// __USE_ISOC11 Define ISO C11 things. +// __USE_ISOC99 Define ISO C99 things. +// __USE_ISOC95 Define ISO C90 AMD1 (C95) things. +// __USE_ISOCXX11 Define ISO C++11 things. +// __USE_POSIX Define IEEE Std 1003.1 things. +// __USE_POSIX2 Define IEEE Std 1003.2 things. +// __USE_POSIX199309 Define IEEE Std 1003.1, and .1b things. +// __USE_POSIX199506 Define IEEE Std 1003.1, .1b, .1c and .1i things. +// __USE_XOPEN Define XPG things. +// __USE_XOPEN_EXTENDED Define X/Open Unix things. +// __USE_UNIX98 Define Single Unix V2 things. +// __USE_XOPEN2K Define XPG6 things. +// __USE_XOPEN2KXSI Define XPG6 XSI things. +// __USE_XOPEN2K8 Define XPG7 things. +// __USE_XOPEN2K8XSI Define XPG7 XSI things. +// __USE_LARGEFILE Define correct standard I/O things. +// __USE_LARGEFILE64 Define LFS things with separate names. +// __USE_FILE_OFFSET64 Define 64bit interface as default. +// __USE_MISC Define things from 4.3BSD or System V Unix. +// __USE_ATFILE Define *at interfaces and AT_* constants for them. +// __USE_DYNAMIC_STACK_SIZE Define correct (but non compile-time constant) +// MINSIGSTKSZ, SIGSTKSZ and PTHREAD_STACK_MIN. +// __USE_GNU Define GNU extensions. +// __USE_FORTIFY_LEVEL Additional security measures used, according to level. +// +// The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are +// defined by this file unconditionally. `__GNU_LIBRARY__' is provided +// only for compatibility. All new code should use the other symbols +// to test for features. +// +// All macros listed above as possibly being defined by this file are +// explicitly undefined if they are not explicitly defined. +// Feature-test macros that are not defined by the user or compiler +// but are implied by the other feature-test macros defined (or by the +// lack of any definitions) are defined by the file. +// +// ISO C feature test macros depend on the definition of the macro +// when an affected header is included, not when the first system +// header is included, and so they are handled in +// , which does not have a multiple include +// guard. Feature test macros that can be handled from the first +// system header included are handled here. + +// Undefine everything, so we get a clean slate. + +// Suppress kernel-name space pollution unless user expressedly asks +// for it. + +// Convenience macro to test the version of gcc. +// Use like this: +// #if __GNUC_PREREQ (2,8) +// ... code requiring gcc 2.8 or later ... +// #endif +// Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was +// added in 2.0. + +// Similarly for clang. Features added to GCC after version 4.2 may +// or may not also be available in clang, and clang's definitions of +// __GNUC(_MINOR)__ are fixed at 4 and 2 respectively. Not all such +// features can be queried via __has_extension/__has_feature. + +// Whether to use feature set F. + +// _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for +// _DEFAULT_SOURCE. If _DEFAULT_SOURCE is present we do not +// issue a warning; the expectation is that the source is being +// transitioned to use the new macro. + +// If _GNU_SOURCE was defined by the user, turn on all the other features. + +// If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined, +// define _DEFAULT_SOURCE. + +// This is to enable the ISO C2X extension. + +// This is to enable the ISO C11 extension. + +// This is to enable the ISO C99 extension. + +// This is to enable the ISO C90 Amendment 1:1995 extension. + +// If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE +// is defined, use POSIX.1-2008 (or another version depending on +// _XOPEN_SOURCE). + +// Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be +// defined in all multithreaded code. GNU libc has not required this +// for many years. We now treat them as compatibility synonyms for +// _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with +// comprehensive support for multithreaded code. Using them never +// lowers the selected level of POSIX conformance, only raises it. + +// Features part to handle 64-bit time_t support. +// Copyright (C) 2021-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// We need to know the word size in order to check the time size. +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Bit size of the time_t type at glibc build time, general case. +// Copyright (C) 2018-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Size in bits of the 'time_t' type of the default ABI. + +// The function 'gets' existed in C89, but is impossible to use +// safely. It has been removed from ISO C11 and ISO C++14. Note: for +// compatibility with various implementations of , this test +// must consider only the value of __cplusplus when compiling C++. + +// GNU formerly extended the scanf functions with modified format +// specifiers %as, %aS, and %a[...] that allocate a buffer for the +// input using malloc. This extension conflicts with ISO C99, which +// defines %a as a standalone format specifier that reads a floating- +// point number; moreover, POSIX.1-2008 provides the same feature +// using the modifier letter 'm' instead (%ms, %mS, %m[...]). +// +// We now follow C99 unless GNU extensions are active and the compiler +// is specifically in C89 or C++98 mode (strict or not). For +// instance, with GCC, -std=gnu11 will have C99-compliant scanf with +// or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the +// old extension. + +// ISO C2X added support for a 0b or 0B prefix on binary constants as +// inputs to strtol-family functions (base 0 or 2). This macro is +// used to condition redirection in headers to allow that redirection +// to be disabled when building those functions, despite _GNU_SOURCE +// being defined. + +// Get definitions of __STDC_* predefined macros, if the compiler has +// not preincluded this header automatically. +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// This macro indicates that the installed library is the GNU C Library. +// For historic reasons the value now is 6 and this will stay from now +// on. The use of this variable is deprecated. Use __GLIBC__ and +// __GLIBC_MINOR__ now (see below) when you want to test for a specific +// GNU C library version and use the values in to get +// the sonames of the shared libraries. + +// Major and minor version number of the GNU C library package. Use +// these macros to test for features in specific releases. + +// This is here only because every header file already includes this one. +// Copyright (C) 1992-2023 Free Software Foundation, Inc. +// Copyright The GNU Toolchain Authors. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// We are almost always included from features.h. + +// The GNU libc does not support any K&R compilers or the traditional mode +// of ISO C compilers anymore. Check for some of the combinations not +// supported anymore. + +// Some user header file might have defined this before. + +// Compilers that lack __has_attribute may object to +// #if defined __has_attribute && __has_attribute (...) +// even though they do not need to evaluate the right-hand side of the &&. +// Similarly for __has_builtin, etc. + +// All functions, except those with callbacks or those that +// synchronize memory, are leaf functions. + +// GCC can always grok prototypes. For C++ programs we add throw() +// to help it optimize the function calls. But this only works with +// gcc 2.8.x and egcs. For gcc 3.4 and up we even mark C functions +// as non-throwing using a function attribute since programs can use +// the -fexceptions options for C code as well. + +// These two macros are not used in glibc anymore. They are kept here +// only because some other projects expect the macros to be defined. + +// For these things, GCC behaves the ANSI way normally, +// and the non-ANSI way under -traditional. + +// This is not a typedef so `const __ptr_t' does the right thing. + +// C++ needs to know that types and declarations are C, not C++. + +// Fortify support. + +// Use __builtin_dynamic_object_size at _FORTIFY_SOURCE=3 when available. + +// Support for flexible arrays. +// Headers that should use flexible arrays only if they're "real" +// (e.g. only if they won't affect sizeof()) should test +// #if __glibc_c99_flexarr_available. + +// __asm__ ("xyz") is used throughout the headers to rename functions +// at the assembly language level. This is wrapped by the __REDIRECT +// macro, in order to support compilers that can do this some other +// way. When compilers don't support asm-names at all, we have to do +// preprocessor tricks instead (which don't have exactly the right +// semantics, but it's the best we can do). +// +// Example: +// int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid); + +// +// #elif __SOME_OTHER_COMPILER__ +// +// # define __REDIRECT(name, proto, alias) name proto; _Pragma("let " #name " = " #alias) + +// GCC and clang have various useful declarations that can be made with +// the '__attribute__' syntax. All of the ways we use this do fine if +// they are omitted for compilers that don't understand it. + +// At some point during the gcc 2.96 development the `malloc' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// Tell the compiler which arguments to an allocation function +// indicate the size of the allocation. + +// Tell the compiler which argument to an allocation function +// indicates the alignment of the allocation. + +// At some point during the gcc 2.96 development the `pure' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// This declaration tells the compiler that the value is constant. + +// At some point during the gcc 3.1 development the `used' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// Since version 3.2, gcc allows marking deprecated functions. + +// Since version 4.5, gcc also allows one to specify the message printed +// when a deprecated function is used. clang claims to be gcc 4.2, but +// may also support this feature. + +// At some point during the gcc 2.8 development the `format_arg' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. +// If several `format_arg' attributes are given for the same function, in +// gcc-3.0 and older, all but the last one are ignored. In newer gccs, +// all designated arguments are considered. + +// At some point during the gcc 2.97 development the `strfmon' format +// attribute for functions was introduced. We don't want to use it +// unconditionally (although this would be possible) since it +// generates warnings. + +// The nonnull function attribute marks pointer parameters that +// must not be NULL. This has the name __nonnull in glibc, +// and __attribute_nonnull__ in files shared with Gnulib to avoid +// collision with a different __nonnull in DragonFlyBSD 5.9. + +// The returns_nonnull function attribute marks the return type of the function +// as always being non-null. + +// If fortification mode, we warn about unused results of certain +// function calls which can lead to problems. + +// Forces a function to be always inlined. +// The Linux kernel defines __always_inline in stddef.h (283d7573), and +// it conflicts with this definition. Therefore undefine it first to +// allow either header to be included first. + +// Associate error messages with the source location of the call site rather +// than with the source location inside the function. + +// GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99 +// inline semantics, unless -fgnu89-inline is used. Using __GNUC_STDC_INLINE__ +// or __GNUC_GNU_INLINE is not a good enough check for gcc because gcc versions +// older than 4.3 may define these macros and still not guarantee GNU inlining +// semantics. +// +// clang++ identifies itself as gcc-4.2, but has support for GNU inlining +// semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and +// __GNUC_GNU_INLINE__ macro definitions. + +// GCC 4.3 and above allow passing all anonymous arguments of an +// __extern_always_inline function to some other vararg function. + +// It is possible to compile containing GCC extensions even if GCC is +// run in pedantic mode if the uses are carefully marked using the +// `__extension__' keyword. But this is not generally available before +// version 2.8. + +// __restrict is known in EGCS 1.2 and above, and in clang. +// It works also in C++ mode (outside of arrays), but only when spelled +// as '__restrict', not 'restrict'. + +// ISO C99 also allows to declare arrays as non-overlapping. The syntax is +// array_name[restrict] +// GCC 3.1 and clang support this. +// This syntax is not usable in C++ mode. + +// Describes a char array whose address can safely be passed as the first +// argument to strncpy and strncat, as the char array is not necessarily +// a NUL-terminated string. + +// Undefine (also defined in libc-symbols.h). +// Copies attributes from the declaration or type referenced by +// the argument. + +// Gnulib avoids including these, as they don't work on non-glibc or +// older glibc platforms. +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Properties of long double type. ldbl-128 version. +// Copyright (C) 2016-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// long double is distinct from double, so there is nothing to +// define here. + +// __glibc_macro_warning (MESSAGE) issues warning MESSAGE. This is +// intended for use in preprocessor macros. +// +// Note: MESSAGE must be a _single_ string; concatenation of string +// literals is not supported. + +// Generic selection (ISO C11) is a C-only feature, available in GCC +// since version 4.9. Previous versions do not provide generic +// selection, even though they might set __STDC_VERSION__ to 201112L, +// when in -std=c11 mode. Thus, we must check for !defined __GNUC__ +// when testing __STDC_VERSION__ for generic selection support. +// On the other hand, Clang also defines __GNUC__, so a clang-specific +// check is required to enable the use of generic selection. + +// Designates a 1-based positional argument ref-index of pointer type +// that can be used to access size-index elements of the pointed-to +// array according to access mode, or at least one element when +// size-index is not provided: +// access (access-mode, [, ]) +// For _FORTIFY_SOURCE == 3 we use __builtin_dynamic_object_size, which may +// use the access attribute to get object sizes from function definition +// arguments, so we can't use them on functions we fortify. Drop the object +// size hints for such functions. + +// Designates dealloc as a function to call to deallocate objects +// allocated by the declared function. + +// Specify that a function such as setjmp or vfork may return +// twice. + +// If we don't have __REDIRECT, prototypes will be missing if +// __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64]. + +// Decide whether we can define 'extern inline' functions in headers. + +// This is here only because every header file already includes this one. +// Get the definitions of all the appropriate `__stub_FUNCTION' symbols. +// contains `#define __stub_FUNCTION' when FUNCTION is a stub +// that will always return failure (and set errno to ENOSYS). +// This file is automatically generated. +// This file selects the right generated file of `__stub_FUNCTION' macros +// based on the architecture being compiled for. + +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// This file is automatically generated. +// It defines a symbol `__stub_FUNCTION' for each function +// in the C library which is a stub, meaning it will fail +// every time called, usually setting errno to ENOSYS. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Bit size of the time_t type at glibc build time, general case. +// Copyright (C) 2018-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Size in bits of the 'time_t' type of the default ABI. + +// Convenience types. +type X__u_char = uint8 /* types.h:31:23 */ +type X__u_short = uint16 /* types.h:32:28 */ +type X__u_int = uint32 /* types.h:33:22 */ +type X__u_long = uint64 /* types.h:34:27 */ + +// Fixed-size types, underlying types depend on word size and compiler. +type X__int8_t = int8 /* types.h:37:21 */ +type X__uint8_t = uint8 /* types.h:38:23 */ +type X__int16_t = int16 /* types.h:39:26 */ +type X__uint16_t = uint16 /* types.h:40:28 */ +type X__int32_t = int32 /* types.h:41:20 */ +type X__uint32_t = uint32 /* types.h:42:22 */ +type X__int64_t = int64 /* types.h:44:25 */ +type X__uint64_t = uint64 /* types.h:45:27 */ + +// Smallest types with at least a given width. +type X__int_least8_t = int8 /* types.h:52:18 */ +type X__uint_least8_t = uint8 /* types.h:53:19 */ +type X__int_least16_t = int16 /* types.h:54:19 */ +type X__uint_least16_t = uint16 /* types.h:55:20 */ +type X__int_least32_t = int32 /* types.h:56:19 */ +type X__uint_least32_t = uint32 /* types.h:57:20 */ +type X__int_least64_t = int64 /* types.h:58:19 */ +type X__uint_least64_t = uint64 /* types.h:59:20 */ + +// quad_t is also 64 bits. +type X__quad_t = int64 /* types.h:63:18 */ +type X__u_quad_t = uint64 /* types.h:64:27 */ + +// Largest integral types. +type X__intmax_t = int64 /* types.h:72:18 */ +type X__uintmax_t = uint64 /* types.h:73:27 */ + +// The machine-dependent file defines __*_T_TYPE +// macros for each of the OS types we define below. The definitions +// of those macros must use the following macros for underlying types. +// We define __S_TYPE and __U_TYPE for the signed and unsigned +// variants of each of the following integer types on this machine. +// +// 16 -- "natural" 16-bit type (always short) +// 32 -- "natural" 32-bit type (always int) +// 64 -- "natural" 64-bit type (long or long long) +// LONG32 -- 32-bit type, traditionally long +// QUAD -- 64-bit type, traditionally long long +// WORD -- natural type of __WORDSIZE bits (int or long) +// LONGWORD -- type of __WORDSIZE bits, traditionally long +// +// We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the +// conventional uses of `long' or `long long' type modifiers match the +// types we define, even when a less-adorned type would be the same size. +// This matters for (somewhat) portably writing printf/scanf formats for +// these types, where using the appropriate l or ll format modifiers can +// make the typedefs and the formats match up across all GNU platforms. If +// we used `long' when it's 64 bits where `long long' is expected, then the +// compiler would warn about the formats not matching the argument types, +// and the programmer changing them to shut up the compiler would break the +// program's portability. +// +// Here we assume what is presently the case in all the GCC configurations +// we support: long long is always 64 bits, long is always word/address size, +// and int is always 32 bits. + +// No need to mark the typedef with __extension__. +// bits/typesizes.h -- underlying types for *_t. For the generic Linux ABI. +// Copyright (C) 2011-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library. If not, see +// . + +// See for the meaning of these macros. This file exists so +// that need not vary across different GNU platforms. + +// Tell the libc code that off_t and off64_t are actually the same type +// for all ABI purposes, even if possibly expressed as different base types +// for C type-checking purposes. + +// Same for ino_t and ino64_t. + +// And for __rlim_t and __rlim64_t. + +// And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t. + +// And for getitimer, setitimer and rusage + +// Number of descriptors that can fit in an `fd_set'. + +// bits/time64.h -- underlying types for __time64_t. Generic version. +// Copyright (C) 2018-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Define __TIME64_T_TYPE so that it is always a 64-bit type. + +// If we already have 64-bit time type then use it. + +type X__dev_t = uint64 /* types.h:145:25 */ // Type of device numbers. +type X__uid_t = uint32 /* types.h:146:25 */ // Type of user identifications. +type X__gid_t = uint32 /* types.h:147:25 */ // Type of group identifications. +type X__ino_t = uint64 /* types.h:148:25 */ // Type of file serial numbers. +type X__ino64_t = uint64 /* types.h:149:27 */ // Type of file serial numbers (LFS). +type X__mode_t = uint32 /* types.h:150:26 */ // Type of file attribute bitmasks. +type X__nlink_t = uint32 /* types.h:151:27 */ // Type of file link counts. +type X__off_t = int64 /* types.h:152:25 */ // Type of file sizes and offsets. +type X__off64_t = int64 /* types.h:153:27 */ // Type of file sizes and offsets (LFS). +type X__pid_t = int32 /* types.h:154:25 */ // Type of process identifications. +type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs. +type X__clock_t = int64 /* types.h:156:27 */ // Type of CPU usage counts. +type X__rlim_t = uint64 /* types.h:157:26 */ // Type for resource measurement. +type X__rlim64_t = uint64 /* types.h:158:28 */ // Type for resource measurement (LFS). +type X__id_t = uint32 /* types.h:159:24 */ // General type for IDs. +type X__time_t = int64 /* types.h:160:26 */ // Seconds since the Epoch. +type X__useconds_t = uint32 /* types.h:161:30 */ // Count of microseconds. +type X__suseconds_t = int64 /* types.h:162:31 */ // Signed count of microseconds. +type X__suseconds64_t = int64 /* types.h:163:33 */ + +type X__daddr_t = int32 /* types.h:165:27 */ // The type of a disk address. +type X__key_t = int32 /* types.h:166:25 */ // Type of an IPC key. + +// Clock ID used in clock and timer functions. +type X__clockid_t = int32 /* types.h:169:29 */ + +// Timer ID returned by `timer_create'. +type X__timer_t = uintptr /* types.h:172:12 */ + +// Type to represent block size. +type X__blksize_t = int32 /* types.h:175:29 */ + +// Types from the Large File Support interface. + +// Type to count number of disk blocks. +type X__blkcnt_t = int64 /* types.h:180:28 */ +type X__blkcnt64_t = int64 /* types.h:181:30 */ + +// Type to count file system blocks. +type X__fsblkcnt_t = uint64 /* types.h:184:30 */ +type X__fsblkcnt64_t = uint64 /* types.h:185:32 */ + +// Type to count file system nodes. +type X__fsfilcnt_t = uint64 /* types.h:188:30 */ +type X__fsfilcnt64_t = uint64 /* types.h:189:32 */ + +// Type of miscellaneous file system fields. +type X__fsword_t = int64 /* types.h:192:28 */ + +type X__ssize_t = int64 /* types.h:194:27 */ // Type of a byte count, or error. + +// Signed long type used in system calls. +type X__syscall_slong_t = int64 /* types.h:197:33 */ +// Unsigned long type used in system calls. +type X__syscall_ulong_t = uint64 /* types.h:199:33 */ + +// These few don't really vary by system, they always correspond +// +// to one of the other defined types. +type X__loff_t = int64 /* types.h:203:19 */ // Type of file sizes and offsets (LFS). +type X__caddr_t = uintptr /* types.h:204:14 */ + +// Duplicates info from stdint.h but this is used in unistd.h. +type X__intptr_t = int64 /* types.h:207:25 */ + +// Duplicate info from sys/socket.h. +type X__socklen_t = uint32 /* types.h:210:23 */ + +// C99: An integer type that can be accessed as an atomic entity, +// +// even in the presence of asynchronous interrupts. +// It is not currently necessary for this to be machine-specific. +type X__sig_atomic_t = int32 /* types.h:215:13 */ + +// Wide character type. +// Locale-writers should change this as necessary to +// be big enough to hold unique values not between 0 and 127, +// and not (wchar_t) -1, for each defined multibyte character. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// A null pointer constant. + +// The Single Unix specification says that some more types are +// +// available here. +type Gid_t = uint32 /* pwd.h:38:17 */ + +type Uid_t = uint32 /* pwd.h:43:17 */ + +// A record in the user database. +type Passwd = struct { + Fpw_name uintptr + Fpw_passwd uintptr + Fpw_uid uint32 + Fpw_gid uint32 + Fpw_gecos uintptr + Fpw_dir uintptr + Fpw_shell uintptr +} /* pwd.h:49:1 */ + +var _ int8 /* gen.c:2:13: */ diff --git a/vendor/modernc.org/libc/pwd/pwd_linux_mips64le.go b/vendor/modernc.org/libc/pwd/pwd_linux_mips64le.go new file mode 100644 index 000000000..922d6ef33 --- /dev/null +++ b/vendor/modernc.org/libc/pwd/pwd_linux_mips64le.go @@ -0,0 +1,789 @@ +// Code generated by 'ccgo pwd/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o pwd/pwd_linux_amd64.go -pkgname pwd', DO NOT EDIT. + +package pwd + +import ( + "math" + "reflect" + "sync/atomic" + "unsafe" +) + +var _ = math.Pi +var _ reflect.Kind +var _ atomic.Value +var _ unsafe.Pointer + +const ( + NSS_BUFLEN_PASSWD = 1024 // pwd.h:123:1: + X_ATFILE_SOURCE = 1 // features.h:342:1: + X_BITS_TIME64_H = 1 // time64.h:24:1: + X_BITS_TYPESIZES_H = 1 // typesizes.h:24:1: + X_BITS_TYPES_H = 1 // types.h:24:1: + X_BSD_SIZE_T_ = 0 // stddef.h:189:1: + X_BSD_SIZE_T_DEFINED_ = 0 // stddef.h:192:1: + X_DEFAULT_SOURCE = 1 // features.h:227:1: + X_FEATURES_H = 1 // features.h:19:1: + X_FILE_OFFSET_BITS = 64 // :25:1: + X_GCC_SIZE_T = 0 // stddef.h:195:1: + X_LP64 = 1 // :284:1: + X_POSIX_C_SOURCE = 200809 // features.h:281:1: + X_POSIX_SOURCE = 1 // features.h:279:1: + X_PWD_H = 1 // pwd.h:23:1: + X_SIZET_ = 0 // stddef.h:196:1: + X_SIZE_T = 0 // stddef.h:183:1: + X_SIZE_T_ = 0 // stddef.h:188:1: + X_SIZE_T_DECLARED = 0 // stddef.h:193:1: + X_SIZE_T_DEFINED = 0 // stddef.h:191:1: + X_SIZE_T_DEFINED_ = 0 // stddef.h:190:1: + X_STDC_PREDEF_H = 1 // :162:1: + X_SYS_CDEFS_H = 1 // cdefs.h:19:1: + X_SYS_SIZE_T_H = 0 // stddef.h:184:1: + X_T_SIZE = 0 // stddef.h:186:1: + X_T_SIZE_ = 0 // stddef.h:185:1: + Linux = 1 // :231:1: + Unix = 1 // :177:1: +) + +type Ptrdiff_t = int64 /* :3:26 */ + +type Size_t = uint64 /* :9:23 */ + +type Wchar_t = int32 /* :15:24 */ + +type X__int128_t = struct { + Flo int64 + Fhi int64 +} /* :21:43 */ // must match modernc.org/mathutil.Int128 +type X__uint128_t = struct { + Flo uint64 + Fhi uint64 +} /* :22:44 */ // must match modernc.org/mathutil.Int128 + +type X__builtin_va_list = uintptr /* :46:14 */ +type X__float128 = float64 /* :47:21 */ + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// POSIX Standard: 9.2.2 User Database Access + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// These are defined by the user (or the compiler) +// to specify the desired environment: +// +// __STRICT_ANSI__ ISO Standard C. +// _ISOC99_SOURCE Extensions to ISO C89 from ISO C99. +// _ISOC11_SOURCE Extensions to ISO C99 from ISO C11. +// _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X. +// __STDC_WANT_LIB_EXT2__ +// Extensions to ISO C99 from TR 27431-2:2010. +// __STDC_WANT_IEC_60559_BFP_EXT__ +// Extensions to ISO C11 from TS 18661-1:2014. +// __STDC_WANT_IEC_60559_FUNCS_EXT__ +// Extensions to ISO C11 from TS 18661-4:2015. +// __STDC_WANT_IEC_60559_TYPES_EXT__ +// Extensions to ISO C11 from TS 18661-3:2015. +// +// _POSIX_SOURCE IEEE Std 1003.1. +// _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2; +// if >=199309L, add IEEE Std 1003.1b-1993; +// if >=199506L, add IEEE Std 1003.1c-1995; +// if >=200112L, all of IEEE 1003.1-2004 +// if >=200809L, all of IEEE 1003.1-2008 +// _XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if +// Single Unix conformance is wanted, to 600 for the +// sixth revision, to 700 for the seventh revision. +// _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions. +// _LARGEFILE_SOURCE Some more functions for correct standard I/O. +// _LARGEFILE64_SOURCE Additional functionality from LFS for large files. +// _FILE_OFFSET_BITS=N Select default filesystem interface. +// _ATFILE_SOURCE Additional *at interfaces. +// _GNU_SOURCE All of the above, plus GNU extensions. +// _DEFAULT_SOURCE The default set of features (taking precedence over +// __STRICT_ANSI__). +// +// _FORTIFY_SOURCE Add security hardening to many library functions. +// Set to 1 or 2; 2 performs stricter checks than 1. +// +// _REENTRANT, _THREAD_SAFE +// Obsolete; equivalent to _POSIX_C_SOURCE=199506L. +// +// The `-ansi' switch to the GNU C compiler, and standards conformance +// options such as `-std=c99', define __STRICT_ANSI__. If none of +// these are defined, or if _DEFAULT_SOURCE is defined, the default is +// to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to +// 200809L, as well as enabling miscellaneous functions from BSD and +// SVID. If more than one of these are defined, they accumulate. For +// example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together +// give you ISO C, 1003.1, and 1003.2, but nothing else. +// +// These are defined by this file and are used by the +// header files to decide what to declare or define: +// +// __GLIBC_USE (F) Define things from feature set F. This is defined +// to 1 or 0; the subsequent macros are either defined +// or undefined, and those tests should be moved to +// __GLIBC_USE. +// __USE_ISOC11 Define ISO C11 things. +// __USE_ISOC99 Define ISO C99 things. +// __USE_ISOC95 Define ISO C90 AMD1 (C95) things. +// __USE_ISOCXX11 Define ISO C++11 things. +// __USE_POSIX Define IEEE Std 1003.1 things. +// __USE_POSIX2 Define IEEE Std 1003.2 things. +// __USE_POSIX199309 Define IEEE Std 1003.1, and .1b things. +// __USE_POSIX199506 Define IEEE Std 1003.1, .1b, .1c and .1i things. +// __USE_XOPEN Define XPG things. +// __USE_XOPEN_EXTENDED Define X/Open Unix things. +// __USE_UNIX98 Define Single Unix V2 things. +// __USE_XOPEN2K Define XPG6 things. +// __USE_XOPEN2KXSI Define XPG6 XSI things. +// __USE_XOPEN2K8 Define XPG7 things. +// __USE_XOPEN2K8XSI Define XPG7 XSI things. +// __USE_LARGEFILE Define correct standard I/O things. +// __USE_LARGEFILE64 Define LFS things with separate names. +// __USE_FILE_OFFSET64 Define 64bit interface as default. +// __USE_MISC Define things from 4.3BSD or System V Unix. +// __USE_ATFILE Define *at interfaces and AT_* constants for them. +// __USE_GNU Define GNU extensions. +// __USE_FORTIFY_LEVEL Additional security measures used, according to level. +// +// The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are +// defined by this file unconditionally. `__GNU_LIBRARY__' is provided +// only for compatibility. All new code should use the other symbols +// to test for features. +// +// All macros listed above as possibly being defined by this file are +// explicitly undefined if they are not explicitly defined. +// Feature-test macros that are not defined by the user or compiler +// but are implied by the other feature-test macros defined (or by the +// lack of any definitions) are defined by the file. +// +// ISO C feature test macros depend on the definition of the macro +// when an affected header is included, not when the first system +// header is included, and so they are handled in +// , which does not have a multiple include +// guard. Feature test macros that can be handled from the first +// system header included are handled here. + +// Undefine everything, so we get a clean slate. + +// Suppress kernel-name space pollution unless user expressedly asks +// for it. + +// Convenience macro to test the version of gcc. +// Use like this: +// #if __GNUC_PREREQ (2,8) +// ... code requiring gcc 2.8 or later ... +// #endif +// Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was +// added in 2.0. + +// Similarly for clang. Features added to GCC after version 4.2 may +// or may not also be available in clang, and clang's definitions of +// __GNUC(_MINOR)__ are fixed at 4 and 2 respectively. Not all such +// features can be queried via __has_extension/__has_feature. + +// Whether to use feature set F. + +// _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for +// _DEFAULT_SOURCE. If _DEFAULT_SOURCE is present we do not +// issue a warning; the expectation is that the source is being +// transitioned to use the new macro. + +// If _GNU_SOURCE was defined by the user, turn on all the other features. + +// If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined, +// define _DEFAULT_SOURCE. + +// This is to enable the ISO C2X extension. + +// This is to enable the ISO C11 extension. + +// This is to enable the ISO C99 extension. + +// This is to enable the ISO C90 Amendment 1:1995 extension. + +// If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE +// is defined, use POSIX.1-2008 (or another version depending on +// _XOPEN_SOURCE). + +// Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be +// defined in all multithreaded code. GNU libc has not required this +// for many years. We now treat them as compatibility synonyms for +// _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with +// comprehensive support for multithreaded code. Using them never +// lowers the selected level of POSIX conformance, only raises it. + +// The function 'gets' existed in C89, but is impossible to use +// safely. It has been removed from ISO C11 and ISO C++14. Note: for +// compatibility with various implementations of , this test +// must consider only the value of __cplusplus when compiling C++. + +// GNU formerly extended the scanf functions with modified format +// specifiers %as, %aS, and %a[...] that allocate a buffer for the +// input using malloc. This extension conflicts with ISO C99, which +// defines %a as a standalone format specifier that reads a floating- +// point number; moreover, POSIX.1-2008 provides the same feature +// using the modifier letter 'm' instead (%ms, %mS, %m[...]). +// +// We now follow C99 unless GNU extensions are active and the compiler +// is specifically in C89 or C++98 mode (strict or not). For +// instance, with GCC, -std=gnu11 will have C99-compliant scanf with +// or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the +// old extension. + +// Get definitions of __STDC_* predefined macros, if the compiler has +// not preincluded this header automatically. +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// This macro indicates that the installed library is the GNU C Library. +// For historic reasons the value now is 6 and this will stay from now +// on. The use of this variable is deprecated. Use __GLIBC__ and +// __GLIBC_MINOR__ now (see below) when you want to test for a specific +// GNU C library version and use the values in to get +// the sonames of the shared libraries. + +// Major and minor version number of the GNU C library package. Use +// these macros to test for features in specific releases. + +// This is here only because every header file already includes this one. +// Copyright (C) 1992-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// We are almost always included from features.h. + +// The GNU libc does not support any K&R compilers or the traditional mode +// of ISO C compilers anymore. Check for some of the combinations not +// anymore supported. + +// Some user header file might have defined this before. + +// All functions, except those with callbacks or those that +// synchronize memory, are leaf functions. + +// GCC can always grok prototypes. For C++ programs we add throw() +// to help it optimize the function calls. But this works only with +// gcc 2.8.x and egcs. For gcc 3.2 and up we even mark C functions +// as non-throwing using a function attribute since programs can use +// the -fexceptions options for C code as well. + +// Compilers that are not clang may object to +// #if defined __clang__ && __has_extension(...) +// even though they do not need to evaluate the right-hand side of the &&. + +// These two macros are not used in glibc anymore. They are kept here +// only because some other projects expect the macros to be defined. + +// For these things, GCC behaves the ANSI way normally, +// and the non-ANSI way under -traditional. + +// This is not a typedef so `const __ptr_t' does the right thing. + +// C++ needs to know that types and declarations are C, not C++. + +// Fortify support. + +// Support for flexible arrays. +// Headers that should use flexible arrays only if they're "real" +// (e.g. only if they won't affect sizeof()) should test +// #if __glibc_c99_flexarr_available. + +// __asm__ ("xyz") is used throughout the headers to rename functions +// at the assembly language level. This is wrapped by the __REDIRECT +// macro, in order to support compilers that can do this some other +// way. When compilers don't support asm-names at all, we have to do +// preprocessor tricks instead (which don't have exactly the right +// semantics, but it's the best we can do). +// +// Example: +// int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid); + +// +// #elif __SOME_OTHER_COMPILER__ +// +// # define __REDIRECT(name, proto, alias) name proto; _Pragma("let " #name " = " #alias) + +// GCC has various useful declarations that can be made with the +// `__attribute__' syntax. All of the ways we use this do fine if +// they are omitted for compilers that don't understand it. + +// At some point during the gcc 2.96 development the `malloc' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// Tell the compiler which arguments to an allocation function +// indicate the size of the allocation. + +// At some point during the gcc 2.96 development the `pure' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// This declaration tells the compiler that the value is constant. + +// At some point during the gcc 3.1 development the `used' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// Since version 3.2, gcc allows marking deprecated functions. + +// Since version 4.5, gcc also allows one to specify the message printed +// when a deprecated function is used. clang claims to be gcc 4.2, but +// may also support this feature. + +// At some point during the gcc 2.8 development the `format_arg' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. +// If several `format_arg' attributes are given for the same function, in +// gcc-3.0 and older, all but the last one are ignored. In newer gccs, +// all designated arguments are considered. + +// At some point during the gcc 2.97 development the `strfmon' format +// attribute for functions was introduced. We don't want to use it +// unconditionally (although this would be possible) since it +// generates warnings. + +// The nonull function attribute allows to mark pointer parameters which +// must not be NULL. + +// If fortification mode, we warn about unused results of certain +// function calls which can lead to problems. + +// Forces a function to be always inlined. +// The Linux kernel defines __always_inline in stddef.h (283d7573), and +// it conflicts with this definition. Therefore undefine it first to +// allow either header to be included first. + +// Associate error messages with the source location of the call site rather +// than with the source location inside the function. + +// GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99 +// inline semantics, unless -fgnu89-inline is used. Using __GNUC_STDC_INLINE__ +// or __GNUC_GNU_INLINE is not a good enough check for gcc because gcc versions +// older than 4.3 may define these macros and still not guarantee GNU inlining +// semantics. +// +// clang++ identifies itself as gcc-4.2, but has support for GNU inlining +// semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and +// __GNUC_GNU_INLINE__ macro definitions. + +// GCC 4.3 and above allow passing all anonymous arguments of an +// __extern_always_inline function to some other vararg function. + +// It is possible to compile containing GCC extensions even if GCC is +// run in pedantic mode if the uses are carefully marked using the +// `__extension__' keyword. But this is not generally available before +// version 2.8. + +// __restrict is known in EGCS 1.2 and above. + +// ISO C99 also allows to declare arrays as non-overlapping. The syntax is +// array_name[restrict] +// GCC 3.1 supports this. + +// Describes a char array whose address can safely be passed as the first +// argument to strncpy and strncat, as the char array is not necessarily +// a NUL-terminated string. + +// Undefine (also defined in libc-symbols.h). +// Copies attributes from the declaration or type referenced by +// the argument. + +// Determine the wordsize from the preprocessor defines. + +// Both x86-64 and x32 use the 64-bit system call interface. +// Properties of long double type. ldbl-96 version. +// Copyright (C) 2016-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// long double is distinct from double, so there is nothing to +// define here. + +// __glibc_macro_warning (MESSAGE) issues warning MESSAGE. This is +// intended for use in preprocessor macros. +// +// Note: MESSAGE must be a _single_ string; concatenation of string +// literals is not supported. + +// Generic selection (ISO C11) is a C-only feature, available in GCC +// since version 4.9. Previous versions do not provide generic +// selection, even though they might set __STDC_VERSION__ to 201112L, +// when in -std=c11 mode. Thus, we must check for !defined __GNUC__ +// when testing __STDC_VERSION__ for generic selection support. +// On the other hand, Clang also defines __GNUC__, so a clang-specific +// check is required to enable the use of generic selection. + +// If we don't have __REDIRECT, prototypes will be missing if +// __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64]. + +// Decide whether we can define 'extern inline' functions in headers. + +// This is here only because every header file already includes this one. +// Get the definitions of all the appropriate `__stub_FUNCTION' symbols. +// contains `#define __stub_FUNCTION' when FUNCTION is a stub +// that will always return failure (and set errno to ENOSYS). +// This file is automatically generated. +// This file selects the right generated file of `__stub_FUNCTION' macros +// based on the architecture being compiled for. + +// This file is automatically generated. +// It defines a symbol `__stub_FUNCTION' for each function +// in the C library which is a stub, meaning it will fail +// every time called, usually setting errno to ENOSYS. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Determine the wordsize from the preprocessor defines. + +// Both x86-64 and x32 use the 64-bit system call interface. +// Bit size of the time_t type at glibc build time, x86-64 and x32 case. +// Copyright (C) 2018-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// For others, time size is word size. + +// Convenience types. +type X__u_char = uint8 /* types.h:31:23 */ +type X__u_short = uint16 /* types.h:32:28 */ +type X__u_int = uint32 /* types.h:33:22 */ +type X__u_long = uint64 /* types.h:34:27 */ + +// Fixed-size types, underlying types depend on word size and compiler. +type X__int8_t = int8 /* types.h:37:21 */ +type X__uint8_t = uint8 /* types.h:38:23 */ +type X__int16_t = int16 /* types.h:39:26 */ +type X__uint16_t = uint16 /* types.h:40:28 */ +type X__int32_t = int32 /* types.h:41:20 */ +type X__uint32_t = uint32 /* types.h:42:22 */ +type X__int64_t = int64 /* types.h:44:25 */ +type X__uint64_t = uint64 /* types.h:45:27 */ + +// Smallest types with at least a given width. +type X__int_least8_t = X__int8_t /* types.h:52:18 */ +type X__uint_least8_t = X__uint8_t /* types.h:53:19 */ +type X__int_least16_t = X__int16_t /* types.h:54:19 */ +type X__uint_least16_t = X__uint16_t /* types.h:55:20 */ +type X__int_least32_t = X__int32_t /* types.h:56:19 */ +type X__uint_least32_t = X__uint32_t /* types.h:57:20 */ +type X__int_least64_t = X__int64_t /* types.h:58:19 */ +type X__uint_least64_t = X__uint64_t /* types.h:59:20 */ + +// quad_t is also 64 bits. +type X__quad_t = int64 /* types.h:63:18 */ +type X__u_quad_t = uint64 /* types.h:64:27 */ + +// Largest integral types. +type X__intmax_t = int64 /* types.h:72:18 */ +type X__uintmax_t = uint64 /* types.h:73:27 */ + +// The machine-dependent file defines __*_T_TYPE +// macros for each of the OS types we define below. The definitions +// of those macros must use the following macros for underlying types. +// We define __S_TYPE and __U_TYPE for the signed and unsigned +// variants of each of the following integer types on this machine. +// +// 16 -- "natural" 16-bit type (always short) +// 32 -- "natural" 32-bit type (always int) +// 64 -- "natural" 64-bit type (long or long long) +// LONG32 -- 32-bit type, traditionally long +// QUAD -- 64-bit type, traditionally long long +// WORD -- natural type of __WORDSIZE bits (int or long) +// LONGWORD -- type of __WORDSIZE bits, traditionally long +// +// We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the +// conventional uses of `long' or `long long' type modifiers match the +// types we define, even when a less-adorned type would be the same size. +// This matters for (somewhat) portably writing printf/scanf formats for +// these types, where using the appropriate l or ll format modifiers can +// make the typedefs and the formats match up across all GNU platforms. If +// we used `long' when it's 64 bits where `long long' is expected, then the +// compiler would warn about the formats not matching the argument types, +// and the programmer changing them to shut up the compiler would break the +// program's portability. +// +// Here we assume what is presently the case in all the GCC configurations +// we support: long long is always 64 bits, long is always word/address size, +// and int is always 32 bits. + +// No need to mark the typedef with __extension__. +// bits/typesizes.h -- underlying types for *_t. Linux/x86-64 version. +// Copyright (C) 2012-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// See for the meaning of these macros. This file exists so +// that need not vary across different GNU platforms. + +// X32 kernel interface is 64-bit. + +// Tell the libc code that off_t and off64_t are actually the same type +// for all ABI purposes, even if possibly expressed as different base types +// for C type-checking purposes. + +// Same for ino_t and ino64_t. + +// And for __rlim_t and __rlim64_t. + +// And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t. + +// Number of descriptors that can fit in an `fd_set'. + +// bits/time64.h -- underlying types for __time64_t. Generic version. +// Copyright (C) 2018-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Define __TIME64_T_TYPE so that it is always a 64-bit type. + +// If we already have 64-bit time type then use it. + +type X__dev_t = uint64 /* types.h:145:25 */ // Type of device numbers. +type X__uid_t = uint32 /* types.h:146:25 */ // Type of user identifications. +type X__gid_t = uint32 /* types.h:147:25 */ // Type of group identifications. +type X__ino_t = uint64 /* types.h:148:25 */ // Type of file serial numbers. +type X__ino64_t = uint64 /* types.h:149:27 */ // Type of file serial numbers (LFS). +type X__mode_t = uint32 /* types.h:150:26 */ // Type of file attribute bitmasks. +type X__nlink_t = uint64 /* types.h:151:27 */ // Type of file link counts. +type X__off_t = int64 /* types.h:152:25 */ // Type of file sizes and offsets. +type X__off64_t = int64 /* types.h:153:27 */ // Type of file sizes and offsets (LFS). +type X__pid_t = int32 /* types.h:154:25 */ // Type of process identifications. +type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs. +type X__clock_t = int64 /* types.h:156:27 */ // Type of CPU usage counts. +type X__rlim_t = uint64 /* types.h:157:26 */ // Type for resource measurement. +type X__rlim64_t = uint64 /* types.h:158:28 */ // Type for resource measurement (LFS). +type X__id_t = uint32 /* types.h:159:24 */ // General type for IDs. +type X__time_t = int64 /* types.h:160:26 */ // Seconds since the Epoch. +type X__useconds_t = uint32 /* types.h:161:30 */ // Count of microseconds. +type X__suseconds_t = int64 /* types.h:162:31 */ // Signed count of microseconds. + +type X__daddr_t = int32 /* types.h:164:27 */ // The type of a disk address. +type X__key_t = int32 /* types.h:165:25 */ // Type of an IPC key. + +// Clock ID used in clock and timer functions. +type X__clockid_t = int32 /* types.h:168:29 */ + +// Timer ID returned by `timer_create'. +type X__timer_t = uintptr /* types.h:171:12 */ + +// Type to represent block size. +type X__blksize_t = int64 /* types.h:174:29 */ + +// Types from the Large File Support interface. + +// Type to count number of disk blocks. +type X__blkcnt_t = int64 /* types.h:179:28 */ +type X__blkcnt64_t = int64 /* types.h:180:30 */ + +// Type to count file system blocks. +type X__fsblkcnt_t = uint64 /* types.h:183:30 */ +type X__fsblkcnt64_t = uint64 /* types.h:184:32 */ + +// Type to count file system nodes. +type X__fsfilcnt_t = uint64 /* types.h:187:30 */ +type X__fsfilcnt64_t = uint64 /* types.h:188:32 */ + +// Type of miscellaneous file system fields. +type X__fsword_t = int64 /* types.h:191:28 */ + +type X__ssize_t = int64 /* types.h:193:27 */ // Type of a byte count, or error. + +// Signed long type used in system calls. +type X__syscall_slong_t = int64 /* types.h:196:33 */ +// Unsigned long type used in system calls. +type X__syscall_ulong_t = uint64 /* types.h:198:33 */ + +// These few don't really vary by system, they always correspond +// +// to one of the other defined types. +type X__loff_t = X__off64_t /* types.h:202:19 */ // Type of file sizes and offsets (LFS). +type X__caddr_t = uintptr /* types.h:203:14 */ + +// Duplicates info from stdint.h but this is used in unistd.h. +type X__intptr_t = int64 /* types.h:206:25 */ + +// Duplicate info from sys/socket.h. +type X__socklen_t = uint32 /* types.h:209:23 */ + +// C99: An integer type that can be accessed as an atomic entity, +// +// even in the presence of asynchronous interrupts. +// It is not currently necessary for this to be machine-specific. +type X__sig_atomic_t = int32 /* types.h:214:13 */ + +// Wide character type. +// Locale-writers should change this as necessary to +// be big enough to hold unique values not between 0 and 127, +// and not (wchar_t) -1, for each defined multibyte character. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// A null pointer constant. + +// The Single Unix specification says that some more types are +// +// available here. +type Gid_t = X__gid_t /* pwd.h:38:17 */ + +type Uid_t = X__uid_t /* pwd.h:43:17 */ + +// A record in the user database. +type Passwd = struct { + Fpw_name uintptr + Fpw_passwd uintptr + Fpw_uid X__uid_t + Fpw_gid X__gid_t + Fpw_gecos uintptr + Fpw_dir uintptr + Fpw_shell uintptr +} /* pwd.h:49:1 */ + +var _ int8 /* gen.c:2:13: */ diff --git a/vendor/modernc.org/libc/rtl.go b/vendor/modernc.org/libc/rtl.go new file mode 100644 index 000000000..1528accb2 --- /dev/null +++ b/vendor/modernc.org/libc/rtl.go @@ -0,0 +1,2200 @@ +// Copyright 2023 The Libc Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build linux && (amd64 || arm64 || loong64 || ppc64le || s390x || riscv64 || 386 || arm) + +package libc // import "modernc.org/libc" + +import ( + "math" + "reflect" + "sync/atomic" + "unsafe" +) + +// VaList fills a varargs list at p with args and returns p. The list must +// have been allocated by caller and it must not be in Go managed memory, ie. +// it must be pinned. Caller is responsible for freeing the list. +// +// This function supports code generated by ccgo/v4. +// +// Note: The C translated to Go varargs ABI alignment for all types is 8 on all +// architectures. +func VaList(p uintptr, args ...interface{}) (r uintptr) { + if p&7 != 0 { + panic("internal error") + } + + r = p + for _, v := range args { + switch x := v.(type) { + case int: + *(*int64)(unsafe.Pointer(p)) = int64(x) + case int32: + *(*int64)(unsafe.Pointer(p)) = int64(x) + case int64: + *(*int64)(unsafe.Pointer(p)) = x + case uint: + *(*uint64)(unsafe.Pointer(p)) = uint64(x) + case uint16: + *(*uint64)(unsafe.Pointer(p)) = uint64(x) + case uint32: + *(*uint64)(unsafe.Pointer(p)) = uint64(x) + case uint64: + *(*uint64)(unsafe.Pointer(p)) = x + case float64: + *(*float64)(unsafe.Pointer(p)) = x + case uintptr: + *(*uintptr)(unsafe.Pointer(p)) = x + default: + sz := reflect.TypeOf(v).Size() + copy(unsafe.Slice((*byte)(unsafe.Pointer(p)), sz), unsafe.Slice((*byte)(unsafe.Pointer((*[2]uintptr)(unsafe.Pointer(&v))[1])), sz)) + p += roundup(sz, 8) + continue + } + p += 8 + } + return r +} + +// Bool returns v as a non-constant boolean value. +func Bool(v bool) bool { return v } + +func Bool32(b bool) int32 { + if b { + return 1 + } + + return 0 +} + +func roundup(n, to uintptr) uintptr { + if r := n % to; r != 0 { + return n + to - r + } + + return n +} + +func VaOther(app *uintptr, sz uint64) (r uintptr) { + ap := *(*uintptr)(unsafe.Pointer(app)) + if ap == 0 { + return 0 + } + + r = ap + ap = roundup(ap+uintptr(sz), 8) + *(*uintptr)(unsafe.Pointer(app)) = ap + return r +} + +func VaInt32(app *uintptr) int32 { + ap := *(*uintptr)(unsafe.Pointer(app)) + if ap == 0 { + return 0 + } + + ap = roundup(ap, 8) + v := int32(*(*int64)(unsafe.Pointer(ap))) + ap += 8 + *(*uintptr)(unsafe.Pointer(app)) = ap + return v +} + +func VaUint32(app *uintptr) uint32 { + ap := *(*uintptr)(unsafe.Pointer(app)) + if ap == 0 { + return 0 + } + + ap = roundup(ap, 8) + v := uint32(*(*uint64)(unsafe.Pointer(ap))) + ap += 8 + *(*uintptr)(unsafe.Pointer(app)) = ap + return v +} + +func VaInt64(app *uintptr) int64 { + ap := *(*uintptr)(unsafe.Pointer(app)) + if ap == 0 { + return 0 + } + + ap = roundup(ap, 8) + v := *(*int64)(unsafe.Pointer(ap)) + ap += 8 + *(*uintptr)(unsafe.Pointer(app)) = ap + return v +} + +func VaUint64(app *uintptr) uint64 { + ap := *(*uintptr)(unsafe.Pointer(app)) + if ap == 0 { + return 0 + } + + ap = roundup(ap, 8) + v := *(*uint64)(unsafe.Pointer(ap)) + ap += 8 + *(*uintptr)(unsafe.Pointer(app)) = ap + return v +} + +func VaFloat32(app *uintptr) float32 { + ap := *(*uintptr)(unsafe.Pointer(app)) + if ap == 0 { + return 0 + } + + ap = roundup(ap, 8) + v := *(*float64)(unsafe.Pointer(ap)) + ap += 8 + *(*uintptr)(unsafe.Pointer(app)) = ap + return float32(v) +} + +func VaFloat64(app *uintptr) float64 { + ap := *(*uintptr)(unsafe.Pointer(app)) + if ap == 0 { + return 0 + } + + ap = roundup(ap, 8) + v := *(*float64)(unsafe.Pointer(ap)) + ap += 8 + *(*uintptr)(unsafe.Pointer(app)) = ap + return v +} + +func VaUintptr(app *uintptr) uintptr { + ap := *(*uintptr)(unsafe.Pointer(app)) + if ap == 0 { + return 0 + } + + ap = roundup(ap, 8) + v := *(*uintptr)(unsafe.Pointer(ap)) + ap += 8 + *(*uintptr)(unsafe.Pointer(app)) = ap + return v +} + +func AtomicStoreNUint8(ptr uintptr, val uint8, memorder int32) { + a_store_8(ptr, int8(val)) +} + +func AtomicStorePInt8(addr uintptr, val int8) int8 { + a_store_8(addr, val) + return val +} + +func AtomicStorePUint8(addr uintptr, val byte) byte { + a_store_8(addr, int8(val)) + return val +} + +func AtomicStorePInt32(addr uintptr, val int32) int32 { + atomic.StoreInt32((*int32)(unsafe.Pointer(addr)), val) + return val +} + +func AtomicStorePInt64(addr uintptr, val int64) int64 { + atomic.StoreInt64((*int64)(unsafe.Pointer(addr)), val) + return val +} + +func AtomicStorePUint32(addr uintptr, val uint32) uint32 { + atomic.StoreUint32((*uint32)(unsafe.Pointer(addr)), val) + return val +} + +func AtomicStorePUint64(addr uintptr, val uint64) uint64 { + atomic.StoreUint64((*uint64)(unsafe.Pointer(addr)), val) + return val +} + +func AtomicStorePUintptr(addr uintptr, val uintptr) uintptr { + atomic.StoreUintptr((*uintptr)(unsafe.Pointer(addr)), val) + return val +} + +func AtomicStorePFloat32(addr uintptr, val float32) float32 { + atomic.StoreUint32((*uint32)(unsafe.Pointer(addr)), math.Float32bits(val)) + return val +} + +func AtomicStorePFloat64(addr uintptr, val float64) float64 { + atomic.StoreUint64((*uint64)(unsafe.Pointer(addr)), math.Float64bits(val)) + return val +} + +func AtomicLoadPInt8(addr uintptr) (val int8) { + return a_load_8(addr) +} + +func AtomicLoadPInt16(addr uintptr) (val int16) { + return a_load_16(addr) +} + +func AtomicLoadPInt32(addr uintptr) (val int32) { + return atomic.LoadInt32((*int32)(unsafe.Pointer(addr))) +} + +func AtomicLoadPInt64(addr uintptr) (val int64) { + return atomic.LoadInt64((*int64)(unsafe.Pointer(addr))) +} + +func AtomicLoadPUint8(addr uintptr) byte { + return byte(a_load_8(addr)) +} + +func AtomicLoadPUint16(addr uintptr) uint16 { + return uint16(a_load_16(addr)) +} + +func AtomicLoadPUint32(addr uintptr) (val uint32) { + return atomic.LoadUint32((*uint32)(unsafe.Pointer(addr))) +} + +func AtomicLoadPUint64(addr uintptr) (val uint64) { + return atomic.LoadUint64((*uint64)(unsafe.Pointer(addr))) +} + +func AtomicLoadPUintptr(addr uintptr) (val uintptr) { + return atomic.LoadUintptr((*uintptr)(unsafe.Pointer(addr))) +} + +func AtomicLoadPFloat32(addr uintptr) (val float32) { + return math.Float32frombits(atomic.LoadUint32((*uint32)(unsafe.Pointer(addr)))) +} + +func AtomicLoadPFloat64(addr uintptr) (val float64) { + return math.Float64frombits(atomic.LoadUint64((*uint64)(unsafe.Pointer(addr)))) +} + +func AtomicStoreNUint16(ptr uintptr, val uint16, memorder int32) { + a_store_16(ptr, val) +} + +func AtomicStoreNInt32(ptr uintptr, val int32, memorder int32) { + atomic.StoreInt32((*int32)(unsafe.Pointer(ptr)), val) +} + +func AtomicStoreNInt64(ptr uintptr, val int64, memorder int32) { + atomic.StoreInt64((*int64)(unsafe.Pointer(ptr)), val) +} + +func AtomicStoreNUint32(ptr uintptr, val uint32, memorder int32) { + atomic.StoreUint32((*uint32)(unsafe.Pointer(ptr)), val) +} + +func AtomicStoreNUint64(ptr uintptr, val uint64, memorder int32) { + atomic.StoreUint64((*uint64)(unsafe.Pointer(ptr)), val) +} + +func AtomicStoreNUintptr(ptr uintptr, val uintptr, memorder int32) { + atomic.StoreUintptr((*uintptr)(unsafe.Pointer(ptr)), val) +} + +func AtomicLoadNUint8(ptr uintptr, memorder int32) uint8 { + return byte(a_load_8(ptr)) +} + +func AtomicLoadNUint16(ptr uintptr, memorder int32) uint16 { + return uint16(a_load_16(ptr)) +} + +func AtomicLoadNInt32(ptr uintptr, memorder int32) int32 { + return atomic.LoadInt32((*int32)(unsafe.Pointer(ptr))) +} + +func AtomicLoadNInt64(ptr uintptr, memorder int32) int64 { + return atomic.LoadInt64((*int64)(unsafe.Pointer(ptr))) +} + +func AtomicLoadNUint32(ptr uintptr, memorder int32) uint32 { + return atomic.LoadUint32((*uint32)(unsafe.Pointer(ptr))) +} + +func AtomicLoadNUint64(ptr uintptr, memorder int32) uint64 { + return atomic.LoadUint64((*uint64)(unsafe.Pointer(ptr))) +} + +func AtomicLoadNUintptr(ptr uintptr, memorder int32) uintptr { + return atomic.LoadUintptr((*uintptr)(unsafe.Pointer(ptr))) +} + +func AssignInt8(p *int8, v int8) int8 { *p = v; return v } +func AssignInt16(p *int16, v int16) int16 { *p = v; return v } +func AssignInt32(p *int32, v int32) int32 { *p = v; return v } +func AssignInt64(p *int64, v int64) int64 { *p = v; return v } +func AssignUint8(p *uint8, v uint8) uint8 { *p = v; return v } +func AssignUint16(p *uint16, v uint16) uint16 { *p = v; return v } +func AssignUint32(p *uint32, v uint32) uint32 { *p = v; return v } +func AssignUint64(p *uint64, v uint64) uint64 { *p = v; return v } +func AssignFloat32(p *float32, v float32) float32 { *p = v; return v } +func AssignFloat64(p *float64, v float64) float64 { *p = v; return v } +func AssignComplex64(p *complex64, v complex64) complex64 { *p = v; return v } +func AssignComplex128(p *complex128, v complex128) complex128 { *p = v; return v } +func AssignUintptr(p *uintptr, v uintptr) uintptr { *p = v; return v } + +func AssignPtrInt8(p uintptr, v int8) int8 { *(*int8)(unsafe.Pointer(p)) = v; return v } +func AssignPtrInt16(p uintptr, v int16) int16 { *(*int16)(unsafe.Pointer(p)) = v; return v } +func AssignPtrInt32(p uintptr, v int32) int32 { *(*int32)(unsafe.Pointer(p)) = v; return v } +func AssignPtrInt64(p uintptr, v int64) int64 { *(*int64)(unsafe.Pointer(p)) = v; return v } +func AssignPtrUint8(p uintptr, v uint8) uint8 { *(*uint8)(unsafe.Pointer(p)) = v; return v } +func AssignPtrUint16(p uintptr, v uint16) uint16 { *(*uint16)(unsafe.Pointer(p)) = v; return v } +func AssignPtrUint32(p uintptr, v uint32) uint32 { *(*uint32)(unsafe.Pointer(p)) = v; return v } +func AssignPtrUint64(p uintptr, v uint64) uint64 { *(*uint64)(unsafe.Pointer(p)) = v; return v } +func AssignPtrFloat32(p uintptr, v float32) float32 { *(*float32)(unsafe.Pointer(p)) = v; return v } +func AssignPtrFloat64(p uintptr, v float64) float64 { *(*float64)(unsafe.Pointer(p)) = v; return v } +func AssignPtrComplex64(p uintptr, v complex64) complex64 { + *(*complex64)(unsafe.Pointer(p)) = v + return v +} +func AssignPtrComplex128(p uintptr, v complex128) complex128 { + *(*complex128)(unsafe.Pointer(p)) = v + return v +} +func AssignPtrUintptr(p uintptr, v uintptr) uintptr { *(*uintptr)(unsafe.Pointer(p)) = v; return v } + +func AssignMulInt8(p *int8, v int8) int8 { *p *= v; return *p } +func AssignMulInt16(p *int16, v int16) int16 { *p *= v; return *p } +func AssignMulInt32(p *int32, v int32) int32 { *p *= v; return *p } +func AssignMulInt64(p *int64, v int64) int64 { *p *= v; return *p } +func AssignMulUint8(p *uint8, v uint8) uint8 { *p *= v; return *p } +func AssignMulUint16(p *uint16, v uint16) uint16 { *p *= v; return *p } +func AssignMulUint32(p *uint32, v uint32) uint32 { *p *= v; return *p } +func AssignMulUint64(p *uint64, v uint64) uint64 { *p *= v; return *p } +func AssignMulFloat32(p *float32, v float32) float32 { *p *= v; return *p } +func AssignMulFloat64(p *float64, v float64) float64 { *p *= v; return *p } +func AssignMulComplex64(p *complex64, v complex64) complex64 { *p *= v; return *p } +func AssignMulComplex128(p *complex128, v complex128) complex128 { *p *= v; return *p } +func AssignMulUintptr(p *uintptr, v uintptr) uintptr { *p *= v; return *p } + +func AssignDivInt8(p *int8, v int8) int8 { *p /= v; return *p } +func AssignDivInt16(p *int16, v int16) int16 { *p /= v; return *p } +func AssignDivInt32(p *int32, v int32) int32 { *p /= v; return *p } +func AssignDivInt64(p *int64, v int64) int64 { *p /= v; return *p } +func AssignDivUint8(p *uint8, v uint8) uint8 { *p /= v; return *p } +func AssignDivUint16(p *uint16, v uint16) uint16 { *p /= v; return *p } +func AssignDivUint32(p *uint32, v uint32) uint32 { *p /= v; return *p } +func AssignDivUint64(p *uint64, v uint64) uint64 { *p /= v; return *p } +func AssignDivFloat32(p *float32, v float32) float32 { *p /= v; return *p } +func AssignDivFloat64(p *float64, v float64) float64 { *p /= v; return *p } +func AssignDivComplex64(p *complex64, v complex64) complex64 { *p /= v; return *p } +func AssignDivComplex128(p *complex128, v complex128) complex128 { *p /= v; return *p } +func AssignDivUintptr(p *uintptr, v uintptr) uintptr { *p /= v; return *p } + +func AssignRemInt8(p *int8, v int8) int8 { *p %= v; return *p } +func AssignRemInt16(p *int16, v int16) int16 { *p %= v; return *p } +func AssignRemInt32(p *int32, v int32) int32 { *p %= v; return *p } +func AssignRemInt64(p *int64, v int64) int64 { *p %= v; return *p } +func AssignRemUint8(p *uint8, v uint8) uint8 { *p %= v; return *p } +func AssignRemUint16(p *uint16, v uint16) uint16 { *p %= v; return *p } +func AssignRemUint32(p *uint32, v uint32) uint32 { *p %= v; return *p } +func AssignRemUint64(p *uint64, v uint64) uint64 { *p %= v; return *p } +func AssignRemUintptr(p *uintptr, v uintptr) uintptr { *p %= v; return *p } + +func AssignAddInt8(p *int8, v int8) int8 { *p += v; return *p } +func AssignAddInt16(p *int16, v int16) int16 { *p += v; return *p } +func AssignAddInt32(p *int32, v int32) int32 { *p += v; return *p } +func AssignAddInt64(p *int64, v int64) int64 { *p += v; return *p } +func AssignAddUint8(p *uint8, v uint8) uint8 { *p += v; return *p } +func AssignAddUint16(p *uint16, v uint16) uint16 { *p += v; return *p } +func AssignAddUint32(p *uint32, v uint32) uint32 { *p += v; return *p } +func AssignAddUint64(p *uint64, v uint64) uint64 { *p += v; return *p } +func AssignAddFloat32(p *float32, v float32) float32 { *p += v; return *p } +func AssignAddFloat64(p *float64, v float64) float64 { *p += v; return *p } +func AssignAddComplex64(p *complex64, v complex64) complex64 { *p += v; return *p } +func AssignAddComplex128(p *complex128, v complex128) complex128 { *p += v; return *p } +func AssignAddUintptr(p *uintptr, v uintptr) uintptr { *p += v; return *p } + +func AssignSubInt8(p *int8, v int8) int8 { *p -= v; return *p } +func AssignSubInt16(p *int16, v int16) int16 { *p -= v; return *p } +func AssignSubInt32(p *int32, v int32) int32 { *p -= v; return *p } +func AssignSubInt64(p *int64, v int64) int64 { *p -= v; return *p } +func AssignSubUint8(p *uint8, v uint8) uint8 { *p -= v; return *p } +func AssignSubUint16(p *uint16, v uint16) uint16 { *p -= v; return *p } +func AssignSubUint32(p *uint32, v uint32) uint32 { *p -= v; return *p } +func AssignSubUint64(p *uint64, v uint64) uint64 { *p -= v; return *p } +func AssignSubFloat32(p *float32, v float32) float32 { *p -= v; return *p } +func AssignSubFloat64(p *float64, v float64) float64 { *p -= v; return *p } +func AssignSubComplex64(p *complex64, v complex64) complex64 { *p -= v; return *p } +func AssignSubComplex128(p *complex128, v complex128) complex128 { *p -= v; return *p } +func AssignSubUintptr(p *uintptr, v uintptr) uintptr { *p -= v; return *p } + +func AssignAndInt8(p *int8, v int8) int8 { *p &= v; return *p } +func AssignAndInt16(p *int16, v int16) int16 { *p &= v; return *p } +func AssignAndInt32(p *int32, v int32) int32 { *p &= v; return *p } +func AssignAndInt64(p *int64, v int64) int64 { *p &= v; return *p } +func AssignAndUint8(p *uint8, v uint8) uint8 { *p &= v; return *p } +func AssignAndUint16(p *uint16, v uint16) uint16 { *p &= v; return *p } +func AssignAndUint32(p *uint32, v uint32) uint32 { *p &= v; return *p } +func AssignAndUint64(p *uint64, v uint64) uint64 { *p &= v; return *p } +func AssignAndUintptr(p *uintptr, v uintptr) uintptr { *p &= v; return *p } + +func AssignXorInt8(p *int8, v int8) int8 { *p ^= v; return *p } +func AssignXorInt16(p *int16, v int16) int16 { *p ^= v; return *p } +func AssignXorInt32(p *int32, v int32) int32 { *p ^= v; return *p } +func AssignXorInt64(p *int64, v int64) int64 { *p ^= v; return *p } +func AssignXorUint8(p *uint8, v uint8) uint8 { *p ^= v; return *p } +func AssignXorUint16(p *uint16, v uint16) uint16 { *p ^= v; return *p } +func AssignXorUint32(p *uint32, v uint32) uint32 { *p ^= v; return *p } +func AssignXorUint64(p *uint64, v uint64) uint64 { *p ^= v; return *p } +func AssignXorUintptr(p *uintptr, v uintptr) uintptr { *p ^= v; return *p } + +func AssignOrInt8(p *int8, v int8) int8 { *p |= v; return *p } +func AssignOrInt16(p *int16, v int16) int16 { *p |= v; return *p } +func AssignOrInt32(p *int32, v int32) int32 { *p |= v; return *p } +func AssignOrInt64(p *int64, v int64) int64 { *p |= v; return *p } +func AssignOrUint8(p *uint8, v uint8) uint8 { *p |= v; return *p } +func AssignOrUint16(p *uint16, v uint16) uint16 { *p |= v; return *p } +func AssignOrUint32(p *uint32, v uint32) uint32 { *p |= v; return *p } +func AssignOrUint64(p *uint64, v uint64) uint64 { *p |= v; return *p } +func AssignOrUintptr(p *uintptr, v uintptr) uintptr { *p |= v; return *p } + +func AssignMulPtrInt8(p uintptr, v int8) int8 { + *(*int8)(unsafe.Pointer(p)) *= v + return *(*int8)(unsafe.Pointer(p)) +} + +func AssignMulPtrInt16(p uintptr, v int16) int16 { + *(*int16)(unsafe.Pointer(p)) *= v + return *(*int16)(unsafe.Pointer(p)) +} + +func AssignMulPtrInt32(p uintptr, v int32) int32 { + *(*int32)(unsafe.Pointer(p)) *= v + return *(*int32)(unsafe.Pointer(p)) +} + +func AssignMulPtrInt64(p uintptr, v int64) int64 { + *(*int64)(unsafe.Pointer(p)) *= v + return *(*int64)(unsafe.Pointer(p)) +} + +func AssignMulPtrUint8(p uintptr, v uint8) uint8 { + *(*uint8)(unsafe.Pointer(p)) *= v + return *(*uint8)(unsafe.Pointer(p)) +} + +func AssignMulPtrUint16(p uintptr, v uint16) uint16 { + *(*uint16)(unsafe.Pointer(p)) *= v + return *(*uint16)(unsafe.Pointer(p)) +} + +func AssignMulPtrUint32(p uintptr, v uint32) uint32 { + *(*uint32)(unsafe.Pointer(p)) *= v + return *(*uint32)(unsafe.Pointer(p)) +} + +func AssignMulPtrUint64(p uintptr, v uint64) uint64 { + *(*uint64)(unsafe.Pointer(p)) *= v + return *(*uint64)(unsafe.Pointer(p)) +} + +func AssignMulPtrFloat32(p uintptr, v float32) float32 { + *(*float32)(unsafe.Pointer(p)) *= v + return *(*float32)(unsafe.Pointer(p)) +} + +func AssignMulPtrFloat64(p uintptr, v float64) float64 { + *(*float64)(unsafe.Pointer(p)) *= v + return *(*float64)(unsafe.Pointer(p)) +} + +func AssignMulPtrComplex64(p uintptr, v complex64) complex64 { + *(*complex64)(unsafe.Pointer(p)) *= v + return *(*complex64)(unsafe.Pointer(p)) +} + +func AssignMulPtrComplex128(p uintptr, v complex128) complex128 { + *(*complex128)(unsafe.Pointer(p)) *= v + return *(*complex128)(unsafe.Pointer(p)) +} + +func AssignMulPtrUintptr(p uintptr, v uintptr) uintptr { + *(*uintptr)(unsafe.Pointer(p)) *= v + return *(*uintptr)(unsafe.Pointer(p)) +} + +func AssignDivPtrInt8(p uintptr, v int8) int8 { + *(*int8)(unsafe.Pointer(p)) /= v + return *(*int8)(unsafe.Pointer(p)) +} + +func AssignDivPtrInt16(p uintptr, v int16) int16 { + *(*int16)(unsafe.Pointer(p)) /= v + return *(*int16)(unsafe.Pointer(p)) +} + +func AssignDivPtrInt32(p uintptr, v int32) int32 { + *(*int32)(unsafe.Pointer(p)) /= v + return *(*int32)(unsafe.Pointer(p)) +} + +func AssignDivPtrInt64(p uintptr, v int64) int64 { + *(*int64)(unsafe.Pointer(p)) /= v + return *(*int64)(unsafe.Pointer(p)) +} + +func AssignDivPtrUint8(p uintptr, v uint8) uint8 { + *(*uint8)(unsafe.Pointer(p)) /= v + return *(*uint8)(unsafe.Pointer(p)) +} + +func AssignDivPtrUint16(p uintptr, v uint16) uint16 { + *(*uint16)(unsafe.Pointer(p)) /= v + return *(*uint16)(unsafe.Pointer(p)) +} + +func AssignDivPtrUint32(p uintptr, v uint32) uint32 { + *(*uint32)(unsafe.Pointer(p)) /= v + return *(*uint32)(unsafe.Pointer(p)) +} + +func AssignDivPtrUint64(p uintptr, v uint64) uint64 { + *(*uint64)(unsafe.Pointer(p)) /= v + return *(*uint64)(unsafe.Pointer(p)) +} + +func AssignDivPtrFloat32(p uintptr, v float32) float32 { + *(*float32)(unsafe.Pointer(p)) /= v + return *(*float32)(unsafe.Pointer(p)) +} + +func AssignDivPtrFloat64(p uintptr, v float64) float64 { + *(*float64)(unsafe.Pointer(p)) /= v + return *(*float64)(unsafe.Pointer(p)) +} + +func AssignDivPtrComplex64(p uintptr, v complex64) complex64 { + *(*complex64)(unsafe.Pointer(p)) /= v + return *(*complex64)(unsafe.Pointer(p)) +} + +func AssignDivPtrComplex128(p uintptr, v complex128) complex128 { + *(*complex128)(unsafe.Pointer(p)) /= v + return *(*complex128)(unsafe.Pointer(p)) +} + +func AssignDivPtrUintptr(p uintptr, v uintptr) uintptr { + *(*uintptr)(unsafe.Pointer(p)) /= v + return *(*uintptr)(unsafe.Pointer(p)) +} + +func AssignRemPtrInt8(p uintptr, v int8) int8 { + *(*int8)(unsafe.Pointer(p)) %= v + return *(*int8)(unsafe.Pointer(p)) +} + +func AssignRemPtrInt16(p uintptr, v int16) int16 { + *(*int16)(unsafe.Pointer(p)) %= v + return *(*int16)(unsafe.Pointer(p)) +} + +func AssignRemPtrInt32(p uintptr, v int32) int32 { + *(*int32)(unsafe.Pointer(p)) %= v + return *(*int32)(unsafe.Pointer(p)) +} + +func AssignRemPtrInt64(p uintptr, v int64) int64 { + *(*int64)(unsafe.Pointer(p)) %= v + return *(*int64)(unsafe.Pointer(p)) +} + +func AssignRemPtrUint8(p uintptr, v uint8) uint8 { + *(*uint8)(unsafe.Pointer(p)) %= v + return *(*uint8)(unsafe.Pointer(p)) +} + +func AssignRemPtrUint16(p uintptr, v uint16) uint16 { + *(*uint16)(unsafe.Pointer(p)) %= v + return *(*uint16)(unsafe.Pointer(p)) +} + +func AssignRemPtrUint32(p uintptr, v uint32) uint32 { + *(*uint32)(unsafe.Pointer(p)) %= v + return *(*uint32)(unsafe.Pointer(p)) +} + +func AssignRemPtrUint64(p uintptr, v uint64) uint64 { + *(*uint64)(unsafe.Pointer(p)) %= v + return *(*uint64)(unsafe.Pointer(p)) +} + +func AssignRemPtrUintptr(p uintptr, v uintptr) uintptr { + *(*uintptr)(unsafe.Pointer(p)) %= v + return *(*uintptr)(unsafe.Pointer(p)) +} + +func AssignAddPtrInt8(p uintptr, v int8) int8 { + *(*int8)(unsafe.Pointer(p)) += v + return *(*int8)(unsafe.Pointer(p)) +} + +func AssignAddPtrInt16(p uintptr, v int16) int16 { + *(*int16)(unsafe.Pointer(p)) += v + return *(*int16)(unsafe.Pointer(p)) +} + +func AssignAddPtrInt32(p uintptr, v int32) int32 { + *(*int32)(unsafe.Pointer(p)) += v + return *(*int32)(unsafe.Pointer(p)) +} + +func AssignAddPtrInt64(p uintptr, v int64) int64 { + *(*int64)(unsafe.Pointer(p)) += v + return *(*int64)(unsafe.Pointer(p)) +} + +func AssignAddPtrUint8(p uintptr, v uint8) uint8 { + *(*uint8)(unsafe.Pointer(p)) += v + return *(*uint8)(unsafe.Pointer(p)) +} + +func AssignAddPtrUint16(p uintptr, v uint16) uint16 { + *(*uint16)(unsafe.Pointer(p)) += v + return *(*uint16)(unsafe.Pointer(p)) +} + +func AssignAddPtrUint32(p uintptr, v uint32) uint32 { + *(*uint32)(unsafe.Pointer(p)) += v + return *(*uint32)(unsafe.Pointer(p)) +} + +func AssignAddPtrUint64(p uintptr, v uint64) uint64 { + *(*uint64)(unsafe.Pointer(p)) += v + return *(*uint64)(unsafe.Pointer(p)) +} + +func AssignAddPtrFloat32(p uintptr, v float32) float32 { + *(*float32)(unsafe.Pointer(p)) += v + return *(*float32)(unsafe.Pointer(p)) +} + +func AssignAddPtrFloat64(p uintptr, v float64) float64 { + *(*float64)(unsafe.Pointer(p)) += v + return *(*float64)(unsafe.Pointer(p)) +} + +func AssignAddPtrComplex64(p uintptr, v complex64) complex64 { + *(*complex64)(unsafe.Pointer(p)) += v + return *(*complex64)(unsafe.Pointer(p)) +} + +func AssignAddPtrComplex128(p uintptr, v complex128) complex128 { + *(*complex128)(unsafe.Pointer(p)) += v + return *(*complex128)(unsafe.Pointer(p)) +} + +func AssignAddPtrUintptr(p uintptr, v uintptr) uintptr { + *(*uintptr)(unsafe.Pointer(p)) += v + return *(*uintptr)(unsafe.Pointer(p)) +} + +func AssignSubPtrInt8(p uintptr, v int8) int8 { + *(*int8)(unsafe.Pointer(p)) -= v + return *(*int8)(unsafe.Pointer(p)) +} + +func AssignSubPtrInt16(p uintptr, v int16) int16 { + *(*int16)(unsafe.Pointer(p)) -= v + return *(*int16)(unsafe.Pointer(p)) +} + +func AssignSubPtrInt32(p uintptr, v int32) int32 { + *(*int32)(unsafe.Pointer(p)) -= v + return *(*int32)(unsafe.Pointer(p)) +} + +func AssignSubPtrInt64(p uintptr, v int64) int64 { + *(*int64)(unsafe.Pointer(p)) -= v + return *(*int64)(unsafe.Pointer(p)) +} + +func AssignSubPtrUint8(p uintptr, v uint8) uint8 { + *(*uint8)(unsafe.Pointer(p)) -= v + return *(*uint8)(unsafe.Pointer(p)) +} + +func AssignSubPtrUint16(p uintptr, v uint16) uint16 { + *(*uint16)(unsafe.Pointer(p)) -= v + return *(*uint16)(unsafe.Pointer(p)) +} + +func AssignSubPtrUint32(p uintptr, v uint32) uint32 { + *(*uint32)(unsafe.Pointer(p)) -= v + return *(*uint32)(unsafe.Pointer(p)) +} + +func AssignSubPtrUint64(p uintptr, v uint64) uint64 { + *(*uint64)(unsafe.Pointer(p)) -= v + return *(*uint64)(unsafe.Pointer(p)) +} + +func AssignSubPtrFloat32(p uintptr, v float32) float32 { + *(*float32)(unsafe.Pointer(p)) -= v + return *(*float32)(unsafe.Pointer(p)) +} + +func AssignSubPtrFloat64(p uintptr, v float64) float64 { + *(*float64)(unsafe.Pointer(p)) -= v + return *(*float64)(unsafe.Pointer(p)) +} + +func AssignSubPtrComplex64(p uintptr, v complex64) complex64 { + *(*complex64)(unsafe.Pointer(p)) -= v + return *(*complex64)(unsafe.Pointer(p)) +} + +func AssignSubPtrComplex128(p uintptr, v complex128) complex128 { + *(*complex128)(unsafe.Pointer(p)) -= v + return *(*complex128)(unsafe.Pointer(p)) +} + +func AssignSubPtrUintptr(p uintptr, v uintptr) uintptr { + *(*uintptr)(unsafe.Pointer(p)) -= v + return *(*uintptr)(unsafe.Pointer(p)) +} + +func AssignAndPtrInt8(p uintptr, v int8) int8 { + *(*int8)(unsafe.Pointer(p)) &= v + return *(*int8)(unsafe.Pointer(p)) +} + +func AssignAndPtrInt16(p uintptr, v int16) int16 { + *(*int16)(unsafe.Pointer(p)) &= v + return *(*int16)(unsafe.Pointer(p)) +} + +func AssignAndPtrInt32(p uintptr, v int32) int32 { + *(*int32)(unsafe.Pointer(p)) &= v + return *(*int32)(unsafe.Pointer(p)) +} + +func AssignAndPtrInt64(p uintptr, v int64) int64 { + *(*int64)(unsafe.Pointer(p)) &= v + return *(*int64)(unsafe.Pointer(p)) +} + +func AssignAndPtrUint8(p uintptr, v uint8) uint8 { + *(*uint8)(unsafe.Pointer(p)) &= v + return *(*uint8)(unsafe.Pointer(p)) +} + +func AssignAndPtrUint16(p uintptr, v uint16) uint16 { + *(*uint16)(unsafe.Pointer(p)) &= v + return *(*uint16)(unsafe.Pointer(p)) +} + +func AssignAndPtrUint32(p uintptr, v uint32) uint32 { + *(*uint32)(unsafe.Pointer(p)) &= v + return *(*uint32)(unsafe.Pointer(p)) +} + +func AssignAndPtrUint64(p uintptr, v uint64) uint64 { + *(*uint64)(unsafe.Pointer(p)) &= v + return *(*uint64)(unsafe.Pointer(p)) +} + +func AssignAndPtrUintptr(p uintptr, v uintptr) uintptr { + *(*uintptr)(unsafe.Pointer(p)) &= v + return *(*uintptr)(unsafe.Pointer(p)) +} + +func AssignXorPtrInt8(p uintptr, v int8) int8 { + *(*int8)(unsafe.Pointer(p)) ^= v + return *(*int8)(unsafe.Pointer(p)) +} + +func AssignXorPtrInt16(p uintptr, v int16) int16 { + *(*int16)(unsafe.Pointer(p)) ^= v + return *(*int16)(unsafe.Pointer(p)) +} + +func AssignXorPtrInt32(p uintptr, v int32) int32 { + *(*int32)(unsafe.Pointer(p)) ^= v + return *(*int32)(unsafe.Pointer(p)) +} + +func AssignXorPtrInt64(p uintptr, v int64) int64 { + *(*int64)(unsafe.Pointer(p)) ^= v + return *(*int64)(unsafe.Pointer(p)) +} + +func AssignXorPtrUint8(p uintptr, v uint8) uint8 { + *(*uint8)(unsafe.Pointer(p)) ^= v + return *(*uint8)(unsafe.Pointer(p)) +} + +func AssignXorPtrUint16(p uintptr, v uint16) uint16 { + *(*uint16)(unsafe.Pointer(p)) ^= v + return *(*uint16)(unsafe.Pointer(p)) +} + +func AssignXorPtrUint32(p uintptr, v uint32) uint32 { + *(*uint32)(unsafe.Pointer(p)) ^= v + return *(*uint32)(unsafe.Pointer(p)) +} + +func AssignXorPtrUint64(p uintptr, v uint64) uint64 { + *(*uint64)(unsafe.Pointer(p)) ^= v + return *(*uint64)(unsafe.Pointer(p)) +} + +func AssignXorPtrUintptr(p uintptr, v uintptr) uintptr { + *(*uintptr)(unsafe.Pointer(p)) ^= v + return *(*uintptr)(unsafe.Pointer(p)) +} + +func AssignOrPtrInt8(p uintptr, v int8) int8 { + *(*int8)(unsafe.Pointer(p)) |= v + return *(*int8)(unsafe.Pointer(p)) +} + +func AssignOrPtrInt16(p uintptr, v int16) int16 { + *(*int16)(unsafe.Pointer(p)) |= v + return *(*int16)(unsafe.Pointer(p)) +} + +func AssignOrPtrInt32(p uintptr, v int32) int32 { + *(*int32)(unsafe.Pointer(p)) |= v + return *(*int32)(unsafe.Pointer(p)) +} + +func AssignOrPtrInt64(p uintptr, v int64) int64 { + *(*int64)(unsafe.Pointer(p)) |= v + return *(*int64)(unsafe.Pointer(p)) +} + +func AssignOrPtrUint8(p uintptr, v uint8) uint8 { + *(*uint8)(unsafe.Pointer(p)) |= v + return *(*uint8)(unsafe.Pointer(p)) +} + +func AssignOrPtrUint16(p uintptr, v uint16) uint16 { + *(*uint16)(unsafe.Pointer(p)) |= v + return *(*uint16)(unsafe.Pointer(p)) +} + +func AssignOrPtrUint32(p uintptr, v uint32) uint32 { + *(*uint32)(unsafe.Pointer(p)) |= v + return *(*uint32)(unsafe.Pointer(p)) +} + +func AssignOrPtrUint64(p uintptr, v uint64) uint64 { + *(*uint64)(unsafe.Pointer(p)) |= v + return *(*uint64)(unsafe.Pointer(p)) +} + +func AssignOrPtrUintptr(p uintptr, v uintptr) uintptr { + *(*uintptr)(unsafe.Pointer(p)) |= v + return *(*uintptr)(unsafe.Pointer(p)) +} + +func AssignShlPtrInt8(p uintptr, v int) int8 { + *(*int8)(unsafe.Pointer(p)) <<= v + return *(*int8)(unsafe.Pointer(p)) +} + +func AssignShlPtrInt16(p uintptr, v int) int16 { + *(*int16)(unsafe.Pointer(p)) <<= v + return *(*int16)(unsafe.Pointer(p)) +} + +func AssignShlPtrInt32(p uintptr, v int) int32 { + *(*int32)(unsafe.Pointer(p)) <<= v + return *(*int32)(unsafe.Pointer(p)) +} + +func AssignShlPtrInt64(p uintptr, v int) int64 { + *(*int64)(unsafe.Pointer(p)) <<= v + return *(*int64)(unsafe.Pointer(p)) +} + +func AssignShlPtrUint8(p uintptr, v int) uint8 { + *(*uint8)(unsafe.Pointer(p)) <<= v + return *(*uint8)(unsafe.Pointer(p)) +} + +func AssignShlPtrUint16(p uintptr, v int) uint16 { + *(*uint16)(unsafe.Pointer(p)) <<= v + return *(*uint16)(unsafe.Pointer(p)) +} + +func AssignShlPtrUint32(p uintptr, v int) uint32 { + *(*uint32)(unsafe.Pointer(p)) <<= v + return *(*uint32)(unsafe.Pointer(p)) +} + +func AssignShlPtrUint64(p uintptr, v int) uint64 { + *(*uint64)(unsafe.Pointer(p)) <<= v + return *(*uint64)(unsafe.Pointer(p)) +} + +func AssignShlPtrUintptr(p uintptr, v int) uintptr { + *(*uintptr)(unsafe.Pointer(p)) <<= v + return *(*uintptr)(unsafe.Pointer(p)) +} + +func AssignShrPtrInt8(p uintptr, v int) int8 { + *(*int8)(unsafe.Pointer(p)) >>= v + return *(*int8)(unsafe.Pointer(p)) +} + +func AssignShrPtrInt16(p uintptr, v int) int16 { + *(*int16)(unsafe.Pointer(p)) >>= v + return *(*int16)(unsafe.Pointer(p)) +} + +func AssignShrPtrInt32(p uintptr, v int) int32 { + *(*int32)(unsafe.Pointer(p)) >>= v + return *(*int32)(unsafe.Pointer(p)) +} + +func AssignShrPtrInt64(p uintptr, v int) int64 { + *(*int64)(unsafe.Pointer(p)) >>= v + return *(*int64)(unsafe.Pointer(p)) +} + +func AssignShrPtrUint8(p uintptr, v int) uint8 { + *(*uint8)(unsafe.Pointer(p)) >>= v + return *(*uint8)(unsafe.Pointer(p)) +} + +func AssignShrPtrUint16(p uintptr, v int) uint16 { + *(*uint16)(unsafe.Pointer(p)) >>= v + return *(*uint16)(unsafe.Pointer(p)) +} + +func AssignShrPtrUint32(p uintptr, v int) uint32 { + *(*uint32)(unsafe.Pointer(p)) >>= v + return *(*uint32)(unsafe.Pointer(p)) +} + +func AssignShrPtrUint64(p uintptr, v int) uint64 { + *(*uint64)(unsafe.Pointer(p)) >>= v + return *(*uint64)(unsafe.Pointer(p)) +} + +func AssignShrPtrUintptr(p uintptr, v int) uintptr { + *(*uintptr)(unsafe.Pointer(p)) >>= v + return *(*uintptr)(unsafe.Pointer(p)) +} + +func AssignShlInt8(p *int8, v int) int8 { *p <<= v; return *p } + +func AssignShlInt16(p *int16, v int) int16 { *p <<= v; return *p } + +func AssignShlInt32(p *int32, v int) int32 { *p <<= v; return *p } + +func AssignShlInt64(p *int64, v int) int64 { *p <<= v; return *p } + +func AssignShlUint8(p *uint8, v int) uint8 { *p <<= v; return *p } + +func AssignShlUint16(p *uint16, v int) uint16 { *p <<= v; return *p } + +func AssignShlUint32(p *uint32, v int) uint32 { *p <<= v; return *p } + +func AssignShlUint64(p *uint64, v int) uint64 { *p <<= v; return *p } + +func AssignShlUintptr(p *uintptr, v int) uintptr { *p <<= v; return *p } + +func AssignShrInt8(p *int8, v int) int8 { *p >>= v; return *p } + +func AssignShrInt16(p *int16, v int) int16 { *p >>= v; return *p } + +func AssignShrInt32(p *int32, v int) int32 { *p >>= v; return *p } + +func AssignShrInt64(p *int64, v int) int64 { *p >>= v; return *p } + +func AssignShrUint8(p *uint8, v int) uint8 { *p >>= v; return *p } + +func AssignShrUint16(p *uint16, v int) uint16 { *p >>= v; return *p } + +func AssignShrUint32(p *uint32, v int) uint32 { *p >>= v; return *p } + +func AssignShrUint64(p *uint64, v int) uint64 { *p >>= v; return *p } + +func AssignShrUintptr(p *uintptr, v int) uintptr { *p >>= v; return *p } + +func PreIncInt8(p *int8, d int8) int8 { *p += d; return *p } +func PreIncInt16(p *int16, d int16) int16 { *p += d; return *p } +func PreIncInt32(p *int32, d int32) int32 { *p += d; return *p } +func PreIncInt64(p *int64, d int64) int64 { *p += d; return *p } +func PreIncUint8(p *uint8, d uint8) uint8 { *p += d; return *p } +func PreIncUint16(p *uint16, d uint16) uint16 { *p += d; return *p } +func PreIncUint32(p *uint32, d uint32) uint32 { *p += d; return *p } +func PreIncUint64(p *uint64, d uint64) uint64 { *p += d; return *p } +func PreIncFloat32(p *float32, d float32) float32 { *p += d; return *p } +func PreIncFloat64(p *float64, d float64) float64 { *p += d; return *p } +func PreIncComplex64(p *complex64, d complex64) complex64 { *p += d; return *p } +func PreIncComplex128(p *complex128, d complex128) complex128 { *p += d; return *p } +func PreIncUintptr(p *uintptr, d uintptr) uintptr { *p += d; return *p } + +func PreIncAtomicInt32(p *int32, d int32) int32 { return atomic.AddInt32(p, d) } +func PreIncAtomicInt64(p *int64, d int64) int64 { return atomic.AddInt64(p, d) } +func PreIncAtomicUint32(p *uint32, d uint32) uint32 { return atomic.AddUint32(p, d) } +func PreIncAtomicUint64(p *uint64, d uint64) uint64 { return atomic.AddUint64(p, d) } +func PreIncAtomicUintptr(p *uintptr, d uintptr) uintptr { return atomic.AddUintptr(p, d) } + +func PreIncAtomicInt32P(p uintptr, d int32) int32 { + return atomic.AddInt32((*int32)(unsafe.Pointer(p)), d) +} + +func PreIncAtomicInt64P(p uintptr, d int64) int64 { + return atomic.AddInt64((*int64)(unsafe.Pointer(p)), d) +} + +func PreIncAtomicUint32P(p uintptr, d uint32) uint32 { + return atomic.AddUint32((*uint32)(unsafe.Pointer(p)), d) +} + +func PreIncAtomicUint64P(p uintptr, d uint64) uint64 { + return atomic.AddUint64((*uint64)(unsafe.Pointer(p)), d) +} + +func PreInrAtomicUintptrP(p uintptr, d uintptr) uintptr { + return atomic.AddUintptr((*uintptr)(unsafe.Pointer(p)), d) +} + +func PreDecInt8(p *int8, d int8) int8 { *p -= d; return *p } +func PreDecInt16(p *int16, d int16) int16 { *p -= d; return *p } +func PreDecInt32(p *int32, d int32) int32 { *p -= d; return *p } +func PreDecInt64(p *int64, d int64) int64 { *p -= d; return *p } +func PreDecUint8(p *uint8, d uint8) uint8 { *p -= d; return *p } +func PreDecUint16(p *uint16, d uint16) uint16 { *p -= d; return *p } +func PreDecUint32(p *uint32, d uint32) uint32 { *p -= d; return *p } +func PreDecUint64(p *uint64, d uint64) uint64 { *p -= d; return *p } +func PreDecFloat32(p *float32, d float32) float32 { *p -= d; return *p } +func PreDecFloat64(p *float64, d float64) float64 { *p -= d; return *p } +func PreDecComplex64(p *complex64, d complex64) complex64 { *p -= d; return *p } +func PreDecComplex128(p *complex128, d complex128) complex128 { *p -= d; return *p } +func PreDecUintptr(p *uintptr, d uintptr) uintptr { *p -= d; return *p } + +func PreDecAtomicInt32(p *int32, d int32) int32 { return atomic.AddInt32(p, -d) } +func PreDecAtomicInt64(p *int64, d int64) int64 { return atomic.AddInt64(p, -d) } +func PreDecAtomicUint32(p *uint32, d uint32) uint32 { return atomic.AddUint32(p, -d) } +func PreDecAtomicUint64(p *uint64, d uint64) uint64 { return atomic.AddUint64(p, -d) } +func PreDecAtomicUintptr(p *uintptr, d uintptr) uintptr { return atomic.AddUintptr(p, -d) } + +func PostIncInt8(p *int8, d int8) int8 { r := *p; *p += d; return r } +func PostIncInt16(p *int16, d int16) int16 { r := *p; *p += d; return r } +func PostIncInt32(p *int32, d int32) int32 { r := *p; *p += d; return r } +func PostIncInt64(p *int64, d int64) int64 { r := *p; *p += d; return r } +func PostIncUint8(p *uint8, d uint8) uint8 { r := *p; *p += d; return r } +func PostIncUint16(p *uint16, d uint16) uint16 { r := *p; *p += d; return r } +func PostIncUint32(p *uint32, d uint32) uint32 { r := *p; *p += d; return r } +func PostIncUint64(p *uint64, d uint64) uint64 { r := *p; *p += d; return r } +func PostIncFloat32(p *float32, d float32) float32 { r := *p; *p += d; return r } +func PostIncFloat64(p *float64, d float64) float64 { r := *p; *p += d; return r } +func PostIncComplex64(p *complex64, d complex64) complex64 { r := *p; *p += d; return r } +func PostIncComplex128(p *complex128, d complex128) complex128 { r := *p; *p += d; return r } +func PostIncUintptr(p *uintptr, d uintptr) uintptr { r := *p; *p += d; return r } + +func PostIncAtomicInt32(p *int32, d int32) int32 { return atomic.AddInt32(p, d) - d } +func PostIncAtomicInt64(p *int64, d int64) int64 { return atomic.AddInt64(p, d) - d } +func PostIncAtomicUint32(p *uint32, d uint32) uint32 { return atomic.AddUint32(p, d) - d } +func PostIncAtomicUint64(p *uint64, d uint64) uint64 { return atomic.AddUint64(p, d) - d } +func PostIncAtomicUintptr(p *uintptr, d uintptr) uintptr { return atomic.AddUintptr(p, d) - d } + +func PostIncAtomicInt32P(p uintptr, d int32) int32 { + return atomic.AddInt32((*int32)(unsafe.Pointer(p)), d) - d +} +func PostIncAtomicInt64P(p uintptr, d int64) int64 { + return atomic.AddInt64((*int64)(unsafe.Pointer(p)), d) - d +} +func PostIncAtomicUint32P(p uintptr, d uint32) uint32 { + return atomic.AddUint32((*uint32)(unsafe.Pointer(p)), d) - d +} +func PostIncAtomicUint64P(p uintptr, d uint64) uint64 { + return atomic.AddUint64((*uint64)(unsafe.Pointer(p)), d) - d +} +func PostIncAtomicUintptrP(p uintptr, d uintptr) uintptr { + return atomic.AddUintptr((*uintptr)(unsafe.Pointer(p)), d) - d +} + +func PostDecInt8(p *int8, d int8) int8 { r := *p; *p -= d; return r } +func PostDecInt16(p *int16, d int16) int16 { r := *p; *p -= d; return r } +func PostDecInt32(p *int32, d int32) int32 { r := *p; *p -= d; return r } +func PostDecInt64(p *int64, d int64) int64 { r := *p; *p -= d; return r } +func PostDecUint8(p *uint8, d uint8) uint8 { r := *p; *p -= d; return r } +func PostDecUint16(p *uint16, d uint16) uint16 { r := *p; *p -= d; return r } +func PostDecUint32(p *uint32, d uint32) uint32 { r := *p; *p -= d; return r } +func PostDecUint64(p *uint64, d uint64) uint64 { r := *p; *p -= d; return r } +func PostDecFloat32(p *float32, d float32) float32 { r := *p; *p -= d; return r } +func PostDecFloat64(p *float64, d float64) float64 { r := *p; *p -= d; return r } +func PostDecComplex64(p *complex64, d complex64) complex64 { r := *p; *p -= d; return r } +func PostDecComplex128(p *complex128, d complex128) complex128 { r := *p; *p -= d; return r } +func PostDecUintptr(p *uintptr, d uintptr) uintptr { r := *p; *p -= d; return r } + +func PostDecAtomicInt32(p *int32, d int32) int32 { return atomic.AddInt32(p, -d) + d } +func PostDecAtomicInt64(p *int64, d int64) int64 { return atomic.AddInt64(p, -d) + d } +func PostDecAtomicUint32(p *uint32, d uint32) uint32 { return atomic.AddUint32(p, -d) + d } +func PostDecAtomicUint64(p *uint64, d uint64) uint64 { return atomic.AddUint64(p, -d) + d } +func PostDecAtomicUintptr(p *uintptr, d uintptr) uintptr { return atomic.AddUintptr(p, -d) + d } + +func Int8FromInt8(n int8) int8 { return n } +func Int8FromInt16(n int16) int8 { return int8(n) } +func Int8FromInt32(n int32) int8 { return int8(n) } +func Int8FromInt64(n int64) int8 { return int8(n) } +func Int8FromUint8(n uint8) int8 { return int8(n) } +func Int8FromUint16(n uint16) int8 { return int8(n) } +func Int8FromUint32(n uint32) int8 { return int8(n) } +func Int8FromUint64(n uint64) int8 { return int8(n) } +func Int8FromFloat32(n float32) int8 { return int8(n) } +func Int8FromFloat64(n float64) int8 { return int8(n) } +func Int8FromComplex64(n complex64) int8 { return int8(real(n)) } +func Int8FromComplex128(n complex128) int8 { return int8(real(n)) } +func Int8FromUintptr(n uintptr) int8 { return int8(n) } +func Int16FromInt8(n int8) int16 { return int16(n) } +func Int16FromInt16(n int16) int16 { return n } +func Int16FromInt32(n int32) int16 { return int16(n) } +func Int16FromInt64(n int64) int16 { return int16(n) } +func Int16FromUint8(n uint8) int16 { return int16(n) } +func Int16FromUint16(n uint16) int16 { return int16(n) } +func Int16FromUint32(n uint32) int16 { return int16(n) } +func Int16FromUint64(n uint64) int16 { return int16(n) } +func Int16FromFloat32(n float32) int16 { return int16(n) } +func Int16FromFloat64(n float64) int16 { return int16(n) } +func Int16FromComplex64(n complex64) int16 { return int16(real(n)) } +func Int16FromComplex128(n complex128) int16 { return int16(real(n)) } +func Int16FromUintptr(n uintptr) int16 { return int16(n) } +func Int32FromInt8(n int8) int32 { return int32(n) } +func Int32FromInt16(n int16) int32 { return int32(n) } +func Int32FromInt32(n int32) int32 { return n } +func Int32FromInt64(n int64) int32 { return int32(n) } +func Int32FromUint8(n uint8) int32 { return int32(n) } +func Int32FromUint16(n uint16) int32 { return int32(n) } +func Int32FromUint32(n uint32) int32 { return int32(n) } +func Int32FromUint64(n uint64) int32 { return int32(n) } +func Int32FromFloat32(n float32) int32 { return int32(n) } +func Int32FromFloat64(n float64) int32 { return int32(n) } +func Int32FromComplex64(n complex64) int32 { return int32(real(n)) } +func Int32FromComplex128(n complex128) int32 { return int32(real(n)) } +func Int32FromUintptr(n uintptr) int32 { return int32(n) } +func Int64FromInt8(n int8) int64 { return int64(n) } +func Int64FromInt16(n int16) int64 { return int64(n) } +func Int64FromInt32(n int32) int64 { return int64(n) } +func Int64FromInt64(n int64) int64 { return n } +func Int64FromUint8(n uint8) int64 { return int64(n) } +func Int64FromUint16(n uint16) int64 { return int64(n) } +func Int64FromUint32(n uint32) int64 { return int64(n) } +func Int64FromUint64(n uint64) int64 { return int64(n) } +func Int64FromFloat32(n float32) int64 { return int64(n) } +func Int64FromFloat64(n float64) int64 { return int64(n) } +func Int64FromComplex64(n complex64) int64 { return int64(real(n)) } +func Int64FromComplex128(n complex128) int64 { return int64(real(n)) } +func Int64FromUintptr(n uintptr) int64 { return int64(n) } +func Uint8FromInt8(n int8) uint8 { return uint8(n) } +func Uint8FromInt16(n int16) uint8 { return uint8(n) } +func Uint8FromInt32(n int32) uint8 { return uint8(n) } +func Uint8FromInt64(n int64) uint8 { return uint8(n) } +func Uint8FromUint8(n uint8) uint8 { return n } +func Uint8FromUint16(n uint16) uint8 { return uint8(n) } +func Uint8FromUint32(n uint32) uint8 { return uint8(n) } +func Uint8FromUint64(n uint64) uint8 { return uint8(n) } +func Uint8FromFloat32(n float32) uint8 { return uint8(n) } +func Uint8FromFloat64(n float64) uint8 { return uint8(n) } +func Uint8FromComplex64(n complex64) uint8 { return uint8(real(n)) } +func Uint8FromComplex128(n complex128) uint8 { return uint8(real(n)) } +func Uint8FromUintptr(n uintptr) uint8 { return uint8(n) } +func Uint16FromInt8(n int8) uint16 { return uint16(n) } +func Uint16FromInt16(n int16) uint16 { return uint16(n) } +func Uint16FromInt32(n int32) uint16 { return uint16(n) } +func Uint16FromInt64(n int64) uint16 { return uint16(n) } +func Uint16FromUint8(n uint8) uint16 { return uint16(n) } +func Uint16FromUint16(n uint16) uint16 { return n } +func Uint16FromUint32(n uint32) uint16 { return uint16(n) } +func Uint16FromUint64(n uint64) uint16 { return uint16(n) } +func Uint16FromFloat32(n float32) uint16 { return uint16(n) } +func Uint16FromFloat64(n float64) uint16 { return uint16(n) } +func Uint16FromComplex64(n complex64) uint16 { return uint16(real(n)) } +func Uint16FromComplex128(n complex128) uint16 { return uint16(real(n)) } +func Uint16FromUintptr(n uintptr) uint16 { return uint16(n) } +func Uint32FromInt8(n int8) uint32 { return uint32(n) } +func Uint32FromInt16(n int16) uint32 { return uint32(n) } +func Uint32FromInt32(n int32) uint32 { return uint32(n) } +func Uint32FromInt64(n int64) uint32 { return uint32(n) } +func Uint32FromUint8(n uint8) uint32 { return uint32(n) } +func Uint32FromUint16(n uint16) uint32 { return uint32(n) } +func Uint32FromUint32(n uint32) uint32 { return n } +func Uint32FromUint64(n uint64) uint32 { return uint32(n) } +func Uint32FromFloat32(n float32) uint32 { return uint32(n) } +func Uint32FromFloat64(n float64) uint32 { return uint32(n) } +func Uint32FromComplex64(n complex64) uint32 { return uint32(real(n)) } +func Uint32FromComplex128(n complex128) uint32 { return uint32(real(n)) } +func Uint32FromUintptr(n uintptr) uint32 { return uint32(n) } +func Uint64FromInt8(n int8) uint64 { return uint64(n) } +func Uint64FromInt16(n int16) uint64 { return uint64(n) } +func Uint64FromInt32(n int32) uint64 { return uint64(n) } +func Uint64FromInt64(n int64) uint64 { return uint64(n) } +func Uint64FromUint8(n uint8) uint64 { return uint64(n) } +func Uint64FromUint16(n uint16) uint64 { return uint64(n) } +func Uint64FromUint32(n uint32) uint64 { return uint64(n) } +func Uint64FromUint64(n uint64) uint64 { return n } +func Uint64FromFloat32(n float32) uint64 { return uint64(n) } +func Uint64FromFloat64(n float64) uint64 { return uint64(n) } +func Uint64FromComplex64(n complex64) uint64 { return uint64(real(n)) } +func Uint64FromComplex128(n complex128) uint64 { return uint64(real(n)) } +func Uint64FromUintptr(n uintptr) uint64 { return uint64(n) } +func Float32FromInt8(n int8) float32 { return float32(n) } +func Float32FromInt16(n int16) float32 { return float32(n) } +func Float32FromInt32(n int32) float32 { return float32(n) } +func Float32FromInt64(n int64) float32 { return float32(n) } +func Float32FromUint8(n uint8) float32 { return float32(n) } +func Float32FromUint16(n uint16) float32 { return float32(n) } +func Float32FromUint32(n uint32) float32 { return float32(n) } +func Float32FromUint64(n uint64) float32 { return float32(n) } +func Float32FromFloat32(n float32) float32 { return n } +func Float32FromFloat64(n float64) float32 { return float32(n) } +func Float32FromComplex64(n complex64) float32 { return real(n) } +func Float32FromComplex128(n complex128) float32 { return float32(real(n)) } +func Float32FromUintptr(n uintptr) float32 { return float32(n) } +func Float64FromInt8(n int8) float64 { return float64(n) } +func Float64FromInt16(n int16) float64 { return float64(n) } +func Float64FromInt32(n int32) float64 { return float64(n) } +func Float64FromInt64(n int64) float64 { return float64(n) } +func Float64FromUint8(n uint8) float64 { return float64(n) } +func Float64FromUint16(n uint16) float64 { return float64(n) } +func Float64FromUint32(n uint32) float64 { return float64(n) } +func Float64FromUint64(n uint64) float64 { return float64(n) } +func Float64FromFloat32(n float32) float64 { return float64(n) } +func Float64FromFloat64(n float64) float64 { return n } +func Float64FromComplex64(n complex64) float64 { return float64(real(n)) } +func Float64FromComplex128(n complex128) float64 { return real(n) } +func Float64FromUintptr(n uintptr) float64 { return float64(n) } +func Complex64FromInt8(n int8) complex64 { return complex(float32(n), 0) } +func Complex64FromInt16(n int16) complex64 { return complex(float32(n), 0) } +func Complex64FromInt32(n int32) complex64 { return complex(float32(n), 0) } +func Complex64FromInt64(n int64) complex64 { return complex(float32(n), 0) } +func Complex64FromUint8(n uint8) complex64 { return complex(float32(n), 0) } +func Complex64FromUint16(n uint16) complex64 { return complex(float32(n), 0) } +func Complex64FromUint32(n uint32) complex64 { return complex(float32(n), 0) } +func Complex64FromUint64(n uint64) complex64 { return complex(float32(n), 0) } +func Complex64FromFloat32(n float32) complex64 { return complex(n, 0) } +func Complex64FromFloat64(n float64) complex64 { return complex(float32(n), 0) } +func Complex64FromComplex64(n complex64) complex64 { return n } +func Complex64FromComplex128(n complex128) complex64 { return complex64(n) } +func Complex64FromUintptr(n uintptr) complex64 { return complex(float32(n), 0) } +func Complex128FromInt8(n int8) complex128 { return complex(float64(n), 0) } +func Complex128FromInt16(n int16) complex128 { return complex(float64(n), 0) } +func Complex128FromInt32(n int32) complex128 { return complex(float64(n), 0) } +func Complex128FromInt64(n int64) complex128 { return complex(float64(n), 0) } +func Complex128FromUint8(n uint8) complex128 { return complex(float64(n), 0) } +func Complex128FromUint16(n uint16) complex128 { return complex(float64(n), 0) } +func Complex128FromUint32(n uint32) complex128 { return complex(float64(n), 0) } +func Complex128FromUint64(n uint64) complex128 { return complex(float64(n), 0) } +func Complex128FromFloat32(n float32) complex128 { return complex(float64(n), 0) } +func Complex128FromFloat64(n float64) complex128 { return complex(n, 0) } +func Complex128FromComplex64(n complex64) complex128 { return complex128(n) } +func Complex128FromComplex128(n complex128) complex128 { return n } +func Complex128FromUintptr(n uintptr) complex128 { return complex(float64(n), 0) } +func UintptrFromInt8(n int8) uintptr { return uintptr(n) } +func UintptrFromInt16(n int16) uintptr { return uintptr(n) } +func UintptrFromInt32(n int32) uintptr { return uintptr(n) } +func UintptrFromInt64(n int64) uintptr { return uintptr(n) } +func UintptrFromUint8(n uint8) uintptr { return uintptr(n) } +func UintptrFromUint16(n uint16) uintptr { return uintptr(n) } +func UintptrFromUint32(n uint32) uintptr { return uintptr(n) } +func UintptrFromUint64(n uint64) uintptr { return uintptr(n) } +func UintptrFromFloat32(n float32) uintptr { return uintptr(n) } +func UintptrFromFloat64(n float64) uintptr { return uintptr(n) } +func UintptrFromComplex64(n complex64) uintptr { return uintptr(real(n)) } +func UintptrFromComplex128(n complex128) uintptr { return uintptr(real(n)) } +func UintptrFromUintptr(n uintptr) uintptr { return n } + +func Int8(n int8) int8 { return n } +func Int16(n int16) int16 { return n } +func Int32(n int32) int32 { return n } +func Int64(n int64) int64 { return n } +func Uint8(n uint8) uint8 { return n } +func Uint16(n uint16) uint16 { return n } +func Uint32(n uint32) uint32 { return n } +func Uint64(n uint64) uint64 { return n } +func Float32(n float32) float32 { return n } +func Float64(n float64) float64 { return n } +func Complex64(n complex64) complex64 { return n } +func Complex128(n complex128) complex128 { return n } +func Uintptr(n uintptr) uintptr { return n } + +func NegInt8(n int8) int8 { return -n } +func NegInt16(n int16) int16 { return -n } +func NegInt32(n int32) int32 { return -n } +func NegInt64(n int64) int64 { return -n } +func NegUint8(n uint8) uint8 { return -n } +func NegUint16(n uint16) uint16 { return -n } +func NegUint32(n uint32) uint32 { return -n } +func NegUint64(n uint64) uint64 { return -n } +func NegUintptr(n uintptr) uintptr { return -n } + +func CplInt8(n int8) int8 { return ^n } +func CplInt16(n int16) int16 { return ^n } +func CplInt32(n int32) int32 { return ^n } +func CplInt64(n int64) int64 { return ^n } +func CplUint8(n uint8) uint8 { return ^n } +func CplUint16(n uint16) uint16 { return ^n } +func CplUint32(n uint32) uint32 { return ^n } +func CplUint64(n uint64) uint64 { return ^n } +func CplUintptr(n uintptr) uintptr { return ^n } + +func BoolInt8(b bool) int8 { + if b { + return 1 + } + return 0 +} + +func BoolInt16(b bool) int16 { + if b { + return 1 + } + return 0 +} + +func BoolInt32(b bool) int32 { + if b { + return 1 + } + return 0 +} + +func BoolInt64(b bool) int64 { + if b { + return 1 + } + return 0 +} + +func BoolUint8(b bool) uint8 { + if b { + return 1 + } + return 0 +} + +func BoolUint16(b bool) uint16 { + if b { + return 1 + } + return 0 +} + +func BoolUint32(b bool) uint32 { + if b { + return 1 + } + return 0 +} + +func BoolUint64(b bool) uint64 { + if b { + return 1 + } + return 0 +} + +func BoolUintptr(b bool) uintptr { + if b { + return 1 + } + return 0 +} + +func SetBitFieldPtr8Int8(p uintptr, v int8, off int, mask uint8) { + *(*uint8)(unsafe.Pointer(p)) = *(*uint8)(unsafe.Pointer(p))&^mask | uint8(v)<> s +} + +func AssignBitFieldPtr8Int16(p uintptr, v int16, w, off int, mask uint8) int16 { + *(*uint8)(unsafe.Pointer(p)) = *(*uint8)(unsafe.Pointer(p))&^mask | uint8(v)<> s +} + +func AssignBitFieldPtr8Int32(p uintptr, v int32, w, off int, mask uint8) int32 { + *(*uint8)(unsafe.Pointer(p)) = *(*uint8)(unsafe.Pointer(p))&^mask | uint8(v)<> s +} + +func AssignBitFieldPtr8Int64(p uintptr, v int64, w, off int, mask uint8) int64 { + *(*uint8)(unsafe.Pointer(p)) = *(*uint8)(unsafe.Pointer(p))&^mask | uint8(v)<> s +} + +func AssignBitFieldPtr16Int8(p uintptr, v int8, w, off int, mask uint16) int8 { + *(*uint16)(unsafe.Pointer(p)) = *(*uint16)(unsafe.Pointer(p))&^mask | uint16(v)<> s +} + +func AssignBitFieldPtr16Int16(p uintptr, v int16, w, off int, mask uint16) int16 { + *(*uint16)(unsafe.Pointer(p)) = *(*uint16)(unsafe.Pointer(p))&^mask | uint16(v)<> s +} + +func AssignBitFieldPtr16Int32(p uintptr, v int32, w, off int, mask uint16) int32 { + *(*uint16)(unsafe.Pointer(p)) = *(*uint16)(unsafe.Pointer(p))&^mask | uint16(v)<> s +} + +func AssignBitFieldPtr16Int64(p uintptr, v int64, w, off int, mask uint16) int64 { + *(*uint16)(unsafe.Pointer(p)) = *(*uint16)(unsafe.Pointer(p))&^mask | uint16(v)<> s +} + +func AssignBitFieldPtr32Int8(p uintptr, v int8, w, off int, mask uint32) int8 { + *(*uint32)(unsafe.Pointer(p)) = *(*uint32)(unsafe.Pointer(p))&^mask | uint32(v)<> s +} + +func AssignBitFieldPtr32Int16(p uintptr, v int16, w, off int, mask uint32) int16 { + *(*uint32)(unsafe.Pointer(p)) = *(*uint32)(unsafe.Pointer(p))&^mask | uint32(v)<> s +} + +func AssignBitFieldPtr32Int32(p uintptr, v int32, w, off int, mask uint32) int32 { + *(*uint32)(unsafe.Pointer(p)) = *(*uint32)(unsafe.Pointer(p))&^mask | uint32(v)<> s +} + +func AssignBitFieldPtr32Int64(p uintptr, v int64, w, off int, mask uint32) int64 { + *(*uint32)(unsafe.Pointer(p)) = *(*uint32)(unsafe.Pointer(p))&^mask | uint32(v)<> s +} + +func AssignBitFieldPtr64Int8(p uintptr, v int8, w, off int, mask uint64) int8 { + *(*uint64)(unsafe.Pointer(p)) = *(*uint64)(unsafe.Pointer(p))&^mask | uint64(v)<> s +} + +func AssignBitFieldPtr64Int16(p uintptr, v int16, w, off int, mask uint64) int16 { + *(*uint64)(unsafe.Pointer(p)) = *(*uint64)(unsafe.Pointer(p))&^mask | uint64(v)<> s +} + +func AssignBitFieldPtr64Int32(p uintptr, v int32, w, off int, mask uint64) int32 { + *(*uint64)(unsafe.Pointer(p)) = *(*uint64)(unsafe.Pointer(p))&^mask | uint64(v)<> s +} + +func AssignBitFieldPtr64Int64(p uintptr, v int64, w, off int, mask uint64) int64 { + *(*uint64)(unsafe.Pointer(p)) = *(*uint64)(unsafe.Pointer(p))&^mask | uint64(v)<> s +} + +func AssignBitFieldPtr8Uint8(p uintptr, v uint8, w, off int, mask uint8) uint8 { + *(*uint8)(unsafe.Pointer(p)) = *(*uint8)(unsafe.Pointer(p))&^mask | v<> off) +} + +func AssignBitFieldPtr8Uint16(p uintptr, v uint16, w, off int, mask uint8) uint16 { + *(*uint8)(unsafe.Pointer(p)) = *(*uint8)(unsafe.Pointer(p))&^mask | uint8(v)<>off) +} + +func AssignBitFieldPtr8Uint32(p uintptr, v uint32, w, off int, mask uint8) uint32 { + *(*uint8)(unsafe.Pointer(p)) = *(*uint8)(unsafe.Pointer(p))&^mask | uint8(v)<>off) +} + +func AssignBitFieldPtr8Uint64(p uintptr, v uint64, w, off int, mask uint8) uint64 { + *(*uint8)(unsafe.Pointer(p)) = *(*uint8)(unsafe.Pointer(p))&^mask | uint8(v)<>off) +} + +func AssignBitFieldPtr16Uint8(p uintptr, v uint8, w, off int, mask uint16) uint8 { + *(*uint16)(unsafe.Pointer(p)) = *(*uint16)(unsafe.Pointer(p))&^mask | uint16(v)<>off) +} + +func AssignBitFieldPtr16Uint16(p uintptr, v uint16, w, off int, mask uint16) uint16 { + *(*uint16)(unsafe.Pointer(p)) = *(*uint16)(unsafe.Pointer(p))&^mask | v<> off) +} + +func AssignBitFieldPtr16Uint32(p uintptr, v uint32, w, off int, mask uint16) uint32 { + *(*uint16)(unsafe.Pointer(p)) = *(*uint16)(unsafe.Pointer(p))&^mask | uint16(v)<>off) +} + +func AssignBitFieldPtr16Uint64(p uintptr, v uint64, w, off int, mask uint16) uint64 { + *(*uint16)(unsafe.Pointer(p)) = *(*uint16)(unsafe.Pointer(p))&^mask | uint16(v)<>off) +} + +func AssignBitFieldPtr32Uint8(p uintptr, v uint8, w, off int, mask uint32) uint8 { + *(*uint32)(unsafe.Pointer(p)) = *(*uint32)(unsafe.Pointer(p))&^mask | uint32(v)<>off) +} + +func AssignBitFieldPtr32Uint16(p uintptr, v uint16, w, off int, mask uint32) uint16 { + *(*uint32)(unsafe.Pointer(p)) = *(*uint32)(unsafe.Pointer(p))&^mask | uint32(v)<>off) +} + +func AssignBitFieldPtr32Uint32(p uintptr, v uint32, w, off int, mask uint32) uint32 { + *(*uint32)(unsafe.Pointer(p)) = *(*uint32)(unsafe.Pointer(p))&^mask | v<> off) +} + +func AssignBitFieldPtr32Uint64(p uintptr, v uint64, w, off int, mask uint32) uint64 { + *(*uint32)(unsafe.Pointer(p)) = *(*uint32)(unsafe.Pointer(p))&^mask | uint32(v)<>off) +} + +func AssignBitFieldPtr64Uint8(p uintptr, v uint8, w, off int, mask uint64) uint8 { + *(*uint64)(unsafe.Pointer(p)) = *(*uint64)(unsafe.Pointer(p))&^mask | uint64(v)<>off) +} + +func AssignBitFieldPtr64Uint16(p uintptr, v uint16, w, off int, mask uint64) uint16 { + *(*uint64)(unsafe.Pointer(p)) = *(*uint64)(unsafe.Pointer(p))&^mask | uint64(v)<>off) +} + +func AssignBitFieldPtr64Uint32(p uintptr, v uint32, w, off int, mask uint64) uint32 { + *(*uint64)(unsafe.Pointer(p)) = *(*uint64)(unsafe.Pointer(p))&^mask | uint64(v)<>off) +} + +func AssignBitFieldPtr64Uint64(p uintptr, v uint64, w, off int, mask uint64) uint64 { + *(*uint64)(unsafe.Pointer(p)) = *(*uint64)(unsafe.Pointer(p))&^mask | v<> off) +} + +func PostDecBitFieldPtr8Int8(p uintptr, d int8, w, off int, mask uint8) (r int8) { + x0 := *(*uint8)(unsafe.Pointer(p)) + s := 8 - w - off + r = int8(x0) & int8(mask) << s >> (s + off) + *(*uint8)(unsafe.Pointer(p)) = x0&^mask | uint8(r-d)<> (s + off) + *(*uint8)(unsafe.Pointer(p)) = x0&^mask | uint8(r-d)<> (s + off) + *(*uint8)(unsafe.Pointer(p)) = x0&^mask | uint8(r-d)<> (s + off) + *(*uint8)(unsafe.Pointer(p)) = x0&^mask | uint8(r-d)<> (s + off) + *(*uint16)(unsafe.Pointer(p)) = x0&^mask | uint16(r-d)<> (s + off) + *(*uint16)(unsafe.Pointer(p)) = x0&^mask | uint16(r-d)<> (s + off) + *(*uint16)(unsafe.Pointer(p)) = x0&^mask | uint16(r-d)<> (s + off) + *(*uint16)(unsafe.Pointer(p)) = x0&^mask | uint16(r-d)<> (s + off) + *(*uint32)(unsafe.Pointer(p)) = x0&^mask | uint32(r-d)<> (s + off) + *(*uint32)(unsafe.Pointer(p)) = x0&^mask | uint32(r-d)<> (s + off) + *(*uint32)(unsafe.Pointer(p)) = x0&^mask | uint32(r-d)<> (s + off) + *(*uint32)(unsafe.Pointer(p)) = x0&^mask | uint32(r-d)<> (s + off) + *(*uint64)(unsafe.Pointer(p)) = x0&^mask | uint64(r-d)<> (s + off) + *(*uint64)(unsafe.Pointer(p)) = x0&^mask | uint64(r-d)<> (s + off) + *(*uint64)(unsafe.Pointer(p)) = x0&^mask | uint64(r-d)<> (s + off) + *(*uint64)(unsafe.Pointer(p)) = x0&^mask | uint64(r-d)<> off + *(*uint8)(unsafe.Pointer(p)) = x0&^mask | (r-d)<> off + *(*uint8)(unsafe.Pointer(p)) = x0&^mask | uint8(r-d)<> off + *(*uint8)(unsafe.Pointer(p)) = x0&^mask | uint8(r-d)<> off + *(*uint8)(unsafe.Pointer(p)) = x0&^mask | uint8(r-d)<> off + *(*uint16)(unsafe.Pointer(p)) = x0&^mask | uint16(r-d)<> off + *(*uint16)(unsafe.Pointer(p)) = x0&^mask | (r-d)<> off + *(*uint16)(unsafe.Pointer(p)) = x0&^mask | uint16(r-d)<> off + *(*uint16)(unsafe.Pointer(p)) = x0&^mask | uint16(r-d)<> off + *(*uint32)(unsafe.Pointer(p)) = x0&^mask | uint32(r-d)<> off + *(*uint32)(unsafe.Pointer(p)) = x0&^mask | uint32(r-d)<> off + *(*uint32)(unsafe.Pointer(p)) = x0&^mask | (r-d)<> off + *(*uint32)(unsafe.Pointer(p)) = x0&^mask | uint32(r-d)<> off + *(*uint64)(unsafe.Pointer(p)) = x0&^mask | uint64(r-d)<> off + *(*uint64)(unsafe.Pointer(p)) = x0&^mask | uint64(r-d)<> off + *(*uint64)(unsafe.Pointer(p)) = x0&^mask | uint64(r-d)<> off + *(*uint64)(unsafe.Pointer(p)) = x0&^mask | (r-d)<> (s + off) + *(*uint8)(unsafe.Pointer(p)) = x0&^mask | uint8(r+d)<> (s + off) + *(*uint8)(unsafe.Pointer(p)) = x0&^mask | uint8(r+d)<> (s + off) + *(*uint8)(unsafe.Pointer(p)) = x0&^mask | uint8(r+d)<> (s + off) + *(*uint8)(unsafe.Pointer(p)) = x0&^mask | uint8(r+d)<> (s + off) + *(*uint16)(unsafe.Pointer(p)) = x0&^mask | uint16(r+d)<> (s + off) + *(*uint16)(unsafe.Pointer(p)) = x0&^mask | uint16(r+d)<> (s + off) + *(*uint16)(unsafe.Pointer(p)) = x0&^mask | uint16(r+d)<> (s + off) + *(*uint16)(unsafe.Pointer(p)) = x0&^mask | uint16(r+d)<> (s + off) + *(*uint32)(unsafe.Pointer(p)) = x0&^mask | uint32(r+d)<> (s + off) + *(*uint32)(unsafe.Pointer(p)) = x0&^mask | uint32(r+d)<> (s + off) + *(*uint32)(unsafe.Pointer(p)) = x0&^mask | uint32(r+d)<> (s + off) + *(*uint32)(unsafe.Pointer(p)) = x0&^mask | uint32(r+d)<> (s + off) + *(*uint64)(unsafe.Pointer(p)) = x0&^mask | uint64(r+d)<> (s + off) + *(*uint64)(unsafe.Pointer(p)) = x0&^mask | uint64(r+d)<> (s + off) + *(*uint64)(unsafe.Pointer(p)) = x0&^mask | uint64(r+d)<> (s + off) + *(*uint64)(unsafe.Pointer(p)) = x0&^mask | uint64(r+d)<> off + *(*uint8)(unsafe.Pointer(p)) = x0&^mask | (r+d)<> off + *(*uint8)(unsafe.Pointer(p)) = x0&^mask | uint8(r+d)<> off + *(*uint8)(unsafe.Pointer(p)) = x0&^mask | uint8(r+d)<> off + *(*uint8)(unsafe.Pointer(p)) = x0&^mask | uint8(r+d)<> off + *(*uint16)(unsafe.Pointer(p)) = x0&^mask | uint16(r+d)<> off + *(*uint16)(unsafe.Pointer(p)) = x0&^mask | (r+d)<> off + *(*uint16)(unsafe.Pointer(p)) = x0&^mask | uint16(r+d)<> off + *(*uint16)(unsafe.Pointer(p)) = x0&^mask | uint16(r+d)<> off + *(*uint32)(unsafe.Pointer(p)) = x0&^mask | uint32(r+d)<> off + *(*uint32)(unsafe.Pointer(p)) = x0&^mask | uint32(r+d)<> off + *(*uint32)(unsafe.Pointer(p)) = x0&^mask | (r+d)<> off + *(*uint32)(unsafe.Pointer(p)) = x0&^mask | uint32(r+d)<> off + *(*uint64)(unsafe.Pointer(p)) = x0&^mask | uint64(r+d)<> off + *(*uint64)(unsafe.Pointer(p)) = x0&^mask | uint64(r+d)<> off + *(*uint64)(unsafe.Pointer(p)) = x0&^mask | uint64(r+d)<> off + *(*uint64)(unsafe.Pointer(p)) = x0&^mask | (r+d)<= 3 && re[1] == '-': + for c := re[0]; c <= re[2]; c++ { + set[c] = struct{}{} + } + re = re[3:] + default: + set[c] = struct{}{} + re = re[1:] + } + } + var arg uintptr + if !discard { + arg = VaUintptr(args) + } + for ; width != 0; width-- { + c, err := r.ReadByte() + if err != nil { + if err == io.EOF { + return format, nvalues, match + } + + return format, -1, match + } + + if _, ok := set[c]; ok == !neg { + match = true + nvalues = 1 + if !discard { + *(*byte)(unsafe.Pointer(arg)) = c + arg++ + } + } + } + if match { + switch { + case width == 0: + r.UnreadByte() + fallthrough + default: + if !discard { + *(*byte)(unsafe.Pointer(arg)) = 0 + } + } + } case 'p': // Matches a pointer value (as printed by %p in printf(3); the next pointer // must be a pointer to a pointer to void. @@ -344,21 +497,17 @@ flags: skipReaderWhiteSpace(r) c, err := r.ReadByte() if err != nil { - panic(todo("")) - } - - if c != '0' { - r.UnreadByte() - panic(todo("")) + panic(todo("", err)) } - if c, err = r.ReadByte(); err != nil { - panic(todo("")) - } + if c == '0' { + if c, err = r.ReadByte(); err != nil { + panic(todo("", err)) + } - if c != 'x' && c != 'X' { - r.UnreadByte() - panic(todo("")) + if c != 'x' && c != 'X' { + r.UnreadByte() + } } var digit, n uint64 @@ -395,8 +544,10 @@ flags: break } - arg := VaUintptr(args) - *(*uintptr)(unsafe.Pointer(arg)) = uintptr(n) + if !discard { + arg := VaUintptr(args) + *(*uintptr)(unsafe.Pointer(arg)) = uintptr(n) + } nvalues = 1 case 'n': // Nothing is expected; instead, the number of characters consumed thus far @@ -414,7 +565,7 @@ flags: return format, nvalues, match } -func skipReaderWhiteSpace(r *strings.Reader) error { +func skipReaderWhiteSpace(r io.ByteScanner) error { for { c, err := r.ReadByte() if err != nil { @@ -441,3 +592,157 @@ func skipWhiteSpace(s uintptr) uintptr { } } } + +// [-+]?([0-9]*[.])?[0-9]+([eE][-+]?\d+)? +func fpLiteral(rd io.ByteScanner) (seq []byte) { + const endOfText = 0x110000 + var pos, width, length int + + defer func() { + if len(seq) > length { + rd.UnreadByte() + seq = seq[:len(seq)-1] + } + }() + + var r rune + step := func(pos int) (rune, int) { + b, err := rd.ReadByte() + if err != nil { + return endOfText, 0 + } + + seq = append(seq, b) + return rune(b), 1 + } + move := func() { + pos += width + if r != endOfText { + r, width = step(pos + width) + } + } + accept := func(x rune) bool { + if r == x { + move() + return true + } + return false + } + accept2 := func(x rune) bool { + if r <= x { + move() + return true + } + return false + } + r = endOfText + width = 0 + r, width = step(pos) + if accept('.') { + goto l7 + } + if accept('+') { + goto l30 + } + if accept('-') { + goto l30 + } + if r < '0' { + goto l4out + } + if accept2('9') { + goto l35 + } +l4out: + return seq +l7: + if r < '0' { + goto l7out + } + if accept2('9') { + goto l10 + } +l7out: + return seq +l10: + length = pos + if accept('E') { + goto l18 + } + if accept('e') { + goto l18 + } + if r < '0' { + goto l15out + } + if accept2('9') { + goto l10 + } +l15out: + return seq +l18: + if accept('+') { + goto l23 + } + if accept('-') { + goto l23 + } + if r < '0' { + goto l20out + } + if accept2('9') { + goto l26 + } +l20out: + return seq +l23: + if r < '0' { + goto l23out + } + if accept2('9') { + goto l26 + } +l23out: + return seq +l26: + length = pos + if r < '0' { + goto l27out + } + if accept2('9') { + goto l26 + } +l27out: + return seq +l30: + if accept('.') { + goto l7 + } + if r < '0' { + goto l32out + } + if accept2('9') { + goto l35 + } +l32out: + return seq +l35: + length = pos + if accept('.') { + goto l7 + } + if accept('E') { + goto l18 + } + if accept('e') { + goto l18 + } + if r < '0' { + goto l42out + } + if accept2('9') { + goto l35 + } +l42out: + return seq +} diff --git a/vendor/modernc.org/libc/signal/capi_illumos_amd64.go b/vendor/modernc.org/libc/signal/capi_illumos_amd64.go new file mode 100644 index 000000000..4a5c0b123 --- /dev/null +++ b/vendor/modernc.org/libc/signal/capi_illumos_amd64.go @@ -0,0 +1,5 @@ +// Code generated by 'ccgo signal/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o signal/signal_illumos_amd64.go -pkgname signal', DO NOT EDIT. + +package signal + +var CAPI = map[string]struct{}{} diff --git a/vendor/modernc.org/libc/signal/capi_linux_loong64.go b/vendor/modernc.org/libc/signal/capi_linux_loong64.go new file mode 100644 index 000000000..fdb9d9a5d --- /dev/null +++ b/vendor/modernc.org/libc/signal/capi_linux_loong64.go @@ -0,0 +1,5 @@ +// Code generated by 'ccgo signal/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o signal/signal_linux_loong64.go -pkgname signal', DO NOT EDIT. + +package signal + +var CAPI = map[string]struct{}{} diff --git a/vendor/modernc.org/libc/signal/capi_linux_mips64le.go b/vendor/modernc.org/libc/signal/capi_linux_mips64le.go new file mode 100644 index 000000000..20eeb2da0 --- /dev/null +++ b/vendor/modernc.org/libc/signal/capi_linux_mips64le.go @@ -0,0 +1,5 @@ +// Code generated by 'ccgo signal/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o signal/signal_linux_amd64.go -pkgname signal', DO NOT EDIT. + +package signal + +var CAPI = map[string]struct{}{} diff --git a/vendor/modernc.org/libc/signal/more_illumos_amd64.go b/vendor/modernc.org/libc/signal/more_illumos_amd64.go new file mode 100644 index 000000000..25cc318bf --- /dev/null +++ b/vendor/modernc.org/libc/signal/more_illumos_amd64.go @@ -0,0 +1,12 @@ +// Copyright 2020 The Libc Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package signal + +const ( + // /usr/include/asm-generic/signal-defs.h:24:#define SIG_DFL ((__sighandler_t)0) /* default signal handling */ + SIG_DFL = 0 + // /usr/include/asm-generic/signal-defs.h:25:#define SIG_IGN ((__sighandler_t)1) /* ignore signal */ + SIG_IGN = 1 +) diff --git a/vendor/modernc.org/libc/signal/more_linux_loong64.go b/vendor/modernc.org/libc/signal/more_linux_loong64.go new file mode 100644 index 000000000..25cc318bf --- /dev/null +++ b/vendor/modernc.org/libc/signal/more_linux_loong64.go @@ -0,0 +1,12 @@ +// Copyright 2020 The Libc Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package signal + +const ( + // /usr/include/asm-generic/signal-defs.h:24:#define SIG_DFL ((__sighandler_t)0) /* default signal handling */ + SIG_DFL = 0 + // /usr/include/asm-generic/signal-defs.h:25:#define SIG_IGN ((__sighandler_t)1) /* ignore signal */ + SIG_IGN = 1 +) diff --git a/vendor/modernc.org/libc/signal/more_linux_mips64le.go b/vendor/modernc.org/libc/signal/more_linux_mips64le.go new file mode 100644 index 000000000..25cc318bf --- /dev/null +++ b/vendor/modernc.org/libc/signal/more_linux_mips64le.go @@ -0,0 +1,12 @@ +// Copyright 2020 The Libc Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package signal + +const ( + // /usr/include/asm-generic/signal-defs.h:24:#define SIG_DFL ((__sighandler_t)0) /* default signal handling */ + SIG_DFL = 0 + // /usr/include/asm-generic/signal-defs.h:25:#define SIG_IGN ((__sighandler_t)1) /* ignore signal */ + SIG_IGN = 1 +) diff --git a/vendor/modernc.org/libc/signal/signal_illumos_amd64.go b/vendor/modernc.org/libc/signal/signal_illumos_amd64.go new file mode 100644 index 000000000..940a4b348 --- /dev/null +++ b/vendor/modernc.org/libc/signal/signal_illumos_amd64.go @@ -0,0 +1,4146 @@ +// Code generated by 'ccgo signal/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o signal/signal_illumos_amd64.go -pkgname signal', DO NOT EDIT. + +package signal + +import ( + "math" + "reflect" + "sync/atomic" + "unsafe" +) + +var _ = math.Pi +var _ reflect.Kind +var _ atomic.Value +var _ unsafe.Pointer + +const ( + BUS_ADRALN = 1 // machsig.h:109:1: + BUS_ADRERR = 2 // machsig.h:110:1: + BUS_OBJERR = 3 // machsig.h:112:1: + CLD_CONTINUED = 6 // siginfo.h:169:1: + CLD_DUMPED = 3 // siginfo.h:166:1: + CLD_EXITED = 1 // siginfo.h:164:1: + CLD_KILLED = 2 // siginfo.h:165:1: + CLD_STOPPED = 5 // siginfo.h:168:1: + CLD_TRAPPED = 4 // siginfo.h:167:1: + CLOCKS_PER_SEC = 1000000 // time_iso.h:78:1: + CLOCK_HIGHRES = 4 // time_impl.h:126:1: + CLOCK_MONOTONIC = 4 // time_impl.h:124:1: + CLOCK_PROCESS_CPUTIME_ID = 5 // time_impl.h:125:1: + CLOCK_PROF = 2 // time_impl.h:127:1: + CLOCK_REALTIME = 3 // time_impl.h:123:1: + CLOCK_THREAD_CPUTIME_ID = 2 // time_impl.h:122:1: + CLOCK_VIRTUAL = 1 // time_impl.h:121:1: + DST_AUST = 2 // time.h:115:1: + DST_AUSTALT = 10 // time.h:123:1: + DST_CAN = 6 // time.h:119:1: + DST_EET = 5 // time.h:118:1: + DST_GB = 7 // time.h:120:1: + DST_MET = 4 // time.h:117:1: + DST_NONE = 0 // time.h:113:1: + DST_RUM = 8 // time.h:121:1: + DST_TUR = 9 // time.h:122:1: + DST_USA = 1 // time.h:114:1: + DST_WET = 3 // time.h:116:1: + EMT_CPCOVF = 1 // machsig.h:74:1: + FC_ALIGN = 0x2 // faultcode.h:54:1: + FC_HWERR = 0x1 // faultcode.h:53:1: + FC_NOMAP = 0x5 // faultcode.h:57:1: + FC_NOSUPPORT = 0x6 // faultcode.h:58:1: + FC_OBJERR = 0x3 // faultcode.h:55:1: + FC_PROT = 0x4 // faultcode.h:56:1: + FD_SETSIZE = 65536 // select.h:88:1: + FPE_FLTDEN = 9 // machsig.h:90:1: + FPE_FLTDIV = 3 // machsig.h:84:1: + FPE_FLTINV = 7 // machsig.h:88:1: + FPE_FLTOVF = 4 // machsig.h:85:1: + FPE_FLTRES = 6 // machsig.h:87:1: + FPE_FLTSUB = 8 // machsig.h:89:1: + FPE_FLTUND = 5 // machsig.h:86:1: + FPE_INTDIV = 1 // machsig.h:82:1: + FPE_INTOVF = 2 // machsig.h:83:1: + ILL_BADSTK = 8 // machsig.h:64:1: + ILL_COPROC = 7 // machsig.h:63:1: + ILL_ILLADR = 3 // machsig.h:59:1: + ILL_ILLOPC = 1 // machsig.h:57:1: + ILL_ILLOPN = 2 // machsig.h:58:1: + ILL_ILLTRP = 4 // machsig.h:60:1: + ILL_PRVOPC = 5 // machsig.h:61:1: + ILL_PRVREG = 6 // machsig.h:62:1: + ITIMER_PROF = 2 // time.h:201:1: + ITIMER_REAL = 0 // time.h:199:1: + ITIMER_REALPROF = 3 // time.h:204:1: + ITIMER_VIRTUAL = 1 // time.h:200:1: + MAXSIG = 74 // signal.h:163:1: + MICROSEC = 1000000 // time.h:246:1: + MILLISEC = 1000 // time.h:245:1: + MINSIGSTKSZ = 2048 // signal.h:166:1: + NANOSEC = 1000000000 // time.h:247:1: + NBBY = 8 // select.h:103:1: + NSIG = 75 // signal.h:162:1: + NSIGBUS = 3 // machsig.h:115:1: + NSIGCLD = 6 // siginfo.h:172:1: + NSIGEMT = 1 // machsig.h:75:1: + NSIGFPE = 9 // machsig.h:92:1: + NSIGILL = 8 // machsig.h:66:1: + NSIGPOLL = 6 // siginfo.h:187:1: + NSIGPROF = 1 // siginfo.h:198:1: + NSIGSEGV = 2 // machsig.h:102:1: + NSIGTRAP = 6 // siginfo.h:157:1: + POLL_ERR = 4 // siginfo.h:182:1: + POLL_HUP = 6 // siginfo.h:184:1: + POLL_IN = 1 // siginfo.h:179:1: + POLL_MSG = 3 // siginfo.h:181:1: + POLL_OUT = 2 // siginfo.h:180:1: + POLL_PRI = 5 // siginfo.h:183:1: + PROF_SIG = 1 // siginfo.h:197:1: + P_INITPGID = 0 // procset.h:50:1: + P_INITPID = 1 // procset.h:48:1: + P_INITUID = 0 // procset.h:49:1: + P_MYID = -1 // types.h:632:1: + REG_LABEL_BP = 2 // machtypes.h:44:1: + REG_LABEL_MAX = 8 // machtypes.h:51:1: + REG_LABEL_PC = 0 // machtypes.h:42:1: + REG_LABEL_R12 = 4 // machtypes.h:47:1: + REG_LABEL_R13 = 5 // machtypes.h:48:1: + REG_LABEL_R14 = 6 // machtypes.h:49:1: + REG_LABEL_R15 = 7 // machtypes.h:50:1: + REG_LABEL_RBX = 3 // machtypes.h:46:1: + REG_LABEL_SP = 1 // machtypes.h:43:1: + SA_NOCLDSTOP = 0x00020000 // signal.h:128:1: + SA_NOCLDWAIT = 0x00010000 // signal.h:155:1: + SA_NODEFER = 0x00000010 // signal.h:152:1: + SA_ONSTACK = 0x00000001 // signal.h:138:1: + SA_RESETHAND = 0x00000002 // signal.h:139:1: + SA_RESTART = 0x00000004 // signal.h:140:1: + SA_SIGINFO = 0x00000008 // signal.h:146:1: + SEC = 1 // time.h:244:1: + SEGV_ACCERR = 2 // machsig.h:100:1: + SEGV_MAPERR = 1 // machsig.h:99:1: + SIG2STR_MAX = 32 // signal.h:95:1: + SIGABRT = 6 // signal_iso.h:58:1: + SIGALRM = 14 // signal_iso.h:66:1: + SIGBUS = 10 // signal_iso.h:62:1: + SIGCANCEL = 36 // signal_iso.h:90:1: + SIGCHLD = 18 // signal_iso.h:71:1: + SIGCLD = 18 // signal_iso.h:70:1: + SIGCONT = 25 // signal_iso.h:79:1: + SIGEMT = 7 // signal_iso.h:59:1: + SIGEV_NONE = 1 // siginfo.h:95:1: + SIGEV_PORT = 4 // siginfo.h:98:1: + SIGEV_SIGNAL = 2 // siginfo.h:96:1: + SIGEV_THREAD = 3 // siginfo.h:97:1: + SIGFPE = 8 // signal_iso.h:60:1: + SIGFREEZE = 34 // signal_iso.h:88:1: + SIGHUP = 1 // signal_iso.h:52:1: + SIGILL = 4 // signal_iso.h:55:1: + SIGINFO = 41 // signal_iso.h:95:1: + SIGINT = 2 // signal_iso.h:53:1: + SIGIO = 22 // signal_iso.h:76:1: + SIGIOT = 6 // signal_iso.h:57:1: + SIGJVM1 = 39 // signal_iso.h:93:1: + SIGJVM2 = 40 // signal_iso.h:94:1: + SIGKILL = 9 // signal_iso.h:61:1: + SIGLOST = 37 // signal_iso.h:91:1: + SIGLWP = 33 // signal_iso.h:87:1: + SIGPIPE = 13 // signal_iso.h:65:1: + SIGPOLL = 22 // signal_iso.h:75:1: + SIGPROF = 29 // signal_iso.h:83:1: + SIGPWR = 19 // signal_iso.h:72:1: + SIGQUIT = 3 // signal_iso.h:54:1: + SIGSEGV = 11 // signal_iso.h:63:1: + SIGSTKSZ = 8192 // signal.h:167:1: + SIGSTOP = 23 // signal_iso.h:77:1: + SIGSYS = 12 // signal_iso.h:64:1: + SIGTERM = 15 // signal_iso.h:67:1: + SIGTHAW = 35 // signal_iso.h:89:1: + SIGTRAP = 5 // signal_iso.h:56:1: + SIGTSTP = 24 // signal_iso.h:78:1: + SIGTTIN = 26 // signal_iso.h:80:1: + SIGTTOU = 27 // signal_iso.h:81:1: + SIGURG = 21 // signal_iso.h:74:1: + SIGUSR1 = 16 // signal_iso.h:68:1: + SIGUSR2 = 17 // signal_iso.h:69:1: + SIGVTALRM = 28 // signal_iso.h:82:1: + SIGWAITING = 32 // signal_iso.h:86:1: + SIGWINCH = 20 // signal_iso.h:73:1: + SIGXCPU = 30 // signal_iso.h:84:1: + SIGXFSZ = 31 // signal_iso.h:85:1: + SIGXRES = 38 // signal_iso.h:92:1: + SIG_BLOCK = 1 // signal_iso.h:131:1: + SIG_SETMASK = 3 // signal_iso.h:133:1: + SIG_UNBLOCK = 2 // signal_iso.h:132:1: + SI_ASYNCIO = -4 // siginfo.h:134:1: + SI_DTRACE = 2050 // siginfo.h:128:1: + SI_LWP = -1 // siginfo.h:131:1: + SI_MAXSZ = 256 // siginfo.h:206:1: + SI_MESGQ = -5 // siginfo.h:135:1: + SI_NOINFO = 32767 // siginfo.h:127:1: + SI_QUEUE = -2 // siginfo.h:132:1: + SI_RCTL = 2049 // siginfo.h:129:1: + SI_TIMER = -3 // siginfo.h:133:1: + SI_USER = 0 // siginfo.h:130:1: + SN_CANCEL = 2 // signal.h:226:1: + SN_PROC = 1 // signal.h:225:1: + SN_SEND = 3 // signal.h:227:1: + SS_DISABLE = 0x00000002 // signal.h:170:1: + SS_ONSTACK = 0x00000001 // signal.h:169:1: + TIMER_ABSTIME = 0x1 // time_impl.h:134:1: + TIMER_RELTIME = 0x0 // time_impl.h:133:1: + TIME_UTC = 0x1 // time.h:306:1: + TRAP_BRKPT = 1 // siginfo.h:150:1: + TRAP_DTRACE = 6 // siginfo.h:155:1: + TRAP_RWATCH = 3 // siginfo.h:152:1: + TRAP_TRACE = 2 // siginfo.h:151:1: + TRAP_WWATCH = 4 // siginfo.h:153:1: + TRAP_XWATCH = 5 // siginfo.h:154:1: + X_ACL_ACE_ENABLED = 0x2 // unistd.h:349:1: + X_ACL_ACLENT_ENABLED = 0x1 // unistd.h:348:1: + X_ALIGNMENT_REQUIRED = 1 // isa_defs.h:262:1: + X_BIT_FIELDS_LTOH = 0 // isa_defs.h:245:1: + X_BOOL_ALIGNMENT = 1 // isa_defs.h:248:1: + X_CASE_INSENSITIVE = 0x2 // unistd.h:342:1: + X_CASE_SENSITIVE = 0x1 // unistd.h:341:1: + X_CHAR_ALIGNMENT = 1 // isa_defs.h:249:1: + X_CHAR_IS_SIGNED = 0 // isa_defs.h:247:1: + X_CLOCKID_T = 0 // types.h:568:1: + X_CLOCK_T = 0 // types.h:563:1: + X_COND_MAGIC = 0x4356 // types.h:426:1: + X_CS_LFS64_CFLAGS = 72 // unistd.h:61:1: + X_CS_LFS64_LDFLAGS = 73 // unistd.h:62:1: + X_CS_LFS64_LIBS = 74 // unistd.h:63:1: + X_CS_LFS64_LINTFLAGS = 75 // unistd.h:64:1: + X_CS_LFS_CFLAGS = 68 // unistd.h:56:1: + X_CS_LFS_LDFLAGS = 69 // unistd.h:57:1: + X_CS_LFS_LIBS = 70 // unistd.h:58:1: + X_CS_LFS_LINTFLAGS = 71 // unistd.h:59:1: + X_CS_PATH = 65 // unistd.h:50:1: + X_CS_POSIX_V6_ILP32_OFF32_CFLAGS = 800 // unistd.h:85:1: + X_CS_POSIX_V6_ILP32_OFF32_LDFLAGS = 801 // unistd.h:86:1: + X_CS_POSIX_V6_ILP32_OFF32_LIBS = 802 // unistd.h:87:1: + X_CS_POSIX_V6_ILP32_OFF32_LINTFLAGS = 803 // unistd.h:88:1: + X_CS_POSIX_V6_ILP32_OFFBIG_CFLAGS = 804 // unistd.h:89:1: + X_CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS = 805 // unistd.h:90:1: + X_CS_POSIX_V6_ILP32_OFFBIG_LIBS = 806 // unistd.h:91:1: + X_CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS = 807 // unistd.h:92:1: + X_CS_POSIX_V6_LP64_OFF64_CFLAGS = 808 // unistd.h:93:1: + X_CS_POSIX_V6_LP64_OFF64_LDFLAGS = 809 // unistd.h:94:1: + X_CS_POSIX_V6_LP64_OFF64_LIBS = 810 // unistd.h:95:1: + X_CS_POSIX_V6_LP64_OFF64_LINTFLAGS = 811 // unistd.h:96:1: + X_CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS = 812 // unistd.h:97:1: + X_CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS = 813 // unistd.h:98:1: + X_CS_POSIX_V6_LPBIG_OFFBIG_LIBS = 814 // unistd.h:99:1: + X_CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS = 815 // unistd.h:100:1: + X_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS = 816 // unistd.h:101:1: + X_CS_XBS5_ILP32_OFF32_CFLAGS = 700 // unistd.h:67:1: + X_CS_XBS5_ILP32_OFF32_LDFLAGS = 701 // unistd.h:68:1: + X_CS_XBS5_ILP32_OFF32_LIBS = 702 // unistd.h:69:1: + X_CS_XBS5_ILP32_OFF32_LINTFLAGS = 703 // unistd.h:70:1: + X_CS_XBS5_ILP32_OFFBIG_CFLAGS = 705 // unistd.h:71:1: + X_CS_XBS5_ILP32_OFFBIG_LDFLAGS = 706 // unistd.h:72:1: + X_CS_XBS5_ILP32_OFFBIG_LIBS = 707 // unistd.h:73:1: + X_CS_XBS5_ILP32_OFFBIG_LINTFLAGS = 708 // unistd.h:74:1: + X_CS_XBS5_LP64_OFF64_CFLAGS = 709 // unistd.h:75:1: + X_CS_XBS5_LP64_OFF64_LDFLAGS = 710 // unistd.h:76:1: + X_CS_XBS5_LP64_OFF64_LIBS = 711 // unistd.h:77:1: + X_CS_XBS5_LP64_OFF64_LINTFLAGS = 712 // unistd.h:78:1: + X_CS_XBS5_LPBIG_OFFBIG_CFLAGS = 713 // unistd.h:79:1: + X_CS_XBS5_LPBIG_OFFBIG_LDFLAGS = 714 // unistd.h:80:1: + X_CS_XBS5_LPBIG_OFFBIG_LIBS = 715 // unistd.h:81:1: + X_CS_XBS5_LPBIG_OFFBIG_LINTFLAGS = 716 // unistd.h:82:1: + X_DMA_USES_PHYSADDR = 0 // isa_defs.h:281:1: + X_DONT_USE_1275_GENERIC_NAMES = 0 // isa_defs.h:287:1: + X_DOUBLE_ALIGNMENT = 8 // isa_defs.h:256:1: + X_DOUBLE_COMPLEX_ALIGNMENT = 8 // isa_defs.h:257:1: + X_DTRACE_VERSION = 1 // feature_tests.h:490:1: + X_FILE_OFFSET_BITS = 64 // :25:1: + X_FIRMWARE_NEEDS_FDISK = 0 // isa_defs.h:282:1: + X_FLOAT_ALIGNMENT = 4 // isa_defs.h:252:1: + X_FLOAT_COMPLEX_ALIGNMENT = 4 // isa_defs.h:253:1: + X_HAVE_CPUID_INSN = 0 // isa_defs.h:288:1: + X_IEEE_754 = 0 // isa_defs.h:246:1: + X_INT64_TYPE = 0 // int_types.h:82:1: + X_INT_ALIGNMENT = 4 // isa_defs.h:251:1: + X_ISO_CPP_14882_1998 = 0 // feature_tests.h:466:1: + X_ISO_C_9899_1999 = 0 // feature_tests.h:472:1: + X_ISO_C_9899_2011 = 0 // feature_tests.h:478:1: + X_ISO_SIGNAL_ISO_H = 0 // signal_iso.h:46:1: + X_ISO_TIME_ISO_H = 0 // time_iso.h:46:1: + X_LARGEFILE64_SOURCE = 1 // feature_tests.h:231:1: + X_LARGEFILE_SOURCE = 1 // feature_tests.h:235:1: + X_LITTLE_ENDIAN = 0 // isa_defs.h:242:1: + X_LOCALE_T = 0 // time.h:291:1: + X_LONGLONG_TYPE = 0 // feature_tests.h:412:1: + X_LONG_ALIGNMENT = 8 // isa_defs.h:254:1: + X_LONG_DOUBLE_ALIGNMENT = 16 // isa_defs.h:258:1: + X_LONG_DOUBLE_COMPLEX_ALIGNMENT = 16 // isa_defs.h:259:1: + X_LONG_LONG_ALIGNMENT = 8 // isa_defs.h:255:1: + X_LONG_LONG_ALIGNMENT_32 = 4 // isa_defs.h:268:1: + X_LONG_LONG_LTOH = 0 // isa_defs.h:244:1: + X_LP64 = 1 // :286:1: + X_MAX_ALIGNMENT = 16 // isa_defs.h:261:1: + X_MULTI_DATAMODEL = 0 // isa_defs.h:279:1: + X_MUTEX_MAGIC = 0x4d58 // types.h:424:1: + X_NBBY = 8 // select.h:100:1: + X_NORETURN_KYWD = 0 // feature_tests.h:448:1: + X_OFF_T = 0 // types.h:142:1: + X_PC_2_SYMLINKS = 19 // unistd.h:309:1: + X_PC_ACCESS_FILTERING = 25 // unistd.h:315:1: + X_PC_ACL_ENABLED = 20 // unistd.h:310:1: + X_PC_ALLOC_SIZE_MIN = 13 // unistd.h:303:1: + X_PC_ASYNC_IO = 10 // unistd.h:299:1: + X_PC_CASE_BEHAVIOR = 22 // unistd.h:312:1: + X_PC_CHOWN_RESTRICTED = 9 // unistd.h:297:1: + X_PC_FILESIZEBITS = 67 // unistd.h:325:1: + X_PC_LAST = 101 // unistd.h:336:1: + X_PC_LINK_MAX = 1 // unistd.h:289:1: + X_PC_MAX_CANON = 2 // unistd.h:290:1: + X_PC_MAX_INPUT = 3 // unistd.h:291:1: + X_PC_MIN_HOLE_SIZE = 21 // unistd.h:311:1: + X_PC_NAME_MAX = 4 // unistd.h:292:1: + X_PC_NO_TRUNC = 7 // unistd.h:295:1: + X_PC_PATH_MAX = 5 // unistd.h:293:1: + X_PC_PIPE_BUF = 6 // unistd.h:294:1: + X_PC_PRIO_IO = 11 // unistd.h:300:1: + X_PC_REC_INCR_XFER_SIZE = 14 // unistd.h:304:1: + X_PC_REC_MAX_XFER_SIZE = 15 // unistd.h:305:1: + X_PC_REC_MIN_XFER_SIZE = 16 // unistd.h:306:1: + X_PC_REC_XFER_ALIGN = 17 // unistd.h:307:1: + X_PC_SATTR_ENABLED = 23 // unistd.h:313:1: + X_PC_SATTR_EXISTS = 24 // unistd.h:314:1: + X_PC_SYMLINK_MAX = 18 // unistd.h:308:1: + X_PC_SYNC_IO = 12 // unistd.h:301:1: + X_PC_TIMESTAMP_RESOLUTION = 26 // unistd.h:317:1: + X_PC_VDISABLE = 8 // unistd.h:296:1: + X_PC_XATTR_ENABLED = 100 // unistd.h:330:1: + X_PC_XATTR_EXISTS = 101 // unistd.h:331:1: + X_POINTER_ALIGNMENT = 8 // isa_defs.h:260:1: + X_POSIX2_CHAR_TERM = 1 // unistd.h:391:1: + X_POSIX2_C_BIND = 1 // unistd.h:401:1: + X_POSIX2_C_DEV = 1 // unistd.h:402:1: + X_POSIX2_C_VERSION = 199209 // unistd.h:376:1: + X_POSIX2_FORT_RUN = 1 // unistd.h:403:1: + X_POSIX2_LOCALEDEF = 1 // unistd.h:404:1: + X_POSIX2_SW_DEV = 1 // unistd.h:405:1: + X_POSIX2_UPE = 1 // unistd.h:406:1: + X_POSIX2_VERSION = 199209 // unistd.h:363:1: + X_POSIX_REGEXP = 1 // unistd.h:410:1: + X_POSIX_SHELL = 1 // unistd.h:411:1: + X_POSIX_VERSION = 199506 // unistd.h:355:1: + X_PSM_MODULES = 0 // isa_defs.h:284:1: + X_PTRDIFF_T = 0 // types.h:112:1: + X_RESTRICT_KYWD = 0 // feature_tests.h:435:1: + X_RTC_CONFIG = 0 // isa_defs.h:285:1: + X_RWL_MAGIC = 0x5257 // types.h:427:1: + X_SC_2_CHAR_TERM = 66 // unistd.h:175:1: + X_SC_2_C_BIND = 45 // unistd.h:153:1: + X_SC_2_C_DEV = 46 // unistd.h:154:1: + X_SC_2_C_VERSION = 47 // unistd.h:155:1: + X_SC_2_FORT_DEV = 48 // unistd.h:156:1: + X_SC_2_FORT_RUN = 49 // unistd.h:157:1: + X_SC_2_LOCALEDEF = 50 // unistd.h:158:1: + X_SC_2_PBS = 724 // unistd.h:246:1: + X_SC_2_PBS_ACCOUNTING = 725 // unistd.h:247:1: + X_SC_2_PBS_CHECKPOINT = 726 // unistd.h:248:1: + X_SC_2_PBS_LOCATE = 728 // unistd.h:249:1: + X_SC_2_PBS_MESSAGE = 729 // unistd.h:250:1: + X_SC_2_PBS_TRACK = 730 // unistd.h:251:1: + X_SC_2_SW_DEV = 51 // unistd.h:159:1: + X_SC_2_UPE = 52 // unistd.h:160:1: + X_SC_2_VERSION = 53 // unistd.h:161:1: + X_SC_ADVISORY_INFO = 731 // unistd.h:252:1: + X_SC_AIO_LISTIO_MAX = 18 // unistd.h:125:1: + X_SC_AIO_MAX = 19 // unistd.h:126:1: + X_SC_AIO_PRIO_DELTA_MAX = 20 // unistd.h:127:1: + X_SC_ARG_MAX = 1 // unistd.h:106:1: + X_SC_ASYNCHRONOUS_IO = 21 // unistd.h:128:1: + X_SC_ATEXIT_MAX = 76 // unistd.h:179:1: + X_SC_AVPHYS_PAGES = 501 // unistd.h:190:1: + X_SC_BARRIERS = 732 // unistd.h:253:1: + X_SC_BC_BASE_MAX = 54 // unistd.h:162:1: + X_SC_BC_DIM_MAX = 55 // unistd.h:163:1: + X_SC_BC_SCALE_MAX = 56 // unistd.h:164:1: + X_SC_BC_STRING_MAX = 57 // unistd.h:165:1: + X_SC_CHILD_MAX = 2 // unistd.h:107:1: + X_SC_CLK_TCK = 3 // unistd.h:108:1: + X_SC_CLOCK_SELECTION = 733 // unistd.h:254:1: + X_SC_COHER_BLKSZ = 503 // unistd.h:196:1: + X_SC_COLL_WEIGHTS_MAX = 58 // unistd.h:166:1: + X_SC_CPUID_MAX = 517 // unistd.h:211:1: + X_SC_CPUTIME = 734 // unistd.h:255:1: + X_SC_DCACHE_ASSOC = 513 // unistd.h:206:1: + X_SC_DCACHE_BLKSZ = 510 // unistd.h:203:1: + X_SC_DCACHE_LINESZ = 508 // unistd.h:201:1: + X_SC_DCACHE_SZ = 506 // unistd.h:199:1: + X_SC_DCACHE_TBLKSZ = 511 // unistd.h:204:1: + X_SC_DELAYTIMER_MAX = 22 // unistd.h:129:1: + X_SC_EPHID_MAX = 518 // unistd.h:212:1: + X_SC_EXPR_NEST_MAX = 59 // unistd.h:167:1: + X_SC_FSYNC = 23 // unistd.h:130:1: + X_SC_GETGR_R_SIZE_MAX = 569 // unistd.h:220:1: + X_SC_GETPW_R_SIZE_MAX = 570 // unistd.h:221:1: + X_SC_HOST_NAME_MAX = 735 // unistd.h:256:1: + X_SC_ICACHE_ASSOC = 512 // unistd.h:205:1: + X_SC_ICACHE_BLKSZ = 509 // unistd.h:202:1: + X_SC_ICACHE_LINESZ = 507 // unistd.h:200:1: + X_SC_ICACHE_SZ = 505 // unistd.h:198:1: + X_SC_IOV_MAX = 77 // unistd.h:180:1: + X_SC_IPV6 = 762 // unistd.h:283:1: + X_SC_JOB_CONTROL = 6 // unistd.h:111:1: + X_SC_LINE_MAX = 60 // unistd.h:168:1: + X_SC_LOGIN_NAME_MAX = 571 // unistd.h:222:1: + X_SC_LOGNAME_MAX = 10 // unistd.h:116:1: + X_SC_MAPPED_FILES = 24 // unistd.h:131:1: + X_SC_MAXPID = 514 // unistd.h:208:1: + X_SC_MEMLOCK = 25 // unistd.h:132:1: + X_SC_MEMLOCK_RANGE = 26 // unistd.h:133:1: + X_SC_MEMORY_PROTECTION = 27 // unistd.h:134:1: + X_SC_MESSAGE_PASSING = 28 // unistd.h:135:1: + X_SC_MONOTONIC_CLOCK = 736 // unistd.h:257:1: + X_SC_MQ_OPEN_MAX = 29 // unistd.h:136:1: + X_SC_MQ_PRIO_MAX = 30 // unistd.h:137:1: + X_SC_NGROUPS_MAX = 4 // unistd.h:109:1: + X_SC_NPROCESSORS_CONF = 14 // unistd.h:120:1: + X_SC_NPROCESSORS_MAX = 516 // unistd.h:210:1: + X_SC_NPROCESSORS_ONLN = 15 // unistd.h:121:1: + X_SC_OPEN_MAX = 5 // unistd.h:110:1: + X_SC_PAGESIZE = 11 // unistd.h:117:1: + X_SC_PAGE_SIZE = 11 // unistd.h:182:1: + X_SC_PASS_MAX = 9 // unistd.h:115:1: + X_SC_PHYS_PAGES = 500 // unistd.h:189:1: + X_SC_PRIORITIZED_IO = 31 // unistd.h:138:1: + X_SC_PRIORITY_SCHEDULING = 32 // unistd.h:139:1: + X_SC_RAW_SOCKETS = 763 // unistd.h:284:1: + X_SC_READER_WRITER_LOCKS = 737 // unistd.h:258:1: + X_SC_REALTIME_SIGNALS = 33 // unistd.h:140:1: + X_SC_REGEXP = 738 // unistd.h:259:1: + X_SC_RE_DUP_MAX = 61 // unistd.h:169:1: + X_SC_RTSIG_MAX = 34 // unistd.h:141:1: + X_SC_SAVED_IDS = 7 // unistd.h:112:1: + X_SC_SEMAPHORES = 35 // unistd.h:142:1: + X_SC_SEM_NSEMS_MAX = 36 // unistd.h:143:1: + X_SC_SEM_VALUE_MAX = 37 // unistd.h:144:1: + X_SC_SHARED_MEMORY_OBJECTS = 38 // unistd.h:145:1: + X_SC_SHELL = 739 // unistd.h:260:1: + X_SC_SIGQUEUE_MAX = 39 // unistd.h:146:1: + X_SC_SIGRT_MAX = 41 // unistd.h:148:1: + X_SC_SIGRT_MIN = 40 // unistd.h:147:1: + X_SC_SPAWN = 740 // unistd.h:261:1: + X_SC_SPIN_LOCKS = 741 // unistd.h:262:1: + X_SC_SPLIT_CACHE = 504 // unistd.h:197:1: + X_SC_SPORADIC_SERVER = 742 // unistd.h:263:1: + X_SC_SS_REPL_MAX = 743 // unistd.h:264:1: + X_SC_STACK_PROT = 515 // unistd.h:209:1: + X_SC_STREAM_MAX = 16 // unistd.h:122:1: + X_SC_SYMLOOP_MAX = 744 // unistd.h:265:1: + X_SC_SYNCHRONIZED_IO = 42 // unistd.h:149:1: + X_SC_THREADS = 576 // unistd.h:227:1: + X_SC_THREAD_ATTR_STACKADDR = 577 // unistd.h:228:1: + X_SC_THREAD_ATTR_STACKSIZE = 578 // unistd.h:229:1: + X_SC_THREAD_CPUTIME = 745 // unistd.h:266:1: + X_SC_THREAD_DESTRUCTOR_ITERATIONS = 568 // unistd.h:219:1: + X_SC_THREAD_KEYS_MAX = 572 // unistd.h:223:1: + X_SC_THREAD_PRIORITY_SCHEDULING = 579 // unistd.h:230:1: + X_SC_THREAD_PRIO_INHERIT = 580 // unistd.h:231:1: + X_SC_THREAD_PRIO_PROTECT = 581 // unistd.h:232:1: + X_SC_THREAD_PROCESS_SHARED = 582 // unistd.h:233:1: + X_SC_THREAD_SAFE_FUNCTIONS = 583 // unistd.h:234:1: + X_SC_THREAD_SPORADIC_SERVER = 746 // unistd.h:267:1: + X_SC_THREAD_STACK_MIN = 573 // unistd.h:224:1: + X_SC_THREAD_THREADS_MAX = 574 // unistd.h:225:1: + X_SC_TIMEOUTS = 747 // unistd.h:268:1: + X_SC_TIMERS = 43 // unistd.h:150:1: + X_SC_TIMER_MAX = 44 // unistd.h:151:1: + X_SC_TRACE = 748 // unistd.h:269:1: + X_SC_TRACE_EVENT_FILTER = 749 // unistd.h:270:1: + X_SC_TRACE_EVENT_NAME_MAX = 750 // unistd.h:271:1: + X_SC_TRACE_INHERIT = 751 // unistd.h:272:1: + X_SC_TRACE_LOG = 752 // unistd.h:273:1: + X_SC_TRACE_NAME_MAX = 753 // unistd.h:274:1: + X_SC_TRACE_SYS_MAX = 754 // unistd.h:275:1: + X_SC_TRACE_USER_EVENT_MAX = 755 // unistd.h:276:1: + X_SC_TTY_NAME_MAX = 575 // unistd.h:226:1: + X_SC_TYPED_MEMORY_OBJECTS = 756 // unistd.h:277:1: + X_SC_TZNAME_MAX = 17 // unistd.h:123:1: + X_SC_T_IOV_MAX = 79 // unistd.h:186:1: + X_SC_UADDR_MAX = 519 // unistd.h:213:1: + X_SC_V6_ILP32_OFF32 = 757 // unistd.h:278:1: + X_SC_V6_ILP32_OFFBIG = 758 // unistd.h:279:1: + X_SC_V6_LP64_OFF64 = 759 // unistd.h:280:1: + X_SC_V6_LPBIG_OFFBIG = 760 // unistd.h:281:1: + X_SC_VERSION = 8 // unistd.h:113:1: + X_SC_XBS5_ILP32_OFF32 = 720 // unistd.h:240:1: + X_SC_XBS5_ILP32_OFFBIG = 721 // unistd.h:241:1: + X_SC_XBS5_LP64_OFF64 = 722 // unistd.h:242:1: + X_SC_XBS5_LPBIG_OFFBIG = 723 // unistd.h:243:1: + X_SC_XOPEN_CRYPT = 62 // unistd.h:170:1: + X_SC_XOPEN_ENH_I18N = 63 // unistd.h:171:1: + X_SC_XOPEN_LEGACY = 717 // unistd.h:237:1: + X_SC_XOPEN_REALTIME = 718 // unistd.h:238:1: + X_SC_XOPEN_REALTIME_THREADS = 719 // unistd.h:239:1: + X_SC_XOPEN_SHM = 64 // unistd.h:172:1: + X_SC_XOPEN_STREAMS = 761 // unistd.h:282:1: + X_SC_XOPEN_UNIX = 78 // unistd.h:181:1: + X_SC_XOPEN_VERSION = 12 // unistd.h:118:1: + X_SC_XOPEN_XCU_VERSION = 67 // unistd.h:176:1: + X_SEMA_MAGIC = 0x534d // types.h:425:1: + X_SHORT_ALIGNMENT = 2 // isa_defs.h:250:1: + X_SIGEVENT = 0 // time.h:132:1: + X_SIGNAL_H = 0 // signal.h:33:1: + X_SIGRTMAX = 74 // signal_iso.h:99:1: + X_SIGRTMIN = 42 // signal_iso.h:98:1: + X_SIGSET_T = 0 // select.h:73:1: + X_SIGVAL = 0 // time.h:124:1: + X_SIZE_T = 0 // types.h:540:1: + X_SOFT_HOSTID = 0 // isa_defs.h:286:1: + X_SSIZE_T = 0 // types.h:549:1: + X_STACK_GROWS_DOWNWARD = 0 // isa_defs.h:243:1: + X_STACK_T = 0 // signal.h:174:1: + X_STDC_C11 = 0 // feature_tests.h:165:1: + X_STDC_C99 = 0 // feature_tests.h:169:1: + X_SUNOS_VTOC_16 = 0 // isa_defs.h:280:1: + X_SUSECONDS_T = 0 // types.h:343:1: + X_SYS_CCOMPILE_H = 0 // ccompile.h:32:1: + X_SYS_FEATURE_TESTS_H = 0 // feature_tests.h:41:1: + X_SYS_INT_TYPES_H = 0 // int_types.h:30:1: + X_SYS_ISA_DEFS_H = 0 // isa_defs.h:30:1: + X_SYS_MACHSIG_H = 0 // machsig.h:32:1: + X_SYS_MACHTYPES_H = 0 // machtypes.h:27:1: + X_SYS_NULL_H = 0 // null.h:17:1: + X_SYS_PROCSET_H = 0 // procset.h:32:1: + X_SYS_SELECT_H = 0 // select.h:45:1: + X_SYS_SIGINFO_H = 0 // siginfo.h:31:1: + X_SYS_SIGNAL_H = 0 // signal.h:42:1: + X_SYS_SIGNAL_ISO_H = 0 // signal_iso.h:44:1: + X_SYS_TIME_H = 0 // time.h:27:1: + X_SYS_TIME_IMPL_H = 0 // time_impl.h:38:1: + X_SYS_TYPES_H = 0 // types.h:35:1: + X_SYS_UNISTD_H = 0 // unistd.h:40:1: + X_TIMER_T = 0 // types.h:573:1: + X_TIME_H = 0 // time.h:37:1: + X_TIME_T = 0 // types.h:558:1: + X_UID_T = 0 // types.h:400:1: + X_VM_FAULTCODE_H = 0 // faultcode.h:40:1: + X_XOPEN_ENH_I18N = 1 // unistd.h:389:1: + X_XOPEN_REALTIME = 1 // unistd.h:388:1: + X_XOPEN_SHM = 1 // unistd.h:390:1: + X_XOPEN_STREAMS = 1 // unistd.h:412:1: + X_XOPEN_UNIX = 0 // unistd.h:382:1: + X_XOPEN_VERSION = 3 // feature_tests.h:392:1: + X_XOPEN_XCU_VERSION = 4 // unistd.h:385:1: + X_XOPEN_XPG3 = 0 // unistd.h:380:1: + X_XOPEN_XPG4 = 0 // unistd.h:381:1: + Sun = 1 // :172:1: + Unix = 1 // :175:1: +) + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2021 Oxide Computer Company + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2010 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2015, Joyent, Inc. + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// University Copyright- Copyright (c) 1982, 1986, 1988 +// The Regents of the University of California +// All Rights Reserved +// +// University Acknowledgment- Portions of this document are derived from +// software developed by the University of California, Berkeley, and its +// contributors. + +// This file defines the data needed to specify a set of +// processes. These types are used by the sigsend, sigsendset, +// priocntl, priocntlset, waitid, evexit, and evexitset system +// calls. + +// The following defines the values for an identifier type. It +// specifies the interpretation of an id value. An idtype and +// id together define a simple set of processes. +const ( /* procset.h:58:1: */ + P_PID = 0 // A process identifier. + P_PPID = 1 // A parent process identifier. + P_PGID = 2 // A process group (job control group) + // identifier. + P_SID = 3 // A session identifier. + P_CID = 4 // A scheduling class identifier. + P_UID = 5 // A user identifier. + P_GID = 6 // A group identifier. + P_ALL = 7 // All processes. + P_LWPID = 8 // An LWP identifier. + P_TASKID = 9 // A task identifier. + P_PROJID = 10 // A project identifier. + P_POOLID = 11 // A pool identifier. + P_ZONEID = 12 // A zone identifier. + P_CTID = 13 // A (process) contract identifier. + P_CPUID = 14 // CPU identifier. + P_PSETID = 15 +) + +// The following defines the operations which can be performed to +// combine two simple sets of processes to form another set of +// processes. +const ( /* procset.h:89:1: */ + POP_DIFF = 0 // Set difference. The processes which + // are in the left operand set and not + // in the right operand set. + POP_AND = 1 // Set disjunction. The processes + // which are in both the left and right + // operand sets. + POP_OR = 2 // Set conjunction. The processes + // which are in either the left or the + // right operand sets (or both). + POP_XOR = 3 +) // used for block sizes + +// The boolean_t type has had a varied amount of exposure over the years in +// terms of how its enumeration constants have been exposed. In particular, it +// originally used the __XOPEN_OR_POSIX macro to determine whether to prefix the +// B_TRUE and B_FALSE with an underscore. This check never included the +// question of if we were in a strict ANSI C environment or whether extensions +// were defined. +// +// Compilers such as clang started defaulting to always including an +// XOPEN_SOURCE declaration on behalf of users, but also noted __EXTENSIONS__. +// This would lead most software that had used the non-underscore versions to +// need it. As such, we have adjusted the non-strict XOPEN environment to retain +// its old behavior so as to minimize namespace pollution; however, we instead +// include both variants of the definitions in the generally visible version +// allowing software written in either world to hopefully end up in a good +// place. +// +// This isn't perfect, but should hopefully minimize the pain for folks actually +// trying to build software. +const ( /* types.h:215:1: */ + B_FALSE = 0 + B_TRUE = 1 + X_B_FALSE = 0 + X_B_TRUE = 1 +) + +type Ptrdiff_t = int64 /* :3:26 */ + +type Size_t = uint64 /* :9:23 */ + +type Wchar_t = int32 /* :15:24 */ + +type X__int128_t = struct { + Flo int64 + Fhi int64 +} /* :21:43 */ // must match modernc.org/mathutil.Int128 +type X__uint128_t = struct { + Flo uint64 + Fhi uint64 +} /* :22:44 */ // must match modernc.org/mathutil.Int128 + +type X__builtin_va_list = uintptr /* :46:14 */ +type X__float128 = float64 /* :47:21 */ + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1988 AT&T +// All Rights Reserved + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2015 EveryCity Ltd. All rights reserved. +// Copyright 2019 Joyent, Inc. + +// This file contains definitions designed to enable different compilers +// to be used harmoniously on Solaris systems. + +// Allow for version tests for compiler bugs and features. + +// analogous to lint's PRINTFLIKEn + +// Handle the kernel printf routines that can take '%b' too + +// This one's pretty obvious -- the function never returns + +// The function is 'extern inline' and expects GNU C89 behaviour, not C99 +// behaviour. +// +// Should only be used on 'extern inline' definitions for GCC. + +// The function has control flow such that it may return multiple times (in +// the manner of setjmp or vfork) + +// This is an appropriate label for functions that do not +// modify their arguments, e.g. strlen() + +// This is a stronger form of __pure__. Can be used for functions +// that do not modify their arguments and don't depend on global +// memory. + +// This attribute, attached to a variable, means that the variable is meant to +// be possibly unused. GCC will not produce a warning for this variable. + +// Shorthand versions for readability + +// In release build, disable warnings about variables +// which are used only for debugging. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2016 Joyent, Inc. + +// This header file serves to group a set of well known defines and to +// set these for each instruction set architecture. These defines may +// be divided into two groups; characteristics of the processor and +// implementation choices for Solaris on a processor. +// +// Processor Characteristics: +// +// _LITTLE_ENDIAN / _BIG_ENDIAN: +// The natural byte order of the processor. A pointer to an int points +// to the least/most significant byte of that int. +// +// _STACK_GROWS_UPWARD / _STACK_GROWS_DOWNWARD: +// The processor specific direction of stack growth. A push onto the +// stack increases/decreases the stack pointer, so it stores data at +// successively higher/lower addresses. (Stackless machines ignored +// without regrets). +// +// _LONG_LONG_HTOL / _LONG_LONG_LTOH: +// A pointer to a long long points to the most/least significant long +// within that long long. +// +// _BIT_FIELDS_HTOL / _BIT_FIELDS_LTOH: +// The C compiler assigns bit fields from the high/low to the low/high end +// of an int (most to least significant vs. least to most significant). +// +// _IEEE_754: +// The processor (or supported implementations of the processor) +// supports the ieee-754 floating point standard. No other floating +// point standards are supported (or significant). Any other supported +// floating point formats are expected to be cased on the ISA processor +// symbol. +// +// _CHAR_IS_UNSIGNED / _CHAR_IS_SIGNED: +// The C Compiler implements objects of type `char' as `unsigned' or +// `signed' respectively. This is really an implementation choice of +// the compiler writer, but it is specified in the ABI and tends to +// be uniform across compilers for an instruction set architecture. +// Hence, it has the properties of a processor characteristic. +// +// _CHAR_ALIGNMENT / _SHORT_ALIGNMENT / _INT_ALIGNMENT / _LONG_ALIGNMENT / +// _LONG_LONG_ALIGNMENT / _DOUBLE_ALIGNMENT / _LONG_DOUBLE_ALIGNMENT / +// _POINTER_ALIGNMENT / _FLOAT_ALIGNMENT: +// The ABI defines alignment requirements of each of the primitive +// object types. Some, if not all, may be hardware requirements as +// well. The values are expressed in "byte-alignment" units. +// +// _MAX_ALIGNMENT: +// The most stringent alignment requirement as specified by the ABI. +// Equal to the maximum of all the above _XXX_ALIGNMENT values. +// +// _MAX_ALIGNMENT_TYPE: +// The name of the C type that has the value descried in _MAX_ALIGNMENT. +// +// _ALIGNMENT_REQUIRED: +// True or false (1 or 0) whether or not the hardware requires the ABI +// alignment. +// +// _LONG_LONG_ALIGNMENT_32 +// The 32-bit ABI supported by a 64-bit kernel may have different +// alignment requirements for primitive object types. The value of this +// identifier is expressed in "byte-alignment" units. +// +// _HAVE_CPUID_INSN +// This indicates that the architecture supports the 'cpuid' +// instruction as defined by Intel. (Intel allows other vendors +// to extend the instruction for their own purposes.) +// +// +// Implementation Choices: +// +// _ILP32 / _LP64: +// This specifies the compiler data type implementation as specified in +// the relevant ABI. The choice between these is strongly influenced +// by the underlying hardware, but is not absolutely tied to it. +// Currently only two data type models are supported: +// +// _ILP32: +// Int/Long/Pointer are 32 bits. This is the historical UNIX +// and Solaris implementation. Due to its historical standing, +// this is the default case. +// +// _LP64: +// Long/Pointer are 64 bits, Int is 32 bits. This is the chosen +// implementation for 64-bit ABIs such as SPARC V9. +// +// _I32LPx: +// A compilation environment where 'int' is 32-bit, and +// longs and pointers are simply the same size. +// +// In all cases, Char is 8 bits and Short is 16 bits. +// +// _SUNOS_VTOC_8 / _SUNOS_VTOC_16 / _SVR4_VTOC_16: +// This specifies the form of the disk VTOC (or label): +// +// _SUNOS_VTOC_8: +// This is a VTOC form which is upwardly compatible with the +// SunOS 4.x disk label and allows 8 partitions per disk. +// +// _SUNOS_VTOC_16: +// In this format the incore vtoc image matches the ondisk +// version. It allows 16 slices per disk, and is not +// compatible with the SunOS 4.x disk label. +// +// Note that these are not the only two VTOC forms possible and +// additional forms may be added. One possible form would be the +// SVr4 VTOC form. The symbol for that is reserved now, although +// it is not implemented. +// +// _SVR4_VTOC_16: +// This VTOC form is compatible with the System V Release 4 +// VTOC (as implemented on the SVr4 Intel and 3b ports) with +// 16 partitions per disk. +// +// +// _DMA_USES_PHYSADDR / _DMA_USES_VIRTADDR +// This describes the type of addresses used by system DMA: +// +// _DMA_USES_PHYSADDR: +// This type of DMA, used in the x86 implementation, +// requires physical addresses for DMA buffers. The 24-bit +// addresses used by some legacy boards is the source of the +// "low-memory" (<16MB) requirement for some devices using DMA. +// +// _DMA_USES_VIRTADDR: +// This method of DMA allows the use of virtual addresses for +// DMA transfers. +// +// _FIRMWARE_NEEDS_FDISK / _NO_FDISK_PRESENT +// This indicates the presence/absence of an fdisk table. +// +// _FIRMWARE_NEEDS_FDISK +// The fdisk table is required by system firmware. If present, +// it allows a disk to be subdivided into multiple fdisk +// partitions, each of which is equivalent to a separate, +// virtual disk. This enables the co-existence of multiple +// operating systems on a shared hard disk. +// +// _NO_FDISK_PRESENT +// If the fdisk table is absent, it is assumed that the entire +// media is allocated for a single operating system. +// +// _HAVE_TEM_FIRMWARE +// Defined if this architecture has the (fallback) option of +// using prom_* calls for doing I/O if a suitable kernel driver +// is not available to do it. +// +// _DONT_USE_1275_GENERIC_NAMES +// Controls whether or not device tree node names should +// comply with the IEEE 1275 "Generic Names" Recommended +// Practice. With _DONT_USE_GENERIC_NAMES, device-specific +// names identifying the particular device will be used. +// +// __i386_COMPAT +// This indicates whether the i386 ABI is supported as a *non-native* +// mode for the platform. When this symbol is defined: +// - 32-bit xstat-style system calls are enabled +// - 32-bit xmknod-style system calls are enabled +// - 32-bit system calls use i386 sizes -and- alignments +// +// Note that this is NOT defined for the i386 native environment! +// +// __x86 +// This is ONLY a synonym for defined(__i386) || defined(__amd64) +// which is useful only insofar as these two architectures share +// common attributes. Analogous to __sparc. +// +// _PSM_MODULES +// This indicates whether or not the implementation uses PSM +// modules for processor support, reading /etc/mach from inside +// the kernel to extract a list. +// +// _RTC_CONFIG +// This indicates whether or not the implementation uses /etc/rtc_config +// to configure the real-time clock in the kernel. +// +// _UNIX_KRTLD +// This indicates that the implementation uses a dynamically +// linked unix + krtld to form the core kernel image at boot +// time, or (in the absence of this symbol) a prelinked kernel image. +// +// _OBP +// This indicates the firmware interface is OBP. +// +// _SOFT_HOSTID +// This indicates that the implementation obtains the hostid +// from the file /etc/hostid, rather than from hardware. + +// The following set of definitions characterize Solaris on AMD's +// 64-bit systems. + +// Define the appropriate "processor characteristics" + +// Different alignment constraints for the i386 ABI in compatibility mode + +// Define the appropriate "implementation choices". + +// The feature test macro __i386 is generic for all processors implementing +// the Intel 386 instruction set or a superset of it. Specifically, this +// includes all members of the 386, 486, and Pentium family of processors. + +// Values of _POSIX_C_SOURCE +// +// undefined not a POSIX compilation +// 1 POSIX.1-1990 compilation +// 2 POSIX.2-1992 compilation +// 199309L POSIX.1b-1993 compilation (Real Time) +// 199506L POSIX.1c-1995 compilation (POSIX Threads) +// 200112L POSIX.1-2001 compilation (Austin Group Revision) +// 200809L POSIX.1-2008 compilation + +// The feature test macros __XOPEN_OR_POSIX, _STRICT_STDC, _STRICT_SYMBOLS, +// and _STDC_C99 are Sun implementation specific macros created in order to +// compress common standards specified feature test macros for easier reading. +// These macros should not be used by the application developer as +// unexpected results may occur. Instead, the user should reference +// standards(7) for correct usage of the standards feature test macros. +// +// __XOPEN_OR_POSIX Used in cases where a symbol is defined by both +// X/Open or POSIX or in the negative, when neither +// X/Open or POSIX defines a symbol. +// +// _STRICT_STDC __STDC__ is specified by the C Standards and defined +// by the compiler. For Sun compilers the value of +// __STDC__ is either 1, 0, or not defined based on the +// compilation mode (see cc(1)). When the value of +// __STDC__ is 1 and in the absence of any other feature +// test macros, the namespace available to the application +// is limited to only those symbols defined by the C +// Standard. _STRICT_STDC provides a more readable means +// of identifying symbols defined by the standard, or in +// the negative, symbols that are extensions to the C +// Standard. See additional comments for GNU C differences. +// +// _STDC_C99 __STDC_VERSION__ is specified by the C standards and +// defined by the compiler and indicates the version of +// the C standard. A value of 199901L indicates a +// compiler that complies with ISO/IEC 9899:1999, other- +// wise known as the C99 standard. +// +// _STDC_C11 Like _STDC_C99 except that the value of __STDC_VERSION__ +// is 201112L indicating a compiler that compiles with +// ISO/IEC 9899:2011, otherwise known as the C11 standard. +// +// _STRICT_SYMBOLS Used in cases where symbol visibility is restricted +// by the standards, and the user has not explicitly +// relaxed the strictness via __EXTENSIONS__. + +// ISO/IEC 9899:1990 and it's revisions, ISO/IEC 9899:1999 and ISO/IEC +// 99899:2011 specify the following predefined macro name: +// +// __STDC__ The integer constant 1, intended to indicate a conforming +// implementation. +// +// Furthermore, a strictly conforming program shall use only those features +// of the language and library specified in these standards. A conforming +// implementation shall accept any strictly conforming program. +// +// Based on these requirements, Sun's C compiler defines __STDC__ to 1 for +// strictly conforming environments and __STDC__ to 0 for environments that +// use ANSI C semantics but allow extensions to the C standard. For non-ANSI +// C semantics, Sun's C compiler does not define __STDC__. +// +// The GNU C project interpretation is that __STDC__ should always be defined +// to 1 for compilation modes that accept ANSI C syntax regardless of whether +// or not extensions to the C standard are used. Violations of conforming +// behavior are conditionally flagged as warnings via the use of the +// -pedantic option. In addition to defining __STDC__ to 1, the GNU C +// compiler also defines __STRICT_ANSI__ as a means of specifying strictly +// conforming environments using the -ansi or -std= options. +// +// In the absence of any other compiler options, Sun and GNU set the value +// of __STDC__ as follows when using the following options: +// +// Value of __STDC__ __STRICT_ANSI__ +// +// cc -Xa (default) 0 undefined +// cc -Xt (transitional) 0 undefined +// cc -Xc (strictly conforming) 1 undefined +// cc -Xs (K&R C) undefined undefined +// +// gcc (default) 1 undefined +// gcc -ansi, -std={c89, c99,...) 1 defined +// gcc -traditional (K&R) undefined undefined +// +// The default compilation modes for Sun C compilers versus GNU C compilers +// results in a differing value for __STDC__ which results in a more +// restricted namespace when using Sun compilers. To allow both GNU and Sun +// interpretations to peacefully co-exist, we use the following Sun +// implementation _STRICT_STDC_ macro: + +// Compiler complies with ISO/IEC 9899:1999 or ISO/IEC 9989:2011 + +// Use strict symbol visibility. + +// This is a variant of _STRICT_SYMBOLS that is meant to cover headers that are +// governed by POSIX, but have not been governed by ISO C. One can go two ways +// on what should happen if an application actively includes (not transitively) +// a header that isn't part of the ISO C spec, we opt to say that if someone has +// gone out of there way then they're doing it for a reason and that is an act +// of non-compliance and therefore it's not up to us to hide away every symbol. +// +// In general, prefer using _STRICT_SYMBOLS, but this is here in particular for +// cases where in the past we have only used a POSIX related check and we don't +// wish to make something stricter. Often applications are relying on the +// ability to, or more realistically unwittingly, have _STRICT_STDC declared and +// still use these interfaces. + +// Large file interfaces: +// +// _LARGEFILE_SOURCE +// 1 large file-related additions to POSIX +// interfaces requested (fseeko, etc.) +// _LARGEFILE64_SOURCE +// 1 transitional large-file-related interfaces +// requested (seek64, stat64, etc.) +// +// The corresponding announcement macros are respectively: +// _LFS_LARGEFILE +// _LFS64_LARGEFILE +// (These are set in .) +// +// Requesting _LARGEFILE64_SOURCE implies requesting _LARGEFILE_SOURCE as +// well. +// +// The large file interfaces are made visible regardless of the initial values +// of the feature test macros under certain circumstances: +// - If no explicit standards-conforming environment is requested (neither +// of _POSIX_SOURCE nor _XOPEN_SOURCE is defined and the value of +// __STDC__ does not imply standards conformance). +// - Extended system interfaces are explicitly requested (__EXTENSIONS__ +// is defined). +// - Access to in-kernel interfaces is requested (_KERNEL or _KMEMUSER is +// defined). (Note that this dependency is an artifact of the current +// kernel implementation and may change in future releases.) + +// Large file compilation environment control: +// +// The setting of _FILE_OFFSET_BITS controls the size of various file-related +// types and governs the mapping between file-related source function symbol +// names and the corresponding binary entry points. +// +// In the 32-bit environment, the default value is 32; if not set, set it to +// the default here, to simplify tests in other headers. +// +// In the 64-bit compilation environment, the only value allowed is 64. + +// Use of _XOPEN_SOURCE +// +// The following X/Open specifications are supported: +// +// X/Open Portability Guide, Issue 3 (XPG3) +// X/Open CAE Specification, Issue 4 (XPG4) +// X/Open CAE Specification, Issue 4, Version 2 (XPG4v2) +// X/Open CAE Specification, Issue 5 (XPG5) +// Open Group Technical Standard, Issue 6 (XPG6), also referred to as +// IEEE Std. 1003.1-2001 and ISO/IEC 9945:2002. +// Open Group Technical Standard, Issue 7 (XPG7), also referred to as +// IEEE Std. 1003.1-2008 and ISO/IEC 9945:2009. +// +// XPG4v2 is also referred to as UNIX 95 (SUS or SUSv1). +// XPG5 is also referred to as UNIX 98 or the Single Unix Specification, +// Version 2 (SUSv2) +// XPG6 is the result of a merge of the X/Open and POSIX specifications +// and as such is also referred to as IEEE Std. 1003.1-2001 in +// addition to UNIX 03 and SUSv3. +// XPG7 is also referred to as UNIX 08 and SUSv4. +// +// When writing a conforming X/Open application, as per the specification +// requirements, the appropriate feature test macros must be defined at +// compile time. These are as follows. For more info, see standards(7). +// +// Feature Test Macro Specification +// ------------------------------------------------ ------------- +// _XOPEN_SOURCE XPG3 +// _XOPEN_SOURCE && _XOPEN_VERSION = 4 XPG4 +// _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED = 1 XPG4v2 +// _XOPEN_SOURCE = 500 XPG5 +// _XOPEN_SOURCE = 600 (or POSIX_C_SOURCE=200112L) XPG6 +// _XOPEN_SOURCE = 700 (or POSIX_C_SOURCE=200809L) XPG7 +// +// In order to simplify the guards within the headers, the following +// implementation private test macros have been created. Applications +// must NOT use these private test macros as unexpected results will +// occur. +// +// Note that in general, the use of these private macros is cumulative. +// For example, the use of _XPG3 with no other restrictions on the X/Open +// namespace will make the symbols visible for XPG3 through XPG6 +// compilation environments. The use of _XPG4_2 with no other X/Open +// namespace restrictions indicates that the symbols were introduced in +// XPG4v2 and are therefore visible for XPG4v2 through XPG6 compilation +// environments, but not for XPG3 or XPG4 compilation environments. +// +// _XPG3 X/Open Portability Guide, Issue 3 (XPG3) +// _XPG4 X/Open CAE Specification, Issue 4 (XPG4) +// _XPG4_2 X/Open CAE Specification, Issue 4, Version 2 (XPG4v2/UNIX 95/SUS) +// _XPG5 X/Open CAE Specification, Issue 5 (XPG5/UNIX 98/SUSv2) +// _XPG6 Open Group Technical Standard, Issue 6 (XPG6/UNIX 03/SUSv3) +// _XPG7 Open Group Technical Standard, Issue 7 (XPG7/UNIX 08/SUSv4) + +// X/Open Portability Guide, Issue 3 + +// _XOPEN_VERSION is defined by the X/Open specifications and is not +// normally defined by the application, except in the case of an XPG4 +// application. On the implementation side, _XOPEN_VERSION defined with +// the value of 3 indicates an XPG3 application. _XOPEN_VERSION defined +// with the value of 4 indicates an XPG4 or XPG4v2 (UNIX 95) application. +// _XOPEN_VERSION defined with a value of 500 indicates an XPG5 (UNIX 98) +// application and with a value of 600 indicates an XPG6 (UNIX 03) +// application and with a value of 700 indicates an XPG7 (UNIX 08). +// The appropriate version is determined by the use of the +// feature test macros described earlier. The value of _XOPEN_VERSION +// defaults to 3 otherwise indicating support for XPG3 applications. + +// ANSI C and ISO 9899:1990 say the type long long doesn't exist in strictly +// conforming environments. ISO 9899:1999 says it does. +// +// The presence of _LONGLONG_TYPE says "long long exists" which is therefore +// defined in all but strictly conforming environments that disallow it. + +// The following macro defines a value for the ISO C99 restrict +// keyword so that _RESTRICT_KYWD resolves to "restrict" if +// an ISO C99 compiler is used, "__restrict" for c++ and "" (null string) +// if any other compiler is used. This allows for the use of single +// prototype declarations regardless of compiler version. + +// The following macro defines a value for the ISO C11 _Noreturn +// keyword so that _NORETURN_KYWD resolves to "_Noreturn" if +// an ISO C11 compiler is used and "" (null string) if any other +// compiler is used. This allows for the use of single prototype +// declarations regardless of compiler version. + +// ISO/IEC 9899:2011 Annex K + +// The following macro indicates header support for the ANSI C++ +// standard. The ISO/IEC designation for this is ISO/IEC FDIS 14882. + +// The following macro indicates header support for the C99 standard, +// ISO/IEC 9899:1999, Programming Languages - C. + +// The following macro indicates header support for the C11 standard, +// ISO/IEC 9899:2011, Programming Languages - C. + +// The following macro indicates header support for the C11 standard, +// ISO/IEC 9899:2011 Annex K, Programming Languages - C. + +// The following macro indicates header support for DTrace. The value is an +// integer that corresponds to the major version number for DTrace. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2021 Oxide Computer Company + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2016 Joyent, Inc. + +// Machine dependent definitions moved to . +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2007 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Machine dependent types: +// +// intel ia32 Version + +type X_label_t = struct{ Fval [8]int64 } /* machtypes.h:59:9 */ + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1988 AT&T +// All Rights Reserved + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2015 EveryCity Ltd. All rights reserved. +// Copyright 2019 Joyent, Inc. + +// This file contains definitions designed to enable different compilers +// to be used harmoniously on Solaris systems. + +// Allow for version tests for compiler bugs and features. + +// analogous to lint's PRINTFLIKEn + +// Handle the kernel printf routines that can take '%b' too + +// This one's pretty obvious -- the function never returns + +// The function is 'extern inline' and expects GNU C89 behaviour, not C99 +// behaviour. +// +// Should only be used on 'extern inline' definitions for GCC. + +// The function has control flow such that it may return multiple times (in +// the manner of setjmp or vfork) + +// This is an appropriate label for functions that do not +// modify their arguments, e.g. strlen() + +// This is a stronger form of __pure__. Can be used for functions +// that do not modify their arguments and don't depend on global +// memory. + +// This attribute, attached to a variable, means that the variable is meant to +// be possibly unused. GCC will not produce a warning for this variable. + +// Shorthand versions for readability + +// In release build, disable warnings about variables +// which are used only for debugging. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2016 Joyent, Inc. + +// This header file serves to group a set of well known defines and to +// set these for each instruction set architecture. These defines may +// be divided into two groups; characteristics of the processor and +// implementation choices for Solaris on a processor. +// +// Processor Characteristics: +// +// _LITTLE_ENDIAN / _BIG_ENDIAN: +// The natural byte order of the processor. A pointer to an int points +// to the least/most significant byte of that int. +// +// _STACK_GROWS_UPWARD / _STACK_GROWS_DOWNWARD: +// The processor specific direction of stack growth. A push onto the +// stack increases/decreases the stack pointer, so it stores data at +// successively higher/lower addresses. (Stackless machines ignored +// without regrets). +// +// _LONG_LONG_HTOL / _LONG_LONG_LTOH: +// A pointer to a long long points to the most/least significant long +// within that long long. +// +// _BIT_FIELDS_HTOL / _BIT_FIELDS_LTOH: +// The C compiler assigns bit fields from the high/low to the low/high end +// of an int (most to least significant vs. least to most significant). +// +// _IEEE_754: +// The processor (or supported implementations of the processor) +// supports the ieee-754 floating point standard. No other floating +// point standards are supported (or significant). Any other supported +// floating point formats are expected to be cased on the ISA processor +// symbol. +// +// _CHAR_IS_UNSIGNED / _CHAR_IS_SIGNED: +// The C Compiler implements objects of type `char' as `unsigned' or +// `signed' respectively. This is really an implementation choice of +// the compiler writer, but it is specified in the ABI and tends to +// be uniform across compilers for an instruction set architecture. +// Hence, it has the properties of a processor characteristic. +// +// _CHAR_ALIGNMENT / _SHORT_ALIGNMENT / _INT_ALIGNMENT / _LONG_ALIGNMENT / +// _LONG_LONG_ALIGNMENT / _DOUBLE_ALIGNMENT / _LONG_DOUBLE_ALIGNMENT / +// _POINTER_ALIGNMENT / _FLOAT_ALIGNMENT: +// The ABI defines alignment requirements of each of the primitive +// object types. Some, if not all, may be hardware requirements as +// well. The values are expressed in "byte-alignment" units. +// +// _MAX_ALIGNMENT: +// The most stringent alignment requirement as specified by the ABI. +// Equal to the maximum of all the above _XXX_ALIGNMENT values. +// +// _MAX_ALIGNMENT_TYPE: +// The name of the C type that has the value descried in _MAX_ALIGNMENT. +// +// _ALIGNMENT_REQUIRED: +// True or false (1 or 0) whether or not the hardware requires the ABI +// alignment. +// +// _LONG_LONG_ALIGNMENT_32 +// The 32-bit ABI supported by a 64-bit kernel may have different +// alignment requirements for primitive object types. The value of this +// identifier is expressed in "byte-alignment" units. +// +// _HAVE_CPUID_INSN +// This indicates that the architecture supports the 'cpuid' +// instruction as defined by Intel. (Intel allows other vendors +// to extend the instruction for their own purposes.) +// +// +// Implementation Choices: +// +// _ILP32 / _LP64: +// This specifies the compiler data type implementation as specified in +// the relevant ABI. The choice between these is strongly influenced +// by the underlying hardware, but is not absolutely tied to it. +// Currently only two data type models are supported: +// +// _ILP32: +// Int/Long/Pointer are 32 bits. This is the historical UNIX +// and Solaris implementation. Due to its historical standing, +// this is the default case. +// +// _LP64: +// Long/Pointer are 64 bits, Int is 32 bits. This is the chosen +// implementation for 64-bit ABIs such as SPARC V9. +// +// _I32LPx: +// A compilation environment where 'int' is 32-bit, and +// longs and pointers are simply the same size. +// +// In all cases, Char is 8 bits and Short is 16 bits. +// +// _SUNOS_VTOC_8 / _SUNOS_VTOC_16 / _SVR4_VTOC_16: +// This specifies the form of the disk VTOC (or label): +// +// _SUNOS_VTOC_8: +// This is a VTOC form which is upwardly compatible with the +// SunOS 4.x disk label and allows 8 partitions per disk. +// +// _SUNOS_VTOC_16: +// In this format the incore vtoc image matches the ondisk +// version. It allows 16 slices per disk, and is not +// compatible with the SunOS 4.x disk label. +// +// Note that these are not the only two VTOC forms possible and +// additional forms may be added. One possible form would be the +// SVr4 VTOC form. The symbol for that is reserved now, although +// it is not implemented. +// +// _SVR4_VTOC_16: +// This VTOC form is compatible with the System V Release 4 +// VTOC (as implemented on the SVr4 Intel and 3b ports) with +// 16 partitions per disk. +// +// +// _DMA_USES_PHYSADDR / _DMA_USES_VIRTADDR +// This describes the type of addresses used by system DMA: +// +// _DMA_USES_PHYSADDR: +// This type of DMA, used in the x86 implementation, +// requires physical addresses for DMA buffers. The 24-bit +// addresses used by some legacy boards is the source of the +// "low-memory" (<16MB) requirement for some devices using DMA. +// +// _DMA_USES_VIRTADDR: +// This method of DMA allows the use of virtual addresses for +// DMA transfers. +// +// _FIRMWARE_NEEDS_FDISK / _NO_FDISK_PRESENT +// This indicates the presence/absence of an fdisk table. +// +// _FIRMWARE_NEEDS_FDISK +// The fdisk table is required by system firmware. If present, +// it allows a disk to be subdivided into multiple fdisk +// partitions, each of which is equivalent to a separate, +// virtual disk. This enables the co-existence of multiple +// operating systems on a shared hard disk. +// +// _NO_FDISK_PRESENT +// If the fdisk table is absent, it is assumed that the entire +// media is allocated for a single operating system. +// +// _HAVE_TEM_FIRMWARE +// Defined if this architecture has the (fallback) option of +// using prom_* calls for doing I/O if a suitable kernel driver +// is not available to do it. +// +// _DONT_USE_1275_GENERIC_NAMES +// Controls whether or not device tree node names should +// comply with the IEEE 1275 "Generic Names" Recommended +// Practice. With _DONT_USE_GENERIC_NAMES, device-specific +// names identifying the particular device will be used. +// +// __i386_COMPAT +// This indicates whether the i386 ABI is supported as a *non-native* +// mode for the platform. When this symbol is defined: +// - 32-bit xstat-style system calls are enabled +// - 32-bit xmknod-style system calls are enabled +// - 32-bit system calls use i386 sizes -and- alignments +// +// Note that this is NOT defined for the i386 native environment! +// +// __x86 +// This is ONLY a synonym for defined(__i386) || defined(__amd64) +// which is useful only insofar as these two architectures share +// common attributes. Analogous to __sparc. +// +// _PSM_MODULES +// This indicates whether or not the implementation uses PSM +// modules for processor support, reading /etc/mach from inside +// the kernel to extract a list. +// +// _RTC_CONFIG +// This indicates whether or not the implementation uses /etc/rtc_config +// to configure the real-time clock in the kernel. +// +// _UNIX_KRTLD +// This indicates that the implementation uses a dynamically +// linked unix + krtld to form the core kernel image at boot +// time, or (in the absence of this symbol) a prelinked kernel image. +// +// _OBP +// This indicates the firmware interface is OBP. +// +// _SOFT_HOSTID +// This indicates that the implementation obtains the hostid +// from the file /etc/hostid, rather than from hardware. + +// The following set of definitions characterize Solaris on AMD's +// 64-bit systems. + +// Define the appropriate "processor characteristics" + +// Different alignment constraints for the i386 ABI in compatibility mode + +// Define the appropriate "implementation choices". + +// The feature test macro __i386 is generic for all processors implementing +// the Intel 386 instruction set or a superset of it. Specifically, this +// includes all members of the 386, 486, and Pentium family of processors. + +// Values of _POSIX_C_SOURCE +// +// undefined not a POSIX compilation +// 1 POSIX.1-1990 compilation +// 2 POSIX.2-1992 compilation +// 199309L POSIX.1b-1993 compilation (Real Time) +// 199506L POSIX.1c-1995 compilation (POSIX Threads) +// 200112L POSIX.1-2001 compilation (Austin Group Revision) +// 200809L POSIX.1-2008 compilation + +// The feature test macros __XOPEN_OR_POSIX, _STRICT_STDC, _STRICT_SYMBOLS, +// and _STDC_C99 are Sun implementation specific macros created in order to +// compress common standards specified feature test macros for easier reading. +// These macros should not be used by the application developer as +// unexpected results may occur. Instead, the user should reference +// standards(7) for correct usage of the standards feature test macros. +// +// __XOPEN_OR_POSIX Used in cases where a symbol is defined by both +// X/Open or POSIX or in the negative, when neither +// X/Open or POSIX defines a symbol. +// +// _STRICT_STDC __STDC__ is specified by the C Standards and defined +// by the compiler. For Sun compilers the value of +// __STDC__ is either 1, 0, or not defined based on the +// compilation mode (see cc(1)). When the value of +// __STDC__ is 1 and in the absence of any other feature +// test macros, the namespace available to the application +// is limited to only those symbols defined by the C +// Standard. _STRICT_STDC provides a more readable means +// of identifying symbols defined by the standard, or in +// the negative, symbols that are extensions to the C +// Standard. See additional comments for GNU C differences. +// +// _STDC_C99 __STDC_VERSION__ is specified by the C standards and +// defined by the compiler and indicates the version of +// the C standard. A value of 199901L indicates a +// compiler that complies with ISO/IEC 9899:1999, other- +// wise known as the C99 standard. +// +// _STDC_C11 Like _STDC_C99 except that the value of __STDC_VERSION__ +// is 201112L indicating a compiler that compiles with +// ISO/IEC 9899:2011, otherwise known as the C11 standard. +// +// _STRICT_SYMBOLS Used in cases where symbol visibility is restricted +// by the standards, and the user has not explicitly +// relaxed the strictness via __EXTENSIONS__. + +// ISO/IEC 9899:1990 and it's revisions, ISO/IEC 9899:1999 and ISO/IEC +// 99899:2011 specify the following predefined macro name: +// +// __STDC__ The integer constant 1, intended to indicate a conforming +// implementation. +// +// Furthermore, a strictly conforming program shall use only those features +// of the language and library specified in these standards. A conforming +// implementation shall accept any strictly conforming program. +// +// Based on these requirements, Sun's C compiler defines __STDC__ to 1 for +// strictly conforming environments and __STDC__ to 0 for environments that +// use ANSI C semantics but allow extensions to the C standard. For non-ANSI +// C semantics, Sun's C compiler does not define __STDC__. +// +// The GNU C project interpretation is that __STDC__ should always be defined +// to 1 for compilation modes that accept ANSI C syntax regardless of whether +// or not extensions to the C standard are used. Violations of conforming +// behavior are conditionally flagged as warnings via the use of the +// -pedantic option. In addition to defining __STDC__ to 1, the GNU C +// compiler also defines __STRICT_ANSI__ as a means of specifying strictly +// conforming environments using the -ansi or -std= options. +// +// In the absence of any other compiler options, Sun and GNU set the value +// of __STDC__ as follows when using the following options: +// +// Value of __STDC__ __STRICT_ANSI__ +// +// cc -Xa (default) 0 undefined +// cc -Xt (transitional) 0 undefined +// cc -Xc (strictly conforming) 1 undefined +// cc -Xs (K&R C) undefined undefined +// +// gcc (default) 1 undefined +// gcc -ansi, -std={c89, c99,...) 1 defined +// gcc -traditional (K&R) undefined undefined +// +// The default compilation modes for Sun C compilers versus GNU C compilers +// results in a differing value for __STDC__ which results in a more +// restricted namespace when using Sun compilers. To allow both GNU and Sun +// interpretations to peacefully co-exist, we use the following Sun +// implementation _STRICT_STDC_ macro: + +// Compiler complies with ISO/IEC 9899:1999 or ISO/IEC 9989:2011 + +// Use strict symbol visibility. + +// This is a variant of _STRICT_SYMBOLS that is meant to cover headers that are +// governed by POSIX, but have not been governed by ISO C. One can go two ways +// on what should happen if an application actively includes (not transitively) +// a header that isn't part of the ISO C spec, we opt to say that if someone has +// gone out of there way then they're doing it for a reason and that is an act +// of non-compliance and therefore it's not up to us to hide away every symbol. +// +// In general, prefer using _STRICT_SYMBOLS, but this is here in particular for +// cases where in the past we have only used a POSIX related check and we don't +// wish to make something stricter. Often applications are relying on the +// ability to, or more realistically unwittingly, have _STRICT_STDC declared and +// still use these interfaces. + +// Large file interfaces: +// +// _LARGEFILE_SOURCE +// 1 large file-related additions to POSIX +// interfaces requested (fseeko, etc.) +// _LARGEFILE64_SOURCE +// 1 transitional large-file-related interfaces +// requested (seek64, stat64, etc.) +// +// The corresponding announcement macros are respectively: +// _LFS_LARGEFILE +// _LFS64_LARGEFILE +// (These are set in .) +// +// Requesting _LARGEFILE64_SOURCE implies requesting _LARGEFILE_SOURCE as +// well. +// +// The large file interfaces are made visible regardless of the initial values +// of the feature test macros under certain circumstances: +// - If no explicit standards-conforming environment is requested (neither +// of _POSIX_SOURCE nor _XOPEN_SOURCE is defined and the value of +// __STDC__ does not imply standards conformance). +// - Extended system interfaces are explicitly requested (__EXTENSIONS__ +// is defined). +// - Access to in-kernel interfaces is requested (_KERNEL or _KMEMUSER is +// defined). (Note that this dependency is an artifact of the current +// kernel implementation and may change in future releases.) + +// Large file compilation environment control: +// +// The setting of _FILE_OFFSET_BITS controls the size of various file-related +// types and governs the mapping between file-related source function symbol +// names and the corresponding binary entry points. +// +// In the 32-bit environment, the default value is 32; if not set, set it to +// the default here, to simplify tests in other headers. +// +// In the 64-bit compilation environment, the only value allowed is 64. + +// Use of _XOPEN_SOURCE +// +// The following X/Open specifications are supported: +// +// X/Open Portability Guide, Issue 3 (XPG3) +// X/Open CAE Specification, Issue 4 (XPG4) +// X/Open CAE Specification, Issue 4, Version 2 (XPG4v2) +// X/Open CAE Specification, Issue 5 (XPG5) +// Open Group Technical Standard, Issue 6 (XPG6), also referred to as +// IEEE Std. 1003.1-2001 and ISO/IEC 9945:2002. +// Open Group Technical Standard, Issue 7 (XPG7), also referred to as +// IEEE Std. 1003.1-2008 and ISO/IEC 9945:2009. +// +// XPG4v2 is also referred to as UNIX 95 (SUS or SUSv1). +// XPG5 is also referred to as UNIX 98 or the Single Unix Specification, +// Version 2 (SUSv2) +// XPG6 is the result of a merge of the X/Open and POSIX specifications +// and as such is also referred to as IEEE Std. 1003.1-2001 in +// addition to UNIX 03 and SUSv3. +// XPG7 is also referred to as UNIX 08 and SUSv4. +// +// When writing a conforming X/Open application, as per the specification +// requirements, the appropriate feature test macros must be defined at +// compile time. These are as follows. For more info, see standards(7). +// +// Feature Test Macro Specification +// ------------------------------------------------ ------------- +// _XOPEN_SOURCE XPG3 +// _XOPEN_SOURCE && _XOPEN_VERSION = 4 XPG4 +// _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED = 1 XPG4v2 +// _XOPEN_SOURCE = 500 XPG5 +// _XOPEN_SOURCE = 600 (or POSIX_C_SOURCE=200112L) XPG6 +// _XOPEN_SOURCE = 700 (or POSIX_C_SOURCE=200809L) XPG7 +// +// In order to simplify the guards within the headers, the following +// implementation private test macros have been created. Applications +// must NOT use these private test macros as unexpected results will +// occur. +// +// Note that in general, the use of these private macros is cumulative. +// For example, the use of _XPG3 with no other restrictions on the X/Open +// namespace will make the symbols visible for XPG3 through XPG6 +// compilation environments. The use of _XPG4_2 with no other X/Open +// namespace restrictions indicates that the symbols were introduced in +// XPG4v2 and are therefore visible for XPG4v2 through XPG6 compilation +// environments, but not for XPG3 or XPG4 compilation environments. +// +// _XPG3 X/Open Portability Guide, Issue 3 (XPG3) +// _XPG4 X/Open CAE Specification, Issue 4 (XPG4) +// _XPG4_2 X/Open CAE Specification, Issue 4, Version 2 (XPG4v2/UNIX 95/SUS) +// _XPG5 X/Open CAE Specification, Issue 5 (XPG5/UNIX 98/SUSv2) +// _XPG6 Open Group Technical Standard, Issue 6 (XPG6/UNIX 03/SUSv3) +// _XPG7 Open Group Technical Standard, Issue 7 (XPG7/UNIX 08/SUSv4) + +// X/Open Portability Guide, Issue 3 + +// _XOPEN_VERSION is defined by the X/Open specifications and is not +// normally defined by the application, except in the case of an XPG4 +// application. On the implementation side, _XOPEN_VERSION defined with +// the value of 3 indicates an XPG3 application. _XOPEN_VERSION defined +// with the value of 4 indicates an XPG4 or XPG4v2 (UNIX 95) application. +// _XOPEN_VERSION defined with a value of 500 indicates an XPG5 (UNIX 98) +// application and with a value of 600 indicates an XPG6 (UNIX 03) +// application and with a value of 700 indicates an XPG7 (UNIX 08). +// The appropriate version is determined by the use of the +// feature test macros described earlier. The value of _XOPEN_VERSION +// defaults to 3 otherwise indicating support for XPG3 applications. + +// ANSI C and ISO 9899:1990 say the type long long doesn't exist in strictly +// conforming environments. ISO 9899:1999 says it does. +// +// The presence of _LONGLONG_TYPE says "long long exists" which is therefore +// defined in all but strictly conforming environments that disallow it. + +// The following macro defines a value for the ISO C99 restrict +// keyword so that _RESTRICT_KYWD resolves to "restrict" if +// an ISO C99 compiler is used, "__restrict" for c++ and "" (null string) +// if any other compiler is used. This allows for the use of single +// prototype declarations regardless of compiler version. + +// The following macro defines a value for the ISO C11 _Noreturn +// keyword so that _NORETURN_KYWD resolves to "_Noreturn" if +// an ISO C11 compiler is used and "" (null string) if any other +// compiler is used. This allows for the use of single prototype +// declarations regardless of compiler version. + +// ISO/IEC 9899:2011 Annex K + +// The following macro indicates header support for the ANSI C++ +// standard. The ISO/IEC designation for this is ISO/IEC FDIS 14882. + +// The following macro indicates header support for the C99 standard, +// ISO/IEC 9899:1999, Programming Languages - C. + +// The following macro indicates header support for the C11 standard, +// ISO/IEC 9899:2011, Programming Languages - C. + +// The following macro indicates header support for the C11 standard, +// ISO/IEC 9899:2011 Annex K, Programming Languages - C. + +// The following macro indicates header support for DTrace. The value is an +// integer that corresponds to the major version number for DTrace. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2021 Oxide Computer Company + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2016 Joyent, Inc. + +// Machine dependent definitions moved to . +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2007 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Machine dependent types: +// +// intel ia32 Version + +type Label_t = X_label_t /* machtypes.h:59:54 */ + +type Lock_t = uint8 /* machtypes.h:63:23 */ // lock work for busy wait + +// Include fixed width type declarations proposed by the ISO/JTC1/SC22/WG14 C +// committee's working draft for the revision of the current ISO C standard, +// ISO/IEC 9899:1990 Programming language - C. These are not currently +// required by any standard but constitute a useful, general purpose set +// of type definitions which is namespace clean with respect to all standards. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2014 Garrett D'Amore +// +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// This file, , is part of the Sun Microsystems implementation +// of defined in the ISO C standard, ISO/IEC 9899:1999 +// Programming language - C. +// +// Programs/Modules should not directly include this file. Access to the +// types defined in this file should be through the inclusion of one of the +// following files: +// +// Provides only the "_t" types defined in this +// file which is a subset of the contents of +// . (This can be appropriate for +// all programs/modules except those claiming +// ANSI-C conformance.) +// +// Provides the Kernel and Driver appropriate +// components of . +// +// For use by applications. +// +// See these files for more details. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Basic / Extended integer types +// +// The following defines the basic fixed-size integer types. +// +// Implementations are free to typedef them to Standard C integer types or +// extensions that they support. If an implementation does not support one +// of the particular integer data types below, then it should not define the +// typedefs and macros corresponding to that data type. Note that int8_t +// is not defined in -Xs mode on ISAs for which the ABI specifies "char" +// as an unsigned entity because there is no way to define an eight bit +// signed integral. +type Int8_t = int8 /* int_types.h:75:16 */ +type Int16_t = int16 /* int_types.h:79:17 */ +type Int32_t = int32 /* int_types.h:80:15 */ +type Int64_t = int64 /* int_types.h:83:16 */ + +type Uint8_t = uint8 /* int_types.h:91:24 */ +type Uint16_t = uint16 /* int_types.h:92:25 */ +type Uint32_t = uint32 /* int_types.h:93:23 */ +type Uint64_t = uint64 /* int_types.h:95:24 */ + +// intmax_t and uintmax_t are to be the longest (in number of bits) signed +// and unsigned integer types supported by the implementation. +type Intmax_t = int64 /* int_types.h:107:19 */ +type Uintmax_t = uint64 /* int_types.h:108:19 */ + +// intptr_t and uintptr_t are signed and unsigned integer types large enough +// to hold any data pointer; that is, data pointers can be assigned into or +// from these integer types without losing precision. +type Intptr_t = int64 /* int_types.h:120:16 */ +type Uintptr_t = uint64 /* int_types.h:121:24 */ + +// The following define the fastest integer types that can hold the +// specified number of bits. +type Int_fast8_t = int8 /* int_types.h:132:16 */ +type Int_fast16_t = int32 /* int_types.h:136:15 */ +type Int_fast32_t = int32 /* int_types.h:137:15 */ +type Int_fast64_t = int64 /* int_types.h:139:16 */ + +type Uint_fast8_t = uint8 /* int_types.h:146:24 */ +type Uint_fast16_t = uint32 /* int_types.h:147:23 */ +type Uint_fast32_t = uint32 /* int_types.h:148:23 */ +type Uint_fast64_t = uint64 /* int_types.h:150:24 */ + +// The following define the smallest integer types that can hold the +// specified number of bits. +type Int_least8_t = int8 /* int_types.h:162:16 */ +type Int_least16_t = int16 /* int_types.h:166:17 */ +type Int_least32_t = int32 /* int_types.h:167:15 */ +type Int_least64_t = int64 /* int_types.h:169:16 */ + +// If these are changed, please update char16_t and char32_t in head/uchar.h. +type Uint_least8_t = uint8 /* int_types.h:179:24 */ +type Uint_least16_t = uint16 /* int_types.h:180:25 */ +type Uint_least32_t = uint32 /* int_types.h:181:23 */ +type Uint_least64_t = uint64 /* int_types.h:183:24 */ + +// Strictly conforming ANSI C environments prior to the 1999 +// revision of the C Standard (ISO/IEC 9899:1999) do not have +// the long long data type. +type Longlong_t = int64 /* types.h:72:20 */ +type U_longlong_t = uint64 /* types.h:73:28 */ + +// These types (t_{u}scalar_t) exist because the XTI/TPI/DLPI standards had +// to use them instead of int32_t and uint32_t because DEC had +// shipped 64-bit wide. +type T_scalar_t = int32 /* types.h:92:18 */ +type T_uscalar_t = uint32 /* types.h:93:18 */ + +// POSIX Extensions +type Uchar_t = uint8 /* types.h:102:23 */ +type Ushort_t = uint16 /* types.h:103:24 */ +type Uint_t = uint32 /* types.h:104:22 */ +type Ulong_t = uint64 /* types.h:105:23 */ + +type Caddr_t = uintptr /* types.h:107:15 */ // ? type +type Daddr_t = int64 /* types.h:108:15 */ // type +type Cnt_t = int16 /* types.h:109:16 */ // pointer difference + +// VM-related types +type Pfn_t = uint64 /* types.h:123:18 */ // page frame number +type Pgcnt_t = uint64 /* types.h:124:18 */ // number of pages +type Spgcnt_t = int64 /* types.h:125:15 */ // signed number of pages + +type Use_t = uint8 /* types.h:127:18 */ // use count for swap. +type Sysid_t = int16 /* types.h:128:16 */ +type Index_t = int16 /* types.h:129:16 */ +type Timeout_id_t = uintptr /* types.h:130:15 */ // opaque handle from timeout(9F) +type Bufcall_id_t = uintptr /* types.h:131:15 */ // opaque handle from bufcall(9F) + +// The size of off_t and related types depends on the setting of +// _FILE_OFFSET_BITS. (Note that other system headers define other types +// related to those defined here.) +// +// If _LARGEFILE64_SOURCE is defined, variants of these types that are +// explicitly 64 bits wide become available. + +type Off_t = int64 /* types.h:145:15 */ // offsets within files + +type Off64_t = int64 /* types.h:152:16 */ // offsets within files + +type Ino_t = uint64 /* types.h:161:18 */ // expanded inode type +type Blkcnt_t = int64 /* types.h:162:15 */ // count of file blocks +type Fsblkcnt_t = uint64 /* types.h:163:18 */ // count of file system blocks +type Fsfilcnt_t = uint64 /* types.h:164:18 */ // count of files + +type Ino64_t = uint64 /* types.h:174:16 */ // expanded inode type +type Blkcnt64_t = int64 /* types.h:175:18 */ // count of file blocks +type Fsblkcnt64_t = uint64 /* types.h:176:20 */ // count of file system blocks +type Fsfilcnt64_t = uint64 /* types.h:177:20 */ // count of files + +type Blksize_t = int32 /* types.h:187:14 */ // used for block sizes + +// The boolean_t type has had a varied amount of exposure over the years in +// terms of how its enumeration constants have been exposed. In particular, it +// originally used the __XOPEN_OR_POSIX macro to determine whether to prefix the +// B_TRUE and B_FALSE with an underscore. This check never included the +// question of if we were in a strict ANSI C environment or whether extensions +// were defined. +// +// Compilers such as clang started defaulting to always including an +// XOPEN_SOURCE declaration on behalf of users, but also noted __EXTENSIONS__. +// This would lead most software that had used the non-underscore versions to +// need it. As such, we have adjusted the non-strict XOPEN environment to retain +// its old behavior so as to minimize namespace pollution; however, we instead +// include both variants of the definitions in the generally visible version +// allowing software written in either world to hopefully end up in a good +// place. +// +// This isn't perfect, but should hopefully minimize the pain for folks actually +// trying to build software. +type Boolean_t = uint32 /* types.h:215:69 */ + +// The {u,}pad64_t types can be used in structures such that those structures +// may be accessed by code produced by compilation environments which don't +// support a 64 bit integral datatype. The intention is not to allow +// use of these fields in such environments, but to maintain the alignment +// and offsets of the structure. +// +// Similar comments for {u,}pad128_t. +// +// Note that these types do NOT generate any stronger alignment constraints +// than those available in the underlying ABI. See +type Pad64_t = int64 /* types.h:240:18 */ +type Upad64_t = uint64 /* types.h:241:18 */ + +type Pad128_t = struct { + F_q float64 + F__ccgo_pad1 [8]byte +} /* types.h:257:3 */ + +type Upad128_t = struct { + F_q float64 + F__ccgo_pad1 [8]byte +} /* types.h:262:3 */ + +type Offset_t = int64 /* types.h:264:20 */ +type U_offset_t = uint64 /* types.h:265:22 */ +type Len_t = uint64 /* types.h:266:22 */ +type Diskaddr_t = uint64 /* types.h:267:22 */ + +// Definitions remaining from previous partial support for 64-bit file +// offsets. This partial support for devices greater than 2gb requires +// compiler support for long long. +type Lloff_t = struct{ F_f int64 } /* types.h:284:3 */ + +type Lldaddr_t = struct{ F_f int64 } /* types.h:304:3 */ + +type K_fltset_t = uint32 /* types.h:317:16 */ // kernel fault set type + +// The following type is for various kinds of identifiers. The +// actual type must be the same for all since some system calls +// (such as sigsend) take arguments that may be any of these +// types. The enumeration type idtype_t defined in sys/procset.h +// is used to indicate what type of id is being specified -- +// a process id, process group id, session id, scheduling class id, +// user id, group id, project id, task id or zone id. +type Id_t = int32 /* types.h:329:14 */ + +type Lgrp_id_t = int32 /* types.h:334:15 */ // lgroup ID + +// Type useconds_t is an unsigned integral type capable of storing +// values at least in the range of zero to 1,000,000. +type Useconds_t = uint32 /* types.h:340:17 */ // Time, in microseconds + +type Suseconds_t = int64 /* types.h:344:14 */ // signed # of microseconds + +// Typedefs for dev_t components. +type Major_t = uint32 /* types.h:351:16 */ // major part of device number +type Minor_t = uint32 /* types.h:352:16 */ // minor part of device number + +// The data type of a thread priority. +type Pri_t = int16 /* types.h:361:15 */ + +// The data type for a CPU flags field. (Can be extended to larger unsigned +// types, if needed, limited by ability to update atomically.) +type Cpu_flag_t = uint16 /* types.h:367:18 */ + +// For compatibility reasons the following typedefs (prefixed o_) +// can't grow regardless of the EFT definition. Although, +// applications should not explicitly use these typedefs +// they may be included via a system header definition. +// WARNING: These typedefs may be removed in a future +// release. +// +// ex. the definitions in s5inode.h (now obsoleted) +// remained small to preserve compatibility +// in the S5 file system type. +type O_mode_t = uint16 /* types.h:380:18 */ // old file attribute type +type O_dev_t = int16 /* types.h:381:15 */ // old device type +type O_uid_t = uint16 /* types.h:382:18 */ // old UID type +type O_gid_t = uint16 /* types.h:383:17 */ // old GID type +type O_nlink_t = int16 /* types.h:384:15 */ // old file link type +type O_pid_t = int16 /* types.h:385:15 */ // old process id type +type O_ino_t = uint16 /* types.h:386:18 */ // old inode type + +// POSIX and XOPEN Declarations +type Key_t = int32 /* types.h:392:13 */ // IPC key type +type Mode_t = uint32 /* types.h:394:16 */ // file attribute type + +type Uid_t = uint32 /* types.h:401:22 */ // UID type + +type Gid_t = uint32 /* types.h:404:15 */ // GID type + +type Datalink_id_t = uint32 /* types.h:406:18 */ +type Vrid_t = uint32 /* types.h:407:18 */ + +type Taskid_t = int32 /* types.h:409:17 */ +type Projid_t = int32 /* types.h:410:17 */ +type Poolid_t = int32 /* types.h:411:14 */ +type Zoneid_t = int32 /* types.h:412:14 */ +type Ctid_t = int32 /* types.h:413:14 */ + +// POSIX definitions are same as defined in thread.h and synch.h. +// Any changes made to here should be reflected in corresponding +// files as described in comments. +type Pthread_t = uint32 /* types.h:420:16 */ // = thread_t in thread.h +type Pthread_key_t = uint32 /* types.h:421:16 */ // = thread_key_t in thread.h + +// "Magic numbers" tagging synchronization object types + +type X_pthread_mutex = struct { + F__pthread_mutex_flags struct { + F__pthread_mutex_flag1 uint16 + F__pthread_mutex_flag2 uint8 + F__pthread_mutex_ceiling uint8 + F__pthread_mutex_type uint16 + F__pthread_mutex_magic uint16 + } + F__pthread_mutex_lock struct { + F__ccgo_pad1 [0]uint64 + F__pthread_mutex_lock64 struct{ F__pthread_mutex_pad [8]uint8 } + } + F__pthread_mutex_data uint64 +} /* types.h:429:9 */ + +// = thread_key_t in thread.h + +// "Magic numbers" tagging synchronization object types + +type Pthread_mutex_t = X_pthread_mutex /* types.h:448:3 */ + +type X_pthread_cond = struct { + F__pthread_cond_flags struct { + F__pthread_cond_flag [4]uint8 + F__pthread_cond_type uint16 + F__pthread_cond_magic uint16 + } + F__pthread_cond_data uint64 +} /* types.h:450:9 */ + +type Pthread_cond_t = X_pthread_cond /* types.h:457:3 */ + +// UNIX 98 Extension +type X_pthread_rwlock = struct { + F__pthread_rwlock_readers int32 + F__pthread_rwlock_type uint16 + F__pthread_rwlock_magic uint16 + F__pthread_rwlock_mutex Pthread_mutex_t + F__pthread_rwlock_readercv Pthread_cond_t + F__pthread_rwlock_writercv Pthread_cond_t +} /* types.h:462:9 */ + +// UNIX 98 Extension +type Pthread_rwlock_t = X_pthread_rwlock /* types.h:469:3 */ + +// SUSV3 +type Pthread_barrier_t = struct { + F__pthread_barrier_count uint32 + F__pthread_barrier_current uint32 + F__pthread_barrier_cycle uint64 + F__pthread_barrier_reserved uint64 + F__pthread_barrier_lock Pthread_mutex_t + F__pthread_barrier_cond Pthread_cond_t +} /* types.h:481:3 */ + +type Pthread_spinlock_t = Pthread_mutex_t /* types.h:483:25 */ + +// attributes for threads, dynamically allocated by library +type X_pthread_attr = struct{ F__pthread_attrp uintptr } /* types.h:488:9 */ + +// attributes for threads, dynamically allocated by library +type Pthread_attr_t = X_pthread_attr /* types.h:490:3 */ + +// attributes for mutex, dynamically allocated by library +type X_pthread_mutexattr = struct{ F__pthread_mutexattrp uintptr } /* types.h:495:9 */ + +// attributes for mutex, dynamically allocated by library +type Pthread_mutexattr_t = X_pthread_mutexattr /* types.h:497:3 */ + +// attributes for cond, dynamically allocated by library +type X_pthread_condattr = struct{ F__pthread_condattrp uintptr } /* types.h:502:9 */ + +// attributes for cond, dynamically allocated by library +type Pthread_condattr_t = X_pthread_condattr /* types.h:504:3 */ + +// pthread_once +type X_once = struct{ F__pthread_once_pad [4]uint64 } /* types.h:509:9 */ + +// pthread_once +type Pthread_once_t = X_once /* types.h:511:3 */ + +// UNIX 98 Extensions +// attributes for rwlock, dynamically allocated by library +type X_pthread_rwlockattr = struct{ F__pthread_rwlockattrp uintptr } /* types.h:517:9 */ + +// UNIX 98 Extensions +// attributes for rwlock, dynamically allocated by library +type Pthread_rwlockattr_t = X_pthread_rwlockattr /* types.h:519:3 */ + +// SUSV3 +// attributes for pthread_barrier_t, dynamically allocated by library +type Pthread_barrierattr_t = struct{ F__pthread_barrierattrp uintptr } /* types.h:527:3 */ + +type Dev_t = uint64 /* types.h:529:17 */ // expanded device type + +type Nlink_t = uint32 /* types.h:532:16 */ // file link type +type Pid_t = int32 /* types.h:533:13 */ // size of something in bytes + +type Ssize_t = int64 /* types.h:551:14 */ // size of something in bytes or -1 + +type Time_t = int64 /* types.h:559:15 */ // time of day in seconds + +type Clock_t = int64 /* types.h:564:15 */ // relative time in a specified resolution + +type Clockid_t = int32 /* types.h:569:13 */ // clock identifier type + +type Timer_t = int32 /* types.h:574:13 */ // timer identifier type + +// BEGIN CSTYLED +type Unchar = uint8 /* types.h:580:23 */ +type Ushort = uint16 /* types.h:581:24 */ +type Uint = uint32 /* types.h:582:22 */ +type Ulong = uint64 /* types.h:583:23 */ +// END CSTYLED + +// The following is the value of type id_t to use to indicate the +// caller's current id. See procset.h for the type idtype_t +// which defines which kind of id is being specified. + +// The following value of type pfn_t is used to indicate +// invalid page frame number. + +// BEGIN CSTYLED +type U_char = uint8 /* types.h:650:23 */ +type U_short = uint16 /* types.h:651:24 */ +type U_int = uint32 /* types.h:652:22 */ +type U_long = uint64 /* types.h:653:23 */ +type X_quad = struct{ Fval [2]int32 } /* types.h:654:9 */ + +type Quad_t = X_quad /* types.h:654:38 */ // used by UFS +type Quad = Quad_t /* types.h:655:17 */ // used by UFS +// END CSTYLED + +// Nested include for BSD/sockets source compatibility. +// (The select macros used to be defined here). +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// +// Copyright 2010 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// University Copyright- Copyright (c) 1982, 1986, 1988 +// The Regents of the University of California +// All Rights Reserved +// +// University Acknowledgment- Portions of this document are derived from +// software developed by the University of California, Berkeley, and its +// contributors. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2005 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Implementation-private. This header should not be included +// directly by an application. The application should instead +// include which includes this header conditionally +// depending on which feature test macros are defined. By default, +// this header is included by . X/Open and POSIX +// standards requirements result in this header being included +// by only under a restricted set of conditions. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Time expressed in seconds and nanoseconds + +type Timespec = struct { + Ftv_sec int64 + Ftv_nsec int64 +} /* time_impl.h:57:9 */ + +// used by UFS +// END CSTYLED + +// Nested include for BSD/sockets source compatibility. +// (The select macros used to be defined here). +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// +// Copyright 2010 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// University Copyright- Copyright (c) 1982, 1986, 1988 +// The Regents of the University of California +// All Rights Reserved +// +// University Acknowledgment- Portions of this document are derived from +// software developed by the University of California, Berkeley, and its +// contributors. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2005 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Implementation-private. This header should not be included +// directly by an application. The application should instead +// include which includes this header conditionally +// depending on which feature test macros are defined. By default, +// this header is included by . X/Open and POSIX +// standards requirements result in this header being included +// by only under a restricted set of conditions. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Time expressed in seconds and nanoseconds + +type Timespec_t = Timespec /* time_impl.h:60:3 */ + +type Timestruc_t = Timespec /* time_impl.h:81:25 */ // definition per SVr4 + +// The following has been left in for backward compatibility. Portable +// applications should not use the structure name timestruc. + +// Timer specification +type Itimerspec = struct { + Fit_interval struct { + Ftv_sec int64 + Ftv_nsec int64 + } + Fit_value struct { + Ftv_sec int64 + Ftv_nsec int64 + } +} /* time_impl.h:95:9 */ + +// definition per SVr4 + +// The following has been left in for backward compatibility. Portable +// applications should not use the structure name timestruc. + +// Timer specification +type Itimerspec_t = Itimerspec /* time_impl.h:98:3 */ + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright (c) 1982, 1986, 1993 Regents of the University of California. +// All rights reserved. The Berkeley software License Agreement +// specifies the terms and conditions for redistribution. + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2020 OmniOS Community Edition (OmniOSce) Association. + +// Copyright (c) 2013, 2016 by Delphix. All rights reserved. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Structure returned by gettimeofday(2) system call, +// and used in other calls. + +type Timeval = struct { + Ftv_sec int64 + Ftv_usec int64 +} /* time.h:54:1 */ + +type Timezone = struct { + Ftz_minuteswest int32 + Ftz_dsttime int32 +} /* time.h:86:1 */ + +// Needed for longlong_t type. Placement of this due to +// including which relies on the presense of the itimerval +// structure. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2021 Oxide Computer Company + +// Operations on timevals. + +// Names of the interval timers, and structure +// defining a timer setting. +// time and when system is running on +// behalf of the process. +// time profiling of multithreaded +// programs. + +type Itimerval = struct { + Fit_interval struct { + Ftv_sec int64 + Ftv_usec int64 + } + Fit_value struct { + Ftv_sec int64 + Ftv_usec int64 + } +} /* time.h:209:1 */ + +// Definitions for commonly used resolutions. + +// Time expressed as a 64-bit nanosecond counter. +type Hrtime_t = int64 /* time.h:265:20 */ + +// The inclusion of is historical and was added for +// backward compatibility in delta 1.2 when a number of definitions +// were moved out of . More recently, the timespec and +// itimerspec structure definitions, along with the _CLOCK_*, CLOCK_*, +// _TIMER_*, and TIMER_* symbols were moved to , +// which is now included by . This change was due to POSIX +// 1003.1b-1993 and X/Open UNIX 98 requirements. For non-POSIX and +// non-X/Open applications, including this header will still make +// visible these definitions. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1988 AT&T +// All Rights Reserved + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2007 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2010 Nexenta Systems, Inc. Al rights reserved. +// Copyright 2016 Joyent, Inc. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1988 AT&T +// All Rights Reserved + +// Copyright 2014 Garrett D'Amore +// Copyright 2014 PALO, Richard. +// +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// An application should not include this header directly. Instead it +// should be included only through the inclusion of other Sun headers. +// +// The contents of this header is limited to identifiers specified in the +// C Standard. Any new identifiers specified in future amendments to the +// C Standard must be placed in this header. If these new identifiers +// are required to also be in the C++ Standard "std" namespace, then for +// anything other than macro definitions, corresponding "using" directives +// must also be added to . + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// This file and its contents are supplied under the terms of the +// Common Development and Distribution License ("CDDL"), version 1.0. +// You may only use this file in accordance with the terms of version +// 1.0 of the CDDL. +// +// A full copy of the text of the CDDL should have accompanied this +// source. A copy of the CDDL is also available via the Internet at +// http://www.illumos.org/license/CDDL. + +// Copyright 2014-2016 PALO, Richard. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// POSIX.1-2008 requires that the NULL macro be cast to type void *. + +type Tm = struct { + Ftm_sec int32 + Ftm_min int32 + Ftm_hour int32 + Ftm_mday int32 + Ftm_mon int32 + Ftm_year int32 + Ftm_wday int32 + Ftm_yday int32 + Ftm_isdst int32 +} /* time_iso.h:80:1 */ + +// Neither X/Open nor POSIX allow the inclusion of for the +// definition of the sigevent structure. Both require the inclusion +// of and when using the timer_create() function. +// However, X/Open also specifies that the sigevent structure be defined +// in as described in the header . This prevents +// compiler warnings for applications that only include and not +// also . The sigval union and the sigevent structure is +// therefore defined both here and in which gets included +// via inclusion of . +type Sigval = struct { + F__ccgo_pad1 [0]uint64 + Fsival_int int32 + F__ccgo_pad2 [4]byte +} /* time.h:125:1 */ + +type Sigevent = struct { + Fsigev_notify int32 + Fsigev_signo int32 + Fsigev_value struct { + F__ccgo_pad1 [0]uint64 + Fsival_int int32 + F__ccgo_pad2 [4]byte + } + Fsigev_notify_function uintptr + Fsigev_notify_attributes uintptr + F__sigev_pad2 int32 + F__ccgo_pad1 [4]byte +} /* time.h:133:1 */ + +type Locale_t = uintptr /* time.h:292:24 */ + +// The inclusion of is needed for the FD_CLR, +// FD_ISSET, FD_SET, and FD_SETSIZE macros as well as the +// select() prototype defined in the XOpen specifications +// beginning with XSH4v2. Placement required after definition +// for itimerval. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// +// Copyright 2010 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// University Copyright- Copyright (c) 1982, 1986, 1988 +// The Regents of the University of California +// All Rights Reserved +// +// University Acknowledgment- Portions of this document are derived from +// software developed by the University of California, Berkeley, and its +// contributors. + +// The sigset_t type is defined in and duplicated +// in as a result of XPG4v2 requirements. XPG6 +// now allows the visibility of signal.h in this header, however +// an order of inclusion problem occurs as a result of inclusion +// of in under certain conditions. +// Rather than include here, we've duplicated +// the sigset_t type instead. This type is required for the XPG6 +// introduced pselect() function also declared in this header. +type Sigset_t = struct{ F__sigbits [4]uint32 } /* select.h:76:3 */ + +// Select uses bit masks of file descriptors in longs. +// These macros manipulate such bit fields. +// FD_SETSIZE may be defined by the user, but the default here +// should be >= RLIM_FD_MAX. + +type Fd_mask = int64 /* select.h:92:14 */ +type Fds_mask = int64 /* select.h:94:14 */ + +// The value of _NBBY needs to be consistant with the value +// of NBBY in . + +type Fd_set1 = struct{ Ffds_bits [1024]int64 } /* select.h:120:9 */ + +// The value of _NBBY needs to be consistant with the value +// of NBBY in . + +type Fd_set = Fd_set1 /* select.h:125:3 */ // System Private interface to sysconf() + +type Sig_atomic_t = int32 /* signal_iso.h:58:13 */ + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2010 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2015, Joyent, Inc. + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// University Copyright- Copyright (c) 1982, 1986, 1988 +// The Regents of the University of California +// All Rights Reserved +// +// University Acknowledgment- Portions of this document are derived from +// software developed by the University of California, Berkeley, and its +// contributors. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2010 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2015, Joyent, Inc. + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// An application should not include this header directly. Instead it +// should be included only through the inclusion of other Sun headers. +// +// The contents of this header is limited to identifiers specified in the +// C Standard. Any new identifiers specified in future amendments to the +// C Standard must be placed in this header. If these new identifiers +// are required to also be in the C++ Standard "std" namespace, then for +// anything other than macro definitions, corresponding "using" directives +// must also be added to . + +// We need for the declaration of siginfo_t. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2021 Oxide Computer Company + +// The union sigval is also defined in as per X/Open and +// POSIX requirements. + +// The sigevent structure is also defined in as per X/Open and +// POSIX requirements. + +// values of sigev_notify + +// negative signal codes are reserved for future use for user generated +// signals + +// Get the machine dependent signal codes (SIGILL, SIGFPE, SIGSEGV, and +// SIGBUS) from + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2003 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright (c) 1988 AT&T +// All Rights Reserved + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// machsig.h is the machine dependent portion of siginfo.h (and is +// included by siginfo.h). A version of machsig.h should exist for +// each architecture. The codes for SIGILL, SIGFPU, SIGSEGV and SIGBUS +// are in this file. The codes for SIGTRAP, SIGCLD(SIGCHLD), and +// SIGPOLL are architecture independent and may be found in siginfo.h. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2007 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// University Copyright- Copyright (c) 1982, 1986, 1988 +// The Regents of the University of California +// All Rights Reserved +// +// University Acknowledgment- Portions of this document are derived from +// software developed by the University of California, Berkeley, and its +// contributors. + +// This file describes the data type returned by vm routines +// which handle faults. +// +// If FC_CODE(fc) == FC_OBJERR, then FC_ERRNO(fc) contains the errno value +// returned by the underlying object mapped at the fault address. + +type Faultcode_t = int32 /* faultcode.h:66:13 */ + +// SIGILL signal codes + +// SIGEMT signal codes + +// SIGFPE signal codes + +// SIGSEGV signal codes + +// SIGBUS signal codes + +// SIGTRAP signal codes + +// SIGCLD signal codes + +// SIGPOLL signal codes + +// SIGPROF signal codes + +// Inclusion of is needed for the declaration of +// timestruc_t. However, since inclusion of results +// in X/Open and POSIX namespace pollution, the definition for +// timestruct_t has been duplicated in a standards namespace safe header +// . In , the structure +// name, tag, and member names, as well as the type itself, all have +// leading underscores to protect namespace. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2005 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Implementation-private. This header should not be included +// directly by an application. The application should instead +// include which includes this header conditionally +// depending on which feature test macros are defined. By default, +// this header is included by . X/Open and POSIX +// standards requirements result in this header being included +// by only under a restricted set of conditions. + +// The inclusion of is needed for definitions of pid_t, etc. +// Placement here is due to a dependency in which is included +// by for the sigevent structure. Hence this inclusion must +// follow that definition. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2021 Oxide Computer Company + +type Siginfo = struct { + Fsi_signo int32 + Fsi_code int32 + Fsi_errno int32 + Fsi_pad int32 + F__data struct { + F__ccgo_pad1 [0]uint64 + F__pad [60]int32 + } +} /* siginfo.h:237:9 */ + +// SIGILL signal codes + +// SIGEMT signal codes + +// SIGFPE signal codes + +// SIGSEGV signal codes + +// SIGBUS signal codes + +// SIGTRAP signal codes + +// SIGCLD signal codes + +// SIGPOLL signal codes + +// SIGPROF signal codes + +// Inclusion of is needed for the declaration of +// timestruc_t. However, since inclusion of results +// in X/Open and POSIX namespace pollution, the definition for +// timestruct_t has been duplicated in a standards namespace safe header +// . In , the structure +// name, tag, and member names, as well as the type itself, all have +// leading underscores to protect namespace. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2005 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Implementation-private. This header should not be included +// directly by an application. The application should instead +// include which includes this header conditionally +// depending on which feature test macros are defined. By default, +// this header is included by . X/Open and POSIX +// standards requirements result in this header being included +// by only under a restricted set of conditions. + +// The inclusion of is needed for definitions of pid_t, etc. +// Placement here is due to a dependency in which is included +// by for the sigevent structure. Hence this inclusion must +// follow that definition. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2021 Oxide Computer Company + +type Siginfo_t = Siginfo /* siginfo.h:304:3 */ + +// XXX -- internal version is identical to siginfo_t but without the padding. +// This must be maintained in sync with it. + +type K_siginfo = struct { + Fsi_signo int32 + Fsi_code int32 + Fsi_errno int32 + Fsi_pad int32 + F__data struct { + F__proc struct { + F__pid int32 + F__ccgo_pad1 [4]byte + F__pdata struct { + F__kill struct { + F__uid uint32 + F__ccgo_pad1 [4]byte + F__value struct { + F__ccgo_pad1 [0]uint64 + Fsival_int int32 + F__ccgo_pad2 [4]byte + } + } + F__ccgo_pad1 [8]byte + } + F__ctid int32 + F__zoneid int32 + } + } +} /* siginfo.h:379:9 */ + +// XXX -- internal version is identical to siginfo_t but without the padding. +// This must be maintained in sync with it. + +type K_siginfo_t = K_siginfo /* siginfo.h:438:3 */ + +type Sigqueue = struct { + Fsq_next uintptr + Fsq_info K_siginfo_t + Fsq_func uintptr + Fsq_backptr uintptr + Fsq_external int32 + F__ccgo_pad1 [4]byte +} /* siginfo.h:440:9 */ + +type Sigqueue_t = Sigqueue /* siginfo.h:447:3 */ + +// indication whether to queue the signal or not + +// Duplicated in as a result of XPG4v2 requirements + +type K_sigset_t = struct{ F__sigbits [3]uint32 } /* signal.h:73:3 */ + +// The signal handler routine can have either one or three arguments. +// Existing C code has used either form so not specifing the arguments +// neatly finesses the problem. C++ doesn't accept this. To C++ +// "(*sa_handler)()" indicates a routine with no arguments (ANSI C would +// specify this as "(*sa_handler)(void)"). One or the other form must be +// used for C++ and the only logical choice is "(*sa_handler)(int)" to allow +// the SIG_* defines to work. "(*sa_sigaction)(int, siginfo_t *, void *)" +// can be used for the three argument form. + +// Note: storage overlap by sa_handler and sa_sigaction +type Sigaction = struct { + Fsa_flags int32 + F__ccgo_pad1 [4]byte + F_funcptr struct{ F_handler uintptr } + Fsa_mask Sigset_t +} /* signal.h:89:1 */ + +// this is only valid for SIGCLD + +// non-conformant ANSI compilation + +// definitions for the sa_flags field + +// this is only valid for SIGCLD + +// use of these symbols by applications is injurious +// to binary compatibility + +// Duplicated in as a result of XPG4v2 requirements. +type Sigaltstack = struct { + Fss_sp uintptr + Fss_size uint64 + Fss_flags int32 + F__ccgo_pad1 [4]byte +} /* signal.h:176:9 */ + +// this is only valid for SIGCLD + +// non-conformant ANSI compilation + +// definitions for the sa_flags field + +// this is only valid for SIGCLD + +// use of these symbols by applications is injurious +// to binary compatibility + +// Duplicated in as a result of XPG4v2 requirements. +type Stack_t = Sigaltstack /* signal.h:183:3 */ + +// signotify id used only by libc for mq_notify()/aio_notify() +type Signotify_id = struct { + Fsn_pid int32 + Fsn_index int32 + Fsn_pad int32 +} /* signal.h:205:9 */ + +// signotify id used only by libc for mq_notify()/aio_notify() +type Signotify_id_t = Signotify_id /* signal.h:209:3 */ + +// Command codes for sig_notify call + +// Added as per XPG4v2 +type Sigstack = struct { + Fss_sp uintptr + Fss_onstack int32 + F__ccgo_pad1 [4]byte +} /* signal.h:235:1 */ + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2021 Oxide Computer Company + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2010 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2015, Joyent, Inc. + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// University Copyright- Copyright (c) 1982, 1986, 1988 +// The Regents of the University of California +// All Rights Reserved +// +// University Acknowledgment- Portions of this document are derived from +// software developed by the University of California, Berkeley, and its +// contributors. + +// This file defines the data needed to specify a set of +// processes. These types are used by the sigsend, sigsendset, +// priocntl, priocntlset, waitid, evexit, and evexitset system +// calls. + +// The following defines the values for an identifier type. It +// specifies the interpretation of an id value. An idtype and +// id together define a simple set of processes. +type Idtype_t = uint32 /* procset.h:80:3 */ + +// The following defines the operations which can be performed to +// combine two simple sets of processes to form another set of +// processes. +type Idop_t = uint32 /* procset.h:102:3 */ + +// The following structure is used to define a set of processes. +// The set is defined in terms of two simple sets of processes +// and an operator which operates on these two operand sets. +type Procset = struct { + Fp_op uint32 + Fp_lidtype uint32 + Fp_lid int32 + Fp_ridtype uint32 + Fp_rid int32 +} /* procset.h:110:9 */ + +// The following structure is used to define a set of processes. +// The set is defined in terms of two simple sets of processes +// and an operator which operates on these two operand sets. +type Procset_t = Procset /* procset.h:125:3 */ + +var _ int8 /* gen.c:2:13: */ diff --git a/vendor/modernc.org/libc/signal/signal_linux_loong64.go b/vendor/modernc.org/libc/signal/signal_linux_loong64.go new file mode 100644 index 000000000..0ed9d081e --- /dev/null +++ b/vendor/modernc.org/libc/signal/signal_linux_loong64.go @@ -0,0 +1,2495 @@ +// Code generated by 'ccgo signal/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o signal/signal_linux_loong64.go -pkgname signal', DO NOT EDIT. + +package signal + +import ( + "math" + "reflect" + "sync/atomic" + "unsafe" +) + +var _ = math.Pi +var _ reflect.Kind +var _ atomic.Value +var _ unsafe.Pointer + +const ( + CONTEXT_INFO_ALIGN = 16 // sigcontext.h:28:1: + FPU_CTX_ALIGN = 8 // sigcontext.h:37:1: + FPU_CTX_MAGIC = 0x46505501 // sigcontext.h:36:1: + LARCH_NGREG = 32 // ucontext.h:31:1: + LARCH_REG_A0 = 4 // ucontext.h:37:1: + LARCH_REG_NARGS = 8 // ucontext.h:39:1: + LARCH_REG_RA = 1 // ucontext.h:33:1: + LARCH_REG_S0 = 23 // ucontext.h:35:1: + LARCH_REG_S1 = 24 // ucontext.h:36:1: + LARCH_REG_S2 = 25 // ucontext.h:38:1: + LARCH_REG_SP = 3 // ucontext.h:34:1: + LASX_CTX_ALIGN = 32 // sigcontext.h:55:1: + LASX_CTX_MAGIC = 0x41535801 // sigcontext.h:54:1: + LSX_CTX_ALIGN = 16 // sigcontext.h:46:1: + LSX_CTX_MAGIC = 0x53580001 // sigcontext.h:45:1: + MINSIGSTKSZ = 4096 // sigstack.h:27:1: + NSIG = 65 // signal.h:184:1: + SA_INTERRUPT = 0x20000000 // sigaction.h:70:1: + SA_NOCLDSTOP = 1 // sigaction.h:56:1: + SA_NOCLDWAIT = 2 // sigaction.h:57:1: + SA_NODEFER = 0x40000000 // sigaction.h:65:1: + SA_NOMASK = 1073741824 // sigaction.h:73:1: + SA_ONESHOT = 2147483648 // sigaction.h:74:1: + SA_ONSTACK = 0x08000000 // sigaction.h:61:1: + SA_RESETHAND = 0x80000000 // sigaction.h:67:1: + SA_RESTART = 0x10000000 // sigaction.h:64:1: + SA_SIGINFO = 4 // sigaction.h:58:1: + SA_STACK = 134217728 // sigaction.h:75:1: + SC_ADDRERR_RD = 1073741824 // sigcontext.h:17:1: + SC_ADDRERR_WR = 2147483648 // sigcontext.h:19:1: + SC_USED_FP = 1 // sigcontext.h:15:1: + SIGABRT = 6 // signum-generic.h:50:1: + SIGALRM = 14 // signum-generic.h:61:1: + SIGBUS = 7 // signum-arch.h:33:1: + SIGCHLD = 17 // signum-arch.h:41:1: + SIGCLD = 17 // signum-arch.h:59:1: + SIGCONT = 18 // signum-arch.h:40:1: + SIGFPE = 8 // signum-generic.h:51:1: + SIGHUP = 1 // signum-generic.h:56:1: + SIGILL = 4 // signum-generic.h:49:1: + SIGINT = 2 // signum-generic.h:48:1: + SIGIO = 29 // signum-arch.h:57:1: + SIGIOT = 6 // signum-arch.h:58:1: + SIGKILL = 9 // signum-generic.h:59:1: + SIGPIPE = 13 // signum-generic.h:60:1: + SIGPOLL = 29 // signum-arch.h:44:1: + SIGPROF = 27 // signum-arch.h:48:1: + SIGPWR = 30 // signum-arch.h:30:1: + SIGQUIT = 3 // signum-generic.h:57:1: + SIGSEGV = 11 // signum-generic.h:52:1: + SIGSTKFLT = 16 // signum-arch.h:29:1: + SIGSTKSZ = 16384 // sigstack.h:30:1: + SIGSTOP = 19 // signum-arch.h:38:1: + SIGSYS = 31 // signum-arch.h:34:1: + SIGTERM = 15 // signum-generic.h:53:1: + SIGTRAP = 5 // signum-generic.h:58:1: + SIGTSTP = 20 // signum-arch.h:39:1: + SIGTTIN = 21 // signum-arch.h:42:1: + SIGTTOU = 22 // signum-arch.h:43:1: + SIGURG = 23 // signum-arch.h:37:1: + SIGUSR1 = 10 // signum-arch.h:49:1: + SIGUSR2 = 12 // signum-arch.h:50:1: + SIGVTALRM = 26 // signum-arch.h:47:1: + SIGWINCH = 28 // signum-arch.h:54:1: + SIGXCPU = 24 // signum-arch.h:46:1: + SIGXFSZ = 25 // signum-arch.h:45:1: + SIG_BLOCK = 0 // sigaction.h:79:1: + SIG_SETMASK = 2 // sigaction.h:81:1: + SIG_UNBLOCK = 1 // sigaction.h:80:1: + X_ABILP64 = 3 // :377:1: + X_ASM_GENERIC_INT_LL64_H = 0 // int-ll64.h:10:1: + X_ASM_GENERIC_TYPES_H = 0 // types.h:3:1: + X_ASM_SIGCONTEXT_H = 0 // sigcontext.h:9:1: + X_ATFILE_SOURCE = 1 // features.h:353:1: + X_BITS_ATOMIC_WIDE_COUNTER_H = 0 // atomic_wide_counter.h:20:1: + X_BITS_ENDIANNESS_H = 1 // endianness.h:2:1: + X_BITS_ENDIAN_H = 1 // endian.h:20:1: + X_BITS_PTHREADTYPES_ARCH_H = 1 // pthreadtypes-arch.h:21:1: + X_BITS_PTHREADTYPES_COMMON_H = 1 // pthreadtypes.h:20:1: + X_BITS_SIGACTION_H = 1 // sigaction.h:20:1: + X_BITS_SIGCONTEXT_H = 1 // sigcontext.h:19:1: + X_BITS_SIGEVENT_CONSTS_H = 1 // sigevent-consts.h:20:1: + X_BITS_SIGINFO_ARCH_H = 1 // siginfo-arch.h:3:1: + X_BITS_SIGINFO_CONSTS_H = 1 // siginfo-consts.h:20:1: + X_BITS_SIGNUM_ARCH_H = 1 // signum-arch.h:20:1: + X_BITS_SIGNUM_GENERIC_H = 1 // signum-generic.h:20:1: + X_BITS_SIGSTACK_H = 1 // sigstack.h:20:1: + X_BITS_SIGTHREAD_H = 1 // sigthread.h:20:1: + X_BITS_SS_FLAGS_H = 1 // ss_flags.h:20:1: + X_BITS_TIME64_H = 1 // time64.h:24:1: + X_BITS_TYPESIZES_H = 1 // typesizes.h:24:1: + X_BITS_TYPES_H = 1 // types.h:24:1: + X_BSD_SIZE_T_ = 0 // stddef.h:193:1: + X_BSD_SIZE_T_DEFINED_ = 0 // stddef.h:196:1: + X_DEFAULT_SOURCE = 1 // features.h:238:1: + X_FEATURES_H = 1 // features.h:19:1: + X_FILE_OFFSET_BITS = 64 // :25:1: + X_GCC_SIZE_T = 0 // stddef.h:200:1: + X_LINUX_POSIX_TYPES_H = 0 // posix_types.h:3:1: + X_LINUX_STDDEF_H = 0 // stddef.h:3:1: + X_LINUX_TYPES_H = 0 // types.h:3:1: + X_LOONGARCH_ARCH = "loongarch64" // :214:1: + X_LOONGARCH_ARCH_LOONGARCH64 = 1 // :340:1: + X_LOONGARCH_FPSET = 32 // :265:1: + X_LOONGARCH_SIM = 3 // :233:1: + X_LOONGARCH_SPFPSET = 32 // :88:1: + X_LOONGARCH_SZINT = 32 // :230:1: + X_LOONGARCH_SZLONG = 64 // :388:1: + X_LOONGARCH_SZPTR = 64 // :200:1: + X_LOONGARCH_TUNE = "la464" // :245:1: + X_LOONGARCH_TUNE_LA464 = 1 // :63:1: + X_LP64 = 1 // :372:1: + X_NSIG = 65 // signum-generic.h:79:1: + X_POSIX_C_SOURCE = 200809 // features.h:292:1: + X_POSIX_SOURCE = 1 // features.h:290:1: + X_SIGNAL_H = 0 // signal.h:23:1: + X_SIZET_ = 0 // stddef.h:201:1: + X_SIZE_T = 0 // stddef.h:187:1: + X_SIZE_T_ = 0 // stddef.h:192:1: + X_SIZE_T_DECLARED = 0 // stddef.h:197:1: + X_SIZE_T_DEFINED = 0 // stddef.h:195:1: + X_SIZE_T_DEFINED_ = 0 // stddef.h:194:1: + X_STDC_PREDEF_H = 1 // :223:1: + X_STRUCT_TIMESPEC = 1 // struct_timespec.h:3:1: + X_SYS_CDEFS_H = 1 // cdefs.h:20:1: + X_SYS_SIZE_T_H = 0 // stddef.h:188:1: + X_SYS_UCONTEXT_H = 1 // ucontext.h:23:1: + X_THREAD_MUTEX_INTERNAL_H = 1 // struct_mutex.h:20:1: + X_THREAD_SHARED_TYPES_H = 1 // thread-shared-types.h:20:1: + X_T_SIZE = 0 // stddef.h:190:1: + X_T_SIZE_ = 0 // stddef.h:189:1: + Linux = 1 // :308:1: + Unix = 1 // :247:1: +) + +// POSIX names to access some of the members. + +// sigevent constants. Linux version. +// Copyright (C) 1997-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// `sigev_notify' values. +const ( /* sigevent-consts.h:27:1: */ + SIGEV_SIGNAL = 0 // Notify via signal. + SIGEV_NONE = 1 // Other notification: meaningless. + SIGEV_THREAD = 2 // Deliver via thread creation. + + SIGEV_THREAD_ID = 4 +) + +// `si_code' values for SIGSEGV signal. +const ( /* siginfo-consts.h:119:1: */ + SEGV_MAPERR = 1 // Address not mapped to object. + SEGV_ACCERR = 2 // Invalid permissions for mapped object. + SEGV_BNDERR = 3 // Bounds checking failure. + SEGV_PKUERR = 4 // Protection key checking failure. + SEGV_ACCADI = 5 // ADI not enabled for mapped object. + SEGV_ADIDERR = 6 // Disrupting MCD error. + SEGV_ADIPERR = 7 // Precise MCD exception. + SEGV_MTEAERR = 8 // Asynchronous ARM MTE error. + SEGV_MTESERR = 9 +) + +// `si_code' values for SIGBUS signal. +const ( /* siginfo-consts.h:142:1: */ + BUS_ADRALN = 1 // Invalid address alignment. + BUS_ADRERR = 2 // Non-existent physical address. + BUS_OBJERR = 3 // Object specific hardware error. + BUS_MCEERR_AR = 4 // Hardware memory error: action required. + BUS_MCEERR_AO = 5 +) + +// `si_code' values for SIGCHLD signal. +const ( /* siginfo-consts.h:176:1: */ + CLD_EXITED = 1 // Child has exited. + CLD_KILLED = 2 // Child was killed. + CLD_DUMPED = 3 // Child terminated abnormally. + CLD_TRAPPED = 4 // Traced child has trapped. + CLD_STOPPED = 5 // Child has stopped. + CLD_CONTINUED = 6 +) + +// `si_code' values for SIGPOLL signal. +const ( /* siginfo-consts.h:193:1: */ + POLL_IN = 1 // Data input available. + POLL_OUT = 2 // Output buffers available. + POLL_MSG = 3 // Input message available. + POLL_ERR = 4 // I/O error. + POLL_PRI = 5 // High priority input available. + POLL_HUP = 6 +) + +// X/Open requires some more fields with fixed names. + +// siginfo constants. Linux version. +// Copyright (C) 1997-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Most of these constants are uniform across all architectures, but there +// is one exception. +// Architecture-specific adjustments to siginfo_t. + +// Values for `si_code'. Positive values are reserved for kernel-generated +// +// signals. +const ( /* siginfo-consts.h:35:1: */ + SI_ASYNCNL = -60 // Sent by asynch name lookup completion. + SI_DETHREAD = -7 // Sent by execve killing subsidiary + // threads. + SI_TKILL = -6 // Sent by tkill. + SI_SIGIO = -5 // Sent by queued SIGIO. + SI_ASYNCIO = -4 // Sent by AIO completion. + SI_MESGQ = -3 // Sent by real time mesq state change. + SI_TIMER = -2 // Sent by timer expiration. + SI_QUEUE = -1 // Sent by sigqueue. + SI_USER = 0 // Sent by kill, sigsend. + SI_KERNEL = 128 +) + +// `si_code' values for SIGILL signal. +const ( /* siginfo-consts.h:71:1: */ + ILL_ILLOPC = 1 // Illegal opcode. + ILL_ILLOPN = 2 // Illegal operand. + ILL_ILLADR = 3 // Illegal addressing mode. + ILL_ILLTRP = 4 // Illegal trap. + ILL_PRVOPC = 5 // Privileged opcode. + ILL_PRVREG = 6 // Privileged register. + ILL_COPROC = 7 // Coprocessor error. + ILL_BADSTK = 8 // Internal stack error. + ILL_BADIADDR = 9 +) + +// `si_code' values for SIGFPE signal. +const ( /* siginfo-consts.h:94:1: */ + FPE_INTDIV = 1 // Integer divide by zero. + FPE_INTOVF = 2 // Integer overflow. + FPE_FLTDIV = 3 // Floating point divide by zero. + FPE_FLTOVF = 4 // Floating point overflow. + FPE_FLTUND = 5 // Floating point underflow. + FPE_FLTRES = 6 // Floating point inexact result. + FPE_FLTINV = 7 // Floating point invalid operation. + FPE_FLTSUB = 8 // Subscript out of range. + FPE_FLTUNK = 14 // Undiagnosed floating-point exception. + FPE_CONDTRAP = 15 +) + +// sigstack, sigaltstack definitions. +// Copyright (C) 2022-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Minimum stack size for a signal handler. + +// System default stack size. + +// Definition of MINSIGSTKSZ and SIGSTKSZ. Linux version. +// Copyright (C) 2020-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// ss_flags values for stack_t. Linux version. +// Copyright (C) 1998-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Possible values for `ss_flags'. +const ( /* ss_flags.h:27:1: */ + SS_ONSTACK = 1 + SS_DISABLE = 2 +) + +type Ptrdiff_t = int64 /* :3:26 */ + +type Size_t = uint64 /* :9:23 */ + +type Wchar_t = int32 /* :15:24 */ + +type X__int128_t = struct { + Flo int64 + Fhi int64 +} /* :21:43 */ // must match modernc.org/mathutil.Int128 +type X__uint128_t = struct { + Flo uint64 + Fhi uint64 +} /* :22:44 */ // must match modernc.org/mathutil.Int128 + +type X__builtin_va_list = uintptr /* :46:14 */ +type X__float128 = float64 /* :47:21 */ + +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// ISO C99 Standard: 7.14 Signal handling + +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// These are defined by the user (or the compiler) +// to specify the desired environment: +// +// __STRICT_ANSI__ ISO Standard C. +// _ISOC99_SOURCE Extensions to ISO C89 from ISO C99. +// _ISOC11_SOURCE Extensions to ISO C99 from ISO C11. +// _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X. +// __STDC_WANT_LIB_EXT2__ +// Extensions to ISO C99 from TR 27431-2:2010. +// __STDC_WANT_IEC_60559_BFP_EXT__ +// Extensions to ISO C11 from TS 18661-1:2014. +// __STDC_WANT_IEC_60559_FUNCS_EXT__ +// Extensions to ISO C11 from TS 18661-4:2015. +// __STDC_WANT_IEC_60559_TYPES_EXT__ +// Extensions to ISO C11 from TS 18661-3:2015. +// __STDC_WANT_IEC_60559_EXT__ +// ISO C2X interfaces defined only in Annex F. +// +// _POSIX_SOURCE IEEE Std 1003.1. +// _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2; +// if >=199309L, add IEEE Std 1003.1b-1993; +// if >=199506L, add IEEE Std 1003.1c-1995; +// if >=200112L, all of IEEE 1003.1-2004 +// if >=200809L, all of IEEE 1003.1-2008 +// _XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if +// Single Unix conformance is wanted, to 600 for the +// sixth revision, to 700 for the seventh revision. +// _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions. +// _LARGEFILE_SOURCE Some more functions for correct standard I/O. +// _LARGEFILE64_SOURCE Additional functionality from LFS for large files. +// _FILE_OFFSET_BITS=N Select default filesystem interface. +// _ATFILE_SOURCE Additional *at interfaces. +// _DYNAMIC_STACK_SIZE_SOURCE Select correct (but non compile-time constant) +// MINSIGSTKSZ, SIGSTKSZ and PTHREAD_STACK_MIN. +// _GNU_SOURCE All of the above, plus GNU extensions. +// _DEFAULT_SOURCE The default set of features (taking precedence over +// __STRICT_ANSI__). +// +// _FORTIFY_SOURCE Add security hardening to many library functions. +// Set to 1, 2 or 3; 3 performs stricter checks than 2, which +// performs stricter checks than 1. +// +// _REENTRANT, _THREAD_SAFE +// Obsolete; equivalent to _POSIX_C_SOURCE=199506L. +// +// The `-ansi' switch to the GNU C compiler, and standards conformance +// options such as `-std=c99', define __STRICT_ANSI__. If none of +// these are defined, or if _DEFAULT_SOURCE is defined, the default is +// to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to +// 200809L, as well as enabling miscellaneous functions from BSD and +// SVID. If more than one of these are defined, they accumulate. For +// example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together +// give you ISO C, 1003.1, and 1003.2, but nothing else. +// +// These are defined by this file and are used by the +// header files to decide what to declare or define: +// +// __GLIBC_USE (F) Define things from feature set F. This is defined +// to 1 or 0; the subsequent macros are either defined +// or undefined, and those tests should be moved to +// __GLIBC_USE. +// __USE_ISOC11 Define ISO C11 things. +// __USE_ISOC99 Define ISO C99 things. +// __USE_ISOC95 Define ISO C90 AMD1 (C95) things. +// __USE_ISOCXX11 Define ISO C++11 things. +// __USE_POSIX Define IEEE Std 1003.1 things. +// __USE_POSIX2 Define IEEE Std 1003.2 things. +// __USE_POSIX199309 Define IEEE Std 1003.1, and .1b things. +// __USE_POSIX199506 Define IEEE Std 1003.1, .1b, .1c and .1i things. +// __USE_XOPEN Define XPG things. +// __USE_XOPEN_EXTENDED Define X/Open Unix things. +// __USE_UNIX98 Define Single Unix V2 things. +// __USE_XOPEN2K Define XPG6 things. +// __USE_XOPEN2KXSI Define XPG6 XSI things. +// __USE_XOPEN2K8 Define XPG7 things. +// __USE_XOPEN2K8XSI Define XPG7 XSI things. +// __USE_LARGEFILE Define correct standard I/O things. +// __USE_LARGEFILE64 Define LFS things with separate names. +// __USE_FILE_OFFSET64 Define 64bit interface as default. +// __USE_MISC Define things from 4.3BSD or System V Unix. +// __USE_ATFILE Define *at interfaces and AT_* constants for them. +// __USE_DYNAMIC_STACK_SIZE Define correct (but non compile-time constant) +// MINSIGSTKSZ, SIGSTKSZ and PTHREAD_STACK_MIN. +// __USE_GNU Define GNU extensions. +// __USE_FORTIFY_LEVEL Additional security measures used, according to level. +// +// The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are +// defined by this file unconditionally. `__GNU_LIBRARY__' is provided +// only for compatibility. All new code should use the other symbols +// to test for features. +// +// All macros listed above as possibly being defined by this file are +// explicitly undefined if they are not explicitly defined. +// Feature-test macros that are not defined by the user or compiler +// but are implied by the other feature-test macros defined (or by the +// lack of any definitions) are defined by the file. +// +// ISO C feature test macros depend on the definition of the macro +// when an affected header is included, not when the first system +// header is included, and so they are handled in +// , which does not have a multiple include +// guard. Feature test macros that can be handled from the first +// system header included are handled here. + +// Undefine everything, so we get a clean slate. + +// Suppress kernel-name space pollution unless user expressedly asks +// for it. + +// Convenience macro to test the version of gcc. +// Use like this: +// #if __GNUC_PREREQ (2,8) +// ... code requiring gcc 2.8 or later ... +// #endif +// Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was +// added in 2.0. + +// Similarly for clang. Features added to GCC after version 4.2 may +// or may not also be available in clang, and clang's definitions of +// __GNUC(_MINOR)__ are fixed at 4 and 2 respectively. Not all such +// features can be queried via __has_extension/__has_feature. + +// Whether to use feature set F. + +// _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for +// _DEFAULT_SOURCE. If _DEFAULT_SOURCE is present we do not +// issue a warning; the expectation is that the source is being +// transitioned to use the new macro. + +// If _GNU_SOURCE was defined by the user, turn on all the other features. + +// If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined, +// define _DEFAULT_SOURCE. + +// This is to enable the ISO C2X extension. + +// This is to enable the ISO C11 extension. + +// This is to enable the ISO C99 extension. + +// This is to enable the ISO C90 Amendment 1:1995 extension. + +// If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE +// is defined, use POSIX.1-2008 (or another version depending on +// _XOPEN_SOURCE). + +// Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be +// defined in all multithreaded code. GNU libc has not required this +// for many years. We now treat them as compatibility synonyms for +// _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with +// comprehensive support for multithreaded code. Using them never +// lowers the selected level of POSIX conformance, only raises it. + +// Features part to handle 64-bit time_t support. +// Copyright (C) 2021-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// We need to know the word size in order to check the time size. +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Bit size of the time_t type at glibc build time, general case. +// Copyright (C) 2018-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Size in bits of the 'time_t' type of the default ABI. + +// The function 'gets' existed in C89, but is impossible to use +// safely. It has been removed from ISO C11 and ISO C++14. Note: for +// compatibility with various implementations of , this test +// must consider only the value of __cplusplus when compiling C++. + +// GNU formerly extended the scanf functions with modified format +// specifiers %as, %aS, and %a[...] that allocate a buffer for the +// input using malloc. This extension conflicts with ISO C99, which +// defines %a as a standalone format specifier that reads a floating- +// point number; moreover, POSIX.1-2008 provides the same feature +// using the modifier letter 'm' instead (%ms, %mS, %m[...]). +// +// We now follow C99 unless GNU extensions are active and the compiler +// is specifically in C89 or C++98 mode (strict or not). For +// instance, with GCC, -std=gnu11 will have C99-compliant scanf with +// or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the +// old extension. + +// ISO C2X added support for a 0b or 0B prefix on binary constants as +// inputs to strtol-family functions (base 0 or 2). This macro is +// used to condition redirection in headers to allow that redirection +// to be disabled when building those functions, despite _GNU_SOURCE +// being defined. + +// Get definitions of __STDC_* predefined macros, if the compiler has +// not preincluded this header automatically. +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// This macro indicates that the installed library is the GNU C Library. +// For historic reasons the value now is 6 and this will stay from now +// on. The use of this variable is deprecated. Use __GLIBC__ and +// __GLIBC_MINOR__ now (see below) when you want to test for a specific +// GNU C library version and use the values in to get +// the sonames of the shared libraries. + +// Major and minor version number of the GNU C library package. Use +// these macros to test for features in specific releases. + +// This is here only because every header file already includes this one. +// Copyright (C) 1992-2023 Free Software Foundation, Inc. +// Copyright The GNU Toolchain Authors. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// We are almost always included from features.h. + +// The GNU libc does not support any K&R compilers or the traditional mode +// of ISO C compilers anymore. Check for some of the combinations not +// supported anymore. + +// Some user header file might have defined this before. + +// Compilers that lack __has_attribute may object to +// #if defined __has_attribute && __has_attribute (...) +// even though they do not need to evaluate the right-hand side of the &&. +// Similarly for __has_builtin, etc. + +// All functions, except those with callbacks or those that +// synchronize memory, are leaf functions. + +// GCC can always grok prototypes. For C++ programs we add throw() +// to help it optimize the function calls. But this only works with +// gcc 2.8.x and egcs. For gcc 3.4 and up we even mark C functions +// as non-throwing using a function attribute since programs can use +// the -fexceptions options for C code as well. + +// These two macros are not used in glibc anymore. They are kept here +// only because some other projects expect the macros to be defined. + +// For these things, GCC behaves the ANSI way normally, +// and the non-ANSI way under -traditional. + +// This is not a typedef so `const __ptr_t' does the right thing. + +// C++ needs to know that types and declarations are C, not C++. + +// Fortify support. + +// Use __builtin_dynamic_object_size at _FORTIFY_SOURCE=3 when available. + +// Support for flexible arrays. +// Headers that should use flexible arrays only if they're "real" +// (e.g. only if they won't affect sizeof()) should test +// #if __glibc_c99_flexarr_available. + +// __asm__ ("xyz") is used throughout the headers to rename functions +// at the assembly language level. This is wrapped by the __REDIRECT +// macro, in order to support compilers that can do this some other +// way. When compilers don't support asm-names at all, we have to do +// preprocessor tricks instead (which don't have exactly the right +// semantics, but it's the best we can do). +// +// Example: +// int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid); + +// +// #elif __SOME_OTHER_COMPILER__ +// +// # define __REDIRECT(name, proto, alias) name proto; _Pragma("let " #name " = " #alias) + +// GCC and clang have various useful declarations that can be made with +// the '__attribute__' syntax. All of the ways we use this do fine if +// they are omitted for compilers that don't understand it. + +// At some point during the gcc 2.96 development the `malloc' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// Tell the compiler which arguments to an allocation function +// indicate the size of the allocation. + +// Tell the compiler which argument to an allocation function +// indicates the alignment of the allocation. + +// At some point during the gcc 2.96 development the `pure' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// This declaration tells the compiler that the value is constant. + +// At some point during the gcc 3.1 development the `used' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// Since version 3.2, gcc allows marking deprecated functions. + +// Since version 4.5, gcc also allows one to specify the message printed +// when a deprecated function is used. clang claims to be gcc 4.2, but +// may also support this feature. + +// At some point during the gcc 2.8 development the `format_arg' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. +// If several `format_arg' attributes are given for the same function, in +// gcc-3.0 and older, all but the last one are ignored. In newer gccs, +// all designated arguments are considered. + +// At some point during the gcc 2.97 development the `strfmon' format +// attribute for functions was introduced. We don't want to use it +// unconditionally (although this would be possible) since it +// generates warnings. + +// The nonnull function attribute marks pointer parameters that +// must not be NULL. This has the name __nonnull in glibc, +// and __attribute_nonnull__ in files shared with Gnulib to avoid +// collision with a different __nonnull in DragonFlyBSD 5.9. + +// The returns_nonnull function attribute marks the return type of the function +// as always being non-null. + +// If fortification mode, we warn about unused results of certain +// function calls which can lead to problems. + +// Forces a function to be always inlined. +// The Linux kernel defines __always_inline in stddef.h (283d7573), and +// it conflicts with this definition. Therefore undefine it first to +// allow either header to be included first. + +// Associate error messages with the source location of the call site rather +// than with the source location inside the function. + +// GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99 +// inline semantics, unless -fgnu89-inline is used. Using __GNUC_STDC_INLINE__ +// or __GNUC_GNU_INLINE is not a good enough check for gcc because gcc versions +// older than 4.3 may define these macros and still not guarantee GNU inlining +// semantics. +// +// clang++ identifies itself as gcc-4.2, but has support for GNU inlining +// semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and +// __GNUC_GNU_INLINE__ macro definitions. + +// GCC 4.3 and above allow passing all anonymous arguments of an +// __extern_always_inline function to some other vararg function. + +// It is possible to compile containing GCC extensions even if GCC is +// run in pedantic mode if the uses are carefully marked using the +// `__extension__' keyword. But this is not generally available before +// version 2.8. + +// __restrict is known in EGCS 1.2 and above, and in clang. +// It works also in C++ mode (outside of arrays), but only when spelled +// as '__restrict', not 'restrict'. + +// ISO C99 also allows to declare arrays as non-overlapping. The syntax is +// array_name[restrict] +// GCC 3.1 and clang support this. +// This syntax is not usable in C++ mode. + +// Describes a char array whose address can safely be passed as the first +// argument to strncpy and strncat, as the char array is not necessarily +// a NUL-terminated string. + +// Undefine (also defined in libc-symbols.h). +// Copies attributes from the declaration or type referenced by +// the argument. + +// Gnulib avoids including these, as they don't work on non-glibc or +// older glibc platforms. +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Properties of long double type. ldbl-128 version. +// Copyright (C) 2016-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// long double is distinct from double, so there is nothing to +// define here. + +// __glibc_macro_warning (MESSAGE) issues warning MESSAGE. This is +// intended for use in preprocessor macros. +// +// Note: MESSAGE must be a _single_ string; concatenation of string +// literals is not supported. + +// Generic selection (ISO C11) is a C-only feature, available in GCC +// since version 4.9. Previous versions do not provide generic +// selection, even though they might set __STDC_VERSION__ to 201112L, +// when in -std=c11 mode. Thus, we must check for !defined __GNUC__ +// when testing __STDC_VERSION__ for generic selection support. +// On the other hand, Clang also defines __GNUC__, so a clang-specific +// check is required to enable the use of generic selection. + +// Designates a 1-based positional argument ref-index of pointer type +// that can be used to access size-index elements of the pointed-to +// array according to access mode, or at least one element when +// size-index is not provided: +// access (access-mode, [, ]) +// For _FORTIFY_SOURCE == 3 we use __builtin_dynamic_object_size, which may +// use the access attribute to get object sizes from function definition +// arguments, so we can't use them on functions we fortify. Drop the object +// size hints for such functions. + +// Designates dealloc as a function to call to deallocate objects +// allocated by the declared function. + +// Specify that a function such as setjmp or vfork may return +// twice. + +// If we don't have __REDIRECT, prototypes will be missing if +// __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64]. + +// Decide whether we can define 'extern inline' functions in headers. + +// This is here only because every header file already includes this one. +// Get the definitions of all the appropriate `__stub_FUNCTION' symbols. +// contains `#define __stub_FUNCTION' when FUNCTION is a stub +// that will always return failure (and set errno to ENOSYS). +// This file is automatically generated. +// This file selects the right generated file of `__stub_FUNCTION' macros +// based on the architecture being compiled for. + +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// This file is automatically generated. +// It defines a symbol `__stub_FUNCTION' for each function +// in the C library which is a stub, meaning it will fail +// every time called, usually setting errno to ENOSYS. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Bit size of the time_t type at glibc build time, general case. +// Copyright (C) 2018-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Size in bits of the 'time_t' type of the default ABI. + +// Convenience types. +type X__u_char = uint8 /* types.h:31:23 */ +type X__u_short = uint16 /* types.h:32:28 */ +type X__u_int = uint32 /* types.h:33:22 */ +type X__u_long = uint64 /* types.h:34:27 */ + +// Fixed-size types, underlying types depend on word size and compiler. +type X__int8_t = int8 /* types.h:37:21 */ +type X__uint8_t = uint8 /* types.h:38:23 */ +type X__int16_t = int16 /* types.h:39:26 */ +type X__uint16_t = uint16 /* types.h:40:28 */ +type X__int32_t = int32 /* types.h:41:20 */ +type X__uint32_t = uint32 /* types.h:42:22 */ +type X__int64_t = int64 /* types.h:44:25 */ +type X__uint64_t = uint64 /* types.h:45:27 */ + +// Smallest types with at least a given width. +type X__int_least8_t = int8 /* types.h:52:18 */ +type X__uint_least8_t = uint8 /* types.h:53:19 */ +type X__int_least16_t = int16 /* types.h:54:19 */ +type X__uint_least16_t = uint16 /* types.h:55:20 */ +type X__int_least32_t = int32 /* types.h:56:19 */ +type X__uint_least32_t = uint32 /* types.h:57:20 */ +type X__int_least64_t = int64 /* types.h:58:19 */ +type X__uint_least64_t = uint64 /* types.h:59:20 */ + +// quad_t is also 64 bits. +type X__quad_t = int64 /* types.h:63:18 */ +type X__u_quad_t = uint64 /* types.h:64:27 */ + +// Largest integral types. +type X__intmax_t = int64 /* types.h:72:18 */ +type X__uintmax_t = uint64 /* types.h:73:27 */ + +// The machine-dependent file defines __*_T_TYPE +// macros for each of the OS types we define below. The definitions +// of those macros must use the following macros for underlying types. +// We define __S_TYPE and __U_TYPE for the signed and unsigned +// variants of each of the following integer types on this machine. +// +// 16 -- "natural" 16-bit type (always short) +// 32 -- "natural" 32-bit type (always int) +// 64 -- "natural" 64-bit type (long or long long) +// LONG32 -- 32-bit type, traditionally long +// QUAD -- 64-bit type, traditionally long long +// WORD -- natural type of __WORDSIZE bits (int or long) +// LONGWORD -- type of __WORDSIZE bits, traditionally long +// +// We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the +// conventional uses of `long' or `long long' type modifiers match the +// types we define, even when a less-adorned type would be the same size. +// This matters for (somewhat) portably writing printf/scanf formats for +// these types, where using the appropriate l or ll format modifiers can +// make the typedefs and the formats match up across all GNU platforms. If +// we used `long' when it's 64 bits where `long long' is expected, then the +// compiler would warn about the formats not matching the argument types, +// and the programmer changing them to shut up the compiler would break the +// program's portability. +// +// Here we assume what is presently the case in all the GCC configurations +// we support: long long is always 64 bits, long is always word/address size, +// and int is always 32 bits. + +// No need to mark the typedef with __extension__. +// bits/typesizes.h -- underlying types for *_t. For the generic Linux ABI. +// Copyright (C) 2011-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library. If not, see +// . + +// See for the meaning of these macros. This file exists so +// that need not vary across different GNU platforms. + +// Tell the libc code that off_t and off64_t are actually the same type +// for all ABI purposes, even if possibly expressed as different base types +// for C type-checking purposes. + +// Same for ino_t and ino64_t. + +// And for __rlim_t and __rlim64_t. + +// And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t. + +// And for getitimer, setitimer and rusage + +// Number of descriptors that can fit in an `fd_set'. + +// bits/time64.h -- underlying types for __time64_t. Generic version. +// Copyright (C) 2018-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Define __TIME64_T_TYPE so that it is always a 64-bit type. + +// If we already have 64-bit time type then use it. + +type X__dev_t = uint64 /* types.h:145:25 */ // Type of device numbers. +type X__uid_t = uint32 /* types.h:146:25 */ // Type of user identifications. +type X__gid_t = uint32 /* types.h:147:25 */ // Type of group identifications. +type X__ino_t = uint64 /* types.h:148:25 */ // Type of file serial numbers. +type X__ino64_t = uint64 /* types.h:149:27 */ // Type of file serial numbers (LFS). +type X__mode_t = uint32 /* types.h:150:26 */ // Type of file attribute bitmasks. +type X__nlink_t = uint32 /* types.h:151:27 */ // Type of file link counts. +type X__off_t = int64 /* types.h:152:25 */ // Type of file sizes and offsets. +type X__off64_t = int64 /* types.h:153:27 */ // Type of file sizes and offsets (LFS). +type X__pid_t = int32 /* types.h:154:25 */ // Type of process identifications. +type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs. +type X__clock_t = int64 /* types.h:156:27 */ // Type of CPU usage counts. +type X__rlim_t = uint64 /* types.h:157:26 */ // Type for resource measurement. +type X__rlim64_t = uint64 /* types.h:158:28 */ // Type for resource measurement (LFS). +type X__id_t = uint32 /* types.h:159:24 */ // General type for IDs. +type X__time_t = int64 /* types.h:160:26 */ // Seconds since the Epoch. +type X__useconds_t = uint32 /* types.h:161:30 */ // Count of microseconds. +type X__suseconds_t = int64 /* types.h:162:31 */ // Signed count of microseconds. +type X__suseconds64_t = int64 /* types.h:163:33 */ + +type X__daddr_t = int32 /* types.h:165:27 */ // The type of a disk address. +type X__key_t = int32 /* types.h:166:25 */ // Type of an IPC key. + +// Clock ID used in clock and timer functions. +type X__clockid_t = int32 /* types.h:169:29 */ + +// Timer ID returned by `timer_create'. +type X__timer_t = uintptr /* types.h:172:12 */ + +// Type to represent block size. +type X__blksize_t = int32 /* types.h:175:29 */ + +// Types from the Large File Support interface. + +// Type to count number of disk blocks. +type X__blkcnt_t = int64 /* types.h:180:28 */ +type X__blkcnt64_t = int64 /* types.h:181:30 */ + +// Type to count file system blocks. +type X__fsblkcnt_t = uint64 /* types.h:184:30 */ +type X__fsblkcnt64_t = uint64 /* types.h:185:32 */ + +// Type to count file system nodes. +type X__fsfilcnt_t = uint64 /* types.h:188:30 */ +type X__fsfilcnt64_t = uint64 /* types.h:189:32 */ + +// Type of miscellaneous file system fields. +type X__fsword_t = int64 /* types.h:192:28 */ + +type X__ssize_t = int64 /* types.h:194:27 */ // Type of a byte count, or error. + +// Signed long type used in system calls. +type X__syscall_slong_t = int64 /* types.h:197:33 */ +// Unsigned long type used in system calls. +type X__syscall_ulong_t = uint64 /* types.h:199:33 */ + +// These few don't really vary by system, they always correspond +// +// to one of the other defined types. +type X__loff_t = int64 /* types.h:203:19 */ // Type of file sizes and offsets (LFS). +type X__caddr_t = uintptr /* types.h:204:14 */ + +// Duplicates info from stdint.h but this is used in unistd.h. +type X__intptr_t = int64 /* types.h:207:25 */ + +// Duplicate info from sys/socket.h. +type X__socklen_t = uint32 /* types.h:210:23 */ + +// C99: An integer type that can be accessed as an atomic entity, +// +// even in the presence of asynchronous interrupts. +// It is not currently necessary for this to be machine-specific. +type X__sig_atomic_t = int32 /* types.h:215:13 */ + +// Seconds since the Epoch, visible to user code when time_t is too +// narrow only for consistency with the old way of widening too-narrow +// types. User code should never use __time64_t. + +// Signal number constants. Generic template. +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Fake signal functions. + +// We define here all the signal names listed in POSIX (1003.1-2008); +// as of 1003.1-2013, no additional signals have been added by POSIX. +// We also define here signal names that historically exist in every +// real-world POSIX variant (e.g. SIGWINCH). +// +// Signals in the 1-15 range are defined with their historical numbers. +// For other signals, we use the BSD numbers. +// There are two unallocated signal numbers in the 1-31 range: 7 and 29. +// Signal number 0 is reserved for use as kill(pid, 0), to test whether +// a process exists without sending it a signal. + +// ISO C99 signals. + +// Historical signals specified by POSIX. + +// Archaic names for compatibility. + +// Not all systems support real-time signals. bits/signum.h indicates +// that they are supported by overriding __SIGRTMAX to a value greater +// than __SIGRTMIN. These constants give the kernel-level hard limits, +// but some real-time signals may be used internally by glibc. Do not +// use these constants in application code; use SIGRTMIN and SIGRTMAX +// (defined in signal.h) instead. + +// Include system specific bits. +// Signal number definitions. Linux version. +// Copyright (C) 1995-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Adjustments and additions to the signal number constants for +// most Linux systems. + +// Historical signals specified by POSIX. + +// New(er) POSIX signals (1003.1-2008, 1003.1-2013). + +// Nonstandard signals found in all modern POSIX systems +// (including both BSD and Linux). + +// Archaic names for compatibility. + +// Biggest signal number + 1 (including real-time signals). + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// An integral type that can be modified atomically, without the +// +// possibility of a signal arriving in the middle of the operation. +type Sig_atomic_t = int32 /* sig_atomic_t.h:8:24 */ + +type X__sigset_t = struct{ F__val [16]uint64 } /* __sigset_t.h:8:3 */ + +// A set of signals to be blocked, unblocked, or waited for. +type Sigset_t = X__sigset_t /* sigset_t.h:7:20 */ + +type Pid_t = int32 /* signal.h:40:17 */ +type Uid_t = uint32 /* signal.h:46:17 */ + +// We need `struct timespec' later on. +// NB: Include guard matches what uses. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Endian macros for string.h functions +// Copyright (C) 1992-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Definitions for byte order, according to significance of bytes, +// from low addresses to high addresses. The value is what you get by +// putting '4' in the most significant byte, '3' in the second most +// significant byte, '2' in the second least significant byte, and '1' +// in the least significant byte, and then writing down one digit for +// each byte, starting with the byte at the lowest address at the left, +// and proceeding to the byte with the highest address at the right. + +// This file defines `__BYTE_ORDER' for the particular machine. + +// LoongArch is little-endian. + +// Some machines may need to use a different endianness for floating point +// values. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Returned by `time'. +type Time_t = int64 /* time_t.h:10:18 */ + +// POSIX.1b structure for a time value. This is like a `struct timeval' but +// +// has nanoseconds instead of microseconds. +type Timespec = struct { + Ftv_sec int64 + Ftv_nsec int64 +} /* struct_timespec.h:11:1 */ + +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Define __sigval_t. +// Copyright (C) 1997-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Type for data associated with a signal. +type Sigval = struct { + F__ccgo_pad1 [0]uint64 + Fsival_int int32 + F__ccgo_pad2 [4]byte +} /* __sigval_t.h:24:1 */ + +type X__sigval_t = Sigval /* __sigval_t.h:30:22 */ + +// Some fields of siginfo_t have architecture-specific variations. +// Architecture-specific adjustments to siginfo_t. + +// This architecture has no adjustments to make to siginfo_t. + +type Siginfo_t = struct { + Fsi_signo int32 + Fsi_errno int32 + Fsi_code int32 + F__pad0 int32 + F_sifields struct { + F__ccgo_pad1 [0]uint64 + F_pad [28]int32 + } +} /* siginfo_t.h:124:5 */ + +// Architectures might also add architecture-specific constants. +// These are all considered GNU extensions. + +// Define __sigval_t. +// Copyright (C) 1997-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// To avoid sigval_t (not a standard type name) having C++ name +// mangling depending on whether the selected standard includes union +// sigval, it should not be defined at all when using a standard for +// which the sigval name is not reserved; in that case, headers should +// not include and should use only the +// internal __sigval_t name. + +type Sigval_t = X__sigval_t /* sigval_t.h:16:20 */ + +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Define __sigval_t. +// Copyright (C) 1997-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Forward declaration. +type Pthread_attr_t1 = struct { + F__ccgo_pad1 [0]uint64 + F__size [56]int8 +} /* sigevent_t.h:17:9 */ + +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Define __sigval_t. +// Copyright (C) 1997-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Forward declaration. +type Pthread_attr_t = Pthread_attr_t1 /* sigevent_t.h:17:30 */ + +// Structure to transport application-defined values with signals. +type Sigevent = struct { + Fsigev_value X__sigval_t + Fsigev_signo int32 + Fsigev_notify int32 + F_sigev_un struct { + F__ccgo_pad1 [0]uint64 + F_pad [12]int32 + } +} /* sigevent_t.h:22:9 */ + +// Structure to transport application-defined values with signals. +type Sigevent_t = Sigevent /* sigevent_t.h:42:5 */ + +// Type of a signal handler. +type X__sighandler_t = uintptr /* signal.h:72:14 */ + +// 4.4 BSD uses the name `sig_t' for this. +type Sig_t = uintptr /* signal.h:193:24 */ + +// Get the system-specific definitions of `struct sigaction' +// and the `SA_*' and `SIG_*'. constants. +// The proper definitions for Linux's sigaction. +// Copyright (C) 1993-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Structure describing the action to be taken when a signal arrives. +type Sigaction = struct { + F__sigaction_handler struct{ Fsa_handler uintptr } + Fsa_mask X__sigset_t + Fsa_flags int32 + F__ccgo_pad1 [4]byte + Fsa_restorer uintptr +} /* sigaction.h:27:1 */ + +// Get machine-dependent `struct sigcontext' and signal subcodes. +// Copyright (C) 1996-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Kernel headers before 2.1.1 define a struct sigcontext_struct, but +// we need sigcontext. + +// SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note +// Author: Hanlu Li +// Huacai Chen +// +// Copyright (C) 2020-2022 Loongson Technology Corporation Limited + +// SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note + +// SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note +// int-ll64 is used everywhere now. +// SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note +// asm-generic/int-ll64.h +// +// Integer declarations for architectures which use "long long" +// for 64-bit types. + +// SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note + +// In order to keep safe and avoid regression, only unify uapi +// bitsperlong.h for some archs which are using newer toolchains +// that have the definitions of __CHAR_BIT__ and __SIZEOF_LONG__. +// See the following link for more info: +// https://lore.kernel.org/linux-arch/b9624545-2c80-49a1-ac3c-39264a591f7b@app.fastmail.com/ + +// __xx is ok: it doesn't pollute the POSIX namespace. Use these in the +// header files exported to user space + +type X__s8 = int8 /* int-ll64.h:20:25 */ +type X__u8 = uint8 /* int-ll64.h:21:23 */ + +type X__s16 = int16 /* int-ll64.h:23:26 */ +type X__u16 = uint16 /* int-ll64.h:24:24 */ + +type X__s32 = int32 /* int-ll64.h:26:24 */ +type X__u32 = uint32 /* int-ll64.h:27:22 */ + +type X__s64 = int64 /* int-ll64.h:30:44 */ +type X__u64 = uint64 /* int-ll64.h:31:42 */ + +// SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note + +// SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note + +// * +// __struct_group() - Create a mirrored named and anonyomous struct +// +// @TAG: The tag name for the named sub-struct (usually empty) +// @NAME: The identifier name of the mirrored sub-struct +// @ATTRS: Any struct attributes (usually empty) +// @MEMBERS: The member declarations for the mirrored structs +// +// Used to create an anonymous union of two structs with identical layout +// and size: one anonymous and one named. The former's members can be used +// normally without sub-struct naming, and the latter can be used to +// reason about the start, end, and size of the group of struct members. +// The named struct can also be explicitly tagged for layer reuse, as well +// as both having struct attributes appended. + +// * +// __DECLARE_FLEX_ARRAY() - Declare a flexible array usable in a union +// +// @TYPE: The type of each flexible array element +// @NAME: The name of the flexible array member +// +// In order to have a flexible array member in a union or alone in a +// struct, it needs to be wrapped in an anonymous struct with at least 1 +// named member, but that member can be empty. + +// This allows for 1024 file descriptors: if NR_OPEN is ever grown +// beyond that you'll have to change this too. But 1024 fd's seem to be +// enough even for such "real" unices like OSF/1, so hopefully this is +// one limit that doesn't have to be changed [again]. +// +// Note that POSIX wants the FD_CLEAR(fd,fdsetp) defines to be in +// (and thus ) - but this is a more logical +// place for them. Solved by having dummy defines in . + +// This macro may have been defined in . But we always +// use the one here. + +type X__kernel_fd_set = struct{ Ffds_bits [16]uint64 } /* posix_types.h:27:3 */ + +// Type of a signal handler. +type X__kernel_sighandler_t = uintptr /* posix_types.h:30:14 */ + +// Type of a SYSV IPC key. +type X__kernel_key_t = int32 /* posix_types.h:33:13 */ +type X__kernel_mqd_t = int32 /* posix_types.h:34:13 */ + +// SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note + +// SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note +// This file is generally used by user-level software, so you need to +// be a little careful about namespace pollution etc. +// +// First the types that are often defined in different ways across +// architectures, so that you can override them. + +type X__kernel_long_t = int64 /* posix_types.h:15:15 */ +type X__kernel_ulong_t = uint64 /* posix_types.h:16:23 */ + +type X__kernel_ino_t = uint64 /* posix_types.h:20:26 */ + +type X__kernel_mode_t = uint32 /* posix_types.h:24:22 */ + +type X__kernel_pid_t = int32 /* posix_types.h:28:14 */ + +type X__kernel_ipc_pid_t = int32 /* posix_types.h:32:14 */ + +type X__kernel_uid_t = uint32 /* posix_types.h:36:22 */ +type X__kernel_gid_t = uint32 /* posix_types.h:37:22 */ + +type X__kernel_suseconds_t = int64 /* posix_types.h:41:26 */ + +type X__kernel_daddr_t = int32 /* posix_types.h:45:14 */ + +type X__kernel_uid32_t = uint32 /* posix_types.h:49:22 */ +type X__kernel_gid32_t = uint32 /* posix_types.h:50:22 */ + +type X__kernel_old_uid_t = uint32 /* posix_types.h:54:24 */ +type X__kernel_old_gid_t = uint32 /* posix_types.h:55:24 */ + +type X__kernel_old_dev_t = uint32 /* posix_types.h:59:22 */ + +// Most 32 bit architectures use "unsigned int" size_t, +// and all 64 bit architectures use "unsigned long" size_t. +type X__kernel_size_t = uint64 /* posix_types.h:72:26 */ +type X__kernel_ssize_t = int64 /* posix_types.h:73:25 */ +type X__kernel_ptrdiff_t = int64 /* posix_types.h:74:25 */ + +type X__kernel_fsid_t = struct{ Fval [2]int32 } /* posix_types.h:81:3 */ + +// anything below here should be completely generic +type X__kernel_off_t = int64 /* posix_types.h:87:25 */ +type X__kernel_loff_t = int64 /* posix_types.h:88:19 */ +type X__kernel_old_time_t = int64 /* posix_types.h:89:25 */ +type X__kernel_time_t = int64 /* posix_types.h:90:25 */ +type X__kernel_time64_t = int64 /* posix_types.h:91:19 */ +type X__kernel_clock_t = int64 /* posix_types.h:92:25 */ +type X__kernel_timer_t = int32 /* posix_types.h:93:14 */ +type X__kernel_clockid_t = int32 /* posix_types.h:94:14 */ +type X__kernel_caddr_t = uintptr /* posix_types.h:95:14 */ +type X__kernel_uid16_t = uint16 /* posix_types.h:96:24 */ +type X__kernel_gid16_t = uint16 /* posix_types.h:97:24 */ + +// type X__s128 = libc.Int128 /* types.h:12:29 */ +// type X__u128 = libc.Uint128 /* types.h:13:27 */ + +// Below are truly Linux-specific types that should never collide with +// any application/library that wants linux/types.h. + +// sparse defines __CHECKER__; see Documentation/dev-tools/sparse.rst + +// The kernel doesn't use this legacy form, but user space does + +type X__le16 = uint16 /* types.h:31:25 */ +type X__be16 = uint16 /* types.h:32:25 */ +type X__le32 = uint32 /* types.h:33:25 */ +type X__be32 = uint32 /* types.h:34:25 */ +type X__le64 = uint64 /* types.h:35:25 */ +type X__be64 = uint64 /* types.h:36:25 */ + +type X__sum16 = uint16 /* types.h:38:25 */ +type X__wsum = uint32 /* types.h:39:25 */ + +// aligned_u64 should be used in defining kernel<->userspace ABIs to avoid +// common 32/64-bit compat problems. +// 64-bit values align to 4-byte boundaries on x86_32 (and possibly other +// architectures) and to 8-byte boundaries on 64-bit architectures. The new +// aligned_64 type enforces 8-byte alignment so that structs containing +// aligned_64 values have the same alignment on 32-bit and 64-bit architectures. +// No conversions are necessary between 32-bit user-space and a 64-bit kernel. + +type X__poll_t = uint32 /* types.h:54:28 */ + +// SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note + +// FP context was used +// Address error was due to memory load +// Address error was due to memory store + +type Sigcontext = struct { + F__ccgo_pad1 [0]uint64 + Fsc_pc uint64 + Fsc_regs [32]uint64 + Fsc_flags uint32 + F__ccgo_pad2 [4]byte +} /* sigcontext.h:21:1 */ + +type Sctx_info = struct { + Fmagic uint32 + Fsize uint32 + Fpadding uint64 +} /* sigcontext.h:29:1 */ + +// FPU context +type Fpu_context = struct { + Fregs [32]uint64 + Ffcc uint64 + Ffcsr uint32 + F__ccgo_pad1 [4]byte +} /* sigcontext.h:38:1 */ + +// LSX context +type Lsx_context = struct { + Fregs [64]uint64 + Ffcc uint64 + Ffcsr uint32 + F__ccgo_pad1 [4]byte +} /* sigcontext.h:47:1 */ + +// LASX context +type Lasx_context = struct { + Fregs [128]uint64 + Ffcc uint64 + Ffcsr uint32 + F__ccgo_pad1 [4]byte +} /* sigcontext.h:56:1 */ + +// Wide character type. +// Locale-writers should change this as necessary to +// be big enough to hold unique values not between 0 and 127, +// and not (wchar_t) -1, for each defined multibyte character. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// A null pointer constant. + +// Define stack_t. Linux version. +// Copyright (C) 1998-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Copyright (C) 1989-2023 Free Software Foundation, Inc. +// +// This file is part of GCC. +// +// GCC is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 3, or (at your option) +// any later version. +// +// GCC is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// Under Section 7 of GPL version 3, you are granted additional +// permissions described in the GCC Runtime Library Exception, version +// 3.1, as published by the Free Software Foundation. +// +// You should have received a copy of the GNU General Public License and +// a copy of the GCC Runtime Library Exception along with this program; +// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see +// . + +// ISO C Standard: 7.17 Common definitions + +// Any one of these symbols __need_* means that GNU libc +// wants us just to define one data type. So don't define +// the symbols that indicate this file's entire job has been done. + +// This avoids lossage on SunOS but only if stdtypes.h comes first. +// There's no way to win with the other order! Sun lossage. + +// Sequent's header files use _PTRDIFF_T_ in some conflicting way. +// Just ignore it. + +// On VxWorks, may have defined macros like +// _TYPE_size_t which will typedef size_t. fixincludes patched the +// vxTypesBase.h so that this macro is only defined if _GCC_SIZE_T is +// not defined, and so that defining this macro defines _GCC_SIZE_T. +// If we find that the macros are still defined at this point, we must +// invoke them so that the type is defined as expected. + +// In case nobody has defined these types, but we aren't running under +// GCC 2.00, make sure that __PTRDIFF_TYPE__, __SIZE_TYPE__, and +// __WCHAR_TYPE__ have reasonable values. This can happen if the +// parts of GCC is compiled by an older compiler, that actually +// include gstddef.h, such as collect2. + +// Signed type of difference of two pointers. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// Unsigned type of `sizeof' something. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// Wide character type. +// Locale-writers should change this as necessary to +// be big enough to hold unique values not between 0 and 127, +// and not (wchar_t) -1, for each defined multibyte character. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// A null pointer constant. + +// Structure describing a signal stack. +type Stack_t = struct { + Fss_sp uintptr + Fss_flags int32 + F__ccgo_pad1 [4]byte + Fss_size uint64 +} /* stack_t.h:31:5 */ + +// This will define `ucontext_t' and `mcontext_t'. +// struct ucontext definition. +// Copyright (C) 2022-2023 Free Software Foundation, Inc. +// +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library. If not, see +// . + +// Don't rely on this, the interface is currently messed up and may need to +// be broken to be fixed. + +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Define stack_t. Linux version. +// Copyright (C) 1998-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +type Greg_t = uint64 /* ucontext.h:41:27 */ +// Container for all general registers. +type Gregset_t = [32]uint64 /* ucontext.h:43:16 */ + +type Mcontext_t1 = struct { + F__ccgo_pad1 [0]uint64 + F__pc uint64 + F__gregs [32]uint64 + F__flags uint32 + F__ccgo_pad2 [4]byte +} /* ucontext.h:46:9 */ + +type Mcontext_t = Mcontext_t1 /* ucontext.h:52:3 */ + +// Userlevel context. +type Ucontext_t1 = struct { + F__uc_flags uint64 + Fuc_link uintptr + Fuc_stack Stack_t + Fuc_sigmask Sigset_t + Fuc_mcontext Mcontext_t +} /* ucontext.h:55:9 */ + +// Userlevel context. +type Ucontext_t = Ucontext_t1 /* ucontext.h:62:3 */ + +// Define struct sigstack. +// Copyright (C) 1998-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Structure describing a signal stack (obsolete). +type Sigstack = struct { + Fss_sp uintptr + Fss_onstack int32 + F__ccgo_pad1 [4]byte +} /* struct_sigstack.h:23:1 */ + +// Some of the functions for handling signals in threaded programs must +// be defined here. +// Declaration of common pthread types for all architectures. +// Copyright (C) 2017-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// For internal mutex and condition variable definitions. +// Common threading primitives definitions for both POSIX and C11. +// Copyright (C) 2017-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Arch-specific definitions. Each architecture must define the following +// macros to define the expected sizes of pthread data types: +// +// __SIZEOF_PTHREAD_ATTR_T - size of pthread_attr_t. +// __SIZEOF_PTHREAD_MUTEX_T - size of pthread_mutex_t. +// __SIZEOF_PTHREAD_MUTEXATTR_T - size of pthread_mutexattr_t. +// __SIZEOF_PTHREAD_COND_T - size of pthread_cond_t. +// __SIZEOF_PTHREAD_CONDATTR_T - size of pthread_condattr_t. +// __SIZEOF_PTHREAD_RWLOCK_T - size of pthread_rwlock_t. +// __SIZEOF_PTHREAD_RWLOCKATTR_T - size of pthread_rwlockattr_t. +// __SIZEOF_PTHREAD_BARRIER_T - size of pthread_barrier_t. +// __SIZEOF_PTHREAD_BARRIERATTR_T - size of pthread_barrierattr_t. +// +// The additional macro defines any constraint for the lock alignment +// inside the thread structures: +// +// __LOCK_ALIGNMENT - for internal lock/futex usage. +// +// Same idea but for the once locking primitive: +// +// __ONCE_ALIGNMENT - for pthread_once_t/once_flag definition. + +// Machine-specific pthread type layouts. Generic version. +// Copyright (C) 2019-2023 Free Software Foundation, Inc. +// +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Monotonically increasing wide counters (at least 62 bits). +// Copyright (C) 2016-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Counter that is monotonically increasing (by less than 2**31 per +// +// increment), with a single writer, and an arbitrary number of +// readers. +type X__atomic_wide_counter = struct{ F__value64 uint64 } /* atomic_wide_counter.h:33:3 */ + +// Common definition of pthread_mutex_t. + +type X__pthread_internal_list = struct { + F__prev uintptr + F__next uintptr +} /* thread-shared-types.h:51:9 */ + +// Common definition of pthread_mutex_t. + +type X__pthread_list_t = X__pthread_internal_list /* thread-shared-types.h:55:3 */ + +type X__pthread_internal_slist = struct{ F__next uintptr } /* thread-shared-types.h:57:9 */ + +type X__pthread_slist_t = X__pthread_internal_slist /* thread-shared-types.h:60:3 */ + +// Arch-specific mutex definitions. A generic implementation is provided +// by sysdeps/nptl/bits/struct_mutex.h. If required, an architecture +// can override it by defining: +// +// 1. struct __pthread_mutex_s (used on both pthread_mutex_t and mtx_t +// definition). It should contains at least the internal members +// defined in the generic version. +// +// 2. __LOCK_ALIGNMENT for any extra attribute for internal lock used with +// atomic operations. +// +// 3. The macro __PTHREAD_MUTEX_INITIALIZER used for static initialization. +// It should initialize the mutex internal flag. + +// Default mutex implementation struct definitions. +// Copyright (C) 2019-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Generic struct for both POSIX and C11 mutexes. New ports are expected +// to use the default layout, however architecture can redefine it to +// add arch-specific extension (such as lock-elision). The struct have +// a size of 32 bytes on LP32 and 40 bytes on LP64 architectures. + +type X__pthread_mutex_s = struct { + F__lock int32 + F__count uint32 + F__owner int32 + F__nusers uint32 + F__kind int32 + F__spins int32 + F__list X__pthread_list_t +} /* struct_mutex.h:27:1 */ + +// Arch-sepecific read-write lock definitions. A generic implementation is +// provided by struct_rwlock.h. If required, an architecture can override it +// by defining: +// +// 1. struct __pthread_rwlock_arch_t (used on pthread_rwlock_t definition). +// It should contain at least the internal members defined in the +// generic version. +// +// 2. The macro __PTHREAD_RWLOCK_INITIALIZER used for static initialization. +// It should initialize the rwlock internal type. + +// Default read-write lock implementation struct definitions. +// Copyright (C) 2019-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Endian macros for string.h functions +// Copyright (C) 1992-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Generic struct for both POSIX read-write lock. New ports are expected +// to use the default layout, however archictetures can redefine it to add +// arch-specific extensions (such as lock-elision). The struct have a size +// of 32 bytes on both LP32 and LP64 architectures. + +type X__pthread_rwlock_arch_t = struct { + F__readers uint32 + F__writers uint32 + F__wrphase_futex uint32 + F__writers_futex uint32 + F__pad3 uint32 + F__pad4 uint32 + F__flags uint8 + F__shared uint8 + F__pad1 uint8 + F__pad2 uint8 + F__cur_writer int32 +} /* struct_rwlock.h:29:1 */ + +// Common definition of pthread_cond_t. + +type X__pthread_cond_s = struct { + F__wseq X__atomic_wide_counter + F__g1_start X__atomic_wide_counter + F__g_refs [2]uint32 + F__g_size [2]uint32 + F__g1_orig_size uint32 + F__wrefs uint32 + F__g_signals [2]uint32 +} /* thread-shared-types.h:94:1 */ + +type X__tss_t = uint32 /* thread-shared-types.h:105:22 */ +type X__thrd_t = uint64 /* thread-shared-types.h:106:27 */ + +type X__once_flag = struct{ F__data int32 } /* thread-shared-types.h:111:3 */ + +// Thread identifiers. The structure of the attribute type is not +// +// exposed on purpose. +type Pthread_t = uint64 /* pthreadtypes.h:27:27 */ + +// Data structures for mutex handling. The structure of the attribute +// +// type is not exposed on purpose. +type Pthread_mutexattr_t = struct { + F__ccgo_pad1 [0]uint32 + F__size [4]int8 +} /* pthreadtypes.h:36:3 */ + +// Data structure for condition variable handling. The structure of +// +// the attribute type is not exposed on purpose. +type Pthread_condattr_t = struct { + F__ccgo_pad1 [0]uint32 + F__size [4]int8 +} /* pthreadtypes.h:45:3 */ + +// Keys for thread-specific data +type Pthread_key_t = uint32 /* pthreadtypes.h:49:22 */ + +// Once-only execution +type Pthread_once_t = int32 /* pthreadtypes.h:53:30 */ + +type Pthread_mutex_t = struct{ F__data X__pthread_mutex_s } /* pthreadtypes.h:72:3 */ + +type Pthread_cond_t = struct{ F__data X__pthread_cond_s } /* pthreadtypes.h:80:3 */ + +// Data structure for reader-writer lock variable handling. The +// +// structure of the attribute type is deliberately not exposed. +type Pthread_rwlock_t = struct { + F__ccgo_pad1 [0]uint64 + F__data X__pthread_rwlock_arch_t + F__ccgo_pad2 [24]byte +} /* pthreadtypes.h:91:3 */ + +type Pthread_rwlockattr_t = struct { + F__ccgo_pad1 [0]uint64 + F__size [8]int8 +} /* pthreadtypes.h:97:3 */ + +// POSIX spinlock data type. +type Pthread_spinlock_t = int32 /* pthreadtypes.h:103:22 */ + +// POSIX barriers data type. The structure of the type is +// +// deliberately not exposed. +type Pthread_barrier_t = struct { + F__ccgo_pad1 [0]uint64 + F__size [32]int8 +} /* pthreadtypes.h:112:3 */ + +type Pthread_barrierattr_t = struct { + F__ccgo_pad1 [0]uint32 + F__size [4]int8 +} /* pthreadtypes.h:118:3 */ + +// System-specific extensions. +// System-specific extensions of , Linux version. +// Copyright (C) 2019-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +var _ int8 /* gen.c:2:13: */ diff --git a/vendor/modernc.org/libc/signal/signal_linux_mips64le.go b/vendor/modernc.org/libc/signal/signal_linux_mips64le.go new file mode 100644 index 000000000..b7cdcd8e7 --- /dev/null +++ b/vendor/modernc.org/libc/signal/signal_linux_mips64le.go @@ -0,0 +1,2198 @@ +// Code generated by 'ccgo signal/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o signal/signal_linux_amd64.go -pkgname signal', DO NOT EDIT. + +package signal + +import ( + "math" + "reflect" + "sync/atomic" + "unsafe" +) + +var _ = math.Pi +var _ reflect.Kind +var _ atomic.Value +var _ unsafe.Pointer + +const ( + FP_XSTATE_MAGIC1 = 0x46505853 // sigcontext.h:27:1: + FP_XSTATE_MAGIC2 = 0x46505845 // sigcontext.h:28:1: + MINSIGSTKSZ = 2048 // sigstack.h:27:1: + NGREG = 23 // ucontext.h:42:1: + NSIG = 65 // signal.h:181:1: + SA_INTERRUPT = 0x20000000 // sigaction.h:70:1: + SA_NOCLDSTOP = 1 // sigaction.h:56:1: + SA_NOCLDWAIT = 2 // sigaction.h:57:1: + SA_NODEFER = 0x40000000 // sigaction.h:65:1: + SA_NOMASK = 1073741824 // sigaction.h:73:1: + SA_ONESHOT = 2147483648 // sigaction.h:74:1: + SA_ONSTACK = 0x08000000 // sigaction.h:61:1: + SA_RESETHAND = 0x80000000 // sigaction.h:67:1: + SA_RESTART = 0x10000000 // sigaction.h:64:1: + SA_SIGINFO = 4 // sigaction.h:58:1: + SA_STACK = 134217728 // sigaction.h:75:1: + SIGABRT = 6 // signum-generic.h:50:1: + SIGALRM = 14 // signum-generic.h:63:1: + SIGBUS = 7 // signum.h:35:1: + SIGCHLD = 17 // signum.h:41:1: + SIGCLD = 17 // signum-generic.h:88:1: + SIGCONT = 18 // signum.h:43:1: + SIGFPE = 8 // signum-generic.h:51:1: + SIGHUP = 1 // signum-generic.h:56:1: + SIGILL = 4 // signum-generic.h:49:1: + SIGINT = 2 // signum-generic.h:48:1: + SIGIO = 29 // signum-generic.h:86:1: + SIGIOT = 6 // signum-generic.h:87:1: + SIGKILL = 9 // signum-generic.h:59:1: + SIGPIPE = 13 // signum-generic.h:62:1: + SIGPOLL = 29 // signum.h:51:1: + SIGPROF = 27 // signum-generic.h:77:1: + SIGPWR = 30 // signum.h:32:1: + SIGQUIT = 3 // signum-generic.h:57:1: + SIGSEGV = 11 // signum-generic.h:52:1: + SIGSTKFLT = 16 // signum.h:31:1: + SIGSTKSZ = 8192 // sigstack.h:30:1: + SIGSTOP = 19 // signum.h:45:1: + SIGSYS = 31 // signum.h:53:1: + SIGTERM = 15 // signum-generic.h:53:1: + SIGTRAP = 5 // signum-generic.h:58:1: + SIGTSTP = 20 // signum.h:47:1: + SIGTTIN = 21 // signum-generic.h:71:1: + SIGTTOU = 22 // signum-generic.h:72:1: + SIGURG = 23 // signum.h:49:1: + SIGUSR1 = 10 // signum.h:37:1: + SIGUSR2 = 12 // signum.h:39:1: + SIGVTALRM = 26 // signum-generic.h:76:1: + SIGWINCH = 28 // signum-generic.h:83:1: + SIGXCPU = 24 // signum-generic.h:74:1: + SIGXFSZ = 25 // signum-generic.h:75:1: + SIG_BLOCK = 0 // sigaction.h:79:1: + SIG_SETMASK = 2 // sigaction.h:81:1: + SIG_UNBLOCK = 1 // sigaction.h:80:1: + X_ATFILE_SOURCE = 1 // features.h:342:1: + X_BITS_ENDIANNESS_H = 1 // endianness.h:2:1: + X_BITS_ENDIAN_H = 1 // endian.h:20:1: + X_BITS_PTHREADTYPES_ARCH_H = 1 // pthreadtypes-arch.h:19:1: + X_BITS_PTHREADTYPES_COMMON_H = 1 // pthreadtypes.h:20:1: + X_BITS_SIGACTION_H = 1 // sigaction.h:20:1: + X_BITS_SIGCONTEXT_H = 1 // sigcontext.h:19:1: + X_BITS_SIGEVENT_CONSTS_H = 1 // sigevent-consts.h:20:1: + X_BITS_SIGINFO_ARCH_H = 1 // siginfo-arch.h:3:1: + X_BITS_SIGINFO_CONSTS_H = 1 // siginfo-consts.h:20:1: + X_BITS_SIGNUM_GENERIC_H = 1 // signum-generic.h:20:1: + X_BITS_SIGNUM_H = 1 // signum.h:20:1: + X_BITS_SIGSTACK_H = 1 // sigstack.h:20:1: + X_BITS_SIGTHREAD_H = 1 // sigthread.h:20:1: + X_BITS_SS_FLAGS_H = 1 // ss_flags.h:20:1: + X_BITS_TIME64_H = 1 // time64.h:24:1: + X_BITS_TYPESIZES_H = 1 // typesizes.h:24:1: + X_BITS_TYPES_H = 1 // types.h:24:1: + X_BSD_SIZE_T_ = 0 // stddef.h:189:1: + X_BSD_SIZE_T_DEFINED_ = 0 // stddef.h:192:1: + X_DEFAULT_SOURCE = 1 // features.h:227:1: + X_FEATURES_H = 1 // features.h:19:1: + X_FILE_OFFSET_BITS = 64 // :25:1: + X_GCC_SIZE_T = 0 // stddef.h:195:1: + X_LP64 = 1 // :284:1: + X_NSIG = 65 // signum-generic.h:100:1: + X_POSIX_C_SOURCE = 200809 // features.h:281:1: + X_POSIX_SOURCE = 1 // features.h:279:1: + X_RWLOCK_INTERNAL_H = 0 // struct_rwlock.h:21:1: + X_SIGNAL_H = 0 // signal.h:23:1: + X_SIZET_ = 0 // stddef.h:196:1: + X_SIZE_T = 0 // stddef.h:183:1: + X_SIZE_T_ = 0 // stddef.h:188:1: + X_SIZE_T_DECLARED = 0 // stddef.h:193:1: + X_SIZE_T_DEFINED = 0 // stddef.h:191:1: + X_SIZE_T_DEFINED_ = 0 // stddef.h:190:1: + X_STDC_PREDEF_H = 1 // :162:1: + X_STRUCT_TIMESPEC = 1 // struct_timespec.h:3:1: + X_SYS_CDEFS_H = 1 // cdefs.h:19:1: + X_SYS_SIZE_T_H = 0 // stddef.h:184:1: + X_SYS_UCONTEXT_H = 1 // ucontext.h:19:1: + X_THREAD_MUTEX_INTERNAL_H = 1 // struct_mutex.h:20:1: + X_THREAD_SHARED_TYPES_H = 1 // thread-shared-types.h:20:1: + X_T_SIZE = 0 // stddef.h:186:1: + X_T_SIZE_ = 0 // stddef.h:185:1: + Linux = 1 // :231:1: + Unix = 1 // :177:1: +) + +// POSIX names to access some of the members. + +// sigevent constants. Linux version. +// Copyright (C) 1997-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// `sigev_notify' values. +const ( /* sigevent-consts.h:27:1: */ + SIGEV_SIGNAL = 0 // Notify via signal. + SIGEV_NONE = 1 // Other notification: meaningless. + SIGEV_THREAD = 2 // Deliver via thread creation. + + SIGEV_THREAD_ID = 4 +) + +// `si_code' values for SIGSEGV signal. +const ( /* siginfo-consts.h:119:1: */ + SEGV_MAPERR = 1 // Address not mapped to object. + SEGV_ACCERR = 2 // Invalid permissions for mapped object. + SEGV_BNDERR = 3 // Bounds checking failure. + SEGV_PKUERR = 4 // Protection key checking failure. + SEGV_ACCADI = 5 // ADI not enabled for mapped object. + SEGV_ADIDERR = 6 // Disrupting MCD error. + SEGV_ADIPERR = 7 +) + +// `si_code' values for SIGBUS signal. +const ( /* siginfo-consts.h:138:1: */ + BUS_ADRALN = 1 // Invalid address alignment. + BUS_ADRERR = 2 // Non-existant physical address. + BUS_OBJERR = 3 // Object specific hardware error. + BUS_MCEERR_AR = 4 // Hardware memory error: action required. + BUS_MCEERR_AO = 5 +) + +// `si_code' values for SIGCHLD signal. +const ( /* siginfo-consts.h:172:1: */ + CLD_EXITED = 1 // Child has exited. + CLD_KILLED = 2 // Child was killed. + CLD_DUMPED = 3 // Child terminated abnormally. + CLD_TRAPPED = 4 // Traced child has trapped. + CLD_STOPPED = 5 // Child has stopped. + CLD_CONTINUED = 6 +) + +// `si_code' values for SIGPOLL signal. +const ( /* siginfo-consts.h:189:1: */ + POLL_IN = 1 // Data input available. + POLL_OUT = 2 // Output buffers available. + POLL_MSG = 3 // Input message available. + POLL_ERR = 4 // I/O error. + POLL_PRI = 5 // High priority input available. + POLL_HUP = 6 +) + +// X/Open requires some more fields with fixed names. + +// siginfo constants. Linux version. +// Copyright (C) 1997-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Most of these constants are uniform across all architectures, but there +// is one exception. +// Architecture-specific adjustments to siginfo_t. x86 version. + +// Values for `si_code'. Positive values are reserved for kernel-generated +// +// signals. +const ( /* siginfo-consts.h:35:1: */ + SI_ASYNCNL = -60 // Sent by asynch name lookup completion. + SI_DETHREAD = -7 // Sent by execve killing subsidiary + // threads. + SI_TKILL = -6 // Sent by tkill. + SI_SIGIO = -5 // Sent by queued SIGIO. + SI_ASYNCIO = -4 // Sent by AIO completion. + SI_MESGQ = -3 // Sent by real time mesq state change. + SI_TIMER = -2 // Sent by timer expiration. + SI_QUEUE = -1 // Sent by sigqueue. + SI_USER = 0 // Sent by kill, sigsend. + SI_KERNEL = 128 +) + +// `si_code' values for SIGILL signal. +const ( /* siginfo-consts.h:71:1: */ + ILL_ILLOPC = 1 // Illegal opcode. + ILL_ILLOPN = 2 // Illegal operand. + ILL_ILLADR = 3 // Illegal addressing mode. + ILL_ILLTRP = 4 // Illegal trap. + ILL_PRVOPC = 5 // Privileged opcode. + ILL_PRVREG = 6 // Privileged register. + ILL_COPROC = 7 // Coprocessor error. + ILL_BADSTK = 8 // Internal stack error. + ILL_BADIADDR = 9 +) + +// `si_code' values for SIGFPE signal. +const ( /* siginfo-consts.h:94:1: */ + FPE_INTDIV = 1 // Integer divide by zero. + FPE_INTOVF = 2 // Integer overflow. + FPE_FLTDIV = 3 // Floating point divide by zero. + FPE_FLTOVF = 4 // Floating point overflow. + FPE_FLTUND = 5 // Floating point underflow. + FPE_FLTRES = 6 // Floating point inexact result. + FPE_FLTINV = 7 // Floating point invalid operation. + FPE_FLTSUB = 8 // Subscript out of range. + FPE_FLTUNK = 14 // Undiagnosed floating-point exception. + FPE_CONDTRAP = 15 +) + +// sigstack, sigaltstack definitions. +// Copyright (C) 1998-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Minimum stack size for a signal handler. + +// System default stack size. + +// ss_flags values for stack_t. Linux version. +// Copyright (C) 1998-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Possible values for `ss_flags'. +const ( /* ss_flags.h:27:1: */ + SS_ONSTACK = 1 + SS_DISABLE = 2 +) + +type Ptrdiff_t = int64 /* :3:26 */ + +type Size_t = uint64 /* :9:23 */ + +type Wchar_t = int32 /* :15:24 */ + +type X__int128_t = struct { + Flo int64 + Fhi int64 +} /* :21:43 */ // must match modernc.org/mathutil.Int128 +type X__uint128_t = struct { + Flo uint64 + Fhi uint64 +} /* :22:44 */ // must match modernc.org/mathutil.Int128 + +type X__builtin_va_list = uintptr /* :46:14 */ +type X__float128 = float64 /* :47:21 */ + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// ISO C99 Standard: 7.14 Signal handling + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// These are defined by the user (or the compiler) +// to specify the desired environment: +// +// __STRICT_ANSI__ ISO Standard C. +// _ISOC99_SOURCE Extensions to ISO C89 from ISO C99. +// _ISOC11_SOURCE Extensions to ISO C99 from ISO C11. +// _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X. +// __STDC_WANT_LIB_EXT2__ +// Extensions to ISO C99 from TR 27431-2:2010. +// __STDC_WANT_IEC_60559_BFP_EXT__ +// Extensions to ISO C11 from TS 18661-1:2014. +// __STDC_WANT_IEC_60559_FUNCS_EXT__ +// Extensions to ISO C11 from TS 18661-4:2015. +// __STDC_WANT_IEC_60559_TYPES_EXT__ +// Extensions to ISO C11 from TS 18661-3:2015. +// +// _POSIX_SOURCE IEEE Std 1003.1. +// _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2; +// if >=199309L, add IEEE Std 1003.1b-1993; +// if >=199506L, add IEEE Std 1003.1c-1995; +// if >=200112L, all of IEEE 1003.1-2004 +// if >=200809L, all of IEEE 1003.1-2008 +// _XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if +// Single Unix conformance is wanted, to 600 for the +// sixth revision, to 700 for the seventh revision. +// _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions. +// _LARGEFILE_SOURCE Some more functions for correct standard I/O. +// _LARGEFILE64_SOURCE Additional functionality from LFS for large files. +// _FILE_OFFSET_BITS=N Select default filesystem interface. +// _ATFILE_SOURCE Additional *at interfaces. +// _GNU_SOURCE All of the above, plus GNU extensions. +// _DEFAULT_SOURCE The default set of features (taking precedence over +// __STRICT_ANSI__). +// +// _FORTIFY_SOURCE Add security hardening to many library functions. +// Set to 1 or 2; 2 performs stricter checks than 1. +// +// _REENTRANT, _THREAD_SAFE +// Obsolete; equivalent to _POSIX_C_SOURCE=199506L. +// +// The `-ansi' switch to the GNU C compiler, and standards conformance +// options such as `-std=c99', define __STRICT_ANSI__. If none of +// these are defined, or if _DEFAULT_SOURCE is defined, the default is +// to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to +// 200809L, as well as enabling miscellaneous functions from BSD and +// SVID. If more than one of these are defined, they accumulate. For +// example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together +// give you ISO C, 1003.1, and 1003.2, but nothing else. +// +// These are defined by this file and are used by the +// header files to decide what to declare or define: +// +// __GLIBC_USE (F) Define things from feature set F. This is defined +// to 1 or 0; the subsequent macros are either defined +// or undefined, and those tests should be moved to +// __GLIBC_USE. +// __USE_ISOC11 Define ISO C11 things. +// __USE_ISOC99 Define ISO C99 things. +// __USE_ISOC95 Define ISO C90 AMD1 (C95) things. +// __USE_ISOCXX11 Define ISO C++11 things. +// __USE_POSIX Define IEEE Std 1003.1 things. +// __USE_POSIX2 Define IEEE Std 1003.2 things. +// __USE_POSIX199309 Define IEEE Std 1003.1, and .1b things. +// __USE_POSIX199506 Define IEEE Std 1003.1, .1b, .1c and .1i things. +// __USE_XOPEN Define XPG things. +// __USE_XOPEN_EXTENDED Define X/Open Unix things. +// __USE_UNIX98 Define Single Unix V2 things. +// __USE_XOPEN2K Define XPG6 things. +// __USE_XOPEN2KXSI Define XPG6 XSI things. +// __USE_XOPEN2K8 Define XPG7 things. +// __USE_XOPEN2K8XSI Define XPG7 XSI things. +// __USE_LARGEFILE Define correct standard I/O things. +// __USE_LARGEFILE64 Define LFS things with separate names. +// __USE_FILE_OFFSET64 Define 64bit interface as default. +// __USE_MISC Define things from 4.3BSD or System V Unix. +// __USE_ATFILE Define *at interfaces and AT_* constants for them. +// __USE_GNU Define GNU extensions. +// __USE_FORTIFY_LEVEL Additional security measures used, according to level. +// +// The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are +// defined by this file unconditionally. `__GNU_LIBRARY__' is provided +// only for compatibility. All new code should use the other symbols +// to test for features. +// +// All macros listed above as possibly being defined by this file are +// explicitly undefined if they are not explicitly defined. +// Feature-test macros that are not defined by the user or compiler +// but are implied by the other feature-test macros defined (or by the +// lack of any definitions) are defined by the file. +// +// ISO C feature test macros depend on the definition of the macro +// when an affected header is included, not when the first system +// header is included, and so they are handled in +// , which does not have a multiple include +// guard. Feature test macros that can be handled from the first +// system header included are handled here. + +// Undefine everything, so we get a clean slate. + +// Suppress kernel-name space pollution unless user expressedly asks +// for it. + +// Convenience macro to test the version of gcc. +// Use like this: +// #if __GNUC_PREREQ (2,8) +// ... code requiring gcc 2.8 or later ... +// #endif +// Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was +// added in 2.0. + +// Similarly for clang. Features added to GCC after version 4.2 may +// or may not also be available in clang, and clang's definitions of +// __GNUC(_MINOR)__ are fixed at 4 and 2 respectively. Not all such +// features can be queried via __has_extension/__has_feature. + +// Whether to use feature set F. + +// _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for +// _DEFAULT_SOURCE. If _DEFAULT_SOURCE is present we do not +// issue a warning; the expectation is that the source is being +// transitioned to use the new macro. + +// If _GNU_SOURCE was defined by the user, turn on all the other features. + +// If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined, +// define _DEFAULT_SOURCE. + +// This is to enable the ISO C2X extension. + +// This is to enable the ISO C11 extension. + +// This is to enable the ISO C99 extension. + +// This is to enable the ISO C90 Amendment 1:1995 extension. + +// If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE +// is defined, use POSIX.1-2008 (or another version depending on +// _XOPEN_SOURCE). + +// Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be +// defined in all multithreaded code. GNU libc has not required this +// for many years. We now treat them as compatibility synonyms for +// _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with +// comprehensive support for multithreaded code. Using them never +// lowers the selected level of POSIX conformance, only raises it. + +// The function 'gets' existed in C89, but is impossible to use +// safely. It has been removed from ISO C11 and ISO C++14. Note: for +// compatibility with various implementations of , this test +// must consider only the value of __cplusplus when compiling C++. + +// GNU formerly extended the scanf functions with modified format +// specifiers %as, %aS, and %a[...] that allocate a buffer for the +// input using malloc. This extension conflicts with ISO C99, which +// defines %a as a standalone format specifier that reads a floating- +// point number; moreover, POSIX.1-2008 provides the same feature +// using the modifier letter 'm' instead (%ms, %mS, %m[...]). +// +// We now follow C99 unless GNU extensions are active and the compiler +// is specifically in C89 or C++98 mode (strict or not). For +// instance, with GCC, -std=gnu11 will have C99-compliant scanf with +// or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the +// old extension. + +// Get definitions of __STDC_* predefined macros, if the compiler has +// not preincluded this header automatically. +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// This macro indicates that the installed library is the GNU C Library. +// For historic reasons the value now is 6 and this will stay from now +// on. The use of this variable is deprecated. Use __GLIBC__ and +// __GLIBC_MINOR__ now (see below) when you want to test for a specific +// GNU C library version and use the values in to get +// the sonames of the shared libraries. + +// Major and minor version number of the GNU C library package. Use +// these macros to test for features in specific releases. + +// This is here only because every header file already includes this one. +// Copyright (C) 1992-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// We are almost always included from features.h. + +// The GNU libc does not support any K&R compilers or the traditional mode +// of ISO C compilers anymore. Check for some of the combinations not +// anymore supported. + +// Some user header file might have defined this before. + +// All functions, except those with callbacks or those that +// synchronize memory, are leaf functions. + +// GCC can always grok prototypes. For C++ programs we add throw() +// to help it optimize the function calls. But this works only with +// gcc 2.8.x and egcs. For gcc 3.2 and up we even mark C functions +// as non-throwing using a function attribute since programs can use +// the -fexceptions options for C code as well. + +// Compilers that are not clang may object to +// #if defined __clang__ && __has_extension(...) +// even though they do not need to evaluate the right-hand side of the &&. + +// These two macros are not used in glibc anymore. They are kept here +// only because some other projects expect the macros to be defined. + +// For these things, GCC behaves the ANSI way normally, +// and the non-ANSI way under -traditional. + +// This is not a typedef so `const __ptr_t' does the right thing. + +// C++ needs to know that types and declarations are C, not C++. + +// Fortify support. + +// Support for flexible arrays. +// Headers that should use flexible arrays only if they're "real" +// (e.g. only if they won't affect sizeof()) should test +// #if __glibc_c99_flexarr_available. + +// __asm__ ("xyz") is used throughout the headers to rename functions +// at the assembly language level. This is wrapped by the __REDIRECT +// macro, in order to support compilers that can do this some other +// way. When compilers don't support asm-names at all, we have to do +// preprocessor tricks instead (which don't have exactly the right +// semantics, but it's the best we can do). +// +// Example: +// int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid); + +// +// #elif __SOME_OTHER_COMPILER__ +// +// # define __REDIRECT(name, proto, alias) name proto; _Pragma("let " #name " = " #alias) + +// GCC has various useful declarations that can be made with the +// `__attribute__' syntax. All of the ways we use this do fine if +// they are omitted for compilers that don't understand it. + +// At some point during the gcc 2.96 development the `malloc' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// Tell the compiler which arguments to an allocation function +// indicate the size of the allocation. + +// At some point during the gcc 2.96 development the `pure' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// This declaration tells the compiler that the value is constant. + +// At some point during the gcc 3.1 development the `used' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// Since version 3.2, gcc allows marking deprecated functions. + +// Since version 4.5, gcc also allows one to specify the message printed +// when a deprecated function is used. clang claims to be gcc 4.2, but +// may also support this feature. + +// At some point during the gcc 2.8 development the `format_arg' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. +// If several `format_arg' attributes are given for the same function, in +// gcc-3.0 and older, all but the last one are ignored. In newer gccs, +// all designated arguments are considered. + +// At some point during the gcc 2.97 development the `strfmon' format +// attribute for functions was introduced. We don't want to use it +// unconditionally (although this would be possible) since it +// generates warnings. + +// The nonull function attribute allows to mark pointer parameters which +// must not be NULL. + +// If fortification mode, we warn about unused results of certain +// function calls which can lead to problems. + +// Forces a function to be always inlined. +// The Linux kernel defines __always_inline in stddef.h (283d7573), and +// it conflicts with this definition. Therefore undefine it first to +// allow either header to be included first. + +// Associate error messages with the source location of the call site rather +// than with the source location inside the function. + +// GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99 +// inline semantics, unless -fgnu89-inline is used. Using __GNUC_STDC_INLINE__ +// or __GNUC_GNU_INLINE is not a good enough check for gcc because gcc versions +// older than 4.3 may define these macros and still not guarantee GNU inlining +// semantics. +// +// clang++ identifies itself as gcc-4.2, but has support for GNU inlining +// semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and +// __GNUC_GNU_INLINE__ macro definitions. + +// GCC 4.3 and above allow passing all anonymous arguments of an +// __extern_always_inline function to some other vararg function. + +// It is possible to compile containing GCC extensions even if GCC is +// run in pedantic mode if the uses are carefully marked using the +// `__extension__' keyword. But this is not generally available before +// version 2.8. + +// __restrict is known in EGCS 1.2 and above. + +// ISO C99 also allows to declare arrays as non-overlapping. The syntax is +// array_name[restrict] +// GCC 3.1 supports this. + +// Describes a char array whose address can safely be passed as the first +// argument to strncpy and strncat, as the char array is not necessarily +// a NUL-terminated string. + +// Undefine (also defined in libc-symbols.h). +// Copies attributes from the declaration or type referenced by +// the argument. + +// Determine the wordsize from the preprocessor defines. + +// Both x86-64 and x32 use the 64-bit system call interface. +// Properties of long double type. ldbl-96 version. +// Copyright (C) 2016-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// long double is distinct from double, so there is nothing to +// define here. + +// __glibc_macro_warning (MESSAGE) issues warning MESSAGE. This is +// intended for use in preprocessor macros. +// +// Note: MESSAGE must be a _single_ string; concatenation of string +// literals is not supported. + +// Generic selection (ISO C11) is a C-only feature, available in GCC +// since version 4.9. Previous versions do not provide generic +// selection, even though they might set __STDC_VERSION__ to 201112L, +// when in -std=c11 mode. Thus, we must check for !defined __GNUC__ +// when testing __STDC_VERSION__ for generic selection support. +// On the other hand, Clang also defines __GNUC__, so a clang-specific +// check is required to enable the use of generic selection. + +// If we don't have __REDIRECT, prototypes will be missing if +// __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64]. + +// Decide whether we can define 'extern inline' functions in headers. + +// This is here only because every header file already includes this one. +// Get the definitions of all the appropriate `__stub_FUNCTION' symbols. +// contains `#define __stub_FUNCTION' when FUNCTION is a stub +// that will always return failure (and set errno to ENOSYS). +// This file is automatically generated. +// This file selects the right generated file of `__stub_FUNCTION' macros +// based on the architecture being compiled for. + +// This file is automatically generated. +// It defines a symbol `__stub_FUNCTION' for each function +// in the C library which is a stub, meaning it will fail +// every time called, usually setting errno to ENOSYS. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Determine the wordsize from the preprocessor defines. + +// Both x86-64 and x32 use the 64-bit system call interface. +// Bit size of the time_t type at glibc build time, x86-64 and x32 case. +// Copyright (C) 2018-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// For others, time size is word size. + +// Convenience types. +type X__u_char = uint8 /* types.h:31:23 */ +type X__u_short = uint16 /* types.h:32:28 */ +type X__u_int = uint32 /* types.h:33:22 */ +type X__u_long = uint64 /* types.h:34:27 */ + +// Fixed-size types, underlying types depend on word size and compiler. +type X__int8_t = int8 /* types.h:37:21 */ +type X__uint8_t = uint8 /* types.h:38:23 */ +type X__int16_t = int16 /* types.h:39:26 */ +type X__uint16_t = uint16 /* types.h:40:28 */ +type X__int32_t = int32 /* types.h:41:20 */ +type X__uint32_t = uint32 /* types.h:42:22 */ +type X__int64_t = int64 /* types.h:44:25 */ +type X__uint64_t = uint64 /* types.h:45:27 */ + +// Smallest types with at least a given width. +type X__int_least8_t = X__int8_t /* types.h:52:18 */ +type X__uint_least8_t = X__uint8_t /* types.h:53:19 */ +type X__int_least16_t = X__int16_t /* types.h:54:19 */ +type X__uint_least16_t = X__uint16_t /* types.h:55:20 */ +type X__int_least32_t = X__int32_t /* types.h:56:19 */ +type X__uint_least32_t = X__uint32_t /* types.h:57:20 */ +type X__int_least64_t = X__int64_t /* types.h:58:19 */ +type X__uint_least64_t = X__uint64_t /* types.h:59:20 */ + +// quad_t is also 64 bits. +type X__quad_t = int64 /* types.h:63:18 */ +type X__u_quad_t = uint64 /* types.h:64:27 */ + +// Largest integral types. +type X__intmax_t = int64 /* types.h:72:18 */ +type X__uintmax_t = uint64 /* types.h:73:27 */ + +// The machine-dependent file defines __*_T_TYPE +// macros for each of the OS types we define below. The definitions +// of those macros must use the following macros for underlying types. +// We define __S_TYPE and __U_TYPE for the signed and unsigned +// variants of each of the following integer types on this machine. +// +// 16 -- "natural" 16-bit type (always short) +// 32 -- "natural" 32-bit type (always int) +// 64 -- "natural" 64-bit type (long or long long) +// LONG32 -- 32-bit type, traditionally long +// QUAD -- 64-bit type, traditionally long long +// WORD -- natural type of __WORDSIZE bits (int or long) +// LONGWORD -- type of __WORDSIZE bits, traditionally long +// +// We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the +// conventional uses of `long' or `long long' type modifiers match the +// types we define, even when a less-adorned type would be the same size. +// This matters for (somewhat) portably writing printf/scanf formats for +// these types, where using the appropriate l or ll format modifiers can +// make the typedefs and the formats match up across all GNU platforms. If +// we used `long' when it's 64 bits where `long long' is expected, then the +// compiler would warn about the formats not matching the argument types, +// and the programmer changing them to shut up the compiler would break the +// program's portability. +// +// Here we assume what is presently the case in all the GCC configurations +// we support: long long is always 64 bits, long is always word/address size, +// and int is always 32 bits. + +// No need to mark the typedef with __extension__. +// bits/typesizes.h -- underlying types for *_t. Linux/x86-64 version. +// Copyright (C) 2012-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// See for the meaning of these macros. This file exists so +// that need not vary across different GNU platforms. + +// X32 kernel interface is 64-bit. + +// Tell the libc code that off_t and off64_t are actually the same type +// for all ABI purposes, even if possibly expressed as different base types +// for C type-checking purposes. + +// Same for ino_t and ino64_t. + +// And for __rlim_t and __rlim64_t. + +// And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t. + +// Number of descriptors that can fit in an `fd_set'. + +// bits/time64.h -- underlying types for __time64_t. Generic version. +// Copyright (C) 2018-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Define __TIME64_T_TYPE so that it is always a 64-bit type. + +// If we already have 64-bit time type then use it. + +type X__dev_t = uint64 /* types.h:145:25 */ // Type of device numbers. +type X__uid_t = uint32 /* types.h:146:25 */ // Type of user identifications. +type X__gid_t = uint32 /* types.h:147:25 */ // Type of group identifications. +type X__ino_t = uint64 /* types.h:148:25 */ // Type of file serial numbers. +type X__ino64_t = uint64 /* types.h:149:27 */ // Type of file serial numbers (LFS). +type X__mode_t = uint32 /* types.h:150:26 */ // Type of file attribute bitmasks. +type X__nlink_t = uint64 /* types.h:151:27 */ // Type of file link counts. +type X__off_t = int64 /* types.h:152:25 */ // Type of file sizes and offsets. +type X__off64_t = int64 /* types.h:153:27 */ // Type of file sizes and offsets (LFS). +type X__pid_t = int32 /* types.h:154:25 */ // Type of process identifications. +type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs. +type X__clock_t = int64 /* types.h:156:27 */ // Type of CPU usage counts. +type X__rlim_t = uint64 /* types.h:157:26 */ // Type for resource measurement. +type X__rlim64_t = uint64 /* types.h:158:28 */ // Type for resource measurement (LFS). +type X__id_t = uint32 /* types.h:159:24 */ // General type for IDs. +type X__time_t = int64 /* types.h:160:26 */ // Seconds since the Epoch. +type X__useconds_t = uint32 /* types.h:161:30 */ // Count of microseconds. +type X__suseconds_t = int64 /* types.h:162:31 */ // Signed count of microseconds. + +type X__daddr_t = int32 /* types.h:164:27 */ // The type of a disk address. +type X__key_t = int32 /* types.h:165:25 */ // Type of an IPC key. + +// Clock ID used in clock and timer functions. +type X__clockid_t = int32 /* types.h:168:29 */ + +// Timer ID returned by `timer_create'. +type X__timer_t = uintptr /* types.h:171:12 */ + +// Type to represent block size. +type X__blksize_t = int64 /* types.h:174:29 */ + +// Types from the Large File Support interface. + +// Type to count number of disk blocks. +type X__blkcnt_t = int64 /* types.h:179:28 */ +type X__blkcnt64_t = int64 /* types.h:180:30 */ + +// Type to count file system blocks. +type X__fsblkcnt_t = uint64 /* types.h:183:30 */ +type X__fsblkcnt64_t = uint64 /* types.h:184:32 */ + +// Type to count file system nodes. +type X__fsfilcnt_t = uint64 /* types.h:187:30 */ +type X__fsfilcnt64_t = uint64 /* types.h:188:32 */ + +// Type of miscellaneous file system fields. +type X__fsword_t = int64 /* types.h:191:28 */ + +type X__ssize_t = int64 /* types.h:193:27 */ // Type of a byte count, or error. + +// Signed long type used in system calls. +type X__syscall_slong_t = int64 /* types.h:196:33 */ +// Unsigned long type used in system calls. +type X__syscall_ulong_t = uint64 /* types.h:198:33 */ + +// These few don't really vary by system, they always correspond +// +// to one of the other defined types. +type X__loff_t = X__off64_t /* types.h:202:19 */ // Type of file sizes and offsets (LFS). +type X__caddr_t = uintptr /* types.h:203:14 */ + +// Duplicates info from stdint.h but this is used in unistd.h. +type X__intptr_t = int64 /* types.h:206:25 */ + +// Duplicate info from sys/socket.h. +type X__socklen_t = uint32 /* types.h:209:23 */ + +// C99: An integer type that can be accessed as an atomic entity, +// +// even in the presence of asynchronous interrupts. +// It is not currently necessary for this to be machine-specific. +type X__sig_atomic_t = int32 /* types.h:214:13 */ + +// Seconds since the Epoch, visible to user code when time_t is too +// narrow only for consistency with the old way of widening too-narrow +// types. User code should never use __time64_t. + +// Signal number definitions. Linux version. +// Copyright (C) 1995-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Signal number constants. Generic template. +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Fake signal functions. + +// We define here all the signal names listed in POSIX (1003.1-2008); +// as of 1003.1-2013, no additional signals have been added by POSIX. +// We also define here signal names that historically exist in every +// real-world POSIX variant (e.g. SIGWINCH). +// +// Signals in the 1-15 range are defined with their historical numbers. +// For other signals, we use the BSD numbers. +// There are two unallocated signal numbers in the 1-31 range: 7 and 29. +// Signal number 0 is reserved for use as kill(pid, 0), to test whether +// a process exists without sending it a signal. + +// ISO C99 signals. + +// Historical signals specified by POSIX. + +// New(er) POSIX signals (1003.1-2008, 1003.1-2013). + +// Nonstandard signals found in all modern POSIX systems +// (including both BSD and Linux). + +// Archaic names for compatibility. + +// Not all systems support real-time signals. bits/signum.h indicates +// that they are supported by overriding __SIGRTMAX to a value greater +// than __SIGRTMIN. These constants give the kernel-level hard limits, +// but some real-time signals may be used internally by glibc. Do not +// use these constants in application code; use SIGRTMIN and SIGRTMAX +// (defined in signal.h) instead. + +// Biggest signal number + 1 (including real-time signals). + +// Adjustments and additions to the signal number constants for +// most Linux systems. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// An integral type that can be modified atomically, without the +// +// possibility of a signal arriving in the middle of the operation. +type Sig_atomic_t = X__sig_atomic_t /* sig_atomic_t.h:8:24 */ + +type X__sigset_t = struct{ F__val [16]uint64 } /* __sigset_t.h:8:3 */ + +// A set of signals to be blocked, unblocked, or waited for. +type Sigset_t = X__sigset_t /* sigset_t.h:7:20 */ + +type Pid_t = X__pid_t /* signal.h:40:17 */ +type Uid_t = X__uid_t /* signal.h:46:17 */ + +// We need `struct timespec' later on. +// NB: Include guard matches what uses. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Endian macros for string.h functions +// Copyright (C) 1992-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Definitions for byte order, according to significance of bytes, +// from low addresses to high addresses. The value is what you get by +// putting '4' in the most significant byte, '3' in the second most +// significant byte, '2' in the second least significant byte, and '1' +// in the least significant byte, and then writing down one digit for +// each byte, starting with the byte at the lowest address at the left, +// and proceeding to the byte with the highest address at the right. + +// This file defines `__BYTE_ORDER' for the particular machine. + +// i386/x86_64 are little-endian. + +// Some machines may need to use a different endianness for floating point +// values. + +// POSIX.1b structure for a time value. This is like a `struct timeval' but +// +// has nanoseconds instead of microseconds. +type Timespec = struct { + Ftv_sec X__time_t + Ftv_nsec X__syscall_slong_t +} /* struct_timespec.h:10:1 */ + +// Determine the wordsize from the preprocessor defines. + +// Both x86-64 and x32 use the 64-bit system call interface. +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Define __sigval_t. +// Copyright (C) 1997-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Type for data associated with a signal. +type Sigval = struct { + F__ccgo_pad1 [0]uint64 + Fsival_int int32 + F__ccgo_pad2 [4]byte +} /* __sigval_t.h:24:1 */ + +type X__sigval_t = Sigval /* __sigval_t.h:30:22 */ + +// Some fields of siginfo_t have architecture-specific variations. +// Architecture-specific adjustments to siginfo_t. x86 version. + +type Siginfo_t = struct { + Fsi_signo int32 + Fsi_errno int32 + Fsi_code int32 + F__pad0 int32 + F_sifields struct { + F__ccgo_pad1 [0]uint64 + F_pad [28]int32 + } +} /* siginfo_t.h:124:5 */ + +// Architectures might also add architecture-specific constants. +// These are all considered GNU extensions. + +// Define __sigval_t. +// Copyright (C) 1997-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// To avoid sigval_t (not a standard type name) having C++ name +// mangling depending on whether the selected standard includes union +// sigval, it should not be defined at all when using a standard for +// which the sigval name is not reserved; in that case, headers should +// not include and should use only the +// internal __sigval_t name. + +type Sigval_t = X__sigval_t /* sigval_t.h:16:20 */ + +// Determine the wordsize from the preprocessor defines. + +// Both x86-64 and x32 use the 64-bit system call interface. +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Define __sigval_t. +// Copyright (C) 1997-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Forward declaration. +type Pthread_attr_t1 = struct { + F__ccgo_pad1 [0]uint64 + F__size [56]int8 +} /* sigevent_t.h:17:9 */ + +// Determine the wordsize from the preprocessor defines. + +// Both x86-64 and x32 use the 64-bit system call interface. +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Define __sigval_t. +// Copyright (C) 1997-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Forward declaration. +type Pthread_attr_t = Pthread_attr_t1 /* sigevent_t.h:17:30 */ + +// Structure to transport application-defined values with signals. +type Sigevent = struct { + Fsigev_value X__sigval_t + Fsigev_signo int32 + Fsigev_notify int32 + F_sigev_un struct { + F__ccgo_pad1 [0]uint64 + F_pad [12]int32 + } +} /* sigevent_t.h:22:9 */ + +// Structure to transport application-defined values with signals. +type Sigevent_t = Sigevent /* sigevent_t.h:42:5 */ + +// Type of a signal handler. +type X__sighandler_t = uintptr /* signal.h:72:14 */ + +// 4.4 BSD uses the name `sig_t' for this. +type Sig_t = X__sighandler_t /* signal.h:190:24 */ + +// Get the system-specific definitions of `struct sigaction' +// and the `SA_*' and `SIG_*'. constants. +// The proper definitions for Linux's sigaction. +// Copyright (C) 1993-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Structure describing the action to be taken when a signal arrives. +type Sigaction = struct { + F__sigaction_handler struct{ Fsa_handler X__sighandler_t } + Fsa_mask X__sigset_t + Fsa_flags int32 + F__ccgo_pad1 [4]byte + Fsa_restorer uintptr +} /* sigaction.h:27:1 */ + +// Get machine-dependent `struct sigcontext' and signal subcodes. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +type X_fpx_sw_bytes = struct { + Fmagic1 X__uint32_t + Fextended_size X__uint32_t + Fxstate_bv X__uint64_t + Fxstate_size X__uint32_t + F__glibc_reserved1 [7]X__uint32_t +} /* sigcontext.h:31:1 */ + +type X_fpreg = struct { + Fsignificand [4]uint16 + Fexponent uint16 +} /* sigcontext.h:40:1 */ + +type X_fpxreg = struct { + Fsignificand [4]uint16 + Fexponent uint16 + F__glibc_reserved1 [3]uint16 +} /* sigcontext.h:46:1 */ + +type X_xmmreg = struct{ Felement [4]X__uint32_t } /* sigcontext.h:53:1 */ + +type X_fpstate = struct { + Fcwd X__uint16_t + Fswd X__uint16_t + Fftw X__uint16_t + Ffop X__uint16_t + Frip X__uint64_t + Frdp X__uint64_t + Fmxcsr X__uint32_t + Fmxcr_mask X__uint32_t + F_st [8]struct { + Fsignificand [4]uint16 + Fexponent uint16 + F__glibc_reserved1 [3]uint16 + } + F_xmm [16]struct{ Felement [4]X__uint32_t } + F__glibc_reserved1 [24]X__uint32_t +} /* sigcontext.h:123:1 */ + +type Sigcontext = struct { + Fr8 X__uint64_t + Fr9 X__uint64_t + Fr10 X__uint64_t + Fr11 X__uint64_t + Fr12 X__uint64_t + Fr13 X__uint64_t + Fr14 X__uint64_t + Fr15 X__uint64_t + Frdi X__uint64_t + Frsi X__uint64_t + Frbp X__uint64_t + Frbx X__uint64_t + Frdx X__uint64_t + Frax X__uint64_t + Frcx X__uint64_t + Frsp X__uint64_t + Frip X__uint64_t + Feflags X__uint64_t + Fcs uint16 + Fgs uint16 + Ffs uint16 + F__pad0 uint16 + Ferr X__uint64_t + Ftrapno X__uint64_t + Foldmask X__uint64_t + Fcr2 X__uint64_t + F__184 struct{ Ffpstate uintptr } + F__reserved1 [8]X__uint64_t +} /* sigcontext.h:139:1 */ + +type X_xsave_hdr = struct { + Fxstate_bv X__uint64_t + F__glibc_reserved1 [2]X__uint64_t + F__glibc_reserved2 [5]X__uint64_t +} /* sigcontext.h:177:1 */ + +type X_ymmh_state = struct{ Fymmh_space [64]X__uint32_t } /* sigcontext.h:184:1 */ + +type X_xstate = struct { + Ffpstate struct { + Fcwd X__uint16_t + Fswd X__uint16_t + Fftw X__uint16_t + Ffop X__uint16_t + Frip X__uint64_t + Frdp X__uint64_t + Fmxcsr X__uint32_t + Fmxcr_mask X__uint32_t + F_st [8]struct { + Fsignificand [4]uint16 + Fexponent uint16 + F__glibc_reserved1 [3]uint16 + } + F_xmm [16]struct{ Felement [4]X__uint32_t } + F__glibc_reserved1 [24]X__uint32_t + } + Fxstate_hdr struct { + Fxstate_bv X__uint64_t + F__glibc_reserved1 [2]X__uint64_t + F__glibc_reserved2 [5]X__uint64_t + } + Fymmh struct{ Fymmh_space [64]X__uint32_t } +} /* sigcontext.h:189:1 */ + +// Wide character type. +// Locale-writers should change this as necessary to +// be big enough to hold unique values not between 0 and 127, +// and not (wchar_t) -1, for each defined multibyte character. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// A null pointer constant. + +// Define stack_t. Linux version. +// Copyright (C) 1998-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Copyright (C) 1989-2020 Free Software Foundation, Inc. +// +// This file is part of GCC. +// +// GCC is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 3, or (at your option) +// any later version. +// +// GCC is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// Under Section 7 of GPL version 3, you are granted additional +// permissions described in the GCC Runtime Library Exception, version +// 3.1, as published by the Free Software Foundation. +// +// You should have received a copy of the GNU General Public License and +// a copy of the GCC Runtime Library Exception along with this program; +// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see +// . + +// ISO C Standard: 7.17 Common definitions + +// Any one of these symbols __need_* means that GNU libc +// wants us just to define one data type. So don't define +// the symbols that indicate this file's entire job has been done. + +// This avoids lossage on SunOS but only if stdtypes.h comes first. +// There's no way to win with the other order! Sun lossage. + +// Sequent's header files use _PTRDIFF_T_ in some conflicting way. +// Just ignore it. + +// On VxWorks, may have defined macros like +// _TYPE_size_t which will typedef size_t. fixincludes patched the +// vxTypesBase.h so that this macro is only defined if _GCC_SIZE_T is +// not defined, and so that defining this macro defines _GCC_SIZE_T. +// If we find that the macros are still defined at this point, we must +// invoke them so that the type is defined as expected. + +// In case nobody has defined these types, but we aren't running under +// GCC 2.00, make sure that __PTRDIFF_TYPE__, __SIZE_TYPE__, and +// __WCHAR_TYPE__ have reasonable values. This can happen if the +// parts of GCC is compiled by an older compiler, that actually +// include gstddef.h, such as collect2. + +// Signed type of difference of two pointers. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// Unsigned type of `sizeof' something. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// Wide character type. +// Locale-writers should change this as necessary to +// be big enough to hold unique values not between 0 and 127, +// and not (wchar_t) -1, for each defined multibyte character. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// A null pointer constant. + +// Structure describing a signal stack. +type Stack_t = struct { + Fss_sp uintptr + Fss_flags int32 + F__ccgo_pad1 [4]byte + Fss_size Size_t +} /* stack_t.h:31:5 */ + +// This will define `ucontext_t' and `mcontext_t'. +// Copyright (C) 2001-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Define stack_t. Linux version. +// Copyright (C) 1998-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Type for general register. +type Greg_t = int64 /* ucontext.h:37:37 */ + +// Number of general registers. + +// Container for all general registers. +type Gregset_t = [23]Greg_t /* ucontext.h:46:16 */ + +type X_libc_fpxreg = struct { + Fsignificand [4]uint16 + Fexponent uint16 + F__glibc_reserved1 [3]uint16 +} /* ucontext.h:101:1 */ + +type X_libc_xmmreg = struct{ Felement [4]X__uint32_t } /* ucontext.h:108:1 */ + +type X_libc_fpstate = struct { + Fcwd X__uint16_t + Fswd X__uint16_t + Fftw X__uint16_t + Ffop X__uint16_t + Frip X__uint64_t + Frdp X__uint64_t + Fmxcsr X__uint32_t + Fmxcr_mask X__uint32_t + F_st [8]struct { + Fsignificand [4]uint16 + Fexponent uint16 + F__glibc_reserved1 [3]uint16 + } + F_xmm [16]struct{ Felement [4]X__uint32_t } + F__glibc_reserved1 [24]X__uint32_t +} /* ucontext.h:113:1 */ + +// Structure to describe FPU registers. +type Fpregset_t = uintptr /* ucontext.h:130:30 */ + +// Context to describe whole processor state. +type Mcontext_t = struct { + Fgregs Gregset_t + Ffpregs Fpregset_t + F__reserved1 [8]uint64 +} /* ucontext.h:139:3 */ + +// Userlevel context. +type Ucontext_t1 = struct { + Fuc_flags uint64 + Fuc_link uintptr + Fuc_stack Stack_t + Fuc_mcontext Mcontext_t + Fuc_sigmask Sigset_t + F__fpregs_mem struct { + Fcwd X__uint16_t + Fswd X__uint16_t + Fftw X__uint16_t + Ffop X__uint16_t + Frip X__uint64_t + Frdp X__uint64_t + Fmxcsr X__uint32_t + Fmxcr_mask X__uint32_t + F_st [8]struct { + Fsignificand [4]uint16 + Fexponent uint16 + F__glibc_reserved1 [3]uint16 + } + F_xmm [16]struct{ Felement [4]X__uint32_t } + F__glibc_reserved1 [24]X__uint32_t + } + F__ssp [4]uint64 +} /* ucontext.h:142:9 */ + +// Userlevel context. +type Ucontext_t = Ucontext_t1 /* ucontext.h:151:5 */ + +// Define struct sigstack. +// Copyright (C) 1998-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Structure describing a signal stack (obsolete). +type Sigstack = struct { + Fss_sp uintptr + Fss_onstack int32 + F__ccgo_pad1 [4]byte +} /* struct_sigstack.h:23:1 */ + +// Some of the functions for handling signals in threaded programs must +// be defined here. +// Declaration of common pthread types for all architectures. +// Copyright (C) 2017-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// For internal mutex and condition variable definitions. +// Common threading primitives definitions for both POSIX and C11. +// Copyright (C) 2017-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Arch-specific definitions. Each architecture must define the following +// macros to define the expected sizes of pthread data types: +// +// __SIZEOF_PTHREAD_ATTR_T - size of pthread_attr_t. +// __SIZEOF_PTHREAD_MUTEX_T - size of pthread_mutex_t. +// __SIZEOF_PTHREAD_MUTEXATTR_T - size of pthread_mutexattr_t. +// __SIZEOF_PTHREAD_COND_T - size of pthread_cond_t. +// __SIZEOF_PTHREAD_CONDATTR_T - size of pthread_condattr_t. +// __SIZEOF_PTHREAD_RWLOCK_T - size of pthread_rwlock_t. +// __SIZEOF_PTHREAD_RWLOCKATTR_T - size of pthread_rwlockattr_t. +// __SIZEOF_PTHREAD_BARRIER_T - size of pthread_barrier_t. +// __SIZEOF_PTHREAD_BARRIERATTR_T - size of pthread_barrierattr_t. +// +// The additional macro defines any constraint for the lock alignment +// inside the thread structures: +// +// __LOCK_ALIGNMENT - for internal lock/futex usage. +// +// Same idea but for the once locking primitive: +// +// __ONCE_ALIGNMENT - for pthread_once_t/once_flag definition. + +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Determine the wordsize from the preprocessor defines. + +// Both x86-64 and x32 use the 64-bit system call interface. + +// Common definition of pthread_mutex_t. + +type X__pthread_internal_list = struct { + F__prev uintptr + F__next uintptr +} /* thread-shared-types.h:49:9 */ + +// Some of the functions for handling signals in threaded programs must +// be defined here. +// Declaration of common pthread types for all architectures. +// Copyright (C) 2017-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// For internal mutex and condition variable definitions. +// Common threading primitives definitions for both POSIX and C11. +// Copyright (C) 2017-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Arch-specific definitions. Each architecture must define the following +// macros to define the expected sizes of pthread data types: +// +// __SIZEOF_PTHREAD_ATTR_T - size of pthread_attr_t. +// __SIZEOF_PTHREAD_MUTEX_T - size of pthread_mutex_t. +// __SIZEOF_PTHREAD_MUTEXATTR_T - size of pthread_mutexattr_t. +// __SIZEOF_PTHREAD_COND_T - size of pthread_cond_t. +// __SIZEOF_PTHREAD_CONDATTR_T - size of pthread_condattr_t. +// __SIZEOF_PTHREAD_RWLOCK_T - size of pthread_rwlock_t. +// __SIZEOF_PTHREAD_RWLOCKATTR_T - size of pthread_rwlockattr_t. +// __SIZEOF_PTHREAD_BARRIER_T - size of pthread_barrier_t. +// __SIZEOF_PTHREAD_BARRIERATTR_T - size of pthread_barrierattr_t. +// +// The additional macro defines any constraint for the lock alignment +// inside the thread structures: +// +// __LOCK_ALIGNMENT - for internal lock/futex usage. +// +// Same idea but for the once locking primitive: +// +// __ONCE_ALIGNMENT - for pthread_once_t/once_flag definition. + +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Determine the wordsize from the preprocessor defines. + +// Both x86-64 and x32 use the 64-bit system call interface. + +// Common definition of pthread_mutex_t. + +type X__pthread_list_t = X__pthread_internal_list /* thread-shared-types.h:53:3 */ + +type X__pthread_internal_slist = struct{ F__next uintptr } /* thread-shared-types.h:55:9 */ + +type X__pthread_slist_t = X__pthread_internal_slist /* thread-shared-types.h:58:3 */ + +// Arch-specific mutex definitions. A generic implementation is provided +// by sysdeps/nptl/bits/struct_mutex.h. If required, an architecture +// can override it by defining: +// +// 1. struct __pthread_mutex_s (used on both pthread_mutex_t and mtx_t +// definition). It should contains at least the internal members +// defined in the generic version. +// +// 2. __LOCK_ALIGNMENT for any extra attribute for internal lock used with +// atomic operations. +// +// 3. The macro __PTHREAD_MUTEX_INITIALIZER used for static initialization. +// It should initialize the mutex internal flag. + +// x86 internal mutex struct definitions. +// Copyright (C) 2019-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +type X__pthread_mutex_s = struct { + F__lock int32 + F__count uint32 + F__owner int32 + F__nusers uint32 + F__kind int32 + F__spins int16 + F__elision int16 + F__list X__pthread_list_t +} /* struct_mutex.h:22:1 */ + +// Arch-sepecific read-write lock definitions. A generic implementation is +// provided by struct_rwlock.h. If required, an architecture can override it +// by defining: +// +// 1. struct __pthread_rwlock_arch_t (used on pthread_rwlock_t definition). +// It should contain at least the internal members defined in the +// generic version. +// +// 2. The macro __PTHREAD_RWLOCK_INITIALIZER used for static initialization. +// It should initialize the rwlock internal type. + +// x86 internal rwlock struct definitions. +// Copyright (C) 2019-2020 Free Software Foundation, Inc. +// +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +type X__pthread_rwlock_arch_t = struct { + F__readers uint32 + F__writers uint32 + F__wrphase_futex uint32 + F__writers_futex uint32 + F__pad3 uint32 + F__pad4 uint32 + F__cur_writer int32 + F__shared int32 + F__rwelision int8 + F__pad1 [7]uint8 + F__pad2 uint64 + F__flags uint32 + F__ccgo_pad1 [4]byte +} /* struct_rwlock.h:23:1 */ + +// Common definition of pthread_cond_t. + +type X__pthread_cond_s = struct { + F__0 struct{ F__wseq uint64 } + F__8 struct{ F__g1_start uint64 } + F__g_refs [2]uint32 + F__g_size [2]uint32 + F__g1_orig_size uint32 + F__wrefs uint32 + F__g_signals [2]uint32 +} /* thread-shared-types.h:92:1 */ + +// Thread identifiers. The structure of the attribute type is not +// +// exposed on purpose. +type Pthread_t = uint64 /* pthreadtypes.h:27:27 */ + +// Data structures for mutex handling. The structure of the attribute +// +// type is not exposed on purpose. +type Pthread_mutexattr_t = struct { + F__ccgo_pad1 [0]uint32 + F__size [4]int8 +} /* pthreadtypes.h:36:3 */ + +// Data structure for condition variable handling. The structure of +// +// the attribute type is not exposed on purpose. +type Pthread_condattr_t = struct { + F__ccgo_pad1 [0]uint32 + F__size [4]int8 +} /* pthreadtypes.h:45:3 */ + +// Keys for thread-specific data +type Pthread_key_t = uint32 /* pthreadtypes.h:49:22 */ + +// Once-only execution +type Pthread_once_t = int32 /* pthreadtypes.h:53:30 */ + +type Pthread_mutex_t = struct{ F__data X__pthread_mutex_s } /* pthreadtypes.h:72:3 */ + +type Pthread_cond_t = struct{ F__data X__pthread_cond_s } /* pthreadtypes.h:80:3 */ + +// Data structure for reader-writer lock variable handling. The +// +// structure of the attribute type is deliberately not exposed. +type Pthread_rwlock_t = struct{ F__data X__pthread_rwlock_arch_t } /* pthreadtypes.h:91:3 */ + +type Pthread_rwlockattr_t = struct { + F__ccgo_pad1 [0]uint64 + F__size [8]int8 +} /* pthreadtypes.h:97:3 */ + +// POSIX spinlock data type. +type Pthread_spinlock_t = int32 /* pthreadtypes.h:103:22 */ + +// POSIX barriers data type. The structure of the type is +// +// deliberately not exposed. +type Pthread_barrier_t = struct { + F__ccgo_pad1 [0]uint64 + F__size [32]int8 +} /* pthreadtypes.h:112:3 */ + +type Pthread_barrierattr_t = struct { + F__ccgo_pad1 [0]uint32 + F__size [4]int8 +} /* pthreadtypes.h:118:3 */ + +// System-specific extensions. +// System-specific extensions of , Linux version. +// Copyright (C) 2019-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +var _ int8 /* gen.c:2:13: */ diff --git a/vendor/modernc.org/libc/stdatomic.go b/vendor/modernc.org/libc/stdatomic.go new file mode 100644 index 000000000..5743ad8f5 --- /dev/null +++ b/vendor/modernc.org/libc/stdatomic.go @@ -0,0 +1,1114 @@ +// Copyright 2024 The Libc Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package libc // import "modernc.org/libc" + +import ( + "sync" + "sync/atomic" + "unsafe" +) + +var ( + int8Mu sync.Mutex + int16Mu sync.Mutex + int32Mu sync.Mutex + int64Mu sync.Mutex +) + +// type __atomic_fetch_add(type *ptr, type val, int memorder) +// +// { tmp = *ptr; *ptr op= val; return tmp; } +// { tmp = *ptr; *ptr = ~(*ptr & val); return tmp; } // nand + +func X__c11_atomic_fetch_addInt8(t *TLS, ptr uintptr, val int8, _ int32) (r int8) { + return X__atomic_fetch_addInt8(t, ptr, val, 0) +} + +func X__atomic_fetch_addInt8(t *TLS, ptr uintptr, val int8, _ int32) (r int8) { + int8Mu.Lock() + + defer int8Mu.Unlock() + + r = *(*int8)(unsafe.Pointer(ptr)) + *(*int8)(unsafe.Pointer(ptr)) += val + return r +} + +func X__c11_atomic_fetch_addUint8(t *TLS, ptr uintptr, val uint8, _ int32) (r uint8) { + return X__atomic_fetch_addUint8(t, ptr, val, 0) +} + +func X__atomic_fetch_addUint8(t *TLS, ptr uintptr, val uint8, _ int32) (r uint8) { + int8Mu.Lock() + + defer int8Mu.Unlock() + + r = *(*uint8)(unsafe.Pointer(ptr)) + *(*uint8)(unsafe.Pointer(ptr)) += val + return r +} + +func X__c11_atomic_fetch_addInt16(t *TLS, ptr uintptr, val int16, _ int32) (r int16) { + return X__atomic_fetch_addInt16(t, ptr, val, 0) +} + +func X__atomic_fetch_addInt16(t *TLS, ptr uintptr, val int16, _ int32) (r int16) { + int16Mu.Lock() + + defer int16Mu.Unlock() + + r = *(*int16)(unsafe.Pointer(ptr)) + *(*int16)(unsafe.Pointer(ptr)) += val + return r +} + +func X__c11_atomic_fetch_addUint16(t *TLS, ptr uintptr, val uint16, _ int32) (r uint16) { + return X__atomic_fetch_addUint16(t, ptr, val, 0) +} + +func X__atomic_fetch_addUint16(t *TLS, ptr uintptr, val uint16, _ int32) (r uint16) { + int16Mu.Lock() + + defer int16Mu.Unlock() + + r = *(*uint16)(unsafe.Pointer(ptr)) + *(*uint16)(unsafe.Pointer(ptr)) += val + return r +} + +func X__c11_atomic_fetch_addInt32(t *TLS, ptr uintptr, val int32, _ int32) (r int32) { + return X__atomic_fetch_addInt32(t, ptr, val, 0) +} + +func X__atomic_fetch_addInt32(t *TLS, ptr uintptr, val int32, _ int32) (r int32) { + p := (*int32)(unsafe.Pointer(ptr)) + return atomic.AddInt32(p, val) - val +} + +func X__c11_atomic_fetch_addUint32(t *TLS, ptr uintptr, val uint32, _ int32) (r uint32) { + return X__atomic_fetch_addUint32(t, ptr, val, 0) +} + +func X__atomic_fetch_addUint32(t *TLS, ptr uintptr, val uint32, _ int32) (r uint32) { + p := (*uint32)(unsafe.Pointer(ptr)) + return atomic.AddUint32(p, val) - val +} + +func X__c11_atomic_fetch_addInt64(t *TLS, ptr uintptr, val int64, _ int32) (r int64) { + return X__atomic_fetch_addInt64(t, ptr, val, 0) +} + +func X__atomic_fetch_addInt64(t *TLS, ptr uintptr, val int64, _ int32) (r int64) { + p := (*int64)(unsafe.Pointer(ptr)) + return atomic.AddInt64(p, val) - val +} + +func X__c11_atomic_fetch_addUint64(t *TLS, ptr uintptr, val uint64, _ int32) (r uint64) { + return X__atomic_fetch_addUint64(t, ptr, val, 0) +} + +func X__atomic_fetch_addUint64(t *TLS, ptr uintptr, val uint64, _ int32) (r uint64) { + p := (*uint64)(unsafe.Pointer(ptr)) + return atomic.AddUint64(p, val) - val +} + +// ---- + +func X__c11_atomic_fetch_andInt8(t *TLS, ptr uintptr, val int8, _ int32) (r int8) { + return X__atomic_fetch_andInt8(t, ptr, val, 0) +} + +func X__atomic_fetch_andInt8(t *TLS, ptr uintptr, val int8, _ int32) (r int8) { + int8Mu.Lock() + + defer int8Mu.Unlock() + + r = *(*int8)(unsafe.Pointer(ptr)) + *(*int8)(unsafe.Pointer(ptr)) &= val + return r +} + +func X__c11_atomic_fetch_andUint8(t *TLS, ptr uintptr, val uint8, _ int32) (r uint8) { + return X__atomic_fetch_andUint8(t, ptr, val, 0) +} + +func X__atomic_fetch_andUint8(t *TLS, ptr uintptr, val uint8, _ int32) (r uint8) { + int8Mu.Lock() + + defer int8Mu.Unlock() + + r = *(*uint8)(unsafe.Pointer(ptr)) + *(*uint8)(unsafe.Pointer(ptr)) &= val + return r +} + +func X__c11_atomic_fetch_andInt16(t *TLS, ptr uintptr, val int16, _ int32) (r int16) { + return X__atomic_fetch_andInt16(t, ptr, val, 0) +} + +func X__atomic_fetch_andInt16(t *TLS, ptr uintptr, val int16, _ int32) (r int16) { + int16Mu.Lock() + + defer int16Mu.Unlock() + + r = *(*int16)(unsafe.Pointer(ptr)) + *(*int16)(unsafe.Pointer(ptr)) &= val + return r +} + +func X__c11_atomic_fetch_andUint16(t *TLS, ptr uintptr, val uint16, _ int32) (r uint16) { + return X__atomic_fetch_andUint16(t, ptr, val, 0) +} + +func X__atomic_fetch_andUint16(t *TLS, ptr uintptr, val uint16, _ int32) (r uint16) { + int16Mu.Lock() + + defer int16Mu.Unlock() + + r = *(*uint16)(unsafe.Pointer(ptr)) + *(*uint16)(unsafe.Pointer(ptr)) &= val + return r +} + +func X__c11_atomic_fetch_andInt32(t *TLS, ptr uintptr, val int32, _ int32) (r int32) { + return X__atomic_fetch_andInt32(t, ptr, val, 0) +} + +func X__atomic_fetch_andInt32(t *TLS, ptr uintptr, val int32, _ int32) (r int32) { + p := (*int32)(unsafe.Pointer(ptr)) + for { + r = atomic.LoadInt32(p) + if atomic.CompareAndSwapInt32(p, r, r&val) { + return r + } + } +} + +func X__c11_atomic_fetch_andUint32(t *TLS, ptr uintptr, val uint32, _ int32) (r uint32) { + return X__atomic_fetch_andUint32(t, ptr, val, 0) +} + +func X__atomic_fetch_andUint32(t *TLS, ptr uintptr, val uint32, _ int32) (r uint32) { + p := (*uint32)(unsafe.Pointer(ptr)) + for { + r = atomic.LoadUint32(p) + if atomic.CompareAndSwapUint32(p, r, r&val) { + return r + } + } +} + +func X__c11_atomic_fetch_andInt64(t *TLS, ptr uintptr, val int64, _ int32) (r int64) { + return X__atomic_fetch_andInt64(t, ptr, val, 0) +} + +func X__atomic_fetch_andInt64(t *TLS, ptr uintptr, val int64, _ int32) (r int64) { + p := (*int64)(unsafe.Pointer(ptr)) + for { + r = atomic.LoadInt64(p) + if atomic.CompareAndSwapInt64(p, r, r&val) { + return r + } + } +} + +func X__c11_atomic_fetch_andUint64(t *TLS, ptr uintptr, val uint64, _ int32) (r uint64) { + return X__atomic_fetch_andUint64(t, ptr, val, 0) +} + +func X__atomic_fetch_andUint64(t *TLS, ptr uintptr, val uint64, _ int32) (r uint64) { + p := (*uint64)(unsafe.Pointer(ptr)) + for { + r = atomic.LoadUint64(p) + if atomic.CompareAndSwapUint64(p, r, r&val) { + return r + } + } +} + +// ---- + +func X__c11_atomic_fetch_orInt8(t *TLS, ptr uintptr, val int8, _ int32) (r int8) { + return X__atomic_fetch_orInt8(t, ptr, val, 0) +} + +func X__atomic_fetch_orInt8(t *TLS, ptr uintptr, val int8, _ int32) (r int8) { + int8Mu.Lock() + + defer int8Mu.Unlock() + + r = *(*int8)(unsafe.Pointer(ptr)) + *(*int8)(unsafe.Pointer(ptr)) |= val + return r +} + +func X__c11_atomic_fetch_orUint8(t *TLS, ptr uintptr, val uint8, _ int32) (r uint8) { + return X__atomic_fetch_orUint8(t, ptr, val, 0) +} + +func X__atomic_fetch_orUint8(t *TLS, ptr uintptr, val uint8, _ int32) (r uint8) { + int8Mu.Lock() + + defer int8Mu.Unlock() + + r = *(*uint8)(unsafe.Pointer(ptr)) + *(*uint8)(unsafe.Pointer(ptr)) |= val + return r +} + +func X__c11_atomic_fetch_orInt16(t *TLS, ptr uintptr, val int16, _ int32) (r int16) { + return X__atomic_fetch_orInt16(t, ptr, val, 0) +} + +func X__atomic_fetch_orInt16(t *TLS, ptr uintptr, val int16, _ int32) (r int16) { + int16Mu.Lock() + + defer int16Mu.Unlock() + + r = *(*int16)(unsafe.Pointer(ptr)) + *(*int16)(unsafe.Pointer(ptr)) |= val + return r +} + +func X__c11_atomic_fetch_orUint16(t *TLS, ptr uintptr, val uint16, _ int32) (r uint16) { + return X__atomic_fetch_orUint16(t, ptr, val, 0) +} + +func X__atomic_fetch_orUint16(t *TLS, ptr uintptr, val uint16, _ int32) (r uint16) { + int16Mu.Lock() + + defer int16Mu.Unlock() + + r = *(*uint16)(unsafe.Pointer(ptr)) + *(*uint16)(unsafe.Pointer(ptr)) |= val + return r +} + +func X__c11_atomic_fetch_orInt32(t *TLS, ptr uintptr, val int32, _ int32) (r int32) { + return X__atomic_fetch_orInt32(t, ptr, val, 0) +} + +func X__atomic_fetch_orInt32(t *TLS, ptr uintptr, val int32, _ int32) (r int32) { + p := (*int32)(unsafe.Pointer(ptr)) + for { + r = atomic.LoadInt32(p) + if atomic.CompareAndSwapInt32(p, r, r|val) { + return r + } + } +} + +func X__c11_atomic_fetch_orUint32(t *TLS, ptr uintptr, val uint32, _ int32) (r uint32) { + return X__atomic_fetch_orUint32(t, ptr, val, 0) +} + +func X__atomic_fetch_orUint32(t *TLS, ptr uintptr, val uint32, _ int32) (r uint32) { + p := (*uint32)(unsafe.Pointer(ptr)) + for { + r = atomic.LoadUint32(p) + if atomic.CompareAndSwapUint32(p, r, r|val) { + return r + } + } +} + +func X__c11_atomic_fetch_orInt64(t *TLS, ptr uintptr, val int64, _ int32) (r int64) { + return X__atomic_fetch_orInt64(t, ptr, val, 0) +} + +func X__atomic_fetch_orInt64(t *TLS, ptr uintptr, val int64, _ int32) (r int64) { + p := (*int64)(unsafe.Pointer(ptr)) + for { + r = atomic.LoadInt64(p) + if atomic.CompareAndSwapInt64(p, r, r|val) { + return r + } + } +} + +func X__c11_atomic_fetch_orUint64(t *TLS, ptr uintptr, val uint64, _ int32) (r uint64) { + return X__atomic_fetch_orUint64(t, ptr, val, 0) +} + +func X__atomic_fetch_orUint64(t *TLS, ptr uintptr, val uint64, _ int32) (r uint64) { + p := (*uint64)(unsafe.Pointer(ptr)) + for { + r = atomic.LoadUint64(p) + if atomic.CompareAndSwapUint64(p, r, r|val) { + return r + } + } +} + +// ---- + +func X__c11_atomic_fetch_subInt8(t *TLS, ptr uintptr, val int8, _ int32) (r int8) { + return X__atomic_fetch_subInt8(t, ptr, val, 0) +} + +func X__atomic_fetch_subInt8(t *TLS, ptr uintptr, val int8, _ int32) (r int8) { + int8Mu.Lock() + + defer int8Mu.Unlock() + + r = *(*int8)(unsafe.Pointer(ptr)) + *(*int8)(unsafe.Pointer(ptr)) -= val + return r +} + +func X__c11_atomic_fetch_subUint8(t *TLS, ptr uintptr, val uint8, _ int32) (r uint8) { + return X__atomic_fetch_subUint8(t, ptr, val, 0) +} + +func X__atomic_fetch_subUint8(t *TLS, ptr uintptr, val uint8, _ int32) (r uint8) { + int8Mu.Lock() + + defer int8Mu.Unlock() + + r = *(*uint8)(unsafe.Pointer(ptr)) + *(*uint8)(unsafe.Pointer(ptr)) -= val + return r +} + +func X__c11_atomic_fetch_subInt16(t *TLS, ptr uintptr, val int16, _ int32) (r int16) { + return X__atomic_fetch_subInt16(t, ptr, val, 0) +} + +func X__atomic_fetch_subInt16(t *TLS, ptr uintptr, val int16, _ int32) (r int16) { + int16Mu.Lock() + + defer int16Mu.Unlock() + + r = *(*int16)(unsafe.Pointer(ptr)) + *(*int16)(unsafe.Pointer(ptr)) -= val + return r +} + +func X__c11_atomic_fetch_subUint16(t *TLS, ptr uintptr, val uint16, _ int32) (r uint16) { + return X__atomic_fetch_subUint16(t, ptr, val, 0) +} + +func X__atomic_fetch_subUint16(t *TLS, ptr uintptr, val uint16, _ int32) (r uint16) { + int16Mu.Lock() + + defer int16Mu.Unlock() + + r = *(*uint16)(unsafe.Pointer(ptr)) + *(*uint16)(unsafe.Pointer(ptr)) -= val + return r +} + +func X__c11_atomic_fetch_subInt32(t *TLS, ptr uintptr, val int32, _ int32) (r int32) { + return X__atomic_fetch_subInt32(t, ptr, val, 0) +} + +func X__atomic_fetch_subInt32(t *TLS, ptr uintptr, val int32, _ int32) (r int32) { + p := (*int32)(unsafe.Pointer(ptr)) + return atomic.AddInt32(p, -val) + val +} + +func X__c11_atomic_fetch_subUint32(t *TLS, ptr uintptr, val uint32, _ int32) (r uint32) { + return X__atomic_fetch_subUint32(t, ptr, val, 0) +} + +func X__atomic_fetch_subUint32(t *TLS, ptr uintptr, val uint32, _ int32) (r uint32) { + p := (*uint32)(unsafe.Pointer(ptr)) + return atomic.AddUint32(p, ^(val-1)) + val +} + +func X__c11_atomic_fetch_subInt64(t *TLS, ptr uintptr, val int64, _ int32) (r int64) { + return X__atomic_fetch_subInt64(t, ptr, val, 0) +} + +func X__atomic_fetch_subInt64(t *TLS, ptr uintptr, val int64, _ int32) (r int64) { + p := (*int64)(unsafe.Pointer(ptr)) + return atomic.AddInt64(p, -val) + val +} + +func X__c11_atomic_fetch_subUint64(t *TLS, ptr uintptr, val uint64, _ int32) (r uint64) { + return X__atomic_fetch_subUint64(t, ptr, val, 0) +} + +func X__atomic_fetch_subUint64(t *TLS, ptr uintptr, val uint64, _ int32) (r uint64) { + p := (*uint64)(unsafe.Pointer(ptr)) + return atomic.AddUint64(p, ^(val-1)) + val +} + +// ---- + +func X__c11_atomic_fetch_xorInt8(t *TLS, ptr uintptr, val int8, _ int32) (r int8) { + return X__atomic_fetch_xorInt8(t, ptr, val, 0) +} + +func X__atomic_fetch_xorInt8(t *TLS, ptr uintptr, val int8, _ int32) (r int8) { + int8Mu.Lock() + + defer int8Mu.Unlock() + + r = *(*int8)(unsafe.Pointer(ptr)) + *(*int8)(unsafe.Pointer(ptr)) ^= val + return r +} + +func X__c11_atomic_fetch_xorUint8(t *TLS, ptr uintptr, val uint8, _ int32) (r uint8) { + return X__atomic_fetch_xorUint8(t, ptr, val, 0) +} + +func X__atomic_fetch_xorUint8(t *TLS, ptr uintptr, val uint8, _ int32) (r uint8) { + int8Mu.Lock() + + defer int8Mu.Unlock() + + r = *(*uint8)(unsafe.Pointer(ptr)) + *(*uint8)(unsafe.Pointer(ptr)) ^= val + return r +} + +func X__c11_atomic_fetch_xorInt16(t *TLS, ptr uintptr, val int16, _ int32) (r int16) { + return X__atomic_fetch_xorInt16(t, ptr, val, 0) +} + +func X__atomic_fetch_xorInt16(t *TLS, ptr uintptr, val int16, _ int32) (r int16) { + int16Mu.Lock() + + defer int16Mu.Unlock() + + r = *(*int16)(unsafe.Pointer(ptr)) + *(*int16)(unsafe.Pointer(ptr)) ^= val + return r +} + +func X__c11_atomic_fetch_xorUint16(t *TLS, ptr uintptr, val uint16, _ int32) (r uint16) { + return X__atomic_fetch_xorUint16(t, ptr, val, 0) +} + +func X__atomic_fetch_xorUint16(t *TLS, ptr uintptr, val uint16, _ int32) (r uint16) { + int16Mu.Lock() + + defer int16Mu.Unlock() + + r = *(*uint16)(unsafe.Pointer(ptr)) + *(*uint16)(unsafe.Pointer(ptr)) ^= val + return r +} + +func X__c11_atomic_fetch_xorInt32(t *TLS, ptr uintptr, val int32, _ int32) (r int32) { + return X__atomic_fetch_xorInt32(t, ptr, val, 0) +} + +func X__atomic_fetch_xorInt32(t *TLS, ptr uintptr, val int32, _ int32) (r int32) { + p := (*int32)(unsafe.Pointer(ptr)) + for { + r = atomic.LoadInt32(p) + if atomic.CompareAndSwapInt32(p, r, r^val) { + return r + } + } +} + +func X__c11_atomic_fetch_xorUint32(t *TLS, ptr uintptr, val uint32, _ int32) (r uint32) { + return X__atomic_fetch_xorUint32(t, ptr, val, 0) +} + +func X__atomic_fetch_xorUint32(t *TLS, ptr uintptr, val uint32, _ int32) (r uint32) { + p := (*uint32)(unsafe.Pointer(ptr)) + for { + r = atomic.LoadUint32(p) + if atomic.CompareAndSwapUint32(p, r, r^val) { + return r + } + } +} + +func X__c11_atomic_fetch_xorInt64(t *TLS, ptr uintptr, val int64, _ int32) (r int64) { + return X__atomic_fetch_xorInt64(t, ptr, val, 0) +} + +func X__atomic_fetch_xorInt64(t *TLS, ptr uintptr, val int64, _ int32) (r int64) { + p := (*int64)(unsafe.Pointer(ptr)) + for { + r = atomic.LoadInt64(p) + if atomic.CompareAndSwapInt64(p, r, r^val) { + return r + } + } +} + +func X__c11_atomic_fetch_xorUint64(t *TLS, ptr uintptr, val uint64, _ int32) (r uint64) { + return X__atomic_fetch_xorUint64(t, ptr, val, 0) +} + +func X__atomic_fetch_xorUint64(t *TLS, ptr uintptr, val uint64, _ int32) (r uint64) { + p := (*uint64)(unsafe.Pointer(ptr)) + for { + r = atomic.LoadUint64(p) + if atomic.CompareAndSwapUint64(p, r, r^val) { + return r + } + } +} + +// ---- + +// void __atomic_exchange (type *ptr, type *val, type *ret, int memorder) + +func X__c11_atomic_exchangeInt8(t *TLS, ptr uintptr, val int8, _ int32) (r int8) { + int8Mu.Lock() + + defer int8Mu.Unlock() + + r = *(*int8)(unsafe.Pointer(ptr)) + *(*int8)(unsafe.Pointer(ptr)) = val + return r +} + +func X__atomic_exchangeInt8(t *TLS, ptr, val, ret uintptr, _ int32) { + int8Mu.Lock() + + defer int8Mu.Unlock() + + *(*int8)(unsafe.Pointer(ret)) = *(*int8)(unsafe.Pointer(ptr)) + *(*int8)(unsafe.Pointer(ptr)) = *(*int8)(unsafe.Pointer(val)) +} + +func X__c11_atomic_exchangeUint8(t *TLS, ptr uintptr, val uint8, _ int32) (r uint8) { + int8Mu.Lock() + + defer int8Mu.Unlock() + + r = *(*uint8)(unsafe.Pointer(ptr)) + *(*uint8)(unsafe.Pointer(ptr)) = val + return r +} + +func X__atomic_exchangeUint8(t *TLS, ptr, val, ret uintptr, _ int32) { + int8Mu.Lock() + + defer int8Mu.Unlock() + + *(*uint8)(unsafe.Pointer(ret)) = *(*uint8)(unsafe.Pointer(ptr)) + *(*uint8)(unsafe.Pointer(ptr)) = *(*uint8)(unsafe.Pointer(val)) +} + +func X__c11_atomic_exchangeInt16(t *TLS, ptr uintptr, val int16, _ int32) (r int16) { + int16Mu.Lock() + + defer int16Mu.Unlock() + + r = *(*int16)(unsafe.Pointer(ptr)) + *(*int16)(unsafe.Pointer(ptr)) = val + return r +} + +func X__atomic_exchangeInt16(t *TLS, ptr, val, ret uintptr, _ int32) { + int16Mu.Lock() + + defer int16Mu.Unlock() + + *(*int16)(unsafe.Pointer(ret)) = *(*int16)(unsafe.Pointer(ptr)) + *(*int16)(unsafe.Pointer(ptr)) = *(*int16)(unsafe.Pointer(val)) +} + +func X__c11_atomic_exchangeUint16(t *TLS, ptr uintptr, val uint16, _ int32) (r uint16) { + int16Mu.Lock() + + defer int16Mu.Unlock() + + r = *(*uint16)(unsafe.Pointer(ptr)) + *(*uint16)(unsafe.Pointer(ptr)) = val + return r +} + +func X__atomic_exchangeUint16(t *TLS, ptr, val, ret uintptr, _ int32) { + int16Mu.Lock() + + defer int16Mu.Unlock() + + *(*uint16)(unsafe.Pointer(ret)) = *(*uint16)(unsafe.Pointer(ptr)) + *(*uint16)(unsafe.Pointer(ptr)) = *(*uint16)(unsafe.Pointer(val)) +} + +func X__c11_atomic_exchangeInt32(t *TLS, ptr uintptr, val int32, _ int32) (r int32) { + return atomic.SwapInt32((*int32)(unsafe.Pointer(ptr)), val) +} + +func X__atomic_exchangeInt32(t *TLS, ptr, val, ret uintptr, _ int32) { + *(*int32)(unsafe.Pointer(ret)) = atomic.SwapInt32((*int32)(unsafe.Pointer(ptr)), *(*int32)(unsafe.Pointer(val))) +} + +func X__c11_atomic_exchangeUint32(t *TLS, ptr uintptr, val uint32, _ int32) (r uint32) { + return uint32(atomic.SwapInt32((*int32)(unsafe.Pointer(ptr)), int32(val))) +} + +func X__atomic_exchangeUint32(t *TLS, ptr, val, ret uintptr, _ int32) { + *(*uint32)(unsafe.Pointer(ret)) = atomic.SwapUint32((*uint32)(unsafe.Pointer(ptr)), *(*uint32)(unsafe.Pointer(val))) +} + +func X__c11_atomic_exchangeInt64(t *TLS, ptr uintptr, val int64, _ int32) (r int64) { + return atomic.SwapInt64((*int64)(unsafe.Pointer(ptr)), val) +} + +func X__atomic_exchangeInt64(t *TLS, ptr, val, ret uintptr, _ int32) { + *(*int64)(unsafe.Pointer(ret)) = atomic.SwapInt64((*int64)(unsafe.Pointer(ptr)), *(*int64)(unsafe.Pointer(val))) +} + +func X__c11_atomic_exchangeUint64(t *TLS, ptr uintptr, val uint64, _ int32) (r uint64) { + return uint64(atomic.SwapInt64((*int64)(unsafe.Pointer(ptr)), int64(val))) +} + +func X__atomic_exchangeUint64(t *TLS, ptr, val, ret uintptr, _ int32) { + *(*uint64)(unsafe.Pointer(ret)) = atomic.SwapUint64((*uint64)(unsafe.Pointer(ptr)), *(*uint64)(unsafe.Pointer(val))) +} + +// ---- + +// bool __atomic_compare_exchange (type *ptr, type *expected, type *desired, bool weak, int success_memorder, int failure_memorder) + +// https://gcc.gnu.org/onlinedocs/gcc/_005f_005fatomic-Builtins.html +// +// This built-in function implements an atomic compare and exchange operation. +// This compares the contents of *ptr with the contents of *expected. If equal, +// the operation is a read-modify-write operation that writes desired into +// *ptr. If they are not equal, the operation is a read and the current +// contents of *ptr are written into *expected. weak is true for weak +// compare_exchange, which may fail spuriously, and false for the strong +// variation, which never fails spuriously. Many targets only offer the strong +// variation and ignore the parameter. When in doubt, use the strong variation. +// +// If desired is written into *ptr then true is returned and memory is affected +// according to the memory order specified by success_memorder. There are no +// restrictions on what memory order can be used here. +// +// Otherwise, false is returned and memory is affected according to +// failure_memorder. This memory order cannot be __ATOMIC_RELEASE nor +// __ATOMIC_ACQ_REL. It also cannot be a stronger order than that specified by +// success_memorder. + +func X__atomic_compare_exchangeInt8(t *TLS, ptr, expected, desired uintptr, weak, success, failure int32) int32 { + int8Mu.Lock() + + defer int8Mu.Unlock() + + have := *(*int8)(unsafe.Pointer(ptr)) + if have == *(*int8)(unsafe.Pointer(expected)) { + *(*int8)(unsafe.Pointer(ptr)) = *(*int8)(unsafe.Pointer(desired)) + return 1 + } + + *(*int8)(unsafe.Pointer(expected)) = have + return 0 +} + +func X__atomic_compare_exchangeUint8(t *TLS, ptr, expected, desired uintptr, weak, success, failure int32) int32 { + return X__atomic_compare_exchangeInt8(t, ptr, expected, desired, weak, success, failure) +} + +func X__atomic_compare_exchangeInt16(t *TLS, ptr, expected, desired uintptr, weak, success, failure int32) int32 { + int16Mu.Lock() + + defer int16Mu.Unlock() + + have := *(*int16)(unsafe.Pointer(ptr)) + if have == *(*int16)(unsafe.Pointer(expected)) { + *(*int16)(unsafe.Pointer(ptr)) = *(*int16)(unsafe.Pointer(desired)) + return 1 + } + + *(*int16)(unsafe.Pointer(expected)) = have + return 0 +} + +func X__atomic_compare_exchangeUint16(t *TLS, ptr, expected, desired uintptr, weak, success, failure int32) int32 { + return X__atomic_compare_exchangeInt16(t, ptr, expected, desired, weak, success, failure) +} + +func X__atomic_compare_exchangeInt32(t *TLS, ptr, expected, desired uintptr, weak, success, failure int32) int32 { + p := (*int32)(unsafe.Pointer(ptr)) + exp := (*int32)(unsafe.Pointer(expected)) + des := *(*int32)(unsafe.Pointer(desired)) + old := *exp + if atomic.CompareAndSwapInt32(p, old, des) { + return 1 + } + *exp = atomic.LoadInt32(p) + return 0 +} + +func X__atomic_compare_exchangeUint32(t *TLS, ptr, expected, desired uintptr, weak, success, failure int32) int32 { + p := (*uint32)(unsafe.Pointer(ptr)) + exp := (*uint32)(unsafe.Pointer(expected)) + des := *(*uint32)(unsafe.Pointer(desired)) + old := *exp + if atomic.CompareAndSwapUint32(p, old, des) { + return 1 + } + *exp = atomic.LoadUint32(p) + return 0 +} + +func X__atomic_compare_exchangeInt64(t *TLS, ptr, expected, desired uintptr, weak, success, failure int32) int32 { + p := (*int64)(unsafe.Pointer(ptr)) + exp := (*int64)(unsafe.Pointer(expected)) + des := *(*int64)(unsafe.Pointer(desired)) + old := *exp + if atomic.CompareAndSwapInt64(p, old, des) { + return 1 + } + *exp = atomic.LoadInt64(p) + return 0 +} + +func X__atomic_compare_exchangeUint64(t *TLS, ptr, expected, desired uintptr, weak, success, failure int32) int32 { + p := (*uint64)(unsafe.Pointer(ptr)) + exp := (*uint64)(unsafe.Pointer(expected)) + des := *(*uint64)(unsafe.Pointer(desired)) + old := *exp + if atomic.CompareAndSwapUint64(p, old, des) { + return 1 + } + *exp = atomic.LoadUint64(p) + return 0 +} + +func X__c11_atomic_compare_exchange_strongInt8(t *TLS, ptr, expected uintptr, desired int8, success, failure int32) int32 { + int8Mu.Lock() + + defer int8Mu.Unlock() + + have := *(*int8)(unsafe.Pointer(ptr)) + if have == *(*int8)(unsafe.Pointer(expected)) { + *(*int8)(unsafe.Pointer(ptr)) = desired + return 1 + } + + *(*int8)(unsafe.Pointer(expected)) = have + return 0 +} + +func X__c11_atomic_compare_exchange_strongUint8(t *TLS, ptr, expected uintptr, desired uint8, success, failure int32) int32 { + return X__c11_atomic_compare_exchange_strongInt8(t, ptr, expected, int8(desired), success, failure) +} + +func X__c11_atomic_compare_exchange_strongInt16(t *TLS, ptr, expected uintptr, desired int16, success, failure int32) int32 { + int16Mu.Lock() + + defer int16Mu.Unlock() + + have := *(*int16)(unsafe.Pointer(ptr)) + if have == *(*int16)(unsafe.Pointer(expected)) { + *(*int16)(unsafe.Pointer(ptr)) = desired + return 1 + } + + *(*int16)(unsafe.Pointer(expected)) = have + return 0 +} + +func X__c11_atomic_compare_exchange_strongUint16(t *TLS, ptr, expected uintptr, desired uint16, success, failure int32) int32 { + return X__c11_atomic_compare_exchange_strongInt16(t, ptr, expected, int16(desired), success, failure) +} + +func X__c11_atomic_compare_exchange_strongInt32(t *TLS, ptr, expected uintptr, desired, success, failure int32) int32 { + int32Mu.Lock() + + defer int32Mu.Unlock() + + have := *(*int32)(unsafe.Pointer(ptr)) + if have == *(*int32)(unsafe.Pointer(expected)) { + *(*int32)(unsafe.Pointer(ptr)) = desired + return 1 + } + + *(*int32)(unsafe.Pointer(expected)) = have + return 0 +} + +func X__c11_atomic_compare_exchange_strongUint32(t *TLS, ptr, expected uintptr, desired uint32, success, failure int32) int32 { + return X__c11_atomic_compare_exchange_strongInt32(t, ptr, expected, int32(desired), success, failure) +} + +func X__c11_atomic_compare_exchange_strongInt64(t *TLS, ptr, expected uintptr, desired int64, success, failure int32) int32 { + int64Mu.Lock() + + defer int64Mu.Unlock() + + have := *(*int64)(unsafe.Pointer(ptr)) + if have == *(*int64)(unsafe.Pointer(expected)) { + *(*int64)(unsafe.Pointer(ptr)) = desired + return 1 + } + + *(*int64)(unsafe.Pointer(expected)) = have + return 0 +} + +func X__c11_atomic_compare_exchange_strongUint64(t *TLS, ptr, expected uintptr, desired uint64, success, failure int32) int32 { + return X__c11_atomic_compare_exchange_strongInt64(t, ptr, expected, int64(desired), success, failure) +} + +// ---- + +// void __atomic_load (type *ptr, type *ret, int memorder) + +func X__c11_atomic_loadInt8(t *TLS, ptr uintptr, memorder int32) (r int8) { + int8Mu.Lock() + + defer int8Mu.Unlock() + + return *(*int8)(unsafe.Pointer(ptr)) +} + +func X__atomic_loadInt8(t *TLS, ptr, ret uintptr, memorder int32) { + int8Mu.Lock() + + defer int8Mu.Unlock() + + *(*int8)(unsafe.Pointer(ret)) = *(*int8)(unsafe.Pointer(ptr)) +} + +func X__c11_atomic_loadUint8(t *TLS, ptr uintptr, memorder int32) (r uint8) { + return uint8(X__c11_atomic_loadInt8(t, ptr, memorder)) +} + +func X__atomic_loadUint8(t *TLS, ptr, ret uintptr, memorder int32) { + X__atomic_loadInt8(t, ptr, ret, memorder) +} + +func X__c11_atomic_loadInt16(t *TLS, ptr uintptr, memorder int32) (r int16) { + int16Mu.Lock() + + defer int16Mu.Unlock() + + return *(*int16)(unsafe.Pointer(ptr)) +} + +func X__atomic_loadInt16(t *TLS, ptr, ret uintptr, memorder int32) { + int16Mu.Lock() + + defer int16Mu.Unlock() + + *(*int16)(unsafe.Pointer(ret)) = *(*int16)(unsafe.Pointer(ptr)) +} + +func X__c11_atomic_loadUint16(t *TLS, ptr uintptr, memorder int32) (r uint16) { + return uint16(X__c11_atomic_loadInt16(t, ptr, memorder)) +} + +func X__atomic_loadUint16(t *TLS, ptr, ret uintptr, memorder int32) { + X__atomic_loadInt16(t, ptr, ret, memorder) +} + +func X__c11_atomic_loadInt32(t *TLS, ptr uintptr, memorder int32) (r int32) { + return atomic.LoadInt32((*int32)(unsafe.Pointer(ptr))) +} + +func X__atomic_loadInt32(t *TLS, ptr, ret uintptr, memorder int32) { + *(*int32)(unsafe.Pointer(ret)) = atomic.LoadInt32((*int32)(unsafe.Pointer(ptr))) +} + +func X__c11_atomic_loadUint32(t *TLS, ptr uintptr, memorder int32) (r uint32) { + return uint32(X__c11_atomic_loadInt32(t, ptr, memorder)) +} + +func X__atomic_loadUint32(t *TLS, ptr, ret uintptr, memorder int32) { + X__atomic_loadInt32(t, ptr, ret, memorder) +} + +func X__c11_atomic_loadInt64(t *TLS, ptr uintptr, memorder int32) (r int64) { + return atomic.LoadInt64((*int64)(unsafe.Pointer(ptr))) +} + +func X__atomic_loadInt64(t *TLS, ptr, ret uintptr, memorder int32) { + *(*int64)(unsafe.Pointer(ret)) = atomic.LoadInt64((*int64)(unsafe.Pointer(ptr))) +} + +func X__c11_atomic_loadUint64(t *TLS, ptr uintptr, memorder int32) (r uint64) { + return uint64(X__c11_atomic_loadInt64(t, ptr, memorder)) +} + +func X__atomic_loadUint64(t *TLS, ptr, ret uintptr, memorder int32) { + X__atomic_loadInt64(t, ptr, ret, memorder) +} + +// ---- + +// void __atomic_store (type *ptr, type *val, int memorder) + +func X__c11_atomic_storeInt8(t *TLS, ptr uintptr, val int8, memorder int32) { + int8Mu.Lock() + + defer int8Mu.Unlock() + + *(*int8)(unsafe.Pointer(ptr)) = val +} + +func X__atomic_storeInt8(t *TLS, ptr, val uintptr, memorder int32) { + int8Mu.Lock() + + defer int8Mu.Unlock() + + *(*int8)(unsafe.Pointer(ptr)) = *(*int8)(unsafe.Pointer(val)) +} + +func X__c11_atomic_storeUint8(t *TLS, ptr uintptr, val uint8, memorder int32) { + X__c11_atomic_storeInt8(t, ptr, int8(val), memorder) +} + +func X__atomic_storeUint8(t *TLS, ptr, val uintptr, memorder int32) { + X__atomic_storeInt8(t, ptr, val, memorder) +} + +func X__c11_atomic_storeInt16(t *TLS, ptr uintptr, val int16, memorder int32) { + int16Mu.Lock() + + defer int16Mu.Unlock() + + *(*int16)(unsafe.Pointer(ptr)) = val +} + +func X__atomic_storeInt16(t *TLS, ptr, val uintptr, memorder int32) { + int16Mu.Lock() + + defer int16Mu.Unlock() + + *(*int16)(unsafe.Pointer(ptr)) = *(*int16)(unsafe.Pointer(val)) +} + +func X__c11_atomic_storeUint16(t *TLS, ptr uintptr, val uint16, memorder int32) { + X__c11_atomic_storeInt16(t, ptr, int16(val), memorder) +} + +func X__atomic_storeUint16(t *TLS, ptr, val uintptr, memorder int32) { + X__atomic_storeInt16(t, ptr, val, memorder) +} + +func X__c11_atomic_storeInt32(t *TLS, ptr uintptr, val int32, memorder int32) { + atomic.StoreInt32((*int32)(unsafe.Pointer(ptr)), val) +} + +func X__atomic_storeInt32(t *TLS, ptr, val uintptr, memorder int32) { + atomic.StoreInt32((*int32)(unsafe.Pointer(ptr)), *(*int32)(unsafe.Pointer(val))) +} + +func X__c11_atomic_storeUint32(t *TLS, ptr uintptr, val uint32, memorder int32) { + X__c11_atomic_storeInt32(t, ptr, int32(val), memorder) +} + +func X__atomic_storeUint32(t *TLS, ptr, val uintptr, memorder int32) { + X__atomic_storeInt32(t, ptr, val, memorder) +} + +func X__c11_atomic_storeInt64(t *TLS, ptr uintptr, val int64, memorder int32) { + atomic.StoreInt64((*int64)(unsafe.Pointer(ptr)), val) +} + +func X__atomic_storeInt64(t *TLS, ptr, val uintptr, memorder int32) { + atomic.StoreInt64((*int64)(unsafe.Pointer(ptr)), *(*int64)(unsafe.Pointer(val))) +} + +func X__c11_atomic_storeUint64(t *TLS, ptr uintptr, val uint64, memorder int32) { + X__c11_atomic_storeInt64(t, ptr, int64(val), memorder) +} + +func X__atomic_storeUint64(t *TLS, ptr, val uintptr, memorder int32) { + X__atomic_storeInt64(t, ptr, val, memorder) +} + +// type __sync_val_compare_and_swap (type *ptr, type oldval type newval, ...) +func X__sync_val_compare_and_swapInt8(t *TLS, ptr uintptr, oldval, newval int8) (r int8) { + int8Mu.Lock() + + defer int8Mu.Unlock() + + if r = *(*int8)(unsafe.Pointer(ptr)); r == oldval { + *(*int8)(unsafe.Pointer(ptr)) = newval + } + + return r +} + +func X__sync_val_compare_and_swapUint8(t *TLS, ptr uintptr, oldval, newval uint8) (r uint8) { + int8Mu.Lock() + + defer int8Mu.Unlock() + + if r = *(*uint8)(unsafe.Pointer(ptr)); r == oldval { + *(*uint8)(unsafe.Pointer(ptr)) = newval + } + + return r +} + +func X__sync_val_compare_and_swapInt16(t *TLS, ptr uintptr, oldval, newval int16) (r int16) { + int16Mu.Lock() + + defer int16Mu.Unlock() + + if r = *(*int16)(unsafe.Pointer(ptr)); r == oldval { + *(*int16)(unsafe.Pointer(ptr)) = newval + } + + return r +} + +func X__sync_val_compare_and_swapUint16(t *TLS, ptr uintptr, oldval, newval uint16) (r uint16) { + int16Mu.Lock() + + defer int16Mu.Unlock() + + if r = *(*uint16)(unsafe.Pointer(ptr)); r == oldval { + *(*uint16)(unsafe.Pointer(ptr)) = newval + } + + return r +} + +func X__sync_val_compare_and_swapInt32(t *TLS, ptr uintptr, oldval, newval int32) (r int32) { + int32Mu.Lock() + + defer int32Mu.Unlock() + + if r = *(*int32)(unsafe.Pointer(ptr)); r == oldval { + *(*int32)(unsafe.Pointer(ptr)) = newval + } + + return r +} + +func X__sync_val_compare_and_swapUint32(t *TLS, ptr uintptr, oldval, newval uint32) (r uint32) { + int32Mu.Lock() + + defer int32Mu.Unlock() + + if r = *(*uint32)(unsafe.Pointer(ptr)); r == oldval { + *(*uint32)(unsafe.Pointer(ptr)) = newval + } + + return r +} + +func X__sync_val_compare_and_swapInt64(t *TLS, ptr uintptr, oldval, newval int64) (r int64) { + int64Mu.Lock() + + defer int64Mu.Unlock() + + if r = *(*int64)(unsafe.Pointer(ptr)); r == oldval { + *(*int64)(unsafe.Pointer(ptr)) = newval + } + + return r +} + +func X__sync_val_compare_and_swapUint64(t *TLS, ptr uintptr, oldval, newval uint64) (r uint64) { + int64Mu.Lock() + + defer int64Mu.Unlock() + + if r = *(*uint64)(unsafe.Pointer(ptr)); r == oldval { + *(*uint64)(unsafe.Pointer(ptr)) = newval + } + + return r +} diff --git a/vendor/modernc.org/libc/stdio/capi_illumos_amd64.go b/vendor/modernc.org/libc/stdio/capi_illumos_amd64.go new file mode 100644 index 000000000..1246ca73a --- /dev/null +++ b/vendor/modernc.org/libc/stdio/capi_illumos_amd64.go @@ -0,0 +1,5 @@ +// Code generated by 'ccgo stdio/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o stdio/stdio_illumos_amd64.go -pkgname stdio', DO NOT EDIT. + +package stdio + +var CAPI = map[string]struct{}{} diff --git a/vendor/modernc.org/libc/stdio/capi_linux_loong64.go b/vendor/modernc.org/libc/stdio/capi_linux_loong64.go new file mode 100644 index 000000000..48233d32c --- /dev/null +++ b/vendor/modernc.org/libc/stdio/capi_linux_loong64.go @@ -0,0 +1,5 @@ +// Code generated by 'ccgo stdio/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o stdio/stdio_linux_loong64.go -pkgname stdio', DO NOT EDIT. + +package stdio + +var CAPI = map[string]struct{}{} diff --git a/vendor/modernc.org/libc/stdio/capi_linux_mips64le.go b/vendor/modernc.org/libc/stdio/capi_linux_mips64le.go new file mode 100644 index 000000000..e327db420 --- /dev/null +++ b/vendor/modernc.org/libc/stdio/capi_linux_mips64le.go @@ -0,0 +1,5 @@ +// Code generated by 'ccgo stdio/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o stdio/stdio_linux_amd64.go -pkgname stdio', DO NOT EDIT. + +package stdio + +var CAPI = map[string]struct{}{} diff --git a/vendor/modernc.org/libc/stdio/stdio_illumos_amd64.go b/vendor/modernc.org/libc/stdio/stdio_illumos_amd64.go new file mode 100644 index 000000000..431d9d5ac --- /dev/null +++ b/vendor/modernc.org/libc/stdio/stdio_illumos_amd64.go @@ -0,0 +1,1020 @@ +// Code generated by 'ccgo stdio/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o stdio/stdio_illumos_amd64.go -pkgname stdio', DO NOT EDIT. + +package stdio + +import ( + "math" + "reflect" + "sync/atomic" + "unsafe" +) + +var _ = math.Pi +var _ reflect.Kind +var _ atomic.Value +var _ unsafe.Pointer + +const ( + BUFSIZ = 1024 // stdio_iso.h:124:1: + EOF = -1 // stdio_iso.h:152:1: + FILENAME_MAX = 1024 // stdio_iso.h:156:1: + FOPEN_MAX = 20 // stdio_iso.h:155:1: + L_ctermid = 9 // stdio.h:207:1: + L_cuserid = 9 // stdio.h:211:1: + L_tmpnam = 25 // stdio_iso.h:163:1: + P_tmpdir = "/var/tmp/" // stdio.h:220:1: + SEEK_CUR = 1 // stdio_iso.h:159:1: + SEEK_END = 2 // stdio_iso.h:160:1: + SEEK_SET = 0 // stdio_iso.h:158:1: + TMP_MAX = 17576 // stdio_iso.h:161:1: + X_ALIGNMENT_REQUIRED = 1 // isa_defs.h:262:1: + X_BIT_FIELDS_LTOH = 0 // isa_defs.h:245:1: + X_BOOL_ALIGNMENT = 1 // isa_defs.h:248:1: + X_CHAR_ALIGNMENT = 1 // isa_defs.h:249:1: + X_CHAR_IS_SIGNED = 0 // isa_defs.h:247:1: + X_DMA_USES_PHYSADDR = 0 // isa_defs.h:281:1: + X_DONT_USE_1275_GENERIC_NAMES = 0 // isa_defs.h:287:1: + X_DOUBLE_ALIGNMENT = 8 // isa_defs.h:256:1: + X_DOUBLE_COMPLEX_ALIGNMENT = 8 // isa_defs.h:257:1: + X_DTRACE_VERSION = 1 // feature_tests.h:490:1: + X_FILEDEFED = 0 // stdio_iso.h:101:1: + X_FILE_OFFSET_BITS = 64 // :25:1: + X_FIRMWARE_NEEDS_FDISK = 0 // isa_defs.h:282:1: + X_FLOAT_ALIGNMENT = 4 // isa_defs.h:252:1: + X_FLOAT_COMPLEX_ALIGNMENT = 4 // isa_defs.h:253:1: + X_HAVE_CPUID_INSN = 0 // isa_defs.h:288:1: + X_IEEE_754 = 0 // isa_defs.h:246:1: + X_INT_ALIGNMENT = 4 // isa_defs.h:251:1: + X_IOEOF = 0020 // stdio_iso.h:143:1: + X_IOERR = 0040 // stdio_iso.h:144:1: + X_IOFBF = 0000 // stdio_iso.h:140:1: + X_IOLBF = 0100 // stdio_iso.h:141:1: + X_IOMYBUF = 0010 // stdio_iso.h:149:1: + X_IONBF = 0004 // stdio_iso.h:142:1: + X_IOREAD = 0001 // stdio_iso.h:146:1: + X_IORW = 0200 // stdio_iso.h:148:1: + X_IOWRT = 0002 // stdio_iso.h:147:1: + X_ISO_CPP_14882_1998 = 0 // feature_tests.h:466:1: + X_ISO_C_9899_1999 = 0 // feature_tests.h:472:1: + X_ISO_C_9899_2011 = 0 // feature_tests.h:478:1: + X_ISO_STDIO_C99_H = 0 // stdio_c99.h:41:1: + X_ISO_STDIO_ISO_H = 0 // stdio_iso.h:59:1: + X_LARGEFILE64_SOURCE = 1 // feature_tests.h:231:1: + X_LARGEFILE_SOURCE = 1 // feature_tests.h:235:1: + X_LITTLE_ENDIAN = 0 // isa_defs.h:242:1: + X_LONGLONG_TYPE = 0 // feature_tests.h:412:1: + X_LONG_ALIGNMENT = 8 // isa_defs.h:254:1: + X_LONG_DOUBLE_ALIGNMENT = 16 // isa_defs.h:258:1: + X_LONG_DOUBLE_COMPLEX_ALIGNMENT = 16 // isa_defs.h:259:1: + X_LONG_LONG_ALIGNMENT = 8 // isa_defs.h:255:1: + X_LONG_LONG_ALIGNMENT_32 = 4 // isa_defs.h:268:1: + X_LONG_LONG_LTOH = 0 // isa_defs.h:244:1: + X_LP64 = 1 // :286:1: + X_MAX_ALIGNMENT = 16 // isa_defs.h:261:1: + X_MULTI_DATAMODEL = 0 // isa_defs.h:279:1: + X_NFILE = 20 // stdio_iso.h:135:1: + X_NORETURN_KYWD = 0 // feature_tests.h:448:1: + X_OFF_T = 0 // stdio.h:170:1: + X_POINTER_ALIGNMENT = 8 // isa_defs.h:260:1: + X_PSM_MODULES = 0 // isa_defs.h:284:1: + X_RESTRICT_KYWD = 0 // feature_tests.h:435:1: + X_RTC_CONFIG = 0 // isa_defs.h:285:1: + X_SBFSIZ = 8 // stdio_iso.h:138:1: + X_SHORT_ALIGNMENT = 2 // isa_defs.h:250:1: + X_SIZE_T = 0 // stdio_iso.h:106:1: + X_SOFT_HOSTID = 0 // isa_defs.h:286:1: + X_SSIZE_T = 0 // stdio.h:268:1: + X_STACK_GROWS_DOWNWARD = 0 // isa_defs.h:243:1: + X_STDC_C11 = 0 // feature_tests.h:165:1: + X_STDC_C99 = 0 // feature_tests.h:169:1: + X_STDIO_H = 0 // stdio.h:44:1: + X_STDIO_IMPL_H = 0 // stdio_impl.h:28:1: + X_STDIO_TAG_H = 0 // stdio_tag.h:28:1: + X_SUNOS_VTOC_16 = 0 // isa_defs.h:280:1: + X_SYS_CCOMPILE_H = 0 // ccompile.h:32:1: + X_SYS_FEATURE_TESTS_H = 0 // feature_tests.h:41:1: + X_SYS_ISA_DEFS_H = 0 // isa_defs.h:30:1: + X_SYS_NULL_H = 0 // null.h:17:1: + X_SYS_VA_LIST_H = 0 // va_list.h:34:1: + X_XOPEN_VERSION = 3 // feature_tests.h:392:1: + Sun = 1 // :172:1: + Unix = 1 // :175:1: +) + +type Ptrdiff_t = int64 /* :3:26 */ + +type Size_t = uint64 /* :9:23 */ + +type Wchar_t = int32 /* :15:24 */ + +type X__int128_t = struct { + Flo int64 + Fhi int64 +} /* :21:43 */ // must match modernc.org/mathutil.Int128 +type X__uint128_t = struct { + Flo uint64 + Fhi uint64 +} /* :22:44 */ // must match modernc.org/mathutil.Int128 + +type X__builtin_va_list = uintptr /* :46:14 */ +type X__float128 = float64 /* :47:21 */ + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/stdio.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2014 Garrett D'Amore +// Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved. + +// Copyright (c) 1988 AT&T +// All Rights Reserved + +// User-visible pieces of the ANSI C standard I/O package. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2015 EveryCity Ltd. All rights reserved. +// Copyright 2019 Joyent, Inc. + +// This file contains definitions designed to enable different compilers +// to be used harmoniously on Solaris systems. + +// Allow for version tests for compiler bugs and features. + +// analogous to lint's PRINTFLIKEn + +// Handle the kernel printf routines that can take '%b' too + +// This one's pretty obvious -- the function never returns + +// The function is 'extern inline' and expects GNU C89 behaviour, not C99 +// behaviour. +// +// Should only be used on 'extern inline' definitions for GCC. + +// The function has control flow such that it may return multiple times (in +// the manner of setjmp or vfork) + +// This is an appropriate label for functions that do not +// modify their arguments, e.g. strlen() + +// This is a stronger form of __pure__. Can be used for functions +// that do not modify their arguments and don't depend on global +// memory. + +// This attribute, attached to a variable, means that the variable is meant to +// be possibly unused. GCC will not produce a warning for this variable. + +// Shorthand versions for readability + +// In release build, disable warnings about variables +// which are used only for debugging. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2016 Joyent, Inc. + +// This header file serves to group a set of well known defines and to +// set these for each instruction set architecture. These defines may +// be divided into two groups; characteristics of the processor and +// implementation choices for Solaris on a processor. +// +// Processor Characteristics: +// +// _LITTLE_ENDIAN / _BIG_ENDIAN: +// The natural byte order of the processor. A pointer to an int points +// to the least/most significant byte of that int. +// +// _STACK_GROWS_UPWARD / _STACK_GROWS_DOWNWARD: +// The processor specific direction of stack growth. A push onto the +// stack increases/decreases the stack pointer, so it stores data at +// successively higher/lower addresses. (Stackless machines ignored +// without regrets). +// +// _LONG_LONG_HTOL / _LONG_LONG_LTOH: +// A pointer to a long long points to the most/least significant long +// within that long long. +// +// _BIT_FIELDS_HTOL / _BIT_FIELDS_LTOH: +// The C compiler assigns bit fields from the high/low to the low/high end +// of an int (most to least significant vs. least to most significant). +// +// _IEEE_754: +// The processor (or supported implementations of the processor) +// supports the ieee-754 floating point standard. No other floating +// point standards are supported (or significant). Any other supported +// floating point formats are expected to be cased on the ISA processor +// symbol. +// +// _CHAR_IS_UNSIGNED / _CHAR_IS_SIGNED: +// The C Compiler implements objects of type `char' as `unsigned' or +// `signed' respectively. This is really an implementation choice of +// the compiler writer, but it is specified in the ABI and tends to +// be uniform across compilers for an instruction set architecture. +// Hence, it has the properties of a processor characteristic. +// +// _CHAR_ALIGNMENT / _SHORT_ALIGNMENT / _INT_ALIGNMENT / _LONG_ALIGNMENT / +// _LONG_LONG_ALIGNMENT / _DOUBLE_ALIGNMENT / _LONG_DOUBLE_ALIGNMENT / +// _POINTER_ALIGNMENT / _FLOAT_ALIGNMENT: +// The ABI defines alignment requirements of each of the primitive +// object types. Some, if not all, may be hardware requirements as +// well. The values are expressed in "byte-alignment" units. +// +// _MAX_ALIGNMENT: +// The most stringent alignment requirement as specified by the ABI. +// Equal to the maximum of all the above _XXX_ALIGNMENT values. +// +// _MAX_ALIGNMENT_TYPE: +// The name of the C type that has the value descried in _MAX_ALIGNMENT. +// +// _ALIGNMENT_REQUIRED: +// True or false (1 or 0) whether or not the hardware requires the ABI +// alignment. +// +// _LONG_LONG_ALIGNMENT_32 +// The 32-bit ABI supported by a 64-bit kernel may have different +// alignment requirements for primitive object types. The value of this +// identifier is expressed in "byte-alignment" units. +// +// _HAVE_CPUID_INSN +// This indicates that the architecture supports the 'cpuid' +// instruction as defined by Intel. (Intel allows other vendors +// to extend the instruction for their own purposes.) +// +// +// Implementation Choices: +// +// _ILP32 / _LP64: +// This specifies the compiler data type implementation as specified in +// the relevant ABI. The choice between these is strongly influenced +// by the underlying hardware, but is not absolutely tied to it. +// Currently only two data type models are supported: +// +// _ILP32: +// Int/Long/Pointer are 32 bits. This is the historical UNIX +// and Solaris implementation. Due to its historical standing, +// this is the default case. +// +// _LP64: +// Long/Pointer are 64 bits, Int is 32 bits. This is the chosen +// implementation for 64-bit ABIs such as SPARC V9. +// +// _I32LPx: +// A compilation environment where 'int' is 32-bit, and +// longs and pointers are simply the same size. +// +// In all cases, Char is 8 bits and Short is 16 bits. +// +// _SUNOS_VTOC_8 / _SUNOS_VTOC_16 / _SVR4_VTOC_16: +// This specifies the form of the disk VTOC (or label): +// +// _SUNOS_VTOC_8: +// This is a VTOC form which is upwardly compatible with the +// SunOS 4.x disk label and allows 8 partitions per disk. +// +// _SUNOS_VTOC_16: +// In this format the incore vtoc image matches the ondisk +// version. It allows 16 slices per disk, and is not +// compatible with the SunOS 4.x disk label. +// +// Note that these are not the only two VTOC forms possible and +// additional forms may be added. One possible form would be the +// SVr4 VTOC form. The symbol for that is reserved now, although +// it is not implemented. +// +// _SVR4_VTOC_16: +// This VTOC form is compatible with the System V Release 4 +// VTOC (as implemented on the SVr4 Intel and 3b ports) with +// 16 partitions per disk. +// +// +// _DMA_USES_PHYSADDR / _DMA_USES_VIRTADDR +// This describes the type of addresses used by system DMA: +// +// _DMA_USES_PHYSADDR: +// This type of DMA, used in the x86 implementation, +// requires physical addresses for DMA buffers. The 24-bit +// addresses used by some legacy boards is the source of the +// "low-memory" (<16MB) requirement for some devices using DMA. +// +// _DMA_USES_VIRTADDR: +// This method of DMA allows the use of virtual addresses for +// DMA transfers. +// +// _FIRMWARE_NEEDS_FDISK / _NO_FDISK_PRESENT +// This indicates the presence/absence of an fdisk table. +// +// _FIRMWARE_NEEDS_FDISK +// The fdisk table is required by system firmware. If present, +// it allows a disk to be subdivided into multiple fdisk +// partitions, each of which is equivalent to a separate, +// virtual disk. This enables the co-existence of multiple +// operating systems on a shared hard disk. +// +// _NO_FDISK_PRESENT +// If the fdisk table is absent, it is assumed that the entire +// media is allocated for a single operating system. +// +// _HAVE_TEM_FIRMWARE +// Defined if this architecture has the (fallback) option of +// using prom_* calls for doing I/O if a suitable kernel driver +// is not available to do it. +// +// _DONT_USE_1275_GENERIC_NAMES +// Controls whether or not device tree node names should +// comply with the IEEE 1275 "Generic Names" Recommended +// Practice. With _DONT_USE_GENERIC_NAMES, device-specific +// names identifying the particular device will be used. +// +// __i386_COMPAT +// This indicates whether the i386 ABI is supported as a *non-native* +// mode for the platform. When this symbol is defined: +// - 32-bit xstat-style system calls are enabled +// - 32-bit xmknod-style system calls are enabled +// - 32-bit system calls use i386 sizes -and- alignments +// +// Note that this is NOT defined for the i386 native environment! +// +// __x86 +// This is ONLY a synonym for defined(__i386) || defined(__amd64) +// which is useful only insofar as these two architectures share +// common attributes. Analogous to __sparc. +// +// _PSM_MODULES +// This indicates whether or not the implementation uses PSM +// modules for processor support, reading /etc/mach from inside +// the kernel to extract a list. +// +// _RTC_CONFIG +// This indicates whether or not the implementation uses /etc/rtc_config +// to configure the real-time clock in the kernel. +// +// _UNIX_KRTLD +// This indicates that the implementation uses a dynamically +// linked unix + krtld to form the core kernel image at boot +// time, or (in the absence of this symbol) a prelinked kernel image. +// +// _OBP +// This indicates the firmware interface is OBP. +// +// _SOFT_HOSTID +// This indicates that the implementation obtains the hostid +// from the file /etc/hostid, rather than from hardware. + +// The following set of definitions characterize Solaris on AMD's +// 64-bit systems. + +// Define the appropriate "processor characteristics" + +// Different alignment constraints for the i386 ABI in compatibility mode + +// Define the appropriate "implementation choices". + +// The feature test macro __i386 is generic for all processors implementing +// the Intel 386 instruction set or a superset of it. Specifically, this +// includes all members of the 386, 486, and Pentium family of processors. + +// Values of _POSIX_C_SOURCE +// +// undefined not a POSIX compilation +// 1 POSIX.1-1990 compilation +// 2 POSIX.2-1992 compilation +// 199309L POSIX.1b-1993 compilation (Real Time) +// 199506L POSIX.1c-1995 compilation (POSIX Threads) +// 200112L POSIX.1-2001 compilation (Austin Group Revision) +// 200809L POSIX.1-2008 compilation + +// The feature test macros __XOPEN_OR_POSIX, _STRICT_STDC, _STRICT_SYMBOLS, +// and _STDC_C99 are Sun implementation specific macros created in order to +// compress common standards specified feature test macros for easier reading. +// These macros should not be used by the application developer as +// unexpected results may occur. Instead, the user should reference +// standards(7) for correct usage of the standards feature test macros. +// +// __XOPEN_OR_POSIX Used in cases where a symbol is defined by both +// X/Open or POSIX or in the negative, when neither +// X/Open or POSIX defines a symbol. +// +// _STRICT_STDC __STDC__ is specified by the C Standards and defined +// by the compiler. For Sun compilers the value of +// __STDC__ is either 1, 0, or not defined based on the +// compilation mode (see cc(1)). When the value of +// __STDC__ is 1 and in the absence of any other feature +// test macros, the namespace available to the application +// is limited to only those symbols defined by the C +// Standard. _STRICT_STDC provides a more readable means +// of identifying symbols defined by the standard, or in +// the negative, symbols that are extensions to the C +// Standard. See additional comments for GNU C differences. +// +// _STDC_C99 __STDC_VERSION__ is specified by the C standards and +// defined by the compiler and indicates the version of +// the C standard. A value of 199901L indicates a +// compiler that complies with ISO/IEC 9899:1999, other- +// wise known as the C99 standard. +// +// _STDC_C11 Like _STDC_C99 except that the value of __STDC_VERSION__ +// is 201112L indicating a compiler that compiles with +// ISO/IEC 9899:2011, otherwise known as the C11 standard. +// +// _STRICT_SYMBOLS Used in cases where symbol visibility is restricted +// by the standards, and the user has not explicitly +// relaxed the strictness via __EXTENSIONS__. + +// ISO/IEC 9899:1990 and it's revisions, ISO/IEC 9899:1999 and ISO/IEC +// 99899:2011 specify the following predefined macro name: +// +// __STDC__ The integer constant 1, intended to indicate a conforming +// implementation. +// +// Furthermore, a strictly conforming program shall use only those features +// of the language and library specified in these standards. A conforming +// implementation shall accept any strictly conforming program. +// +// Based on these requirements, Sun's C compiler defines __STDC__ to 1 for +// strictly conforming environments and __STDC__ to 0 for environments that +// use ANSI C semantics but allow extensions to the C standard. For non-ANSI +// C semantics, Sun's C compiler does not define __STDC__. +// +// The GNU C project interpretation is that __STDC__ should always be defined +// to 1 for compilation modes that accept ANSI C syntax regardless of whether +// or not extensions to the C standard are used. Violations of conforming +// behavior are conditionally flagged as warnings via the use of the +// -pedantic option. In addition to defining __STDC__ to 1, the GNU C +// compiler also defines __STRICT_ANSI__ as a means of specifying strictly +// conforming environments using the -ansi or -std= options. +// +// In the absence of any other compiler options, Sun and GNU set the value +// of __STDC__ as follows when using the following options: +// +// Value of __STDC__ __STRICT_ANSI__ +// +// cc -Xa (default) 0 undefined +// cc -Xt (transitional) 0 undefined +// cc -Xc (strictly conforming) 1 undefined +// cc -Xs (K&R C) undefined undefined +// +// gcc (default) 1 undefined +// gcc -ansi, -std={c89, c99,...) 1 defined +// gcc -traditional (K&R) undefined undefined +// +// The default compilation modes for Sun C compilers versus GNU C compilers +// results in a differing value for __STDC__ which results in a more +// restricted namespace when using Sun compilers. To allow both GNU and Sun +// interpretations to peacefully co-exist, we use the following Sun +// implementation _STRICT_STDC_ macro: + +// Compiler complies with ISO/IEC 9899:1999 or ISO/IEC 9989:2011 + +// Use strict symbol visibility. + +// This is a variant of _STRICT_SYMBOLS that is meant to cover headers that are +// governed by POSIX, but have not been governed by ISO C. One can go two ways +// on what should happen if an application actively includes (not transitively) +// a header that isn't part of the ISO C spec, we opt to say that if someone has +// gone out of there way then they're doing it for a reason and that is an act +// of non-compliance and therefore it's not up to us to hide away every symbol. +// +// In general, prefer using _STRICT_SYMBOLS, but this is here in particular for +// cases where in the past we have only used a POSIX related check and we don't +// wish to make something stricter. Often applications are relying on the +// ability to, or more realistically unwittingly, have _STRICT_STDC declared and +// still use these interfaces. + +// Large file interfaces: +// +// _LARGEFILE_SOURCE +// 1 large file-related additions to POSIX +// interfaces requested (fseeko, etc.) +// _LARGEFILE64_SOURCE +// 1 transitional large-file-related interfaces +// requested (seek64, stat64, etc.) +// +// The corresponding announcement macros are respectively: +// _LFS_LARGEFILE +// _LFS64_LARGEFILE +// (These are set in .) +// +// Requesting _LARGEFILE64_SOURCE implies requesting _LARGEFILE_SOURCE as +// well. +// +// The large file interfaces are made visible regardless of the initial values +// of the feature test macros under certain circumstances: +// - If no explicit standards-conforming environment is requested (neither +// of _POSIX_SOURCE nor _XOPEN_SOURCE is defined and the value of +// __STDC__ does not imply standards conformance). +// - Extended system interfaces are explicitly requested (__EXTENSIONS__ +// is defined). +// - Access to in-kernel interfaces is requested (_KERNEL or _KMEMUSER is +// defined). (Note that this dependency is an artifact of the current +// kernel implementation and may change in future releases.) + +// Large file compilation environment control: +// +// The setting of _FILE_OFFSET_BITS controls the size of various file-related +// types and governs the mapping between file-related source function symbol +// names and the corresponding binary entry points. +// +// In the 32-bit environment, the default value is 32; if not set, set it to +// the default here, to simplify tests in other headers. +// +// In the 64-bit compilation environment, the only value allowed is 64. + +// Use of _XOPEN_SOURCE +// +// The following X/Open specifications are supported: +// +// X/Open Portability Guide, Issue 3 (XPG3) +// X/Open CAE Specification, Issue 4 (XPG4) +// X/Open CAE Specification, Issue 4, Version 2 (XPG4v2) +// X/Open CAE Specification, Issue 5 (XPG5) +// Open Group Technical Standard, Issue 6 (XPG6), also referred to as +// IEEE Std. 1003.1-2001 and ISO/IEC 9945:2002. +// Open Group Technical Standard, Issue 7 (XPG7), also referred to as +// IEEE Std. 1003.1-2008 and ISO/IEC 9945:2009. +// +// XPG4v2 is also referred to as UNIX 95 (SUS or SUSv1). +// XPG5 is also referred to as UNIX 98 or the Single Unix Specification, +// Version 2 (SUSv2) +// XPG6 is the result of a merge of the X/Open and POSIX specifications +// and as such is also referred to as IEEE Std. 1003.1-2001 in +// addition to UNIX 03 and SUSv3. +// XPG7 is also referred to as UNIX 08 and SUSv4. +// +// When writing a conforming X/Open application, as per the specification +// requirements, the appropriate feature test macros must be defined at +// compile time. These are as follows. For more info, see standards(7). +// +// Feature Test Macro Specification +// ------------------------------------------------ ------------- +// _XOPEN_SOURCE XPG3 +// _XOPEN_SOURCE && _XOPEN_VERSION = 4 XPG4 +// _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED = 1 XPG4v2 +// _XOPEN_SOURCE = 500 XPG5 +// _XOPEN_SOURCE = 600 (or POSIX_C_SOURCE=200112L) XPG6 +// _XOPEN_SOURCE = 700 (or POSIX_C_SOURCE=200809L) XPG7 +// +// In order to simplify the guards within the headers, the following +// implementation private test macros have been created. Applications +// must NOT use these private test macros as unexpected results will +// occur. +// +// Note that in general, the use of these private macros is cumulative. +// For example, the use of _XPG3 with no other restrictions on the X/Open +// namespace will make the symbols visible for XPG3 through XPG6 +// compilation environments. The use of _XPG4_2 with no other X/Open +// namespace restrictions indicates that the symbols were introduced in +// XPG4v2 and are therefore visible for XPG4v2 through XPG6 compilation +// environments, but not for XPG3 or XPG4 compilation environments. +// +// _XPG3 X/Open Portability Guide, Issue 3 (XPG3) +// _XPG4 X/Open CAE Specification, Issue 4 (XPG4) +// _XPG4_2 X/Open CAE Specification, Issue 4, Version 2 (XPG4v2/UNIX 95/SUS) +// _XPG5 X/Open CAE Specification, Issue 5 (XPG5/UNIX 98/SUSv2) +// _XPG6 Open Group Technical Standard, Issue 6 (XPG6/UNIX 03/SUSv3) +// _XPG7 Open Group Technical Standard, Issue 7 (XPG7/UNIX 08/SUSv4) + +// X/Open Portability Guide, Issue 3 + +// _XOPEN_VERSION is defined by the X/Open specifications and is not +// normally defined by the application, except in the case of an XPG4 +// application. On the implementation side, _XOPEN_VERSION defined with +// the value of 3 indicates an XPG3 application. _XOPEN_VERSION defined +// with the value of 4 indicates an XPG4 or XPG4v2 (UNIX 95) application. +// _XOPEN_VERSION defined with a value of 500 indicates an XPG5 (UNIX 98) +// application and with a value of 600 indicates an XPG6 (UNIX 03) +// application and with a value of 700 indicates an XPG7 (UNIX 08). +// The appropriate version is determined by the use of the +// feature test macros described earlier. The value of _XOPEN_VERSION +// defaults to 3 otherwise indicating support for XPG3 applications. + +// ANSI C and ISO 9899:1990 say the type long long doesn't exist in strictly +// conforming environments. ISO 9899:1999 says it does. +// +// The presence of _LONGLONG_TYPE says "long long exists" which is therefore +// defined in all but strictly conforming environments that disallow it. + +// The following macro defines a value for the ISO C99 restrict +// keyword so that _RESTRICT_KYWD resolves to "restrict" if +// an ISO C99 compiler is used, "__restrict" for c++ and "" (null string) +// if any other compiler is used. This allows for the use of single +// prototype declarations regardless of compiler version. + +// The following macro defines a value for the ISO C11 _Noreturn +// keyword so that _NORETURN_KYWD resolves to "_Noreturn" if +// an ISO C11 compiler is used and "" (null string) if any other +// compiler is used. This allows for the use of single prototype +// declarations regardless of compiler version. + +// ISO/IEC 9899:2011 Annex K + +// The following macro indicates header support for the ANSI C++ +// standard. The ISO/IEC designation for this is ISO/IEC FDIS 14882. + +// The following macro indicates header support for the C99 standard, +// ISO/IEC 9899:1999, Programming Languages - C. + +// The following macro indicates header support for the C11 standard, +// ISO/IEC 9899:2011, Programming Languages - C. + +// The following macro indicates header support for the C11 standard, +// ISO/IEC 9899:2011 Annex K, Programming Languages - C. + +// The following macro indicates header support for DTrace. The value is an +// integer that corresponds to the major version number for DTrace. + +// Do all of our 'redefine_extname' processing before +// declarations of the associated functions are seen. +// This is necessary to keep gcc happy. + +// large file compilation environment setup + +// In the LP64 compilation environment, all APIs are already large file + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/iso/stdio_iso.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2014 Garrett D'Amore +// Copyright 2014 PALO, Richard. +// +// Copyright 2005 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright (c) 1988 AT&T +// All Rights Reserved + +// An application should not include this header directly. Instead it +// should be included only through the inclusion of other Sun headers. +// +// The contents of this header is limited to identifiers specified in the +// C Standard. Any new identifiers specified in future amendments to the +// C Standard must be placed in this header. If these new identifiers +// are required to also be in the C++ Standard "std" namespace, then for +// anything other than macro definitions, corresponding "using" directives +// must also be added to . + +// User-visible pieces of the ANSI C standard I/O package. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// This file and its contents are supplied under the terms of the +// Common Development and Distribution License ("CDDL"), version 1.0. +// You may only use this file in accordance with the terms of version +// 1.0 of the CDDL. +// +// A full copy of the text of the CDDL should have accompanied this +// source. A copy of the CDDL is also available via the Internet at +// http://www.illumos.org/license/CDDL. + +// Copyright 2014-2016 PALO, Richard. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// POSIX.1-2008 requires that the NULL macro be cast to type void *. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// An application should not include this header directly. Instead it +// should be included only through the inclusion of other Sun headers. +// +// The purpose of this header is to provide the type definitions for +// the va_list argument used by a number of printf and printf like +// functions. The headers that define these various function prototypes +// #include this header directly. These include but are not necessarily +// limited to , , , and +// . The type definitions included in this header are for +// the benefit of consumers of va_list. +// +// Any application that accepts variable argument lists must as documented, +// include either or the preferred . Doing so will +// pull in the appropriate compiler protocols defined in +// which is in turn is included by and . See comments +// in for more detailed information regarding implementation +// and compiler specific protocols. + +// The common definitions exported by this header or compilers using +// this header are: +// +// the identifier __builtin_va_alist for the variable list pseudo parameter +// the type __va_alist_type for the variable list pseudo parameter +// the type __va_list defining the type of the variable list iterator +// +// The feature macros (e.g. __BUILTIN_VA_STRUCT) and compiler macros +// (__GNUC__) and processor macros (e.g. __amd64) are intended to be +// defined by the compilation system, not the user of the system. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2016 Joyent, Inc. + +type X__gnuc_va_list = uintptr /* va_list.h:108:27 */ +// XX64 This seems unnecessary .. but is needed because vcmn_err is +// +// defined with __va_list instead of plain old va_list. +// Perhaps that should be fixed! +type X__va_list = uintptr /* va_list.h:114:27 */ + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +type X__FILE1 = struct{ F__pad [16]int64 } /* stdio_tag.h:40:9 */ + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +type X__FILE = X__FILE1 /* stdio_tag.h:40:27 */ + +// If feature test macros are set that enable interfaces that use types +// defined in , get those types by doing the include. +// +// Note that in asking for the interfaces associated with this feature test +// macro one also asks for definitions of the POSIX types. + +type FILE = X__FILE /* stdio_iso.h:102:16 */ // size of something in bytes + +type Fpos_t = int64 /* stdio_iso.h:115:15 */ + +type Off_t = int64 /* stdio.h:172:15 */ +type Off64_t = int64 /* stdio.h:178:16 */ + +type Fpos64_t = int64 /* stdio.h:188:17 */ + +// large file compilation environment setup + +// In the LP64 compilation environment, all APIs are already large file + +type Ssize_t = int64 /* stdio.h:270:14 */ + +var _ int8 /* gen.c:2:13: */ diff --git a/vendor/modernc.org/libc/stdio/stdio_linux_loong64.go b/vendor/modernc.org/libc/stdio/stdio_linux_loong64.go new file mode 100644 index 000000000..797977f11 --- /dev/null +++ b/vendor/modernc.org/libc/stdio/stdio_linux_loong64.go @@ -0,0 +1,588 @@ +// Code generated by 'ccgo stdio/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o stdio/stdio_linux_loong64.go -pkgname stdio', DO NOT EDIT. + +package stdio + +import ( + "math" + "reflect" + "sync/atomic" + "unsafe" +) + +var _ = math.Pi +var _ reflect.Kind +var _ atomic.Value +var _ unsafe.Pointer + +const ( + BUFSIZ = 8192 // stdio.h:99:1: + EOF = -1 // stdio.h:104:1: + FILENAME_MAX = 4096 // stdio_lim.h:26:1: + FOPEN_MAX = 16 // stdio.h:138:1: + L_ctermid = 9 // stdio.h:131:1: + L_tmpnam = 20 // stdio.h:123:1: + P_tmpdir = "/tmp" // stdio.h:120:1: + SEEK_CUR = 1 // stdio.h:110:1: + SEEK_END = 2 // stdio.h:111:1: + SEEK_SET = 0 // stdio.h:109:1: + TMP_MAX = 238328 // stdio.h:124:1: + X_ABILP64 = 3 // :377:1: + X_ATFILE_SOURCE = 1 // features.h:353:1: + X_BITS_FLOATN_COMMON_H = 0 // floatn-common.h:21:1: + X_BITS_FLOATN_H = 0 // floatn.h:20:1: + X_BITS_STDIO_LIM_H = 1 // stdio_lim.h:20:1: + X_BITS_TIME64_H = 1 // time64.h:24:1: + X_BITS_TYPESIZES_H = 1 // typesizes.h:24:1: + X_BITS_TYPES_H = 1 // types.h:24:1: + X_BSD_SIZE_T_ = 0 // stddef.h:193:1: + X_BSD_SIZE_T_DEFINED_ = 0 // stddef.h:196:1: + X_DEFAULT_SOURCE = 1 // features.h:238:1: + X_FEATURES_H = 1 // features.h:19:1: + X_FILE_OFFSET_BITS = 64 // :25:1: + X_GCC_SIZE_T = 0 // stddef.h:200:1: + X_IOFBF = 0 // stdio.h:93:1: + X_IOLBF = 1 // stdio.h:94:1: + X_IONBF = 2 // stdio.h:95:1: + X_IO_EOF_SEEN = 0x0010 // struct_FILE.h:111:1: + X_IO_ERR_SEEN = 0x0020 // struct_FILE.h:114:1: + X_IO_USER_LOCK = 0x8000 // struct_FILE.h:117:1: + X_LOONGARCH_ARCH = "loongarch64" // :214:1: + X_LOONGARCH_ARCH_LOONGARCH64 = 1 // :340:1: + X_LOONGARCH_FPSET = 32 // :265:1: + X_LOONGARCH_SIM = 3 // :233:1: + X_LOONGARCH_SPFPSET = 32 // :88:1: + X_LOONGARCH_SZINT = 32 // :230:1: + X_LOONGARCH_SZLONG = 64 // :388:1: + X_LOONGARCH_SZPTR = 64 // :200:1: + X_LOONGARCH_TUNE = "la464" // :245:1: + X_LOONGARCH_TUNE_LA464 = 1 // :63:1: + X_LP64 = 1 // :372:1: + X_POSIX_C_SOURCE = 200809 // features.h:292:1: + X_POSIX_SOURCE = 1 // features.h:290:1: + X_SIZET_ = 0 // stddef.h:201:1: + X_SIZE_T = 0 // stddef.h:187:1: + X_SIZE_T_ = 0 // stddef.h:192:1: + X_SIZE_T_DECLARED = 0 // stddef.h:197:1: + X_SIZE_T_DEFINED = 0 // stddef.h:195:1: + X_SIZE_T_DEFINED_ = 0 // stddef.h:194:1: + X_STDC_PREDEF_H = 1 // :223:1: + X_STDIO_H = 1 // stdio.h:24:1: + X_SYS_CDEFS_H = 1 // cdefs.h:20:1: + X_SYS_SIZE_T_H = 0 // stddef.h:188:1: + X_T_SIZE = 0 // stddef.h:190:1: + X_T_SIZE_ = 0 // stddef.h:189:1: + X_VA_LIST_DEFINED = 0 // stdio.h:53:1: + Linux = 1 // :308:1: + Unix = 1 // :247:1: +) + +type Ptrdiff_t = int64 /* :3:26 */ + +type Size_t = uint64 /* :9:23 */ + +type Wchar_t = int32 /* :15:24 */ + +type X__int128_t = struct { + Flo int64 + Fhi int64 +} /* :21:43 */ // must match modernc.org/mathutil.Int128 +type X__uint128_t = struct { + Flo uint64 + Fhi uint64 +} /* :22:44 */ // must match modernc.org/mathutil.Int128 + +type X__builtin_va_list = uintptr /* :46:14 */ +type X__float128 = float64 /* :47:21 */ + +// Wide character type. +// Locale-writers should change this as necessary to +// be big enough to hold unique values not between 0 and 127, +// and not (wchar_t) -1, for each defined multibyte character. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// A null pointer constant. + +// Copyright (C) 1989-2023 Free Software Foundation, Inc. +// +// This file is part of GCC. +// +// GCC is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 3, or (at your option) +// any later version. +// +// GCC is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// Under Section 7 of GPL version 3, you are granted additional +// permissions described in the GCC Runtime Library Exception, version +// 3.1, as published by the Free Software Foundation. +// +// You should have received a copy of the GNU General Public License and +// a copy of the GCC Runtime Library Exception along with this program; +// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see +// . + +// ISO C Standard: 7.15 Variable arguments + +// Define __gnuc_va_list. + +type X__gnuc_va_list = uintptr /* stdarg.h:40:27 */ + +// Define the standard macros for the user, +// if this invocation was from the user program. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Bit size of the time_t type at glibc build time, general case. +// Copyright (C) 2018-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Size in bits of the 'time_t' type of the default ABI. + +// Convenience types. +type X__u_char = uint8 /* types.h:31:23 */ +type X__u_short = uint16 /* types.h:32:28 */ +type X__u_int = uint32 /* types.h:33:22 */ +type X__u_long = uint64 /* types.h:34:27 */ + +// Fixed-size types, underlying types depend on word size and compiler. +type X__int8_t = int8 /* types.h:37:21 */ +type X__uint8_t = uint8 /* types.h:38:23 */ +type X__int16_t = int16 /* types.h:39:26 */ +type X__uint16_t = uint16 /* types.h:40:28 */ +type X__int32_t = int32 /* types.h:41:20 */ +type X__uint32_t = uint32 /* types.h:42:22 */ +type X__int64_t = int64 /* types.h:44:25 */ +type X__uint64_t = uint64 /* types.h:45:27 */ + +// Smallest types with at least a given width. +type X__int_least8_t = int8 /* types.h:52:18 */ +type X__uint_least8_t = uint8 /* types.h:53:19 */ +type X__int_least16_t = int16 /* types.h:54:19 */ +type X__uint_least16_t = uint16 /* types.h:55:20 */ +type X__int_least32_t = int32 /* types.h:56:19 */ +type X__uint_least32_t = uint32 /* types.h:57:20 */ +type X__int_least64_t = int64 /* types.h:58:19 */ +type X__uint_least64_t = uint64 /* types.h:59:20 */ + +// quad_t is also 64 bits. +type X__quad_t = int64 /* types.h:63:18 */ +type X__u_quad_t = uint64 /* types.h:64:27 */ + +// Largest integral types. +type X__intmax_t = int64 /* types.h:72:18 */ +type X__uintmax_t = uint64 /* types.h:73:27 */ + +// The machine-dependent file defines __*_T_TYPE +// macros for each of the OS types we define below. The definitions +// of those macros must use the following macros for underlying types. +// We define __S_TYPE and __U_TYPE for the signed and unsigned +// variants of each of the following integer types on this machine. +// +// 16 -- "natural" 16-bit type (always short) +// 32 -- "natural" 32-bit type (always int) +// 64 -- "natural" 64-bit type (long or long long) +// LONG32 -- 32-bit type, traditionally long +// QUAD -- 64-bit type, traditionally long long +// WORD -- natural type of __WORDSIZE bits (int or long) +// LONGWORD -- type of __WORDSIZE bits, traditionally long +// +// We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the +// conventional uses of `long' or `long long' type modifiers match the +// types we define, even when a less-adorned type would be the same size. +// This matters for (somewhat) portably writing printf/scanf formats for +// these types, where using the appropriate l or ll format modifiers can +// make the typedefs and the formats match up across all GNU platforms. If +// we used `long' when it's 64 bits where `long long' is expected, then the +// compiler would warn about the formats not matching the argument types, +// and the programmer changing them to shut up the compiler would break the +// program's portability. +// +// Here we assume what is presently the case in all the GCC configurations +// we support: long long is always 64 bits, long is always word/address size, +// and int is always 32 bits. + +// No need to mark the typedef with __extension__. +// bits/typesizes.h -- underlying types for *_t. For the generic Linux ABI. +// Copyright (C) 2011-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library. If not, see +// . + +// See for the meaning of these macros. This file exists so +// that need not vary across different GNU platforms. + +// Tell the libc code that off_t and off64_t are actually the same type +// for all ABI purposes, even if possibly expressed as different base types +// for C type-checking purposes. + +// Same for ino_t and ino64_t. + +// And for __rlim_t and __rlim64_t. + +// And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t. + +// And for getitimer, setitimer and rusage + +// Number of descriptors that can fit in an `fd_set'. + +// bits/time64.h -- underlying types for __time64_t. Generic version. +// Copyright (C) 2018-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Define __TIME64_T_TYPE so that it is always a 64-bit type. + +// If we already have 64-bit time type then use it. + +type X__dev_t = uint64 /* types.h:145:25 */ // Type of device numbers. +type X__uid_t = uint32 /* types.h:146:25 */ // Type of user identifications. +type X__gid_t = uint32 /* types.h:147:25 */ // Type of group identifications. +type X__ino_t = uint64 /* types.h:148:25 */ // Type of file serial numbers. +type X__ino64_t = uint64 /* types.h:149:27 */ // Type of file serial numbers (LFS). +type X__mode_t = uint32 /* types.h:150:26 */ // Type of file attribute bitmasks. +type X__nlink_t = uint32 /* types.h:151:27 */ // Type of file link counts. +type X__off_t = int64 /* types.h:152:25 */ // Type of file sizes and offsets. +type X__off64_t = int64 /* types.h:153:27 */ // Type of file sizes and offsets (LFS). +type X__pid_t = int32 /* types.h:154:25 */ // Type of process identifications. +type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs. +type X__clock_t = int64 /* types.h:156:27 */ // Type of CPU usage counts. +type X__rlim_t = uint64 /* types.h:157:26 */ // Type for resource measurement. +type X__rlim64_t = uint64 /* types.h:158:28 */ // Type for resource measurement (LFS). +type X__id_t = uint32 /* types.h:159:24 */ // General type for IDs. +type X__time_t = int64 /* types.h:160:26 */ // Seconds since the Epoch. +type X__useconds_t = uint32 /* types.h:161:30 */ // Count of microseconds. +type X__suseconds_t = int64 /* types.h:162:31 */ // Signed count of microseconds. +type X__suseconds64_t = int64 /* types.h:163:33 */ + +type X__daddr_t = int32 /* types.h:165:27 */ // The type of a disk address. +type X__key_t = int32 /* types.h:166:25 */ // Type of an IPC key. + +// Clock ID used in clock and timer functions. +type X__clockid_t = int32 /* types.h:169:29 */ + +// Timer ID returned by `timer_create'. +type X__timer_t = uintptr /* types.h:172:12 */ + +// Type to represent block size. +type X__blksize_t = int32 /* types.h:175:29 */ + +// Types from the Large File Support interface. + +// Type to count number of disk blocks. +type X__blkcnt_t = int64 /* types.h:180:28 */ +type X__blkcnt64_t = int64 /* types.h:181:30 */ + +// Type to count file system blocks. +type X__fsblkcnt_t = uint64 /* types.h:184:30 */ +type X__fsblkcnt64_t = uint64 /* types.h:185:32 */ + +// Type to count file system nodes. +type X__fsfilcnt_t = uint64 /* types.h:188:30 */ +type X__fsfilcnt64_t = uint64 /* types.h:189:32 */ + +// Type of miscellaneous file system fields. +type X__fsword_t = int64 /* types.h:192:28 */ + +type X__ssize_t = int64 /* types.h:194:27 */ // Type of a byte count, or error. + +// Signed long type used in system calls. +type X__syscall_slong_t = int64 /* types.h:197:33 */ +// Unsigned long type used in system calls. +type X__syscall_ulong_t = uint64 /* types.h:199:33 */ + +// These few don't really vary by system, they always correspond +// +// to one of the other defined types. +type X__loff_t = int64 /* types.h:203:19 */ // Type of file sizes and offsets (LFS). +type X__caddr_t = uintptr /* types.h:204:14 */ + +// Duplicates info from stdint.h but this is used in unistd.h. +type X__intptr_t = int64 /* types.h:207:25 */ + +// Duplicate info from sys/socket.h. +type X__socklen_t = uint32 /* types.h:210:23 */ + +// C99: An integer type that can be accessed as an atomic entity, +// +// even in the presence of asynchronous interrupts. +// It is not currently necessary for this to be machine-specific. +type X__sig_atomic_t = int32 /* types.h:215:13 */ + +// Seconds since the Epoch, visible to user code when time_t is too +// narrow only for consistency with the old way of widening too-narrow +// types. User code should never use __time64_t. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Integral type unchanged by default argument promotions that can +// hold any value corresponding to members of the extended character +// set, as well as at least one value that does not correspond to any +// member of the extended character set. + +// Conversion state information. +type X__mbstate_t = struct { + F__count int32 + F__value struct{ F__wch uint32 } +} /* __mbstate_t.h:21:3 */ + +// The tag name of this struct is _G_fpos_t to preserve historic +// +// C++ mangled names for functions taking fpos_t arguments. +// That name should not be used in new code. +type X_G_fpos_t = struct { + F__pos int64 + F__state X__mbstate_t +} /* __fpos_t.h:10:9 */ + +// The tag name of this struct is _G_fpos_t to preserve historic +// +// C++ mangled names for functions taking fpos_t arguments. +// That name should not be used in new code. +type X__fpos_t = X_G_fpos_t /* __fpos_t.h:14:3 */ + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// The tag name of this struct is _G_fpos64_t to preserve historic +// +// C++ mangled names for functions taking fpos_t and/or fpos64_t +// arguments. That name should not be used in new code. +type X_G_fpos64_t = struct { + F__pos int64 + F__state X__mbstate_t +} /* __fpos64_t.h:10:9 */ + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// The tag name of this struct is _G_fpos64_t to preserve historic +// +// C++ mangled names for functions taking fpos_t and/or fpos64_t +// arguments. That name should not be used in new code. +type X__fpos64_t = X_G_fpos64_t /* __fpos64_t.h:14:3 */ + +type X_IO_FILE = struct { + F_flags int32 + F__ccgo_pad1 [4]byte + F_IO_read_ptr uintptr + F_IO_read_end uintptr + F_IO_read_base uintptr + F_IO_write_base uintptr + F_IO_write_ptr uintptr + F_IO_write_end uintptr + F_IO_buf_base uintptr + F_IO_buf_end uintptr + F_IO_save_base uintptr + F_IO_backup_base uintptr + F_IO_save_end uintptr + F_markers uintptr + F_chain uintptr + F_fileno int32 + F_flags2 int32 + F_old_offset int64 + F_cur_column uint16 + F_vtable_offset int8 + F_shortbuf [1]int8 + F__ccgo_pad2 [4]byte + F_lock uintptr + F_offset int64 + F_codecvt uintptr + F_wide_data uintptr + F_freeres_list uintptr + F_freeres_buf uintptr + F__pad5 uint64 + F_mode int32 + F_unused2 [20]int8 +} /* __FILE.h:4:1 */ + +type X__FILE = X_IO_FILE /* __FILE.h:5:25 */ + +// The opaque type of streams. This is the definition used elsewhere. +type FILE = X_IO_FILE /* FILE.h:7:25 */ + +// The structure with the cookie function pointers. +// +// The tag name of this struct is _IO_cookie_io_functions_t to +// preserve historic C++ mangled names for functions taking +// cookie_io_functions_t arguments. That name should not be used in +// new code. +type X_IO_cookie_io_functions_t = struct { + Fread uintptr + Fwrite uintptr + Fseek uintptr + Fclose uintptr +} /* cookie_io_functions_t.h:55:9 */ + +// The structure with the cookie function pointers. +// +// The tag name of this struct is _IO_cookie_io_functions_t to +// preserve historic C++ mangled names for functions taking +// cookie_io_functions_t arguments. That name should not be used in +// new code. +type Cookie_io_functions_t = X_IO_cookie_io_functions_t /* cookie_io_functions_t.h:61:3 */ + +type Va_list = uintptr /* stdio.h:52:24 */ + +type Off_t = int64 /* stdio.h:65:19 */ + +type Ssize_t = int64 /* stdio.h:77:19 */ + +// The type of the second argument to `fgetpos' and `fsetpos'. +type Fpos_t = X__fpos64_t /* stdio.h:86:20 */ + +// The following headers provide asm redirections. These redirections must +// appear before the first usage of these functions, e.g. in bits/stdio.h. + +// If we are compiling with optimizing read this file. It contains +// several optimizing inline functions and macros. + +var _ int8 /* gen.c:2:13: */ diff --git a/vendor/modernc.org/libc/stdio/stdio_linux_mips64le.go b/vendor/modernc.org/libc/stdio/stdio_linux_mips64le.go new file mode 100644 index 000000000..b11d50c87 --- /dev/null +++ b/vendor/modernc.org/libc/stdio/stdio_linux_mips64le.go @@ -0,0 +1,540 @@ +// Code generated by 'ccgo stdio/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o stdio/stdio_linux_amd64.go -pkgname stdio', DO NOT EDIT. + +package stdio + +import ( + "math" + "reflect" + "sync/atomic" + "unsafe" +) + +var _ = math.Pi +var _ reflect.Kind +var _ atomic.Value +var _ unsafe.Pointer + +const ( + BUFSIZ = 8192 // stdio.h:99:1: + EOF = -1 // stdio.h:104:1: + FILENAME_MAX = 4096 // stdio_lim.h:27:1: + FOPEN_MAX = 16 // stdio_lim.h:37:1: + L_ctermid = 9 // stdio_lim.h:30:1: + L_tmpnam = 20 // stdio_lim.h:25:1: + P_tmpdir = "/tmp" // stdio.h:120:1: + SEEK_CUR = 1 // stdio.h:110:1: + SEEK_END = 2 // stdio.h:111:1: + SEEK_SET = 0 // stdio.h:109:1: + TMP_MAX = 238328 // stdio_lim.h:26:1: + X_ATFILE_SOURCE = 1 // features.h:342:1: + X_BITS_STDIO_LIM_H = 1 // stdio_lim.h:19:1: + X_BITS_TIME64_H = 1 // time64.h:24:1: + X_BITS_TYPESIZES_H = 1 // typesizes.h:24:1: + X_BITS_TYPES_H = 1 // types.h:24:1: + X_BSD_SIZE_T_ = 0 // stddef.h:189:1: + X_BSD_SIZE_T_DEFINED_ = 0 // stddef.h:192:1: + X_DEFAULT_SOURCE = 1 // features.h:227:1: + X_FEATURES_H = 1 // features.h:19:1: + X_FILE_OFFSET_BITS = 64 // :25:1: + X_GCC_SIZE_T = 0 // stddef.h:195:1: + X_IOFBF = 0 // stdio.h:93:1: + X_IOLBF = 1 // stdio.h:94:1: + X_IONBF = 2 // stdio.h:95:1: + X_IO_EOF_SEEN = 0x0010 // struct_FILE.h:111:1: + X_IO_ERR_SEEN = 0x0020 // struct_FILE.h:114:1: + X_IO_USER_LOCK = 0x8000 // struct_FILE.h:117:1: + X_LP64 = 1 // :284:1: + X_POSIX_C_SOURCE = 200809 // features.h:281:1: + X_POSIX_SOURCE = 1 // features.h:279:1: + X_SIZET_ = 0 // stddef.h:196:1: + X_SIZE_T = 0 // stddef.h:183:1: + X_SIZE_T_ = 0 // stddef.h:188:1: + X_SIZE_T_DECLARED = 0 // stddef.h:193:1: + X_SIZE_T_DEFINED = 0 // stddef.h:191:1: + X_SIZE_T_DEFINED_ = 0 // stddef.h:190:1: + X_STDC_PREDEF_H = 1 // :162:1: + X_STDIO_H = 1 // stdio.h:24:1: + X_SYS_CDEFS_H = 1 // cdefs.h:19:1: + X_SYS_SIZE_T_H = 0 // stddef.h:184:1: + X_T_SIZE = 0 // stddef.h:186:1: + X_T_SIZE_ = 0 // stddef.h:185:1: + X_VA_LIST_DEFINED = 0 // stdio.h:53:1: + Linux = 1 // :231:1: + Unix = 1 // :177:1: +) + +type Ptrdiff_t = int64 /* :3:26 */ + +type Size_t = uint64 /* :9:23 */ + +type Wchar_t = int32 /* :15:24 */ + +type X__int128_t = struct { + Flo int64 + Fhi int64 +} /* :21:43 */ // must match modernc.org/mathutil.Int128 +type X__uint128_t = struct { + Flo uint64 + Fhi uint64 +} /* :22:44 */ // must match modernc.org/mathutil.Int128 + +type X__builtin_va_list = uintptr /* :46:14 */ +type X__float128 = float64 /* :47:21 */ + +// Wide character type. +// Locale-writers should change this as necessary to +// be big enough to hold unique values not between 0 and 127, +// and not (wchar_t) -1, for each defined multibyte character. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// A null pointer constant. + +// Copyright (C) 1989-2020 Free Software Foundation, Inc. +// +// This file is part of GCC. +// +// GCC is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 3, or (at your option) +// any later version. +// +// GCC is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// Under Section 7 of GPL version 3, you are granted additional +// permissions described in the GCC Runtime Library Exception, version +// 3.1, as published by the Free Software Foundation. +// +// You should have received a copy of the GNU General Public License and +// a copy of the GCC Runtime Library Exception along with this program; +// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see +// . + +// ISO C Standard: 7.15 Variable arguments + +// Define __gnuc_va_list. + +type X__gnuc_va_list = X__builtin_va_list /* stdarg.h:40:27 */ + +// Define the standard macros for the user, +// if this invocation was from the user program. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Determine the wordsize from the preprocessor defines. + +// Both x86-64 and x32 use the 64-bit system call interface. +// Bit size of the time_t type at glibc build time, x86-64 and x32 case. +// Copyright (C) 2018-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// For others, time size is word size. + +// Convenience types. +type X__u_char = uint8 /* types.h:31:23 */ +type X__u_short = uint16 /* types.h:32:28 */ +type X__u_int = uint32 /* types.h:33:22 */ +type X__u_long = uint64 /* types.h:34:27 */ + +// Fixed-size types, underlying types depend on word size and compiler. +type X__int8_t = int8 /* types.h:37:21 */ +type X__uint8_t = uint8 /* types.h:38:23 */ +type X__int16_t = int16 /* types.h:39:26 */ +type X__uint16_t = uint16 /* types.h:40:28 */ +type X__int32_t = int32 /* types.h:41:20 */ +type X__uint32_t = uint32 /* types.h:42:22 */ +type X__int64_t = int64 /* types.h:44:25 */ +type X__uint64_t = uint64 /* types.h:45:27 */ + +// Smallest types with at least a given width. +type X__int_least8_t = X__int8_t /* types.h:52:18 */ +type X__uint_least8_t = X__uint8_t /* types.h:53:19 */ +type X__int_least16_t = X__int16_t /* types.h:54:19 */ +type X__uint_least16_t = X__uint16_t /* types.h:55:20 */ +type X__int_least32_t = X__int32_t /* types.h:56:19 */ +type X__uint_least32_t = X__uint32_t /* types.h:57:20 */ +type X__int_least64_t = X__int64_t /* types.h:58:19 */ +type X__uint_least64_t = X__uint64_t /* types.h:59:20 */ + +// quad_t is also 64 bits. +type X__quad_t = int64 /* types.h:63:18 */ +type X__u_quad_t = uint64 /* types.h:64:27 */ + +// Largest integral types. +type X__intmax_t = int64 /* types.h:72:18 */ +type X__uintmax_t = uint64 /* types.h:73:27 */ + +// The machine-dependent file defines __*_T_TYPE +// macros for each of the OS types we define below. The definitions +// of those macros must use the following macros for underlying types. +// We define __S_TYPE and __U_TYPE for the signed and unsigned +// variants of each of the following integer types on this machine. +// +// 16 -- "natural" 16-bit type (always short) +// 32 -- "natural" 32-bit type (always int) +// 64 -- "natural" 64-bit type (long or long long) +// LONG32 -- 32-bit type, traditionally long +// QUAD -- 64-bit type, traditionally long long +// WORD -- natural type of __WORDSIZE bits (int or long) +// LONGWORD -- type of __WORDSIZE bits, traditionally long +// +// We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the +// conventional uses of `long' or `long long' type modifiers match the +// types we define, even when a less-adorned type would be the same size. +// This matters for (somewhat) portably writing printf/scanf formats for +// these types, where using the appropriate l or ll format modifiers can +// make the typedefs and the formats match up across all GNU platforms. If +// we used `long' when it's 64 bits where `long long' is expected, then the +// compiler would warn about the formats not matching the argument types, +// and the programmer changing them to shut up the compiler would break the +// program's portability. +// +// Here we assume what is presently the case in all the GCC configurations +// we support: long long is always 64 bits, long is always word/address size, +// and int is always 32 bits. + +// No need to mark the typedef with __extension__. +// bits/typesizes.h -- underlying types for *_t. Linux/x86-64 version. +// Copyright (C) 2012-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// See for the meaning of these macros. This file exists so +// that need not vary across different GNU platforms. + +// X32 kernel interface is 64-bit. + +// Tell the libc code that off_t and off64_t are actually the same type +// for all ABI purposes, even if possibly expressed as different base types +// for C type-checking purposes. + +// Same for ino_t and ino64_t. + +// And for __rlim_t and __rlim64_t. + +// And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t. + +// Number of descriptors that can fit in an `fd_set'. + +// bits/time64.h -- underlying types for __time64_t. Generic version. +// Copyright (C) 2018-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Define __TIME64_T_TYPE so that it is always a 64-bit type. + +// If we already have 64-bit time type then use it. + +type X__dev_t = uint64 /* types.h:145:25 */ // Type of device numbers. +type X__uid_t = uint32 /* types.h:146:25 */ // Type of user identifications. +type X__gid_t = uint32 /* types.h:147:25 */ // Type of group identifications. +type X__ino_t = uint64 /* types.h:148:25 */ // Type of file serial numbers. +type X__ino64_t = uint64 /* types.h:149:27 */ // Type of file serial numbers (LFS). +type X__mode_t = uint32 /* types.h:150:26 */ // Type of file attribute bitmasks. +type X__nlink_t = uint64 /* types.h:151:27 */ // Type of file link counts. +type X__off_t = int64 /* types.h:152:25 */ // Type of file sizes and offsets. +type X__off64_t = int64 /* types.h:153:27 */ // Type of file sizes and offsets (LFS). +type X__pid_t = int32 /* types.h:154:25 */ // Type of process identifications. +type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs. +type X__clock_t = int64 /* types.h:156:27 */ // Type of CPU usage counts. +type X__rlim_t = uint64 /* types.h:157:26 */ // Type for resource measurement. +type X__rlim64_t = uint64 /* types.h:158:28 */ // Type for resource measurement (LFS). +type X__id_t = uint32 /* types.h:159:24 */ // General type for IDs. +type X__time_t = int64 /* types.h:160:26 */ // Seconds since the Epoch. +type X__useconds_t = uint32 /* types.h:161:30 */ // Count of microseconds. +type X__suseconds_t = int64 /* types.h:162:31 */ // Signed count of microseconds. + +type X__daddr_t = int32 /* types.h:164:27 */ // The type of a disk address. +type X__key_t = int32 /* types.h:165:25 */ // Type of an IPC key. + +// Clock ID used in clock and timer functions. +type X__clockid_t = int32 /* types.h:168:29 */ + +// Timer ID returned by `timer_create'. +type X__timer_t = uintptr /* types.h:171:12 */ + +// Type to represent block size. +type X__blksize_t = int64 /* types.h:174:29 */ + +// Types from the Large File Support interface. + +// Type to count number of disk blocks. +type X__blkcnt_t = int64 /* types.h:179:28 */ +type X__blkcnt64_t = int64 /* types.h:180:30 */ + +// Type to count file system blocks. +type X__fsblkcnt_t = uint64 /* types.h:183:30 */ +type X__fsblkcnt64_t = uint64 /* types.h:184:32 */ + +// Type to count file system nodes. +type X__fsfilcnt_t = uint64 /* types.h:187:30 */ +type X__fsfilcnt64_t = uint64 /* types.h:188:32 */ + +// Type of miscellaneous file system fields. +type X__fsword_t = int64 /* types.h:191:28 */ + +type X__ssize_t = int64 /* types.h:193:27 */ // Type of a byte count, or error. + +// Signed long type used in system calls. +type X__syscall_slong_t = int64 /* types.h:196:33 */ +// Unsigned long type used in system calls. +type X__syscall_ulong_t = uint64 /* types.h:198:33 */ + +// These few don't really vary by system, they always correspond +// +// to one of the other defined types. +type X__loff_t = X__off64_t /* types.h:202:19 */ // Type of file sizes and offsets (LFS). +type X__caddr_t = uintptr /* types.h:203:14 */ + +// Duplicates info from stdint.h but this is used in unistd.h. +type X__intptr_t = int64 /* types.h:206:25 */ + +// Duplicate info from sys/socket.h. +type X__socklen_t = uint32 /* types.h:209:23 */ + +// C99: An integer type that can be accessed as an atomic entity, +// +// even in the presence of asynchronous interrupts. +// It is not currently necessary for this to be machine-specific. +type X__sig_atomic_t = int32 /* types.h:214:13 */ + +// Seconds since the Epoch, visible to user code when time_t is too +// narrow only for consistency with the old way of widening too-narrow +// types. User code should never use __time64_t. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Integral type unchanged by default argument promotions that can +// hold any value corresponding to members of the extended character +// set, as well as at least one value that does not correspond to any +// member of the extended character set. + +// Conversion state information. +type X__mbstate_t = struct { + F__count int32 + F__value struct{ F__wch uint32 } +} /* __mbstate_t.h:21:3 */ + +// The tag name of this struct is _G_fpos_t to preserve historic +// +// C++ mangled names for functions taking fpos_t arguments. +// That name should not be used in new code. +type X_G_fpos_t = struct { + F__pos X__off_t + F__state X__mbstate_t +} /* __fpos_t.h:10:9 */ + +// The tag name of this struct is _G_fpos_t to preserve historic +// +// C++ mangled names for functions taking fpos_t arguments. +// That name should not be used in new code. +type X__fpos_t = X_G_fpos_t /* __fpos_t.h:14:3 */ + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// The tag name of this struct is _G_fpos64_t to preserve historic +// +// C++ mangled names for functions taking fpos_t and/or fpos64_t +// arguments. That name should not be used in new code. +type X_G_fpos64_t = struct { + F__pos X__off64_t + F__state X__mbstate_t +} /* __fpos64_t.h:10:9 */ + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// The tag name of this struct is _G_fpos64_t to preserve historic +// +// C++ mangled names for functions taking fpos_t and/or fpos64_t +// arguments. That name should not be used in new code. +type X__fpos64_t = X_G_fpos64_t /* __fpos64_t.h:14:3 */ + +type X_IO_FILE = struct { + F_flags int32 + F__ccgo_pad1 [4]byte + F_IO_read_ptr uintptr + F_IO_read_end uintptr + F_IO_read_base uintptr + F_IO_write_base uintptr + F_IO_write_ptr uintptr + F_IO_write_end uintptr + F_IO_buf_base uintptr + F_IO_buf_end uintptr + F_IO_save_base uintptr + F_IO_backup_base uintptr + F_IO_save_end uintptr + F_markers uintptr + F_chain uintptr + F_fileno int32 + F_flags2 int32 + F_old_offset X__off_t + F_cur_column uint16 + F_vtable_offset int8 + F_shortbuf [1]int8 + F__ccgo_pad2 [4]byte + F_lock uintptr + F_offset X__off64_t + F_codecvt uintptr + F_wide_data uintptr + F_freeres_list uintptr + F_freeres_buf uintptr + F__pad5 Size_t + F_mode int32 + F_unused2 [20]int8 +} /* __FILE.h:4:1 */ + +type X__FILE = X_IO_FILE /* __FILE.h:5:25 */ + +// The opaque type of streams. This is the definition used elsewhere. +type FILE = X_IO_FILE /* FILE.h:7:25 */ + +// These macros are used by bits/stdio.h and internal headers. + +// Many more flag bits are defined internally. + +type Va_list = X__gnuc_va_list /* stdio.h:52:24 */ + +type Off_t = X__off64_t /* stdio.h:65:19 */ + +type Ssize_t = X__ssize_t /* stdio.h:77:19 */ + +// The type of the second argument to `fgetpos' and `fsetpos'. +type Fpos_t = X__fpos64_t /* stdio.h:86:20 */ + +// If we are compiling with optimizing read this file. It contains +// several optimizing inline functions and macros. + +var _ int8 /* gen.c:2:13: */ diff --git a/vendor/modernc.org/libc/stdlib/capi_illumos_amd64.go b/vendor/modernc.org/libc/stdlib/capi_illumos_amd64.go new file mode 100644 index 000000000..41a7917a1 --- /dev/null +++ b/vendor/modernc.org/libc/stdlib/capi_illumos_amd64.go @@ -0,0 +1,5 @@ +// Code generated by 'ccgo stdlib/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o stdlib/stdlib_illumos_amd64.go -pkgname stdlib', DO NOT EDIT. + +package stdlib + +var CAPI = map[string]struct{}{} diff --git a/vendor/modernc.org/libc/stdlib/capi_linux_loong64.go b/vendor/modernc.org/libc/stdlib/capi_linux_loong64.go new file mode 100644 index 000000000..67499fd99 --- /dev/null +++ b/vendor/modernc.org/libc/stdlib/capi_linux_loong64.go @@ -0,0 +1,5 @@ +// Code generated by 'ccgo stdlib/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o stdlib/stdlib_linux_loong64.go -pkgname stdlib', DO NOT EDIT. + +package stdlib + +var CAPI = map[string]struct{}{} diff --git a/vendor/modernc.org/libc/stdlib/capi_linux_mips64le.go b/vendor/modernc.org/libc/stdlib/capi_linux_mips64le.go new file mode 100644 index 000000000..bc0091ea3 --- /dev/null +++ b/vendor/modernc.org/libc/stdlib/capi_linux_mips64le.go @@ -0,0 +1,5 @@ +// Code generated by 'ccgo stdlib/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o stdlib/stdlib_linux_amd64.go -pkgname stdlib', DO NOT EDIT. + +package stdlib + +var CAPI = map[string]struct{}{} diff --git a/vendor/modernc.org/libc/stdlib/stdlib_illumos_amd64.go b/vendor/modernc.org/libc/stdlib/stdlib_illumos_amd64.go new file mode 100644 index 000000000..09f2553fb --- /dev/null +++ b/vendor/modernc.org/libc/stdlib/stdlib_illumos_amd64.go @@ -0,0 +1,1092 @@ +// Code generated by 'ccgo stdlib/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o stdlib/stdlib_illumos_amd64.go -pkgname stdlib', DO NOT EDIT. + +package stdlib + +import ( + "math" + "reflect" + "sync/atomic" + "unsafe" +) + +var _ = math.Pi +var _ reflect.Kind +var _ atomic.Value +var _ unsafe.Pointer + +const ( + EXIT_FAILURE = 1 // stdlib_iso.h:84:1: + EXIT_SUCCESS = 0 // stdlib_iso.h:85:1: + INT16_MAX = 32767 // int_limits.h:93:1: + INT16_MIN = -32768 // int_limits.h:211:1: + INT32_MAX = 2147483647 // int_limits.h:94:1: + INT32_MIN = -2147483648 // int_limits.h:212:1: + INT64_MAX = 9223372036854775807 // int_limits.h:96:1: + INT64_MIN = -9223372036854775808 // int_limits.h:214:1: + INT8_MAX = 127 // int_limits.h:92:1: + INT8_MIN = -128 // int_limits.h:210:1: + INTMAX_MAX = 9223372036854775807 // int_limits.h:111:1: + INTMAX_MIN = -9223372036854775808 // int_limits.h:220:1: + INTPTR_MAX = 9223372036854775807 // int_limits.h:157:1: + INTPTR_MIN = -9223372036854775808 // int_limits.h:241:1: + INT_FAST16_MAX = 2147483647 // int_limits.h:137:1: + INT_FAST16_MIN = -2147483648 // int_limits.h:233:1: + INT_FAST32_MAX = 2147483647 // int_limits.h:138:1: + INT_FAST32_MIN = -2147483648 // int_limits.h:234:1: + INT_FAST64_MAX = 9223372036854775807 // int_limits.h:140:1: + INT_FAST64_MIN = -9223372036854775808 // int_limits.h:236:1: + INT_FAST8_MAX = 127 // int_limits.h:136:1: + INT_FAST8_MIN = -128 // int_limits.h:232:1: + INT_LEAST16_MAX = 32767 // int_limits.h:123:1: + INT_LEAST16_MIN = -32768 // int_limits.h:226:1: + INT_LEAST32_MAX = 2147483647 // int_limits.h:124:1: + INT_LEAST32_MIN = -2147483648 // int_limits.h:227:1: + INT_LEAST64_MAX = 9223372036854775807 // int_limits.h:126:1: + INT_LEAST64_MIN = -9223372036854775808 // int_limits.h:229:1: + INT_LEAST8_MAX = 127 // int_limits.h:122:1: + INT_LEAST8_MIN = -128 // int_limits.h:225:1: + PRIX32 = "X" // int_fmtio.h:211:1: + PRIX64 = "lX" // int_fmtio.h:216:1: + PRIXMAX = "lX" // int_fmtio.h:365:1: + PRIXPTR = "lX" // int_fmtio.h:237:1: + PRId32 = "d" // int_fmtio.h:102:1: + PRId64 = "ld" // int_fmtio.h:107:1: + PRIdMAX = "ld" // int_fmtio.h:360:1: + PRIdPTR = "ld" // int_fmtio.h:232:1: + PRIi32 = "i" // int_fmtio.h:123:1: + PRIi64 = "li" // int_fmtio.h:128:1: + PRIiMAX = "li" // int_fmtio.h:361:1: + PRIiPTR = "li" // int_fmtio.h:233:1: + PRIo32 = "o" // int_fmtio.h:148:1: + PRIo64 = "lo" // int_fmtio.h:153:1: + PRIoMAX = "lo" // int_fmtio.h:362:1: + PRIoPTR = "lo" // int_fmtio.h:234:1: + PRIu32 = "u" // int_fmtio.h:169:1: + PRIu64 = "lu" // int_fmtio.h:174:1: + PRIuMAX = "lu" // int_fmtio.h:364:1: + PRIuPTR = "lu" // int_fmtio.h:235:1: + PRIx32 = "x" // int_fmtio.h:190:1: + PRIx64 = "lx" // int_fmtio.h:195:1: + PRIxMAX = "lx" // int_fmtio.h:363:1: + PRIxPTR = "lx" // int_fmtio.h:236:1: + PTRDIFF_MAX = 9223372036854775807 // int_limits.h:166:1: + PTRDIFF_MIN = -9223372036854775808 // int_limits.h:248:1: + RAND_MAX = 32767 // stdlib_iso.h:86:1: + SCNX16 = "hX" // int_fmtio.h:336:1: + SCNX32 = "X" // int_fmtio.h:338:1: + SCNX8 = "hhX" // int_fmtio.h:333:1: + SCNd16 = "hd" // int_fmtio.h:253:1: + SCNd32 = "d" // int_fmtio.h:255:1: + SCNd8 = "hhd" // int_fmtio.h:250:1: + SCNi16 = "hi" // int_fmtio.h:269:1: + SCNi32 = "i" // int_fmtio.h:271:1: + SCNi8 = "hhi" // int_fmtio.h:266:1: + SCNo16 = "ho" // int_fmtio.h:288:1: + SCNo32 = "o" // int_fmtio.h:290:1: + SCNo8 = "hho" // int_fmtio.h:285:1: + SCNu16 = "hu" // int_fmtio.h:304:1: + SCNu32 = "u" // int_fmtio.h:306:1: + SCNu8 = "hhu" // int_fmtio.h:301:1: + SCNx16 = "hx" // int_fmtio.h:320:1: + SCNx32 = "x" // int_fmtio.h:322:1: + SCNx8 = "hhx" // int_fmtio.h:317:1: + SIG_ATOMIC_MAX = 2147483647 // int_limits.h:186:1: + SIG_ATOMIC_MIN = -2147483648 // int_limits.h:255:1: + SIZE_MAX = 18446744073709551615 // int_limits.h:179:1: + UINT16_MAX = 65535 // int_limits.h:102:1: + UINT32_MAX = 4294967295 // int_limits.h:103:1: + UINT64_MAX = 18446744073709551615 // int_limits.h:105:1: + UINT8_MAX = 255 // int_limits.h:101:1: + UINTMAX_MAX = 18446744073709551615 // int_limits.h:117:1: + UINTPTR_MAX = 18446744073709551615 // int_limits.h:158:1: + UINT_FAST16_MAX = 4294967295 // int_limits.h:144:1: + UINT_FAST32_MAX = 4294967295 // int_limits.h:145:1: + UINT_FAST64_MAX = 18446744073709551615 // int_limits.h:147:1: + UINT_FAST8_MAX = 255 // int_limits.h:143:1: + UINT_LEAST16_MAX = 65535 // int_limits.h:130:1: + UINT_LEAST32_MAX = 4294967295 // int_limits.h:131:1: + UINT_LEAST64_MAX = 18446744073709551615 // int_limits.h:133:1: + UINT_LEAST8_MAX = 255 // int_limits.h:129:1: + WCHAR_MAX = 2147483647 // int_limits.h:195:1: + WCHAR_MIN = -2147483648 // int_limits.h:264:1: + WINT_MAX = 2147483647 // int_limits.h:200:1: + WINT_MIN = -2147483648 // int_limits.h:269:1: + X_ALIGNMENT_REQUIRED = 1 // isa_defs.h:262:1: + X_BIT_FIELDS_LTOH = 0 // isa_defs.h:245:1: + X_BOOL_ALIGNMENT = 1 // isa_defs.h:248:1: + X_CHAR_ALIGNMENT = 1 // isa_defs.h:249:1: + X_CHAR_IS_SIGNED = 0 // isa_defs.h:247:1: + X_DMA_USES_PHYSADDR = 0 // isa_defs.h:281:1: + X_DONT_USE_1275_GENERIC_NAMES = 0 // isa_defs.h:287:1: + X_DOUBLE_ALIGNMENT = 8 // isa_defs.h:256:1: + X_DOUBLE_COMPLEX_ALIGNMENT = 8 // isa_defs.h:257:1: + X_DTRACE_VERSION = 1 // feature_tests.h:490:1: + X_FILE_OFFSET_BITS = 64 // :25:1: + X_FIRMWARE_NEEDS_FDISK = 0 // isa_defs.h:282:1: + X_FLOAT_ALIGNMENT = 4 // isa_defs.h:252:1: + X_FLOAT_COMPLEX_ALIGNMENT = 4 // isa_defs.h:253:1: + X_HAVE_CPUID_INSN = 0 // isa_defs.h:288:1: + X_IEEE_754 = 0 // isa_defs.h:246:1: + X_INT64_TYPE = 0 // int_types.h:82:1: + X_INTTYPES_H = 0 // inttypes.h:30:1: + X_INT_ALIGNMENT = 4 // isa_defs.h:251:1: + X_ISO_CPP_14882_1998 = 0 // feature_tests.h:466:1: + X_ISO_C_9899_1999 = 0 // feature_tests.h:472:1: + X_ISO_C_9899_2011 = 0 // feature_tests.h:478:1: + X_ISO_STDLIB_C11_H = 0 // stdlib_c11.h:28:1: + X_ISO_STDLIB_C99_H = 0 // stdlib_c99.h:41:1: + X_ISO_STDLIB_ISO_H = 0 // stdlib_iso.h:47:1: + X_LARGEFILE64_SOURCE = 1 // feature_tests.h:231:1: + X_LARGEFILE_SOURCE = 1 // feature_tests.h:235:1: + X_LITTLE_ENDIAN = 0 // isa_defs.h:242:1: + X_LONGLONG_TYPE = 0 // feature_tests.h:412:1: + X_LONG_ALIGNMENT = 8 // isa_defs.h:254:1: + X_LONG_DOUBLE_ALIGNMENT = 16 // isa_defs.h:258:1: + X_LONG_DOUBLE_COMPLEX_ALIGNMENT = 16 // isa_defs.h:259:1: + X_LONG_LONG_ALIGNMENT = 8 // isa_defs.h:255:1: + X_LONG_LONG_ALIGNMENT_32 = 4 // isa_defs.h:268:1: + X_LONG_LONG_LTOH = 0 // isa_defs.h:244:1: + X_LP64 = 1 // :286:1: + X_MAX_ALIGNMENT = 16 // isa_defs.h:261:1: + X_MODF16 = "h" // int_fmtio.h:87:1: + X_MODF8 = "hh" // int_fmtio.h:86:1: + X_MULTI_DATAMODEL = 0 // isa_defs.h:279:1: + X_NORETURN_KYWD = 0 // feature_tests.h:448:1: + X_POINTER_ALIGNMENT = 8 // isa_defs.h:260:1: + X_PRIX = "X" // int_fmtio.h:95:1: + X_PRId = "d" // int_fmtio.h:90:1: + X_PRIi = "i" // int_fmtio.h:91:1: + X_PRIo = "o" // int_fmtio.h:92:1: + X_PRIu = "u" // int_fmtio.h:93:1: + X_PRIx = "x" // int_fmtio.h:94:1: + X_PSM_MODULES = 0 // isa_defs.h:284:1: + X_RESTRICT_KYWD = 0 // feature_tests.h:435:1: + X_RTC_CONFIG = 0 // isa_defs.h:285:1: + X_SHORT_ALIGNMENT = 2 // isa_defs.h:250:1: + X_SIZE_T = 0 // stdlib_iso.h:76:1: + X_SOFT_HOSTID = 0 // isa_defs.h:286:1: + X_SSIZE_T = 0 // stdlib.h:177:1: + X_STACK_GROWS_DOWNWARD = 0 // isa_defs.h:243:1: + X_STDC_C11 = 0 // feature_tests.h:165:1: + X_STDC_C99 = 0 // feature_tests.h:169:1: + X_STDLIB_H = 0 // stdlib.h:38:1: + X_SUNOS_VTOC_16 = 0 // isa_defs.h:280:1: + X_SYS_CCOMPILE_H = 0 // ccompile.h:32:1: + X_SYS_FEATURE_TESTS_H = 0 // feature_tests.h:41:1: + X_SYS_INTTYPES_H = 0 // inttypes.h:28:1: + X_SYS_INT_CONST_H = 0 // int_const.h:39:1: + X_SYS_INT_FMTIO_H = 0 // int_fmtio.h:30:1: + X_SYS_INT_LIMITS_H = 0 // int_limits.h:39:1: + X_SYS_INT_TYPES_H = 0 // int_types.h:30:1: + X_SYS_ISA_DEFS_H = 0 // isa_defs.h:30:1: + X_SYS_NULL_H = 0 // null.h:17:1: + X_SYS_STDINT_H = 0 // stdint.h:28:1: + X_UID_T = 0 // stdlib.h:103:1: + X_WCHAR_T = 0 // stdlib_iso.h:103:1: + X_XOPEN_VERSION = 3 // feature_tests.h:392:1: + Sun = 1 // :172:1: + Unix = 1 // :175:1: +) + +type Ptrdiff_t = int64 /* :3:26 */ + +type Size_t = uint64 /* :9:23 */ + +type Wchar_t = int32 /* :15:24 */ + +type X__int128_t = struct { + Flo int64 + Fhi int64 +} /* :21:43 */ // must match modernc.org/mathutil.Int128 +type X__uint128_t = struct { + Flo uint64 + Fhi uint64 +} /* :22:44 */ // must match modernc.org/mathutil.Int128 + +type X__builtin_va_list = uintptr /* :46:14 */ +type X__float128 = float64 /* :47:21 */ + +type Div_t = struct { + Fquot int32 + Frem int32 +} /* stdlib_iso.h:68:3 */ + +type Ldiv_t = struct { + Fquot int64 + Frem int64 +} /* stdlib_iso.h:73:3 */ + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2014 Garrett D'Amore +// +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// An application should not include this header directly. Instead it +// should be included only through the inclusion of other Sun headers. +// +// The contents of this header is limited to identifiers specified in +// the C99 standard and in conflict with the C++ implementation of the +// standard header. The C++ standard may adopt the C99 standard at +// which point it is expected that the symbols included here will +// become part of the C++ std namespace. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// The following have been added as a result of the ISO/IEC 9899:1999 +// standard. For a strictly conforming C application, visibility is +// contingent on the value of __STDC_VERSION__ (see sys/feature_tests.h). +// For non-strictly conforming C applications, there are no restrictions +// on the C namespace. + +type Lldiv_t = struct { + Fquot int64 + Frem int64 +} /* stdlib_c99.h:61:3 */ + +// ISO C11 Annex K functions are not allowed to be in the standard +// namespace; however, it is implementation-defined as to whether or +// not they are in the global namespace and we opt to make them +// available to software. + +// Allow global visibility for symbols defined in +// C++ "std" namespace in . + +// Allow global visibility for symbols defined in +// C++ "std" namespace in . + +type Uid_t = uint32 /* stdlib.h:104:22 */ + +// swab() has historically been in as delivered from AT&T +// and continues to be visible in the default compilation environment. +// As of Issue 4 of the X/Open Portability Guides, swab() was declared +// in . As a result, with respect to X/Open namespace the +// swab() declaration in this header is only visible for the XPG3 +// environment. +type Ssize_t = int64 /* stdlib.h:179:14 */ + +// OpenBSD and misc. compatibility functions + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2014 Garrett D'Amore +// +// Copyright 2005 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// This file, , is specified by the ISO C standard, +// standard, ISO/IEC 9899:1999 Programming language - C and is +// also defined by SUSv3. +// +// ISO International Organization for Standardization. +// SUSv3 Single Unix Specification, Version 3 + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2003 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// This header, , contains (through nested inclusion) the +// vast majority of the facilities specified for as defined +// by the ISO C Standard, ISO/IEC 9899:1999 Programming language - C. +// +// Kernel/Driver developers are encouraged to include this file to access +// the fixed size types, limits and utility macros. Application developers +// should use the standard defined header . + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2014 Garrett D'Amore +// +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// This file, , is part of the Sun Microsystems implementation +// of defined in the ISO C standard, ISO/IEC 9899:1999 +// Programming language - C. +// +// Programs/Modules should not directly include this file. Access to the +// types defined in this file should be through the inclusion of one of the +// following files: +// +// Provides only the "_t" types defined in this +// file which is a subset of the contents of +// . (This can be appropriate for +// all programs/modules except those claiming +// ANSI-C conformance.) +// +// Provides the Kernel and Driver appropriate +// components of . +// +// For use by applications. +// +// See these files for more details. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Basic / Extended integer types +// +// The following defines the basic fixed-size integer types. +// +// Implementations are free to typedef them to Standard C integer types or +// extensions that they support. If an implementation does not support one +// of the particular integer data types below, then it should not define the +// typedefs and macros corresponding to that data type. Note that int8_t +// is not defined in -Xs mode on ISAs for which the ABI specifies "char" +// as an unsigned entity because there is no way to define an eight bit +// signed integral. +type Int8_t = int8 /* int_types.h:75:16 */ +type Int16_t = int16 /* int_types.h:79:17 */ +type Int32_t = int32 /* int_types.h:80:15 */ +type Int64_t = int64 /* int_types.h:83:16 */ + +type Uint8_t = uint8 /* int_types.h:91:24 */ +type Uint16_t = uint16 /* int_types.h:92:25 */ +type Uint32_t = uint32 /* int_types.h:93:23 */ +type Uint64_t = uint64 /* int_types.h:95:24 */ + +// intmax_t and uintmax_t are to be the longest (in number of bits) signed +// and unsigned integer types supported by the implementation. +type Intmax_t = int64 /* int_types.h:107:19 */ +type Uintmax_t = uint64 /* int_types.h:108:19 */ + +// intptr_t and uintptr_t are signed and unsigned integer types large enough +// to hold any data pointer; that is, data pointers can be assigned into or +// from these integer types without losing precision. +type Intptr_t = int64 /* int_types.h:120:16 */ +type Uintptr_t = uint64 /* int_types.h:121:24 */ + +// The following define the fastest integer types that can hold the +// specified number of bits. +type Int_fast8_t = int8 /* int_types.h:132:16 */ +type Int_fast16_t = int32 /* int_types.h:136:15 */ +type Int_fast32_t = int32 /* int_types.h:137:15 */ +type Int_fast64_t = int64 /* int_types.h:139:16 */ + +type Uint_fast8_t = uint8 /* int_types.h:146:24 */ +type Uint_fast16_t = uint32 /* int_types.h:147:23 */ +type Uint_fast32_t = uint32 /* int_types.h:148:23 */ +type Uint_fast64_t = uint64 /* int_types.h:150:24 */ + +// The following define the smallest integer types that can hold the +// specified number of bits. +type Int_least8_t = int8 /* int_types.h:162:16 */ +type Int_least16_t = int16 /* int_types.h:166:17 */ +type Int_least32_t = int32 /* int_types.h:167:15 */ +type Int_least64_t = int64 /* int_types.h:169:16 */ + +// If these are changed, please update char16_t and char32_t in head/uchar.h. +type Uint_least8_t = uint8 /* int_types.h:179:24 */ +type Uint_least16_t = uint16 /* int_types.h:180:25 */ +type Uint_least32_t = uint32 /* int_types.h:181:23 */ +type Uint_least64_t = uint64 /* int_types.h:183:24 */ + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/int_limits.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2014 Garrett D'Amore +// +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// This file, , is part of the Sun Microsystems implementation +// of as defined in the ISO C standard, ISO/IEC 9899:1999 +// Programming language - C. +// +// Programs/Modules should not directly include this file. Access to the +// types defined in this file should be through the inclusion of one of the +// following files: +// +// This nested inclusion is disabled for strictly +// ANSI-C conforming compilations. The *_MIN +// definitions are not visible to POSIX or XPG +// conforming applications (due to what may be +// a bug in the specification - this is under +// investigation) +// +// Provides the Kernel and Driver appropriate +// components of . +// +// For use by applications. +// +// See these files for more details. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Limits +// +// The following define the limits for the types defined in . +// +// INTMAX_MIN (minimum value of the largest supported signed integer type), +// INTMAX_MAX (maximum value of the largest supported signed integer type), +// and UINTMAX_MAX (maximum value of the largest supported unsigned integer +// type) can be set to implementation defined limits. +// +// NOTE : A programmer can test to see whether an implementation supports +// a particular size of integer by testing if the macro that gives the +// maximum for that datatype is defined. For example, if #ifdef UINT64_MAX +// tests false, the implementation does not support unsigned 64 bit integers. +// +// The type of these macros is intentionally unspecified. +// +// The types int8_t, int_least8_t, and int_fast8_t are not defined for ISAs +// where the ABI specifies "char" as unsigned when the translation mode is +// not ANSI-C. + +// The following 2 macros are provided for testing whether the types +// intptr_t and uintptr_t (integers large enough to hold a void *) are +// defined in this header. They are needed in case the architecture can't +// represent a pointer in any standard integral type. + +// Maximum limits of ptrdiff_t defined in + +// Maximum value of a "size_t". SIZE_MAX was previously defined +// in , however, the standards specify it be defined +// in . The headers includes this header as +// does . The value of SIZE_MAX should not deviate +// from the value of ULONG_MAX defined . + +// Maximum limit of sig_atomic_t defined in + +// Maximum limit of wchar_t. The WCHAR_* macros are also +// defined in , but inclusion of that header +// will break ISO/IEC C namespace. + +// Maximum limit of wint_t + +// It is probably a bug in the POSIX specification (IEEE-1003.1-1990) that +// when including that the suffix _MAX is reserved but not the +// suffix _MIN. However, until that issue is resolved.... + +// Minimum value of a pointer-holding signed integer type + +// Minimum limits of ptrdiff_t defined in + +// Minimum limit of sig_atomic_t defined in + +// Minimum limit of wchar_t. The WCHAR_* macros are also +// defined in , but inclusion of that header +// will break ISO/IEC C namespace. + +// Minimum limit of wint_t + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/int_const.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2014 Garrett D'Amore +// +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// This file, , is part of the Sun Microsystems implementation +// of as proposed in the ISO/JTC1/SC22/WG14 C committee's working +// draft for the revision of the current ISO C standard, ISO/IEC 9899:1990 +// Programming language - C. +// +// Programs/Modules should not directly include this file. Access to the +// types defined in this file should be through the inclusion of one of the +// following files: +// +// Provides the Kernel and Driver appropriate +// components of . +// +// For use by applications. +// +// See these files for more details. +// +// Use at your own risk. This file will track the evolution of the revision +// of the current ISO C standard. As of February 1996, the committee is +// squarely behind the fixed sized types. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Constants +// +// The following macros create constants of the types defined in +// . The intent is that: +// Constants defined using these macros have a specific size and +// signedness. The suffix used for int64_t and uint64_t (ll and ull) +// are for examples only. Implementations are permitted to use other +// suffixes. +// +// The "CSTYLED" comments are flags to an internal code style analysis tool +// telling it to silently accept the line which follows. This internal +// standard requires a space between arguments, but the historical, +// non-ANSI-C ``method'' of concatenation can't tolerate those spaces. +// CSTYLED + +// CSTYLED + +// CSTYLED +// CSTYLED +// CSTYLED +// CSTYLED + +// CSTYLED +// CSTYLED + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2014 Garrett D'Amore +// +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// This file, , is part of the Sun Microsystems implementation +// of as defined by the ISO C Standard, ISO/IEC 9899:1999 +// Programming language - C. +// +// ISO International Organization for Standardization. +// +// Programs/Modules should not directly include this file. Access to the +// types defined in this file should be through the inclusion of one of the +// following files: +// +// Provides the Kernel and Driver appropriate +// components of . +// +// For use by applications. +// +// See these files for more details. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Formatted I/O +// +// The following macros can be used even when an implementation has not +// extended the printf/scanf family of functions. +// +// The form of the names of the macros is either "PRI" for printf specifiers +// or "SCN" for scanf specifiers, followed by the conversion specifier letter +// followed by the datatype size. For example, PRId32 is the macro for +// the printf d conversion specifier with the flags for 32 bit datatype. +// +// An example using one of these macros: +// +// uint64_t u; +// printf("u = %016" PRIx64 "\n", u); +// +// For the purpose of example, the definitions of the printf/scanf macros +// below have the values appropriate for a machine with 8 bit shorts, 16 +// bit shorts, 32 bit ints, 32 or 64 bit longs depending on compilation +// mode, and 64 bit long longs. + +// fprintf macros for signed integers + +// fprintf macros for unsigned integers + +// fprintf macros for pointers + +// fscanf macros for signed integers + +// fscanf macros for unsigned integers + +// The following macros define I/O formats for intmax_t and uintmax_t. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2003 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// This header is included by which was introduced by +// the ISO C Standard, ISO/IEC 9899:1999 Programming language - C. +// The header is a subset of the header. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2014 Garrett D'Amore +// +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/int_limits.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2014 Garrett D'Amore +// +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/int_const.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2014 Garrett D'Amore +// +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Inclusion of breaks namespace, therefore define wchar_t + +// wchar_t is a built-in type in standard C++ and as such is not +// defined here when using standard C++. However, the GNU compiler +// fixincludes utility nonetheless creates its own version of this +// header for use by gcc and g++. In that version it adds a redundant +// guard for __cplusplus. To avoid the creation of a gcc/g++ specific +// header we need to include the following magic comment: +// +// we must use the C++ compiler's type +// +// The above comment should not be removed or changed until GNU +// gcc/fixinc/inclhack.def is updated to bypass this header. + +type Imaxdiv_t = struct { + Fquot int64 + Frem int64 +} /* inttypes.h:84:3 */ + +var _ int8 /* gen.c:2:13: */ diff --git a/vendor/modernc.org/libc/stdlib/stdlib_linux_loong64.go b/vendor/modernc.org/libc/stdlib/stdlib_linux_loong64.go new file mode 100644 index 000000000..f37b85b2c --- /dev/null +++ b/vendor/modernc.org/libc/stdlib/stdlib_linux_loong64.go @@ -0,0 +1,1539 @@ +// Code generated by 'ccgo stdlib/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o stdlib/stdlib_linux_loong64.go -pkgname stdlib', DO NOT EDIT. + +package stdlib + +import ( + "math" + "reflect" + "sync/atomic" + "unsafe" +) + +var _ = math.Pi +var _ reflect.Kind +var _ atomic.Value +var _ unsafe.Pointer + +const ( + BIG_ENDIAN = 4321 // endian.h:28:1: + BYTE_ORDER = 1234 // endian.h:30:1: + EXIT_FAILURE = 1 // stdlib.h:92:1: + EXIT_SUCCESS = 0 // stdlib.h:93:1: + FD_SETSIZE = 1024 // select.h:73:1: + LITTLE_ENDIAN = 1234 // endian.h:27:1: + PDP_ENDIAN = 3412 // endian.h:29:1: + RAND_MAX = 2147483647 // stdlib.h:87:1: + WCONTINUED = 8 // waitflags.h:32:1: + WEXITED = 4 // waitflags.h:31:1: + WNOHANG = 1 // waitflags.h:25:1: + WNOWAIT = 0x01000000 // waitflags.h:33:1: + WSTOPPED = 2 // waitflags.h:30:1: + WUNTRACED = 2 // waitflags.h:26:1: + X_ABILP64 = 3 // :377:1: + X_ALLOCA_H = 1 // alloca.h:19:1: + X_ATFILE_SOURCE = 1 // features.h:353:1: + X_BITS_ATOMIC_WIDE_COUNTER_H = 0 // atomic_wide_counter.h:20:1: + X_BITS_BYTESWAP_H = 1 // byteswap.h:24:1: + X_BITS_ENDIANNESS_H = 1 // endianness.h:2:1: + X_BITS_ENDIAN_H = 1 // endian.h:20:1: + X_BITS_FLOATN_COMMON_H = 0 // floatn-common.h:21:1: + X_BITS_FLOATN_H = 0 // floatn.h:20:1: + X_BITS_PTHREADTYPES_ARCH_H = 1 // pthreadtypes-arch.h:21:1: + X_BITS_PTHREADTYPES_COMMON_H = 1 // pthreadtypes.h:20:1: + X_BITS_STDINT_INTN_H = 1 // stdint-intn.h:20:1: + X_BITS_TIME64_H = 1 // time64.h:24:1: + X_BITS_TYPESIZES_H = 1 // typesizes.h:24:1: + X_BITS_TYPES_H = 1 // types.h:24:1: + X_BITS_UINTN_IDENTITY_H = 1 // uintn-identity.h:24:1: + X_BSD_SIZE_T_ = 0 // stddef.h:193:1: + X_BSD_SIZE_T_DEFINED_ = 0 // stddef.h:196:1: + X_DEFAULT_SOURCE = 1 // features.h:238:1: + X_ENDIAN_H = 1 // endian.h:19:1: + X_FEATURES_H = 1 // features.h:19:1: + X_FILE_OFFSET_BITS = 64 // :25:1: + X_GCC_SIZE_T = 0 // stddef.h:200:1: + X_GCC_WCHAR_T = 0 // stddef.h:280:1: + X_LOONGARCH_ARCH = "loongarch64" // :214:1: + X_LOONGARCH_ARCH_LOONGARCH64 = 1 // :340:1: + X_LOONGARCH_FPSET = 32 // :265:1: + X_LOONGARCH_SIM = 3 // :233:1: + X_LOONGARCH_SPFPSET = 32 // :88:1: + X_LOONGARCH_SZINT = 32 // :230:1: + X_LOONGARCH_SZLONG = 64 // :388:1: + X_LOONGARCH_SZPTR = 64 // :200:1: + X_LOONGARCH_TUNE = "la464" // :245:1: + X_LOONGARCH_TUNE_LA464 = 1 // :63:1: + X_LP64 = 1 // :372:1: + X_POSIX_C_SOURCE = 200809 // features.h:292:1: + X_POSIX_SOURCE = 1 // features.h:290:1: + X_SIZET_ = 0 // stddef.h:201:1: + X_SIZE_T = 0 // stddef.h:187:1: + X_SIZE_T_ = 0 // stddef.h:192:1: + X_SIZE_T_DECLARED = 0 // stddef.h:197:1: + X_SIZE_T_DEFINED = 0 // stddef.h:195:1: + X_SIZE_T_DEFINED_ = 0 // stddef.h:194:1: + X_STDC_PREDEF_H = 1 // :223:1: + X_STDLIB_H = 1 // stdlib.h:36:1: + X_STRUCT_TIMESPEC = 1 // struct_timespec.h:3:1: + X_SYS_CDEFS_H = 1 // cdefs.h:20:1: + X_SYS_SELECT_H = 1 // select.h:22:1: + X_SYS_SIZE_T_H = 0 // stddef.h:188:1: + X_SYS_TYPES_H = 1 // types.h:23:1: + X_THREAD_MUTEX_INTERNAL_H = 1 // struct_mutex.h:20:1: + X_THREAD_SHARED_TYPES_H = 1 // thread-shared-types.h:20:1: + X_T_SIZE = 0 // stddef.h:190:1: + X_T_SIZE_ = 0 // stddef.h:189:1: + X_T_WCHAR = 0 // stddef.h:271:1: + X_T_WCHAR_ = 0 // stddef.h:270:1: + X_WCHAR_T = 0 // stddef.h:269:1: + X_WCHAR_T_ = 0 // stddef.h:273:1: + X_WCHAR_T_DECLARED = 0 // stddef.h:281:1: + X_WCHAR_T_DEFINED = 0 // stddef.h:276:1: + X_WCHAR_T_DEFINED_ = 0 // stddef.h:275:1: + X_WCHAR_T_H = 0 // stddef.h:277:1: + Linux = 1 // :308:1: + Unix = 1 // :247:1: +) + +type Ptrdiff_t = int64 /* :3:26 */ + +type Size_t = uint64 /* :9:23 */ + +type Wchar_t = int32 /* :15:24 */ + +type X__int128_t = struct { + Flo int64 + Fhi int64 +} /* :21:43 */ // must match modernc.org/mathutil.Int128 +type X__uint128_t = struct { + Flo uint64 + Fhi uint64 +} /* :22:44 */ // must match modernc.org/mathutil.Int128 + +type X__builtin_va_list = uintptr /* :46:14 */ +type X__float128 = float64 /* :47:21 */ + +// A null pointer constant. + +// XPG requires a few symbols from being defined. +// Definitions of flag bits for `waitpid' et al. +// Copyright (C) 1992-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Bits in the third argument to `waitpid'. + +// Bits in the fourth argument to `waitid'. + +// Definitions of status bits for `wait' et al. +// Copyright (C) 1992-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Everything extant so far uses these same bits. + +// If WIFEXITED(STATUS), the low-order 8 bits of the status. + +// If WIFSIGNALED(STATUS), the terminating signal. + +// If WIFSTOPPED(STATUS), the signal that stopped the child. + +// Nonzero if STATUS indicates normal termination. + +// Nonzero if STATUS indicates termination by a signal. + +// Nonzero if STATUS indicates the child is stopped. + +// Nonzero if STATUS indicates the child continued after a stop. We only +// define this if provides the WCONTINUED flag bit. + +// Nonzero if STATUS indicates the child dumped core. + +// Macros for constructing status values. + +// Define the macros also would define this way. + +// _FloatN API tests for enablement. +// Macros to control TS 18661-3 glibc features on ldbl-128 platforms. +// Copyright (C) 2017-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Properties of long double type. ldbl-128 version. +// Copyright (C) 2016-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// long double is distinct from double, so there is nothing to +// define here. + +// Defined to 1 if the current compiler invocation provides a +// floating-point type with the IEEE 754 binary128 format, and this +// glibc includes corresponding *f128 interfaces for it. + +// Defined to 1 if __HAVE_FLOAT128 is 1 and the type is ABI-distinct +// from the default float, double and long double types in this glibc. + +// Defined to 1 if the current compiler invocation provides a +// floating-point type with the right format for _Float64x, and this +// glibc includes corresponding *f64x interfaces for it. + +// Defined to 1 if __HAVE_FLOAT64X is 1 and _Float64x has the format +// of long double. Otherwise, if __HAVE_FLOAT64X is 1, _Float64x has +// the format of _Float128, which must be different from that of long +// double. + +// Defined to concatenate the literal suffix to be used with _Float128 +// types, if __HAVE_FLOAT128 is 1. + +// Defined to a complex binary128 type if __HAVE_FLOAT128 is 1. + +// The remaining of this file provides support for older compilers. + +// The type _Float128 exists only since GCC 7.0. + +// Various built-in functions do not exist before GCC 7.0. + +// Macros to control TS 18661-3 glibc features where the same +// definitions are appropriate for all platforms. +// Copyright (C) 2017-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Properties of long double type. ldbl-128 version. +// Copyright (C) 2016-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// long double is distinct from double, so there is nothing to +// define here. + +// This header should be included at the bottom of each bits/floatn.h. +// It defines the following macros for each _FloatN and _FloatNx type, +// where the same definitions, or definitions based only on the macros +// in bits/floatn.h, are appropriate for all glibc configurations. + +// Defined to 1 if the current compiler invocation provides a +// floating-point type with the right format for this type, and this +// glibc includes corresponding *fN or *fNx interfaces for it. + +// Defined to 1 if the corresponding __HAVE_ macro is 1 and the +// type is the first with its format in the sequence of (the default +// choices for) float, double, long double, _Float16, _Float32, +// _Float64, _Float128, _Float32x, _Float64x, _Float128x for this +// glibc; that is, if functions present once per floating-point format +// rather than once per type are present for this type. +// +// All configurations supported by glibc have _Float32 the same format +// as float, _Float64 and _Float32x the same format as double, the +// _Float64x the same format as either long double or _Float128. No +// configurations support _Float128x or, as of GCC 7, have compiler +// support for a type meeting the requirements for _Float128x. + +// Defined to 1 if the corresponding _FloatN type is not binary compatible +// with the corresponding ISO C type in the current compilation unit as +// opposed to __HAVE_DISTINCT_FLOATN, which indicates the default types built +// in glibc. + +// Defined to 1 if any _FloatN or _FloatNx types that are not +// ABI-distinct are however distinct types at the C language level (so +// for the purposes of __builtin_types_compatible_p and _Generic). + +// Defined to concatenate the literal suffix to be used with _FloatN +// or _FloatNx types, if __HAVE_ is 1. The corresponding +// literal suffixes exist since GCC 7, for C only. + +// Defined to a complex type if __HAVE_ is 1. + +// The remaining of this file provides support for older compilers. + +// If double, long double and _Float64 all have the same set of +// values, TS 18661-3 requires the usual arithmetic conversions on +// long double and _Float64 to produce _Float64. For this to be the +// case when building with a compiler without a distinct _Float64 +// type, _Float64 must be a typedef for long double, not for +// double. + +// Returned by `div'. +type Div_t = struct { + Fquot int32 + Frem int32 +} /* stdlib.h:63:5 */ + +// Returned by `ldiv'. +type Ldiv_t = struct { + Fquot int64 + Frem int64 +} /* stdlib.h:71:5 */ + +// Returned by `lldiv'. +type Lldiv_t = struct { + Fquot int64 + Frem int64 +} /* stdlib.h:81:5 */ + +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// POSIX Standard: 2.6 Primitive System Data Types + +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Bit size of the time_t type at glibc build time, general case. +// Copyright (C) 2018-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Size in bits of the 'time_t' type of the default ABI. + +// Convenience types. +type X__u_char = uint8 /* types.h:31:23 */ +type X__u_short = uint16 /* types.h:32:28 */ +type X__u_int = uint32 /* types.h:33:22 */ +type X__u_long = uint64 /* types.h:34:27 */ + +// Fixed-size types, underlying types depend on word size and compiler. +type X__int8_t = int8 /* types.h:37:21 */ +type X__uint8_t = uint8 /* types.h:38:23 */ +type X__int16_t = int16 /* types.h:39:26 */ +type X__uint16_t = uint16 /* types.h:40:28 */ +type X__int32_t = int32 /* types.h:41:20 */ +type X__uint32_t = uint32 /* types.h:42:22 */ +type X__int64_t = int64 /* types.h:44:25 */ +type X__uint64_t = uint64 /* types.h:45:27 */ + +// Smallest types with at least a given width. +type X__int_least8_t = int8 /* types.h:52:18 */ +type X__uint_least8_t = uint8 /* types.h:53:19 */ +type X__int_least16_t = int16 /* types.h:54:19 */ +type X__uint_least16_t = uint16 /* types.h:55:20 */ +type X__int_least32_t = int32 /* types.h:56:19 */ +type X__uint_least32_t = uint32 /* types.h:57:20 */ +type X__int_least64_t = int64 /* types.h:58:19 */ +type X__uint_least64_t = uint64 /* types.h:59:20 */ + +// quad_t is also 64 bits. +type X__quad_t = int64 /* types.h:63:18 */ +type X__u_quad_t = uint64 /* types.h:64:27 */ + +// Largest integral types. +type X__intmax_t = int64 /* types.h:72:18 */ +type X__uintmax_t = uint64 /* types.h:73:27 */ + +// The machine-dependent file defines __*_T_TYPE +// macros for each of the OS types we define below. The definitions +// of those macros must use the following macros for underlying types. +// We define __S_TYPE and __U_TYPE for the signed and unsigned +// variants of each of the following integer types on this machine. +// +// 16 -- "natural" 16-bit type (always short) +// 32 -- "natural" 32-bit type (always int) +// 64 -- "natural" 64-bit type (long or long long) +// LONG32 -- 32-bit type, traditionally long +// QUAD -- 64-bit type, traditionally long long +// WORD -- natural type of __WORDSIZE bits (int or long) +// LONGWORD -- type of __WORDSIZE bits, traditionally long +// +// We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the +// conventional uses of `long' or `long long' type modifiers match the +// types we define, even when a less-adorned type would be the same size. +// This matters for (somewhat) portably writing printf/scanf formats for +// these types, where using the appropriate l or ll format modifiers can +// make the typedefs and the formats match up across all GNU platforms. If +// we used `long' when it's 64 bits where `long long' is expected, then the +// compiler would warn about the formats not matching the argument types, +// and the programmer changing them to shut up the compiler would break the +// program's portability. +// +// Here we assume what is presently the case in all the GCC configurations +// we support: long long is always 64 bits, long is always word/address size, +// and int is always 32 bits. + +// No need to mark the typedef with __extension__. +// bits/typesizes.h -- underlying types for *_t. For the generic Linux ABI. +// Copyright (C) 2011-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library. If not, see +// . + +// See for the meaning of these macros. This file exists so +// that need not vary across different GNU platforms. + +// Tell the libc code that off_t and off64_t are actually the same type +// for all ABI purposes, even if possibly expressed as different base types +// for C type-checking purposes. + +// Same for ino_t and ino64_t. + +// And for __rlim_t and __rlim64_t. + +// And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t. + +// And for getitimer, setitimer and rusage + +// Number of descriptors that can fit in an `fd_set'. + +// bits/time64.h -- underlying types for __time64_t. Generic version. +// Copyright (C) 2018-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Define __TIME64_T_TYPE so that it is always a 64-bit type. + +// If we already have 64-bit time type then use it. + +type X__dev_t = uint64 /* types.h:145:25 */ // Type of device numbers. +type X__uid_t = uint32 /* types.h:146:25 */ // Type of user identifications. +type X__gid_t = uint32 /* types.h:147:25 */ // Type of group identifications. +type X__ino_t = uint64 /* types.h:148:25 */ // Type of file serial numbers. +type X__ino64_t = uint64 /* types.h:149:27 */ // Type of file serial numbers (LFS). +type X__mode_t = uint32 /* types.h:150:26 */ // Type of file attribute bitmasks. +type X__nlink_t = uint32 /* types.h:151:27 */ // Type of file link counts. +type X__off_t = int64 /* types.h:152:25 */ // Type of file sizes and offsets. +type X__off64_t = int64 /* types.h:153:27 */ // Type of file sizes and offsets (LFS). +type X__pid_t = int32 /* types.h:154:25 */ // Type of process identifications. +type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs. +type X__clock_t = int64 /* types.h:156:27 */ // Type of CPU usage counts. +type X__rlim_t = uint64 /* types.h:157:26 */ // Type for resource measurement. +type X__rlim64_t = uint64 /* types.h:158:28 */ // Type for resource measurement (LFS). +type X__id_t = uint32 /* types.h:159:24 */ // General type for IDs. +type X__time_t = int64 /* types.h:160:26 */ // Seconds since the Epoch. +type X__useconds_t = uint32 /* types.h:161:30 */ // Count of microseconds. +type X__suseconds_t = int64 /* types.h:162:31 */ // Signed count of microseconds. +type X__suseconds64_t = int64 /* types.h:163:33 */ + +type X__daddr_t = int32 /* types.h:165:27 */ // The type of a disk address. +type X__key_t = int32 /* types.h:166:25 */ // Type of an IPC key. + +// Clock ID used in clock and timer functions. +type X__clockid_t = int32 /* types.h:169:29 */ + +// Timer ID returned by `timer_create'. +type X__timer_t = uintptr /* types.h:172:12 */ + +// Type to represent block size. +type X__blksize_t = int32 /* types.h:175:29 */ + +// Types from the Large File Support interface. + +// Type to count number of disk blocks. +type X__blkcnt_t = int64 /* types.h:180:28 */ +type X__blkcnt64_t = int64 /* types.h:181:30 */ + +// Type to count file system blocks. +type X__fsblkcnt_t = uint64 /* types.h:184:30 */ +type X__fsblkcnt64_t = uint64 /* types.h:185:32 */ + +// Type to count file system nodes. +type X__fsfilcnt_t = uint64 /* types.h:188:30 */ +type X__fsfilcnt64_t = uint64 /* types.h:189:32 */ + +// Type of miscellaneous file system fields. +type X__fsword_t = int64 /* types.h:192:28 */ + +type X__ssize_t = int64 /* types.h:194:27 */ // Type of a byte count, or error. + +// Signed long type used in system calls. +type X__syscall_slong_t = int64 /* types.h:197:33 */ +// Unsigned long type used in system calls. +type X__syscall_ulong_t = uint64 /* types.h:199:33 */ + +// These few don't really vary by system, they always correspond +// +// to one of the other defined types. +type X__loff_t = int64 /* types.h:203:19 */ // Type of file sizes and offsets (LFS). +type X__caddr_t = uintptr /* types.h:204:14 */ + +// Duplicates info from stdint.h but this is used in unistd.h. +type X__intptr_t = int64 /* types.h:207:25 */ + +// Duplicate info from sys/socket.h. +type X__socklen_t = uint32 /* types.h:210:23 */ + +// C99: An integer type that can be accessed as an atomic entity, +// +// even in the presence of asynchronous interrupts. +// It is not currently necessary for this to be machine-specific. +type X__sig_atomic_t = int32 /* types.h:215:13 */ + +// Seconds since the Epoch, visible to user code when time_t is too +// narrow only for consistency with the old way of widening too-narrow +// types. User code should never use __time64_t. + +type U_char = uint8 /* types.h:33:18 */ +type U_short = uint16 /* types.h:34:19 */ +type U_int = uint32 /* types.h:35:17 */ +type U_long = uint64 /* types.h:36:18 */ +type Quad_t = int64 /* types.h:37:18 */ +type U_quad_t = uint64 /* types.h:38:20 */ +type Fsid_t = X__fsid_t /* types.h:39:18 */ +type Loff_t = int64 /* types.h:42:18 */ + +type Ino_t = uint64 /* types.h:49:19 */ + +type Dev_t = uint64 /* types.h:59:17 */ + +type Gid_t = uint32 /* types.h:64:17 */ + +type Mode_t = uint32 /* types.h:69:18 */ + +type Nlink_t = uint32 /* types.h:74:19 */ + +type Uid_t = uint32 /* types.h:79:17 */ + +type Off_t = int64 /* types.h:87:19 */ + +type Pid_t = int32 /* types.h:97:17 */ + +type Id_t = uint32 /* types.h:103:16 */ + +type Ssize_t = int64 /* types.h:108:19 */ + +type Daddr_t = int32 /* types.h:114:19 */ +type Caddr_t = uintptr /* types.h:115:19 */ + +type Key_t = int32 /* types.h:121:17 */ + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Returned by `clock'. +type Clock_t = int64 /* clock_t.h:7:19 */ + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Clock ID used in clock and timer functions. +type Clockid_t = int32 /* clockid_t.h:7:21 */ + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Returned by `time'. +type Time_t = int64 /* time_t.h:10:18 */ + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Timer ID returned by `timer_create'. +type Timer_t = uintptr /* timer_t.h:7:19 */ + +// Copyright (C) 1989-2023 Free Software Foundation, Inc. +// +// This file is part of GCC. +// +// GCC is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 3, or (at your option) +// any later version. +// +// GCC is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// Under Section 7 of GPL version 3, you are granted additional +// permissions described in the GCC Runtime Library Exception, version +// 3.1, as published by the Free Software Foundation. +// +// You should have received a copy of the GNU General Public License and +// a copy of the GCC Runtime Library Exception along with this program; +// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see +// . + +// ISO C Standard: 7.17 Common definitions + +// Any one of these symbols __need_* means that GNU libc +// wants us just to define one data type. So don't define +// the symbols that indicate this file's entire job has been done. + +// This avoids lossage on SunOS but only if stdtypes.h comes first. +// There's no way to win with the other order! Sun lossage. + +// Sequent's header files use _PTRDIFF_T_ in some conflicting way. +// Just ignore it. + +// On VxWorks, may have defined macros like +// _TYPE_size_t which will typedef size_t. fixincludes patched the +// vxTypesBase.h so that this macro is only defined if _GCC_SIZE_T is +// not defined, and so that defining this macro defines _GCC_SIZE_T. +// If we find that the macros are still defined at this point, we must +// invoke them so that the type is defined as expected. + +// In case nobody has defined these types, but we aren't running under +// GCC 2.00, make sure that __PTRDIFF_TYPE__, __SIZE_TYPE__, and +// __WCHAR_TYPE__ have reasonable values. This can happen if the +// parts of GCC is compiled by an older compiler, that actually +// include gstddef.h, such as collect2. + +// Signed type of difference of two pointers. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// Unsigned type of `sizeof' something. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// Wide character type. +// Locale-writers should change this as necessary to +// be big enough to hold unique values not between 0 and 127, +// and not (wchar_t) -1, for each defined multibyte character. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// A null pointer constant. + +// Old compatibility names for C types. +type Ulong = uint64 /* types.h:148:27 */ +type Ushort = uint16 /* types.h:149:28 */ +type Uint = uint32 /* types.h:150:22 */ + +// These size-specific names are used by some of the inet code. + +// Define intN_t types. +// Copyright (C) 2017-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +type Int8_t = int8 /* stdint-intn.h:24:18 */ +type Int16_t = int16 /* stdint-intn.h:25:19 */ +type Int32_t = int32 /* stdint-intn.h:26:19 */ +type Int64_t = int64 /* stdint-intn.h:27:19 */ + +// These were defined by ISO C without the first `_'. +type U_int8_t = uint8 /* types.h:158:19 */ +type U_int16_t = uint16 /* types.h:159:20 */ +type U_int32_t = uint32 /* types.h:160:20 */ +type U_int64_t = uint64 /* types.h:161:20 */ + +type Register_t = int32 /* types.h:164:13 */ + +// It also defines `fd_set' and the FD_* macros for `select'. +// `fd_set' type and related macros, and `select'/`pselect' declarations. +// Copyright (C) 1996-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// POSIX 1003.1g: 6.2 Select from File Descriptor Sets + +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Get definition of needed basic types. +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Get __FD_* definitions. +// Copyright (C) 1997-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// We don't use `memset' because this would require a prototype and +// the array isn't too big. + +// Get sigset_t. + +type X__sigset_t = struct{ F__val [16]uint64 } /* __sigset_t.h:8:3 */ + +// A set of signals to be blocked, unblocked, or waited for. +type Sigset_t = X__sigset_t /* sigset_t.h:7:20 */ + +// Get definition of timer specification structures. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// A time value that is accurate to the nearest +// +// microsecond but also has a range of years. +type Timeval = struct { + Ftv_sec int64 + Ftv_usec int64 +} /* struct_timeval.h:8:1 */ + +// NB: Include guard matches what uses. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Endian macros for string.h functions +// Copyright (C) 1992-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// POSIX.1b structure for a time value. This is like a `struct timeval' but +// +// has nanoseconds instead of microseconds. +type Timespec = struct { + Ftv_sec int64 + Ftv_nsec int64 +} /* struct_timespec.h:11:1 */ + +type Suseconds_t = int64 /* select.h:43:23 */ + +// The fd_set member is required to be an array of longs. +type X__fd_mask = int64 /* select.h:49:18 */ + +// Some versions of define this macros. +// It's easier to assume 8-bit bytes than to get CHAR_BIT. + +// fd_set for select and pselect. +type Fd_set = struct{ F__fds_bits [16]int64 } /* select.h:70:5 */ + +// Maximum number of file descriptors in `fd_set'. + +// Sometimes the fd_set member is assumed to have this type. +type Fd_mask = int64 /* select.h:77:19 */ + +// Define some inlines helping to catch common problems. + +type Blksize_t = int32 /* types.h:185:21 */ + +// Types from the Large File Support interface. +type Blkcnt_t = int64 /* types.h:205:22 */ // Type to count number of disk blocks. +type Fsblkcnt_t = uint64 /* types.h:209:24 */ // Type to count file system blocks. +type Fsfilcnt_t = uint64 /* types.h:213:24 */ // Type to count file system inodes. + +// Now add the thread types. +// Declaration of common pthread types for all architectures. +// Copyright (C) 2017-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// For internal mutex and condition variable definitions. +// Common threading primitives definitions for both POSIX and C11. +// Copyright (C) 2017-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Arch-specific definitions. Each architecture must define the following +// macros to define the expected sizes of pthread data types: +// +// __SIZEOF_PTHREAD_ATTR_T - size of pthread_attr_t. +// __SIZEOF_PTHREAD_MUTEX_T - size of pthread_mutex_t. +// __SIZEOF_PTHREAD_MUTEXATTR_T - size of pthread_mutexattr_t. +// __SIZEOF_PTHREAD_COND_T - size of pthread_cond_t. +// __SIZEOF_PTHREAD_CONDATTR_T - size of pthread_condattr_t. +// __SIZEOF_PTHREAD_RWLOCK_T - size of pthread_rwlock_t. +// __SIZEOF_PTHREAD_RWLOCKATTR_T - size of pthread_rwlockattr_t. +// __SIZEOF_PTHREAD_BARRIER_T - size of pthread_barrier_t. +// __SIZEOF_PTHREAD_BARRIERATTR_T - size of pthread_barrierattr_t. +// +// The additional macro defines any constraint for the lock alignment +// inside the thread structures: +// +// __LOCK_ALIGNMENT - for internal lock/futex usage. +// +// Same idea but for the once locking primitive: +// +// __ONCE_ALIGNMENT - for pthread_once_t/once_flag definition. + +// Machine-specific pthread type layouts. Generic version. +// Copyright (C) 2019-2023 Free Software Foundation, Inc. +// +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Monotonically increasing wide counters (at least 62 bits). +// Copyright (C) 2016-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Counter that is monotonically increasing (by less than 2**31 per +// +// increment), with a single writer, and an arbitrary number of +// readers. +type X__atomic_wide_counter = struct{ F__value64 uint64 } /* atomic_wide_counter.h:33:3 */ + +// Common definition of pthread_mutex_t. + +type X__pthread_internal_list = struct { + F__prev uintptr + F__next uintptr +} /* thread-shared-types.h:51:9 */ + +// Common definition of pthread_mutex_t. + +type X__pthread_list_t = X__pthread_internal_list /* thread-shared-types.h:55:3 */ + +type X__pthread_internal_slist = struct{ F__next uintptr } /* thread-shared-types.h:57:9 */ + +type X__pthread_slist_t = X__pthread_internal_slist /* thread-shared-types.h:60:3 */ + +// Arch-specific mutex definitions. A generic implementation is provided +// by sysdeps/nptl/bits/struct_mutex.h. If required, an architecture +// can override it by defining: +// +// 1. struct __pthread_mutex_s (used on both pthread_mutex_t and mtx_t +// definition). It should contains at least the internal members +// defined in the generic version. +// +// 2. __LOCK_ALIGNMENT for any extra attribute for internal lock used with +// atomic operations. +// +// 3. The macro __PTHREAD_MUTEX_INITIALIZER used for static initialization. +// It should initialize the mutex internal flag. + +// Default mutex implementation struct definitions. +// Copyright (C) 2019-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Generic struct for both POSIX and C11 mutexes. New ports are expected +// to use the default layout, however architecture can redefine it to +// add arch-specific extension (such as lock-elision). The struct have +// a size of 32 bytes on LP32 and 40 bytes on LP64 architectures. + +type X__pthread_mutex_s = struct { + F__lock int32 + F__count uint32 + F__owner int32 + F__nusers uint32 + F__kind int32 + F__spins int32 + F__list X__pthread_list_t +} /* struct_mutex.h:27:1 */ + +// Arch-sepecific read-write lock definitions. A generic implementation is +// provided by struct_rwlock.h. If required, an architecture can override it +// by defining: +// +// 1. struct __pthread_rwlock_arch_t (used on pthread_rwlock_t definition). +// It should contain at least the internal members defined in the +// generic version. +// +// 2. The macro __PTHREAD_RWLOCK_INITIALIZER used for static initialization. +// It should initialize the rwlock internal type. + +// Default read-write lock implementation struct definitions. +// Copyright (C) 2019-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Endian macros for string.h functions +// Copyright (C) 1992-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Generic struct for both POSIX read-write lock. New ports are expected +// to use the default layout, however archictetures can redefine it to add +// arch-specific extensions (such as lock-elision). The struct have a size +// of 32 bytes on both LP32 and LP64 architectures. + +type X__pthread_rwlock_arch_t = struct { + F__readers uint32 + F__writers uint32 + F__wrphase_futex uint32 + F__writers_futex uint32 + F__pad3 uint32 + F__pad4 uint32 + F__flags uint8 + F__shared uint8 + F__pad1 uint8 + F__pad2 uint8 + F__cur_writer int32 +} /* struct_rwlock.h:29:1 */ + +// Common definition of pthread_cond_t. + +type X__pthread_cond_s = struct { + F__wseq X__atomic_wide_counter + F__g1_start X__atomic_wide_counter + F__g_refs [2]uint32 + F__g_size [2]uint32 + F__g1_orig_size uint32 + F__wrefs uint32 + F__g_signals [2]uint32 +} /* thread-shared-types.h:94:1 */ + +type X__tss_t = uint32 /* thread-shared-types.h:105:22 */ +type X__thrd_t = uint64 /* thread-shared-types.h:106:27 */ + +type X__once_flag = struct{ F__data int32 } /* thread-shared-types.h:111:3 */ + +// Thread identifiers. The structure of the attribute type is not +// +// exposed on purpose. +type Pthread_t = uint64 /* pthreadtypes.h:27:27 */ + +// Data structures for mutex handling. The structure of the attribute +// +// type is not exposed on purpose. +type Pthread_mutexattr_t = struct { + F__ccgo_pad1 [0]uint32 + F__size [4]int8 +} /* pthreadtypes.h:36:3 */ + +// Data structure for condition variable handling. The structure of +// +// the attribute type is not exposed on purpose. +type Pthread_condattr_t = struct { + F__ccgo_pad1 [0]uint32 + F__size [4]int8 +} /* pthreadtypes.h:45:3 */ + +// Keys for thread-specific data +type Pthread_key_t = uint32 /* pthreadtypes.h:49:22 */ + +// Once-only execution +type Pthread_once_t = int32 /* pthreadtypes.h:53:30 */ + +type Pthread_attr_t1 = struct { + F__ccgo_pad1 [0]uint64 + F__size [56]int8 +} /* pthreadtypes.h:56:1 */ + +type Pthread_attr_t = Pthread_attr_t1 /* pthreadtypes.h:62:30 */ + +type Pthread_mutex_t = struct{ F__data X__pthread_mutex_s } /* pthreadtypes.h:72:3 */ + +type Pthread_cond_t = struct{ F__data X__pthread_cond_s } /* pthreadtypes.h:80:3 */ + +// Data structure for reader-writer lock variable handling. The +// +// structure of the attribute type is deliberately not exposed. +type Pthread_rwlock_t = struct { + F__ccgo_pad1 [0]uint64 + F__data X__pthread_rwlock_arch_t + F__ccgo_pad2 [24]byte +} /* pthreadtypes.h:91:3 */ + +type Pthread_rwlockattr_t = struct { + F__ccgo_pad1 [0]uint64 + F__size [8]int8 +} /* pthreadtypes.h:97:3 */ + +// POSIX spinlock data type. +type Pthread_spinlock_t = int32 /* pthreadtypes.h:103:22 */ + +// POSIX barriers data type. The structure of the type is +// +// deliberately not exposed. +type Pthread_barrier_t = struct { + F__ccgo_pad1 [0]uint64 + F__size [32]int8 +} /* pthreadtypes.h:112:3 */ + +type Pthread_barrierattr_t = struct { + F__ccgo_pad1 [0]uint32 + F__size [4]int8 +} /* pthreadtypes.h:118:3 */ + +// Reentrant versions of the `random' family of functions. +// These functions all use the following data structure to contain +// state, rather than global state variables. + +type Random_data = struct { + Ffptr uintptr + Frptr uintptr + Fstate uintptr + Frand_type int32 + Frand_deg int32 + Frand_sep int32 + F__ccgo_pad1 [4]byte + Fend_ptr uintptr +} /* stdlib.h:543:1 */ + +// Data structure for communication with thread safe versions. This +// +// type is to be regarded as opaque. It's only exported because users +// have to allocate objects of this type. +type Drand48_data = struct { + F__x [3]uint16 + F__old_x [3]uint16 + F__c uint16 + F__init uint16 + F__a uint64 +} /* stdlib.h:610:1 */ + +// Shorthand for type of comparison functions. +type X__compar_fn_t = uintptr /* stdlib.h:948:13 */ + +// Floating-point inline functions for stdlib.h. +// Copyright (C) 2012-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Define some macros helping to catch buffer overflows. + +// Macros to control TS 18661-3 glibc features on ldbl-128 platforms. +// Copyright (C) 2017-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +var _ int8 /* gen.c:2:13: */ diff --git a/vendor/modernc.org/libc/stdlib/stdlib_linux_mips64le.go b/vendor/modernc.org/libc/stdlib/stdlib_linux_mips64le.go new file mode 100644 index 000000000..242876b7e --- /dev/null +++ b/vendor/modernc.org/libc/stdlib/stdlib_linux_mips64le.go @@ -0,0 +1,1541 @@ +// Code generated by 'ccgo stdlib/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o stdlib/stdlib_linux_amd64.go -pkgname stdlib', DO NOT EDIT. + +package stdlib + +import ( + "math" + "reflect" + "sync/atomic" + "unsafe" +) + +var _ = math.Pi +var _ reflect.Kind +var _ atomic.Value +var _ unsafe.Pointer + +const ( + BIG_ENDIAN = 4321 // endian.h:28:1: + BYTE_ORDER = 1234 // endian.h:30:1: + EXIT_FAILURE = 1 // stdlib.h:91:1: + EXIT_SUCCESS = 0 // stdlib.h:92:1: + FD_SETSIZE = 1024 // select.h:73:1: + LITTLE_ENDIAN = 1234 // endian.h:27:1: + PDP_ENDIAN = 3412 // endian.h:29:1: + RAND_MAX = 2147483647 // stdlib.h:86:1: + WCONTINUED = 8 // waitflags.h:32:1: + WEXITED = 4 // waitflags.h:31:1: + WNOHANG = 1 // waitflags.h:25:1: + WNOWAIT = 0x01000000 // waitflags.h:33:1: + WSTOPPED = 2 // waitflags.h:30:1: + WUNTRACED = 2 // waitflags.h:26:1: + X_ALLOCA_H = 1 // alloca.h:19:1: + X_ATFILE_SOURCE = 1 // features.h:342:1: + X_BITS_BYTESWAP_H = 1 // byteswap.h:24:1: + X_BITS_ENDIANNESS_H = 1 // endianness.h:2:1: + X_BITS_ENDIAN_H = 1 // endian.h:20:1: + X_BITS_FLOATN_COMMON_H = 0 // floatn-common.h:21:1: + X_BITS_FLOATN_H = 0 // floatn.h:20:1: + X_BITS_PTHREADTYPES_ARCH_H = 1 // pthreadtypes-arch.h:19:1: + X_BITS_PTHREADTYPES_COMMON_H = 1 // pthreadtypes.h:20:1: + X_BITS_STDINT_INTN_H = 1 // stdint-intn.h:20:1: + X_BITS_TIME64_H = 1 // time64.h:24:1: + X_BITS_TYPESIZES_H = 1 // typesizes.h:24:1: + X_BITS_TYPES_H = 1 // types.h:24:1: + X_BITS_UINTN_IDENTITY_H = 1 // uintn-identity.h:24:1: + X_BSD_SIZE_T_ = 0 // stddef.h:189:1: + X_BSD_SIZE_T_DEFINED_ = 0 // stddef.h:192:1: + X_DEFAULT_SOURCE = 1 // features.h:227:1: + X_ENDIAN_H = 1 // endian.h:19:1: + X_FEATURES_H = 1 // features.h:19:1: + X_FILE_OFFSET_BITS = 64 // :25:1: + X_GCC_SIZE_T = 0 // stddef.h:195:1: + X_GCC_WCHAR_T = 0 // stddef.h:273:1: + X_LP64 = 1 // :284:1: + X_POSIX_C_SOURCE = 200809 // features.h:281:1: + X_POSIX_SOURCE = 1 // features.h:279:1: + X_RWLOCK_INTERNAL_H = 0 // struct_rwlock.h:21:1: + X_SIZET_ = 0 // stddef.h:196:1: + X_SIZE_T = 0 // stddef.h:183:1: + X_SIZE_T_ = 0 // stddef.h:188:1: + X_SIZE_T_DECLARED = 0 // stddef.h:193:1: + X_SIZE_T_DEFINED = 0 // stddef.h:191:1: + X_SIZE_T_DEFINED_ = 0 // stddef.h:190:1: + X_STDC_PREDEF_H = 1 // :162:1: + X_STDLIB_H = 1 // stdlib.h:35:1: + X_STRUCT_TIMESPEC = 1 // struct_timespec.h:3:1: + X_SYS_CDEFS_H = 1 // cdefs.h:19:1: + X_SYS_SELECT_H = 1 // select.h:22:1: + X_SYS_SIZE_T_H = 0 // stddef.h:184:1: + X_SYS_TYPES_H = 1 // types.h:23:1: + X_THREAD_MUTEX_INTERNAL_H = 1 // struct_mutex.h:20:1: + X_THREAD_SHARED_TYPES_H = 1 // thread-shared-types.h:20:1: + X_T_SIZE = 0 // stddef.h:186:1: + X_T_SIZE_ = 0 // stddef.h:185:1: + X_T_WCHAR = 0 // stddef.h:264:1: + X_T_WCHAR_ = 0 // stddef.h:263:1: + X_WCHAR_T = 0 // stddef.h:262:1: + X_WCHAR_T_ = 0 // stddef.h:266:1: + X_WCHAR_T_DECLARED = 0 // stddef.h:274:1: + X_WCHAR_T_DEFINED = 0 // stddef.h:269:1: + X_WCHAR_T_DEFINED_ = 0 // stddef.h:268:1: + X_WCHAR_T_H = 0 // stddef.h:270:1: + Linux = 1 // :231:1: + Unix = 1 // :177:1: +) + +// A null pointer constant. + +// XPG requires a few symbols from being defined. +// Definitions of flag bits for `waitpid' et al. +// Copyright (C) 1992-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Bits in the third argument to `waitpid'. + +// Bits in the fourth argument to `waitid'. + +// The following values are used by the `waitid' function. + +// The Linux kernel defines these bare, rather than an enum, +// which causes a conflict if the include order is reversed. + +const ( /* waitflags.h:52:1: */ + P_ALL = 0 // Wait for any child. + P_PID = 1 // Wait for specified process. + P_PGID = 2 +) + +type Ptrdiff_t = int64 /* :3:26 */ + +type Size_t = uint64 /* :9:23 */ + +type Wchar_t = int32 /* :15:24 */ + +type X__int128_t = struct { + Flo int64 + Fhi int64 +} /* :21:43 */ // must match modernc.org/mathutil.Int128 +type X__uint128_t = struct { + Flo uint64 + Fhi uint64 +} /* :22:44 */ // must match modernc.org/mathutil.Int128 + +type X__builtin_va_list = uintptr /* :46:14 */ +type X__float128 = float64 /* :47:21 */ + +// A null pointer constant. + +// XPG requires a few symbols from being defined. +// Definitions of flag bits for `waitpid' et al. +// Copyright (C) 1992-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Bits in the third argument to `waitpid'. + +// Bits in the fourth argument to `waitid'. + +// The following values are used by the `waitid' function. + +// The Linux kernel defines these bare, rather than an enum, +// which causes a conflict if the include order is reversed. + +type Idtype_t = uint32 /* waitflags.h:57:3 */ +// Definitions of status bits for `wait' et al. +// Copyright (C) 1992-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Everything extant so far uses these same bits. + +// If WIFEXITED(STATUS), the low-order 8 bits of the status. + +// If WIFSIGNALED(STATUS), the terminating signal. + +// If WIFSTOPPED(STATUS), the signal that stopped the child. + +// Nonzero if STATUS indicates normal termination. + +// Nonzero if STATUS indicates termination by a signal. + +// Nonzero if STATUS indicates the child is stopped. + +// Nonzero if STATUS indicates the child continued after a stop. We only +// define this if provides the WCONTINUED flag bit. + +// Nonzero if STATUS indicates the child dumped core. + +// Macros for constructing status values. + +// Define the macros also would define this way. + +// _FloatN API tests for enablement. +// Macros to control TS 18661-3 glibc features on x86. +// Copyright (C) 2017-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Defined to 1 if the current compiler invocation provides a +// floating-point type with the IEEE 754 binary128 format, and this +// glibc includes corresponding *f128 interfaces for it. The required +// libgcc support was added some time after the basic compiler +// support, for x86_64 and x86. + +// Defined to 1 if __HAVE_FLOAT128 is 1 and the type is ABI-distinct +// from the default float, double and long double types in this glibc. + +// Defined to 1 if the current compiler invocation provides a +// floating-point type with the right format for _Float64x, and this +// glibc includes corresponding *f64x interfaces for it. + +// Defined to 1 if __HAVE_FLOAT64X is 1 and _Float64x has the format +// of long double. Otherwise, if __HAVE_FLOAT64X is 1, _Float64x has +// the format of _Float128, which must be different from that of long +// double. + +// Defined to concatenate the literal suffix to be used with _Float128 +// types, if __HAVE_FLOAT128 is 1. + +// Defined to a complex binary128 type if __HAVE_FLOAT128 is 1. + +// The remaining of this file provides support for older compilers. + +// The type _Float128 exists only since GCC 7.0. + +// __builtin_huge_valf128 doesn't exist before GCC 7.0. + +// Older GCC has only a subset of built-in functions for _Float128 on +// x86, and __builtin_infq is not usable in static initializers. +// Converting a narrower sNaN to _Float128 produces a quiet NaN, so +// attempts to use _Float128 sNaNs will not work properly with older +// compilers. + +// In math/math.h, __MATH_TG will expand signbit to __builtin_signbit*, +// e.g.: __builtin_signbitf128, before GCC 6. However, there has never +// been a __builtin_signbitf128 in GCC and the type-generic builtin is +// only available since GCC 6. + +// Macros to control TS 18661-3 glibc features where the same +// definitions are appropriate for all platforms. +// Copyright (C) 2017-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Properties of long double type. ldbl-96 version. +// Copyright (C) 2016-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// long double is distinct from double, so there is nothing to +// define here. + +// This header should be included at the bottom of each bits/floatn.h. +// It defines the following macros for each _FloatN and _FloatNx type, +// where the same definitions, or definitions based only on the macros +// in bits/floatn.h, are appropriate for all glibc configurations. + +// Defined to 1 if the current compiler invocation provides a +// floating-point type with the right format for this type, and this +// glibc includes corresponding *fN or *fNx interfaces for it. + +// Defined to 1 if the corresponding __HAVE_ macro is 1 and the +// type is the first with its format in the sequence of (the default +// choices for) float, double, long double, _Float16, _Float32, +// _Float64, _Float128, _Float32x, _Float64x, _Float128x for this +// glibc; that is, if functions present once per floating-point format +// rather than once per type are present for this type. +// +// All configurations supported by glibc have _Float32 the same format +// as float, _Float64 and _Float32x the same format as double, the +// _Float64x the same format as either long double or _Float128. No +// configurations support _Float128x or, as of GCC 7, have compiler +// support for a type meeting the requirements for _Float128x. + +// Defined to 1 if the corresponding _FloatN type is not binary compatible +// with the corresponding ISO C type in the current compilation unit as +// opposed to __HAVE_DISTINCT_FLOATN, which indicates the default types built +// in glibc. + +// Defined to 1 if any _FloatN or _FloatNx types that are not +// ABI-distinct are however distinct types at the C language level (so +// for the purposes of __builtin_types_compatible_p and _Generic). + +// Defined to concatenate the literal suffix to be used with _FloatN +// or _FloatNx types, if __HAVE_ is 1. The corresponding +// literal suffixes exist since GCC 7, for C only. + +// Defined to a complex type if __HAVE_ is 1. + +// The remaining of this file provides support for older compilers. + +// If double, long double and _Float64 all have the same set of +// values, TS 18661-3 requires the usual arithmetic conversions on +// long double and _Float64 to produce _Float64. For this to be the +// case when building with a compiler without a distinct _Float64 +// type, _Float64 must be a typedef for long double, not for +// double. + +// Returned by `div'. +type Div_t = struct { + Fquot int32 + Frem int32 +} /* stdlib.h:62:5 */ + +// Returned by `ldiv'. +type Ldiv_t = struct { + Fquot int64 + Frem int64 +} /* stdlib.h:70:5 */ + +// Returned by `lldiv'. +type Lldiv_t = struct { + Fquot int64 + Frem int64 +} /* stdlib.h:80:5 */ + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// POSIX Standard: 2.6 Primitive System Data Types + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Determine the wordsize from the preprocessor defines. + +// Both x86-64 and x32 use the 64-bit system call interface. +// Bit size of the time_t type at glibc build time, x86-64 and x32 case. +// Copyright (C) 2018-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// For others, time size is word size. + +// Convenience types. +type X__u_char = uint8 /* types.h:31:23 */ +type X__u_short = uint16 /* types.h:32:28 */ +type X__u_int = uint32 /* types.h:33:22 */ +type X__u_long = uint64 /* types.h:34:27 */ + +// Fixed-size types, underlying types depend on word size and compiler. +type X__int8_t = int8 /* types.h:37:21 */ +type X__uint8_t = uint8 /* types.h:38:23 */ +type X__int16_t = int16 /* types.h:39:26 */ +type X__uint16_t = uint16 /* types.h:40:28 */ +type X__int32_t = int32 /* types.h:41:20 */ +type X__uint32_t = uint32 /* types.h:42:22 */ +type X__int64_t = int64 /* types.h:44:25 */ +type X__uint64_t = uint64 /* types.h:45:27 */ + +// Smallest types with at least a given width. +type X__int_least8_t = X__int8_t /* types.h:52:18 */ +type X__uint_least8_t = X__uint8_t /* types.h:53:19 */ +type X__int_least16_t = X__int16_t /* types.h:54:19 */ +type X__uint_least16_t = X__uint16_t /* types.h:55:20 */ +type X__int_least32_t = X__int32_t /* types.h:56:19 */ +type X__uint_least32_t = X__uint32_t /* types.h:57:20 */ +type X__int_least64_t = X__int64_t /* types.h:58:19 */ +type X__uint_least64_t = X__uint64_t /* types.h:59:20 */ + +// quad_t is also 64 bits. +type X__quad_t = int64 /* types.h:63:18 */ +type X__u_quad_t = uint64 /* types.h:64:27 */ + +// Largest integral types. +type X__intmax_t = int64 /* types.h:72:18 */ +type X__uintmax_t = uint64 /* types.h:73:27 */ + +// The machine-dependent file defines __*_T_TYPE +// macros for each of the OS types we define below. The definitions +// of those macros must use the following macros for underlying types. +// We define __S_TYPE and __U_TYPE for the signed and unsigned +// variants of each of the following integer types on this machine. +// +// 16 -- "natural" 16-bit type (always short) +// 32 -- "natural" 32-bit type (always int) +// 64 -- "natural" 64-bit type (long or long long) +// LONG32 -- 32-bit type, traditionally long +// QUAD -- 64-bit type, traditionally long long +// WORD -- natural type of __WORDSIZE bits (int or long) +// LONGWORD -- type of __WORDSIZE bits, traditionally long +// +// We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the +// conventional uses of `long' or `long long' type modifiers match the +// types we define, even when a less-adorned type would be the same size. +// This matters for (somewhat) portably writing printf/scanf formats for +// these types, where using the appropriate l or ll format modifiers can +// make the typedefs and the formats match up across all GNU platforms. If +// we used `long' when it's 64 bits where `long long' is expected, then the +// compiler would warn about the formats not matching the argument types, +// and the programmer changing them to shut up the compiler would break the +// program's portability. +// +// Here we assume what is presently the case in all the GCC configurations +// we support: long long is always 64 bits, long is always word/address size, +// and int is always 32 bits. + +// No need to mark the typedef with __extension__. +// bits/typesizes.h -- underlying types for *_t. Linux/x86-64 version. +// Copyright (C) 2012-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// See for the meaning of these macros. This file exists so +// that need not vary across different GNU platforms. + +// X32 kernel interface is 64-bit. + +// Tell the libc code that off_t and off64_t are actually the same type +// for all ABI purposes, even if possibly expressed as different base types +// for C type-checking purposes. + +// Same for ino_t and ino64_t. + +// And for __rlim_t and __rlim64_t. + +// And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t. + +// Number of descriptors that can fit in an `fd_set'. + +// bits/time64.h -- underlying types for __time64_t. Generic version. +// Copyright (C) 2018-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Define __TIME64_T_TYPE so that it is always a 64-bit type. + +// If we already have 64-bit time type then use it. + +type X__dev_t = uint64 /* types.h:145:25 */ // Type of device numbers. +type X__uid_t = uint32 /* types.h:146:25 */ // Type of user identifications. +type X__gid_t = uint32 /* types.h:147:25 */ // Type of group identifications. +type X__ino_t = uint64 /* types.h:148:25 */ // Type of file serial numbers. +type X__ino64_t = uint64 /* types.h:149:27 */ // Type of file serial numbers (LFS). +type X__mode_t = uint32 /* types.h:150:26 */ // Type of file attribute bitmasks. +type X__nlink_t = uint64 /* types.h:151:27 */ // Type of file link counts. +type X__off_t = int64 /* types.h:152:25 */ // Type of file sizes and offsets. +type X__off64_t = int64 /* types.h:153:27 */ // Type of file sizes and offsets (LFS). +type X__pid_t = int32 /* types.h:154:25 */ // Type of process identifications. +type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs. +type X__clock_t = int64 /* types.h:156:27 */ // Type of CPU usage counts. +type X__rlim_t = uint64 /* types.h:157:26 */ // Type for resource measurement. +type X__rlim64_t = uint64 /* types.h:158:28 */ // Type for resource measurement (LFS). +type X__id_t = uint32 /* types.h:159:24 */ // General type for IDs. +type X__time_t = int64 /* types.h:160:26 */ // Seconds since the Epoch. +type X__useconds_t = uint32 /* types.h:161:30 */ // Count of microseconds. +type X__suseconds_t = int64 /* types.h:162:31 */ // Signed count of microseconds. + +type X__daddr_t = int32 /* types.h:164:27 */ // The type of a disk address. +type X__key_t = int32 /* types.h:165:25 */ // Type of an IPC key. + +// Clock ID used in clock and timer functions. +type X__clockid_t = int32 /* types.h:168:29 */ + +// Timer ID returned by `timer_create'. +type X__timer_t = uintptr /* types.h:171:12 */ + +// Type to represent block size. +type X__blksize_t = int64 /* types.h:174:29 */ + +// Types from the Large File Support interface. + +// Type to count number of disk blocks. +type X__blkcnt_t = int64 /* types.h:179:28 */ +type X__blkcnt64_t = int64 /* types.h:180:30 */ + +// Type to count file system blocks. +type X__fsblkcnt_t = uint64 /* types.h:183:30 */ +type X__fsblkcnt64_t = uint64 /* types.h:184:32 */ + +// Type to count file system nodes. +type X__fsfilcnt_t = uint64 /* types.h:187:30 */ +type X__fsfilcnt64_t = uint64 /* types.h:188:32 */ + +// Type of miscellaneous file system fields. +type X__fsword_t = int64 /* types.h:191:28 */ + +type X__ssize_t = int64 /* types.h:193:27 */ // Type of a byte count, or error. + +// Signed long type used in system calls. +type X__syscall_slong_t = int64 /* types.h:196:33 */ +// Unsigned long type used in system calls. +type X__syscall_ulong_t = uint64 /* types.h:198:33 */ + +// These few don't really vary by system, they always correspond +// +// to one of the other defined types. +type X__loff_t = X__off64_t /* types.h:202:19 */ // Type of file sizes and offsets (LFS). +type X__caddr_t = uintptr /* types.h:203:14 */ + +// Duplicates info from stdint.h but this is used in unistd.h. +type X__intptr_t = int64 /* types.h:206:25 */ + +// Duplicate info from sys/socket.h. +type X__socklen_t = uint32 /* types.h:209:23 */ + +// C99: An integer type that can be accessed as an atomic entity, +// +// even in the presence of asynchronous interrupts. +// It is not currently necessary for this to be machine-specific. +type X__sig_atomic_t = int32 /* types.h:214:13 */ + +// Seconds since the Epoch, visible to user code when time_t is too +// narrow only for consistency with the old way of widening too-narrow +// types. User code should never use __time64_t. + +type U_char = X__u_char /* types.h:33:18 */ +type U_short = X__u_short /* types.h:34:19 */ +type U_int = X__u_int /* types.h:35:17 */ +type U_long = X__u_long /* types.h:36:18 */ +type Quad_t = X__quad_t /* types.h:37:18 */ +type U_quad_t = X__u_quad_t /* types.h:38:20 */ +type Fsid_t = X__fsid_t /* types.h:39:18 */ +type Loff_t = X__loff_t /* types.h:42:18 */ + +type Ino_t = X__ino64_t /* types.h:49:19 */ + +type Dev_t = X__dev_t /* types.h:59:17 */ + +type Gid_t = X__gid_t /* types.h:64:17 */ + +type Mode_t = X__mode_t /* types.h:69:18 */ + +type Nlink_t = X__nlink_t /* types.h:74:19 */ + +type Uid_t = X__uid_t /* types.h:79:17 */ + +type Off_t = X__off64_t /* types.h:87:19 */ + +type Pid_t = X__pid_t /* types.h:97:17 */ + +type Id_t = X__id_t /* types.h:103:16 */ + +type Ssize_t = X__ssize_t /* types.h:108:19 */ + +type Daddr_t = X__daddr_t /* types.h:114:19 */ +type Caddr_t = X__caddr_t /* types.h:115:19 */ + +type Key_t = X__key_t /* types.h:121:17 */ + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Returned by `clock'. +type Clock_t = X__clock_t /* clock_t.h:7:19 */ + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Clock ID used in clock and timer functions. +type Clockid_t = X__clockid_t /* clockid_t.h:7:21 */ + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Returned by `time'. +type Time_t = X__time_t /* time_t.h:7:18 */ + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Timer ID returned by `timer_create'. +type Timer_t = X__timer_t /* timer_t.h:7:19 */ + +// Copyright (C) 1989-2020 Free Software Foundation, Inc. +// +// This file is part of GCC. +// +// GCC is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 3, or (at your option) +// any later version. +// +// GCC is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// Under Section 7 of GPL version 3, you are granted additional +// permissions described in the GCC Runtime Library Exception, version +// 3.1, as published by the Free Software Foundation. +// +// You should have received a copy of the GNU General Public License and +// a copy of the GCC Runtime Library Exception along with this program; +// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see +// . + +// ISO C Standard: 7.17 Common definitions + +// Any one of these symbols __need_* means that GNU libc +// wants us just to define one data type. So don't define +// the symbols that indicate this file's entire job has been done. + +// This avoids lossage on SunOS but only if stdtypes.h comes first. +// There's no way to win with the other order! Sun lossage. + +// Sequent's header files use _PTRDIFF_T_ in some conflicting way. +// Just ignore it. + +// On VxWorks, may have defined macros like +// _TYPE_size_t which will typedef size_t. fixincludes patched the +// vxTypesBase.h so that this macro is only defined if _GCC_SIZE_T is +// not defined, and so that defining this macro defines _GCC_SIZE_T. +// If we find that the macros are still defined at this point, we must +// invoke them so that the type is defined as expected. + +// In case nobody has defined these types, but we aren't running under +// GCC 2.00, make sure that __PTRDIFF_TYPE__, __SIZE_TYPE__, and +// __WCHAR_TYPE__ have reasonable values. This can happen if the +// parts of GCC is compiled by an older compiler, that actually +// include gstddef.h, such as collect2. + +// Signed type of difference of two pointers. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// Unsigned type of `sizeof' something. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// Wide character type. +// Locale-writers should change this as necessary to +// be big enough to hold unique values not between 0 and 127, +// and not (wchar_t) -1, for each defined multibyte character. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// A null pointer constant. + +// Old compatibility names for C types. +type Ulong = uint64 /* types.h:148:27 */ +type Ushort = uint16 /* types.h:149:28 */ +type Uint = uint32 /* types.h:150:22 */ + +// These size-specific names are used by some of the inet code. + +// Define intN_t types. +// Copyright (C) 2017-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +type Int8_t = X__int8_t /* stdint-intn.h:24:18 */ +type Int16_t = X__int16_t /* stdint-intn.h:25:19 */ +type Int32_t = X__int32_t /* stdint-intn.h:26:19 */ +type Int64_t = X__int64_t /* stdint-intn.h:27:19 */ + +// These were defined by ISO C without the first `_'. +type U_int8_t = X__uint8_t /* types.h:158:19 */ +type U_int16_t = X__uint16_t /* types.h:159:20 */ +type U_int32_t = X__uint32_t /* types.h:160:20 */ +type U_int64_t = X__uint64_t /* types.h:161:20 */ + +type Register_t = int32 /* types.h:164:13 */ + +// It also defines `fd_set' and the FD_* macros for `select'. +// `fd_set' type and related macros, and `select'/`pselect' declarations. +// Copyright (C) 1996-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// POSIX 1003.1g: 6.2 Select from File Descriptor Sets + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Get definition of needed basic types. +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Get __FD_* definitions. +// Copyright (C) 1997-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Determine the wordsize from the preprocessor defines. + +// Both x86-64 and x32 use the 64-bit system call interface. + +// Get sigset_t. + +type X__sigset_t = struct{ F__val [16]uint64 } /* __sigset_t.h:8:3 */ + +// A set of signals to be blocked, unblocked, or waited for. +type Sigset_t = X__sigset_t /* sigset_t.h:7:20 */ + +// Get definition of timer specification structures. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// A time value that is accurate to the nearest +// +// microsecond but also has a range of years. +type Timeval = struct { + Ftv_sec X__time_t + Ftv_usec X__suseconds_t +} /* struct_timeval.h:8:1 */ + +// NB: Include guard matches what uses. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Endian macros for string.h functions +// Copyright (C) 1992-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// POSIX.1b structure for a time value. This is like a `struct timeval' but +// +// has nanoseconds instead of microseconds. +type Timespec = struct { + Ftv_sec X__time_t + Ftv_nsec X__syscall_slong_t +} /* struct_timespec.h:10:1 */ + +type Suseconds_t = X__suseconds_t /* select.h:43:23 */ + +// The fd_set member is required to be an array of longs. +type X__fd_mask = int64 /* select.h:49:18 */ + +// Some versions of define this macros. +// It's easier to assume 8-bit bytes than to get CHAR_BIT. + +// fd_set for select and pselect. +type Fd_set = struct{ F__fds_bits [16]X__fd_mask } /* select.h:70:5 */ + +// Maximum number of file descriptors in `fd_set'. + +// Sometimes the fd_set member is assumed to have this type. +type Fd_mask = X__fd_mask /* select.h:77:19 */ + +// Define some inlines helping to catch common problems. + +type Blksize_t = X__blksize_t /* types.h:185:21 */ + +// Types from the Large File Support interface. +type Blkcnt_t = X__blkcnt64_t /* types.h:205:22 */ // Type to count number of disk blocks. +type Fsblkcnt_t = X__fsblkcnt64_t /* types.h:209:24 */ // Type to count file system blocks. +type Fsfilcnt_t = X__fsfilcnt64_t /* types.h:213:24 */ // Type to count file system inodes. + +// Now add the thread types. +// Declaration of common pthread types for all architectures. +// Copyright (C) 2017-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// For internal mutex and condition variable definitions. +// Common threading primitives definitions for both POSIX and C11. +// Copyright (C) 2017-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Arch-specific definitions. Each architecture must define the following +// macros to define the expected sizes of pthread data types: +// +// __SIZEOF_PTHREAD_ATTR_T - size of pthread_attr_t. +// __SIZEOF_PTHREAD_MUTEX_T - size of pthread_mutex_t. +// __SIZEOF_PTHREAD_MUTEXATTR_T - size of pthread_mutexattr_t. +// __SIZEOF_PTHREAD_COND_T - size of pthread_cond_t. +// __SIZEOF_PTHREAD_CONDATTR_T - size of pthread_condattr_t. +// __SIZEOF_PTHREAD_RWLOCK_T - size of pthread_rwlock_t. +// __SIZEOF_PTHREAD_RWLOCKATTR_T - size of pthread_rwlockattr_t. +// __SIZEOF_PTHREAD_BARRIER_T - size of pthread_barrier_t. +// __SIZEOF_PTHREAD_BARRIERATTR_T - size of pthread_barrierattr_t. +// +// The additional macro defines any constraint for the lock alignment +// inside the thread structures: +// +// __LOCK_ALIGNMENT - for internal lock/futex usage. +// +// Same idea but for the once locking primitive: +// +// __ONCE_ALIGNMENT - for pthread_once_t/once_flag definition. + +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Determine the wordsize from the preprocessor defines. + +// Both x86-64 and x32 use the 64-bit system call interface. + +// Common definition of pthread_mutex_t. + +type X__pthread_internal_list = struct { + F__prev uintptr + F__next uintptr +} /* thread-shared-types.h:49:9 */ + +// Type to count file system inodes. + +// Now add the thread types. +// Declaration of common pthread types for all architectures. +// Copyright (C) 2017-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// For internal mutex and condition variable definitions. +// Common threading primitives definitions for both POSIX and C11. +// Copyright (C) 2017-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Arch-specific definitions. Each architecture must define the following +// macros to define the expected sizes of pthread data types: +// +// __SIZEOF_PTHREAD_ATTR_T - size of pthread_attr_t. +// __SIZEOF_PTHREAD_MUTEX_T - size of pthread_mutex_t. +// __SIZEOF_PTHREAD_MUTEXATTR_T - size of pthread_mutexattr_t. +// __SIZEOF_PTHREAD_COND_T - size of pthread_cond_t. +// __SIZEOF_PTHREAD_CONDATTR_T - size of pthread_condattr_t. +// __SIZEOF_PTHREAD_RWLOCK_T - size of pthread_rwlock_t. +// __SIZEOF_PTHREAD_RWLOCKATTR_T - size of pthread_rwlockattr_t. +// __SIZEOF_PTHREAD_BARRIER_T - size of pthread_barrier_t. +// __SIZEOF_PTHREAD_BARRIERATTR_T - size of pthread_barrierattr_t. +// +// The additional macro defines any constraint for the lock alignment +// inside the thread structures: +// +// __LOCK_ALIGNMENT - for internal lock/futex usage. +// +// Same idea but for the once locking primitive: +// +// __ONCE_ALIGNMENT - for pthread_once_t/once_flag definition. + +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Determine the wordsize from the preprocessor defines. + +// Both x86-64 and x32 use the 64-bit system call interface. + +// Common definition of pthread_mutex_t. + +type X__pthread_list_t = X__pthread_internal_list /* thread-shared-types.h:53:3 */ + +type X__pthread_internal_slist = struct{ F__next uintptr } /* thread-shared-types.h:55:9 */ + +type X__pthread_slist_t = X__pthread_internal_slist /* thread-shared-types.h:58:3 */ + +// Arch-specific mutex definitions. A generic implementation is provided +// by sysdeps/nptl/bits/struct_mutex.h. If required, an architecture +// can override it by defining: +// +// 1. struct __pthread_mutex_s (used on both pthread_mutex_t and mtx_t +// definition). It should contains at least the internal members +// defined in the generic version. +// +// 2. __LOCK_ALIGNMENT for any extra attribute for internal lock used with +// atomic operations. +// +// 3. The macro __PTHREAD_MUTEX_INITIALIZER used for static initialization. +// It should initialize the mutex internal flag. + +// x86 internal mutex struct definitions. +// Copyright (C) 2019-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +type X__pthread_mutex_s = struct { + F__lock int32 + F__count uint32 + F__owner int32 + F__nusers uint32 + F__kind int32 + F__spins int16 + F__elision int16 + F__list X__pthread_list_t +} /* struct_mutex.h:22:1 */ + +// Arch-sepecific read-write lock definitions. A generic implementation is +// provided by struct_rwlock.h. If required, an architecture can override it +// by defining: +// +// 1. struct __pthread_rwlock_arch_t (used on pthread_rwlock_t definition). +// It should contain at least the internal members defined in the +// generic version. +// +// 2. The macro __PTHREAD_RWLOCK_INITIALIZER used for static initialization. +// It should initialize the rwlock internal type. + +// x86 internal rwlock struct definitions. +// Copyright (C) 2019-2020 Free Software Foundation, Inc. +// +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +type X__pthread_rwlock_arch_t = struct { + F__readers uint32 + F__writers uint32 + F__wrphase_futex uint32 + F__writers_futex uint32 + F__pad3 uint32 + F__pad4 uint32 + F__cur_writer int32 + F__shared int32 + F__rwelision int8 + F__pad1 [7]uint8 + F__pad2 uint64 + F__flags uint32 + F__ccgo_pad1 [4]byte +} /* struct_rwlock.h:23:1 */ + +// Common definition of pthread_cond_t. + +type X__pthread_cond_s = struct { + F__0 struct{ F__wseq uint64 } + F__8 struct{ F__g1_start uint64 } + F__g_refs [2]uint32 + F__g_size [2]uint32 + F__g1_orig_size uint32 + F__wrefs uint32 + F__g_signals [2]uint32 +} /* thread-shared-types.h:92:1 */ + +// Thread identifiers. The structure of the attribute type is not +// +// exposed on purpose. +type Pthread_t = uint64 /* pthreadtypes.h:27:27 */ + +// Data structures for mutex handling. The structure of the attribute +// +// type is not exposed on purpose. +type Pthread_mutexattr_t = struct { + F__ccgo_pad1 [0]uint32 + F__size [4]int8 +} /* pthreadtypes.h:36:3 */ + +// Data structure for condition variable handling. The structure of +// +// the attribute type is not exposed on purpose. +type Pthread_condattr_t = struct { + F__ccgo_pad1 [0]uint32 + F__size [4]int8 +} /* pthreadtypes.h:45:3 */ + +// Keys for thread-specific data +type Pthread_key_t = uint32 /* pthreadtypes.h:49:22 */ + +// Once-only execution +type Pthread_once_t = int32 /* pthreadtypes.h:53:30 */ + +type Pthread_attr_t1 = struct { + F__ccgo_pad1 [0]uint64 + F__size [56]int8 +} /* pthreadtypes.h:56:1 */ + +type Pthread_attr_t = Pthread_attr_t1 /* pthreadtypes.h:62:30 */ + +type Pthread_mutex_t = struct{ F__data X__pthread_mutex_s } /* pthreadtypes.h:72:3 */ + +type Pthread_cond_t = struct{ F__data X__pthread_cond_s } /* pthreadtypes.h:80:3 */ + +// Data structure for reader-writer lock variable handling. The +// +// structure of the attribute type is deliberately not exposed. +type Pthread_rwlock_t = struct{ F__data X__pthread_rwlock_arch_t } /* pthreadtypes.h:91:3 */ + +type Pthread_rwlockattr_t = struct { + F__ccgo_pad1 [0]uint64 + F__size [8]int8 +} /* pthreadtypes.h:97:3 */ + +// POSIX spinlock data type. +type Pthread_spinlock_t = int32 /* pthreadtypes.h:103:22 */ + +// POSIX barriers data type. The structure of the type is +// +// deliberately not exposed. +type Pthread_barrier_t = struct { + F__ccgo_pad1 [0]uint64 + F__size [32]int8 +} /* pthreadtypes.h:112:3 */ + +type Pthread_barrierattr_t = struct { + F__ccgo_pad1 [0]uint32 + F__size [4]int8 +} /* pthreadtypes.h:118:3 */ + +// Reentrant versions of the `random' family of functions. +// These functions all use the following data structure to contain +// state, rather than global state variables. + +type Random_data = struct { + Ffptr uintptr + Frptr uintptr + Fstate uintptr + Frand_type int32 + Frand_deg int32 + Frand_sep int32 + F__ccgo_pad1 [4]byte + Fend_ptr uintptr +} /* stdlib.h:423:1 */ + +// Data structure for communication with thread safe versions. This +// +// type is to be regarded as opaque. It's only exported because users +// have to allocate objects of this type. +type Drand48_data = struct { + F__x [3]uint16 + F__old_x [3]uint16 + F__c uint16 + F__init uint16 + F__a uint64 +} /* stdlib.h:490:1 */ + +// Shorthand for type of comparison functions. +type X__compar_fn_t = uintptr /* stdlib.h:808:13 */ + +// Floating-point inline functions for stdlib.h. +// Copyright (C) 2012-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Define some macros helping to catch buffer overflows. + +var _ int8 /* gen.c:2:13: */ diff --git a/vendor/modernc.org/libc/straceoff.go b/vendor/modernc.org/libc/straceoff.go new file mode 100644 index 000000000..f955d54b0 --- /dev/null +++ b/vendor/modernc.org/libc/straceoff.go @@ -0,0 +1,10 @@ +// Copyright 2023 The Libc Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build !libc.strace +// +build !libc.strace + +package libc // import "modernc.org/libc" + +const __ccgo_strace = false diff --git a/vendor/modernc.org/libc/straceon.go b/vendor/modernc.org/libc/straceon.go new file mode 100644 index 000000000..ac8c73fb8 --- /dev/null +++ b/vendor/modernc.org/libc/straceon.go @@ -0,0 +1,10 @@ +// Copyright 2023 The Libc Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build libc.strace +// +build libc.strace + +package libc // import "modernc.org/libc" + +const __ccgo_strace = true diff --git a/vendor/modernc.org/libc/surface.new b/vendor/modernc.org/libc/surface.new new file mode 100644 index 000000000..8d722b74e --- /dev/null +++ b/vendor/modernc.org/libc/surface.new @@ -0,0 +1,9310 @@ +ABDAY_1 +ABDAY_2 +ABDAY_3 +ABDAY_4 +ABDAY_5 +ABDAY_6 +ABDAY_7 +ABMON_1 +ABMON_10 +ABMON_11 +ABMON_12 +ABMON_2 +ABMON_3 +ABMON_4 +ABMON_5 +ABMON_6 +ABMON_7 +ABMON_8 +ABMON_9 +ABUF_SIZE +ACCOUNTING +ADD +ADDR_COMPAT_LAYOUT +ADDR_LIMIT_32BIT +ADDR_LIMIT_3GB +ADDR_NO_RANDOMIZE +ADJ_ESTERROR +ADJ_FREQUENCY +ADJ_MAXERROR +ADJ_MICRO +ADJ_NANO +ADJ_OFFSET +ADJ_OFFSET_SINGLESHOT +ADJ_OFFSET_SS_READ +ADJ_SETOFFSET +ADJ_STATUS +ADJ_TAI +ADJ_TICK +ADJ_TIMECONST +AF_ALG +AF_APPLETALK +AF_ASH +AF_ATMPVC +AF_ATMSVC +AF_AX25 +AF_BLUETOOTH +AF_BRIDGE +AF_CAIF +AF_CAN +AF_DECnet +AF_ECONET +AF_FILE +AF_IB +AF_IEEE802154 +AF_INET +AF_INET6 +AF_IPX +AF_IRDA +AF_ISDN +AF_IUCV +AF_KCM +AF_KEY +AF_LLC +AF_LOCAL +AF_MAX +AF_MPLS +AF_NETBEUI +AF_NETLINK +AF_NETROM +AF_NFC +AF_PACKET +AF_PHONET +AF_PPPOX +AF_QIPCRTR +AF_RDS +AF_ROSE +AF_ROUTE +AF_RXRPC +AF_SECURITY +AF_SMC +AF_SNA +AF_TIPC +AF_UNIX +AF_UNSPEC +AF_VSOCK +AF_WANPIPE +AF_X25 +AF_XDP +AI_ADDRCONFIG +AI_ALL +AI_CANONNAME +AI_NUMERICHOST +AI_NUMERICSERV +AI_PASSIVE +AI_V4MAPPED +ALIGN +ALIGN1 +ALIGN2 +ALIGN3 +ALIGN4 +ALIGN5 +ALIGN6 +ALT_DIGITS +ALT_FORM +AM_STR +ARG_MAX +ARPD_FLUSH +ARPD_LOOKUP +ARPD_UPDATE +ARPHRD_6LOWPAN +ARPHRD_ADAPT +ARPHRD_APPLETLK +ARPHRD_ARCNET +ARPHRD_ASH +ARPHRD_ATM +ARPHRD_AX25 +ARPHRD_BIF +ARPHRD_CAIF +ARPHRD_CAN +ARPHRD_CHAOS +ARPHRD_CISCO +ARPHRD_CSLIP +ARPHRD_CSLIP6 +ARPHRD_DDCMP +ARPHRD_DLCI +ARPHRD_ECONET +ARPHRD_EETHER +ARPHRD_ETHER +ARPHRD_EUI64 +ARPHRD_FCAL +ARPHRD_FCFABRIC +ARPHRD_FCPL +ARPHRD_FCPP +ARPHRD_FDDI +ARPHRD_FRAD +ARPHRD_HDLC +ARPHRD_HIPPI +ARPHRD_HWX25 +ARPHRD_IEEE1394 +ARPHRD_IEEE802 +ARPHRD_IEEE80211 +ARPHRD_IEEE80211_PRISM +ARPHRD_IEEE80211_RADIOTAP +ARPHRD_IEEE802154 +ARPHRD_IEEE802154_MONITOR +ARPHRD_IEEE802_TR +ARPHRD_INFINIBAND +ARPHRD_IP6GRE +ARPHRD_IPDDP +ARPHRD_IPGRE +ARPHRD_IRDA +ARPHRD_LAPB +ARPHRD_LOCALTLK +ARPHRD_LOOPBACK +ARPHRD_METRICOM +ARPHRD_NETLINK +ARPHRD_NETROM +ARPHRD_NONE +ARPHRD_PHONET +ARPHRD_PHONET_PIPE +ARPHRD_PIMREG +ARPHRD_PPP +ARPHRD_PRONET +ARPHRD_RAWHDLC +ARPHRD_RAWIP +ARPHRD_ROSE +ARPHRD_RSRVD +ARPHRD_SIT +ARPHRD_SKIP +ARPHRD_SLIP +ARPHRD_SLIP6 +ARPHRD_TUNNEL +ARPHRD_TUNNEL6 +ARPHRD_VOID +ARPHRD_VSOCKMON +ARPHRD_X25 +ARPOP_InREPLY +ARPOP_InREQUEST +ARPOP_NAK +ARPOP_REPLY +ARPOP_REQUEST +ARPOP_RREPLY +ARPOP_RREQUEST +ASSERTION +ASSERT_AT_BOL +ASSERT_AT_BOW +ASSERT_AT_EOL +ASSERT_AT_EOW +ASSERT_AT_WB +ASSERT_AT_WB_NEG +ASSERT_BACKREF +ASSERT_CHAR_CLASS +ASSERT_CHAR_CLASS_NEG +ASSERT_LAST +ATF_COM +ATF_DONTPUB +ATF_MAGIC +ATF_NETMASK +ATF_PERM +ATF_PUBL +ATF_USETRAILERS +AT_BASE +AT_BASE_PLATFORM +AT_CLKTCK +AT_DCACHEBSIZE +AT_EACCESS +AT_EGID +AT_EMPTY_PATH +AT_ENTRY +AT_EUID +AT_EXECFD +AT_EXECFN +AT_FDCWD +AT_FLAGS +AT_FPUCW +AT_GID +AT_HWCAP +AT_HWCAP2 +AT_ICACHEBSIZE +AT_IGNORE +AT_IGNOREPPC +AT_L1D_CACHEGEOMETRY +AT_L1D_CACHESHAPE +AT_L1D_CACHESIZE +AT_L1I_CACHEGEOMETRY +AT_L1I_CACHESHAPE +AT_L1I_CACHESIZE +AT_L2_CACHEGEOMETRY +AT_L2_CACHESHAPE +AT_L2_CACHESIZE +AT_L3_CACHEGEOMETRY +AT_L3_CACHESHAPE +AT_L3_CACHESIZE +AT_MINSIGSTKSZ +AT_NOTELF +AT_NO_AUTOMOUNT +AT_NULL +AT_PAGESZ +AT_PHDR +AT_PHENT +AT_PHNUM +AT_PLATFORM +AT_RANDOM +AT_RECURSIVE +AT_REMOVEDIR +AT_SECURE +AT_STATX_DONT_SYNC +AT_STATX_FORCE_SYNC +AT_STATX_SYNC_AS_STAT +AT_STATX_SYNC_TYPE +AT_SYMLINK_FOLLOW +AT_SYMLINK_NOFOLLOW +AT_SYSINFO +AT_SYSINFO_EHDR +AT_UCACHEBSIZE +AT_UID +AssignAddComplex128 +AssignAddComplex64 +AssignAddFloat32 +AssignAddFloat64 +AssignAddInt16 +AssignAddInt32 +AssignAddInt64 +AssignAddInt8 +AssignAddPtrComplex128 +AssignAddPtrComplex64 +AssignAddPtrFloat32 +AssignAddPtrFloat64 +AssignAddPtrInt16 +AssignAddPtrInt32 +AssignAddPtrInt64 +AssignAddPtrInt8 +AssignAddPtrUint16 +AssignAddPtrUint32 +AssignAddPtrUint64 +AssignAddPtrUint8 +AssignAddPtrUintptr +AssignAddUint16 +AssignAddUint32 +AssignAddUint64 +AssignAddUint8 +AssignAddUintptr +AssignAndInt16 +AssignAndInt32 +AssignAndInt64 +AssignAndInt8 +AssignAndPtrInt16 +AssignAndPtrInt32 +AssignAndPtrInt64 +AssignAndPtrInt8 +AssignAndPtrUint16 +AssignAndPtrUint32 +AssignAndPtrUint64 +AssignAndPtrUint8 +AssignAndPtrUintptr +AssignAndUint16 +AssignAndUint32 +AssignAndUint64 +AssignAndUint8 +AssignAndUintptr +AssignBitFieldPtr16Int16 +AssignBitFieldPtr16Int32 +AssignBitFieldPtr16Int64 +AssignBitFieldPtr16Int8 +AssignBitFieldPtr16Uint16 +AssignBitFieldPtr16Uint32 +AssignBitFieldPtr16Uint64 +AssignBitFieldPtr16Uint8 +AssignBitFieldPtr32Int16 +AssignBitFieldPtr32Int32 +AssignBitFieldPtr32Int64 +AssignBitFieldPtr32Int8 +AssignBitFieldPtr32Uint16 +AssignBitFieldPtr32Uint32 +AssignBitFieldPtr32Uint64 +AssignBitFieldPtr32Uint8 +AssignBitFieldPtr64Int16 +AssignBitFieldPtr64Int32 +AssignBitFieldPtr64Int64 +AssignBitFieldPtr64Int8 +AssignBitFieldPtr64Uint16 +AssignBitFieldPtr64Uint32 +AssignBitFieldPtr64Uint64 +AssignBitFieldPtr64Uint8 +AssignBitFieldPtr8Int16 +AssignBitFieldPtr8Int32 +AssignBitFieldPtr8Int64 +AssignBitFieldPtr8Int8 +AssignBitFieldPtr8Uint16 +AssignBitFieldPtr8Uint32 +AssignBitFieldPtr8Uint64 +AssignBitFieldPtr8Uint8 +AssignComplex128 +AssignComplex64 +AssignDivComplex128 +AssignDivComplex64 +AssignDivFloat32 +AssignDivFloat64 +AssignDivInt16 +AssignDivInt32 +AssignDivInt64 +AssignDivInt8 +AssignDivPtrComplex128 +AssignDivPtrComplex64 +AssignDivPtrFloat32 +AssignDivPtrFloat64 +AssignDivPtrInt16 +AssignDivPtrInt32 +AssignDivPtrInt64 +AssignDivPtrInt8 +AssignDivPtrUint16 +AssignDivPtrUint32 +AssignDivPtrUint64 +AssignDivPtrUint8 +AssignDivPtrUintptr +AssignDivUint16 +AssignDivUint32 +AssignDivUint64 +AssignDivUint8 +AssignDivUintptr +AssignFloat32 +AssignFloat64 +AssignInt16 +AssignInt32 +AssignInt64 +AssignInt8 +AssignMulComplex128 +AssignMulComplex64 +AssignMulFloat32 +AssignMulFloat64 +AssignMulInt16 +AssignMulInt32 +AssignMulInt64 +AssignMulInt8 +AssignMulPtrComplex128 +AssignMulPtrComplex64 +AssignMulPtrFloat32 +AssignMulPtrFloat64 +AssignMulPtrInt16 +AssignMulPtrInt32 +AssignMulPtrInt64 +AssignMulPtrInt8 +AssignMulPtrUint16 +AssignMulPtrUint32 +AssignMulPtrUint64 +AssignMulPtrUint8 +AssignMulPtrUintptr +AssignMulUint16 +AssignMulUint32 +AssignMulUint64 +AssignMulUint8 +AssignMulUintptr +AssignOrInt16 +AssignOrInt32 +AssignOrInt64 +AssignOrInt8 +AssignOrPtrInt16 +AssignOrPtrInt32 +AssignOrPtrInt64 +AssignOrPtrInt8 +AssignOrPtrUint16 +AssignOrPtrUint32 +AssignOrPtrUint64 +AssignOrPtrUint8 +AssignOrPtrUintptr +AssignOrUint16 +AssignOrUint32 +AssignOrUint64 +AssignOrUint8 +AssignOrUintptr +AssignPtrComplex128 +AssignPtrComplex64 +AssignPtrFloat32 +AssignPtrFloat64 +AssignPtrInt16 +AssignPtrInt32 +AssignPtrInt64 +AssignPtrInt8 +AssignPtrUint16 +AssignPtrUint32 +AssignPtrUint64 +AssignPtrUint8 +AssignPtrUintptr +AssignRemInt16 +AssignRemInt32 +AssignRemInt64 +AssignRemInt8 +AssignRemPtrInt16 +AssignRemPtrInt32 +AssignRemPtrInt64 +AssignRemPtrInt8 +AssignRemPtrUint16 +AssignRemPtrUint32 +AssignRemPtrUint64 +AssignRemPtrUint8 +AssignRemPtrUintptr +AssignRemUint16 +AssignRemUint32 +AssignRemUint64 +AssignRemUint8 +AssignRemUintptr +AssignShlInt16 +AssignShlInt32 +AssignShlInt64 +AssignShlInt8 +AssignShlPtrInt16 +AssignShlPtrInt32 +AssignShlPtrInt64 +AssignShlPtrInt8 +AssignShlPtrUint16 +AssignShlPtrUint32 +AssignShlPtrUint64 +AssignShlPtrUint8 +AssignShlPtrUintptr +AssignShlUint16 +AssignShlUint32 +AssignShlUint64 +AssignShlUint8 +AssignShlUintptr +AssignShrInt16 +AssignShrInt32 +AssignShrInt64 +AssignShrInt8 +AssignShrPtrInt16 +AssignShrPtrInt32 +AssignShrPtrInt64 +AssignShrPtrInt8 +AssignShrPtrUint16 +AssignShrPtrUint32 +AssignShrPtrUint64 +AssignShrPtrUint8 +AssignShrPtrUintptr +AssignShrUint16 +AssignShrUint32 +AssignShrUint64 +AssignShrUint8 +AssignShrUintptr +AssignSubComplex128 +AssignSubComplex64 +AssignSubFloat32 +AssignSubFloat64 +AssignSubInt16 +AssignSubInt32 +AssignSubInt64 +AssignSubInt8 +AssignSubPtrComplex128 +AssignSubPtrComplex64 +AssignSubPtrFloat32 +AssignSubPtrFloat64 +AssignSubPtrInt16 +AssignSubPtrInt32 +AssignSubPtrInt64 +AssignSubPtrInt8 +AssignSubPtrUint16 +AssignSubPtrUint32 +AssignSubPtrUint64 +AssignSubPtrUint8 +AssignSubPtrUintptr +AssignSubUint16 +AssignSubUint32 +AssignSubUint64 +AssignSubUint8 +AssignSubUintptr +AssignUint16 +AssignUint32 +AssignUint64 +AssignUint8 +AssignUintptr +AssignXorInt16 +AssignXorInt32 +AssignXorInt64 +AssignXorInt8 +AssignXorPtrInt16 +AssignXorPtrInt32 +AssignXorPtrInt64 +AssignXorPtrInt8 +AssignXorPtrUint16 +AssignXorPtrUint32 +AssignXorPtrUint64 +AssignXorPtrUint8 +AssignXorPtrUintptr +AssignXorUint16 +AssignXorUint32 +AssignXorUint64 +AssignXorUint8 +AssignXorUintptr +AtExit +AtomicAddFloat32 +AtomicAddFloat64 +AtomicAddInt32 +AtomicAddInt64 +AtomicAddUint32 +AtomicAddUint64 +AtomicAddUintptr +AtomicLoadFloat32 +AtomicLoadFloat64 +AtomicLoadInt32 +AtomicLoadInt64 +AtomicLoadNInt32 +AtomicLoadNInt64 +AtomicLoadNUint16 +AtomicLoadNUint32 +AtomicLoadNUint64 +AtomicLoadNUint8 +AtomicLoadNUintptr +AtomicLoadPFloat32 +AtomicLoadPFloat64 +AtomicLoadPInt16 +AtomicLoadPInt32 +AtomicLoadPInt64 +AtomicLoadPInt8 +AtomicLoadPUint16 +AtomicLoadPUint32 +AtomicLoadPUint64 +AtomicLoadPUint8 +AtomicLoadPUintptr +AtomicLoadUint32 +AtomicLoadUint64 +AtomicLoadUintptr +AtomicStoreFloat32 +AtomicStoreFloat64 +AtomicStoreInt32 +AtomicStoreInt64 +AtomicStoreNInt32 +AtomicStoreNInt64 +AtomicStoreNUint16 +AtomicStoreNUint32 +AtomicStoreNUint64 +AtomicStoreNUint8 +AtomicStoreNUintptr +AtomicStorePFloat32 +AtomicStorePFloat64 +AtomicStorePInt32 +AtomicStorePInt64 +AtomicStorePInt8 +AtomicStorePUint32 +AtomicStorePUint64 +AtomicStorePUint8 +AtomicStorePUintptr +AtomicStoreUint32 +AtomicStoreUint64 +AtomicStoreUintptr +B0 +B1000000 +B110 +B115200 +B1152000 +B1200 +B134 +B150 +B1500000 +B1800 +B19200 +B200 +B2000000 +B230400 +B2400 +B2500000 +B300 +B3000000 +B3500000 +B38400 +B4000000 +B460800 +B4800 +B50 +B500000 +B57600 +B576000 +B600 +B75 +B921600 +B9600 +BACKREF +BC_BASE_MAX +BC_DIM_MAX +BC_SCALE_MAX +BC_STRING_MAX +BF_N +BIG5 +BIG_ENDIAN +BLKBSZGET +BLKBSZSET +BLKFLSBUF +BLKFRAGET +BLKFRASET +BLKGETSIZE +BLKGETSIZE64 +BLKRAGET +BLKRASET +BLKROGET +BLKROSET +BLKRRPART +BLKSECTGET +BLKSECTSET +BLKSSZGET +BOOT_TIME +BRACKET +BRKINT +BS0 +BS1 +BSDLY +BUFSIZ +BUS_ADRALN +BUS_ADRERR +BUS_MCEERR_AO +BUS_MCEERR_AR +BUS_OBJERR +BYTE_ORDER +Bool +Bool32 +Bool64 +BoolInt16 +BoolInt32 +BoolInt64 +BoolInt8 +BoolUint16 +BoolUint32 +BoolUint64 +BoolUint8 +BoolUintptr +CAPI +CBAUD +CBAUDEX +CHARCLASS_NAME_MAX +CHAR_BIT +CHAR_MAX +CHAR_MIN +CIBAUD +CLD_CONTINUED +CLD_DUMPED +CLD_EXITED +CLD_KILLED +CLD_STOPPED +CLD_TRAPPED +CLOCAL +CLOCKS_PER_SEC +CLOCK_BOOTTIME +CLOCK_BOOTTIME_ALARM +CLOCK_MONOTONIC +CLOCK_MONOTONIC_COARSE +CLOCK_MONOTONIC_RAW +CLOCK_PROCESS_CPUTIME_ID +CLOCK_REALTIME +CLOCK_REALTIME_ALARM +CLOCK_REALTIME_COARSE +CLOCK_SGI_CYCLE +CLOCK_TAI +CLOCK_THREAD_CPUTIME_ID +CLONE_CHILD_CLEARTID +CLONE_CHILD_SETTID +CLONE_DETACHED +CLONE_FILES +CLONE_FS +CLONE_IO +CLONE_NEWCGROUP +CLONE_NEWIPC +CLONE_NEWNET +CLONE_NEWNS +CLONE_NEWPID +CLONE_NEWTIME +CLONE_NEWUSER +CLONE_NEWUTS +CLONE_PARENT +CLONE_PARENT_SETTID +CLONE_PIDFD +CLONE_PTRACE +CLONE_SETTLS +CLONE_SIGHAND +CLONE_SYSVSEM +CLONE_THREAD +CLONE_UNTRACED +CLONE_VFORK +CLONE_VM +CMSPAR +CODESET +COLL_WEIGHTS_MAX +COPY_MAXIMIZE_FIRST_TAG +COPY_REMOVE_TAGS +COUNT +CPU_SETSIZE +CR0 +CR1 +CR2 +CR3 +CRDLY +CREAD +CRNCYSTR +CRTSCTS +CS5 +CS6 +CS7 +CS8 +CSIGNAL +CSIZE +CSTOPB +CString +C_ANY +C_CHAOS +C_HS +C_IN +C_LOCALE +C_NONE +Complex128 +Complex128FromComplex128 +Complex128FromComplex64 +Complex128FromFloat32 +Complex128FromFloat64 +Complex128FromInt16 +Complex128FromInt32 +Complex128FromInt64 +Complex128FromInt8 +Complex128FromUint16 +Complex128FromUint32 +Complex128FromUint64 +Complex128FromUint8 +Complex128FromUintptr +Complex64 +Complex64FromComplex128 +Complex64FromComplex64 +Complex64FromFloat32 +Complex64FromFloat64 +Complex64FromInt16 +Complex64FromInt32 +Complex64FromInt64 +Complex64FromInt8 +Complex64FromUint16 +Complex64FromUint32 +Complex64FromUint64 +Complex64FromUint8 +Complex64FromUintptr +Cover +CoverC +CoverCReport +CoverReport +Covered +CoveredC +CplInt16 +CplInt32 +CplInt64 +CplInt8 +CplUint16 +CplUint32 +CplUint64 +CplUint8 +CplUintptr +DAS_MATCHINGLABEL +DAS_MATCHINGSCOPE +DAS_ORDER_SHIFT +DAS_PREC_SHIFT +DAS_PREFIX_SHIFT +DAS_SCOPE_SHIFT +DAS_USABLE +DAYS_PER_100Y +DAYS_PER_400Y +DAYS_PER_4Y +DAY_1 +DAY_2 +DAY_3 +DAY_4 +DAY_5 +DAY_6 +DAY_7 +DBL_DECIMAL_DIG +DBL_DIG +DBL_EPSILON +DBL_EPSILON1 +DBL_EPSILON10 +DBL_EPSILON11 +DBL_EPSILON12 +DBL_EPSILON2 +DBL_EPSILON3 +DBL_EPSILON4 +DBL_EPSILON5 +DBL_EPSILON6 +DBL_EPSILON7 +DBL_EPSILON8 +DBL_EPSILON9 +DBL_HAS_SUBNORM +DBL_MANT_DIG +DBL_MAX +DBL_MAX_10_EXP +DBL_MAX_EXP +DBL_MIN +DBL_MIN1 +DBL_MIN2 +DBL_MIN_10_EXP +DBL_MIN_EXP +DBL_TRUE_MIN +DEAD_PROCESS +DECIMAL_DIG +DEFAULT_GUARD_MAX +DEFAULT_GUARD_SIZE +DEFAULT_STACK_MAX +DEFAULT_STACK_SIZE +DELAYTIMER_MAX +DELETE +DF_1_CONFALT +DF_1_DIRECT +DF_1_DISPRELDNE +DF_1_DISPRELPND +DF_1_EDITED +DF_1_ENDFILTEE +DF_1_GLOBAL +DF_1_GLOBAUDIT +DF_1_GROUP +DF_1_IGNMULDEF +DF_1_INITFIRST +DF_1_INTERPOSE +DF_1_LOADFLTR +DF_1_NODEFLIB +DF_1_NODELETE +DF_1_NODIRECT +DF_1_NODUMP +DF_1_NOHDR +DF_1_NOKSYMS +DF_1_NOOPEN +DF_1_NORELOC +DF_1_NOW +DF_1_ORIGIN +DF_1_PIE +DF_1_SINGLETON +DF_1_STUB +DF_1_SYMINTPOSE +DF_1_TRANS +DF_BIND_NOW +DF_ORIGIN +DF_P1_GROUPPERM +DF_P1_LAZYLOAD +DF_STATIC_TLS +DF_SYMBOLIC +DF_TEXTREL +DIR +DN_ACCESS +DN_ATTRIB +DN_CREATE +DN_DELETE +DN_MODIFY +DN_MULTISHOT +DN_RENAME +DTF_1_CONFEXP +DTF_1_PARINIT +DTP_OFFSET +DT_ADDRNUM +DT_ADDRRNGHI +DT_ADDRRNGLO +DT_ALPHA_NUM +DT_ALPHA_PLTRO +DT_AUDIT +DT_AUXILIARY +DT_BIND_NOW +DT_BLK +DT_CHECKSUM +DT_CHR +DT_CONFIG +DT_DEBUG +DT_DEPAUDIT +DT_DETACHED +DT_DIR +DT_ENCODING +DT_EXITING +DT_EXTRANUM +DT_FEATURE_1 +DT_FIFO +DT_FILTER +DT_FINI +DT_FINI_ARRAY +DT_FINI_ARRAYSZ +DT_FLAGS +DT_FLAGS_1 +DT_GNU_CONFLICT +DT_GNU_CONFLICTSZ +DT_GNU_HASH +DT_GNU_LIBLIST +DT_GNU_LIBLISTSZ +DT_GNU_PRELINKED +DT_HASH +DT_HIOS +DT_HIPROC +DT_IA_64_NUM +DT_IA_64_PLT_RESERVE +DT_INIT +DT_INIT_ARRAY +DT_INIT_ARRAYSZ +DT_JMPREL +DT_JOINABLE +DT_LNK +DT_LOOS +DT_LOPROC +DT_MIPS_AUX_DYNAMIC +DT_MIPS_BASE_ADDRESS +DT_MIPS_COMPACT_SIZE +DT_MIPS_CONFLICT +DT_MIPS_CONFLICTNO +DT_MIPS_CXX_FLAGS +DT_MIPS_DELTA_CLASS +DT_MIPS_DELTA_CLASSSYM +DT_MIPS_DELTA_CLASSSYM_NO +DT_MIPS_DELTA_CLASS_NO +DT_MIPS_DELTA_INSTANCE +DT_MIPS_DELTA_INSTANCE_NO +DT_MIPS_DELTA_RELOC +DT_MIPS_DELTA_RELOC_NO +DT_MIPS_DELTA_SYM +DT_MIPS_DELTA_SYM_NO +DT_MIPS_DYNSTR_ALIGN +DT_MIPS_FLAGS +DT_MIPS_GOTSYM +DT_MIPS_GP_VALUE +DT_MIPS_HIDDEN_GOTIDX +DT_MIPS_HIPAGENO +DT_MIPS_ICHECKSUM +DT_MIPS_INTERFACE +DT_MIPS_INTERFACE_SIZE +DT_MIPS_IVERSION +DT_MIPS_LIBLIST +DT_MIPS_LIBLISTNO +DT_MIPS_LOCALPAGE_GOTIDX +DT_MIPS_LOCAL_GOTIDX +DT_MIPS_LOCAL_GOTNO +DT_MIPS_MSYM +DT_MIPS_NUM +DT_MIPS_OPTIONS +DT_MIPS_PERF_SUFFIX +DT_MIPS_PIXIE_INIT +DT_MIPS_PLTGOT +DT_MIPS_PROTECTED_GOTIDX +DT_MIPS_RLD_MAP +DT_MIPS_RLD_MAP_REL +DT_MIPS_RLD_TEXT_RESOLVE_ADDR +DT_MIPS_RLD_VERSION +DT_MIPS_RWPLT +DT_MIPS_SYMBOL_LIB +DT_MIPS_SYMTABNO +DT_MIPS_TIME_STAMP +DT_MIPS_UNREFEXTNO +DT_MOVEENT +DT_MOVESZ +DT_MOVETAB +DT_NEEDED +DT_NIOS2_GP +DT_NULL +DT_NUM +DT_PLTGOT +DT_PLTPAD +DT_PLTPADSZ +DT_PLTREL +DT_PLTRELSZ +DT_POSFLAG_1 +DT_PPC64_GLINK +DT_PPC64_NUM +DT_PPC64_OPD +DT_PPC64_OPDSZ +DT_PPC64_OPT +DT_PPC_GOT +DT_PPC_NUM +DT_PPC_OPT +DT_PREINIT_ARRAY +DT_PREINIT_ARRAYSZ +DT_PROCNUM +DT_REG +DT_REL +DT_RELA +DT_RELACOUNT +DT_RELAENT +DT_RELASZ +DT_RELCOUNT +DT_RELENT +DT_RELR +DT_RELRENT +DT_RELRSZ +DT_RELSZ +DT_RPATH +DT_RUNPATH +DT_SOCK +DT_SONAME +DT_SPARC_NUM +DT_SPARC_REGISTER +DT_STRSZ +DT_STRTAB +DT_SYMBOLIC +DT_SYMENT +DT_SYMINENT +DT_SYMINFO +DT_SYMINSZ +DT_SYMTAB +DT_SYMTAB_SHNDX +DT_TEXTREL +DT_TLSDESC_GOT +DT_TLSDESC_PLT +DT_UNKNOWN +DT_VALNUM +DT_VALRNGHI +DT_VALRNGLO +DT_VERDEF +DT_VERDEFNUM +DT_VERNEED +DT_VERNEEDNUM +DT_VERSIONTAGNUM +DT_VERSYM +DT_WHT +D_FMT +D_T_FMT +Dmesg +E2BIG +EACCES +EADDRINUSE +EADDRNOTAVAIL +EADV +EAFNOSUPPORT +EAGAIN +EAI_ADDRFAMILY +EAI_AGAIN +EAI_ALLDONE +EAI_BADFLAGS +EAI_CANCELED +EAI_FAIL +EAI_FAMILY +EAI_IDN_ENCODE +EAI_INPROGRESS +EAI_INTR +EAI_MEMORY +EAI_NODATA +EAI_NONAME +EAI_NOTCANCELED +EAI_OVERFLOW +EAI_SERVICE +EAI_SOCKTYPE +EAI_SYSTEM +EALREADY +EBADE +EBADF +EBADFD +EBADMSG +EBADR +EBADRQC +EBADSLT +EBFONT +EBUSY +ECANCELED +ECHILD +ECHO +ECHOCTL +ECHOE +ECHOK +ECHOKE +ECHONL +ECHOPRT +ECHRNG +ECOMM +ECONNABORTED +ECONNREFUSED +ECONNRESET +EDEADLK +EDEADLOCK +EDESTADDRREQ +EDOM +EDOTDOT +EDQUOT +EEXIST +EFAULT +EFA_PARISC_1_0 +EFA_PARISC_1_1 +EFA_PARISC_2_0 +EFBIG +EFD_CLOEXEC +EFD_NONBLOCK +EFD_SEMAPHORE +EF_ALPHA_32BIT +EF_ALPHA_CANRELAX +EF_ARM_ABI_FLOAT_HARD +EF_ARM_ABI_FLOAT_SOFT +EF_ARM_ALIGN8 +EF_ARM_APCS_26 +EF_ARM_APCS_FLOAT +EF_ARM_BE8 +EF_ARM_DYNSYMSUSESEGIDX +EF_ARM_EABIMASK +EF_ARM_EABI_UNKNOWN +EF_ARM_EABI_VER1 +EF_ARM_EABI_VER2 +EF_ARM_EABI_VER3 +EF_ARM_EABI_VER4 +EF_ARM_EABI_VER5 +EF_ARM_HASENTRY +EF_ARM_INTERWORK +EF_ARM_LE8 +EF_ARM_MAPSYMSFIRST +EF_ARM_MAVERICK_FLOAT +EF_ARM_NEW_ABI +EF_ARM_OLD_ABI +EF_ARM_PIC +EF_ARM_RELEXEC +EF_ARM_SOFT_FLOAT +EF_ARM_SYMSARESORTED +EF_ARM_VFP_FLOAT +EF_CPU32 +EF_IA_64_ABI64 +EF_IA_64_ARCH +EF_IA_64_MASKOS +EF_LARCH_ABI_DOUBLE_FLOAT +EF_LARCH_ABI_MODIFIER_MASK +EF_LARCH_ABI_SINGLE_FLOAT +EF_LARCH_ABI_SOFT_FLOAT +EF_LARCH_OBJABI_V1 +EF_MIPS_64BIT_WHIRL +EF_MIPS_ABI2 +EF_MIPS_ABI_ON32 +EF_MIPS_ARCH +EF_MIPS_ARCH_1 +EF_MIPS_ARCH_2 +EF_MIPS_ARCH_3 +EF_MIPS_ARCH_32 +EF_MIPS_ARCH_32R2 +EF_MIPS_ARCH_4 +EF_MIPS_ARCH_5 +EF_MIPS_ARCH_64 +EF_MIPS_ARCH_64R2 +EF_MIPS_CPIC +EF_MIPS_FP64 +EF_MIPS_NAN2008 +EF_MIPS_NOREORDER +EF_MIPS_PIC +EF_MIPS_XGOT +EF_PARISC_ARCH +EF_PARISC_EXT +EF_PARISC_LAZYSWAP +EF_PARISC_LSB +EF_PARISC_NO_KABP +EF_PARISC_TRAPNIL +EF_PARISC_WIDE +EF_PPC64_ABI +EF_PPC_EMB +EF_PPC_RELOCATABLE +EF_PPC_RELOCATABLE_LIB +EF_SH1 +EF_SH2 +EF_SH2A +EF_SH2A_NOFPU +EF_SH2A_SH3E +EF_SH2A_SH3_NOFPU +EF_SH2A_SH4 +EF_SH2A_SH4_NOFPU +EF_SH2E +EF_SH3 +EF_SH3E +EF_SH3_DSP +EF_SH3_NOMMU +EF_SH4 +EF_SH4A +EF_SH4AL_DSP +EF_SH4A_NOFPU +EF_SH4_NOFPU +EF_SH4_NOMMU_NOFPU +EF_SH_DSP +EF_SH_MACH_MASK +EF_SH_UNKNOWN +EF_SPARCV9_MM +EF_SPARCV9_PSO +EF_SPARCV9_RMO +EF_SPARCV9_TSO +EF_SPARC_32PLUS +EF_SPARC_EXT_MASK +EF_SPARC_HAL_R1 +EF_SPARC_LEDATA +EF_SPARC_SUN_US1 +EF_SPARC_SUN_US3 +EHOSTDOWN +EHOSTUNREACH +EHWPOISON +EIDRM +EILSEQ +EINPROGRESS +EINTR +EINVAL +EIO +EISCONN +EISDIR +EISNAM +EI_ABIVERSION +EI_CLASS +EI_DATA +EI_MAG0 +EI_MAG1 +EI_MAG2 +EI_MAG3 +EI_NIDENT +EI_OSABI +EI_PAD +EI_VERSION +EKEYEXPIRED +EKEYREJECTED +EKEYREVOKED +EL2HLT +EL2NSYNC +EL3HLT +EL3RST +ELFCLASS32 +ELFCLASS64 +ELFCLASSNONE +ELFCLASSNUM +ELFCOMPRESS_HIOS +ELFCOMPRESS_HIPROC +ELFCOMPRESS_LOOS +ELFCOMPRESS_LOPROC +ELFCOMPRESS_ZLIB +ELFCOMPRESS_ZSTD +ELFDATA2LSB +ELFDATA2MSB +ELFDATANONE +ELFDATANUM +ELFMAG +ELFMAG0 +ELFMAG1 +ELFMAG2 +ELFMAG3 +ELFOSABI_AIX +ELFOSABI_ARM +ELFOSABI_FREEBSD +ELFOSABI_GNU +ELFOSABI_HPUX +ELFOSABI_IRIX +ELFOSABI_LINUX +ELFOSABI_MODESTO +ELFOSABI_NETBSD +ELFOSABI_NONE +ELFOSABI_OPENBSD +ELFOSABI_SOLARIS +ELFOSABI_STANDALONE +ELFOSABI_SYSV +ELFOSABI_TRU64 +ELF_NOTE_ABI +ELF_NOTE_GNU +ELF_NOTE_OS_FREEBSD +ELF_NOTE_OS_GNU +ELF_NOTE_OS_LINUX +ELF_NOTE_OS_SOLARIS2 +ELF_NOTE_PAGESIZE_HINT +ELF_NOTE_SOLARIS +ELIBACC +ELIBBAD +ELIBEXEC +ELIBMAX +ELIBSCN +ELNRNG +ELOOP +EMEDIUMTYPE +EMFILE +EMLINK +EMPTY +EMPTY1 +EMSGSIZE +EMULTIHOP +EM_386 +EM_56800EX +EM_68HC05 +EM_68HC08 +EM_68HC11 +EM_68HC12 +EM_68HC16 +EM_68K +EM_78KOR +EM_8051 +EM_860 +EM_88K +EM_960 +EM_AARCH64 +EM_ALPHA +EM_ALTERA_NIOS2 +EM_AMDGPU +EM_ARC +EM_ARCA +EM_ARC_A5 +EM_ARC_COMPACT +EM_ARC_COMPACT2 +EM_ARM +EM_AVR +EM_AVR32 +EM_BA1 +EM_BA2 +EM_BLACKFIN +EM_BPF +EM_C166 +EM_CDP +EM_CE +EM_CLOUDSHIELD +EM_COGE +EM_COLDFIRE +EM_COOL +EM_COREA_1ST +EM_COREA_2ND +EM_CR +EM_CR16 +EM_CRAYNV2 +EM_CRIS +EM_CRX +EM_CSKY +EM_CSR_KALIMBA +EM_CUDA +EM_CYPRESS_M8C +EM_D10V +EM_D30V +EM_DSP24 +EM_DSPIC30F +EM_DXP +EM_ECOG16 +EM_ECOG1X +EM_ECOG2 +EM_EMX16 +EM_EMX8 +EM_ETPU +EM_EXCESS +EM_F2MC16 +EM_FAKE_ALPHA +EM_FIREPATH +EM_FR20 +EM_FR30 +EM_FT32 +EM_FX66 +EM_H8S +EM_H8_300 +EM_H8_300H +EM_H8_500 +EM_HUANY +EM_IA_64 +EM_IP2K +EM_JAVELIN +EM_K10M +EM_KM32 +EM_KMX32 +EM_KVARC +EM_L10M +EM_LATTICEMICO32 +EM_LOONGARCH +EM_M16C +EM_M32 +EM_M32C +EM_M32R +EM_MANIK +EM_MAX +EM_MAXQ30 +EM_MCHP_PIC +EM_MCST_ELBRUS +EM_ME16 +EM_METAG +EM_MICROBLAZE +EM_MIPS +EM_MIPS_RS3_LE +EM_MIPS_X +EM_MMA +EM_MMDSP_PLUS +EM_MMIX +EM_MN10200 +EM_MN10300 +EM_MOXIE +EM_MSP430 +EM_NCPU +EM_NDR1 +EM_NDS32 +EM_NONE +EM_NORC +EM_NS32K +EM_NUM +EM_OPEN8 +EM_OPENRISC +EM_OR1K +EM_PARISC +EM_PCP +EM_PDSP +EM_PJ +EM_PPC +EM_PPC64 +EM_PRISM +EM_QDSP6 +EM_R32C +EM_RCE +EM_RH32 +EM_RISCV +EM_RL78 +EM_RS08 +EM_RX +EM_S370 +EM_S390 +EM_SCORE7 +EM_SEP +EM_SE_C17 +EM_SE_C33 +EM_SH +EM_SHARC +EM_SLE9X +EM_SNP1K +EM_SPARC +EM_SPARC32PLUS +EM_SPARCV9 +EM_ST100 +EM_ST19 +EM_ST200 +EM_ST7 +EM_ST9PLUS +EM_STARCORE +EM_STM8 +EM_STXP7X +EM_SVX +EM_TILE64 +EM_TILEGX +EM_TILEPRO +EM_TINYJ +EM_TI_ARP32 +EM_TI_C2000 +EM_TI_C5500 +EM_TI_C6000 +EM_TI_PRU +EM_TMM_GPP +EM_TPC +EM_TRICORE +EM_TRIMEDIA +EM_TSK3000 +EM_UNICORE +EM_V800 +EM_V850 +EM_VAX +EM_VIDEOCORE +EM_VIDEOCORE3 +EM_VIDEOCORE5 +EM_VISIUM +EM_VPP500 +EM_X86_64 +EM_XCORE +EM_XGATE +EM_XIMO16 +EM_XTENSA +EM_Z80 +EM_ZSP +ENAMETOOLONG +ENAVAIL +END +ENETDOWN +ENETRESET +ENETUNREACH +ENFILE +ENOANO +ENOBUFS +ENOCSI +ENODATA +ENODEV +ENOENT +ENOEXEC +ENOKEY +ENOLCK +ENOLINK +ENOMEDIUM +ENOMEM +ENOMSG +ENONET +ENOPKG +ENOPROTOOPT +ENOSPC +ENOSR +ENOSTR +ENOSYS +ENOTBLK +ENOTCONN +ENOTDIR +ENOTEMPTY +ENOTNAM +ENOTRECOVERABLE +ENOTSOCK +ENOTSUP +ENOTTY +ENOTUNIQ +ENXIO +EOF +EOPNOTSUPP +EOVERFLOW +EOWNERDEAD +EPERM +EPFNOSUPPORT +EPIPE +EPOLLERR +EPOLLET +EPOLLEXCLUSIVE +EPOLLHUP +EPOLLIN +EPOLLMSG +EPOLLNVAL +EPOLLONESHOT +EPOLLOUT +EPOLLPRI +EPOLLRDBAND +EPOLLRDHUP +EPOLLRDNORM +EPOLLWAKEUP +EPOLLWRBAND +EPOLLWRNORM +EPOLL_CLOEXEC +EPOLL_CTL_ADD +EPOLL_CTL_DEL +EPOLL_CTL_MOD +EPOLL_NONBLOCK +EPROTO +EPROTONOSUPPORT +EPROTOTYPE +EPS +ERA +ERANGE +ERA_D_FMT +ERA_D_T_FMT +ERA_T_FMT +EREMCHG +EREMOTE +EREMOTEIO +ERESTART +ERFKILL +EROFS +ESHUTDOWN +ESOCKTNOSUPPORT +ESPIPE +ESRCH +ESRMNT +ESTALE +ESTRPIPE +ETHERMIN +ETHERMTU +ETHERTYPE_AARP +ETHERTYPE_ARP +ETHERTYPE_AT +ETHERTYPE_IP +ETHERTYPE_IPV6 +ETHERTYPE_IPX +ETHERTYPE_LOOPBACK +ETHERTYPE_NTRAILER +ETHERTYPE_PUP +ETHERTYPE_REVARP +ETHERTYPE_SPRITE +ETHERTYPE_TRAIL +ETHERTYPE_VLAN +ETHER_ADDR_LEN +ETHER_CRC_LEN +ETHER_HDR_LEN +ETHER_MAX_LEN +ETHER_MIN_LEN +ETHER_TYPE_LEN +ETH_ALEN +ETH_DATA_LEN +ETH_FCS_LEN +ETH_FRAME_LEN +ETH_HLEN +ETH_MAX_MTU +ETH_MIN_MTU +ETH_P_1588 +ETH_P_8021AD +ETH_P_8021AH +ETH_P_8021Q +ETH_P_80221 +ETH_P_802_2 +ETH_P_802_3 +ETH_P_802_3_MIN +ETH_P_802_EX1 +ETH_P_AARP +ETH_P_AF_IUCV +ETH_P_ALL +ETH_P_AOE +ETH_P_ARCNET +ETH_P_ARP +ETH_P_ATALK +ETH_P_ATMFATE +ETH_P_ATMMPOA +ETH_P_AX25 +ETH_P_BATMAN +ETH_P_BPQ +ETH_P_CAIF +ETH_P_CAN +ETH_P_CANFD +ETH_P_CFM +ETH_P_CONTROL +ETH_P_CUST +ETH_P_DDCMP +ETH_P_DEC +ETH_P_DIAG +ETH_P_DNA_DL +ETH_P_DNA_RC +ETH_P_DNA_RT +ETH_P_DSA +ETH_P_DSA_8021Q +ETH_P_ECONET +ETH_P_EDSA +ETH_P_ERSPAN +ETH_P_ERSPAN2 +ETH_P_FCOE +ETH_P_FIP +ETH_P_HDLC +ETH_P_HSR +ETH_P_IBOE +ETH_P_IEEE802154 +ETH_P_IEEEPUP +ETH_P_IEEEPUPAT +ETH_P_IFE +ETH_P_IP +ETH_P_IPV6 +ETH_P_IPX +ETH_P_IRDA +ETH_P_LAT +ETH_P_LINK_CTL +ETH_P_LLDP +ETH_P_LOCALTALK +ETH_P_LOOP +ETH_P_LOOPBACK +ETH_P_MACSEC +ETH_P_MAP +ETH_P_MOBITEX +ETH_P_MPLS_MC +ETH_P_MPLS_UC +ETH_P_MRP +ETH_P_MVRP +ETH_P_NCSI +ETH_P_NSH +ETH_P_PAE +ETH_P_PAUSE +ETH_P_PHONET +ETH_P_PPPTALK +ETH_P_PPP_DISC +ETH_P_PPP_MP +ETH_P_PPP_SES +ETH_P_PREAUTH +ETH_P_PRP +ETH_P_PUP +ETH_P_PUPAT +ETH_P_QINQ1 +ETH_P_QINQ2 +ETH_P_QINQ3 +ETH_P_RARP +ETH_P_SCA +ETH_P_SLOW +ETH_P_SNAP +ETH_P_TDLS +ETH_P_TEB +ETH_P_TIPC +ETH_P_TRAILER +ETH_P_TR_802_2 +ETH_P_TSN +ETH_P_WAN_PPP +ETH_P_WCCP +ETH_P_X25 +ETH_P_XDSA +ETH_TLEN +ETH_ZLEN +ETIME +ETIMEDOUT +ETOOMANYREFS +ETXTBSY +ET_CORE +ET_DYN +ET_EXEC +ET_HIOS +ET_HIPROC +ET_LOOS +ET_LOPROC +ET_NONE +ET_NUM +ET_REL +EUCLEAN +EUC_JP +EUC_KR +EUNATCH +EUSERS +EV_CURRENT +EV_NONE +EV_NUM +EWOULDBLOCK +EXDEV +EXFULL +EXIT_FAILURE +EXIT_SUCCESS +EXP2F_POLY_ORDER +EXP2F_TABLE_BITS +EXP2_POLY_ORDER +EXPR_NEST_MAX +EXP_POLY_ORDER +EXP_TABLE_BITS +EXP_USE_TOINT_NARROW +EXTA +EXTB +EXTPROC +E_MIPS_ARCH_1 +E_MIPS_ARCH_2 +E_MIPS_ARCH_3 +E_MIPS_ARCH_32 +E_MIPS_ARCH_4 +E_MIPS_ARCH_5 +E_MIPS_ARCH_64 +Environ +EnvironP +FALLOC_FL_KEEP_SIZE +FALLOC_FL_PUNCH_HOLE +FANOTIFY_METADATA_VERSION +FAN_ACCESS +FAN_ACCESS_PERM +FAN_ALLOW +FAN_ALL_CLASS_BITS +FAN_ALL_EVENTS +FAN_ALL_INIT_FLAGS +FAN_ALL_MARK_FLAGS +FAN_ALL_OUTGOING_EVENTS +FAN_ALL_PERM_EVENTS +FAN_ATTRIB +FAN_AUDIT +FAN_CLASS_CONTENT +FAN_CLASS_NOTIF +FAN_CLASS_PRE_CONTENT +FAN_CLOEXEC +FAN_CLOSE +FAN_CLOSE_NOWRITE +FAN_CLOSE_WRITE +FAN_CREATE +FAN_DELETE +FAN_DELETE_SELF +FAN_DENY +FAN_DIR_MODIFY +FAN_ENABLE_AUDIT +FAN_EVENT_INFO_TYPE_DFID +FAN_EVENT_INFO_TYPE_DFID_NAME +FAN_EVENT_INFO_TYPE_FID +FAN_EVENT_METADATA_LEN +FAN_EVENT_ON_CHILD +FAN_MARK_ADD +FAN_MARK_DONT_FOLLOW +FAN_MARK_FILESYSTEM +FAN_MARK_FLUSH +FAN_MARK_IGNORED_MASK +FAN_MARK_IGNORED_SURV_MODIFY +FAN_MARK_INODE +FAN_MARK_MOUNT +FAN_MARK_ONLYDIR +FAN_MARK_REMOVE +FAN_MARK_TYPE_MASK +FAN_MODIFY +FAN_MOVE +FAN_MOVED_FROM +FAN_MOVED_TO +FAN_MOVE_SELF +FAN_NOFD +FAN_NONBLOCK +FAN_ONDIR +FAN_OPEN +FAN_OPEN_EXEC +FAN_OPEN_EXEC_PERM +FAN_OPEN_PERM +FAN_Q_OVERFLOW +FAN_REPORT_DFID_NAME +FAN_REPORT_DIR_FID +FAN_REPORT_FID +FAN_REPORT_NAME +FAN_REPORT_TID +FAN_UNLIMITED_MARKS +FAN_UNLIMITED_QUEUE +FAPPEND +FASYNC +FDOP_CHDIR +FDOP_CLOSE +FDOP_DUP2 +FDOP_FCHDIR +FDOP_OPEN +FDPIC_FUNCPTRS +FD_CLOEXEC +FD_SETSIZE +FENV_SUPPORT +FE_ALL_EXCEPT +FE_DIVBYZERO +FE_DOWNWARD +FE_INEXACT +FE_INVALID +FE_OVERFLOW +FE_TONEAREST +FE_TOWARDZERO +FE_UNDERFLOW +FE_UPWARD +FF0 +FF1 +FFDLY +FFSYNC +FILE +FILENAME_MAX +FILESIZEBITS +FIOASYNC +FIOCLEX +FIOGETOWN +FIONBIO +FIONCLEX +FIONREAD +FIOQSIZE +FIOSETOWN +FLAGMASK +FLT_DECIMAL_DIG +FLT_DIG +FLT_EPSILON +FLT_EPSILON1 +FLT_EPSILON2 +FLT_EPSILON3 +FLT_EPSILON4 +FLT_EVAL_METHOD +FLT_HAS_SUBNORM +FLT_MANT_DIG +FLT_MAX +FLT_MAX_10_EXP +FLT_MAX_EXP +FLT_MIN +FLT_MIN1 +FLT_MIN2 +FLT_MIN_10_EXP +FLT_MIN_EXP +FLT_RADIX +FLT_ROUNDS +FLT_TRUE_MIN +FLUSHO +FNDELAY +FNM_CASEFOLD +FNM_FILE_NAME +FNM_LEADING_DIR +FNM_NOESCAPE +FNM_NOMATCH +FNM_NOSYS +FNM_PATHNAME +FNM_PERIOD +FNONBLOCK +FOPEN_MAX +FORMERR +FPE_FLTDIV +FPE_FLTINV +FPE_FLTOVF +FPE_FLTRES +FPE_FLTSUB +FPE_FLTUND +FPE_INTDIV +FPE_INTOVF +FP_ILOGB0 +FP_ILOGBNAN +FP_INFINITE +FP_NAN +FP_NORMAL +FP_SUBNORMAL +FP_ZERO +FSETLOCKING_BYCALLER +FSETLOCKING_INTERNAL +FSETLOCKING_QUERY +FTW_CHDIR +FTW_D +FTW_DEPTH +FTW_DNR +FTW_DP +FTW_F +FTW_MOUNT +FTW_NS +FTW_PHYS +FTW_SL +FTW_SLN +FUTEX_CLOCK_REALTIME +FUTEX_CMP_REQUEUE +FUTEX_FD +FUTEX_LOCK_PI +FUTEX_PRIVATE +FUTEX_REQUEUE +FUTEX_TRYLOCK_PI +FUTEX_UNLOCK_PI +FUTEX_WAIT +FUTEX_WAIT_BITSET +FUTEX_WAKE +FUTEX_WAKE_OP +F_ADD_SEALS +F_APP +F_CANCELLK +F_DUPFD +F_DUPFD_CLOEXEC +F_EOF +F_ERR +F_GETFD +F_GETFL +F_GETLEASE +F_GETLK +F_GETOWN +F_GETOWNER_UIDS +F_GETOWN_EX +F_GETPIPE_SZ +F_GETSIG +F_GET_FILE_RW_HINT +F_GET_RW_HINT +F_GET_SEALS +F_LOCK +F_NORD +F_NOTIFY +F_NOWR +F_OFD_GETLK +F_OFD_SETLK +F_OFD_SETLKW +F_OK +F_OWNER_GID +F_OWNER_PGRP +F_OWNER_PID +F_OWNER_TID +F_PERM +F_RDLCK +F_SEAL_FUTURE_WRITE +F_SEAL_GROW +F_SEAL_SEAL +F_SEAL_SHRINK +F_SEAL_WRITE +F_SETFD +F_SETFL +F_SETLEASE +F_SETLK +F_SETLKW +F_SETOWN +F_SETOWN_EX +F_SETPIPE_SZ +F_SETSIG +F_SET_FILE_RW_HINT +F_SET_RW_HINT +F_SVB +F_TEST +F_TLOCK +F_ULOCK +F_UNLCK +F_WRLCK +Float32 +Float32FromComplex128 +Float32FromComplex64 +Float32FromFloat32 +Float32FromFloat64 +Float32FromInt16 +Float32FromInt32 +Float32FromInt64 +Float32FromInt8 +Float32FromUint16 +Float32FromUint32 +Float32FromUint64 +Float32FromUint8 +Float32FromUintptr +Float64 +Float64FromComplex128 +Float64FromComplex64 +Float64FromFloat32 +Float64FromFloat64 +Float64FromInt16 +Float64FromInt32 +Float64FromInt64 +Float64FromInt8 +Float64FromUint16 +Float64FromUint32 +Float64FromUint64 +Float64FromUint8 +Float64FromUintptr +GB18030 +GB2312 +GBK +GETALL +GETGRBYGID +GETGRBYNAME +GETINITGR +GETLONG +GETNCNT +GETPID +GETPWBYNAME +GETPWBYUID +GETSHORT +GETVAL +GETZCNT +GLOB_ABORTED +GLOB_APPEND +GLOB_DOOFFS +GLOB_ERR +GLOB_MARK +GLOB_NOCHECK +GLOB_NOESCAPE +GLOB_NOMATCH +GLOB_NOSORT +GLOB_NOSPACE +GLOB_NOSYS +GLOB_PERIOD +GLOB_TILDE +GLOB_TILDE_CHECK +GRFOUND +GRGID +GRMEMCNT +GRNAMELEN +GRND_INSECURE +GRND_NONBLOCK +GRND_RANDOM +GROUPED +GRPASSWDLEN +GRPQUOTA +GRP_COMDAT +GRVERSION +GR_LEN +GetEnviron +GoBytes +GoString +HEADER +HFIXEDSZ +HIGHS +HOST_NAME_MAX +HOST_NOT_FOUND +HUGE +HUGE_VALF +HUPCL +I +ICANON +ICRNL +IEXTEN +IFADDRS_HASH_SIZE +IFA_ADDRESS +IFA_BROADCAST +IFA_LABEL +IFA_LOCAL +IFF_ALLMULTI +IFF_AUTOMEDIA +IFF_BROADCAST +IFF_DEBUG +IFF_DORMANT +IFF_DYNAMIC +IFF_ECHO +IFF_LOOPBACK +IFF_LOWER_UP +IFF_MASTER +IFF_MULTICAST +IFF_NOARP +IFF_NOTRAILERS +IFF_POINTOPOINT +IFF_PORTSEL +IFF_PROMISC +IFF_RUNNING +IFF_SLAVE +IFF_UP +IFF_VOLATILE +IFHWADDRLEN +IFLA_ADDRESS +IFLA_BROADCAST +IFLA_IFNAME +IFLA_STATS +IFNAMSIZ +IF_NAMESIZE +IGNBRK +IGNCR +IGNPAR +IIF_ALL +IIF_BGRACE +IIF_FLAGS +IIF_IGRACE +ILL_BADSTK +ILL_COPROC +ILL_ILLADR +ILL_ILLOPC +ILL_ILLOPN +ILL_ILLTRP +ILL_PRVOPC +ILL_PRVREG +IMAXBEL +IN6ADDRSZ +INADDRSZ +INDIR_MASK +INET6_ADDRSTRLEN +INET_ADDRSTRLEN +INFINITY +INITGRFOUND +INITGRNGRPS +INITGRVERSION +INITGR_LEN +INIT_PROCESS +INLCR +INPCK +INT16SZ +INT16_MAX +INT16_MIN +INT32SZ +INT32_MAX +INT32_MIN +INT64_MAX +INT64_MIN +INT8SZ +INT8_MAX +INT8_MIN +INTMAX_MAX +INTMAX_MIN +INTPTR_MAX +INTPTR_MIN +INT_FAST16_MAX +INT_FAST16_MIN +INT_FAST32_MAX +INT_FAST32_MIN +INT_FAST64_MAX +INT_FAST64_MIN +INT_FAST8_MAX +INT_FAST8_MIN +INT_LEAST16_MAX +INT_LEAST16_MIN +INT_LEAST32_MAX +INT_LEAST32_MIN +INT_LEAST64_MAX +INT_LEAST64_MIN +INT_LEAST8_MAX +INT_LEAST8_MIN +INT_MAX +INT_MIN +IN_ACCESS +IN_ALL_EVENTS +IN_ATTRIB +IN_CLASSA_HOST +IN_CLASSA_MAX +IN_CLASSA_NET +IN_CLASSA_NSHIFT +IN_CLASSB_HOST +IN_CLASSB_MAX +IN_CLASSB_NET +IN_CLASSB_NSHIFT +IN_CLASSC_HOST +IN_CLASSC_NET +IN_CLASSC_NSHIFT +IN_CLOEXEC +IN_CLOSE +IN_CLOSE_NOWRITE +IN_CLOSE_WRITE +IN_CREATE +IN_DELETE +IN_DELETE_SELF +IN_DONT_FOLLOW +IN_EXCL_UNLINK +IN_IGNORED +IN_ISDIR +IN_LOOPBACKNET +IN_MASK_ADD +IN_MASK_CREATE +IN_MODIFY +IN_MOVE +IN_MOVED_FROM +IN_MOVED_TO +IN_MOVE_SELF +IN_NONBLOCK +IN_ONESHOT +IN_ONLYDIR +IN_OPEN +IN_Q_OVERFLOW +IN_UNMOUNT +IOV_MAX +IPCOP_msgctl +IPCOP_msgget +IPCOP_msgrcv +IPCOP_msgsnd +IPCOP_semctl +IPCOP_semget +IPCOP_semop +IPCOP_semtimedop +IPCOP_shmat +IPCOP_shmctl +IPCOP_shmdt +IPCOP_shmget +IPC_64 +IPC_CREAT +IPC_EXCL +IPC_INFO +IPC_NOWAIT +IPC_RMID +IPC_SET +IPC_STAT +IPC_TIME64 +IPPORT_RESERVED +IPPROTO_AH +IPPROTO_BEETPH +IPPROTO_COMP +IPPROTO_DCCP +IPPROTO_DSTOPTS +IPPROTO_EGP +IPPROTO_ENCAP +IPPROTO_ESP +IPPROTO_ETHERNET +IPPROTO_FRAGMENT +IPPROTO_GRE +IPPROTO_HOPOPTS +IPPROTO_ICMP +IPPROTO_ICMPV6 +IPPROTO_IDP +IPPROTO_IGMP +IPPROTO_IP +IPPROTO_IPIP +IPPROTO_IPV6 +IPPROTO_MAX +IPPROTO_MH +IPPROTO_MPLS +IPPROTO_MPTCP +IPPROTO_MTP +IPPROTO_NONE +IPPROTO_PIM +IPPROTO_PUP +IPPROTO_RAW +IPPROTO_ROUTING +IPPROTO_RSVP +IPPROTO_SCTP +IPPROTO_TCP +IPPROTO_TP +IPPROTO_UDP +IPPROTO_UDPLITE +IPV6_2292DSTOPTS +IPV6_2292HOPLIMIT +IPV6_2292HOPOPTS +IPV6_2292PKTINFO +IPV6_2292PKTOPTIONS +IPV6_2292RTHDR +IPV6_ADDRFORM +IPV6_ADDR_PREFERENCES +IPV6_ADD_MEMBERSHIP +IPV6_AUTHHDR +IPV6_AUTOFLOWLABEL +IPV6_CHECKSUM +IPV6_DONTFRAG +IPV6_DROP_MEMBERSHIP +IPV6_DSTOPTS +IPV6_FREEBIND +IPV6_HDRINCL +IPV6_HOPLIMIT +IPV6_HOPOPTS +IPV6_IPSEC_POLICY +IPV6_JOIN_ANYCAST +IPV6_JOIN_GROUP +IPV6_LEAVE_ANYCAST +IPV6_LEAVE_GROUP +IPV6_MINHOPCOUNT +IPV6_MTU +IPV6_MTU_DISCOVER +IPV6_MULTICAST_ALL +IPV6_MULTICAST_HOPS +IPV6_MULTICAST_IF +IPV6_MULTICAST_LOOP +IPV6_NEXTHOP +IPV6_ORIGDSTADDR +IPV6_PATHMTU +IPV6_PKTINFO +IPV6_PMTUDISC_DO +IPV6_PMTUDISC_DONT +IPV6_PMTUDISC_INTERFACE +IPV6_PMTUDISC_OMIT +IPV6_PMTUDISC_PROBE +IPV6_PMTUDISC_WANT +IPV6_PREFER_SRC_CGA +IPV6_PREFER_SRC_COA +IPV6_PREFER_SRC_HOME +IPV6_PREFER_SRC_NONCGA +IPV6_PREFER_SRC_PUBLIC +IPV6_PREFER_SRC_PUBTMP_DEFAULT +IPV6_PREFER_SRC_TMP +IPV6_RECVDSTOPTS +IPV6_RECVERR +IPV6_RECVFRAGSIZE +IPV6_RECVHOPLIMIT +IPV6_RECVHOPOPTS +IPV6_RECVORIGDSTADDR +IPV6_RECVPATHMTU +IPV6_RECVPKTINFO +IPV6_RECVRTHDR +IPV6_RECVTCLASS +IPV6_ROUTER_ALERT +IPV6_ROUTER_ALERT_ISOLATE +IPV6_RTHDR +IPV6_RTHDRDSTOPTS +IPV6_RTHDR_LOOSE +IPV6_RTHDR_STRICT +IPV6_RTHDR_TYPE_0 +IPV6_RXDSTOPTS +IPV6_RXHOPOPTS +IPV6_TCLASS +IPV6_TRANSPARENT +IPV6_UNICAST_HOPS +IPV6_UNICAST_IF +IPV6_V6ONLY +IPV6_XFRM_POLICY +IP_ADD_MEMBERSHIP +IP_ADD_SOURCE_MEMBERSHIP +IP_BIND_ADDRESS_NO_PORT +IP_BLOCK_SOURCE +IP_CHECKSUM +IP_DEFAULT_MULTICAST_LOOP +IP_DEFAULT_MULTICAST_TTL +IP_DROP_MEMBERSHIP +IP_DROP_SOURCE_MEMBERSHIP +IP_FREEBIND +IP_HDRINCL +IP_IPSEC_POLICY +IP_MAX_MEMBERSHIPS +IP_MINTTL +IP_MSFILTER +IP_MTU +IP_MTU_DISCOVER +IP_MULTICAST_ALL +IP_MULTICAST_IF +IP_MULTICAST_LOOP +IP_MULTICAST_TTL +IP_NODEFRAG +IP_OPTIONS +IP_ORIGDSTADDR +IP_PASSSEC +IP_PKTINFO +IP_PKTOPTIONS +IP_PMTUDISC +IP_PMTUDISC_DO +IP_PMTUDISC_DONT +IP_PMTUDISC_INTERFACE +IP_PMTUDISC_OMIT +IP_PMTUDISC_PROBE +IP_PMTUDISC_WANT +IP_RECVERR +IP_RECVERR_RFC4884 +IP_RECVFRAGSIZE +IP_RECVOPTS +IP_RECVORIGDSTADDR +IP_RECVRETOPTS +IP_RECVTOS +IP_RECVTTL +IP_RETOPTS +IP_ROUTER_ALERT +IP_TOS +IP_TRANSPARENT +IP_TTL +IP_UNBLOCK_SOURCE +IP_UNICAST_IF +IP_XFRM_POLICY +IQUERY +ISIG +ISO2022_JP +ISTRIP +ITIMER_PROF +ITIMER_REAL +ITIMER_VIRTUAL +IUCLC +IUTF8 +IXANY +IXOFF +IXON +Int128 +Int128FromFloat32 +Int128FromFloat64 +Int128FromInt16 +Int128FromInt32 +Int128FromInt64 +Int128FromInt8 +Int128FromUint128 +Int128FromUint16 +Int128FromUint32 +Int128FromUint64 +Int128FromUint8 +Int16 +Int16FromComplex128 +Int16FromComplex64 +Int16FromFloat32 +Int16FromFloat64 +Int16FromInt16 +Int16FromInt32 +Int16FromInt64 +Int16FromInt8 +Int16FromUint16 +Int16FromUint32 +Int16FromUint64 +Int16FromUint8 +Int16FromUintptr +Int32 +Int32FromComplex128 +Int32FromComplex64 +Int32FromFloat32 +Int32FromFloat64 +Int32FromInt16 +Int32FromInt32 +Int32FromInt64 +Int32FromInt8 +Int32FromUint16 +Int32FromUint32 +Int32FromUint64 +Int32FromUint8 +Int32FromUintptr +Int64 +Int64FromComplex128 +Int64FromComplex64 +Int64FromFloat32 +Int64FromFloat64 +Int64FromInt16 +Int64FromInt32 +Int64FromInt64 +Int64FromInt8 +Int64FromUint16 +Int64FromUint32 +Int64FromUint64 +Int64FromUint8 +Int64FromUintptr +Int8 +Int8FromComplex128 +Int8FromComplex64 +Int8FromFloat32 +Int8FromFloat64 +Int8FromInt16 +Int8FromInt32 +Int8FromInt64 +Int8FromInt8 +Int8FromUint16 +Int8FromUint32 +Int8FromUint64 +Int8FromUint8 +Int8FromUintptr +JT_ARG_MAX +JT_AVPHYS_PAGES +JT_DELAYTIMER_MAX +JT_MINSIGSTKSZ +JT_MQ_PRIO_MAX +JT_NPROCESSORS_CONF +JT_NPROCESSORS_ONLN +JT_PAGE_SIZE +JT_PHYS_PAGES +JT_SEM_VALUE_MAX +JT_SIGSTKSZ +JT_ZERO +KEY_MAX +KEY_MAX1 +KMAX +LC_ALL +LC_ALL_MASK +LC_COLLATE +LC_COLLATE_MASK +LC_CTYPE +LC_CTYPE_MASK +LC_GLOBAL_LOCALE +LC_MESSAGES +LC_MESSAGES_MASK +LC_MONETARY +LC_MONETARY_MASK +LC_NUMERIC +LC_NUMERIC_MASK +LC_TIME +LC_TIME_MASK +LDBL_DECIMAL_DIG +LDBL_DIG +LDBL_EPSILON +LDBL_EPSILON1 +LDBL_EPSILON2 +LDBL_EPSILON3 +LDBL_HAS_SUBNORM +LDBL_MANT_DIG +LDBL_MAX +LDBL_MAX1 +LDBL_MAX2 +LDBL_MAX_10_EXP +LDBL_MAX_EXP +LDBL_MIN +LDBL_MIN1 +LDBL_MIN2 +LDBL_MIN_10_EXP +LDBL_MIN_EXP +LDBL_TRUE_MIN +LD_B1B_DIG +LD_B1B_MAX +LEAPOCH +LEFT_ADJ +LINE_MAX +LITTLE_ENDIAN +LITUSE_ALPHA_ADDR +LITUSE_ALPHA_BASE +LITUSE_ALPHA_BYTOFF +LITUSE_ALPHA_JSR +LITUSE_ALPHA_TLS_GD +LITUSE_ALPHA_TLS_LDM +LLONG_MAX +LLONG_MIN +LL_DELAY_LOAD +LL_DELTA +LL_EXACT_MATCH +LL_EXPORTS +LL_IGNORE_INT_VER +LL_NONE +LL_REQUIRE_MINOR +LOCALDOMAINPARTS +LOCALE_NAME_MAX +LOCK_EX +LOCK_NB +LOCK_SH +LOCK_UN +LOG2F_POLY_ORDER +LOG2F_TABLE_BITS +LOG2_POLY1_ORDER +LOG2_POLY_ORDER +LOG2_TABLE_BITS +LOGF_POLY_ORDER +LOGF_TABLE_BITS +LOGIN_NAME_MAX +LOGIN_PROCESS +LOG_ALERT +LOG_AUTH +LOG_AUTHPRIV +LOG_CONS +LOG_CRIT +LOG_CRON +LOG_DAEMON +LOG_DEBUG +LOG_EMERG +LOG_ERR +LOG_FACMASK +LOG_FTP +LOG_INFO +LOG_KERN +LOG_LOCAL0 +LOG_LOCAL1 +LOG_LOCAL2 +LOG_LOCAL3 +LOG_LOCAL4 +LOG_LOCAL5 +LOG_LOCAL6 +LOG_LOCAL7 +LOG_LPR +LOG_MAIL +LOG_NDELAY +LOG_NEWS +LOG_NFACILITIES +LOG_NOTICE +LOG_NOWAIT +LOG_ODELAY +LOG_PERROR +LOG_PID +LOG_POLY1_ORDER +LOG_POLY_ORDER +LOG_PRIMASK +LOG_SYSLOG +LOG_TABLE_BITS +LOG_USER +LOG_UUCP +LOG_WARNING +LONG_BIT +LONG_MAX +LONG_MIN +LS +L_INCR +L_SET +L_XTND +L_ctermid +L_cuserid +L_tmpnam +LongjmpRetval +MADV_COLD +MADV_DODUMP +MADV_DOFORK +MADV_DONTDUMP +MADV_DONTFORK +MADV_DONTNEED +MADV_FREE +MADV_HUGEPAGE +MADV_HWPOISON +MADV_KEEPONFORK +MADV_MERGEABLE +MADV_NOHUGEPAGE +MADV_NORMAL +MADV_PAGEOUT +MADV_RANDOM +MADV_REMOVE +MADV_SEQUENTIAL +MADV_SOFT_OFFLINE +MADV_UNMERGEABLE +MADV_WILLNEED +MADV_WIPEONFORK +MAP_32BIT +MAP_ANON +MAP_ANONYMOUS +MAP_DENYWRITE +MAP_EXECUTABLE +MAP_FAILED +MAP_FILE +MAP_FIXED +MAP_FIXED_NOREPLACE +MAP_GROWSDOWN +MAP_HUGETLB +MAP_HUGE_16GB +MAP_HUGE_16KB +MAP_HUGE_16MB +MAP_HUGE_1GB +MAP_HUGE_1MB +MAP_HUGE_256MB +MAP_HUGE_2GB +MAP_HUGE_2MB +MAP_HUGE_32MB +MAP_HUGE_512KB +MAP_HUGE_512MB +MAP_HUGE_64KB +MAP_HUGE_8MB +MAP_HUGE_MASK +MAP_HUGE_SHIFT +MAP_LOCKED +MAP_NONBLOCK +MAP_NORESERVE +MAP_POPULATE +MAP_PRIVATE +MAP_SHARED +MAP_SHARED_VALIDATE +MAP_STACK +MAP_SYNC +MAP_TYPE +MARK_POS +MASK +MATH_ERREXCEPT +MATH_ERRNO +MAXADDRS +MAXCDNAME +MAXDFLSRCH +MAXDNAME +MAXDNSRCH +MAXFLOAT +MAXH +MAXLABEL +MAXNS +MAXNUM +MAXNUMF +MAXQUOTAS +MAXRESOLVSORT +MAXSERVS +MAXSIZE +MAXTC +MAXTRIES +MAX_ADDR_LEN +MAX_DQ_TIME +MAX_HANDLE_SZ +MAX_IQ_TIME +MAX_NEG_CLASSES +MAYBE_WAITERS +MB_CUR_MAX +MB_LEN_MAX +MCAST_BLOCK_SOURCE +MCAST_EXCLUDE +MCAST_INCLUDE +MCAST_JOIN_GROUP +MCAST_JOIN_SOURCE_GROUP +MCAST_LEAVE_GROUP +MCAST_LEAVE_SOURCE_GROUP +MCAST_MSFILTER +MCAST_UNBLOCK_SOURCE +MCL_CURRENT +MCL_FUTURE +MCL_ONFAULT +MFD_ALLOW_SEALING +MFD_CLOEXEC +MFD_HUGETLB +MINSIGSTKSZ +MINSIZE +MIPS_AFL_ASE_DSP +MIPS_AFL_ASE_DSPR2 +MIPS_AFL_ASE_EVA +MIPS_AFL_ASE_MASK +MIPS_AFL_ASE_MCU +MIPS_AFL_ASE_MDMX +MIPS_AFL_ASE_MICROMIPS +MIPS_AFL_ASE_MIPS16 +MIPS_AFL_ASE_MIPS3D +MIPS_AFL_ASE_MSA +MIPS_AFL_ASE_MT +MIPS_AFL_ASE_SMARTMIPS +MIPS_AFL_ASE_VIRT +MIPS_AFL_ASE_XPA +MIPS_AFL_EXT_10000 +MIPS_AFL_EXT_3900 +MIPS_AFL_EXT_4010 +MIPS_AFL_EXT_4100 +MIPS_AFL_EXT_4111 +MIPS_AFL_EXT_4120 +MIPS_AFL_EXT_4650 +MIPS_AFL_EXT_5400 +MIPS_AFL_EXT_5500 +MIPS_AFL_EXT_5900 +MIPS_AFL_EXT_LOONGSON_2E +MIPS_AFL_EXT_LOONGSON_2F +MIPS_AFL_EXT_LOONGSON_3A +MIPS_AFL_EXT_OCTEON +MIPS_AFL_EXT_OCTEON2 +MIPS_AFL_EXT_OCTEONP +MIPS_AFL_EXT_SB1 +MIPS_AFL_EXT_XLR +MIPS_AFL_FLAGS1_ODDSPREG +MIPS_AFL_REG_128 +MIPS_AFL_REG_32 +MIPS_AFL_REG_64 +MIPS_AFL_REG_NONE +MLOCK_ONFAULT +MMAP_PAGE_ZERO +MM_APPL +MM_CONSOLE +MM_ERROR +MM_FIRM +MM_HALT +MM_HARD +MM_INFO +MM_NOCON +MM_NOMSG +MM_NOSEV +MM_NOTOK +MM_NRECOV +MM_NULLMC +MM_NULLSEV +MM_OK +MM_OPSYS +MM_PRINT +MM_RECOVER +MM_SOFT +MM_UTIL +MM_WARNING +MNTOPT_DEFAULTS +MNTOPT_NOAUTO +MNTOPT_NOSUID +MNTOPT_RO +MNTOPT_RW +MNTOPT_SUID +MNTTYPE_IGNORE +MNTTYPE_NFS +MNTTYPE_SWAP +MNT_DETACH +MNT_EXPIRE +MNT_FORCE +MOD_CLKA +MOD_CLKB +MOD_ESTERROR +MOD_FREQUENCY +MOD_MAXERROR +MOD_MICRO +MOD_NANO +MOD_OFFSET +MOD_STATUS +MOD_TAI +MOD_TIMECONST +MON_1 +MON_10 +MON_11 +MON_12 +MON_2 +MON_3 +MON_4 +MON_5 +MON_6 +MON_7 +MON_8 +MON_9 +MOUNTED +MQ_PRIO_MAX +MREMAP_DONTUNMAP +MREMAP_FIXED +MREMAP_MAYMOVE +MSG_BATCH +MSG_CMSG_CLOEXEC +MSG_CONFIRM +MSG_CTRUNC +MSG_DONTROUTE +MSG_DONTWAIT +MSG_EOR +MSG_ERRQUEUE +MSG_EXCEPT +MSG_FASTOPEN +MSG_FIN +MSG_INFO +MSG_MORE +MSG_NOERROR +MSG_NOSIGNAL +MSG_OOB +MSG_PEEK +MSG_PROXY +MSG_RST +MSG_STAT +MSG_STAT_ANY +MSG_SYN +MSG_TRUNC +MSG_WAITALL +MSG_WAITFORONE +MSG_ZEROCOPY +MS_ACTIVE +MS_ASYNC +MS_BIND +MS_BORN +MS_DIRSYNC +MS_INVALIDATE +MS_I_VERSION +MS_KERNMOUNT +MS_LAZYTIME +MS_MANDLOCK +MS_MGC_MSK +MS_MGC_VAL +MS_MOVE +MS_NOATIME +MS_NODEV +MS_NODIRATIME +MS_NOEXEC +MS_NOREMOTELOCK +MS_NOSEC +MS_NOSUID +MS_NOSYMFOLLOW +MS_NOUSER +MS_POSIXACL +MS_PRIVATE +MS_RDONLY +MS_REC +MS_RELATIME +MS_REMOUNT +MS_RMT_MASK +MS_SHARED +MS_SILENT +MS_SLAVE +MS_STRICTATIME +MS_SYNC +MS_SYNCHRONOUS +MS_UNBINDABLE +M_1_PI +M_2_PI +M_2_SQRTPI +M_E +M_LN10 +M_LN2 +M_LOG10E +M_LOG2E +M_PI +M_PI1 +M_PI2 +M_PI_2 +M_PI_21 +M_PI_210 +M_PI_22 +M_PI_23 +M_PI_24 +M_PI_25 +M_PI_26 +M_PI_27 +M_PI_28 +M_PI_29 +M_PI_4 +M_SQRT1_2 +M_SQRT2 +MemAudit +MemAuditError +MemAuditReport +MemAuditStart +N +N1 +N10 +N11 +N2 +N3 +N4 +N5 +N6 +N7 +N8 +N9 +NAMESERVER_PORT +NAME_MAX +NAN +NCCS +NDEBUG +NETLINK_ROUTE +NEW_TIME +NGROUPS_MAX +NI_DGRAM +NI_MAXHOST +NI_MAXSERV +NI_NAMEREQD +NI_NOFQDN +NI_NUMERICHOST +NI_NUMERICSCOPE +NI_NUMERICSERV +NL0 +NL1 +NLDLY +NLMSG_DONE +NLMSG_ERROR +NLMSG_NOOP +NLMSG_OVERRUN +NLM_F_ACK +NLM_F_ATOMIC +NLM_F_DUMP +NLM_F_MATCH +NLM_F_MULTI +NLM_F_REQUEST +NLM_F_ROOT +NL_ARGMAX +NL_CAT_LOCALE +NL_LANGMAX +NL_MSGMAX +NL_NMAX +NL_SETD +NL_SETMAX +NL_TEXTMAX +NOERROR +NOEXPR +NOFLSH +NOSTR +NOTAUTH +NOTIMP +NOTZONE +NO_ADDRESS +NO_DATA +NO_RECOVERY +NO_TIME32 +NR_DQHASH +NR_DQUOTS +NSCDVERSION +NSIG +NS_ALG_DH +NS_ALG_DSA +NS_ALG_DSS +NS_ALG_EXPIRE_ONLY +NS_ALG_MD5RSA +NS_ALG_PRIVATE_OID +NS_CMPRSFLGS +NS_DEFAULTPORT +NS_DSA_MAX_BYTES +NS_DSA_MIN_SIZE +NS_DSA_SIG_SIZE +NS_HFIXEDSZ +NS_IN6ADDRSZ +NS_INADDRSZ +NS_INT16SZ +NS_INT32SZ +NS_INT8SZ +NS_KEY_EXTENDED_FLAGS +NS_KEY_NAME_ENTITY +NS_KEY_NAME_RESERVED +NS_KEY_NAME_TYPE +NS_KEY_NAME_USER +NS_KEY_NAME_ZONE +NS_KEY_NO_AUTH +NS_KEY_NO_CONF +NS_KEY_PROT_ANY +NS_KEY_PROT_DNSSEC +NS_KEY_PROT_EMAIL +NS_KEY_PROT_IPSEC +NS_KEY_PROT_TLS +NS_KEY_RESERVED10 +NS_KEY_RESERVED11 +NS_KEY_RESERVED2 +NS_KEY_RESERVED4 +NS_KEY_RESERVED5 +NS_KEY_RESERVED8 +NS_KEY_RESERVED9 +NS_KEY_RESERVED_BITMASK +NS_KEY_RESERVED_BITMASK2 +NS_KEY_SIGNATORYMASK +NS_KEY_TYPEMASK +NS_KEY_TYPE_AUTH_CONF +NS_KEY_TYPE_AUTH_ONLY +NS_KEY_TYPE_CONF_ONLY +NS_KEY_TYPE_NO_KEY +NS_MAXCDNAME +NS_MAXDNAME +NS_MAXLABEL +NS_MAXMSG +NS_MD5RSA_MAX_BASE64 +NS_MD5RSA_MAX_BITS +NS_MD5RSA_MAX_BYTES +NS_MD5RSA_MAX_SIZE +NS_MD5RSA_MIN_BITS +NS_MD5RSA_MIN_SIZE +NS_NOTIFY_OP +NS_NXT_BITS +NS_NXT_MAX +NS_OPT_DNSSEC_OK +NS_OPT_NSID +NS_PACKETSZ +NS_QFIXEDSZ +NS_RRFIXEDSZ +NS_SIG_ALG +NS_SIG_EXPIR +NS_SIG_FOOT +NS_SIG_LABELS +NS_SIG_OTTL +NS_SIG_SIGNED +NS_SIG_SIGNER +NS_SIG_TYPE +NS_TSIG_ALG_HMAC_MD5 +NS_TSIG_ERROR_FORMERR +NS_TSIG_ERROR_NO_SPACE +NS_TSIG_ERROR_NO_TSIG +NS_TSIG_FUDGE +NS_TSIG_TCP_COUNT +NS_UPDATE_OP +NT_386_IOPERM +NT_386_TLS +NT_ARC_V2 +NT_ARM_HW_BREAK +NT_ARM_HW_WATCH +NT_ARM_PACA_KEYS +NT_ARM_PACG_KEYS +NT_ARM_PAC_ENABLED_KEYS +NT_ARM_PAC_MASK +NT_ARM_SVE +NT_ARM_SYSTEM_CALL +NT_ARM_TAGGED_ADDR_CTRL +NT_ARM_TLS +NT_ARM_VFP +NT_ASRS +NT_AUXV +NT_FILE +NT_FPREGSET +NT_GNU_ABI_TAG +NT_GNU_BUILD_ID +NT_GNU_GOLD_VERSION +NT_GNU_PROPERTY_TYPE_0 +NT_GWINDOWS +NT_LOONGARCH_CPUCFG +NT_LOONGARCH_CSR +NT_LOONGARCH_LASX +NT_LOONGARCH_LBT +NT_LOONGARCH_LSX +NT_LWPSINFO +NT_LWPSTATUS +NT_METAG_CBUF +NT_METAG_RPIPE +NT_METAG_TLS +NT_MIPS_DSP +NT_MIPS_FP_MODE +NT_MIPS_MSA +NT_PLATFORM +NT_PPC_DSCR +NT_PPC_EBB +NT_PPC_PMU +NT_PPC_PPR +NT_PPC_SPE +NT_PPC_TAR +NT_PPC_TM_CDSCR +NT_PPC_TM_CFPR +NT_PPC_TM_CGPR +NT_PPC_TM_CPPR +NT_PPC_TM_CTAR +NT_PPC_TM_CVMX +NT_PPC_TM_CVSX +NT_PPC_TM_SPR +NT_PPC_VMX +NT_PPC_VSX +NT_PRCRED +NT_PRFPREG +NT_PRFPXREG +NT_PRPSINFO +NT_PRSTATUS +NT_PRXFPREG +NT_PRXREG +NT_PSINFO +NT_PSTATUS +NT_RISCV_CSR +NT_RISCV_VECTOR +NT_S390_CTRS +NT_S390_GS_BC +NT_S390_GS_CB +NT_S390_HIGH_GPRS +NT_S390_LAST_BREAK +NT_S390_PREFIX +NT_S390_RI_CB +NT_S390_SYSTEM_CALL +NT_S390_TDB +NT_S390_TIMER +NT_S390_TODCMP +NT_S390_TODPREG +NT_S390_VXRS_HIGH +NT_S390_VXRS_LOW +NT_SIGINFO +NT_TASKSTRUCT +NT_UTSNAME +NT_VERSION +NT_VMCOREDD +NT_X86_XSTATE +NXDOMAIN +NXRRSET +NZERO +N_6PACK +N_AX25 +N_CAIF +N_GIGASET_M101 +N_GSM0710 +N_HCI +N_HDLC +N_IRDA +N_MASC +N_MOUSE +N_NCI +N_NULL +N_PPP +N_PPS +N_PROFIBUS_FDL +N_R3964 +N_SLCAN +N_SLIP +N_SMSBLOCK +N_SPEAKUP +N_STRIP +N_SYNC_PPP +N_TI_WL +N_TRACEROUTER +N_TRACESINK +N_TTY +N_V253 +N_X25 +NegInt16 +NegInt32 +NegInt64 +NegInt8 +NegUint16 +NegUint32 +NegUint64 +NegUint8 +NegUintptr +NewPerfCounter +NewStackCapture +NewTLS +NewVaList +NewVaListN +OCRNL +ODK_EXCEPTIONS +ODK_FILL +ODK_HWAND +ODK_HWOR +ODK_HWPATCH +ODK_NULL +ODK_PAD +ODK_REGINFO +ODK_TAGS +OEX_DISMISS +OEX_FPDBUG +OEX_FPU_DIV0 +OEX_FPU_INEX +OEX_FPU_INVAL +OEX_FPU_MAX +OEX_FPU_MIN +OEX_FPU_OFLO +OEX_FPU_UFLO +OEX_PAGE0 +OEX_PRECISEFP +OEX_SMM +OFDEL +OFF +OFF1 +OFF2 +OFF3 +OFF_MASK +OFILL +OHWA0_R4KEOP_CHECKED +OHWA1_R4KEOP_CLEAN +OHW_R4KEOP +OHW_R5KCVTL +OHW_R5KEOP +OHW_R8KPFETCH +OLCUC +OLD_TIME +ONES +ONLCR +ONLRET +ONOCR +OPAD_POSTFIX +OPAD_PREFIX +OPAD_SYMBOL +OPOST +O_ACCMODE +O_APPEND +O_ASYNC +O_CLOEXEC +O_CREAT +O_DIRECT +O_DIRECTORY +O_DSYNC +O_EXCL +O_EXEC +O_LARGEFILE +O_NDELAY +O_NOATIME +O_NOCTTY +O_NOFOLLOW +O_NONBLOCK +O_PATH +O_RDONLY +O_RDWR +O_RSYNC +O_SEARCH +O_SYNC +O_TMPFILE +O_TRUNC +O_TTY_INIT +O_WRONLY +PACKETSZ +PAD_POS +PAGESIZE +PAGE_SIZE +PARENB +PARMRK +PARODD +PATH_MAX +PDP_ENDIAN +PENDIN +PER_BSD +PER_HPUX +PER_IRIX32 +PER_IRIX64 +PER_IRIXN32 +PER_ISCR4 +PER_LINUX +PER_LINUX32 +PER_LINUX32_3GB +PER_LINUX_32BIT +PER_LINUX_FDPIC +PER_MASK +PER_OSF4 +PER_OSR5 +PER_RISCOS +PER_SCOSVR3 +PER_SOLARIS +PER_SUNOS +PER_SVR3 +PER_SVR4 +PER_UW7 +PER_WYSEV386 +PER_XENIX +PF_ALG +PF_APPLETALK +PF_ARM_ABS +PF_ARM_PI +PF_ARM_SB +PF_ASH +PF_ATMPVC +PF_ATMSVC +PF_AX25 +PF_BLUETOOTH +PF_BRIDGE +PF_CAIF +PF_CAN +PF_DECnet +PF_ECONET +PF_FILE +PF_HP_CODE +PF_HP_FAR_SHARED +PF_HP_LAZYSWAP +PF_HP_MODIFY +PF_HP_NEAR_SHARED +PF_HP_PAGE_SIZE +PF_HP_SBP +PF_IA_64_NORECOV +PF_IB +PF_IEEE802154 +PF_INET +PF_INET6 +PF_IPX +PF_IRDA +PF_ISDN +PF_IUCV +PF_KCM +PF_KEY +PF_LLC +PF_LOCAL +PF_MASKOS +PF_MASKPROC +PF_MAX +PF_MIPS_LOCAL +PF_MPLS +PF_NETBEUI +PF_NETLINK +PF_NETROM +PF_NFC +PF_PACKET +PF_PARISC_SBP +PF_PHONET +PF_PPPOX +PF_QIPCRTR +PF_R +PF_RDS +PF_ROSE +PF_ROUTE +PF_RXRPC +PF_SECURITY +PF_SMC +PF_SNA +PF_TIPC +PF_UNIX +PF_UNSPEC +PF_VSOCK +PF_W +PF_WANPIPE +PF_X +PF_X25 +PF_XDP +PIPE_BUF +PM_STR +PN_XNUM +POLLERR +POLLHUP +POLLIN +POLLMSG +POLLNVAL +POLLOUT +POLLPRI +POLLRDBAND +POLLRDHUP +POLLRDNORM +POLLWRBAND +POLLWRNORM +POLL_ERR +POLL_HUP +POLL_IN +POLL_MSG +POLL_OUT +POLL_PRI +POSIX_CLOSE_RESTART +POSIX_FADV_DONTNEED +POSIX_FADV_NOREUSE +POSIX_FADV_NORMAL +POSIX_FADV_RANDOM +POSIX_FADV_SEQUENTIAL +POSIX_FADV_WILLNEED +POSIX_MADV_DONTNEED +POSIX_MADV_NORMAL +POSIX_MADV_RANDOM +POSIX_MADV_SEQUENTIAL +POSIX_MADV_WILLNEED +POSIX_SPAWN_RESETIDS +POSIX_SPAWN_SETPGROUP +POSIX_SPAWN_SETSCHEDPARAM +POSIX_SPAWN_SETSCHEDULER +POSIX_SPAWN_SETSID +POSIX_SPAWN_SETSIGDEF +POSIX_SPAWN_SETSIGMASK +POSIX_SPAWN_USEVFORK +POWF_LOG2_POLY_ORDER +POWF_LOG2_TABLE_BITS +POWF_SCALE_BITS +POW_LOG_POLY_ORDER +POW_LOG_TABLE_BITS +PPC64_OPT_LOCALENTRY +PPC64_OPT_MULTI_TOC +PPC64_OPT_TLS +PPC_OPT_TLS +PRIO_MAX +PRIO_MIN +PRIO_PGRP +PRIO_PROCESS +PRIO_USER +PRIX16 +PRIX32 +PRIX8 +PRIXFAST16 +PRIXFAST32 +PRIXFAST8 +PRIXLEAST16 +PRIXLEAST32 +PRIXLEAST8 +PRId16 +PRId32 +PRId8 +PRIdFAST16 +PRIdFAST32 +PRIdFAST8 +PRIdLEAST16 +PRIdLEAST32 +PRIdLEAST8 +PRIi16 +PRIi32 +PRIi8 +PRIiFAST16 +PRIiFAST32 +PRIiFAST8 +PRIiLEAST16 +PRIiLEAST32 +PRIiLEAST8 +PRIo16 +PRIo32 +PRIo8 +PRIoFAST16 +PRIoFAST32 +PRIoFAST8 +PRIoLEAST16 +PRIoLEAST32 +PRIoLEAST8 +PRIu16 +PRIu32 +PRIu8 +PRIuFAST16 +PRIuFAST32 +PRIuFAST8 +PRIuLEAST16 +PRIuLEAST32 +PRIuLEAST8 +PRIx16 +PRIx32 +PRIx8 +PRIxFAST16 +PRIxFAST32 +PRIxFAST8 +PRIxLEAST16 +PRIxLEAST32 +PRIxLEAST8 +PROT_EXEC +PROT_GROWSDOWN +PROT_GROWSUP +PROT_NONE +PROT_READ +PROT_WRITE +PR_CAPBSET_DROP +PR_CAPBSET_READ +PR_CAP_AMBIENT +PR_CAP_AMBIENT_CLEAR_ALL +PR_CAP_AMBIENT_IS_SET +PR_CAP_AMBIENT_LOWER +PR_CAP_AMBIENT_RAISE +PR_ENDIAN_BIG +PR_ENDIAN_LITTLE +PR_ENDIAN_PPC_LITTLE +PR_FPEMU_NOPRINT +PR_FPEMU_SIGFPE +PR_FP_EXC_ASYNC +PR_FP_EXC_DISABLED +PR_FP_EXC_DIV +PR_FP_EXC_INV +PR_FP_EXC_NONRECOV +PR_FP_EXC_OVF +PR_FP_EXC_PRECISE +PR_FP_EXC_RES +PR_FP_EXC_SW_ENABLE +PR_FP_EXC_UND +PR_FP_MODE_FR +PR_FP_MODE_FRE +PR_GET_CHILD_SUBREAPER +PR_GET_DUMPABLE +PR_GET_ENDIAN +PR_GET_FPEMU +PR_GET_FPEXC +PR_GET_FP_MODE +PR_GET_IO_FLUSHER +PR_GET_KEEPCAPS +PR_GET_NAME +PR_GET_NO_NEW_PRIVS +PR_GET_PDEATHSIG +PR_GET_SECCOMP +PR_GET_SECUREBITS +PR_GET_SPECULATION_CTRL +PR_GET_TAGGED_ADDR_CTRL +PR_GET_THP_DISABLE +PR_GET_TID_ADDRESS +PR_GET_TIMERSLACK +PR_GET_TIMING +PR_GET_TSC +PR_GET_UNALIGN +PR_MCE_KILL +PR_MCE_KILL_CLEAR +PR_MCE_KILL_DEFAULT +PR_MCE_KILL_EARLY +PR_MCE_KILL_GET +PR_MCE_KILL_LATE +PR_MCE_KILL_SET +PR_MPX_DISABLE_MANAGEMENT +PR_MPX_ENABLE_MANAGEMENT +PR_MTE_TAG_MASK +PR_MTE_TAG_SHIFT +PR_MTE_TCF_ASYNC +PR_MTE_TCF_MASK +PR_MTE_TCF_NONE +PR_MTE_TCF_SHIFT +PR_MTE_TCF_SYNC +PR_PAC_APDAKEY +PR_PAC_APDBKEY +PR_PAC_APGAKEY +PR_PAC_APIAKEY +PR_PAC_APIBKEY +PR_PAC_GET_ENABLED_KEYS +PR_PAC_RESET_KEYS +PR_PAC_SET_ENABLED_KEYS +PR_SET_CHILD_SUBREAPER +PR_SET_DUMPABLE +PR_SET_ENDIAN +PR_SET_FPEMU +PR_SET_FPEXC +PR_SET_FP_MODE +PR_SET_IO_FLUSHER +PR_SET_KEEPCAPS +PR_SET_MM +PR_SET_MM_ARG_END +PR_SET_MM_ARG_START +PR_SET_MM_AUXV +PR_SET_MM_BRK +PR_SET_MM_END_CODE +PR_SET_MM_END_DATA +PR_SET_MM_ENV_END +PR_SET_MM_ENV_START +PR_SET_MM_EXE_FILE +PR_SET_MM_MAP +PR_SET_MM_MAP_SIZE +PR_SET_MM_START_BRK +PR_SET_MM_START_CODE +PR_SET_MM_START_DATA +PR_SET_MM_START_STACK +PR_SET_NAME +PR_SET_NO_NEW_PRIVS +PR_SET_PDEATHSIG +PR_SET_PTRACER +PR_SET_PTRACER_ANY +PR_SET_SECCOMP +PR_SET_SECUREBITS +PR_SET_SPECULATION_CTRL +PR_SET_SYSCALL_USER_DISPATCH +PR_SET_TAGGED_ADDR_CTRL +PR_SET_THP_DISABLE +PR_SET_TIMERSLACK +PR_SET_TIMING +PR_SET_TSC +PR_SET_UNALIGN +PR_SPEC_DISABLE +PR_SPEC_DISABLE_NOEXEC +PR_SPEC_ENABLE +PR_SPEC_FORCE_DISABLE +PR_SPEC_INDIRECT_BRANCH +PR_SPEC_NOT_AFFECTED +PR_SPEC_PRCTL +PR_SPEC_STORE_BYPASS +PR_SVE_GET_VL +PR_SVE_SET_VL +PR_SVE_SET_VL_ONEXEC +PR_SVE_VL_INHERIT +PR_SVE_VL_LEN_MASK +PR_SYS_DISPATCH_OFF +PR_SYS_DISPATCH_ON +PR_TAGGED_ADDR_ENABLE +PR_TASK_PERF_EVENTS_DISABLE +PR_TASK_PERF_EVENTS_ENABLE +PR_TIMING_STATISTICAL +PR_TIMING_TIMESTAMP +PR_TSC_ENABLE +PR_TSC_SIGSEGV +PR_UNALIGN_NOPRINT +PR_UNALIGN_SIGBUS +PTHREAD_BARRIER_SERIAL_THREAD +PTHREAD_CANCELED +PTHREAD_CANCEL_ASYNCHRONOUS +PTHREAD_CANCEL_DEFERRED +PTHREAD_CANCEL_DISABLE +PTHREAD_CANCEL_ENABLE +PTHREAD_CANCEL_MASKED +PTHREAD_CREATE_DETACHED +PTHREAD_CREATE_JOINABLE +PTHREAD_DESTRUCTOR_ITERATIONS +PTHREAD_EXPLICIT_SCHED +PTHREAD_INHERIT_SCHED +PTHREAD_KEYS_MAX +PTHREAD_MUTEX_DEFAULT +PTHREAD_MUTEX_ERRORCHECK +PTHREAD_MUTEX_NORMAL +PTHREAD_MUTEX_RECURSIVE +PTHREAD_MUTEX_ROBUST +PTHREAD_MUTEX_STALLED +PTHREAD_ONCE_INIT +PTHREAD_PRIO_INHERIT +PTHREAD_PRIO_NONE +PTHREAD_PRIO_PROTECT +PTHREAD_PROCESS_PRIVATE +PTHREAD_PROCESS_SHARED +PTHREAD_SCOPE_PROCESS +PTHREAD_SCOPE_SYSTEM +PTHREAD_STACK_MIN +PTRACE_ARCH_PRCTL +PTRACE_ATTACH +PTRACE_CONT +PTRACE_DETACH +PTRACE_EVENT_CLONE +PTRACE_EVENT_EXEC +PTRACE_EVENT_EXIT +PTRACE_EVENT_FORK +PTRACE_EVENT_SECCOMP +PTRACE_EVENT_STOP +PTRACE_EVENT_VFORK +PTRACE_EVENT_VFORK_DONE +PTRACE_GETEVENTMSG +PTRACE_GETFPREGS +PTRACE_GETFPXREGS +PTRACE_GETREGS +PTRACE_GETREGSET +PTRACE_GETSIGINFO +PTRACE_GETSIGMASK +PTRACE_GET_RSEQ_CONFIGURATION +PTRACE_GET_SYSCALL_INFO +PTRACE_GET_THREAD_AREA +PTRACE_INTERRUPT +PTRACE_KILL +PTRACE_LISTEN +PTRACE_O_EXITKILL +PTRACE_O_MASK +PTRACE_O_SUSPEND_SECCOMP +PTRACE_O_TRACECLONE +PTRACE_O_TRACEEXEC +PTRACE_O_TRACEEXIT +PTRACE_O_TRACEFORK +PTRACE_O_TRACESECCOMP +PTRACE_O_TRACESYSGOOD +PTRACE_O_TRACEVFORK +PTRACE_O_TRACEVFORKDONE +PTRACE_PEEKDATA +PTRACE_PEEKSIGINFO +PTRACE_PEEKSIGINFO_SHARED +PTRACE_PEEKTEXT +PTRACE_PEEKUSER +PTRACE_POKEDATA +PTRACE_POKETEXT +PTRACE_POKEUSER +PTRACE_SECCOMP_GET_FILTER +PTRACE_SECCOMP_GET_METADATA +PTRACE_SEIZE +PTRACE_SETFPREGS +PTRACE_SETFPXREGS +PTRACE_SETOPTIONS +PTRACE_SETREGS +PTRACE_SETREGSET +PTRACE_SETSIGINFO +PTRACE_SETSIGMASK +PTRACE_SET_THREAD_AREA +PTRACE_SINGLEBLOCK +PTRACE_SINGLESTEP +PTRACE_SYSCALL +PTRACE_SYSCALL_INFO_ENTRY +PTRACE_SYSCALL_INFO_EXIT +PTRACE_SYSCALL_INFO_NONE +PTRACE_SYSCALL_INFO_SECCOMP +PTRACE_SYSEMU +PTRACE_SYSEMU_SINGLESTEP +PTRACE_TRACEME +PTRDIFF_MAX +PTRDIFF_MIN +PT_ARCH_PRCTL +PT_ARM_EXIDX +PT_ATTACH +PT_CONTINUE +PT_DETACH +PT_DYNAMIC +PT_GETEVENTMSG +PT_GETFPREGS +PT_GETFPXREGS +PT_GETREGS +PT_GETSIGINFO +PT_GET_THREAD_AREA +PT_GNU_EH_FRAME +PT_GNU_PROPERTY +PT_GNU_RELRO +PT_GNU_STACK +PT_HIOS +PT_HIPROC +PT_HISUNW +PT_HP_CORE_COMM +PT_HP_CORE_KERNEL +PT_HP_CORE_LOADABLE +PT_HP_CORE_MMF +PT_HP_CORE_NONE +PT_HP_CORE_PROC +PT_HP_CORE_SHM +PT_HP_CORE_STACK +PT_HP_CORE_VERSION +PT_HP_FASTBIND +PT_HP_HSL_ANNOT +PT_HP_OPT_ANNOT +PT_HP_PARALLEL +PT_HP_STACK +PT_HP_TLS +PT_IA_64_ARCHEXT +PT_IA_64_HP_HSL_ANOT +PT_IA_64_HP_OPT_ANOT +PT_IA_64_HP_STACK +PT_IA_64_UNWIND +PT_INTERP +PT_KILL +PT_LOAD +PT_LOOS +PT_LOPROC +PT_LOSUNW +PT_MIPS_ABIFLAGS +PT_MIPS_OPTIONS +PT_MIPS_REGINFO +PT_MIPS_RTPROC +PT_NOTE +PT_NULL +PT_NUM +PT_PARISC_ARCHEXT +PT_PARISC_UNWIND +PT_PHDR +PT_READ_D +PT_READ_I +PT_READ_U +PT_SETFPREGS +PT_SETFPXREGS +PT_SETOPTIONS +PT_SETREGS +PT_SETSIGINFO +PT_SET_THREAD_AREA +PT_SHLIB +PT_STEP +PT_STEPBLOCK +PT_SUNWBSS +PT_SUNWSTACK +PT_SYSCALL +PT_SYSEMU +PT_SYSEMU_SINGLESTEP +PT_TLS +PT_TRACE_ME +PT_WRITE_D +PT_WRITE_I +PT_WRITE_U +PUTLONG +PUTSHORT +PWDIRLEN +PWFOUND +PWGECOSLEN +PWGID +PWNAMELEN +PWPASSWDLEN +PWSHELLLEN +PWUID +PWVERSION +PW_LEN +P_tmpdir +PerfCounter +PostDecAtomicInt32 +PostDecAtomicInt64 +PostDecAtomicUint32 +PostDecAtomicUint64 +PostDecAtomicUintptr +PostDecBitFieldPtr16Int16 +PostDecBitFieldPtr16Int32 +PostDecBitFieldPtr16Int64 +PostDecBitFieldPtr16Int8 +PostDecBitFieldPtr16Uint16 +PostDecBitFieldPtr16Uint32 +PostDecBitFieldPtr16Uint64 +PostDecBitFieldPtr16Uint8 +PostDecBitFieldPtr32Int16 +PostDecBitFieldPtr32Int32 +PostDecBitFieldPtr32Int64 +PostDecBitFieldPtr32Int8 +PostDecBitFieldPtr32Uint16 +PostDecBitFieldPtr32Uint32 +PostDecBitFieldPtr32Uint64 +PostDecBitFieldPtr32Uint8 +PostDecBitFieldPtr64Int16 +PostDecBitFieldPtr64Int32 +PostDecBitFieldPtr64Int64 +PostDecBitFieldPtr64Int8 +PostDecBitFieldPtr64Uint16 +PostDecBitFieldPtr64Uint32 +PostDecBitFieldPtr64Uint64 +PostDecBitFieldPtr64Uint8 +PostDecBitFieldPtr8Int16 +PostDecBitFieldPtr8Int32 +PostDecBitFieldPtr8Int64 +PostDecBitFieldPtr8Int8 +PostDecBitFieldPtr8Uint16 +PostDecBitFieldPtr8Uint32 +PostDecBitFieldPtr8Uint64 +PostDecBitFieldPtr8Uint8 +PostDecComplex128 +PostDecComplex64 +PostDecFloat32 +PostDecFloat64 +PostDecInt16 +PostDecInt32 +PostDecInt64 +PostDecInt8 +PostDecUint16 +PostDecUint32 +PostDecUint64 +PostDecUint8 +PostDecUintptr +PostIncAtomicInt32 +PostIncAtomicInt32P +PostIncAtomicInt64 +PostIncAtomicInt64P +PostIncAtomicUint32 +PostIncAtomicUint32P +PostIncAtomicUint64 +PostIncAtomicUint64P +PostIncAtomicUintptr +PostIncAtomicUintptrP +PostIncBitFieldPtr16Int16 +PostIncBitFieldPtr16Int32 +PostIncBitFieldPtr16Int64 +PostIncBitFieldPtr16Int8 +PostIncBitFieldPtr16Uint16 +PostIncBitFieldPtr16Uint32 +PostIncBitFieldPtr16Uint64 +PostIncBitFieldPtr16Uint8 +PostIncBitFieldPtr32Int16 +PostIncBitFieldPtr32Int32 +PostIncBitFieldPtr32Int64 +PostIncBitFieldPtr32Int8 +PostIncBitFieldPtr32Uint16 +PostIncBitFieldPtr32Uint32 +PostIncBitFieldPtr32Uint64 +PostIncBitFieldPtr32Uint8 +PostIncBitFieldPtr64Int16 +PostIncBitFieldPtr64Int32 +PostIncBitFieldPtr64Int64 +PostIncBitFieldPtr64Int8 +PostIncBitFieldPtr64Uint16 +PostIncBitFieldPtr64Uint32 +PostIncBitFieldPtr64Uint64 +PostIncBitFieldPtr64Uint8 +PostIncBitFieldPtr8Int16 +PostIncBitFieldPtr8Int32 +PostIncBitFieldPtr8Int64 +PostIncBitFieldPtr8Int8 +PostIncBitFieldPtr8Uint16 +PostIncBitFieldPtr8Uint32 +PostIncBitFieldPtr8Uint64 +PostIncBitFieldPtr8Uint8 +PostIncComplex128 +PostIncComplex64 +PostIncFloat32 +PostIncFloat64 +PostIncInt16 +PostIncInt32 +PostIncInt64 +PostIncInt8 +PostIncUint16 +PostIncUint32 +PostIncUint64 +PostIncUint8 +PostIncUintptr +PreDecAtomicInt32 +PreDecAtomicInt64 +PreDecAtomicUint32 +PreDecAtomicUint64 +PreDecAtomicUintptr +PreDecComplex128 +PreDecComplex64 +PreDecFloat32 +PreDecFloat64 +PreDecInt16 +PreDecInt32 +PreDecInt64 +PreDecInt8 +PreDecUint16 +PreDecUint32 +PreDecUint64 +PreDecUint8 +PreDecUintptr +PreIncAtomicInt32 +PreIncAtomicInt32P +PreIncAtomicInt64 +PreIncAtomicInt64P +PreIncAtomicUint32 +PreIncAtomicUint32P +PreIncAtomicUint64 +PreIncAtomicUint64P +PreIncAtomicUintptr +PreIncComplex128 +PreIncComplex64 +PreIncFloat32 +PreIncFloat64 +PreIncInt16 +PreIncInt32 +PreIncInt64 +PreIncInt8 +PreIncUint16 +PreIncUint32 +PreIncUint64 +PreIncUint8 +PreIncUintptr +PreInrAtomicUintptrP +QFIXEDSZ +QFMT_OCFS2 +QFMT_VFS_OLD +QFMT_VFS_V0 +QFMT_VFS_V1 +QIF_ALL +QIF_BLIMITS +QIF_BTIME +QIF_ILIMITS +QIF_INODES +QIF_ITIME +QIF_LIMITS +QIF_SPACE +QIF_TIMES +QIF_USAGE +QUERY +QUESTION +QUOTAFILENAME +QUOTAGROUP +Q_GETFMT +Q_GETINFO +Q_GETQUOTA +Q_QUOTAOFF +Q_QUOTAON +Q_SETINFO +Q_SETQUOTA +Q_SYNC +R +RADIXCHAR +RAND_MAX +RB_AUTOBOOT +RB_DISABLE_CAD +RB_ENABLE_CAD +RB_HALT_SYSTEM +RB_KEXEC +RB_POWER_OFF +RB_SW_SUSPEND +READ_IMPLIES_EXEC +REFUSED +REG_BADBR +REG_BADPAT +REG_BADRPT +REG_EBRACE +REG_EBRACK +REG_ECOLLATE +REG_ECTYPE +REG_EESCAPE +REG_ENOSYS +REG_EPAREN +REG_ERANGE +REG_ESPACE +REG_ESUBREG +REG_EXTENDED +REG_ICASE +REG_NEWLINE +REG_NOMATCH +REG_NOSUB +REG_NOTBOL +REG_NOTEOL +REG_OK +REQKEYLEN +REQTYPE +REQVERSION +REQ_LEN +RES_AAONLY +RES_BLAST +RES_DEBUG +RES_DEFAULT +RES_DEFNAMES +RES_DFLRETRY +RES_DNSRCH +RES_EXHAUSTIVE +RES_F_CONN +RES_F_EDNS0ERR +RES_F_VC +RES_IGNTC +RES_INIT +RES_INSECURE1 +RES_INSECURE2 +RES_KEEPTSIG +RES_MAXNDOTS +RES_MAXRETRANS +RES_MAXRETRY +RES_MAXTIME +RES_NOALIASES +RES_NOCHECKNAME +RES_NOIP6DOTINT +RES_PRF_ADD +RES_PRF_ANS +RES_PRF_AUTH +RES_PRF_CLASS +RES_PRF_CMD +RES_PRF_HEAD1 +RES_PRF_HEAD2 +RES_PRF_HEADX +RES_PRF_INIT +RES_PRF_QUERY +RES_PRF_QUES +RES_PRF_REPLY +RES_PRF_STATS +RES_PRF_TTLID +RES_PRF_UPDATE +RES_PRIMARY +RES_RECURSE +RES_ROTATE +RES_SNGLKUP +RES_SNGLKUPREOP +RES_STAYOPEN +RES_TIMEOUT +RES_USEBSTRING +RES_USEVC +RES_USE_DNSSEC +RES_USE_EDNS0 +RES_USE_INET6 +RE_DUP_MAX +RHF_CORD +RHF_DEFAULT_DELAY_LOAD +RHF_DELTA_C_PLUS_PLUS +RHF_GUARANTEE_INIT +RHF_GUARANTEE_START_INIT +RHF_NONE +RHF_NOTPOT +RHF_NO_LIBRARY_REPLACEMENT +RHF_NO_MOVE +RHF_NO_UNRES_UNDEF +RHF_PIXIE +RHF_QUICKSTART +RHF_REQUICKSTART +RHF_REQUICKSTARTED +RHF_RLD_ORDER_SAFE +RHF_SGI_ONLY +RLIMIT_AS +RLIMIT_CORE +RLIMIT_CPU +RLIMIT_DATA +RLIMIT_FSIZE +RLIMIT_LOCKS +RLIMIT_MEMLOCK +RLIMIT_MSGQUEUE +RLIMIT_NICE +RLIMIT_NLIMITS +RLIMIT_NOFILE +RLIMIT_NPROC +RLIMIT_RSS +RLIMIT_RTPRIO +RLIMIT_RTTIME +RLIMIT_SIGPENDING +RLIMIT_STACK +RLIM_INFINITY +RLIM_NLIMITS +RLIM_SAVED_CUR +RLIM_SAVED_MAX +ROUNDS_DEFAULT +ROUNDS_MAX +ROUNDS_MIN +RRFIXEDSZ +RR_A +RR_AAAA +RR_CNAME +RR_PTR +RS +RTM_GETADDR +RTM_GETLINK +RTM_NEWADDR +RTM_NEWLINK +RUN_LVL +RUSAGE_CHILDREN +RUSAGE_SELF +RUSAGE_THREAD +RWF_APPEND +RWF_DSYNC +RWF_HIPRI +RWF_NOWAIT +RWF_SYNC +RWF_WRITE_LIFE_NOT_SET +RWH_WRITE_LIFE_EXTREME +RWH_WRITE_LIFE_LONG +RWH_WRITE_LIFE_MEDIUM +RWH_WRITE_LIFE_NONE +RWH_WRITE_LIFE_SHORT +R_386_16 +R_386_32 +R_386_32PLT +R_386_8 +R_386_COPY +R_386_GLOB_DAT +R_386_GOT32 +R_386_GOT32X +R_386_GOTOFF +R_386_GOTPC +R_386_IRELATIVE +R_386_JMP_SLOT +R_386_NONE +R_386_NUM +R_386_PC16 +R_386_PC32 +R_386_PC8 +R_386_PLT32 +R_386_RELATIVE +R_386_SIZE32 +R_386_TLS_DESC +R_386_TLS_DESC_CALL +R_386_TLS_DTPMOD32 +R_386_TLS_DTPOFF32 +R_386_TLS_GD +R_386_TLS_GD_32 +R_386_TLS_GD_CALL +R_386_TLS_GD_POP +R_386_TLS_GD_PUSH +R_386_TLS_GOTDESC +R_386_TLS_GOTIE +R_386_TLS_IE +R_386_TLS_IE_32 +R_386_TLS_LDM +R_386_TLS_LDM_32 +R_386_TLS_LDM_CALL +R_386_TLS_LDM_POP +R_386_TLS_LDM_PUSH +R_386_TLS_LDO_32 +R_386_TLS_LE +R_386_TLS_LE_32 +R_386_TLS_TPOFF +R_386_TLS_TPOFF32 +R_390_12 +R_390_16 +R_390_20 +R_390_32 +R_390_64 +R_390_8 +R_390_COPY +R_390_GLOB_DAT +R_390_GOT12 +R_390_GOT16 +R_390_GOT20 +R_390_GOT32 +R_390_GOT64 +R_390_GOTENT +R_390_GOTOFF16 +R_390_GOTOFF32 +R_390_GOTOFF64 +R_390_GOTPC +R_390_GOTPCDBL +R_390_GOTPLT12 +R_390_GOTPLT16 +R_390_GOTPLT20 +R_390_GOTPLT32 +R_390_GOTPLT64 +R_390_GOTPLTENT +R_390_JMP_SLOT +R_390_NONE +R_390_NUM +R_390_PC16 +R_390_PC16DBL +R_390_PC32 +R_390_PC32DBL +R_390_PC64 +R_390_PLT16DBL +R_390_PLT32 +R_390_PLT32DBL +R_390_PLT64 +R_390_PLTOFF16 +R_390_PLTOFF32 +R_390_PLTOFF64 +R_390_RELATIVE +R_390_TLS_DTPMOD +R_390_TLS_DTPOFF +R_390_TLS_GD32 +R_390_TLS_GD64 +R_390_TLS_GDCALL +R_390_TLS_GOTIE12 +R_390_TLS_GOTIE20 +R_390_TLS_GOTIE32 +R_390_TLS_GOTIE64 +R_390_TLS_IE32 +R_390_TLS_IE64 +R_390_TLS_IEENT +R_390_TLS_LDCALL +R_390_TLS_LDM32 +R_390_TLS_LDM64 +R_390_TLS_LDO32 +R_390_TLS_LDO64 +R_390_TLS_LE32 +R_390_TLS_LE64 +R_390_TLS_LOAD +R_390_TLS_TPOFF +R_68K_16 +R_68K_32 +R_68K_8 +R_68K_COPY +R_68K_GLOB_DAT +R_68K_GOT16 +R_68K_GOT16O +R_68K_GOT32 +R_68K_GOT32O +R_68K_GOT8 +R_68K_GOT8O +R_68K_JMP_SLOT +R_68K_NONE +R_68K_NUM +R_68K_PC16 +R_68K_PC32 +R_68K_PC8 +R_68K_PLT16 +R_68K_PLT16O +R_68K_PLT32 +R_68K_PLT32O +R_68K_PLT8 +R_68K_PLT8O +R_68K_RELATIVE +R_68K_TLS_DTPMOD32 +R_68K_TLS_DTPREL32 +R_68K_TLS_GD16 +R_68K_TLS_GD32 +R_68K_TLS_GD8 +R_68K_TLS_IE16 +R_68K_TLS_IE32 +R_68K_TLS_IE8 +R_68K_TLS_LDM16 +R_68K_TLS_LDM32 +R_68K_TLS_LDM8 +R_68K_TLS_LDO16 +R_68K_TLS_LDO32 +R_68K_TLS_LDO8 +R_68K_TLS_LE16 +R_68K_TLS_LE32 +R_68K_TLS_LE8 +R_68K_TLS_TPREL32 +R_AARCH64_ABS16 +R_AARCH64_ABS32 +R_AARCH64_ABS64 +R_AARCH64_ADD_ABS_LO12_NC +R_AARCH64_ADR_GOT_PAGE +R_AARCH64_ADR_PREL_LO21 +R_AARCH64_ADR_PREL_PG_HI21 +R_AARCH64_ADR_PREL_PG_HI21_NC +R_AARCH64_CALL26 +R_AARCH64_CONDBR19 +R_AARCH64_COPY +R_AARCH64_GLOB_DAT +R_AARCH64_GOTREL32 +R_AARCH64_GOTREL64 +R_AARCH64_GOT_LD_PREL19 +R_AARCH64_JUMP26 +R_AARCH64_JUMP_SLOT +R_AARCH64_LD64_GOTOFF_LO15 +R_AARCH64_LD64_GOTPAGE_LO15 +R_AARCH64_LD64_GOT_LO12_NC +R_AARCH64_LDST128_ABS_LO12_NC +R_AARCH64_LDST16_ABS_LO12_NC +R_AARCH64_LDST32_ABS_LO12_NC +R_AARCH64_LDST64_ABS_LO12_NC +R_AARCH64_LDST8_ABS_LO12_NC +R_AARCH64_LD_PREL_LO19 +R_AARCH64_MOVW_GOTOFF_G0 +R_AARCH64_MOVW_GOTOFF_G0_NC +R_AARCH64_MOVW_GOTOFF_G1 +R_AARCH64_MOVW_GOTOFF_G1_NC +R_AARCH64_MOVW_GOTOFF_G2 +R_AARCH64_MOVW_GOTOFF_G2_NC +R_AARCH64_MOVW_GOTOFF_G3 +R_AARCH64_MOVW_PREL_G0 +R_AARCH64_MOVW_PREL_G0_NC +R_AARCH64_MOVW_PREL_G1 +R_AARCH64_MOVW_PREL_G1_NC +R_AARCH64_MOVW_PREL_G2 +R_AARCH64_MOVW_PREL_G2_NC +R_AARCH64_MOVW_PREL_G3 +R_AARCH64_MOVW_SABS_G0 +R_AARCH64_MOVW_SABS_G1 +R_AARCH64_MOVW_SABS_G2 +R_AARCH64_MOVW_UABS_G0 +R_AARCH64_MOVW_UABS_G0_NC +R_AARCH64_MOVW_UABS_G1 +R_AARCH64_MOVW_UABS_G1_NC +R_AARCH64_MOVW_UABS_G2 +R_AARCH64_MOVW_UABS_G2_NC +R_AARCH64_MOVW_UABS_G3 +R_AARCH64_NONE +R_AARCH64_P32_ABS32 +R_AARCH64_P32_COPY +R_AARCH64_P32_GLOB_DAT +R_AARCH64_P32_IRELATIVE +R_AARCH64_P32_JUMP_SLOT +R_AARCH64_P32_RELATIVE +R_AARCH64_P32_TLSDESC +R_AARCH64_P32_TLS_DTPMOD +R_AARCH64_P32_TLS_DTPREL +R_AARCH64_P32_TLS_TPREL +R_AARCH64_PREL16 +R_AARCH64_PREL32 +R_AARCH64_PREL64 +R_AARCH64_RELATIVE +R_AARCH64_TLSDESC +R_AARCH64_TLSDESC_ADD +R_AARCH64_TLSDESC_ADD_LO12 +R_AARCH64_TLSDESC_ADR_PAGE21 +R_AARCH64_TLSDESC_ADR_PREL21 +R_AARCH64_TLSDESC_CALL +R_AARCH64_TLSDESC_LD64_LO12 +R_AARCH64_TLSDESC_LDR +R_AARCH64_TLSDESC_LD_PREL19 +R_AARCH64_TLSDESC_OFF_G0_NC +R_AARCH64_TLSDESC_OFF_G1 +R_AARCH64_TLSGD_ADD_LO12_NC +R_AARCH64_TLSGD_ADR_PAGE21 +R_AARCH64_TLSGD_ADR_PREL21 +R_AARCH64_TLSGD_MOVW_G0_NC +R_AARCH64_TLSGD_MOVW_G1 +R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21 +R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC +R_AARCH64_TLSIE_LD_GOTTPREL_PREL19 +R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC +R_AARCH64_TLSIE_MOVW_GOTTPREL_G1 +R_AARCH64_TLSLD_ADD_DTPREL_HI12 +R_AARCH64_TLSLD_ADD_DTPREL_LO12 +R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC +R_AARCH64_TLSLD_ADD_LO12_NC +R_AARCH64_TLSLD_ADR_PAGE21 +R_AARCH64_TLSLD_ADR_PREL21 +R_AARCH64_TLSLD_LDST128_DTPREL_LO12 +R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC +R_AARCH64_TLSLD_LDST16_DTPREL_LO12 +R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC +R_AARCH64_TLSLD_LDST32_DTPREL_LO12 +R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC +R_AARCH64_TLSLD_LDST64_DTPREL_LO12 +R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC +R_AARCH64_TLSLD_LDST8_DTPREL_LO12 +R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC +R_AARCH64_TLSLD_LD_PREL19 +R_AARCH64_TLSLD_MOVW_DTPREL_G0 +R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC +R_AARCH64_TLSLD_MOVW_DTPREL_G1 +R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC +R_AARCH64_TLSLD_MOVW_DTPREL_G2 +R_AARCH64_TLSLD_MOVW_G0_NC +R_AARCH64_TLSLD_MOVW_G1 +R_AARCH64_TLSLE_ADD_TPREL_HI12 +R_AARCH64_TLSLE_ADD_TPREL_LO12 +R_AARCH64_TLSLE_ADD_TPREL_LO12_NC +R_AARCH64_TLSLE_LDST128_TPREL_LO12 +R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC +R_AARCH64_TLSLE_LDST16_TPREL_LO12 +R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC +R_AARCH64_TLSLE_LDST32_TPREL_LO12 +R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC +R_AARCH64_TLSLE_LDST64_TPREL_LO12 +R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC +R_AARCH64_TLSLE_LDST8_TPREL_LO12 +R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC +R_AARCH64_TLSLE_MOVW_TPREL_G0 +R_AARCH64_TLSLE_MOVW_TPREL_G0_NC +R_AARCH64_TLSLE_MOVW_TPREL_G1 +R_AARCH64_TLSLE_MOVW_TPREL_G1_NC +R_AARCH64_TLSLE_MOVW_TPREL_G2 +R_AARCH64_TLS_DTPMOD +R_AARCH64_TLS_DTPMOD64 +R_AARCH64_TLS_DTPREL +R_AARCH64_TLS_DTPREL64 +R_AARCH64_TLS_TPREL +R_AARCH64_TLS_TPREL64 +R_AARCH64_TSTBR14 +R_ALPHA_BRADDR +R_ALPHA_COPY +R_ALPHA_DTPMOD64 +R_ALPHA_DTPREL16 +R_ALPHA_DTPREL64 +R_ALPHA_DTPRELHI +R_ALPHA_DTPRELLO +R_ALPHA_GLOB_DAT +R_ALPHA_GOTDTPREL +R_ALPHA_GOTTPREL +R_ALPHA_GPDISP +R_ALPHA_GPREL16 +R_ALPHA_GPREL32 +R_ALPHA_GPRELHIGH +R_ALPHA_GPRELLOW +R_ALPHA_HINT +R_ALPHA_JMP_SLOT +R_ALPHA_LITERAL +R_ALPHA_LITUSE +R_ALPHA_NONE +R_ALPHA_NUM +R_ALPHA_REFLONG +R_ALPHA_REFQUAD +R_ALPHA_RELATIVE +R_ALPHA_SREL16 +R_ALPHA_SREL32 +R_ALPHA_SREL64 +R_ALPHA_TLSGD +R_ALPHA_TLS_GD_HI +R_ALPHA_TLS_LDM +R_ALPHA_TPREL16 +R_ALPHA_TPREL64 +R_ALPHA_TPRELHI +R_ALPHA_TPRELLO +R_ARM_ABS12 +R_ARM_ABS16 +R_ARM_ABS32 +R_ARM_ABS32_NOI +R_ARM_ABS8 +R_ARM_ALU_PCREL_15_8 +R_ARM_ALU_PCREL_23_15 +R_ARM_ALU_PCREL_7_0 +R_ARM_ALU_PC_G0 +R_ARM_ALU_PC_G0_NC +R_ARM_ALU_PC_G1 +R_ARM_ALU_PC_G1_NC +R_ARM_ALU_PC_G2 +R_ARM_ALU_SBREL_19_12 +R_ARM_ALU_SBREL_27_20 +R_ARM_ALU_SB_G0 +R_ARM_ALU_SB_G0_NC +R_ARM_ALU_SB_G1 +R_ARM_ALU_SB_G1_NC +R_ARM_ALU_SB_G2 +R_ARM_AMP_VCALL9 +R_ARM_BASE_ABS +R_ARM_CALL +R_ARM_COPY +R_ARM_GLOB_DAT +R_ARM_GNU_VTENTRY +R_ARM_GNU_VTINHERIT +R_ARM_GOT32 +R_ARM_GOTOFF +R_ARM_GOTOFF12 +R_ARM_GOTPC +R_ARM_GOTRELAX +R_ARM_GOT_ABS +R_ARM_GOT_BREL12 +R_ARM_GOT_PREL +R_ARM_IRELATIVE +R_ARM_JUMP24 +R_ARM_JUMP_SLOT +R_ARM_LDC_PC_G0 +R_ARM_LDC_PC_G1 +R_ARM_LDC_PC_G2 +R_ARM_LDC_SB_G0 +R_ARM_LDC_SB_G1 +R_ARM_LDC_SB_G2 +R_ARM_LDRS_PC_G0 +R_ARM_LDRS_PC_G1 +R_ARM_LDRS_PC_G2 +R_ARM_LDRS_SB_G0 +R_ARM_LDRS_SB_G1 +R_ARM_LDRS_SB_G2 +R_ARM_LDR_PC_G1 +R_ARM_LDR_PC_G2 +R_ARM_LDR_SBREL_11_0 +R_ARM_LDR_SB_G0 +R_ARM_LDR_SB_G1 +R_ARM_LDR_SB_G2 +R_ARM_ME_TOO +R_ARM_MOVT_ABS +R_ARM_MOVT_BREL +R_ARM_MOVT_PREL +R_ARM_MOVW_ABS_NC +R_ARM_MOVW_BREL +R_ARM_MOVW_BREL_NC +R_ARM_MOVW_PREL_NC +R_ARM_NONE +R_ARM_NUM +R_ARM_PC13 +R_ARM_PC24 +R_ARM_PLT32 +R_ARM_PLT32_ABS +R_ARM_PREL31 +R_ARM_RABS22 +R_ARM_RBASE +R_ARM_REL32 +R_ARM_REL32_NOI +R_ARM_RELATIVE +R_ARM_RPC24 +R_ARM_RREL32 +R_ARM_RSBREL32 +R_ARM_RXPC25 +R_ARM_SBREL31 +R_ARM_SBREL32 +R_ARM_TARGET1 +R_ARM_TARGET2 +R_ARM_THM_ABS5 +R_ARM_THM_ALU_PREL_11_0 +R_ARM_THM_GOT_BREL12 +R_ARM_THM_JUMP19 +R_ARM_THM_JUMP24 +R_ARM_THM_JUMP6 +R_ARM_THM_MOVT_ABS +R_ARM_THM_MOVT_BREL +R_ARM_THM_MOVT_PREL +R_ARM_THM_MOVW_ABS_NC +R_ARM_THM_MOVW_BREL +R_ARM_THM_MOVW_BREL_NC +R_ARM_THM_MOVW_PREL_NC +R_ARM_THM_PC11 +R_ARM_THM_PC12 +R_ARM_THM_PC22 +R_ARM_THM_PC8 +R_ARM_THM_PC9 +R_ARM_THM_RPC22 +R_ARM_THM_SWI8 +R_ARM_THM_TLS_CALL +R_ARM_THM_TLS_DESCSEQ +R_ARM_THM_TLS_DESCSEQ16 +R_ARM_THM_TLS_DESCSEQ32 +R_ARM_THM_XPC22 +R_ARM_TLS_CALL +R_ARM_TLS_DESC +R_ARM_TLS_DESCSEQ +R_ARM_TLS_DTPMOD32 +R_ARM_TLS_DTPOFF32 +R_ARM_TLS_GD32 +R_ARM_TLS_GOTDESC +R_ARM_TLS_IE12GP +R_ARM_TLS_IE32 +R_ARM_TLS_LDM32 +R_ARM_TLS_LDO12 +R_ARM_TLS_LDO32 +R_ARM_TLS_LE12 +R_ARM_TLS_LE32 +R_ARM_TLS_TPOFF32 +R_ARM_V4BX +R_ARM_XPC25 +R_BPF_MAP_FD +R_BPF_NONE +R_CKCORE_ADDR32 +R_CKCORE_ADDRGOT +R_CKCORE_ADDRGOT_HI16 +R_CKCORE_ADDRGOT_LO16 +R_CKCORE_ADDRPLT +R_CKCORE_ADDRPLT_HI16 +R_CKCORE_ADDRPLT_LO16 +R_CKCORE_ADDR_HI16 +R_CKCORE_ADDR_LO16 +R_CKCORE_COPY +R_CKCORE_DOFFSET_IMM18 +R_CKCORE_DOFFSET_IMM18BY2 +R_CKCORE_DOFFSET_IMM18BY4 +R_CKCORE_DOFFSET_LO16 +R_CKCORE_GLOB_DAT +R_CKCORE_GOT12 +R_CKCORE_GOT32 +R_CKCORE_GOTOFF +R_CKCORE_GOTOFF_HI16 +R_CKCORE_GOTOFF_LO16 +R_CKCORE_GOTPC +R_CKCORE_GOTPC_HI16 +R_CKCORE_GOTPC_LO16 +R_CKCORE_GOT_HI16 +R_CKCORE_GOT_IMM18BY4 +R_CKCORE_GOT_LO16 +R_CKCORE_JUMP_SLOT +R_CKCORE_NONE +R_CKCORE_PCREL32 +R_CKCORE_PCRELIMM11BY2 +R_CKCORE_PCRELIMM8BY4 +R_CKCORE_PCRELJSR_IMM11BY2 +R_CKCORE_PCREL_IMM10BY2 +R_CKCORE_PCREL_IMM10BY4 +R_CKCORE_PCREL_IMM16BY2 +R_CKCORE_PCREL_IMM16BY4 +R_CKCORE_PCREL_IMM18BY2 +R_CKCORE_PCREL_IMM26BY2 +R_CKCORE_PCREL_IMM7BY4 +R_CKCORE_PCREL_JSR_IMM26BY2 +R_CKCORE_PLT12 +R_CKCORE_PLT32 +R_CKCORE_PLT_HI16 +R_CKCORE_PLT_IMM18BY4 +R_CKCORE_PLT_LO16 +R_CKCORE_RELATIVE +R_CKCORE_TLS_DTPMOD32 +R_CKCORE_TLS_DTPOFF32 +R_CKCORE_TLS_GD32 +R_CKCORE_TLS_IE32 +R_CKCORE_TLS_LDM32 +R_CKCORE_TLS_LDO32 +R_CKCORE_TLS_LE32 +R_CKCORE_TLS_TPOFF32 +R_CKCORE_TOFFSET_LO16 +R_CRIS_16 +R_CRIS_16_GOT +R_CRIS_16_GOTPLT +R_CRIS_16_PCREL +R_CRIS_32 +R_CRIS_32_GOT +R_CRIS_32_GOTPLT +R_CRIS_32_GOTREL +R_CRIS_32_PCREL +R_CRIS_32_PLT_GOTREL +R_CRIS_32_PLT_PCREL +R_CRIS_8 +R_CRIS_8_PCREL +R_CRIS_COPY +R_CRIS_GLOB_DAT +R_CRIS_GNU_VTENTRY +R_CRIS_GNU_VTINHERIT +R_CRIS_JUMP_SLOT +R_CRIS_NONE +R_CRIS_NUM +R_CRIS_RELATIVE +R_IA64_COPY +R_IA64_DIR32LSB +R_IA64_DIR32MSB +R_IA64_DIR64LSB +R_IA64_DIR64MSB +R_IA64_DTPMOD64LSB +R_IA64_DTPMOD64MSB +R_IA64_DTPREL14 +R_IA64_DTPREL22 +R_IA64_DTPREL32LSB +R_IA64_DTPREL32MSB +R_IA64_DTPREL64I +R_IA64_DTPREL64LSB +R_IA64_DTPREL64MSB +R_IA64_FPTR32LSB +R_IA64_FPTR32MSB +R_IA64_FPTR64I +R_IA64_FPTR64LSB +R_IA64_FPTR64MSB +R_IA64_GPREL22 +R_IA64_GPREL32LSB +R_IA64_GPREL32MSB +R_IA64_GPREL64I +R_IA64_GPREL64LSB +R_IA64_GPREL64MSB +R_IA64_IMM14 +R_IA64_IMM22 +R_IA64_IMM64 +R_IA64_IPLTLSB +R_IA64_IPLTMSB +R_IA64_LDXMOV +R_IA64_LTOFF22 +R_IA64_LTOFF22X +R_IA64_LTOFF64I +R_IA64_LTOFF_DTPMOD22 +R_IA64_LTOFF_DTPREL22 +R_IA64_LTOFF_FPTR22 +R_IA64_LTOFF_FPTR32LSB +R_IA64_LTOFF_FPTR32MSB +R_IA64_LTOFF_FPTR64I +R_IA64_LTOFF_FPTR64LSB +R_IA64_LTOFF_FPTR64MSB +R_IA64_LTOFF_TPREL22 +R_IA64_LTV32LSB +R_IA64_LTV32MSB +R_IA64_LTV64LSB +R_IA64_LTV64MSB +R_IA64_NONE +R_IA64_PCREL21B +R_IA64_PCREL21BI +R_IA64_PCREL21F +R_IA64_PCREL21M +R_IA64_PCREL22 +R_IA64_PCREL32LSB +R_IA64_PCREL32MSB +R_IA64_PCREL60B +R_IA64_PCREL64I +R_IA64_PCREL64LSB +R_IA64_PCREL64MSB +R_IA64_PLTOFF22 +R_IA64_PLTOFF64I +R_IA64_PLTOFF64LSB +R_IA64_PLTOFF64MSB +R_IA64_REL32LSB +R_IA64_REL32MSB +R_IA64_REL64LSB +R_IA64_REL64MSB +R_IA64_SECREL32LSB +R_IA64_SECREL32MSB +R_IA64_SECREL64LSB +R_IA64_SECREL64MSB +R_IA64_SEGREL32LSB +R_IA64_SEGREL32MSB +R_IA64_SEGREL64LSB +R_IA64_SEGREL64MSB +R_IA64_SUB +R_IA64_TPREL14 +R_IA64_TPREL22 +R_IA64_TPREL64I +R_IA64_TPREL64LSB +R_IA64_TPREL64MSB +R_LARCH_32 +R_LARCH_32_PCREL +R_LARCH_64 +R_LARCH_ABS64_HI12 +R_LARCH_ABS64_LO20 +R_LARCH_ABS_HI20 +R_LARCH_ABS_LO12 +R_LARCH_ADD16 +R_LARCH_ADD24 +R_LARCH_ADD32 +R_LARCH_ADD64 +R_LARCH_ADD8 +R_LARCH_B16 +R_LARCH_B21 +R_LARCH_B26 +R_LARCH_COPY +R_LARCH_GNU_VTENTRY +R_LARCH_GNU_VTINHERIT +R_LARCH_GOT64_HI12 +R_LARCH_GOT64_LO20 +R_LARCH_GOT64_PC_HI12 +R_LARCH_GOT64_PC_LO20 +R_LARCH_GOT_HI20 +R_LARCH_GOT_LO12 +R_LARCH_GOT_PC_HI20 +R_LARCH_GOT_PC_LO12 +R_LARCH_IRELATIVE +R_LARCH_JUMP_SLOT +R_LARCH_MARK_LA +R_LARCH_MARK_PCREL +R_LARCH_NONE +R_LARCH_PCALA64_HI12 +R_LARCH_PCALA64_LO20 +R_LARCH_PCALA_HI20 +R_LARCH_PCALA_LO12 +R_LARCH_RELATIVE +R_LARCH_RELAX +R_LARCH_SOP_ADD +R_LARCH_SOP_AND +R_LARCH_SOP_ASSERT +R_LARCH_SOP_IF_ELSE +R_LARCH_SOP_NOT +R_LARCH_SOP_POP_32_S_0_10_10_16_S2 +R_LARCH_SOP_POP_32_S_0_5_10_16_S2 +R_LARCH_SOP_POP_32_S_10_12 +R_LARCH_SOP_POP_32_S_10_16 +R_LARCH_SOP_POP_32_S_10_16_S2 +R_LARCH_SOP_POP_32_S_10_5 +R_LARCH_SOP_POP_32_S_5_20 +R_LARCH_SOP_POP_32_U +R_LARCH_SOP_POP_32_U_10_12 +R_LARCH_SOP_PUSH_ABSOLUTE +R_LARCH_SOP_PUSH_DUP +R_LARCH_SOP_PUSH_GPREL +R_LARCH_SOP_PUSH_PCREL +R_LARCH_SOP_PUSH_PLT_PCREL +R_LARCH_SOP_PUSH_TLS_GD +R_LARCH_SOP_PUSH_TLS_GOT +R_LARCH_SOP_PUSH_TLS_TPREL +R_LARCH_SOP_SL +R_LARCH_SOP_SR +R_LARCH_SOP_SUB +R_LARCH_SUB16 +R_LARCH_SUB24 +R_LARCH_SUB32 +R_LARCH_SUB64 +R_LARCH_SUB8 +R_LARCH_TLS_DTPMOD32 +R_LARCH_TLS_DTPMOD64 +R_LARCH_TLS_DTPREL32 +R_LARCH_TLS_DTPREL64 +R_LARCH_TLS_GD_HI20 +R_LARCH_TLS_GD_PC_HI20 +R_LARCH_TLS_IE64_HI12 +R_LARCH_TLS_IE64_LO20 +R_LARCH_TLS_IE64_PC_HI12 +R_LARCH_TLS_IE64_PC_LO20 +R_LARCH_TLS_IE_HI20 +R_LARCH_TLS_IE_LO12 +R_LARCH_TLS_IE_PC_HI20 +R_LARCH_TLS_IE_PC_LO12 +R_LARCH_TLS_LD_HI20 +R_LARCH_TLS_LD_PC_HI20 +R_LARCH_TLS_LE64_HI12 +R_LARCH_TLS_LE64_LO20 +R_LARCH_TLS_LE_HI20 +R_LARCH_TLS_LE_LO12 +R_LARCH_TLS_TPREL32 +R_LARCH_TLS_TPREL64 +R_M32R_10_PCREL +R_M32R_10_PCREL_RELA +R_M32R_16 +R_M32R_16_RELA +R_M32R_18_PCREL +R_M32R_18_PCREL_RELA +R_M32R_24 +R_M32R_24_RELA +R_M32R_26_PCREL +R_M32R_26_PCREL_RELA +R_M32R_26_PLTREL +R_M32R_32 +R_M32R_32_RELA +R_M32R_COPY +R_M32R_GLOB_DAT +R_M32R_GNU_VTENTRY +R_M32R_GNU_VTINHERIT +R_M32R_GOT16_HI_SLO +R_M32R_GOT16_HI_ULO +R_M32R_GOT16_LO +R_M32R_GOT24 +R_M32R_GOTOFF +R_M32R_GOTOFF_HI_SLO +R_M32R_GOTOFF_HI_ULO +R_M32R_GOTOFF_LO +R_M32R_GOTPC24 +R_M32R_GOTPC_HI_SLO +R_M32R_GOTPC_HI_ULO +R_M32R_GOTPC_LO +R_M32R_HI16_SLO +R_M32R_HI16_SLO_RELA +R_M32R_HI16_ULO +R_M32R_HI16_ULO_RELA +R_M32R_JMP_SLOT +R_M32R_LO16 +R_M32R_LO16_RELA +R_M32R_NONE +R_M32R_NUM +R_M32R_REL32 +R_M32R_RELATIVE +R_M32R_RELA_GNU_VTENTRY +R_M32R_RELA_GNU_VTINHERIT +R_M32R_SDA16 +R_M32R_SDA16_RELA +R_MICROBLAZE_32 +R_MICROBLAZE_32_LO +R_MICROBLAZE_32_PCREL +R_MICROBLAZE_32_PCREL_LO +R_MICROBLAZE_32_SYM_OP_SYM +R_MICROBLAZE_64 +R_MICROBLAZE_64_NONE +R_MICROBLAZE_64_PCREL +R_MICROBLAZE_COPY +R_MICROBLAZE_GLOB_DAT +R_MICROBLAZE_GNU_VTENTRY +R_MICROBLAZE_GNU_VTINHERIT +R_MICROBLAZE_GOTOFF_32 +R_MICROBLAZE_GOTOFF_64 +R_MICROBLAZE_GOTPC_64 +R_MICROBLAZE_GOT_64 +R_MICROBLAZE_JUMP_SLOT +R_MICROBLAZE_NONE +R_MICROBLAZE_PLT_64 +R_MICROBLAZE_REL +R_MICROBLAZE_SRO32 +R_MICROBLAZE_SRW32 +R_MICROBLAZE_TLS +R_MICROBLAZE_TLSDTPMOD32 +R_MICROBLAZE_TLSDTPREL32 +R_MICROBLAZE_TLSDTPREL64 +R_MICROBLAZE_TLSGD +R_MICROBLAZE_TLSGOTTPREL32 +R_MICROBLAZE_TLSLD +R_MICROBLAZE_TLSTPREL32 +R_MIPS_16 +R_MIPS_26 +R_MIPS_32 +R_MIPS_64 +R_MIPS_ADD_IMMEDIATE +R_MIPS_CALL16 +R_MIPS_CALL_HI16 +R_MIPS_CALL_LO16 +R_MIPS_COPY +R_MIPS_DELETE +R_MIPS_GLOB_DAT +R_MIPS_GOT16 +R_MIPS_GOT_DISP +R_MIPS_GOT_HI16 +R_MIPS_GOT_LO16 +R_MIPS_GOT_OFST +R_MIPS_GOT_PAGE +R_MIPS_GPREL16 +R_MIPS_GPREL32 +R_MIPS_HI16 +R_MIPS_HIGHER +R_MIPS_HIGHEST +R_MIPS_INSERT_A +R_MIPS_INSERT_B +R_MIPS_JALR +R_MIPS_JUMP_SLOT +R_MIPS_LITERAL +R_MIPS_LO16 +R_MIPS_NONE +R_MIPS_NUM +R_MIPS_PC16 +R_MIPS_PJUMP +R_MIPS_REL16 +R_MIPS_REL32 +R_MIPS_RELGOT +R_MIPS_SCN_DISP +R_MIPS_SHIFT5 +R_MIPS_SHIFT6 +R_MIPS_SUB +R_MIPS_TLS_DTPMOD32 +R_MIPS_TLS_DTPMOD64 +R_MIPS_TLS_DTPREL32 +R_MIPS_TLS_DTPREL64 +R_MIPS_TLS_DTPREL_HI16 +R_MIPS_TLS_DTPREL_LO16 +R_MIPS_TLS_GD +R_MIPS_TLS_GOTTPREL +R_MIPS_TLS_LDM +R_MIPS_TLS_TPREL32 +R_MIPS_TLS_TPREL64 +R_MIPS_TLS_TPREL_HI16 +R_MIPS_TLS_TPREL_LO16 +R_MN10300_16 +R_MN10300_24 +R_MN10300_32 +R_MN10300_8 +R_MN10300_COPY +R_MN10300_GLOB_DAT +R_MN10300_GNU_VTENTRY +R_MN10300_GNU_VTINHERIT +R_MN10300_GOT16 +R_MN10300_GOT24 +R_MN10300_GOT32 +R_MN10300_GOTOFF16 +R_MN10300_GOTOFF24 +R_MN10300_GOTOFF32 +R_MN10300_GOTPC16 +R_MN10300_GOTPC32 +R_MN10300_JMP_SLOT +R_MN10300_NONE +R_MN10300_NUM +R_MN10300_PCREL16 +R_MN10300_PCREL32 +R_MN10300_PCREL8 +R_MN10300_PLT16 +R_MN10300_PLT32 +R_MN10300_RELATIVE +R_NIOS2_ALIGN +R_NIOS2_BFD_RELOC_16 +R_NIOS2_BFD_RELOC_32 +R_NIOS2_BFD_RELOC_8 +R_NIOS2_CACHE_OPX +R_NIOS2_CALL16 +R_NIOS2_CALL26 +R_NIOS2_CALL26_NOAT +R_NIOS2_CALLR +R_NIOS2_CALL_HA +R_NIOS2_CALL_LO +R_NIOS2_CJMP +R_NIOS2_COPY +R_NIOS2_GLOB_DAT +R_NIOS2_GNU_VTENTRY +R_NIOS2_GNU_VTINHERIT +R_NIOS2_GOT16 +R_NIOS2_GOTOFF +R_NIOS2_GOTOFF_HA +R_NIOS2_GOTOFF_LO +R_NIOS2_GOT_HA +R_NIOS2_GOT_LO +R_NIOS2_GPREL +R_NIOS2_HI16 +R_NIOS2_HIADJ16 +R_NIOS2_IMM5 +R_NIOS2_IMM6 +R_NIOS2_IMM8 +R_NIOS2_JUMP_SLOT +R_NIOS2_LO16 +R_NIOS2_NONE +R_NIOS2_PCREL16 +R_NIOS2_PCREL_HA +R_NIOS2_PCREL_LO +R_NIOS2_RELATIVE +R_NIOS2_S16 +R_NIOS2_TLS_DTPMOD +R_NIOS2_TLS_DTPREL +R_NIOS2_TLS_GD16 +R_NIOS2_TLS_IE16 +R_NIOS2_TLS_LDM16 +R_NIOS2_TLS_LDO16 +R_NIOS2_TLS_LE16 +R_NIOS2_TLS_TPREL +R_NIOS2_U16 +R_NIOS2_UJMP +R_OK +R_OR1K_16 +R_OR1K_16_PCREL +R_OR1K_32 +R_OR1K_32_PCREL +R_OR1K_8 +R_OR1K_8_PCREL +R_OR1K_COPY +R_OR1K_GLOB_DAT +R_OR1K_GNU_VTENTRY +R_OR1K_GNU_VTINHERIT +R_OR1K_GOT16 +R_OR1K_GOTOFF_HI16 +R_OR1K_GOTOFF_LO16 +R_OR1K_GOTPC_HI16 +R_OR1K_GOTPC_LO16 +R_OR1K_HI_16_IN_INSN +R_OR1K_INSN_REL_26 +R_OR1K_JMP_SLOT +R_OR1K_LO_16_IN_INSN +R_OR1K_NONE +R_OR1K_PLT26 +R_OR1K_RELATIVE +R_OR1K_TLS_DTPMOD +R_OR1K_TLS_DTPOFF +R_OR1K_TLS_GD_HI16 +R_OR1K_TLS_GD_LO16 +R_OR1K_TLS_IE_HI16 +R_OR1K_TLS_IE_LO16 +R_OR1K_TLS_LDM_HI16 +R_OR1K_TLS_LDM_LO16 +R_OR1K_TLS_LDO_HI16 +R_OR1K_TLS_LDO_LO16 +R_OR1K_TLS_LE_HI16 +R_OR1K_TLS_LE_LO16 +R_OR1K_TLS_TPOFF +R_PARISC_COPY +R_PARISC_DIR14DR +R_PARISC_DIR14R +R_PARISC_DIR14WR +R_PARISC_DIR16DF +R_PARISC_DIR16F +R_PARISC_DIR16WF +R_PARISC_DIR17F +R_PARISC_DIR17R +R_PARISC_DIR21L +R_PARISC_DIR32 +R_PARISC_DIR64 +R_PARISC_DPREL14R +R_PARISC_DPREL21L +R_PARISC_EPLT +R_PARISC_FPTR64 +R_PARISC_GNU_VTENTRY +R_PARISC_GNU_VTINHERIT +R_PARISC_GPREL14DR +R_PARISC_GPREL14R +R_PARISC_GPREL14WR +R_PARISC_GPREL16DF +R_PARISC_GPREL16F +R_PARISC_GPREL16WF +R_PARISC_GPREL21L +R_PARISC_GPREL64 +R_PARISC_HIRESERVE +R_PARISC_IPLT +R_PARISC_LORESERVE +R_PARISC_LTOFF14DR +R_PARISC_LTOFF14R +R_PARISC_LTOFF14WR +R_PARISC_LTOFF16DF +R_PARISC_LTOFF16F +R_PARISC_LTOFF16WF +R_PARISC_LTOFF21L +R_PARISC_LTOFF64 +R_PARISC_LTOFF_FPTR14DR +R_PARISC_LTOFF_FPTR14R +R_PARISC_LTOFF_FPTR14WR +R_PARISC_LTOFF_FPTR16DF +R_PARISC_LTOFF_FPTR16F +R_PARISC_LTOFF_FPTR16WF +R_PARISC_LTOFF_FPTR21L +R_PARISC_LTOFF_FPTR32 +R_PARISC_LTOFF_FPTR64 +R_PARISC_LTOFF_TP14DR +R_PARISC_LTOFF_TP14F +R_PARISC_LTOFF_TP14R +R_PARISC_LTOFF_TP14WR +R_PARISC_LTOFF_TP16DF +R_PARISC_LTOFF_TP16F +R_PARISC_LTOFF_TP16WF +R_PARISC_LTOFF_TP21L +R_PARISC_LTOFF_TP64 +R_PARISC_NONE +R_PARISC_PCREL14DR +R_PARISC_PCREL14R +R_PARISC_PCREL14WR +R_PARISC_PCREL16DF +R_PARISC_PCREL16F +R_PARISC_PCREL16WF +R_PARISC_PCREL17F +R_PARISC_PCREL17R +R_PARISC_PCREL21L +R_PARISC_PCREL22F +R_PARISC_PCREL32 +R_PARISC_PCREL64 +R_PARISC_PLABEL14R +R_PARISC_PLABEL21L +R_PARISC_PLABEL32 +R_PARISC_PLTOFF14DR +R_PARISC_PLTOFF14R +R_PARISC_PLTOFF14WR +R_PARISC_PLTOFF16DF +R_PARISC_PLTOFF16F +R_PARISC_PLTOFF16WF +R_PARISC_PLTOFF21L +R_PARISC_SECREL32 +R_PARISC_SECREL64 +R_PARISC_SEGBASE +R_PARISC_SEGREL32 +R_PARISC_SEGREL64 +R_PARISC_TLS_DTPMOD32 +R_PARISC_TLS_DTPMOD64 +R_PARISC_TLS_DTPOFF32 +R_PARISC_TLS_DTPOFF64 +R_PARISC_TLS_GD14R +R_PARISC_TLS_GD21L +R_PARISC_TLS_GDCALL +R_PARISC_TLS_IE14R +R_PARISC_TLS_IE21L +R_PARISC_TLS_LDM14R +R_PARISC_TLS_LDM21L +R_PARISC_TLS_LDMCALL +R_PARISC_TLS_LDO14R +R_PARISC_TLS_LDO21L +R_PARISC_TLS_LE14R +R_PARISC_TLS_LE21L +R_PARISC_TLS_TPREL32 +R_PARISC_TLS_TPREL64 +R_PARISC_TPREL14DR +R_PARISC_TPREL14R +R_PARISC_TPREL14WR +R_PARISC_TPREL16DF +R_PARISC_TPREL16F +R_PARISC_TPREL16WF +R_PARISC_TPREL21L +R_PARISC_TPREL32 +R_PARISC_TPREL64 +R_PPC64_ADDR14 +R_PPC64_ADDR14_BRNTAKEN +R_PPC64_ADDR14_BRTAKEN +R_PPC64_ADDR16 +R_PPC64_ADDR16_DS +R_PPC64_ADDR16_HA +R_PPC64_ADDR16_HI +R_PPC64_ADDR16_HIGH +R_PPC64_ADDR16_HIGHA +R_PPC64_ADDR16_HIGHER +R_PPC64_ADDR16_HIGHERA +R_PPC64_ADDR16_HIGHEST +R_PPC64_ADDR16_HIGHESTA +R_PPC64_ADDR16_LO +R_PPC64_ADDR16_LO_DS +R_PPC64_ADDR24 +R_PPC64_ADDR30 +R_PPC64_ADDR32 +R_PPC64_ADDR64 +R_PPC64_COPY +R_PPC64_DTPMOD64 +R_PPC64_DTPREL16 +R_PPC64_DTPREL16_DS +R_PPC64_DTPREL16_HA +R_PPC64_DTPREL16_HI +R_PPC64_DTPREL16_HIGH +R_PPC64_DTPREL16_HIGHA +R_PPC64_DTPREL16_HIGHER +R_PPC64_DTPREL16_HIGHERA +R_PPC64_DTPREL16_HIGHEST +R_PPC64_DTPREL16_HIGHESTA +R_PPC64_DTPREL16_LO +R_PPC64_DTPREL16_LO_DS +R_PPC64_DTPREL64 +R_PPC64_GLOB_DAT +R_PPC64_GOT16 +R_PPC64_GOT16_DS +R_PPC64_GOT16_HA +R_PPC64_GOT16_HI +R_PPC64_GOT16_LO +R_PPC64_GOT16_LO_DS +R_PPC64_GOT_DTPREL16_DS +R_PPC64_GOT_DTPREL16_HA +R_PPC64_GOT_DTPREL16_HI +R_PPC64_GOT_DTPREL16_LO_DS +R_PPC64_GOT_TLSGD16 +R_PPC64_GOT_TLSGD16_HA +R_PPC64_GOT_TLSGD16_HI +R_PPC64_GOT_TLSGD16_LO +R_PPC64_GOT_TLSLD16 +R_PPC64_GOT_TLSLD16_HA +R_PPC64_GOT_TLSLD16_HI +R_PPC64_GOT_TLSLD16_LO +R_PPC64_GOT_TPREL16_DS +R_PPC64_GOT_TPREL16_HA +R_PPC64_GOT_TPREL16_HI +R_PPC64_GOT_TPREL16_LO_DS +R_PPC64_IRELATIVE +R_PPC64_JMP_IREL +R_PPC64_JMP_SLOT +R_PPC64_NONE +R_PPC64_PLT16_HA +R_PPC64_PLT16_HI +R_PPC64_PLT16_LO +R_PPC64_PLT16_LO_DS +R_PPC64_PLT32 +R_PPC64_PLT64 +R_PPC64_PLTGOT16 +R_PPC64_PLTGOT16_DS +R_PPC64_PLTGOT16_HA +R_PPC64_PLTGOT16_HI +R_PPC64_PLTGOT16_LO +R_PPC64_PLTGOT16_LO_DS +R_PPC64_PLTREL32 +R_PPC64_PLTREL64 +R_PPC64_REL14 +R_PPC64_REL14_BRNTAKEN +R_PPC64_REL14_BRTAKEN +R_PPC64_REL16 +R_PPC64_REL16_HA +R_PPC64_REL16_HI +R_PPC64_REL16_LO +R_PPC64_REL24 +R_PPC64_REL32 +R_PPC64_REL64 +R_PPC64_RELATIVE +R_PPC64_SECTOFF +R_PPC64_SECTOFF_DS +R_PPC64_SECTOFF_HA +R_PPC64_SECTOFF_HI +R_PPC64_SECTOFF_LO +R_PPC64_SECTOFF_LO_DS +R_PPC64_TLS +R_PPC64_TLSGD +R_PPC64_TLSLD +R_PPC64_TOC +R_PPC64_TOC16 +R_PPC64_TOC16_DS +R_PPC64_TOC16_HA +R_PPC64_TOC16_HI +R_PPC64_TOC16_LO +R_PPC64_TOC16_LO_DS +R_PPC64_TOCSAVE +R_PPC64_TPREL16 +R_PPC64_TPREL16_DS +R_PPC64_TPREL16_HA +R_PPC64_TPREL16_HI +R_PPC64_TPREL16_HIGH +R_PPC64_TPREL16_HIGHA +R_PPC64_TPREL16_HIGHER +R_PPC64_TPREL16_HIGHERA +R_PPC64_TPREL16_HIGHEST +R_PPC64_TPREL16_HIGHESTA +R_PPC64_TPREL16_LO +R_PPC64_TPREL16_LO_DS +R_PPC64_TPREL64 +R_PPC64_UADDR16 +R_PPC64_UADDR32 +R_PPC64_UADDR64 +R_PPC_ADDR14 +R_PPC_ADDR14_BRNTAKEN +R_PPC_ADDR14_BRTAKEN +R_PPC_ADDR16 +R_PPC_ADDR16_HA +R_PPC_ADDR16_HI +R_PPC_ADDR16_LO +R_PPC_ADDR24 +R_PPC_ADDR32 +R_PPC_COPY +R_PPC_DIAB_RELSDA_HA +R_PPC_DIAB_RELSDA_HI +R_PPC_DIAB_RELSDA_LO +R_PPC_DIAB_SDA21_HA +R_PPC_DIAB_SDA21_HI +R_PPC_DIAB_SDA21_LO +R_PPC_DTPMOD32 +R_PPC_DTPREL16 +R_PPC_DTPREL16_HA +R_PPC_DTPREL16_HI +R_PPC_DTPREL16_LO +R_PPC_DTPREL32 +R_PPC_EMB_BIT_FLD +R_PPC_EMB_MRKREF +R_PPC_EMB_NADDR16 +R_PPC_EMB_NADDR16_HA +R_PPC_EMB_NADDR16_HI +R_PPC_EMB_NADDR16_LO +R_PPC_EMB_NADDR32 +R_PPC_EMB_RELSDA +R_PPC_EMB_RELSEC16 +R_PPC_EMB_RELST_HA +R_PPC_EMB_RELST_HI +R_PPC_EMB_RELST_LO +R_PPC_EMB_SDA21 +R_PPC_EMB_SDA2I16 +R_PPC_EMB_SDA2REL +R_PPC_EMB_SDAI16 +R_PPC_GLOB_DAT +R_PPC_GOT16 +R_PPC_GOT16_HA +R_PPC_GOT16_HI +R_PPC_GOT16_LO +R_PPC_GOT_DTPREL16 +R_PPC_GOT_DTPREL16_HA +R_PPC_GOT_DTPREL16_HI +R_PPC_GOT_DTPREL16_LO +R_PPC_GOT_TLSGD16 +R_PPC_GOT_TLSGD16_HA +R_PPC_GOT_TLSGD16_HI +R_PPC_GOT_TLSGD16_LO +R_PPC_GOT_TLSLD16 +R_PPC_GOT_TLSLD16_HA +R_PPC_GOT_TLSLD16_HI +R_PPC_GOT_TLSLD16_LO +R_PPC_GOT_TPREL16 +R_PPC_GOT_TPREL16_HA +R_PPC_GOT_TPREL16_HI +R_PPC_GOT_TPREL16_LO +R_PPC_IRELATIVE +R_PPC_JMP_SLOT +R_PPC_LOCAL24PC +R_PPC_NONE +R_PPC_PLT16_HA +R_PPC_PLT16_HI +R_PPC_PLT16_LO +R_PPC_PLT32 +R_PPC_PLTREL24 +R_PPC_PLTREL32 +R_PPC_REL14 +R_PPC_REL14_BRNTAKEN +R_PPC_REL14_BRTAKEN +R_PPC_REL16 +R_PPC_REL16_HA +R_PPC_REL16_HI +R_PPC_REL16_LO +R_PPC_REL24 +R_PPC_REL32 +R_PPC_RELATIVE +R_PPC_SDAREL16 +R_PPC_SECTOFF +R_PPC_SECTOFF_HA +R_PPC_SECTOFF_HI +R_PPC_SECTOFF_LO +R_PPC_TLS +R_PPC_TLSGD +R_PPC_TLSLD +R_PPC_TOC16 +R_PPC_TPREL16 +R_PPC_TPREL16_HA +R_PPC_TPREL16_HI +R_PPC_TPREL16_LO +R_PPC_TPREL32 +R_PPC_UADDR16 +R_PPC_UADDR32 +R_RISCV_32 +R_RISCV_32_PCREL +R_RISCV_64 +R_RISCV_ADD16 +R_RISCV_ADD32 +R_RISCV_ADD64 +R_RISCV_ADD8 +R_RISCV_ALIGN +R_RISCV_BRANCH +R_RISCV_CALL +R_RISCV_CALL_PLT +R_RISCV_COPY +R_RISCV_GOT32_PCREL +R_RISCV_GOT_HI20 +R_RISCV_HI20 +R_RISCV_IRELATIVE +R_RISCV_JAL +R_RISCV_JUMP_SLOT +R_RISCV_LO12_I +R_RISCV_LO12_S +R_RISCV_NONE +R_RISCV_PCREL_HI20 +R_RISCV_PCREL_LO12_I +R_RISCV_PCREL_LO12_S +R_RISCV_PLT32 +R_RISCV_RELATIVE +R_RISCV_RELAX +R_RISCV_RVC_BRANCH +R_RISCV_RVC_JUMP +R_RISCV_RVC_LUI +R_RISCV_SET16 +R_RISCV_SET32 +R_RISCV_SET6 +R_RISCV_SET8 +R_RISCV_SET_ULEB128 +R_RISCV_SUB16 +R_RISCV_SUB32 +R_RISCV_SUB6 +R_RISCV_SUB64 +R_RISCV_SUB8 +R_RISCV_SUB_ULEB128 +R_RISCV_TLSDESC +R_RISCV_TLSDESC_ADD_LO12 +R_RISCV_TLSDESC_CALL +R_RISCV_TLSDESC_HI20 +R_RISCV_TLSDESC_LOAD_LO12 +R_RISCV_TLS_DTPMOD32 +R_RISCV_TLS_DTPMOD64 +R_RISCV_TLS_DTPREL32 +R_RISCV_TLS_DTPREL64 +R_RISCV_TLS_GD_HI20 +R_RISCV_TLS_GOT_HI20 +R_RISCV_TLS_TPREL32 +R_RISCV_TLS_TPREL64 +R_RISCV_TPREL_ADD +R_RISCV_TPREL_HI20 +R_RISCV_TPREL_LO12_I +R_RISCV_TPREL_LO12_S +R_SH_ALIGN +R_SH_CODE +R_SH_COPY +R_SH_COUNT +R_SH_DATA +R_SH_DIR32 +R_SH_DIR8BP +R_SH_DIR8L +R_SH_DIR8W +R_SH_DIR8WPL +R_SH_DIR8WPN +R_SH_DIR8WPZ +R_SH_FUNCDESC +R_SH_FUNCDESC_VALUE +R_SH_GLOB_DAT +R_SH_GNU_VTENTRY +R_SH_GNU_VTINHERIT +R_SH_GOT20 +R_SH_GOT32 +R_SH_GOTFUNCDESC +R_SH_GOTFUNCDEST20 +R_SH_GOTOFF +R_SH_GOTOFF20 +R_SH_GOTOFFFUNCDESC +R_SH_GOTOFFFUNCDEST20 +R_SH_GOTPC +R_SH_IND12W +R_SH_JMP_SLOT +R_SH_LABEL +R_SH_NONE +R_SH_NUM +R_SH_PLT32 +R_SH_REL32 +R_SH_RELATIVE +R_SH_SWITCH16 +R_SH_SWITCH32 +R_SH_SWITCH8 +R_SH_TLS_DTPMOD32 +R_SH_TLS_DTPOFF32 +R_SH_TLS_GD_32 +R_SH_TLS_IE_32 +R_SH_TLS_LDO_32 +R_SH_TLS_LD_32 +R_SH_TLS_LE_32 +R_SH_TLS_TPOFF32 +R_SH_USES +R_SPARC_10 +R_SPARC_11 +R_SPARC_13 +R_SPARC_16 +R_SPARC_22 +R_SPARC_32 +R_SPARC_5 +R_SPARC_6 +R_SPARC_64 +R_SPARC_7 +R_SPARC_8 +R_SPARC_COPY +R_SPARC_DISP16 +R_SPARC_DISP32 +R_SPARC_DISP64 +R_SPARC_DISP8 +R_SPARC_GLOB_DAT +R_SPARC_GLOB_JMP +R_SPARC_GNU_VTENTRY +R_SPARC_GNU_VTINHERIT +R_SPARC_GOT10 +R_SPARC_GOT13 +R_SPARC_GOT22 +R_SPARC_GOTDATA_HIX22 +R_SPARC_GOTDATA_LOX10 +R_SPARC_GOTDATA_OP +R_SPARC_GOTDATA_OP_HIX22 +R_SPARC_GOTDATA_OP_LOX10 +R_SPARC_H34 +R_SPARC_H44 +R_SPARC_HH22 +R_SPARC_HI22 +R_SPARC_HIPLT22 +R_SPARC_HIX22 +R_SPARC_HM10 +R_SPARC_JMP_SLOT +R_SPARC_L44 +R_SPARC_LM22 +R_SPARC_LO10 +R_SPARC_LOPLT10 +R_SPARC_LOX10 +R_SPARC_M44 +R_SPARC_NONE +R_SPARC_NUM +R_SPARC_OLO10 +R_SPARC_PC10 +R_SPARC_PC22 +R_SPARC_PCPLT10 +R_SPARC_PCPLT22 +R_SPARC_PCPLT32 +R_SPARC_PC_HH22 +R_SPARC_PC_HM10 +R_SPARC_PC_LM22 +R_SPARC_PLT32 +R_SPARC_PLT64 +R_SPARC_REGISTER +R_SPARC_RELATIVE +R_SPARC_REV32 +R_SPARC_SIZE32 +R_SPARC_SIZE64 +R_SPARC_TLS_DTPMOD32 +R_SPARC_TLS_DTPMOD64 +R_SPARC_TLS_DTPOFF32 +R_SPARC_TLS_DTPOFF64 +R_SPARC_TLS_GD_ADD +R_SPARC_TLS_GD_CALL +R_SPARC_TLS_GD_HI22 +R_SPARC_TLS_GD_LO10 +R_SPARC_TLS_IE_ADD +R_SPARC_TLS_IE_HI22 +R_SPARC_TLS_IE_LD +R_SPARC_TLS_IE_LDX +R_SPARC_TLS_IE_LO10 +R_SPARC_TLS_LDM_ADD +R_SPARC_TLS_LDM_CALL +R_SPARC_TLS_LDM_HI22 +R_SPARC_TLS_LDM_LO10 +R_SPARC_TLS_LDO_ADD +R_SPARC_TLS_LDO_HIX22 +R_SPARC_TLS_LDO_LOX10 +R_SPARC_TLS_LE_HIX22 +R_SPARC_TLS_LE_LOX10 +R_SPARC_TLS_TPOFF32 +R_SPARC_TLS_TPOFF64 +R_SPARC_UA16 +R_SPARC_UA32 +R_SPARC_UA64 +R_SPARC_WDISP16 +R_SPARC_WDISP19 +R_SPARC_WDISP22 +R_SPARC_WDISP30 +R_SPARC_WPLT30 +R_X86_64_16 +R_X86_64_32 +R_X86_64_32S +R_X86_64_64 +R_X86_64_8 +R_X86_64_COPY +R_X86_64_DTPMOD64 +R_X86_64_DTPOFF32 +R_X86_64_DTPOFF64 +R_X86_64_GLOB_DAT +R_X86_64_GOT32 +R_X86_64_GOT64 +R_X86_64_GOTOFF64 +R_X86_64_GOTPC32 +R_X86_64_GOTPC32_TLSDESC +R_X86_64_GOTPC64 +R_X86_64_GOTPCREL +R_X86_64_GOTPCREL64 +R_X86_64_GOTPCRELX +R_X86_64_GOTPLT64 +R_X86_64_GOTTPOFF +R_X86_64_IRELATIVE +R_X86_64_JUMP_SLOT +R_X86_64_NONE +R_X86_64_NUM +R_X86_64_PC16 +R_X86_64_PC32 +R_X86_64_PC64 +R_X86_64_PC8 +R_X86_64_PLT32 +R_X86_64_PLTOFF64 +R_X86_64_RELATIVE +R_X86_64_RELATIVE64 +R_X86_64_REX_GOTPCRELX +R_X86_64_SIZE32 +R_X86_64_SIZE64 +R_X86_64_TLSDESC +R_X86_64_TLSDESC_CALL +R_X86_64_TLSGD +R_X86_64_TLSLD +R_X86_64_TPOFF32 +R_X86_64_TPOFF64 +RawMem +RawMem64 +SA +SALT_MAX +SALT_MAX1 +SA_EXPOSE_TAGBITS +SA_NOCLDSTOP +SA_NOCLDWAIT +SA_NODEFER +SA_NOMASK +SA_ONESHOT +SA_ONSTACK +SA_RESETHAND +SA_RESTART +SA_RESTORER +SA_SIGINFO +SA_UNSUPPORTED +SB +SCHAR_MAX +SCHAR_MIN +SCHED_BATCH +SCHED_DEADLINE +SCHED_FIFO +SCHED_IDLE +SCHED_OTHER +SCHED_RESET_ON_FORK +SCHED_RR +SCM_CREDENTIALS +SCM_RIGHTS +SCM_TIMESTAMP +SCM_TIMESTAMPING +SCM_TIMESTAMPING_OLD +SCM_TIMESTAMPING_OPT_STATS +SCM_TIMESTAMPING_PKTINFO +SCM_TIMESTAMPNS +SCM_TIMESTAMPNS_OLD +SCM_TIMESTAMP_OLD +SCM_TXTIME +SCM_WIFI_STATUS +SCNd16 +SCNd32 +SCNd8 +SCNdFAST16 +SCNdFAST32 +SCNdFAST8 +SCNdLEAST16 +SCNdLEAST32 +SCNdLEAST8 +SCNi16 +SCNi32 +SCNi8 +SCNiFAST16 +SCNiFAST32 +SCNiFAST8 +SCNiLEAST16 +SCNiLEAST32 +SCNiLEAST8 +SCNo16 +SCNo32 +SCNo8 +SCNoFAST16 +SCNoFAST32 +SCNoFAST8 +SCNoLEAST16 +SCNoLEAST32 +SCNoLEAST8 +SCNu16 +SCNu32 +SCNu8 +SCNuFAST16 +SCNuFAST32 +SCNuFAST8 +SCNuLEAST16 +SCNuLEAST32 +SCNuLEAST8 +SCNx16 +SCNx32 +SCNx8 +SCNxFAST16 +SCNxFAST32 +SCNxFAST8 +SCNxLEAST16 +SCNxLEAST32 +SCNxLEAST8 +SEEK_CUR +SEEK_DATA +SEEK_END +SEEK_HOLE +SEEK_SET +SEGV_ACCERR +SEGV_BNDERR +SEGV_MAPERR +SEGV_MTEAERR +SEGV_MTESERR +SEGV_PKUERR +SELFMAG +SEM_INFO +SEM_NSEMS_MAX +SEM_STAT +SEM_STAT_ANY +SEM_UNDO +SEM_VALUE_MAX +SENTINEL +SERVFAIL +SETALL +SETVAL +SFD_CLOEXEC +SFD_NONBLOCK +SHADOW +SHF_ALLOC +SHF_ALPHA_GPREL +SHF_ARM_COMDEF +SHF_ARM_ENTRYSECT +SHF_COMPRESSED +SHF_EXCLUDE +SHF_EXECINSTR +SHF_GROUP +SHF_IA_64_NORECOV +SHF_IA_64_SHORT +SHF_INFO_LINK +SHF_LINK_ORDER +SHF_MASKOS +SHF_MASKPROC +SHF_MERGE +SHF_MIPS_ADDR +SHF_MIPS_GPREL +SHF_MIPS_LOCAL +SHF_MIPS_MERGE +SHF_MIPS_NAMES +SHF_MIPS_NODUPE +SHF_MIPS_NOSTRIP +SHF_MIPS_STRINGS +SHF_ORDERED +SHF_OS_NONCONFORMING +SHF_PARISC_HUGE +SHF_PARISC_SBP +SHF_PARISC_SHORT +SHF_STRINGS +SHF_TLS +SHF_WRITE +SHIFT_JIS +SHMLBA +SHM_DEST +SHM_EXEC +SHM_HUGETLB +SHM_HUGE_16GB +SHM_HUGE_16MB +SHM_HUGE_1GB +SHM_HUGE_1MB +SHM_HUGE_256MB +SHM_HUGE_2GB +SHM_HUGE_2MB +SHM_HUGE_32MB +SHM_HUGE_512KB +SHM_HUGE_512MB +SHM_HUGE_64KB +SHM_HUGE_8MB +SHM_HUGE_MASK +SHM_HUGE_SHIFT +SHM_INFO +SHM_LOCK +SHM_LOCKED +SHM_NORESERVE +SHM_R +SHM_RDONLY +SHM_REMAP +SHM_RND +SHM_STAT +SHM_STAT_ANY +SHM_UNLOCK +SHM_W +SHN_ABS +SHN_AFTER +SHN_BEFORE +SHN_COMMON +SHN_HIOS +SHN_HIPROC +SHN_HIRESERVE +SHN_LOOS +SHN_LOPROC +SHN_LORESERVE +SHN_MIPS_ACOMMON +SHN_MIPS_DATA +SHN_MIPS_SCOMMON +SHN_MIPS_SUNDEFINED +SHN_MIPS_TEXT +SHN_PARISC_ANSI_COMMON +SHN_PARISC_HUGE_COMMON +SHN_UNDEF +SHN_XINDEX +SHORT_INODE +SHRT_MAX +SHRT_MIN +SHT_ALPHA_DEBUG +SHT_ALPHA_REGINFO +SHT_ARM_ATTRIBUTES +SHT_ARM_EXIDX +SHT_ARM_PREEMPTMAP +SHT_CHECKSUM +SHT_DYNAMIC +SHT_DYNSYM +SHT_FINI_ARRAY +SHT_GNU_ATTRIBUTES +SHT_GNU_HASH +SHT_GNU_LIBLIST +SHT_GNU_verdef +SHT_GNU_verneed +SHT_GNU_versym +SHT_GROUP +SHT_HASH +SHT_HIOS +SHT_HIPROC +SHT_HISUNW +SHT_HIUSER +SHT_IA_64_EXT +SHT_IA_64_UNWIND +SHT_INIT_ARRAY +SHT_LOOS +SHT_LOPROC +SHT_LOSUNW +SHT_LOUSER +SHT_MIPS_AUXSYM +SHT_MIPS_CONFLICT +SHT_MIPS_CONTENT +SHT_MIPS_DEBUG +SHT_MIPS_DELTACLASS +SHT_MIPS_DELTADECL +SHT_MIPS_DELTAINST +SHT_MIPS_DELTASYM +SHT_MIPS_DENSE +SHT_MIPS_DWARF +SHT_MIPS_EH_REGION +SHT_MIPS_EVENTS +SHT_MIPS_EXTSYM +SHT_MIPS_FDESC +SHT_MIPS_GPTAB +SHT_MIPS_IFACE +SHT_MIPS_LIBLIST +SHT_MIPS_LINE +SHT_MIPS_LOCSTR +SHT_MIPS_LOCSYM +SHT_MIPS_MSYM +SHT_MIPS_OPTIONS +SHT_MIPS_OPTSYM +SHT_MIPS_PACKAGE +SHT_MIPS_PACKSYM +SHT_MIPS_PDESC +SHT_MIPS_PDR_EXCEPTION +SHT_MIPS_PIXIE +SHT_MIPS_REGINFO +SHT_MIPS_RELD +SHT_MIPS_RFDESC +SHT_MIPS_SHDR +SHT_MIPS_SYMBOL_LIB +SHT_MIPS_TRANSLATE +SHT_MIPS_UCODE +SHT_MIPS_WHIRL +SHT_MIPS_XLATE +SHT_MIPS_XLATE_DEBUG +SHT_MIPS_XLATE_OLD +SHT_NOBITS +SHT_NOTE +SHT_NULL +SHT_NUM +SHT_PARISC_DOC +SHT_PARISC_EXT +SHT_PARISC_UNWIND +SHT_PREINIT_ARRAY +SHT_PROGBITS +SHT_REL +SHT_RELA +SHT_RELR +SHT_SHLIB +SHT_STRTAB +SHT_SUNW_COMDAT +SHT_SUNW_move +SHT_SUNW_syminfo +SHT_SYMTAB +SHT_SYMTAB_SHNDX +SHUT_RD +SHUT_RDWR +SHUT_WR +SIGABRT +SIGALRM +SIGBUS +SIGCANCEL +SIGCHLD +SIGCONT +SIGEV_NONE +SIGEV_SIGNAL +SIGEV_THREAD +SIGEV_THREAD_ID +SIGFPE +SIGHUP +SIGILL +SIGINT +SIGIO +SIGIOT +SIGKILL +SIGN_BIAS +SIGN_BIAS1 +SIGPIPE +SIGPOLL +SIGPROF +SIGPWR +SIGQUIT +SIGRTMAX +SIGRTMIN +SIGSEGV +SIGSTKFLT +SIGSTKSZ +SIGSTOP +SIGSYNCCALL +SIGSYS +SIGTERM +SIGTIMER +SIGTRAP +SIGTSTP +SIGTTIN +SIGTTOU +SIGUNUSED +SIGURG +SIGUSR1 +SIGUSR2 +SIGVTALRM +SIGWINCH +SIGXCPU +SIGXFSZ +SIG_ATOMIC_MAX +SIG_ATOMIC_MIN +SIG_BLOCK +SIG_DFL +SIG_IGN +SIG_SETMASK +SIG_UNBLOCK +SIOCADDDLCI +SIOCADDMULTI +SIOCADDRT +SIOCATMARK +SIOCDARP +SIOCDELDLCI +SIOCDELMULTI +SIOCDELRT +SIOCDEVPRIVATE +SIOCDIFADDR +SIOCDRARP +SIOCGARP +SIOCGIFADDR +SIOCGIFBR +SIOCGIFBRDADDR +SIOCGIFCONF +SIOCGIFCOUNT +SIOCGIFDSTADDR +SIOCGIFENCAP +SIOCGIFFLAGS +SIOCGIFHWADDR +SIOCGIFINDEX +SIOCGIFMAP +SIOCGIFMEM +SIOCGIFMETRIC +SIOCGIFMTU +SIOCGIFNAME +SIOCGIFNETMASK +SIOCGIFPFLAGS +SIOCGIFSLAVE +SIOCGIFTXQLEN +SIOCGPGRP +SIOCGRARP +SIOCGSTAMP +SIOCGSTAMPNS +SIOCGSTAMPNS_OLD +SIOCGSTAMP_OLD +SIOCPROTOPRIVATE +SIOCRTMSG +SIOCSARP +SIOCSIFADDR +SIOCSIFBR +SIOCSIFBRDADDR +SIOCSIFDSTADDR +SIOCSIFENCAP +SIOCSIFFLAGS +SIOCSIFHWADDR +SIOCSIFHWBROADCAST +SIOCSIFLINK +SIOCSIFMAP +SIOCSIFMEM +SIOCSIFMETRIC +SIOCSIFMTU +SIOCSIFNAME +SIOCSIFNETMASK +SIOCSIFPFLAGS +SIOCSIFSLAVE +SIOCSIFTXQLEN +SIOCSPGRP +SIOCSRARP +SIOGIFINDEX +SIZE_L +SIZE_MAX +SIZE_def +SIZE_h +SIZE_hh +SIZE_l +SIZE_ll +SI_ASYNCIO +SI_ASYNCNL +SI_KERNEL +SI_LOAD_SHIFT +SI_MESGQ +SI_QUEUE +SI_SIGIO +SI_TIMER +SI_TKILL +SI_USER +SOCK_CLOEXEC +SOCK_DCCP +SOCK_DGRAM +SOCK_NONBLOCK +SOCK_PACKET +SOCK_RAW +SOCK_RDM +SOCK_SEQPACKET +SOCK_STREAM +SOL_AAL +SOL_ALG +SOL_ATM +SOL_BLUETOOTH +SOL_CAIF +SOL_DCCP +SOL_DECNET +SOL_ICMPV6 +SOL_IP +SOL_IPV6 +SOL_IRDA +SOL_IUCV +SOL_KCM +SOL_LLC +SOL_NETBEUI +SOL_NETLINK +SOL_NFC +SOL_PACKET +SOL_PNPIPE +SOL_PPPOL2TP +SOL_RAW +SOL_RDS +SOL_RXRPC +SOL_SOCKET +SOL_TIPC +SOL_TLS +SOL_X25 +SOL_XDP +SOMAXCONN +SO_ACCEPTCONN +SO_ATTACH_BPF +SO_ATTACH_FILTER +SO_ATTACH_REUSEPORT_CBPF +SO_ATTACH_REUSEPORT_EBPF +SO_BINDTODEVICE +SO_BINDTOIFINDEX +SO_BPF_EXTENSIONS +SO_BROADCAST +SO_BSDCOMPAT +SO_BUSY_POLL +SO_BUSY_POLL_BUDGET +SO_CNX_ADVICE +SO_COOKIE +SO_DEBUG +SO_DETACH_BPF +SO_DETACH_FILTER +SO_DETACH_REUSEPORT_BPF +SO_DOMAIN +SO_DONTROUTE +SO_ERROR +SO_GET_FILTER +SO_INCOMING_CPU +SO_INCOMING_NAPI_ID +SO_KEEPALIVE +SO_LINGER +SO_LOCK_FILTER +SO_MARK +SO_MAX_PACING_RATE +SO_MEMINFO +SO_NOFCS +SO_NO_CHECK +SO_OOBINLINE +SO_PASSCRED +SO_PASSSEC +SO_PEEK_OFF +SO_PEERCRED +SO_PEERGROUPS +SO_PEERNAME +SO_PEERSEC +SO_PREFER_BUSY_POLL +SO_PRIORITY +SO_PROTOCOL +SO_RCVBUF +SO_RCVBUFFORCE +SO_RCVLOWAT +SO_RCVTIMEO +SO_RCVTIMEO_OLD +SO_REUSEADDR +SO_REUSEPORT +SO_RXQ_OVFL +SO_SECURITY_AUTHENTICATION +SO_SECURITY_ENCRYPTION_NETWORK +SO_SECURITY_ENCRYPTION_TRANSPORT +SO_SELECT_ERR_QUEUE +SO_SNDBUF +SO_SNDBUFFORCE +SO_SNDLOWAT +SO_SNDTIMEO +SO_SNDTIMEO_OLD +SO_TIMESTAMP +SO_TIMESTAMPING +SO_TIMESTAMPING_OLD +SO_TIMESTAMPNS +SO_TIMESTAMPNS_OLD +SO_TIMESTAMP_OLD +SO_TXTIME +SO_TYPE +SO_WIFI_STATUS +SO_ZEROCOPY +SPLICE_F_GIFT +SPLICE_F_MORE +SPLICE_F_MOVE +SPLICE_F_NONBLOCK +SPLIT +SS +SSIZE_MAX +SST_SIZE +SS_AUTODISARM +SS_DISABLE +SS_FLAG_BITS +SS_ONSTACK +STAR +STATUS +STATX_ALL +STATX_ATIME +STATX_BASIC_STATS +STATX_BLOCKS +STATX_BTIME +STATX_CTIME +STATX_GID +STATX_INO +STATX_MODE +STATX_MTIME +STATX_NLINK +STATX_SIZE +STATX_TYPE +STATX_UID +STA_CLK +STA_CLOCKERR +STA_DEL +STA_FLL +STA_FREQHOLD +STA_INS +STA_MODE +STA_NANO +STA_PLL +STA_PPSERROR +STA_PPSFREQ +STA_PPSJITTER +STA_PPSSIGNAL +STA_PPSTIME +STA_PPSWANDER +STA_RONLY +STA_UNSYNC +STB_GLOBAL +STB_GNU_UNIQUE +STB_HIOS +STB_HIPROC +STB_LOCAL +STB_LOOS +STB_LOPROC +STB_MIPS_SPLIT_COMMON +STB_NUM +STB_WEAK +STDERR_FILENO +STDIN_FILENO +STDOUT_FILENO +STICKY_TIMEOUTS +STN_UNDEF +STO_ALPHA_NOPV +STO_ALPHA_STD_GPLOAD +STO_MIPS_DEFAULT +STO_MIPS_HIDDEN +STO_MIPS_INTERNAL +STO_MIPS_PLT +STO_MIPS_PROTECTED +STO_MIPS_SC_ALIGN_UNUSED +STO_PPC64_LOCAL_BIT +STO_PPC64_LOCAL_MASK +STT_ARM_16BIT +STT_ARM_TFUNC +STT_COMMON +STT_FILE +STT_FUNC +STT_GNU_IFUNC +STT_HIOS +STT_HIPROC +STT_HP_OPAQUE +STT_HP_STUB +STT_LOOS +STT_LOPROC +STT_NOTYPE +STT_NUM +STT_OBJECT +STT_PARISC_MILLICODE +STT_SECTION +STT_SPARC_REGISTER +STT_TLS +STV_DEFAULT +STV_HIDDEN +STV_INTERNAL +STV_PROTECTED +ST_APPEND +ST_IMMUTABLE +ST_MANDLOCK +ST_NOATIME +ST_NODEV +ST_NODIRATIME +ST_NOEXEC +ST_NOSUID +ST_RDONLY +ST_RELATIME +ST_SYNCHRONOUS +ST_WRITE +SUBCMDMASK +SUBCMDSHIFT +SWAP_FLAG_DISCARD +SWAP_FLAG_PREFER +SWAP_FLAG_PRIO_MASK +SWAP_FLAG_PRIO_SHIFT +SYMINFO_BT_LOWRESERVE +SYMINFO_BT_PARENT +SYMINFO_BT_SELF +SYMINFO_CURRENT +SYMINFO_FLG_COPY +SYMINFO_FLG_DIRECT +SYMINFO_FLG_LAZYLOAD +SYMINFO_FLG_PASSTHRU +SYMINFO_NONE +SYMINFO_NUM +SYMLOOP_MAX +SYNC_FILE_RANGE_WAIT_AFTER +SYNC_FILE_RANGE_WAIT_BEFORE +SYNC_FILE_RANGE_WRITE +SYSCALL_DISPATCH_FILTER_ALLOW +SYSCALL_DISPATCH_FILTER_BLOCK +SYSCALL_MMAP2_UNIT +SYSCALL_RLIM_INFINITY +SYS_SECCOMP +SYS_USER_DISPATCH +SYS__sysctl +SYS_accept +SYS_accept4 +SYS_access +SYS_acct +SYS_add_key +SYS_adjtimex +SYS_afs_syscall +SYS_alarm +SYS_arch_prctl +SYS_bind +SYS_bpf +SYS_brk +SYS_cachestat +SYS_capget +SYS_capset +SYS_chdir +SYS_chmod +SYS_chown +SYS_chroot +SYS_clock_adjtime +SYS_clock_getres +SYS_clock_gettime +SYS_clock_nanosleep +SYS_clock_settime +SYS_clone +SYS_clone3 +SYS_close +SYS_close_range +SYS_connect +SYS_copy_file_range +SYS_creat +SYS_create_module +SYS_delete_module +SYS_dup +SYS_dup2 +SYS_dup3 +SYS_epoll_create +SYS_epoll_create1 +SYS_epoll_ctl +SYS_epoll_ctl_old +SYS_epoll_pwait +SYS_epoll_pwait2 +SYS_epoll_wait +SYS_epoll_wait_old +SYS_eventfd +SYS_eventfd2 +SYS_execve +SYS_execveat +SYS_exit +SYS_exit_group +SYS_faccessat +SYS_faccessat2 +SYS_fadvise +SYS_fadvise64 +SYS_fallocate +SYS_fanotify_init +SYS_fanotify_mark +SYS_fchdir +SYS_fchmod +SYS_fchmodat +SYS_fchmodat2 +SYS_fchown +SYS_fchownat +SYS_fcntl +SYS_fdatasync +SYS_fgetxattr +SYS_finit_module +SYS_flistxattr +SYS_flock +SYS_fork +SYS_fremovexattr +SYS_fsconfig +SYS_fsetxattr +SYS_fsmount +SYS_fsopen +SYS_fspick +SYS_fstat +SYS_fstatat +SYS_fstatfs +SYS_fsync +SYS_ftruncate +SYS_futex +SYS_futex_waitv +SYS_futimesat +SYS_get_kernel_syms +SYS_get_mempolicy +SYS_get_robust_list +SYS_get_thread_area +SYS_getcpu +SYS_getcwd +SYS_getdents +SYS_getdents64 +SYS_getegid +SYS_geteuid +SYS_getgid +SYS_getgroups +SYS_getitimer +SYS_getpeername +SYS_getpgid +SYS_getpgrp +SYS_getpid +SYS_getpmsg +SYS_getppid +SYS_getpriority +SYS_getrandom +SYS_getresgid +SYS_getresuid +SYS_getrlimit +SYS_getrusage +SYS_getsid +SYS_getsockname +SYS_getsockopt +SYS_gettid +SYS_gettimeofday +SYS_getuid +SYS_getxattr +SYS_init_module +SYS_inotify_add_watch +SYS_inotify_init +SYS_inotify_init1 +SYS_inotify_rm_watch +SYS_io_cancel +SYS_io_destroy +SYS_io_getevents +SYS_io_pgetevents +SYS_io_setup +SYS_io_submit +SYS_io_uring_enter +SYS_io_uring_register +SYS_io_uring_setup +SYS_ioctl +SYS_ioperm +SYS_iopl +SYS_ioprio_get +SYS_ioprio_set +SYS_kcmp +SYS_kexec_file_load +SYS_kexec_load +SYS_keyctl +SYS_kill +SYS_landlock_add_rule +SYS_landlock_create_ruleset +SYS_landlock_restrict_self +SYS_lchown +SYS_lgetxattr +SYS_link +SYS_linkat +SYS_listen +SYS_listxattr +SYS_llistxattr +SYS_lookup_dcookie +SYS_lremovexattr +SYS_lseek +SYS_lsetxattr +SYS_lstat +SYS_madvise +SYS_mbind +SYS_membarrier +SYS_memfd_create +SYS_memfd_secret +SYS_migrate_pages +SYS_mincore +SYS_mkdir +SYS_mkdirat +SYS_mknod +SYS_mknodat +SYS_mlock +SYS_mlock2 +SYS_mlockall +SYS_mmap +SYS_modify_ldt +SYS_mount +SYS_mount_setattr +SYS_move_mount +SYS_move_pages +SYS_mprotect +SYS_mq_getsetattr +SYS_mq_notify +SYS_mq_open +SYS_mq_timedreceive +SYS_mq_timedsend +SYS_mq_unlink +SYS_mremap +SYS_msgctl +SYS_msgget +SYS_msgrcv +SYS_msgsnd +SYS_msync +SYS_munlock +SYS_munlockall +SYS_munmap +SYS_name_to_handle_at +SYS_nanosleep +SYS_newfstatat +SYS_nfsservctl +SYS_open +SYS_open_by_handle_at +SYS_open_tree +SYS_openat +SYS_openat2 +SYS_pause +SYS_perf_event_open +SYS_personality +SYS_pidfd_getfd +SYS_pidfd_open +SYS_pidfd_send_signal +SYS_pipe +SYS_pipe2 +SYS_pivot_root +SYS_pkey_alloc +SYS_pkey_free +SYS_pkey_mprotect +SYS_poll +SYS_ppoll +SYS_prctl +SYS_pread +SYS_pread64 +SYS_preadv +SYS_preadv2 +SYS_prlimit64 +SYS_process_madvise +SYS_process_mrelease +SYS_process_vm_readv +SYS_process_vm_writev +SYS_pselect6 +SYS_ptrace +SYS_putpmsg +SYS_pwrite +SYS_pwrite64 +SYS_pwritev +SYS_pwritev2 +SYS_query_module +SYS_quotactl +SYS_read +SYS_readahead +SYS_readlink +SYS_readlinkat +SYS_readv +SYS_reboot +SYS_recvfrom +SYS_recvmmsg +SYS_recvmsg +SYS_remap_file_pages +SYS_removexattr +SYS_rename +SYS_renameat +SYS_renameat2 +SYS_request_key +SYS_restart_syscall +SYS_rmdir +SYS_rseq +SYS_rt_sigaction +SYS_rt_sigpending +SYS_rt_sigprocmask +SYS_rt_sigqueueinfo +SYS_rt_sigreturn +SYS_rt_sigsuspend +SYS_rt_sigtimedwait +SYS_rt_tgsigqueueinfo +SYS_sched_get_priority_max +SYS_sched_get_priority_min +SYS_sched_getaffinity +SYS_sched_getattr +SYS_sched_getparam +SYS_sched_getscheduler +SYS_sched_rr_get_interval +SYS_sched_setaffinity +SYS_sched_setattr +SYS_sched_setparam +SYS_sched_setscheduler +SYS_sched_yield +SYS_seccomp +SYS_security +SYS_select +SYS_semctl +SYS_semget +SYS_semop +SYS_semtimedop +SYS_sendfile +SYS_sendmmsg +SYS_sendmsg +SYS_sendto +SYS_set_mempolicy +SYS_set_mempolicy_home_node +SYS_set_robust_list +SYS_set_thread_area +SYS_set_tid_address +SYS_setdomainname +SYS_setfsgid +SYS_setfsuid +SYS_setgid +SYS_setgroups +SYS_sethostname +SYS_setitimer +SYS_setns +SYS_setpgid +SYS_setpriority +SYS_setregid +SYS_setresgid +SYS_setresuid +SYS_setreuid +SYS_setrlimit +SYS_setsid +SYS_setsockopt +SYS_settimeofday +SYS_setuid +SYS_setxattr +SYS_shmat +SYS_shmctl +SYS_shmdt +SYS_shmget +SYS_shutdown +SYS_sigaltstack +SYS_signalfd +SYS_signalfd4 +SYS_socket +SYS_socketpair +SYS_splice +SYS_stat +SYS_statfs +SYS_statx +SYS_swapoff +SYS_swapon +SYS_symlink +SYS_symlinkat +SYS_sync +SYS_sync_file_range +SYS_syncfs +SYS_sysfs +SYS_sysinfo +SYS_syslog +SYS_tee +SYS_tgkill +SYS_time +SYS_timer_create +SYS_timer_delete +SYS_timer_getoverrun +SYS_timer_gettime +SYS_timer_settime +SYS_timerfd_create +SYS_timerfd_gettime +SYS_timerfd_settime +SYS_times +SYS_tkill +SYS_truncate +SYS_tuxcall +SYS_umask +SYS_umount2 +SYS_uname +SYS_unlink +SYS_unlinkat +SYS_unshare +SYS_uselib +SYS_userfaultfd +SYS_ustat +SYS_utime +SYS_utimensat +SYS_utimes +SYS_vfork +SYS_vhangup +SYS_vmsplice +SYS_vserver +SYS_wait4 +SYS_waitid +SYS_write +SYS_writev +S_ADDT +S_IEXEC +S_IFBLK +S_IFCHR +S_IFDIR +S_IFIFO +S_IFLNK +S_IFMT +S_IFREG +S_IFSOCK +S_IREAD +S_IRGRP +S_IROTH +S_IRUSR +S_IRWXG +S_IRWXO +S_IRWXU +S_ISGID +S_ISUID +S_ISVTX +S_IWGRP +S_IWOTH +S_IWRITE +S_IWUSR +S_IXGRP +S_IXOTH +S_IXUSR +S_PREREQ +S_UPDATE +S_ZONE +SetBitFieldPtr16Int16 +SetBitFieldPtr16Int32 +SetBitFieldPtr16Int64 +SetBitFieldPtr16Int8 +SetBitFieldPtr16Uint16 +SetBitFieldPtr16Uint32 +SetBitFieldPtr16Uint64 +SetBitFieldPtr16Uint8 +SetBitFieldPtr32Int16 +SetBitFieldPtr32Int32 +SetBitFieldPtr32Int64 +SetBitFieldPtr32Int8 +SetBitFieldPtr32Uint16 +SetBitFieldPtr32Uint32 +SetBitFieldPtr32Uint64 +SetBitFieldPtr32Uint8 +SetBitFieldPtr64Int16 +SetBitFieldPtr64Int32 +SetBitFieldPtr64Int64 +SetBitFieldPtr64Int8 +SetBitFieldPtr64Uint16 +SetBitFieldPtr64Uint32 +SetBitFieldPtr64Uint64 +SetBitFieldPtr64Uint8 +SetBitFieldPtr8Int16 +SetBitFieldPtr8Int32 +SetBitFieldPtr8Int64 +SetBitFieldPtr8Int8 +SetBitFieldPtr8Uint16 +SetBitFieldPtr8Uint32 +SetBitFieldPtr8Uint64 +SetBitFieldPtr8Uint8 +SetEnviron +StackCapture +Start +TAB0 +TAB1 +TAB2 +TAB3 +TABDLY +TACTION +TAG +TBF_ctx +TBF_key +TBF_word +TBF_word_signed +TCFLSH +TCGETA +TCGETS +TCGETX +TCIFLUSH +TCIOFF +TCIOFLUSH +TCION +TCOFLUSH +TCOOFF +TCOON +TCP_CC_INFO +TCP_CLOSE +TCP_CLOSE_WAIT +TCP_CLOSING +TCP_CM_INQ +TCP_CONGESTION +TCP_CORK +TCP_DEFER_ACCEPT +TCP_ESTABLISHED +TCP_FASTOPEN +TCP_FASTOPEN_CONNECT +TCP_FASTOPEN_KEY +TCP_FASTOPEN_NO_COOKIE +TCP_FIN_WAIT1 +TCP_FIN_WAIT2 +TCP_INFO +TCP_INQ +TCP_KEEPCNT +TCP_KEEPIDLE +TCP_KEEPINTVL +TCP_LAST_ACK +TCP_LINGER2 +TCP_LISTEN +TCP_MAXSEG +TCP_MD5SIG +TCP_MD5SIG_EXT +TCP_NODELAY +TCP_NOTSENT_LOWAT +TCP_QUEUE_SEQ +TCP_QUICKACK +TCP_REPAIR +TCP_REPAIR_OPTIONS +TCP_REPAIR_QUEUE +TCP_REPAIR_WINDOW +TCP_SAVED_SYN +TCP_SAVE_SYN +TCP_SYNCNT +TCP_SYN_RECV +TCP_SYN_SENT +TCP_THIN_DUPACK +TCP_THIN_LINEAR_TIMEOUTS +TCP_TIMESTAMP +TCP_TIME_WAIT +TCP_TX_DELAY +TCP_ULP +TCP_USER_TIMEOUT +TCP_WINDOW_CLAMP +TCP_ZEROCOPY_RECEIVE +TCSADRAIN +TCSAFLUSH +TCSANOW +TCSBRK +TCSBRKP +TCSETA +TCSETAF +TCSETAW +TCSETS +TCSETSF +TCSETSW +TCSETX +TCSETXF +TCSETXW +TCXONC +TDIR +TENTRY +TElf32_Addr +TElf32_Chdr +TElf32_Conflict +TElf32_Dyn +TElf32_Ehdr +TElf32_Half +TElf32_Lib +TElf32_Move +TElf32_Nhdr +TElf32_Off +TElf32_Phdr +TElf32_RegInfo +TElf32_Rel +TElf32_Rela +TElf32_Relr +TElf32_Section +TElf32_Shdr +TElf32_Sword +TElf32_Sxword +TElf32_Sym +TElf32_Syminfo +TElf32_Verdaux +TElf32_Verdef +TElf32_Vernaux +TElf32_Verneed +TElf32_Versym +TElf32_Word +TElf32_Xword +TElf32_auxv_t +TElf32_gptab +TElf64_Addr +TElf64_Chdr +TElf64_Dyn +TElf64_Ehdr +TElf64_Half +TElf64_Lib +TElf64_Move +TElf64_Nhdr +TElf64_Off +TElf64_Phdr +TElf64_Rel +TElf64_Rela +TElf64_Relr +TElf64_Section +TElf64_Shdr +TElf64_Sword +TElf64_Sxword +TElf64_Sym +TElf64_Syminfo +TElf64_Verdaux +TElf64_Verdef +TElf64_Vernaux +TElf64_Verneed +TElf64_Versym +TElf64_Word +TElf64_Xword +TElf64_auxv_t +TElf_MIPS_ABIFlags_v0 +TElf_Options +TElf_Options_Hw +TElf_Symndx +TFD_CLOEXEC +TFD_NONBLOCK +TFD_TIMER_ABSTIME +TFD_TIMER_CANCEL_ON_SET +TFILE +TFTW +THEADER +THOUSEP +THRESH +TIMER_ABSTIME +TIME_BAD +TIME_DEL +TIME_ERROR +TIME_INS +TIME_OK +TIME_OOP +TIME_UTC +TIME_WAIT +TIOCCBRK +TIOCCONS +TIOCEXCL +TIOCGDEV +TIOCGETD +TIOCGEXCL +TIOCGICOUNT +TIOCGISO7816 +TIOCGLCKTRMIOS +TIOCGPGRP +TIOCGPKT +TIOCGPTLCK +TIOCGPTN +TIOCGPTPEER +TIOCGRS485 +TIOCGSERIAL +TIOCGSID +TIOCGSOFTCAR +TIOCGWINSZ +TIOCINQ +TIOCLINUX +TIOCMBIC +TIOCMBIS +TIOCMGET +TIOCMIWAIT +TIOCMSET +TIOCM_CAR +TIOCM_CD +TIOCM_CTS +TIOCM_DSR +TIOCM_DTR +TIOCM_LE +TIOCM_LOOP +TIOCM_OUT1 +TIOCM_OUT2 +TIOCM_RI +TIOCM_RNG +TIOCM_RTS +TIOCM_SR +TIOCM_ST +TIOCNOTTY +TIOCNXCL +TIOCOUTQ +TIOCPKT +TIOCPKT_DATA +TIOCPKT_DOSTOP +TIOCPKT_FLUSHREAD +TIOCPKT_FLUSHWRITE +TIOCPKT_IOCTL +TIOCPKT_NOSTOP +TIOCPKT_START +TIOCPKT_STOP +TIOCSBRK +TIOCSCTTY +TIOCSERCONFIG +TIOCSERGETLSR +TIOCSERGETMULTI +TIOCSERGSTRUCT +TIOCSERGWILD +TIOCSERSETMULTI +TIOCSERSWILD +TIOCSER_TEMT +TIOCSETD +TIOCSIG +TIOCSISO7816 +TIOCSLCKTRMIOS +TIOCSPGRP +TIOCSPTLCK +TIOCSRS485 +TIOCSSERIAL +TIOCSSOFTCAR +TIOCSTI +TIOCSWINSZ +TIOCVHANGUP +TLS +TMP_MAX +TOINT_INTRINSICS +TOSTOP +TP_OFFSET +TRAP_BRANCH +TRAP_BRKPT +TRAP_HWBKPT +TRAP_TRACE +TRAP_UNK +TRE_CHAR_MAX +TRE_MEM_BLOCK_SIZE +TRE_REGEX_T_FIELD +TRY_AGAIN +TTY_NAME_MAX +TVISIT +TWT +TZNAME_MAX +T_A +T_A6 +T_AAAA +T_AFSDB +T_ANY +T_ATMA +T_AVC +T_AXFR +T_CAA +T_CDNSKEY +T_CDS +T_CNAME +T_CSYNC +T_DHCID +T_DLV +T_DNAME +T_DNSKEY +T_DS +T_EID +T_EUI48 +T_EUI64 +T_FMT +T_FMT_AMPM +T_GID +T_GPOS +T_G_fpos64_t +T_HINFO +T_HIP +T_IO_FILE +T_IO_cookie_io_functions_t +T_IPSECKEY +T_ISDN +T_IXFR +T_KEY +T_L32 +T_L64 +T_LOC +T_LP +T_MAILA +T_MAILB +T_MB +T_MD +T_MF +T_MG +T_MINFO +T_MR +T_MX +T_NAPTR +T_NID +T_NIMLOC +T_NINFO +T_NS +T_NSAP +T_NSAP_PTR +T_NSEC +T_NSEC3 +T_NSEC3PARAM +T_NULL +T_NXT +T_OPENPGPKEY +T_PTR +T_PX +T_RKEY +T_RP +T_RRSIG +T_RT +T_SIG +T_SMIMEA +T_SOA +T_SPF +T_SRV +T_SSHFP +T_TA +T_TALINK +T_TKEY +T_TLSA +T_TSIG +T_TXT +T_UID +T_UINFO +T_UNSPEC +T_URI +T_WKS +T_X25 +T_fpstate +T_ns_flagdata +Taddress +Taddrinfo +Taibuf +Targ +Tarpd_request +Tarphdr +Tarpreq +Tarpreq_old +Tbinding +Tblkcnt_t +Tblksize_t +Tcc_t +Tchar16_t +Tchar32_t +Tclock_t +Tclockid_t +Tcmpfun +Tcmsghdr +Tcompiler_defines_long_double_incorrectly +Tcookie +Tcookie1 +Tcookie2 +Tcookie3 +Tcookie4 +Tcookie_FILE +Tcookie_io_functions_t +Tcpu_set_t +Tcpu_set_t1 +Tcrypt_data +Tctx +Tctx1 +Tdev_t +Tdirent +Tdirstream_buf_alignment_check +Tdiv_t +Tdl_phdr_info +Tdouble_t +Tdpc_ctx +Tdqblk +Tdqinfo +Tentry +Tepoll_data +Tepoll_data_t +Tepoll_event +Terrmsgstr_t +Tether_addr +Tether_arp +Tether_header +Tethhdr +Teventfd_t +Texp2f_data +Texp_data +Texpanded_key +Tf_owner_ex +Tfanotify_event_info_fid +Tfanotify_event_info_header +Tfanotify_event_metadata +Tfanotify_response +Tfcookie +Tfd_mask +Tfd_set +Tfdop +Tfenv_t +Tfexcept_t +Tfile_handle +Tfloat_t +Tflock +Tfpos_t +Tfpregset_t +Tfsblkcnt_t +Tfsfilcnt_t +Tfsid_t +Tgid_t +Tglob_t +Tgreg_t +Tgregset_t +Tgroup +Tgroup_filter +Tgroup_req +Tgroup_source_req +Thistory +Thostent +Thsearch_data +Ticonv_t +Tid_t +Tidtype_t +Tif_nameindex +Tifaddr +Tifaddrmsg +Tifaddrs +Tifaddrs_ctx +Tifaddrs_storage +Tifconf +Tifinfomsg +Tifmap +Tifnameindexctx +Tifnamemap +Tifreq +Timaxdiv_t +Tin6_addr +Tin6_pktinfo +Tin_addr +Tin_addr_t +Tin_pktinfo +Tin_port_t +Tino_t +Tinotify_event +Tint16_t +Tint32_t +Tint64_t +Tint8_t +Tint_fast16_t +Tint_fast32_t +Tint_fast64_t +Tint_fast8_t +Tint_least16_t +Tint_least32_t +Tint_least64_t +Tint_least8_t +Tintmax_t +Tintptr_t +Tioctl_compat_map +Tiovec +Tip6_mtuinfo +Tip_mreq +Tip_mreq_source +Tip_mreqn +Tip_msfilter +Tip_opts +Tipc_perm +Tipc_perm1 +Tipv6_mreq +Titimerspec +Titimerval +Tjmp_buf +Tk_sigaction +Tkey_t +Tkstat +Tktimex +Tktimex64 +Tlastlog +Tlconv +Tldiv_t +Tlinger +Tlink_map +Tliterals +Tlldiv_t +Tlocale_t +Tlog2_data +Tlog2f_data +Tlog_data +Tlogf_data +Tmatch +Tmbstate_t +Tmcontext_t +Tmcontext_t1 +Tmd5 +Tmem_FILE +Tmmsghdr +Tmntent +Tmode_t +Tms_FILE +Tmsgcat +Tmsghdr +Tmsginfo +Tmsglen_t +Tmsgqnum_t +Tmsqid_ds +Tneg +Tnetent +Tnfds_t +Tnl_catd +Tnl_item +Tnlink_t +Tnlmsghdr +Tnode +Tnode1 +Tns_cert_types +Tns_class +Tns_flag +Tns_key_types +Tns_msg +Tns_opcode +Tns_rcode +Tns_rr +Tns_sect +Tns_tcp_tsig_state +Tns_tcp_tsig_state1 +Tns_tsig_key +Tns_tsig_key1 +Tns_type +Tns_update_operation +Tntptimeval +Tnum +Toff_t +Toption +Tpasswd +Tpid_t +Tpolicy +Tpollfd +Tposix_spawn_file_actions_t +Tposix_spawnattr_t +Tpow_log_data +Tpowf_log2_data +Tprctl_mm_map +Tprotoent +Tpthread_attr_t +Tpthread_barrier_t +Tpthread_barrierattr_t +Tpthread_cond_t +Tpthread_condattr_t +Tpthread_key_t +Tpthread_mutex_t +Tpthread_mutexattr_t +Tpthread_once_t +Tpthread_rwlock_t +Tpthread_rwlockattr_t +Tpthread_spinlock_t +Tpthread_t +Tptrdiff_t +Tqelem +Tr_debug +Tre_pattern_buffer +Treg_errcode_t +Tregex_t +Tregmatch_t +Tregoff_t +Tres_state +Tres_sym +Tresolvconf +Trlim_t +Trlimit +Trtattr +Trtgenmsg +Trusage +Tsa +Tsa_family_t +Tsched_param +Tsembuf +Tsemid_ds +Tsemid_ds1 +Tseminfo +Tsemun +Tservent +Tservice +Tsha256 +Tsha512 +Tshm_info +Tshmatt_t +Tshmid_ds +Tshminfo +Tsig_atomic_t +Tsig_t +Tsigaction +Tsigaltstack +Tsigcontext +Tsigevent +Tsighandler_t +Tsiginfo_t +Tsigjmp_buf +Tsignalfd_siginfo +Tsigset_t +Tsigval +Tsize_t +Tsockaddr +Tsockaddr_in +Tsockaddr_in6 +Tsockaddr_ll_hack +Tsockaddr_storage +Tsockany +Tsocklen_t +Tspeed_t +Tspwd +Tssize_t +Tst +Tstack_t +Tstat +Tstateful_cd +Tstatfs +Tstatvfs +Tstatx +Tstatx1 +Tstatx_timestamp +Tsuseconds_t +Tsyscall_arg_t +Tsysinfo +Ttcflag_t +Ttermios +Ttime_t +Ttimeb +Ttimer_t +Ttimespec +Ttimeval +Ttimex +Ttimezone +Ttls_module +Ttm +Ttm1 +Ttms +Ttnfa +Ttnfa_transition +Ttre_addtags_symbol_t +Ttre_ast_node_t +Ttre_ast_type_t +Ttre_backtrack_item_t +Ttre_backtrack_struct +Ttre_backtrack_t +Ttre_catenation_t +Ttre_char_t +Ttre_cint_t +Ttre_copyast_symbol_t +Ttre_ctype_t +Ttre_expand_ast_symbol_t +Ttre_iteration_t +Ttre_list +Ttre_list_t +Ttre_literal_t +Ttre_mem_struct +Ttre_mem_t +Ttre_nfl_stack_symbol_t +Ttre_parse_ctx_t +Ttre_pos_and_tags_t +Ttre_reach_pos_t +Ttre_stack_item +Ttre_stack_rec +Ttre_stack_t +Ttre_submatch_data +Ttre_submatch_data_t +Ttre_tag_direction_t +Ttre_tag_states_t +Ttre_tnfa_reach_t +Ttre_tnfa_t +Ttre_tnfa_transition_t +Ttre_union_t +Tucontext +Tucontext_t +Tucontext_t1 +Tucontext_t2 +Tucontext_t3 +Tucontext_t4 +Tucontext_t5 +Tucontext_t6 +Tucontext_t7 +Tucred +Tuid_t +Tuint16_t +Tuint32_t +Tuint64_t +Tuint8_t +Tuint_fast16_t +Tuint_fast32_t +Tuint_fast64_t +Tuint_fast8_t +Tuint_least16_t +Tuint_least32_t +Tuint_least64_t +Tuint_least8_t +Tuintmax_t +Tuintptr_t +Tuseconds_t +Tutimbuf +Tutmpx +Tutsname +Tutsname1 +Tv4l2_event +Tva_list +Twchar_t +Twctrans_t +Twctype_t +Twinsize +Twint_t +Twms_FILE +UCHAR_MAX +UCS2 +UCS2BE +UCS2LE +UINT16_MAX +UINT32_MAX +UINT64_MAX +UINT8_MAX +UINTMAX_MAX +UINTPTR_MAX +UINT_FAST16_MAX +UINT_FAST32_MAX +UINT_FAST64_MAX +UINT_FAST8_MAX +UINT_LEAST16_MAX +UINT_LEAST32_MAX +UINT_LEAST64_MAX +UINT_LEAST8_MAX +UINT_MAX +UIO_MAXIOV +ULLONG_MAX +ULONG_MAX +UMOUNT_NOFOLLOW +UNAME26 +UNGET +UNIT +UNMATCHABLE +USER_PROCESS +USHRT_MAX +USRQUOTA +US_ASCII +UTF8_LOCALE +UTF_16 +UTF_16BE +UTF_16LE +UTF_32 +UTF_32BE +UTF_32LE +UTF_8 +UTIME_NOW +UTIME_OMIT +UTMP_FILE +UTMP_FILENAME +UT_HOSTSIZE +UT_LINESIZE +UT_NAMESIZE +Uint128 +Uint128FromFloat32 +Uint128FromFloat64 +Uint128FromInt128 +Uint128FromInt16 +Uint128FromInt32 +Uint128FromInt64 +Uint128FromInt8 +Uint128FromUint16 +Uint128FromUint32 +Uint128FromUint64 +Uint128FromUint8 +Uint16 +Uint16FromComplex128 +Uint16FromComplex64 +Uint16FromFloat32 +Uint16FromFloat64 +Uint16FromInt16 +Uint16FromInt32 +Uint16FromInt64 +Uint16FromInt8 +Uint16FromUint16 +Uint16FromUint32 +Uint16FromUint64 +Uint16FromUint8 +Uint16FromUintptr +Uint32 +Uint32FromComplex128 +Uint32FromComplex64 +Uint32FromFloat32 +Uint32FromFloat64 +Uint32FromInt16 +Uint32FromInt32 +Uint32FromInt64 +Uint32FromInt8 +Uint32FromUint16 +Uint32FromUint32 +Uint32FromUint64 +Uint32FromUint8 +Uint32FromUintptr +Uint64 +Uint64FromComplex128 +Uint64FromComplex64 +Uint64FromFloat32 +Uint64FromFloat64 +Uint64FromInt16 +Uint64FromInt32 +Uint64FromInt64 +Uint64FromInt8 +Uint64FromUint16 +Uint64FromUint32 +Uint64FromUint64 +Uint64FromUint8 +Uint64FromUintptr +Uint8 +Uint8FromComplex128 +Uint8FromComplex64 +Uint8FromFloat32 +Uint8FromFloat64 +Uint8FromInt16 +Uint8FromInt32 +Uint8FromInt64 +Uint8FromInt8 +Uint8FromUint16 +Uint8FromUint32 +Uint8FromUint64 +Uint8FromUint8 +Uint8FromUintptr +Uintptr +UintptrFromComplex128 +UintptrFromComplex64 +UintptrFromFloat32 +UintptrFromFloat64 +UintptrFromInt16 +UintptrFromInt32 +UintptrFromInt64 +UintptrFromInt8 +UintptrFromUint16 +UintptrFromUint32 +UintptrFromUint64 +UintptrFromUint8 +UintptrFromUintptr +UsableSize +VDISCARD +VEOF +VEOL +VEOL2 +VER +VERASE +VERSION +VER_DEF_CURRENT +VER_DEF_NONE +VER_DEF_NUM +VER_FLG_BASE +VER_FLG_WEAK +VER_NDX_ELIMINATE +VER_NDX_GLOBAL +VER_NDX_LOCAL +VER_NDX_LORESERVE +VER_NEED_CURRENT +VER_NEED_NONE +VER_NEED_NUM +VINTR +VKILL +VLNEXT +VMIN +VQUIT +VREPRINT +VSTART +VSTOP +VSUSP +VSWTC +VT0 +VT1 +VTDLY +VTIME +VWERASE +VaFloat32 +VaFloat64 +VaInt32 +VaInt64 +VaList +VaOther +VaUint32 +VaUint64 +VaUintptr +W +WANT_ROUNDING +WANT_SNAN +WCHAR_MAX +WCHAR_MIN +WCHAR_T +WCONTINUED +WCTYPE_ALNUM +WCTYPE_ALPHA +WCTYPE_BLANK +WCTYPE_CNTRL +WCTYPE_DIGIT +WCTYPE_GRAPH +WCTYPE_LOWER +WCTYPE_PRINT +WCTYPE_PUNCT +WCTYPE_SPACE +WCTYPE_UPPER +WCTYPE_XDIGIT +WEOF +WEXITED +WHOLE_SECONDS +WINT_MAX +WINT_MIN +WNOHANG +WNOWAIT +WORD_BIT +WR +WS +WSTOPPED +WTMP_FILE +WTMP_FILENAME +WUNTRACED +W_OK +Watch +WatchDelete +WatchFloat32 +WatchFloat64 +WatchInt16 +WatchInt32 +WatchInt64 +WatchInt8 +WatchPtr +WatchUint16 +WatchUint32 +WatchUint64 +WatchUint8 +XATTR_CREATE +XATTR_REPLACE +XCASE +XTABS +X_Exit +X_IO_feof_unlocked +X_IO_ferror_unlocked +X_IO_getc +X_IO_getc_unlocked +X_IO_putc +X_IO_putc_unlocked +X_OK +X___errno_location +X__abort_lock +X__aio_close +X__asctime_r +X__assert_fail +X__at_quick_exit_lockptr +X__atexit_lockptr +X__block_all_sigs +X__block_app_sigs +X__builtin___memcpy_chk +X__builtin___memmove_chk +X__builtin___memset_chk +X__builtin___snprintf_chk +X__builtin___sprintf_chk +X__builtin___strcat_chk +X__builtin___strcpy_chk +X__builtin___strncpy_chk +X__builtin___vsnprintf_chk +X__builtin_abort +X__builtin_abs +X__builtin_add_overflowInt64 +X__builtin_add_overflowUint32 +X__builtin_add_overflowUint64 +X__builtin_alloca +X__builtin_bswap16 +X__builtin_bswap32 +X__builtin_bswap64 +X__builtin_bzero +X__builtin_clz +X__builtin_clzl +X__builtin_clzll +X__builtin_constant_p_impl +X__builtin_copysign +X__builtin_copysignf +X__builtin_copysignl +X__builtin_exit +X__builtin_expect +X__builtin_fabs +X__builtin_fabsf +X__builtin_fabsl +X__builtin_ffs +X__builtin_fma +X__builtin_free +X__builtin_getentropy +X__builtin_huge_val +X__builtin_huge_valf +X__builtin_inf +X__builtin_inff +X__builtin_infl +X__builtin_isblank +X__builtin_isnan +X__builtin_isnanf +X__builtin_isnanl +X__builtin_isprint +X__builtin_isunordered +X__builtin_llabs +X__builtin_log2 +X__builtin_lrint +X__builtin_lrintf +X__builtin_malloc +X__builtin_memcmp +X__builtin_memcpy +X__builtin_memset +X__builtin_mmap +X__builtin_mul_overflowInt64 +X__builtin_mul_overflowUint128 +X__builtin_mul_overflowUint64 +X__builtin_nan +X__builtin_nanf +X__builtin_nanl +X__builtin_object_size +X__builtin_popcount +X__builtin_popcountl +X__builtin_popcountll +X__builtin_prefetch +X__builtin_printf +X__builtin_rintf +X__builtin_round +X__builtin_snprintf +X__builtin_sprintf +X__builtin_strchr +X__builtin_strcmp +X__builtin_strcpy +X__builtin_strlen +X__builtin_sub_overflowInt64 +X__builtin_trap +X__builtin_unreachable +X__builtin_vsnprintf +X__bump_lockptr +X__c_dot_utf8 +X__c_dot_utf8_locale +X__c_locale +X__ccgo_dmesg +X__ccgo_getMutexType +X__ccgo_in6addr_anyp +X__ccgo_pthreadAttrGetDetachState +X__ccgo_pthreadMutexattrGettype +X__ccgo_sqlite3_log +X__clock_gettime +X__clock_nanosleep +X__cmsg_nxthdr +X__convert_scm_timestamps +X__cos +X__cosdf +X__crypt_blowfish +X__crypt_des +X__crypt_md5 +X__crypt_r +X__crypt_sha256 +X__crypt_sha512 +X__ctype_b_loc +X__ctype_get_mb_cur_max +X__ctype_tolower_loc +X__ctype_toupper_loc +X__des_setkey +X__dn_expand +X__dns_parse +X__do_des +X__do_orphaned_stdio_locks +X__dup3 +X__duplocale +X__eintr_valid_flag +X__env_rm_add +X__errno_location +X__execvpe +X__exp2f_data +X__exp_data +X__expo2 +X__expo2f +X__fbufsize +X__fclose_ca +X__fdopen +X__fesetround +X__fgetwc_unlocked +X__flbf +X__floatscan +X__fmodeflags +X__fopen_rb_ca +X__fpclassify +X__fpclassifyf +X__fpclassifyl +X__fpending +X__fpurge +X__fputwc_unlocked +X__freadable +X__freadahead +X__freading +X__freadptr +X__freadptrinc +X__freelocale +X__fseeko +X__fseeko_unlocked +X__fseterr +X__fsetlocking +X__fsmu8 +X__fstat +X__fstatat +X__ftello +X__ftello_unlocked +X__funcs_on_quick_exit +X__futimesat +X__fwritable +X__fwritex +X__fwriting +X__fxstat +X__fxstatat +X__get_handler_set +X__get_locale +X__get_resolv_conf +X__getauxval +X__getdelim +X__getgr_a +X__getgrent_a +X__getopt_msg +X__getpw_a +X__getpwent_a +X__gettext_lockptr +X__gettextdomain +X__gmtime_r +X__h_errno_location +X__hwcap +X__inet_aton +X__init_ssp +X__intscan +X__isalnum_l +X__isalpha_l +X__isblank_l +X__iscntrl_l +X__isdigit_l +X__isgraph_l +X__islower_l +X__isnan +X__isnanf +X__isnanl +X__isoc99_fscanf +X__isoc99_fwscanf +X__isoc99_scanf +X__isoc99_sscanf +X__isoc99_swscanf +X__isoc99_vfscanf +X__isoc99_vfwscanf +X__isoc99_vscanf +X__isoc99_vsscanf +X__isoc99_vswscanf +X__isoc99_vwscanf +X__isoc99_wscanf +X__isprint_l +X__ispunct_l +X__isspace_l +X__isupper_l +X__iswalnum_l +X__iswalpha_l +X__iswblank_l +X__iswcntrl_l +X__iswctype_l +X__iswdigit_l +X__iswgraph_l +X__iswlower_l +X__iswprint_l +X__iswpunct_l +X__iswspace_l +X__iswupper_l +X__iswxdigit_l +X__isxdigit_l +X__lctrans +X__lctrans_cur +X__lctrans_impl +X__ldexp_cexp +X__ldexp_cexpf +X__lgamma_r +X__lgammaf_r +X__lgammal_r +X__libc +X__libc_current_sigrtmax +X__libc_current_sigrtmin +X__libc_sigaction +X__libc_version +X__loc_is_allocated +X__locale_lock +X__locale_lockptr +X__localtime_r +X__lockfile +X__log2_data +X__log2f_data +X__log_data +X__logf_data +X__lookup_ipliteral +X__lookup_name +X__lookup_serv +X__lseek +X__lsysinfo +X__lxstat +X__madvise +X__map_file +X__math_divzero +X__math_divzerof +X__math_invalid +X__math_invalidf +X__math_oflow +X__math_oflowf +X__math_uflow +X__math_uflowf +X__math_xflow +X__math_xflowf +X__memrchr +X__mkostemps +X__mmap +X__mo_lookup +X__month_to_secs +X__mprotect +X__mremap +X__munmap +X__newlocale +X__nl_langinfo +X__nl_langinfo_l +X__nscd_query +X__ofl_add +X__ofl_lock +X__ofl_unlock +X__optpos +X__overflow +X__pleval +X__posix_getopt +X__pow_log_data +X__powf_log2_data +X__procfdname +X__ptsname_r +X__putenv +X__qsort_r +X__rand48_step +X__random_lockptr +X__register_locked_file +X__rem_pio2 +X__rem_pio2_large +X__rem_pio2f +X__res_mkquery +X__res_msend +X__res_msend_rc +X__res_send +X__res_state +X__reset_tls +X__restore +X__restore_rt +X__restore_sigs +X__rsqrt_tab +X__rtnetlink_enumerate +X__secs_to_tm +X__secs_to_zone +X__seed48 +X__sem_open_lockptr +X__shgetc +X__shlim +X__shm_mapname +X__sigaction +X__signbit +X__signbitf +X__signbitl +X__sigsetjmp_tail +X__sin +X__sindf +X__stack_chk_fail +X__stack_chk_fail_local +X__stack_chk_guard +X__stderr_FILE +X__stderr_used +X__stdin_FILE +X__stdin_used +X__stdio_close +X__stdio_exit +X__stdio_exit_needed +X__stdio_ofl_lockptr +X__stdio_read +X__stdio_seek +X__stdio_write +X__stdout_FILE +X__stdout_used +X__stdout_write +X__stpcpy +X__stpncpy +X__strcasecmp_l +X__strchrnul +X__strcoll_l +X__strerror_l +X__strftime_fmt_1 +X__strftime_l +X__strncasecmp_l +X__strtod_l +X__strtof_l +X__strtoimax_internal +X__strtol_internal +X__strtold_l +X__strtoll_internal +X__strtoul_internal +X__strtoull_internal +X__strtoumax_internal +X__strxfrm_l +X__sync_add_and_fetch_uint32 +X__sync_sub_and_fetch_uint32 +X__sync_synchronize +X__syscall0 +X__syscall1 +X__syscall2 +X__syscall3 +X__syscall4 +X__syscall5 +X__syscall6 +X__syscall_ret +X__sysinfo +X__syslog_lockptr +X__tan +X__tandf +X__timezone_lockptr +X__tm_to_secs +X__tm_to_tzname +X__tolower_l +X__toread +X__toread_needs_stdio_exit +X__toupper_l +X__towctrans_l +X__towlower_l +X__towrite +X__towrite_needs_stdio_exit +X__towupper_l +X__tre_mem_alloc_impl +X__tre_mem_destroy +X__tre_mem_new_impl +X__tsearch_balance +X__uflow +X__unlist_locked_file +X__unlockfile +X__uselocale +X__utc +X__vm_wait +X__wcscoll_l +X__wcsftime_l +X__wcsxfrm_l +X__wctrans_l +X__wctype_l +X__xmknod +X__xmknodat +X__xpg_basename +X__xpg_strerror_r +X__xstat +X__year_to_secs +X_exit +X_flushlbf +X_longjmp +X_ns_flagdata +X_obstack_begin +X_obstack_newchunk +X_pthread_cleanup_pop +X_pthread_cleanup_push +X_setjmp +Xa64l +Xabort +Xabs +Xaccept +Xaccept4 +Xaccess +Xacct +Xacos +Xacosf +Xacosh +Xacoshf +Xacoshl +Xacosl +Xaddmntent +Xadjtime +Xadjtimex +Xalarm +Xalloca +Xalphasort +Xarch_prctl +Xasctime +Xasctime_r +Xasin +Xasinf +Xasinh +Xasinhf +Xasinhl +Xasinl +Xasprintf +Xat_quick_exit +Xatan +Xatan2 +Xatan2f +Xatan2l +Xatanf +Xatanh +Xatanhf +Xatanhl +Xatanl +Xatexit +Xatof +Xatoi +Xatol +Xatoll +Xbacktrace +Xbacktrace_symbols_fd +Xbasename +Xbcmp +Xbcopy +Xbind +Xbind_textdomain_codeset +Xbindtextdomain +Xbrk +Xbsearch +Xbtowc +Xbzero +Xc16rtomb +Xc32rtomb +Xcabs +Xcabsf +Xcabsl +Xcacos +Xcacosf +Xcacosh +Xcacoshf +Xcacoshl +Xcacosl +Xcalloc +Xcapget +Xcapset +Xcarg +Xcargf +Xcargl +Xcasin +Xcasinf +Xcasinh +Xcasinhf +Xcasinhl +Xcasinl +Xcatan +Xcatanf +Xcatanh +Xcatanhf +Xcatanhl +Xcatanl +Xcatclose +Xcatgets +Xcatopen +Xcbrt +Xcbrtf +Xcbrtl +Xccos +Xccosf +Xccosh +Xccoshf +Xccoshl +Xccosl +Xceil +Xceilf +Xceill +Xcexp +Xcexpf +Xcexpl +Xcfgetispeed +Xcfgetospeed +Xcfmakeraw +Xcfsetispeed +Xcfsetospeed +Xcfsetspeed +Xchdir +Xchmod +Xchown +Xchroot +Xcimag +Xcimagf +Xcimagl +Xclearenv +Xclearerr +Xclearerr_unlocked +Xclock +Xclock_adjtime +Xclock_getcpuclockid +Xclock_getres +Xclock_gettime +Xclock_nanosleep +Xclock_settime +Xclog +Xclogf +Xclogl +Xclose +Xclosedir +Xcloselog +Xconfstr +Xconj +Xconjf +Xconjl +Xconnect +Xcopy_file_range +Xcopysign +Xcopysignf +Xcopysignl +Xcos +Xcosf +Xcosh +Xcoshf +Xcoshl +Xcosl +Xcpow +Xcpowf +Xcpowl +Xcproj +Xcprojf +Xcprojl +Xcreal +Xcrealf +Xcreall +Xcreat +Xcrypt +Xcrypt_r +Xcsin +Xcsinf +Xcsinh +Xcsinhf +Xcsinhl +Xcsinl +Xcsqrt +Xcsqrtf +Xcsqrtl +Xctan +Xctanf +Xctanh +Xctanhf +Xctanhl +Xctanl +Xctermid +Xctime +Xctime_r +Xdaylight +Xdcgettext +Xdcngettext +Xdelete_module +Xdgettext +Xdifftime +Xdirfd +Xdirname +Xdiv +Xdlclose +Xdlerror +Xdlopen +Xdlsym +Xdn_comp +Xdn_expand +Xdn_skipname +Xdngettext +Xdprintf +Xdrand48 +Xdrem +Xdremf +Xdup +Xdup2 +Xdup3 +Xduplocale +Xecvt +Xencrypt +Xendgrent +Xendhostent +Xendmntent +Xendnetent +Xendprotoent +Xendpwent +Xendservent +Xendspent +Xenviron +Xepoll_create +Xepoll_create1 +Xepoll_ctl +Xepoll_pwait +Xepoll_wait +Xerand48 +Xerf +Xerfc +Xerfcf +Xerfcl +Xerff +Xerfl +Xether_aton +Xether_aton_r +Xether_hostton +Xether_line +Xether_ntoa +Xether_ntoa_r +Xether_ntohost +Xeventfd +Xeventfd_read +Xeventfd_write +Xexecl +Xexecle +Xexeclp +Xexecv +Xexecve +Xexecvp +Xexecvpe +Xexit +Xexp +Xexp10 +Xexp10f +Xexp10l +Xexp2 +Xexp2f +Xexp2l +Xexpf +Xexpl +Xexplicit_bzero +Xexpm1 +Xexpm1f +Xexpm1l +Xfabs +Xfabsf +Xfabsl +Xfaccessat +Xfallocate +Xfanotify_init +Xfanotify_mark +Xfchdir +Xfchmod +Xfchmodat +Xfchown +Xfchownat +Xfclose +Xfcntl +Xfcntl64 +Xfcvt +Xfdatasync +Xfdim +Xfdimf +Xfdiml +Xfdopen +Xfdopendir +Xfeclearexcept +Xfegetenv +Xfegetround +Xfeof +Xfeof_unlocked +Xferaiseexcept +Xferror +Xferror_unlocked +Xfesetenv +Xfetestexcept +Xfexecve +Xfflush +Xfflush_unlocked +Xffs +Xffsl +Xffsll +Xfgetc +Xfgetc_unlocked +Xfgetgrent +Xfgetln +Xfgetpos +Xfgetpwent +Xfgets +Xfgets_unlocked +Xfgetwc +Xfgetwc_unlocked +Xfgetws +Xfgetws_unlocked +Xfgetxattr +Xfileno +Xfileno_unlocked +Xfinite +Xfinitef +Xflistxattr +Xflock +Xflockfile +Xfloor +Xfloorf +Xfloorl +Xfma +Xfmal +Xfmax +Xfmaxf +Xfmaxl +Xfmemopen +Xfmin +Xfminf +Xfminl +Xfmod +Xfmodf +Xfmodl +Xfmtmsg +Xfnmatch +Xfopen +Xfopen64 +Xfopencookie +Xfork +Xfpathconf +Xfprintf +Xfpurge +Xfputc +Xfputc_unlocked +Xfputs +Xfputs_unlocked +Xfputwc +Xfputwc_unlocked +Xfputws +Xfputws_unlocked +Xfread +Xfread_unlocked +Xfree +Xfreeaddrinfo +Xfreeifaddrs +Xfreelocale +Xfremovexattr +Xfreopen +Xfrexp +Xfrexpf +Xfrexpl +Xfscanf +Xfseek +Xfseeko +Xfsetpos +Xfsetxattr +Xfstat +Xfstat64 +Xfstatat +Xfstatfs +Xfstatvfs +Xfsync +Xftell +Xftello +Xftime +Xftok +Xftruncate +Xftruncate64 +Xftrylockfile +Xfts64_close +Xfts64_open +Xfts64_read +Xfts_close +Xfts_open +Xfts_read +Xfunlockfile +Xfutimens +Xfutimesat +Xfwide +Xfwprintf +Xfwrite +Xfwrite_unlocked +Xfwscanf +Xgai_strerror +Xgcvt +Xget_avphys_pages +Xget_current_dir_name +Xget_nprocs +Xget_nprocs_conf +Xget_phys_pages +Xgetaddrinfo +Xgetauxval +Xgetc +Xgetc_unlocked +Xgetchar +Xgetchar_unlocked +Xgetcwd +Xgetdate +Xgetdate_err +Xgetdelim +Xgetdents +Xgetdomainname +Xgetegid +Xgetentropy +Xgetenv +Xgeteuid +Xgetgid +Xgetgrent +Xgetgrgid +Xgetgrgid_r +Xgetgrnam +Xgetgrnam_r +Xgetgrouplist +Xgetgroups +Xgethostbyaddr +Xgethostbyaddr_r +Xgethostbyname +Xgethostbyname2 +Xgethostbyname2_r +Xgethostbyname_r +Xgethostent +Xgethostid +Xgethostname +Xgetifaddrs +Xgetitimer +Xgetline +Xgetlogin +Xgetlogin_r +Xgetmntent +Xgetmntent_r +Xgetnameinfo +Xgetnetbyaddr +Xgetnetbyname +Xgetnetent +Xgetopt +Xgetopt_long +Xgetopt_long_only +Xgetpagesize +Xgetpeername +Xgetpgid +Xgetpgrp +Xgetpid +Xgetppid +Xgetpriority +Xgetprotobyname +Xgetprotobynumber +Xgetprotoent +Xgetpwent +Xgetpwnam +Xgetpwnam_r +Xgetpwuid +Xgetpwuid_r +Xgetrandom +Xgetresgid +Xgetresuid +Xgetrlimit +Xgetrlimit64 +Xgetrusage +Xgets +Xgetservbyname +Xgetservbyname_r +Xgetservent +Xgetsid +Xgetsockname +Xgetsockopt +Xgetspent +Xgetsubopt +Xgettext +Xgettimeofday +Xgetuid +Xgetw +Xgetwc +Xgetwc_unlocked +Xgetwchar +Xgetwchar_unlocked +Xgetxattr +Xglob +Xglobfree +Xgmtime +Xgmtime_r +Xgrantpt +Xh_errno +Xhasmntopt +Xhcreate +Xhdestroy +Xherror +Xhsearch +Xhstrerror +Xhtonl +Xhtons +Xhypot +Xhypotf +Xhypotl +Xiconv +Xiconv_close +Xiconv_open +Xif_freenameindex +Xif_indextoname +Xif_nameindex +Xif_nametoindex +Xilogb +Xilogbf +Xilogbl +Ximaxabs +Ximaxdiv +Xin6addr_any +Xin6addr_loopback +Xindex +Xinet_addr +Xinet_aton +Xinet_lnaof +Xinet_makeaddr +Xinet_netof +Xinet_network +Xinet_ntoa +Xinet_ntop +Xinet_pton +Xinit_module +Xinitstate +Xinitstate_r +Xinotify_add_watch +Xinotify_init +Xinotify_init1 +Xinotify_rm_watch +Xinsque +Xioctl +Xioperm +Xiopl +Xisalnum +Xisalnum_l +Xisalpha +Xisalpha_l +Xisascii +Xisatty +Xisblank +Xisblank_l +Xiscntrl +Xiscntrl_l +Xisdigit +Xisdigit_l +Xisgraph +Xisgraph_l +Xislower +Xislower_l +Xisnan +Xisnanf +Xisnanl +Xisprint +Xisprint_l +Xispunct +Xispunct_l +Xissetugid +Xisspace +Xisspace_l +Xisupper +Xisupper_l +Xiswalnum +Xiswalnum_l +Xiswalpha +Xiswalpha_l +Xiswblank +Xiswblank_l +Xiswcntrl +Xiswcntrl_l +Xiswctype +Xiswctype_l +Xiswdigit +Xiswdigit_l +Xiswgraph +Xiswgraph_l +Xiswlower +Xiswlower_l +Xiswprint +Xiswprint_l +Xiswpunct +Xiswpunct_l +Xiswspace +Xiswspace_l +Xiswupper +Xiswupper_l +Xiswxdigit +Xiswxdigit_l +Xisxdigit +Xisxdigit_l +Xj0 +Xj0f +Xj1 +Xj1f +Xjn +Xjnf +Xjrand48 +Xkill +Xkillpg +Xklogctl +Xl64a +Xlabs +Xlchmod +Xlchown +Xlckpwdf +Xlcong48 +Xldexp +Xldexpf +Xldexpl +Xldiv +Xlfind +Xlgamma +Xlgamma_r +Xlgammaf +Xlgammaf_r +Xlgammal +Xlgammal_r +Xlgetxattr +Xlink +Xlinkat +Xlisten +Xlistxattr +Xllabs +Xlldiv +Xllistxattr +Xllrint +Xllrintf +Xllrintl +Xllround +Xllroundf +Xllroundl +Xlocaleconv +Xlocaltime +Xlocaltime_r +Xlockf +Xlog +Xlog10 +Xlog10f +Xlog10l +Xlog1p +Xlog1pf +Xlog1pl +Xlog2 +Xlog2f +Xlog2l +Xlogb +Xlogbf +Xlogbl +Xlogf +Xlogin_tty +Xlogl +Xlongjmp +Xlrand48 +Xlremovexattr +Xlrint +Xlrintf +Xlrintl +Xlround +Xlroundf +Xlroundl +Xlsearch +Xlseek +Xlseek64 +Xlsetxattr +Xlstat +Xlstat64 +Xmadvise +Xmalloc +Xmalloc_usable_size +Xmblen +Xmbrlen +Xmbrtoc16 +Xmbrtoc32 +Xmbrtowc +Xmbsinit +Xmbsnrtowcs +Xmbsrtowcs +Xmbstowcs +Xmbtowc +Xmemccpy +Xmemchr +Xmemcmp +Xmemcpy +Xmemfd_create +Xmemmem +Xmemmove +Xmempcpy +Xmemrchr +Xmemset +Xmincore +Xmkdir +Xmkdirat +Xmkdtemp +Xmkfifo +Xmkfifoat +Xmknod +Xmknodat +Xmkostemp +Xmkostemps +Xmkstemp +Xmkstemp64 +Xmkstemps +Xmkstemps64 +Xmktemp +Xmktime +Xmlock +Xmlock2 +Xmlockall +Xmmap +Xmmap64 +Xmodf +Xmodff +Xmodfl +Xmount +Xmprotect +Xmrand48 +Xmremap +Xmsgctl +Xmsgget +Xmsgrcv +Xmsgsnd +Xmsync +Xmunlock +Xmunlockall +Xmunmap +Xname_to_handle_at +Xnan +Xnanf +Xnanl +Xnanosleep +Xnewlocale +Xnextafter +Xnextafterf +Xnextafterl +Xnexttoward +Xnexttowardf +Xnexttowardl +Xnftw +Xngettext +Xnice +Xnl_langinfo +Xnl_langinfo_l +Xnrand48 +Xns_get16 +Xns_get32 +Xns_initparse +Xns_name_uncompress +Xns_parserr +Xns_put16 +Xns_put32 +Xns_skiprr +Xntohl +Xntohs +Xobstack_free +Xobstack_vprintf +Xopen +Xopen64 +Xopen_by_handle_at +Xopen_memstream +Xopen_wmemstream +Xopenat +Xopendir +Xopenlog +Xopenpty +Xoptarg +Xopterr +Xoptind +Xoptopt +Xoptreset +Xpathconf +Xpause +Xpclose +Xperror +Xpersonality +Xpipe +Xpipe2 +Xpivot_root +Xpoll +Xpopen +Xposix_close +Xposix_fadvise +Xposix_fallocate +Xposix_madvise +Xposix_openpt +Xposix_spawn_file_actions_addchdir_np +Xposix_spawn_file_actions_addclose +Xposix_spawn_file_actions_adddup2 +Xposix_spawn_file_actions_addfchdir_np +Xposix_spawn_file_actions_addopen +Xposix_spawn_file_actions_destroy +Xposix_spawn_file_actions_init +Xposix_spawnattr_destroy +Xposix_spawnattr_getflags +Xposix_spawnattr_getpgroup +Xposix_spawnattr_getschedparam +Xposix_spawnattr_getschedpolicy +Xposix_spawnattr_getsigdefault +Xposix_spawnattr_getsigmask +Xposix_spawnattr_init +Xposix_spawnattr_setflags +Xposix_spawnattr_setpgroup +Xposix_spawnattr_setschedparam +Xposix_spawnattr_setschedpolicy +Xposix_spawnattr_setsigdefault +Xposix_spawnattr_setsigmask +Xpow +Xpow10 +Xpow10f +Xpow10l +Xpowf +Xpowl +Xppoll +Xprctl +Xpread +Xpreadv +Xpreadv2 +Xprintf +Xprlimit +Xprocess_vm_readv +Xprocess_vm_writev +Xprogram_invocation_name +Xprogram_invocation_short_name +Xpselect +Xpsiginfo +Xpsignal +Xpthread_atfork +Xpthread_attr_destroy +Xpthread_attr_getdetachstate +Xpthread_attr_init +Xpthread_attr_setdetachstate +Xpthread_attr_setscope +Xpthread_attr_setstacksize +Xpthread_cleanup_pop +Xpthread_cleanup_push +Xpthread_cond_broadcast +Xpthread_cond_destroy +Xpthread_cond_init +Xpthread_cond_signal +Xpthread_cond_timedwait +Xpthread_cond_wait +Xpthread_create +Xpthread_detach +Xpthread_equal +Xpthread_exit +Xpthread_getspecific +Xpthread_join +Xpthread_key_create +Xpthread_key_delete +Xpthread_mutex_destroy +Xpthread_mutex_init +Xpthread_mutex_lock +Xpthread_mutex_trylock +Xpthread_mutex_unlock +Xpthread_mutexattr_destroy +Xpthread_mutexattr_init +Xpthread_mutexattr_settype +Xpthread_self +Xpthread_setcancelstate +Xpthread_setspecific +Xpthread_sigmask +Xpthread_barrier_destroy +Xpthread_barrier_init +Xpthread_barrier_wait +Xptrace +Xptsname +Xptsname_r +Xputc +Xputc_unlocked +Xputchar +Xputchar_unlocked +Xputenv +Xputgrent +Xputpwent +Xputs +Xputspent +Xputw +Xputwc +Xputwc_unlocked +Xputwchar +Xputwchar_unlocked +Xpwrite +Xpwritev +Xpwritev2 +Xqsort +Xqsort_r +Xquick_exit +Xquotactl +Xraise +Xrand +Xrand_r +Xrandom +Xrandom_r +Xread +Xreadahead +Xreaddir +Xreaddir64 +Xreaddir_r +Xreadlink +Xreadlinkat +Xreadv +Xrealloc +Xreallocarray +Xrealpath +Xreboot +Xrecv +Xrecvfrom +Xrecvmmsg +Xrecvmsg +Xregcomp +Xregerror +Xregexec +Xregfree +Xremainder +Xremainderf +Xremainderl +Xremap_file_pages +Xremove +Xremovexattr +Xremque +Xremquo +Xremquof +Xremquol +Xrename +Xrenameat +Xrenameat2 +Xres_init +Xres_mkquery +Xres_send +Xrewind +Xrewinddir +Xrindex +Xrint +Xrintf +Xrintl +Xrmdir +Xround +Xroundf +Xroundl +Xsbrk +Xscalb +Xscalbf +Xscalbln +Xscalblnf +Xscalblnl +Xscalbn +Xscalbnf +Xscalbnl +Xscandir +Xscanf +Xsched_yield +Xsecure_getenv +Xseed48 +Xseekdir +Xselect +Xsemctl +Xsemget +Xsemop +Xsemtimedop +Xsend +Xsendfile +Xsendmmsg +Xsendmsg +Xsendto +Xsetbuf +Xsetbuffer +Xsetdomainname +Xsetenv +Xsetfsgid +Xsetfsuid +Xsetgrent +Xsethostent +Xsethostname +Xsetitimer +Xsetjmp +Xsetkey +Xsetlinebuf +Xsetlocale +Xsetlogmask +Xsetmntent +Xsetnetent +Xsetns +Xsetpgid +Xsetpgrp +Xsetpriority +Xsetprotoent +Xsetpwent +Xsetrlimit +Xsetrlimit64 +Xsetservent +Xsetsid +Xsetsockopt +Xsetspent +Xsetstate +Xsettimeofday +Xsetvbuf +Xsetxattr +Xshm_open +Xshm_unlink +Xshmat +Xshmctl +Xshmdt +Xshmget +Xshutdown +Xsigaction +Xsigaddset +Xsigaltstack +Xsigandset +Xsigdelset +Xsigemptyset +Xsigfillset +Xsigisemptyset +Xsigismember +Xsignal +Xsignalfd +Xsigngam +Xsignificand +Xsignificandf +Xsigorset +Xsigpending +Xsigprocmask +Xsigqueue +Xsigsuspend +Xsigtimedwait +Xsigwait +Xsigwaitinfo +Xsin +Xsincos +Xsincosf +Xsincosl +Xsinf +Xsinh +Xsinhf +Xsinhl +Xsinl +Xsleep +Xsnprintf +Xsockatmark +Xsocket +Xsocketpair +Xsplice +Xsprintf +Xsqrt +Xsqrtf +Xsqrtl +Xsrand +Xsrand48 +Xsrandom +Xsscanf +Xstat +Xstat64 +Xstatfs +Xstatvfs +Xstatx +Xstderr +Xstdin +Xstdout +Xstime +Xstpcpy +Xstpncpy +Xstrcasecmp +Xstrcasecmp_l +Xstrcasestr +Xstrcat +Xstrchr +Xstrchrnul +Xstrcmp +Xstrcoll +Xstrcoll_l +Xstrcpy +Xstrcspn +Xstrdup +Xstrerror +Xstrerror_l +Xstrerror_r +Xstrfmon +Xstrfmon_l +Xstrftime +Xstrftime_l +Xstrlcat +Xstrlcpy +Xstrlen +Xstrncasecmp +Xstrncasecmp_l +Xstrncat +Xstrncmp +Xstrncpy +Xstrndup +Xstrnlen +Xstrpbrk +Xstrptime +Xstrrchr +Xstrsep +Xstrsignal +Xstrspn +Xstrstr +Xstrtod +Xstrtod_l +Xstrtof +Xstrtof_l +Xstrtoimax +Xstrtok +Xstrtok_r +Xstrtol +Xstrtold +Xstrtold_l +Xstrtoll +Xstrtoul +Xstrtoull +Xstrtoumax +Xstrverscmp +Xstrxfrm +Xstrxfrm_l +Xswab +Xswapoff +Xswapon +Xswprintf +Xswscanf +Xsymlink +Xsymlinkat +Xsync +Xsync_file_range +Xsyncfs +Xsyscall +Xsysconf +Xsysctlbyname +Xsysinfo +Xsyslog +Xsystem +Xtan +Xtanf +Xtanh +Xtanhf +Xtanhl +Xtanl +Xtcdrain +Xtcflow +Xtcflush +Xtcgetattr +Xtcgetpgrp +Xtcgetsid +Xtcgetwinsize +Xtcsendbreak +Xtcsetattr +Xtcsetpgrp +Xtcsetwinsize +Xtdelete +Xtdestroy +Xtee +Xtelldir +Xtempnam +Xtextdomain +Xtfind +Xtgamma +Xtgammaf +Xtgammal +Xtime +Xtimegm +Xtimer_delete +Xtimer_getoverrun +Xtimer_gettime +Xtimer_settime +Xtimerfd_create +Xtimerfd_gettime +Xtimerfd_settime +Xtimes +Xtimespec_get +Xtimezone +Xtmpfile +Xtmpnam +Xtoascii +Xtolower +Xtolower_l +Xtoupper +Xtoupper_l +Xtowctrans +Xtowctrans_l +Xtowlower +Xtowlower_l +Xtowupper +Xtowupper_l +Xtrunc +Xtruncate +Xtruncf +Xtruncl +Xtsearch +Xttyname +Xttyname_r +Xtwalk +Xtzname +Xtzset +Xualarm +Xulckpwdf +Xumask +Xumount +Xumount2 +Xuname +Xungetc +Xungetwc +Xunlink +Xunlinkat +Xunlockpt +Xunsetenv +Xunshare +Xuselocale +Xusleep +Xutime +Xutimensat +Xutimes +Xuuid_copy +Xuuid_generate_random +Xuuid_parse +Xuuid_unparse +Xvasprintf +Xvdprintf +Xversionsort +Xvfork +Xvfprintf +Xvfscanf +Xvfwprintf +Xvfwscanf +Xvhangup +Xvmsplice +Xvprintf +Xvscanf +Xvsnprintf +Xvsprintf +Xvsscanf +Xvswprintf +Xvswscanf +Xvwprintf +Xvwscanf +Xwait +Xwait3 +Xwait4 +Xwaitid +Xwaitpid +Xwcpcpy +Xwcpncpy +Xwcrtomb +Xwcscasecmp +Xwcscasecmp_l +Xwcscat +Xwcschr +Xwcscmp +Xwcscoll +Xwcscoll_l +Xwcscpy +Xwcscspn +Xwcsdup +Xwcsftime +Xwcsftime_l +Xwcslen +Xwcsncasecmp +Xwcsncasecmp_l +Xwcsncat +Xwcsncmp +Xwcsncpy +Xwcsnlen +Xwcsnrtombs +Xwcspbrk +Xwcsrchr +Xwcsrtombs +Xwcsspn +Xwcsstr +Xwcstod +Xwcstof +Xwcstoimax +Xwcstok +Xwcstol +Xwcstold +Xwcstoll +Xwcstombs +Xwcstoul +Xwcstoull +Xwcstoumax +Xwcswcs +Xwcswidth +Xwcsxfrm +Xwcsxfrm_l +Xwctob +Xwctomb +Xwctrans +Xwctrans_l +Xwctype +Xwctype_l +Xwcwidth +Xwmemchr +Xwmemcmp +Xwmemcpy +Xwmemmove +Xwmemset +Xwprintf +Xwrite +Xwritev +Xwscanf +Xy0 +Xy0f +Xy1 +Xy1f +Xyn +Xynf +Xzero_struct_address +YESEXPR +YESSTR +YXDOMAIN +YXRRSET +ZEROINFNAN +ZERO_PAD diff --git a/vendor/modernc.org/libc/surface.old b/vendor/modernc.org/libc/surface.old new file mode 100644 index 000000000..c69248857 --- /dev/null +++ b/vendor/modernc.org/libc/surface.old @@ -0,0 +1,9189 @@ +ABDAY_1 +ABDAY_2 +ABDAY_3 +ABDAY_4 +ABDAY_5 +ABDAY_6 +ABDAY_7 +ABMON_1 +ABMON_10 +ABMON_11 +ABMON_12 +ABMON_2 +ABMON_3 +ABMON_4 +ABMON_5 +ABMON_6 +ABMON_7 +ABMON_8 +ABMON_9 +ABUF_SIZE +ACCOUNTING +ADD +ADDR_COMPAT_LAYOUT +ADDR_LIMIT_32BIT +ADDR_LIMIT_3GB +ADDR_NO_RANDOMIZE +ADJ_ESTERROR +ADJ_FREQUENCY +ADJ_MAXERROR +ADJ_MICRO +ADJ_NANO +ADJ_OFFSET +ADJ_OFFSET_SINGLESHOT +ADJ_OFFSET_SS_READ +ADJ_SETOFFSET +ADJ_STATUS +ADJ_TAI +ADJ_TICK +ADJ_TIMECONST +AF_ALG +AF_APPLETALK +AF_ASH +AF_ATMPVC +AF_ATMSVC +AF_AX25 +AF_BLUETOOTH +AF_BRIDGE +AF_CAIF +AF_CAN +AF_DECnet +AF_ECONET +AF_FILE +AF_IB +AF_IEEE802154 +AF_INET +AF_INET6 +AF_IPX +AF_IRDA +AF_ISDN +AF_IUCV +AF_KCM +AF_KEY +AF_LLC +AF_LOCAL +AF_MAX +AF_MPLS +AF_NETBEUI +AF_NETLINK +AF_NETROM +AF_NFC +AF_PACKET +AF_PHONET +AF_PPPOX +AF_QIPCRTR +AF_RDS +AF_ROSE +AF_ROUTE +AF_RXRPC +AF_SECURITY +AF_SMC +AF_SNA +AF_TIPC +AF_UNIX +AF_UNSPEC +AF_VSOCK +AF_WANPIPE +AF_X25 +AF_XDP +AI_ADDRCONFIG +AI_ALL +AI_CANONNAME +AI_NUMERICHOST +AI_NUMERICSERV +AI_PASSIVE +AI_V4MAPPED +ALIGN +ALIGN1 +ALIGN2 +ALIGN3 +ALIGN4 +ALIGN5 +ALIGN6 +ALT_DIGITS +ALT_FORM +AM_STR +ARG_MAX +ARPD_FLUSH +ARPD_LOOKUP +ARPD_UPDATE +ARPHRD_6LOWPAN +ARPHRD_ADAPT +ARPHRD_APPLETLK +ARPHRD_ARCNET +ARPHRD_ASH +ARPHRD_ATM +ARPHRD_AX25 +ARPHRD_BIF +ARPHRD_CAIF +ARPHRD_CAN +ARPHRD_CHAOS +ARPHRD_CISCO +ARPHRD_CSLIP +ARPHRD_CSLIP6 +ARPHRD_DDCMP +ARPHRD_DLCI +ARPHRD_ECONET +ARPHRD_EETHER +ARPHRD_ETHER +ARPHRD_EUI64 +ARPHRD_FCAL +ARPHRD_FCFABRIC +ARPHRD_FCPL +ARPHRD_FCPP +ARPHRD_FDDI +ARPHRD_FRAD +ARPHRD_HDLC +ARPHRD_HIPPI +ARPHRD_HWX25 +ARPHRD_IEEE1394 +ARPHRD_IEEE802 +ARPHRD_IEEE80211 +ARPHRD_IEEE80211_PRISM +ARPHRD_IEEE80211_RADIOTAP +ARPHRD_IEEE802154 +ARPHRD_IEEE802154_MONITOR +ARPHRD_IEEE802_TR +ARPHRD_INFINIBAND +ARPHRD_IP6GRE +ARPHRD_IPDDP +ARPHRD_IPGRE +ARPHRD_IRDA +ARPHRD_LAPB +ARPHRD_LOCALTLK +ARPHRD_LOOPBACK +ARPHRD_METRICOM +ARPHRD_NETLINK +ARPHRD_NETROM +ARPHRD_NONE +ARPHRD_PHONET +ARPHRD_PHONET_PIPE +ARPHRD_PIMREG +ARPHRD_PPP +ARPHRD_PRONET +ARPHRD_RAWHDLC +ARPHRD_RAWIP +ARPHRD_ROSE +ARPHRD_RSRVD +ARPHRD_SIT +ARPHRD_SKIP +ARPHRD_SLIP +ARPHRD_SLIP6 +ARPHRD_TUNNEL +ARPHRD_TUNNEL6 +ARPHRD_VOID +ARPHRD_VSOCKMON +ARPHRD_X25 +ARPOP_InREPLY +ARPOP_InREQUEST +ARPOP_NAK +ARPOP_REPLY +ARPOP_REQUEST +ARPOP_RREPLY +ARPOP_RREQUEST +ASSERTION +ASSERT_AT_BOL +ASSERT_AT_BOW +ASSERT_AT_EOL +ASSERT_AT_EOW +ASSERT_AT_WB +ASSERT_AT_WB_NEG +ASSERT_BACKREF +ASSERT_CHAR_CLASS +ASSERT_CHAR_CLASS_NEG +ASSERT_LAST +ATF_COM +ATF_DONTPUB +ATF_MAGIC +ATF_NETMASK +ATF_PERM +ATF_PUBL +ATF_USETRAILERS +AT_BASE +AT_BASE_PLATFORM +AT_CLKTCK +AT_DCACHEBSIZE +AT_EACCESS +AT_EGID +AT_EMPTY_PATH +AT_ENTRY +AT_EUID +AT_EXECFD +AT_EXECFN +AT_FDCWD +AT_FLAGS +AT_FPUCW +AT_GID +AT_HWCAP +AT_HWCAP2 +AT_ICACHEBSIZE +AT_IGNORE +AT_IGNOREPPC +AT_L1D_CACHEGEOMETRY +AT_L1D_CACHESHAPE +AT_L1D_CACHESIZE +AT_L1I_CACHEGEOMETRY +AT_L1I_CACHESHAPE +AT_L1I_CACHESIZE +AT_L2_CACHEGEOMETRY +AT_L2_CACHESHAPE +AT_L2_CACHESIZE +AT_L3_CACHEGEOMETRY +AT_L3_CACHESHAPE +AT_L3_CACHESIZE +AT_MINSIGSTKSZ +AT_NOTELF +AT_NO_AUTOMOUNT +AT_NULL +AT_PAGESZ +AT_PHDR +AT_PHENT +AT_PHNUM +AT_PLATFORM +AT_RANDOM +AT_RECURSIVE +AT_REMOVEDIR +AT_SECURE +AT_STATX_DONT_SYNC +AT_STATX_FORCE_SYNC +AT_STATX_SYNC_AS_STAT +AT_STATX_SYNC_TYPE +AT_SYMLINK_FOLLOW +AT_SYMLINK_NOFOLLOW +AT_SYSINFO +AT_SYSINFO_EHDR +AT_UCACHEBSIZE +AT_UID +AssignAddComplex128 +AssignAddComplex64 +AssignAddFloat32 +AssignAddFloat64 +AssignAddInt16 +AssignAddInt32 +AssignAddInt64 +AssignAddInt8 +AssignAddPtrComplex128 +AssignAddPtrComplex64 +AssignAddPtrFloat32 +AssignAddPtrFloat64 +AssignAddPtrInt16 +AssignAddPtrInt32 +AssignAddPtrInt64 +AssignAddPtrInt8 +AssignAddPtrUint16 +AssignAddPtrUint32 +AssignAddPtrUint64 +AssignAddPtrUint8 +AssignAddPtrUintptr +AssignAddUint16 +AssignAddUint32 +AssignAddUint64 +AssignAddUint8 +AssignAddUintptr +AssignAndInt16 +AssignAndInt32 +AssignAndInt64 +AssignAndInt8 +AssignAndPtrInt16 +AssignAndPtrInt32 +AssignAndPtrInt64 +AssignAndPtrInt8 +AssignAndPtrUint16 +AssignAndPtrUint32 +AssignAndPtrUint64 +AssignAndPtrUint8 +AssignAndPtrUintptr +AssignAndUint16 +AssignAndUint32 +AssignAndUint64 +AssignAndUint8 +AssignAndUintptr +AssignBitFieldPtr16Int16 +AssignBitFieldPtr16Int32 +AssignBitFieldPtr16Int64 +AssignBitFieldPtr16Int8 +AssignBitFieldPtr16Uint16 +AssignBitFieldPtr16Uint32 +AssignBitFieldPtr16Uint64 +AssignBitFieldPtr16Uint8 +AssignBitFieldPtr32Int16 +AssignBitFieldPtr32Int32 +AssignBitFieldPtr32Int64 +AssignBitFieldPtr32Int8 +AssignBitFieldPtr32Uint16 +AssignBitFieldPtr32Uint32 +AssignBitFieldPtr32Uint64 +AssignBitFieldPtr32Uint8 +AssignBitFieldPtr64Int16 +AssignBitFieldPtr64Int32 +AssignBitFieldPtr64Int64 +AssignBitFieldPtr64Int8 +AssignBitFieldPtr64Uint16 +AssignBitFieldPtr64Uint32 +AssignBitFieldPtr64Uint64 +AssignBitFieldPtr64Uint8 +AssignBitFieldPtr8Int16 +AssignBitFieldPtr8Int32 +AssignBitFieldPtr8Int64 +AssignBitFieldPtr8Int8 +AssignBitFieldPtr8Uint16 +AssignBitFieldPtr8Uint32 +AssignBitFieldPtr8Uint64 +AssignBitFieldPtr8Uint8 +AssignComplex128 +AssignComplex64 +AssignDivComplex128 +AssignDivComplex64 +AssignDivFloat32 +AssignDivFloat64 +AssignDivInt16 +AssignDivInt32 +AssignDivInt64 +AssignDivInt8 +AssignDivPtrComplex128 +AssignDivPtrComplex64 +AssignDivPtrFloat32 +AssignDivPtrFloat64 +AssignDivPtrInt16 +AssignDivPtrInt32 +AssignDivPtrInt64 +AssignDivPtrInt8 +AssignDivPtrUint16 +AssignDivPtrUint32 +AssignDivPtrUint64 +AssignDivPtrUint8 +AssignDivPtrUintptr +AssignDivUint16 +AssignDivUint32 +AssignDivUint64 +AssignDivUint8 +AssignDivUintptr +AssignFloat32 +AssignFloat64 +AssignInt16 +AssignInt32 +AssignInt64 +AssignInt8 +AssignMulComplex128 +AssignMulComplex64 +AssignMulFloat32 +AssignMulFloat64 +AssignMulInt16 +AssignMulInt32 +AssignMulInt64 +AssignMulInt8 +AssignMulPtrComplex128 +AssignMulPtrComplex64 +AssignMulPtrFloat32 +AssignMulPtrFloat64 +AssignMulPtrInt16 +AssignMulPtrInt32 +AssignMulPtrInt64 +AssignMulPtrInt8 +AssignMulPtrUint16 +AssignMulPtrUint32 +AssignMulPtrUint64 +AssignMulPtrUint8 +AssignMulPtrUintptr +AssignMulUint16 +AssignMulUint32 +AssignMulUint64 +AssignMulUint8 +AssignMulUintptr +AssignOrInt16 +AssignOrInt32 +AssignOrInt64 +AssignOrInt8 +AssignOrPtrInt16 +AssignOrPtrInt32 +AssignOrPtrInt64 +AssignOrPtrInt8 +AssignOrPtrUint16 +AssignOrPtrUint32 +AssignOrPtrUint64 +AssignOrPtrUint8 +AssignOrPtrUintptr +AssignOrUint16 +AssignOrUint32 +AssignOrUint64 +AssignOrUint8 +AssignOrUintptr +AssignPtrComplex128 +AssignPtrComplex64 +AssignPtrFloat32 +AssignPtrFloat64 +AssignPtrInt16 +AssignPtrInt32 +AssignPtrInt64 +AssignPtrInt8 +AssignPtrUint16 +AssignPtrUint32 +AssignPtrUint64 +AssignPtrUint8 +AssignPtrUintptr +AssignRemInt16 +AssignRemInt32 +AssignRemInt64 +AssignRemInt8 +AssignRemPtrInt16 +AssignRemPtrInt32 +AssignRemPtrInt64 +AssignRemPtrInt8 +AssignRemPtrUint16 +AssignRemPtrUint32 +AssignRemPtrUint64 +AssignRemPtrUint8 +AssignRemPtrUintptr +AssignRemUint16 +AssignRemUint32 +AssignRemUint64 +AssignRemUint8 +AssignRemUintptr +AssignShlInt16 +AssignShlInt32 +AssignShlInt64 +AssignShlInt8 +AssignShlPtrInt16 +AssignShlPtrInt32 +AssignShlPtrInt64 +AssignShlPtrInt8 +AssignShlPtrUint16 +AssignShlPtrUint32 +AssignShlPtrUint64 +AssignShlPtrUint8 +AssignShlPtrUintptr +AssignShlUint16 +AssignShlUint32 +AssignShlUint64 +AssignShlUint8 +AssignShlUintptr +AssignShrInt16 +AssignShrInt32 +AssignShrInt64 +AssignShrInt8 +AssignShrPtrInt16 +AssignShrPtrInt32 +AssignShrPtrInt64 +AssignShrPtrInt8 +AssignShrPtrUint16 +AssignShrPtrUint32 +AssignShrPtrUint64 +AssignShrPtrUint8 +AssignShrPtrUintptr +AssignShrUint16 +AssignShrUint32 +AssignShrUint64 +AssignShrUint8 +AssignShrUintptr +AssignSubComplex128 +AssignSubComplex64 +AssignSubFloat32 +AssignSubFloat64 +AssignSubInt16 +AssignSubInt32 +AssignSubInt64 +AssignSubInt8 +AssignSubPtrComplex128 +AssignSubPtrComplex64 +AssignSubPtrFloat32 +AssignSubPtrFloat64 +AssignSubPtrInt16 +AssignSubPtrInt32 +AssignSubPtrInt64 +AssignSubPtrInt8 +AssignSubPtrUint16 +AssignSubPtrUint32 +AssignSubPtrUint64 +AssignSubPtrUint8 +AssignSubPtrUintptr +AssignSubUint16 +AssignSubUint32 +AssignSubUint64 +AssignSubUint8 +AssignSubUintptr +AssignUint16 +AssignUint32 +AssignUint64 +AssignUint8 +AssignUintptr +AssignXorInt16 +AssignXorInt32 +AssignXorInt64 +AssignXorInt8 +AssignXorPtrInt16 +AssignXorPtrInt32 +AssignXorPtrInt64 +AssignXorPtrInt8 +AssignXorPtrUint16 +AssignXorPtrUint32 +AssignXorPtrUint64 +AssignXorPtrUint8 +AssignXorPtrUintptr +AssignXorUint16 +AssignXorUint32 +AssignXorUint64 +AssignXorUint8 +AssignXorUintptr +AtExit +AtomicAddFloat32 +AtomicAddFloat64 +AtomicAddInt32 +AtomicAddInt64 +AtomicAddUint32 +AtomicAddUint64 +AtomicAddUintptr +AtomicLoadFloat32 +AtomicLoadFloat64 +AtomicLoadInt32 +AtomicLoadInt64 +AtomicLoadNInt32 +AtomicLoadNInt64 +AtomicLoadNUint16 +AtomicLoadNUint32 +AtomicLoadNUint64 +AtomicLoadNUint8 +AtomicLoadNUintptr +AtomicLoadPFloat32 +AtomicLoadPFloat64 +AtomicLoadPInt16 +AtomicLoadPInt32 +AtomicLoadPInt64 +AtomicLoadPInt8 +AtomicLoadPUint16 +AtomicLoadPUint32 +AtomicLoadPUint64 +AtomicLoadPUint8 +AtomicLoadPUintptr +AtomicLoadUint32 +AtomicLoadUint64 +AtomicLoadUintptr +AtomicStoreFloat32 +AtomicStoreFloat64 +AtomicStoreInt32 +AtomicStoreInt64 +AtomicStoreNInt32 +AtomicStoreNInt64 +AtomicStoreNUint16 +AtomicStoreNUint32 +AtomicStoreNUint64 +AtomicStoreNUint8 +AtomicStoreNUintptr +AtomicStorePFloat32 +AtomicStorePFloat64 +AtomicStorePInt32 +AtomicStorePInt64 +AtomicStorePInt8 +AtomicStorePUint32 +AtomicStorePUint64 +AtomicStorePUint8 +AtomicStorePUintptr +AtomicStoreUint32 +AtomicStoreUint64 +AtomicStoreUintptr +B0 +B1000000 +B110 +B115200 +B1152000 +B1200 +B134 +B150 +B1500000 +B1800 +B19200 +B200 +B2000000 +B230400 +B2400 +B2500000 +B300 +B3000000 +B3500000 +B38400 +B4000000 +B460800 +B4800 +B50 +B500000 +B57600 +B576000 +B600 +B75 +B921600 +B9600 +BACKREF +BC_BASE_MAX +BC_DIM_MAX +BC_SCALE_MAX +BC_STRING_MAX +BF_N +BIG5 +BIG_ENDIAN +BLKBSZGET +BLKBSZSET +BLKFLSBUF +BLKFRAGET +BLKFRASET +BLKGETSIZE +BLKGETSIZE64 +BLKRAGET +BLKRASET +BLKROGET +BLKROSET +BLKRRPART +BLKSECTGET +BLKSECTSET +BLKSSZGET +BOOT_TIME +BRACKET +BRKINT +BS0 +BS1 +BSDLY +BUFSIZ +BUS_ADRALN +BUS_ADRERR +BUS_MCEERR_AO +BUS_MCEERR_AR +BUS_OBJERR +BYTE_ORDER +Bool +Bool32 +Bool64 +BoolInt16 +BoolInt32 +BoolInt64 +BoolInt8 +BoolUint16 +BoolUint32 +BoolUint64 +BoolUint8 +BoolUintptr +CAPI +CBAUD +CBAUDEX +CHARCLASS_NAME_MAX +CHAR_BIT +CHAR_MAX +CHAR_MIN +CIBAUD +CLD_CONTINUED +CLD_DUMPED +CLD_EXITED +CLD_KILLED +CLD_STOPPED +CLD_TRAPPED +CLOCAL +CLOCKS_PER_SEC +CLOCK_BOOTTIME +CLOCK_BOOTTIME_ALARM +CLOCK_MONOTONIC +CLOCK_MONOTONIC_COARSE +CLOCK_MONOTONIC_RAW +CLOCK_PROCESS_CPUTIME_ID +CLOCK_REALTIME +CLOCK_REALTIME_ALARM +CLOCK_REALTIME_COARSE +CLOCK_SGI_CYCLE +CLOCK_TAI +CLOCK_THREAD_CPUTIME_ID +CLONE_CHILD_CLEARTID +CLONE_CHILD_SETTID +CLONE_DETACHED +CLONE_FILES +CLONE_FS +CLONE_IO +CLONE_NEWCGROUP +CLONE_NEWIPC +CLONE_NEWNET +CLONE_NEWNS +CLONE_NEWPID +CLONE_NEWTIME +CLONE_NEWUSER +CLONE_NEWUTS +CLONE_PARENT +CLONE_PARENT_SETTID +CLONE_PIDFD +CLONE_PTRACE +CLONE_SETTLS +CLONE_SIGHAND +CLONE_SYSVSEM +CLONE_THREAD +CLONE_UNTRACED +CLONE_VFORK +CLONE_VM +CMSPAR +CODESET +COLL_WEIGHTS_MAX +COPY_MAXIMIZE_FIRST_TAG +COPY_REMOVE_TAGS +COUNT +CPU_SETSIZE +CR0 +CR1 +CR2 +CR3 +CRDLY +CREAD +CRNCYSTR +CRTSCTS +CS5 +CS6 +CS7 +CS8 +CSIGNAL +CSIZE +CSTOPB +CString +C_ANY +C_CHAOS +C_HS +C_IN +C_LOCALE +C_NONE +Complex128 +Complex128FromComplex128 +Complex128FromComplex64 +Complex128FromFloat32 +Complex128FromFloat64 +Complex128FromInt16 +Complex128FromInt32 +Complex128FromInt64 +Complex128FromInt8 +Complex128FromUint16 +Complex128FromUint32 +Complex128FromUint64 +Complex128FromUint8 +Complex128FromUintptr +Complex64 +Complex64FromComplex128 +Complex64FromComplex64 +Complex64FromFloat32 +Complex64FromFloat64 +Complex64FromInt16 +Complex64FromInt32 +Complex64FromInt64 +Complex64FromInt8 +Complex64FromUint16 +Complex64FromUint32 +Complex64FromUint64 +Complex64FromUint8 +Complex64FromUintptr +Cover +CoverC +CoverCReport +CoverReport +Covered +CoveredC +CplInt16 +CplInt32 +CplInt64 +CplInt8 +CplUint16 +CplUint32 +CplUint64 +CplUint8 +CplUintptr +DAS_MATCHINGLABEL +DAS_MATCHINGSCOPE +DAS_ORDER_SHIFT +DAS_PREC_SHIFT +DAS_PREFIX_SHIFT +DAS_SCOPE_SHIFT +DAS_USABLE +DAYS_PER_100Y +DAYS_PER_400Y +DAYS_PER_4Y +DAY_1 +DAY_2 +DAY_3 +DAY_4 +DAY_5 +DAY_6 +DAY_7 +DBL_DECIMAL_DIG +DBL_DIG +DBL_EPSILON +DBL_EPSILON1 +DBL_EPSILON10 +DBL_EPSILON11 +DBL_EPSILON12 +DBL_EPSILON2 +DBL_EPSILON3 +DBL_EPSILON4 +DBL_EPSILON5 +DBL_EPSILON6 +DBL_EPSILON7 +DBL_EPSILON8 +DBL_EPSILON9 +DBL_HAS_SUBNORM +DBL_MANT_DIG +DBL_MAX +DBL_MAX_10_EXP +DBL_MAX_EXP +DBL_MIN +DBL_MIN1 +DBL_MIN2 +DBL_MIN_10_EXP +DBL_MIN_EXP +DBL_TRUE_MIN +DEAD_PROCESS +DECIMAL_DIG +DEFAULT_GUARD_MAX +DEFAULT_GUARD_SIZE +DEFAULT_STACK_MAX +DEFAULT_STACK_SIZE +DELAYTIMER_MAX +DELETE +DF_1_CONFALT +DF_1_DIRECT +DF_1_DISPRELDNE +DF_1_DISPRELPND +DF_1_EDITED +DF_1_ENDFILTEE +DF_1_GLOBAL +DF_1_GLOBAUDIT +DF_1_GROUP +DF_1_IGNMULDEF +DF_1_INITFIRST +DF_1_INTERPOSE +DF_1_LOADFLTR +DF_1_NODEFLIB +DF_1_NODELETE +DF_1_NODIRECT +DF_1_NODUMP +DF_1_NOHDR +DF_1_NOKSYMS +DF_1_NOOPEN +DF_1_NORELOC +DF_1_NOW +DF_1_ORIGIN +DF_1_PIE +DF_1_SINGLETON +DF_1_STUB +DF_1_SYMINTPOSE +DF_1_TRANS +DF_BIND_NOW +DF_ORIGIN +DF_P1_GROUPPERM +DF_P1_LAZYLOAD +DF_STATIC_TLS +DF_SYMBOLIC +DF_TEXTREL +DIR +DN_ACCESS +DN_ATTRIB +DN_CREATE +DN_DELETE +DN_MODIFY +DN_MULTISHOT +DN_RENAME +DTF_1_CONFEXP +DTF_1_PARINIT +DTP_OFFSET +DT_ADDRNUM +DT_ADDRRNGHI +DT_ADDRRNGLO +DT_ALPHA_NUM +DT_ALPHA_PLTRO +DT_AUDIT +DT_AUXILIARY +DT_BIND_NOW +DT_BLK +DT_CHECKSUM +DT_CHR +DT_CONFIG +DT_DEBUG +DT_DEPAUDIT +DT_DETACHED +DT_DIR +DT_ENCODING +DT_EXITING +DT_EXTRANUM +DT_FEATURE_1 +DT_FIFO +DT_FILTER +DT_FINI +DT_FINI_ARRAY +DT_FINI_ARRAYSZ +DT_FLAGS +DT_FLAGS_1 +DT_GNU_CONFLICT +DT_GNU_CONFLICTSZ +DT_GNU_HASH +DT_GNU_LIBLIST +DT_GNU_LIBLISTSZ +DT_GNU_PRELINKED +DT_HASH +DT_HIOS +DT_HIPROC +DT_IA_64_NUM +DT_IA_64_PLT_RESERVE +DT_INIT +DT_INIT_ARRAY +DT_INIT_ARRAYSZ +DT_JMPREL +DT_JOINABLE +DT_LNK +DT_LOOS +DT_LOPROC +DT_MIPS_AUX_DYNAMIC +DT_MIPS_BASE_ADDRESS +DT_MIPS_COMPACT_SIZE +DT_MIPS_CONFLICT +DT_MIPS_CONFLICTNO +DT_MIPS_CXX_FLAGS +DT_MIPS_DELTA_CLASS +DT_MIPS_DELTA_CLASSSYM +DT_MIPS_DELTA_CLASSSYM_NO +DT_MIPS_DELTA_CLASS_NO +DT_MIPS_DELTA_INSTANCE +DT_MIPS_DELTA_INSTANCE_NO +DT_MIPS_DELTA_RELOC +DT_MIPS_DELTA_RELOC_NO +DT_MIPS_DELTA_SYM +DT_MIPS_DELTA_SYM_NO +DT_MIPS_DYNSTR_ALIGN +DT_MIPS_FLAGS +DT_MIPS_GOTSYM +DT_MIPS_GP_VALUE +DT_MIPS_HIDDEN_GOTIDX +DT_MIPS_HIPAGENO +DT_MIPS_ICHECKSUM +DT_MIPS_INTERFACE +DT_MIPS_INTERFACE_SIZE +DT_MIPS_IVERSION +DT_MIPS_LIBLIST +DT_MIPS_LIBLISTNO +DT_MIPS_LOCALPAGE_GOTIDX +DT_MIPS_LOCAL_GOTIDX +DT_MIPS_LOCAL_GOTNO +DT_MIPS_MSYM +DT_MIPS_NUM +DT_MIPS_OPTIONS +DT_MIPS_PERF_SUFFIX +DT_MIPS_PIXIE_INIT +DT_MIPS_PLTGOT +DT_MIPS_PROTECTED_GOTIDX +DT_MIPS_RLD_MAP +DT_MIPS_RLD_MAP_REL +DT_MIPS_RLD_TEXT_RESOLVE_ADDR +DT_MIPS_RLD_VERSION +DT_MIPS_RWPLT +DT_MIPS_SYMBOL_LIB +DT_MIPS_SYMTABNO +DT_MIPS_TIME_STAMP +DT_MIPS_UNREFEXTNO +DT_MOVEENT +DT_MOVESZ +DT_MOVETAB +DT_NEEDED +DT_NIOS2_GP +DT_NULL +DT_NUM +DT_PLTGOT +DT_PLTPAD +DT_PLTPADSZ +DT_PLTREL +DT_PLTRELSZ +DT_POSFLAG_1 +DT_PPC64_GLINK +DT_PPC64_NUM +DT_PPC64_OPD +DT_PPC64_OPDSZ +DT_PPC64_OPT +DT_PPC_GOT +DT_PPC_NUM +DT_PPC_OPT +DT_PREINIT_ARRAY +DT_PREINIT_ARRAYSZ +DT_PROCNUM +DT_REG +DT_REL +DT_RELA +DT_RELACOUNT +DT_RELAENT +DT_RELASZ +DT_RELCOUNT +DT_RELENT +DT_RELR +DT_RELRENT +DT_RELRSZ +DT_RELSZ +DT_RPATH +DT_RUNPATH +DT_SOCK +DT_SONAME +DT_SPARC_NUM +DT_SPARC_REGISTER +DT_STRSZ +DT_STRTAB +DT_SYMBOLIC +DT_SYMENT +DT_SYMINENT +DT_SYMINFO +DT_SYMINSZ +DT_SYMTAB +DT_SYMTAB_SHNDX +DT_TEXTREL +DT_TLSDESC_GOT +DT_TLSDESC_PLT +DT_UNKNOWN +DT_VALNUM +DT_VALRNGHI +DT_VALRNGLO +DT_VERDEF +DT_VERDEFNUM +DT_VERNEED +DT_VERNEEDNUM +DT_VERSIONTAGNUM +DT_VERSYM +DT_WHT +D_FMT +D_T_FMT +Dmesg +E2BIG +EACCES +EADDRINUSE +EADDRNOTAVAIL +EADV +EAFNOSUPPORT +EAGAIN +EAI_ADDRFAMILY +EAI_AGAIN +EAI_ALLDONE +EAI_BADFLAGS +EAI_CANCELED +EAI_FAIL +EAI_FAMILY +EAI_IDN_ENCODE +EAI_INPROGRESS +EAI_INTR +EAI_MEMORY +EAI_NODATA +EAI_NONAME +EAI_NOTCANCELED +EAI_OVERFLOW +EAI_SERVICE +EAI_SOCKTYPE +EAI_SYSTEM +EALREADY +EBADE +EBADF +EBADFD +EBADMSG +EBADR +EBADRQC +EBADSLT +EBFONT +EBUSY +ECANCELED +ECHILD +ECHO +ECHOCTL +ECHOE +ECHOK +ECHOKE +ECHONL +ECHOPRT +ECHRNG +ECOMM +ECONNABORTED +ECONNREFUSED +ECONNRESET +EDEADLK +EDEADLOCK +EDESTADDRREQ +EDOM +EDOTDOT +EDQUOT +EEXIST +EFAULT +EFA_PARISC_1_0 +EFA_PARISC_1_1 +EFA_PARISC_2_0 +EFBIG +EFD_CLOEXEC +EFD_NONBLOCK +EFD_SEMAPHORE +EF_ALPHA_32BIT +EF_ALPHA_CANRELAX +EF_ARM_ABI_FLOAT_HARD +EF_ARM_ABI_FLOAT_SOFT +EF_ARM_ALIGN8 +EF_ARM_APCS_26 +EF_ARM_APCS_FLOAT +EF_ARM_BE8 +EF_ARM_DYNSYMSUSESEGIDX +EF_ARM_EABIMASK +EF_ARM_EABI_UNKNOWN +EF_ARM_EABI_VER1 +EF_ARM_EABI_VER2 +EF_ARM_EABI_VER3 +EF_ARM_EABI_VER4 +EF_ARM_EABI_VER5 +EF_ARM_HASENTRY +EF_ARM_INTERWORK +EF_ARM_LE8 +EF_ARM_MAPSYMSFIRST +EF_ARM_MAVERICK_FLOAT +EF_ARM_NEW_ABI +EF_ARM_OLD_ABI +EF_ARM_PIC +EF_ARM_RELEXEC +EF_ARM_SOFT_FLOAT +EF_ARM_SYMSARESORTED +EF_ARM_VFP_FLOAT +EF_CPU32 +EF_IA_64_ABI64 +EF_IA_64_ARCH +EF_IA_64_MASKOS +EF_LARCH_ABI_DOUBLE_FLOAT +EF_LARCH_ABI_MODIFIER_MASK +EF_LARCH_ABI_SINGLE_FLOAT +EF_LARCH_ABI_SOFT_FLOAT +EF_LARCH_OBJABI_V1 +EF_MIPS_64BIT_WHIRL +EF_MIPS_ABI2 +EF_MIPS_ABI_ON32 +EF_MIPS_ARCH +EF_MIPS_ARCH_1 +EF_MIPS_ARCH_2 +EF_MIPS_ARCH_3 +EF_MIPS_ARCH_32 +EF_MIPS_ARCH_32R2 +EF_MIPS_ARCH_4 +EF_MIPS_ARCH_5 +EF_MIPS_ARCH_64 +EF_MIPS_ARCH_64R2 +EF_MIPS_CPIC +EF_MIPS_FP64 +EF_MIPS_NAN2008 +EF_MIPS_NOREORDER +EF_MIPS_PIC +EF_MIPS_XGOT +EF_PARISC_ARCH +EF_PARISC_EXT +EF_PARISC_LAZYSWAP +EF_PARISC_LSB +EF_PARISC_NO_KABP +EF_PARISC_TRAPNIL +EF_PARISC_WIDE +EF_PPC64_ABI +EF_PPC_EMB +EF_PPC_RELOCATABLE +EF_PPC_RELOCATABLE_LIB +EF_SH1 +EF_SH2 +EF_SH2A +EF_SH2A_NOFPU +EF_SH2A_SH3E +EF_SH2A_SH3_NOFPU +EF_SH2A_SH4 +EF_SH2A_SH4_NOFPU +EF_SH2E +EF_SH3 +EF_SH3E +EF_SH3_DSP +EF_SH3_NOMMU +EF_SH4 +EF_SH4A +EF_SH4AL_DSP +EF_SH4A_NOFPU +EF_SH4_NOFPU +EF_SH4_NOMMU_NOFPU +EF_SH_DSP +EF_SH_MACH_MASK +EF_SH_UNKNOWN +EF_SPARCV9_MM +EF_SPARCV9_PSO +EF_SPARCV9_RMO +EF_SPARCV9_TSO +EF_SPARC_32PLUS +EF_SPARC_EXT_MASK +EF_SPARC_HAL_R1 +EF_SPARC_LEDATA +EF_SPARC_SUN_US1 +EF_SPARC_SUN_US3 +EHOSTDOWN +EHOSTUNREACH +EHWPOISON +EIDRM +EILSEQ +EINPROGRESS +EINTR +EINVAL +EIO +EISCONN +EISDIR +EISNAM +EI_ABIVERSION +EI_CLASS +EI_DATA +EI_MAG0 +EI_MAG1 +EI_MAG2 +EI_MAG3 +EI_NIDENT +EI_OSABI +EI_PAD +EI_VERSION +EKEYEXPIRED +EKEYREJECTED +EKEYREVOKED +EL2HLT +EL2NSYNC +EL3HLT +EL3RST +ELFCLASS32 +ELFCLASS64 +ELFCLASSNONE +ELFCLASSNUM +ELFCOMPRESS_HIOS +ELFCOMPRESS_HIPROC +ELFCOMPRESS_LOOS +ELFCOMPRESS_LOPROC +ELFCOMPRESS_ZLIB +ELFCOMPRESS_ZSTD +ELFDATA2LSB +ELFDATA2MSB +ELFDATANONE +ELFDATANUM +ELFMAG +ELFMAG0 +ELFMAG1 +ELFMAG2 +ELFMAG3 +ELFOSABI_AIX +ELFOSABI_ARM +ELFOSABI_FREEBSD +ELFOSABI_GNU +ELFOSABI_HPUX +ELFOSABI_IRIX +ELFOSABI_LINUX +ELFOSABI_MODESTO +ELFOSABI_NETBSD +ELFOSABI_NONE +ELFOSABI_OPENBSD +ELFOSABI_SOLARIS +ELFOSABI_STANDALONE +ELFOSABI_SYSV +ELFOSABI_TRU64 +ELF_NOTE_ABI +ELF_NOTE_GNU +ELF_NOTE_OS_FREEBSD +ELF_NOTE_OS_GNU +ELF_NOTE_OS_LINUX +ELF_NOTE_OS_SOLARIS2 +ELF_NOTE_PAGESIZE_HINT +ELF_NOTE_SOLARIS +ELIBACC +ELIBBAD +ELIBEXEC +ELIBMAX +ELIBSCN +ELNRNG +ELOOP +EMEDIUMTYPE +EMFILE +EMLINK +EMPTY +EMPTY1 +EMSGSIZE +EMULTIHOP +EM_386 +EM_56800EX +EM_68HC05 +EM_68HC08 +EM_68HC11 +EM_68HC12 +EM_68HC16 +EM_68K +EM_78KOR +EM_8051 +EM_860 +EM_88K +EM_960 +EM_AARCH64 +EM_ALPHA +EM_ALTERA_NIOS2 +EM_AMDGPU +EM_ARC +EM_ARCA +EM_ARC_A5 +EM_ARC_COMPACT +EM_ARC_COMPACT2 +EM_ARM +EM_AVR +EM_AVR32 +EM_BA1 +EM_BA2 +EM_BLACKFIN +EM_BPF +EM_C166 +EM_CDP +EM_CE +EM_CLOUDSHIELD +EM_COGE +EM_COLDFIRE +EM_COOL +EM_COREA_1ST +EM_COREA_2ND +EM_CR +EM_CR16 +EM_CRAYNV2 +EM_CRIS +EM_CRX +EM_CSKY +EM_CSR_KALIMBA +EM_CUDA +EM_CYPRESS_M8C +EM_D10V +EM_D30V +EM_DSP24 +EM_DSPIC30F +EM_DXP +EM_ECOG16 +EM_ECOG1X +EM_ECOG2 +EM_EMX16 +EM_EMX8 +EM_ETPU +EM_EXCESS +EM_F2MC16 +EM_FAKE_ALPHA +EM_FIREPATH +EM_FR20 +EM_FR30 +EM_FT32 +EM_FX66 +EM_H8S +EM_H8_300 +EM_H8_300H +EM_H8_500 +EM_HUANY +EM_IA_64 +EM_IP2K +EM_JAVELIN +EM_K10M +EM_KM32 +EM_KMX32 +EM_KVARC +EM_L10M +EM_LATTICEMICO32 +EM_LOONGARCH +EM_M16C +EM_M32 +EM_M32C +EM_M32R +EM_MANIK +EM_MAX +EM_MAXQ30 +EM_MCHP_PIC +EM_MCST_ELBRUS +EM_ME16 +EM_METAG +EM_MICROBLAZE +EM_MIPS +EM_MIPS_RS3_LE +EM_MIPS_X +EM_MMA +EM_MMDSP_PLUS +EM_MMIX +EM_MN10200 +EM_MN10300 +EM_MOXIE +EM_MSP430 +EM_NCPU +EM_NDR1 +EM_NDS32 +EM_NONE +EM_NORC +EM_NS32K +EM_NUM +EM_OPEN8 +EM_OPENRISC +EM_OR1K +EM_PARISC +EM_PCP +EM_PDSP +EM_PJ +EM_PPC +EM_PPC64 +EM_PRISM +EM_QDSP6 +EM_R32C +EM_RCE +EM_RH32 +EM_RISCV +EM_RL78 +EM_RS08 +EM_RX +EM_S370 +EM_S390 +EM_SCORE7 +EM_SEP +EM_SE_C17 +EM_SE_C33 +EM_SH +EM_SHARC +EM_SLE9X +EM_SNP1K +EM_SPARC +EM_SPARC32PLUS +EM_SPARCV9 +EM_ST100 +EM_ST19 +EM_ST200 +EM_ST7 +EM_ST9PLUS +EM_STARCORE +EM_STM8 +EM_STXP7X +EM_SVX +EM_TILE64 +EM_TILEGX +EM_TILEPRO +EM_TINYJ +EM_TI_ARP32 +EM_TI_C2000 +EM_TI_C5500 +EM_TI_C6000 +EM_TI_PRU +EM_TMM_GPP +EM_TPC +EM_TRICORE +EM_TRIMEDIA +EM_TSK3000 +EM_UNICORE +EM_V800 +EM_V850 +EM_VAX +EM_VIDEOCORE +EM_VIDEOCORE3 +EM_VIDEOCORE5 +EM_VISIUM +EM_VPP500 +EM_X86_64 +EM_XCORE +EM_XGATE +EM_XIMO16 +EM_XTENSA +EM_Z80 +EM_ZSP +ENAMETOOLONG +ENAVAIL +END +ENETDOWN +ENETRESET +ENETUNREACH +ENFILE +ENOANO +ENOBUFS +ENOCSI +ENODATA +ENODEV +ENOENT +ENOEXEC +ENOKEY +ENOLCK +ENOLINK +ENOMEDIUM +ENOMEM +ENOMSG +ENONET +ENOPKG +ENOPROTOOPT +ENOSPC +ENOSR +ENOSTR +ENOSYS +ENOTBLK +ENOTCONN +ENOTDIR +ENOTEMPTY +ENOTNAM +ENOTRECOVERABLE +ENOTSOCK +ENOTSUP +ENOTTY +ENOTUNIQ +ENXIO +EOF +EOPNOTSUPP +EOVERFLOW +EOWNERDEAD +EPERM +EPFNOSUPPORT +EPIPE +EPOLLERR +EPOLLET +EPOLLEXCLUSIVE +EPOLLHUP +EPOLLIN +EPOLLMSG +EPOLLNVAL +EPOLLONESHOT +EPOLLOUT +EPOLLPRI +EPOLLRDBAND +EPOLLRDHUP +EPOLLRDNORM +EPOLLWAKEUP +EPOLLWRBAND +EPOLLWRNORM +EPOLL_CLOEXEC +EPOLL_CTL_ADD +EPOLL_CTL_DEL +EPOLL_CTL_MOD +EPOLL_NONBLOCK +EPROTO +EPROTONOSUPPORT +EPROTOTYPE +EPS +ERA +ERANGE +ERA_D_FMT +ERA_D_T_FMT +ERA_T_FMT +EREMCHG +EREMOTE +EREMOTEIO +ERESTART +ERFKILL +EROFS +ESHUTDOWN +ESOCKTNOSUPPORT +ESPIPE +ESRCH +ESRMNT +ESTALE +ESTRPIPE +ETHERMIN +ETHERMTU +ETHERTYPE_AARP +ETHERTYPE_ARP +ETHERTYPE_AT +ETHERTYPE_IP +ETHERTYPE_IPV6 +ETHERTYPE_IPX +ETHERTYPE_LOOPBACK +ETHERTYPE_NTRAILER +ETHERTYPE_PUP +ETHERTYPE_REVARP +ETHERTYPE_SPRITE +ETHERTYPE_TRAIL +ETHERTYPE_VLAN +ETHER_ADDR_LEN +ETHER_CRC_LEN +ETHER_HDR_LEN +ETHER_MAX_LEN +ETHER_MIN_LEN +ETHER_TYPE_LEN +ETH_ALEN +ETH_DATA_LEN +ETH_FCS_LEN +ETH_FRAME_LEN +ETH_HLEN +ETH_MAX_MTU +ETH_MIN_MTU +ETH_P_1588 +ETH_P_8021AD +ETH_P_8021AH +ETH_P_8021Q +ETH_P_80221 +ETH_P_802_2 +ETH_P_802_3 +ETH_P_802_3_MIN +ETH_P_802_EX1 +ETH_P_AARP +ETH_P_AF_IUCV +ETH_P_ALL +ETH_P_AOE +ETH_P_ARCNET +ETH_P_ARP +ETH_P_ATALK +ETH_P_ATMFATE +ETH_P_ATMMPOA +ETH_P_AX25 +ETH_P_BATMAN +ETH_P_BPQ +ETH_P_CAIF +ETH_P_CAN +ETH_P_CANFD +ETH_P_CFM +ETH_P_CONTROL +ETH_P_CUST +ETH_P_DDCMP +ETH_P_DEC +ETH_P_DIAG +ETH_P_DNA_DL +ETH_P_DNA_RC +ETH_P_DNA_RT +ETH_P_DSA +ETH_P_DSA_8021Q +ETH_P_ECONET +ETH_P_EDSA +ETH_P_ERSPAN +ETH_P_ERSPAN2 +ETH_P_FCOE +ETH_P_FIP +ETH_P_HDLC +ETH_P_HSR +ETH_P_IBOE +ETH_P_IEEE802154 +ETH_P_IEEEPUP +ETH_P_IEEEPUPAT +ETH_P_IFE +ETH_P_IP +ETH_P_IPV6 +ETH_P_IPX +ETH_P_IRDA +ETH_P_LAT +ETH_P_LINK_CTL +ETH_P_LLDP +ETH_P_LOCALTALK +ETH_P_LOOP +ETH_P_LOOPBACK +ETH_P_MACSEC +ETH_P_MAP +ETH_P_MOBITEX +ETH_P_MPLS_MC +ETH_P_MPLS_UC +ETH_P_MRP +ETH_P_MVRP +ETH_P_NCSI +ETH_P_NSH +ETH_P_PAE +ETH_P_PAUSE +ETH_P_PHONET +ETH_P_PPPTALK +ETH_P_PPP_DISC +ETH_P_PPP_MP +ETH_P_PPP_SES +ETH_P_PREAUTH +ETH_P_PRP +ETH_P_PUP +ETH_P_PUPAT +ETH_P_QINQ1 +ETH_P_QINQ2 +ETH_P_QINQ3 +ETH_P_RARP +ETH_P_SCA +ETH_P_SLOW +ETH_P_SNAP +ETH_P_TDLS +ETH_P_TEB +ETH_P_TIPC +ETH_P_TRAILER +ETH_P_TR_802_2 +ETH_P_TSN +ETH_P_WAN_PPP +ETH_P_WCCP +ETH_P_X25 +ETH_P_XDSA +ETH_TLEN +ETH_ZLEN +ETIME +ETIMEDOUT +ETOOMANYREFS +ETXTBSY +ET_CORE +ET_DYN +ET_EXEC +ET_HIOS +ET_HIPROC +ET_LOOS +ET_LOPROC +ET_NONE +ET_NUM +ET_REL +EUCLEAN +EUC_JP +EUC_KR +EUNATCH +EUSERS +EV_CURRENT +EV_NONE +EV_NUM +EWOULDBLOCK +EXDEV +EXFULL +EXIT_FAILURE +EXIT_SUCCESS +EXP2F_POLY_ORDER +EXP2F_TABLE_BITS +EXP2_POLY_ORDER +EXPR_NEST_MAX +EXP_POLY_ORDER +EXP_TABLE_BITS +EXP_USE_TOINT_NARROW +EXTA +EXTB +EXTPROC +E_MIPS_ARCH_1 +E_MIPS_ARCH_2 +E_MIPS_ARCH_3 +E_MIPS_ARCH_32 +E_MIPS_ARCH_4 +E_MIPS_ARCH_5 +E_MIPS_ARCH_64 +Environ +EnvironP +FALLOC_FL_KEEP_SIZE +FALLOC_FL_PUNCH_HOLE +FANOTIFY_METADATA_VERSION +FAN_ACCESS +FAN_ACCESS_PERM +FAN_ALLOW +FAN_ALL_CLASS_BITS +FAN_ALL_EVENTS +FAN_ALL_INIT_FLAGS +FAN_ALL_MARK_FLAGS +FAN_ALL_OUTGOING_EVENTS +FAN_ALL_PERM_EVENTS +FAN_ATTRIB +FAN_AUDIT +FAN_CLASS_CONTENT +FAN_CLASS_NOTIF +FAN_CLASS_PRE_CONTENT +FAN_CLOEXEC +FAN_CLOSE +FAN_CLOSE_NOWRITE +FAN_CLOSE_WRITE +FAN_CREATE +FAN_DELETE +FAN_DELETE_SELF +FAN_DENY +FAN_DIR_MODIFY +FAN_ENABLE_AUDIT +FAN_EVENT_INFO_TYPE_DFID +FAN_EVENT_INFO_TYPE_DFID_NAME +FAN_EVENT_INFO_TYPE_FID +FAN_EVENT_METADATA_LEN +FAN_EVENT_ON_CHILD +FAN_MARK_ADD +FAN_MARK_DONT_FOLLOW +FAN_MARK_FILESYSTEM +FAN_MARK_FLUSH +FAN_MARK_IGNORED_MASK +FAN_MARK_IGNORED_SURV_MODIFY +FAN_MARK_INODE +FAN_MARK_MOUNT +FAN_MARK_ONLYDIR +FAN_MARK_REMOVE +FAN_MARK_TYPE_MASK +FAN_MODIFY +FAN_MOVE +FAN_MOVED_FROM +FAN_MOVED_TO +FAN_MOVE_SELF +FAN_NOFD +FAN_NONBLOCK +FAN_ONDIR +FAN_OPEN +FAN_OPEN_EXEC +FAN_OPEN_EXEC_PERM +FAN_OPEN_PERM +FAN_Q_OVERFLOW +FAN_REPORT_DFID_NAME +FAN_REPORT_DIR_FID +FAN_REPORT_FID +FAN_REPORT_NAME +FAN_REPORT_TID +FAN_UNLIMITED_MARKS +FAN_UNLIMITED_QUEUE +FAPPEND +FASYNC +FDOP_CHDIR +FDOP_CLOSE +FDOP_DUP2 +FDOP_FCHDIR +FDOP_OPEN +FDPIC_FUNCPTRS +FD_CLOEXEC +FD_SETSIZE +FENV_SUPPORT +FE_ALL_EXCEPT +FE_DIVBYZERO +FE_DOWNWARD +FE_INEXACT +FE_INVALID +FE_OVERFLOW +FE_TONEAREST +FE_TOWARDZERO +FE_UNDERFLOW +FE_UPWARD +FF0 +FF1 +FFDLY +FFSYNC +FILE +FILENAME_MAX +FILESIZEBITS +FIOASYNC +FIOCLEX +FIOGETOWN +FIONBIO +FIONCLEX +FIONREAD +FIOQSIZE +FIOSETOWN +FLAGMASK +FLT_DECIMAL_DIG +FLT_DIG +FLT_EPSILON +FLT_EPSILON1 +FLT_EPSILON2 +FLT_EPSILON3 +FLT_EPSILON4 +FLT_EVAL_METHOD +FLT_HAS_SUBNORM +FLT_MANT_DIG +FLT_MAX +FLT_MAX_10_EXP +FLT_MAX_EXP +FLT_MIN +FLT_MIN1 +FLT_MIN2 +FLT_MIN_10_EXP +FLT_MIN_EXP +FLT_RADIX +FLT_ROUNDS +FLT_TRUE_MIN +FLUSHO +FNDELAY +FNM_CASEFOLD +FNM_FILE_NAME +FNM_LEADING_DIR +FNM_NOESCAPE +FNM_NOMATCH +FNM_NOSYS +FNM_PATHNAME +FNM_PERIOD +FNONBLOCK +FOPEN_MAX +FORMERR +FPE_FLTDIV +FPE_FLTINV +FPE_FLTOVF +FPE_FLTRES +FPE_FLTSUB +FPE_FLTUND +FPE_INTDIV +FPE_INTOVF +FP_ILOGB0 +FP_ILOGBNAN +FP_INFINITE +FP_NAN +FP_NORMAL +FP_SUBNORMAL +FP_ZERO +FSETLOCKING_BYCALLER +FSETLOCKING_INTERNAL +FSETLOCKING_QUERY +FTW_CHDIR +FTW_D +FTW_DEPTH +FTW_DNR +FTW_DP +FTW_F +FTW_MOUNT +FTW_NS +FTW_PHYS +FTW_SL +FTW_SLN +FUTEX_CLOCK_REALTIME +FUTEX_CMP_REQUEUE +FUTEX_FD +FUTEX_LOCK_PI +FUTEX_PRIVATE +FUTEX_REQUEUE +FUTEX_TRYLOCK_PI +FUTEX_UNLOCK_PI +FUTEX_WAIT +FUTEX_WAIT_BITSET +FUTEX_WAKE +FUTEX_WAKE_OP +F_ADD_SEALS +F_APP +F_CANCELLK +F_DUPFD +F_DUPFD_CLOEXEC +F_EOF +F_ERR +F_GETFD +F_GETFL +F_GETLEASE +F_GETLK +F_GETOWN +F_GETOWNER_UIDS +F_GETOWN_EX +F_GETPIPE_SZ +F_GETSIG +F_GET_FILE_RW_HINT +F_GET_RW_HINT +F_GET_SEALS +F_LOCK +F_NORD +F_NOTIFY +F_NOWR +F_OFD_GETLK +F_OFD_SETLK +F_OFD_SETLKW +F_OK +F_OWNER_GID +F_OWNER_PGRP +F_OWNER_PID +F_OWNER_TID +F_PERM +F_RDLCK +F_SEAL_FUTURE_WRITE +F_SEAL_GROW +F_SEAL_SEAL +F_SEAL_SHRINK +F_SEAL_WRITE +F_SETFD +F_SETFL +F_SETLEASE +F_SETLK +F_SETLKW +F_SETOWN +F_SETOWN_EX +F_SETPIPE_SZ +F_SETSIG +F_SET_FILE_RW_HINT +F_SET_RW_HINT +F_SVB +F_TEST +F_TLOCK +F_ULOCK +F_UNLCK +F_WRLCK +Float32 +Float32FromComplex128 +Float32FromComplex64 +Float32FromFloat32 +Float32FromFloat64 +Float32FromInt16 +Float32FromInt32 +Float32FromInt64 +Float32FromInt8 +Float32FromUint16 +Float32FromUint32 +Float32FromUint64 +Float32FromUint8 +Float32FromUintptr +Float64 +Float64FromComplex128 +Float64FromComplex64 +Float64FromFloat32 +Float64FromFloat64 +Float64FromInt16 +Float64FromInt32 +Float64FromInt64 +Float64FromInt8 +Float64FromUint16 +Float64FromUint32 +Float64FromUint64 +Float64FromUint8 +Float64FromUintptr +GB18030 +GB2312 +GBK +GETALL +GETGRBYGID +GETGRBYNAME +GETINITGR +GETLONG +GETNCNT +GETPID +GETPWBYNAME +GETPWBYUID +GETSHORT +GETVAL +GETZCNT +GLOB_ABORTED +GLOB_APPEND +GLOB_DOOFFS +GLOB_ERR +GLOB_MARK +GLOB_NOCHECK +GLOB_NOESCAPE +GLOB_NOMATCH +GLOB_NOSORT +GLOB_NOSPACE +GLOB_NOSYS +GLOB_PERIOD +GLOB_TILDE +GLOB_TILDE_CHECK +GRFOUND +GRGID +GRMEMCNT +GRNAMELEN +GRND_INSECURE +GRND_NONBLOCK +GRND_RANDOM +GROUPED +GRPASSWDLEN +GRPQUOTA +GRP_COMDAT +GRVERSION +GR_LEN +GetEnviron +GoBytes +GoString +HEADER +HFIXEDSZ +HIGHS +HOST_NAME_MAX +HOST_NOT_FOUND +HUGE +HUGE_VALF +HUPCL +I +ICANON +ICRNL +IEXTEN +IFADDRS_HASH_SIZE +IFA_ADDRESS +IFA_BROADCAST +IFA_LABEL +IFA_LOCAL +IFF_ALLMULTI +IFF_AUTOMEDIA +IFF_BROADCAST +IFF_DEBUG +IFF_DORMANT +IFF_DYNAMIC +IFF_ECHO +IFF_LOOPBACK +IFF_LOWER_UP +IFF_MASTER +IFF_MULTICAST +IFF_NOARP +IFF_NOTRAILERS +IFF_POINTOPOINT +IFF_PORTSEL +IFF_PROMISC +IFF_RUNNING +IFF_SLAVE +IFF_UP +IFF_VOLATILE +IFHWADDRLEN +IFLA_ADDRESS +IFLA_BROADCAST +IFLA_IFNAME +IFLA_STATS +IFNAMSIZ +IF_NAMESIZE +IGNBRK +IGNCR +IGNPAR +IIF_ALL +IIF_BGRACE +IIF_FLAGS +IIF_IGRACE +ILL_BADSTK +ILL_COPROC +ILL_ILLADR +ILL_ILLOPC +ILL_ILLOPN +ILL_ILLTRP +ILL_PRVOPC +ILL_PRVREG +IMAXBEL +IN6ADDRSZ +INADDRSZ +INDIR_MASK +INET6_ADDRSTRLEN +INET_ADDRSTRLEN +INFINITY +INITGRFOUND +INITGRNGRPS +INITGRVERSION +INITGR_LEN +INIT_PROCESS +INLCR +INPCK +INT16SZ +INT16_MAX +INT16_MIN +INT32SZ +INT32_MAX +INT32_MIN +INT64_MAX +INT64_MIN +INT8SZ +INT8_MAX +INT8_MIN +INTMAX_MAX +INTMAX_MIN +INTPTR_MAX +INTPTR_MIN +INT_FAST16_MAX +INT_FAST16_MIN +INT_FAST32_MAX +INT_FAST32_MIN +INT_FAST64_MAX +INT_FAST64_MIN +INT_FAST8_MAX +INT_FAST8_MIN +INT_LEAST16_MAX +INT_LEAST16_MIN +INT_LEAST32_MAX +INT_LEAST32_MIN +INT_LEAST64_MAX +INT_LEAST64_MIN +INT_LEAST8_MAX +INT_LEAST8_MIN +INT_MAX +INT_MIN +IN_ACCESS +IN_ALL_EVENTS +IN_ATTRIB +IN_CLASSA_HOST +IN_CLASSA_MAX +IN_CLASSA_NET +IN_CLASSA_NSHIFT +IN_CLASSB_HOST +IN_CLASSB_MAX +IN_CLASSB_NET +IN_CLASSB_NSHIFT +IN_CLASSC_HOST +IN_CLASSC_NET +IN_CLASSC_NSHIFT +IN_CLOEXEC +IN_CLOSE +IN_CLOSE_NOWRITE +IN_CLOSE_WRITE +IN_CREATE +IN_DELETE +IN_DELETE_SELF +IN_DONT_FOLLOW +IN_EXCL_UNLINK +IN_IGNORED +IN_ISDIR +IN_LOOPBACKNET +IN_MASK_ADD +IN_MASK_CREATE +IN_MODIFY +IN_MOVE +IN_MOVED_FROM +IN_MOVED_TO +IN_MOVE_SELF +IN_NONBLOCK +IN_ONESHOT +IN_ONLYDIR +IN_OPEN +IN_Q_OVERFLOW +IN_UNMOUNT +IOV_MAX +IPCOP_msgctl +IPCOP_msgget +IPCOP_msgrcv +IPCOP_msgsnd +IPCOP_semctl +IPCOP_semget +IPCOP_semop +IPCOP_semtimedop +IPCOP_shmat +IPCOP_shmctl +IPCOP_shmdt +IPCOP_shmget +IPC_64 +IPC_CREAT +IPC_EXCL +IPC_INFO +IPC_NOWAIT +IPC_RMID +IPC_SET +IPC_STAT +IPC_TIME64 +IPPORT_RESERVED +IPPROTO_AH +IPPROTO_BEETPH +IPPROTO_COMP +IPPROTO_DCCP +IPPROTO_DSTOPTS +IPPROTO_EGP +IPPROTO_ENCAP +IPPROTO_ESP +IPPROTO_ETHERNET +IPPROTO_FRAGMENT +IPPROTO_GRE +IPPROTO_HOPOPTS +IPPROTO_ICMP +IPPROTO_ICMPV6 +IPPROTO_IDP +IPPROTO_IGMP +IPPROTO_IP +IPPROTO_IPIP +IPPROTO_IPV6 +IPPROTO_MAX +IPPROTO_MH +IPPROTO_MPLS +IPPROTO_MPTCP +IPPROTO_MTP +IPPROTO_NONE +IPPROTO_PIM +IPPROTO_PUP +IPPROTO_RAW +IPPROTO_ROUTING +IPPROTO_RSVP +IPPROTO_SCTP +IPPROTO_TCP +IPPROTO_TP +IPPROTO_UDP +IPPROTO_UDPLITE +IPV6_2292DSTOPTS +IPV6_2292HOPLIMIT +IPV6_2292HOPOPTS +IPV6_2292PKTINFO +IPV6_2292PKTOPTIONS +IPV6_2292RTHDR +IPV6_ADDRFORM +IPV6_ADDR_PREFERENCES +IPV6_ADD_MEMBERSHIP +IPV6_AUTHHDR +IPV6_AUTOFLOWLABEL +IPV6_CHECKSUM +IPV6_DONTFRAG +IPV6_DROP_MEMBERSHIP +IPV6_DSTOPTS +IPV6_FREEBIND +IPV6_HDRINCL +IPV6_HOPLIMIT +IPV6_HOPOPTS +IPV6_IPSEC_POLICY +IPV6_JOIN_ANYCAST +IPV6_JOIN_GROUP +IPV6_LEAVE_ANYCAST +IPV6_LEAVE_GROUP +IPV6_MINHOPCOUNT +IPV6_MTU +IPV6_MTU_DISCOVER +IPV6_MULTICAST_ALL +IPV6_MULTICAST_HOPS +IPV6_MULTICAST_IF +IPV6_MULTICAST_LOOP +IPV6_NEXTHOP +IPV6_ORIGDSTADDR +IPV6_PATHMTU +IPV6_PKTINFO +IPV6_PMTUDISC_DO +IPV6_PMTUDISC_DONT +IPV6_PMTUDISC_INTERFACE +IPV6_PMTUDISC_OMIT +IPV6_PMTUDISC_PROBE +IPV6_PMTUDISC_WANT +IPV6_PREFER_SRC_CGA +IPV6_PREFER_SRC_COA +IPV6_PREFER_SRC_HOME +IPV6_PREFER_SRC_NONCGA +IPV6_PREFER_SRC_PUBLIC +IPV6_PREFER_SRC_PUBTMP_DEFAULT +IPV6_PREFER_SRC_TMP +IPV6_RECVDSTOPTS +IPV6_RECVERR +IPV6_RECVFRAGSIZE +IPV6_RECVHOPLIMIT +IPV6_RECVHOPOPTS +IPV6_RECVORIGDSTADDR +IPV6_RECVPATHMTU +IPV6_RECVPKTINFO +IPV6_RECVRTHDR +IPV6_RECVTCLASS +IPV6_ROUTER_ALERT +IPV6_ROUTER_ALERT_ISOLATE +IPV6_RTHDR +IPV6_RTHDRDSTOPTS +IPV6_RTHDR_LOOSE +IPV6_RTHDR_STRICT +IPV6_RTHDR_TYPE_0 +IPV6_RXDSTOPTS +IPV6_RXHOPOPTS +IPV6_TCLASS +IPV6_TRANSPARENT +IPV6_UNICAST_HOPS +IPV6_UNICAST_IF +IPV6_V6ONLY +IPV6_XFRM_POLICY +IP_ADD_MEMBERSHIP +IP_ADD_SOURCE_MEMBERSHIP +IP_BIND_ADDRESS_NO_PORT +IP_BLOCK_SOURCE +IP_CHECKSUM +IP_DEFAULT_MULTICAST_LOOP +IP_DEFAULT_MULTICAST_TTL +IP_DROP_MEMBERSHIP +IP_DROP_SOURCE_MEMBERSHIP +IP_FREEBIND +IP_HDRINCL +IP_IPSEC_POLICY +IP_MAX_MEMBERSHIPS +IP_MINTTL +IP_MSFILTER +IP_MTU +IP_MTU_DISCOVER +IP_MULTICAST_ALL +IP_MULTICAST_IF +IP_MULTICAST_LOOP +IP_MULTICAST_TTL +IP_NODEFRAG +IP_OPTIONS +IP_ORIGDSTADDR +IP_PASSSEC +IP_PKTINFO +IP_PKTOPTIONS +IP_PMTUDISC +IP_PMTUDISC_DO +IP_PMTUDISC_DONT +IP_PMTUDISC_INTERFACE +IP_PMTUDISC_OMIT +IP_PMTUDISC_PROBE +IP_PMTUDISC_WANT +IP_RECVERR +IP_RECVERR_RFC4884 +IP_RECVFRAGSIZE +IP_RECVOPTS +IP_RECVORIGDSTADDR +IP_RECVRETOPTS +IP_RECVTOS +IP_RECVTTL +IP_RETOPTS +IP_ROUTER_ALERT +IP_TOS +IP_TRANSPARENT +IP_TTL +IP_UNBLOCK_SOURCE +IP_UNICAST_IF +IP_XFRM_POLICY +IQUERY +ISIG +ISO2022_JP +ISTRIP +ITIMER_PROF +ITIMER_REAL +ITIMER_VIRTUAL +IUCLC +IUTF8 +IXANY +IXOFF +IXON +Int128 +Int128FromFloat32 +Int128FromFloat64 +Int128FromInt16 +Int128FromInt32 +Int128FromInt64 +Int128FromInt8 +Int128FromUint128 +Int128FromUint16 +Int128FromUint32 +Int128FromUint64 +Int128FromUint8 +Int16 +Int16FromComplex128 +Int16FromComplex64 +Int16FromFloat32 +Int16FromFloat64 +Int16FromInt16 +Int16FromInt32 +Int16FromInt64 +Int16FromInt8 +Int16FromUint16 +Int16FromUint32 +Int16FromUint64 +Int16FromUint8 +Int16FromUintptr +Int32 +Int32FromComplex128 +Int32FromComplex64 +Int32FromFloat32 +Int32FromFloat64 +Int32FromInt16 +Int32FromInt32 +Int32FromInt64 +Int32FromInt8 +Int32FromUint16 +Int32FromUint32 +Int32FromUint64 +Int32FromUint8 +Int32FromUintptr +Int64 +Int64FromComplex128 +Int64FromComplex64 +Int64FromFloat32 +Int64FromFloat64 +Int64FromInt16 +Int64FromInt32 +Int64FromInt64 +Int64FromInt8 +Int64FromUint16 +Int64FromUint32 +Int64FromUint64 +Int64FromUint8 +Int64FromUintptr +Int8 +Int8FromComplex128 +Int8FromComplex64 +Int8FromFloat32 +Int8FromFloat64 +Int8FromInt16 +Int8FromInt32 +Int8FromInt64 +Int8FromInt8 +Int8FromUint16 +Int8FromUint32 +Int8FromUint64 +Int8FromUint8 +Int8FromUintptr +JT_ARG_MAX +JT_AVPHYS_PAGES +JT_DELAYTIMER_MAX +JT_MINSIGSTKSZ +JT_MQ_PRIO_MAX +JT_NPROCESSORS_CONF +JT_NPROCESSORS_ONLN +JT_PAGE_SIZE +JT_PHYS_PAGES +JT_SEM_VALUE_MAX +JT_SIGSTKSZ +JT_ZERO +KEY_MAX +KEY_MAX1 +KMAX +LC_ALL +LC_ALL_MASK +LC_COLLATE +LC_COLLATE_MASK +LC_CTYPE +LC_CTYPE_MASK +LC_GLOBAL_LOCALE +LC_MESSAGES +LC_MESSAGES_MASK +LC_MONETARY +LC_MONETARY_MASK +LC_NUMERIC +LC_NUMERIC_MASK +LC_TIME +LC_TIME_MASK +LDBL_DECIMAL_DIG +LDBL_DIG +LDBL_EPSILON +LDBL_EPSILON1 +LDBL_EPSILON2 +LDBL_EPSILON3 +LDBL_HAS_SUBNORM +LDBL_MANT_DIG +LDBL_MAX +LDBL_MAX1 +LDBL_MAX2 +LDBL_MAX_10_EXP +LDBL_MAX_EXP +LDBL_MIN +LDBL_MIN1 +LDBL_MIN2 +LDBL_MIN_10_EXP +LDBL_MIN_EXP +LDBL_TRUE_MIN +LD_B1B_DIG +LD_B1B_MAX +LEAPOCH +LEFT_ADJ +LINE_MAX +LITTLE_ENDIAN +LITUSE_ALPHA_ADDR +LITUSE_ALPHA_BASE +LITUSE_ALPHA_BYTOFF +LITUSE_ALPHA_JSR +LITUSE_ALPHA_TLS_GD +LITUSE_ALPHA_TLS_LDM +LLONG_MAX +LLONG_MIN +LL_DELAY_LOAD +LL_DELTA +LL_EXACT_MATCH +LL_EXPORTS +LL_IGNORE_INT_VER +LL_NONE +LL_REQUIRE_MINOR +LOCALDOMAINPARTS +LOCALE_NAME_MAX +LOCK_EX +LOCK_NB +LOCK_SH +LOCK_UN +LOG2F_POLY_ORDER +LOG2F_TABLE_BITS +LOG2_POLY1_ORDER +LOG2_POLY_ORDER +LOG2_TABLE_BITS +LOGF_POLY_ORDER +LOGF_TABLE_BITS +LOGIN_NAME_MAX +LOGIN_PROCESS +LOG_ALERT +LOG_AUTH +LOG_AUTHPRIV +LOG_CONS +LOG_CRIT +LOG_CRON +LOG_DAEMON +LOG_DEBUG +LOG_EMERG +LOG_ERR +LOG_FACMASK +LOG_FTP +LOG_INFO +LOG_KERN +LOG_LOCAL0 +LOG_LOCAL1 +LOG_LOCAL2 +LOG_LOCAL3 +LOG_LOCAL4 +LOG_LOCAL5 +LOG_LOCAL6 +LOG_LOCAL7 +LOG_LPR +LOG_MAIL +LOG_NDELAY +LOG_NEWS +LOG_NFACILITIES +LOG_NOTICE +LOG_NOWAIT +LOG_ODELAY +LOG_PERROR +LOG_PID +LOG_POLY1_ORDER +LOG_POLY_ORDER +LOG_PRIMASK +LOG_SYSLOG +LOG_TABLE_BITS +LOG_USER +LOG_UUCP +LOG_WARNING +LONG_BIT +LONG_MAX +LONG_MIN +LS +L_INCR +L_SET +L_XTND +L_ctermid +L_cuserid +L_tmpnam +LongjmpRetval +MADV_COLD +MADV_DODUMP +MADV_DOFORK +MADV_DONTDUMP +MADV_DONTFORK +MADV_DONTNEED +MADV_FREE +MADV_HUGEPAGE +MADV_HWPOISON +MADV_KEEPONFORK +MADV_MERGEABLE +MADV_NOHUGEPAGE +MADV_NORMAL +MADV_PAGEOUT +MADV_RANDOM +MADV_REMOVE +MADV_SEQUENTIAL +MADV_SOFT_OFFLINE +MADV_UNMERGEABLE +MADV_WILLNEED +MADV_WIPEONFORK +MAP_32BIT +MAP_ANON +MAP_ANONYMOUS +MAP_DENYWRITE +MAP_EXECUTABLE +MAP_FAILED +MAP_FILE +MAP_FIXED +MAP_FIXED_NOREPLACE +MAP_GROWSDOWN +MAP_HUGETLB +MAP_HUGE_16GB +MAP_HUGE_16KB +MAP_HUGE_16MB +MAP_HUGE_1GB +MAP_HUGE_1MB +MAP_HUGE_256MB +MAP_HUGE_2GB +MAP_HUGE_2MB +MAP_HUGE_32MB +MAP_HUGE_512KB +MAP_HUGE_512MB +MAP_HUGE_64KB +MAP_HUGE_8MB +MAP_HUGE_MASK +MAP_HUGE_SHIFT +MAP_LOCKED +MAP_NONBLOCK +MAP_NORESERVE +MAP_POPULATE +MAP_PRIVATE +MAP_SHARED +MAP_SHARED_VALIDATE +MAP_STACK +MAP_SYNC +MAP_TYPE +MARK_POS +MASK +MATH_ERREXCEPT +MATH_ERRNO +MAXADDRS +MAXCDNAME +MAXDFLSRCH +MAXDNAME +MAXDNSRCH +MAXFLOAT +MAXH +MAXLABEL +MAXNS +MAXNUM +MAXNUMF +MAXQUOTAS +MAXRESOLVSORT +MAXSERVS +MAXSIZE +MAXTC +MAXTRIES +MAX_ADDR_LEN +MAX_DQ_TIME +MAX_HANDLE_SZ +MAX_IQ_TIME +MAX_NEG_CLASSES +MAYBE_WAITERS +MB_CUR_MAX +MB_LEN_MAX +MCAST_BLOCK_SOURCE +MCAST_EXCLUDE +MCAST_INCLUDE +MCAST_JOIN_GROUP +MCAST_JOIN_SOURCE_GROUP +MCAST_LEAVE_GROUP +MCAST_LEAVE_SOURCE_GROUP +MCAST_MSFILTER +MCAST_UNBLOCK_SOURCE +MCL_CURRENT +MCL_FUTURE +MCL_ONFAULT +MFD_ALLOW_SEALING +MFD_CLOEXEC +MFD_HUGETLB +MINSIGSTKSZ +MINSIZE +MIPS_AFL_ASE_DSP +MIPS_AFL_ASE_DSPR2 +MIPS_AFL_ASE_EVA +MIPS_AFL_ASE_MASK +MIPS_AFL_ASE_MCU +MIPS_AFL_ASE_MDMX +MIPS_AFL_ASE_MICROMIPS +MIPS_AFL_ASE_MIPS16 +MIPS_AFL_ASE_MIPS3D +MIPS_AFL_ASE_MSA +MIPS_AFL_ASE_MT +MIPS_AFL_ASE_SMARTMIPS +MIPS_AFL_ASE_VIRT +MIPS_AFL_ASE_XPA +MIPS_AFL_EXT_10000 +MIPS_AFL_EXT_3900 +MIPS_AFL_EXT_4010 +MIPS_AFL_EXT_4100 +MIPS_AFL_EXT_4111 +MIPS_AFL_EXT_4120 +MIPS_AFL_EXT_4650 +MIPS_AFL_EXT_5400 +MIPS_AFL_EXT_5500 +MIPS_AFL_EXT_5900 +MIPS_AFL_EXT_LOONGSON_2E +MIPS_AFL_EXT_LOONGSON_2F +MIPS_AFL_EXT_LOONGSON_3A +MIPS_AFL_EXT_OCTEON +MIPS_AFL_EXT_OCTEON2 +MIPS_AFL_EXT_OCTEONP +MIPS_AFL_EXT_SB1 +MIPS_AFL_EXT_XLR +MIPS_AFL_FLAGS1_ODDSPREG +MIPS_AFL_REG_128 +MIPS_AFL_REG_32 +MIPS_AFL_REG_64 +MIPS_AFL_REG_NONE +MLOCK_ONFAULT +MMAP_PAGE_ZERO +MM_APPL +MM_CONSOLE +MM_ERROR +MM_FIRM +MM_HALT +MM_HARD +MM_INFO +MM_NOCON +MM_NOMSG +MM_NOSEV +MM_NOTOK +MM_NRECOV +MM_NULLMC +MM_NULLSEV +MM_OK +MM_OPSYS +MM_PRINT +MM_RECOVER +MM_SOFT +MM_UTIL +MM_WARNING +MNTOPT_DEFAULTS +MNTOPT_NOAUTO +MNTOPT_NOSUID +MNTOPT_RO +MNTOPT_RW +MNTOPT_SUID +MNTTYPE_IGNORE +MNTTYPE_NFS +MNTTYPE_SWAP +MNT_DETACH +MNT_EXPIRE +MNT_FORCE +MOD_CLKA +MOD_CLKB +MOD_ESTERROR +MOD_FREQUENCY +MOD_MAXERROR +MOD_MICRO +MOD_NANO +MOD_OFFSET +MOD_STATUS +MOD_TAI +MOD_TIMECONST +MON_1 +MON_10 +MON_11 +MON_12 +MON_2 +MON_3 +MON_4 +MON_5 +MON_6 +MON_7 +MON_8 +MON_9 +MOUNTED +MQ_PRIO_MAX +MREMAP_DONTUNMAP +MREMAP_FIXED +MREMAP_MAYMOVE +MSG_BATCH +MSG_CMSG_CLOEXEC +MSG_CONFIRM +MSG_CTRUNC +MSG_DONTROUTE +MSG_DONTWAIT +MSG_EOR +MSG_ERRQUEUE +MSG_EXCEPT +MSG_FASTOPEN +MSG_FIN +MSG_INFO +MSG_MORE +MSG_NOERROR +MSG_NOSIGNAL +MSG_OOB +MSG_PEEK +MSG_PROXY +MSG_RST +MSG_STAT +MSG_STAT_ANY +MSG_SYN +MSG_TRUNC +MSG_WAITALL +MSG_WAITFORONE +MSG_ZEROCOPY +MS_ACTIVE +MS_ASYNC +MS_BIND +MS_BORN +MS_DIRSYNC +MS_INVALIDATE +MS_I_VERSION +MS_KERNMOUNT +MS_LAZYTIME +MS_MANDLOCK +MS_MGC_MSK +MS_MGC_VAL +MS_MOVE +MS_NOATIME +MS_NODEV +MS_NODIRATIME +MS_NOEXEC +MS_NOREMOTELOCK +MS_NOSEC +MS_NOSUID +MS_NOSYMFOLLOW +MS_NOUSER +MS_POSIXACL +MS_PRIVATE +MS_RDONLY +MS_REC +MS_RELATIME +MS_REMOUNT +MS_RMT_MASK +MS_SHARED +MS_SILENT +MS_SLAVE +MS_STRICTATIME +MS_SYNC +MS_SYNCHRONOUS +MS_UNBINDABLE +M_1_PI +M_2_PI +M_2_SQRTPI +M_E +M_LN10 +M_LN2 +M_LOG10E +M_LOG2E +M_PI +M_PI1 +M_PI2 +M_PI_2 +M_PI_21 +M_PI_210 +M_PI_22 +M_PI_23 +M_PI_24 +M_PI_25 +M_PI_26 +M_PI_27 +M_PI_28 +M_PI_29 +M_PI_4 +M_SQRT1_2 +M_SQRT2 +MemAudit +MemAuditError +MemAuditReport +MemAuditStart +N +N1 +N10 +N11 +N2 +N3 +N4 +N5 +N6 +N7 +N8 +N9 +NAMESERVER_PORT +NAME_MAX +NAN +NCCS +NDEBUG +NETLINK_ROUTE +NEW_TIME +NGROUPS_MAX +NI_DGRAM +NI_MAXHOST +NI_MAXSERV +NI_NAMEREQD +NI_NOFQDN +NI_NUMERICHOST +NI_NUMERICSCOPE +NI_NUMERICSERV +NL0 +NL1 +NLDLY +NLMSG_DONE +NLMSG_ERROR +NLMSG_NOOP +NLMSG_OVERRUN +NLM_F_ACK +NLM_F_ATOMIC +NLM_F_DUMP +NLM_F_MATCH +NLM_F_MULTI +NLM_F_REQUEST +NLM_F_ROOT +NL_ARGMAX +NL_CAT_LOCALE +NL_LANGMAX +NL_MSGMAX +NL_NMAX +NL_SETD +NL_SETMAX +NL_TEXTMAX +NOERROR +NOEXPR +NOFLSH +NOSTR +NOTAUTH +NOTIMP +NOTZONE +NO_ADDRESS +NO_DATA +NO_RECOVERY +NO_TIME32 +NR_DQHASH +NR_DQUOTS +NSCDVERSION +NSIG +NS_ALG_DH +NS_ALG_DSA +NS_ALG_DSS +NS_ALG_EXPIRE_ONLY +NS_ALG_MD5RSA +NS_ALG_PRIVATE_OID +NS_CMPRSFLGS +NS_DEFAULTPORT +NS_DSA_MAX_BYTES +NS_DSA_MIN_SIZE +NS_DSA_SIG_SIZE +NS_HFIXEDSZ +NS_IN6ADDRSZ +NS_INADDRSZ +NS_INT16SZ +NS_INT32SZ +NS_INT8SZ +NS_KEY_EXTENDED_FLAGS +NS_KEY_NAME_ENTITY +NS_KEY_NAME_RESERVED +NS_KEY_NAME_TYPE +NS_KEY_NAME_USER +NS_KEY_NAME_ZONE +NS_KEY_NO_AUTH +NS_KEY_NO_CONF +NS_KEY_PROT_ANY +NS_KEY_PROT_DNSSEC +NS_KEY_PROT_EMAIL +NS_KEY_PROT_IPSEC +NS_KEY_PROT_TLS +NS_KEY_RESERVED10 +NS_KEY_RESERVED11 +NS_KEY_RESERVED2 +NS_KEY_RESERVED4 +NS_KEY_RESERVED5 +NS_KEY_RESERVED8 +NS_KEY_RESERVED9 +NS_KEY_RESERVED_BITMASK +NS_KEY_RESERVED_BITMASK2 +NS_KEY_SIGNATORYMASK +NS_KEY_TYPEMASK +NS_KEY_TYPE_AUTH_CONF +NS_KEY_TYPE_AUTH_ONLY +NS_KEY_TYPE_CONF_ONLY +NS_KEY_TYPE_NO_KEY +NS_MAXCDNAME +NS_MAXDNAME +NS_MAXLABEL +NS_MAXMSG +NS_MD5RSA_MAX_BASE64 +NS_MD5RSA_MAX_BITS +NS_MD5RSA_MAX_BYTES +NS_MD5RSA_MAX_SIZE +NS_MD5RSA_MIN_BITS +NS_MD5RSA_MIN_SIZE +NS_NOTIFY_OP +NS_NXT_BITS +NS_NXT_MAX +NS_OPT_DNSSEC_OK +NS_OPT_NSID +NS_PACKETSZ +NS_QFIXEDSZ +NS_RRFIXEDSZ +NS_SIG_ALG +NS_SIG_EXPIR +NS_SIG_FOOT +NS_SIG_LABELS +NS_SIG_OTTL +NS_SIG_SIGNED +NS_SIG_SIGNER +NS_SIG_TYPE +NS_TSIG_ALG_HMAC_MD5 +NS_TSIG_ERROR_FORMERR +NS_TSIG_ERROR_NO_SPACE +NS_TSIG_ERROR_NO_TSIG +NS_TSIG_FUDGE +NS_TSIG_TCP_COUNT +NS_UPDATE_OP +NT_386_IOPERM +NT_386_TLS +NT_ARC_V2 +NT_ARM_HW_BREAK +NT_ARM_HW_WATCH +NT_ARM_PACA_KEYS +NT_ARM_PACG_KEYS +NT_ARM_PAC_ENABLED_KEYS +NT_ARM_PAC_MASK +NT_ARM_SVE +NT_ARM_SYSTEM_CALL +NT_ARM_TAGGED_ADDR_CTRL +NT_ARM_TLS +NT_ARM_VFP +NT_ASRS +NT_AUXV +NT_FILE +NT_FPREGSET +NT_GNU_ABI_TAG +NT_GNU_BUILD_ID +NT_GNU_GOLD_VERSION +NT_GNU_PROPERTY_TYPE_0 +NT_GWINDOWS +NT_LOONGARCH_CPUCFG +NT_LOONGARCH_CSR +NT_LOONGARCH_LASX +NT_LOONGARCH_LBT +NT_LOONGARCH_LSX +NT_LWPSINFO +NT_LWPSTATUS +NT_METAG_CBUF +NT_METAG_RPIPE +NT_METAG_TLS +NT_MIPS_DSP +NT_MIPS_FP_MODE +NT_MIPS_MSA +NT_PLATFORM +NT_PPC_DSCR +NT_PPC_EBB +NT_PPC_PMU +NT_PPC_PPR +NT_PPC_SPE +NT_PPC_TAR +NT_PPC_TM_CDSCR +NT_PPC_TM_CFPR +NT_PPC_TM_CGPR +NT_PPC_TM_CPPR +NT_PPC_TM_CTAR +NT_PPC_TM_CVMX +NT_PPC_TM_CVSX +NT_PPC_TM_SPR +NT_PPC_VMX +NT_PPC_VSX +NT_PRCRED +NT_PRFPREG +NT_PRFPXREG +NT_PRPSINFO +NT_PRSTATUS +NT_PRXFPREG +NT_PRXREG +NT_PSINFO +NT_PSTATUS +NT_RISCV_CSR +NT_RISCV_VECTOR +NT_S390_CTRS +NT_S390_GS_BC +NT_S390_GS_CB +NT_S390_HIGH_GPRS +NT_S390_LAST_BREAK +NT_S390_PREFIX +NT_S390_RI_CB +NT_S390_SYSTEM_CALL +NT_S390_TDB +NT_S390_TIMER +NT_S390_TODCMP +NT_S390_TODPREG +NT_S390_VXRS_HIGH +NT_S390_VXRS_LOW +NT_SIGINFO +NT_TASKSTRUCT +NT_UTSNAME +NT_VERSION +NT_VMCOREDD +NT_X86_XSTATE +NXDOMAIN +NXRRSET +NZERO +N_6PACK +N_AX25 +N_CAIF +N_GIGASET_M101 +N_GSM0710 +N_HCI +N_HDLC +N_IRDA +N_MASC +N_MOUSE +N_NCI +N_NULL +N_PPP +N_PPS +N_PROFIBUS_FDL +N_R3964 +N_SLCAN +N_SLIP +N_SMSBLOCK +N_SPEAKUP +N_STRIP +N_SYNC_PPP +N_TI_WL +N_TRACEROUTER +N_TRACESINK +N_TTY +N_V253 +N_X25 +NegInt16 +NegInt32 +NegInt64 +NegInt8 +NegUint16 +NegUint32 +NegUint64 +NegUint8 +NegUintptr +NewPerfCounter +NewStackCapture +NewTLS +NewVaList +NewVaListN +OCRNL +ODK_EXCEPTIONS +ODK_FILL +ODK_HWAND +ODK_HWOR +ODK_HWPATCH +ODK_NULL +ODK_PAD +ODK_REGINFO +ODK_TAGS +OEX_DISMISS +OEX_FPDBUG +OEX_FPU_DIV0 +OEX_FPU_INEX +OEX_FPU_INVAL +OEX_FPU_MAX +OEX_FPU_MIN +OEX_FPU_OFLO +OEX_FPU_UFLO +OEX_PAGE0 +OEX_PRECISEFP +OEX_SMM +OFDEL +OFF +OFF1 +OFF2 +OFF3 +OFF_MASK +OFILL +OHWA0_R4KEOP_CHECKED +OHWA1_R4KEOP_CLEAN +OHW_R4KEOP +OHW_R5KCVTL +OHW_R5KEOP +OHW_R8KPFETCH +OLCUC +OLD_TIME +ONES +ONLCR +ONLRET +ONOCR +OPAD_POSTFIX +OPAD_PREFIX +OPAD_SYMBOL +OPOST +O_ACCMODE +O_APPEND +O_ASYNC +O_CLOEXEC +O_CREAT +O_DIRECT +O_DIRECTORY +O_DSYNC +O_EXCL +O_EXEC +O_LARGEFILE +O_NDELAY +O_NOATIME +O_NOCTTY +O_NOFOLLOW +O_NONBLOCK +O_PATH +O_RDONLY +O_RDWR +O_RSYNC +O_SEARCH +O_SYNC +O_TMPFILE +O_TRUNC +O_TTY_INIT +O_WRONLY +PACKETSZ +PAD_POS +PAGESIZE +PAGE_SIZE +PARENB +PARMRK +PARODD +PATH_MAX +PDP_ENDIAN +PENDIN +PER_BSD +PER_HPUX +PER_IRIX32 +PER_IRIX64 +PER_IRIXN32 +PER_ISCR4 +PER_LINUX +PER_LINUX32 +PER_LINUX32_3GB +PER_LINUX_32BIT +PER_LINUX_FDPIC +PER_MASK +PER_OSF4 +PER_OSR5 +PER_RISCOS +PER_SCOSVR3 +PER_SOLARIS +PER_SUNOS +PER_SVR3 +PER_SVR4 +PER_UW7 +PER_WYSEV386 +PER_XENIX +PF_ALG +PF_APPLETALK +PF_ARM_ABS +PF_ARM_PI +PF_ARM_SB +PF_ASH +PF_ATMPVC +PF_ATMSVC +PF_AX25 +PF_BLUETOOTH +PF_BRIDGE +PF_CAIF +PF_CAN +PF_DECnet +PF_ECONET +PF_FILE +PF_HP_CODE +PF_HP_FAR_SHARED +PF_HP_LAZYSWAP +PF_HP_MODIFY +PF_HP_NEAR_SHARED +PF_HP_PAGE_SIZE +PF_HP_SBP +PF_IA_64_NORECOV +PF_IB +PF_IEEE802154 +PF_INET +PF_INET6 +PF_IPX +PF_IRDA +PF_ISDN +PF_IUCV +PF_KCM +PF_KEY +PF_LLC +PF_LOCAL +PF_MASKOS +PF_MASKPROC +PF_MAX +PF_MIPS_LOCAL +PF_MPLS +PF_NETBEUI +PF_NETLINK +PF_NETROM +PF_NFC +PF_PACKET +PF_PARISC_SBP +PF_PHONET +PF_PPPOX +PF_QIPCRTR +PF_R +PF_RDS +PF_ROSE +PF_ROUTE +PF_RXRPC +PF_SECURITY +PF_SMC +PF_SNA +PF_TIPC +PF_UNIX +PF_UNSPEC +PF_VSOCK +PF_W +PF_WANPIPE +PF_X +PF_X25 +PF_XDP +PIPE_BUF +PM_STR +PN_XNUM +POLLERR +POLLHUP +POLLIN +POLLMSG +POLLNVAL +POLLOUT +POLLPRI +POLLRDBAND +POLLRDHUP +POLLRDNORM +POLLWRBAND +POLLWRNORM +POLL_ERR +POLL_HUP +POLL_IN +POLL_MSG +POLL_OUT +POLL_PRI +POSIX_CLOSE_RESTART +POSIX_FADV_DONTNEED +POSIX_FADV_NOREUSE +POSIX_FADV_NORMAL +POSIX_FADV_RANDOM +POSIX_FADV_SEQUENTIAL +POSIX_FADV_WILLNEED +POSIX_MADV_DONTNEED +POSIX_MADV_NORMAL +POSIX_MADV_RANDOM +POSIX_MADV_SEQUENTIAL +POSIX_MADV_WILLNEED +POSIX_SPAWN_RESETIDS +POSIX_SPAWN_SETPGROUP +POSIX_SPAWN_SETSCHEDPARAM +POSIX_SPAWN_SETSCHEDULER +POSIX_SPAWN_SETSID +POSIX_SPAWN_SETSIGDEF +POSIX_SPAWN_SETSIGMASK +POSIX_SPAWN_USEVFORK +POWF_LOG2_POLY_ORDER +POWF_LOG2_TABLE_BITS +POWF_SCALE_BITS +POW_LOG_POLY_ORDER +POW_LOG_TABLE_BITS +PPC64_OPT_LOCALENTRY +PPC64_OPT_MULTI_TOC +PPC64_OPT_TLS +PPC_OPT_TLS +PRIO_MAX +PRIO_MIN +PRIO_PGRP +PRIO_PROCESS +PRIO_USER +PRIX16 +PRIX32 +PRIX8 +PRIXFAST16 +PRIXFAST32 +PRIXFAST8 +PRIXLEAST16 +PRIXLEAST32 +PRIXLEAST8 +PRId16 +PRId32 +PRId8 +PRIdFAST16 +PRIdFAST32 +PRIdFAST8 +PRIdLEAST16 +PRIdLEAST32 +PRIdLEAST8 +PRIi16 +PRIi32 +PRIi8 +PRIiFAST16 +PRIiFAST32 +PRIiFAST8 +PRIiLEAST16 +PRIiLEAST32 +PRIiLEAST8 +PRIo16 +PRIo32 +PRIo8 +PRIoFAST16 +PRIoFAST32 +PRIoFAST8 +PRIoLEAST16 +PRIoLEAST32 +PRIoLEAST8 +PRIu16 +PRIu32 +PRIu8 +PRIuFAST16 +PRIuFAST32 +PRIuFAST8 +PRIuLEAST16 +PRIuLEAST32 +PRIuLEAST8 +PRIx16 +PRIx32 +PRIx8 +PRIxFAST16 +PRIxFAST32 +PRIxFAST8 +PRIxLEAST16 +PRIxLEAST32 +PRIxLEAST8 +PROT_EXEC +PROT_GROWSDOWN +PROT_GROWSUP +PROT_NONE +PROT_READ +PROT_WRITE +PR_CAPBSET_DROP +PR_CAPBSET_READ +PR_CAP_AMBIENT +PR_CAP_AMBIENT_CLEAR_ALL +PR_CAP_AMBIENT_IS_SET +PR_CAP_AMBIENT_LOWER +PR_CAP_AMBIENT_RAISE +PR_ENDIAN_BIG +PR_ENDIAN_LITTLE +PR_ENDIAN_PPC_LITTLE +PR_FPEMU_NOPRINT +PR_FPEMU_SIGFPE +PR_FP_EXC_ASYNC +PR_FP_EXC_DISABLED +PR_FP_EXC_DIV +PR_FP_EXC_INV +PR_FP_EXC_NONRECOV +PR_FP_EXC_OVF +PR_FP_EXC_PRECISE +PR_FP_EXC_RES +PR_FP_EXC_SW_ENABLE +PR_FP_EXC_UND +PR_FP_MODE_FR +PR_FP_MODE_FRE +PR_GET_CHILD_SUBREAPER +PR_GET_DUMPABLE +PR_GET_ENDIAN +PR_GET_FPEMU +PR_GET_FPEXC +PR_GET_FP_MODE +PR_GET_IO_FLUSHER +PR_GET_KEEPCAPS +PR_GET_NAME +PR_GET_NO_NEW_PRIVS +PR_GET_PDEATHSIG +PR_GET_SECCOMP +PR_GET_SECUREBITS +PR_GET_SPECULATION_CTRL +PR_GET_TAGGED_ADDR_CTRL +PR_GET_THP_DISABLE +PR_GET_TID_ADDRESS +PR_GET_TIMERSLACK +PR_GET_TIMING +PR_GET_TSC +PR_GET_UNALIGN +PR_MCE_KILL +PR_MCE_KILL_CLEAR +PR_MCE_KILL_DEFAULT +PR_MCE_KILL_EARLY +PR_MCE_KILL_GET +PR_MCE_KILL_LATE +PR_MCE_KILL_SET +PR_MPX_DISABLE_MANAGEMENT +PR_MPX_ENABLE_MANAGEMENT +PR_MTE_TAG_MASK +PR_MTE_TAG_SHIFT +PR_MTE_TCF_ASYNC +PR_MTE_TCF_MASK +PR_MTE_TCF_NONE +PR_MTE_TCF_SHIFT +PR_MTE_TCF_SYNC +PR_PAC_APDAKEY +PR_PAC_APDBKEY +PR_PAC_APGAKEY +PR_PAC_APIAKEY +PR_PAC_APIBKEY +PR_PAC_GET_ENABLED_KEYS +PR_PAC_RESET_KEYS +PR_PAC_SET_ENABLED_KEYS +PR_SET_CHILD_SUBREAPER +PR_SET_DUMPABLE +PR_SET_ENDIAN +PR_SET_FPEMU +PR_SET_FPEXC +PR_SET_FP_MODE +PR_SET_IO_FLUSHER +PR_SET_KEEPCAPS +PR_SET_MM +PR_SET_MM_ARG_END +PR_SET_MM_ARG_START +PR_SET_MM_AUXV +PR_SET_MM_BRK +PR_SET_MM_END_CODE +PR_SET_MM_END_DATA +PR_SET_MM_ENV_END +PR_SET_MM_ENV_START +PR_SET_MM_EXE_FILE +PR_SET_MM_MAP +PR_SET_MM_MAP_SIZE +PR_SET_MM_START_BRK +PR_SET_MM_START_CODE +PR_SET_MM_START_DATA +PR_SET_MM_START_STACK +PR_SET_NAME +PR_SET_NO_NEW_PRIVS +PR_SET_PDEATHSIG +PR_SET_PTRACER +PR_SET_PTRACER_ANY +PR_SET_SECCOMP +PR_SET_SECUREBITS +PR_SET_SPECULATION_CTRL +PR_SET_SYSCALL_USER_DISPATCH +PR_SET_TAGGED_ADDR_CTRL +PR_SET_THP_DISABLE +PR_SET_TIMERSLACK +PR_SET_TIMING +PR_SET_TSC +PR_SET_UNALIGN +PR_SPEC_DISABLE +PR_SPEC_DISABLE_NOEXEC +PR_SPEC_ENABLE +PR_SPEC_FORCE_DISABLE +PR_SPEC_INDIRECT_BRANCH +PR_SPEC_NOT_AFFECTED +PR_SPEC_PRCTL +PR_SPEC_STORE_BYPASS +PR_SVE_GET_VL +PR_SVE_SET_VL +PR_SVE_SET_VL_ONEXEC +PR_SVE_VL_INHERIT +PR_SVE_VL_LEN_MASK +PR_SYS_DISPATCH_OFF +PR_SYS_DISPATCH_ON +PR_TAGGED_ADDR_ENABLE +PR_TASK_PERF_EVENTS_DISABLE +PR_TASK_PERF_EVENTS_ENABLE +PR_TIMING_STATISTICAL +PR_TIMING_TIMESTAMP +PR_TSC_ENABLE +PR_TSC_SIGSEGV +PR_UNALIGN_NOPRINT +PR_UNALIGN_SIGBUS +PTHREAD_BARRIER_SERIAL_THREAD +PTHREAD_CANCELED +PTHREAD_CANCEL_ASYNCHRONOUS +PTHREAD_CANCEL_DEFERRED +PTHREAD_CANCEL_DISABLE +PTHREAD_CANCEL_ENABLE +PTHREAD_CANCEL_MASKED +PTHREAD_CREATE_DETACHED +PTHREAD_CREATE_JOINABLE +PTHREAD_DESTRUCTOR_ITERATIONS +PTHREAD_EXPLICIT_SCHED +PTHREAD_INHERIT_SCHED +PTHREAD_KEYS_MAX +PTHREAD_MUTEX_DEFAULT +PTHREAD_MUTEX_ERRORCHECK +PTHREAD_MUTEX_NORMAL +PTHREAD_MUTEX_RECURSIVE +PTHREAD_MUTEX_ROBUST +PTHREAD_MUTEX_STALLED +PTHREAD_ONCE_INIT +PTHREAD_PRIO_INHERIT +PTHREAD_PRIO_NONE +PTHREAD_PRIO_PROTECT +PTHREAD_PROCESS_PRIVATE +PTHREAD_PROCESS_SHARED +PTHREAD_SCOPE_PROCESS +PTHREAD_SCOPE_SYSTEM +PTHREAD_STACK_MIN +PTRACE_ARCH_PRCTL +PTRACE_ATTACH +PTRACE_CONT +PTRACE_DETACH +PTRACE_EVENT_CLONE +PTRACE_EVENT_EXEC +PTRACE_EVENT_EXIT +PTRACE_EVENT_FORK +PTRACE_EVENT_SECCOMP +PTRACE_EVENT_STOP +PTRACE_EVENT_VFORK +PTRACE_EVENT_VFORK_DONE +PTRACE_GETEVENTMSG +PTRACE_GETFPREGS +PTRACE_GETFPXREGS +PTRACE_GETREGS +PTRACE_GETREGSET +PTRACE_GETSIGINFO +PTRACE_GETSIGMASK +PTRACE_GET_RSEQ_CONFIGURATION +PTRACE_GET_SYSCALL_INFO +PTRACE_GET_THREAD_AREA +PTRACE_INTERRUPT +PTRACE_KILL +PTRACE_LISTEN +PTRACE_O_EXITKILL +PTRACE_O_MASK +PTRACE_O_SUSPEND_SECCOMP +PTRACE_O_TRACECLONE +PTRACE_O_TRACEEXEC +PTRACE_O_TRACEEXIT +PTRACE_O_TRACEFORK +PTRACE_O_TRACESECCOMP +PTRACE_O_TRACESYSGOOD +PTRACE_O_TRACEVFORK +PTRACE_O_TRACEVFORKDONE +PTRACE_PEEKDATA +PTRACE_PEEKSIGINFO +PTRACE_PEEKSIGINFO_SHARED +PTRACE_PEEKTEXT +PTRACE_PEEKUSER +PTRACE_POKEDATA +PTRACE_POKETEXT +PTRACE_POKEUSER +PTRACE_SECCOMP_GET_FILTER +PTRACE_SECCOMP_GET_METADATA +PTRACE_SEIZE +PTRACE_SETFPREGS +PTRACE_SETFPXREGS +PTRACE_SETOPTIONS +PTRACE_SETREGS +PTRACE_SETREGSET +PTRACE_SETSIGINFO +PTRACE_SETSIGMASK +PTRACE_SET_THREAD_AREA +PTRACE_SINGLEBLOCK +PTRACE_SINGLESTEP +PTRACE_SYSCALL +PTRACE_SYSCALL_INFO_ENTRY +PTRACE_SYSCALL_INFO_EXIT +PTRACE_SYSCALL_INFO_NONE +PTRACE_SYSCALL_INFO_SECCOMP +PTRACE_SYSEMU +PTRACE_SYSEMU_SINGLESTEP +PTRACE_TRACEME +PTRDIFF_MAX +PTRDIFF_MIN +PT_ARCH_PRCTL +PT_ARM_EXIDX +PT_ATTACH +PT_CONTINUE +PT_DETACH +PT_DYNAMIC +PT_GETEVENTMSG +PT_GETFPREGS +PT_GETFPXREGS +PT_GETREGS +PT_GETSIGINFO +PT_GET_THREAD_AREA +PT_GNU_EH_FRAME +PT_GNU_PROPERTY +PT_GNU_RELRO +PT_GNU_STACK +PT_HIOS +PT_HIPROC +PT_HISUNW +PT_HP_CORE_COMM +PT_HP_CORE_KERNEL +PT_HP_CORE_LOADABLE +PT_HP_CORE_MMF +PT_HP_CORE_NONE +PT_HP_CORE_PROC +PT_HP_CORE_SHM +PT_HP_CORE_STACK +PT_HP_CORE_VERSION +PT_HP_FASTBIND +PT_HP_HSL_ANNOT +PT_HP_OPT_ANNOT +PT_HP_PARALLEL +PT_HP_STACK +PT_HP_TLS +PT_IA_64_ARCHEXT +PT_IA_64_HP_HSL_ANOT +PT_IA_64_HP_OPT_ANOT +PT_IA_64_HP_STACK +PT_IA_64_UNWIND +PT_INTERP +PT_KILL +PT_LOAD +PT_LOOS +PT_LOPROC +PT_LOSUNW +PT_MIPS_ABIFLAGS +PT_MIPS_OPTIONS +PT_MIPS_REGINFO +PT_MIPS_RTPROC +PT_NOTE +PT_NULL +PT_NUM +PT_PARISC_ARCHEXT +PT_PARISC_UNWIND +PT_PHDR +PT_READ_D +PT_READ_I +PT_READ_U +PT_SETFPREGS +PT_SETFPXREGS +PT_SETOPTIONS +PT_SETREGS +PT_SETSIGINFO +PT_SET_THREAD_AREA +PT_SHLIB +PT_STEP +PT_STEPBLOCK +PT_SUNWBSS +PT_SUNWSTACK +PT_SYSCALL +PT_SYSEMU +PT_SYSEMU_SINGLESTEP +PT_TLS +PT_TRACE_ME +PT_WRITE_D +PT_WRITE_I +PT_WRITE_U +PUTLONG +PUTSHORT +PWDIRLEN +PWFOUND +PWGECOSLEN +PWGID +PWNAMELEN +PWPASSWDLEN +PWSHELLLEN +PWUID +PWVERSION +PW_LEN +P_tmpdir +PerfCounter +PostDecAtomicInt32 +PostDecAtomicInt64 +PostDecAtomicUint32 +PostDecAtomicUint64 +PostDecAtomicUintptr +PostDecBitFieldPtr16Int16 +PostDecBitFieldPtr16Int32 +PostDecBitFieldPtr16Int64 +PostDecBitFieldPtr16Int8 +PostDecBitFieldPtr16Uint16 +PostDecBitFieldPtr16Uint32 +PostDecBitFieldPtr16Uint64 +PostDecBitFieldPtr16Uint8 +PostDecBitFieldPtr32Int16 +PostDecBitFieldPtr32Int32 +PostDecBitFieldPtr32Int64 +PostDecBitFieldPtr32Int8 +PostDecBitFieldPtr32Uint16 +PostDecBitFieldPtr32Uint32 +PostDecBitFieldPtr32Uint64 +PostDecBitFieldPtr32Uint8 +PostDecBitFieldPtr64Int16 +PostDecBitFieldPtr64Int32 +PostDecBitFieldPtr64Int64 +PostDecBitFieldPtr64Int8 +PostDecBitFieldPtr64Uint16 +PostDecBitFieldPtr64Uint32 +PostDecBitFieldPtr64Uint64 +PostDecBitFieldPtr64Uint8 +PostDecBitFieldPtr8Int16 +PostDecBitFieldPtr8Int32 +PostDecBitFieldPtr8Int64 +PostDecBitFieldPtr8Int8 +PostDecBitFieldPtr8Uint16 +PostDecBitFieldPtr8Uint32 +PostDecBitFieldPtr8Uint64 +PostDecBitFieldPtr8Uint8 +PostDecComplex128 +PostDecComplex64 +PostDecFloat32 +PostDecFloat64 +PostDecInt16 +PostDecInt32 +PostDecInt64 +PostDecInt8 +PostDecUint16 +PostDecUint32 +PostDecUint64 +PostDecUint8 +PostDecUintptr +PostIncAtomicInt32 +PostIncAtomicInt32P +PostIncAtomicInt64 +PostIncAtomicInt64P +PostIncAtomicUint32 +PostIncAtomicUint32P +PostIncAtomicUint64 +PostIncAtomicUint64P +PostIncAtomicUintptr +PostIncAtomicUintptrP +PostIncBitFieldPtr16Int16 +PostIncBitFieldPtr16Int32 +PostIncBitFieldPtr16Int64 +PostIncBitFieldPtr16Int8 +PostIncBitFieldPtr16Uint16 +PostIncBitFieldPtr16Uint32 +PostIncBitFieldPtr16Uint64 +PostIncBitFieldPtr16Uint8 +PostIncBitFieldPtr32Int16 +PostIncBitFieldPtr32Int32 +PostIncBitFieldPtr32Int64 +PostIncBitFieldPtr32Int8 +PostIncBitFieldPtr32Uint16 +PostIncBitFieldPtr32Uint32 +PostIncBitFieldPtr32Uint64 +PostIncBitFieldPtr32Uint8 +PostIncBitFieldPtr64Int16 +PostIncBitFieldPtr64Int32 +PostIncBitFieldPtr64Int64 +PostIncBitFieldPtr64Int8 +PostIncBitFieldPtr64Uint16 +PostIncBitFieldPtr64Uint32 +PostIncBitFieldPtr64Uint64 +PostIncBitFieldPtr64Uint8 +PostIncBitFieldPtr8Int16 +PostIncBitFieldPtr8Int32 +PostIncBitFieldPtr8Int64 +PostIncBitFieldPtr8Int8 +PostIncBitFieldPtr8Uint16 +PostIncBitFieldPtr8Uint32 +PostIncBitFieldPtr8Uint64 +PostIncBitFieldPtr8Uint8 +PostIncComplex128 +PostIncComplex64 +PostIncFloat32 +PostIncFloat64 +PostIncInt16 +PostIncInt32 +PostIncInt64 +PostIncInt8 +PostIncUint16 +PostIncUint32 +PostIncUint64 +PostIncUint8 +PostIncUintptr +PreDecAtomicInt32 +PreDecAtomicInt64 +PreDecAtomicUint32 +PreDecAtomicUint64 +PreDecAtomicUintptr +PreDecComplex128 +PreDecComplex64 +PreDecFloat32 +PreDecFloat64 +PreDecInt16 +PreDecInt32 +PreDecInt64 +PreDecInt8 +PreDecUint16 +PreDecUint32 +PreDecUint64 +PreDecUint8 +PreDecUintptr +PreIncAtomicInt32 +PreIncAtomicInt32P +PreIncAtomicInt64 +PreIncAtomicInt64P +PreIncAtomicUint32 +PreIncAtomicUint32P +PreIncAtomicUint64 +PreIncAtomicUint64P +PreIncAtomicUintptr +PreIncComplex128 +PreIncComplex64 +PreIncFloat32 +PreIncFloat64 +PreIncInt16 +PreIncInt32 +PreIncInt64 +PreIncInt8 +PreIncUint16 +PreIncUint32 +PreIncUint64 +PreIncUint8 +PreIncUintptr +PreInrAtomicUintptrP +QFIXEDSZ +QFMT_OCFS2 +QFMT_VFS_OLD +QFMT_VFS_V0 +QFMT_VFS_V1 +QIF_ALL +QIF_BLIMITS +QIF_BTIME +QIF_ILIMITS +QIF_INODES +QIF_ITIME +QIF_LIMITS +QIF_SPACE +QIF_TIMES +QIF_USAGE +QUERY +QUESTION +QUOTAFILENAME +QUOTAGROUP +Q_GETFMT +Q_GETINFO +Q_GETQUOTA +Q_QUOTAOFF +Q_QUOTAON +Q_SETINFO +Q_SETQUOTA +Q_SYNC +R +RADIXCHAR +RAND_MAX +RB_AUTOBOOT +RB_DISABLE_CAD +RB_ENABLE_CAD +RB_HALT_SYSTEM +RB_KEXEC +RB_POWER_OFF +RB_SW_SUSPEND +READ_IMPLIES_EXEC +REFUSED +REG_BADBR +REG_BADPAT +REG_BADRPT +REG_EBRACE +REG_EBRACK +REG_ECOLLATE +REG_ECTYPE +REG_EESCAPE +REG_ENOSYS +REG_EPAREN +REG_ERANGE +REG_ESPACE +REG_ESUBREG +REG_EXTENDED +REG_ICASE +REG_NEWLINE +REG_NOMATCH +REG_NOSUB +REG_NOTBOL +REG_NOTEOL +REG_OK +REQKEYLEN +REQTYPE +REQVERSION +REQ_LEN +RES_AAONLY +RES_BLAST +RES_DEBUG +RES_DEFAULT +RES_DEFNAMES +RES_DFLRETRY +RES_DNSRCH +RES_EXHAUSTIVE +RES_F_CONN +RES_F_EDNS0ERR +RES_F_VC +RES_IGNTC +RES_INIT +RES_INSECURE1 +RES_INSECURE2 +RES_KEEPTSIG +RES_MAXNDOTS +RES_MAXRETRANS +RES_MAXRETRY +RES_MAXTIME +RES_NOALIASES +RES_NOCHECKNAME +RES_NOIP6DOTINT +RES_PRF_ADD +RES_PRF_ANS +RES_PRF_AUTH +RES_PRF_CLASS +RES_PRF_CMD +RES_PRF_HEAD1 +RES_PRF_HEAD2 +RES_PRF_HEADX +RES_PRF_INIT +RES_PRF_QUERY +RES_PRF_QUES +RES_PRF_REPLY +RES_PRF_STATS +RES_PRF_TTLID +RES_PRF_UPDATE +RES_PRIMARY +RES_RECURSE +RES_ROTATE +RES_SNGLKUP +RES_SNGLKUPREOP +RES_STAYOPEN +RES_TIMEOUT +RES_USEBSTRING +RES_USEVC +RES_USE_DNSSEC +RES_USE_EDNS0 +RES_USE_INET6 +RE_DUP_MAX +RHF_CORD +RHF_DEFAULT_DELAY_LOAD +RHF_DELTA_C_PLUS_PLUS +RHF_GUARANTEE_INIT +RHF_GUARANTEE_START_INIT +RHF_NONE +RHF_NOTPOT +RHF_NO_LIBRARY_REPLACEMENT +RHF_NO_MOVE +RHF_NO_UNRES_UNDEF +RHF_PIXIE +RHF_QUICKSTART +RHF_REQUICKSTART +RHF_REQUICKSTARTED +RHF_RLD_ORDER_SAFE +RHF_SGI_ONLY +RLIMIT_AS +RLIMIT_CORE +RLIMIT_CPU +RLIMIT_DATA +RLIMIT_FSIZE +RLIMIT_LOCKS +RLIMIT_MEMLOCK +RLIMIT_MSGQUEUE +RLIMIT_NICE +RLIMIT_NLIMITS +RLIMIT_NOFILE +RLIMIT_NPROC +RLIMIT_RSS +RLIMIT_RTPRIO +RLIMIT_RTTIME +RLIMIT_SIGPENDING +RLIMIT_STACK +RLIM_INFINITY +RLIM_NLIMITS +RLIM_SAVED_CUR +RLIM_SAVED_MAX +ROUNDS_DEFAULT +ROUNDS_MAX +ROUNDS_MIN +RRFIXEDSZ +RR_A +RR_AAAA +RR_CNAME +RR_PTR +RS +RTM_GETADDR +RTM_GETLINK +RTM_NEWADDR +RTM_NEWLINK +RUN_LVL +RUSAGE_CHILDREN +RUSAGE_SELF +RUSAGE_THREAD +RWF_APPEND +RWF_DSYNC +RWF_HIPRI +RWF_NOWAIT +RWF_SYNC +RWF_WRITE_LIFE_NOT_SET +RWH_WRITE_LIFE_EXTREME +RWH_WRITE_LIFE_LONG +RWH_WRITE_LIFE_MEDIUM +RWH_WRITE_LIFE_NONE +RWH_WRITE_LIFE_SHORT +R_386_16 +R_386_32 +R_386_32PLT +R_386_8 +R_386_COPY +R_386_GLOB_DAT +R_386_GOT32 +R_386_GOT32X +R_386_GOTOFF +R_386_GOTPC +R_386_IRELATIVE +R_386_JMP_SLOT +R_386_NONE +R_386_NUM +R_386_PC16 +R_386_PC32 +R_386_PC8 +R_386_PLT32 +R_386_RELATIVE +R_386_SIZE32 +R_386_TLS_DESC +R_386_TLS_DESC_CALL +R_386_TLS_DTPMOD32 +R_386_TLS_DTPOFF32 +R_386_TLS_GD +R_386_TLS_GD_32 +R_386_TLS_GD_CALL +R_386_TLS_GD_POP +R_386_TLS_GD_PUSH +R_386_TLS_GOTDESC +R_386_TLS_GOTIE +R_386_TLS_IE +R_386_TLS_IE_32 +R_386_TLS_LDM +R_386_TLS_LDM_32 +R_386_TLS_LDM_CALL +R_386_TLS_LDM_POP +R_386_TLS_LDM_PUSH +R_386_TLS_LDO_32 +R_386_TLS_LE +R_386_TLS_LE_32 +R_386_TLS_TPOFF +R_386_TLS_TPOFF32 +R_390_12 +R_390_16 +R_390_20 +R_390_32 +R_390_64 +R_390_8 +R_390_COPY +R_390_GLOB_DAT +R_390_GOT12 +R_390_GOT16 +R_390_GOT20 +R_390_GOT32 +R_390_GOT64 +R_390_GOTENT +R_390_GOTOFF16 +R_390_GOTOFF32 +R_390_GOTOFF64 +R_390_GOTPC +R_390_GOTPCDBL +R_390_GOTPLT12 +R_390_GOTPLT16 +R_390_GOTPLT20 +R_390_GOTPLT32 +R_390_GOTPLT64 +R_390_GOTPLTENT +R_390_JMP_SLOT +R_390_NONE +R_390_NUM +R_390_PC16 +R_390_PC16DBL +R_390_PC32 +R_390_PC32DBL +R_390_PC64 +R_390_PLT16DBL +R_390_PLT32 +R_390_PLT32DBL +R_390_PLT64 +R_390_PLTOFF16 +R_390_PLTOFF32 +R_390_PLTOFF64 +R_390_RELATIVE +R_390_TLS_DTPMOD +R_390_TLS_DTPOFF +R_390_TLS_GD32 +R_390_TLS_GD64 +R_390_TLS_GDCALL +R_390_TLS_GOTIE12 +R_390_TLS_GOTIE20 +R_390_TLS_GOTIE32 +R_390_TLS_GOTIE64 +R_390_TLS_IE32 +R_390_TLS_IE64 +R_390_TLS_IEENT +R_390_TLS_LDCALL +R_390_TLS_LDM32 +R_390_TLS_LDM64 +R_390_TLS_LDO32 +R_390_TLS_LDO64 +R_390_TLS_LE32 +R_390_TLS_LE64 +R_390_TLS_LOAD +R_390_TLS_TPOFF +R_68K_16 +R_68K_32 +R_68K_8 +R_68K_COPY +R_68K_GLOB_DAT +R_68K_GOT16 +R_68K_GOT16O +R_68K_GOT32 +R_68K_GOT32O +R_68K_GOT8 +R_68K_GOT8O +R_68K_JMP_SLOT +R_68K_NONE +R_68K_NUM +R_68K_PC16 +R_68K_PC32 +R_68K_PC8 +R_68K_PLT16 +R_68K_PLT16O +R_68K_PLT32 +R_68K_PLT32O +R_68K_PLT8 +R_68K_PLT8O +R_68K_RELATIVE +R_68K_TLS_DTPMOD32 +R_68K_TLS_DTPREL32 +R_68K_TLS_GD16 +R_68K_TLS_GD32 +R_68K_TLS_GD8 +R_68K_TLS_IE16 +R_68K_TLS_IE32 +R_68K_TLS_IE8 +R_68K_TLS_LDM16 +R_68K_TLS_LDM32 +R_68K_TLS_LDM8 +R_68K_TLS_LDO16 +R_68K_TLS_LDO32 +R_68K_TLS_LDO8 +R_68K_TLS_LE16 +R_68K_TLS_LE32 +R_68K_TLS_LE8 +R_68K_TLS_TPREL32 +R_AARCH64_ABS16 +R_AARCH64_ABS32 +R_AARCH64_ABS64 +R_AARCH64_ADD_ABS_LO12_NC +R_AARCH64_ADR_GOT_PAGE +R_AARCH64_ADR_PREL_LO21 +R_AARCH64_ADR_PREL_PG_HI21 +R_AARCH64_ADR_PREL_PG_HI21_NC +R_AARCH64_CALL26 +R_AARCH64_CONDBR19 +R_AARCH64_COPY +R_AARCH64_GLOB_DAT +R_AARCH64_GOTREL32 +R_AARCH64_GOTREL64 +R_AARCH64_GOT_LD_PREL19 +R_AARCH64_JUMP26 +R_AARCH64_JUMP_SLOT +R_AARCH64_LD64_GOTOFF_LO15 +R_AARCH64_LD64_GOTPAGE_LO15 +R_AARCH64_LD64_GOT_LO12_NC +R_AARCH64_LDST128_ABS_LO12_NC +R_AARCH64_LDST16_ABS_LO12_NC +R_AARCH64_LDST32_ABS_LO12_NC +R_AARCH64_LDST64_ABS_LO12_NC +R_AARCH64_LDST8_ABS_LO12_NC +R_AARCH64_LD_PREL_LO19 +R_AARCH64_MOVW_GOTOFF_G0 +R_AARCH64_MOVW_GOTOFF_G0_NC +R_AARCH64_MOVW_GOTOFF_G1 +R_AARCH64_MOVW_GOTOFF_G1_NC +R_AARCH64_MOVW_GOTOFF_G2 +R_AARCH64_MOVW_GOTOFF_G2_NC +R_AARCH64_MOVW_GOTOFF_G3 +R_AARCH64_MOVW_PREL_G0 +R_AARCH64_MOVW_PREL_G0_NC +R_AARCH64_MOVW_PREL_G1 +R_AARCH64_MOVW_PREL_G1_NC +R_AARCH64_MOVW_PREL_G2 +R_AARCH64_MOVW_PREL_G2_NC +R_AARCH64_MOVW_PREL_G3 +R_AARCH64_MOVW_SABS_G0 +R_AARCH64_MOVW_SABS_G1 +R_AARCH64_MOVW_SABS_G2 +R_AARCH64_MOVW_UABS_G0 +R_AARCH64_MOVW_UABS_G0_NC +R_AARCH64_MOVW_UABS_G1 +R_AARCH64_MOVW_UABS_G1_NC +R_AARCH64_MOVW_UABS_G2 +R_AARCH64_MOVW_UABS_G2_NC +R_AARCH64_MOVW_UABS_G3 +R_AARCH64_NONE +R_AARCH64_P32_ABS32 +R_AARCH64_P32_COPY +R_AARCH64_P32_GLOB_DAT +R_AARCH64_P32_IRELATIVE +R_AARCH64_P32_JUMP_SLOT +R_AARCH64_P32_RELATIVE +R_AARCH64_P32_TLSDESC +R_AARCH64_P32_TLS_DTPMOD +R_AARCH64_P32_TLS_DTPREL +R_AARCH64_P32_TLS_TPREL +R_AARCH64_PREL16 +R_AARCH64_PREL32 +R_AARCH64_PREL64 +R_AARCH64_RELATIVE +R_AARCH64_TLSDESC +R_AARCH64_TLSDESC_ADD +R_AARCH64_TLSDESC_ADD_LO12 +R_AARCH64_TLSDESC_ADR_PAGE21 +R_AARCH64_TLSDESC_ADR_PREL21 +R_AARCH64_TLSDESC_CALL +R_AARCH64_TLSDESC_LD64_LO12 +R_AARCH64_TLSDESC_LDR +R_AARCH64_TLSDESC_LD_PREL19 +R_AARCH64_TLSDESC_OFF_G0_NC +R_AARCH64_TLSDESC_OFF_G1 +R_AARCH64_TLSGD_ADD_LO12_NC +R_AARCH64_TLSGD_ADR_PAGE21 +R_AARCH64_TLSGD_ADR_PREL21 +R_AARCH64_TLSGD_MOVW_G0_NC +R_AARCH64_TLSGD_MOVW_G1 +R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21 +R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC +R_AARCH64_TLSIE_LD_GOTTPREL_PREL19 +R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC +R_AARCH64_TLSIE_MOVW_GOTTPREL_G1 +R_AARCH64_TLSLD_ADD_DTPREL_HI12 +R_AARCH64_TLSLD_ADD_DTPREL_LO12 +R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC +R_AARCH64_TLSLD_ADD_LO12_NC +R_AARCH64_TLSLD_ADR_PAGE21 +R_AARCH64_TLSLD_ADR_PREL21 +R_AARCH64_TLSLD_LDST128_DTPREL_LO12 +R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC +R_AARCH64_TLSLD_LDST16_DTPREL_LO12 +R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC +R_AARCH64_TLSLD_LDST32_DTPREL_LO12 +R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC +R_AARCH64_TLSLD_LDST64_DTPREL_LO12 +R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC +R_AARCH64_TLSLD_LDST8_DTPREL_LO12 +R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC +R_AARCH64_TLSLD_LD_PREL19 +R_AARCH64_TLSLD_MOVW_DTPREL_G0 +R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC +R_AARCH64_TLSLD_MOVW_DTPREL_G1 +R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC +R_AARCH64_TLSLD_MOVW_DTPREL_G2 +R_AARCH64_TLSLD_MOVW_G0_NC +R_AARCH64_TLSLD_MOVW_G1 +R_AARCH64_TLSLE_ADD_TPREL_HI12 +R_AARCH64_TLSLE_ADD_TPREL_LO12 +R_AARCH64_TLSLE_ADD_TPREL_LO12_NC +R_AARCH64_TLSLE_LDST128_TPREL_LO12 +R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC +R_AARCH64_TLSLE_LDST16_TPREL_LO12 +R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC +R_AARCH64_TLSLE_LDST32_TPREL_LO12 +R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC +R_AARCH64_TLSLE_LDST64_TPREL_LO12 +R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC +R_AARCH64_TLSLE_LDST8_TPREL_LO12 +R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC +R_AARCH64_TLSLE_MOVW_TPREL_G0 +R_AARCH64_TLSLE_MOVW_TPREL_G0_NC +R_AARCH64_TLSLE_MOVW_TPREL_G1 +R_AARCH64_TLSLE_MOVW_TPREL_G1_NC +R_AARCH64_TLSLE_MOVW_TPREL_G2 +R_AARCH64_TLS_DTPMOD +R_AARCH64_TLS_DTPMOD64 +R_AARCH64_TLS_DTPREL +R_AARCH64_TLS_DTPREL64 +R_AARCH64_TLS_TPREL +R_AARCH64_TLS_TPREL64 +R_AARCH64_TSTBR14 +R_ALPHA_BRADDR +R_ALPHA_COPY +R_ALPHA_DTPMOD64 +R_ALPHA_DTPREL16 +R_ALPHA_DTPREL64 +R_ALPHA_DTPRELHI +R_ALPHA_DTPRELLO +R_ALPHA_GLOB_DAT +R_ALPHA_GOTDTPREL +R_ALPHA_GOTTPREL +R_ALPHA_GPDISP +R_ALPHA_GPREL16 +R_ALPHA_GPREL32 +R_ALPHA_GPRELHIGH +R_ALPHA_GPRELLOW +R_ALPHA_HINT +R_ALPHA_JMP_SLOT +R_ALPHA_LITERAL +R_ALPHA_LITUSE +R_ALPHA_NONE +R_ALPHA_NUM +R_ALPHA_REFLONG +R_ALPHA_REFQUAD +R_ALPHA_RELATIVE +R_ALPHA_SREL16 +R_ALPHA_SREL32 +R_ALPHA_SREL64 +R_ALPHA_TLSGD +R_ALPHA_TLS_GD_HI +R_ALPHA_TLS_LDM +R_ALPHA_TPREL16 +R_ALPHA_TPREL64 +R_ALPHA_TPRELHI +R_ALPHA_TPRELLO +R_ARM_ABS12 +R_ARM_ABS16 +R_ARM_ABS32 +R_ARM_ABS32_NOI +R_ARM_ABS8 +R_ARM_ALU_PCREL_15_8 +R_ARM_ALU_PCREL_23_15 +R_ARM_ALU_PCREL_7_0 +R_ARM_ALU_PC_G0 +R_ARM_ALU_PC_G0_NC +R_ARM_ALU_PC_G1 +R_ARM_ALU_PC_G1_NC +R_ARM_ALU_PC_G2 +R_ARM_ALU_SBREL_19_12 +R_ARM_ALU_SBREL_27_20 +R_ARM_ALU_SB_G0 +R_ARM_ALU_SB_G0_NC +R_ARM_ALU_SB_G1 +R_ARM_ALU_SB_G1_NC +R_ARM_ALU_SB_G2 +R_ARM_AMP_VCALL9 +R_ARM_BASE_ABS +R_ARM_CALL +R_ARM_COPY +R_ARM_GLOB_DAT +R_ARM_GNU_VTENTRY +R_ARM_GNU_VTINHERIT +R_ARM_GOT32 +R_ARM_GOTOFF +R_ARM_GOTOFF12 +R_ARM_GOTPC +R_ARM_GOTRELAX +R_ARM_GOT_ABS +R_ARM_GOT_BREL12 +R_ARM_GOT_PREL +R_ARM_IRELATIVE +R_ARM_JUMP24 +R_ARM_JUMP_SLOT +R_ARM_LDC_PC_G0 +R_ARM_LDC_PC_G1 +R_ARM_LDC_PC_G2 +R_ARM_LDC_SB_G0 +R_ARM_LDC_SB_G1 +R_ARM_LDC_SB_G2 +R_ARM_LDRS_PC_G0 +R_ARM_LDRS_PC_G1 +R_ARM_LDRS_PC_G2 +R_ARM_LDRS_SB_G0 +R_ARM_LDRS_SB_G1 +R_ARM_LDRS_SB_G2 +R_ARM_LDR_PC_G1 +R_ARM_LDR_PC_G2 +R_ARM_LDR_SBREL_11_0 +R_ARM_LDR_SB_G0 +R_ARM_LDR_SB_G1 +R_ARM_LDR_SB_G2 +R_ARM_ME_TOO +R_ARM_MOVT_ABS +R_ARM_MOVT_BREL +R_ARM_MOVT_PREL +R_ARM_MOVW_ABS_NC +R_ARM_MOVW_BREL +R_ARM_MOVW_BREL_NC +R_ARM_MOVW_PREL_NC +R_ARM_NONE +R_ARM_NUM +R_ARM_PC13 +R_ARM_PC24 +R_ARM_PLT32 +R_ARM_PLT32_ABS +R_ARM_PREL31 +R_ARM_RABS22 +R_ARM_RBASE +R_ARM_REL32 +R_ARM_REL32_NOI +R_ARM_RELATIVE +R_ARM_RPC24 +R_ARM_RREL32 +R_ARM_RSBREL32 +R_ARM_RXPC25 +R_ARM_SBREL31 +R_ARM_SBREL32 +R_ARM_TARGET1 +R_ARM_TARGET2 +R_ARM_THM_ABS5 +R_ARM_THM_ALU_PREL_11_0 +R_ARM_THM_GOT_BREL12 +R_ARM_THM_JUMP19 +R_ARM_THM_JUMP24 +R_ARM_THM_JUMP6 +R_ARM_THM_MOVT_ABS +R_ARM_THM_MOVT_BREL +R_ARM_THM_MOVT_PREL +R_ARM_THM_MOVW_ABS_NC +R_ARM_THM_MOVW_BREL +R_ARM_THM_MOVW_BREL_NC +R_ARM_THM_MOVW_PREL_NC +R_ARM_THM_PC11 +R_ARM_THM_PC12 +R_ARM_THM_PC22 +R_ARM_THM_PC8 +R_ARM_THM_PC9 +R_ARM_THM_RPC22 +R_ARM_THM_SWI8 +R_ARM_THM_TLS_CALL +R_ARM_THM_TLS_DESCSEQ +R_ARM_THM_TLS_DESCSEQ16 +R_ARM_THM_TLS_DESCSEQ32 +R_ARM_THM_XPC22 +R_ARM_TLS_CALL +R_ARM_TLS_DESC +R_ARM_TLS_DESCSEQ +R_ARM_TLS_DTPMOD32 +R_ARM_TLS_DTPOFF32 +R_ARM_TLS_GD32 +R_ARM_TLS_GOTDESC +R_ARM_TLS_IE12GP +R_ARM_TLS_IE32 +R_ARM_TLS_LDM32 +R_ARM_TLS_LDO12 +R_ARM_TLS_LDO32 +R_ARM_TLS_LE12 +R_ARM_TLS_LE32 +R_ARM_TLS_TPOFF32 +R_ARM_V4BX +R_ARM_XPC25 +R_BPF_MAP_FD +R_BPF_NONE +R_CKCORE_ADDR32 +R_CKCORE_ADDRGOT +R_CKCORE_ADDRGOT_HI16 +R_CKCORE_ADDRGOT_LO16 +R_CKCORE_ADDRPLT +R_CKCORE_ADDRPLT_HI16 +R_CKCORE_ADDRPLT_LO16 +R_CKCORE_ADDR_HI16 +R_CKCORE_ADDR_LO16 +R_CKCORE_COPY +R_CKCORE_DOFFSET_IMM18 +R_CKCORE_DOFFSET_IMM18BY2 +R_CKCORE_DOFFSET_IMM18BY4 +R_CKCORE_DOFFSET_LO16 +R_CKCORE_GLOB_DAT +R_CKCORE_GOT12 +R_CKCORE_GOT32 +R_CKCORE_GOTOFF +R_CKCORE_GOTOFF_HI16 +R_CKCORE_GOTOFF_LO16 +R_CKCORE_GOTPC +R_CKCORE_GOTPC_HI16 +R_CKCORE_GOTPC_LO16 +R_CKCORE_GOT_HI16 +R_CKCORE_GOT_IMM18BY4 +R_CKCORE_GOT_LO16 +R_CKCORE_JUMP_SLOT +R_CKCORE_NONE +R_CKCORE_PCREL32 +R_CKCORE_PCRELIMM11BY2 +R_CKCORE_PCRELIMM8BY4 +R_CKCORE_PCRELJSR_IMM11BY2 +R_CKCORE_PCREL_IMM10BY2 +R_CKCORE_PCREL_IMM10BY4 +R_CKCORE_PCREL_IMM16BY2 +R_CKCORE_PCREL_IMM16BY4 +R_CKCORE_PCREL_IMM18BY2 +R_CKCORE_PCREL_IMM26BY2 +R_CKCORE_PCREL_IMM7BY4 +R_CKCORE_PCREL_JSR_IMM26BY2 +R_CKCORE_PLT12 +R_CKCORE_PLT32 +R_CKCORE_PLT_HI16 +R_CKCORE_PLT_IMM18BY4 +R_CKCORE_PLT_LO16 +R_CKCORE_RELATIVE +R_CKCORE_TLS_DTPMOD32 +R_CKCORE_TLS_DTPOFF32 +R_CKCORE_TLS_GD32 +R_CKCORE_TLS_IE32 +R_CKCORE_TLS_LDM32 +R_CKCORE_TLS_LDO32 +R_CKCORE_TLS_LE32 +R_CKCORE_TLS_TPOFF32 +R_CKCORE_TOFFSET_LO16 +R_CRIS_16 +R_CRIS_16_GOT +R_CRIS_16_GOTPLT +R_CRIS_16_PCREL +R_CRIS_32 +R_CRIS_32_GOT +R_CRIS_32_GOTPLT +R_CRIS_32_GOTREL +R_CRIS_32_PCREL +R_CRIS_32_PLT_GOTREL +R_CRIS_32_PLT_PCREL +R_CRIS_8 +R_CRIS_8_PCREL +R_CRIS_COPY +R_CRIS_GLOB_DAT +R_CRIS_GNU_VTENTRY +R_CRIS_GNU_VTINHERIT +R_CRIS_JUMP_SLOT +R_CRIS_NONE +R_CRIS_NUM +R_CRIS_RELATIVE +R_IA64_COPY +R_IA64_DIR32LSB +R_IA64_DIR32MSB +R_IA64_DIR64LSB +R_IA64_DIR64MSB +R_IA64_DTPMOD64LSB +R_IA64_DTPMOD64MSB +R_IA64_DTPREL14 +R_IA64_DTPREL22 +R_IA64_DTPREL32LSB +R_IA64_DTPREL32MSB +R_IA64_DTPREL64I +R_IA64_DTPREL64LSB +R_IA64_DTPREL64MSB +R_IA64_FPTR32LSB +R_IA64_FPTR32MSB +R_IA64_FPTR64I +R_IA64_FPTR64LSB +R_IA64_FPTR64MSB +R_IA64_GPREL22 +R_IA64_GPREL32LSB +R_IA64_GPREL32MSB +R_IA64_GPREL64I +R_IA64_GPREL64LSB +R_IA64_GPREL64MSB +R_IA64_IMM14 +R_IA64_IMM22 +R_IA64_IMM64 +R_IA64_IPLTLSB +R_IA64_IPLTMSB +R_IA64_LDXMOV +R_IA64_LTOFF22 +R_IA64_LTOFF22X +R_IA64_LTOFF64I +R_IA64_LTOFF_DTPMOD22 +R_IA64_LTOFF_DTPREL22 +R_IA64_LTOFF_FPTR22 +R_IA64_LTOFF_FPTR32LSB +R_IA64_LTOFF_FPTR32MSB +R_IA64_LTOFF_FPTR64I +R_IA64_LTOFF_FPTR64LSB +R_IA64_LTOFF_FPTR64MSB +R_IA64_LTOFF_TPREL22 +R_IA64_LTV32LSB +R_IA64_LTV32MSB +R_IA64_LTV64LSB +R_IA64_LTV64MSB +R_IA64_NONE +R_IA64_PCREL21B +R_IA64_PCREL21BI +R_IA64_PCREL21F +R_IA64_PCREL21M +R_IA64_PCREL22 +R_IA64_PCREL32LSB +R_IA64_PCREL32MSB +R_IA64_PCREL60B +R_IA64_PCREL64I +R_IA64_PCREL64LSB +R_IA64_PCREL64MSB +R_IA64_PLTOFF22 +R_IA64_PLTOFF64I +R_IA64_PLTOFF64LSB +R_IA64_PLTOFF64MSB +R_IA64_REL32LSB +R_IA64_REL32MSB +R_IA64_REL64LSB +R_IA64_REL64MSB +R_IA64_SECREL32LSB +R_IA64_SECREL32MSB +R_IA64_SECREL64LSB +R_IA64_SECREL64MSB +R_IA64_SEGREL32LSB +R_IA64_SEGREL32MSB +R_IA64_SEGREL64LSB +R_IA64_SEGREL64MSB +R_IA64_SUB +R_IA64_TPREL14 +R_IA64_TPREL22 +R_IA64_TPREL64I +R_IA64_TPREL64LSB +R_IA64_TPREL64MSB +R_LARCH_32 +R_LARCH_32_PCREL +R_LARCH_64 +R_LARCH_ABS64_HI12 +R_LARCH_ABS64_LO20 +R_LARCH_ABS_HI20 +R_LARCH_ABS_LO12 +R_LARCH_ADD16 +R_LARCH_ADD24 +R_LARCH_ADD32 +R_LARCH_ADD64 +R_LARCH_ADD8 +R_LARCH_B16 +R_LARCH_B21 +R_LARCH_B26 +R_LARCH_COPY +R_LARCH_GNU_VTENTRY +R_LARCH_GNU_VTINHERIT +R_LARCH_GOT64_HI12 +R_LARCH_GOT64_LO20 +R_LARCH_GOT64_PC_HI12 +R_LARCH_GOT64_PC_LO20 +R_LARCH_GOT_HI20 +R_LARCH_GOT_LO12 +R_LARCH_GOT_PC_HI20 +R_LARCH_GOT_PC_LO12 +R_LARCH_IRELATIVE +R_LARCH_JUMP_SLOT +R_LARCH_MARK_LA +R_LARCH_MARK_PCREL +R_LARCH_NONE +R_LARCH_PCALA64_HI12 +R_LARCH_PCALA64_LO20 +R_LARCH_PCALA_HI20 +R_LARCH_PCALA_LO12 +R_LARCH_RELATIVE +R_LARCH_RELAX +R_LARCH_SOP_ADD +R_LARCH_SOP_AND +R_LARCH_SOP_ASSERT +R_LARCH_SOP_IF_ELSE +R_LARCH_SOP_NOT +R_LARCH_SOP_POP_32_S_0_10_10_16_S2 +R_LARCH_SOP_POP_32_S_0_5_10_16_S2 +R_LARCH_SOP_POP_32_S_10_12 +R_LARCH_SOP_POP_32_S_10_16 +R_LARCH_SOP_POP_32_S_10_16_S2 +R_LARCH_SOP_POP_32_S_10_5 +R_LARCH_SOP_POP_32_S_5_20 +R_LARCH_SOP_POP_32_U +R_LARCH_SOP_POP_32_U_10_12 +R_LARCH_SOP_PUSH_ABSOLUTE +R_LARCH_SOP_PUSH_DUP +R_LARCH_SOP_PUSH_GPREL +R_LARCH_SOP_PUSH_PCREL +R_LARCH_SOP_PUSH_PLT_PCREL +R_LARCH_SOP_PUSH_TLS_GD +R_LARCH_SOP_PUSH_TLS_GOT +R_LARCH_SOP_PUSH_TLS_TPREL +R_LARCH_SOP_SL +R_LARCH_SOP_SR +R_LARCH_SOP_SUB +R_LARCH_SUB16 +R_LARCH_SUB24 +R_LARCH_SUB32 +R_LARCH_SUB64 +R_LARCH_SUB8 +R_LARCH_TLS_DTPMOD32 +R_LARCH_TLS_DTPMOD64 +R_LARCH_TLS_DTPREL32 +R_LARCH_TLS_DTPREL64 +R_LARCH_TLS_GD_HI20 +R_LARCH_TLS_GD_PC_HI20 +R_LARCH_TLS_IE64_HI12 +R_LARCH_TLS_IE64_LO20 +R_LARCH_TLS_IE64_PC_HI12 +R_LARCH_TLS_IE64_PC_LO20 +R_LARCH_TLS_IE_HI20 +R_LARCH_TLS_IE_LO12 +R_LARCH_TLS_IE_PC_HI20 +R_LARCH_TLS_IE_PC_LO12 +R_LARCH_TLS_LD_HI20 +R_LARCH_TLS_LD_PC_HI20 +R_LARCH_TLS_LE64_HI12 +R_LARCH_TLS_LE64_LO20 +R_LARCH_TLS_LE_HI20 +R_LARCH_TLS_LE_LO12 +R_LARCH_TLS_TPREL32 +R_LARCH_TLS_TPREL64 +R_M32R_10_PCREL +R_M32R_10_PCREL_RELA +R_M32R_16 +R_M32R_16_RELA +R_M32R_18_PCREL +R_M32R_18_PCREL_RELA +R_M32R_24 +R_M32R_24_RELA +R_M32R_26_PCREL +R_M32R_26_PCREL_RELA +R_M32R_26_PLTREL +R_M32R_32 +R_M32R_32_RELA +R_M32R_COPY +R_M32R_GLOB_DAT +R_M32R_GNU_VTENTRY +R_M32R_GNU_VTINHERIT +R_M32R_GOT16_HI_SLO +R_M32R_GOT16_HI_ULO +R_M32R_GOT16_LO +R_M32R_GOT24 +R_M32R_GOTOFF +R_M32R_GOTOFF_HI_SLO +R_M32R_GOTOFF_HI_ULO +R_M32R_GOTOFF_LO +R_M32R_GOTPC24 +R_M32R_GOTPC_HI_SLO +R_M32R_GOTPC_HI_ULO +R_M32R_GOTPC_LO +R_M32R_HI16_SLO +R_M32R_HI16_SLO_RELA +R_M32R_HI16_ULO +R_M32R_HI16_ULO_RELA +R_M32R_JMP_SLOT +R_M32R_LO16 +R_M32R_LO16_RELA +R_M32R_NONE +R_M32R_NUM +R_M32R_REL32 +R_M32R_RELATIVE +R_M32R_RELA_GNU_VTENTRY +R_M32R_RELA_GNU_VTINHERIT +R_M32R_SDA16 +R_M32R_SDA16_RELA +R_MICROBLAZE_32 +R_MICROBLAZE_32_LO +R_MICROBLAZE_32_PCREL +R_MICROBLAZE_32_PCREL_LO +R_MICROBLAZE_32_SYM_OP_SYM +R_MICROBLAZE_64 +R_MICROBLAZE_64_NONE +R_MICROBLAZE_64_PCREL +R_MICROBLAZE_COPY +R_MICROBLAZE_GLOB_DAT +R_MICROBLAZE_GNU_VTENTRY +R_MICROBLAZE_GNU_VTINHERIT +R_MICROBLAZE_GOTOFF_32 +R_MICROBLAZE_GOTOFF_64 +R_MICROBLAZE_GOTPC_64 +R_MICROBLAZE_GOT_64 +R_MICROBLAZE_JUMP_SLOT +R_MICROBLAZE_NONE +R_MICROBLAZE_PLT_64 +R_MICROBLAZE_REL +R_MICROBLAZE_SRO32 +R_MICROBLAZE_SRW32 +R_MICROBLAZE_TLS +R_MICROBLAZE_TLSDTPMOD32 +R_MICROBLAZE_TLSDTPREL32 +R_MICROBLAZE_TLSDTPREL64 +R_MICROBLAZE_TLSGD +R_MICROBLAZE_TLSGOTTPREL32 +R_MICROBLAZE_TLSLD +R_MICROBLAZE_TLSTPREL32 +R_MIPS_16 +R_MIPS_26 +R_MIPS_32 +R_MIPS_64 +R_MIPS_ADD_IMMEDIATE +R_MIPS_CALL16 +R_MIPS_CALL_HI16 +R_MIPS_CALL_LO16 +R_MIPS_COPY +R_MIPS_DELETE +R_MIPS_GLOB_DAT +R_MIPS_GOT16 +R_MIPS_GOT_DISP +R_MIPS_GOT_HI16 +R_MIPS_GOT_LO16 +R_MIPS_GOT_OFST +R_MIPS_GOT_PAGE +R_MIPS_GPREL16 +R_MIPS_GPREL32 +R_MIPS_HI16 +R_MIPS_HIGHER +R_MIPS_HIGHEST +R_MIPS_INSERT_A +R_MIPS_INSERT_B +R_MIPS_JALR +R_MIPS_JUMP_SLOT +R_MIPS_LITERAL +R_MIPS_LO16 +R_MIPS_NONE +R_MIPS_NUM +R_MIPS_PC16 +R_MIPS_PJUMP +R_MIPS_REL16 +R_MIPS_REL32 +R_MIPS_RELGOT +R_MIPS_SCN_DISP +R_MIPS_SHIFT5 +R_MIPS_SHIFT6 +R_MIPS_SUB +R_MIPS_TLS_DTPMOD32 +R_MIPS_TLS_DTPMOD64 +R_MIPS_TLS_DTPREL32 +R_MIPS_TLS_DTPREL64 +R_MIPS_TLS_DTPREL_HI16 +R_MIPS_TLS_DTPREL_LO16 +R_MIPS_TLS_GD +R_MIPS_TLS_GOTTPREL +R_MIPS_TLS_LDM +R_MIPS_TLS_TPREL32 +R_MIPS_TLS_TPREL64 +R_MIPS_TLS_TPREL_HI16 +R_MIPS_TLS_TPREL_LO16 +R_MN10300_16 +R_MN10300_24 +R_MN10300_32 +R_MN10300_8 +R_MN10300_COPY +R_MN10300_GLOB_DAT +R_MN10300_GNU_VTENTRY +R_MN10300_GNU_VTINHERIT +R_MN10300_GOT16 +R_MN10300_GOT24 +R_MN10300_GOT32 +R_MN10300_GOTOFF16 +R_MN10300_GOTOFF24 +R_MN10300_GOTOFF32 +R_MN10300_GOTPC16 +R_MN10300_GOTPC32 +R_MN10300_JMP_SLOT +R_MN10300_NONE +R_MN10300_NUM +R_MN10300_PCREL16 +R_MN10300_PCREL32 +R_MN10300_PCREL8 +R_MN10300_PLT16 +R_MN10300_PLT32 +R_MN10300_RELATIVE +R_NIOS2_ALIGN +R_NIOS2_BFD_RELOC_16 +R_NIOS2_BFD_RELOC_32 +R_NIOS2_BFD_RELOC_8 +R_NIOS2_CACHE_OPX +R_NIOS2_CALL16 +R_NIOS2_CALL26 +R_NIOS2_CALL26_NOAT +R_NIOS2_CALLR +R_NIOS2_CALL_HA +R_NIOS2_CALL_LO +R_NIOS2_CJMP +R_NIOS2_COPY +R_NIOS2_GLOB_DAT +R_NIOS2_GNU_VTENTRY +R_NIOS2_GNU_VTINHERIT +R_NIOS2_GOT16 +R_NIOS2_GOTOFF +R_NIOS2_GOTOFF_HA +R_NIOS2_GOTOFF_LO +R_NIOS2_GOT_HA +R_NIOS2_GOT_LO +R_NIOS2_GPREL +R_NIOS2_HI16 +R_NIOS2_HIADJ16 +R_NIOS2_IMM5 +R_NIOS2_IMM6 +R_NIOS2_IMM8 +R_NIOS2_JUMP_SLOT +R_NIOS2_LO16 +R_NIOS2_NONE +R_NIOS2_PCREL16 +R_NIOS2_PCREL_HA +R_NIOS2_PCREL_LO +R_NIOS2_RELATIVE +R_NIOS2_S16 +R_NIOS2_TLS_DTPMOD +R_NIOS2_TLS_DTPREL +R_NIOS2_TLS_GD16 +R_NIOS2_TLS_IE16 +R_NIOS2_TLS_LDM16 +R_NIOS2_TLS_LDO16 +R_NIOS2_TLS_LE16 +R_NIOS2_TLS_TPREL +R_NIOS2_U16 +R_NIOS2_UJMP +R_OK +R_OR1K_16 +R_OR1K_16_PCREL +R_OR1K_32 +R_OR1K_32_PCREL +R_OR1K_8 +R_OR1K_8_PCREL +R_OR1K_COPY +R_OR1K_GLOB_DAT +R_OR1K_GNU_VTENTRY +R_OR1K_GNU_VTINHERIT +R_OR1K_GOT16 +R_OR1K_GOTOFF_HI16 +R_OR1K_GOTOFF_LO16 +R_OR1K_GOTPC_HI16 +R_OR1K_GOTPC_LO16 +R_OR1K_HI_16_IN_INSN +R_OR1K_INSN_REL_26 +R_OR1K_JMP_SLOT +R_OR1K_LO_16_IN_INSN +R_OR1K_NONE +R_OR1K_PLT26 +R_OR1K_RELATIVE +R_OR1K_TLS_DTPMOD +R_OR1K_TLS_DTPOFF +R_OR1K_TLS_GD_HI16 +R_OR1K_TLS_GD_LO16 +R_OR1K_TLS_IE_HI16 +R_OR1K_TLS_IE_LO16 +R_OR1K_TLS_LDM_HI16 +R_OR1K_TLS_LDM_LO16 +R_OR1K_TLS_LDO_HI16 +R_OR1K_TLS_LDO_LO16 +R_OR1K_TLS_LE_HI16 +R_OR1K_TLS_LE_LO16 +R_OR1K_TLS_TPOFF +R_PARISC_COPY +R_PARISC_DIR14DR +R_PARISC_DIR14R +R_PARISC_DIR14WR +R_PARISC_DIR16DF +R_PARISC_DIR16F +R_PARISC_DIR16WF +R_PARISC_DIR17F +R_PARISC_DIR17R +R_PARISC_DIR21L +R_PARISC_DIR32 +R_PARISC_DIR64 +R_PARISC_DPREL14R +R_PARISC_DPREL21L +R_PARISC_EPLT +R_PARISC_FPTR64 +R_PARISC_GNU_VTENTRY +R_PARISC_GNU_VTINHERIT +R_PARISC_GPREL14DR +R_PARISC_GPREL14R +R_PARISC_GPREL14WR +R_PARISC_GPREL16DF +R_PARISC_GPREL16F +R_PARISC_GPREL16WF +R_PARISC_GPREL21L +R_PARISC_GPREL64 +R_PARISC_HIRESERVE +R_PARISC_IPLT +R_PARISC_LORESERVE +R_PARISC_LTOFF14DR +R_PARISC_LTOFF14R +R_PARISC_LTOFF14WR +R_PARISC_LTOFF16DF +R_PARISC_LTOFF16F +R_PARISC_LTOFF16WF +R_PARISC_LTOFF21L +R_PARISC_LTOFF64 +R_PARISC_LTOFF_FPTR14DR +R_PARISC_LTOFF_FPTR14R +R_PARISC_LTOFF_FPTR14WR +R_PARISC_LTOFF_FPTR16DF +R_PARISC_LTOFF_FPTR16F +R_PARISC_LTOFF_FPTR16WF +R_PARISC_LTOFF_FPTR21L +R_PARISC_LTOFF_FPTR32 +R_PARISC_LTOFF_FPTR64 +R_PARISC_LTOFF_TP14DR +R_PARISC_LTOFF_TP14F +R_PARISC_LTOFF_TP14R +R_PARISC_LTOFF_TP14WR +R_PARISC_LTOFF_TP16DF +R_PARISC_LTOFF_TP16F +R_PARISC_LTOFF_TP16WF +R_PARISC_LTOFF_TP21L +R_PARISC_LTOFF_TP64 +R_PARISC_NONE +R_PARISC_PCREL14DR +R_PARISC_PCREL14R +R_PARISC_PCREL14WR +R_PARISC_PCREL16DF +R_PARISC_PCREL16F +R_PARISC_PCREL16WF +R_PARISC_PCREL17F +R_PARISC_PCREL17R +R_PARISC_PCREL21L +R_PARISC_PCREL22F +R_PARISC_PCREL32 +R_PARISC_PCREL64 +R_PARISC_PLABEL14R +R_PARISC_PLABEL21L +R_PARISC_PLABEL32 +R_PARISC_PLTOFF14DR +R_PARISC_PLTOFF14R +R_PARISC_PLTOFF14WR +R_PARISC_PLTOFF16DF +R_PARISC_PLTOFF16F +R_PARISC_PLTOFF16WF +R_PARISC_PLTOFF21L +R_PARISC_SECREL32 +R_PARISC_SECREL64 +R_PARISC_SEGBASE +R_PARISC_SEGREL32 +R_PARISC_SEGREL64 +R_PARISC_TLS_DTPMOD32 +R_PARISC_TLS_DTPMOD64 +R_PARISC_TLS_DTPOFF32 +R_PARISC_TLS_DTPOFF64 +R_PARISC_TLS_GD14R +R_PARISC_TLS_GD21L +R_PARISC_TLS_GDCALL +R_PARISC_TLS_IE14R +R_PARISC_TLS_IE21L +R_PARISC_TLS_LDM14R +R_PARISC_TLS_LDM21L +R_PARISC_TLS_LDMCALL +R_PARISC_TLS_LDO14R +R_PARISC_TLS_LDO21L +R_PARISC_TLS_LE14R +R_PARISC_TLS_LE21L +R_PARISC_TLS_TPREL32 +R_PARISC_TLS_TPREL64 +R_PARISC_TPREL14DR +R_PARISC_TPREL14R +R_PARISC_TPREL14WR +R_PARISC_TPREL16DF +R_PARISC_TPREL16F +R_PARISC_TPREL16WF +R_PARISC_TPREL21L +R_PARISC_TPREL32 +R_PARISC_TPREL64 +R_PPC64_ADDR14 +R_PPC64_ADDR14_BRNTAKEN +R_PPC64_ADDR14_BRTAKEN +R_PPC64_ADDR16 +R_PPC64_ADDR16_DS +R_PPC64_ADDR16_HA +R_PPC64_ADDR16_HI +R_PPC64_ADDR16_HIGH +R_PPC64_ADDR16_HIGHA +R_PPC64_ADDR16_HIGHER +R_PPC64_ADDR16_HIGHERA +R_PPC64_ADDR16_HIGHEST +R_PPC64_ADDR16_HIGHESTA +R_PPC64_ADDR16_LO +R_PPC64_ADDR16_LO_DS +R_PPC64_ADDR24 +R_PPC64_ADDR30 +R_PPC64_ADDR32 +R_PPC64_ADDR64 +R_PPC64_COPY +R_PPC64_DTPMOD64 +R_PPC64_DTPREL16 +R_PPC64_DTPREL16_DS +R_PPC64_DTPREL16_HA +R_PPC64_DTPREL16_HI +R_PPC64_DTPREL16_HIGH +R_PPC64_DTPREL16_HIGHA +R_PPC64_DTPREL16_HIGHER +R_PPC64_DTPREL16_HIGHERA +R_PPC64_DTPREL16_HIGHEST +R_PPC64_DTPREL16_HIGHESTA +R_PPC64_DTPREL16_LO +R_PPC64_DTPREL16_LO_DS +R_PPC64_DTPREL64 +R_PPC64_GLOB_DAT +R_PPC64_GOT16 +R_PPC64_GOT16_DS +R_PPC64_GOT16_HA +R_PPC64_GOT16_HI +R_PPC64_GOT16_LO +R_PPC64_GOT16_LO_DS +R_PPC64_GOT_DTPREL16_DS +R_PPC64_GOT_DTPREL16_HA +R_PPC64_GOT_DTPREL16_HI +R_PPC64_GOT_DTPREL16_LO_DS +R_PPC64_GOT_TLSGD16 +R_PPC64_GOT_TLSGD16_HA +R_PPC64_GOT_TLSGD16_HI +R_PPC64_GOT_TLSGD16_LO +R_PPC64_GOT_TLSLD16 +R_PPC64_GOT_TLSLD16_HA +R_PPC64_GOT_TLSLD16_HI +R_PPC64_GOT_TLSLD16_LO +R_PPC64_GOT_TPREL16_DS +R_PPC64_GOT_TPREL16_HA +R_PPC64_GOT_TPREL16_HI +R_PPC64_GOT_TPREL16_LO_DS +R_PPC64_IRELATIVE +R_PPC64_JMP_IREL +R_PPC64_JMP_SLOT +R_PPC64_NONE +R_PPC64_PLT16_HA +R_PPC64_PLT16_HI +R_PPC64_PLT16_LO +R_PPC64_PLT16_LO_DS +R_PPC64_PLT32 +R_PPC64_PLT64 +R_PPC64_PLTGOT16 +R_PPC64_PLTGOT16_DS +R_PPC64_PLTGOT16_HA +R_PPC64_PLTGOT16_HI +R_PPC64_PLTGOT16_LO +R_PPC64_PLTGOT16_LO_DS +R_PPC64_PLTREL32 +R_PPC64_PLTREL64 +R_PPC64_REL14 +R_PPC64_REL14_BRNTAKEN +R_PPC64_REL14_BRTAKEN +R_PPC64_REL16 +R_PPC64_REL16_HA +R_PPC64_REL16_HI +R_PPC64_REL16_LO +R_PPC64_REL24 +R_PPC64_REL32 +R_PPC64_REL64 +R_PPC64_RELATIVE +R_PPC64_SECTOFF +R_PPC64_SECTOFF_DS +R_PPC64_SECTOFF_HA +R_PPC64_SECTOFF_HI +R_PPC64_SECTOFF_LO +R_PPC64_SECTOFF_LO_DS +R_PPC64_TLS +R_PPC64_TLSGD +R_PPC64_TLSLD +R_PPC64_TOC +R_PPC64_TOC16 +R_PPC64_TOC16_DS +R_PPC64_TOC16_HA +R_PPC64_TOC16_HI +R_PPC64_TOC16_LO +R_PPC64_TOC16_LO_DS +R_PPC64_TOCSAVE +R_PPC64_TPREL16 +R_PPC64_TPREL16_DS +R_PPC64_TPREL16_HA +R_PPC64_TPREL16_HI +R_PPC64_TPREL16_HIGH +R_PPC64_TPREL16_HIGHA +R_PPC64_TPREL16_HIGHER +R_PPC64_TPREL16_HIGHERA +R_PPC64_TPREL16_HIGHEST +R_PPC64_TPREL16_HIGHESTA +R_PPC64_TPREL16_LO +R_PPC64_TPREL16_LO_DS +R_PPC64_TPREL64 +R_PPC64_UADDR16 +R_PPC64_UADDR32 +R_PPC64_UADDR64 +R_PPC_ADDR14 +R_PPC_ADDR14_BRNTAKEN +R_PPC_ADDR14_BRTAKEN +R_PPC_ADDR16 +R_PPC_ADDR16_HA +R_PPC_ADDR16_HI +R_PPC_ADDR16_LO +R_PPC_ADDR24 +R_PPC_ADDR32 +R_PPC_COPY +R_PPC_DIAB_RELSDA_HA +R_PPC_DIAB_RELSDA_HI +R_PPC_DIAB_RELSDA_LO +R_PPC_DIAB_SDA21_HA +R_PPC_DIAB_SDA21_HI +R_PPC_DIAB_SDA21_LO +R_PPC_DTPMOD32 +R_PPC_DTPREL16 +R_PPC_DTPREL16_HA +R_PPC_DTPREL16_HI +R_PPC_DTPREL16_LO +R_PPC_DTPREL32 +R_PPC_EMB_BIT_FLD +R_PPC_EMB_MRKREF +R_PPC_EMB_NADDR16 +R_PPC_EMB_NADDR16_HA +R_PPC_EMB_NADDR16_HI +R_PPC_EMB_NADDR16_LO +R_PPC_EMB_NADDR32 +R_PPC_EMB_RELSDA +R_PPC_EMB_RELSEC16 +R_PPC_EMB_RELST_HA +R_PPC_EMB_RELST_HI +R_PPC_EMB_RELST_LO +R_PPC_EMB_SDA21 +R_PPC_EMB_SDA2I16 +R_PPC_EMB_SDA2REL +R_PPC_EMB_SDAI16 +R_PPC_GLOB_DAT +R_PPC_GOT16 +R_PPC_GOT16_HA +R_PPC_GOT16_HI +R_PPC_GOT16_LO +R_PPC_GOT_DTPREL16 +R_PPC_GOT_DTPREL16_HA +R_PPC_GOT_DTPREL16_HI +R_PPC_GOT_DTPREL16_LO +R_PPC_GOT_TLSGD16 +R_PPC_GOT_TLSGD16_HA +R_PPC_GOT_TLSGD16_HI +R_PPC_GOT_TLSGD16_LO +R_PPC_GOT_TLSLD16 +R_PPC_GOT_TLSLD16_HA +R_PPC_GOT_TLSLD16_HI +R_PPC_GOT_TLSLD16_LO +R_PPC_GOT_TPREL16 +R_PPC_GOT_TPREL16_HA +R_PPC_GOT_TPREL16_HI +R_PPC_GOT_TPREL16_LO +R_PPC_IRELATIVE +R_PPC_JMP_SLOT +R_PPC_LOCAL24PC +R_PPC_NONE +R_PPC_PLT16_HA +R_PPC_PLT16_HI +R_PPC_PLT16_LO +R_PPC_PLT32 +R_PPC_PLTREL24 +R_PPC_PLTREL32 +R_PPC_REL14 +R_PPC_REL14_BRNTAKEN +R_PPC_REL14_BRTAKEN +R_PPC_REL16 +R_PPC_REL16_HA +R_PPC_REL16_HI +R_PPC_REL16_LO +R_PPC_REL24 +R_PPC_REL32 +R_PPC_RELATIVE +R_PPC_SDAREL16 +R_PPC_SECTOFF +R_PPC_SECTOFF_HA +R_PPC_SECTOFF_HI +R_PPC_SECTOFF_LO +R_PPC_TLS +R_PPC_TLSGD +R_PPC_TLSLD +R_PPC_TOC16 +R_PPC_TPREL16 +R_PPC_TPREL16_HA +R_PPC_TPREL16_HI +R_PPC_TPREL16_LO +R_PPC_TPREL32 +R_PPC_UADDR16 +R_PPC_UADDR32 +R_RISCV_32 +R_RISCV_32_PCREL +R_RISCV_64 +R_RISCV_ADD16 +R_RISCV_ADD32 +R_RISCV_ADD64 +R_RISCV_ADD8 +R_RISCV_ALIGN +R_RISCV_BRANCH +R_RISCV_CALL +R_RISCV_CALL_PLT +R_RISCV_COPY +R_RISCV_GOT32_PCREL +R_RISCV_GOT_HI20 +R_RISCV_HI20 +R_RISCV_IRELATIVE +R_RISCV_JAL +R_RISCV_JUMP_SLOT +R_RISCV_LO12_I +R_RISCV_LO12_S +R_RISCV_NONE +R_RISCV_PCREL_HI20 +R_RISCV_PCREL_LO12_I +R_RISCV_PCREL_LO12_S +R_RISCV_PLT32 +R_RISCV_RELATIVE +R_RISCV_RELAX +R_RISCV_RVC_BRANCH +R_RISCV_RVC_JUMP +R_RISCV_RVC_LUI +R_RISCV_SET16 +R_RISCV_SET32 +R_RISCV_SET6 +R_RISCV_SET8 +R_RISCV_SET_ULEB128 +R_RISCV_SUB16 +R_RISCV_SUB32 +R_RISCV_SUB6 +R_RISCV_SUB64 +R_RISCV_SUB8 +R_RISCV_SUB_ULEB128 +R_RISCV_TLSDESC +R_RISCV_TLSDESC_ADD_LO12 +R_RISCV_TLSDESC_CALL +R_RISCV_TLSDESC_HI20 +R_RISCV_TLSDESC_LOAD_LO12 +R_RISCV_TLS_DTPMOD32 +R_RISCV_TLS_DTPMOD64 +R_RISCV_TLS_DTPREL32 +R_RISCV_TLS_DTPREL64 +R_RISCV_TLS_GD_HI20 +R_RISCV_TLS_GOT_HI20 +R_RISCV_TLS_TPREL32 +R_RISCV_TLS_TPREL64 +R_RISCV_TPREL_ADD +R_RISCV_TPREL_HI20 +R_RISCV_TPREL_LO12_I +R_RISCV_TPREL_LO12_S +R_SH_ALIGN +R_SH_CODE +R_SH_COPY +R_SH_COUNT +R_SH_DATA +R_SH_DIR32 +R_SH_DIR8BP +R_SH_DIR8L +R_SH_DIR8W +R_SH_DIR8WPL +R_SH_DIR8WPN +R_SH_DIR8WPZ +R_SH_FUNCDESC +R_SH_FUNCDESC_VALUE +R_SH_GLOB_DAT +R_SH_GNU_VTENTRY +R_SH_GNU_VTINHERIT +R_SH_GOT20 +R_SH_GOT32 +R_SH_GOTFUNCDESC +R_SH_GOTFUNCDEST20 +R_SH_GOTOFF +R_SH_GOTOFF20 +R_SH_GOTOFFFUNCDESC +R_SH_GOTOFFFUNCDEST20 +R_SH_GOTPC +R_SH_IND12W +R_SH_JMP_SLOT +R_SH_LABEL +R_SH_NONE +R_SH_NUM +R_SH_PLT32 +R_SH_REL32 +R_SH_RELATIVE +R_SH_SWITCH16 +R_SH_SWITCH32 +R_SH_SWITCH8 +R_SH_TLS_DTPMOD32 +R_SH_TLS_DTPOFF32 +R_SH_TLS_GD_32 +R_SH_TLS_IE_32 +R_SH_TLS_LDO_32 +R_SH_TLS_LD_32 +R_SH_TLS_LE_32 +R_SH_TLS_TPOFF32 +R_SH_USES +R_SPARC_10 +R_SPARC_11 +R_SPARC_13 +R_SPARC_16 +R_SPARC_22 +R_SPARC_32 +R_SPARC_5 +R_SPARC_6 +R_SPARC_64 +R_SPARC_7 +R_SPARC_8 +R_SPARC_COPY +R_SPARC_DISP16 +R_SPARC_DISP32 +R_SPARC_DISP64 +R_SPARC_DISP8 +R_SPARC_GLOB_DAT +R_SPARC_GLOB_JMP +R_SPARC_GNU_VTENTRY +R_SPARC_GNU_VTINHERIT +R_SPARC_GOT10 +R_SPARC_GOT13 +R_SPARC_GOT22 +R_SPARC_GOTDATA_HIX22 +R_SPARC_GOTDATA_LOX10 +R_SPARC_GOTDATA_OP +R_SPARC_GOTDATA_OP_HIX22 +R_SPARC_GOTDATA_OP_LOX10 +R_SPARC_H34 +R_SPARC_H44 +R_SPARC_HH22 +R_SPARC_HI22 +R_SPARC_HIPLT22 +R_SPARC_HIX22 +R_SPARC_HM10 +R_SPARC_JMP_SLOT +R_SPARC_L44 +R_SPARC_LM22 +R_SPARC_LO10 +R_SPARC_LOPLT10 +R_SPARC_LOX10 +R_SPARC_M44 +R_SPARC_NONE +R_SPARC_NUM +R_SPARC_OLO10 +R_SPARC_PC10 +R_SPARC_PC22 +R_SPARC_PCPLT10 +R_SPARC_PCPLT22 +R_SPARC_PCPLT32 +R_SPARC_PC_HH22 +R_SPARC_PC_HM10 +R_SPARC_PC_LM22 +R_SPARC_PLT32 +R_SPARC_PLT64 +R_SPARC_REGISTER +R_SPARC_RELATIVE +R_SPARC_REV32 +R_SPARC_SIZE32 +R_SPARC_SIZE64 +R_SPARC_TLS_DTPMOD32 +R_SPARC_TLS_DTPMOD64 +R_SPARC_TLS_DTPOFF32 +R_SPARC_TLS_DTPOFF64 +R_SPARC_TLS_GD_ADD +R_SPARC_TLS_GD_CALL +R_SPARC_TLS_GD_HI22 +R_SPARC_TLS_GD_LO10 +R_SPARC_TLS_IE_ADD +R_SPARC_TLS_IE_HI22 +R_SPARC_TLS_IE_LD +R_SPARC_TLS_IE_LDX +R_SPARC_TLS_IE_LO10 +R_SPARC_TLS_LDM_ADD +R_SPARC_TLS_LDM_CALL +R_SPARC_TLS_LDM_HI22 +R_SPARC_TLS_LDM_LO10 +R_SPARC_TLS_LDO_ADD +R_SPARC_TLS_LDO_HIX22 +R_SPARC_TLS_LDO_LOX10 +R_SPARC_TLS_LE_HIX22 +R_SPARC_TLS_LE_LOX10 +R_SPARC_TLS_TPOFF32 +R_SPARC_TLS_TPOFF64 +R_SPARC_UA16 +R_SPARC_UA32 +R_SPARC_UA64 +R_SPARC_WDISP16 +R_SPARC_WDISP19 +R_SPARC_WDISP22 +R_SPARC_WDISP30 +R_SPARC_WPLT30 +R_X86_64_16 +R_X86_64_32 +R_X86_64_32S +R_X86_64_64 +R_X86_64_8 +R_X86_64_COPY +R_X86_64_DTPMOD64 +R_X86_64_DTPOFF32 +R_X86_64_DTPOFF64 +R_X86_64_GLOB_DAT +R_X86_64_GOT32 +R_X86_64_GOT64 +R_X86_64_GOTOFF64 +R_X86_64_GOTPC32 +R_X86_64_GOTPC32_TLSDESC +R_X86_64_GOTPC64 +R_X86_64_GOTPCREL +R_X86_64_GOTPCREL64 +R_X86_64_GOTPCRELX +R_X86_64_GOTPLT64 +R_X86_64_GOTTPOFF +R_X86_64_IRELATIVE +R_X86_64_JUMP_SLOT +R_X86_64_NONE +R_X86_64_NUM +R_X86_64_PC16 +R_X86_64_PC32 +R_X86_64_PC64 +R_X86_64_PC8 +R_X86_64_PLT32 +R_X86_64_PLTOFF64 +R_X86_64_RELATIVE +R_X86_64_RELATIVE64 +R_X86_64_REX_GOTPCRELX +R_X86_64_SIZE32 +R_X86_64_SIZE64 +R_X86_64_TLSDESC +R_X86_64_TLSDESC_CALL +R_X86_64_TLSGD +R_X86_64_TLSLD +R_X86_64_TPOFF32 +R_X86_64_TPOFF64 +RawMem +RawMem64 +SA +SALT_MAX +SALT_MAX1 +SA_EXPOSE_TAGBITS +SA_NOCLDSTOP +SA_NOCLDWAIT +SA_NODEFER +SA_NOMASK +SA_ONESHOT +SA_ONSTACK +SA_RESETHAND +SA_RESTART +SA_RESTORER +SA_SIGINFO +SA_UNSUPPORTED +SB +SCHAR_MAX +SCHAR_MIN +SCHED_BATCH +SCHED_DEADLINE +SCHED_FIFO +SCHED_IDLE +SCHED_OTHER +SCHED_RESET_ON_FORK +SCHED_RR +SCM_CREDENTIALS +SCM_RIGHTS +SCM_TIMESTAMP +SCM_TIMESTAMPING +SCM_TIMESTAMPING_OLD +SCM_TIMESTAMPING_OPT_STATS +SCM_TIMESTAMPING_PKTINFO +SCM_TIMESTAMPNS +SCM_TIMESTAMPNS_OLD +SCM_TIMESTAMP_OLD +SCM_TXTIME +SCM_WIFI_STATUS +SCNd16 +SCNd32 +SCNd8 +SCNdFAST16 +SCNdFAST32 +SCNdFAST8 +SCNdLEAST16 +SCNdLEAST32 +SCNdLEAST8 +SCNi16 +SCNi32 +SCNi8 +SCNiFAST16 +SCNiFAST32 +SCNiFAST8 +SCNiLEAST16 +SCNiLEAST32 +SCNiLEAST8 +SCNo16 +SCNo32 +SCNo8 +SCNoFAST16 +SCNoFAST32 +SCNoFAST8 +SCNoLEAST16 +SCNoLEAST32 +SCNoLEAST8 +SCNu16 +SCNu32 +SCNu8 +SCNuFAST16 +SCNuFAST32 +SCNuFAST8 +SCNuLEAST16 +SCNuLEAST32 +SCNuLEAST8 +SCNx16 +SCNx32 +SCNx8 +SCNxFAST16 +SCNxFAST32 +SCNxFAST8 +SCNxLEAST16 +SCNxLEAST32 +SCNxLEAST8 +SEEK_CUR +SEEK_DATA +SEEK_END +SEEK_HOLE +SEEK_SET +SEGV_ACCERR +SEGV_BNDERR +SEGV_MAPERR +SEGV_MTEAERR +SEGV_MTESERR +SEGV_PKUERR +SELFMAG +SEM_INFO +SEM_NSEMS_MAX +SEM_STAT +SEM_STAT_ANY +SEM_UNDO +SEM_VALUE_MAX +SENTINEL +SERVFAIL +SETALL +SETVAL +SFD_CLOEXEC +SFD_NONBLOCK +SHADOW +SHF_ALLOC +SHF_ALPHA_GPREL +SHF_ARM_COMDEF +SHF_ARM_ENTRYSECT +SHF_COMPRESSED +SHF_EXCLUDE +SHF_EXECINSTR +SHF_GROUP +SHF_IA_64_NORECOV +SHF_IA_64_SHORT +SHF_INFO_LINK +SHF_LINK_ORDER +SHF_MASKOS +SHF_MASKPROC +SHF_MERGE +SHF_MIPS_ADDR +SHF_MIPS_GPREL +SHF_MIPS_LOCAL +SHF_MIPS_MERGE +SHF_MIPS_NAMES +SHF_MIPS_NODUPE +SHF_MIPS_NOSTRIP +SHF_MIPS_STRINGS +SHF_ORDERED +SHF_OS_NONCONFORMING +SHF_PARISC_HUGE +SHF_PARISC_SBP +SHF_PARISC_SHORT +SHF_STRINGS +SHF_TLS +SHF_WRITE +SHIFT_JIS +SHMLBA +SHM_DEST +SHM_EXEC +SHM_HUGETLB +SHM_HUGE_16GB +SHM_HUGE_16MB +SHM_HUGE_1GB +SHM_HUGE_1MB +SHM_HUGE_256MB +SHM_HUGE_2GB +SHM_HUGE_2MB +SHM_HUGE_32MB +SHM_HUGE_512KB +SHM_HUGE_512MB +SHM_HUGE_64KB +SHM_HUGE_8MB +SHM_HUGE_MASK +SHM_HUGE_SHIFT +SHM_INFO +SHM_LOCK +SHM_LOCKED +SHM_NORESERVE +SHM_R +SHM_RDONLY +SHM_REMAP +SHM_RND +SHM_STAT +SHM_STAT_ANY +SHM_UNLOCK +SHM_W +SHN_ABS +SHN_AFTER +SHN_BEFORE +SHN_COMMON +SHN_HIOS +SHN_HIPROC +SHN_HIRESERVE +SHN_LOOS +SHN_LOPROC +SHN_LORESERVE +SHN_MIPS_ACOMMON +SHN_MIPS_DATA +SHN_MIPS_SCOMMON +SHN_MIPS_SUNDEFINED +SHN_MIPS_TEXT +SHN_PARISC_ANSI_COMMON +SHN_PARISC_HUGE_COMMON +SHN_UNDEF +SHN_XINDEX +SHORT_INODE +SHRT_MAX +SHRT_MIN +SHT_ALPHA_DEBUG +SHT_ALPHA_REGINFO +SHT_ARM_ATTRIBUTES +SHT_ARM_EXIDX +SHT_ARM_PREEMPTMAP +SHT_CHECKSUM +SHT_DYNAMIC +SHT_DYNSYM +SHT_FINI_ARRAY +SHT_GNU_ATTRIBUTES +SHT_GNU_HASH +SHT_GNU_LIBLIST +SHT_GNU_verdef +SHT_GNU_verneed +SHT_GNU_versym +SHT_GROUP +SHT_HASH +SHT_HIOS +SHT_HIPROC +SHT_HISUNW +SHT_HIUSER +SHT_IA_64_EXT +SHT_IA_64_UNWIND +SHT_INIT_ARRAY +SHT_LOOS +SHT_LOPROC +SHT_LOSUNW +SHT_LOUSER +SHT_MIPS_AUXSYM +SHT_MIPS_CONFLICT +SHT_MIPS_CONTENT +SHT_MIPS_DEBUG +SHT_MIPS_DELTACLASS +SHT_MIPS_DELTADECL +SHT_MIPS_DELTAINST +SHT_MIPS_DELTASYM +SHT_MIPS_DENSE +SHT_MIPS_DWARF +SHT_MIPS_EH_REGION +SHT_MIPS_EVENTS +SHT_MIPS_EXTSYM +SHT_MIPS_FDESC +SHT_MIPS_GPTAB +SHT_MIPS_IFACE +SHT_MIPS_LIBLIST +SHT_MIPS_LINE +SHT_MIPS_LOCSTR +SHT_MIPS_LOCSYM +SHT_MIPS_MSYM +SHT_MIPS_OPTIONS +SHT_MIPS_OPTSYM +SHT_MIPS_PACKAGE +SHT_MIPS_PACKSYM +SHT_MIPS_PDESC +SHT_MIPS_PDR_EXCEPTION +SHT_MIPS_PIXIE +SHT_MIPS_REGINFO +SHT_MIPS_RELD +SHT_MIPS_RFDESC +SHT_MIPS_SHDR +SHT_MIPS_SYMBOL_LIB +SHT_MIPS_TRANSLATE +SHT_MIPS_UCODE +SHT_MIPS_WHIRL +SHT_MIPS_XLATE +SHT_MIPS_XLATE_DEBUG +SHT_MIPS_XLATE_OLD +SHT_NOBITS +SHT_NOTE +SHT_NULL +SHT_NUM +SHT_PARISC_DOC +SHT_PARISC_EXT +SHT_PARISC_UNWIND +SHT_PREINIT_ARRAY +SHT_PROGBITS +SHT_REL +SHT_RELA +SHT_RELR +SHT_SHLIB +SHT_STRTAB +SHT_SUNW_COMDAT +SHT_SUNW_move +SHT_SUNW_syminfo +SHT_SYMTAB +SHT_SYMTAB_SHNDX +SHUT_RD +SHUT_RDWR +SHUT_WR +SIGABRT +SIGALRM +SIGBUS +SIGCANCEL +SIGCHLD +SIGCONT +SIGEV_NONE +SIGEV_SIGNAL +SIGEV_THREAD +SIGEV_THREAD_ID +SIGFPE +SIGHUP +SIGILL +SIGINT +SIGIO +SIGIOT +SIGKILL +SIGN_BIAS +SIGN_BIAS1 +SIGPIPE +SIGPOLL +SIGPROF +SIGPWR +SIGQUIT +SIGRTMAX +SIGRTMIN +SIGSEGV +SIGSTKFLT +SIGSTKSZ +SIGSTOP +SIGSYNCCALL +SIGSYS +SIGTERM +SIGTIMER +SIGTRAP +SIGTSTP +SIGTTIN +SIGTTOU +SIGUNUSED +SIGURG +SIGUSR1 +SIGUSR2 +SIGVTALRM +SIGWINCH +SIGXCPU +SIGXFSZ +SIG_ATOMIC_MAX +SIG_ATOMIC_MIN +SIG_BLOCK +SIG_DFL +SIG_IGN +SIG_SETMASK +SIG_UNBLOCK +SIOCADDDLCI +SIOCADDMULTI +SIOCADDRT +SIOCATMARK +SIOCDARP +SIOCDELDLCI +SIOCDELMULTI +SIOCDELRT +SIOCDEVPRIVATE +SIOCDIFADDR +SIOCDRARP +SIOCGARP +SIOCGIFADDR +SIOCGIFBR +SIOCGIFBRDADDR +SIOCGIFCONF +SIOCGIFCOUNT +SIOCGIFDSTADDR +SIOCGIFENCAP +SIOCGIFFLAGS +SIOCGIFHWADDR +SIOCGIFINDEX +SIOCGIFMAP +SIOCGIFMEM +SIOCGIFMETRIC +SIOCGIFMTU +SIOCGIFNAME +SIOCGIFNETMASK +SIOCGIFPFLAGS +SIOCGIFSLAVE +SIOCGIFTXQLEN +SIOCGPGRP +SIOCGRARP +SIOCGSTAMP +SIOCGSTAMPNS +SIOCGSTAMPNS_OLD +SIOCGSTAMP_OLD +SIOCPROTOPRIVATE +SIOCRTMSG +SIOCSARP +SIOCSIFADDR +SIOCSIFBR +SIOCSIFBRDADDR +SIOCSIFDSTADDR +SIOCSIFENCAP +SIOCSIFFLAGS +SIOCSIFHWADDR +SIOCSIFHWBROADCAST +SIOCSIFLINK +SIOCSIFMAP +SIOCSIFMEM +SIOCSIFMETRIC +SIOCSIFMTU +SIOCSIFNAME +SIOCSIFNETMASK +SIOCSIFPFLAGS +SIOCSIFSLAVE +SIOCSIFTXQLEN +SIOCSPGRP +SIOCSRARP +SIOGIFINDEX +SIZE_L +SIZE_MAX +SIZE_def +SIZE_h +SIZE_hh +SIZE_l +SIZE_ll +SI_ASYNCIO +SI_ASYNCNL +SI_KERNEL +SI_LOAD_SHIFT +SI_MESGQ +SI_QUEUE +SI_SIGIO +SI_TIMER +SI_TKILL +SI_USER +SOCK_CLOEXEC +SOCK_DCCP +SOCK_DGRAM +SOCK_NONBLOCK +SOCK_PACKET +SOCK_RAW +SOCK_RDM +SOCK_SEQPACKET +SOCK_STREAM +SOL_AAL +SOL_ALG +SOL_ATM +SOL_BLUETOOTH +SOL_CAIF +SOL_DCCP +SOL_DECNET +SOL_ICMPV6 +SOL_IP +SOL_IPV6 +SOL_IRDA +SOL_IUCV +SOL_KCM +SOL_LLC +SOL_NETBEUI +SOL_NETLINK +SOL_NFC +SOL_PACKET +SOL_PNPIPE +SOL_PPPOL2TP +SOL_RAW +SOL_RDS +SOL_RXRPC +SOL_SOCKET +SOL_TIPC +SOL_TLS +SOL_X25 +SOL_XDP +SOMAXCONN +SO_ACCEPTCONN +SO_ATTACH_BPF +SO_ATTACH_FILTER +SO_ATTACH_REUSEPORT_CBPF +SO_ATTACH_REUSEPORT_EBPF +SO_BINDTODEVICE +SO_BINDTOIFINDEX +SO_BPF_EXTENSIONS +SO_BROADCAST +SO_BSDCOMPAT +SO_BUSY_POLL +SO_BUSY_POLL_BUDGET +SO_CNX_ADVICE +SO_COOKIE +SO_DEBUG +SO_DETACH_BPF +SO_DETACH_FILTER +SO_DETACH_REUSEPORT_BPF +SO_DOMAIN +SO_DONTROUTE +SO_ERROR +SO_GET_FILTER +SO_INCOMING_CPU +SO_INCOMING_NAPI_ID +SO_KEEPALIVE +SO_LINGER +SO_LOCK_FILTER +SO_MARK +SO_MAX_PACING_RATE +SO_MEMINFO +SO_NOFCS +SO_NO_CHECK +SO_OOBINLINE +SO_PASSCRED +SO_PASSSEC +SO_PEEK_OFF +SO_PEERCRED +SO_PEERGROUPS +SO_PEERNAME +SO_PEERSEC +SO_PREFER_BUSY_POLL +SO_PRIORITY +SO_PROTOCOL +SO_RCVBUF +SO_RCVBUFFORCE +SO_RCVLOWAT +SO_RCVTIMEO +SO_RCVTIMEO_OLD +SO_REUSEADDR +SO_REUSEPORT +SO_RXQ_OVFL +SO_SECURITY_AUTHENTICATION +SO_SECURITY_ENCRYPTION_NETWORK +SO_SECURITY_ENCRYPTION_TRANSPORT +SO_SELECT_ERR_QUEUE +SO_SNDBUF +SO_SNDBUFFORCE +SO_SNDLOWAT +SO_SNDTIMEO +SO_SNDTIMEO_OLD +SO_TIMESTAMP +SO_TIMESTAMPING +SO_TIMESTAMPING_OLD +SO_TIMESTAMPNS +SO_TIMESTAMPNS_OLD +SO_TIMESTAMP_OLD +SO_TXTIME +SO_TYPE +SO_WIFI_STATUS +SO_ZEROCOPY +SPLICE_F_GIFT +SPLICE_F_MORE +SPLICE_F_MOVE +SPLICE_F_NONBLOCK +SPLIT +SS +SSIZE_MAX +SST_SIZE +SS_AUTODISARM +SS_DISABLE +SS_FLAG_BITS +SS_ONSTACK +STAR +STATUS +STATX_ALL +STATX_ATIME +STATX_BASIC_STATS +STATX_BLOCKS +STATX_BTIME +STATX_CTIME +STATX_GID +STATX_INO +STATX_MODE +STATX_MTIME +STATX_NLINK +STATX_SIZE +STATX_TYPE +STATX_UID +STA_CLK +STA_CLOCKERR +STA_DEL +STA_FLL +STA_FREQHOLD +STA_INS +STA_MODE +STA_NANO +STA_PLL +STA_PPSERROR +STA_PPSFREQ +STA_PPSJITTER +STA_PPSSIGNAL +STA_PPSTIME +STA_PPSWANDER +STA_RONLY +STA_UNSYNC +STB_GLOBAL +STB_GNU_UNIQUE +STB_HIOS +STB_HIPROC +STB_LOCAL +STB_LOOS +STB_LOPROC +STB_MIPS_SPLIT_COMMON +STB_NUM +STB_WEAK +STDERR_FILENO +STDIN_FILENO +STDOUT_FILENO +STICKY_TIMEOUTS +STN_UNDEF +STO_ALPHA_NOPV +STO_ALPHA_STD_GPLOAD +STO_MIPS_DEFAULT +STO_MIPS_HIDDEN +STO_MIPS_INTERNAL +STO_MIPS_PLT +STO_MIPS_PROTECTED +STO_MIPS_SC_ALIGN_UNUSED +STO_PPC64_LOCAL_BIT +STO_PPC64_LOCAL_MASK +STT_ARM_16BIT +STT_ARM_TFUNC +STT_COMMON +STT_FILE +STT_FUNC +STT_GNU_IFUNC +STT_HIOS +STT_HIPROC +STT_HP_OPAQUE +STT_HP_STUB +STT_LOOS +STT_LOPROC +STT_NOTYPE +STT_NUM +STT_OBJECT +STT_PARISC_MILLICODE +STT_SECTION +STT_SPARC_REGISTER +STT_TLS +STV_DEFAULT +STV_HIDDEN +STV_INTERNAL +STV_PROTECTED +ST_APPEND +ST_IMMUTABLE +ST_MANDLOCK +ST_NOATIME +ST_NODEV +ST_NODIRATIME +ST_NOEXEC +ST_NOSUID +ST_RDONLY +ST_RELATIME +ST_SYNCHRONOUS +ST_WRITE +SUBCMDMASK +SUBCMDSHIFT +SWAP_FLAG_DISCARD +SWAP_FLAG_PREFER +SWAP_FLAG_PRIO_MASK +SWAP_FLAG_PRIO_SHIFT +SYMINFO_BT_LOWRESERVE +SYMINFO_BT_PARENT +SYMINFO_BT_SELF +SYMINFO_CURRENT +SYMINFO_FLG_COPY +SYMINFO_FLG_DIRECT +SYMINFO_FLG_LAZYLOAD +SYMINFO_FLG_PASSTHRU +SYMINFO_NONE +SYMINFO_NUM +SYMLOOP_MAX +SYNC_FILE_RANGE_WAIT_AFTER +SYNC_FILE_RANGE_WAIT_BEFORE +SYNC_FILE_RANGE_WRITE +SYSCALL_DISPATCH_FILTER_ALLOW +SYSCALL_DISPATCH_FILTER_BLOCK +SYSCALL_MMAP2_UNIT +SYSCALL_RLIM_INFINITY +SYS_SECCOMP +SYS_USER_DISPATCH +SYS__sysctl +SYS_accept +SYS_accept4 +SYS_access +SYS_acct +SYS_add_key +SYS_adjtimex +SYS_afs_syscall +SYS_alarm +SYS_arch_prctl +SYS_bind +SYS_bpf +SYS_brk +SYS_cachestat +SYS_capget +SYS_capset +SYS_chdir +SYS_chmod +SYS_chown +SYS_chroot +SYS_clock_adjtime +SYS_clock_getres +SYS_clock_gettime +SYS_clock_nanosleep +SYS_clock_settime +SYS_clone +SYS_clone3 +SYS_close +SYS_close_range +SYS_connect +SYS_copy_file_range +SYS_creat +SYS_create_module +SYS_delete_module +SYS_dup +SYS_dup2 +SYS_dup3 +SYS_epoll_create +SYS_epoll_create1 +SYS_epoll_ctl +SYS_epoll_ctl_old +SYS_epoll_pwait +SYS_epoll_pwait2 +SYS_epoll_wait +SYS_epoll_wait_old +SYS_eventfd +SYS_eventfd2 +SYS_execve +SYS_execveat +SYS_exit +SYS_exit_group +SYS_faccessat +SYS_faccessat2 +SYS_fadvise +SYS_fadvise64 +SYS_fallocate +SYS_fanotify_init +SYS_fanotify_mark +SYS_fchdir +SYS_fchmod +SYS_fchmodat +SYS_fchmodat2 +SYS_fchown +SYS_fchownat +SYS_fcntl +SYS_fdatasync +SYS_fgetxattr +SYS_finit_module +SYS_flistxattr +SYS_flock +SYS_fork +SYS_fremovexattr +SYS_fsconfig +SYS_fsetxattr +SYS_fsmount +SYS_fsopen +SYS_fspick +SYS_fstat +SYS_fstatat +SYS_fstatfs +SYS_fsync +SYS_ftruncate +SYS_futex +SYS_futex_waitv +SYS_futimesat +SYS_get_kernel_syms +SYS_get_mempolicy +SYS_get_robust_list +SYS_get_thread_area +SYS_getcpu +SYS_getcwd +SYS_getdents +SYS_getdents64 +SYS_getegid +SYS_geteuid +SYS_getgid +SYS_getgroups +SYS_getitimer +SYS_getpeername +SYS_getpgid +SYS_getpgrp +SYS_getpid +SYS_getpmsg +SYS_getppid +SYS_getpriority +SYS_getrandom +SYS_getresgid +SYS_getresuid +SYS_getrlimit +SYS_getrusage +SYS_getsid +SYS_getsockname +SYS_getsockopt +SYS_gettid +SYS_gettimeofday +SYS_getuid +SYS_getxattr +SYS_init_module +SYS_inotify_add_watch +SYS_inotify_init +SYS_inotify_init1 +SYS_inotify_rm_watch +SYS_io_cancel +SYS_io_destroy +SYS_io_getevents +SYS_io_pgetevents +SYS_io_setup +SYS_io_submit +SYS_io_uring_enter +SYS_io_uring_register +SYS_io_uring_setup +SYS_ioctl +SYS_ioperm +SYS_iopl +SYS_ioprio_get +SYS_ioprio_set +SYS_kcmp +SYS_kexec_file_load +SYS_kexec_load +SYS_keyctl +SYS_kill +SYS_landlock_add_rule +SYS_landlock_create_ruleset +SYS_landlock_restrict_self +SYS_lchown +SYS_lgetxattr +SYS_link +SYS_linkat +SYS_listen +SYS_listxattr +SYS_llistxattr +SYS_lookup_dcookie +SYS_lremovexattr +SYS_lseek +SYS_lsetxattr +SYS_lstat +SYS_madvise +SYS_mbind +SYS_membarrier +SYS_memfd_create +SYS_memfd_secret +SYS_migrate_pages +SYS_mincore +SYS_mkdir +SYS_mkdirat +SYS_mknod +SYS_mknodat +SYS_mlock +SYS_mlock2 +SYS_mlockall +SYS_mmap +SYS_modify_ldt +SYS_mount +SYS_mount_setattr +SYS_move_mount +SYS_move_pages +SYS_mprotect +SYS_mq_getsetattr +SYS_mq_notify +SYS_mq_open +SYS_mq_timedreceive +SYS_mq_timedsend +SYS_mq_unlink +SYS_mremap +SYS_msgctl +SYS_msgget +SYS_msgrcv +SYS_msgsnd +SYS_msync +SYS_munlock +SYS_munlockall +SYS_munmap +SYS_name_to_handle_at +SYS_nanosleep +SYS_newfstatat +SYS_nfsservctl +SYS_open +SYS_open_by_handle_at +SYS_open_tree +SYS_openat +SYS_openat2 +SYS_pause +SYS_perf_event_open +SYS_personality +SYS_pidfd_getfd +SYS_pidfd_open +SYS_pidfd_send_signal +SYS_pipe +SYS_pipe2 +SYS_pivot_root +SYS_pkey_alloc +SYS_pkey_free +SYS_pkey_mprotect +SYS_poll +SYS_ppoll +SYS_prctl +SYS_pread +SYS_pread64 +SYS_preadv +SYS_preadv2 +SYS_prlimit64 +SYS_process_madvise +SYS_process_mrelease +SYS_process_vm_readv +SYS_process_vm_writev +SYS_pselect6 +SYS_ptrace +SYS_putpmsg +SYS_pwrite +SYS_pwrite64 +SYS_pwritev +SYS_pwritev2 +SYS_query_module +SYS_quotactl +SYS_read +SYS_readahead +SYS_readlink +SYS_readlinkat +SYS_readv +SYS_reboot +SYS_recvfrom +SYS_recvmmsg +SYS_recvmsg +SYS_remap_file_pages +SYS_removexattr +SYS_rename +SYS_renameat +SYS_renameat2 +SYS_request_key +SYS_restart_syscall +SYS_rmdir +SYS_rseq +SYS_rt_sigaction +SYS_rt_sigpending +SYS_rt_sigprocmask +SYS_rt_sigqueueinfo +SYS_rt_sigreturn +SYS_rt_sigsuspend +SYS_rt_sigtimedwait +SYS_rt_tgsigqueueinfo +SYS_sched_get_priority_max +SYS_sched_get_priority_min +SYS_sched_getaffinity +SYS_sched_getattr +SYS_sched_getparam +SYS_sched_getscheduler +SYS_sched_rr_get_interval +SYS_sched_setaffinity +SYS_sched_setattr +SYS_sched_setparam +SYS_sched_setscheduler +SYS_sched_yield +SYS_seccomp +SYS_security +SYS_select +SYS_semctl +SYS_semget +SYS_semop +SYS_semtimedop +SYS_sendfile +SYS_sendmmsg +SYS_sendmsg +SYS_sendto +SYS_set_mempolicy +SYS_set_mempolicy_home_node +SYS_set_robust_list +SYS_set_thread_area +SYS_set_tid_address +SYS_setdomainname +SYS_setfsgid +SYS_setfsuid +SYS_setgid +SYS_setgroups +SYS_sethostname +SYS_setitimer +SYS_setns +SYS_setpgid +SYS_setpriority +SYS_setregid +SYS_setresgid +SYS_setresuid +SYS_setreuid +SYS_setrlimit +SYS_setsid +SYS_setsockopt +SYS_settimeofday +SYS_setuid +SYS_setxattr +SYS_shmat +SYS_shmctl +SYS_shmdt +SYS_shmget +SYS_shutdown +SYS_sigaltstack +SYS_signalfd +SYS_signalfd4 +SYS_socket +SYS_socketpair +SYS_splice +SYS_stat +SYS_statfs +SYS_statx +SYS_swapoff +SYS_swapon +SYS_symlink +SYS_symlinkat +SYS_sync +SYS_sync_file_range +SYS_syncfs +SYS_sysfs +SYS_sysinfo +SYS_syslog +SYS_tee +SYS_tgkill +SYS_time +SYS_timer_create +SYS_timer_delete +SYS_timer_getoverrun +SYS_timer_gettime +SYS_timer_settime +SYS_timerfd_create +SYS_timerfd_gettime +SYS_timerfd_settime +SYS_times +SYS_tkill +SYS_truncate +SYS_tuxcall +SYS_umask +SYS_umount2 +SYS_uname +SYS_unlink +SYS_unlinkat +SYS_unshare +SYS_uselib +SYS_userfaultfd +SYS_ustat +SYS_utime +SYS_utimensat +SYS_utimes +SYS_vfork +SYS_vhangup +SYS_vmsplice +SYS_vserver +SYS_wait4 +SYS_waitid +SYS_write +SYS_writev +S_ADDT +S_IEXEC +S_IFBLK +S_IFCHR +S_IFDIR +S_IFIFO +S_IFLNK +S_IFMT +S_IFREG +S_IFSOCK +S_IREAD +S_IRGRP +S_IROTH +S_IRUSR +S_IRWXG +S_IRWXO +S_IRWXU +S_ISGID +S_ISUID +S_ISVTX +S_IWGRP +S_IWOTH +S_IWRITE +S_IWUSR +S_IXGRP +S_IXOTH +S_IXUSR +S_PREREQ +S_UPDATE +S_ZONE +SetBitFieldPtr16Int16 +SetBitFieldPtr16Int32 +SetBitFieldPtr16Int64 +SetBitFieldPtr16Int8 +SetBitFieldPtr16Uint16 +SetBitFieldPtr16Uint32 +SetBitFieldPtr16Uint64 +SetBitFieldPtr16Uint8 +SetBitFieldPtr32Int16 +SetBitFieldPtr32Int32 +SetBitFieldPtr32Int64 +SetBitFieldPtr32Int8 +SetBitFieldPtr32Uint16 +SetBitFieldPtr32Uint32 +SetBitFieldPtr32Uint64 +SetBitFieldPtr32Uint8 +SetBitFieldPtr64Int16 +SetBitFieldPtr64Int32 +SetBitFieldPtr64Int64 +SetBitFieldPtr64Int8 +SetBitFieldPtr64Uint16 +SetBitFieldPtr64Uint32 +SetBitFieldPtr64Uint64 +SetBitFieldPtr64Uint8 +SetBitFieldPtr8Int16 +SetBitFieldPtr8Int32 +SetBitFieldPtr8Int64 +SetBitFieldPtr8Int8 +SetBitFieldPtr8Uint16 +SetBitFieldPtr8Uint32 +SetBitFieldPtr8Uint64 +SetBitFieldPtr8Uint8 +SetEnviron +StackCapture +Start +TAB0 +TAB1 +TAB2 +TAB3 +TABDLY +TACTION +TAG +TBF_ctx +TBF_key +TBF_word +TBF_word_signed +TCFLSH +TCGETA +TCGETS +TCGETX +TCIFLUSH +TCIOFF +TCIOFLUSH +TCION +TCOFLUSH +TCOOFF +TCOON +TCP_CC_INFO +TCP_CLOSE +TCP_CLOSE_WAIT +TCP_CLOSING +TCP_CM_INQ +TCP_CONGESTION +TCP_CORK +TCP_DEFER_ACCEPT +TCP_ESTABLISHED +TCP_FASTOPEN +TCP_FASTOPEN_CONNECT +TCP_FASTOPEN_KEY +TCP_FASTOPEN_NO_COOKIE +TCP_FIN_WAIT1 +TCP_FIN_WAIT2 +TCP_INFO +TCP_INQ +TCP_KEEPCNT +TCP_KEEPIDLE +TCP_KEEPINTVL +TCP_LAST_ACK +TCP_LINGER2 +TCP_LISTEN +TCP_MAXSEG +TCP_MD5SIG +TCP_MD5SIG_EXT +TCP_NODELAY +TCP_NOTSENT_LOWAT +TCP_QUEUE_SEQ +TCP_QUICKACK +TCP_REPAIR +TCP_REPAIR_OPTIONS +TCP_REPAIR_QUEUE +TCP_REPAIR_WINDOW +TCP_SAVED_SYN +TCP_SAVE_SYN +TCP_SYNCNT +TCP_SYN_RECV +TCP_SYN_SENT +TCP_THIN_DUPACK +TCP_THIN_LINEAR_TIMEOUTS +TCP_TIMESTAMP +TCP_TIME_WAIT +TCP_TX_DELAY +TCP_ULP +TCP_USER_TIMEOUT +TCP_WINDOW_CLAMP +TCP_ZEROCOPY_RECEIVE +TCSADRAIN +TCSAFLUSH +TCSANOW +TCSBRK +TCSBRKP +TCSETA +TCSETAF +TCSETAW +TCSETS +TCSETSF +TCSETSW +TCSETX +TCSETXF +TCSETXW +TCXONC +TDIR +TENTRY +TElf32_Addr +TElf32_Chdr +TElf32_Conflict +TElf32_Dyn +TElf32_Ehdr +TElf32_Half +TElf32_Lib +TElf32_Move +TElf32_Nhdr +TElf32_Off +TElf32_Phdr +TElf32_RegInfo +TElf32_Rel +TElf32_Rela +TElf32_Relr +TElf32_Section +TElf32_Shdr +TElf32_Sword +TElf32_Sxword +TElf32_Sym +TElf32_Syminfo +TElf32_Verdaux +TElf32_Verdef +TElf32_Vernaux +TElf32_Verneed +TElf32_Versym +TElf32_Word +TElf32_Xword +TElf32_auxv_t +TElf32_gptab +TElf64_Addr +TElf64_Chdr +TElf64_Dyn +TElf64_Ehdr +TElf64_Half +TElf64_Lib +TElf64_Move +TElf64_Nhdr +TElf64_Off +TElf64_Phdr +TElf64_Rel +TElf64_Rela +TElf64_Relr +TElf64_Section +TElf64_Shdr +TElf64_Sword +TElf64_Sxword +TElf64_Sym +TElf64_Syminfo +TElf64_Verdaux +TElf64_Verdef +TElf64_Vernaux +TElf64_Verneed +TElf64_Versym +TElf64_Word +TElf64_Xword +TElf64_auxv_t +TElf_MIPS_ABIFlags_v0 +TElf_Options +TElf_Options_Hw +TElf_Symndx +TFD_CLOEXEC +TFD_NONBLOCK +TFD_TIMER_ABSTIME +TFD_TIMER_CANCEL_ON_SET +TFILE +TFTW +THEADER +THOUSEP +THRESH +TIMER_ABSTIME +TIME_BAD +TIME_DEL +TIME_ERROR +TIME_INS +TIME_OK +TIME_OOP +TIME_UTC +TIME_WAIT +TIOCCBRK +TIOCCONS +TIOCEXCL +TIOCGDEV +TIOCGETD +TIOCGEXCL +TIOCGICOUNT +TIOCGISO7816 +TIOCGLCKTRMIOS +TIOCGPGRP +TIOCGPKT +TIOCGPTLCK +TIOCGPTN +TIOCGPTPEER +TIOCGRS485 +TIOCGSERIAL +TIOCGSID +TIOCGSOFTCAR +TIOCGWINSZ +TIOCINQ +TIOCLINUX +TIOCMBIC +TIOCMBIS +TIOCMGET +TIOCMIWAIT +TIOCMSET +TIOCM_CAR +TIOCM_CD +TIOCM_CTS +TIOCM_DSR +TIOCM_DTR +TIOCM_LE +TIOCM_LOOP +TIOCM_OUT1 +TIOCM_OUT2 +TIOCM_RI +TIOCM_RNG +TIOCM_RTS +TIOCM_SR +TIOCM_ST +TIOCNOTTY +TIOCNXCL +TIOCOUTQ +TIOCPKT +TIOCPKT_DATA +TIOCPKT_DOSTOP +TIOCPKT_FLUSHREAD +TIOCPKT_FLUSHWRITE +TIOCPKT_IOCTL +TIOCPKT_NOSTOP +TIOCPKT_START +TIOCPKT_STOP +TIOCSBRK +TIOCSCTTY +TIOCSERCONFIG +TIOCSERGETLSR +TIOCSERGETMULTI +TIOCSERGSTRUCT +TIOCSERGWILD +TIOCSERSETMULTI +TIOCSERSWILD +TIOCSER_TEMT +TIOCSETD +TIOCSIG +TIOCSISO7816 +TIOCSLCKTRMIOS +TIOCSPGRP +TIOCSPTLCK +TIOCSRS485 +TIOCSSERIAL +TIOCSSOFTCAR +TIOCSTI +TIOCSWINSZ +TIOCVHANGUP +TLS +TMP_MAX +TOINT_INTRINSICS +TOSTOP +TP_OFFSET +TRAP_BRANCH +TRAP_BRKPT +TRAP_HWBKPT +TRAP_TRACE +TRAP_UNK +TRE_CHAR_MAX +TRE_MEM_BLOCK_SIZE +TRE_REGEX_T_FIELD +TRY_AGAIN +TTY_NAME_MAX +TVISIT +TWT +TZNAME_MAX +T_A +T_A6 +T_AAAA +T_AFSDB +T_ANY +T_ATMA +T_AVC +T_AXFR +T_CAA +T_CDNSKEY +T_CDS +T_CNAME +T_CSYNC +T_DHCID +T_DLV +T_DNAME +T_DNSKEY +T_DS +T_EID +T_EUI48 +T_EUI64 +T_FMT +T_FMT_AMPM +T_GID +T_GPOS +T_G_fpos64_t +T_HINFO +T_HIP +T_IO_FILE +T_IO_cookie_io_functions_t +T_IPSECKEY +T_ISDN +T_IXFR +T_KEY +T_L32 +T_L64 +T_LOC +T_LP +T_MAILA +T_MAILB +T_MB +T_MD +T_MF +T_MG +T_MINFO +T_MR +T_MX +T_NAPTR +T_NID +T_NIMLOC +T_NINFO +T_NS +T_NSAP +T_NSAP_PTR +T_NSEC +T_NSEC3 +T_NSEC3PARAM +T_NULL +T_NXT +T_OPENPGPKEY +T_PTR +T_PX +T_RKEY +T_RP +T_RRSIG +T_RT +T_SIG +T_SMIMEA +T_SOA +T_SPF +T_SRV +T_SSHFP +T_TA +T_TALINK +T_TKEY +T_TLSA +T_TSIG +T_TXT +T_UID +T_UINFO +T_UNSPEC +T_URI +T_WKS +T_X25 +T_fpstate +T_ns_flagdata +Taddress +Taddrinfo +Taibuf +Targ +Tarpd_request +Tarphdr +Tarpreq +Tarpreq_old +Tbinding +Tblkcnt_t +Tblksize_t +Tcc_t +Tchar16_t +Tchar32_t +Tclock_t +Tclockid_t +Tcmpfun +Tcmsghdr +Tcompiler_defines_long_double_incorrectly +Tcookie +Tcookie1 +Tcookie2 +Tcookie3 +Tcookie4 +Tcookie_FILE +Tcookie_io_functions_t +Tcpu_set_t +Tcpu_set_t1 +Tcrypt_data +Tctx +Tctx1 +Tdev_t +Tdirent +Tdirstream_buf_alignment_check +Tdiv_t +Tdl_phdr_info +Tdouble_t +Tdpc_ctx +Tdqblk +Tdqinfo +Tentry +Tepoll_data +Tepoll_data_t +Tepoll_event +Terrmsgstr_t +Tether_addr +Tether_arp +Tether_header +Tethhdr +Teventfd_t +Texp2f_data +Texp_data +Texpanded_key +Tf_owner_ex +Tfanotify_event_info_fid +Tfanotify_event_info_header +Tfanotify_event_metadata +Tfanotify_response +Tfcookie +Tfd_mask +Tfd_set +Tfdop +Tfenv_t +Tfexcept_t +Tfile_handle +Tfloat_t +Tflock +Tfpos_t +Tfpregset_t +Tfsblkcnt_t +Tfsfilcnt_t +Tfsid_t +Tgid_t +Tglob_t +Tgreg_t +Tgregset_t +Tgroup +Tgroup_filter +Tgroup_req +Tgroup_source_req +Thistory +Thostent +Thsearch_data +Ticonv_t +Tid_t +Tidtype_t +Tif_nameindex +Tifaddr +Tifaddrmsg +Tifaddrs +Tifaddrs_ctx +Tifaddrs_storage +Tifconf +Tifinfomsg +Tifmap +Tifnameindexctx +Tifnamemap +Tifreq +Timaxdiv_t +Tin6_addr +Tin6_pktinfo +Tin_addr +Tin_addr_t +Tin_pktinfo +Tin_port_t +Tino_t +Tinotify_event +Tint16_t +Tint32_t +Tint64_t +Tint8_t +Tint_fast16_t +Tint_fast32_t +Tint_fast64_t +Tint_fast8_t +Tint_least16_t +Tint_least32_t +Tint_least64_t +Tint_least8_t +Tintmax_t +Tintptr_t +Tioctl_compat_map +Tiovec +Tip6_mtuinfo +Tip_mreq +Tip_mreq_source +Tip_mreqn +Tip_msfilter +Tip_opts +Tipc_perm +Tipc_perm1 +Tipv6_mreq +Titimerspec +Titimerval +Tjmp_buf +Tk_sigaction +Tkey_t +Tkstat +Tktimex +Tktimex64 +Tlastlog +Tlconv +Tldiv_t +Tlinger +Tlink_map +Tliterals +Tlldiv_t +Tlocale_t +Tlog2_data +Tlog2f_data +Tlog_data +Tlogf_data +Tmatch +Tmbstate_t +Tmcontext_t +Tmcontext_t1 +Tmd5 +Tmem_FILE +Tmmsghdr +Tmntent +Tmode_t +Tms_FILE +Tmsgcat +Tmsghdr +Tmsginfo +Tmsglen_t +Tmsgqnum_t +Tmsqid_ds +Tneg +Tnetent +Tnfds_t +Tnl_catd +Tnl_item +Tnlink_t +Tnlmsghdr +Tnode +Tnode1 +Tns_cert_types +Tns_class +Tns_flag +Tns_key_types +Tns_msg +Tns_opcode +Tns_rcode +Tns_rr +Tns_sect +Tns_tcp_tsig_state +Tns_tcp_tsig_state1 +Tns_tsig_key +Tns_tsig_key1 +Tns_type +Tns_update_operation +Tntptimeval +Tnum +Toff_t +Toption +Tpasswd +Tpid_t +Tpolicy +Tpollfd +Tposix_spawn_file_actions_t +Tposix_spawnattr_t +Tpow_log_data +Tpowf_log2_data +Tprctl_mm_map +Tprotoent +Tpthread_attr_t +Tpthread_barrier_t +Tpthread_barrierattr_t +Tpthread_cond_t +Tpthread_condattr_t +Tpthread_key_t +Tpthread_mutex_t +Tpthread_mutexattr_t +Tpthread_once_t +Tpthread_rwlock_t +Tpthread_rwlockattr_t +Tpthread_spinlock_t +Tpthread_t +Tptrdiff_t +Tqelem +Tr_debug +Tre_pattern_buffer +Treg_errcode_t +Tregex_t +Tregmatch_t +Tregoff_t +Tres_state +Tres_sym +Tresolvconf +Trlim_t +Trlimit +Trtattr +Trtgenmsg +Trusage +Tsa +Tsa_family_t +Tsched_param +Tsembuf +Tsemid_ds +Tsemid_ds1 +Tseminfo +Tsemun +Tservent +Tservice +Tsha256 +Tsha512 +Tshm_info +Tshmatt_t +Tshmid_ds +Tshminfo +Tsig_atomic_t +Tsig_t +Tsigaction +Tsigaltstack +Tsigcontext +Tsigevent +Tsighandler_t +Tsiginfo_t +Tsigjmp_buf +Tsignalfd_siginfo +Tsigset_t +Tsigval +Tsize_t +Tsockaddr +Tsockaddr_in +Tsockaddr_in6 +Tsockaddr_ll_hack +Tsockaddr_storage +Tsockany +Tsocklen_t +Tspeed_t +Tspwd +Tssize_t +Tst +Tstack_t +Tstat +Tstateful_cd +Tstatfs +Tstatvfs +Tstatx +Tstatx1 +Tstatx_timestamp +Tsuseconds_t +Tsyscall_arg_t +Tsysinfo +Ttcflag_t +Ttermios +Ttime_t +Ttimeb +Ttimer_t +Ttimespec +Ttimeval +Ttimex +Ttimezone +Ttls_module +Ttm +Ttm1 +Ttms +Ttnfa +Ttnfa_transition +Ttre_addtags_symbol_t +Ttre_ast_node_t +Ttre_ast_type_t +Ttre_backtrack_item_t +Ttre_backtrack_struct +Ttre_backtrack_t +Ttre_catenation_t +Ttre_char_t +Ttre_cint_t +Ttre_copyast_symbol_t +Ttre_ctype_t +Ttre_expand_ast_symbol_t +Ttre_iteration_t +Ttre_list +Ttre_list_t +Ttre_literal_t +Ttre_mem_struct +Ttre_mem_t +Ttre_nfl_stack_symbol_t +Ttre_parse_ctx_t +Ttre_pos_and_tags_t +Ttre_reach_pos_t +Ttre_stack_item +Ttre_stack_rec +Ttre_stack_t +Ttre_submatch_data +Ttre_submatch_data_t +Ttre_tag_direction_t +Ttre_tag_states_t +Ttre_tnfa_reach_t +Ttre_tnfa_t +Ttre_tnfa_transition_t +Ttre_union_t +Tucontext +Tucontext_t +Tucontext_t1 +Tucontext_t2 +Tucontext_t3 +Tucontext_t4 +Tucontext_t5 +Tucontext_t6 +Tucontext_t7 +Tucred +Tuid_t +Tuint16_t +Tuint32_t +Tuint64_t +Tuint8_t +Tuint_fast16_t +Tuint_fast32_t +Tuint_fast64_t +Tuint_fast8_t +Tuint_least16_t +Tuint_least32_t +Tuint_least64_t +Tuint_least8_t +Tuintmax_t +Tuintptr_t +Tuseconds_t +Tutimbuf +Tutmpx +Tutsname +Tutsname1 +Tv4l2_event +Tva_list +Twchar_t +Twctrans_t +Twctype_t +Twinsize +Twint_t +Twms_FILE +UCHAR_MAX +UCS2 +UCS2BE +UCS2LE +UINT16_MAX +UINT32_MAX +UINT64_MAX +UINT8_MAX +UINTMAX_MAX +UINTPTR_MAX +UINT_FAST16_MAX +UINT_FAST32_MAX +UINT_FAST64_MAX +UINT_FAST8_MAX +UINT_LEAST16_MAX +UINT_LEAST32_MAX +UINT_LEAST64_MAX +UINT_LEAST8_MAX +UINT_MAX +UIO_MAXIOV +ULLONG_MAX +ULONG_MAX +UMOUNT_NOFOLLOW +UNAME26 +UNGET +UNIT +UNMATCHABLE +USER_PROCESS +USHRT_MAX +USRQUOTA +US_ASCII +UTF8_LOCALE +UTF_16 +UTF_16BE +UTF_16LE +UTF_32 +UTF_32BE +UTF_32LE +UTF_8 +UTIME_NOW +UTIME_OMIT +UTMP_FILE +UTMP_FILENAME +UT_HOSTSIZE +UT_LINESIZE +UT_NAMESIZE +Uint128 +Uint128FromFloat32 +Uint128FromFloat64 +Uint128FromInt128 +Uint128FromInt16 +Uint128FromInt32 +Uint128FromInt64 +Uint128FromInt8 +Uint128FromUint16 +Uint128FromUint32 +Uint128FromUint64 +Uint128FromUint8 +Uint16 +Uint16FromComplex128 +Uint16FromComplex64 +Uint16FromFloat32 +Uint16FromFloat64 +Uint16FromInt16 +Uint16FromInt32 +Uint16FromInt64 +Uint16FromInt8 +Uint16FromUint16 +Uint16FromUint32 +Uint16FromUint64 +Uint16FromUint8 +Uint16FromUintptr +Uint32 +Uint32FromComplex128 +Uint32FromComplex64 +Uint32FromFloat32 +Uint32FromFloat64 +Uint32FromInt16 +Uint32FromInt32 +Uint32FromInt64 +Uint32FromInt8 +Uint32FromUint16 +Uint32FromUint32 +Uint32FromUint64 +Uint32FromUint8 +Uint32FromUintptr +Uint64 +Uint64FromComplex128 +Uint64FromComplex64 +Uint64FromFloat32 +Uint64FromFloat64 +Uint64FromInt16 +Uint64FromInt32 +Uint64FromInt64 +Uint64FromInt8 +Uint64FromUint16 +Uint64FromUint32 +Uint64FromUint64 +Uint64FromUint8 +Uint64FromUintptr +Uint8 +Uint8FromComplex128 +Uint8FromComplex64 +Uint8FromFloat32 +Uint8FromFloat64 +Uint8FromInt16 +Uint8FromInt32 +Uint8FromInt64 +Uint8FromInt8 +Uint8FromUint16 +Uint8FromUint32 +Uint8FromUint64 +Uint8FromUint8 +Uint8FromUintptr +Uintptr +UintptrFromComplex128 +UintptrFromComplex64 +UintptrFromFloat32 +UintptrFromFloat64 +UintptrFromInt16 +UintptrFromInt32 +UintptrFromInt64 +UintptrFromInt8 +UintptrFromUint16 +UintptrFromUint32 +UintptrFromUint64 +UintptrFromUint8 +UintptrFromUintptr +UsableSize +VDISCARD +VEOF +VEOL +VEOL2 +VER +VERASE +VERSION +VER_DEF_CURRENT +VER_DEF_NONE +VER_DEF_NUM +VER_FLG_BASE +VER_FLG_WEAK +VER_NDX_ELIMINATE +VER_NDX_GLOBAL +VER_NDX_LOCAL +VER_NDX_LORESERVE +VER_NEED_CURRENT +VER_NEED_NONE +VER_NEED_NUM +VINTR +VKILL +VLNEXT +VMIN +VQUIT +VREPRINT +VSTART +VSTOP +VSUSP +VSWTC +VT0 +VT1 +VTDLY +VTIME +VWERASE +VaFloat32 +VaFloat64 +VaInt32 +VaInt64 +VaList +VaOther +VaUint32 +VaUint64 +VaUintptr +W +WANT_ROUNDING +WANT_SNAN +WCHAR_MAX +WCHAR_MIN +WCHAR_T +WCONTINUED +WCTYPE_ALNUM +WCTYPE_ALPHA +WCTYPE_BLANK +WCTYPE_CNTRL +WCTYPE_DIGIT +WCTYPE_GRAPH +WCTYPE_LOWER +WCTYPE_PRINT +WCTYPE_PUNCT +WCTYPE_SPACE +WCTYPE_UPPER +WCTYPE_XDIGIT +WEOF +WEXITED +WHOLE_SECONDS +WINT_MAX +WINT_MIN +WNOHANG +WNOWAIT +WORD_BIT +WR +WS +WSTOPPED +WTMP_FILE +WTMP_FILENAME +WUNTRACED +W_OK +Watch +WatchDelete +WatchFloat32 +WatchFloat64 +WatchInt16 +WatchInt32 +WatchInt64 +WatchInt8 +WatchPtr +WatchUint16 +WatchUint32 +WatchUint64 +WatchUint8 +XATTR_CREATE +XATTR_REPLACE +XCASE +XTABS +X_Exit +X_IO_putc +X_OK +X___errno_location +X__abort_lock +X__aio_close +X__assert_fail +X__at_quick_exit_lockptr +X__atexit_lockptr +X__block_all_sigs +X__block_app_sigs +X__builtin___memcpy_chk +X__builtin___memmove_chk +X__builtin___memset_chk +X__builtin___snprintf_chk +X__builtin___sprintf_chk +X__builtin___strcat_chk +X__builtin___strcpy_chk +X__builtin___strncpy_chk +X__builtin___vsnprintf_chk +X__builtin_abort +X__builtin_abs +X__builtin_add_overflowInt64 +X__builtin_add_overflowUint32 +X__builtin_add_overflowUint64 +X__builtin_alloca +X__builtin_bswap16 +X__builtin_bswap32 +X__builtin_bswap64 +X__builtin_bzero +X__builtin_clz +X__builtin_clzl +X__builtin_clzll +X__builtin_constant_p_impl +X__builtin_copysign +X__builtin_copysignf +X__builtin_copysignl +X__builtin_exit +X__builtin_expect +X__builtin_fabs +X__builtin_fabsf +X__builtin_fabsl +X__builtin_ffs +X__builtin_fma +X__builtin_free +X__builtin_getentropy +X__builtin_huge_val +X__builtin_huge_valf +X__builtin_inf +X__builtin_inff +X__builtin_infl +X__builtin_isblank +X__builtin_isnan +X__builtin_isnanf +X__builtin_isnanl +X__builtin_isprint +X__builtin_isunordered +X__builtin_llabs +X__builtin_log2 +X__builtin_lrint +X__builtin_lrintf +X__builtin_malloc +X__builtin_memcmp +X__builtin_memcpy +X__builtin_memset +X__builtin_mmap +X__builtin_mul_overflowInt64 +X__builtin_mul_overflowUint128 +X__builtin_mul_overflowUint64 +X__builtin_nan +X__builtin_nanf +X__builtin_nanl +X__builtin_object_size +X__builtin_popcount +X__builtin_popcountl +X__builtin_popcountll +X__builtin_prefetch +X__builtin_printf +X__builtin_rintf +X__builtin_round +X__builtin_snprintf +X__builtin_sprintf +X__builtin_strchr +X__builtin_strcmp +X__builtin_strcpy +X__builtin_strlen +X__builtin_sub_overflowInt64 +X__builtin_trap +X__builtin_unreachable +X__builtin_vsnprintf +X__bump_lockptr +X__c_dot_utf8 +X__c_dot_utf8_locale +X__c_locale +X__ccgo_dmesg +X__ccgo_getMutexType +X__ccgo_in6addr_anyp +X__ccgo_pthreadAttrGetDetachState +X__ccgo_pthreadMutexattrGettype +X__ccgo_sqlite3_log +X__cmsg_nxthdr +X__convert_scm_timestamps +X__cos +X__cosdf +X__crypt_blowfish +X__crypt_des +X__crypt_md5 +X__crypt_sha256 +X__crypt_sha512 +X__ctype_b_loc +X__ctype_get_mb_cur_max +X__ctype_tolower_loc +X__ctype_toupper_loc +X__des_setkey +X__dns_parse +X__do_des +X__do_orphaned_stdio_locks +X__eintr_valid_flag +X__env_rm_add +X__errno_location +X__exp2f_data +X__exp_data +X__expo2 +X__expo2f +X__fbufsize +X__fclose_ca +X__fesetround +X__flbf +X__floatscan +X__fmodeflags +X__fopen_rb_ca +X__fpclassify +X__fpclassifyf +X__fpclassifyl +X__fpending +X__fpurge +X__freadable +X__freadahead +X__freading +X__freadptr +X__freadptrinc +X__freelocale +X__fseeko_unlocked +X__fseterr +X__fsetlocking +X__fsmu8 +X__ftello_unlocked +X__funcs_on_quick_exit +X__fwritable +X__fwritex +X__fwriting +X__fxstat +X__fxstatat +X__get_handler_set +X__get_locale +X__get_resolv_conf +X__getdelim +X__getgr_a +X__getgrent_a +X__getopt_msg +X__getpw_a +X__getpwent_a +X__gettext_lockptr +X__gettextdomain +X__h_errno_location +X__hwcap +X__inet_aton +X__init_ssp +X__intscan +X__isalnum_l +X__isalpha_l +X__isdigit_l +X__islower_l +X__isnan +X__isnanf +X__isnanl +X__isoc99_fscanf +X__isoc99_fwscanf +X__isoc99_scanf +X__isoc99_sscanf +X__isoc99_swscanf +X__isoc99_vfscanf +X__isoc99_vfwscanf +X__isoc99_vscanf +X__isoc99_vsscanf +X__isoc99_vswscanf +X__isoc99_vwscanf +X__isoc99_wscanf +X__isprint_l +X__isupper_l +X__isxdigit_l +X__lctrans +X__lctrans_cur +X__lctrans_impl +X__ldexp_cexp +X__ldexp_cexpf +X__libc +X__libc_current_sigrtmax +X__libc_current_sigrtmin +X__libc_sigaction +X__libc_version +X__loc_is_allocated +X__locale_lock +X__locale_lockptr +X__lockfile +X__log2_data +X__log2f_data +X__log_data +X__logf_data +X__lookup_ipliteral +X__lookup_name +X__lookup_serv +X__lxstat +X__map_file +X__math_divzero +X__math_divzerof +X__math_invalid +X__math_invalidf +X__math_oflow +X__math_oflowf +X__math_uflow +X__math_uflowf +X__math_xflow +X__math_xflowf +X__mo_lookup +X__month_to_secs +X__nscd_query +X__ofl_add +X__ofl_lock +X__ofl_unlock +X__optpos +X__overflow +X__pleval +X__posix_getopt +X__pow_log_data +X__powf_log2_data +X__procfdname +X__putenv +X__rand48_step +X__random_lockptr +X__register_locked_file +X__rem_pio2 +X__rem_pio2_large +X__rem_pio2f +X__res_msend +X__res_msend_rc +X__res_state +X__reset_tls +X__restore +X__restore_rt +X__restore_sigs +X__rsqrt_tab +X__rtnetlink_enumerate +X__secs_to_tm +X__secs_to_zone +X__seed48 +X__sem_open_lockptr +X__shgetc +X__shlim +X__shm_mapname +X__signbit +X__signbitf +X__signbitl +X__sigsetjmp_tail +X__sin +X__sindf +X__stack_chk_fail_local +X__stack_chk_guard +X__stderr_FILE +X__stderr_used +X__stdin_FILE +X__stdin_used +X__stdio_close +X__stdio_exit_needed +X__stdio_ofl_lockptr +X__stdio_read +X__stdio_seek +X__stdio_write +X__stdout_FILE +X__stdout_used +X__stdout_write +X__strftime_fmt_1 +X__strncasecmp_l +X__strtod_l +X__strtof_l +X__strtold_l +X__sync_add_and_fetch_uint32 +X__sync_sub_and_fetch_uint32 +X__sync_synchronize +X__syscall0 +X__syscall1 +X__syscall2 +X__syscall3 +X__syscall4 +X__syscall5 +X__syscall6 +X__syscall_ret +X__sysinfo +X__syslog_lockptr +X__tan +X__tandf +X__timezone_lockptr +X__tm_to_secs +X__tm_to_tzname +X__toread +X__toread_needs_stdio_exit +X__towrite +X__towrite_needs_stdio_exit +X__tre_mem_alloc_impl +X__tre_mem_destroy +X__tre_mem_new_impl +X__tsearch_balance +X__uflow +X__unlist_locked_file +X__unlockfile +X__utc +X__vm_wait +X__xmknod +X__xmknodat +X__xpg_basename +X__xpg_strerror_r +X__xstat +X__year_to_secs +X_exit +X_flushlbf +X_longjmp +X_ns_flagdata +X_obstack_begin +X_obstack_newchunk +X_pthread_cleanup_pop +X_pthread_cleanup_push +X_setjmp +Xa64l +Xabort +Xabs +Xaccept +Xaccept4 +Xaccess +Xacct +Xacos +Xacosf +Xacosh +Xacoshf +Xacoshl +Xacosl +Xaddmntent +Xadjtime +Xadjtimex +Xalarm +Xalloca +Xalphasort +Xarch_prctl +Xasctime +Xasctime_r +Xasin +Xasinf +Xasinh +Xasinhf +Xasinhl +Xasinl +Xasprintf +Xat_quick_exit +Xatan +Xatan2 +Xatan2f +Xatan2l +Xatanf +Xatanh +Xatanhf +Xatanhl +Xatanl +Xatexit +Xatof +Xatoi +Xatol +Xatoll +Xbacktrace +Xbacktrace_symbols_fd +Xbcmp +Xbcopy +Xbind +Xbind_textdomain_codeset +Xbindtextdomain +Xbrk +Xbsearch +Xbtowc +Xbzero +Xc16rtomb +Xc32rtomb +Xcabs +Xcabsf +Xcabsl +Xcacos +Xcacosf +Xcacosh +Xcacoshf +Xcacoshl +Xcacosl +Xcalloc +Xcapget +Xcapset +Xcarg +Xcargf +Xcargl +Xcasin +Xcasinf +Xcasinh +Xcasinhf +Xcasinhl +Xcasinl +Xcatan +Xcatanf +Xcatanh +Xcatanhf +Xcatanhl +Xcatanl +Xcatclose +Xcatgets +Xcatopen +Xcbrt +Xcbrtf +Xcbrtl +Xccos +Xccosf +Xccosh +Xccoshf +Xccoshl +Xccosl +Xceil +Xceilf +Xceill +Xcexp +Xcexpf +Xcexpl +Xcfgetispeed +Xcfgetospeed +Xcfmakeraw +Xcfsetispeed +Xcfsetospeed +Xcfsetspeed +Xchdir +Xchmod +Xchown +Xchroot +Xcimag +Xcimagf +Xcimagl +Xclearenv +Xclearerr_unlocked +Xclock +Xclock_adjtime +Xclock_getcpuclockid +Xclock_getres +Xclock_gettime +Xclock_nanosleep +Xclock_settime +Xclog +Xclogf +Xclogl +Xclose +Xclosedir +Xcloselog +Xconfstr +Xconj +Xconjf +Xconjl +Xconnect +Xcopy_file_range +Xcopysign +Xcopysignf +Xcopysignl +Xcos +Xcosf +Xcosh +Xcoshf +Xcoshl +Xcosl +Xcpow +Xcpowf +Xcpowl +Xcproj +Xcprojf +Xcprojl +Xcreal +Xcrealf +Xcreall +Xcreat +Xcrypt +Xcrypt_r +Xcsin +Xcsinf +Xcsinh +Xcsinhf +Xcsinhl +Xcsinl +Xcsqrt +Xcsqrtf +Xcsqrtl +Xctan +Xctanf +Xctanh +Xctanhf +Xctanhl +Xctanl +Xctermid +Xctime +Xctime_r +Xdaylight +Xdcgettext +Xdcngettext +Xdelete_module +Xdgettext +Xdifftime +Xdirfd +Xdirname +Xdiv +Xdlclose +Xdlerror +Xdlopen +Xdlsym +Xdn_comp +Xdn_expand +Xdn_skipname +Xdngettext +Xdprintf +Xdrand48 +Xdrem +Xdremf +Xdup +Xdup2 +Xdup3 +Xduplocale +Xecvt +Xencrypt +Xendgrent +Xendmntent +Xendnetent +Xendprotoent +Xendpwent +Xendservent +Xendspent +Xenviron +Xepoll_create +Xepoll_create1 +Xepoll_ctl +Xepoll_pwait +Xepoll_wait +Xerand48 +Xerf +Xerfc +Xerfcf +Xerfcl +Xerff +Xerfl +Xether_aton +Xether_aton_r +Xether_hostton +Xether_line +Xether_ntoa +Xether_ntoa_r +Xether_ntohost +Xeventfd +Xeventfd_read +Xeventfd_write +Xexecl +Xexecle +Xexeclp +Xexecv +Xexecve +Xexecvp +Xexecvpe +Xexit +Xexp +Xexp2 +Xexp2f +Xexp2l +Xexpf +Xexpl +Xexplicit_bzero +Xexpm1 +Xexpm1f +Xexpm1l +Xfabs +Xfabsf +Xfabsl +Xfaccessat +Xfallocate +Xfanotify_init +Xfanotify_mark +Xfchdir +Xfchmod +Xfchmodat +Xfchown +Xfchownat +Xfclose +Xfcntl +Xfcntl64 +Xfcvt +Xfdatasync +Xfdim +Xfdimf +Xfdiml +Xfdopen +Xfdopendir +Xfeclearexcept +Xfegetenv +Xfegetround +Xfeof +Xfeof_unlocked +Xferaiseexcept +Xferror +Xferror_unlocked +Xfesetenv +Xfetestexcept +Xfexecve +Xfflush +Xfflush_unlocked +Xffs +Xffsl +Xffsll +Xfgetc +Xfgetc_unlocked +Xfgetgrent +Xfgetln +Xfgetpos +Xfgetpwent +Xfgets +Xfgets_unlocked +Xfgetwc +Xfgetwc_unlocked +Xfgetws_unlocked +Xfgetxattr +Xfileno +Xfileno_unlocked +Xfinite +Xfinitef +Xflistxattr +Xflock +Xflockfile +Xfloor +Xfloorf +Xfloorl +Xfma +Xfmal +Xfmax +Xfmaxf +Xfmaxl +Xfmemopen +Xfmin +Xfminf +Xfminl +Xfmod +Xfmodf +Xfmodl +Xfmtmsg +Xfnmatch +Xfopen +Xfopen64 +Xfopencookie +Xfork +Xfpathconf +Xfprintf +Xfpurge +Xfputc +Xfputc_unlocked +Xfputs +Xfputs_unlocked +Xfputwc +Xfputwc_unlocked +Xfputws_unlocked +Xfread +Xfread_unlocked +Xfree +Xfreeaddrinfo +Xfreeifaddrs +Xfremovexattr +Xfreopen +Xfrexp +Xfrexpf +Xfrexpl +Xfscanf +Xfseek +Xfseeko +Xfsetpos +Xfsetxattr +Xfstat +Xfstat64 +Xfstatat +Xfstatfs +Xfstatvfs +Xfsync +Xftell +Xftello +Xftime +Xftok +Xftruncate +Xftruncate64 +Xftrylockfile +Xfts64_close +Xfts64_open +Xfts64_read +Xfts_close +Xfts_open +Xfts_read +Xfunlockfile +Xfutimens +Xfutimesat +Xfwide +Xfwprintf +Xfwrite +Xfwrite_unlocked +Xgai_strerror +Xgcvt +Xget_avphys_pages +Xget_current_dir_name +Xget_nprocs +Xget_nprocs_conf +Xget_phys_pages +Xgetaddrinfo +Xgetauxval +Xgetc +Xgetchar +Xgetchar_unlocked +Xgetcwd +Xgetdate +Xgetdate_err +Xgetdents +Xgetdomainname +Xgetegid +Xgetentropy +Xgetenv +Xgeteuid +Xgetgid +Xgetgrent +Xgetgrgid +Xgetgrgid_r +Xgetgrnam +Xgetgrnam_r +Xgetgrouplist +Xgetgroups +Xgethostbyaddr +Xgethostbyaddr_r +Xgethostbyname +Xgethostbyname2 +Xgethostbyname2_r +Xgethostbyname_r +Xgethostent +Xgethostid +Xgethostname +Xgetifaddrs +Xgetitimer +Xgetline +Xgetlogin +Xgetlogin_r +Xgetmntent +Xgetmntent_r +Xgetnameinfo +Xgetnetbyaddr +Xgetnetbyname +Xgetnetent +Xgetopt +Xgetopt_long +Xgetopt_long_only +Xgetpagesize +Xgetpeername +Xgetpgid +Xgetpgrp +Xgetpid +Xgetppid +Xgetpriority +Xgetprotobyname +Xgetprotobynumber +Xgetprotoent +Xgetpwent +Xgetpwnam +Xgetpwnam_r +Xgetpwuid +Xgetpwuid_r +Xgetrandom +Xgetresgid +Xgetresuid +Xgetrlimit +Xgetrlimit64 +Xgetrusage +Xgets +Xgetservbyname +Xgetservbyname_r +Xgetservent +Xgetsid +Xgetsockname +Xgetsockopt +Xgetspent +Xgetsubopt +Xgettext +Xgettimeofday +Xgetuid +Xgetw +Xgetwc +Xgetwchar_unlocked +Xgetxattr +Xglob +Xglobfree +Xgmtime +Xgmtime_r +Xgrantpt +Xh_errno +Xhasmntopt +Xhcreate +Xhdestroy +Xherror +Xhsearch +Xhstrerror +Xhtonl +Xhtons +Xhypot +Xhypotf +Xhypotl +Xiconv +Xiconv_close +Xiconv_open +Xif_freenameindex +Xif_indextoname +Xif_nameindex +Xif_nametoindex +Xilogb +Xilogbf +Xilogbl +Ximaxabs +Ximaxdiv +Xin6addr_any +Xin6addr_loopback +Xindex +Xinet_addr +Xinet_aton +Xinet_lnaof +Xinet_makeaddr +Xinet_netof +Xinet_network +Xinet_ntoa +Xinet_ntop +Xinet_pton +Xinit_module +Xinitstate +Xinitstate_r +Xinotify_add_watch +Xinotify_init +Xinotify_init1 +Xinotify_rm_watch +Xinsque +Xioctl +Xioperm +Xiopl +Xisalnum +Xisalnum_l +Xisalpha +Xisalpha_l +Xisascii +Xisatty +Xisblank +Xisblank_l +Xiscntrl +Xiscntrl_l +Xisdigit +Xisdigit_l +Xisgraph +Xisgraph_l +Xislower +Xislower_l +Xisnan +Xisnanf +Xisnanl +Xisprint +Xisprint_l +Xispunct +Xispunct_l +Xissetugid +Xisspace +Xisspace_l +Xisupper +Xisupper_l +Xiswalnum +Xiswalnum_l +Xiswalpha +Xiswalpha_l +Xiswblank +Xiswblank_l +Xiswcntrl +Xiswcntrl_l +Xiswctype +Xiswctype_l +Xiswdigit +Xiswdigit_l +Xiswgraph +Xiswgraph_l +Xiswlower +Xiswlower_l +Xiswprint +Xiswprint_l +Xiswpunct +Xiswpunct_l +Xiswspace +Xiswspace_l +Xiswupper +Xiswupper_l +Xiswxdigit +Xiswxdigit_l +Xisxdigit +Xisxdigit_l +Xj0 +Xj0f +Xj1 +Xj1f +Xjn +Xjnf +Xjrand48 +Xkill +Xkillpg +Xklogctl +Xl64a +Xlabs +Xlchmod +Xlchown +Xlckpwdf +Xlcong48 +Xldexp +Xldexpf +Xldexpl +Xldiv +Xlfind +Xlgamma +Xlgamma_r +Xlgammaf +Xlgammaf_r +Xlgammal +Xlgammal_r +Xlgetxattr +Xlink +Xlinkat +Xlisten +Xlistxattr +Xllabs +Xlldiv +Xllistxattr +Xllrint +Xllrintf +Xllrintl +Xllround +Xllroundf +Xllroundl +Xlocaleconv +Xlocaltime +Xlocaltime_r +Xlockf +Xlog +Xlog10 +Xlog10f +Xlog10l +Xlog1p +Xlog1pf +Xlog1pl +Xlog2 +Xlog2f +Xlog2l +Xlogb +Xlogbf +Xlogbl +Xlogf +Xlogin_tty +Xlogl +Xlongjmp +Xlrand48 +Xlremovexattr +Xlrint +Xlrintf +Xlrintl +Xlround +Xlroundf +Xlroundl +Xlsearch +Xlseek +Xlseek64 +Xlsetxattr +Xlstat +Xlstat64 +Xmadvise +Xmalloc +Xmalloc_usable_size +Xmblen +Xmbrlen +Xmbrtoc16 +Xmbrtoc32 +Xmbrtowc +Xmbsinit +Xmbsnrtowcs +Xmbsrtowcs +Xmbstowcs +Xmbtowc +Xmemccpy +Xmemchr +Xmemcmp +Xmemcpy +Xmemfd_create +Xmemmem +Xmemmove +Xmempcpy +Xmemrchr +Xmemset +Xmincore +Xmkdir +Xmkdirat +Xmkdtemp +Xmkfifo +Xmkfifoat +Xmknod +Xmknodat +Xmkostemp +Xmkostemps +Xmkstemp +Xmkstemp64 +Xmkstemps +Xmkstemps64 +Xmktemp +Xmktime +Xmlock +Xmlock2 +Xmlockall +Xmmap +Xmmap64 +Xmodf +Xmodff +Xmodfl +Xmount +Xmprotect +Xmrand48 +Xmremap +Xmsgctl +Xmsgget +Xmsgrcv +Xmsgsnd +Xmsync +Xmunlock +Xmunlockall +Xmunmap +Xname_to_handle_at +Xnan +Xnanf +Xnanl +Xnanosleep +Xnewlocale +Xnextafter +Xnextafterf +Xnextafterl +Xnexttoward +Xnexttowardf +Xnexttowardl +Xnftw +Xngettext +Xnice +Xnl_langinfo +Xnl_langinfo_l +Xnrand48 +Xns_get16 +Xns_get32 +Xns_initparse +Xns_name_uncompress +Xns_parserr +Xns_put16 +Xns_put32 +Xns_skiprr +Xntohl +Xntohs +Xobstack_free +Xobstack_vprintf +Xopen +Xopen64 +Xopen_by_handle_at +Xopen_memstream +Xopen_wmemstream +Xopenat +Xopendir +Xopenlog +Xopenpty +Xoptarg +Xopterr +Xoptind +Xoptopt +Xoptreset +Xpathconf +Xpause +Xpclose +Xperror +Xpersonality +Xpipe +Xpipe2 +Xpivot_root +Xpoll +Xpopen +Xposix_close +Xposix_fadvise +Xposix_fallocate +Xposix_madvise +Xposix_openpt +Xposix_spawn_file_actions_addchdir_np +Xposix_spawn_file_actions_addclose +Xposix_spawn_file_actions_adddup2 +Xposix_spawn_file_actions_addfchdir_np +Xposix_spawn_file_actions_addopen +Xposix_spawn_file_actions_destroy +Xposix_spawn_file_actions_init +Xposix_spawnattr_destroy +Xposix_spawnattr_getflags +Xposix_spawnattr_getpgroup +Xposix_spawnattr_getschedparam +Xposix_spawnattr_getschedpolicy +Xposix_spawnattr_getsigdefault +Xposix_spawnattr_getsigmask +Xposix_spawnattr_init +Xposix_spawnattr_setflags +Xposix_spawnattr_setpgroup +Xposix_spawnattr_setschedparam +Xposix_spawnattr_setschedpolicy +Xposix_spawnattr_setsigdefault +Xposix_spawnattr_setsigmask +Xpow +Xpow10 +Xpow10f +Xpow10l +Xpowf +Xpowl +Xppoll +Xprctl +Xpread +Xpreadv +Xpreadv2 +Xprintf +Xprlimit +Xprocess_vm_readv +Xprocess_vm_writev +Xprogram_invocation_name +Xprogram_invocation_short_name +Xpselect +Xpsiginfo +Xpsignal +Xpthread_atfork +Xpthread_attr_destroy +Xpthread_attr_getdetachstate +Xpthread_attr_init +Xpthread_attr_setdetachstate +Xpthread_attr_setscope +Xpthread_attr_setstacksize +Xpthread_cleanup_pop +Xpthread_cleanup_push +Xpthread_cond_broadcast +Xpthread_cond_destroy +Xpthread_cond_init +Xpthread_cond_signal +Xpthread_cond_timedwait +Xpthread_cond_wait +Xpthread_create +Xpthread_detach +Xpthread_equal +Xpthread_exit +Xpthread_getspecific +Xpthread_join +Xpthread_key_create +Xpthread_key_delete +Xpthread_mutex_destroy +Xpthread_mutex_init +Xpthread_mutex_lock +Xpthread_mutex_trylock +Xpthread_mutex_unlock +Xpthread_mutexattr_destroy +Xpthread_mutexattr_init +Xpthread_mutexattr_settype +Xpthread_self +Xpthread_setcancelstate +Xpthread_setspecific +Xpthread_sigmask +Xpthread_barrier_destroy +Xpthread_barrier_init +Xpthread_barrier_wait +Xptrace +Xptsname +Xptsname_r +Xputc +Xputchar +Xputchar_unlocked +Xputenv +Xputgrent +Xputpwent +Xputs +Xputspent +Xputw +Xputwc +Xputwchar_unlocked +Xpwrite +Xpwritev +Xpwritev2 +Xqsort +Xqsort_r +Xquick_exit +Xquotactl +Xraise +Xrand +Xrand_r +Xrandom +Xrandom_r +Xread +Xreadahead +Xreaddir +Xreaddir64 +Xreaddir_r +Xreadlink +Xreadlinkat +Xreadv +Xrealloc +Xreallocarray +Xrealpath +Xreboot +Xrecv +Xrecvfrom +Xrecvmmsg +Xrecvmsg +Xregcomp +Xregerror +Xregexec +Xregfree +Xremainderl +Xremap_file_pages +Xremove +Xremovexattr +Xremque +Xremquo +Xremquof +Xremquol +Xrename +Xrenameat +Xrenameat2 +Xres_init +Xres_mkquery +Xres_send +Xrewind +Xrewinddir +Xrindex +Xrint +Xrintf +Xrintl +Xrmdir +Xround +Xroundf +Xroundl +Xsbrk +Xscalb +Xscalbf +Xscalbln +Xscalblnf +Xscalblnl +Xscalbn +Xscalbnf +Xscalbnl +Xscandir +Xsched_yield +Xsecure_getenv +Xseed48 +Xseekdir +Xselect +Xsemctl +Xsemget +Xsemop +Xsemtimedop +Xsend +Xsendfile +Xsendmmsg +Xsendmsg +Xsendto +Xsetbuf +Xsetbuffer +Xsetdomainname +Xsetenv +Xsetfsgid +Xsetfsuid +Xsethostname +Xsetitimer +Xsetjmp +Xsetkey +Xsetlinebuf +Xsetlocale +Xsetlogmask +Xsetmntent +Xsetnetent +Xsetns +Xsetpgid +Xsetpgrp +Xsetpriority +Xsetprotoent +Xsetrlimit +Xsetrlimit64 +Xsetservent +Xsetsid +Xsetsockopt +Xsetspent +Xsetstate +Xsettimeofday +Xsetvbuf +Xsetxattr +Xshm_open +Xshm_unlink +Xshmat +Xshmctl +Xshmdt +Xshmget +Xshutdown +Xsigaction +Xsigaddset +Xsigaltstack +Xsigandset +Xsigdelset +Xsigemptyset +Xsigfillset +Xsigisemptyset +Xsigismember +Xsignal +Xsignalfd +Xsigngam +Xsignificand +Xsignificandf +Xsigorset +Xsigpending +Xsigprocmask +Xsigqueue +Xsigsuspend +Xsigtimedwait +Xsigwait +Xsigwaitinfo +Xsin +Xsincos +Xsincosf +Xsincosl +Xsinf +Xsinh +Xsinhf +Xsinhl +Xsinl +Xsleep +Xsnprintf +Xsockatmark +Xsocket +Xsocketpair +Xsplice +Xsprintf +Xsqrt +Xsqrtf +Xsqrtl +Xsrand +Xsrand48 +Xsrandom +Xsscanf +Xstat +Xstat64 +Xstatfs +Xstatvfs +Xstatx +Xstderr +Xstdin +Xstdout +Xstime +Xstpcpy +Xstpncpy +Xstrcasecmp +Xstrcasecmp_l +Xstrcasestr +Xstrcat +Xstrchr +Xstrchrnul +Xstrcmp +Xstrcoll +Xstrcoll_l +Xstrcpy +Xstrcspn +Xstrdup +Xstrerror +Xstrerror_l +Xstrerror_r +Xstrfmon +Xstrfmon_l +Xstrftime +Xstrftime_l +Xstrlcat +Xstrlcpy +Xstrlen +Xstrncasecmp +Xstrncasecmp_l +Xstrncat +Xstrncmp +Xstrncpy +Xstrndup +Xstrnlen +Xstrpbrk +Xstrptime +Xstrrchr +Xstrsep +Xstrsignal +Xstrspn +Xstrstr +Xstrtod +Xstrtof +Xstrtoimax +Xstrtok +Xstrtok_r +Xstrtol +Xstrtold +Xstrtoll +Xstrtoul +Xstrtoull +Xstrtoumax +Xstrverscmp +Xstrxfrm +Xstrxfrm_l +Xswab +Xswapoff +Xswapon +Xswprintf +Xsymlink +Xsymlinkat +Xsync +Xsync_file_range +Xsyncfs +Xsyscall +Xsysconf +Xsysctlbyname +Xsysinfo +Xsyslog +Xsystem +Xtan +Xtanf +Xtanh +Xtanhf +Xtanhl +Xtanl +Xtcdrain +Xtcflow +Xtcflush +Xtcgetattr +Xtcgetpgrp +Xtcgetsid +Xtcgetwinsize +Xtcsendbreak +Xtcsetattr +Xtcsetpgrp +Xtcsetwinsize +Xtdelete +Xtdestroy +Xtee +Xtelldir +Xtempnam +Xtextdomain +Xtfind +Xtgamma +Xtgammaf +Xtgammal +Xtime +Xtimegm +Xtimer_delete +Xtimer_getoverrun +Xtimer_gettime +Xtimer_settime +Xtimerfd_create +Xtimerfd_gettime +Xtimerfd_settime +Xtimes +Xtimespec_get +Xtimezone +Xtmpfile +Xtmpnam +Xtoascii +Xtolower +Xtolower_l +Xtoupper +Xtoupper_l +Xtowctrans +Xtowctrans_l +Xtowlower +Xtowlower_l +Xtowupper +Xtowupper_l +Xtrunc +Xtruncate +Xtruncf +Xtruncl +Xtsearch +Xttyname +Xttyname_r +Xtwalk +Xtzname +Xtzset +Xualarm +Xulckpwdf +Xumask +Xumount +Xumount2 +Xuname +Xungetc +Xungetwc +Xunlink +Xunlinkat +Xunlockpt +Xunsetenv +Xunshare +Xuselocale +Xusleep +Xutime +Xutimensat +Xutimes +Xuuid_copy +Xuuid_generate_random +Xuuid_parse +Xuuid_unparse +Xvasprintf +Xvdprintf +Xversionsort +Xvfork +Xvfprintf +Xvfscanf +Xvfwprintf +Xvhangup +Xvmsplice +Xvprintf +Xvsnprintf +Xvsprintf +Xvsscanf +Xvswprintf +Xvwprintf +Xwait +Xwait3 +Xwait4 +Xwaitid +Xwaitpid +Xwcpcpy +Xwcpncpy +Xwcrtomb +Xwcscasecmp +Xwcscasecmp_l +Xwcscat +Xwcschr +Xwcscmp +Xwcscoll +Xwcscoll_l +Xwcscpy +Xwcscspn +Xwcsdup +Xwcsftime +Xwcsftime_l +Xwcslen +Xwcsncasecmp +Xwcsncasecmp_l +Xwcsncat +Xwcsncmp +Xwcsncpy +Xwcsnlen +Xwcsnrtombs +Xwcspbrk +Xwcsrchr +Xwcsrtombs +Xwcsspn +Xwcsstr +Xwcstod +Xwcstof +Xwcstoimax +Xwcstok +Xwcstol +Xwcstold +Xwcstoll +Xwcstombs +Xwcstoul +Xwcstoull +Xwcstoumax +Xwcswcs +Xwcswidth +Xwcsxfrm +Xwcsxfrm_l +Xwctob +Xwctomb +Xwctrans +Xwctrans_l +Xwctype +Xwctype_l +Xwcwidth +Xwmemchr +Xwmemcmp +Xwmemcpy +Xwmemmove +Xwmemset +Xwprintf +Xwrite +Xwritev +Xy0 +Xy0f +Xy1 +Xy1f +Xyn +Xynf +Xzero_struct_address +YESEXPR +YESSTR +YXDOMAIN +YXRRSET +ZEROINFNAN +ZERO_PAD diff --git a/vendor/modernc.org/libc/sync.go b/vendor/modernc.org/libc/sync.go index f4f91f6c7..ca78d2fc3 100644 --- a/vendor/modernc.org/libc/sync.go +++ b/vendor/modernc.org/libc/sync.go @@ -2,6 +2,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build !(linux && (amd64 || arm64 || loong64 || ppc64le || s390x || riscv64 || 386 || arm)) + package libc // import "modernc.org/libc" import ( @@ -12,6 +14,9 @@ var __sync_synchronize_dummy int32 // __sync_synchronize(); func X__sync_synchronize(t *TLS) { + if __ccgo_strace { + trc("t=%v, (%v:)", t, origin(2)) + } // Attempt to implement a full memory barrier without assembler. atomic.StoreInt32(&__sync_synchronize_dummy, atomic.LoadInt32(&__sync_synchronize_dummy)+1) } diff --git a/vendor/modernc.org/libc/sys/socket/capi_illumos_amd64.go b/vendor/modernc.org/libc/sys/socket/capi_illumos_amd64.go new file mode 100644 index 000000000..442b88933 --- /dev/null +++ b/vendor/modernc.org/libc/sys/socket/capi_illumos_amd64.go @@ -0,0 +1,5 @@ +// Code generated by 'ccgo sys/socket/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o sys/socket/socket_illumos_amd64.go -pkgname socket', DO NOT EDIT. + +package socket + +var CAPI = map[string]struct{}{} diff --git a/vendor/modernc.org/libc/sys/socket/capi_linux_loong64.go b/vendor/modernc.org/libc/sys/socket/capi_linux_loong64.go new file mode 100644 index 000000000..a632f73f5 --- /dev/null +++ b/vendor/modernc.org/libc/sys/socket/capi_linux_loong64.go @@ -0,0 +1,5 @@ +// Code generated by 'ccgo sys/socket/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o sys/socket/socket_linux_loong64.go -pkgname socket', DO NOT EDIT. + +package socket + +var CAPI = map[string]struct{}{} diff --git a/vendor/modernc.org/libc/sys/socket/capi_linux_mips64le.go b/vendor/modernc.org/libc/sys/socket/capi_linux_mips64le.go new file mode 100644 index 000000000..41ea29c81 --- /dev/null +++ b/vendor/modernc.org/libc/sys/socket/capi_linux_mips64le.go @@ -0,0 +1,5 @@ +// Code generated by 'ccgo sys/socket/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o sys/socket/socket_linux_amd64.go -pkgname socket', DO NOT EDIT. + +package socket + +var CAPI = map[string]struct{}{} diff --git a/vendor/modernc.org/libc/sys/socket/socket_illumos_amd64.go b/vendor/modernc.org/libc/sys/socket/socket_illumos_amd64.go new file mode 100644 index 000000000..44d1ed442 --- /dev/null +++ b/vendor/modernc.org/libc/sys/socket/socket_illumos_amd64.go @@ -0,0 +1,5226 @@ +// Code generated by 'ccgo sys/socket/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o sys/socket/socket_illumos_amd64.go -pkgname socket', DO NOT EDIT. + +package socket + +import ( + "math" + "reflect" + "sync/atomic" + "unsafe" +) + +var _ = math.Pi +var _ reflect.Kind +var _ atomic.Value +var _ unsafe.Pointer + +const ( + AF_802 = 18 // socket.h:296:1: + AF_APPLETALK = 16 // socket.h:294:1: + AF_CCITT = 10 // socket.h:288:1: + AF_CHAOS = 5 // socket.h:283:1: + AF_DATAKIT = 9 // socket.h:287:1: + AF_DECnet = 12 // socket.h:290:1: + AF_DLI = 13 // socket.h:291:1: + AF_ECMA = 8 // socket.h:286:1: + AF_FILE = 1 // socket.h:279:1: + AF_GOSIP = 22 // socket.h:300:1: + AF_HYLINK = 15 // socket.h:293:1: + AF_IMPLINK = 3 // socket.h:281:1: + AF_INET = 2 // socket.h:280:1: + AF_INET6 = 26 // socket.h:304:1: + AF_INET_OFFLOAD = 30 // socket.h:308:1: + AF_IPX = 23 // socket.h:301:1: + AF_KEY = 27 // socket.h:305:1: + AF_LAT = 14 // socket.h:292:1: + AF_LINK = 25 // socket.h:303:1: + AF_LOCAL = 1 // socket.h:278:1: + AF_LX_NETLINK = 33 // socket.h:311:1: + AF_MAX = 33 // socket.h:313:1: + AF_NBS = 7 // socket.h:285:1: + AF_NCA = 28 // socket.h:306:1: + AF_NIT = 17 // socket.h:295:1: + AF_NS = 6 // socket.h:284:1: + AF_OSI = 19 // socket.h:297:1: + AF_OSINET = 21 // socket.h:299:1: + AF_PACKET = 32 // socket.h:310:1: + AF_POLICY = 29 // socket.h:307:1: + AF_PUP = 4 // socket.h:282:1: + AF_ROUTE = 24 // socket.h:302:1: + AF_SNA = 11 // socket.h:289:1: + AF_TRILL = 31 // socket.h:309:1: + AF_UNIX = 1 // socket.h:277:1: + AF_UNSPEC = 0 // socket.h:276:1: + AF_X25 = 20 // socket.h:298:1: + CANBSIZ = 256 // param.h:91:1: + CDLIMIT = 2048 // param.h:164:1: + CLOCKS_PER_SEC = 1000000 // time_iso.h:78:1: + CLOCK_HIGHRES = 4 // time_impl.h:126:1: + CLOCK_MONOTONIC = 4 // time_impl.h:124:1: + CLOCK_PROCESS_CPUTIME_ID = 5 // time_impl.h:125:1: + CLOCK_PROF = 2 // time_impl.h:127:1: + CLOCK_REALTIME = 3 // time_impl.h:123:1: + CLOCK_THREAD_CPUTIME_ID = 2 // time_impl.h:122:1: + CLOCK_VIRTUAL = 1 // time_impl.h:121:1: + CMASK = 022 // param.h:163:1: + DEFAULT_JUMPPID = 0 // param.h:120:1: + DEFAULT_MAXPID = 30000 // param.h:119:1: + DEV_BSHIFT = 9 // param.h:251:1: + DEV_BSIZE = 512 // param.h:250:1: + DST_AUST = 2 // time.h:115:1: + DST_AUSTALT = 10 // time.h:123:1: + DST_CAN = 6 // time.h:119:1: + DST_EET = 5 // time.h:118:1: + DST_GB = 7 // time.h:120:1: + DST_MET = 4 // time.h:117:1: + DST_NONE = 0 // time.h:113:1: + DST_RUM = 8 // time.h:121:1: + DST_TUR = 9 // time.h:122:1: + DST_USA = 1 // time.h:114:1: + DST_WET = 3 // time.h:116:1: + FD_SETSIZE = 65536 // select.h:88:1: + FILF_AUTO = 0x2 // socket.h:232:1: + FILF_BYPASS = 0x4 // socket.h:233:1: + FILF_PROG = 0x1 // socket.h:231:1: + FILNAME_MAX = 32 // socket.h:221:1: + FIL_ATTACH = 0x1 // socket.h:217:1: + FIL_DETACH = 0x2 // socket.h:218:1: + FIL_LIST = 0x3 // socket.h:219:1: + FSCALE = 256 // param.h:304:1: + FSHIFT = 8 // param.h:303:1: + GID_NETADM = 65 // param.h:100:1: + GID_NOBODY = 60001 // param.h:95:1: + GID_UNKNOWN = 96 // param.h:97:1: + IMPLINK_HIGHEXPER = 158 // in.h:284:1: + IMPLINK_IP = 155 // in.h:282:1: + IMPLINK_LOWEXPER = 156 // in.h:283:1: + INADDR_6TO4RRANYCAST = 0xc0586301 // in.h:392:1: + INADDR_ALLHOSTS_GROUP = 0xe0000001 // in.h:372:1: + INADDR_ALLRPTS_GROUP = 0xe0000016 // in.h:374:1: + INADDR_ALLRTRS_GROUP = 0xe0000002 // in.h:373:1: + INADDR_ANY = 0x00000000 // in.h:366:1: + INADDR_BROADCAST = 0xffffffff // in.h:368:1: + INADDR_LOOPBACK = 0x7F000001 // in.h:367:1: + INADDR_MAX_LOCAL_GROUP = 0xe00000ff // in.h:375:1: + INADDR_NONE = 0xffffffff // in.h:369:1: + INADDR_UNSPEC_GROUP = 0xe0000000 // in.h:371:1: + INET6_ADDRSTRLEN = 46 // in.h:1212:1: + INET_ADDRSTRLEN = 16 // in.h:1210:1: + IN_AUTOCONF_MASK = 0xffff0000 // in.h:379:1: + IN_AUTOCONF_NET = 0xa9fe0000 // in.h:378:1: + IN_CLASSA_HOST = 0x00ffffff // in.h:332:1: + IN_CLASSA_MAX = 128 // in.h:333:1: + IN_CLASSA_NET = 0xff000000 // in.h:330:1: + IN_CLASSA_NSHIFT = 24 // in.h:331:1: + IN_CLASSB_HOST = 0x0000ffff // in.h:338:1: + IN_CLASSB_MAX = 65536 // in.h:339:1: + IN_CLASSB_NET = 0xffff0000 // in.h:336:1: + IN_CLASSB_NSHIFT = 16 // in.h:337:1: + IN_CLASSC_HOST = 0x000000ff // in.h:344:1: + IN_CLASSC_NET = 0xffffff00 // in.h:342:1: + IN_CLASSC_NSHIFT = 8 // in.h:343:1: + IN_CLASSD_HOST = 0x0fffffff // in.h:349:1: + IN_CLASSD_NET = 0xf0000000 // in.h:347:1: + IN_CLASSD_NSHIFT = 28 // in.h:348:1: + IN_CLASSE_NET = 0xffffffff // in.h:352:1: + IN_LOOPBACKNET = 127 // in.h:395:1: + IN_PRIVATE12_MASK = 0xfff00000 // in.h:383:1: + IN_PRIVATE12_NET = 0xac100000 // in.h:382:1: + IN_PRIVATE16_MASK = 0xffff0000 // in.h:385:1: + IN_PRIVATE16_NET = 0xc0a80000 // in.h:384:1: + IN_PRIVATE8_MASK = 0xff000000 // in.h:381:1: + IN_PRIVATE8_NET = 0x0a000000 // in.h:380:1: + IPPORT_BIFFUDP = 512 // in.h:250:1: + IPPORT_BOOTPC = 68 // in.h:214:1: + IPPORT_BOOTPS = 67 // in.h:213:1: + IPPORT_CHARGEN = 19 // in.h:199:1: + IPPORT_CMDSERVER = 514 // in.h:243:1: + IPPORT_DAYTIME = 13 // in.h:197:1: + IPPORT_DHCPV6C = 546 // in.h:260:1: + IPPORT_DHCPV6S = 547 // in.h:261:1: + IPPORT_DISCARD = 9 // in.h:195:1: + IPPORT_DOMAIN = 53 // in.h:206:1: + IPPORT_ECHO = 7 // in.h:194:1: + IPPORT_EFSSERVER = 520 // in.h:245:1: + IPPORT_EXECSERVER = 512 // in.h:241:1: + IPPORT_FINGER = 79 // in.h:217:1: + IPPORT_FTP = 21 // in.h:200:1: + IPPORT_HTTP = 80 // in.h:218:1: + IPPORT_HTTP_ALT = 8080 // in.h:219:1: + IPPORT_IKE = 500 // in.h:235:1: + IPPORT_IKE_NATT = 4500 // in.h:236:1: + IPPORT_LDAP = 389 // in.h:226:1: + IPPORT_LOGINSERVER = 513 // in.h:242:1: + IPPORT_MDNS = 5353 // in.h:207:1: + IPPORT_MIP = 434 // in.h:228:1: + IPPORT_MTP = 57 // in.h:208:1: + IPPORT_NAMESERVER = 42 // in.h:204:1: + IPPORT_NETBIOS_DGM = 138 // in.h:224:1: + IPPORT_NETBIOS_NS = 137 // in.h:223:1: + IPPORT_NETBIOS_SSN = 139 // in.h:225:1: + IPPORT_NETSTAT = 15 // in.h:198:1: + IPPORT_NTP = 123 // in.h:222:1: + IPPORT_PRINTER = 515 // in.h:244:1: + IPPORT_RESERVED = 1024 // in.h:271:1: + IPPORT_RIPNG = 521 // in.h:255:1: + IPPORT_RJE = 77 // in.h:216:1: + IPPORT_ROUTESERVER = 520 // in.h:254:1: + IPPORT_SLP = 427 // in.h:227:1: + IPPORT_SMB = 445 // in.h:229:1: + IPPORT_SMTP = 25 // in.h:202:1: + IPPORT_SOCKS = 1080 // in.h:263:1: + IPPORT_SUPDUP = 95 // in.h:221:1: + IPPORT_SYSLOG = 514 // in.h:252:1: + IPPORT_SYSTAT = 11 // in.h:196:1: + IPPORT_TALK = 517 // in.h:253:1: + IPPORT_TELNET = 23 // in.h:201:1: + IPPORT_TFTP = 69 // in.h:215:1: + IPPORT_TIMESERVER = 37 // in.h:203:1: + IPPORT_TTYLINK = 87 // in.h:220:1: + IPPORT_USERRESERVED = 5000 // in.h:272:1: + IPPORT_VXLAN = 4789 // in.h:230:1: + IPPORT_WHOIS = 43 // in.h:205:1: + IPPORT_WHOSERVER = 513 // in.h:251:1: + IPPROTO_AH = 51 // in.h:169:1: + IPPROTO_DSTOPTS = 60 // in.h:172:1: + IPPROTO_EGP = 8 // in.h:160:1: + IPPROTO_ENCAP = 4 // in.h:158:1: + IPPROTO_EON = 80 // in.h:175:1: + IPPROTO_ESP = 50 // in.h:168:1: + IPPROTO_FRAGMENT = 44 // in.h:166:1: + IPPROTO_GGP = 3 // in.h:157:1: + IPPROTO_HELLO = 63 // in.h:173:1: + IPPROTO_HOPOPTS = 0 // in.h:154:1: + IPPROTO_ICMP = 1 // in.h:155:1: + IPPROTO_ICMPV6 = 58 // in.h:170:1: + IPPROTO_IDP = 22 // in.h:163:1: + IPPROTO_IGMP = 2 // in.h:156:1: + IPPROTO_IP = 0 // in.h:153:1: + IPPROTO_IPV6 = 41 // in.h:164:1: + IPPROTO_MAX = 256 // in.h:182:1: + IPPROTO_ND = 77 // in.h:174:1: + IPPROTO_NONE = 59 // in.h:171:1: + IPPROTO_OSPF = 89 // in.h:176:1: + IPPROTO_PIM = 103 // in.h:177:1: + IPPROTO_PUP = 12 // in.h:161:1: + IPPROTO_RAW = 255 // in.h:181:1: + IPPROTO_ROUTING = 43 // in.h:165:1: + IPPROTO_RSVP = 46 // in.h:167:1: + IPPROTO_SCTP = 132 // in.h:178:1: + IPPROTO_TCP = 6 // in.h:159:1: + IPPROTO_UDP = 17 // in.h:162:1: + IPSEC_PREF_NEVER = 0x01 // in.h:941:1: + IPSEC_PREF_REQUIRED = 0x02 // in.h:942:1: + IPSEC_PREF_UNIQUE = 0x04 // in.h:943:1: + IPV6_ADD_MEMBERSHIP = 0x9 // in.h:1224:1: + IPV6_BOUND_IF = 0x41 // in.h:1307:1: + IPV6_CHECKSUM = 0x18 // in.h:1257:1: + IPV6_DONTFRAG = 0x21 // in.h:1260:1: + IPV6_DROP_MEMBERSHIP = 0xa // in.h:1226:1: + IPV6_DSTOPTS = 0xf // in.h:1234:1: + IPV6_FLOWINFO_FLOWLABEL = 0xffff0f00 // in.h:447:1: + IPV6_FLOWINFO_TCLASS = 0x0000f00f // in.h:448:1: + IPV6_HOPLIMIT = 0xc // in.h:1231:1: + IPV6_HOPOPTS = 0xe // in.h:1233:1: + IPV6_JOIN_GROUP = 0x9 // in.h:1202:1: + IPV6_LEAVE_GROUP = 0xa // in.h:1204:1: + IPV6_MULTICAST_HOPS = 0x7 // in.h:1196:1: + IPV6_MULTICAST_IF = 0x6 // in.h:1193:1: + IPV6_MULTICAST_LOOP = 0x8 // in.h:1199:1: + IPV6_NEXTHOP = 0xd // in.h:1232:1: + IPV6_PAD1_OPT = 0 // in.h:1314:1: + IPV6_PATHMTU = 0x25 // in.h:1264:1: + IPV6_PKTINFO = 0xb // in.h:1229:1: + IPV6_PREFER_SRC_CGA = 0x00000020 // in.h:1289:1: + IPV6_PREFER_SRC_CGADEFAULT = 16 // in.h:1296:1: + IPV6_PREFER_SRC_CGAMASK = 48 // in.h:1295:1: + IPV6_PREFER_SRC_COA = 0x00000002 // in.h:1285:1: + IPV6_PREFER_SRC_DEFAULT = 21 // in.h:1301:1: + IPV6_PREFER_SRC_HOME = 0x00000001 // in.h:1284:1: + IPV6_PREFER_SRC_MASK = 63 // in.h:1298:1: + IPV6_PREFER_SRC_MIPDEFAULT = 1 // in.h:1292:1: + IPV6_PREFER_SRC_MIPMASK = 3 // in.h:1291:1: + IPV6_PREFER_SRC_NONCGA = 0x00000010 // in.h:1288:1: + IPV6_PREFER_SRC_PUBLIC = 0x00000004 // in.h:1286:1: + IPV6_PREFER_SRC_TMP = 0x00000008 // in.h:1287:1: + IPV6_PREFER_SRC_TMPDEFAULT = 4 // in.h:1294:1: + IPV6_PREFER_SRC_TMPMASK = 12 // in.h:1293:1: + IPV6_RECVDSTOPTS = 0x28 // in.h:1271:1: + IPV6_RECVHOPLIMIT = 0x13 // in.h:1240:1: + IPV6_RECVHOPOPTS = 0x14 // in.h:1241:1: + IPV6_RECVPATHMTU = 0x24 // in.h:1263:1: + IPV6_RECVPKTINFO = 0x12 // in.h:1239:1: + IPV6_RECVRTHDR = 0x16 // in.h:1249:1: + IPV6_RECVRTHDRDSTOPTS = 0x17 // in.h:1255:1: + IPV6_RECVTCLASS = 0x19 // in.h:1258:1: + IPV6_RTHDR = 0x10 // in.h:1236:1: + IPV6_RTHDRDSTOPTS = 0x11 // in.h:1237:1: + IPV6_RTHDR_TYPE_0 = 0 // in.h:1152:1: + IPV6_SEC_OPT = 0x22 // in.h:1261:1: + IPV6_SRC_PREFERENCES = 0x23 // in.h:1262:1: + IPV6_TCLASS = 0x26 // in.h:1265:1: + IPV6_UNICAST_HOPS = 0x5 // in.h:1190:1: + IPV6_UNSPEC_SRC = 0x42 // in.h:1308:1: + IPV6_USE_MIN_MTU = 0x20 // in.h:1259:1: + IPV6_V6ONLY = 0x27 // in.h:1266:1: + IP_ADD_MEMBERSHIP = 0x13 // in.h:921:1: + IP_ADD_SOURCE_MEMBERSHIP = 0x17 // in.h:925:1: + IP_BLOCK_SOURCE = 0x15 // in.h:923:1: + IP_BOUND_IF = 0x41 // in.h:976:1: + IP_BROADCAST = 0x106 // in.h:994:1: + IP_BROADCAST_TTL = 0x43 // in.h:978:1: + IP_DEFAULT_MULTICAST_LOOP = 1 // in.h:1009:1: + IP_DEFAULT_MULTICAST_TTL = 1 // in.h:1008:1: + IP_DHCPINIT_IF = 0x45 // in.h:980:1: + IP_DONTFRAG = 0x1b // in.h:934:1: + IP_DONTROUTE = 0x105 // in.h:990:1: + IP_DROP_MEMBERSHIP = 0x14 // in.h:922:1: + IP_DROP_SOURCE_MEMBERSHIP = 0x18 // in.h:926:1: + IP_HDRINCL = 2 // in.h:899:1: + IP_MULTICAST_IF = 0x10 // in.h:918:1: + IP_MULTICAST_LOOP = 0x12 // in.h:920:1: + IP_MULTICAST_TTL = 0x11 // in.h:919:1: + IP_NEXTHOP = 0x19 // in.h:927:1: + IP_OPTIONS = 1 // in.h:896:1: + IP_PKTINFO = 0x1a // in.h:932:1: + IP_RECVDSTADDR = 0x7 // in.h:911:1: + IP_RECVIF = 0x9 // in.h:913:1: + IP_RECVOPTS = 0x5 // in.h:909:1: + IP_RECVPKTINFO = 0x1a // in.h:933:1: + IP_RECVRETOPTS = 0x6 // in.h:910:1: + IP_RECVSLLA = 0xa // in.h:914:1: + IP_RECVTOS = 0xc // in.h:916:1: + IP_RECVTTL = 0xb // in.h:915:1: + IP_RETOPTS = 0x8 // in.h:912:1: + IP_REUSEADDR = 0x104 // in.h:986:1: + IP_SEC_OPT = 0x22 // in.h:940:1: + IP_TOS = 3 // in.h:902:1: + IP_TTL = 4 // in.h:906:1: + IP_UNBLOCK_SOURCE = 0x16 // in.h:924:1: + IP_UNSPEC_SRC = 0x42 // in.h:977:1: + ITIMER_PROF = 2 // time.h:201:1: + ITIMER_REAL = 0 // time.h:199:1: + ITIMER_REALPROF = 3 // time.h:204:1: + ITIMER_VIRTUAL = 1 // time.h:200:1: + LINUX_SLL_BROADCAST = 1 // socket_impl.h:122:1: + LINUX_SLL_HOST = 0 // socket_impl.h:121:1: + LINUX_SLL_MULTICAST = 2 // socket_impl.h:123:1: + LINUX_SLL_OTHERHOST = 3 // socket_impl.h:124:1: + LINUX_SLL_OUTGOING = 4 // socket_impl.h:125:1: + MAXBSIZE = 8192 // param.h:249:1: + MAXFRAG = 8 // param.h:252:1: + MAXLINK = 32767 // param.h:126:1: + MAXLINKNAMELEN = 32 // param.h:209:1: + MAXNAMELEN = 256 // param.h:202:1: + MAXOFFSET_T = 0x7fffffffffffffff // param.h:258:1: + MAXOFF_T = 0x7fffffffffffffff // param.h:257:1: + MAXPATHLEN = 1024 // param.h:199:1: + MAXPROJID = 2147483647 // param.h:125:1: + MAXSYMLINKS = 20 // param.h:201:1: + MAXUID = 2147483647 // param.h:123:1: + MAX_CANON = 256 // param.h:89:1: + MAX_INPUT = 512 // param.h:86:1: + MCAST_BLOCK_SOURCE = 0x2b // in.h:1278:1: + MCAST_EXCLUDE = 2 // in.h:1122:1: + MCAST_INCLUDE = 1 // in.h:1121:1: + MCAST_JOIN_GROUP = 0x29 // in.h:1276:1: + MCAST_JOIN_SOURCE_GROUP = 0x2d // in.h:1280:1: + MCAST_LEAVE_GROUP = 0x2a // in.h:1277:1: + MCAST_LEAVE_SOURCE_GROUP = 0x2e // in.h:1281:1: + MCAST_UNBLOCK_SOURCE = 0x2c // in.h:1279:1: + MICROSEC = 1000000 // time.h:246:1: + MILLISEC = 1000 // time.h:245:1: + MINEPHUID = 0x80000000 // param.h:128:1: + MSG_CTRUNC = 0x10 // socket.h:429:1: + MSG_DONTROUTE = 0x4 // socket.h:427:1: + MSG_DONTWAIT = 0x80 // socket.h:432:1: + MSG_DUPCTRL = 0x800 // socket.h:435:1: + MSG_EOR = 0x8 // socket.h:428:1: + MSG_MAXIOVLEN = 16 // socket.h:440:1: + MSG_NOSIGNAL = 0x200 // socket.h:434:1: + MSG_NOTIFICATION = 0x100 // socket.h:433:1: + MSG_OOB = 0x1 // socket.h:425:1: + MSG_PEEK = 0x2 // socket.h:426:1: + MSG_TRUNC = 0x20 // socket.h:430:1: + MSG_WAITALL = 0x40 // socket.h:431:1: + MSG_XPG4_2 = 0x8000 // socket.h:437:1: + NADDR = 13 // param.h:212:1: + NANOSEC = 1000000000 // time.h:247:1: + NBBY = 8 // select.h:103:1: + NBPS = 0x20000 // param.h:165:1: + NBPSCTR = 512 // param.h:166:1: + NCARGS = 2097152 // param.h:294:1: + NCARGS32 = 0x100000 // param.h:291:1: + NCARGS64 = 0x200000 // param.h:292:1: + NC_APPLETALK = "appletalk" // netconfig.h:108:1: + NC_BROADCAST = 02 // netconfig.h:85:1: + NC_CCITT = "ccitt" // netconfig.h:102:1: + NC_CHAOS = "chaos" // netconfig.h:97:1: + NC_DATAKIT = "datakit" // netconfig.h:101:1: + NC_DECNET = "decnet" // netconfig.h:104:1: + NC_DLI = "dli" // netconfig.h:105:1: + NC_ECMA = "ecma" // netconfig.h:100:1: + NC_GOSIP = "gosip" // netconfig.h:114:1: + NC_HYLINK = "hylink" // netconfig.h:107:1: + NC_IBTF = "ibtf" // netconfig.h:138:1: + NC_ICMP = "icmp" // netconfig.h:132:1: + NC_IEEE802 = "ieee802" // netconfig.h:110:1: + NC_IMPLINK = "implink" // netconfig.h:95:1: + NC_INET = "inet" // netconfig.h:93:1: + NC_INET6 = "inet6" // netconfig.h:94:1: + NC_KDAPL = "kdapl" // netconfig.h:139:1: + NC_KVIPL = "kvipl" // netconfig.h:137:1: + NC_LAT = "lat" // netconfig.h:106:1: + NC_LOOPBACK = "loopback" // netconfig.h:92:1: + NC_NBS = "nbs" // netconfig.h:99:1: + NC_NIT = "nit" // netconfig.h:109:1: + NC_NOFLAG = 00 // netconfig.h:83:1: + NC_NOPROTO = "-" // netconfig.h:129:1: + NC_NOPROTOFMLY = "-" // netconfig.h:91:1: + NC_NS = "ns" // netconfig.h:98:1: + NC_OSI = "osi" // netconfig.h:111:1: + NC_OSINET = "osinet" // netconfig.h:113:1: + NC_PUP = "pup" // netconfig.h:96:1: + NC_RDMA = "rdma" // netconfig.h:123:1: + NC_SNA = "sna" // netconfig.h:103:1: + NC_TCP = "tcp" // netconfig.h:130:1: + NC_TPI_CLTS = 1 // netconfig.h:65:1: + NC_TPI_COTS = 2 // netconfig.h:66:1: + NC_TPI_COTS_ORD = 3 // netconfig.h:67:1: + NC_TPI_RAW = 4 // netconfig.h:68:1: + NC_TPI_RDMA = 5 // netconfig.h:77:1: + NC_UDP = "udp" // netconfig.h:131:1: + NC_VISIBLE = 01 // netconfig.h:84:1: + NC_X25 = "x25" // netconfig.h:112:1: + NETCONFIG = "/etc/netconfig" // netconfig.h:41:1: + NETPATH = "NETPATH" // netconfig.h:42:1: + NGROUPS_MAX_DEFAULT = 16 // param.h:148:1: + NGROUPS_OLDMAX = 32 // param.h:143:1: + NGROUPS_UMAX = 1024 // param.h:142:1: + NGROUPS_UMIN = 0 // param.h:141:1: + NMOUNT = 40 // param.h:130:1: + NOFILE = 20 // param.h:132:1: + NZERO = 20 // param.h:153:1: + PF_802 = 18 // socket.h:338:1: + PF_APPLETALK = 16 // socket.h:336:1: + PF_CCITT = 10 // socket.h:330:1: + PF_CHAOS = 5 // socket.h:325:1: + PF_DATAKIT = 9 // socket.h:329:1: + PF_DECnet = 12 // socket.h:332:1: + PF_DLI = 13 // socket.h:333:1: + PF_ECMA = 8 // socket.h:328:1: + PF_FILE = 1 // socket.h:321:1: + PF_GOSIP = 22 // socket.h:342:1: + PF_HYLINK = 15 // socket.h:335:1: + PF_IMPLINK = 3 // socket.h:323:1: + PF_INET = 2 // socket.h:322:1: + PF_INET6 = 26 // socket.h:346:1: + PF_INET_OFFLOAD = 30 // socket.h:350:1: + PF_IPX = 23 // socket.h:343:1: + PF_KEY = 27 // socket.h:347:1: + PF_LAT = 14 // socket.h:334:1: + PF_LINK = 25 // socket.h:345:1: + PF_LOCAL = 1 // socket.h:320:1: + PF_LX_NETLINK = 33 // socket.h:353:1: + PF_MAX = 33 // socket.h:355:1: + PF_NBS = 7 // socket.h:327:1: + PF_NCA = 28 // socket.h:348:1: + PF_NIT = 17 // socket.h:337:1: + PF_NS = 6 // socket.h:326:1: + PF_OSI = 19 // socket.h:339:1: + PF_OSINET = 21 // socket.h:341:1: + PF_PACKET = 32 // socket.h:352:1: + PF_POLICY = 29 // socket.h:349:1: + PF_PUP = 4 // socket.h:324:1: + PF_ROUTE = 24 // socket.h:344:1: + PF_SNA = 11 // socket.h:331:1: + PF_TRILL = 31 // socket.h:351:1: + PF_UNIX = 1 // socket.h:319:1: + PF_UNSPEC = 0 // socket.h:318:1: + PF_X25 = 20 // socket.h:340:1: + PIPE_BUF = 5120 // param.h:221:1: + PIPE_MAX = 5120 // param.h:225:1: + POLLERR = 0x0008 // poll.h:74:1: + POLLET = 0x2000 // poll.h:84:1: + POLLHUP = 0x0010 // poll.h:75:1: + POLLIN = 0x0001 // poll.h:59:1: + POLLNORM = 64 // poll.h:68:1: + POLLNVAL = 0x0020 // poll.h:76:1: + POLLONESHOT = 0x1000 // poll.h:83:1: + POLLOUT = 0x0004 // poll.h:61:1: + POLLPRI = 0x0002 // poll.h:60:1: + POLLRDBAND = 0x0080 // poll.h:64:1: + POLLRDHUP = 0x4000 // poll.h:66:1: + POLLRDNORM = 0x0040 // poll.h:62:1: + POLLREMOVE = 0x0800 // poll.h:82:1: + POLLWRBAND = 0x0100 // poll.h:65:1: + POLLWRNORM = 4 // poll.h:63:1: + PREMOTE = 39 // param.h:185:1: + PROTO_SDP = 257 // in.h:185:1: + P_MYID = -1 // types.h:632:1: + REG_LABEL_BP = 2 // machtypes.h:44:1: + REG_LABEL_MAX = 8 // machtypes.h:51:1: + REG_LABEL_PC = 0 // machtypes.h:42:1: + REG_LABEL_R12 = 4 // machtypes.h:47:1: + REG_LABEL_R13 = 5 // machtypes.h:48:1: + REG_LABEL_R14 = 6 // machtypes.h:49:1: + REG_LABEL_R15 = 7 // machtypes.h:50:1: + REG_LABEL_RBX = 3 // machtypes.h:46:1: + REG_LABEL_SP = 1 // machtypes.h:43:1: + SCM_RIGHTS = 0x1010 // socket.h:197:1: + SCM_TIMESTAMP = 4115 // socket.h:201:1: + SCM_UCRED = 0x1012 // socket.h:199:1: + SCTRSHFT = 9 // param.h:168:1: + SEC = 1 // time.h:244:1: + SHUT_RD = 0 // socket.h:458:1: + SHUT_RDWR = 2 // socket.h:460:1: + SHUT_WR = 1 // socket.h:459:1: + SOCK_CLOEXEC = 0x080000 // socket.h:127:1: + SOCK_DGRAM = 1 // socket.h:113:1: + SOCK_NDELAY = 0x200000 // socket.h:129:1: + SOCK_NONBLOCK = 0x100000 // socket.h:128:1: + SOCK_RAW = 4 // socket.h:114:1: + SOCK_RDM = 5 // socket.h:120:1: + SOCK_SEQPACKET = 6 // socket.h:121:1: + SOCK_STREAM = 2 // socket.h:112:1: + SOCK_TYPE_MASK = 0xffff // socket.h:122:1: + SOL_FILTER = 0xfffc // socket.h:267:1: + SOL_PACKET = 0xfffd // socket.h:266:1: + SOL_ROUTE = 0xfffe // socket.h:264:1: + SOL_SOCKET = 0xffff // socket.h:262:1: + SOMAXCONN = 128 // socket.h:360:1: + SO_ACCEPTCONN = 0x0002 // socket.h:135:1: + SO_ALLZONES = 0x1014 // socket.h:202:1: + SO_ANON_MLP = 0x100a // socket.h:191:1: + SO_ATTACH_FILTER = 0x40000001 // socket.h:157:1: + SO_BROADCAST = 0x0020 // socket.h:139:1: + SO_DEBUG = 0x0001 // socket.h:134:1: + SO_DETACH_FILTER = 0x40000002 // socket.h:158:1: + SO_DGRAM_ERRIND = 0x0200 // socket.h:143:1: + SO_DOMAIN = 0x100c // socket.h:193:1: + SO_DONTLINGER = -129 // socket.h:177:1: + SO_DONTROUTE = 0x0010 // socket.h:138:1: + SO_ERROR = 0x1007 // socket.h:188:1: + SO_EXCLBIND = 0x1015 // socket.h:203:1: + SO_KEEPALIVE = 0x0008 // socket.h:137:1: + SO_LINGER = 0x0080 // socket.h:141:1: + SO_MAC_EXEMPT = 0x100b // socket.h:192:1: + SO_MAC_IMPLICIT = 0x1016 // socket.h:204:1: + SO_OOBINLINE = 0x0100 // socket.h:142:1: + SO_PROTOTYPE = 0x1009 // socket.h:190:1: + SO_RCVBUF = 0x1002 // socket.h:183:1: + SO_RCVLOWAT = 0x1004 // socket.h:185:1: + SO_RCVPSH = 0x100d // socket.h:194:1: + SO_RCVTIMEO = 0x1006 // socket.h:187:1: + SO_RECVUCRED = 0x0400 // socket.h:144:1: + SO_REUSEADDR = 0x0004 // socket.h:136:1: + SO_SECATTR = 0x1011 // socket.h:198:1: + SO_SNDBUF = 0x1001 // socket.h:182:1: + SO_SNDLOWAT = 0x1003 // socket.h:184:1: + SO_SNDTIMEO = 0x1005 // socket.h:186:1: + SO_TIMESTAMP = 0x1013 // socket.h:200:1: + SO_TYPE = 0x1008 // socket.h:189:1: + SO_USELOOPBACK = 0x0040 // socket.h:140:1: + SO_VRRP = 0x1017 // socket.h:205:1: + SYSNAME = 9 // param.h:184:1: + TIMER_ABSTIME = 0x1 // time_impl.h:134:1: + TIMER_RELTIME = 0x0 // time_impl.h:133:1: + TIME_UTC = 0x1 // time.h:306:1: + TYPICALMAXPATHLEN = 64 // param.h:200:1: + UBSIZE = 512 // param.h:167:1: + UID_DLADM = 15 // param.h:98:1: + UID_NETADM = 16 // param.h:99:1: + UID_NOACCESS = 60002 // param.h:101:1: + UID_NOBODY = 60001 // param.h:94:1: + UID_UNKNOWN = 96 // param.h:96:1: + UIOA_ALLOC = 0x0001 // uio.h:194:1: + UIOA_CLR = -16 // uio.h:199:1: + UIOA_ENABLED = 0x0004 // uio.h:196:1: + UIOA_FINI = 0x0008 // uio.h:197:1: + UIOA_INIT = 0x0002 // uio.h:195:1: + UIOA_IOV_MAX = 16 // uio.h:112:1: + UIOA_POLL = 0x0010 // uio.h:201:1: + UIO_ASYNC = 0x0002 // uio.h:237:1: + UIO_COPY_CACHED = 0x0001 // uio.h:235:1: + UIO_COPY_DEFAULT = 0x0000 // uio.h:234:1: + UIO_XUIO = 0x0004 // uio.h:238:1: + X_ACL_ACE_ENABLED = 0x2 // unistd.h:349:1: + X_ACL_ACLENT_ENABLED = 0x1 // unistd.h:348:1: + X_ALIGNMENT_REQUIRED = 1 // isa_defs.h:262:1: + X_BIT_FIELDS_LTOH = 0 // isa_defs.h:245:1: + X_BOOL_ALIGNMENT = 1 // isa_defs.h:248:1: + X_CASE_INSENSITIVE = 0x2 // unistd.h:342:1: + X_CASE_SENSITIVE = 0x1 // unistd.h:341:1: + X_CHAR_ALIGNMENT = 1 // isa_defs.h:249:1: + X_CHAR_IS_SIGNED = 0 // isa_defs.h:247:1: + X_CLOCKID_T = 0 // types.h:568:1: + X_CLOCK_T = 0 // types.h:563:1: + X_COND_MAGIC = 0x4356 // types.h:426:1: + X_CS_LFS64_CFLAGS = 72 // unistd.h:61:1: + X_CS_LFS64_LDFLAGS = 73 // unistd.h:62:1: + X_CS_LFS64_LIBS = 74 // unistd.h:63:1: + X_CS_LFS64_LINTFLAGS = 75 // unistd.h:64:1: + X_CS_LFS_CFLAGS = 68 // unistd.h:56:1: + X_CS_LFS_LDFLAGS = 69 // unistd.h:57:1: + X_CS_LFS_LIBS = 70 // unistd.h:58:1: + X_CS_LFS_LINTFLAGS = 71 // unistd.h:59:1: + X_CS_PATH = 65 // unistd.h:50:1: + X_CS_POSIX_V6_ILP32_OFF32_CFLAGS = 800 // unistd.h:85:1: + X_CS_POSIX_V6_ILP32_OFF32_LDFLAGS = 801 // unistd.h:86:1: + X_CS_POSIX_V6_ILP32_OFF32_LIBS = 802 // unistd.h:87:1: + X_CS_POSIX_V6_ILP32_OFF32_LINTFLAGS = 803 // unistd.h:88:1: + X_CS_POSIX_V6_ILP32_OFFBIG_CFLAGS = 804 // unistd.h:89:1: + X_CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS = 805 // unistd.h:90:1: + X_CS_POSIX_V6_ILP32_OFFBIG_LIBS = 806 // unistd.h:91:1: + X_CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS = 807 // unistd.h:92:1: + X_CS_POSIX_V6_LP64_OFF64_CFLAGS = 808 // unistd.h:93:1: + X_CS_POSIX_V6_LP64_OFF64_LDFLAGS = 809 // unistd.h:94:1: + X_CS_POSIX_V6_LP64_OFF64_LIBS = 810 // unistd.h:95:1: + X_CS_POSIX_V6_LP64_OFF64_LINTFLAGS = 811 // unistd.h:96:1: + X_CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS = 812 // unistd.h:97:1: + X_CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS = 813 // unistd.h:98:1: + X_CS_POSIX_V6_LPBIG_OFFBIG_LIBS = 814 // unistd.h:99:1: + X_CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS = 815 // unistd.h:100:1: + X_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS = 816 // unistd.h:101:1: + X_CS_XBS5_ILP32_OFF32_CFLAGS = 700 // unistd.h:67:1: + X_CS_XBS5_ILP32_OFF32_LDFLAGS = 701 // unistd.h:68:1: + X_CS_XBS5_ILP32_OFF32_LIBS = 702 // unistd.h:69:1: + X_CS_XBS5_ILP32_OFF32_LINTFLAGS = 703 // unistd.h:70:1: + X_CS_XBS5_ILP32_OFFBIG_CFLAGS = 705 // unistd.h:71:1: + X_CS_XBS5_ILP32_OFFBIG_LDFLAGS = 706 // unistd.h:72:1: + X_CS_XBS5_ILP32_OFFBIG_LIBS = 707 // unistd.h:73:1: + X_CS_XBS5_ILP32_OFFBIG_LINTFLAGS = 708 // unistd.h:74:1: + X_CS_XBS5_LP64_OFF64_CFLAGS = 709 // unistd.h:75:1: + X_CS_XBS5_LP64_OFF64_LDFLAGS = 710 // unistd.h:76:1: + X_CS_XBS5_LP64_OFF64_LIBS = 711 // unistd.h:77:1: + X_CS_XBS5_LP64_OFF64_LINTFLAGS = 712 // unistd.h:78:1: + X_CS_XBS5_LPBIG_OFFBIG_CFLAGS = 713 // unistd.h:79:1: + X_CS_XBS5_LPBIG_OFFBIG_LDFLAGS = 714 // unistd.h:80:1: + X_CS_XBS5_LPBIG_OFFBIG_LIBS = 715 // unistd.h:81:1: + X_CS_XBS5_LPBIG_OFFBIG_LINTFLAGS = 716 // unistd.h:82:1: + X_DMA_USES_PHYSADDR = 0 // isa_defs.h:281:1: + X_DONT_USE_1275_GENERIC_NAMES = 0 // isa_defs.h:287:1: + X_DOUBLE_ALIGNMENT = 8 // isa_defs.h:256:1: + X_DOUBLE_COMPLEX_ALIGNMENT = 8 // isa_defs.h:257:1: + X_DTRACE_VERSION = 1 // feature_tests.h:490:1: + X_FILE_OFFSET_BITS = 64 // :25:1: + X_FIRMWARE_NEEDS_FDISK = 0 // isa_defs.h:282:1: + X_FLOAT_ALIGNMENT = 4 // isa_defs.h:252:1: + X_FLOAT_COMPLEX_ALIGNMENT = 4 // isa_defs.h:253:1: + X_HAVE_CPUID_INSN = 0 // isa_defs.h:288:1: + X_IEEE_754 = 0 // isa_defs.h:246:1: + X_INT64_TYPE = 0 // int_types.h:82:1: + X_INT_ALIGNMENT = 4 // isa_defs.h:251:1: + X_IN_ADDR_T = 0 // byteorder.h:78:1: + X_IN_PORT_T = 0 // byteorder.h:73:1: + X_IPADDR_T = 0 // in.h:98:1: + X_ISO_CPP_14882_1998 = 0 // feature_tests.h:466:1: + X_ISO_C_9899_1999 = 0 // feature_tests.h:472:1: + X_ISO_C_9899_2011 = 0 // feature_tests.h:478:1: + X_ISO_TIME_ISO_H = 0 // time_iso.h:46:1: + X_LARGEFILE64_SOURCE = 1 // feature_tests.h:231:1: + X_LARGEFILE_SOURCE = 1 // feature_tests.h:235:1: + X_LITTLE_ENDIAN = 0 // isa_defs.h:242:1: + X_LOCALE_T = 0 // time.h:291:1: + X_LONGLONG_TYPE = 0 // feature_tests.h:412:1: + X_LONG_ALIGNMENT = 8 // isa_defs.h:254:1: + X_LONG_DOUBLE_ALIGNMENT = 16 // isa_defs.h:258:1: + X_LONG_DOUBLE_COMPLEX_ALIGNMENT = 16 // isa_defs.h:259:1: + X_LONG_LONG_ALIGNMENT = 8 // isa_defs.h:255:1: + X_LONG_LONG_ALIGNMENT_32 = 4 // isa_defs.h:268:1: + X_LONG_LONG_LTOH = 0 // isa_defs.h:244:1: + X_LP64 = 1 // :286:1: + X_MAX_ALIGNMENT = 16 // isa_defs.h:261:1: + X_MULTI_DATAMODEL = 0 // isa_defs.h:279:1: + X_MUTEX_MAGIC = 0x4d58 // types.h:424:1: + X_NBBY = 8 // select.h:100:1: + X_NETINET_IN_H = 0 // in.h:33:1: + X_NET_IF_DL_H = 0 // if_dl.h:39:1: + X_NORETURN_KYWD = 0 // feature_tests.h:448:1: + X_OFF_T = 0 // types.h:142:1: + X_OLD_IPV6_RECVDSTOPTS = 0x15 // in.h:1247:1: + X_PC_2_SYMLINKS = 19 // unistd.h:309:1: + X_PC_ACCESS_FILTERING = 25 // unistd.h:315:1: + X_PC_ACL_ENABLED = 20 // unistd.h:310:1: + X_PC_ALLOC_SIZE_MIN = 13 // unistd.h:303:1: + X_PC_ASYNC_IO = 10 // unistd.h:299:1: + X_PC_CASE_BEHAVIOR = 22 // unistd.h:312:1: + X_PC_CHOWN_RESTRICTED = 9 // unistd.h:297:1: + X_PC_FILESIZEBITS = 67 // unistd.h:325:1: + X_PC_LAST = 101 // unistd.h:336:1: + X_PC_LINK_MAX = 1 // unistd.h:289:1: + X_PC_MAX_CANON = 2 // unistd.h:290:1: + X_PC_MAX_INPUT = 3 // unistd.h:291:1: + X_PC_MIN_HOLE_SIZE = 21 // unistd.h:311:1: + X_PC_NAME_MAX = 4 // unistd.h:292:1: + X_PC_NO_TRUNC = 7 // unistd.h:295:1: + X_PC_PATH_MAX = 5 // unistd.h:293:1: + X_PC_PIPE_BUF = 6 // unistd.h:294:1: + X_PC_PRIO_IO = 11 // unistd.h:300:1: + X_PC_REC_INCR_XFER_SIZE = 14 // unistd.h:304:1: + X_PC_REC_MAX_XFER_SIZE = 15 // unistd.h:305:1: + X_PC_REC_MIN_XFER_SIZE = 16 // unistd.h:306:1: + X_PC_REC_XFER_ALIGN = 17 // unistd.h:307:1: + X_PC_SATTR_ENABLED = 23 // unistd.h:313:1: + X_PC_SATTR_EXISTS = 24 // unistd.h:314:1: + X_PC_SYMLINK_MAX = 18 // unistd.h:308:1: + X_PC_SYNC_IO = 12 // unistd.h:301:1: + X_PC_TIMESTAMP_RESOLUTION = 26 // unistd.h:317:1: + X_PC_VDISABLE = 8 // unistd.h:296:1: + X_PC_XATTR_ENABLED = 100 // unistd.h:330:1: + X_PC_XATTR_EXISTS = 101 // unistd.h:331:1: + X_POINTER_ALIGNMENT = 8 // isa_defs.h:260:1: + X_POSIX2_CHAR_TERM = 1 // unistd.h:391:1: + X_POSIX2_C_BIND = 1 // unistd.h:401:1: + X_POSIX2_C_DEV = 1 // unistd.h:402:1: + X_POSIX2_C_VERSION = 199209 // unistd.h:376:1: + X_POSIX2_FORT_RUN = 1 // unistd.h:403:1: + X_POSIX2_LOCALEDEF = 1 // unistd.h:404:1: + X_POSIX2_SW_DEV = 1 // unistd.h:405:1: + X_POSIX2_UPE = 1 // unistd.h:406:1: + X_POSIX2_VERSION = 199209 // unistd.h:363:1: + X_POSIX_REGEXP = 1 // unistd.h:410:1: + X_POSIX_SHELL = 1 // unistd.h:411:1: + X_POSIX_VDISABLE = 0 // param.h:70:1: + X_POSIX_VERSION = 199506 // unistd.h:355:1: + X_PSM_MODULES = 0 // isa_defs.h:284:1: + X_PTRDIFF_T = 0 // types.h:112:1: + X_RESTRICT_KYWD = 0 // feature_tests.h:435:1: + X_RTC_CONFIG = 0 // isa_defs.h:285:1: + X_RWL_MAGIC = 0x5257 // types.h:427:1: + X_SA_FAMILY_T = 0 // socket_impl.h:42:1: + X_SC_2_CHAR_TERM = 66 // unistd.h:175:1: + X_SC_2_C_BIND = 45 // unistd.h:153:1: + X_SC_2_C_DEV = 46 // unistd.h:154:1: + X_SC_2_C_VERSION = 47 // unistd.h:155:1: + X_SC_2_FORT_DEV = 48 // unistd.h:156:1: + X_SC_2_FORT_RUN = 49 // unistd.h:157:1: + X_SC_2_LOCALEDEF = 50 // unistd.h:158:1: + X_SC_2_PBS = 724 // unistd.h:246:1: + X_SC_2_PBS_ACCOUNTING = 725 // unistd.h:247:1: + X_SC_2_PBS_CHECKPOINT = 726 // unistd.h:248:1: + X_SC_2_PBS_LOCATE = 728 // unistd.h:249:1: + X_SC_2_PBS_MESSAGE = 729 // unistd.h:250:1: + X_SC_2_PBS_TRACK = 730 // unistd.h:251:1: + X_SC_2_SW_DEV = 51 // unistd.h:159:1: + X_SC_2_UPE = 52 // unistd.h:160:1: + X_SC_2_VERSION = 53 // unistd.h:161:1: + X_SC_ADVISORY_INFO = 731 // unistd.h:252:1: + X_SC_AIO_LISTIO_MAX = 18 // unistd.h:125:1: + X_SC_AIO_MAX = 19 // unistd.h:126:1: + X_SC_AIO_PRIO_DELTA_MAX = 20 // unistd.h:127:1: + X_SC_ARG_MAX = 1 // unistd.h:106:1: + X_SC_ASYNCHRONOUS_IO = 21 // unistd.h:128:1: + X_SC_ATEXIT_MAX = 76 // unistd.h:179:1: + X_SC_AVPHYS_PAGES = 501 // unistd.h:190:1: + X_SC_BARRIERS = 732 // unistd.h:253:1: + X_SC_BC_BASE_MAX = 54 // unistd.h:162:1: + X_SC_BC_DIM_MAX = 55 // unistd.h:163:1: + X_SC_BC_SCALE_MAX = 56 // unistd.h:164:1: + X_SC_BC_STRING_MAX = 57 // unistd.h:165:1: + X_SC_CHILD_MAX = 2 // unistd.h:107:1: + X_SC_CLK_TCK = 3 // unistd.h:108:1: + X_SC_CLOCK_SELECTION = 733 // unistd.h:254:1: + X_SC_COHER_BLKSZ = 503 // unistd.h:196:1: + X_SC_COLL_WEIGHTS_MAX = 58 // unistd.h:166:1: + X_SC_CPUID_MAX = 517 // unistd.h:211:1: + X_SC_CPUTIME = 734 // unistd.h:255:1: + X_SC_DCACHE_ASSOC = 513 // unistd.h:206:1: + X_SC_DCACHE_BLKSZ = 510 // unistd.h:203:1: + X_SC_DCACHE_LINESZ = 508 // unistd.h:201:1: + X_SC_DCACHE_SZ = 506 // unistd.h:199:1: + X_SC_DCACHE_TBLKSZ = 511 // unistd.h:204:1: + X_SC_DELAYTIMER_MAX = 22 // unistd.h:129:1: + X_SC_EPHID_MAX = 518 // unistd.h:212:1: + X_SC_EXPR_NEST_MAX = 59 // unistd.h:167:1: + X_SC_FSYNC = 23 // unistd.h:130:1: + X_SC_GETGR_R_SIZE_MAX = 569 // unistd.h:220:1: + X_SC_GETPW_R_SIZE_MAX = 570 // unistd.h:221:1: + X_SC_HOST_NAME_MAX = 735 // unistd.h:256:1: + X_SC_ICACHE_ASSOC = 512 // unistd.h:205:1: + X_SC_ICACHE_BLKSZ = 509 // unistd.h:202:1: + X_SC_ICACHE_LINESZ = 507 // unistd.h:200:1: + X_SC_ICACHE_SZ = 505 // unistd.h:198:1: + X_SC_IOV_MAX = 77 // unistd.h:180:1: + X_SC_IPV6 = 762 // unistd.h:283:1: + X_SC_JOB_CONTROL = 6 // unistd.h:111:1: + X_SC_LINE_MAX = 60 // unistd.h:168:1: + X_SC_LOGIN_NAME_MAX = 571 // unistd.h:222:1: + X_SC_LOGNAME_MAX = 10 // unistd.h:116:1: + X_SC_MAPPED_FILES = 24 // unistd.h:131:1: + X_SC_MAXPID = 514 // unistd.h:208:1: + X_SC_MEMLOCK = 25 // unistd.h:132:1: + X_SC_MEMLOCK_RANGE = 26 // unistd.h:133:1: + X_SC_MEMORY_PROTECTION = 27 // unistd.h:134:1: + X_SC_MESSAGE_PASSING = 28 // unistd.h:135:1: + X_SC_MONOTONIC_CLOCK = 736 // unistd.h:257:1: + X_SC_MQ_OPEN_MAX = 29 // unistd.h:136:1: + X_SC_MQ_PRIO_MAX = 30 // unistd.h:137:1: + X_SC_NGROUPS_MAX = 4 // unistd.h:109:1: + X_SC_NPROCESSORS_CONF = 14 // unistd.h:120:1: + X_SC_NPROCESSORS_MAX = 516 // unistd.h:210:1: + X_SC_NPROCESSORS_ONLN = 15 // unistd.h:121:1: + X_SC_OPEN_MAX = 5 // unistd.h:110:1: + X_SC_PAGESIZE = 11 // unistd.h:117:1: + X_SC_PAGE_SIZE = 11 // unistd.h:182:1: + X_SC_PASS_MAX = 9 // unistd.h:115:1: + X_SC_PHYS_PAGES = 500 // unistd.h:189:1: + X_SC_PRIORITIZED_IO = 31 // unistd.h:138:1: + X_SC_PRIORITY_SCHEDULING = 32 // unistd.h:139:1: + X_SC_RAW_SOCKETS = 763 // unistd.h:284:1: + X_SC_READER_WRITER_LOCKS = 737 // unistd.h:258:1: + X_SC_REALTIME_SIGNALS = 33 // unistd.h:140:1: + X_SC_REGEXP = 738 // unistd.h:259:1: + X_SC_RE_DUP_MAX = 61 // unistd.h:169:1: + X_SC_RTSIG_MAX = 34 // unistd.h:141:1: + X_SC_SAVED_IDS = 7 // unistd.h:112:1: + X_SC_SEMAPHORES = 35 // unistd.h:142:1: + X_SC_SEM_NSEMS_MAX = 36 // unistd.h:143:1: + X_SC_SEM_VALUE_MAX = 37 // unistd.h:144:1: + X_SC_SHARED_MEMORY_OBJECTS = 38 // unistd.h:145:1: + X_SC_SHELL = 739 // unistd.h:260:1: + X_SC_SIGQUEUE_MAX = 39 // unistd.h:146:1: + X_SC_SIGRT_MAX = 41 // unistd.h:148:1: + X_SC_SIGRT_MIN = 40 // unistd.h:147:1: + X_SC_SPAWN = 740 // unistd.h:261:1: + X_SC_SPIN_LOCKS = 741 // unistd.h:262:1: + X_SC_SPLIT_CACHE = 504 // unistd.h:197:1: + X_SC_SPORADIC_SERVER = 742 // unistd.h:263:1: + X_SC_SS_REPL_MAX = 743 // unistd.h:264:1: + X_SC_STACK_PROT = 515 // unistd.h:209:1: + X_SC_STREAM_MAX = 16 // unistd.h:122:1: + X_SC_SYMLOOP_MAX = 744 // unistd.h:265:1: + X_SC_SYNCHRONIZED_IO = 42 // unistd.h:149:1: + X_SC_THREADS = 576 // unistd.h:227:1: + X_SC_THREAD_ATTR_STACKADDR = 577 // unistd.h:228:1: + X_SC_THREAD_ATTR_STACKSIZE = 578 // unistd.h:229:1: + X_SC_THREAD_CPUTIME = 745 // unistd.h:266:1: + X_SC_THREAD_DESTRUCTOR_ITERATIONS = 568 // unistd.h:219:1: + X_SC_THREAD_KEYS_MAX = 572 // unistd.h:223:1: + X_SC_THREAD_PRIORITY_SCHEDULING = 579 // unistd.h:230:1: + X_SC_THREAD_PRIO_INHERIT = 580 // unistd.h:231:1: + X_SC_THREAD_PRIO_PROTECT = 581 // unistd.h:232:1: + X_SC_THREAD_PROCESS_SHARED = 582 // unistd.h:233:1: + X_SC_THREAD_SAFE_FUNCTIONS = 583 // unistd.h:234:1: + X_SC_THREAD_SPORADIC_SERVER = 746 // unistd.h:267:1: + X_SC_THREAD_STACK_MIN = 573 // unistd.h:224:1: + X_SC_THREAD_THREADS_MAX = 574 // unistd.h:225:1: + X_SC_TIMEOUTS = 747 // unistd.h:268:1: + X_SC_TIMERS = 43 // unistd.h:150:1: + X_SC_TIMER_MAX = 44 // unistd.h:151:1: + X_SC_TRACE = 748 // unistd.h:269:1: + X_SC_TRACE_EVENT_FILTER = 749 // unistd.h:270:1: + X_SC_TRACE_EVENT_NAME_MAX = 750 // unistd.h:271:1: + X_SC_TRACE_INHERIT = 751 // unistd.h:272:1: + X_SC_TRACE_LOG = 752 // unistd.h:273:1: + X_SC_TRACE_NAME_MAX = 753 // unistd.h:274:1: + X_SC_TRACE_SYS_MAX = 754 // unistd.h:275:1: + X_SC_TRACE_USER_EVENT_MAX = 755 // unistd.h:276:1: + X_SC_TTY_NAME_MAX = 575 // unistd.h:226:1: + X_SC_TYPED_MEMORY_OBJECTS = 756 // unistd.h:277:1: + X_SC_TZNAME_MAX = 17 // unistd.h:123:1: + X_SC_T_IOV_MAX = 79 // unistd.h:186:1: + X_SC_UADDR_MAX = 519 // unistd.h:213:1: + X_SC_V6_ILP32_OFF32 = 757 // unistd.h:278:1: + X_SC_V6_ILP32_OFFBIG = 758 // unistd.h:279:1: + X_SC_V6_LP64_OFF64 = 759 // unistd.h:280:1: + X_SC_V6_LPBIG_OFFBIG = 760 // unistd.h:281:1: + X_SC_VERSION = 8 // unistd.h:113:1: + X_SC_XBS5_ILP32_OFF32 = 720 // unistd.h:240:1: + X_SC_XBS5_ILP32_OFFBIG = 721 // unistd.h:241:1: + X_SC_XBS5_LP64_OFF64 = 722 // unistd.h:242:1: + X_SC_XBS5_LPBIG_OFFBIG = 723 // unistd.h:243:1: + X_SC_XOPEN_CRYPT = 62 // unistd.h:170:1: + X_SC_XOPEN_ENH_I18N = 63 // unistd.h:171:1: + X_SC_XOPEN_LEGACY = 717 // unistd.h:237:1: + X_SC_XOPEN_REALTIME = 718 // unistd.h:238:1: + X_SC_XOPEN_REALTIME_THREADS = 719 // unistd.h:239:1: + X_SC_XOPEN_SHM = 64 // unistd.h:172:1: + X_SC_XOPEN_STREAMS = 761 // unistd.h:282:1: + X_SC_XOPEN_UNIX = 78 // unistd.h:181:1: + X_SC_XOPEN_VERSION = 12 // unistd.h:118:1: + X_SC_XOPEN_XCU_VERSION = 67 // unistd.h:176:1: + X_SEMA_MAGIC = 0x534d // types.h:425:1: + X_SHORT_ALIGNMENT = 2 // isa_defs.h:250:1: + X_SIGEVENT = 0 // time.h:132:1: + X_SIGSET_T = 0 // select.h:73:1: + X_SIGVAL = 0 // time.h:124:1: + X_SIZE_T = 0 // types.h:540:1: + X_SOCKLEN_T = 0 // in.h:48:1: + X_SOFT_HOSTID = 0 // isa_defs.h:286:1: + X_SSIZE_T = 0 // types.h:549:1: + X_SS_MAXSIZE = 256 // socket_impl.h:70:1: + X_STACK_GROWS_DOWNWARD = 0 // isa_defs.h:243:1: + X_STDC_C11 = 0 // feature_tests.h:165:1: + X_STDC_C99 = 0 // feature_tests.h:169:1: + X_SUNOS_VTOC_16 = 0 // isa_defs.h:280:1: + X_SUSECONDS_T = 0 // types.h:343:1: + X_SYS_BYTEORDER_H = 0 // byteorder.h:41:1: + X_SYS_CCOMPILE_H = 0 // ccompile.h:32:1: + X_SYS_CRED_H = 0 // cred.h:35:1: + X_SYS_FEATURE_TESTS_H = 0 // feature_tests.h:41:1: + X_SYS_INT_TYPES_H = 0 // int_types.h:30:1: + X_SYS_ISA_DEFS_H = 0 // isa_defs.h:30:1: + X_SYS_MACHTYPES_H = 0 // machtypes.h:27:1: + X_SYS_NETCONFIG_H = 0 // netconfig.h:35:1: + X_SYS_NULL_H = 0 // null.h:17:1: + X_SYS_PARAM_H = 0 // param.h:41:1: + X_SYS_POLL_H = 0 // poll.h:38:1: + X_SYS_SELECT_H = 0 // select.h:45:1: + X_SYS_SOCKET_H = 0 // socket.h:47:1: + X_SYS_SOCKET_IMPL_H = 0 // socket_impl.h:35:1: + X_SYS_TIME_H = 0 // time.h:27:1: + X_SYS_TIME_IMPL_H = 0 // time_impl.h:38:1: + X_SYS_TYPES_H = 0 // types.h:35:1: + X_SYS_UIO_H = 0 // uio.h:45:1: + X_SYS_UNISTD_H = 0 // unistd.h:40:1: + X_SYS_UN_H = 0 // un.h:39:1: + X_TIMER_T = 0 // types.h:573:1: + X_TIME_H = 0 // time.h:37:1: + X_TIME_T = 0 // types.h:558:1: + X_TTY_BUFSIZ = 2048 // param.h:75:1: + X_UID_T = 0 // types.h:400:1: + X_XOPEN_ENH_I18N = 1 // unistd.h:389:1: + X_XOPEN_REALTIME = 1 // unistd.h:388:1: + X_XOPEN_SHM = 1 // unistd.h:390:1: + X_XOPEN_STREAMS = 1 // unistd.h:412:1: + X_XOPEN_UNIX = 0 // unistd.h:382:1: + X_XOPEN_VERSION = 3 // feature_tests.h:392:1: + X_XOPEN_XCU_VERSION = 4 // unistd.h:385:1: + X_XOPEN_XPG3 = 0 // unistd.h:380:1: + X_XOPEN_XPG4 = 0 // unistd.h:381:1: + Sun = 1 // :172:1: + Unix = 1 // :175:1: +) + +// used for block sizes + +// The boolean_t type has had a varied amount of exposure over the years in +// terms of how its enumeration constants have been exposed. In particular, it +// originally used the __XOPEN_OR_POSIX macro to determine whether to prefix the +// B_TRUE and B_FALSE with an underscore. This check never included the +// question of if we were in a strict ANSI C environment or whether extensions +// were defined. +// +// Compilers such as clang started defaulting to always including an +// XOPEN_SOURCE declaration on behalf of users, but also noted __EXTENSIONS__. +// This would lead most software that had used the non-underscore versions to +// need it. As such, we have adjusted the non-strict XOPEN environment to retain +// its old behavior so as to minimize namespace pollution; however, we instead +// include both variants of the definitions in the generally visible version +// allowing software written in either world to hopefully end up in a good +// place. +// +// This isn't perfect, but should hopefully minimize the pain for folks actually +// trying to build software. +const ( /* types.h:215:1: */ + B_FALSE = 0 + B_TRUE = 1 + X_B_FALSE = 0 + X_B_TRUE = 1 +) + +// uio extensions +// +// PSARC 2009/478: Copy Reduction Interfaces +const ( /* uio.h:146:1: */ + UIOTYPE_ASYNCIO = 0 + UIOTYPE_ZEROCOPY = 1 + UIOTYPE_PEEKSIZE = 2 +) + +// I/O direction. +const ( /* uio.h:220:1: */ + UIO_READ = 0 + UIO_WRITE = 1 +) + +// Segment flag values. +const ( /* uio.h:93:1: */ + UIO_USERSPACE = 0 + UIO_SYSSPACE = 1 + UIO_USERISPACE = 2 +) + +type Ptrdiff_t = int64 /* :3:26 */ + +type Size_t = uint64 /* :9:23 */ + +type Wchar_t = int32 /* :15:24 */ + +type X__int128_t = struct { + Flo int64 + Fhi int64 +} /* :21:43 */ // must match modernc.org/mathutil.Int128 +type X__uint128_t = struct { + Flo uint64 + Fhi uint64 +} /* :22:44 */ // must match modernc.org/mathutil.Int128 + +type X__builtin_va_list = uintptr /* :46:14 */ +type X__float128 = float64 /* :47:21 */ + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved. +// Copyright 2015, Joyent, Inc. All rights reserved. +// Copyright 2022 Garrett D'Amore +// + +// Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// University Copyright- Copyright (c) 1982, 1986, 1988 +// The Regents of the University of California +// All Rights Reserved +// +// University Acknowledgment- Portions of this document are derived from +// software developed by the University of California, Berkeley, and its +// contributors. + +// Copyright (c) 2013, OmniTI Computer Consulting, Inc. All rights reserved. + +// Copyright (c) 2014, Joyent, Inc. All rights reserved. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2021 Oxide Computer Company + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2015 EveryCity Ltd. All rights reserved. +// Copyright 2019 Joyent, Inc. + +// This file contains definitions designed to enable different compilers +// to be used harmoniously on Solaris systems. + +// Allow for version tests for compiler bugs and features. + +// analogous to lint's PRINTFLIKEn + +// Handle the kernel printf routines that can take '%b' too + +// This one's pretty obvious -- the function never returns + +// The function is 'extern inline' and expects GNU C89 behaviour, not C99 +// behaviour. +// +// Should only be used on 'extern inline' definitions for GCC. + +// The function has control flow such that it may return multiple times (in +// the manner of setjmp or vfork) + +// This is an appropriate label for functions that do not +// modify their arguments, e.g. strlen() + +// This is a stronger form of __pure__. Can be used for functions +// that do not modify their arguments and don't depend on global +// memory. + +// This attribute, attached to a variable, means that the variable is meant to +// be possibly unused. GCC will not produce a warning for this variable. + +// Shorthand versions for readability + +// In release build, disable warnings about variables +// which are used only for debugging. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2016 Joyent, Inc. + +// This header file serves to group a set of well known defines and to +// set these for each instruction set architecture. These defines may +// be divided into two groups; characteristics of the processor and +// implementation choices for Solaris on a processor. +// +// Processor Characteristics: +// +// _LITTLE_ENDIAN / _BIG_ENDIAN: +// The natural byte order of the processor. A pointer to an int points +// to the least/most significant byte of that int. +// +// _STACK_GROWS_UPWARD / _STACK_GROWS_DOWNWARD: +// The processor specific direction of stack growth. A push onto the +// stack increases/decreases the stack pointer, so it stores data at +// successively higher/lower addresses. (Stackless machines ignored +// without regrets). +// +// _LONG_LONG_HTOL / _LONG_LONG_LTOH: +// A pointer to a long long points to the most/least significant long +// within that long long. +// +// _BIT_FIELDS_HTOL / _BIT_FIELDS_LTOH: +// The C compiler assigns bit fields from the high/low to the low/high end +// of an int (most to least significant vs. least to most significant). +// +// _IEEE_754: +// The processor (or supported implementations of the processor) +// supports the ieee-754 floating point standard. No other floating +// point standards are supported (or significant). Any other supported +// floating point formats are expected to be cased on the ISA processor +// symbol. +// +// _CHAR_IS_UNSIGNED / _CHAR_IS_SIGNED: +// The C Compiler implements objects of type `char' as `unsigned' or +// `signed' respectively. This is really an implementation choice of +// the compiler writer, but it is specified in the ABI and tends to +// be uniform across compilers for an instruction set architecture. +// Hence, it has the properties of a processor characteristic. +// +// _CHAR_ALIGNMENT / _SHORT_ALIGNMENT / _INT_ALIGNMENT / _LONG_ALIGNMENT / +// _LONG_LONG_ALIGNMENT / _DOUBLE_ALIGNMENT / _LONG_DOUBLE_ALIGNMENT / +// _POINTER_ALIGNMENT / _FLOAT_ALIGNMENT: +// The ABI defines alignment requirements of each of the primitive +// object types. Some, if not all, may be hardware requirements as +// well. The values are expressed in "byte-alignment" units. +// +// _MAX_ALIGNMENT: +// The most stringent alignment requirement as specified by the ABI. +// Equal to the maximum of all the above _XXX_ALIGNMENT values. +// +// _MAX_ALIGNMENT_TYPE: +// The name of the C type that has the value descried in _MAX_ALIGNMENT. +// +// _ALIGNMENT_REQUIRED: +// True or false (1 or 0) whether or not the hardware requires the ABI +// alignment. +// +// _LONG_LONG_ALIGNMENT_32 +// The 32-bit ABI supported by a 64-bit kernel may have different +// alignment requirements for primitive object types. The value of this +// identifier is expressed in "byte-alignment" units. +// +// _HAVE_CPUID_INSN +// This indicates that the architecture supports the 'cpuid' +// instruction as defined by Intel. (Intel allows other vendors +// to extend the instruction for their own purposes.) +// +// +// Implementation Choices: +// +// _ILP32 / _LP64: +// This specifies the compiler data type implementation as specified in +// the relevant ABI. The choice between these is strongly influenced +// by the underlying hardware, but is not absolutely tied to it. +// Currently only two data type models are supported: +// +// _ILP32: +// Int/Long/Pointer are 32 bits. This is the historical UNIX +// and Solaris implementation. Due to its historical standing, +// this is the default case. +// +// _LP64: +// Long/Pointer are 64 bits, Int is 32 bits. This is the chosen +// implementation for 64-bit ABIs such as SPARC V9. +// +// _I32LPx: +// A compilation environment where 'int' is 32-bit, and +// longs and pointers are simply the same size. +// +// In all cases, Char is 8 bits and Short is 16 bits. +// +// _SUNOS_VTOC_8 / _SUNOS_VTOC_16 / _SVR4_VTOC_16: +// This specifies the form of the disk VTOC (or label): +// +// _SUNOS_VTOC_8: +// This is a VTOC form which is upwardly compatible with the +// SunOS 4.x disk label and allows 8 partitions per disk. +// +// _SUNOS_VTOC_16: +// In this format the incore vtoc image matches the ondisk +// version. It allows 16 slices per disk, and is not +// compatible with the SunOS 4.x disk label. +// +// Note that these are not the only two VTOC forms possible and +// additional forms may be added. One possible form would be the +// SVr4 VTOC form. The symbol for that is reserved now, although +// it is not implemented. +// +// _SVR4_VTOC_16: +// This VTOC form is compatible with the System V Release 4 +// VTOC (as implemented on the SVr4 Intel and 3b ports) with +// 16 partitions per disk. +// +// +// _DMA_USES_PHYSADDR / _DMA_USES_VIRTADDR +// This describes the type of addresses used by system DMA: +// +// _DMA_USES_PHYSADDR: +// This type of DMA, used in the x86 implementation, +// requires physical addresses for DMA buffers. The 24-bit +// addresses used by some legacy boards is the source of the +// "low-memory" (<16MB) requirement for some devices using DMA. +// +// _DMA_USES_VIRTADDR: +// This method of DMA allows the use of virtual addresses for +// DMA transfers. +// +// _FIRMWARE_NEEDS_FDISK / _NO_FDISK_PRESENT +// This indicates the presence/absence of an fdisk table. +// +// _FIRMWARE_NEEDS_FDISK +// The fdisk table is required by system firmware. If present, +// it allows a disk to be subdivided into multiple fdisk +// partitions, each of which is equivalent to a separate, +// virtual disk. This enables the co-existence of multiple +// operating systems on a shared hard disk. +// +// _NO_FDISK_PRESENT +// If the fdisk table is absent, it is assumed that the entire +// media is allocated for a single operating system. +// +// _HAVE_TEM_FIRMWARE +// Defined if this architecture has the (fallback) option of +// using prom_* calls for doing I/O if a suitable kernel driver +// is not available to do it. +// +// _DONT_USE_1275_GENERIC_NAMES +// Controls whether or not device tree node names should +// comply with the IEEE 1275 "Generic Names" Recommended +// Practice. With _DONT_USE_GENERIC_NAMES, device-specific +// names identifying the particular device will be used. +// +// __i386_COMPAT +// This indicates whether the i386 ABI is supported as a *non-native* +// mode for the platform. When this symbol is defined: +// - 32-bit xstat-style system calls are enabled +// - 32-bit xmknod-style system calls are enabled +// - 32-bit system calls use i386 sizes -and- alignments +// +// Note that this is NOT defined for the i386 native environment! +// +// __x86 +// This is ONLY a synonym for defined(__i386) || defined(__amd64) +// which is useful only insofar as these two architectures share +// common attributes. Analogous to __sparc. +// +// _PSM_MODULES +// This indicates whether or not the implementation uses PSM +// modules for processor support, reading /etc/mach from inside +// the kernel to extract a list. +// +// _RTC_CONFIG +// This indicates whether or not the implementation uses /etc/rtc_config +// to configure the real-time clock in the kernel. +// +// _UNIX_KRTLD +// This indicates that the implementation uses a dynamically +// linked unix + krtld to form the core kernel image at boot +// time, or (in the absence of this symbol) a prelinked kernel image. +// +// _OBP +// This indicates the firmware interface is OBP. +// +// _SOFT_HOSTID +// This indicates that the implementation obtains the hostid +// from the file /etc/hostid, rather than from hardware. + +// The following set of definitions characterize Solaris on AMD's +// 64-bit systems. + +// Define the appropriate "processor characteristics" + +// Different alignment constraints for the i386 ABI in compatibility mode + +// Define the appropriate "implementation choices". + +// The feature test macro __i386 is generic for all processors implementing +// the Intel 386 instruction set or a superset of it. Specifically, this +// includes all members of the 386, 486, and Pentium family of processors. + +// Values of _POSIX_C_SOURCE +// +// undefined not a POSIX compilation +// 1 POSIX.1-1990 compilation +// 2 POSIX.2-1992 compilation +// 199309L POSIX.1b-1993 compilation (Real Time) +// 199506L POSIX.1c-1995 compilation (POSIX Threads) +// 200112L POSIX.1-2001 compilation (Austin Group Revision) +// 200809L POSIX.1-2008 compilation + +// The feature test macros __XOPEN_OR_POSIX, _STRICT_STDC, _STRICT_SYMBOLS, +// and _STDC_C99 are Sun implementation specific macros created in order to +// compress common standards specified feature test macros for easier reading. +// These macros should not be used by the application developer as +// unexpected results may occur. Instead, the user should reference +// standards(7) for correct usage of the standards feature test macros. +// +// __XOPEN_OR_POSIX Used in cases where a symbol is defined by both +// X/Open or POSIX or in the negative, when neither +// X/Open or POSIX defines a symbol. +// +// _STRICT_STDC __STDC__ is specified by the C Standards and defined +// by the compiler. For Sun compilers the value of +// __STDC__ is either 1, 0, or not defined based on the +// compilation mode (see cc(1)). When the value of +// __STDC__ is 1 and in the absence of any other feature +// test macros, the namespace available to the application +// is limited to only those symbols defined by the C +// Standard. _STRICT_STDC provides a more readable means +// of identifying symbols defined by the standard, or in +// the negative, symbols that are extensions to the C +// Standard. See additional comments for GNU C differences. +// +// _STDC_C99 __STDC_VERSION__ is specified by the C standards and +// defined by the compiler and indicates the version of +// the C standard. A value of 199901L indicates a +// compiler that complies with ISO/IEC 9899:1999, other- +// wise known as the C99 standard. +// +// _STDC_C11 Like _STDC_C99 except that the value of __STDC_VERSION__ +// is 201112L indicating a compiler that compiles with +// ISO/IEC 9899:2011, otherwise known as the C11 standard. +// +// _STRICT_SYMBOLS Used in cases where symbol visibility is restricted +// by the standards, and the user has not explicitly +// relaxed the strictness via __EXTENSIONS__. + +// ISO/IEC 9899:1990 and it's revisions, ISO/IEC 9899:1999 and ISO/IEC +// 99899:2011 specify the following predefined macro name: +// +// __STDC__ The integer constant 1, intended to indicate a conforming +// implementation. +// +// Furthermore, a strictly conforming program shall use only those features +// of the language and library specified in these standards. A conforming +// implementation shall accept any strictly conforming program. +// +// Based on these requirements, Sun's C compiler defines __STDC__ to 1 for +// strictly conforming environments and __STDC__ to 0 for environments that +// use ANSI C semantics but allow extensions to the C standard. For non-ANSI +// C semantics, Sun's C compiler does not define __STDC__. +// +// The GNU C project interpretation is that __STDC__ should always be defined +// to 1 for compilation modes that accept ANSI C syntax regardless of whether +// or not extensions to the C standard are used. Violations of conforming +// behavior are conditionally flagged as warnings via the use of the +// -pedantic option. In addition to defining __STDC__ to 1, the GNU C +// compiler also defines __STRICT_ANSI__ as a means of specifying strictly +// conforming environments using the -ansi or -std= options. +// +// In the absence of any other compiler options, Sun and GNU set the value +// of __STDC__ as follows when using the following options: +// +// Value of __STDC__ __STRICT_ANSI__ +// +// cc -Xa (default) 0 undefined +// cc -Xt (transitional) 0 undefined +// cc -Xc (strictly conforming) 1 undefined +// cc -Xs (K&R C) undefined undefined +// +// gcc (default) 1 undefined +// gcc -ansi, -std={c89, c99,...) 1 defined +// gcc -traditional (K&R) undefined undefined +// +// The default compilation modes for Sun C compilers versus GNU C compilers +// results in a differing value for __STDC__ which results in a more +// restricted namespace when using Sun compilers. To allow both GNU and Sun +// interpretations to peacefully co-exist, we use the following Sun +// implementation _STRICT_STDC_ macro: + +// Compiler complies with ISO/IEC 9899:1999 or ISO/IEC 9989:2011 + +// Use strict symbol visibility. + +// This is a variant of _STRICT_SYMBOLS that is meant to cover headers that are +// governed by POSIX, but have not been governed by ISO C. One can go two ways +// on what should happen if an application actively includes (not transitively) +// a header that isn't part of the ISO C spec, we opt to say that if someone has +// gone out of there way then they're doing it for a reason and that is an act +// of non-compliance and therefore it's not up to us to hide away every symbol. +// +// In general, prefer using _STRICT_SYMBOLS, but this is here in particular for +// cases where in the past we have only used a POSIX related check and we don't +// wish to make something stricter. Often applications are relying on the +// ability to, or more realistically unwittingly, have _STRICT_STDC declared and +// still use these interfaces. + +// Large file interfaces: +// +// _LARGEFILE_SOURCE +// 1 large file-related additions to POSIX +// interfaces requested (fseeko, etc.) +// _LARGEFILE64_SOURCE +// 1 transitional large-file-related interfaces +// requested (seek64, stat64, etc.) +// +// The corresponding announcement macros are respectively: +// _LFS_LARGEFILE +// _LFS64_LARGEFILE +// (These are set in .) +// +// Requesting _LARGEFILE64_SOURCE implies requesting _LARGEFILE_SOURCE as +// well. +// +// The large file interfaces are made visible regardless of the initial values +// of the feature test macros under certain circumstances: +// - If no explicit standards-conforming environment is requested (neither +// of _POSIX_SOURCE nor _XOPEN_SOURCE is defined and the value of +// __STDC__ does not imply standards conformance). +// - Extended system interfaces are explicitly requested (__EXTENSIONS__ +// is defined). +// - Access to in-kernel interfaces is requested (_KERNEL or _KMEMUSER is +// defined). (Note that this dependency is an artifact of the current +// kernel implementation and may change in future releases.) + +// Large file compilation environment control: +// +// The setting of _FILE_OFFSET_BITS controls the size of various file-related +// types and governs the mapping between file-related source function symbol +// names and the corresponding binary entry points. +// +// In the 32-bit environment, the default value is 32; if not set, set it to +// the default here, to simplify tests in other headers. +// +// In the 64-bit compilation environment, the only value allowed is 64. + +// Use of _XOPEN_SOURCE +// +// The following X/Open specifications are supported: +// +// X/Open Portability Guide, Issue 3 (XPG3) +// X/Open CAE Specification, Issue 4 (XPG4) +// X/Open CAE Specification, Issue 4, Version 2 (XPG4v2) +// X/Open CAE Specification, Issue 5 (XPG5) +// Open Group Technical Standard, Issue 6 (XPG6), also referred to as +// IEEE Std. 1003.1-2001 and ISO/IEC 9945:2002. +// Open Group Technical Standard, Issue 7 (XPG7), also referred to as +// IEEE Std. 1003.1-2008 and ISO/IEC 9945:2009. +// +// XPG4v2 is also referred to as UNIX 95 (SUS or SUSv1). +// XPG5 is also referred to as UNIX 98 or the Single Unix Specification, +// Version 2 (SUSv2) +// XPG6 is the result of a merge of the X/Open and POSIX specifications +// and as such is also referred to as IEEE Std. 1003.1-2001 in +// addition to UNIX 03 and SUSv3. +// XPG7 is also referred to as UNIX 08 and SUSv4. +// +// When writing a conforming X/Open application, as per the specification +// requirements, the appropriate feature test macros must be defined at +// compile time. These are as follows. For more info, see standards(7). +// +// Feature Test Macro Specification +// ------------------------------------------------ ------------- +// _XOPEN_SOURCE XPG3 +// _XOPEN_SOURCE && _XOPEN_VERSION = 4 XPG4 +// _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED = 1 XPG4v2 +// _XOPEN_SOURCE = 500 XPG5 +// _XOPEN_SOURCE = 600 (or POSIX_C_SOURCE=200112L) XPG6 +// _XOPEN_SOURCE = 700 (or POSIX_C_SOURCE=200809L) XPG7 +// +// In order to simplify the guards within the headers, the following +// implementation private test macros have been created. Applications +// must NOT use these private test macros as unexpected results will +// occur. +// +// Note that in general, the use of these private macros is cumulative. +// For example, the use of _XPG3 with no other restrictions on the X/Open +// namespace will make the symbols visible for XPG3 through XPG6 +// compilation environments. The use of _XPG4_2 with no other X/Open +// namespace restrictions indicates that the symbols were introduced in +// XPG4v2 and are therefore visible for XPG4v2 through XPG6 compilation +// environments, but not for XPG3 or XPG4 compilation environments. +// +// _XPG3 X/Open Portability Guide, Issue 3 (XPG3) +// _XPG4 X/Open CAE Specification, Issue 4 (XPG4) +// _XPG4_2 X/Open CAE Specification, Issue 4, Version 2 (XPG4v2/UNIX 95/SUS) +// _XPG5 X/Open CAE Specification, Issue 5 (XPG5/UNIX 98/SUSv2) +// _XPG6 Open Group Technical Standard, Issue 6 (XPG6/UNIX 03/SUSv3) +// _XPG7 Open Group Technical Standard, Issue 7 (XPG7/UNIX 08/SUSv4) + +// X/Open Portability Guide, Issue 3 + +// _XOPEN_VERSION is defined by the X/Open specifications and is not +// normally defined by the application, except in the case of an XPG4 +// application. On the implementation side, _XOPEN_VERSION defined with +// the value of 3 indicates an XPG3 application. _XOPEN_VERSION defined +// with the value of 4 indicates an XPG4 or XPG4v2 (UNIX 95) application. +// _XOPEN_VERSION defined with a value of 500 indicates an XPG5 (UNIX 98) +// application and with a value of 600 indicates an XPG6 (UNIX 03) +// application and with a value of 700 indicates an XPG7 (UNIX 08). +// The appropriate version is determined by the use of the +// feature test macros described earlier. The value of _XOPEN_VERSION +// defaults to 3 otherwise indicating support for XPG3 applications. + +// ANSI C and ISO 9899:1990 say the type long long doesn't exist in strictly +// conforming environments. ISO 9899:1999 says it does. +// +// The presence of _LONGLONG_TYPE says "long long exists" which is therefore +// defined in all but strictly conforming environments that disallow it. + +// The following macro defines a value for the ISO C99 restrict +// keyword so that _RESTRICT_KYWD resolves to "restrict" if +// an ISO C99 compiler is used, "__restrict" for c++ and "" (null string) +// if any other compiler is used. This allows for the use of single +// prototype declarations regardless of compiler version. + +// The following macro defines a value for the ISO C11 _Noreturn +// keyword so that _NORETURN_KYWD resolves to "_Noreturn" if +// an ISO C11 compiler is used and "" (null string) if any other +// compiler is used. This allows for the use of single prototype +// declarations regardless of compiler version. + +// ISO/IEC 9899:2011 Annex K + +// The following macro indicates header support for the ANSI C++ +// standard. The ISO/IEC designation for this is ISO/IEC FDIS 14882. + +// The following macro indicates header support for the C99 standard, +// ISO/IEC 9899:1999, Programming Languages - C. + +// The following macro indicates header support for the C11 standard, +// ISO/IEC 9899:2011, Programming Languages - C. + +// The following macro indicates header support for the C11 standard, +// ISO/IEC 9899:2011 Annex K, Programming Languages - C. + +// The following macro indicates header support for DTrace. The value is an +// integer that corresponds to the major version number for DTrace. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2016 Joyent, Inc. + +// Machine dependent definitions moved to . +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2007 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Machine dependent types: +// +// intel ia32 Version + +type X_label_t = struct{ Fval [8]int64 } /* machtypes.h:59:9 */ + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved. +// Copyright 2015, Joyent, Inc. All rights reserved. +// Copyright 2022 Garrett D'Amore +// + +// Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// University Copyright- Copyright (c) 1982, 1986, 1988 +// The Regents of the University of California +// All Rights Reserved +// +// University Acknowledgment- Portions of this document are derived from +// software developed by the University of California, Berkeley, and its +// contributors. + +// Copyright (c) 2013, OmniTI Computer Consulting, Inc. All rights reserved. + +// Copyright (c) 2014, Joyent, Inc. All rights reserved. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2021 Oxide Computer Company + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2015 EveryCity Ltd. All rights reserved. +// Copyright 2019 Joyent, Inc. + +// This file contains definitions designed to enable different compilers +// to be used harmoniously on Solaris systems. + +// Allow for version tests for compiler bugs and features. + +// analogous to lint's PRINTFLIKEn + +// Handle the kernel printf routines that can take '%b' too + +// This one's pretty obvious -- the function never returns + +// The function is 'extern inline' and expects GNU C89 behaviour, not C99 +// behaviour. +// +// Should only be used on 'extern inline' definitions for GCC. + +// The function has control flow such that it may return multiple times (in +// the manner of setjmp or vfork) + +// This is an appropriate label for functions that do not +// modify their arguments, e.g. strlen() + +// This is a stronger form of __pure__. Can be used for functions +// that do not modify their arguments and don't depend on global +// memory. + +// This attribute, attached to a variable, means that the variable is meant to +// be possibly unused. GCC will not produce a warning for this variable. + +// Shorthand versions for readability + +// In release build, disable warnings about variables +// which are used only for debugging. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2016 Joyent, Inc. + +// This header file serves to group a set of well known defines and to +// set these for each instruction set architecture. These defines may +// be divided into two groups; characteristics of the processor and +// implementation choices for Solaris on a processor. +// +// Processor Characteristics: +// +// _LITTLE_ENDIAN / _BIG_ENDIAN: +// The natural byte order of the processor. A pointer to an int points +// to the least/most significant byte of that int. +// +// _STACK_GROWS_UPWARD / _STACK_GROWS_DOWNWARD: +// The processor specific direction of stack growth. A push onto the +// stack increases/decreases the stack pointer, so it stores data at +// successively higher/lower addresses. (Stackless machines ignored +// without regrets). +// +// _LONG_LONG_HTOL / _LONG_LONG_LTOH: +// A pointer to a long long points to the most/least significant long +// within that long long. +// +// _BIT_FIELDS_HTOL / _BIT_FIELDS_LTOH: +// The C compiler assigns bit fields from the high/low to the low/high end +// of an int (most to least significant vs. least to most significant). +// +// _IEEE_754: +// The processor (or supported implementations of the processor) +// supports the ieee-754 floating point standard. No other floating +// point standards are supported (or significant). Any other supported +// floating point formats are expected to be cased on the ISA processor +// symbol. +// +// _CHAR_IS_UNSIGNED / _CHAR_IS_SIGNED: +// The C Compiler implements objects of type `char' as `unsigned' or +// `signed' respectively. This is really an implementation choice of +// the compiler writer, but it is specified in the ABI and tends to +// be uniform across compilers for an instruction set architecture. +// Hence, it has the properties of a processor characteristic. +// +// _CHAR_ALIGNMENT / _SHORT_ALIGNMENT / _INT_ALIGNMENT / _LONG_ALIGNMENT / +// _LONG_LONG_ALIGNMENT / _DOUBLE_ALIGNMENT / _LONG_DOUBLE_ALIGNMENT / +// _POINTER_ALIGNMENT / _FLOAT_ALIGNMENT: +// The ABI defines alignment requirements of each of the primitive +// object types. Some, if not all, may be hardware requirements as +// well. The values are expressed in "byte-alignment" units. +// +// _MAX_ALIGNMENT: +// The most stringent alignment requirement as specified by the ABI. +// Equal to the maximum of all the above _XXX_ALIGNMENT values. +// +// _MAX_ALIGNMENT_TYPE: +// The name of the C type that has the value descried in _MAX_ALIGNMENT. +// +// _ALIGNMENT_REQUIRED: +// True or false (1 or 0) whether or not the hardware requires the ABI +// alignment. +// +// _LONG_LONG_ALIGNMENT_32 +// The 32-bit ABI supported by a 64-bit kernel may have different +// alignment requirements for primitive object types. The value of this +// identifier is expressed in "byte-alignment" units. +// +// _HAVE_CPUID_INSN +// This indicates that the architecture supports the 'cpuid' +// instruction as defined by Intel. (Intel allows other vendors +// to extend the instruction for their own purposes.) +// +// +// Implementation Choices: +// +// _ILP32 / _LP64: +// This specifies the compiler data type implementation as specified in +// the relevant ABI. The choice between these is strongly influenced +// by the underlying hardware, but is not absolutely tied to it. +// Currently only two data type models are supported: +// +// _ILP32: +// Int/Long/Pointer are 32 bits. This is the historical UNIX +// and Solaris implementation. Due to its historical standing, +// this is the default case. +// +// _LP64: +// Long/Pointer are 64 bits, Int is 32 bits. This is the chosen +// implementation for 64-bit ABIs such as SPARC V9. +// +// _I32LPx: +// A compilation environment where 'int' is 32-bit, and +// longs and pointers are simply the same size. +// +// In all cases, Char is 8 bits and Short is 16 bits. +// +// _SUNOS_VTOC_8 / _SUNOS_VTOC_16 / _SVR4_VTOC_16: +// This specifies the form of the disk VTOC (or label): +// +// _SUNOS_VTOC_8: +// This is a VTOC form which is upwardly compatible with the +// SunOS 4.x disk label and allows 8 partitions per disk. +// +// _SUNOS_VTOC_16: +// In this format the incore vtoc image matches the ondisk +// version. It allows 16 slices per disk, and is not +// compatible with the SunOS 4.x disk label. +// +// Note that these are not the only two VTOC forms possible and +// additional forms may be added. One possible form would be the +// SVr4 VTOC form. The symbol for that is reserved now, although +// it is not implemented. +// +// _SVR4_VTOC_16: +// This VTOC form is compatible with the System V Release 4 +// VTOC (as implemented on the SVr4 Intel and 3b ports) with +// 16 partitions per disk. +// +// +// _DMA_USES_PHYSADDR / _DMA_USES_VIRTADDR +// This describes the type of addresses used by system DMA: +// +// _DMA_USES_PHYSADDR: +// This type of DMA, used in the x86 implementation, +// requires physical addresses for DMA buffers. The 24-bit +// addresses used by some legacy boards is the source of the +// "low-memory" (<16MB) requirement for some devices using DMA. +// +// _DMA_USES_VIRTADDR: +// This method of DMA allows the use of virtual addresses for +// DMA transfers. +// +// _FIRMWARE_NEEDS_FDISK / _NO_FDISK_PRESENT +// This indicates the presence/absence of an fdisk table. +// +// _FIRMWARE_NEEDS_FDISK +// The fdisk table is required by system firmware. If present, +// it allows a disk to be subdivided into multiple fdisk +// partitions, each of which is equivalent to a separate, +// virtual disk. This enables the co-existence of multiple +// operating systems on a shared hard disk. +// +// _NO_FDISK_PRESENT +// If the fdisk table is absent, it is assumed that the entire +// media is allocated for a single operating system. +// +// _HAVE_TEM_FIRMWARE +// Defined if this architecture has the (fallback) option of +// using prom_* calls for doing I/O if a suitable kernel driver +// is not available to do it. +// +// _DONT_USE_1275_GENERIC_NAMES +// Controls whether or not device tree node names should +// comply with the IEEE 1275 "Generic Names" Recommended +// Practice. With _DONT_USE_GENERIC_NAMES, device-specific +// names identifying the particular device will be used. +// +// __i386_COMPAT +// This indicates whether the i386 ABI is supported as a *non-native* +// mode for the platform. When this symbol is defined: +// - 32-bit xstat-style system calls are enabled +// - 32-bit xmknod-style system calls are enabled +// - 32-bit system calls use i386 sizes -and- alignments +// +// Note that this is NOT defined for the i386 native environment! +// +// __x86 +// This is ONLY a synonym for defined(__i386) || defined(__amd64) +// which is useful only insofar as these two architectures share +// common attributes. Analogous to __sparc. +// +// _PSM_MODULES +// This indicates whether or not the implementation uses PSM +// modules for processor support, reading /etc/mach from inside +// the kernel to extract a list. +// +// _RTC_CONFIG +// This indicates whether or not the implementation uses /etc/rtc_config +// to configure the real-time clock in the kernel. +// +// _UNIX_KRTLD +// This indicates that the implementation uses a dynamically +// linked unix + krtld to form the core kernel image at boot +// time, or (in the absence of this symbol) a prelinked kernel image. +// +// _OBP +// This indicates the firmware interface is OBP. +// +// _SOFT_HOSTID +// This indicates that the implementation obtains the hostid +// from the file /etc/hostid, rather than from hardware. + +// The following set of definitions characterize Solaris on AMD's +// 64-bit systems. + +// Define the appropriate "processor characteristics" + +// Different alignment constraints for the i386 ABI in compatibility mode + +// Define the appropriate "implementation choices". + +// The feature test macro __i386 is generic for all processors implementing +// the Intel 386 instruction set or a superset of it. Specifically, this +// includes all members of the 386, 486, and Pentium family of processors. + +// Values of _POSIX_C_SOURCE +// +// undefined not a POSIX compilation +// 1 POSIX.1-1990 compilation +// 2 POSIX.2-1992 compilation +// 199309L POSIX.1b-1993 compilation (Real Time) +// 199506L POSIX.1c-1995 compilation (POSIX Threads) +// 200112L POSIX.1-2001 compilation (Austin Group Revision) +// 200809L POSIX.1-2008 compilation + +// The feature test macros __XOPEN_OR_POSIX, _STRICT_STDC, _STRICT_SYMBOLS, +// and _STDC_C99 are Sun implementation specific macros created in order to +// compress common standards specified feature test macros for easier reading. +// These macros should not be used by the application developer as +// unexpected results may occur. Instead, the user should reference +// standards(7) for correct usage of the standards feature test macros. +// +// __XOPEN_OR_POSIX Used in cases where a symbol is defined by both +// X/Open or POSIX or in the negative, when neither +// X/Open or POSIX defines a symbol. +// +// _STRICT_STDC __STDC__ is specified by the C Standards and defined +// by the compiler. For Sun compilers the value of +// __STDC__ is either 1, 0, or not defined based on the +// compilation mode (see cc(1)). When the value of +// __STDC__ is 1 and in the absence of any other feature +// test macros, the namespace available to the application +// is limited to only those symbols defined by the C +// Standard. _STRICT_STDC provides a more readable means +// of identifying symbols defined by the standard, or in +// the negative, symbols that are extensions to the C +// Standard. See additional comments for GNU C differences. +// +// _STDC_C99 __STDC_VERSION__ is specified by the C standards and +// defined by the compiler and indicates the version of +// the C standard. A value of 199901L indicates a +// compiler that complies with ISO/IEC 9899:1999, other- +// wise known as the C99 standard. +// +// _STDC_C11 Like _STDC_C99 except that the value of __STDC_VERSION__ +// is 201112L indicating a compiler that compiles with +// ISO/IEC 9899:2011, otherwise known as the C11 standard. +// +// _STRICT_SYMBOLS Used in cases where symbol visibility is restricted +// by the standards, and the user has not explicitly +// relaxed the strictness via __EXTENSIONS__. + +// ISO/IEC 9899:1990 and it's revisions, ISO/IEC 9899:1999 and ISO/IEC +// 99899:2011 specify the following predefined macro name: +// +// __STDC__ The integer constant 1, intended to indicate a conforming +// implementation. +// +// Furthermore, a strictly conforming program shall use only those features +// of the language and library specified in these standards. A conforming +// implementation shall accept any strictly conforming program. +// +// Based on these requirements, Sun's C compiler defines __STDC__ to 1 for +// strictly conforming environments and __STDC__ to 0 for environments that +// use ANSI C semantics but allow extensions to the C standard. For non-ANSI +// C semantics, Sun's C compiler does not define __STDC__. +// +// The GNU C project interpretation is that __STDC__ should always be defined +// to 1 for compilation modes that accept ANSI C syntax regardless of whether +// or not extensions to the C standard are used. Violations of conforming +// behavior are conditionally flagged as warnings via the use of the +// -pedantic option. In addition to defining __STDC__ to 1, the GNU C +// compiler also defines __STRICT_ANSI__ as a means of specifying strictly +// conforming environments using the -ansi or -std= options. +// +// In the absence of any other compiler options, Sun and GNU set the value +// of __STDC__ as follows when using the following options: +// +// Value of __STDC__ __STRICT_ANSI__ +// +// cc -Xa (default) 0 undefined +// cc -Xt (transitional) 0 undefined +// cc -Xc (strictly conforming) 1 undefined +// cc -Xs (K&R C) undefined undefined +// +// gcc (default) 1 undefined +// gcc -ansi, -std={c89, c99,...) 1 defined +// gcc -traditional (K&R) undefined undefined +// +// The default compilation modes for Sun C compilers versus GNU C compilers +// results in a differing value for __STDC__ which results in a more +// restricted namespace when using Sun compilers. To allow both GNU and Sun +// interpretations to peacefully co-exist, we use the following Sun +// implementation _STRICT_STDC_ macro: + +// Compiler complies with ISO/IEC 9899:1999 or ISO/IEC 9989:2011 + +// Use strict symbol visibility. + +// This is a variant of _STRICT_SYMBOLS that is meant to cover headers that are +// governed by POSIX, but have not been governed by ISO C. One can go two ways +// on what should happen if an application actively includes (not transitively) +// a header that isn't part of the ISO C spec, we opt to say that if someone has +// gone out of there way then they're doing it for a reason and that is an act +// of non-compliance and therefore it's not up to us to hide away every symbol. +// +// In general, prefer using _STRICT_SYMBOLS, but this is here in particular for +// cases where in the past we have only used a POSIX related check and we don't +// wish to make something stricter. Often applications are relying on the +// ability to, or more realistically unwittingly, have _STRICT_STDC declared and +// still use these interfaces. + +// Large file interfaces: +// +// _LARGEFILE_SOURCE +// 1 large file-related additions to POSIX +// interfaces requested (fseeko, etc.) +// _LARGEFILE64_SOURCE +// 1 transitional large-file-related interfaces +// requested (seek64, stat64, etc.) +// +// The corresponding announcement macros are respectively: +// _LFS_LARGEFILE +// _LFS64_LARGEFILE +// (These are set in .) +// +// Requesting _LARGEFILE64_SOURCE implies requesting _LARGEFILE_SOURCE as +// well. +// +// The large file interfaces are made visible regardless of the initial values +// of the feature test macros under certain circumstances: +// - If no explicit standards-conforming environment is requested (neither +// of _POSIX_SOURCE nor _XOPEN_SOURCE is defined and the value of +// __STDC__ does not imply standards conformance). +// - Extended system interfaces are explicitly requested (__EXTENSIONS__ +// is defined). +// - Access to in-kernel interfaces is requested (_KERNEL or _KMEMUSER is +// defined). (Note that this dependency is an artifact of the current +// kernel implementation and may change in future releases.) + +// Large file compilation environment control: +// +// The setting of _FILE_OFFSET_BITS controls the size of various file-related +// types and governs the mapping between file-related source function symbol +// names and the corresponding binary entry points. +// +// In the 32-bit environment, the default value is 32; if not set, set it to +// the default here, to simplify tests in other headers. +// +// In the 64-bit compilation environment, the only value allowed is 64. + +// Use of _XOPEN_SOURCE +// +// The following X/Open specifications are supported: +// +// X/Open Portability Guide, Issue 3 (XPG3) +// X/Open CAE Specification, Issue 4 (XPG4) +// X/Open CAE Specification, Issue 4, Version 2 (XPG4v2) +// X/Open CAE Specification, Issue 5 (XPG5) +// Open Group Technical Standard, Issue 6 (XPG6), also referred to as +// IEEE Std. 1003.1-2001 and ISO/IEC 9945:2002. +// Open Group Technical Standard, Issue 7 (XPG7), also referred to as +// IEEE Std. 1003.1-2008 and ISO/IEC 9945:2009. +// +// XPG4v2 is also referred to as UNIX 95 (SUS or SUSv1). +// XPG5 is also referred to as UNIX 98 or the Single Unix Specification, +// Version 2 (SUSv2) +// XPG6 is the result of a merge of the X/Open and POSIX specifications +// and as such is also referred to as IEEE Std. 1003.1-2001 in +// addition to UNIX 03 and SUSv3. +// XPG7 is also referred to as UNIX 08 and SUSv4. +// +// When writing a conforming X/Open application, as per the specification +// requirements, the appropriate feature test macros must be defined at +// compile time. These are as follows. For more info, see standards(7). +// +// Feature Test Macro Specification +// ------------------------------------------------ ------------- +// _XOPEN_SOURCE XPG3 +// _XOPEN_SOURCE && _XOPEN_VERSION = 4 XPG4 +// _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED = 1 XPG4v2 +// _XOPEN_SOURCE = 500 XPG5 +// _XOPEN_SOURCE = 600 (or POSIX_C_SOURCE=200112L) XPG6 +// _XOPEN_SOURCE = 700 (or POSIX_C_SOURCE=200809L) XPG7 +// +// In order to simplify the guards within the headers, the following +// implementation private test macros have been created. Applications +// must NOT use these private test macros as unexpected results will +// occur. +// +// Note that in general, the use of these private macros is cumulative. +// For example, the use of _XPG3 with no other restrictions on the X/Open +// namespace will make the symbols visible for XPG3 through XPG6 +// compilation environments. The use of _XPG4_2 with no other X/Open +// namespace restrictions indicates that the symbols were introduced in +// XPG4v2 and are therefore visible for XPG4v2 through XPG6 compilation +// environments, but not for XPG3 or XPG4 compilation environments. +// +// _XPG3 X/Open Portability Guide, Issue 3 (XPG3) +// _XPG4 X/Open CAE Specification, Issue 4 (XPG4) +// _XPG4_2 X/Open CAE Specification, Issue 4, Version 2 (XPG4v2/UNIX 95/SUS) +// _XPG5 X/Open CAE Specification, Issue 5 (XPG5/UNIX 98/SUSv2) +// _XPG6 Open Group Technical Standard, Issue 6 (XPG6/UNIX 03/SUSv3) +// _XPG7 Open Group Technical Standard, Issue 7 (XPG7/UNIX 08/SUSv4) + +// X/Open Portability Guide, Issue 3 + +// _XOPEN_VERSION is defined by the X/Open specifications and is not +// normally defined by the application, except in the case of an XPG4 +// application. On the implementation side, _XOPEN_VERSION defined with +// the value of 3 indicates an XPG3 application. _XOPEN_VERSION defined +// with the value of 4 indicates an XPG4 or XPG4v2 (UNIX 95) application. +// _XOPEN_VERSION defined with a value of 500 indicates an XPG5 (UNIX 98) +// application and with a value of 600 indicates an XPG6 (UNIX 03) +// application and with a value of 700 indicates an XPG7 (UNIX 08). +// The appropriate version is determined by the use of the +// feature test macros described earlier. The value of _XOPEN_VERSION +// defaults to 3 otherwise indicating support for XPG3 applications. + +// ANSI C and ISO 9899:1990 say the type long long doesn't exist in strictly +// conforming environments. ISO 9899:1999 says it does. +// +// The presence of _LONGLONG_TYPE says "long long exists" which is therefore +// defined in all but strictly conforming environments that disallow it. + +// The following macro defines a value for the ISO C99 restrict +// keyword so that _RESTRICT_KYWD resolves to "restrict" if +// an ISO C99 compiler is used, "__restrict" for c++ and "" (null string) +// if any other compiler is used. This allows for the use of single +// prototype declarations regardless of compiler version. + +// The following macro defines a value for the ISO C11 _Noreturn +// keyword so that _NORETURN_KYWD resolves to "_Noreturn" if +// an ISO C11 compiler is used and "" (null string) if any other +// compiler is used. This allows for the use of single prototype +// declarations regardless of compiler version. + +// ISO/IEC 9899:2011 Annex K + +// The following macro indicates header support for the ANSI C++ +// standard. The ISO/IEC designation for this is ISO/IEC FDIS 14882. + +// The following macro indicates header support for the C99 standard, +// ISO/IEC 9899:1999, Programming Languages - C. + +// The following macro indicates header support for the C11 standard, +// ISO/IEC 9899:2011, Programming Languages - C. + +// The following macro indicates header support for the C11 standard, +// ISO/IEC 9899:2011 Annex K, Programming Languages - C. + +// The following macro indicates header support for DTrace. The value is an +// integer that corresponds to the major version number for DTrace. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2016 Joyent, Inc. + +// Machine dependent definitions moved to . +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2007 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Machine dependent types: +// +// intel ia32 Version + +type Label_t = X_label_t /* machtypes.h:59:54 */ + +type Lock_t = uint8 /* machtypes.h:63:23 */ // lock work for busy wait + +// Include fixed width type declarations proposed by the ISO/JTC1/SC22/WG14 C +// committee's working draft for the revision of the current ISO C standard, +// ISO/IEC 9899:1990 Programming language - C. These are not currently +// required by any standard but constitute a useful, general purpose set +// of type definitions which is namespace clean with respect to all standards. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2014 Garrett D'Amore +// +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// This file, , is part of the Sun Microsystems implementation +// of defined in the ISO C standard, ISO/IEC 9899:1999 +// Programming language - C. +// +// Programs/Modules should not directly include this file. Access to the +// types defined in this file should be through the inclusion of one of the +// following files: +// +// Provides only the "_t" types defined in this +// file which is a subset of the contents of +// . (This can be appropriate for +// all programs/modules except those claiming +// ANSI-C conformance.) +// +// Provides the Kernel and Driver appropriate +// components of . +// +// For use by applications. +// +// See these files for more details. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Basic / Extended integer types +// +// The following defines the basic fixed-size integer types. +// +// Implementations are free to typedef them to Standard C integer types or +// extensions that they support. If an implementation does not support one +// of the particular integer data types below, then it should not define the +// typedefs and macros corresponding to that data type. Note that int8_t +// is not defined in -Xs mode on ISAs for which the ABI specifies "char" +// as an unsigned entity because there is no way to define an eight bit +// signed integral. +type Int8_t = int8 /* int_types.h:75:16 */ +type Int16_t = int16 /* int_types.h:79:17 */ +type Int32_t = int32 /* int_types.h:80:15 */ +type Int64_t = int64 /* int_types.h:83:16 */ + +type Uint8_t = uint8 /* int_types.h:91:24 */ +type Uint16_t = uint16 /* int_types.h:92:25 */ +type Uint32_t = uint32 /* int_types.h:93:23 */ +type Uint64_t = uint64 /* int_types.h:95:24 */ + +// intmax_t and uintmax_t are to be the longest (in number of bits) signed +// and unsigned integer types supported by the implementation. +type Intmax_t = int64 /* int_types.h:107:19 */ +type Uintmax_t = uint64 /* int_types.h:108:19 */ + +// intptr_t and uintptr_t are signed and unsigned integer types large enough +// to hold any data pointer; that is, data pointers can be assigned into or +// from these integer types without losing precision. +type Intptr_t = int64 /* int_types.h:120:16 */ +type Uintptr_t = uint64 /* int_types.h:121:24 */ + +// The following define the fastest integer types that can hold the +// specified number of bits. +type Int_fast8_t = int8 /* int_types.h:132:16 */ +type Int_fast16_t = int32 /* int_types.h:136:15 */ +type Int_fast32_t = int32 /* int_types.h:137:15 */ +type Int_fast64_t = int64 /* int_types.h:139:16 */ + +type Uint_fast8_t = uint8 /* int_types.h:146:24 */ +type Uint_fast16_t = uint32 /* int_types.h:147:23 */ +type Uint_fast32_t = uint32 /* int_types.h:148:23 */ +type Uint_fast64_t = uint64 /* int_types.h:150:24 */ + +// The following define the smallest integer types that can hold the +// specified number of bits. +type Int_least8_t = int8 /* int_types.h:162:16 */ +type Int_least16_t = int16 /* int_types.h:166:17 */ +type Int_least32_t = int32 /* int_types.h:167:15 */ +type Int_least64_t = int64 /* int_types.h:169:16 */ + +// If these are changed, please update char16_t and char32_t in head/uchar.h. +type Uint_least8_t = uint8 /* int_types.h:179:24 */ +type Uint_least16_t = uint16 /* int_types.h:180:25 */ +type Uint_least32_t = uint32 /* int_types.h:181:23 */ +type Uint_least64_t = uint64 /* int_types.h:183:24 */ + +// Strictly conforming ANSI C environments prior to the 1999 +// revision of the C Standard (ISO/IEC 9899:1999) do not have +// the long long data type. +type Longlong_t = int64 /* types.h:72:20 */ +type U_longlong_t = uint64 /* types.h:73:28 */ + +// These types (t_{u}scalar_t) exist because the XTI/TPI/DLPI standards had +// to use them instead of int32_t and uint32_t because DEC had +// shipped 64-bit wide. +type T_scalar_t = int32 /* types.h:92:18 */ +type T_uscalar_t = uint32 /* types.h:93:18 */ + +// POSIX Extensions +type Uchar_t = uint8 /* types.h:102:23 */ +type Ushort_t = uint16 /* types.h:103:24 */ +type Uint_t = uint32 /* types.h:104:22 */ +type Ulong_t = uint64 /* types.h:105:23 */ + +type Caddr_t = uintptr /* types.h:107:15 */ // ? type +type Daddr_t = int64 /* types.h:108:15 */ // type +type Cnt_t = int16 /* types.h:109:16 */ // pointer difference + +// VM-related types +type Pfn_t = uint64 /* types.h:123:18 */ // page frame number +type Pgcnt_t = uint64 /* types.h:124:18 */ // number of pages +type Spgcnt_t = int64 /* types.h:125:15 */ // signed number of pages + +type Use_t = uint8 /* types.h:127:18 */ // use count for swap. +type Sysid_t = int16 /* types.h:128:16 */ +type Index_t = int16 /* types.h:129:16 */ +type Timeout_id_t = uintptr /* types.h:130:15 */ // opaque handle from timeout(9F) +type Bufcall_id_t = uintptr /* types.h:131:15 */ // opaque handle from bufcall(9F) + +// The size of off_t and related types depends on the setting of +// _FILE_OFFSET_BITS. (Note that other system headers define other types +// related to those defined here.) +// +// If _LARGEFILE64_SOURCE is defined, variants of these types that are +// explicitly 64 bits wide become available. + +type Off_t = int64 /* types.h:145:15 */ // offsets within files + +type Off64_t = int64 /* types.h:152:16 */ // offsets within files + +type Ino_t = uint64 /* types.h:161:18 */ // expanded inode type +type Blkcnt_t = int64 /* types.h:162:15 */ // count of file blocks +type Fsblkcnt_t = uint64 /* types.h:163:18 */ // count of file system blocks +type Fsfilcnt_t = uint64 /* types.h:164:18 */ // count of files + +type Ino64_t = uint64 /* types.h:174:16 */ // expanded inode type +type Blkcnt64_t = int64 /* types.h:175:18 */ // count of file blocks +type Fsblkcnt64_t = uint64 /* types.h:176:20 */ // count of file system blocks +type Fsfilcnt64_t = uint64 /* types.h:177:20 */ // count of files + +type Blksize_t = int32 /* types.h:187:14 */ // used for block sizes + +// The boolean_t type has had a varied amount of exposure over the years in +// terms of how its enumeration constants have been exposed. In particular, it +// originally used the __XOPEN_OR_POSIX macro to determine whether to prefix the +// B_TRUE and B_FALSE with an underscore. This check never included the +// question of if we were in a strict ANSI C environment or whether extensions +// were defined. +// +// Compilers such as clang started defaulting to always including an +// XOPEN_SOURCE declaration on behalf of users, but also noted __EXTENSIONS__. +// This would lead most software that had used the non-underscore versions to +// need it. As such, we have adjusted the non-strict XOPEN environment to retain +// its old behavior so as to minimize namespace pollution; however, we instead +// include both variants of the definitions in the generally visible version +// allowing software written in either world to hopefully end up in a good +// place. +// +// This isn't perfect, but should hopefully minimize the pain for folks actually +// trying to build software. +type Boolean_t = uint32 /* types.h:215:69 */ + +// The {u,}pad64_t types can be used in structures such that those structures +// may be accessed by code produced by compilation environments which don't +// support a 64 bit integral datatype. The intention is not to allow +// use of these fields in such environments, but to maintain the alignment +// and offsets of the structure. +// +// Similar comments for {u,}pad128_t. +// +// Note that these types do NOT generate any stronger alignment constraints +// than those available in the underlying ABI. See +type Pad64_t = int64 /* types.h:240:18 */ +type Upad64_t = uint64 /* types.h:241:18 */ + +type Pad128_t = struct { + F_q float64 + F__ccgo_pad1 [8]byte +} /* types.h:257:3 */ + +type Upad128_t = struct { + F_q float64 + F__ccgo_pad1 [8]byte +} /* types.h:262:3 */ + +type Offset_t = int64 /* types.h:264:20 */ +type U_offset_t = uint64 /* types.h:265:22 */ +type Len_t = uint64 /* types.h:266:22 */ +type Diskaddr_t = uint64 /* types.h:267:22 */ + +// Definitions remaining from previous partial support for 64-bit file +// offsets. This partial support for devices greater than 2gb requires +// compiler support for long long. +type Lloff_t = struct{ F_f int64 } /* types.h:284:3 */ + +type Lldaddr_t = struct{ F_f int64 } /* types.h:304:3 */ + +type K_fltset_t = uint32 /* types.h:317:16 */ // kernel fault set type + +// The following type is for various kinds of identifiers. The +// actual type must be the same for all since some system calls +// (such as sigsend) take arguments that may be any of these +// types. The enumeration type idtype_t defined in sys/procset.h +// is used to indicate what type of id is being specified -- +// a process id, process group id, session id, scheduling class id, +// user id, group id, project id, task id or zone id. +type Id_t = int32 /* types.h:329:14 */ + +type Lgrp_id_t = int32 /* types.h:334:15 */ // lgroup ID + +// Type useconds_t is an unsigned integral type capable of storing +// values at least in the range of zero to 1,000,000. +type Useconds_t = uint32 /* types.h:340:17 */ // Time, in microseconds + +type Suseconds_t = int64 /* types.h:344:14 */ // signed # of microseconds + +// Typedefs for dev_t components. +type Major_t = uint32 /* types.h:351:16 */ // major part of device number +type Minor_t = uint32 /* types.h:352:16 */ // minor part of device number + +// The data type of a thread priority. +type Pri_t = int16 /* types.h:361:15 */ + +// The data type for a CPU flags field. (Can be extended to larger unsigned +// types, if needed, limited by ability to update atomically.) +type Cpu_flag_t = uint16 /* types.h:367:18 */ + +// For compatibility reasons the following typedefs (prefixed o_) +// can't grow regardless of the EFT definition. Although, +// applications should not explicitly use these typedefs +// they may be included via a system header definition. +// WARNING: These typedefs may be removed in a future +// release. +// +// ex. the definitions in s5inode.h (now obsoleted) +// remained small to preserve compatibility +// in the S5 file system type. +type O_mode_t = uint16 /* types.h:380:18 */ // old file attribute type +type O_dev_t = int16 /* types.h:381:15 */ // old device type +type O_uid_t = uint16 /* types.h:382:18 */ // old UID type +type O_gid_t = uint16 /* types.h:383:17 */ // old GID type +type O_nlink_t = int16 /* types.h:384:15 */ // old file link type +type O_pid_t = int16 /* types.h:385:15 */ // old process id type +type O_ino_t = uint16 /* types.h:386:18 */ // old inode type + +// POSIX and XOPEN Declarations +type Key_t = int32 /* types.h:392:13 */ // IPC key type +type Mode_t = uint32 /* types.h:394:16 */ // file attribute type + +type Uid_t = uint32 /* types.h:401:22 */ // UID type + +type Gid_t = uint32 /* types.h:404:15 */ // GID type + +type Datalink_id_t = uint32 /* types.h:406:18 */ +type Vrid_t = uint32 /* types.h:407:18 */ + +type Taskid_t = int32 /* types.h:409:17 */ +type Projid_t = int32 /* types.h:410:17 */ +type Poolid_t = int32 /* types.h:411:14 */ +type Zoneid_t = int32 /* types.h:412:14 */ +type Ctid_t = int32 /* types.h:413:14 */ + +// POSIX definitions are same as defined in thread.h and synch.h. +// Any changes made to here should be reflected in corresponding +// files as described in comments. +type Pthread_t = uint32 /* types.h:420:16 */ // = thread_t in thread.h +type Pthread_key_t = uint32 /* types.h:421:16 */ // = thread_key_t in thread.h + +// "Magic numbers" tagging synchronization object types + +type X_pthread_mutex = struct { + F__pthread_mutex_flags struct { + F__pthread_mutex_flag1 uint16 + F__pthread_mutex_flag2 uint8 + F__pthread_mutex_ceiling uint8 + F__pthread_mutex_type uint16 + F__pthread_mutex_magic uint16 + } + F__pthread_mutex_lock struct { + F__ccgo_pad1 [0]uint64 + F__pthread_mutex_lock64 struct{ F__pthread_mutex_pad [8]uint8 } + } + F__pthread_mutex_data uint64 +} /* types.h:429:9 */ + +// = thread_key_t in thread.h + +// "Magic numbers" tagging synchronization object types + +type Pthread_mutex_t = X_pthread_mutex /* types.h:448:3 */ + +type X_pthread_cond = struct { + F__pthread_cond_flags struct { + F__pthread_cond_flag [4]uint8 + F__pthread_cond_type uint16 + F__pthread_cond_magic uint16 + } + F__pthread_cond_data uint64 +} /* types.h:450:9 */ + +type Pthread_cond_t = X_pthread_cond /* types.h:457:3 */ + +// UNIX 98 Extension +type X_pthread_rwlock = struct { + F__pthread_rwlock_readers int32 + F__pthread_rwlock_type uint16 + F__pthread_rwlock_magic uint16 + F__pthread_rwlock_mutex Pthread_mutex_t + F__pthread_rwlock_readercv Pthread_cond_t + F__pthread_rwlock_writercv Pthread_cond_t +} /* types.h:462:9 */ + +// UNIX 98 Extension +type Pthread_rwlock_t = X_pthread_rwlock /* types.h:469:3 */ + +// SUSV3 +type Pthread_barrier_t = struct { + F__pthread_barrier_count uint32 + F__pthread_barrier_current uint32 + F__pthread_barrier_cycle uint64 + F__pthread_barrier_reserved uint64 + F__pthread_barrier_lock Pthread_mutex_t + F__pthread_barrier_cond Pthread_cond_t +} /* types.h:481:3 */ + +type Pthread_spinlock_t = Pthread_mutex_t /* types.h:483:25 */ + +// attributes for threads, dynamically allocated by library +type X_pthread_attr = struct{ F__pthread_attrp uintptr } /* types.h:488:9 */ + +// attributes for threads, dynamically allocated by library +type Pthread_attr_t = X_pthread_attr /* types.h:490:3 */ + +// attributes for mutex, dynamically allocated by library +type X_pthread_mutexattr = struct{ F__pthread_mutexattrp uintptr } /* types.h:495:9 */ + +// attributes for mutex, dynamically allocated by library +type Pthread_mutexattr_t = X_pthread_mutexattr /* types.h:497:3 */ + +// attributes for cond, dynamically allocated by library +type X_pthread_condattr = struct{ F__pthread_condattrp uintptr } /* types.h:502:9 */ + +// attributes for cond, dynamically allocated by library +type Pthread_condattr_t = X_pthread_condattr /* types.h:504:3 */ + +// pthread_once +type X_once = struct{ F__pthread_once_pad [4]uint64 } /* types.h:509:9 */ + +// pthread_once +type Pthread_once_t = X_once /* types.h:511:3 */ + +// UNIX 98 Extensions +// attributes for rwlock, dynamically allocated by library +type X_pthread_rwlockattr = struct{ F__pthread_rwlockattrp uintptr } /* types.h:517:9 */ + +// UNIX 98 Extensions +// attributes for rwlock, dynamically allocated by library +type Pthread_rwlockattr_t = X_pthread_rwlockattr /* types.h:519:3 */ + +// SUSV3 +// attributes for pthread_barrier_t, dynamically allocated by library +type Pthread_barrierattr_t = struct{ F__pthread_barrierattrp uintptr } /* types.h:527:3 */ + +type Dev_t = uint64 /* types.h:529:17 */ // expanded device type + +type Nlink_t = uint32 /* types.h:532:16 */ // file link type +type Pid_t = int32 /* types.h:533:13 */ // size of something in bytes + +type Ssize_t = int64 /* types.h:551:14 */ // size of something in bytes or -1 + +type Time_t = int64 /* types.h:559:15 */ // time of day in seconds + +type Clock_t = int64 /* types.h:564:15 */ // relative time in a specified resolution + +type Clockid_t = int32 /* types.h:569:13 */ // clock identifier type + +type Timer_t = int32 /* types.h:574:13 */ // timer identifier type + +// BEGIN CSTYLED +type Unchar = uint8 /* types.h:580:23 */ +type Ushort = uint16 /* types.h:581:24 */ +type Uint = uint32 /* types.h:582:22 */ +type Ulong = uint64 /* types.h:583:23 */ +// END CSTYLED + +// The following is the value of type id_t to use to indicate the +// caller's current id. See procset.h for the type idtype_t +// which defines which kind of id is being specified. + +// The following value of type pfn_t is used to indicate +// invalid page frame number. + +// BEGIN CSTYLED +type U_char = uint8 /* types.h:650:23 */ +type U_short = uint16 /* types.h:651:24 */ +type U_int = uint32 /* types.h:652:22 */ +type U_long = uint64 /* types.h:653:23 */ +type X_quad = struct{ Fval [2]int32 } /* types.h:654:9 */ + +type Quad_t = X_quad /* types.h:654:38 */ // used by UFS +type Quad = Quad_t /* types.h:655:17 */ // used by UFS +// END CSTYLED + +// Nested include for BSD/sockets source compatibility. +// (The select macros used to be defined here). +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// +// Copyright 2010 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// University Copyright- Copyright (c) 1982, 1986, 1988 +// The Regents of the University of California +// All Rights Reserved +// +// University Acknowledgment- Portions of this document are derived from +// software developed by the University of California, Berkeley, and its +// contributors. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2005 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Implementation-private. This header should not be included +// directly by an application. The application should instead +// include which includes this header conditionally +// depending on which feature test macros are defined. By default, +// this header is included by . X/Open and POSIX +// standards requirements result in this header being included +// by only under a restricted set of conditions. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Time expressed in seconds and nanoseconds + +type Timespec = struct { + Ftv_sec int64 + Ftv_nsec int64 +} /* time_impl.h:57:9 */ + +// used by UFS +// END CSTYLED + +// Nested include for BSD/sockets source compatibility. +// (The select macros used to be defined here). +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// +// Copyright 2010 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// University Copyright- Copyright (c) 1982, 1986, 1988 +// The Regents of the University of California +// All Rights Reserved +// +// University Acknowledgment- Portions of this document are derived from +// software developed by the University of California, Berkeley, and its +// contributors. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2005 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Implementation-private. This header should not be included +// directly by an application. The application should instead +// include which includes this header conditionally +// depending on which feature test macros are defined. By default, +// this header is included by . X/Open and POSIX +// standards requirements result in this header being included +// by only under a restricted set of conditions. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Time expressed in seconds and nanoseconds + +type Timespec_t = Timespec /* time_impl.h:60:3 */ + +type Timestruc_t = Timespec /* time_impl.h:81:25 */ // definition per SVr4 + +// The following has been left in for backward compatibility. Portable +// applications should not use the structure name timestruc. + +// Timer specification +type Itimerspec = struct { + Fit_interval struct { + Ftv_sec int64 + Ftv_nsec int64 + } + Fit_value struct { + Ftv_sec int64 + Ftv_nsec int64 + } +} /* time_impl.h:95:9 */ + +// definition per SVr4 + +// The following has been left in for backward compatibility. Portable +// applications should not use the structure name timestruc. + +// Timer specification +type Itimerspec_t = Itimerspec /* time_impl.h:98:3 */ + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright (c) 1982, 1986, 1993 Regents of the University of California. +// All rights reserved. The Berkeley software License Agreement +// specifies the terms and conditions for redistribution. + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2020 OmniOS Community Edition (OmniOSce) Association. + +// Copyright (c) 2013, 2016 by Delphix. All rights reserved. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Structure returned by gettimeofday(2) system call, +// and used in other calls. + +type Timeval = struct { + Ftv_sec int64 + Ftv_usec int64 +} /* time.h:54:1 */ + +type Timezone = struct { + Ftz_minuteswest int32 + Ftz_dsttime int32 +} /* time.h:86:1 */ + +// Needed for longlong_t type. Placement of this due to +// including which relies on the presense of the itimerval +// structure. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2021 Oxide Computer Company + +// Operations on timevals. + +// Names of the interval timers, and structure +// defining a timer setting. +// time and when system is running on +// behalf of the process. +// time profiling of multithreaded +// programs. + +type Itimerval = struct { + Fit_interval struct { + Ftv_sec int64 + Ftv_usec int64 + } + Fit_value struct { + Ftv_sec int64 + Ftv_usec int64 + } +} /* time.h:209:1 */ + +// Definitions for commonly used resolutions. + +// Time expressed as a 64-bit nanosecond counter. +type Hrtime_t = int64 /* time.h:265:20 */ + +// The inclusion of is historical and was added for +// backward compatibility in delta 1.2 when a number of definitions +// were moved out of . More recently, the timespec and +// itimerspec structure definitions, along with the _CLOCK_*, CLOCK_*, +// _TIMER_*, and TIMER_* symbols were moved to , +// which is now included by . This change was due to POSIX +// 1003.1b-1993 and X/Open UNIX 98 requirements. For non-POSIX and +// non-X/Open applications, including this header will still make +// visible these definitions. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1988 AT&T +// All Rights Reserved + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2007 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2010 Nexenta Systems, Inc. Al rights reserved. +// Copyright 2016 Joyent, Inc. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1988 AT&T +// All Rights Reserved + +// Copyright 2014 Garrett D'Amore +// Copyright 2014 PALO, Richard. +// +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// An application should not include this header directly. Instead it +// should be included only through the inclusion of other Sun headers. +// +// The contents of this header is limited to identifiers specified in the +// C Standard. Any new identifiers specified in future amendments to the +// C Standard must be placed in this header. If these new identifiers +// are required to also be in the C++ Standard "std" namespace, then for +// anything other than macro definitions, corresponding "using" directives +// must also be added to . + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// This file and its contents are supplied under the terms of the +// Common Development and Distribution License ("CDDL"), version 1.0. +// You may only use this file in accordance with the terms of version +// 1.0 of the CDDL. +// +// A full copy of the text of the CDDL should have accompanied this +// source. A copy of the CDDL is also available via the Internet at +// http://www.illumos.org/license/CDDL. + +// Copyright 2014-2016 PALO, Richard. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// POSIX.1-2008 requires that the NULL macro be cast to type void *. + +type Tm = struct { + Ftm_sec int32 + Ftm_min int32 + Ftm_hour int32 + Ftm_mday int32 + Ftm_mon int32 + Ftm_year int32 + Ftm_wday int32 + Ftm_yday int32 + Ftm_isdst int32 +} /* time_iso.h:80:1 */ + +// Neither X/Open nor POSIX allow the inclusion of for the +// definition of the sigevent structure. Both require the inclusion +// of and when using the timer_create() function. +// However, X/Open also specifies that the sigevent structure be defined +// in as described in the header . This prevents +// compiler warnings for applications that only include and not +// also . The sigval union and the sigevent structure is +// therefore defined both here and in which gets included +// via inclusion of . +type Sigval = struct { + F__ccgo_pad1 [0]uint64 + Fsival_int int32 + F__ccgo_pad2 [4]byte +} /* time.h:125:1 */ + +type Sigevent = struct { + Fsigev_notify int32 + Fsigev_signo int32 + Fsigev_value struct { + F__ccgo_pad1 [0]uint64 + Fsival_int int32 + F__ccgo_pad2 [4]byte + } + Fsigev_notify_function uintptr + Fsigev_notify_attributes uintptr + F__sigev_pad2 int32 + F__ccgo_pad1 [4]byte +} /* time.h:133:1 */ + +type Locale_t = uintptr /* time.h:292:24 */ + +// The inclusion of is needed for the FD_CLR, +// FD_ISSET, FD_SET, and FD_SETSIZE macros as well as the +// select() prototype defined in the XOpen specifications +// beginning with XSH4v2. Placement required after definition +// for itimerval. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// +// Copyright 2010 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// University Copyright- Copyright (c) 1982, 1986, 1988 +// The Regents of the University of California +// All Rights Reserved +// +// University Acknowledgment- Portions of this document are derived from +// software developed by the University of California, Berkeley, and its +// contributors. + +// The sigset_t type is defined in and duplicated +// in as a result of XPG4v2 requirements. XPG6 +// now allows the visibility of signal.h in this header, however +// an order of inclusion problem occurs as a result of inclusion +// of in under certain conditions. +// Rather than include here, we've duplicated +// the sigset_t type instead. This type is required for the XPG6 +// introduced pselect() function also declared in this header. +type Sigset_t = struct{ F__sigbits [4]uint32 } /* select.h:76:3 */ + +// Select uses bit masks of file descriptors in longs. +// These macros manipulate such bit fields. +// FD_SETSIZE may be defined by the user, but the default here +// should be >= RLIM_FD_MAX. + +type Fd_mask = int64 /* select.h:92:14 */ +type Fds_mask = int64 /* select.h:94:14 */ + +// The value of _NBBY needs to be consistant with the value +// of NBBY in . + +type Fd_set1 = struct{ Ffds_bits [1024]int64 } /* select.h:120:9 */ + +// The value of _NBBY needs to be consistant with the value +// of NBBY in . + +type Fd_set = Fd_set1 /* select.h:125:3 */ + +// _VOID was defined to be either void or char but this is not +// required because previous SunOS compilers have accepted the void +// type. However, because many system header and source files use the +// void keyword, the volatile keyword, and ANSI C function prototypes, +// non-ANSI compilers cannot compile the system anyway. The _VOID macro +// should therefore not be used and remains for source compatibility +// only. +// CSTYLED + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2014 Garrett D'Amore +// +// Copyright 2010 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright (c) 2015, Joyent, Inc. All rights reserved. + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// University Copyright- Copyright (c) 1982, 1986, 1988 +// The Regents of the University of California +// All Rights Reserved +// +// University Acknowledgment- Portions of this document are derived from +// software developed by the University of California, Berkeley, and its +// contributors. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2021 Oxide Computer Company + +// I/O parameter information. A uio structure describes the I/O which +// is to be performed by an operation. Typically the data movement will +// be performed by a routine such as uiomove(), which updates the uio +// structure to reflect what was done. + +type Iovec = struct { + Fiov_base uintptr + Fiov_len uint64 +} /* uio.h:68:9 */ + +// _VOID was defined to be either void or char but this is not +// required because previous SunOS compilers have accepted the void +// type. However, because many system header and source files use the +// void keyword, the volatile keyword, and ANSI C function prototypes, +// non-ANSI compilers cannot compile the system anyway. The _VOID macro +// should therefore not be used and remains for source compatibility +// only. +// CSTYLED + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2014 Garrett D'Amore +// +// Copyright 2010 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright (c) 2015, Joyent, Inc. All rights reserved. + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// University Copyright- Copyright (c) 1982, 1986, 1988 +// The Regents of the University of California +// All Rights Reserved +// +// University Acknowledgment- Portions of this document are derived from +// software developed by the University of California, Berkeley, and its +// contributors. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2021 Oxide Computer Company + +// I/O parameter information. A uio structure describes the I/O which +// is to be performed by an operation. Typically the data movement will +// be performed by a routine such as uiomove(), which updates the uio +// structure to reflect what was done. + +type Iovec_t = Iovec /* uio.h:75:3 */ + +// Segment flag values. +type Uio_seg_t = uint32 /* uio.h:93:70 */ + +type Uio = struct { + Fuio_iov uintptr + Fuio_iovcnt int32 + F__ccgo_pad1 [4]byte + F_uio_offset Lloff_t + Fuio_segflg uint32 + Fuio_fmode uint16 + Fuio_extflg uint16 + F_uio_limit Lloff_t + Fuio_resid int64 +} /* uio.h:95:9 */ + +type Uio_t = Uio /* uio.h:104:3 */ + +// Extended uio_t uioa_t used for asynchronous uio. +// +// Note: UIOA_IOV_MAX is defined and used as it is in "fs/vncalls.c" +// as there isn't a formal definition of IOV_MAX for the kernel. + +type Uioa_page_s = struct { + Fuioa_pfncnt int32 + F__ccgo_pad1 [4]byte + Fuioa_ppp uintptr + Fuioa_base uintptr + Fuioa_len uint64 +} /* uio.h:114:9 */ + +// Extended uio_t uioa_t used for asynchronous uio. +// +// Note: UIOA_IOV_MAX is defined and used as it is in "fs/vncalls.c" +// as there isn't a formal definition of IOV_MAX for the kernel. + +type Uioa_page_t = Uioa_page_s /* uio.h:119:3 */ + +type Uioa_s = struct { + Fuio_iov uintptr + Fuio_iovcnt int32 + F__ccgo_pad1 [4]byte + F_uio_offset Lloff_t + Fuio_segflg uint32 + Fuio_fmode uint16 + Fuio_extflg uint16 + F_uio_limit Lloff_t + Fuio_resid int64 + Fuioa_state uint32 + F__ccgo_pad2 [4]byte + Fuioa_mbytes int64 + Fuioa_lcur uintptr + Fuioa_lppp uintptr + Fuioa_hwst [4]uintptr + Fuioa_locked [16]Uioa_page_t +} /* uio.h:121:9 */ + +type Uioa_t = Uioa_s /* uio.h:139:3 */ + +// uio extensions +// +// PSARC 2009/478: Copy Reduction Interfaces +type Xuio_type_t = uint32 /* uio.h:150:3 */ + +type Xuio = struct { + Fxu_uio Uio_t + Fxu_type uint32 + F__ccgo_pad1 [4]byte + Fxu_ext struct { + Fxu_aio struct { + Fxu_a_state uint32 + F__ccgo_pad1 [4]byte + Fxu_a_mbytes int64 + Fxu_a_lcur uintptr + Fxu_a_lppp uintptr + Fxu_a_hwst [4]uintptr + Fxu_a_locked [16]Uioa_page_t + } + } +} /* uio.h:152:9 */ + +type Xuio_t = Xuio /* uio.h:189:3 */ + +// I/O direction. +type Uio_rw_t = uint32 /* uio.h:220:45 */ + +// uio_extflg: extended flags +// +// NOTE: This flag will be used in uiomove to determine if non-temporal +// access, ie, access bypassing caches, should be used. Filesystems that +// don't initialize this field could experience suboptimal performance due to +// the random data the field contains. +// +// NOTE: This flag is also used by uioasync callers to pass an extended +// uio_t (uioa_t), to uioasync enabled consumers. Unlike above all +// consumers of a uioa_t require the uio_extflg to be initialized. + +// Global uioasync capability shadow state. +type Uioasync_s = struct { + Fenabled uint32 + F__ccgo_pad1 [4]byte + Fmincnt uint64 +} /* uio.h:243:9 */ + +// uio_extflg: extended flags +// +// NOTE: This flag will be used in uiomove to determine if non-temporal +// access, ie, access bypassing caches, should be used. Filesystems that +// don't initialize this field could experience suboptimal performance due to +// the random data the field contains. +// +// NOTE: This flag is also used by uioasync callers to pass an extended +// uio_t (uioa_t), to uioasync enabled consumers. Unlike above all +// consumers of a uioa_t require the uio_extflg to be initialized. + +// Global uioasync capability shadow state. +type Uioasync_t = Uioasync_s /* uio.h:246:3 */ + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Portions of this source code were derived from Berkeley 4.3 BSD +// under license from the Regents of the University of California. + +type Sa_family_t = uint16 /* socket_impl.h:43:18 */ + +// Structure used by kernel to store most +// addresses. +type Sockaddr = struct { + Fsa_family uint16 + Fsa_data [14]int8 +} /* socket_impl.h:50:1 */ + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1996, 2010, Oracle and/or its affiliates. All rights reserved. + +// Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// University Copyright- Copyright (c) 1982, 1986, 1988 +// The Regents of the University of California +// All Rights Reserved +// +// University Acknowledgment- Portions of this document are derived from +// software developed by the University of California, Berkeley, and its +// contributors. + +// Definitions for UNIX IPC domain. +type Sockaddr_un = struct { + Fsun_family uint16 + Fsun_path [108]int8 +} /* un.h:53:1 */ + +// Copyright 1993-2003 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright (c) 1990, 1993 +// The Regents of the University of California. All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// 1. Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// 2. Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer in the +// documentation and/or other materials provided with the distribution. +// 3. All advertising materials mentioning features or use of this software +// must display the following acknowledgement: +// This product includes software developed by the University of +// California, Berkeley and its contributors. +// 4. Neither the name of the University nor the names of its contributors +// may be used to endorse or promote products derived from this software +// without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +// SUCH DAMAGE. + +// from UCB 8.1 (Berkeley) 6/10/93 + +// A Link-Level Sockaddr may specify the interface in one of two +// ways: either by means of a system-provided index number (computed +// anew and possibly differently on every reboot), or by a human-readable +// string such as "il0" (for managerial convenience). +// +// Census taking actions, such as something akin to SIOCGCONF would return +// both the index and the human name. +// +// High volume transactions (such as giving a link-level ``from'' address +// in a recvfrom or recvmsg call) may be likely only to provide the indexed +// form, (which requires fewer copy operations and less space). +// +// The form and interpretation of the link-level address is purely a matter +// of convention between the device driver and its consumers; however, it is +// expected that all drivers for an interface of a given if_type will agree. + +// Structure of a Link-Level sockaddr: +type Sockaddr_dl = struct { + Fsdl_family uint16 + Fsdl_index uint16 + Fsdl_type uint8 + Fsdl_nlen uint8 + Fsdl_alen uint8 + Fsdl_slen uint8 + Fsdl_data [244]int8 +} /* if_dl.h:68:1 */ + +// sockaddr_storage: +// Common superset of at least AF_INET, AF_INET6 and AF_LINK sockaddr +// structures. Has sufficient size and alignment for those sockaddrs. + +// Desired maximum size, alignment size and related types. + +// To represent desired sockaddr max alignment for platform, a +// type is chosen which may depend on implementation platform architecture. +// Type chosen based on alignment size restrictions from . +// We desire to force up to (but no more than) 64-bit (8 byte) alignment, +// on platforms where it is possible to do so. (e.g not possible on ia32). +// For all currently supported platforms by our implementation +// in , (i.e. sparc, sparcv9, ia32, ia64) +// type "double" is suitable for that intent. +// +// Note: Type "double" is chosen over the more obvious integer type int64_t. +// +// int64_t is not a valid type for strict ANSI/ISO C compilation on ILP32. +type Sockaddr_maxalign_t = float64 /* socket_impl.h:85:17 */ + +// Definitions used for sockaddr_storage structure paddings design. + +type Sockaddr_storage = struct { + Fss_family uint16 + F_ss_pad1 [6]int8 + F_ss_align float64 + F_ss_pad2 [240]int8 +} /* socket_impl.h:96:1 */ + +// To be compatible with the Linux interfaces used, this structure is +// placed in socket_impl.h so that an include for will +// pickup this structure. This structure is for use with PF_PACKET +// sockets. +type Sockaddr_ll = struct { + Fsll_family uint16 + Fsll_protocol uint16 + Fsll_ifindex int32 + Fsll_hatype uint16 + Fsll_pkttype uint8 + Fsll_halen uint8 + Fsll_addr [8]uint8 +} /* socket_impl.h:111:1 */ + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2015 Joyent, Inc. + +type Netconfig = struct { + Fnc_netid uintptr + Fnc_semantics uint32 + Fnc_flag uint32 + Fnc_protofmly uintptr + Fnc_proto uintptr + Fnc_device uintptr + Fnc_nlookups uint32 + F__ccgo_pad1 [4]byte + Fnc_lookups uintptr + Fnc_unused [8]uint32 +} /* netconfig.h:44:1 */ + +type NCONF_HANDLE = struct { + Fnc_head uintptr + Fnc_curr uintptr +} /* netconfig.h:59:3 */ + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2014 Garrett D'Amore +// +// Copyright (c) 1995, 1998 by Sun Microsystems, Inc. +// All rights reserved. + +// Copyright 2015, Joyent, Inc. + +// Structure of file descriptor/event pairs supplied in +// the poll arrays. +type Pollfd = struct { + Ffd int32 + Fevents int16 + Frevents int16 +} /* poll.h:48:9 */ + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2014 Garrett D'Amore +// +// Copyright (c) 1995, 1998 by Sun Microsystems, Inc. +// All rights reserved. + +// Copyright 2015, Joyent, Inc. + +// Structure of file descriptor/event pairs supplied in +// the poll arrays. +type Pollfd_t = Pollfd /* poll.h:52:3 */ + +type Nfds_t = uint64 /* poll.h:54:23 */ + +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2011 Nexenta Systems, Inc. All rights reserved. +// Copyright 2015, Joyent, Inc. +// Copyright 2020 OmniOS Community Edition (OmniOSce) Association. +// Copyright (c) 1982, 1986 Regents of the University of California. +// All rights reserved. +// +// Redistribution and use in source and binary forms are permitted +// provided that this notice is preserved and that due credit is given +// to the University of California at Berkeley. The name of the University +// may not be used to endorse or promote products derived from this +// software without specific prior written permission. This software +// is provided ``as is'' without express or implied warranty. + +// Constants and structures defined by the internet system, +// according to following documents +// +// Internet ASSIGNED NUMBERS (RFC1700) and its successors: +// http://www.iana.org/assignments/protocol-numbers +// http://www.iana.org/assignments/port-numbers +// Basic Socket Interface Extensions for IPv6 (RFC2133 and its successors) +// + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2021 Oxide Computer Company + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Portions of this source code were derived from Berkeley 4.3 BSD +// under license from the Regents of the University of California. + +// The socklen definitions are reproduced here from sys/socket.h so as to +// not introduce that namespace into existing users of netinet/in.h. +type Socklen_t = uint32 /* in.h:57:18 */ + +type Psocklen_t = uintptr /* in.h:63:15 */ + +// Symbols such as htonl() are required to be exposed through this file, +// per XNS Issue 5. This is achieved by inclusion of +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// University Copyright- Copyright (c) 1982, 1986, 1988 +// The Regents of the University of California +// All Rights Reserved +// +// University Acknowledgment- Portions of this document are derived from +// software developed by the University of California, Berkeley, and its +// contributors. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2016 Joyent, Inc. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2014 Garrett D'Amore +// +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// macros for conversion between host and (internet) network byte order + +type In_port_t = uint16 /* byteorder.h:74:18 */ + +type In_addr_t = uint32 /* byteorder.h:79:18 */ + +// Macros to reverse byte order + +// Macros to convert from a specific byte order to/from native byte order + +// Macros to read unaligned values from a specific byte order to +// native byte order + +// Macros to write unaligned values from native byte order to a specific byte +// order. + +// Note: IPv4 address data structures usage conventions. +// The "in_addr_t" type below (required by Unix standards) +// is NOT a typedef of "struct in_addr" and violates the usual +// conventions where "struct " and _t are corresponding +// typedefs. +// To minimize confusion, kernel data structures/usage prefers use +// of "ipaddr_t" as atomic uint32_t type and avoid using "in_addr_t" +// The user level APIs continue to follow the historic popular +// practice of using "struct in_addr". + +type Ipaddr_t = uint32 /* in.h:99:18 */ + +type In6_addr = struct { + F_S6_un struct { + F__ccgo_pad1 [0]uint32 + F_S6_u8 [16]uint8 + } +} /* in.h:104:1 */ + +type In6_addr_t = In6_addr /* in.h:137:25 */ + +// Protocols +// +// Some of these constant names are copied for the DTrace IP provider in +// usr/src/lib/libdtrace/common/{ip.d.in, ip.sed.in}, which should be kept +// in sync. +// Transmission Protocol + +// Port/socket numbers: network standard functions +// +// Entries should exist here for each port number compiled into an ON +// component, such as snoop. + +// Port/socket numbers: host specific functions + +// Internet Key Exchange (IKE) ports + +// UNIX TCP sockets + +// UNIX UDP sockets + +// DHCPv6 UDP ports + +// Ports < IPPORT_RESERVED are reserved for +// privileged processes (e.g. root). +// Ports > IPPORT_USERRESERVED are reserved +// for servers, not necessarily privileged. + +// Link numbers + +// IPv4 Internet address +// This definition contains obsolete fields for compatibility +// with SunOS 3.x and 4.2bsd. The presence of subnets renders +// divisions into fixed fields misleading at best. New code +// should use only the s_addr field. + +type In_addr = struct { + FS_un struct { + F__ccgo_pad1 [0]uint32 + FS_un_b struct { + Fs_b1 uint8 + Fs_b2 uint8 + Fs_b3 uint8 + Fs_b4 uint8 + } + } +} /* in.h:301:1 */ + +// Definitions of bits in internet address integers. +// On subnets, the decomposition of addresses to host and net parts +// is done according to subnet mask, not the masks here. +// +// Note that with the introduction of CIDR, IN_CLASSA, IN_CLASSB, +// IN_CLASSC, IN_CLASSD and IN_CLASSE macros have become "de-facto +// obsolete". IN_MULTICAST macro should be used to test if a address +// is a multicast address. + +// We have removed CLASS E checks from the kernel +// But we preserve these defines for userland in order +// to avoid compile breakage of some 3rd party piece of software + +// Scoped IPv4 prefixes (in host byte-order) + +// RFC 3927 IPv4 link local address (i in host byte-order) + +// Well known 6to4 Relay Router Anycast address defined in RFC 3068 + +// Define a macro to stuff the loopback address into an Internet address + +// IPv4 Socket address. +type Sockaddr_in = struct { + Fsin_family uint16 + Fsin_port uint16 + Fsin_addr struct { + FS_un struct { + F__ccgo_pad1 [0]uint32 + FS_un_b struct { + Fs_b1 uint8 + Fs_b2 uint8 + Fs_b3 uint8 + Fs_b4 uint8 + } + } + } + Fsin_zero [8]int8 +} /* in.h:409:1 */ + +// IPv6 socket address. +type Sockaddr_in6 = struct { + Fsin6_family uint16 + Fsin6_port uint16 + Fsin6_flowinfo uint32 + Fsin6_addr struct { + F_S6_un struct { + F__ccgo_pad1 [0]uint32 + F_S6_u8 [16]uint8 + } + } + Fsin6_scope_id uint32 + F__sin6_src_id uint32 +} /* in.h:424:1 */ + +// Macros for accessing the traffic class and flow label fields from +// sin6_flowinfo. +// These are designed to be applied to a 32-bit value. + +// masks + +// Note: Macros IN6ADDR_ANY_INIT and IN6ADDR_LOOPBACK_INIT are for +// use as RHS of Static initializers of "struct in6_addr" (or in6_addr_t) +// only. They need to be different for User/Kernel versions because union +// component data structure is defined differently (it is identical at +// binary representation level). +// +// const struct in6_addr IN6ADDR_ANY_INIT; +// const struct in6_addr IN6ADDR_LOOPBACK_INIT; + +// RFC 2553 specifies the following macros. Their type is defined +// as "int" in the RFC but they only have boolean significance +// (zero or non-zero). For the purposes of our comment notation, +// we assume a hypothetical type "bool" defined as follows to +// write the prototypes assumed for macros in our comments better. +// +// typedef int bool; + +// IN6 macros used to test for special IPv6 addresses +// (Mostly from spec) +// +// bool IN6_IS_ADDR_UNSPECIFIED (const struct in6_addr *); +// bool IN6_IS_ADDR_LOOPBACK (const struct in6_addr *); +// bool IN6_IS_ADDR_MULTICAST (const struct in6_addr *); +// bool IN6_IS_ADDR_LINKLOCAL (const struct in6_addr *); +// bool IN6_IS_ADDR_SITELOCAL (const struct in6_addr *); +// bool IN6_IS_ADDR_V4MAPPED (const struct in6_addr *); +// bool IN6_IS_ADDR_V4MAPPED_ANY(const struct in6_addr *); -- Not from RFC2553 +// bool IN6_IS_ADDR_V4COMPAT (const struct in6_addr *); +// bool IN6_IS_ADDR_MC_RESERVED (const struct in6_addr *); -- Not from RFC2553 +// bool IN6_IS_ADDR_MC_NODELOCAL(const struct in6_addr *); +// bool IN6_IS_ADDR_MC_LINKLOCAL(const struct in6_addr *); +// bool IN6_IS_ADDR_MC_SITELOCAL(const struct in6_addr *); +// bool IN6_IS_ADDR_MC_ORGLOCAL (const struct in6_addr *); +// bool IN6_IS_ADDR_MC_GLOBAL (const struct in6_addr *); +// bool IN6_IS_ADDR_6TO4 (const struct in6_addr *); -- Not from RFC2553 +// bool IN6_ARE_6TO4_PREFIX_EQUAL(const struct in6_addr *, +// const struct in6_addr *); -- Not from RFC2553 +// bool IN6_IS_ADDR_LINKSCOPE (const struct in6addr *); -- Not from RFC2553 + +// IN6_IS_ADDR_V4MAPPED - A IPv4 mapped INADDR_ANY +// Note: This macro is currently NOT defined in RFC2553 specification +// and not a standard macro that portable applications should use. + +// Exclude loopback and unspecified address + +// Note: +// IN6_IS_ADDR_MC_RESERVED macro is currently NOT defined in RFC2553 +// specification and not a standard macro that portable applications +// should use. + +// The IN6_IS_ADDR_MC_SOLICITEDNODE macro is not defined in any standard or +// RFC, and shouldn't be used by portable applications. It is used to see +// if an address is a solicited-node multicast address, which is prefixed +// with ff02:0:0:0:0:1:ff00::/104. + +// Macros to a) test for 6to4 IPv6 address, and b) to test if two +// 6to4 addresses have the same /48 prefix, and, hence, are from the +// same 6to4 site. + +// IN6_IS_ADDR_LINKSCOPE +// Identifies an address as being either link-local, link-local multicast or +// node-local multicast. All types of addresses are considered to be unique +// within the scope of a given link. + +// Useful utility macros for operations with IPv6 addresses +// Note: These macros are NOT defined in the RFC2553 or any other +// standard specification and are not standard macros that portable +// applications should use. + +// IN6_V4MAPPED_TO_INADDR +// IN6_V4MAPPED_TO_IPADDR +// Assign a IPv4-Mapped IPv6 address to an IPv4 address. +// Note: These macros are NOT defined in RFC2553 or any other standard +// specification and are not macros that portable applications should +// use. +// +// void IN6_V4MAPPED_TO_INADDR(const in6_addr_t *v6, struct in_addr *v4); +// void IN6_V4MAPPED_TO_IPADDR(const in6_addr_t *v6, ipaddr_t v4); +// + +// IN6_INADDR_TO_V4MAPPED +// IN6_IPADDR_TO_V4MAPPED +// Assign a IPv4 address address to an IPv6 address as a IPv4-mapped +// address. +// Note: These macros are NOT defined in RFC2553 or any other standard +// specification and are not macros that portable applications should +// use. +// +// void IN6_INADDR_TO_V4MAPPED(const struct in_addr *v4, in6_addr_t *v6); +// void IN6_IPADDR_TO_V4MAPPED(const ipaddr_t v4, in6_addr_t *v6); +// + +// IN6_6TO4_TO_V4ADDR +// Extract the embedded IPv4 address from the prefix to a 6to4 IPv6 +// address. +// Note: This macro is NOT defined in RFC2553 or any other standard +// specification and is not a macro that portable applications should +// use. +// Note: we don't use the IPADDR form of the macro because we need +// to do a bytewise copy; the V4ADDR in the 6to4 address is not +// 32-bit aligned. +// +// void IN6_6TO4_TO_V4ADDR(const in6_addr_t *v6, struct in_addr *v4); +// + +// IN6_V4ADDR_TO_6TO4 +// Given an IPv4 address and an IPv6 address for output, a 6to4 address +// will be created from the IPv4 Address. +// Note: This method for creating 6to4 addresses is not standardized +// outside of Solaris. The newly created 6to4 address will be of the form +// 2002::::, where SUBNETID will equal 0 and +// HOSTID will equal 1. +// +// void IN6_V4ADDR_TO_6TO4(const struct in_addr *v4, in6_addr_t *v6) +// + +// IN6_ARE_ADDR_EQUAL (defined in RFC2292) +// Compares if IPv6 addresses are equal. +// Note: Compares in order of high likelyhood of a miss so we minimize +// compares. (Current heuristic order, compare in reverse order of +// uint32_t units) +// +// bool IN6_ARE_ADDR_EQUAL(const struct in6_addr *, +// const struct in6_addr *); + +// IN6_ARE_PREFIXEDADDR_EQUAL (not defined in RFCs) +// Compares if prefixed parts of IPv6 addresses are equal. +// +// uint32_t IN6_MASK_FROM_PREFIX(int, int); +// bool IN6_ARE_PREFIXEDADDR_EQUAL(const struct in6_addr *, +// const struct in6_addr *, +// int); + +// Options for use with [gs]etsockopt at the IP level. +// +// Note: Some of the IP_ namespace has conflict with and +// and is exposed through . (It also requires exposing +// options not implemented). The options with potential +// for conflicts use #ifndef guards. + +// IP_PKTINFO and IP_RECVPKTINFO have same value. Size of argument passed in +// is used to differentiate b/w the two. + +// Different preferences that can be requested from IPSEC protocols. +// This can be used with the setsockopt() call to set per socket security +// options. When the application uses per-socket API, we will reflect +// the request on both outbound and inbound packets. + +type Ipsec_req = struct { + Fipsr_ah_req uint32 + Fipsr_esp_req uint32 + Fipsr_self_encap_req uint32 + Fipsr_auth_alg uint8 + Fipsr_esp_alg uint8 + Fipsr_esp_auth_alg uint8 + F__ccgo_pad1 [1]byte +} /* in.h:950:9 */ + +// Macros for accessing the traffic class and flow label fields from +// sin6_flowinfo. +// These are designed to be applied to a 32-bit value. + +// masks + +// Note: Macros IN6ADDR_ANY_INIT and IN6ADDR_LOOPBACK_INIT are for +// use as RHS of Static initializers of "struct in6_addr" (or in6_addr_t) +// only. They need to be different for User/Kernel versions because union +// component data structure is defined differently (it is identical at +// binary representation level). +// +// const struct in6_addr IN6ADDR_ANY_INIT; +// const struct in6_addr IN6ADDR_LOOPBACK_INIT; + +// RFC 2553 specifies the following macros. Their type is defined +// as "int" in the RFC but they only have boolean significance +// (zero or non-zero). For the purposes of our comment notation, +// we assume a hypothetical type "bool" defined as follows to +// write the prototypes assumed for macros in our comments better. +// +// typedef int bool; + +// IN6 macros used to test for special IPv6 addresses +// (Mostly from spec) +// +// bool IN6_IS_ADDR_UNSPECIFIED (const struct in6_addr *); +// bool IN6_IS_ADDR_LOOPBACK (const struct in6_addr *); +// bool IN6_IS_ADDR_MULTICAST (const struct in6_addr *); +// bool IN6_IS_ADDR_LINKLOCAL (const struct in6_addr *); +// bool IN6_IS_ADDR_SITELOCAL (const struct in6_addr *); +// bool IN6_IS_ADDR_V4MAPPED (const struct in6_addr *); +// bool IN6_IS_ADDR_V4MAPPED_ANY(const struct in6_addr *); -- Not from RFC2553 +// bool IN6_IS_ADDR_V4COMPAT (const struct in6_addr *); +// bool IN6_IS_ADDR_MC_RESERVED (const struct in6_addr *); -- Not from RFC2553 +// bool IN6_IS_ADDR_MC_NODELOCAL(const struct in6_addr *); +// bool IN6_IS_ADDR_MC_LINKLOCAL(const struct in6_addr *); +// bool IN6_IS_ADDR_MC_SITELOCAL(const struct in6_addr *); +// bool IN6_IS_ADDR_MC_ORGLOCAL (const struct in6_addr *); +// bool IN6_IS_ADDR_MC_GLOBAL (const struct in6_addr *); +// bool IN6_IS_ADDR_6TO4 (const struct in6_addr *); -- Not from RFC2553 +// bool IN6_ARE_6TO4_PREFIX_EQUAL(const struct in6_addr *, +// const struct in6_addr *); -- Not from RFC2553 +// bool IN6_IS_ADDR_LINKSCOPE (const struct in6addr *); -- Not from RFC2553 + +// IN6_IS_ADDR_V4MAPPED - A IPv4 mapped INADDR_ANY +// Note: This macro is currently NOT defined in RFC2553 specification +// and not a standard macro that portable applications should use. + +// Exclude loopback and unspecified address + +// Note: +// IN6_IS_ADDR_MC_RESERVED macro is currently NOT defined in RFC2553 +// specification and not a standard macro that portable applications +// should use. + +// The IN6_IS_ADDR_MC_SOLICITEDNODE macro is not defined in any standard or +// RFC, and shouldn't be used by portable applications. It is used to see +// if an address is a solicited-node multicast address, which is prefixed +// with ff02:0:0:0:0:1:ff00::/104. + +// Macros to a) test for 6to4 IPv6 address, and b) to test if two +// 6to4 addresses have the same /48 prefix, and, hence, are from the +// same 6to4 site. + +// IN6_IS_ADDR_LINKSCOPE +// Identifies an address as being either link-local, link-local multicast or +// node-local multicast. All types of addresses are considered to be unique +// within the scope of a given link. + +// Useful utility macros for operations with IPv6 addresses +// Note: These macros are NOT defined in the RFC2553 or any other +// standard specification and are not standard macros that portable +// applications should use. + +// IN6_V4MAPPED_TO_INADDR +// IN6_V4MAPPED_TO_IPADDR +// Assign a IPv4-Mapped IPv6 address to an IPv4 address. +// Note: These macros are NOT defined in RFC2553 or any other standard +// specification and are not macros that portable applications should +// use. +// +// void IN6_V4MAPPED_TO_INADDR(const in6_addr_t *v6, struct in_addr *v4); +// void IN6_V4MAPPED_TO_IPADDR(const in6_addr_t *v6, ipaddr_t v4); +// + +// IN6_INADDR_TO_V4MAPPED +// IN6_IPADDR_TO_V4MAPPED +// Assign a IPv4 address address to an IPv6 address as a IPv4-mapped +// address. +// Note: These macros are NOT defined in RFC2553 or any other standard +// specification and are not macros that portable applications should +// use. +// +// void IN6_INADDR_TO_V4MAPPED(const struct in_addr *v4, in6_addr_t *v6); +// void IN6_IPADDR_TO_V4MAPPED(const ipaddr_t v4, in6_addr_t *v6); +// + +// IN6_6TO4_TO_V4ADDR +// Extract the embedded IPv4 address from the prefix to a 6to4 IPv6 +// address. +// Note: This macro is NOT defined in RFC2553 or any other standard +// specification and is not a macro that portable applications should +// use. +// Note: we don't use the IPADDR form of the macro because we need +// to do a bytewise copy; the V4ADDR in the 6to4 address is not +// 32-bit aligned. +// +// void IN6_6TO4_TO_V4ADDR(const in6_addr_t *v6, struct in_addr *v4); +// + +// IN6_V4ADDR_TO_6TO4 +// Given an IPv4 address and an IPv6 address for output, a 6to4 address +// will be created from the IPv4 Address. +// Note: This method for creating 6to4 addresses is not standardized +// outside of Solaris. The newly created 6to4 address will be of the form +// 2002::::, where SUBNETID will equal 0 and +// HOSTID will equal 1. +// +// void IN6_V4ADDR_TO_6TO4(const struct in_addr *v4, in6_addr_t *v6) +// + +// IN6_ARE_ADDR_EQUAL (defined in RFC2292) +// Compares if IPv6 addresses are equal. +// Note: Compares in order of high likelyhood of a miss so we minimize +// compares. (Current heuristic order, compare in reverse order of +// uint32_t units) +// +// bool IN6_ARE_ADDR_EQUAL(const struct in6_addr *, +// const struct in6_addr *); + +// IN6_ARE_PREFIXEDADDR_EQUAL (not defined in RFCs) +// Compares if prefixed parts of IPv6 addresses are equal. +// +// uint32_t IN6_MASK_FROM_PREFIX(int, int); +// bool IN6_ARE_PREFIXEDADDR_EQUAL(const struct in6_addr *, +// const struct in6_addr *, +// int); + +// Options for use with [gs]etsockopt at the IP level. +// +// Note: Some of the IP_ namespace has conflict with and +// and is exposed through . (It also requires exposing +// options not implemented). The options with potential +// for conflicts use #ifndef guards. + +// IP_PKTINFO and IP_RECVPKTINFO have same value. Size of argument passed in +// is used to differentiate b/w the two. + +// Different preferences that can be requested from IPSEC protocols. +// This can be used with the setsockopt() call to set per socket security +// options. When the application uses per-socket API, we will reflect +// the request on both outbound and inbound packets. + +type Ipsec_req_t = Ipsec_req /* in.h:957:3 */ + +// MCAST_* options are protocol-independent. The actual definitions +// are with the v6 options below; this comment is here to note the +// namespace usage. +// +// #define MCAST_JOIN_GROUP 0x29 +// #define MCAST_LEAVE_GROUP 0x2a +// #define MCAST_BLOCK_SOURCE 0x2b +// #define MCAST_UNBLOCK_SOURCE 0x2c +// #define MCAST_JOIN_SOURCE_GROUP 0x2d +// #define MCAST_LEAVE_SOURCE_GROUP 0x2e + +// SunOS private (potentially not portable) IP_ option names +// can be reused 0x44 + +// Option values and names (when !_XPG5) shared with + +// The following option values are reserved by +// +// T_IP_OPTIONS 0x107 - IP per-packet options +// T_IP_TOS 0x108 - IP per packet type of service + +// Default value constants for multicast attributes controlled by +// IP*_MULTICAST_LOOP and IP*_MULTICAST_{TTL,HOPS} options. + +// Argument structure for IP_ADD_MEMBERSHIP and IP_DROP_MEMBERSHIP. +type Ip_mreq = struct { + Fimr_multiaddr struct { + FS_un struct { + F__ccgo_pad1 [0]uint32 + FS_un_b struct { + Fs_b1 uint8 + Fs_b2 uint8 + Fs_b3 uint8 + Fs_b4 uint8 + } + } + } + Fimr_interface struct { + FS_un struct { + F__ccgo_pad1 [0]uint32 + FS_un_b struct { + Fs_b1 uint8 + Fs_b2 uint8 + Fs_b3 uint8 + Fs_b4 uint8 + } + } + } +} /* in.h:1015:1 */ + +// Argument structure for IP_BLOCK_SOURCE, IP_UNBLOCK_SOURCE, +// IP_ADD_SOURCE_MEMBERSHIP, and IP_DROP_SOURCE_MEMBERSHIP. +type Ip_mreq_source = struct { + Fimr_multiaddr struct { + FS_un struct { + F__ccgo_pad1 [0]uint32 + FS_un_b struct { + Fs_b1 uint8 + Fs_b2 uint8 + Fs_b3 uint8 + Fs_b4 uint8 + } + } + } + Fimr_sourceaddr struct { + FS_un struct { + F__ccgo_pad1 [0]uint32 + FS_un_b struct { + Fs_b1 uint8 + Fs_b2 uint8 + Fs_b3 uint8 + Fs_b4 uint8 + } + } + } + Fimr_interface struct { + FS_un struct { + F__ccgo_pad1 [0]uint32 + FS_un_b struct { + Fs_b1 uint8 + Fs_b2 uint8 + Fs_b3 uint8 + Fs_b4 uint8 + } + } + } +} /* in.h:1024:1 */ + +// Argument structure for IPV6_JOIN_GROUP and IPV6_LEAVE_GROUP on +// IPv6 addresses. +type Ipv6_mreq = struct { + Fipv6mr_multiaddr struct { + F_S6_un struct { + F__ccgo_pad1 [0]uint32 + F_S6_u8 [16]uint8 + } + } + Fipv6mr_interface uint32 +} /* in.h:1034:1 */ + +// Use #pragma pack() construct to force 32-bit alignment on amd64. +// This is needed to keep the structure size and offsets consistent +// between a 32-bit app and the 64-bit amd64 kernel in structures +// where 64-bit alignment would create gaps (in this case, structures +// which have a uint32_t followed by a struct sockaddr_storage). + +// Argument structure for MCAST_JOIN_GROUP and MCAST_LEAVE_GROUP. +type Group_req = struct { + Fgr_interface uint32 + F__ccgo_pad1 [4]byte + Fgr_group struct { + Fss_family uint16 + F_ss_pad1 [6]int8 + F_ss_align float64 + F_ss_pad2 [240]int8 + } +} /* in.h:1053:1 */ + +// Argument structure for MCAST_BLOCK_SOURCE, MCAST_UNBLOCK_SOURCE, +// MCAST_JOIN_SOURCE_GROUP, MCAST_LEAVE_SOURCE_GROUP. +type Group_source_req = struct { + Fgsr_interface uint32 + F__ccgo_pad1 [4]byte + Fgsr_group struct { + Fss_family uint16 + F_ss_pad1 [6]int8 + F_ss_align float64 + F_ss_pad2 [240]int8 + } + Fgsr_source struct { + Fss_family uint16 + F_ss_pad1 [6]int8 + F_ss_align float64 + F_ss_pad2 [240]int8 + } +} /* in.h:1062:1 */ + +// Argument for SIOC[GS]MSFILTER ioctls +type Group_filter = struct { + Fgf_interface uint32 + F__ccgo_pad1 [4]byte + Fgf_group struct { + Fss_family uint16 + F_ss_pad1 [6]int8 + F_ss_align float64 + F_ss_pad2 [240]int8 + } + Fgf_fmode uint32 + Fgf_numsrc uint32 + Fgf_slist [1]struct { + Fss_family uint16 + F_ss_pad1 [6]int8 + F_ss_align float64 + F_ss_pad2 [240]int8 + } +} /* in.h:1071:1 */ + +// Argument for SIOC[GS]IPMSFILTER ioctls (IPv4-specific) +type Ip_msfilter = struct { + Fimsf_multiaddr struct { + FS_un struct { + F__ccgo_pad1 [0]uint32 + FS_un_b struct { + Fs_b1 uint8 + Fs_b2 uint8 + Fs_b3 uint8 + Fs_b4 uint8 + } + } + } + Fimsf_interface struct { + FS_un struct { + F__ccgo_pad1 [0]uint32 + FS_un_b struct { + Fs_b1 uint8 + Fs_b2 uint8 + Fs_b3 uint8 + Fs_b4 uint8 + } + } + } + Fimsf_fmode uint32 + Fimsf_numsrc uint32 + Fimsf_slist [1]struct { + FS_un struct { + F__ccgo_pad1 [0]uint32 + FS_un_b struct { + Fs_b1 uint8 + Fs_b2 uint8 + Fs_b3 uint8 + Fs_b4 uint8 + } + } + } +} /* in.h:1090:1 */ + +// Definitions needed for [gs]etsourcefilter(), [gs]etipv4sourcefilter() + +// Argument struct for IP_PKTINFO option +type In_pktinfo = struct { + Fipi_ifindex uint32 + Fipi_spec_dst struct { + FS_un struct { + F__ccgo_pad1 [0]uint32 + FS_un_b struct { + Fs_b1 uint8 + Fs_b2 uint8 + Fs_b3 uint8 + Fs_b4 uint8 + } + } + } + Fipi_addr struct { + FS_un struct { + F__ccgo_pad1 [0]uint32 + FS_un_b struct { + Fs_b1 uint8 + Fs_b2 uint8 + Fs_b3 uint8 + Fs_b4 uint8 + } + } + } +} /* in.h:1127:9 */ + +// Definitions needed for [gs]etsourcefilter(), [gs]etipv4sourcefilter() + +// Argument struct for IP_PKTINFO option +type In_pktinfo_t = In_pktinfo /* in.h:1131:3 */ + +// Argument struct for IPV6_PKTINFO option +type In6_pktinfo = struct { + Fipi6_addr struct { + F_S6_un struct { + F__ccgo_pad1 [0]uint32 + F_S6_u8 [16]uint8 + } + } + Fipi6_ifindex uint32 +} /* in.h:1136:1 */ + +// Argument struct for IPV6_MTUINFO option +type Ip6_mtuinfo = struct { + Fip6m_addr struct { + Fsin6_family uint16 + Fsin6_port uint16 + Fsin6_flowinfo uint32 + Fsin6_addr struct { + F_S6_un struct { + F__ccgo_pad1 [0]uint32 + F_S6_u8 [16]uint8 + } + } + Fsin6_scope_id uint32 + F__sin6_src_id uint32 + } + Fip6m_mtu uint32 +} /* in.h:1144:1 */ + +// Argument structure for IP_ADD_PROXY_ADDR. +// Note that this is an unstable, experimental interface. It may change +// later. Don't use it unless you know what it is. +type In_prefix_t = struct { + Fin_prefix_addr In_addr + Fin_prefix_len uint32 +} /* in.h:1183:3 */ + +// Definitions related to sockets: types, address families, options. + +// Types + +// Flags for socket() and accept4() + +// Option flags per-socket. + +// Socket options are passed using a signed integer, but it is also rare +// for more than one to ever be passed at the same time with setsockopt +// and only one at a time can be retrieved with getsockopt. +// +// Since the lower numbers cannot be renumbered for compatibility reasons, +// it would seem that we need to start a new number space (0x40000000 - +// 0x7fffffff) for those that don't need to be stored as a bit flag +// somewhere. This limits the flag options to 30 but that seems to be +// plenty, anyway. 0x40000000 is reserved for future use. + +// N.B.: The following definition is present only for compatibility +// with release 3.0. It will disappear in later releases. + +// Additional options, not kept in so_options. + +// "Socket"-level control message types: + +// Socket filter options + +// Structure returned by FIL_LIST +type Fil_info = struct { + Ffi_flags int32 + Ffi_pos int32 + Ffi_name [32]int8 +} /* socket.h:225:1 */ + +// Structure used for manipulating linger option. +type Linger = struct { + Fl_onoff int32 + Fl_linger int32 +} /* socket.h:254:1 */ + +// Levels for (get/set)sockopt() that don't apply to a specific protocol. + +// Address families. +// +// Some of these constant names are copied for the DTrace IP provider in +// usr/src/lib/libdtrace/common/{ip.d.in, ip.sed.in}, which should be kept +// in sync. + +// Protocol families, same as address families for now. + +// Maximum queue length specifiable by listen. + +// Message header for recvmsg and sendmsg calls. +type Msghdr = struct { + Fmsg_name uintptr + Fmsg_namelen uint32 + F__ccgo_pad1 [4]byte + Fmsg_iov uintptr + Fmsg_iovlen int32 + F__ccgo_pad2 [4]byte + Fmsg_accrights uintptr + Fmsg_accrightslen int32 + F__ccgo_pad3 [4]byte +} /* socket.h:365:1 */ + +// with left over data + +// Obsolete but kept for compilation compatibility. Use IOV_MAX. + +// Added for XPGv2 compliance + +type Cmsghdr = struct { + Fcmsg_len uint32 + Fcmsg_level int32 + Fcmsg_type int32 +} /* socket.h:462:1 */ + +var _ int8 /* gen.c:2:13: */ diff --git a/vendor/modernc.org/libc/sys/socket/socket_linux_loong64.go b/vendor/modernc.org/libc/sys/socket/socket_linux_loong64.go new file mode 100644 index 000000000..e6bdae345 --- /dev/null +++ b/vendor/modernc.org/libc/sys/socket/socket_linux_loong64.go @@ -0,0 +1,1892 @@ +// Code generated by 'ccgo sys/socket/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o sys/socket/socket_linux_loong64.go -pkgname socket', DO NOT EDIT. + +package socket + +import ( + "math" + "reflect" + "sync/atomic" + "unsafe" +) + +var _ = math.Pi +var _ reflect.Kind +var _ atomic.Value +var _ unsafe.Pointer + +const ( + AF_ALG = 38 // socket.h:134:1: + AF_APPLETALK = 5 // socket.h:100:1: + AF_ASH = 18 // socket.h:114:1: + AF_ATMPVC = 8 // socket.h:103:1: + AF_ATMSVC = 20 // socket.h:116:1: + AF_AX25 = 3 // socket.h:98:1: + AF_BLUETOOTH = 31 // socket.h:127:1: + AF_BRIDGE = 7 // socket.h:102:1: + AF_CAIF = 37 // socket.h:133:1: + AF_CAN = 29 // socket.h:125:1: + AF_DECnet = 12 // socket.h:107:1: + AF_ECONET = 19 // socket.h:115:1: + AF_FILE = 1 // socket.h:96:1: + AF_IB = 27 // socket.h:123:1: + AF_IEEE802154 = 36 // socket.h:132:1: + AF_INET = 2 // socket.h:97:1: + AF_INET6 = 10 // socket.h:105:1: + AF_IPX = 4 // socket.h:99:1: + AF_IRDA = 23 // socket.h:119:1: + AF_ISDN = 34 // socket.h:130:1: + AF_IUCV = 32 // socket.h:128:1: + AF_KCM = 41 // socket.h:137:1: + AF_KEY = 15 // socket.h:110:1: + AF_LLC = 26 // socket.h:122:1: + AF_LOCAL = 1 // socket.h:94:1: + AF_MAX = 46 // socket.h:142:1: + AF_MCTP = 45 // socket.h:141:1: + AF_MPLS = 28 // socket.h:124:1: + AF_NETBEUI = 13 // socket.h:108:1: + AF_NETLINK = 16 // socket.h:111:1: + AF_NETROM = 6 // socket.h:101:1: + AF_NFC = 39 // socket.h:135:1: + AF_PACKET = 17 // socket.h:113:1: + AF_PHONET = 35 // socket.h:131:1: + AF_PPPOX = 24 // socket.h:120:1: + AF_QIPCRTR = 42 // socket.h:138:1: + AF_RDS = 21 // socket.h:117:1: + AF_ROSE = 11 // socket.h:106:1: + AF_ROUTE = 16 // socket.h:112:1: + AF_RXRPC = 33 // socket.h:129:1: + AF_SECURITY = 14 // socket.h:109:1: + AF_SMC = 43 // socket.h:139:1: + AF_SNA = 22 // socket.h:118:1: + AF_TIPC = 30 // socket.h:126:1: + AF_UNIX = 1 // socket.h:95:1: + AF_UNSPEC = 0 // socket.h:93:1: + AF_VSOCK = 40 // socket.h:136:1: + AF_WANPIPE = 25 // socket.h:121:1: + AF_X25 = 9 // socket.h:104:1: + AF_XDP = 44 // socket.h:140:1: + BIG_ENDIAN = 4321 // endian.h:28:1: + BYTE_ORDER = 1234 // endian.h:30:1: + FD_SETSIZE = 1024 // select.h:73:1: + FIOGETOWN = 0x8903 // sockios.h:8:1: + FIOSETOWN = 0x8901 // sockios.h:6:1: + LITTLE_ENDIAN = 1234 // endian.h:27:1: + PDP_ENDIAN = 3412 // endian.h:29:1: + PF_ALG = 38 // socket.h:82:1: + PF_APPLETALK = 5 // socket.h:48:1: + PF_ASH = 18 // socket.h:62:1: + PF_ATMPVC = 8 // socket.h:51:1: + PF_ATMSVC = 20 // socket.h:64:1: + PF_AX25 = 3 // socket.h:46:1: + PF_BLUETOOTH = 31 // socket.h:75:1: + PF_BRIDGE = 7 // socket.h:50:1: + PF_CAIF = 37 // socket.h:81:1: + PF_CAN = 29 // socket.h:73:1: + PF_DECnet = 12 // socket.h:55:1: + PF_ECONET = 19 // socket.h:63:1: + PF_FILE = 1 // socket.h:44:1: + PF_IB = 27 // socket.h:71:1: + PF_IEEE802154 = 36 // socket.h:80:1: + PF_INET = 2 // socket.h:45:1: + PF_INET6 = 10 // socket.h:53:1: + PF_IPX = 4 // socket.h:47:1: + PF_IRDA = 23 // socket.h:67:1: + PF_ISDN = 34 // socket.h:78:1: + PF_IUCV = 32 // socket.h:76:1: + PF_KCM = 41 // socket.h:85:1: + PF_KEY = 15 // socket.h:58:1: + PF_LLC = 26 // socket.h:70:1: + PF_LOCAL = 1 // socket.h:42:1: + PF_MAX = 46 // socket.h:90:1: + PF_MCTP = 45 // socket.h:89:1: + PF_MPLS = 28 // socket.h:72:1: + PF_NETBEUI = 13 // socket.h:56:1: + PF_NETLINK = 16 // socket.h:59:1: + PF_NETROM = 6 // socket.h:49:1: + PF_NFC = 39 // socket.h:83:1: + PF_PACKET = 17 // socket.h:61:1: + PF_PHONET = 35 // socket.h:79:1: + PF_PPPOX = 24 // socket.h:68:1: + PF_QIPCRTR = 42 // socket.h:86:1: + PF_RDS = 21 // socket.h:65:1: + PF_ROSE = 11 // socket.h:54:1: + PF_ROUTE = 16 // socket.h:60:1: + PF_RXRPC = 33 // socket.h:77:1: + PF_SECURITY = 14 // socket.h:57:1: + PF_SMC = 43 // socket.h:87:1: + PF_SNA = 22 // socket.h:66:1: + PF_TIPC = 30 // socket.h:74:1: + PF_UNIX = 1 // socket.h:43:1: + PF_UNSPEC = 0 // socket.h:41:1: + PF_VSOCK = 40 // socket.h:84:1: + PF_WANPIPE = 25 // socket.h:69:1: + PF_X25 = 9 // socket.h:52:1: + PF_XDP = 44 // socket.h:88:1: + SCM_TIMESTAMP = 29 // socket.h:156:1: + SCM_TIMESTAMPING = 37 // socket.h:158:1: + SCM_TIMESTAMPING_OPT_STATS = 54 // socket.h:90:1: + SCM_TIMESTAMPING_PKTINFO = 58 // socket.h:98:1: + SCM_TIMESTAMPNS = 35 // socket.h:157:1: + SCM_TXTIME = 61 // socket.h:105:1: + SCM_WIFI_STATUS = 41 // socket.h:64:1: + SIOCATMARK = 0x8905 // sockios.h:10:1: + SIOCGPGRP = 0x8904 // sockios.h:9:1: + SIOCGSTAMPNS_OLD = 0x8907 // sockios.h:12:1: + SIOCGSTAMP_OLD = 0x8906 // sockios.h:11:1: + SIOCSPGRP = 0x8902 // sockios.h:7:1: + SOL_AAL = 265 // socket.h:153:1: + SOL_ALG = 279 // socket.h:167:1: + SOL_ATM = 264 // socket.h:152:1: + SOL_BLUETOOTH = 274 // socket.h:162:1: + SOL_CAIF = 278 // socket.h:166:1: + SOL_DCCP = 269 // socket.h:157:1: + SOL_DECNET = 261 // socket.h:149:1: + SOL_IRDA = 266 // socket.h:154:1: + SOL_IUCV = 277 // socket.h:165:1: + SOL_KCM = 281 // socket.h:169:1: + SOL_LLC = 268 // socket.h:156:1: + SOL_MCTP = 285 // socket.h:173:1: + SOL_MPTCP = 284 // socket.h:172:1: + SOL_NETBEUI = 267 // socket.h:155:1: + SOL_NETLINK = 270 // socket.h:158:1: + SOL_NFC = 280 // socket.h:168:1: + SOL_PACKET = 263 // socket.h:151:1: + SOL_PNPIPE = 275 // socket.h:163:1: + SOL_PPPOL2TP = 273 // socket.h:161:1: + SOL_RAW = 255 // socket.h:148:1: + SOL_RDS = 276 // socket.h:164:1: + SOL_RXRPC = 272 // socket.h:160:1: + SOL_SMC = 286 // socket.h:174:1: + SOL_SOCKET = 1 // socket.h:9:1: + SOL_TIPC = 271 // socket.h:159:1: + SOL_TLS = 282 // socket.h:170:1: + SOL_X25 = 262 // socket.h:150:1: + SOL_XDP = 283 // socket.h:171:1: + SOMAXCONN = 4096 // socket.h:177:1: + SO_ACCEPTCONN = 30 // socket.h:51:1: + SO_ATTACH_BPF = 50 // socket.h:82:1: + SO_ATTACH_FILTER = 26 // socket.h:45:1: + SO_ATTACH_REUSEPORT_CBPF = 51 // socket.h:85:1: + SO_ATTACH_REUSEPORT_EBPF = 52 // socket.h:86:1: + SO_BINDTODEVICE = 25 // socket.h:42:1: + SO_BINDTOIFINDEX = 62 // socket.h:107:1: + SO_BPF_EXTENSIONS = 48 // socket.h:78:1: + SO_BROADCAST = 6 // socket.h:16:1: + SO_BSDCOMPAT = 14 // socket.h:26:1: + SO_BUF_LOCK = 72 // socket.h:127:1: + SO_BUSY_POLL = 46 // socket.h:74:1: + SO_BUSY_POLL_BUDGET = 70 // socket.h:123:1: + SO_CNX_ADVICE = 53 // socket.h:88:1: + SO_COOKIE = 57 // socket.h:96:1: + SO_DEBUG = 1 // socket.h:11:1: + SO_DETACH_BPF = 27 // socket.h:83:1: + SO_DETACH_FILTER = 27 // socket.h:46:1: + SO_DETACH_REUSEPORT_BPF = 68 // socket.h:120:1: + SO_DOMAIN = 39 // socket.h:59:1: + SO_DONTROUTE = 5 // socket.h:15:1: + SO_ERROR = 4 // socket.h:14:1: + SO_GET_FILTER = 26 // socket.h:47:1: + SO_INCOMING_CPU = 49 // socket.h:80:1: + SO_INCOMING_NAPI_ID = 56 // socket.h:94:1: + SO_KEEPALIVE = 9 // socket.h:21:1: + SO_LINGER = 13 // socket.h:25:1: + SO_LOCK_FILTER = 44 // socket.h:70:1: + SO_MARK = 36 // socket.h:56:1: + SO_MAX_PACING_RATE = 47 // socket.h:76:1: + SO_MEMINFO = 55 // socket.h:92:1: + SO_NETNS_COOKIE = 71 // socket.h:125:1: + SO_NOFCS = 43 // socket.h:68:1: + SO_NO_CHECK = 11 // socket.h:23:1: + SO_OOBINLINE = 10 // socket.h:22:1: + SO_PASSCRED = 16 // socket.h:29:1: + SO_PASSPIDFD = 76 // socket.h:135:1: + SO_PASSSEC = 34 // socket.h:54:1: + SO_PEEK_OFF = 42 // socket.h:65:1: + SO_PEERCRED = 17 // socket.h:30:1: + SO_PEERGROUPS = 59 // socket.h:100:1: + SO_PEERNAME = 28 // socket.h:49:1: + SO_PEERPIDFD = 77 // socket.h:136:1: + SO_PEERSEC = 31 // socket.h:53:1: + SO_PREFER_BUSY_POLL = 69 // socket.h:122:1: + SO_PRIORITY = 12 // socket.h:24:1: + SO_PROTOCOL = 38 // socket.h:58:1: + SO_RCVBUF = 8 // socket.h:18:1: + SO_RCVBUFFORCE = 33 // socket.h:20:1: + SO_RCVLOWAT = 18 // socket.h:31:1: + SO_RCVMARK = 75 // socket.h:133:1: + SO_RCVTIMEO = 20 // socket.h:145:1: + SO_RCVTIMEO_NEW = 66 // socket.h:117:1: + SO_RCVTIMEO_OLD = 20 // socket.h:33:1: + SO_RESERVE_MEM = 73 // socket.h:129:1: + SO_REUSEADDR = 2 // socket.h:12:1: + SO_REUSEPORT = 15 // socket.h:27:1: + SO_RXQ_OVFL = 40 // socket.h:61:1: + SO_SECURITY_AUTHENTICATION = 22 // socket.h:38:1: + SO_SECURITY_ENCRYPTION_NETWORK = 24 // socket.h:40:1: + SO_SECURITY_ENCRYPTION_TRANSPORT = 23 // socket.h:39:1: + SO_SELECT_ERR_QUEUE = 45 // socket.h:72:1: + SO_SNDBUF = 7 // socket.h:17:1: + SO_SNDBUFFORCE = 32 // socket.h:19:1: + SO_SNDLOWAT = 19 // socket.h:32:1: + SO_SNDTIMEO = 21 // socket.h:146:1: + SO_SNDTIMEO_NEW = 67 // socket.h:118:1: + SO_SNDTIMEO_OLD = 21 // socket.h:34:1: + SO_TIMESTAMP = 29 // socket.h:141:1: + SO_TIMESTAMPING = 37 // socket.h:143:1: + SO_TIMESTAMPING_NEW = 65 // socket.h:115:1: + SO_TIMESTAMPING_OLD = 37 // socket.h:111:1: + SO_TIMESTAMPNS = 35 // socket.h:142:1: + SO_TIMESTAMPNS_NEW = 64 // socket.h:114:1: + SO_TIMESTAMPNS_OLD = 35 // socket.h:110:1: + SO_TIMESTAMP_NEW = 63 // socket.h:113:1: + SO_TIMESTAMP_OLD = 29 // socket.h:109:1: + SO_TXREHASH = 74 // socket.h:131:1: + SO_TXTIME = 61 // socket.h:104:1: + SO_TYPE = 3 // socket.h:13:1: + SO_WIFI_STATUS = 41 // socket.h:63:1: + SO_ZEROCOPY = 60 // socket.h:102:1: + X_ABILP64 = 3 // :377:1: + X_ATFILE_SOURCE = 1 // features.h:353:1: + X_BITS_ATOMIC_WIDE_COUNTER_H = 0 // atomic_wide_counter.h:20:1: + X_BITS_BYTESWAP_H = 1 // byteswap.h:24:1: + X_BITS_ENDIANNESS_H = 1 // endianness.h:2:1: + X_BITS_ENDIAN_H = 1 // endian.h:20:1: + X_BITS_PTHREADTYPES_ARCH_H = 1 // pthreadtypes-arch.h:21:1: + X_BITS_PTHREADTYPES_COMMON_H = 1 // pthreadtypes.h:20:1: + X_BITS_SOCKADDR_H = 1 // sockaddr.h:24:1: + X_BITS_STDINT_INTN_H = 1 // stdint-intn.h:20:1: + X_BITS_TIME64_H = 1 // time64.h:24:1: + X_BITS_TYPESIZES_H = 1 // typesizes.h:24:1: + X_BITS_TYPES_H = 1 // types.h:24:1: + X_BITS_UINTN_IDENTITY_H = 1 // uintn-identity.h:24:1: + X_BSD_SIZE_T_ = 0 // stddef.h:193:1: + X_BSD_SIZE_T_DEFINED_ = 0 // stddef.h:196:1: + X_DEFAULT_SOURCE = 1 // features.h:238:1: + X_ENDIAN_H = 1 // endian.h:19:1: + X_FEATURES_H = 1 // features.h:19:1: + X_FILE_OFFSET_BITS = 64 // :25:1: + X_GCC_SIZE_T = 0 // stddef.h:200:1: + X_LINUX_POSIX_TYPES_H = 0 // posix_types.h:3:1: + X_LINUX_STDDEF_H = 0 // stddef.h:3:1: + X_LOONGARCH_ARCH = "loongarch64" // :214:1: + X_LOONGARCH_ARCH_LOONGARCH64 = 1 // :340:1: + X_LOONGARCH_FPSET = 32 // :265:1: + X_LOONGARCH_SIM = 3 // :233:1: + X_LOONGARCH_SPFPSET = 32 // :88:1: + X_LOONGARCH_SZINT = 32 // :230:1: + X_LOONGARCH_SZLONG = 64 // :388:1: + X_LOONGARCH_SZPTR = 64 // :200:1: + X_LOONGARCH_TUNE = "la464" // :245:1: + X_LOONGARCH_TUNE_LA464 = 1 // :63:1: + X_LP64 = 1 // :372:1: + X_POSIX_C_SOURCE = 200809 // features.h:292:1: + X_POSIX_SOURCE = 1 // features.h:290:1: + X_SIZET_ = 0 // stddef.h:201:1: + X_SIZE_T = 0 // stddef.h:187:1: + X_SIZE_T_ = 0 // stddef.h:192:1: + X_SIZE_T_DECLARED = 0 // stddef.h:197:1: + X_SIZE_T_DEFINED = 0 // stddef.h:195:1: + X_SIZE_T_DEFINED_ = 0 // stddef.h:194:1: + X_SS_SIZE = 128 // sockaddr.h:40:1: + X_STDC_PREDEF_H = 1 // :223:1: + X_STRUCT_TIMESPEC = 1 // struct_timespec.h:3:1: + X_SYS_CDEFS_H = 1 // cdefs.h:20:1: + X_SYS_SELECT_H = 1 // select.h:22:1: + X_SYS_SIZE_T_H = 0 // stddef.h:188:1: + X_SYS_SOCKET_H = 1 // socket.h:20:1: + X_SYS_TYPES_H = 1 // types.h:23:1: + X_THREAD_MUTEX_INTERNAL_H = 1 // struct_mutex.h:20:1: + X_THREAD_SHARED_TYPES_H = 1 // thread-shared-types.h:20:1: + X_T_SIZE = 0 // stddef.h:190:1: + X_T_SIZE_ = 0 // stddef.h:189:1: + Linux = 1 // :308:1: + Unix = 1 // :247:1: +) + +// Bits in the FLAGS argument to `send', `recv', et al. +const ( /* socket.h:205:1: */ + MSG_OOB = 1 // Process out-of-band data. + MSG_PEEK = 2 // Peek at incoming messages. + MSG_DONTROUTE = 4 // Don't use local routing. + MSG_CTRUNC = 8 // Control data lost before delivery. + MSG_PROXY = 16 // Supply or ask second address. + MSG_TRUNC = 32 + MSG_DONTWAIT = 64 // Nonblocking IO. + MSG_EOR = 128 // End of record. + MSG_WAITALL = 256 // Wait for a full request. + MSG_FIN = 512 + MSG_SYN = 1024 + MSG_CONFIRM = 2048 // Confirm path validity. + MSG_RST = 4096 + MSG_ERRQUEUE = 8192 // Fetch message from error queue. + MSG_NOSIGNAL = 16384 // Do not generate SIGPIPE. + MSG_MORE = 32768 // Sender will send more. + MSG_WAITFORONE = 65536 // Wait for at least one packet to return. + MSG_BATCH = 262144 // sendmmsg: more messages coming. + MSG_ZEROCOPY = 67108864 // Use user data in kernel path. + MSG_FASTOPEN = 536870912 // Send data in TCP SYN. + + MSG_CMSG_CLOEXEC = 1073741824 +) + +// Socket level message types. This must match the definitions in +// +// . +const ( /* socket.h:363:1: */ + SCM_RIGHTS = 1 +) + +// Get the architecture-dependent definition of enum __socket_type. +// Define enum __socket_type for generic Linux. +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Types of sockets. +const ( /* socket_type.h:24:1: */ + SOCK_STREAM = 1 // Sequenced, reliable, connection-based + // byte streams. + SOCK_DGRAM = 2 // Connectionless, unreliable datagrams + // of fixed maximum length. + SOCK_RAW = 3 // Raw protocol interface. + SOCK_RDM = 4 // Reliably-delivered messages. + SOCK_SEQPACKET = 5 // Sequenced, reliable, connection-based, + // datagrams of fixed maximum length. + SOCK_DCCP = 6 // Datagram Congestion Control Protocol. + SOCK_PACKET = 10 // Linux specific way of getting packets + // at the dev level. For writing rarp and + // other similar things on the user level. + + // Flags to be ORed into the type parameter of socket and socketpair and + // used for the flags parameter of paccept. + + SOCK_CLOEXEC = 524288 // Atomically set close-on-exec flag for the + // new descriptor(s). + SOCK_NONBLOCK = 2048 +) + +// The following constants should be used for the second parameter of +// +// `shutdown'. +const ( /* socket.h:41:1: */ + SHUT_RD = 0 // No more receptions. + SHUT_WR = 1 // No more transmissions. + SHUT_RDWR = 2 +) + +type Ptrdiff_t = int64 /* :3:26 */ + +type Size_t = uint64 /* :9:23 */ + +type Wchar_t = int32 /* :15:24 */ + +type X__int128_t = struct { + Flo int64 + Fhi int64 +} /* :21:43 */ // must match modernc.org/mathutil.Int128 +type X__uint128_t = struct { + Flo uint64 + Fhi uint64 +} /* :22:44 */ // must match modernc.org/mathutil.Int128 + +type X__builtin_va_list = uintptr /* :46:14 */ +type X__float128 = float64 /* :47:21 */ + +// Wide character type. +// Locale-writers should change this as necessary to +// be big enough to hold unique values not between 0 and 127, +// and not (wchar_t) -1, for each defined multibyte character. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// A null pointer constant. + +// Structure for scatter/gather I/O. +type Iovec = struct { + Fiov_base uintptr + Fiov_len uint64 +} /* struct_iovec.h:26:1 */ + +// Copyright (C) 1989-2023 Free Software Foundation, Inc. +// +// This file is part of GCC. +// +// GCC is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 3, or (at your option) +// any later version. +// +// GCC is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// Under Section 7 of GPL version 3, you are granted additional +// permissions described in the GCC Runtime Library Exception, version +// 3.1, as published by the Free Software Foundation. +// +// You should have received a copy of the GNU General Public License and +// a copy of the GCC Runtime Library Exception along with this program; +// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see +// . + +// ISO C Standard: 7.17 Common definitions + +// Any one of these symbols __need_* means that GNU libc +// wants us just to define one data type. So don't define +// the symbols that indicate this file's entire job has been done. + +// This avoids lossage on SunOS but only if stdtypes.h comes first. +// There's no way to win with the other order! Sun lossage. + +// Sequent's header files use _PTRDIFF_T_ in some conflicting way. +// Just ignore it. + +// On VxWorks, may have defined macros like +// _TYPE_size_t which will typedef size_t. fixincludes patched the +// vxTypesBase.h so that this macro is only defined if _GCC_SIZE_T is +// not defined, and so that defining this macro defines _GCC_SIZE_T. +// If we find that the macros are still defined at this point, we must +// invoke them so that the type is defined as expected. + +// In case nobody has defined these types, but we aren't running under +// GCC 2.00, make sure that __PTRDIFF_TYPE__, __SIZE_TYPE__, and +// __WCHAR_TYPE__ have reasonable values. This can happen if the +// parts of GCC is compiled by an older compiler, that actually +// include gstddef.h, such as collect2. + +// Signed type of difference of two pointers. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// Unsigned type of `sizeof' something. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// Wide character type. +// Locale-writers should change this as necessary to +// be big enough to hold unique values not between 0 and 127, +// and not (wchar_t) -1, for each defined multibyte character. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// A null pointer constant. + +// This operating system-specific header file defines the SOCK_*, PF_*, +// AF_*, MSG_*, SOL_*, and SO_* constants, and the `struct sockaddr', +// `struct msghdr', and `struct linger' types. +// System-specific socket constants and types. Linux version. +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Copyright (C) 1989-2023 Free Software Foundation, Inc. +// +// This file is part of GCC. +// +// GCC is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 3, or (at your option) +// any later version. +// +// GCC is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// Under Section 7 of GPL version 3, you are granted additional +// permissions described in the GCC Runtime Library Exception, version +// 3.1, as published by the Free Software Foundation. +// +// You should have received a copy of the GNU General Public License and +// a copy of the GCC Runtime Library Exception along with this program; +// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see +// . + +// ISO C Standard: 7.17 Common definitions + +// Any one of these symbols __need_* means that GNU libc +// wants us just to define one data type. So don't define +// the symbols that indicate this file's entire job has been done. + +// This avoids lossage on SunOS but only if stdtypes.h comes first. +// There's no way to win with the other order! Sun lossage. + +// Sequent's header files use _PTRDIFF_T_ in some conflicting way. +// Just ignore it. + +// On VxWorks, may have defined macros like +// _TYPE_size_t which will typedef size_t. fixincludes patched the +// vxTypesBase.h so that this macro is only defined if _GCC_SIZE_T is +// not defined, and so that defining this macro defines _GCC_SIZE_T. +// If we find that the macros are still defined at this point, we must +// invoke them so that the type is defined as expected. + +// In case nobody has defined these types, but we aren't running under +// GCC 2.00, make sure that __PTRDIFF_TYPE__, __SIZE_TYPE__, and +// __WCHAR_TYPE__ have reasonable values. This can happen if the +// parts of GCC is compiled by an older compiler, that actually +// include gstddef.h, such as collect2. + +// Signed type of difference of two pointers. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// Unsigned type of `sizeof' something. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// Wide character type. +// Locale-writers should change this as necessary to +// be big enough to hold unique values not between 0 and 127, +// and not (wchar_t) -1, for each defined multibyte character. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// A null pointer constant. + +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// POSIX Standard: 2.6 Primitive System Data Types + +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Bit size of the time_t type at glibc build time, general case. +// Copyright (C) 2018-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Size in bits of the 'time_t' type of the default ABI. + +// Convenience types. +type X__u_char = uint8 /* types.h:31:23 */ +type X__u_short = uint16 /* types.h:32:28 */ +type X__u_int = uint32 /* types.h:33:22 */ +type X__u_long = uint64 /* types.h:34:27 */ + +// Fixed-size types, underlying types depend on word size and compiler. +type X__int8_t = int8 /* types.h:37:21 */ +type X__uint8_t = uint8 /* types.h:38:23 */ +type X__int16_t = int16 /* types.h:39:26 */ +type X__uint16_t = uint16 /* types.h:40:28 */ +type X__int32_t = int32 /* types.h:41:20 */ +type X__uint32_t = uint32 /* types.h:42:22 */ +type X__int64_t = int64 /* types.h:44:25 */ +type X__uint64_t = uint64 /* types.h:45:27 */ + +// Smallest types with at least a given width. +type X__int_least8_t = int8 /* types.h:52:18 */ +type X__uint_least8_t = uint8 /* types.h:53:19 */ +type X__int_least16_t = int16 /* types.h:54:19 */ +type X__uint_least16_t = uint16 /* types.h:55:20 */ +type X__int_least32_t = int32 /* types.h:56:19 */ +type X__uint_least32_t = uint32 /* types.h:57:20 */ +type X__int_least64_t = int64 /* types.h:58:19 */ +type X__uint_least64_t = uint64 /* types.h:59:20 */ + +// quad_t is also 64 bits. +type X__quad_t = int64 /* types.h:63:18 */ +type X__u_quad_t = uint64 /* types.h:64:27 */ + +// Largest integral types. +type X__intmax_t = int64 /* types.h:72:18 */ +type X__uintmax_t = uint64 /* types.h:73:27 */ + +// The machine-dependent file defines __*_T_TYPE +// macros for each of the OS types we define below. The definitions +// of those macros must use the following macros for underlying types. +// We define __S_TYPE and __U_TYPE for the signed and unsigned +// variants of each of the following integer types on this machine. +// +// 16 -- "natural" 16-bit type (always short) +// 32 -- "natural" 32-bit type (always int) +// 64 -- "natural" 64-bit type (long or long long) +// LONG32 -- 32-bit type, traditionally long +// QUAD -- 64-bit type, traditionally long long +// WORD -- natural type of __WORDSIZE bits (int or long) +// LONGWORD -- type of __WORDSIZE bits, traditionally long +// +// We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the +// conventional uses of `long' or `long long' type modifiers match the +// types we define, even when a less-adorned type would be the same size. +// This matters for (somewhat) portably writing printf/scanf formats for +// these types, where using the appropriate l or ll format modifiers can +// make the typedefs and the formats match up across all GNU platforms. If +// we used `long' when it's 64 bits where `long long' is expected, then the +// compiler would warn about the formats not matching the argument types, +// and the programmer changing them to shut up the compiler would break the +// program's portability. +// +// Here we assume what is presently the case in all the GCC configurations +// we support: long long is always 64 bits, long is always word/address size, +// and int is always 32 bits. + +// No need to mark the typedef with __extension__. +// bits/typesizes.h -- underlying types for *_t. For the generic Linux ABI. +// Copyright (C) 2011-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library. If not, see +// . + +// See for the meaning of these macros. This file exists so +// that need not vary across different GNU platforms. + +// Tell the libc code that off_t and off64_t are actually the same type +// for all ABI purposes, even if possibly expressed as different base types +// for C type-checking purposes. + +// Same for ino_t and ino64_t. + +// And for __rlim_t and __rlim64_t. + +// And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t. + +// And for getitimer, setitimer and rusage + +// Number of descriptors that can fit in an `fd_set'. + +// bits/time64.h -- underlying types for __time64_t. Generic version. +// Copyright (C) 2018-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Define __TIME64_T_TYPE so that it is always a 64-bit type. + +// If we already have 64-bit time type then use it. + +type X__dev_t = uint64 /* types.h:145:25 */ // Type of device numbers. +type X__uid_t = uint32 /* types.h:146:25 */ // Type of user identifications. +type X__gid_t = uint32 /* types.h:147:25 */ // Type of group identifications. +type X__ino_t = uint64 /* types.h:148:25 */ // Type of file serial numbers. +type X__ino64_t = uint64 /* types.h:149:27 */ // Type of file serial numbers (LFS). +type X__mode_t = uint32 /* types.h:150:26 */ // Type of file attribute bitmasks. +type X__nlink_t = uint32 /* types.h:151:27 */ // Type of file link counts. +type X__off_t = int64 /* types.h:152:25 */ // Type of file sizes and offsets. +type X__off64_t = int64 /* types.h:153:27 */ // Type of file sizes and offsets (LFS). +type X__pid_t = int32 /* types.h:154:25 */ // Type of process identifications. +type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs. +type X__clock_t = int64 /* types.h:156:27 */ // Type of CPU usage counts. +type X__rlim_t = uint64 /* types.h:157:26 */ // Type for resource measurement. +type X__rlim64_t = uint64 /* types.h:158:28 */ // Type for resource measurement (LFS). +type X__id_t = uint32 /* types.h:159:24 */ // General type for IDs. +type X__time_t = int64 /* types.h:160:26 */ // Seconds since the Epoch. +type X__useconds_t = uint32 /* types.h:161:30 */ // Count of microseconds. +type X__suseconds_t = int64 /* types.h:162:31 */ // Signed count of microseconds. +type X__suseconds64_t = int64 /* types.h:163:33 */ + +type X__daddr_t = int32 /* types.h:165:27 */ // The type of a disk address. +type X__key_t = int32 /* types.h:166:25 */ // Type of an IPC key. + +// Clock ID used in clock and timer functions. +type X__clockid_t = int32 /* types.h:169:29 */ + +// Timer ID returned by `timer_create'. +type X__timer_t = uintptr /* types.h:172:12 */ + +// Type to represent block size. +type X__blksize_t = int32 /* types.h:175:29 */ + +// Types from the Large File Support interface. + +// Type to count number of disk blocks. +type X__blkcnt_t = int64 /* types.h:180:28 */ +type X__blkcnt64_t = int64 /* types.h:181:30 */ + +// Type to count file system blocks. +type X__fsblkcnt_t = uint64 /* types.h:184:30 */ +type X__fsblkcnt64_t = uint64 /* types.h:185:32 */ + +// Type to count file system nodes. +type X__fsfilcnt_t = uint64 /* types.h:188:30 */ +type X__fsfilcnt64_t = uint64 /* types.h:189:32 */ + +// Type of miscellaneous file system fields. +type X__fsword_t = int64 /* types.h:192:28 */ + +type X__ssize_t = int64 /* types.h:194:27 */ // Type of a byte count, or error. + +// Signed long type used in system calls. +type X__syscall_slong_t = int64 /* types.h:197:33 */ +// Unsigned long type used in system calls. +type X__syscall_ulong_t = uint64 /* types.h:199:33 */ + +// These few don't really vary by system, they always correspond +// +// to one of the other defined types. +type X__loff_t = int64 /* types.h:203:19 */ // Type of file sizes and offsets (LFS). +type X__caddr_t = uintptr /* types.h:204:14 */ + +// Duplicates info from stdint.h but this is used in unistd.h. +type X__intptr_t = int64 /* types.h:207:25 */ + +// Duplicate info from sys/socket.h. +type X__socklen_t = uint32 /* types.h:210:23 */ + +// C99: An integer type that can be accessed as an atomic entity, +// +// even in the presence of asynchronous interrupts. +// It is not currently necessary for this to be machine-specific. +type X__sig_atomic_t = int32 /* types.h:215:13 */ + +// Seconds since the Epoch, visible to user code when time_t is too +// narrow only for consistency with the old way of widening too-narrow +// types. User code should never use __time64_t. + +type U_char = uint8 /* types.h:33:18 */ +type U_short = uint16 /* types.h:34:19 */ +type U_int = uint32 /* types.h:35:17 */ +type U_long = uint64 /* types.h:36:18 */ +type Quad_t = int64 /* types.h:37:18 */ +type U_quad_t = uint64 /* types.h:38:20 */ +type Fsid_t = X__fsid_t /* types.h:39:18 */ +type Loff_t = int64 /* types.h:42:18 */ + +type Ino_t = uint64 /* types.h:49:19 */ + +type Dev_t = uint64 /* types.h:59:17 */ + +type Gid_t = uint32 /* types.h:64:17 */ + +type Mode_t = uint32 /* types.h:69:18 */ + +type Nlink_t = uint32 /* types.h:74:19 */ + +type Uid_t = uint32 /* types.h:79:17 */ + +type Off_t = int64 /* types.h:87:19 */ + +type Pid_t = int32 /* types.h:97:17 */ + +type Id_t = uint32 /* types.h:103:16 */ + +type Ssize_t = int64 /* types.h:108:19 */ + +type Daddr_t = int32 /* types.h:114:19 */ +type Caddr_t = uintptr /* types.h:115:19 */ + +type Key_t = int32 /* types.h:121:17 */ + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Returned by `clock'. +type Clock_t = int64 /* clock_t.h:7:19 */ + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Clock ID used in clock and timer functions. +type Clockid_t = int32 /* clockid_t.h:7:21 */ + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Returned by `time'. +type Time_t = int64 /* time_t.h:10:18 */ + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Timer ID returned by `timer_create'. +type Timer_t = uintptr /* timer_t.h:7:19 */ + +// Copyright (C) 1989-2023 Free Software Foundation, Inc. +// +// This file is part of GCC. +// +// GCC is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 3, or (at your option) +// any later version. +// +// GCC is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// Under Section 7 of GPL version 3, you are granted additional +// permissions described in the GCC Runtime Library Exception, version +// 3.1, as published by the Free Software Foundation. +// +// You should have received a copy of the GNU General Public License and +// a copy of the GCC Runtime Library Exception along with this program; +// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see +// . + +// ISO C Standard: 7.17 Common definitions + +// Any one of these symbols __need_* means that GNU libc +// wants us just to define one data type. So don't define +// the symbols that indicate this file's entire job has been done. + +// This avoids lossage on SunOS but only if stdtypes.h comes first. +// There's no way to win with the other order! Sun lossage. + +// Sequent's header files use _PTRDIFF_T_ in some conflicting way. +// Just ignore it. + +// On VxWorks, may have defined macros like +// _TYPE_size_t which will typedef size_t. fixincludes patched the +// vxTypesBase.h so that this macro is only defined if _GCC_SIZE_T is +// not defined, and so that defining this macro defines _GCC_SIZE_T. +// If we find that the macros are still defined at this point, we must +// invoke them so that the type is defined as expected. + +// In case nobody has defined these types, but we aren't running under +// GCC 2.00, make sure that __PTRDIFF_TYPE__, __SIZE_TYPE__, and +// __WCHAR_TYPE__ have reasonable values. This can happen if the +// parts of GCC is compiled by an older compiler, that actually +// include gstddef.h, such as collect2. + +// Signed type of difference of two pointers. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// Unsigned type of `sizeof' something. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// Wide character type. +// Locale-writers should change this as necessary to +// be big enough to hold unique values not between 0 and 127, +// and not (wchar_t) -1, for each defined multibyte character. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// A null pointer constant. + +// Old compatibility names for C types. +type Ulong = uint64 /* types.h:148:27 */ +type Ushort = uint16 /* types.h:149:28 */ +type Uint = uint32 /* types.h:150:22 */ + +// These size-specific names are used by some of the inet code. + +// Define intN_t types. +// Copyright (C) 2017-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +type Int8_t = int8 /* stdint-intn.h:24:18 */ +type Int16_t = int16 /* stdint-intn.h:25:19 */ +type Int32_t = int32 /* stdint-intn.h:26:19 */ +type Int64_t = int64 /* stdint-intn.h:27:19 */ + +// These were defined by ISO C without the first `_'. +type U_int8_t = uint8 /* types.h:158:19 */ +type U_int16_t = uint16 /* types.h:159:20 */ +type U_int32_t = uint32 /* types.h:160:20 */ +type U_int64_t = uint64 /* types.h:161:20 */ + +type Register_t = int32 /* types.h:164:13 */ + +// It also defines `fd_set' and the FD_* macros for `select'. +// `fd_set' type and related macros, and `select'/`pselect' declarations. +// Copyright (C) 1996-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// POSIX 1003.1g: 6.2 Select from File Descriptor Sets + +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Get definition of needed basic types. +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Get __FD_* definitions. +// Copyright (C) 1997-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// We don't use `memset' because this would require a prototype and +// the array isn't too big. + +// Get sigset_t. + +type X__sigset_t = struct{ F__val [16]uint64 } /* __sigset_t.h:8:3 */ + +// A set of signals to be blocked, unblocked, or waited for. +type Sigset_t = X__sigset_t /* sigset_t.h:7:20 */ + +// Get definition of timer specification structures. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// A time value that is accurate to the nearest +// +// microsecond but also has a range of years. +type Timeval = struct { + Ftv_sec int64 + Ftv_usec int64 +} /* struct_timeval.h:8:1 */ + +// NB: Include guard matches what uses. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Endian macros for string.h functions +// Copyright (C) 1992-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// POSIX.1b structure for a time value. This is like a `struct timeval' but +// +// has nanoseconds instead of microseconds. +type Timespec = struct { + Ftv_sec int64 + Ftv_nsec int64 +} /* struct_timespec.h:11:1 */ + +type Suseconds_t = int64 /* select.h:43:23 */ + +// The fd_set member is required to be an array of longs. +type X__fd_mask = int64 /* select.h:49:18 */ + +// Some versions of define this macros. +// It's easier to assume 8-bit bytes than to get CHAR_BIT. + +// fd_set for select and pselect. +type Fd_set = struct{ F__fds_bits [16]int64 } /* select.h:70:5 */ + +// Maximum number of file descriptors in `fd_set'. + +// Sometimes the fd_set member is assumed to have this type. +type Fd_mask = int64 /* select.h:77:19 */ + +// Define some inlines helping to catch common problems. + +type Blksize_t = int32 /* types.h:185:21 */ + +// Types from the Large File Support interface. +type Blkcnt_t = int64 /* types.h:205:22 */ // Type to count number of disk blocks. +type Fsblkcnt_t = uint64 /* types.h:209:24 */ // Type to count file system blocks. +type Fsfilcnt_t = uint64 /* types.h:213:24 */ // Type to count file system inodes. + +// Now add the thread types. +// Declaration of common pthread types for all architectures. +// Copyright (C) 2017-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// For internal mutex and condition variable definitions. +// Common threading primitives definitions for both POSIX and C11. +// Copyright (C) 2017-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Arch-specific definitions. Each architecture must define the following +// macros to define the expected sizes of pthread data types: +// +// __SIZEOF_PTHREAD_ATTR_T - size of pthread_attr_t. +// __SIZEOF_PTHREAD_MUTEX_T - size of pthread_mutex_t. +// __SIZEOF_PTHREAD_MUTEXATTR_T - size of pthread_mutexattr_t. +// __SIZEOF_PTHREAD_COND_T - size of pthread_cond_t. +// __SIZEOF_PTHREAD_CONDATTR_T - size of pthread_condattr_t. +// __SIZEOF_PTHREAD_RWLOCK_T - size of pthread_rwlock_t. +// __SIZEOF_PTHREAD_RWLOCKATTR_T - size of pthread_rwlockattr_t. +// __SIZEOF_PTHREAD_BARRIER_T - size of pthread_barrier_t. +// __SIZEOF_PTHREAD_BARRIERATTR_T - size of pthread_barrierattr_t. +// +// The additional macro defines any constraint for the lock alignment +// inside the thread structures: +// +// __LOCK_ALIGNMENT - for internal lock/futex usage. +// +// Same idea but for the once locking primitive: +// +// __ONCE_ALIGNMENT - for pthread_once_t/once_flag definition. + +// Machine-specific pthread type layouts. Generic version. +// Copyright (C) 2019-2023 Free Software Foundation, Inc. +// +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Monotonically increasing wide counters (at least 62 bits). +// Copyright (C) 2016-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Counter that is monotonically increasing (by less than 2**31 per +// +// increment), with a single writer, and an arbitrary number of +// readers. +type X__atomic_wide_counter = struct{ F__value64 uint64 } /* atomic_wide_counter.h:33:3 */ + +// Common definition of pthread_mutex_t. + +type X__pthread_internal_list = struct { + F__prev uintptr + F__next uintptr +} /* thread-shared-types.h:51:9 */ + +// Common definition of pthread_mutex_t. + +type X__pthread_list_t = X__pthread_internal_list /* thread-shared-types.h:55:3 */ + +type X__pthread_internal_slist = struct{ F__next uintptr } /* thread-shared-types.h:57:9 */ + +type X__pthread_slist_t = X__pthread_internal_slist /* thread-shared-types.h:60:3 */ + +// Arch-specific mutex definitions. A generic implementation is provided +// by sysdeps/nptl/bits/struct_mutex.h. If required, an architecture +// can override it by defining: +// +// 1. struct __pthread_mutex_s (used on both pthread_mutex_t and mtx_t +// definition). It should contains at least the internal members +// defined in the generic version. +// +// 2. __LOCK_ALIGNMENT for any extra attribute for internal lock used with +// atomic operations. +// +// 3. The macro __PTHREAD_MUTEX_INITIALIZER used for static initialization. +// It should initialize the mutex internal flag. + +// Default mutex implementation struct definitions. +// Copyright (C) 2019-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Generic struct for both POSIX and C11 mutexes. New ports are expected +// to use the default layout, however architecture can redefine it to +// add arch-specific extension (such as lock-elision). The struct have +// a size of 32 bytes on LP32 and 40 bytes on LP64 architectures. + +type X__pthread_mutex_s = struct { + F__lock int32 + F__count uint32 + F__owner int32 + F__nusers uint32 + F__kind int32 + F__spins int32 + F__list X__pthread_list_t +} /* struct_mutex.h:27:1 */ + +// Arch-sepecific read-write lock definitions. A generic implementation is +// provided by struct_rwlock.h. If required, an architecture can override it +// by defining: +// +// 1. struct __pthread_rwlock_arch_t (used on pthread_rwlock_t definition). +// It should contain at least the internal members defined in the +// generic version. +// +// 2. The macro __PTHREAD_RWLOCK_INITIALIZER used for static initialization. +// It should initialize the rwlock internal type. + +// Default read-write lock implementation struct definitions. +// Copyright (C) 2019-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Endian macros for string.h functions +// Copyright (C) 1992-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Generic struct for both POSIX read-write lock. New ports are expected +// to use the default layout, however archictetures can redefine it to add +// arch-specific extensions (such as lock-elision). The struct have a size +// of 32 bytes on both LP32 and LP64 architectures. + +type X__pthread_rwlock_arch_t = struct { + F__readers uint32 + F__writers uint32 + F__wrphase_futex uint32 + F__writers_futex uint32 + F__pad3 uint32 + F__pad4 uint32 + F__flags uint8 + F__shared uint8 + F__pad1 uint8 + F__pad2 uint8 + F__cur_writer int32 +} /* struct_rwlock.h:29:1 */ + +// Common definition of pthread_cond_t. + +type X__pthread_cond_s = struct { + F__wseq X__atomic_wide_counter + F__g1_start X__atomic_wide_counter + F__g_refs [2]uint32 + F__g_size [2]uint32 + F__g1_orig_size uint32 + F__wrefs uint32 + F__g_signals [2]uint32 +} /* thread-shared-types.h:94:1 */ + +type X__tss_t = uint32 /* thread-shared-types.h:105:22 */ +type X__thrd_t = uint64 /* thread-shared-types.h:106:27 */ + +type X__once_flag = struct{ F__data int32 } /* thread-shared-types.h:111:3 */ + +// Thread identifiers. The structure of the attribute type is not +// +// exposed on purpose. +type Pthread_t = uint64 /* pthreadtypes.h:27:27 */ + +// Data structures for mutex handling. The structure of the attribute +// +// type is not exposed on purpose. +type Pthread_mutexattr_t = struct { + F__ccgo_pad1 [0]uint32 + F__size [4]int8 +} /* pthreadtypes.h:36:3 */ + +// Data structure for condition variable handling. The structure of +// +// the attribute type is not exposed on purpose. +type Pthread_condattr_t = struct { + F__ccgo_pad1 [0]uint32 + F__size [4]int8 +} /* pthreadtypes.h:45:3 */ + +// Keys for thread-specific data +type Pthread_key_t = uint32 /* pthreadtypes.h:49:22 */ + +// Once-only execution +type Pthread_once_t = int32 /* pthreadtypes.h:53:30 */ + +type Pthread_attr_t1 = struct { + F__ccgo_pad1 [0]uint64 + F__size [56]int8 +} /* pthreadtypes.h:56:1 */ + +type Pthread_attr_t = Pthread_attr_t1 /* pthreadtypes.h:62:30 */ + +type Pthread_mutex_t = struct{ F__data X__pthread_mutex_s } /* pthreadtypes.h:72:3 */ + +type Pthread_cond_t = struct{ F__data X__pthread_cond_s } /* pthreadtypes.h:80:3 */ + +// Data structure for reader-writer lock variable handling. The +// +// structure of the attribute type is deliberately not exposed. +type Pthread_rwlock_t = struct { + F__ccgo_pad1 [0]uint64 + F__data X__pthread_rwlock_arch_t + F__ccgo_pad2 [24]byte +} /* pthreadtypes.h:91:3 */ + +type Pthread_rwlockattr_t = struct { + F__ccgo_pad1 [0]uint64 + F__size [8]int8 +} /* pthreadtypes.h:97:3 */ + +// POSIX spinlock data type. +type Pthread_spinlock_t = int32 /* pthreadtypes.h:103:22 */ + +// POSIX barriers data type. The structure of the type is +// +// deliberately not exposed. +type Pthread_barrier_t = struct { + F__ccgo_pad1 [0]uint64 + F__size [32]int8 +} /* pthreadtypes.h:112:3 */ + +type Pthread_barrierattr_t = struct { + F__ccgo_pad1 [0]uint32 + F__size [4]int8 +} /* pthreadtypes.h:118:3 */ + +// Type for length arguments in socket calls. +type Socklen_t = uint32 /* socket.h:33:21 */ + +// Protocol families. + +// Address families. + +// Socket level values. Others are defined in the appropriate headers. +// +// XXX These definitions also should go into the appropriate headers as +// far as they are available. + +// Maximum queue length specifiable by listen. + +// Get the definition of the macro to define the common sockaddr members. +// Definition of struct sockaddr_* common members and sizes, generic version. +// Copyright (C) 1995-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// POSIX.1g specifies this type name for the `sa_family' member. +type Sa_family_t = uint16 /* sockaddr.h:28:28 */ + +// This macro is used to declare the initial common members +// of the data types used for socket addresses, `struct sockaddr', +// `struct sockaddr_in', `struct sockaddr_un', etc. + +// Size of struct sockaddr_storage. + +// Structure describing a generic socket address. +type Sockaddr = struct { + Fsa_family uint16 + Fsa_data [14]int8 +} /* socket.h:183:1 */ + +// Structure large enough to hold any socket address (with the historical +// exception of AF_UNIX). + +type Sockaddr_storage = struct { + Fss_family uint16 + F__ss_padding [118]int8 + F__ss_align uint64 +} /* socket.h:196:1 */ + +// Structure describing messages sent by +// +// `sendmsg' and received by `recvmsg'. +type Msghdr = struct { + Fmsg_name uintptr + Fmsg_namelen uint32 + F__ccgo_pad1 [4]byte + Fmsg_iov uintptr + Fmsg_iovlen uint64 + Fmsg_control uintptr + Fmsg_controllen uint64 + Fmsg_flags int32 + F__ccgo_pad2 [4]byte +} /* socket.h:262:1 */ + +// Structure used for storage of ancillary data object information. +type Cmsghdr = struct { + F__ccgo_pad1 [0]uint64 + Fcmsg_len uint64 + Fcmsg_level int32 + Fcmsg_type int32 +} /* socket.h:280:1 */ + +// SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note + +// SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note + +// SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note + +// * +// __struct_group() - Create a mirrored named and anonyomous struct +// +// @TAG: The tag name for the named sub-struct (usually empty) +// @NAME: The identifier name of the mirrored sub-struct +// @ATTRS: Any struct attributes (usually empty) +// @MEMBERS: The member declarations for the mirrored structs +// +// Used to create an anonymous union of two structs with identical layout +// and size: one anonymous and one named. The former's members can be used +// normally without sub-struct naming, and the latter can be used to +// reason about the start, end, and size of the group of struct members. +// The named struct can also be explicitly tagged for layer reuse, as well +// as both having struct attributes appended. + +// * +// __DECLARE_FLEX_ARRAY() - Declare a flexible array usable in a union +// +// @TYPE: The type of each flexible array element +// @NAME: The name of the flexible array member +// +// In order to have a flexible array member in a union or alone in a +// struct, it needs to be wrapped in an anonymous struct with at least 1 +// named member, but that member can be empty. + +// This allows for 1024 file descriptors: if NR_OPEN is ever grown +// beyond that you'll have to change this too. But 1024 fd's seem to be +// enough even for such "real" unices like OSF/1, so hopefully this is +// one limit that doesn't have to be changed [again]. +// +// Note that POSIX wants the FD_CLEAR(fd,fdsetp) defines to be in +// (and thus ) - but this is a more logical +// place for them. Solved by having dummy defines in . + +// This macro may have been defined in . But we always +// use the one here. + +type X__kernel_fd_set = struct{ Ffds_bits [16]uint64 } /* posix_types.h:27:3 */ + +// Type of a signal handler. +type X__kernel_sighandler_t = uintptr /* posix_types.h:30:14 */ + +// Type of a SYSV IPC key. +type X__kernel_key_t = int32 /* posix_types.h:33:13 */ +type X__kernel_mqd_t = int32 /* posix_types.h:34:13 */ + +// SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note + +// SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note + +// In order to keep safe and avoid regression, only unify uapi +// bitsperlong.h for some archs which are using newer toolchains +// that have the definitions of __CHAR_BIT__ and __SIZEOF_LONG__. +// See the following link for more info: +// https://lore.kernel.org/linux-arch/b9624545-2c80-49a1-ac3c-39264a591f7b@app.fastmail.com/ + +// This file is generally used by user-level software, so you need to +// be a little careful about namespace pollution etc. +// +// First the types that are often defined in different ways across +// architectures, so that you can override them. + +type X__kernel_long_t = int64 /* posix_types.h:15:15 */ +type X__kernel_ulong_t = uint64 /* posix_types.h:16:23 */ + +type X__kernel_ino_t = uint64 /* posix_types.h:20:26 */ + +type X__kernel_mode_t = uint32 /* posix_types.h:24:22 */ + +type X__kernel_pid_t = int32 /* posix_types.h:28:14 */ + +type X__kernel_ipc_pid_t = int32 /* posix_types.h:32:14 */ + +type X__kernel_uid_t = uint32 /* posix_types.h:36:22 */ +type X__kernel_gid_t = uint32 /* posix_types.h:37:22 */ + +type X__kernel_suseconds_t = int64 /* posix_types.h:41:26 */ + +type X__kernel_daddr_t = int32 /* posix_types.h:45:14 */ + +type X__kernel_uid32_t = uint32 /* posix_types.h:49:22 */ +type X__kernel_gid32_t = uint32 /* posix_types.h:50:22 */ + +type X__kernel_old_uid_t = uint32 /* posix_types.h:54:24 */ +type X__kernel_old_gid_t = uint32 /* posix_types.h:55:24 */ + +type X__kernel_old_dev_t = uint32 /* posix_types.h:59:22 */ + +// Most 32 bit architectures use "unsigned int" size_t, +// and all 64 bit architectures use "unsigned long" size_t. +type X__kernel_size_t = uint64 /* posix_types.h:72:26 */ +type X__kernel_ssize_t = int64 /* posix_types.h:73:25 */ +type X__kernel_ptrdiff_t = int64 /* posix_types.h:74:25 */ + +type X__kernel_fsid_t = struct{ Fval [2]int32 } /* posix_types.h:81:3 */ + +// anything below here should be completely generic +type X__kernel_off_t = int64 /* posix_types.h:87:25 */ +type X__kernel_loff_t = int64 /* posix_types.h:88:19 */ +type X__kernel_old_time_t = int64 /* posix_types.h:89:25 */ +type X__kernel_time_t = int64 /* posix_types.h:90:25 */ +type X__kernel_time64_t = int64 /* posix_types.h:91:19 */ +type X__kernel_clock_t = int64 /* posix_types.h:92:25 */ +type X__kernel_timer_t = int32 /* posix_types.h:93:14 */ +type X__kernel_clockid_t = int32 /* posix_types.h:94:14 */ +type X__kernel_caddr_t = uintptr /* posix_types.h:95:14 */ +type X__kernel_uid16_t = uint16 /* posix_types.h:96:24 */ +type X__kernel_gid16_t = uint16 /* posix_types.h:97:24 */ + +// SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note + +// Socket-level I/O control calls. + +// For setsockopt(2) + +// Security levels - as per NRL IPv6 - don't actually do anything + +// Socket filtering + +// Instruct lower device to use last 4-bytes of skb data as FCS + +// on 64-bit and x32, avoid the ?: operator + +// Structure used to manipulate the SO_LINGER option. +type Linger = struct { + Fl_onoff int32 + Fl_linger int32 +} /* socket.h:392:1 */ + +// This is the 4.3 BSD `struct sockaddr' format, which is used as wire +// +// format in the grotty old 4.3 `talk' protocol. +type Osockaddr = struct { + Fsa_family uint16 + Fsa_data [14]uint8 +} /* struct_osockaddr.h:6:1 */ + +// Define some macros helping to catch buffer overflows. + +var _ int8 /* gen.c:2:13: */ diff --git a/vendor/modernc.org/libc/sys/socket/socket_linux_mips64le.go b/vendor/modernc.org/libc/sys/socket/socket_linux_mips64le.go new file mode 100644 index 000000000..c5ca270fe --- /dev/null +++ b/vendor/modernc.org/libc/sys/socket/socket_linux_mips64le.go @@ -0,0 +1,1848 @@ +// Code generated by 'ccgo sys/socket/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o sys/socket/socket_linux_amd64.go -pkgname socket', DO NOT EDIT. + +package socket + +import ( + "math" + "reflect" + "sync/atomic" + "unsafe" +) + +var _ = math.Pi +var _ reflect.Kind +var _ atomic.Value +var _ unsafe.Pointer + +const ( + AF_ALG = 38 // socket.h:133:1: + AF_APPLETALK = 5 // socket.h:99:1: + AF_ASH = 18 // socket.h:113:1: + AF_ATMPVC = 8 // socket.h:102:1: + AF_ATMSVC = 20 // socket.h:115:1: + AF_AX25 = 3 // socket.h:97:1: + AF_BLUETOOTH = 31 // socket.h:126:1: + AF_BRIDGE = 7 // socket.h:101:1: + AF_CAIF = 37 // socket.h:132:1: + AF_CAN = 29 // socket.h:124:1: + AF_DECnet = 12 // socket.h:106:1: + AF_ECONET = 19 // socket.h:114:1: + AF_FILE = 1 // socket.h:95:1: + AF_IB = 27 // socket.h:122:1: + AF_IEEE802154 = 36 // socket.h:131:1: + AF_INET = 2 // socket.h:96:1: + AF_INET6 = 10 // socket.h:104:1: + AF_IPX = 4 // socket.h:98:1: + AF_IRDA = 23 // socket.h:118:1: + AF_ISDN = 34 // socket.h:129:1: + AF_IUCV = 32 // socket.h:127:1: + AF_KCM = 41 // socket.h:136:1: + AF_KEY = 15 // socket.h:109:1: + AF_LLC = 26 // socket.h:121:1: + AF_LOCAL = 1 // socket.h:93:1: + AF_MAX = 45 // socket.h:140:1: + AF_MPLS = 28 // socket.h:123:1: + AF_NETBEUI = 13 // socket.h:107:1: + AF_NETLINK = 16 // socket.h:110:1: + AF_NETROM = 6 // socket.h:100:1: + AF_NFC = 39 // socket.h:134:1: + AF_PACKET = 17 // socket.h:112:1: + AF_PHONET = 35 // socket.h:130:1: + AF_PPPOX = 24 // socket.h:119:1: + AF_QIPCRTR = 42 // socket.h:137:1: + AF_RDS = 21 // socket.h:116:1: + AF_ROSE = 11 // socket.h:105:1: + AF_ROUTE = 16 // socket.h:111:1: + AF_RXRPC = 33 // socket.h:128:1: + AF_SECURITY = 14 // socket.h:108:1: + AF_SMC = 43 // socket.h:138:1: + AF_SNA = 22 // socket.h:117:1: + AF_TIPC = 30 // socket.h:125:1: + AF_UNIX = 1 // socket.h:94:1: + AF_UNSPEC = 0 // socket.h:92:1: + AF_VSOCK = 40 // socket.h:135:1: + AF_WANPIPE = 25 // socket.h:120:1: + AF_X25 = 9 // socket.h:103:1: + AF_XDP = 44 // socket.h:139:1: + BIG_ENDIAN = 4321 // endian.h:28:1: + BYTE_ORDER = 1234 // endian.h:30:1: + FD_SETSIZE = 1024 // select.h:73:1: + FIOGETOWN = 0x8903 // sockios.h:8:1: + FIOSETOWN = 0x8901 // sockios.h:6:1: + LITTLE_ENDIAN = 1234 // endian.h:27:1: + PDP_ENDIAN = 3412 // endian.h:29:1: + PF_ALG = 38 // socket.h:82:1: + PF_APPLETALK = 5 // socket.h:48:1: + PF_ASH = 18 // socket.h:62:1: + PF_ATMPVC = 8 // socket.h:51:1: + PF_ATMSVC = 20 // socket.h:64:1: + PF_AX25 = 3 // socket.h:46:1: + PF_BLUETOOTH = 31 // socket.h:75:1: + PF_BRIDGE = 7 // socket.h:50:1: + PF_CAIF = 37 // socket.h:81:1: + PF_CAN = 29 // socket.h:73:1: + PF_DECnet = 12 // socket.h:55:1: + PF_ECONET = 19 // socket.h:63:1: + PF_FILE = 1 // socket.h:44:1: + PF_IB = 27 // socket.h:71:1: + PF_IEEE802154 = 36 // socket.h:80:1: + PF_INET = 2 // socket.h:45:1: + PF_INET6 = 10 // socket.h:53:1: + PF_IPX = 4 // socket.h:47:1: + PF_IRDA = 23 // socket.h:67:1: + PF_ISDN = 34 // socket.h:78:1: + PF_IUCV = 32 // socket.h:76:1: + PF_KCM = 41 // socket.h:85:1: + PF_KEY = 15 // socket.h:58:1: + PF_LLC = 26 // socket.h:70:1: + PF_LOCAL = 1 // socket.h:42:1: + PF_MAX = 45 // socket.h:89:1: + PF_MPLS = 28 // socket.h:72:1: + PF_NETBEUI = 13 // socket.h:56:1: + PF_NETLINK = 16 // socket.h:59:1: + PF_NETROM = 6 // socket.h:49:1: + PF_NFC = 39 // socket.h:83:1: + PF_PACKET = 17 // socket.h:61:1: + PF_PHONET = 35 // socket.h:79:1: + PF_PPPOX = 24 // socket.h:68:1: + PF_QIPCRTR = 42 // socket.h:86:1: + PF_RDS = 21 // socket.h:65:1: + PF_ROSE = 11 // socket.h:54:1: + PF_ROUTE = 16 // socket.h:60:1: + PF_RXRPC = 33 // socket.h:77:1: + PF_SECURITY = 14 // socket.h:57:1: + PF_SMC = 43 // socket.h:87:1: + PF_SNA = 22 // socket.h:66:1: + PF_TIPC = 30 // socket.h:74:1: + PF_UNIX = 1 // socket.h:43:1: + PF_UNSPEC = 0 // socket.h:41:1: + PF_VSOCK = 40 // socket.h:84:1: + PF_WANPIPE = 25 // socket.h:69:1: + PF_X25 = 9 // socket.h:52:1: + PF_XDP = 44 // socket.h:88:1: + SCM_TIMESTAMP = 29 // socket.h:140:1: + SCM_TIMESTAMPING = 37 // socket.h:142:1: + SCM_TIMESTAMPING_OPT_STATS = 54 // socket.h:90:1: + SCM_TIMESTAMPING_PKTINFO = 58 // socket.h:98:1: + SCM_TIMESTAMPNS = 35 // socket.h:141:1: + SCM_TXTIME = 61 // socket.h:105:1: + SCM_WIFI_STATUS = 41 // socket.h:64:1: + SIOCATMARK = 0x8905 // sockios.h:10:1: + SIOCGPGRP = 0x8904 // sockios.h:9:1: + SIOCGSTAMP = 0x8906 // sockios.h:11:1: + SIOCGSTAMPNS = 0x8907 // sockios.h:12:1: + SIOCSPGRP = 0x8902 // sockios.h:7:1: + SOL_AAL = 265 // socket.h:151:1: + SOL_ALG = 279 // socket.h:165:1: + SOL_ATM = 264 // socket.h:150:1: + SOL_BLUETOOTH = 274 // socket.h:160:1: + SOL_CAIF = 278 // socket.h:164:1: + SOL_DCCP = 269 // socket.h:155:1: + SOL_DECNET = 261 // socket.h:147:1: + SOL_IRDA = 266 // socket.h:152:1: + SOL_IUCV = 277 // socket.h:163:1: + SOL_KCM = 281 // socket.h:167:1: + SOL_LLC = 268 // socket.h:154:1: + SOL_NETBEUI = 267 // socket.h:153:1: + SOL_NETLINK = 270 // socket.h:156:1: + SOL_NFC = 280 // socket.h:166:1: + SOL_PACKET = 263 // socket.h:149:1: + SOL_PNPIPE = 275 // socket.h:161:1: + SOL_PPPOL2TP = 273 // socket.h:159:1: + SOL_RAW = 255 // socket.h:146:1: + SOL_RDS = 276 // socket.h:162:1: + SOL_RXRPC = 272 // socket.h:158:1: + SOL_SOCKET = 1 // socket.h:9:1: + SOL_TIPC = 271 // socket.h:157:1: + SOL_TLS = 282 // socket.h:168:1: + SOL_X25 = 262 // socket.h:148:1: + SOL_XDP = 283 // socket.h:169:1: + SOMAXCONN = 4096 // socket.h:172:1: + SO_ACCEPTCONN = 30 // socket.h:51:1: + SO_ATTACH_BPF = 50 // socket.h:82:1: + SO_ATTACH_FILTER = 26 // socket.h:45:1: + SO_ATTACH_REUSEPORT_CBPF = 51 // socket.h:85:1: + SO_ATTACH_REUSEPORT_EBPF = 52 // socket.h:86:1: + SO_BINDTODEVICE = 25 // socket.h:42:1: + SO_BINDTOIFINDEX = 62 // socket.h:107:1: + SO_BPF_EXTENSIONS = 48 // socket.h:78:1: + SO_BROADCAST = 6 // socket.h:16:1: + SO_BSDCOMPAT = 14 // socket.h:26:1: + SO_BUSY_POLL = 46 // socket.h:74:1: + SO_CNX_ADVICE = 53 // socket.h:88:1: + SO_COOKIE = 57 // socket.h:96:1: + SO_DEBUG = 1 // socket.h:11:1: + SO_DETACH_BPF = 27 // socket.h:83:1: + SO_DETACH_FILTER = 27 // socket.h:46:1: + SO_DETACH_REUSEPORT_BPF = 68 // socket.h:120:1: + SO_DOMAIN = 39 // socket.h:59:1: + SO_DONTROUTE = 5 // socket.h:15:1: + SO_ERROR = 4 // socket.h:14:1: + SO_GET_FILTER = 26 // socket.h:47:1: + SO_INCOMING_CPU = 49 // socket.h:80:1: + SO_INCOMING_NAPI_ID = 56 // socket.h:94:1: + SO_KEEPALIVE = 9 // socket.h:21:1: + SO_LINGER = 13 // socket.h:25:1: + SO_LOCK_FILTER = 44 // socket.h:70:1: + SO_MARK = 36 // socket.h:56:1: + SO_MAX_PACING_RATE = 47 // socket.h:76:1: + SO_MEMINFO = 55 // socket.h:92:1: + SO_NOFCS = 43 // socket.h:68:1: + SO_NO_CHECK = 11 // socket.h:23:1: + SO_OOBINLINE = 10 // socket.h:22:1: + SO_PASSCRED = 16 // socket.h:29:1: + SO_PASSSEC = 34 // socket.h:54:1: + SO_PEEK_OFF = 42 // socket.h:65:1: + SO_PEERCRED = 17 // socket.h:30:1: + SO_PEERGROUPS = 59 // socket.h:100:1: + SO_PEERNAME = 28 // socket.h:49:1: + SO_PEERSEC = 31 // socket.h:53:1: + SO_PRIORITY = 12 // socket.h:24:1: + SO_PROTOCOL = 38 // socket.h:58:1: + SO_RCVBUF = 8 // socket.h:18:1: + SO_RCVBUFFORCE = 33 // socket.h:20:1: + SO_RCVLOWAT = 18 // socket.h:31:1: + SO_RCVTIMEO = 20 // socket.h:129:1: + SO_RCVTIMEO_NEW = 66 // socket.h:117:1: + SO_RCVTIMEO_OLD = 20 // socket.h:33:1: + SO_REUSEADDR = 2 // socket.h:12:1: + SO_REUSEPORT = 15 // socket.h:27:1: + SO_RXQ_OVFL = 40 // socket.h:61:1: + SO_SECURITY_AUTHENTICATION = 22 // socket.h:38:1: + SO_SECURITY_ENCRYPTION_NETWORK = 24 // socket.h:40:1: + SO_SECURITY_ENCRYPTION_TRANSPORT = 23 // socket.h:39:1: + SO_SELECT_ERR_QUEUE = 45 // socket.h:72:1: + SO_SNDBUF = 7 // socket.h:17:1: + SO_SNDBUFFORCE = 32 // socket.h:19:1: + SO_SNDLOWAT = 19 // socket.h:32:1: + SO_SNDTIMEO = 21 // socket.h:130:1: + SO_SNDTIMEO_NEW = 67 // socket.h:118:1: + SO_SNDTIMEO_OLD = 21 // socket.h:34:1: + SO_TIMESTAMP = 29 // socket.h:125:1: + SO_TIMESTAMPING = 37 // socket.h:127:1: + SO_TIMESTAMPING_NEW = 65 // socket.h:115:1: + SO_TIMESTAMPING_OLD = 37 // socket.h:111:1: + SO_TIMESTAMPNS = 35 // socket.h:126:1: + SO_TIMESTAMPNS_NEW = 64 // socket.h:114:1: + SO_TIMESTAMPNS_OLD = 35 // socket.h:110:1: + SO_TIMESTAMP_NEW = 63 // socket.h:113:1: + SO_TIMESTAMP_OLD = 29 // socket.h:109:1: + SO_TXTIME = 61 // socket.h:104:1: + SO_TYPE = 3 // socket.h:13:1: + SO_WIFI_STATUS = 41 // socket.h:63:1: + SO_ZEROCOPY = 60 // socket.h:102:1: + X_ASM_X86_POSIX_TYPES_64_H = 0 // posix_types_64.h:3:1: + X_ATFILE_SOURCE = 1 // features.h:342:1: + X_BITS_BYTESWAP_H = 1 // byteswap.h:24:1: + X_BITS_ENDIANNESS_H = 1 // endianness.h:2:1: + X_BITS_ENDIAN_H = 1 // endian.h:20:1: + X_BITS_PTHREADTYPES_ARCH_H = 1 // pthreadtypes-arch.h:19:1: + X_BITS_PTHREADTYPES_COMMON_H = 1 // pthreadtypes.h:20:1: + X_BITS_SOCKADDR_H = 1 // sockaddr.h:24:1: + X_BITS_STDINT_INTN_H = 1 // stdint-intn.h:20:1: + X_BITS_TIME64_H = 1 // time64.h:24:1: + X_BITS_TYPESIZES_H = 1 // typesizes.h:24:1: + X_BITS_TYPES_H = 1 // types.h:24:1: + X_BITS_UINTN_IDENTITY_H = 1 // uintn-identity.h:24:1: + X_BSD_SIZE_T_ = 0 // stddef.h:189:1: + X_BSD_SIZE_T_DEFINED_ = 0 // stddef.h:192:1: + X_DEFAULT_SOURCE = 1 // features.h:227:1: + X_ENDIAN_H = 1 // endian.h:19:1: + X_FEATURES_H = 1 // features.h:19:1: + X_FILE_OFFSET_BITS = 64 // :25:1: + X_GCC_SIZE_T = 0 // stddef.h:195:1: + X_LINUX_POSIX_TYPES_H = 0 // posix_types.h:3:1: + X_LP64 = 1 // :284:1: + X_POSIX_C_SOURCE = 200809 // features.h:281:1: + X_POSIX_SOURCE = 1 // features.h:279:1: + X_RWLOCK_INTERNAL_H = 0 // struct_rwlock.h:21:1: + X_SIZET_ = 0 // stddef.h:196:1: + X_SIZE_T = 0 // stddef.h:183:1: + X_SIZE_T_ = 0 // stddef.h:188:1: + X_SIZE_T_DECLARED = 0 // stddef.h:193:1: + X_SIZE_T_DEFINED = 0 // stddef.h:191:1: + X_SIZE_T_DEFINED_ = 0 // stddef.h:190:1: + X_SS_SIZE = 128 // sockaddr.h:40:1: + X_STDC_PREDEF_H = 1 // :162:1: + X_STRUCT_TIMESPEC = 1 // struct_timespec.h:3:1: + X_SYS_CDEFS_H = 1 // cdefs.h:19:1: + X_SYS_SELECT_H = 1 // select.h:22:1: + X_SYS_SIZE_T_H = 0 // stddef.h:184:1: + X_SYS_SOCKET_H = 1 // socket.h:20:1: + X_SYS_TYPES_H = 1 // types.h:23:1: + X_THREAD_MUTEX_INTERNAL_H = 1 // struct_mutex.h:20:1: + X_THREAD_SHARED_TYPES_H = 1 // thread-shared-types.h:20:1: + X_T_SIZE = 0 // stddef.h:186:1: + X_T_SIZE_ = 0 // stddef.h:185:1: + Linux = 1 // :231:1: + Unix = 1 // :177:1: +) + +// Bits in the FLAGS argument to `send', `recv', et al. +const ( /* socket.h:200:1: */ + MSG_OOB = 1 // Process out-of-band data. + MSG_PEEK = 2 // Peek at incoming messages. + MSG_DONTROUTE = 4 // Don't use local routing. + MSG_CTRUNC = 8 // Control data lost before delivery. + MSG_PROXY = 16 // Supply or ask second address. + MSG_TRUNC = 32 + MSG_DONTWAIT = 64 // Nonblocking IO. + MSG_EOR = 128 // End of record. + MSG_WAITALL = 256 // Wait for a full request. + MSG_FIN = 512 + MSG_SYN = 1024 + MSG_CONFIRM = 2048 // Confirm path validity. + MSG_RST = 4096 + MSG_ERRQUEUE = 8192 // Fetch message from error queue. + MSG_NOSIGNAL = 16384 // Do not generate SIGPIPE. + MSG_MORE = 32768 // Sender will send more. + MSG_WAITFORONE = 65536 // Wait for at least one packet to return. + MSG_BATCH = 262144 // sendmmsg: more messages coming. + MSG_ZEROCOPY = 67108864 // Use user data in kernel path. + MSG_FASTOPEN = 536870912 // Send data in TCP SYN. + + MSG_CMSG_CLOEXEC = 1073741824 +) + +// Socket level message types. This must match the definitions in +// +// . +const ( /* socket.h:332:1: */ + SCM_RIGHTS = 1 +) + +// Get the architecture-dependent definition of enum __socket_type. +// Define enum __socket_type for generic Linux. +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Types of sockets. +const ( /* socket_type.h:24:1: */ + SOCK_STREAM = 1 // Sequenced, reliable, connection-based + // byte streams. + SOCK_DGRAM = 2 // Connectionless, unreliable datagrams + // of fixed maximum length. + SOCK_RAW = 3 // Raw protocol interface. + SOCK_RDM = 4 // Reliably-delivered messages. + SOCK_SEQPACKET = 5 // Sequenced, reliable, connection-based, + // datagrams of fixed maximum length. + SOCK_DCCP = 6 // Datagram Congestion Control Protocol. + SOCK_PACKET = 10 // Linux specific way of getting packets + // at the dev level. For writing rarp and + // other similar things on the user level. + + // Flags to be ORed into the type parameter of socket and socketpair and + // used for the flags parameter of paccept. + + SOCK_CLOEXEC = 524288 // Atomically set close-on-exec flag for the + // new descriptor(s). + SOCK_NONBLOCK = 2048 +) + +// The following constants should be used for the second parameter of +// +// `shutdown'. +const ( /* socket.h:41:1: */ + SHUT_RD = 0 // No more receptions. + SHUT_WR = 1 // No more transmissions. + SHUT_RDWR = 2 +) + +type Ptrdiff_t = int64 /* :3:26 */ + +type Size_t = uint64 /* :9:23 */ + +type Wchar_t = int32 /* :15:24 */ + +type X__int128_t = struct { + Flo int64 + Fhi int64 +} /* :21:43 */ // must match modernc.org/mathutil.Int128 +type X__uint128_t = struct { + Flo uint64 + Fhi uint64 +} /* :22:44 */ // must match modernc.org/mathutil.Int128 + +type X__builtin_va_list = uintptr /* :46:14 */ +type X__float128 = float64 /* :47:21 */ + +// Wide character type. +// Locale-writers should change this as necessary to +// be big enough to hold unique values not between 0 and 127, +// and not (wchar_t) -1, for each defined multibyte character. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// A null pointer constant. + +// Structure for scatter/gather I/O. +type Iovec = struct { + Fiov_base uintptr + Fiov_len Size_t +} /* struct_iovec.h:26:1 */ + +// Copyright (C) 1989-2020 Free Software Foundation, Inc. +// +// This file is part of GCC. +// +// GCC is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 3, or (at your option) +// any later version. +// +// GCC is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// Under Section 7 of GPL version 3, you are granted additional +// permissions described in the GCC Runtime Library Exception, version +// 3.1, as published by the Free Software Foundation. +// +// You should have received a copy of the GNU General Public License and +// a copy of the GCC Runtime Library Exception along with this program; +// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see +// . + +// ISO C Standard: 7.17 Common definitions + +// Any one of these symbols __need_* means that GNU libc +// wants us just to define one data type. So don't define +// the symbols that indicate this file's entire job has been done. + +// This avoids lossage on SunOS but only if stdtypes.h comes first. +// There's no way to win with the other order! Sun lossage. + +// Sequent's header files use _PTRDIFF_T_ in some conflicting way. +// Just ignore it. + +// On VxWorks, may have defined macros like +// _TYPE_size_t which will typedef size_t. fixincludes patched the +// vxTypesBase.h so that this macro is only defined if _GCC_SIZE_T is +// not defined, and so that defining this macro defines _GCC_SIZE_T. +// If we find that the macros are still defined at this point, we must +// invoke them so that the type is defined as expected. + +// In case nobody has defined these types, but we aren't running under +// GCC 2.00, make sure that __PTRDIFF_TYPE__, __SIZE_TYPE__, and +// __WCHAR_TYPE__ have reasonable values. This can happen if the +// parts of GCC is compiled by an older compiler, that actually +// include gstddef.h, such as collect2. + +// Signed type of difference of two pointers. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// Unsigned type of `sizeof' something. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// Wide character type. +// Locale-writers should change this as necessary to +// be big enough to hold unique values not between 0 and 127, +// and not (wchar_t) -1, for each defined multibyte character. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// A null pointer constant. + +// This operating system-specific header file defines the SOCK_*, PF_*, +// AF_*, MSG_*, SOL_*, and SO_* constants, and the `struct sockaddr', +// `struct msghdr', and `struct linger' types. +// System-specific socket constants and types. Linux version. +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Copyright (C) 1989-2020 Free Software Foundation, Inc. +// +// This file is part of GCC. +// +// GCC is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 3, or (at your option) +// any later version. +// +// GCC is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// Under Section 7 of GPL version 3, you are granted additional +// permissions described in the GCC Runtime Library Exception, version +// 3.1, as published by the Free Software Foundation. +// +// You should have received a copy of the GNU General Public License and +// a copy of the GCC Runtime Library Exception along with this program; +// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see +// . + +// ISO C Standard: 7.17 Common definitions + +// Any one of these symbols __need_* means that GNU libc +// wants us just to define one data type. So don't define +// the symbols that indicate this file's entire job has been done. + +// This avoids lossage on SunOS but only if stdtypes.h comes first. +// There's no way to win with the other order! Sun lossage. + +// Sequent's header files use _PTRDIFF_T_ in some conflicting way. +// Just ignore it. + +// On VxWorks, may have defined macros like +// _TYPE_size_t which will typedef size_t. fixincludes patched the +// vxTypesBase.h so that this macro is only defined if _GCC_SIZE_T is +// not defined, and so that defining this macro defines _GCC_SIZE_T. +// If we find that the macros are still defined at this point, we must +// invoke them so that the type is defined as expected. + +// In case nobody has defined these types, but we aren't running under +// GCC 2.00, make sure that __PTRDIFF_TYPE__, __SIZE_TYPE__, and +// __WCHAR_TYPE__ have reasonable values. This can happen if the +// parts of GCC is compiled by an older compiler, that actually +// include gstddef.h, such as collect2. + +// Signed type of difference of two pointers. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// Unsigned type of `sizeof' something. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// Wide character type. +// Locale-writers should change this as necessary to +// be big enough to hold unique values not between 0 and 127, +// and not (wchar_t) -1, for each defined multibyte character. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// A null pointer constant. + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// POSIX Standard: 2.6 Primitive System Data Types + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Determine the wordsize from the preprocessor defines. + +// Both x86-64 and x32 use the 64-bit system call interface. +// Bit size of the time_t type at glibc build time, x86-64 and x32 case. +// Copyright (C) 2018-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// For others, time size is word size. + +// Convenience types. +type X__u_char = uint8 /* types.h:31:23 */ +type X__u_short = uint16 /* types.h:32:28 */ +type X__u_int = uint32 /* types.h:33:22 */ +type X__u_long = uint64 /* types.h:34:27 */ + +// Fixed-size types, underlying types depend on word size and compiler. +type X__int8_t = int8 /* types.h:37:21 */ +type X__uint8_t = uint8 /* types.h:38:23 */ +type X__int16_t = int16 /* types.h:39:26 */ +type X__uint16_t = uint16 /* types.h:40:28 */ +type X__int32_t = int32 /* types.h:41:20 */ +type X__uint32_t = uint32 /* types.h:42:22 */ +type X__int64_t = int64 /* types.h:44:25 */ +type X__uint64_t = uint64 /* types.h:45:27 */ + +// Smallest types with at least a given width. +type X__int_least8_t = X__int8_t /* types.h:52:18 */ +type X__uint_least8_t = X__uint8_t /* types.h:53:19 */ +type X__int_least16_t = X__int16_t /* types.h:54:19 */ +type X__uint_least16_t = X__uint16_t /* types.h:55:20 */ +type X__int_least32_t = X__int32_t /* types.h:56:19 */ +type X__uint_least32_t = X__uint32_t /* types.h:57:20 */ +type X__int_least64_t = X__int64_t /* types.h:58:19 */ +type X__uint_least64_t = X__uint64_t /* types.h:59:20 */ + +// quad_t is also 64 bits. +type X__quad_t = int64 /* types.h:63:18 */ +type X__u_quad_t = uint64 /* types.h:64:27 */ + +// Largest integral types. +type X__intmax_t = int64 /* types.h:72:18 */ +type X__uintmax_t = uint64 /* types.h:73:27 */ + +// The machine-dependent file defines __*_T_TYPE +// macros for each of the OS types we define below. The definitions +// of those macros must use the following macros for underlying types. +// We define __S_TYPE and __U_TYPE for the signed and unsigned +// variants of each of the following integer types on this machine. +// +// 16 -- "natural" 16-bit type (always short) +// 32 -- "natural" 32-bit type (always int) +// 64 -- "natural" 64-bit type (long or long long) +// LONG32 -- 32-bit type, traditionally long +// QUAD -- 64-bit type, traditionally long long +// WORD -- natural type of __WORDSIZE bits (int or long) +// LONGWORD -- type of __WORDSIZE bits, traditionally long +// +// We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the +// conventional uses of `long' or `long long' type modifiers match the +// types we define, even when a less-adorned type would be the same size. +// This matters for (somewhat) portably writing printf/scanf formats for +// these types, where using the appropriate l or ll format modifiers can +// make the typedefs and the formats match up across all GNU platforms. If +// we used `long' when it's 64 bits where `long long' is expected, then the +// compiler would warn about the formats not matching the argument types, +// and the programmer changing them to shut up the compiler would break the +// program's portability. +// +// Here we assume what is presently the case in all the GCC configurations +// we support: long long is always 64 bits, long is always word/address size, +// and int is always 32 bits. + +// No need to mark the typedef with __extension__. +// bits/typesizes.h -- underlying types for *_t. Linux/x86-64 version. +// Copyright (C) 2012-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// See for the meaning of these macros. This file exists so +// that need not vary across different GNU platforms. + +// X32 kernel interface is 64-bit. + +// Tell the libc code that off_t and off64_t are actually the same type +// for all ABI purposes, even if possibly expressed as different base types +// for C type-checking purposes. + +// Same for ino_t and ino64_t. + +// And for __rlim_t and __rlim64_t. + +// And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t. + +// Number of descriptors that can fit in an `fd_set'. + +// bits/time64.h -- underlying types for __time64_t. Generic version. +// Copyright (C) 2018-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Define __TIME64_T_TYPE so that it is always a 64-bit type. + +// If we already have 64-bit time type then use it. + +type X__dev_t = uint64 /* types.h:145:25 */ // Type of device numbers. +type X__uid_t = uint32 /* types.h:146:25 */ // Type of user identifications. +type X__gid_t = uint32 /* types.h:147:25 */ // Type of group identifications. +type X__ino_t = uint64 /* types.h:148:25 */ // Type of file serial numbers. +type X__ino64_t = uint64 /* types.h:149:27 */ // Type of file serial numbers (LFS). +type X__mode_t = uint32 /* types.h:150:26 */ // Type of file attribute bitmasks. +type X__nlink_t = uint64 /* types.h:151:27 */ // Type of file link counts. +type X__off_t = int64 /* types.h:152:25 */ // Type of file sizes and offsets. +type X__off64_t = int64 /* types.h:153:27 */ // Type of file sizes and offsets (LFS). +type X__pid_t = int32 /* types.h:154:25 */ // Type of process identifications. +type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs. +type X__clock_t = int64 /* types.h:156:27 */ // Type of CPU usage counts. +type X__rlim_t = uint64 /* types.h:157:26 */ // Type for resource measurement. +type X__rlim64_t = uint64 /* types.h:158:28 */ // Type for resource measurement (LFS). +type X__id_t = uint32 /* types.h:159:24 */ // General type for IDs. +type X__time_t = int64 /* types.h:160:26 */ // Seconds since the Epoch. +type X__useconds_t = uint32 /* types.h:161:30 */ // Count of microseconds. +type X__suseconds_t = int64 /* types.h:162:31 */ // Signed count of microseconds. + +type X__daddr_t = int32 /* types.h:164:27 */ // The type of a disk address. +type X__key_t = int32 /* types.h:165:25 */ // Type of an IPC key. + +// Clock ID used in clock and timer functions. +type X__clockid_t = int32 /* types.h:168:29 */ + +// Timer ID returned by `timer_create'. +type X__timer_t = uintptr /* types.h:171:12 */ + +// Type to represent block size. +type X__blksize_t = int64 /* types.h:174:29 */ + +// Types from the Large File Support interface. + +// Type to count number of disk blocks. +type X__blkcnt_t = int64 /* types.h:179:28 */ +type X__blkcnt64_t = int64 /* types.h:180:30 */ + +// Type to count file system blocks. +type X__fsblkcnt_t = uint64 /* types.h:183:30 */ +type X__fsblkcnt64_t = uint64 /* types.h:184:32 */ + +// Type to count file system nodes. +type X__fsfilcnt_t = uint64 /* types.h:187:30 */ +type X__fsfilcnt64_t = uint64 /* types.h:188:32 */ + +// Type of miscellaneous file system fields. +type X__fsword_t = int64 /* types.h:191:28 */ + +type X__ssize_t = int64 /* types.h:193:27 */ // Type of a byte count, or error. + +// Signed long type used in system calls. +type X__syscall_slong_t = int64 /* types.h:196:33 */ +// Unsigned long type used in system calls. +type X__syscall_ulong_t = uint64 /* types.h:198:33 */ + +// These few don't really vary by system, they always correspond +// +// to one of the other defined types. +type X__loff_t = X__off64_t /* types.h:202:19 */ // Type of file sizes and offsets (LFS). +type X__caddr_t = uintptr /* types.h:203:14 */ + +// Duplicates info from stdint.h but this is used in unistd.h. +type X__intptr_t = int64 /* types.h:206:25 */ + +// Duplicate info from sys/socket.h. +type X__socklen_t = uint32 /* types.h:209:23 */ + +// C99: An integer type that can be accessed as an atomic entity, +// +// even in the presence of asynchronous interrupts. +// It is not currently necessary for this to be machine-specific. +type X__sig_atomic_t = int32 /* types.h:214:13 */ + +// Seconds since the Epoch, visible to user code when time_t is too +// narrow only for consistency with the old way of widening too-narrow +// types. User code should never use __time64_t. + +type U_char = X__u_char /* types.h:33:18 */ +type U_short = X__u_short /* types.h:34:19 */ +type U_int = X__u_int /* types.h:35:17 */ +type U_long = X__u_long /* types.h:36:18 */ +type Quad_t = X__quad_t /* types.h:37:18 */ +type U_quad_t = X__u_quad_t /* types.h:38:20 */ +type Fsid_t = X__fsid_t /* types.h:39:18 */ +type Loff_t = X__loff_t /* types.h:42:18 */ + +type Ino_t = X__ino64_t /* types.h:49:19 */ + +type Dev_t = X__dev_t /* types.h:59:17 */ + +type Gid_t = X__gid_t /* types.h:64:17 */ + +type Mode_t = X__mode_t /* types.h:69:18 */ + +type Nlink_t = X__nlink_t /* types.h:74:19 */ + +type Uid_t = X__uid_t /* types.h:79:17 */ + +type Off_t = X__off64_t /* types.h:87:19 */ + +type Pid_t = X__pid_t /* types.h:97:17 */ + +type Id_t = X__id_t /* types.h:103:16 */ + +type Ssize_t = X__ssize_t /* types.h:108:19 */ + +type Daddr_t = X__daddr_t /* types.h:114:19 */ +type Caddr_t = X__caddr_t /* types.h:115:19 */ + +type Key_t = X__key_t /* types.h:121:17 */ + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Returned by `clock'. +type Clock_t = X__clock_t /* clock_t.h:7:19 */ + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Clock ID used in clock and timer functions. +type Clockid_t = X__clockid_t /* clockid_t.h:7:21 */ + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Returned by `time'. +type Time_t = X__time_t /* time_t.h:7:18 */ + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Timer ID returned by `timer_create'. +type Timer_t = X__timer_t /* timer_t.h:7:19 */ + +// Copyright (C) 1989-2020 Free Software Foundation, Inc. +// +// This file is part of GCC. +// +// GCC is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 3, or (at your option) +// any later version. +// +// GCC is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// Under Section 7 of GPL version 3, you are granted additional +// permissions described in the GCC Runtime Library Exception, version +// 3.1, as published by the Free Software Foundation. +// +// You should have received a copy of the GNU General Public License and +// a copy of the GCC Runtime Library Exception along with this program; +// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see +// . + +// ISO C Standard: 7.17 Common definitions + +// Any one of these symbols __need_* means that GNU libc +// wants us just to define one data type. So don't define +// the symbols that indicate this file's entire job has been done. + +// This avoids lossage on SunOS but only if stdtypes.h comes first. +// There's no way to win with the other order! Sun lossage. + +// Sequent's header files use _PTRDIFF_T_ in some conflicting way. +// Just ignore it. + +// On VxWorks, may have defined macros like +// _TYPE_size_t which will typedef size_t. fixincludes patched the +// vxTypesBase.h so that this macro is only defined if _GCC_SIZE_T is +// not defined, and so that defining this macro defines _GCC_SIZE_T. +// If we find that the macros are still defined at this point, we must +// invoke them so that the type is defined as expected. + +// In case nobody has defined these types, but we aren't running under +// GCC 2.00, make sure that __PTRDIFF_TYPE__, __SIZE_TYPE__, and +// __WCHAR_TYPE__ have reasonable values. This can happen if the +// parts of GCC is compiled by an older compiler, that actually +// include gstddef.h, such as collect2. + +// Signed type of difference of two pointers. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// Unsigned type of `sizeof' something. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// Wide character type. +// Locale-writers should change this as necessary to +// be big enough to hold unique values not between 0 and 127, +// and not (wchar_t) -1, for each defined multibyte character. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// A null pointer constant. + +// Old compatibility names for C types. +type Ulong = uint64 /* types.h:148:27 */ +type Ushort = uint16 /* types.h:149:28 */ +type Uint = uint32 /* types.h:150:22 */ + +// These size-specific names are used by some of the inet code. + +// Define intN_t types. +// Copyright (C) 2017-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +type Int8_t = X__int8_t /* stdint-intn.h:24:18 */ +type Int16_t = X__int16_t /* stdint-intn.h:25:19 */ +type Int32_t = X__int32_t /* stdint-intn.h:26:19 */ +type Int64_t = X__int64_t /* stdint-intn.h:27:19 */ + +// These were defined by ISO C without the first `_'. +type U_int8_t = X__uint8_t /* types.h:158:19 */ +type U_int16_t = X__uint16_t /* types.h:159:20 */ +type U_int32_t = X__uint32_t /* types.h:160:20 */ +type U_int64_t = X__uint64_t /* types.h:161:20 */ + +type Register_t = int32 /* types.h:164:13 */ + +// It also defines `fd_set' and the FD_* macros for `select'. +// `fd_set' type and related macros, and `select'/`pselect' declarations. +// Copyright (C) 1996-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// POSIX 1003.1g: 6.2 Select from File Descriptor Sets + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Get definition of needed basic types. +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Get __FD_* definitions. +// Copyright (C) 1997-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Determine the wordsize from the preprocessor defines. + +// Both x86-64 and x32 use the 64-bit system call interface. + +// Get sigset_t. + +type X__sigset_t = struct{ F__val [16]uint64 } /* __sigset_t.h:8:3 */ + +// A set of signals to be blocked, unblocked, or waited for. +type Sigset_t = X__sigset_t /* sigset_t.h:7:20 */ + +// Get definition of timer specification structures. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// A time value that is accurate to the nearest +// +// microsecond but also has a range of years. +type Timeval = struct { + Ftv_sec X__time_t + Ftv_usec X__suseconds_t +} /* struct_timeval.h:8:1 */ + +// NB: Include guard matches what uses. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Endian macros for string.h functions +// Copyright (C) 1992-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// POSIX.1b structure for a time value. This is like a `struct timeval' but +// +// has nanoseconds instead of microseconds. +type Timespec = struct { + Ftv_sec X__time_t + Ftv_nsec X__syscall_slong_t +} /* struct_timespec.h:10:1 */ + +type Suseconds_t = X__suseconds_t /* select.h:43:23 */ + +// The fd_set member is required to be an array of longs. +type X__fd_mask = int64 /* select.h:49:18 */ + +// Some versions of define this macros. +// It's easier to assume 8-bit bytes than to get CHAR_BIT. + +// fd_set for select and pselect. +type Fd_set = struct{ F__fds_bits [16]X__fd_mask } /* select.h:70:5 */ + +// Maximum number of file descriptors in `fd_set'. + +// Sometimes the fd_set member is assumed to have this type. +type Fd_mask = X__fd_mask /* select.h:77:19 */ + +// Define some inlines helping to catch common problems. + +type Blksize_t = X__blksize_t /* types.h:185:21 */ + +// Types from the Large File Support interface. +type Blkcnt_t = X__blkcnt64_t /* types.h:205:22 */ // Type to count number of disk blocks. +type Fsblkcnt_t = X__fsblkcnt64_t /* types.h:209:24 */ // Type to count file system blocks. +type Fsfilcnt_t = X__fsfilcnt64_t /* types.h:213:24 */ // Type to count file system inodes. + +// Now add the thread types. +// Declaration of common pthread types for all architectures. +// Copyright (C) 2017-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// For internal mutex and condition variable definitions. +// Common threading primitives definitions for both POSIX and C11. +// Copyright (C) 2017-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Arch-specific definitions. Each architecture must define the following +// macros to define the expected sizes of pthread data types: +// +// __SIZEOF_PTHREAD_ATTR_T - size of pthread_attr_t. +// __SIZEOF_PTHREAD_MUTEX_T - size of pthread_mutex_t. +// __SIZEOF_PTHREAD_MUTEXATTR_T - size of pthread_mutexattr_t. +// __SIZEOF_PTHREAD_COND_T - size of pthread_cond_t. +// __SIZEOF_PTHREAD_CONDATTR_T - size of pthread_condattr_t. +// __SIZEOF_PTHREAD_RWLOCK_T - size of pthread_rwlock_t. +// __SIZEOF_PTHREAD_RWLOCKATTR_T - size of pthread_rwlockattr_t. +// __SIZEOF_PTHREAD_BARRIER_T - size of pthread_barrier_t. +// __SIZEOF_PTHREAD_BARRIERATTR_T - size of pthread_barrierattr_t. +// +// The additional macro defines any constraint for the lock alignment +// inside the thread structures: +// +// __LOCK_ALIGNMENT - for internal lock/futex usage. +// +// Same idea but for the once locking primitive: +// +// __ONCE_ALIGNMENT - for pthread_once_t/once_flag definition. + +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Determine the wordsize from the preprocessor defines. + +// Both x86-64 and x32 use the 64-bit system call interface. + +// Common definition of pthread_mutex_t. + +type X__pthread_internal_list = struct { + F__prev uintptr + F__next uintptr +} /* thread-shared-types.h:49:9 */ + +// Type to count file system inodes. + +// Now add the thread types. +// Declaration of common pthread types for all architectures. +// Copyright (C) 2017-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// For internal mutex and condition variable definitions. +// Common threading primitives definitions for both POSIX and C11. +// Copyright (C) 2017-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Arch-specific definitions. Each architecture must define the following +// macros to define the expected sizes of pthread data types: +// +// __SIZEOF_PTHREAD_ATTR_T - size of pthread_attr_t. +// __SIZEOF_PTHREAD_MUTEX_T - size of pthread_mutex_t. +// __SIZEOF_PTHREAD_MUTEXATTR_T - size of pthread_mutexattr_t. +// __SIZEOF_PTHREAD_COND_T - size of pthread_cond_t. +// __SIZEOF_PTHREAD_CONDATTR_T - size of pthread_condattr_t. +// __SIZEOF_PTHREAD_RWLOCK_T - size of pthread_rwlock_t. +// __SIZEOF_PTHREAD_RWLOCKATTR_T - size of pthread_rwlockattr_t. +// __SIZEOF_PTHREAD_BARRIER_T - size of pthread_barrier_t. +// __SIZEOF_PTHREAD_BARRIERATTR_T - size of pthread_barrierattr_t. +// +// The additional macro defines any constraint for the lock alignment +// inside the thread structures: +// +// __LOCK_ALIGNMENT - for internal lock/futex usage. +// +// Same idea but for the once locking primitive: +// +// __ONCE_ALIGNMENT - for pthread_once_t/once_flag definition. + +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Determine the wordsize from the preprocessor defines. + +// Both x86-64 and x32 use the 64-bit system call interface. + +// Common definition of pthread_mutex_t. + +type X__pthread_list_t = X__pthread_internal_list /* thread-shared-types.h:53:3 */ + +type X__pthread_internal_slist = struct{ F__next uintptr } /* thread-shared-types.h:55:9 */ + +type X__pthread_slist_t = X__pthread_internal_slist /* thread-shared-types.h:58:3 */ + +// Arch-specific mutex definitions. A generic implementation is provided +// by sysdeps/nptl/bits/struct_mutex.h. If required, an architecture +// can override it by defining: +// +// 1. struct __pthread_mutex_s (used on both pthread_mutex_t and mtx_t +// definition). It should contains at least the internal members +// defined in the generic version. +// +// 2. __LOCK_ALIGNMENT for any extra attribute for internal lock used with +// atomic operations. +// +// 3. The macro __PTHREAD_MUTEX_INITIALIZER used for static initialization. +// It should initialize the mutex internal flag. + +// x86 internal mutex struct definitions. +// Copyright (C) 2019-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +type X__pthread_mutex_s = struct { + F__lock int32 + F__count uint32 + F__owner int32 + F__nusers uint32 + F__kind int32 + F__spins int16 + F__elision int16 + F__list X__pthread_list_t +} /* struct_mutex.h:22:1 */ + +// Arch-sepecific read-write lock definitions. A generic implementation is +// provided by struct_rwlock.h. If required, an architecture can override it +// by defining: +// +// 1. struct __pthread_rwlock_arch_t (used on pthread_rwlock_t definition). +// It should contain at least the internal members defined in the +// generic version. +// +// 2. The macro __PTHREAD_RWLOCK_INITIALIZER used for static initialization. +// It should initialize the rwlock internal type. + +// x86 internal rwlock struct definitions. +// Copyright (C) 2019-2020 Free Software Foundation, Inc. +// +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +type X__pthread_rwlock_arch_t = struct { + F__readers uint32 + F__writers uint32 + F__wrphase_futex uint32 + F__writers_futex uint32 + F__pad3 uint32 + F__pad4 uint32 + F__cur_writer int32 + F__shared int32 + F__rwelision int8 + F__pad1 [7]uint8 + F__pad2 uint64 + F__flags uint32 + F__ccgo_pad1 [4]byte +} /* struct_rwlock.h:23:1 */ + +// Common definition of pthread_cond_t. + +type X__pthread_cond_s = struct { + F__0 struct{ F__wseq uint64 } + F__8 struct{ F__g1_start uint64 } + F__g_refs [2]uint32 + F__g_size [2]uint32 + F__g1_orig_size uint32 + F__wrefs uint32 + F__g_signals [2]uint32 +} /* thread-shared-types.h:92:1 */ + +// Thread identifiers. The structure of the attribute type is not +// +// exposed on purpose. +type Pthread_t = uint64 /* pthreadtypes.h:27:27 */ + +// Data structures for mutex handling. The structure of the attribute +// +// type is not exposed on purpose. +type Pthread_mutexattr_t = struct { + F__ccgo_pad1 [0]uint32 + F__size [4]int8 +} /* pthreadtypes.h:36:3 */ + +// Data structure for condition variable handling. The structure of +// +// the attribute type is not exposed on purpose. +type Pthread_condattr_t = struct { + F__ccgo_pad1 [0]uint32 + F__size [4]int8 +} /* pthreadtypes.h:45:3 */ + +// Keys for thread-specific data +type Pthread_key_t = uint32 /* pthreadtypes.h:49:22 */ + +// Once-only execution +type Pthread_once_t = int32 /* pthreadtypes.h:53:30 */ + +type Pthread_attr_t1 = struct { + F__ccgo_pad1 [0]uint64 + F__size [56]int8 +} /* pthreadtypes.h:56:1 */ + +type Pthread_attr_t = Pthread_attr_t1 /* pthreadtypes.h:62:30 */ + +type Pthread_mutex_t = struct{ F__data X__pthread_mutex_s } /* pthreadtypes.h:72:3 */ + +type Pthread_cond_t = struct{ F__data X__pthread_cond_s } /* pthreadtypes.h:80:3 */ + +// Data structure for reader-writer lock variable handling. The +// +// structure of the attribute type is deliberately not exposed. +type Pthread_rwlock_t = struct{ F__data X__pthread_rwlock_arch_t } /* pthreadtypes.h:91:3 */ + +type Pthread_rwlockattr_t = struct { + F__ccgo_pad1 [0]uint64 + F__size [8]int8 +} /* pthreadtypes.h:97:3 */ + +// POSIX spinlock data type. +type Pthread_spinlock_t = int32 /* pthreadtypes.h:103:22 */ + +// POSIX barriers data type. The structure of the type is +// +// deliberately not exposed. +type Pthread_barrier_t = struct { + F__ccgo_pad1 [0]uint64 + F__size [32]int8 +} /* pthreadtypes.h:112:3 */ + +type Pthread_barrierattr_t = struct { + F__ccgo_pad1 [0]uint32 + F__size [4]int8 +} /* pthreadtypes.h:118:3 */ + +// Type for length arguments in socket calls. +type Socklen_t = X__socklen_t /* socket.h:33:21 */ + +// Protocol families. + +// Address families. + +// Socket level values. Others are defined in the appropriate headers. +// +// XXX These definitions also should go into the appropriate headers as +// far as they are available. + +// Maximum queue length specifiable by listen. + +// Get the definition of the macro to define the common sockaddr members. +// Definition of struct sockaddr_* common members and sizes, generic version. +// Copyright (C) 1995-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// POSIX.1g specifies this type name for the `sa_family' member. +type Sa_family_t = uint16 /* sockaddr.h:28:28 */ + +// This macro is used to declare the initial common members +// of the data types used for socket addresses, `struct sockaddr', +// `struct sockaddr_in', `struct sockaddr_un', etc. + +// Size of struct sockaddr_storage. + +// Structure describing a generic socket address. +type Sockaddr = struct { + Fsa_family Sa_family_t + Fsa_data [14]int8 +} /* socket.h:178:1 */ + +// Structure large enough to hold any socket address (with the historical +// exception of AF_UNIX). + +type Sockaddr_storage = struct { + Fss_family Sa_family_t + F__ss_padding [118]int8 + F__ss_align uint64 +} /* socket.h:191:1 */ + +// Structure describing messages sent by +// +// `sendmsg' and received by `recvmsg'. +type Msghdr = struct { + Fmsg_name uintptr + Fmsg_namelen Socklen_t + F__ccgo_pad1 [4]byte + Fmsg_iov uintptr + Fmsg_iovlen Size_t + Fmsg_control uintptr + Fmsg_controllen Size_t + Fmsg_flags int32 + F__ccgo_pad2 [4]byte +} /* socket.h:257:1 */ + +// Structure used for storage of ancillary data object information. +type Cmsghdr = struct { + F__ccgo_pad1 [0]uint64 + Fcmsg_len Size_t + Fcmsg_level int32 + Fcmsg_type int32 +} /* socket.h:275:1 */ + +// SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note + +// SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note + +// SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note + +// This allows for 1024 file descriptors: if NR_OPEN is ever grown +// beyond that you'll have to change this too. But 1024 fd's seem to be +// enough even for such "real" unices like OSF/1, so hopefully this is +// one limit that doesn't have to be changed [again]. +// +// Note that POSIX wants the FD_CLEAR(fd,fdsetp) defines to be in +// (and thus ) - but this is a more logical +// place for them. Solved by having dummy defines in . + +// This macro may have been defined in . But we always +// use the one here. + +type X__kernel_fd_set = struct{ Ffds_bits [16]uint64 } /* posix_types.h:27:3 */ + +// Type of a signal handler. +type X__kernel_sighandler_t = uintptr /* posix_types.h:30:14 */ + +// Type of a SYSV IPC key. +type X__kernel_key_t = int32 /* posix_types.h:33:13 */ +type X__kernel_mqd_t = int32 /* posix_types.h:34:13 */ + +// SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note +// SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note + +// This file is generally used by user-level software, so you need to +// be a little careful about namespace pollution etc. Also, we cannot +// assume GCC is being used. + +type X__kernel_old_uid_t = uint16 /* posix_types_64.h:11:24 */ +type X__kernel_old_gid_t = uint16 /* posix_types_64.h:12:24 */ + +type X__kernel_old_dev_t = uint64 /* posix_types_64.h:15:23 */ + +// SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note + +// SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note + +// SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note + +// There seems to be no way of detecting this automatically from user +// space, so 64 bit architectures should override this in their +// bitsperlong.h. In particular, an architecture that supports +// both 32 and 64 bit user space must not rely on CONFIG_64BIT +// to decide it, but rather check a compiler provided macro. + +// This file is generally used by user-level software, so you need to +// be a little careful about namespace pollution etc. +// +// First the types that are often defined in different ways across +// architectures, so that you can override them. + +type X__kernel_long_t = int64 /* posix_types.h:15:15 */ +type X__kernel_ulong_t = uint64 /* posix_types.h:16:23 */ + +type X__kernel_ino_t = X__kernel_ulong_t /* posix_types.h:20:26 */ + +type X__kernel_mode_t = uint32 /* posix_types.h:24:22 */ + +type X__kernel_pid_t = int32 /* posix_types.h:28:14 */ + +type X__kernel_ipc_pid_t = int32 /* posix_types.h:32:14 */ + +type X__kernel_uid_t = uint32 /* posix_types.h:36:22 */ +type X__kernel_gid_t = uint32 /* posix_types.h:37:22 */ + +type X__kernel_suseconds_t = X__kernel_long_t /* posix_types.h:41:26 */ + +type X__kernel_daddr_t = int32 /* posix_types.h:45:14 */ + +type X__kernel_uid32_t = uint32 /* posix_types.h:49:22 */ +type X__kernel_gid32_t = uint32 /* posix_types.h:50:22 */ + +// Most 32 bit architectures use "unsigned int" size_t, +// and all 64 bit architectures use "unsigned long" size_t. +type X__kernel_size_t = X__kernel_ulong_t /* posix_types.h:72:26 */ +type X__kernel_ssize_t = X__kernel_long_t /* posix_types.h:73:25 */ +type X__kernel_ptrdiff_t = X__kernel_long_t /* posix_types.h:74:25 */ + +type X__kernel_fsid_t = struct{ Fval [2]int32 } /* posix_types.h:81:3 */ + +// anything below here should be completely generic +type X__kernel_off_t = X__kernel_long_t /* posix_types.h:87:25 */ +type X__kernel_loff_t = int64 /* posix_types.h:88:19 */ +type X__kernel_old_time_t = X__kernel_long_t /* posix_types.h:89:25 */ +type X__kernel_time_t = X__kernel_long_t /* posix_types.h:90:25 */ +type X__kernel_time64_t = int64 /* posix_types.h:91:19 */ +type X__kernel_clock_t = X__kernel_long_t /* posix_types.h:92:25 */ +type X__kernel_timer_t = int32 /* posix_types.h:93:14 */ +type X__kernel_clockid_t = int32 /* posix_types.h:94:14 */ +type X__kernel_caddr_t = uintptr /* posix_types.h:95:14 */ +type X__kernel_uid16_t = uint16 /* posix_types.h:96:24 */ +type X__kernel_gid16_t = uint16 /* posix_types.h:97:24 */ + +// SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note + +// Socket-level I/O control calls. + +// For setsockopt(2) + +// Security levels - as per NRL IPv6 - don't actually do anything + +// Socket filtering + +// Instruct lower device to use last 4-bytes of skb data as FCS + +// on 64-bit and x32, avoid the ?: operator + +// Structure used to manipulate the SO_LINGER option. +type Linger = struct { + Fl_onoff int32 + Fl_linger int32 +} /* socket.h:361:1 */ + +// This is the 4.3 BSD `struct sockaddr' format, which is used as wire +// +// format in the grotty old 4.3 `talk' protocol. +type Osockaddr = struct { + Fsa_family uint16 + Fsa_data [14]uint8 +} /* struct_osockaddr.h:6:1 */ + +// Define some macros helping to catch buffer overflows. + +var _ int8 /* gen.c:2:13: */ diff --git a/vendor/modernc.org/libc/sys/stat/capi_illumos_amd64.go b/vendor/modernc.org/libc/sys/stat/capi_illumos_amd64.go new file mode 100644 index 000000000..5bd145d35 --- /dev/null +++ b/vendor/modernc.org/libc/sys/stat/capi_illumos_amd64.go @@ -0,0 +1,5 @@ +// Code generated by 'ccgo sys/stat/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o sys/stat/stat_illumos_amd64.go -pkgname stat', DO NOT EDIT. + +package stat + +var CAPI = map[string]struct{}{} diff --git a/vendor/modernc.org/libc/sys/stat/capi_linux_loong64.go b/vendor/modernc.org/libc/sys/stat/capi_linux_loong64.go new file mode 100644 index 000000000..005ccface --- /dev/null +++ b/vendor/modernc.org/libc/sys/stat/capi_linux_loong64.go @@ -0,0 +1,5 @@ +// Code generated by 'ccgo sys/stat/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o sys/stat/stat_linux_loong64.go -pkgname stat', DO NOT EDIT. + +package stat + +var CAPI = map[string]struct{}{} diff --git a/vendor/modernc.org/libc/sys/stat/capi_linux_mips64le.go b/vendor/modernc.org/libc/sys/stat/capi_linux_mips64le.go new file mode 100644 index 000000000..7ab15123b --- /dev/null +++ b/vendor/modernc.org/libc/sys/stat/capi_linux_mips64le.go @@ -0,0 +1,5 @@ +// Code generated by 'ccgo sys/stat/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o sys/stat/stat_linux_amd64.go -pkgname stat', DO NOT EDIT. + +package stat + +var CAPI = map[string]struct{}{} diff --git a/vendor/modernc.org/libc/sys/stat/stat_illumos_amd64.go b/vendor/modernc.org/libc/sys/stat/stat_illumos_amd64.go new file mode 100644 index 000000000..2f6095587 --- /dev/null +++ b/vendor/modernc.org/libc/sys/stat/stat_illumos_amd64.go @@ -0,0 +1,2941 @@ +// Code generated by 'ccgo sys/stat/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o sys/stat/stat_illumos_amd64.go -pkgname stat', DO NOT EDIT. + +package stat + +import ( + "math" + "reflect" + "sync/atomic" + "unsafe" +) + +var _ = math.Pi +var _ reflect.Kind +var _ atomic.Value +var _ unsafe.Pointer + +const ( + CLOCKS_PER_SEC = 1000000 // time_iso.h:78:1: + CLOCK_HIGHRES = 4 // time_impl.h:126:1: + CLOCK_MONOTONIC = 4 // time_impl.h:124:1: + CLOCK_PROCESS_CPUTIME_ID = 5 // time_impl.h:125:1: + CLOCK_PROF = 2 // time_impl.h:127:1: + CLOCK_REALTIME = 3 // time_impl.h:123:1: + CLOCK_THREAD_CPUTIME_ID = 2 // time_impl.h:122:1: + CLOCK_VIRTUAL = 1 // time_impl.h:121:1: + DST_AUST = 2 // time.h:115:1: + DST_AUSTALT = 10 // time.h:123:1: + DST_CAN = 6 // time.h:119:1: + DST_EET = 5 // time.h:118:1: + DST_GB = 7 // time.h:120:1: + DST_MET = 4 // time.h:117:1: + DST_NONE = 0 // time.h:113:1: + DST_RUM = 8 // time.h:121:1: + DST_TUR = 9 // time.h:122:1: + DST_USA = 1 // time.h:114:1: + DST_WET = 3 // time.h:116:1: + FD_SETSIZE = 65536 // select.h:88:1: + ITIMER_PROF = 2 // time.h:201:1: + ITIMER_REAL = 0 // time.h:199:1: + ITIMER_REALPROF = 3 // time.h:204:1: + ITIMER_VIRTUAL = 1 // time.h:200:1: + MICROSEC = 1000000 // time.h:246:1: + MILLISEC = 1000 // time.h:245:1: + NANOSEC = 1000000000 // time.h:247:1: + NBBY = 8 // select.h:103:1: + P_MYID = -1 // types.h:632:1: + REG_LABEL_BP = 2 // machtypes.h:44:1: + REG_LABEL_MAX = 8 // machtypes.h:51:1: + REG_LABEL_PC = 0 // machtypes.h:42:1: + REG_LABEL_R12 = 4 // machtypes.h:47:1: + REG_LABEL_R13 = 5 // machtypes.h:48:1: + REG_LABEL_R14 = 6 // machtypes.h:49:1: + REG_LABEL_R15 = 7 // machtypes.h:50:1: + REG_LABEL_RBX = 3 // machtypes.h:46:1: + REG_LABEL_SP = 1 // machtypes.h:43:1: + SEC = 1 // time.h:244:1: + S_ENFMT = 1024 // stat.h:426:1: + S_IAMB = 0x1FF // stat.h:406:1: + S_IEXEC = 00100 // stat.h:425:1: + S_IFBLK = 0x6000 // stat.h:414:1: + S_IFCHR = 0x2000 // stat.h:408:1: + S_IFDIR = 0x4000 // stat.h:409:1: + S_IFDOOR = 0xD000 // stat.h:418:1: + S_IFIFO = 0x1000 // stat.h:407:1: + S_IFLNK = 0xA000 // stat.h:416:1: + S_IFMT = 0xF000 // stat.h:405:1: + S_IFNAM = 0x5000 // stat.h:411:1: + S_IFPORT = 0xE000 // stat.h:419:1: + S_IFREG = 0x8000 // stat.h:415:1: + S_IFSOCK = 0xC000 // stat.h:417:1: + S_INSEM = 0x1 // stat.h:412:1: + S_INSHD = 0x2 // stat.h:413:1: + S_IREAD = 00400 // stat.h:423:1: + S_IRGRP = 00040 // stat.h:435:1: + S_IROTH = 00004 // stat.h:439:1: + S_IRUSR = 00400 // stat.h:431:1: + S_IRWXG = 00070 // stat.h:434:1: + S_IRWXO = 00007 // stat.h:438:1: + S_IRWXU = 00700 // stat.h:430:1: + S_ISGID = 0x400 // stat.h:421:1: + S_ISUID = 0x800 // stat.h:420:1: + S_ISVTX = 0x200 // stat.h:422:1: + S_IWGRP = 00020 // stat.h:436:1: + S_IWOTH = 00002 // stat.h:440:1: + S_IWRITE = 00200 // stat.h:424:1: + S_IWUSR = 00200 // stat.h:432:1: + S_IXGRP = 00010 // stat.h:437:1: + S_IXOTH = 00001 // stat.h:441:1: + S_IXUSR = 00100 // stat.h:433:1: + TIMER_ABSTIME = 0x1 // time_impl.h:134:1: + TIMER_RELTIME = 0x0 // time_impl.h:133:1: + TIME_UTC = 0x1 // time.h:306:1: + UTIME_NOW = -1 // stat.h:478:1: + UTIME_OMIT = -2 // stat.h:479:1: + X_ALIGNMENT_REQUIRED = 1 // isa_defs.h:262:1: + X_BIT_FIELDS_LTOH = 0 // isa_defs.h:245:1: + X_BOOL_ALIGNMENT = 1 // isa_defs.h:248:1: + X_CHAR_ALIGNMENT = 1 // isa_defs.h:249:1: + X_CHAR_IS_SIGNED = 0 // isa_defs.h:247:1: + X_CLOCKID_T = 0 // types.h:568:1: + X_CLOCK_T = 0 // types.h:563:1: + X_COND_MAGIC = 0x4356 // types.h:426:1: + X_DMA_USES_PHYSADDR = 0 // isa_defs.h:281:1: + X_DONT_USE_1275_GENERIC_NAMES = 0 // isa_defs.h:287:1: + X_DOUBLE_ALIGNMENT = 8 // isa_defs.h:256:1: + X_DOUBLE_COMPLEX_ALIGNMENT = 8 // isa_defs.h:257:1: + X_DTRACE_VERSION = 1 // feature_tests.h:490:1: + X_FILE_OFFSET_BITS = 64 // :25:1: + X_FIRMWARE_NEEDS_FDISK = 0 // isa_defs.h:282:1: + X_FLOAT_ALIGNMENT = 4 // isa_defs.h:252:1: + X_FLOAT_COMPLEX_ALIGNMENT = 4 // isa_defs.h:253:1: + X_HAVE_CPUID_INSN = 0 // isa_defs.h:288:1: + X_IEEE_754 = 0 // isa_defs.h:246:1: + X_INT64_TYPE = 0 // int_types.h:82:1: + X_INT_ALIGNMENT = 4 // isa_defs.h:251:1: + X_ISO_CPP_14882_1998 = 0 // feature_tests.h:466:1: + X_ISO_C_9899_1999 = 0 // feature_tests.h:472:1: + X_ISO_C_9899_2011 = 0 // feature_tests.h:478:1: + X_ISO_TIME_ISO_H = 0 // time_iso.h:46:1: + X_LARGEFILE64_SOURCE = 1 // feature_tests.h:231:1: + X_LARGEFILE_SOURCE = 1 // feature_tests.h:235:1: + X_LITTLE_ENDIAN = 0 // isa_defs.h:242:1: + X_LOCALE_T = 0 // time.h:291:1: + X_LONGLONG_TYPE = 0 // feature_tests.h:412:1: + X_LONG_ALIGNMENT = 8 // isa_defs.h:254:1: + X_LONG_DOUBLE_ALIGNMENT = 16 // isa_defs.h:258:1: + X_LONG_DOUBLE_COMPLEX_ALIGNMENT = 16 // isa_defs.h:259:1: + X_LONG_LONG_ALIGNMENT = 8 // isa_defs.h:255:1: + X_LONG_LONG_ALIGNMENT_32 = 4 // isa_defs.h:268:1: + X_LONG_LONG_LTOH = 0 // isa_defs.h:244:1: + X_LP64 = 1 // :286:1: + X_MAX_ALIGNMENT = 16 // isa_defs.h:261:1: + X_MULTI_DATAMODEL = 0 // isa_defs.h:279:1: + X_MUTEX_MAGIC = 0x4d58 // types.h:424:1: + X_NBBY = 8 // select.h:100:1: + X_NORETURN_KYWD = 0 // feature_tests.h:448:1: + X_OFF_T = 0 // types.h:142:1: + X_POINTER_ALIGNMENT = 8 // isa_defs.h:260:1: + X_PSM_MODULES = 0 // isa_defs.h:284:1: + X_PTRDIFF_T = 0 // types.h:112:1: + X_RESTRICT_KYWD = 0 // feature_tests.h:435:1: + X_RTC_CONFIG = 0 // isa_defs.h:285:1: + X_RWL_MAGIC = 0x5257 // types.h:427:1: + X_SEMA_MAGIC = 0x534d // types.h:425:1: + X_SHORT_ALIGNMENT = 2 // isa_defs.h:250:1: + X_SIGEVENT = 0 // time.h:132:1: + X_SIGSET_T = 0 // select.h:73:1: + X_SIGVAL = 0 // time.h:124:1: + X_SIZE_T = 0 // types.h:540:1: + X_SOFT_HOSTID = 0 // isa_defs.h:286:1: + X_SSIZE_T = 0 // types.h:549:1: + X_STACK_GROWS_DOWNWARD = 0 // isa_defs.h:243:1: + X_STDC_C11 = 0 // feature_tests.h:165:1: + X_STDC_C99 = 0 // feature_tests.h:169:1: + X_ST_FSTYPSZ = 16 // stat.h:60:1: + X_SUNOS_VTOC_16 = 0 // isa_defs.h:280:1: + X_SUSECONDS_T = 0 // types.h:343:1: + X_SYS_CCOMPILE_H = 0 // ccompile.h:32:1: + X_SYS_FEATURE_TESTS_H = 0 // feature_tests.h:41:1: + X_SYS_INT_TYPES_H = 0 // int_types.h:30:1: + X_SYS_ISA_DEFS_H = 0 // isa_defs.h:30:1: + X_SYS_MACHTYPES_H = 0 // machtypes.h:27:1: + X_SYS_NULL_H = 0 // null.h:17:1: + X_SYS_SELECT_H = 0 // select.h:45:1: + X_SYS_STAT_H = 0 // stat.h:32:1: + X_SYS_STAT_IMPL_H = 0 // stat_impl.h:28:1: + X_SYS_TIME_H = 0 // time.h:27:1: + X_SYS_TIME_IMPL_H = 0 // time_impl.h:38:1: + X_SYS_TYPES_H = 0 // types.h:35:1: + X_TIMER_T = 0 // types.h:573:1: + X_TIME_H = 0 // time.h:37:1: + X_TIME_T = 0 // types.h:558:1: + X_UID_T = 0 // types.h:400:1: + X_XOPEN_VERSION = 3 // feature_tests.h:392:1: + Sun = 1 // :172:1: + Unix = 1 // :175:1: +) + +// used for block sizes + +// The boolean_t type has had a varied amount of exposure over the years in +// terms of how its enumeration constants have been exposed. In particular, it +// originally used the __XOPEN_OR_POSIX macro to determine whether to prefix the +// B_TRUE and B_FALSE with an underscore. This check never included the +// question of if we were in a strict ANSI C environment or whether extensions +// were defined. +// +// Compilers such as clang started defaulting to always including an +// XOPEN_SOURCE declaration on behalf of users, but also noted __EXTENSIONS__. +// This would lead most software that had used the non-underscore versions to +// need it. As such, we have adjusted the non-strict XOPEN environment to retain +// its old behavior so as to minimize namespace pollution; however, we instead +// include both variants of the definitions in the generally visible version +// allowing software written in either world to hopefully end up in a good +// place. +// +// This isn't perfect, but should hopefully minimize the pain for folks actually +// trying to build software. +const ( /* types.h:215:1: */ + B_FALSE = 0 + B_TRUE = 1 + X_B_FALSE = 0 + X_B_TRUE = 1 +) + +type Ptrdiff_t = int64 /* :3:26 */ + +type Size_t = uint64 /* :9:23 */ + +type Wchar_t = int32 /* :15:24 */ + +type X__int128_t = struct { + Flo int64 + Fhi int64 +} /* :21:43 */ // must match modernc.org/mathutil.Int128 +type X__uint128_t = struct { + Flo uint64 + Fhi uint64 +} /* :22:44 */ // must match modernc.org/mathutil.Int128 + +type X__builtin_va_list = uintptr /* :46:14 */ +type X__float128 = float64 /* :47:21 */ + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2014 Garrett D'Amore +// Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved. + +// Copyright (c) 1990, 1991 UNIX System Laboratories, Inc. +// Copyright (c) 1984, 1986, 1987, 1988, 1989, 1990 AT&T +// All Rights Reserved + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2015 EveryCity Ltd. All rights reserved. +// Copyright 2019 Joyent, Inc. + +// This file contains definitions designed to enable different compilers +// to be used harmoniously on Solaris systems. + +// Allow for version tests for compiler bugs and features. + +// analogous to lint's PRINTFLIKEn + +// Handle the kernel printf routines that can take '%b' too + +// This one's pretty obvious -- the function never returns + +// The function is 'extern inline' and expects GNU C89 behaviour, not C99 +// behaviour. +// +// Should only be used on 'extern inline' definitions for GCC. + +// The function has control flow such that it may return multiple times (in +// the manner of setjmp or vfork) + +// This is an appropriate label for functions that do not +// modify their arguments, e.g. strlen() + +// This is a stronger form of __pure__. Can be used for functions +// that do not modify their arguments and don't depend on global +// memory. + +// This attribute, attached to a variable, means that the variable is meant to +// be possibly unused. GCC will not produce a warning for this variable. + +// Shorthand versions for readability + +// In release build, disable warnings about variables +// which are used only for debugging. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2016 Joyent, Inc. + +// This header file serves to group a set of well known defines and to +// set these for each instruction set architecture. These defines may +// be divided into two groups; characteristics of the processor and +// implementation choices for Solaris on a processor. +// +// Processor Characteristics: +// +// _LITTLE_ENDIAN / _BIG_ENDIAN: +// The natural byte order of the processor. A pointer to an int points +// to the least/most significant byte of that int. +// +// _STACK_GROWS_UPWARD / _STACK_GROWS_DOWNWARD: +// The processor specific direction of stack growth. A push onto the +// stack increases/decreases the stack pointer, so it stores data at +// successively higher/lower addresses. (Stackless machines ignored +// without regrets). +// +// _LONG_LONG_HTOL / _LONG_LONG_LTOH: +// A pointer to a long long points to the most/least significant long +// within that long long. +// +// _BIT_FIELDS_HTOL / _BIT_FIELDS_LTOH: +// The C compiler assigns bit fields from the high/low to the low/high end +// of an int (most to least significant vs. least to most significant). +// +// _IEEE_754: +// The processor (or supported implementations of the processor) +// supports the ieee-754 floating point standard. No other floating +// point standards are supported (or significant). Any other supported +// floating point formats are expected to be cased on the ISA processor +// symbol. +// +// _CHAR_IS_UNSIGNED / _CHAR_IS_SIGNED: +// The C Compiler implements objects of type `char' as `unsigned' or +// `signed' respectively. This is really an implementation choice of +// the compiler writer, but it is specified in the ABI and tends to +// be uniform across compilers for an instruction set architecture. +// Hence, it has the properties of a processor characteristic. +// +// _CHAR_ALIGNMENT / _SHORT_ALIGNMENT / _INT_ALIGNMENT / _LONG_ALIGNMENT / +// _LONG_LONG_ALIGNMENT / _DOUBLE_ALIGNMENT / _LONG_DOUBLE_ALIGNMENT / +// _POINTER_ALIGNMENT / _FLOAT_ALIGNMENT: +// The ABI defines alignment requirements of each of the primitive +// object types. Some, if not all, may be hardware requirements as +// well. The values are expressed in "byte-alignment" units. +// +// _MAX_ALIGNMENT: +// The most stringent alignment requirement as specified by the ABI. +// Equal to the maximum of all the above _XXX_ALIGNMENT values. +// +// _MAX_ALIGNMENT_TYPE: +// The name of the C type that has the value descried in _MAX_ALIGNMENT. +// +// _ALIGNMENT_REQUIRED: +// True or false (1 or 0) whether or not the hardware requires the ABI +// alignment. +// +// _LONG_LONG_ALIGNMENT_32 +// The 32-bit ABI supported by a 64-bit kernel may have different +// alignment requirements for primitive object types. The value of this +// identifier is expressed in "byte-alignment" units. +// +// _HAVE_CPUID_INSN +// This indicates that the architecture supports the 'cpuid' +// instruction as defined by Intel. (Intel allows other vendors +// to extend the instruction for their own purposes.) +// +// +// Implementation Choices: +// +// _ILP32 / _LP64: +// This specifies the compiler data type implementation as specified in +// the relevant ABI. The choice between these is strongly influenced +// by the underlying hardware, but is not absolutely tied to it. +// Currently only two data type models are supported: +// +// _ILP32: +// Int/Long/Pointer are 32 bits. This is the historical UNIX +// and Solaris implementation. Due to its historical standing, +// this is the default case. +// +// _LP64: +// Long/Pointer are 64 bits, Int is 32 bits. This is the chosen +// implementation for 64-bit ABIs such as SPARC V9. +// +// _I32LPx: +// A compilation environment where 'int' is 32-bit, and +// longs and pointers are simply the same size. +// +// In all cases, Char is 8 bits and Short is 16 bits. +// +// _SUNOS_VTOC_8 / _SUNOS_VTOC_16 / _SVR4_VTOC_16: +// This specifies the form of the disk VTOC (or label): +// +// _SUNOS_VTOC_8: +// This is a VTOC form which is upwardly compatible with the +// SunOS 4.x disk label and allows 8 partitions per disk. +// +// _SUNOS_VTOC_16: +// In this format the incore vtoc image matches the ondisk +// version. It allows 16 slices per disk, and is not +// compatible with the SunOS 4.x disk label. +// +// Note that these are not the only two VTOC forms possible and +// additional forms may be added. One possible form would be the +// SVr4 VTOC form. The symbol for that is reserved now, although +// it is not implemented. +// +// _SVR4_VTOC_16: +// This VTOC form is compatible with the System V Release 4 +// VTOC (as implemented on the SVr4 Intel and 3b ports) with +// 16 partitions per disk. +// +// +// _DMA_USES_PHYSADDR / _DMA_USES_VIRTADDR +// This describes the type of addresses used by system DMA: +// +// _DMA_USES_PHYSADDR: +// This type of DMA, used in the x86 implementation, +// requires physical addresses for DMA buffers. The 24-bit +// addresses used by some legacy boards is the source of the +// "low-memory" (<16MB) requirement for some devices using DMA. +// +// _DMA_USES_VIRTADDR: +// This method of DMA allows the use of virtual addresses for +// DMA transfers. +// +// _FIRMWARE_NEEDS_FDISK / _NO_FDISK_PRESENT +// This indicates the presence/absence of an fdisk table. +// +// _FIRMWARE_NEEDS_FDISK +// The fdisk table is required by system firmware. If present, +// it allows a disk to be subdivided into multiple fdisk +// partitions, each of which is equivalent to a separate, +// virtual disk. This enables the co-existence of multiple +// operating systems on a shared hard disk. +// +// _NO_FDISK_PRESENT +// If the fdisk table is absent, it is assumed that the entire +// media is allocated for a single operating system. +// +// _HAVE_TEM_FIRMWARE +// Defined if this architecture has the (fallback) option of +// using prom_* calls for doing I/O if a suitable kernel driver +// is not available to do it. +// +// _DONT_USE_1275_GENERIC_NAMES +// Controls whether or not device tree node names should +// comply with the IEEE 1275 "Generic Names" Recommended +// Practice. With _DONT_USE_GENERIC_NAMES, device-specific +// names identifying the particular device will be used. +// +// __i386_COMPAT +// This indicates whether the i386 ABI is supported as a *non-native* +// mode for the platform. When this symbol is defined: +// - 32-bit xstat-style system calls are enabled +// - 32-bit xmknod-style system calls are enabled +// - 32-bit system calls use i386 sizes -and- alignments +// +// Note that this is NOT defined for the i386 native environment! +// +// __x86 +// This is ONLY a synonym for defined(__i386) || defined(__amd64) +// which is useful only insofar as these two architectures share +// common attributes. Analogous to __sparc. +// +// _PSM_MODULES +// This indicates whether or not the implementation uses PSM +// modules for processor support, reading /etc/mach from inside +// the kernel to extract a list. +// +// _RTC_CONFIG +// This indicates whether or not the implementation uses /etc/rtc_config +// to configure the real-time clock in the kernel. +// +// _UNIX_KRTLD +// This indicates that the implementation uses a dynamically +// linked unix + krtld to form the core kernel image at boot +// time, or (in the absence of this symbol) a prelinked kernel image. +// +// _OBP +// This indicates the firmware interface is OBP. +// +// _SOFT_HOSTID +// This indicates that the implementation obtains the hostid +// from the file /etc/hostid, rather than from hardware. + +// The following set of definitions characterize Solaris on AMD's +// 64-bit systems. + +// Define the appropriate "processor characteristics" + +// Different alignment constraints for the i386 ABI in compatibility mode + +// Define the appropriate "implementation choices". + +// The feature test macro __i386 is generic for all processors implementing +// the Intel 386 instruction set or a superset of it. Specifically, this +// includes all members of the 386, 486, and Pentium family of processors. + +// Values of _POSIX_C_SOURCE +// +// undefined not a POSIX compilation +// 1 POSIX.1-1990 compilation +// 2 POSIX.2-1992 compilation +// 199309L POSIX.1b-1993 compilation (Real Time) +// 199506L POSIX.1c-1995 compilation (POSIX Threads) +// 200112L POSIX.1-2001 compilation (Austin Group Revision) +// 200809L POSIX.1-2008 compilation + +// The feature test macros __XOPEN_OR_POSIX, _STRICT_STDC, _STRICT_SYMBOLS, +// and _STDC_C99 are Sun implementation specific macros created in order to +// compress common standards specified feature test macros for easier reading. +// These macros should not be used by the application developer as +// unexpected results may occur. Instead, the user should reference +// standards(7) for correct usage of the standards feature test macros. +// +// __XOPEN_OR_POSIX Used in cases where a symbol is defined by both +// X/Open or POSIX or in the negative, when neither +// X/Open or POSIX defines a symbol. +// +// _STRICT_STDC __STDC__ is specified by the C Standards and defined +// by the compiler. For Sun compilers the value of +// __STDC__ is either 1, 0, or not defined based on the +// compilation mode (see cc(1)). When the value of +// __STDC__ is 1 and in the absence of any other feature +// test macros, the namespace available to the application +// is limited to only those symbols defined by the C +// Standard. _STRICT_STDC provides a more readable means +// of identifying symbols defined by the standard, or in +// the negative, symbols that are extensions to the C +// Standard. See additional comments for GNU C differences. +// +// _STDC_C99 __STDC_VERSION__ is specified by the C standards and +// defined by the compiler and indicates the version of +// the C standard. A value of 199901L indicates a +// compiler that complies with ISO/IEC 9899:1999, other- +// wise known as the C99 standard. +// +// _STDC_C11 Like _STDC_C99 except that the value of __STDC_VERSION__ +// is 201112L indicating a compiler that compiles with +// ISO/IEC 9899:2011, otherwise known as the C11 standard. +// +// _STRICT_SYMBOLS Used in cases where symbol visibility is restricted +// by the standards, and the user has not explicitly +// relaxed the strictness via __EXTENSIONS__. + +// ISO/IEC 9899:1990 and it's revisions, ISO/IEC 9899:1999 and ISO/IEC +// 99899:2011 specify the following predefined macro name: +// +// __STDC__ The integer constant 1, intended to indicate a conforming +// implementation. +// +// Furthermore, a strictly conforming program shall use only those features +// of the language and library specified in these standards. A conforming +// implementation shall accept any strictly conforming program. +// +// Based on these requirements, Sun's C compiler defines __STDC__ to 1 for +// strictly conforming environments and __STDC__ to 0 for environments that +// use ANSI C semantics but allow extensions to the C standard. For non-ANSI +// C semantics, Sun's C compiler does not define __STDC__. +// +// The GNU C project interpretation is that __STDC__ should always be defined +// to 1 for compilation modes that accept ANSI C syntax regardless of whether +// or not extensions to the C standard are used. Violations of conforming +// behavior are conditionally flagged as warnings via the use of the +// -pedantic option. In addition to defining __STDC__ to 1, the GNU C +// compiler also defines __STRICT_ANSI__ as a means of specifying strictly +// conforming environments using the -ansi or -std= options. +// +// In the absence of any other compiler options, Sun and GNU set the value +// of __STDC__ as follows when using the following options: +// +// Value of __STDC__ __STRICT_ANSI__ +// +// cc -Xa (default) 0 undefined +// cc -Xt (transitional) 0 undefined +// cc -Xc (strictly conforming) 1 undefined +// cc -Xs (K&R C) undefined undefined +// +// gcc (default) 1 undefined +// gcc -ansi, -std={c89, c99,...) 1 defined +// gcc -traditional (K&R) undefined undefined +// +// The default compilation modes for Sun C compilers versus GNU C compilers +// results in a differing value for __STDC__ which results in a more +// restricted namespace when using Sun compilers. To allow both GNU and Sun +// interpretations to peacefully co-exist, we use the following Sun +// implementation _STRICT_STDC_ macro: + +// Compiler complies with ISO/IEC 9899:1999 or ISO/IEC 9989:2011 + +// Use strict symbol visibility. + +// This is a variant of _STRICT_SYMBOLS that is meant to cover headers that are +// governed by POSIX, but have not been governed by ISO C. One can go two ways +// on what should happen if an application actively includes (not transitively) +// a header that isn't part of the ISO C spec, we opt to say that if someone has +// gone out of there way then they're doing it for a reason and that is an act +// of non-compliance and therefore it's not up to us to hide away every symbol. +// +// In general, prefer using _STRICT_SYMBOLS, but this is here in particular for +// cases where in the past we have only used a POSIX related check and we don't +// wish to make something stricter. Often applications are relying on the +// ability to, or more realistically unwittingly, have _STRICT_STDC declared and +// still use these interfaces. + +// Large file interfaces: +// +// _LARGEFILE_SOURCE +// 1 large file-related additions to POSIX +// interfaces requested (fseeko, etc.) +// _LARGEFILE64_SOURCE +// 1 transitional large-file-related interfaces +// requested (seek64, stat64, etc.) +// +// The corresponding announcement macros are respectively: +// _LFS_LARGEFILE +// _LFS64_LARGEFILE +// (These are set in .) +// +// Requesting _LARGEFILE64_SOURCE implies requesting _LARGEFILE_SOURCE as +// well. +// +// The large file interfaces are made visible regardless of the initial values +// of the feature test macros under certain circumstances: +// - If no explicit standards-conforming environment is requested (neither +// of _POSIX_SOURCE nor _XOPEN_SOURCE is defined and the value of +// __STDC__ does not imply standards conformance). +// - Extended system interfaces are explicitly requested (__EXTENSIONS__ +// is defined). +// - Access to in-kernel interfaces is requested (_KERNEL or _KMEMUSER is +// defined). (Note that this dependency is an artifact of the current +// kernel implementation and may change in future releases.) + +// Large file compilation environment control: +// +// The setting of _FILE_OFFSET_BITS controls the size of various file-related +// types and governs the mapping between file-related source function symbol +// names and the corresponding binary entry points. +// +// In the 32-bit environment, the default value is 32; if not set, set it to +// the default here, to simplify tests in other headers. +// +// In the 64-bit compilation environment, the only value allowed is 64. + +// Use of _XOPEN_SOURCE +// +// The following X/Open specifications are supported: +// +// X/Open Portability Guide, Issue 3 (XPG3) +// X/Open CAE Specification, Issue 4 (XPG4) +// X/Open CAE Specification, Issue 4, Version 2 (XPG4v2) +// X/Open CAE Specification, Issue 5 (XPG5) +// Open Group Technical Standard, Issue 6 (XPG6), also referred to as +// IEEE Std. 1003.1-2001 and ISO/IEC 9945:2002. +// Open Group Technical Standard, Issue 7 (XPG7), also referred to as +// IEEE Std. 1003.1-2008 and ISO/IEC 9945:2009. +// +// XPG4v2 is also referred to as UNIX 95 (SUS or SUSv1). +// XPG5 is also referred to as UNIX 98 or the Single Unix Specification, +// Version 2 (SUSv2) +// XPG6 is the result of a merge of the X/Open and POSIX specifications +// and as such is also referred to as IEEE Std. 1003.1-2001 in +// addition to UNIX 03 and SUSv3. +// XPG7 is also referred to as UNIX 08 and SUSv4. +// +// When writing a conforming X/Open application, as per the specification +// requirements, the appropriate feature test macros must be defined at +// compile time. These are as follows. For more info, see standards(7). +// +// Feature Test Macro Specification +// ------------------------------------------------ ------------- +// _XOPEN_SOURCE XPG3 +// _XOPEN_SOURCE && _XOPEN_VERSION = 4 XPG4 +// _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED = 1 XPG4v2 +// _XOPEN_SOURCE = 500 XPG5 +// _XOPEN_SOURCE = 600 (or POSIX_C_SOURCE=200112L) XPG6 +// _XOPEN_SOURCE = 700 (or POSIX_C_SOURCE=200809L) XPG7 +// +// In order to simplify the guards within the headers, the following +// implementation private test macros have been created. Applications +// must NOT use these private test macros as unexpected results will +// occur. +// +// Note that in general, the use of these private macros is cumulative. +// For example, the use of _XPG3 with no other restrictions on the X/Open +// namespace will make the symbols visible for XPG3 through XPG6 +// compilation environments. The use of _XPG4_2 with no other X/Open +// namespace restrictions indicates that the symbols were introduced in +// XPG4v2 and are therefore visible for XPG4v2 through XPG6 compilation +// environments, but not for XPG3 or XPG4 compilation environments. +// +// _XPG3 X/Open Portability Guide, Issue 3 (XPG3) +// _XPG4 X/Open CAE Specification, Issue 4 (XPG4) +// _XPG4_2 X/Open CAE Specification, Issue 4, Version 2 (XPG4v2/UNIX 95/SUS) +// _XPG5 X/Open CAE Specification, Issue 5 (XPG5/UNIX 98/SUSv2) +// _XPG6 Open Group Technical Standard, Issue 6 (XPG6/UNIX 03/SUSv3) +// _XPG7 Open Group Technical Standard, Issue 7 (XPG7/UNIX 08/SUSv4) + +// X/Open Portability Guide, Issue 3 + +// _XOPEN_VERSION is defined by the X/Open specifications and is not +// normally defined by the application, except in the case of an XPG4 +// application. On the implementation side, _XOPEN_VERSION defined with +// the value of 3 indicates an XPG3 application. _XOPEN_VERSION defined +// with the value of 4 indicates an XPG4 or XPG4v2 (UNIX 95) application. +// _XOPEN_VERSION defined with a value of 500 indicates an XPG5 (UNIX 98) +// application and with a value of 600 indicates an XPG6 (UNIX 03) +// application and with a value of 700 indicates an XPG7 (UNIX 08). +// The appropriate version is determined by the use of the +// feature test macros described earlier. The value of _XOPEN_VERSION +// defaults to 3 otherwise indicating support for XPG3 applications. + +// ANSI C and ISO 9899:1990 say the type long long doesn't exist in strictly +// conforming environments. ISO 9899:1999 says it does. +// +// The presence of _LONGLONG_TYPE says "long long exists" which is therefore +// defined in all but strictly conforming environments that disallow it. + +// The following macro defines a value for the ISO C99 restrict +// keyword so that _RESTRICT_KYWD resolves to "restrict" if +// an ISO C99 compiler is used, "__restrict" for c++ and "" (null string) +// if any other compiler is used. This allows for the use of single +// prototype declarations regardless of compiler version. + +// The following macro defines a value for the ISO C11 _Noreturn +// keyword so that _NORETURN_KYWD resolves to "_Noreturn" if +// an ISO C11 compiler is used and "" (null string) if any other +// compiler is used. This allows for the use of single prototype +// declarations regardless of compiler version. + +// ISO/IEC 9899:2011 Annex K + +// The following macro indicates header support for the ANSI C++ +// standard. The ISO/IEC designation for this is ISO/IEC FDIS 14882. + +// The following macro indicates header support for the C99 standard, +// ISO/IEC 9899:1999, Programming Languages - C. + +// The following macro indicates header support for the C11 standard, +// ISO/IEC 9899:2011, Programming Languages - C. + +// The following macro indicates header support for the C11 standard, +// ISO/IEC 9899:2011 Annex K, Programming Languages - C. + +// The following macro indicates header support for DTrace. The value is an +// integer that corresponds to the major version number for DTrace. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2021 Oxide Computer Company + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2016 Joyent, Inc. + +// Machine dependent definitions moved to . +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2007 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Machine dependent types: +// +// intel ia32 Version + +type X_label_t = struct{ Fval [8]int64 } /* machtypes.h:59:9 */ + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2014 Garrett D'Amore +// Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved. + +// Copyright (c) 1990, 1991 UNIX System Laboratories, Inc. +// Copyright (c) 1984, 1986, 1987, 1988, 1989, 1990 AT&T +// All Rights Reserved + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2015 EveryCity Ltd. All rights reserved. +// Copyright 2019 Joyent, Inc. + +// This file contains definitions designed to enable different compilers +// to be used harmoniously on Solaris systems. + +// Allow for version tests for compiler bugs and features. + +// analogous to lint's PRINTFLIKEn + +// Handle the kernel printf routines that can take '%b' too + +// This one's pretty obvious -- the function never returns + +// The function is 'extern inline' and expects GNU C89 behaviour, not C99 +// behaviour. +// +// Should only be used on 'extern inline' definitions for GCC. + +// The function has control flow such that it may return multiple times (in +// the manner of setjmp or vfork) + +// This is an appropriate label for functions that do not +// modify their arguments, e.g. strlen() + +// This is a stronger form of __pure__. Can be used for functions +// that do not modify their arguments and don't depend on global +// memory. + +// This attribute, attached to a variable, means that the variable is meant to +// be possibly unused. GCC will not produce a warning for this variable. + +// Shorthand versions for readability + +// In release build, disable warnings about variables +// which are used only for debugging. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2016 Joyent, Inc. + +// This header file serves to group a set of well known defines and to +// set these for each instruction set architecture. These defines may +// be divided into two groups; characteristics of the processor and +// implementation choices for Solaris on a processor. +// +// Processor Characteristics: +// +// _LITTLE_ENDIAN / _BIG_ENDIAN: +// The natural byte order of the processor. A pointer to an int points +// to the least/most significant byte of that int. +// +// _STACK_GROWS_UPWARD / _STACK_GROWS_DOWNWARD: +// The processor specific direction of stack growth. A push onto the +// stack increases/decreases the stack pointer, so it stores data at +// successively higher/lower addresses. (Stackless machines ignored +// without regrets). +// +// _LONG_LONG_HTOL / _LONG_LONG_LTOH: +// A pointer to a long long points to the most/least significant long +// within that long long. +// +// _BIT_FIELDS_HTOL / _BIT_FIELDS_LTOH: +// The C compiler assigns bit fields from the high/low to the low/high end +// of an int (most to least significant vs. least to most significant). +// +// _IEEE_754: +// The processor (or supported implementations of the processor) +// supports the ieee-754 floating point standard. No other floating +// point standards are supported (or significant). Any other supported +// floating point formats are expected to be cased on the ISA processor +// symbol. +// +// _CHAR_IS_UNSIGNED / _CHAR_IS_SIGNED: +// The C Compiler implements objects of type `char' as `unsigned' or +// `signed' respectively. This is really an implementation choice of +// the compiler writer, but it is specified in the ABI and tends to +// be uniform across compilers for an instruction set architecture. +// Hence, it has the properties of a processor characteristic. +// +// _CHAR_ALIGNMENT / _SHORT_ALIGNMENT / _INT_ALIGNMENT / _LONG_ALIGNMENT / +// _LONG_LONG_ALIGNMENT / _DOUBLE_ALIGNMENT / _LONG_DOUBLE_ALIGNMENT / +// _POINTER_ALIGNMENT / _FLOAT_ALIGNMENT: +// The ABI defines alignment requirements of each of the primitive +// object types. Some, if not all, may be hardware requirements as +// well. The values are expressed in "byte-alignment" units. +// +// _MAX_ALIGNMENT: +// The most stringent alignment requirement as specified by the ABI. +// Equal to the maximum of all the above _XXX_ALIGNMENT values. +// +// _MAX_ALIGNMENT_TYPE: +// The name of the C type that has the value descried in _MAX_ALIGNMENT. +// +// _ALIGNMENT_REQUIRED: +// True or false (1 or 0) whether or not the hardware requires the ABI +// alignment. +// +// _LONG_LONG_ALIGNMENT_32 +// The 32-bit ABI supported by a 64-bit kernel may have different +// alignment requirements for primitive object types. The value of this +// identifier is expressed in "byte-alignment" units. +// +// _HAVE_CPUID_INSN +// This indicates that the architecture supports the 'cpuid' +// instruction as defined by Intel. (Intel allows other vendors +// to extend the instruction for their own purposes.) +// +// +// Implementation Choices: +// +// _ILP32 / _LP64: +// This specifies the compiler data type implementation as specified in +// the relevant ABI. The choice between these is strongly influenced +// by the underlying hardware, but is not absolutely tied to it. +// Currently only two data type models are supported: +// +// _ILP32: +// Int/Long/Pointer are 32 bits. This is the historical UNIX +// and Solaris implementation. Due to its historical standing, +// this is the default case. +// +// _LP64: +// Long/Pointer are 64 bits, Int is 32 bits. This is the chosen +// implementation for 64-bit ABIs such as SPARC V9. +// +// _I32LPx: +// A compilation environment where 'int' is 32-bit, and +// longs and pointers are simply the same size. +// +// In all cases, Char is 8 bits and Short is 16 bits. +// +// _SUNOS_VTOC_8 / _SUNOS_VTOC_16 / _SVR4_VTOC_16: +// This specifies the form of the disk VTOC (or label): +// +// _SUNOS_VTOC_8: +// This is a VTOC form which is upwardly compatible with the +// SunOS 4.x disk label and allows 8 partitions per disk. +// +// _SUNOS_VTOC_16: +// In this format the incore vtoc image matches the ondisk +// version. It allows 16 slices per disk, and is not +// compatible with the SunOS 4.x disk label. +// +// Note that these are not the only two VTOC forms possible and +// additional forms may be added. One possible form would be the +// SVr4 VTOC form. The symbol for that is reserved now, although +// it is not implemented. +// +// _SVR4_VTOC_16: +// This VTOC form is compatible with the System V Release 4 +// VTOC (as implemented on the SVr4 Intel and 3b ports) with +// 16 partitions per disk. +// +// +// _DMA_USES_PHYSADDR / _DMA_USES_VIRTADDR +// This describes the type of addresses used by system DMA: +// +// _DMA_USES_PHYSADDR: +// This type of DMA, used in the x86 implementation, +// requires physical addresses for DMA buffers. The 24-bit +// addresses used by some legacy boards is the source of the +// "low-memory" (<16MB) requirement for some devices using DMA. +// +// _DMA_USES_VIRTADDR: +// This method of DMA allows the use of virtual addresses for +// DMA transfers. +// +// _FIRMWARE_NEEDS_FDISK / _NO_FDISK_PRESENT +// This indicates the presence/absence of an fdisk table. +// +// _FIRMWARE_NEEDS_FDISK +// The fdisk table is required by system firmware. If present, +// it allows a disk to be subdivided into multiple fdisk +// partitions, each of which is equivalent to a separate, +// virtual disk. This enables the co-existence of multiple +// operating systems on a shared hard disk. +// +// _NO_FDISK_PRESENT +// If the fdisk table is absent, it is assumed that the entire +// media is allocated for a single operating system. +// +// _HAVE_TEM_FIRMWARE +// Defined if this architecture has the (fallback) option of +// using prom_* calls for doing I/O if a suitable kernel driver +// is not available to do it. +// +// _DONT_USE_1275_GENERIC_NAMES +// Controls whether or not device tree node names should +// comply with the IEEE 1275 "Generic Names" Recommended +// Practice. With _DONT_USE_GENERIC_NAMES, device-specific +// names identifying the particular device will be used. +// +// __i386_COMPAT +// This indicates whether the i386 ABI is supported as a *non-native* +// mode for the platform. When this symbol is defined: +// - 32-bit xstat-style system calls are enabled +// - 32-bit xmknod-style system calls are enabled +// - 32-bit system calls use i386 sizes -and- alignments +// +// Note that this is NOT defined for the i386 native environment! +// +// __x86 +// This is ONLY a synonym for defined(__i386) || defined(__amd64) +// which is useful only insofar as these two architectures share +// common attributes. Analogous to __sparc. +// +// _PSM_MODULES +// This indicates whether or not the implementation uses PSM +// modules for processor support, reading /etc/mach from inside +// the kernel to extract a list. +// +// _RTC_CONFIG +// This indicates whether or not the implementation uses /etc/rtc_config +// to configure the real-time clock in the kernel. +// +// _UNIX_KRTLD +// This indicates that the implementation uses a dynamically +// linked unix + krtld to form the core kernel image at boot +// time, or (in the absence of this symbol) a prelinked kernel image. +// +// _OBP +// This indicates the firmware interface is OBP. +// +// _SOFT_HOSTID +// This indicates that the implementation obtains the hostid +// from the file /etc/hostid, rather than from hardware. + +// The following set of definitions characterize Solaris on AMD's +// 64-bit systems. + +// Define the appropriate "processor characteristics" + +// Different alignment constraints for the i386 ABI in compatibility mode + +// Define the appropriate "implementation choices". + +// The feature test macro __i386 is generic for all processors implementing +// the Intel 386 instruction set or a superset of it. Specifically, this +// includes all members of the 386, 486, and Pentium family of processors. + +// Values of _POSIX_C_SOURCE +// +// undefined not a POSIX compilation +// 1 POSIX.1-1990 compilation +// 2 POSIX.2-1992 compilation +// 199309L POSIX.1b-1993 compilation (Real Time) +// 199506L POSIX.1c-1995 compilation (POSIX Threads) +// 200112L POSIX.1-2001 compilation (Austin Group Revision) +// 200809L POSIX.1-2008 compilation + +// The feature test macros __XOPEN_OR_POSIX, _STRICT_STDC, _STRICT_SYMBOLS, +// and _STDC_C99 are Sun implementation specific macros created in order to +// compress common standards specified feature test macros for easier reading. +// These macros should not be used by the application developer as +// unexpected results may occur. Instead, the user should reference +// standards(7) for correct usage of the standards feature test macros. +// +// __XOPEN_OR_POSIX Used in cases where a symbol is defined by both +// X/Open or POSIX or in the negative, when neither +// X/Open or POSIX defines a symbol. +// +// _STRICT_STDC __STDC__ is specified by the C Standards and defined +// by the compiler. For Sun compilers the value of +// __STDC__ is either 1, 0, or not defined based on the +// compilation mode (see cc(1)). When the value of +// __STDC__ is 1 and in the absence of any other feature +// test macros, the namespace available to the application +// is limited to only those symbols defined by the C +// Standard. _STRICT_STDC provides a more readable means +// of identifying symbols defined by the standard, or in +// the negative, symbols that are extensions to the C +// Standard. See additional comments for GNU C differences. +// +// _STDC_C99 __STDC_VERSION__ is specified by the C standards and +// defined by the compiler and indicates the version of +// the C standard. A value of 199901L indicates a +// compiler that complies with ISO/IEC 9899:1999, other- +// wise known as the C99 standard. +// +// _STDC_C11 Like _STDC_C99 except that the value of __STDC_VERSION__ +// is 201112L indicating a compiler that compiles with +// ISO/IEC 9899:2011, otherwise known as the C11 standard. +// +// _STRICT_SYMBOLS Used in cases where symbol visibility is restricted +// by the standards, and the user has not explicitly +// relaxed the strictness via __EXTENSIONS__. + +// ISO/IEC 9899:1990 and it's revisions, ISO/IEC 9899:1999 and ISO/IEC +// 99899:2011 specify the following predefined macro name: +// +// __STDC__ The integer constant 1, intended to indicate a conforming +// implementation. +// +// Furthermore, a strictly conforming program shall use only those features +// of the language and library specified in these standards. A conforming +// implementation shall accept any strictly conforming program. +// +// Based on these requirements, Sun's C compiler defines __STDC__ to 1 for +// strictly conforming environments and __STDC__ to 0 for environments that +// use ANSI C semantics but allow extensions to the C standard. For non-ANSI +// C semantics, Sun's C compiler does not define __STDC__. +// +// The GNU C project interpretation is that __STDC__ should always be defined +// to 1 for compilation modes that accept ANSI C syntax regardless of whether +// or not extensions to the C standard are used. Violations of conforming +// behavior are conditionally flagged as warnings via the use of the +// -pedantic option. In addition to defining __STDC__ to 1, the GNU C +// compiler also defines __STRICT_ANSI__ as a means of specifying strictly +// conforming environments using the -ansi or -std= options. +// +// In the absence of any other compiler options, Sun and GNU set the value +// of __STDC__ as follows when using the following options: +// +// Value of __STDC__ __STRICT_ANSI__ +// +// cc -Xa (default) 0 undefined +// cc -Xt (transitional) 0 undefined +// cc -Xc (strictly conforming) 1 undefined +// cc -Xs (K&R C) undefined undefined +// +// gcc (default) 1 undefined +// gcc -ansi, -std={c89, c99,...) 1 defined +// gcc -traditional (K&R) undefined undefined +// +// The default compilation modes for Sun C compilers versus GNU C compilers +// results in a differing value for __STDC__ which results in a more +// restricted namespace when using Sun compilers. To allow both GNU and Sun +// interpretations to peacefully co-exist, we use the following Sun +// implementation _STRICT_STDC_ macro: + +// Compiler complies with ISO/IEC 9899:1999 or ISO/IEC 9989:2011 + +// Use strict symbol visibility. + +// This is a variant of _STRICT_SYMBOLS that is meant to cover headers that are +// governed by POSIX, but have not been governed by ISO C. One can go two ways +// on what should happen if an application actively includes (not transitively) +// a header that isn't part of the ISO C spec, we opt to say that if someone has +// gone out of there way then they're doing it for a reason and that is an act +// of non-compliance and therefore it's not up to us to hide away every symbol. +// +// In general, prefer using _STRICT_SYMBOLS, but this is here in particular for +// cases where in the past we have only used a POSIX related check and we don't +// wish to make something stricter. Often applications are relying on the +// ability to, or more realistically unwittingly, have _STRICT_STDC declared and +// still use these interfaces. + +// Large file interfaces: +// +// _LARGEFILE_SOURCE +// 1 large file-related additions to POSIX +// interfaces requested (fseeko, etc.) +// _LARGEFILE64_SOURCE +// 1 transitional large-file-related interfaces +// requested (seek64, stat64, etc.) +// +// The corresponding announcement macros are respectively: +// _LFS_LARGEFILE +// _LFS64_LARGEFILE +// (These are set in .) +// +// Requesting _LARGEFILE64_SOURCE implies requesting _LARGEFILE_SOURCE as +// well. +// +// The large file interfaces are made visible regardless of the initial values +// of the feature test macros under certain circumstances: +// - If no explicit standards-conforming environment is requested (neither +// of _POSIX_SOURCE nor _XOPEN_SOURCE is defined and the value of +// __STDC__ does not imply standards conformance). +// - Extended system interfaces are explicitly requested (__EXTENSIONS__ +// is defined). +// - Access to in-kernel interfaces is requested (_KERNEL or _KMEMUSER is +// defined). (Note that this dependency is an artifact of the current +// kernel implementation and may change in future releases.) + +// Large file compilation environment control: +// +// The setting of _FILE_OFFSET_BITS controls the size of various file-related +// types and governs the mapping between file-related source function symbol +// names and the corresponding binary entry points. +// +// In the 32-bit environment, the default value is 32; if not set, set it to +// the default here, to simplify tests in other headers. +// +// In the 64-bit compilation environment, the only value allowed is 64. + +// Use of _XOPEN_SOURCE +// +// The following X/Open specifications are supported: +// +// X/Open Portability Guide, Issue 3 (XPG3) +// X/Open CAE Specification, Issue 4 (XPG4) +// X/Open CAE Specification, Issue 4, Version 2 (XPG4v2) +// X/Open CAE Specification, Issue 5 (XPG5) +// Open Group Technical Standard, Issue 6 (XPG6), also referred to as +// IEEE Std. 1003.1-2001 and ISO/IEC 9945:2002. +// Open Group Technical Standard, Issue 7 (XPG7), also referred to as +// IEEE Std. 1003.1-2008 and ISO/IEC 9945:2009. +// +// XPG4v2 is also referred to as UNIX 95 (SUS or SUSv1). +// XPG5 is also referred to as UNIX 98 or the Single Unix Specification, +// Version 2 (SUSv2) +// XPG6 is the result of a merge of the X/Open and POSIX specifications +// and as such is also referred to as IEEE Std. 1003.1-2001 in +// addition to UNIX 03 and SUSv3. +// XPG7 is also referred to as UNIX 08 and SUSv4. +// +// When writing a conforming X/Open application, as per the specification +// requirements, the appropriate feature test macros must be defined at +// compile time. These are as follows. For more info, see standards(7). +// +// Feature Test Macro Specification +// ------------------------------------------------ ------------- +// _XOPEN_SOURCE XPG3 +// _XOPEN_SOURCE && _XOPEN_VERSION = 4 XPG4 +// _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED = 1 XPG4v2 +// _XOPEN_SOURCE = 500 XPG5 +// _XOPEN_SOURCE = 600 (or POSIX_C_SOURCE=200112L) XPG6 +// _XOPEN_SOURCE = 700 (or POSIX_C_SOURCE=200809L) XPG7 +// +// In order to simplify the guards within the headers, the following +// implementation private test macros have been created. Applications +// must NOT use these private test macros as unexpected results will +// occur. +// +// Note that in general, the use of these private macros is cumulative. +// For example, the use of _XPG3 with no other restrictions on the X/Open +// namespace will make the symbols visible for XPG3 through XPG6 +// compilation environments. The use of _XPG4_2 with no other X/Open +// namespace restrictions indicates that the symbols were introduced in +// XPG4v2 and are therefore visible for XPG4v2 through XPG6 compilation +// environments, but not for XPG3 or XPG4 compilation environments. +// +// _XPG3 X/Open Portability Guide, Issue 3 (XPG3) +// _XPG4 X/Open CAE Specification, Issue 4 (XPG4) +// _XPG4_2 X/Open CAE Specification, Issue 4, Version 2 (XPG4v2/UNIX 95/SUS) +// _XPG5 X/Open CAE Specification, Issue 5 (XPG5/UNIX 98/SUSv2) +// _XPG6 Open Group Technical Standard, Issue 6 (XPG6/UNIX 03/SUSv3) +// _XPG7 Open Group Technical Standard, Issue 7 (XPG7/UNIX 08/SUSv4) + +// X/Open Portability Guide, Issue 3 + +// _XOPEN_VERSION is defined by the X/Open specifications and is not +// normally defined by the application, except in the case of an XPG4 +// application. On the implementation side, _XOPEN_VERSION defined with +// the value of 3 indicates an XPG3 application. _XOPEN_VERSION defined +// with the value of 4 indicates an XPG4 or XPG4v2 (UNIX 95) application. +// _XOPEN_VERSION defined with a value of 500 indicates an XPG5 (UNIX 98) +// application and with a value of 600 indicates an XPG6 (UNIX 03) +// application and with a value of 700 indicates an XPG7 (UNIX 08). +// The appropriate version is determined by the use of the +// feature test macros described earlier. The value of _XOPEN_VERSION +// defaults to 3 otherwise indicating support for XPG3 applications. + +// ANSI C and ISO 9899:1990 say the type long long doesn't exist in strictly +// conforming environments. ISO 9899:1999 says it does. +// +// The presence of _LONGLONG_TYPE says "long long exists" which is therefore +// defined in all but strictly conforming environments that disallow it. + +// The following macro defines a value for the ISO C99 restrict +// keyword so that _RESTRICT_KYWD resolves to "restrict" if +// an ISO C99 compiler is used, "__restrict" for c++ and "" (null string) +// if any other compiler is used. This allows for the use of single +// prototype declarations regardless of compiler version. + +// The following macro defines a value for the ISO C11 _Noreturn +// keyword so that _NORETURN_KYWD resolves to "_Noreturn" if +// an ISO C11 compiler is used and "" (null string) if any other +// compiler is used. This allows for the use of single prototype +// declarations regardless of compiler version. + +// ISO/IEC 9899:2011 Annex K + +// The following macro indicates header support for the ANSI C++ +// standard. The ISO/IEC designation for this is ISO/IEC FDIS 14882. + +// The following macro indicates header support for the C99 standard, +// ISO/IEC 9899:1999, Programming Languages - C. + +// The following macro indicates header support for the C11 standard, +// ISO/IEC 9899:2011, Programming Languages - C. + +// The following macro indicates header support for the C11 standard, +// ISO/IEC 9899:2011 Annex K, Programming Languages - C. + +// The following macro indicates header support for DTrace. The value is an +// integer that corresponds to the major version number for DTrace. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2021 Oxide Computer Company + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2016 Joyent, Inc. + +// Machine dependent definitions moved to . +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2007 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Machine dependent types: +// +// intel ia32 Version + +type Label_t = X_label_t /* machtypes.h:59:54 */ + +type Lock_t = uint8 /* machtypes.h:63:23 */ // lock work for busy wait + +// Include fixed width type declarations proposed by the ISO/JTC1/SC22/WG14 C +// committee's working draft for the revision of the current ISO C standard, +// ISO/IEC 9899:1990 Programming language - C. These are not currently +// required by any standard but constitute a useful, general purpose set +// of type definitions which is namespace clean with respect to all standards. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2014 Garrett D'Amore +// +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// This file, , is part of the Sun Microsystems implementation +// of defined in the ISO C standard, ISO/IEC 9899:1999 +// Programming language - C. +// +// Programs/Modules should not directly include this file. Access to the +// types defined in this file should be through the inclusion of one of the +// following files: +// +// Provides only the "_t" types defined in this +// file which is a subset of the contents of +// . (This can be appropriate for +// all programs/modules except those claiming +// ANSI-C conformance.) +// +// Provides the Kernel and Driver appropriate +// components of . +// +// For use by applications. +// +// See these files for more details. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Basic / Extended integer types +// +// The following defines the basic fixed-size integer types. +// +// Implementations are free to typedef them to Standard C integer types or +// extensions that they support. If an implementation does not support one +// of the particular integer data types below, then it should not define the +// typedefs and macros corresponding to that data type. Note that int8_t +// is not defined in -Xs mode on ISAs for which the ABI specifies "char" +// as an unsigned entity because there is no way to define an eight bit +// signed integral. +type Int8_t = int8 /* int_types.h:75:16 */ +type Int16_t = int16 /* int_types.h:79:17 */ +type Int32_t = int32 /* int_types.h:80:15 */ +type Int64_t = int64 /* int_types.h:83:16 */ + +type Uint8_t = uint8 /* int_types.h:91:24 */ +type Uint16_t = uint16 /* int_types.h:92:25 */ +type Uint32_t = uint32 /* int_types.h:93:23 */ +type Uint64_t = uint64 /* int_types.h:95:24 */ + +// intmax_t and uintmax_t are to be the longest (in number of bits) signed +// and unsigned integer types supported by the implementation. +type Intmax_t = int64 /* int_types.h:107:19 */ +type Uintmax_t = uint64 /* int_types.h:108:19 */ + +// intptr_t and uintptr_t are signed and unsigned integer types large enough +// to hold any data pointer; that is, data pointers can be assigned into or +// from these integer types without losing precision. +type Intptr_t = int64 /* int_types.h:120:16 */ +type Uintptr_t = uint64 /* int_types.h:121:24 */ + +// The following define the fastest integer types that can hold the +// specified number of bits. +type Int_fast8_t = int8 /* int_types.h:132:16 */ +type Int_fast16_t = int32 /* int_types.h:136:15 */ +type Int_fast32_t = int32 /* int_types.h:137:15 */ +type Int_fast64_t = int64 /* int_types.h:139:16 */ + +type Uint_fast8_t = uint8 /* int_types.h:146:24 */ +type Uint_fast16_t = uint32 /* int_types.h:147:23 */ +type Uint_fast32_t = uint32 /* int_types.h:148:23 */ +type Uint_fast64_t = uint64 /* int_types.h:150:24 */ + +// The following define the smallest integer types that can hold the +// specified number of bits. +type Int_least8_t = int8 /* int_types.h:162:16 */ +type Int_least16_t = int16 /* int_types.h:166:17 */ +type Int_least32_t = int32 /* int_types.h:167:15 */ +type Int_least64_t = int64 /* int_types.h:169:16 */ + +// If these are changed, please update char16_t and char32_t in head/uchar.h. +type Uint_least8_t = uint8 /* int_types.h:179:24 */ +type Uint_least16_t = uint16 /* int_types.h:180:25 */ +type Uint_least32_t = uint32 /* int_types.h:181:23 */ +type Uint_least64_t = uint64 /* int_types.h:183:24 */ + +// Strictly conforming ANSI C environments prior to the 1999 +// revision of the C Standard (ISO/IEC 9899:1999) do not have +// the long long data type. +type Longlong_t = int64 /* types.h:72:20 */ +type U_longlong_t = uint64 /* types.h:73:28 */ + +// These types (t_{u}scalar_t) exist because the XTI/TPI/DLPI standards had +// to use them instead of int32_t and uint32_t because DEC had +// shipped 64-bit wide. +type T_scalar_t = int32 /* types.h:92:18 */ +type T_uscalar_t = uint32 /* types.h:93:18 */ + +// POSIX Extensions +type Uchar_t = uint8 /* types.h:102:23 */ +type Ushort_t = uint16 /* types.h:103:24 */ +type Uint_t = uint32 /* types.h:104:22 */ +type Ulong_t = uint64 /* types.h:105:23 */ + +type Caddr_t = uintptr /* types.h:107:15 */ // ? type +type Daddr_t = int64 /* types.h:108:15 */ // type +type Cnt_t = int16 /* types.h:109:16 */ // pointer difference + +// VM-related types +type Pfn_t = uint64 /* types.h:123:18 */ // page frame number +type Pgcnt_t = uint64 /* types.h:124:18 */ // number of pages +type Spgcnt_t = int64 /* types.h:125:15 */ // signed number of pages + +type Use_t = uint8 /* types.h:127:18 */ // use count for swap. +type Sysid_t = int16 /* types.h:128:16 */ +type Index_t = int16 /* types.h:129:16 */ +type Timeout_id_t = uintptr /* types.h:130:15 */ // opaque handle from timeout(9F) +type Bufcall_id_t = uintptr /* types.h:131:15 */ // opaque handle from bufcall(9F) + +// The size of off_t and related types depends on the setting of +// _FILE_OFFSET_BITS. (Note that other system headers define other types +// related to those defined here.) +// +// If _LARGEFILE64_SOURCE is defined, variants of these types that are +// explicitly 64 bits wide become available. + +type Off_t = int64 /* types.h:145:15 */ // offsets within files + +type Off64_t = int64 /* types.h:152:16 */ // offsets within files + +type Ino_t = uint64 /* types.h:161:18 */ // expanded inode type +type Blkcnt_t = int64 /* types.h:162:15 */ // count of file blocks +type Fsblkcnt_t = uint64 /* types.h:163:18 */ // count of file system blocks +type Fsfilcnt_t = uint64 /* types.h:164:18 */ // count of files + +type Ino64_t = uint64 /* types.h:174:16 */ // expanded inode type +type Blkcnt64_t = int64 /* types.h:175:18 */ // count of file blocks +type Fsblkcnt64_t = uint64 /* types.h:176:20 */ // count of file system blocks +type Fsfilcnt64_t = uint64 /* types.h:177:20 */ // count of files + +type Blksize_t = int32 /* types.h:187:14 */ // used for block sizes + +// The boolean_t type has had a varied amount of exposure over the years in +// terms of how its enumeration constants have been exposed. In particular, it +// originally used the __XOPEN_OR_POSIX macro to determine whether to prefix the +// B_TRUE and B_FALSE with an underscore. This check never included the +// question of if we were in a strict ANSI C environment or whether extensions +// were defined. +// +// Compilers such as clang started defaulting to always including an +// XOPEN_SOURCE declaration on behalf of users, but also noted __EXTENSIONS__. +// This would lead most software that had used the non-underscore versions to +// need it. As such, we have adjusted the non-strict XOPEN environment to retain +// its old behavior so as to minimize namespace pollution; however, we instead +// include both variants of the definitions in the generally visible version +// allowing software written in either world to hopefully end up in a good +// place. +// +// This isn't perfect, but should hopefully minimize the pain for folks actually +// trying to build software. +type Boolean_t = uint32 /* types.h:215:69 */ + +// The {u,}pad64_t types can be used in structures such that those structures +// may be accessed by code produced by compilation environments which don't +// support a 64 bit integral datatype. The intention is not to allow +// use of these fields in such environments, but to maintain the alignment +// and offsets of the structure. +// +// Similar comments for {u,}pad128_t. +// +// Note that these types do NOT generate any stronger alignment constraints +// than those available in the underlying ABI. See +type Pad64_t = int64 /* types.h:240:18 */ +type Upad64_t = uint64 /* types.h:241:18 */ + +type Pad128_t = struct { + F_q float64 + F__ccgo_pad1 [8]byte +} /* types.h:257:3 */ + +type Upad128_t = struct { + F_q float64 + F__ccgo_pad1 [8]byte +} /* types.h:262:3 */ + +type Offset_t = int64 /* types.h:264:20 */ +type U_offset_t = uint64 /* types.h:265:22 */ +type Len_t = uint64 /* types.h:266:22 */ +type Diskaddr_t = uint64 /* types.h:267:22 */ + +// Definitions remaining from previous partial support for 64-bit file +// offsets. This partial support for devices greater than 2gb requires +// compiler support for long long. +type Lloff_t = struct{ F_f int64 } /* types.h:284:3 */ + +type Lldaddr_t = struct{ F_f int64 } /* types.h:304:3 */ + +type K_fltset_t = uint32 /* types.h:317:16 */ // kernel fault set type + +// The following type is for various kinds of identifiers. The +// actual type must be the same for all since some system calls +// (such as sigsend) take arguments that may be any of these +// types. The enumeration type idtype_t defined in sys/procset.h +// is used to indicate what type of id is being specified -- +// a process id, process group id, session id, scheduling class id, +// user id, group id, project id, task id or zone id. +type Id_t = int32 /* types.h:329:14 */ + +type Lgrp_id_t = int32 /* types.h:334:15 */ // lgroup ID + +// Type useconds_t is an unsigned integral type capable of storing +// values at least in the range of zero to 1,000,000. +type Useconds_t = uint32 /* types.h:340:17 */ // Time, in microseconds + +type Suseconds_t = int64 /* types.h:344:14 */ // signed # of microseconds + +// Typedefs for dev_t components. +type Major_t = uint32 /* types.h:351:16 */ // major part of device number +type Minor_t = uint32 /* types.h:352:16 */ // minor part of device number + +// The data type of a thread priority. +type Pri_t = int16 /* types.h:361:15 */ + +// The data type for a CPU flags field. (Can be extended to larger unsigned +// types, if needed, limited by ability to update atomically.) +type Cpu_flag_t = uint16 /* types.h:367:18 */ + +// For compatibility reasons the following typedefs (prefixed o_) +// can't grow regardless of the EFT definition. Although, +// applications should not explicitly use these typedefs +// they may be included via a system header definition. +// WARNING: These typedefs may be removed in a future +// release. +// +// ex. the definitions in s5inode.h (now obsoleted) +// remained small to preserve compatibility +// in the S5 file system type. +type O_mode_t = uint16 /* types.h:380:18 */ // old file attribute type +type O_dev_t = int16 /* types.h:381:15 */ // old device type +type O_uid_t = uint16 /* types.h:382:18 */ // old UID type +type O_gid_t = uint16 /* types.h:383:17 */ // old GID type +type O_nlink_t = int16 /* types.h:384:15 */ // old file link type +type O_pid_t = int16 /* types.h:385:15 */ // old process id type +type O_ino_t = uint16 /* types.h:386:18 */ // old inode type + +// POSIX and XOPEN Declarations +type Key_t = int32 /* types.h:392:13 */ // IPC key type +type Mode_t = uint32 /* types.h:394:16 */ // file attribute type + +type Uid_t = uint32 /* types.h:401:22 */ // UID type + +type Gid_t = uint32 /* types.h:404:15 */ // GID type + +type Datalink_id_t = uint32 /* types.h:406:18 */ +type Vrid_t = uint32 /* types.h:407:18 */ + +type Taskid_t = int32 /* types.h:409:17 */ +type Projid_t = int32 /* types.h:410:17 */ +type Poolid_t = int32 /* types.h:411:14 */ +type Zoneid_t = int32 /* types.h:412:14 */ +type Ctid_t = int32 /* types.h:413:14 */ + +// POSIX definitions are same as defined in thread.h and synch.h. +// Any changes made to here should be reflected in corresponding +// files as described in comments. +type Pthread_t = uint32 /* types.h:420:16 */ // = thread_t in thread.h +type Pthread_key_t = uint32 /* types.h:421:16 */ // = thread_key_t in thread.h + +// "Magic numbers" tagging synchronization object types + +type X_pthread_mutex = struct { + F__pthread_mutex_flags struct { + F__pthread_mutex_flag1 uint16 + F__pthread_mutex_flag2 uint8 + F__pthread_mutex_ceiling uint8 + F__pthread_mutex_type uint16 + F__pthread_mutex_magic uint16 + } + F__pthread_mutex_lock struct { + F__ccgo_pad1 [0]uint64 + F__pthread_mutex_lock64 struct{ F__pthread_mutex_pad [8]uint8 } + } + F__pthread_mutex_data uint64 +} /* types.h:429:9 */ + +// = thread_key_t in thread.h + +// "Magic numbers" tagging synchronization object types + +type Pthread_mutex_t = X_pthread_mutex /* types.h:448:3 */ + +type X_pthread_cond = struct { + F__pthread_cond_flags struct { + F__pthread_cond_flag [4]uint8 + F__pthread_cond_type uint16 + F__pthread_cond_magic uint16 + } + F__pthread_cond_data uint64 +} /* types.h:450:9 */ + +type Pthread_cond_t = X_pthread_cond /* types.h:457:3 */ + +// UNIX 98 Extension +type X_pthread_rwlock = struct { + F__pthread_rwlock_readers int32 + F__pthread_rwlock_type uint16 + F__pthread_rwlock_magic uint16 + F__pthread_rwlock_mutex Pthread_mutex_t + F__pthread_rwlock_readercv Pthread_cond_t + F__pthread_rwlock_writercv Pthread_cond_t +} /* types.h:462:9 */ + +// UNIX 98 Extension +type Pthread_rwlock_t = X_pthread_rwlock /* types.h:469:3 */ + +// SUSV3 +type Pthread_barrier_t = struct { + F__pthread_barrier_count uint32 + F__pthread_barrier_current uint32 + F__pthread_barrier_cycle uint64 + F__pthread_barrier_reserved uint64 + F__pthread_barrier_lock Pthread_mutex_t + F__pthread_barrier_cond Pthread_cond_t +} /* types.h:481:3 */ + +type Pthread_spinlock_t = Pthread_mutex_t /* types.h:483:25 */ + +// attributes for threads, dynamically allocated by library +type X_pthread_attr = struct{ F__pthread_attrp uintptr } /* types.h:488:9 */ + +// attributes for threads, dynamically allocated by library +type Pthread_attr_t = X_pthread_attr /* types.h:490:3 */ + +// attributes for mutex, dynamically allocated by library +type X_pthread_mutexattr = struct{ F__pthread_mutexattrp uintptr } /* types.h:495:9 */ + +// attributes for mutex, dynamically allocated by library +type Pthread_mutexattr_t = X_pthread_mutexattr /* types.h:497:3 */ + +// attributes for cond, dynamically allocated by library +type X_pthread_condattr = struct{ F__pthread_condattrp uintptr } /* types.h:502:9 */ + +// attributes for cond, dynamically allocated by library +type Pthread_condattr_t = X_pthread_condattr /* types.h:504:3 */ + +// pthread_once +type X_once = struct{ F__pthread_once_pad [4]uint64 } /* types.h:509:9 */ + +// pthread_once +type Pthread_once_t = X_once /* types.h:511:3 */ + +// UNIX 98 Extensions +// attributes for rwlock, dynamically allocated by library +type X_pthread_rwlockattr = struct{ F__pthread_rwlockattrp uintptr } /* types.h:517:9 */ + +// UNIX 98 Extensions +// attributes for rwlock, dynamically allocated by library +type Pthread_rwlockattr_t = X_pthread_rwlockattr /* types.h:519:3 */ + +// SUSV3 +// attributes for pthread_barrier_t, dynamically allocated by library +type Pthread_barrierattr_t = struct{ F__pthread_barrierattrp uintptr } /* types.h:527:3 */ + +type Dev_t = uint64 /* types.h:529:17 */ // expanded device type + +type Nlink_t = uint32 /* types.h:532:16 */ // file link type +type Pid_t = int32 /* types.h:533:13 */ // size of something in bytes + +type Ssize_t = int64 /* types.h:551:14 */ // size of something in bytes or -1 + +type Time_t = int64 /* types.h:559:15 */ // time of day in seconds + +type Clock_t = int64 /* types.h:564:15 */ // relative time in a specified resolution + +type Clockid_t = int32 /* types.h:569:13 */ // clock identifier type + +type Timer_t = int32 /* types.h:574:13 */ // timer identifier type + +// BEGIN CSTYLED +type Unchar = uint8 /* types.h:580:23 */ +type Ushort = uint16 /* types.h:581:24 */ +type Uint = uint32 /* types.h:582:22 */ +type Ulong = uint64 /* types.h:583:23 */ +// END CSTYLED + +// The following is the value of type id_t to use to indicate the +// caller's current id. See procset.h for the type idtype_t +// which defines which kind of id is being specified. + +// The following value of type pfn_t is used to indicate +// invalid page frame number. + +// BEGIN CSTYLED +type U_char = uint8 /* types.h:650:23 */ +type U_short = uint16 /* types.h:651:24 */ +type U_int = uint32 /* types.h:652:22 */ +type U_long = uint64 /* types.h:653:23 */ +type X_quad = struct{ Fval [2]int32 } /* types.h:654:9 */ + +type Quad_t = X_quad /* types.h:654:38 */ // used by UFS +type Quad = Quad_t /* types.h:655:17 */ // used by UFS +// END CSTYLED + +// Nested include for BSD/sockets source compatibility. +// (The select macros used to be defined here). +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// +// Copyright 2010 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// University Copyright- Copyright (c) 1982, 1986, 1988 +// The Regents of the University of California +// All Rights Reserved +// +// University Acknowledgment- Portions of this document are derived from +// software developed by the University of California, Berkeley, and its +// contributors. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2005 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Implementation-private. This header should not be included +// directly by an application. The application should instead +// include which includes this header conditionally +// depending on which feature test macros are defined. By default, +// this header is included by . X/Open and POSIX +// standards requirements result in this header being included +// by only under a restricted set of conditions. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Time expressed in seconds and nanoseconds + +type Timespec = struct { + Ftv_sec int64 + Ftv_nsec int64 +} /* time_impl.h:57:9 */ + +// used by UFS +// END CSTYLED + +// Nested include for BSD/sockets source compatibility. +// (The select macros used to be defined here). +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// +// Copyright 2010 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// University Copyright- Copyright (c) 1982, 1986, 1988 +// The Regents of the University of California +// All Rights Reserved +// +// University Acknowledgment- Portions of this document are derived from +// software developed by the University of California, Berkeley, and its +// contributors. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2005 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Implementation-private. This header should not be included +// directly by an application. The application should instead +// include which includes this header conditionally +// depending on which feature test macros are defined. By default, +// this header is included by . X/Open and POSIX +// standards requirements result in this header being included +// by only under a restricted set of conditions. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Time expressed in seconds and nanoseconds + +type Timespec_t = Timespec /* time_impl.h:60:3 */ + +type Timestruc_t = Timespec /* time_impl.h:81:25 */ // definition per SVr4 + +// The following has been left in for backward compatibility. Portable +// applications should not use the structure name timestruc. + +// Timer specification +type Itimerspec = struct { + Fit_interval struct { + Ftv_sec int64 + Ftv_nsec int64 + } + Fit_value struct { + Ftv_sec int64 + Ftv_nsec int64 + } +} /* time_impl.h:95:9 */ + +// definition per SVr4 + +// The following has been left in for backward compatibility. Portable +// applications should not use the structure name timestruc. + +// Timer specification +type Itimerspec_t = Itimerspec /* time_impl.h:98:3 */ + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright (c) 1982, 1986, 1993 Regents of the University of California. +// All rights reserved. The Berkeley software License Agreement +// specifies the terms and conditions for redistribution. + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2020 OmniOS Community Edition (OmniOSce) Association. + +// Copyright (c) 2013, 2016 by Delphix. All rights reserved. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Structure returned by gettimeofday(2) system call, +// and used in other calls. + +type Timeval = struct { + Ftv_sec int64 + Ftv_usec int64 +} /* time.h:54:1 */ + +type Timezone = struct { + Ftz_minuteswest int32 + Ftz_dsttime int32 +} /* time.h:86:1 */ + +// Needed for longlong_t type. Placement of this due to +// including which relies on the presense of the itimerval +// structure. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2021 Oxide Computer Company + +// Operations on timevals. + +// Names of the interval timers, and structure +// defining a timer setting. +// time and when system is running on +// behalf of the process. +// time profiling of multithreaded +// programs. + +type Itimerval = struct { + Fit_interval struct { + Ftv_sec int64 + Ftv_usec int64 + } + Fit_value struct { + Ftv_sec int64 + Ftv_usec int64 + } +} /* time.h:209:1 */ + +// Definitions for commonly used resolutions. + +// Time expressed as a 64-bit nanosecond counter. +type Hrtime_t = int64 /* time.h:265:20 */ + +// The inclusion of is historical and was added for +// backward compatibility in delta 1.2 when a number of definitions +// were moved out of . More recently, the timespec and +// itimerspec structure definitions, along with the _CLOCK_*, CLOCK_*, +// _TIMER_*, and TIMER_* symbols were moved to , +// which is now included by . This change was due to POSIX +// 1003.1b-1993 and X/Open UNIX 98 requirements. For non-POSIX and +// non-X/Open applications, including this header will still make +// visible these definitions. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1988 AT&T +// All Rights Reserved + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2007 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2010 Nexenta Systems, Inc. Al rights reserved. +// Copyright 2016 Joyent, Inc. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1988 AT&T +// All Rights Reserved + +// Copyright 2014 Garrett D'Amore +// Copyright 2014 PALO, Richard. +// +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// An application should not include this header directly. Instead it +// should be included only through the inclusion of other Sun headers. +// +// The contents of this header is limited to identifiers specified in the +// C Standard. Any new identifiers specified in future amendments to the +// C Standard must be placed in this header. If these new identifiers +// are required to also be in the C++ Standard "std" namespace, then for +// anything other than macro definitions, corresponding "using" directives +// must also be added to . + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// This file and its contents are supplied under the terms of the +// Common Development and Distribution License ("CDDL"), version 1.0. +// You may only use this file in accordance with the terms of version +// 1.0 of the CDDL. +// +// A full copy of the text of the CDDL should have accompanied this +// source. A copy of the CDDL is also available via the Internet at +// http://www.illumos.org/license/CDDL. + +// Copyright 2014-2016 PALO, Richard. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// POSIX.1-2008 requires that the NULL macro be cast to type void *. + +type Tm = struct { + Ftm_sec int32 + Ftm_min int32 + Ftm_hour int32 + Ftm_mday int32 + Ftm_mon int32 + Ftm_year int32 + Ftm_wday int32 + Ftm_yday int32 + Ftm_isdst int32 +} /* time_iso.h:80:1 */ + +// Neither X/Open nor POSIX allow the inclusion of for the +// definition of the sigevent structure. Both require the inclusion +// of and when using the timer_create() function. +// However, X/Open also specifies that the sigevent structure be defined +// in as described in the header . This prevents +// compiler warnings for applications that only include and not +// also . The sigval union and the sigevent structure is +// therefore defined both here and in which gets included +// via inclusion of . +type Sigval = struct { + F__ccgo_pad1 [0]uint64 + Fsival_int int32 + F__ccgo_pad2 [4]byte +} /* time.h:125:1 */ + +type Sigevent = struct { + Fsigev_notify int32 + Fsigev_signo int32 + Fsigev_value struct { + F__ccgo_pad1 [0]uint64 + Fsival_int int32 + F__ccgo_pad2 [4]byte + } + Fsigev_notify_function uintptr + Fsigev_notify_attributes uintptr + F__sigev_pad2 int32 + F__ccgo_pad1 [4]byte +} /* time.h:133:1 */ + +type Locale_t = uintptr /* time.h:292:24 */ + +// The inclusion of is needed for the FD_CLR, +// FD_ISSET, FD_SET, and FD_SETSIZE macros as well as the +// select() prototype defined in the XOpen specifications +// beginning with XSH4v2. Placement required after definition +// for itimerval. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// +// Copyright 2010 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// University Copyright- Copyright (c) 1982, 1986, 1988 +// The Regents of the University of California +// All Rights Reserved +// +// University Acknowledgment- Portions of this document are derived from +// software developed by the University of California, Berkeley, and its +// contributors. + +// The sigset_t type is defined in and duplicated +// in as a result of XPG4v2 requirements. XPG6 +// now allows the visibility of signal.h in this header, however +// an order of inclusion problem occurs as a result of inclusion +// of in under certain conditions. +// Rather than include here, we've duplicated +// the sigset_t type instead. This type is required for the XPG6 +// introduced pselect() function also declared in this header. +type Sigset_t = struct{ F__sigbits [4]uint32 } /* select.h:76:3 */ + +// Select uses bit masks of file descriptors in longs. +// These macros manipulate such bit fields. +// FD_SETSIZE may be defined by the user, but the default here +// should be >= RLIM_FD_MAX. + +type Fd_mask = int64 /* select.h:92:14 */ +type Fds_mask = int64 /* select.h:94:14 */ + +// The value of _NBBY needs to be consistant with the value +// of NBBY in . + +type Fd_set1 = struct{ Ffds_bits [1024]int64 } /* select.h:120:9 */ + +// The value of _NBBY needs to be consistant with the value +// of NBBY in . + +type Fd_set = Fd_set1 /* select.h:125:3 */ + +// _VOID was defined to be either void or char but this is not +// required because previous SunOS compilers have accepted the void +// type. However, because many system header and source files use the +// void keyword, the volatile keyword, and ANSI C function prototypes, +// non-ANSI compilers cannot compile the system anyway. The _VOID macro +// should therefore not be used and remains for source compatibility +// only. +// CSTYLED + +// The implementation specific header includes a +// definition for timestruc_t needed by the stat structure. However, +// including either , which includes , or +// including directly will break both X/Open and +// POSIX namespace. Preceeding tag, structure, and structure member +// names with underscores eliminates the namespace breakage and at the +// same time, with unique type names, eliminates the possibility of +// timespec_t or timestruct_t naming conflicts that could otherwise +// result based on the order of inclusion of and +// . The header contains the +// standards namespace safe versions of these definitions. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2005 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Implementation-private. This header should not be included +// directly by an application. The application should instead +// include which includes this header conditionally +// depending on which feature test macros are defined. By default, +// this header is included by . X/Open and POSIX +// standards requirements result in this header being included +// by only under a restricted set of conditions. + +// stat structure, used by stat(2) and fstat(2) + +// large file compilation environment setup + +// In the LP64 compilation environment, map large file interfaces +// back to native versions where possible. + +// User level stat structure definitions. + +type Stat = struct { + Fst_dev uint64 + Fst_ino uint64 + Fst_mode uint32 + Fst_nlink uint32 + Fst_uid uint32 + Fst_gid uint32 + Fst_rdev uint64 + Fst_size int64 + Fst_atim Timestruc_t + Fst_mtim Timestruc_t + Fst_ctim Timestruc_t + Fst_blksize int32 + F__ccgo_pad1 [4]byte + Fst_blocks int64 + Fst_fstype [16]int8 +} /* stat.h:217:1 */ + +// transitional large file interface version + +type Stat64 = struct { + Fst_dev uint64 + Fst_ino uint64 + Fst_mode uint32 + Fst_nlink uint32 + Fst_uid uint32 + Fst_gid uint32 + Fst_rdev uint64 + Fst_size int64 + Fst_atim Timestruc_t + Fst_mtim Timestruc_t + Fst_ctim Timestruc_t + Fst_blksize int32 + F__ccgo_pad1 [4]byte + Fst_blocks int64 + Fst_fstype [16]int8 +} /* stat.h:278:1 */ + +var _ int8 /* gen.c:2:13: */ diff --git a/vendor/modernc.org/libc/sys/stat/stat_linux_loong64.go b/vendor/modernc.org/libc/sys/stat/stat_linux_loong64.go new file mode 100644 index 000000000..2c950d24d --- /dev/null +++ b/vendor/modernc.org/libc/sys/stat/stat_linux_loong64.go @@ -0,0 +1,1152 @@ +// Code generated by 'ccgo sys/stat/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o sys/stat/stat_linux_loong64.go -pkgname stat', DO NOT EDIT. + +package stat + +import ( + "math" + "reflect" + "sync/atomic" + "unsafe" +) + +var _ = math.Pi +var _ reflect.Kind +var _ atomic.Value +var _ unsafe.Pointer + +const ( + ACCESSPERMS = 511 // stat.h:195:1: + ALLPERMS = 4095 // stat.h:196:1: + DEFFILEMODE = 438 // stat.h:197:1: + S_BLKSIZE = 512 // stat.h:199:1: + S_IEXEC = 64 // stat.h:177:1: + S_IFBLK = 24576 // stat.h:107:1: + S_IFCHR = 8192 // stat.h:106:1: + S_IFDIR = 16384 // stat.h:105:1: + S_IFIFO = 4096 // stat.h:110:1: + S_IFLNK = 40960 // stat.h:113:1: + S_IFMT = 61440 // stat.h:104:1: + S_IFREG = 32768 // stat.h:108:1: + S_IFSOCK = 49152 // stat.h:117:1: + S_IREAD = 256 // stat.h:175:1: + S_IRGRP = 32 // stat.h:180:1: + S_IROTH = 4 // stat.h:186:1: + S_IRUSR = 256 // stat.h:168:1: + S_IRWXG = 56 // stat.h:184:1: + S_IRWXO = 7 // stat.h:190:1: + S_IRWXU = 448 // stat.h:172:1: + S_ISGID = 1024 // stat.h:161:1: + S_ISUID = 2048 // stat.h:160:1: + S_ISVTX = 512 // stat.h:165:1: + S_IWGRP = 16 // stat.h:181:1: + S_IWOTH = 2 // stat.h:187:1: + S_IWRITE = 128 // stat.h:176:1: + S_IWUSR = 128 // stat.h:169:1: + S_IXGRP = 8 // stat.h:182:1: + S_IXOTH = 1 // stat.h:188:1: + S_IXUSR = 64 // stat.h:170:1: + UTIME_NOW = 1073741823 // stat.h:56:1: + UTIME_OMIT = 1073741822 // stat.h:57:1: + X_ABILP64 = 3 // :377:1: + X_ATFILE_SOURCE = 1 // features.h:353:1: + X_BITS_ENDIANNESS_H = 1 // endianness.h:2:1: + X_BITS_ENDIAN_H = 1 // endian.h:20:1: + X_BITS_STAT_H = 1 // stat.h:23:1: + X_BITS_STRUCT_STAT_H = 1 // struct_stat.h:24:1: + X_BITS_TIME64_H = 1 // time64.h:24:1: + X_BITS_TYPESIZES_H = 1 // typesizes.h:24:1: + X_BITS_TYPES_H = 1 // types.h:24:1: + X_DEFAULT_SOURCE = 1 // features.h:238:1: + X_FEATURES_H = 1 // features.h:19:1: + X_FILE_OFFSET_BITS = 64 // :25:1: + X_LOONGARCH_ARCH = "loongarch64" // :214:1: + X_LOONGARCH_ARCH_LOONGARCH64 = 1 // :340:1: + X_LOONGARCH_FPSET = 32 // :265:1: + X_LOONGARCH_SIM = 3 // :233:1: + X_LOONGARCH_SPFPSET = 32 // :88:1: + X_LOONGARCH_SZINT = 32 // :230:1: + X_LOONGARCH_SZLONG = 64 // :388:1: + X_LOONGARCH_SZPTR = 64 // :200:1: + X_LOONGARCH_TUNE = "la464" // :245:1: + X_LOONGARCH_TUNE_LA464 = 1 // :63:1: + X_LP64 = 1 // :372:1: + X_POSIX_C_SOURCE = 200809 // features.h:292:1: + X_POSIX_SOURCE = 1 // features.h:290:1: + X_STATBUF_ST_BLKSIZE = 0 // struct_stat.h:122:1: + X_STATBUF_ST_NSEC = 0 // struct_stat.h:125:1: + X_STATBUF_ST_RDEV = 0 // struct_stat.h:123:1: + X_STDC_PREDEF_H = 1 // :223:1: + X_STRUCT_TIMESPEC = 1 // struct_timespec.h:3:1: + X_SYS_CDEFS_H = 1 // cdefs.h:20:1: + X_SYS_STAT_H = 1 // stat.h:23:1: + Linux = 1 // :308:1: + Unix = 1 // :247:1: +) + +type Ptrdiff_t = int64 /* :3:26 */ + +type Size_t = uint64 /* :9:23 */ + +type Wchar_t = int32 /* :15:24 */ + +type X__int128_t = struct { + Flo int64 + Fhi int64 +} /* :21:43 */ // must match modernc.org/mathutil.Int128 +type X__uint128_t = struct { + Flo uint64 + Fhi uint64 +} /* :22:44 */ // must match modernc.org/mathutil.Int128 + +type X__builtin_va_list = uintptr /* :46:14 */ +type X__float128 = float64 /* :47:21 */ + +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// POSIX Standard: 5.6 File Characteristics + +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// These are defined by the user (or the compiler) +// to specify the desired environment: +// +// __STRICT_ANSI__ ISO Standard C. +// _ISOC99_SOURCE Extensions to ISO C89 from ISO C99. +// _ISOC11_SOURCE Extensions to ISO C99 from ISO C11. +// _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X. +// __STDC_WANT_LIB_EXT2__ +// Extensions to ISO C99 from TR 27431-2:2010. +// __STDC_WANT_IEC_60559_BFP_EXT__ +// Extensions to ISO C11 from TS 18661-1:2014. +// __STDC_WANT_IEC_60559_FUNCS_EXT__ +// Extensions to ISO C11 from TS 18661-4:2015. +// __STDC_WANT_IEC_60559_TYPES_EXT__ +// Extensions to ISO C11 from TS 18661-3:2015. +// __STDC_WANT_IEC_60559_EXT__ +// ISO C2X interfaces defined only in Annex F. +// +// _POSIX_SOURCE IEEE Std 1003.1. +// _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2; +// if >=199309L, add IEEE Std 1003.1b-1993; +// if >=199506L, add IEEE Std 1003.1c-1995; +// if >=200112L, all of IEEE 1003.1-2004 +// if >=200809L, all of IEEE 1003.1-2008 +// _XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if +// Single Unix conformance is wanted, to 600 for the +// sixth revision, to 700 for the seventh revision. +// _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions. +// _LARGEFILE_SOURCE Some more functions for correct standard I/O. +// _LARGEFILE64_SOURCE Additional functionality from LFS for large files. +// _FILE_OFFSET_BITS=N Select default filesystem interface. +// _ATFILE_SOURCE Additional *at interfaces. +// _DYNAMIC_STACK_SIZE_SOURCE Select correct (but non compile-time constant) +// MINSIGSTKSZ, SIGSTKSZ and PTHREAD_STACK_MIN. +// _GNU_SOURCE All of the above, plus GNU extensions. +// _DEFAULT_SOURCE The default set of features (taking precedence over +// __STRICT_ANSI__). +// +// _FORTIFY_SOURCE Add security hardening to many library functions. +// Set to 1, 2 or 3; 3 performs stricter checks than 2, which +// performs stricter checks than 1. +// +// _REENTRANT, _THREAD_SAFE +// Obsolete; equivalent to _POSIX_C_SOURCE=199506L. +// +// The `-ansi' switch to the GNU C compiler, and standards conformance +// options such as `-std=c99', define __STRICT_ANSI__. If none of +// these are defined, or if _DEFAULT_SOURCE is defined, the default is +// to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to +// 200809L, as well as enabling miscellaneous functions from BSD and +// SVID. If more than one of these are defined, they accumulate. For +// example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together +// give you ISO C, 1003.1, and 1003.2, but nothing else. +// +// These are defined by this file and are used by the +// header files to decide what to declare or define: +// +// __GLIBC_USE (F) Define things from feature set F. This is defined +// to 1 or 0; the subsequent macros are either defined +// or undefined, and those tests should be moved to +// __GLIBC_USE. +// __USE_ISOC11 Define ISO C11 things. +// __USE_ISOC99 Define ISO C99 things. +// __USE_ISOC95 Define ISO C90 AMD1 (C95) things. +// __USE_ISOCXX11 Define ISO C++11 things. +// __USE_POSIX Define IEEE Std 1003.1 things. +// __USE_POSIX2 Define IEEE Std 1003.2 things. +// __USE_POSIX199309 Define IEEE Std 1003.1, and .1b things. +// __USE_POSIX199506 Define IEEE Std 1003.1, .1b, .1c and .1i things. +// __USE_XOPEN Define XPG things. +// __USE_XOPEN_EXTENDED Define X/Open Unix things. +// __USE_UNIX98 Define Single Unix V2 things. +// __USE_XOPEN2K Define XPG6 things. +// __USE_XOPEN2KXSI Define XPG6 XSI things. +// __USE_XOPEN2K8 Define XPG7 things. +// __USE_XOPEN2K8XSI Define XPG7 XSI things. +// __USE_LARGEFILE Define correct standard I/O things. +// __USE_LARGEFILE64 Define LFS things with separate names. +// __USE_FILE_OFFSET64 Define 64bit interface as default. +// __USE_MISC Define things from 4.3BSD or System V Unix. +// __USE_ATFILE Define *at interfaces and AT_* constants for them. +// __USE_DYNAMIC_STACK_SIZE Define correct (but non compile-time constant) +// MINSIGSTKSZ, SIGSTKSZ and PTHREAD_STACK_MIN. +// __USE_GNU Define GNU extensions. +// __USE_FORTIFY_LEVEL Additional security measures used, according to level. +// +// The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are +// defined by this file unconditionally. `__GNU_LIBRARY__' is provided +// only for compatibility. All new code should use the other symbols +// to test for features. +// +// All macros listed above as possibly being defined by this file are +// explicitly undefined if they are not explicitly defined. +// Feature-test macros that are not defined by the user or compiler +// but are implied by the other feature-test macros defined (or by the +// lack of any definitions) are defined by the file. +// +// ISO C feature test macros depend on the definition of the macro +// when an affected header is included, not when the first system +// header is included, and so they are handled in +// , which does not have a multiple include +// guard. Feature test macros that can be handled from the first +// system header included are handled here. + +// Undefine everything, so we get a clean slate. + +// Suppress kernel-name space pollution unless user expressedly asks +// for it. + +// Convenience macro to test the version of gcc. +// Use like this: +// #if __GNUC_PREREQ (2,8) +// ... code requiring gcc 2.8 or later ... +// #endif +// Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was +// added in 2.0. + +// Similarly for clang. Features added to GCC after version 4.2 may +// or may not also be available in clang, and clang's definitions of +// __GNUC(_MINOR)__ are fixed at 4 and 2 respectively. Not all such +// features can be queried via __has_extension/__has_feature. + +// Whether to use feature set F. + +// _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for +// _DEFAULT_SOURCE. If _DEFAULT_SOURCE is present we do not +// issue a warning; the expectation is that the source is being +// transitioned to use the new macro. + +// If _GNU_SOURCE was defined by the user, turn on all the other features. + +// If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined, +// define _DEFAULT_SOURCE. + +// This is to enable the ISO C2X extension. + +// This is to enable the ISO C11 extension. + +// This is to enable the ISO C99 extension. + +// This is to enable the ISO C90 Amendment 1:1995 extension. + +// If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE +// is defined, use POSIX.1-2008 (or another version depending on +// _XOPEN_SOURCE). + +// Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be +// defined in all multithreaded code. GNU libc has not required this +// for many years. We now treat them as compatibility synonyms for +// _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with +// comprehensive support for multithreaded code. Using them never +// lowers the selected level of POSIX conformance, only raises it. + +// Features part to handle 64-bit time_t support. +// Copyright (C) 2021-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// We need to know the word size in order to check the time size. +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Bit size of the time_t type at glibc build time, general case. +// Copyright (C) 2018-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Size in bits of the 'time_t' type of the default ABI. + +// The function 'gets' existed in C89, but is impossible to use +// safely. It has been removed from ISO C11 and ISO C++14. Note: for +// compatibility with various implementations of , this test +// must consider only the value of __cplusplus when compiling C++. + +// GNU formerly extended the scanf functions with modified format +// specifiers %as, %aS, and %a[...] that allocate a buffer for the +// input using malloc. This extension conflicts with ISO C99, which +// defines %a as a standalone format specifier that reads a floating- +// point number; moreover, POSIX.1-2008 provides the same feature +// using the modifier letter 'm' instead (%ms, %mS, %m[...]). +// +// We now follow C99 unless GNU extensions are active and the compiler +// is specifically in C89 or C++98 mode (strict or not). For +// instance, with GCC, -std=gnu11 will have C99-compliant scanf with +// or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the +// old extension. + +// ISO C2X added support for a 0b or 0B prefix on binary constants as +// inputs to strtol-family functions (base 0 or 2). This macro is +// used to condition redirection in headers to allow that redirection +// to be disabled when building those functions, despite _GNU_SOURCE +// being defined. + +// Get definitions of __STDC_* predefined macros, if the compiler has +// not preincluded this header automatically. +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// This macro indicates that the installed library is the GNU C Library. +// For historic reasons the value now is 6 and this will stay from now +// on. The use of this variable is deprecated. Use __GLIBC__ and +// __GLIBC_MINOR__ now (see below) when you want to test for a specific +// GNU C library version and use the values in to get +// the sonames of the shared libraries. + +// Major and minor version number of the GNU C library package. Use +// these macros to test for features in specific releases. + +// This is here only because every header file already includes this one. +// Copyright (C) 1992-2023 Free Software Foundation, Inc. +// Copyright The GNU Toolchain Authors. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// We are almost always included from features.h. + +// The GNU libc does not support any K&R compilers or the traditional mode +// of ISO C compilers anymore. Check for some of the combinations not +// supported anymore. + +// Some user header file might have defined this before. + +// Compilers that lack __has_attribute may object to +// #if defined __has_attribute && __has_attribute (...) +// even though they do not need to evaluate the right-hand side of the &&. +// Similarly for __has_builtin, etc. + +// All functions, except those with callbacks or those that +// synchronize memory, are leaf functions. + +// GCC can always grok prototypes. For C++ programs we add throw() +// to help it optimize the function calls. But this only works with +// gcc 2.8.x and egcs. For gcc 3.4 and up we even mark C functions +// as non-throwing using a function attribute since programs can use +// the -fexceptions options for C code as well. + +// These two macros are not used in glibc anymore. They are kept here +// only because some other projects expect the macros to be defined. + +// For these things, GCC behaves the ANSI way normally, +// and the non-ANSI way under -traditional. + +// This is not a typedef so `const __ptr_t' does the right thing. + +// C++ needs to know that types and declarations are C, not C++. + +// Fortify support. + +// Use __builtin_dynamic_object_size at _FORTIFY_SOURCE=3 when available. + +// Support for flexible arrays. +// Headers that should use flexible arrays only if they're "real" +// (e.g. only if they won't affect sizeof()) should test +// #if __glibc_c99_flexarr_available. + +// __asm__ ("xyz") is used throughout the headers to rename functions +// at the assembly language level. This is wrapped by the __REDIRECT +// macro, in order to support compilers that can do this some other +// way. When compilers don't support asm-names at all, we have to do +// preprocessor tricks instead (which don't have exactly the right +// semantics, but it's the best we can do). +// +// Example: +// int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid); + +// +// #elif __SOME_OTHER_COMPILER__ +// +// # define __REDIRECT(name, proto, alias) name proto; _Pragma("let " #name " = " #alias) + +// GCC and clang have various useful declarations that can be made with +// the '__attribute__' syntax. All of the ways we use this do fine if +// they are omitted for compilers that don't understand it. + +// At some point during the gcc 2.96 development the `malloc' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// Tell the compiler which arguments to an allocation function +// indicate the size of the allocation. + +// Tell the compiler which argument to an allocation function +// indicates the alignment of the allocation. + +// At some point during the gcc 2.96 development the `pure' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// This declaration tells the compiler that the value is constant. + +// At some point during the gcc 3.1 development the `used' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// Since version 3.2, gcc allows marking deprecated functions. + +// Since version 4.5, gcc also allows one to specify the message printed +// when a deprecated function is used. clang claims to be gcc 4.2, but +// may also support this feature. + +// At some point during the gcc 2.8 development the `format_arg' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. +// If several `format_arg' attributes are given for the same function, in +// gcc-3.0 and older, all but the last one are ignored. In newer gccs, +// all designated arguments are considered. + +// At some point during the gcc 2.97 development the `strfmon' format +// attribute for functions was introduced. We don't want to use it +// unconditionally (although this would be possible) since it +// generates warnings. + +// The nonnull function attribute marks pointer parameters that +// must not be NULL. This has the name __nonnull in glibc, +// and __attribute_nonnull__ in files shared with Gnulib to avoid +// collision with a different __nonnull in DragonFlyBSD 5.9. + +// The returns_nonnull function attribute marks the return type of the function +// as always being non-null. + +// If fortification mode, we warn about unused results of certain +// function calls which can lead to problems. + +// Forces a function to be always inlined. +// The Linux kernel defines __always_inline in stddef.h (283d7573), and +// it conflicts with this definition. Therefore undefine it first to +// allow either header to be included first. + +// Associate error messages with the source location of the call site rather +// than with the source location inside the function. + +// GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99 +// inline semantics, unless -fgnu89-inline is used. Using __GNUC_STDC_INLINE__ +// or __GNUC_GNU_INLINE is not a good enough check for gcc because gcc versions +// older than 4.3 may define these macros and still not guarantee GNU inlining +// semantics. +// +// clang++ identifies itself as gcc-4.2, but has support for GNU inlining +// semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and +// __GNUC_GNU_INLINE__ macro definitions. + +// GCC 4.3 and above allow passing all anonymous arguments of an +// __extern_always_inline function to some other vararg function. + +// It is possible to compile containing GCC extensions even if GCC is +// run in pedantic mode if the uses are carefully marked using the +// `__extension__' keyword. But this is not generally available before +// version 2.8. + +// __restrict is known in EGCS 1.2 and above, and in clang. +// It works also in C++ mode (outside of arrays), but only when spelled +// as '__restrict', not 'restrict'. + +// ISO C99 also allows to declare arrays as non-overlapping. The syntax is +// array_name[restrict] +// GCC 3.1 and clang support this. +// This syntax is not usable in C++ mode. + +// Describes a char array whose address can safely be passed as the first +// argument to strncpy and strncat, as the char array is not necessarily +// a NUL-terminated string. + +// Undefine (also defined in libc-symbols.h). +// Copies attributes from the declaration or type referenced by +// the argument. + +// Gnulib avoids including these, as they don't work on non-glibc or +// older glibc platforms. +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Properties of long double type. ldbl-128 version. +// Copyright (C) 2016-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// long double is distinct from double, so there is nothing to +// define here. + +// __glibc_macro_warning (MESSAGE) issues warning MESSAGE. This is +// intended for use in preprocessor macros. +// +// Note: MESSAGE must be a _single_ string; concatenation of string +// literals is not supported. + +// Generic selection (ISO C11) is a C-only feature, available in GCC +// since version 4.9. Previous versions do not provide generic +// selection, even though they might set __STDC_VERSION__ to 201112L, +// when in -std=c11 mode. Thus, we must check for !defined __GNUC__ +// when testing __STDC_VERSION__ for generic selection support. +// On the other hand, Clang also defines __GNUC__, so a clang-specific +// check is required to enable the use of generic selection. + +// Designates a 1-based positional argument ref-index of pointer type +// that can be used to access size-index elements of the pointed-to +// array according to access mode, or at least one element when +// size-index is not provided: +// access (access-mode, [, ]) +// For _FORTIFY_SOURCE == 3 we use __builtin_dynamic_object_size, which may +// use the access attribute to get object sizes from function definition +// arguments, so we can't use them on functions we fortify. Drop the object +// size hints for such functions. + +// Designates dealloc as a function to call to deallocate objects +// allocated by the declared function. + +// Specify that a function such as setjmp or vfork may return +// twice. + +// If we don't have __REDIRECT, prototypes will be missing if +// __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64]. + +// Decide whether we can define 'extern inline' functions in headers. + +// This is here only because every header file already includes this one. +// Get the definitions of all the appropriate `__stub_FUNCTION' symbols. +// contains `#define __stub_FUNCTION' when FUNCTION is a stub +// that will always return failure (and set errno to ENOSYS). +// This file is automatically generated. +// This file selects the right generated file of `__stub_FUNCTION' macros +// based on the architecture being compiled for. + +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// This file is automatically generated. +// It defines a symbol `__stub_FUNCTION' for each function +// in the C library which is a stub, meaning it will fail +// every time called, usually setting errno to ENOSYS. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Bit size of the time_t type at glibc build time, general case. +// Copyright (C) 2018-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Size in bits of the 'time_t' type of the default ABI. + +// Convenience types. +type X__u_char = uint8 /* types.h:31:23 */ +type X__u_short = uint16 /* types.h:32:28 */ +type X__u_int = uint32 /* types.h:33:22 */ +type X__u_long = uint64 /* types.h:34:27 */ + +// Fixed-size types, underlying types depend on word size and compiler. +type X__int8_t = int8 /* types.h:37:21 */ +type X__uint8_t = uint8 /* types.h:38:23 */ +type X__int16_t = int16 /* types.h:39:26 */ +type X__uint16_t = uint16 /* types.h:40:28 */ +type X__int32_t = int32 /* types.h:41:20 */ +type X__uint32_t = uint32 /* types.h:42:22 */ +type X__int64_t = int64 /* types.h:44:25 */ +type X__uint64_t = uint64 /* types.h:45:27 */ + +// Smallest types with at least a given width. +type X__int_least8_t = int8 /* types.h:52:18 */ +type X__uint_least8_t = uint8 /* types.h:53:19 */ +type X__int_least16_t = int16 /* types.h:54:19 */ +type X__uint_least16_t = uint16 /* types.h:55:20 */ +type X__int_least32_t = int32 /* types.h:56:19 */ +type X__uint_least32_t = uint32 /* types.h:57:20 */ +type X__int_least64_t = int64 /* types.h:58:19 */ +type X__uint_least64_t = uint64 /* types.h:59:20 */ + +// quad_t is also 64 bits. +type X__quad_t = int64 /* types.h:63:18 */ +type X__u_quad_t = uint64 /* types.h:64:27 */ + +// Largest integral types. +type X__intmax_t = int64 /* types.h:72:18 */ +type X__uintmax_t = uint64 /* types.h:73:27 */ + +// The machine-dependent file defines __*_T_TYPE +// macros for each of the OS types we define below. The definitions +// of those macros must use the following macros for underlying types. +// We define __S_TYPE and __U_TYPE for the signed and unsigned +// variants of each of the following integer types on this machine. +// +// 16 -- "natural" 16-bit type (always short) +// 32 -- "natural" 32-bit type (always int) +// 64 -- "natural" 64-bit type (long or long long) +// LONG32 -- 32-bit type, traditionally long +// QUAD -- 64-bit type, traditionally long long +// WORD -- natural type of __WORDSIZE bits (int or long) +// LONGWORD -- type of __WORDSIZE bits, traditionally long +// +// We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the +// conventional uses of `long' or `long long' type modifiers match the +// types we define, even when a less-adorned type would be the same size. +// This matters for (somewhat) portably writing printf/scanf formats for +// these types, where using the appropriate l or ll format modifiers can +// make the typedefs and the formats match up across all GNU platforms. If +// we used `long' when it's 64 bits where `long long' is expected, then the +// compiler would warn about the formats not matching the argument types, +// and the programmer changing them to shut up the compiler would break the +// program's portability. +// +// Here we assume what is presently the case in all the GCC configurations +// we support: long long is always 64 bits, long is always word/address size, +// and int is always 32 bits. + +// No need to mark the typedef with __extension__. +// bits/typesizes.h -- underlying types for *_t. For the generic Linux ABI. +// Copyright (C) 2011-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library. If not, see +// . + +// See for the meaning of these macros. This file exists so +// that need not vary across different GNU platforms. + +// Tell the libc code that off_t and off64_t are actually the same type +// for all ABI purposes, even if possibly expressed as different base types +// for C type-checking purposes. + +// Same for ino_t and ino64_t. + +// And for __rlim_t and __rlim64_t. + +// And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t. + +// And for getitimer, setitimer and rusage + +// Number of descriptors that can fit in an `fd_set'. + +// bits/time64.h -- underlying types for __time64_t. Generic version. +// Copyright (C) 2018-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Define __TIME64_T_TYPE so that it is always a 64-bit type. + +// If we already have 64-bit time type then use it. + +type X__dev_t = uint64 /* types.h:145:25 */ // Type of device numbers. +type X__uid_t = uint32 /* types.h:146:25 */ // Type of user identifications. +type X__gid_t = uint32 /* types.h:147:25 */ // Type of group identifications. +type X__ino_t = uint64 /* types.h:148:25 */ // Type of file serial numbers. +type X__ino64_t = uint64 /* types.h:149:27 */ // Type of file serial numbers (LFS). +type X__mode_t = uint32 /* types.h:150:26 */ // Type of file attribute bitmasks. +type X__nlink_t = uint32 /* types.h:151:27 */ // Type of file link counts. +type X__off_t = int64 /* types.h:152:25 */ // Type of file sizes and offsets. +type X__off64_t = int64 /* types.h:153:27 */ // Type of file sizes and offsets (LFS). +type X__pid_t = int32 /* types.h:154:25 */ // Type of process identifications. +type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs. +type X__clock_t = int64 /* types.h:156:27 */ // Type of CPU usage counts. +type X__rlim_t = uint64 /* types.h:157:26 */ // Type for resource measurement. +type X__rlim64_t = uint64 /* types.h:158:28 */ // Type for resource measurement (LFS). +type X__id_t = uint32 /* types.h:159:24 */ // General type for IDs. +type X__time_t = int64 /* types.h:160:26 */ // Seconds since the Epoch. +type X__useconds_t = uint32 /* types.h:161:30 */ // Count of microseconds. +type X__suseconds_t = int64 /* types.h:162:31 */ // Signed count of microseconds. +type X__suseconds64_t = int64 /* types.h:163:33 */ + +type X__daddr_t = int32 /* types.h:165:27 */ // The type of a disk address. +type X__key_t = int32 /* types.h:166:25 */ // Type of an IPC key. + +// Clock ID used in clock and timer functions. +type X__clockid_t = int32 /* types.h:169:29 */ + +// Timer ID returned by `timer_create'. +type X__timer_t = uintptr /* types.h:172:12 */ + +// Type to represent block size. +type X__blksize_t = int32 /* types.h:175:29 */ + +// Types from the Large File Support interface. + +// Type to count number of disk blocks. +type X__blkcnt_t = int64 /* types.h:180:28 */ +type X__blkcnt64_t = int64 /* types.h:181:30 */ + +// Type to count file system blocks. +type X__fsblkcnt_t = uint64 /* types.h:184:30 */ +type X__fsblkcnt64_t = uint64 /* types.h:185:32 */ + +// Type to count file system nodes. +type X__fsfilcnt_t = uint64 /* types.h:188:30 */ +type X__fsfilcnt64_t = uint64 /* types.h:189:32 */ + +// Type of miscellaneous file system fields. +type X__fsword_t = int64 /* types.h:192:28 */ + +type X__ssize_t = int64 /* types.h:194:27 */ // Type of a byte count, or error. + +// Signed long type used in system calls. +type X__syscall_slong_t = int64 /* types.h:197:33 */ +// Unsigned long type used in system calls. +type X__syscall_ulong_t = uint64 /* types.h:199:33 */ + +// These few don't really vary by system, they always correspond +// +// to one of the other defined types. +type X__loff_t = int64 /* types.h:203:19 */ // Type of file sizes and offsets (LFS). +type X__caddr_t = uintptr /* types.h:204:14 */ + +// Duplicates info from stdint.h but this is used in unistd.h. +type X__intptr_t = int64 /* types.h:207:25 */ + +// Duplicate info from sys/socket.h. +type X__socklen_t = uint32 /* types.h:210:23 */ + +// C99: An integer type that can be accessed as an atomic entity, +// +// even in the presence of asynchronous interrupts. +// It is not currently necessary for this to be machine-specific. +type X__sig_atomic_t = int32 /* types.h:215:13 */ + +// Seconds since the Epoch, visible to user code when time_t is too +// narrow only for consistency with the old way of widening too-narrow +// types. User code should never use __time64_t. + +// NB: Include guard matches what uses. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Endian macros for string.h functions +// Copyright (C) 1992-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Definitions for byte order, according to significance of bytes, +// from low addresses to high addresses. The value is what you get by +// putting '4' in the most significant byte, '3' in the second most +// significant byte, '2' in the second least significant byte, and '1' +// in the least significant byte, and then writing down one digit for +// each byte, starting with the byte at the lowest address at the left, +// and proceeding to the byte with the highest address at the right. + +// This file defines `__BYTE_ORDER' for the particular machine. + +// LoongArch is little-endian. + +// Some machines may need to use a different endianness for floating point +// values. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Returned by `time'. +type Time_t = int64 /* time_t.h:10:18 */ + +// POSIX.1b structure for a time value. This is like a `struct timeval' but +// +// has nanoseconds instead of microseconds. +type Timespec = struct { + Ftv_sec int64 + Ftv_nsec int64 +} /* struct_timespec.h:11:1 */ + +// The Single Unix specification says that some more types are +// available here. + +type Dev_t = uint64 /* stat.h:40:17 */ + +type Gid_t = uint32 /* stat.h:45:17 */ + +type Ino_t = uint64 /* stat.h:53:19 */ + +type Mode_t = uint32 /* stat.h:59:18 */ + +type Nlink_t = uint32 /* stat.h:64:19 */ + +type Off_t = int64 /* stat.h:72:19 */ + +type Uid_t = uint32 /* stat.h:78:17 */ + +// Copyright (C) 1992-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Definition for struct stat. +// Copyright (C) 2020-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library. If not, see +// . + +// Endian macros for string.h functions +// Copyright (C) 1992-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +type Stat = struct { + Fst_dev uint64 + Fst_ino uint64 + Fst_mode uint32 + Fst_nlink uint32 + Fst_uid uint32 + Fst_gid uint32 + Fst_rdev uint64 + F__pad1 uint64 + Fst_size int64 + Fst_blksize int32 + F__pad2 int32 + Fst_blocks int64 + Fst_atim struct { + Ftv_sec int64 + Ftv_nsec int64 + } + Fst_mtim struct { + Ftv_sec int64 + Ftv_nsec int64 + } + Fst_ctim struct { + Ftv_sec int64 + Ftv_nsec int64 + } + F__glibc_reserved [2]int32 +} /* struct_stat.h:44:1 */ + +var _ int8 /* gen.c:2:13: */ diff --git a/vendor/modernc.org/libc/sys/stat/stat_linux_mips64le.go b/vendor/modernc.org/libc/sys/stat/stat_linux_mips64le.go new file mode 100644 index 000000000..9c460d3ac --- /dev/null +++ b/vendor/modernc.org/libc/sys/stat/stat_linux_mips64le.go @@ -0,0 +1,947 @@ +// Code generated by 'ccgo sys/stat/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o sys/stat/stat_linux_amd64.go -pkgname stat', DO NOT EDIT. + +package stat + +import ( + "math" + "reflect" + "sync/atomic" + "unsafe" +) + +var _ = math.Pi +var _ reflect.Kind +var _ atomic.Value +var _ unsafe.Pointer + +const ( + ACCESSPERMS = 511 // stat.h:195:1: + ALLPERMS = 4095 // stat.h:196:1: + DEFFILEMODE = 438 // stat.h:197:1: + S_BLKSIZE = 512 // stat.h:199:1: + S_IEXEC = 64 // stat.h:177:1: + S_IFBLK = 24576 // stat.h:107:1: + S_IFCHR = 8192 // stat.h:106:1: + S_IFDIR = 16384 // stat.h:105:1: + S_IFIFO = 4096 // stat.h:110:1: + S_IFLNK = 40960 // stat.h:113:1: + S_IFMT = 61440 // stat.h:104:1: + S_IFREG = 32768 // stat.h:108:1: + S_IFSOCK = 49152 // stat.h:117:1: + S_IREAD = 256 // stat.h:175:1: + S_IRGRP = 32 // stat.h:180:1: + S_IROTH = 4 // stat.h:186:1: + S_IRUSR = 256 // stat.h:168:1: + S_IRWXG = 56 // stat.h:184:1: + S_IRWXO = 7 // stat.h:190:1: + S_IRWXU = 448 // stat.h:172:1: + S_ISGID = 1024 // stat.h:161:1: + S_ISUID = 2048 // stat.h:160:1: + S_ISVTX = 512 // stat.h:165:1: + S_IWGRP = 16 // stat.h:181:1: + S_IWOTH = 2 // stat.h:187:1: + S_IWRITE = 128 // stat.h:176:1: + S_IWUSR = 128 // stat.h:169:1: + S_IXGRP = 8 // stat.h:182:1: + S_IXOTH = 1 // stat.h:188:1: + S_IXUSR = 64 // stat.h:170:1: + UTIME_NOW = 1073741823 // stat.h:206:1: + UTIME_OMIT = 1073741822 // stat.h:207:1: + X_ATFILE_SOURCE = 1 // features.h:342:1: + X_BITS_ENDIANNESS_H = 1 // endianness.h:2:1: + X_BITS_ENDIAN_H = 1 // endian.h:20:1: + X_BITS_STAT_H = 1 // stat.h:23:1: + X_BITS_TIME64_H = 1 // time64.h:24:1: + X_BITS_TYPESIZES_H = 1 // typesizes.h:24:1: + X_BITS_TYPES_H = 1 // types.h:24:1: + X_DEFAULT_SOURCE = 1 // features.h:227:1: + X_FEATURES_H = 1 // features.h:19:1: + X_FILE_OFFSET_BITS = 64 // :25:1: + X_LP64 = 1 // :284:1: + X_MKNOD_VER = 0 // stat.h:390:1: + X_MKNOD_VER_LINUX = 0 // stat.h:41:1: + X_POSIX_C_SOURCE = 200809 // features.h:281:1: + X_POSIX_SOURCE = 1 // features.h:279:1: + X_STATBUF_ST_BLKSIZE = 0 // stat.h:172:1: + X_STATBUF_ST_NSEC = 0 // stat.h:175:1: + X_STATBUF_ST_RDEV = 0 // stat.h:173:1: + X_STAT_VER = 1 // stat.h:44:1: + X_STAT_VER_KERNEL = 0 // stat.h:37:1: + X_STAT_VER_LINUX = 1 // stat.h:38:1: + X_STDC_PREDEF_H = 1 // :162:1: + X_STRUCT_TIMESPEC = 1 // struct_timespec.h:3:1: + X_SYS_CDEFS_H = 1 // cdefs.h:19:1: + X_SYS_STAT_H = 1 // stat.h:23:1: + Linux = 1 // :231:1: + Unix = 1 // :177:1: +) + +type Ptrdiff_t = int64 /* :3:26 */ + +type Size_t = uint64 /* :9:23 */ + +type Wchar_t = int32 /* :15:24 */ + +type X__int128_t = struct { + Flo int64 + Fhi int64 +} /* :21:43 */ // must match modernc.org/mathutil.Int128 +type X__uint128_t = struct { + Flo uint64 + Fhi uint64 +} /* :22:44 */ // must match modernc.org/mathutil.Int128 + +type X__builtin_va_list = uintptr /* :46:14 */ +type X__float128 = float64 /* :47:21 */ + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// POSIX Standard: 5.6 File Characteristics + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// These are defined by the user (or the compiler) +// to specify the desired environment: +// +// __STRICT_ANSI__ ISO Standard C. +// _ISOC99_SOURCE Extensions to ISO C89 from ISO C99. +// _ISOC11_SOURCE Extensions to ISO C99 from ISO C11. +// _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X. +// __STDC_WANT_LIB_EXT2__ +// Extensions to ISO C99 from TR 27431-2:2010. +// __STDC_WANT_IEC_60559_BFP_EXT__ +// Extensions to ISO C11 from TS 18661-1:2014. +// __STDC_WANT_IEC_60559_FUNCS_EXT__ +// Extensions to ISO C11 from TS 18661-4:2015. +// __STDC_WANT_IEC_60559_TYPES_EXT__ +// Extensions to ISO C11 from TS 18661-3:2015. +// +// _POSIX_SOURCE IEEE Std 1003.1. +// _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2; +// if >=199309L, add IEEE Std 1003.1b-1993; +// if >=199506L, add IEEE Std 1003.1c-1995; +// if >=200112L, all of IEEE 1003.1-2004 +// if >=200809L, all of IEEE 1003.1-2008 +// _XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if +// Single Unix conformance is wanted, to 600 for the +// sixth revision, to 700 for the seventh revision. +// _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions. +// _LARGEFILE_SOURCE Some more functions for correct standard I/O. +// _LARGEFILE64_SOURCE Additional functionality from LFS for large files. +// _FILE_OFFSET_BITS=N Select default filesystem interface. +// _ATFILE_SOURCE Additional *at interfaces. +// _GNU_SOURCE All of the above, plus GNU extensions. +// _DEFAULT_SOURCE The default set of features (taking precedence over +// __STRICT_ANSI__). +// +// _FORTIFY_SOURCE Add security hardening to many library functions. +// Set to 1 or 2; 2 performs stricter checks than 1. +// +// _REENTRANT, _THREAD_SAFE +// Obsolete; equivalent to _POSIX_C_SOURCE=199506L. +// +// The `-ansi' switch to the GNU C compiler, and standards conformance +// options such as `-std=c99', define __STRICT_ANSI__. If none of +// these are defined, or if _DEFAULT_SOURCE is defined, the default is +// to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to +// 200809L, as well as enabling miscellaneous functions from BSD and +// SVID. If more than one of these are defined, they accumulate. For +// example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together +// give you ISO C, 1003.1, and 1003.2, but nothing else. +// +// These are defined by this file and are used by the +// header files to decide what to declare or define: +// +// __GLIBC_USE (F) Define things from feature set F. This is defined +// to 1 or 0; the subsequent macros are either defined +// or undefined, and those tests should be moved to +// __GLIBC_USE. +// __USE_ISOC11 Define ISO C11 things. +// __USE_ISOC99 Define ISO C99 things. +// __USE_ISOC95 Define ISO C90 AMD1 (C95) things. +// __USE_ISOCXX11 Define ISO C++11 things. +// __USE_POSIX Define IEEE Std 1003.1 things. +// __USE_POSIX2 Define IEEE Std 1003.2 things. +// __USE_POSIX199309 Define IEEE Std 1003.1, and .1b things. +// __USE_POSIX199506 Define IEEE Std 1003.1, .1b, .1c and .1i things. +// __USE_XOPEN Define XPG things. +// __USE_XOPEN_EXTENDED Define X/Open Unix things. +// __USE_UNIX98 Define Single Unix V2 things. +// __USE_XOPEN2K Define XPG6 things. +// __USE_XOPEN2KXSI Define XPG6 XSI things. +// __USE_XOPEN2K8 Define XPG7 things. +// __USE_XOPEN2K8XSI Define XPG7 XSI things. +// __USE_LARGEFILE Define correct standard I/O things. +// __USE_LARGEFILE64 Define LFS things with separate names. +// __USE_FILE_OFFSET64 Define 64bit interface as default. +// __USE_MISC Define things from 4.3BSD or System V Unix. +// __USE_ATFILE Define *at interfaces and AT_* constants for them. +// __USE_GNU Define GNU extensions. +// __USE_FORTIFY_LEVEL Additional security measures used, according to level. +// +// The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are +// defined by this file unconditionally. `__GNU_LIBRARY__' is provided +// only for compatibility. All new code should use the other symbols +// to test for features. +// +// All macros listed above as possibly being defined by this file are +// explicitly undefined if they are not explicitly defined. +// Feature-test macros that are not defined by the user or compiler +// but are implied by the other feature-test macros defined (or by the +// lack of any definitions) are defined by the file. +// +// ISO C feature test macros depend on the definition of the macro +// when an affected header is included, not when the first system +// header is included, and so they are handled in +// , which does not have a multiple include +// guard. Feature test macros that can be handled from the first +// system header included are handled here. + +// Undefine everything, so we get a clean slate. + +// Suppress kernel-name space pollution unless user expressedly asks +// for it. + +// Convenience macro to test the version of gcc. +// Use like this: +// #if __GNUC_PREREQ (2,8) +// ... code requiring gcc 2.8 or later ... +// #endif +// Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was +// added in 2.0. + +// Similarly for clang. Features added to GCC after version 4.2 may +// or may not also be available in clang, and clang's definitions of +// __GNUC(_MINOR)__ are fixed at 4 and 2 respectively. Not all such +// features can be queried via __has_extension/__has_feature. + +// Whether to use feature set F. + +// _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for +// _DEFAULT_SOURCE. If _DEFAULT_SOURCE is present we do not +// issue a warning; the expectation is that the source is being +// transitioned to use the new macro. + +// If _GNU_SOURCE was defined by the user, turn on all the other features. + +// If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined, +// define _DEFAULT_SOURCE. + +// This is to enable the ISO C2X extension. + +// This is to enable the ISO C11 extension. + +// This is to enable the ISO C99 extension. + +// This is to enable the ISO C90 Amendment 1:1995 extension. + +// If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE +// is defined, use POSIX.1-2008 (or another version depending on +// _XOPEN_SOURCE). + +// Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be +// defined in all multithreaded code. GNU libc has not required this +// for many years. We now treat them as compatibility synonyms for +// _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with +// comprehensive support for multithreaded code. Using them never +// lowers the selected level of POSIX conformance, only raises it. + +// The function 'gets' existed in C89, but is impossible to use +// safely. It has been removed from ISO C11 and ISO C++14. Note: for +// compatibility with various implementations of , this test +// must consider only the value of __cplusplus when compiling C++. + +// GNU formerly extended the scanf functions with modified format +// specifiers %as, %aS, and %a[...] that allocate a buffer for the +// input using malloc. This extension conflicts with ISO C99, which +// defines %a as a standalone format specifier that reads a floating- +// point number; moreover, POSIX.1-2008 provides the same feature +// using the modifier letter 'm' instead (%ms, %mS, %m[...]). +// +// We now follow C99 unless GNU extensions are active and the compiler +// is specifically in C89 or C++98 mode (strict or not). For +// instance, with GCC, -std=gnu11 will have C99-compliant scanf with +// or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the +// old extension. + +// Get definitions of __STDC_* predefined macros, if the compiler has +// not preincluded this header automatically. +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// This macro indicates that the installed library is the GNU C Library. +// For historic reasons the value now is 6 and this will stay from now +// on. The use of this variable is deprecated. Use __GLIBC__ and +// __GLIBC_MINOR__ now (see below) when you want to test for a specific +// GNU C library version and use the values in to get +// the sonames of the shared libraries. + +// Major and minor version number of the GNU C library package. Use +// these macros to test for features in specific releases. + +// This is here only because every header file already includes this one. +// Copyright (C) 1992-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// We are almost always included from features.h. + +// The GNU libc does not support any K&R compilers or the traditional mode +// of ISO C compilers anymore. Check for some of the combinations not +// anymore supported. + +// Some user header file might have defined this before. + +// All functions, except those with callbacks or those that +// synchronize memory, are leaf functions. + +// GCC can always grok prototypes. For C++ programs we add throw() +// to help it optimize the function calls. But this works only with +// gcc 2.8.x and egcs. For gcc 3.2 and up we even mark C functions +// as non-throwing using a function attribute since programs can use +// the -fexceptions options for C code as well. + +// Compilers that are not clang may object to +// #if defined __clang__ && __has_extension(...) +// even though they do not need to evaluate the right-hand side of the &&. + +// These two macros are not used in glibc anymore. They are kept here +// only because some other projects expect the macros to be defined. + +// For these things, GCC behaves the ANSI way normally, +// and the non-ANSI way under -traditional. + +// This is not a typedef so `const __ptr_t' does the right thing. + +// C++ needs to know that types and declarations are C, not C++. + +// Fortify support. + +// Support for flexible arrays. +// Headers that should use flexible arrays only if they're "real" +// (e.g. only if they won't affect sizeof()) should test +// #if __glibc_c99_flexarr_available. + +// __asm__ ("xyz") is used throughout the headers to rename functions +// at the assembly language level. This is wrapped by the __REDIRECT +// macro, in order to support compilers that can do this some other +// way. When compilers don't support asm-names at all, we have to do +// preprocessor tricks instead (which don't have exactly the right +// semantics, but it's the best we can do). +// +// Example: +// int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid); + +// +// #elif __SOME_OTHER_COMPILER__ +// +// # define __REDIRECT(name, proto, alias) name proto; _Pragma("let " #name " = " #alias) + +// GCC has various useful declarations that can be made with the +// `__attribute__' syntax. All of the ways we use this do fine if +// they are omitted for compilers that don't understand it. + +// At some point during the gcc 2.96 development the `malloc' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// Tell the compiler which arguments to an allocation function +// indicate the size of the allocation. + +// At some point during the gcc 2.96 development the `pure' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// This declaration tells the compiler that the value is constant. + +// At some point during the gcc 3.1 development the `used' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// Since version 3.2, gcc allows marking deprecated functions. + +// Since version 4.5, gcc also allows one to specify the message printed +// when a deprecated function is used. clang claims to be gcc 4.2, but +// may also support this feature. + +// At some point during the gcc 2.8 development the `format_arg' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. +// If several `format_arg' attributes are given for the same function, in +// gcc-3.0 and older, all but the last one are ignored. In newer gccs, +// all designated arguments are considered. + +// At some point during the gcc 2.97 development the `strfmon' format +// attribute for functions was introduced. We don't want to use it +// unconditionally (although this would be possible) since it +// generates warnings. + +// The nonull function attribute allows to mark pointer parameters which +// must not be NULL. + +// If fortification mode, we warn about unused results of certain +// function calls which can lead to problems. + +// Forces a function to be always inlined. +// The Linux kernel defines __always_inline in stddef.h (283d7573), and +// it conflicts with this definition. Therefore undefine it first to +// allow either header to be included first. + +// Associate error messages with the source location of the call site rather +// than with the source location inside the function. + +// GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99 +// inline semantics, unless -fgnu89-inline is used. Using __GNUC_STDC_INLINE__ +// or __GNUC_GNU_INLINE is not a good enough check for gcc because gcc versions +// older than 4.3 may define these macros and still not guarantee GNU inlining +// semantics. +// +// clang++ identifies itself as gcc-4.2, but has support for GNU inlining +// semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and +// __GNUC_GNU_INLINE__ macro definitions. + +// GCC 4.3 and above allow passing all anonymous arguments of an +// __extern_always_inline function to some other vararg function. + +// It is possible to compile containing GCC extensions even if GCC is +// run in pedantic mode if the uses are carefully marked using the +// `__extension__' keyword. But this is not generally available before +// version 2.8. + +// __restrict is known in EGCS 1.2 and above. + +// ISO C99 also allows to declare arrays as non-overlapping. The syntax is +// array_name[restrict] +// GCC 3.1 supports this. + +// Describes a char array whose address can safely be passed as the first +// argument to strncpy and strncat, as the char array is not necessarily +// a NUL-terminated string. + +// Undefine (also defined in libc-symbols.h). +// Copies attributes from the declaration or type referenced by +// the argument. + +// Determine the wordsize from the preprocessor defines. + +// Both x86-64 and x32 use the 64-bit system call interface. +// Properties of long double type. ldbl-96 version. +// Copyright (C) 2016-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// long double is distinct from double, so there is nothing to +// define here. + +// __glibc_macro_warning (MESSAGE) issues warning MESSAGE. This is +// intended for use in preprocessor macros. +// +// Note: MESSAGE must be a _single_ string; concatenation of string +// literals is not supported. + +// Generic selection (ISO C11) is a C-only feature, available in GCC +// since version 4.9. Previous versions do not provide generic +// selection, even though they might set __STDC_VERSION__ to 201112L, +// when in -std=c11 mode. Thus, we must check for !defined __GNUC__ +// when testing __STDC_VERSION__ for generic selection support. +// On the other hand, Clang also defines __GNUC__, so a clang-specific +// check is required to enable the use of generic selection. + +// If we don't have __REDIRECT, prototypes will be missing if +// __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64]. + +// Decide whether we can define 'extern inline' functions in headers. + +// This is here only because every header file already includes this one. +// Get the definitions of all the appropriate `__stub_FUNCTION' symbols. +// contains `#define __stub_FUNCTION' when FUNCTION is a stub +// that will always return failure (and set errno to ENOSYS). +// This file is automatically generated. +// This file selects the right generated file of `__stub_FUNCTION' macros +// based on the architecture being compiled for. + +// This file is automatically generated. +// It defines a symbol `__stub_FUNCTION' for each function +// in the C library which is a stub, meaning it will fail +// every time called, usually setting errno to ENOSYS. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Determine the wordsize from the preprocessor defines. + +// Both x86-64 and x32 use the 64-bit system call interface. +// Bit size of the time_t type at glibc build time, x86-64 and x32 case. +// Copyright (C) 2018-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// For others, time size is word size. + +// Convenience types. +type X__u_char = uint8 /* types.h:31:23 */ +type X__u_short = uint16 /* types.h:32:28 */ +type X__u_int = uint32 /* types.h:33:22 */ +type X__u_long = uint64 /* types.h:34:27 */ + +// Fixed-size types, underlying types depend on word size and compiler. +type X__int8_t = int8 /* types.h:37:21 */ +type X__uint8_t = uint8 /* types.h:38:23 */ +type X__int16_t = int16 /* types.h:39:26 */ +type X__uint16_t = uint16 /* types.h:40:28 */ +type X__int32_t = int32 /* types.h:41:20 */ +type X__uint32_t = uint32 /* types.h:42:22 */ +type X__int64_t = int64 /* types.h:44:25 */ +type X__uint64_t = uint64 /* types.h:45:27 */ + +// Smallest types with at least a given width. +type X__int_least8_t = X__int8_t /* types.h:52:18 */ +type X__uint_least8_t = X__uint8_t /* types.h:53:19 */ +type X__int_least16_t = X__int16_t /* types.h:54:19 */ +type X__uint_least16_t = X__uint16_t /* types.h:55:20 */ +type X__int_least32_t = X__int32_t /* types.h:56:19 */ +type X__uint_least32_t = X__uint32_t /* types.h:57:20 */ +type X__int_least64_t = X__int64_t /* types.h:58:19 */ +type X__uint_least64_t = X__uint64_t /* types.h:59:20 */ + +// quad_t is also 64 bits. +type X__quad_t = int64 /* types.h:63:18 */ +type X__u_quad_t = uint64 /* types.h:64:27 */ + +// Largest integral types. +type X__intmax_t = int64 /* types.h:72:18 */ +type X__uintmax_t = uint64 /* types.h:73:27 */ + +// The machine-dependent file defines __*_T_TYPE +// macros for each of the OS types we define below. The definitions +// of those macros must use the following macros for underlying types. +// We define __S_TYPE and __U_TYPE for the signed and unsigned +// variants of each of the following integer types on this machine. +// +// 16 -- "natural" 16-bit type (always short) +// 32 -- "natural" 32-bit type (always int) +// 64 -- "natural" 64-bit type (long or long long) +// LONG32 -- 32-bit type, traditionally long +// QUAD -- 64-bit type, traditionally long long +// WORD -- natural type of __WORDSIZE bits (int or long) +// LONGWORD -- type of __WORDSIZE bits, traditionally long +// +// We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the +// conventional uses of `long' or `long long' type modifiers match the +// types we define, even when a less-adorned type would be the same size. +// This matters for (somewhat) portably writing printf/scanf formats for +// these types, where using the appropriate l or ll format modifiers can +// make the typedefs and the formats match up across all GNU platforms. If +// we used `long' when it's 64 bits where `long long' is expected, then the +// compiler would warn about the formats not matching the argument types, +// and the programmer changing them to shut up the compiler would break the +// program's portability. +// +// Here we assume what is presently the case in all the GCC configurations +// we support: long long is always 64 bits, long is always word/address size, +// and int is always 32 bits. + +// No need to mark the typedef with __extension__. +// bits/typesizes.h -- underlying types for *_t. Linux/x86-64 version. +// Copyright (C) 2012-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// See for the meaning of these macros. This file exists so +// that need not vary across different GNU platforms. + +// X32 kernel interface is 64-bit. + +// Tell the libc code that off_t and off64_t are actually the same type +// for all ABI purposes, even if possibly expressed as different base types +// for C type-checking purposes. + +// Same for ino_t and ino64_t. + +// And for __rlim_t and __rlim64_t. + +// And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t. + +// Number of descriptors that can fit in an `fd_set'. + +// bits/time64.h -- underlying types for __time64_t. Generic version. +// Copyright (C) 2018-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Define __TIME64_T_TYPE so that it is always a 64-bit type. + +// If we already have 64-bit time type then use it. + +type X__dev_t = uint64 /* types.h:145:25 */ // Type of device numbers. +type X__uid_t = uint32 /* types.h:146:25 */ // Type of user identifications. +type X__gid_t = uint32 /* types.h:147:25 */ // Type of group identifications. +type X__ino_t = uint64 /* types.h:148:25 */ // Type of file serial numbers. +type X__ino64_t = uint64 /* types.h:149:27 */ // Type of file serial numbers (LFS). +type X__mode_t = uint32 /* types.h:150:26 */ // Type of file attribute bitmasks. +type X__nlink_t = uint64 /* types.h:151:27 */ // Type of file link counts. +type X__off_t = int64 /* types.h:152:25 */ // Type of file sizes and offsets. +type X__off64_t = int64 /* types.h:153:27 */ // Type of file sizes and offsets (LFS). +type X__pid_t = int32 /* types.h:154:25 */ // Type of process identifications. +type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs. +type X__clock_t = int64 /* types.h:156:27 */ // Type of CPU usage counts. +type X__rlim_t = uint64 /* types.h:157:26 */ // Type for resource measurement. +type X__rlim64_t = uint64 /* types.h:158:28 */ // Type for resource measurement (LFS). +type X__id_t = uint32 /* types.h:159:24 */ // General type for IDs. +type X__time_t = int64 /* types.h:160:26 */ // Seconds since the Epoch. +type X__useconds_t = uint32 /* types.h:161:30 */ // Count of microseconds. +type X__suseconds_t = int64 /* types.h:162:31 */ // Signed count of microseconds. + +type X__daddr_t = int32 /* types.h:164:27 */ // The type of a disk address. +type X__key_t = int32 /* types.h:165:25 */ // Type of an IPC key. + +// Clock ID used in clock and timer functions. +type X__clockid_t = int32 /* types.h:168:29 */ + +// Timer ID returned by `timer_create'. +type X__timer_t = uintptr /* types.h:171:12 */ + +// Type to represent block size. +type X__blksize_t = int64 /* types.h:174:29 */ + +// Types from the Large File Support interface. + +// Type to count number of disk blocks. +type X__blkcnt_t = int64 /* types.h:179:28 */ +type X__blkcnt64_t = int64 /* types.h:180:30 */ + +// Type to count file system blocks. +type X__fsblkcnt_t = uint64 /* types.h:183:30 */ +type X__fsblkcnt64_t = uint64 /* types.h:184:32 */ + +// Type to count file system nodes. +type X__fsfilcnt_t = uint64 /* types.h:187:30 */ +type X__fsfilcnt64_t = uint64 /* types.h:188:32 */ + +// Type of miscellaneous file system fields. +type X__fsword_t = int64 /* types.h:191:28 */ + +type X__ssize_t = int64 /* types.h:193:27 */ // Type of a byte count, or error. + +// Signed long type used in system calls. +type X__syscall_slong_t = int64 /* types.h:196:33 */ +// Unsigned long type used in system calls. +type X__syscall_ulong_t = uint64 /* types.h:198:33 */ + +// These few don't really vary by system, they always correspond +// +// to one of the other defined types. +type X__loff_t = X__off64_t /* types.h:202:19 */ // Type of file sizes and offsets (LFS). +type X__caddr_t = uintptr /* types.h:203:14 */ + +// Duplicates info from stdint.h but this is used in unistd.h. +type X__intptr_t = int64 /* types.h:206:25 */ + +// Duplicate info from sys/socket.h. +type X__socklen_t = uint32 /* types.h:209:23 */ + +// C99: An integer type that can be accessed as an atomic entity, +// +// even in the presence of asynchronous interrupts. +// It is not currently necessary for this to be machine-specific. +type X__sig_atomic_t = int32 /* types.h:214:13 */ + +// Seconds since the Epoch, visible to user code when time_t is too +// narrow only for consistency with the old way of widening too-narrow +// types. User code should never use __time64_t. + +// NB: Include guard matches what uses. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Endian macros for string.h functions +// Copyright (C) 1992-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Definitions for byte order, according to significance of bytes, +// from low addresses to high addresses. The value is what you get by +// putting '4' in the most significant byte, '3' in the second most +// significant byte, '2' in the second least significant byte, and '1' +// in the least significant byte, and then writing down one digit for +// each byte, starting with the byte at the lowest address at the left, +// and proceeding to the byte with the highest address at the right. + +// This file defines `__BYTE_ORDER' for the particular machine. + +// i386/x86_64 are little-endian. + +// Some machines may need to use a different endianness for floating point +// values. + +// POSIX.1b structure for a time value. This is like a `struct timeval' but +// +// has nanoseconds instead of microseconds. +type Timespec = struct { + Ftv_sec X__time_t + Ftv_nsec X__syscall_slong_t +} /* struct_timespec.h:10:1 */ + +// The Single Unix specification says that some more types are +// available here. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Returned by `time'. +type Time_t = X__time_t /* time_t.h:7:18 */ + +type Dev_t = X__dev_t /* stat.h:40:17 */ + +type Gid_t = X__gid_t /* stat.h:45:17 */ + +type Ino_t = X__ino64_t /* stat.h:53:19 */ + +type Mode_t = X__mode_t /* stat.h:59:18 */ + +type Nlink_t = X__nlink_t /* stat.h:64:19 */ + +type Off_t = X__off64_t /* stat.h:72:19 */ + +type Uid_t = X__uid_t /* stat.h:78:17 */ + +// Copyright (C) 1999-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Versions of the `struct stat' data structure. + +// x86-64 versions of the `xmknod' interface. + +type Stat = struct { + Fst_dev X__dev_t + Fst_ino X__ino_t + Fst_nlink X__nlink_t + Fst_mode X__mode_t + Fst_uid X__uid_t + Fst_gid X__gid_t + F__pad0 int32 + Fst_rdev X__dev_t + Fst_size X__off_t + Fst_blksize X__blksize_t + Fst_blocks X__blkcnt_t + Fst_atim struct { + Ftv_sec X__time_t + Ftv_nsec X__syscall_slong_t + } + Fst_mtim struct { + Ftv_sec X__time_t + Ftv_nsec X__syscall_slong_t + } + Fst_ctim struct { + Ftv_sec X__time_t + Ftv_nsec X__syscall_slong_t + } + F__glibc_reserved [3]X__syscall_slong_t +} /* stat.h:46:1 */ + +var _ int8 /* gen.c:2:13: */ diff --git a/vendor/modernc.org/libc/sys/types/capi_illumos_amd64.go b/vendor/modernc.org/libc/sys/types/capi_illumos_amd64.go new file mode 100644 index 000000000..137dc7232 --- /dev/null +++ b/vendor/modernc.org/libc/sys/types/capi_illumos_amd64.go @@ -0,0 +1,5 @@ +// Code generated by 'ccgo sys/types/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o sys/types/types_illumos_amd64.go -pkgname types', DO NOT EDIT. + +package types + +var CAPI = map[string]struct{}{} diff --git a/vendor/modernc.org/libc/sys/types/capi_linux_loong64.go b/vendor/modernc.org/libc/sys/types/capi_linux_loong64.go new file mode 100644 index 000000000..29e8de38e --- /dev/null +++ b/vendor/modernc.org/libc/sys/types/capi_linux_loong64.go @@ -0,0 +1,5 @@ +// Code generated by 'ccgo sys/types/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o sys/types/types_linux_loong64.go -pkgname types', DO NOT EDIT. + +package types + +var CAPI = map[string]struct{}{} diff --git a/vendor/modernc.org/libc/sys/types/capi_linux_mips64le.go b/vendor/modernc.org/libc/sys/types/capi_linux_mips64le.go new file mode 100644 index 000000000..762800655 --- /dev/null +++ b/vendor/modernc.org/libc/sys/types/capi_linux_mips64le.go @@ -0,0 +1,5 @@ +// Code generated by 'ccgo sys/types/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o sys/types/types_linux_amd64.go -pkgname types', DO NOT EDIT. + +package types + +var CAPI = map[string]struct{}{} diff --git a/vendor/modernc.org/libc/sys/types/types_illumos_amd64.go b/vendor/modernc.org/libc/sys/types/types_illumos_amd64.go new file mode 100644 index 000000000..1792a9a9b --- /dev/null +++ b/vendor/modernc.org/libc/sys/types/types_illumos_amd64.go @@ -0,0 +1,2693 @@ +// Code generated by 'ccgo sys/types/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o sys/types/types_illumos_amd64.go -pkgname types', DO NOT EDIT. + +package types + +import ( + "math" + "reflect" + "sync/atomic" + "unsafe" +) + +var _ = math.Pi +var _ reflect.Kind +var _ atomic.Value +var _ unsafe.Pointer + +const ( + CLOCKS_PER_SEC = 1000000 // time_iso.h:78:1: + CLOCK_HIGHRES = 4 // time_impl.h:126:1: + CLOCK_MONOTONIC = 4 // time_impl.h:124:1: + CLOCK_PROCESS_CPUTIME_ID = 5 // time_impl.h:125:1: + CLOCK_PROF = 2 // time_impl.h:127:1: + CLOCK_REALTIME = 3 // time_impl.h:123:1: + CLOCK_THREAD_CPUTIME_ID = 2 // time_impl.h:122:1: + CLOCK_VIRTUAL = 1 // time_impl.h:121:1: + DST_AUST = 2 // time.h:115:1: + DST_AUSTALT = 10 // time.h:123:1: + DST_CAN = 6 // time.h:119:1: + DST_EET = 5 // time.h:118:1: + DST_GB = 7 // time.h:120:1: + DST_MET = 4 // time.h:117:1: + DST_NONE = 0 // time.h:113:1: + DST_RUM = 8 // time.h:121:1: + DST_TUR = 9 // time.h:122:1: + DST_USA = 1 // time.h:114:1: + DST_WET = 3 // time.h:116:1: + FD_SETSIZE = 65536 // select.h:88:1: + ITIMER_PROF = 2 // time.h:201:1: + ITIMER_REAL = 0 // time.h:199:1: + ITIMER_REALPROF = 3 // time.h:204:1: + ITIMER_VIRTUAL = 1 // time.h:200:1: + MICROSEC = 1000000 // time.h:246:1: + MILLISEC = 1000 // time.h:245:1: + NANOSEC = 1000000000 // time.h:247:1: + NBBY = 8 // select.h:103:1: + P_MYID = -1 // types.h:632:1: + REG_LABEL_BP = 2 // machtypes.h:44:1: + REG_LABEL_MAX = 8 // machtypes.h:51:1: + REG_LABEL_PC = 0 // machtypes.h:42:1: + REG_LABEL_R12 = 4 // machtypes.h:47:1: + REG_LABEL_R13 = 5 // machtypes.h:48:1: + REG_LABEL_R14 = 6 // machtypes.h:49:1: + REG_LABEL_R15 = 7 // machtypes.h:50:1: + REG_LABEL_RBX = 3 // machtypes.h:46:1: + REG_LABEL_SP = 1 // machtypes.h:43:1: + SEC = 1 // time.h:244:1: + TIMER_ABSTIME = 0x1 // time_impl.h:134:1: + TIMER_RELTIME = 0x0 // time_impl.h:133:1: + TIME_UTC = 0x1 // time.h:306:1: + X_ALIGNMENT_REQUIRED = 1 // isa_defs.h:262:1: + X_BIT_FIELDS_LTOH = 0 // isa_defs.h:245:1: + X_BOOL_ALIGNMENT = 1 // isa_defs.h:248:1: + X_CHAR_ALIGNMENT = 1 // isa_defs.h:249:1: + X_CHAR_IS_SIGNED = 0 // isa_defs.h:247:1: + X_CLOCKID_T = 0 // types.h:568:1: + X_CLOCK_T = 0 // types.h:563:1: + X_COND_MAGIC = 0x4356 // types.h:426:1: + X_DMA_USES_PHYSADDR = 0 // isa_defs.h:281:1: + X_DONT_USE_1275_GENERIC_NAMES = 0 // isa_defs.h:287:1: + X_DOUBLE_ALIGNMENT = 8 // isa_defs.h:256:1: + X_DOUBLE_COMPLEX_ALIGNMENT = 8 // isa_defs.h:257:1: + X_DTRACE_VERSION = 1 // feature_tests.h:490:1: + X_FILE_OFFSET_BITS = 64 // :25:1: + X_FIRMWARE_NEEDS_FDISK = 0 // isa_defs.h:282:1: + X_FLOAT_ALIGNMENT = 4 // isa_defs.h:252:1: + X_FLOAT_COMPLEX_ALIGNMENT = 4 // isa_defs.h:253:1: + X_HAVE_CPUID_INSN = 0 // isa_defs.h:288:1: + X_IEEE_754 = 0 // isa_defs.h:246:1: + X_INT64_TYPE = 0 // int_types.h:82:1: + X_INT_ALIGNMENT = 4 // isa_defs.h:251:1: + X_ISO_CPP_14882_1998 = 0 // feature_tests.h:466:1: + X_ISO_C_9899_1999 = 0 // feature_tests.h:472:1: + X_ISO_C_9899_2011 = 0 // feature_tests.h:478:1: + X_ISO_TIME_ISO_H = 0 // time_iso.h:46:1: + X_LARGEFILE64_SOURCE = 1 // feature_tests.h:231:1: + X_LARGEFILE_SOURCE = 1 // feature_tests.h:235:1: + X_LITTLE_ENDIAN = 0 // isa_defs.h:242:1: + X_LOCALE_T = 0 // time.h:291:1: + X_LONGLONG_TYPE = 0 // feature_tests.h:412:1: + X_LONG_ALIGNMENT = 8 // isa_defs.h:254:1: + X_LONG_DOUBLE_ALIGNMENT = 16 // isa_defs.h:258:1: + X_LONG_DOUBLE_COMPLEX_ALIGNMENT = 16 // isa_defs.h:259:1: + X_LONG_LONG_ALIGNMENT = 8 // isa_defs.h:255:1: + X_LONG_LONG_ALIGNMENT_32 = 4 // isa_defs.h:268:1: + X_LONG_LONG_LTOH = 0 // isa_defs.h:244:1: + X_LP64 = 1 // :286:1: + X_MAX_ALIGNMENT = 16 // isa_defs.h:261:1: + X_MULTI_DATAMODEL = 0 // isa_defs.h:279:1: + X_MUTEX_MAGIC = 0x4d58 // types.h:424:1: + X_NBBY = 8 // select.h:100:1: + X_NORETURN_KYWD = 0 // feature_tests.h:448:1: + X_OFF_T = 0 // types.h:142:1: + X_POINTER_ALIGNMENT = 8 // isa_defs.h:260:1: + X_PSM_MODULES = 0 // isa_defs.h:284:1: + X_PTRDIFF_T = 0 // types.h:112:1: + X_RESTRICT_KYWD = 0 // feature_tests.h:435:1: + X_RTC_CONFIG = 0 // isa_defs.h:285:1: + X_RWL_MAGIC = 0x5257 // types.h:427:1: + X_SEMA_MAGIC = 0x534d // types.h:425:1: + X_SHORT_ALIGNMENT = 2 // isa_defs.h:250:1: + X_SIGEVENT = 0 // time.h:132:1: + X_SIGSET_T = 0 // select.h:73:1: + X_SIGVAL = 0 // time.h:124:1: + X_SIZE_T = 0 // types.h:540:1: + X_SOFT_HOSTID = 0 // isa_defs.h:286:1: + X_SSIZE_T = 0 // types.h:549:1: + X_STACK_GROWS_DOWNWARD = 0 // isa_defs.h:243:1: + X_STDC_C11 = 0 // feature_tests.h:165:1: + X_STDC_C99 = 0 // feature_tests.h:169:1: + X_SUNOS_VTOC_16 = 0 // isa_defs.h:280:1: + X_SUSECONDS_T = 0 // types.h:343:1: + X_SYS_CCOMPILE_H = 0 // ccompile.h:32:1: + X_SYS_FEATURE_TESTS_H = 0 // feature_tests.h:41:1: + X_SYS_INT_TYPES_H = 0 // int_types.h:30:1: + X_SYS_ISA_DEFS_H = 0 // isa_defs.h:30:1: + X_SYS_MACHTYPES_H = 0 // machtypes.h:27:1: + X_SYS_NULL_H = 0 // null.h:17:1: + X_SYS_SELECT_H = 0 // select.h:45:1: + X_SYS_TIME_H = 0 // time.h:27:1: + X_SYS_TIME_IMPL_H = 0 // time_impl.h:38:1: + X_SYS_TYPES_H = 0 // types.h:35:1: + X_TIMER_T = 0 // types.h:573:1: + X_TIME_H = 0 // time.h:37:1: + X_TIME_T = 0 // types.h:558:1: + X_UID_T = 0 // types.h:400:1: + X_XOPEN_VERSION = 3 // feature_tests.h:392:1: + Sun = 1 // :172:1: + Unix = 1 // :175:1: +) + +// used for block sizes + +// The boolean_t type has had a varied amount of exposure over the years in +// terms of how its enumeration constants have been exposed. In particular, it +// originally used the __XOPEN_OR_POSIX macro to determine whether to prefix the +// B_TRUE and B_FALSE with an underscore. This check never included the +// question of if we were in a strict ANSI C environment or whether extensions +// were defined. +// +// Compilers such as clang started defaulting to always including an +// XOPEN_SOURCE declaration on behalf of users, but also noted __EXTENSIONS__. +// This would lead most software that had used the non-underscore versions to +// need it. As such, we have adjusted the non-strict XOPEN environment to retain +// its old behavior so as to minimize namespace pollution; however, we instead +// include both variants of the definitions in the generally visible version +// allowing software written in either world to hopefully end up in a good +// place. +// +// This isn't perfect, but should hopefully minimize the pain for folks actually +// trying to build software. +const ( /* types.h:215:1: */ + B_FALSE = 0 + B_TRUE = 1 + X_B_FALSE = 0 + X_B_TRUE = 1 +) + +type Ptrdiff_t = int64 /* :3:26 */ + +type Size_t = uint64 /* :9:23 */ + +type Wchar_t = int32 /* :15:24 */ + +type X__int128_t = struct { + Flo int64 + Fhi int64 +} /* :21:43 */ // must match modernc.org/mathutil.Int128 +type X__uint128_t = struct { + Flo uint64 + Fhi uint64 +} /* :22:44 */ // must match modernc.org/mathutil.Int128 + +type X__builtin_va_list = uintptr /* :46:14 */ +type X__float128 = float64 /* :47:21 */ + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2021 Oxide Computer Company + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2015 EveryCity Ltd. All rights reserved. +// Copyright 2019 Joyent, Inc. + +// This file contains definitions designed to enable different compilers +// to be used harmoniously on Solaris systems. + +// Allow for version tests for compiler bugs and features. + +// analogous to lint's PRINTFLIKEn + +// Handle the kernel printf routines that can take '%b' too + +// This one's pretty obvious -- the function never returns + +// The function is 'extern inline' and expects GNU C89 behaviour, not C99 +// behaviour. +// +// Should only be used on 'extern inline' definitions for GCC. + +// The function has control flow such that it may return multiple times (in +// the manner of setjmp or vfork) + +// This is an appropriate label for functions that do not +// modify their arguments, e.g. strlen() + +// This is a stronger form of __pure__. Can be used for functions +// that do not modify their arguments and don't depend on global +// memory. + +// This attribute, attached to a variable, means that the variable is meant to +// be possibly unused. GCC will not produce a warning for this variable. + +// Shorthand versions for readability + +// In release build, disable warnings about variables +// which are used only for debugging. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2016 Joyent, Inc. + +// This header file serves to group a set of well known defines and to +// set these for each instruction set architecture. These defines may +// be divided into two groups; characteristics of the processor and +// implementation choices for Solaris on a processor. +// +// Processor Characteristics: +// +// _LITTLE_ENDIAN / _BIG_ENDIAN: +// The natural byte order of the processor. A pointer to an int points +// to the least/most significant byte of that int. +// +// _STACK_GROWS_UPWARD / _STACK_GROWS_DOWNWARD: +// The processor specific direction of stack growth. A push onto the +// stack increases/decreases the stack pointer, so it stores data at +// successively higher/lower addresses. (Stackless machines ignored +// without regrets). +// +// _LONG_LONG_HTOL / _LONG_LONG_LTOH: +// A pointer to a long long points to the most/least significant long +// within that long long. +// +// _BIT_FIELDS_HTOL / _BIT_FIELDS_LTOH: +// The C compiler assigns bit fields from the high/low to the low/high end +// of an int (most to least significant vs. least to most significant). +// +// _IEEE_754: +// The processor (or supported implementations of the processor) +// supports the ieee-754 floating point standard. No other floating +// point standards are supported (or significant). Any other supported +// floating point formats are expected to be cased on the ISA processor +// symbol. +// +// _CHAR_IS_UNSIGNED / _CHAR_IS_SIGNED: +// The C Compiler implements objects of type `char' as `unsigned' or +// `signed' respectively. This is really an implementation choice of +// the compiler writer, but it is specified in the ABI and tends to +// be uniform across compilers for an instruction set architecture. +// Hence, it has the properties of a processor characteristic. +// +// _CHAR_ALIGNMENT / _SHORT_ALIGNMENT / _INT_ALIGNMENT / _LONG_ALIGNMENT / +// _LONG_LONG_ALIGNMENT / _DOUBLE_ALIGNMENT / _LONG_DOUBLE_ALIGNMENT / +// _POINTER_ALIGNMENT / _FLOAT_ALIGNMENT: +// The ABI defines alignment requirements of each of the primitive +// object types. Some, if not all, may be hardware requirements as +// well. The values are expressed in "byte-alignment" units. +// +// _MAX_ALIGNMENT: +// The most stringent alignment requirement as specified by the ABI. +// Equal to the maximum of all the above _XXX_ALIGNMENT values. +// +// _MAX_ALIGNMENT_TYPE: +// The name of the C type that has the value descried in _MAX_ALIGNMENT. +// +// _ALIGNMENT_REQUIRED: +// True or false (1 or 0) whether or not the hardware requires the ABI +// alignment. +// +// _LONG_LONG_ALIGNMENT_32 +// The 32-bit ABI supported by a 64-bit kernel may have different +// alignment requirements for primitive object types. The value of this +// identifier is expressed in "byte-alignment" units. +// +// _HAVE_CPUID_INSN +// This indicates that the architecture supports the 'cpuid' +// instruction as defined by Intel. (Intel allows other vendors +// to extend the instruction for their own purposes.) +// +// +// Implementation Choices: +// +// _ILP32 / _LP64: +// This specifies the compiler data type implementation as specified in +// the relevant ABI. The choice between these is strongly influenced +// by the underlying hardware, but is not absolutely tied to it. +// Currently only two data type models are supported: +// +// _ILP32: +// Int/Long/Pointer are 32 bits. This is the historical UNIX +// and Solaris implementation. Due to its historical standing, +// this is the default case. +// +// _LP64: +// Long/Pointer are 64 bits, Int is 32 bits. This is the chosen +// implementation for 64-bit ABIs such as SPARC V9. +// +// _I32LPx: +// A compilation environment where 'int' is 32-bit, and +// longs and pointers are simply the same size. +// +// In all cases, Char is 8 bits and Short is 16 bits. +// +// _SUNOS_VTOC_8 / _SUNOS_VTOC_16 / _SVR4_VTOC_16: +// This specifies the form of the disk VTOC (or label): +// +// _SUNOS_VTOC_8: +// This is a VTOC form which is upwardly compatible with the +// SunOS 4.x disk label and allows 8 partitions per disk. +// +// _SUNOS_VTOC_16: +// In this format the incore vtoc image matches the ondisk +// version. It allows 16 slices per disk, and is not +// compatible with the SunOS 4.x disk label. +// +// Note that these are not the only two VTOC forms possible and +// additional forms may be added. One possible form would be the +// SVr4 VTOC form. The symbol for that is reserved now, although +// it is not implemented. +// +// _SVR4_VTOC_16: +// This VTOC form is compatible with the System V Release 4 +// VTOC (as implemented on the SVr4 Intel and 3b ports) with +// 16 partitions per disk. +// +// +// _DMA_USES_PHYSADDR / _DMA_USES_VIRTADDR +// This describes the type of addresses used by system DMA: +// +// _DMA_USES_PHYSADDR: +// This type of DMA, used in the x86 implementation, +// requires physical addresses for DMA buffers. The 24-bit +// addresses used by some legacy boards is the source of the +// "low-memory" (<16MB) requirement for some devices using DMA. +// +// _DMA_USES_VIRTADDR: +// This method of DMA allows the use of virtual addresses for +// DMA transfers. +// +// _FIRMWARE_NEEDS_FDISK / _NO_FDISK_PRESENT +// This indicates the presence/absence of an fdisk table. +// +// _FIRMWARE_NEEDS_FDISK +// The fdisk table is required by system firmware. If present, +// it allows a disk to be subdivided into multiple fdisk +// partitions, each of which is equivalent to a separate, +// virtual disk. This enables the co-existence of multiple +// operating systems on a shared hard disk. +// +// _NO_FDISK_PRESENT +// If the fdisk table is absent, it is assumed that the entire +// media is allocated for a single operating system. +// +// _HAVE_TEM_FIRMWARE +// Defined if this architecture has the (fallback) option of +// using prom_* calls for doing I/O if a suitable kernel driver +// is not available to do it. +// +// _DONT_USE_1275_GENERIC_NAMES +// Controls whether or not device tree node names should +// comply with the IEEE 1275 "Generic Names" Recommended +// Practice. With _DONT_USE_GENERIC_NAMES, device-specific +// names identifying the particular device will be used. +// +// __i386_COMPAT +// This indicates whether the i386 ABI is supported as a *non-native* +// mode for the platform. When this symbol is defined: +// - 32-bit xstat-style system calls are enabled +// - 32-bit xmknod-style system calls are enabled +// - 32-bit system calls use i386 sizes -and- alignments +// +// Note that this is NOT defined for the i386 native environment! +// +// __x86 +// This is ONLY a synonym for defined(__i386) || defined(__amd64) +// which is useful only insofar as these two architectures share +// common attributes. Analogous to __sparc. +// +// _PSM_MODULES +// This indicates whether or not the implementation uses PSM +// modules for processor support, reading /etc/mach from inside +// the kernel to extract a list. +// +// _RTC_CONFIG +// This indicates whether or not the implementation uses /etc/rtc_config +// to configure the real-time clock in the kernel. +// +// _UNIX_KRTLD +// This indicates that the implementation uses a dynamically +// linked unix + krtld to form the core kernel image at boot +// time, or (in the absence of this symbol) a prelinked kernel image. +// +// _OBP +// This indicates the firmware interface is OBP. +// +// _SOFT_HOSTID +// This indicates that the implementation obtains the hostid +// from the file /etc/hostid, rather than from hardware. + +// The following set of definitions characterize Solaris on AMD's +// 64-bit systems. + +// Define the appropriate "processor characteristics" + +// Different alignment constraints for the i386 ABI in compatibility mode + +// Define the appropriate "implementation choices". + +// The feature test macro __i386 is generic for all processors implementing +// the Intel 386 instruction set or a superset of it. Specifically, this +// includes all members of the 386, 486, and Pentium family of processors. + +// Values of _POSIX_C_SOURCE +// +// undefined not a POSIX compilation +// 1 POSIX.1-1990 compilation +// 2 POSIX.2-1992 compilation +// 199309L POSIX.1b-1993 compilation (Real Time) +// 199506L POSIX.1c-1995 compilation (POSIX Threads) +// 200112L POSIX.1-2001 compilation (Austin Group Revision) +// 200809L POSIX.1-2008 compilation + +// The feature test macros __XOPEN_OR_POSIX, _STRICT_STDC, _STRICT_SYMBOLS, +// and _STDC_C99 are Sun implementation specific macros created in order to +// compress common standards specified feature test macros for easier reading. +// These macros should not be used by the application developer as +// unexpected results may occur. Instead, the user should reference +// standards(7) for correct usage of the standards feature test macros. +// +// __XOPEN_OR_POSIX Used in cases where a symbol is defined by both +// X/Open or POSIX or in the negative, when neither +// X/Open or POSIX defines a symbol. +// +// _STRICT_STDC __STDC__ is specified by the C Standards and defined +// by the compiler. For Sun compilers the value of +// __STDC__ is either 1, 0, or not defined based on the +// compilation mode (see cc(1)). When the value of +// __STDC__ is 1 and in the absence of any other feature +// test macros, the namespace available to the application +// is limited to only those symbols defined by the C +// Standard. _STRICT_STDC provides a more readable means +// of identifying symbols defined by the standard, or in +// the negative, symbols that are extensions to the C +// Standard. See additional comments for GNU C differences. +// +// _STDC_C99 __STDC_VERSION__ is specified by the C standards and +// defined by the compiler and indicates the version of +// the C standard. A value of 199901L indicates a +// compiler that complies with ISO/IEC 9899:1999, other- +// wise known as the C99 standard. +// +// _STDC_C11 Like _STDC_C99 except that the value of __STDC_VERSION__ +// is 201112L indicating a compiler that compiles with +// ISO/IEC 9899:2011, otherwise known as the C11 standard. +// +// _STRICT_SYMBOLS Used in cases where symbol visibility is restricted +// by the standards, and the user has not explicitly +// relaxed the strictness via __EXTENSIONS__. + +// ISO/IEC 9899:1990 and it's revisions, ISO/IEC 9899:1999 and ISO/IEC +// 99899:2011 specify the following predefined macro name: +// +// __STDC__ The integer constant 1, intended to indicate a conforming +// implementation. +// +// Furthermore, a strictly conforming program shall use only those features +// of the language and library specified in these standards. A conforming +// implementation shall accept any strictly conforming program. +// +// Based on these requirements, Sun's C compiler defines __STDC__ to 1 for +// strictly conforming environments and __STDC__ to 0 for environments that +// use ANSI C semantics but allow extensions to the C standard. For non-ANSI +// C semantics, Sun's C compiler does not define __STDC__. +// +// The GNU C project interpretation is that __STDC__ should always be defined +// to 1 for compilation modes that accept ANSI C syntax regardless of whether +// or not extensions to the C standard are used. Violations of conforming +// behavior are conditionally flagged as warnings via the use of the +// -pedantic option. In addition to defining __STDC__ to 1, the GNU C +// compiler also defines __STRICT_ANSI__ as a means of specifying strictly +// conforming environments using the -ansi or -std= options. +// +// In the absence of any other compiler options, Sun and GNU set the value +// of __STDC__ as follows when using the following options: +// +// Value of __STDC__ __STRICT_ANSI__ +// +// cc -Xa (default) 0 undefined +// cc -Xt (transitional) 0 undefined +// cc -Xc (strictly conforming) 1 undefined +// cc -Xs (K&R C) undefined undefined +// +// gcc (default) 1 undefined +// gcc -ansi, -std={c89, c99,...) 1 defined +// gcc -traditional (K&R) undefined undefined +// +// The default compilation modes for Sun C compilers versus GNU C compilers +// results in a differing value for __STDC__ which results in a more +// restricted namespace when using Sun compilers. To allow both GNU and Sun +// interpretations to peacefully co-exist, we use the following Sun +// implementation _STRICT_STDC_ macro: + +// Compiler complies with ISO/IEC 9899:1999 or ISO/IEC 9989:2011 + +// Use strict symbol visibility. + +// This is a variant of _STRICT_SYMBOLS that is meant to cover headers that are +// governed by POSIX, but have not been governed by ISO C. One can go two ways +// on what should happen if an application actively includes (not transitively) +// a header that isn't part of the ISO C spec, we opt to say that if someone has +// gone out of there way then they're doing it for a reason and that is an act +// of non-compliance and therefore it's not up to us to hide away every symbol. +// +// In general, prefer using _STRICT_SYMBOLS, but this is here in particular for +// cases where in the past we have only used a POSIX related check and we don't +// wish to make something stricter. Often applications are relying on the +// ability to, or more realistically unwittingly, have _STRICT_STDC declared and +// still use these interfaces. + +// Large file interfaces: +// +// _LARGEFILE_SOURCE +// 1 large file-related additions to POSIX +// interfaces requested (fseeko, etc.) +// _LARGEFILE64_SOURCE +// 1 transitional large-file-related interfaces +// requested (seek64, stat64, etc.) +// +// The corresponding announcement macros are respectively: +// _LFS_LARGEFILE +// _LFS64_LARGEFILE +// (These are set in .) +// +// Requesting _LARGEFILE64_SOURCE implies requesting _LARGEFILE_SOURCE as +// well. +// +// The large file interfaces are made visible regardless of the initial values +// of the feature test macros under certain circumstances: +// - If no explicit standards-conforming environment is requested (neither +// of _POSIX_SOURCE nor _XOPEN_SOURCE is defined and the value of +// __STDC__ does not imply standards conformance). +// - Extended system interfaces are explicitly requested (__EXTENSIONS__ +// is defined). +// - Access to in-kernel interfaces is requested (_KERNEL or _KMEMUSER is +// defined). (Note that this dependency is an artifact of the current +// kernel implementation and may change in future releases.) + +// Large file compilation environment control: +// +// The setting of _FILE_OFFSET_BITS controls the size of various file-related +// types and governs the mapping between file-related source function symbol +// names and the corresponding binary entry points. +// +// In the 32-bit environment, the default value is 32; if not set, set it to +// the default here, to simplify tests in other headers. +// +// In the 64-bit compilation environment, the only value allowed is 64. + +// Use of _XOPEN_SOURCE +// +// The following X/Open specifications are supported: +// +// X/Open Portability Guide, Issue 3 (XPG3) +// X/Open CAE Specification, Issue 4 (XPG4) +// X/Open CAE Specification, Issue 4, Version 2 (XPG4v2) +// X/Open CAE Specification, Issue 5 (XPG5) +// Open Group Technical Standard, Issue 6 (XPG6), also referred to as +// IEEE Std. 1003.1-2001 and ISO/IEC 9945:2002. +// Open Group Technical Standard, Issue 7 (XPG7), also referred to as +// IEEE Std. 1003.1-2008 and ISO/IEC 9945:2009. +// +// XPG4v2 is also referred to as UNIX 95 (SUS or SUSv1). +// XPG5 is also referred to as UNIX 98 or the Single Unix Specification, +// Version 2 (SUSv2) +// XPG6 is the result of a merge of the X/Open and POSIX specifications +// and as such is also referred to as IEEE Std. 1003.1-2001 in +// addition to UNIX 03 and SUSv3. +// XPG7 is also referred to as UNIX 08 and SUSv4. +// +// When writing a conforming X/Open application, as per the specification +// requirements, the appropriate feature test macros must be defined at +// compile time. These are as follows. For more info, see standards(7). +// +// Feature Test Macro Specification +// ------------------------------------------------ ------------- +// _XOPEN_SOURCE XPG3 +// _XOPEN_SOURCE && _XOPEN_VERSION = 4 XPG4 +// _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED = 1 XPG4v2 +// _XOPEN_SOURCE = 500 XPG5 +// _XOPEN_SOURCE = 600 (or POSIX_C_SOURCE=200112L) XPG6 +// _XOPEN_SOURCE = 700 (or POSIX_C_SOURCE=200809L) XPG7 +// +// In order to simplify the guards within the headers, the following +// implementation private test macros have been created. Applications +// must NOT use these private test macros as unexpected results will +// occur. +// +// Note that in general, the use of these private macros is cumulative. +// For example, the use of _XPG3 with no other restrictions on the X/Open +// namespace will make the symbols visible for XPG3 through XPG6 +// compilation environments. The use of _XPG4_2 with no other X/Open +// namespace restrictions indicates that the symbols were introduced in +// XPG4v2 and are therefore visible for XPG4v2 through XPG6 compilation +// environments, but not for XPG3 or XPG4 compilation environments. +// +// _XPG3 X/Open Portability Guide, Issue 3 (XPG3) +// _XPG4 X/Open CAE Specification, Issue 4 (XPG4) +// _XPG4_2 X/Open CAE Specification, Issue 4, Version 2 (XPG4v2/UNIX 95/SUS) +// _XPG5 X/Open CAE Specification, Issue 5 (XPG5/UNIX 98/SUSv2) +// _XPG6 Open Group Technical Standard, Issue 6 (XPG6/UNIX 03/SUSv3) +// _XPG7 Open Group Technical Standard, Issue 7 (XPG7/UNIX 08/SUSv4) + +// X/Open Portability Guide, Issue 3 + +// _XOPEN_VERSION is defined by the X/Open specifications and is not +// normally defined by the application, except in the case of an XPG4 +// application. On the implementation side, _XOPEN_VERSION defined with +// the value of 3 indicates an XPG3 application. _XOPEN_VERSION defined +// with the value of 4 indicates an XPG4 or XPG4v2 (UNIX 95) application. +// _XOPEN_VERSION defined with a value of 500 indicates an XPG5 (UNIX 98) +// application and with a value of 600 indicates an XPG6 (UNIX 03) +// application and with a value of 700 indicates an XPG7 (UNIX 08). +// The appropriate version is determined by the use of the +// feature test macros described earlier. The value of _XOPEN_VERSION +// defaults to 3 otherwise indicating support for XPG3 applications. + +// ANSI C and ISO 9899:1990 say the type long long doesn't exist in strictly +// conforming environments. ISO 9899:1999 says it does. +// +// The presence of _LONGLONG_TYPE says "long long exists" which is therefore +// defined in all but strictly conforming environments that disallow it. + +// The following macro defines a value for the ISO C99 restrict +// keyword so that _RESTRICT_KYWD resolves to "restrict" if +// an ISO C99 compiler is used, "__restrict" for c++ and "" (null string) +// if any other compiler is used. This allows for the use of single +// prototype declarations regardless of compiler version. + +// The following macro defines a value for the ISO C11 _Noreturn +// keyword so that _NORETURN_KYWD resolves to "_Noreturn" if +// an ISO C11 compiler is used and "" (null string) if any other +// compiler is used. This allows for the use of single prototype +// declarations regardless of compiler version. + +// ISO/IEC 9899:2011 Annex K + +// The following macro indicates header support for the ANSI C++ +// standard. The ISO/IEC designation for this is ISO/IEC FDIS 14882. + +// The following macro indicates header support for the C99 standard, +// ISO/IEC 9899:1999, Programming Languages - C. + +// The following macro indicates header support for the C11 standard, +// ISO/IEC 9899:2011, Programming Languages - C. + +// The following macro indicates header support for the C11 standard, +// ISO/IEC 9899:2011 Annex K, Programming Languages - C. + +// The following macro indicates header support for DTrace. The value is an +// integer that corresponds to the major version number for DTrace. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2016 Joyent, Inc. + +// Machine dependent definitions moved to . +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2007 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Machine dependent types: +// +// intel ia32 Version + +type X_label_t = struct{ Fval [8]int64 } /* machtypes.h:59:9 */ + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2021 Oxide Computer Company + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2015 EveryCity Ltd. All rights reserved. +// Copyright 2019 Joyent, Inc. + +// This file contains definitions designed to enable different compilers +// to be used harmoniously on Solaris systems. + +// Allow for version tests for compiler bugs and features. + +// analogous to lint's PRINTFLIKEn + +// Handle the kernel printf routines that can take '%b' too + +// This one's pretty obvious -- the function never returns + +// The function is 'extern inline' and expects GNU C89 behaviour, not C99 +// behaviour. +// +// Should only be used on 'extern inline' definitions for GCC. + +// The function has control flow such that it may return multiple times (in +// the manner of setjmp or vfork) + +// This is an appropriate label for functions that do not +// modify their arguments, e.g. strlen() + +// This is a stronger form of __pure__. Can be used for functions +// that do not modify their arguments and don't depend on global +// memory. + +// This attribute, attached to a variable, means that the variable is meant to +// be possibly unused. GCC will not produce a warning for this variable. + +// Shorthand versions for readability + +// In release build, disable warnings about variables +// which are used only for debugging. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2016 Joyent, Inc. + +// This header file serves to group a set of well known defines and to +// set these for each instruction set architecture. These defines may +// be divided into two groups; characteristics of the processor and +// implementation choices for Solaris on a processor. +// +// Processor Characteristics: +// +// _LITTLE_ENDIAN / _BIG_ENDIAN: +// The natural byte order of the processor. A pointer to an int points +// to the least/most significant byte of that int. +// +// _STACK_GROWS_UPWARD / _STACK_GROWS_DOWNWARD: +// The processor specific direction of stack growth. A push onto the +// stack increases/decreases the stack pointer, so it stores data at +// successively higher/lower addresses. (Stackless machines ignored +// without regrets). +// +// _LONG_LONG_HTOL / _LONG_LONG_LTOH: +// A pointer to a long long points to the most/least significant long +// within that long long. +// +// _BIT_FIELDS_HTOL / _BIT_FIELDS_LTOH: +// The C compiler assigns bit fields from the high/low to the low/high end +// of an int (most to least significant vs. least to most significant). +// +// _IEEE_754: +// The processor (or supported implementations of the processor) +// supports the ieee-754 floating point standard. No other floating +// point standards are supported (or significant). Any other supported +// floating point formats are expected to be cased on the ISA processor +// symbol. +// +// _CHAR_IS_UNSIGNED / _CHAR_IS_SIGNED: +// The C Compiler implements objects of type `char' as `unsigned' or +// `signed' respectively. This is really an implementation choice of +// the compiler writer, but it is specified in the ABI and tends to +// be uniform across compilers for an instruction set architecture. +// Hence, it has the properties of a processor characteristic. +// +// _CHAR_ALIGNMENT / _SHORT_ALIGNMENT / _INT_ALIGNMENT / _LONG_ALIGNMENT / +// _LONG_LONG_ALIGNMENT / _DOUBLE_ALIGNMENT / _LONG_DOUBLE_ALIGNMENT / +// _POINTER_ALIGNMENT / _FLOAT_ALIGNMENT: +// The ABI defines alignment requirements of each of the primitive +// object types. Some, if not all, may be hardware requirements as +// well. The values are expressed in "byte-alignment" units. +// +// _MAX_ALIGNMENT: +// The most stringent alignment requirement as specified by the ABI. +// Equal to the maximum of all the above _XXX_ALIGNMENT values. +// +// _MAX_ALIGNMENT_TYPE: +// The name of the C type that has the value descried in _MAX_ALIGNMENT. +// +// _ALIGNMENT_REQUIRED: +// True or false (1 or 0) whether or not the hardware requires the ABI +// alignment. +// +// _LONG_LONG_ALIGNMENT_32 +// The 32-bit ABI supported by a 64-bit kernel may have different +// alignment requirements for primitive object types. The value of this +// identifier is expressed in "byte-alignment" units. +// +// _HAVE_CPUID_INSN +// This indicates that the architecture supports the 'cpuid' +// instruction as defined by Intel. (Intel allows other vendors +// to extend the instruction for their own purposes.) +// +// +// Implementation Choices: +// +// _ILP32 / _LP64: +// This specifies the compiler data type implementation as specified in +// the relevant ABI. The choice between these is strongly influenced +// by the underlying hardware, but is not absolutely tied to it. +// Currently only two data type models are supported: +// +// _ILP32: +// Int/Long/Pointer are 32 bits. This is the historical UNIX +// and Solaris implementation. Due to its historical standing, +// this is the default case. +// +// _LP64: +// Long/Pointer are 64 bits, Int is 32 bits. This is the chosen +// implementation for 64-bit ABIs such as SPARC V9. +// +// _I32LPx: +// A compilation environment where 'int' is 32-bit, and +// longs and pointers are simply the same size. +// +// In all cases, Char is 8 bits and Short is 16 bits. +// +// _SUNOS_VTOC_8 / _SUNOS_VTOC_16 / _SVR4_VTOC_16: +// This specifies the form of the disk VTOC (or label): +// +// _SUNOS_VTOC_8: +// This is a VTOC form which is upwardly compatible with the +// SunOS 4.x disk label and allows 8 partitions per disk. +// +// _SUNOS_VTOC_16: +// In this format the incore vtoc image matches the ondisk +// version. It allows 16 slices per disk, and is not +// compatible with the SunOS 4.x disk label. +// +// Note that these are not the only two VTOC forms possible and +// additional forms may be added. One possible form would be the +// SVr4 VTOC form. The symbol for that is reserved now, although +// it is not implemented. +// +// _SVR4_VTOC_16: +// This VTOC form is compatible with the System V Release 4 +// VTOC (as implemented on the SVr4 Intel and 3b ports) with +// 16 partitions per disk. +// +// +// _DMA_USES_PHYSADDR / _DMA_USES_VIRTADDR +// This describes the type of addresses used by system DMA: +// +// _DMA_USES_PHYSADDR: +// This type of DMA, used in the x86 implementation, +// requires physical addresses for DMA buffers. The 24-bit +// addresses used by some legacy boards is the source of the +// "low-memory" (<16MB) requirement for some devices using DMA. +// +// _DMA_USES_VIRTADDR: +// This method of DMA allows the use of virtual addresses for +// DMA transfers. +// +// _FIRMWARE_NEEDS_FDISK / _NO_FDISK_PRESENT +// This indicates the presence/absence of an fdisk table. +// +// _FIRMWARE_NEEDS_FDISK +// The fdisk table is required by system firmware. If present, +// it allows a disk to be subdivided into multiple fdisk +// partitions, each of which is equivalent to a separate, +// virtual disk. This enables the co-existence of multiple +// operating systems on a shared hard disk. +// +// _NO_FDISK_PRESENT +// If the fdisk table is absent, it is assumed that the entire +// media is allocated for a single operating system. +// +// _HAVE_TEM_FIRMWARE +// Defined if this architecture has the (fallback) option of +// using prom_* calls for doing I/O if a suitable kernel driver +// is not available to do it. +// +// _DONT_USE_1275_GENERIC_NAMES +// Controls whether or not device tree node names should +// comply with the IEEE 1275 "Generic Names" Recommended +// Practice. With _DONT_USE_GENERIC_NAMES, device-specific +// names identifying the particular device will be used. +// +// __i386_COMPAT +// This indicates whether the i386 ABI is supported as a *non-native* +// mode for the platform. When this symbol is defined: +// - 32-bit xstat-style system calls are enabled +// - 32-bit xmknod-style system calls are enabled +// - 32-bit system calls use i386 sizes -and- alignments +// +// Note that this is NOT defined for the i386 native environment! +// +// __x86 +// This is ONLY a synonym for defined(__i386) || defined(__amd64) +// which is useful only insofar as these two architectures share +// common attributes. Analogous to __sparc. +// +// _PSM_MODULES +// This indicates whether or not the implementation uses PSM +// modules for processor support, reading /etc/mach from inside +// the kernel to extract a list. +// +// _RTC_CONFIG +// This indicates whether or not the implementation uses /etc/rtc_config +// to configure the real-time clock in the kernel. +// +// _UNIX_KRTLD +// This indicates that the implementation uses a dynamically +// linked unix + krtld to form the core kernel image at boot +// time, or (in the absence of this symbol) a prelinked kernel image. +// +// _OBP +// This indicates the firmware interface is OBP. +// +// _SOFT_HOSTID +// This indicates that the implementation obtains the hostid +// from the file /etc/hostid, rather than from hardware. + +// The following set of definitions characterize Solaris on AMD's +// 64-bit systems. + +// Define the appropriate "processor characteristics" + +// Different alignment constraints for the i386 ABI in compatibility mode + +// Define the appropriate "implementation choices". + +// The feature test macro __i386 is generic for all processors implementing +// the Intel 386 instruction set or a superset of it. Specifically, this +// includes all members of the 386, 486, and Pentium family of processors. + +// Values of _POSIX_C_SOURCE +// +// undefined not a POSIX compilation +// 1 POSIX.1-1990 compilation +// 2 POSIX.2-1992 compilation +// 199309L POSIX.1b-1993 compilation (Real Time) +// 199506L POSIX.1c-1995 compilation (POSIX Threads) +// 200112L POSIX.1-2001 compilation (Austin Group Revision) +// 200809L POSIX.1-2008 compilation + +// The feature test macros __XOPEN_OR_POSIX, _STRICT_STDC, _STRICT_SYMBOLS, +// and _STDC_C99 are Sun implementation specific macros created in order to +// compress common standards specified feature test macros for easier reading. +// These macros should not be used by the application developer as +// unexpected results may occur. Instead, the user should reference +// standards(7) for correct usage of the standards feature test macros. +// +// __XOPEN_OR_POSIX Used in cases where a symbol is defined by both +// X/Open or POSIX or in the negative, when neither +// X/Open or POSIX defines a symbol. +// +// _STRICT_STDC __STDC__ is specified by the C Standards and defined +// by the compiler. For Sun compilers the value of +// __STDC__ is either 1, 0, or not defined based on the +// compilation mode (see cc(1)). When the value of +// __STDC__ is 1 and in the absence of any other feature +// test macros, the namespace available to the application +// is limited to only those symbols defined by the C +// Standard. _STRICT_STDC provides a more readable means +// of identifying symbols defined by the standard, or in +// the negative, symbols that are extensions to the C +// Standard. See additional comments for GNU C differences. +// +// _STDC_C99 __STDC_VERSION__ is specified by the C standards and +// defined by the compiler and indicates the version of +// the C standard. A value of 199901L indicates a +// compiler that complies with ISO/IEC 9899:1999, other- +// wise known as the C99 standard. +// +// _STDC_C11 Like _STDC_C99 except that the value of __STDC_VERSION__ +// is 201112L indicating a compiler that compiles with +// ISO/IEC 9899:2011, otherwise known as the C11 standard. +// +// _STRICT_SYMBOLS Used in cases where symbol visibility is restricted +// by the standards, and the user has not explicitly +// relaxed the strictness via __EXTENSIONS__. + +// ISO/IEC 9899:1990 and it's revisions, ISO/IEC 9899:1999 and ISO/IEC +// 99899:2011 specify the following predefined macro name: +// +// __STDC__ The integer constant 1, intended to indicate a conforming +// implementation. +// +// Furthermore, a strictly conforming program shall use only those features +// of the language and library specified in these standards. A conforming +// implementation shall accept any strictly conforming program. +// +// Based on these requirements, Sun's C compiler defines __STDC__ to 1 for +// strictly conforming environments and __STDC__ to 0 for environments that +// use ANSI C semantics but allow extensions to the C standard. For non-ANSI +// C semantics, Sun's C compiler does not define __STDC__. +// +// The GNU C project interpretation is that __STDC__ should always be defined +// to 1 for compilation modes that accept ANSI C syntax regardless of whether +// or not extensions to the C standard are used. Violations of conforming +// behavior are conditionally flagged as warnings via the use of the +// -pedantic option. In addition to defining __STDC__ to 1, the GNU C +// compiler also defines __STRICT_ANSI__ as a means of specifying strictly +// conforming environments using the -ansi or -std= options. +// +// In the absence of any other compiler options, Sun and GNU set the value +// of __STDC__ as follows when using the following options: +// +// Value of __STDC__ __STRICT_ANSI__ +// +// cc -Xa (default) 0 undefined +// cc -Xt (transitional) 0 undefined +// cc -Xc (strictly conforming) 1 undefined +// cc -Xs (K&R C) undefined undefined +// +// gcc (default) 1 undefined +// gcc -ansi, -std={c89, c99,...) 1 defined +// gcc -traditional (K&R) undefined undefined +// +// The default compilation modes for Sun C compilers versus GNU C compilers +// results in a differing value for __STDC__ which results in a more +// restricted namespace when using Sun compilers. To allow both GNU and Sun +// interpretations to peacefully co-exist, we use the following Sun +// implementation _STRICT_STDC_ macro: + +// Compiler complies with ISO/IEC 9899:1999 or ISO/IEC 9989:2011 + +// Use strict symbol visibility. + +// This is a variant of _STRICT_SYMBOLS that is meant to cover headers that are +// governed by POSIX, but have not been governed by ISO C. One can go two ways +// on what should happen if an application actively includes (not transitively) +// a header that isn't part of the ISO C spec, we opt to say that if someone has +// gone out of there way then they're doing it for a reason and that is an act +// of non-compliance and therefore it's not up to us to hide away every symbol. +// +// In general, prefer using _STRICT_SYMBOLS, but this is here in particular for +// cases where in the past we have only used a POSIX related check and we don't +// wish to make something stricter. Often applications are relying on the +// ability to, or more realistically unwittingly, have _STRICT_STDC declared and +// still use these interfaces. + +// Large file interfaces: +// +// _LARGEFILE_SOURCE +// 1 large file-related additions to POSIX +// interfaces requested (fseeko, etc.) +// _LARGEFILE64_SOURCE +// 1 transitional large-file-related interfaces +// requested (seek64, stat64, etc.) +// +// The corresponding announcement macros are respectively: +// _LFS_LARGEFILE +// _LFS64_LARGEFILE +// (These are set in .) +// +// Requesting _LARGEFILE64_SOURCE implies requesting _LARGEFILE_SOURCE as +// well. +// +// The large file interfaces are made visible regardless of the initial values +// of the feature test macros under certain circumstances: +// - If no explicit standards-conforming environment is requested (neither +// of _POSIX_SOURCE nor _XOPEN_SOURCE is defined and the value of +// __STDC__ does not imply standards conformance). +// - Extended system interfaces are explicitly requested (__EXTENSIONS__ +// is defined). +// - Access to in-kernel interfaces is requested (_KERNEL or _KMEMUSER is +// defined). (Note that this dependency is an artifact of the current +// kernel implementation and may change in future releases.) + +// Large file compilation environment control: +// +// The setting of _FILE_OFFSET_BITS controls the size of various file-related +// types and governs the mapping between file-related source function symbol +// names and the corresponding binary entry points. +// +// In the 32-bit environment, the default value is 32; if not set, set it to +// the default here, to simplify tests in other headers. +// +// In the 64-bit compilation environment, the only value allowed is 64. + +// Use of _XOPEN_SOURCE +// +// The following X/Open specifications are supported: +// +// X/Open Portability Guide, Issue 3 (XPG3) +// X/Open CAE Specification, Issue 4 (XPG4) +// X/Open CAE Specification, Issue 4, Version 2 (XPG4v2) +// X/Open CAE Specification, Issue 5 (XPG5) +// Open Group Technical Standard, Issue 6 (XPG6), also referred to as +// IEEE Std. 1003.1-2001 and ISO/IEC 9945:2002. +// Open Group Technical Standard, Issue 7 (XPG7), also referred to as +// IEEE Std. 1003.1-2008 and ISO/IEC 9945:2009. +// +// XPG4v2 is also referred to as UNIX 95 (SUS or SUSv1). +// XPG5 is also referred to as UNIX 98 or the Single Unix Specification, +// Version 2 (SUSv2) +// XPG6 is the result of a merge of the X/Open and POSIX specifications +// and as such is also referred to as IEEE Std. 1003.1-2001 in +// addition to UNIX 03 and SUSv3. +// XPG7 is also referred to as UNIX 08 and SUSv4. +// +// When writing a conforming X/Open application, as per the specification +// requirements, the appropriate feature test macros must be defined at +// compile time. These are as follows. For more info, see standards(7). +// +// Feature Test Macro Specification +// ------------------------------------------------ ------------- +// _XOPEN_SOURCE XPG3 +// _XOPEN_SOURCE && _XOPEN_VERSION = 4 XPG4 +// _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED = 1 XPG4v2 +// _XOPEN_SOURCE = 500 XPG5 +// _XOPEN_SOURCE = 600 (or POSIX_C_SOURCE=200112L) XPG6 +// _XOPEN_SOURCE = 700 (or POSIX_C_SOURCE=200809L) XPG7 +// +// In order to simplify the guards within the headers, the following +// implementation private test macros have been created. Applications +// must NOT use these private test macros as unexpected results will +// occur. +// +// Note that in general, the use of these private macros is cumulative. +// For example, the use of _XPG3 with no other restrictions on the X/Open +// namespace will make the symbols visible for XPG3 through XPG6 +// compilation environments. The use of _XPG4_2 with no other X/Open +// namespace restrictions indicates that the symbols were introduced in +// XPG4v2 and are therefore visible for XPG4v2 through XPG6 compilation +// environments, but not for XPG3 or XPG4 compilation environments. +// +// _XPG3 X/Open Portability Guide, Issue 3 (XPG3) +// _XPG4 X/Open CAE Specification, Issue 4 (XPG4) +// _XPG4_2 X/Open CAE Specification, Issue 4, Version 2 (XPG4v2/UNIX 95/SUS) +// _XPG5 X/Open CAE Specification, Issue 5 (XPG5/UNIX 98/SUSv2) +// _XPG6 Open Group Technical Standard, Issue 6 (XPG6/UNIX 03/SUSv3) +// _XPG7 Open Group Technical Standard, Issue 7 (XPG7/UNIX 08/SUSv4) + +// X/Open Portability Guide, Issue 3 + +// _XOPEN_VERSION is defined by the X/Open specifications and is not +// normally defined by the application, except in the case of an XPG4 +// application. On the implementation side, _XOPEN_VERSION defined with +// the value of 3 indicates an XPG3 application. _XOPEN_VERSION defined +// with the value of 4 indicates an XPG4 or XPG4v2 (UNIX 95) application. +// _XOPEN_VERSION defined with a value of 500 indicates an XPG5 (UNIX 98) +// application and with a value of 600 indicates an XPG6 (UNIX 03) +// application and with a value of 700 indicates an XPG7 (UNIX 08). +// The appropriate version is determined by the use of the +// feature test macros described earlier. The value of _XOPEN_VERSION +// defaults to 3 otherwise indicating support for XPG3 applications. + +// ANSI C and ISO 9899:1990 say the type long long doesn't exist in strictly +// conforming environments. ISO 9899:1999 says it does. +// +// The presence of _LONGLONG_TYPE says "long long exists" which is therefore +// defined in all but strictly conforming environments that disallow it. + +// The following macro defines a value for the ISO C99 restrict +// keyword so that _RESTRICT_KYWD resolves to "restrict" if +// an ISO C99 compiler is used, "__restrict" for c++ and "" (null string) +// if any other compiler is used. This allows for the use of single +// prototype declarations regardless of compiler version. + +// The following macro defines a value for the ISO C11 _Noreturn +// keyword so that _NORETURN_KYWD resolves to "_Noreturn" if +// an ISO C11 compiler is used and "" (null string) if any other +// compiler is used. This allows for the use of single prototype +// declarations regardless of compiler version. + +// ISO/IEC 9899:2011 Annex K + +// The following macro indicates header support for the ANSI C++ +// standard. The ISO/IEC designation for this is ISO/IEC FDIS 14882. + +// The following macro indicates header support for the C99 standard, +// ISO/IEC 9899:1999, Programming Languages - C. + +// The following macro indicates header support for the C11 standard, +// ISO/IEC 9899:2011, Programming Languages - C. + +// The following macro indicates header support for the C11 standard, +// ISO/IEC 9899:2011 Annex K, Programming Languages - C. + +// The following macro indicates header support for DTrace. The value is an +// integer that corresponds to the major version number for DTrace. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2016 Joyent, Inc. + +// Machine dependent definitions moved to . +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2007 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Machine dependent types: +// +// intel ia32 Version + +type Label_t = X_label_t /* machtypes.h:59:54 */ + +type Lock_t = uint8 /* machtypes.h:63:23 */ // lock work for busy wait + +// Include fixed width type declarations proposed by the ISO/JTC1/SC22/WG14 C +// committee's working draft for the revision of the current ISO C standard, +// ISO/IEC 9899:1990 Programming language - C. These are not currently +// required by any standard but constitute a useful, general purpose set +// of type definitions which is namespace clean with respect to all standards. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2014 Garrett D'Amore +// +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// This file, , is part of the Sun Microsystems implementation +// of defined in the ISO C standard, ISO/IEC 9899:1999 +// Programming language - C. +// +// Programs/Modules should not directly include this file. Access to the +// types defined in this file should be through the inclusion of one of the +// following files: +// +// Provides only the "_t" types defined in this +// file which is a subset of the contents of +// . (This can be appropriate for +// all programs/modules except those claiming +// ANSI-C conformance.) +// +// Provides the Kernel and Driver appropriate +// components of . +// +// For use by applications. +// +// See these files for more details. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Basic / Extended integer types +// +// The following defines the basic fixed-size integer types. +// +// Implementations are free to typedef them to Standard C integer types or +// extensions that they support. If an implementation does not support one +// of the particular integer data types below, then it should not define the +// typedefs and macros corresponding to that data type. Note that int8_t +// is not defined in -Xs mode on ISAs for which the ABI specifies "char" +// as an unsigned entity because there is no way to define an eight bit +// signed integral. +type Int8_t = int8 /* int_types.h:75:16 */ +type Int16_t = int16 /* int_types.h:79:17 */ +type Int32_t = int32 /* int_types.h:80:15 */ +type Int64_t = int64 /* int_types.h:83:16 */ + +type Uint8_t = uint8 /* int_types.h:91:24 */ +type Uint16_t = uint16 /* int_types.h:92:25 */ +type Uint32_t = uint32 /* int_types.h:93:23 */ +type Uint64_t = uint64 /* int_types.h:95:24 */ + +// intmax_t and uintmax_t are to be the longest (in number of bits) signed +// and unsigned integer types supported by the implementation. +type Intmax_t = int64 /* int_types.h:107:19 */ +type Uintmax_t = uint64 /* int_types.h:108:19 */ + +// intptr_t and uintptr_t are signed and unsigned integer types large enough +// to hold any data pointer; that is, data pointers can be assigned into or +// from these integer types without losing precision. +type Intptr_t = int64 /* int_types.h:120:16 */ +type Uintptr_t = uint64 /* int_types.h:121:24 */ + +// The following define the fastest integer types that can hold the +// specified number of bits. +type Int_fast8_t = int8 /* int_types.h:132:16 */ +type Int_fast16_t = int32 /* int_types.h:136:15 */ +type Int_fast32_t = int32 /* int_types.h:137:15 */ +type Int_fast64_t = int64 /* int_types.h:139:16 */ + +type Uint_fast8_t = uint8 /* int_types.h:146:24 */ +type Uint_fast16_t = uint32 /* int_types.h:147:23 */ +type Uint_fast32_t = uint32 /* int_types.h:148:23 */ +type Uint_fast64_t = uint64 /* int_types.h:150:24 */ + +// The following define the smallest integer types that can hold the +// specified number of bits. +type Int_least8_t = int8 /* int_types.h:162:16 */ +type Int_least16_t = int16 /* int_types.h:166:17 */ +type Int_least32_t = int32 /* int_types.h:167:15 */ +type Int_least64_t = int64 /* int_types.h:169:16 */ + +// If these are changed, please update char16_t and char32_t in head/uchar.h. +type Uint_least8_t = uint8 /* int_types.h:179:24 */ +type Uint_least16_t = uint16 /* int_types.h:180:25 */ +type Uint_least32_t = uint32 /* int_types.h:181:23 */ +type Uint_least64_t = uint64 /* int_types.h:183:24 */ + +// Strictly conforming ANSI C environments prior to the 1999 +// revision of the C Standard (ISO/IEC 9899:1999) do not have +// the long long data type. +type Longlong_t = int64 /* types.h:72:20 */ +type U_longlong_t = uint64 /* types.h:73:28 */ + +// These types (t_{u}scalar_t) exist because the XTI/TPI/DLPI standards had +// to use them instead of int32_t and uint32_t because DEC had +// shipped 64-bit wide. +type T_scalar_t = int32 /* types.h:92:18 */ +type T_uscalar_t = uint32 /* types.h:93:18 */ + +// POSIX Extensions +type Uchar_t = uint8 /* types.h:102:23 */ +type Ushort_t = uint16 /* types.h:103:24 */ +type Uint_t = uint32 /* types.h:104:22 */ +type Ulong_t = uint64 /* types.h:105:23 */ + +type Caddr_t = uintptr /* types.h:107:15 */ // ? type +type Daddr_t = int64 /* types.h:108:15 */ // type +type Cnt_t = int16 /* types.h:109:16 */ // pointer difference + +// VM-related types +type Pfn_t = uint64 /* types.h:123:18 */ // page frame number +type Pgcnt_t = uint64 /* types.h:124:18 */ // number of pages +type Spgcnt_t = int64 /* types.h:125:15 */ // signed number of pages + +type Use_t = uint8 /* types.h:127:18 */ // use count for swap. +type Sysid_t = int16 /* types.h:128:16 */ +type Index_t = int16 /* types.h:129:16 */ +type Timeout_id_t = uintptr /* types.h:130:15 */ // opaque handle from timeout(9F) +type Bufcall_id_t = uintptr /* types.h:131:15 */ // opaque handle from bufcall(9F) + +// The size of off_t and related types depends on the setting of +// _FILE_OFFSET_BITS. (Note that other system headers define other types +// related to those defined here.) +// +// If _LARGEFILE64_SOURCE is defined, variants of these types that are +// explicitly 64 bits wide become available. + +type Off_t = int64 /* types.h:145:15 */ // offsets within files + +type Off64_t = int64 /* types.h:152:16 */ // offsets within files + +type Ino_t = uint64 /* types.h:161:18 */ // expanded inode type +type Blkcnt_t = int64 /* types.h:162:15 */ // count of file blocks +type Fsblkcnt_t = uint64 /* types.h:163:18 */ // count of file system blocks +type Fsfilcnt_t = uint64 /* types.h:164:18 */ // count of files + +type Ino64_t = uint64 /* types.h:174:16 */ // expanded inode type +type Blkcnt64_t = int64 /* types.h:175:18 */ // count of file blocks +type Fsblkcnt64_t = uint64 /* types.h:176:20 */ // count of file system blocks +type Fsfilcnt64_t = uint64 /* types.h:177:20 */ // count of files + +type Blksize_t = int32 /* types.h:187:14 */ // used for block sizes + +// The boolean_t type has had a varied amount of exposure over the years in +// terms of how its enumeration constants have been exposed. In particular, it +// originally used the __XOPEN_OR_POSIX macro to determine whether to prefix the +// B_TRUE and B_FALSE with an underscore. This check never included the +// question of if we were in a strict ANSI C environment or whether extensions +// were defined. +// +// Compilers such as clang started defaulting to always including an +// XOPEN_SOURCE declaration on behalf of users, but also noted __EXTENSIONS__. +// This would lead most software that had used the non-underscore versions to +// need it. As such, we have adjusted the non-strict XOPEN environment to retain +// its old behavior so as to minimize namespace pollution; however, we instead +// include both variants of the definitions in the generally visible version +// allowing software written in either world to hopefully end up in a good +// place. +// +// This isn't perfect, but should hopefully minimize the pain for folks actually +// trying to build software. +type Boolean_t = uint32 /* types.h:215:69 */ + +// The {u,}pad64_t types can be used in structures such that those structures +// may be accessed by code produced by compilation environments which don't +// support a 64 bit integral datatype. The intention is not to allow +// use of these fields in such environments, but to maintain the alignment +// and offsets of the structure. +// +// Similar comments for {u,}pad128_t. +// +// Note that these types do NOT generate any stronger alignment constraints +// than those available in the underlying ABI. See +type Pad64_t = int64 /* types.h:240:18 */ +type Upad64_t = uint64 /* types.h:241:18 */ + +type Pad128_t = struct { + F_q float64 + F__ccgo_pad1 [8]byte +} /* types.h:257:3 */ + +type Upad128_t = struct { + F_q float64 + F__ccgo_pad1 [8]byte +} /* types.h:262:3 */ + +type Offset_t = int64 /* types.h:264:20 */ +type U_offset_t = uint64 /* types.h:265:22 */ +type Len_t = uint64 /* types.h:266:22 */ +type Diskaddr_t = uint64 /* types.h:267:22 */ + +// Definitions remaining from previous partial support for 64-bit file +// offsets. This partial support for devices greater than 2gb requires +// compiler support for long long. +type Lloff_t = struct{ F_f int64 } /* types.h:284:3 */ + +type Lldaddr_t = struct{ F_f int64 } /* types.h:304:3 */ + +type K_fltset_t = uint32 /* types.h:317:16 */ // kernel fault set type + +// The following type is for various kinds of identifiers. The +// actual type must be the same for all since some system calls +// (such as sigsend) take arguments that may be any of these +// types. The enumeration type idtype_t defined in sys/procset.h +// is used to indicate what type of id is being specified -- +// a process id, process group id, session id, scheduling class id, +// user id, group id, project id, task id or zone id. +type Id_t = int32 /* types.h:329:14 */ + +type Lgrp_id_t = int32 /* types.h:334:15 */ // lgroup ID + +// Type useconds_t is an unsigned integral type capable of storing +// values at least in the range of zero to 1,000,000. +type Useconds_t = uint32 /* types.h:340:17 */ // Time, in microseconds + +type Suseconds_t = int64 /* types.h:344:14 */ // signed # of microseconds + +// Typedefs for dev_t components. +type Major_t = uint32 /* types.h:351:16 */ // major part of device number +type Minor_t = uint32 /* types.h:352:16 */ // minor part of device number + +// The data type of a thread priority. +type Pri_t = int16 /* types.h:361:15 */ + +// The data type for a CPU flags field. (Can be extended to larger unsigned +// types, if needed, limited by ability to update atomically.) +type Cpu_flag_t = uint16 /* types.h:367:18 */ + +// For compatibility reasons the following typedefs (prefixed o_) +// can't grow regardless of the EFT definition. Although, +// applications should not explicitly use these typedefs +// they may be included via a system header definition. +// WARNING: These typedefs may be removed in a future +// release. +// +// ex. the definitions in s5inode.h (now obsoleted) +// remained small to preserve compatibility +// in the S5 file system type. +type O_mode_t = uint16 /* types.h:380:18 */ // old file attribute type +type O_dev_t = int16 /* types.h:381:15 */ // old device type +type O_uid_t = uint16 /* types.h:382:18 */ // old UID type +type O_gid_t = uint16 /* types.h:383:17 */ // old GID type +type O_nlink_t = int16 /* types.h:384:15 */ // old file link type +type O_pid_t = int16 /* types.h:385:15 */ // old process id type +type O_ino_t = uint16 /* types.h:386:18 */ // old inode type + +// POSIX and XOPEN Declarations +type Key_t = int32 /* types.h:392:13 */ // IPC key type +type Mode_t = uint32 /* types.h:394:16 */ // file attribute type + +type Uid_t = uint32 /* types.h:401:22 */ // UID type + +type Gid_t = uint32 /* types.h:404:15 */ // GID type + +type Datalink_id_t = uint32 /* types.h:406:18 */ +type Vrid_t = uint32 /* types.h:407:18 */ + +type Taskid_t = int32 /* types.h:409:17 */ +type Projid_t = int32 /* types.h:410:17 */ +type Poolid_t = int32 /* types.h:411:14 */ +type Zoneid_t = int32 /* types.h:412:14 */ +type Ctid_t = int32 /* types.h:413:14 */ + +// POSIX definitions are same as defined in thread.h and synch.h. +// Any changes made to here should be reflected in corresponding +// files as described in comments. +type Pthread_t = uint32 /* types.h:420:16 */ // = thread_t in thread.h +type Pthread_key_t = uint32 /* types.h:421:16 */ // = thread_key_t in thread.h + +// "Magic numbers" tagging synchronization object types + +type X_pthread_mutex = struct { + F__pthread_mutex_flags struct { + F__pthread_mutex_flag1 uint16 + F__pthread_mutex_flag2 uint8 + F__pthread_mutex_ceiling uint8 + F__pthread_mutex_type uint16 + F__pthread_mutex_magic uint16 + } + F__pthread_mutex_lock struct { + F__ccgo_pad1 [0]uint64 + F__pthread_mutex_lock64 struct{ F__pthread_mutex_pad [8]uint8 } + } + F__pthread_mutex_data uint64 +} /* types.h:429:9 */ + +// = thread_key_t in thread.h + +// "Magic numbers" tagging synchronization object types + +type Pthread_mutex_t = X_pthread_mutex /* types.h:448:3 */ + +type X_pthread_cond = struct { + F__pthread_cond_flags struct { + F__pthread_cond_flag [4]uint8 + F__pthread_cond_type uint16 + F__pthread_cond_magic uint16 + } + F__pthread_cond_data uint64 +} /* types.h:450:9 */ + +type Pthread_cond_t = X_pthread_cond /* types.h:457:3 */ + +// UNIX 98 Extension +type X_pthread_rwlock = struct { + F__pthread_rwlock_readers int32 + F__pthread_rwlock_type uint16 + F__pthread_rwlock_magic uint16 + F__pthread_rwlock_mutex Pthread_mutex_t + F__pthread_rwlock_readercv Pthread_cond_t + F__pthread_rwlock_writercv Pthread_cond_t +} /* types.h:462:9 */ + +// UNIX 98 Extension +type Pthread_rwlock_t = X_pthread_rwlock /* types.h:469:3 */ + +// SUSV3 +type Pthread_barrier_t = struct { + F__pthread_barrier_count uint32 + F__pthread_barrier_current uint32 + F__pthread_barrier_cycle uint64 + F__pthread_barrier_reserved uint64 + F__pthread_barrier_lock Pthread_mutex_t + F__pthread_barrier_cond Pthread_cond_t +} /* types.h:481:3 */ + +type Pthread_spinlock_t = Pthread_mutex_t /* types.h:483:25 */ + +// attributes for threads, dynamically allocated by library +type X_pthread_attr = struct{ F__pthread_attrp uintptr } /* types.h:488:9 */ + +// attributes for threads, dynamically allocated by library +type Pthread_attr_t = X_pthread_attr /* types.h:490:3 */ + +// attributes for mutex, dynamically allocated by library +type X_pthread_mutexattr = struct{ F__pthread_mutexattrp uintptr } /* types.h:495:9 */ + +// attributes for mutex, dynamically allocated by library +type Pthread_mutexattr_t = X_pthread_mutexattr /* types.h:497:3 */ + +// attributes for cond, dynamically allocated by library +type X_pthread_condattr = struct{ F__pthread_condattrp uintptr } /* types.h:502:9 */ + +// attributes for cond, dynamically allocated by library +type Pthread_condattr_t = X_pthread_condattr /* types.h:504:3 */ + +// pthread_once +type X_once = struct{ F__pthread_once_pad [4]uint64 } /* types.h:509:9 */ + +// pthread_once +type Pthread_once_t = X_once /* types.h:511:3 */ + +// UNIX 98 Extensions +// attributes for rwlock, dynamically allocated by library +type X_pthread_rwlockattr = struct{ F__pthread_rwlockattrp uintptr } /* types.h:517:9 */ + +// UNIX 98 Extensions +// attributes for rwlock, dynamically allocated by library +type Pthread_rwlockattr_t = X_pthread_rwlockattr /* types.h:519:3 */ + +// SUSV3 +// attributes for pthread_barrier_t, dynamically allocated by library +type Pthread_barrierattr_t = struct{ F__pthread_barrierattrp uintptr } /* types.h:527:3 */ + +type Dev_t = uint64 /* types.h:529:17 */ // expanded device type + +type Nlink_t = uint32 /* types.h:532:16 */ // file link type +type Pid_t = int32 /* types.h:533:13 */ // size of something in bytes + +type Ssize_t = int64 /* types.h:551:14 */ // size of something in bytes or -1 + +type Time_t = int64 /* types.h:559:15 */ // time of day in seconds + +type Clock_t = int64 /* types.h:564:15 */ // relative time in a specified resolution + +type Clockid_t = int32 /* types.h:569:13 */ // clock identifier type + +type Timer_t = int32 /* types.h:574:13 */ // timer identifier type + +// BEGIN CSTYLED +type Unchar = uint8 /* types.h:580:23 */ +type Ushort = uint16 /* types.h:581:24 */ +type Uint = uint32 /* types.h:582:22 */ +type Ulong = uint64 /* types.h:583:23 */ +// END CSTYLED + +// The following is the value of type id_t to use to indicate the +// caller's current id. See procset.h for the type idtype_t +// which defines which kind of id is being specified. + +// The following value of type pfn_t is used to indicate +// invalid page frame number. + +// BEGIN CSTYLED +type U_char = uint8 /* types.h:650:23 */ +type U_short = uint16 /* types.h:651:24 */ +type U_int = uint32 /* types.h:652:22 */ +type U_long = uint64 /* types.h:653:23 */ +type X_quad = struct{ Fval [2]int32 } /* types.h:654:9 */ + +type Quad_t = X_quad /* types.h:654:38 */ // used by UFS +type Quad = Quad_t /* types.h:655:17 */ // used by UFS +// END CSTYLED + +// Nested include for BSD/sockets source compatibility. +// (The select macros used to be defined here). +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// +// Copyright 2010 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// University Copyright- Copyright (c) 1982, 1986, 1988 +// The Regents of the University of California +// All Rights Reserved +// +// University Acknowledgment- Portions of this document are derived from +// software developed by the University of California, Berkeley, and its +// contributors. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2005 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Implementation-private. This header should not be included +// directly by an application. The application should instead +// include which includes this header conditionally +// depending on which feature test macros are defined. By default, +// this header is included by . X/Open and POSIX +// standards requirements result in this header being included +// by only under a restricted set of conditions. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Time expressed in seconds and nanoseconds + +type Timespec = struct { + Ftv_sec int64 + Ftv_nsec int64 +} /* time_impl.h:57:9 */ + +// used by UFS +// END CSTYLED + +// Nested include for BSD/sockets source compatibility. +// (The select macros used to be defined here). +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// +// Copyright 2010 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// University Copyright- Copyright (c) 1982, 1986, 1988 +// The Regents of the University of California +// All Rights Reserved +// +// University Acknowledgment- Portions of this document are derived from +// software developed by the University of California, Berkeley, and its +// contributors. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2005 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Implementation-private. This header should not be included +// directly by an application. The application should instead +// include which includes this header conditionally +// depending on which feature test macros are defined. By default, +// this header is included by . X/Open and POSIX +// standards requirements result in this header being included +// by only under a restricted set of conditions. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Time expressed in seconds and nanoseconds + +type Timespec_t = Timespec /* time_impl.h:60:3 */ + +type Timestruc_t = Timespec /* time_impl.h:81:25 */ // definition per SVr4 + +// The following has been left in for backward compatibility. Portable +// applications should not use the structure name timestruc. + +// Timer specification +type Itimerspec = struct { + Fit_interval struct { + Ftv_sec int64 + Ftv_nsec int64 + } + Fit_value struct { + Ftv_sec int64 + Ftv_nsec int64 + } +} /* time_impl.h:95:9 */ + +// definition per SVr4 + +// The following has been left in for backward compatibility. Portable +// applications should not use the structure name timestruc. + +// Timer specification +type Itimerspec_t = Itimerspec /* time_impl.h:98:3 */ + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright (c) 1982, 1986, 1993 Regents of the University of California. +// All rights reserved. The Berkeley software License Agreement +// specifies the terms and conditions for redistribution. + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2020 OmniOS Community Edition (OmniOSce) Association. + +// Copyright (c) 2013, 2016 by Delphix. All rights reserved. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Structure returned by gettimeofday(2) system call, +// and used in other calls. + +type Timeval = struct { + Ftv_sec int64 + Ftv_usec int64 +} /* time.h:54:1 */ + +type Timezone = struct { + Ftz_minuteswest int32 + Ftz_dsttime int32 +} /* time.h:86:1 */ + +// Needed for longlong_t type. Placement of this due to +// including which relies on the presense of the itimerval +// structure. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2021 Oxide Computer Company + +// Operations on timevals. + +// Names of the interval timers, and structure +// defining a timer setting. +// time and when system is running on +// behalf of the process. +// time profiling of multithreaded +// programs. + +type Itimerval = struct { + Fit_interval struct { + Ftv_sec int64 + Ftv_usec int64 + } + Fit_value struct { + Ftv_sec int64 + Ftv_usec int64 + } +} /* time.h:209:1 */ + +// Definitions for commonly used resolutions. + +// Time expressed as a 64-bit nanosecond counter. +type Hrtime_t = int64 /* time.h:265:20 */ + +// The inclusion of is historical and was added for +// backward compatibility in delta 1.2 when a number of definitions +// were moved out of . More recently, the timespec and +// itimerspec structure definitions, along with the _CLOCK_*, CLOCK_*, +// _TIMER_*, and TIMER_* symbols were moved to , +// which is now included by . This change was due to POSIX +// 1003.1b-1993 and X/Open UNIX 98 requirements. For non-POSIX and +// non-X/Open applications, including this header will still make +// visible these definitions. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1988 AT&T +// All Rights Reserved + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2007 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2010 Nexenta Systems, Inc. Al rights reserved. +// Copyright 2016 Joyent, Inc. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1988 AT&T +// All Rights Reserved + +// Copyright 2014 Garrett D'Amore +// Copyright 2014 PALO, Richard. +// +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// An application should not include this header directly. Instead it +// should be included only through the inclusion of other Sun headers. +// +// The contents of this header is limited to identifiers specified in the +// C Standard. Any new identifiers specified in future amendments to the +// C Standard must be placed in this header. If these new identifiers +// are required to also be in the C++ Standard "std" namespace, then for +// anything other than macro definitions, corresponding "using" directives +// must also be added to . + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// This file and its contents are supplied under the terms of the +// Common Development and Distribution License ("CDDL"), version 1.0. +// You may only use this file in accordance with the terms of version +// 1.0 of the CDDL. +// +// A full copy of the text of the CDDL should have accompanied this +// source. A copy of the CDDL is also available via the Internet at +// http://www.illumos.org/license/CDDL. + +// Copyright 2014-2016 PALO, Richard. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// POSIX.1-2008 requires that the NULL macro be cast to type void *. + +type Tm = struct { + Ftm_sec int32 + Ftm_min int32 + Ftm_hour int32 + Ftm_mday int32 + Ftm_mon int32 + Ftm_year int32 + Ftm_wday int32 + Ftm_yday int32 + Ftm_isdst int32 +} /* time_iso.h:80:1 */ + +// Neither X/Open nor POSIX allow the inclusion of for the +// definition of the sigevent structure. Both require the inclusion +// of and when using the timer_create() function. +// However, X/Open also specifies that the sigevent structure be defined +// in as described in the header . This prevents +// compiler warnings for applications that only include and not +// also . The sigval union and the sigevent structure is +// therefore defined both here and in which gets included +// via inclusion of . +type Sigval = struct { + F__ccgo_pad1 [0]uint64 + Fsival_int int32 + F__ccgo_pad2 [4]byte +} /* time.h:125:1 */ + +type Sigevent = struct { + Fsigev_notify int32 + Fsigev_signo int32 + Fsigev_value struct { + F__ccgo_pad1 [0]uint64 + Fsival_int int32 + F__ccgo_pad2 [4]byte + } + Fsigev_notify_function uintptr + Fsigev_notify_attributes uintptr + F__sigev_pad2 int32 + F__ccgo_pad1 [4]byte +} /* time.h:133:1 */ + +type Locale_t = uintptr /* time.h:292:24 */ + +// The inclusion of is needed for the FD_CLR, +// FD_ISSET, FD_SET, and FD_SETSIZE macros as well as the +// select() prototype defined in the XOpen specifications +// beginning with XSH4v2. Placement required after definition +// for itimerval. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// +// Copyright 2010 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// University Copyright- Copyright (c) 1982, 1986, 1988 +// The Regents of the University of California +// All Rights Reserved +// +// University Acknowledgment- Portions of this document are derived from +// software developed by the University of California, Berkeley, and its +// contributors. + +// The sigset_t type is defined in and duplicated +// in as a result of XPG4v2 requirements. XPG6 +// now allows the visibility of signal.h in this header, however +// an order of inclusion problem occurs as a result of inclusion +// of in under certain conditions. +// Rather than include here, we've duplicated +// the sigset_t type instead. This type is required for the XPG6 +// introduced pselect() function also declared in this header. +type Sigset_t = struct{ F__sigbits [4]uint32 } /* select.h:76:3 */ + +// Select uses bit masks of file descriptors in longs. +// These macros manipulate such bit fields. +// FD_SETSIZE may be defined by the user, but the default here +// should be >= RLIM_FD_MAX. + +type Fd_mask = int64 /* select.h:92:14 */ +type Fds_mask = int64 /* select.h:94:14 */ + +// The value of _NBBY needs to be consistant with the value +// of NBBY in . + +type Fd_set1 = struct{ Ffds_bits [1024]int64 } /* select.h:120:9 */ + +// The value of _NBBY needs to be consistant with the value +// of NBBY in . + +type Fd_set = Fd_set1 /* select.h:125:3 */ + +// _VOID was defined to be either void or char but this is not +// required because previous SunOS compilers have accepted the void +// type. However, because many system header and source files use the +// void keyword, the volatile keyword, and ANSI C function prototypes, +// non-ANSI compilers cannot compile the system anyway. The _VOID macro +// should therefore not be used and remains for source compatibility +// only. +// CSTYLED + +var _ int8 /* gen.c:2:13: */ diff --git a/vendor/modernc.org/libc/sys/types/types_linux_loong64.go b/vendor/modernc.org/libc/sys/types/types_linux_loong64.go new file mode 100644 index 000000000..dec9daa5a --- /dev/null +++ b/vendor/modernc.org/libc/sys/types/types_linux_loong64.go @@ -0,0 +1,1658 @@ +// Code generated by 'ccgo sys/types/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o sys/types/types_linux_loong64.go -pkgname types', DO NOT EDIT. + +package types + +import ( + "math" + "reflect" + "sync/atomic" + "unsafe" +) + +var _ = math.Pi +var _ reflect.Kind +var _ atomic.Value +var _ unsafe.Pointer + +const ( + BIG_ENDIAN = 4321 // endian.h:28:1: + BYTE_ORDER = 1234 // endian.h:30:1: + FD_SETSIZE = 1024 // select.h:73:1: + LITTLE_ENDIAN = 1234 // endian.h:27:1: + PDP_ENDIAN = 3412 // endian.h:29:1: + X_ABILP64 = 3 // :377:1: + X_ATFILE_SOURCE = 1 // features.h:353:1: + X_BITS_ATOMIC_WIDE_COUNTER_H = 0 // atomic_wide_counter.h:20:1: + X_BITS_BYTESWAP_H = 1 // byteswap.h:24:1: + X_BITS_ENDIANNESS_H = 1 // endianness.h:2:1: + X_BITS_ENDIAN_H = 1 // endian.h:20:1: + X_BITS_PTHREADTYPES_ARCH_H = 1 // pthreadtypes-arch.h:21:1: + X_BITS_PTHREADTYPES_COMMON_H = 1 // pthreadtypes.h:20:1: + X_BITS_STDINT_INTN_H = 1 // stdint-intn.h:20:1: + X_BITS_TIME64_H = 1 // time64.h:24:1: + X_BITS_TYPESIZES_H = 1 // typesizes.h:24:1: + X_BITS_TYPES_H = 1 // types.h:24:1: + X_BITS_UINTN_IDENTITY_H = 1 // uintn-identity.h:24:1: + X_BSD_SIZE_T_ = 0 // stddef.h:193:1: + X_BSD_SIZE_T_DEFINED_ = 0 // stddef.h:196:1: + X_DEFAULT_SOURCE = 1 // features.h:238:1: + X_ENDIAN_H = 1 // endian.h:19:1: + X_FEATURES_H = 1 // features.h:19:1: + X_FILE_OFFSET_BITS = 64 // :25:1: + X_GCC_SIZE_T = 0 // stddef.h:200:1: + X_LOONGARCH_ARCH = "loongarch64" // :214:1: + X_LOONGARCH_ARCH_LOONGARCH64 = 1 // :340:1: + X_LOONGARCH_FPSET = 32 // :265:1: + X_LOONGARCH_SIM = 3 // :233:1: + X_LOONGARCH_SPFPSET = 32 // :88:1: + X_LOONGARCH_SZINT = 32 // :230:1: + X_LOONGARCH_SZLONG = 64 // :388:1: + X_LOONGARCH_SZPTR = 64 // :200:1: + X_LOONGARCH_TUNE = "la464" // :245:1: + X_LOONGARCH_TUNE_LA464 = 1 // :63:1: + X_LP64 = 1 // :372:1: + X_POSIX_C_SOURCE = 200809 // features.h:292:1: + X_POSIX_SOURCE = 1 // features.h:290:1: + X_SIZET_ = 0 // stddef.h:201:1: + X_SIZE_T = 0 // stddef.h:187:1: + X_SIZE_T_ = 0 // stddef.h:192:1: + X_SIZE_T_DECLARED = 0 // stddef.h:197:1: + X_SIZE_T_DEFINED = 0 // stddef.h:195:1: + X_SIZE_T_DEFINED_ = 0 // stddef.h:194:1: + X_STDC_PREDEF_H = 1 // :223:1: + X_STRUCT_TIMESPEC = 1 // struct_timespec.h:3:1: + X_SYS_CDEFS_H = 1 // cdefs.h:20:1: + X_SYS_SELECT_H = 1 // select.h:22:1: + X_SYS_SIZE_T_H = 0 // stddef.h:188:1: + X_SYS_TYPES_H = 1 // types.h:23:1: + X_THREAD_MUTEX_INTERNAL_H = 1 // struct_mutex.h:20:1: + X_THREAD_SHARED_TYPES_H = 1 // thread-shared-types.h:20:1: + X_T_SIZE = 0 // stddef.h:190:1: + X_T_SIZE_ = 0 // stddef.h:189:1: + Linux = 1 // :308:1: + Unix = 1 // :247:1: +) + +type Ptrdiff_t = int64 /* :3:26 */ + +type Size_t = uint64 /* :9:23 */ + +type Wchar_t = int32 /* :15:24 */ + +type X__int128_t = struct { + Flo int64 + Fhi int64 +} /* :21:43 */ // must match modernc.org/mathutil.Int128 +type X__uint128_t = struct { + Flo uint64 + Fhi uint64 +} /* :22:44 */ // must match modernc.org/mathutil.Int128 + +type X__builtin_va_list = uintptr /* :46:14 */ +type X__float128 = float64 /* :47:21 */ + +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// POSIX Standard: 2.6 Primitive System Data Types + +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// These are defined by the user (or the compiler) +// to specify the desired environment: +// +// __STRICT_ANSI__ ISO Standard C. +// _ISOC99_SOURCE Extensions to ISO C89 from ISO C99. +// _ISOC11_SOURCE Extensions to ISO C99 from ISO C11. +// _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X. +// __STDC_WANT_LIB_EXT2__ +// Extensions to ISO C99 from TR 27431-2:2010. +// __STDC_WANT_IEC_60559_BFP_EXT__ +// Extensions to ISO C11 from TS 18661-1:2014. +// __STDC_WANT_IEC_60559_FUNCS_EXT__ +// Extensions to ISO C11 from TS 18661-4:2015. +// __STDC_WANT_IEC_60559_TYPES_EXT__ +// Extensions to ISO C11 from TS 18661-3:2015. +// __STDC_WANT_IEC_60559_EXT__ +// ISO C2X interfaces defined only in Annex F. +// +// _POSIX_SOURCE IEEE Std 1003.1. +// _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2; +// if >=199309L, add IEEE Std 1003.1b-1993; +// if >=199506L, add IEEE Std 1003.1c-1995; +// if >=200112L, all of IEEE 1003.1-2004 +// if >=200809L, all of IEEE 1003.1-2008 +// _XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if +// Single Unix conformance is wanted, to 600 for the +// sixth revision, to 700 for the seventh revision. +// _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions. +// _LARGEFILE_SOURCE Some more functions for correct standard I/O. +// _LARGEFILE64_SOURCE Additional functionality from LFS for large files. +// _FILE_OFFSET_BITS=N Select default filesystem interface. +// _ATFILE_SOURCE Additional *at interfaces. +// _DYNAMIC_STACK_SIZE_SOURCE Select correct (but non compile-time constant) +// MINSIGSTKSZ, SIGSTKSZ and PTHREAD_STACK_MIN. +// _GNU_SOURCE All of the above, plus GNU extensions. +// _DEFAULT_SOURCE The default set of features (taking precedence over +// __STRICT_ANSI__). +// +// _FORTIFY_SOURCE Add security hardening to many library functions. +// Set to 1, 2 or 3; 3 performs stricter checks than 2, which +// performs stricter checks than 1. +// +// _REENTRANT, _THREAD_SAFE +// Obsolete; equivalent to _POSIX_C_SOURCE=199506L. +// +// The `-ansi' switch to the GNU C compiler, and standards conformance +// options such as `-std=c99', define __STRICT_ANSI__. If none of +// these are defined, or if _DEFAULT_SOURCE is defined, the default is +// to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to +// 200809L, as well as enabling miscellaneous functions from BSD and +// SVID. If more than one of these are defined, they accumulate. For +// example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together +// give you ISO C, 1003.1, and 1003.2, but nothing else. +// +// These are defined by this file and are used by the +// header files to decide what to declare or define: +// +// __GLIBC_USE (F) Define things from feature set F. This is defined +// to 1 or 0; the subsequent macros are either defined +// or undefined, and those tests should be moved to +// __GLIBC_USE. +// __USE_ISOC11 Define ISO C11 things. +// __USE_ISOC99 Define ISO C99 things. +// __USE_ISOC95 Define ISO C90 AMD1 (C95) things. +// __USE_ISOCXX11 Define ISO C++11 things. +// __USE_POSIX Define IEEE Std 1003.1 things. +// __USE_POSIX2 Define IEEE Std 1003.2 things. +// __USE_POSIX199309 Define IEEE Std 1003.1, and .1b things. +// __USE_POSIX199506 Define IEEE Std 1003.1, .1b, .1c and .1i things. +// __USE_XOPEN Define XPG things. +// __USE_XOPEN_EXTENDED Define X/Open Unix things. +// __USE_UNIX98 Define Single Unix V2 things. +// __USE_XOPEN2K Define XPG6 things. +// __USE_XOPEN2KXSI Define XPG6 XSI things. +// __USE_XOPEN2K8 Define XPG7 things. +// __USE_XOPEN2K8XSI Define XPG7 XSI things. +// __USE_LARGEFILE Define correct standard I/O things. +// __USE_LARGEFILE64 Define LFS things with separate names. +// __USE_FILE_OFFSET64 Define 64bit interface as default. +// __USE_MISC Define things from 4.3BSD or System V Unix. +// __USE_ATFILE Define *at interfaces and AT_* constants for them. +// __USE_DYNAMIC_STACK_SIZE Define correct (but non compile-time constant) +// MINSIGSTKSZ, SIGSTKSZ and PTHREAD_STACK_MIN. +// __USE_GNU Define GNU extensions. +// __USE_FORTIFY_LEVEL Additional security measures used, according to level. +// +// The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are +// defined by this file unconditionally. `__GNU_LIBRARY__' is provided +// only for compatibility. All new code should use the other symbols +// to test for features. +// +// All macros listed above as possibly being defined by this file are +// explicitly undefined if they are not explicitly defined. +// Feature-test macros that are not defined by the user or compiler +// but are implied by the other feature-test macros defined (or by the +// lack of any definitions) are defined by the file. +// +// ISO C feature test macros depend on the definition of the macro +// when an affected header is included, not when the first system +// header is included, and so they are handled in +// , which does not have a multiple include +// guard. Feature test macros that can be handled from the first +// system header included are handled here. + +// Undefine everything, so we get a clean slate. + +// Suppress kernel-name space pollution unless user expressedly asks +// for it. + +// Convenience macro to test the version of gcc. +// Use like this: +// #if __GNUC_PREREQ (2,8) +// ... code requiring gcc 2.8 or later ... +// #endif +// Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was +// added in 2.0. + +// Similarly for clang. Features added to GCC after version 4.2 may +// or may not also be available in clang, and clang's definitions of +// __GNUC(_MINOR)__ are fixed at 4 and 2 respectively. Not all such +// features can be queried via __has_extension/__has_feature. + +// Whether to use feature set F. + +// _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for +// _DEFAULT_SOURCE. If _DEFAULT_SOURCE is present we do not +// issue a warning; the expectation is that the source is being +// transitioned to use the new macro. + +// If _GNU_SOURCE was defined by the user, turn on all the other features. + +// If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined, +// define _DEFAULT_SOURCE. + +// This is to enable the ISO C2X extension. + +// This is to enable the ISO C11 extension. + +// This is to enable the ISO C99 extension. + +// This is to enable the ISO C90 Amendment 1:1995 extension. + +// If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE +// is defined, use POSIX.1-2008 (or another version depending on +// _XOPEN_SOURCE). + +// Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be +// defined in all multithreaded code. GNU libc has not required this +// for many years. We now treat them as compatibility synonyms for +// _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with +// comprehensive support for multithreaded code. Using them never +// lowers the selected level of POSIX conformance, only raises it. + +// Features part to handle 64-bit time_t support. +// Copyright (C) 2021-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// We need to know the word size in order to check the time size. +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Bit size of the time_t type at glibc build time, general case. +// Copyright (C) 2018-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Size in bits of the 'time_t' type of the default ABI. + +// The function 'gets' existed in C89, but is impossible to use +// safely. It has been removed from ISO C11 and ISO C++14. Note: for +// compatibility with various implementations of , this test +// must consider only the value of __cplusplus when compiling C++. + +// GNU formerly extended the scanf functions with modified format +// specifiers %as, %aS, and %a[...] that allocate a buffer for the +// input using malloc. This extension conflicts with ISO C99, which +// defines %a as a standalone format specifier that reads a floating- +// point number; moreover, POSIX.1-2008 provides the same feature +// using the modifier letter 'm' instead (%ms, %mS, %m[...]). +// +// We now follow C99 unless GNU extensions are active and the compiler +// is specifically in C89 or C++98 mode (strict or not). For +// instance, with GCC, -std=gnu11 will have C99-compliant scanf with +// or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the +// old extension. + +// ISO C2X added support for a 0b or 0B prefix on binary constants as +// inputs to strtol-family functions (base 0 or 2). This macro is +// used to condition redirection in headers to allow that redirection +// to be disabled when building those functions, despite _GNU_SOURCE +// being defined. + +// Get definitions of __STDC_* predefined macros, if the compiler has +// not preincluded this header automatically. +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// This macro indicates that the installed library is the GNU C Library. +// For historic reasons the value now is 6 and this will stay from now +// on. The use of this variable is deprecated. Use __GLIBC__ and +// __GLIBC_MINOR__ now (see below) when you want to test for a specific +// GNU C library version and use the values in to get +// the sonames of the shared libraries. + +// Major and minor version number of the GNU C library package. Use +// these macros to test for features in specific releases. + +// This is here only because every header file already includes this one. +// Copyright (C) 1992-2023 Free Software Foundation, Inc. +// Copyright The GNU Toolchain Authors. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// We are almost always included from features.h. + +// The GNU libc does not support any K&R compilers or the traditional mode +// of ISO C compilers anymore. Check for some of the combinations not +// supported anymore. + +// Some user header file might have defined this before. + +// Compilers that lack __has_attribute may object to +// #if defined __has_attribute && __has_attribute (...) +// even though they do not need to evaluate the right-hand side of the &&. +// Similarly for __has_builtin, etc. + +// All functions, except those with callbacks or those that +// synchronize memory, are leaf functions. + +// GCC can always grok prototypes. For C++ programs we add throw() +// to help it optimize the function calls. But this only works with +// gcc 2.8.x and egcs. For gcc 3.4 and up we even mark C functions +// as non-throwing using a function attribute since programs can use +// the -fexceptions options for C code as well. + +// These two macros are not used in glibc anymore. They are kept here +// only because some other projects expect the macros to be defined. + +// For these things, GCC behaves the ANSI way normally, +// and the non-ANSI way under -traditional. + +// This is not a typedef so `const __ptr_t' does the right thing. + +// C++ needs to know that types and declarations are C, not C++. + +// Fortify support. + +// Use __builtin_dynamic_object_size at _FORTIFY_SOURCE=3 when available. + +// Support for flexible arrays. +// Headers that should use flexible arrays only if they're "real" +// (e.g. only if they won't affect sizeof()) should test +// #if __glibc_c99_flexarr_available. + +// __asm__ ("xyz") is used throughout the headers to rename functions +// at the assembly language level. This is wrapped by the __REDIRECT +// macro, in order to support compilers that can do this some other +// way. When compilers don't support asm-names at all, we have to do +// preprocessor tricks instead (which don't have exactly the right +// semantics, but it's the best we can do). +// +// Example: +// int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid); + +// +// #elif __SOME_OTHER_COMPILER__ +// +// # define __REDIRECT(name, proto, alias) name proto; _Pragma("let " #name " = " #alias) + +// GCC and clang have various useful declarations that can be made with +// the '__attribute__' syntax. All of the ways we use this do fine if +// they are omitted for compilers that don't understand it. + +// At some point during the gcc 2.96 development the `malloc' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// Tell the compiler which arguments to an allocation function +// indicate the size of the allocation. + +// Tell the compiler which argument to an allocation function +// indicates the alignment of the allocation. + +// At some point during the gcc 2.96 development the `pure' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// This declaration tells the compiler that the value is constant. + +// At some point during the gcc 3.1 development the `used' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// Since version 3.2, gcc allows marking deprecated functions. + +// Since version 4.5, gcc also allows one to specify the message printed +// when a deprecated function is used. clang claims to be gcc 4.2, but +// may also support this feature. + +// At some point during the gcc 2.8 development the `format_arg' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. +// If several `format_arg' attributes are given for the same function, in +// gcc-3.0 and older, all but the last one are ignored. In newer gccs, +// all designated arguments are considered. + +// At some point during the gcc 2.97 development the `strfmon' format +// attribute for functions was introduced. We don't want to use it +// unconditionally (although this would be possible) since it +// generates warnings. + +// The nonnull function attribute marks pointer parameters that +// must not be NULL. This has the name __nonnull in glibc, +// and __attribute_nonnull__ in files shared with Gnulib to avoid +// collision with a different __nonnull in DragonFlyBSD 5.9. + +// The returns_nonnull function attribute marks the return type of the function +// as always being non-null. + +// If fortification mode, we warn about unused results of certain +// function calls which can lead to problems. + +// Forces a function to be always inlined. +// The Linux kernel defines __always_inline in stddef.h (283d7573), and +// it conflicts with this definition. Therefore undefine it first to +// allow either header to be included first. + +// Associate error messages with the source location of the call site rather +// than with the source location inside the function. + +// GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99 +// inline semantics, unless -fgnu89-inline is used. Using __GNUC_STDC_INLINE__ +// or __GNUC_GNU_INLINE is not a good enough check for gcc because gcc versions +// older than 4.3 may define these macros and still not guarantee GNU inlining +// semantics. +// +// clang++ identifies itself as gcc-4.2, but has support for GNU inlining +// semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and +// __GNUC_GNU_INLINE__ macro definitions. + +// GCC 4.3 and above allow passing all anonymous arguments of an +// __extern_always_inline function to some other vararg function. + +// It is possible to compile containing GCC extensions even if GCC is +// run in pedantic mode if the uses are carefully marked using the +// `__extension__' keyword. But this is not generally available before +// version 2.8. + +// __restrict is known in EGCS 1.2 and above, and in clang. +// It works also in C++ mode (outside of arrays), but only when spelled +// as '__restrict', not 'restrict'. + +// ISO C99 also allows to declare arrays as non-overlapping. The syntax is +// array_name[restrict] +// GCC 3.1 and clang support this. +// This syntax is not usable in C++ mode. + +// Describes a char array whose address can safely be passed as the first +// argument to strncpy and strncat, as the char array is not necessarily +// a NUL-terminated string. + +// Undefine (also defined in libc-symbols.h). +// Copies attributes from the declaration or type referenced by +// the argument. + +// Gnulib avoids including these, as they don't work on non-glibc or +// older glibc platforms. +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Properties of long double type. ldbl-128 version. +// Copyright (C) 2016-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// long double is distinct from double, so there is nothing to +// define here. + +// __glibc_macro_warning (MESSAGE) issues warning MESSAGE. This is +// intended for use in preprocessor macros. +// +// Note: MESSAGE must be a _single_ string; concatenation of string +// literals is not supported. + +// Generic selection (ISO C11) is a C-only feature, available in GCC +// since version 4.9. Previous versions do not provide generic +// selection, even though they might set __STDC_VERSION__ to 201112L, +// when in -std=c11 mode. Thus, we must check for !defined __GNUC__ +// when testing __STDC_VERSION__ for generic selection support. +// On the other hand, Clang also defines __GNUC__, so a clang-specific +// check is required to enable the use of generic selection. + +// Designates a 1-based positional argument ref-index of pointer type +// that can be used to access size-index elements of the pointed-to +// array according to access mode, or at least one element when +// size-index is not provided: +// access (access-mode, [, ]) +// For _FORTIFY_SOURCE == 3 we use __builtin_dynamic_object_size, which may +// use the access attribute to get object sizes from function definition +// arguments, so we can't use them on functions we fortify. Drop the object +// size hints for such functions. + +// Designates dealloc as a function to call to deallocate objects +// allocated by the declared function. + +// Specify that a function such as setjmp or vfork may return +// twice. + +// If we don't have __REDIRECT, prototypes will be missing if +// __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64]. + +// Decide whether we can define 'extern inline' functions in headers. + +// This is here only because every header file already includes this one. +// Get the definitions of all the appropriate `__stub_FUNCTION' symbols. +// contains `#define __stub_FUNCTION' when FUNCTION is a stub +// that will always return failure (and set errno to ENOSYS). +// This file is automatically generated. +// This file selects the right generated file of `__stub_FUNCTION' macros +// based on the architecture being compiled for. + +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// This file is automatically generated. +// It defines a symbol `__stub_FUNCTION' for each function +// in the C library which is a stub, meaning it will fail +// every time called, usually setting errno to ENOSYS. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Bit size of the time_t type at glibc build time, general case. +// Copyright (C) 2018-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Size in bits of the 'time_t' type of the default ABI. + +// Convenience types. +type X__u_char = uint8 /* types.h:31:23 */ +type X__u_short = uint16 /* types.h:32:28 */ +type X__u_int = uint32 /* types.h:33:22 */ +type X__u_long = uint64 /* types.h:34:27 */ + +// Fixed-size types, underlying types depend on word size and compiler. +type X__int8_t = int8 /* types.h:37:21 */ +type X__uint8_t = uint8 /* types.h:38:23 */ +type X__int16_t = int16 /* types.h:39:26 */ +type X__uint16_t = uint16 /* types.h:40:28 */ +type X__int32_t = int32 /* types.h:41:20 */ +type X__uint32_t = uint32 /* types.h:42:22 */ +type X__int64_t = int64 /* types.h:44:25 */ +type X__uint64_t = uint64 /* types.h:45:27 */ + +// Smallest types with at least a given width. +type X__int_least8_t = int8 /* types.h:52:18 */ +type X__uint_least8_t = uint8 /* types.h:53:19 */ +type X__int_least16_t = int16 /* types.h:54:19 */ +type X__uint_least16_t = uint16 /* types.h:55:20 */ +type X__int_least32_t = int32 /* types.h:56:19 */ +type X__uint_least32_t = uint32 /* types.h:57:20 */ +type X__int_least64_t = int64 /* types.h:58:19 */ +type X__uint_least64_t = uint64 /* types.h:59:20 */ + +// quad_t is also 64 bits. +type X__quad_t = int64 /* types.h:63:18 */ +type X__u_quad_t = uint64 /* types.h:64:27 */ + +// Largest integral types. +type X__intmax_t = int64 /* types.h:72:18 */ +type X__uintmax_t = uint64 /* types.h:73:27 */ + +// The machine-dependent file defines __*_T_TYPE +// macros for each of the OS types we define below. The definitions +// of those macros must use the following macros for underlying types. +// We define __S_TYPE and __U_TYPE for the signed and unsigned +// variants of each of the following integer types on this machine. +// +// 16 -- "natural" 16-bit type (always short) +// 32 -- "natural" 32-bit type (always int) +// 64 -- "natural" 64-bit type (long or long long) +// LONG32 -- 32-bit type, traditionally long +// QUAD -- 64-bit type, traditionally long long +// WORD -- natural type of __WORDSIZE bits (int or long) +// LONGWORD -- type of __WORDSIZE bits, traditionally long +// +// We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the +// conventional uses of `long' or `long long' type modifiers match the +// types we define, even when a less-adorned type would be the same size. +// This matters for (somewhat) portably writing printf/scanf formats for +// these types, where using the appropriate l or ll format modifiers can +// make the typedefs and the formats match up across all GNU platforms. If +// we used `long' when it's 64 bits where `long long' is expected, then the +// compiler would warn about the formats not matching the argument types, +// and the programmer changing them to shut up the compiler would break the +// program's portability. +// +// Here we assume what is presently the case in all the GCC configurations +// we support: long long is always 64 bits, long is always word/address size, +// and int is always 32 bits. + +// No need to mark the typedef with __extension__. +// bits/typesizes.h -- underlying types for *_t. For the generic Linux ABI. +// Copyright (C) 2011-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library. If not, see +// . + +// See for the meaning of these macros. This file exists so +// that need not vary across different GNU platforms. + +// Tell the libc code that off_t and off64_t are actually the same type +// for all ABI purposes, even if possibly expressed as different base types +// for C type-checking purposes. + +// Same for ino_t and ino64_t. + +// And for __rlim_t and __rlim64_t. + +// And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t. + +// And for getitimer, setitimer and rusage + +// Number of descriptors that can fit in an `fd_set'. + +// bits/time64.h -- underlying types for __time64_t. Generic version. +// Copyright (C) 2018-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Define __TIME64_T_TYPE so that it is always a 64-bit type. + +// If we already have 64-bit time type then use it. + +type X__dev_t = uint64 /* types.h:145:25 */ // Type of device numbers. +type X__uid_t = uint32 /* types.h:146:25 */ // Type of user identifications. +type X__gid_t = uint32 /* types.h:147:25 */ // Type of group identifications. +type X__ino_t = uint64 /* types.h:148:25 */ // Type of file serial numbers. +type X__ino64_t = uint64 /* types.h:149:27 */ // Type of file serial numbers (LFS). +type X__mode_t = uint32 /* types.h:150:26 */ // Type of file attribute bitmasks. +type X__nlink_t = uint32 /* types.h:151:27 */ // Type of file link counts. +type X__off_t = int64 /* types.h:152:25 */ // Type of file sizes and offsets. +type X__off64_t = int64 /* types.h:153:27 */ // Type of file sizes and offsets (LFS). +type X__pid_t = int32 /* types.h:154:25 */ // Type of process identifications. +type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs. +type X__clock_t = int64 /* types.h:156:27 */ // Type of CPU usage counts. +type X__rlim_t = uint64 /* types.h:157:26 */ // Type for resource measurement. +type X__rlim64_t = uint64 /* types.h:158:28 */ // Type for resource measurement (LFS). +type X__id_t = uint32 /* types.h:159:24 */ // General type for IDs. +type X__time_t = int64 /* types.h:160:26 */ // Seconds since the Epoch. +type X__useconds_t = uint32 /* types.h:161:30 */ // Count of microseconds. +type X__suseconds_t = int64 /* types.h:162:31 */ // Signed count of microseconds. +type X__suseconds64_t = int64 /* types.h:163:33 */ + +type X__daddr_t = int32 /* types.h:165:27 */ // The type of a disk address. +type X__key_t = int32 /* types.h:166:25 */ // Type of an IPC key. + +// Clock ID used in clock and timer functions. +type X__clockid_t = int32 /* types.h:169:29 */ + +// Timer ID returned by `timer_create'. +type X__timer_t = uintptr /* types.h:172:12 */ + +// Type to represent block size. +type X__blksize_t = int32 /* types.h:175:29 */ + +// Types from the Large File Support interface. + +// Type to count number of disk blocks. +type X__blkcnt_t = int64 /* types.h:180:28 */ +type X__blkcnt64_t = int64 /* types.h:181:30 */ + +// Type to count file system blocks. +type X__fsblkcnt_t = uint64 /* types.h:184:30 */ +type X__fsblkcnt64_t = uint64 /* types.h:185:32 */ + +// Type to count file system nodes. +type X__fsfilcnt_t = uint64 /* types.h:188:30 */ +type X__fsfilcnt64_t = uint64 /* types.h:189:32 */ + +// Type of miscellaneous file system fields. +type X__fsword_t = int64 /* types.h:192:28 */ + +type X__ssize_t = int64 /* types.h:194:27 */ // Type of a byte count, or error. + +// Signed long type used in system calls. +type X__syscall_slong_t = int64 /* types.h:197:33 */ +// Unsigned long type used in system calls. +type X__syscall_ulong_t = uint64 /* types.h:199:33 */ + +// These few don't really vary by system, they always correspond +// +// to one of the other defined types. +type X__loff_t = int64 /* types.h:203:19 */ // Type of file sizes and offsets (LFS). +type X__caddr_t = uintptr /* types.h:204:14 */ + +// Duplicates info from stdint.h but this is used in unistd.h. +type X__intptr_t = int64 /* types.h:207:25 */ + +// Duplicate info from sys/socket.h. +type X__socklen_t = uint32 /* types.h:210:23 */ + +// C99: An integer type that can be accessed as an atomic entity, +// +// even in the presence of asynchronous interrupts. +// It is not currently necessary for this to be machine-specific. +type X__sig_atomic_t = int32 /* types.h:215:13 */ + +// Seconds since the Epoch, visible to user code when time_t is too +// narrow only for consistency with the old way of widening too-narrow +// types. User code should never use __time64_t. + +type U_char = uint8 /* types.h:33:18 */ +type U_short = uint16 /* types.h:34:19 */ +type U_int = uint32 /* types.h:35:17 */ +type U_long = uint64 /* types.h:36:18 */ +type Quad_t = int64 /* types.h:37:18 */ +type U_quad_t = uint64 /* types.h:38:20 */ +type Fsid_t = X__fsid_t /* types.h:39:18 */ +type Loff_t = int64 /* types.h:42:18 */ + +type Ino_t = uint64 /* types.h:49:19 */ + +type Dev_t = uint64 /* types.h:59:17 */ + +type Gid_t = uint32 /* types.h:64:17 */ + +type Mode_t = uint32 /* types.h:69:18 */ + +type Nlink_t = uint32 /* types.h:74:19 */ + +type Uid_t = uint32 /* types.h:79:17 */ + +type Off_t = int64 /* types.h:87:19 */ + +type Pid_t = int32 /* types.h:97:17 */ + +type Id_t = uint32 /* types.h:103:16 */ + +type Ssize_t = int64 /* types.h:108:19 */ + +type Daddr_t = int32 /* types.h:114:19 */ +type Caddr_t = uintptr /* types.h:115:19 */ + +type Key_t = int32 /* types.h:121:17 */ + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Returned by `clock'. +type Clock_t = int64 /* clock_t.h:7:19 */ + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Clock ID used in clock and timer functions. +type Clockid_t = int32 /* clockid_t.h:7:21 */ + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Returned by `time'. +type Time_t = int64 /* time_t.h:10:18 */ + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Timer ID returned by `timer_create'. +type Timer_t = uintptr /* timer_t.h:7:19 */ + +// Wide character type. +// Locale-writers should change this as necessary to +// be big enough to hold unique values not between 0 and 127, +// and not (wchar_t) -1, for each defined multibyte character. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// A null pointer constant. + +// Old compatibility names for C types. +type Ulong = uint64 /* types.h:148:27 */ +type Ushort = uint16 /* types.h:149:28 */ +type Uint = uint32 /* types.h:150:22 */ + +// These size-specific names are used by some of the inet code. + +// Define intN_t types. +// Copyright (C) 2017-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +type Int8_t = int8 /* stdint-intn.h:24:18 */ +type Int16_t = int16 /* stdint-intn.h:25:19 */ +type Int32_t = int32 /* stdint-intn.h:26:19 */ +type Int64_t = int64 /* stdint-intn.h:27:19 */ + +// These were defined by ISO C without the first `_'. +type U_int8_t = uint8 /* types.h:158:19 */ +type U_int16_t = uint16 /* types.h:159:20 */ +type U_int32_t = uint32 /* types.h:160:20 */ +type U_int64_t = uint64 /* types.h:161:20 */ + +type Register_t = int32 /* types.h:164:13 */ + +// It also defines `fd_set' and the FD_* macros for `select'. +// `fd_set' type and related macros, and `select'/`pselect' declarations. +// Copyright (C) 1996-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// POSIX 1003.1g: 6.2 Select from File Descriptor Sets + +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Get definition of needed basic types. +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Get __FD_* definitions. +// Copyright (C) 1997-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// We don't use `memset' because this would require a prototype and +// the array isn't too big. + +// Get sigset_t. + +type X__sigset_t = struct{ F__val [16]uint64 } /* __sigset_t.h:8:3 */ + +// A set of signals to be blocked, unblocked, or waited for. +type Sigset_t = X__sigset_t /* sigset_t.h:7:20 */ + +// Get definition of timer specification structures. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// A time value that is accurate to the nearest +// +// microsecond but also has a range of years. +type Timeval = struct { + Ftv_sec int64 + Ftv_usec int64 +} /* struct_timeval.h:8:1 */ + +// NB: Include guard matches what uses. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Endian macros for string.h functions +// Copyright (C) 1992-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// POSIX.1b structure for a time value. This is like a `struct timeval' but +// +// has nanoseconds instead of microseconds. +type Timespec = struct { + Ftv_sec int64 + Ftv_nsec int64 +} /* struct_timespec.h:11:1 */ + +type Suseconds_t = int64 /* select.h:43:23 */ + +// The fd_set member is required to be an array of longs. +type X__fd_mask = int64 /* select.h:49:18 */ + +// Some versions of define this macros. +// It's easier to assume 8-bit bytes than to get CHAR_BIT. + +// fd_set for select and pselect. +type Fd_set = struct{ F__fds_bits [16]int64 } /* select.h:70:5 */ + +// Maximum number of file descriptors in `fd_set'. + +// Sometimes the fd_set member is assumed to have this type. +type Fd_mask = int64 /* select.h:77:19 */ + +// Define some inlines helping to catch common problems. + +type Blksize_t = int32 /* types.h:185:21 */ + +// Types from the Large File Support interface. +type Blkcnt_t = int64 /* types.h:205:22 */ // Type to count number of disk blocks. +type Fsblkcnt_t = uint64 /* types.h:209:24 */ // Type to count file system blocks. +type Fsfilcnt_t = uint64 /* types.h:213:24 */ // Type to count file system inodes. + +// Now add the thread types. +// Declaration of common pthread types for all architectures. +// Copyright (C) 2017-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// For internal mutex and condition variable definitions. +// Common threading primitives definitions for both POSIX and C11. +// Copyright (C) 2017-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Arch-specific definitions. Each architecture must define the following +// macros to define the expected sizes of pthread data types: +// +// __SIZEOF_PTHREAD_ATTR_T - size of pthread_attr_t. +// __SIZEOF_PTHREAD_MUTEX_T - size of pthread_mutex_t. +// __SIZEOF_PTHREAD_MUTEXATTR_T - size of pthread_mutexattr_t. +// __SIZEOF_PTHREAD_COND_T - size of pthread_cond_t. +// __SIZEOF_PTHREAD_CONDATTR_T - size of pthread_condattr_t. +// __SIZEOF_PTHREAD_RWLOCK_T - size of pthread_rwlock_t. +// __SIZEOF_PTHREAD_RWLOCKATTR_T - size of pthread_rwlockattr_t. +// __SIZEOF_PTHREAD_BARRIER_T - size of pthread_barrier_t. +// __SIZEOF_PTHREAD_BARRIERATTR_T - size of pthread_barrierattr_t. +// +// The additional macro defines any constraint for the lock alignment +// inside the thread structures: +// +// __LOCK_ALIGNMENT - for internal lock/futex usage. +// +// Same idea but for the once locking primitive: +// +// __ONCE_ALIGNMENT - for pthread_once_t/once_flag definition. + +// Machine-specific pthread type layouts. Generic version. +// Copyright (C) 2019-2023 Free Software Foundation, Inc. +// +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Monotonically increasing wide counters (at least 62 bits). +// Copyright (C) 2016-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Counter that is monotonically increasing (by less than 2**31 per +// +// increment), with a single writer, and an arbitrary number of +// readers. +type X__atomic_wide_counter = struct{ F__value64 uint64 } /* atomic_wide_counter.h:33:3 */ + +// Common definition of pthread_mutex_t. + +type X__pthread_internal_list = struct { + F__prev uintptr + F__next uintptr +} /* thread-shared-types.h:51:9 */ + +// Common definition of pthread_mutex_t. + +type X__pthread_list_t = X__pthread_internal_list /* thread-shared-types.h:55:3 */ + +type X__pthread_internal_slist = struct{ F__next uintptr } /* thread-shared-types.h:57:9 */ + +type X__pthread_slist_t = X__pthread_internal_slist /* thread-shared-types.h:60:3 */ + +// Arch-specific mutex definitions. A generic implementation is provided +// by sysdeps/nptl/bits/struct_mutex.h. If required, an architecture +// can override it by defining: +// +// 1. struct __pthread_mutex_s (used on both pthread_mutex_t and mtx_t +// definition). It should contains at least the internal members +// defined in the generic version. +// +// 2. __LOCK_ALIGNMENT for any extra attribute for internal lock used with +// atomic operations. +// +// 3. The macro __PTHREAD_MUTEX_INITIALIZER used for static initialization. +// It should initialize the mutex internal flag. + +// Default mutex implementation struct definitions. +// Copyright (C) 2019-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Generic struct for both POSIX and C11 mutexes. New ports are expected +// to use the default layout, however architecture can redefine it to +// add arch-specific extension (such as lock-elision). The struct have +// a size of 32 bytes on LP32 and 40 bytes on LP64 architectures. + +type X__pthread_mutex_s = struct { + F__lock int32 + F__count uint32 + F__owner int32 + F__nusers uint32 + F__kind int32 + F__spins int32 + F__list X__pthread_list_t +} /* struct_mutex.h:27:1 */ + +// Arch-sepecific read-write lock definitions. A generic implementation is +// provided by struct_rwlock.h. If required, an architecture can override it +// by defining: +// +// 1. struct __pthread_rwlock_arch_t (used on pthread_rwlock_t definition). +// It should contain at least the internal members defined in the +// generic version. +// +// 2. The macro __PTHREAD_RWLOCK_INITIALIZER used for static initialization. +// It should initialize the rwlock internal type. + +// Default read-write lock implementation struct definitions. +// Copyright (C) 2019-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Endian macros for string.h functions +// Copyright (C) 1992-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Generic struct for both POSIX read-write lock. New ports are expected +// to use the default layout, however archictetures can redefine it to add +// arch-specific extensions (such as lock-elision). The struct have a size +// of 32 bytes on both LP32 and LP64 architectures. + +type X__pthread_rwlock_arch_t = struct { + F__readers uint32 + F__writers uint32 + F__wrphase_futex uint32 + F__writers_futex uint32 + F__pad3 uint32 + F__pad4 uint32 + F__flags uint8 + F__shared uint8 + F__pad1 uint8 + F__pad2 uint8 + F__cur_writer int32 +} /* struct_rwlock.h:29:1 */ + +// Common definition of pthread_cond_t. + +type X__pthread_cond_s = struct { + F__wseq X__atomic_wide_counter + F__g1_start X__atomic_wide_counter + F__g_refs [2]uint32 + F__g_size [2]uint32 + F__g1_orig_size uint32 + F__wrefs uint32 + F__g_signals [2]uint32 +} /* thread-shared-types.h:94:1 */ + +type X__tss_t = uint32 /* thread-shared-types.h:105:22 */ +type X__thrd_t = uint64 /* thread-shared-types.h:106:27 */ + +type X__once_flag = struct{ F__data int32 } /* thread-shared-types.h:111:3 */ + +// Thread identifiers. The structure of the attribute type is not +// +// exposed on purpose. +type Pthread_t = uint64 /* pthreadtypes.h:27:27 */ + +// Data structures for mutex handling. The structure of the attribute +// +// type is not exposed on purpose. +type Pthread_mutexattr_t = struct { + F__ccgo_pad1 [0]uint32 + F__size [4]int8 +} /* pthreadtypes.h:36:3 */ + +// Data structure for condition variable handling. The structure of +// +// the attribute type is not exposed on purpose. +type Pthread_condattr_t = struct { + F__ccgo_pad1 [0]uint32 + F__size [4]int8 +} /* pthreadtypes.h:45:3 */ + +// Keys for thread-specific data +type Pthread_key_t = uint32 /* pthreadtypes.h:49:22 */ + +// Once-only execution +type Pthread_once_t = int32 /* pthreadtypes.h:53:30 */ + +type Pthread_attr_t1 = struct { + F__ccgo_pad1 [0]uint64 + F__size [56]int8 +} /* pthreadtypes.h:56:1 */ + +type Pthread_attr_t = Pthread_attr_t1 /* pthreadtypes.h:62:30 */ + +type Pthread_mutex_t = struct{ F__data X__pthread_mutex_s } /* pthreadtypes.h:72:3 */ + +type Pthread_cond_t = struct{ F__data X__pthread_cond_s } /* pthreadtypes.h:80:3 */ + +// Data structure for reader-writer lock variable handling. The +// +// structure of the attribute type is deliberately not exposed. +type Pthread_rwlock_t = struct { + F__ccgo_pad1 [0]uint64 + F__data X__pthread_rwlock_arch_t + F__ccgo_pad2 [24]byte +} /* pthreadtypes.h:91:3 */ + +type Pthread_rwlockattr_t = struct { + F__ccgo_pad1 [0]uint64 + F__size [8]int8 +} /* pthreadtypes.h:97:3 */ + +// POSIX spinlock data type. +type Pthread_spinlock_t = int32 /* pthreadtypes.h:103:22 */ + +// POSIX barriers data type. The structure of the type is +// +// deliberately not exposed. +type Pthread_barrier_t = struct { + F__ccgo_pad1 [0]uint64 + F__size [32]int8 +} /* pthreadtypes.h:112:3 */ + +type Pthread_barrierattr_t = struct { + F__ccgo_pad1 [0]uint32 + F__size [4]int8 +} /* pthreadtypes.h:118:3 */ + +var _ int8 /* gen.c:2:13: */ diff --git a/vendor/modernc.org/libc/sys/types/types_linux_mips64le.go b/vendor/modernc.org/libc/sys/types/types_linux_mips64le.go new file mode 100644 index 000000000..8a758d4cd --- /dev/null +++ b/vendor/modernc.org/libc/sys/types/types_linux_mips64le.go @@ -0,0 +1,1511 @@ +// Code generated by 'ccgo sys/types/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o sys/types/types_linux_amd64.go -pkgname types', DO NOT EDIT. + +package types + +import ( + "math" + "reflect" + "sync/atomic" + "unsafe" +) + +var _ = math.Pi +var _ reflect.Kind +var _ atomic.Value +var _ unsafe.Pointer + +const ( + BIG_ENDIAN = 4321 // endian.h:28:1: + BYTE_ORDER = 1234 // endian.h:30:1: + FD_SETSIZE = 1024 // select.h:73:1: + LITTLE_ENDIAN = 1234 // endian.h:27:1: + PDP_ENDIAN = 3412 // endian.h:29:1: + X_ATFILE_SOURCE = 1 // features.h:342:1: + X_BITS_BYTESWAP_H = 1 // byteswap.h:24:1: + X_BITS_ENDIANNESS_H = 1 // endianness.h:2:1: + X_BITS_ENDIAN_H = 1 // endian.h:20:1: + X_BITS_PTHREADTYPES_ARCH_H = 1 // pthreadtypes-arch.h:19:1: + X_BITS_PTHREADTYPES_COMMON_H = 1 // pthreadtypes.h:20:1: + X_BITS_STDINT_INTN_H = 1 // stdint-intn.h:20:1: + X_BITS_TIME64_H = 1 // time64.h:24:1: + X_BITS_TYPESIZES_H = 1 // typesizes.h:24:1: + X_BITS_TYPES_H = 1 // types.h:24:1: + X_BITS_UINTN_IDENTITY_H = 1 // uintn-identity.h:24:1: + X_BSD_SIZE_T_ = 0 // stddef.h:189:1: + X_BSD_SIZE_T_DEFINED_ = 0 // stddef.h:192:1: + X_DEFAULT_SOURCE = 1 // features.h:227:1: + X_ENDIAN_H = 1 // endian.h:19:1: + X_FEATURES_H = 1 // features.h:19:1: + X_FILE_OFFSET_BITS = 64 // :25:1: + X_GCC_SIZE_T = 0 // stddef.h:195:1: + X_LP64 = 1 // :284:1: + X_POSIX_C_SOURCE = 200809 // features.h:281:1: + X_POSIX_SOURCE = 1 // features.h:279:1: + X_RWLOCK_INTERNAL_H = 0 // struct_rwlock.h:21:1: + X_SIZET_ = 0 // stddef.h:196:1: + X_SIZE_T = 0 // stddef.h:183:1: + X_SIZE_T_ = 0 // stddef.h:188:1: + X_SIZE_T_DECLARED = 0 // stddef.h:193:1: + X_SIZE_T_DEFINED = 0 // stddef.h:191:1: + X_SIZE_T_DEFINED_ = 0 // stddef.h:190:1: + X_STDC_PREDEF_H = 1 // :162:1: + X_STRUCT_TIMESPEC = 1 // struct_timespec.h:3:1: + X_SYS_CDEFS_H = 1 // cdefs.h:19:1: + X_SYS_SELECT_H = 1 // select.h:22:1: + X_SYS_SIZE_T_H = 0 // stddef.h:184:1: + X_SYS_TYPES_H = 1 // types.h:23:1: + X_THREAD_MUTEX_INTERNAL_H = 1 // struct_mutex.h:20:1: + X_THREAD_SHARED_TYPES_H = 1 // thread-shared-types.h:20:1: + X_T_SIZE = 0 // stddef.h:186:1: + X_T_SIZE_ = 0 // stddef.h:185:1: + Linux = 1 // :231:1: + Unix = 1 // :177:1: +) + +type Ptrdiff_t = int64 /* :3:26 */ + +type Size_t = uint64 /* :9:23 */ + +type Wchar_t = int32 /* :15:24 */ + +type X__int128_t = struct { + Flo int64 + Fhi int64 +} /* :21:43 */ // must match modernc.org/mathutil.Int128 +type X__uint128_t = struct { + Flo uint64 + Fhi uint64 +} /* :22:44 */ // must match modernc.org/mathutil.Int128 + +type X__builtin_va_list = uintptr /* :46:14 */ +type X__float128 = float64 /* :47:21 */ + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// POSIX Standard: 2.6 Primitive System Data Types + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// These are defined by the user (or the compiler) +// to specify the desired environment: +// +// __STRICT_ANSI__ ISO Standard C. +// _ISOC99_SOURCE Extensions to ISO C89 from ISO C99. +// _ISOC11_SOURCE Extensions to ISO C99 from ISO C11. +// _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X. +// __STDC_WANT_LIB_EXT2__ +// Extensions to ISO C99 from TR 27431-2:2010. +// __STDC_WANT_IEC_60559_BFP_EXT__ +// Extensions to ISO C11 from TS 18661-1:2014. +// __STDC_WANT_IEC_60559_FUNCS_EXT__ +// Extensions to ISO C11 from TS 18661-4:2015. +// __STDC_WANT_IEC_60559_TYPES_EXT__ +// Extensions to ISO C11 from TS 18661-3:2015. +// +// _POSIX_SOURCE IEEE Std 1003.1. +// _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2; +// if >=199309L, add IEEE Std 1003.1b-1993; +// if >=199506L, add IEEE Std 1003.1c-1995; +// if >=200112L, all of IEEE 1003.1-2004 +// if >=200809L, all of IEEE 1003.1-2008 +// _XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if +// Single Unix conformance is wanted, to 600 for the +// sixth revision, to 700 for the seventh revision. +// _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions. +// _LARGEFILE_SOURCE Some more functions for correct standard I/O. +// _LARGEFILE64_SOURCE Additional functionality from LFS for large files. +// _FILE_OFFSET_BITS=N Select default filesystem interface. +// _ATFILE_SOURCE Additional *at interfaces. +// _GNU_SOURCE All of the above, plus GNU extensions. +// _DEFAULT_SOURCE The default set of features (taking precedence over +// __STRICT_ANSI__). +// +// _FORTIFY_SOURCE Add security hardening to many library functions. +// Set to 1 or 2; 2 performs stricter checks than 1. +// +// _REENTRANT, _THREAD_SAFE +// Obsolete; equivalent to _POSIX_C_SOURCE=199506L. +// +// The `-ansi' switch to the GNU C compiler, and standards conformance +// options such as `-std=c99', define __STRICT_ANSI__. If none of +// these are defined, or if _DEFAULT_SOURCE is defined, the default is +// to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to +// 200809L, as well as enabling miscellaneous functions from BSD and +// SVID. If more than one of these are defined, they accumulate. For +// example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together +// give you ISO C, 1003.1, and 1003.2, but nothing else. +// +// These are defined by this file and are used by the +// header files to decide what to declare or define: +// +// __GLIBC_USE (F) Define things from feature set F. This is defined +// to 1 or 0; the subsequent macros are either defined +// or undefined, and those tests should be moved to +// __GLIBC_USE. +// __USE_ISOC11 Define ISO C11 things. +// __USE_ISOC99 Define ISO C99 things. +// __USE_ISOC95 Define ISO C90 AMD1 (C95) things. +// __USE_ISOCXX11 Define ISO C++11 things. +// __USE_POSIX Define IEEE Std 1003.1 things. +// __USE_POSIX2 Define IEEE Std 1003.2 things. +// __USE_POSIX199309 Define IEEE Std 1003.1, and .1b things. +// __USE_POSIX199506 Define IEEE Std 1003.1, .1b, .1c and .1i things. +// __USE_XOPEN Define XPG things. +// __USE_XOPEN_EXTENDED Define X/Open Unix things. +// __USE_UNIX98 Define Single Unix V2 things. +// __USE_XOPEN2K Define XPG6 things. +// __USE_XOPEN2KXSI Define XPG6 XSI things. +// __USE_XOPEN2K8 Define XPG7 things. +// __USE_XOPEN2K8XSI Define XPG7 XSI things. +// __USE_LARGEFILE Define correct standard I/O things. +// __USE_LARGEFILE64 Define LFS things with separate names. +// __USE_FILE_OFFSET64 Define 64bit interface as default. +// __USE_MISC Define things from 4.3BSD or System V Unix. +// __USE_ATFILE Define *at interfaces and AT_* constants for them. +// __USE_GNU Define GNU extensions. +// __USE_FORTIFY_LEVEL Additional security measures used, according to level. +// +// The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are +// defined by this file unconditionally. `__GNU_LIBRARY__' is provided +// only for compatibility. All new code should use the other symbols +// to test for features. +// +// All macros listed above as possibly being defined by this file are +// explicitly undefined if they are not explicitly defined. +// Feature-test macros that are not defined by the user or compiler +// but are implied by the other feature-test macros defined (or by the +// lack of any definitions) are defined by the file. +// +// ISO C feature test macros depend on the definition of the macro +// when an affected header is included, not when the first system +// header is included, and so they are handled in +// , which does not have a multiple include +// guard. Feature test macros that can be handled from the first +// system header included are handled here. + +// Undefine everything, so we get a clean slate. + +// Suppress kernel-name space pollution unless user expressedly asks +// for it. + +// Convenience macro to test the version of gcc. +// Use like this: +// #if __GNUC_PREREQ (2,8) +// ... code requiring gcc 2.8 or later ... +// #endif +// Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was +// added in 2.0. + +// Similarly for clang. Features added to GCC after version 4.2 may +// or may not also be available in clang, and clang's definitions of +// __GNUC(_MINOR)__ are fixed at 4 and 2 respectively. Not all such +// features can be queried via __has_extension/__has_feature. + +// Whether to use feature set F. + +// _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for +// _DEFAULT_SOURCE. If _DEFAULT_SOURCE is present we do not +// issue a warning; the expectation is that the source is being +// transitioned to use the new macro. + +// If _GNU_SOURCE was defined by the user, turn on all the other features. + +// If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined, +// define _DEFAULT_SOURCE. + +// This is to enable the ISO C2X extension. + +// This is to enable the ISO C11 extension. + +// This is to enable the ISO C99 extension. + +// This is to enable the ISO C90 Amendment 1:1995 extension. + +// If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE +// is defined, use POSIX.1-2008 (or another version depending on +// _XOPEN_SOURCE). + +// Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be +// defined in all multithreaded code. GNU libc has not required this +// for many years. We now treat them as compatibility synonyms for +// _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with +// comprehensive support for multithreaded code. Using them never +// lowers the selected level of POSIX conformance, only raises it. + +// The function 'gets' existed in C89, but is impossible to use +// safely. It has been removed from ISO C11 and ISO C++14. Note: for +// compatibility with various implementations of , this test +// must consider only the value of __cplusplus when compiling C++. + +// GNU formerly extended the scanf functions with modified format +// specifiers %as, %aS, and %a[...] that allocate a buffer for the +// input using malloc. This extension conflicts with ISO C99, which +// defines %a as a standalone format specifier that reads a floating- +// point number; moreover, POSIX.1-2008 provides the same feature +// using the modifier letter 'm' instead (%ms, %mS, %m[...]). +// +// We now follow C99 unless GNU extensions are active and the compiler +// is specifically in C89 or C++98 mode (strict or not). For +// instance, with GCC, -std=gnu11 will have C99-compliant scanf with +// or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the +// old extension. + +// Get definitions of __STDC_* predefined macros, if the compiler has +// not preincluded this header automatically. +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// This macro indicates that the installed library is the GNU C Library. +// For historic reasons the value now is 6 and this will stay from now +// on. The use of this variable is deprecated. Use __GLIBC__ and +// __GLIBC_MINOR__ now (see below) when you want to test for a specific +// GNU C library version and use the values in to get +// the sonames of the shared libraries. + +// Major and minor version number of the GNU C library package. Use +// these macros to test for features in specific releases. + +// This is here only because every header file already includes this one. +// Copyright (C) 1992-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// We are almost always included from features.h. + +// The GNU libc does not support any K&R compilers or the traditional mode +// of ISO C compilers anymore. Check for some of the combinations not +// anymore supported. + +// Some user header file might have defined this before. + +// All functions, except those with callbacks or those that +// synchronize memory, are leaf functions. + +// GCC can always grok prototypes. For C++ programs we add throw() +// to help it optimize the function calls. But this works only with +// gcc 2.8.x and egcs. For gcc 3.2 and up we even mark C functions +// as non-throwing using a function attribute since programs can use +// the -fexceptions options for C code as well. + +// Compilers that are not clang may object to +// #if defined __clang__ && __has_extension(...) +// even though they do not need to evaluate the right-hand side of the &&. + +// These two macros are not used in glibc anymore. They are kept here +// only because some other projects expect the macros to be defined. + +// For these things, GCC behaves the ANSI way normally, +// and the non-ANSI way under -traditional. + +// This is not a typedef so `const __ptr_t' does the right thing. + +// C++ needs to know that types and declarations are C, not C++. + +// Fortify support. + +// Support for flexible arrays. +// Headers that should use flexible arrays only if they're "real" +// (e.g. only if they won't affect sizeof()) should test +// #if __glibc_c99_flexarr_available. + +// __asm__ ("xyz") is used throughout the headers to rename functions +// at the assembly language level. This is wrapped by the __REDIRECT +// macro, in order to support compilers that can do this some other +// way. When compilers don't support asm-names at all, we have to do +// preprocessor tricks instead (which don't have exactly the right +// semantics, but it's the best we can do). +// +// Example: +// int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid); + +// +// #elif __SOME_OTHER_COMPILER__ +// +// # define __REDIRECT(name, proto, alias) name proto; _Pragma("let " #name " = " #alias) + +// GCC has various useful declarations that can be made with the +// `__attribute__' syntax. All of the ways we use this do fine if +// they are omitted for compilers that don't understand it. + +// At some point during the gcc 2.96 development the `malloc' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// Tell the compiler which arguments to an allocation function +// indicate the size of the allocation. + +// At some point during the gcc 2.96 development the `pure' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// This declaration tells the compiler that the value is constant. + +// At some point during the gcc 3.1 development the `used' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// Since version 3.2, gcc allows marking deprecated functions. + +// Since version 4.5, gcc also allows one to specify the message printed +// when a deprecated function is used. clang claims to be gcc 4.2, but +// may also support this feature. + +// At some point during the gcc 2.8 development the `format_arg' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. +// If several `format_arg' attributes are given for the same function, in +// gcc-3.0 and older, all but the last one are ignored. In newer gccs, +// all designated arguments are considered. + +// At some point during the gcc 2.97 development the `strfmon' format +// attribute for functions was introduced. We don't want to use it +// unconditionally (although this would be possible) since it +// generates warnings. + +// The nonull function attribute allows to mark pointer parameters which +// must not be NULL. + +// If fortification mode, we warn about unused results of certain +// function calls which can lead to problems. + +// Forces a function to be always inlined. +// The Linux kernel defines __always_inline in stddef.h (283d7573), and +// it conflicts with this definition. Therefore undefine it first to +// allow either header to be included first. + +// Associate error messages with the source location of the call site rather +// than with the source location inside the function. + +// GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99 +// inline semantics, unless -fgnu89-inline is used. Using __GNUC_STDC_INLINE__ +// or __GNUC_GNU_INLINE is not a good enough check for gcc because gcc versions +// older than 4.3 may define these macros and still not guarantee GNU inlining +// semantics. +// +// clang++ identifies itself as gcc-4.2, but has support for GNU inlining +// semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and +// __GNUC_GNU_INLINE__ macro definitions. + +// GCC 4.3 and above allow passing all anonymous arguments of an +// __extern_always_inline function to some other vararg function. + +// It is possible to compile containing GCC extensions even if GCC is +// run in pedantic mode if the uses are carefully marked using the +// `__extension__' keyword. But this is not generally available before +// version 2.8. + +// __restrict is known in EGCS 1.2 and above. + +// ISO C99 also allows to declare arrays as non-overlapping. The syntax is +// array_name[restrict] +// GCC 3.1 supports this. + +// Describes a char array whose address can safely be passed as the first +// argument to strncpy and strncat, as the char array is not necessarily +// a NUL-terminated string. + +// Undefine (also defined in libc-symbols.h). +// Copies attributes from the declaration or type referenced by +// the argument. + +// Determine the wordsize from the preprocessor defines. + +// Both x86-64 and x32 use the 64-bit system call interface. +// Properties of long double type. ldbl-96 version. +// Copyright (C) 2016-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// long double is distinct from double, so there is nothing to +// define here. + +// __glibc_macro_warning (MESSAGE) issues warning MESSAGE. This is +// intended for use in preprocessor macros. +// +// Note: MESSAGE must be a _single_ string; concatenation of string +// literals is not supported. + +// Generic selection (ISO C11) is a C-only feature, available in GCC +// since version 4.9. Previous versions do not provide generic +// selection, even though they might set __STDC_VERSION__ to 201112L, +// when in -std=c11 mode. Thus, we must check for !defined __GNUC__ +// when testing __STDC_VERSION__ for generic selection support. +// On the other hand, Clang also defines __GNUC__, so a clang-specific +// check is required to enable the use of generic selection. + +// If we don't have __REDIRECT, prototypes will be missing if +// __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64]. + +// Decide whether we can define 'extern inline' functions in headers. + +// This is here only because every header file already includes this one. +// Get the definitions of all the appropriate `__stub_FUNCTION' symbols. +// contains `#define __stub_FUNCTION' when FUNCTION is a stub +// that will always return failure (and set errno to ENOSYS). +// This file is automatically generated. +// This file selects the right generated file of `__stub_FUNCTION' macros +// based on the architecture being compiled for. + +// This file is automatically generated. +// It defines a symbol `__stub_FUNCTION' for each function +// in the C library which is a stub, meaning it will fail +// every time called, usually setting errno to ENOSYS. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Determine the wordsize from the preprocessor defines. + +// Both x86-64 and x32 use the 64-bit system call interface. +// Bit size of the time_t type at glibc build time, x86-64 and x32 case. +// Copyright (C) 2018-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// For others, time size is word size. + +// Convenience types. +type X__u_char = uint8 /* types.h:31:23 */ +type X__u_short = uint16 /* types.h:32:28 */ +type X__u_int = uint32 /* types.h:33:22 */ +type X__u_long = uint64 /* types.h:34:27 */ + +// Fixed-size types, underlying types depend on word size and compiler. +type X__int8_t = int8 /* types.h:37:21 */ +type X__uint8_t = uint8 /* types.h:38:23 */ +type X__int16_t = int16 /* types.h:39:26 */ +type X__uint16_t = uint16 /* types.h:40:28 */ +type X__int32_t = int32 /* types.h:41:20 */ +type X__uint32_t = uint32 /* types.h:42:22 */ +type X__int64_t = int64 /* types.h:44:25 */ +type X__uint64_t = uint64 /* types.h:45:27 */ + +// Smallest types with at least a given width. +type X__int_least8_t = X__int8_t /* types.h:52:18 */ +type X__uint_least8_t = X__uint8_t /* types.h:53:19 */ +type X__int_least16_t = X__int16_t /* types.h:54:19 */ +type X__uint_least16_t = X__uint16_t /* types.h:55:20 */ +type X__int_least32_t = X__int32_t /* types.h:56:19 */ +type X__uint_least32_t = X__uint32_t /* types.h:57:20 */ +type X__int_least64_t = X__int64_t /* types.h:58:19 */ +type X__uint_least64_t = X__uint64_t /* types.h:59:20 */ + +// quad_t is also 64 bits. +type X__quad_t = int64 /* types.h:63:18 */ +type X__u_quad_t = uint64 /* types.h:64:27 */ + +// Largest integral types. +type X__intmax_t = int64 /* types.h:72:18 */ +type X__uintmax_t = uint64 /* types.h:73:27 */ + +// The machine-dependent file defines __*_T_TYPE +// macros for each of the OS types we define below. The definitions +// of those macros must use the following macros for underlying types. +// We define __S_TYPE and __U_TYPE for the signed and unsigned +// variants of each of the following integer types on this machine. +// +// 16 -- "natural" 16-bit type (always short) +// 32 -- "natural" 32-bit type (always int) +// 64 -- "natural" 64-bit type (long or long long) +// LONG32 -- 32-bit type, traditionally long +// QUAD -- 64-bit type, traditionally long long +// WORD -- natural type of __WORDSIZE bits (int or long) +// LONGWORD -- type of __WORDSIZE bits, traditionally long +// +// We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the +// conventional uses of `long' or `long long' type modifiers match the +// types we define, even when a less-adorned type would be the same size. +// This matters for (somewhat) portably writing printf/scanf formats for +// these types, where using the appropriate l or ll format modifiers can +// make the typedefs and the formats match up across all GNU platforms. If +// we used `long' when it's 64 bits where `long long' is expected, then the +// compiler would warn about the formats not matching the argument types, +// and the programmer changing them to shut up the compiler would break the +// program's portability. +// +// Here we assume what is presently the case in all the GCC configurations +// we support: long long is always 64 bits, long is always word/address size, +// and int is always 32 bits. + +// No need to mark the typedef with __extension__. +// bits/typesizes.h -- underlying types for *_t. Linux/x86-64 version. +// Copyright (C) 2012-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// See for the meaning of these macros. This file exists so +// that need not vary across different GNU platforms. + +// X32 kernel interface is 64-bit. + +// Tell the libc code that off_t and off64_t are actually the same type +// for all ABI purposes, even if possibly expressed as different base types +// for C type-checking purposes. + +// Same for ino_t and ino64_t. + +// And for __rlim_t and __rlim64_t. + +// And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t. + +// Number of descriptors that can fit in an `fd_set'. + +// bits/time64.h -- underlying types for __time64_t. Generic version. +// Copyright (C) 2018-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Define __TIME64_T_TYPE so that it is always a 64-bit type. + +// If we already have 64-bit time type then use it. + +type X__dev_t = uint64 /* types.h:145:25 */ // Type of device numbers. +type X__uid_t = uint32 /* types.h:146:25 */ // Type of user identifications. +type X__gid_t = uint32 /* types.h:147:25 */ // Type of group identifications. +type X__ino_t = uint64 /* types.h:148:25 */ // Type of file serial numbers. +type X__ino64_t = uint64 /* types.h:149:27 */ // Type of file serial numbers (LFS). +type X__mode_t = uint32 /* types.h:150:26 */ // Type of file attribute bitmasks. +type X__nlink_t = uint64 /* types.h:151:27 */ // Type of file link counts. +type X__off_t = int64 /* types.h:152:25 */ // Type of file sizes and offsets. +type X__off64_t = int64 /* types.h:153:27 */ // Type of file sizes and offsets (LFS). +type X__pid_t = int32 /* types.h:154:25 */ // Type of process identifications. +type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs. +type X__clock_t = int64 /* types.h:156:27 */ // Type of CPU usage counts. +type X__rlim_t = uint64 /* types.h:157:26 */ // Type for resource measurement. +type X__rlim64_t = uint64 /* types.h:158:28 */ // Type for resource measurement (LFS). +type X__id_t = uint32 /* types.h:159:24 */ // General type for IDs. +type X__time_t = int64 /* types.h:160:26 */ // Seconds since the Epoch. +type X__useconds_t = uint32 /* types.h:161:30 */ // Count of microseconds. +type X__suseconds_t = int64 /* types.h:162:31 */ // Signed count of microseconds. + +type X__daddr_t = int32 /* types.h:164:27 */ // The type of a disk address. +type X__key_t = int32 /* types.h:165:25 */ // Type of an IPC key. + +// Clock ID used in clock and timer functions. +type X__clockid_t = int32 /* types.h:168:29 */ + +// Timer ID returned by `timer_create'. +type X__timer_t = uintptr /* types.h:171:12 */ + +// Type to represent block size. +type X__blksize_t = int64 /* types.h:174:29 */ + +// Types from the Large File Support interface. + +// Type to count number of disk blocks. +type X__blkcnt_t = int64 /* types.h:179:28 */ +type X__blkcnt64_t = int64 /* types.h:180:30 */ + +// Type to count file system blocks. +type X__fsblkcnt_t = uint64 /* types.h:183:30 */ +type X__fsblkcnt64_t = uint64 /* types.h:184:32 */ + +// Type to count file system nodes. +type X__fsfilcnt_t = uint64 /* types.h:187:30 */ +type X__fsfilcnt64_t = uint64 /* types.h:188:32 */ + +// Type of miscellaneous file system fields. +type X__fsword_t = int64 /* types.h:191:28 */ + +type X__ssize_t = int64 /* types.h:193:27 */ // Type of a byte count, or error. + +// Signed long type used in system calls. +type X__syscall_slong_t = int64 /* types.h:196:33 */ +// Unsigned long type used in system calls. +type X__syscall_ulong_t = uint64 /* types.h:198:33 */ + +// These few don't really vary by system, they always correspond +// +// to one of the other defined types. +type X__loff_t = X__off64_t /* types.h:202:19 */ // Type of file sizes and offsets (LFS). +type X__caddr_t = uintptr /* types.h:203:14 */ + +// Duplicates info from stdint.h but this is used in unistd.h. +type X__intptr_t = int64 /* types.h:206:25 */ + +// Duplicate info from sys/socket.h. +type X__socklen_t = uint32 /* types.h:209:23 */ + +// C99: An integer type that can be accessed as an atomic entity, +// +// even in the presence of asynchronous interrupts. +// It is not currently necessary for this to be machine-specific. +type X__sig_atomic_t = int32 /* types.h:214:13 */ + +// Seconds since the Epoch, visible to user code when time_t is too +// narrow only for consistency with the old way of widening too-narrow +// types. User code should never use __time64_t. + +type U_char = X__u_char /* types.h:33:18 */ +type U_short = X__u_short /* types.h:34:19 */ +type U_int = X__u_int /* types.h:35:17 */ +type U_long = X__u_long /* types.h:36:18 */ +type Quad_t = X__quad_t /* types.h:37:18 */ +type U_quad_t = X__u_quad_t /* types.h:38:20 */ +type Fsid_t = X__fsid_t /* types.h:39:18 */ +type Loff_t = X__loff_t /* types.h:42:18 */ + +type Ino_t = X__ino64_t /* types.h:49:19 */ + +type Dev_t = X__dev_t /* types.h:59:17 */ + +type Gid_t = X__gid_t /* types.h:64:17 */ + +type Mode_t = X__mode_t /* types.h:69:18 */ + +type Nlink_t = X__nlink_t /* types.h:74:19 */ + +type Uid_t = X__uid_t /* types.h:79:17 */ + +type Off_t = X__off64_t /* types.h:87:19 */ + +type Pid_t = X__pid_t /* types.h:97:17 */ + +type Id_t = X__id_t /* types.h:103:16 */ + +type Ssize_t = X__ssize_t /* types.h:108:19 */ + +type Daddr_t = X__daddr_t /* types.h:114:19 */ +type Caddr_t = X__caddr_t /* types.h:115:19 */ + +type Key_t = X__key_t /* types.h:121:17 */ + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Returned by `clock'. +type Clock_t = X__clock_t /* clock_t.h:7:19 */ + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Clock ID used in clock and timer functions. +type Clockid_t = X__clockid_t /* clockid_t.h:7:21 */ + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Returned by `time'. +type Time_t = X__time_t /* time_t.h:7:18 */ + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Timer ID returned by `timer_create'. +type Timer_t = X__timer_t /* timer_t.h:7:19 */ + +// Wide character type. +// Locale-writers should change this as necessary to +// be big enough to hold unique values not between 0 and 127, +// and not (wchar_t) -1, for each defined multibyte character. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// A null pointer constant. + +// Old compatibility names for C types. +type Ulong = uint64 /* types.h:148:27 */ +type Ushort = uint16 /* types.h:149:28 */ +type Uint = uint32 /* types.h:150:22 */ + +// These size-specific names are used by some of the inet code. + +// Define intN_t types. +// Copyright (C) 2017-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +type Int8_t = X__int8_t /* stdint-intn.h:24:18 */ +type Int16_t = X__int16_t /* stdint-intn.h:25:19 */ +type Int32_t = X__int32_t /* stdint-intn.h:26:19 */ +type Int64_t = X__int64_t /* stdint-intn.h:27:19 */ + +// These were defined by ISO C without the first `_'. +type U_int8_t = X__uint8_t /* types.h:158:19 */ +type U_int16_t = X__uint16_t /* types.h:159:20 */ +type U_int32_t = X__uint32_t /* types.h:160:20 */ +type U_int64_t = X__uint64_t /* types.h:161:20 */ + +type Register_t = int32 /* types.h:164:13 */ + +// It also defines `fd_set' and the FD_* macros for `select'. +// `fd_set' type and related macros, and `select'/`pselect' declarations. +// Copyright (C) 1996-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// POSIX 1003.1g: 6.2 Select from File Descriptor Sets + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Get definition of needed basic types. +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Get __FD_* definitions. +// Copyright (C) 1997-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Determine the wordsize from the preprocessor defines. + +// Both x86-64 and x32 use the 64-bit system call interface. + +// Get sigset_t. + +type X__sigset_t = struct{ F__val [16]uint64 } /* __sigset_t.h:8:3 */ + +// A set of signals to be blocked, unblocked, or waited for. +type Sigset_t = X__sigset_t /* sigset_t.h:7:20 */ + +// Get definition of timer specification structures. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// A time value that is accurate to the nearest +// +// microsecond but also has a range of years. +type Timeval = struct { + Ftv_sec X__time_t + Ftv_usec X__suseconds_t +} /* struct_timeval.h:8:1 */ + +// NB: Include guard matches what uses. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Endian macros for string.h functions +// Copyright (C) 1992-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// POSIX.1b structure for a time value. This is like a `struct timeval' but +// +// has nanoseconds instead of microseconds. +type Timespec = struct { + Ftv_sec X__time_t + Ftv_nsec X__syscall_slong_t +} /* struct_timespec.h:10:1 */ + +type Suseconds_t = X__suseconds_t /* select.h:43:23 */ + +// The fd_set member is required to be an array of longs. +type X__fd_mask = int64 /* select.h:49:18 */ + +// Some versions of define this macros. +// It's easier to assume 8-bit bytes than to get CHAR_BIT. + +// fd_set for select and pselect. +type Fd_set = struct{ F__fds_bits [16]X__fd_mask } /* select.h:70:5 */ + +// Maximum number of file descriptors in `fd_set'. + +// Sometimes the fd_set member is assumed to have this type. +type Fd_mask = X__fd_mask /* select.h:77:19 */ + +// Define some inlines helping to catch common problems. + +type Blksize_t = X__blksize_t /* types.h:185:21 */ + +// Types from the Large File Support interface. +type Blkcnt_t = X__blkcnt64_t /* types.h:205:22 */ // Type to count number of disk blocks. +type Fsblkcnt_t = X__fsblkcnt64_t /* types.h:209:24 */ // Type to count file system blocks. +type Fsfilcnt_t = X__fsfilcnt64_t /* types.h:213:24 */ // Type to count file system inodes. + +// Now add the thread types. +// Declaration of common pthread types for all architectures. +// Copyright (C) 2017-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// For internal mutex and condition variable definitions. +// Common threading primitives definitions for both POSIX and C11. +// Copyright (C) 2017-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Arch-specific definitions. Each architecture must define the following +// macros to define the expected sizes of pthread data types: +// +// __SIZEOF_PTHREAD_ATTR_T - size of pthread_attr_t. +// __SIZEOF_PTHREAD_MUTEX_T - size of pthread_mutex_t. +// __SIZEOF_PTHREAD_MUTEXATTR_T - size of pthread_mutexattr_t. +// __SIZEOF_PTHREAD_COND_T - size of pthread_cond_t. +// __SIZEOF_PTHREAD_CONDATTR_T - size of pthread_condattr_t. +// __SIZEOF_PTHREAD_RWLOCK_T - size of pthread_rwlock_t. +// __SIZEOF_PTHREAD_RWLOCKATTR_T - size of pthread_rwlockattr_t. +// __SIZEOF_PTHREAD_BARRIER_T - size of pthread_barrier_t. +// __SIZEOF_PTHREAD_BARRIERATTR_T - size of pthread_barrierattr_t. +// +// The additional macro defines any constraint for the lock alignment +// inside the thread structures: +// +// __LOCK_ALIGNMENT - for internal lock/futex usage. +// +// Same idea but for the once locking primitive: +// +// __ONCE_ALIGNMENT - for pthread_once_t/once_flag definition. + +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Determine the wordsize from the preprocessor defines. + +// Both x86-64 and x32 use the 64-bit system call interface. + +// Common definition of pthread_mutex_t. + +type X__pthread_internal_list = struct { + F__prev uintptr + F__next uintptr +} /* thread-shared-types.h:49:9 */ + +// Type to count file system inodes. + +// Now add the thread types. +// Declaration of common pthread types for all architectures. +// Copyright (C) 2017-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// For internal mutex and condition variable definitions. +// Common threading primitives definitions for both POSIX and C11. +// Copyright (C) 2017-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Arch-specific definitions. Each architecture must define the following +// macros to define the expected sizes of pthread data types: +// +// __SIZEOF_PTHREAD_ATTR_T - size of pthread_attr_t. +// __SIZEOF_PTHREAD_MUTEX_T - size of pthread_mutex_t. +// __SIZEOF_PTHREAD_MUTEXATTR_T - size of pthread_mutexattr_t. +// __SIZEOF_PTHREAD_COND_T - size of pthread_cond_t. +// __SIZEOF_PTHREAD_CONDATTR_T - size of pthread_condattr_t. +// __SIZEOF_PTHREAD_RWLOCK_T - size of pthread_rwlock_t. +// __SIZEOF_PTHREAD_RWLOCKATTR_T - size of pthread_rwlockattr_t. +// __SIZEOF_PTHREAD_BARRIER_T - size of pthread_barrier_t. +// __SIZEOF_PTHREAD_BARRIERATTR_T - size of pthread_barrierattr_t. +// +// The additional macro defines any constraint for the lock alignment +// inside the thread structures: +// +// __LOCK_ALIGNMENT - for internal lock/futex usage. +// +// Same idea but for the once locking primitive: +// +// __ONCE_ALIGNMENT - for pthread_once_t/once_flag definition. + +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Determine the wordsize from the preprocessor defines. + +// Both x86-64 and x32 use the 64-bit system call interface. + +// Common definition of pthread_mutex_t. + +type X__pthread_list_t = X__pthread_internal_list /* thread-shared-types.h:53:3 */ + +type X__pthread_internal_slist = struct{ F__next uintptr } /* thread-shared-types.h:55:9 */ + +type X__pthread_slist_t = X__pthread_internal_slist /* thread-shared-types.h:58:3 */ + +// Arch-specific mutex definitions. A generic implementation is provided +// by sysdeps/nptl/bits/struct_mutex.h. If required, an architecture +// can override it by defining: +// +// 1. struct __pthread_mutex_s (used on both pthread_mutex_t and mtx_t +// definition). It should contains at least the internal members +// defined in the generic version. +// +// 2. __LOCK_ALIGNMENT for any extra attribute for internal lock used with +// atomic operations. +// +// 3. The macro __PTHREAD_MUTEX_INITIALIZER used for static initialization. +// It should initialize the mutex internal flag. + +// x86 internal mutex struct definitions. +// Copyright (C) 2019-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +type X__pthread_mutex_s = struct { + F__lock int32 + F__count uint32 + F__owner int32 + F__nusers uint32 + F__kind int32 + F__spins int16 + F__elision int16 + F__list X__pthread_list_t +} /* struct_mutex.h:22:1 */ + +// Arch-sepecific read-write lock definitions. A generic implementation is +// provided by struct_rwlock.h. If required, an architecture can override it +// by defining: +// +// 1. struct __pthread_rwlock_arch_t (used on pthread_rwlock_t definition). +// It should contain at least the internal members defined in the +// generic version. +// +// 2. The macro __PTHREAD_RWLOCK_INITIALIZER used for static initialization. +// It should initialize the rwlock internal type. + +// x86 internal rwlock struct definitions. +// Copyright (C) 2019-2020 Free Software Foundation, Inc. +// +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +type X__pthread_rwlock_arch_t = struct { + F__readers uint32 + F__writers uint32 + F__wrphase_futex uint32 + F__writers_futex uint32 + F__pad3 uint32 + F__pad4 uint32 + F__cur_writer int32 + F__shared int32 + F__rwelision int8 + F__pad1 [7]uint8 + F__pad2 uint64 + F__flags uint32 + F__ccgo_pad1 [4]byte +} /* struct_rwlock.h:23:1 */ + +// Common definition of pthread_cond_t. + +type X__pthread_cond_s = struct { + F__0 struct{ F__wseq uint64 } + F__8 struct{ F__g1_start uint64 } + F__g_refs [2]uint32 + F__g_size [2]uint32 + F__g1_orig_size uint32 + F__wrefs uint32 + F__g_signals [2]uint32 +} /* thread-shared-types.h:92:1 */ + +// Thread identifiers. The structure of the attribute type is not +// +// exposed on purpose. +type Pthread_t = uint64 /* pthreadtypes.h:27:27 */ + +// Data structures for mutex handling. The structure of the attribute +// +// type is not exposed on purpose. +type Pthread_mutexattr_t = struct { + F__ccgo_pad1 [0]uint32 + F__size [4]int8 +} /* pthreadtypes.h:36:3 */ + +// Data structure for condition variable handling. The structure of +// +// the attribute type is not exposed on purpose. +type Pthread_condattr_t = struct { + F__ccgo_pad1 [0]uint32 + F__size [4]int8 +} /* pthreadtypes.h:45:3 */ + +// Keys for thread-specific data +type Pthread_key_t = uint32 /* pthreadtypes.h:49:22 */ + +// Once-only execution +type Pthread_once_t = int32 /* pthreadtypes.h:53:30 */ + +type Pthread_attr_t1 = struct { + F__ccgo_pad1 [0]uint64 + F__size [56]int8 +} /* pthreadtypes.h:56:1 */ + +type Pthread_attr_t = Pthread_attr_t1 /* pthreadtypes.h:62:30 */ + +type Pthread_mutex_t = struct{ F__data X__pthread_mutex_s } /* pthreadtypes.h:72:3 */ + +type Pthread_cond_t = struct{ F__data X__pthread_cond_s } /* pthreadtypes.h:80:3 */ + +// Data structure for reader-writer lock variable handling. The +// +// structure of the attribute type is deliberately not exposed. +type Pthread_rwlock_t = struct{ F__data X__pthread_rwlock_arch_t } /* pthreadtypes.h:91:3 */ + +type Pthread_rwlockattr_t = struct { + F__ccgo_pad1 [0]uint64 + F__size [8]int8 +} /* pthreadtypes.h:97:3 */ + +// POSIX spinlock data type. +type Pthread_spinlock_t = int32 /* pthreadtypes.h:103:22 */ + +// POSIX barriers data type. The structure of the type is +// +// deliberately not exposed. +type Pthread_barrier_t = struct { + F__ccgo_pad1 [0]uint64 + F__size [32]int8 +} /* pthreadtypes.h:112:3 */ + +type Pthread_barrierattr_t = struct { + F__ccgo_pad1 [0]uint32 + F__size [4]int8 +} /* pthreadtypes.h:118:3 */ + +var _ int8 /* gen.c:2:13: */ diff --git a/vendor/modernc.org/libc/syscall_musl.go b/vendor/modernc.org/libc/syscall_musl.go new file mode 100644 index 000000000..530263b6e --- /dev/null +++ b/vendor/modernc.org/libc/syscall_musl.go @@ -0,0 +1,90 @@ +// Copyright 2024 The Libc Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build linux && (amd64 || arm64 || loong64 || ppc64le || s390x || riscv64 || 386 || arm) + +package libc // import "modernc.org/libc" + +import ( + "golang.org/x/sys/unix" + "runtime" +) + +func ___syscall_cp(tls *TLS, n, a, b, c, d, e, f long) long { + r1, _, err := (unix.Syscall6(uintptr(n), uintptr(a), uintptr(b), uintptr(c), uintptr(d), uintptr(e), uintptr(f))) + if err != 0 { + return long(-err) + } + + return long(r1) +} + +func X__syscall0(tls *TLS, n long) long { + switch n { + case __NR_sched_yield: + runtime.Gosched() + return 0 + default: + r1, _, err := unix.Syscall(uintptr(n), 0, 0, 0) + if err != 0 { + return long(-err) + } + + return long(r1) + } +} + +func X__syscall1(tls *TLS, n, a1 long) long { + r1, _, err := unix.Syscall(uintptr(n), uintptr(a1), 0, 0) + if err != 0 { + return long(-err) + } + + return long(r1) +} + +func X__syscall2(tls *TLS, n, a1, a2 long) long { + r1, _, err := unix.Syscall(uintptr(n), uintptr(a1), uintptr(a2), 0) + if err != 0 { + return long(-err) + } + + return long(r1) +} + +func X__syscall3(tls *TLS, n, a1, a2, a3 long) long { + r1, _, err := unix.Syscall(uintptr(n), uintptr(a1), uintptr(a2), uintptr(a3)) + if err != 0 { + return long(-err) + } + + return long(r1) +} + +func X__syscall4(tls *TLS, n, a1, a2, a3, a4 long) long { + r1, _, err := unix.Syscall6(uintptr(n), uintptr(a1), uintptr(a2), uintptr(a3), uintptr(a4), 0, 0) + if err != 0 { + return long(-err) + } + + return long(r1) +} + +func X__syscall5(tls *TLS, n, a1, a2, a3, a4, a5 long) long { + r1, _, err := unix.Syscall6(uintptr(n), uintptr(a1), uintptr(a2), uintptr(a3), uintptr(a4), uintptr(a5), 0) + if err != 0 { + return long(-err) + } + + return long(r1) +} + +func X__syscall6(tls *TLS, n, a1, a2, a3, a4, a5, a6 long) long { + r1, _, err := unix.Syscall6(uintptr(n), uintptr(a1), uintptr(a2), uintptr(a3), uintptr(a4), uintptr(a5), uintptr(a6)) + if err != 0 { + return long(-err) + } + + return long(r1) +} diff --git a/vendor/modernc.org/libc/termios/capi_illumos_amd64.go b/vendor/modernc.org/libc/termios/capi_illumos_amd64.go new file mode 100644 index 000000000..b92257591 --- /dev/null +++ b/vendor/modernc.org/libc/termios/capi_illumos_amd64.go @@ -0,0 +1,5 @@ +// Code generated by 'ccgo termios/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o termios/termios_illumos_amd64.go -pkgname termios', DO NOT EDIT. + +package termios + +var CAPI = map[string]struct{}{} diff --git a/vendor/modernc.org/libc/termios/capi_linux_loong64.go b/vendor/modernc.org/libc/termios/capi_linux_loong64.go new file mode 100644 index 000000000..b240607f5 --- /dev/null +++ b/vendor/modernc.org/libc/termios/capi_linux_loong64.go @@ -0,0 +1,5 @@ +// Code generated by 'ccgo termios/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o termios/termios_linux_loong64.go -pkgname termios', DO NOT EDIT. + +package termios + +var CAPI = map[string]struct{}{} diff --git a/vendor/modernc.org/libc/termios/capi_linux_mips64le.go b/vendor/modernc.org/libc/termios/capi_linux_mips64le.go new file mode 100644 index 000000000..193dc60e8 --- /dev/null +++ b/vendor/modernc.org/libc/termios/capi_linux_mips64le.go @@ -0,0 +1,5 @@ +// Code generated by 'ccgo termios/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o termios/termios_linux_amd64.go -pkgname termios', DO NOT EDIT. + +package termios + +var CAPI = map[string]struct{}{} diff --git a/vendor/modernc.org/libc/termios/termios_illumos_amd64.go b/vendor/modernc.org/libc/termios/termios_illumos_amd64.go new file mode 100644 index 000000000..6af3344d0 --- /dev/null +++ b/vendor/modernc.org/libc/termios/termios_illumos_amd64.go @@ -0,0 +1,2689 @@ +// Code generated by 'ccgo termios/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o termios/termios_illumos_amd64.go -pkgname termios', DO NOT EDIT. + +package termios + +import ( + "math" + "reflect" + "sync/atomic" + "unsafe" +) + +var _ = math.Pi +var _ reflect.Kind +var _ atomic.Value +var _ unsafe.Pointer + +const ( + B0 = 0 // termios.h:543:1: + B1000000 = 24 // termios.h:567:1: + B110 = 3 // termios.h:546:1: + B115200 = 18 // termios.h:561:1: + B1152000 = 25 // termios.h:568:1: + B1200 = 9 // termios.h:552:1: + B134 = 4 // termios.h:547:1: + B150 = 5 // termios.h:548:1: + B1500000 = 26 // termios.h:569:1: + B153600 = 19 // termios.h:562:1: + B1800 = 10 // termios.h:553:1: + B19200 = 14 // termios.h:557:1: + B200 = 6 // termios.h:549:1: + B2000000 = 27 // termios.h:570:1: + B230400 = 20 // termios.h:563:1: + B2400 = 11 // termios.h:554:1: + B2500000 = 28 // termios.h:571:1: + B300 = 7 // termios.h:550:1: + B3000000 = 29 // termios.h:572:1: + B307200 = 21 // termios.h:564:1: + B3500000 = 30 // termios.h:573:1: + B38400 = 15 // termios.h:558:1: + B4000000 = 31 // termios.h:574:1: + B460800 = 22 // termios.h:565:1: + B4800 = 12 // termios.h:555:1: + B50 = 1 // termios.h:544:1: + B57600 = 16 // termios.h:559:1: + B600 = 8 // termios.h:551:1: + B75 = 2 // termios.h:545:1: + B76800 = 17 // termios.h:560:1: + B921600 = 23 // termios.h:566:1: + B9600 = 13 // termios.h:556:1: + BRKINT = 0000002 // termios.h:187:1: + BS0 = 0 // termios.h:244:1: + BS1 = 0020000 // termios.h:245:1: + BSDLY = 0020000 // termios.h:243:1: + CBAUD = 0000017 // termios.h:258:1: + CBAUDEXT = 010000000 // termios.h:280:1: + CCTS_OFLOW = 020000000000 // termios.h:287:1: + CDEL = 0177 // termios.h:157:1: + CDSUSP = 25 // termios.h:176:1: + CEOF = 04 // termios.h:170:1: + CEOL = 0 // termios.h:168:1: + CEOL2 = 0 // termios.h:169:1: + CEOT = 04 // termios.h:167:1: + CERASE = 0177 // termios.h:164:1: + CERASE2 = 8 // termios.h:165:1: + CESC = 92 // termios.h:161:1: + CFLUSH = 15 // termios.h:178:1: + CIBAUD = 03600000 // termios.h:278:1: + CIBAUDEXT = 020000000 // termios.h:281:1: + CINTR = 3 // termios.h:162:1: + CKILL = 21 // termios.h:166:1: + CLNEXT = 22 // termios.h:180:1: + CLOCAL = 0004000 // termios.h:270:1: + CLOCKS_PER_SEC = 1000000 // time_iso.h:78:1: + CLOCK_HIGHRES = 4 // time_impl.h:126:1: + CLOCK_MONOTONIC = 4 // time_impl.h:124:1: + CLOCK_PROCESS_CPUTIME_ID = 5 // time_impl.h:125:1: + CLOCK_PROF = 2 // time_impl.h:127:1: + CLOCK_REALTIME = 3 // time_impl.h:123:1: + CLOCK_THREAD_CPUTIME_ID = 2 // time_impl.h:122:1: + CLOCK_VIRTUAL = 1 // time_impl.h:121:1: + CNSWTCH = 0 // termios.h:174:1: + CNUL = 0 // termios.h:156:1: + CQUIT = 034 // termios.h:163:1: + CR0 = 0 // termios.h:228:1: + CR1 = 0001000 // termios.h:229:1: + CR2 = 0002000 // termios.h:230:1: + CR3 = 0003000 // termios.h:231:1: + CRDLY = 0003000 // termios.h:227:1: + CREAD = 0000200 // termios.h:266:1: + CRPRNT = 18 // termios.h:177:1: + CRTSCTS = 020000000000 // termios.h:277:1: + CRTSXOFF = 010000000000 // termios.h:276:1: + CRTS_IFLOW = 010000000000 // termios.h:286:1: + CS5 = 0 // termios.h:261:1: + CS6 = 0000020 // termios.h:262:1: + CS7 = 0000040 // termios.h:263:1: + CS8 = 0000060 // termios.h:264:1: + CSIZE = 0000060 // termios.h:260:1: + CSTART = 021 // termios.h:171:1: + CSTATUS = 20 // termios.h:181:1: + CSTOP = 023 // termios.h:172:1: + CSTOPB = 0000100 // termios.h:265:1: + CSUSP = 26 // termios.h:175:1: + CSWTCH = 032 // termios.h:173:1: + CWERASE = 23 // termios.h:179:1: + DEFECHO = 0010000 // termios.h:309:1: + DIOC = 25600 // termios.h:524:1: + DIOCGETP = 25608 // termios.h:525:1: + DIOCSETP = 25609 // termios.h:526:1: + DOSMODE = 0100000 // termios.h:208:1: + DST_AUST = 2 // time.h:115:1: + DST_AUSTALT = 10 // time.h:123:1: + DST_CAN = 6 // time.h:119:1: + DST_EET = 5 // time.h:118:1: + DST_GB = 7 // time.h:120:1: + DST_MET = 4 // time.h:117:1: + DST_NONE = 0 // time.h:113:1: + DST_RUM = 8 // time.h:121:1: + DST_TUR = 9 // time.h:122:1: + DST_USA = 1 // time.h:114:1: + DST_WET = 3 // time.h:116:1: + ECHO = 0000010 // termios.h:299:1: + ECHOCTL = 0001000 // termios.h:306:1: + ECHOE = 0000020 // termios.h:300:1: + ECHOK = 0000040 // termios.h:301:1: + ECHOKE = 0004000 // termios.h:308:1: + ECHONL = 0000100 // termios.h:302:1: + ECHOPRT = 0002000 // termios.h:307:1: + EXTA = 14 // ttydev.h:56:1: + EXTB = 15 // ttydev.h:57:1: + FD_SETSIZE = 65536 // select.h:88:1: + FF0 = 0 // termios.h:250:1: + FF1 = 0100000 // termios.h:251:1: + FFDLY = 0100000 // termios.h:249:1: + FIORDCHK = 26115 // termios.h:537:1: + FLUSHO = 0020000 // termios.h:310:1: + HUPCL = 0002000 // termios.h:269:1: + IBSHIFT = 16 // termios.h:65:1: + ICANON = 0000002 // termios.h:293:1: + ICRNL = 0000400 // termios.h:194:1: + IEXTEN = 0100000 // termios.h:314:1: + IGNBRK = 0000001 // termios.h:186:1: + IGNCR = 0000200 // termios.h:193:1: + IGNPAR = 0000004 // termios.h:188:1: + IMAXBEL = 0020000 // termios.h:207:1: + INLCR = 0000100 // termios.h:192:1: + INPCK = 0000020 // termios.h:190:1: + IOCTYPE = 0xff00 // termios.h:336:1: + ISIG = 0000001 // termios.h:292:1: + ISTRIP = 0000040 // termios.h:191:1: + ITIMER_PROF = 2 // time.h:201:1: + ITIMER_REAL = 0 // time.h:199:1: + ITIMER_REALPROF = 3 // time.h:204:1: + ITIMER_VIRTUAL = 1 // time.h:200:1: + IUCLC = 0001000 // termios.h:198:1: + IXANY = 0004000 // termios.h:203:1: + IXOFF = 0010000 // termios.h:205:1: + IXON = 0002000 // termios.h:200:1: + KBENABLED = 21514 // termios.h:333:1: + LDCHG = 17410 // termios.h:508:1: + LDCLOSE = 17409 // termios.h:507:1: + LDDMAP = 17522 // termios.h:518:1: + LDEMAP = 17521 // termios.h:517:1: + LDGETT = 17416 // termios.h:509:1: + LDGMAP = 17519 // termios.h:515:1: + LDIOC = 17408 // termios.h:504:1: + LDNMAP = 17520 // termios.h:516:1: + LDOPEN = 17408 // termios.h:506:1: + LDSETT = 17417 // termios.h:510:1: + LDSMAP = 17518 // termios.h:514:1: + LOBLK = 0040000 // termios.h:274:1: + MICROSEC = 1000000 // time.h:246:1: + MILLISEC = 1000 // time.h:245:1: + NANOSEC = 1000000000 // time.h:247:1: + NBBY = 8 // select.h:103:1: + NCC = 8 // termios.h:71:1: + NCCS = 19 // termios.h:75:1: + NL0 = 0 // termios.h:225:1: + NL1 = 0000400 // termios.h:226:1: + NLDLY = 0000400 // termios.h:224:1: + NOFLSH = 0000200 // termios.h:303:1: + OCRNL = 0000010 // termios.h:219:1: + OFDEL = 0000200 // termios.h:223:1: + OFILL = 0000100 // termios.h:222:1: + OLCUC = 0000002 // termios.h:216:1: + ONLCR = 0000004 // termios.h:218:1: + ONLRET = 0000040 // termios.h:221:1: + ONOCR = 0000020 // termios.h:220:1: + OPOST = 0000001 // termios.h:212:1: + PAGEOUT = 0200000 // termios.h:254:1: + PARENB = 0000400 // termios.h:267:1: + PAREXT = 04000000 // termios.h:279:1: + PARMRK = 0000010 // termios.h:189:1: + PARODD = 0001000 // termios.h:268:1: + PENDIN = 0040000 // termios.h:311:1: + P_MYID = -1 // types.h:632:1: + RCV1EN = 0010000 // termios.h:272:1: + REG_LABEL_BP = 2 // machtypes.h:44:1: + REG_LABEL_MAX = 8 // machtypes.h:51:1: + REG_LABEL_PC = 0 // machtypes.h:42:1: + REG_LABEL_R12 = 4 // machtypes.h:47:1: + REG_LABEL_R13 = 5 // machtypes.h:48:1: + REG_LABEL_R14 = 6 // machtypes.h:49:1: + REG_LABEL_R15 = 7 // machtypes.h:50:1: + REG_LABEL_RBX = 3 // machtypes.h:46:1: + REG_LABEL_SP = 1 // machtypes.h:43:1: + RTS_TOG = 21537 // termios.h:340:1: + SEC = 1 // time.h:244:1: + TAB0 = 0 // termios.h:233:1: + TAB1 = 0004000 // termios.h:234:1: + TAB2 = 0010000 // termios.h:235:1: + TAB3 = 0014000 // termios.h:236:1: + TABDLY = 0014000 // termios.h:232:1: + TCDSET = 21536 // termios.h:339:1: + TCFLSH = 21511 // termios.h:327:1: + TCGETA = 21505 // termios.h:321:1: + TCGETS = 21517 // termios.h:354:1: + TCIFLUSH = 0 // termios.h:409:1: + TCIOFF = 2 // termios.h:415:1: + TCIOFLUSH = 2 // termios.h:411:1: + TCION = 3 // termios.h:416:1: + TCOFLUSH = 1 // termios.h:410:1: + TCOOFF = 0 // termios.h:413:1: + TCOON = 1 // termios.h:414:1: + TCSADRAIN = 21519 // termios.h:361:1: + TCSAFLUSH = 21520 // termios.h:405:1: + TCSANOW = 21518 // termios.h:357:1: + TCSBRK = 21509 // termios.h:325:1: + TCSETA = 21506 // termios.h:322:1: + TCSETAF = 21508 // termios.h:324:1: + TCSETAW = 21507 // termios.h:323:1: + TCSETS = 21518 // termios.h:355:1: + TCSETSF = 21520 // termios.h:363:1: + TCSETSW = 21519 // termios.h:359:1: + TCXONC = 21510 // termios.h:326:1: + TIMER_ABSTIME = 0x1 // time_impl.h:134:1: + TIMER_RELTIME = 0x0 // time_impl.h:133:1: + TIME_UTC = 0x1 // time.h:306:1: + TIOC = 21504 // termios.h:319:1: + TIOCCBRK = 29818 // termios.h:452:1: + TIOCCDTR = 29816 // termios.h:454:1: + TIOCCILOOP = 29804 // termios.h:463:1: + TIOCEXCL = 29709 // termios.h:436:1: + TIOCFLUSH = 29712 // termios.h:438:1: + TIOCGETC = 29714 // termios.h:440:1: + TIOCGETD = 29696 // termios.h:430:1: + TIOCGETLD = 21628 // termios.h:369:1: + TIOCGETP = 29704 // termios.h:433:1: + TIOCGLTC = 29812 // termios.h:456:1: + TIOCGPGRP = 29716 // termios.h:472:1: + TIOCGPPS = 21629 // termios.h:386:1: + TIOCGPPSEV = 21631 // termios.h:388:1: + TIOCGSID = 29718 // termios.h:474:1: + TIOCGSOFTCAR = 21609 // termios.h:348:1: + TIOCGWINSZ = 21608 // termios.h:342:1: + TIOCHPCL = 29698 // termios.h:432:1: + TIOCKBOF = 21513 // termios.h:332:1: + TIOCKBON = 21512 // termios.h:331:1: + TIOCLBIC = 29822 // termios.h:448:1: + TIOCLBIS = 29823 // termios.h:447:1: + TIOCLGET = 29820 // termios.h:450:1: + TIOCLSET = 29821 // termios.h:449:1: + TIOCMBIC = 29724 // termios.h:482:1: + TIOCMBIS = 29723 // termios.h:481:1: + TIOCMGET = 29725 // termios.h:483:1: + TIOCMSET = 29722 // termios.h:480:1: + TIOCM_CAR = 0100 // termios.h:490:1: + TIOCM_CD = 64 // termios.h:491:1: + TIOCM_CTS = 0040 // termios.h:489:1: + TIOCM_DSR = 0400 // termios.h:494:1: + TIOCM_DTR = 0002 // termios.h:485:1: + TIOCM_LE = 0001 // termios.h:484:1: + TIOCM_RI = 128 // termios.h:493:1: + TIOCM_RNG = 0200 // termios.h:492:1: + TIOCM_RTS = 0004 // termios.h:486:1: + TIOCM_SR = 0020 // termios.h:488:1: + TIOCM_ST = 0010 // termios.h:487:1: + TIOCNOTTY = 29809 // termios.h:458:1: + TIOCNXCL = 29710 // termios.h:437:1: + TIOCOUTQ = 29811 // termios.h:457:1: + TIOCREMOTE = 29726 // termios.h:498:1: + TIOCSBRK = 29819 // termios.h:451:1: + TIOCSCTTY = 29828 // termios.h:459:1: + TIOCSDTR = 29817 // termios.h:453:1: + TIOCSETC = 29713 // termios.h:439:1: + TIOCSETD = 29697 // termios.h:431:1: + TIOCSETLD = 21627 // termios.h:368:1: + TIOCSETN = 29706 // termios.h:435:1: + TIOCSETP = 29705 // termios.h:434:1: + TIOCSIGNAL = 29727 // termios.h:499:1: + TIOCSILOOP = 29805 // termios.h:462:1: + TIOCSLTC = 29813 // termios.h:455:1: + TIOCSPGRP = 29717 // termios.h:473:1: + TIOCSPPS = 21630 // termios.h:387:1: + TIOCSSOFTCAR = 21610 // termios.h:349:1: + TIOCSTART = 29806 // termios.h:461:1: + TIOCSTI = 29719 // termios.h:477:1: + TIOCSTOP = 29807 // termios.h:460:1: + TIOCSWINSZ = 21607 // termios.h:343:1: + TOSTOP = 0000400 // termios.h:304:1: + VCEOF = 8 // termios.h:153:1: + VCEOL = 9 // termios.h:154:1: + VDISCARD = 13 // termios.h:143:1: + VDSUSP = 11 // termios.h:141:1: + VEOF = 4 // termios.h:127:1: + VEOL = 5 // termios.h:128:1: + VEOL2 = 6 // termios.h:130:1: + VERASE = 2 // termios.h:125:1: + VERASE2 = 17 // termios.h:147:1: + VINTR = 0 // termios.h:123:1: + VKILL = 3 // termios.h:126:1: + VLNEXT = 15 // termios.h:145:1: + VMIN = 4 // termios.h:132:1: + VQUIT = 1 // termios.h:124:1: + VREPRINT = 12 // termios.h:142:1: + VSTART = 8 // termios.h:137:1: + VSTATUS = 16 // termios.h:146:1: + VSTOP = 9 // termios.h:138:1: + VSUSP = 10 // termios.h:139:1: + VSWTCH = 7 // termios.h:135:1: + VT0 = 0 // termios.h:247:1: + VT1 = 0040000 // termios.h:248:1: + VTDLY = 0040000 // termios.h:246:1: + VTIME = 5 // termios.h:133:1: + VWERASE = 14 // termios.h:144:1: + WRAP = 0400000 // termios.h:255:1: + XCASE = 0000004 // termios.h:297:1: + XCLUDE = 0100000 // termios.h:275:1: + XMT1EN = 0020000 // termios.h:273:1: + XTABS = 0014000 // termios.h:239:1: + X_ALIGNMENT_REQUIRED = 1 // isa_defs.h:262:1: + X_BIT_FIELDS_LTOH = 0 // isa_defs.h:245:1: + X_BOOL_ALIGNMENT = 1 // isa_defs.h:248:1: + X_CHAR_ALIGNMENT = 1 // isa_defs.h:249:1: + X_CHAR_IS_SIGNED = 0 // isa_defs.h:247:1: + X_CLOCKID_T = 0 // types.h:568:1: + X_CLOCK_T = 0 // types.h:563:1: + X_COND_MAGIC = 0x4356 // types.h:426:1: + X_DMA_USES_PHYSADDR = 0 // isa_defs.h:281:1: + X_DONT_USE_1275_GENERIC_NAMES = 0 // isa_defs.h:287:1: + X_DOUBLE_ALIGNMENT = 8 // isa_defs.h:256:1: + X_DOUBLE_COMPLEX_ALIGNMENT = 8 // isa_defs.h:257:1: + X_DTRACE_VERSION = 1 // feature_tests.h:490:1: + X_FILE_OFFSET_BITS = 64 // :25:1: + X_FIRMWARE_NEEDS_FDISK = 0 // isa_defs.h:282:1: + X_FLOAT_ALIGNMENT = 4 // isa_defs.h:252:1: + X_FLOAT_COMPLEX_ALIGNMENT = 4 // isa_defs.h:253:1: + X_HAVE_CPUID_INSN = 0 // isa_defs.h:288:1: + X_IEEE_754 = 0 // isa_defs.h:246:1: + X_INT64_TYPE = 0 // int_types.h:82:1: + X_INT_ALIGNMENT = 4 // isa_defs.h:251:1: + X_ISO_CPP_14882_1998 = 0 // feature_tests.h:466:1: + X_ISO_C_9899_1999 = 0 // feature_tests.h:472:1: + X_ISO_C_9899_2011 = 0 // feature_tests.h:478:1: + X_ISO_TIME_ISO_H = 0 // time_iso.h:46:1: + X_LARGEFILE64_SOURCE = 1 // feature_tests.h:231:1: + X_LARGEFILE_SOURCE = 1 // feature_tests.h:235:1: + X_LITTLE_ENDIAN = 0 // isa_defs.h:242:1: + X_LOCALE_T = 0 // time.h:291:1: + X_LONGLONG_TYPE = 0 // feature_tests.h:412:1: + X_LONG_ALIGNMENT = 8 // isa_defs.h:254:1: + X_LONG_DOUBLE_ALIGNMENT = 16 // isa_defs.h:258:1: + X_LONG_DOUBLE_COMPLEX_ALIGNMENT = 16 // isa_defs.h:259:1: + X_LONG_LONG_ALIGNMENT = 8 // isa_defs.h:255:1: + X_LONG_LONG_ALIGNMENT_32 = 4 // isa_defs.h:268:1: + X_LONG_LONG_LTOH = 0 // isa_defs.h:244:1: + X_LP64 = 1 // :286:1: + X_MAX_ALIGNMENT = 16 // isa_defs.h:261:1: + X_MULTI_DATAMODEL = 0 // isa_defs.h:279:1: + X_MUTEX_MAGIC = 0x4d58 // types.h:424:1: + X_NBBY = 8 // select.h:100:1: + X_NCC = 8 // termios.h:69:1: + X_NORETURN_KYWD = 0 // feature_tests.h:448:1: + X_OFF_T = 0 // types.h:142:1: + X_POINTER_ALIGNMENT = 8 // isa_defs.h:260:1: + X_POSIX_VDISABLE = 0 // termios.h:59:1: + X_PSM_MODULES = 0 // isa_defs.h:284:1: + X_PTRDIFF_T = 0 // types.h:112:1: + X_RESTRICT_KYWD = 0 // feature_tests.h:435:1: + X_RTC_CONFIG = 0 // isa_defs.h:285:1: + X_RWL_MAGIC = 0x5257 // types.h:427:1: + X_SEMA_MAGIC = 0x534d // types.h:425:1: + X_SHORT_ALIGNMENT = 2 // isa_defs.h:250:1: + X_SIGEVENT = 0 // time.h:132:1: + X_SIGSET_T = 0 // select.h:73:1: + X_SIGVAL = 0 // time.h:124:1: + X_SIZE_T = 0 // types.h:540:1: + X_SOFT_HOSTID = 0 // isa_defs.h:286:1: + X_SSIZE_T = 0 // types.h:549:1: + X_STACK_GROWS_DOWNWARD = 0 // isa_defs.h:243:1: + X_STDC_C11 = 0 // feature_tests.h:165:1: + X_STDC_C99 = 0 // feature_tests.h:169:1: + X_SUNOS_VTOC_16 = 0 // isa_defs.h:280:1: + X_SUSECONDS_T = 0 // time.h:50:1: + X_SYS_CCOMPILE_H = 0 // ccompile.h:32:1: + X_SYS_FEATURE_TESTS_H = 0 // feature_tests.h:41:1: + X_SYS_INT_TYPES_H = 0 // int_types.h:30:1: + X_SYS_ISA_DEFS_H = 0 // isa_defs.h:30:1: + X_SYS_MACHTYPES_H = 0 // machtypes.h:27:1: + X_SYS_NULL_H = 0 // null.h:17:1: + X_SYS_SELECT_H = 0 // select.h:45:1: + X_SYS_TERMIOS_H = 0 // termios.h:32:1: + X_SYS_TIME_H = 0 // time.h:27:1: + X_SYS_TIME_IMPL_H = 0 // time_impl.h:38:1: + X_SYS_TTYDEV_H = 0 // ttydev.h:27:1: + X_SYS_TYPES_H = 0 // types.h:35:1: + X_TERMIOS_H = 0 // termios.h:27:1: + X_TIMER_T = 0 // types.h:573:1: + X_TIME_H = 0 // time.h:37:1: + X_TIME_T = 0 // time.h:45:1: + X_TIOC = 21504 // termios.h:315:1: + X_UID_T = 0 // types.h:400:1: + X_XOPEN_VERSION = 3 // feature_tests.h:392:1: + Sun = 1 // :172:1: + TIOC1 = 29696 // termios.h:421:1: + Unix = 1 // :175:1: +) + +// used for block sizes + +// The boolean_t type has had a varied amount of exposure over the years in +// terms of how its enumeration constants have been exposed. In particular, it +// originally used the __XOPEN_OR_POSIX macro to determine whether to prefix the +// B_TRUE and B_FALSE with an underscore. This check never included the +// question of if we were in a strict ANSI C environment or whether extensions +// were defined. +// +// Compilers such as clang started defaulting to always including an +// XOPEN_SOURCE declaration on behalf of users, but also noted __EXTENSIONS__. +// This would lead most software that had used the non-underscore versions to +// need it. As such, we have adjusted the non-strict XOPEN environment to retain +// its old behavior so as to minimize namespace pollution; however, we instead +// include both variants of the definitions in the generally visible version +// allowing software written in either world to hopefully end up in a good +// place. +// +// This isn't perfect, but should hopefully minimize the pain for folks actually +// trying to build software. +const ( /* types.h:215:1: */ + B_FALSE = 0 + B_TRUE = 1 + X_B_FALSE = 0 + X_B_TRUE = 1 +) + +type Ptrdiff_t = int64 /* :3:26 */ + +type Size_t = uint64 /* :9:23 */ + +type Wchar_t = int32 /* :15:24 */ + +type X__int128_t = struct { + Flo int64 + Fhi int64 +} /* :21:43 */ // must match modernc.org/mathutil.Int128 +type X__uint128_t = struct { + Flo uint64 + Fhi uint64 +} /* :22:44 */ // must match modernc.org/mathutil.Int128 + +type X__builtin_va_list = uintptr /* :46:14 */ +type X__float128 = float64 /* :47:21 */ + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1988 AT&T +// All Rights Reserved + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2014 Garrett D'Amore +// +// Copyright (c) 1988, 2010, Oracle and/or its affiliates. All rights reserved. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2015 EveryCity Ltd. All rights reserved. +// Copyright 2019 Joyent, Inc. + +// This file contains definitions designed to enable different compilers +// to be used harmoniously on Solaris systems. + +// Allow for version tests for compiler bugs and features. + +// analogous to lint's PRINTFLIKEn + +// Handle the kernel printf routines that can take '%b' too + +// This one's pretty obvious -- the function never returns + +// The function is 'extern inline' and expects GNU C89 behaviour, not C99 +// behaviour. +// +// Should only be used on 'extern inline' definitions for GCC. + +// The function has control flow such that it may return multiple times (in +// the manner of setjmp or vfork) + +// This is an appropriate label for functions that do not +// modify their arguments, e.g. strlen() + +// This is a stronger form of __pure__. Can be used for functions +// that do not modify their arguments and don't depend on global +// memory. + +// This attribute, attached to a variable, means that the variable is meant to +// be possibly unused. GCC will not produce a warning for this variable. + +// Shorthand versions for readability + +// In release build, disable warnings about variables +// which are used only for debugging. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2016 Joyent, Inc. + +// This header file serves to group a set of well known defines and to +// set these for each instruction set architecture. These defines may +// be divided into two groups; characteristics of the processor and +// implementation choices for Solaris on a processor. +// +// Processor Characteristics: +// +// _LITTLE_ENDIAN / _BIG_ENDIAN: +// The natural byte order of the processor. A pointer to an int points +// to the least/most significant byte of that int. +// +// _STACK_GROWS_UPWARD / _STACK_GROWS_DOWNWARD: +// The processor specific direction of stack growth. A push onto the +// stack increases/decreases the stack pointer, so it stores data at +// successively higher/lower addresses. (Stackless machines ignored +// without regrets). +// +// _LONG_LONG_HTOL / _LONG_LONG_LTOH: +// A pointer to a long long points to the most/least significant long +// within that long long. +// +// _BIT_FIELDS_HTOL / _BIT_FIELDS_LTOH: +// The C compiler assigns bit fields from the high/low to the low/high end +// of an int (most to least significant vs. least to most significant). +// +// _IEEE_754: +// The processor (or supported implementations of the processor) +// supports the ieee-754 floating point standard. No other floating +// point standards are supported (or significant). Any other supported +// floating point formats are expected to be cased on the ISA processor +// symbol. +// +// _CHAR_IS_UNSIGNED / _CHAR_IS_SIGNED: +// The C Compiler implements objects of type `char' as `unsigned' or +// `signed' respectively. This is really an implementation choice of +// the compiler writer, but it is specified in the ABI and tends to +// be uniform across compilers for an instruction set architecture. +// Hence, it has the properties of a processor characteristic. +// +// _CHAR_ALIGNMENT / _SHORT_ALIGNMENT / _INT_ALIGNMENT / _LONG_ALIGNMENT / +// _LONG_LONG_ALIGNMENT / _DOUBLE_ALIGNMENT / _LONG_DOUBLE_ALIGNMENT / +// _POINTER_ALIGNMENT / _FLOAT_ALIGNMENT: +// The ABI defines alignment requirements of each of the primitive +// object types. Some, if not all, may be hardware requirements as +// well. The values are expressed in "byte-alignment" units. +// +// _MAX_ALIGNMENT: +// The most stringent alignment requirement as specified by the ABI. +// Equal to the maximum of all the above _XXX_ALIGNMENT values. +// +// _MAX_ALIGNMENT_TYPE: +// The name of the C type that has the value descried in _MAX_ALIGNMENT. +// +// _ALIGNMENT_REQUIRED: +// True or false (1 or 0) whether or not the hardware requires the ABI +// alignment. +// +// _LONG_LONG_ALIGNMENT_32 +// The 32-bit ABI supported by a 64-bit kernel may have different +// alignment requirements for primitive object types. The value of this +// identifier is expressed in "byte-alignment" units. +// +// _HAVE_CPUID_INSN +// This indicates that the architecture supports the 'cpuid' +// instruction as defined by Intel. (Intel allows other vendors +// to extend the instruction for their own purposes.) +// +// +// Implementation Choices: +// +// _ILP32 / _LP64: +// This specifies the compiler data type implementation as specified in +// the relevant ABI. The choice between these is strongly influenced +// by the underlying hardware, but is not absolutely tied to it. +// Currently only two data type models are supported: +// +// _ILP32: +// Int/Long/Pointer are 32 bits. This is the historical UNIX +// and Solaris implementation. Due to its historical standing, +// this is the default case. +// +// _LP64: +// Long/Pointer are 64 bits, Int is 32 bits. This is the chosen +// implementation for 64-bit ABIs such as SPARC V9. +// +// _I32LPx: +// A compilation environment where 'int' is 32-bit, and +// longs and pointers are simply the same size. +// +// In all cases, Char is 8 bits and Short is 16 bits. +// +// _SUNOS_VTOC_8 / _SUNOS_VTOC_16 / _SVR4_VTOC_16: +// This specifies the form of the disk VTOC (or label): +// +// _SUNOS_VTOC_8: +// This is a VTOC form which is upwardly compatible with the +// SunOS 4.x disk label and allows 8 partitions per disk. +// +// _SUNOS_VTOC_16: +// In this format the incore vtoc image matches the ondisk +// version. It allows 16 slices per disk, and is not +// compatible with the SunOS 4.x disk label. +// +// Note that these are not the only two VTOC forms possible and +// additional forms may be added. One possible form would be the +// SVr4 VTOC form. The symbol for that is reserved now, although +// it is not implemented. +// +// _SVR4_VTOC_16: +// This VTOC form is compatible with the System V Release 4 +// VTOC (as implemented on the SVr4 Intel and 3b ports) with +// 16 partitions per disk. +// +// +// _DMA_USES_PHYSADDR / _DMA_USES_VIRTADDR +// This describes the type of addresses used by system DMA: +// +// _DMA_USES_PHYSADDR: +// This type of DMA, used in the x86 implementation, +// requires physical addresses for DMA buffers. The 24-bit +// addresses used by some legacy boards is the source of the +// "low-memory" (<16MB) requirement for some devices using DMA. +// +// _DMA_USES_VIRTADDR: +// This method of DMA allows the use of virtual addresses for +// DMA transfers. +// +// _FIRMWARE_NEEDS_FDISK / _NO_FDISK_PRESENT +// This indicates the presence/absence of an fdisk table. +// +// _FIRMWARE_NEEDS_FDISK +// The fdisk table is required by system firmware. If present, +// it allows a disk to be subdivided into multiple fdisk +// partitions, each of which is equivalent to a separate, +// virtual disk. This enables the co-existence of multiple +// operating systems on a shared hard disk. +// +// _NO_FDISK_PRESENT +// If the fdisk table is absent, it is assumed that the entire +// media is allocated for a single operating system. +// +// _HAVE_TEM_FIRMWARE +// Defined if this architecture has the (fallback) option of +// using prom_* calls for doing I/O if a suitable kernel driver +// is not available to do it. +// +// _DONT_USE_1275_GENERIC_NAMES +// Controls whether or not device tree node names should +// comply with the IEEE 1275 "Generic Names" Recommended +// Practice. With _DONT_USE_GENERIC_NAMES, device-specific +// names identifying the particular device will be used. +// +// __i386_COMPAT +// This indicates whether the i386 ABI is supported as a *non-native* +// mode for the platform. When this symbol is defined: +// - 32-bit xstat-style system calls are enabled +// - 32-bit xmknod-style system calls are enabled +// - 32-bit system calls use i386 sizes -and- alignments +// +// Note that this is NOT defined for the i386 native environment! +// +// __x86 +// This is ONLY a synonym for defined(__i386) || defined(__amd64) +// which is useful only insofar as these two architectures share +// common attributes. Analogous to __sparc. +// +// _PSM_MODULES +// This indicates whether or not the implementation uses PSM +// modules for processor support, reading /etc/mach from inside +// the kernel to extract a list. +// +// _RTC_CONFIG +// This indicates whether or not the implementation uses /etc/rtc_config +// to configure the real-time clock in the kernel. +// +// _UNIX_KRTLD +// This indicates that the implementation uses a dynamically +// linked unix + krtld to form the core kernel image at boot +// time, or (in the absence of this symbol) a prelinked kernel image. +// +// _OBP +// This indicates the firmware interface is OBP. +// +// _SOFT_HOSTID +// This indicates that the implementation obtains the hostid +// from the file /etc/hostid, rather than from hardware. + +// The following set of definitions characterize Solaris on AMD's +// 64-bit systems. + +// Define the appropriate "processor characteristics" + +// Different alignment constraints for the i386 ABI in compatibility mode + +// Define the appropriate "implementation choices". + +// The feature test macro __i386 is generic for all processors implementing +// the Intel 386 instruction set or a superset of it. Specifically, this +// includes all members of the 386, 486, and Pentium family of processors. + +// Values of _POSIX_C_SOURCE +// +// undefined not a POSIX compilation +// 1 POSIX.1-1990 compilation +// 2 POSIX.2-1992 compilation +// 199309L POSIX.1b-1993 compilation (Real Time) +// 199506L POSIX.1c-1995 compilation (POSIX Threads) +// 200112L POSIX.1-2001 compilation (Austin Group Revision) +// 200809L POSIX.1-2008 compilation + +// The feature test macros __XOPEN_OR_POSIX, _STRICT_STDC, _STRICT_SYMBOLS, +// and _STDC_C99 are Sun implementation specific macros created in order to +// compress common standards specified feature test macros for easier reading. +// These macros should not be used by the application developer as +// unexpected results may occur. Instead, the user should reference +// standards(7) for correct usage of the standards feature test macros. +// +// __XOPEN_OR_POSIX Used in cases where a symbol is defined by both +// X/Open or POSIX or in the negative, when neither +// X/Open or POSIX defines a symbol. +// +// _STRICT_STDC __STDC__ is specified by the C Standards and defined +// by the compiler. For Sun compilers the value of +// __STDC__ is either 1, 0, or not defined based on the +// compilation mode (see cc(1)). When the value of +// __STDC__ is 1 and in the absence of any other feature +// test macros, the namespace available to the application +// is limited to only those symbols defined by the C +// Standard. _STRICT_STDC provides a more readable means +// of identifying symbols defined by the standard, or in +// the negative, symbols that are extensions to the C +// Standard. See additional comments for GNU C differences. +// +// _STDC_C99 __STDC_VERSION__ is specified by the C standards and +// defined by the compiler and indicates the version of +// the C standard. A value of 199901L indicates a +// compiler that complies with ISO/IEC 9899:1999, other- +// wise known as the C99 standard. +// +// _STDC_C11 Like _STDC_C99 except that the value of __STDC_VERSION__ +// is 201112L indicating a compiler that compiles with +// ISO/IEC 9899:2011, otherwise known as the C11 standard. +// +// _STRICT_SYMBOLS Used in cases where symbol visibility is restricted +// by the standards, and the user has not explicitly +// relaxed the strictness via __EXTENSIONS__. + +// ISO/IEC 9899:1990 and it's revisions, ISO/IEC 9899:1999 and ISO/IEC +// 99899:2011 specify the following predefined macro name: +// +// __STDC__ The integer constant 1, intended to indicate a conforming +// implementation. +// +// Furthermore, a strictly conforming program shall use only those features +// of the language and library specified in these standards. A conforming +// implementation shall accept any strictly conforming program. +// +// Based on these requirements, Sun's C compiler defines __STDC__ to 1 for +// strictly conforming environments and __STDC__ to 0 for environments that +// use ANSI C semantics but allow extensions to the C standard. For non-ANSI +// C semantics, Sun's C compiler does not define __STDC__. +// +// The GNU C project interpretation is that __STDC__ should always be defined +// to 1 for compilation modes that accept ANSI C syntax regardless of whether +// or not extensions to the C standard are used. Violations of conforming +// behavior are conditionally flagged as warnings via the use of the +// -pedantic option. In addition to defining __STDC__ to 1, the GNU C +// compiler also defines __STRICT_ANSI__ as a means of specifying strictly +// conforming environments using the -ansi or -std= options. +// +// In the absence of any other compiler options, Sun and GNU set the value +// of __STDC__ as follows when using the following options: +// +// Value of __STDC__ __STRICT_ANSI__ +// +// cc -Xa (default) 0 undefined +// cc -Xt (transitional) 0 undefined +// cc -Xc (strictly conforming) 1 undefined +// cc -Xs (K&R C) undefined undefined +// +// gcc (default) 1 undefined +// gcc -ansi, -std={c89, c99,...) 1 defined +// gcc -traditional (K&R) undefined undefined +// +// The default compilation modes for Sun C compilers versus GNU C compilers +// results in a differing value for __STDC__ which results in a more +// restricted namespace when using Sun compilers. To allow both GNU and Sun +// interpretations to peacefully co-exist, we use the following Sun +// implementation _STRICT_STDC_ macro: + +// Compiler complies with ISO/IEC 9899:1999 or ISO/IEC 9989:2011 + +// Use strict symbol visibility. + +// This is a variant of _STRICT_SYMBOLS that is meant to cover headers that are +// governed by POSIX, but have not been governed by ISO C. One can go two ways +// on what should happen if an application actively includes (not transitively) +// a header that isn't part of the ISO C spec, we opt to say that if someone has +// gone out of there way then they're doing it for a reason and that is an act +// of non-compliance and therefore it's not up to us to hide away every symbol. +// +// In general, prefer using _STRICT_SYMBOLS, but this is here in particular for +// cases where in the past we have only used a POSIX related check and we don't +// wish to make something stricter. Often applications are relying on the +// ability to, or more realistically unwittingly, have _STRICT_STDC declared and +// still use these interfaces. + +// Large file interfaces: +// +// _LARGEFILE_SOURCE +// 1 large file-related additions to POSIX +// interfaces requested (fseeko, etc.) +// _LARGEFILE64_SOURCE +// 1 transitional large-file-related interfaces +// requested (seek64, stat64, etc.) +// +// The corresponding announcement macros are respectively: +// _LFS_LARGEFILE +// _LFS64_LARGEFILE +// (These are set in .) +// +// Requesting _LARGEFILE64_SOURCE implies requesting _LARGEFILE_SOURCE as +// well. +// +// The large file interfaces are made visible regardless of the initial values +// of the feature test macros under certain circumstances: +// - If no explicit standards-conforming environment is requested (neither +// of _POSIX_SOURCE nor _XOPEN_SOURCE is defined and the value of +// __STDC__ does not imply standards conformance). +// - Extended system interfaces are explicitly requested (__EXTENSIONS__ +// is defined). +// - Access to in-kernel interfaces is requested (_KERNEL or _KMEMUSER is +// defined). (Note that this dependency is an artifact of the current +// kernel implementation and may change in future releases.) + +// Large file compilation environment control: +// +// The setting of _FILE_OFFSET_BITS controls the size of various file-related +// types and governs the mapping between file-related source function symbol +// names and the corresponding binary entry points. +// +// In the 32-bit environment, the default value is 32; if not set, set it to +// the default here, to simplify tests in other headers. +// +// In the 64-bit compilation environment, the only value allowed is 64. + +// Use of _XOPEN_SOURCE +// +// The following X/Open specifications are supported: +// +// X/Open Portability Guide, Issue 3 (XPG3) +// X/Open CAE Specification, Issue 4 (XPG4) +// X/Open CAE Specification, Issue 4, Version 2 (XPG4v2) +// X/Open CAE Specification, Issue 5 (XPG5) +// Open Group Technical Standard, Issue 6 (XPG6), also referred to as +// IEEE Std. 1003.1-2001 and ISO/IEC 9945:2002. +// Open Group Technical Standard, Issue 7 (XPG7), also referred to as +// IEEE Std. 1003.1-2008 and ISO/IEC 9945:2009. +// +// XPG4v2 is also referred to as UNIX 95 (SUS or SUSv1). +// XPG5 is also referred to as UNIX 98 or the Single Unix Specification, +// Version 2 (SUSv2) +// XPG6 is the result of a merge of the X/Open and POSIX specifications +// and as such is also referred to as IEEE Std. 1003.1-2001 in +// addition to UNIX 03 and SUSv3. +// XPG7 is also referred to as UNIX 08 and SUSv4. +// +// When writing a conforming X/Open application, as per the specification +// requirements, the appropriate feature test macros must be defined at +// compile time. These are as follows. For more info, see standards(7). +// +// Feature Test Macro Specification +// ------------------------------------------------ ------------- +// _XOPEN_SOURCE XPG3 +// _XOPEN_SOURCE && _XOPEN_VERSION = 4 XPG4 +// _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED = 1 XPG4v2 +// _XOPEN_SOURCE = 500 XPG5 +// _XOPEN_SOURCE = 600 (or POSIX_C_SOURCE=200112L) XPG6 +// _XOPEN_SOURCE = 700 (or POSIX_C_SOURCE=200809L) XPG7 +// +// In order to simplify the guards within the headers, the following +// implementation private test macros have been created. Applications +// must NOT use these private test macros as unexpected results will +// occur. +// +// Note that in general, the use of these private macros is cumulative. +// For example, the use of _XPG3 with no other restrictions on the X/Open +// namespace will make the symbols visible for XPG3 through XPG6 +// compilation environments. The use of _XPG4_2 with no other X/Open +// namespace restrictions indicates that the symbols were introduced in +// XPG4v2 and are therefore visible for XPG4v2 through XPG6 compilation +// environments, but not for XPG3 or XPG4 compilation environments. +// +// _XPG3 X/Open Portability Guide, Issue 3 (XPG3) +// _XPG4 X/Open CAE Specification, Issue 4 (XPG4) +// _XPG4_2 X/Open CAE Specification, Issue 4, Version 2 (XPG4v2/UNIX 95/SUS) +// _XPG5 X/Open CAE Specification, Issue 5 (XPG5/UNIX 98/SUSv2) +// _XPG6 Open Group Technical Standard, Issue 6 (XPG6/UNIX 03/SUSv3) +// _XPG7 Open Group Technical Standard, Issue 7 (XPG7/UNIX 08/SUSv4) + +// X/Open Portability Guide, Issue 3 + +// _XOPEN_VERSION is defined by the X/Open specifications and is not +// normally defined by the application, except in the case of an XPG4 +// application. On the implementation side, _XOPEN_VERSION defined with +// the value of 3 indicates an XPG3 application. _XOPEN_VERSION defined +// with the value of 4 indicates an XPG4 or XPG4v2 (UNIX 95) application. +// _XOPEN_VERSION defined with a value of 500 indicates an XPG5 (UNIX 98) +// application and with a value of 600 indicates an XPG6 (UNIX 03) +// application and with a value of 700 indicates an XPG7 (UNIX 08). +// The appropriate version is determined by the use of the +// feature test macros described earlier. The value of _XOPEN_VERSION +// defaults to 3 otherwise indicating support for XPG3 applications. + +// ANSI C and ISO 9899:1990 say the type long long doesn't exist in strictly +// conforming environments. ISO 9899:1999 says it does. +// +// The presence of _LONGLONG_TYPE says "long long exists" which is therefore +// defined in all but strictly conforming environments that disallow it. + +// The following macro defines a value for the ISO C99 restrict +// keyword so that _RESTRICT_KYWD resolves to "restrict" if +// an ISO C99 compiler is used, "__restrict" for c++ and "" (null string) +// if any other compiler is used. This allows for the use of single +// prototype declarations regardless of compiler version. + +// The following macro defines a value for the ISO C11 _Noreturn +// keyword so that _NORETURN_KYWD resolves to "_Noreturn" if +// an ISO C11 compiler is used and "" (null string) if any other +// compiler is used. This allows for the use of single prototype +// declarations regardless of compiler version. + +// ISO/IEC 9899:2011 Annex K + +// The following macro indicates header support for the ANSI C++ +// standard. The ISO/IEC designation for this is ISO/IEC FDIS 14882. + +// The following macro indicates header support for the C99 standard, +// ISO/IEC 9899:1999, Programming Languages - C. + +// The following macro indicates header support for the C11 standard, +// ISO/IEC 9899:2011, Programming Languages - C. + +// The following macro indicates header support for the C11 standard, +// ISO/IEC 9899:2011 Annex K, Programming Languages - C. + +// The following macro indicates header support for DTrace. The value is an +// integer that corresponds to the major version number for DTrace. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Terminal definitions related to underlying hardware. + +// Speeds + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright (c) 1982, 1986, 1993 Regents of the University of California. +// All rights reserved. The Berkeley software License Agreement +// specifies the terms and conditions for redistribution. + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2020 OmniOS Community Edition (OmniOSce) Association. + +// Copyright (c) 2013, 2016 by Delphix. All rights reserved. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Structure returned by gettimeofday(2) system call, +// and used in other calls. + +type Time_t = int64 /* time.h:46:14 */ // time of day in seconds + +type Suseconds_t = int64 /* time.h:51:14 */ // signed # of microseconds + +type Timeval = struct { + Ftv_sec int64 + Ftv_usec int64 +} /* time.h:54:1 */ + +type Timezone = struct { + Ftz_minuteswest int32 + Ftz_dsttime int32 +} /* time.h:86:1 */ + +// Needed for longlong_t type. Placement of this due to +// including which relies on the presense of the itimerval +// structure. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2021 Oxide Computer Company + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2016 Joyent, Inc. + +// Machine dependent definitions moved to . +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2007 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Machine dependent types: +// +// intel ia32 Version + +type X_label_t = struct{ Fval [8]int64 } /* machtypes.h:59:9 */ + +// Needed for longlong_t type. Placement of this due to +// including which relies on the presense of the itimerval +// structure. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2021 Oxide Computer Company + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2016 Joyent, Inc. + +// Machine dependent definitions moved to . +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2007 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Machine dependent types: +// +// intel ia32 Version + +type Label_t = X_label_t /* machtypes.h:59:54 */ + +type Lock_t = uint8 /* machtypes.h:63:23 */ // lock work for busy wait + +// Include fixed width type declarations proposed by the ISO/JTC1/SC22/WG14 C +// committee's working draft for the revision of the current ISO C standard, +// ISO/IEC 9899:1990 Programming language - C. These are not currently +// required by any standard but constitute a useful, general purpose set +// of type definitions which is namespace clean with respect to all standards. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2014 Garrett D'Amore +// +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// This file, , is part of the Sun Microsystems implementation +// of defined in the ISO C standard, ISO/IEC 9899:1999 +// Programming language - C. +// +// Programs/Modules should not directly include this file. Access to the +// types defined in this file should be through the inclusion of one of the +// following files: +// +// Provides only the "_t" types defined in this +// file which is a subset of the contents of +// . (This can be appropriate for +// all programs/modules except those claiming +// ANSI-C conformance.) +// +// Provides the Kernel and Driver appropriate +// components of . +// +// For use by applications. +// +// See these files for more details. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Basic / Extended integer types +// +// The following defines the basic fixed-size integer types. +// +// Implementations are free to typedef them to Standard C integer types or +// extensions that they support. If an implementation does not support one +// of the particular integer data types below, then it should not define the +// typedefs and macros corresponding to that data type. Note that int8_t +// is not defined in -Xs mode on ISAs for which the ABI specifies "char" +// as an unsigned entity because there is no way to define an eight bit +// signed integral. +type Int8_t = int8 /* int_types.h:75:16 */ +type Int16_t = int16 /* int_types.h:79:17 */ +type Int32_t = int32 /* int_types.h:80:15 */ +type Int64_t = int64 /* int_types.h:83:16 */ + +type Uint8_t = uint8 /* int_types.h:91:24 */ +type Uint16_t = uint16 /* int_types.h:92:25 */ +type Uint32_t = uint32 /* int_types.h:93:23 */ +type Uint64_t = uint64 /* int_types.h:95:24 */ + +// intmax_t and uintmax_t are to be the longest (in number of bits) signed +// and unsigned integer types supported by the implementation. +type Intmax_t = int64 /* int_types.h:107:19 */ +type Uintmax_t = uint64 /* int_types.h:108:19 */ + +// intptr_t and uintptr_t are signed and unsigned integer types large enough +// to hold any data pointer; that is, data pointers can be assigned into or +// from these integer types without losing precision. +type Intptr_t = int64 /* int_types.h:120:16 */ +type Uintptr_t = uint64 /* int_types.h:121:24 */ + +// The following define the fastest integer types that can hold the +// specified number of bits. +type Int_fast8_t = int8 /* int_types.h:132:16 */ +type Int_fast16_t = int32 /* int_types.h:136:15 */ +type Int_fast32_t = int32 /* int_types.h:137:15 */ +type Int_fast64_t = int64 /* int_types.h:139:16 */ + +type Uint_fast8_t = uint8 /* int_types.h:146:24 */ +type Uint_fast16_t = uint32 /* int_types.h:147:23 */ +type Uint_fast32_t = uint32 /* int_types.h:148:23 */ +type Uint_fast64_t = uint64 /* int_types.h:150:24 */ + +// The following define the smallest integer types that can hold the +// specified number of bits. +type Int_least8_t = int8 /* int_types.h:162:16 */ +type Int_least16_t = int16 /* int_types.h:166:17 */ +type Int_least32_t = int32 /* int_types.h:167:15 */ +type Int_least64_t = int64 /* int_types.h:169:16 */ + +// If these are changed, please update char16_t and char32_t in head/uchar.h. +type Uint_least8_t = uint8 /* int_types.h:179:24 */ +type Uint_least16_t = uint16 /* int_types.h:180:25 */ +type Uint_least32_t = uint32 /* int_types.h:181:23 */ +type Uint_least64_t = uint64 /* int_types.h:183:24 */ + +// Strictly conforming ANSI C environments prior to the 1999 +// revision of the C Standard (ISO/IEC 9899:1999) do not have +// the long long data type. +type Longlong_t = int64 /* types.h:72:20 */ +type U_longlong_t = uint64 /* types.h:73:28 */ + +// These types (t_{u}scalar_t) exist because the XTI/TPI/DLPI standards had +// to use them instead of int32_t and uint32_t because DEC had +// shipped 64-bit wide. +type T_scalar_t = int32 /* types.h:92:18 */ +type T_uscalar_t = uint32 /* types.h:93:18 */ + +// POSIX Extensions +type Uchar_t = uint8 /* types.h:102:23 */ +type Ushort_t = uint16 /* types.h:103:24 */ +type Uint_t = uint32 /* types.h:104:22 */ +type Ulong_t = uint64 /* types.h:105:23 */ + +type Caddr_t = uintptr /* types.h:107:15 */ // ? type +type Daddr_t = int64 /* types.h:108:15 */ // type +type Cnt_t = int16 /* types.h:109:16 */ // pointer difference + +// VM-related types +type Pfn_t = uint64 /* types.h:123:18 */ // page frame number +type Pgcnt_t = uint64 /* types.h:124:18 */ // number of pages +type Spgcnt_t = int64 /* types.h:125:15 */ // signed number of pages + +type Use_t = uint8 /* types.h:127:18 */ // use count for swap. +type Sysid_t = int16 /* types.h:128:16 */ +type Index_t = int16 /* types.h:129:16 */ +type Timeout_id_t = uintptr /* types.h:130:15 */ // opaque handle from timeout(9F) +type Bufcall_id_t = uintptr /* types.h:131:15 */ // opaque handle from bufcall(9F) + +// The size of off_t and related types depends on the setting of +// _FILE_OFFSET_BITS. (Note that other system headers define other types +// related to those defined here.) +// +// If _LARGEFILE64_SOURCE is defined, variants of these types that are +// explicitly 64 bits wide become available. + +type Off_t = int64 /* types.h:145:15 */ // offsets within files + +type Off64_t = int64 /* types.h:152:16 */ // offsets within files + +type Ino_t = uint64 /* types.h:161:18 */ // expanded inode type +type Blkcnt_t = int64 /* types.h:162:15 */ // count of file blocks +type Fsblkcnt_t = uint64 /* types.h:163:18 */ // count of file system blocks +type Fsfilcnt_t = uint64 /* types.h:164:18 */ // count of files + +type Ino64_t = uint64 /* types.h:174:16 */ // expanded inode type +type Blkcnt64_t = int64 /* types.h:175:18 */ // count of file blocks +type Fsblkcnt64_t = uint64 /* types.h:176:20 */ // count of file system blocks +type Fsfilcnt64_t = uint64 /* types.h:177:20 */ // count of files + +type Blksize_t = int32 /* types.h:187:14 */ // used for block sizes + +// The boolean_t type has had a varied amount of exposure over the years in +// terms of how its enumeration constants have been exposed. In particular, it +// originally used the __XOPEN_OR_POSIX macro to determine whether to prefix the +// B_TRUE and B_FALSE with an underscore. This check never included the +// question of if we were in a strict ANSI C environment or whether extensions +// were defined. +// +// Compilers such as clang started defaulting to always including an +// XOPEN_SOURCE declaration on behalf of users, but also noted __EXTENSIONS__. +// This would lead most software that had used the non-underscore versions to +// need it. As such, we have adjusted the non-strict XOPEN environment to retain +// its old behavior so as to minimize namespace pollution; however, we instead +// include both variants of the definitions in the generally visible version +// allowing software written in either world to hopefully end up in a good +// place. +// +// This isn't perfect, but should hopefully minimize the pain for folks actually +// trying to build software. +type Boolean_t = uint32 /* types.h:215:69 */ + +// The {u,}pad64_t types can be used in structures such that those structures +// may be accessed by code produced by compilation environments which don't +// support a 64 bit integral datatype. The intention is not to allow +// use of these fields in such environments, but to maintain the alignment +// and offsets of the structure. +// +// Similar comments for {u,}pad128_t. +// +// Note that these types do NOT generate any stronger alignment constraints +// than those available in the underlying ABI. See +type Pad64_t = int64 /* types.h:240:18 */ +type Upad64_t = uint64 /* types.h:241:18 */ + +type Pad128_t = struct { + F_q float64 + F__ccgo_pad1 [8]byte +} /* types.h:257:3 */ + +type Upad128_t = struct { + F_q float64 + F__ccgo_pad1 [8]byte +} /* types.h:262:3 */ + +type Offset_t = int64 /* types.h:264:20 */ +type U_offset_t = uint64 /* types.h:265:22 */ +type Len_t = uint64 /* types.h:266:22 */ +type Diskaddr_t = uint64 /* types.h:267:22 */ + +// Definitions remaining from previous partial support for 64-bit file +// offsets. This partial support for devices greater than 2gb requires +// compiler support for long long. +type Lloff_t = struct{ F_f int64 } /* types.h:284:3 */ + +type Lldaddr_t = struct{ F_f int64 } /* types.h:304:3 */ + +type K_fltset_t = uint32 /* types.h:317:16 */ // kernel fault set type + +// The following type is for various kinds of identifiers. The +// actual type must be the same for all since some system calls +// (such as sigsend) take arguments that may be any of these +// types. The enumeration type idtype_t defined in sys/procset.h +// is used to indicate what type of id is being specified -- +// a process id, process group id, session id, scheduling class id, +// user id, group id, project id, task id or zone id. +type Id_t = int32 /* types.h:329:14 */ + +type Lgrp_id_t = int32 /* types.h:334:15 */ // lgroup ID + +// Type useconds_t is an unsigned integral type capable of storing +// values at least in the range of zero to 1,000,000. +type Useconds_t = uint32 /* types.h:340:17 */ // Time, in microseconds + +// Typedefs for dev_t components. +type Major_t = uint32 /* types.h:351:16 */ // major part of device number +type Minor_t = uint32 /* types.h:352:16 */ // minor part of device number + +// The data type of a thread priority. +type Pri_t = int16 /* types.h:361:15 */ + +// The data type for a CPU flags field. (Can be extended to larger unsigned +// types, if needed, limited by ability to update atomically.) +type Cpu_flag_t = uint16 /* types.h:367:18 */ + +// For compatibility reasons the following typedefs (prefixed o_) +// can't grow regardless of the EFT definition. Although, +// applications should not explicitly use these typedefs +// they may be included via a system header definition. +// WARNING: These typedefs may be removed in a future +// release. +// +// ex. the definitions in s5inode.h (now obsoleted) +// remained small to preserve compatibility +// in the S5 file system type. +type O_mode_t = uint16 /* types.h:380:18 */ // old file attribute type +type O_dev_t = int16 /* types.h:381:15 */ // old device type +type O_uid_t = uint16 /* types.h:382:18 */ // old UID type +type O_gid_t = uint16 /* types.h:383:17 */ // old GID type +type O_nlink_t = int16 /* types.h:384:15 */ // old file link type +type O_pid_t = int16 /* types.h:385:15 */ // old process id type +type O_ino_t = uint16 /* types.h:386:18 */ // old inode type + +// POSIX and XOPEN Declarations +type Key_t = int32 /* types.h:392:13 */ // IPC key type +type Mode_t = uint32 /* types.h:394:16 */ // file attribute type + +type Uid_t = uint32 /* types.h:401:22 */ // UID type + +type Gid_t = uint32 /* types.h:404:15 */ // GID type + +type Datalink_id_t = uint32 /* types.h:406:18 */ +type Vrid_t = uint32 /* types.h:407:18 */ + +type Taskid_t = int32 /* types.h:409:17 */ +type Projid_t = int32 /* types.h:410:17 */ +type Poolid_t = int32 /* types.h:411:14 */ +type Zoneid_t = int32 /* types.h:412:14 */ +type Ctid_t = int32 /* types.h:413:14 */ + +// POSIX definitions are same as defined in thread.h and synch.h. +// Any changes made to here should be reflected in corresponding +// files as described in comments. +type Pthread_t = uint32 /* types.h:420:16 */ // = thread_t in thread.h +type Pthread_key_t = uint32 /* types.h:421:16 */ // = thread_key_t in thread.h + +// "Magic numbers" tagging synchronization object types + +type X_pthread_mutex = struct { + F__pthread_mutex_flags struct { + F__pthread_mutex_flag1 uint16 + F__pthread_mutex_flag2 uint8 + F__pthread_mutex_ceiling uint8 + F__pthread_mutex_type uint16 + F__pthread_mutex_magic uint16 + } + F__pthread_mutex_lock struct { + F__ccgo_pad1 [0]uint64 + F__pthread_mutex_lock64 struct{ F__pthread_mutex_pad [8]uint8 } + } + F__pthread_mutex_data uint64 +} /* types.h:429:9 */ + +// = thread_key_t in thread.h + +// "Magic numbers" tagging synchronization object types + +type Pthread_mutex_t = X_pthread_mutex /* types.h:448:3 */ + +type X_pthread_cond = struct { + F__pthread_cond_flags struct { + F__pthread_cond_flag [4]uint8 + F__pthread_cond_type uint16 + F__pthread_cond_magic uint16 + } + F__pthread_cond_data uint64 +} /* types.h:450:9 */ + +type Pthread_cond_t = X_pthread_cond /* types.h:457:3 */ + +// UNIX 98 Extension +type X_pthread_rwlock = struct { + F__pthread_rwlock_readers int32 + F__pthread_rwlock_type uint16 + F__pthread_rwlock_magic uint16 + F__pthread_rwlock_mutex Pthread_mutex_t + F__pthread_rwlock_readercv Pthread_cond_t + F__pthread_rwlock_writercv Pthread_cond_t +} /* types.h:462:9 */ + +// UNIX 98 Extension +type Pthread_rwlock_t = X_pthread_rwlock /* types.h:469:3 */ + +// SUSV3 +type Pthread_barrier_t = struct { + F__pthread_barrier_count uint32 + F__pthread_barrier_current uint32 + F__pthread_barrier_cycle uint64 + F__pthread_barrier_reserved uint64 + F__pthread_barrier_lock Pthread_mutex_t + F__pthread_barrier_cond Pthread_cond_t +} /* types.h:481:3 */ + +type Pthread_spinlock_t = Pthread_mutex_t /* types.h:483:25 */ + +// attributes for threads, dynamically allocated by library +type X_pthread_attr = struct{ F__pthread_attrp uintptr } /* types.h:488:9 */ + +// attributes for threads, dynamically allocated by library +type Pthread_attr_t = X_pthread_attr /* types.h:490:3 */ + +// attributes for mutex, dynamically allocated by library +type X_pthread_mutexattr = struct{ F__pthread_mutexattrp uintptr } /* types.h:495:9 */ + +// attributes for mutex, dynamically allocated by library +type Pthread_mutexattr_t = X_pthread_mutexattr /* types.h:497:3 */ + +// attributes for cond, dynamically allocated by library +type X_pthread_condattr = struct{ F__pthread_condattrp uintptr } /* types.h:502:9 */ + +// attributes for cond, dynamically allocated by library +type Pthread_condattr_t = X_pthread_condattr /* types.h:504:3 */ + +// pthread_once +type X_once = struct{ F__pthread_once_pad [4]uint64 } /* types.h:509:9 */ + +// pthread_once +type Pthread_once_t = X_once /* types.h:511:3 */ + +// UNIX 98 Extensions +// attributes for rwlock, dynamically allocated by library +type X_pthread_rwlockattr = struct{ F__pthread_rwlockattrp uintptr } /* types.h:517:9 */ + +// UNIX 98 Extensions +// attributes for rwlock, dynamically allocated by library +type Pthread_rwlockattr_t = X_pthread_rwlockattr /* types.h:519:3 */ + +// SUSV3 +// attributes for pthread_barrier_t, dynamically allocated by library +type Pthread_barrierattr_t = struct{ F__pthread_barrierattrp uintptr } /* types.h:527:3 */ + +type Dev_t = uint64 /* types.h:529:17 */ // expanded device type + +type Nlink_t = uint32 /* types.h:532:16 */ // file link type +type Pid_t = int32 /* types.h:533:13 */ // size of something in bytes + +type Ssize_t = int64 /* types.h:551:14 */ // size of something in bytes or -1 + +type Clock_t = int64 /* types.h:564:15 */ // relative time in a specified resolution + +type Clockid_t = int32 /* types.h:569:13 */ // clock identifier type + +type Timer_t = int32 /* types.h:574:13 */ // timer identifier type + +// BEGIN CSTYLED +type Unchar = uint8 /* types.h:580:23 */ +type Ushort = uint16 /* types.h:581:24 */ +type Uint = uint32 /* types.h:582:22 */ +type Ulong = uint64 /* types.h:583:23 */ +// END CSTYLED + +// The following is the value of type id_t to use to indicate the +// caller's current id. See procset.h for the type idtype_t +// which defines which kind of id is being specified. + +// The following value of type pfn_t is used to indicate +// invalid page frame number. + +// BEGIN CSTYLED +type U_char = uint8 /* types.h:650:23 */ +type U_short = uint16 /* types.h:651:24 */ +type U_int = uint32 /* types.h:652:22 */ +type U_long = uint64 /* types.h:653:23 */ +type X_quad = struct{ Fval [2]int32 } /* types.h:654:9 */ + +type Quad_t = X_quad /* types.h:654:38 */ // used by UFS +type Quad = Quad_t /* types.h:655:17 */ // used by UFS +// END CSTYLED + +// Nested include for BSD/sockets source compatibility. +// (The select macros used to be defined here). +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// +// Copyright 2010 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// University Copyright- Copyright (c) 1982, 1986, 1988 +// The Regents of the University of California +// All Rights Reserved +// +// University Acknowledgment- Portions of this document are derived from +// software developed by the University of California, Berkeley, and its +// contributors. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2005 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Implementation-private. This header should not be included +// directly by an application. The application should instead +// include which includes this header conditionally +// depending on which feature test macros are defined. By default, +// this header is included by . X/Open and POSIX +// standards requirements result in this header being included +// by only under a restricted set of conditions. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Time expressed in seconds and nanoseconds + +type Timespec = struct { + Ftv_sec int64 + Ftv_nsec int64 +} /* time_impl.h:57:9 */ + +// used by UFS +// END CSTYLED + +// Nested include for BSD/sockets source compatibility. +// (The select macros used to be defined here). +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// +// Copyright 2010 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// University Copyright- Copyright (c) 1982, 1986, 1988 +// The Regents of the University of California +// All Rights Reserved +// +// University Acknowledgment- Portions of this document are derived from +// software developed by the University of California, Berkeley, and its +// contributors. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2005 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Implementation-private. This header should not be included +// directly by an application. The application should instead +// include which includes this header conditionally +// depending on which feature test macros are defined. By default, +// this header is included by . X/Open and POSIX +// standards requirements result in this header being included +// by only under a restricted set of conditions. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Time expressed in seconds and nanoseconds + +type Timespec_t = Timespec /* time_impl.h:60:3 */ + +type Timestruc_t = Timespec /* time_impl.h:81:25 */ // definition per SVr4 + +// The following has been left in for backward compatibility. Portable +// applications should not use the structure name timestruc. + +// Timer specification +type Itimerspec = struct { + Fit_interval struct { + Ftv_sec int64 + Ftv_nsec int64 + } + Fit_value struct { + Ftv_sec int64 + Ftv_nsec int64 + } +} /* time_impl.h:95:9 */ + +// definition per SVr4 + +// The following has been left in for backward compatibility. Portable +// applications should not use the structure name timestruc. + +// Timer specification +type Itimerspec_t = Itimerspec /* time_impl.h:98:3 */ + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright (c) 1982, 1986, 1993 Regents of the University of California. +// All rights reserved. The Berkeley software License Agreement +// specifies the terms and conditions for redistribution. + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2020 OmniOS Community Edition (OmniOSce) Association. + +// Copyright (c) 2013, 2016 by Delphix. All rights reserved. + +// The sigset_t type is defined in and duplicated +// in as a result of XPG4v2 requirements. XPG6 +// now allows the visibility of signal.h in this header, however +// an order of inclusion problem occurs as a result of inclusion +// of in under certain conditions. +// Rather than include here, we've duplicated +// the sigset_t type instead. This type is required for the XPG6 +// introduced pselect() function also declared in this header. +type Sigset_t = struct{ F__sigbits [4]uint32 } /* select.h:76:3 */ + +// Select uses bit masks of file descriptors in longs. +// These macros manipulate such bit fields. +// FD_SETSIZE may be defined by the user, but the default here +// should be >= RLIM_FD_MAX. + +type Fd_mask = int64 /* select.h:92:14 */ +type Fds_mask = int64 /* select.h:94:14 */ + +// The value of _NBBY needs to be consistant with the value +// of NBBY in . + +type Fd_set1 = struct{ Ffds_bits [1024]int64 } /* select.h:120:9 */ + +// The value of _NBBY needs to be consistant with the value +// of NBBY in . + +type Fd_set = Fd_set1 /* select.h:125:3 */ + +// _VOID was defined to be either void or char but this is not +// required because previous SunOS compilers have accepted the void +// type. However, because many system header and source files use the +// void keyword, the volatile keyword, and ANSI C function prototypes, +// non-ANSI compilers cannot compile the system anyway. The _VOID macro +// should therefore not be used and remains for source compatibility +// only. +// CSTYLED + +// Operations on timevals. + +// Names of the interval timers, and structure +// defining a timer setting. +// time and when system is running on +// behalf of the process. +// time profiling of multithreaded +// programs. + +type Itimerval = struct { + Fit_interval struct { + Ftv_sec int64 + Ftv_usec int64 + } + Fit_value struct { + Ftv_sec int64 + Ftv_usec int64 + } +} /* time.h:209:1 */ + +// Definitions for commonly used resolutions. + +// Time expressed as a 64-bit nanosecond counter. +type Hrtime_t = int64 /* time.h:265:20 */ + +// The inclusion of is historical and was added for +// backward compatibility in delta 1.2 when a number of definitions +// were moved out of . More recently, the timespec and +// itimerspec structure definitions, along with the _CLOCK_*, CLOCK_*, +// _TIMER_*, and TIMER_* symbols were moved to , +// which is now included by . This change was due to POSIX +// 1003.1b-1993 and X/Open UNIX 98 requirements. For non-POSIX and +// non-X/Open applications, including this header will still make +// visible these definitions. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1988 AT&T +// All Rights Reserved + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2007 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2010 Nexenta Systems, Inc. Al rights reserved. +// Copyright 2016 Joyent, Inc. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1988 AT&T +// All Rights Reserved + +// Copyright 2014 Garrett D'Amore +// Copyright 2014 PALO, Richard. +// +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// An application should not include this header directly. Instead it +// should be included only through the inclusion of other Sun headers. +// +// The contents of this header is limited to identifiers specified in the +// C Standard. Any new identifiers specified in future amendments to the +// C Standard must be placed in this header. If these new identifiers +// are required to also be in the C++ Standard "std" namespace, then for +// anything other than macro definitions, corresponding "using" directives +// must also be added to . + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// This file and its contents are supplied under the terms of the +// Common Development and Distribution License ("CDDL"), version 1.0. +// You may only use this file in accordance with the terms of version +// 1.0 of the CDDL. +// +// A full copy of the text of the CDDL should have accompanied this +// source. A copy of the CDDL is also available via the Internet at +// http://www.illumos.org/license/CDDL. + +// Copyright 2014-2016 PALO, Richard. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// POSIX.1-2008 requires that the NULL macro be cast to type void *. + +type Tm = struct { + Ftm_sec int32 + Ftm_min int32 + Ftm_hour int32 + Ftm_mday int32 + Ftm_mon int32 + Ftm_year int32 + Ftm_wday int32 + Ftm_yday int32 + Ftm_isdst int32 +} /* time_iso.h:80:1 */ + +// Neither X/Open nor POSIX allow the inclusion of for the +// definition of the sigevent structure. Both require the inclusion +// of and when using the timer_create() function. +// However, X/Open also specifies that the sigevent structure be defined +// in as described in the header . This prevents +// compiler warnings for applications that only include and not +// also . The sigval union and the sigevent structure is +// therefore defined both here and in which gets included +// via inclusion of . +type Sigval = struct { + F__ccgo_pad1 [0]uint64 + Fsival_int int32 + F__ccgo_pad2 [4]byte +} /* time.h:125:1 */ + +type Sigevent = struct { + Fsigev_notify int32 + Fsigev_signo int32 + Fsigev_value struct { + F__ccgo_pad1 [0]uint64 + Fsival_int int32 + F__ccgo_pad2 [4]byte + } + Fsigev_notify_function uintptr + Fsigev_notify_attributes uintptr + F__sigev_pad2 int32 + F__ccgo_pad1 [4]byte +} /* time.h:133:1 */ + +type Locale_t = uintptr /* time.h:292:24 */ + +// The inclusion of is needed for the FD_CLR, +// FD_ISSET, FD_SET, and FD_SETSIZE macros as well as the +// select() prototype defined in the XOpen specifications +// beginning with XSH4v2. Placement required after definition +// for itimerval. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// +// Copyright 2010 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// University Copyright- Copyright (c) 1982, 1986, 1988 +// The Regents of the University of California +// All Rights Reserved +// +// University Acknowledgment- Portions of this document are derived from +// software developed by the University of California, Berkeley, and its +// contributors. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2021 Oxide Computer Company + +// _POSIX_VDISABLE has been defined in since the +// introduction of the header. The POSIX standard, IEEE Std. +// 1003.1-1988 also required the existence of _POSIX_VDISABLE in +// this header. Subsequent versions of the IEEE Standard as well +// as the X/Open specifications required that _POSIX_VDISABLE be +// defined in while still allowing for it's existence +// here. With the introduction of XPG6, _POSIX_VDISABLE can only +// be defined in . + +// required by termio.h and VCEOF/VCEOL + +// some defines required by POSIX + +// types defined by POSIX. These are better off in types.h, but +// the standard says that they have to be in termios.h. +type Tcflag_t = uint32 /* termios.h:81:22 */ +type Cc_t = uint8 /* termios.h:82:23 */ +type Speed_t = uint32 /* termios.h:83:22 */ + +// Ioctl control packet +type Termios = struct { + Fc_iflag uint32 + Fc_oflag uint32 + Fc_cflag uint32 + Fc_lflag uint32 + Fc_cc [19]uint8 + F__ccgo_pad1 [1]byte +} /* termios.h:88:1 */ + +// control characters +// 18 through 19 reserved for future use + +// control characters form Xenix termio.h + +// S5 default control chars +// CINTR, CERASE and CKILL modified to SunOS traditional values + +// input modes + +// output modes + +// control modes + +// 4.4BSD hardware flow control flags + +// line discipline 0 modes + +// Slots reserved for 386/XENIX compatibility - keyboard control + +// Softcarrier ioctls + +// termios ioctls + +// linux terminal ioctls we need to be aware of + +// The VMIN and VTIME and solaris overlap with VEOF and VEOL - This is +// perfectly legal except, linux expects them to be separate. So we keep +// them separately. +type Lx_cc = struct { + Fveof uint8 + Fveol uint8 + Fvmin uint8 + Fvtime uint8 +} /* termios.h:376:1 */ + +// NTP PPS ioctls + +// Argument filled in by TIOCGPPSEV +type Ppsclockev = struct { + Ftv struct { + Ftv_sec int64 + Ftv_usec int64 + } + Fserial uint32 + F__ccgo_pad1 [4]byte +} /* termios.h:391:1 */ + +// termios option flags + +// TIOC ioctls for BSD, ptys, job control and modem control + +// Slots for 386/XENIX compatibility +// BSD includes these ioctls in ttold.h + +// BSD ioctls that are not the same as XENIX are included here. +// There are also some relevant ioctls from SUN/BSD sys/ttycom.h +// BSD pty ioctls like TIOCPKT are not supported in SVR4. + +// POSIX job control ioctls + +// Miscellaneous + +// Modem control + +// pseudo-tty + +// Some more 386 xenix stuff + +// Slots for 386 compatibility + +// These are retained for 386/XENIX compatibility. + +// Returns a non-zero value if there +// are characters in the input queue. +// +// XXX - somebody is confused here. V7 had no such "ioctl", although XENIX may +// have added it; 4BSD had FIONREAD, which returned the number of characters +// waiting, and was supposed to work on all descriptors (i.e., every driver +// should make a stab at implementing it). + +// Speeds + +// Windowing structure to support JWINSIZE/TIOCSWINSZ/TIOCGWINSZ +type Winsize = struct { + Fws_row uint16 + Fws_col uint16 + Fws_xpixel uint16 + Fws_ypixel uint16 +} /* termios.h:580:1 */ + +var _ int8 /* gen.c:2:13: */ diff --git a/vendor/modernc.org/libc/termios/termios_linux_loong64.go b/vendor/modernc.org/libc/termios/termios_linux_loong64.go new file mode 100644 index 000000000..da9f24556 --- /dev/null +++ b/vendor/modernc.org/libc/termios/termios_linux_loong64.go @@ -0,0 +1,1184 @@ +// Code generated by 'ccgo termios/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o termios/termios_linux_loong64.go -pkgname termios', DO NOT EDIT. + +package termios + +import ( + "math" + "reflect" + "sync/atomic" + "unsafe" +) + +var _ = math.Pi +var _ reflect.Kind +var _ atomic.Value +var _ unsafe.Pointer + +const ( + ADDRB = 04000000000 // termios-c_cflag.h:37:1: + B0 = 0000000 // termios.h:33:1: + B1000000 = 0010010 // termios-baud.h:40:1: + B110 = 0000003 // termios.h:36:1: + B115200 = 0010002 // termios-baud.h:34:1: + B1152000 = 0010011 // termios-baud.h:41:1: + B1200 = 0000011 // termios.h:42:1: + B134 = 0000004 // termios.h:37:1: + B150 = 0000005 // termios.h:38:1: + B1500000 = 0010012 // termios-baud.h:42:1: + B1800 = 0000012 // termios.h:43:1: + B19200 = 0000016 // termios.h:47:1: + B200 = 0000006 // termios.h:39:1: + B2000000 = 0010013 // termios-baud.h:43:1: + B230400 = 0010003 // termios-baud.h:35:1: + B2400 = 0000013 // termios.h:44:1: + B2500000 = 0010014 // termios-baud.h:44:1: + B300 = 0000007 // termios.h:40:1: + B3000000 = 0010015 // termios-baud.h:45:1: + B3500000 = 0010016 // termios-baud.h:46:1: + B38400 = 0000017 // termios.h:48:1: + B4000000 = 0010017 // termios-baud.h:47:1: + B460800 = 0010004 // termios-baud.h:36:1: + B4800 = 0000014 // termios.h:45:1: + B50 = 0000001 // termios.h:34:1: + B500000 = 0010005 // termios-baud.h:37:1: + B57600 = 0010001 // termios-baud.h:33:1: + B576000 = 0010006 // termios-baud.h:38:1: + B600 = 0000010 // termios.h:41:1: + B75 = 0000002 // termios.h:35:1: + B921600 = 0010007 // termios-baud.h:39:1: + B9600 = 0000015 // termios.h:46:1: + BRKINT = 0000002 // termios-c_iflag.h:25:1: + BS0 = 0000000 // termios-c_oflag.h:48:1: + BS1 = 0020000 // termios-c_oflag.h:49:1: + BSDLY = 0020000 // termios-c_oflag.h:47:1: + CBAUD = 000000010017 // termios-baud.h:24:1: + CBAUDEX = 000000010000 // termios-baud.h:25:1: + CBRK = 0 // ttydefaults.h:83:1: + CDISCARD = 15 // ttydefaults.h:78:1: + CDSUSP = 25 // ttydefaults.h:74:1: + CEOF = 4 // ttydefaults.h:56:1: + CEOL = 0 // ttydefaults.h:60:1: + CEOT = 4 // ttydefaults.h:81:1: + CERASE = 0177 // ttydefaults.h:62:1: + CFLUSH = 15 // ttydefaults.h:85:1: + CIBAUD = 002003600000 // termios-baud.h:27:1: + CINTR = 3 // ttydefaults.h:63:1: + CKILL = 21 // ttydefaults.h:69:1: + CLNEXT = 22 // ttydefaults.h:77:1: + CLOCAL = 0004000 // termios-c_cflag.h:34:1: + CMIN = 1 // ttydefaults.h:70:1: + CMSPAR = 010000000000 // termios-baud.h:28:1: + CQUIT = 034 // ttydefaults.h:71:1: + CR0 = 0000000 // termios-c_oflag.h:38:1: + CR1 = 0001000 // termios-c_oflag.h:39:1: + CR2 = 0002000 // termios-c_oflag.h:40:1: + CR3 = 0003000 // termios-c_oflag.h:41:1: + CRDLY = 0003000 // termios-c_oflag.h:37:1: + CREAD = 0000200 // termios-c_cflag.h:30:1: + CREPRINT = 18 // ttydefaults.h:80:1: + CRPRNT = 18 // ttydefaults.h:84:1: + CRTSCTS = 020000000000 // termios-baud.h:29:1: + CS5 = 0000000 // termios-c_cflag.h:25:1: + CS6 = 0000020 // termios-c_cflag.h:26:1: + CS7 = 0000040 // termios-c_cflag.h:27:1: + CS8 = 0000060 // termios-c_cflag.h:28:1: + CSIZE = 0000060 // termios-c_cflag.h:24:1: + CSTART = 17 // ttydefaults.h:75:1: + CSTATUS = 0 // ttydefaults.h:67:1: + CSTOP = 19 // ttydefaults.h:76:1: + CSTOPB = 0000100 // termios-c_cflag.h:29:1: + CSUSP = 26 // ttydefaults.h:72:1: + CTIME = 0 // ttydefaults.h:73:1: + CWERASE = 23 // ttydefaults.h:79:1: + ECHO = 0000010 // termios-c_lflag.h:29:1: + ECHOCTL = 0001000 // termios-c_lflag.h:37:1: + ECHOE = 0000020 // termios-c_lflag.h:30:1: + ECHOK = 0000040 // termios-c_lflag.h:32:1: + ECHOKE = 0004000 // termios-c_lflag.h:45:1: + ECHONL = 0000100 // termios-c_lflag.h:33:1: + ECHOPRT = 0002000 // termios-c_lflag.h:42:1: + EXTA = 14 // termios.h:50:1: + EXTB = 15 // termios.h:51:1: + EXTPROC = 0200000 // termios-c_lflag.h:57:1: + FF0 = 0000000 // termios-c_oflag.h:51:1: + FF1 = 0100000 // termios-c_oflag.h:52:1: + FFDLY = 0100000 // termios-c_oflag.h:50:1: + FLUSHO = 0010000 // termios-c_lflag.h:48:1: + HUPCL = 0002000 // termios-c_cflag.h:33:1: + ICANON = 0000002 // termios-c_lflag.h:25:1: + ICRNL = 0000400 // termios-c_iflag.h:32:1: + IEXTEN = 0100000 // termios-c_lflag.h:54:1: + IGNBRK = 0000001 // termios-c_iflag.h:24:1: + IGNCR = 0000200 // termios-c_iflag.h:31:1: + IGNPAR = 0000004 // termios-c_iflag.h:26:1: + IMAXBEL = 0020000 // termios-c_iflag.h:38:1: + INLCR = 0000100 // termios-c_iflag.h:30:1: + INPCK = 0000020 // termios-c_iflag.h:28:1: + ISIG = 0000001 // termios-c_lflag.h:24:1: + ISTRIP = 0000040 // termios-c_iflag.h:29:1: + IUCLC = 0001000 // termios-c_iflag.h:33:1: + IUTF8 = 0040000 // termios-c_iflag.h:40:1: + IXANY = 0004000 // termios-c_iflag.h:36:1: + IXOFF = 0010000 // termios-c_iflag.h:37:1: + IXON = 0002000 // termios-c_iflag.h:35:1: + NCCS = 32 // termios-struct.h:23:1: + NL0 = 0000000 // termios-c_oflag.h:35:1: + NL1 = 0000400 // termios-c_oflag.h:36:1: + NLDLY = 0000400 // termios-c_oflag.h:34:1: + NOFLSH = 0000200 // termios-c_lflag.h:34:1: + OCRNL = 0000010 // termios-c_oflag.h:28:1: + OFDEL = 0000200 // termios-c_oflag.h:32:1: + OFILL = 0000100 // termios-c_oflag.h:31:1: + OLCUC = 0000002 // termios-c_oflag.h:25:1: + ONLCR = 0000004 // termios-c_oflag.h:27:1: + ONLRET = 0000040 // termios-c_oflag.h:30:1: + ONOCR = 0000020 // termios-c_oflag.h:29:1: + OPOST = 0000001 // termios-c_oflag.h:24:1: + PARENB = 0000400 // termios-c_cflag.h:31:1: + PARMRK = 0000010 // termios-c_iflag.h:27:1: + PARODD = 0001000 // termios-c_cflag.h:32:1: + PENDIN = 0040000 // termios-c_lflag.h:50:1: + TAB0 = 0000000 // termios-c_oflag.h:43:1: + TAB1 = 0004000 // termios-c_oflag.h:44:1: + TAB2 = 0010000 // termios-c_oflag.h:45:1: + TAB3 = 0014000 // termios-c_oflag.h:46:1: + TABDLY = 0014000 // termios-c_oflag.h:42:1: + TCIFLUSH = 0 // termios.h:70:1: + TCIOFF = 2 // termios.h:66:1: + TCIOFLUSH = 2 // termios.h:72:1: + TCION = 3 // termios.h:67:1: + TCOFLUSH = 1 // termios.h:71:1: + TCOOFF = 0 // termios.h:64:1: + TCOON = 1 // termios.h:65:1: + TCSADRAIN = 1 // termios-tcflow.h:25:1: + TCSAFLUSH = 2 // termios-tcflow.h:26:1: + TCSANOW = 0 // termios-tcflow.h:24:1: + TIOCSER_TEMT = 0x01 // termios.h:60:1: + TOSTOP = 0000400 // termios-c_lflag.h:35:1: + TTYDEF_CFLAG = 1440 // ttydefaults.h:49:1: + TTYDEF_IFLAG = 11554 // ttydefaults.h:46:1: + TTYDEF_LFLAG = 35355 // ttydefaults.h:48:1: + TTYDEF_OFLAG = 6149 // ttydefaults.h:47:1: + TTYDEF_SPEED = 13 // ttydefaults.h:50:1: + VDISCARD = 13 // termios-c_cc.h:37:1: + VEOF = 4 // termios-c_cc.h:28:1: + VEOL = 11 // termios-c_cc.h:35:1: + VEOL2 = 16 // termios-c_cc.h:40:1: + VERASE = 2 // termios-c_cc.h:26:1: + VINTR = 0 // termios-c_cc.h:24:1: + VKILL = 3 // termios-c_cc.h:27:1: + VLNEXT = 15 // termios-c_cc.h:39:1: + VMIN = 6 // termios-c_cc.h:30:1: + VQUIT = 1 // termios-c_cc.h:25:1: + VREPRINT = 12 // termios-c_cc.h:36:1: + VSTART = 8 // termios-c_cc.h:32:1: + VSTOP = 9 // termios-c_cc.h:33:1: + VSUSP = 10 // termios-c_cc.h:34:1: + VSWTC = 7 // termios-c_cc.h:31:1: + VT0 = 0000000 // termios-c_oflag.h:56:1: + VT1 = 0040000 // termios-c_oflag.h:57:1: + VTDLY = 0040000 // termios-c_oflag.h:55:1: + VTIME = 5 // termios-c_cc.h:29:1: + VWERASE = 14 // termios-c_cc.h:38:1: + XCASE = 0000004 // termios-c_lflag.h:27:1: + XTABS = 0014000 // termios-c_oflag.h:60:1: + X_ABILP64 = 3 // :377:1: + X_ATFILE_SOURCE = 1 // features.h:353:1: + X_BITS_TIME64_H = 1 // time64.h:24:1: + X_BITS_TYPESIZES_H = 1 // typesizes.h:24:1: + X_BITS_TYPES_H = 1 // types.h:24:1: + X_DEFAULT_SOURCE = 1 // features.h:238:1: + X_FEATURES_H = 1 // features.h:19:1: + X_FILE_OFFSET_BITS = 64 // :25:1: + X_HAVE_STRUCT_TERMIOS_C_ISPEED = 1 // termios-struct.h:34:1: + X_HAVE_STRUCT_TERMIOS_C_OSPEED = 1 // termios-struct.h:35:1: + X_LOONGARCH_ARCH = "loongarch64" // :214:1: + X_LOONGARCH_ARCH_LOONGARCH64 = 1 // :340:1: + X_LOONGARCH_FPSET = 32 // :265:1: + X_LOONGARCH_SIM = 3 // :233:1: + X_LOONGARCH_SPFPSET = 32 // :88:1: + X_LOONGARCH_SZINT = 32 // :230:1: + X_LOONGARCH_SZLONG = 64 // :388:1: + X_LOONGARCH_SZPTR = 64 // :200:1: + X_LOONGARCH_TUNE = "la464" // :245:1: + X_LOONGARCH_TUNE_LA464 = 1 // :63:1: + X_LP64 = 1 // :372:1: + X_POSIX_C_SOURCE = 200809 // features.h:292:1: + X_POSIX_SOURCE = 1 // features.h:290:1: + X_STDC_PREDEF_H = 1 // :223:1: + X_SYS_CDEFS_H = 1 // cdefs.h:20:1: + X_SYS_TTYDEFAULTS_H_ = 0 // ttydefaults.h:41:1: + X_TERMIOS_H = 1 // termios.h:23:1: + Linux = 1 // :308:1: + Unix = 1 // :247:1: +) + +type Ptrdiff_t = int64 /* :3:26 */ + +type Size_t = uint64 /* :9:23 */ + +type Wchar_t = int32 /* :15:24 */ + +type X__int128_t = struct { + Flo int64 + Fhi int64 +} /* :21:43 */ // must match modernc.org/mathutil.Int128 +type X__uint128_t = struct { + Flo uint64 + Fhi uint64 +} /* :22:44 */ // must match modernc.org/mathutil.Int128 + +type X__builtin_va_list = uintptr /* :46:14 */ +type X__float128 = float64 /* :47:21 */ + +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// POSIX Standard: 7.1-2 General Terminal Interface + +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// These are defined by the user (or the compiler) +// to specify the desired environment: +// +// __STRICT_ANSI__ ISO Standard C. +// _ISOC99_SOURCE Extensions to ISO C89 from ISO C99. +// _ISOC11_SOURCE Extensions to ISO C99 from ISO C11. +// _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X. +// __STDC_WANT_LIB_EXT2__ +// Extensions to ISO C99 from TR 27431-2:2010. +// __STDC_WANT_IEC_60559_BFP_EXT__ +// Extensions to ISO C11 from TS 18661-1:2014. +// __STDC_WANT_IEC_60559_FUNCS_EXT__ +// Extensions to ISO C11 from TS 18661-4:2015. +// __STDC_WANT_IEC_60559_TYPES_EXT__ +// Extensions to ISO C11 from TS 18661-3:2015. +// __STDC_WANT_IEC_60559_EXT__ +// ISO C2X interfaces defined only in Annex F. +// +// _POSIX_SOURCE IEEE Std 1003.1. +// _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2; +// if >=199309L, add IEEE Std 1003.1b-1993; +// if >=199506L, add IEEE Std 1003.1c-1995; +// if >=200112L, all of IEEE 1003.1-2004 +// if >=200809L, all of IEEE 1003.1-2008 +// _XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if +// Single Unix conformance is wanted, to 600 for the +// sixth revision, to 700 for the seventh revision. +// _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions. +// _LARGEFILE_SOURCE Some more functions for correct standard I/O. +// _LARGEFILE64_SOURCE Additional functionality from LFS for large files. +// _FILE_OFFSET_BITS=N Select default filesystem interface. +// _ATFILE_SOURCE Additional *at interfaces. +// _DYNAMIC_STACK_SIZE_SOURCE Select correct (but non compile-time constant) +// MINSIGSTKSZ, SIGSTKSZ and PTHREAD_STACK_MIN. +// _GNU_SOURCE All of the above, plus GNU extensions. +// _DEFAULT_SOURCE The default set of features (taking precedence over +// __STRICT_ANSI__). +// +// _FORTIFY_SOURCE Add security hardening to many library functions. +// Set to 1, 2 or 3; 3 performs stricter checks than 2, which +// performs stricter checks than 1. +// +// _REENTRANT, _THREAD_SAFE +// Obsolete; equivalent to _POSIX_C_SOURCE=199506L. +// +// The `-ansi' switch to the GNU C compiler, and standards conformance +// options such as `-std=c99', define __STRICT_ANSI__. If none of +// these are defined, or if _DEFAULT_SOURCE is defined, the default is +// to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to +// 200809L, as well as enabling miscellaneous functions from BSD and +// SVID. If more than one of these are defined, they accumulate. For +// example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together +// give you ISO C, 1003.1, and 1003.2, but nothing else. +// +// These are defined by this file and are used by the +// header files to decide what to declare or define: +// +// __GLIBC_USE (F) Define things from feature set F. This is defined +// to 1 or 0; the subsequent macros are either defined +// or undefined, and those tests should be moved to +// __GLIBC_USE. +// __USE_ISOC11 Define ISO C11 things. +// __USE_ISOC99 Define ISO C99 things. +// __USE_ISOC95 Define ISO C90 AMD1 (C95) things. +// __USE_ISOCXX11 Define ISO C++11 things. +// __USE_POSIX Define IEEE Std 1003.1 things. +// __USE_POSIX2 Define IEEE Std 1003.2 things. +// __USE_POSIX199309 Define IEEE Std 1003.1, and .1b things. +// __USE_POSIX199506 Define IEEE Std 1003.1, .1b, .1c and .1i things. +// __USE_XOPEN Define XPG things. +// __USE_XOPEN_EXTENDED Define X/Open Unix things. +// __USE_UNIX98 Define Single Unix V2 things. +// __USE_XOPEN2K Define XPG6 things. +// __USE_XOPEN2KXSI Define XPG6 XSI things. +// __USE_XOPEN2K8 Define XPG7 things. +// __USE_XOPEN2K8XSI Define XPG7 XSI things. +// __USE_LARGEFILE Define correct standard I/O things. +// __USE_LARGEFILE64 Define LFS things with separate names. +// __USE_FILE_OFFSET64 Define 64bit interface as default. +// __USE_MISC Define things from 4.3BSD or System V Unix. +// __USE_ATFILE Define *at interfaces and AT_* constants for them. +// __USE_DYNAMIC_STACK_SIZE Define correct (but non compile-time constant) +// MINSIGSTKSZ, SIGSTKSZ and PTHREAD_STACK_MIN. +// __USE_GNU Define GNU extensions. +// __USE_FORTIFY_LEVEL Additional security measures used, according to level. +// +// The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are +// defined by this file unconditionally. `__GNU_LIBRARY__' is provided +// only for compatibility. All new code should use the other symbols +// to test for features. +// +// All macros listed above as possibly being defined by this file are +// explicitly undefined if they are not explicitly defined. +// Feature-test macros that are not defined by the user or compiler +// but are implied by the other feature-test macros defined (or by the +// lack of any definitions) are defined by the file. +// +// ISO C feature test macros depend on the definition of the macro +// when an affected header is included, not when the first system +// header is included, and so they are handled in +// , which does not have a multiple include +// guard. Feature test macros that can be handled from the first +// system header included are handled here. + +// Undefine everything, so we get a clean slate. + +// Suppress kernel-name space pollution unless user expressedly asks +// for it. + +// Convenience macro to test the version of gcc. +// Use like this: +// #if __GNUC_PREREQ (2,8) +// ... code requiring gcc 2.8 or later ... +// #endif +// Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was +// added in 2.0. + +// Similarly for clang. Features added to GCC after version 4.2 may +// or may not also be available in clang, and clang's definitions of +// __GNUC(_MINOR)__ are fixed at 4 and 2 respectively. Not all such +// features can be queried via __has_extension/__has_feature. + +// Whether to use feature set F. + +// _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for +// _DEFAULT_SOURCE. If _DEFAULT_SOURCE is present we do not +// issue a warning; the expectation is that the source is being +// transitioned to use the new macro. + +// If _GNU_SOURCE was defined by the user, turn on all the other features. + +// If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined, +// define _DEFAULT_SOURCE. + +// This is to enable the ISO C2X extension. + +// This is to enable the ISO C11 extension. + +// This is to enable the ISO C99 extension. + +// This is to enable the ISO C90 Amendment 1:1995 extension. + +// If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE +// is defined, use POSIX.1-2008 (or another version depending on +// _XOPEN_SOURCE). + +// Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be +// defined in all multithreaded code. GNU libc has not required this +// for many years. We now treat them as compatibility synonyms for +// _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with +// comprehensive support for multithreaded code. Using them never +// lowers the selected level of POSIX conformance, only raises it. + +// Features part to handle 64-bit time_t support. +// Copyright (C) 2021-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// We need to know the word size in order to check the time size. +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Bit size of the time_t type at glibc build time, general case. +// Copyright (C) 2018-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Size in bits of the 'time_t' type of the default ABI. + +// The function 'gets' existed in C89, but is impossible to use +// safely. It has been removed from ISO C11 and ISO C++14. Note: for +// compatibility with various implementations of , this test +// must consider only the value of __cplusplus when compiling C++. + +// GNU formerly extended the scanf functions with modified format +// specifiers %as, %aS, and %a[...] that allocate a buffer for the +// input using malloc. This extension conflicts with ISO C99, which +// defines %a as a standalone format specifier that reads a floating- +// point number; moreover, POSIX.1-2008 provides the same feature +// using the modifier letter 'm' instead (%ms, %mS, %m[...]). +// +// We now follow C99 unless GNU extensions are active and the compiler +// is specifically in C89 or C++98 mode (strict or not). For +// instance, with GCC, -std=gnu11 will have C99-compliant scanf with +// or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the +// old extension. + +// ISO C2X added support for a 0b or 0B prefix on binary constants as +// inputs to strtol-family functions (base 0 or 2). This macro is +// used to condition redirection in headers to allow that redirection +// to be disabled when building those functions, despite _GNU_SOURCE +// being defined. + +// Get definitions of __STDC_* predefined macros, if the compiler has +// not preincluded this header automatically. +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// This macro indicates that the installed library is the GNU C Library. +// For historic reasons the value now is 6 and this will stay from now +// on. The use of this variable is deprecated. Use __GLIBC__ and +// __GLIBC_MINOR__ now (see below) when you want to test for a specific +// GNU C library version and use the values in to get +// the sonames of the shared libraries. + +// Major and minor version number of the GNU C library package. Use +// these macros to test for features in specific releases. + +// This is here only because every header file already includes this one. +// Copyright (C) 1992-2023 Free Software Foundation, Inc. +// Copyright The GNU Toolchain Authors. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// We are almost always included from features.h. + +// The GNU libc does not support any K&R compilers or the traditional mode +// of ISO C compilers anymore. Check for some of the combinations not +// supported anymore. + +// Some user header file might have defined this before. + +// Compilers that lack __has_attribute may object to +// #if defined __has_attribute && __has_attribute (...) +// even though they do not need to evaluate the right-hand side of the &&. +// Similarly for __has_builtin, etc. + +// All functions, except those with callbacks or those that +// synchronize memory, are leaf functions. + +// GCC can always grok prototypes. For C++ programs we add throw() +// to help it optimize the function calls. But this only works with +// gcc 2.8.x and egcs. For gcc 3.4 and up we even mark C functions +// as non-throwing using a function attribute since programs can use +// the -fexceptions options for C code as well. + +// These two macros are not used in glibc anymore. They are kept here +// only because some other projects expect the macros to be defined. + +// For these things, GCC behaves the ANSI way normally, +// and the non-ANSI way under -traditional. + +// This is not a typedef so `const __ptr_t' does the right thing. + +// C++ needs to know that types and declarations are C, not C++. + +// Fortify support. + +// Use __builtin_dynamic_object_size at _FORTIFY_SOURCE=3 when available. + +// Support for flexible arrays. +// Headers that should use flexible arrays only if they're "real" +// (e.g. only if they won't affect sizeof()) should test +// #if __glibc_c99_flexarr_available. + +// __asm__ ("xyz") is used throughout the headers to rename functions +// at the assembly language level. This is wrapped by the __REDIRECT +// macro, in order to support compilers that can do this some other +// way. When compilers don't support asm-names at all, we have to do +// preprocessor tricks instead (which don't have exactly the right +// semantics, but it's the best we can do). +// +// Example: +// int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid); + +// +// #elif __SOME_OTHER_COMPILER__ +// +// # define __REDIRECT(name, proto, alias) name proto; _Pragma("let " #name " = " #alias) + +// GCC and clang have various useful declarations that can be made with +// the '__attribute__' syntax. All of the ways we use this do fine if +// they are omitted for compilers that don't understand it. + +// At some point during the gcc 2.96 development the `malloc' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// Tell the compiler which arguments to an allocation function +// indicate the size of the allocation. + +// Tell the compiler which argument to an allocation function +// indicates the alignment of the allocation. + +// At some point during the gcc 2.96 development the `pure' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// This declaration tells the compiler that the value is constant. + +// At some point during the gcc 3.1 development the `used' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// Since version 3.2, gcc allows marking deprecated functions. + +// Since version 4.5, gcc also allows one to specify the message printed +// when a deprecated function is used. clang claims to be gcc 4.2, but +// may also support this feature. + +// At some point during the gcc 2.8 development the `format_arg' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. +// If several `format_arg' attributes are given for the same function, in +// gcc-3.0 and older, all but the last one are ignored. In newer gccs, +// all designated arguments are considered. + +// At some point during the gcc 2.97 development the `strfmon' format +// attribute for functions was introduced. We don't want to use it +// unconditionally (although this would be possible) since it +// generates warnings. + +// The nonnull function attribute marks pointer parameters that +// must not be NULL. This has the name __nonnull in glibc, +// and __attribute_nonnull__ in files shared with Gnulib to avoid +// collision with a different __nonnull in DragonFlyBSD 5.9. + +// The returns_nonnull function attribute marks the return type of the function +// as always being non-null. + +// If fortification mode, we warn about unused results of certain +// function calls which can lead to problems. + +// Forces a function to be always inlined. +// The Linux kernel defines __always_inline in stddef.h (283d7573), and +// it conflicts with this definition. Therefore undefine it first to +// allow either header to be included first. + +// Associate error messages with the source location of the call site rather +// than with the source location inside the function. + +// GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99 +// inline semantics, unless -fgnu89-inline is used. Using __GNUC_STDC_INLINE__ +// or __GNUC_GNU_INLINE is not a good enough check for gcc because gcc versions +// older than 4.3 may define these macros and still not guarantee GNU inlining +// semantics. +// +// clang++ identifies itself as gcc-4.2, but has support for GNU inlining +// semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and +// __GNUC_GNU_INLINE__ macro definitions. + +// GCC 4.3 and above allow passing all anonymous arguments of an +// __extern_always_inline function to some other vararg function. + +// It is possible to compile containing GCC extensions even if GCC is +// run in pedantic mode if the uses are carefully marked using the +// `__extension__' keyword. But this is not generally available before +// version 2.8. + +// __restrict is known in EGCS 1.2 and above, and in clang. +// It works also in C++ mode (outside of arrays), but only when spelled +// as '__restrict', not 'restrict'. + +// ISO C99 also allows to declare arrays as non-overlapping. The syntax is +// array_name[restrict] +// GCC 3.1 and clang support this. +// This syntax is not usable in C++ mode. + +// Describes a char array whose address can safely be passed as the first +// argument to strncpy and strncat, as the char array is not necessarily +// a NUL-terminated string. + +// Undefine (also defined in libc-symbols.h). +// Copies attributes from the declaration or type referenced by +// the argument. + +// Gnulib avoids including these, as they don't work on non-glibc or +// older glibc platforms. +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Properties of long double type. ldbl-128 version. +// Copyright (C) 2016-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// long double is distinct from double, so there is nothing to +// define here. + +// __glibc_macro_warning (MESSAGE) issues warning MESSAGE. This is +// intended for use in preprocessor macros. +// +// Note: MESSAGE must be a _single_ string; concatenation of string +// literals is not supported. + +// Generic selection (ISO C11) is a C-only feature, available in GCC +// since version 4.9. Previous versions do not provide generic +// selection, even though they might set __STDC_VERSION__ to 201112L, +// when in -std=c11 mode. Thus, we must check for !defined __GNUC__ +// when testing __STDC_VERSION__ for generic selection support. +// On the other hand, Clang also defines __GNUC__, so a clang-specific +// check is required to enable the use of generic selection. + +// Designates a 1-based positional argument ref-index of pointer type +// that can be used to access size-index elements of the pointed-to +// array according to access mode, or at least one element when +// size-index is not provided: +// access (access-mode, [, ]) +// For _FORTIFY_SOURCE == 3 we use __builtin_dynamic_object_size, which may +// use the access attribute to get object sizes from function definition +// arguments, so we can't use them on functions we fortify. Drop the object +// size hints for such functions. + +// Designates dealloc as a function to call to deallocate objects +// allocated by the declared function. + +// Specify that a function such as setjmp or vfork may return +// twice. + +// If we don't have __REDIRECT, prototypes will be missing if +// __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64]. + +// Decide whether we can define 'extern inline' functions in headers. + +// This is here only because every header file already includes this one. +// Get the definitions of all the appropriate `__stub_FUNCTION' symbols. +// contains `#define __stub_FUNCTION' when FUNCTION is a stub +// that will always return failure (and set errno to ENOSYS). +// This file is automatically generated. +// This file selects the right generated file of `__stub_FUNCTION' macros +// based on the architecture being compiled for. + +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// This file is automatically generated. +// It defines a symbol `__stub_FUNCTION' for each function +// in the C library which is a stub, meaning it will fail +// every time called, usually setting errno to ENOSYS. + +// We need `pid_t'. +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Bit size of the time_t type at glibc build time, general case. +// Copyright (C) 2018-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Size in bits of the 'time_t' type of the default ABI. + +// Convenience types. +type X__u_char = uint8 /* types.h:31:23 */ +type X__u_short = uint16 /* types.h:32:28 */ +type X__u_int = uint32 /* types.h:33:22 */ +type X__u_long = uint64 /* types.h:34:27 */ + +// Fixed-size types, underlying types depend on word size and compiler. +type X__int8_t = int8 /* types.h:37:21 */ +type X__uint8_t = uint8 /* types.h:38:23 */ +type X__int16_t = int16 /* types.h:39:26 */ +type X__uint16_t = uint16 /* types.h:40:28 */ +type X__int32_t = int32 /* types.h:41:20 */ +type X__uint32_t = uint32 /* types.h:42:22 */ +type X__int64_t = int64 /* types.h:44:25 */ +type X__uint64_t = uint64 /* types.h:45:27 */ + +// Smallest types with at least a given width. +type X__int_least8_t = int8 /* types.h:52:18 */ +type X__uint_least8_t = uint8 /* types.h:53:19 */ +type X__int_least16_t = int16 /* types.h:54:19 */ +type X__uint_least16_t = uint16 /* types.h:55:20 */ +type X__int_least32_t = int32 /* types.h:56:19 */ +type X__uint_least32_t = uint32 /* types.h:57:20 */ +type X__int_least64_t = int64 /* types.h:58:19 */ +type X__uint_least64_t = uint64 /* types.h:59:20 */ + +// quad_t is also 64 bits. +type X__quad_t = int64 /* types.h:63:18 */ +type X__u_quad_t = uint64 /* types.h:64:27 */ + +// Largest integral types. +type X__intmax_t = int64 /* types.h:72:18 */ +type X__uintmax_t = uint64 /* types.h:73:27 */ + +// The machine-dependent file defines __*_T_TYPE +// macros for each of the OS types we define below. The definitions +// of those macros must use the following macros for underlying types. +// We define __S_TYPE and __U_TYPE for the signed and unsigned +// variants of each of the following integer types on this machine. +// +// 16 -- "natural" 16-bit type (always short) +// 32 -- "natural" 32-bit type (always int) +// 64 -- "natural" 64-bit type (long or long long) +// LONG32 -- 32-bit type, traditionally long +// QUAD -- 64-bit type, traditionally long long +// WORD -- natural type of __WORDSIZE bits (int or long) +// LONGWORD -- type of __WORDSIZE bits, traditionally long +// +// We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the +// conventional uses of `long' or `long long' type modifiers match the +// types we define, even when a less-adorned type would be the same size. +// This matters for (somewhat) portably writing printf/scanf formats for +// these types, where using the appropriate l or ll format modifiers can +// make the typedefs and the formats match up across all GNU platforms. If +// we used `long' when it's 64 bits where `long long' is expected, then the +// compiler would warn about the formats not matching the argument types, +// and the programmer changing them to shut up the compiler would break the +// program's portability. +// +// Here we assume what is presently the case in all the GCC configurations +// we support: long long is always 64 bits, long is always word/address size, +// and int is always 32 bits. + +// No need to mark the typedef with __extension__. +// bits/typesizes.h -- underlying types for *_t. For the generic Linux ABI. +// Copyright (C) 2011-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library. If not, see +// . + +// See for the meaning of these macros. This file exists so +// that need not vary across different GNU platforms. + +// Tell the libc code that off_t and off64_t are actually the same type +// for all ABI purposes, even if possibly expressed as different base types +// for C type-checking purposes. + +// Same for ino_t and ino64_t. + +// And for __rlim_t and __rlim64_t. + +// And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t. + +// And for getitimer, setitimer and rusage + +// Number of descriptors that can fit in an `fd_set'. + +// bits/time64.h -- underlying types for __time64_t. Generic version. +// Copyright (C) 2018-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Define __TIME64_T_TYPE so that it is always a 64-bit type. + +// If we already have 64-bit time type then use it. + +type X__dev_t = uint64 /* types.h:145:25 */ // Type of device numbers. +type X__uid_t = uint32 /* types.h:146:25 */ // Type of user identifications. +type X__gid_t = uint32 /* types.h:147:25 */ // Type of group identifications. +type X__ino_t = uint64 /* types.h:148:25 */ // Type of file serial numbers. +type X__ino64_t = uint64 /* types.h:149:27 */ // Type of file serial numbers (LFS). +type X__mode_t = uint32 /* types.h:150:26 */ // Type of file attribute bitmasks. +type X__nlink_t = uint32 /* types.h:151:27 */ // Type of file link counts. +type X__off_t = int64 /* types.h:152:25 */ // Type of file sizes and offsets. +type X__off64_t = int64 /* types.h:153:27 */ // Type of file sizes and offsets (LFS). +type X__pid_t = int32 /* types.h:154:25 */ // Type of process identifications. +type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs. +type X__clock_t = int64 /* types.h:156:27 */ // Type of CPU usage counts. +type X__rlim_t = uint64 /* types.h:157:26 */ // Type for resource measurement. +type X__rlim64_t = uint64 /* types.h:158:28 */ // Type for resource measurement (LFS). +type X__id_t = uint32 /* types.h:159:24 */ // General type for IDs. +type X__time_t = int64 /* types.h:160:26 */ // Seconds since the Epoch. +type X__useconds_t = uint32 /* types.h:161:30 */ // Count of microseconds. +type X__suseconds_t = int64 /* types.h:162:31 */ // Signed count of microseconds. +type X__suseconds64_t = int64 /* types.h:163:33 */ + +type X__daddr_t = int32 /* types.h:165:27 */ // The type of a disk address. +type X__key_t = int32 /* types.h:166:25 */ // Type of an IPC key. + +// Clock ID used in clock and timer functions. +type X__clockid_t = int32 /* types.h:169:29 */ + +// Timer ID returned by `timer_create'. +type X__timer_t = uintptr /* types.h:172:12 */ + +// Type to represent block size. +type X__blksize_t = int32 /* types.h:175:29 */ + +// Types from the Large File Support interface. + +// Type to count number of disk blocks. +type X__blkcnt_t = int64 /* types.h:180:28 */ +type X__blkcnt64_t = int64 /* types.h:181:30 */ + +// Type to count file system blocks. +type X__fsblkcnt_t = uint64 /* types.h:184:30 */ +type X__fsblkcnt64_t = uint64 /* types.h:185:32 */ + +// Type to count file system nodes. +type X__fsfilcnt_t = uint64 /* types.h:188:30 */ +type X__fsfilcnt64_t = uint64 /* types.h:189:32 */ + +// Type of miscellaneous file system fields. +type X__fsword_t = int64 /* types.h:192:28 */ + +type X__ssize_t = int64 /* types.h:194:27 */ // Type of a byte count, or error. + +// Signed long type used in system calls. +type X__syscall_slong_t = int64 /* types.h:197:33 */ +// Unsigned long type used in system calls. +type X__syscall_ulong_t = uint64 /* types.h:199:33 */ + +// These few don't really vary by system, they always correspond +// +// to one of the other defined types. +type X__loff_t = int64 /* types.h:203:19 */ // Type of file sizes and offsets (LFS). +type X__caddr_t = uintptr /* types.h:204:14 */ + +// Duplicates info from stdint.h but this is used in unistd.h. +type X__intptr_t = int64 /* types.h:207:25 */ + +// Duplicate info from sys/socket.h. +type X__socklen_t = uint32 /* types.h:210:23 */ + +// C99: An integer type that can be accessed as an atomic entity, +// +// even in the presence of asynchronous interrupts. +// It is not currently necessary for this to be machine-specific. +type X__sig_atomic_t = int32 /* types.h:215:13 */ + +// Seconds since the Epoch, visible to user code when time_t is too +// narrow only for consistency with the old way of widening too-narrow +// types. User code should never use __time64_t. + +type Pid_t = int32 /* termios.h:30:17 */ + +// Get the system-dependent definitions of `struct termios', `tcflag_t', +// `cc_t', `speed_t', and all the macros specifying the flag bits. +// termios type and macro definitions. Linux version. +// Copyright (C) 1993-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +type Cc_t = uint8 /* termios.h:23:23 */ +type Speed_t = uint32 /* termios.h:24:22 */ +type Tcflag_t = uint32 /* termios.h:25:22 */ + +// struct termios definition. Linux/generic version. +// Copyright (C) 2019-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library. If not, see +// . + +type Termios = struct { + Fc_iflag uint32 + Fc_oflag uint32 + Fc_cflag uint32 + Fc_lflag uint32 + Fc_line uint8 + Fc_cc [32]uint8 + F__ccgo_pad1 [3]byte + Fc_ispeed uint32 + Fc_ospeed uint32 +} /* termios-struct.h:24:1 */ + +// - +// Copyright (c) 1982, 1986, 1993 +// The Regents of the University of California. All rights reserved. +// (c) UNIX System Laboratories, Inc. +// All or some portions of this file are derived from material licensed +// to the University of California by American Telephone and Telegraph +// Co. or Unix System Laboratories, Inc. and are reproduced herein with +// the permission of UNIX System Laboratories, Inc. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// 1. Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// 2. Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer in the +// documentation and/or other materials provided with the distribution. +// 4. Neither the name of the University nor the names of its contributors +// may be used to endorse or promote products derived from this software +// without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +// SUCH DAMAGE. +// +// @(#)ttydefaults.h 8.4 (Berkeley) 1/21/94 + +// System wide defaults for terminal state. Linux version. + +// Defaults on "first" open. + +// Control Character Defaults +// compat + +// PROTECTED INCLUSION ENDS HERE + +// #define TTYDEFCHARS to include an array of default control characters. + +var _ int8 /* gen.c:2:13: */ diff --git a/vendor/modernc.org/libc/termios/termios_linux_mips64le.go b/vendor/modernc.org/libc/termios/termios_linux_mips64le.go new file mode 100644 index 000000000..494b20174 --- /dev/null +++ b/vendor/modernc.org/libc/termios/termios_linux_mips64le.go @@ -0,0 +1,1024 @@ +// Code generated by 'ccgo termios/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o termios/termios_linux_amd64.go -pkgname termios', DO NOT EDIT. + +package termios + +import ( + "math" + "reflect" + "sync/atomic" + "unsafe" +) + +var _ = math.Pi +var _ reflect.Kind +var _ atomic.Value +var _ unsafe.Pointer + +const ( + B0 = 0000000 // termios.h:33:1: + B1000000 = 0010010 // termios-baud.h:40:1: + B110 = 0000003 // termios.h:36:1: + B115200 = 0010002 // termios-baud.h:34:1: + B1152000 = 0010011 // termios-baud.h:41:1: + B1200 = 0000011 // termios.h:42:1: + B134 = 0000004 // termios.h:37:1: + B150 = 0000005 // termios.h:38:1: + B1500000 = 0010012 // termios-baud.h:42:1: + B1800 = 0000012 // termios.h:43:1: + B19200 = 0000016 // termios.h:47:1: + B200 = 0000006 // termios.h:39:1: + B2000000 = 0010013 // termios-baud.h:43:1: + B230400 = 0010003 // termios-baud.h:35:1: + B2400 = 0000013 // termios.h:44:1: + B2500000 = 0010014 // termios-baud.h:44:1: + B300 = 0000007 // termios.h:40:1: + B3000000 = 0010015 // termios-baud.h:45:1: + B3500000 = 0010016 // termios-baud.h:46:1: + B38400 = 0000017 // termios.h:48:1: + B4000000 = 0010017 // termios-baud.h:47:1: + B460800 = 0010004 // termios-baud.h:36:1: + B4800 = 0000014 // termios.h:45:1: + B50 = 0000001 // termios.h:34:1: + B500000 = 0010005 // termios-baud.h:37:1: + B57600 = 0010001 // termios-baud.h:33:1: + B576000 = 0010006 // termios-baud.h:38:1: + B600 = 0000010 // termios.h:41:1: + B75 = 0000002 // termios.h:35:1: + B921600 = 0010007 // termios-baud.h:39:1: + B9600 = 0000015 // termios.h:46:1: + BRKINT = 0000002 // termios-c_iflag.h:25:1: + BS0 = 0000000 // termios-c_oflag.h:48:1: + BS1 = 0020000 // termios-c_oflag.h:49:1: + BSDLY = 0020000 // termios-c_oflag.h:47:1: + CBAUD = 000000010017 // termios-baud.h:24:1: + CBAUDEX = 000000010000 // termios-baud.h:25:1: + CBRK = 0 // ttydefaults.h:83:1: + CDISCARD = 15 // ttydefaults.h:78:1: + CDSUSP = 25 // ttydefaults.h:74:1: + CEOF = 4 // ttydefaults.h:56:1: + CEOL = 0 // ttydefaults.h:60:1: + CEOT = 4 // ttydefaults.h:81:1: + CERASE = 0177 // ttydefaults.h:62:1: + CFLUSH = 15 // ttydefaults.h:85:1: + CIBAUD = 002003600000 // termios-baud.h:27:1: + CINTR = 3 // ttydefaults.h:63:1: + CKILL = 21 // ttydefaults.h:69:1: + CLNEXT = 22 // ttydefaults.h:77:1: + CLOCAL = 0004000 // termios-c_cflag.h:34:1: + CMIN = 1 // ttydefaults.h:70:1: + CMSPAR = 010000000000 // termios-baud.h:28:1: + CQUIT = 034 // ttydefaults.h:71:1: + CR0 = 0000000 // termios-c_oflag.h:38:1: + CR1 = 0001000 // termios-c_oflag.h:39:1: + CR2 = 0002000 // termios-c_oflag.h:40:1: + CR3 = 0003000 // termios-c_oflag.h:41:1: + CRDLY = 0003000 // termios-c_oflag.h:37:1: + CREAD = 0000200 // termios-c_cflag.h:30:1: + CREPRINT = 18 // ttydefaults.h:80:1: + CRPRNT = 18 // ttydefaults.h:84:1: + CRTSCTS = 020000000000 // termios-baud.h:29:1: + CS5 = 0000000 // termios-c_cflag.h:25:1: + CS6 = 0000020 // termios-c_cflag.h:26:1: + CS7 = 0000040 // termios-c_cflag.h:27:1: + CS8 = 0000060 // termios-c_cflag.h:28:1: + CSIZE = 0000060 // termios-c_cflag.h:24:1: + CSTART = 17 // ttydefaults.h:75:1: + CSTATUS = 0 // ttydefaults.h:67:1: + CSTOP = 19 // ttydefaults.h:76:1: + CSTOPB = 0000100 // termios-c_cflag.h:29:1: + CSUSP = 26 // ttydefaults.h:72:1: + CTIME = 0 // ttydefaults.h:73:1: + CWERASE = 23 // ttydefaults.h:79:1: + ECHO = 0000010 // termios-c_lflag.h:29:1: + ECHOCTL = 0001000 // termios-c_lflag.h:37:1: + ECHOE = 0000020 // termios-c_lflag.h:30:1: + ECHOK = 0000040 // termios-c_lflag.h:32:1: + ECHOKE = 0004000 // termios-c_lflag.h:45:1: + ECHONL = 0000100 // termios-c_lflag.h:33:1: + ECHOPRT = 0002000 // termios-c_lflag.h:42:1: + EXTA = 14 // termios.h:50:1: + EXTB = 15 // termios.h:51:1: + EXTPROC = 0200000 // termios-c_lflag.h:57:1: + FF0 = 0000000 // termios-c_oflag.h:51:1: + FF1 = 0100000 // termios-c_oflag.h:52:1: + FFDLY = 0100000 // termios-c_oflag.h:50:1: + FLUSHO = 0010000 // termios-c_lflag.h:48:1: + HUPCL = 0002000 // termios-c_cflag.h:33:1: + ICANON = 0000002 // termios-c_lflag.h:25:1: + ICRNL = 0000400 // termios-c_iflag.h:32:1: + IEXTEN = 0100000 // termios-c_lflag.h:54:1: + IGNBRK = 0000001 // termios-c_iflag.h:24:1: + IGNCR = 0000200 // termios-c_iflag.h:31:1: + IGNPAR = 0000004 // termios-c_iflag.h:26:1: + IMAXBEL = 0020000 // termios-c_iflag.h:38:1: + INLCR = 0000100 // termios-c_iflag.h:30:1: + INPCK = 0000020 // termios-c_iflag.h:28:1: + ISIG = 0000001 // termios-c_lflag.h:24:1: + ISTRIP = 0000040 // termios-c_iflag.h:29:1: + IUCLC = 0001000 // termios-c_iflag.h:33:1: + IUTF8 = 0040000 // termios-c_iflag.h:40:1: + IXANY = 0004000 // termios-c_iflag.h:36:1: + IXOFF = 0010000 // termios-c_iflag.h:37:1: + IXON = 0002000 // termios-c_iflag.h:35:1: + NCCS = 32 // termios-struct.h:23:1: + NL0 = 0000000 // termios-c_oflag.h:35:1: + NL1 = 0000400 // termios-c_oflag.h:36:1: + NLDLY = 0000400 // termios-c_oflag.h:34:1: + NOFLSH = 0000200 // termios-c_lflag.h:34:1: + OCRNL = 0000010 // termios-c_oflag.h:28:1: + OFDEL = 0000200 // termios-c_oflag.h:32:1: + OFILL = 0000100 // termios-c_oflag.h:31:1: + OLCUC = 0000002 // termios-c_oflag.h:25:1: + ONLCR = 0000004 // termios-c_oflag.h:27:1: + ONLRET = 0000040 // termios-c_oflag.h:30:1: + ONOCR = 0000020 // termios-c_oflag.h:29:1: + OPOST = 0000001 // termios-c_oflag.h:24:1: + PARENB = 0000400 // termios-c_cflag.h:31:1: + PARMRK = 0000010 // termios-c_iflag.h:27:1: + PARODD = 0001000 // termios-c_cflag.h:32:1: + PENDIN = 0040000 // termios-c_lflag.h:50:1: + TAB0 = 0000000 // termios-c_oflag.h:43:1: + TAB1 = 0004000 // termios-c_oflag.h:44:1: + TAB2 = 0010000 // termios-c_oflag.h:45:1: + TAB3 = 0014000 // termios-c_oflag.h:46:1: + TABDLY = 0014000 // termios-c_oflag.h:42:1: + TCIFLUSH = 0 // termios.h:70:1: + TCIOFF = 2 // termios.h:66:1: + TCIOFLUSH = 2 // termios.h:72:1: + TCION = 3 // termios.h:67:1: + TCOFLUSH = 1 // termios.h:71:1: + TCOOFF = 0 // termios.h:64:1: + TCOON = 1 // termios.h:65:1: + TCSADRAIN = 1 // termios-tcflow.h:25:1: + TCSAFLUSH = 2 // termios-tcflow.h:26:1: + TCSANOW = 0 // termios-tcflow.h:24:1: + TIOCSER_TEMT = 0x01 // termios.h:60:1: + TOSTOP = 0000400 // termios-c_lflag.h:35:1: + TTYDEF_CFLAG = 1440 // ttydefaults.h:49:1: + TTYDEF_IFLAG = 11554 // ttydefaults.h:46:1: + TTYDEF_LFLAG = 35355 // ttydefaults.h:48:1: + TTYDEF_OFLAG = 6149 // ttydefaults.h:47:1: + TTYDEF_SPEED = 13 // ttydefaults.h:50:1: + VDISCARD = 13 // termios-c_cc.h:37:1: + VEOF = 4 // termios-c_cc.h:28:1: + VEOL = 11 // termios-c_cc.h:35:1: + VEOL2 = 16 // termios-c_cc.h:40:1: + VERASE = 2 // termios-c_cc.h:26:1: + VINTR = 0 // termios-c_cc.h:24:1: + VKILL = 3 // termios-c_cc.h:27:1: + VLNEXT = 15 // termios-c_cc.h:39:1: + VMIN = 6 // termios-c_cc.h:30:1: + VQUIT = 1 // termios-c_cc.h:25:1: + VREPRINT = 12 // termios-c_cc.h:36:1: + VSTART = 8 // termios-c_cc.h:32:1: + VSTOP = 9 // termios-c_cc.h:33:1: + VSUSP = 10 // termios-c_cc.h:34:1: + VSWTC = 7 // termios-c_cc.h:31:1: + VT0 = 0000000 // termios-c_oflag.h:56:1: + VT1 = 0040000 // termios-c_oflag.h:57:1: + VTDLY = 0040000 // termios-c_oflag.h:55:1: + VTIME = 5 // termios-c_cc.h:29:1: + VWERASE = 14 // termios-c_cc.h:38:1: + XCASE = 0000004 // termios-c_lflag.h:27:1: + XTABS = 0014000 // termios-c_oflag.h:60:1: + X_ATFILE_SOURCE = 1 // features.h:342:1: + X_BITS_TIME64_H = 1 // time64.h:24:1: + X_BITS_TYPESIZES_H = 1 // typesizes.h:24:1: + X_BITS_TYPES_H = 1 // types.h:24:1: + X_DEFAULT_SOURCE = 1 // features.h:227:1: + X_FEATURES_H = 1 // features.h:19:1: + X_FILE_OFFSET_BITS = 64 // :25:1: + X_HAVE_STRUCT_TERMIOS_C_ISPEED = 1 // termios-struct.h:34:1: + X_HAVE_STRUCT_TERMIOS_C_OSPEED = 1 // termios-struct.h:35:1: + X_LP64 = 1 // :284:1: + X_POSIX_C_SOURCE = 200809 // features.h:281:1: + X_POSIX_SOURCE = 1 // features.h:279:1: + X_STDC_PREDEF_H = 1 // :162:1: + X_SYS_CDEFS_H = 1 // cdefs.h:19:1: + X_SYS_TTYDEFAULTS_H_ = 0 // ttydefaults.h:41:1: + X_TERMIOS_H = 1 // termios.h:23:1: + Linux = 1 // :231:1: + Unix = 1 // :177:1: +) + +type Ptrdiff_t = int64 /* :3:26 */ + +type Size_t = uint64 /* :9:23 */ + +type Wchar_t = int32 /* :15:24 */ + +type X__int128_t = struct { + Flo int64 + Fhi int64 +} /* :21:43 */ // must match modernc.org/mathutil.Int128 +type X__uint128_t = struct { + Flo uint64 + Fhi uint64 +} /* :22:44 */ // must match modernc.org/mathutil.Int128 + +type X__builtin_va_list = uintptr /* :46:14 */ +type X__float128 = float64 /* :47:21 */ + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// POSIX Standard: 7.1-2 General Terminal Interface + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// These are defined by the user (or the compiler) +// to specify the desired environment: +// +// __STRICT_ANSI__ ISO Standard C. +// _ISOC99_SOURCE Extensions to ISO C89 from ISO C99. +// _ISOC11_SOURCE Extensions to ISO C99 from ISO C11. +// _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X. +// __STDC_WANT_LIB_EXT2__ +// Extensions to ISO C99 from TR 27431-2:2010. +// __STDC_WANT_IEC_60559_BFP_EXT__ +// Extensions to ISO C11 from TS 18661-1:2014. +// __STDC_WANT_IEC_60559_FUNCS_EXT__ +// Extensions to ISO C11 from TS 18661-4:2015. +// __STDC_WANT_IEC_60559_TYPES_EXT__ +// Extensions to ISO C11 from TS 18661-3:2015. +// +// _POSIX_SOURCE IEEE Std 1003.1. +// _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2; +// if >=199309L, add IEEE Std 1003.1b-1993; +// if >=199506L, add IEEE Std 1003.1c-1995; +// if >=200112L, all of IEEE 1003.1-2004 +// if >=200809L, all of IEEE 1003.1-2008 +// _XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if +// Single Unix conformance is wanted, to 600 for the +// sixth revision, to 700 for the seventh revision. +// _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions. +// _LARGEFILE_SOURCE Some more functions for correct standard I/O. +// _LARGEFILE64_SOURCE Additional functionality from LFS for large files. +// _FILE_OFFSET_BITS=N Select default filesystem interface. +// _ATFILE_SOURCE Additional *at interfaces. +// _GNU_SOURCE All of the above, plus GNU extensions. +// _DEFAULT_SOURCE The default set of features (taking precedence over +// __STRICT_ANSI__). +// +// _FORTIFY_SOURCE Add security hardening to many library functions. +// Set to 1 or 2; 2 performs stricter checks than 1. +// +// _REENTRANT, _THREAD_SAFE +// Obsolete; equivalent to _POSIX_C_SOURCE=199506L. +// +// The `-ansi' switch to the GNU C compiler, and standards conformance +// options such as `-std=c99', define __STRICT_ANSI__. If none of +// these are defined, or if _DEFAULT_SOURCE is defined, the default is +// to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to +// 200809L, as well as enabling miscellaneous functions from BSD and +// SVID. If more than one of these are defined, they accumulate. For +// example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together +// give you ISO C, 1003.1, and 1003.2, but nothing else. +// +// These are defined by this file and are used by the +// header files to decide what to declare or define: +// +// __GLIBC_USE (F) Define things from feature set F. This is defined +// to 1 or 0; the subsequent macros are either defined +// or undefined, and those tests should be moved to +// __GLIBC_USE. +// __USE_ISOC11 Define ISO C11 things. +// __USE_ISOC99 Define ISO C99 things. +// __USE_ISOC95 Define ISO C90 AMD1 (C95) things. +// __USE_ISOCXX11 Define ISO C++11 things. +// __USE_POSIX Define IEEE Std 1003.1 things. +// __USE_POSIX2 Define IEEE Std 1003.2 things. +// __USE_POSIX199309 Define IEEE Std 1003.1, and .1b things. +// __USE_POSIX199506 Define IEEE Std 1003.1, .1b, .1c and .1i things. +// __USE_XOPEN Define XPG things. +// __USE_XOPEN_EXTENDED Define X/Open Unix things. +// __USE_UNIX98 Define Single Unix V2 things. +// __USE_XOPEN2K Define XPG6 things. +// __USE_XOPEN2KXSI Define XPG6 XSI things. +// __USE_XOPEN2K8 Define XPG7 things. +// __USE_XOPEN2K8XSI Define XPG7 XSI things. +// __USE_LARGEFILE Define correct standard I/O things. +// __USE_LARGEFILE64 Define LFS things with separate names. +// __USE_FILE_OFFSET64 Define 64bit interface as default. +// __USE_MISC Define things from 4.3BSD or System V Unix. +// __USE_ATFILE Define *at interfaces and AT_* constants for them. +// __USE_GNU Define GNU extensions. +// __USE_FORTIFY_LEVEL Additional security measures used, according to level. +// +// The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are +// defined by this file unconditionally. `__GNU_LIBRARY__' is provided +// only for compatibility. All new code should use the other symbols +// to test for features. +// +// All macros listed above as possibly being defined by this file are +// explicitly undefined if they are not explicitly defined. +// Feature-test macros that are not defined by the user or compiler +// but are implied by the other feature-test macros defined (or by the +// lack of any definitions) are defined by the file. +// +// ISO C feature test macros depend on the definition of the macro +// when an affected header is included, not when the first system +// header is included, and so they are handled in +// , which does not have a multiple include +// guard. Feature test macros that can be handled from the first +// system header included are handled here. + +// Undefine everything, so we get a clean slate. + +// Suppress kernel-name space pollution unless user expressedly asks +// for it. + +// Convenience macro to test the version of gcc. +// Use like this: +// #if __GNUC_PREREQ (2,8) +// ... code requiring gcc 2.8 or later ... +// #endif +// Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was +// added in 2.0. + +// Similarly for clang. Features added to GCC after version 4.2 may +// or may not also be available in clang, and clang's definitions of +// __GNUC(_MINOR)__ are fixed at 4 and 2 respectively. Not all such +// features can be queried via __has_extension/__has_feature. + +// Whether to use feature set F. + +// _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for +// _DEFAULT_SOURCE. If _DEFAULT_SOURCE is present we do not +// issue a warning; the expectation is that the source is being +// transitioned to use the new macro. + +// If _GNU_SOURCE was defined by the user, turn on all the other features. + +// If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined, +// define _DEFAULT_SOURCE. + +// This is to enable the ISO C2X extension. + +// This is to enable the ISO C11 extension. + +// This is to enable the ISO C99 extension. + +// This is to enable the ISO C90 Amendment 1:1995 extension. + +// If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE +// is defined, use POSIX.1-2008 (or another version depending on +// _XOPEN_SOURCE). + +// Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be +// defined in all multithreaded code. GNU libc has not required this +// for many years. We now treat them as compatibility synonyms for +// _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with +// comprehensive support for multithreaded code. Using them never +// lowers the selected level of POSIX conformance, only raises it. + +// The function 'gets' existed in C89, but is impossible to use +// safely. It has been removed from ISO C11 and ISO C++14. Note: for +// compatibility with various implementations of , this test +// must consider only the value of __cplusplus when compiling C++. + +// GNU formerly extended the scanf functions with modified format +// specifiers %as, %aS, and %a[...] that allocate a buffer for the +// input using malloc. This extension conflicts with ISO C99, which +// defines %a as a standalone format specifier that reads a floating- +// point number; moreover, POSIX.1-2008 provides the same feature +// using the modifier letter 'm' instead (%ms, %mS, %m[...]). +// +// We now follow C99 unless GNU extensions are active and the compiler +// is specifically in C89 or C++98 mode (strict or not). For +// instance, with GCC, -std=gnu11 will have C99-compliant scanf with +// or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the +// old extension. + +// Get definitions of __STDC_* predefined macros, if the compiler has +// not preincluded this header automatically. +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// This macro indicates that the installed library is the GNU C Library. +// For historic reasons the value now is 6 and this will stay from now +// on. The use of this variable is deprecated. Use __GLIBC__ and +// __GLIBC_MINOR__ now (see below) when you want to test for a specific +// GNU C library version and use the values in to get +// the sonames of the shared libraries. + +// Major and minor version number of the GNU C library package. Use +// these macros to test for features in specific releases. + +// This is here only because every header file already includes this one. +// Copyright (C) 1992-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// We are almost always included from features.h. + +// The GNU libc does not support any K&R compilers or the traditional mode +// of ISO C compilers anymore. Check for some of the combinations not +// anymore supported. + +// Some user header file might have defined this before. + +// All functions, except those with callbacks or those that +// synchronize memory, are leaf functions. + +// GCC can always grok prototypes. For C++ programs we add throw() +// to help it optimize the function calls. But this works only with +// gcc 2.8.x and egcs. For gcc 3.2 and up we even mark C functions +// as non-throwing using a function attribute since programs can use +// the -fexceptions options for C code as well. + +// Compilers that are not clang may object to +// #if defined __clang__ && __has_extension(...) +// even though they do not need to evaluate the right-hand side of the &&. + +// These two macros are not used in glibc anymore. They are kept here +// only because some other projects expect the macros to be defined. + +// For these things, GCC behaves the ANSI way normally, +// and the non-ANSI way under -traditional. + +// This is not a typedef so `const __ptr_t' does the right thing. + +// C++ needs to know that types and declarations are C, not C++. + +// Fortify support. + +// Support for flexible arrays. +// Headers that should use flexible arrays only if they're "real" +// (e.g. only if they won't affect sizeof()) should test +// #if __glibc_c99_flexarr_available. + +// __asm__ ("xyz") is used throughout the headers to rename functions +// at the assembly language level. This is wrapped by the __REDIRECT +// macro, in order to support compilers that can do this some other +// way. When compilers don't support asm-names at all, we have to do +// preprocessor tricks instead (which don't have exactly the right +// semantics, but it's the best we can do). +// +// Example: +// int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid); + +// +// #elif __SOME_OTHER_COMPILER__ +// +// # define __REDIRECT(name, proto, alias) name proto; _Pragma("let " #name " = " #alias) + +// GCC has various useful declarations that can be made with the +// `__attribute__' syntax. All of the ways we use this do fine if +// they are omitted for compilers that don't understand it. + +// At some point during the gcc 2.96 development the `malloc' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// Tell the compiler which arguments to an allocation function +// indicate the size of the allocation. + +// At some point during the gcc 2.96 development the `pure' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// This declaration tells the compiler that the value is constant. + +// At some point during the gcc 3.1 development the `used' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// Since version 3.2, gcc allows marking deprecated functions. + +// Since version 4.5, gcc also allows one to specify the message printed +// when a deprecated function is used. clang claims to be gcc 4.2, but +// may also support this feature. + +// At some point during the gcc 2.8 development the `format_arg' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. +// If several `format_arg' attributes are given for the same function, in +// gcc-3.0 and older, all but the last one are ignored. In newer gccs, +// all designated arguments are considered. + +// At some point during the gcc 2.97 development the `strfmon' format +// attribute for functions was introduced. We don't want to use it +// unconditionally (although this would be possible) since it +// generates warnings. + +// The nonull function attribute allows to mark pointer parameters which +// must not be NULL. + +// If fortification mode, we warn about unused results of certain +// function calls which can lead to problems. + +// Forces a function to be always inlined. +// The Linux kernel defines __always_inline in stddef.h (283d7573), and +// it conflicts with this definition. Therefore undefine it first to +// allow either header to be included first. + +// Associate error messages with the source location of the call site rather +// than with the source location inside the function. + +// GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99 +// inline semantics, unless -fgnu89-inline is used. Using __GNUC_STDC_INLINE__ +// or __GNUC_GNU_INLINE is not a good enough check for gcc because gcc versions +// older than 4.3 may define these macros and still not guarantee GNU inlining +// semantics. +// +// clang++ identifies itself as gcc-4.2, but has support for GNU inlining +// semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and +// __GNUC_GNU_INLINE__ macro definitions. + +// GCC 4.3 and above allow passing all anonymous arguments of an +// __extern_always_inline function to some other vararg function. + +// It is possible to compile containing GCC extensions even if GCC is +// run in pedantic mode if the uses are carefully marked using the +// `__extension__' keyword. But this is not generally available before +// version 2.8. + +// __restrict is known in EGCS 1.2 and above. + +// ISO C99 also allows to declare arrays as non-overlapping. The syntax is +// array_name[restrict] +// GCC 3.1 supports this. + +// Describes a char array whose address can safely be passed as the first +// argument to strncpy and strncat, as the char array is not necessarily +// a NUL-terminated string. + +// Undefine (also defined in libc-symbols.h). +// Copies attributes from the declaration or type referenced by +// the argument. + +// Determine the wordsize from the preprocessor defines. + +// Both x86-64 and x32 use the 64-bit system call interface. +// Properties of long double type. ldbl-96 version. +// Copyright (C) 2016-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// long double is distinct from double, so there is nothing to +// define here. + +// __glibc_macro_warning (MESSAGE) issues warning MESSAGE. This is +// intended for use in preprocessor macros. +// +// Note: MESSAGE must be a _single_ string; concatenation of string +// literals is not supported. + +// Generic selection (ISO C11) is a C-only feature, available in GCC +// since version 4.9. Previous versions do not provide generic +// selection, even though they might set __STDC_VERSION__ to 201112L, +// when in -std=c11 mode. Thus, we must check for !defined __GNUC__ +// when testing __STDC_VERSION__ for generic selection support. +// On the other hand, Clang also defines __GNUC__, so a clang-specific +// check is required to enable the use of generic selection. + +// If we don't have __REDIRECT, prototypes will be missing if +// __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64]. + +// Decide whether we can define 'extern inline' functions in headers. + +// This is here only because every header file already includes this one. +// Get the definitions of all the appropriate `__stub_FUNCTION' symbols. +// contains `#define __stub_FUNCTION' when FUNCTION is a stub +// that will always return failure (and set errno to ENOSYS). +// This file is automatically generated. +// This file selects the right generated file of `__stub_FUNCTION' macros +// based on the architecture being compiled for. + +// This file is automatically generated. +// It defines a symbol `__stub_FUNCTION' for each function +// in the C library which is a stub, meaning it will fail +// every time called, usually setting errno to ENOSYS. + +// We need `pid_t'. +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Determine the wordsize from the preprocessor defines. + +// Both x86-64 and x32 use the 64-bit system call interface. +// Bit size of the time_t type at glibc build time, x86-64 and x32 case. +// Copyright (C) 2018-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// For others, time size is word size. + +// Convenience types. +type X__u_char = uint8 /* types.h:31:23 */ +type X__u_short = uint16 /* types.h:32:28 */ +type X__u_int = uint32 /* types.h:33:22 */ +type X__u_long = uint64 /* types.h:34:27 */ + +// Fixed-size types, underlying types depend on word size and compiler. +type X__int8_t = int8 /* types.h:37:21 */ +type X__uint8_t = uint8 /* types.h:38:23 */ +type X__int16_t = int16 /* types.h:39:26 */ +type X__uint16_t = uint16 /* types.h:40:28 */ +type X__int32_t = int32 /* types.h:41:20 */ +type X__uint32_t = uint32 /* types.h:42:22 */ +type X__int64_t = int64 /* types.h:44:25 */ +type X__uint64_t = uint64 /* types.h:45:27 */ + +// Smallest types with at least a given width. +type X__int_least8_t = X__int8_t /* types.h:52:18 */ +type X__uint_least8_t = X__uint8_t /* types.h:53:19 */ +type X__int_least16_t = X__int16_t /* types.h:54:19 */ +type X__uint_least16_t = X__uint16_t /* types.h:55:20 */ +type X__int_least32_t = X__int32_t /* types.h:56:19 */ +type X__uint_least32_t = X__uint32_t /* types.h:57:20 */ +type X__int_least64_t = X__int64_t /* types.h:58:19 */ +type X__uint_least64_t = X__uint64_t /* types.h:59:20 */ + +// quad_t is also 64 bits. +type X__quad_t = int64 /* types.h:63:18 */ +type X__u_quad_t = uint64 /* types.h:64:27 */ + +// Largest integral types. +type X__intmax_t = int64 /* types.h:72:18 */ +type X__uintmax_t = uint64 /* types.h:73:27 */ + +// The machine-dependent file defines __*_T_TYPE +// macros for each of the OS types we define below. The definitions +// of those macros must use the following macros for underlying types. +// We define __S_TYPE and __U_TYPE for the signed and unsigned +// variants of each of the following integer types on this machine. +// +// 16 -- "natural" 16-bit type (always short) +// 32 -- "natural" 32-bit type (always int) +// 64 -- "natural" 64-bit type (long or long long) +// LONG32 -- 32-bit type, traditionally long +// QUAD -- 64-bit type, traditionally long long +// WORD -- natural type of __WORDSIZE bits (int or long) +// LONGWORD -- type of __WORDSIZE bits, traditionally long +// +// We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the +// conventional uses of `long' or `long long' type modifiers match the +// types we define, even when a less-adorned type would be the same size. +// This matters for (somewhat) portably writing printf/scanf formats for +// these types, where using the appropriate l or ll format modifiers can +// make the typedefs and the formats match up across all GNU platforms. If +// we used `long' when it's 64 bits where `long long' is expected, then the +// compiler would warn about the formats not matching the argument types, +// and the programmer changing them to shut up the compiler would break the +// program's portability. +// +// Here we assume what is presently the case in all the GCC configurations +// we support: long long is always 64 bits, long is always word/address size, +// and int is always 32 bits. + +// No need to mark the typedef with __extension__. +// bits/typesizes.h -- underlying types for *_t. Linux/x86-64 version. +// Copyright (C) 2012-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// See for the meaning of these macros. This file exists so +// that need not vary across different GNU platforms. + +// X32 kernel interface is 64-bit. + +// Tell the libc code that off_t and off64_t are actually the same type +// for all ABI purposes, even if possibly expressed as different base types +// for C type-checking purposes. + +// Same for ino_t and ino64_t. + +// And for __rlim_t and __rlim64_t. + +// And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t. + +// Number of descriptors that can fit in an `fd_set'. + +// bits/time64.h -- underlying types for __time64_t. Generic version. +// Copyright (C) 2018-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Define __TIME64_T_TYPE so that it is always a 64-bit type. + +// If we already have 64-bit time type then use it. + +type X__dev_t = uint64 /* types.h:145:25 */ // Type of device numbers. +type X__uid_t = uint32 /* types.h:146:25 */ // Type of user identifications. +type X__gid_t = uint32 /* types.h:147:25 */ // Type of group identifications. +type X__ino_t = uint64 /* types.h:148:25 */ // Type of file serial numbers. +type X__ino64_t = uint64 /* types.h:149:27 */ // Type of file serial numbers (LFS). +type X__mode_t = uint32 /* types.h:150:26 */ // Type of file attribute bitmasks. +type X__nlink_t = uint64 /* types.h:151:27 */ // Type of file link counts. +type X__off_t = int64 /* types.h:152:25 */ // Type of file sizes and offsets. +type X__off64_t = int64 /* types.h:153:27 */ // Type of file sizes and offsets (LFS). +type X__pid_t = int32 /* types.h:154:25 */ // Type of process identifications. +type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs. +type X__clock_t = int64 /* types.h:156:27 */ // Type of CPU usage counts. +type X__rlim_t = uint64 /* types.h:157:26 */ // Type for resource measurement. +type X__rlim64_t = uint64 /* types.h:158:28 */ // Type for resource measurement (LFS). +type X__id_t = uint32 /* types.h:159:24 */ // General type for IDs. +type X__time_t = int64 /* types.h:160:26 */ // Seconds since the Epoch. +type X__useconds_t = uint32 /* types.h:161:30 */ // Count of microseconds. +type X__suseconds_t = int64 /* types.h:162:31 */ // Signed count of microseconds. + +type X__daddr_t = int32 /* types.h:164:27 */ // The type of a disk address. +type X__key_t = int32 /* types.h:165:25 */ // Type of an IPC key. + +// Clock ID used in clock and timer functions. +type X__clockid_t = int32 /* types.h:168:29 */ + +// Timer ID returned by `timer_create'. +type X__timer_t = uintptr /* types.h:171:12 */ + +// Type to represent block size. +type X__blksize_t = int64 /* types.h:174:29 */ + +// Types from the Large File Support interface. + +// Type to count number of disk blocks. +type X__blkcnt_t = int64 /* types.h:179:28 */ +type X__blkcnt64_t = int64 /* types.h:180:30 */ + +// Type to count file system blocks. +type X__fsblkcnt_t = uint64 /* types.h:183:30 */ +type X__fsblkcnt64_t = uint64 /* types.h:184:32 */ + +// Type to count file system nodes. +type X__fsfilcnt_t = uint64 /* types.h:187:30 */ +type X__fsfilcnt64_t = uint64 /* types.h:188:32 */ + +// Type of miscellaneous file system fields. +type X__fsword_t = int64 /* types.h:191:28 */ + +type X__ssize_t = int64 /* types.h:193:27 */ // Type of a byte count, or error. + +// Signed long type used in system calls. +type X__syscall_slong_t = int64 /* types.h:196:33 */ +// Unsigned long type used in system calls. +type X__syscall_ulong_t = uint64 /* types.h:198:33 */ + +// These few don't really vary by system, they always correspond +// +// to one of the other defined types. +type X__loff_t = X__off64_t /* types.h:202:19 */ // Type of file sizes and offsets (LFS). +type X__caddr_t = uintptr /* types.h:203:14 */ + +// Duplicates info from stdint.h but this is used in unistd.h. +type X__intptr_t = int64 /* types.h:206:25 */ + +// Duplicate info from sys/socket.h. +type X__socklen_t = uint32 /* types.h:209:23 */ + +// C99: An integer type that can be accessed as an atomic entity, +// +// even in the presence of asynchronous interrupts. +// It is not currently necessary for this to be machine-specific. +type X__sig_atomic_t = int32 /* types.h:214:13 */ + +// Seconds since the Epoch, visible to user code when time_t is too +// narrow only for consistency with the old way of widening too-narrow +// types. User code should never use __time64_t. + +type Pid_t = X__pid_t /* termios.h:30:17 */ + +// Get the system-dependent definitions of `struct termios', `tcflag_t', +// `cc_t', `speed_t', and all the macros specifying the flag bits. +// termios type and macro definitions. Linux version. +// Copyright (C) 1993-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +type Cc_t = uint8 /* termios.h:23:23 */ +type Speed_t = uint32 /* termios.h:24:22 */ +type Tcflag_t = uint32 /* termios.h:25:22 */ + +// struct termios definition. Linux/generic version. +// Copyright (C) 2019-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library. If not, see +// . + +type Termios = struct { + Fc_iflag Tcflag_t + Fc_oflag Tcflag_t + Fc_cflag Tcflag_t + Fc_lflag Tcflag_t + Fc_line Cc_t + Fc_cc [32]Cc_t + F__ccgo_pad1 [3]byte + Fc_ispeed Speed_t + Fc_ospeed Speed_t +} /* termios-struct.h:24:1 */ + +// - +// Copyright (c) 1982, 1986, 1993 +// The Regents of the University of California. All rights reserved. +// (c) UNIX System Laboratories, Inc. +// All or some portions of this file are derived from material licensed +// to the University of California by American Telephone and Telegraph +// Co. or Unix System Laboratories, Inc. and are reproduced herein with +// the permission of UNIX System Laboratories, Inc. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// 1. Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// 2. Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer in the +// documentation and/or other materials provided with the distribution. +// 4. Neither the name of the University nor the names of its contributors +// may be used to endorse or promote products derived from this software +// without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +// SUCH DAMAGE. +// +// @(#)ttydefaults.h 8.4 (Berkeley) 1/21/94 + +// System wide defaults for terminal state. Linux version. + +// Defaults on "first" open. + +// Control Character Defaults +// compat + +// PROTECTED INCLUSION ENDS HERE + +// #define TTYDEFCHARS to include an array of default control characters. + +var _ int8 /* gen.c:2:13: */ diff --git a/vendor/modernc.org/libc/time/capi_illumos_amd64.go b/vendor/modernc.org/libc/time/capi_illumos_amd64.go new file mode 100644 index 000000000..22a7a7d0e --- /dev/null +++ b/vendor/modernc.org/libc/time/capi_illumos_amd64.go @@ -0,0 +1,5 @@ +// Code generated by 'ccgo time/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o time/time_illumos_amd64.go -pkgname time', DO NOT EDIT. + +package time + +var CAPI = map[string]struct{}{} diff --git a/vendor/modernc.org/libc/time/capi_linux_loong64.go b/vendor/modernc.org/libc/time/capi_linux_loong64.go new file mode 100644 index 000000000..4bdcc62e5 --- /dev/null +++ b/vendor/modernc.org/libc/time/capi_linux_loong64.go @@ -0,0 +1,5 @@ +// Code generated by 'ccgo time/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o time/time_linux_loong64.go -pkgname time', DO NOT EDIT. + +package time + +var CAPI = map[string]struct{}{} diff --git a/vendor/modernc.org/libc/time/capi_linux_mips64le.go b/vendor/modernc.org/libc/time/capi_linux_mips64le.go new file mode 100644 index 000000000..fef9264df --- /dev/null +++ b/vendor/modernc.org/libc/time/capi_linux_mips64le.go @@ -0,0 +1,5 @@ +// Code generated by 'ccgo time/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o time/time_linux_amd64.go -pkgname time', DO NOT EDIT. + +package time + +var CAPI = map[string]struct{}{} diff --git a/vendor/modernc.org/libc/time/time_illumos_amd64.go b/vendor/modernc.org/libc/time/time_illumos_amd64.go new file mode 100644 index 000000000..01b4e776d --- /dev/null +++ b/vendor/modernc.org/libc/time/time_illumos_amd64.go @@ -0,0 +1,1468 @@ +// Code generated by 'ccgo time/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o time/time_illumos_amd64.go -pkgname time', DO NOT EDIT. + +package time + +import ( + "math" + "reflect" + "sync/atomic" + "unsafe" +) + +var _ = math.Pi +var _ reflect.Kind +var _ atomic.Value +var _ unsafe.Pointer + +const ( + CLOCKS_PER_SEC = 1000000 // time_iso.h:78:1: + CLOCK_HIGHRES = 4 // time_impl.h:126:1: + CLOCK_MONOTONIC = 4 // time_impl.h:124:1: + CLOCK_PROCESS_CPUTIME_ID = 5 // time_impl.h:125:1: + CLOCK_PROF = 2 // time_impl.h:127:1: + CLOCK_REALTIME = 3 // time_impl.h:123:1: + CLOCK_THREAD_CPUTIME_ID = 2 // time_impl.h:122:1: + CLOCK_VIRTUAL = 1 // time_impl.h:121:1: + DST_AUST = 2 // time.h:115:1: + DST_AUSTALT = 10 // time.h:123:1: + DST_CAN = 6 // time.h:119:1: + DST_EET = 5 // time.h:118:1: + DST_GB = 7 // time.h:120:1: + DST_MET = 4 // time.h:117:1: + DST_NONE = 0 // time.h:113:1: + DST_RUM = 8 // time.h:121:1: + DST_TUR = 9 // time.h:122:1: + DST_USA = 1 // time.h:114:1: + DST_WET = 3 // time.h:116:1: + FD_SETSIZE = 65536 // select.h:88:1: + ITIMER_PROF = 2 // time.h:201:1: + ITIMER_REAL = 0 // time.h:199:1: + ITIMER_REALPROF = 3 // time.h:204:1: + ITIMER_VIRTUAL = 1 // time.h:200:1: + MICROSEC = 1000000 // time.h:246:1: + MILLISEC = 1000 // time.h:245:1: + NANOSEC = 1000000000 // time.h:247:1: + NBBY = 8 // select.h:103:1: + P_MYID = -1 // types.h:632:1: + REG_LABEL_BP = 2 // machtypes.h:44:1: + REG_LABEL_MAX = 8 // machtypes.h:51:1: + REG_LABEL_PC = 0 // machtypes.h:42:1: + REG_LABEL_R12 = 4 // machtypes.h:47:1: + REG_LABEL_R13 = 5 // machtypes.h:48:1: + REG_LABEL_R14 = 6 // machtypes.h:49:1: + REG_LABEL_R15 = 7 // machtypes.h:50:1: + REG_LABEL_RBX = 3 // machtypes.h:46:1: + REG_LABEL_SP = 1 // machtypes.h:43:1: + SEC = 1 // time.h:244:1: + TIMER_ABSTIME = 0x1 // time_impl.h:134:1: + TIMER_RELTIME = 0x0 // time_impl.h:133:1: + TIME_UTC = 0x1 // time.h:306:1: + X_ALIGNMENT_REQUIRED = 1 // isa_defs.h:262:1: + X_BIT_FIELDS_LTOH = 0 // isa_defs.h:245:1: + X_BOOL_ALIGNMENT = 1 // isa_defs.h:248:1: + X_CHAR_ALIGNMENT = 1 // isa_defs.h:249:1: + X_CHAR_IS_SIGNED = 0 // isa_defs.h:247:1: + X_CLOCKID_T = 0 // types.h:568:1: + X_CLOCK_T = 0 // time_iso.h:69:1: + X_COND_MAGIC = 0x4356 // types.h:426:1: + X_DMA_USES_PHYSADDR = 0 // isa_defs.h:281:1: + X_DONT_USE_1275_GENERIC_NAMES = 0 // isa_defs.h:287:1: + X_DOUBLE_ALIGNMENT = 8 // isa_defs.h:256:1: + X_DOUBLE_COMPLEX_ALIGNMENT = 8 // isa_defs.h:257:1: + X_DTRACE_VERSION = 1 // feature_tests.h:490:1: + X_FILE_OFFSET_BITS = 64 // :25:1: + X_FIRMWARE_NEEDS_FDISK = 0 // isa_defs.h:282:1: + X_FLOAT_ALIGNMENT = 4 // isa_defs.h:252:1: + X_FLOAT_COMPLEX_ALIGNMENT = 4 // isa_defs.h:253:1: + X_HAVE_CPUID_INSN = 0 // isa_defs.h:288:1: + X_IEEE_754 = 0 // isa_defs.h:246:1: + X_INT64_TYPE = 0 // int_types.h:82:1: + X_INT_ALIGNMENT = 4 // isa_defs.h:251:1: + X_ISO_CPP_14882_1998 = 0 // feature_tests.h:466:1: + X_ISO_C_9899_1999 = 0 // feature_tests.h:472:1: + X_ISO_C_9899_2011 = 0 // feature_tests.h:478:1: + X_ISO_TIME_ISO_H = 0 // time_iso.h:46:1: + X_LARGEFILE64_SOURCE = 1 // feature_tests.h:231:1: + X_LARGEFILE_SOURCE = 1 // feature_tests.h:235:1: + X_LITTLE_ENDIAN = 0 // isa_defs.h:242:1: + X_LOCALE_T = 0 // time.h:291:1: + X_LONGLONG_TYPE = 0 // feature_tests.h:412:1: + X_LONG_ALIGNMENT = 8 // isa_defs.h:254:1: + X_LONG_DOUBLE_ALIGNMENT = 16 // isa_defs.h:258:1: + X_LONG_DOUBLE_COMPLEX_ALIGNMENT = 16 // isa_defs.h:259:1: + X_LONG_LONG_ALIGNMENT = 8 // isa_defs.h:255:1: + X_LONG_LONG_ALIGNMENT_32 = 4 // isa_defs.h:268:1: + X_LONG_LONG_LTOH = 0 // isa_defs.h:244:1: + X_LP64 = 1 // :286:1: + X_MAX_ALIGNMENT = 16 // isa_defs.h:261:1: + X_MULTI_DATAMODEL = 0 // isa_defs.h:279:1: + X_MUTEX_MAGIC = 0x4d58 // types.h:424:1: + X_NBBY = 8 // select.h:100:1: + X_NORETURN_KYWD = 0 // feature_tests.h:448:1: + X_OFF_T = 0 // types.h:142:1: + X_POINTER_ALIGNMENT = 8 // isa_defs.h:260:1: + X_PSM_MODULES = 0 // isa_defs.h:284:1: + X_PTRDIFF_T = 0 // types.h:112:1: + X_RESTRICT_KYWD = 0 // feature_tests.h:435:1: + X_RTC_CONFIG = 0 // isa_defs.h:285:1: + X_RWL_MAGIC = 0x5257 // types.h:427:1: + X_SEMA_MAGIC = 0x534d // types.h:425:1: + X_SHORT_ALIGNMENT = 2 // isa_defs.h:250:1: + X_SIGEVENT = 0 // time.h:132:1: + X_SIGSET_T = 0 // select.h:73:1: + X_SIGVAL = 0 // time.h:124:1: + X_SIZE_T = 0 // time_iso.h:60:1: + X_SOFT_HOSTID = 0 // isa_defs.h:286:1: + X_SSIZE_T = 0 // types.h:549:1: + X_STACK_GROWS_DOWNWARD = 0 // isa_defs.h:243:1: + X_STDC_C11 = 0 // feature_tests.h:165:1: + X_STDC_C99 = 0 // feature_tests.h:169:1: + X_SUNOS_VTOC_16 = 0 // isa_defs.h:280:1: + X_SUSECONDS_T = 0 // types.h:343:1: + X_SYS_CCOMPILE_H = 0 // ccompile.h:32:1: + X_SYS_FEATURE_TESTS_H = 0 // feature_tests.h:41:1: + X_SYS_INT_TYPES_H = 0 // int_types.h:30:1: + X_SYS_ISA_DEFS_H = 0 // isa_defs.h:30:1: + X_SYS_MACHTYPES_H = 0 // machtypes.h:27:1: + X_SYS_NULL_H = 0 // null.h:17:1: + X_SYS_SELECT_H = 0 // select.h:45:1: + X_SYS_TIME_H = 0 // time.h:27:1: + X_SYS_TIME_IMPL_H = 0 // time_impl.h:38:1: + X_SYS_TYPES_H = 0 // types.h:35:1: + X_TIMER_T = 0 // types.h:573:1: + X_TIME_H = 0 // time.h:37:1: + X_TIME_T = 0 // time_iso.h:74:1: + X_UID_T = 0 // types.h:400:1: + X_XOPEN_VERSION = 3 // feature_tests.h:392:1: + Sun = 1 // :172:1: + Unix = 1 // :175:1: +) + +// used for block sizes + +// The boolean_t type has had a varied amount of exposure over the years in +// terms of how its enumeration constants have been exposed. In particular, it +// originally used the __XOPEN_OR_POSIX macro to determine whether to prefix the +// B_TRUE and B_FALSE with an underscore. This check never included the +// question of if we were in a strict ANSI C environment or whether extensions +// were defined. +// +// Compilers such as clang started defaulting to always including an +// XOPEN_SOURCE declaration on behalf of users, but also noted __EXTENSIONS__. +// This would lead most software that had used the non-underscore versions to +// need it. As such, we have adjusted the non-strict XOPEN environment to retain +// its old behavior so as to minimize namespace pollution; however, we instead +// include both variants of the definitions in the generally visible version +// allowing software written in either world to hopefully end up in a good +// place. +// +// This isn't perfect, but should hopefully minimize the pain for folks actually +// trying to build software. +const ( /* types.h:215:1: */ + B_FALSE = 0 + B_TRUE = 1 + X_B_FALSE = 0 + X_B_TRUE = 1 +) + +type Ptrdiff_t = int64 /* :3:26 */ + +type Size_t = uint64 /* :9:23 */ + +type Wchar_t = int32 /* :15:24 */ + +type X__int128_t = struct { + Flo int64 + Fhi int64 +} /* :21:43 */ // must match modernc.org/mathutil.Int128 +type X__uint128_t = struct { + Flo uint64 + Fhi uint64 +} /* :22:44 */ // must match modernc.org/mathutil.Int128 + +type X__builtin_va_list = uintptr /* :46:14 */ +type X__float128 = float64 /* :47:21 */ // size of something in bytes + +type Clock_t = int64 /* time_iso.h:70:14 */ + +type Time_t = int64 /* time_iso.h:75:14 */ + +type Tm = struct { + Ftm_sec int32 + Ftm_min int32 + Ftm_hour int32 + Ftm_mday int32 + Ftm_mon int32 + Ftm_year int32 + Ftm_wday int32 + Ftm_yday int32 + Ftm_isdst int32 +} /* time_iso.h:80:1 */ + +// C11 requires sys/time_impl.h for the definition of the struct timespec. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2021 Oxide Computer Company + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2016 Joyent, Inc. + +// Machine dependent definitions moved to . +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2007 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Machine dependent types: +// +// intel ia32 Version + +type X_label_t = struct{ Fval [8]int64 } /* machtypes.h:59:9 */ + +// C11 requires sys/time_impl.h for the definition of the struct timespec. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2021 Oxide Computer Company + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2016 Joyent, Inc. + +// Machine dependent definitions moved to . +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2007 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Machine dependent types: +// +// intel ia32 Version + +type Label_t = X_label_t /* machtypes.h:59:54 */ + +type Lock_t = uint8 /* machtypes.h:63:23 */ // lock work for busy wait + +// Include fixed width type declarations proposed by the ISO/JTC1/SC22/WG14 C +// committee's working draft for the revision of the current ISO C standard, +// ISO/IEC 9899:1990 Programming language - C. These are not currently +// required by any standard but constitute a useful, general purpose set +// of type definitions which is namespace clean with respect to all standards. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2014 Garrett D'Amore +// +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// This file, , is part of the Sun Microsystems implementation +// of defined in the ISO C standard, ISO/IEC 9899:1999 +// Programming language - C. +// +// Programs/Modules should not directly include this file. Access to the +// types defined in this file should be through the inclusion of one of the +// following files: +// +// Provides only the "_t" types defined in this +// file which is a subset of the contents of +// . (This can be appropriate for +// all programs/modules except those claiming +// ANSI-C conformance.) +// +// Provides the Kernel and Driver appropriate +// components of . +// +// For use by applications. +// +// See these files for more details. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Basic / Extended integer types +// +// The following defines the basic fixed-size integer types. +// +// Implementations are free to typedef them to Standard C integer types or +// extensions that they support. If an implementation does not support one +// of the particular integer data types below, then it should not define the +// typedefs and macros corresponding to that data type. Note that int8_t +// is not defined in -Xs mode on ISAs for which the ABI specifies "char" +// as an unsigned entity because there is no way to define an eight bit +// signed integral. +type Int8_t = int8 /* int_types.h:75:16 */ +type Int16_t = int16 /* int_types.h:79:17 */ +type Int32_t = int32 /* int_types.h:80:15 */ +type Int64_t = int64 /* int_types.h:83:16 */ + +type Uint8_t = uint8 /* int_types.h:91:24 */ +type Uint16_t = uint16 /* int_types.h:92:25 */ +type Uint32_t = uint32 /* int_types.h:93:23 */ +type Uint64_t = uint64 /* int_types.h:95:24 */ + +// intmax_t and uintmax_t are to be the longest (in number of bits) signed +// and unsigned integer types supported by the implementation. +type Intmax_t = int64 /* int_types.h:107:19 */ +type Uintmax_t = uint64 /* int_types.h:108:19 */ + +// intptr_t and uintptr_t are signed and unsigned integer types large enough +// to hold any data pointer; that is, data pointers can be assigned into or +// from these integer types without losing precision. +type Intptr_t = int64 /* int_types.h:120:16 */ +type Uintptr_t = uint64 /* int_types.h:121:24 */ + +// The following define the fastest integer types that can hold the +// specified number of bits. +type Int_fast8_t = int8 /* int_types.h:132:16 */ +type Int_fast16_t = int32 /* int_types.h:136:15 */ +type Int_fast32_t = int32 /* int_types.h:137:15 */ +type Int_fast64_t = int64 /* int_types.h:139:16 */ + +type Uint_fast8_t = uint8 /* int_types.h:146:24 */ +type Uint_fast16_t = uint32 /* int_types.h:147:23 */ +type Uint_fast32_t = uint32 /* int_types.h:148:23 */ +type Uint_fast64_t = uint64 /* int_types.h:150:24 */ + +// The following define the smallest integer types that can hold the +// specified number of bits. +type Int_least8_t = int8 /* int_types.h:162:16 */ +type Int_least16_t = int16 /* int_types.h:166:17 */ +type Int_least32_t = int32 /* int_types.h:167:15 */ +type Int_least64_t = int64 /* int_types.h:169:16 */ + +// If these are changed, please update char16_t and char32_t in head/uchar.h. +type Uint_least8_t = uint8 /* int_types.h:179:24 */ +type Uint_least16_t = uint16 /* int_types.h:180:25 */ +type Uint_least32_t = uint32 /* int_types.h:181:23 */ +type Uint_least64_t = uint64 /* int_types.h:183:24 */ + +// Strictly conforming ANSI C environments prior to the 1999 +// revision of the C Standard (ISO/IEC 9899:1999) do not have +// the long long data type. +type Longlong_t = int64 /* types.h:72:20 */ +type U_longlong_t = uint64 /* types.h:73:28 */ + +// These types (t_{u}scalar_t) exist because the XTI/TPI/DLPI standards had +// to use them instead of int32_t and uint32_t because DEC had +// shipped 64-bit wide. +type T_scalar_t = int32 /* types.h:92:18 */ +type T_uscalar_t = uint32 /* types.h:93:18 */ + +// POSIX Extensions +type Uchar_t = uint8 /* types.h:102:23 */ +type Ushort_t = uint16 /* types.h:103:24 */ +type Uint_t = uint32 /* types.h:104:22 */ +type Ulong_t = uint64 /* types.h:105:23 */ + +type Caddr_t = uintptr /* types.h:107:15 */ // ? type +type Daddr_t = int64 /* types.h:108:15 */ // type +type Cnt_t = int16 /* types.h:109:16 */ // pointer difference + +// VM-related types +type Pfn_t = uint64 /* types.h:123:18 */ // page frame number +type Pgcnt_t = uint64 /* types.h:124:18 */ // number of pages +type Spgcnt_t = int64 /* types.h:125:15 */ // signed number of pages + +type Use_t = uint8 /* types.h:127:18 */ // use count for swap. +type Sysid_t = int16 /* types.h:128:16 */ +type Index_t = int16 /* types.h:129:16 */ +type Timeout_id_t = uintptr /* types.h:130:15 */ // opaque handle from timeout(9F) +type Bufcall_id_t = uintptr /* types.h:131:15 */ // opaque handle from bufcall(9F) + +// The size of off_t and related types depends on the setting of +// _FILE_OFFSET_BITS. (Note that other system headers define other types +// related to those defined here.) +// +// If _LARGEFILE64_SOURCE is defined, variants of these types that are +// explicitly 64 bits wide become available. + +type Off_t = int64 /* types.h:145:15 */ // offsets within files + +type Off64_t = int64 /* types.h:152:16 */ // offsets within files + +type Ino_t = uint64 /* types.h:161:18 */ // expanded inode type +type Blkcnt_t = int64 /* types.h:162:15 */ // count of file blocks +type Fsblkcnt_t = uint64 /* types.h:163:18 */ // count of file system blocks +type Fsfilcnt_t = uint64 /* types.h:164:18 */ // count of files + +type Ino64_t = uint64 /* types.h:174:16 */ // expanded inode type +type Blkcnt64_t = int64 /* types.h:175:18 */ // count of file blocks +type Fsblkcnt64_t = uint64 /* types.h:176:20 */ // count of file system blocks +type Fsfilcnt64_t = uint64 /* types.h:177:20 */ // count of files + +type Blksize_t = int32 /* types.h:187:14 */ // used for block sizes + +// The boolean_t type has had a varied amount of exposure over the years in +// terms of how its enumeration constants have been exposed. In particular, it +// originally used the __XOPEN_OR_POSIX macro to determine whether to prefix the +// B_TRUE and B_FALSE with an underscore. This check never included the +// question of if we were in a strict ANSI C environment or whether extensions +// were defined. +// +// Compilers such as clang started defaulting to always including an +// XOPEN_SOURCE declaration on behalf of users, but also noted __EXTENSIONS__. +// This would lead most software that had used the non-underscore versions to +// need it. As such, we have adjusted the non-strict XOPEN environment to retain +// its old behavior so as to minimize namespace pollution; however, we instead +// include both variants of the definitions in the generally visible version +// allowing software written in either world to hopefully end up in a good +// place. +// +// This isn't perfect, but should hopefully minimize the pain for folks actually +// trying to build software. +type Boolean_t = uint32 /* types.h:215:69 */ + +// The {u,}pad64_t types can be used in structures such that those structures +// may be accessed by code produced by compilation environments which don't +// support a 64 bit integral datatype. The intention is not to allow +// use of these fields in such environments, but to maintain the alignment +// and offsets of the structure. +// +// Similar comments for {u,}pad128_t. +// +// Note that these types do NOT generate any stronger alignment constraints +// than those available in the underlying ABI. See +type Pad64_t = int64 /* types.h:240:18 */ +type Upad64_t = uint64 /* types.h:241:18 */ + +type Pad128_t = struct { + F_q float64 + F__ccgo_pad1 [8]byte +} /* types.h:257:3 */ + +type Upad128_t = struct { + F_q float64 + F__ccgo_pad1 [8]byte +} /* types.h:262:3 */ + +type Offset_t = int64 /* types.h:264:20 */ +type U_offset_t = uint64 /* types.h:265:22 */ +type Len_t = uint64 /* types.h:266:22 */ +type Diskaddr_t = uint64 /* types.h:267:22 */ + +// Definitions remaining from previous partial support for 64-bit file +// offsets. This partial support for devices greater than 2gb requires +// compiler support for long long. +type Lloff_t = struct{ F_f int64 } /* types.h:284:3 */ + +type Lldaddr_t = struct{ F_f int64 } /* types.h:304:3 */ + +type K_fltset_t = uint32 /* types.h:317:16 */ // kernel fault set type + +// The following type is for various kinds of identifiers. The +// actual type must be the same for all since some system calls +// (such as sigsend) take arguments that may be any of these +// types. The enumeration type idtype_t defined in sys/procset.h +// is used to indicate what type of id is being specified -- +// a process id, process group id, session id, scheduling class id, +// user id, group id, project id, task id or zone id. +type Id_t = int32 /* types.h:329:14 */ + +type Lgrp_id_t = int32 /* types.h:334:15 */ // lgroup ID + +// Type useconds_t is an unsigned integral type capable of storing +// values at least in the range of zero to 1,000,000. +type Useconds_t = uint32 /* types.h:340:17 */ // Time, in microseconds + +type Suseconds_t = int64 /* types.h:344:14 */ // signed # of microseconds + +// Typedefs for dev_t components. +type Major_t = uint32 /* types.h:351:16 */ // major part of device number +type Minor_t = uint32 /* types.h:352:16 */ // minor part of device number + +// The data type of a thread priority. +type Pri_t = int16 /* types.h:361:15 */ + +// The data type for a CPU flags field. (Can be extended to larger unsigned +// types, if needed, limited by ability to update atomically.) +type Cpu_flag_t = uint16 /* types.h:367:18 */ + +// For compatibility reasons the following typedefs (prefixed o_) +// can't grow regardless of the EFT definition. Although, +// applications should not explicitly use these typedefs +// they may be included via a system header definition. +// WARNING: These typedefs may be removed in a future +// release. +// +// ex. the definitions in s5inode.h (now obsoleted) +// remained small to preserve compatibility +// in the S5 file system type. +type O_mode_t = uint16 /* types.h:380:18 */ // old file attribute type +type O_dev_t = int16 /* types.h:381:15 */ // old device type +type O_uid_t = uint16 /* types.h:382:18 */ // old UID type +type O_gid_t = uint16 /* types.h:383:17 */ // old GID type +type O_nlink_t = int16 /* types.h:384:15 */ // old file link type +type O_pid_t = int16 /* types.h:385:15 */ // old process id type +type O_ino_t = uint16 /* types.h:386:18 */ // old inode type + +// POSIX and XOPEN Declarations +type Key_t = int32 /* types.h:392:13 */ // IPC key type +type Mode_t = uint32 /* types.h:394:16 */ // file attribute type + +type Uid_t = uint32 /* types.h:401:22 */ // UID type + +type Gid_t = uint32 /* types.h:404:15 */ // GID type + +type Datalink_id_t = uint32 /* types.h:406:18 */ +type Vrid_t = uint32 /* types.h:407:18 */ + +type Taskid_t = int32 /* types.h:409:17 */ +type Projid_t = int32 /* types.h:410:17 */ +type Poolid_t = int32 /* types.h:411:14 */ +type Zoneid_t = int32 /* types.h:412:14 */ +type Ctid_t = int32 /* types.h:413:14 */ + +// POSIX definitions are same as defined in thread.h and synch.h. +// Any changes made to here should be reflected in corresponding +// files as described in comments. +type Pthread_t = uint32 /* types.h:420:16 */ // = thread_t in thread.h +type Pthread_key_t = uint32 /* types.h:421:16 */ // = thread_key_t in thread.h + +// "Magic numbers" tagging synchronization object types + +type X_pthread_mutex = struct { + F__pthread_mutex_flags struct { + F__pthread_mutex_flag1 uint16 + F__pthread_mutex_flag2 uint8 + F__pthread_mutex_ceiling uint8 + F__pthread_mutex_type uint16 + F__pthread_mutex_magic uint16 + } + F__pthread_mutex_lock struct { + F__ccgo_pad1 [0]uint64 + F__pthread_mutex_lock64 struct{ F__pthread_mutex_pad [8]uint8 } + } + F__pthread_mutex_data uint64 +} /* types.h:429:9 */ + +// = thread_key_t in thread.h + +// "Magic numbers" tagging synchronization object types + +type Pthread_mutex_t = X_pthread_mutex /* types.h:448:3 */ + +type X_pthread_cond = struct { + F__pthread_cond_flags struct { + F__pthread_cond_flag [4]uint8 + F__pthread_cond_type uint16 + F__pthread_cond_magic uint16 + } + F__pthread_cond_data uint64 +} /* types.h:450:9 */ + +type Pthread_cond_t = X_pthread_cond /* types.h:457:3 */ + +// UNIX 98 Extension +type X_pthread_rwlock = struct { + F__pthread_rwlock_readers int32 + F__pthread_rwlock_type uint16 + F__pthread_rwlock_magic uint16 + F__pthread_rwlock_mutex Pthread_mutex_t + F__pthread_rwlock_readercv Pthread_cond_t + F__pthread_rwlock_writercv Pthread_cond_t +} /* types.h:462:9 */ + +// UNIX 98 Extension +type Pthread_rwlock_t = X_pthread_rwlock /* types.h:469:3 */ + +// SUSV3 +type Pthread_barrier_t = struct { + F__pthread_barrier_count uint32 + F__pthread_barrier_current uint32 + F__pthread_barrier_cycle uint64 + F__pthread_barrier_reserved uint64 + F__pthread_barrier_lock Pthread_mutex_t + F__pthread_barrier_cond Pthread_cond_t +} /* types.h:481:3 */ + +type Pthread_spinlock_t = Pthread_mutex_t /* types.h:483:25 */ + +// attributes for threads, dynamically allocated by library +type X_pthread_attr = struct{ F__pthread_attrp uintptr } /* types.h:488:9 */ + +// attributes for threads, dynamically allocated by library +type Pthread_attr_t = X_pthread_attr /* types.h:490:3 */ + +// attributes for mutex, dynamically allocated by library +type X_pthread_mutexattr = struct{ F__pthread_mutexattrp uintptr } /* types.h:495:9 */ + +// attributes for mutex, dynamically allocated by library +type Pthread_mutexattr_t = X_pthread_mutexattr /* types.h:497:3 */ + +// attributes for cond, dynamically allocated by library +type X_pthread_condattr = struct{ F__pthread_condattrp uintptr } /* types.h:502:9 */ + +// attributes for cond, dynamically allocated by library +type Pthread_condattr_t = X_pthread_condattr /* types.h:504:3 */ + +// pthread_once +type X_once = struct{ F__pthread_once_pad [4]uint64 } /* types.h:509:9 */ + +// pthread_once +type Pthread_once_t = X_once /* types.h:511:3 */ + +// UNIX 98 Extensions +// attributes for rwlock, dynamically allocated by library +type X_pthread_rwlockattr = struct{ F__pthread_rwlockattrp uintptr } /* types.h:517:9 */ + +// UNIX 98 Extensions +// attributes for rwlock, dynamically allocated by library +type Pthread_rwlockattr_t = X_pthread_rwlockattr /* types.h:519:3 */ + +// SUSV3 +// attributes for pthread_barrier_t, dynamically allocated by library +type Pthread_barrierattr_t = struct{ F__pthread_barrierattrp uintptr } /* types.h:527:3 */ + +type Dev_t = uint64 /* types.h:529:17 */ // expanded device type + +type Nlink_t = uint32 /* types.h:532:16 */ // file link type +type Pid_t = int32 /* types.h:533:13 */ // process id type + +type Ssize_t = int64 /* types.h:551:14 */ // size of something in bytes or -1 + +type Clockid_t = int32 /* types.h:569:13 */ // clock identifier type + +type Timer_t = int32 /* types.h:574:13 */ // timer identifier type + +// BEGIN CSTYLED +type Unchar = uint8 /* types.h:580:23 */ +type Ushort = uint16 /* types.h:581:24 */ +type Uint = uint32 /* types.h:582:22 */ +type Ulong = uint64 /* types.h:583:23 */ +// END CSTYLED + +// The following is the value of type id_t to use to indicate the +// caller's current id. See procset.h for the type idtype_t +// which defines which kind of id is being specified. + +// The following value of type pfn_t is used to indicate +// invalid page frame number. + +// BEGIN CSTYLED +type U_char = uint8 /* types.h:650:23 */ +type U_short = uint16 /* types.h:651:24 */ +type U_int = uint32 /* types.h:652:22 */ +type U_long = uint64 /* types.h:653:23 */ +type X_quad = struct{ Fval [2]int32 } /* types.h:654:9 */ + +type Quad_t = X_quad /* types.h:654:38 */ // used by UFS +type Quad = Quad_t /* types.h:655:17 */ // used by UFS +// END CSTYLED + +// Nested include for BSD/sockets source compatibility. +// (The select macros used to be defined here). +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// +// Copyright 2010 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// University Copyright- Copyright (c) 1982, 1986, 1988 +// The Regents of the University of California +// All Rights Reserved +// +// University Acknowledgment- Portions of this document are derived from +// software developed by the University of California, Berkeley, and its +// contributors. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2005 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Implementation-private. This header should not be included +// directly by an application. The application should instead +// include which includes this header conditionally +// depending on which feature test macros are defined. By default, +// this header is included by . X/Open and POSIX +// standards requirements result in this header being included +// by only under a restricted set of conditions. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Time expressed in seconds and nanoseconds + +type Timespec = struct { + Ftv_sec int64 + Ftv_nsec int64 +} /* time_impl.h:57:9 */ + +// used by UFS +// END CSTYLED + +// Nested include for BSD/sockets source compatibility. +// (The select macros used to be defined here). +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// +// Copyright 2010 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// University Copyright- Copyright (c) 1982, 1986, 1988 +// The Regents of the University of California +// All Rights Reserved +// +// University Acknowledgment- Portions of this document are derived from +// software developed by the University of California, Berkeley, and its +// contributors. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2005 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Implementation-private. This header should not be included +// directly by an application. The application should instead +// include which includes this header conditionally +// depending on which feature test macros are defined. By default, +// this header is included by . X/Open and POSIX +// standards requirements result in this header being included +// by only under a restricted set of conditions. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Time expressed in seconds and nanoseconds + +type Timespec_t = Timespec /* time_impl.h:60:3 */ + +type Timestruc_t = Timespec /* time_impl.h:81:25 */ // definition per SVr4 + +// The following has been left in for backward compatibility. Portable +// applications should not use the structure name timestruc. + +// Timer specification +type Itimerspec = struct { + Fit_interval struct { + Ftv_sec int64 + Ftv_nsec int64 + } + Fit_value struct { + Ftv_sec int64 + Ftv_nsec int64 + } +} /* time_impl.h:95:9 */ + +// definition per SVr4 + +// The following has been left in for backward compatibility. Portable +// applications should not use the structure name timestruc. + +// Timer specification +type Itimerspec_t = Itimerspec /* time_impl.h:98:3 */ + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright (c) 1982, 1986, 1993 Regents of the University of California. +// All rights reserved. The Berkeley software License Agreement +// specifies the terms and conditions for redistribution. + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2020 OmniOS Community Edition (OmniOSce) Association. + +// Copyright (c) 2013, 2016 by Delphix. All rights reserved. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Structure returned by gettimeofday(2) system call, +// and used in other calls. + +type Timeval = struct { + Ftv_sec int64 + Ftv_usec int64 +} /* time.h:54:1 */ + +type Timezone = struct { + Ftz_minuteswest int32 + Ftz_dsttime int32 +} /* time.h:86:1 */ + +// Needed for longlong_t type. Placement of this due to +// including which relies on the presense of the itimerval +// structure. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2021 Oxide Computer Company + +// Operations on timevals. + +// Names of the interval timers, and structure +// defining a timer setting. +// time and when system is running on +// behalf of the process. +// time profiling of multithreaded +// programs. + +type Itimerval = struct { + Fit_interval struct { + Ftv_sec int64 + Ftv_usec int64 + } + Fit_value struct { + Ftv_sec int64 + Ftv_usec int64 + } +} /* time.h:209:1 */ + +// Definitions for commonly used resolutions. + +// Time expressed as a 64-bit nanosecond counter. +type Hrtime_t = int64 /* time.h:265:20 */ + +// The inclusion of is historical and was added for +// backward compatibility in delta 1.2 when a number of definitions +// were moved out of . More recently, the timespec and +// itimerspec structure definitions, along with the _CLOCK_*, CLOCK_*, +// _TIMER_*, and TIMER_* symbols were moved to , +// which is now included by . This change was due to POSIX +// 1003.1b-1993 and X/Open UNIX 98 requirements. For non-POSIX and +// non-X/Open applications, including this header will still make +// visible these definitions. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1988 AT&T +// All Rights Reserved + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2007 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2010 Nexenta Systems, Inc. Al rights reserved. +// Copyright 2016 Joyent, Inc. + +// The inclusion of is needed for the FD_CLR, +// FD_ISSET, FD_SET, and FD_SETSIZE macros as well as the +// select() prototype defined in the XOpen specifications +// beginning with XSH4v2. Placement required after definition +// for itimerval. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// +// Copyright 2010 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// University Copyright- Copyright (c) 1982, 1986, 1988 +// The Regents of the University of California +// All Rights Reserved +// +// University Acknowledgment- Portions of this document are derived from +// software developed by the University of California, Berkeley, and its +// contributors. + +// The sigset_t type is defined in and duplicated +// in as a result of XPG4v2 requirements. XPG6 +// now allows the visibility of signal.h in this header, however +// an order of inclusion problem occurs as a result of inclusion +// of in under certain conditions. +// Rather than include here, we've duplicated +// the sigset_t type instead. This type is required for the XPG6 +// introduced pselect() function also declared in this header. +type Sigset_t = struct{ F__sigbits [4]uint32 } /* select.h:76:3 */ + +// Select uses bit masks of file descriptors in longs. +// These macros manipulate such bit fields. +// FD_SETSIZE may be defined by the user, but the default here +// should be >= RLIM_FD_MAX. + +type Fd_mask = int64 /* select.h:92:14 */ +type Fds_mask = int64 /* select.h:94:14 */ + +// The value of _NBBY needs to be consistant with the value +// of NBBY in . + +type Fd_set1 = struct{ Ffds_bits [1024]int64 } /* select.h:120:9 */ + +// The value of _NBBY needs to be consistant with the value +// of NBBY in . + +type Fd_set = Fd_set1 /* select.h:125:3 */ + +// Neither X/Open nor POSIX allow the inclusion of for the +// definition of the sigevent structure. Both require the inclusion +// of and when using the timer_create() function. +// However, X/Open also specifies that the sigevent structure be defined +// in as described in the header . This prevents +// compiler warnings for applications that only include and not +// also . The sigval union and the sigevent structure is +// therefore defined both here and in which gets included +// via inclusion of . +type Sigval = struct { + F__ccgo_pad1 [0]uint64 + Fsival_int int32 + F__ccgo_pad2 [4]byte +} /* time.h:125:1 */ + +type Sigevent = struct { + Fsigev_notify int32 + Fsigev_signo int32 + Fsigev_value struct { + F__ccgo_pad1 [0]uint64 + Fsival_int int32 + F__ccgo_pad2 [4]byte + } + Fsigev_notify_function uintptr + Fsigev_notify_attributes uintptr + F__sigev_pad2 int32 + F__ccgo_pad1 [4]byte +} /* time.h:133:1 */ + +type Locale_t = uintptr /* time.h:292:24 */ + +var _ int8 /* gen.c:2:13: */ diff --git a/vendor/modernc.org/libc/time/time_linux_386.go b/vendor/modernc.org/libc/time/time_linux_386.go index a613fec61..7947e88a4 100644 --- a/vendor/modernc.org/libc/time/time_linux_386.go +++ b/vendor/modernc.org/libc/time/time_linux_386.go @@ -15,6 +15,7 @@ var _ atomic.Value var _ unsafe.Pointer const ( + CLOCKS_PER_SEC = 1000000 CLOCK_BOOTTIME = 7 CLOCK_BOOTTIME_ALARM = 9 CLOCK_MONOTONIC = 1 diff --git a/vendor/modernc.org/libc/time/time_linux_amd64.go b/vendor/modernc.org/libc/time/time_linux_amd64.go index e7f73f0dd..21f9ecb4b 100644 --- a/vendor/modernc.org/libc/time/time_linux_amd64.go +++ b/vendor/modernc.org/libc/time/time_linux_amd64.go @@ -61,6 +61,9 @@ const ( X_T_SIZE_ = 0 // stddef.h:185:1: Linux = 1 // :231:1: Unix = 1 // :177:1: + + // #define CLOCKS_PER_SEC ((__clock_t) 1000000) + CLOCKS_PER_SEC = 1000000 ) type Ptrdiff_t = int64 /* :3:26 */ diff --git a/vendor/modernc.org/libc/time/time_linux_arm.go b/vendor/modernc.org/libc/time/time_linux_arm.go index 02a06cf5d..7aa418dc1 100644 --- a/vendor/modernc.org/libc/time/time_linux_arm.go +++ b/vendor/modernc.org/libc/time/time_linux_arm.go @@ -15,6 +15,7 @@ var _ atomic.Value var _ unsafe.Pointer const ( + CLOCKS_PER_SEC = 1000000 CLOCK_BOOTTIME = 7 CLOCK_BOOTTIME_ALARM = 9 CLOCK_MONOTONIC = 1 diff --git a/vendor/modernc.org/libc/time/time_linux_arm64.go b/vendor/modernc.org/libc/time/time_linux_arm64.go index 75faedcd8..702e082b5 100644 --- a/vendor/modernc.org/libc/time/time_linux_arm64.go +++ b/vendor/modernc.org/libc/time/time_linux_arm64.go @@ -15,6 +15,7 @@ var _ atomic.Value var _ unsafe.Pointer const ( + CLOCKS_PER_SEC = 1000000 CLOCK_BOOTTIME = 7 CLOCK_BOOTTIME_ALARM = 9 CLOCK_MONOTONIC = 1 diff --git a/vendor/modernc.org/libc/time/time_linux_loong64.go b/vendor/modernc.org/libc/time/time_linux_loong64.go new file mode 100644 index 000000000..2ed0c7fa8 --- /dev/null +++ b/vendor/modernc.org/libc/time/time_linux_loong64.go @@ -0,0 +1,705 @@ +// Code generated by 'ccgo time/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o time/time_linux_loong64.go -pkgname time', DO NOT EDIT. + +package time + +import ( + "math" + "reflect" + "sync/atomic" + "unsafe" +) + +var _ = math.Pi +var _ reflect.Kind +var _ atomic.Value +var _ unsafe.Pointer + +const ( + CLOCKS_PER_SEC = 1000000 + CLOCK_BOOTTIME = 7 // time.h:60:1: + CLOCK_BOOTTIME_ALARM = 9 // time.h:64:1: + CLOCK_MONOTONIC = 1 // time.h:48:1: + CLOCK_MONOTONIC_COARSE = 6 // time.h:58:1: + CLOCK_MONOTONIC_RAW = 4 // time.h:54:1: + CLOCK_PROCESS_CPUTIME_ID = 2 // time.h:50:1: + CLOCK_REALTIME = 0 // time.h:46:1: + CLOCK_REALTIME_ALARM = 8 // time.h:62:1: + CLOCK_REALTIME_COARSE = 5 // time.h:56:1: + CLOCK_TAI = 11 // time.h:66:1: + CLOCK_THREAD_CPUTIME_ID = 3 // time.h:52:1: + TIMER_ABSTIME = 1 // time.h:69:1: + TIME_UTC = 1 // time.h:65:1: + X_ABILP64 = 3 // :377:1: + X_ATFILE_SOURCE = 1 // features.h:353:1: + X_BITS_ENDIANNESS_H = 1 // endianness.h:2:1: + X_BITS_ENDIAN_H = 1 // endian.h:20:1: + X_BITS_TIME64_H = 1 // time64.h:24:1: + X_BITS_TIME_H = 1 // time.h:24:1: + X_BITS_TYPESIZES_H = 1 // typesizes.h:24:1: + X_BITS_TYPES_H = 1 // types.h:24:1: + X_BITS_TYPES_LOCALE_T_H = 1 // locale_t.h:20:1: + X_BITS_TYPES___LOCALE_T_H = 1 // __locale_t.h:20:1: + X_BSD_SIZE_T_ = 0 // stddef.h:193:1: + X_BSD_SIZE_T_DEFINED_ = 0 // stddef.h:196:1: + X_DEFAULT_SOURCE = 1 // features.h:238:1: + X_FEATURES_H = 1 // features.h:19:1: + X_FILE_OFFSET_BITS = 64 // :25:1: + X_GCC_SIZE_T = 0 // stddef.h:200:1: + X_LOONGARCH_ARCH = "loongarch64" // :214:1: + X_LOONGARCH_ARCH_LOONGARCH64 = 1 // :340:1: + X_LOONGARCH_FPSET = 32 // :265:1: + X_LOONGARCH_SIM = 3 // :233:1: + X_LOONGARCH_SPFPSET = 32 // :88:1: + X_LOONGARCH_SZINT = 32 // :230:1: + X_LOONGARCH_SZLONG = 64 // :388:1: + X_LOONGARCH_SZPTR = 64 // :200:1: + X_LOONGARCH_TUNE = "la464" // :245:1: + X_LOONGARCH_TUNE_LA464 = 1 // :63:1: + X_LP64 = 1 // :372:1: + X_POSIX_C_SOURCE = 200809 // features.h:292:1: + X_POSIX_SOURCE = 1 // features.h:290:1: + X_SIZET_ = 0 // stddef.h:201:1: + X_SIZE_T = 0 // stddef.h:187:1: + X_SIZE_T_ = 0 // stddef.h:192:1: + X_SIZE_T_DECLARED = 0 // stddef.h:197:1: + X_SIZE_T_DEFINED = 0 // stddef.h:195:1: + X_SIZE_T_DEFINED_ = 0 // stddef.h:194:1: + X_STDC_PREDEF_H = 1 // :223:1: + X_STRUCT_TIMESPEC = 1 // struct_timespec.h:3:1: + X_SYS_CDEFS_H = 1 // cdefs.h:20:1: + X_SYS_SIZE_T_H = 0 // stddef.h:188:1: + X_TIME_H = 1 // time.h:23:1: + X_T_SIZE = 0 // stddef.h:190:1: + X_T_SIZE_ = 0 // stddef.h:189:1: + Linux = 1 // :308:1: + Unix = 1 // :247:1: +) + +type Ptrdiff_t = int64 /* :3:26 */ + +type Size_t = uint64 /* :9:23 */ + +type Wchar_t = int32 /* :15:24 */ + +type X__int128_t = struct { + Flo int64 + Fhi int64 +} /* :21:43 */ // must match modernc.org/mathutil.Int128 +type X__uint128_t = struct { + Flo uint64 + Fhi uint64 +} /* :22:44 */ // must match modernc.org/mathutil.Int128 + +type X__builtin_va_list = uintptr /* :46:14 */ +type X__float128 = float64 /* :47:21 */ + +// Wide character type. +// Locale-writers should change this as necessary to +// be big enough to hold unique values not between 0 and 127, +// and not (wchar_t) -1, for each defined multibyte character. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// A null pointer constant. + +// This defines CLOCKS_PER_SEC, which is the number of processor clock +// ticks per second, and possibly a number of other constants. +// System-dependent timing definitions. Linux version. +// Copyright (C) 1996-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Bit size of the time_t type at glibc build time, general case. +// Copyright (C) 2018-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Size in bits of the 'time_t' type of the default ABI. + +// Convenience types. +type X__u_char = uint8 /* types.h:31:23 */ +type X__u_short = uint16 /* types.h:32:28 */ +type X__u_int = uint32 /* types.h:33:22 */ +type X__u_long = uint64 /* types.h:34:27 */ + +// Fixed-size types, underlying types depend on word size and compiler. +type X__int8_t = int8 /* types.h:37:21 */ +type X__uint8_t = uint8 /* types.h:38:23 */ +type X__int16_t = int16 /* types.h:39:26 */ +type X__uint16_t = uint16 /* types.h:40:28 */ +type X__int32_t = int32 /* types.h:41:20 */ +type X__uint32_t = uint32 /* types.h:42:22 */ +type X__int64_t = int64 /* types.h:44:25 */ +type X__uint64_t = uint64 /* types.h:45:27 */ + +// Smallest types with at least a given width. +type X__int_least8_t = int8 /* types.h:52:18 */ +type X__uint_least8_t = uint8 /* types.h:53:19 */ +type X__int_least16_t = int16 /* types.h:54:19 */ +type X__uint_least16_t = uint16 /* types.h:55:20 */ +type X__int_least32_t = int32 /* types.h:56:19 */ +type X__uint_least32_t = uint32 /* types.h:57:20 */ +type X__int_least64_t = int64 /* types.h:58:19 */ +type X__uint_least64_t = uint64 /* types.h:59:20 */ + +// quad_t is also 64 bits. +type X__quad_t = int64 /* types.h:63:18 */ +type X__u_quad_t = uint64 /* types.h:64:27 */ + +// Largest integral types. +type X__intmax_t = int64 /* types.h:72:18 */ +type X__uintmax_t = uint64 /* types.h:73:27 */ + +// The machine-dependent file defines __*_T_TYPE +// macros for each of the OS types we define below. The definitions +// of those macros must use the following macros for underlying types. +// We define __S_TYPE and __U_TYPE for the signed and unsigned +// variants of each of the following integer types on this machine. +// +// 16 -- "natural" 16-bit type (always short) +// 32 -- "natural" 32-bit type (always int) +// 64 -- "natural" 64-bit type (long or long long) +// LONG32 -- 32-bit type, traditionally long +// QUAD -- 64-bit type, traditionally long long +// WORD -- natural type of __WORDSIZE bits (int or long) +// LONGWORD -- type of __WORDSIZE bits, traditionally long +// +// We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the +// conventional uses of `long' or `long long' type modifiers match the +// types we define, even when a less-adorned type would be the same size. +// This matters for (somewhat) portably writing printf/scanf formats for +// these types, where using the appropriate l or ll format modifiers can +// make the typedefs and the formats match up across all GNU platforms. If +// we used `long' when it's 64 bits where `long long' is expected, then the +// compiler would warn about the formats not matching the argument types, +// and the programmer changing them to shut up the compiler would break the +// program's portability. +// +// Here we assume what is presently the case in all the GCC configurations +// we support: long long is always 64 bits, long is always word/address size, +// and int is always 32 bits. + +// No need to mark the typedef with __extension__. +// bits/typesizes.h -- underlying types for *_t. For the generic Linux ABI. +// Copyright (C) 2011-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library. If not, see +// . + +// See for the meaning of these macros. This file exists so +// that need not vary across different GNU platforms. + +// Tell the libc code that off_t and off64_t are actually the same type +// for all ABI purposes, even if possibly expressed as different base types +// for C type-checking purposes. + +// Same for ino_t and ino64_t. + +// And for __rlim_t and __rlim64_t. + +// And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t. + +// And for getitimer, setitimer and rusage + +// Number of descriptors that can fit in an `fd_set'. + +// bits/time64.h -- underlying types for __time64_t. Generic version. +// Copyright (C) 2018-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Define __TIME64_T_TYPE so that it is always a 64-bit type. + +// If we already have 64-bit time type then use it. + +type X__dev_t = uint64 /* types.h:145:25 */ // Type of device numbers. +type X__uid_t = uint32 /* types.h:146:25 */ // Type of user identifications. +type X__gid_t = uint32 /* types.h:147:25 */ // Type of group identifications. +type X__ino_t = uint64 /* types.h:148:25 */ // Type of file serial numbers. +type X__ino64_t = uint64 /* types.h:149:27 */ // Type of file serial numbers (LFS). +type X__mode_t = uint32 /* types.h:150:26 */ // Type of file attribute bitmasks. +type X__nlink_t = uint32 /* types.h:151:27 */ // Type of file link counts. +type X__off_t = int64 /* types.h:152:25 */ // Type of file sizes and offsets. +type X__off64_t = int64 /* types.h:153:27 */ // Type of file sizes and offsets (LFS). +type X__pid_t = int32 /* types.h:154:25 */ // Type of process identifications. +type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs. +type X__clock_t = int64 /* types.h:156:27 */ // Type of CPU usage counts. +type X__rlim_t = uint64 /* types.h:157:26 */ // Type for resource measurement. +type X__rlim64_t = uint64 /* types.h:158:28 */ // Type for resource measurement (LFS). +type X__id_t = uint32 /* types.h:159:24 */ // General type for IDs. +type X__time_t = int64 /* types.h:160:26 */ // Seconds since the Epoch. +type X__useconds_t = uint32 /* types.h:161:30 */ // Count of microseconds. +type X__suseconds_t = int64 /* types.h:162:31 */ // Signed count of microseconds. +type X__suseconds64_t = int64 /* types.h:163:33 */ + +type X__daddr_t = int32 /* types.h:165:27 */ // The type of a disk address. +type X__key_t = int32 /* types.h:166:25 */ // Type of an IPC key. + +// Clock ID used in clock and timer functions. +type X__clockid_t = int32 /* types.h:169:29 */ + +// Timer ID returned by `timer_create'. +type X__timer_t = uintptr /* types.h:172:12 */ + +// Type to represent block size. +type X__blksize_t = int32 /* types.h:175:29 */ + +// Types from the Large File Support interface. + +// Type to count number of disk blocks. +type X__blkcnt_t = int64 /* types.h:180:28 */ +type X__blkcnt64_t = int64 /* types.h:181:30 */ + +// Type to count file system blocks. +type X__fsblkcnt_t = uint64 /* types.h:184:30 */ +type X__fsblkcnt64_t = uint64 /* types.h:185:32 */ + +// Type to count file system nodes. +type X__fsfilcnt_t = uint64 /* types.h:188:30 */ +type X__fsfilcnt64_t = uint64 /* types.h:189:32 */ + +// Type of miscellaneous file system fields. +type X__fsword_t = int64 /* types.h:192:28 */ + +type X__ssize_t = int64 /* types.h:194:27 */ // Type of a byte count, or error. + +// Signed long type used in system calls. +type X__syscall_slong_t = int64 /* types.h:197:33 */ +// Unsigned long type used in system calls. +type X__syscall_ulong_t = uint64 /* types.h:199:33 */ + +// These few don't really vary by system, they always correspond +// +// to one of the other defined types. +type X__loff_t = int64 /* types.h:203:19 */ // Type of file sizes and offsets (LFS). +type X__caddr_t = uintptr /* types.h:204:14 */ + +// Duplicates info from stdint.h but this is used in unistd.h. +type X__intptr_t = int64 /* types.h:207:25 */ + +// Duplicate info from sys/socket.h. +type X__socklen_t = uint32 /* types.h:210:23 */ + +// C99: An integer type that can be accessed as an atomic entity, +// +// even in the presence of asynchronous interrupts. +// It is not currently necessary for this to be machine-specific. +type X__sig_atomic_t = int32 /* types.h:215:13 */ + +// Seconds since the Epoch, visible to user code when time_t is too +// narrow only for consistency with the old way of widening too-narrow +// types. User code should never use __time64_t. + +// ISO/IEC 9899:1999 7.23.1: Components of time +// The macro `CLOCKS_PER_SEC' is an expression with type `clock_t' that is +// the number per second of the value returned by the `clock' function. +// CAE XSH, Issue 4, Version 2: +// The value of CLOCKS_PER_SEC is required to be 1 million on all +// XSI-conformant systems. + +// Identifier for system-wide realtime clock. +// Monotonic system-wide clock. +// High-resolution timer from the CPU. +// Thread-specific CPU-time clock. +// Monotonic system-wide clock, not adjusted for frequency scaling. +// Identifier for system-wide realtime clock, updated only on ticks. +// Monotonic system-wide clock, updated only on ticks. +// Monotonic system-wide clock that includes time spent in suspension. +// Like CLOCK_REALTIME but also wakes suspended system. +// Like CLOCK_BOOTTIME but also wakes suspended system. +// Like CLOCK_REALTIME but in International Atomic Time. + +// Flag to indicate time is absolute. + +// Many of the typedefs and structs whose official home is this header +// may also need to be defined by other headers. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Returned by `clock'. +type Clock_t = int64 /* clock_t.h:7:19 */ + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Returned by `time'. +type Time_t = int64 /* time_t.h:10:18 */ + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// ISO C `broken-down time' structure. +type Tm = struct { + Ftm_sec int32 + Ftm_min int32 + Ftm_hour int32 + Ftm_mday int32 + Ftm_mon int32 + Ftm_year int32 + Ftm_wday int32 + Ftm_yday int32 + Ftm_isdst int32 + F__ccgo_pad1 [4]byte + Ftm_gmtoff int64 + Ftm_zone uintptr +} /* struct_tm.h:7:1 */ + +// NB: Include guard matches what uses. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Endian macros for string.h functions +// Copyright (C) 1992-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Definitions for byte order, according to significance of bytes, +// from low addresses to high addresses. The value is what you get by +// putting '4' in the most significant byte, '3' in the second most +// significant byte, '2' in the second least significant byte, and '1' +// in the least significant byte, and then writing down one digit for +// each byte, starting with the byte at the lowest address at the left, +// and proceeding to the byte with the highest address at the right. + +// This file defines `__BYTE_ORDER' for the particular machine. + +// LoongArch is little-endian. + +// Some machines may need to use a different endianness for floating point +// values. + +// POSIX.1b structure for a time value. This is like a `struct timeval' but +// +// has nanoseconds instead of microseconds. +type Timespec = struct { + Ftv_sec int64 + Ftv_nsec int64 +} /* struct_timespec.h:11:1 */ + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Clock ID used in clock and timer functions. +type Clockid_t = int32 /* clockid_t.h:7:21 */ + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Timer ID returned by `timer_create'. +type Timer_t = uintptr /* timer_t.h:7:19 */ + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// NB: Include guard matches what uses. + +// POSIX.1b structure for timer start values and intervals. +type Itimerspec = struct { + Fit_interval struct { + Ftv_sec int64 + Ftv_nsec int64 + } + Fit_value struct { + Ftv_sec int64 + Ftv_nsec int64 + } +} /* struct_itimerspec.h:8:1 */ + +type Pid_t = int32 /* time.h:54:17 */ + +// Definition of locale_t. +// Copyright (C) 2017-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Definition of struct __locale_struct and __locale_t. +// Copyright (C) 1997-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// POSIX.1-2008: the locale_t type, representing a locale context +// (implementation-namespace version). This type should be treated +// as opaque by applications; some details are exposed for the sake of +// efficiency in e.g. ctype functions. + +type X__locale_struct = struct { + F__locales [13]uintptr + F__ctype_b uintptr + F__ctype_tolower uintptr + F__ctype_toupper uintptr + F__names [13]uintptr +} /* __locale_t.h:27:1 */ + +type X__locale_t = uintptr /* __locale_t.h:41:32 */ + +type Locale_t = uintptr /* locale_t.h:24:20 */ + +var _ int8 /* gen.c:2:13: */ diff --git a/vendor/modernc.org/libc/time/time_linux_mips64le.go b/vendor/modernc.org/libc/time/time_linux_mips64le.go new file mode 100644 index 000000000..21f9ecb4b --- /dev/null +++ b/vendor/modernc.org/libc/time/time_linux_mips64le.go @@ -0,0 +1,682 @@ +// Code generated by 'ccgo time/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o time/time_linux_amd64.go -pkgname time', DO NOT EDIT. + +package time + +import ( + "math" + "reflect" + "sync/atomic" + "unsafe" +) + +var _ = math.Pi +var _ reflect.Kind +var _ atomic.Value +var _ unsafe.Pointer + +const ( + CLOCK_BOOTTIME = 7 // time.h:60:1: + CLOCK_BOOTTIME_ALARM = 9 // time.h:64:1: + CLOCK_MONOTONIC = 1 // time.h:48:1: + CLOCK_MONOTONIC_COARSE = 6 // time.h:58:1: + CLOCK_MONOTONIC_RAW = 4 // time.h:54:1: + CLOCK_PROCESS_CPUTIME_ID = 2 // time.h:50:1: + CLOCK_REALTIME = 0 // time.h:46:1: + CLOCK_REALTIME_ALARM = 8 // time.h:62:1: + CLOCK_REALTIME_COARSE = 5 // time.h:56:1: + CLOCK_TAI = 11 // time.h:66:1: + CLOCK_THREAD_CPUTIME_ID = 3 // time.h:52:1: + TIMER_ABSTIME = 1 // time.h:69:1: + TIME_UTC = 1 // time.h:65:1: + X_ATFILE_SOURCE = 1 // features.h:342:1: + X_BITS_ENDIANNESS_H = 1 // endianness.h:2:1: + X_BITS_ENDIAN_H = 1 // endian.h:20:1: + X_BITS_TIME64_H = 1 // time64.h:24:1: + X_BITS_TIME_H = 1 // time.h:24:1: + X_BITS_TYPESIZES_H = 1 // typesizes.h:24:1: + X_BITS_TYPES_H = 1 // types.h:24:1: + X_BITS_TYPES_LOCALE_T_H = 1 // locale_t.h:20:1: + X_BITS_TYPES___LOCALE_T_H = 1 // __locale_t.h:21:1: + X_BSD_SIZE_T_ = 0 // stddef.h:189:1: + X_BSD_SIZE_T_DEFINED_ = 0 // stddef.h:192:1: + X_DEFAULT_SOURCE = 1 // features.h:227:1: + X_FEATURES_H = 1 // features.h:19:1: + X_FILE_OFFSET_BITS = 64 // :25:1: + X_GCC_SIZE_T = 0 // stddef.h:195:1: + X_LP64 = 1 // :284:1: + X_POSIX_C_SOURCE = 200809 // features.h:281:1: + X_POSIX_SOURCE = 1 // features.h:279:1: + X_SIZET_ = 0 // stddef.h:196:1: + X_SIZE_T = 0 // stddef.h:183:1: + X_SIZE_T_ = 0 // stddef.h:188:1: + X_SIZE_T_DECLARED = 0 // stddef.h:193:1: + X_SIZE_T_DEFINED = 0 // stddef.h:191:1: + X_SIZE_T_DEFINED_ = 0 // stddef.h:190:1: + X_STDC_PREDEF_H = 1 // :162:1: + X_STRUCT_TIMESPEC = 1 // struct_timespec.h:3:1: + X_SYS_CDEFS_H = 1 // cdefs.h:19:1: + X_SYS_SIZE_T_H = 0 // stddef.h:184:1: + X_TIME_H = 1 // time.h:23:1: + X_T_SIZE = 0 // stddef.h:186:1: + X_T_SIZE_ = 0 // stddef.h:185:1: + Linux = 1 // :231:1: + Unix = 1 // :177:1: + + // #define CLOCKS_PER_SEC ((__clock_t) 1000000) + CLOCKS_PER_SEC = 1000000 +) + +type Ptrdiff_t = int64 /* :3:26 */ + +type Size_t = uint64 /* :9:23 */ + +type Wchar_t = int32 /* :15:24 */ + +type X__int128_t = struct { + Flo int64 + Fhi int64 +} /* :21:43 */ // must match modernc.org/mathutil.Int128 +type X__uint128_t = struct { + Flo uint64 + Fhi uint64 +} /* :22:44 */ // must match modernc.org/mathutil.Int128 + +type X__builtin_va_list = uintptr /* :46:14 */ +type X__float128 = float64 /* :47:21 */ + +// Wide character type. +// Locale-writers should change this as necessary to +// be big enough to hold unique values not between 0 and 127, +// and not (wchar_t) -1, for each defined multibyte character. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// A null pointer constant. + +// This defines CLOCKS_PER_SEC, which is the number of processor clock +// ticks per second, and possibly a number of other constants. +// System-dependent timing definitions. Linux version. +// Copyright (C) 1996-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Determine the wordsize from the preprocessor defines. + +// Both x86-64 and x32 use the 64-bit system call interface. +// Bit size of the time_t type at glibc build time, x86-64 and x32 case. +// Copyright (C) 2018-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// For others, time size is word size. + +// Convenience types. +type X__u_char = uint8 /* types.h:31:23 */ +type X__u_short = uint16 /* types.h:32:28 */ +type X__u_int = uint32 /* types.h:33:22 */ +type X__u_long = uint64 /* types.h:34:27 */ + +// Fixed-size types, underlying types depend on word size and compiler. +type X__int8_t = int8 /* types.h:37:21 */ +type X__uint8_t = uint8 /* types.h:38:23 */ +type X__int16_t = int16 /* types.h:39:26 */ +type X__uint16_t = uint16 /* types.h:40:28 */ +type X__int32_t = int32 /* types.h:41:20 */ +type X__uint32_t = uint32 /* types.h:42:22 */ +type X__int64_t = int64 /* types.h:44:25 */ +type X__uint64_t = uint64 /* types.h:45:27 */ + +// Smallest types with at least a given width. +type X__int_least8_t = X__int8_t /* types.h:52:18 */ +type X__uint_least8_t = X__uint8_t /* types.h:53:19 */ +type X__int_least16_t = X__int16_t /* types.h:54:19 */ +type X__uint_least16_t = X__uint16_t /* types.h:55:20 */ +type X__int_least32_t = X__int32_t /* types.h:56:19 */ +type X__uint_least32_t = X__uint32_t /* types.h:57:20 */ +type X__int_least64_t = X__int64_t /* types.h:58:19 */ +type X__uint_least64_t = X__uint64_t /* types.h:59:20 */ + +// quad_t is also 64 bits. +type X__quad_t = int64 /* types.h:63:18 */ +type X__u_quad_t = uint64 /* types.h:64:27 */ + +// Largest integral types. +type X__intmax_t = int64 /* types.h:72:18 */ +type X__uintmax_t = uint64 /* types.h:73:27 */ + +// The machine-dependent file defines __*_T_TYPE +// macros for each of the OS types we define below. The definitions +// of those macros must use the following macros for underlying types. +// We define __S_TYPE and __U_TYPE for the signed and unsigned +// variants of each of the following integer types on this machine. +// +// 16 -- "natural" 16-bit type (always short) +// 32 -- "natural" 32-bit type (always int) +// 64 -- "natural" 64-bit type (long or long long) +// LONG32 -- 32-bit type, traditionally long +// QUAD -- 64-bit type, traditionally long long +// WORD -- natural type of __WORDSIZE bits (int or long) +// LONGWORD -- type of __WORDSIZE bits, traditionally long +// +// We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the +// conventional uses of `long' or `long long' type modifiers match the +// types we define, even when a less-adorned type would be the same size. +// This matters for (somewhat) portably writing printf/scanf formats for +// these types, where using the appropriate l or ll format modifiers can +// make the typedefs and the formats match up across all GNU platforms. If +// we used `long' when it's 64 bits where `long long' is expected, then the +// compiler would warn about the formats not matching the argument types, +// and the programmer changing them to shut up the compiler would break the +// program's portability. +// +// Here we assume what is presently the case in all the GCC configurations +// we support: long long is always 64 bits, long is always word/address size, +// and int is always 32 bits. + +// No need to mark the typedef with __extension__. +// bits/typesizes.h -- underlying types for *_t. Linux/x86-64 version. +// Copyright (C) 2012-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// See for the meaning of these macros. This file exists so +// that need not vary across different GNU platforms. + +// X32 kernel interface is 64-bit. + +// Tell the libc code that off_t and off64_t are actually the same type +// for all ABI purposes, even if possibly expressed as different base types +// for C type-checking purposes. + +// Same for ino_t and ino64_t. + +// And for __rlim_t and __rlim64_t. + +// And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t. + +// Number of descriptors that can fit in an `fd_set'. + +// bits/time64.h -- underlying types for __time64_t. Generic version. +// Copyright (C) 2018-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Define __TIME64_T_TYPE so that it is always a 64-bit type. + +// If we already have 64-bit time type then use it. + +type X__dev_t = uint64 /* types.h:145:25 */ // Type of device numbers. +type X__uid_t = uint32 /* types.h:146:25 */ // Type of user identifications. +type X__gid_t = uint32 /* types.h:147:25 */ // Type of group identifications. +type X__ino_t = uint64 /* types.h:148:25 */ // Type of file serial numbers. +type X__ino64_t = uint64 /* types.h:149:27 */ // Type of file serial numbers (LFS). +type X__mode_t = uint32 /* types.h:150:26 */ // Type of file attribute bitmasks. +type X__nlink_t = uint64 /* types.h:151:27 */ // Type of file link counts. +type X__off_t = int64 /* types.h:152:25 */ // Type of file sizes and offsets. +type X__off64_t = int64 /* types.h:153:27 */ // Type of file sizes and offsets (LFS). +type X__pid_t = int32 /* types.h:154:25 */ // Type of process identifications. +type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs. +type X__clock_t = int64 /* types.h:156:27 */ // Type of CPU usage counts. +type X__rlim_t = uint64 /* types.h:157:26 */ // Type for resource measurement. +type X__rlim64_t = uint64 /* types.h:158:28 */ // Type for resource measurement (LFS). +type X__id_t = uint32 /* types.h:159:24 */ // General type for IDs. +type X__time_t = int64 /* types.h:160:26 */ // Seconds since the Epoch. +type X__useconds_t = uint32 /* types.h:161:30 */ // Count of microseconds. +type X__suseconds_t = int64 /* types.h:162:31 */ // Signed count of microseconds. + +type X__daddr_t = int32 /* types.h:164:27 */ // The type of a disk address. +type X__key_t = int32 /* types.h:165:25 */ // Type of an IPC key. + +// Clock ID used in clock and timer functions. +type X__clockid_t = int32 /* types.h:168:29 */ + +// Timer ID returned by `timer_create'. +type X__timer_t = uintptr /* types.h:171:12 */ + +// Type to represent block size. +type X__blksize_t = int64 /* types.h:174:29 */ + +// Types from the Large File Support interface. + +// Type to count number of disk blocks. +type X__blkcnt_t = int64 /* types.h:179:28 */ +type X__blkcnt64_t = int64 /* types.h:180:30 */ + +// Type to count file system blocks. +type X__fsblkcnt_t = uint64 /* types.h:183:30 */ +type X__fsblkcnt64_t = uint64 /* types.h:184:32 */ + +// Type to count file system nodes. +type X__fsfilcnt_t = uint64 /* types.h:187:30 */ +type X__fsfilcnt64_t = uint64 /* types.h:188:32 */ + +// Type of miscellaneous file system fields. +type X__fsword_t = int64 /* types.h:191:28 */ + +type X__ssize_t = int64 /* types.h:193:27 */ // Type of a byte count, or error. + +// Signed long type used in system calls. +type X__syscall_slong_t = int64 /* types.h:196:33 */ +// Unsigned long type used in system calls. +type X__syscall_ulong_t = uint64 /* types.h:198:33 */ + +// These few don't really vary by system, they always correspond +// +// to one of the other defined types. +type X__loff_t = X__off64_t /* types.h:202:19 */ // Type of file sizes and offsets (LFS). +type X__caddr_t = uintptr /* types.h:203:14 */ + +// Duplicates info from stdint.h but this is used in unistd.h. +type X__intptr_t = int64 /* types.h:206:25 */ + +// Duplicate info from sys/socket.h. +type X__socklen_t = uint32 /* types.h:209:23 */ + +// C99: An integer type that can be accessed as an atomic entity, +// +// even in the presence of asynchronous interrupts. +// It is not currently necessary for this to be machine-specific. +type X__sig_atomic_t = int32 /* types.h:214:13 */ + +// Seconds since the Epoch, visible to user code when time_t is too +// narrow only for consistency with the old way of widening too-narrow +// types. User code should never use __time64_t. + +// ISO/IEC 9899:1999 7.23.1: Components of time +// The macro `CLOCKS_PER_SEC' is an expression with type `clock_t' that is +// the number per second of the value returned by the `clock' function. +// CAE XSH, Issue 4, Version 2: +// The value of CLOCKS_PER_SEC is required to be 1 million on all +// XSI-conformant systems. + +// Identifier for system-wide realtime clock. +// Monotonic system-wide clock. +// High-resolution timer from the CPU. +// Thread-specific CPU-time clock. +// Monotonic system-wide clock, not adjusted for frequency scaling. +// Identifier for system-wide realtime clock, updated only on ticks. +// Monotonic system-wide clock, updated only on ticks. +// Monotonic system-wide clock that includes time spent in suspension. +// Like CLOCK_REALTIME but also wakes suspended system. +// Like CLOCK_BOOTTIME but also wakes suspended system. +// Like CLOCK_REALTIME but in International Atomic Time. + +// Flag to indicate time is absolute. + +// Many of the typedefs and structs whose official home is this header +// may also need to be defined by other headers. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Returned by `clock'. +type Clock_t = X__clock_t /* clock_t.h:7:19 */ + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Returned by `time'. +type Time_t = X__time_t /* time_t.h:7:18 */ + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// ISO C `broken-down time' structure. +type Tm = struct { + Ftm_sec int32 + Ftm_min int32 + Ftm_hour int32 + Ftm_mday int32 + Ftm_mon int32 + Ftm_year int32 + Ftm_wday int32 + Ftm_yday int32 + Ftm_isdst int32 + F__ccgo_pad1 [4]byte + Ftm_gmtoff int64 + Ftm_zone uintptr +} /* struct_tm.h:7:1 */ + +// NB: Include guard matches what uses. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Endian macros for string.h functions +// Copyright (C) 1992-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Definitions for byte order, according to significance of bytes, +// from low addresses to high addresses. The value is what you get by +// putting '4' in the most significant byte, '3' in the second most +// significant byte, '2' in the second least significant byte, and '1' +// in the least significant byte, and then writing down one digit for +// each byte, starting with the byte at the lowest address at the left, +// and proceeding to the byte with the highest address at the right. + +// This file defines `__BYTE_ORDER' for the particular machine. + +// i386/x86_64 are little-endian. + +// Some machines may need to use a different endianness for floating point +// values. + +// POSIX.1b structure for a time value. This is like a `struct timeval' but +// +// has nanoseconds instead of microseconds. +type Timespec = struct { + Ftv_sec X__time_t + Ftv_nsec X__syscall_slong_t +} /* struct_timespec.h:10:1 */ + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Clock ID used in clock and timer functions. +type Clockid_t = X__clockid_t /* clockid_t.h:7:21 */ + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Timer ID returned by `timer_create'. +type Timer_t = X__timer_t /* timer_t.h:7:19 */ + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// NB: Include guard matches what uses. + +// POSIX.1b structure for timer start values and intervals. +type Itimerspec = struct { + Fit_interval struct { + Ftv_sec X__time_t + Ftv_nsec X__syscall_slong_t + } + Fit_value struct { + Ftv_sec X__time_t + Ftv_nsec X__syscall_slong_t + } +} /* struct_itimerspec.h:8:1 */ + +type Pid_t = X__pid_t /* time.h:54:17 */ + +// Definition of locale_t. +// Copyright (C) 2017-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Definition of struct __locale_struct and __locale_t. +// Copyright (C) 1997-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// Contributed by Ulrich Drepper , 1997. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// POSIX.1-2008: the locale_t type, representing a locale context +// (implementation-namespace version). This type should be treated +// as opaque by applications; some details are exposed for the sake of +// efficiency in e.g. ctype functions. + +type X__locale_struct = struct { + F__locales [13]uintptr + F__ctype_b uintptr + F__ctype_tolower uintptr + F__ctype_toupper uintptr + F__names [13]uintptr +} /* __locale_t.h:28:1 */ + +type X__locale_t = uintptr /* __locale_t.h:42:32 */ + +type Locale_t = X__locale_t /* locale_t.h:24:20 */ + +var _ int8 /* gen.c:2:13: */ diff --git a/vendor/modernc.org/libc/time/time_linux_ppc64le.go b/vendor/modernc.org/libc/time/time_linux_ppc64le.go index 806f6dc9c..358f9b273 100644 --- a/vendor/modernc.org/libc/time/time_linux_ppc64le.go +++ b/vendor/modernc.org/libc/time/time_linux_ppc64le.go @@ -15,6 +15,7 @@ var _ atomic.Value var _ unsafe.Pointer const ( + CLOCKS_PER_SEC = 1000000 CLOCK_BOOTTIME = 7 // time.h:60:1: CLOCK_BOOTTIME_ALARM = 9 // time.h:64:1: CLOCK_MONOTONIC = 1 // time.h:48:1: diff --git a/vendor/modernc.org/libc/time/time_linux_riscv64.go b/vendor/modernc.org/libc/time/time_linux_riscv64.go index bb44255fc..263041491 100644 --- a/vendor/modernc.org/libc/time/time_linux_riscv64.go +++ b/vendor/modernc.org/libc/time/time_linux_riscv64.go @@ -15,6 +15,7 @@ var _ atomic.Value var _ unsafe.Pointer const ( + CLOCKS_PER_SEC = 1000000 CLOCK_BOOTTIME = 7 CLOCK_BOOTTIME_ALARM = 9 CLOCK_MONOTONIC = 1 diff --git a/vendor/modernc.org/libc/time/time_linux_s390x.go b/vendor/modernc.org/libc/time/time_linux_s390x.go index 7c0a4e8c1..95d4e69f5 100644 --- a/vendor/modernc.org/libc/time/time_linux_s390x.go +++ b/vendor/modernc.org/libc/time/time_linux_s390x.go @@ -15,6 +15,7 @@ var _ atomic.Value var _ unsafe.Pointer const ( + CLOCKS_PER_SEC = 1000000 CLOCK_BOOTTIME = 7 CLOCK_BOOTTIME_ALARM = 9 CLOCK_MONOTONIC = 1 diff --git a/vendor/modernc.org/libc/tls_linux_amd64.go b/vendor/modernc.org/libc/tls_linux_amd64.go new file mode 100644 index 000000000..cba2c4437 --- /dev/null +++ b/vendor/modernc.org/libc/tls_linux_amd64.go @@ -0,0 +1,33 @@ +// Copyright 2025 The Libc Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package libc // import "modernc.org/libc" + +//go:noescape +func TLSAlloc(p0 *TLS, p1 int) uintptr + +//go:noescape +func TLSFree(p0 *TLS, p1 int) + +//go:noescape +func TLSAllocaEntry(p0 *TLS) + +//go:noescape +func TLSAllocaExit(p0 *TLS) + +func tlsAlloc(tls *TLS, n int) uintptr { + return tls.Alloc(n) +} + +func tlsFree(tls *TLS, n int) { + tls.Free(n) +} + +func tlsAllocaEntry(tls *TLS) { + tls.AllocaEntry() +} + +func tlsAllocaExit(tls *TLS) { + tls.AllocaExit() +} diff --git a/vendor/modernc.org/libc/tls_linux_amd64.s b/vendor/modernc.org/libc/tls_linux_amd64.s new file mode 100644 index 000000000..d72678788 --- /dev/null +++ b/vendor/modernc.org/libc/tls_linux_amd64.s @@ -0,0 +1,40 @@ +#include "funcdata.h" +#include "textflag.h" + +TEXT ·TLSAlloc(SB),$24-24 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ p0+0(FP), AX + MOVQ AX, 0(SP) + MOVQ p1+8(FP), AX + MOVQ AX, 8(SP) + CALL ·tlsAlloc(SB) + MOVQ 16(SP), AX + MOVQ AX, ret+16(FP) + RET + +TEXT ·TLSFree(SB),$16-16 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ p0+0(FP), AX + MOVQ AX, 0(SP) + MOVQ p1+8(FP), AX + MOVQ AX, 8(SP) + CALL ·tlsFree(SB) + RET + +TEXT ·TLSAllocaEntry(SB),$8-8 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ p0+0(FP), AX + MOVQ AX, 0(SP) + CALL ·tlsAllocaEntry(SB) + RET + +TEXT ·TLSAllocaExit(SB),$8-8 + GO_ARGS + NO_LOCAL_POINTERS + MOVQ p0+0(FP), AX + MOVQ AX, 0(SP) + CALL ·tlsAllocaExit(SB) + RET diff --git a/vendor/modernc.org/libc/unistd/capi_illumos_amd64.go b/vendor/modernc.org/libc/unistd/capi_illumos_amd64.go new file mode 100644 index 000000000..8b58510ae --- /dev/null +++ b/vendor/modernc.org/libc/unistd/capi_illumos_amd64.go @@ -0,0 +1,5 @@ +// Code generated by 'ccgo unistd/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o unistd/unistd_illumos_amd64.go -pkgname unistd', DO NOT EDIT. + +package unistd + +var CAPI = map[string]struct{}{} diff --git a/vendor/modernc.org/libc/unistd/capi_linux_loong64.go b/vendor/modernc.org/libc/unistd/capi_linux_loong64.go new file mode 100644 index 000000000..1dff1b3f4 --- /dev/null +++ b/vendor/modernc.org/libc/unistd/capi_linux_loong64.go @@ -0,0 +1,5 @@ +// Code generated by 'ccgo unistd/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o unistd/unistd_linux_loong64.go -pkgname unistd', DO NOT EDIT. + +package unistd + +var CAPI = map[string]struct{}{} diff --git a/vendor/modernc.org/libc/unistd/capi_linux_mips64le.go b/vendor/modernc.org/libc/unistd/capi_linux_mips64le.go new file mode 100644 index 000000000..4e94243cf --- /dev/null +++ b/vendor/modernc.org/libc/unistd/capi_linux_mips64le.go @@ -0,0 +1,5 @@ +// Code generated by 'ccgo unistd/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o unistd/unistd_linux_amd64.go -pkgname unistd', DO NOT EDIT. + +package unistd + +var CAPI = map[string]struct{}{} diff --git a/vendor/modernc.org/libc/unistd/unistd_illumos_amd64.go b/vendor/modernc.org/libc/unistd/unistd_illumos_amd64.go new file mode 100644 index 000000000..63af42eeb --- /dev/null +++ b/vendor/modernc.org/libc/unistd/unistd_illumos_amd64.go @@ -0,0 +1,3180 @@ +// Code generated by 'ccgo unistd/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o unistd/unistd_illumos_amd64.go -pkgname unistd', DO NOT EDIT. + +package unistd + +import ( + "math" + "reflect" + "sync/atomic" + "unsafe" +) + +var _ = math.Pi +var _ reflect.Kind +var _ atomic.Value +var _ unsafe.Pointer + +const ( + CLOCKS_PER_SEC = 1000000 // time_iso.h:78:1: + CLOCK_HIGHRES = 4 // time_impl.h:126:1: + CLOCK_MONOTONIC = 4 // time_impl.h:124:1: + CLOCK_PROCESS_CPUTIME_ID = 5 // time_impl.h:125:1: + CLOCK_PROF = 2 // time_impl.h:127:1: + CLOCK_REALTIME = 3 // time_impl.h:123:1: + CLOCK_THREAD_CPUTIME_ID = 2 // time_impl.h:122:1: + CLOCK_VIRTUAL = 1 // time_impl.h:121:1: + DST_AUST = 2 // time.h:115:1: + DST_AUSTALT = 10 // time.h:123:1: + DST_CAN = 6 // time.h:119:1: + DST_EET = 5 // time.h:118:1: + DST_GB = 7 // time.h:120:1: + DST_MET = 4 // time.h:117:1: + DST_NONE = 0 // time.h:113:1: + DST_RUM = 8 // time.h:121:1: + DST_TUR = 9 // time.h:122:1: + DST_USA = 1 // time.h:114:1: + DST_WET = 3 // time.h:116:1: + FD_SETSIZE = 65536 // select.h:88:1: + F_LOCK = 1 // unistd.h:56:1: + F_OK = 0 // unistd.h:52:1: + F_TEST = 3 // unistd.h:58:1: + F_TLOCK = 2 // unistd.h:57:1: + F_ULOCK = 0 // unistd.h:55:1: + GF_PATH = "/etc/group" // unistd.h:87:1: + ITIMER_PROF = 2 // time.h:201:1: + ITIMER_REAL = 0 // time.h:199:1: + ITIMER_REALPROF = 3 // time.h:204:1: + ITIMER_VIRTUAL = 1 // time.h:200:1: + MICROSEC = 1000000 // time.h:246:1: + MILLISEC = 1000 // time.h:245:1: + NANOSEC = 1000000000 // time.h:247:1: + NBBY = 8 // select.h:103:1: + PF_PATH = "/etc/passwd" // unistd.h:88:1: + P_MYID = -1 // types.h:632:1: + REG_LABEL_BP = 2 // machtypes.h:44:1: + REG_LABEL_MAX = 8 // machtypes.h:51:1: + REG_LABEL_PC = 0 // machtypes.h:42:1: + REG_LABEL_R12 = 4 // machtypes.h:47:1: + REG_LABEL_R13 = 5 // machtypes.h:48:1: + REG_LABEL_R14 = 6 // machtypes.h:49:1: + REG_LABEL_R15 = 7 // machtypes.h:50:1: + REG_LABEL_RBX = 3 // machtypes.h:46:1: + REG_LABEL_SP = 1 // machtypes.h:43:1: + R_OK = 4 // unistd.h:49:1: + SEC = 1 // time.h:244:1: + SEEK_CUR = 1 // unistd.h:68:1: + SEEK_DATA = 3 // unistd.h:77:1: + SEEK_END = 2 // unistd.h:72:1: + SEEK_HOLE = 4 // unistd.h:81:1: + SEEK_SET = 0 // unistd.h:64:1: + STDERR_FILENO = 2 // unistd.h:185:1: + STDIN_FILENO = 0 // unistd.h:183:1: + STDOUT_FILENO = 1 // unistd.h:184:1: + TIMER_ABSTIME = 0x1 // time_impl.h:134:1: + TIMER_RELTIME = 0x0 // time_impl.h:133:1: + TIME_UTC = 0x1 // time.h:306:1: + W_OK = 2 // unistd.h:50:1: + X_OK = 1 // unistd.h:51:1: + X_ACL_ACE_ENABLED = 0x2 // unistd.h:349:1: + X_ACL_ACLENT_ENABLED = 0x1 // unistd.h:348:1: + X_ALIGNMENT_REQUIRED = 1 // isa_defs.h:262:1: + X_BIT_FIELDS_LTOH = 0 // isa_defs.h:245:1: + X_BOOL_ALIGNMENT = 1 // isa_defs.h:248:1: + X_CASE_INSENSITIVE = 0x2 // unistd.h:342:1: + X_CASE_SENSITIVE = 0x1 // unistd.h:341:1: + X_CHAR_ALIGNMENT = 1 // isa_defs.h:249:1: + X_CHAR_IS_SIGNED = 0 // isa_defs.h:247:1: + X_CLOCKID_T = 0 // types.h:568:1: + X_CLOCK_T = 0 // types.h:563:1: + X_COND_MAGIC = 0x4356 // types.h:426:1: + X_CS_LFS64_CFLAGS = 72 // unistd.h:61:1: + X_CS_LFS64_LDFLAGS = 73 // unistd.h:62:1: + X_CS_LFS64_LIBS = 74 // unistd.h:63:1: + X_CS_LFS64_LINTFLAGS = 75 // unistd.h:64:1: + X_CS_LFS_CFLAGS = 68 // unistd.h:56:1: + X_CS_LFS_LDFLAGS = 69 // unistd.h:57:1: + X_CS_LFS_LIBS = 70 // unistd.h:58:1: + X_CS_LFS_LINTFLAGS = 71 // unistd.h:59:1: + X_CS_PATH = 65 // unistd.h:50:1: + X_CS_POSIX_V6_ILP32_OFF32_CFLAGS = 800 // unistd.h:85:1: + X_CS_POSIX_V6_ILP32_OFF32_LDFLAGS = 801 // unistd.h:86:1: + X_CS_POSIX_V6_ILP32_OFF32_LIBS = 802 // unistd.h:87:1: + X_CS_POSIX_V6_ILP32_OFF32_LINTFLAGS = 803 // unistd.h:88:1: + X_CS_POSIX_V6_ILP32_OFFBIG_CFLAGS = 804 // unistd.h:89:1: + X_CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS = 805 // unistd.h:90:1: + X_CS_POSIX_V6_ILP32_OFFBIG_LIBS = 806 // unistd.h:91:1: + X_CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS = 807 // unistd.h:92:1: + X_CS_POSIX_V6_LP64_OFF64_CFLAGS = 808 // unistd.h:93:1: + X_CS_POSIX_V6_LP64_OFF64_LDFLAGS = 809 // unistd.h:94:1: + X_CS_POSIX_V6_LP64_OFF64_LIBS = 810 // unistd.h:95:1: + X_CS_POSIX_V6_LP64_OFF64_LINTFLAGS = 811 // unistd.h:96:1: + X_CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS = 812 // unistd.h:97:1: + X_CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS = 813 // unistd.h:98:1: + X_CS_POSIX_V6_LPBIG_OFFBIG_LIBS = 814 // unistd.h:99:1: + X_CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS = 815 // unistd.h:100:1: + X_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS = 816 // unistd.h:101:1: + X_CS_XBS5_ILP32_OFF32_CFLAGS = 700 // unistd.h:67:1: + X_CS_XBS5_ILP32_OFF32_LDFLAGS = 701 // unistd.h:68:1: + X_CS_XBS5_ILP32_OFF32_LIBS = 702 // unistd.h:69:1: + X_CS_XBS5_ILP32_OFF32_LINTFLAGS = 703 // unistd.h:70:1: + X_CS_XBS5_ILP32_OFFBIG_CFLAGS = 705 // unistd.h:71:1: + X_CS_XBS5_ILP32_OFFBIG_LDFLAGS = 706 // unistd.h:72:1: + X_CS_XBS5_ILP32_OFFBIG_LIBS = 707 // unistd.h:73:1: + X_CS_XBS5_ILP32_OFFBIG_LINTFLAGS = 708 // unistd.h:74:1: + X_CS_XBS5_LP64_OFF64_CFLAGS = 709 // unistd.h:75:1: + X_CS_XBS5_LP64_OFF64_LDFLAGS = 710 // unistd.h:76:1: + X_CS_XBS5_LP64_OFF64_LIBS = 711 // unistd.h:77:1: + X_CS_XBS5_LP64_OFF64_LINTFLAGS = 712 // unistd.h:78:1: + X_CS_XBS5_LPBIG_OFFBIG_CFLAGS = 713 // unistd.h:79:1: + X_CS_XBS5_LPBIG_OFFBIG_LDFLAGS = 714 // unistd.h:80:1: + X_CS_XBS5_LPBIG_OFFBIG_LIBS = 715 // unistd.h:81:1: + X_CS_XBS5_LPBIG_OFFBIG_LINTFLAGS = 716 // unistd.h:82:1: + X_DMA_USES_PHYSADDR = 0 // isa_defs.h:281:1: + X_DONT_USE_1275_GENERIC_NAMES = 0 // isa_defs.h:287:1: + X_DOUBLE_ALIGNMENT = 8 // isa_defs.h:256:1: + X_DOUBLE_COMPLEX_ALIGNMENT = 8 // isa_defs.h:257:1: + X_DTRACE_VERSION = 1 // feature_tests.h:490:1: + X_FILE_OFFSET_BITS = 64 // :25:1: + X_FIRMWARE_NEEDS_FDISK = 0 // isa_defs.h:282:1: + X_FLOAT_ALIGNMENT = 4 // isa_defs.h:252:1: + X_FLOAT_COMPLEX_ALIGNMENT = 4 // isa_defs.h:253:1: + X_HAVE_CPUID_INSN = 0 // isa_defs.h:288:1: + X_IEEE_754 = 0 // isa_defs.h:246:1: + X_INT64_TYPE = 0 // int_types.h:82:1: + X_INT_ALIGNMENT = 4 // isa_defs.h:251:1: + X_ISO_CPP_14882_1998 = 0 // feature_tests.h:466:1: + X_ISO_C_9899_1999 = 0 // feature_tests.h:472:1: + X_ISO_C_9899_2011 = 0 // feature_tests.h:478:1: + X_ISO_TIME_ISO_H = 0 // time_iso.h:46:1: + X_LARGEFILE64_SOURCE = 1 // feature_tests.h:231:1: + X_LARGEFILE_SOURCE = 1 // feature_tests.h:235:1: + X_LFS64_ASYNCHRONOUS_IO = 1 // unistd.h:195:1: + X_LFS64_LARGEFILE = 1 // unistd.h:193:1: + X_LFS64_STDIO = 1 // unistd.h:194:1: + X_LFS_LARGEFILE = 1 // unistd.h:192:1: + X_LITTLE_ENDIAN = 0 // isa_defs.h:242:1: + X_LOCALE_T = 0 // time.h:291:1: + X_LONGLONG_TYPE = 0 // feature_tests.h:412:1: + X_LONG_ALIGNMENT = 8 // isa_defs.h:254:1: + X_LONG_DOUBLE_ALIGNMENT = 16 // isa_defs.h:258:1: + X_LONG_DOUBLE_COMPLEX_ALIGNMENT = 16 // isa_defs.h:259:1: + X_LONG_LONG_ALIGNMENT = 8 // isa_defs.h:255:1: + X_LONG_LONG_ALIGNMENT_32 = 4 // isa_defs.h:268:1: + X_LONG_LONG_LTOH = 0 // isa_defs.h:244:1: + X_LP64 = 1 // :286:1: + X_MAX_ALIGNMENT = 16 // isa_defs.h:261:1: + X_MULTI_DATAMODEL = 0 // isa_defs.h:279:1: + X_MUTEX_MAGIC = 0x4d58 // types.h:424:1: + X_NBBY = 8 // select.h:100:1: + X_NORETURN_KYWD = 0 // feature_tests.h:448:1: + X_OFF_T = 0 // types.h:142:1: + X_PC_2_SYMLINKS = 19 // unistd.h:309:1: + X_PC_ACCESS_FILTERING = 25 // unistd.h:315:1: + X_PC_ACL_ENABLED = 20 // unistd.h:310:1: + X_PC_ALLOC_SIZE_MIN = 13 // unistd.h:303:1: + X_PC_ASYNC_IO = 10 // unistd.h:299:1: + X_PC_CASE_BEHAVIOR = 22 // unistd.h:312:1: + X_PC_CHOWN_RESTRICTED = 9 // unistd.h:297:1: + X_PC_FILESIZEBITS = 67 // unistd.h:325:1: + X_PC_LAST = 101 // unistd.h:336:1: + X_PC_LINK_MAX = 1 // unistd.h:289:1: + X_PC_MAX_CANON = 2 // unistd.h:290:1: + X_PC_MAX_INPUT = 3 // unistd.h:291:1: + X_PC_MIN_HOLE_SIZE = 21 // unistd.h:311:1: + X_PC_NAME_MAX = 4 // unistd.h:292:1: + X_PC_NO_TRUNC = 7 // unistd.h:295:1: + X_PC_PATH_MAX = 5 // unistd.h:293:1: + X_PC_PIPE_BUF = 6 // unistd.h:294:1: + X_PC_PRIO_IO = 11 // unistd.h:300:1: + X_PC_REC_INCR_XFER_SIZE = 14 // unistd.h:304:1: + X_PC_REC_MAX_XFER_SIZE = 15 // unistd.h:305:1: + X_PC_REC_MIN_XFER_SIZE = 16 // unistd.h:306:1: + X_PC_REC_XFER_ALIGN = 17 // unistd.h:307:1: + X_PC_SATTR_ENABLED = 23 // unistd.h:313:1: + X_PC_SATTR_EXISTS = 24 // unistd.h:314:1: + X_PC_SYMLINK_MAX = 18 // unistd.h:308:1: + X_PC_SYNC_IO = 12 // unistd.h:301:1: + X_PC_TIMESTAMP_RESOLUTION = 26 // unistd.h:317:1: + X_PC_VDISABLE = 8 // unistd.h:296:1: + X_PC_XATTR_ENABLED = 100 // unistd.h:330:1: + X_PC_XATTR_EXISTS = 101 // unistd.h:331:1: + X_POINTER_ALIGNMENT = 8 // isa_defs.h:260:1: + X_POSIX2_CHAR_TERM = 1 // unistd.h:391:1: + X_POSIX2_C_BIND = 1 // unistd.h:401:1: + X_POSIX2_C_DEV = 1 // unistd.h:402:1: + X_POSIX2_C_VERSION = 199209 // unistd.h:376:1: + X_POSIX2_FORT_RUN = 1 // unistd.h:403:1: + X_POSIX2_LOCALEDEF = 1 // unistd.h:404:1: + X_POSIX2_SW_DEV = 1 // unistd.h:405:1: + X_POSIX2_UPE = 1 // unistd.h:406:1: + X_POSIX2_VERSION = 199209 // unistd.h:363:1: + X_POSIX_ADVISORY_INFO = 200112 // unistd.h:156:1: + X_POSIX_ASYNCHRONOUS_IO = 1 // unistd.h:120:1: + X_POSIX_ASYNC_IO = 1 // unistd.h:98:1: + X_POSIX_BARRIERS = 200112 // unistd.h:157:1: + X_POSIX_CLOCK_SELECTION = 200112 // unistd.h:158:1: + X_POSIX_FSYNC = 1 // unistd.h:121:1: + X_POSIX_IPV6 = 200112 // unistd.h:159:1: + X_POSIX_JOB_CONTROL = 1 // unistd.h:99:1: + X_POSIX_MAPPED_FILES = 1 // unistd.h:122:1: + X_POSIX_MEMLOCK = 1 // unistd.h:123:1: + X_POSIX_MEMLOCK_RANGE = 1 // unistd.h:124:1: + X_POSIX_MEMORY_PROTECTION = 1 // unistd.h:125:1: + X_POSIX_MESSAGE_PASSING = 1 // unistd.h:126:1: + X_POSIX_MONOTONIC_CLOCK = 200112 // unistd.h:160:1: + X_POSIX_PRIORITY_SCHEDULING = 1 // unistd.h:127:1: + X_POSIX_RAW_SOCKETS = 200112 // unistd.h:161:1: + X_POSIX_READER_WRITER_LOCKS = 200112 // unistd.h:162:1: + X_POSIX_REALTIME_SIGNALS = 1 // unistd.h:128:1: + X_POSIX_REGEXP = 1 // unistd.h:410:1: + X_POSIX_SAVED_IDS = 1 // unistd.h:100:1: + X_POSIX_SEMAPHORES = 1 // unistd.h:129:1: + X_POSIX_SHARED_MEMORY_OBJECTS = 1 // unistd.h:130:1: + X_POSIX_SHELL = 1 // unistd.h:411:1: + X_POSIX_SPAWN = 200112 // unistd.h:163:1: + X_POSIX_SPIN_LOCKS = 200112 // unistd.h:164:1: + X_POSIX_SYNCHRONIZED_IO = 1 // unistd.h:131:1: + X_POSIX_SYNC_IO = 1 // unistd.h:101:1: + X_POSIX_THREADS = 1 // unistd.h:147:1: + X_POSIX_THREAD_ATTR_STACKADDR = 1 // unistd.h:148:1: + X_POSIX_THREAD_ATTR_STACKSIZE = 1 // unistd.h:149:1: + X_POSIX_THREAD_PRIORITY_SCHEDULING = 1 // unistd.h:151:1: + X_POSIX_THREAD_PRIO_INHERIT = 1 // unistd.h:175:1: + X_POSIX_THREAD_PRIO_PROTECT = 1 // unistd.h:176:1: + X_POSIX_THREAD_PROCESS_SHARED = 1 // unistd.h:150:1: + X_POSIX_THREAD_SAFE_FUNCTIONS = 1 // unistd.h:146:1: + X_POSIX_TIMEOUTS = 200112 // unistd.h:165:1: + X_POSIX_TIMERS = 1 // unistd.h:152:1: + X_POSIX_VDISABLE = 0 // unistd.h:180:1: + X_POSIX_VERSION = 199506 // unistd.h:355:1: + X_PSM_MODULES = 0 // isa_defs.h:284:1: + X_PTRDIFF_T = 0 // types.h:112:1: + X_RESTRICT_KYWD = 0 // feature_tests.h:435:1: + X_RTC_CONFIG = 0 // isa_defs.h:285:1: + X_RWL_MAGIC = 0x5257 // types.h:427:1: + X_SC_2_CHAR_TERM = 66 // unistd.h:175:1: + X_SC_2_C_BIND = 45 // unistd.h:153:1: + X_SC_2_C_DEV = 46 // unistd.h:154:1: + X_SC_2_C_VERSION = 47 // unistd.h:155:1: + X_SC_2_FORT_DEV = 48 // unistd.h:156:1: + X_SC_2_FORT_RUN = 49 // unistd.h:157:1: + X_SC_2_LOCALEDEF = 50 // unistd.h:158:1: + X_SC_2_PBS = 724 // unistd.h:246:1: + X_SC_2_PBS_ACCOUNTING = 725 // unistd.h:247:1: + X_SC_2_PBS_CHECKPOINT = 726 // unistd.h:248:1: + X_SC_2_PBS_LOCATE = 728 // unistd.h:249:1: + X_SC_2_PBS_MESSAGE = 729 // unistd.h:250:1: + X_SC_2_PBS_TRACK = 730 // unistd.h:251:1: + X_SC_2_SW_DEV = 51 // unistd.h:159:1: + X_SC_2_UPE = 52 // unistd.h:160:1: + X_SC_2_VERSION = 53 // unistd.h:161:1: + X_SC_ADVISORY_INFO = 731 // unistd.h:252:1: + X_SC_AIO_LISTIO_MAX = 18 // unistd.h:125:1: + X_SC_AIO_MAX = 19 // unistd.h:126:1: + X_SC_AIO_PRIO_DELTA_MAX = 20 // unistd.h:127:1: + X_SC_ARG_MAX = 1 // unistd.h:106:1: + X_SC_ASYNCHRONOUS_IO = 21 // unistd.h:128:1: + X_SC_ATEXIT_MAX = 76 // unistd.h:179:1: + X_SC_AVPHYS_PAGES = 501 // unistd.h:190:1: + X_SC_BARRIERS = 732 // unistd.h:253:1: + X_SC_BC_BASE_MAX = 54 // unistd.h:162:1: + X_SC_BC_DIM_MAX = 55 // unistd.h:163:1: + X_SC_BC_SCALE_MAX = 56 // unistd.h:164:1: + X_SC_BC_STRING_MAX = 57 // unistd.h:165:1: + X_SC_CHILD_MAX = 2 // unistd.h:107:1: + X_SC_CLK_TCK = 3 // unistd.h:108:1: + X_SC_CLOCK_SELECTION = 733 // unistd.h:254:1: + X_SC_COHER_BLKSZ = 503 // unistd.h:196:1: + X_SC_COLL_WEIGHTS_MAX = 58 // unistd.h:166:1: + X_SC_CPUID_MAX = 517 // unistd.h:211:1: + X_SC_CPUTIME = 734 // unistd.h:255:1: + X_SC_DCACHE_ASSOC = 513 // unistd.h:206:1: + X_SC_DCACHE_BLKSZ = 510 // unistd.h:203:1: + X_SC_DCACHE_LINESZ = 508 // unistd.h:201:1: + X_SC_DCACHE_SZ = 506 // unistd.h:199:1: + X_SC_DCACHE_TBLKSZ = 511 // unistd.h:204:1: + X_SC_DELAYTIMER_MAX = 22 // unistd.h:129:1: + X_SC_EPHID_MAX = 518 // unistd.h:212:1: + X_SC_EXPR_NEST_MAX = 59 // unistd.h:167:1: + X_SC_FSYNC = 23 // unistd.h:130:1: + X_SC_GETGR_R_SIZE_MAX = 569 // unistd.h:220:1: + X_SC_GETPW_R_SIZE_MAX = 570 // unistd.h:221:1: + X_SC_HOST_NAME_MAX = 735 // unistd.h:256:1: + X_SC_ICACHE_ASSOC = 512 // unistd.h:205:1: + X_SC_ICACHE_BLKSZ = 509 // unistd.h:202:1: + X_SC_ICACHE_LINESZ = 507 // unistd.h:200:1: + X_SC_ICACHE_SZ = 505 // unistd.h:198:1: + X_SC_IOV_MAX = 77 // unistd.h:180:1: + X_SC_IPV6 = 762 // unistd.h:283:1: + X_SC_JOB_CONTROL = 6 // unistd.h:111:1: + X_SC_LINE_MAX = 60 // unistd.h:168:1: + X_SC_LOGIN_NAME_MAX = 571 // unistd.h:222:1: + X_SC_LOGNAME_MAX = 10 // unistd.h:116:1: + X_SC_MAPPED_FILES = 24 // unistd.h:131:1: + X_SC_MAXPID = 514 // unistd.h:208:1: + X_SC_MEMLOCK = 25 // unistd.h:132:1: + X_SC_MEMLOCK_RANGE = 26 // unistd.h:133:1: + X_SC_MEMORY_PROTECTION = 27 // unistd.h:134:1: + X_SC_MESSAGE_PASSING = 28 // unistd.h:135:1: + X_SC_MONOTONIC_CLOCK = 736 // unistd.h:257:1: + X_SC_MQ_OPEN_MAX = 29 // unistd.h:136:1: + X_SC_MQ_PRIO_MAX = 30 // unistd.h:137:1: + X_SC_NGROUPS_MAX = 4 // unistd.h:109:1: + X_SC_NPROCESSORS_CONF = 14 // unistd.h:120:1: + X_SC_NPROCESSORS_MAX = 516 // unistd.h:210:1: + X_SC_NPROCESSORS_ONLN = 15 // unistd.h:121:1: + X_SC_OPEN_MAX = 5 // unistd.h:110:1: + X_SC_PAGESIZE = 11 // unistd.h:117:1: + X_SC_PAGE_SIZE = 11 // unistd.h:182:1: + X_SC_PASS_MAX = 9 // unistd.h:115:1: + X_SC_PHYS_PAGES = 500 // unistd.h:189:1: + X_SC_PRIORITIZED_IO = 31 // unistd.h:138:1: + X_SC_PRIORITY_SCHEDULING = 32 // unistd.h:139:1: + X_SC_RAW_SOCKETS = 763 // unistd.h:284:1: + X_SC_READER_WRITER_LOCKS = 737 // unistd.h:258:1: + X_SC_REALTIME_SIGNALS = 33 // unistd.h:140:1: + X_SC_REGEXP = 738 // unistd.h:259:1: + X_SC_RE_DUP_MAX = 61 // unistd.h:169:1: + X_SC_RTSIG_MAX = 34 // unistd.h:141:1: + X_SC_SAVED_IDS = 7 // unistd.h:112:1: + X_SC_SEMAPHORES = 35 // unistd.h:142:1: + X_SC_SEM_NSEMS_MAX = 36 // unistd.h:143:1: + X_SC_SEM_VALUE_MAX = 37 // unistd.h:144:1: + X_SC_SHARED_MEMORY_OBJECTS = 38 // unistd.h:145:1: + X_SC_SHELL = 739 // unistd.h:260:1: + X_SC_SIGQUEUE_MAX = 39 // unistd.h:146:1: + X_SC_SIGRT_MAX = 41 // unistd.h:148:1: + X_SC_SIGRT_MIN = 40 // unistd.h:147:1: + X_SC_SPAWN = 740 // unistd.h:261:1: + X_SC_SPIN_LOCKS = 741 // unistd.h:262:1: + X_SC_SPLIT_CACHE = 504 // unistd.h:197:1: + X_SC_SPORADIC_SERVER = 742 // unistd.h:263:1: + X_SC_SS_REPL_MAX = 743 // unistd.h:264:1: + X_SC_STACK_PROT = 515 // unistd.h:209:1: + X_SC_STREAM_MAX = 16 // unistd.h:122:1: + X_SC_SYMLOOP_MAX = 744 // unistd.h:265:1: + X_SC_SYNCHRONIZED_IO = 42 // unistd.h:149:1: + X_SC_THREADS = 576 // unistd.h:227:1: + X_SC_THREAD_ATTR_STACKADDR = 577 // unistd.h:228:1: + X_SC_THREAD_ATTR_STACKSIZE = 578 // unistd.h:229:1: + X_SC_THREAD_CPUTIME = 745 // unistd.h:266:1: + X_SC_THREAD_DESTRUCTOR_ITERATIONS = 568 // unistd.h:219:1: + X_SC_THREAD_KEYS_MAX = 572 // unistd.h:223:1: + X_SC_THREAD_PRIORITY_SCHEDULING = 579 // unistd.h:230:1: + X_SC_THREAD_PRIO_INHERIT = 580 // unistd.h:231:1: + X_SC_THREAD_PRIO_PROTECT = 581 // unistd.h:232:1: + X_SC_THREAD_PROCESS_SHARED = 582 // unistd.h:233:1: + X_SC_THREAD_SAFE_FUNCTIONS = 583 // unistd.h:234:1: + X_SC_THREAD_SPORADIC_SERVER = 746 // unistd.h:267:1: + X_SC_THREAD_STACK_MIN = 573 // unistd.h:224:1: + X_SC_THREAD_THREADS_MAX = 574 // unistd.h:225:1: + X_SC_TIMEOUTS = 747 // unistd.h:268:1: + X_SC_TIMERS = 43 // unistd.h:150:1: + X_SC_TIMER_MAX = 44 // unistd.h:151:1: + X_SC_TRACE = 748 // unistd.h:269:1: + X_SC_TRACE_EVENT_FILTER = 749 // unistd.h:270:1: + X_SC_TRACE_EVENT_NAME_MAX = 750 // unistd.h:271:1: + X_SC_TRACE_INHERIT = 751 // unistd.h:272:1: + X_SC_TRACE_LOG = 752 // unistd.h:273:1: + X_SC_TRACE_NAME_MAX = 753 // unistd.h:274:1: + X_SC_TRACE_SYS_MAX = 754 // unistd.h:275:1: + X_SC_TRACE_USER_EVENT_MAX = 755 // unistd.h:276:1: + X_SC_TTY_NAME_MAX = 575 // unistd.h:226:1: + X_SC_TYPED_MEMORY_OBJECTS = 756 // unistd.h:277:1: + X_SC_TZNAME_MAX = 17 // unistd.h:123:1: + X_SC_T_IOV_MAX = 79 // unistd.h:186:1: + X_SC_UADDR_MAX = 519 // unistd.h:213:1: + X_SC_V6_ILP32_OFF32 = 757 // unistd.h:278:1: + X_SC_V6_ILP32_OFFBIG = 758 // unistd.h:279:1: + X_SC_V6_LP64_OFF64 = 759 // unistd.h:280:1: + X_SC_V6_LPBIG_OFFBIG = 760 // unistd.h:281:1: + X_SC_VERSION = 8 // unistd.h:113:1: + X_SC_XBS5_ILP32_OFF32 = 720 // unistd.h:240:1: + X_SC_XBS5_ILP32_OFFBIG = 721 // unistd.h:241:1: + X_SC_XBS5_LP64_OFF64 = 722 // unistd.h:242:1: + X_SC_XBS5_LPBIG_OFFBIG = 723 // unistd.h:243:1: + X_SC_XOPEN_CRYPT = 62 // unistd.h:170:1: + X_SC_XOPEN_ENH_I18N = 63 // unistd.h:171:1: + X_SC_XOPEN_LEGACY = 717 // unistd.h:237:1: + X_SC_XOPEN_REALTIME = 718 // unistd.h:238:1: + X_SC_XOPEN_REALTIME_THREADS = 719 // unistd.h:239:1: + X_SC_XOPEN_SHM = 64 // unistd.h:172:1: + X_SC_XOPEN_STREAMS = 761 // unistd.h:282:1: + X_SC_XOPEN_UNIX = 78 // unistd.h:181:1: + X_SC_XOPEN_VERSION = 12 // unistd.h:118:1: + X_SC_XOPEN_XCU_VERSION = 67 // unistd.h:176:1: + X_SEMA_MAGIC = 0x534d // types.h:425:1: + X_SHORT_ALIGNMENT = 2 // isa_defs.h:250:1: + X_SIGEVENT = 0 // time.h:132:1: + X_SIGSET_T = 0 // select.h:73:1: + X_SIGVAL = 0 // time.h:124:1: + X_SIZE_T = 0 // types.h:540:1: + X_SOFT_HOSTID = 0 // isa_defs.h:286:1: + X_SSIZE_T = 0 // types.h:549:1: + X_STACK_GROWS_DOWNWARD = 0 // isa_defs.h:243:1: + X_STDC_C11 = 0 // feature_tests.h:165:1: + X_STDC_C99 = 0 // feature_tests.h:169:1: + X_SUNOS_VTOC_16 = 0 // isa_defs.h:280:1: + X_SUSECONDS_T = 0 // types.h:343:1: + X_SYS_CCOMPILE_H = 0 // ccompile.h:32:1: + X_SYS_FEATURE_TESTS_H = 0 // feature_tests.h:41:1: + X_SYS_INT_TYPES_H = 0 // int_types.h:30:1: + X_SYS_ISA_DEFS_H = 0 // isa_defs.h:30:1: + X_SYS_MACHTYPES_H = 0 // machtypes.h:27:1: + X_SYS_NULL_H = 0 // null.h:17:1: + X_SYS_SELECT_H = 0 // select.h:45:1: + X_SYS_TIME_H = 0 // time.h:27:1: + X_SYS_TIME_IMPL_H = 0 // time_impl.h:38:1: + X_SYS_TYPES_H = 0 // types.h:35:1: + X_SYS_UNISTD_H = 0 // unistd.h:40:1: + X_TIMER_T = 0 // types.h:573:1: + X_TIME_H = 0 // time.h:37:1: + X_TIME_T = 0 // types.h:558:1: + X_UID_T = 0 // types.h:400:1: + X_UNISTD_H = 0 // unistd.h:36:1: + X_XOPEN_ENH_I18N = 1 // unistd.h:389:1: + X_XOPEN_REALTIME = 1 // unistd.h:388:1: + X_XOPEN_SHM = 1 // unistd.h:390:1: + X_XOPEN_STREAMS = 1 // unistd.h:412:1: + X_XOPEN_UNIX = 0 // unistd.h:382:1: + X_XOPEN_VERSION = 3 // feature_tests.h:392:1: + X_XOPEN_XCU_VERSION = 4 // unistd.h:385:1: + X_XOPEN_XPG3 = 0 // unistd.h:380:1: + X_XOPEN_XPG4 = 0 // unistd.h:381:1: + Sun = 1 // :172:1: + Unix = 1 // :175:1: +) + +// used for block sizes + +// The boolean_t type has had a varied amount of exposure over the years in +// terms of how its enumeration constants have been exposed. In particular, it +// originally used the __XOPEN_OR_POSIX macro to determine whether to prefix the +// B_TRUE and B_FALSE with an underscore. This check never included the +// question of if we were in a strict ANSI C environment or whether extensions +// were defined. +// +// Compilers such as clang started defaulting to always including an +// XOPEN_SOURCE declaration on behalf of users, but also noted __EXTENSIONS__. +// This would lead most software that had used the non-underscore versions to +// need it. As such, we have adjusted the non-strict XOPEN environment to retain +// its old behavior so as to minimize namespace pollution; however, we instead +// include both variants of the definitions in the generally visible version +// allowing software written in either world to hopefully end up in a good +// place. +// +// This isn't perfect, but should hopefully minimize the pain for folks actually +// trying to build software. +const ( /* types.h:215:1: */ + B_FALSE = 0 + B_TRUE = 1 + X_B_FALSE = 0 + X_B_TRUE = 1 +) + +type Ptrdiff_t = int64 /* :3:26 */ + +type Size_t = uint64 /* :9:23 */ + +type Wchar_t = int32 /* :15:24 */ + +type X__int128_t = struct { + Flo int64 + Fhi int64 +} /* :21:43 */ // must match modernc.org/mathutil.Int128 +type X__uint128_t = struct { + Flo uint64 + Fhi uint64 +} /* :22:44 */ // must match modernc.org/mathutil.Int128 + +type X__builtin_va_list = uintptr /* :46:14 */ +type X__float128 = float64 /* :47:21 */ + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2014 PALO, Richard. +// Copyright 2014 Garrett D'Amore +// Copyright (c) 2013 Gary Mills +// +// Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved. + +// Copyright (c) 1988 AT&T +// All Rights Reserved + +// Copyright (c) 2013, OmniTI Computer Consulting, Inc. All rights reserved. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2015 EveryCity Ltd. All rights reserved. +// Copyright 2019 Joyent, Inc. + +// This file contains definitions designed to enable different compilers +// to be used harmoniously on Solaris systems. + +// Allow for version tests for compiler bugs and features. + +// analogous to lint's PRINTFLIKEn + +// Handle the kernel printf routines that can take '%b' too + +// This one's pretty obvious -- the function never returns + +// The function is 'extern inline' and expects GNU C89 behaviour, not C99 +// behaviour. +// +// Should only be used on 'extern inline' definitions for GCC. + +// The function has control flow such that it may return multiple times (in +// the manner of setjmp or vfork) + +// This is an appropriate label for functions that do not +// modify their arguments, e.g. strlen() + +// This is a stronger form of __pure__. Can be used for functions +// that do not modify their arguments and don't depend on global +// memory. + +// This attribute, attached to a variable, means that the variable is meant to +// be possibly unused. GCC will not produce a warning for this variable. + +// Shorthand versions for readability + +// In release build, disable warnings about variables +// which are used only for debugging. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2016 Joyent, Inc. + +// This header file serves to group a set of well known defines and to +// set these for each instruction set architecture. These defines may +// be divided into two groups; characteristics of the processor and +// implementation choices for Solaris on a processor. +// +// Processor Characteristics: +// +// _LITTLE_ENDIAN / _BIG_ENDIAN: +// The natural byte order of the processor. A pointer to an int points +// to the least/most significant byte of that int. +// +// _STACK_GROWS_UPWARD / _STACK_GROWS_DOWNWARD: +// The processor specific direction of stack growth. A push onto the +// stack increases/decreases the stack pointer, so it stores data at +// successively higher/lower addresses. (Stackless machines ignored +// without regrets). +// +// _LONG_LONG_HTOL / _LONG_LONG_LTOH: +// A pointer to a long long points to the most/least significant long +// within that long long. +// +// _BIT_FIELDS_HTOL / _BIT_FIELDS_LTOH: +// The C compiler assigns bit fields from the high/low to the low/high end +// of an int (most to least significant vs. least to most significant). +// +// _IEEE_754: +// The processor (or supported implementations of the processor) +// supports the ieee-754 floating point standard. No other floating +// point standards are supported (or significant). Any other supported +// floating point formats are expected to be cased on the ISA processor +// symbol. +// +// _CHAR_IS_UNSIGNED / _CHAR_IS_SIGNED: +// The C Compiler implements objects of type `char' as `unsigned' or +// `signed' respectively. This is really an implementation choice of +// the compiler writer, but it is specified in the ABI and tends to +// be uniform across compilers for an instruction set architecture. +// Hence, it has the properties of a processor characteristic. +// +// _CHAR_ALIGNMENT / _SHORT_ALIGNMENT / _INT_ALIGNMENT / _LONG_ALIGNMENT / +// _LONG_LONG_ALIGNMENT / _DOUBLE_ALIGNMENT / _LONG_DOUBLE_ALIGNMENT / +// _POINTER_ALIGNMENT / _FLOAT_ALIGNMENT: +// The ABI defines alignment requirements of each of the primitive +// object types. Some, if not all, may be hardware requirements as +// well. The values are expressed in "byte-alignment" units. +// +// _MAX_ALIGNMENT: +// The most stringent alignment requirement as specified by the ABI. +// Equal to the maximum of all the above _XXX_ALIGNMENT values. +// +// _MAX_ALIGNMENT_TYPE: +// The name of the C type that has the value descried in _MAX_ALIGNMENT. +// +// _ALIGNMENT_REQUIRED: +// True or false (1 or 0) whether or not the hardware requires the ABI +// alignment. +// +// _LONG_LONG_ALIGNMENT_32 +// The 32-bit ABI supported by a 64-bit kernel may have different +// alignment requirements for primitive object types. The value of this +// identifier is expressed in "byte-alignment" units. +// +// _HAVE_CPUID_INSN +// This indicates that the architecture supports the 'cpuid' +// instruction as defined by Intel. (Intel allows other vendors +// to extend the instruction for their own purposes.) +// +// +// Implementation Choices: +// +// _ILP32 / _LP64: +// This specifies the compiler data type implementation as specified in +// the relevant ABI. The choice between these is strongly influenced +// by the underlying hardware, but is not absolutely tied to it. +// Currently only two data type models are supported: +// +// _ILP32: +// Int/Long/Pointer are 32 bits. This is the historical UNIX +// and Solaris implementation. Due to its historical standing, +// this is the default case. +// +// _LP64: +// Long/Pointer are 64 bits, Int is 32 bits. This is the chosen +// implementation for 64-bit ABIs such as SPARC V9. +// +// _I32LPx: +// A compilation environment where 'int' is 32-bit, and +// longs and pointers are simply the same size. +// +// In all cases, Char is 8 bits and Short is 16 bits. +// +// _SUNOS_VTOC_8 / _SUNOS_VTOC_16 / _SVR4_VTOC_16: +// This specifies the form of the disk VTOC (or label): +// +// _SUNOS_VTOC_8: +// This is a VTOC form which is upwardly compatible with the +// SunOS 4.x disk label and allows 8 partitions per disk. +// +// _SUNOS_VTOC_16: +// In this format the incore vtoc image matches the ondisk +// version. It allows 16 slices per disk, and is not +// compatible with the SunOS 4.x disk label. +// +// Note that these are not the only two VTOC forms possible and +// additional forms may be added. One possible form would be the +// SVr4 VTOC form. The symbol for that is reserved now, although +// it is not implemented. +// +// _SVR4_VTOC_16: +// This VTOC form is compatible with the System V Release 4 +// VTOC (as implemented on the SVr4 Intel and 3b ports) with +// 16 partitions per disk. +// +// +// _DMA_USES_PHYSADDR / _DMA_USES_VIRTADDR +// This describes the type of addresses used by system DMA: +// +// _DMA_USES_PHYSADDR: +// This type of DMA, used in the x86 implementation, +// requires physical addresses for DMA buffers. The 24-bit +// addresses used by some legacy boards is the source of the +// "low-memory" (<16MB) requirement for some devices using DMA. +// +// _DMA_USES_VIRTADDR: +// This method of DMA allows the use of virtual addresses for +// DMA transfers. +// +// _FIRMWARE_NEEDS_FDISK / _NO_FDISK_PRESENT +// This indicates the presence/absence of an fdisk table. +// +// _FIRMWARE_NEEDS_FDISK +// The fdisk table is required by system firmware. If present, +// it allows a disk to be subdivided into multiple fdisk +// partitions, each of which is equivalent to a separate, +// virtual disk. This enables the co-existence of multiple +// operating systems on a shared hard disk. +// +// _NO_FDISK_PRESENT +// If the fdisk table is absent, it is assumed that the entire +// media is allocated for a single operating system. +// +// _HAVE_TEM_FIRMWARE +// Defined if this architecture has the (fallback) option of +// using prom_* calls for doing I/O if a suitable kernel driver +// is not available to do it. +// +// _DONT_USE_1275_GENERIC_NAMES +// Controls whether or not device tree node names should +// comply with the IEEE 1275 "Generic Names" Recommended +// Practice. With _DONT_USE_GENERIC_NAMES, device-specific +// names identifying the particular device will be used. +// +// __i386_COMPAT +// This indicates whether the i386 ABI is supported as a *non-native* +// mode for the platform. When this symbol is defined: +// - 32-bit xstat-style system calls are enabled +// - 32-bit xmknod-style system calls are enabled +// - 32-bit system calls use i386 sizes -and- alignments +// +// Note that this is NOT defined for the i386 native environment! +// +// __x86 +// This is ONLY a synonym for defined(__i386) || defined(__amd64) +// which is useful only insofar as these two architectures share +// common attributes. Analogous to __sparc. +// +// _PSM_MODULES +// This indicates whether or not the implementation uses PSM +// modules for processor support, reading /etc/mach from inside +// the kernel to extract a list. +// +// _RTC_CONFIG +// This indicates whether or not the implementation uses /etc/rtc_config +// to configure the real-time clock in the kernel. +// +// _UNIX_KRTLD +// This indicates that the implementation uses a dynamically +// linked unix + krtld to form the core kernel image at boot +// time, or (in the absence of this symbol) a prelinked kernel image. +// +// _OBP +// This indicates the firmware interface is OBP. +// +// _SOFT_HOSTID +// This indicates that the implementation obtains the hostid +// from the file /etc/hostid, rather than from hardware. + +// The following set of definitions characterize Solaris on AMD's +// 64-bit systems. + +// Define the appropriate "processor characteristics" + +// Different alignment constraints for the i386 ABI in compatibility mode + +// Define the appropriate "implementation choices". + +// The feature test macro __i386 is generic for all processors implementing +// the Intel 386 instruction set or a superset of it. Specifically, this +// includes all members of the 386, 486, and Pentium family of processors. + +// Values of _POSIX_C_SOURCE +// +// undefined not a POSIX compilation +// 1 POSIX.1-1990 compilation +// 2 POSIX.2-1992 compilation +// 199309L POSIX.1b-1993 compilation (Real Time) +// 199506L POSIX.1c-1995 compilation (POSIX Threads) +// 200112L POSIX.1-2001 compilation (Austin Group Revision) +// 200809L POSIX.1-2008 compilation + +// The feature test macros __XOPEN_OR_POSIX, _STRICT_STDC, _STRICT_SYMBOLS, +// and _STDC_C99 are Sun implementation specific macros created in order to +// compress common standards specified feature test macros for easier reading. +// These macros should not be used by the application developer as +// unexpected results may occur. Instead, the user should reference +// standards(7) for correct usage of the standards feature test macros. +// +// __XOPEN_OR_POSIX Used in cases where a symbol is defined by both +// X/Open or POSIX or in the negative, when neither +// X/Open or POSIX defines a symbol. +// +// _STRICT_STDC __STDC__ is specified by the C Standards and defined +// by the compiler. For Sun compilers the value of +// __STDC__ is either 1, 0, or not defined based on the +// compilation mode (see cc(1)). When the value of +// __STDC__ is 1 and in the absence of any other feature +// test macros, the namespace available to the application +// is limited to only those symbols defined by the C +// Standard. _STRICT_STDC provides a more readable means +// of identifying symbols defined by the standard, or in +// the negative, symbols that are extensions to the C +// Standard. See additional comments for GNU C differences. +// +// _STDC_C99 __STDC_VERSION__ is specified by the C standards and +// defined by the compiler and indicates the version of +// the C standard. A value of 199901L indicates a +// compiler that complies with ISO/IEC 9899:1999, other- +// wise known as the C99 standard. +// +// _STDC_C11 Like _STDC_C99 except that the value of __STDC_VERSION__ +// is 201112L indicating a compiler that compiles with +// ISO/IEC 9899:2011, otherwise known as the C11 standard. +// +// _STRICT_SYMBOLS Used in cases where symbol visibility is restricted +// by the standards, and the user has not explicitly +// relaxed the strictness via __EXTENSIONS__. + +// ISO/IEC 9899:1990 and it's revisions, ISO/IEC 9899:1999 and ISO/IEC +// 99899:2011 specify the following predefined macro name: +// +// __STDC__ The integer constant 1, intended to indicate a conforming +// implementation. +// +// Furthermore, a strictly conforming program shall use only those features +// of the language and library specified in these standards. A conforming +// implementation shall accept any strictly conforming program. +// +// Based on these requirements, Sun's C compiler defines __STDC__ to 1 for +// strictly conforming environments and __STDC__ to 0 for environments that +// use ANSI C semantics but allow extensions to the C standard. For non-ANSI +// C semantics, Sun's C compiler does not define __STDC__. +// +// The GNU C project interpretation is that __STDC__ should always be defined +// to 1 for compilation modes that accept ANSI C syntax regardless of whether +// or not extensions to the C standard are used. Violations of conforming +// behavior are conditionally flagged as warnings via the use of the +// -pedantic option. In addition to defining __STDC__ to 1, the GNU C +// compiler also defines __STRICT_ANSI__ as a means of specifying strictly +// conforming environments using the -ansi or -std= options. +// +// In the absence of any other compiler options, Sun and GNU set the value +// of __STDC__ as follows when using the following options: +// +// Value of __STDC__ __STRICT_ANSI__ +// +// cc -Xa (default) 0 undefined +// cc -Xt (transitional) 0 undefined +// cc -Xc (strictly conforming) 1 undefined +// cc -Xs (K&R C) undefined undefined +// +// gcc (default) 1 undefined +// gcc -ansi, -std={c89, c99,...) 1 defined +// gcc -traditional (K&R) undefined undefined +// +// The default compilation modes for Sun C compilers versus GNU C compilers +// results in a differing value for __STDC__ which results in a more +// restricted namespace when using Sun compilers. To allow both GNU and Sun +// interpretations to peacefully co-exist, we use the following Sun +// implementation _STRICT_STDC_ macro: + +// Compiler complies with ISO/IEC 9899:1999 or ISO/IEC 9989:2011 + +// Use strict symbol visibility. + +// This is a variant of _STRICT_SYMBOLS that is meant to cover headers that are +// governed by POSIX, but have not been governed by ISO C. One can go two ways +// on what should happen if an application actively includes (not transitively) +// a header that isn't part of the ISO C spec, we opt to say that if someone has +// gone out of there way then they're doing it for a reason and that is an act +// of non-compliance and therefore it's not up to us to hide away every symbol. +// +// In general, prefer using _STRICT_SYMBOLS, but this is here in particular for +// cases where in the past we have only used a POSIX related check and we don't +// wish to make something stricter. Often applications are relying on the +// ability to, or more realistically unwittingly, have _STRICT_STDC declared and +// still use these interfaces. + +// Large file interfaces: +// +// _LARGEFILE_SOURCE +// 1 large file-related additions to POSIX +// interfaces requested (fseeko, etc.) +// _LARGEFILE64_SOURCE +// 1 transitional large-file-related interfaces +// requested (seek64, stat64, etc.) +// +// The corresponding announcement macros are respectively: +// _LFS_LARGEFILE +// _LFS64_LARGEFILE +// (These are set in .) +// +// Requesting _LARGEFILE64_SOURCE implies requesting _LARGEFILE_SOURCE as +// well. +// +// The large file interfaces are made visible regardless of the initial values +// of the feature test macros under certain circumstances: +// - If no explicit standards-conforming environment is requested (neither +// of _POSIX_SOURCE nor _XOPEN_SOURCE is defined and the value of +// __STDC__ does not imply standards conformance). +// - Extended system interfaces are explicitly requested (__EXTENSIONS__ +// is defined). +// - Access to in-kernel interfaces is requested (_KERNEL or _KMEMUSER is +// defined). (Note that this dependency is an artifact of the current +// kernel implementation and may change in future releases.) + +// Large file compilation environment control: +// +// The setting of _FILE_OFFSET_BITS controls the size of various file-related +// types and governs the mapping between file-related source function symbol +// names and the corresponding binary entry points. +// +// In the 32-bit environment, the default value is 32; if not set, set it to +// the default here, to simplify tests in other headers. +// +// In the 64-bit compilation environment, the only value allowed is 64. + +// Use of _XOPEN_SOURCE +// +// The following X/Open specifications are supported: +// +// X/Open Portability Guide, Issue 3 (XPG3) +// X/Open CAE Specification, Issue 4 (XPG4) +// X/Open CAE Specification, Issue 4, Version 2 (XPG4v2) +// X/Open CAE Specification, Issue 5 (XPG5) +// Open Group Technical Standard, Issue 6 (XPG6), also referred to as +// IEEE Std. 1003.1-2001 and ISO/IEC 9945:2002. +// Open Group Technical Standard, Issue 7 (XPG7), also referred to as +// IEEE Std. 1003.1-2008 and ISO/IEC 9945:2009. +// +// XPG4v2 is also referred to as UNIX 95 (SUS or SUSv1). +// XPG5 is also referred to as UNIX 98 or the Single Unix Specification, +// Version 2 (SUSv2) +// XPG6 is the result of a merge of the X/Open and POSIX specifications +// and as such is also referred to as IEEE Std. 1003.1-2001 in +// addition to UNIX 03 and SUSv3. +// XPG7 is also referred to as UNIX 08 and SUSv4. +// +// When writing a conforming X/Open application, as per the specification +// requirements, the appropriate feature test macros must be defined at +// compile time. These are as follows. For more info, see standards(7). +// +// Feature Test Macro Specification +// ------------------------------------------------ ------------- +// _XOPEN_SOURCE XPG3 +// _XOPEN_SOURCE && _XOPEN_VERSION = 4 XPG4 +// _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED = 1 XPG4v2 +// _XOPEN_SOURCE = 500 XPG5 +// _XOPEN_SOURCE = 600 (or POSIX_C_SOURCE=200112L) XPG6 +// _XOPEN_SOURCE = 700 (or POSIX_C_SOURCE=200809L) XPG7 +// +// In order to simplify the guards within the headers, the following +// implementation private test macros have been created. Applications +// must NOT use these private test macros as unexpected results will +// occur. +// +// Note that in general, the use of these private macros is cumulative. +// For example, the use of _XPG3 with no other restrictions on the X/Open +// namespace will make the symbols visible for XPG3 through XPG6 +// compilation environments. The use of _XPG4_2 with no other X/Open +// namespace restrictions indicates that the symbols were introduced in +// XPG4v2 and are therefore visible for XPG4v2 through XPG6 compilation +// environments, but not for XPG3 or XPG4 compilation environments. +// +// _XPG3 X/Open Portability Guide, Issue 3 (XPG3) +// _XPG4 X/Open CAE Specification, Issue 4 (XPG4) +// _XPG4_2 X/Open CAE Specification, Issue 4, Version 2 (XPG4v2/UNIX 95/SUS) +// _XPG5 X/Open CAE Specification, Issue 5 (XPG5/UNIX 98/SUSv2) +// _XPG6 Open Group Technical Standard, Issue 6 (XPG6/UNIX 03/SUSv3) +// _XPG7 Open Group Technical Standard, Issue 7 (XPG7/UNIX 08/SUSv4) + +// X/Open Portability Guide, Issue 3 + +// _XOPEN_VERSION is defined by the X/Open specifications and is not +// normally defined by the application, except in the case of an XPG4 +// application. On the implementation side, _XOPEN_VERSION defined with +// the value of 3 indicates an XPG3 application. _XOPEN_VERSION defined +// with the value of 4 indicates an XPG4 or XPG4v2 (UNIX 95) application. +// _XOPEN_VERSION defined with a value of 500 indicates an XPG5 (UNIX 98) +// application and with a value of 600 indicates an XPG6 (UNIX 03) +// application and with a value of 700 indicates an XPG7 (UNIX 08). +// The appropriate version is determined by the use of the +// feature test macros described earlier. The value of _XOPEN_VERSION +// defaults to 3 otherwise indicating support for XPG3 applications. + +// ANSI C and ISO 9899:1990 say the type long long doesn't exist in strictly +// conforming environments. ISO 9899:1999 says it does. +// +// The presence of _LONGLONG_TYPE says "long long exists" which is therefore +// defined in all but strictly conforming environments that disallow it. + +// The following macro defines a value for the ISO C99 restrict +// keyword so that _RESTRICT_KYWD resolves to "restrict" if +// an ISO C99 compiler is used, "__restrict" for c++ and "" (null string) +// if any other compiler is used. This allows for the use of single +// prototype declarations regardless of compiler version. + +// The following macro defines a value for the ISO C11 _Noreturn +// keyword so that _NORETURN_KYWD resolves to "_Noreturn" if +// an ISO C11 compiler is used and "" (null string) if any other +// compiler is used. This allows for the use of single prototype +// declarations regardless of compiler version. + +// ISO/IEC 9899:2011 Annex K + +// The following macro indicates header support for the ANSI C++ +// standard. The ISO/IEC designation for this is ISO/IEC FDIS 14882. + +// The following macro indicates header support for the C99 standard, +// ISO/IEC 9899:1999, Programming Languages - C. + +// The following macro indicates header support for the C11 standard, +// ISO/IEC 9899:2011, Programming Languages - C. + +// The following macro indicates header support for the C11 standard, +// ISO/IEC 9899:2011 Annex K, Programming Languages - C. + +// The following macro indicates header support for DTrace. The value is an +// integer that corresponds to the major version number for DTrace. + +// This file and its contents are supplied under the terms of the +// Common Development and Distribution License ("CDDL"), version 1.0. +// You may only use this file in accordance with the terms of version +// 1.0 of the CDDL. +// +// A full copy of the text of the CDDL should have accompanied this +// source. A copy of the CDDL is also available via the Internet at +// http://www.illumos.org/license/CDDL. + +// Copyright 2014-2016 PALO, Richard. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// POSIX.1-2008 requires that the NULL macro be cast to type void *. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2021 Oxide Computer Company + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2016 Joyent, Inc. + +// Machine dependent definitions moved to . +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2007 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Machine dependent types: +// +// intel ia32 Version + +type X_label_t = struct{ Fval [8]int64 } /* machtypes.h:59:9 */ + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2014 PALO, Richard. +// Copyright 2014 Garrett D'Amore +// Copyright (c) 2013 Gary Mills +// +// Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved. + +// Copyright (c) 1988 AT&T +// All Rights Reserved + +// Copyright (c) 2013, OmniTI Computer Consulting, Inc. All rights reserved. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2015 EveryCity Ltd. All rights reserved. +// Copyright 2019 Joyent, Inc. + +// This file contains definitions designed to enable different compilers +// to be used harmoniously on Solaris systems. + +// Allow for version tests for compiler bugs and features. + +// analogous to lint's PRINTFLIKEn + +// Handle the kernel printf routines that can take '%b' too + +// This one's pretty obvious -- the function never returns + +// The function is 'extern inline' and expects GNU C89 behaviour, not C99 +// behaviour. +// +// Should only be used on 'extern inline' definitions for GCC. + +// The function has control flow such that it may return multiple times (in +// the manner of setjmp or vfork) + +// This is an appropriate label for functions that do not +// modify their arguments, e.g. strlen() + +// This is a stronger form of __pure__. Can be used for functions +// that do not modify their arguments and don't depend on global +// memory. + +// This attribute, attached to a variable, means that the variable is meant to +// be possibly unused. GCC will not produce a warning for this variable. + +// Shorthand versions for readability + +// In release build, disable warnings about variables +// which are used only for debugging. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2016 Joyent, Inc. + +// This header file serves to group a set of well known defines and to +// set these for each instruction set architecture. These defines may +// be divided into two groups; characteristics of the processor and +// implementation choices for Solaris on a processor. +// +// Processor Characteristics: +// +// _LITTLE_ENDIAN / _BIG_ENDIAN: +// The natural byte order of the processor. A pointer to an int points +// to the least/most significant byte of that int. +// +// _STACK_GROWS_UPWARD / _STACK_GROWS_DOWNWARD: +// The processor specific direction of stack growth. A push onto the +// stack increases/decreases the stack pointer, so it stores data at +// successively higher/lower addresses. (Stackless machines ignored +// without regrets). +// +// _LONG_LONG_HTOL / _LONG_LONG_LTOH: +// A pointer to a long long points to the most/least significant long +// within that long long. +// +// _BIT_FIELDS_HTOL / _BIT_FIELDS_LTOH: +// The C compiler assigns bit fields from the high/low to the low/high end +// of an int (most to least significant vs. least to most significant). +// +// _IEEE_754: +// The processor (or supported implementations of the processor) +// supports the ieee-754 floating point standard. No other floating +// point standards are supported (or significant). Any other supported +// floating point formats are expected to be cased on the ISA processor +// symbol. +// +// _CHAR_IS_UNSIGNED / _CHAR_IS_SIGNED: +// The C Compiler implements objects of type `char' as `unsigned' or +// `signed' respectively. This is really an implementation choice of +// the compiler writer, but it is specified in the ABI and tends to +// be uniform across compilers for an instruction set architecture. +// Hence, it has the properties of a processor characteristic. +// +// _CHAR_ALIGNMENT / _SHORT_ALIGNMENT / _INT_ALIGNMENT / _LONG_ALIGNMENT / +// _LONG_LONG_ALIGNMENT / _DOUBLE_ALIGNMENT / _LONG_DOUBLE_ALIGNMENT / +// _POINTER_ALIGNMENT / _FLOAT_ALIGNMENT: +// The ABI defines alignment requirements of each of the primitive +// object types. Some, if not all, may be hardware requirements as +// well. The values are expressed in "byte-alignment" units. +// +// _MAX_ALIGNMENT: +// The most stringent alignment requirement as specified by the ABI. +// Equal to the maximum of all the above _XXX_ALIGNMENT values. +// +// _MAX_ALIGNMENT_TYPE: +// The name of the C type that has the value descried in _MAX_ALIGNMENT. +// +// _ALIGNMENT_REQUIRED: +// True or false (1 or 0) whether or not the hardware requires the ABI +// alignment. +// +// _LONG_LONG_ALIGNMENT_32 +// The 32-bit ABI supported by a 64-bit kernel may have different +// alignment requirements for primitive object types. The value of this +// identifier is expressed in "byte-alignment" units. +// +// _HAVE_CPUID_INSN +// This indicates that the architecture supports the 'cpuid' +// instruction as defined by Intel. (Intel allows other vendors +// to extend the instruction for their own purposes.) +// +// +// Implementation Choices: +// +// _ILP32 / _LP64: +// This specifies the compiler data type implementation as specified in +// the relevant ABI. The choice between these is strongly influenced +// by the underlying hardware, but is not absolutely tied to it. +// Currently only two data type models are supported: +// +// _ILP32: +// Int/Long/Pointer are 32 bits. This is the historical UNIX +// and Solaris implementation. Due to its historical standing, +// this is the default case. +// +// _LP64: +// Long/Pointer are 64 bits, Int is 32 bits. This is the chosen +// implementation for 64-bit ABIs such as SPARC V9. +// +// _I32LPx: +// A compilation environment where 'int' is 32-bit, and +// longs and pointers are simply the same size. +// +// In all cases, Char is 8 bits and Short is 16 bits. +// +// _SUNOS_VTOC_8 / _SUNOS_VTOC_16 / _SVR4_VTOC_16: +// This specifies the form of the disk VTOC (or label): +// +// _SUNOS_VTOC_8: +// This is a VTOC form which is upwardly compatible with the +// SunOS 4.x disk label and allows 8 partitions per disk. +// +// _SUNOS_VTOC_16: +// In this format the incore vtoc image matches the ondisk +// version. It allows 16 slices per disk, and is not +// compatible with the SunOS 4.x disk label. +// +// Note that these are not the only two VTOC forms possible and +// additional forms may be added. One possible form would be the +// SVr4 VTOC form. The symbol for that is reserved now, although +// it is not implemented. +// +// _SVR4_VTOC_16: +// This VTOC form is compatible with the System V Release 4 +// VTOC (as implemented on the SVr4 Intel and 3b ports) with +// 16 partitions per disk. +// +// +// _DMA_USES_PHYSADDR / _DMA_USES_VIRTADDR +// This describes the type of addresses used by system DMA: +// +// _DMA_USES_PHYSADDR: +// This type of DMA, used in the x86 implementation, +// requires physical addresses for DMA buffers. The 24-bit +// addresses used by some legacy boards is the source of the +// "low-memory" (<16MB) requirement for some devices using DMA. +// +// _DMA_USES_VIRTADDR: +// This method of DMA allows the use of virtual addresses for +// DMA transfers. +// +// _FIRMWARE_NEEDS_FDISK / _NO_FDISK_PRESENT +// This indicates the presence/absence of an fdisk table. +// +// _FIRMWARE_NEEDS_FDISK +// The fdisk table is required by system firmware. If present, +// it allows a disk to be subdivided into multiple fdisk +// partitions, each of which is equivalent to a separate, +// virtual disk. This enables the co-existence of multiple +// operating systems on a shared hard disk. +// +// _NO_FDISK_PRESENT +// If the fdisk table is absent, it is assumed that the entire +// media is allocated for a single operating system. +// +// _HAVE_TEM_FIRMWARE +// Defined if this architecture has the (fallback) option of +// using prom_* calls for doing I/O if a suitable kernel driver +// is not available to do it. +// +// _DONT_USE_1275_GENERIC_NAMES +// Controls whether or not device tree node names should +// comply with the IEEE 1275 "Generic Names" Recommended +// Practice. With _DONT_USE_GENERIC_NAMES, device-specific +// names identifying the particular device will be used. +// +// __i386_COMPAT +// This indicates whether the i386 ABI is supported as a *non-native* +// mode for the platform. When this symbol is defined: +// - 32-bit xstat-style system calls are enabled +// - 32-bit xmknod-style system calls are enabled +// - 32-bit system calls use i386 sizes -and- alignments +// +// Note that this is NOT defined for the i386 native environment! +// +// __x86 +// This is ONLY a synonym for defined(__i386) || defined(__amd64) +// which is useful only insofar as these two architectures share +// common attributes. Analogous to __sparc. +// +// _PSM_MODULES +// This indicates whether or not the implementation uses PSM +// modules for processor support, reading /etc/mach from inside +// the kernel to extract a list. +// +// _RTC_CONFIG +// This indicates whether or not the implementation uses /etc/rtc_config +// to configure the real-time clock in the kernel. +// +// _UNIX_KRTLD +// This indicates that the implementation uses a dynamically +// linked unix + krtld to form the core kernel image at boot +// time, or (in the absence of this symbol) a prelinked kernel image. +// +// _OBP +// This indicates the firmware interface is OBP. +// +// _SOFT_HOSTID +// This indicates that the implementation obtains the hostid +// from the file /etc/hostid, rather than from hardware. + +// The following set of definitions characterize Solaris on AMD's +// 64-bit systems. + +// Define the appropriate "processor characteristics" + +// Different alignment constraints for the i386 ABI in compatibility mode + +// Define the appropriate "implementation choices". + +// The feature test macro __i386 is generic for all processors implementing +// the Intel 386 instruction set or a superset of it. Specifically, this +// includes all members of the 386, 486, and Pentium family of processors. + +// Values of _POSIX_C_SOURCE +// +// undefined not a POSIX compilation +// 1 POSIX.1-1990 compilation +// 2 POSIX.2-1992 compilation +// 199309L POSIX.1b-1993 compilation (Real Time) +// 199506L POSIX.1c-1995 compilation (POSIX Threads) +// 200112L POSIX.1-2001 compilation (Austin Group Revision) +// 200809L POSIX.1-2008 compilation + +// The feature test macros __XOPEN_OR_POSIX, _STRICT_STDC, _STRICT_SYMBOLS, +// and _STDC_C99 are Sun implementation specific macros created in order to +// compress common standards specified feature test macros for easier reading. +// These macros should not be used by the application developer as +// unexpected results may occur. Instead, the user should reference +// standards(7) for correct usage of the standards feature test macros. +// +// __XOPEN_OR_POSIX Used in cases where a symbol is defined by both +// X/Open or POSIX or in the negative, when neither +// X/Open or POSIX defines a symbol. +// +// _STRICT_STDC __STDC__ is specified by the C Standards and defined +// by the compiler. For Sun compilers the value of +// __STDC__ is either 1, 0, or not defined based on the +// compilation mode (see cc(1)). When the value of +// __STDC__ is 1 and in the absence of any other feature +// test macros, the namespace available to the application +// is limited to only those symbols defined by the C +// Standard. _STRICT_STDC provides a more readable means +// of identifying symbols defined by the standard, or in +// the negative, symbols that are extensions to the C +// Standard. See additional comments for GNU C differences. +// +// _STDC_C99 __STDC_VERSION__ is specified by the C standards and +// defined by the compiler and indicates the version of +// the C standard. A value of 199901L indicates a +// compiler that complies with ISO/IEC 9899:1999, other- +// wise known as the C99 standard. +// +// _STDC_C11 Like _STDC_C99 except that the value of __STDC_VERSION__ +// is 201112L indicating a compiler that compiles with +// ISO/IEC 9899:2011, otherwise known as the C11 standard. +// +// _STRICT_SYMBOLS Used in cases where symbol visibility is restricted +// by the standards, and the user has not explicitly +// relaxed the strictness via __EXTENSIONS__. + +// ISO/IEC 9899:1990 and it's revisions, ISO/IEC 9899:1999 and ISO/IEC +// 99899:2011 specify the following predefined macro name: +// +// __STDC__ The integer constant 1, intended to indicate a conforming +// implementation. +// +// Furthermore, a strictly conforming program shall use only those features +// of the language and library specified in these standards. A conforming +// implementation shall accept any strictly conforming program. +// +// Based on these requirements, Sun's C compiler defines __STDC__ to 1 for +// strictly conforming environments and __STDC__ to 0 for environments that +// use ANSI C semantics but allow extensions to the C standard. For non-ANSI +// C semantics, Sun's C compiler does not define __STDC__. +// +// The GNU C project interpretation is that __STDC__ should always be defined +// to 1 for compilation modes that accept ANSI C syntax regardless of whether +// or not extensions to the C standard are used. Violations of conforming +// behavior are conditionally flagged as warnings via the use of the +// -pedantic option. In addition to defining __STDC__ to 1, the GNU C +// compiler also defines __STRICT_ANSI__ as a means of specifying strictly +// conforming environments using the -ansi or -std= options. +// +// In the absence of any other compiler options, Sun and GNU set the value +// of __STDC__ as follows when using the following options: +// +// Value of __STDC__ __STRICT_ANSI__ +// +// cc -Xa (default) 0 undefined +// cc -Xt (transitional) 0 undefined +// cc -Xc (strictly conforming) 1 undefined +// cc -Xs (K&R C) undefined undefined +// +// gcc (default) 1 undefined +// gcc -ansi, -std={c89, c99,...) 1 defined +// gcc -traditional (K&R) undefined undefined +// +// The default compilation modes for Sun C compilers versus GNU C compilers +// results in a differing value for __STDC__ which results in a more +// restricted namespace when using Sun compilers. To allow both GNU and Sun +// interpretations to peacefully co-exist, we use the following Sun +// implementation _STRICT_STDC_ macro: + +// Compiler complies with ISO/IEC 9899:1999 or ISO/IEC 9989:2011 + +// Use strict symbol visibility. + +// This is a variant of _STRICT_SYMBOLS that is meant to cover headers that are +// governed by POSIX, but have not been governed by ISO C. One can go two ways +// on what should happen if an application actively includes (not transitively) +// a header that isn't part of the ISO C spec, we opt to say that if someone has +// gone out of there way then they're doing it for a reason and that is an act +// of non-compliance and therefore it's not up to us to hide away every symbol. +// +// In general, prefer using _STRICT_SYMBOLS, but this is here in particular for +// cases where in the past we have only used a POSIX related check and we don't +// wish to make something stricter. Often applications are relying on the +// ability to, or more realistically unwittingly, have _STRICT_STDC declared and +// still use these interfaces. + +// Large file interfaces: +// +// _LARGEFILE_SOURCE +// 1 large file-related additions to POSIX +// interfaces requested (fseeko, etc.) +// _LARGEFILE64_SOURCE +// 1 transitional large-file-related interfaces +// requested (seek64, stat64, etc.) +// +// The corresponding announcement macros are respectively: +// _LFS_LARGEFILE +// _LFS64_LARGEFILE +// (These are set in .) +// +// Requesting _LARGEFILE64_SOURCE implies requesting _LARGEFILE_SOURCE as +// well. +// +// The large file interfaces are made visible regardless of the initial values +// of the feature test macros under certain circumstances: +// - If no explicit standards-conforming environment is requested (neither +// of _POSIX_SOURCE nor _XOPEN_SOURCE is defined and the value of +// __STDC__ does not imply standards conformance). +// - Extended system interfaces are explicitly requested (__EXTENSIONS__ +// is defined). +// - Access to in-kernel interfaces is requested (_KERNEL or _KMEMUSER is +// defined). (Note that this dependency is an artifact of the current +// kernel implementation and may change in future releases.) + +// Large file compilation environment control: +// +// The setting of _FILE_OFFSET_BITS controls the size of various file-related +// types and governs the mapping between file-related source function symbol +// names and the corresponding binary entry points. +// +// In the 32-bit environment, the default value is 32; if not set, set it to +// the default here, to simplify tests in other headers. +// +// In the 64-bit compilation environment, the only value allowed is 64. + +// Use of _XOPEN_SOURCE +// +// The following X/Open specifications are supported: +// +// X/Open Portability Guide, Issue 3 (XPG3) +// X/Open CAE Specification, Issue 4 (XPG4) +// X/Open CAE Specification, Issue 4, Version 2 (XPG4v2) +// X/Open CAE Specification, Issue 5 (XPG5) +// Open Group Technical Standard, Issue 6 (XPG6), also referred to as +// IEEE Std. 1003.1-2001 and ISO/IEC 9945:2002. +// Open Group Technical Standard, Issue 7 (XPG7), also referred to as +// IEEE Std. 1003.1-2008 and ISO/IEC 9945:2009. +// +// XPG4v2 is also referred to as UNIX 95 (SUS or SUSv1). +// XPG5 is also referred to as UNIX 98 or the Single Unix Specification, +// Version 2 (SUSv2) +// XPG6 is the result of a merge of the X/Open and POSIX specifications +// and as such is also referred to as IEEE Std. 1003.1-2001 in +// addition to UNIX 03 and SUSv3. +// XPG7 is also referred to as UNIX 08 and SUSv4. +// +// When writing a conforming X/Open application, as per the specification +// requirements, the appropriate feature test macros must be defined at +// compile time. These are as follows. For more info, see standards(7). +// +// Feature Test Macro Specification +// ------------------------------------------------ ------------- +// _XOPEN_SOURCE XPG3 +// _XOPEN_SOURCE && _XOPEN_VERSION = 4 XPG4 +// _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED = 1 XPG4v2 +// _XOPEN_SOURCE = 500 XPG5 +// _XOPEN_SOURCE = 600 (or POSIX_C_SOURCE=200112L) XPG6 +// _XOPEN_SOURCE = 700 (or POSIX_C_SOURCE=200809L) XPG7 +// +// In order to simplify the guards within the headers, the following +// implementation private test macros have been created. Applications +// must NOT use these private test macros as unexpected results will +// occur. +// +// Note that in general, the use of these private macros is cumulative. +// For example, the use of _XPG3 with no other restrictions on the X/Open +// namespace will make the symbols visible for XPG3 through XPG6 +// compilation environments. The use of _XPG4_2 with no other X/Open +// namespace restrictions indicates that the symbols were introduced in +// XPG4v2 and are therefore visible for XPG4v2 through XPG6 compilation +// environments, but not for XPG3 or XPG4 compilation environments. +// +// _XPG3 X/Open Portability Guide, Issue 3 (XPG3) +// _XPG4 X/Open CAE Specification, Issue 4 (XPG4) +// _XPG4_2 X/Open CAE Specification, Issue 4, Version 2 (XPG4v2/UNIX 95/SUS) +// _XPG5 X/Open CAE Specification, Issue 5 (XPG5/UNIX 98/SUSv2) +// _XPG6 Open Group Technical Standard, Issue 6 (XPG6/UNIX 03/SUSv3) +// _XPG7 Open Group Technical Standard, Issue 7 (XPG7/UNIX 08/SUSv4) + +// X/Open Portability Guide, Issue 3 + +// _XOPEN_VERSION is defined by the X/Open specifications and is not +// normally defined by the application, except in the case of an XPG4 +// application. On the implementation side, _XOPEN_VERSION defined with +// the value of 3 indicates an XPG3 application. _XOPEN_VERSION defined +// with the value of 4 indicates an XPG4 or XPG4v2 (UNIX 95) application. +// _XOPEN_VERSION defined with a value of 500 indicates an XPG5 (UNIX 98) +// application and with a value of 600 indicates an XPG6 (UNIX 03) +// application and with a value of 700 indicates an XPG7 (UNIX 08). +// The appropriate version is determined by the use of the +// feature test macros described earlier. The value of _XOPEN_VERSION +// defaults to 3 otherwise indicating support for XPG3 applications. + +// ANSI C and ISO 9899:1990 say the type long long doesn't exist in strictly +// conforming environments. ISO 9899:1999 says it does. +// +// The presence of _LONGLONG_TYPE says "long long exists" which is therefore +// defined in all but strictly conforming environments that disallow it. + +// The following macro defines a value for the ISO C99 restrict +// keyword so that _RESTRICT_KYWD resolves to "restrict" if +// an ISO C99 compiler is used, "__restrict" for c++ and "" (null string) +// if any other compiler is used. This allows for the use of single +// prototype declarations regardless of compiler version. + +// The following macro defines a value for the ISO C11 _Noreturn +// keyword so that _NORETURN_KYWD resolves to "_Noreturn" if +// an ISO C11 compiler is used and "" (null string) if any other +// compiler is used. This allows for the use of single prototype +// declarations regardless of compiler version. + +// ISO/IEC 9899:2011 Annex K + +// The following macro indicates header support for the ANSI C++ +// standard. The ISO/IEC designation for this is ISO/IEC FDIS 14882. + +// The following macro indicates header support for the C99 standard, +// ISO/IEC 9899:1999, Programming Languages - C. + +// The following macro indicates header support for the C11 standard, +// ISO/IEC 9899:2011, Programming Languages - C. + +// The following macro indicates header support for the C11 standard, +// ISO/IEC 9899:2011 Annex K, Programming Languages - C. + +// The following macro indicates header support for DTrace. The value is an +// integer that corresponds to the major version number for DTrace. + +// This file and its contents are supplied under the terms of the +// Common Development and Distribution License ("CDDL"), version 1.0. +// You may only use this file in accordance with the terms of version +// 1.0 of the CDDL. +// +// A full copy of the text of the CDDL should have accompanied this +// source. A copy of the CDDL is also available via the Internet at +// http://www.illumos.org/license/CDDL. + +// Copyright 2014-2016 PALO, Richard. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// POSIX.1-2008 requires that the NULL macro be cast to type void *. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2021 Oxide Computer Company + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2016 Joyent, Inc. + +// Machine dependent definitions moved to . +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2007 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Machine dependent types: +// +// intel ia32 Version + +type Label_t = X_label_t /* machtypes.h:59:54 */ + +type Lock_t = uint8 /* machtypes.h:63:23 */ // lock work for busy wait + +// Include fixed width type declarations proposed by the ISO/JTC1/SC22/WG14 C +// committee's working draft for the revision of the current ISO C standard, +// ISO/IEC 9899:1990 Programming language - C. These are not currently +// required by any standard but constitute a useful, general purpose set +// of type definitions which is namespace clean with respect to all standards. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2014 Garrett D'Amore +// +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// This file, , is part of the Sun Microsystems implementation +// of defined in the ISO C standard, ISO/IEC 9899:1999 +// Programming language - C. +// +// Programs/Modules should not directly include this file. Access to the +// types defined in this file should be through the inclusion of one of the +// following files: +// +// Provides only the "_t" types defined in this +// file which is a subset of the contents of +// . (This can be appropriate for +// all programs/modules except those claiming +// ANSI-C conformance.) +// +// Provides the Kernel and Driver appropriate +// components of . +// +// For use by applications. +// +// See these files for more details. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Basic / Extended integer types +// +// The following defines the basic fixed-size integer types. +// +// Implementations are free to typedef them to Standard C integer types or +// extensions that they support. If an implementation does not support one +// of the particular integer data types below, then it should not define the +// typedefs and macros corresponding to that data type. Note that int8_t +// is not defined in -Xs mode on ISAs for which the ABI specifies "char" +// as an unsigned entity because there is no way to define an eight bit +// signed integral. +type Int8_t = int8 /* int_types.h:75:16 */ +type Int16_t = int16 /* int_types.h:79:17 */ +type Int32_t = int32 /* int_types.h:80:15 */ +type Int64_t = int64 /* int_types.h:83:16 */ + +type Uint8_t = uint8 /* int_types.h:91:24 */ +type Uint16_t = uint16 /* int_types.h:92:25 */ +type Uint32_t = uint32 /* int_types.h:93:23 */ +type Uint64_t = uint64 /* int_types.h:95:24 */ + +// intmax_t and uintmax_t are to be the longest (in number of bits) signed +// and unsigned integer types supported by the implementation. +type Intmax_t = int64 /* int_types.h:107:19 */ +type Uintmax_t = uint64 /* int_types.h:108:19 */ + +// intptr_t and uintptr_t are signed and unsigned integer types large enough +// to hold any data pointer; that is, data pointers can be assigned into or +// from these integer types without losing precision. +type Intptr_t = int64 /* int_types.h:120:16 */ +type Uintptr_t = uint64 /* int_types.h:121:24 */ + +// The following define the fastest integer types that can hold the +// specified number of bits. +type Int_fast8_t = int8 /* int_types.h:132:16 */ +type Int_fast16_t = int32 /* int_types.h:136:15 */ +type Int_fast32_t = int32 /* int_types.h:137:15 */ +type Int_fast64_t = int64 /* int_types.h:139:16 */ + +type Uint_fast8_t = uint8 /* int_types.h:146:24 */ +type Uint_fast16_t = uint32 /* int_types.h:147:23 */ +type Uint_fast32_t = uint32 /* int_types.h:148:23 */ +type Uint_fast64_t = uint64 /* int_types.h:150:24 */ + +// The following define the smallest integer types that can hold the +// specified number of bits. +type Int_least8_t = int8 /* int_types.h:162:16 */ +type Int_least16_t = int16 /* int_types.h:166:17 */ +type Int_least32_t = int32 /* int_types.h:167:15 */ +type Int_least64_t = int64 /* int_types.h:169:16 */ + +// If these are changed, please update char16_t and char32_t in head/uchar.h. +type Uint_least8_t = uint8 /* int_types.h:179:24 */ +type Uint_least16_t = uint16 /* int_types.h:180:25 */ +type Uint_least32_t = uint32 /* int_types.h:181:23 */ +type Uint_least64_t = uint64 /* int_types.h:183:24 */ + +// Strictly conforming ANSI C environments prior to the 1999 +// revision of the C Standard (ISO/IEC 9899:1999) do not have +// the long long data type. +type Longlong_t = int64 /* types.h:72:20 */ +type U_longlong_t = uint64 /* types.h:73:28 */ + +// These types (t_{u}scalar_t) exist because the XTI/TPI/DLPI standards had +// to use them instead of int32_t and uint32_t because DEC had +// shipped 64-bit wide. +type T_scalar_t = int32 /* types.h:92:18 */ +type T_uscalar_t = uint32 /* types.h:93:18 */ + +// POSIX Extensions +type Uchar_t = uint8 /* types.h:102:23 */ +type Ushort_t = uint16 /* types.h:103:24 */ +type Uint_t = uint32 /* types.h:104:22 */ +type Ulong_t = uint64 /* types.h:105:23 */ + +type Caddr_t = uintptr /* types.h:107:15 */ // ? type +type Daddr_t = int64 /* types.h:108:15 */ // type +type Cnt_t = int16 /* types.h:109:16 */ // pointer difference + +// VM-related types +type Pfn_t = uint64 /* types.h:123:18 */ // page frame number +type Pgcnt_t = uint64 /* types.h:124:18 */ // number of pages +type Spgcnt_t = int64 /* types.h:125:15 */ // signed number of pages + +type Use_t = uint8 /* types.h:127:18 */ // use count for swap. +type Sysid_t = int16 /* types.h:128:16 */ +type Index_t = int16 /* types.h:129:16 */ +type Timeout_id_t = uintptr /* types.h:130:15 */ // opaque handle from timeout(9F) +type Bufcall_id_t = uintptr /* types.h:131:15 */ // opaque handle from bufcall(9F) + +// The size of off_t and related types depends on the setting of +// _FILE_OFFSET_BITS. (Note that other system headers define other types +// related to those defined here.) +// +// If _LARGEFILE64_SOURCE is defined, variants of these types that are +// explicitly 64 bits wide become available. + +type Off_t = int64 /* types.h:145:15 */ // offsets within files + +type Off64_t = int64 /* types.h:152:16 */ // offsets within files + +type Ino_t = uint64 /* types.h:161:18 */ // expanded inode type +type Blkcnt_t = int64 /* types.h:162:15 */ // count of file blocks +type Fsblkcnt_t = uint64 /* types.h:163:18 */ // count of file system blocks +type Fsfilcnt_t = uint64 /* types.h:164:18 */ // count of files + +type Ino64_t = uint64 /* types.h:174:16 */ // expanded inode type +type Blkcnt64_t = int64 /* types.h:175:18 */ // count of file blocks +type Fsblkcnt64_t = uint64 /* types.h:176:20 */ // count of file system blocks +type Fsfilcnt64_t = uint64 /* types.h:177:20 */ // count of files + +type Blksize_t = int32 /* types.h:187:14 */ // used for block sizes + +// The boolean_t type has had a varied amount of exposure over the years in +// terms of how its enumeration constants have been exposed. In particular, it +// originally used the __XOPEN_OR_POSIX macro to determine whether to prefix the +// B_TRUE and B_FALSE with an underscore. This check never included the +// question of if we were in a strict ANSI C environment or whether extensions +// were defined. +// +// Compilers such as clang started defaulting to always including an +// XOPEN_SOURCE declaration on behalf of users, but also noted __EXTENSIONS__. +// This would lead most software that had used the non-underscore versions to +// need it. As such, we have adjusted the non-strict XOPEN environment to retain +// its old behavior so as to minimize namespace pollution; however, we instead +// include both variants of the definitions in the generally visible version +// allowing software written in either world to hopefully end up in a good +// place. +// +// This isn't perfect, but should hopefully minimize the pain for folks actually +// trying to build software. +type Boolean_t = uint32 /* types.h:215:69 */ + +// The {u,}pad64_t types can be used in structures such that those structures +// may be accessed by code produced by compilation environments which don't +// support a 64 bit integral datatype. The intention is not to allow +// use of these fields in such environments, but to maintain the alignment +// and offsets of the structure. +// +// Similar comments for {u,}pad128_t. +// +// Note that these types do NOT generate any stronger alignment constraints +// than those available in the underlying ABI. See +type Pad64_t = int64 /* types.h:240:18 */ +type Upad64_t = uint64 /* types.h:241:18 */ + +type Pad128_t = struct { + F_q float64 + F__ccgo_pad1 [8]byte +} /* types.h:257:3 */ + +type Upad128_t = struct { + F_q float64 + F__ccgo_pad1 [8]byte +} /* types.h:262:3 */ + +type Offset_t = int64 /* types.h:264:20 */ +type U_offset_t = uint64 /* types.h:265:22 */ +type Len_t = uint64 /* types.h:266:22 */ +type Diskaddr_t = uint64 /* types.h:267:22 */ + +// Definitions remaining from previous partial support for 64-bit file +// offsets. This partial support for devices greater than 2gb requires +// compiler support for long long. +type Lloff_t = struct{ F_f int64 } /* types.h:284:3 */ + +type Lldaddr_t = struct{ F_f int64 } /* types.h:304:3 */ + +type K_fltset_t = uint32 /* types.h:317:16 */ // kernel fault set type + +// The following type is for various kinds of identifiers. The +// actual type must be the same for all since some system calls +// (such as sigsend) take arguments that may be any of these +// types. The enumeration type idtype_t defined in sys/procset.h +// is used to indicate what type of id is being specified -- +// a process id, process group id, session id, scheduling class id, +// user id, group id, project id, task id or zone id. +type Id_t = int32 /* types.h:329:14 */ + +type Lgrp_id_t = int32 /* types.h:334:15 */ // lgroup ID + +// Type useconds_t is an unsigned integral type capable of storing +// values at least in the range of zero to 1,000,000. +type Useconds_t = uint32 /* types.h:340:17 */ // Time, in microseconds + +type Suseconds_t = int64 /* types.h:344:14 */ // signed # of microseconds + +// Typedefs for dev_t components. +type Major_t = uint32 /* types.h:351:16 */ // major part of device number +type Minor_t = uint32 /* types.h:352:16 */ // minor part of device number + +// The data type of a thread priority. +type Pri_t = int16 /* types.h:361:15 */ + +// The data type for a CPU flags field. (Can be extended to larger unsigned +// types, if needed, limited by ability to update atomically.) +type Cpu_flag_t = uint16 /* types.h:367:18 */ + +// For compatibility reasons the following typedefs (prefixed o_) +// can't grow regardless of the EFT definition. Although, +// applications should not explicitly use these typedefs +// they may be included via a system header definition. +// WARNING: These typedefs may be removed in a future +// release. +// +// ex. the definitions in s5inode.h (now obsoleted) +// remained small to preserve compatibility +// in the S5 file system type. +type O_mode_t = uint16 /* types.h:380:18 */ // old file attribute type +type O_dev_t = int16 /* types.h:381:15 */ // old device type +type O_uid_t = uint16 /* types.h:382:18 */ // old UID type +type O_gid_t = uint16 /* types.h:383:17 */ // old GID type +type O_nlink_t = int16 /* types.h:384:15 */ // old file link type +type O_pid_t = int16 /* types.h:385:15 */ // old process id type +type O_ino_t = uint16 /* types.h:386:18 */ // old inode type + +// POSIX and XOPEN Declarations +type Key_t = int32 /* types.h:392:13 */ // IPC key type +type Mode_t = uint32 /* types.h:394:16 */ // file attribute type + +type Uid_t = uint32 /* types.h:401:22 */ // UID type + +type Gid_t = uint32 /* types.h:404:15 */ // GID type + +type Datalink_id_t = uint32 /* types.h:406:18 */ +type Vrid_t = uint32 /* types.h:407:18 */ + +type Taskid_t = int32 /* types.h:409:17 */ +type Projid_t = int32 /* types.h:410:17 */ +type Poolid_t = int32 /* types.h:411:14 */ +type Zoneid_t = int32 /* types.h:412:14 */ +type Ctid_t = int32 /* types.h:413:14 */ + +// POSIX definitions are same as defined in thread.h and synch.h. +// Any changes made to here should be reflected in corresponding +// files as described in comments. +type Pthread_t = uint32 /* types.h:420:16 */ // = thread_t in thread.h +type Pthread_key_t = uint32 /* types.h:421:16 */ // = thread_key_t in thread.h + +// "Magic numbers" tagging synchronization object types + +type X_pthread_mutex = struct { + F__pthread_mutex_flags struct { + F__pthread_mutex_flag1 uint16 + F__pthread_mutex_flag2 uint8 + F__pthread_mutex_ceiling uint8 + F__pthread_mutex_type uint16 + F__pthread_mutex_magic uint16 + } + F__pthread_mutex_lock struct { + F__ccgo_pad1 [0]uint64 + F__pthread_mutex_lock64 struct{ F__pthread_mutex_pad [8]uint8 } + } + F__pthread_mutex_data uint64 +} /* types.h:429:9 */ + +// = thread_key_t in thread.h + +// "Magic numbers" tagging synchronization object types + +type Pthread_mutex_t = X_pthread_mutex /* types.h:448:3 */ + +type X_pthread_cond = struct { + F__pthread_cond_flags struct { + F__pthread_cond_flag [4]uint8 + F__pthread_cond_type uint16 + F__pthread_cond_magic uint16 + } + F__pthread_cond_data uint64 +} /* types.h:450:9 */ + +type Pthread_cond_t = X_pthread_cond /* types.h:457:3 */ + +// UNIX 98 Extension +type X_pthread_rwlock = struct { + F__pthread_rwlock_readers int32 + F__pthread_rwlock_type uint16 + F__pthread_rwlock_magic uint16 + F__pthread_rwlock_mutex Pthread_mutex_t + F__pthread_rwlock_readercv Pthread_cond_t + F__pthread_rwlock_writercv Pthread_cond_t +} /* types.h:462:9 */ + +// UNIX 98 Extension +type Pthread_rwlock_t = X_pthread_rwlock /* types.h:469:3 */ + +// SUSV3 +type Pthread_barrier_t = struct { + F__pthread_barrier_count uint32 + F__pthread_barrier_current uint32 + F__pthread_barrier_cycle uint64 + F__pthread_barrier_reserved uint64 + F__pthread_barrier_lock Pthread_mutex_t + F__pthread_barrier_cond Pthread_cond_t +} /* types.h:481:3 */ + +type Pthread_spinlock_t = Pthread_mutex_t /* types.h:483:25 */ + +// attributes for threads, dynamically allocated by library +type X_pthread_attr = struct{ F__pthread_attrp uintptr } /* types.h:488:9 */ + +// attributes for threads, dynamically allocated by library +type Pthread_attr_t = X_pthread_attr /* types.h:490:3 */ + +// attributes for mutex, dynamically allocated by library +type X_pthread_mutexattr = struct{ F__pthread_mutexattrp uintptr } /* types.h:495:9 */ + +// attributes for mutex, dynamically allocated by library +type Pthread_mutexattr_t = X_pthread_mutexattr /* types.h:497:3 */ + +// attributes for cond, dynamically allocated by library +type X_pthread_condattr = struct{ F__pthread_condattrp uintptr } /* types.h:502:9 */ + +// attributes for cond, dynamically allocated by library +type Pthread_condattr_t = X_pthread_condattr /* types.h:504:3 */ + +// pthread_once +type X_once = struct{ F__pthread_once_pad [4]uint64 } /* types.h:509:9 */ + +// pthread_once +type Pthread_once_t = X_once /* types.h:511:3 */ + +// UNIX 98 Extensions +// attributes for rwlock, dynamically allocated by library +type X_pthread_rwlockattr = struct{ F__pthread_rwlockattrp uintptr } /* types.h:517:9 */ + +// UNIX 98 Extensions +// attributes for rwlock, dynamically allocated by library +type Pthread_rwlockattr_t = X_pthread_rwlockattr /* types.h:519:3 */ + +// SUSV3 +// attributes for pthread_barrier_t, dynamically allocated by library +type Pthread_barrierattr_t = struct{ F__pthread_barrierattrp uintptr } /* types.h:527:3 */ + +type Dev_t = uint64 /* types.h:529:17 */ // expanded device type + +type Nlink_t = uint32 /* types.h:532:16 */ // file link type +type Pid_t = int32 /* types.h:533:13 */ // size of something in bytes + +type Ssize_t = int64 /* types.h:551:14 */ // size of something in bytes or -1 + +type Time_t = int64 /* types.h:559:15 */ // time of day in seconds + +type Clock_t = int64 /* types.h:564:15 */ // relative time in a specified resolution + +type Clockid_t = int32 /* types.h:569:13 */ // clock identifier type + +type Timer_t = int32 /* types.h:574:13 */ // timer identifier type + +// BEGIN CSTYLED +type Unchar = uint8 /* types.h:580:23 */ +type Ushort = uint16 /* types.h:581:24 */ +type Uint = uint32 /* types.h:582:22 */ +type Ulong = uint64 /* types.h:583:23 */ +// END CSTYLED + +// The following is the value of type id_t to use to indicate the +// caller's current id. See procset.h for the type idtype_t +// which defines which kind of id is being specified. + +// The following value of type pfn_t is used to indicate +// invalid page frame number. + +// BEGIN CSTYLED +type U_char = uint8 /* types.h:650:23 */ +type U_short = uint16 /* types.h:651:24 */ +type U_int = uint32 /* types.h:652:22 */ +type U_long = uint64 /* types.h:653:23 */ +type X_quad = struct{ Fval [2]int32 } /* types.h:654:9 */ + +type Quad_t = X_quad /* types.h:654:38 */ // used by UFS +type Quad = Quad_t /* types.h:655:17 */ // used by UFS +// END CSTYLED + +// Nested include for BSD/sockets source compatibility. +// (The select macros used to be defined here). +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// +// Copyright 2010 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// University Copyright- Copyright (c) 1982, 1986, 1988 +// The Regents of the University of California +// All Rights Reserved +// +// University Acknowledgment- Portions of this document are derived from +// software developed by the University of California, Berkeley, and its +// contributors. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2005 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Implementation-private. This header should not be included +// directly by an application. The application should instead +// include which includes this header conditionally +// depending on which feature test macros are defined. By default, +// this header is included by . X/Open and POSIX +// standards requirements result in this header being included +// by only under a restricted set of conditions. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Time expressed in seconds and nanoseconds + +type Timespec = struct { + Ftv_sec int64 + Ftv_nsec int64 +} /* time_impl.h:57:9 */ + +// used by UFS +// END CSTYLED + +// Nested include for BSD/sockets source compatibility. +// (The select macros used to be defined here). +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// +// Copyright 2010 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// University Copyright- Copyright (c) 1982, 1986, 1988 +// The Regents of the University of California +// All Rights Reserved +// +// University Acknowledgment- Portions of this document are derived from +// software developed by the University of California, Berkeley, and its +// contributors. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2005 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Implementation-private. This header should not be included +// directly by an application. The application should instead +// include which includes this header conditionally +// depending on which feature test macros are defined. By default, +// this header is included by . X/Open and POSIX +// standards requirements result in this header being included +// by only under a restricted set of conditions. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Time expressed in seconds and nanoseconds + +type Timespec_t = Timespec /* time_impl.h:60:3 */ + +type Timestruc_t = Timespec /* time_impl.h:81:25 */ // definition per SVr4 + +// The following has been left in for backward compatibility. Portable +// applications should not use the structure name timestruc. + +// Timer specification +type Itimerspec = struct { + Fit_interval struct { + Ftv_sec int64 + Ftv_nsec int64 + } + Fit_value struct { + Ftv_sec int64 + Ftv_nsec int64 + } +} /* time_impl.h:95:9 */ + +// definition per SVr4 + +// The following has been left in for backward compatibility. Portable +// applications should not use the structure name timestruc. + +// Timer specification +type Itimerspec_t = Itimerspec /* time_impl.h:98:3 */ + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright (c) 1982, 1986, 1993 Regents of the University of California. +// All rights reserved. The Berkeley software License Agreement +// specifies the terms and conditions for redistribution. + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2020 OmniOS Community Edition (OmniOSce) Association. + +// Copyright (c) 2013, 2016 by Delphix. All rights reserved. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Structure returned by gettimeofday(2) system call, +// and used in other calls. + +type Timeval = struct { + Ftv_sec int64 + Ftv_usec int64 +} /* time.h:54:1 */ + +type Timezone = struct { + Ftz_minuteswest int32 + Ftz_dsttime int32 +} /* time.h:86:1 */ + +// Needed for longlong_t type. Placement of this due to +// including which relies on the presense of the itimerval +// structure. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2021 Oxide Computer Company + +// Operations on timevals. + +// Names of the interval timers, and structure +// defining a timer setting. +// time and when system is running on +// behalf of the process. +// time profiling of multithreaded +// programs. + +type Itimerval = struct { + Fit_interval struct { + Ftv_sec int64 + Ftv_usec int64 + } + Fit_value struct { + Ftv_sec int64 + Ftv_usec int64 + } +} /* time.h:209:1 */ + +// Definitions for commonly used resolutions. + +// Time expressed as a 64-bit nanosecond counter. +type Hrtime_t = int64 /* time.h:265:20 */ + +// The inclusion of is historical and was added for +// backward compatibility in delta 1.2 when a number of definitions +// were moved out of . More recently, the timespec and +// itimerspec structure definitions, along with the _CLOCK_*, CLOCK_*, +// _TIMER_*, and TIMER_* symbols were moved to , +// which is now included by . This change was due to POSIX +// 1003.1b-1993 and X/Open UNIX 98 requirements. For non-POSIX and +// non-X/Open applications, including this header will still make +// visible these definitions. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1988 AT&T +// All Rights Reserved + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2007 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2010 Nexenta Systems, Inc. Al rights reserved. +// Copyright 2016 Joyent, Inc. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1988 AT&T +// All Rights Reserved + +// Copyright 2014 Garrett D'Amore +// Copyright 2014 PALO, Richard. +// +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// An application should not include this header directly. Instead it +// should be included only through the inclusion of other Sun headers. +// +// The contents of this header is limited to identifiers specified in the +// C Standard. Any new identifiers specified in future amendments to the +// C Standard must be placed in this header. If these new identifiers +// are required to also be in the C++ Standard "std" namespace, then for +// anything other than macro definitions, corresponding "using" directives +// must also be added to . + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// This file and its contents are supplied under the terms of the +// Common Development and Distribution License ("CDDL"), version 1.0. +// You may only use this file in accordance with the terms of version +// 1.0 of the CDDL. +// +// A full copy of the text of the CDDL should have accompanied this +// source. A copy of the CDDL is also available via the Internet at +// http://www.illumos.org/license/CDDL. + +// Copyright 2014-2016 PALO, Richard. + +type Tm = struct { + Ftm_sec int32 + Ftm_min int32 + Ftm_hour int32 + Ftm_mday int32 + Ftm_mon int32 + Ftm_year int32 + Ftm_wday int32 + Ftm_yday int32 + Ftm_isdst int32 +} /* time_iso.h:80:1 */ + +// Neither X/Open nor POSIX allow the inclusion of for the +// definition of the sigevent structure. Both require the inclusion +// of and when using the timer_create() function. +// However, X/Open also specifies that the sigevent structure be defined +// in as described in the header . This prevents +// compiler warnings for applications that only include and not +// also . The sigval union and the sigevent structure is +// therefore defined both here and in which gets included +// via inclusion of . +type Sigval = struct { + F__ccgo_pad1 [0]uint64 + Fsival_int int32 + F__ccgo_pad2 [4]byte +} /* time.h:125:1 */ + +type Sigevent = struct { + Fsigev_notify int32 + Fsigev_signo int32 + Fsigev_value struct { + F__ccgo_pad1 [0]uint64 + Fsival_int int32 + F__ccgo_pad2 [4]byte + } + Fsigev_notify_function uintptr + Fsigev_notify_attributes uintptr + F__sigev_pad2 int32 + F__ccgo_pad1 [4]byte +} /* time.h:133:1 */ + +type Locale_t = uintptr /* time.h:292:24 */ + +// The inclusion of is needed for the FD_CLR, +// FD_ISSET, FD_SET, and FD_SETSIZE macros as well as the +// select() prototype defined in the XOpen specifications +// beginning with XSH4v2. Placement required after definition +// for itimerval. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// +// Copyright 2010 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// University Copyright- Copyright (c) 1982, 1986, 1988 +// The Regents of the University of California +// All Rights Reserved +// +// University Acknowledgment- Portions of this document are derived from +// software developed by the University of California, Berkeley, and its +// contributors. + +// The sigset_t type is defined in and duplicated +// in as a result of XPG4v2 requirements. XPG6 +// now allows the visibility of signal.h in this header, however +// an order of inclusion problem occurs as a result of inclusion +// of in under certain conditions. +// Rather than include here, we've duplicated +// the sigset_t type instead. This type is required for the XPG6 +// introduced pselect() function also declared in this header. +type Sigset_t = struct{ F__sigbits [4]uint32 } /* select.h:76:3 */ + +// Select uses bit masks of file descriptors in longs. +// These macros manipulate such bit fields. +// FD_SETSIZE may be defined by the user, but the default here +// should be >= RLIM_FD_MAX. + +type Fd_mask = int64 /* select.h:92:14 */ +type Fds_mask = int64 /* select.h:94:14 */ + +// The value of _NBBY needs to be consistant with the value +// of NBBY in . + +type Fd_set1 = struct{ Ffds_bits [1024]int64 } /* select.h:120:9 */ + +// The value of _NBBY needs to be consistant with the value +// of NBBY in . + +type Fd_set = Fd_set1 /* select.h:125:3 */ + +var _ int8 /* gen.c:2:13: */ diff --git a/vendor/modernc.org/libc/unistd/unistd_linux_loong64.go b/vendor/modernc.org/libc/unistd/unistd_linux_loong64.go new file mode 100644 index 000000000..3b62c2f3f --- /dev/null +++ b/vendor/modernc.org/libc/unistd/unistd_linux_loong64.go @@ -0,0 +1,1765 @@ +// Code generated by 'ccgo unistd/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o unistd/unistd_linux_loong64.go -pkgname unistd', DO NOT EDIT. + +package unistd + +import ( + "math" + "reflect" + "sync/atomic" + "unsafe" +) + +var _ = math.Pi +var _ reflect.Kind +var _ atomic.Value +var _ unsafe.Pointer + +const ( + F_LOCK = 1 // unistd.h:1109:1: + F_OK = 0 // unistd.h:284:1: + F_TEST = 3 // unistd.h:1111:1: + F_TLOCK = 2 // unistd.h:1110:1: + F_ULOCK = 0 // unistd.h:1108:1: + L_INCR = 1 // unistd.h:328:1: + L_SET = 0 // unistd.h:327:1: + L_XTND = 2 // unistd.h:329:1: + R_OK = 4 // unistd.h:281:1: + SEEK_CUR = 1 // unistd.h:317:1: + SEEK_END = 2 // unistd.h:318:1: + SEEK_SET = 0 // unistd.h:316:1: + STDERR_FILENO = 2 // unistd.h:212:1: + STDIN_FILENO = 0 // unistd.h:210:1: + STDOUT_FILENO = 1 // unistd.h:211:1: + W_OK = 2 // unistd.h:282:1: + X_OK = 1 // unistd.h:283:1: + X_ABILP64 = 3 // :377:1: + X_ATFILE_SOURCE = 1 // features.h:353:1: + X_BITS_POSIX_OPT_H = 1 // posix_opt.h:20:1: + X_BITS_TIME64_H = 1 // time64.h:24:1: + X_BITS_TYPESIZES_H = 1 // typesizes.h:24:1: + X_BITS_TYPES_H = 1 // types.h:24:1: + X_BSD_SIZE_T_ = 0 // stddef.h:193:1: + X_BSD_SIZE_T_DEFINED_ = 0 // stddef.h:196:1: + X_DEFAULT_SOURCE = 1 // features.h:238:1: + X_FEATURES_H = 1 // features.h:19:1: + X_FILE_OFFSET_BITS = 64 // :25:1: + X_GCC_SIZE_T = 0 // stddef.h:200:1: + X_GETOPT_CORE_H = 1 // getopt_core.h:21:1: + X_GETOPT_POSIX_H = 1 // getopt_posix.h:21:1: + X_LFS64_ASYNCHRONOUS_IO = 1 // posix_opt.h:117:1: + X_LFS64_LARGEFILE = 1 // posix_opt.h:121:1: + X_LFS64_STDIO = 1 // posix_opt.h:122:1: + X_LFS_ASYNCHRONOUS_IO = 1 // posix_opt.h:112:1: + X_LFS_LARGEFILE = 1 // posix_opt.h:120:1: + X_LOONGARCH_ARCH = "loongarch64" // :214:1: + X_LOONGARCH_ARCH_LOONGARCH64 = 1 // :340:1: + X_LOONGARCH_FPSET = 32 // :265:1: + X_LOONGARCH_SIM = 3 // :233:1: + X_LOONGARCH_SPFPSET = 32 // :88:1: + X_LOONGARCH_SZINT = 32 // :230:1: + X_LOONGARCH_SZLONG = 64 // :388:1: + X_LOONGARCH_SZPTR = 64 // :200:1: + X_LOONGARCH_TUNE = "la464" // :245:1: + X_LOONGARCH_TUNE_LA464 = 1 // :63:1: + X_LP64 = 1 // :372:1: + X_POSIX2_CHAR_TERM = 200809 // posix_opt.h:179:1: + X_POSIX2_C_BIND = 200809 // unistd.h:74:1: + X_POSIX2_C_DEV = 200809 // unistd.h:78:1: + X_POSIX2_C_VERSION = 200809 // unistd.h:70:1: + X_POSIX2_LOCALEDEF = 200809 // unistd.h:86:1: + X_POSIX2_SW_DEV = 200809 // unistd.h:82:1: + X_POSIX2_VERSION = 200809 // unistd.h:67:1: + X_POSIX_ADVISORY_INFO = 200809 // posix_opt.h:170:1: + X_POSIX_ASYNCHRONOUS_IO = 200809 // posix_opt.h:109:1: + X_POSIX_ASYNC_IO = 1 // posix_opt.h:110:1: + X_POSIX_BARRIERS = 200809 // posix_opt.h:155:1: + X_POSIX_CHOWN_RESTRICTED = 0 // posix_opt.h:53:1: + X_POSIX_CLOCK_SELECTION = 200809 // posix_opt.h:167:1: + X_POSIX_CPUTIME = 0 // posix_opt.h:128:1: + X_POSIX_C_SOURCE = 200809 // features.h:292:1: + X_POSIX_FSYNC = 200809 // posix_opt.h:38:1: + X_POSIX_IPV6 = 200809 // posix_opt.h:173:1: + X_POSIX_JOB_CONTROL = 1 // posix_opt.h:23:1: + X_POSIX_MAPPED_FILES = 200809 // posix_opt.h:41:1: + X_POSIX_MEMLOCK = 200809 // posix_opt.h:44:1: + X_POSIX_MEMLOCK_RANGE = 200809 // posix_opt.h:47:1: + X_POSIX_MEMORY_PROTECTION = 200809 // posix_opt.h:50:1: + X_POSIX_MESSAGE_PASSING = 200809 // posix_opt.h:158:1: + X_POSIX_MONOTONIC_CLOCK = 0 // posix_opt.h:164:1: + X_POSIX_NO_TRUNC = 1 // posix_opt.h:60:1: + X_POSIX_PRIORITIZED_IO = 200809 // posix_opt.h:114:1: + X_POSIX_PRIORITY_SCHEDULING = 200809 // posix_opt.h:32:1: + X_POSIX_RAW_SOCKETS = 200809 // posix_opt.h:176:1: + X_POSIX_READER_WRITER_LOCKS = 200809 // posix_opt.h:137:1: + X_POSIX_REALTIME_SIGNALS = 200809 // posix_opt.h:106:1: + X_POSIX_REENTRANT_FUNCTIONS = 1 // posix_opt.h:75:1: + X_POSIX_REGEXP = 1 // posix_opt.h:134:1: + X_POSIX_SAVED_IDS = 1 // posix_opt.h:26:1: + X_POSIX_SEMAPHORES = 200809 // posix_opt.h:103:1: + X_POSIX_SHARED_MEMORY_OBJECTS = 200809 // posix_opt.h:125:1: + X_POSIX_SHELL = 1 // posix_opt.h:140:1: + X_POSIX_SOURCE = 1 // features.h:290:1: + X_POSIX_SPAWN = 200809 // posix_opt.h:149:1: + X_POSIX_SPIN_LOCKS = 200809 // posix_opt.h:146:1: + X_POSIX_SPORADIC_SERVER = -1 // posix_opt.h:182:1: + X_POSIX_SYNCHRONIZED_IO = 200809 // posix_opt.h:35:1: + X_POSIX_THREADS = 200809 // posix_opt.h:72:1: + X_POSIX_THREAD_ATTR_STACKADDR = 200809 // posix_opt.h:85:1: + X_POSIX_THREAD_ATTR_STACKSIZE = 200809 // posix_opt.h:82:1: + X_POSIX_THREAD_CPUTIME = 0 // posix_opt.h:131:1: + X_POSIX_THREAD_PRIORITY_SCHEDULING = 200809 // posix_opt.h:79:1: + X_POSIX_THREAD_PRIO_INHERIT = 200809 // posix_opt.h:88:1: + X_POSIX_THREAD_PRIO_PROTECT = 200809 // posix_opt.h:92:1: + X_POSIX_THREAD_PROCESS_SHARED = 200809 // posix_opt.h:161:1: + X_POSIX_THREAD_ROBUST_PRIO_INHERIT = 200809 // posix_opt.h:96:1: + X_POSIX_THREAD_ROBUST_PRIO_PROTECT = -1 // posix_opt.h:99:1: + X_POSIX_THREAD_SAFE_FUNCTIONS = 200809 // posix_opt.h:76:1: + X_POSIX_THREAD_SPORADIC_SERVER = -1 // posix_opt.h:183:1: + X_POSIX_TIMEOUTS = 200809 // posix_opt.h:143:1: + X_POSIX_TIMERS = 200809 // posix_opt.h:152:1: + X_POSIX_TRACE = -1 // posix_opt.h:186:1: + X_POSIX_TRACE_EVENT_FILTER = -1 // posix_opt.h:187:1: + X_POSIX_TRACE_INHERIT = -1 // posix_opt.h:188:1: + X_POSIX_TRACE_LOG = -1 // posix_opt.h:189:1: + X_POSIX_TYPED_MEMORY_OBJECTS = -1 // posix_opt.h:192:1: + X_POSIX_V6_ILP32_OFF32 = -1 // environments.h:47:1: + X_POSIX_V6_ILP32_OFFBIG = -1 // environments.h:48:1: + X_POSIX_V6_LP64_OFF64 = 1 // environments.h:59:1: + X_POSIX_V6_LPBIG_OFFBIG = -1 // environments.h:54:1: + X_POSIX_V7_ILP32_OFF32 = -1 // environments.h:45:1: + X_POSIX_V7_ILP32_OFFBIG = -1 // environments.h:46:1: + X_POSIX_V7_LP64_OFF64 = 1 // environments.h:58:1: + X_POSIX_V7_LPBIG_OFFBIG = -1 // environments.h:53:1: + X_POSIX_VDISABLE = 0 // posix_opt.h:57:1: + X_POSIX_VERSION = 200809 // unistd.h:34:1: + X_SIZET_ = 0 // stddef.h:201:1: + X_SIZE_T = 0 // stddef.h:187:1: + X_SIZE_T_ = 0 // stddef.h:192:1: + X_SIZE_T_DECLARED = 0 // stddef.h:197:1: + X_SIZE_T_DEFINED = 0 // stddef.h:195:1: + X_SIZE_T_DEFINED_ = 0 // stddef.h:194:1: + X_STDC_PREDEF_H = 1 // :223:1: + X_SYS_CDEFS_H = 1 // cdefs.h:20:1: + X_SYS_SIZE_T_H = 0 // stddef.h:188:1: + X_T_SIZE = 0 // stddef.h:190:1: + X_T_SIZE_ = 0 // stddef.h:189:1: + X_UNISTD_H = 1 // unistd.h:23:1: + X_XBS5_ILP32_OFF32 = -1 // environments.h:49:1: + X_XBS5_ILP32_OFFBIG = -1 // environments.h:50:1: + X_XBS5_LP64_OFF64 = 1 // environments.h:60:1: + X_XBS5_LPBIG_OFFBIG = -1 // environments.h:55:1: + X_XOPEN_ENH_I18N = 1 // unistd.h:112:1: + X_XOPEN_LEGACY = 1 // unistd.h:115:1: + X_XOPEN_REALTIME = 1 // posix_opt.h:63:1: + X_XOPEN_REALTIME_THREADS = 1 // posix_opt.h:66:1: + X_XOPEN_SHM = 1 // posix_opt.h:69:1: + X_XOPEN_UNIX = 1 // unistd.h:108:1: + X_XOPEN_VERSION = 700 // unistd.h:90:1: + X_XOPEN_XCU_VERSION = 4 // unistd.h:100:1: + X_XOPEN_XPG2 = 1 // unistd.h:103:1: + X_XOPEN_XPG3 = 1 // unistd.h:104:1: + X_XOPEN_XPG4 = 1 // unistd.h:105:1: + Linux = 1 // :308:1: + Unix = 1 // :247:1: +) + +// Get the `_PC_*' symbols for the NAME argument to `pathconf' and `fpathconf'; +// the `_SC_*' symbols for the NAME argument to `sysconf'; +// and the `_CS_*' symbols for the NAME argument to `confstr'. +// `sysconf', `pathconf', and `confstr' NAME values. Generic version. +// Copyright (C) 1993-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Values for the NAME argument to `pathconf' and `fpathconf'. +const ( /* confname.h:24:1: */ + X_PC_LINK_MAX = 0 + X_PC_MAX_CANON = 1 + X_PC_MAX_INPUT = 2 + X_PC_NAME_MAX = 3 + X_PC_PATH_MAX = 4 + X_PC_PIPE_BUF = 5 + X_PC_CHOWN_RESTRICTED = 6 + X_PC_NO_TRUNC = 7 + X_PC_VDISABLE = 8 + X_PC_SYNC_IO = 9 + X_PC_ASYNC_IO = 10 + X_PC_PRIO_IO = 11 + X_PC_SOCK_MAXBUF = 12 + X_PC_FILESIZEBITS = 13 + X_PC_REC_INCR_XFER_SIZE = 14 + X_PC_REC_MAX_XFER_SIZE = 15 + X_PC_REC_MIN_XFER_SIZE = 16 + X_PC_REC_XFER_ALIGN = 17 + X_PC_ALLOC_SIZE_MIN = 18 + X_PC_SYMLINK_MAX = 19 + X_PC_2_SYMLINKS = 20 +) + +// Values for the NAME argument to `confstr'. +const ( /* confname.h:539:1: */ + X_CS_PATH = 0 // The default search path. + + X_CS_V6_WIDTH_RESTRICTED_ENVS = 1 + + X_CS_GNU_LIBC_VERSION = 2 + X_CS_GNU_LIBPTHREAD_VERSION = 3 + + X_CS_V5_WIDTH_RESTRICTED_ENVS = 4 + + X_CS_V7_WIDTH_RESTRICTED_ENVS = 5 + + X_CS_LFS_CFLAGS = 1000 + X_CS_LFS_LDFLAGS = 1001 + X_CS_LFS_LIBS = 1002 + X_CS_LFS_LINTFLAGS = 1003 + X_CS_LFS64_CFLAGS = 1004 + X_CS_LFS64_LDFLAGS = 1005 + X_CS_LFS64_LIBS = 1006 + X_CS_LFS64_LINTFLAGS = 1007 + + X_CS_XBS5_ILP32_OFF32_CFLAGS = 1100 + X_CS_XBS5_ILP32_OFF32_LDFLAGS = 1101 + X_CS_XBS5_ILP32_OFF32_LIBS = 1102 + X_CS_XBS5_ILP32_OFF32_LINTFLAGS = 1103 + X_CS_XBS5_ILP32_OFFBIG_CFLAGS = 1104 + X_CS_XBS5_ILP32_OFFBIG_LDFLAGS = 1105 + X_CS_XBS5_ILP32_OFFBIG_LIBS = 1106 + X_CS_XBS5_ILP32_OFFBIG_LINTFLAGS = 1107 + X_CS_XBS5_LP64_OFF64_CFLAGS = 1108 + X_CS_XBS5_LP64_OFF64_LDFLAGS = 1109 + X_CS_XBS5_LP64_OFF64_LIBS = 1110 + X_CS_XBS5_LP64_OFF64_LINTFLAGS = 1111 + X_CS_XBS5_LPBIG_OFFBIG_CFLAGS = 1112 + X_CS_XBS5_LPBIG_OFFBIG_LDFLAGS = 1113 + X_CS_XBS5_LPBIG_OFFBIG_LIBS = 1114 + X_CS_XBS5_LPBIG_OFFBIG_LINTFLAGS = 1115 + + X_CS_POSIX_V6_ILP32_OFF32_CFLAGS = 1116 + X_CS_POSIX_V6_ILP32_OFF32_LDFLAGS = 1117 + X_CS_POSIX_V6_ILP32_OFF32_LIBS = 1118 + X_CS_POSIX_V6_ILP32_OFF32_LINTFLAGS = 1119 + X_CS_POSIX_V6_ILP32_OFFBIG_CFLAGS = 1120 + X_CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS = 1121 + X_CS_POSIX_V6_ILP32_OFFBIG_LIBS = 1122 + X_CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS = 1123 + X_CS_POSIX_V6_LP64_OFF64_CFLAGS = 1124 + X_CS_POSIX_V6_LP64_OFF64_LDFLAGS = 1125 + X_CS_POSIX_V6_LP64_OFF64_LIBS = 1126 + X_CS_POSIX_V6_LP64_OFF64_LINTFLAGS = 1127 + X_CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS = 1128 + X_CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS = 1129 + X_CS_POSIX_V6_LPBIG_OFFBIG_LIBS = 1130 + X_CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS = 1131 + + X_CS_POSIX_V7_ILP32_OFF32_CFLAGS = 1132 + X_CS_POSIX_V7_ILP32_OFF32_LDFLAGS = 1133 + X_CS_POSIX_V7_ILP32_OFF32_LIBS = 1134 + X_CS_POSIX_V7_ILP32_OFF32_LINTFLAGS = 1135 + X_CS_POSIX_V7_ILP32_OFFBIG_CFLAGS = 1136 + X_CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS = 1137 + X_CS_POSIX_V7_ILP32_OFFBIG_LIBS = 1138 + X_CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS = 1139 + X_CS_POSIX_V7_LP64_OFF64_CFLAGS = 1140 + X_CS_POSIX_V7_LP64_OFF64_LDFLAGS = 1141 + X_CS_POSIX_V7_LP64_OFF64_LIBS = 1142 + X_CS_POSIX_V7_LP64_OFF64_LINTFLAGS = 1143 + X_CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS = 1144 + X_CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS = 1145 + X_CS_POSIX_V7_LPBIG_OFFBIG_LIBS = 1146 + X_CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS = 1147 + + X_CS_V6_ENV = 1148 + X_CS_V7_ENV = 1149 +) + +// Values for the argument to `sysconf'. +const ( /* confname.h:71:1: */ + X_SC_ARG_MAX = 0 + X_SC_CHILD_MAX = 1 + X_SC_CLK_TCK = 2 + X_SC_NGROUPS_MAX = 3 + X_SC_OPEN_MAX = 4 + X_SC_STREAM_MAX = 5 + X_SC_TZNAME_MAX = 6 + X_SC_JOB_CONTROL = 7 + X_SC_SAVED_IDS = 8 + X_SC_REALTIME_SIGNALS = 9 + X_SC_PRIORITY_SCHEDULING = 10 + X_SC_TIMERS = 11 + X_SC_ASYNCHRONOUS_IO = 12 + X_SC_PRIORITIZED_IO = 13 + X_SC_SYNCHRONIZED_IO = 14 + X_SC_FSYNC = 15 + X_SC_MAPPED_FILES = 16 + X_SC_MEMLOCK = 17 + X_SC_MEMLOCK_RANGE = 18 + X_SC_MEMORY_PROTECTION = 19 + X_SC_MESSAGE_PASSING = 20 + X_SC_SEMAPHORES = 21 + X_SC_SHARED_MEMORY_OBJECTS = 22 + X_SC_AIO_LISTIO_MAX = 23 + X_SC_AIO_MAX = 24 + X_SC_AIO_PRIO_DELTA_MAX = 25 + X_SC_DELAYTIMER_MAX = 26 + X_SC_MQ_OPEN_MAX = 27 + X_SC_MQ_PRIO_MAX = 28 + X_SC_VERSION = 29 + X_SC_PAGESIZE = 30 + X_SC_RTSIG_MAX = 31 + X_SC_SEM_NSEMS_MAX = 32 + X_SC_SEM_VALUE_MAX = 33 + X_SC_SIGQUEUE_MAX = 34 + X_SC_TIMER_MAX = 35 + + // Values for the argument to `sysconf' + // corresponding to _POSIX2_* symbols. + X_SC_BC_BASE_MAX = 36 + X_SC_BC_DIM_MAX = 37 + X_SC_BC_SCALE_MAX = 38 + X_SC_BC_STRING_MAX = 39 + X_SC_COLL_WEIGHTS_MAX = 40 + X_SC_EQUIV_CLASS_MAX = 41 + X_SC_EXPR_NEST_MAX = 42 + X_SC_LINE_MAX = 43 + X_SC_RE_DUP_MAX = 44 + X_SC_CHARCLASS_NAME_MAX = 45 + + X_SC_2_VERSION = 46 + X_SC_2_C_BIND = 47 + X_SC_2_C_DEV = 48 + X_SC_2_FORT_DEV = 49 + X_SC_2_FORT_RUN = 50 + X_SC_2_SW_DEV = 51 + X_SC_2_LOCALEDEF = 52 + + X_SC_PII = 53 + X_SC_PII_XTI = 54 + X_SC_PII_SOCKET = 55 + X_SC_PII_INTERNET = 56 + X_SC_PII_OSI = 57 + X_SC_POLL = 58 + X_SC_SELECT = 59 + X_SC_UIO_MAXIOV = 60 + X_SC_IOV_MAX = 60 + X_SC_PII_INTERNET_STREAM = 61 + X_SC_PII_INTERNET_DGRAM = 62 + X_SC_PII_OSI_COTS = 63 + X_SC_PII_OSI_CLTS = 64 + X_SC_PII_OSI_M = 65 + X_SC_T_IOV_MAX = 66 + + // Values according to POSIX 1003.1c (POSIX threads). + X_SC_THREADS = 67 + X_SC_THREAD_SAFE_FUNCTIONS = 68 + X_SC_GETGR_R_SIZE_MAX = 69 + X_SC_GETPW_R_SIZE_MAX = 70 + X_SC_LOGIN_NAME_MAX = 71 + X_SC_TTY_NAME_MAX = 72 + X_SC_THREAD_DESTRUCTOR_ITERATIONS = 73 + X_SC_THREAD_KEYS_MAX = 74 + X_SC_THREAD_STACK_MIN = 75 + X_SC_THREAD_THREADS_MAX = 76 + X_SC_THREAD_ATTR_STACKADDR = 77 + X_SC_THREAD_ATTR_STACKSIZE = 78 + X_SC_THREAD_PRIORITY_SCHEDULING = 79 + X_SC_THREAD_PRIO_INHERIT = 80 + X_SC_THREAD_PRIO_PROTECT = 81 + X_SC_THREAD_PROCESS_SHARED = 82 + + X_SC_NPROCESSORS_CONF = 83 + X_SC_NPROCESSORS_ONLN = 84 + X_SC_PHYS_PAGES = 85 + X_SC_AVPHYS_PAGES = 86 + X_SC_ATEXIT_MAX = 87 + X_SC_PASS_MAX = 88 + + X_SC_XOPEN_VERSION = 89 + X_SC_XOPEN_XCU_VERSION = 90 + X_SC_XOPEN_UNIX = 91 + X_SC_XOPEN_CRYPT = 92 + X_SC_XOPEN_ENH_I18N = 93 + X_SC_XOPEN_SHM = 94 + + X_SC_2_CHAR_TERM = 95 + X_SC_2_C_VERSION = 96 + X_SC_2_UPE = 97 + + X_SC_XOPEN_XPG2 = 98 + X_SC_XOPEN_XPG3 = 99 + X_SC_XOPEN_XPG4 = 100 + + X_SC_CHAR_BIT = 101 + X_SC_CHAR_MAX = 102 + X_SC_CHAR_MIN = 103 + X_SC_INT_MAX = 104 + X_SC_INT_MIN = 105 + X_SC_LONG_BIT = 106 + X_SC_WORD_BIT = 107 + X_SC_MB_LEN_MAX = 108 + X_SC_NZERO = 109 + X_SC_SSIZE_MAX = 110 + X_SC_SCHAR_MAX = 111 + X_SC_SCHAR_MIN = 112 + X_SC_SHRT_MAX = 113 + X_SC_SHRT_MIN = 114 + X_SC_UCHAR_MAX = 115 + X_SC_UINT_MAX = 116 + X_SC_ULONG_MAX = 117 + X_SC_USHRT_MAX = 118 + + X_SC_NL_ARGMAX = 119 + X_SC_NL_LANGMAX = 120 + X_SC_NL_MSGMAX = 121 + X_SC_NL_NMAX = 122 + X_SC_NL_SETMAX = 123 + X_SC_NL_TEXTMAX = 124 + + X_SC_XBS5_ILP32_OFF32 = 125 + X_SC_XBS5_ILP32_OFFBIG = 126 + X_SC_XBS5_LP64_OFF64 = 127 + X_SC_XBS5_LPBIG_OFFBIG = 128 + + X_SC_XOPEN_LEGACY = 129 + X_SC_XOPEN_REALTIME = 130 + X_SC_XOPEN_REALTIME_THREADS = 131 + + X_SC_ADVISORY_INFO = 132 + X_SC_BARRIERS = 133 + X_SC_BASE = 134 + X_SC_C_LANG_SUPPORT = 135 + X_SC_C_LANG_SUPPORT_R = 136 + X_SC_CLOCK_SELECTION = 137 + X_SC_CPUTIME = 138 + X_SC_THREAD_CPUTIME = 139 + X_SC_DEVICE_IO = 140 + X_SC_DEVICE_SPECIFIC = 141 + X_SC_DEVICE_SPECIFIC_R = 142 + X_SC_FD_MGMT = 143 + X_SC_FIFO = 144 + X_SC_PIPE = 145 + X_SC_FILE_ATTRIBUTES = 146 + X_SC_FILE_LOCKING = 147 + X_SC_FILE_SYSTEM = 148 + X_SC_MONOTONIC_CLOCK = 149 + X_SC_MULTI_PROCESS = 150 + X_SC_SINGLE_PROCESS = 151 + X_SC_NETWORKING = 152 + X_SC_READER_WRITER_LOCKS = 153 + X_SC_SPIN_LOCKS = 154 + X_SC_REGEXP = 155 + X_SC_REGEX_VERSION = 156 + X_SC_SHELL = 157 + X_SC_SIGNALS = 158 + X_SC_SPAWN = 159 + X_SC_SPORADIC_SERVER = 160 + X_SC_THREAD_SPORADIC_SERVER = 161 + X_SC_SYSTEM_DATABASE = 162 + X_SC_SYSTEM_DATABASE_R = 163 + X_SC_TIMEOUTS = 164 + X_SC_TYPED_MEMORY_OBJECTS = 165 + X_SC_USER_GROUPS = 166 + X_SC_USER_GROUPS_R = 167 + X_SC_2_PBS = 168 + X_SC_2_PBS_ACCOUNTING = 169 + X_SC_2_PBS_LOCATE = 170 + X_SC_2_PBS_MESSAGE = 171 + X_SC_2_PBS_TRACK = 172 + X_SC_SYMLOOP_MAX = 173 + X_SC_STREAMS = 174 + X_SC_2_PBS_CHECKPOINT = 175 + + X_SC_V6_ILP32_OFF32 = 176 + X_SC_V6_ILP32_OFFBIG = 177 + X_SC_V6_LP64_OFF64 = 178 + X_SC_V6_LPBIG_OFFBIG = 179 + + X_SC_HOST_NAME_MAX = 180 + X_SC_TRACE = 181 + X_SC_TRACE_EVENT_FILTER = 182 + X_SC_TRACE_INHERIT = 183 + X_SC_TRACE_LOG = 184 + + X_SC_LEVEL1_ICACHE_SIZE = 185 + X_SC_LEVEL1_ICACHE_ASSOC = 186 + X_SC_LEVEL1_ICACHE_LINESIZE = 187 + X_SC_LEVEL1_DCACHE_SIZE = 188 + X_SC_LEVEL1_DCACHE_ASSOC = 189 + X_SC_LEVEL1_DCACHE_LINESIZE = 190 + X_SC_LEVEL2_CACHE_SIZE = 191 + X_SC_LEVEL2_CACHE_ASSOC = 192 + X_SC_LEVEL2_CACHE_LINESIZE = 193 + X_SC_LEVEL3_CACHE_SIZE = 194 + X_SC_LEVEL3_CACHE_ASSOC = 195 + X_SC_LEVEL3_CACHE_LINESIZE = 196 + X_SC_LEVEL4_CACHE_SIZE = 197 + X_SC_LEVEL4_CACHE_ASSOC = 198 + X_SC_LEVEL4_CACHE_LINESIZE = 199 + // Leave room here, maybe we need a few more cache levels some day. + + X_SC_IPV6 = 235 + X_SC_RAW_SOCKETS = 236 + + X_SC_V7_ILP32_OFF32 = 237 + X_SC_V7_ILP32_OFFBIG = 238 + X_SC_V7_LP64_OFF64 = 239 + X_SC_V7_LPBIG_OFFBIG = 240 + + X_SC_SS_REPL_MAX = 241 + + X_SC_TRACE_EVENT_NAME_MAX = 242 + X_SC_TRACE_NAME_MAX = 243 + X_SC_TRACE_SYS_MAX = 244 + X_SC_TRACE_USER_EVENT_MAX = 245 + + X_SC_XOPEN_STREAMS = 246 + + X_SC_THREAD_ROBUST_PRIO_INHERIT = 247 + X_SC_THREAD_ROBUST_PRIO_PROTECT = 248 + + X_SC_MINSIGSTKSZ = 249 + + X_SC_SIGSTKSZ = 250 +) + +type Ptrdiff_t = int64 /* :3:26 */ + +type Size_t = uint64 /* :9:23 */ + +type Wchar_t = int32 /* :15:24 */ + +type X__int128_t = struct { + Flo int64 + Fhi int64 +} /* :21:43 */ // must match modernc.org/mathutil.Int128 +type X__uint128_t = struct { + Flo uint64 + Fhi uint64 +} /* :22:44 */ // must match modernc.org/mathutil.Int128 + +type X__builtin_va_list = uintptr /* :46:14 */ +type X__float128 = float64 /* :47:21 */ + +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// POSIX Standard: 2.10 Symbolic Constants + +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// These are defined by the user (or the compiler) +// to specify the desired environment: +// +// __STRICT_ANSI__ ISO Standard C. +// _ISOC99_SOURCE Extensions to ISO C89 from ISO C99. +// _ISOC11_SOURCE Extensions to ISO C99 from ISO C11. +// _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X. +// __STDC_WANT_LIB_EXT2__ +// Extensions to ISO C99 from TR 27431-2:2010. +// __STDC_WANT_IEC_60559_BFP_EXT__ +// Extensions to ISO C11 from TS 18661-1:2014. +// __STDC_WANT_IEC_60559_FUNCS_EXT__ +// Extensions to ISO C11 from TS 18661-4:2015. +// __STDC_WANT_IEC_60559_TYPES_EXT__ +// Extensions to ISO C11 from TS 18661-3:2015. +// __STDC_WANT_IEC_60559_EXT__ +// ISO C2X interfaces defined only in Annex F. +// +// _POSIX_SOURCE IEEE Std 1003.1. +// _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2; +// if >=199309L, add IEEE Std 1003.1b-1993; +// if >=199506L, add IEEE Std 1003.1c-1995; +// if >=200112L, all of IEEE 1003.1-2004 +// if >=200809L, all of IEEE 1003.1-2008 +// _XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if +// Single Unix conformance is wanted, to 600 for the +// sixth revision, to 700 for the seventh revision. +// _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions. +// _LARGEFILE_SOURCE Some more functions for correct standard I/O. +// _LARGEFILE64_SOURCE Additional functionality from LFS for large files. +// _FILE_OFFSET_BITS=N Select default filesystem interface. +// _ATFILE_SOURCE Additional *at interfaces. +// _DYNAMIC_STACK_SIZE_SOURCE Select correct (but non compile-time constant) +// MINSIGSTKSZ, SIGSTKSZ and PTHREAD_STACK_MIN. +// _GNU_SOURCE All of the above, plus GNU extensions. +// _DEFAULT_SOURCE The default set of features (taking precedence over +// __STRICT_ANSI__). +// +// _FORTIFY_SOURCE Add security hardening to many library functions. +// Set to 1, 2 or 3; 3 performs stricter checks than 2, which +// performs stricter checks than 1. +// +// _REENTRANT, _THREAD_SAFE +// Obsolete; equivalent to _POSIX_C_SOURCE=199506L. +// +// The `-ansi' switch to the GNU C compiler, and standards conformance +// options such as `-std=c99', define __STRICT_ANSI__. If none of +// these are defined, or if _DEFAULT_SOURCE is defined, the default is +// to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to +// 200809L, as well as enabling miscellaneous functions from BSD and +// SVID. If more than one of these are defined, they accumulate. For +// example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together +// give you ISO C, 1003.1, and 1003.2, but nothing else. +// +// These are defined by this file and are used by the +// header files to decide what to declare or define: +// +// __GLIBC_USE (F) Define things from feature set F. This is defined +// to 1 or 0; the subsequent macros are either defined +// or undefined, and those tests should be moved to +// __GLIBC_USE. +// __USE_ISOC11 Define ISO C11 things. +// __USE_ISOC99 Define ISO C99 things. +// __USE_ISOC95 Define ISO C90 AMD1 (C95) things. +// __USE_ISOCXX11 Define ISO C++11 things. +// __USE_POSIX Define IEEE Std 1003.1 things. +// __USE_POSIX2 Define IEEE Std 1003.2 things. +// __USE_POSIX199309 Define IEEE Std 1003.1, and .1b things. +// __USE_POSIX199506 Define IEEE Std 1003.1, .1b, .1c and .1i things. +// __USE_XOPEN Define XPG things. +// __USE_XOPEN_EXTENDED Define X/Open Unix things. +// __USE_UNIX98 Define Single Unix V2 things. +// __USE_XOPEN2K Define XPG6 things. +// __USE_XOPEN2KXSI Define XPG6 XSI things. +// __USE_XOPEN2K8 Define XPG7 things. +// __USE_XOPEN2K8XSI Define XPG7 XSI things. +// __USE_LARGEFILE Define correct standard I/O things. +// __USE_LARGEFILE64 Define LFS things with separate names. +// __USE_FILE_OFFSET64 Define 64bit interface as default. +// __USE_MISC Define things from 4.3BSD or System V Unix. +// __USE_ATFILE Define *at interfaces and AT_* constants for them. +// __USE_DYNAMIC_STACK_SIZE Define correct (but non compile-time constant) +// MINSIGSTKSZ, SIGSTKSZ and PTHREAD_STACK_MIN. +// __USE_GNU Define GNU extensions. +// __USE_FORTIFY_LEVEL Additional security measures used, according to level. +// +// The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are +// defined by this file unconditionally. `__GNU_LIBRARY__' is provided +// only for compatibility. All new code should use the other symbols +// to test for features. +// +// All macros listed above as possibly being defined by this file are +// explicitly undefined if they are not explicitly defined. +// Feature-test macros that are not defined by the user or compiler +// but are implied by the other feature-test macros defined (or by the +// lack of any definitions) are defined by the file. +// +// ISO C feature test macros depend on the definition of the macro +// when an affected header is included, not when the first system +// header is included, and so they are handled in +// , which does not have a multiple include +// guard. Feature test macros that can be handled from the first +// system header included are handled here. + +// Undefine everything, so we get a clean slate. + +// Suppress kernel-name space pollution unless user expressedly asks +// for it. + +// Convenience macro to test the version of gcc. +// Use like this: +// #if __GNUC_PREREQ (2,8) +// ... code requiring gcc 2.8 or later ... +// #endif +// Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was +// added in 2.0. + +// Similarly for clang. Features added to GCC after version 4.2 may +// or may not also be available in clang, and clang's definitions of +// __GNUC(_MINOR)__ are fixed at 4 and 2 respectively. Not all such +// features can be queried via __has_extension/__has_feature. + +// Whether to use feature set F. + +// _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for +// _DEFAULT_SOURCE. If _DEFAULT_SOURCE is present we do not +// issue a warning; the expectation is that the source is being +// transitioned to use the new macro. + +// If _GNU_SOURCE was defined by the user, turn on all the other features. + +// If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined, +// define _DEFAULT_SOURCE. + +// This is to enable the ISO C2X extension. + +// This is to enable the ISO C11 extension. + +// This is to enable the ISO C99 extension. + +// This is to enable the ISO C90 Amendment 1:1995 extension. + +// If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE +// is defined, use POSIX.1-2008 (or another version depending on +// _XOPEN_SOURCE). + +// Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be +// defined in all multithreaded code. GNU libc has not required this +// for many years. We now treat them as compatibility synonyms for +// _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with +// comprehensive support for multithreaded code. Using them never +// lowers the selected level of POSIX conformance, only raises it. + +// Features part to handle 64-bit time_t support. +// Copyright (C) 2021-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// We need to know the word size in order to check the time size. +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Bit size of the time_t type at glibc build time, general case. +// Copyright (C) 2018-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Size in bits of the 'time_t' type of the default ABI. + +// The function 'gets' existed in C89, but is impossible to use +// safely. It has been removed from ISO C11 and ISO C++14. Note: for +// compatibility with various implementations of , this test +// must consider only the value of __cplusplus when compiling C++. + +// GNU formerly extended the scanf functions with modified format +// specifiers %as, %aS, and %a[...] that allocate a buffer for the +// input using malloc. This extension conflicts with ISO C99, which +// defines %a as a standalone format specifier that reads a floating- +// point number; moreover, POSIX.1-2008 provides the same feature +// using the modifier letter 'm' instead (%ms, %mS, %m[...]). +// +// We now follow C99 unless GNU extensions are active and the compiler +// is specifically in C89 or C++98 mode (strict or not). For +// instance, with GCC, -std=gnu11 will have C99-compliant scanf with +// or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the +// old extension. + +// ISO C2X added support for a 0b or 0B prefix on binary constants as +// inputs to strtol-family functions (base 0 or 2). This macro is +// used to condition redirection in headers to allow that redirection +// to be disabled when building those functions, despite _GNU_SOURCE +// being defined. + +// Get definitions of __STDC_* predefined macros, if the compiler has +// not preincluded this header automatically. +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// This macro indicates that the installed library is the GNU C Library. +// For historic reasons the value now is 6 and this will stay from now +// on. The use of this variable is deprecated. Use __GLIBC__ and +// __GLIBC_MINOR__ now (see below) when you want to test for a specific +// GNU C library version and use the values in to get +// the sonames of the shared libraries. + +// Major and minor version number of the GNU C library package. Use +// these macros to test for features in specific releases. + +// This is here only because every header file already includes this one. +// Copyright (C) 1992-2023 Free Software Foundation, Inc. +// Copyright The GNU Toolchain Authors. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// We are almost always included from features.h. + +// The GNU libc does not support any K&R compilers or the traditional mode +// of ISO C compilers anymore. Check for some of the combinations not +// supported anymore. + +// Some user header file might have defined this before. + +// Compilers that lack __has_attribute may object to +// #if defined __has_attribute && __has_attribute (...) +// even though they do not need to evaluate the right-hand side of the &&. +// Similarly for __has_builtin, etc. + +// All functions, except those with callbacks or those that +// synchronize memory, are leaf functions. + +// GCC can always grok prototypes. For C++ programs we add throw() +// to help it optimize the function calls. But this only works with +// gcc 2.8.x and egcs. For gcc 3.4 and up we even mark C functions +// as non-throwing using a function attribute since programs can use +// the -fexceptions options for C code as well. + +// These two macros are not used in glibc anymore. They are kept here +// only because some other projects expect the macros to be defined. + +// For these things, GCC behaves the ANSI way normally, +// and the non-ANSI way under -traditional. + +// This is not a typedef so `const __ptr_t' does the right thing. + +// C++ needs to know that types and declarations are C, not C++. + +// Fortify support. + +// Use __builtin_dynamic_object_size at _FORTIFY_SOURCE=3 when available. + +// Support for flexible arrays. +// Headers that should use flexible arrays only if they're "real" +// (e.g. only if they won't affect sizeof()) should test +// #if __glibc_c99_flexarr_available. + +// __asm__ ("xyz") is used throughout the headers to rename functions +// at the assembly language level. This is wrapped by the __REDIRECT +// macro, in order to support compilers that can do this some other +// way. When compilers don't support asm-names at all, we have to do +// preprocessor tricks instead (which don't have exactly the right +// semantics, but it's the best we can do). +// +// Example: +// int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid); + +// +// #elif __SOME_OTHER_COMPILER__ +// +// # define __REDIRECT(name, proto, alias) name proto; _Pragma("let " #name " = " #alias) + +// GCC and clang have various useful declarations that can be made with +// the '__attribute__' syntax. All of the ways we use this do fine if +// they are omitted for compilers that don't understand it. + +// At some point during the gcc 2.96 development the `malloc' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// Tell the compiler which arguments to an allocation function +// indicate the size of the allocation. + +// Tell the compiler which argument to an allocation function +// indicates the alignment of the allocation. + +// At some point during the gcc 2.96 development the `pure' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// This declaration tells the compiler that the value is constant. + +// At some point during the gcc 3.1 development the `used' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// Since version 3.2, gcc allows marking deprecated functions. + +// Since version 4.5, gcc also allows one to specify the message printed +// when a deprecated function is used. clang claims to be gcc 4.2, but +// may also support this feature. + +// At some point during the gcc 2.8 development the `format_arg' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. +// If several `format_arg' attributes are given for the same function, in +// gcc-3.0 and older, all but the last one are ignored. In newer gccs, +// all designated arguments are considered. + +// At some point during the gcc 2.97 development the `strfmon' format +// attribute for functions was introduced. We don't want to use it +// unconditionally (although this would be possible) since it +// generates warnings. + +// The nonnull function attribute marks pointer parameters that +// must not be NULL. This has the name __nonnull in glibc, +// and __attribute_nonnull__ in files shared with Gnulib to avoid +// collision with a different __nonnull in DragonFlyBSD 5.9. + +// The returns_nonnull function attribute marks the return type of the function +// as always being non-null. + +// If fortification mode, we warn about unused results of certain +// function calls which can lead to problems. + +// Forces a function to be always inlined. +// The Linux kernel defines __always_inline in stddef.h (283d7573), and +// it conflicts with this definition. Therefore undefine it first to +// allow either header to be included first. + +// Associate error messages with the source location of the call site rather +// than with the source location inside the function. + +// GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99 +// inline semantics, unless -fgnu89-inline is used. Using __GNUC_STDC_INLINE__ +// or __GNUC_GNU_INLINE is not a good enough check for gcc because gcc versions +// older than 4.3 may define these macros and still not guarantee GNU inlining +// semantics. +// +// clang++ identifies itself as gcc-4.2, but has support for GNU inlining +// semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and +// __GNUC_GNU_INLINE__ macro definitions. + +// GCC 4.3 and above allow passing all anonymous arguments of an +// __extern_always_inline function to some other vararg function. + +// It is possible to compile containing GCC extensions even if GCC is +// run in pedantic mode if the uses are carefully marked using the +// `__extension__' keyword. But this is not generally available before +// version 2.8. + +// __restrict is known in EGCS 1.2 and above, and in clang. +// It works also in C++ mode (outside of arrays), but only when spelled +// as '__restrict', not 'restrict'. + +// ISO C99 also allows to declare arrays as non-overlapping. The syntax is +// array_name[restrict] +// GCC 3.1 and clang support this. +// This syntax is not usable in C++ mode. + +// Describes a char array whose address can safely be passed as the first +// argument to strncpy and strncat, as the char array is not necessarily +// a NUL-terminated string. + +// Undefine (also defined in libc-symbols.h). +// Copies attributes from the declaration or type referenced by +// the argument. + +// Gnulib avoids including these, as they don't work on non-glibc or +// older glibc platforms. +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Properties of long double type. ldbl-128 version. +// Copyright (C) 2016-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// long double is distinct from double, so there is nothing to +// define here. + +// __glibc_macro_warning (MESSAGE) issues warning MESSAGE. This is +// intended for use in preprocessor macros. +// +// Note: MESSAGE must be a _single_ string; concatenation of string +// literals is not supported. + +// Generic selection (ISO C11) is a C-only feature, available in GCC +// since version 4.9. Previous versions do not provide generic +// selection, even though they might set __STDC_VERSION__ to 201112L, +// when in -std=c11 mode. Thus, we must check for !defined __GNUC__ +// when testing __STDC_VERSION__ for generic selection support. +// On the other hand, Clang also defines __GNUC__, so a clang-specific +// check is required to enable the use of generic selection. + +// Designates a 1-based positional argument ref-index of pointer type +// that can be used to access size-index elements of the pointed-to +// array according to access mode, or at least one element when +// size-index is not provided: +// access (access-mode, [, ]) +// For _FORTIFY_SOURCE == 3 we use __builtin_dynamic_object_size, which may +// use the access attribute to get object sizes from function definition +// arguments, so we can't use them on functions we fortify. Drop the object +// size hints for such functions. + +// Designates dealloc as a function to call to deallocate objects +// allocated by the declared function. + +// Specify that a function such as setjmp or vfork may return +// twice. + +// If we don't have __REDIRECT, prototypes will be missing if +// __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64]. + +// Decide whether we can define 'extern inline' functions in headers. + +// This is here only because every header file already includes this one. +// Get the definitions of all the appropriate `__stub_FUNCTION' symbols. +// contains `#define __stub_FUNCTION' when FUNCTION is a stub +// that will always return failure (and set errno to ENOSYS). +// This file is automatically generated. +// This file selects the right generated file of `__stub_FUNCTION' macros +// based on the architecture being compiled for. + +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// This file is automatically generated. +// It defines a symbol `__stub_FUNCTION' for each function +// in the C library which is a stub, meaning it will fail +// every time called, usually setting errno to ENOSYS. + +// These may be used to determine what facilities are present at compile time. +// Their values can be obtained at run time from `sysconf'. + +// POSIX Standard approved as ISO/IEC 9945-1 as of September 2008. + +// These are not #ifdef __USE_POSIX2 because they are +// in the theoretically application-owned namespace. + +// The utilities on GNU systems also correspond to this version. + +// The utilities on GNU systems also correspond to this version. + +// This symbol was required until the 2001 edition of POSIX. + +// If defined, the implementation supports the +// C Language Bindings Option. + +// If defined, the implementation supports the +// C Language Development Utilities Option. + +// If defined, the implementation supports the +// Software Development Utilities Option. + +// If defined, the implementation supports the +// creation of locales with the localedef utility. + +// X/Open version number to which the library conforms. It is selectable. + +// Commands and utilities from XPG4 are available. + +// We are compatible with the old published standards as well. + +// The X/Open Unix extensions are available. + +// The enhanced internationalization capabilities according to XPG4.2 +// are present. + +// The legacy interfaces are also available. + +// Get values of POSIX options: +// +// If these symbols are defined, the corresponding features are +// always available. If not, they may be available sometimes. +// The current values can be obtained with `sysconf'. +// +// _POSIX_JOB_CONTROL Job control is supported. +// _POSIX_SAVED_IDS Processes have a saved set-user-ID +// and a saved set-group-ID. +// _POSIX_REALTIME_SIGNALS Real-time, queued signals are supported. +// _POSIX_PRIORITY_SCHEDULING Priority scheduling is supported. +// _POSIX_TIMERS POSIX.4 clocks and timers are supported. +// _POSIX_ASYNCHRONOUS_IO Asynchronous I/O is supported. +// _POSIX_PRIORITIZED_IO Prioritized asynchronous I/O is supported. +// _POSIX_SYNCHRONIZED_IO Synchronizing file data is supported. +// _POSIX_FSYNC The fsync function is present. +// _POSIX_MAPPED_FILES Mapping of files to memory is supported. +// _POSIX_MEMLOCK Locking of all memory is supported. +// _POSIX_MEMLOCK_RANGE Locking of ranges of memory is supported. +// _POSIX_MEMORY_PROTECTION Setting of memory protections is supported. +// _POSIX_MESSAGE_PASSING POSIX.4 message queues are supported. +// _POSIX_SEMAPHORES POSIX.4 counting semaphores are supported. +// _POSIX_SHARED_MEMORY_OBJECTS POSIX.4 shared memory objects are supported. +// _POSIX_THREADS POSIX.1c pthreads are supported. +// _POSIX_THREAD_ATTR_STACKADDR Thread stack address attribute option supported. +// _POSIX_THREAD_ATTR_STACKSIZE Thread stack size attribute option supported. +// _POSIX_THREAD_SAFE_FUNCTIONS Thread-safe functions are supported. +// _POSIX_THREAD_PRIORITY_SCHEDULING +// POSIX.1c thread execution scheduling supported. +// _POSIX_THREAD_PRIO_INHERIT Thread priority inheritance option supported. +// _POSIX_THREAD_PRIO_PROTECT Thread priority protection option supported. +// _POSIX_THREAD_PROCESS_SHARED Process-shared synchronization supported. +// _POSIX_PII Protocol-independent interfaces are supported. +// _POSIX_PII_XTI XTI protocol-indep. interfaces are supported. +// _POSIX_PII_SOCKET Socket protocol-indep. interfaces are supported. +// _POSIX_PII_INTERNET Internet family of protocols supported. +// _POSIX_PII_INTERNET_STREAM Connection-mode Internet protocol supported. +// _POSIX_PII_INTERNET_DGRAM Connectionless Internet protocol supported. +// _POSIX_PII_OSI ISO/OSI family of protocols supported. +// _POSIX_PII_OSI_COTS Connection-mode ISO/OSI service supported. +// _POSIX_PII_OSI_CLTS Connectionless ISO/OSI service supported. +// _POSIX_POLL Implementation supports `poll' function. +// _POSIX_SELECT Implementation supports `select' and `pselect'. +// +// _XOPEN_REALTIME X/Open realtime support is available. +// _XOPEN_REALTIME_THREADS X/Open realtime thread support is available. +// _XOPEN_SHM Shared memory interface according to XPG4.2. +// +// _XBS5_ILP32_OFF32 Implementation provides environment with 32-bit +// int, long, pointer, and off_t types. +// _XBS5_ILP32_OFFBIG Implementation provides environment with 32-bit +// int, long, and pointer and off_t with at least +// 64 bits. +// _XBS5_LP64_OFF64 Implementation provides environment with 32-bit +// int, and 64-bit long, pointer, and off_t types. +// _XBS5_LPBIG_OFFBIG Implementation provides environment with at +// least 32 bits int and long, pointer, and off_t +// with at least 64 bits. +// +// If any of these symbols is defined as -1, the corresponding option is not +// true for any file. If any is defined as other than -1, the corresponding +// option is true for all files. If a symbol is not defined at all, the value +// for a specific file can be obtained from `pathconf' and `fpathconf'. +// +// _POSIX_CHOWN_RESTRICTED Only the super user can use `chown' to change +// the owner of a file. `chown' can only be used +// to change the group ID of a file to a group of +// which the calling process is a member. +// _POSIX_NO_TRUNC Pathname components longer than +// NAME_MAX generate an error. +// _POSIX_VDISABLE If defined, if the value of an element of the +// `c_cc' member of `struct termios' is +// _POSIX_VDISABLE, no character will have the +// effect associated with that element. +// _POSIX_SYNC_IO Synchronous I/O may be performed. +// _POSIX_ASYNC_IO Asynchronous I/O may be performed. +// _POSIX_PRIO_IO Prioritized Asynchronous I/O may be performed. +// +// Support for the Large File Support interface is not generally available. +// If it is available the following constants are defined to one. +// _LFS64_LARGEFILE Low-level I/O supports large files. +// _LFS64_STDIO Standard I/O supports large files. +// + +// Define POSIX options for Linux. +// Copyright (C) 1996-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public License as +// published by the Free Software Foundation; either version 2.1 of the +// License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; see the file COPYING.LIB. If +// not, see . + +// Job control is supported. + +// Processes have a saved set-user-ID and a saved set-group-ID. + +// Priority scheduling is not supported with the correct semantics, +// but GNU/Linux applications expect that the corresponding interfaces +// are available, even though the semantics do not meet the POSIX +// requirements. See glibc bug 14829. + +// Synchronizing file data is supported. + +// The fsync function is present. + +// Mapping of files to memory is supported. + +// Locking of all memory is supported. + +// Locking of ranges of memory is supported. + +// Setting of memory protections is supported. + +// Some filesystems allow all users to change file ownership. + +// `c_cc' member of 'struct termios' structure can be disabled by +// using the value _POSIX_VDISABLE. + +// Filenames are not silently truncated. + +// X/Open realtime support is available. + +// X/Open thread realtime support is available. + +// XPG4.2 shared memory is supported. + +// Tell we have POSIX threads. + +// We have the reentrant functions described in POSIX. + +// We provide priority scheduling for threads. + +// We support user-defined stack sizes. + +// We support user-defined stacks. + +// We support priority inheritance. + +// We support priority protection, though only for non-robust +// mutexes. + +// We support priority inheritance for robust mutexes. + +// We do not support priority protection for robust mutexes. + +// We support POSIX.1b semaphores. + +// Real-time signals are supported. + +// We support asynchronous I/O. +// Alternative name for Unix98. +// Support for prioritization is also available. + +// The LFS support in asynchronous I/O is also available. + +// The rest of the LFS is also available. + +// POSIX shared memory objects are implemented. + +// CPU-time clocks support needs to be checked at runtime. + +// Clock support in threads must be also checked at runtime. + +// GNU libc provides regular expression handling. + +// Reader/Writer locks are available. + +// We have a POSIX shell. + +// We support the Timeouts option. + +// We support spinlocks. + +// The `spawn' function family is supported. + +// We have POSIX timers. + +// The barrier functions are available. + +// POSIX message queues are available. + +// Thread process-shared synchronization is supported. + +// The monotonic clock might be available. + +// The clock selection interfaces are available. + +// Advisory information interfaces are available. + +// IPv6 support is available. + +// Raw socket support is available. + +// We have at least one terminal. + +// Neither process nor thread sporadic server interfaces is available. + +// trace.h is not available. + +// Typed memory objects are not available. + +// Get the environment definitions from Unix98. +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// This header should define the following symbols under the described +// situations. A value `1' means that the model is always supported, +// `-1' means it is never supported. Undefined means it cannot be +// statically decided. +// +// _POSIX_V7_ILP32_OFF32 32bit int, long, pointers, and off_t type +// _POSIX_V7_ILP32_OFFBIG 32bit int, long, and pointers and larger off_t type +// +// _POSIX_V7_LP64_OFF32 64bit long and pointers and 32bit off_t type +// _POSIX_V7_LPBIG_OFFBIG 64bit long and pointers and large off_t type +// +// The macros _POSIX_V6_ILP32_OFF32, _POSIX_V6_ILP32_OFFBIG, +// _POSIX_V6_LP64_OFF32, _POSIX_V6_LPBIG_OFFBIG, _XBS5_ILP32_OFF32, +// _XBS5_ILP32_OFFBIG, _XBS5_LP64_OFF32, and _XBS5_LPBIG_OFFBIG were +// used in previous versions of the Unix standard and are available +// only for compatibility. + +// We can never provide environments with 32-bit wide pointers. +// We also have no use (for now) for an environment with bigger pointers +// and offsets. + +// By default we have 64-bit wide `long int', pointers and `off_t'. + +// Standard file descriptors. + +// All functions that are not declared anywhere else. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Bit size of the time_t type at glibc build time, general case. +// Copyright (C) 2018-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Size in bits of the 'time_t' type of the default ABI. + +// Convenience types. +type X__u_char = uint8 /* types.h:31:23 */ +type X__u_short = uint16 /* types.h:32:28 */ +type X__u_int = uint32 /* types.h:33:22 */ +type X__u_long = uint64 /* types.h:34:27 */ + +// Fixed-size types, underlying types depend on word size and compiler. +type X__int8_t = int8 /* types.h:37:21 */ +type X__uint8_t = uint8 /* types.h:38:23 */ +type X__int16_t = int16 /* types.h:39:26 */ +type X__uint16_t = uint16 /* types.h:40:28 */ +type X__int32_t = int32 /* types.h:41:20 */ +type X__uint32_t = uint32 /* types.h:42:22 */ +type X__int64_t = int64 /* types.h:44:25 */ +type X__uint64_t = uint64 /* types.h:45:27 */ + +// Smallest types with at least a given width. +type X__int_least8_t = int8 /* types.h:52:18 */ +type X__uint_least8_t = uint8 /* types.h:53:19 */ +type X__int_least16_t = int16 /* types.h:54:19 */ +type X__uint_least16_t = uint16 /* types.h:55:20 */ +type X__int_least32_t = int32 /* types.h:56:19 */ +type X__uint_least32_t = uint32 /* types.h:57:20 */ +type X__int_least64_t = int64 /* types.h:58:19 */ +type X__uint_least64_t = uint64 /* types.h:59:20 */ + +// quad_t is also 64 bits. +type X__quad_t = int64 /* types.h:63:18 */ +type X__u_quad_t = uint64 /* types.h:64:27 */ + +// Largest integral types. +type X__intmax_t = int64 /* types.h:72:18 */ +type X__uintmax_t = uint64 /* types.h:73:27 */ + +// The machine-dependent file defines __*_T_TYPE +// macros for each of the OS types we define below. The definitions +// of those macros must use the following macros for underlying types. +// We define __S_TYPE and __U_TYPE for the signed and unsigned +// variants of each of the following integer types on this machine. +// +// 16 -- "natural" 16-bit type (always short) +// 32 -- "natural" 32-bit type (always int) +// 64 -- "natural" 64-bit type (long or long long) +// LONG32 -- 32-bit type, traditionally long +// QUAD -- 64-bit type, traditionally long long +// WORD -- natural type of __WORDSIZE bits (int or long) +// LONGWORD -- type of __WORDSIZE bits, traditionally long +// +// We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the +// conventional uses of `long' or `long long' type modifiers match the +// types we define, even when a less-adorned type would be the same size. +// This matters for (somewhat) portably writing printf/scanf formats for +// these types, where using the appropriate l or ll format modifiers can +// make the typedefs and the formats match up across all GNU platforms. If +// we used `long' when it's 64 bits where `long long' is expected, then the +// compiler would warn about the formats not matching the argument types, +// and the programmer changing them to shut up the compiler would break the +// program's portability. +// +// Here we assume what is presently the case in all the GCC configurations +// we support: long long is always 64 bits, long is always word/address size, +// and int is always 32 bits. + +// No need to mark the typedef with __extension__. +// bits/typesizes.h -- underlying types for *_t. For the generic Linux ABI. +// Copyright (C) 2011-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library. If not, see +// . + +// See for the meaning of these macros. This file exists so +// that need not vary across different GNU platforms. + +// Tell the libc code that off_t and off64_t are actually the same type +// for all ABI purposes, even if possibly expressed as different base types +// for C type-checking purposes. + +// Same for ino_t and ino64_t. + +// And for __rlim_t and __rlim64_t. + +// And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t. + +// And for getitimer, setitimer and rusage + +// Number of descriptors that can fit in an `fd_set'. + +// bits/time64.h -- underlying types for __time64_t. Generic version. +// Copyright (C) 2018-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Define __TIME64_T_TYPE so that it is always a 64-bit type. + +// If we already have 64-bit time type then use it. + +type X__dev_t = uint64 /* types.h:145:25 */ // Type of device numbers. +type X__uid_t = uint32 /* types.h:146:25 */ // Type of user identifications. +type X__gid_t = uint32 /* types.h:147:25 */ // Type of group identifications. +type X__ino_t = uint64 /* types.h:148:25 */ // Type of file serial numbers. +type X__ino64_t = uint64 /* types.h:149:27 */ // Type of file serial numbers (LFS). +type X__mode_t = uint32 /* types.h:150:26 */ // Type of file attribute bitmasks. +type X__nlink_t = uint32 /* types.h:151:27 */ // Type of file link counts. +type X__off_t = int64 /* types.h:152:25 */ // Type of file sizes and offsets. +type X__off64_t = int64 /* types.h:153:27 */ // Type of file sizes and offsets (LFS). +type X__pid_t = int32 /* types.h:154:25 */ // Type of process identifications. +type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs. +type X__clock_t = int64 /* types.h:156:27 */ // Type of CPU usage counts. +type X__rlim_t = uint64 /* types.h:157:26 */ // Type for resource measurement. +type X__rlim64_t = uint64 /* types.h:158:28 */ // Type for resource measurement (LFS). +type X__id_t = uint32 /* types.h:159:24 */ // General type for IDs. +type X__time_t = int64 /* types.h:160:26 */ // Seconds since the Epoch. +type X__useconds_t = uint32 /* types.h:161:30 */ // Count of microseconds. +type X__suseconds_t = int64 /* types.h:162:31 */ // Signed count of microseconds. +type X__suseconds64_t = int64 /* types.h:163:33 */ + +type X__daddr_t = int32 /* types.h:165:27 */ // The type of a disk address. +type X__key_t = int32 /* types.h:166:25 */ // Type of an IPC key. + +// Clock ID used in clock and timer functions. +type X__clockid_t = int32 /* types.h:169:29 */ + +// Timer ID returned by `timer_create'. +type X__timer_t = uintptr /* types.h:172:12 */ + +// Type to represent block size. +type X__blksize_t = int32 /* types.h:175:29 */ + +// Types from the Large File Support interface. + +// Type to count number of disk blocks. +type X__blkcnt_t = int64 /* types.h:180:28 */ +type X__blkcnt64_t = int64 /* types.h:181:30 */ + +// Type to count file system blocks. +type X__fsblkcnt_t = uint64 /* types.h:184:30 */ +type X__fsblkcnt64_t = uint64 /* types.h:185:32 */ + +// Type to count file system nodes. +type X__fsfilcnt_t = uint64 /* types.h:188:30 */ +type X__fsfilcnt64_t = uint64 /* types.h:189:32 */ + +// Type of miscellaneous file system fields. +type X__fsword_t = int64 /* types.h:192:28 */ + +type X__ssize_t = int64 /* types.h:194:27 */ // Type of a byte count, or error. + +// Signed long type used in system calls. +type X__syscall_slong_t = int64 /* types.h:197:33 */ +// Unsigned long type used in system calls. +type X__syscall_ulong_t = uint64 /* types.h:199:33 */ + +// These few don't really vary by system, they always correspond +// +// to one of the other defined types. +type X__loff_t = int64 /* types.h:203:19 */ // Type of file sizes and offsets (LFS). +type X__caddr_t = uintptr /* types.h:204:14 */ + +// Duplicates info from stdint.h but this is used in unistd.h. +type X__intptr_t = int64 /* types.h:207:25 */ + +// Duplicate info from sys/socket.h. +type X__socklen_t = uint32 /* types.h:210:23 */ + +// C99: An integer type that can be accessed as an atomic entity, +// +// even in the presence of asynchronous interrupts. +// It is not currently necessary for this to be machine-specific. +type X__sig_atomic_t = int32 /* types.h:215:13 */ + +// Seconds since the Epoch, visible to user code when time_t is too +// narrow only for consistency with the old way of widening too-narrow +// types. User code should never use __time64_t. + +type Ssize_t = int64 /* unistd.h:220:19 */ + +// Wide character type. +// Locale-writers should change this as necessary to +// be big enough to hold unique values not between 0 and 127, +// and not (wchar_t) -1, for each defined multibyte character. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// A null pointer constant. + +// The Single Unix specification says that some more types are +// +// available here. +type Gid_t = uint32 /* unistd.h:232:17 */ + +type Uid_t = uint32 /* unistd.h:237:17 */ + +type Off_t = int64 /* unistd.h:245:19 */ + +type Useconds_t = uint32 /* unistd.h:255:22 */ + +type Pid_t = int32 /* unistd.h:260:17 */ + +type Intptr_t = int64 /* unistd.h:267:20 */ + +type Socklen_t = uint32 /* unistd.h:274:21 */ + +// Define some macros helping to catch buffer overflows. + +// System-specific extensions. +// System-specific extensions of , Linux version. +// Copyright (C) 2019-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +var _ int8 /* gen.c:2:13: */ diff --git a/vendor/modernc.org/libc/unistd/unistd_linux_mips64le.go b/vendor/modernc.org/libc/unistd/unistd_linux_mips64le.go new file mode 100644 index 000000000..7a83d48f3 --- /dev/null +++ b/vendor/modernc.org/libc/unistd/unistd_linux_mips64le.go @@ -0,0 +1,1592 @@ +// Code generated by 'ccgo unistd/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o unistd/unistd_linux_amd64.go -pkgname unistd', DO NOT EDIT. + +package unistd + +import ( + "math" + "reflect" + "sync/atomic" + "unsafe" +) + +var _ = math.Pi +var _ reflect.Kind +var _ atomic.Value +var _ unsafe.Pointer + +const ( + F_LOCK = 1 // unistd.h:1074:1: + F_OK = 0 // unistd.h:284:1: + F_TEST = 3 // unistd.h:1076:1: + F_TLOCK = 2 // unistd.h:1075:1: + F_ULOCK = 0 // unistd.h:1073:1: + L_INCR = 1 // unistd.h:323:1: + L_SET = 0 // unistd.h:322:1: + L_XTND = 2 // unistd.h:324:1: + R_OK = 4 // unistd.h:281:1: + SEEK_CUR = 1 // unistd.h:312:1: + SEEK_END = 2 // unistd.h:313:1: + SEEK_SET = 0 // unistd.h:311:1: + STDERR_FILENO = 2 // unistd.h:212:1: + STDIN_FILENO = 0 // unistd.h:210:1: + STDOUT_FILENO = 1 // unistd.h:211:1: + W_OK = 2 // unistd.h:282:1: + X_OK = 1 // unistd.h:283:1: + X_ATFILE_SOURCE = 1 // features.h:342:1: + X_BITS_POSIX_OPT_H = 1 // posix_opt.h:20:1: + X_BITS_TIME64_H = 1 // time64.h:24:1: + X_BITS_TYPESIZES_H = 1 // typesizes.h:24:1: + X_BITS_TYPES_H = 1 // types.h:24:1: + X_BSD_SIZE_T_ = 0 // stddef.h:189:1: + X_BSD_SIZE_T_DEFINED_ = 0 // stddef.h:192:1: + X_DEFAULT_SOURCE = 1 // features.h:227:1: + X_FEATURES_H = 1 // features.h:19:1: + X_FILE_OFFSET_BITS = 64 // :25:1: + X_GCC_SIZE_T = 0 // stddef.h:195:1: + X_GETOPT_CORE_H = 1 // getopt_core.h:21:1: + X_GETOPT_POSIX_H = 1 // getopt_posix.h:21:1: + X_LFS64_ASYNCHRONOUS_IO = 1 // posix_opt.h:117:1: + X_LFS64_LARGEFILE = 1 // posix_opt.h:121:1: + X_LFS64_STDIO = 1 // posix_opt.h:122:1: + X_LFS_ASYNCHRONOUS_IO = 1 // posix_opt.h:112:1: + X_LFS_LARGEFILE = 1 // posix_opt.h:120:1: + X_LP64 = 1 // :284:1: + X_POSIX2_CHAR_TERM = 200809 // posix_opt.h:179:1: + X_POSIX2_C_BIND = 200809 // unistd.h:74:1: + X_POSIX2_C_DEV = 200809 // unistd.h:78:1: + X_POSIX2_C_VERSION = 200809 // unistd.h:70:1: + X_POSIX2_LOCALEDEF = 200809 // unistd.h:86:1: + X_POSIX2_SW_DEV = 200809 // unistd.h:82:1: + X_POSIX2_VERSION = 200809 // unistd.h:67:1: + X_POSIX_ADVISORY_INFO = 200809 // posix_opt.h:170:1: + X_POSIX_ASYNCHRONOUS_IO = 200809 // posix_opt.h:109:1: + X_POSIX_ASYNC_IO = 1 // posix_opt.h:110:1: + X_POSIX_BARRIERS = 200809 // posix_opt.h:155:1: + X_POSIX_CHOWN_RESTRICTED = 0 // posix_opt.h:53:1: + X_POSIX_CLOCK_SELECTION = 200809 // posix_opt.h:167:1: + X_POSIX_CPUTIME = 0 // posix_opt.h:128:1: + X_POSIX_C_SOURCE = 200809 // features.h:281:1: + X_POSIX_FSYNC = 200809 // posix_opt.h:38:1: + X_POSIX_IPV6 = 200809 // posix_opt.h:173:1: + X_POSIX_JOB_CONTROL = 1 // posix_opt.h:23:1: + X_POSIX_MAPPED_FILES = 200809 // posix_opt.h:41:1: + X_POSIX_MEMLOCK = 200809 // posix_opt.h:44:1: + X_POSIX_MEMLOCK_RANGE = 200809 // posix_opt.h:47:1: + X_POSIX_MEMORY_PROTECTION = 200809 // posix_opt.h:50:1: + X_POSIX_MESSAGE_PASSING = 200809 // posix_opt.h:158:1: + X_POSIX_MONOTONIC_CLOCK = 0 // posix_opt.h:164:1: + X_POSIX_NO_TRUNC = 1 // posix_opt.h:60:1: + X_POSIX_PRIORITIZED_IO = 200809 // posix_opt.h:114:1: + X_POSIX_PRIORITY_SCHEDULING = 200809 // posix_opt.h:32:1: + X_POSIX_RAW_SOCKETS = 200809 // posix_opt.h:176:1: + X_POSIX_READER_WRITER_LOCKS = 200809 // posix_opt.h:137:1: + X_POSIX_REALTIME_SIGNALS = 200809 // posix_opt.h:106:1: + X_POSIX_REENTRANT_FUNCTIONS = 1 // posix_opt.h:75:1: + X_POSIX_REGEXP = 1 // posix_opt.h:134:1: + X_POSIX_SAVED_IDS = 1 // posix_opt.h:26:1: + X_POSIX_SEMAPHORES = 200809 // posix_opt.h:103:1: + X_POSIX_SHARED_MEMORY_OBJECTS = 200809 // posix_opt.h:125:1: + X_POSIX_SHELL = 1 // posix_opt.h:140:1: + X_POSIX_SOURCE = 1 // features.h:279:1: + X_POSIX_SPAWN = 200809 // posix_opt.h:149:1: + X_POSIX_SPIN_LOCKS = 200809 // posix_opt.h:146:1: + X_POSIX_SPORADIC_SERVER = -1 // posix_opt.h:182:1: + X_POSIX_SYNCHRONIZED_IO = 200809 // posix_opt.h:35:1: + X_POSIX_THREADS = 200809 // posix_opt.h:72:1: + X_POSIX_THREAD_ATTR_STACKADDR = 200809 // posix_opt.h:85:1: + X_POSIX_THREAD_ATTR_STACKSIZE = 200809 // posix_opt.h:82:1: + X_POSIX_THREAD_CPUTIME = 0 // posix_opt.h:131:1: + X_POSIX_THREAD_PRIORITY_SCHEDULING = 200809 // posix_opt.h:79:1: + X_POSIX_THREAD_PRIO_INHERIT = 200809 // posix_opt.h:88:1: + X_POSIX_THREAD_PRIO_PROTECT = 200809 // posix_opt.h:92:1: + X_POSIX_THREAD_PROCESS_SHARED = 200809 // posix_opt.h:161:1: + X_POSIX_THREAD_ROBUST_PRIO_INHERIT = 200809 // posix_opt.h:96:1: + X_POSIX_THREAD_ROBUST_PRIO_PROTECT = -1 // posix_opt.h:99:1: + X_POSIX_THREAD_SAFE_FUNCTIONS = 200809 // posix_opt.h:76:1: + X_POSIX_THREAD_SPORADIC_SERVER = -1 // posix_opt.h:183:1: + X_POSIX_TIMEOUTS = 200809 // posix_opt.h:143:1: + X_POSIX_TIMERS = 200809 // posix_opt.h:152:1: + X_POSIX_TRACE = -1 // posix_opt.h:186:1: + X_POSIX_TRACE_EVENT_FILTER = -1 // posix_opt.h:187:1: + X_POSIX_TRACE_INHERIT = -1 // posix_opt.h:188:1: + X_POSIX_TRACE_LOG = -1 // posix_opt.h:189:1: + X_POSIX_TYPED_MEMORY_OBJECTS = -1 // posix_opt.h:192:1: + X_POSIX_V6_LP64_OFF64 = 1 // environments.h:62:1: + X_POSIX_V6_LPBIG_OFFBIG = -1 // environments.h:57:1: + X_POSIX_V7_LP64_OFF64 = 1 // environments.h:61:1: + X_POSIX_V7_LPBIG_OFFBIG = -1 // environments.h:56:1: + X_POSIX_VDISABLE = 0 // posix_opt.h:57:1: + X_POSIX_VERSION = 200809 // unistd.h:34:1: + X_SIZET_ = 0 // stddef.h:196:1: + X_SIZE_T = 0 // stddef.h:183:1: + X_SIZE_T_ = 0 // stddef.h:188:1: + X_SIZE_T_DECLARED = 0 // stddef.h:193:1: + X_SIZE_T_DEFINED = 0 // stddef.h:191:1: + X_SIZE_T_DEFINED_ = 0 // stddef.h:190:1: + X_STDC_PREDEF_H = 1 // :162:1: + X_SYS_CDEFS_H = 1 // cdefs.h:19:1: + X_SYS_SIZE_T_H = 0 // stddef.h:184:1: + X_T_SIZE = 0 // stddef.h:186:1: + X_T_SIZE_ = 0 // stddef.h:185:1: + X_UNISTD_H = 1 // unistd.h:23:1: + X_XBS5_LP64_OFF64 = 1 // environments.h:63:1: + X_XBS5_LPBIG_OFFBIG = -1 // environments.h:58:1: + X_XOPEN_ENH_I18N = 1 // unistd.h:112:1: + X_XOPEN_LEGACY = 1 // unistd.h:115:1: + X_XOPEN_REALTIME = 1 // posix_opt.h:63:1: + X_XOPEN_REALTIME_THREADS = 1 // posix_opt.h:66:1: + X_XOPEN_SHM = 1 // posix_opt.h:69:1: + X_XOPEN_UNIX = 1 // unistd.h:108:1: + X_XOPEN_VERSION = 700 // unistd.h:90:1: + X_XOPEN_XCU_VERSION = 4 // unistd.h:100:1: + X_XOPEN_XPG2 = 1 // unistd.h:103:1: + X_XOPEN_XPG3 = 1 // unistd.h:104:1: + X_XOPEN_XPG4 = 1 // unistd.h:105:1: + Linux = 1 // :231:1: + Unix = 1 // :177:1: +) + +// Get the `_PC_*' symbols for the NAME argument to `pathconf' and `fpathconf'; +// the `_SC_*' symbols for the NAME argument to `sysconf'; +// and the `_CS_*' symbols for the NAME argument to `confstr'. +// `sysconf', `pathconf', and `confstr' NAME values. Generic version. +// Copyright (C) 1993-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Values for the NAME argument to `pathconf' and `fpathconf'. +const ( /* confname.h:24:1: */ + X_PC_LINK_MAX = 0 + X_PC_MAX_CANON = 1 + X_PC_MAX_INPUT = 2 + X_PC_NAME_MAX = 3 + X_PC_PATH_MAX = 4 + X_PC_PIPE_BUF = 5 + X_PC_CHOWN_RESTRICTED = 6 + X_PC_NO_TRUNC = 7 + X_PC_VDISABLE = 8 + X_PC_SYNC_IO = 9 + X_PC_ASYNC_IO = 10 + X_PC_PRIO_IO = 11 + X_PC_SOCK_MAXBUF = 12 + X_PC_FILESIZEBITS = 13 + X_PC_REC_INCR_XFER_SIZE = 14 + X_PC_REC_MAX_XFER_SIZE = 15 + X_PC_REC_MIN_XFER_SIZE = 16 + X_PC_REC_XFER_ALIGN = 17 + X_PC_ALLOC_SIZE_MIN = 18 + X_PC_SYMLINK_MAX = 19 + X_PC_2_SYMLINKS = 20 +) + +// Values for the NAME argument to `confstr'. +const ( /* confname.h:533:1: */ + X_CS_PATH = 0 // The default search path. + + X_CS_V6_WIDTH_RESTRICTED_ENVS = 1 + + X_CS_GNU_LIBC_VERSION = 2 + X_CS_GNU_LIBPTHREAD_VERSION = 3 + + X_CS_V5_WIDTH_RESTRICTED_ENVS = 4 + + X_CS_V7_WIDTH_RESTRICTED_ENVS = 5 + + X_CS_LFS_CFLAGS = 1000 + X_CS_LFS_LDFLAGS = 1001 + X_CS_LFS_LIBS = 1002 + X_CS_LFS_LINTFLAGS = 1003 + X_CS_LFS64_CFLAGS = 1004 + X_CS_LFS64_LDFLAGS = 1005 + X_CS_LFS64_LIBS = 1006 + X_CS_LFS64_LINTFLAGS = 1007 + + X_CS_XBS5_ILP32_OFF32_CFLAGS = 1100 + X_CS_XBS5_ILP32_OFF32_LDFLAGS = 1101 + X_CS_XBS5_ILP32_OFF32_LIBS = 1102 + X_CS_XBS5_ILP32_OFF32_LINTFLAGS = 1103 + X_CS_XBS5_ILP32_OFFBIG_CFLAGS = 1104 + X_CS_XBS5_ILP32_OFFBIG_LDFLAGS = 1105 + X_CS_XBS5_ILP32_OFFBIG_LIBS = 1106 + X_CS_XBS5_ILP32_OFFBIG_LINTFLAGS = 1107 + X_CS_XBS5_LP64_OFF64_CFLAGS = 1108 + X_CS_XBS5_LP64_OFF64_LDFLAGS = 1109 + X_CS_XBS5_LP64_OFF64_LIBS = 1110 + X_CS_XBS5_LP64_OFF64_LINTFLAGS = 1111 + X_CS_XBS5_LPBIG_OFFBIG_CFLAGS = 1112 + X_CS_XBS5_LPBIG_OFFBIG_LDFLAGS = 1113 + X_CS_XBS5_LPBIG_OFFBIG_LIBS = 1114 + X_CS_XBS5_LPBIG_OFFBIG_LINTFLAGS = 1115 + + X_CS_POSIX_V6_ILP32_OFF32_CFLAGS = 1116 + X_CS_POSIX_V6_ILP32_OFF32_LDFLAGS = 1117 + X_CS_POSIX_V6_ILP32_OFF32_LIBS = 1118 + X_CS_POSIX_V6_ILP32_OFF32_LINTFLAGS = 1119 + X_CS_POSIX_V6_ILP32_OFFBIG_CFLAGS = 1120 + X_CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS = 1121 + X_CS_POSIX_V6_ILP32_OFFBIG_LIBS = 1122 + X_CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS = 1123 + X_CS_POSIX_V6_LP64_OFF64_CFLAGS = 1124 + X_CS_POSIX_V6_LP64_OFF64_LDFLAGS = 1125 + X_CS_POSIX_V6_LP64_OFF64_LIBS = 1126 + X_CS_POSIX_V6_LP64_OFF64_LINTFLAGS = 1127 + X_CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS = 1128 + X_CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS = 1129 + X_CS_POSIX_V6_LPBIG_OFFBIG_LIBS = 1130 + X_CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS = 1131 + + X_CS_POSIX_V7_ILP32_OFF32_CFLAGS = 1132 + X_CS_POSIX_V7_ILP32_OFF32_LDFLAGS = 1133 + X_CS_POSIX_V7_ILP32_OFF32_LIBS = 1134 + X_CS_POSIX_V7_ILP32_OFF32_LINTFLAGS = 1135 + X_CS_POSIX_V7_ILP32_OFFBIG_CFLAGS = 1136 + X_CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS = 1137 + X_CS_POSIX_V7_ILP32_OFFBIG_LIBS = 1138 + X_CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS = 1139 + X_CS_POSIX_V7_LP64_OFF64_CFLAGS = 1140 + X_CS_POSIX_V7_LP64_OFF64_LDFLAGS = 1141 + X_CS_POSIX_V7_LP64_OFF64_LIBS = 1142 + X_CS_POSIX_V7_LP64_OFF64_LINTFLAGS = 1143 + X_CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS = 1144 + X_CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS = 1145 + X_CS_POSIX_V7_LPBIG_OFFBIG_LIBS = 1146 + X_CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS = 1147 + + X_CS_V6_ENV = 1148 + X_CS_V7_ENV = 1149 +) + +// Values for the argument to `sysconf'. +const ( /* confname.h:71:1: */ + X_SC_ARG_MAX = 0 + X_SC_CHILD_MAX = 1 + X_SC_CLK_TCK = 2 + X_SC_NGROUPS_MAX = 3 + X_SC_OPEN_MAX = 4 + X_SC_STREAM_MAX = 5 + X_SC_TZNAME_MAX = 6 + X_SC_JOB_CONTROL = 7 + X_SC_SAVED_IDS = 8 + X_SC_REALTIME_SIGNALS = 9 + X_SC_PRIORITY_SCHEDULING = 10 + X_SC_TIMERS = 11 + X_SC_ASYNCHRONOUS_IO = 12 + X_SC_PRIORITIZED_IO = 13 + X_SC_SYNCHRONIZED_IO = 14 + X_SC_FSYNC = 15 + X_SC_MAPPED_FILES = 16 + X_SC_MEMLOCK = 17 + X_SC_MEMLOCK_RANGE = 18 + X_SC_MEMORY_PROTECTION = 19 + X_SC_MESSAGE_PASSING = 20 + X_SC_SEMAPHORES = 21 + X_SC_SHARED_MEMORY_OBJECTS = 22 + X_SC_AIO_LISTIO_MAX = 23 + X_SC_AIO_MAX = 24 + X_SC_AIO_PRIO_DELTA_MAX = 25 + X_SC_DELAYTIMER_MAX = 26 + X_SC_MQ_OPEN_MAX = 27 + X_SC_MQ_PRIO_MAX = 28 + X_SC_VERSION = 29 + X_SC_PAGESIZE = 30 + X_SC_RTSIG_MAX = 31 + X_SC_SEM_NSEMS_MAX = 32 + X_SC_SEM_VALUE_MAX = 33 + X_SC_SIGQUEUE_MAX = 34 + X_SC_TIMER_MAX = 35 + + // Values for the argument to `sysconf' + // corresponding to _POSIX2_* symbols. + X_SC_BC_BASE_MAX = 36 + X_SC_BC_DIM_MAX = 37 + X_SC_BC_SCALE_MAX = 38 + X_SC_BC_STRING_MAX = 39 + X_SC_COLL_WEIGHTS_MAX = 40 + X_SC_EQUIV_CLASS_MAX = 41 + X_SC_EXPR_NEST_MAX = 42 + X_SC_LINE_MAX = 43 + X_SC_RE_DUP_MAX = 44 + X_SC_CHARCLASS_NAME_MAX = 45 + + X_SC_2_VERSION = 46 + X_SC_2_C_BIND = 47 + X_SC_2_C_DEV = 48 + X_SC_2_FORT_DEV = 49 + X_SC_2_FORT_RUN = 50 + X_SC_2_SW_DEV = 51 + X_SC_2_LOCALEDEF = 52 + + X_SC_PII = 53 + X_SC_PII_XTI = 54 + X_SC_PII_SOCKET = 55 + X_SC_PII_INTERNET = 56 + X_SC_PII_OSI = 57 + X_SC_POLL = 58 + X_SC_SELECT = 59 + X_SC_UIO_MAXIOV = 60 + X_SC_IOV_MAX = 60 + X_SC_PII_INTERNET_STREAM = 61 + X_SC_PII_INTERNET_DGRAM = 62 + X_SC_PII_OSI_COTS = 63 + X_SC_PII_OSI_CLTS = 64 + X_SC_PII_OSI_M = 65 + X_SC_T_IOV_MAX = 66 + + // Values according to POSIX 1003.1c (POSIX threads). + X_SC_THREADS = 67 + X_SC_THREAD_SAFE_FUNCTIONS = 68 + X_SC_GETGR_R_SIZE_MAX = 69 + X_SC_GETPW_R_SIZE_MAX = 70 + X_SC_LOGIN_NAME_MAX = 71 + X_SC_TTY_NAME_MAX = 72 + X_SC_THREAD_DESTRUCTOR_ITERATIONS = 73 + X_SC_THREAD_KEYS_MAX = 74 + X_SC_THREAD_STACK_MIN = 75 + X_SC_THREAD_THREADS_MAX = 76 + X_SC_THREAD_ATTR_STACKADDR = 77 + X_SC_THREAD_ATTR_STACKSIZE = 78 + X_SC_THREAD_PRIORITY_SCHEDULING = 79 + X_SC_THREAD_PRIO_INHERIT = 80 + X_SC_THREAD_PRIO_PROTECT = 81 + X_SC_THREAD_PROCESS_SHARED = 82 + + X_SC_NPROCESSORS_CONF = 83 + X_SC_NPROCESSORS_ONLN = 84 + X_SC_PHYS_PAGES = 85 + X_SC_AVPHYS_PAGES = 86 + X_SC_ATEXIT_MAX = 87 + X_SC_PASS_MAX = 88 + + X_SC_XOPEN_VERSION = 89 + X_SC_XOPEN_XCU_VERSION = 90 + X_SC_XOPEN_UNIX = 91 + X_SC_XOPEN_CRYPT = 92 + X_SC_XOPEN_ENH_I18N = 93 + X_SC_XOPEN_SHM = 94 + + X_SC_2_CHAR_TERM = 95 + X_SC_2_C_VERSION = 96 + X_SC_2_UPE = 97 + + X_SC_XOPEN_XPG2 = 98 + X_SC_XOPEN_XPG3 = 99 + X_SC_XOPEN_XPG4 = 100 + + X_SC_CHAR_BIT = 101 + X_SC_CHAR_MAX = 102 + X_SC_CHAR_MIN = 103 + X_SC_INT_MAX = 104 + X_SC_INT_MIN = 105 + X_SC_LONG_BIT = 106 + X_SC_WORD_BIT = 107 + X_SC_MB_LEN_MAX = 108 + X_SC_NZERO = 109 + X_SC_SSIZE_MAX = 110 + X_SC_SCHAR_MAX = 111 + X_SC_SCHAR_MIN = 112 + X_SC_SHRT_MAX = 113 + X_SC_SHRT_MIN = 114 + X_SC_UCHAR_MAX = 115 + X_SC_UINT_MAX = 116 + X_SC_ULONG_MAX = 117 + X_SC_USHRT_MAX = 118 + + X_SC_NL_ARGMAX = 119 + X_SC_NL_LANGMAX = 120 + X_SC_NL_MSGMAX = 121 + X_SC_NL_NMAX = 122 + X_SC_NL_SETMAX = 123 + X_SC_NL_TEXTMAX = 124 + + X_SC_XBS5_ILP32_OFF32 = 125 + X_SC_XBS5_ILP32_OFFBIG = 126 + X_SC_XBS5_LP64_OFF64 = 127 + X_SC_XBS5_LPBIG_OFFBIG = 128 + + X_SC_XOPEN_LEGACY = 129 + X_SC_XOPEN_REALTIME = 130 + X_SC_XOPEN_REALTIME_THREADS = 131 + + X_SC_ADVISORY_INFO = 132 + X_SC_BARRIERS = 133 + X_SC_BASE = 134 + X_SC_C_LANG_SUPPORT = 135 + X_SC_C_LANG_SUPPORT_R = 136 + X_SC_CLOCK_SELECTION = 137 + X_SC_CPUTIME = 138 + X_SC_THREAD_CPUTIME = 139 + X_SC_DEVICE_IO = 140 + X_SC_DEVICE_SPECIFIC = 141 + X_SC_DEVICE_SPECIFIC_R = 142 + X_SC_FD_MGMT = 143 + X_SC_FIFO = 144 + X_SC_PIPE = 145 + X_SC_FILE_ATTRIBUTES = 146 + X_SC_FILE_LOCKING = 147 + X_SC_FILE_SYSTEM = 148 + X_SC_MONOTONIC_CLOCK = 149 + X_SC_MULTI_PROCESS = 150 + X_SC_SINGLE_PROCESS = 151 + X_SC_NETWORKING = 152 + X_SC_READER_WRITER_LOCKS = 153 + X_SC_SPIN_LOCKS = 154 + X_SC_REGEXP = 155 + X_SC_REGEX_VERSION = 156 + X_SC_SHELL = 157 + X_SC_SIGNALS = 158 + X_SC_SPAWN = 159 + X_SC_SPORADIC_SERVER = 160 + X_SC_THREAD_SPORADIC_SERVER = 161 + X_SC_SYSTEM_DATABASE = 162 + X_SC_SYSTEM_DATABASE_R = 163 + X_SC_TIMEOUTS = 164 + X_SC_TYPED_MEMORY_OBJECTS = 165 + X_SC_USER_GROUPS = 166 + X_SC_USER_GROUPS_R = 167 + X_SC_2_PBS = 168 + X_SC_2_PBS_ACCOUNTING = 169 + X_SC_2_PBS_LOCATE = 170 + X_SC_2_PBS_MESSAGE = 171 + X_SC_2_PBS_TRACK = 172 + X_SC_SYMLOOP_MAX = 173 + X_SC_STREAMS = 174 + X_SC_2_PBS_CHECKPOINT = 175 + + X_SC_V6_ILP32_OFF32 = 176 + X_SC_V6_ILP32_OFFBIG = 177 + X_SC_V6_LP64_OFF64 = 178 + X_SC_V6_LPBIG_OFFBIG = 179 + + X_SC_HOST_NAME_MAX = 180 + X_SC_TRACE = 181 + X_SC_TRACE_EVENT_FILTER = 182 + X_SC_TRACE_INHERIT = 183 + X_SC_TRACE_LOG = 184 + + X_SC_LEVEL1_ICACHE_SIZE = 185 + X_SC_LEVEL1_ICACHE_ASSOC = 186 + X_SC_LEVEL1_ICACHE_LINESIZE = 187 + X_SC_LEVEL1_DCACHE_SIZE = 188 + X_SC_LEVEL1_DCACHE_ASSOC = 189 + X_SC_LEVEL1_DCACHE_LINESIZE = 190 + X_SC_LEVEL2_CACHE_SIZE = 191 + X_SC_LEVEL2_CACHE_ASSOC = 192 + X_SC_LEVEL2_CACHE_LINESIZE = 193 + X_SC_LEVEL3_CACHE_SIZE = 194 + X_SC_LEVEL3_CACHE_ASSOC = 195 + X_SC_LEVEL3_CACHE_LINESIZE = 196 + X_SC_LEVEL4_CACHE_SIZE = 197 + X_SC_LEVEL4_CACHE_ASSOC = 198 + X_SC_LEVEL4_CACHE_LINESIZE = 199 + // Leave room here, maybe we need a few more cache levels some day. + + X_SC_IPV6 = 235 + X_SC_RAW_SOCKETS = 236 + + X_SC_V7_ILP32_OFF32 = 237 + X_SC_V7_ILP32_OFFBIG = 238 + X_SC_V7_LP64_OFF64 = 239 + X_SC_V7_LPBIG_OFFBIG = 240 + + X_SC_SS_REPL_MAX = 241 + + X_SC_TRACE_EVENT_NAME_MAX = 242 + X_SC_TRACE_NAME_MAX = 243 + X_SC_TRACE_SYS_MAX = 244 + X_SC_TRACE_USER_EVENT_MAX = 245 + + X_SC_XOPEN_STREAMS = 246 + + X_SC_THREAD_ROBUST_PRIO_INHERIT = 247 + X_SC_THREAD_ROBUST_PRIO_PROTECT = 248 +) + +type Ptrdiff_t = int64 /* :3:26 */ + +type Size_t = uint64 /* :9:23 */ + +type Wchar_t = int32 /* :15:24 */ + +type X__int128_t = struct { + Flo int64 + Fhi int64 +} /* :21:43 */ // must match modernc.org/mathutil.Int128 +type X__uint128_t = struct { + Flo uint64 + Fhi uint64 +} /* :22:44 */ // must match modernc.org/mathutil.Int128 + +type X__builtin_va_list = uintptr /* :46:14 */ +type X__float128 = float64 /* :47:21 */ + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// POSIX Standard: 2.10 Symbolic Constants + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// These are defined by the user (or the compiler) +// to specify the desired environment: +// +// __STRICT_ANSI__ ISO Standard C. +// _ISOC99_SOURCE Extensions to ISO C89 from ISO C99. +// _ISOC11_SOURCE Extensions to ISO C99 from ISO C11. +// _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X. +// __STDC_WANT_LIB_EXT2__ +// Extensions to ISO C99 from TR 27431-2:2010. +// __STDC_WANT_IEC_60559_BFP_EXT__ +// Extensions to ISO C11 from TS 18661-1:2014. +// __STDC_WANT_IEC_60559_FUNCS_EXT__ +// Extensions to ISO C11 from TS 18661-4:2015. +// __STDC_WANT_IEC_60559_TYPES_EXT__ +// Extensions to ISO C11 from TS 18661-3:2015. +// +// _POSIX_SOURCE IEEE Std 1003.1. +// _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2; +// if >=199309L, add IEEE Std 1003.1b-1993; +// if >=199506L, add IEEE Std 1003.1c-1995; +// if >=200112L, all of IEEE 1003.1-2004 +// if >=200809L, all of IEEE 1003.1-2008 +// _XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if +// Single Unix conformance is wanted, to 600 for the +// sixth revision, to 700 for the seventh revision. +// _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions. +// _LARGEFILE_SOURCE Some more functions for correct standard I/O. +// _LARGEFILE64_SOURCE Additional functionality from LFS for large files. +// _FILE_OFFSET_BITS=N Select default filesystem interface. +// _ATFILE_SOURCE Additional *at interfaces. +// _GNU_SOURCE All of the above, plus GNU extensions. +// _DEFAULT_SOURCE The default set of features (taking precedence over +// __STRICT_ANSI__). +// +// _FORTIFY_SOURCE Add security hardening to many library functions. +// Set to 1 or 2; 2 performs stricter checks than 1. +// +// _REENTRANT, _THREAD_SAFE +// Obsolete; equivalent to _POSIX_C_SOURCE=199506L. +// +// The `-ansi' switch to the GNU C compiler, and standards conformance +// options such as `-std=c99', define __STRICT_ANSI__. If none of +// these are defined, or if _DEFAULT_SOURCE is defined, the default is +// to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to +// 200809L, as well as enabling miscellaneous functions from BSD and +// SVID. If more than one of these are defined, they accumulate. For +// example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together +// give you ISO C, 1003.1, and 1003.2, but nothing else. +// +// These are defined by this file and are used by the +// header files to decide what to declare or define: +// +// __GLIBC_USE (F) Define things from feature set F. This is defined +// to 1 or 0; the subsequent macros are either defined +// or undefined, and those tests should be moved to +// __GLIBC_USE. +// __USE_ISOC11 Define ISO C11 things. +// __USE_ISOC99 Define ISO C99 things. +// __USE_ISOC95 Define ISO C90 AMD1 (C95) things. +// __USE_ISOCXX11 Define ISO C++11 things. +// __USE_POSIX Define IEEE Std 1003.1 things. +// __USE_POSIX2 Define IEEE Std 1003.2 things. +// __USE_POSIX199309 Define IEEE Std 1003.1, and .1b things. +// __USE_POSIX199506 Define IEEE Std 1003.1, .1b, .1c and .1i things. +// __USE_XOPEN Define XPG things. +// __USE_XOPEN_EXTENDED Define X/Open Unix things. +// __USE_UNIX98 Define Single Unix V2 things. +// __USE_XOPEN2K Define XPG6 things. +// __USE_XOPEN2KXSI Define XPG6 XSI things. +// __USE_XOPEN2K8 Define XPG7 things. +// __USE_XOPEN2K8XSI Define XPG7 XSI things. +// __USE_LARGEFILE Define correct standard I/O things. +// __USE_LARGEFILE64 Define LFS things with separate names. +// __USE_FILE_OFFSET64 Define 64bit interface as default. +// __USE_MISC Define things from 4.3BSD or System V Unix. +// __USE_ATFILE Define *at interfaces and AT_* constants for them. +// __USE_GNU Define GNU extensions. +// __USE_FORTIFY_LEVEL Additional security measures used, according to level. +// +// The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are +// defined by this file unconditionally. `__GNU_LIBRARY__' is provided +// only for compatibility. All new code should use the other symbols +// to test for features. +// +// All macros listed above as possibly being defined by this file are +// explicitly undefined if they are not explicitly defined. +// Feature-test macros that are not defined by the user or compiler +// but are implied by the other feature-test macros defined (or by the +// lack of any definitions) are defined by the file. +// +// ISO C feature test macros depend on the definition of the macro +// when an affected header is included, not when the first system +// header is included, and so they are handled in +// , which does not have a multiple include +// guard. Feature test macros that can be handled from the first +// system header included are handled here. + +// Undefine everything, so we get a clean slate. + +// Suppress kernel-name space pollution unless user expressedly asks +// for it. + +// Convenience macro to test the version of gcc. +// Use like this: +// #if __GNUC_PREREQ (2,8) +// ... code requiring gcc 2.8 or later ... +// #endif +// Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was +// added in 2.0. + +// Similarly for clang. Features added to GCC after version 4.2 may +// or may not also be available in clang, and clang's definitions of +// __GNUC(_MINOR)__ are fixed at 4 and 2 respectively. Not all such +// features can be queried via __has_extension/__has_feature. + +// Whether to use feature set F. + +// _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for +// _DEFAULT_SOURCE. If _DEFAULT_SOURCE is present we do not +// issue a warning; the expectation is that the source is being +// transitioned to use the new macro. + +// If _GNU_SOURCE was defined by the user, turn on all the other features. + +// If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined, +// define _DEFAULT_SOURCE. + +// This is to enable the ISO C2X extension. + +// This is to enable the ISO C11 extension. + +// This is to enable the ISO C99 extension. + +// This is to enable the ISO C90 Amendment 1:1995 extension. + +// If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE +// is defined, use POSIX.1-2008 (or another version depending on +// _XOPEN_SOURCE). + +// Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be +// defined in all multithreaded code. GNU libc has not required this +// for many years. We now treat them as compatibility synonyms for +// _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with +// comprehensive support for multithreaded code. Using them never +// lowers the selected level of POSIX conformance, only raises it. + +// The function 'gets' existed in C89, but is impossible to use +// safely. It has been removed from ISO C11 and ISO C++14. Note: for +// compatibility with various implementations of , this test +// must consider only the value of __cplusplus when compiling C++. + +// GNU formerly extended the scanf functions with modified format +// specifiers %as, %aS, and %a[...] that allocate a buffer for the +// input using malloc. This extension conflicts with ISO C99, which +// defines %a as a standalone format specifier that reads a floating- +// point number; moreover, POSIX.1-2008 provides the same feature +// using the modifier letter 'm' instead (%ms, %mS, %m[...]). +// +// We now follow C99 unless GNU extensions are active and the compiler +// is specifically in C89 or C++98 mode (strict or not). For +// instance, with GCC, -std=gnu11 will have C99-compliant scanf with +// or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the +// old extension. + +// Get definitions of __STDC_* predefined macros, if the compiler has +// not preincluded this header automatically. +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// This macro indicates that the installed library is the GNU C Library. +// For historic reasons the value now is 6 and this will stay from now +// on. The use of this variable is deprecated. Use __GLIBC__ and +// __GLIBC_MINOR__ now (see below) when you want to test for a specific +// GNU C library version and use the values in to get +// the sonames of the shared libraries. + +// Major and minor version number of the GNU C library package. Use +// these macros to test for features in specific releases. + +// This is here only because every header file already includes this one. +// Copyright (C) 1992-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// We are almost always included from features.h. + +// The GNU libc does not support any K&R compilers or the traditional mode +// of ISO C compilers anymore. Check for some of the combinations not +// anymore supported. + +// Some user header file might have defined this before. + +// All functions, except those with callbacks or those that +// synchronize memory, are leaf functions. + +// GCC can always grok prototypes. For C++ programs we add throw() +// to help it optimize the function calls. But this works only with +// gcc 2.8.x and egcs. For gcc 3.2 and up we even mark C functions +// as non-throwing using a function attribute since programs can use +// the -fexceptions options for C code as well. + +// Compilers that are not clang may object to +// #if defined __clang__ && __has_extension(...) +// even though they do not need to evaluate the right-hand side of the &&. + +// These two macros are not used in glibc anymore. They are kept here +// only because some other projects expect the macros to be defined. + +// For these things, GCC behaves the ANSI way normally, +// and the non-ANSI way under -traditional. + +// This is not a typedef so `const __ptr_t' does the right thing. + +// C++ needs to know that types and declarations are C, not C++. + +// Fortify support. + +// Support for flexible arrays. +// Headers that should use flexible arrays only if they're "real" +// (e.g. only if they won't affect sizeof()) should test +// #if __glibc_c99_flexarr_available. + +// __asm__ ("xyz") is used throughout the headers to rename functions +// at the assembly language level. This is wrapped by the __REDIRECT +// macro, in order to support compilers that can do this some other +// way. When compilers don't support asm-names at all, we have to do +// preprocessor tricks instead (which don't have exactly the right +// semantics, but it's the best we can do). +// +// Example: +// int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid); + +// +// #elif __SOME_OTHER_COMPILER__ +// +// # define __REDIRECT(name, proto, alias) name proto; _Pragma("let " #name " = " #alias) + +// GCC has various useful declarations that can be made with the +// `__attribute__' syntax. All of the ways we use this do fine if +// they are omitted for compilers that don't understand it. + +// At some point during the gcc 2.96 development the `malloc' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// Tell the compiler which arguments to an allocation function +// indicate the size of the allocation. + +// At some point during the gcc 2.96 development the `pure' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// This declaration tells the compiler that the value is constant. + +// At some point during the gcc 3.1 development the `used' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// Since version 3.2, gcc allows marking deprecated functions. + +// Since version 4.5, gcc also allows one to specify the message printed +// when a deprecated function is used. clang claims to be gcc 4.2, but +// may also support this feature. + +// At some point during the gcc 2.8 development the `format_arg' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. +// If several `format_arg' attributes are given for the same function, in +// gcc-3.0 and older, all but the last one are ignored. In newer gccs, +// all designated arguments are considered. + +// At some point during the gcc 2.97 development the `strfmon' format +// attribute for functions was introduced. We don't want to use it +// unconditionally (although this would be possible) since it +// generates warnings. + +// The nonull function attribute allows to mark pointer parameters which +// must not be NULL. + +// If fortification mode, we warn about unused results of certain +// function calls which can lead to problems. + +// Forces a function to be always inlined. +// The Linux kernel defines __always_inline in stddef.h (283d7573), and +// it conflicts with this definition. Therefore undefine it first to +// allow either header to be included first. + +// Associate error messages with the source location of the call site rather +// than with the source location inside the function. + +// GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99 +// inline semantics, unless -fgnu89-inline is used. Using __GNUC_STDC_INLINE__ +// or __GNUC_GNU_INLINE is not a good enough check for gcc because gcc versions +// older than 4.3 may define these macros and still not guarantee GNU inlining +// semantics. +// +// clang++ identifies itself as gcc-4.2, but has support for GNU inlining +// semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and +// __GNUC_GNU_INLINE__ macro definitions. + +// GCC 4.3 and above allow passing all anonymous arguments of an +// __extern_always_inline function to some other vararg function. + +// It is possible to compile containing GCC extensions even if GCC is +// run in pedantic mode if the uses are carefully marked using the +// `__extension__' keyword. But this is not generally available before +// version 2.8. + +// __restrict is known in EGCS 1.2 and above. + +// ISO C99 also allows to declare arrays as non-overlapping. The syntax is +// array_name[restrict] +// GCC 3.1 supports this. + +// Describes a char array whose address can safely be passed as the first +// argument to strncpy and strncat, as the char array is not necessarily +// a NUL-terminated string. + +// Undefine (also defined in libc-symbols.h). +// Copies attributes from the declaration or type referenced by +// the argument. + +// Determine the wordsize from the preprocessor defines. + +// Both x86-64 and x32 use the 64-bit system call interface. +// Properties of long double type. ldbl-96 version. +// Copyright (C) 2016-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// long double is distinct from double, so there is nothing to +// define here. + +// __glibc_macro_warning (MESSAGE) issues warning MESSAGE. This is +// intended for use in preprocessor macros. +// +// Note: MESSAGE must be a _single_ string; concatenation of string +// literals is not supported. + +// Generic selection (ISO C11) is a C-only feature, available in GCC +// since version 4.9. Previous versions do not provide generic +// selection, even though they might set __STDC_VERSION__ to 201112L, +// when in -std=c11 mode. Thus, we must check for !defined __GNUC__ +// when testing __STDC_VERSION__ for generic selection support. +// On the other hand, Clang also defines __GNUC__, so a clang-specific +// check is required to enable the use of generic selection. + +// If we don't have __REDIRECT, prototypes will be missing if +// __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64]. + +// Decide whether we can define 'extern inline' functions in headers. + +// This is here only because every header file already includes this one. +// Get the definitions of all the appropriate `__stub_FUNCTION' symbols. +// contains `#define __stub_FUNCTION' when FUNCTION is a stub +// that will always return failure (and set errno to ENOSYS). +// This file is automatically generated. +// This file selects the right generated file of `__stub_FUNCTION' macros +// based on the architecture being compiled for. + +// This file is automatically generated. +// It defines a symbol `__stub_FUNCTION' for each function +// in the C library which is a stub, meaning it will fail +// every time called, usually setting errno to ENOSYS. + +// These may be used to determine what facilities are present at compile time. +// Their values can be obtained at run time from `sysconf'. + +// POSIX Standard approved as ISO/IEC 9945-1 as of September 2008. + +// These are not #ifdef __USE_POSIX2 because they are +// in the theoretically application-owned namespace. + +// The utilities on GNU systems also correspond to this version. + +// The utilities on GNU systems also correspond to this version. + +// This symbol was required until the 2001 edition of POSIX. + +// If defined, the implementation supports the +// C Language Bindings Option. + +// If defined, the implementation supports the +// C Language Development Utilities Option. + +// If defined, the implementation supports the +// Software Development Utilities Option. + +// If defined, the implementation supports the +// creation of locales with the localedef utility. + +// X/Open version number to which the library conforms. It is selectable. + +// Commands and utilities from XPG4 are available. + +// We are compatible with the old published standards as well. + +// The X/Open Unix extensions are available. + +// The enhanced internationalization capabilities according to XPG4.2 +// are present. + +// The legacy interfaces are also available. + +// Get values of POSIX options: +// +// If these symbols are defined, the corresponding features are +// always available. If not, they may be available sometimes. +// The current values can be obtained with `sysconf'. +// +// _POSIX_JOB_CONTROL Job control is supported. +// _POSIX_SAVED_IDS Processes have a saved set-user-ID +// and a saved set-group-ID. +// _POSIX_REALTIME_SIGNALS Real-time, queued signals are supported. +// _POSIX_PRIORITY_SCHEDULING Priority scheduling is supported. +// _POSIX_TIMERS POSIX.4 clocks and timers are supported. +// _POSIX_ASYNCHRONOUS_IO Asynchronous I/O is supported. +// _POSIX_PRIORITIZED_IO Prioritized asynchronous I/O is supported. +// _POSIX_SYNCHRONIZED_IO Synchronizing file data is supported. +// _POSIX_FSYNC The fsync function is present. +// _POSIX_MAPPED_FILES Mapping of files to memory is supported. +// _POSIX_MEMLOCK Locking of all memory is supported. +// _POSIX_MEMLOCK_RANGE Locking of ranges of memory is supported. +// _POSIX_MEMORY_PROTECTION Setting of memory protections is supported. +// _POSIX_MESSAGE_PASSING POSIX.4 message queues are supported. +// _POSIX_SEMAPHORES POSIX.4 counting semaphores are supported. +// _POSIX_SHARED_MEMORY_OBJECTS POSIX.4 shared memory objects are supported. +// _POSIX_THREADS POSIX.1c pthreads are supported. +// _POSIX_THREAD_ATTR_STACKADDR Thread stack address attribute option supported. +// _POSIX_THREAD_ATTR_STACKSIZE Thread stack size attribute option supported. +// _POSIX_THREAD_SAFE_FUNCTIONS Thread-safe functions are supported. +// _POSIX_THREAD_PRIORITY_SCHEDULING +// POSIX.1c thread execution scheduling supported. +// _POSIX_THREAD_PRIO_INHERIT Thread priority inheritance option supported. +// _POSIX_THREAD_PRIO_PROTECT Thread priority protection option supported. +// _POSIX_THREAD_PROCESS_SHARED Process-shared synchronization supported. +// _POSIX_PII Protocol-independent interfaces are supported. +// _POSIX_PII_XTI XTI protocol-indep. interfaces are supported. +// _POSIX_PII_SOCKET Socket protocol-indep. interfaces are supported. +// _POSIX_PII_INTERNET Internet family of protocols supported. +// _POSIX_PII_INTERNET_STREAM Connection-mode Internet protocol supported. +// _POSIX_PII_INTERNET_DGRAM Connectionless Internet protocol supported. +// _POSIX_PII_OSI ISO/OSI family of protocols supported. +// _POSIX_PII_OSI_COTS Connection-mode ISO/OSI service supported. +// _POSIX_PII_OSI_CLTS Connectionless ISO/OSI service supported. +// _POSIX_POLL Implementation supports `poll' function. +// _POSIX_SELECT Implementation supports `select' and `pselect'. +// +// _XOPEN_REALTIME X/Open realtime support is available. +// _XOPEN_REALTIME_THREADS X/Open realtime thread support is available. +// _XOPEN_SHM Shared memory interface according to XPG4.2. +// +// _XBS5_ILP32_OFF32 Implementation provides environment with 32-bit +// int, long, pointer, and off_t types. +// _XBS5_ILP32_OFFBIG Implementation provides environment with 32-bit +// int, long, and pointer and off_t with at least +// 64 bits. +// _XBS5_LP64_OFF64 Implementation provides environment with 32-bit +// int, and 64-bit long, pointer, and off_t types. +// _XBS5_LPBIG_OFFBIG Implementation provides environment with at +// least 32 bits int and long, pointer, and off_t +// with at least 64 bits. +// +// If any of these symbols is defined as -1, the corresponding option is not +// true for any file. If any is defined as other than -1, the corresponding +// option is true for all files. If a symbol is not defined at all, the value +// for a specific file can be obtained from `pathconf' and `fpathconf'. +// +// _POSIX_CHOWN_RESTRICTED Only the super user can use `chown' to change +// the owner of a file. `chown' can only be used +// to change the group ID of a file to a group of +// which the calling process is a member. +// _POSIX_NO_TRUNC Pathname components longer than +// NAME_MAX generate an error. +// _POSIX_VDISABLE If defined, if the value of an element of the +// `c_cc' member of `struct termios' is +// _POSIX_VDISABLE, no character will have the +// effect associated with that element. +// _POSIX_SYNC_IO Synchronous I/O may be performed. +// _POSIX_ASYNC_IO Asynchronous I/O may be performed. +// _POSIX_PRIO_IO Prioritized Asynchronous I/O may be performed. +// +// Support for the Large File Support interface is not generally available. +// If it is available the following constants are defined to one. +// _LFS64_LARGEFILE Low-level I/O supports large files. +// _LFS64_STDIO Standard I/O supports large files. +// + +// Define POSIX options for Linux. +// Copyright (C) 1996-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public License as +// published by the Free Software Foundation; either version 2.1 of the +// License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; see the file COPYING.LIB. If +// not, see . + +// Job control is supported. + +// Processes have a saved set-user-ID and a saved set-group-ID. + +// Priority scheduling is not supported with the correct semantics, +// but GNU/Linux applications expect that the corresponding interfaces +// are available, even though the semantics do not meet the POSIX +// requirements. See glibc bug 14829. + +// Synchronizing file data is supported. + +// The fsync function is present. + +// Mapping of files to memory is supported. + +// Locking of all memory is supported. + +// Locking of ranges of memory is supported. + +// Setting of memory protections is supported. + +// Some filesystems allow all users to change file ownership. + +// `c_cc' member of 'struct termios' structure can be disabled by +// using the value _POSIX_VDISABLE. + +// Filenames are not silently truncated. + +// X/Open realtime support is available. + +// X/Open thread realtime support is available. + +// XPG4.2 shared memory is supported. + +// Tell we have POSIX threads. + +// We have the reentrant functions described in POSIX. + +// We provide priority scheduling for threads. + +// We support user-defined stack sizes. + +// We support user-defined stacks. + +// We support priority inheritence. + +// We support priority protection, though only for non-robust +// mutexes. + +// We support priority inheritence for robust mutexes. + +// We do not support priority protection for robust mutexes. + +// We support POSIX.1b semaphores. + +// Real-time signals are supported. + +// We support asynchronous I/O. +// Alternative name for Unix98. +// Support for prioritization is also available. + +// The LFS support in asynchronous I/O is also available. + +// The rest of the LFS is also available. + +// POSIX shared memory objects are implemented. + +// CPU-time clocks support needs to be checked at runtime. + +// Clock support in threads must be also checked at runtime. + +// GNU libc provides regular expression handling. + +// Reader/Writer locks are available. + +// We have a POSIX shell. + +// We support the Timeouts option. + +// We support spinlocks. + +// The `spawn' function family is supported. + +// We have POSIX timers. + +// The barrier functions are available. + +// POSIX message queues are available. + +// Thread process-shared synchronization is supported. + +// The monotonic clock might be available. + +// The clock selection interfaces are available. + +// Advisory information interfaces are available. + +// IPv6 support is available. + +// Raw socket support is available. + +// We have at least one terminal. + +// Neither process nor thread sporadic server interfaces is available. + +// trace.h is not available. + +// Typed memory objects are not available. + +// Get the environment definitions from Unix98. +// Copyright (C) 1999-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Determine the wordsize from the preprocessor defines. + +// Both x86-64 and x32 use the 64-bit system call interface. + +// This header should define the following symbols under the described +// situations. A value `1' means that the model is always supported, +// `-1' means it is never supported. Undefined means it cannot be +// statically decided. +// +// _POSIX_V7_ILP32_OFF32 32bit int, long, pointers, and off_t type +// _POSIX_V7_ILP32_OFFBIG 32bit int, long, and pointers and larger off_t type +// +// _POSIX_V7_LP64_OFF32 64bit long and pointers and 32bit off_t type +// _POSIX_V7_LPBIG_OFFBIG 64bit long and pointers and large off_t type +// +// The macros _POSIX_V6_ILP32_OFF32, _POSIX_V6_ILP32_OFFBIG, +// _POSIX_V6_LP64_OFF32, _POSIX_V6_LPBIG_OFFBIG, _XBS5_ILP32_OFF32, +// _XBS5_ILP32_OFFBIG, _XBS5_LP64_OFF32, and _XBS5_LPBIG_OFFBIG were +// used in previous versions of the Unix standard and are available +// only for compatibility. + +// Environments with 32-bit wide pointers are optionally provided. +// Therefore following macros aren't defined: +// # undef _POSIX_V7_ILP32_OFF32 +// # undef _POSIX_V7_ILP32_OFFBIG +// # undef _POSIX_V6_ILP32_OFF32 +// # undef _POSIX_V6_ILP32_OFFBIG +// # undef _XBS5_ILP32_OFF32 +// # undef _XBS5_ILP32_OFFBIG +// and users need to check at runtime. + +// We also have no use (for now) for an environment with bigger pointers +// and offsets. + +// By default we have 64-bit wide `long int', pointers and `off_t'. + +// Standard file descriptors. + +// All functions that are not declared anywhere else. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Determine the wordsize from the preprocessor defines. + +// Both x86-64 and x32 use the 64-bit system call interface. +// Bit size of the time_t type at glibc build time, x86-64 and x32 case. +// Copyright (C) 2018-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// For others, time size is word size. + +// Convenience types. +type X__u_char = uint8 /* types.h:31:23 */ +type X__u_short = uint16 /* types.h:32:28 */ +type X__u_int = uint32 /* types.h:33:22 */ +type X__u_long = uint64 /* types.h:34:27 */ + +// Fixed-size types, underlying types depend on word size and compiler. +type X__int8_t = int8 /* types.h:37:21 */ +type X__uint8_t = uint8 /* types.h:38:23 */ +type X__int16_t = int16 /* types.h:39:26 */ +type X__uint16_t = uint16 /* types.h:40:28 */ +type X__int32_t = int32 /* types.h:41:20 */ +type X__uint32_t = uint32 /* types.h:42:22 */ +type X__int64_t = int64 /* types.h:44:25 */ +type X__uint64_t = uint64 /* types.h:45:27 */ + +// Smallest types with at least a given width. +type X__int_least8_t = X__int8_t /* types.h:52:18 */ +type X__uint_least8_t = X__uint8_t /* types.h:53:19 */ +type X__int_least16_t = X__int16_t /* types.h:54:19 */ +type X__uint_least16_t = X__uint16_t /* types.h:55:20 */ +type X__int_least32_t = X__int32_t /* types.h:56:19 */ +type X__uint_least32_t = X__uint32_t /* types.h:57:20 */ +type X__int_least64_t = X__int64_t /* types.h:58:19 */ +type X__uint_least64_t = X__uint64_t /* types.h:59:20 */ + +// quad_t is also 64 bits. +type X__quad_t = int64 /* types.h:63:18 */ +type X__u_quad_t = uint64 /* types.h:64:27 */ + +// Largest integral types. +type X__intmax_t = int64 /* types.h:72:18 */ +type X__uintmax_t = uint64 /* types.h:73:27 */ + +// The machine-dependent file defines __*_T_TYPE +// macros for each of the OS types we define below. The definitions +// of those macros must use the following macros for underlying types. +// We define __S_TYPE and __U_TYPE for the signed and unsigned +// variants of each of the following integer types on this machine. +// +// 16 -- "natural" 16-bit type (always short) +// 32 -- "natural" 32-bit type (always int) +// 64 -- "natural" 64-bit type (long or long long) +// LONG32 -- 32-bit type, traditionally long +// QUAD -- 64-bit type, traditionally long long +// WORD -- natural type of __WORDSIZE bits (int or long) +// LONGWORD -- type of __WORDSIZE bits, traditionally long +// +// We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the +// conventional uses of `long' or `long long' type modifiers match the +// types we define, even when a less-adorned type would be the same size. +// This matters for (somewhat) portably writing printf/scanf formats for +// these types, where using the appropriate l or ll format modifiers can +// make the typedefs and the formats match up across all GNU platforms. If +// we used `long' when it's 64 bits where `long long' is expected, then the +// compiler would warn about the formats not matching the argument types, +// and the programmer changing them to shut up the compiler would break the +// program's portability. +// +// Here we assume what is presently the case in all the GCC configurations +// we support: long long is always 64 bits, long is always word/address size, +// and int is always 32 bits. + +// No need to mark the typedef with __extension__. +// bits/typesizes.h -- underlying types for *_t. Linux/x86-64 version. +// Copyright (C) 2012-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// See for the meaning of these macros. This file exists so +// that need not vary across different GNU platforms. + +// X32 kernel interface is 64-bit. + +// Tell the libc code that off_t and off64_t are actually the same type +// for all ABI purposes, even if possibly expressed as different base types +// for C type-checking purposes. + +// Same for ino_t and ino64_t. + +// And for __rlim_t and __rlim64_t. + +// And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t. + +// Number of descriptors that can fit in an `fd_set'. + +// bits/time64.h -- underlying types for __time64_t. Generic version. +// Copyright (C) 2018-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Define __TIME64_T_TYPE so that it is always a 64-bit type. + +// If we already have 64-bit time type then use it. + +type X__dev_t = uint64 /* types.h:145:25 */ // Type of device numbers. +type X__uid_t = uint32 /* types.h:146:25 */ // Type of user identifications. +type X__gid_t = uint32 /* types.h:147:25 */ // Type of group identifications. +type X__ino_t = uint64 /* types.h:148:25 */ // Type of file serial numbers. +type X__ino64_t = uint64 /* types.h:149:27 */ // Type of file serial numbers (LFS). +type X__mode_t = uint32 /* types.h:150:26 */ // Type of file attribute bitmasks. +type X__nlink_t = uint64 /* types.h:151:27 */ // Type of file link counts. +type X__off_t = int64 /* types.h:152:25 */ // Type of file sizes and offsets. +type X__off64_t = int64 /* types.h:153:27 */ // Type of file sizes and offsets (LFS). +type X__pid_t = int32 /* types.h:154:25 */ // Type of process identifications. +type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs. +type X__clock_t = int64 /* types.h:156:27 */ // Type of CPU usage counts. +type X__rlim_t = uint64 /* types.h:157:26 */ // Type for resource measurement. +type X__rlim64_t = uint64 /* types.h:158:28 */ // Type for resource measurement (LFS). +type X__id_t = uint32 /* types.h:159:24 */ // General type for IDs. +type X__time_t = int64 /* types.h:160:26 */ // Seconds since the Epoch. +type X__useconds_t = uint32 /* types.h:161:30 */ // Count of microseconds. +type X__suseconds_t = int64 /* types.h:162:31 */ // Signed count of microseconds. + +type X__daddr_t = int32 /* types.h:164:27 */ // The type of a disk address. +type X__key_t = int32 /* types.h:165:25 */ // Type of an IPC key. + +// Clock ID used in clock and timer functions. +type X__clockid_t = int32 /* types.h:168:29 */ + +// Timer ID returned by `timer_create'. +type X__timer_t = uintptr /* types.h:171:12 */ + +// Type to represent block size. +type X__blksize_t = int64 /* types.h:174:29 */ + +// Types from the Large File Support interface. + +// Type to count number of disk blocks. +type X__blkcnt_t = int64 /* types.h:179:28 */ +type X__blkcnt64_t = int64 /* types.h:180:30 */ + +// Type to count file system blocks. +type X__fsblkcnt_t = uint64 /* types.h:183:30 */ +type X__fsblkcnt64_t = uint64 /* types.h:184:32 */ + +// Type to count file system nodes. +type X__fsfilcnt_t = uint64 /* types.h:187:30 */ +type X__fsfilcnt64_t = uint64 /* types.h:188:32 */ + +// Type of miscellaneous file system fields. +type X__fsword_t = int64 /* types.h:191:28 */ + +type X__ssize_t = int64 /* types.h:193:27 */ // Type of a byte count, or error. + +// Signed long type used in system calls. +type X__syscall_slong_t = int64 /* types.h:196:33 */ +// Unsigned long type used in system calls. +type X__syscall_ulong_t = uint64 /* types.h:198:33 */ + +// These few don't really vary by system, they always correspond +// +// to one of the other defined types. +type X__loff_t = X__off64_t /* types.h:202:19 */ // Type of file sizes and offsets (LFS). +type X__caddr_t = uintptr /* types.h:203:14 */ + +// Duplicates info from stdint.h but this is used in unistd.h. +type X__intptr_t = int64 /* types.h:206:25 */ + +// Duplicate info from sys/socket.h. +type X__socklen_t = uint32 /* types.h:209:23 */ + +// C99: An integer type that can be accessed as an atomic entity, +// +// even in the presence of asynchronous interrupts. +// It is not currently necessary for this to be machine-specific. +type X__sig_atomic_t = int32 /* types.h:214:13 */ + +// Seconds since the Epoch, visible to user code when time_t is too +// narrow only for consistency with the old way of widening too-narrow +// types. User code should never use __time64_t. + +type Ssize_t = X__ssize_t /* unistd.h:220:19 */ + +// Wide character type. +// Locale-writers should change this as necessary to +// be big enough to hold unique values not between 0 and 127, +// and not (wchar_t) -1, for each defined multibyte character. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// A null pointer constant. + +// The Single Unix specification says that some more types are +// +// available here. +type Gid_t = X__gid_t /* unistd.h:232:17 */ + +type Uid_t = X__uid_t /* unistd.h:237:17 */ + +type Off_t = X__off64_t /* unistd.h:245:19 */ + +type Useconds_t = X__useconds_t /* unistd.h:255:22 */ + +type Pid_t = X__pid_t /* unistd.h:260:17 */ + +type Intptr_t = X__intptr_t /* unistd.h:267:20 */ + +type Socklen_t = X__socklen_t /* unistd.h:274:21 */ + +// Define some macros helping to catch buffer overflows. + +// System-specific extensions. +// System-specific extensions of , Linux version. +// Copyright (C) 2019-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +var _ int8 /* gen.c:2:13: */ diff --git a/vendor/modernc.org/libc/utime/capi_illumos_amd64.go b/vendor/modernc.org/libc/utime/capi_illumos_amd64.go new file mode 100644 index 000000000..754737fe0 --- /dev/null +++ b/vendor/modernc.org/libc/utime/capi_illumos_amd64.go @@ -0,0 +1,5 @@ +// Code generated by 'ccgo utime/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o utime/utime_illumos_amd64.go -pkgname utime', DO NOT EDIT. + +package utime + +var CAPI = map[string]struct{}{} diff --git a/vendor/modernc.org/libc/utime/capi_linux_loong64.go b/vendor/modernc.org/libc/utime/capi_linux_loong64.go new file mode 100644 index 000000000..82dc91604 --- /dev/null +++ b/vendor/modernc.org/libc/utime/capi_linux_loong64.go @@ -0,0 +1,5 @@ +// Code generated by 'ccgo utime/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o utime/utime_linux_loong64.go -pkgname utime', DO NOT EDIT. + +package utime + +var CAPI = map[string]struct{}{} diff --git a/vendor/modernc.org/libc/utime/capi_linux_mips64le.go b/vendor/modernc.org/libc/utime/capi_linux_mips64le.go new file mode 100644 index 000000000..8f7c87f4d --- /dev/null +++ b/vendor/modernc.org/libc/utime/capi_linux_mips64le.go @@ -0,0 +1,5 @@ +// Code generated by 'ccgo utime/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o utime/utime_linux_amd64.go -pkgname utime', DO NOT EDIT. + +package utime + +var CAPI = map[string]struct{}{} diff --git a/vendor/modernc.org/libc/utime/utime_illumos_amd64.go b/vendor/modernc.org/libc/utime/utime_illumos_amd64.go new file mode 100644 index 000000000..cc39bd195 --- /dev/null +++ b/vendor/modernc.org/libc/utime/utime_illumos_amd64.go @@ -0,0 +1,2801 @@ +// Code generated by 'ccgo utime/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o utime/utime_illumos_amd64.go -pkgname utime', DO NOT EDIT. + +package utime + +import ( + "math" + "reflect" + "sync/atomic" + "unsafe" +) + +var _ = math.Pi +var _ reflect.Kind +var _ atomic.Value +var _ unsafe.Pointer + +const ( + CLOCKS_PER_SEC = 1000000 // time_iso.h:78:1: + CLOCK_HIGHRES = 4 // time_impl.h:126:1: + CLOCK_MONOTONIC = 4 // time_impl.h:124:1: + CLOCK_PROCESS_CPUTIME_ID = 5 // time_impl.h:125:1: + CLOCK_PROF = 2 // time_impl.h:127:1: + CLOCK_REALTIME = 3 // time_impl.h:123:1: + CLOCK_THREAD_CPUTIME_ID = 2 // time_impl.h:122:1: + CLOCK_VIRTUAL = 1 // time_impl.h:121:1: + DST_AUST = 2 // time.h:115:1: + DST_AUSTALT = 10 // time.h:123:1: + DST_CAN = 6 // time.h:119:1: + DST_EET = 5 // time.h:118:1: + DST_GB = 7 // time.h:120:1: + DST_MET = 4 // time.h:117:1: + DST_NONE = 0 // time.h:113:1: + DST_RUM = 8 // time.h:121:1: + DST_TUR = 9 // time.h:122:1: + DST_USA = 1 // time.h:114:1: + DST_WET = 3 // time.h:116:1: + FD_SETSIZE = 65536 // select.h:88:1: + ITIMER_PROF = 2 // time.h:201:1: + ITIMER_REAL = 0 // time.h:199:1: + ITIMER_REALPROF = 3 // time.h:204:1: + ITIMER_VIRTUAL = 1 // time.h:200:1: + MICROSEC = 1000000 // time.h:246:1: + MILLISEC = 1000 // time.h:245:1: + NANOSEC = 1000000000 // time.h:247:1: + NBBY = 8 // select.h:103:1: + P_MYID = -1 // types.h:632:1: + REG_LABEL_BP = 2 // machtypes.h:44:1: + REG_LABEL_MAX = 8 // machtypes.h:51:1: + REG_LABEL_PC = 0 // machtypes.h:42:1: + REG_LABEL_R12 = 4 // machtypes.h:47:1: + REG_LABEL_R13 = 5 // machtypes.h:48:1: + REG_LABEL_R14 = 6 // machtypes.h:49:1: + REG_LABEL_R15 = 7 // machtypes.h:50:1: + REG_LABEL_RBX = 3 // machtypes.h:46:1: + REG_LABEL_SP = 1 // machtypes.h:43:1: + SEC = 1 // time.h:244:1: + TIMER_ABSTIME = 0x1 // time_impl.h:134:1: + TIMER_RELTIME = 0x0 // time_impl.h:133:1: + TIME_UTC = 0x1 // time.h:306:1: + X_ALIGNMENT_REQUIRED = 1 // isa_defs.h:262:1: + X_BIT_FIELDS_LTOH = 0 // isa_defs.h:245:1: + X_BOOL_ALIGNMENT = 1 // isa_defs.h:248:1: + X_CHAR_ALIGNMENT = 1 // isa_defs.h:249:1: + X_CHAR_IS_SIGNED = 0 // isa_defs.h:247:1: + X_CLOCKID_T = 0 // types.h:568:1: + X_CLOCK_T = 0 // types.h:563:1: + X_COND_MAGIC = 0x4356 // types.h:426:1: + X_DMA_USES_PHYSADDR = 0 // isa_defs.h:281:1: + X_DONT_USE_1275_GENERIC_NAMES = 0 // isa_defs.h:287:1: + X_DOUBLE_ALIGNMENT = 8 // isa_defs.h:256:1: + X_DOUBLE_COMPLEX_ALIGNMENT = 8 // isa_defs.h:257:1: + X_DTRACE_VERSION = 1 // feature_tests.h:490:1: + X_FILE_OFFSET_BITS = 64 // :25:1: + X_FIRMWARE_NEEDS_FDISK = 0 // isa_defs.h:282:1: + X_FLOAT_ALIGNMENT = 4 // isa_defs.h:252:1: + X_FLOAT_COMPLEX_ALIGNMENT = 4 // isa_defs.h:253:1: + X_HAVE_CPUID_INSN = 0 // isa_defs.h:288:1: + X_IEEE_754 = 0 // isa_defs.h:246:1: + X_INT64_TYPE = 0 // int_types.h:82:1: + X_INT_ALIGNMENT = 4 // isa_defs.h:251:1: + X_ISO_CPP_14882_1998 = 0 // feature_tests.h:466:1: + X_ISO_C_9899_1999 = 0 // feature_tests.h:472:1: + X_ISO_C_9899_2011 = 0 // feature_tests.h:478:1: + X_ISO_TIME_ISO_H = 0 // time_iso.h:46:1: + X_LARGEFILE64_SOURCE = 1 // feature_tests.h:231:1: + X_LARGEFILE_SOURCE = 1 // feature_tests.h:235:1: + X_LITTLE_ENDIAN = 0 // isa_defs.h:242:1: + X_LOCALE_T = 0 // time.h:291:1: + X_LONGLONG_TYPE = 0 // feature_tests.h:412:1: + X_LONG_ALIGNMENT = 8 // isa_defs.h:254:1: + X_LONG_DOUBLE_ALIGNMENT = 16 // isa_defs.h:258:1: + X_LONG_DOUBLE_COMPLEX_ALIGNMENT = 16 // isa_defs.h:259:1: + X_LONG_LONG_ALIGNMENT = 8 // isa_defs.h:255:1: + X_LONG_LONG_ALIGNMENT_32 = 4 // isa_defs.h:268:1: + X_LONG_LONG_LTOH = 0 // isa_defs.h:244:1: + X_LP64 = 1 // :286:1: + X_MAX_ALIGNMENT = 16 // isa_defs.h:261:1: + X_MULTI_DATAMODEL = 0 // isa_defs.h:279:1: + X_MUTEX_MAGIC = 0x4d58 // types.h:424:1: + X_NBBY = 8 // select.h:100:1: + X_NORETURN_KYWD = 0 // feature_tests.h:448:1: + X_OFF_T = 0 // types.h:142:1: + X_POINTER_ALIGNMENT = 8 // isa_defs.h:260:1: + X_PSM_MODULES = 0 // isa_defs.h:284:1: + X_PTRDIFF_T = 0 // types.h:112:1: + X_RESTRICT_KYWD = 0 // feature_tests.h:435:1: + X_RTC_CONFIG = 0 // isa_defs.h:285:1: + X_RWL_MAGIC = 0x5257 // types.h:427:1: + X_SEMA_MAGIC = 0x534d // types.h:425:1: + X_SHORT_ALIGNMENT = 2 // isa_defs.h:250:1: + X_SIGEVENT = 0 // time.h:132:1: + X_SIGSET_T = 0 // select.h:73:1: + X_SIGVAL = 0 // time.h:124:1: + X_SIZE_T = 0 // types.h:540:1: + X_SOFT_HOSTID = 0 // isa_defs.h:286:1: + X_SSIZE_T = 0 // types.h:549:1: + X_STACK_GROWS_DOWNWARD = 0 // isa_defs.h:243:1: + X_STDC_C11 = 0 // feature_tests.h:165:1: + X_STDC_C99 = 0 // feature_tests.h:169:1: + X_SUNOS_VTOC_16 = 0 // isa_defs.h:280:1: + X_SUSECONDS_T = 0 // types.h:343:1: + X_SYS_CCOMPILE_H = 0 // ccompile.h:32:1: + X_SYS_FEATURE_TESTS_H = 0 // feature_tests.h:41:1: + X_SYS_INT_TYPES_H = 0 // int_types.h:30:1: + X_SYS_ISA_DEFS_H = 0 // isa_defs.h:30:1: + X_SYS_MACHTYPES_H = 0 // machtypes.h:27:1: + X_SYS_NULL_H = 0 // null.h:17:1: + X_SYS_SELECT_H = 0 // select.h:45:1: + X_SYS_TIME_H = 0 // time.h:27:1: + X_SYS_TIME_IMPL_H = 0 // time_impl.h:38:1: + X_SYS_TYPES_H = 0 // types.h:35:1: + X_SYS_UTIME_H = 0 // utime.h:31:1: + X_TIMER_T = 0 // types.h:573:1: + X_TIME_H = 0 // time.h:37:1: + X_TIME_T = 0 // types.h:558:1: + X_UID_T = 0 // types.h:400:1: + X_UTIME_H = 0 // utime.h:32:1: + X_XOPEN_VERSION = 3 // feature_tests.h:392:1: + Sun = 1 // :172:1: + Unix = 1 // :175:1: +) + +// used for block sizes + +// The boolean_t type has had a varied amount of exposure over the years in +// terms of how its enumeration constants have been exposed. In particular, it +// originally used the __XOPEN_OR_POSIX macro to determine whether to prefix the +// B_TRUE and B_FALSE with an underscore. This check never included the +// question of if we were in a strict ANSI C environment or whether extensions +// were defined. +// +// Compilers such as clang started defaulting to always including an +// XOPEN_SOURCE declaration on behalf of users, but also noted __EXTENSIONS__. +// This would lead most software that had used the non-underscore versions to +// need it. As such, we have adjusted the non-strict XOPEN environment to retain +// its old behavior so as to minimize namespace pollution; however, we instead +// include both variants of the definitions in the generally visible version +// allowing software written in either world to hopefully end up in a good +// place. +// +// This isn't perfect, but should hopefully minimize the pain for folks actually +// trying to build software. +const ( /* types.h:215:1: */ + B_FALSE = 0 + B_TRUE = 1 + X_B_FALSE = 0 + X_B_TRUE = 1 +) + +type Ptrdiff_t = int64 /* :3:26 */ + +type Size_t = uint64 /* :9:23 */ + +type Wchar_t = int32 /* :15:24 */ + +type X__int128_t = struct { + Flo int64 + Fhi int64 +} /* :21:43 */ // must match modernc.org/mathutil.Int128 +type X__uint128_t = struct { + Flo uint64 + Fhi uint64 +} /* :22:44 */ // must match modernc.org/mathutil.Int128 + +type X__builtin_va_list = uintptr /* :46:14 */ +type X__float128 = float64 /* :47:21 */ + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2014 Garrett D'Amore +// Copyright (c) 1988 AT&T +// All Rights Reserved + +// utimbuf is used by utime(2) + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 1997 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2021 Oxide Computer Company + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2015 EveryCity Ltd. All rights reserved. +// Copyright 2019 Joyent, Inc. + +// This file contains definitions designed to enable different compilers +// to be used harmoniously on Solaris systems. + +// Allow for version tests for compiler bugs and features. + +// analogous to lint's PRINTFLIKEn + +// Handle the kernel printf routines that can take '%b' too + +// This one's pretty obvious -- the function never returns + +// The function is 'extern inline' and expects GNU C89 behaviour, not C99 +// behaviour. +// +// Should only be used on 'extern inline' definitions for GCC. + +// The function has control flow such that it may return multiple times (in +// the manner of setjmp or vfork) + +// This is an appropriate label for functions that do not +// modify their arguments, e.g. strlen() + +// This is a stronger form of __pure__. Can be used for functions +// that do not modify their arguments and don't depend on global +// memory. + +// This attribute, attached to a variable, means that the variable is meant to +// be possibly unused. GCC will not produce a warning for this variable. + +// Shorthand versions for readability + +// In release build, disable warnings about variables +// which are used only for debugging. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2016 Joyent, Inc. + +// This header file serves to group a set of well known defines and to +// set these for each instruction set architecture. These defines may +// be divided into two groups; characteristics of the processor and +// implementation choices for Solaris on a processor. +// +// Processor Characteristics: +// +// _LITTLE_ENDIAN / _BIG_ENDIAN: +// The natural byte order of the processor. A pointer to an int points +// to the least/most significant byte of that int. +// +// _STACK_GROWS_UPWARD / _STACK_GROWS_DOWNWARD: +// The processor specific direction of stack growth. A push onto the +// stack increases/decreases the stack pointer, so it stores data at +// successively higher/lower addresses. (Stackless machines ignored +// without regrets). +// +// _LONG_LONG_HTOL / _LONG_LONG_LTOH: +// A pointer to a long long points to the most/least significant long +// within that long long. +// +// _BIT_FIELDS_HTOL / _BIT_FIELDS_LTOH: +// The C compiler assigns bit fields from the high/low to the low/high end +// of an int (most to least significant vs. least to most significant). +// +// _IEEE_754: +// The processor (or supported implementations of the processor) +// supports the ieee-754 floating point standard. No other floating +// point standards are supported (or significant). Any other supported +// floating point formats are expected to be cased on the ISA processor +// symbol. +// +// _CHAR_IS_UNSIGNED / _CHAR_IS_SIGNED: +// The C Compiler implements objects of type `char' as `unsigned' or +// `signed' respectively. This is really an implementation choice of +// the compiler writer, but it is specified in the ABI and tends to +// be uniform across compilers for an instruction set architecture. +// Hence, it has the properties of a processor characteristic. +// +// _CHAR_ALIGNMENT / _SHORT_ALIGNMENT / _INT_ALIGNMENT / _LONG_ALIGNMENT / +// _LONG_LONG_ALIGNMENT / _DOUBLE_ALIGNMENT / _LONG_DOUBLE_ALIGNMENT / +// _POINTER_ALIGNMENT / _FLOAT_ALIGNMENT: +// The ABI defines alignment requirements of each of the primitive +// object types. Some, if not all, may be hardware requirements as +// well. The values are expressed in "byte-alignment" units. +// +// _MAX_ALIGNMENT: +// The most stringent alignment requirement as specified by the ABI. +// Equal to the maximum of all the above _XXX_ALIGNMENT values. +// +// _MAX_ALIGNMENT_TYPE: +// The name of the C type that has the value descried in _MAX_ALIGNMENT. +// +// _ALIGNMENT_REQUIRED: +// True or false (1 or 0) whether or not the hardware requires the ABI +// alignment. +// +// _LONG_LONG_ALIGNMENT_32 +// The 32-bit ABI supported by a 64-bit kernel may have different +// alignment requirements for primitive object types. The value of this +// identifier is expressed in "byte-alignment" units. +// +// _HAVE_CPUID_INSN +// This indicates that the architecture supports the 'cpuid' +// instruction as defined by Intel. (Intel allows other vendors +// to extend the instruction for their own purposes.) +// +// +// Implementation Choices: +// +// _ILP32 / _LP64: +// This specifies the compiler data type implementation as specified in +// the relevant ABI. The choice between these is strongly influenced +// by the underlying hardware, but is not absolutely tied to it. +// Currently only two data type models are supported: +// +// _ILP32: +// Int/Long/Pointer are 32 bits. This is the historical UNIX +// and Solaris implementation. Due to its historical standing, +// this is the default case. +// +// _LP64: +// Long/Pointer are 64 bits, Int is 32 bits. This is the chosen +// implementation for 64-bit ABIs such as SPARC V9. +// +// _I32LPx: +// A compilation environment where 'int' is 32-bit, and +// longs and pointers are simply the same size. +// +// In all cases, Char is 8 bits and Short is 16 bits. +// +// _SUNOS_VTOC_8 / _SUNOS_VTOC_16 / _SVR4_VTOC_16: +// This specifies the form of the disk VTOC (or label): +// +// _SUNOS_VTOC_8: +// This is a VTOC form which is upwardly compatible with the +// SunOS 4.x disk label and allows 8 partitions per disk. +// +// _SUNOS_VTOC_16: +// In this format the incore vtoc image matches the ondisk +// version. It allows 16 slices per disk, and is not +// compatible with the SunOS 4.x disk label. +// +// Note that these are not the only two VTOC forms possible and +// additional forms may be added. One possible form would be the +// SVr4 VTOC form. The symbol for that is reserved now, although +// it is not implemented. +// +// _SVR4_VTOC_16: +// This VTOC form is compatible with the System V Release 4 +// VTOC (as implemented on the SVr4 Intel and 3b ports) with +// 16 partitions per disk. +// +// +// _DMA_USES_PHYSADDR / _DMA_USES_VIRTADDR +// This describes the type of addresses used by system DMA: +// +// _DMA_USES_PHYSADDR: +// This type of DMA, used in the x86 implementation, +// requires physical addresses for DMA buffers. The 24-bit +// addresses used by some legacy boards is the source of the +// "low-memory" (<16MB) requirement for some devices using DMA. +// +// _DMA_USES_VIRTADDR: +// This method of DMA allows the use of virtual addresses for +// DMA transfers. +// +// _FIRMWARE_NEEDS_FDISK / _NO_FDISK_PRESENT +// This indicates the presence/absence of an fdisk table. +// +// _FIRMWARE_NEEDS_FDISK +// The fdisk table is required by system firmware. If present, +// it allows a disk to be subdivided into multiple fdisk +// partitions, each of which is equivalent to a separate, +// virtual disk. This enables the co-existence of multiple +// operating systems on a shared hard disk. +// +// _NO_FDISK_PRESENT +// If the fdisk table is absent, it is assumed that the entire +// media is allocated for a single operating system. +// +// _HAVE_TEM_FIRMWARE +// Defined if this architecture has the (fallback) option of +// using prom_* calls for doing I/O if a suitable kernel driver +// is not available to do it. +// +// _DONT_USE_1275_GENERIC_NAMES +// Controls whether or not device tree node names should +// comply with the IEEE 1275 "Generic Names" Recommended +// Practice. With _DONT_USE_GENERIC_NAMES, device-specific +// names identifying the particular device will be used. +// +// __i386_COMPAT +// This indicates whether the i386 ABI is supported as a *non-native* +// mode for the platform. When this symbol is defined: +// - 32-bit xstat-style system calls are enabled +// - 32-bit xmknod-style system calls are enabled +// - 32-bit system calls use i386 sizes -and- alignments +// +// Note that this is NOT defined for the i386 native environment! +// +// __x86 +// This is ONLY a synonym for defined(__i386) || defined(__amd64) +// which is useful only insofar as these two architectures share +// common attributes. Analogous to __sparc. +// +// _PSM_MODULES +// This indicates whether or not the implementation uses PSM +// modules for processor support, reading /etc/mach from inside +// the kernel to extract a list. +// +// _RTC_CONFIG +// This indicates whether or not the implementation uses /etc/rtc_config +// to configure the real-time clock in the kernel. +// +// _UNIX_KRTLD +// This indicates that the implementation uses a dynamically +// linked unix + krtld to form the core kernel image at boot +// time, or (in the absence of this symbol) a prelinked kernel image. +// +// _OBP +// This indicates the firmware interface is OBP. +// +// _SOFT_HOSTID +// This indicates that the implementation obtains the hostid +// from the file /etc/hostid, rather than from hardware. + +// The following set of definitions characterize Solaris on AMD's +// 64-bit systems. + +// Define the appropriate "processor characteristics" + +// Different alignment constraints for the i386 ABI in compatibility mode + +// Define the appropriate "implementation choices". + +// The feature test macro __i386 is generic for all processors implementing +// the Intel 386 instruction set or a superset of it. Specifically, this +// includes all members of the 386, 486, and Pentium family of processors. + +// Values of _POSIX_C_SOURCE +// +// undefined not a POSIX compilation +// 1 POSIX.1-1990 compilation +// 2 POSIX.2-1992 compilation +// 199309L POSIX.1b-1993 compilation (Real Time) +// 199506L POSIX.1c-1995 compilation (POSIX Threads) +// 200112L POSIX.1-2001 compilation (Austin Group Revision) +// 200809L POSIX.1-2008 compilation + +// The feature test macros __XOPEN_OR_POSIX, _STRICT_STDC, _STRICT_SYMBOLS, +// and _STDC_C99 are Sun implementation specific macros created in order to +// compress common standards specified feature test macros for easier reading. +// These macros should not be used by the application developer as +// unexpected results may occur. Instead, the user should reference +// standards(7) for correct usage of the standards feature test macros. +// +// __XOPEN_OR_POSIX Used in cases where a symbol is defined by both +// X/Open or POSIX or in the negative, when neither +// X/Open or POSIX defines a symbol. +// +// _STRICT_STDC __STDC__ is specified by the C Standards and defined +// by the compiler. For Sun compilers the value of +// __STDC__ is either 1, 0, or not defined based on the +// compilation mode (see cc(1)). When the value of +// __STDC__ is 1 and in the absence of any other feature +// test macros, the namespace available to the application +// is limited to only those symbols defined by the C +// Standard. _STRICT_STDC provides a more readable means +// of identifying symbols defined by the standard, or in +// the negative, symbols that are extensions to the C +// Standard. See additional comments for GNU C differences. +// +// _STDC_C99 __STDC_VERSION__ is specified by the C standards and +// defined by the compiler and indicates the version of +// the C standard. A value of 199901L indicates a +// compiler that complies with ISO/IEC 9899:1999, other- +// wise known as the C99 standard. +// +// _STDC_C11 Like _STDC_C99 except that the value of __STDC_VERSION__ +// is 201112L indicating a compiler that compiles with +// ISO/IEC 9899:2011, otherwise known as the C11 standard. +// +// _STRICT_SYMBOLS Used in cases where symbol visibility is restricted +// by the standards, and the user has not explicitly +// relaxed the strictness via __EXTENSIONS__. + +// ISO/IEC 9899:1990 and it's revisions, ISO/IEC 9899:1999 and ISO/IEC +// 99899:2011 specify the following predefined macro name: +// +// __STDC__ The integer constant 1, intended to indicate a conforming +// implementation. +// +// Furthermore, a strictly conforming program shall use only those features +// of the language and library specified in these standards. A conforming +// implementation shall accept any strictly conforming program. +// +// Based on these requirements, Sun's C compiler defines __STDC__ to 1 for +// strictly conforming environments and __STDC__ to 0 for environments that +// use ANSI C semantics but allow extensions to the C standard. For non-ANSI +// C semantics, Sun's C compiler does not define __STDC__. +// +// The GNU C project interpretation is that __STDC__ should always be defined +// to 1 for compilation modes that accept ANSI C syntax regardless of whether +// or not extensions to the C standard are used. Violations of conforming +// behavior are conditionally flagged as warnings via the use of the +// -pedantic option. In addition to defining __STDC__ to 1, the GNU C +// compiler also defines __STRICT_ANSI__ as a means of specifying strictly +// conforming environments using the -ansi or -std= options. +// +// In the absence of any other compiler options, Sun and GNU set the value +// of __STDC__ as follows when using the following options: +// +// Value of __STDC__ __STRICT_ANSI__ +// +// cc -Xa (default) 0 undefined +// cc -Xt (transitional) 0 undefined +// cc -Xc (strictly conforming) 1 undefined +// cc -Xs (K&R C) undefined undefined +// +// gcc (default) 1 undefined +// gcc -ansi, -std={c89, c99,...) 1 defined +// gcc -traditional (K&R) undefined undefined +// +// The default compilation modes for Sun C compilers versus GNU C compilers +// results in a differing value for __STDC__ which results in a more +// restricted namespace when using Sun compilers. To allow both GNU and Sun +// interpretations to peacefully co-exist, we use the following Sun +// implementation _STRICT_STDC_ macro: + +// Compiler complies with ISO/IEC 9899:1999 or ISO/IEC 9989:2011 + +// Use strict symbol visibility. + +// This is a variant of _STRICT_SYMBOLS that is meant to cover headers that are +// governed by POSIX, but have not been governed by ISO C. One can go two ways +// on what should happen if an application actively includes (not transitively) +// a header that isn't part of the ISO C spec, we opt to say that if someone has +// gone out of there way then they're doing it for a reason and that is an act +// of non-compliance and therefore it's not up to us to hide away every symbol. +// +// In general, prefer using _STRICT_SYMBOLS, but this is here in particular for +// cases where in the past we have only used a POSIX related check and we don't +// wish to make something stricter. Often applications are relying on the +// ability to, or more realistically unwittingly, have _STRICT_STDC declared and +// still use these interfaces. + +// Large file interfaces: +// +// _LARGEFILE_SOURCE +// 1 large file-related additions to POSIX +// interfaces requested (fseeko, etc.) +// _LARGEFILE64_SOURCE +// 1 transitional large-file-related interfaces +// requested (seek64, stat64, etc.) +// +// The corresponding announcement macros are respectively: +// _LFS_LARGEFILE +// _LFS64_LARGEFILE +// (These are set in .) +// +// Requesting _LARGEFILE64_SOURCE implies requesting _LARGEFILE_SOURCE as +// well. +// +// The large file interfaces are made visible regardless of the initial values +// of the feature test macros under certain circumstances: +// - If no explicit standards-conforming environment is requested (neither +// of _POSIX_SOURCE nor _XOPEN_SOURCE is defined and the value of +// __STDC__ does not imply standards conformance). +// - Extended system interfaces are explicitly requested (__EXTENSIONS__ +// is defined). +// - Access to in-kernel interfaces is requested (_KERNEL or _KMEMUSER is +// defined). (Note that this dependency is an artifact of the current +// kernel implementation and may change in future releases.) + +// Large file compilation environment control: +// +// The setting of _FILE_OFFSET_BITS controls the size of various file-related +// types and governs the mapping between file-related source function symbol +// names and the corresponding binary entry points. +// +// In the 32-bit environment, the default value is 32; if not set, set it to +// the default here, to simplify tests in other headers. +// +// In the 64-bit compilation environment, the only value allowed is 64. + +// Use of _XOPEN_SOURCE +// +// The following X/Open specifications are supported: +// +// X/Open Portability Guide, Issue 3 (XPG3) +// X/Open CAE Specification, Issue 4 (XPG4) +// X/Open CAE Specification, Issue 4, Version 2 (XPG4v2) +// X/Open CAE Specification, Issue 5 (XPG5) +// Open Group Technical Standard, Issue 6 (XPG6), also referred to as +// IEEE Std. 1003.1-2001 and ISO/IEC 9945:2002. +// Open Group Technical Standard, Issue 7 (XPG7), also referred to as +// IEEE Std. 1003.1-2008 and ISO/IEC 9945:2009. +// +// XPG4v2 is also referred to as UNIX 95 (SUS or SUSv1). +// XPG5 is also referred to as UNIX 98 or the Single Unix Specification, +// Version 2 (SUSv2) +// XPG6 is the result of a merge of the X/Open and POSIX specifications +// and as such is also referred to as IEEE Std. 1003.1-2001 in +// addition to UNIX 03 and SUSv3. +// XPG7 is also referred to as UNIX 08 and SUSv4. +// +// When writing a conforming X/Open application, as per the specification +// requirements, the appropriate feature test macros must be defined at +// compile time. These are as follows. For more info, see standards(7). +// +// Feature Test Macro Specification +// ------------------------------------------------ ------------- +// _XOPEN_SOURCE XPG3 +// _XOPEN_SOURCE && _XOPEN_VERSION = 4 XPG4 +// _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED = 1 XPG4v2 +// _XOPEN_SOURCE = 500 XPG5 +// _XOPEN_SOURCE = 600 (or POSIX_C_SOURCE=200112L) XPG6 +// _XOPEN_SOURCE = 700 (or POSIX_C_SOURCE=200809L) XPG7 +// +// In order to simplify the guards within the headers, the following +// implementation private test macros have been created. Applications +// must NOT use these private test macros as unexpected results will +// occur. +// +// Note that in general, the use of these private macros is cumulative. +// For example, the use of _XPG3 with no other restrictions on the X/Open +// namespace will make the symbols visible for XPG3 through XPG6 +// compilation environments. The use of _XPG4_2 with no other X/Open +// namespace restrictions indicates that the symbols were introduced in +// XPG4v2 and are therefore visible for XPG4v2 through XPG6 compilation +// environments, but not for XPG3 or XPG4 compilation environments. +// +// _XPG3 X/Open Portability Guide, Issue 3 (XPG3) +// _XPG4 X/Open CAE Specification, Issue 4 (XPG4) +// _XPG4_2 X/Open CAE Specification, Issue 4, Version 2 (XPG4v2/UNIX 95/SUS) +// _XPG5 X/Open CAE Specification, Issue 5 (XPG5/UNIX 98/SUSv2) +// _XPG6 Open Group Technical Standard, Issue 6 (XPG6/UNIX 03/SUSv3) +// _XPG7 Open Group Technical Standard, Issue 7 (XPG7/UNIX 08/SUSv4) + +// X/Open Portability Guide, Issue 3 + +// _XOPEN_VERSION is defined by the X/Open specifications and is not +// normally defined by the application, except in the case of an XPG4 +// application. On the implementation side, _XOPEN_VERSION defined with +// the value of 3 indicates an XPG3 application. _XOPEN_VERSION defined +// with the value of 4 indicates an XPG4 or XPG4v2 (UNIX 95) application. +// _XOPEN_VERSION defined with a value of 500 indicates an XPG5 (UNIX 98) +// application and with a value of 600 indicates an XPG6 (UNIX 03) +// application and with a value of 700 indicates an XPG7 (UNIX 08). +// The appropriate version is determined by the use of the +// feature test macros described earlier. The value of _XOPEN_VERSION +// defaults to 3 otherwise indicating support for XPG3 applications. + +// ANSI C and ISO 9899:1990 say the type long long doesn't exist in strictly +// conforming environments. ISO 9899:1999 says it does. +// +// The presence of _LONGLONG_TYPE says "long long exists" which is therefore +// defined in all but strictly conforming environments that disallow it. + +// The following macro defines a value for the ISO C99 restrict +// keyword so that _RESTRICT_KYWD resolves to "restrict" if +// an ISO C99 compiler is used, "__restrict" for c++ and "" (null string) +// if any other compiler is used. This allows for the use of single +// prototype declarations regardless of compiler version. + +// The following macro defines a value for the ISO C11 _Noreturn +// keyword so that _NORETURN_KYWD resolves to "_Noreturn" if +// an ISO C11 compiler is used and "" (null string) if any other +// compiler is used. This allows for the use of single prototype +// declarations regardless of compiler version. + +// ISO/IEC 9899:2011 Annex K + +// The following macro indicates header support for the ANSI C++ +// standard. The ISO/IEC designation for this is ISO/IEC FDIS 14882. + +// The following macro indicates header support for the C99 standard, +// ISO/IEC 9899:1999, Programming Languages - C. + +// The following macro indicates header support for the C11 standard, +// ISO/IEC 9899:2011, Programming Languages - C. + +// The following macro indicates header support for the C11 standard, +// ISO/IEC 9899:2011 Annex K, Programming Languages - C. + +// The following macro indicates header support for DTrace. The value is an +// integer that corresponds to the major version number for DTrace. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2016 Joyent, Inc. + +// Machine dependent definitions moved to . +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2007 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Machine dependent types: +// +// intel ia32 Version + +type X_label_t = struct{ Fval [8]int64 } /* machtypes.h:59:9 */ + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2014 Garrett D'Amore +// Copyright (c) 1988 AT&T +// All Rights Reserved + +// utimbuf is used by utime(2) + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 1997 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2021 Oxide Computer Company + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2015 EveryCity Ltd. All rights reserved. +// Copyright 2019 Joyent, Inc. + +// This file contains definitions designed to enable different compilers +// to be used harmoniously on Solaris systems. + +// Allow for version tests for compiler bugs and features. + +// analogous to lint's PRINTFLIKEn + +// Handle the kernel printf routines that can take '%b' too + +// This one's pretty obvious -- the function never returns + +// The function is 'extern inline' and expects GNU C89 behaviour, not C99 +// behaviour. +// +// Should only be used on 'extern inline' definitions for GCC. + +// The function has control flow such that it may return multiple times (in +// the manner of setjmp or vfork) + +// This is an appropriate label for functions that do not +// modify their arguments, e.g. strlen() + +// This is a stronger form of __pure__. Can be used for functions +// that do not modify their arguments and don't depend on global +// memory. + +// This attribute, attached to a variable, means that the variable is meant to +// be possibly unused. GCC will not produce a warning for this variable. + +// Shorthand versions for readability + +// In release build, disable warnings about variables +// which are used only for debugging. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2016 Joyent, Inc. + +// This header file serves to group a set of well known defines and to +// set these for each instruction set architecture. These defines may +// be divided into two groups; characteristics of the processor and +// implementation choices for Solaris on a processor. +// +// Processor Characteristics: +// +// _LITTLE_ENDIAN / _BIG_ENDIAN: +// The natural byte order of the processor. A pointer to an int points +// to the least/most significant byte of that int. +// +// _STACK_GROWS_UPWARD / _STACK_GROWS_DOWNWARD: +// The processor specific direction of stack growth. A push onto the +// stack increases/decreases the stack pointer, so it stores data at +// successively higher/lower addresses. (Stackless machines ignored +// without regrets). +// +// _LONG_LONG_HTOL / _LONG_LONG_LTOH: +// A pointer to a long long points to the most/least significant long +// within that long long. +// +// _BIT_FIELDS_HTOL / _BIT_FIELDS_LTOH: +// The C compiler assigns bit fields from the high/low to the low/high end +// of an int (most to least significant vs. least to most significant). +// +// _IEEE_754: +// The processor (or supported implementations of the processor) +// supports the ieee-754 floating point standard. No other floating +// point standards are supported (or significant). Any other supported +// floating point formats are expected to be cased on the ISA processor +// symbol. +// +// _CHAR_IS_UNSIGNED / _CHAR_IS_SIGNED: +// The C Compiler implements objects of type `char' as `unsigned' or +// `signed' respectively. This is really an implementation choice of +// the compiler writer, but it is specified in the ABI and tends to +// be uniform across compilers for an instruction set architecture. +// Hence, it has the properties of a processor characteristic. +// +// _CHAR_ALIGNMENT / _SHORT_ALIGNMENT / _INT_ALIGNMENT / _LONG_ALIGNMENT / +// _LONG_LONG_ALIGNMENT / _DOUBLE_ALIGNMENT / _LONG_DOUBLE_ALIGNMENT / +// _POINTER_ALIGNMENT / _FLOAT_ALIGNMENT: +// The ABI defines alignment requirements of each of the primitive +// object types. Some, if not all, may be hardware requirements as +// well. The values are expressed in "byte-alignment" units. +// +// _MAX_ALIGNMENT: +// The most stringent alignment requirement as specified by the ABI. +// Equal to the maximum of all the above _XXX_ALIGNMENT values. +// +// _MAX_ALIGNMENT_TYPE: +// The name of the C type that has the value descried in _MAX_ALIGNMENT. +// +// _ALIGNMENT_REQUIRED: +// True or false (1 or 0) whether or not the hardware requires the ABI +// alignment. +// +// _LONG_LONG_ALIGNMENT_32 +// The 32-bit ABI supported by a 64-bit kernel may have different +// alignment requirements for primitive object types. The value of this +// identifier is expressed in "byte-alignment" units. +// +// _HAVE_CPUID_INSN +// This indicates that the architecture supports the 'cpuid' +// instruction as defined by Intel. (Intel allows other vendors +// to extend the instruction for their own purposes.) +// +// +// Implementation Choices: +// +// _ILP32 / _LP64: +// This specifies the compiler data type implementation as specified in +// the relevant ABI. The choice between these is strongly influenced +// by the underlying hardware, but is not absolutely tied to it. +// Currently only two data type models are supported: +// +// _ILP32: +// Int/Long/Pointer are 32 bits. This is the historical UNIX +// and Solaris implementation. Due to its historical standing, +// this is the default case. +// +// _LP64: +// Long/Pointer are 64 bits, Int is 32 bits. This is the chosen +// implementation for 64-bit ABIs such as SPARC V9. +// +// _I32LPx: +// A compilation environment where 'int' is 32-bit, and +// longs and pointers are simply the same size. +// +// In all cases, Char is 8 bits and Short is 16 bits. +// +// _SUNOS_VTOC_8 / _SUNOS_VTOC_16 / _SVR4_VTOC_16: +// This specifies the form of the disk VTOC (or label): +// +// _SUNOS_VTOC_8: +// This is a VTOC form which is upwardly compatible with the +// SunOS 4.x disk label and allows 8 partitions per disk. +// +// _SUNOS_VTOC_16: +// In this format the incore vtoc image matches the ondisk +// version. It allows 16 slices per disk, and is not +// compatible with the SunOS 4.x disk label. +// +// Note that these are not the only two VTOC forms possible and +// additional forms may be added. One possible form would be the +// SVr4 VTOC form. The symbol for that is reserved now, although +// it is not implemented. +// +// _SVR4_VTOC_16: +// This VTOC form is compatible with the System V Release 4 +// VTOC (as implemented on the SVr4 Intel and 3b ports) with +// 16 partitions per disk. +// +// +// _DMA_USES_PHYSADDR / _DMA_USES_VIRTADDR +// This describes the type of addresses used by system DMA: +// +// _DMA_USES_PHYSADDR: +// This type of DMA, used in the x86 implementation, +// requires physical addresses for DMA buffers. The 24-bit +// addresses used by some legacy boards is the source of the +// "low-memory" (<16MB) requirement for some devices using DMA. +// +// _DMA_USES_VIRTADDR: +// This method of DMA allows the use of virtual addresses for +// DMA transfers. +// +// _FIRMWARE_NEEDS_FDISK / _NO_FDISK_PRESENT +// This indicates the presence/absence of an fdisk table. +// +// _FIRMWARE_NEEDS_FDISK +// The fdisk table is required by system firmware. If present, +// it allows a disk to be subdivided into multiple fdisk +// partitions, each of which is equivalent to a separate, +// virtual disk. This enables the co-existence of multiple +// operating systems on a shared hard disk. +// +// _NO_FDISK_PRESENT +// If the fdisk table is absent, it is assumed that the entire +// media is allocated for a single operating system. +// +// _HAVE_TEM_FIRMWARE +// Defined if this architecture has the (fallback) option of +// using prom_* calls for doing I/O if a suitable kernel driver +// is not available to do it. +// +// _DONT_USE_1275_GENERIC_NAMES +// Controls whether or not device tree node names should +// comply with the IEEE 1275 "Generic Names" Recommended +// Practice. With _DONT_USE_GENERIC_NAMES, device-specific +// names identifying the particular device will be used. +// +// __i386_COMPAT +// This indicates whether the i386 ABI is supported as a *non-native* +// mode for the platform. When this symbol is defined: +// - 32-bit xstat-style system calls are enabled +// - 32-bit xmknod-style system calls are enabled +// - 32-bit system calls use i386 sizes -and- alignments +// +// Note that this is NOT defined for the i386 native environment! +// +// __x86 +// This is ONLY a synonym for defined(__i386) || defined(__amd64) +// which is useful only insofar as these two architectures share +// common attributes. Analogous to __sparc. +// +// _PSM_MODULES +// This indicates whether or not the implementation uses PSM +// modules for processor support, reading /etc/mach from inside +// the kernel to extract a list. +// +// _RTC_CONFIG +// This indicates whether or not the implementation uses /etc/rtc_config +// to configure the real-time clock in the kernel. +// +// _UNIX_KRTLD +// This indicates that the implementation uses a dynamically +// linked unix + krtld to form the core kernel image at boot +// time, or (in the absence of this symbol) a prelinked kernel image. +// +// _OBP +// This indicates the firmware interface is OBP. +// +// _SOFT_HOSTID +// This indicates that the implementation obtains the hostid +// from the file /etc/hostid, rather than from hardware. + +// The following set of definitions characterize Solaris on AMD's +// 64-bit systems. + +// Define the appropriate "processor characteristics" + +// Different alignment constraints for the i386 ABI in compatibility mode + +// Define the appropriate "implementation choices". + +// The feature test macro __i386 is generic for all processors implementing +// the Intel 386 instruction set or a superset of it. Specifically, this +// includes all members of the 386, 486, and Pentium family of processors. + +// Values of _POSIX_C_SOURCE +// +// undefined not a POSIX compilation +// 1 POSIX.1-1990 compilation +// 2 POSIX.2-1992 compilation +// 199309L POSIX.1b-1993 compilation (Real Time) +// 199506L POSIX.1c-1995 compilation (POSIX Threads) +// 200112L POSIX.1-2001 compilation (Austin Group Revision) +// 200809L POSIX.1-2008 compilation + +// The feature test macros __XOPEN_OR_POSIX, _STRICT_STDC, _STRICT_SYMBOLS, +// and _STDC_C99 are Sun implementation specific macros created in order to +// compress common standards specified feature test macros for easier reading. +// These macros should not be used by the application developer as +// unexpected results may occur. Instead, the user should reference +// standards(7) for correct usage of the standards feature test macros. +// +// __XOPEN_OR_POSIX Used in cases where a symbol is defined by both +// X/Open or POSIX or in the negative, when neither +// X/Open or POSIX defines a symbol. +// +// _STRICT_STDC __STDC__ is specified by the C Standards and defined +// by the compiler. For Sun compilers the value of +// __STDC__ is either 1, 0, or not defined based on the +// compilation mode (see cc(1)). When the value of +// __STDC__ is 1 and in the absence of any other feature +// test macros, the namespace available to the application +// is limited to only those symbols defined by the C +// Standard. _STRICT_STDC provides a more readable means +// of identifying symbols defined by the standard, or in +// the negative, symbols that are extensions to the C +// Standard. See additional comments for GNU C differences. +// +// _STDC_C99 __STDC_VERSION__ is specified by the C standards and +// defined by the compiler and indicates the version of +// the C standard. A value of 199901L indicates a +// compiler that complies with ISO/IEC 9899:1999, other- +// wise known as the C99 standard. +// +// _STDC_C11 Like _STDC_C99 except that the value of __STDC_VERSION__ +// is 201112L indicating a compiler that compiles with +// ISO/IEC 9899:2011, otherwise known as the C11 standard. +// +// _STRICT_SYMBOLS Used in cases where symbol visibility is restricted +// by the standards, and the user has not explicitly +// relaxed the strictness via __EXTENSIONS__. + +// ISO/IEC 9899:1990 and it's revisions, ISO/IEC 9899:1999 and ISO/IEC +// 99899:2011 specify the following predefined macro name: +// +// __STDC__ The integer constant 1, intended to indicate a conforming +// implementation. +// +// Furthermore, a strictly conforming program shall use only those features +// of the language and library specified in these standards. A conforming +// implementation shall accept any strictly conforming program. +// +// Based on these requirements, Sun's C compiler defines __STDC__ to 1 for +// strictly conforming environments and __STDC__ to 0 for environments that +// use ANSI C semantics but allow extensions to the C standard. For non-ANSI +// C semantics, Sun's C compiler does not define __STDC__. +// +// The GNU C project interpretation is that __STDC__ should always be defined +// to 1 for compilation modes that accept ANSI C syntax regardless of whether +// or not extensions to the C standard are used. Violations of conforming +// behavior are conditionally flagged as warnings via the use of the +// -pedantic option. In addition to defining __STDC__ to 1, the GNU C +// compiler also defines __STRICT_ANSI__ as a means of specifying strictly +// conforming environments using the -ansi or -std= options. +// +// In the absence of any other compiler options, Sun and GNU set the value +// of __STDC__ as follows when using the following options: +// +// Value of __STDC__ __STRICT_ANSI__ +// +// cc -Xa (default) 0 undefined +// cc -Xt (transitional) 0 undefined +// cc -Xc (strictly conforming) 1 undefined +// cc -Xs (K&R C) undefined undefined +// +// gcc (default) 1 undefined +// gcc -ansi, -std={c89, c99,...) 1 defined +// gcc -traditional (K&R) undefined undefined +// +// The default compilation modes for Sun C compilers versus GNU C compilers +// results in a differing value for __STDC__ which results in a more +// restricted namespace when using Sun compilers. To allow both GNU and Sun +// interpretations to peacefully co-exist, we use the following Sun +// implementation _STRICT_STDC_ macro: + +// Compiler complies with ISO/IEC 9899:1999 or ISO/IEC 9989:2011 + +// Use strict symbol visibility. + +// This is a variant of _STRICT_SYMBOLS that is meant to cover headers that are +// governed by POSIX, but have not been governed by ISO C. One can go two ways +// on what should happen if an application actively includes (not transitively) +// a header that isn't part of the ISO C spec, we opt to say that if someone has +// gone out of there way then they're doing it for a reason and that is an act +// of non-compliance and therefore it's not up to us to hide away every symbol. +// +// In general, prefer using _STRICT_SYMBOLS, but this is here in particular for +// cases where in the past we have only used a POSIX related check and we don't +// wish to make something stricter. Often applications are relying on the +// ability to, or more realistically unwittingly, have _STRICT_STDC declared and +// still use these interfaces. + +// Large file interfaces: +// +// _LARGEFILE_SOURCE +// 1 large file-related additions to POSIX +// interfaces requested (fseeko, etc.) +// _LARGEFILE64_SOURCE +// 1 transitional large-file-related interfaces +// requested (seek64, stat64, etc.) +// +// The corresponding announcement macros are respectively: +// _LFS_LARGEFILE +// _LFS64_LARGEFILE +// (These are set in .) +// +// Requesting _LARGEFILE64_SOURCE implies requesting _LARGEFILE_SOURCE as +// well. +// +// The large file interfaces are made visible regardless of the initial values +// of the feature test macros under certain circumstances: +// - If no explicit standards-conforming environment is requested (neither +// of _POSIX_SOURCE nor _XOPEN_SOURCE is defined and the value of +// __STDC__ does not imply standards conformance). +// - Extended system interfaces are explicitly requested (__EXTENSIONS__ +// is defined). +// - Access to in-kernel interfaces is requested (_KERNEL or _KMEMUSER is +// defined). (Note that this dependency is an artifact of the current +// kernel implementation and may change in future releases.) + +// Large file compilation environment control: +// +// The setting of _FILE_OFFSET_BITS controls the size of various file-related +// types and governs the mapping between file-related source function symbol +// names and the corresponding binary entry points. +// +// In the 32-bit environment, the default value is 32; if not set, set it to +// the default here, to simplify tests in other headers. +// +// In the 64-bit compilation environment, the only value allowed is 64. + +// Use of _XOPEN_SOURCE +// +// The following X/Open specifications are supported: +// +// X/Open Portability Guide, Issue 3 (XPG3) +// X/Open CAE Specification, Issue 4 (XPG4) +// X/Open CAE Specification, Issue 4, Version 2 (XPG4v2) +// X/Open CAE Specification, Issue 5 (XPG5) +// Open Group Technical Standard, Issue 6 (XPG6), also referred to as +// IEEE Std. 1003.1-2001 and ISO/IEC 9945:2002. +// Open Group Technical Standard, Issue 7 (XPG7), also referred to as +// IEEE Std. 1003.1-2008 and ISO/IEC 9945:2009. +// +// XPG4v2 is also referred to as UNIX 95 (SUS or SUSv1). +// XPG5 is also referred to as UNIX 98 or the Single Unix Specification, +// Version 2 (SUSv2) +// XPG6 is the result of a merge of the X/Open and POSIX specifications +// and as such is also referred to as IEEE Std. 1003.1-2001 in +// addition to UNIX 03 and SUSv3. +// XPG7 is also referred to as UNIX 08 and SUSv4. +// +// When writing a conforming X/Open application, as per the specification +// requirements, the appropriate feature test macros must be defined at +// compile time. These are as follows. For more info, see standards(7). +// +// Feature Test Macro Specification +// ------------------------------------------------ ------------- +// _XOPEN_SOURCE XPG3 +// _XOPEN_SOURCE && _XOPEN_VERSION = 4 XPG4 +// _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED = 1 XPG4v2 +// _XOPEN_SOURCE = 500 XPG5 +// _XOPEN_SOURCE = 600 (or POSIX_C_SOURCE=200112L) XPG6 +// _XOPEN_SOURCE = 700 (or POSIX_C_SOURCE=200809L) XPG7 +// +// In order to simplify the guards within the headers, the following +// implementation private test macros have been created. Applications +// must NOT use these private test macros as unexpected results will +// occur. +// +// Note that in general, the use of these private macros is cumulative. +// For example, the use of _XPG3 with no other restrictions on the X/Open +// namespace will make the symbols visible for XPG3 through XPG6 +// compilation environments. The use of _XPG4_2 with no other X/Open +// namespace restrictions indicates that the symbols were introduced in +// XPG4v2 and are therefore visible for XPG4v2 through XPG6 compilation +// environments, but not for XPG3 or XPG4 compilation environments. +// +// _XPG3 X/Open Portability Guide, Issue 3 (XPG3) +// _XPG4 X/Open CAE Specification, Issue 4 (XPG4) +// _XPG4_2 X/Open CAE Specification, Issue 4, Version 2 (XPG4v2/UNIX 95/SUS) +// _XPG5 X/Open CAE Specification, Issue 5 (XPG5/UNIX 98/SUSv2) +// _XPG6 Open Group Technical Standard, Issue 6 (XPG6/UNIX 03/SUSv3) +// _XPG7 Open Group Technical Standard, Issue 7 (XPG7/UNIX 08/SUSv4) + +// X/Open Portability Guide, Issue 3 + +// _XOPEN_VERSION is defined by the X/Open specifications and is not +// normally defined by the application, except in the case of an XPG4 +// application. On the implementation side, _XOPEN_VERSION defined with +// the value of 3 indicates an XPG3 application. _XOPEN_VERSION defined +// with the value of 4 indicates an XPG4 or XPG4v2 (UNIX 95) application. +// _XOPEN_VERSION defined with a value of 500 indicates an XPG5 (UNIX 98) +// application and with a value of 600 indicates an XPG6 (UNIX 03) +// application and with a value of 700 indicates an XPG7 (UNIX 08). +// The appropriate version is determined by the use of the +// feature test macros described earlier. The value of _XOPEN_VERSION +// defaults to 3 otherwise indicating support for XPG3 applications. + +// ANSI C and ISO 9899:1990 say the type long long doesn't exist in strictly +// conforming environments. ISO 9899:1999 says it does. +// +// The presence of _LONGLONG_TYPE says "long long exists" which is therefore +// defined in all but strictly conforming environments that disallow it. + +// The following macro defines a value for the ISO C99 restrict +// keyword so that _RESTRICT_KYWD resolves to "restrict" if +// an ISO C99 compiler is used, "__restrict" for c++ and "" (null string) +// if any other compiler is used. This allows for the use of single +// prototype declarations regardless of compiler version. + +// The following macro defines a value for the ISO C11 _Noreturn +// keyword so that _NORETURN_KYWD resolves to "_Noreturn" if +// an ISO C11 compiler is used and "" (null string) if any other +// compiler is used. This allows for the use of single prototype +// declarations regardless of compiler version. + +// ISO/IEC 9899:2011 Annex K + +// The following macro indicates header support for the ANSI C++ +// standard. The ISO/IEC designation for this is ISO/IEC FDIS 14882. + +// The following macro indicates header support for the C99 standard, +// ISO/IEC 9899:1999, Programming Languages - C. + +// The following macro indicates header support for the C11 standard, +// ISO/IEC 9899:2011, Programming Languages - C. + +// The following macro indicates header support for the C11 standard, +// ISO/IEC 9899:2011 Annex K, Programming Languages - C. + +// The following macro indicates header support for DTrace. The value is an +// integer that corresponds to the major version number for DTrace. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2016 Joyent, Inc. + +// Machine dependent definitions moved to . +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2007 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Machine dependent types: +// +// intel ia32 Version + +type Label_t = X_label_t /* machtypes.h:59:54 */ + +type Lock_t = uint8 /* machtypes.h:63:23 */ // lock work for busy wait + +// Include fixed width type declarations proposed by the ISO/JTC1/SC22/WG14 C +// committee's working draft for the revision of the current ISO C standard, +// ISO/IEC 9899:1990 Programming language - C. These are not currently +// required by any standard but constitute a useful, general purpose set +// of type definitions which is namespace clean with respect to all standards. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2014 Garrett D'Amore +// +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// This file, , is part of the Sun Microsystems implementation +// of defined in the ISO C standard, ISO/IEC 9899:1999 +// Programming language - C. +// +// Programs/Modules should not directly include this file. Access to the +// types defined in this file should be through the inclusion of one of the +// following files: +// +// Provides only the "_t" types defined in this +// file which is a subset of the contents of +// . (This can be appropriate for +// all programs/modules except those claiming +// ANSI-C conformance.) +// +// Provides the Kernel and Driver appropriate +// components of . +// +// For use by applications. +// +// See these files for more details. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Basic / Extended integer types +// +// The following defines the basic fixed-size integer types. +// +// Implementations are free to typedef them to Standard C integer types or +// extensions that they support. If an implementation does not support one +// of the particular integer data types below, then it should not define the +// typedefs and macros corresponding to that data type. Note that int8_t +// is not defined in -Xs mode on ISAs for which the ABI specifies "char" +// as an unsigned entity because there is no way to define an eight bit +// signed integral. +type Int8_t = int8 /* int_types.h:75:16 */ +type Int16_t = int16 /* int_types.h:79:17 */ +type Int32_t = int32 /* int_types.h:80:15 */ +type Int64_t = int64 /* int_types.h:83:16 */ + +type Uint8_t = uint8 /* int_types.h:91:24 */ +type Uint16_t = uint16 /* int_types.h:92:25 */ +type Uint32_t = uint32 /* int_types.h:93:23 */ +type Uint64_t = uint64 /* int_types.h:95:24 */ + +// intmax_t and uintmax_t are to be the longest (in number of bits) signed +// and unsigned integer types supported by the implementation. +type Intmax_t = int64 /* int_types.h:107:19 */ +type Uintmax_t = uint64 /* int_types.h:108:19 */ + +// intptr_t and uintptr_t are signed and unsigned integer types large enough +// to hold any data pointer; that is, data pointers can be assigned into or +// from these integer types without losing precision. +type Intptr_t = int64 /* int_types.h:120:16 */ +type Uintptr_t = uint64 /* int_types.h:121:24 */ + +// The following define the fastest integer types that can hold the +// specified number of bits. +type Int_fast8_t = int8 /* int_types.h:132:16 */ +type Int_fast16_t = int32 /* int_types.h:136:15 */ +type Int_fast32_t = int32 /* int_types.h:137:15 */ +type Int_fast64_t = int64 /* int_types.h:139:16 */ + +type Uint_fast8_t = uint8 /* int_types.h:146:24 */ +type Uint_fast16_t = uint32 /* int_types.h:147:23 */ +type Uint_fast32_t = uint32 /* int_types.h:148:23 */ +type Uint_fast64_t = uint64 /* int_types.h:150:24 */ + +// The following define the smallest integer types that can hold the +// specified number of bits. +type Int_least8_t = int8 /* int_types.h:162:16 */ +type Int_least16_t = int16 /* int_types.h:166:17 */ +type Int_least32_t = int32 /* int_types.h:167:15 */ +type Int_least64_t = int64 /* int_types.h:169:16 */ + +// If these are changed, please update char16_t and char32_t in head/uchar.h. +type Uint_least8_t = uint8 /* int_types.h:179:24 */ +type Uint_least16_t = uint16 /* int_types.h:180:25 */ +type Uint_least32_t = uint32 /* int_types.h:181:23 */ +type Uint_least64_t = uint64 /* int_types.h:183:24 */ + +// Strictly conforming ANSI C environments prior to the 1999 +// revision of the C Standard (ISO/IEC 9899:1999) do not have +// the long long data type. +type Longlong_t = int64 /* types.h:72:20 */ +type U_longlong_t = uint64 /* types.h:73:28 */ + +// These types (t_{u}scalar_t) exist because the XTI/TPI/DLPI standards had +// to use them instead of int32_t and uint32_t because DEC had +// shipped 64-bit wide. +type T_scalar_t = int32 /* types.h:92:18 */ +type T_uscalar_t = uint32 /* types.h:93:18 */ + +// POSIX Extensions +type Uchar_t = uint8 /* types.h:102:23 */ +type Ushort_t = uint16 /* types.h:103:24 */ +type Uint_t = uint32 /* types.h:104:22 */ +type Ulong_t = uint64 /* types.h:105:23 */ + +type Caddr_t = uintptr /* types.h:107:15 */ // ? type +type Daddr_t = int64 /* types.h:108:15 */ // type +type Cnt_t = int16 /* types.h:109:16 */ // pointer difference + +// VM-related types +type Pfn_t = uint64 /* types.h:123:18 */ // page frame number +type Pgcnt_t = uint64 /* types.h:124:18 */ // number of pages +type Spgcnt_t = int64 /* types.h:125:15 */ // signed number of pages + +type Use_t = uint8 /* types.h:127:18 */ // use count for swap. +type Sysid_t = int16 /* types.h:128:16 */ +type Index_t = int16 /* types.h:129:16 */ +type Timeout_id_t = uintptr /* types.h:130:15 */ // opaque handle from timeout(9F) +type Bufcall_id_t = uintptr /* types.h:131:15 */ // opaque handle from bufcall(9F) + +// The size of off_t and related types depends on the setting of +// _FILE_OFFSET_BITS. (Note that other system headers define other types +// related to those defined here.) +// +// If _LARGEFILE64_SOURCE is defined, variants of these types that are +// explicitly 64 bits wide become available. + +type Off_t = int64 /* types.h:145:15 */ // offsets within files + +type Off64_t = int64 /* types.h:152:16 */ // offsets within files + +type Ino_t = uint64 /* types.h:161:18 */ // expanded inode type +type Blkcnt_t = int64 /* types.h:162:15 */ // count of file blocks +type Fsblkcnt_t = uint64 /* types.h:163:18 */ // count of file system blocks +type Fsfilcnt_t = uint64 /* types.h:164:18 */ // count of files + +type Ino64_t = uint64 /* types.h:174:16 */ // expanded inode type +type Blkcnt64_t = int64 /* types.h:175:18 */ // count of file blocks +type Fsblkcnt64_t = uint64 /* types.h:176:20 */ // count of file system blocks +type Fsfilcnt64_t = uint64 /* types.h:177:20 */ // count of files + +type Blksize_t = int32 /* types.h:187:14 */ // used for block sizes + +// The boolean_t type has had a varied amount of exposure over the years in +// terms of how its enumeration constants have been exposed. In particular, it +// originally used the __XOPEN_OR_POSIX macro to determine whether to prefix the +// B_TRUE and B_FALSE with an underscore. This check never included the +// question of if we were in a strict ANSI C environment or whether extensions +// were defined. +// +// Compilers such as clang started defaulting to always including an +// XOPEN_SOURCE declaration on behalf of users, but also noted __EXTENSIONS__. +// This would lead most software that had used the non-underscore versions to +// need it. As such, we have adjusted the non-strict XOPEN environment to retain +// its old behavior so as to minimize namespace pollution; however, we instead +// include both variants of the definitions in the generally visible version +// allowing software written in either world to hopefully end up in a good +// place. +// +// This isn't perfect, but should hopefully minimize the pain for folks actually +// trying to build software. +type Boolean_t = uint32 /* types.h:215:69 */ + +// The {u,}pad64_t types can be used in structures such that those structures +// may be accessed by code produced by compilation environments which don't +// support a 64 bit integral datatype. The intention is not to allow +// use of these fields in such environments, but to maintain the alignment +// and offsets of the structure. +// +// Similar comments for {u,}pad128_t. +// +// Note that these types do NOT generate any stronger alignment constraints +// than those available in the underlying ABI. See +type Pad64_t = int64 /* types.h:240:18 */ +type Upad64_t = uint64 /* types.h:241:18 */ + +type Pad128_t = struct { + F_q float64 + F__ccgo_pad1 [8]byte +} /* types.h:257:3 */ + +type Upad128_t = struct { + F_q float64 + F__ccgo_pad1 [8]byte +} /* types.h:262:3 */ + +type Offset_t = int64 /* types.h:264:20 */ +type U_offset_t = uint64 /* types.h:265:22 */ +type Len_t = uint64 /* types.h:266:22 */ +type Diskaddr_t = uint64 /* types.h:267:22 */ + +// Definitions remaining from previous partial support for 64-bit file +// offsets. This partial support for devices greater than 2gb requires +// compiler support for long long. +type Lloff_t = struct{ F_f int64 } /* types.h:284:3 */ + +type Lldaddr_t = struct{ F_f int64 } /* types.h:304:3 */ + +type K_fltset_t = uint32 /* types.h:317:16 */ // kernel fault set type + +// The following type is for various kinds of identifiers. The +// actual type must be the same for all since some system calls +// (such as sigsend) take arguments that may be any of these +// types. The enumeration type idtype_t defined in sys/procset.h +// is used to indicate what type of id is being specified -- +// a process id, process group id, session id, scheduling class id, +// user id, group id, project id, task id or zone id. +type Id_t = int32 /* types.h:329:14 */ + +type Lgrp_id_t = int32 /* types.h:334:15 */ // lgroup ID + +// Type useconds_t is an unsigned integral type capable of storing +// values at least in the range of zero to 1,000,000. +type Useconds_t = uint32 /* types.h:340:17 */ // Time, in microseconds + +type Suseconds_t = int64 /* types.h:344:14 */ // signed # of microseconds + +// Typedefs for dev_t components. +type Major_t = uint32 /* types.h:351:16 */ // major part of device number +type Minor_t = uint32 /* types.h:352:16 */ // minor part of device number + +// The data type of a thread priority. +type Pri_t = int16 /* types.h:361:15 */ + +// The data type for a CPU flags field. (Can be extended to larger unsigned +// types, if needed, limited by ability to update atomically.) +type Cpu_flag_t = uint16 /* types.h:367:18 */ + +// For compatibility reasons the following typedefs (prefixed o_) +// can't grow regardless of the EFT definition. Although, +// applications should not explicitly use these typedefs +// they may be included via a system header definition. +// WARNING: These typedefs may be removed in a future +// release. +// +// ex. the definitions in s5inode.h (now obsoleted) +// remained small to preserve compatibility +// in the S5 file system type. +type O_mode_t = uint16 /* types.h:380:18 */ // old file attribute type +type O_dev_t = int16 /* types.h:381:15 */ // old device type +type O_uid_t = uint16 /* types.h:382:18 */ // old UID type +type O_gid_t = uint16 /* types.h:383:17 */ // old GID type +type O_nlink_t = int16 /* types.h:384:15 */ // old file link type +type O_pid_t = int16 /* types.h:385:15 */ // old process id type +type O_ino_t = uint16 /* types.h:386:18 */ // old inode type + +// POSIX and XOPEN Declarations +type Key_t = int32 /* types.h:392:13 */ // IPC key type +type Mode_t = uint32 /* types.h:394:16 */ // file attribute type + +type Uid_t = uint32 /* types.h:401:22 */ // UID type + +type Gid_t = uint32 /* types.h:404:15 */ // GID type + +type Datalink_id_t = uint32 /* types.h:406:18 */ +type Vrid_t = uint32 /* types.h:407:18 */ + +type Taskid_t = int32 /* types.h:409:17 */ +type Projid_t = int32 /* types.h:410:17 */ +type Poolid_t = int32 /* types.h:411:14 */ +type Zoneid_t = int32 /* types.h:412:14 */ +type Ctid_t = int32 /* types.h:413:14 */ + +// POSIX definitions are same as defined in thread.h and synch.h. +// Any changes made to here should be reflected in corresponding +// files as described in comments. +type Pthread_t = uint32 /* types.h:420:16 */ // = thread_t in thread.h +type Pthread_key_t = uint32 /* types.h:421:16 */ // = thread_key_t in thread.h + +// "Magic numbers" tagging synchronization object types + +type X_pthread_mutex = struct { + F__pthread_mutex_flags struct { + F__pthread_mutex_flag1 uint16 + F__pthread_mutex_flag2 uint8 + F__pthread_mutex_ceiling uint8 + F__pthread_mutex_type uint16 + F__pthread_mutex_magic uint16 + } + F__pthread_mutex_lock struct { + F__ccgo_pad1 [0]uint64 + F__pthread_mutex_lock64 struct{ F__pthread_mutex_pad [8]uint8 } + } + F__pthread_mutex_data uint64 +} /* types.h:429:9 */ + +// = thread_key_t in thread.h + +// "Magic numbers" tagging synchronization object types + +type Pthread_mutex_t = X_pthread_mutex /* types.h:448:3 */ + +type X_pthread_cond = struct { + F__pthread_cond_flags struct { + F__pthread_cond_flag [4]uint8 + F__pthread_cond_type uint16 + F__pthread_cond_magic uint16 + } + F__pthread_cond_data uint64 +} /* types.h:450:9 */ + +type Pthread_cond_t = X_pthread_cond /* types.h:457:3 */ + +// UNIX 98 Extension +type X_pthread_rwlock = struct { + F__pthread_rwlock_readers int32 + F__pthread_rwlock_type uint16 + F__pthread_rwlock_magic uint16 + F__pthread_rwlock_mutex Pthread_mutex_t + F__pthread_rwlock_readercv Pthread_cond_t + F__pthread_rwlock_writercv Pthread_cond_t +} /* types.h:462:9 */ + +// UNIX 98 Extension +type Pthread_rwlock_t = X_pthread_rwlock /* types.h:469:3 */ + +// SUSV3 +type Pthread_barrier_t = struct { + F__pthread_barrier_count uint32 + F__pthread_barrier_current uint32 + F__pthread_barrier_cycle uint64 + F__pthread_barrier_reserved uint64 + F__pthread_barrier_lock Pthread_mutex_t + F__pthread_barrier_cond Pthread_cond_t +} /* types.h:481:3 */ + +type Pthread_spinlock_t = Pthread_mutex_t /* types.h:483:25 */ + +// attributes for threads, dynamically allocated by library +type X_pthread_attr = struct{ F__pthread_attrp uintptr } /* types.h:488:9 */ + +// attributes for threads, dynamically allocated by library +type Pthread_attr_t = X_pthread_attr /* types.h:490:3 */ + +// attributes for mutex, dynamically allocated by library +type X_pthread_mutexattr = struct{ F__pthread_mutexattrp uintptr } /* types.h:495:9 */ + +// attributes for mutex, dynamically allocated by library +type Pthread_mutexattr_t = X_pthread_mutexattr /* types.h:497:3 */ + +// attributes for cond, dynamically allocated by library +type X_pthread_condattr = struct{ F__pthread_condattrp uintptr } /* types.h:502:9 */ + +// attributes for cond, dynamically allocated by library +type Pthread_condattr_t = X_pthread_condattr /* types.h:504:3 */ + +// pthread_once +type X_once = struct{ F__pthread_once_pad [4]uint64 } /* types.h:509:9 */ + +// pthread_once +type Pthread_once_t = X_once /* types.h:511:3 */ + +// UNIX 98 Extensions +// attributes for rwlock, dynamically allocated by library +type X_pthread_rwlockattr = struct{ F__pthread_rwlockattrp uintptr } /* types.h:517:9 */ + +// UNIX 98 Extensions +// attributes for rwlock, dynamically allocated by library +type Pthread_rwlockattr_t = X_pthread_rwlockattr /* types.h:519:3 */ + +// SUSV3 +// attributes for pthread_barrier_t, dynamically allocated by library +type Pthread_barrierattr_t = struct{ F__pthread_barrierattrp uintptr } /* types.h:527:3 */ + +type Dev_t = uint64 /* types.h:529:17 */ // expanded device type + +type Nlink_t = uint32 /* types.h:532:16 */ // file link type +type Pid_t = int32 /* types.h:533:13 */ // size of something in bytes + +type Ssize_t = int64 /* types.h:551:14 */ // size of something in bytes or -1 + +type Time_t = int64 /* types.h:559:15 */ // time of day in seconds + +type Clock_t = int64 /* types.h:564:15 */ // relative time in a specified resolution + +type Clockid_t = int32 /* types.h:569:13 */ // clock identifier type + +type Timer_t = int32 /* types.h:574:13 */ // timer identifier type + +// BEGIN CSTYLED +type Unchar = uint8 /* types.h:580:23 */ +type Ushort = uint16 /* types.h:581:24 */ +type Uint = uint32 /* types.h:582:22 */ +type Ulong = uint64 /* types.h:583:23 */ +// END CSTYLED + +// The following is the value of type id_t to use to indicate the +// caller's current id. See procset.h for the type idtype_t +// which defines which kind of id is being specified. + +// The following value of type pfn_t is used to indicate +// invalid page frame number. + +// BEGIN CSTYLED +type U_char = uint8 /* types.h:650:23 */ +type U_short = uint16 /* types.h:651:24 */ +type U_int = uint32 /* types.h:652:22 */ +type U_long = uint64 /* types.h:653:23 */ +type X_quad = struct{ Fval [2]int32 } /* types.h:654:9 */ + +type Quad_t = X_quad /* types.h:654:38 */ // used by UFS +type Quad = Quad_t /* types.h:655:17 */ // used by UFS +// END CSTYLED + +// Nested include for BSD/sockets source compatibility. +// (The select macros used to be defined here). +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// +// Copyright 2010 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// University Copyright- Copyright (c) 1982, 1986, 1988 +// The Regents of the University of California +// All Rights Reserved +// +// University Acknowledgment- Portions of this document are derived from +// software developed by the University of California, Berkeley, and its +// contributors. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2005 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Implementation-private. This header should not be included +// directly by an application. The application should instead +// include which includes this header conditionally +// depending on which feature test macros are defined. By default, +// this header is included by . X/Open and POSIX +// standards requirements result in this header being included +// by only under a restricted set of conditions. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Time expressed in seconds and nanoseconds + +type Timespec = struct { + Ftv_sec int64 + Ftv_nsec int64 +} /* time_impl.h:57:9 */ + +// used by UFS +// END CSTYLED + +// Nested include for BSD/sockets source compatibility. +// (The select macros used to be defined here). +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// +// Copyright 2010 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// University Copyright- Copyright (c) 1982, 1986, 1988 +// The Regents of the University of California +// All Rights Reserved +// +// University Acknowledgment- Portions of this document are derived from +// software developed by the University of California, Berkeley, and its +// contributors. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2005 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Implementation-private. This header should not be included +// directly by an application. The application should instead +// include which includes this header conditionally +// depending on which feature test macros are defined. By default, +// this header is included by . X/Open and POSIX +// standards requirements result in this header being included +// by only under a restricted set of conditions. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Time expressed in seconds and nanoseconds + +type Timespec_t = Timespec /* time_impl.h:60:3 */ + +type Timestruc_t = Timespec /* time_impl.h:81:25 */ // definition per SVr4 + +// The following has been left in for backward compatibility. Portable +// applications should not use the structure name timestruc. + +// Timer specification +type Itimerspec = struct { + Fit_interval struct { + Ftv_sec int64 + Ftv_nsec int64 + } + Fit_value struct { + Ftv_sec int64 + Ftv_nsec int64 + } +} /* time_impl.h:95:9 */ + +// definition per SVr4 + +// The following has been left in for backward compatibility. Portable +// applications should not use the structure name timestruc. + +// Timer specification +type Itimerspec_t = Itimerspec /* time_impl.h:98:3 */ + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright (c) 1982, 1986, 1993 Regents of the University of California. +// All rights reserved. The Berkeley software License Agreement +// specifies the terms and conditions for redistribution. + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2020 OmniOS Community Edition (OmniOSce) Association. + +// Copyright (c) 2013, 2016 by Delphix. All rights reserved. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Structure returned by gettimeofday(2) system call, +// and used in other calls. + +type Timeval = struct { + Ftv_sec int64 + Ftv_usec int64 +} /* time.h:54:1 */ + +type Timezone = struct { + Ftz_minuteswest int32 + Ftz_dsttime int32 +} /* time.h:86:1 */ + +// Needed for longlong_t type. Placement of this due to +// including which relies on the presense of the itimerval +// structure. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2021 Oxide Computer Company + +// Operations on timevals. + +// Names of the interval timers, and structure +// defining a timer setting. +// time and when system is running on +// behalf of the process. +// time profiling of multithreaded +// programs. + +type Itimerval = struct { + Fit_interval struct { + Ftv_sec int64 + Ftv_usec int64 + } + Fit_value struct { + Ftv_sec int64 + Ftv_usec int64 + } +} /* time.h:209:1 */ + +// Definitions for commonly used resolutions. + +// Time expressed as a 64-bit nanosecond counter. +type Hrtime_t = int64 /* time.h:265:20 */ + +// The inclusion of is historical and was added for +// backward compatibility in delta 1.2 when a number of definitions +// were moved out of . More recently, the timespec and +// itimerspec structure definitions, along with the _CLOCK_*, CLOCK_*, +// _TIMER_*, and TIMER_* symbols were moved to , +// which is now included by . This change was due to POSIX +// 1003.1b-1993 and X/Open UNIX 98 requirements. For non-POSIX and +// non-X/Open applications, including this header will still make +// visible these definitions. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1988 AT&T +// All Rights Reserved + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2007 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2010 Nexenta Systems, Inc. Al rights reserved. +// Copyright 2016 Joyent, Inc. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1988 AT&T +// All Rights Reserved + +// Copyright 2014 Garrett D'Amore +// Copyright 2014 PALO, Richard. +// +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// An application should not include this header directly. Instead it +// should be included only through the inclusion of other Sun headers. +// +// The contents of this header is limited to identifiers specified in the +// C Standard. Any new identifiers specified in future amendments to the +// C Standard must be placed in this header. If these new identifiers +// are required to also be in the C++ Standard "std" namespace, then for +// anything other than macro definitions, corresponding "using" directives +// must also be added to . + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// This file and its contents are supplied under the terms of the +// Common Development and Distribution License ("CDDL"), version 1.0. +// You may only use this file in accordance with the terms of version +// 1.0 of the CDDL. +// +// A full copy of the text of the CDDL should have accompanied this +// source. A copy of the CDDL is also available via the Internet at +// http://www.illumos.org/license/CDDL. + +// Copyright 2014-2016 PALO, Richard. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// POSIX.1-2008 requires that the NULL macro be cast to type void *. + +type Tm = struct { + Ftm_sec int32 + Ftm_min int32 + Ftm_hour int32 + Ftm_mday int32 + Ftm_mon int32 + Ftm_year int32 + Ftm_wday int32 + Ftm_yday int32 + Ftm_isdst int32 +} /* time_iso.h:80:1 */ + +// Neither X/Open nor POSIX allow the inclusion of for the +// definition of the sigevent structure. Both require the inclusion +// of and when using the timer_create() function. +// However, X/Open also specifies that the sigevent structure be defined +// in as described in the header . This prevents +// compiler warnings for applications that only include and not +// also . The sigval union and the sigevent structure is +// therefore defined both here and in which gets included +// via inclusion of . +type Sigval = struct { + F__ccgo_pad1 [0]uint64 + Fsival_int int32 + F__ccgo_pad2 [4]byte +} /* time.h:125:1 */ + +type Sigevent = struct { + Fsigev_notify int32 + Fsigev_signo int32 + Fsigev_value struct { + F__ccgo_pad1 [0]uint64 + Fsival_int int32 + F__ccgo_pad2 [4]byte + } + Fsigev_notify_function uintptr + Fsigev_notify_attributes uintptr + F__sigev_pad2 int32 + F__ccgo_pad1 [4]byte +} /* time.h:133:1 */ + +type Locale_t = uintptr /* time.h:292:24 */ + +// The inclusion of is needed for the FD_CLR, +// FD_ISSET, FD_SET, and FD_SETSIZE macros as well as the +// select() prototype defined in the XOpen specifications +// beginning with XSH4v2. Placement required after definition +// for itimerval. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// +// Copyright 2010 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// University Copyright- Copyright (c) 1982, 1986, 1988 +// The Regents of the University of California +// All Rights Reserved +// +// University Acknowledgment- Portions of this document are derived from +// software developed by the University of California, Berkeley, and its +// contributors. + +// The sigset_t type is defined in and duplicated +// in as a result of XPG4v2 requirements. XPG6 +// now allows the visibility of signal.h in this header, however +// an order of inclusion problem occurs as a result of inclusion +// of in under certain conditions. +// Rather than include here, we've duplicated +// the sigset_t type instead. This type is required for the XPG6 +// introduced pselect() function also declared in this header. +type Sigset_t = struct{ F__sigbits [4]uint32 } /* select.h:76:3 */ + +// Select uses bit masks of file descriptors in longs. +// These macros manipulate such bit fields. +// FD_SETSIZE may be defined by the user, but the default here +// should be >= RLIM_FD_MAX. + +type Fd_mask = int64 /* select.h:92:14 */ +type Fds_mask = int64 /* select.h:94:14 */ + +// The value of _NBBY needs to be consistant with the value +// of NBBY in . + +type Fd_set1 = struct{ Ffds_bits [1024]int64 } /* select.h:120:9 */ + +// The value of _NBBY needs to be consistant with the value +// of NBBY in . + +type Fd_set = Fd_set1 /* select.h:125:3 */ + +// _VOID was defined to be either void or char but this is not +// required because previous SunOS compilers have accepted the void +// type. However, because many system header and source files use the +// void keyword, the volatile keyword, and ANSI C function prototypes, +// non-ANSI compilers cannot compile the system anyway. The _VOID macro +// should therefore not be used and remains for source compatibility +// only. +// CSTYLED + +// utimbuf is used by utime(2) +type Utimbuf = struct { + Factime int64 + Fmodtime int64 +} /* utime.h:40:1 */ + +var _ int8 /* gen.c:2:13: */ diff --git a/vendor/modernc.org/libc/utime/utime_linux_loong64.go b/vendor/modernc.org/libc/utime/utime_linux_loong64.go new file mode 100644 index 000000000..92694858e --- /dev/null +++ b/vendor/modernc.org/libc/utime/utime_linux_loong64.go @@ -0,0 +1,940 @@ +// Code generated by 'ccgo utime/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o utime/utime_linux_loong64.go -pkgname utime', DO NOT EDIT. + +package utime + +import ( + "math" + "reflect" + "sync/atomic" + "unsafe" +) + +var _ = math.Pi +var _ reflect.Kind +var _ atomic.Value +var _ unsafe.Pointer + +const ( + X_ABILP64 = 3 // :377:1: + X_ATFILE_SOURCE = 1 // features.h:353:1: + X_BITS_TIME64_H = 1 // time64.h:24:1: + X_BITS_TYPESIZES_H = 1 // typesizes.h:24:1: + X_BITS_TYPES_H = 1 // types.h:24:1: + X_DEFAULT_SOURCE = 1 // features.h:238:1: + X_FEATURES_H = 1 // features.h:19:1: + X_FILE_OFFSET_BITS = 64 // :25:1: + X_LOONGARCH_ARCH = "loongarch64" // :214:1: + X_LOONGARCH_ARCH_LOONGARCH64 = 1 // :340:1: + X_LOONGARCH_FPSET = 32 // :265:1: + X_LOONGARCH_SIM = 3 // :233:1: + X_LOONGARCH_SPFPSET = 32 // :88:1: + X_LOONGARCH_SZINT = 32 // :230:1: + X_LOONGARCH_SZLONG = 64 // :388:1: + X_LOONGARCH_SZPTR = 64 // :200:1: + X_LOONGARCH_TUNE = "la464" // :245:1: + X_LOONGARCH_TUNE_LA464 = 1 // :63:1: + X_LP64 = 1 // :372:1: + X_POSIX_C_SOURCE = 200809 // features.h:292:1: + X_POSIX_SOURCE = 1 // features.h:290:1: + X_STDC_PREDEF_H = 1 // :223:1: + X_SYS_CDEFS_H = 1 // cdefs.h:20:1: + X_UTIME_H = 1 // utime.h:23:1: + Linux = 1 // :308:1: + Unix = 1 // :247:1: +) + +type Ptrdiff_t = int64 /* :3:26 */ + +type Size_t = uint64 /* :9:23 */ + +type Wchar_t = int32 /* :15:24 */ + +type X__int128_t = struct { + Flo int64 + Fhi int64 +} /* :21:43 */ // must match modernc.org/mathutil.Int128 +type X__uint128_t = struct { + Flo uint64 + Fhi uint64 +} /* :22:44 */ // must match modernc.org/mathutil.Int128 + +type X__builtin_va_list = uintptr /* :46:14 */ +type X__float128 = float64 /* :47:21 */ + +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// POSIX Standard: 5.6.6 Set File Access and Modification Times + +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// These are defined by the user (or the compiler) +// to specify the desired environment: +// +// __STRICT_ANSI__ ISO Standard C. +// _ISOC99_SOURCE Extensions to ISO C89 from ISO C99. +// _ISOC11_SOURCE Extensions to ISO C99 from ISO C11. +// _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X. +// __STDC_WANT_LIB_EXT2__ +// Extensions to ISO C99 from TR 27431-2:2010. +// __STDC_WANT_IEC_60559_BFP_EXT__ +// Extensions to ISO C11 from TS 18661-1:2014. +// __STDC_WANT_IEC_60559_FUNCS_EXT__ +// Extensions to ISO C11 from TS 18661-4:2015. +// __STDC_WANT_IEC_60559_TYPES_EXT__ +// Extensions to ISO C11 from TS 18661-3:2015. +// __STDC_WANT_IEC_60559_EXT__ +// ISO C2X interfaces defined only in Annex F. +// +// _POSIX_SOURCE IEEE Std 1003.1. +// _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2; +// if >=199309L, add IEEE Std 1003.1b-1993; +// if >=199506L, add IEEE Std 1003.1c-1995; +// if >=200112L, all of IEEE 1003.1-2004 +// if >=200809L, all of IEEE 1003.1-2008 +// _XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if +// Single Unix conformance is wanted, to 600 for the +// sixth revision, to 700 for the seventh revision. +// _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions. +// _LARGEFILE_SOURCE Some more functions for correct standard I/O. +// _LARGEFILE64_SOURCE Additional functionality from LFS for large files. +// _FILE_OFFSET_BITS=N Select default filesystem interface. +// _ATFILE_SOURCE Additional *at interfaces. +// _DYNAMIC_STACK_SIZE_SOURCE Select correct (but non compile-time constant) +// MINSIGSTKSZ, SIGSTKSZ and PTHREAD_STACK_MIN. +// _GNU_SOURCE All of the above, plus GNU extensions. +// _DEFAULT_SOURCE The default set of features (taking precedence over +// __STRICT_ANSI__). +// +// _FORTIFY_SOURCE Add security hardening to many library functions. +// Set to 1, 2 or 3; 3 performs stricter checks than 2, which +// performs stricter checks than 1. +// +// _REENTRANT, _THREAD_SAFE +// Obsolete; equivalent to _POSIX_C_SOURCE=199506L. +// +// The `-ansi' switch to the GNU C compiler, and standards conformance +// options such as `-std=c99', define __STRICT_ANSI__. If none of +// these are defined, or if _DEFAULT_SOURCE is defined, the default is +// to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to +// 200809L, as well as enabling miscellaneous functions from BSD and +// SVID. If more than one of these are defined, they accumulate. For +// example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together +// give you ISO C, 1003.1, and 1003.2, but nothing else. +// +// These are defined by this file and are used by the +// header files to decide what to declare or define: +// +// __GLIBC_USE (F) Define things from feature set F. This is defined +// to 1 or 0; the subsequent macros are either defined +// or undefined, and those tests should be moved to +// __GLIBC_USE. +// __USE_ISOC11 Define ISO C11 things. +// __USE_ISOC99 Define ISO C99 things. +// __USE_ISOC95 Define ISO C90 AMD1 (C95) things. +// __USE_ISOCXX11 Define ISO C++11 things. +// __USE_POSIX Define IEEE Std 1003.1 things. +// __USE_POSIX2 Define IEEE Std 1003.2 things. +// __USE_POSIX199309 Define IEEE Std 1003.1, and .1b things. +// __USE_POSIX199506 Define IEEE Std 1003.1, .1b, .1c and .1i things. +// __USE_XOPEN Define XPG things. +// __USE_XOPEN_EXTENDED Define X/Open Unix things. +// __USE_UNIX98 Define Single Unix V2 things. +// __USE_XOPEN2K Define XPG6 things. +// __USE_XOPEN2KXSI Define XPG6 XSI things. +// __USE_XOPEN2K8 Define XPG7 things. +// __USE_XOPEN2K8XSI Define XPG7 XSI things. +// __USE_LARGEFILE Define correct standard I/O things. +// __USE_LARGEFILE64 Define LFS things with separate names. +// __USE_FILE_OFFSET64 Define 64bit interface as default. +// __USE_MISC Define things from 4.3BSD or System V Unix. +// __USE_ATFILE Define *at interfaces and AT_* constants for them. +// __USE_DYNAMIC_STACK_SIZE Define correct (but non compile-time constant) +// MINSIGSTKSZ, SIGSTKSZ and PTHREAD_STACK_MIN. +// __USE_GNU Define GNU extensions. +// __USE_FORTIFY_LEVEL Additional security measures used, according to level. +// +// The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are +// defined by this file unconditionally. `__GNU_LIBRARY__' is provided +// only for compatibility. All new code should use the other symbols +// to test for features. +// +// All macros listed above as possibly being defined by this file are +// explicitly undefined if they are not explicitly defined. +// Feature-test macros that are not defined by the user or compiler +// but are implied by the other feature-test macros defined (or by the +// lack of any definitions) are defined by the file. +// +// ISO C feature test macros depend on the definition of the macro +// when an affected header is included, not when the first system +// header is included, and so they are handled in +// , which does not have a multiple include +// guard. Feature test macros that can be handled from the first +// system header included are handled here. + +// Undefine everything, so we get a clean slate. + +// Suppress kernel-name space pollution unless user expressedly asks +// for it. + +// Convenience macro to test the version of gcc. +// Use like this: +// #if __GNUC_PREREQ (2,8) +// ... code requiring gcc 2.8 or later ... +// #endif +// Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was +// added in 2.0. + +// Similarly for clang. Features added to GCC after version 4.2 may +// or may not also be available in clang, and clang's definitions of +// __GNUC(_MINOR)__ are fixed at 4 and 2 respectively. Not all such +// features can be queried via __has_extension/__has_feature. + +// Whether to use feature set F. + +// _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for +// _DEFAULT_SOURCE. If _DEFAULT_SOURCE is present we do not +// issue a warning; the expectation is that the source is being +// transitioned to use the new macro. + +// If _GNU_SOURCE was defined by the user, turn on all the other features. + +// If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined, +// define _DEFAULT_SOURCE. + +// This is to enable the ISO C2X extension. + +// This is to enable the ISO C11 extension. + +// This is to enable the ISO C99 extension. + +// This is to enable the ISO C90 Amendment 1:1995 extension. + +// If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE +// is defined, use POSIX.1-2008 (or another version depending on +// _XOPEN_SOURCE). + +// Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be +// defined in all multithreaded code. GNU libc has not required this +// for many years. We now treat them as compatibility synonyms for +// _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with +// comprehensive support for multithreaded code. Using them never +// lowers the selected level of POSIX conformance, only raises it. + +// Features part to handle 64-bit time_t support. +// Copyright (C) 2021-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// We need to know the word size in order to check the time size. +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Bit size of the time_t type at glibc build time, general case. +// Copyright (C) 2018-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Size in bits of the 'time_t' type of the default ABI. + +// The function 'gets' existed in C89, but is impossible to use +// safely. It has been removed from ISO C11 and ISO C++14. Note: for +// compatibility with various implementations of , this test +// must consider only the value of __cplusplus when compiling C++. + +// GNU formerly extended the scanf functions with modified format +// specifiers %as, %aS, and %a[...] that allocate a buffer for the +// input using malloc. This extension conflicts with ISO C99, which +// defines %a as a standalone format specifier that reads a floating- +// point number; moreover, POSIX.1-2008 provides the same feature +// using the modifier letter 'm' instead (%ms, %mS, %m[...]). +// +// We now follow C99 unless GNU extensions are active and the compiler +// is specifically in C89 or C++98 mode (strict or not). For +// instance, with GCC, -std=gnu11 will have C99-compliant scanf with +// or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the +// old extension. + +// ISO C2X added support for a 0b or 0B prefix on binary constants as +// inputs to strtol-family functions (base 0 or 2). This macro is +// used to condition redirection in headers to allow that redirection +// to be disabled when building those functions, despite _GNU_SOURCE +// being defined. + +// Get definitions of __STDC_* predefined macros, if the compiler has +// not preincluded this header automatically. +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// This macro indicates that the installed library is the GNU C Library. +// For historic reasons the value now is 6 and this will stay from now +// on. The use of this variable is deprecated. Use __GLIBC__ and +// __GLIBC_MINOR__ now (see below) when you want to test for a specific +// GNU C library version and use the values in to get +// the sonames of the shared libraries. + +// Major and minor version number of the GNU C library package. Use +// these macros to test for features in specific releases. + +// This is here only because every header file already includes this one. +// Copyright (C) 1992-2023 Free Software Foundation, Inc. +// Copyright The GNU Toolchain Authors. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// We are almost always included from features.h. + +// The GNU libc does not support any K&R compilers or the traditional mode +// of ISO C compilers anymore. Check for some of the combinations not +// supported anymore. + +// Some user header file might have defined this before. + +// Compilers that lack __has_attribute may object to +// #if defined __has_attribute && __has_attribute (...) +// even though they do not need to evaluate the right-hand side of the &&. +// Similarly for __has_builtin, etc. + +// All functions, except those with callbacks or those that +// synchronize memory, are leaf functions. + +// GCC can always grok prototypes. For C++ programs we add throw() +// to help it optimize the function calls. But this only works with +// gcc 2.8.x and egcs. For gcc 3.4 and up we even mark C functions +// as non-throwing using a function attribute since programs can use +// the -fexceptions options for C code as well. + +// These two macros are not used in glibc anymore. They are kept here +// only because some other projects expect the macros to be defined. + +// For these things, GCC behaves the ANSI way normally, +// and the non-ANSI way under -traditional. + +// This is not a typedef so `const __ptr_t' does the right thing. + +// C++ needs to know that types and declarations are C, not C++. + +// Fortify support. + +// Use __builtin_dynamic_object_size at _FORTIFY_SOURCE=3 when available. + +// Support for flexible arrays. +// Headers that should use flexible arrays only if they're "real" +// (e.g. only if they won't affect sizeof()) should test +// #if __glibc_c99_flexarr_available. + +// __asm__ ("xyz") is used throughout the headers to rename functions +// at the assembly language level. This is wrapped by the __REDIRECT +// macro, in order to support compilers that can do this some other +// way. When compilers don't support asm-names at all, we have to do +// preprocessor tricks instead (which don't have exactly the right +// semantics, but it's the best we can do). +// +// Example: +// int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid); + +// +// #elif __SOME_OTHER_COMPILER__ +// +// # define __REDIRECT(name, proto, alias) name proto; _Pragma("let " #name " = " #alias) + +// GCC and clang have various useful declarations that can be made with +// the '__attribute__' syntax. All of the ways we use this do fine if +// they are omitted for compilers that don't understand it. + +// At some point during the gcc 2.96 development the `malloc' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// Tell the compiler which arguments to an allocation function +// indicate the size of the allocation. + +// Tell the compiler which argument to an allocation function +// indicates the alignment of the allocation. + +// At some point during the gcc 2.96 development the `pure' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// This declaration tells the compiler that the value is constant. + +// At some point during the gcc 3.1 development the `used' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// Since version 3.2, gcc allows marking deprecated functions. + +// Since version 4.5, gcc also allows one to specify the message printed +// when a deprecated function is used. clang claims to be gcc 4.2, but +// may also support this feature. + +// At some point during the gcc 2.8 development the `format_arg' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. +// If several `format_arg' attributes are given for the same function, in +// gcc-3.0 and older, all but the last one are ignored. In newer gccs, +// all designated arguments are considered. + +// At some point during the gcc 2.97 development the `strfmon' format +// attribute for functions was introduced. We don't want to use it +// unconditionally (although this would be possible) since it +// generates warnings. + +// The nonnull function attribute marks pointer parameters that +// must not be NULL. This has the name __nonnull in glibc, +// and __attribute_nonnull__ in files shared with Gnulib to avoid +// collision with a different __nonnull in DragonFlyBSD 5.9. + +// The returns_nonnull function attribute marks the return type of the function +// as always being non-null. + +// If fortification mode, we warn about unused results of certain +// function calls which can lead to problems. + +// Forces a function to be always inlined. +// The Linux kernel defines __always_inline in stddef.h (283d7573), and +// it conflicts with this definition. Therefore undefine it first to +// allow either header to be included first. + +// Associate error messages with the source location of the call site rather +// than with the source location inside the function. + +// GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99 +// inline semantics, unless -fgnu89-inline is used. Using __GNUC_STDC_INLINE__ +// or __GNUC_GNU_INLINE is not a good enough check for gcc because gcc versions +// older than 4.3 may define these macros and still not guarantee GNU inlining +// semantics. +// +// clang++ identifies itself as gcc-4.2, but has support for GNU inlining +// semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and +// __GNUC_GNU_INLINE__ macro definitions. + +// GCC 4.3 and above allow passing all anonymous arguments of an +// __extern_always_inline function to some other vararg function. + +// It is possible to compile containing GCC extensions even if GCC is +// run in pedantic mode if the uses are carefully marked using the +// `__extension__' keyword. But this is not generally available before +// version 2.8. + +// __restrict is known in EGCS 1.2 and above, and in clang. +// It works also in C++ mode (outside of arrays), but only when spelled +// as '__restrict', not 'restrict'. + +// ISO C99 also allows to declare arrays as non-overlapping. The syntax is +// array_name[restrict] +// GCC 3.1 and clang support this. +// This syntax is not usable in C++ mode. + +// Describes a char array whose address can safely be passed as the first +// argument to strncpy and strncat, as the char array is not necessarily +// a NUL-terminated string. + +// Undefine (also defined in libc-symbols.h). +// Copies attributes from the declaration or type referenced by +// the argument. + +// Gnulib avoids including these, as they don't work on non-glibc or +// older glibc platforms. +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Properties of long double type. ldbl-128 version. +// Copyright (C) 2016-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// long double is distinct from double, so there is nothing to +// define here. + +// __glibc_macro_warning (MESSAGE) issues warning MESSAGE. This is +// intended for use in preprocessor macros. +// +// Note: MESSAGE must be a _single_ string; concatenation of string +// literals is not supported. + +// Generic selection (ISO C11) is a C-only feature, available in GCC +// since version 4.9. Previous versions do not provide generic +// selection, even though they might set __STDC_VERSION__ to 201112L, +// when in -std=c11 mode. Thus, we must check for !defined __GNUC__ +// when testing __STDC_VERSION__ for generic selection support. +// On the other hand, Clang also defines __GNUC__, so a clang-specific +// check is required to enable the use of generic selection. + +// Designates a 1-based positional argument ref-index of pointer type +// that can be used to access size-index elements of the pointed-to +// array according to access mode, or at least one element when +// size-index is not provided: +// access (access-mode, [, ]) +// For _FORTIFY_SOURCE == 3 we use __builtin_dynamic_object_size, which may +// use the access attribute to get object sizes from function definition +// arguments, so we can't use them on functions we fortify. Drop the object +// size hints for such functions. + +// Designates dealloc as a function to call to deallocate objects +// allocated by the declared function. + +// Specify that a function such as setjmp or vfork may return +// twice. + +// If we don't have __REDIRECT, prototypes will be missing if +// __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64]. + +// Decide whether we can define 'extern inline' functions in headers. + +// This is here only because every header file already includes this one. +// Get the definitions of all the appropriate `__stub_FUNCTION' symbols. +// contains `#define __stub_FUNCTION' when FUNCTION is a stub +// that will always return failure (and set errno to ENOSYS). +// This file is automatically generated. +// This file selects the right generated file of `__stub_FUNCTION' macros +// based on the architecture being compiled for. + +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// This file is automatically generated. +// It defines a symbol `__stub_FUNCTION' for each function +// in the C library which is a stub, meaning it will fail +// every time called, usually setting errno to ENOSYS. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Bit size of the time_t type at glibc build time, general case. +// Copyright (C) 2018-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Size in bits of the 'time_t' type of the default ABI. + +// Convenience types. +type X__u_char = uint8 /* types.h:31:23 */ +type X__u_short = uint16 /* types.h:32:28 */ +type X__u_int = uint32 /* types.h:33:22 */ +type X__u_long = uint64 /* types.h:34:27 */ + +// Fixed-size types, underlying types depend on word size and compiler. +type X__int8_t = int8 /* types.h:37:21 */ +type X__uint8_t = uint8 /* types.h:38:23 */ +type X__int16_t = int16 /* types.h:39:26 */ +type X__uint16_t = uint16 /* types.h:40:28 */ +type X__int32_t = int32 /* types.h:41:20 */ +type X__uint32_t = uint32 /* types.h:42:22 */ +type X__int64_t = int64 /* types.h:44:25 */ +type X__uint64_t = uint64 /* types.h:45:27 */ + +// Smallest types with at least a given width. +type X__int_least8_t = int8 /* types.h:52:18 */ +type X__uint_least8_t = uint8 /* types.h:53:19 */ +type X__int_least16_t = int16 /* types.h:54:19 */ +type X__uint_least16_t = uint16 /* types.h:55:20 */ +type X__int_least32_t = int32 /* types.h:56:19 */ +type X__uint_least32_t = uint32 /* types.h:57:20 */ +type X__int_least64_t = int64 /* types.h:58:19 */ +type X__uint_least64_t = uint64 /* types.h:59:20 */ + +// quad_t is also 64 bits. +type X__quad_t = int64 /* types.h:63:18 */ +type X__u_quad_t = uint64 /* types.h:64:27 */ + +// Largest integral types. +type X__intmax_t = int64 /* types.h:72:18 */ +type X__uintmax_t = uint64 /* types.h:73:27 */ + +// The machine-dependent file defines __*_T_TYPE +// macros for each of the OS types we define below. The definitions +// of those macros must use the following macros for underlying types. +// We define __S_TYPE and __U_TYPE for the signed and unsigned +// variants of each of the following integer types on this machine. +// +// 16 -- "natural" 16-bit type (always short) +// 32 -- "natural" 32-bit type (always int) +// 64 -- "natural" 64-bit type (long or long long) +// LONG32 -- 32-bit type, traditionally long +// QUAD -- 64-bit type, traditionally long long +// WORD -- natural type of __WORDSIZE bits (int or long) +// LONGWORD -- type of __WORDSIZE bits, traditionally long +// +// We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the +// conventional uses of `long' or `long long' type modifiers match the +// types we define, even when a less-adorned type would be the same size. +// This matters for (somewhat) portably writing printf/scanf formats for +// these types, where using the appropriate l or ll format modifiers can +// make the typedefs and the formats match up across all GNU platforms. If +// we used `long' when it's 64 bits where `long long' is expected, then the +// compiler would warn about the formats not matching the argument types, +// and the programmer changing them to shut up the compiler would break the +// program's portability. +// +// Here we assume what is presently the case in all the GCC configurations +// we support: long long is always 64 bits, long is always word/address size, +// and int is always 32 bits. + +// No need to mark the typedef with __extension__. +// bits/typesizes.h -- underlying types for *_t. For the generic Linux ABI. +// Copyright (C) 2011-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library. If not, see +// . + +// See for the meaning of these macros. This file exists so +// that need not vary across different GNU platforms. + +// Tell the libc code that off_t and off64_t are actually the same type +// for all ABI purposes, even if possibly expressed as different base types +// for C type-checking purposes. + +// Same for ino_t and ino64_t. + +// And for __rlim_t and __rlim64_t. + +// And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t. + +// And for getitimer, setitimer and rusage + +// Number of descriptors that can fit in an `fd_set'. + +// bits/time64.h -- underlying types for __time64_t. Generic version. +// Copyright (C) 2018-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Define __TIME64_T_TYPE so that it is always a 64-bit type. + +// If we already have 64-bit time type then use it. + +type X__dev_t = uint64 /* types.h:145:25 */ // Type of device numbers. +type X__uid_t = uint32 /* types.h:146:25 */ // Type of user identifications. +type X__gid_t = uint32 /* types.h:147:25 */ // Type of group identifications. +type X__ino_t = uint64 /* types.h:148:25 */ // Type of file serial numbers. +type X__ino64_t = uint64 /* types.h:149:27 */ // Type of file serial numbers (LFS). +type X__mode_t = uint32 /* types.h:150:26 */ // Type of file attribute bitmasks. +type X__nlink_t = uint32 /* types.h:151:27 */ // Type of file link counts. +type X__off_t = int64 /* types.h:152:25 */ // Type of file sizes and offsets. +type X__off64_t = int64 /* types.h:153:27 */ // Type of file sizes and offsets (LFS). +type X__pid_t = int32 /* types.h:154:25 */ // Type of process identifications. +type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs. +type X__clock_t = int64 /* types.h:156:27 */ // Type of CPU usage counts. +type X__rlim_t = uint64 /* types.h:157:26 */ // Type for resource measurement. +type X__rlim64_t = uint64 /* types.h:158:28 */ // Type for resource measurement (LFS). +type X__id_t = uint32 /* types.h:159:24 */ // General type for IDs. +type X__time_t = int64 /* types.h:160:26 */ // Seconds since the Epoch. +type X__useconds_t = uint32 /* types.h:161:30 */ // Count of microseconds. +type X__suseconds_t = int64 /* types.h:162:31 */ // Signed count of microseconds. +type X__suseconds64_t = int64 /* types.h:163:33 */ + +type X__daddr_t = int32 /* types.h:165:27 */ // The type of a disk address. +type X__key_t = int32 /* types.h:166:25 */ // Type of an IPC key. + +// Clock ID used in clock and timer functions. +type X__clockid_t = int32 /* types.h:169:29 */ + +// Timer ID returned by `timer_create'. +type X__timer_t = uintptr /* types.h:172:12 */ + +// Type to represent block size. +type X__blksize_t = int32 /* types.h:175:29 */ + +// Types from the Large File Support interface. + +// Type to count number of disk blocks. +type X__blkcnt_t = int64 /* types.h:180:28 */ +type X__blkcnt64_t = int64 /* types.h:181:30 */ + +// Type to count file system blocks. +type X__fsblkcnt_t = uint64 /* types.h:184:30 */ +type X__fsblkcnt64_t = uint64 /* types.h:185:32 */ + +// Type to count file system nodes. +type X__fsfilcnt_t = uint64 /* types.h:188:30 */ +type X__fsfilcnt64_t = uint64 /* types.h:189:32 */ + +// Type of miscellaneous file system fields. +type X__fsword_t = int64 /* types.h:192:28 */ + +type X__ssize_t = int64 /* types.h:194:27 */ // Type of a byte count, or error. + +// Signed long type used in system calls. +type X__syscall_slong_t = int64 /* types.h:197:33 */ +// Unsigned long type used in system calls. +type X__syscall_ulong_t = uint64 /* types.h:199:33 */ + +// These few don't really vary by system, they always correspond +// +// to one of the other defined types. +type X__loff_t = int64 /* types.h:203:19 */ // Type of file sizes and offsets (LFS). +type X__caddr_t = uintptr /* types.h:204:14 */ + +// Duplicates info from stdint.h but this is used in unistd.h. +type X__intptr_t = int64 /* types.h:207:25 */ + +// Duplicate info from sys/socket.h. +type X__socklen_t = uint32 /* types.h:210:23 */ + +// C99: An integer type that can be accessed as an atomic entity, +// +// even in the presence of asynchronous interrupts. +// It is not currently necessary for this to be machine-specific. +type X__sig_atomic_t = int32 /* types.h:215:13 */ + +// Seconds since the Epoch, visible to user code when time_t is too +// narrow only for consistency with the old way of widening too-narrow +// types. User code should never use __time64_t. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Returned by `time'. +type Time_t = int64 /* time_t.h:10:18 */ + +// Structure describing file times. +type Utimbuf = struct { + Factime int64 + Fmodtime int64 +} /* utime.h:36:1 */ + +var _ int8 /* gen.c:2:13: */ diff --git a/vendor/modernc.org/libc/utime/utime_linux_mips64le.go b/vendor/modernc.org/libc/utime/utime_linux_mips64le.go new file mode 100644 index 000000000..9d673aca9 --- /dev/null +++ b/vendor/modernc.org/libc/utime/utime_linux_mips64le.go @@ -0,0 +1,781 @@ +// Code generated by 'ccgo utime/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o utime/utime_linux_amd64.go -pkgname utime', DO NOT EDIT. + +package utime + +import ( + "math" + "reflect" + "sync/atomic" + "unsafe" +) + +var _ = math.Pi +var _ reflect.Kind +var _ atomic.Value +var _ unsafe.Pointer + +const ( + X_ATFILE_SOURCE = 1 // features.h:342:1: + X_BITS_TIME64_H = 1 // time64.h:24:1: + X_BITS_TYPESIZES_H = 1 // typesizes.h:24:1: + X_BITS_TYPES_H = 1 // types.h:24:1: + X_DEFAULT_SOURCE = 1 // features.h:227:1: + X_FEATURES_H = 1 // features.h:19:1: + X_FILE_OFFSET_BITS = 64 // :25:1: + X_LP64 = 1 // :284:1: + X_POSIX_C_SOURCE = 200809 // features.h:281:1: + X_POSIX_SOURCE = 1 // features.h:279:1: + X_STDC_PREDEF_H = 1 // :162:1: + X_SYS_CDEFS_H = 1 // cdefs.h:19:1: + X_UTIME_H = 1 // utime.h:23:1: + Linux = 1 // :231:1: + Unix = 1 // :177:1: +) + +type Ptrdiff_t = int64 /* :3:26 */ + +type Size_t = uint64 /* :9:23 */ + +type Wchar_t = int32 /* :15:24 */ + +type X__int128_t = struct { + Flo int64 + Fhi int64 +} /* :21:43 */ // must match modernc.org/mathutil.Int128 +type X__uint128_t = struct { + Flo uint64 + Fhi uint64 +} /* :22:44 */ // must match modernc.org/mathutil.Int128 + +type X__builtin_va_list = uintptr /* :46:14 */ +type X__float128 = float64 /* :47:21 */ + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// POSIX Standard: 5.6.6 Set File Access and Modification Times + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// These are defined by the user (or the compiler) +// to specify the desired environment: +// +// __STRICT_ANSI__ ISO Standard C. +// _ISOC99_SOURCE Extensions to ISO C89 from ISO C99. +// _ISOC11_SOURCE Extensions to ISO C99 from ISO C11. +// _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X. +// __STDC_WANT_LIB_EXT2__ +// Extensions to ISO C99 from TR 27431-2:2010. +// __STDC_WANT_IEC_60559_BFP_EXT__ +// Extensions to ISO C11 from TS 18661-1:2014. +// __STDC_WANT_IEC_60559_FUNCS_EXT__ +// Extensions to ISO C11 from TS 18661-4:2015. +// __STDC_WANT_IEC_60559_TYPES_EXT__ +// Extensions to ISO C11 from TS 18661-3:2015. +// +// _POSIX_SOURCE IEEE Std 1003.1. +// _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2; +// if >=199309L, add IEEE Std 1003.1b-1993; +// if >=199506L, add IEEE Std 1003.1c-1995; +// if >=200112L, all of IEEE 1003.1-2004 +// if >=200809L, all of IEEE 1003.1-2008 +// _XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if +// Single Unix conformance is wanted, to 600 for the +// sixth revision, to 700 for the seventh revision. +// _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions. +// _LARGEFILE_SOURCE Some more functions for correct standard I/O. +// _LARGEFILE64_SOURCE Additional functionality from LFS for large files. +// _FILE_OFFSET_BITS=N Select default filesystem interface. +// _ATFILE_SOURCE Additional *at interfaces. +// _GNU_SOURCE All of the above, plus GNU extensions. +// _DEFAULT_SOURCE The default set of features (taking precedence over +// __STRICT_ANSI__). +// +// _FORTIFY_SOURCE Add security hardening to many library functions. +// Set to 1 or 2; 2 performs stricter checks than 1. +// +// _REENTRANT, _THREAD_SAFE +// Obsolete; equivalent to _POSIX_C_SOURCE=199506L. +// +// The `-ansi' switch to the GNU C compiler, and standards conformance +// options such as `-std=c99', define __STRICT_ANSI__. If none of +// these are defined, or if _DEFAULT_SOURCE is defined, the default is +// to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to +// 200809L, as well as enabling miscellaneous functions from BSD and +// SVID. If more than one of these are defined, they accumulate. For +// example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together +// give you ISO C, 1003.1, and 1003.2, but nothing else. +// +// These are defined by this file and are used by the +// header files to decide what to declare or define: +// +// __GLIBC_USE (F) Define things from feature set F. This is defined +// to 1 or 0; the subsequent macros are either defined +// or undefined, and those tests should be moved to +// __GLIBC_USE. +// __USE_ISOC11 Define ISO C11 things. +// __USE_ISOC99 Define ISO C99 things. +// __USE_ISOC95 Define ISO C90 AMD1 (C95) things. +// __USE_ISOCXX11 Define ISO C++11 things. +// __USE_POSIX Define IEEE Std 1003.1 things. +// __USE_POSIX2 Define IEEE Std 1003.2 things. +// __USE_POSIX199309 Define IEEE Std 1003.1, and .1b things. +// __USE_POSIX199506 Define IEEE Std 1003.1, .1b, .1c and .1i things. +// __USE_XOPEN Define XPG things. +// __USE_XOPEN_EXTENDED Define X/Open Unix things. +// __USE_UNIX98 Define Single Unix V2 things. +// __USE_XOPEN2K Define XPG6 things. +// __USE_XOPEN2KXSI Define XPG6 XSI things. +// __USE_XOPEN2K8 Define XPG7 things. +// __USE_XOPEN2K8XSI Define XPG7 XSI things. +// __USE_LARGEFILE Define correct standard I/O things. +// __USE_LARGEFILE64 Define LFS things with separate names. +// __USE_FILE_OFFSET64 Define 64bit interface as default. +// __USE_MISC Define things from 4.3BSD or System V Unix. +// __USE_ATFILE Define *at interfaces and AT_* constants for them. +// __USE_GNU Define GNU extensions. +// __USE_FORTIFY_LEVEL Additional security measures used, according to level. +// +// The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are +// defined by this file unconditionally. `__GNU_LIBRARY__' is provided +// only for compatibility. All new code should use the other symbols +// to test for features. +// +// All macros listed above as possibly being defined by this file are +// explicitly undefined if they are not explicitly defined. +// Feature-test macros that are not defined by the user or compiler +// but are implied by the other feature-test macros defined (or by the +// lack of any definitions) are defined by the file. +// +// ISO C feature test macros depend on the definition of the macro +// when an affected header is included, not when the first system +// header is included, and so they are handled in +// , which does not have a multiple include +// guard. Feature test macros that can be handled from the first +// system header included are handled here. + +// Undefine everything, so we get a clean slate. + +// Suppress kernel-name space pollution unless user expressedly asks +// for it. + +// Convenience macro to test the version of gcc. +// Use like this: +// #if __GNUC_PREREQ (2,8) +// ... code requiring gcc 2.8 or later ... +// #endif +// Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was +// added in 2.0. + +// Similarly for clang. Features added to GCC after version 4.2 may +// or may not also be available in clang, and clang's definitions of +// __GNUC(_MINOR)__ are fixed at 4 and 2 respectively. Not all such +// features can be queried via __has_extension/__has_feature. + +// Whether to use feature set F. + +// _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for +// _DEFAULT_SOURCE. If _DEFAULT_SOURCE is present we do not +// issue a warning; the expectation is that the source is being +// transitioned to use the new macro. + +// If _GNU_SOURCE was defined by the user, turn on all the other features. + +// If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined, +// define _DEFAULT_SOURCE. + +// This is to enable the ISO C2X extension. + +// This is to enable the ISO C11 extension. + +// This is to enable the ISO C99 extension. + +// This is to enable the ISO C90 Amendment 1:1995 extension. + +// If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE +// is defined, use POSIX.1-2008 (or another version depending on +// _XOPEN_SOURCE). + +// Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be +// defined in all multithreaded code. GNU libc has not required this +// for many years. We now treat them as compatibility synonyms for +// _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with +// comprehensive support for multithreaded code. Using them never +// lowers the selected level of POSIX conformance, only raises it. + +// The function 'gets' existed in C89, but is impossible to use +// safely. It has been removed from ISO C11 and ISO C++14. Note: for +// compatibility with various implementations of , this test +// must consider only the value of __cplusplus when compiling C++. + +// GNU formerly extended the scanf functions with modified format +// specifiers %as, %aS, and %a[...] that allocate a buffer for the +// input using malloc. This extension conflicts with ISO C99, which +// defines %a as a standalone format specifier that reads a floating- +// point number; moreover, POSIX.1-2008 provides the same feature +// using the modifier letter 'm' instead (%ms, %mS, %m[...]). +// +// We now follow C99 unless GNU extensions are active and the compiler +// is specifically in C89 or C++98 mode (strict or not). For +// instance, with GCC, -std=gnu11 will have C99-compliant scanf with +// or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the +// old extension. + +// Get definitions of __STDC_* predefined macros, if the compiler has +// not preincluded this header automatically. +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// This macro indicates that the installed library is the GNU C Library. +// For historic reasons the value now is 6 and this will stay from now +// on. The use of this variable is deprecated. Use __GLIBC__ and +// __GLIBC_MINOR__ now (see below) when you want to test for a specific +// GNU C library version and use the values in to get +// the sonames of the shared libraries. + +// Major and minor version number of the GNU C library package. Use +// these macros to test for features in specific releases. + +// This is here only because every header file already includes this one. +// Copyright (C) 1992-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// We are almost always included from features.h. + +// The GNU libc does not support any K&R compilers or the traditional mode +// of ISO C compilers anymore. Check for some of the combinations not +// anymore supported. + +// Some user header file might have defined this before. + +// All functions, except those with callbacks or those that +// synchronize memory, are leaf functions. + +// GCC can always grok prototypes. For C++ programs we add throw() +// to help it optimize the function calls. But this works only with +// gcc 2.8.x and egcs. For gcc 3.2 and up we even mark C functions +// as non-throwing using a function attribute since programs can use +// the -fexceptions options for C code as well. + +// Compilers that are not clang may object to +// #if defined __clang__ && __has_extension(...) +// even though they do not need to evaluate the right-hand side of the &&. + +// These two macros are not used in glibc anymore. They are kept here +// only because some other projects expect the macros to be defined. + +// For these things, GCC behaves the ANSI way normally, +// and the non-ANSI way under -traditional. + +// This is not a typedef so `const __ptr_t' does the right thing. + +// C++ needs to know that types and declarations are C, not C++. + +// Fortify support. + +// Support for flexible arrays. +// Headers that should use flexible arrays only if they're "real" +// (e.g. only if they won't affect sizeof()) should test +// #if __glibc_c99_flexarr_available. + +// __asm__ ("xyz") is used throughout the headers to rename functions +// at the assembly language level. This is wrapped by the __REDIRECT +// macro, in order to support compilers that can do this some other +// way. When compilers don't support asm-names at all, we have to do +// preprocessor tricks instead (which don't have exactly the right +// semantics, but it's the best we can do). +// +// Example: +// int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid); + +// +// #elif __SOME_OTHER_COMPILER__ +// +// # define __REDIRECT(name, proto, alias) name proto; _Pragma("let " #name " = " #alias) + +// GCC has various useful declarations that can be made with the +// `__attribute__' syntax. All of the ways we use this do fine if +// they are omitted for compilers that don't understand it. + +// At some point during the gcc 2.96 development the `malloc' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// Tell the compiler which arguments to an allocation function +// indicate the size of the allocation. + +// At some point during the gcc 2.96 development the `pure' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// This declaration tells the compiler that the value is constant. + +// At some point during the gcc 3.1 development the `used' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// Since version 3.2, gcc allows marking deprecated functions. + +// Since version 4.5, gcc also allows one to specify the message printed +// when a deprecated function is used. clang claims to be gcc 4.2, but +// may also support this feature. + +// At some point during the gcc 2.8 development the `format_arg' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. +// If several `format_arg' attributes are given for the same function, in +// gcc-3.0 and older, all but the last one are ignored. In newer gccs, +// all designated arguments are considered. + +// At some point during the gcc 2.97 development the `strfmon' format +// attribute for functions was introduced. We don't want to use it +// unconditionally (although this would be possible) since it +// generates warnings. + +// The nonull function attribute allows to mark pointer parameters which +// must not be NULL. + +// If fortification mode, we warn about unused results of certain +// function calls which can lead to problems. + +// Forces a function to be always inlined. +// The Linux kernel defines __always_inline in stddef.h (283d7573), and +// it conflicts with this definition. Therefore undefine it first to +// allow either header to be included first. + +// Associate error messages with the source location of the call site rather +// than with the source location inside the function. + +// GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99 +// inline semantics, unless -fgnu89-inline is used. Using __GNUC_STDC_INLINE__ +// or __GNUC_GNU_INLINE is not a good enough check for gcc because gcc versions +// older than 4.3 may define these macros and still not guarantee GNU inlining +// semantics. +// +// clang++ identifies itself as gcc-4.2, but has support for GNU inlining +// semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and +// __GNUC_GNU_INLINE__ macro definitions. + +// GCC 4.3 and above allow passing all anonymous arguments of an +// __extern_always_inline function to some other vararg function. + +// It is possible to compile containing GCC extensions even if GCC is +// run in pedantic mode if the uses are carefully marked using the +// `__extension__' keyword. But this is not generally available before +// version 2.8. + +// __restrict is known in EGCS 1.2 and above. + +// ISO C99 also allows to declare arrays as non-overlapping. The syntax is +// array_name[restrict] +// GCC 3.1 supports this. + +// Describes a char array whose address can safely be passed as the first +// argument to strncpy and strncat, as the char array is not necessarily +// a NUL-terminated string. + +// Undefine (also defined in libc-symbols.h). +// Copies attributes from the declaration or type referenced by +// the argument. + +// Determine the wordsize from the preprocessor defines. + +// Both x86-64 and x32 use the 64-bit system call interface. +// Properties of long double type. ldbl-96 version. +// Copyright (C) 2016-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// long double is distinct from double, so there is nothing to +// define here. + +// __glibc_macro_warning (MESSAGE) issues warning MESSAGE. This is +// intended for use in preprocessor macros. +// +// Note: MESSAGE must be a _single_ string; concatenation of string +// literals is not supported. + +// Generic selection (ISO C11) is a C-only feature, available in GCC +// since version 4.9. Previous versions do not provide generic +// selection, even though they might set __STDC_VERSION__ to 201112L, +// when in -std=c11 mode. Thus, we must check for !defined __GNUC__ +// when testing __STDC_VERSION__ for generic selection support. +// On the other hand, Clang also defines __GNUC__, so a clang-specific +// check is required to enable the use of generic selection. + +// If we don't have __REDIRECT, prototypes will be missing if +// __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64]. + +// Decide whether we can define 'extern inline' functions in headers. + +// This is here only because every header file already includes this one. +// Get the definitions of all the appropriate `__stub_FUNCTION' symbols. +// contains `#define __stub_FUNCTION' when FUNCTION is a stub +// that will always return failure (and set errno to ENOSYS). +// This file is automatically generated. +// This file selects the right generated file of `__stub_FUNCTION' macros +// based on the architecture being compiled for. + +// This file is automatically generated. +// It defines a symbol `__stub_FUNCTION' for each function +// in the C library which is a stub, meaning it will fail +// every time called, usually setting errno to ENOSYS. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Determine the wordsize from the preprocessor defines. + +// Both x86-64 and x32 use the 64-bit system call interface. +// Bit size of the time_t type at glibc build time, x86-64 and x32 case. +// Copyright (C) 2018-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// For others, time size is word size. + +// Convenience types. +type X__u_char = uint8 /* types.h:31:23 */ +type X__u_short = uint16 /* types.h:32:28 */ +type X__u_int = uint32 /* types.h:33:22 */ +type X__u_long = uint64 /* types.h:34:27 */ + +// Fixed-size types, underlying types depend on word size and compiler. +type X__int8_t = int8 /* types.h:37:21 */ +type X__uint8_t = uint8 /* types.h:38:23 */ +type X__int16_t = int16 /* types.h:39:26 */ +type X__uint16_t = uint16 /* types.h:40:28 */ +type X__int32_t = int32 /* types.h:41:20 */ +type X__uint32_t = uint32 /* types.h:42:22 */ +type X__int64_t = int64 /* types.h:44:25 */ +type X__uint64_t = uint64 /* types.h:45:27 */ + +// Smallest types with at least a given width. +type X__int_least8_t = X__int8_t /* types.h:52:18 */ +type X__uint_least8_t = X__uint8_t /* types.h:53:19 */ +type X__int_least16_t = X__int16_t /* types.h:54:19 */ +type X__uint_least16_t = X__uint16_t /* types.h:55:20 */ +type X__int_least32_t = X__int32_t /* types.h:56:19 */ +type X__uint_least32_t = X__uint32_t /* types.h:57:20 */ +type X__int_least64_t = X__int64_t /* types.h:58:19 */ +type X__uint_least64_t = X__uint64_t /* types.h:59:20 */ + +// quad_t is also 64 bits. +type X__quad_t = int64 /* types.h:63:18 */ +type X__u_quad_t = uint64 /* types.h:64:27 */ + +// Largest integral types. +type X__intmax_t = int64 /* types.h:72:18 */ +type X__uintmax_t = uint64 /* types.h:73:27 */ + +// The machine-dependent file defines __*_T_TYPE +// macros for each of the OS types we define below. The definitions +// of those macros must use the following macros for underlying types. +// We define __S_TYPE and __U_TYPE for the signed and unsigned +// variants of each of the following integer types on this machine. +// +// 16 -- "natural" 16-bit type (always short) +// 32 -- "natural" 32-bit type (always int) +// 64 -- "natural" 64-bit type (long or long long) +// LONG32 -- 32-bit type, traditionally long +// QUAD -- 64-bit type, traditionally long long +// WORD -- natural type of __WORDSIZE bits (int or long) +// LONGWORD -- type of __WORDSIZE bits, traditionally long +// +// We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the +// conventional uses of `long' or `long long' type modifiers match the +// types we define, even when a less-adorned type would be the same size. +// This matters for (somewhat) portably writing printf/scanf formats for +// these types, where using the appropriate l or ll format modifiers can +// make the typedefs and the formats match up across all GNU platforms. If +// we used `long' when it's 64 bits where `long long' is expected, then the +// compiler would warn about the formats not matching the argument types, +// and the programmer changing them to shut up the compiler would break the +// program's portability. +// +// Here we assume what is presently the case in all the GCC configurations +// we support: long long is always 64 bits, long is always word/address size, +// and int is always 32 bits. + +// No need to mark the typedef with __extension__. +// bits/typesizes.h -- underlying types for *_t. Linux/x86-64 version. +// Copyright (C) 2012-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// See for the meaning of these macros. This file exists so +// that need not vary across different GNU platforms. + +// X32 kernel interface is 64-bit. + +// Tell the libc code that off_t and off64_t are actually the same type +// for all ABI purposes, even if possibly expressed as different base types +// for C type-checking purposes. + +// Same for ino_t and ino64_t. + +// And for __rlim_t and __rlim64_t. + +// And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t. + +// Number of descriptors that can fit in an `fd_set'. + +// bits/time64.h -- underlying types for __time64_t. Generic version. +// Copyright (C) 2018-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Define __TIME64_T_TYPE so that it is always a 64-bit type. + +// If we already have 64-bit time type then use it. + +type X__dev_t = uint64 /* types.h:145:25 */ // Type of device numbers. +type X__uid_t = uint32 /* types.h:146:25 */ // Type of user identifications. +type X__gid_t = uint32 /* types.h:147:25 */ // Type of group identifications. +type X__ino_t = uint64 /* types.h:148:25 */ // Type of file serial numbers. +type X__ino64_t = uint64 /* types.h:149:27 */ // Type of file serial numbers (LFS). +type X__mode_t = uint32 /* types.h:150:26 */ // Type of file attribute bitmasks. +type X__nlink_t = uint64 /* types.h:151:27 */ // Type of file link counts. +type X__off_t = int64 /* types.h:152:25 */ // Type of file sizes and offsets. +type X__off64_t = int64 /* types.h:153:27 */ // Type of file sizes and offsets (LFS). +type X__pid_t = int32 /* types.h:154:25 */ // Type of process identifications. +type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs. +type X__clock_t = int64 /* types.h:156:27 */ // Type of CPU usage counts. +type X__rlim_t = uint64 /* types.h:157:26 */ // Type for resource measurement. +type X__rlim64_t = uint64 /* types.h:158:28 */ // Type for resource measurement (LFS). +type X__id_t = uint32 /* types.h:159:24 */ // General type for IDs. +type X__time_t = int64 /* types.h:160:26 */ // Seconds since the Epoch. +type X__useconds_t = uint32 /* types.h:161:30 */ // Count of microseconds. +type X__suseconds_t = int64 /* types.h:162:31 */ // Signed count of microseconds. + +type X__daddr_t = int32 /* types.h:164:27 */ // The type of a disk address. +type X__key_t = int32 /* types.h:165:25 */ // Type of an IPC key. + +// Clock ID used in clock and timer functions. +type X__clockid_t = int32 /* types.h:168:29 */ + +// Timer ID returned by `timer_create'. +type X__timer_t = uintptr /* types.h:171:12 */ + +// Type to represent block size. +type X__blksize_t = int64 /* types.h:174:29 */ + +// Types from the Large File Support interface. + +// Type to count number of disk blocks. +type X__blkcnt_t = int64 /* types.h:179:28 */ +type X__blkcnt64_t = int64 /* types.h:180:30 */ + +// Type to count file system blocks. +type X__fsblkcnt_t = uint64 /* types.h:183:30 */ +type X__fsblkcnt64_t = uint64 /* types.h:184:32 */ + +// Type to count file system nodes. +type X__fsfilcnt_t = uint64 /* types.h:187:30 */ +type X__fsfilcnt64_t = uint64 /* types.h:188:32 */ + +// Type of miscellaneous file system fields. +type X__fsword_t = int64 /* types.h:191:28 */ + +type X__ssize_t = int64 /* types.h:193:27 */ // Type of a byte count, or error. + +// Signed long type used in system calls. +type X__syscall_slong_t = int64 /* types.h:196:33 */ +// Unsigned long type used in system calls. +type X__syscall_ulong_t = uint64 /* types.h:198:33 */ + +// These few don't really vary by system, they always correspond +// +// to one of the other defined types. +type X__loff_t = X__off64_t /* types.h:202:19 */ // Type of file sizes and offsets (LFS). +type X__caddr_t = uintptr /* types.h:203:14 */ + +// Duplicates info from stdint.h but this is used in unistd.h. +type X__intptr_t = int64 /* types.h:206:25 */ + +// Duplicate info from sys/socket.h. +type X__socklen_t = uint32 /* types.h:209:23 */ + +// C99: An integer type that can be accessed as an atomic entity, +// +// even in the presence of asynchronous interrupts. +// It is not currently necessary for this to be machine-specific. +type X__sig_atomic_t = int32 /* types.h:214:13 */ + +// Seconds since the Epoch, visible to user code when time_t is too +// narrow only for consistency with the old way of widening too-narrow +// types. User code should never use __time64_t. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Returned by `time'. +type Time_t = X__time_t /* time_t.h:7:18 */ + +// Structure describing file times. +type Utimbuf = struct { + Factime X__time_t + Fmodtime X__time_t +} /* utime.h:36:1 */ + +var _ int8 /* gen.c:2:13: */ diff --git a/vendor/modernc.org/libc/uuid/uuid/capi_illumos_amd64.go b/vendor/modernc.org/libc/uuid/uuid/capi_illumos_amd64.go new file mode 100644 index 000000000..1b9a094ea --- /dev/null +++ b/vendor/modernc.org/libc/uuid/uuid/capi_illumos_amd64.go @@ -0,0 +1,5 @@ +// Code generated by 'ccgo uuid/uuid/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o uuid/uuid/uuid_illumos_amd64.go -pkgname uuid', DO NOT EDIT. + +package uuid + +var CAPI = map[string]struct{}{} diff --git a/vendor/modernc.org/libc/uuid/uuid/capi_linux_loong64.go b/vendor/modernc.org/libc/uuid/uuid/capi_linux_loong64.go new file mode 100644 index 000000000..68331799a --- /dev/null +++ b/vendor/modernc.org/libc/uuid/uuid/capi_linux_loong64.go @@ -0,0 +1,5 @@ +// Code generated by 'ccgo uuid/uuid/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o uuid/uuid/uuid_linux_amd64.go -pkgname uuid', DO NOT EDIT. + +package uuid + +var CAPI = map[string]struct{}{} diff --git a/vendor/modernc.org/libc/uuid/uuid/capi_linux_mips64le.go b/vendor/modernc.org/libc/uuid/uuid/capi_linux_mips64le.go new file mode 100644 index 000000000..68331799a --- /dev/null +++ b/vendor/modernc.org/libc/uuid/uuid/capi_linux_mips64le.go @@ -0,0 +1,5 @@ +// Code generated by 'ccgo uuid/uuid/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o uuid/uuid/uuid_linux_amd64.go -pkgname uuid', DO NOT EDIT. + +package uuid + +var CAPI = map[string]struct{}{} diff --git a/vendor/modernc.org/libc/uuid/uuid/uuid_illumos_amd64.go b/vendor/modernc.org/libc/uuid/uuid/uuid_illumos_amd64.go new file mode 100644 index 000000000..8f48bbd78 --- /dev/null +++ b/vendor/modernc.org/libc/uuid/uuid/uuid_illumos_amd64.go @@ -0,0 +1,2967 @@ +// Code generated by 'ccgo uuid/uuid/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o uuid/uuid/uuid_illumos_amd64.go -pkgname uuid', DO NOT EDIT. + +package uuid + +import ( + "math" + "reflect" + "sync/atomic" + "unsafe" +) + +var _ = math.Pi +var _ reflect.Kind +var _ atomic.Value +var _ unsafe.Pointer + +const ( + CLOCKS_PER_SEC = 1000000 // time_iso.h:78:1: + CLOCK_HIGHRES = 4 // time_impl.h:126:1: + CLOCK_MONOTONIC = 4 // time_impl.h:124:1: + CLOCK_PROCESS_CPUTIME_ID = 5 // time_impl.h:125:1: + CLOCK_PROF = 2 // time_impl.h:127:1: + CLOCK_REALTIME = 3 // time_impl.h:123:1: + CLOCK_THREAD_CPUTIME_ID = 2 // time_impl.h:122:1: + CLOCK_VIRTUAL = 1 // time_impl.h:121:1: + DST_AUST = 2 // time.h:115:1: + DST_AUSTALT = 10 // time.h:123:1: + DST_CAN = 6 // time.h:119:1: + DST_EET = 5 // time.h:118:1: + DST_GB = 7 // time.h:120:1: + DST_MET = 4 // time.h:117:1: + DST_NONE = 0 // time.h:113:1: + DST_RUM = 8 // time.h:121:1: + DST_TUR = 9 // time.h:122:1: + DST_USA = 1 // time.h:114:1: + DST_WET = 3 // time.h:116:1: + FD_SETSIZE = 65536 // select.h:88:1: + ITIMER_PROF = 2 // time.h:201:1: + ITIMER_REAL = 0 // time.h:199:1: + ITIMER_REALPROF = 3 // time.h:204:1: + ITIMER_VIRTUAL = 1 // time.h:200:1: + MICROSEC = 1000000 // time.h:246:1: + MILLISEC = 1000 // time.h:245:1: + NANOSEC = 1000000000 // time.h:247:1: + NBBY = 8 // select.h:103:1: + P_MYID = -1 // types.h:632:1: + REG_LABEL_BP = 2 // machtypes.h:44:1: + REG_LABEL_MAX = 8 // machtypes.h:51:1: + REG_LABEL_PC = 0 // machtypes.h:42:1: + REG_LABEL_R12 = 4 // machtypes.h:47:1: + REG_LABEL_R13 = 5 // machtypes.h:48:1: + REG_LABEL_R14 = 6 // machtypes.h:49:1: + REG_LABEL_R15 = 7 // machtypes.h:50:1: + REG_LABEL_RBX = 3 // machtypes.h:46:1: + REG_LABEL_SP = 1 // machtypes.h:43:1: + SEC = 1 // time.h:244:1: + TIMER_ABSTIME = 0x1 // time_impl.h:134:1: + TIMER_RELTIME = 0x0 // time_impl.h:133:1: + TIME_UTC = 0x1 // time.h:306:1: + UUID_LEN = 16 // uuid.h:77:1: + UUID_PRINTABLE_STRING_LENGTH = 37 // uuid.h:79:1: + X_ALIGNMENT_REQUIRED = 1 // isa_defs.h:262:1: + X_BIT_FIELDS_LTOH = 0 // isa_defs.h:245:1: + X_BOOL_ALIGNMENT = 1 // isa_defs.h:248:1: + X_CHAR_ALIGNMENT = 1 // isa_defs.h:249:1: + X_CHAR_IS_SIGNED = 0 // isa_defs.h:247:1: + X_CLOCKID_T = 0 // types.h:568:1: + X_CLOCK_T = 0 // types.h:563:1: + X_COND_MAGIC = 0x4356 // types.h:426:1: + X_DMA_USES_PHYSADDR = 0 // isa_defs.h:281:1: + X_DONT_USE_1275_GENERIC_NAMES = 0 // isa_defs.h:287:1: + X_DOUBLE_ALIGNMENT = 8 // isa_defs.h:256:1: + X_DOUBLE_COMPLEX_ALIGNMENT = 8 // isa_defs.h:257:1: + X_DTRACE_VERSION = 1 // feature_tests.h:490:1: + X_FILE_OFFSET_BITS = 64 // :25:1: + X_FIRMWARE_NEEDS_FDISK = 0 // isa_defs.h:282:1: + X_FLOAT_ALIGNMENT = 4 // isa_defs.h:252:1: + X_FLOAT_COMPLEX_ALIGNMENT = 4 // isa_defs.h:253:1: + X_HAVE_CPUID_INSN = 0 // isa_defs.h:288:1: + X_IEEE_754 = 0 // isa_defs.h:246:1: + X_INT64_TYPE = 0 // int_types.h:82:1: + X_INT_ALIGNMENT = 4 // isa_defs.h:251:1: + X_IN_ADDR_T = 0 // byteorder.h:78:1: + X_IN_PORT_T = 0 // byteorder.h:73:1: + X_ISO_CPP_14882_1998 = 0 // feature_tests.h:466:1: + X_ISO_C_9899_1999 = 0 // feature_tests.h:472:1: + X_ISO_C_9899_2011 = 0 // feature_tests.h:478:1: + X_ISO_TIME_ISO_H = 0 // time_iso.h:46:1: + X_LARGEFILE64_SOURCE = 1 // feature_tests.h:231:1: + X_LARGEFILE_SOURCE = 1 // feature_tests.h:235:1: + X_LITTLE_ENDIAN = 0 // isa_defs.h:242:1: + X_LOCALE_T = 0 // time.h:291:1: + X_LONGLONG_TYPE = 0 // feature_tests.h:412:1: + X_LONG_ALIGNMENT = 8 // isa_defs.h:254:1: + X_LONG_DOUBLE_ALIGNMENT = 16 // isa_defs.h:258:1: + X_LONG_DOUBLE_COMPLEX_ALIGNMENT = 16 // isa_defs.h:259:1: + X_LONG_LONG_ALIGNMENT = 8 // isa_defs.h:255:1: + X_LONG_LONG_ALIGNMENT_32 = 4 // isa_defs.h:268:1: + X_LONG_LONG_LTOH = 0 // isa_defs.h:244:1: + X_LP64 = 1 // :286:1: + X_MAX_ALIGNMENT = 16 // isa_defs.h:261:1: + X_MULTI_DATAMODEL = 0 // isa_defs.h:279:1: + X_MUTEX_MAGIC = 0x4d58 // types.h:424:1: + X_NBBY = 8 // select.h:100:1: + X_NORETURN_KYWD = 0 // feature_tests.h:448:1: + X_OFF_T = 0 // types.h:142:1: + X_POINTER_ALIGNMENT = 8 // isa_defs.h:260:1: + X_PSM_MODULES = 0 // isa_defs.h:284:1: + X_PTRDIFF_T = 0 // types.h:112:1: + X_RESTRICT_KYWD = 0 // feature_tests.h:435:1: + X_RTC_CONFIG = 0 // isa_defs.h:285:1: + X_RWL_MAGIC = 0x5257 // types.h:427:1: + X_SEMA_MAGIC = 0x534d // types.h:425:1: + X_SHORT_ALIGNMENT = 2 // isa_defs.h:250:1: + X_SIGEVENT = 0 // time.h:132:1: + X_SIGSET_T = 0 // select.h:73:1: + X_SIGVAL = 0 // time.h:124:1: + X_SIZE_T = 0 // types.h:540:1: + X_SOFT_HOSTID = 0 // isa_defs.h:286:1: + X_SSIZE_T = 0 // types.h:549:1: + X_STACK_GROWS_DOWNWARD = 0 // isa_defs.h:243:1: + X_STDC_C11 = 0 // feature_tests.h:165:1: + X_STDC_C99 = 0 // feature_tests.h:169:1: + X_SUNOS_VTOC_16 = 0 // isa_defs.h:280:1: + X_SUSECONDS_T = 0 // types.h:343:1: + X_SYS_BYTEORDER_H = 0 // byteorder.h:41:1: + X_SYS_CCOMPILE_H = 0 // ccompile.h:32:1: + X_SYS_FEATURE_TESTS_H = 0 // feature_tests.h:41:1: + X_SYS_INT_TYPES_H = 0 // int_types.h:30:1: + X_SYS_ISA_DEFS_H = 0 // isa_defs.h:30:1: + X_SYS_MACHTYPES_H = 0 // machtypes.h:27:1: + X_SYS_NULL_H = 0 // null.h:17:1: + X_SYS_SELECT_H = 0 // select.h:45:1: + X_SYS_TIME_H = 0 // time.h:27:1: + X_SYS_TIME_IMPL_H = 0 // time_impl.h:38:1: + X_SYS_TYPES_H = 0 // types.h:35:1: + X_SYS_UUID_H = 0 // uuid.h:28:1: + X_TIMER_T = 0 // types.h:573:1: + X_TIME_H = 0 // time.h:37:1: + X_TIME_T = 0 // types.h:558:1: + X_UID_T = 0 // types.h:400:1: + X_UUID_H = 0 // uuid.h:32:1: + X_XOPEN_VERSION = 3 // feature_tests.h:392:1: + Sun = 1 // :172:1: + Unix = 1 // :175:1: +) + +// used for block sizes + +// The boolean_t type has had a varied amount of exposure over the years in +// terms of how its enumeration constants have been exposed. In particular, it +// originally used the __XOPEN_OR_POSIX macro to determine whether to prefix the +// B_TRUE and B_FALSE with an underscore. This check never included the +// question of if we were in a strict ANSI C environment or whether extensions +// were defined. +// +// Compilers such as clang started defaulting to always including an +// XOPEN_SOURCE declaration on behalf of users, but also noted __EXTENSIONS__. +// This would lead most software that had used the non-underscore versions to +// need it. As such, we have adjusted the non-strict XOPEN environment to retain +// its old behavior so as to minimize namespace pollution; however, we instead +// include both variants of the definitions in the generally visible version +// allowing software written in either world to hopefully end up in a good +// place. +// +// This isn't perfect, but should hopefully minimize the pain for folks actually +// trying to build software. +const ( /* types.h:215:1: */ + B_FALSE = 0 + B_TRUE = 1 + X_B_FALSE = 0 + X_B_TRUE = 1 +) + +type Ptrdiff_t = int64 /* :3:26 */ + +type Size_t = uint64 /* :9:23 */ + +type Wchar_t = int32 /* :15:24 */ + +type X__int128_t = struct { + Flo int64 + Fhi int64 +} /* :21:43 */ // must match modernc.org/mathutil.Int128 +type X__uint128_t = struct { + Flo uint64 + Fhi uint64 +} /* :22:44 */ // must match modernc.org/mathutil.Int128 + +type X__builtin_va_list = uintptr /* :46:14 */ +type X__float128 = float64 /* :47:21 */ + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2005 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright 2014 Andrew Stormont. + +// The copyright in this file is taken from the original Leach & Salz +// UUID specification, from which this implementation is derived. + +// Copyright (c) 1990- 1993, 1996 Open Software Foundation, Inc. +// Copyright (c) 1989 by Hewlett-Packard Company, Palo Alto, Ca. & +// Digital Equipment Corporation, Maynard, Mass. Copyright (c) 1998 +// Microsoft. To anyone who acknowledges that this file is provided +// "AS IS" without any express or implied warranty: permission to use, +// copy, modify, and distribute this file for any purpose is hereby +// granted without fee, provided that the above copyright notices and +// this notice appears in all source code copies, and that none of the +// names of Open Software Foundation, Inc., Hewlett-Packard Company, +// or Digital Equipment Corporation be used in advertising or +// publicity pertaining to distribution of the software without +// specific, written prior permission. Neither Open Software +// Foundation, Inc., Hewlett-Packard Company, Microsoft, nor Digital +// Equipment Corporation makes any representations about the +// suitability of this software for any purpose. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2021 Oxide Computer Company + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2015 EveryCity Ltd. All rights reserved. +// Copyright 2019 Joyent, Inc. + +// This file contains definitions designed to enable different compilers +// to be used harmoniously on Solaris systems. + +// Allow for version tests for compiler bugs and features. + +// analogous to lint's PRINTFLIKEn + +// Handle the kernel printf routines that can take '%b' too + +// This one's pretty obvious -- the function never returns + +// The function is 'extern inline' and expects GNU C89 behaviour, not C99 +// behaviour. +// +// Should only be used on 'extern inline' definitions for GCC. + +// The function has control flow such that it may return multiple times (in +// the manner of setjmp or vfork) + +// This is an appropriate label for functions that do not +// modify their arguments, e.g. strlen() + +// This is a stronger form of __pure__. Can be used for functions +// that do not modify their arguments and don't depend on global +// memory. + +// This attribute, attached to a variable, means that the variable is meant to +// be possibly unused. GCC will not produce a warning for this variable. + +// Shorthand versions for readability + +// In release build, disable warnings about variables +// which are used only for debugging. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2016 Joyent, Inc. + +// This header file serves to group a set of well known defines and to +// set these for each instruction set architecture. These defines may +// be divided into two groups; characteristics of the processor and +// implementation choices for Solaris on a processor. +// +// Processor Characteristics: +// +// _LITTLE_ENDIAN / _BIG_ENDIAN: +// The natural byte order of the processor. A pointer to an int points +// to the least/most significant byte of that int. +// +// _STACK_GROWS_UPWARD / _STACK_GROWS_DOWNWARD: +// The processor specific direction of stack growth. A push onto the +// stack increases/decreases the stack pointer, so it stores data at +// successively higher/lower addresses. (Stackless machines ignored +// without regrets). +// +// _LONG_LONG_HTOL / _LONG_LONG_LTOH: +// A pointer to a long long points to the most/least significant long +// within that long long. +// +// _BIT_FIELDS_HTOL / _BIT_FIELDS_LTOH: +// The C compiler assigns bit fields from the high/low to the low/high end +// of an int (most to least significant vs. least to most significant). +// +// _IEEE_754: +// The processor (or supported implementations of the processor) +// supports the ieee-754 floating point standard. No other floating +// point standards are supported (or significant). Any other supported +// floating point formats are expected to be cased on the ISA processor +// symbol. +// +// _CHAR_IS_UNSIGNED / _CHAR_IS_SIGNED: +// The C Compiler implements objects of type `char' as `unsigned' or +// `signed' respectively. This is really an implementation choice of +// the compiler writer, but it is specified in the ABI and tends to +// be uniform across compilers for an instruction set architecture. +// Hence, it has the properties of a processor characteristic. +// +// _CHAR_ALIGNMENT / _SHORT_ALIGNMENT / _INT_ALIGNMENT / _LONG_ALIGNMENT / +// _LONG_LONG_ALIGNMENT / _DOUBLE_ALIGNMENT / _LONG_DOUBLE_ALIGNMENT / +// _POINTER_ALIGNMENT / _FLOAT_ALIGNMENT: +// The ABI defines alignment requirements of each of the primitive +// object types. Some, if not all, may be hardware requirements as +// well. The values are expressed in "byte-alignment" units. +// +// _MAX_ALIGNMENT: +// The most stringent alignment requirement as specified by the ABI. +// Equal to the maximum of all the above _XXX_ALIGNMENT values. +// +// _MAX_ALIGNMENT_TYPE: +// The name of the C type that has the value descried in _MAX_ALIGNMENT. +// +// _ALIGNMENT_REQUIRED: +// True or false (1 or 0) whether or not the hardware requires the ABI +// alignment. +// +// _LONG_LONG_ALIGNMENT_32 +// The 32-bit ABI supported by a 64-bit kernel may have different +// alignment requirements for primitive object types. The value of this +// identifier is expressed in "byte-alignment" units. +// +// _HAVE_CPUID_INSN +// This indicates that the architecture supports the 'cpuid' +// instruction as defined by Intel. (Intel allows other vendors +// to extend the instruction for their own purposes.) +// +// +// Implementation Choices: +// +// _ILP32 / _LP64: +// This specifies the compiler data type implementation as specified in +// the relevant ABI. The choice between these is strongly influenced +// by the underlying hardware, but is not absolutely tied to it. +// Currently only two data type models are supported: +// +// _ILP32: +// Int/Long/Pointer are 32 bits. This is the historical UNIX +// and Solaris implementation. Due to its historical standing, +// this is the default case. +// +// _LP64: +// Long/Pointer are 64 bits, Int is 32 bits. This is the chosen +// implementation for 64-bit ABIs such as SPARC V9. +// +// _I32LPx: +// A compilation environment where 'int' is 32-bit, and +// longs and pointers are simply the same size. +// +// In all cases, Char is 8 bits and Short is 16 bits. +// +// _SUNOS_VTOC_8 / _SUNOS_VTOC_16 / _SVR4_VTOC_16: +// This specifies the form of the disk VTOC (or label): +// +// _SUNOS_VTOC_8: +// This is a VTOC form which is upwardly compatible with the +// SunOS 4.x disk label and allows 8 partitions per disk. +// +// _SUNOS_VTOC_16: +// In this format the incore vtoc image matches the ondisk +// version. It allows 16 slices per disk, and is not +// compatible with the SunOS 4.x disk label. +// +// Note that these are not the only two VTOC forms possible and +// additional forms may be added. One possible form would be the +// SVr4 VTOC form. The symbol for that is reserved now, although +// it is not implemented. +// +// _SVR4_VTOC_16: +// This VTOC form is compatible with the System V Release 4 +// VTOC (as implemented on the SVr4 Intel and 3b ports) with +// 16 partitions per disk. +// +// +// _DMA_USES_PHYSADDR / _DMA_USES_VIRTADDR +// This describes the type of addresses used by system DMA: +// +// _DMA_USES_PHYSADDR: +// This type of DMA, used in the x86 implementation, +// requires physical addresses for DMA buffers. The 24-bit +// addresses used by some legacy boards is the source of the +// "low-memory" (<16MB) requirement for some devices using DMA. +// +// _DMA_USES_VIRTADDR: +// This method of DMA allows the use of virtual addresses for +// DMA transfers. +// +// _FIRMWARE_NEEDS_FDISK / _NO_FDISK_PRESENT +// This indicates the presence/absence of an fdisk table. +// +// _FIRMWARE_NEEDS_FDISK +// The fdisk table is required by system firmware. If present, +// it allows a disk to be subdivided into multiple fdisk +// partitions, each of which is equivalent to a separate, +// virtual disk. This enables the co-existence of multiple +// operating systems on a shared hard disk. +// +// _NO_FDISK_PRESENT +// If the fdisk table is absent, it is assumed that the entire +// media is allocated for a single operating system. +// +// _HAVE_TEM_FIRMWARE +// Defined if this architecture has the (fallback) option of +// using prom_* calls for doing I/O if a suitable kernel driver +// is not available to do it. +// +// _DONT_USE_1275_GENERIC_NAMES +// Controls whether or not device tree node names should +// comply with the IEEE 1275 "Generic Names" Recommended +// Practice. With _DONT_USE_GENERIC_NAMES, device-specific +// names identifying the particular device will be used. +// +// __i386_COMPAT +// This indicates whether the i386 ABI is supported as a *non-native* +// mode for the platform. When this symbol is defined: +// - 32-bit xstat-style system calls are enabled +// - 32-bit xmknod-style system calls are enabled +// - 32-bit system calls use i386 sizes -and- alignments +// +// Note that this is NOT defined for the i386 native environment! +// +// __x86 +// This is ONLY a synonym for defined(__i386) || defined(__amd64) +// which is useful only insofar as these two architectures share +// common attributes. Analogous to __sparc. +// +// _PSM_MODULES +// This indicates whether or not the implementation uses PSM +// modules for processor support, reading /etc/mach from inside +// the kernel to extract a list. +// +// _RTC_CONFIG +// This indicates whether or not the implementation uses /etc/rtc_config +// to configure the real-time clock in the kernel. +// +// _UNIX_KRTLD +// This indicates that the implementation uses a dynamically +// linked unix + krtld to form the core kernel image at boot +// time, or (in the absence of this symbol) a prelinked kernel image. +// +// _OBP +// This indicates the firmware interface is OBP. +// +// _SOFT_HOSTID +// This indicates that the implementation obtains the hostid +// from the file /etc/hostid, rather than from hardware. + +// The following set of definitions characterize Solaris on AMD's +// 64-bit systems. + +// Define the appropriate "processor characteristics" + +// Different alignment constraints for the i386 ABI in compatibility mode + +// Define the appropriate "implementation choices". + +// The feature test macro __i386 is generic for all processors implementing +// the Intel 386 instruction set or a superset of it. Specifically, this +// includes all members of the 386, 486, and Pentium family of processors. + +// Values of _POSIX_C_SOURCE +// +// undefined not a POSIX compilation +// 1 POSIX.1-1990 compilation +// 2 POSIX.2-1992 compilation +// 199309L POSIX.1b-1993 compilation (Real Time) +// 199506L POSIX.1c-1995 compilation (POSIX Threads) +// 200112L POSIX.1-2001 compilation (Austin Group Revision) +// 200809L POSIX.1-2008 compilation + +// The feature test macros __XOPEN_OR_POSIX, _STRICT_STDC, _STRICT_SYMBOLS, +// and _STDC_C99 are Sun implementation specific macros created in order to +// compress common standards specified feature test macros for easier reading. +// These macros should not be used by the application developer as +// unexpected results may occur. Instead, the user should reference +// standards(7) for correct usage of the standards feature test macros. +// +// __XOPEN_OR_POSIX Used in cases where a symbol is defined by both +// X/Open or POSIX or in the negative, when neither +// X/Open or POSIX defines a symbol. +// +// _STRICT_STDC __STDC__ is specified by the C Standards and defined +// by the compiler. For Sun compilers the value of +// __STDC__ is either 1, 0, or not defined based on the +// compilation mode (see cc(1)). When the value of +// __STDC__ is 1 and in the absence of any other feature +// test macros, the namespace available to the application +// is limited to only those symbols defined by the C +// Standard. _STRICT_STDC provides a more readable means +// of identifying symbols defined by the standard, or in +// the negative, symbols that are extensions to the C +// Standard. See additional comments for GNU C differences. +// +// _STDC_C99 __STDC_VERSION__ is specified by the C standards and +// defined by the compiler and indicates the version of +// the C standard. A value of 199901L indicates a +// compiler that complies with ISO/IEC 9899:1999, other- +// wise known as the C99 standard. +// +// _STDC_C11 Like _STDC_C99 except that the value of __STDC_VERSION__ +// is 201112L indicating a compiler that compiles with +// ISO/IEC 9899:2011, otherwise known as the C11 standard. +// +// _STRICT_SYMBOLS Used in cases where symbol visibility is restricted +// by the standards, and the user has not explicitly +// relaxed the strictness via __EXTENSIONS__. + +// ISO/IEC 9899:1990 and it's revisions, ISO/IEC 9899:1999 and ISO/IEC +// 99899:2011 specify the following predefined macro name: +// +// __STDC__ The integer constant 1, intended to indicate a conforming +// implementation. +// +// Furthermore, a strictly conforming program shall use only those features +// of the language and library specified in these standards. A conforming +// implementation shall accept any strictly conforming program. +// +// Based on these requirements, Sun's C compiler defines __STDC__ to 1 for +// strictly conforming environments and __STDC__ to 0 for environments that +// use ANSI C semantics but allow extensions to the C standard. For non-ANSI +// C semantics, Sun's C compiler does not define __STDC__. +// +// The GNU C project interpretation is that __STDC__ should always be defined +// to 1 for compilation modes that accept ANSI C syntax regardless of whether +// or not extensions to the C standard are used. Violations of conforming +// behavior are conditionally flagged as warnings via the use of the +// -pedantic option. In addition to defining __STDC__ to 1, the GNU C +// compiler also defines __STRICT_ANSI__ as a means of specifying strictly +// conforming environments using the -ansi or -std= options. +// +// In the absence of any other compiler options, Sun and GNU set the value +// of __STDC__ as follows when using the following options: +// +// Value of __STDC__ __STRICT_ANSI__ +// +// cc -Xa (default) 0 undefined +// cc -Xt (transitional) 0 undefined +// cc -Xc (strictly conforming) 1 undefined +// cc -Xs (K&R C) undefined undefined +// +// gcc (default) 1 undefined +// gcc -ansi, -std={c89, c99,...) 1 defined +// gcc -traditional (K&R) undefined undefined +// +// The default compilation modes for Sun C compilers versus GNU C compilers +// results in a differing value for __STDC__ which results in a more +// restricted namespace when using Sun compilers. To allow both GNU and Sun +// interpretations to peacefully co-exist, we use the following Sun +// implementation _STRICT_STDC_ macro: + +// Compiler complies with ISO/IEC 9899:1999 or ISO/IEC 9989:2011 + +// Use strict symbol visibility. + +// This is a variant of _STRICT_SYMBOLS that is meant to cover headers that are +// governed by POSIX, but have not been governed by ISO C. One can go two ways +// on what should happen if an application actively includes (not transitively) +// a header that isn't part of the ISO C spec, we opt to say that if someone has +// gone out of there way then they're doing it for a reason and that is an act +// of non-compliance and therefore it's not up to us to hide away every symbol. +// +// In general, prefer using _STRICT_SYMBOLS, but this is here in particular for +// cases where in the past we have only used a POSIX related check and we don't +// wish to make something stricter. Often applications are relying on the +// ability to, or more realistically unwittingly, have _STRICT_STDC declared and +// still use these interfaces. + +// Large file interfaces: +// +// _LARGEFILE_SOURCE +// 1 large file-related additions to POSIX +// interfaces requested (fseeko, etc.) +// _LARGEFILE64_SOURCE +// 1 transitional large-file-related interfaces +// requested (seek64, stat64, etc.) +// +// The corresponding announcement macros are respectively: +// _LFS_LARGEFILE +// _LFS64_LARGEFILE +// (These are set in .) +// +// Requesting _LARGEFILE64_SOURCE implies requesting _LARGEFILE_SOURCE as +// well. +// +// The large file interfaces are made visible regardless of the initial values +// of the feature test macros under certain circumstances: +// - If no explicit standards-conforming environment is requested (neither +// of _POSIX_SOURCE nor _XOPEN_SOURCE is defined and the value of +// __STDC__ does not imply standards conformance). +// - Extended system interfaces are explicitly requested (__EXTENSIONS__ +// is defined). +// - Access to in-kernel interfaces is requested (_KERNEL or _KMEMUSER is +// defined). (Note that this dependency is an artifact of the current +// kernel implementation and may change in future releases.) + +// Large file compilation environment control: +// +// The setting of _FILE_OFFSET_BITS controls the size of various file-related +// types and governs the mapping between file-related source function symbol +// names and the corresponding binary entry points. +// +// In the 32-bit environment, the default value is 32; if not set, set it to +// the default here, to simplify tests in other headers. +// +// In the 64-bit compilation environment, the only value allowed is 64. + +// Use of _XOPEN_SOURCE +// +// The following X/Open specifications are supported: +// +// X/Open Portability Guide, Issue 3 (XPG3) +// X/Open CAE Specification, Issue 4 (XPG4) +// X/Open CAE Specification, Issue 4, Version 2 (XPG4v2) +// X/Open CAE Specification, Issue 5 (XPG5) +// Open Group Technical Standard, Issue 6 (XPG6), also referred to as +// IEEE Std. 1003.1-2001 and ISO/IEC 9945:2002. +// Open Group Technical Standard, Issue 7 (XPG7), also referred to as +// IEEE Std. 1003.1-2008 and ISO/IEC 9945:2009. +// +// XPG4v2 is also referred to as UNIX 95 (SUS or SUSv1). +// XPG5 is also referred to as UNIX 98 or the Single Unix Specification, +// Version 2 (SUSv2) +// XPG6 is the result of a merge of the X/Open and POSIX specifications +// and as such is also referred to as IEEE Std. 1003.1-2001 in +// addition to UNIX 03 and SUSv3. +// XPG7 is also referred to as UNIX 08 and SUSv4. +// +// When writing a conforming X/Open application, as per the specification +// requirements, the appropriate feature test macros must be defined at +// compile time. These are as follows. For more info, see standards(7). +// +// Feature Test Macro Specification +// ------------------------------------------------ ------------- +// _XOPEN_SOURCE XPG3 +// _XOPEN_SOURCE && _XOPEN_VERSION = 4 XPG4 +// _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED = 1 XPG4v2 +// _XOPEN_SOURCE = 500 XPG5 +// _XOPEN_SOURCE = 600 (or POSIX_C_SOURCE=200112L) XPG6 +// _XOPEN_SOURCE = 700 (or POSIX_C_SOURCE=200809L) XPG7 +// +// In order to simplify the guards within the headers, the following +// implementation private test macros have been created. Applications +// must NOT use these private test macros as unexpected results will +// occur. +// +// Note that in general, the use of these private macros is cumulative. +// For example, the use of _XPG3 with no other restrictions on the X/Open +// namespace will make the symbols visible for XPG3 through XPG6 +// compilation environments. The use of _XPG4_2 with no other X/Open +// namespace restrictions indicates that the symbols were introduced in +// XPG4v2 and are therefore visible for XPG4v2 through XPG6 compilation +// environments, but not for XPG3 or XPG4 compilation environments. +// +// _XPG3 X/Open Portability Guide, Issue 3 (XPG3) +// _XPG4 X/Open CAE Specification, Issue 4 (XPG4) +// _XPG4_2 X/Open CAE Specification, Issue 4, Version 2 (XPG4v2/UNIX 95/SUS) +// _XPG5 X/Open CAE Specification, Issue 5 (XPG5/UNIX 98/SUSv2) +// _XPG6 Open Group Technical Standard, Issue 6 (XPG6/UNIX 03/SUSv3) +// _XPG7 Open Group Technical Standard, Issue 7 (XPG7/UNIX 08/SUSv4) + +// X/Open Portability Guide, Issue 3 + +// _XOPEN_VERSION is defined by the X/Open specifications and is not +// normally defined by the application, except in the case of an XPG4 +// application. On the implementation side, _XOPEN_VERSION defined with +// the value of 3 indicates an XPG3 application. _XOPEN_VERSION defined +// with the value of 4 indicates an XPG4 or XPG4v2 (UNIX 95) application. +// _XOPEN_VERSION defined with a value of 500 indicates an XPG5 (UNIX 98) +// application and with a value of 600 indicates an XPG6 (UNIX 03) +// application and with a value of 700 indicates an XPG7 (UNIX 08). +// The appropriate version is determined by the use of the +// feature test macros described earlier. The value of _XOPEN_VERSION +// defaults to 3 otherwise indicating support for XPG3 applications. + +// ANSI C and ISO 9899:1990 say the type long long doesn't exist in strictly +// conforming environments. ISO 9899:1999 says it does. +// +// The presence of _LONGLONG_TYPE says "long long exists" which is therefore +// defined in all but strictly conforming environments that disallow it. + +// The following macro defines a value for the ISO C99 restrict +// keyword so that _RESTRICT_KYWD resolves to "restrict" if +// an ISO C99 compiler is used, "__restrict" for c++ and "" (null string) +// if any other compiler is used. This allows for the use of single +// prototype declarations regardless of compiler version. + +// The following macro defines a value for the ISO C11 _Noreturn +// keyword so that _NORETURN_KYWD resolves to "_Noreturn" if +// an ISO C11 compiler is used and "" (null string) if any other +// compiler is used. This allows for the use of single prototype +// declarations regardless of compiler version. + +// ISO/IEC 9899:2011 Annex K + +// The following macro indicates header support for the ANSI C++ +// standard. The ISO/IEC designation for this is ISO/IEC FDIS 14882. + +// The following macro indicates header support for the C99 standard, +// ISO/IEC 9899:1999, Programming Languages - C. + +// The following macro indicates header support for the C11 standard, +// ISO/IEC 9899:2011, Programming Languages - C. + +// The following macro indicates header support for the C11 standard, +// ISO/IEC 9899:2011 Annex K, Programming Languages - C. + +// The following macro indicates header support for DTrace. The value is an +// integer that corresponds to the major version number for DTrace. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2016 Joyent, Inc. + +// Machine dependent definitions moved to . +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2007 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Machine dependent types: +// +// intel ia32 Version + +type X_label_t = struct{ Fval [8]int64 } /* machtypes.h:59:9 */ + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2005 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright 2014 Andrew Stormont. + +// The copyright in this file is taken from the original Leach & Salz +// UUID specification, from which this implementation is derived. + +// Copyright (c) 1990- 1993, 1996 Open Software Foundation, Inc. +// Copyright (c) 1989 by Hewlett-Packard Company, Palo Alto, Ca. & +// Digital Equipment Corporation, Maynard, Mass. Copyright (c) 1998 +// Microsoft. To anyone who acknowledges that this file is provided +// "AS IS" without any express or implied warranty: permission to use, +// copy, modify, and distribute this file for any purpose is hereby +// granted without fee, provided that the above copyright notices and +// this notice appears in all source code copies, and that none of the +// names of Open Software Foundation, Inc., Hewlett-Packard Company, +// or Digital Equipment Corporation be used in advertising or +// publicity pertaining to distribution of the software without +// specific, written prior permission. Neither Open Software +// Foundation, Inc., Hewlett-Packard Company, Microsoft, nor Digital +// Equipment Corporation makes any representations about the +// suitability of this software for any purpose. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2021 Oxide Computer Company + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2015 EveryCity Ltd. All rights reserved. +// Copyright 2019 Joyent, Inc. + +// This file contains definitions designed to enable different compilers +// to be used harmoniously on Solaris systems. + +// Allow for version tests for compiler bugs and features. + +// analogous to lint's PRINTFLIKEn + +// Handle the kernel printf routines that can take '%b' too + +// This one's pretty obvious -- the function never returns + +// The function is 'extern inline' and expects GNU C89 behaviour, not C99 +// behaviour. +// +// Should only be used on 'extern inline' definitions for GCC. + +// The function has control flow such that it may return multiple times (in +// the manner of setjmp or vfork) + +// This is an appropriate label for functions that do not +// modify their arguments, e.g. strlen() + +// This is a stronger form of __pure__. Can be used for functions +// that do not modify their arguments and don't depend on global +// memory. + +// This attribute, attached to a variable, means that the variable is meant to +// be possibly unused. GCC will not produce a warning for this variable. + +// Shorthand versions for readability + +// In release build, disable warnings about variables +// which are used only for debugging. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2016 Joyent, Inc. + +// This header file serves to group a set of well known defines and to +// set these for each instruction set architecture. These defines may +// be divided into two groups; characteristics of the processor and +// implementation choices for Solaris on a processor. +// +// Processor Characteristics: +// +// _LITTLE_ENDIAN / _BIG_ENDIAN: +// The natural byte order of the processor. A pointer to an int points +// to the least/most significant byte of that int. +// +// _STACK_GROWS_UPWARD / _STACK_GROWS_DOWNWARD: +// The processor specific direction of stack growth. A push onto the +// stack increases/decreases the stack pointer, so it stores data at +// successively higher/lower addresses. (Stackless machines ignored +// without regrets). +// +// _LONG_LONG_HTOL / _LONG_LONG_LTOH: +// A pointer to a long long points to the most/least significant long +// within that long long. +// +// _BIT_FIELDS_HTOL / _BIT_FIELDS_LTOH: +// The C compiler assigns bit fields from the high/low to the low/high end +// of an int (most to least significant vs. least to most significant). +// +// _IEEE_754: +// The processor (or supported implementations of the processor) +// supports the ieee-754 floating point standard. No other floating +// point standards are supported (or significant). Any other supported +// floating point formats are expected to be cased on the ISA processor +// symbol. +// +// _CHAR_IS_UNSIGNED / _CHAR_IS_SIGNED: +// The C Compiler implements objects of type `char' as `unsigned' or +// `signed' respectively. This is really an implementation choice of +// the compiler writer, but it is specified in the ABI and tends to +// be uniform across compilers for an instruction set architecture. +// Hence, it has the properties of a processor characteristic. +// +// _CHAR_ALIGNMENT / _SHORT_ALIGNMENT / _INT_ALIGNMENT / _LONG_ALIGNMENT / +// _LONG_LONG_ALIGNMENT / _DOUBLE_ALIGNMENT / _LONG_DOUBLE_ALIGNMENT / +// _POINTER_ALIGNMENT / _FLOAT_ALIGNMENT: +// The ABI defines alignment requirements of each of the primitive +// object types. Some, if not all, may be hardware requirements as +// well. The values are expressed in "byte-alignment" units. +// +// _MAX_ALIGNMENT: +// The most stringent alignment requirement as specified by the ABI. +// Equal to the maximum of all the above _XXX_ALIGNMENT values. +// +// _MAX_ALIGNMENT_TYPE: +// The name of the C type that has the value descried in _MAX_ALIGNMENT. +// +// _ALIGNMENT_REQUIRED: +// True or false (1 or 0) whether or not the hardware requires the ABI +// alignment. +// +// _LONG_LONG_ALIGNMENT_32 +// The 32-bit ABI supported by a 64-bit kernel may have different +// alignment requirements for primitive object types. The value of this +// identifier is expressed in "byte-alignment" units. +// +// _HAVE_CPUID_INSN +// This indicates that the architecture supports the 'cpuid' +// instruction as defined by Intel. (Intel allows other vendors +// to extend the instruction for their own purposes.) +// +// +// Implementation Choices: +// +// _ILP32 / _LP64: +// This specifies the compiler data type implementation as specified in +// the relevant ABI. The choice between these is strongly influenced +// by the underlying hardware, but is not absolutely tied to it. +// Currently only two data type models are supported: +// +// _ILP32: +// Int/Long/Pointer are 32 bits. This is the historical UNIX +// and Solaris implementation. Due to its historical standing, +// this is the default case. +// +// _LP64: +// Long/Pointer are 64 bits, Int is 32 bits. This is the chosen +// implementation for 64-bit ABIs such as SPARC V9. +// +// _I32LPx: +// A compilation environment where 'int' is 32-bit, and +// longs and pointers are simply the same size. +// +// In all cases, Char is 8 bits and Short is 16 bits. +// +// _SUNOS_VTOC_8 / _SUNOS_VTOC_16 / _SVR4_VTOC_16: +// This specifies the form of the disk VTOC (or label): +// +// _SUNOS_VTOC_8: +// This is a VTOC form which is upwardly compatible with the +// SunOS 4.x disk label and allows 8 partitions per disk. +// +// _SUNOS_VTOC_16: +// In this format the incore vtoc image matches the ondisk +// version. It allows 16 slices per disk, and is not +// compatible with the SunOS 4.x disk label. +// +// Note that these are not the only two VTOC forms possible and +// additional forms may be added. One possible form would be the +// SVr4 VTOC form. The symbol for that is reserved now, although +// it is not implemented. +// +// _SVR4_VTOC_16: +// This VTOC form is compatible with the System V Release 4 +// VTOC (as implemented on the SVr4 Intel and 3b ports) with +// 16 partitions per disk. +// +// +// _DMA_USES_PHYSADDR / _DMA_USES_VIRTADDR +// This describes the type of addresses used by system DMA: +// +// _DMA_USES_PHYSADDR: +// This type of DMA, used in the x86 implementation, +// requires physical addresses for DMA buffers. The 24-bit +// addresses used by some legacy boards is the source of the +// "low-memory" (<16MB) requirement for some devices using DMA. +// +// _DMA_USES_VIRTADDR: +// This method of DMA allows the use of virtual addresses for +// DMA transfers. +// +// _FIRMWARE_NEEDS_FDISK / _NO_FDISK_PRESENT +// This indicates the presence/absence of an fdisk table. +// +// _FIRMWARE_NEEDS_FDISK +// The fdisk table is required by system firmware. If present, +// it allows a disk to be subdivided into multiple fdisk +// partitions, each of which is equivalent to a separate, +// virtual disk. This enables the co-existence of multiple +// operating systems on a shared hard disk. +// +// _NO_FDISK_PRESENT +// If the fdisk table is absent, it is assumed that the entire +// media is allocated for a single operating system. +// +// _HAVE_TEM_FIRMWARE +// Defined if this architecture has the (fallback) option of +// using prom_* calls for doing I/O if a suitable kernel driver +// is not available to do it. +// +// _DONT_USE_1275_GENERIC_NAMES +// Controls whether or not device tree node names should +// comply with the IEEE 1275 "Generic Names" Recommended +// Practice. With _DONT_USE_GENERIC_NAMES, device-specific +// names identifying the particular device will be used. +// +// __i386_COMPAT +// This indicates whether the i386 ABI is supported as a *non-native* +// mode for the platform. When this symbol is defined: +// - 32-bit xstat-style system calls are enabled +// - 32-bit xmknod-style system calls are enabled +// - 32-bit system calls use i386 sizes -and- alignments +// +// Note that this is NOT defined for the i386 native environment! +// +// __x86 +// This is ONLY a synonym for defined(__i386) || defined(__amd64) +// which is useful only insofar as these two architectures share +// common attributes. Analogous to __sparc. +// +// _PSM_MODULES +// This indicates whether or not the implementation uses PSM +// modules for processor support, reading /etc/mach from inside +// the kernel to extract a list. +// +// _RTC_CONFIG +// This indicates whether or not the implementation uses /etc/rtc_config +// to configure the real-time clock in the kernel. +// +// _UNIX_KRTLD +// This indicates that the implementation uses a dynamically +// linked unix + krtld to form the core kernel image at boot +// time, or (in the absence of this symbol) a prelinked kernel image. +// +// _OBP +// This indicates the firmware interface is OBP. +// +// _SOFT_HOSTID +// This indicates that the implementation obtains the hostid +// from the file /etc/hostid, rather than from hardware. + +// The following set of definitions characterize Solaris on AMD's +// 64-bit systems. + +// Define the appropriate "processor characteristics" + +// Different alignment constraints for the i386 ABI in compatibility mode + +// Define the appropriate "implementation choices". + +// The feature test macro __i386 is generic for all processors implementing +// the Intel 386 instruction set or a superset of it. Specifically, this +// includes all members of the 386, 486, and Pentium family of processors. + +// Values of _POSIX_C_SOURCE +// +// undefined not a POSIX compilation +// 1 POSIX.1-1990 compilation +// 2 POSIX.2-1992 compilation +// 199309L POSIX.1b-1993 compilation (Real Time) +// 199506L POSIX.1c-1995 compilation (POSIX Threads) +// 200112L POSIX.1-2001 compilation (Austin Group Revision) +// 200809L POSIX.1-2008 compilation + +// The feature test macros __XOPEN_OR_POSIX, _STRICT_STDC, _STRICT_SYMBOLS, +// and _STDC_C99 are Sun implementation specific macros created in order to +// compress common standards specified feature test macros for easier reading. +// These macros should not be used by the application developer as +// unexpected results may occur. Instead, the user should reference +// standards(7) for correct usage of the standards feature test macros. +// +// __XOPEN_OR_POSIX Used in cases where a symbol is defined by both +// X/Open or POSIX or in the negative, when neither +// X/Open or POSIX defines a symbol. +// +// _STRICT_STDC __STDC__ is specified by the C Standards and defined +// by the compiler. For Sun compilers the value of +// __STDC__ is either 1, 0, or not defined based on the +// compilation mode (see cc(1)). When the value of +// __STDC__ is 1 and in the absence of any other feature +// test macros, the namespace available to the application +// is limited to only those symbols defined by the C +// Standard. _STRICT_STDC provides a more readable means +// of identifying symbols defined by the standard, or in +// the negative, symbols that are extensions to the C +// Standard. See additional comments for GNU C differences. +// +// _STDC_C99 __STDC_VERSION__ is specified by the C standards and +// defined by the compiler and indicates the version of +// the C standard. A value of 199901L indicates a +// compiler that complies with ISO/IEC 9899:1999, other- +// wise known as the C99 standard. +// +// _STDC_C11 Like _STDC_C99 except that the value of __STDC_VERSION__ +// is 201112L indicating a compiler that compiles with +// ISO/IEC 9899:2011, otherwise known as the C11 standard. +// +// _STRICT_SYMBOLS Used in cases where symbol visibility is restricted +// by the standards, and the user has not explicitly +// relaxed the strictness via __EXTENSIONS__. + +// ISO/IEC 9899:1990 and it's revisions, ISO/IEC 9899:1999 and ISO/IEC +// 99899:2011 specify the following predefined macro name: +// +// __STDC__ The integer constant 1, intended to indicate a conforming +// implementation. +// +// Furthermore, a strictly conforming program shall use only those features +// of the language and library specified in these standards. A conforming +// implementation shall accept any strictly conforming program. +// +// Based on these requirements, Sun's C compiler defines __STDC__ to 1 for +// strictly conforming environments and __STDC__ to 0 for environments that +// use ANSI C semantics but allow extensions to the C standard. For non-ANSI +// C semantics, Sun's C compiler does not define __STDC__. +// +// The GNU C project interpretation is that __STDC__ should always be defined +// to 1 for compilation modes that accept ANSI C syntax regardless of whether +// or not extensions to the C standard are used. Violations of conforming +// behavior are conditionally flagged as warnings via the use of the +// -pedantic option. In addition to defining __STDC__ to 1, the GNU C +// compiler also defines __STRICT_ANSI__ as a means of specifying strictly +// conforming environments using the -ansi or -std= options. +// +// In the absence of any other compiler options, Sun and GNU set the value +// of __STDC__ as follows when using the following options: +// +// Value of __STDC__ __STRICT_ANSI__ +// +// cc -Xa (default) 0 undefined +// cc -Xt (transitional) 0 undefined +// cc -Xc (strictly conforming) 1 undefined +// cc -Xs (K&R C) undefined undefined +// +// gcc (default) 1 undefined +// gcc -ansi, -std={c89, c99,...) 1 defined +// gcc -traditional (K&R) undefined undefined +// +// The default compilation modes for Sun C compilers versus GNU C compilers +// results in a differing value for __STDC__ which results in a more +// restricted namespace when using Sun compilers. To allow both GNU and Sun +// interpretations to peacefully co-exist, we use the following Sun +// implementation _STRICT_STDC_ macro: + +// Compiler complies with ISO/IEC 9899:1999 or ISO/IEC 9989:2011 + +// Use strict symbol visibility. + +// This is a variant of _STRICT_SYMBOLS that is meant to cover headers that are +// governed by POSIX, but have not been governed by ISO C. One can go two ways +// on what should happen if an application actively includes (not transitively) +// a header that isn't part of the ISO C spec, we opt to say that if someone has +// gone out of there way then they're doing it for a reason and that is an act +// of non-compliance and therefore it's not up to us to hide away every symbol. +// +// In general, prefer using _STRICT_SYMBOLS, but this is here in particular for +// cases where in the past we have only used a POSIX related check and we don't +// wish to make something stricter. Often applications are relying on the +// ability to, or more realistically unwittingly, have _STRICT_STDC declared and +// still use these interfaces. + +// Large file interfaces: +// +// _LARGEFILE_SOURCE +// 1 large file-related additions to POSIX +// interfaces requested (fseeko, etc.) +// _LARGEFILE64_SOURCE +// 1 transitional large-file-related interfaces +// requested (seek64, stat64, etc.) +// +// The corresponding announcement macros are respectively: +// _LFS_LARGEFILE +// _LFS64_LARGEFILE +// (These are set in .) +// +// Requesting _LARGEFILE64_SOURCE implies requesting _LARGEFILE_SOURCE as +// well. +// +// The large file interfaces are made visible regardless of the initial values +// of the feature test macros under certain circumstances: +// - If no explicit standards-conforming environment is requested (neither +// of _POSIX_SOURCE nor _XOPEN_SOURCE is defined and the value of +// __STDC__ does not imply standards conformance). +// - Extended system interfaces are explicitly requested (__EXTENSIONS__ +// is defined). +// - Access to in-kernel interfaces is requested (_KERNEL or _KMEMUSER is +// defined). (Note that this dependency is an artifact of the current +// kernel implementation and may change in future releases.) + +// Large file compilation environment control: +// +// The setting of _FILE_OFFSET_BITS controls the size of various file-related +// types and governs the mapping between file-related source function symbol +// names and the corresponding binary entry points. +// +// In the 32-bit environment, the default value is 32; if not set, set it to +// the default here, to simplify tests in other headers. +// +// In the 64-bit compilation environment, the only value allowed is 64. + +// Use of _XOPEN_SOURCE +// +// The following X/Open specifications are supported: +// +// X/Open Portability Guide, Issue 3 (XPG3) +// X/Open CAE Specification, Issue 4 (XPG4) +// X/Open CAE Specification, Issue 4, Version 2 (XPG4v2) +// X/Open CAE Specification, Issue 5 (XPG5) +// Open Group Technical Standard, Issue 6 (XPG6), also referred to as +// IEEE Std. 1003.1-2001 and ISO/IEC 9945:2002. +// Open Group Technical Standard, Issue 7 (XPG7), also referred to as +// IEEE Std. 1003.1-2008 and ISO/IEC 9945:2009. +// +// XPG4v2 is also referred to as UNIX 95 (SUS or SUSv1). +// XPG5 is also referred to as UNIX 98 or the Single Unix Specification, +// Version 2 (SUSv2) +// XPG6 is the result of a merge of the X/Open and POSIX specifications +// and as such is also referred to as IEEE Std. 1003.1-2001 in +// addition to UNIX 03 and SUSv3. +// XPG7 is also referred to as UNIX 08 and SUSv4. +// +// When writing a conforming X/Open application, as per the specification +// requirements, the appropriate feature test macros must be defined at +// compile time. These are as follows. For more info, see standards(7). +// +// Feature Test Macro Specification +// ------------------------------------------------ ------------- +// _XOPEN_SOURCE XPG3 +// _XOPEN_SOURCE && _XOPEN_VERSION = 4 XPG4 +// _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED = 1 XPG4v2 +// _XOPEN_SOURCE = 500 XPG5 +// _XOPEN_SOURCE = 600 (or POSIX_C_SOURCE=200112L) XPG6 +// _XOPEN_SOURCE = 700 (or POSIX_C_SOURCE=200809L) XPG7 +// +// In order to simplify the guards within the headers, the following +// implementation private test macros have been created. Applications +// must NOT use these private test macros as unexpected results will +// occur. +// +// Note that in general, the use of these private macros is cumulative. +// For example, the use of _XPG3 with no other restrictions on the X/Open +// namespace will make the symbols visible for XPG3 through XPG6 +// compilation environments. The use of _XPG4_2 with no other X/Open +// namespace restrictions indicates that the symbols were introduced in +// XPG4v2 and are therefore visible for XPG4v2 through XPG6 compilation +// environments, but not for XPG3 or XPG4 compilation environments. +// +// _XPG3 X/Open Portability Guide, Issue 3 (XPG3) +// _XPG4 X/Open CAE Specification, Issue 4 (XPG4) +// _XPG4_2 X/Open CAE Specification, Issue 4, Version 2 (XPG4v2/UNIX 95/SUS) +// _XPG5 X/Open CAE Specification, Issue 5 (XPG5/UNIX 98/SUSv2) +// _XPG6 Open Group Technical Standard, Issue 6 (XPG6/UNIX 03/SUSv3) +// _XPG7 Open Group Technical Standard, Issue 7 (XPG7/UNIX 08/SUSv4) + +// X/Open Portability Guide, Issue 3 + +// _XOPEN_VERSION is defined by the X/Open specifications and is not +// normally defined by the application, except in the case of an XPG4 +// application. On the implementation side, _XOPEN_VERSION defined with +// the value of 3 indicates an XPG3 application. _XOPEN_VERSION defined +// with the value of 4 indicates an XPG4 or XPG4v2 (UNIX 95) application. +// _XOPEN_VERSION defined with a value of 500 indicates an XPG5 (UNIX 98) +// application and with a value of 600 indicates an XPG6 (UNIX 03) +// application and with a value of 700 indicates an XPG7 (UNIX 08). +// The appropriate version is determined by the use of the +// feature test macros described earlier. The value of _XOPEN_VERSION +// defaults to 3 otherwise indicating support for XPG3 applications. + +// ANSI C and ISO 9899:1990 say the type long long doesn't exist in strictly +// conforming environments. ISO 9899:1999 says it does. +// +// The presence of _LONGLONG_TYPE says "long long exists" which is therefore +// defined in all but strictly conforming environments that disallow it. + +// The following macro defines a value for the ISO C99 restrict +// keyword so that _RESTRICT_KYWD resolves to "restrict" if +// an ISO C99 compiler is used, "__restrict" for c++ and "" (null string) +// if any other compiler is used. This allows for the use of single +// prototype declarations regardless of compiler version. + +// The following macro defines a value for the ISO C11 _Noreturn +// keyword so that _NORETURN_KYWD resolves to "_Noreturn" if +// an ISO C11 compiler is used and "" (null string) if any other +// compiler is used. This allows for the use of single prototype +// declarations regardless of compiler version. + +// ISO/IEC 9899:2011 Annex K + +// The following macro indicates header support for the ANSI C++ +// standard. The ISO/IEC designation for this is ISO/IEC FDIS 14882. + +// The following macro indicates header support for the C99 standard, +// ISO/IEC 9899:1999, Programming Languages - C. + +// The following macro indicates header support for the C11 standard, +// ISO/IEC 9899:2011, Programming Languages - C. + +// The following macro indicates header support for the C11 standard, +// ISO/IEC 9899:2011 Annex K, Programming Languages - C. + +// The following macro indicates header support for DTrace. The value is an +// integer that corresponds to the major version number for DTrace. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2016 Joyent, Inc. + +// Machine dependent definitions moved to . +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2007 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Machine dependent types: +// +// intel ia32 Version + +type Label_t = X_label_t /* machtypes.h:59:54 */ + +type Lock_t = uint8 /* machtypes.h:63:23 */ // lock work for busy wait + +// Include fixed width type declarations proposed by the ISO/JTC1/SC22/WG14 C +// committee's working draft for the revision of the current ISO C standard, +// ISO/IEC 9899:1990 Programming language - C. These are not currently +// required by any standard but constitute a useful, general purpose set +// of type definitions which is namespace clean with respect to all standards. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2014 Garrett D'Amore +// +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// This file, , is part of the Sun Microsystems implementation +// of defined in the ISO C standard, ISO/IEC 9899:1999 +// Programming language - C. +// +// Programs/Modules should not directly include this file. Access to the +// types defined in this file should be through the inclusion of one of the +// following files: +// +// Provides only the "_t" types defined in this +// file which is a subset of the contents of +// . (This can be appropriate for +// all programs/modules except those claiming +// ANSI-C conformance.) +// +// Provides the Kernel and Driver appropriate +// components of . +// +// For use by applications. +// +// See these files for more details. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Basic / Extended integer types +// +// The following defines the basic fixed-size integer types. +// +// Implementations are free to typedef them to Standard C integer types or +// extensions that they support. If an implementation does not support one +// of the particular integer data types below, then it should not define the +// typedefs and macros corresponding to that data type. Note that int8_t +// is not defined in -Xs mode on ISAs for which the ABI specifies "char" +// as an unsigned entity because there is no way to define an eight bit +// signed integral. +type Int8_t = int8 /* int_types.h:75:16 */ +type Int16_t = int16 /* int_types.h:79:17 */ +type Int32_t = int32 /* int_types.h:80:15 */ +type Int64_t = int64 /* int_types.h:83:16 */ + +type Uint8_t = uint8 /* int_types.h:91:24 */ +type Uint16_t = uint16 /* int_types.h:92:25 */ +type Uint32_t = uint32 /* int_types.h:93:23 */ +type Uint64_t = uint64 /* int_types.h:95:24 */ + +// intmax_t and uintmax_t are to be the longest (in number of bits) signed +// and unsigned integer types supported by the implementation. +type Intmax_t = int64 /* int_types.h:107:19 */ +type Uintmax_t = uint64 /* int_types.h:108:19 */ + +// intptr_t and uintptr_t are signed and unsigned integer types large enough +// to hold any data pointer; that is, data pointers can be assigned into or +// from these integer types without losing precision. +type Intptr_t = int64 /* int_types.h:120:16 */ +type Uintptr_t = uint64 /* int_types.h:121:24 */ + +// The following define the fastest integer types that can hold the +// specified number of bits. +type Int_fast8_t = int8 /* int_types.h:132:16 */ +type Int_fast16_t = int32 /* int_types.h:136:15 */ +type Int_fast32_t = int32 /* int_types.h:137:15 */ +type Int_fast64_t = int64 /* int_types.h:139:16 */ + +type Uint_fast8_t = uint8 /* int_types.h:146:24 */ +type Uint_fast16_t = uint32 /* int_types.h:147:23 */ +type Uint_fast32_t = uint32 /* int_types.h:148:23 */ +type Uint_fast64_t = uint64 /* int_types.h:150:24 */ + +// The following define the smallest integer types that can hold the +// specified number of bits. +type Int_least8_t = int8 /* int_types.h:162:16 */ +type Int_least16_t = int16 /* int_types.h:166:17 */ +type Int_least32_t = int32 /* int_types.h:167:15 */ +type Int_least64_t = int64 /* int_types.h:169:16 */ + +// If these are changed, please update char16_t and char32_t in head/uchar.h. +type Uint_least8_t = uint8 /* int_types.h:179:24 */ +type Uint_least16_t = uint16 /* int_types.h:180:25 */ +type Uint_least32_t = uint32 /* int_types.h:181:23 */ +type Uint_least64_t = uint64 /* int_types.h:183:24 */ + +// Strictly conforming ANSI C environments prior to the 1999 +// revision of the C Standard (ISO/IEC 9899:1999) do not have +// the long long data type. +type Longlong_t = int64 /* types.h:72:20 */ +type U_longlong_t = uint64 /* types.h:73:28 */ + +// These types (t_{u}scalar_t) exist because the XTI/TPI/DLPI standards had +// to use them instead of int32_t and uint32_t because DEC had +// shipped 64-bit wide. +type T_scalar_t = int32 /* types.h:92:18 */ +type T_uscalar_t = uint32 /* types.h:93:18 */ + +// POSIX Extensions +type Uchar_t = uint8 /* types.h:102:23 */ +type Ushort_t = uint16 /* types.h:103:24 */ +type Uint_t = uint32 /* types.h:104:22 */ +type Ulong_t = uint64 /* types.h:105:23 */ + +type Caddr_t = uintptr /* types.h:107:15 */ // ? type +type Daddr_t = int64 /* types.h:108:15 */ // type +type Cnt_t = int16 /* types.h:109:16 */ // pointer difference + +// VM-related types +type Pfn_t = uint64 /* types.h:123:18 */ // page frame number +type Pgcnt_t = uint64 /* types.h:124:18 */ // number of pages +type Spgcnt_t = int64 /* types.h:125:15 */ // signed number of pages + +type Use_t = uint8 /* types.h:127:18 */ // use count for swap. +type Sysid_t = int16 /* types.h:128:16 */ +type Index_t = int16 /* types.h:129:16 */ +type Timeout_id_t = uintptr /* types.h:130:15 */ // opaque handle from timeout(9F) +type Bufcall_id_t = uintptr /* types.h:131:15 */ // opaque handle from bufcall(9F) + +// The size of off_t and related types depends on the setting of +// _FILE_OFFSET_BITS. (Note that other system headers define other types +// related to those defined here.) +// +// If _LARGEFILE64_SOURCE is defined, variants of these types that are +// explicitly 64 bits wide become available. + +type Off_t = int64 /* types.h:145:15 */ // offsets within files + +type Off64_t = int64 /* types.h:152:16 */ // offsets within files + +type Ino_t = uint64 /* types.h:161:18 */ // expanded inode type +type Blkcnt_t = int64 /* types.h:162:15 */ // count of file blocks +type Fsblkcnt_t = uint64 /* types.h:163:18 */ // count of file system blocks +type Fsfilcnt_t = uint64 /* types.h:164:18 */ // count of files + +type Ino64_t = uint64 /* types.h:174:16 */ // expanded inode type +type Blkcnt64_t = int64 /* types.h:175:18 */ // count of file blocks +type Fsblkcnt64_t = uint64 /* types.h:176:20 */ // count of file system blocks +type Fsfilcnt64_t = uint64 /* types.h:177:20 */ // count of files + +type Blksize_t = int32 /* types.h:187:14 */ // used for block sizes + +// The boolean_t type has had a varied amount of exposure over the years in +// terms of how its enumeration constants have been exposed. In particular, it +// originally used the __XOPEN_OR_POSIX macro to determine whether to prefix the +// B_TRUE and B_FALSE with an underscore. This check never included the +// question of if we were in a strict ANSI C environment or whether extensions +// were defined. +// +// Compilers such as clang started defaulting to always including an +// XOPEN_SOURCE declaration on behalf of users, but also noted __EXTENSIONS__. +// This would lead most software that had used the non-underscore versions to +// need it. As such, we have adjusted the non-strict XOPEN environment to retain +// its old behavior so as to minimize namespace pollution; however, we instead +// include both variants of the definitions in the generally visible version +// allowing software written in either world to hopefully end up in a good +// place. +// +// This isn't perfect, but should hopefully minimize the pain for folks actually +// trying to build software. +type Boolean_t = uint32 /* types.h:215:69 */ + +// The {u,}pad64_t types can be used in structures such that those structures +// may be accessed by code produced by compilation environments which don't +// support a 64 bit integral datatype. The intention is not to allow +// use of these fields in such environments, but to maintain the alignment +// and offsets of the structure. +// +// Similar comments for {u,}pad128_t. +// +// Note that these types do NOT generate any stronger alignment constraints +// than those available in the underlying ABI. See +type Pad64_t = int64 /* types.h:240:18 */ +type Upad64_t = uint64 /* types.h:241:18 */ + +type Pad128_t = struct { + F_q float64 + F__ccgo_pad1 [8]byte +} /* types.h:257:3 */ + +type Upad128_t = struct { + F_q float64 + F__ccgo_pad1 [8]byte +} /* types.h:262:3 */ + +type Offset_t = int64 /* types.h:264:20 */ +type U_offset_t = uint64 /* types.h:265:22 */ +type Len_t = uint64 /* types.h:266:22 */ +type Diskaddr_t = uint64 /* types.h:267:22 */ + +// Definitions remaining from previous partial support for 64-bit file +// offsets. This partial support for devices greater than 2gb requires +// compiler support for long long. +type Lloff_t = struct{ F_f int64 } /* types.h:284:3 */ + +type Lldaddr_t = struct{ F_f int64 } /* types.h:304:3 */ + +type K_fltset_t = uint32 /* types.h:317:16 */ // kernel fault set type + +// The following type is for various kinds of identifiers. The +// actual type must be the same for all since some system calls +// (such as sigsend) take arguments that may be any of these +// types. The enumeration type idtype_t defined in sys/procset.h +// is used to indicate what type of id is being specified -- +// a process id, process group id, session id, scheduling class id, +// user id, group id, project id, task id or zone id. +type Id_t = int32 /* types.h:329:14 */ + +type Lgrp_id_t = int32 /* types.h:334:15 */ // lgroup ID + +// Type useconds_t is an unsigned integral type capable of storing +// values at least in the range of zero to 1,000,000. +type Useconds_t = uint32 /* types.h:340:17 */ // Time, in microseconds + +type Suseconds_t = int64 /* types.h:344:14 */ // signed # of microseconds + +// Typedefs for dev_t components. +type Major_t = uint32 /* types.h:351:16 */ // major part of device number +type Minor_t = uint32 /* types.h:352:16 */ // minor part of device number + +// The data type of a thread priority. +type Pri_t = int16 /* types.h:361:15 */ + +// The data type for a CPU flags field. (Can be extended to larger unsigned +// types, if needed, limited by ability to update atomically.) +type Cpu_flag_t = uint16 /* types.h:367:18 */ + +// For compatibility reasons the following typedefs (prefixed o_) +// can't grow regardless of the EFT definition. Although, +// applications should not explicitly use these typedefs +// they may be included via a system header definition. +// WARNING: These typedefs may be removed in a future +// release. +// +// ex. the definitions in s5inode.h (now obsoleted) +// remained small to preserve compatibility +// in the S5 file system type. +type O_mode_t = uint16 /* types.h:380:18 */ // old file attribute type +type O_dev_t = int16 /* types.h:381:15 */ // old device type +type O_uid_t = uint16 /* types.h:382:18 */ // old UID type +type O_gid_t = uint16 /* types.h:383:17 */ // old GID type +type O_nlink_t = int16 /* types.h:384:15 */ // old file link type +type O_pid_t = int16 /* types.h:385:15 */ // old process id type +type O_ino_t = uint16 /* types.h:386:18 */ // old inode type + +// POSIX and XOPEN Declarations +type Key_t = int32 /* types.h:392:13 */ // IPC key type +type Mode_t = uint32 /* types.h:394:16 */ // file attribute type + +type Uid_t = uint32 /* types.h:401:22 */ // UID type + +type Gid_t = uint32 /* types.h:404:15 */ // GID type + +type Datalink_id_t = uint32 /* types.h:406:18 */ +type Vrid_t = uint32 /* types.h:407:18 */ + +type Taskid_t = int32 /* types.h:409:17 */ +type Projid_t = int32 /* types.h:410:17 */ +type Poolid_t = int32 /* types.h:411:14 */ +type Zoneid_t = int32 /* types.h:412:14 */ +type Ctid_t = int32 /* types.h:413:14 */ + +// POSIX definitions are same as defined in thread.h and synch.h. +// Any changes made to here should be reflected in corresponding +// files as described in comments. +type Pthread_t = uint32 /* types.h:420:16 */ // = thread_t in thread.h +type Pthread_key_t = uint32 /* types.h:421:16 */ // = thread_key_t in thread.h + +// "Magic numbers" tagging synchronization object types + +type X_pthread_mutex = struct { + F__pthread_mutex_flags struct { + F__pthread_mutex_flag1 uint16 + F__pthread_mutex_flag2 uint8 + F__pthread_mutex_ceiling uint8 + F__pthread_mutex_type uint16 + F__pthread_mutex_magic uint16 + } + F__pthread_mutex_lock struct { + F__ccgo_pad1 [0]uint64 + F__pthread_mutex_lock64 struct{ F__pthread_mutex_pad [8]uint8 } + } + F__pthread_mutex_data uint64 +} /* types.h:429:9 */ + +// = thread_key_t in thread.h + +// "Magic numbers" tagging synchronization object types + +type Pthread_mutex_t = X_pthread_mutex /* types.h:448:3 */ + +type X_pthread_cond = struct { + F__pthread_cond_flags struct { + F__pthread_cond_flag [4]uint8 + F__pthread_cond_type uint16 + F__pthread_cond_magic uint16 + } + F__pthread_cond_data uint64 +} /* types.h:450:9 */ + +type Pthread_cond_t = X_pthread_cond /* types.h:457:3 */ + +// UNIX 98 Extension +type X_pthread_rwlock = struct { + F__pthread_rwlock_readers int32 + F__pthread_rwlock_type uint16 + F__pthread_rwlock_magic uint16 + F__pthread_rwlock_mutex Pthread_mutex_t + F__pthread_rwlock_readercv Pthread_cond_t + F__pthread_rwlock_writercv Pthread_cond_t +} /* types.h:462:9 */ + +// UNIX 98 Extension +type Pthread_rwlock_t = X_pthread_rwlock /* types.h:469:3 */ + +// SUSV3 +type Pthread_barrier_t = struct { + F__pthread_barrier_count uint32 + F__pthread_barrier_current uint32 + F__pthread_barrier_cycle uint64 + F__pthread_barrier_reserved uint64 + F__pthread_barrier_lock Pthread_mutex_t + F__pthread_barrier_cond Pthread_cond_t +} /* types.h:481:3 */ + +type Pthread_spinlock_t = Pthread_mutex_t /* types.h:483:25 */ + +// attributes for threads, dynamically allocated by library +type X_pthread_attr = struct{ F__pthread_attrp uintptr } /* types.h:488:9 */ + +// attributes for threads, dynamically allocated by library +type Pthread_attr_t = X_pthread_attr /* types.h:490:3 */ + +// attributes for mutex, dynamically allocated by library +type X_pthread_mutexattr = struct{ F__pthread_mutexattrp uintptr } /* types.h:495:9 */ + +// attributes for mutex, dynamically allocated by library +type Pthread_mutexattr_t = X_pthread_mutexattr /* types.h:497:3 */ + +// attributes for cond, dynamically allocated by library +type X_pthread_condattr = struct{ F__pthread_condattrp uintptr } /* types.h:502:9 */ + +// attributes for cond, dynamically allocated by library +type Pthread_condattr_t = X_pthread_condattr /* types.h:504:3 */ + +// pthread_once +type X_once = struct{ F__pthread_once_pad [4]uint64 } /* types.h:509:9 */ + +// pthread_once +type Pthread_once_t = X_once /* types.h:511:3 */ + +// UNIX 98 Extensions +// attributes for rwlock, dynamically allocated by library +type X_pthread_rwlockattr = struct{ F__pthread_rwlockattrp uintptr } /* types.h:517:9 */ + +// UNIX 98 Extensions +// attributes for rwlock, dynamically allocated by library +type Pthread_rwlockattr_t = X_pthread_rwlockattr /* types.h:519:3 */ + +// SUSV3 +// attributes for pthread_barrier_t, dynamically allocated by library +type Pthread_barrierattr_t = struct{ F__pthread_barrierattrp uintptr } /* types.h:527:3 */ + +type Dev_t = uint64 /* types.h:529:17 */ // expanded device type + +type Nlink_t = uint32 /* types.h:532:16 */ // file link type +type Pid_t = int32 /* types.h:533:13 */ // size of something in bytes + +type Ssize_t = int64 /* types.h:551:14 */ // size of something in bytes or -1 + +type Time_t = int64 /* types.h:559:15 */ // time of day in seconds + +type Clock_t = int64 /* types.h:564:15 */ // relative time in a specified resolution + +type Clockid_t = int32 /* types.h:569:13 */ // clock identifier type + +type Timer_t = int32 /* types.h:574:13 */ // timer identifier type + +// BEGIN CSTYLED +type Unchar = uint8 /* types.h:580:23 */ +type Ushort = uint16 /* types.h:581:24 */ +type Uint = uint32 /* types.h:582:22 */ +type Ulong = uint64 /* types.h:583:23 */ +// END CSTYLED + +// The following is the value of type id_t to use to indicate the +// caller's current id. See procset.h for the type idtype_t +// which defines which kind of id is being specified. + +// The following value of type pfn_t is used to indicate +// invalid page frame number. + +// BEGIN CSTYLED +type U_char = uint8 /* types.h:650:23 */ +type U_short = uint16 /* types.h:651:24 */ +type U_int = uint32 /* types.h:652:22 */ +type U_long = uint64 /* types.h:653:23 */ +type X_quad = struct{ Fval [2]int32 } /* types.h:654:9 */ + +type Quad_t = X_quad /* types.h:654:38 */ // used by UFS +type Quad = Quad_t /* types.h:655:17 */ // used by UFS +// END CSTYLED + +// Nested include for BSD/sockets source compatibility. +// (The select macros used to be defined here). +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// +// Copyright 2010 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// University Copyright- Copyright (c) 1982, 1986, 1988 +// The Regents of the University of California +// All Rights Reserved +// +// University Acknowledgment- Portions of this document are derived from +// software developed by the University of California, Berkeley, and its +// contributors. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2005 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Implementation-private. This header should not be included +// directly by an application. The application should instead +// include which includes this header conditionally +// depending on which feature test macros are defined. By default, +// this header is included by . X/Open and POSIX +// standards requirements result in this header being included +// by only under a restricted set of conditions. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Time expressed in seconds and nanoseconds + +type Timespec = struct { + Ftv_sec int64 + Ftv_nsec int64 +} /* time_impl.h:57:9 */ + +// used by UFS +// END CSTYLED + +// Nested include for BSD/sockets source compatibility. +// (The select macros used to be defined here). +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// +// Copyright 2010 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// University Copyright- Copyright (c) 1982, 1986, 1988 +// The Regents of the University of California +// All Rights Reserved +// +// University Acknowledgment- Portions of this document are derived from +// software developed by the University of California, Berkeley, and its +// contributors. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2005 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Implementation-private. This header should not be included +// directly by an application. The application should instead +// include which includes this header conditionally +// depending on which feature test macros are defined. By default, +// this header is included by . X/Open and POSIX +// standards requirements result in this header being included +// by only under a restricted set of conditions. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Time expressed in seconds and nanoseconds + +type Timespec_t = Timespec /* time_impl.h:60:3 */ + +type Timestruc_t = Timespec /* time_impl.h:81:25 */ // definition per SVr4 + +// The following has been left in for backward compatibility. Portable +// applications should not use the structure name timestruc. + +// Timer specification +type Itimerspec = struct { + Fit_interval struct { + Ftv_sec int64 + Ftv_nsec int64 + } + Fit_value struct { + Ftv_sec int64 + Ftv_nsec int64 + } +} /* time_impl.h:95:9 */ + +// definition per SVr4 + +// The following has been left in for backward compatibility. Portable +// applications should not use the structure name timestruc. + +// Timer specification +type Itimerspec_t = Itimerspec /* time_impl.h:98:3 */ + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright (c) 1982, 1986, 1993 Regents of the University of California. +// All rights reserved. The Berkeley software License Agreement +// specifies the terms and conditions for redistribution. + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2020 OmniOS Community Edition (OmniOSce) Association. + +// Copyright (c) 2013, 2016 by Delphix. All rights reserved. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Structure returned by gettimeofday(2) system call, +// and used in other calls. + +type Timeval = struct { + Ftv_sec int64 + Ftv_usec int64 +} /* time.h:54:1 */ + +type Timezone = struct { + Ftz_minuteswest int32 + Ftz_dsttime int32 +} /* time.h:86:1 */ + +// Needed for longlong_t type. Placement of this due to +// including which relies on the presense of the itimerval +// structure. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2021 Oxide Computer Company + +// Operations on timevals. + +// Names of the interval timers, and structure +// defining a timer setting. +// time and when system is running on +// behalf of the process. +// time profiling of multithreaded +// programs. + +type Itimerval = struct { + Fit_interval struct { + Ftv_sec int64 + Ftv_usec int64 + } + Fit_value struct { + Ftv_sec int64 + Ftv_usec int64 + } +} /* time.h:209:1 */ + +// Definitions for commonly used resolutions. + +// Time expressed as a 64-bit nanosecond counter. +type Hrtime_t = int64 /* time.h:265:20 */ + +// The inclusion of is historical and was added for +// backward compatibility in delta 1.2 when a number of definitions +// were moved out of . More recently, the timespec and +// itimerspec structure definitions, along with the _CLOCK_*, CLOCK_*, +// _TIMER_*, and TIMER_* symbols were moved to , +// which is now included by . This change was due to POSIX +// 1003.1b-1993 and X/Open UNIX 98 requirements. For non-POSIX and +// non-X/Open applications, including this header will still make +// visible these definitions. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1988 AT&T +// All Rights Reserved + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2007 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2010 Nexenta Systems, Inc. Al rights reserved. +// Copyright 2016 Joyent, Inc. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1988 AT&T +// All Rights Reserved + +// Copyright 2014 Garrett D'Amore +// Copyright 2014 PALO, Richard. +// +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// An application should not include this header directly. Instead it +// should be included only through the inclusion of other Sun headers. +// +// The contents of this header is limited to identifiers specified in the +// C Standard. Any new identifiers specified in future amendments to the +// C Standard must be placed in this header. If these new identifiers +// are required to also be in the C++ Standard "std" namespace, then for +// anything other than macro definitions, corresponding "using" directives +// must also be added to . + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// This file and its contents are supplied under the terms of the +// Common Development and Distribution License ("CDDL"), version 1.0. +// You may only use this file in accordance with the terms of version +// 1.0 of the CDDL. +// +// A full copy of the text of the CDDL should have accompanied this +// source. A copy of the CDDL is also available via the Internet at +// http://www.illumos.org/license/CDDL. + +// Copyright 2014-2016 PALO, Richard. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// POSIX.1-2008 requires that the NULL macro be cast to type void *. + +type Tm = struct { + Ftm_sec int32 + Ftm_min int32 + Ftm_hour int32 + Ftm_mday int32 + Ftm_mon int32 + Ftm_year int32 + Ftm_wday int32 + Ftm_yday int32 + Ftm_isdst int32 +} /* time_iso.h:80:1 */ + +// Neither X/Open nor POSIX allow the inclusion of for the +// definition of the sigevent structure. Both require the inclusion +// of and when using the timer_create() function. +// However, X/Open also specifies that the sigevent structure be defined +// in as described in the header . This prevents +// compiler warnings for applications that only include and not +// also . The sigval union and the sigevent structure is +// therefore defined both here and in which gets included +// via inclusion of . +type Sigval = struct { + F__ccgo_pad1 [0]uint64 + Fsival_int int32 + F__ccgo_pad2 [4]byte +} /* time.h:125:1 */ + +type Sigevent = struct { + Fsigev_notify int32 + Fsigev_signo int32 + Fsigev_value struct { + F__ccgo_pad1 [0]uint64 + Fsival_int int32 + F__ccgo_pad2 [4]byte + } + Fsigev_notify_function uintptr + Fsigev_notify_attributes uintptr + F__sigev_pad2 int32 + F__ccgo_pad1 [4]byte +} /* time.h:133:1 */ + +type Locale_t = uintptr /* time.h:292:24 */ + +// The inclusion of is needed for the FD_CLR, +// FD_ISSET, FD_SET, and FD_SETSIZE macros as well as the +// select() prototype defined in the XOpen specifications +// beginning with XSH4v2. Placement required after definition +// for itimerval. +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// +// Copyright 2010 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// University Copyright- Copyright (c) 1982, 1986, 1988 +// The Regents of the University of California +// All Rights Reserved +// +// University Acknowledgment- Portions of this document are derived from +// software developed by the University of California, Berkeley, and its +// contributors. + +// The sigset_t type is defined in and duplicated +// in as a result of XPG4v2 requirements. XPG6 +// now allows the visibility of signal.h in this header, however +// an order of inclusion problem occurs as a result of inclusion +// of in under certain conditions. +// Rather than include here, we've duplicated +// the sigset_t type instead. This type is required for the XPG6 +// introduced pselect() function also declared in this header. +type Sigset_t = struct{ F__sigbits [4]uint32 } /* select.h:76:3 */ + +// Select uses bit masks of file descriptors in longs. +// These macros manipulate such bit fields. +// FD_SETSIZE may be defined by the user, but the default here +// should be >= RLIM_FD_MAX. + +type Fd_mask = int64 /* select.h:92:14 */ +type Fds_mask = int64 /* select.h:94:14 */ + +// The value of _NBBY needs to be consistant with the value +// of NBBY in . + +type Fd_set1 = struct{ Ffds_bits [1024]int64 } /* select.h:120:9 */ + +// The value of _NBBY needs to be consistant with the value +// of NBBY in . + +type Fd_set = Fd_set1 /* select.h:125:3 */ + +// _VOID was defined to be either void or char but this is not +// required because previous SunOS compilers have accepted the void +// type. However, because many system header and source files use the +// void keyword, the volatile keyword, and ANSI C function prototypes, +// non-ANSI compilers cannot compile the system anyway. The _VOID macro +// should therefore not be used and remains for source compatibility +// only. +// CSTYLED + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// The copyright in this file is taken from the original Leach +// & Salz UUID specification, from which this implementation +// is derived. + +// Copyright (c) 1990- 1993, 1996 Open Software Foundation, Inc. +// Copyright (c) 1989 by Hewlett-Packard Company, Palo Alto, Ca. & +// Digital Equipment Corporation, Maynard, Mass. Copyright (c) 1998 +// Microsoft. To anyone who acknowledges that this file is provided +// "AS IS" without any express or implied warranty: permission to use, +// copy, modify, and distribute this file for any purpose is hereby +// granted without fee, provided that the above copyright notices and +// this notice appears in all source code copies, and that none of the +// names of Open Software Foundation, Inc., Hewlett-Packard Company, +// or Digital Equipment Corporation be used in advertising or +// publicity pertaining to distribution of the software without +// specific, written prior permission. Neither Open Software +// Foundation, Inc., Hewlett-Packard Company, Microsoft, nor Digital +// Equipment Corporation makes any representations about the +// suitability of this software for any purpose. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// +// Copyright 2013 Nexenta Systems, Inc. All rights reserved. +// Copyright 2016 Joyent, Inc. +// Copyright 2021 Oxide Computer Company + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2009 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// University Copyright- Copyright (c) 1982, 1986, 1988 +// The Regents of the University of California +// All Rights Reserved +// +// University Acknowledgment- Portions of this document are derived from +// software developed by the University of California, Berkeley, and its +// contributors. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2016 Joyent, Inc. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2014 Garrett D'Amore +// +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// macros for conversion between host and (internet) network byte order + +type In_port_t = uint16 /* byteorder.h:74:18 */ + +type In_addr_t = uint32 /* byteorder.h:79:18 */ + +// Macros to reverse byte order + +// Macros to convert from a specific byte order to/from native byte order + +// Macros to read unaligned values from a specific byte order to +// native byte order + +// Macros to write unaligned values from native byte order to a specific byte +// order. + +type Uuid_node_t = struct{ FnodeID [6]uint8 } /* uuid.h:63:3 */ + +// The uuid type used throughout when referencing uuids themselves +type Uuid = struct { + Ftime_low uint32 + Ftime_mid uint16 + Ftime_hi_and_version uint16 + Fclock_seq_hi_and_reserved uint8 + Fclock_seq_low uint8 + Fnode_addr [6]uint8 +} /* uuid.h:68:1 */ + +type Uuid_t = [16]uint8 /* uuid.h:81:18 */ + +var _ int8 /* gen.c:2:13: */ diff --git a/vendor/modernc.org/libc/uuid/uuid/uuid_linux_loong64.go b/vendor/modernc.org/libc/uuid/uuid/uuid_linux_loong64.go new file mode 100644 index 000000000..dfd5ff6a9 --- /dev/null +++ b/vendor/modernc.org/libc/uuid/uuid/uuid_linux_loong64.go @@ -0,0 +1,1986 @@ +// Code generated by 'ccgo uuid/uuid/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o uuid/uuid/uuid_linux_amd64.go -pkgname uuid', DO NOT EDIT. + +package uuid + +import ( + "math" + "reflect" + "sync/atomic" + "unsafe" +) + +var _ = math.Pi +var _ reflect.Kind +var _ atomic.Value +var _ unsafe.Pointer + +const ( + BIG_ENDIAN = 4321 // endian.h:28:1: + BYTE_ORDER = 1234 // endian.h:30:1: + CLOCK_BOOTTIME = 7 // time.h:60:1: + CLOCK_BOOTTIME_ALARM = 9 // time.h:64:1: + CLOCK_MONOTONIC = 1 // time.h:48:1: + CLOCK_MONOTONIC_COARSE = 6 // time.h:58:1: + CLOCK_MONOTONIC_RAW = 4 // time.h:54:1: + CLOCK_PROCESS_CPUTIME_ID = 2 // time.h:50:1: + CLOCK_REALTIME = 0 // time.h:46:1: + CLOCK_REALTIME_ALARM = 8 // time.h:62:1: + CLOCK_REALTIME_COARSE = 5 // time.h:56:1: + CLOCK_TAI = 11 // time.h:66:1: + CLOCK_THREAD_CPUTIME_ID = 3 // time.h:52:1: + FD_SETSIZE = 1024 // select.h:73:1: + LITTLE_ENDIAN = 1234 // endian.h:27:1: + PDP_ENDIAN = 3412 // endian.h:29:1: + TIMER_ABSTIME = 1 // time.h:69:1: + TIME_UTC = 1 // time.h:65:1: + UUID_STR_LEN = 37 // uuid.h:65:1: + UUID_TYPE_DCE_MD5 = 3 // uuid.h:58:1: + UUID_TYPE_DCE_RANDOM = 4 // uuid.h:59:1: + UUID_TYPE_DCE_SECURITY = 2 // uuid.h:57:1: + UUID_TYPE_DCE_SHA1 = 5 // uuid.h:60:1: + UUID_TYPE_DCE_TIME = 1 // uuid.h:56:1: + UUID_TYPE_MASK = 0xf // uuid.h:63:1: + UUID_TYPE_SHIFT = 4 // uuid.h:62:1: + UUID_VARIANT_DCE = 1 // uuid.h:48:1: + UUID_VARIANT_MASK = 0x7 // uuid.h:53:1: + UUID_VARIANT_MICROSOFT = 2 // uuid.h:49:1: + UUID_VARIANT_NCS = 0 // uuid.h:47:1: + UUID_VARIANT_OTHER = 3 // uuid.h:50:1: + UUID_VARIANT_SHIFT = 5 // uuid.h:52:1: + X_ATFILE_SOURCE = 1 // features.h:342:1: + X_BITS_BYTESWAP_H = 1 // byteswap.h:24:1: + X_BITS_ENDIANNESS_H = 1 // endianness.h:2:1: + X_BITS_ENDIAN_H = 1 // endian.h:20:1: + X_BITS_PTHREADTYPES_ARCH_H = 1 // pthreadtypes-arch.h:19:1: + X_BITS_PTHREADTYPES_COMMON_H = 1 // pthreadtypes.h:20:1: + X_BITS_STDINT_INTN_H = 1 // stdint-intn.h:20:1: + X_BITS_TIME64_H = 1 // time64.h:24:1: + X_BITS_TIME_H = 1 // time.h:24:1: + X_BITS_TYPESIZES_H = 1 // typesizes.h:24:1: + X_BITS_TYPES_H = 1 // types.h:24:1: + X_BITS_TYPES_LOCALE_T_H = 1 // locale_t.h:20:1: + X_BITS_TYPES___LOCALE_T_H = 1 // __locale_t.h:21:1: + X_BITS_UINTN_IDENTITY_H = 1 // uintn-identity.h:24:1: + X_BSD_SIZE_T_ = 0 // stddef.h:189:1: + X_BSD_SIZE_T_DEFINED_ = 0 // stddef.h:192:1: + X_DEFAULT_SOURCE = 1 // features.h:227:1: + X_ENDIAN_H = 1 // endian.h:19:1: + X_FEATURES_H = 1 // features.h:19:1: + X_FILE_OFFSET_BITS = 64 // :25:1: + X_GCC_SIZE_T = 0 // stddef.h:195:1: + X_LP64 = 1 // :284:1: + X_POSIX_C_SOURCE = 200809 // features.h:281:1: + X_POSIX_SOURCE = 1 // features.h:279:1: + X_RWLOCK_INTERNAL_H = 0 // struct_rwlock.h:21:1: + X_SIZET_ = 0 // stddef.h:196:1: + X_SIZE_T = 0 // stddef.h:183:1: + X_SIZE_T_ = 0 // stddef.h:188:1: + X_SIZE_T_DECLARED = 0 // stddef.h:193:1: + X_SIZE_T_DEFINED = 0 // stddef.h:191:1: + X_SIZE_T_DEFINED_ = 0 // stddef.h:190:1: + X_STDC_PREDEF_H = 1 // :162:1: + X_STRUCT_TIMESPEC = 1 // struct_timespec.h:3:1: + X_SYS_CDEFS_H = 1 // cdefs.h:19:1: + X_SYS_SELECT_H = 1 // select.h:22:1: + X_SYS_SIZE_T_H = 0 // stddef.h:184:1: + X_SYS_TIME_H = 1 // time.h:19:1: + X_SYS_TYPES_H = 1 // types.h:23:1: + X_THREAD_MUTEX_INTERNAL_H = 1 // struct_mutex.h:20:1: + X_THREAD_SHARED_TYPES_H = 1 // thread-shared-types.h:20:1: + X_TIME_H = 1 // time.h:23:1: + X_T_SIZE = 0 // stddef.h:186:1: + X_T_SIZE_ = 0 // stddef.h:185:1: + X_UUID_UUID_H = 0 // uuid.h:36:1: + Linux = 1 // :231:1: + Unix = 1 // :177:1: +) + +// Values for the first argument to `getitimer' and `setitimer'. +const ( /* time.h:89:1: */ + // Timers run in real time. + ITIMER_REAL = 0 + // Timers run only when the process is executing. + ITIMER_VIRTUAL = 1 + // Timers run when the process is executing and when + // the system is executing on behalf of the process. + ITIMER_PROF = 2 +) + +type Ptrdiff_t = int64 /* :3:26 */ + +type Size_t = uint64 /* :9:23 */ + +type Wchar_t = int32 /* :15:24 */ + +type X__int128_t = struct { + Flo int64 + Fhi int64 +} /* :21:43 */ // must match modernc.org/mathutil.Int128 +type X__uint128_t = struct { + Flo uint64 + Fhi uint64 +} /* :22:44 */ // must match modernc.org/mathutil.Int128 + +type X__builtin_va_list = uintptr /* :46:14 */ +type X__float128 = float64 /* :47:21 */ + +// Public include file for the UUID library +// +// Copyright (C) 1996, 1997, 1998 Theodore Ts'o. +// +// %Begin-Header% +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// 1. Redistributions of source code must retain the above copyright +// notice, and the entire permission notice in its entirety, +// including the disclaimer of warranties. +// 2. Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer in the +// documentation and/or other materials provided with the distribution. +// 3. The name of the author may not be used to endorse or promote +// products derived from this software without specific prior +// written permission. +// +// THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED +// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES +// OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, ALL OF +// WHICH ARE HEREBY DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE +// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT +// OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR +// BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF +// LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE +// USE OF THIS SOFTWARE, EVEN IF NOT ADVISED OF THE POSSIBILITY OF SUCH +// DAMAGE. +// %End-Header% + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// POSIX Standard: 2.6 Primitive System Data Types + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// These are defined by the user (or the compiler) +// to specify the desired environment: +// +// __STRICT_ANSI__ ISO Standard C. +// _ISOC99_SOURCE Extensions to ISO C89 from ISO C99. +// _ISOC11_SOURCE Extensions to ISO C99 from ISO C11. +// _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X. +// __STDC_WANT_LIB_EXT2__ +// Extensions to ISO C99 from TR 27431-2:2010. +// __STDC_WANT_IEC_60559_BFP_EXT__ +// Extensions to ISO C11 from TS 18661-1:2014. +// __STDC_WANT_IEC_60559_FUNCS_EXT__ +// Extensions to ISO C11 from TS 18661-4:2015. +// __STDC_WANT_IEC_60559_TYPES_EXT__ +// Extensions to ISO C11 from TS 18661-3:2015. +// +// _POSIX_SOURCE IEEE Std 1003.1. +// _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2; +// if >=199309L, add IEEE Std 1003.1b-1993; +// if >=199506L, add IEEE Std 1003.1c-1995; +// if >=200112L, all of IEEE 1003.1-2004 +// if >=200809L, all of IEEE 1003.1-2008 +// _XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if +// Single Unix conformance is wanted, to 600 for the +// sixth revision, to 700 for the seventh revision. +// _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions. +// _LARGEFILE_SOURCE Some more functions for correct standard I/O. +// _LARGEFILE64_SOURCE Additional functionality from LFS for large files. +// _FILE_OFFSET_BITS=N Select default filesystem interface. +// _ATFILE_SOURCE Additional *at interfaces. +// _GNU_SOURCE All of the above, plus GNU extensions. +// _DEFAULT_SOURCE The default set of features (taking precedence over +// __STRICT_ANSI__). +// +// _FORTIFY_SOURCE Add security hardening to many library functions. +// Set to 1 or 2; 2 performs stricter checks than 1. +// +// _REENTRANT, _THREAD_SAFE +// Obsolete; equivalent to _POSIX_C_SOURCE=199506L. +// +// The `-ansi' switch to the GNU C compiler, and standards conformance +// options such as `-std=c99', define __STRICT_ANSI__. If none of +// these are defined, or if _DEFAULT_SOURCE is defined, the default is +// to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to +// 200809L, as well as enabling miscellaneous functions from BSD and +// SVID. If more than one of these are defined, they accumulate. For +// example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together +// give you ISO C, 1003.1, and 1003.2, but nothing else. +// +// These are defined by this file and are used by the +// header files to decide what to declare or define: +// +// __GLIBC_USE (F) Define things from feature set F. This is defined +// to 1 or 0; the subsequent macros are either defined +// or undefined, and those tests should be moved to +// __GLIBC_USE. +// __USE_ISOC11 Define ISO C11 things. +// __USE_ISOC99 Define ISO C99 things. +// __USE_ISOC95 Define ISO C90 AMD1 (C95) things. +// __USE_ISOCXX11 Define ISO C++11 things. +// __USE_POSIX Define IEEE Std 1003.1 things. +// __USE_POSIX2 Define IEEE Std 1003.2 things. +// __USE_POSIX199309 Define IEEE Std 1003.1, and .1b things. +// __USE_POSIX199506 Define IEEE Std 1003.1, .1b, .1c and .1i things. +// __USE_XOPEN Define XPG things. +// __USE_XOPEN_EXTENDED Define X/Open Unix things. +// __USE_UNIX98 Define Single Unix V2 things. +// __USE_XOPEN2K Define XPG6 things. +// __USE_XOPEN2KXSI Define XPG6 XSI things. +// __USE_XOPEN2K8 Define XPG7 things. +// __USE_XOPEN2K8XSI Define XPG7 XSI things. +// __USE_LARGEFILE Define correct standard I/O things. +// __USE_LARGEFILE64 Define LFS things with separate names. +// __USE_FILE_OFFSET64 Define 64bit interface as default. +// __USE_MISC Define things from 4.3BSD or System V Unix. +// __USE_ATFILE Define *at interfaces and AT_* constants for them. +// __USE_GNU Define GNU extensions. +// __USE_FORTIFY_LEVEL Additional security measures used, according to level. +// +// The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are +// defined by this file unconditionally. `__GNU_LIBRARY__' is provided +// only for compatibility. All new code should use the other symbols +// to test for features. +// +// All macros listed above as possibly being defined by this file are +// explicitly undefined if they are not explicitly defined. +// Feature-test macros that are not defined by the user or compiler +// but are implied by the other feature-test macros defined (or by the +// lack of any definitions) are defined by the file. +// +// ISO C feature test macros depend on the definition of the macro +// when an affected header is included, not when the first system +// header is included, and so they are handled in +// , which does not have a multiple include +// guard. Feature test macros that can be handled from the first +// system header included are handled here. + +// Undefine everything, so we get a clean slate. + +// Suppress kernel-name space pollution unless user expressedly asks +// for it. + +// Convenience macro to test the version of gcc. +// Use like this: +// #if __GNUC_PREREQ (2,8) +// ... code requiring gcc 2.8 or later ... +// #endif +// Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was +// added in 2.0. + +// Similarly for clang. Features added to GCC after version 4.2 may +// or may not also be available in clang, and clang's definitions of +// __GNUC(_MINOR)__ are fixed at 4 and 2 respectively. Not all such +// features can be queried via __has_extension/__has_feature. + +// Whether to use feature set F. + +// _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for +// _DEFAULT_SOURCE. If _DEFAULT_SOURCE is present we do not +// issue a warning; the expectation is that the source is being +// transitioned to use the new macro. + +// If _GNU_SOURCE was defined by the user, turn on all the other features. + +// If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined, +// define _DEFAULT_SOURCE. + +// This is to enable the ISO C2X extension. + +// This is to enable the ISO C11 extension. + +// This is to enable the ISO C99 extension. + +// This is to enable the ISO C90 Amendment 1:1995 extension. + +// If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE +// is defined, use POSIX.1-2008 (or another version depending on +// _XOPEN_SOURCE). + +// Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be +// defined in all multithreaded code. GNU libc has not required this +// for many years. We now treat them as compatibility synonyms for +// _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with +// comprehensive support for multithreaded code. Using them never +// lowers the selected level of POSIX conformance, only raises it. + +// The function 'gets' existed in C89, but is impossible to use +// safely. It has been removed from ISO C11 and ISO C++14. Note: for +// compatibility with various implementations of , this test +// must consider only the value of __cplusplus when compiling C++. + +// GNU formerly extended the scanf functions with modified format +// specifiers %as, %aS, and %a[...] that allocate a buffer for the +// input using malloc. This extension conflicts with ISO C99, which +// defines %a as a standalone format specifier that reads a floating- +// point number; moreover, POSIX.1-2008 provides the same feature +// using the modifier letter 'm' instead (%ms, %mS, %m[...]). +// +// We now follow C99 unless GNU extensions are active and the compiler +// is specifically in C89 or C++98 mode (strict or not). For +// instance, with GCC, -std=gnu11 will have C99-compliant scanf with +// or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the +// old extension. + +// Get definitions of __STDC_* predefined macros, if the compiler has +// not preincluded this header automatically. +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// This macro indicates that the installed library is the GNU C Library. +// For historic reasons the value now is 6 and this will stay from now +// on. The use of this variable is deprecated. Use __GLIBC__ and +// __GLIBC_MINOR__ now (see below) when you want to test for a specific +// GNU C library version and use the values in to get +// the sonames of the shared libraries. + +// Major and minor version number of the GNU C library package. Use +// these macros to test for features in specific releases. + +// This is here only because every header file already includes this one. +// Copyright (C) 1992-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// We are almost always included from features.h. + +// The GNU libc does not support any K&R compilers or the traditional mode +// of ISO C compilers anymore. Check for some of the combinations not +// anymore supported. + +// Some user header file might have defined this before. + +// All functions, except those with callbacks or those that +// synchronize memory, are leaf functions. + +// GCC can always grok prototypes. For C++ programs we add throw() +// to help it optimize the function calls. But this works only with +// gcc 2.8.x and egcs. For gcc 3.2 and up we even mark C functions +// as non-throwing using a function attribute since programs can use +// the -fexceptions options for C code as well. + +// Compilers that are not clang may object to +// #if defined __clang__ && __has_extension(...) +// even though they do not need to evaluate the right-hand side of the &&. + +// These two macros are not used in glibc anymore. They are kept here +// only because some other projects expect the macros to be defined. + +// For these things, GCC behaves the ANSI way normally, +// and the non-ANSI way under -traditional. + +// This is not a typedef so `const __ptr_t' does the right thing. + +// C++ needs to know that types and declarations are C, not C++. + +// Fortify support. + +// Support for flexible arrays. +// Headers that should use flexible arrays only if they're "real" +// (e.g. only if they won't affect sizeof()) should test +// #if __glibc_c99_flexarr_available. + +// __asm__ ("xyz") is used throughout the headers to rename functions +// at the assembly language level. This is wrapped by the __REDIRECT +// macro, in order to support compilers that can do this some other +// way. When compilers don't support asm-names at all, we have to do +// preprocessor tricks instead (which don't have exactly the right +// semantics, but it's the best we can do). +// +// Example: +// int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid); + +// +// #elif __SOME_OTHER_COMPILER__ +// +// # define __REDIRECT(name, proto, alias) name proto; _Pragma("let " #name " = " #alias) + +// GCC has various useful declarations that can be made with the +// `__attribute__' syntax. All of the ways we use this do fine if +// they are omitted for compilers that don't understand it. + +// At some point during the gcc 2.96 development the `malloc' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// Tell the compiler which arguments to an allocation function +// indicate the size of the allocation. + +// At some point during the gcc 2.96 development the `pure' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// This declaration tells the compiler that the value is constant. + +// At some point during the gcc 3.1 development the `used' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// Since version 3.2, gcc allows marking deprecated functions. + +// Since version 4.5, gcc also allows one to specify the message printed +// when a deprecated function is used. clang claims to be gcc 4.2, but +// may also support this feature. + +// At some point during the gcc 2.8 development the `format_arg' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. +// If several `format_arg' attributes are given for the same function, in +// gcc-3.0 and older, all but the last one are ignored. In newer gccs, +// all designated arguments are considered. + +// At some point during the gcc 2.97 development the `strfmon' format +// attribute for functions was introduced. We don't want to use it +// unconditionally (although this would be possible) since it +// generates warnings. + +// The nonull function attribute allows to mark pointer parameters which +// must not be NULL. + +// If fortification mode, we warn about unused results of certain +// function calls which can lead to problems. + +// Forces a function to be always inlined. +// The Linux kernel defines __always_inline in stddef.h (283d7573), and +// it conflicts with this definition. Therefore undefine it first to +// allow either header to be included first. + +// Associate error messages with the source location of the call site rather +// than with the source location inside the function. + +// GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99 +// inline semantics, unless -fgnu89-inline is used. Using __GNUC_STDC_INLINE__ +// or __GNUC_GNU_INLINE is not a good enough check for gcc because gcc versions +// older than 4.3 may define these macros and still not guarantee GNU inlining +// semantics. +// +// clang++ identifies itself as gcc-4.2, but has support for GNU inlining +// semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and +// __GNUC_GNU_INLINE__ macro definitions. + +// GCC 4.3 and above allow passing all anonymous arguments of an +// __extern_always_inline function to some other vararg function. + +// It is possible to compile containing GCC extensions even if GCC is +// run in pedantic mode if the uses are carefully marked using the +// `__extension__' keyword. But this is not generally available before +// version 2.8. + +// __restrict is known in EGCS 1.2 and above. + +// ISO C99 also allows to declare arrays as non-overlapping. The syntax is +// array_name[restrict] +// GCC 3.1 supports this. + +// Describes a char array whose address can safely be passed as the first +// argument to strncpy and strncat, as the char array is not necessarily +// a NUL-terminated string. + +// Undefine (also defined in libc-symbols.h). +// Copies attributes from the declaration or type referenced by +// the argument. + +// Determine the wordsize from the preprocessor defines. + +// Both x86-64 and x32 use the 64-bit system call interface. +// Properties of long double type. ldbl-96 version. +// Copyright (C) 2016-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// long double is distinct from double, so there is nothing to +// define here. + +// __glibc_macro_warning (MESSAGE) issues warning MESSAGE. This is +// intended for use in preprocessor macros. +// +// Note: MESSAGE must be a _single_ string; concatenation of string +// literals is not supported. + +// Generic selection (ISO C11) is a C-only feature, available in GCC +// since version 4.9. Previous versions do not provide generic +// selection, even though they might set __STDC_VERSION__ to 201112L, +// when in -std=c11 mode. Thus, we must check for !defined __GNUC__ +// when testing __STDC_VERSION__ for generic selection support. +// On the other hand, Clang also defines __GNUC__, so a clang-specific +// check is required to enable the use of generic selection. + +// If we don't have __REDIRECT, prototypes will be missing if +// __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64]. + +// Decide whether we can define 'extern inline' functions in headers. + +// This is here only because every header file already includes this one. +// Get the definitions of all the appropriate `__stub_FUNCTION' symbols. +// contains `#define __stub_FUNCTION' when FUNCTION is a stub +// that will always return failure (and set errno to ENOSYS). +// This file is automatically generated. +// This file selects the right generated file of `__stub_FUNCTION' macros +// based on the architecture being compiled for. + +// This file is automatically generated. +// It defines a symbol `__stub_FUNCTION' for each function +// in the C library which is a stub, meaning it will fail +// every time called, usually setting errno to ENOSYS. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Determine the wordsize from the preprocessor defines. + +// Both x86-64 and x32 use the 64-bit system call interface. +// Bit size of the time_t type at glibc build time, x86-64 and x32 case. +// Copyright (C) 2018-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// For others, time size is word size. + +// Convenience types. +type X__u_char = uint8 /* types.h:31:23 */ +type X__u_short = uint16 /* types.h:32:28 */ +type X__u_int = uint32 /* types.h:33:22 */ +type X__u_long = uint64 /* types.h:34:27 */ + +// Fixed-size types, underlying types depend on word size and compiler. +type X__int8_t = int8 /* types.h:37:21 */ +type X__uint8_t = uint8 /* types.h:38:23 */ +type X__int16_t = int16 /* types.h:39:26 */ +type X__uint16_t = uint16 /* types.h:40:28 */ +type X__int32_t = int32 /* types.h:41:20 */ +type X__uint32_t = uint32 /* types.h:42:22 */ +type X__int64_t = int64 /* types.h:44:25 */ +type X__uint64_t = uint64 /* types.h:45:27 */ + +// Smallest types with at least a given width. +type X__int_least8_t = X__int8_t /* types.h:52:18 */ +type X__uint_least8_t = X__uint8_t /* types.h:53:19 */ +type X__int_least16_t = X__int16_t /* types.h:54:19 */ +type X__uint_least16_t = X__uint16_t /* types.h:55:20 */ +type X__int_least32_t = X__int32_t /* types.h:56:19 */ +type X__uint_least32_t = X__uint32_t /* types.h:57:20 */ +type X__int_least64_t = X__int64_t /* types.h:58:19 */ +type X__uint_least64_t = X__uint64_t /* types.h:59:20 */ + +// quad_t is also 64 bits. +type X__quad_t = int64 /* types.h:63:18 */ +type X__u_quad_t = uint64 /* types.h:64:27 */ + +// Largest integral types. +type X__intmax_t = int64 /* types.h:72:18 */ +type X__uintmax_t = uint64 /* types.h:73:27 */ + +// The machine-dependent file defines __*_T_TYPE +// macros for each of the OS types we define below. The definitions +// of those macros must use the following macros for underlying types. +// We define __S_TYPE and __U_TYPE for the signed and unsigned +// variants of each of the following integer types on this machine. +// +// 16 -- "natural" 16-bit type (always short) +// 32 -- "natural" 32-bit type (always int) +// 64 -- "natural" 64-bit type (long or long long) +// LONG32 -- 32-bit type, traditionally long +// QUAD -- 64-bit type, traditionally long long +// WORD -- natural type of __WORDSIZE bits (int or long) +// LONGWORD -- type of __WORDSIZE bits, traditionally long +// +// We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the +// conventional uses of `long' or `long long' type modifiers match the +// types we define, even when a less-adorned type would be the same size. +// This matters for (somewhat) portably writing printf/scanf formats for +// these types, where using the appropriate l or ll format modifiers can +// make the typedefs and the formats match up across all GNU platforms. If +// we used `long' when it's 64 bits where `long long' is expected, then the +// compiler would warn about the formats not matching the argument types, +// and the programmer changing them to shut up the compiler would break the +// program's portability. +// +// Here we assume what is presently the case in all the GCC configurations +// we support: long long is always 64 bits, long is always word/address size, +// and int is always 32 bits. + +// No need to mark the typedef with __extension__. +// bits/typesizes.h -- underlying types for *_t. Linux/x86-64 version. +// Copyright (C) 2012-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// See for the meaning of these macros. This file exists so +// that need not vary across different GNU platforms. + +// X32 kernel interface is 64-bit. + +// Tell the libc code that off_t and off64_t are actually the same type +// for all ABI purposes, even if possibly expressed as different base types +// for C type-checking purposes. + +// Same for ino_t and ino64_t. + +// And for __rlim_t and __rlim64_t. + +// And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t. + +// Number of descriptors that can fit in an `fd_set'. + +// bits/time64.h -- underlying types for __time64_t. Generic version. +// Copyright (C) 2018-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Define __TIME64_T_TYPE so that it is always a 64-bit type. + +// If we already have 64-bit time type then use it. + +type X__dev_t = uint64 /* types.h:145:25 */ // Type of device numbers. +type X__uid_t = uint32 /* types.h:146:25 */ // Type of user identifications. +type X__gid_t = uint32 /* types.h:147:25 */ // Type of group identifications. +type X__ino_t = uint64 /* types.h:148:25 */ // Type of file serial numbers. +type X__ino64_t = uint64 /* types.h:149:27 */ // Type of file serial numbers (LFS). +type X__mode_t = uint32 /* types.h:150:26 */ // Type of file attribute bitmasks. +type X__nlink_t = uint64 /* types.h:151:27 */ // Type of file link counts. +type X__off_t = int64 /* types.h:152:25 */ // Type of file sizes and offsets. +type X__off64_t = int64 /* types.h:153:27 */ // Type of file sizes and offsets (LFS). +type X__pid_t = int32 /* types.h:154:25 */ // Type of process identifications. +type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs. +type X__clock_t = int64 /* types.h:156:27 */ // Type of CPU usage counts. +type X__rlim_t = uint64 /* types.h:157:26 */ // Type for resource measurement. +type X__rlim64_t = uint64 /* types.h:158:28 */ // Type for resource measurement (LFS). +type X__id_t = uint32 /* types.h:159:24 */ // General type for IDs. +type X__time_t = int64 /* types.h:160:26 */ // Seconds since the Epoch. +type X__useconds_t = uint32 /* types.h:161:30 */ // Count of microseconds. +type X__suseconds_t = int64 /* types.h:162:31 */ // Signed count of microseconds. + +type X__daddr_t = int32 /* types.h:164:27 */ // The type of a disk address. +type X__key_t = int32 /* types.h:165:25 */ // Type of an IPC key. + +// Clock ID used in clock and timer functions. +type X__clockid_t = int32 /* types.h:168:29 */ + +// Timer ID returned by `timer_create'. +type X__timer_t = uintptr /* types.h:171:12 */ + +// Type to represent block size. +type X__blksize_t = int64 /* types.h:174:29 */ + +// Types from the Large File Support interface. + +// Type to count number of disk blocks. +type X__blkcnt_t = int64 /* types.h:179:28 */ +type X__blkcnt64_t = int64 /* types.h:180:30 */ + +// Type to count file system blocks. +type X__fsblkcnt_t = uint64 /* types.h:183:30 */ +type X__fsblkcnt64_t = uint64 /* types.h:184:32 */ + +// Type to count file system nodes. +type X__fsfilcnt_t = uint64 /* types.h:187:30 */ +type X__fsfilcnt64_t = uint64 /* types.h:188:32 */ + +// Type of miscellaneous file system fields. +type X__fsword_t = int64 /* types.h:191:28 */ + +type X__ssize_t = int64 /* types.h:193:27 */ // Type of a byte count, or error. + +// Signed long type used in system calls. +type X__syscall_slong_t = int64 /* types.h:196:33 */ +// Unsigned long type used in system calls. +type X__syscall_ulong_t = uint64 /* types.h:198:33 */ + +// These few don't really vary by system, they always correspond +// +// to one of the other defined types. +type X__loff_t = X__off64_t /* types.h:202:19 */ // Type of file sizes and offsets (LFS). +type X__caddr_t = uintptr /* types.h:203:14 */ + +// Duplicates info from stdint.h but this is used in unistd.h. +type X__intptr_t = int64 /* types.h:206:25 */ + +// Duplicate info from sys/socket.h. +type X__socklen_t = uint32 /* types.h:209:23 */ + +// C99: An integer type that can be accessed as an atomic entity, +// +// even in the presence of asynchronous interrupts. +// It is not currently necessary for this to be machine-specific. +type X__sig_atomic_t = int32 /* types.h:214:13 */ + +// Seconds since the Epoch, visible to user code when time_t is too +// narrow only for consistency with the old way of widening too-narrow +// types. User code should never use __time64_t. + +type U_char = X__u_char /* types.h:33:18 */ +type U_short = X__u_short /* types.h:34:19 */ +type U_int = X__u_int /* types.h:35:17 */ +type U_long = X__u_long /* types.h:36:18 */ +type Quad_t = X__quad_t /* types.h:37:18 */ +type U_quad_t = X__u_quad_t /* types.h:38:20 */ +type Fsid_t = X__fsid_t /* types.h:39:18 */ +type Loff_t = X__loff_t /* types.h:42:18 */ + +type Ino_t = X__ino64_t /* types.h:49:19 */ + +type Dev_t = X__dev_t /* types.h:59:17 */ + +type Gid_t = X__gid_t /* types.h:64:17 */ + +type Mode_t = X__mode_t /* types.h:69:18 */ + +type Nlink_t = X__nlink_t /* types.h:74:19 */ + +type Uid_t = X__uid_t /* types.h:79:17 */ + +type Off_t = X__off64_t /* types.h:87:19 */ + +type Pid_t = X__pid_t /* types.h:97:17 */ + +type Id_t = X__id_t /* types.h:103:16 */ + +type Ssize_t = X__ssize_t /* types.h:108:19 */ + +type Daddr_t = X__daddr_t /* types.h:114:19 */ +type Caddr_t = X__caddr_t /* types.h:115:19 */ + +type Key_t = X__key_t /* types.h:121:17 */ + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Returned by `clock'. +type Clock_t = X__clock_t /* clock_t.h:7:19 */ + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Clock ID used in clock and timer functions. +type Clockid_t = X__clockid_t /* clockid_t.h:7:21 */ + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Returned by `time'. +type Time_t = X__time_t /* time_t.h:7:18 */ + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Timer ID returned by `timer_create'. +type Timer_t = X__timer_t /* timer_t.h:7:19 */ + +// Wide character type. +// Locale-writers should change this as necessary to +// be big enough to hold unique values not between 0 and 127, +// and not (wchar_t) -1, for each defined multibyte character. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// A null pointer constant. + +// Old compatibility names for C types. +type Ulong = uint64 /* types.h:148:27 */ +type Ushort = uint16 /* types.h:149:28 */ +type Uint = uint32 /* types.h:150:22 */ + +// These size-specific names are used by some of the inet code. + +// Define intN_t types. +// Copyright (C) 2017-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +type Int8_t = X__int8_t /* stdint-intn.h:24:18 */ +type Int16_t = X__int16_t /* stdint-intn.h:25:19 */ +type Int32_t = X__int32_t /* stdint-intn.h:26:19 */ +type Int64_t = X__int64_t /* stdint-intn.h:27:19 */ + +// These were defined by ISO C without the first `_'. +type U_int8_t = X__uint8_t /* types.h:158:19 */ +type U_int16_t = X__uint16_t /* types.h:159:20 */ +type U_int32_t = X__uint32_t /* types.h:160:20 */ +type U_int64_t = X__uint64_t /* types.h:161:20 */ + +type Register_t = int32 /* types.h:164:13 */ + +// It also defines `fd_set' and the FD_* macros for `select'. +// `fd_set' type and related macros, and `select'/`pselect' declarations. +// Copyright (C) 1996-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// POSIX 1003.1g: 6.2 Select from File Descriptor Sets + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Get definition of needed basic types. +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Get __FD_* definitions. +// Copyright (C) 1997-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Determine the wordsize from the preprocessor defines. + +// Both x86-64 and x32 use the 64-bit system call interface. + +// Get sigset_t. + +type X__sigset_t = struct{ F__val [16]uint64 } /* __sigset_t.h:8:3 */ + +// A set of signals to be blocked, unblocked, or waited for. +type Sigset_t = X__sigset_t /* sigset_t.h:7:20 */ + +// Get definition of timer specification structures. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// A time value that is accurate to the nearest +// +// microsecond but also has a range of years. +type Timeval = struct { + Ftv_sec X__time_t + Ftv_usec X__suseconds_t +} /* struct_timeval.h:8:1 */ + +// NB: Include guard matches what uses. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Endian macros for string.h functions +// Copyright (C) 1992-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// POSIX.1b structure for a time value. This is like a `struct timeval' but +// +// has nanoseconds instead of microseconds. +type Timespec = struct { + Ftv_sec X__time_t + Ftv_nsec X__syscall_slong_t +} /* struct_timespec.h:10:1 */ + +type Suseconds_t = X__suseconds_t /* select.h:43:23 */ + +// The fd_set member is required to be an array of longs. +type X__fd_mask = int64 /* select.h:49:18 */ + +// Some versions of define this macros. +// It's easier to assume 8-bit bytes than to get CHAR_BIT. + +// fd_set for select and pselect. +type Fd_set = struct{ F__fds_bits [16]X__fd_mask } /* select.h:70:5 */ + +// Maximum number of file descriptors in `fd_set'. + +// Sometimes the fd_set member is assumed to have this type. +type Fd_mask = X__fd_mask /* select.h:77:19 */ + +// Define some inlines helping to catch common problems. + +type Blksize_t = X__blksize_t /* types.h:185:21 */ + +// Types from the Large File Support interface. +type Blkcnt_t = X__blkcnt64_t /* types.h:205:22 */ // Type to count number of disk blocks. +type Fsblkcnt_t = X__fsblkcnt64_t /* types.h:209:24 */ // Type to count file system blocks. +type Fsfilcnt_t = X__fsfilcnt64_t /* types.h:213:24 */ // Type to count file system inodes. + +// Now add the thread types. +// Declaration of common pthread types for all architectures. +// Copyright (C) 2017-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// For internal mutex and condition variable definitions. +// Common threading primitives definitions for both POSIX and C11. +// Copyright (C) 2017-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Arch-specific definitions. Each architecture must define the following +// macros to define the expected sizes of pthread data types: +// +// __SIZEOF_PTHREAD_ATTR_T - size of pthread_attr_t. +// __SIZEOF_PTHREAD_MUTEX_T - size of pthread_mutex_t. +// __SIZEOF_PTHREAD_MUTEXATTR_T - size of pthread_mutexattr_t. +// __SIZEOF_PTHREAD_COND_T - size of pthread_cond_t. +// __SIZEOF_PTHREAD_CONDATTR_T - size of pthread_condattr_t. +// __SIZEOF_PTHREAD_RWLOCK_T - size of pthread_rwlock_t. +// __SIZEOF_PTHREAD_RWLOCKATTR_T - size of pthread_rwlockattr_t. +// __SIZEOF_PTHREAD_BARRIER_T - size of pthread_barrier_t. +// __SIZEOF_PTHREAD_BARRIERATTR_T - size of pthread_barrierattr_t. +// +// The additional macro defines any constraint for the lock alignment +// inside the thread structures: +// +// __LOCK_ALIGNMENT - for internal lock/futex usage. +// +// Same idea but for the once locking primitive: +// +// __ONCE_ALIGNMENT - for pthread_once_t/once_flag definition. + +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Determine the wordsize from the preprocessor defines. + +// Both x86-64 and x32 use the 64-bit system call interface. + +// Common definition of pthread_mutex_t. + +type X__pthread_internal_list = struct { + F__prev uintptr + F__next uintptr +} /* thread-shared-types.h:49:9 */ + +// Type to count file system inodes. + +// Now add the thread types. +// Declaration of common pthread types for all architectures. +// Copyright (C) 2017-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// For internal mutex and condition variable definitions. +// Common threading primitives definitions for both POSIX and C11. +// Copyright (C) 2017-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Arch-specific definitions. Each architecture must define the following +// macros to define the expected sizes of pthread data types: +// +// __SIZEOF_PTHREAD_ATTR_T - size of pthread_attr_t. +// __SIZEOF_PTHREAD_MUTEX_T - size of pthread_mutex_t. +// __SIZEOF_PTHREAD_MUTEXATTR_T - size of pthread_mutexattr_t. +// __SIZEOF_PTHREAD_COND_T - size of pthread_cond_t. +// __SIZEOF_PTHREAD_CONDATTR_T - size of pthread_condattr_t. +// __SIZEOF_PTHREAD_RWLOCK_T - size of pthread_rwlock_t. +// __SIZEOF_PTHREAD_RWLOCKATTR_T - size of pthread_rwlockattr_t. +// __SIZEOF_PTHREAD_BARRIER_T - size of pthread_barrier_t. +// __SIZEOF_PTHREAD_BARRIERATTR_T - size of pthread_barrierattr_t. +// +// The additional macro defines any constraint for the lock alignment +// inside the thread structures: +// +// __LOCK_ALIGNMENT - for internal lock/futex usage. +// +// Same idea but for the once locking primitive: +// +// __ONCE_ALIGNMENT - for pthread_once_t/once_flag definition. + +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Determine the wordsize from the preprocessor defines. + +// Both x86-64 and x32 use the 64-bit system call interface. + +// Common definition of pthread_mutex_t. + +type X__pthread_list_t = X__pthread_internal_list /* thread-shared-types.h:53:3 */ + +type X__pthread_internal_slist = struct{ F__next uintptr } /* thread-shared-types.h:55:9 */ + +type X__pthread_slist_t = X__pthread_internal_slist /* thread-shared-types.h:58:3 */ + +// Arch-specific mutex definitions. A generic implementation is provided +// by sysdeps/nptl/bits/struct_mutex.h. If required, an architecture +// can override it by defining: +// +// 1. struct __pthread_mutex_s (used on both pthread_mutex_t and mtx_t +// definition). It should contains at least the internal members +// defined in the generic version. +// +// 2. __LOCK_ALIGNMENT for any extra attribute for internal lock used with +// atomic operations. +// +// 3. The macro __PTHREAD_MUTEX_INITIALIZER used for static initialization. +// It should initialize the mutex internal flag. + +// x86 internal mutex struct definitions. +// Copyright (C) 2019-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +type X__pthread_mutex_s = struct { + F__lock int32 + F__count uint32 + F__owner int32 + F__nusers uint32 + F__kind int32 + F__spins int16 + F__elision int16 + F__list X__pthread_list_t +} /* struct_mutex.h:22:1 */ + +// Arch-sepecific read-write lock definitions. A generic implementation is +// provided by struct_rwlock.h. If required, an architecture can override it +// by defining: +// +// 1. struct __pthread_rwlock_arch_t (used on pthread_rwlock_t definition). +// It should contain at least the internal members defined in the +// generic version. +// +// 2. The macro __PTHREAD_RWLOCK_INITIALIZER used for static initialization. +// It should initialize the rwlock internal type. + +// x86 internal rwlock struct definitions. +// Copyright (C) 2019-2020 Free Software Foundation, Inc. +// +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +type X__pthread_rwlock_arch_t = struct { + F__readers uint32 + F__writers uint32 + F__wrphase_futex uint32 + F__writers_futex uint32 + F__pad3 uint32 + F__pad4 uint32 + F__cur_writer int32 + F__shared int32 + F__rwelision int8 + F__pad1 [7]uint8 + F__pad2 uint64 + F__flags uint32 + F__ccgo_pad1 [4]byte +} /* struct_rwlock.h:23:1 */ + +// Common definition of pthread_cond_t. + +type X__pthread_cond_s = struct { + F__0 struct{ F__wseq uint64 } + F__8 struct{ F__g1_start uint64 } + F__g_refs [2]uint32 + F__g_size [2]uint32 + F__g1_orig_size uint32 + F__wrefs uint32 + F__g_signals [2]uint32 +} /* thread-shared-types.h:92:1 */ + +// Thread identifiers. The structure of the attribute type is not +// +// exposed on purpose. +type Pthread_t = uint64 /* pthreadtypes.h:27:27 */ + +// Data structures for mutex handling. The structure of the attribute +// +// type is not exposed on purpose. +type Pthread_mutexattr_t = struct { + F__ccgo_pad1 [0]uint32 + F__size [4]int8 +} /* pthreadtypes.h:36:3 */ + +// Data structure for condition variable handling. The structure of +// +// the attribute type is not exposed on purpose. +type Pthread_condattr_t = struct { + F__ccgo_pad1 [0]uint32 + F__size [4]int8 +} /* pthreadtypes.h:45:3 */ + +// Keys for thread-specific data +type Pthread_key_t = uint32 /* pthreadtypes.h:49:22 */ + +// Once-only execution +type Pthread_once_t = int32 /* pthreadtypes.h:53:30 */ + +type Pthread_attr_t1 = struct { + F__ccgo_pad1 [0]uint64 + F__size [56]int8 +} /* pthreadtypes.h:56:1 */ + +type Pthread_attr_t = Pthread_attr_t1 /* pthreadtypes.h:62:30 */ + +type Pthread_mutex_t = struct{ F__data X__pthread_mutex_s } /* pthreadtypes.h:72:3 */ + +type Pthread_cond_t = struct{ F__data X__pthread_cond_s } /* pthreadtypes.h:80:3 */ + +// Data structure for reader-writer lock variable handling. The +// +// structure of the attribute type is deliberately not exposed. +type Pthread_rwlock_t = struct{ F__data X__pthread_rwlock_arch_t } /* pthreadtypes.h:91:3 */ + +type Pthread_rwlockattr_t = struct { + F__ccgo_pad1 [0]uint64 + F__size [8]int8 +} /* pthreadtypes.h:97:3 */ + +// POSIX spinlock data type. +type Pthread_spinlock_t = int32 /* pthreadtypes.h:103:22 */ + +// POSIX barriers data type. The structure of the type is +// +// deliberately not exposed. +type Pthread_barrier_t = struct { + F__ccgo_pad1 [0]uint64 + F__size [32]int8 +} /* pthreadtypes.h:112:3 */ + +type Pthread_barrierattr_t = struct { + F__ccgo_pad1 [0]uint32 + F__size [4]int8 +} /* pthreadtypes.h:118:3 */ + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// `fd_set' type and related macros, and `select'/`pselect' declarations. +// Copyright (C) 1996-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// POSIX 1003.1g: 6.2 Select from File Descriptor Sets + +// Structure crudely representing a timezone. +// +// This is obsolete and should never be used. +type Timezone = struct { + Ftz_minuteswest int32 + Ftz_dsttime int32 +} /* time.h:52:1 */ + +// Type of the second argument to `getitimer' and +// +// the second and third arguments `setitimer'. +type Itimerval = struct { + Fit_interval struct { + Ftv_sec X__time_t + Ftv_usec X__suseconds_t + } + Fit_value struct { + Ftv_sec X__time_t + Ftv_usec X__suseconds_t + } +} /* time.h:105:1 */ + +type X__itimer_which_t = int32 /* time.h:118:13 */ + +// Convenience macros for operations on timevals. +// NOTE: `timercmp' does not work for >= or <=. + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// ISO C99 Standard: 7.23 Date and time + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Copyright (C) 1989-2020 Free Software Foundation, Inc. +// +// This file is part of GCC. +// +// GCC is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 3, or (at your option) +// any later version. +// +// GCC is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// Under Section 7 of GPL version 3, you are granted additional +// permissions described in the GCC Runtime Library Exception, version +// 3.1, as published by the Free Software Foundation. +// +// You should have received a copy of the GNU General Public License and +// a copy of the GCC Runtime Library Exception along with this program; +// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see +// . + +// ISO C Standard: 7.17 Common definitions + +// Any one of these symbols __need_* means that GNU libc +// wants us just to define one data type. So don't define +// the symbols that indicate this file's entire job has been done. + +// This avoids lossage on SunOS but only if stdtypes.h comes first. +// There's no way to win with the other order! Sun lossage. + +// Sequent's header files use _PTRDIFF_T_ in some conflicting way. +// Just ignore it. + +// On VxWorks, may have defined macros like +// _TYPE_size_t which will typedef size_t. fixincludes patched the +// vxTypesBase.h so that this macro is only defined if _GCC_SIZE_T is +// not defined, and so that defining this macro defines _GCC_SIZE_T. +// If we find that the macros are still defined at this point, we must +// invoke them so that the type is defined as expected. + +// In case nobody has defined these types, but we aren't running under +// GCC 2.00, make sure that __PTRDIFF_TYPE__, __SIZE_TYPE__, and +// __WCHAR_TYPE__ have reasonable values. This can happen if the +// parts of GCC is compiled by an older compiler, that actually +// include gstddef.h, such as collect2. + +// Signed type of difference of two pointers. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// Unsigned type of `sizeof' something. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// Wide character type. +// Locale-writers should change this as necessary to +// be big enough to hold unique values not between 0 and 127, +// and not (wchar_t) -1, for each defined multibyte character. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// A null pointer constant. + +// This defines CLOCKS_PER_SEC, which is the number of processor clock +// ticks per second, and possibly a number of other constants. +// System-dependent timing definitions. Linux version. +// Copyright (C) 1996-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// ISO/IEC 9899:1999 7.23.1: Components of time +// The macro `CLOCKS_PER_SEC' is an expression with type `clock_t' that is +// the number per second of the value returned by the `clock' function. +// CAE XSH, Issue 4, Version 2: +// The value of CLOCKS_PER_SEC is required to be 1 million on all +// XSI-conformant systems. + +// Identifier for system-wide realtime clock. +// Monotonic system-wide clock. +// High-resolution timer from the CPU. +// Thread-specific CPU-time clock. +// Monotonic system-wide clock, not adjusted for frequency scaling. +// Identifier for system-wide realtime clock, updated only on ticks. +// Monotonic system-wide clock, updated only on ticks. +// Monotonic system-wide clock that includes time spent in suspension. +// Like CLOCK_REALTIME but also wakes suspended system. +// Like CLOCK_BOOTTIME but also wakes suspended system. +// Like CLOCK_REALTIME but in International Atomic Time. + +// Flag to indicate time is absolute. + +// Many of the typedefs and structs whose official home is this header +// may also need to be defined by other headers. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// ISO C `broken-down time' structure. +type Tm = struct { + Ftm_sec int32 + Ftm_min int32 + Ftm_hour int32 + Ftm_mday int32 + Ftm_mon int32 + Ftm_year int32 + Ftm_wday int32 + Ftm_yday int32 + Ftm_isdst int32 + F__ccgo_pad1 [4]byte + Ftm_gmtoff int64 + Ftm_zone uintptr +} /* struct_tm.h:7:1 */ + +// NB: Include guard matches what uses. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// NB: Include guard matches what uses. + +// POSIX.1b structure for timer start values and intervals. +type Itimerspec = struct { + Fit_interval struct { + Ftv_sec X__time_t + Ftv_nsec X__syscall_slong_t + } + Fit_value struct { + Ftv_sec X__time_t + Ftv_nsec X__syscall_slong_t + } +} /* struct_itimerspec.h:8:1 */ + +// Definition of locale_t. +// Copyright (C) 2017-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Definition of struct __locale_struct and __locale_t. +// Copyright (C) 1997-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// Contributed by Ulrich Drepper , 1997. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// POSIX.1-2008: the locale_t type, representing a locale context +// (implementation-namespace version). This type should be treated +// as opaque by applications; some details are exposed for the sake of +// efficiency in e.g. ctype functions. + +type X__locale_struct = struct { + F__locales [13]uintptr + F__ctype_b uintptr + F__ctype_tolower uintptr + F__ctype_toupper uintptr + F__names [13]uintptr +} /* __locale_t.h:28:1 */ + +type X__locale_t = uintptr /* __locale_t.h:42:32 */ + +type Locale_t = X__locale_t /* locale_t.h:24:20 */ + +type Uuid_t = [16]uint8 /* uuid.h:44:23 */ + +var _ int8 /* gen.c:2:13: */ diff --git a/vendor/modernc.org/libc/uuid/uuid/uuid_linux_mips64le.go b/vendor/modernc.org/libc/uuid/uuid/uuid_linux_mips64le.go new file mode 100644 index 000000000..dfd5ff6a9 --- /dev/null +++ b/vendor/modernc.org/libc/uuid/uuid/uuid_linux_mips64le.go @@ -0,0 +1,1986 @@ +// Code generated by 'ccgo uuid/uuid/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o uuid/uuid/uuid_linux_amd64.go -pkgname uuid', DO NOT EDIT. + +package uuid + +import ( + "math" + "reflect" + "sync/atomic" + "unsafe" +) + +var _ = math.Pi +var _ reflect.Kind +var _ atomic.Value +var _ unsafe.Pointer + +const ( + BIG_ENDIAN = 4321 // endian.h:28:1: + BYTE_ORDER = 1234 // endian.h:30:1: + CLOCK_BOOTTIME = 7 // time.h:60:1: + CLOCK_BOOTTIME_ALARM = 9 // time.h:64:1: + CLOCK_MONOTONIC = 1 // time.h:48:1: + CLOCK_MONOTONIC_COARSE = 6 // time.h:58:1: + CLOCK_MONOTONIC_RAW = 4 // time.h:54:1: + CLOCK_PROCESS_CPUTIME_ID = 2 // time.h:50:1: + CLOCK_REALTIME = 0 // time.h:46:1: + CLOCK_REALTIME_ALARM = 8 // time.h:62:1: + CLOCK_REALTIME_COARSE = 5 // time.h:56:1: + CLOCK_TAI = 11 // time.h:66:1: + CLOCK_THREAD_CPUTIME_ID = 3 // time.h:52:1: + FD_SETSIZE = 1024 // select.h:73:1: + LITTLE_ENDIAN = 1234 // endian.h:27:1: + PDP_ENDIAN = 3412 // endian.h:29:1: + TIMER_ABSTIME = 1 // time.h:69:1: + TIME_UTC = 1 // time.h:65:1: + UUID_STR_LEN = 37 // uuid.h:65:1: + UUID_TYPE_DCE_MD5 = 3 // uuid.h:58:1: + UUID_TYPE_DCE_RANDOM = 4 // uuid.h:59:1: + UUID_TYPE_DCE_SECURITY = 2 // uuid.h:57:1: + UUID_TYPE_DCE_SHA1 = 5 // uuid.h:60:1: + UUID_TYPE_DCE_TIME = 1 // uuid.h:56:1: + UUID_TYPE_MASK = 0xf // uuid.h:63:1: + UUID_TYPE_SHIFT = 4 // uuid.h:62:1: + UUID_VARIANT_DCE = 1 // uuid.h:48:1: + UUID_VARIANT_MASK = 0x7 // uuid.h:53:1: + UUID_VARIANT_MICROSOFT = 2 // uuid.h:49:1: + UUID_VARIANT_NCS = 0 // uuid.h:47:1: + UUID_VARIANT_OTHER = 3 // uuid.h:50:1: + UUID_VARIANT_SHIFT = 5 // uuid.h:52:1: + X_ATFILE_SOURCE = 1 // features.h:342:1: + X_BITS_BYTESWAP_H = 1 // byteswap.h:24:1: + X_BITS_ENDIANNESS_H = 1 // endianness.h:2:1: + X_BITS_ENDIAN_H = 1 // endian.h:20:1: + X_BITS_PTHREADTYPES_ARCH_H = 1 // pthreadtypes-arch.h:19:1: + X_BITS_PTHREADTYPES_COMMON_H = 1 // pthreadtypes.h:20:1: + X_BITS_STDINT_INTN_H = 1 // stdint-intn.h:20:1: + X_BITS_TIME64_H = 1 // time64.h:24:1: + X_BITS_TIME_H = 1 // time.h:24:1: + X_BITS_TYPESIZES_H = 1 // typesizes.h:24:1: + X_BITS_TYPES_H = 1 // types.h:24:1: + X_BITS_TYPES_LOCALE_T_H = 1 // locale_t.h:20:1: + X_BITS_TYPES___LOCALE_T_H = 1 // __locale_t.h:21:1: + X_BITS_UINTN_IDENTITY_H = 1 // uintn-identity.h:24:1: + X_BSD_SIZE_T_ = 0 // stddef.h:189:1: + X_BSD_SIZE_T_DEFINED_ = 0 // stddef.h:192:1: + X_DEFAULT_SOURCE = 1 // features.h:227:1: + X_ENDIAN_H = 1 // endian.h:19:1: + X_FEATURES_H = 1 // features.h:19:1: + X_FILE_OFFSET_BITS = 64 // :25:1: + X_GCC_SIZE_T = 0 // stddef.h:195:1: + X_LP64 = 1 // :284:1: + X_POSIX_C_SOURCE = 200809 // features.h:281:1: + X_POSIX_SOURCE = 1 // features.h:279:1: + X_RWLOCK_INTERNAL_H = 0 // struct_rwlock.h:21:1: + X_SIZET_ = 0 // stddef.h:196:1: + X_SIZE_T = 0 // stddef.h:183:1: + X_SIZE_T_ = 0 // stddef.h:188:1: + X_SIZE_T_DECLARED = 0 // stddef.h:193:1: + X_SIZE_T_DEFINED = 0 // stddef.h:191:1: + X_SIZE_T_DEFINED_ = 0 // stddef.h:190:1: + X_STDC_PREDEF_H = 1 // :162:1: + X_STRUCT_TIMESPEC = 1 // struct_timespec.h:3:1: + X_SYS_CDEFS_H = 1 // cdefs.h:19:1: + X_SYS_SELECT_H = 1 // select.h:22:1: + X_SYS_SIZE_T_H = 0 // stddef.h:184:1: + X_SYS_TIME_H = 1 // time.h:19:1: + X_SYS_TYPES_H = 1 // types.h:23:1: + X_THREAD_MUTEX_INTERNAL_H = 1 // struct_mutex.h:20:1: + X_THREAD_SHARED_TYPES_H = 1 // thread-shared-types.h:20:1: + X_TIME_H = 1 // time.h:23:1: + X_T_SIZE = 0 // stddef.h:186:1: + X_T_SIZE_ = 0 // stddef.h:185:1: + X_UUID_UUID_H = 0 // uuid.h:36:1: + Linux = 1 // :231:1: + Unix = 1 // :177:1: +) + +// Values for the first argument to `getitimer' and `setitimer'. +const ( /* time.h:89:1: */ + // Timers run in real time. + ITIMER_REAL = 0 + // Timers run only when the process is executing. + ITIMER_VIRTUAL = 1 + // Timers run when the process is executing and when + // the system is executing on behalf of the process. + ITIMER_PROF = 2 +) + +type Ptrdiff_t = int64 /* :3:26 */ + +type Size_t = uint64 /* :9:23 */ + +type Wchar_t = int32 /* :15:24 */ + +type X__int128_t = struct { + Flo int64 + Fhi int64 +} /* :21:43 */ // must match modernc.org/mathutil.Int128 +type X__uint128_t = struct { + Flo uint64 + Fhi uint64 +} /* :22:44 */ // must match modernc.org/mathutil.Int128 + +type X__builtin_va_list = uintptr /* :46:14 */ +type X__float128 = float64 /* :47:21 */ + +// Public include file for the UUID library +// +// Copyright (C) 1996, 1997, 1998 Theodore Ts'o. +// +// %Begin-Header% +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// 1. Redistributions of source code must retain the above copyright +// notice, and the entire permission notice in its entirety, +// including the disclaimer of warranties. +// 2. Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer in the +// documentation and/or other materials provided with the distribution. +// 3. The name of the author may not be used to endorse or promote +// products derived from this software without specific prior +// written permission. +// +// THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED +// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES +// OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, ALL OF +// WHICH ARE HEREBY DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE +// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT +// OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR +// BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF +// LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE +// USE OF THIS SOFTWARE, EVEN IF NOT ADVISED OF THE POSSIBILITY OF SUCH +// DAMAGE. +// %End-Header% + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// POSIX Standard: 2.6 Primitive System Data Types + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// These are defined by the user (or the compiler) +// to specify the desired environment: +// +// __STRICT_ANSI__ ISO Standard C. +// _ISOC99_SOURCE Extensions to ISO C89 from ISO C99. +// _ISOC11_SOURCE Extensions to ISO C99 from ISO C11. +// _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X. +// __STDC_WANT_LIB_EXT2__ +// Extensions to ISO C99 from TR 27431-2:2010. +// __STDC_WANT_IEC_60559_BFP_EXT__ +// Extensions to ISO C11 from TS 18661-1:2014. +// __STDC_WANT_IEC_60559_FUNCS_EXT__ +// Extensions to ISO C11 from TS 18661-4:2015. +// __STDC_WANT_IEC_60559_TYPES_EXT__ +// Extensions to ISO C11 from TS 18661-3:2015. +// +// _POSIX_SOURCE IEEE Std 1003.1. +// _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2; +// if >=199309L, add IEEE Std 1003.1b-1993; +// if >=199506L, add IEEE Std 1003.1c-1995; +// if >=200112L, all of IEEE 1003.1-2004 +// if >=200809L, all of IEEE 1003.1-2008 +// _XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if +// Single Unix conformance is wanted, to 600 for the +// sixth revision, to 700 for the seventh revision. +// _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions. +// _LARGEFILE_SOURCE Some more functions for correct standard I/O. +// _LARGEFILE64_SOURCE Additional functionality from LFS for large files. +// _FILE_OFFSET_BITS=N Select default filesystem interface. +// _ATFILE_SOURCE Additional *at interfaces. +// _GNU_SOURCE All of the above, plus GNU extensions. +// _DEFAULT_SOURCE The default set of features (taking precedence over +// __STRICT_ANSI__). +// +// _FORTIFY_SOURCE Add security hardening to many library functions. +// Set to 1 or 2; 2 performs stricter checks than 1. +// +// _REENTRANT, _THREAD_SAFE +// Obsolete; equivalent to _POSIX_C_SOURCE=199506L. +// +// The `-ansi' switch to the GNU C compiler, and standards conformance +// options such as `-std=c99', define __STRICT_ANSI__. If none of +// these are defined, or if _DEFAULT_SOURCE is defined, the default is +// to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to +// 200809L, as well as enabling miscellaneous functions from BSD and +// SVID. If more than one of these are defined, they accumulate. For +// example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together +// give you ISO C, 1003.1, and 1003.2, but nothing else. +// +// These are defined by this file and are used by the +// header files to decide what to declare or define: +// +// __GLIBC_USE (F) Define things from feature set F. This is defined +// to 1 or 0; the subsequent macros are either defined +// or undefined, and those tests should be moved to +// __GLIBC_USE. +// __USE_ISOC11 Define ISO C11 things. +// __USE_ISOC99 Define ISO C99 things. +// __USE_ISOC95 Define ISO C90 AMD1 (C95) things. +// __USE_ISOCXX11 Define ISO C++11 things. +// __USE_POSIX Define IEEE Std 1003.1 things. +// __USE_POSIX2 Define IEEE Std 1003.2 things. +// __USE_POSIX199309 Define IEEE Std 1003.1, and .1b things. +// __USE_POSIX199506 Define IEEE Std 1003.1, .1b, .1c and .1i things. +// __USE_XOPEN Define XPG things. +// __USE_XOPEN_EXTENDED Define X/Open Unix things. +// __USE_UNIX98 Define Single Unix V2 things. +// __USE_XOPEN2K Define XPG6 things. +// __USE_XOPEN2KXSI Define XPG6 XSI things. +// __USE_XOPEN2K8 Define XPG7 things. +// __USE_XOPEN2K8XSI Define XPG7 XSI things. +// __USE_LARGEFILE Define correct standard I/O things. +// __USE_LARGEFILE64 Define LFS things with separate names. +// __USE_FILE_OFFSET64 Define 64bit interface as default. +// __USE_MISC Define things from 4.3BSD or System V Unix. +// __USE_ATFILE Define *at interfaces and AT_* constants for them. +// __USE_GNU Define GNU extensions. +// __USE_FORTIFY_LEVEL Additional security measures used, according to level. +// +// The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are +// defined by this file unconditionally. `__GNU_LIBRARY__' is provided +// only for compatibility. All new code should use the other symbols +// to test for features. +// +// All macros listed above as possibly being defined by this file are +// explicitly undefined if they are not explicitly defined. +// Feature-test macros that are not defined by the user or compiler +// but are implied by the other feature-test macros defined (or by the +// lack of any definitions) are defined by the file. +// +// ISO C feature test macros depend on the definition of the macro +// when an affected header is included, not when the first system +// header is included, and so they are handled in +// , which does not have a multiple include +// guard. Feature test macros that can be handled from the first +// system header included are handled here. + +// Undefine everything, so we get a clean slate. + +// Suppress kernel-name space pollution unless user expressedly asks +// for it. + +// Convenience macro to test the version of gcc. +// Use like this: +// #if __GNUC_PREREQ (2,8) +// ... code requiring gcc 2.8 or later ... +// #endif +// Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was +// added in 2.0. + +// Similarly for clang. Features added to GCC after version 4.2 may +// or may not also be available in clang, and clang's definitions of +// __GNUC(_MINOR)__ are fixed at 4 and 2 respectively. Not all such +// features can be queried via __has_extension/__has_feature. + +// Whether to use feature set F. + +// _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for +// _DEFAULT_SOURCE. If _DEFAULT_SOURCE is present we do not +// issue a warning; the expectation is that the source is being +// transitioned to use the new macro. + +// If _GNU_SOURCE was defined by the user, turn on all the other features. + +// If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined, +// define _DEFAULT_SOURCE. + +// This is to enable the ISO C2X extension. + +// This is to enable the ISO C11 extension. + +// This is to enable the ISO C99 extension. + +// This is to enable the ISO C90 Amendment 1:1995 extension. + +// If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE +// is defined, use POSIX.1-2008 (or another version depending on +// _XOPEN_SOURCE). + +// Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be +// defined in all multithreaded code. GNU libc has not required this +// for many years. We now treat them as compatibility synonyms for +// _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with +// comprehensive support for multithreaded code. Using them never +// lowers the selected level of POSIX conformance, only raises it. + +// The function 'gets' existed in C89, but is impossible to use +// safely. It has been removed from ISO C11 and ISO C++14. Note: for +// compatibility with various implementations of , this test +// must consider only the value of __cplusplus when compiling C++. + +// GNU formerly extended the scanf functions with modified format +// specifiers %as, %aS, and %a[...] that allocate a buffer for the +// input using malloc. This extension conflicts with ISO C99, which +// defines %a as a standalone format specifier that reads a floating- +// point number; moreover, POSIX.1-2008 provides the same feature +// using the modifier letter 'm' instead (%ms, %mS, %m[...]). +// +// We now follow C99 unless GNU extensions are active and the compiler +// is specifically in C89 or C++98 mode (strict or not). For +// instance, with GCC, -std=gnu11 will have C99-compliant scanf with +// or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the +// old extension. + +// Get definitions of __STDC_* predefined macros, if the compiler has +// not preincluded this header automatically. +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// This macro indicates that the installed library is the GNU C Library. +// For historic reasons the value now is 6 and this will stay from now +// on. The use of this variable is deprecated. Use __GLIBC__ and +// __GLIBC_MINOR__ now (see below) when you want to test for a specific +// GNU C library version and use the values in to get +// the sonames of the shared libraries. + +// Major and minor version number of the GNU C library package. Use +// these macros to test for features in specific releases. + +// This is here only because every header file already includes this one. +// Copyright (C) 1992-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// We are almost always included from features.h. + +// The GNU libc does not support any K&R compilers or the traditional mode +// of ISO C compilers anymore. Check for some of the combinations not +// anymore supported. + +// Some user header file might have defined this before. + +// All functions, except those with callbacks or those that +// synchronize memory, are leaf functions. + +// GCC can always grok prototypes. For C++ programs we add throw() +// to help it optimize the function calls. But this works only with +// gcc 2.8.x and egcs. For gcc 3.2 and up we even mark C functions +// as non-throwing using a function attribute since programs can use +// the -fexceptions options for C code as well. + +// Compilers that are not clang may object to +// #if defined __clang__ && __has_extension(...) +// even though they do not need to evaluate the right-hand side of the &&. + +// These two macros are not used in glibc anymore. They are kept here +// only because some other projects expect the macros to be defined. + +// For these things, GCC behaves the ANSI way normally, +// and the non-ANSI way under -traditional. + +// This is not a typedef so `const __ptr_t' does the right thing. + +// C++ needs to know that types and declarations are C, not C++. + +// Fortify support. + +// Support for flexible arrays. +// Headers that should use flexible arrays only if they're "real" +// (e.g. only if they won't affect sizeof()) should test +// #if __glibc_c99_flexarr_available. + +// __asm__ ("xyz") is used throughout the headers to rename functions +// at the assembly language level. This is wrapped by the __REDIRECT +// macro, in order to support compilers that can do this some other +// way. When compilers don't support asm-names at all, we have to do +// preprocessor tricks instead (which don't have exactly the right +// semantics, but it's the best we can do). +// +// Example: +// int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid); + +// +// #elif __SOME_OTHER_COMPILER__ +// +// # define __REDIRECT(name, proto, alias) name proto; _Pragma("let " #name " = " #alias) + +// GCC has various useful declarations that can be made with the +// `__attribute__' syntax. All of the ways we use this do fine if +// they are omitted for compilers that don't understand it. + +// At some point during the gcc 2.96 development the `malloc' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// Tell the compiler which arguments to an allocation function +// indicate the size of the allocation. + +// At some point during the gcc 2.96 development the `pure' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// This declaration tells the compiler that the value is constant. + +// At some point during the gcc 3.1 development the `used' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// Since version 3.2, gcc allows marking deprecated functions. + +// Since version 4.5, gcc also allows one to specify the message printed +// when a deprecated function is used. clang claims to be gcc 4.2, but +// may also support this feature. + +// At some point during the gcc 2.8 development the `format_arg' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. +// If several `format_arg' attributes are given for the same function, in +// gcc-3.0 and older, all but the last one are ignored. In newer gccs, +// all designated arguments are considered. + +// At some point during the gcc 2.97 development the `strfmon' format +// attribute for functions was introduced. We don't want to use it +// unconditionally (although this would be possible) since it +// generates warnings. + +// The nonull function attribute allows to mark pointer parameters which +// must not be NULL. + +// If fortification mode, we warn about unused results of certain +// function calls which can lead to problems. + +// Forces a function to be always inlined. +// The Linux kernel defines __always_inline in stddef.h (283d7573), and +// it conflicts with this definition. Therefore undefine it first to +// allow either header to be included first. + +// Associate error messages with the source location of the call site rather +// than with the source location inside the function. + +// GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99 +// inline semantics, unless -fgnu89-inline is used. Using __GNUC_STDC_INLINE__ +// or __GNUC_GNU_INLINE is not a good enough check for gcc because gcc versions +// older than 4.3 may define these macros and still not guarantee GNU inlining +// semantics. +// +// clang++ identifies itself as gcc-4.2, but has support for GNU inlining +// semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and +// __GNUC_GNU_INLINE__ macro definitions. + +// GCC 4.3 and above allow passing all anonymous arguments of an +// __extern_always_inline function to some other vararg function. + +// It is possible to compile containing GCC extensions even if GCC is +// run in pedantic mode if the uses are carefully marked using the +// `__extension__' keyword. But this is not generally available before +// version 2.8. + +// __restrict is known in EGCS 1.2 and above. + +// ISO C99 also allows to declare arrays as non-overlapping. The syntax is +// array_name[restrict] +// GCC 3.1 supports this. + +// Describes a char array whose address can safely be passed as the first +// argument to strncpy and strncat, as the char array is not necessarily +// a NUL-terminated string. + +// Undefine (also defined in libc-symbols.h). +// Copies attributes from the declaration or type referenced by +// the argument. + +// Determine the wordsize from the preprocessor defines. + +// Both x86-64 and x32 use the 64-bit system call interface. +// Properties of long double type. ldbl-96 version. +// Copyright (C) 2016-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// long double is distinct from double, so there is nothing to +// define here. + +// __glibc_macro_warning (MESSAGE) issues warning MESSAGE. This is +// intended for use in preprocessor macros. +// +// Note: MESSAGE must be a _single_ string; concatenation of string +// literals is not supported. + +// Generic selection (ISO C11) is a C-only feature, available in GCC +// since version 4.9. Previous versions do not provide generic +// selection, even though they might set __STDC_VERSION__ to 201112L, +// when in -std=c11 mode. Thus, we must check for !defined __GNUC__ +// when testing __STDC_VERSION__ for generic selection support. +// On the other hand, Clang also defines __GNUC__, so a clang-specific +// check is required to enable the use of generic selection. + +// If we don't have __REDIRECT, prototypes will be missing if +// __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64]. + +// Decide whether we can define 'extern inline' functions in headers. + +// This is here only because every header file already includes this one. +// Get the definitions of all the appropriate `__stub_FUNCTION' symbols. +// contains `#define __stub_FUNCTION' when FUNCTION is a stub +// that will always return failure (and set errno to ENOSYS). +// This file is automatically generated. +// This file selects the right generated file of `__stub_FUNCTION' macros +// based on the architecture being compiled for. + +// This file is automatically generated. +// It defines a symbol `__stub_FUNCTION' for each function +// in the C library which is a stub, meaning it will fail +// every time called, usually setting errno to ENOSYS. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Determine the wordsize from the preprocessor defines. + +// Both x86-64 and x32 use the 64-bit system call interface. +// Bit size of the time_t type at glibc build time, x86-64 and x32 case. +// Copyright (C) 2018-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// For others, time size is word size. + +// Convenience types. +type X__u_char = uint8 /* types.h:31:23 */ +type X__u_short = uint16 /* types.h:32:28 */ +type X__u_int = uint32 /* types.h:33:22 */ +type X__u_long = uint64 /* types.h:34:27 */ + +// Fixed-size types, underlying types depend on word size and compiler. +type X__int8_t = int8 /* types.h:37:21 */ +type X__uint8_t = uint8 /* types.h:38:23 */ +type X__int16_t = int16 /* types.h:39:26 */ +type X__uint16_t = uint16 /* types.h:40:28 */ +type X__int32_t = int32 /* types.h:41:20 */ +type X__uint32_t = uint32 /* types.h:42:22 */ +type X__int64_t = int64 /* types.h:44:25 */ +type X__uint64_t = uint64 /* types.h:45:27 */ + +// Smallest types with at least a given width. +type X__int_least8_t = X__int8_t /* types.h:52:18 */ +type X__uint_least8_t = X__uint8_t /* types.h:53:19 */ +type X__int_least16_t = X__int16_t /* types.h:54:19 */ +type X__uint_least16_t = X__uint16_t /* types.h:55:20 */ +type X__int_least32_t = X__int32_t /* types.h:56:19 */ +type X__uint_least32_t = X__uint32_t /* types.h:57:20 */ +type X__int_least64_t = X__int64_t /* types.h:58:19 */ +type X__uint_least64_t = X__uint64_t /* types.h:59:20 */ + +// quad_t is also 64 bits. +type X__quad_t = int64 /* types.h:63:18 */ +type X__u_quad_t = uint64 /* types.h:64:27 */ + +// Largest integral types. +type X__intmax_t = int64 /* types.h:72:18 */ +type X__uintmax_t = uint64 /* types.h:73:27 */ + +// The machine-dependent file defines __*_T_TYPE +// macros for each of the OS types we define below. The definitions +// of those macros must use the following macros for underlying types. +// We define __S_TYPE and __U_TYPE for the signed and unsigned +// variants of each of the following integer types on this machine. +// +// 16 -- "natural" 16-bit type (always short) +// 32 -- "natural" 32-bit type (always int) +// 64 -- "natural" 64-bit type (long or long long) +// LONG32 -- 32-bit type, traditionally long +// QUAD -- 64-bit type, traditionally long long +// WORD -- natural type of __WORDSIZE bits (int or long) +// LONGWORD -- type of __WORDSIZE bits, traditionally long +// +// We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the +// conventional uses of `long' or `long long' type modifiers match the +// types we define, even when a less-adorned type would be the same size. +// This matters for (somewhat) portably writing printf/scanf formats for +// these types, where using the appropriate l or ll format modifiers can +// make the typedefs and the formats match up across all GNU platforms. If +// we used `long' when it's 64 bits where `long long' is expected, then the +// compiler would warn about the formats not matching the argument types, +// and the programmer changing them to shut up the compiler would break the +// program's portability. +// +// Here we assume what is presently the case in all the GCC configurations +// we support: long long is always 64 bits, long is always word/address size, +// and int is always 32 bits. + +// No need to mark the typedef with __extension__. +// bits/typesizes.h -- underlying types for *_t. Linux/x86-64 version. +// Copyright (C) 2012-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// See for the meaning of these macros. This file exists so +// that need not vary across different GNU platforms. + +// X32 kernel interface is 64-bit. + +// Tell the libc code that off_t and off64_t are actually the same type +// for all ABI purposes, even if possibly expressed as different base types +// for C type-checking purposes. + +// Same for ino_t and ino64_t. + +// And for __rlim_t and __rlim64_t. + +// And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t. + +// Number of descriptors that can fit in an `fd_set'. + +// bits/time64.h -- underlying types for __time64_t. Generic version. +// Copyright (C) 2018-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Define __TIME64_T_TYPE so that it is always a 64-bit type. + +// If we already have 64-bit time type then use it. + +type X__dev_t = uint64 /* types.h:145:25 */ // Type of device numbers. +type X__uid_t = uint32 /* types.h:146:25 */ // Type of user identifications. +type X__gid_t = uint32 /* types.h:147:25 */ // Type of group identifications. +type X__ino_t = uint64 /* types.h:148:25 */ // Type of file serial numbers. +type X__ino64_t = uint64 /* types.h:149:27 */ // Type of file serial numbers (LFS). +type X__mode_t = uint32 /* types.h:150:26 */ // Type of file attribute bitmasks. +type X__nlink_t = uint64 /* types.h:151:27 */ // Type of file link counts. +type X__off_t = int64 /* types.h:152:25 */ // Type of file sizes and offsets. +type X__off64_t = int64 /* types.h:153:27 */ // Type of file sizes and offsets (LFS). +type X__pid_t = int32 /* types.h:154:25 */ // Type of process identifications. +type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs. +type X__clock_t = int64 /* types.h:156:27 */ // Type of CPU usage counts. +type X__rlim_t = uint64 /* types.h:157:26 */ // Type for resource measurement. +type X__rlim64_t = uint64 /* types.h:158:28 */ // Type for resource measurement (LFS). +type X__id_t = uint32 /* types.h:159:24 */ // General type for IDs. +type X__time_t = int64 /* types.h:160:26 */ // Seconds since the Epoch. +type X__useconds_t = uint32 /* types.h:161:30 */ // Count of microseconds. +type X__suseconds_t = int64 /* types.h:162:31 */ // Signed count of microseconds. + +type X__daddr_t = int32 /* types.h:164:27 */ // The type of a disk address. +type X__key_t = int32 /* types.h:165:25 */ // Type of an IPC key. + +// Clock ID used in clock and timer functions. +type X__clockid_t = int32 /* types.h:168:29 */ + +// Timer ID returned by `timer_create'. +type X__timer_t = uintptr /* types.h:171:12 */ + +// Type to represent block size. +type X__blksize_t = int64 /* types.h:174:29 */ + +// Types from the Large File Support interface. + +// Type to count number of disk blocks. +type X__blkcnt_t = int64 /* types.h:179:28 */ +type X__blkcnt64_t = int64 /* types.h:180:30 */ + +// Type to count file system blocks. +type X__fsblkcnt_t = uint64 /* types.h:183:30 */ +type X__fsblkcnt64_t = uint64 /* types.h:184:32 */ + +// Type to count file system nodes. +type X__fsfilcnt_t = uint64 /* types.h:187:30 */ +type X__fsfilcnt64_t = uint64 /* types.h:188:32 */ + +// Type of miscellaneous file system fields. +type X__fsword_t = int64 /* types.h:191:28 */ + +type X__ssize_t = int64 /* types.h:193:27 */ // Type of a byte count, or error. + +// Signed long type used in system calls. +type X__syscall_slong_t = int64 /* types.h:196:33 */ +// Unsigned long type used in system calls. +type X__syscall_ulong_t = uint64 /* types.h:198:33 */ + +// These few don't really vary by system, they always correspond +// +// to one of the other defined types. +type X__loff_t = X__off64_t /* types.h:202:19 */ // Type of file sizes and offsets (LFS). +type X__caddr_t = uintptr /* types.h:203:14 */ + +// Duplicates info from stdint.h but this is used in unistd.h. +type X__intptr_t = int64 /* types.h:206:25 */ + +// Duplicate info from sys/socket.h. +type X__socklen_t = uint32 /* types.h:209:23 */ + +// C99: An integer type that can be accessed as an atomic entity, +// +// even in the presence of asynchronous interrupts. +// It is not currently necessary for this to be machine-specific. +type X__sig_atomic_t = int32 /* types.h:214:13 */ + +// Seconds since the Epoch, visible to user code when time_t is too +// narrow only for consistency with the old way of widening too-narrow +// types. User code should never use __time64_t. + +type U_char = X__u_char /* types.h:33:18 */ +type U_short = X__u_short /* types.h:34:19 */ +type U_int = X__u_int /* types.h:35:17 */ +type U_long = X__u_long /* types.h:36:18 */ +type Quad_t = X__quad_t /* types.h:37:18 */ +type U_quad_t = X__u_quad_t /* types.h:38:20 */ +type Fsid_t = X__fsid_t /* types.h:39:18 */ +type Loff_t = X__loff_t /* types.h:42:18 */ + +type Ino_t = X__ino64_t /* types.h:49:19 */ + +type Dev_t = X__dev_t /* types.h:59:17 */ + +type Gid_t = X__gid_t /* types.h:64:17 */ + +type Mode_t = X__mode_t /* types.h:69:18 */ + +type Nlink_t = X__nlink_t /* types.h:74:19 */ + +type Uid_t = X__uid_t /* types.h:79:17 */ + +type Off_t = X__off64_t /* types.h:87:19 */ + +type Pid_t = X__pid_t /* types.h:97:17 */ + +type Id_t = X__id_t /* types.h:103:16 */ + +type Ssize_t = X__ssize_t /* types.h:108:19 */ + +type Daddr_t = X__daddr_t /* types.h:114:19 */ +type Caddr_t = X__caddr_t /* types.h:115:19 */ + +type Key_t = X__key_t /* types.h:121:17 */ + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Returned by `clock'. +type Clock_t = X__clock_t /* clock_t.h:7:19 */ + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Clock ID used in clock and timer functions. +type Clockid_t = X__clockid_t /* clockid_t.h:7:21 */ + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Returned by `time'. +type Time_t = X__time_t /* time_t.h:7:18 */ + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Timer ID returned by `timer_create'. +type Timer_t = X__timer_t /* timer_t.h:7:19 */ + +// Wide character type. +// Locale-writers should change this as necessary to +// be big enough to hold unique values not between 0 and 127, +// and not (wchar_t) -1, for each defined multibyte character. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// A null pointer constant. + +// Old compatibility names for C types. +type Ulong = uint64 /* types.h:148:27 */ +type Ushort = uint16 /* types.h:149:28 */ +type Uint = uint32 /* types.h:150:22 */ + +// These size-specific names are used by some of the inet code. + +// Define intN_t types. +// Copyright (C) 2017-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +type Int8_t = X__int8_t /* stdint-intn.h:24:18 */ +type Int16_t = X__int16_t /* stdint-intn.h:25:19 */ +type Int32_t = X__int32_t /* stdint-intn.h:26:19 */ +type Int64_t = X__int64_t /* stdint-intn.h:27:19 */ + +// These were defined by ISO C without the first `_'. +type U_int8_t = X__uint8_t /* types.h:158:19 */ +type U_int16_t = X__uint16_t /* types.h:159:20 */ +type U_int32_t = X__uint32_t /* types.h:160:20 */ +type U_int64_t = X__uint64_t /* types.h:161:20 */ + +type Register_t = int32 /* types.h:164:13 */ + +// It also defines `fd_set' and the FD_* macros for `select'. +// `fd_set' type and related macros, and `select'/`pselect' declarations. +// Copyright (C) 1996-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// POSIX 1003.1g: 6.2 Select from File Descriptor Sets + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Get definition of needed basic types. +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Get __FD_* definitions. +// Copyright (C) 1997-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Determine the wordsize from the preprocessor defines. + +// Both x86-64 and x32 use the 64-bit system call interface. + +// Get sigset_t. + +type X__sigset_t = struct{ F__val [16]uint64 } /* __sigset_t.h:8:3 */ + +// A set of signals to be blocked, unblocked, or waited for. +type Sigset_t = X__sigset_t /* sigset_t.h:7:20 */ + +// Get definition of timer specification structures. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// A time value that is accurate to the nearest +// +// microsecond but also has a range of years. +type Timeval = struct { + Ftv_sec X__time_t + Ftv_usec X__suseconds_t +} /* struct_timeval.h:8:1 */ + +// NB: Include guard matches what uses. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Endian macros for string.h functions +// Copyright (C) 1992-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// POSIX.1b structure for a time value. This is like a `struct timeval' but +// +// has nanoseconds instead of microseconds. +type Timespec = struct { + Ftv_sec X__time_t + Ftv_nsec X__syscall_slong_t +} /* struct_timespec.h:10:1 */ + +type Suseconds_t = X__suseconds_t /* select.h:43:23 */ + +// The fd_set member is required to be an array of longs. +type X__fd_mask = int64 /* select.h:49:18 */ + +// Some versions of define this macros. +// It's easier to assume 8-bit bytes than to get CHAR_BIT. + +// fd_set for select and pselect. +type Fd_set = struct{ F__fds_bits [16]X__fd_mask } /* select.h:70:5 */ + +// Maximum number of file descriptors in `fd_set'. + +// Sometimes the fd_set member is assumed to have this type. +type Fd_mask = X__fd_mask /* select.h:77:19 */ + +// Define some inlines helping to catch common problems. + +type Blksize_t = X__blksize_t /* types.h:185:21 */ + +// Types from the Large File Support interface. +type Blkcnt_t = X__blkcnt64_t /* types.h:205:22 */ // Type to count number of disk blocks. +type Fsblkcnt_t = X__fsblkcnt64_t /* types.h:209:24 */ // Type to count file system blocks. +type Fsfilcnt_t = X__fsfilcnt64_t /* types.h:213:24 */ // Type to count file system inodes. + +// Now add the thread types. +// Declaration of common pthread types for all architectures. +// Copyright (C) 2017-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// For internal mutex and condition variable definitions. +// Common threading primitives definitions for both POSIX and C11. +// Copyright (C) 2017-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Arch-specific definitions. Each architecture must define the following +// macros to define the expected sizes of pthread data types: +// +// __SIZEOF_PTHREAD_ATTR_T - size of pthread_attr_t. +// __SIZEOF_PTHREAD_MUTEX_T - size of pthread_mutex_t. +// __SIZEOF_PTHREAD_MUTEXATTR_T - size of pthread_mutexattr_t. +// __SIZEOF_PTHREAD_COND_T - size of pthread_cond_t. +// __SIZEOF_PTHREAD_CONDATTR_T - size of pthread_condattr_t. +// __SIZEOF_PTHREAD_RWLOCK_T - size of pthread_rwlock_t. +// __SIZEOF_PTHREAD_RWLOCKATTR_T - size of pthread_rwlockattr_t. +// __SIZEOF_PTHREAD_BARRIER_T - size of pthread_barrier_t. +// __SIZEOF_PTHREAD_BARRIERATTR_T - size of pthread_barrierattr_t. +// +// The additional macro defines any constraint for the lock alignment +// inside the thread structures: +// +// __LOCK_ALIGNMENT - for internal lock/futex usage. +// +// Same idea but for the once locking primitive: +// +// __ONCE_ALIGNMENT - for pthread_once_t/once_flag definition. + +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Determine the wordsize from the preprocessor defines. + +// Both x86-64 and x32 use the 64-bit system call interface. + +// Common definition of pthread_mutex_t. + +type X__pthread_internal_list = struct { + F__prev uintptr + F__next uintptr +} /* thread-shared-types.h:49:9 */ + +// Type to count file system inodes. + +// Now add the thread types. +// Declaration of common pthread types for all architectures. +// Copyright (C) 2017-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// For internal mutex and condition variable definitions. +// Common threading primitives definitions for both POSIX and C11. +// Copyright (C) 2017-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Arch-specific definitions. Each architecture must define the following +// macros to define the expected sizes of pthread data types: +// +// __SIZEOF_PTHREAD_ATTR_T - size of pthread_attr_t. +// __SIZEOF_PTHREAD_MUTEX_T - size of pthread_mutex_t. +// __SIZEOF_PTHREAD_MUTEXATTR_T - size of pthread_mutexattr_t. +// __SIZEOF_PTHREAD_COND_T - size of pthread_cond_t. +// __SIZEOF_PTHREAD_CONDATTR_T - size of pthread_condattr_t. +// __SIZEOF_PTHREAD_RWLOCK_T - size of pthread_rwlock_t. +// __SIZEOF_PTHREAD_RWLOCKATTR_T - size of pthread_rwlockattr_t. +// __SIZEOF_PTHREAD_BARRIER_T - size of pthread_barrier_t. +// __SIZEOF_PTHREAD_BARRIERATTR_T - size of pthread_barrierattr_t. +// +// The additional macro defines any constraint for the lock alignment +// inside the thread structures: +// +// __LOCK_ALIGNMENT - for internal lock/futex usage. +// +// Same idea but for the once locking primitive: +// +// __ONCE_ALIGNMENT - for pthread_once_t/once_flag definition. + +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Determine the wordsize from the preprocessor defines. + +// Both x86-64 and x32 use the 64-bit system call interface. + +// Common definition of pthread_mutex_t. + +type X__pthread_list_t = X__pthread_internal_list /* thread-shared-types.h:53:3 */ + +type X__pthread_internal_slist = struct{ F__next uintptr } /* thread-shared-types.h:55:9 */ + +type X__pthread_slist_t = X__pthread_internal_slist /* thread-shared-types.h:58:3 */ + +// Arch-specific mutex definitions. A generic implementation is provided +// by sysdeps/nptl/bits/struct_mutex.h. If required, an architecture +// can override it by defining: +// +// 1. struct __pthread_mutex_s (used on both pthread_mutex_t and mtx_t +// definition). It should contains at least the internal members +// defined in the generic version. +// +// 2. __LOCK_ALIGNMENT for any extra attribute for internal lock used with +// atomic operations. +// +// 3. The macro __PTHREAD_MUTEX_INITIALIZER used for static initialization. +// It should initialize the mutex internal flag. + +// x86 internal mutex struct definitions. +// Copyright (C) 2019-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +type X__pthread_mutex_s = struct { + F__lock int32 + F__count uint32 + F__owner int32 + F__nusers uint32 + F__kind int32 + F__spins int16 + F__elision int16 + F__list X__pthread_list_t +} /* struct_mutex.h:22:1 */ + +// Arch-sepecific read-write lock definitions. A generic implementation is +// provided by struct_rwlock.h. If required, an architecture can override it +// by defining: +// +// 1. struct __pthread_rwlock_arch_t (used on pthread_rwlock_t definition). +// It should contain at least the internal members defined in the +// generic version. +// +// 2. The macro __PTHREAD_RWLOCK_INITIALIZER used for static initialization. +// It should initialize the rwlock internal type. + +// x86 internal rwlock struct definitions. +// Copyright (C) 2019-2020 Free Software Foundation, Inc. +// +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +type X__pthread_rwlock_arch_t = struct { + F__readers uint32 + F__writers uint32 + F__wrphase_futex uint32 + F__writers_futex uint32 + F__pad3 uint32 + F__pad4 uint32 + F__cur_writer int32 + F__shared int32 + F__rwelision int8 + F__pad1 [7]uint8 + F__pad2 uint64 + F__flags uint32 + F__ccgo_pad1 [4]byte +} /* struct_rwlock.h:23:1 */ + +// Common definition of pthread_cond_t. + +type X__pthread_cond_s = struct { + F__0 struct{ F__wseq uint64 } + F__8 struct{ F__g1_start uint64 } + F__g_refs [2]uint32 + F__g_size [2]uint32 + F__g1_orig_size uint32 + F__wrefs uint32 + F__g_signals [2]uint32 +} /* thread-shared-types.h:92:1 */ + +// Thread identifiers. The structure of the attribute type is not +// +// exposed on purpose. +type Pthread_t = uint64 /* pthreadtypes.h:27:27 */ + +// Data structures for mutex handling. The structure of the attribute +// +// type is not exposed on purpose. +type Pthread_mutexattr_t = struct { + F__ccgo_pad1 [0]uint32 + F__size [4]int8 +} /* pthreadtypes.h:36:3 */ + +// Data structure for condition variable handling. The structure of +// +// the attribute type is not exposed on purpose. +type Pthread_condattr_t = struct { + F__ccgo_pad1 [0]uint32 + F__size [4]int8 +} /* pthreadtypes.h:45:3 */ + +// Keys for thread-specific data +type Pthread_key_t = uint32 /* pthreadtypes.h:49:22 */ + +// Once-only execution +type Pthread_once_t = int32 /* pthreadtypes.h:53:30 */ + +type Pthread_attr_t1 = struct { + F__ccgo_pad1 [0]uint64 + F__size [56]int8 +} /* pthreadtypes.h:56:1 */ + +type Pthread_attr_t = Pthread_attr_t1 /* pthreadtypes.h:62:30 */ + +type Pthread_mutex_t = struct{ F__data X__pthread_mutex_s } /* pthreadtypes.h:72:3 */ + +type Pthread_cond_t = struct{ F__data X__pthread_cond_s } /* pthreadtypes.h:80:3 */ + +// Data structure for reader-writer lock variable handling. The +// +// structure of the attribute type is deliberately not exposed. +type Pthread_rwlock_t = struct{ F__data X__pthread_rwlock_arch_t } /* pthreadtypes.h:91:3 */ + +type Pthread_rwlockattr_t = struct { + F__ccgo_pad1 [0]uint64 + F__size [8]int8 +} /* pthreadtypes.h:97:3 */ + +// POSIX spinlock data type. +type Pthread_spinlock_t = int32 /* pthreadtypes.h:103:22 */ + +// POSIX barriers data type. The structure of the type is +// +// deliberately not exposed. +type Pthread_barrier_t = struct { + F__ccgo_pad1 [0]uint64 + F__size [32]int8 +} /* pthreadtypes.h:112:3 */ + +type Pthread_barrierattr_t = struct { + F__ccgo_pad1 [0]uint32 + F__size [4]int8 +} /* pthreadtypes.h:118:3 */ + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// `fd_set' type and related macros, and `select'/`pselect' declarations. +// Copyright (C) 1996-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// POSIX 1003.1g: 6.2 Select from File Descriptor Sets + +// Structure crudely representing a timezone. +// +// This is obsolete and should never be used. +type Timezone = struct { + Ftz_minuteswest int32 + Ftz_dsttime int32 +} /* time.h:52:1 */ + +// Type of the second argument to `getitimer' and +// +// the second and third arguments `setitimer'. +type Itimerval = struct { + Fit_interval struct { + Ftv_sec X__time_t + Ftv_usec X__suseconds_t + } + Fit_value struct { + Ftv_sec X__time_t + Ftv_usec X__suseconds_t + } +} /* time.h:105:1 */ + +type X__itimer_which_t = int32 /* time.h:118:13 */ + +// Convenience macros for operations on timevals. +// NOTE: `timercmp' does not work for >= or <=. + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// ISO C99 Standard: 7.23 Date and time + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Copyright (C) 1989-2020 Free Software Foundation, Inc. +// +// This file is part of GCC. +// +// GCC is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 3, or (at your option) +// any later version. +// +// GCC is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// Under Section 7 of GPL version 3, you are granted additional +// permissions described in the GCC Runtime Library Exception, version +// 3.1, as published by the Free Software Foundation. +// +// You should have received a copy of the GNU General Public License and +// a copy of the GCC Runtime Library Exception along with this program; +// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see +// . + +// ISO C Standard: 7.17 Common definitions + +// Any one of these symbols __need_* means that GNU libc +// wants us just to define one data type. So don't define +// the symbols that indicate this file's entire job has been done. + +// This avoids lossage on SunOS but only if stdtypes.h comes first. +// There's no way to win with the other order! Sun lossage. + +// Sequent's header files use _PTRDIFF_T_ in some conflicting way. +// Just ignore it. + +// On VxWorks, may have defined macros like +// _TYPE_size_t which will typedef size_t. fixincludes patched the +// vxTypesBase.h so that this macro is only defined if _GCC_SIZE_T is +// not defined, and so that defining this macro defines _GCC_SIZE_T. +// If we find that the macros are still defined at this point, we must +// invoke them so that the type is defined as expected. + +// In case nobody has defined these types, but we aren't running under +// GCC 2.00, make sure that __PTRDIFF_TYPE__, __SIZE_TYPE__, and +// __WCHAR_TYPE__ have reasonable values. This can happen if the +// parts of GCC is compiled by an older compiler, that actually +// include gstddef.h, such as collect2. + +// Signed type of difference of two pointers. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// Unsigned type of `sizeof' something. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// Wide character type. +// Locale-writers should change this as necessary to +// be big enough to hold unique values not between 0 and 127, +// and not (wchar_t) -1, for each defined multibyte character. + +// Define this type if we are doing the whole job, +// or if we want this type in particular. + +// A null pointer constant. + +// This defines CLOCKS_PER_SEC, which is the number of processor clock +// ticks per second, and possibly a number of other constants. +// System-dependent timing definitions. Linux version. +// Copyright (C) 1996-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// ISO/IEC 9899:1999 7.23.1: Components of time +// The macro `CLOCKS_PER_SEC' is an expression with type `clock_t' that is +// the number per second of the value returned by the `clock' function. +// CAE XSH, Issue 4, Version 2: +// The value of CLOCKS_PER_SEC is required to be 1 million on all +// XSI-conformant systems. + +// Identifier for system-wide realtime clock. +// Monotonic system-wide clock. +// High-resolution timer from the CPU. +// Thread-specific CPU-time clock. +// Monotonic system-wide clock, not adjusted for frequency scaling. +// Identifier for system-wide realtime clock, updated only on ticks. +// Monotonic system-wide clock, updated only on ticks. +// Monotonic system-wide clock that includes time spent in suspension. +// Like CLOCK_REALTIME but also wakes suspended system. +// Like CLOCK_BOOTTIME but also wakes suspended system. +// Like CLOCK_REALTIME but in International Atomic Time. + +// Flag to indicate time is absolute. + +// Many of the typedefs and structs whose official home is this header +// may also need to be defined by other headers. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// ISO C `broken-down time' structure. +type Tm = struct { + Ftm_sec int32 + Ftm_min int32 + Ftm_hour int32 + Ftm_mday int32 + Ftm_mon int32 + Ftm_year int32 + Ftm_wday int32 + Ftm_yday int32 + Ftm_isdst int32 + F__ccgo_pad1 [4]byte + Ftm_gmtoff int64 + Ftm_zone uintptr +} /* struct_tm.h:7:1 */ + +// NB: Include guard matches what uses. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// NB: Include guard matches what uses. + +// POSIX.1b structure for timer start values and intervals. +type Itimerspec = struct { + Fit_interval struct { + Ftv_sec X__time_t + Ftv_nsec X__syscall_slong_t + } + Fit_value struct { + Ftv_sec X__time_t + Ftv_nsec X__syscall_slong_t + } +} /* struct_itimerspec.h:8:1 */ + +// Definition of locale_t. +// Copyright (C) 2017-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Definition of struct __locale_struct and __locale_t. +// Copyright (C) 1997-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// Contributed by Ulrich Drepper , 1997. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// POSIX.1-2008: the locale_t type, representing a locale context +// (implementation-namespace version). This type should be treated +// as opaque by applications; some details are exposed for the sake of +// efficiency in e.g. ctype functions. + +type X__locale_struct = struct { + F__locales [13]uintptr + F__ctype_b uintptr + F__ctype_tolower uintptr + F__ctype_toupper uintptr + F__names [13]uintptr +} /* __locale_t.h:28:1 */ + +type X__locale_t = uintptr /* __locale_t.h:42:32 */ + +type Locale_t = X__locale_t /* locale_t.h:24:20 */ + +type Uuid_t = [16]uint8 /* uuid.h:44:23 */ + +var _ int8 /* gen.c:2:13: */ diff --git a/vendor/modernc.org/libc/wctype/capi_illumos_amd64.go b/vendor/modernc.org/libc/wctype/capi_illumos_amd64.go new file mode 100644 index 000000000..da3ab522d --- /dev/null +++ b/vendor/modernc.org/libc/wctype/capi_illumos_amd64.go @@ -0,0 +1,5 @@ +// Code generated by 'ccgo wctype/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o wctype/wctype_illumos_amd64.go -pkgname wctype', DO NOT EDIT. + +package wctype + +var CAPI = map[string]struct{}{} diff --git a/vendor/modernc.org/libc/wctype/capi_linux_loong64.go b/vendor/modernc.org/libc/wctype/capi_linux_loong64.go new file mode 100644 index 000000000..397806877 --- /dev/null +++ b/vendor/modernc.org/libc/wctype/capi_linux_loong64.go @@ -0,0 +1,5 @@ +// Code generated by 'ccgo wctype/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o wctype/wctype_linux_loong64.go -pkgname wctype', DO NOT EDIT. + +package wctype + +var CAPI = map[string]struct{}{} diff --git a/vendor/modernc.org/libc/wctype/capi_linux_mips64le.go b/vendor/modernc.org/libc/wctype/capi_linux_mips64le.go new file mode 100644 index 000000000..e1138ccd5 --- /dev/null +++ b/vendor/modernc.org/libc/wctype/capi_linux_mips64le.go @@ -0,0 +1,5 @@ +// Code generated by 'ccgo wctype/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o wctype/wctype_linux_amd64.go -pkgname wctype', DO NOT EDIT. + +package wctype + +var CAPI = map[string]struct{}{} diff --git a/vendor/modernc.org/libc/wctype/wctype_illumos_amd64.go b/vendor/modernc.org/libc/wctype/wctype_illumos_amd64.go new file mode 100644 index 000000000..53a659c43 --- /dev/null +++ b/vendor/modernc.org/libc/wctype/wctype_illumos_amd64.go @@ -0,0 +1,1763 @@ +// Code generated by 'ccgo wctype/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o wctype/wctype_illumos_amd64.go -pkgname wctype', DO NOT EDIT. + +package wctype + +import ( + "math" + "reflect" + "sync/atomic" + "unsafe" +) + +var _ = math.Pi +var _ reflect.Kind +var _ atomic.Value +var _ unsafe.Pointer + +const ( + BUFSIZ = 1024 // stdio_iso.h:124:1: + CLOCKS_PER_SEC = 1000000 // time_iso.h:78:1: + EOF = -1 // stdio_iso.h:152:1: + FILENAME_MAX = 1024 // stdio_iso.h:156:1: + FOPEN_MAX = 20 // stdio_iso.h:155:1: + L_ctermid = 9 // stdio.h:207:1: + L_cuserid = 9 // stdio.h:211:1: + L_tmpnam = 25 // stdio_iso.h:163:1: + P_tmpdir = "/var/tmp/" // stdio.h:220:1: + SEEK_CUR = 1 // stdio_iso.h:159:1: + SEEK_END = 2 // stdio_iso.h:160:1: + SEEK_SET = 0 // stdio_iso.h:158:1: + TMP_MAX = 17576 // stdio_iso.h:161:1: + WCHAR_MAX = 2147483647 // wchar_iso.h:125:1: + WCHAR_MIN = -2147483648 // wchar_iso.h:128:1: + X_ALIGNMENT_REQUIRED = 1 // isa_defs.h:262:1: + X_ANSI_STDDEF_H = 0 // stddef.h:42:1: + X_B = 0x00000040 // ctype_iso.h:59:1: + X_BIT_FIELDS_LTOH = 0 // isa_defs.h:245:1: + X_BOOL_ALIGNMENT = 1 // isa_defs.h:248:1: + X_BSD_PTRDIFF_T_ = 0 // stddef.h:137:1: + X_C = 0x00000020 // ctype_iso.h:58:1: + X_CHAR_ALIGNMENT = 1 // isa_defs.h:249:1: + X_CHAR_IS_SIGNED = 0 // isa_defs.h:247:1: + X_CLOCK_T = 0 // time_iso.h:69:1: + X_CTYPE_H = 0 // ctype.h:34:1: + X_DMA_USES_PHYSADDR = 0 // isa_defs.h:281:1: + X_DONT_USE_1275_GENERIC_NAMES = 0 // isa_defs.h:287:1: + X_DOUBLE_ALIGNMENT = 8 // isa_defs.h:256:1: + X_DOUBLE_COMPLEX_ALIGNMENT = 8 // isa_defs.h:257:1: + X_DTRACE_VERSION = 1 // feature_tests.h:490:1: + X_E1 = 0x00000100 // wctype_iso.h:112:1: + X_E10 = 0x00020000 // wctype_iso.h:122:1: + X_E11 = 0x00040000 // wctype_iso.h:123:1: + X_E12 = 0x00080000 // wctype_iso.h:124:1: + X_E13 = 0x00100000 // wctype_iso.h:125:1: + X_E14 = 0x00200000 // wctype_iso.h:126:1: + X_E15 = 0x00400000 // wctype_iso.h:127:1: + X_E16 = 0x00800000 // wctype_iso.h:128:1: + X_E17 = 0x01000000 // wctype_iso.h:129:1: + X_E18 = 0x02000000 // wctype_iso.h:130:1: + X_E19 = 0x04000000 // wctype_iso.h:131:1: + X_E2 = 0x00000200 // wctype_iso.h:113:1: + X_E20 = 0x08000000 // wctype_iso.h:132:1: + X_E21 = 0x10000000 // wctype_iso.h:133:1: + X_E22 = 0x20000000 // wctype_iso.h:134:1: + X_E23 = 0x40000000 // wctype_iso.h:135:1: + X_E24 = 0x80000000 // wctype_iso.h:136:1: + X_E3 = 0x00000400 // wctype_iso.h:114:1: + X_E4 = 0x00000800 // wctype_iso.h:115:1: + X_E5 = 0x00001000 // wctype_iso.h:116:1: + X_E6 = 0x00002000 // wctype_iso.h:117:1: + X_E7 = 0x00004000 // wctype_iso.h:118:1: + X_E8 = 0x00008000 // wctype_iso.h:119:1: + X_E9 = 0x00010000 // wctype_iso.h:121:1: + X_FILEDEFED = 0 // stdio_iso.h:101:1: + X_FILE_OFFSET_BITS = 64 // :25:1: + X_FIRMWARE_NEEDS_FDISK = 0 // isa_defs.h:282:1: + X_FLOAT_ALIGNMENT = 4 // isa_defs.h:252:1: + X_FLOAT_COMPLEX_ALIGNMENT = 4 // isa_defs.h:253:1: + X_GCC_MAX_ALIGN_T = 0 // stddef.h:420:1: + X_GCC_PTRDIFF_T = 0 // stddef.h:139:1: + X_GCC_WCHAR_T = 0 // stddef.h:280:1: + X_HAVE_CPUID_INSN = 0 // isa_defs.h:288:1: + X_IEEE_754 = 0 // isa_defs.h:246:1: + X_INT_ALIGNMENT = 4 // isa_defs.h:251:1: + X_IOEOF = 0020 // stdio_iso.h:143:1: + X_IOERR = 0040 // stdio_iso.h:144:1: + X_IOFBF = 0000 // stdio_iso.h:140:1: + X_IOLBF = 0100 // stdio_iso.h:141:1: + X_IOMYBUF = 0010 // stdio_iso.h:149:1: + X_IONBF = 0004 // stdio_iso.h:142:1: + X_IOREAD = 0001 // stdio_iso.h:146:1: + X_IORW = 0200 // stdio_iso.h:148:1: + X_IOWRT = 0002 // stdio_iso.h:147:1: + X_ISALNUM = 16388 // ctype_iso.h:73:1: + X_ISALPHA = 0x00004000 // ctype_iso.h:71:1: + X_ISBLANK = 64 // ctype_iso.h:68:1: + X_ISCNTRL = 32 // ctype_iso.h:67:1: + X_ISDIGIT = 4 // ctype_iso.h:64:1: + X_ISGRAPH = 0x00002000 // ctype_iso.h:70:1: + X_ISLOWER = 2 // ctype_iso.h:63:1: + X_ISO_CPP_14882_1998 = 0 // feature_tests.h:466:1: + X_ISO_CTYPE_ISO_H = 0 // ctype_iso.h:45:1: + X_ISO_C_9899_1999 = 0 // feature_tests.h:472:1: + X_ISO_C_9899_2011 = 0 // feature_tests.h:478:1: + X_ISO_STDIO_C99_H = 0 // stdio_c99.h:41:1: + X_ISO_STDIO_ISO_H = 0 // stdio_iso.h:59:1: + X_ISO_TIME_ISO_H = 0 // time_iso.h:46:1: + X_ISO_WCHAR_C99_H = 0 // wchar_c99.h:41:1: + X_ISO_WCHAR_ISO_H = 0 // wchar_iso.h:43:1: + X_ISO_WCTYPE_ISO_H = 0 // wctype_iso.h:46:1: + X_ISPRINT = 0x00008000 // ctype_iso.h:72:1: + X_ISPUNCT = 16 // ctype_iso.h:66:1: + X_ISSPACE = 8 // ctype_iso.h:65:1: + X_ISUPPER = 1 // ctype_iso.h:62:1: + X_ISXDIGIT = 128 // ctype_iso.h:69:1: + X_L = 0x00000002 // ctype_iso.h:54:1: + X_LARGEFILE64_SOURCE = 1 // feature_tests.h:231:1: + X_LARGEFILE_SOURCE = 1 // feature_tests.h:235:1: + X_LITTLE_ENDIAN = 0 // isa_defs.h:242:1: + X_LOCALE_T = 0 // ctype.h:94:1: + X_LONGLONG_TYPE = 0 // feature_tests.h:412:1: + X_LONG_ALIGNMENT = 8 // isa_defs.h:254:1: + X_LONG_DOUBLE_ALIGNMENT = 16 // isa_defs.h:258:1: + X_LONG_DOUBLE_COMPLEX_ALIGNMENT = 16 // isa_defs.h:259:1: + X_LONG_LONG_ALIGNMENT = 8 // isa_defs.h:255:1: + X_LONG_LONG_ALIGNMENT_32 = 4 // isa_defs.h:268:1: + X_LONG_LONG_LTOH = 0 // isa_defs.h:244:1: + X_LP64 = 1 // :286:1: + X_MAX_ALIGNMENT = 16 // isa_defs.h:261:1: + X_MBSTATET_H = 0 // wchar_impl.h:39:1: + X_MBSTATE_T = 0 // wchar_iso.h:133:1: + X_MULTI_DATAMODEL = 0 // isa_defs.h:279:1: + X_N = 0x00000004 // ctype_iso.h:55:1: + X_NFILE = 20 // stdio_iso.h:135:1: + X_NORETURN_KYWD = 0 // feature_tests.h:448:1: + X_OFF_T = 0 // stdio.h:170:1: + X_P = 0x00000010 // ctype_iso.h:57:1: + X_POINTER_ALIGNMENT = 8 // isa_defs.h:260:1: + X_PSM_MODULES = 0 // isa_defs.h:284:1: + X_PTRDIFF_T = 0 // stddef.h:132:1: + X_PTRDIFF_T_ = 0 // stddef.h:136:1: + X_PTRDIFF_T_DECLARED = 0 // stddef.h:140:1: + X_RESTRICT_KYWD = 0 // feature_tests.h:435:1: + X_RTC_CONFIG = 0 // isa_defs.h:285:1: + X_S = 0x00000008 // ctype_iso.h:56:1: + X_SBFSIZ = 8 // stdio_iso.h:138:1: + X_SHORT_ALIGNMENT = 2 // isa_defs.h:250:1: + X_SIZE_T = 0 // time_iso.h:60:1: + X_SOFT_HOSTID = 0 // isa_defs.h:286:1: + X_SSIZE_T = 0 // stdio.h:268:1: + X_STACK_GROWS_DOWNWARD = 0 // isa_defs.h:243:1: + X_STDC_C11 = 0 // feature_tests.h:165:1: + X_STDC_C99 = 0 // feature_tests.h:169:1: + X_STDDEF_H = 0 // stddef.h:39:1: + X_STDDEF_H_ = 0 // stddef.h:40:1: + X_STDIO_H = 0 // stdio.h:44:1: + X_STDIO_IMPL_H = 0 // stdio_impl.h:28:1: + X_STDIO_TAG_H = 0 // stdio_tag.h:28:1: + X_SUNOS_VTOC_16 = 0 // isa_defs.h:280:1: + X_SYS_CCOMPILE_H = 0 // ccompile.h:32:1: + X_SYS_FEATURE_TESTS_H = 0 // feature_tests.h:41:1: + X_SYS_ISA_DEFS_H = 0 // isa_defs.h:30:1: + X_SYS_NULL_H = 0 // null.h:17:1: + X_SYS_VA_LIST_H = 0 // va_list.h:34:1: + X_TIME_T = 0 // time_iso.h:74:1: + X_T_PTRDIFF = 0 // stddef.h:134:1: + X_T_PTRDIFF_ = 0 // stddef.h:133:1: + X_T_WCHAR = 0 // stddef.h:271:1: + X_T_WCHAR_ = 0 // stddef.h:270:1: + X_U = 0x00000001 // ctype_iso.h:53:1: + X_WCHAR_H = 0 // wchar.h:37:1: + X_WCHAR_IMPL_H = 0 // wchar_impl.h:28:1: + X_WCHAR_T = 0 // stddef.h:269:1: + X_WCHAR_T_ = 0 // stddef.h:273:1: + X_WCHAR_T_DECLARED = 0 // stddef.h:281:1: + X_WCHAR_T_DEFINED = 0 // stddef.h:276:1: + X_WCHAR_T_DEFINED_ = 0 // stddef.h:275:1: + X_WCHAR_T_H = 0 // stddef.h:277:1: + X_WCTYPE_H = 0 // wctype.h:34:1: + X_WCTYPE_T = 0 // wctype_iso.h:68:1: + X_WINT_T = 0 // wctype_iso.h:59:1: + X_X = 0x00000080 // ctype_iso.h:60:1: + X_XOPEN_VERSION = 3 // feature_tests.h:392:1: + Sun = 1 // :172:1: + Unix = 1 // :175:1: +) + +type Ptrdiff_t = int64 /* :3:26 */ + +type Size_t = uint64 /* :9:23 */ + +type Wchar_t = int32 /* :15:24 */ + +type X__int128_t = struct { + Flo int64 + Fhi int64 +} /* :21:43 */ // must match modernc.org/mathutil.Int128 +type X__uint128_t = struct { + Flo uint64 + Fhi uint64 +} /* :22:44 */ // must match modernc.org/mathutil.Int128 + +type X__builtin_va_list = uintptr /* :46:14 */ +type X__float128 = float64 /* :47:21 */ + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// wctype.h 1.13 89/11/02 SMI; JLE +// from AT&T JAE 2.1 +// definitions for international functions + +// Copyright 2015 Garrett D'Amore +// +// Copyright 2003 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2015 EveryCity Ltd. All rights reserved. +// Copyright 2019 Joyent, Inc. + +// This file contains definitions designed to enable different compilers +// to be used harmoniously on Solaris systems. + +// Allow for version tests for compiler bugs and features. + +// analogous to lint's PRINTFLIKEn + +// Handle the kernel printf routines that can take '%b' too + +// This one's pretty obvious -- the function never returns + +// The function is 'extern inline' and expects GNU C89 behaviour, not C99 +// behaviour. +// +// Should only be used on 'extern inline' definitions for GCC. + +// The function has control flow such that it may return multiple times (in +// the manner of setjmp or vfork) + +// This is an appropriate label for functions that do not +// modify their arguments, e.g. strlen() + +// This is a stronger form of __pure__. Can be used for functions +// that do not modify their arguments and don't depend on global +// memory. + +// This attribute, attached to a variable, means that the variable is meant to +// be possibly unused. GCC will not produce a warning for this variable. + +// Shorthand versions for readability + +// In release build, disable warnings about variables +// which are used only for debugging. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2016 Joyent, Inc. + +// This header file serves to group a set of well known defines and to +// set these for each instruction set architecture. These defines may +// be divided into two groups; characteristics of the processor and +// implementation choices for Solaris on a processor. +// +// Processor Characteristics: +// +// _LITTLE_ENDIAN / _BIG_ENDIAN: +// The natural byte order of the processor. A pointer to an int points +// to the least/most significant byte of that int. +// +// _STACK_GROWS_UPWARD / _STACK_GROWS_DOWNWARD: +// The processor specific direction of stack growth. A push onto the +// stack increases/decreases the stack pointer, so it stores data at +// successively higher/lower addresses. (Stackless machines ignored +// without regrets). +// +// _LONG_LONG_HTOL / _LONG_LONG_LTOH: +// A pointer to a long long points to the most/least significant long +// within that long long. +// +// _BIT_FIELDS_HTOL / _BIT_FIELDS_LTOH: +// The C compiler assigns bit fields from the high/low to the low/high end +// of an int (most to least significant vs. least to most significant). +// +// _IEEE_754: +// The processor (or supported implementations of the processor) +// supports the ieee-754 floating point standard. No other floating +// point standards are supported (or significant). Any other supported +// floating point formats are expected to be cased on the ISA processor +// symbol. +// +// _CHAR_IS_UNSIGNED / _CHAR_IS_SIGNED: +// The C Compiler implements objects of type `char' as `unsigned' or +// `signed' respectively. This is really an implementation choice of +// the compiler writer, but it is specified in the ABI and tends to +// be uniform across compilers for an instruction set architecture. +// Hence, it has the properties of a processor characteristic. +// +// _CHAR_ALIGNMENT / _SHORT_ALIGNMENT / _INT_ALIGNMENT / _LONG_ALIGNMENT / +// _LONG_LONG_ALIGNMENT / _DOUBLE_ALIGNMENT / _LONG_DOUBLE_ALIGNMENT / +// _POINTER_ALIGNMENT / _FLOAT_ALIGNMENT: +// The ABI defines alignment requirements of each of the primitive +// object types. Some, if not all, may be hardware requirements as +// well. The values are expressed in "byte-alignment" units. +// +// _MAX_ALIGNMENT: +// The most stringent alignment requirement as specified by the ABI. +// Equal to the maximum of all the above _XXX_ALIGNMENT values. +// +// _MAX_ALIGNMENT_TYPE: +// The name of the C type that has the value descried in _MAX_ALIGNMENT. +// +// _ALIGNMENT_REQUIRED: +// True or false (1 or 0) whether or not the hardware requires the ABI +// alignment. +// +// _LONG_LONG_ALIGNMENT_32 +// The 32-bit ABI supported by a 64-bit kernel may have different +// alignment requirements for primitive object types. The value of this +// identifier is expressed in "byte-alignment" units. +// +// _HAVE_CPUID_INSN +// This indicates that the architecture supports the 'cpuid' +// instruction as defined by Intel. (Intel allows other vendors +// to extend the instruction for their own purposes.) +// +// +// Implementation Choices: +// +// _ILP32 / _LP64: +// This specifies the compiler data type implementation as specified in +// the relevant ABI. The choice between these is strongly influenced +// by the underlying hardware, but is not absolutely tied to it. +// Currently only two data type models are supported: +// +// _ILP32: +// Int/Long/Pointer are 32 bits. This is the historical UNIX +// and Solaris implementation. Due to its historical standing, +// this is the default case. +// +// _LP64: +// Long/Pointer are 64 bits, Int is 32 bits. This is the chosen +// implementation for 64-bit ABIs such as SPARC V9. +// +// _I32LPx: +// A compilation environment where 'int' is 32-bit, and +// longs and pointers are simply the same size. +// +// In all cases, Char is 8 bits and Short is 16 bits. +// +// _SUNOS_VTOC_8 / _SUNOS_VTOC_16 / _SVR4_VTOC_16: +// This specifies the form of the disk VTOC (or label): +// +// _SUNOS_VTOC_8: +// This is a VTOC form which is upwardly compatible with the +// SunOS 4.x disk label and allows 8 partitions per disk. +// +// _SUNOS_VTOC_16: +// In this format the incore vtoc image matches the ondisk +// version. It allows 16 slices per disk, and is not +// compatible with the SunOS 4.x disk label. +// +// Note that these are not the only two VTOC forms possible and +// additional forms may be added. One possible form would be the +// SVr4 VTOC form. The symbol for that is reserved now, although +// it is not implemented. +// +// _SVR4_VTOC_16: +// This VTOC form is compatible with the System V Release 4 +// VTOC (as implemented on the SVr4 Intel and 3b ports) with +// 16 partitions per disk. +// +// +// _DMA_USES_PHYSADDR / _DMA_USES_VIRTADDR +// This describes the type of addresses used by system DMA: +// +// _DMA_USES_PHYSADDR: +// This type of DMA, used in the x86 implementation, +// requires physical addresses for DMA buffers. The 24-bit +// addresses used by some legacy boards is the source of the +// "low-memory" (<16MB) requirement for some devices using DMA. +// +// _DMA_USES_VIRTADDR: +// This method of DMA allows the use of virtual addresses for +// DMA transfers. +// +// _FIRMWARE_NEEDS_FDISK / _NO_FDISK_PRESENT +// This indicates the presence/absence of an fdisk table. +// +// _FIRMWARE_NEEDS_FDISK +// The fdisk table is required by system firmware. If present, +// it allows a disk to be subdivided into multiple fdisk +// partitions, each of which is equivalent to a separate, +// virtual disk. This enables the co-existence of multiple +// operating systems on a shared hard disk. +// +// _NO_FDISK_PRESENT +// If the fdisk table is absent, it is assumed that the entire +// media is allocated for a single operating system. +// +// _HAVE_TEM_FIRMWARE +// Defined if this architecture has the (fallback) option of +// using prom_* calls for doing I/O if a suitable kernel driver +// is not available to do it. +// +// _DONT_USE_1275_GENERIC_NAMES +// Controls whether or not device tree node names should +// comply with the IEEE 1275 "Generic Names" Recommended +// Practice. With _DONT_USE_GENERIC_NAMES, device-specific +// names identifying the particular device will be used. +// +// __i386_COMPAT +// This indicates whether the i386 ABI is supported as a *non-native* +// mode for the platform. When this symbol is defined: +// - 32-bit xstat-style system calls are enabled +// - 32-bit xmknod-style system calls are enabled +// - 32-bit system calls use i386 sizes -and- alignments +// +// Note that this is NOT defined for the i386 native environment! +// +// __x86 +// This is ONLY a synonym for defined(__i386) || defined(__amd64) +// which is useful only insofar as these two architectures share +// common attributes. Analogous to __sparc. +// +// _PSM_MODULES +// This indicates whether or not the implementation uses PSM +// modules for processor support, reading /etc/mach from inside +// the kernel to extract a list. +// +// _RTC_CONFIG +// This indicates whether or not the implementation uses /etc/rtc_config +// to configure the real-time clock in the kernel. +// +// _UNIX_KRTLD +// This indicates that the implementation uses a dynamically +// linked unix + krtld to form the core kernel image at boot +// time, or (in the absence of this symbol) a prelinked kernel image. +// +// _OBP +// This indicates the firmware interface is OBP. +// +// _SOFT_HOSTID +// This indicates that the implementation obtains the hostid +// from the file /etc/hostid, rather than from hardware. + +// The following set of definitions characterize Solaris on AMD's +// 64-bit systems. + +// Define the appropriate "processor characteristics" + +// Different alignment constraints for the i386 ABI in compatibility mode + +// Define the appropriate "implementation choices". + +// The feature test macro __i386 is generic for all processors implementing +// the Intel 386 instruction set or a superset of it. Specifically, this +// includes all members of the 386, 486, and Pentium family of processors. + +// Values of _POSIX_C_SOURCE +// +// undefined not a POSIX compilation +// 1 POSIX.1-1990 compilation +// 2 POSIX.2-1992 compilation +// 199309L POSIX.1b-1993 compilation (Real Time) +// 199506L POSIX.1c-1995 compilation (POSIX Threads) +// 200112L POSIX.1-2001 compilation (Austin Group Revision) +// 200809L POSIX.1-2008 compilation + +// The feature test macros __XOPEN_OR_POSIX, _STRICT_STDC, _STRICT_SYMBOLS, +// and _STDC_C99 are Sun implementation specific macros created in order to +// compress common standards specified feature test macros for easier reading. +// These macros should not be used by the application developer as +// unexpected results may occur. Instead, the user should reference +// standards(7) for correct usage of the standards feature test macros. +// +// __XOPEN_OR_POSIX Used in cases where a symbol is defined by both +// X/Open or POSIX or in the negative, when neither +// X/Open or POSIX defines a symbol. +// +// _STRICT_STDC __STDC__ is specified by the C Standards and defined +// by the compiler. For Sun compilers the value of +// __STDC__ is either 1, 0, or not defined based on the +// compilation mode (see cc(1)). When the value of +// __STDC__ is 1 and in the absence of any other feature +// test macros, the namespace available to the application +// is limited to only those symbols defined by the C +// Standard. _STRICT_STDC provides a more readable means +// of identifying symbols defined by the standard, or in +// the negative, symbols that are extensions to the C +// Standard. See additional comments for GNU C differences. +// +// _STDC_C99 __STDC_VERSION__ is specified by the C standards and +// defined by the compiler and indicates the version of +// the C standard. A value of 199901L indicates a +// compiler that complies with ISO/IEC 9899:1999, other- +// wise known as the C99 standard. +// +// _STDC_C11 Like _STDC_C99 except that the value of __STDC_VERSION__ +// is 201112L indicating a compiler that compiles with +// ISO/IEC 9899:2011, otherwise known as the C11 standard. +// +// _STRICT_SYMBOLS Used in cases where symbol visibility is restricted +// by the standards, and the user has not explicitly +// relaxed the strictness via __EXTENSIONS__. + +// ISO/IEC 9899:1990 and it's revisions, ISO/IEC 9899:1999 and ISO/IEC +// 99899:2011 specify the following predefined macro name: +// +// __STDC__ The integer constant 1, intended to indicate a conforming +// implementation. +// +// Furthermore, a strictly conforming program shall use only those features +// of the language and library specified in these standards. A conforming +// implementation shall accept any strictly conforming program. +// +// Based on these requirements, Sun's C compiler defines __STDC__ to 1 for +// strictly conforming environments and __STDC__ to 0 for environments that +// use ANSI C semantics but allow extensions to the C standard. For non-ANSI +// C semantics, Sun's C compiler does not define __STDC__. +// +// The GNU C project interpretation is that __STDC__ should always be defined +// to 1 for compilation modes that accept ANSI C syntax regardless of whether +// or not extensions to the C standard are used. Violations of conforming +// behavior are conditionally flagged as warnings via the use of the +// -pedantic option. In addition to defining __STDC__ to 1, the GNU C +// compiler also defines __STRICT_ANSI__ as a means of specifying strictly +// conforming environments using the -ansi or -std= options. +// +// In the absence of any other compiler options, Sun and GNU set the value +// of __STDC__ as follows when using the following options: +// +// Value of __STDC__ __STRICT_ANSI__ +// +// cc -Xa (default) 0 undefined +// cc -Xt (transitional) 0 undefined +// cc -Xc (strictly conforming) 1 undefined +// cc -Xs (K&R C) undefined undefined +// +// gcc (default) 1 undefined +// gcc -ansi, -std={c89, c99,...) 1 defined +// gcc -traditional (K&R) undefined undefined +// +// The default compilation modes for Sun C compilers versus GNU C compilers +// results in a differing value for __STDC__ which results in a more +// restricted namespace when using Sun compilers. To allow both GNU and Sun +// interpretations to peacefully co-exist, we use the following Sun +// implementation _STRICT_STDC_ macro: + +// Compiler complies with ISO/IEC 9899:1999 or ISO/IEC 9989:2011 + +// Use strict symbol visibility. + +// This is a variant of _STRICT_SYMBOLS that is meant to cover headers that are +// governed by POSIX, but have not been governed by ISO C. One can go two ways +// on what should happen if an application actively includes (not transitively) +// a header that isn't part of the ISO C spec, we opt to say that if someone has +// gone out of there way then they're doing it for a reason and that is an act +// of non-compliance and therefore it's not up to us to hide away every symbol. +// +// In general, prefer using _STRICT_SYMBOLS, but this is here in particular for +// cases where in the past we have only used a POSIX related check and we don't +// wish to make something stricter. Often applications are relying on the +// ability to, or more realistically unwittingly, have _STRICT_STDC declared and +// still use these interfaces. + +// Large file interfaces: +// +// _LARGEFILE_SOURCE +// 1 large file-related additions to POSIX +// interfaces requested (fseeko, etc.) +// _LARGEFILE64_SOURCE +// 1 transitional large-file-related interfaces +// requested (seek64, stat64, etc.) +// +// The corresponding announcement macros are respectively: +// _LFS_LARGEFILE +// _LFS64_LARGEFILE +// (These are set in .) +// +// Requesting _LARGEFILE64_SOURCE implies requesting _LARGEFILE_SOURCE as +// well. +// +// The large file interfaces are made visible regardless of the initial values +// of the feature test macros under certain circumstances: +// - If no explicit standards-conforming environment is requested (neither +// of _POSIX_SOURCE nor _XOPEN_SOURCE is defined and the value of +// __STDC__ does not imply standards conformance). +// - Extended system interfaces are explicitly requested (__EXTENSIONS__ +// is defined). +// - Access to in-kernel interfaces is requested (_KERNEL or _KMEMUSER is +// defined). (Note that this dependency is an artifact of the current +// kernel implementation and may change in future releases.) + +// Large file compilation environment control: +// +// The setting of _FILE_OFFSET_BITS controls the size of various file-related +// types and governs the mapping between file-related source function symbol +// names and the corresponding binary entry points. +// +// In the 32-bit environment, the default value is 32; if not set, set it to +// the default here, to simplify tests in other headers. +// +// In the 64-bit compilation environment, the only value allowed is 64. + +// Use of _XOPEN_SOURCE +// +// The following X/Open specifications are supported: +// +// X/Open Portability Guide, Issue 3 (XPG3) +// X/Open CAE Specification, Issue 4 (XPG4) +// X/Open CAE Specification, Issue 4, Version 2 (XPG4v2) +// X/Open CAE Specification, Issue 5 (XPG5) +// Open Group Technical Standard, Issue 6 (XPG6), also referred to as +// IEEE Std. 1003.1-2001 and ISO/IEC 9945:2002. +// Open Group Technical Standard, Issue 7 (XPG7), also referred to as +// IEEE Std. 1003.1-2008 and ISO/IEC 9945:2009. +// +// XPG4v2 is also referred to as UNIX 95 (SUS or SUSv1). +// XPG5 is also referred to as UNIX 98 or the Single Unix Specification, +// Version 2 (SUSv2) +// XPG6 is the result of a merge of the X/Open and POSIX specifications +// and as such is also referred to as IEEE Std. 1003.1-2001 in +// addition to UNIX 03 and SUSv3. +// XPG7 is also referred to as UNIX 08 and SUSv4. +// +// When writing a conforming X/Open application, as per the specification +// requirements, the appropriate feature test macros must be defined at +// compile time. These are as follows. For more info, see standards(7). +// +// Feature Test Macro Specification +// ------------------------------------------------ ------------- +// _XOPEN_SOURCE XPG3 +// _XOPEN_SOURCE && _XOPEN_VERSION = 4 XPG4 +// _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED = 1 XPG4v2 +// _XOPEN_SOURCE = 500 XPG5 +// _XOPEN_SOURCE = 600 (or POSIX_C_SOURCE=200112L) XPG6 +// _XOPEN_SOURCE = 700 (or POSIX_C_SOURCE=200809L) XPG7 +// +// In order to simplify the guards within the headers, the following +// implementation private test macros have been created. Applications +// must NOT use these private test macros as unexpected results will +// occur. +// +// Note that in general, the use of these private macros is cumulative. +// For example, the use of _XPG3 with no other restrictions on the X/Open +// namespace will make the symbols visible for XPG3 through XPG6 +// compilation environments. The use of _XPG4_2 with no other X/Open +// namespace restrictions indicates that the symbols were introduced in +// XPG4v2 and are therefore visible for XPG4v2 through XPG6 compilation +// environments, but not for XPG3 or XPG4 compilation environments. +// +// _XPG3 X/Open Portability Guide, Issue 3 (XPG3) +// _XPG4 X/Open CAE Specification, Issue 4 (XPG4) +// _XPG4_2 X/Open CAE Specification, Issue 4, Version 2 (XPG4v2/UNIX 95/SUS) +// _XPG5 X/Open CAE Specification, Issue 5 (XPG5/UNIX 98/SUSv2) +// _XPG6 Open Group Technical Standard, Issue 6 (XPG6/UNIX 03/SUSv3) +// _XPG7 Open Group Technical Standard, Issue 7 (XPG7/UNIX 08/SUSv4) + +// X/Open Portability Guide, Issue 3 + +// _XOPEN_VERSION is defined by the X/Open specifications and is not +// normally defined by the application, except in the case of an XPG4 +// application. On the implementation side, _XOPEN_VERSION defined with +// the value of 3 indicates an XPG3 application. _XOPEN_VERSION defined +// with the value of 4 indicates an XPG4 or XPG4v2 (UNIX 95) application. +// _XOPEN_VERSION defined with a value of 500 indicates an XPG5 (UNIX 98) +// application and with a value of 600 indicates an XPG6 (UNIX 03) +// application and with a value of 700 indicates an XPG7 (UNIX 08). +// The appropriate version is determined by the use of the +// feature test macros described earlier. The value of _XOPEN_VERSION +// defaults to 3 otherwise indicating support for XPG3 applications. + +// ANSI C and ISO 9899:1990 say the type long long doesn't exist in strictly +// conforming environments. ISO 9899:1999 says it does. +// +// The presence of _LONGLONG_TYPE says "long long exists" which is therefore +// defined in all but strictly conforming environments that disallow it. + +// The following macro defines a value for the ISO C99 restrict +// keyword so that _RESTRICT_KYWD resolves to "restrict" if +// an ISO C99 compiler is used, "__restrict" for c++ and "" (null string) +// if any other compiler is used. This allows for the use of single +// prototype declarations regardless of compiler version. + +// The following macro defines a value for the ISO C11 _Noreturn +// keyword so that _NORETURN_KYWD resolves to "_Noreturn" if +// an ISO C11 compiler is used and "" (null string) if any other +// compiler is used. This allows for the use of single prototype +// declarations regardless of compiler version. + +// ISO/IEC 9899:2011 Annex K + +// The following macro indicates header support for the ANSI C++ +// standard. The ISO/IEC designation for this is ISO/IEC FDIS 14882. + +// The following macro indicates header support for the C99 standard, +// ISO/IEC 9899:1999, Programming Languages - C. + +// The following macro indicates header support for the C11 standard, +// ISO/IEC 9899:2011, Programming Languages - C. + +// The following macro indicates header support for the C11 standard, +// ISO/IEC 9899:2011 Annex K, Programming Languages - C. + +// The following macro indicates header support for DTrace. The value is an +// integer that corresponds to the major version number for DTrace. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// wctype.h 1.13 89/11/02 SMI; JLE +// from AT&T JAE 2.1 +// definitions for international functions + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// An application should not include this header directly. Instead it +// should be included only through the inclusion of other Sun headers. +// +// The contents of this header is limited to identifiers specified in the +// C Standard. Any new identifiers specified in future amendments to the +// C Standard must be placed in this header. If these new identifiers +// are required to also be in the C++ Standard "std" namespace, then for +// anything other than macro definitions, corresponding "using" directives +// must also be added to . + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +type Wint_t = int32 /* wctype_iso.h:61:13 */ + +type Wctype_t = int32 /* wctype_iso.h:69:13 */ + +type Wctrans_t = uint32 /* wctype_iso.h:72:22 */ + +type Locale_t = uintptr /* ctype.h:95:24 */ + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/wchar.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2014 Garrett D'Amore +// Copyright (c) 1993, 2010, Oracle and/or its affiliates. All rights reserved. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2014 Garrett D'Amore +// Copyright 2014 PALO, Richard. +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// An application should not include this header directly. Instead it +// should be included only through the inclusion of other Sun headers. +// +// The contents of this header is limited to identifiers specified in the +// C Standard. Any new identifiers specified in future amendments to the +// C Standard must be placed in this header. If these new identifiers +// are required to also be in the C++ Standard "std" namespace, then for +// anything other than macro definitions, corresponding "using" directives +// must also be added to . + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// This file and its contents are supplied under the terms of the +// Common Development and Distribution License ("CDDL"), version 1.0. +// You may only use this file in accordance with the terms of version +// 1.0 of the CDDL. +// +// A full copy of the text of the CDDL should have accompanied this +// source. A copy of the CDDL is also available via the Internet at +// http://www.illumos.org/license/CDDL. + +// Copyright 2014-2016 PALO, Richard. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// POSIX.1-2008 requires that the NULL macro be cast to type void *. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +type X__FILE1 = struct{ F__pad [16]int64 } /* stdio_tag.h:40:9 */ + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/wchar.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2014 Garrett D'Amore +// Copyright (c) 1993, 2010, Oracle and/or its affiliates. All rights reserved. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2014 Garrett D'Amore +// Copyright 2014 PALO, Richard. +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// An application should not include this header directly. Instead it +// should be included only through the inclusion of other Sun headers. +// +// The contents of this header is limited to identifiers specified in the +// C Standard. Any new identifiers specified in future amendments to the +// C Standard must be placed in this header. If these new identifiers +// are required to also be in the C++ Standard "std" namespace, then for +// anything other than macro definitions, corresponding "using" directives +// must also be added to . + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// This file and its contents are supplied under the terms of the +// Common Development and Distribution License ("CDDL"), version 1.0. +// You may only use this file in accordance with the terms of version +// 1.0 of the CDDL. +// +// A full copy of the text of the CDDL should have accompanied this +// source. A copy of the CDDL is also available via the Internet at +// http://www.illumos.org/license/CDDL. + +// Copyright 2014-2016 PALO, Richard. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// POSIX.1-2008 requires that the NULL macro be cast to type void *. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +type X__FILE = X__FILE1 /* stdio_tag.h:40:27 */ + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1998 by Sun Microsystems, Inc. +// All rights reserved. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2016 Joyent, Inc. + +type X__mbstate_t1 = struct{ F__filler [4]int64 } /* wchar_impl.h:40:9 */ + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1998 by Sun Microsystems, Inc. +// All rights reserved. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2016 Joyent, Inc. + +type X__mbstate_t = X__mbstate_t1 /* wchar_impl.h:46:3 */ // size of something in bytes + +type Clock_t = int64 /* time_iso.h:70:14 */ + +type Time_t = int64 /* time_iso.h:75:14 */ + +type Tm = struct { + Ftm_sec int32 + Ftm_min int32 + Ftm_hour int32 + Ftm_mday int32 + Ftm_mon int32 + Ftm_year int32 + Ftm_wday int32 + Ftm_yday int32 + Ftm_isdst int32 +} /* time_iso.h:80:1 */ + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/stdio.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2014 Garrett D'Amore +// Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved. + +// Copyright (c) 1988 AT&T +// All Rights Reserved + +// User-visible pieces of the ANSI C standard I/O package. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Do all of our 'redefine_extname' processing before +// declarations of the associated functions are seen. +// This is necessary to keep gcc happy. + +// large file compilation environment setup + +// In the LP64 compilation environment, all APIs are already large file + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/iso/stdio_iso.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright 2014 Garrett D'Amore +// Copyright 2014 PALO, Richard. +// +// Copyright 2005 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// Copyright (c) 1988 AT&T +// All Rights Reserved + +// An application should not include this header directly. Instead it +// should be included only through the inclusion of other Sun headers. +// +// The contents of this header is limited to identifiers specified in the +// C Standard. Any new identifiers specified in future amendments to the +// C Standard must be placed in this header. If these new identifiers +// are required to also be in the C++ Standard "std" namespace, then for +// anything other than macro definitions, corresponding "using" directives +// must also be added to . + +// User-visible pieces of the ANSI C standard I/O package. + +// DO NOT EDIT THIS FILE. +// +// It has been auto-edited by fixincludes from: +// +// "/usr/include/sys/feature_tests.h" +// +// This had to be done to correct non-standard usages in the +// original, manufacturer supplied header file. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2013 Garrett D'Amore +// Copyright 2016 Joyent, Inc. +// Copyright 2022 Oxide Computer Company +// +// Copyright 2006 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// This file and its contents are supplied under the terms of the +// Common Development and Distribution License ("CDDL"), version 1.0. +// You may only use this file in accordance with the terms of version +// 1.0 of the CDDL. +// +// A full copy of the text of the CDDL should have accompanied this +// source. A copy of the CDDL is also available via the Internet at +// http://www.illumos.org/license/CDDL. + +// Copyright 2014-2016 PALO, Richard. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// An application should not include this header directly. Instead it +// should be included only through the inclusion of other Sun headers. +// +// The purpose of this header is to provide the type definitions for +// the va_list argument used by a number of printf and printf like +// functions. The headers that define these various function prototypes +// #include this header directly. These include but are not necessarily +// limited to , , , and +// . The type definitions included in this header are for +// the benefit of consumers of va_list. +// +// Any application that accepts variable argument lists must as documented, +// include either or the preferred . Doing so will +// pull in the appropriate compiler protocols defined in +// which is in turn is included by and . See comments +// in for more detailed information regarding implementation +// and compiler specific protocols. + +// The common definitions exported by this header or compilers using +// this header are: +// +// the identifier __builtin_va_alist for the variable list pseudo parameter +// the type __va_alist_type for the variable list pseudo parameter +// the type __va_list defining the type of the variable list iterator +// +// The feature macros (e.g. __BUILTIN_VA_STRUCT) and compiler macros +// (__GNUC__) and processor macros (e.g. __amd64) are intended to be +// defined by the compilation system, not the user of the system. + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License (the "License"). +// You may not use this file except in compliance with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END + +// Copyright 2008 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. +// Copyright 2016 Joyent, Inc. + +type X__gnuc_va_list = uintptr /* va_list.h:108:27 */ +// XX64 This seems unnecessary .. but is needed because vcmn_err is +// +// defined with __va_list instead of plain old va_list. +// Perhaps that should be fixed! +type X__va_list = uintptr /* va_list.h:114:27 */ + +// If feature test macros are set that enable interfaces that use types +// defined in , get those types by doing the include. +// +// Note that in asking for the interfaces associated with this feature test +// macro one also asks for definitions of the POSIX types. + +type FILE = X__FILE /* stdio_iso.h:102:16 */ + +type Fpos_t = int64 /* stdio_iso.h:115:15 */ + +type Off_t = int64 /* stdio.h:172:15 */ +type Off64_t = int64 /* stdio.h:178:16 */ + +type Fpos64_t = int64 /* stdio.h:188:17 */ + +// large file compilation environment setup + +// In the LP64 compilation environment, all APIs are already large file + +type Ssize_t = int64 /* stdio.h:270:14 */ + +// A null pointer constant. + +// Offset of member MEMBER in a struct of type TYPE. + +// Type whose alignment is supported in every context and is at least +// +// as great as that of any standard type not using alignment +// specifiers. +type Max_align_t = struct { + F__max_align_ll int64 + F__max_align_ld float64 +} /* stddef.h:435:3 */ + +// CDDL HEADER START +// +// The contents of this file are subject to the terms of the +// Common Development and Distribution License, Version 1.0 only +// (the "License"). You may not use this file except in compliance +// with the License. +// +// You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +// or http://www.opensolaris.org/os/licensing. +// See the License for the specific language governing permissions +// and limitations under the License. +// +// When distributing Covered Code, include this CDDL HEADER in each +// file and include the License file at usr/src/OPENSOLARIS.LICENSE. +// If applicable, add the following below this CDDL HEADER, with the +// fields enclosed by brackets "[]" replaced with your own identifying +// information: Portions Copyright [yyyy] [name of copyright owner] +// +// CDDL HEADER END +// Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T +// All Rights Reserved + +// Copyright 2014 Garrett D'Amore +// +// Copyright 2004 Sun Microsystems, Inc. All rights reserved. +// Use is subject to license terms. + +// wchar_t is a built-in type in standard C++ and as such is not +// defined here when using standard C++. However, the GNU compiler +// fixincludes utility nonetheless creates its own version of this +// header for use by gcc and g++. In that version it adds a redundant +// guard for __cplusplus. To avoid the creation of a gcc/g++ specific +// header we need to include the following magic comment: +// +// we must use the C++ compiler's type +// +// The above comment should not be removed or changed until GNU +// gcc/fixinc/inclhack.def is updated to bypass this header. + +// not XPG4 and not XPG4v2 + +type Mbstate_t = X__mbstate_t /* wchar_iso.h:134:21 */ + +// Allow global visibility for symbols defined in +// C++ "std" namespace in . + +// do not allow any of the following in a strictly conforming application + +// data structure for supplementary code set +// for character class and conversion +type X_wctype = struct { + Ftmin int32 + Ftmax int32 + Findex uintptr + Ftype uintptr + Fcmin int32 + Fcmax int32 + Fcode uintptr +} /* wctype.h:84:1 */ + +var _ int8 /* gen.c:2:13: */ diff --git a/vendor/modernc.org/libc/wctype/wctype_linux_loong64.go b/vendor/modernc.org/libc/wctype/wctype_linux_loong64.go new file mode 100644 index 000000000..80f6a1dd0 --- /dev/null +++ b/vendor/modernc.org/libc/wctype/wctype_linux_loong64.go @@ -0,0 +1,1111 @@ +// Code generated by 'ccgo wctype/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o wctype/wctype_linux_loong64.go -pkgname wctype', DO NOT EDIT. + +package wctype + +import ( + "math" + "reflect" + "sync/atomic" + "unsafe" +) + +var _ = math.Pi +var _ reflect.Kind +var _ atomic.Value +var _ unsafe.Pointer + +const ( + WEOF = 4294967295 // wctype.h:33:1: + X_ABILP64 = 3 // :377:1: + X_ATFILE_SOURCE = 1 // features.h:353:1: + X_BITS_ENDIANNESS_H = 1 // endianness.h:2:1: + X_BITS_ENDIAN_H = 1 // endian.h:20:1: + X_BITS_TIME64_H = 1 // time64.h:24:1: + X_BITS_TYPESIZES_H = 1 // typesizes.h:24:1: + X_BITS_TYPES_H = 1 // types.h:24:1: + X_BITS_TYPES_LOCALE_T_H = 1 // locale_t.h:20:1: + X_BITS_TYPES___LOCALE_T_H = 1 // __locale_t.h:20:1: + X_BITS_WCTYPE_WCHAR_H = 1 // wctype-wchar.h:24:1: + X_DEFAULT_SOURCE = 1 // features.h:238:1: + X_FEATURES_H = 1 // features.h:19:1: + X_FILE_OFFSET_BITS = 64 // :25:1: + X_LOONGARCH_ARCH = "loongarch64" // :214:1: + X_LOONGARCH_ARCH_LOONGARCH64 = 1 // :340:1: + X_LOONGARCH_FPSET = 32 // :265:1: + X_LOONGARCH_SIM = 3 // :233:1: + X_LOONGARCH_SPFPSET = 32 // :88:1: + X_LOONGARCH_SZINT = 32 // :230:1: + X_LOONGARCH_SZLONG = 64 // :388:1: + X_LOONGARCH_SZPTR = 64 // :200:1: + X_LOONGARCH_TUNE = "la464" // :245:1: + X_LOONGARCH_TUNE_LA464 = 1 // :63:1: + X_LP64 = 1 // :372:1: + X_POSIX_C_SOURCE = 200809 // features.h:292:1: + X_POSIX_SOURCE = 1 // features.h:290:1: + X_STDC_PREDEF_H = 1 // :223:1: + X_SYS_CDEFS_H = 1 // cdefs.h:20:1: + X_WCTYPE_H = 1 // wctype.h:24:1: + X_WINT_T = 1 // wint_t.h:10:1: + Linux = 1 // :308:1: + Unix = 1 // :247:1: +) + +// The characteristics are stored always in network byte order (big +// endian). We define the bit value interpretations here dependent on the +// machine's byte order. + +// Endian macros for string.h functions +// Copyright (C) 1992-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Definitions for byte order, according to significance of bytes, +// from low addresses to high addresses. The value is what you get by +// putting '4' in the most significant byte, '3' in the second most +// significant byte, '2' in the second least significant byte, and '1' +// in the least significant byte, and then writing down one digit for +// each byte, starting with the byte at the lowest address at the left, +// and proceeding to the byte with the highest address at the right. + +// This file defines `__BYTE_ORDER' for the particular machine. + +// LoongArch is little-endian. + +// Some machines may need to use a different endianness for floating point +// values. + +const ( /* wctype-wchar.h:56:1: */ + X__ISwupper = 0 // UPPERCASE. + X__ISwlower = 1 // lowercase. + X__ISwalpha = 2 // Alphabetic. + X__ISwdigit = 3 // Numeric. + X__ISwxdigit = 4 // Hexadecimal numeric. + X__ISwspace = 5 // Whitespace. + X__ISwprint = 6 // Printing. + X__ISwgraph = 7 // Graphical. + X__ISwblank = 8 // Blank (usually SPC and TAB). + X__ISwcntrl = 9 // Control character. + X__ISwpunct = 10 // Punctuation. + X__ISwalnum = 11 // Alphanumeric. + + X_ISwupper = 16777216 // UPPERCASE. + X_ISwlower = 33554432 // lowercase. + X_ISwalpha = 67108864 // Alphabetic. + X_ISwdigit = 134217728 // Numeric. + X_ISwxdigit = 268435456 // Hexadecimal numeric. + X_ISwspace = 536870912 // Whitespace. + X_ISwprint = 1073741824 // Printing. + X_ISwgraph = -2147483648 // Graphical. + X_ISwblank = 65536 // Blank (usually SPC and TAB). + X_ISwcntrl = 131072 // Control character. + X_ISwpunct = 262144 // Punctuation. + X_ISwalnum = 524288 +) + +type Ptrdiff_t = int64 /* :3:26 */ + +type Size_t = uint64 /* :9:23 */ + +type Wchar_t = int32 /* :15:24 */ + +type X__int128_t = struct { + Flo int64 + Fhi int64 +} /* :21:43 */ // must match modernc.org/mathutil.Int128 +type X__uint128_t = struct { + Flo uint64 + Fhi uint64 +} /* :22:44 */ // must match modernc.org/mathutil.Int128 + +type X__builtin_va_list = uintptr /* :46:14 */ +type X__float128 = float64 /* :47:21 */ + +// Copyright (C) 1996-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// ISO C99 Standard: 7.25 +// Wide character classification and mapping utilities + +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// These are defined by the user (or the compiler) +// to specify the desired environment: +// +// __STRICT_ANSI__ ISO Standard C. +// _ISOC99_SOURCE Extensions to ISO C89 from ISO C99. +// _ISOC11_SOURCE Extensions to ISO C99 from ISO C11. +// _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X. +// __STDC_WANT_LIB_EXT2__ +// Extensions to ISO C99 from TR 27431-2:2010. +// __STDC_WANT_IEC_60559_BFP_EXT__ +// Extensions to ISO C11 from TS 18661-1:2014. +// __STDC_WANT_IEC_60559_FUNCS_EXT__ +// Extensions to ISO C11 from TS 18661-4:2015. +// __STDC_WANT_IEC_60559_TYPES_EXT__ +// Extensions to ISO C11 from TS 18661-3:2015. +// __STDC_WANT_IEC_60559_EXT__ +// ISO C2X interfaces defined only in Annex F. +// +// _POSIX_SOURCE IEEE Std 1003.1. +// _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2; +// if >=199309L, add IEEE Std 1003.1b-1993; +// if >=199506L, add IEEE Std 1003.1c-1995; +// if >=200112L, all of IEEE 1003.1-2004 +// if >=200809L, all of IEEE 1003.1-2008 +// _XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if +// Single Unix conformance is wanted, to 600 for the +// sixth revision, to 700 for the seventh revision. +// _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions. +// _LARGEFILE_SOURCE Some more functions for correct standard I/O. +// _LARGEFILE64_SOURCE Additional functionality from LFS for large files. +// _FILE_OFFSET_BITS=N Select default filesystem interface. +// _ATFILE_SOURCE Additional *at interfaces. +// _DYNAMIC_STACK_SIZE_SOURCE Select correct (but non compile-time constant) +// MINSIGSTKSZ, SIGSTKSZ and PTHREAD_STACK_MIN. +// _GNU_SOURCE All of the above, plus GNU extensions. +// _DEFAULT_SOURCE The default set of features (taking precedence over +// __STRICT_ANSI__). +// +// _FORTIFY_SOURCE Add security hardening to many library functions. +// Set to 1, 2 or 3; 3 performs stricter checks than 2, which +// performs stricter checks than 1. +// +// _REENTRANT, _THREAD_SAFE +// Obsolete; equivalent to _POSIX_C_SOURCE=199506L. +// +// The `-ansi' switch to the GNU C compiler, and standards conformance +// options such as `-std=c99', define __STRICT_ANSI__. If none of +// these are defined, or if _DEFAULT_SOURCE is defined, the default is +// to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to +// 200809L, as well as enabling miscellaneous functions from BSD and +// SVID. If more than one of these are defined, they accumulate. For +// example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together +// give you ISO C, 1003.1, and 1003.2, but nothing else. +// +// These are defined by this file and are used by the +// header files to decide what to declare or define: +// +// __GLIBC_USE (F) Define things from feature set F. This is defined +// to 1 or 0; the subsequent macros are either defined +// or undefined, and those tests should be moved to +// __GLIBC_USE. +// __USE_ISOC11 Define ISO C11 things. +// __USE_ISOC99 Define ISO C99 things. +// __USE_ISOC95 Define ISO C90 AMD1 (C95) things. +// __USE_ISOCXX11 Define ISO C++11 things. +// __USE_POSIX Define IEEE Std 1003.1 things. +// __USE_POSIX2 Define IEEE Std 1003.2 things. +// __USE_POSIX199309 Define IEEE Std 1003.1, and .1b things. +// __USE_POSIX199506 Define IEEE Std 1003.1, .1b, .1c and .1i things. +// __USE_XOPEN Define XPG things. +// __USE_XOPEN_EXTENDED Define X/Open Unix things. +// __USE_UNIX98 Define Single Unix V2 things. +// __USE_XOPEN2K Define XPG6 things. +// __USE_XOPEN2KXSI Define XPG6 XSI things. +// __USE_XOPEN2K8 Define XPG7 things. +// __USE_XOPEN2K8XSI Define XPG7 XSI things. +// __USE_LARGEFILE Define correct standard I/O things. +// __USE_LARGEFILE64 Define LFS things with separate names. +// __USE_FILE_OFFSET64 Define 64bit interface as default. +// __USE_MISC Define things from 4.3BSD or System V Unix. +// __USE_ATFILE Define *at interfaces and AT_* constants for them. +// __USE_DYNAMIC_STACK_SIZE Define correct (but non compile-time constant) +// MINSIGSTKSZ, SIGSTKSZ and PTHREAD_STACK_MIN. +// __USE_GNU Define GNU extensions. +// __USE_FORTIFY_LEVEL Additional security measures used, according to level. +// +// The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are +// defined by this file unconditionally. `__GNU_LIBRARY__' is provided +// only for compatibility. All new code should use the other symbols +// to test for features. +// +// All macros listed above as possibly being defined by this file are +// explicitly undefined if they are not explicitly defined. +// Feature-test macros that are not defined by the user or compiler +// but are implied by the other feature-test macros defined (or by the +// lack of any definitions) are defined by the file. +// +// ISO C feature test macros depend on the definition of the macro +// when an affected header is included, not when the first system +// header is included, and so they are handled in +// , which does not have a multiple include +// guard. Feature test macros that can be handled from the first +// system header included are handled here. + +// Undefine everything, so we get a clean slate. + +// Suppress kernel-name space pollution unless user expressedly asks +// for it. + +// Convenience macro to test the version of gcc. +// Use like this: +// #if __GNUC_PREREQ (2,8) +// ... code requiring gcc 2.8 or later ... +// #endif +// Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was +// added in 2.0. + +// Similarly for clang. Features added to GCC after version 4.2 may +// or may not also be available in clang, and clang's definitions of +// __GNUC(_MINOR)__ are fixed at 4 and 2 respectively. Not all such +// features can be queried via __has_extension/__has_feature. + +// Whether to use feature set F. + +// _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for +// _DEFAULT_SOURCE. If _DEFAULT_SOURCE is present we do not +// issue a warning; the expectation is that the source is being +// transitioned to use the new macro. + +// If _GNU_SOURCE was defined by the user, turn on all the other features. + +// If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined, +// define _DEFAULT_SOURCE. + +// This is to enable the ISO C2X extension. + +// This is to enable the ISO C11 extension. + +// This is to enable the ISO C99 extension. + +// This is to enable the ISO C90 Amendment 1:1995 extension. + +// If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE +// is defined, use POSIX.1-2008 (or another version depending on +// _XOPEN_SOURCE). + +// Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be +// defined in all multithreaded code. GNU libc has not required this +// for many years. We now treat them as compatibility synonyms for +// _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with +// comprehensive support for multithreaded code. Using them never +// lowers the selected level of POSIX conformance, only raises it. + +// Features part to handle 64-bit time_t support. +// Copyright (C) 2021-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// We need to know the word size in order to check the time size. +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Bit size of the time_t type at glibc build time, general case. +// Copyright (C) 2018-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Size in bits of the 'time_t' type of the default ABI. + +// The function 'gets' existed in C89, but is impossible to use +// safely. It has been removed from ISO C11 and ISO C++14. Note: for +// compatibility with various implementations of , this test +// must consider only the value of __cplusplus when compiling C++. + +// GNU formerly extended the scanf functions with modified format +// specifiers %as, %aS, and %a[...] that allocate a buffer for the +// input using malloc. This extension conflicts with ISO C99, which +// defines %a as a standalone format specifier that reads a floating- +// point number; moreover, POSIX.1-2008 provides the same feature +// using the modifier letter 'm' instead (%ms, %mS, %m[...]). +// +// We now follow C99 unless GNU extensions are active and the compiler +// is specifically in C89 or C++98 mode (strict or not). For +// instance, with GCC, -std=gnu11 will have C99-compliant scanf with +// or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the +// old extension. + +// ISO C2X added support for a 0b or 0B prefix on binary constants as +// inputs to strtol-family functions (base 0 or 2). This macro is +// used to condition redirection in headers to allow that redirection +// to be disabled when building those functions, despite _GNU_SOURCE +// being defined. + +// Get definitions of __STDC_* predefined macros, if the compiler has +// not preincluded this header automatically. +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// This macro indicates that the installed library is the GNU C Library. +// For historic reasons the value now is 6 and this will stay from now +// on. The use of this variable is deprecated. Use __GLIBC__ and +// __GLIBC_MINOR__ now (see below) when you want to test for a specific +// GNU C library version and use the values in to get +// the sonames of the shared libraries. + +// Major and minor version number of the GNU C library package. Use +// these macros to test for features in specific releases. + +// This is here only because every header file already includes this one. +// Copyright (C) 1992-2023 Free Software Foundation, Inc. +// Copyright The GNU Toolchain Authors. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// We are almost always included from features.h. + +// The GNU libc does not support any K&R compilers or the traditional mode +// of ISO C compilers anymore. Check for some of the combinations not +// supported anymore. + +// Some user header file might have defined this before. + +// Compilers that lack __has_attribute may object to +// #if defined __has_attribute && __has_attribute (...) +// even though they do not need to evaluate the right-hand side of the &&. +// Similarly for __has_builtin, etc. + +// All functions, except those with callbacks or those that +// synchronize memory, are leaf functions. + +// GCC can always grok prototypes. For C++ programs we add throw() +// to help it optimize the function calls. But this only works with +// gcc 2.8.x and egcs. For gcc 3.4 and up we even mark C functions +// as non-throwing using a function attribute since programs can use +// the -fexceptions options for C code as well. + +// These two macros are not used in glibc anymore. They are kept here +// only because some other projects expect the macros to be defined. + +// For these things, GCC behaves the ANSI way normally, +// and the non-ANSI way under -traditional. + +// This is not a typedef so `const __ptr_t' does the right thing. + +// C++ needs to know that types and declarations are C, not C++. + +// Fortify support. + +// Use __builtin_dynamic_object_size at _FORTIFY_SOURCE=3 when available. + +// Support for flexible arrays. +// Headers that should use flexible arrays only if they're "real" +// (e.g. only if they won't affect sizeof()) should test +// #if __glibc_c99_flexarr_available. + +// __asm__ ("xyz") is used throughout the headers to rename functions +// at the assembly language level. This is wrapped by the __REDIRECT +// macro, in order to support compilers that can do this some other +// way. When compilers don't support asm-names at all, we have to do +// preprocessor tricks instead (which don't have exactly the right +// semantics, but it's the best we can do). +// +// Example: +// int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid); + +// +// #elif __SOME_OTHER_COMPILER__ +// +// # define __REDIRECT(name, proto, alias) name proto; _Pragma("let " #name " = " #alias) + +// GCC and clang have various useful declarations that can be made with +// the '__attribute__' syntax. All of the ways we use this do fine if +// they are omitted for compilers that don't understand it. + +// At some point during the gcc 2.96 development the `malloc' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// Tell the compiler which arguments to an allocation function +// indicate the size of the allocation. + +// Tell the compiler which argument to an allocation function +// indicates the alignment of the allocation. + +// At some point during the gcc 2.96 development the `pure' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// This declaration tells the compiler that the value is constant. + +// At some point during the gcc 3.1 development the `used' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// Since version 3.2, gcc allows marking deprecated functions. + +// Since version 4.5, gcc also allows one to specify the message printed +// when a deprecated function is used. clang claims to be gcc 4.2, but +// may also support this feature. + +// At some point during the gcc 2.8 development the `format_arg' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. +// If several `format_arg' attributes are given for the same function, in +// gcc-3.0 and older, all but the last one are ignored. In newer gccs, +// all designated arguments are considered. + +// At some point during the gcc 2.97 development the `strfmon' format +// attribute for functions was introduced. We don't want to use it +// unconditionally (although this would be possible) since it +// generates warnings. + +// The nonnull function attribute marks pointer parameters that +// must not be NULL. This has the name __nonnull in glibc, +// and __attribute_nonnull__ in files shared with Gnulib to avoid +// collision with a different __nonnull in DragonFlyBSD 5.9. + +// The returns_nonnull function attribute marks the return type of the function +// as always being non-null. + +// If fortification mode, we warn about unused results of certain +// function calls which can lead to problems. + +// Forces a function to be always inlined. +// The Linux kernel defines __always_inline in stddef.h (283d7573), and +// it conflicts with this definition. Therefore undefine it first to +// allow either header to be included first. + +// Associate error messages with the source location of the call site rather +// than with the source location inside the function. + +// GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99 +// inline semantics, unless -fgnu89-inline is used. Using __GNUC_STDC_INLINE__ +// or __GNUC_GNU_INLINE is not a good enough check for gcc because gcc versions +// older than 4.3 may define these macros and still not guarantee GNU inlining +// semantics. +// +// clang++ identifies itself as gcc-4.2, but has support for GNU inlining +// semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and +// __GNUC_GNU_INLINE__ macro definitions. + +// GCC 4.3 and above allow passing all anonymous arguments of an +// __extern_always_inline function to some other vararg function. + +// It is possible to compile containing GCC extensions even if GCC is +// run in pedantic mode if the uses are carefully marked using the +// `__extension__' keyword. But this is not generally available before +// version 2.8. + +// __restrict is known in EGCS 1.2 and above, and in clang. +// It works also in C++ mode (outside of arrays), but only when spelled +// as '__restrict', not 'restrict'. + +// ISO C99 also allows to declare arrays as non-overlapping. The syntax is +// array_name[restrict] +// GCC 3.1 and clang support this. +// This syntax is not usable in C++ mode. + +// Describes a char array whose address can safely be passed as the first +// argument to strncpy and strncat, as the char array is not necessarily +// a NUL-terminated string. + +// Undefine (also defined in libc-symbols.h). +// Copies attributes from the declaration or type referenced by +// the argument. + +// Gnulib avoids including these, as they don't work on non-glibc or +// older glibc platforms. +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Properties of long double type. ldbl-128 version. +// Copyright (C) 2016-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// long double is distinct from double, so there is nothing to +// define here. + +// __glibc_macro_warning (MESSAGE) issues warning MESSAGE. This is +// intended for use in preprocessor macros. +// +// Note: MESSAGE must be a _single_ string; concatenation of string +// literals is not supported. + +// Generic selection (ISO C11) is a C-only feature, available in GCC +// since version 4.9. Previous versions do not provide generic +// selection, even though they might set __STDC_VERSION__ to 201112L, +// when in -std=c11 mode. Thus, we must check for !defined __GNUC__ +// when testing __STDC_VERSION__ for generic selection support. +// On the other hand, Clang also defines __GNUC__, so a clang-specific +// check is required to enable the use of generic selection. + +// Designates a 1-based positional argument ref-index of pointer type +// that can be used to access size-index elements of the pointed-to +// array according to access mode, or at least one element when +// size-index is not provided: +// access (access-mode, [, ]) +// For _FORTIFY_SOURCE == 3 we use __builtin_dynamic_object_size, which may +// use the access attribute to get object sizes from function definition +// arguments, so we can't use them on functions we fortify. Drop the object +// size hints for such functions. + +// Designates dealloc as a function to call to deallocate objects +// allocated by the declared function. + +// Specify that a function such as setjmp or vfork may return +// twice. + +// If we don't have __REDIRECT, prototypes will be missing if +// __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64]. + +// Decide whether we can define 'extern inline' functions in headers. + +// This is here only because every header file already includes this one. +// Get the definitions of all the appropriate `__stub_FUNCTION' symbols. +// contains `#define __stub_FUNCTION' when FUNCTION is a stub +// that will always return failure (and set errno to ENOSYS). +// This file is automatically generated. +// This file selects the right generated file of `__stub_FUNCTION' macros +// based on the architecture being compiled for. + +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// This file is automatically generated. +// It defines a symbol `__stub_FUNCTION' for each function +// in the C library which is a stub, meaning it will fail +// every time called, usually setting errno to ENOSYS. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Copyright (C) 1991-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Copyright (C) 1999-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Bit size of the time_t type at glibc build time, general case. +// Copyright (C) 2018-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Size in bits of the 'time_t' type of the default ABI. + +// Convenience types. +type X__u_char = uint8 /* types.h:31:23 */ +type X__u_short = uint16 /* types.h:32:28 */ +type X__u_int = uint32 /* types.h:33:22 */ +type X__u_long = uint64 /* types.h:34:27 */ + +// Fixed-size types, underlying types depend on word size and compiler. +type X__int8_t = int8 /* types.h:37:21 */ +type X__uint8_t = uint8 /* types.h:38:23 */ +type X__int16_t = int16 /* types.h:39:26 */ +type X__uint16_t = uint16 /* types.h:40:28 */ +type X__int32_t = int32 /* types.h:41:20 */ +type X__uint32_t = uint32 /* types.h:42:22 */ +type X__int64_t = int64 /* types.h:44:25 */ +type X__uint64_t = uint64 /* types.h:45:27 */ + +// Smallest types with at least a given width. +type X__int_least8_t = int8 /* types.h:52:18 */ +type X__uint_least8_t = uint8 /* types.h:53:19 */ +type X__int_least16_t = int16 /* types.h:54:19 */ +type X__uint_least16_t = uint16 /* types.h:55:20 */ +type X__int_least32_t = int32 /* types.h:56:19 */ +type X__uint_least32_t = uint32 /* types.h:57:20 */ +type X__int_least64_t = int64 /* types.h:58:19 */ +type X__uint_least64_t = uint64 /* types.h:59:20 */ + +// quad_t is also 64 bits. +type X__quad_t = int64 /* types.h:63:18 */ +type X__u_quad_t = uint64 /* types.h:64:27 */ + +// Largest integral types. +type X__intmax_t = int64 /* types.h:72:18 */ +type X__uintmax_t = uint64 /* types.h:73:27 */ + +// The machine-dependent file defines __*_T_TYPE +// macros for each of the OS types we define below. The definitions +// of those macros must use the following macros for underlying types. +// We define __S_TYPE and __U_TYPE for the signed and unsigned +// variants of each of the following integer types on this machine. +// +// 16 -- "natural" 16-bit type (always short) +// 32 -- "natural" 32-bit type (always int) +// 64 -- "natural" 64-bit type (long or long long) +// LONG32 -- 32-bit type, traditionally long +// QUAD -- 64-bit type, traditionally long long +// WORD -- natural type of __WORDSIZE bits (int or long) +// LONGWORD -- type of __WORDSIZE bits, traditionally long +// +// We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the +// conventional uses of `long' or `long long' type modifiers match the +// types we define, even when a less-adorned type would be the same size. +// This matters for (somewhat) portably writing printf/scanf formats for +// these types, where using the appropriate l or ll format modifiers can +// make the typedefs and the formats match up across all GNU platforms. If +// we used `long' when it's 64 bits where `long long' is expected, then the +// compiler would warn about the formats not matching the argument types, +// and the programmer changing them to shut up the compiler would break the +// program's portability. +// +// Here we assume what is presently the case in all the GCC configurations +// we support: long long is always 64 bits, long is always word/address size, +// and int is always 32 bits. + +// No need to mark the typedef with __extension__. +// bits/typesizes.h -- underlying types for *_t. For the generic Linux ABI. +// Copyright (C) 2011-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library. If not, see +// . + +// See for the meaning of these macros. This file exists so +// that need not vary across different GNU platforms. + +// Tell the libc code that off_t and off64_t are actually the same type +// for all ABI purposes, even if possibly expressed as different base types +// for C type-checking purposes. + +// Same for ino_t and ino64_t. + +// And for __rlim_t and __rlim64_t. + +// And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t. + +// And for getitimer, setitimer and rusage + +// Number of descriptors that can fit in an `fd_set'. + +// bits/time64.h -- underlying types for __time64_t. Generic version. +// Copyright (C) 2018-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Define __TIME64_T_TYPE so that it is always a 64-bit type. + +// If we already have 64-bit time type then use it. + +type X__dev_t = uint64 /* types.h:145:25 */ // Type of device numbers. +type X__uid_t = uint32 /* types.h:146:25 */ // Type of user identifications. +type X__gid_t = uint32 /* types.h:147:25 */ // Type of group identifications. +type X__ino_t = uint64 /* types.h:148:25 */ // Type of file serial numbers. +type X__ino64_t = uint64 /* types.h:149:27 */ // Type of file serial numbers (LFS). +type X__mode_t = uint32 /* types.h:150:26 */ // Type of file attribute bitmasks. +type X__nlink_t = uint32 /* types.h:151:27 */ // Type of file link counts. +type X__off_t = int64 /* types.h:152:25 */ // Type of file sizes and offsets. +type X__off64_t = int64 /* types.h:153:27 */ // Type of file sizes and offsets (LFS). +type X__pid_t = int32 /* types.h:154:25 */ // Type of process identifications. +type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs. +type X__clock_t = int64 /* types.h:156:27 */ // Type of CPU usage counts. +type X__rlim_t = uint64 /* types.h:157:26 */ // Type for resource measurement. +type X__rlim64_t = uint64 /* types.h:158:28 */ // Type for resource measurement (LFS). +type X__id_t = uint32 /* types.h:159:24 */ // General type for IDs. +type X__time_t = int64 /* types.h:160:26 */ // Seconds since the Epoch. +type X__useconds_t = uint32 /* types.h:161:30 */ // Count of microseconds. +type X__suseconds_t = int64 /* types.h:162:31 */ // Signed count of microseconds. +type X__suseconds64_t = int64 /* types.h:163:33 */ + +type X__daddr_t = int32 /* types.h:165:27 */ // The type of a disk address. +type X__key_t = int32 /* types.h:166:25 */ // Type of an IPC key. + +// Clock ID used in clock and timer functions. +type X__clockid_t = int32 /* types.h:169:29 */ + +// Timer ID returned by `timer_create'. +type X__timer_t = uintptr /* types.h:172:12 */ + +// Type to represent block size. +type X__blksize_t = int32 /* types.h:175:29 */ + +// Types from the Large File Support interface. + +// Type to count number of disk blocks. +type X__blkcnt_t = int64 /* types.h:180:28 */ +type X__blkcnt64_t = int64 /* types.h:181:30 */ + +// Type to count file system blocks. +type X__fsblkcnt_t = uint64 /* types.h:184:30 */ +type X__fsblkcnt64_t = uint64 /* types.h:185:32 */ + +// Type to count file system nodes. +type X__fsfilcnt_t = uint64 /* types.h:188:30 */ +type X__fsfilcnt64_t = uint64 /* types.h:189:32 */ + +// Type of miscellaneous file system fields. +type X__fsword_t = int64 /* types.h:192:28 */ + +type X__ssize_t = int64 /* types.h:194:27 */ // Type of a byte count, or error. + +// Signed long type used in system calls. +type X__syscall_slong_t = int64 /* types.h:197:33 */ +// Unsigned long type used in system calls. +type X__syscall_ulong_t = uint64 /* types.h:199:33 */ + +// These few don't really vary by system, they always correspond +// +// to one of the other defined types. +type X__loff_t = int64 /* types.h:203:19 */ // Type of file sizes and offsets (LFS). +type X__caddr_t = uintptr /* types.h:204:14 */ + +// Duplicates info from stdint.h but this is used in unistd.h. +type X__intptr_t = int64 /* types.h:207:25 */ + +// Duplicate info from sys/socket.h. +type X__socklen_t = uint32 /* types.h:210:23 */ + +// C99: An integer type that can be accessed as an atomic entity, +// +// even in the presence of asynchronous interrupts. +// It is not currently necessary for this to be machine-specific. +type X__sig_atomic_t = int32 /* types.h:215:13 */ + +// Seconds since the Epoch, visible to user code when time_t is too +// narrow only for consistency with the old way of widening too-narrow +// types. User code should never use __time64_t. + +// Some versions of stddef.h provide wint_t, even though neither the +// C nor C++ standards, nor POSIX, specifies this. We assume that +// stddef.h will define the macro _WINT_T if and only if it provides +// wint_t, and conversely, that it will avoid providing wint_t if +// _WINT_T is already defined. + +// Integral type unchanged by default argument promotions that can +// hold any value corresponding to members of the extended character +// set, as well as at least one value that does not correspond to any +// member of the extended character set. + +type Wint_t = uint32 /* wint_t.h:20:23 */ + +// Constant expression of type `wint_t' whose value does not correspond +// to any member of the extended character set. + +// Some definitions from this header also appear in in +// Unix98 mode. +// Copyright (C) 1996-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// ISO C99 Standard: 7.25 +// Wide character classification and mapping utilities + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// The definitions in this header are specified to appear in +// in ISO C99, but in in Unix98. _GNU_SOURCE follows C99. + +// Scalar type that can hold values which represent locale-specific +// +// character classifications. +type Wctype_t = uint64 /* wctype-wchar.h:38:27 */ + +// Extensible wide-character mapping functions: 7.15.3.2. + +// Scalar type that can hold values which represent locale-specific +// +// character mappings. +type Wctrans_t = uintptr /* wctype.h:48:25 */ + +// POSIX.1-2008 extended locale interface (see locale.h). +// Definition of locale_t. +// Copyright (C) 2017-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Definition of struct __locale_struct and __locale_t. +// Copyright (C) 1997-2023 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// POSIX.1-2008: the locale_t type, representing a locale context +// (implementation-namespace version). This type should be treated +// as opaque by applications; some details are exposed for the sake of +// efficiency in e.g. ctype functions. + +type X__locale_struct = struct { + F__locales [13]uintptr + F__ctype_b uintptr + F__ctype_tolower uintptr + F__ctype_toupper uintptr + F__names [13]uintptr +} /* __locale_t.h:27:1 */ + +type X__locale_t = uintptr /* __locale_t.h:41:32 */ + +type Locale_t = uintptr /* locale_t.h:24:20 */ + +var _ int8 /* gen.c:2:13: */ diff --git a/vendor/modernc.org/libc/wctype/wctype_linux_mips64le.go b/vendor/modernc.org/libc/wctype/wctype_linux_mips64le.go new file mode 100644 index 000000000..a36ea7c5a --- /dev/null +++ b/vendor/modernc.org/libc/wctype/wctype_linux_mips64le.go @@ -0,0 +1,953 @@ +// Code generated by 'ccgo wctype/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o wctype/wctype_linux_amd64.go -pkgname wctype', DO NOT EDIT. + +package wctype + +import ( + "math" + "reflect" + "sync/atomic" + "unsafe" +) + +var _ = math.Pi +var _ reflect.Kind +var _ atomic.Value +var _ unsafe.Pointer + +const ( + WEOF = 4294967295 // wctype.h:33:1: + X_ATFILE_SOURCE = 1 // features.h:342:1: + X_BITS_ENDIANNESS_H = 1 // endianness.h:2:1: + X_BITS_ENDIAN_H = 1 // endian.h:20:1: + X_BITS_TIME64_H = 1 // time64.h:24:1: + X_BITS_TYPESIZES_H = 1 // typesizes.h:24:1: + X_BITS_TYPES_H = 1 // types.h:24:1: + X_BITS_TYPES_LOCALE_T_H = 1 // locale_t.h:20:1: + X_BITS_TYPES___LOCALE_T_H = 1 // __locale_t.h:21:1: + X_BITS_WCTYPE_WCHAR_H = 1 // wctype-wchar.h:24:1: + X_DEFAULT_SOURCE = 1 // features.h:227:1: + X_FEATURES_H = 1 // features.h:19:1: + X_FILE_OFFSET_BITS = 64 // :25:1: + X_LP64 = 1 // :284:1: + X_POSIX_C_SOURCE = 200809 // features.h:281:1: + X_POSIX_SOURCE = 1 // features.h:279:1: + X_STDC_PREDEF_H = 1 // :162:1: + X_SYS_CDEFS_H = 1 // cdefs.h:19:1: + X_WCTYPE_H = 1 // wctype.h:24:1: + X_WINT_T = 1 // wint_t.h:10:1: + Linux = 1 // :231:1: + Unix = 1 // :177:1: +) + +// The characteristics are stored always in network byte order (big +// endian). We define the bit value interpretations here dependent on the +// machine's byte order. + +// Endian macros for string.h functions +// Copyright (C) 1992-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Definitions for byte order, according to significance of bytes, +// from low addresses to high addresses. The value is what you get by +// putting '4' in the most significant byte, '3' in the second most +// significant byte, '2' in the second least significant byte, and '1' +// in the least significant byte, and then writing down one digit for +// each byte, starting with the byte at the lowest address at the left, +// and proceeding to the byte with the highest address at the right. + +// This file defines `__BYTE_ORDER' for the particular machine. + +// i386/x86_64 are little-endian. + +// Some machines may need to use a different endianness for floating point +// values. + +const ( /* wctype-wchar.h:56:1: */ + X__ISwupper = 0 // UPPERCASE. + X__ISwlower = 1 // lowercase. + X__ISwalpha = 2 // Alphabetic. + X__ISwdigit = 3 // Numeric. + X__ISwxdigit = 4 // Hexadecimal numeric. + X__ISwspace = 5 // Whitespace. + X__ISwprint = 6 // Printing. + X__ISwgraph = 7 // Graphical. + X__ISwblank = 8 // Blank (usually SPC and TAB). + X__ISwcntrl = 9 // Control character. + X__ISwpunct = 10 // Punctuation. + X__ISwalnum = 11 // Alphanumeric. + + X_ISwupper = 16777216 // UPPERCASE. + X_ISwlower = 33554432 // lowercase. + X_ISwalpha = 67108864 // Alphabetic. + X_ISwdigit = 134217728 // Numeric. + X_ISwxdigit = 268435456 // Hexadecimal numeric. + X_ISwspace = 536870912 // Whitespace. + X_ISwprint = 1073741824 // Printing. + X_ISwgraph = -2147483648 // Graphical. + X_ISwblank = 65536 // Blank (usually SPC and TAB). + X_ISwcntrl = 131072 // Control character. + X_ISwpunct = 262144 // Punctuation. + X_ISwalnum = 524288 +) + +type Ptrdiff_t = int64 /* :3:26 */ + +type Size_t = uint64 /* :9:23 */ + +type Wchar_t = int32 /* :15:24 */ + +type X__int128_t = struct { + Flo int64 + Fhi int64 +} /* :21:43 */ // must match modernc.org/mathutil.Int128 +type X__uint128_t = struct { + Flo uint64 + Fhi uint64 +} /* :22:44 */ // must match modernc.org/mathutil.Int128 + +type X__builtin_va_list = uintptr /* :46:14 */ +type X__float128 = float64 /* :47:21 */ + +// Copyright (C) 1996-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// ISO C99 Standard: 7.25 +// Wide character classification and mapping utilities + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// These are defined by the user (or the compiler) +// to specify the desired environment: +// +// __STRICT_ANSI__ ISO Standard C. +// _ISOC99_SOURCE Extensions to ISO C89 from ISO C99. +// _ISOC11_SOURCE Extensions to ISO C99 from ISO C11. +// _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X. +// __STDC_WANT_LIB_EXT2__ +// Extensions to ISO C99 from TR 27431-2:2010. +// __STDC_WANT_IEC_60559_BFP_EXT__ +// Extensions to ISO C11 from TS 18661-1:2014. +// __STDC_WANT_IEC_60559_FUNCS_EXT__ +// Extensions to ISO C11 from TS 18661-4:2015. +// __STDC_WANT_IEC_60559_TYPES_EXT__ +// Extensions to ISO C11 from TS 18661-3:2015. +// +// _POSIX_SOURCE IEEE Std 1003.1. +// _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2; +// if >=199309L, add IEEE Std 1003.1b-1993; +// if >=199506L, add IEEE Std 1003.1c-1995; +// if >=200112L, all of IEEE 1003.1-2004 +// if >=200809L, all of IEEE 1003.1-2008 +// _XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if +// Single Unix conformance is wanted, to 600 for the +// sixth revision, to 700 for the seventh revision. +// _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions. +// _LARGEFILE_SOURCE Some more functions for correct standard I/O. +// _LARGEFILE64_SOURCE Additional functionality from LFS for large files. +// _FILE_OFFSET_BITS=N Select default filesystem interface. +// _ATFILE_SOURCE Additional *at interfaces. +// _GNU_SOURCE All of the above, plus GNU extensions. +// _DEFAULT_SOURCE The default set of features (taking precedence over +// __STRICT_ANSI__). +// +// _FORTIFY_SOURCE Add security hardening to many library functions. +// Set to 1 or 2; 2 performs stricter checks than 1. +// +// _REENTRANT, _THREAD_SAFE +// Obsolete; equivalent to _POSIX_C_SOURCE=199506L. +// +// The `-ansi' switch to the GNU C compiler, and standards conformance +// options such as `-std=c99', define __STRICT_ANSI__. If none of +// these are defined, or if _DEFAULT_SOURCE is defined, the default is +// to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to +// 200809L, as well as enabling miscellaneous functions from BSD and +// SVID. If more than one of these are defined, they accumulate. For +// example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together +// give you ISO C, 1003.1, and 1003.2, but nothing else. +// +// These are defined by this file and are used by the +// header files to decide what to declare or define: +// +// __GLIBC_USE (F) Define things from feature set F. This is defined +// to 1 or 0; the subsequent macros are either defined +// or undefined, and those tests should be moved to +// __GLIBC_USE. +// __USE_ISOC11 Define ISO C11 things. +// __USE_ISOC99 Define ISO C99 things. +// __USE_ISOC95 Define ISO C90 AMD1 (C95) things. +// __USE_ISOCXX11 Define ISO C++11 things. +// __USE_POSIX Define IEEE Std 1003.1 things. +// __USE_POSIX2 Define IEEE Std 1003.2 things. +// __USE_POSIX199309 Define IEEE Std 1003.1, and .1b things. +// __USE_POSIX199506 Define IEEE Std 1003.1, .1b, .1c and .1i things. +// __USE_XOPEN Define XPG things. +// __USE_XOPEN_EXTENDED Define X/Open Unix things. +// __USE_UNIX98 Define Single Unix V2 things. +// __USE_XOPEN2K Define XPG6 things. +// __USE_XOPEN2KXSI Define XPG6 XSI things. +// __USE_XOPEN2K8 Define XPG7 things. +// __USE_XOPEN2K8XSI Define XPG7 XSI things. +// __USE_LARGEFILE Define correct standard I/O things. +// __USE_LARGEFILE64 Define LFS things with separate names. +// __USE_FILE_OFFSET64 Define 64bit interface as default. +// __USE_MISC Define things from 4.3BSD or System V Unix. +// __USE_ATFILE Define *at interfaces and AT_* constants for them. +// __USE_GNU Define GNU extensions. +// __USE_FORTIFY_LEVEL Additional security measures used, according to level. +// +// The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are +// defined by this file unconditionally. `__GNU_LIBRARY__' is provided +// only for compatibility. All new code should use the other symbols +// to test for features. +// +// All macros listed above as possibly being defined by this file are +// explicitly undefined if they are not explicitly defined. +// Feature-test macros that are not defined by the user or compiler +// but are implied by the other feature-test macros defined (or by the +// lack of any definitions) are defined by the file. +// +// ISO C feature test macros depend on the definition of the macro +// when an affected header is included, not when the first system +// header is included, and so they are handled in +// , which does not have a multiple include +// guard. Feature test macros that can be handled from the first +// system header included are handled here. + +// Undefine everything, so we get a clean slate. + +// Suppress kernel-name space pollution unless user expressedly asks +// for it. + +// Convenience macro to test the version of gcc. +// Use like this: +// #if __GNUC_PREREQ (2,8) +// ... code requiring gcc 2.8 or later ... +// #endif +// Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was +// added in 2.0. + +// Similarly for clang. Features added to GCC after version 4.2 may +// or may not also be available in clang, and clang's definitions of +// __GNUC(_MINOR)__ are fixed at 4 and 2 respectively. Not all such +// features can be queried via __has_extension/__has_feature. + +// Whether to use feature set F. + +// _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for +// _DEFAULT_SOURCE. If _DEFAULT_SOURCE is present we do not +// issue a warning; the expectation is that the source is being +// transitioned to use the new macro. + +// If _GNU_SOURCE was defined by the user, turn on all the other features. + +// If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined, +// define _DEFAULT_SOURCE. + +// This is to enable the ISO C2X extension. + +// This is to enable the ISO C11 extension. + +// This is to enable the ISO C99 extension. + +// This is to enable the ISO C90 Amendment 1:1995 extension. + +// If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE +// is defined, use POSIX.1-2008 (or another version depending on +// _XOPEN_SOURCE). + +// Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be +// defined in all multithreaded code. GNU libc has not required this +// for many years. We now treat them as compatibility synonyms for +// _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with +// comprehensive support for multithreaded code. Using them never +// lowers the selected level of POSIX conformance, only raises it. + +// The function 'gets' existed in C89, but is impossible to use +// safely. It has been removed from ISO C11 and ISO C++14. Note: for +// compatibility with various implementations of , this test +// must consider only the value of __cplusplus when compiling C++. + +// GNU formerly extended the scanf functions with modified format +// specifiers %as, %aS, and %a[...] that allocate a buffer for the +// input using malloc. This extension conflicts with ISO C99, which +// defines %a as a standalone format specifier that reads a floating- +// point number; moreover, POSIX.1-2008 provides the same feature +// using the modifier letter 'm' instead (%ms, %mS, %m[...]). +// +// We now follow C99 unless GNU extensions are active and the compiler +// is specifically in C89 or C++98 mode (strict or not). For +// instance, with GCC, -std=gnu11 will have C99-compliant scanf with +// or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the +// old extension. + +// Get definitions of __STDC_* predefined macros, if the compiler has +// not preincluded this header automatically. +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// This macro indicates that the installed library is the GNU C Library. +// For historic reasons the value now is 6 and this will stay from now +// on. The use of this variable is deprecated. Use __GLIBC__ and +// __GLIBC_MINOR__ now (see below) when you want to test for a specific +// GNU C library version and use the values in to get +// the sonames of the shared libraries. + +// Major and minor version number of the GNU C library package. Use +// these macros to test for features in specific releases. + +// This is here only because every header file already includes this one. +// Copyright (C) 1992-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// We are almost always included from features.h. + +// The GNU libc does not support any K&R compilers or the traditional mode +// of ISO C compilers anymore. Check for some of the combinations not +// anymore supported. + +// Some user header file might have defined this before. + +// All functions, except those with callbacks or those that +// synchronize memory, are leaf functions. + +// GCC can always grok prototypes. For C++ programs we add throw() +// to help it optimize the function calls. But this works only with +// gcc 2.8.x and egcs. For gcc 3.2 and up we even mark C functions +// as non-throwing using a function attribute since programs can use +// the -fexceptions options for C code as well. + +// Compilers that are not clang may object to +// #if defined __clang__ && __has_extension(...) +// even though they do not need to evaluate the right-hand side of the &&. + +// These two macros are not used in glibc anymore. They are kept here +// only because some other projects expect the macros to be defined. + +// For these things, GCC behaves the ANSI way normally, +// and the non-ANSI way under -traditional. + +// This is not a typedef so `const __ptr_t' does the right thing. + +// C++ needs to know that types and declarations are C, not C++. + +// Fortify support. + +// Support for flexible arrays. +// Headers that should use flexible arrays only if they're "real" +// (e.g. only if they won't affect sizeof()) should test +// #if __glibc_c99_flexarr_available. + +// __asm__ ("xyz") is used throughout the headers to rename functions +// at the assembly language level. This is wrapped by the __REDIRECT +// macro, in order to support compilers that can do this some other +// way. When compilers don't support asm-names at all, we have to do +// preprocessor tricks instead (which don't have exactly the right +// semantics, but it's the best we can do). +// +// Example: +// int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid); + +// +// #elif __SOME_OTHER_COMPILER__ +// +// # define __REDIRECT(name, proto, alias) name proto; _Pragma("let " #name " = " #alias) + +// GCC has various useful declarations that can be made with the +// `__attribute__' syntax. All of the ways we use this do fine if +// they are omitted for compilers that don't understand it. + +// At some point during the gcc 2.96 development the `malloc' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// Tell the compiler which arguments to an allocation function +// indicate the size of the allocation. + +// At some point during the gcc 2.96 development the `pure' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// This declaration tells the compiler that the value is constant. + +// At some point during the gcc 3.1 development the `used' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. + +// Since version 3.2, gcc allows marking deprecated functions. + +// Since version 4.5, gcc also allows one to specify the message printed +// when a deprecated function is used. clang claims to be gcc 4.2, but +// may also support this feature. + +// At some point during the gcc 2.8 development the `format_arg' attribute +// for functions was introduced. We don't want to use it unconditionally +// (although this would be possible) since it generates warnings. +// If several `format_arg' attributes are given for the same function, in +// gcc-3.0 and older, all but the last one are ignored. In newer gccs, +// all designated arguments are considered. + +// At some point during the gcc 2.97 development the `strfmon' format +// attribute for functions was introduced. We don't want to use it +// unconditionally (although this would be possible) since it +// generates warnings. + +// The nonull function attribute allows to mark pointer parameters which +// must not be NULL. + +// If fortification mode, we warn about unused results of certain +// function calls which can lead to problems. + +// Forces a function to be always inlined. +// The Linux kernel defines __always_inline in stddef.h (283d7573), and +// it conflicts with this definition. Therefore undefine it first to +// allow either header to be included first. + +// Associate error messages with the source location of the call site rather +// than with the source location inside the function. + +// GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99 +// inline semantics, unless -fgnu89-inline is used. Using __GNUC_STDC_INLINE__ +// or __GNUC_GNU_INLINE is not a good enough check for gcc because gcc versions +// older than 4.3 may define these macros and still not guarantee GNU inlining +// semantics. +// +// clang++ identifies itself as gcc-4.2, but has support for GNU inlining +// semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and +// __GNUC_GNU_INLINE__ macro definitions. + +// GCC 4.3 and above allow passing all anonymous arguments of an +// __extern_always_inline function to some other vararg function. + +// It is possible to compile containing GCC extensions even if GCC is +// run in pedantic mode if the uses are carefully marked using the +// `__extension__' keyword. But this is not generally available before +// version 2.8. + +// __restrict is known in EGCS 1.2 and above. + +// ISO C99 also allows to declare arrays as non-overlapping. The syntax is +// array_name[restrict] +// GCC 3.1 supports this. + +// Describes a char array whose address can safely be passed as the first +// argument to strncpy and strncat, as the char array is not necessarily +// a NUL-terminated string. + +// Undefine (also defined in libc-symbols.h). +// Copies attributes from the declaration or type referenced by +// the argument. + +// Determine the wordsize from the preprocessor defines. + +// Both x86-64 and x32 use the 64-bit system call interface. +// Properties of long double type. ldbl-96 version. +// Copyright (C) 2016-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// long double is distinct from double, so there is nothing to +// define here. + +// __glibc_macro_warning (MESSAGE) issues warning MESSAGE. This is +// intended for use in preprocessor macros. +// +// Note: MESSAGE must be a _single_ string; concatenation of string +// literals is not supported. + +// Generic selection (ISO C11) is a C-only feature, available in GCC +// since version 4.9. Previous versions do not provide generic +// selection, even though they might set __STDC_VERSION__ to 201112L, +// when in -std=c11 mode. Thus, we must check for !defined __GNUC__ +// when testing __STDC_VERSION__ for generic selection support. +// On the other hand, Clang also defines __GNUC__, so a clang-specific +// check is required to enable the use of generic selection. + +// If we don't have __REDIRECT, prototypes will be missing if +// __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64]. + +// Decide whether we can define 'extern inline' functions in headers. + +// This is here only because every header file already includes this one. +// Get the definitions of all the appropriate `__stub_FUNCTION' symbols. +// contains `#define __stub_FUNCTION' when FUNCTION is a stub +// that will always return failure (and set errno to ENOSYS). +// This file is automatically generated. +// This file selects the right generated file of `__stub_FUNCTION' macros +// based on the architecture being compiled for. + +// This file is automatically generated. +// It defines a symbol `__stub_FUNCTION' for each function +// in the C library which is a stub, meaning it will fail +// every time called, usually setting errno to ENOSYS. + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// Copyright (C) 1991-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Determine the wordsize from the preprocessor defines. + +// Both x86-64 and x32 use the 64-bit system call interface. +// Bit size of the time_t type at glibc build time, x86-64 and x32 case. +// Copyright (C) 2018-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// For others, time size is word size. + +// Convenience types. +type X__u_char = uint8 /* types.h:31:23 */ +type X__u_short = uint16 /* types.h:32:28 */ +type X__u_int = uint32 /* types.h:33:22 */ +type X__u_long = uint64 /* types.h:34:27 */ + +// Fixed-size types, underlying types depend on word size and compiler. +type X__int8_t = int8 /* types.h:37:21 */ +type X__uint8_t = uint8 /* types.h:38:23 */ +type X__int16_t = int16 /* types.h:39:26 */ +type X__uint16_t = uint16 /* types.h:40:28 */ +type X__int32_t = int32 /* types.h:41:20 */ +type X__uint32_t = uint32 /* types.h:42:22 */ +type X__int64_t = int64 /* types.h:44:25 */ +type X__uint64_t = uint64 /* types.h:45:27 */ + +// Smallest types with at least a given width. +type X__int_least8_t = X__int8_t /* types.h:52:18 */ +type X__uint_least8_t = X__uint8_t /* types.h:53:19 */ +type X__int_least16_t = X__int16_t /* types.h:54:19 */ +type X__uint_least16_t = X__uint16_t /* types.h:55:20 */ +type X__int_least32_t = X__int32_t /* types.h:56:19 */ +type X__uint_least32_t = X__uint32_t /* types.h:57:20 */ +type X__int_least64_t = X__int64_t /* types.h:58:19 */ +type X__uint_least64_t = X__uint64_t /* types.h:59:20 */ + +// quad_t is also 64 bits. +type X__quad_t = int64 /* types.h:63:18 */ +type X__u_quad_t = uint64 /* types.h:64:27 */ + +// Largest integral types. +type X__intmax_t = int64 /* types.h:72:18 */ +type X__uintmax_t = uint64 /* types.h:73:27 */ + +// The machine-dependent file defines __*_T_TYPE +// macros for each of the OS types we define below. The definitions +// of those macros must use the following macros for underlying types. +// We define __S_TYPE and __U_TYPE for the signed and unsigned +// variants of each of the following integer types on this machine. +// +// 16 -- "natural" 16-bit type (always short) +// 32 -- "natural" 32-bit type (always int) +// 64 -- "natural" 64-bit type (long or long long) +// LONG32 -- 32-bit type, traditionally long +// QUAD -- 64-bit type, traditionally long long +// WORD -- natural type of __WORDSIZE bits (int or long) +// LONGWORD -- type of __WORDSIZE bits, traditionally long +// +// We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the +// conventional uses of `long' or `long long' type modifiers match the +// types we define, even when a less-adorned type would be the same size. +// This matters for (somewhat) portably writing printf/scanf formats for +// these types, where using the appropriate l or ll format modifiers can +// make the typedefs and the formats match up across all GNU platforms. If +// we used `long' when it's 64 bits where `long long' is expected, then the +// compiler would warn about the formats not matching the argument types, +// and the programmer changing them to shut up the compiler would break the +// program's portability. +// +// Here we assume what is presently the case in all the GCC configurations +// we support: long long is always 64 bits, long is always word/address size, +// and int is always 32 bits. + +// No need to mark the typedef with __extension__. +// bits/typesizes.h -- underlying types for *_t. Linux/x86-64 version. +// Copyright (C) 2012-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// See for the meaning of these macros. This file exists so +// that need not vary across different GNU platforms. + +// X32 kernel interface is 64-bit. + +// Tell the libc code that off_t and off64_t are actually the same type +// for all ABI purposes, even if possibly expressed as different base types +// for C type-checking purposes. + +// Same for ino_t and ino64_t. + +// And for __rlim_t and __rlim64_t. + +// And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t. + +// Number of descriptors that can fit in an `fd_set'. + +// bits/time64.h -- underlying types for __time64_t. Generic version. +// Copyright (C) 2018-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Define __TIME64_T_TYPE so that it is always a 64-bit type. + +// If we already have 64-bit time type then use it. + +type X__dev_t = uint64 /* types.h:145:25 */ // Type of device numbers. +type X__uid_t = uint32 /* types.h:146:25 */ // Type of user identifications. +type X__gid_t = uint32 /* types.h:147:25 */ // Type of group identifications. +type X__ino_t = uint64 /* types.h:148:25 */ // Type of file serial numbers. +type X__ino64_t = uint64 /* types.h:149:27 */ // Type of file serial numbers (LFS). +type X__mode_t = uint32 /* types.h:150:26 */ // Type of file attribute bitmasks. +type X__nlink_t = uint64 /* types.h:151:27 */ // Type of file link counts. +type X__off_t = int64 /* types.h:152:25 */ // Type of file sizes and offsets. +type X__off64_t = int64 /* types.h:153:27 */ // Type of file sizes and offsets (LFS). +type X__pid_t = int32 /* types.h:154:25 */ // Type of process identifications. +type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs. +type X__clock_t = int64 /* types.h:156:27 */ // Type of CPU usage counts. +type X__rlim_t = uint64 /* types.h:157:26 */ // Type for resource measurement. +type X__rlim64_t = uint64 /* types.h:158:28 */ // Type for resource measurement (LFS). +type X__id_t = uint32 /* types.h:159:24 */ // General type for IDs. +type X__time_t = int64 /* types.h:160:26 */ // Seconds since the Epoch. +type X__useconds_t = uint32 /* types.h:161:30 */ // Count of microseconds. +type X__suseconds_t = int64 /* types.h:162:31 */ // Signed count of microseconds. + +type X__daddr_t = int32 /* types.h:164:27 */ // The type of a disk address. +type X__key_t = int32 /* types.h:165:25 */ // Type of an IPC key. + +// Clock ID used in clock and timer functions. +type X__clockid_t = int32 /* types.h:168:29 */ + +// Timer ID returned by `timer_create'. +type X__timer_t = uintptr /* types.h:171:12 */ + +// Type to represent block size. +type X__blksize_t = int64 /* types.h:174:29 */ + +// Types from the Large File Support interface. + +// Type to count number of disk blocks. +type X__blkcnt_t = int64 /* types.h:179:28 */ +type X__blkcnt64_t = int64 /* types.h:180:30 */ + +// Type to count file system blocks. +type X__fsblkcnt_t = uint64 /* types.h:183:30 */ +type X__fsblkcnt64_t = uint64 /* types.h:184:32 */ + +// Type to count file system nodes. +type X__fsfilcnt_t = uint64 /* types.h:187:30 */ +type X__fsfilcnt64_t = uint64 /* types.h:188:32 */ + +// Type of miscellaneous file system fields. +type X__fsword_t = int64 /* types.h:191:28 */ + +type X__ssize_t = int64 /* types.h:193:27 */ // Type of a byte count, or error. + +// Signed long type used in system calls. +type X__syscall_slong_t = int64 /* types.h:196:33 */ +// Unsigned long type used in system calls. +type X__syscall_ulong_t = uint64 /* types.h:198:33 */ + +// These few don't really vary by system, they always correspond +// +// to one of the other defined types. +type X__loff_t = X__off64_t /* types.h:202:19 */ // Type of file sizes and offsets (LFS). +type X__caddr_t = uintptr /* types.h:203:14 */ + +// Duplicates info from stdint.h but this is used in unistd.h. +type X__intptr_t = int64 /* types.h:206:25 */ + +// Duplicate info from sys/socket.h. +type X__socklen_t = uint32 /* types.h:209:23 */ + +// C99: An integer type that can be accessed as an atomic entity, +// +// even in the presence of asynchronous interrupts. +// It is not currently necessary for this to be machine-specific. +type X__sig_atomic_t = int32 /* types.h:214:13 */ + +// Seconds since the Epoch, visible to user code when time_t is too +// narrow only for consistency with the old way of widening too-narrow +// types. User code should never use __time64_t. + +// Some versions of stddef.h provide wint_t, even though neither the +// C nor C++ standards, nor POSIX, specifies this. We assume that +// stddef.h will define the macro _WINT_T if and only if it provides +// wint_t, and conversely, that it will avoid providing wint_t if +// _WINT_T is already defined. + +// Integral type unchanged by default argument promotions that can +// hold any value corresponding to members of the extended character +// set, as well as at least one value that does not correspond to any +// member of the extended character set. + +type Wint_t = uint32 /* wint_t.h:20:23 */ + +// Constant expression of type `wint_t' whose value does not correspond +// to any member of the extended character set. + +// Some definitions from this header also appear in in +// Unix98 mode. +// Copyright (C) 1996-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// ISO C99 Standard: 7.25 +// Wide character classification and mapping utilities + +// bits/types.h -- definitions of __*_t types underlying *_t types. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Never include this file directly; use instead. + +// The definitions in this header are specified to appear in +// in ISO C99, but in in Unix98. _GNU_SOURCE follows C99. + +// Scalar type that can hold values which represent locale-specific +// +// character classifications. +type Wctype_t = uint64 /* wctype-wchar.h:38:27 */ + +// Extensible wide-character mapping functions: 7.15.3.2. + +// Scalar type that can hold values which represent locale-specific +// +// character mappings. +type Wctrans_t = uintptr /* wctype.h:48:25 */ + +// POSIX.1-2008 extended locale interface (see locale.h). +// Definition of locale_t. +// Copyright (C) 2017-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// Definition of struct __locale_struct and __locale_t. +// Copyright (C) 1997-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// Contributed by Ulrich Drepper , 1997. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// . + +// POSIX.1-2008: the locale_t type, representing a locale context +// (implementation-namespace version). This type should be treated +// as opaque by applications; some details are exposed for the sake of +// efficiency in e.g. ctype functions. + +type X__locale_struct = struct { + F__locales [13]uintptr + F__ctype_b uintptr + F__ctype_tolower uintptr + F__ctype_toupper uintptr + F__names [13]uintptr +} /* __locale_t.h:28:1 */ + +type X__locale_t = uintptr /* __locale_t.h:42:32 */ + +type Locale_t = X__locale_t /* locale_t.h:24:20 */ + +var _ int8 /* gen.c:2:13: */ diff --git a/vendor/modernc.org/mathutil/Makefile b/vendor/modernc.org/mathutil/Makefile index 879017db7..0e144134c 100644 --- a/vendor/modernc.org/mathutil/Makefile +++ b/vendor/modernc.org/mathutil/Makefile @@ -28,7 +28,7 @@ cpu: clean go tool pprof -lines *.test cpu.out edit: - @ 1>/dev/null 2>/dev/null gvim -p Makefile *.go & + @ 1>/dev/null 2>/dev/null gvim -p Makefile go.mod builder.json *.go & editor: gofmt -l -s -w *.go diff --git a/vendor/modernc.org/mathutil/builder.json b/vendor/modernc.org/mathutil/builder.json new file mode 100644 index 000000000..029d1414e --- /dev/null +++ b/vendor/modernc.org/mathutil/builder.json @@ -0,0 +1,6 @@ +{ + "autogen": "", + "autoupdate": ".", + "autotag": ".", + "test": "." +} diff --git a/vendor/modernc.org/mathutil/mathutil.go b/vendor/modernc.org/mathutil/mathutil.go index 6db664093..a73c8a6e1 100644 --- a/vendor/modernc.org/mathutil/mathutil.go +++ b/vendor/modernc.org/mathutil/mathutil.go @@ -5,7 +5,7 @@ // Package mathutil provides utilities supplementing the standard 'math' and // 'math/rand' packages. // -// Release history and compatibility issues +// # Release history and compatibility issues // // 2020-12-20 v1.2.1 fixes MulOverflowInt64. // @@ -14,50 +14,52 @@ // 2018-10-21 Added BinaryLog // // 2018-04-25: New functions for determining Max/Min of nullable values. Ex: -// func MaxPtr(a, b *int) *int { -// func MinPtr(a, b *int) *int { -// func MaxBytePtr(a, b *byte) *byte { -// func MinBytePtr(a, b *byte) *byte { -// ... +// +// func MaxPtr(a, b *int) *int { +// func MinPtr(a, b *int) *int { +// func MaxBytePtr(a, b *byte) *byte { +// func MinBytePtr(a, b *byte) *byte { +// ... // // 2017-10-14: New variadic functions for Max/Min. Ex: -// func MaxVal(val int, vals ...int) int { -// func MinVal(val int, vals ...int) int { -// func MaxByteVal(val byte, vals ...byte) byte { -// func MinByteVal(val byte, vals ...byte) byte { -// ... +// +// func MaxVal(val int, vals ...int) int { +// func MinVal(val int, vals ...int) int { +// func MaxByteVal(val byte, vals ...byte) byte { +// func MinByteVal(val byte, vals ...byte) byte { +// ... // // 2016-10-10: New functions QuadPolyDiscriminant and QuadPolyFactors. // // 2013-12-13: The following functions have been REMOVED // -// func Uint64ToBigInt(n uint64) *big.Int -// func Uint64FromBigInt(n *big.Int) (uint64, bool) +// func Uint64ToBigInt(n uint64) *big.Int +// func Uint64FromBigInt(n *big.Int) (uint64, bool) // // 2013-05-13: The following functions are now DEPRECATED // -// func Uint64ToBigInt(n uint64) *big.Int -// func Uint64FromBigInt(n *big.Int) (uint64, bool) +// func Uint64ToBigInt(n uint64) *big.Int +// func Uint64FromBigInt(n *big.Int) (uint64, bool) // // These functions will be REMOVED with Go release 1.1+1. // // 2013-01-21: The following functions have been REMOVED // -// func MaxInt() int -// func MinInt() int -// func MaxUint() uint -// func UintPtrBits() int +// func MaxInt() int +// func MinInt() int +// func MaxUint() uint +// func UintPtrBits() int // // They are now replaced by untyped constants // -// MaxInt -// MinInt -// MaxUint -// UintPtrBits +// MaxInt +// MinInt +// MaxUint +// UintPtrBits // // Additionally one more untyped constant was added // -// IntBits +// IntBits // // This change breaks any existing code depending on the above removed // functions. They should have not been published in the first place, that was @@ -71,8 +73,8 @@ // 1.0.3+1 and REMOVED with Go release 1.0.3+2, b/c of // http://code.google.com/p/go/source/detail?r=954a79ee3ea8 // -// func Uint64ToBigInt(n uint64) *big.Int -// func Uint64FromBigInt(n *big.Int) (uint64, bool) +// func Uint64ToBigInt(n uint64) *big.Int +// func Uint64FromBigInt(n *big.Int) (uint64, bool) package mathutil // import "modernc.org/mathutil" import ( @@ -507,20 +509,20 @@ k == 1. Wrt pseudocode shown at http://en.wikipedia.org/wiki/Miller-Rabin_primality_test#Algorithm_and_running_time - Input: n > 3, an odd integer to be tested for primality; - Input: k, a parameter that determines the accuracy of the test - Output: composite if n is composite, otherwise probably prime - write n − 1 as 2^s·d with d odd by factoring powers of 2 from n − 1 - LOOP: repeat k times: - pick a random integer a in the range [2, n − 2] - x ← a^d mod n - if x = 1 or x = n − 1 then do next LOOP - for r = 1 .. s − 1 - x ← x^2 mod n - if x = 1 then return composite - if x = n − 1 then do next LOOP - return composite - return probably prime + Input: n > 3, an odd integer to be tested for primality; + Input: k, a parameter that determines the accuracy of the test + Output: composite if n is composite, otherwise probably prime + write n − 1 as 2^s·d with d odd by factoring powers of 2 from n − 1 + LOOP: repeat k times: + pick a random integer a in the range [2, n − 2] + x ← a^d mod n + if x = 1 or x = n − 1 then do next LOOP + for r = 1 .. s − 1 + x ← x^2 mod n + if x = 1 then return composite + if x = n − 1 then do next LOOP + return composite + return probably prime ... this function behaves like passing 1 for 'k' and additionally a fixed/non-random 'a'. Otherwise it's the same algorithm. @@ -1385,7 +1387,7 @@ func ClampInt64(v, lo, hi int64) int64 { // ToBase produces n in base b. For example // -// ToBase(2047, 22) -> [1, 5, 4] +// ToBase(2047, 22) -> [1, 5, 4] // // 1 * 22^0 1 // 5 * 22^1 110 diff --git a/vendor/modernc.org/mathutil/rat.go b/vendor/modernc.org/mathutil/rat.go index 2f3742f72..a4829ec19 100644 --- a/vendor/modernc.org/mathutil/rat.go +++ b/vendor/modernc.org/mathutil/rat.go @@ -6,10 +6,9 @@ package mathutil // import "modernc.org/mathutil" // QCmpUint32 compares a/b and c/d and returns: // -// -1 if a/b < c/d -// 0 if a/b == c/d -// +1 if a/b > c/d -// +// -1 if a/b < c/d +// 0 if a/b == c/d +// +1 if a/b > c/d func QCmpUint32(a, b, c, d uint32) int { switch x, y := uint64(a)*uint64(d), uint64(b)*uint64(c); { case x < y: diff --git a/vendor/modernc.org/mathutil/rnd.go b/vendor/modernc.org/mathutil/rnd.go index 598bad4fe..08454cd81 100644 --- a/vendor/modernc.org/mathutil/rnd.go +++ b/vendor/modernc.org/mathutil/rnd.go @@ -15,12 +15,12 @@ import ( // this code doesn't produce values at constant delta (mod cycle length). // The 32 bit limit is per this implementation, the algorithm used has no intrinsic limit on the cycle size. // Properties include: -// - Adjustable limits on creation (hi, lo). -// - Positionable/randomly accessible (Pos, Seek). -// - Repeatable (deterministic). -// - Can run forward or backward (Next, Prev). -// - For a billion numbers cycle the Next/Prev PRN can be produced in cca 100-150ns. -// That's like 5-10 times slower compared to PRNs generated using the (non FC) rand package. +// - Adjustable limits on creation (hi, lo). +// - Positionable/randomly accessible (Pos, Seek). +// - Repeatable (deterministic). +// - Can run forward or backward (Next, Prev). +// - For a billion numbers cycle the Next/Prev PRN can be produced in cca 100-150ns. +// That's like 5-10 times slower compared to PRNs generated using the (non FC) rand package. type FC32 struct { cycle int64 // On average: 3 * delta / 2, (HQ: 2 * delta) delta int64 // hi - lo diff --git a/vendor/modernc.org/memory/AUTHORS b/vendor/modernc.org/memory/AUTHORS index 06687a287..1c9e7bf33 100644 --- a/vendor/modernc.org/memory/AUTHORS +++ b/vendor/modernc.org/memory/AUTHORS @@ -8,6 +8,8 @@ # # Please keep the list sorted. +Chris Waldon +Gleb Sakhnov Jan Mercl <0xjnml@gmail.com> +Scot C Bontrager Steffen Butzer -Gleb Sakhnov diff --git a/vendor/modernc.org/memory/CONTRIBUTORS b/vendor/modernc.org/memory/CONTRIBUTORS index 56ea0f100..df91c088f 100644 --- a/vendor/modernc.org/memory/CONTRIBUTORS +++ b/vendor/modernc.org/memory/CONTRIBUTORS @@ -7,7 +7,9 @@ # Please keep the list sorted. Anup Kodlekere +Chris Waldon +Gleb Sakhnov Jan Mercl <0xjnml@gmail.com> +Scot C Bontrager Steffen Butzer ZHU Zijia -Gleb Sakhnov diff --git a/vendor/modernc.org/memory/LICENSE-LOGO b/vendor/modernc.org/memory/LICENSE-LOGO new file mode 100644 index 000000000..ec496d173 --- /dev/null +++ b/vendor/modernc.org/memory/LICENSE-LOGO @@ -0,0 +1 @@ +https://commons.wikimedia.org/wiki/File:Memory_infra_logo.png diff --git a/vendor/modernc.org/memory/Makefile b/vendor/modernc.org/memory/Makefile index 466c940e9..40a91322c 100644 --- a/vendor/modernc.org/memory/Makefile +++ b/vendor/modernc.org/memory/Makefile @@ -2,7 +2,7 @@ # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. -.PHONY: all clean cover cpu editor internalError later mem nuke todo edit +.PHONY: all clean cover cpu editor internalError later mem nuke todo edit build_all_targets grep=--include=*.go --include=*.l --include=*.y --include=*.yy ngrep='TODOOK\|parser\.go\|scanner\.go\|.*_string\.go' @@ -30,34 +30,66 @@ cpu: clean go tool pprof -lines *.test cpu.out edit: - @ 1>/dev/null 2>/dev/null gvim -p Makefile *.go & + @ 1>/dev/null 2>/dev/null gvim -p Makefile go.mod builder.json *.go & editor: gofmt -l -s -w *.go + +build_all_targets: GOOS=darwin GOARCH=amd64 go build + GOOS=darwin GOARCH=amd64 staticcheck GOOS=darwin GOARCH=arm64 go build + GOOS=darwin GOARCH=arm64 staticcheck GOOS=freebsd GOARCH=386 go build + GOOS=freebsd GOARCH=386 staticcheck GOOS=freebsd GOARCH=amd64 go build + GOOS=freebsd GOARCH=amd64 staticcheck GOOS=freebsd GOARCH=arm go build + GOOS=freebsd GOARCH=arm staticcheck GOOS=freebsd GOARCH=arm64 go build + GOOS=freebsd GOARCH=arm64 staticcheck GOOS=illumos GOARCH=amd64 go build + GOOS=illumos GOARCH=amd64 staticcheck GOOS=linux GOARCH=386 go build + GOOS=linux GOARCH=386 staticcheck GOOS=linux GOARCH=amd64 go build + GOOS=linux GOARCH=amd64 staticcheck GOOS=linux GOARCH=arm go build + GOOS=linux GOARCH=arm staticcheck GOOS=linux GOARCH=arm64 go build + GOOS=linux GOARCH=arm64 staticcheck + GOOS=linux GOARCH=loong64 go build + GOOS=linux GOARCH=loong64 staticcheck GOOS=linux GOARCH=mips go build + GOOS=linux GOARCH=mips staticcheck GOOS=linux GOARCH=mips64le go build + GOOS=linux GOARCH=mips64le staticcheck GOOS=linux GOARCH=mipsle go build + GOOS=linux GOARCH=mipsle staticcheck + GOOS=linux GOARCH=ppc64le go build + GOOS=linux GOARCH=ppc64le staticcheck GOOS=linux GOARCH=riscv64 go build + GOOS=linux GOARCH=riscv64 staticcheck GOOS=linux GOARCH=s390x go build + GOOS=linux GOARCH=s390x staticcheck GOOS=netbsd GOARCH=386 go build + GOOS=netbsd GOARCH=386 staticcheck GOOS=netbsd GOARCH=amd64 go build + GOOS=netbsd GOARCH=amd64 staticcheck GOOS=netbsd GOARCH=arm go build + GOOS=netbsd GOARCH=arm staticcheck GOOS=openbsd GOARCH=386 go build + GOOS=openbsd GOARCH=386 staticcheck GOOS=openbsd GOARCH=amd64 go build + GOOS=openbsd GOARCH=amd64 staticcheck GOOS=openbsd GOARCH=arm64 go build + GOOS=openbsd GOARCH=arm64 staticcheck GOOS=windows GOARCH=386 go build + GOOS=windows GOARCH=386 staticcheck GOOS=windows GOARCH=amd64 go build + GOOS=windows GOARCH=amd64 staticcheck + GOOS=windows GOARCH=arm64 go build + GOOS=windows GOARCH=arm64 staticcheck internalError: egrep -ho '"internal error.*"' *.go | sort | cat -n diff --git a/vendor/modernc.org/memory/README.md b/vendor/modernc.org/memory/README.md index 9354a3650..02c301256 100644 --- a/vendor/modernc.org/memory/README.md +++ b/vendor/modernc.org/memory/README.md @@ -1,4 +1,4 @@ -# memory +![logo-png](logo.png) Package memory implements a memory allocator. @@ -10,4 +10,4 @@ Installation $ go get modernc.org/memory -Documentation: [godoc.org/modernc.org/memory](http://godoc.org/modernc.org/memory) +[![Go Reference](https://pkg.go.dev/badge/modernc.org/memory.0.svg)](https://pkg.go.dev/modernc.org/memory) diff --git a/vendor/modernc.org/memory/builder.json b/vendor/modernc.org/memory/builder.json new file mode 100644 index 000000000..029d1414e --- /dev/null +++ b/vendor/modernc.org/memory/builder.json @@ -0,0 +1,6 @@ +{ + "autogen": "", + "autoupdate": ".", + "autotag": ".", + "test": "." +} diff --git a/vendor/modernc.org/memory/logo.png b/vendor/modernc.org/memory/logo.png new file mode 100644 index 0000000000000000000000000000000000000000..ba4eb2013e458967edff1047cca303008b9979e1 GIT binary patch literal 11369 zcmYLPWl)<53e0RXVX`^HPadcoBF#+v>3Y#?B41fN56Xq31f1DSB; zBct*+-aDR|RUd3@m6ZmSf-wBxP1q`tTpC-?3DQyI_+S5>pR8@4(0~Nklp0&N;PxUq zVySU8&DtfquS~=DWN_$07I!i@iU>qHP6)RS4Wq4q+5enztUc3_=psbMl}6~+Kv|0} zO5^|f=-F8*&qdFJp=6AHzgrG2sdn=QkS9pWmAta_7?UGu%G`L^^~KHwoV0%74wKbL z+GI3}9Dbv;SxxNZNf6daZdP$7k>~h`$;Vh+oEwcreNc)ML_+mxNfq@@?roJBD>A6i9pL+28}QcAwE zv3`$`rwP}|FpdUo1>rEX+afpIod# za`MV*x&e4(000OeFALG~SUUD~_tDZ`dcIv@P0ivH(O@8;U>~9UU^sk zp)8Rj^Y;HvouzcL{&g?7x)Tr>K*5%BR-6jYR#!ojRbfD~%(RyS_@J*CU(RELCFNbs z!bIOrW)IqerycMrQ+gbd<}dSXCmrB{XDIe{M`CWDq`lR#k@PI11GpH@*?rrK@{rp9 z;MQ>FOH&0!r&n~`{iOq|>PvXBQxSCk^;ne8G?5+7I0q^8_ecBy*7m(0_DN7Q7vA@MhT=db8ESE; zm!a=jM9+LBC|_yFV{3=Dn;_pJTR%lAcqlQ-JT*gA@`+^s)2AaBnzNR(+GFnA;VDV; zGB9h0p$m$AmI%7Q8SV)eUSs2W=*v!z1y94~1JZ~4MXTH?7}on$gDBeLd*6j~sn#7g zr7_xxr<>J-UQJBZkG-L~VVUy}gnvcOo{9*d@vPlX{LEE1`BE}a>0EYgwyNu!fgCLu zvvPmZhpI3ASR&M4O?R(#Ro{N~K50f5aAb21-iUWMl5H-3I@FCL)x~dky$G!Dd1jgV zBXen0P(xErCDaxjGrcxLT-9eN8R2n@O|*rVRFz}oszyM2^eTXXjQy%!Pp zh!r0aTF5-bd7nRLk(G}CEfKvDS1%?dWxjtk^SFEj>4m$`8ad% z{)AxG#3FFEwPojeU&*<8@cKBfJ`Wpjx+wvE3Viy?g(M{jN4)ZVIjJVIawt7y7kveF z!}E1g=)k%eF@Np`3C=<(_I-|42?(R7>M|`oB}#rVAMEl2E~wy`lY2C*Mv$)%H1+B4 zXkT6ueZa4wLXg?dXvlj@F^mCT;t{nxq)DP;7G5fim+*stb+83M;S9b;kknYTF#+=~Zg=j)G zv@#4VtSgTkjgk!~d?~ew!9m&0L0<3%DnoFWULgusFDsupH+ky`UJqf-v$UqNRtECE z6DbR_TS?_a$N{Ifnx-M=i1b%#Q6hce2{SlEE>kqPU%ehp7BEgT2*ry`uL0gSC zAG<^!cHl;paz>^|7pI0@ZF(w|RC65_RojVIPCTDoa1idVOCdwXx48~E4tElIp9Oy! z3*+vO6av9wkn91>56^0eaRh-YcUo>W;ep|4<^R-N%aT$PdgV)oSjoL_k;$DkQ4SR* zS8T$_na2|xt*hX$NZznf+{&||=@F`oES{60I6Yj6_(LF-Uh(Z{U5 z(#j6Lqqd#jzc+&Hp0SYkyPo*_^=eO5Wgsom0a9f?0wf4BuKvhZ>>GQ>G;T(;kCo3o z61Qtq$kViIPxQlfuEw1avj+$L4Q8#mc;B(|mZN^EDuBrBR+^CZbz?%8wuBSg0`YYk z8IWP<9kwiTmELgH@Y)KRdaFN3`^>7zTYq%@ViEdgdgOg4;kIZ#dcLTyXq1D{G44Mv zJHp<@J+#!0wI9Fgo z2?p3b>SDm=*|o^i2~ekjgsi%y7EVy)uDVaU45I9~vfKWz$WFT<73A%XAyQvmomiBT zz+$t7TkXN90s=VxRXlIr0Dl!3;%4e!%nM6LNW^y)O$GAqa9HAai}DZG)TkL4ygh0= za1k5*?j-pr*RdcTPkKW}}lB&M6_>?rx#h+~$?MB?# zl}w44&CSh|1C)!HOj*oQ^n#KUo+bK7rIcrVEreubFFPn>(EfUQ!WFt5-=%v`N~nx? zgQ&k~)&`QGI$DV2Xt7yr3JxU%x0M+Xe1)SaakRhp*3a@C0vQgm#udh*lYy;$vZ<8) z#ltUZ`1F~q3{2@XNR@)Qma{EE8j*8PTxW#z`%b)Gef=<_hP7!gYF`_C1Fqew%g+Lo z>O6iN(+=rFBr|_5b5>uiF)GcFo06}1U_d6$-zRmp(yq2k^p2Nml=LMXT6NbrA}b2+ zUp7zeA7C@cqUtj_!x-D2j!}w5bm*~Rs;Y_u-yICm?Y{orw4vDxy``^V2*pK^eNQ-> z8N=@(V00-LZpgEqmenUQKb-3XNl0X-a-bNI`CUwqssFLY#-2W9ON)I)yj$a&z9R4V zq5Un$cPQb_-F58*q%_{G@zfu!iT8VZgqQ75AE02m0qfAlPm0 zX5z;|Xu7bS^wP{!c=dN=P^MgZt1utTp-k36O>zosD1PwS#$vO+u8yR0{S2LPjB;e9 ztzm7@&M=M`rJ8?W(F-Bt8Y1gSx2aaYgEdm8>sLL3qQhmLEj)TyQ&-1!9 z6|sm!oUYbVWud;BL81T!8;F8313xPHh#&#Dqth z3HdtNQFyggRFPV66#e{-@acpT0Saw1vWx=n@9#}_zackS-gA(15WyVODbAc8hpL>Y zXo`A%BibPIlEsqPH~ZHj>OLPAJdY0!dR9{Bk>3~iXJMG=?4QZ|vTE(J3;|BNzc;z; znbjS&f7zw1dMxkEYxTZM)JaU#eBjI3A%|6da)7VyH~ntgRn#GPRV1qs2s{@fUY02S zg&rdPI_EVlZR~G^dBaFVk^)7Qsq9R#AgDhhy89bK5+W4$I$x(Z!5mU18sNJV&}Dn; z%&Oynbw&xeVnSldmv8tb$|_2c@qQ@o0Pu$n&z=L)rx|JPtP!3%)(mAKxq!O_braB| z1QU=8q*y6)Qy|ze!f<@wY9Zl=PVT;2{<d9@KYvC7^HVmM3`a-c3c9 zV6XKluIyWIS!W*RA94Ji&-HknfqmAFv!kD2EuL7*pA6f`%Ez;+I?D9wNl9bk%eDOF z8B|WiBY!e^P7m&Kd9Vr`Pcw6Y}%e2KU_ucoUm#rz&TY!~k+m6+rqHg?J$ z9s?t1!RJk7l92z32aZxmZ^>SA#vfQw(xdcBkTM>B_bhpT*L+6j%Qgm=WZG{cN#5*88Q$UXbj_ zQfynoQ||N~t`U8LUhu;l$P=Kv^}GaYBi# zNOHn#N(|C}Hoe3HPLtLGHMU6<6cj9@)R=kdRWVf@g-lAYOB)U@wsRVuU!z`%5pLj{7fe%UhJY zV>t)u{=c+uu3Al(4Y7)Tv5x$!N!mm#|B8d%^O(FL^53EhzJAC{6 zkUrqzG;*e&R-@RPOT@gTCaX`Ln+5Lkq$- zU86gRoDIE9x%zTK{El0`kK^h@VO`t0il<>tlcR-jUmYs@x6LF%>2?c$+dThZy}g*s z*XSm}Fp_AZIn9=QxK7tYX+x*grM0>S1rCJmaI*9G zk`gaxwRgfHZ2ZJ*->|q+6w#>D;I@iviAd5IS3kb9qaaE}-_#Ik%FypqlHtm#hdqCoN%0Sg=tHc$*j^)d7OPCQzJk)cv4<7fZ+Bj@y~6ZHUJZrJzA zP?6tEAs3(J6I3DZe(whTDo#y`$S|fz+O0awr~kt7i3nB%U(1KTFHa7ckaecN;H#m~ zp$7%j9I&GzI`7Vfii05cYhM<@_lF;hdW&NE)vWqzHMh!oNvHajjEy5}-7vG8ew491 z!CuGt6&9i$X1~Y3%){is|hKvy4HK(!aCoJ2YE7|J+_kp_t6^ zt`i6J7$)`L|DE3$d7p$n%fo>ovNgRo@anH8w8{CWM#<%_2GRufgz5HA+}?4U?qYS1 z`|~1GK1HbN^$qER%WYv*J$96wVT?BP^7}P31?w)+0z1p=LS7&Bv{Ci>9ozRnsk@uA zuTnTj`@YDr#vFgSqItc3mil^8C1!@384KaIGO;EB%gC7E2`jI}mJZ&kNc&3a^W~oW-}0}us0)q1$RVvaJ^(`_B7$&4?z#HKQl)LdQksDQMOdM?Hg9RxBQ>ou#s z3n;=NA)`fiwtY)-4@VD)G#!IOE*0~mA%T*~tl`{7NSP{Gwnp^|F|tuWOflAl-D^(< z%gY08Kcm!g+9LQAqp?usOPNdV%b`iYe2ST_CC>`Y7{^#ONiBtKD)NkwatM**z@n8+ z_`m?`Z~vi(J&8O%BO(|QrxGAygj=A28H-b~*4FkmdV~s?2f}$Vkfm^t#3Di1R7o@W zN)NOao|Hu5NjhyVySd;LuFO}vKL2Be5aLzCi)2P#iTaT~mY8C{hIKI5DFl?(eSp8^ z&_jTR@Gc1tOtK|6y9(f^=82;0>$5g@x-Kj%G%+wj3YSKL2fj2EaR0m%G4A*q{k{&; zf(z-5>nQ&^uwL+%Ja5#?jN7kPFi>rl$E2iM1|dHD1%O#G&Fu?iEZnBrf_zsK4^2CA z;|f|teB)mXAuYeyy2P~I)9}?r;8k|zzc)C)oKaR^1xT)Yg734+)toZ?jewC~B`o$% zk}(nfXLLvJXlE$Sk7lf!62SNVTutcbUc|&|htW*bl0GofxTnW|Cj%LO=h30ltXWIV zm~RNd_bV&%O_v96IP~MWNY4UqJ#CljoEAK3^wr=4^A%yNyd;Qcp9$I*z*AurnnI_p ziJqgN52Ak9S$_AdFBo1N$VO6E#BwUkr;u9vtDqP6lt|Tq8}x3tzed$g=6q_qYWesj z`$#BIJm2t*1z=$!9Gqq-)#KbD1i5YWh64JjBga?ACU}QkTB=}>;vk8b0A_h7?kaFs~yeVwSkS)nx z?|x?skoKV9E2k!Ff+q0%Ny(Rv9gAVP|7&)l$#tOwJXe5X#SaUX!dW!@WyFPaQ9&uY z_hT@uFWsv1Y}((GM6ocvh%c@6w4I*D*ZAO9=fpqF?wf`ng8TG0Nwl*0wc=%w=HH2U z1+B^in)l!0jgYWJ$Hw-KQt(UD@4q+}M~iHLseR0Fq+-uZh7(=e95r`}GQ@Hs1DK~% zGgk3)4QI1YE$*a{K9WyPK1&H}VFq*ZQ+-X7m$S1oZ@yXr5^^BXAw^PMX8VR_ux!&N z&(ZBb`G-dtwF`m)x>sGE*aRfOG96PrdBq<)(T}|q&KI8^Yi1B+%3RVXfvjppif)hk zVYnw4tiPQ;bMm>I+X@+I>yVs2;KcA55aiA7JC0>6!VKQ3Bk#A7T|Z{x5Ql8El1pgR z`=tobp^jgWYWca43-YDvD>~@oZI2S-AZ{;T&s@8QmdF>8)1+g~ZeTKKEJ%t(sNVW9 zjzpv+W(Ey4j>#y6rW)q_+B*vD^)@0_%}EjpjPpg#J!K7ewCG%!bBACd1BmBW%eUyh zGNR%Wzi3=acm;?<2yUJC-_jY8k;psP_9zQ;$@o8?-9neDOc^TD{Ut7EqX^DN$H!Rq zKVf1|>ynQ49h8#Q!o>anA8wj=t359ZO?O?l5b_IkpZJxMQ5%c}UFtT-yp3O~R$a33 z?#R5u$2KDPy+>R1A61W?)FKP@xZxjc1ohLM%;>{<&zFz5rr;KQ|ISBVa>4tqHjRZ3 zOI4r$VCjSJQScuyr0&mqmC!Jdo;>y>eDs_-65zs-S`VziRrThZ_ya%Cl&xJV(Fr;mqQr!}9y>`S=T!*r<{SE=XG z81@Ckm|%|OL+vq*+Jy|j)KK#^TbJOSRJ@!+rA)(zoJUXpihz4*Js?}Ef9K&%eCl^B*au{R|CkRydAfeJQAHpW^s!^-L_b~6Cz%Ys1 zZS=mClpW%pi9PKc6G11qZ`T@m-rpTm^PfXt0y#`+^;KzEMZOQC$-)3h=#)d#REQ=6 zG{;1mw*hJC>0z`8oBHp5#~h5D>>ruS5^r;=JJ~s4s^L=%`cxx2pL6Ocif(A$*=4?M z4|dS2#wlC`zUaUu1babj6=2FOc2>N2J`W`vAPIJUY-rIA z5(r-v&Qvg4|{pmoC3a%7Zn)&p;IhV;{t%0pJ3QVWn|nn zc5t2BT%u2Ui3M1)6RNv)l_?OY((Iu^x+4N`4d?&bP1*uw((E0(4x%tgycVbzVh}Z) zXwz#CWX@CUhI+c(8AN-!tCER{i(6>MG1*{Wg=)>|PtkewEd8cNYVja5V9eRe3!f8W z_sB{KnaIj|U3cvYDd*!8u4FcFuO#@D5{E*23@;zB;{x0m@F~h1(;#7Pf^1jDKC^v`PV!SJ%Cv_Sqwhd1+ zv$*@6xY-G2ej`fJSf&RwE7SU=KED=x{0$uxEc!U0S5qbMeZCs3oB2xI{Ui>0W^e4u z-Ur4B1&FM!!G%@)1W*y;P$X;^_k@? zwX89?H{7E^+_hg=n1r>DFk@?p&l$jEv=2V zQo#uyJuBAP$hF}s1-decnS*WCV~?4;$0znv^2kfNbMQzS^rL)ptvr z{0l2hp4??9?WPc~viInMQVH-gvnM_1dJsX3O(y*mvE*xBB*LVaWj}RjaGc z(GhB>uI`QYQh{dZ_(2-#$uU+v2f)c4y#<4MahknbXmsyPgw_MC!an-9PA~6`yjSKc z_se5Bk*%1y?nH4;0Q$A??+C%op*Oeauawm51RG8E6W+X-x^nt+xaj4MLis1q)==h4 z-p2{#ulBkp+E4xf>BF9o;8s+=N955zoX1vnlemo7`O0DYkpRNaAw)#D0tcT%|hJDW#H z-E9PUoW;vY+e~*pkV%G9%cBF3y7URRi~?BJw8J|l*yo;RuN{=jdR$8};qDmSN7(1c zt)AQ}!kMNZ8cD(%uhKS9`#lMPwSf{Vw9*RHV-KF(*^{++{8U2N16NHx@dxlsuE%O> z7n#6PS{(Ge#pzq5%O!-gW)zL&mv*70+F8GP@u%6rN}riLl-nByLG9-_E)ZcF_u2aH z!*A$_#>U3{yq0NyDjkzdyRZHqcnSb&T>5krW84W5gIv)+RQ$Bn=@7w+IXoAa1&htueV4p@CENsJ zIey~O-eodEgt!Oyd*n7E(4xXmtfW`9u*(fNZSe3^r@scI^iJ`(aoPF972@XaP6txmG^*Ri^Nr%v$__dP*QIF zK+pLJGh}8BLgtC&{IO#Un~$&Fe{octdRtPvX&#t-Q7htTa;LfWYkJyoBGbLsIxa13 zb}8-5@7ffjXA;-q<7Y|xR1%l{DMo*?B#rKS6(KpkSyZ_32Re%RQ;OZoyw%F^|*=2b0w^D(Ismqkd?-jwY zv6!&iJPBl&aQ_|wEkT~UOcMZrCG;N`Kuj8bvRz-i!wN{M#6?3K;nhMD)Z*Bw8uwyKt+Mn=iVISSk zsxqu)&L=;&pu&U5)AMEeQKIt`xcetheP0J-wn_ge|1|uSqOj$`(0|E0@xPDAJ?Go! zONE>~z-#1+#>Ne1Ldt5w{$O0aITj+{#c%1hR;VYeO9Zx zpH8Zr&8oxwd2rvI&m5im@AS`B4R2Rs!e09^B3l3b7xN%K{E7xDIOp(i_FuI1rDk8eU_q@cRZIyG&KWgtdmZaF? zmG@>W8Q%HrhDHfVV9-_h>jRgqEOyJyIx`R>3eq>jsiS=@CeBa-r<-fvvztNZMxCAQ47_n z7uCarI=jA3>)Ua@%eI3$Bmyiby=TtDBT^;QT1+$@tcb}UxsyLSDcU~Iq|{Li7U{!> zi~FDP`{@4TacDtah#bX%vM;0#V8jcn1B>W|*75(84BWyIQuNKBKmpVzG-7&OI|g38 zAFRO?>}ssz#4BYI9vozMZ#_5wEGU^_&#MbCAHz{S;NOFJFT*`*LW2!)BB|39G1?Sw zTSUF&y55)gOJ`oQPB&o0tcTNWofxTzYm>m;2YDt^k~)UvBUN!`)CK(nl!AnT9w$yv z4gjg;pWwn54)j~4lCb`biPcRgUh4?Ish0Za>tB68=jzg{io}3Y-_^0}r?Xe&AZK&c z)aE~%9ghcve)dw>(05oz_x_N_ogBDBj)GR5Um}mve(GJQv!A46tju;Zs3zandP*l7brhG+#&EgF zl$+R}NzwMB!;RI|F*m436)Jt4P~7l&PvlFbs^dY7-^@3rbKyciWt>w8mq(@@2Y#b9 zFiFPu{$s9<&$-@AQ|H_W_g7A9xw`xCiK&CX9`D=>AB+@FbW}bHIMw`k-sknK2jG+t zd#Dv4zBQT+*2_$MTwgNCRL(k z)$Yr*QwUMm?#ADtw#XKAD>NO;HSn?d{01xGk#$!R67bH3k1ra7qP6iOquUJQ=D*qr zF!8VMo7mMN4Ia^2_TVs8MXQ`8%f9wnHdCQ1G*sjTpDKWGbhYU@BGLA!b)axdOA)!l ze^ni)A>i}AkeM-*Nk{qM-4w=t^IVpV)37CV*%=Thp#pxQQ>!Bg6hJPc@0y{*$~)hD z0zFZq4Bh=3!WpHV4f&&4Fws7KIJK#>(Q!DOqjC4E9;zOc(lOe9wK5*(?(=*`opC&~ zwal-|um&nPe0F=bHu$zm$amv0CO};*xc&80QGDiJwm3fik$7rsNh;oolpLjZUI)M- zO9@|}7=I$Sg^tEE!v4WzT>a)r?vU?nG=ifn%P6J{)f=3P`Tp4Q%%0{X+c`-er9XyZ z!HtjjcHA2JrEMm+quv{@SU2cjg*excf;XC*E@FEwPbGSUGkK@eUFb+fd$85@mU*+i z#)X4=HRO#ZV#09TM%`9$Q={TXGY6LR#MD%`p~>Jbh5@~dsAB*rZxWGXPEHc`-=_^d z1v*TIH?~M<@(5}`&r|wU^yDe3znlF@nExzQAn0(k~Uo zGYTM_=`h~c)k`mt9ooh~(UW~8jG2lb{MT<#oc^v^W}S6=I56j zjI_?nGGh@@ir)dDhNZb?4CAUK2>o+u#a%a{;zfnHSQWIwmUI+&Xj_#PT5 z%(|D&sz#Q{_s)(Uw(#*Lvfd$Cjjbh5(*>%Lh;bjv@{t|>Q?1zloJl9Dn4scI>YZCR zYuCmU!WqR*wpS5@-aQQDh&(A*v>%yA3BdOFmd6`P){V^wf$Y%{M2DNlW$Hp? zrL!v^`j@+px6=P>uP{rW*}7EZUnw&XF6dP6jBQYbiw%?;KT_fS{#N<%qk6c@-Ww{} zI%tuY!aD3Nq=a*nb<$h%t-mCYF4(a#=2kf2(%X7&EjP4S?^Wgji!Vb&+@FxclW87L zBY);ik(LV|FGnNdC_ohWET#JJ^nsX=6+duUH1LhgS4u1oRFf*)()8QbleV`TcvtqI z45`3j^{!)L!lv}suV1TmKUb#T9@c~v5y<+l^z}+bqw3G zz1Sq;E(U_)34JLelJ2M{>&7VbR-vWdEJYbVRgAVUT>#oYT@R0*Ckfq9_@pPf0ed#N zKyt8QDG+{l&}6(?E$Dc@b)1y&VVsP)Ij#_w1kQctpwtw`f&tBfm`9zy3V4@-EYFLq zH2n?NnsNh-5m)i;q{TT3oUa*xQx3=sT#U4K`l9v)9QlrN`4~m)E!OXSVDc~+>4k1N z$;P5luYo5M8=EsSLZ`_Lh9Y*ej&-}J8R#KzGJj+m1-|AEGYINxAd1BhXeEJtB{Wsj zxWOCaLMEF)0>1%TCRcja3a@04RCM;f>#DZDqs|?iSIjcbLcUf3ZfVnxevTk3O%Kup ze7UCI4nY?ARSB1WLofPrkw0(tZkz_OyyOUS3RRKv6=WmdrNv5S<*bg;$uNV7J*ogX zreLIUY1tp|yzHg$>sn;yWdV~%zjGw5lIaHtBU_}vP1Cct$v zYxRi!ERy;HCot&~2*Ak&)DWb5{3eOtal^~)7yw&P(TLyao^&jy8PE!&0Kg+C~{w~=)(`1JK jA6xVPiJKK__r~ao+uLM+_{m==rvQ1Vifo0nN#OqgUOkc3 literal 0 HcmV?d00001 diff --git a/vendor/modernc.org/memory/memory.go b/vendor/modernc.org/memory/memory.go index bbfaffcf7..6593c4234 100644 --- a/vendor/modernc.org/memory/memory.go +++ b/vendor/modernc.org/memory/memory.go @@ -4,125 +4,59 @@ // Package memory implements a memory allocator. // -// Build status +// # Build status // // available at https://modern-c.appspot.com/-/builder/?importpath=modernc.org%2fmemory // -// Changelog +// # Changelog // // 2017-10-03 Added alternative, unsafe.Pointer-based API. // // Package memory implements a memory allocator. // -// Changelog +// # Changelog // // 2017-10-03 Added alternative, unsafe.Pointer-based API. // -// Benchmarks +// # Benchmarks // -// AMD Ryzen 9 3900X 12-Core Processor × 24 -// -// jnml@3900x:~/src/modernc.org/memory$ date ; go version ; go test -run @ -bench . -benchmem |& tee log -// Fri Nov 20 17:23:04 CET 2020 -// go version go1.15.5 linux/amd64 -// goos: linux -// goarch: amd64 -// pkg: modernc.org/memory -// BenchmarkFree16-24 141188362 8.26 ns/op 0 B/op 0 allocs/op -// BenchmarkFree32-24 100000000 11.4 ns/op 0 B/op 0 allocs/op -// BenchmarkFree64-24 67160647 18.3 ns/op 0 B/op 0 allocs/op -// BenchmarkCalloc16-24 60612698 19.8 ns/op 0 B/op 0 allocs/op -// BenchmarkCalloc32-24 47968105 23.8 ns/op 0 B/op 0 allocs/op -// BenchmarkCalloc64-24 40752181 28.6 ns/op 0 B/op 0 allocs/op -// BenchmarkGoCalloc16-24 66487354 17.8 ns/op 16 B/op 1 allocs/op -// BenchmarkGoCalloc32-24 56009206 21.2 ns/op 32 B/op 1 allocs/op -// BenchmarkGoCalloc64-24 52086571 23.4 ns/op 64 B/op 1 allocs/op -// BenchmarkMalloc16-24 113943390 10.2 ns/op 0 B/op 0 allocs/op -// BenchmarkMalloc32-24 113520471 10.2 ns/op 0 B/op 0 allocs/op -// BenchmarkMalloc64-24 108787056 10.7 ns/op 0 B/op 0 allocs/op -// BenchmarkUintptrFree16-24 146110286 7.94 ns/op 0 B/op 0 allocs/op -// BenchmarkUintptrFree32-24 93052707 12.0 ns/op 0 B/op 0 allocs/op -// BenchmarkUintptrFree64-24 69805262 17.3 ns/op 0 B/op 0 allocs/op -// BenchmarkUintptrCalloc16-24 85282725 13.7 ns/op 0 B/op 0 allocs/op -// BenchmarkUintptrCalloc32-24 66489789 17.9 ns/op 0 B/op 0 allocs/op -// BenchmarkUintptrCalloc64-24 53561092 22.7 ns/op 0 B/op 0 allocs/op -// BenchmarkUintptrMalloc16-24 222978858 5.28 ns/op 0 B/op 0 allocs/op -// BenchmarkUintptrMalloc32-24 210443384 5.30 ns/op 0 B/op 0 allocs/op -// BenchmarkUintptrMalloc64-24 213706227 5.47 ns/op 0 B/op 0 allocs/op -// PASS -// ok modernc.org/memory 70.528s -// jnml@3900x:~/src/modernc.org/memory$ -// -// Intel® Core™ i5-4670 CPU @ 3.40GHz × 4 -// -// ==== jnml@4670:~/src/modernc.org/memory> date ; go version ; go test -run @ -bench . -benchmem |& tee log -// Sat Dec 8 12:56:53 CET 2018 -// go version go1.11.2 linux/amd64 -// goos: linux -// goarch: amd64 -// pkg: modernc.org/memory -// BenchmarkFree16-4 100000000 14.7 ns/op 0 B/op 0 allocs/op -// BenchmarkFree32-4 100000000 20.5 ns/op 0 B/op 0 allocs/op -// BenchmarkFree64-4 50000000 32.8 ns/op 0 B/op 0 allocs/op -// BenchmarkCalloc16-4 50000000 24.4 ns/op 0 B/op 0 allocs/op -// BenchmarkCalloc32-4 50000000 29.2 ns/op 0 B/op 0 allocs/op -// BenchmarkCalloc64-4 50000000 35.7 ns/op 0 B/op 0 allocs/op -// BenchmarkGoCalloc16-4 50000000 27.0 ns/op 16 B/op 1 allocs/op -// BenchmarkGoCalloc32-4 50000000 27.3 ns/op 32 B/op 1 allocs/op -// BenchmarkGoCalloc64-4 30000000 37.9 ns/op 64 B/op 1 allocs/op -// BenchmarkMalloc16-4 100000000 12.9 ns/op 0 B/op 0 allocs/op -// BenchmarkMalloc32-4 100000000 12.9 ns/op 0 B/op 0 allocs/op -// BenchmarkMalloc64-4 100000000 13.2 ns/op 0 B/op 0 allocs/op -// BenchmarkUintptrFree16-4 100000000 12.0 ns/op 0 B/op 0 allocs/op -// BenchmarkUintptrFree32-4 100000000 17.5 ns/op 0 B/op 0 allocs/op -// BenchmarkUintptrFree64-4 50000000 28.9 ns/op 0 B/op 0 allocs/op -// BenchmarkUintptrCalloc16-4 100000000 17.8 ns/op 0 B/op 0 allocs/op -// BenchmarkUintptrCalloc32-4 100000000 22.9 ns/op 0 B/op 0 allocs/op -// BenchmarkUintptrCalloc64-4 50000000 29.6 ns/op 0 B/op 0 allocs/op -// BenchmarkUintptrMalloc16-4 200000000 7.31 ns/op 0 B/op 0 allocs/op -// BenchmarkUintptrMalloc32-4 200000000 7.47 ns/op 0 B/op 0 allocs/op -// BenchmarkUintptrMalloc64-4 200000000 7.68 ns/op 0 B/op 0 allocs/op -// PASS -// ok modernc.org/memory 73.859s -// // -// Intel® Xeon(R) CPU E5-1650 v2 @ 3.50GHz × 12 -// -// ==== jnml@e5-1650:~/src/modernc.org/memory> date ; go version ; go test -run @ -bench . -benchmem -// Fri Dec 7 14:18:50 CET 2018 -// go version go1.11.2 linux/amd64 -// goos: linux -// goarch: amd64 -// pkg: modernc.org/memory -// BenchmarkFree16-12 100000000 16.7 ns/op 0 B/op 0 allocs/op -// BenchmarkFree32-12 50000000 25.0 ns/op 0 B/op 0 allocs/op -// BenchmarkFree64-12 30000000 39.7 ns/op 0 B/op 0 allocs/op -// BenchmarkCalloc16-12 50000000 26.3 ns/op 0 B/op 0 allocs/op -// BenchmarkCalloc32-12 50000000 33.4 ns/op 0 B/op 0 allocs/op -// BenchmarkCalloc64-12 30000000 38.3 ns/op 0 B/op 0 allocs/op -// BenchmarkGoCalloc16-12 50000000 26.6 ns/op 16 B/op 1 allocs/op -// BenchmarkGoCalloc32-12 50000000 26.8 ns/op 32 B/op 1 allocs/op -// BenchmarkGoCalloc64-12 30000000 35.1 ns/op 64 B/op 1 allocs/op -// BenchmarkMalloc16-12 100000000 13.5 ns/op 0 B/op 0 allocs/op -// BenchmarkMalloc32-12 100000000 13.4 ns/op 0 B/op 0 allocs/op -// BenchmarkMalloc64-12 100000000 14.1 ns/op 0 B/op 0 allocs/op -// BenchmarkUintptrFree16-12 100000000 14.4 ns/op 0 B/op 0 allocs/op -// BenchmarkUintptrFree32-12 100000000 21.7 ns/op 0 B/op 0 allocs/op -// BenchmarkUintptrFree64-12 50000000 36.7 ns/op 0 B/op 0 allocs/op -// BenchmarkUintptrCalloc16-12 100000000 20.4 ns/op 0 B/op 0 allocs/op -// BenchmarkUintptrCalloc32-12 50000000 27.1 ns/op 0 B/op 0 allocs/op -// BenchmarkUintptrCalloc64-12 50000000 33.4 ns/op 0 B/op 0 allocs/op -// BenchmarkUintptrMalloc16-12 200000000 8.02 ns/op 0 B/op 0 allocs/op -// BenchmarkUintptrMalloc32-12 200000000 8.28 ns/op 0 B/op 0 allocs/op -// BenchmarkUintptrMalloc64-12 200000000 8.29 ns/op 0 B/op 0 allocs/op -// PASS -// ok modernc.org/memory 80.896s +// jnml@3900x:~/src/modernc.org/memory$ date ; go version ; go test -run @ -bench . -benchmem |& tee log +// Mon Sep 25 16:02:02 CEST 2023 +// go version go1.21.1 linux/amd64 +// goos: linux +// goarch: amd64 +// pkg: modernc.org/memory +// cpu: AMD Ryzen 9 3900X 12-Core Processor +// BenchmarkFree16-24 123506772 9.802 ns/op 0 B/op 0 allocs/op +// BenchmarkFree32-24 73853230 15.08 ns/op 0 B/op 0 allocs/op +// BenchmarkFree64-24 43070334 25.15 ns/op 0 B/op 0 allocs/op +// BenchmarkCalloc16-24 59353304 18.92 ns/op 0 B/op 0 allocs/op +// BenchmarkCalloc32-24 39415004 29.00 ns/op 0 B/op 0 allocs/op +// BenchmarkCalloc64-24 35825725 32.02 ns/op 0 B/op 0 allocs/op +// BenchmarkGoCalloc16-24 38274313 26.99 ns/op 16 B/op 1 allocs/op +// BenchmarkGoCalloc32-24 44590477 33.06 ns/op 32 B/op 1 allocs/op +// BenchmarkGoCalloc64-24 44233016 37.20 ns/op 64 B/op 1 allocs/op +// BenchmarkMalloc16-24 145736911 7.720 ns/op 0 B/op 0 allocs/op +// BenchmarkMalloc32-24 128898334 7.887 ns/op 0 B/op 0 allocs/op +// BenchmarkMalloc64-24 149569483 7.994 ns/op 0 B/op 0 allocs/op +// BenchmarkUintptrFree16-24 117043012 9.205 ns/op 0 B/op 0 allocs/op +// BenchmarkUintptrFree32-24 77399617 14.20 ns/op 0 B/op 0 allocs/op +// BenchmarkUintptrFree64-24 48770785 25.04 ns/op 0 B/op 0 allocs/op +// BenchmarkUintptrCalloc16-24 79257636 15.44 ns/op 0 B/op 0 allocs/op +// BenchmarkUintptrCalloc32-24 49644562 23.62 ns/op 0 B/op 0 allocs/op +// BenchmarkUintptrCalloc64-24 39854710 28.22 ns/op 0 B/op 0 allocs/op +// BenchmarkUintptrMalloc16-24 252987727 4.525 ns/op 0 B/op 0 allocs/op +// BenchmarkUintptrMalloc32-24 241423840 4.433 ns/op 0 B/op 0 allocs/op +// BenchmarkUintptrMalloc64-24 256450324 4.669 ns/op 0 B/op 0 allocs/op +// PASS +// ok modernc.org/memory 93.178s +// jnml@3900x:~/src/modernc.org/memory$ package memory // import "modernc.org/memory" import ( "fmt" "math/bits" "os" - "reflect" "unsafe" ) @@ -175,6 +109,12 @@ func (a *Allocator) mmap(size int) (uintptr /* *page */, error) { return 0, err } + //TODO(jnml) The returned size may now be nearly as twice as large as we asked + //for. Use that extra capacity. For that we need to move the respective + //Allocator.cap item into the page struct so the page cap becomes dynamic. + // + // Related: This is a consequence of fixing the bigsort.test failures on + // linux/s390x, see: https://gitlab.com/cznic/sqlite/-/issues/207 if counters { a.Mmaps++ a.Bytes += size @@ -370,7 +310,7 @@ func (a *Allocator) UintptrRealloc(p uintptr, size int) (r uintptr, err error) { } us := UintptrUsableSize(p) - if us > size { + if us >= size { return p, nil } @@ -417,12 +357,7 @@ func (a *Allocator) Calloc(size int) (r []byte, err error) { return nil, err } - var b []byte - sh := (*reflect.SliceHeader)(unsafe.Pointer(&b)) - sh.Cap = usableSize(p) - sh.Data = p - sh.Len = size - return b, nil + return (*rawmem)(unsafe.Pointer(p))[:size:usableSize(p)], nil } // Close releases all OS resources used by a and sets it to its zero value. @@ -461,11 +396,7 @@ func (a *Allocator) Malloc(size int) (r []byte, err error) { return nil, err } - sh := (*reflect.SliceHeader)(unsafe.Pointer(&r)) - sh.Cap = usableSize(p) - sh.Data = p - sh.Len = size - return r, nil + return (*rawmem)(unsafe.Pointer(p))[:size:usableSize(p)], nil } // Realloc changes the size of the backing array of b to size bytes or returns @@ -487,11 +418,7 @@ func (a *Allocator) Realloc(b []byte, size int) (r []byte, err error) { return nil, err } - sh := (*reflect.SliceHeader)(unsafe.Pointer(&r)) - sh.Cap = usableSize(p) - sh.Data = p - sh.Len = size - return r, nil + return (*rawmem)(unsafe.Pointer(p))[:size:usableSize(p)], nil } // UsableSize reports the size of the memory block allocated at p, which must diff --git a/vendor/modernc.org/memory/memory64.go b/vendor/modernc.org/memory/memory64.go index 2e51bb296..633929258 100644 --- a/vendor/modernc.org/memory/memory64.go +++ b/vendor/modernc.org/memory/memory64.go @@ -2,8 +2,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -//go:build amd64 || amd64p32 || arm64 || arm64be || mips64 || mips64le || mips64p32 || mips64p32le || ppc64 || ppc64le || sparc64 || riscv64 -// +build amd64 amd64p32 arm64 arm64be mips64 mips64le mips64p32 mips64p32le ppc64 ppc64le sparc64 riscv64 +//go:build amd64 || amd64p32 || arm64 || arm64be || mips64 || mips64le || mips64p32 || mips64p32le || ppc64 || ppc64le || sparc64 || riscv64 || loong64 +// +build amd64 amd64p32 arm64 arm64be mips64 mips64le mips64p32 mips64p32le ppc64 ppc64le sparc64 riscv64 loong64 package memory // import "modernc.org/memory" diff --git a/vendor/modernc.org/memory/mmap_darwin.go b/vendor/modernc.org/memory/mmap_darwin.go deleted file mode 100644 index d597cb45c..000000000 --- a/vendor/modernc.org/memory/mmap_darwin.go +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright 2017 The Memory Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -//go:build amd64 || arm64 -// +build amd64 arm64 - -package memory - -import ( - _ "unsafe" -) - -// Function syscall.mmap for darwin and openbsd calls internal/abi.FuncPCABI0, -// which is implemented as a compile intrinsic so the code cannot be reused. -// Using go:linkname directive to link mmapSyscall to syscall.mmap - -//go:linkname mmapSyscall syscall.mmap -func mmapSyscall(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) diff --git a/vendor/modernc.org/memory/mmap_freebsd_32.go b/vendor/modernc.org/memory/mmap_freebsd_32.go deleted file mode 100644 index 8b88f1b0e..000000000 --- a/vendor/modernc.org/memory/mmap_freebsd_32.go +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright 2009 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE-GO file. - -//go:build (freebsd && 386) || (freebsd && arm) -// +build freebsd,386 freebsd,arm - -package memory - -import ( - "syscall" -) - -// https://cs.opensource.google/go/go/+/refs/tags/go1.17.8:src/syscall/zsyscall_freebsd_386.go -func mmapSyscall(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) { - r0, _, e1 := syscall.Syscall9(syscall.SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), uintptr(pos), uintptr(pos>>32), 0, 0) - ret = uintptr(r0) - if e1 != 0 { - err = e1 - } - return -} diff --git a/vendor/modernc.org/memory/mmap_freebsd_64.go b/vendor/modernc.org/memory/mmap_freebsd_64.go deleted file mode 100644 index 9a988bca1..000000000 --- a/vendor/modernc.org/memory/mmap_freebsd_64.go +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright 2009 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE-GO file. - -//go:build (freebsd && amd64) || (freebsd && arm64) -// +build freebsd,amd64 freebsd,arm64 - -package memory - -import ( - "syscall" -) - -// https://cs.opensource.google/go/go/+/refs/tags/go1.17.8:src/syscall/zsyscall_freebsd_amd64.go;l=1337-1346 -func mmapSyscall(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) { - r0, _, e1 := syscall.Syscall6(syscall.SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), uintptr(pos)) - ret = uintptr(r0) - if e1 != 0 { - err = e1 - } - return -} diff --git a/vendor/modernc.org/memory/mmap_illumos_amd64.go b/vendor/modernc.org/memory/mmap_illumos_amd64.go deleted file mode 100644 index 1006fe812..000000000 --- a/vendor/modernc.org/memory/mmap_illumos_amd64.go +++ /dev/null @@ -1,91 +0,0 @@ -// Copyright 2011 Evan Shaw. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE-MMAP-GO file. - -// Modifications (c) 2022 The Memory Authors. - -package memory // import "modernc.org/memory" - -import ( - "os" - "syscall" - _ "unsafe" -) - -const ( - pageSizeLog = 20 - - // $ find /usr/include -name syscall.h - // /usr/include/sys/syscall.h - // $ grep -ni munmap /usr/include/sys/syscall.h - // 293:#define SYS_munmap 117 - // $ grep -ni mmap /usr/include/sys/syscall.h - // 291:#define SYS_mmap 115 - // 303:#define SYS_mmapobj 127 - // 442:#define SYS_mmap64 214 - // $ - // $ uname -a - // SunOS omnios64 5.11 omnios-r151044-d3b715b9d1 i86pc i386 i86pc - // $ - sys_MUNMAP = 117 - sys_MMAP = 214 -) - -var ( - osPageMask = osPageSize - 1 - osPageSize = os.Getpagesize() -) - -//go:linkname mmapSyscall syscall.mmap -func mmapSyscall(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) - -func unmap(addr uintptr, size int) error { - _, _, errno := syscall.Syscall(sys_MUNMAP, addr, uintptr(size), 0) - if errno != 0 { - return errno - } - - return nil -} - -// pageSize aligned. -func mmap(size int) (uintptr, int, error) { - size = roundup(size, osPageSize) - // The actual mmap syscall varies by architecture. mmapSyscall provides same - // functionality as the unexported funtion syscall.mmap and is declared in - // mmap_*_*.go and mmap_fallback.go. To add support for a new architecture, - // check function mmap in src/syscall/syscall_*_*.go or - // src/syscall/zsyscall_*_*.go in Go's source code. - p, err := mmapSyscall(0, uintptr(size+pageSize), syscall.PROT_READ|syscall.PROT_WRITE, syscall.MAP_PRIVATE|syscall.MAP_ANON, -1, 0) - if err != nil { - return 0, 0, err - } - - n := size + pageSize - if p&uintptr(osPageMask) != 0 { - panic("internal error") - } - - mod := int(p) & pageMask - if mod != 0 { - m := pageSize - mod - if err := unmap(p, m); err != nil { - return 0, 0, err - } - - n -= m - p += uintptr(m) - } - - if p&uintptr(pageMask) != 0 { - panic("internal error") - } - - if n-size != 0 { - if err := unmap(p+uintptr(size), n-size); err != nil { - return 0, 0, err - } - } - - return p, size, nil -} diff --git a/vendor/modernc.org/memory/mmap_linux_32.go b/vendor/modernc.org/memory/mmap_linux_32.go deleted file mode 100644 index 207ad417d..000000000 --- a/vendor/modernc.org/memory/mmap_linux_32.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2009 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE-GO file. - -//go:build linux && (386 || arm || mips || mipsle) -// +build linux -// +build 386 arm mips mipsle - -package memory - -import ( - "syscall" -) - -// Function syscall.mmap and syscall.mmap2 are same for linux/386, linux/arm, -// linux/mips and linux/mipsle - -// https://cs.opensource.google/go/go/+/refs/tags/go1.17.8:src/syscall/syscall_linux_386.go;l=99-105 -func mmapSyscall(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) { - page := uintptr(offset / 4096) - if offset != int64(page)*4096 { - return 0, syscall.EINVAL - } - return mmap2Syscall(addr, length, prot, flags, fd, page) -} - -// https://cs.opensource.google/go/go/+/refs/tags/go1.17.8:src/syscall/zsyscall_linux_386.go;l=1361-1370 -func mmap2Syscall(addr uintptr, length uintptr, prot int, flags int, fd int, pageOffset uintptr) (xaddr uintptr, err error) { - r0, _, e1 := syscall.Syscall6(syscall.SYS_MMAP2, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flags), uintptr(fd), uintptr(pageOffset)) - xaddr = uintptr(r0) - if e1 != 0 { - err = e1 - } - return -} diff --git a/vendor/modernc.org/memory/mmap_linux_64.go b/vendor/modernc.org/memory/mmap_linux_64.go deleted file mode 100644 index 3780c1492..000000000 --- a/vendor/modernc.org/memory/mmap_linux_64.go +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright 2009 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE-GO file. - -//go:build linux && (amd64 || arm64 || mips64 || mips64le || riscv64 || ppc64le) -// +build linux -// +build amd64 arm64 mips64 mips64le riscv64 ppc64le - -package memory - -import ( - "syscall" -) - -// Function syscall.mmap is same for linux/amd64, linux/arm64, linux/mips64, -// linux/mips64le and linux/riscv64. - -// https://cs.opensource.google/go/go/+/refs/tags/go1.17.8:src/syscall/zsyscall_linux_amd64.go;l=1575-1584 -func mmapSyscall(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) { - r0, _, e1 := syscall.Syscall6(syscall.SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flags), uintptr(fd), uintptr(offset)) - xaddr = uintptr(r0) - if e1 != 0 { - err = e1 - } - return -} diff --git a/vendor/modernc.org/memory/mmap_linux_s390x.go b/vendor/modernc.org/memory/mmap_linux_s390x.go deleted file mode 100644 index bf7260e52..000000000 --- a/vendor/modernc.org/memory/mmap_linux_s390x.go +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright 2009 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE-GO file. - -package memory - -import ( - "syscall" - "unsafe" -) - -// https://cs.opensource.google/go/go/+/refs/tags/go1.17.8:src/syscall/syscall_linux_s390x.go;l=105-115 -// Linux on s390x uses the old mmap interface, which requires arguments to be passed in a struct. -// mmap2 also requires arguments to be passed in a struct; it is currently not exposed in . -func mmapSyscall(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) { - mmap_args := [6]uintptr{addr, length, uintptr(prot), uintptr(flags), uintptr(fd), uintptr(offset)} - r0, _, e1 := syscall.Syscall(syscall.SYS_MMAP, uintptr(unsafe.Pointer(&mmap_args[0])), 0, 0) - xaddr = uintptr(r0) - if e1 != 0 { - err = e1 - } - return -} diff --git a/vendor/modernc.org/memory/mmap_netbsd_32.go b/vendor/modernc.org/memory/mmap_netbsd_32.go deleted file mode 100644 index 2c17038ae..000000000 --- a/vendor/modernc.org/memory/mmap_netbsd_32.go +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright 2009 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE-GO file. - -//go:build (netbsd && 386) || (netbsd && arm) -// +build netbsd,386 netbsd,arm - -package memory - -import ( - "syscall" -) - -// https://cs.opensource.google/go/go/+/refs/tags/go1.17.8:src/syscall/zsyscall_freebsd_386.go -func mmapSyscall(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) { - r0, _, e1 := syscall.Syscall9(syscall.SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), 0, uintptr(pos), uintptr(pos>>32), 0) - ret = uintptr(r0) - if e1 != 0 { - err = e1 - } - return -} diff --git a/vendor/modernc.org/memory/mmap_netbsd_64.go b/vendor/modernc.org/memory/mmap_netbsd_64.go deleted file mode 100644 index 5c09a7bb0..000000000 --- a/vendor/modernc.org/memory/mmap_netbsd_64.go +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright 2009 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE-GO file. - -//go:build netbsd && amd64 -// +build netbsd,amd64 - -package memory - -import ( - "syscall" -) - -// https://cs.opensource.google/go/go/+/refs/tags/go1.17.8:src/syscall/zsyscall_netbsd_amd64.go;l=1190 -func mmapSyscall(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) { - r0, _, e1 := syscall.Syscall9(syscall.SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), 0, uintptr(pos), 0, 0) - ret = uintptr(r0) - if e1 != 0 { - err = e1 - } - return -} diff --git a/vendor/modernc.org/memory/mmap_openbsd.go b/vendor/modernc.org/memory/mmap_openbsd.go deleted file mode 100644 index 0b5e4f1de..000000000 --- a/vendor/modernc.org/memory/mmap_openbsd.go +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright 2017 The Memory Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -//go:build 386 || amd64 || arm64 -// +build 386 amd64 arm64 - -package memory - -import ( - _ "unsafe" -) - -// Function syscall.mmap for darwin and openbsd calls internal/abi.FuncPCABI0, -// which is implemented as a compile intrinsic so the code cannot be reused. -// Using go:linkname directive to link mmapSyscall to syscall.mmap - -//go:linkname mmapSyscall syscall.mmap -func mmapSyscall(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) diff --git a/vendor/modernc.org/memory/mmap_unix.go b/vendor/modernc.org/memory/mmap_unix.go index 93f9b820c..8ee991538 100644 --- a/vendor/modernc.org/memory/mmap_unix.go +++ b/vendor/modernc.org/memory/mmap_unix.go @@ -2,19 +2,19 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE-MMAP-GO file. -//go:build darwin || dragonfly || freebsd || linux || openbsd || (solaris && !illumos) || netbsd -// +build darwin dragonfly freebsd linux openbsd solaris,!illumos netbsd +//go:build unix // Modifications (c) 2017 The Memory Authors. package memory // import "modernc.org/memory" import ( + "golang.org/x/sys/unix" "os" - "syscall" + "unsafe" ) -const pageSizeLog = 20 +const pageSizeLog = 16 var ( osPageMask = osPageSize - 1 @@ -22,36 +22,29 @@ var ( ) func unmap(addr uintptr, size int) error { - _, _, errno := syscall.Syscall(syscall.SYS_MUNMAP, addr, uintptr(size), 0) - if errno != 0 { - return errno - } - - return nil + return unix.MunmapPtr(unsafe.Pointer(addr), uintptr(size)) } // pageSize aligned. func mmap(size int) (uintptr, int, error) { size = roundup(size, osPageSize) - // The actual mmap syscall varies by architecture. mmapSyscall provides same - // functionality as the unexported funtion syscall.mmap and is declared in - // mmap_*_*.go and mmap_fallback.go. To add support for a new architecture, - // check function mmap in src/syscall/syscall_*_*.go or - // src/syscall/zsyscall_*_*.go in Go's source code. - p, err := mmapSyscall(0, uintptr(size+pageSize), syscall.PROT_READ|syscall.PROT_WRITE, syscall.MAP_PRIVATE|syscall.MAP_ANON, -1, 0) + // Ask for more so we can align the result at a pageSize boundary + n := size + pageSize + up, err := unix.MmapPtr(-1, 0, nil, uintptr(n), unix.PROT_READ|unix.PROT_WRITE, unix.MAP_PRIVATE|unix.MAP_ANON) if err != nil { return 0, 0, err } - n := size + pageSize + p := uintptr(up) if p&uintptr(osPageMask) != 0 { panic("internal error") } mod := int(p) & pageMask - if mod != 0 { + if mod != 0 { // Return the extra part before pageSize aligned block m := pageSize - mod if err := unmap(p, m); err != nil { + unmap(p, n) // Do not leak the first mmap return 0, 0, err } @@ -63,9 +56,13 @@ func mmap(size int) (uintptr, int, error) { panic("internal error") } - if n-size != 0 { + if n > size { // Return the extra part after pageSize aligned block if err := unmap(p+uintptr(size), n-size); err != nil { - return 0, 0, err + // Do not error when the kernel rejects the extra part after, just return the + // unexpectedly enlarged size. + // + // Fixes the bigsort.test failures on linux/s390x, see: https://gitlab.com/cznic/sqlite/-/issues/207 + size = n } } diff --git a/vendor/modernc.org/memory/mmap_windows.go b/vendor/modernc.org/memory/mmap_windows.go index 3c402039b..f88e51606 100644 --- a/vendor/modernc.org/memory/mmap_windows.go +++ b/vendor/modernc.org/memory/mmap_windows.go @@ -5,8 +5,8 @@ package memory // import "modernc.org/memory" import ( + syscall "golang.org/x/sys/windows" "os" - "syscall" ) const ( @@ -22,7 +22,7 @@ const ( const pageSizeLog = 16 var ( - modkernel32 = syscall.NewLazyDLL("kernel32.dll") + modkernel32 = syscall.NewLazySystemDLL("kernel32.dll") osPageMask = osPageSize - 1 osPageSize = os.Getpagesize() procVirtualAlloc = modkernel32.NewProc("VirtualAlloc") diff --git a/vendor/modules.txt b/vendor/modules.txt index 0c3a77d7a..bdc4e2f5e 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -591,6 +591,9 @@ github.com/modern-go/reflect2 # github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 ## explicit github.com/munnerz/goautoneg +# github.com/ncruces/go-strftime v1.0.0 +## explicit; go 1.17 +github.com/ncruces/go-strftime # github.com/neuvector/neuvector v0.0.0-20260406013240-eba858444676 ## explicit; go 1.25.0 github.com/neuvector/neuvector/controller/api @@ -651,7 +654,7 @@ github.com/pmezard/go-difflib/difflib # github.com/quay/clair/v2 v2.1.8 ## explicit; go 1.12 github.com/quay/clair/v2/pkg/tarutil -# github.com/remyoudompheng/bigfft v0.0.0-20230126093431-47fa9a501578 +# github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec ## explicit; go 1.12 github.com/remyoudompheng/bigfft # github.com/rivo/uniseg v0.4.7 @@ -1558,8 +1561,8 @@ k8s.io/utils/internal/third_party/forked/golang/net k8s.io/utils/net k8s.io/utils/ptr k8s.io/utils/trace -# modernc.org/libc v1.22.2 -## explicit; go 1.17 +# modernc.org/libc v1.73.1 +## explicit; go 1.25.0 modernc.org/libc modernc.org/libc/errno modernc.org/libc/fcntl @@ -1586,11 +1589,11 @@ modernc.org/libc/utime modernc.org/libc/uuid modernc.org/libc/uuid/uuid modernc.org/libc/wctype -# modernc.org/mathutil v1.5.0 -## explicit; go 1.13 +# modernc.org/mathutil v1.7.1 +## explicit; go 1.21 modernc.org/mathutil -# modernc.org/memory v1.5.0 -## explicit; go 1.18 +# modernc.org/memory v1.11.0 +## explicit; go 1.23.0 modernc.org/memory # modernc.org/sqlite v1.20.3 ## explicit; go 1.17